diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index d28f7f9101..18c9147181 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -1,128 +1,128 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -We as members, contributors, and leaders pledge to make participation in our -community a harassment-free experience for everyone, regardless of age, body -size, visible or invisible disability, ethnicity, sex characteristics, gender -identity and expression, level of experience, education, socio-economic status, -nationality, personal appearance, race, religion, or sexual identity -and orientation. - -We pledge to act and interact in ways that contribute to an open, welcoming, -diverse, inclusive, and healthy community. - -## Our Standards - -Examples of behavior that contributes to a positive environment for our -community include: - -* Demonstrating empathy and kindness toward other people -* Being respectful of differing opinions, viewpoints, and experiences -* Giving and gracefully accepting constructive feedback -* Accepting responsibility and apologizing to those affected by our mistakes, - and learning from the experience -* Focusing on what is best not just for us as individuals, but for the - overall community - -Examples of unacceptable behavior include: - -* The use of sexualized language or imagery, and sexual attention or - advances of any kind -* Trolling, insulting or derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or email - address, without their explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting - -## Enforcement Responsibilities - -Community leaders are responsible for clarifying and enforcing our standards of -acceptable behavior and will take appropriate and fair corrective action in -response to any behavior that they deem inappropriate, threatening, offensive, -or harmful. - -Community leaders have the right and responsibility to remove, edit, or reject -comments, commits, code, wiki edits, issues, and other contributions that are -not aligned to this Code of Conduct, and will communicate reasons for moderation -decisions when appropriate. - -## Scope - -This Code of Conduct applies within all community spaces, and also applies when -an individual is officially representing the community in public spaces. -Examples of representing our community include using an official e-mail address, -posting via an official social media account, or acting as an appointed -representative at an online or offline event. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported to the community leaders responsible for enforcement at -. -All complaints will be reviewed and investigated promptly and fairly. - -All community leaders are obligated to respect the privacy and security of the -reporter of any incident. - -## Enforcement Guidelines - -Community leaders will follow these Community Impact Guidelines in determining -the consequences for any action they deem in violation of this Code of Conduct: - -### 1. Correction - -**Community Impact**: Use of inappropriate language or other behavior deemed -unprofessional or unwelcome in the community. - -**Consequence**: A private, written warning from community leaders, providing -clarity around the nature of the violation and an explanation of why the -behavior was inappropriate. A public apology may be requested. - -### 2. Warning - -**Community Impact**: A violation through a single incident or series -of actions. - -**Consequence**: A warning with consequences for continued behavior. No -interaction with the people involved, including unsolicited interaction with -those enforcing the Code of Conduct, for a specified period of time. This -includes avoiding interactions in community spaces as well as external channels -like social media. Violating these terms may lead to a temporary or -permanent ban. - -### 3. Temporary Ban - -**Community Impact**: A serious violation of community standards, including -sustained inappropriate behavior. - -**Consequence**: A temporary ban from any sort of interaction or public -communication with the community for a specified period of time. No public or -private interaction with the people involved, including unsolicited interaction -with those enforcing the Code of Conduct, is allowed during this period. -Violating these terms may lead to a permanent ban. - -### 4. Permanent Ban - -**Community Impact**: Demonstrating a pattern of violation of community -standards, including sustained inappropriate behavior, harassment of an -individual, or aggression toward or disparagement of classes of individuals. - -**Consequence**: A permanent ban from any sort of public interaction within -the community. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], -version 2.0, available at -https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. - -Community Impact Guidelines were inspired by [Mozilla's code of conduct -enforcement ladder](https://github.com/mozilla/diversity). - -[homepage]: https://www.contributor-covenant.org - -For answers to common questions about this code of conduct, see the FAQ at -https://www.contributor-covenant.org/faq. Translations are available at -https://www.contributor-covenant.org/translations. +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, religion, or sexual identity +and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +* Focusing on what is best not just for us as individuals, but for the + overall community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or + advances of any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email + address, without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement at +. +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series +of actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or +permanent ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within +the community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.0, available at +https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. + +Community Impact Guidelines were inspired by [Mozilla's code of conduct +enforcement ladder](https://github.com/mozilla/diversity). + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see the FAQ at +https://www.contributor-covenant.org/faq. Translations are available at +https://www.contributor-covenant.org/translations. diff --git a/.github/CONTRIBUTING_GUIDELINE.md b/.github/CONTRIBUTING_GUIDELINE.md index db19b5a2b2..8e51efb9fc 100644 --- a/.github/CONTRIBUTING_GUIDELINE.md +++ b/.github/CONTRIBUTING_GUIDELINE.md @@ -1,67 +1,67 @@ -# **Contributing Guidelines** ๐Ÿ“„ - -This documentation contains a set of guidelines to help you during the contribution process. -We are happy to welcome all the contributions from anyone willing to improve/add new scripts to this project. -Thank you for helping out and remember, **no contribution is too small.** -
-Please note we have a [code of conduct](CODE_OF_CONDUCT.md) please follow it in all your interactions with the project. - - - -
- -## **Need some help regarding the basics?๐Ÿค”** - - -You can refer to the following articles on basics of Git and Github and also contact the Project Mentors, -in case you are stuck: - -- [Forking a Repo](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) -- [Cloning a Repo](https://help.github.com/en/desktop/contributing-to-projects/creating-an-issue-or-pull-request) -- [How to create a Pull Request](https://opensource.com/article/19/7/create-pull-request-github) -- [Getting started with Git and GitHub](https://towardsdatascience.com/getting-started-with-git-and-github-6fcd0f2d4ac6) -- [Learn GitHub from Scratch](https://lab.github.com/githubtraining/introduction-to-github) - -
- -## **Issue Report Process ๐Ÿ“Œ** - -1. Go to the project's issues. -2. Select the template that better fits your issue. -3. Give proper description for the issues. -4. Don't spam to get the assignment of the issue ๐Ÿ˜€. -5. Wait for till someone is looking into it !. -6. Start working on issue only after you got assigned that issue ๐Ÿš€. - -
- -## **File naming conventions ๐Ÿ“** -- Give unique name for your game that is not already existed -* Folder naming convention - - ```Game_Name``` ex. ```Tilting_Maze``` (first letter should be capital and if you need space use _ ) -* files in the folder - - ```index.html``` , ```script.js``` , ```style.css```(not stictly to follow this but you should have separate ) - - you can have other folders if you are having assets for your game - - ```README.md``` for your folder using template [TEMPLATE](../Games/FOLDER_README_TEMPLATE.md) - - It is not compulsory to follow this README template only you can have your own -* naming convention for the screenshot you will add in ```assets/images``` - - name of image should be same as your game name - - ex. ```Tilting_Maze.jpeg``` or .jpg or .png any of the image formate - -
- -## **Pull Request Process ๐Ÿš€** - -1. Ensure that you have self reviewed your code ๐Ÿ˜€ -2. Make sure you have added the proper description for the functionality of the code -3. You have added README file in your repository . -4. You have added the thumbnail of the project into ```assets/images``` for website preview -5. Add your game screenshot in the assets folder by following the proper conversion specified over here -6. You have added your game name and link in main README.md -7. Submit your PR by giving the necesarry information in PR template and hang tight we will review it really soon ๐Ÿš€ - -
- -# **Happy Hacking ๐Ÿ’—** - - +# **Contributing Guidelines** ๐Ÿ“„ + +This documentation contains a set of guidelines to help you during the contribution process. +We are happy to welcome all the contributions from anyone willing to improve/add new scripts to this project. +Thank you for helping out and remember, **no contribution is too small.** +
+Please note we have a [code of conduct](CODE_OF_CONDUCT.md) please follow it in all your interactions with the project. + + + +
+ +## **Need some help regarding the basics?๐Ÿค”** + + +You can refer to the following articles on basics of Git and Github and also contact the Project Mentors, +in case you are stuck: + +- [Forking a Repo](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) +- [Cloning a Repo](https://help.github.com/en/desktop/contributing-to-projects/creating-an-issue-or-pull-request) +- [How to create a Pull Request](https://opensource.com/article/19/7/create-pull-request-github) +- [Getting started with Git and GitHub](https://towardsdatascience.com/getting-started-with-git-and-github-6fcd0f2d4ac6) +- [Learn GitHub from Scratch](https://lab.github.com/githubtraining/introduction-to-github) + +
+ +## **Issue Report Process ๐Ÿ“Œ** + +1. Go to the project's issues. +2. Select the template that better fits your issue. +3. Give proper description for the issues. +4. Don't spam to get the assignment of the issue ๐Ÿ˜€. +5. Wait for till someone is looking into it !. +6. Start working on issue only after you got assigned that issue ๐Ÿš€. + +
+ +## **File naming conventions ๐Ÿ“** +- Give unique name for your game that is not already existed +* Folder naming convention + - ```Game_Name``` ex. ```Tilting_Maze``` (first letter should be capital and if you need space use _ ) +* files in the folder + - ```index.html``` , ```script.js``` , ```style.css```(not stictly to follow this but you should have separate ) + - you can have other folders if you are having assets for your game + - ```README.md``` for your folder using template [TEMPLATE](../Games/FOLDER_README_TEMPLATE.md) + - It is not compulsory to follow this README template only you can have your own +* naming convention for the screenshot you will add in ```assets/images``` + - name of image should be same as your game name + - ex. ```Tilting_Maze.jpeg``` or .jpg or .png any of the image formate + +
+ +## **Pull Request Process ๐Ÿš€** + +1. Ensure that you have self reviewed your code ๐Ÿ˜€ +2. Make sure you have added the proper description for the functionality of the code +3. You have added README file in your repository . +4. You have added the thumbnail of the project into ```assets/images``` for website preview +5. Add your game screenshot in the assets folder by following the proper conversion specified over here +6. You have added your game name and link in main README.md +7. Submit your PR by giving the necesarry information in PR template and hang tight we will review it really soon ๐Ÿš€ + +
+ +# **Happy Hacking ๐Ÿ’—** + + diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 26702a3e74..f4ffb0a06e 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,55 +1,55 @@ -name: Bug Report ๐Ÿชฒ -description: Report your bug by filling teh information given below -title: "[Bug]: " - -body: - - type: markdown - attributes: - value: | - Thanks for taking the time to fill out this bug report! - - type: textarea - id: bug-description - attributes: - label: Give a brief about the bug โœ๏ธ - description: Enter a brief description about the bug report - placeholder: Please include a summary, also include relevant motivation and context. - value: "Description" - validations: - required: true - - type: textarea - id: behaviors - attributes: - label: What is the expected behavior? ๐Ÿค” - description: Enter the expected behavior of bug - placeholder: Please include a summary, also include relevant motivation and context. - value: "Description" - validations: - required: true - - type: textarea - id: instructions - attributes: - label: Provide step by step information reproduce the bug ๐Ÿ“„ - description: Enter the description on how you plan to find the bug's solution - placeholder: Please include a summary, also include relevant motivation and context. - value: "Description" - validations: - required: true - - type: dropdown - id: contribution - attributes: - label: Select program in which you are contributing - multiple: true - options: - - GSSoC24 - - IWOC2024 - - hacktoberfest - - GSSoC23 - - Other - - type: checkboxes - id: terms - attributes: - label: Code of Conduct - description: By submitting this issue, you agree to follow our [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) - options: - - label: I follow [CONTRIBUTING GUIDELINE](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) of this project. - required: true +name: Bug Report ๐Ÿชฒ +description: Report your bug by filling teh information given below +title: "[Bug]: " + +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report! + - type: textarea + id: bug-description + attributes: + label: Give a brief about the bug โœ๏ธ + description: Enter a brief description about the bug report + placeholder: Please include a summary, also include relevant motivation and context. + value: "Description" + validations: + required: true + - type: textarea + id: behaviors + attributes: + label: What is the expected behavior? ๐Ÿค” + description: Enter the expected behavior of bug + placeholder: Please include a summary, also include relevant motivation and context. + value: "Description" + validations: + required: true + - type: textarea + id: instructions + attributes: + label: Provide step by step information reproduce the bug ๐Ÿ“„ + description: Enter the description on how you plan to find the bug's solution + placeholder: Please include a summary, also include relevant motivation and context. + value: "Description" + validations: + required: true + - type: dropdown + id: contribution + attributes: + label: Select program in which you are contributing + multiple: true + options: + - GSSoC24 + - IWOC2024 + - hacktoberfest + - GSSoC23 + - Other + - type: checkboxes + id: terms + attributes: + label: Code of Conduct + description: By submitting this issue, you agree to follow our [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) + options: + - label: I follow [CONTRIBUTING GUIDELINE](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) of this project. + required: true diff --git a/.github/ISSUE_TEMPLATE/documentation_bug.yml b/.github/ISSUE_TEMPLATE/documentation_bug.yml index cf6b325f92..55fd2829ba 100644 --- a/.github/ISSUE_TEMPLATE/documentation_bug.yml +++ b/.github/ISSUE_TEMPLATE/documentation_bug.yml @@ -1,46 +1,46 @@ -name: ๐Ÿ“š Documentation or README.md issue report -description: Report an issue in the project's documentation or README.md file. -title: "[Documentation Bug]: " - -body: - - type: markdown - attributes: - value: | - Thanks for taking the time to fill out this documentation bug report! - - type: textarea - id: documentation-bug-description - attributes: - label: Describe the bug โœ๏ธ - description: Enter a brief description about the documentation bug report - placeholder: Please include a summary, also include relevant motivation and context. - value: "Describe your bug here" - validations: - required: true - - type: textarea - id: instructions - attributes: - label: Provide step by step information reproduce the bug ๐Ÿ“„ - description: Enter the description on how you plan to find the bug's solution - placeholder: Please include a summary, also include relevant motivation and context. - value: "Description" - validations: - required: true - - type: dropdown - id: contribution - attributes: - label: Select program in which you are contributing - multiple: true - options: - - GSSoC24 - - IWOC2024 - - hacktoberfest - - GSSoC23 - - Other - - type: checkboxes - id: terms - attributes: - label: Code of Conduct - description: By submitting this issue, you agree to follow our [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) - options: - - label: I follow [CONTRIBUTING GUIDELINE](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) of this project. - required: true +name: ๐Ÿ“š Documentation or README.md issue report +description: Report an issue in the project's documentation or README.md file. +title: "[Documentation Bug]: " + +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this documentation bug report! + - type: textarea + id: documentation-bug-description + attributes: + label: Describe the bug โœ๏ธ + description: Enter a brief description about the documentation bug report + placeholder: Please include a summary, also include relevant motivation and context. + value: "Describe your bug here" + validations: + required: true + - type: textarea + id: instructions + attributes: + label: Provide step by step information reproduce the bug ๐Ÿ“„ + description: Enter the description on how you plan to find the bug's solution + placeholder: Please include a summary, also include relevant motivation and context. + value: "Description" + validations: + required: true + - type: dropdown + id: contribution + attributes: + label: Select program in which you are contributing + multiple: true + options: + - GSSoC24 + - IWOC2024 + - hacktoberfest + - GSSoC23 + - Other + - type: checkboxes + id: terms + attributes: + label: Code of Conduct + description: By submitting this issue, you agree to follow our [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) + options: + - label: I follow [CONTRIBUTING GUIDELINE](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) of this project. + required: true diff --git a/.github/ISSUE_TEMPLATE/game_enhancement.yml b/.github/ISSUE_TEMPLATE/game_enhancement.yml index 73bcf0fae2..208b36e703 100644 --- a/.github/ISSUE_TEMPLATE/game_enhancement.yml +++ b/.github/ISSUE_TEMPLATE/game_enhancement.yml @@ -1,46 +1,46 @@ -name: ๐Ÿš€Game Enhancement Request -description: Suggest your enhancement for the existing game -title: "[Enhancement]: " - -body: - - type: markdown - attributes: - value: | - Thanks for taking the time to fill out this enhancement request form - - type: textarea - id: bug-description - attributes: - label: Do you want to have the enhancement of existing game ? ๐Ÿ˜€ Describe yourself.. - description: Enter a brief description about the enhancement you need - placeholder: Give all the context of your enhancement as well as the existing game - value: "Game enhancement" - validations: - required: true - - type: textarea - id: behaviour - attributes: - label: Describe the solution you'd like - description: Give steps in which you will solve it - placeholder: Please include a summary, also include relevant motivation and context. - value: "Solution steps" - validations: - required: true - - type: dropdown - id: contribution - attributes: - label: Select program in which you are contributing - multiple: true - options: - - GSSoC24 - - IWOC2024 - - hacktoberfest - - GSSoC23 - - Other - - type: checkboxes - id: terms - attributes: - label: Code of Conduct - description: By submitting this issue, you agree to follow our [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) - options: - - label: I follow [CONTRIBUTING GUIDELINE](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) of this project. - required: true +name: ๐Ÿš€Game Enhancement Request +description: Suggest your enhancement for the existing game +title: "[Enhancement]: " + +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this enhancement request form + - type: textarea + id: bug-description + attributes: + label: Do you want to have the enhancement of existing game ? ๐Ÿ˜€ Describe yourself.. + description: Enter a brief description about the enhancement you need + placeholder: Give all the context of your enhancement as well as the existing game + value: "Game enhancement" + validations: + required: true + - type: textarea + id: behaviour + attributes: + label: Describe the solution you'd like + description: Give steps in which you will solve it + placeholder: Please include a summary, also include relevant motivation and context. + value: "Solution steps" + validations: + required: true + - type: dropdown + id: contribution + attributes: + label: Select program in which you are contributing + multiple: true + options: + - GSSoC24 + - IWOC2024 + - hacktoberfest + - GSSoC23 + - Other + - type: checkboxes + id: terms + attributes: + label: Code of Conduct + description: By submitting this issue, you agree to follow our [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) + options: + - label: I follow [CONTRIBUTING GUIDELINE](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) of this project. + required: true diff --git a/.github/ISSUE_TEMPLATE/new_game_request.yml b/.github/ISSUE_TEMPLATE/new_game_request.yml index 5b4dd15ff9..12927df8d6 100644 --- a/.github/ISSUE_TEMPLATE/new_game_request.yml +++ b/.github/ISSUE_TEMPLATE/new_game_request.yml @@ -1,46 +1,46 @@ -name: ๐Ÿ†•๐ŸŽฎ new game request -description: Suggest an idea and show your creativity to add new game -title: "[New game]: " - -body: - - type: markdown - attributes: - value: | - Thanks for taking the time to fill out your new game issue - - type: textarea - id: new-game - attributes: - label: ๐ŸŽฎ Game Request - description: Describe the game logic and also give a brief about the features of the game - placeholder: add all necessary details required for your new game - value: "Game logic and basic description" - validations: - required: true - - type: textarea - id: features - attributes: - label: Point down the features - description: think about your the feature your game will have - placeholder: Please include a summary, also include relevant motivation and context. - value: "Game points" - validations: - required: true - - type: dropdown - id: contribution - attributes: - label: Select program in which you are contributing - multiple: true - options: - - IWOC2024 - - GSSoC24 - - hacktoberfest - - GSSoC23 - - Other - - type: checkboxes - id: terms - attributes: - label: Code of Conduct - description: By submitting this issue, you agree to follow our [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) - options: - - label: I follow [CONTRIBUTING GUIDELINE](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) of this project. - required: true +name: ๐Ÿ†•๐ŸŽฎ new game request +description: Suggest an idea and show your creativity to add new game +title: "[New game]: " + +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out your new game issue + - type: textarea + id: new-game + attributes: + label: ๐ŸŽฎ Game Request + description: Describe the game logic and also give a brief about the features of the game + placeholder: add all necessary details required for your new game + value: "Game logic and basic description" + validations: + required: true + - type: textarea + id: features + attributes: + label: Point down the features + description: think about your the feature your game will have + placeholder: Please include a summary, also include relevant motivation and context. + value: "Game points" + validations: + required: true + - type: dropdown + id: contribution + attributes: + label: Select program in which you are contributing + multiple: true + options: + - IWOC2024 + - GSSoC24 + - hacktoberfest + - GSSoC23 + - Other + - type: checkboxes + id: terms + attributes: + label: Code of Conduct + description: By submitting this issue, you agree to follow our [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) + options: + - label: I follow [CONTRIBUTING GUIDELINE](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) of this project. + required: true diff --git a/.github/ISSUE_TEMPLATE/question_and_support.yml b/.github/ISSUE_TEMPLATE/question_and_support.yml index 980b72a71c..ed6066d9d8 100644 --- a/.github/ISSUE_TEMPLATE/question_and_support.yml +++ b/.github/ISSUE_TEMPLATE/question_and_support.yml @@ -1,37 +1,37 @@ -name: โ“ Question or Support Request -description: Questions and requests for support. -title: "[Question]: " - -body: - - type: markdown - attributes: - value: | - Thanks for taking the time to fill out this and letting us know your question - - type: textarea - id: description - attributes: - label: Describe your question or ask for support.โ“ - description: Enter a brief description about your question or support needed - placeholder: Please include a summary, also include relevant motivation and context. - value: "Description" - validations: - required: true - - type: dropdown - id: contribution - attributes: - label: Select program in which you are contributing - multiple: true - options: - - GSSoC24 - - IWOC2024 - - hacktobefest - - GSSoC23 - - Other - - type: checkboxes - id: terms - attributes: - label: Code of Conduct - description: By submitting this issue, you agree to follow our [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) - options: - - label: I follow [CONTRIBUTING GUIDELINE](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) of this project. - required: true +name: โ“ Question or Support Request +description: Questions and requests for support. +title: "[Question]: " + +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this and letting us know your question + - type: textarea + id: description + attributes: + label: Describe your question or ask for support.โ“ + description: Enter a brief description about your question or support needed + placeholder: Please include a summary, also include relevant motivation and context. + value: "Description" + validations: + required: true + - type: dropdown + id: contribution + attributes: + label: Select program in which you are contributing + multiple: true + options: + - GSSoC24 + - IWOC2024 + - hacktobefest + - GSSoC23 + - Other + - type: checkboxes + id: terms + attributes: + label: Code of Conduct + description: By submitting this issue, you agree to follow our [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) + options: + - label: I follow [CONTRIBUTING GUIDELINE](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) of this project. + required: true diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 3c364b3fb2..f475dbdf9b 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,34 +1,34 @@ -## PR Description ๐Ÿ“œ - -Please include summary related to the issue you have fixed and describe your PR in brief over here by specifying the issue number on which you were working below -Fixes # - -
- -## Mark the task you have completed โœ… - - - -- [ ] I follow [CONTRIBUTING GUIDELINE](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) & [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) of this project. -- [ ] I have performed a self-review of my own code or work. -- [ ] I have commented my code, particularly in hard-to-understand areas. -- [ ] My changes generates no new warnings. -- [ ] I have followed proper naming convention showed in [CONTRIBUTING GUIDELINE](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) -- [ ] I have added screenshot for website preview in assets/images -- [ ] I have added entries for my game in main README.md -- [ ] I have added README.md in my folder -- [ ] I have added working video of the game in README.md (optional) -- [ ] I have specified the respective issue number for which I have requested the new game. - - -
- -## Add your screenshots(Optional) ๐Ÿ“ธ - - - - ---- -
- +## PR Description ๐Ÿ“œ + +Please include summary related to the issue you have fixed and describe your PR in brief over here by specifying the issue number on which you were working below +Fixes # + +
+ +## Mark the task you have completed โœ… + + + +- [ ] I follow [CONTRIBUTING GUIDELINE](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) & [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) of this project. +- [ ] I have performed a self-review of my own code or work. +- [ ] I have commented my code, particularly in hard-to-understand areas. +- [ ] My changes generates no new warnings. +- [ ] I have followed proper naming convention showed in [CONTRIBUTING GUIDELINE](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) +- [ ] I have added screenshot for website preview in assets/images +- [ ] I have added entries for my game in main README.md +- [ ] I have added README.md in my folder +- [ ] I have added working video of the game in README.md (optional) +- [ ] I have specified the respective issue number for which I have requested the new game. + + +
+ +## Add your screenshots(Optional) ๐Ÿ“ธ + + + + +--- +
+ ## Thank you soo much for contributing to our repository ๐Ÿ’— \ No newline at end of file diff --git a/.github/old_workflows/assign.yml b/.github/old_workflows/assign.yml index e5e3ad05cd..7929a324f4 100644 --- a/.github/old_workflows/assign.yml +++ b/.github/old_workflows/assign.yml @@ -1,72 +1,72 @@ -name: Assign on Comment -on: - issue_comment: - types: - - created - -jobs: - assign: - runs-on: ubuntu-latest - - steps: - - name: Check if /assign command is present - id: check_command - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const commentBody = context.payload.comment.body; - const assignCommand = '/assign'; - const isCommandPresent = commentBody.includes(assignCommand); - console.log(`Command present: ${isCommandPresent}`); - console.log(`Comment: ${commentBody}`); - console.log(`Issue Number: ${context.payload.issue.number}`); - console.log(`Issue State: ${context.payload.issue.state}`); - console.log(`Assignees: ${context.payload.issue.assignees.map(assignee => assignee.login)}`); - console.log(`Issue URL: ${context.payload.issue.html_url}`); - console.log(`Comment URL: ${context.payload.comment.html_url}`); - console.log(`Comment Author: ${context.payload.comment.user.login}`); - console.log(`Repository: ${context.repo.owner}/${context.repo.repo}`); - console.log(`Repository URL: ${context.payload.repository.html_url}`); - console.log(`Repository Full Name: ${context.payload.repository.full_name}`); - console.log(`Repository Name: ${context.payload.repository.name}`); - console.log(`Repository Owner: ${context.payload.repository.owner.login}`); - console.log(`Repository Owner URL: ${context.payload.repository.owner.html_url}`); - console.log(`Event Name: ${context.eventName}`); - - const commentAuthor = context.payload.comment.user.login; - core.setOutput('comment_author', commentAuthor); - - const isGreetingFromOwner = commentAuthor === context.payload.repository.owner.login; - core.setOutput('is_greeting_from_owner', isGreetingFromOwner.toString()); - - const isAlreadyAssigned = context.payload.issue.assignees.length > 0; - core.setOutput('is_already_assigned', isAlreadyAssigned.toString()); - - if (isCommandPresent && isGreetingFromOwner) { - console.log('Skipping assigning issue: Greeting from repository owner.'); - console.log(`::set-output name=assign_issue::false`); - } else if (isCommandPresent && isAlreadyAssigned) { - const { owner, repo, number } = context.issue; - const assignees = context.payload.issue.assignees.map(assignee => assignee.login).join(', '); - const commentBody = `Hey @${commentAuthor} ! , This issue is already assigned to @${assignees}. ๐Ÿ’— \n You can work on other issues ๐Ÿš€ \n If there is anything wrong you can contact us on [Discord๐Ÿ•น๏ธ](https://discord.gg/fgwk4XZfxG)๐Ÿ‘€`; - await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); - console.log(`Commented on the issue: ${commentBody}.`); - console.log(`::set-output name=assign_issue::false`); - } else if (isCommandPresent) { - console.log(`::set-output name=assign_issue::true`); - } else { - console.log(`::set-output name=assign_issue::false`); - } - - - name: Assign the issue - if: steps.check_command.outputs.assign_issue == 'true' - id: assign_issue - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const { owner, repo, number } = context.issue; - const assignee = context.payload.comment.user.login; - await github.issues.addAssignees({ owner, repo, issue_number: number, assignees: [assignee] }); - console.log(`Assigned the issue to ${assignee}.`); +name: Assign on Comment +on: + issue_comment: + types: + - created + +jobs: + assign: + runs-on: ubuntu-latest + + steps: + - name: Check if /assign command is present + id: check_command + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const commentBody = context.payload.comment.body; + const assignCommand = '/assign'; + const isCommandPresent = commentBody.includes(assignCommand); + console.log(`Command present: ${isCommandPresent}`); + console.log(`Comment: ${commentBody}`); + console.log(`Issue Number: ${context.payload.issue.number}`); + console.log(`Issue State: ${context.payload.issue.state}`); + console.log(`Assignees: ${context.payload.issue.assignees.map(assignee => assignee.login)}`); + console.log(`Issue URL: ${context.payload.issue.html_url}`); + console.log(`Comment URL: ${context.payload.comment.html_url}`); + console.log(`Comment Author: ${context.payload.comment.user.login}`); + console.log(`Repository: ${context.repo.owner}/${context.repo.repo}`); + console.log(`Repository URL: ${context.payload.repository.html_url}`); + console.log(`Repository Full Name: ${context.payload.repository.full_name}`); + console.log(`Repository Name: ${context.payload.repository.name}`); + console.log(`Repository Owner: ${context.payload.repository.owner.login}`); + console.log(`Repository Owner URL: ${context.payload.repository.owner.html_url}`); + console.log(`Event Name: ${context.eventName}`); + + const commentAuthor = context.payload.comment.user.login; + core.setOutput('comment_author', commentAuthor); + + const isGreetingFromOwner = commentAuthor === context.payload.repository.owner.login; + core.setOutput('is_greeting_from_owner', isGreetingFromOwner.toString()); + + const isAlreadyAssigned = context.payload.issue.assignees.length > 0; + core.setOutput('is_already_assigned', isAlreadyAssigned.toString()); + + if (isCommandPresent && isGreetingFromOwner) { + console.log('Skipping assigning issue: Greeting from repository owner.'); + console.log(`::set-output name=assign_issue::false`); + } else if (isCommandPresent && isAlreadyAssigned) { + const { owner, repo, number } = context.issue; + const assignees = context.payload.issue.assignees.map(assignee => assignee.login).join(', '); + const commentBody = `Hey @${commentAuthor} ! , This issue is already assigned to @${assignees}. ๐Ÿ’— \n You can work on other issues ๐Ÿš€ \n If there is anything wrong you can contact us on [Discord๐Ÿ•น๏ธ](https://discord.gg/fgwk4XZfxG)๐Ÿ‘€`; + await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); + console.log(`Commented on the issue: ${commentBody}.`); + console.log(`::set-output name=assign_issue::false`); + } else if (isCommandPresent) { + console.log(`::set-output name=assign_issue::true`); + } else { + console.log(`::set-output name=assign_issue::false`); + } + + - name: Assign the issue + if: steps.check_command.outputs.assign_issue == 'true' + id: assign_issue + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + const assignee = context.payload.comment.user.login; + await github.issues.addAssignees({ owner, repo, issue_number: number, assignees: [assignee] }); + console.log(`Assigned the issue to ${assignee}.`); diff --git a/.github/old_workflows/greet.yml b/.github/old_workflows/greet.yml index a1ef092ce7..fe570e59b0 100644 --- a/.github/old_workflows/greet.yml +++ b/.github/old_workflows/greet.yml @@ -1,53 +1,53 @@ -name: Comment and Label on Issue Opened -on: - issues: - types: - - opened - -jobs: - comment_and_label: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Add comment - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const commentAuthor = context.payload.issue.user.login; - const commentBody = `Hey @${commentAuthor} ! \n Thank you for raising an issue ๐Ÿ’— \n You can self assign the issue by commenting /assign in comment ๐Ÿ˜€ \n Make sure you follow [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) and [CONTRIBUTING GUIDELINES](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) ๐Ÿš€ \n Donโ€™t Forget to โญ our [GameZone๐ŸŽฎ](https://github.com/kunjgit/GameZone)\n Make sure you join our [Discord๐Ÿ•น๏ธ](https://discord.gg/fgwk4XZfxG) `; - const { owner, repo, number } = context.issue; - - await github.issues.createComment({ - owner: owner, - repo: repo, - issue_number: number, - body: commentBody - }); - - - name: Add label if issue body contains "GSSoC23" - id: check_label - run: | - if [[ $(echo "${{ github.event.issue.body }}" | grep -q "GSSoC23"; echo $?) == 0 ]]; then - echo "::set-output name=add_label::true" - else - echo "::set-output name=add_label::false" - fi - - - name: Add label "GSSoC23" - if: ${{ steps.check_label.outputs.add_label == 'true' }} - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const { owner, repo, number } = context.issue; - - await github.issues.addLabels({ - owner: owner, - repo: repo, - issue_number: number, - labels: ["GSSoC23"] - }); +name: Comment and Label on Issue Opened +on: + issues: + types: + - opened + +jobs: + comment_and_label: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Add comment + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const commentAuthor = context.payload.issue.user.login; + const commentBody = `Hey @${commentAuthor} ! \n Thank you for raising an issue ๐Ÿ’— \n You can self assign the issue by commenting /assign in comment ๐Ÿ˜€ \n Make sure you follow [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) and [CONTRIBUTING GUIDELINES](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) ๐Ÿš€ \n Donโ€™t Forget to โญ our [GameZone๐ŸŽฎ](https://github.com/kunjgit/GameZone)\n Make sure you join our [Discord๐Ÿ•น๏ธ](https://discord.gg/fgwk4XZfxG) `; + const { owner, repo, number } = context.issue; + + await github.issues.createComment({ + owner: owner, + repo: repo, + issue_number: number, + body: commentBody + }); + + - name: Add label if issue body contains "GSSoC23" + id: check_label + run: | + if [[ $(echo "${{ github.event.issue.body }}" | grep -q "GSSoC23"; echo $?) == 0 ]]; then + echo "::set-output name=add_label::true" + else + echo "::set-output name=add_label::false" + fi + + - name: Add label "GSSoC23" + if: ${{ steps.check_label.outputs.add_label == 'true' }} + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + + await github.issues.addLabels({ + owner: owner, + repo: repo, + issue_number: number, + labels: ["GSSoC23"] + }); diff --git a/.github/old_workflows/issue_close_greet.yml b/.github/old_workflows/issue_close_greet.yml index 9489218ef4..8e091174ac 100644 --- a/.github/old_workflows/issue_close_greet.yml +++ b/.github/old_workflows/issue_close_greet.yml @@ -1,22 +1,22 @@ -name: Comment on Issue Closure -on: - issues: - types: - - closed - -jobs: - comment: - runs-on: ubuntu-latest - - steps: - - name: Comment on Issue Closure - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const { owner, repo, number } = context.issue; - const author = context.payload.issue.user.login; - const commentBody = `Hey @${author} ! Thank you so much for your raising the issue๐Ÿ’— \n Itโ€™s all yours, you can come anytime again and make some contributions! ๐Ÿš€ \n Alone, we can do little, but together we can do so much! ๐Ÿ˜‡ - `; - await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); - console.log(`Commented on the issue: ${commentBody}.`); +name: Comment on Issue Closure +on: + issues: + types: + - closed + +jobs: + comment: + runs-on: ubuntu-latest + + steps: + - name: Comment on Issue Closure + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + const author = context.payload.issue.user.login; + const commentBody = `Hey @${author} ! Thank you so much for your raising the issue๐Ÿ’— \n Itโ€™s all yours, you can come anytime again and make some contributions! ๐Ÿš€ \n Alone, we can do little, but together we can do so much! ๐Ÿ˜‡ + `; + await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); + console.log(`Commented on the issue: ${commentBody}.`); diff --git a/.github/old_workflows/pr_close_greet.yml b/.github/old_workflows/pr_close_greet.yml index 814e727cf7..5e0c5347c9 100644 --- a/.github/old_workflows/pr_close_greet.yml +++ b/.github/old_workflows/pr_close_greet.yml @@ -1,22 +1,22 @@ -name: Comment on PR Closure -on: - pull_request_target: - types: - - closed - -jobs: - comment: - runs-on: ubuntu-latest - - steps: - - name: Comment on PR Closure - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const { owner, repo, number } = context.issue; - const commentAuthor = context.payload.pull_request.user.login; - const commentBody = `Thank you @${commentAuthor} , for your valuable time and contribution in our GameZone ๐Ÿ’—. \n Itโ€™s our GameZone, so Letโ€™s build this GameZone altogether !!๐Ÿค\n Hoping to see you soon with another PR again ๐Ÿ˜‡ \n Wishing you all the best for your journey into Open Source๐Ÿš€ - `; - await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); - console.log(`Commented on the closed PR: ${commentBody}.`); +name: Comment on PR Closure +on: + pull_request_target: + types: + - closed + +jobs: + comment: + runs-on: ubuntu-latest + + steps: + - name: Comment on PR Closure + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + const commentAuthor = context.payload.pull_request.user.login; + const commentBody = `Thank you @${commentAuthor} , for your valuable time and contribution in our GameZone ๐Ÿ’—. \n Itโ€™s our GameZone, so Letโ€™s build this GameZone altogether !!๐Ÿค\n Hoping to see you soon with another PR again ๐Ÿ˜‡ \n Wishing you all the best for your journey into Open Source๐Ÿš€ + `; + await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); + console.log(`Commented on the closed PR: ${commentBody}.`); diff --git a/.github/old_workflows/pr_greet.yml b/.github/old_workflows/pr_greet.yml index eda9dc1a9d..4ebc068efa 100644 --- a/.github/old_workflows/pr_greet.yml +++ b/.github/old_workflows/pr_greet.yml @@ -1,22 +1,22 @@ -name: Comment on PR Creation -on: - pull_request_target: - types: - - opened - -jobs: - comment: - runs-on: ubuntu-latest - - steps: - - name: Comment on PR - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const { owner, repo, number } = context.issue; - const commentAuthor = context.payload.sender.login; - const commentBody = `Thank you @${commentAuthor} ,for creating the PR and contributing to our GameZone ๐Ÿ’— \n Review team will review the PR and will reach out to you soon! ๐Ÿ˜‡ \n Make sure that you have marked all the tasks that you are done with โœ…. \n Thank you for your patience! ๐Ÿ˜€ - `; - await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); - console.log(`Commented on the PR: ${commentBody}.`); +name: Comment on PR Creation +on: + pull_request_target: + types: + - opened + +jobs: + comment: + runs-on: ubuntu-latest + + steps: + - name: Comment on PR + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + const commentAuthor = context.payload.sender.login; + const commentBody = `Thank you @${commentAuthor} ,for creating the PR and contributing to our GameZone ๐Ÿ’— \n Review team will review the PR and will reach out to you soon! ๐Ÿ˜‡ \n Make sure that you have marked all the tasks that you are done with โœ…. \n Thank you for your patience! ๐Ÿ˜€ + `; + await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); + console.log(`Commented on the PR: ${commentBody}.`); diff --git a/.github/workflows/annoucement.yml b/.github/workflows/annoucement.yml index a41367f5ed..0cb78858fe 100644 --- a/.github/workflows/annoucement.yml +++ b/.github/workflows/annoucement.yml @@ -1,49 +1,49 @@ -name: Issue Announcement -on: - workflow_dispatch: - -jobs: - issue-announcement: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Comment on opened issues - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const hackwithus = `\n @${context.payload.sender.login} here, \n Hope you are enjoying this hacktober ๐Ÿ˜€ \n We are excited to share that we are opening issue from our side where you will be going to add games on our website ๐Ÿš€ \n Work on this [issue](https://github.com/kunjgit/GameZone/issues/2944) ๐Ÿ”ฅ \n and help us building GameZone ๐Ÿ’— \n if you still haven't joined us join us on โ [Discord](https://discord.gg/fgwk4XZfxG) \n See you soon ๐Ÿ˜Š`; - const commentBody = `\n @${context.payload.sender.login} here, \n We have this annoucement to make ๐Ÿ“ข!! \n ๐Ÿ’ฅ Special Announcement: \nIt's the **Call to all the designers** ๐Ÿ”ฅ ๐ŸŽจ \nAs you all know that GameZone has crossed 100 games ๐Ÿ’— , it's time that we all come up together and make the UI even better!!\nWe are redesigning the thumbnails, make sure you come up with the aesthetic and cool ideas ๐Ÿš€ !\nYou are supposed to share the 4 different templates that can be used. Make sure that the size is: **1280 px X 720 px.** \nThe frame should be such that there is only a single image of the game that's taking up the major portion of the frame. Any kind of text should not be there. \n **The design should be catchy and aesthetic!** ๐Ÿ”ฅ \n\n **Note:** You are not supposed to create any issue right now for the same. \nYou have to share different designs right now in โ [Discord](https://discord.gg/fgwk4XZfxG) and Project Admin would be selecting one design and would be assigning the issue. After that only, you have to start working on it.`; - const hacktoberfest = `\n @${context.payload.sender.login} here, \n Hope you are doing extremely well ๐Ÿ˜‡ \n It's confirmed ๐Ÿฅณ, GameZone is taking part in hacktoberfest and ready to have another ๐Ÿ’ฅ \n Ready to have some amazing contributions once again also thank you for you support in GSSoC23 you have took us on top 5 โค๏ธโ€๐Ÿ”ฅ \n if you still haven't joined us join us on โ [Discord](https://discord.gg/fgwk4XZfxG) \n See you soon ๐Ÿ˜Š`; - - // Get the list of opened issues excluding pull requests - const { data: issues } = await github.issues.listForRepo({ - owner: context.repo.owner, - repo: context.repo.repo, - state: 'open', - per_page: 100, // Adjust the per_page value as per your requirements - issue_type: 'issue' - }); - - // Comment on each opened issue (excluding pull requests) - for (const issue of issues) { - if (!issue.pull_request) { - const opener = issue.user.login; - await github.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issue.number, - body: `Hey @${opener} ๐Ÿ‘‹!\n ${hackwithus}\n\n` - }); - - console.log(`Commented on issue #${issue.number}.`); - } - } +name: Issue Announcement +on: + workflow_dispatch: + +jobs: + issue-announcement: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Comment on opened issues + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const hackwithus = `\n @${context.payload.sender.login} here, \n Hope you are enjoying this hacktober ๐Ÿ˜€ \n We are excited to share that we are opening issue from our side where you will be going to add games on our website ๐Ÿš€ \n Work on this [issue](https://github.com/kunjgit/GameZone/issues/2944) ๐Ÿ”ฅ \n and help us building GameZone ๐Ÿ’— \n if you still haven't joined us join us on โ [Discord](https://discord.gg/fgwk4XZfxG) \n See you soon ๐Ÿ˜Š`; + const commentBody = `\n @${context.payload.sender.login} here, \n We have this annoucement to make ๐Ÿ“ข!! \n ๐Ÿ’ฅ Special Announcement: \nIt's the **Call to all the designers** ๐Ÿ”ฅ ๐ŸŽจ \nAs you all know that GameZone has crossed 100 games ๐Ÿ’— , it's time that we all come up together and make the UI even better!!\nWe are redesigning the thumbnails, make sure you come up with the aesthetic and cool ideas ๐Ÿš€ !\nYou are supposed to share the 4 different templates that can be used. Make sure that the size is: **1280 px X 720 px.** \nThe frame should be such that there is only a single image of the game that's taking up the major portion of the frame. Any kind of text should not be there. \n **The design should be catchy and aesthetic!** ๐Ÿ”ฅ \n\n **Note:** You are not supposed to create any issue right now for the same. \nYou have to share different designs right now in โ [Discord](https://discord.gg/fgwk4XZfxG) and Project Admin would be selecting one design and would be assigning the issue. After that only, you have to start working on it.`; + const hacktoberfest = `\n @${context.payload.sender.login} here, \n Hope you are doing extremely well ๐Ÿ˜‡ \n It's confirmed ๐Ÿฅณ, GameZone is taking part in hacktoberfest and ready to have another ๐Ÿ’ฅ \n Ready to have some amazing contributions once again also thank you for you support in GSSoC23 you have took us on top 5 โค๏ธโ€๐Ÿ”ฅ \n if you still haven't joined us join us on โ [Discord](https://discord.gg/fgwk4XZfxG) \n See you soon ๐Ÿ˜Š`; + + // Get the list of opened issues excluding pull requests + const { data: issues } = await github.issues.listForRepo({ + owner: context.repo.owner, + repo: context.repo.repo, + state: 'open', + per_page: 100, // Adjust the per_page value as per your requirements + issue_type: 'issue' + }); + + // Comment on each opened issue (excluding pull requests) + for (const issue of issues) { + if (!issue.pull_request) { + const opener = issue.user.login; + await github.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: issue.number, + body: `Hey @${opener} ๐Ÿ‘‹!\n ${hackwithus}\n\n` + }); + + console.log(`Commented on issue #${issue.number}.`); + } + } diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml index e5e3ad05cd..7929a324f4 100644 --- a/.github/workflows/assign.yml +++ b/.github/workflows/assign.yml @@ -1,72 +1,72 @@ -name: Assign on Comment -on: - issue_comment: - types: - - created - -jobs: - assign: - runs-on: ubuntu-latest - - steps: - - name: Check if /assign command is present - id: check_command - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const commentBody = context.payload.comment.body; - const assignCommand = '/assign'; - const isCommandPresent = commentBody.includes(assignCommand); - console.log(`Command present: ${isCommandPresent}`); - console.log(`Comment: ${commentBody}`); - console.log(`Issue Number: ${context.payload.issue.number}`); - console.log(`Issue State: ${context.payload.issue.state}`); - console.log(`Assignees: ${context.payload.issue.assignees.map(assignee => assignee.login)}`); - console.log(`Issue URL: ${context.payload.issue.html_url}`); - console.log(`Comment URL: ${context.payload.comment.html_url}`); - console.log(`Comment Author: ${context.payload.comment.user.login}`); - console.log(`Repository: ${context.repo.owner}/${context.repo.repo}`); - console.log(`Repository URL: ${context.payload.repository.html_url}`); - console.log(`Repository Full Name: ${context.payload.repository.full_name}`); - console.log(`Repository Name: ${context.payload.repository.name}`); - console.log(`Repository Owner: ${context.payload.repository.owner.login}`); - console.log(`Repository Owner URL: ${context.payload.repository.owner.html_url}`); - console.log(`Event Name: ${context.eventName}`); - - const commentAuthor = context.payload.comment.user.login; - core.setOutput('comment_author', commentAuthor); - - const isGreetingFromOwner = commentAuthor === context.payload.repository.owner.login; - core.setOutput('is_greeting_from_owner', isGreetingFromOwner.toString()); - - const isAlreadyAssigned = context.payload.issue.assignees.length > 0; - core.setOutput('is_already_assigned', isAlreadyAssigned.toString()); - - if (isCommandPresent && isGreetingFromOwner) { - console.log('Skipping assigning issue: Greeting from repository owner.'); - console.log(`::set-output name=assign_issue::false`); - } else if (isCommandPresent && isAlreadyAssigned) { - const { owner, repo, number } = context.issue; - const assignees = context.payload.issue.assignees.map(assignee => assignee.login).join(', '); - const commentBody = `Hey @${commentAuthor} ! , This issue is already assigned to @${assignees}. ๐Ÿ’— \n You can work on other issues ๐Ÿš€ \n If there is anything wrong you can contact us on [Discord๐Ÿ•น๏ธ](https://discord.gg/fgwk4XZfxG)๐Ÿ‘€`; - await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); - console.log(`Commented on the issue: ${commentBody}.`); - console.log(`::set-output name=assign_issue::false`); - } else if (isCommandPresent) { - console.log(`::set-output name=assign_issue::true`); - } else { - console.log(`::set-output name=assign_issue::false`); - } - - - name: Assign the issue - if: steps.check_command.outputs.assign_issue == 'true' - id: assign_issue - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const { owner, repo, number } = context.issue; - const assignee = context.payload.comment.user.login; - await github.issues.addAssignees({ owner, repo, issue_number: number, assignees: [assignee] }); - console.log(`Assigned the issue to ${assignee}.`); +name: Assign on Comment +on: + issue_comment: + types: + - created + +jobs: + assign: + runs-on: ubuntu-latest + + steps: + - name: Check if /assign command is present + id: check_command + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const commentBody = context.payload.comment.body; + const assignCommand = '/assign'; + const isCommandPresent = commentBody.includes(assignCommand); + console.log(`Command present: ${isCommandPresent}`); + console.log(`Comment: ${commentBody}`); + console.log(`Issue Number: ${context.payload.issue.number}`); + console.log(`Issue State: ${context.payload.issue.state}`); + console.log(`Assignees: ${context.payload.issue.assignees.map(assignee => assignee.login)}`); + console.log(`Issue URL: ${context.payload.issue.html_url}`); + console.log(`Comment URL: ${context.payload.comment.html_url}`); + console.log(`Comment Author: ${context.payload.comment.user.login}`); + console.log(`Repository: ${context.repo.owner}/${context.repo.repo}`); + console.log(`Repository URL: ${context.payload.repository.html_url}`); + console.log(`Repository Full Name: ${context.payload.repository.full_name}`); + console.log(`Repository Name: ${context.payload.repository.name}`); + console.log(`Repository Owner: ${context.payload.repository.owner.login}`); + console.log(`Repository Owner URL: ${context.payload.repository.owner.html_url}`); + console.log(`Event Name: ${context.eventName}`); + + const commentAuthor = context.payload.comment.user.login; + core.setOutput('comment_author', commentAuthor); + + const isGreetingFromOwner = commentAuthor === context.payload.repository.owner.login; + core.setOutput('is_greeting_from_owner', isGreetingFromOwner.toString()); + + const isAlreadyAssigned = context.payload.issue.assignees.length > 0; + core.setOutput('is_already_assigned', isAlreadyAssigned.toString()); + + if (isCommandPresent && isGreetingFromOwner) { + console.log('Skipping assigning issue: Greeting from repository owner.'); + console.log(`::set-output name=assign_issue::false`); + } else if (isCommandPresent && isAlreadyAssigned) { + const { owner, repo, number } = context.issue; + const assignees = context.payload.issue.assignees.map(assignee => assignee.login).join(', '); + const commentBody = `Hey @${commentAuthor} ! , This issue is already assigned to @${assignees}. ๐Ÿ’— \n You can work on other issues ๐Ÿš€ \n If there is anything wrong you can contact us on [Discord๐Ÿ•น๏ธ](https://discord.gg/fgwk4XZfxG)๐Ÿ‘€`; + await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); + console.log(`Commented on the issue: ${commentBody}.`); + console.log(`::set-output name=assign_issue::false`); + } else if (isCommandPresent) { + console.log(`::set-output name=assign_issue::true`); + } else { + console.log(`::set-output name=assign_issue::false`); + } + + - name: Assign the issue + if: steps.check_command.outputs.assign_issue == 'true' + id: assign_issue + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + const assignee = context.payload.comment.user.login; + await github.issues.addAssignees({ owner, repo, issue_number: number, assignees: [assignee] }); + console.log(`Assigned the issue to ${assignee}.`); diff --git a/.github/workflows/close_invalid_issue.yml b/.github/workflows/close_invalid_issue.yml index 4d7f8162c6..9687f07851 100644 --- a/.github/workflows/close_invalid_issue.yml +++ b/.github/workflows/close_invalid_issue.yml @@ -1,59 +1,59 @@ -name: Close Issues Without Keywords -on: - issues: - types: - - opened - -jobs: - close-issue: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Close issue without keywords - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const keywords = ['Documentation Bug', 'New game', 'Enhancement', 'Bug', 'Question']; - const issueTitle = context.payload.issue.title ? context.payload.issue.title.toLowerCase() : ''; - const openerUsername = context.payload.issue.user.login; - - let containsKeyword = false; - for (const keyword of keywords) { - if (issueTitle.includes(keyword.toLowerCase())) { - containsKeyword = true; - break; - } - } - - if (!containsKeyword) { - const commentBody = `Hey @${openerUsername}! ๐Ÿ™‚ \n It seems like you are not following proper guidelines !! ๐Ÿ‘€ \n Read documentation properly !!๐Ÿ™ \n If you have any queries reach out to us on [Discord๐Ÿ•น๏ธ](https://discord.gg/fgwk4XZfxG) .`; - - // Close the issue - await github.issues.update({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - state: 'closed' - }); - - // Add comment to the issue - await github.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - body: commentBody - }); - - console.log('Closed the issue and added a comment.'); - } else { - console.log('Issue contains one of the keywords. Skipping...'); - } +name: Close Issues Without Keywords +on: + issues: + types: + - opened + +jobs: + close-issue: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Close issue without keywords + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const keywords = ['Documentation Bug', 'New game', 'Enhancement', 'Bug', 'Question']; + const issueTitle = context.payload.issue.title ? context.payload.issue.title.toLowerCase() : ''; + const openerUsername = context.payload.issue.user.login; + + let containsKeyword = false; + for (const keyword of keywords) { + if (issueTitle.includes(keyword.toLowerCase())) { + containsKeyword = true; + break; + } + } + + if (!containsKeyword) { + const commentBody = `Hey @${openerUsername}! ๐Ÿ™‚ \n It seems like you are not following proper guidelines !! ๐Ÿ‘€ \n Read documentation properly !!๐Ÿ™ \n If you have any queries reach out to us on [Discord๐Ÿ•น๏ธ](https://discord.gg/fgwk4XZfxG) .`; + + // Close the issue + await github.issues.update({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + state: 'closed' + }); + + // Add comment to the issue + await github.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body: commentBody + }); + + console.log('Closed the issue and added a comment.'); + } else { + console.log('Issue contains one of the keywords. Skipping...'); + } diff --git a/.github/workflows/greet.yml b/.github/workflows/greet.yml index 74a7f0ceda..e456a18c4d 100644 --- a/.github/workflows/greet.yml +++ b/.github/workflows/greet.yml @@ -1,125 +1,125 @@ -name: Comment and Label on Issue Opened -on: - issues: - types: - - opened - -jobs: - comment_and_label: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Add comment - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const commentAuthor = context.payload.issue.user.login; - const commentBody = `Hey @${commentAuthor} ! \n Thank you for raising an issue ๐Ÿ’— \n You can self assign the issue by commenting /assign in comment ๐Ÿ˜€ \n Make sure you follow [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) and [CONTRIBUTING GUIDELINES](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) ๐Ÿš€ \n Donโ€™t Forget to โญ our [GameZone๐ŸŽฎ](https://github.com/kunjgit/GameZone)\n Make sure you join our [Discord๐Ÿ•น๏ธ](https://discord.gg/fgwk4XZfxG) `; - const { owner, repo, number } = context.issue; - - await github.issues.createComment({ - owner: owner, - repo: repo, - issue_number: number, - body: commentBody - }); - - - name: Add label if issue body contains "GSSoC24" - id: check_label_gs_soc24 - run: | - if grep -qE "GSSoC24" <<< "${{ github.event.issue.body }}"; then - echo "::set-output name=add_label_gs_soc24::true" - else - echo "::set-output name=add_label_gs_soc24::false" - fi - - - name: Add label "GSSoC24" - if: ${{ steps.check_label_gs_soc24.outputs.add_label_gs_soc24 == 'true' }} - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const { owner, repo, number } = context.issue; - - await github.issues.addLabels({ - owner: owner, - repo: repo, - issue_number: number, - labels: ["gssoc"] - }); - - - name: Add label if issue body contains "GSSoC23" - id: check_label_gs_soc23 - run: | - if grep -qE "GSSoC23" <<< "${{ github.event.issue.body }}"; then - echo "::set-output name=add_label_gs_soc23::true" - else - echo "::set-output name=add_label_gs_soc23::false" - fi - - - name: Add label "GSSoC23" - if: ${{ steps.check_label_gs_soc23.outputs.add_label_gs_soc23 == 'true' }} - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const { owner, repo, number } = context.issue; - - await github.issues.addLabels({ - owner: owner, - repo: repo, - issue_number: number, - labels: ["GSSoC23"] - }); - - - name: Add label if issue body contains "hacktoberfest" - id: check_label_hacktoberfest - run: | - if grep -qE "hacktoberfest" <<< "${{ github.event.issue.body }}"; then - echo "::set-output name=add_label_hacktoberfest::true" - else - echo "::set-output name=add_label_hacktoberfest::false" - fi - - - name: Add label "hacktoberfest" - if: ${{ steps.check_label_hacktoberfest.outputs.add_label_hacktoberfest == 'true' }} - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const { owner, repo, number } = context.issue; - - await github.issues.addLabels({ - owner: owner, - repo: repo, - issue_number: number, - labels: ["hacktoberfest"] - }); - - - name: Add label if issue body contains "IWOC2024" - id: check_label_iwoc - run: | - if grep -qE "IWOC2024" <<< "${{ github.event.issue.body }}"; then - echo "::set-output name=add_label_iwoc::true" - else - echo "::set-output name=add_label_iwoc::false" - fi - - - name: Add label "IWOC2024" - if: ${{ steps.check_label_iwoc.outputs.add_label_iwoc == 'true' }} - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const { owner, repo, number } = context.issue; - - await github.issues.addLabels({ - owner: owner, - repo: repo, - issue_number: number, - labels: ["IWOC2024"] - }); +name: Comment and Label on Issue Opened +on: + issues: + types: + - opened + +jobs: + comment_and_label: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Add comment + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const commentAuthor = context.payload.issue.user.login; + const commentBody = `Hey @${commentAuthor} ! \n Thank you for raising an issue ๐Ÿ’— \n You can self assign the issue by commenting /assign in comment ๐Ÿ˜€ \n Make sure you follow [CODE OF CONDUCT](https://github.com/kunjgit/GameZone/blob/main/.github/CODE_OF_CONDUCT.md) and [CONTRIBUTING GUIDELINES](https://github.com/kunjgit/GameZone/blob/main/.github/CONTRIBUTING_GUIDELINE.md) ๐Ÿš€ \n Donโ€™t Forget to โญ our [GameZone๐ŸŽฎ](https://github.com/kunjgit/GameZone)\n Make sure you join our [Discord๐Ÿ•น๏ธ](https://discord.gg/fgwk4XZfxG) `; + const { owner, repo, number } = context.issue; + + await github.issues.createComment({ + owner: owner, + repo: repo, + issue_number: number, + body: commentBody + }); + + - name: Add label if issue body contains "GSSoC24" + id: check_label_gs_soc24 + run: | + if grep -qE "GSSoC24" <<< "${{ github.event.issue.body }}"; then + echo "::set-output name=add_label_gs_soc24::true" + else + echo "::set-output name=add_label_gs_soc24::false" + fi + + - name: Add label "GSSoC24" + if: ${{ steps.check_label_gs_soc24.outputs.add_label_gs_soc24 == 'true' }} + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + + await github.issues.addLabels({ + owner: owner, + repo: repo, + issue_number: number, + labels: ["gssoc"] + }); + + - name: Add label if issue body contains "GSSoC23" + id: check_label_gs_soc23 + run: | + if grep -qE "GSSoC23" <<< "${{ github.event.issue.body }}"; then + echo "::set-output name=add_label_gs_soc23::true" + else + echo "::set-output name=add_label_gs_soc23::false" + fi + + - name: Add label "GSSoC23" + if: ${{ steps.check_label_gs_soc23.outputs.add_label_gs_soc23 == 'true' }} + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + + await github.issues.addLabels({ + owner: owner, + repo: repo, + issue_number: number, + labels: ["GSSoC23"] + }); + + - name: Add label if issue body contains "hacktoberfest" + id: check_label_hacktoberfest + run: | + if grep -qE "hacktoberfest" <<< "${{ github.event.issue.body }}"; then + echo "::set-output name=add_label_hacktoberfest::true" + else + echo "::set-output name=add_label_hacktoberfest::false" + fi + + - name: Add label "hacktoberfest" + if: ${{ steps.check_label_hacktoberfest.outputs.add_label_hacktoberfest == 'true' }} + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + + await github.issues.addLabels({ + owner: owner, + repo: repo, + issue_number: number, + labels: ["hacktoberfest"] + }); + + - name: Add label if issue body contains "IWOC2024" + id: check_label_iwoc + run: | + if grep -qE "IWOC2024" <<< "${{ github.event.issue.body }}"; then + echo "::set-output name=add_label_iwoc::true" + else + echo "::set-output name=add_label_iwoc::false" + fi + + - name: Add label "IWOC2024" + if: ${{ steps.check_label_iwoc.outputs.add_label_iwoc == 'true' }} + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + + await github.issues.addLabels({ + owner: owner, + repo: repo, + issue_number: number, + labels: ["IWOC2024"] + }); diff --git a/.github/workflows/issue_close_greet.yml b/.github/workflows/issue_close_greet.yml index 9489218ef4..8e091174ac 100644 --- a/.github/workflows/issue_close_greet.yml +++ b/.github/workflows/issue_close_greet.yml @@ -1,22 +1,22 @@ -name: Comment on Issue Closure -on: - issues: - types: - - closed - -jobs: - comment: - runs-on: ubuntu-latest - - steps: - - name: Comment on Issue Closure - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const { owner, repo, number } = context.issue; - const author = context.payload.issue.user.login; - const commentBody = `Hey @${author} ! Thank you so much for your raising the issue๐Ÿ’— \n Itโ€™s all yours, you can come anytime again and make some contributions! ๐Ÿš€ \n Alone, we can do little, but together we can do so much! ๐Ÿ˜‡ - `; - await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); - console.log(`Commented on the issue: ${commentBody}.`); +name: Comment on Issue Closure +on: + issues: + types: + - closed + +jobs: + comment: + runs-on: ubuntu-latest + + steps: + - name: Comment on Issue Closure + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + const author = context.payload.issue.user.login; + const commentBody = `Hey @${author} ! Thank you so much for your raising the issue๐Ÿ’— \n Itโ€™s all yours, you can come anytime again and make some contributions! ๐Ÿš€ \n Alone, we can do little, but together we can do so much! ๐Ÿ˜‡ + `; + await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); + console.log(`Commented on the issue: ${commentBody}.`); diff --git a/.github/workflows/level_tags.yml b/.github/workflows/level_tags.yml index 95ed1971ba..185e6101fb 100644 --- a/.github/workflows/level_tags.yml +++ b/.github/workflows/level_tags.yml @@ -1,55 +1,55 @@ -name: Add Tags to Issues -on: - issues: - types: - - opened - -jobs: - add-tags: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Add tags to issues - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const { issue } = context.payload; - const { owner, repo } = context.repo; - const { title, body } = issue; - - let tagsToAdd = []; - - // Check if issue text contains "Documentation Bug" - if (title && title.toLowerCase().includes('documentation bug')) { - tagsToAdd.push('Documentation Bug ๐Ÿ›'); - tagsToAdd.push('level1'); - } - - // Check if issue title contains "Enhancement" - if (title && title.toLowerCase().includes('enhancement')) { - tagsToAdd.push('Enhancement โšก๏ธ'); - tagsToAdd.push('level2'); - } - - if (tagsToAdd.length > 0) { - // Add tags to the issue - await github.issues.addLabels({ - owner: owner, - repo: repo, - issue_number: issue.number, - labels: tagsToAdd - }); - - console.log(`Added tags ${tagsToAdd.join(', ')} to issue #${issue.number}.`); - } else { - console.log('No tags to add.'); - } +name: Add Tags to Issues +on: + issues: + types: + - opened + +jobs: + add-tags: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Add tags to issues + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const { issue } = context.payload; + const { owner, repo } = context.repo; + const { title, body } = issue; + + let tagsToAdd = []; + + // Check if issue text contains "Documentation Bug" + if (title && title.toLowerCase().includes('documentation bug')) { + tagsToAdd.push('Documentation Bug ๐Ÿ›'); + tagsToAdd.push('level1'); + } + + // Check if issue title contains "Enhancement" + if (title && title.toLowerCase().includes('enhancement')) { + tagsToAdd.push('Enhancement โšก๏ธ'); + tagsToAdd.push('level2'); + } + + if (tagsToAdd.length > 0) { + // Add tags to the issue + await github.issues.addLabels({ + owner: owner, + repo: repo, + issue_number: issue.number, + labels: tagsToAdd + }); + + console.log(`Added tags ${tagsToAdd.join(', ')} to issue #${issue.number}.`); + } else { + console.log('No tags to add.'); + } diff --git a/.github/workflows/new_game.yml b/.github/workflows/new_game.yml index 8a95d1b4ed..4ebe16a757 100644 --- a/.github/workflows/new_game.yml +++ b/.github/workflows/new_game.yml @@ -1,45 +1,45 @@ -name: Add New Game Label -on: - issues: - types: - - opened - -jobs: - label: - runs-on: ubuntu-latest - - steps: - - name: Check if issue title contains "New Game" - id: check_title - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const issueTitle = context.payload.issue.title; - const isNewGame = issueTitle.includes('New game'); - console.log(`Issue title: ${issueTitle}`); - console.log(`Is New Game: ${isNewGame}`); - console.log(`Issue Number: ${context.payload.issue.number}`); - console.log(`Issue State: ${context.payload.issue.state}`); - console.log(`Issue URL: ${context.payload.issue.html_url}`); - console.log(`Repository: ${context.repo.owner}/${context.repo.repo}`); - console.log(`Repository URL: ${context.payload.repository.html_url}`); - console.log(`Repository Full Name: ${context.payload.repository.full_name}`); - console.log(`Repository Name: ${context.payload.repository.name}`); - console.log(`Repository Owner: ${context.payload.repository.owner.login}`); - console.log(`Repository Owner URL: ${context.payload.repository.owner.html_url}`); - console.log(`Event Name: ${context.eventName}`); - - core.setOutput('is_new_game', isNewGame.toString()); - - - name: Add "New Game" label - if: steps.check_title.outputs.is_new_game == 'true' - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const { owner, repo, number } = context.issue; - const label = 'New Game ๐ŸŽฎ'; - const level_label='level3'; - await github.issues.addLabels({ owner, repo, issue_number: number, labels: [label,level_label] }); - console.log(`Added label "${label}" to the issue.`); +name: Add New Game Label +on: + issues: + types: + - opened + +jobs: + label: + runs-on: ubuntu-latest + + steps: + - name: Check if issue title contains "New Game" + id: check_title + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const issueTitle = context.payload.issue.title; + const isNewGame = issueTitle.includes('New game'); + console.log(`Issue title: ${issueTitle}`); + console.log(`Is New Game: ${isNewGame}`); + console.log(`Issue Number: ${context.payload.issue.number}`); + console.log(`Issue State: ${context.payload.issue.state}`); + console.log(`Issue URL: ${context.payload.issue.html_url}`); + console.log(`Repository: ${context.repo.owner}/${context.repo.repo}`); + console.log(`Repository URL: ${context.payload.repository.html_url}`); + console.log(`Repository Full Name: ${context.payload.repository.full_name}`); + console.log(`Repository Name: ${context.payload.repository.name}`); + console.log(`Repository Owner: ${context.payload.repository.owner.login}`); + console.log(`Repository Owner URL: ${context.payload.repository.owner.html_url}`); + console.log(`Event Name: ${context.eventName}`); + + core.setOutput('is_new_game', isNewGame.toString()); + + - name: Add "New Game" label + if: steps.check_title.outputs.is_new_game == 'true' + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + const label = 'New Game ๐ŸŽฎ'; + const level_label='level3'; + await github.issues.addLabels({ owner, repo, issue_number: number, labels: [label,level_label] }); + console.log(`Added label "${label}" to the issue.`); diff --git a/.github/workflows/pr_close_greet.yml b/.github/workflows/pr_close_greet.yml index 814e727cf7..5e0c5347c9 100644 --- a/.github/workflows/pr_close_greet.yml +++ b/.github/workflows/pr_close_greet.yml @@ -1,22 +1,22 @@ -name: Comment on PR Closure -on: - pull_request_target: - types: - - closed - -jobs: - comment: - runs-on: ubuntu-latest - - steps: - - name: Comment on PR Closure - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const { owner, repo, number } = context.issue; - const commentAuthor = context.payload.pull_request.user.login; - const commentBody = `Thank you @${commentAuthor} , for your valuable time and contribution in our GameZone ๐Ÿ’—. \n Itโ€™s our GameZone, so Letโ€™s build this GameZone altogether !!๐Ÿค\n Hoping to see you soon with another PR again ๐Ÿ˜‡ \n Wishing you all the best for your journey into Open Source๐Ÿš€ - `; - await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); - console.log(`Commented on the closed PR: ${commentBody}.`); +name: Comment on PR Closure +on: + pull_request_target: + types: + - closed + +jobs: + comment: + runs-on: ubuntu-latest + + steps: + - name: Comment on PR Closure + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + const commentAuthor = context.payload.pull_request.user.login; + const commentBody = `Thank you @${commentAuthor} , for your valuable time and contribution in our GameZone ๐Ÿ’—. \n Itโ€™s our GameZone, so Letโ€™s build this GameZone altogether !!๐Ÿค\n Hoping to see you soon with another PR again ๐Ÿ˜‡ \n Wishing you all the best for your journey into Open Source๐Ÿš€ + `; + await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); + console.log(`Commented on the closed PR: ${commentBody}.`); diff --git a/.github/workflows/pr_greet.yml b/.github/workflows/pr_greet.yml index eda9dc1a9d..4ebc068efa 100644 --- a/.github/workflows/pr_greet.yml +++ b/.github/workflows/pr_greet.yml @@ -1,22 +1,22 @@ -name: Comment on PR Creation -on: - pull_request_target: - types: - - opened - -jobs: - comment: - runs-on: ubuntu-latest - - steps: - - name: Comment on PR - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const { owner, repo, number } = context.issue; - const commentAuthor = context.payload.sender.login; - const commentBody = `Thank you @${commentAuthor} ,for creating the PR and contributing to our GameZone ๐Ÿ’— \n Review team will review the PR and will reach out to you soon! ๐Ÿ˜‡ \n Make sure that you have marked all the tasks that you are done with โœ…. \n Thank you for your patience! ๐Ÿ˜€ - `; - await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); - console.log(`Commented on the PR: ${commentBody}.`); +name: Comment on PR Creation +on: + pull_request_target: + types: + - opened + +jobs: + comment: + runs-on: ubuntu-latest + + steps: + - name: Comment on PR + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const { owner, repo, number } = context.issue; + const commentAuthor = context.payload.sender.login; + const commentBody = `Thank you @${commentAuthor} ,for creating the PR and contributing to our GameZone ๐Ÿ’— \n Review team will review the PR and will reach out to you soon! ๐Ÿ˜‡ \n Make sure that you have marked all the tasks that you are done with โœ…. \n Thank you for your patience! ๐Ÿ˜€ + `; + await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); + console.log(`Commented on the PR: ${commentBody}.`); diff --git a/.github/workflows/remove_duplicate.yml b/.github/workflows/remove_duplicate.yml index a0947dfb39..8ec6ce4ff0 100644 --- a/.github/workflows/remove_duplicate.yml +++ b/.github/workflows/remove_duplicate.yml @@ -1,117 +1,117 @@ -name: Prevent Duplicate Issues -on: - issues: - types: - - opened - -jobs: - prevent-duplicate-issues: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Install dependencies - run: npm install --prefix .github string-similarity - - - name: Check for duplicate issue - id: check_duplicate - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const newIssueTitle = context.payload.issue.title ? context.payload.issue.title.toLowerCase() : ''; - const newIssueWords = newIssueTitle.split(' '); - - const { data: issues } = await github.issues.listForRepo({ - owner: context.repo.owner, - repo: context.repo.repo, - state: 'open', - per_page: 100 // Adjust the per_page value as per your requirements - }); - - const stringSimilarity = require('.github/node_modules/string-similarity'); - let isDuplicate = false; - let duplicateIssueNumber = null; - let similarIssueNumber = null; - - for (const issue of issues) { - if (issue.number === context.issue.number) { - continue; // Skip the current issue being checked - } - - const existingIssueTitle = issue.title ? issue.title.toLowerCase() : ''; - const existingIssueWords = existingIssueTitle.split(' '); - - let matchedWordCount = 0; - for (const word of newIssueWords) { - let maxSimilarity = 0; - for (const existingWord of existingIssueWords) { - const similarity = stringSimilarity.compareTwoStrings(word, existingWord); - if (similarity >= 0.75 && similarity > maxSimilarity) { - maxSimilarity = similarity; - } - } - if (maxSimilarity >= 0.75) { - matchedWordCount++; - } - } - - const similarityPercentage = (matchedWordCount / newIssueWords.length) * 100; - if (similarityPercentage >= 80) { - // Check if both current and similar issues have '[New Game]:' in the title - const hasNewGameTitle = newIssueTitle.includes('[new game]:'); - const hasSimilarNewGameTitle = existingIssueTitle.includes('[new game]:'); - - if (hasNewGameTitle && hasSimilarNewGameTitle) { - isDuplicate = true; - duplicateIssueNumber = issue.number; - similarIssueNumber = issue.number; - break; - } - } - } - - core.setOutput('is_duplicate', isDuplicate.toString()); - core.setOutput('duplicate_issue_number', duplicateIssueNumber ? duplicateIssueNumber.toString() : ''); - core.setOutput('similar_issue_number', similarIssueNumber ? similarIssueNumber.toString() : ''); - - - name: Close duplicate issue and comment - if: steps.check_duplicate.outputs.is_duplicate == 'true' - uses: actions/github-script@v4 - with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - script: | - const duplicateIssueNumber = parseInt('${{ steps.check_duplicate.outputs.duplicate_issue_number }}'); - const { owner, repo } = context.repo; - - // Close the newly created duplicate issue - await github.issues.update({ - owner: owner, - repo: repo, - issue_number: context.issue.number, - state: 'closed' - }); - - // Get the issue opener's username - const openerUsername = context.payload.issue.user.login; - - // Comment on the newly created duplicate issue - await github.issues.createComment({ - owner: owner, - repo: repo, - issue_number: context.issue.number, - body: `Hey @${openerUsername}! \nWe are already having a similar game request in #${duplicateIssueNumber} ๐Ÿ‘€ \nMake sure you come up with a cool unique idea ๐Ÿ˜€ \n Waiting for your new game idea ๐Ÿ’—.` - }); - - console.log(`Closed the duplicate issue #${duplicateIssueNumber}.`); - - - name: Skip if not a duplicate issue - if: steps.check_duplicate.outputs.is_duplicate != 'true' - run: echo "Not a duplicate issue. Skipping..." +name: Prevent Duplicate Issues +on: + issues: + types: + - opened + +jobs: + prevent-duplicate-issues: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies + run: npm install --prefix .github string-similarity + + - name: Check for duplicate issue + id: check_duplicate + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const newIssueTitle = context.payload.issue.title ? context.payload.issue.title.toLowerCase() : ''; + const newIssueWords = newIssueTitle.split(' '); + + const { data: issues } = await github.issues.listForRepo({ + owner: context.repo.owner, + repo: context.repo.repo, + state: 'open', + per_page: 100 // Adjust the per_page value as per your requirements + }); + + const stringSimilarity = require('.github/node_modules/string-similarity'); + let isDuplicate = false; + let duplicateIssueNumber = null; + let similarIssueNumber = null; + + for (const issue of issues) { + if (issue.number === context.issue.number) { + continue; // Skip the current issue being checked + } + + const existingIssueTitle = issue.title ? issue.title.toLowerCase() : ''; + const existingIssueWords = existingIssueTitle.split(' '); + + let matchedWordCount = 0; + for (const word of newIssueWords) { + let maxSimilarity = 0; + for (const existingWord of existingIssueWords) { + const similarity = stringSimilarity.compareTwoStrings(word, existingWord); + if (similarity >= 0.75 && similarity > maxSimilarity) { + maxSimilarity = similarity; + } + } + if (maxSimilarity >= 0.75) { + matchedWordCount++; + } + } + + const similarityPercentage = (matchedWordCount / newIssueWords.length) * 100; + if (similarityPercentage >= 80) { + // Check if both current and similar issues have '[New Game]:' in the title + const hasNewGameTitle = newIssueTitle.includes('[new game]:'); + const hasSimilarNewGameTitle = existingIssueTitle.includes('[new game]:'); + + if (hasNewGameTitle && hasSimilarNewGameTitle) { + isDuplicate = true; + duplicateIssueNumber = issue.number; + similarIssueNumber = issue.number; + break; + } + } + } + + core.setOutput('is_duplicate', isDuplicate.toString()); + core.setOutput('duplicate_issue_number', duplicateIssueNumber ? duplicateIssueNumber.toString() : ''); + core.setOutput('similar_issue_number', similarIssueNumber ? similarIssueNumber.toString() : ''); + + - name: Close duplicate issue and comment + if: steps.check_duplicate.outputs.is_duplicate == 'true' + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + script: | + const duplicateIssueNumber = parseInt('${{ steps.check_duplicate.outputs.duplicate_issue_number }}'); + const { owner, repo } = context.repo; + + // Close the newly created duplicate issue + await github.issues.update({ + owner: owner, + repo: repo, + issue_number: context.issue.number, + state: 'closed' + }); + + // Get the issue opener's username + const openerUsername = context.payload.issue.user.login; + + // Comment on the newly created duplicate issue + await github.issues.createComment({ + owner: owner, + repo: repo, + issue_number: context.issue.number, + body: `Hey @${openerUsername}! \nWe are already having a similar game request in #${duplicateIssueNumber} ๐Ÿ‘€ \nMake sure you come up with a cool unique idea ๐Ÿ˜€ \n Waiting for your new game idea ๐Ÿ’—.` + }); + + console.log(`Closed the duplicate issue #${duplicateIssueNumber}.`); + + - name: Skip if not a duplicate issue + if: steps.check_duplicate.outputs.is_duplicate != 'true' + run: echo "Not a duplicate issue. Skipping..." diff --git a/Games/3D_Car_Racing_Game/README.md b/Games/3D_Car_Racing_Game/README.md index 442b95967a..c34c4e7c2c 100644 --- a/Games/3D_Car_Racing_Game/README.md +++ b/Games/3D_Car_Racing_Game/README.md @@ -1,15 +1,15 @@ -# 3D-Car-Racing - -- Developed and designed a 3D Car Racing Game with the thrill of high-speed racing in stunning 3D environments, where one can weave through intense tracks and challenge competitors from around the globe. Get ready to unleash the adrenaline rush asone take the wheel of powerful cars in this immersive 3D Car Racing Game. - -# Link - - -- https://64c27929a6123c06b91f12a9--shiny-otter-46d119.netlify.app/ - -# Built with - -- HTML5 -- CSS3 - -Javscript - -![image](./car04.png) +# 3D-Car-Racing + +- Developed and designed a 3D Car Racing Game with the thrill of high-speed racing in stunning 3D environments, where one can weave through intense tracks and challenge competitors from around the globe. Get ready to unleash the adrenaline rush asone take the wheel of powerful cars in this immersive 3D Car Racing Game. + +# Link - + +- https://64c27929a6123c06b91f12a9--shiny-otter-46d119.netlify.app/ + +# Built with + +- HTML5 +- CSS3 + -Javscript + +![image](./car04.png) diff --git a/Games/3d_Snake/README.md b/Games/3d_Snake/README.md index 20846c4c4f..dc59ed2059 100644 --- a/Games/3d_Snake/README.md +++ b/Games/3d_Snake/README.md @@ -1,32 +1,32 @@ -# **Game_Name** - -3D Snake Game - -## **Description ๐Ÿ“ƒ** -Frontend game developed using HTML, CSS, JavaScript. Points will be gained by maximum number of eating. - -## **functionalities ๐ŸŽฎ** -- There will be snake in the game area -- Player can move the snake by using the arrow keys -- Once the snake eats the eating object points will be gained -- The more the snake eats more points will be gained accordingly - -## **How to play? ๐Ÿ•น๏ธ** -- Player can move the snake by using arrow keys -- Once the snake eats the food the player will get points - -## **Screenshots ๐Ÿ“ธ** - -![3d_Snake](https://github.com/kunjgit/GameZone/blob/main/assets/images/3d_Snake.png) - - -## **Working video ๐Ÿ“น** - - - -https://github.com/sujanrupu/GameZone/assets/103595490/1729301b-e85c-4fe7-848d-437da9a8a3b5 - - - - - +# **Game_Name** + +3D Snake Game + +## **Description ๐Ÿ“ƒ** +Frontend game developed using HTML, CSS, JavaScript. Points will be gained by maximum number of eating. + +## **functionalities ๐ŸŽฎ** +- There will be snake in the game area +- Player can move the snake by using the arrow keys +- Once the snake eats the eating object points will be gained +- The more the snake eats more points will be gained accordingly + +## **How to play? ๐Ÿ•น๏ธ** +- Player can move the snake by using arrow keys +- Once the snake eats the food the player will get points + +## **Screenshots ๐Ÿ“ธ** + +![3d_Snake](https://github.com/kunjgit/GameZone/blob/main/assets/images/3d_Snake.png) + + +## **Working video ๐Ÿ“น** + + + +https://github.com/sujanrupu/GameZone/assets/103595490/1729301b-e85c-4fe7-848d-437da9a8a3b5 + + + + + diff --git a/Games/Adventure_Game/README.md b/Games/Adventure_Game/README.md index 25ac3d4bf4..4f069fabba 100644 --- a/Games/Adventure_Game/README.md +++ b/Games/Adventure_Game/README.md @@ -1,37 +1,37 @@ -# **Adventure_Game** - ---- - -
- -## **Description ๐Ÿ“ƒ** - -- A no-JS adventure game created using only CSS. The game is a simple text adventure, where the player can move around a grid of squares and interact with objects. The game is controlled using the keyboard, and the player can move up, down, left, and right. The player can also interact with objects by clicking on them. - -## **functionalities ๐ŸŽฎ** - -- **Grid of squares**: The game is made up of a grid of squares, and the player can move around the grid using the keyboard. -- **Interacting with objects**: The game contains a few different objects, and the player can interact with objects by clicking on them. -- **Simple Interface**: The game has a simple text-based interface, but it is still a fun and challenging experience. -
- -## **How to play? ๐Ÿ•น๏ธ** - -- Click on the "Run" button to start the game. -- Use the keyboard to move around the grid of squares. -- Click on objects to interact with them. -- Follow the dialogue to complete the game. - -
- -## **Screenshots ๐Ÿ“ธ** - - - - -![image](https://github.com/Bindusree1515/GameZone/assets/91887086/8cdc9db1-2215-41e3-8593-3a0dcd22e3b4) - -
- -## **Working video ๐Ÿ“น** - +# **Adventure_Game** + +--- + +
+ +## **Description ๐Ÿ“ƒ** + +- A no-JS adventure game created using only CSS. The game is a simple text adventure, where the player can move around a grid of squares and interact with objects. The game is controlled using the keyboard, and the player can move up, down, left, and right. The player can also interact with objects by clicking on them. + +## **functionalities ๐ŸŽฎ** + +- **Grid of squares**: The game is made up of a grid of squares, and the player can move around the grid using the keyboard. +- **Interacting with objects**: The game contains a few different objects, and the player can interact with objects by clicking on them. +- **Simple Interface**: The game has a simple text-based interface, but it is still a fun and challenging experience. +
+ +## **How to play? ๐Ÿ•น๏ธ** + +- Click on the "Run" button to start the game. +- Use the keyboard to move around the grid of squares. +- Click on objects to interact with them. +- Follow the dialogue to complete the game. + +
+ +## **Screenshots ๐Ÿ“ธ** + + + + +![image](https://github.com/Bindusree1515/GameZone/assets/91887086/8cdc9db1-2215-41e3-8593-3a0dcd22e3b4) + +
+ +## **Working video ๐Ÿ“น** + diff --git a/Games/Aim_Training/README.md b/Games/Aim_Training/README.md index 22a4b2a28c..3a316777bc 100644 --- a/Games/Aim_Training/README.md +++ b/Games/Aim_Training/README.md @@ -1,44 +1,44 @@ -# **Game_Name** - -Aim Training ---- -
- -## **Description ๐Ÿ“ƒ** - -- Aim training game is a simple and addictive game where the player's objective is to pop as many bubbles as possible within a limited time. Colorful bubbles randomly appear on the screen, and the player must quickly click on them to pop them. Each popped bubble earns the player a point, and the score is displayed in real-time. The game lasts for 30 seconds. - -- The player starts the game by clicking the "Start" button. - -- Bubbles start appearing on the screen at regular intervals. - -- The player's goal is to click on the bubbles to pop them. - -- Overall, the game aims to test the player's agility, reflexes, and hand-eye coordination. - -## **functionalities ๐ŸŽฎ** - -- Colorful bubbles appear randomly on the screen at regular intervals. -- The player can click on the bubbles to pop them and earn points. -- The player's score is displayed in real-time, showing the number of bubbles popped. -- The highest score achieved is tracked and displayed as the high score. -
- -## **How to play? ๐Ÿ•น๏ธ** - -- just hit start and there you go. - -
- -## **Screenshots ๐Ÿ“ธ** - -
- - - -![Game image](https://github.com/kunjgit/GameZone/blob/main/assets/images/Aim_Training.png) - -
- - - +# **Game_Name** + +Aim Training +--- +
+ +## **Description ๐Ÿ“ƒ** + +- Aim training game is a simple and addictive game where the player's objective is to pop as many bubbles as possible within a limited time. Colorful bubbles randomly appear on the screen, and the player must quickly click on them to pop them. Each popped bubble earns the player a point, and the score is displayed in real-time. The game lasts for 30 seconds. + +- The player starts the game by clicking the "Start" button. + +- Bubbles start appearing on the screen at regular intervals. + +- The player's goal is to click on the bubbles to pop them. + +- Overall, the game aims to test the player's agility, reflexes, and hand-eye coordination. + +## **functionalities ๐ŸŽฎ** + +- Colorful bubbles appear randomly on the screen at regular intervals. +- The player can click on the bubbles to pop them and earn points. +- The player's score is displayed in real-time, showing the number of bubbles popped. +- The highest score achieved is tracked and displayed as the high score. +
+ +## **How to play? ๐Ÿ•น๏ธ** + +- just hit start and there you go. + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ + + +![Game image](https://github.com/kunjgit/GameZone/blob/main/assets/images/Aim_Training.png) + +
+ + + diff --git a/Games/Aim_Training/index.html b/Games/Aim_Training/index.html index fe562d49dc..4f26a87fe7 100644 --- a/Games/Aim_Training/index.html +++ b/Games/Aim_Training/index.html @@ -1,28 +1,28 @@ - - - - - - - Aim training - - - - -
-

Aim training

-
-
-
Score: 0
-
High Score: 0
-
Time Left: 30 seconds
-
-
- - - - - - + + + + + + + Aim training + + + + +
+

Aim training

+
+
+
Score: 0
+
High Score: 0
+
Time Left: 30 seconds
+
+
+ + + + + + diff --git a/Games/Aim_Training/script.js b/Games/Aim_Training/script.js index 9f22495f29..b26b5024aa 100644 --- a/Games/Aim_Training/script.js +++ b/Games/Aim_Training/script.js @@ -1,160 +1,160 @@ -// Variables -let score = 0; -let highScore = 0; -let timeLeft = 30; -let timerId; -let level = 1; -let bubbleInterval = 1000; -let gameInProgress = false; // Track if the game is in progress -let bubbleGenerationTimeout; // Store the timeout for bubble generation - -// Function to create a bubble -function createBubble() { - const bubble = document.createElement("div"); - bubble.className = "bubble"; - - // Generate random position - const posX = Math.random() * 500 + 50; - const posY = Math.random() * 300 + 50; - - bubble.style.top = `${posY}px`; - bubble.style.left = `${posX}px`; - - // Generate random size and color - const size = Math.floor(Math.random() * 30) + 20; - const color = `rgb(${Math.random() * 255}, ${Math.random() * 255}, ${Math.random() * 255})`; - - bubble.style.width = `${size}px`; - bubble.style.height = `${size}px`; - bubble.style.backgroundColor = color; - - // Event listener to pop the bubble - bubble.addEventListener("click", function () { - if (bubble.parentNode) { - score++; - document.getElementById("scoreValue").textContent = score; - bubble.parentNode.removeChild(bubble); - playPopSound(); - } - }); - - return bubble; -} - -// Function to start the game -function startGame() { - if (gameInProgress) { - return; // Return if game is already in progress - } - - const bubblesContainer = document.getElementById("bubbles"); - const timerElement = document.getElementById("timerValue"); - const startButton = document.getElementById("startButton"); - - // Clear previous bubbles - while (bubblesContainer.firstChild) { - bubblesContainer.firstChild.remove(); - } - - // Reset game state - score = 0; - timeLeft = 30; - level = 1; - bubbleInterval = 1000; - document.getElementById("scoreValue").textContent = score; - document.getElementById("timerValue").textContent = timeLeft; - gameInProgress = true; - - // Start the timer - timerId = setInterval(function () { - timeLeft--; - timerElement.textContent = timeLeft; - - if (timeLeft === 10) { - showAlert(timeLeft); - } - - if (timeLeft === 0) { - clearInterval(timerId); - endGame(); - } - }, 1000); - - // Start generating bubbles - generateBubble(bubblesContainer); - - // Disable start button during gameplay - startButton.disabled = true; -} - -// Function to generate bubbles -function generateBubble(container) { - if (!gameInProgress) { - return; // Return if game is not in progress - } - - const bubble = createBubble(); - container.appendChild(bubble); - - // Schedule next bubble generation - bubbleGenerationTimeout = setTimeout(function () { - generateBubble(container); - }, bubbleInterval); -} - -// Function to end the game -function endGame() { - gameInProgress = false; // Set gameInProgress to false - - // Clear bubble generation timeout - clearTimeout(bubbleGenerationTimeout); - - const startButton = document.getElementById("startButton"); - startButton.disabled = false; - playEndSound(); - - // Update high score - if (score > highScore) { - highScore = score; - document.getElementById("highScoreValue").textContent = highScore; - } - - // Display game over message - setTimeout(function () { - alert("Game Over! Your score: " + score); - }, 100); -} - -// Function to play bubble pop sound -function playPopSound() { - const popSound = document.getElementById("popSound"); - popSound.currentTime = 0; - popSound.play(); -} - -// Function to play game end sound -function playEndSound() { - const endSound = document.getElementById("endSound"); - endSound.currentTime = 0; - endSound.play(); -} - -// Function to show alert message -function showAlert(secondsLeft) { - const alertMessage = document.getElementById("countdown-alert"); - alertMessage.textContent = `${secondsLeft} seconds left!`; - alertMessage.style.display = 'block'; - -// Update the countdown every second until the game ends -const updateInterval = setInterval(() => { - secondsLeft--; - alertMessage.textContent = `${secondsLeft} seconds left!`; - if (secondsLeft <= 0) { - clearInterval(updateInterval); - alertMessage.style.display = 'none'; - } -}, 1000); -} - -// Event listener for start button -document.getElementById("startButton").addEventListener("click", startGame); +// Variables +let score = 0; +let highScore = 0; +let timeLeft = 30; +let timerId; +let level = 1; +let bubbleInterval = 1000; +let gameInProgress = false; // Track if the game is in progress +let bubbleGenerationTimeout; // Store the timeout for bubble generation + +// Function to create a bubble +function createBubble() { + const bubble = document.createElement("div"); + bubble.className = "bubble"; + + // Generate random position + const posX = Math.random() * 500 + 50; + const posY = Math.random() * 300 + 50; + + bubble.style.top = `${posY}px`; + bubble.style.left = `${posX}px`; + + // Generate random size and color + const size = Math.floor(Math.random() * 30) + 20; + const color = `rgb(${Math.random() * 255}, ${Math.random() * 255}, ${Math.random() * 255})`; + + bubble.style.width = `${size}px`; + bubble.style.height = `${size}px`; + bubble.style.backgroundColor = color; + + // Event listener to pop the bubble + bubble.addEventListener("click", function () { + if (bubble.parentNode) { + score++; + document.getElementById("scoreValue").textContent = score; + bubble.parentNode.removeChild(bubble); + playPopSound(); + } + }); + + return bubble; +} + +// Function to start the game +function startGame() { + if (gameInProgress) { + return; // Return if game is already in progress + } + + const bubblesContainer = document.getElementById("bubbles"); + const timerElement = document.getElementById("timerValue"); + const startButton = document.getElementById("startButton"); + + // Clear previous bubbles + while (bubblesContainer.firstChild) { + bubblesContainer.firstChild.remove(); + } + + // Reset game state + score = 0; + timeLeft = 30; + level = 1; + bubbleInterval = 1000; + document.getElementById("scoreValue").textContent = score; + document.getElementById("timerValue").textContent = timeLeft; + gameInProgress = true; + + // Start the timer + timerId = setInterval(function () { + timeLeft--; + timerElement.textContent = timeLeft; + + if (timeLeft === 10) { + showAlert(timeLeft); + } + + if (timeLeft === 0) { + clearInterval(timerId); + endGame(); + } + }, 1000); + + // Start generating bubbles + generateBubble(bubblesContainer); + + // Disable start button during gameplay + startButton.disabled = true; +} + +// Function to generate bubbles +function generateBubble(container) { + if (!gameInProgress) { + return; // Return if game is not in progress + } + + const bubble = createBubble(); + container.appendChild(bubble); + + // Schedule next bubble generation + bubbleGenerationTimeout = setTimeout(function () { + generateBubble(container); + }, bubbleInterval); +} + +// Function to end the game +function endGame() { + gameInProgress = false; // Set gameInProgress to false + + // Clear bubble generation timeout + clearTimeout(bubbleGenerationTimeout); + + const startButton = document.getElementById("startButton"); + startButton.disabled = false; + playEndSound(); + + // Update high score + if (score > highScore) { + highScore = score; + document.getElementById("highScoreValue").textContent = highScore; + } + + // Display game over message + setTimeout(function () { + alert("Game Over! Your score: " + score); + }, 100); +} + +// Function to play bubble pop sound +function playPopSound() { + const popSound = document.getElementById("popSound"); + popSound.currentTime = 0; + popSound.play(); +} + +// Function to play game end sound +function playEndSound() { + const endSound = document.getElementById("endSound"); + endSound.currentTime = 0; + endSound.play(); +} + +// Function to show alert message +function showAlert(secondsLeft) { + const alertMessage = document.getElementById("countdown-alert"); + alertMessage.textContent = `${secondsLeft} seconds left!`; + alertMessage.style.display = 'block'; + +// Update the countdown every second until the game ends +const updateInterval = setInterval(() => { + secondsLeft--; + alertMessage.textContent = `${secondsLeft} seconds left!`; + if (secondsLeft <= 0) { + clearInterval(updateInterval); + alertMessage.style.display = 'none'; + } +}, 1000); +} + +// Event listener for start button +document.getElementById("startButton").addEventListener("click", startGame); diff --git a/Games/Aim_Training/styles.css b/Games/Aim_Training/styles.css index 2f7a19172a..4ccf4bbaf6 100644 --- a/Games/Aim_Training/styles.css +++ b/Games/Aim_Training/styles.css @@ -1,115 +1,115 @@ -body { - text-align: center; - background-color: #d3d3d3; -} - -h1 { - color: #333; - font-size: 3em; /* Increase font size */ - font-weight: bold; /* Make the text bold */ - text-transform: uppercase; /* Uppercase letters */ - letter-spacing: 5px; /* Add letter spacing */ - text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Add text shadow */ - margin: 20px 0; /* Add some margin */ -} - -#gameContainer { - margin-top: 50px; - position: relative; - border-radius: 20px; /* Add border radius */ -} - -#score, -#highScore, -#timer { - font-size: 20px; - color: #333; - margin-bottom: 10px; -} - -#bubbles { - position: relative; - width: 600px; - height: 400px; - margin: 0 auto; - background-color: #ccc; - border: 2px solid #333; - border-radius: 10px; - overflow: hidden; -} - -.bubble { - position: absolute; - width: 50px; - height: 50px; - border-radius: 50%; - background-color: #f00; - cursor: pointer; - transition: top 0.5s ease-in-out, left 0.5s ease-in-out; - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Add box shadow */ -} - -.bubble:hover { - background-color: #f00; - transform: scale(1.2); - transform: scale(1.2); - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Increase shadow on hover */ - transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Add transition */ -} - -#scoreValue, -#highScoreValue { - font-weight: bold; -} - -#timerValue { - font-weight: bold; - animation: blink 1s infinite; -} - -.start-button { - padding: 10px 20px; - font-size: 16px; - background-color: #333; - color: #fff; - border: none; - cursor: pointer; - margin-top: 20px; - transition: transform 0.2s ease-in-out; /* Add transition */ -} -.start-button:hover { - transform: scale(1.1); /* Scale up on hover */ -} - -#countdown-alert { - position: fixed; - top: 10px; - left: 50%; - transform: translateX(-50%); - background-color: red; - color: white; - padding: 10px 20px; - border-radius: 10px; - font-size: 1.2em; - display: none; - z-index: 1000; /* Ensure it's on top */ -} - -@keyframes countdown { - 0% { - transform: scale(1); - } - 50% { - transform: scale(1.1); - } - 100% { - transform: scale(1); - } -} - -@media (max-width: 768px) { - #bubbles { - width: 80%; - height: 300px; - } -} +body { + text-align: center; + background-color: #d3d3d3; +} + +h1 { + color: #333; + font-size: 3em; /* Increase font size */ + font-weight: bold; /* Make the text bold */ + text-transform: uppercase; /* Uppercase letters */ + letter-spacing: 5px; /* Add letter spacing */ + text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Add text shadow */ + margin: 20px 0; /* Add some margin */ +} + +#gameContainer { + margin-top: 50px; + position: relative; + border-radius: 20px; /* Add border radius */ +} + +#score, +#highScore, +#timer { + font-size: 20px; + color: #333; + margin-bottom: 10px; +} + +#bubbles { + position: relative; + width: 600px; + height: 400px; + margin: 0 auto; + background-color: #ccc; + border: 2px solid #333; + border-radius: 10px; + overflow: hidden; +} + +.bubble { + position: absolute; + width: 50px; + height: 50px; + border-radius: 50%; + background-color: #f00; + cursor: pointer; + transition: top 0.5s ease-in-out, left 0.5s ease-in-out; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Add box shadow */ +} + +.bubble:hover { + background-color: #f00; + transform: scale(1.2); + transform: scale(1.2); + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Increase shadow on hover */ + transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Add transition */ +} + +#scoreValue, +#highScoreValue { + font-weight: bold; +} + +#timerValue { + font-weight: bold; + animation: blink 1s infinite; +} + +.start-button { + padding: 10px 20px; + font-size: 16px; + background-color: #333; + color: #fff; + border: none; + cursor: pointer; + margin-top: 20px; + transition: transform 0.2s ease-in-out; /* Add transition */ +} +.start-button:hover { + transform: scale(1.1); /* Scale up on hover */ +} + +#countdown-alert { + position: fixed; + top: 10px; + left: 50%; + transform: translateX(-50%); + background-color: red; + color: white; + padding: 10px 20px; + border-radius: 10px; + font-size: 1.2em; + display: none; + z-index: 1000; /* Ensure it's on top */ +} + +@keyframes countdown { + 0% { + transform: scale(1); + } + 50% { + transform: scale(1.1); + } + 100% { + transform: scale(1); + } +} + +@media (max-width: 768px) { + #bubbles { + width: 80%; + height: 300px; + } +} diff --git a/Games/AirBalloon/index.html b/Games/AirBalloon/index.html index f0485c83f1..50ea502670 100644 --- a/Games/AirBalloon/index.html +++ b/Games/AirBalloon/index.html @@ -1,24 +1,24 @@ - - - - - - - Document - - - -
-
- -
-

Hold down the mouse to raise

-

Fly low to save fuel

-
- -
- - - + + + + + + + Document + + + +
+
+ +
+

Hold down the mouse to raise

+

Fly low to save fuel

+
+ +
+ + + \ No newline at end of file diff --git a/Games/AirBalloon/scripts.js b/Games/AirBalloon/scripts.js index 727804dd22..fbe813f2cf 100644 --- a/Games/AirBalloon/scripts.js +++ b/Games/AirBalloon/scripts.js @@ -1,451 +1,451 @@ -let gameStarted; // Boolean - -let balloonX; -let balloonY; - -let verticalVelocity; // Current vertical velocity of the balloon -let horizontalVelocity; // Current horizontal velocity of the balloon - -let fuel; // Percentage of fuel left -let heating; // Boolean: Is the mouse down or not? - -let trees; // Metadata of the trees in an array -let backgroundTrees; // Metadata of the trees on the hills in the background - -// Configuration -const mainAreaWidth = 400; -const mainAreaHeight = 375; -let horizontalPadding = (window.innerWidth - mainAreaWidth) / 2; -let verticalPadding = (window.innerHeight - mainAreaHeight) / 2; - -const hill1BaseHeight = 80; -const hill1Speed = 0.2; -const hill1Amplitude = 10; -const hill1Stretch = 1; -const hill2BaseHeight = 50; -const hill2Speed = 0.2; -const hill2Amplitude = 15; -const hill2Stretch = 0.5; -const hill3BaseHeight = 15; -const hill3Speed = 1; -const hill3Amplitude = 10; -const hill3Stretch = 0.2; - -const canvas = document.getElementById("game"); -canvas.width = window.innerWidth; -canvas.height = window.innerHeight; - -const ctx = canvas.getContext("2d"); - -const introductionElement = document.getElementById("introduction"); -const restartButton = document.getElementById("restart"); - -// Add a custom sin function that takes degrees instead of radians -Math.sinus = function (degree) { - return Math.sin((degree / 180) * Math.PI); -}; - -// Initialize layout -resetGame(); - -// Resets game variables and layouts but does not start the game (game starts on keypress) -function resetGame() { - // Reset game progress - gameStarted = false; - heating = false; - verticalVelocity = 5; - horizontalVelocity = 5; - balloonX = 0; - balloonY = 0; - fuel = 100; - - introductionElement.style.opacity = 1; - restartButton.style.display = "none"; - - trees = []; - for (let i = 1; i < window.innerWidth / 50; i++) generateTree(); - - backgroundTrees = []; - for (let i = 1; i < window.innerWidth / 30; i++) generateBackgroundTree(); - - draw(); -} - -function generateBackgroundTree() { - const minimumGap = 30; - const maximumGap = 150; - - // X coordinate of the right edge of the furthest tree - const lastTree = backgroundTrees[backgroundTrees.length - 1]; - let furthestX = lastTree ? lastTree.x : 0; - - const x = - furthestX + - minimumGap + - Math.floor(Math.random() * (maximumGap - minimumGap)); - - const treeColors = ["#6D8821", "#8FAC34", "#98B333"]; - const color = treeColors[Math.floor(Math.random() * 3)]; - - backgroundTrees.push({ x, color }); -} - -function generateTree() { - const minimumGap = 50; // Minimum distance between two trees - const maximumGap = 600; // Maximum distance between two trees - - const x = trees.length - ? trees[trees.length - 1].x + - minimumGap + - Math.floor(Math.random() * (maximumGap - minimumGap)) - : 400; - - const h = 60 + Math.random() * 80; // Height - - const r1 = 32 + Math.random() * 16; // Radius - const r2 = 32 + Math.random() * 16; - const r3 = 32 + Math.random() * 16; - const r4 = 32 + Math.random() * 16; - const r5 = 32 + Math.random() * 16; - const r6 = 32 + Math.random() * 16; - const r7 = 32 + Math.random() * 16; - - const treeColors = ["#6D8821", "#8FAC34", "#98B333"]; - const color = treeColors[Math.floor(Math.random() * 3)]; - - trees.push({ x, h, r1, r2, r3, r4, r5, r6, r7, color }); -} - -resetGame(); - -// If space was pressed restart the game -window.addEventListener("keydown", function (event) { - if (event.key == " ") { - event.preventDefault(); - resetGame(); - return; - } -}); - -window.addEventListener("mousedown", function () { - heating = true; - - if (!gameStarted) { - introductionElement.style.opacity = 0; - gameStarted = true; - window.requestAnimationFrame(animate); - } -}); - -window.addEventListener("mouseup", function () { - heating = false; -}); - -window.addEventListener("resize", function () { - canvas.width = window.innerWidth; - canvas.height = window.innerHeight; - horizontalPadding = (window.innerWidth - mainAreaWidth) / 2; - verticalPadding = (window.innerHeight - mainAreaHeight) / 2; - draw(); -}); - -// The main game loop -function animate() { - if (!gameStarted) return; - - const velocityChangeWhileHeating = 0.4; - const velocityChangeWhileCooling = 0.2; - - if (heating && fuel > 0) { - if (verticalVelocity > -8) { - // Limit maximum rising spead - verticalVelocity -= velocityChangeWhileHeating; - } - fuel -= 0.002 * -balloonY; - } else if (verticalVelocity < 5) { - // Limit maximum descending spead - verticalVelocity += velocityChangeWhileCooling; - } - - balloonY += verticalVelocity; // Move the balloon up or down - if (balloonY > 0) balloonY = 0; // The balloon landed on the ground - if (balloonY < 0) balloonX += horizontalVelocity; // Move balloon to the right if not on the ground - - // If a tree moves out of the picture replace it with a new one - if (trees[0].x - (balloonX - horizontalPadding) < -100) { - trees.shift(); // Remove first item in array - generateTree(); // Add a new item to the array - } - - // If a tree on the background hill moves out of the picture replace it with a new one - if ( - backgroundTrees[0].x - (balloonX * hill1Speed - horizontalPadding) < - -40 - ) { - backgroundTrees.shift(); // Remove first item in array - generateBackgroundTree(); // Add a new item to the array - } - - draw(); // Re-render the whole scene - - // If the balloon hit a tree OR ran out of fuel and landed then stop the game - const hit = hitDetection(); - if (hit || (fuel <= 0 && balloonY >= 0)) { - restartButton.style.display = "block"; - return; - } - - window.requestAnimationFrame(animate); -} - -function draw() { - ctx.clearRect(0, 0, window.innerWidth, window.innerHeight); - - drawSky(); // Fill the background with a gradient - - ctx.save(); - ctx.translate(0, verticalPadding + mainAreaHeight); - drawBackgroundHills(); - - ctx.translate(horizontalPadding, 0); - - // Center main canvas area to the middle of the screen - ctx.translate(-balloonX, 0); - - // Draw scene - drawTrees(); - drawBalloon(); - - // Restore transformation - ctx.restore(); - - // Header is last because it's on top of everything else - drawHeader(); -} - -restartButton.addEventListener("click", function (event) { - event.preventDefault(); - resetGame(); - restartButton.style.display = "none"; -}); - -function drawCircle(cx, cy, radius) { - ctx.beginPath(); - ctx.arc(cx, cy, radius, 0, 2 * Math.PI); - ctx.fill(); -} - -function drawTrees() { - trees.forEach(({ x, h, r1, r2, r3, r4, r5, r6, r7, color }) => { - ctx.save(); - ctx.translate(x, 0); - - // Trunk - const trunkWidth = 40; - ctx.fillStyle = "#885F37"; - ctx.beginPath(); - ctx.moveTo(-trunkWidth / 2, 0); - ctx.quadraticCurveTo(-trunkWidth / 4, -h / 2, -trunkWidth / 2, -h); - ctx.lineTo(trunkWidth / 2, -h); - ctx.quadraticCurveTo(trunkWidth / 4, -h / 2, trunkWidth / 2, 0); - ctx.closePath(); - ctx.fill(); - - // Crown - ctx.fillStyle = color; - drawCircle(-20, -h - 15, r1); - drawCircle(-30, -h - 25, r2); - drawCircle(-20, -h - 35, r3); - drawCircle(0, -h - 45, r4); - drawCircle(20, -h - 35, r5); - drawCircle(30, -h - 25, r6); - drawCircle(20, -h - 15, r7); - - ctx.restore(); - }); -} - -function drawBalloon() { - ctx.save(); - - ctx.translate(balloonX, balloonY); - - // Cart - ctx.fillStyle = "#DB504A"; - ctx.fillRect(-30, -40, 60, 10); - ctx.fillStyle = "#EA9E8D"; - ctx.fillRect(-30, -30, 60, 30); - - // Cables - ctx.strokeStyle = "#D62828"; - ctx.lineWidth = 2; - ctx.beginPath(); - ctx.moveTo(-24, -40); - ctx.lineTo(-24, -60); - ctx.moveTo(24, -40); - ctx.lineTo(24, -60); - ctx.stroke(); - - // Balloon - ctx.fillStyle = "#D62828"; - ctx.beginPath(); - ctx.moveTo(-30, -60); - ctx.quadraticCurveTo(-80, -120, -80, -160); - ctx.arc(0, -160, 80, Math.PI, 0, false); - ctx.quadraticCurveTo(80, -120, 30, -60); - ctx.closePath(); - ctx.fill(); - - ctx.restore(); -} - -function drawHeader() { - // Fuel meter - ctx.strokeStyle = fuel <= 30 ? "red" : "white"; - ctx.strokeRect(30, 30, 150, 30); - ctx.fillStyle = fuel <= 30 - ? "rgba(255,0,0,0.5)" - : "rgba(150,150,200,0.5)"; - ctx.fillRect(30, 30, (150 * fuel) / 100, 30); - - // Score - const score = Math.floor(balloonX / 30); - ctx.fillStyle = "black"; - ctx.font = "bold 32px Tahoma"; - ctx.textAlign = "end"; - ctx.textBaseline = "top"; - ctx.fillText(`${score} m`, window.innerWidth - 30, 30); -} - -function drawSky() { - var gradient = ctx.createLinearGradient(0, 0, 0, window.innerHeight); - gradient.addColorStop(0, "#AADBEA"); - gradient.addColorStop(1, "#FEF1E1"); - ctx.fillStyle = gradient; - ctx.fillRect(0, 0, window.innerWidth, window.innerHeight); -} - -function drawBackgroundHills() { - // Draw hills - drawHill( - hill1BaseHeight, - hill1Speed, - hill1Amplitude, - hill1Stretch, - "#AAD155" // #95C629" - ); - drawHill( - hill2BaseHeight, - hill2Speed, - hill2Amplitude, - hill2Stretch, - "#84B249" // "#659F1C" - ); - - drawHill( - hill3BaseHeight, - hill3Speed, - hill3Amplitude, - hill3Stretch, - "#26532B" - ); - - // Draw background trees - backgroundTrees.forEach((tree) => drawBackgroundTree(tree.x, tree.color)); -} - -// A hill is a shape under a stretched out sinus wave -function drawHill(baseHeight, speedMultiplier, amplitude, stretch, color) { - ctx.beginPath(); - ctx.moveTo(0, window.innerHeight); - ctx.lineTo(0, getHillY(0, baseHeight, amplitude, stretch)); - for (let i = 0; i <= window.innerWidth; i++) { - ctx.lineTo(i, getHillY(i, baseHeight, speedMultiplier, amplitude, stretch)); - } - ctx.lineTo(window.innerWidth, window.innerHeight); - ctx.fillStyle = color; - ctx.fill(); -} - -function drawBackgroundTree(x, color) { - ctx.save(); - ctx.translate( - (-balloonX * hill1Speed + x) * hill1Stretch, - getTreeY(x, hill1BaseHeight, hill1Amplitude) - ); - - const treeTrunkHeight = 5; - const treeTrunkWidth = 2; - const treeCrownHeight = 25; - const treeCrownWidth = 10; - - // Draw trunk - ctx.fillStyle = "#7D833C"; - ctx.fillRect( - -treeTrunkWidth / 2, - -treeTrunkHeight, - treeTrunkWidth, - treeTrunkHeight - ); - - // Draw crown - ctx.beginPath(); - ctx.moveTo(-treeCrownWidth / 2, -treeTrunkHeight); - ctx.lineTo(0, -(treeTrunkHeight + treeCrownHeight)); - ctx.lineTo(treeCrownWidth / 2, -treeTrunkHeight); - ctx.fillStyle = color; - ctx.fill(); - - ctx.restore(); -} - -function getHillY(x, baseHeight, speedMultiplier, amplitude, stretch) { - const sineBaseY = -baseHeight; - return ( - Math.sinus((balloonX * speedMultiplier + x) * stretch) * amplitude + - sineBaseY - ); -} - -function getTreeY(x, baseHeight, amplitude) { - const sineBaseY = -baseHeight; - return Math.sinus(x) * amplitude + sineBaseY; -} - -function hitDetection() { - const cartBottomLeft = { x: balloonX - 30, y: balloonY }; - const cartBottomRight = { x: balloonX + 30, y: balloonY }; - const cartTopRight = { x: balloonX + 30, y: balloonY - 40 }; - - for (const { x, h, r1, r2, r3, r4, r5 } of trees) { - const treeBottomLeft = { x: x - 20, y: -h - 15 }; - const treeLeft = { x: x - 30, y: -h - 25 }; - const treeTopLeft = { x: x - 20, y: -h - 35 }; - const treeTop = { x: x, y: -h - 45 }; - const treeTopRight = { x: x + 20, y: -h - 35 }; - - if (getDistance(cartBottomLeft, treeBottomLeft) < r1) return true; - if (getDistance(cartBottomRight, treeBottomLeft) < r1) return true; - if (getDistance(cartTopRight, treeBottomLeft) < r1) return true; - - if (getDistance(cartBottomLeft, treeLeft) < r2) return true; - if (getDistance(cartBottomRight, treeLeft) < r2) return true; - if (getDistance(cartTopRight, treeLeft) < r2) return true; - - if (getDistance(cartBottomLeft, treeTopLeft) < r3) return true; - if (getDistance(cartBottomRight, treeTopLeft) < r3) return true; - if (getDistance(cartTopRight, treeTopLeft) < r3) return true; - - if (getDistance(cartBottomLeft, treeTop) < r4) return true; - if (getDistance(cartBottomRight, treeTop) < r4) return true; - if (getDistance(cartTopRight, treeTop) < r4) return true; - - if (getDistance(cartBottomLeft, treeTopRight) < r5) return true; - if (getDistance(cartBottomRight, treeTopRight) < r5) return true; - if (getDistance(cartTopRight, treeTopRight) < r5) return true; - } -} - -function getDistance(point1, point2) { - return Math.sqrt((point2.x - point1.x) ** 2 + (point2.y - point1.y) ** 2); -} +let gameStarted; // Boolean + +let balloonX; +let balloonY; + +let verticalVelocity; // Current vertical velocity of the balloon +let horizontalVelocity; // Current horizontal velocity of the balloon + +let fuel; // Percentage of fuel left +let heating; // Boolean: Is the mouse down or not? + +let trees; // Metadata of the trees in an array +let backgroundTrees; // Metadata of the trees on the hills in the background + +// Configuration +const mainAreaWidth = 400; +const mainAreaHeight = 375; +let horizontalPadding = (window.innerWidth - mainAreaWidth) / 2; +let verticalPadding = (window.innerHeight - mainAreaHeight) / 2; + +const hill1BaseHeight = 80; +const hill1Speed = 0.2; +const hill1Amplitude = 10; +const hill1Stretch = 1; +const hill2BaseHeight = 50; +const hill2Speed = 0.2; +const hill2Amplitude = 15; +const hill2Stretch = 0.5; +const hill3BaseHeight = 15; +const hill3Speed = 1; +const hill3Amplitude = 10; +const hill3Stretch = 0.2; + +const canvas = document.getElementById("game"); +canvas.width = window.innerWidth; +canvas.height = window.innerHeight; + +const ctx = canvas.getContext("2d"); + +const introductionElement = document.getElementById("introduction"); +const restartButton = document.getElementById("restart"); + +// Add a custom sin function that takes degrees instead of radians +Math.sinus = function (degree) { + return Math.sin((degree / 180) * Math.PI); +}; + +// Initialize layout +resetGame(); + +// Resets game variables and layouts but does not start the game (game starts on keypress) +function resetGame() { + // Reset game progress + gameStarted = false; + heating = false; + verticalVelocity = 5; + horizontalVelocity = 5; + balloonX = 0; + balloonY = 0; + fuel = 100; + + introductionElement.style.opacity = 1; + restartButton.style.display = "none"; + + trees = []; + for (let i = 1; i < window.innerWidth / 50; i++) generateTree(); + + backgroundTrees = []; + for (let i = 1; i < window.innerWidth / 30; i++) generateBackgroundTree(); + + draw(); +} + +function generateBackgroundTree() { + const minimumGap = 30; + const maximumGap = 150; + + // X coordinate of the right edge of the furthest tree + const lastTree = backgroundTrees[backgroundTrees.length - 1]; + let furthestX = lastTree ? lastTree.x : 0; + + const x = + furthestX + + minimumGap + + Math.floor(Math.random() * (maximumGap - minimumGap)); + + const treeColors = ["#6D8821", "#8FAC34", "#98B333"]; + const color = treeColors[Math.floor(Math.random() * 3)]; + + backgroundTrees.push({ x, color }); +} + +function generateTree() { + const minimumGap = 50; // Minimum distance between two trees + const maximumGap = 600; // Maximum distance between two trees + + const x = trees.length + ? trees[trees.length - 1].x + + minimumGap + + Math.floor(Math.random() * (maximumGap - minimumGap)) + : 400; + + const h = 60 + Math.random() * 80; // Height + + const r1 = 32 + Math.random() * 16; // Radius + const r2 = 32 + Math.random() * 16; + const r3 = 32 + Math.random() * 16; + const r4 = 32 + Math.random() * 16; + const r5 = 32 + Math.random() * 16; + const r6 = 32 + Math.random() * 16; + const r7 = 32 + Math.random() * 16; + + const treeColors = ["#6D8821", "#8FAC34", "#98B333"]; + const color = treeColors[Math.floor(Math.random() * 3)]; + + trees.push({ x, h, r1, r2, r3, r4, r5, r6, r7, color }); +} + +resetGame(); + +// If space was pressed restart the game +window.addEventListener("keydown", function (event) { + if (event.key == " ") { + event.preventDefault(); + resetGame(); + return; + } +}); + +window.addEventListener("mousedown", function () { + heating = true; + + if (!gameStarted) { + introductionElement.style.opacity = 0; + gameStarted = true; + window.requestAnimationFrame(animate); + } +}); + +window.addEventListener("mouseup", function () { + heating = false; +}); + +window.addEventListener("resize", function () { + canvas.width = window.innerWidth; + canvas.height = window.innerHeight; + horizontalPadding = (window.innerWidth - mainAreaWidth) / 2; + verticalPadding = (window.innerHeight - mainAreaHeight) / 2; + draw(); +}); + +// The main game loop +function animate() { + if (!gameStarted) return; + + const velocityChangeWhileHeating = 0.4; + const velocityChangeWhileCooling = 0.2; + + if (heating && fuel > 0) { + if (verticalVelocity > -8) { + // Limit maximum rising spead + verticalVelocity -= velocityChangeWhileHeating; + } + fuel -= 0.002 * -balloonY; + } else if (verticalVelocity < 5) { + // Limit maximum descending spead + verticalVelocity += velocityChangeWhileCooling; + } + + balloonY += verticalVelocity; // Move the balloon up or down + if (balloonY > 0) balloonY = 0; // The balloon landed on the ground + if (balloonY < 0) balloonX += horizontalVelocity; // Move balloon to the right if not on the ground + + // If a tree moves out of the picture replace it with a new one + if (trees[0].x - (balloonX - horizontalPadding) < -100) { + trees.shift(); // Remove first item in array + generateTree(); // Add a new item to the array + } + + // If a tree on the background hill moves out of the picture replace it with a new one + if ( + backgroundTrees[0].x - (balloonX * hill1Speed - horizontalPadding) < + -40 + ) { + backgroundTrees.shift(); // Remove first item in array + generateBackgroundTree(); // Add a new item to the array + } + + draw(); // Re-render the whole scene + + // If the balloon hit a tree OR ran out of fuel and landed then stop the game + const hit = hitDetection(); + if (hit || (fuel <= 0 && balloonY >= 0)) { + restartButton.style.display = "block"; + return; + } + + window.requestAnimationFrame(animate); +} + +function draw() { + ctx.clearRect(0, 0, window.innerWidth, window.innerHeight); + + drawSky(); // Fill the background with a gradient + + ctx.save(); + ctx.translate(0, verticalPadding + mainAreaHeight); + drawBackgroundHills(); + + ctx.translate(horizontalPadding, 0); + + // Center main canvas area to the middle of the screen + ctx.translate(-balloonX, 0); + + // Draw scene + drawTrees(); + drawBalloon(); + + // Restore transformation + ctx.restore(); + + // Header is last because it's on top of everything else + drawHeader(); +} + +restartButton.addEventListener("click", function (event) { + event.preventDefault(); + resetGame(); + restartButton.style.display = "none"; +}); + +function drawCircle(cx, cy, radius) { + ctx.beginPath(); + ctx.arc(cx, cy, radius, 0, 2 * Math.PI); + ctx.fill(); +} + +function drawTrees() { + trees.forEach(({ x, h, r1, r2, r3, r4, r5, r6, r7, color }) => { + ctx.save(); + ctx.translate(x, 0); + + // Trunk + const trunkWidth = 40; + ctx.fillStyle = "#885F37"; + ctx.beginPath(); + ctx.moveTo(-trunkWidth / 2, 0); + ctx.quadraticCurveTo(-trunkWidth / 4, -h / 2, -trunkWidth / 2, -h); + ctx.lineTo(trunkWidth / 2, -h); + ctx.quadraticCurveTo(trunkWidth / 4, -h / 2, trunkWidth / 2, 0); + ctx.closePath(); + ctx.fill(); + + // Crown + ctx.fillStyle = color; + drawCircle(-20, -h - 15, r1); + drawCircle(-30, -h - 25, r2); + drawCircle(-20, -h - 35, r3); + drawCircle(0, -h - 45, r4); + drawCircle(20, -h - 35, r5); + drawCircle(30, -h - 25, r6); + drawCircle(20, -h - 15, r7); + + ctx.restore(); + }); +} + +function drawBalloon() { + ctx.save(); + + ctx.translate(balloonX, balloonY); + + // Cart + ctx.fillStyle = "#DB504A"; + ctx.fillRect(-30, -40, 60, 10); + ctx.fillStyle = "#EA9E8D"; + ctx.fillRect(-30, -30, 60, 30); + + // Cables + ctx.strokeStyle = "#D62828"; + ctx.lineWidth = 2; + ctx.beginPath(); + ctx.moveTo(-24, -40); + ctx.lineTo(-24, -60); + ctx.moveTo(24, -40); + ctx.lineTo(24, -60); + ctx.stroke(); + + // Balloon + ctx.fillStyle = "#D62828"; + ctx.beginPath(); + ctx.moveTo(-30, -60); + ctx.quadraticCurveTo(-80, -120, -80, -160); + ctx.arc(0, -160, 80, Math.PI, 0, false); + ctx.quadraticCurveTo(80, -120, 30, -60); + ctx.closePath(); + ctx.fill(); + + ctx.restore(); +} + +function drawHeader() { + // Fuel meter + ctx.strokeStyle = fuel <= 30 ? "red" : "white"; + ctx.strokeRect(30, 30, 150, 30); + ctx.fillStyle = fuel <= 30 + ? "rgba(255,0,0,0.5)" + : "rgba(150,150,200,0.5)"; + ctx.fillRect(30, 30, (150 * fuel) / 100, 30); + + // Score + const score = Math.floor(balloonX / 30); + ctx.fillStyle = "black"; + ctx.font = "bold 32px Tahoma"; + ctx.textAlign = "end"; + ctx.textBaseline = "top"; + ctx.fillText(`${score} m`, window.innerWidth - 30, 30); +} + +function drawSky() { + var gradient = ctx.createLinearGradient(0, 0, 0, window.innerHeight); + gradient.addColorStop(0, "#AADBEA"); + gradient.addColorStop(1, "#FEF1E1"); + ctx.fillStyle = gradient; + ctx.fillRect(0, 0, window.innerWidth, window.innerHeight); +} + +function drawBackgroundHills() { + // Draw hills + drawHill( + hill1BaseHeight, + hill1Speed, + hill1Amplitude, + hill1Stretch, + "#AAD155" // #95C629" + ); + drawHill( + hill2BaseHeight, + hill2Speed, + hill2Amplitude, + hill2Stretch, + "#84B249" // "#659F1C" + ); + + drawHill( + hill3BaseHeight, + hill3Speed, + hill3Amplitude, + hill3Stretch, + "#26532B" + ); + + // Draw background trees + backgroundTrees.forEach((tree) => drawBackgroundTree(tree.x, tree.color)); +} + +// A hill is a shape under a stretched out sinus wave +function drawHill(baseHeight, speedMultiplier, amplitude, stretch, color) { + ctx.beginPath(); + ctx.moveTo(0, window.innerHeight); + ctx.lineTo(0, getHillY(0, baseHeight, amplitude, stretch)); + for (let i = 0; i <= window.innerWidth; i++) { + ctx.lineTo(i, getHillY(i, baseHeight, speedMultiplier, amplitude, stretch)); + } + ctx.lineTo(window.innerWidth, window.innerHeight); + ctx.fillStyle = color; + ctx.fill(); +} + +function drawBackgroundTree(x, color) { + ctx.save(); + ctx.translate( + (-balloonX * hill1Speed + x) * hill1Stretch, + getTreeY(x, hill1BaseHeight, hill1Amplitude) + ); + + const treeTrunkHeight = 5; + const treeTrunkWidth = 2; + const treeCrownHeight = 25; + const treeCrownWidth = 10; + + // Draw trunk + ctx.fillStyle = "#7D833C"; + ctx.fillRect( + -treeTrunkWidth / 2, + -treeTrunkHeight, + treeTrunkWidth, + treeTrunkHeight + ); + + // Draw crown + ctx.beginPath(); + ctx.moveTo(-treeCrownWidth / 2, -treeTrunkHeight); + ctx.lineTo(0, -(treeTrunkHeight + treeCrownHeight)); + ctx.lineTo(treeCrownWidth / 2, -treeTrunkHeight); + ctx.fillStyle = color; + ctx.fill(); + + ctx.restore(); +} + +function getHillY(x, baseHeight, speedMultiplier, amplitude, stretch) { + const sineBaseY = -baseHeight; + return ( + Math.sinus((balloonX * speedMultiplier + x) * stretch) * amplitude + + sineBaseY + ); +} + +function getTreeY(x, baseHeight, amplitude) { + const sineBaseY = -baseHeight; + return Math.sinus(x) * amplitude + sineBaseY; +} + +function hitDetection() { + const cartBottomLeft = { x: balloonX - 30, y: balloonY }; + const cartBottomRight = { x: balloonX + 30, y: balloonY }; + const cartTopRight = { x: balloonX + 30, y: balloonY - 40 }; + + for (const { x, h, r1, r2, r3, r4, r5 } of trees) { + const treeBottomLeft = { x: x - 20, y: -h - 15 }; + const treeLeft = { x: x - 30, y: -h - 25 }; + const treeTopLeft = { x: x - 20, y: -h - 35 }; + const treeTop = { x: x, y: -h - 45 }; + const treeTopRight = { x: x + 20, y: -h - 35 }; + + if (getDistance(cartBottomLeft, treeBottomLeft) < r1) return true; + if (getDistance(cartBottomRight, treeBottomLeft) < r1) return true; + if (getDistance(cartTopRight, treeBottomLeft) < r1) return true; + + if (getDistance(cartBottomLeft, treeLeft) < r2) return true; + if (getDistance(cartBottomRight, treeLeft) < r2) return true; + if (getDistance(cartTopRight, treeLeft) < r2) return true; + + if (getDistance(cartBottomLeft, treeTopLeft) < r3) return true; + if (getDistance(cartBottomRight, treeTopLeft) < r3) return true; + if (getDistance(cartTopRight, treeTopLeft) < r3) return true; + + if (getDistance(cartBottomLeft, treeTop) < r4) return true; + if (getDistance(cartBottomRight, treeTop) < r4) return true; + if (getDistance(cartTopRight, treeTop) < r4) return true; + + if (getDistance(cartBottomLeft, treeTopRight) < r5) return true; + if (getDistance(cartBottomRight, treeTopRight) < r5) return true; + if (getDistance(cartTopRight, treeTopRight) < r5) return true; + } +} + +function getDistance(point1, point2) { + return Math.sqrt((point2.x - point1.x) ** 2 + (point2.y - point1.y) ** 2); +} diff --git a/Games/AirBalloon/styles.css b/Games/AirBalloon/styles.css index 9eee88ac9e..d6b7870109 100644 --- a/Games/AirBalloon/styles.css +++ b/Games/AirBalloon/styles.css @@ -1,46 +1,46 @@ -body { - height: 100%; - margin: 0; -} - -body { - font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; - cursor: pointer; - overflow: hidden; -} - -.container { - display: flex; - justify-content: center; - align-items: center; - height: 100%; -} - -#introduction { - width: 200px; - height: 150px; - position: absolute; - font-weight: 600; - font-size: 0.8em; - font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; - text-align: center; - transition: opacity 2s; -} - -#restart { - width: 120px; - height: 120px; - position: absolute; - border-radius: 50%; - color: white; - background-color: red; - border: none; - font-weight: 700; - font-size: 1.2em; - font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; - display: none; - cursor: pointer; -} - - - +body { + height: 100%; + margin: 0; +} + +body { + font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; + cursor: pointer; + overflow: hidden; +} + +.container { + display: flex; + justify-content: center; + align-items: center; + height: 100%; +} + +#introduction { + width: 200px; + height: 150px; + position: absolute; + font-weight: 600; + font-size: 0.8em; + font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; + text-align: center; + transition: opacity 2s; +} + +#restart { + width: 120px; + height: 120px; + position: absolute; + border-radius: 50%; + color: white; + background-color: red; + border: none; + font-weight: 700; + font-size: 1.2em; + font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; + display: none; + cursor: pointer; +} + + + diff --git a/Games/Alien_Shooters/README.md b/Games/Alien_Shooters/README.md index 8395ea0599..c6af0deaed 100644 --- a/Games/Alien_Shooters/README.md +++ b/Games/Alien_Shooters/README.md @@ -1,36 +1,36 @@ -# **ALIEN_SHOOTERS** - ---- - -
- -## **Description ๐Ÿ“ƒ** -- A retro styled game testing your reflexes and precision on the keyboard. Your main aim is to shoot as many aliens as you can using the shooter given to you. - - -## **functionalities ๐ŸŽฎ** -- Easy to play -- Scoring system so that you can compare points with your friends. -- Responsive design for most of the monitors. -
- -## **How to play? ๐Ÿ•น๏ธ** -- Your aim is to shoot as many aliens as possible. -- The more you shoot the more they become and faster they approach. -- But shooting 1 aliens gets you 100 points. When you shoot a certain set of aliens, you get bonus points for the same; that is 100 times the number of aliens you just shot. -
- -## **Screenshots ๐Ÿ“ธ** - -
- -![Game image](../../assets/images/Alien_Shooter.png) - -
- -## **Working video ๐Ÿ“น** - - - -https://github.com/singh-anushka/GameZone/assets/93376863/f75000d6-a34a-41b3-8c51-ac817022d576 - +# **ALIEN_SHOOTERS** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +- A retro styled game testing your reflexes and precision on the keyboard. Your main aim is to shoot as many aliens as you can using the shooter given to you. + + +## **functionalities ๐ŸŽฎ** +- Easy to play +- Scoring system so that you can compare points with your friends. +- Responsive design for most of the monitors. +
+ +## **How to play? ๐Ÿ•น๏ธ** +- Your aim is to shoot as many aliens as possible. +- The more you shoot the more they become and faster they approach. +- But shooting 1 aliens gets you 100 points. When you shoot a certain set of aliens, you get bonus points for the same; that is 100 times the number of aliens you just shot. +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ +![Game image](../../assets/images/Alien_Shooter.png) + +
+ +## **Working video ๐Ÿ“น** + + + +https://github.com/singh-anushka/GameZone/assets/93376863/f75000d6-a34a-41b3-8c51-ac817022d576 + diff --git a/Games/Alien_Shooters/index.html b/Games/Alien_Shooters/index.html index f0d19cd3cc..508b4b8a3f 100644 --- a/Games/Alien_Shooters/index.html +++ b/Games/Alien_Shooters/index.html @@ -1,42 +1,42 @@ - - - - - - Alien Shooter - - - - - - - - - - -
- -
-
-

Alien Shooter

-
-
-
    -
    -
  • How to Play:
  • -
  • Press Space on keyboard to fire
  • -
  • Use arrow keys or A,D keys to move horizontally
  • -
  • Don't let the aliens come down
  • -
- -
-
-

GAME OVER!!

-

your score: 0

-

press space to try again

-

press 'q' to quit

-
- - + + + + + + Alien Shooter + + + + + + + + + + +
+ +
+
+

Alien Shooter

+
+
+
    +
    +
  • How to Play:
  • +
  • Press Space on keyboard to fire
  • +
  • Use arrow keys or A,D keys to move horizontally
  • +
  • Don't let the aliens come down
  • +
+ +
+
+

GAME OVER!!

+

your score: 0

+

press space to try again

+

press 'q' to quit

+
+ + diff --git a/Games/Alien_Shooters/script.js b/Games/Alien_Shooters/script.js index 3c6fc06a12..41b920fca9 100644 --- a/Games/Alien_Shooters/script.js +++ b/Games/Alien_Shooters/script.js @@ -1,286 +1,286 @@ -//board -let tileSize = 32; -let rows = 16; -let columns = 16; - -let board; -let boardWidth = tileSize * columns; // 32 * 16 -let boardHeight = tileSize * rows; // 32 * 16 -let context; - -//ship -let shipWidth = tileSize * 2; -let shipHeight = tileSize; -let shipX = tileSize * columns / 2 - tileSize; -let shipY = tileSize * rows - tileSize * 2; - -let ship = { - x: shipX, - y: shipY, - width: shipWidth, - height: shipHeight -} - -let shipImg; -let shipVelocityX = tileSize; //ship moving speed - -//aliens -let alienArray = []; -let alienWidth = tileSize * 2; -let alienHeight = tileSize; -let alienX = tileSize; -let alienY = tileSize; -let alienImg; - -let alienRows = 2; -let alienColumns = 3; -let alienCount = 0; //number of aliens to defeat -let alienVelocityX = 1; //alien moving speed - -//bullets -let bulletArray = []; -let bulletVelocityY = -10; //bullet moving speed - -//game variables -let score = 0; -let gameOver = false; -let gameStarted = false; - -function blink(blinktext) { - - - // Add a click event listener to the body of the document - document.body.addEventListener('click', () => { - // Remove the "blink" class to stop the animation - blinktext.classList.remove('blink'); - // Add a class to stop the blinking animation - blinktext.classList.add('stop-blinking'); - }) -} - -window.onload = function () { - board = document.getElementById("board"); - board.width = boardWidth; - board.height = boardHeight; - context = board.getContext("2d"); //used for drawing on the board - - shipImg = new Image(); - shipImg.src = "./assets/shooter.png"; - shipImg.onload = function () { - context.drawImage(shipImg, ship.x, ship.y, ship.width, ship.height); - } - const blinkText = document.querySelector("#blinktext") - blink(blinkText) - - // check for mouse-click to start the game; - if (!gameStarted) { - document.body.addEventListener("click", main) - - } -} - -function generateAliens() { - var n = Math.floor(Math.random() * 4); - alienImg.src = "./assets/" + n + ".png"; -} - -function update(e) { - requestAnimationFrame(update); - - if (gameOver) { - endscreen('block', score) - if (e.code == "Space") { - resetGame(); - } - if (e.code == 'KeyQ') { - gameStarted = false - location.reload() - } - return; - } - - context.clearRect(0, 0, board.width, board.height); - - //ship - context.drawImage(shipImg, ship.x, ship.y, ship.width, ship.height); - - //alien - for (let i = 0; i < alienArray.length; i++) { - let alien = alienArray[i]; - if (alien.alive) { - alien.x += alienVelocityX; - - //if alien touches the borders - if (alien.x + alien.width >= board.width || alien.x <= 0) { - alienVelocityX *= -1; - alien.x += alienVelocityX * 2; - - //move all aliens up by one row - for (let j = 0; j < alienArray.length; j++) { - alienArray[j].y += alienHeight; - } - } - context.drawImage(alienImg, alien.x, alien.y, alien.width, alien.height); - - if (alien.y >= ship.y) { - gameOver = true; - - } - } - } - - //bullets - for (let i = 0; i < bulletArray.length; i++) { - let bullet = bulletArray[i]; - bullet.y += bulletVelocityY; - context.fillStyle = "white"; - context.fillRect(bullet.x, bullet.y, bullet.width, bullet.height); - - //bullet collision with aliens - for (let j = 0; j < alienArray.length; j++) { - let alien = alienArray[j]; - if (!bullet.used && alien.alive && detectCollision(bullet, alien)) { - bullet.used = true; - alien.alive = false; - alienCount--; - score += 100; - } - } - } - - //clear bullets - while (bulletArray.length > 0 && (bulletArray[0].used || bulletArray[0].y < 0)) { - bulletArray.shift(); //removes the first element of the array - } - - //next level - if (alienCount == 0) { - //increase the number of aliens in columns and rows by 1 - score += alienColumns * alienRows * 100; //bonus points :) - alienColumns = Math.min(alienColumns + 1, columns / 2 - 2); //cap at 16/2 -2 = 6 - alienRows = Math.min(alienRows + 1, rows - 4); //cap at 16-4 = 12 - if (alienVelocityX > 0) { - alienVelocityX += 0.2; //increase the alien movement speed towards the right - } - else { - alienVelocityX -= 0.2; //increase the alien movement speed towards the left - } - alienArray = []; - bulletArray = []; - createAliens(); - } - - //score - if (!gameOver) { - context.font = "23px 'Play' "; - context.fillStyle = "#FFED00"; - context.fillText("Score: ", 5, 20) - context.fillText(score, 75, 20); - } -} - -function moveShip(e) { - if (gameOver) { - if (e.code == "Space") { - resetGame(); - } - return; - } - - if ((e.code == "ArrowLeft" || e.code == "KeyA") && ship.x - shipVelocityX >= 0) { - ship.x -= shipVelocityX; //move left one tile - } - else if ((e.code == "ArrowRight" || e.code == "KeyD") && ship.x + shipVelocityX + ship.width <= board.width) { - ship.x += shipVelocityX; //move right one tile - } -} - -function endscreen(display_value = 'none', score_txt) { - context.clearRect(0, 0, boardWidth, boardHeight) - document.querySelector(".endscreen").style.display = display_value - document.querySelector("#scorecnt").innerText = score_txt - -} - -function createAliens() { - for (let c = 0; c < alienColumns; c++) { - for (let r = 0; r < alienRows; r++) { - let alien = { - img: alienImg, - x: alienX + c * alienWidth, - y: alienY + r * alienHeight, - width: alienWidth, - height: alienHeight, - alive: true - } - alienArray.push(alien); - } - } - alienCount = alienArray.length; -} - -function shoot(e) { - if (gameOver) { - if (e.code == "Space") { - resetGame(); - } - return; - } - - if (e.code == "Space") { - //shoot - let bullet = { - x: ship.x + shipWidth * 15 / 32, - y: ship.y, - width: tileSize / 8, - height: tileSize / 2, - used: false - } - bulletArray.push(bullet); - } -} - -function detectCollision(a, b) { - return a.x < b.x + b.width && //a's top left doesn't reach b's top right - a.x + a.width > b.x && //a's top right passes b's top left - a.y < b.y + b.height && //a's top left doesn't reach b's bottom left - a.y + a.height > b.y; //a's bottom left passes b's top left -} - -function resetGame() { - score = 0; - gameOver = false; - document.querySelector('.endscreen').style.display = 'none' - - ship = { - x: shipX, - y: shipY, - width: shipWidth, - height: shipHeight - } - - alienArray = []; - alienRows = 2; - alienColumns = 3; - generateAliens(); - createAliens(); - alienVelocityX = 1; -} -function main() { - gameStarted = true - let title = document.querySelector(".title") - let startscreen = document.querySelector(".startscreen") - title.style.display = 'none' - startscreen.style.display = 'none' - - document.body.removeEventListener('click', main)// removing the previously added - //event listener after the game started. - alienImg = new Image(); - generateAliens(); - createAliens(); - - requestAnimationFrame(update); - document.addEventListener("keydown", moveShip); - document.addEventListener("keydown", update); - document.addEventListener("keyup", shoot); +//board +let tileSize = 32; +let rows = 16; +let columns = 16; + +let board; +let boardWidth = tileSize * columns; // 32 * 16 +let boardHeight = tileSize * rows; // 32 * 16 +let context; + +//ship +let shipWidth = tileSize * 2; +let shipHeight = tileSize; +let shipX = tileSize * columns / 2 - tileSize; +let shipY = tileSize * rows - tileSize * 2; + +let ship = { + x: shipX, + y: shipY, + width: shipWidth, + height: shipHeight +} + +let shipImg; +let shipVelocityX = tileSize; //ship moving speed + +//aliens +let alienArray = []; +let alienWidth = tileSize * 2; +let alienHeight = tileSize; +let alienX = tileSize; +let alienY = tileSize; +let alienImg; + +let alienRows = 2; +let alienColumns = 3; +let alienCount = 0; //number of aliens to defeat +let alienVelocityX = 1; //alien moving speed + +//bullets +let bulletArray = []; +let bulletVelocityY = -10; //bullet moving speed + +//game variables +let score = 0; +let gameOver = false; +let gameStarted = false; + +function blink(blinktext) { + + + // Add a click event listener to the body of the document + document.body.addEventListener('click', () => { + // Remove the "blink" class to stop the animation + blinktext.classList.remove('blink'); + // Add a class to stop the blinking animation + blinktext.classList.add('stop-blinking'); + }) +} + +window.onload = function () { + board = document.getElementById("board"); + board.width = boardWidth; + board.height = boardHeight; + context = board.getContext("2d"); //used for drawing on the board + + shipImg = new Image(); + shipImg.src = "./assets/shooter.png"; + shipImg.onload = function () { + context.drawImage(shipImg, ship.x, ship.y, ship.width, ship.height); + } + const blinkText = document.querySelector("#blinktext") + blink(blinkText) + + // check for mouse-click to start the game; + if (!gameStarted) { + document.body.addEventListener("click", main) + + } +} + +function generateAliens() { + var n = Math.floor(Math.random() * 4); + alienImg.src = "./assets/" + n + ".png"; +} + +function update(e) { + requestAnimationFrame(update); + + if (gameOver) { + endscreen('block', score) + if (e.code == "Space") { + resetGame(); + } + if (e.code == 'KeyQ') { + gameStarted = false + location.reload() + } + return; + } + + context.clearRect(0, 0, board.width, board.height); + + //ship + context.drawImage(shipImg, ship.x, ship.y, ship.width, ship.height); + + //alien + for (let i = 0; i < alienArray.length; i++) { + let alien = alienArray[i]; + if (alien.alive) { + alien.x += alienVelocityX; + + //if alien touches the borders + if (alien.x + alien.width >= board.width || alien.x <= 0) { + alienVelocityX *= -1; + alien.x += alienVelocityX * 2; + + //move all aliens up by one row + for (let j = 0; j < alienArray.length; j++) { + alienArray[j].y += alienHeight; + } + } + context.drawImage(alienImg, alien.x, alien.y, alien.width, alien.height); + + if (alien.y >= ship.y) { + gameOver = true; + + } + } + } + + //bullets + for (let i = 0; i < bulletArray.length; i++) { + let bullet = bulletArray[i]; + bullet.y += bulletVelocityY; + context.fillStyle = "white"; + context.fillRect(bullet.x, bullet.y, bullet.width, bullet.height); + + //bullet collision with aliens + for (let j = 0; j < alienArray.length; j++) { + let alien = alienArray[j]; + if (!bullet.used && alien.alive && detectCollision(bullet, alien)) { + bullet.used = true; + alien.alive = false; + alienCount--; + score += 100; + } + } + } + + //clear bullets + while (bulletArray.length > 0 && (bulletArray[0].used || bulletArray[0].y < 0)) { + bulletArray.shift(); //removes the first element of the array + } + + //next level + if (alienCount == 0) { + //increase the number of aliens in columns and rows by 1 + score += alienColumns * alienRows * 100; //bonus points :) + alienColumns = Math.min(alienColumns + 1, columns / 2 - 2); //cap at 16/2 -2 = 6 + alienRows = Math.min(alienRows + 1, rows - 4); //cap at 16-4 = 12 + if (alienVelocityX > 0) { + alienVelocityX += 0.2; //increase the alien movement speed towards the right + } + else { + alienVelocityX -= 0.2; //increase the alien movement speed towards the left + } + alienArray = []; + bulletArray = []; + createAliens(); + } + + //score + if (!gameOver) { + context.font = "23px 'Play' "; + context.fillStyle = "#FFED00"; + context.fillText("Score: ", 5, 20) + context.fillText(score, 75, 20); + } +} + +function moveShip(e) { + if (gameOver) { + if (e.code == "Space") { + resetGame(); + } + return; + } + + if ((e.code == "ArrowLeft" || e.code == "KeyA") && ship.x - shipVelocityX >= 0) { + ship.x -= shipVelocityX; //move left one tile + } + else if ((e.code == "ArrowRight" || e.code == "KeyD") && ship.x + shipVelocityX + ship.width <= board.width) { + ship.x += shipVelocityX; //move right one tile + } +} + +function endscreen(display_value = 'none', score_txt) { + context.clearRect(0, 0, boardWidth, boardHeight) + document.querySelector(".endscreen").style.display = display_value + document.querySelector("#scorecnt").innerText = score_txt + +} + +function createAliens() { + for (let c = 0; c < alienColumns; c++) { + for (let r = 0; r < alienRows; r++) { + let alien = { + img: alienImg, + x: alienX + c * alienWidth, + y: alienY + r * alienHeight, + width: alienWidth, + height: alienHeight, + alive: true + } + alienArray.push(alien); + } + } + alienCount = alienArray.length; +} + +function shoot(e) { + if (gameOver) { + if (e.code == "Space") { + resetGame(); + } + return; + } + + if (e.code == "Space") { + //shoot + let bullet = { + x: ship.x + shipWidth * 15 / 32, + y: ship.y, + width: tileSize / 8, + height: tileSize / 2, + used: false + } + bulletArray.push(bullet); + } +} + +function detectCollision(a, b) { + return a.x < b.x + b.width && //a's top left doesn't reach b's top right + a.x + a.width > b.x && //a's top right passes b's top left + a.y < b.y + b.height && //a's top left doesn't reach b's bottom left + a.y + a.height > b.y; //a's bottom left passes b's top left +} + +function resetGame() { + score = 0; + gameOver = false; + document.querySelector('.endscreen').style.display = 'none' + + ship = { + x: shipX, + y: shipY, + width: shipWidth, + height: shipHeight + } + + alienArray = []; + alienRows = 2; + alienColumns = 3; + generateAliens(); + createAliens(); + alienVelocityX = 1; +} +function main() { + gameStarted = true + let title = document.querySelector(".title") + let startscreen = document.querySelector(".startscreen") + title.style.display = 'none' + startscreen.style.display = 'none' + + document.body.removeEventListener('click', main)// removing the previously added + //event listener after the game started. + alienImg = new Image(); + generateAliens(); + createAliens(); + + requestAnimationFrame(update); + document.addEventListener("keydown", moveShip); + document.addEventListener("keydown", update); + document.addEventListener("keyup", shoot); } \ No newline at end of file diff --git a/Games/Alien_Shooters/style.css b/Games/Alien_Shooters/style.css index 00048db5e6..485f7b1388 100644 --- a/Games/Alien_Shooters/style.css +++ b/Games/Alien_Shooters/style.css @@ -1,64 +1,64 @@ -body { - background-color: #393E46; - display: flex; - justify-content: center; - align-items: center; - text-align: center; - font-family: 'Press Start 2P', cursive; - height: 97vh; - overflow: hidden; -} - -.title{ - position: absolute; - margin-bottom: 600px; - color: #00B7C2; -} - -#board { - background-color: #212121; - width: 700px; - height: 700px; -} - -ul{ - - color: white; - text-align: left; -} - -li{ - - margin: 1rem; -} - -.startscreen{ - position: absolute; - width: 700px; -} - - -.startscreen p{ - color: yellow; -} -.endscreen{ - position: absolute; - display: none; - color: white; - font-size: larger; -} -@keyframes blink { - 0% { opacity: 1; } - 50% { opacity: 0; } - 100% { opacity: 1; } -} - -/* Apply the animation to the

element */ -.blink { - animation: blink 1s infinite; /* Adjust the duration as needed */ -} - -/* Add a class to stop the animation */ -.stop-blinking { - animation: none; +body { + background-color: #393E46; + display: flex; + justify-content: center; + align-items: center; + text-align: center; + font-family: 'Press Start 2P', cursive; + height: 97vh; + overflow: hidden; +} + +.title{ + position: absolute; + margin-bottom: 600px; + color: #00B7C2; +} + +#board { + background-color: #212121; + width: 700px; + height: 700px; +} + +ul{ + + color: white; + text-align: left; +} + +li{ + + margin: 1rem; +} + +.startscreen{ + position: absolute; + width: 700px; +} + + +.startscreen p{ + color: yellow; +} +.endscreen{ + position: absolute; + display: none; + color: white; + font-size: larger; +} +@keyframes blink { + 0% { opacity: 1; } + 50% { opacity: 0; } + 100% { opacity: 1; } +} + +/* Apply the animation to the

element */ +.blink { + animation: blink 1s infinite; /* Adjust the duration as needed */ +} + +/* Add a class to stop the animation */ +.stop-blinking { + animation: none; } \ No newline at end of file diff --git a/Games/Alphabet/README.md b/Games/Alphabet/README.md index ea55afc749..ac2054a84e 100644 --- a/Games/Alphabet/README.md +++ b/Games/Alphabet/README.md @@ -1,26 +1,26 @@ -# **Alphabet** - ---- - -
- -## **Description ๐Ÿ“ƒ** -The project is designed to help children learn the alphabet in an interactive and engaging way. - -- - -## **functionalities ๐ŸŽฎ** -The project features a user interface that displays all the alphabets from A to Z, accompanied by corresponding images. When a child clicks on a specific alphabet or types a single alphabet, a corresponding sound is played. For example, if the child clicks on the letter 'A', a sound saying "A for apple" will be played. - -The purpose of this project is to provide a fun and educational tool for children to learn and familiarize themselves with the alphabet. By associating each letter with a visual representation and an auditory cue, it aims to enhance their understanding and retention of the alphabet. -- -
- - -## **Screenshots ๐Ÿ“ธ** - - -![image](https://github.com/Bindusree1515/GameZone/assets/91887086/986d713a-b1a0-41f1-9af4-193bca37397e) - - -
+# **Alphabet** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +The project is designed to help children learn the alphabet in an interactive and engaging way. + +- + +## **functionalities ๐ŸŽฎ** +The project features a user interface that displays all the alphabets from A to Z, accompanied by corresponding images. When a child clicks on a specific alphabet or types a single alphabet, a corresponding sound is played. For example, if the child clicks on the letter 'A', a sound saying "A for apple" will be played. + +The purpose of this project is to provide a fun and educational tool for children to learn and familiarize themselves with the alphabet. By associating each letter with a visual representation and an auditory cue, it aims to enhance their understanding and retention of the alphabet. +- +
+ + +## **Screenshots ๐Ÿ“ธ** + + +![image](https://github.com/Bindusree1515/GameZone/assets/91887086/986d713a-b1a0-41f1-9af4-193bca37397e) + + +
diff --git a/Games/Alphabet/index.html b/Games/Alphabet/index.html index 9a2d92ec90..73e27071a7 100644 --- a/Games/Alphabet/index.html +++ b/Games/Alphabet/index.html @@ -1,52 +1,52 @@ - - - - - Alphabet - - - - - -

-

ALPHABET

-
- - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - + + + + + Alphabet + + + + + +
+

ALPHABET

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + diff --git a/Games/Alphabet/index.js b/Games/Alphabet/index.js index eda2481582..48c4bcfffe 100644 --- a/Games/Alphabet/index.js +++ b/Games/Alphabet/index.js @@ -1,13 +1,13 @@ -$(".btn").keypress(function(event) { - playSound(event.key); -}); - -$(".btn").click(function() { - var buttonInnerHTML = $(this).attr("id"); - playSound(buttonInnerHTML); -}); - -function playSound(name){ - var audio = new Audio("sounds/" + name + ".mp3"); - audio.play(); -} +$(".btn").keypress(function(event) { + playSound(event.key); +}); + +$(".btn").click(function() { + var buttonInnerHTML = $(this).attr("id"); + playSound(buttonInnerHTML); +}); + +function playSound(name){ + var audio = new Audio("sounds/" + name + ".mp3"); + audio.play(); +} diff --git a/Games/Alphabet/styles.css b/Games/Alphabet/styles.css index e73a4fe692..9957d15862 100644 --- a/Games/Alphabet/styles.css +++ b/Games/Alphabet/styles.css @@ -1,138 +1,138 @@ -body{ - background-color: #0C0B0C; -} - -/* #0C0B0C */ - -h1 { - font-family: Serif; - font-size: 4rem; - color: #FEE6ED; - text-align: center; -} - -.btns { - -} - -.btn { - outline: none; - border: 10px solid #FEE6ED; - font-size: 5rem; - font-family: Serif; - line-height: 2; - font-weight: 900; - color: #FEE6ED; - /*text-shadow: 3px 0 #DBEDF3;*/ - border-radius: 15px; - display: inline-block; - width: 150px; - height: 150px; - text-align: center; - margin: 10px; - background-color: #0C0B0C; -} - -.a { - background-image: url("images/apple.png"); -} - -.b { - background-image: url("images/ball.png"); -} - -.c { - background-image: url("images/cat.png"); -} - -.d { - background-image: url("images/dog.png"); -} - -.e { - background-image: url("images/elephant.png"); -} - -.f { - background-image: url("images/fish.png"); -} - -.g { - background-image: url("images/grass.png"); -} - -.h { - background-image: url("images/hat.png"); -} - -.i { - background-image: url("images/insect.png"); -} - -.j { - background-image: url("images/jar.png"); -} - -.k { - background-image: url("images/kite.png"); -} - -.l { - background-image: url("images/lamp.png"); -} - -.m { - background-image: url("images/monkey.png"); -} - -.n { - background-image: url("images/nose.png"); -} - -.o { - background-image: url("images/ocean.png"); -} - -.p { - background-image: url("images/parrot.png"); -} - -.q { - background-image: url("images/queen.png"); -} - -.r { - background-image: url("images/rat.png"); -} - -.s { - background-image: url("images/sun.png"); -} - -.t { - background-image: url("images/tap.png"); -} - -.u { - background-image: url("images/umbrella.png"); -} - -.v { - background-image: url("images/violin.png"); -} - -.w { - background-image: url("images/water.png"); -} - -.x { - background-image: url("images/fox.png"); -} - -.y { - background-image: url("images/yellow.png"); -} - -.z { - background-image: url("images/zebra.png"); -} +body{ + background-color: #0C0B0C; +} + +/* #0C0B0C */ + +h1 { + font-family: Serif; + font-size: 4rem; + color: #FEE6ED; + text-align: center; +} + +.btns { + +} + +.btn { + outline: none; + border: 10px solid #FEE6ED; + font-size: 5rem; + font-family: Serif; + line-height: 2; + font-weight: 900; + color: #FEE6ED; + /*text-shadow: 3px 0 #DBEDF3;*/ + border-radius: 15px; + display: inline-block; + width: 150px; + height: 150px; + text-align: center; + margin: 10px; + background-color: #0C0B0C; +} + +.a { + background-image: url("images/apple.png"); +} + +.b { + background-image: url("images/ball.png"); +} + +.c { + background-image: url("images/cat.png"); +} + +.d { + background-image: url("images/dog.png"); +} + +.e { + background-image: url("images/elephant.png"); +} + +.f { + background-image: url("images/fish.png"); +} + +.g { + background-image: url("images/grass.png"); +} + +.h { + background-image: url("images/hat.png"); +} + +.i { + background-image: url("images/insect.png"); +} + +.j { + background-image: url("images/jar.png"); +} + +.k { + background-image: url("images/kite.png"); +} + +.l { + background-image: url("images/lamp.png"); +} + +.m { + background-image: url("images/monkey.png"); +} + +.n { + background-image: url("images/nose.png"); +} + +.o { + background-image: url("images/ocean.png"); +} + +.p { + background-image: url("images/parrot.png"); +} + +.q { + background-image: url("images/queen.png"); +} + +.r { + background-image: url("images/rat.png"); +} + +.s { + background-image: url("images/sun.png"); +} + +.t { + background-image: url("images/tap.png"); +} + +.u { + background-image: url("images/umbrella.png"); +} + +.v { + background-image: url("images/violin.png"); +} + +.w { + background-image: url("images/water.png"); +} + +.x { + background-image: url("images/fox.png"); +} + +.y { + background-image: url("images/yellow.png"); +} + +.z { + background-image: url("images/zebra.png"); +} diff --git a/Games/Among_Us_Game/README.md b/Games/Among_Us_Game/README.md index 7ce3cc0cde..d9c1a71cf0 100644 --- a/Games/Among_Us_Game/README.md +++ b/Games/Among_Us_Game/README.md @@ -1,12 +1,12 @@ -# **Among Us Game** - ---- - -
- -## **Description ๐Ÿ“ƒ** -This game is like classical among us game.Player needs to find the imposter. -- - - - +# **Among Us Game** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +This game is like classical among us game.Player needs to find the imposter. +- + + + diff --git a/Games/Anime_Clicker/README.md b/Games/Anime_Clicker/README.md index fe12363aea..f5e35c77c2 100644 --- a/Games/Anime_Clicker/README.md +++ b/Games/Anime_Clicker/README.md @@ -1,33 +1,33 @@ -# **Game_Name** - -Anime Clicker - -## **Description ๐Ÿ“ƒ** -Frontend game developed using HTML, CSS, JavaScript. Player has to kill all the mosquitoes in a specific time - -## **functionalities ๐ŸŽฎ** -- Player has to kill all the mosquitoes using the net provided. - -## **How to play? ๐Ÿ•น๏ธ** -- There will different difficulty levels for playing the game -- Player will be given a mosquito net -- Player has to kill all the mosquitoes appearing on the screen consecutive order in specific time. - -## **Screenshots ๐Ÿ“ธ** - -![image](https://github.com/Bindusree1515/GameZone/assets/91887086/2bb6594c-d171-4a83-95f2-6e6f749d3aec) - - - - -## **Working video ๐Ÿ“น** - - - -https://github.com/sujanrupu/GameZone/assets/103595490/97bf7cec-a269-4042-a19f-311fa76f53f6 - - - - - - +# **Game_Name** + +Anime Clicker + +## **Description ๐Ÿ“ƒ** +Frontend game developed using HTML, CSS, JavaScript. Player has to kill all the mosquitoes in a specific time + +## **functionalities ๐ŸŽฎ** +- Player has to kill all the mosquitoes using the net provided. + +## **How to play? ๐Ÿ•น๏ธ** +- There will different difficulty levels for playing the game +- Player will be given a mosquito net +- Player has to kill all the mosquitoes appearing on the screen consecutive order in specific time. + +## **Screenshots ๐Ÿ“ธ** + +![image](https://github.com/Bindusree1515/GameZone/assets/91887086/2bb6594c-d171-4a83-95f2-6e6f749d3aec) + + + + +## **Working video ๐Ÿ“น** + + + +https://github.com/sujanrupu/GameZone/assets/103595490/97bf7cec-a269-4042-a19f-311fa76f53f6 + + + + + + diff --git a/Games/Arcade_Game/README.md b/Games/Arcade_Game/README.md index 0f3ca13de3..f328a76c76 100644 --- a/Games/Arcade_Game/README.md +++ b/Games/Arcade_Game/README.md @@ -1,36 +1,36 @@ -# **Arcade_Room** - ---- - -
- -## **Description ๐Ÿ“ƒ** - -- A pure CSS game where the user controls a stack of blocks by clicking and dragging the mouse. - -## **functionalities ๐ŸŽฎ** - -- **Pure CSS game**: The game is entirely built using CSS, with no JavaScript required. This makes the game very lightweight and easy to load. -- **Simple and easy to play**: The game is very simple to play, and it is easy to get started. The user just needs to click and drag the mouse to move the stack of blocks. -- **Challenging**: The game can be challenging to play, and it can be difficult to stack the blocks as high as possible. This makes the game more rewarding to play. -
- -## **How to play? ๐Ÿ•น๏ธ** - -- Use the mouse to move the stack of blocks slowly and carefully. -- Try to stack the blocks in a way that they support each other. -- Avoid stacking the blocks too high, or they will fall off the screen. -- If you see that the stack of blocks is about to fall, try to move it to a more stable position. - -
- -## **Screenshots ๐Ÿ“ธ** - - - -![Image](Arcade_Game.png) - -
- -## **Working video ๐Ÿ“น** - +# **Arcade_Room** + +--- + +
+ +## **Description ๐Ÿ“ƒ** + +- A pure CSS game where the user controls a stack of blocks by clicking and dragging the mouse. + +## **functionalities ๐ŸŽฎ** + +- **Pure CSS game**: The game is entirely built using CSS, with no JavaScript required. This makes the game very lightweight and easy to load. +- **Simple and easy to play**: The game is very simple to play, and it is easy to get started. The user just needs to click and drag the mouse to move the stack of blocks. +- **Challenging**: The game can be challenging to play, and it can be difficult to stack the blocks as high as possible. This makes the game more rewarding to play. +
+ +## **How to play? ๐Ÿ•น๏ธ** + +- Use the mouse to move the stack of blocks slowly and carefully. +- Try to stack the blocks in a way that they support each other. +- Avoid stacking the blocks too high, or they will fall off the screen. +- If you see that the stack of blocks is about to fall, try to move it to a more stable position. + +
+ +## **Screenshots ๐Ÿ“ธ** + + + +![Image](Arcade_Game.png) + +
+ +## **Working video ๐Ÿ“น** + diff --git a/Games/Atari_breakout/README.md b/Games/Atari_breakout/README.md index 48b3036c99..a2a1e1b2ff 100644 --- a/Games/Atari_breakout/README.md +++ b/Games/Atari_breakout/README.md @@ -1,31 +1,31 @@ -# **Atari Breakout** ---- - -## **Description ๐Ÿ“ƒ** -- This a fun game clone of a very popular game called as atari breakout. Not only being great recreational source, it also acts as a great way of increasing responsiveness and estimation capacity of the player. - -## **functionalities ๐ŸŽฎ** -- to be played on desktop. -
- -## **How to play? ๐Ÿ•น๏ธ** -- The game will start with ball at the center, and a total 3 game lives. -- Your role is to use the paddle at the bottom and hit the ball, so that the ball hits and smashed the bricks on the top. -- Try not to let the ball touch the ground; if happens so, then a one of the game lives will be reduced. -- If all the game lives are exhausted, then you lose ๐Ÿ™. -- If all the bricks are smashed the you Win! -
- -## **Screenshots ๐Ÿ“ธ** - -
- -![image](../../assets/images/Atari_breakout.png) - -
- -## **Working video ๐Ÿ“น** - - -https://github.com/singh-anushka/GameZone/assets/93376863/cf2523db-0d97-4e17-93e5-cc465dc63847 - +# **Atari Breakout** +--- + +## **Description ๐Ÿ“ƒ** +- This a fun game clone of a very popular game called as atari breakout. Not only being great recreational source, it also acts as a great way of increasing responsiveness and estimation capacity of the player. + +## **functionalities ๐ŸŽฎ** +- to be played on desktop. +
+ +## **How to play? ๐Ÿ•น๏ธ** +- The game will start with ball at the center, and a total 3 game lives. +- Your role is to use the paddle at the bottom and hit the ball, so that the ball hits and smashed the bricks on the top. +- Try not to let the ball touch the ground; if happens so, then a one of the game lives will be reduced. +- If all the game lives are exhausted, then you lose ๐Ÿ™. +- If all the bricks are smashed the you Win! +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ +![image](../../assets/images/Atari_breakout.png) + +
+ +## **Working video ๐Ÿ“น** + + +https://github.com/singh-anushka/GameZone/assets/93376863/cf2523db-0d97-4e17-93e5-cc465dc63847 + diff --git a/Games/Atari_breakout/index.html b/Games/Atari_breakout/index.html index 760a807c08..eea09df2cb 100644 --- a/Games/Atari_breakout/index.html +++ b/Games/Atari_breakout/index.html @@ -1,21 +1,21 @@ - - - - - - - Atari Breakout - - - - - - - - -
-

Atari Breakout

- - + + + + + + + Atari Breakout + + + + + + + + +
+

Atari Breakout

+ + \ No newline at end of file diff --git a/Games/Atari_breakout/script.js b/Games/Atari_breakout/script.js index 0328d2c128..8030123ec8 100644 --- a/Games/Atari_breakout/script.js +++ b/Games/Atari_breakout/script.js @@ -1,256 +1,256 @@ -// height and width of the board -let board; -let boardHeight = 500; -let boardWidth = 500; -let context; - -//player -let playerWidth = 80; -let playerHeight = 10; -let playerVelocityX = 20; - -let player = { - x : (boardWidth - playerWidth)/2, - y : (boardHeight - playerHeight) - 5, - width : playerWidth, - height : playerHeight, - velocityX : playerVelocityX -} - -//ball -let ballWidth = 10; -let ballHeight = 10; -let ballVelocityX = 3; -let ballVelocityY = 2; - -let ball = { - x : boardWidth/2, - y : boardHeight/2, - width : ballWidth, - height : ballHeight, - velocityX : ballVelocityX, - velocityY : ballVelocityY -} - -//blocks -let blockArray = []; -let blockWidth = 50; -let blockHeight = 10; -let blockColumns = 8; -let blockRows = 5; -let blockCount = 0; - -let blockX = 15; -let blockY = 45; - -let score = 0; -let gameOver = false; - -//lives -let livesImg = new Image(); -livesImg.src = "./assets/lives.png"; -let lives = 3; - -window.onload = function() { - board = document.getElementById("board"); - board.height = boardHeight; - board.width = boardWidth; - context = board.getContext("2d"); //used for drawing on the board - - // draw the initial player - context.fillStyle = "#FFED00"; - context.fillRect(player.x, player.y, player.width, player.height); - - requestAnimationFrame(update); - document.addEventListener("keydown", movePlayer); - - createBlocks(); -} - -function update(){ - requestAnimationFrame(update); - if(gameOver) return; - context.clearRect(0, 0, board.width, board.height); - - //player - context.fillStyle = "#FFED00"; - context.fillRect(player.x, player.y, player.width, player.height); - - //ball - context.fillStyle = "#FF5F9E"; - ball.x += ball.velocityX; - ball.y += ball.velocityY; - context.fillRect(ball.x, ball.y, ball.width, ball.height); - - - //bouncing ball - // over wall - if(ball.y <= 0 ){ - // if ball touches top - ball.velocityY *= -1; - } - else if(ball.x <= 0 || ((ball.x + ball.width) >= boardWidth)){ - //if ball touches the sides - ball.velocityX *= -1; - } - else if((ball.y + ball.height) >= boardHeight){ - context.font = "20px 'Play' "; - lives--; - if(lives == 0){ - context.fillStyle = "#39B5E0"; - context.fillText("Game Over: Press 'Space' to Restart", 85, 280); - gameOver = true; - } - else{ - ball = { - x : boardWidth/2, - y : boardHeight/2, - width : ballWidth, - height : ballHeight, - velocityX : ballVelocityX, - velocityY : ballVelocityY - } - } - } - - // over paddle - if(topCollision(ball, player) || bottomCollision(ball, player)){ - ball.velocityY *= -1; - } - else if(leftCollision(ball, player) || rightCollision(ball, player)){ - ballVelocityX *= -1; - } - - //blocks - context.fillStyle = "#B3005E"; - for(let i=0; i< blockArray.length; i++){ - let block = blockArray[i]; - if(!block.break){ - if(topCollision(ball, block) || bottomCollision(ball, block)){ - block.break = true; - ball.velocityY *= -1; - blockCount -= 1; - score += 100; - } - else if(leftCollision(ball, block) || rightCollision(ball, block)){ - block.break = true; - ball.velocityX *= -1; - blockCount -= 1; - score += 100; - } - context.fillRect(block.x, block.y, block.width, block.height); - } - } - - //winning condition - if(blockCount == 0){ - context.font = "20px 'Play' "; - context.fillStyle = "#39B5E0"; - context.fillText("You Win!", 200, 200); - context.fillText("Your final score is: ", 140, 230); - context.fillText(score, 310, 230); - context.fillText("Press 'Space' to Restart", 140, 260); - gameOver = true; - } - - //score - context.font = "20px 'Play' "; - context.fillStyle = "#39B5E0"; - context.fillText("Score: ", 10, 25); - context.fillText(score, 75, 25); - - context.drawImage(livesImg, 430, 7, 35, 25); - context.fillText(": ", 458, 24); - context.fillText(lives, 468, 25); -} - -function outOfBounds(xPosition){ - return ((xPosition < 0) || (xPosition + playerWidth > boardWidth)); -} - -function movePlayer(e){ - if(gameOver){ - if(e.code == "Space"){ - resetGame(); - } - return; - } - if(e.code == "ArrowLeft"){ - // player.x -= player.velocityX; - let nextPlayerX = player.x - player.velocityX; - if(!outOfBounds(nextPlayerX)) player.x = nextPlayerX; - - } - else if(e.code == "ArrowRight"){ - let nextPlayerX = player.x + player.velocityX; - if(!outOfBounds(nextPlayerX)) player.x = nextPlayerX; - } - -} - -function detectCollision(a, b){ - return a.x < b.x + b.width && //a's top left corner doesn't reach b's top right corner - a.x + a.width > b.x && //a's top right corner passes b's top left corner - a.y < b.y + b.height && //a's top left corner doesn't reach b's bottom left corner - a.y + a.height > b.y; //a's bottom left corner passes b's top left corner -} - -function topCollision(ball, block){ // a = ball and b = block - return detectCollision(ball, block) && ((ball.y + ball.height) >= block.y); -} - -function bottomCollision(ball, block){ - return detectCollision(ball, block) &&((block.y + block.height) >= ball.y); -} - -function leftCollision(ball, block){ - return detectCollision(ball, block) && ((ball.x + ball.width) >= block.x); -} - -function rightCollision(ball, block){ - return detectCollision(ball, block) && ((block.x + block.width) >= ball.x); -} - -function createBlocks(){ - blockArray = []; - for(let c = 0; c < blockColumns; c++){ - for(let r = 0; r < blockRows; r++){ - let block = { - x : blockX + c*blockWidth + c*10, - y : blockY + r*blockHeight + r*10, - width : blockWidth, - height : blockHeight, - break : false - } - blockArray.push(block); - } - } - blockCount = blockArray.length; - -} - -function resetGame(){ - gameOver = false; - player = { - x : (boardWidth - playerWidth)/2, - y : (boardHeight - playerHeight) - 5, - width : playerWidth, - height : playerHeight, - velocityX : playerVelocityX - } - - ball = { - x : boardWidth/2, - y : boardHeight/2, - width : ballWidth, - height : ballHeight, - velocityX : ballVelocityX, - velocityY : ballVelocityY - } - - blockArray = []; - blockRows = 5; - score = 0; - lives = 3; - createBlocks(); +// height and width of the board +let board; +let boardHeight = 500; +let boardWidth = 500; +let context; + +//player +let playerWidth = 80; +let playerHeight = 10; +let playerVelocityX = 20; + +let player = { + x : (boardWidth - playerWidth)/2, + y : (boardHeight - playerHeight) - 5, + width : playerWidth, + height : playerHeight, + velocityX : playerVelocityX +} + +//ball +let ballWidth = 10; +let ballHeight = 10; +let ballVelocityX = 3; +let ballVelocityY = 2; + +let ball = { + x : boardWidth/2, + y : boardHeight/2, + width : ballWidth, + height : ballHeight, + velocityX : ballVelocityX, + velocityY : ballVelocityY +} + +//blocks +let blockArray = []; +let blockWidth = 50; +let blockHeight = 10; +let blockColumns = 8; +let blockRows = 5; +let blockCount = 0; + +let blockX = 15; +let blockY = 45; + +let score = 0; +let gameOver = false; + +//lives +let livesImg = new Image(); +livesImg.src = "./assets/lives.png"; +let lives = 3; + +window.onload = function() { + board = document.getElementById("board"); + board.height = boardHeight; + board.width = boardWidth; + context = board.getContext("2d"); //used for drawing on the board + + // draw the initial player + context.fillStyle = "#FFED00"; + context.fillRect(player.x, player.y, player.width, player.height); + + requestAnimationFrame(update); + document.addEventListener("keydown", movePlayer); + + createBlocks(); +} + +function update(){ + requestAnimationFrame(update); + if(gameOver) return; + context.clearRect(0, 0, board.width, board.height); + + //player + context.fillStyle = "#FFED00"; + context.fillRect(player.x, player.y, player.width, player.height); + + //ball + context.fillStyle = "#FF5F9E"; + ball.x += ball.velocityX; + ball.y += ball.velocityY; + context.fillRect(ball.x, ball.y, ball.width, ball.height); + + + //bouncing ball + // over wall + if(ball.y <= 0 ){ + // if ball touches top + ball.velocityY *= -1; + } + else if(ball.x <= 0 || ((ball.x + ball.width) >= boardWidth)){ + //if ball touches the sides + ball.velocityX *= -1; + } + else if((ball.y + ball.height) >= boardHeight){ + context.font = "20px 'Play' "; + lives--; + if(lives == 0){ + context.fillStyle = "#39B5E0"; + context.fillText("Game Over: Press 'Space' to Restart", 85, 280); + gameOver = true; + } + else{ + ball = { + x : boardWidth/2, + y : boardHeight/2, + width : ballWidth, + height : ballHeight, + velocityX : ballVelocityX, + velocityY : ballVelocityY + } + } + } + + // over paddle + if(topCollision(ball, player) || bottomCollision(ball, player)){ + ball.velocityY *= -1; + } + else if(leftCollision(ball, player) || rightCollision(ball, player)){ + ballVelocityX *= -1; + } + + //blocks + context.fillStyle = "#B3005E"; + for(let i=0; i< blockArray.length; i++){ + let block = blockArray[i]; + if(!block.break){ + if(topCollision(ball, block) || bottomCollision(ball, block)){ + block.break = true; + ball.velocityY *= -1; + blockCount -= 1; + score += 100; + } + else if(leftCollision(ball, block) || rightCollision(ball, block)){ + block.break = true; + ball.velocityX *= -1; + blockCount -= 1; + score += 100; + } + context.fillRect(block.x, block.y, block.width, block.height); + } + } + + //winning condition + if(blockCount == 0){ + context.font = "20px 'Play' "; + context.fillStyle = "#39B5E0"; + context.fillText("You Win!", 200, 200); + context.fillText("Your final score is: ", 140, 230); + context.fillText(score, 310, 230); + context.fillText("Press 'Space' to Restart", 140, 260); + gameOver = true; + } + + //score + context.font = "20px 'Play' "; + context.fillStyle = "#39B5E0"; + context.fillText("Score: ", 10, 25); + context.fillText(score, 75, 25); + + context.drawImage(livesImg, 430, 7, 35, 25); + context.fillText(": ", 458, 24); + context.fillText(lives, 468, 25); +} + +function outOfBounds(xPosition){ + return ((xPosition < 0) || (xPosition + playerWidth > boardWidth)); +} + +function movePlayer(e){ + if(gameOver){ + if(e.code == "Space"){ + resetGame(); + } + return; + } + if(e.code == "ArrowLeft"){ + // player.x -= player.velocityX; + let nextPlayerX = player.x - player.velocityX; + if(!outOfBounds(nextPlayerX)) player.x = nextPlayerX; + + } + else if(e.code == "ArrowRight"){ + let nextPlayerX = player.x + player.velocityX; + if(!outOfBounds(nextPlayerX)) player.x = nextPlayerX; + } + +} + +function detectCollision(a, b){ + return a.x < b.x + b.width && //a's top left corner doesn't reach b's top right corner + a.x + a.width > b.x && //a's top right corner passes b's top left corner + a.y < b.y + b.height && //a's top left corner doesn't reach b's bottom left corner + a.y + a.height > b.y; //a's bottom left corner passes b's top left corner +} + +function topCollision(ball, block){ // a = ball and b = block + return detectCollision(ball, block) && ((ball.y + ball.height) >= block.y); +} + +function bottomCollision(ball, block){ + return detectCollision(ball, block) &&((block.y + block.height) >= ball.y); +} + +function leftCollision(ball, block){ + return detectCollision(ball, block) && ((ball.x + ball.width) >= block.x); +} + +function rightCollision(ball, block){ + return detectCollision(ball, block) && ((block.x + block.width) >= ball.x); +} + +function createBlocks(){ + blockArray = []; + for(let c = 0; c < blockColumns; c++){ + for(let r = 0; r < blockRows; r++){ + let block = { + x : blockX + c*blockWidth + c*10, + y : blockY + r*blockHeight + r*10, + width : blockWidth, + height : blockHeight, + break : false + } + blockArray.push(block); + } + } + blockCount = blockArray.length; + +} + +function resetGame(){ + gameOver = false; + player = { + x : (boardWidth - playerWidth)/2, + y : (boardHeight - playerHeight) - 5, + width : playerWidth, + height : playerHeight, + velocityX : playerVelocityX + } + + ball = { + x : boardWidth/2, + y : boardHeight/2, + width : ballWidth, + height : ballHeight, + velocityX : ballVelocityX, + velocityY : ballVelocityY + } + + blockArray = []; + blockRows = 5; + score = 0; + lives = 3; + createBlocks(); } \ No newline at end of file diff --git a/Games/Atari_breakout/styles.css b/Games/Atari_breakout/styles.css index c8948e6a95..acdb5f14ae 100644 --- a/Games/Atari_breakout/styles.css +++ b/Games/Atari_breakout/styles.css @@ -1,22 +1,22 @@ -body{ - text-align: center; - background-color: #191825; - display: flex; - flex-direction: column; - align-items: center; - justify-content: space-around; - height: 100vh; - overflow: hidden; -} -h1{ - font-family: 'Press Start 2P', cursive; - color: #865DFF; - font-size: 45pt; -} -#board{ - background-color: black; - border: 5px solid #0F6292; - border-bottom: 0px; - height: 600px; - width: 600px; +body{ + text-align: center; + background-color: #191825; + display: flex; + flex-direction: column; + align-items: center; + justify-content: space-around; + height: 100vh; + overflow: hidden; +} +h1{ + font-family: 'Press Start 2P', cursive; + color: #865DFF; + font-size: 45pt; +} +#board{ + background-color: black; + border: 5px solid #0F6292; + border-bottom: 0px; + height: 600px; + width: 600px; } \ No newline at end of file diff --git a/Games/Back_To_Space/index.html b/Games/Back_To_Space/index.html index 054772191a..6de959d63b 100644 --- a/Games/Back_To_Space/index.html +++ b/Games/Back_To_Space/index.html @@ -1,62166 +1,62166 @@ - - - - - - - - Back To Space - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + Back To Space + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Games/Battleship/Battleship.html b/Games/Battleship/Battleship.html old mode 100755 new mode 100644 diff --git a/Games/Battleship/assets/board.jpg b/Games/Battleship/assets/board.jpg old mode 100755 new mode 100644 diff --git a/Games/Battleship/assets/miss.png b/Games/Battleship/assets/miss.png old mode 100755 new mode 100644 diff --git a/Games/Battleship/assets/ship.png b/Games/Battleship/assets/ship.png old mode 100755 new mode 100644 diff --git a/Games/Battleship/js/battleship.js b/Games/Battleship/js/battleship.js old mode 100755 new mode 100644 diff --git a/Games/Bird_game/README.md b/Games/Bird_game/README.md index 745e432d75..7be3257972 100644 --- a/Games/Bird_game/README.md +++ b/Games/Bird_game/README.md @@ -1,22 +1,22 @@ -# **Game_Name** -Bird_game ---- -
- -## **Description ๐Ÿ“ƒ** - -- The game is made using html and css only and is a simple shooting game. - -## **How to play? ๐Ÿ•น๏ธ** - -- We simply need to aim the cursor on the flying bird and click in order to shoot. - The number of birds you aimed at reflects your score. -
- -## **Screenshots ๐Ÿ“ธ** - - - -![image](https://github.com/Bindusree1515/GameZone/assets/91887086/3c2ab8b5-5701-413a-9bf4-a0d4050a6e8c) - - +# **Game_Name** +Bird_game +--- +
+ +## **Description ๐Ÿ“ƒ** + +- The game is made using html and css only and is a simple shooting game. + +## **How to play? ๐Ÿ•น๏ธ** + +- We simply need to aim the cursor on the flying bird and click in order to shoot. + The number of birds you aimed at reflects your score. +
+ +## **Screenshots ๐Ÿ“ธ** + + + +![image](https://github.com/Bindusree1515/GameZone/assets/91887086/3c2ab8b5-5701-413a-9bf4-a0d4050a6e8c) + + diff --git a/Games/Bird_game/index.css b/Games/Bird_game/index.css index c6a2cede13..306582f089 100644 --- a/Games/Bird_game/index.css +++ b/Games/Bird_game/index.css @@ -1,244 +1,244 @@ -body{ - counter-reset:birds; - -webkit-touch-callout: none; --webkit-user-select: none; --khtml-user-select: none; --moz-user-select: none; --ms-user-select: none; -user-select: none; - overflow:hidden; -} -/*hide checkbox*/ -input{position:fixed; left:-10px; top:-10px;} - -h1{margin:0; text-align:center;} -h2{position:fixed; right:20px; bottom:0; font-size:18px; color:red;} - -/*play area*/ -.wrapper{ - height:100%; - background: -webkit-linear-gradient(top, rgb(89, 53, 221) 0%,rgb(143, 224, 245) 100%); - position:relative; - cursor:crosshair; -} -/*count dead birds*/ -.input-circle:checked{ - counter-increment:birds; -} - -.sum{position:fixed; left:45%; top:60px; font-size:24px; font-weight:bold;} - -/*print to screen dead birds*/ -.sum:after{ - content: counter(birds); -} - -.input-circle ~ .pajaro{ - opacity:0; - transition:0.3s cubic-bezier(0,.43,1,0); - animation: move 8s infinite alternate; -} -.input-circle1:not(:checked) ~ .pajaro1, -.input-circle2:not(:checked) ~ .pajaro2, -.input-circle3:not(:checked) ~ .pajaro3, -.input-circle4:not(:checked) ~ .pajaro4, -.input-circle5:not(:checked) ~ .pajaro5, -.input-circle6:not(:checked) ~ .pajaro6 -{ - opacity:1; -} - - -.input-circle1:checked ~ .pajaro1 span, -.input-circle2:checked ~ .pajaro2 span, -.input-circle3:checked ~ .pajaro3 span, -.input-circle4:checked ~ .pajaro4 span, -.input-circle5:checked ~ .pajaro5 span, -.input-circle6:checked ~ .pajaro6 span -{ - display:block; - -} - -.pajaro{ - position:absolute; - left:0; - cursor:crosshair; -} -.pajaro>span{ - display:none;position:absolute; z-index:2; left:-250%;bottom:-50%; - background-color:rgb(143, 224, 245) ; border:solid 2px #000; width:80px; height:30px; padding:10px; border-radius:50%; -} -.pajaro>span:before{ - content:"I'm Dead!"; color:rgb(15, 15, 15); font-weight:bold; -} - -.pajaro1{top:50px; - animation-delay: -2s!important; - transform:scale(0.9); -} -.pajaro2{ - top:100px; - animation-delay: -1s!important; - transform:scale(0.8); -} -.pajaro3{ - top:200px; - animation-delay: -3s!important; - transform:scale(1.4); -} - -.pajaro4{top:50px; - animation-delay: -12s!important; - transform:scale(0.9); -} -.pajaro5{ - top:100px; - animation-delay: -16s!important; - transform:scale(0.5); -} -.pajaro6{ - top:200px; - animation-delay: -20s!important; - transform:scale(1.4); -} - -@keyframes move{ -0%{left:0%;} -20%{left:20%;top:50%; } -40%{top:30%; left:60%;} -60%{top:80%;left:80%;} -80%{top:10%; left:20%;} -100%{top:30%; left:20%; } -} - - -.timer{ - background-color:#333; width:300px;height:50px; - position:fixed; -} - - -.timer span{ - display:block; - background:repeating-linear-gradient(-45deg, #000, rgba(0, 0, 0, 0) 25px, #FFF 25px, #FFF 50px); - width:300px; height:50px; - animation:timer 20s linear; -} - -.timer span:before{ - content:"TIME LEFT"; - display:block; - position:absolute; z-index:3; - left:0; - right:0; - top:0; - bottom:0; - text-align:center; - line-height:50px; - font-size:25px; - color:rgb(8, 8, 8); -} -@keyframes timer{ -0%{width:10px;} -100%{width:300px; display:block;} -} - - -.gameover{ - position:fixed; z-index:100000; left:0; top:0; bottom:0; right:0; background-color:rgba(0,0,0,0.8); - animation:gameover 20s linear forwards; - font-size:80px; color:rgb(240, 235, 235); font-weight:bold; text-align:center; - text-indent:0; - line-height:500px; -} - -@keyframes gameover{ -0%{left:-5000px;bottom:100%;} -97%{left:-5000px;bottom:100%;} -100%{ left:0px;} -} - -footer{position:fixed; left:0; bottom:0; padding:10px 20px;} -footer svg{vertical-align:middle;} -footer a{text-decoration:none; font-size:20px; color:rgb(92, 172, 221); vertical-align:middle;} - - - - -/*------------------------------------------------------ body of the bird -*/ - -.pajaro{ - background:black; - border-radius: 50% 50% 20% 20%; - color:white; - line-height:20px; - letter-spacing: 2px; - font-size:0.8em; - text-align:center; - position:absolute; - - margin-top:-20px; margin-left:-10px; - width:15px; height:15px; - animation:planeo 0.8s linear infinite; - z-index:999; -} - -.pajaro:after, -.pajaro:before{ - content:""; - position:absolute; - top:50%; left:50%; -} - -/*------------------------------------------------------ bird wings -*/ - -.pajaro:after{ - border-radius: 100% 100% 0 0; - box-shadow: inset 0px 5px 0 black; - width:100px; height:100px; - margin-top:-7px; margin-left:-50px; - transform-origin: 100% 0%; - animation:alas 3s linear infinite; -} - -/*------------------------------------------------------ bird beak -*/ - -.pajaro:before{ - background:#2edb62; - border-radius: 100% 0% 20% 0%; - margin-top:3px; margin-left:-4px; - width:6px; height:6px; - transform:rotateZ(45deg); -} - -/*------------------------------------------------------ wings animation -*/ - -@keyframes alas { - 50%{ - transform:rotateX(-1440deg); - } -} - -/*------------------------------------------------------ bird animation -*/ - -@keyframes planeo { - 40%{ - transform:rotateZ(2deg) translateX(2px) translateY(10px) translateZ(0); - line-height:16px; - font-size:0.6em; - } - 80%{ - transform:rotateZ(-2deg) translateX(5px) translateY(8px) translateZ(0); - } -} - - - - - +body{ + counter-reset:birds; + -webkit-touch-callout: none; +-webkit-user-select: none; +-khtml-user-select: none; +-moz-user-select: none; +-ms-user-select: none; +user-select: none; + overflow:hidden; +} +/*hide checkbox*/ +input{position:fixed; left:-10px; top:-10px;} + +h1{margin:0; text-align:center;} +h2{position:fixed; right:20px; bottom:0; font-size:18px; color:red;} + +/*play area*/ +.wrapper{ + height:100%; + background: -webkit-linear-gradient(top, rgb(89, 53, 221) 0%,rgb(143, 224, 245) 100%); + position:relative; + cursor:crosshair; +} +/*count dead birds*/ +.input-circle:checked{ + counter-increment:birds; +} + +.sum{position:fixed; left:45%; top:60px; font-size:24px; font-weight:bold;} + +/*print to screen dead birds*/ +.sum:after{ + content: counter(birds); +} + +.input-circle ~ .pajaro{ + opacity:0; + transition:0.3s cubic-bezier(0,.43,1,0); + animation: move 8s infinite alternate; +} +.input-circle1:not(:checked) ~ .pajaro1, +.input-circle2:not(:checked) ~ .pajaro2, +.input-circle3:not(:checked) ~ .pajaro3, +.input-circle4:not(:checked) ~ .pajaro4, +.input-circle5:not(:checked) ~ .pajaro5, +.input-circle6:not(:checked) ~ .pajaro6 +{ + opacity:1; +} + + +.input-circle1:checked ~ .pajaro1 span, +.input-circle2:checked ~ .pajaro2 span, +.input-circle3:checked ~ .pajaro3 span, +.input-circle4:checked ~ .pajaro4 span, +.input-circle5:checked ~ .pajaro5 span, +.input-circle6:checked ~ .pajaro6 span +{ + display:block; + +} + +.pajaro{ + position:absolute; + left:0; + cursor:crosshair; +} +.pajaro>span{ + display:none;position:absolute; z-index:2; left:-250%;bottom:-50%; + background-color:rgb(143, 224, 245) ; border:solid 2px #000; width:80px; height:30px; padding:10px; border-radius:50%; +} +.pajaro>span:before{ + content:"I'm Dead!"; color:rgb(15, 15, 15); font-weight:bold; +} + +.pajaro1{top:50px; + animation-delay: -2s!important; + transform:scale(0.9); +} +.pajaro2{ + top:100px; + animation-delay: -1s!important; + transform:scale(0.8); +} +.pajaro3{ + top:200px; + animation-delay: -3s!important; + transform:scale(1.4); +} + +.pajaro4{top:50px; + animation-delay: -12s!important; + transform:scale(0.9); +} +.pajaro5{ + top:100px; + animation-delay: -16s!important; + transform:scale(0.5); +} +.pajaro6{ + top:200px; + animation-delay: -20s!important; + transform:scale(1.4); +} + +@keyframes move{ +0%{left:0%;} +20%{left:20%;top:50%; } +40%{top:30%; left:60%;} +60%{top:80%;left:80%;} +80%{top:10%; left:20%;} +100%{top:30%; left:20%; } +} + + +.timer{ + background-color:#333; width:300px;height:50px; + position:fixed; +} + + +.timer span{ + display:block; + background:repeating-linear-gradient(-45deg, #000, rgba(0, 0, 0, 0) 25px, #FFF 25px, #FFF 50px); + width:300px; height:50px; + animation:timer 20s linear; +} + +.timer span:before{ + content:"TIME LEFT"; + display:block; + position:absolute; z-index:3; + left:0; + right:0; + top:0; + bottom:0; + text-align:center; + line-height:50px; + font-size:25px; + color:rgb(8, 8, 8); +} +@keyframes timer{ +0%{width:10px;} +100%{width:300px; display:block;} +} + + +.gameover{ + position:fixed; z-index:100000; left:0; top:0; bottom:0; right:0; background-color:rgba(0,0,0,0.8); + animation:gameover 20s linear forwards; + font-size:80px; color:rgb(240, 235, 235); font-weight:bold; text-align:center; + text-indent:0; + line-height:500px; +} + +@keyframes gameover{ +0%{left:-5000px;bottom:100%;} +97%{left:-5000px;bottom:100%;} +100%{ left:0px;} +} + +footer{position:fixed; left:0; bottom:0; padding:10px 20px;} +footer svg{vertical-align:middle;} +footer a{text-decoration:none; font-size:20px; color:rgb(92, 172, 221); vertical-align:middle;} + + + + +/*------------------------------------------------------ body of the bird +*/ + +.pajaro{ + background:black; + border-radius: 50% 50% 20% 20%; + color:white; + line-height:20px; + letter-spacing: 2px; + font-size:0.8em; + text-align:center; + position:absolute; + + margin-top:-20px; margin-left:-10px; + width:15px; height:15px; + animation:planeo 0.8s linear infinite; + z-index:999; +} + +.pajaro:after, +.pajaro:before{ + content:""; + position:absolute; + top:50%; left:50%; +} + +/*------------------------------------------------------ bird wings +*/ + +.pajaro:after{ + border-radius: 100% 100% 0 0; + box-shadow: inset 0px 5px 0 black; + width:100px; height:100px; + margin-top:-7px; margin-left:-50px; + transform-origin: 100% 0%; + animation:alas 3s linear infinite; +} + +/*------------------------------------------------------ bird beak +*/ + +.pajaro:before{ + background:#2edb62; + border-radius: 100% 0% 20% 0%; + margin-top:3px; margin-left:-4px; + width:6px; height:6px; + transform:rotateZ(45deg); +} + +/*------------------------------------------------------ wings animation +*/ + +@keyframes alas { + 50%{ + transform:rotateX(-1440deg); + } +} + +/*------------------------------------------------------ bird animation +*/ + +@keyframes planeo { + 40%{ + transform:rotateZ(2deg) translateX(2px) translateY(10px) translateZ(0); + line-height:16px; + font-size:0.6em; + } + 80%{ + transform:rotateZ(-2deg) translateX(5px) translateY(8px) translateZ(0); + } +} + + + + + diff --git a/Games/Bit_Maze_Platformer_Maze/README.md b/Games/Bit_Maze_Platformer_Maze/README.md index 7d695358c9..053177adc7 100644 --- a/Games/Bit_Maze_Platformer_Maze/README.md +++ b/Games/Bit_Maze_Platformer_Maze/README.md @@ -1,39 +1,39 @@ -# **Bit Maze - Platformer Maze** - ---- - -
- -## **Description ๐Ÿ“ƒ** - -- "Bit Maze - Platformer Maze" is a game that combines elements of a platformer and a maze. The goal of the game is to navigate a character through a series of mazes and reach the exit point while avoiding obstacles and collecting coins along the way. - -## **functionalities ๐ŸŽฎ** - -- **Platformer gameplay**: The game incorporates the mechanics of a platformer, requiring the player to control a character's movements and jumps. -- **Arrow key controls**: The character can be moved left and right using the arrow keys on the keyboard, providing a simple and intuitive control scheme. -- **Jumping ability**: The character can jump to overcome gaps and avoid obstacles, adding an extra dimension to the gameplay. -- **Obstacles and hazards**: The mazes contain hazards such as spikes and moving platforms that must be avoided to progress safely. -
- -## **How to play? ๐Ÿ•น๏ธ** - -- The character can move left, right, and jump using the arrow keys on your keyboard. -- Use the arrow keys to guide the character through the maze, avoiding obstacles such as spikes and moving platforms. -- The objective is to reach the exit point, which is usually indicated by a door or another distinctive object. -- Be careful not to fall into pits or touch dangerous objects, as it will result in losing a life. - -
- -## **Screenshots ๐Ÿ“ธ** - - - - -![image](https://github.com/Bindusree1515/GameZone/assets/91887086/2c507b12-d208-4784-9253-c9a2c57e1104) - - -
- -## **Working video ๐Ÿ“น** - +# **Bit Maze - Platformer Maze** + +--- + +
+ +## **Description ๐Ÿ“ƒ** + +- "Bit Maze - Platformer Maze" is a game that combines elements of a platformer and a maze. The goal of the game is to navigate a character through a series of mazes and reach the exit point while avoiding obstacles and collecting coins along the way. + +## **functionalities ๐ŸŽฎ** + +- **Platformer gameplay**: The game incorporates the mechanics of a platformer, requiring the player to control a character's movements and jumps. +- **Arrow key controls**: The character can be moved left and right using the arrow keys on the keyboard, providing a simple and intuitive control scheme. +- **Jumping ability**: The character can jump to overcome gaps and avoid obstacles, adding an extra dimension to the gameplay. +- **Obstacles and hazards**: The mazes contain hazards such as spikes and moving platforms that must be avoided to progress safely. +
+ +## **How to play? ๐Ÿ•น๏ธ** + +- The character can move left, right, and jump using the arrow keys on your keyboard. +- Use the arrow keys to guide the character through the maze, avoiding obstacles such as spikes and moving platforms. +- The objective is to reach the exit point, which is usually indicated by a door or another distinctive object. +- Be careful not to fall into pits or touch dangerous objects, as it will result in losing a life. + +
+ +## **Screenshots ๐Ÿ“ธ** + + + + +![image](https://github.com/Bindusree1515/GameZone/assets/91887086/2c507b12-d208-4784-9253-c9a2c57e1104) + + +
+ +## **Working video ๐Ÿ“น** + diff --git a/Games/Black_Jack/README.md b/Games/Black_Jack/README.md index bc85d4d4f4..dc27cf6df7 100644 --- a/Games/Black_Jack/README.md +++ b/Games/Black_Jack/README.md @@ -1,15 +1,15 @@ -# BlackJackJs -Black jack game made in Javascript with CreateJs - -# Screenshot - -![Game]() - -Enter your name then Click on a chip then click on go to bet and start playing ! - - -## Options : -**Double** -**Insurance** -**Give up** - +# BlackJackJs +Black jack game made in Javascript with CreateJs + +# Screenshot + +![Game]() + +Enter your name then Click on a chip then click on go to bet and start playing ! + + +## Options : +**Double** +**Insurance** +**Give up** + diff --git a/Games/Black_Jack/index.html b/Games/Black_Jack/index.html index 4d7a8d3149..f5dc808e76 100644 --- a/Games/Black_Jack/index.html +++ b/Games/Black_Jack/index.html @@ -1,22 +1,22 @@ - - - - Black Jack - - - - - -
- - - - - - - - - - - + + + + Black Jack + + + + + +
+ + + + + + + + + + + diff --git a/Games/Block_Buster/README.md b/Games/Block_Buster/README.md index 97a059f769..2ab9dc20c4 100644 --- a/Games/Block_Buster/README.md +++ b/Games/Block_Buster/README.md @@ -1,34 +1,34 @@ -# **Game_Name** - -Block Buster - -## **Description ๐Ÿ“ƒ** - -Block buster game is a frontend game developed using HTML, CSS, JavaScript. -The player will get points according to the number of successful hits in a specific time. -## **functionalities ๐ŸŽฎ** -The player will get points acccording to the number of successful hits, to make tghe successful hits the player has to move the reflector. - -## **How to play? ๐Ÿ•น๏ธ** -- There will be a throwable object and some targets -- The player has to throw the object to the targets -- The player will get points according to the number of successful hits - -
- -## **Screenshots ๐Ÿ“ธ** -![Block_Buster](https://github.com/sujanrupu/GameZone/assets/103595490/77b14d70-3225-4249-a3a5-1e2b8b480eec) - - - -## **Working video ๐Ÿ“น** - - -https://github.com/sujanrupu/GameZone/assets/103595490/65589784-129f-4064-a5b7-be39d021d47c - - - - - - - +# **Game_Name** + +Block Buster + +## **Description ๐Ÿ“ƒ** + +Block buster game is a frontend game developed using HTML, CSS, JavaScript. +The player will get points according to the number of successful hits in a specific time. +## **functionalities ๐ŸŽฎ** +The player will get points acccording to the number of successful hits, to make tghe successful hits the player has to move the reflector. + +## **How to play? ๐Ÿ•น๏ธ** +- There will be a throwable object and some targets +- The player has to throw the object to the targets +- The player will get points according to the number of successful hits + +
+ +## **Screenshots ๐Ÿ“ธ** +![Block_Buster](https://github.com/sujanrupu/GameZone/assets/103595490/77b14d70-3225-4249-a3a5-1e2b8b480eec) + + + +## **Working video ๐Ÿ“น** + + +https://github.com/sujanrupu/GameZone/assets/103595490/65589784-129f-4064-a5b7-be39d021d47c + + + + + + + diff --git a/Games/Bow_And_Arrow/README.md b/Games/Bow_And_Arrow/README.md index 02d8e5e02c..49d6728a9a 100644 --- a/Games/Bow_And_Arrow/README.md +++ b/Games/Bow_And_Arrow/README.md @@ -1,11 +1,11 @@ -# Bow And Arrow Game -This is a Bow And Arrow Game made using HTML, CSS and Javascript - -# How To Play? -- Click Start to play. -- Mouse Click or press any key to fire the arrow! -- Goal: Hit the Target as many times as you can for the highest score. - -# Preview -![arrow](https://github.com/5h0ov/GameZone/assets/83227649/f158b505-5ab9-4615-8452-1a6f1307aaae) - +# Bow And Arrow Game +This is a Bow And Arrow Game made using HTML, CSS and Javascript + +# How To Play? +- Click Start to play. +- Mouse Click or press any key to fire the arrow! +- Goal: Hit the Target as many times as you can for the highest score. + +# Preview +![arrow](https://github.com/5h0ov/GameZone/assets/83227649/f158b505-5ab9-4615-8452-1a6f1307aaae) + diff --git a/Games/Bow_And_Arrow/index.html b/Games/Bow_And_Arrow/index.html index b5c1a7d86b..5bcc0609ce 100644 --- a/Games/Bow_And_Arrow/index.html +++ b/Games/Bow_And_Arrow/index.html @@ -1,25 +1,25 @@ - - - - Bow And Arrow - - - - - - -
- - -

0

-

↑ +4
-
-

BOW
AND
ARROW

- -

0
Best

-
-
- - - - + + + + Bow And Arrow + + + + + + +
+ + +

0

+

↑ +4
+
+

BOW
AND
ARROW

+ +

0
Best

+
+
+ + + + diff --git a/Games/Bow_And_Arrow/script.js b/Games/Bow_And_Arrow/script.js index 4158e69002..e2889160e4 100644 --- a/Games/Bow_And_Arrow/script.js +++ b/Games/Bow_And_Arrow/script.js @@ -1,443 +1,443 @@ -window.onload = function(){ - String.prototype.repeat = String.prototype.repeat || - function(c){ - var r= ''; - for(var i=0; i w){ - document.getElementById("mainContainer").style.transform = "translateX("+(w)+"px) rotate(90deg)"; - document.getElementById("mainContainer").style.width = h+"px"; - var nh = h; - h = w; - w = nh; - - } - - - var updatePointArea = document.getElementById("showPoint"); - updatePointArea.style.height = h+"px"; - updatePointArea.style.width = w+"px"; - var uScore = document.querySelector("#showPoint .u"); - var arrs = document.getElementById("arrs"); - - function updArr(arrNum){ - var arr = "↑"; - arr = arr.repeat(arrNum); - arrs.innerHTML = arr; - } - - function animateScore(scr,arrNum){ - if(scr >= 7) uScore.innerHTML = "↑ +"+scr; - else uScore.innerHTML = "+"+scr; - updArr(arrNum); - var t = 50, l = 70, o = 1; - var animIntv = setInterval(function(){ - uScore.style.top = t + "%"; - uScore.style.left = l + "%"; - uScore.style.opacity = o; - t-=4; - l-=3; - o-=0.1; - },100) - setTimeout(function(){ - clearInterval(animIntv); - uScore.style.opacity = 0; - uScore.style.top = "50%"; - uScore.style.left = "70%"; - },1000); - } - - - var c2 = document.getElementById("animCanvas"); - c2.height = h; - c2.width = w; - var ctx2 = c2.getContext("2d"); - - var fwBuilder = function(n,x,y,speed){ - this.n = n; - this.x = x; - this.y = y; - this.speed = speed; - this.balls = []; - } - - fwBuilder.prototype.ready = function(){ - for(var i = 0; i < this.n; i++){ - this.balls[i] = { - x:this.x, - y:this.y, - dx:this.speed*Math.sin(i*Math.PI*2/this.n), - dy:this.speed*Math.cos(i*Math.PI*2/this.n), - u:this.speed*Math.cos(i*Math.PI*2/this.n), - t:0 - } - } - } - - - - var fw1 = new fwBuilder(50,w/5,h,3); - var fw2 = new fwBuilder(50,4*w/5,h,3); - - var intvA; - var running = false; - - function newF(){ - if(!running){ - fw1.ready(); - fw2.ready(); - running = true; - intvA = setInterval(function(){ - ctx2.clearRect(0,0,w,h); - fw1.draw(); - fw2.draw(); - },15) - } - } - - newF(); - - - - var c = document.getElementById("myCanvas"); - - c.height = h; - c.width = w; - - var ctx = c.getContext("2d"); - - var checkArrowMoveWithBoard1 = false; - var checkArrowMoveWithBoard2 = false; - - // Objects - - var arc = { - x:30, - y:100, - dy:3, - r:50, - color:"#000", - lw:3, - start:Math.PI+Math.PI/2, - end:Math.PI-Math.PI/2 - } - - var rope = { - h:arc.r*2, - lw:1, - x:arc.x-25, - color:"#000", - status:true - } - - var board = { - x:w-40, - y:h/2, - dy:4, - height:150, - width:7 - } - - var boardY; - var boardMove = false; - var totalArr = 10; - updArr(totalArr); - - function drawBoard() { - ctx.beginPath(); - ctx.fillRect(board.x,board.y-5,40,board.width+3); - ctx.fillRect(board.x,board.y-board.height/2,board.width,board.height); - ctx.moveTo(board.x,board.y-15); - ctx.quadraticCurveTo(board.x-10,board.y,board.x,board.y+15); - - ctx.fillStyle = "RED"; - ctx.fill(); - ctx.closePath(); - ctx.fillStyle = "#000"; - - if(board.y >= h || board.y <= 0){ - board.dy *= -1; - } - - - if(autoMove){ - board.y += board.dy; - if(checkArrowMoveWithBoard1){ - arrow1.moveArrowWithBoard(1); - } - else if(checkArrowMoveWithBoard2){ - arrow2.moveArrowWithBoard(1); - } - } - else{ - - if(boardMove){ - if(Math.abs(board.y - boardY) > 5){ - board.y += board.dy; - arrow1.moveArrowWithBoard(1); - arrow2.moveArrowWithBoard(1); - } - } - else{ - if(Math.abs(board.y - boardY) > 5){ - board.y -= board.dy; - arrow1.moveArrowWithBoard(-1); - arrow2.moveArrowWithBoard(-1); - } - } - } - } - - function Arrow(){ - this.w = 85; - this.x = arc.x-25; - this.dx = 20; - this.status = false; - this.vis = true; - this.fy = arc.y; - } - - Arrow.prototype.drawArrow = function() { - if(this.vis) { - if(this.status) { - ctx.fillRect(this.x,this.fy-3,10,6); - ctx.fillRect(this.x,this.fy-1,this.w,2); - ctx.beginPath(); - ctx.moveTo(this.x+this.w,this.fy-4); - ctx.lineTo(this.x+this.w+12,this.fy); - ctx.lineTo(this.x+this.w,this.fy+4); - ctx.fill(); - - if(moveArrowCheck) { - if(this.x < w-155){ - this.x += this.dx; - } - else { - if(!(this.fy <= board.y-board.height/2 || this.fy >= board.y+board.height/2) || this.x > w){ - if(this.x > w-110){ - if(this == arrow1){ - arrow2.vis = true; - checkArrowMoveWithBoard1 = true; - checkArrowMoveWithBoard2 = false; - } - else { - arrow1.vis = true; - checkArrowMoveWithBoard1 = false; - checkArrowMoveWithBoard2 = true; - } - moveArrowCheck = false; - score++; - //console.log(score); - if(score === 4){ - arc.dy = 5; - } - else if(score === 8){ - autoMove = true; - } - - - if(this.fy >= board.y-board.height/2 && this.fy <= board.y+board.height/2) { - try{ - hitSound.play().catch(function(e){}); - }catch(err){} - var scores = this.fy - board.y; - var currentScore = Math.round(board.height/20)-Math.round(Math.abs(scores/10)); - if(currentScore >= 7){ - newF(); - totalArr+=2; - try{ - successSound.play().catch(function(e){}); - }catch(err){ - } - } - - totalScore += currentScore; - gameScore.innerHTML = totalScore; - - animateScore(currentScore,totalArr); - - - boardY = board.y + scores; - if(scores>=0){ - boardMove = true; - } - else { - boardMove = false; - } - - - } - else updArr(totalArr); - if(totalArr <= 0){ - clearInterval(intv); - try{ - //bgSound.pause(); - endSound.play().catch(function(e){}); - }catch(err){ - } - document.getElementById("animCanvas").removeEventListener("click",shoot); - document.body.removeEventListener("keydown",shoot); - startPage.style.display = "block"; - document.getElementById("title").innerHTML = "Your Score
"+totalScore; - if(bestScore < totalScore){ - bestScore = totalScore; - try{ - highScoreSound.play().catch(function(e){}); - }catch(err){ - } - } - document.getElementById("score").innerHTML = 0; - document.getElementById("best").innerHTML = bestScore; - } - - } - else { - this.x += this.dx; - } - } - else { - this.x += this.dx; - } - } - } - } - else { - ctx.fillRect(rope.x,arc.y-3,10,6); - ctx.fillRect(rope.x,arc.y-1,this.w,2); - ctx.beginPath(); - ctx.moveTo(rope.x+this.w,arc.y-4); - ctx.lineTo(rope.x+this.w+12,arc.y); - ctx.lineTo(rope.x+this.w,arc.y+4); - ctx.fill(); - } - } - } - - // Arrow Move With Board - - Arrow.prototype.moveArrowWithBoard = function(dir) { - if(this == arrow1){ - arrow1.fy += board.dy*dir; - } - else { - arrow2.fy += board.dy*dir; - } - } - - - - - var arrow1 = new Arrow(); - var arrow2 = new Arrow(); - - var arrows = 0; - var moveArrowCheck = false; - var score = 0; - - // Drawing functions... - - function drawArc() { - ctx.beginPath(); - ctx.arc(arc.x,arc.y,arc.r,arc.start,arc.end); - ctx.strokeStyle = arc.color; - ctx.lineWidth = arc.lw; - ctx.stroke(); - ctx.closePath(); - } - - function drawRope() { - ctx.beginPath(); - ctx.moveTo(arc.x,arc.y-arc.r); - if(arrow1.vis && arrow2.vis){ - ctx.lineTo(rope.x,arc.y); - } - ctx.lineTo(arc.x,arc.y+arc.r); - ctx.lineWidth = rope.lw; - ctx.strokeStyle = rope.color; - ctx.stroke(); - ctx.closePath(); - } - - // Moving function... - - function move () { - ctx.clearRect(0,0,w,h); - if(arc.y>h-50 || arc.y<50){ - arc.dy*=-1; - } - arc.y+=arc.dy; - } - - function shoot(){ - if(arrow1.vis && arrow2.vis && arrows != -1){ - moveArrowCheck = true; - if(arrows%2===0){ - arrow1.status = true; - arrow1.fy = arc.y; - arrow2.status = false; - arrow2.x = rope.x; - arrow2.vis = false; - } - else{ - arrow1.status = false; - arrow2.fy = arc.y; - arrow2.status = true; - arrow1.x = rope.x; - arrow1.vis = false; - } - totalArr--; - try{ - shootSound.play().catch(function(e){}); - }catch(err){} - } - arrows++; - } - - document.getElementById("animCanvas").addEventListener("click",shoot); - document.body.addEventListener("keydown",shoot); - - var intv = setInterval(function(){ - move(); - drawArc(); - drawRope(); - arrow1.drawArrow(); - arrow2.drawArrow(); - drawBoard(); - },15) - } - } - +window.onload = function(){ + String.prototype.repeat = String.prototype.repeat || + function(c){ + var r= ''; + for(var i=0; i w){ + document.getElementById("mainContainer").style.transform = "translateX("+(w)+"px) rotate(90deg)"; + document.getElementById("mainContainer").style.width = h+"px"; + var nh = h; + h = w; + w = nh; + + } + + + var updatePointArea = document.getElementById("showPoint"); + updatePointArea.style.height = h+"px"; + updatePointArea.style.width = w+"px"; + var uScore = document.querySelector("#showPoint .u"); + var arrs = document.getElementById("arrs"); + + function updArr(arrNum){ + var arr = "↑"; + arr = arr.repeat(arrNum); + arrs.innerHTML = arr; + } + + function animateScore(scr,arrNum){ + if(scr >= 7) uScore.innerHTML = "↑ +"+scr; + else uScore.innerHTML = "+"+scr; + updArr(arrNum); + var t = 50, l = 70, o = 1; + var animIntv = setInterval(function(){ + uScore.style.top = t + "%"; + uScore.style.left = l + "%"; + uScore.style.opacity = o; + t-=4; + l-=3; + o-=0.1; + },100) + setTimeout(function(){ + clearInterval(animIntv); + uScore.style.opacity = 0; + uScore.style.top = "50%"; + uScore.style.left = "70%"; + },1000); + } + + + var c2 = document.getElementById("animCanvas"); + c2.height = h; + c2.width = w; + var ctx2 = c2.getContext("2d"); + + var fwBuilder = function(n,x,y,speed){ + this.n = n; + this.x = x; + this.y = y; + this.speed = speed; + this.balls = []; + } + + fwBuilder.prototype.ready = function(){ + for(var i = 0; i < this.n; i++){ + this.balls[i] = { + x:this.x, + y:this.y, + dx:this.speed*Math.sin(i*Math.PI*2/this.n), + dy:this.speed*Math.cos(i*Math.PI*2/this.n), + u:this.speed*Math.cos(i*Math.PI*2/this.n), + t:0 + } + } + } + + + + var fw1 = new fwBuilder(50,w/5,h,3); + var fw2 = new fwBuilder(50,4*w/5,h,3); + + var intvA; + var running = false; + + function newF(){ + if(!running){ + fw1.ready(); + fw2.ready(); + running = true; + intvA = setInterval(function(){ + ctx2.clearRect(0,0,w,h); + fw1.draw(); + fw2.draw(); + },15) + } + } + + newF(); + + + + var c = document.getElementById("myCanvas"); + + c.height = h; + c.width = w; + + var ctx = c.getContext("2d"); + + var checkArrowMoveWithBoard1 = false; + var checkArrowMoveWithBoard2 = false; + + // Objects + + var arc = { + x:30, + y:100, + dy:3, + r:50, + color:"#000", + lw:3, + start:Math.PI+Math.PI/2, + end:Math.PI-Math.PI/2 + } + + var rope = { + h:arc.r*2, + lw:1, + x:arc.x-25, + color:"#000", + status:true + } + + var board = { + x:w-40, + y:h/2, + dy:4, + height:150, + width:7 + } + + var boardY; + var boardMove = false; + var totalArr = 10; + updArr(totalArr); + + function drawBoard() { + ctx.beginPath(); + ctx.fillRect(board.x,board.y-5,40,board.width+3); + ctx.fillRect(board.x,board.y-board.height/2,board.width,board.height); + ctx.moveTo(board.x,board.y-15); + ctx.quadraticCurveTo(board.x-10,board.y,board.x,board.y+15); + + ctx.fillStyle = "RED"; + ctx.fill(); + ctx.closePath(); + ctx.fillStyle = "#000"; + + if(board.y >= h || board.y <= 0){ + board.dy *= -1; + } + + + if(autoMove){ + board.y += board.dy; + if(checkArrowMoveWithBoard1){ + arrow1.moveArrowWithBoard(1); + } + else if(checkArrowMoveWithBoard2){ + arrow2.moveArrowWithBoard(1); + } + } + else{ + + if(boardMove){ + if(Math.abs(board.y - boardY) > 5){ + board.y += board.dy; + arrow1.moveArrowWithBoard(1); + arrow2.moveArrowWithBoard(1); + } + } + else{ + if(Math.abs(board.y - boardY) > 5){ + board.y -= board.dy; + arrow1.moveArrowWithBoard(-1); + arrow2.moveArrowWithBoard(-1); + } + } + } + } + + function Arrow(){ + this.w = 85; + this.x = arc.x-25; + this.dx = 20; + this.status = false; + this.vis = true; + this.fy = arc.y; + } + + Arrow.prototype.drawArrow = function() { + if(this.vis) { + if(this.status) { + ctx.fillRect(this.x,this.fy-3,10,6); + ctx.fillRect(this.x,this.fy-1,this.w,2); + ctx.beginPath(); + ctx.moveTo(this.x+this.w,this.fy-4); + ctx.lineTo(this.x+this.w+12,this.fy); + ctx.lineTo(this.x+this.w,this.fy+4); + ctx.fill(); + + if(moveArrowCheck) { + if(this.x < w-155){ + this.x += this.dx; + } + else { + if(!(this.fy <= board.y-board.height/2 || this.fy >= board.y+board.height/2) || this.x > w){ + if(this.x > w-110){ + if(this == arrow1){ + arrow2.vis = true; + checkArrowMoveWithBoard1 = true; + checkArrowMoveWithBoard2 = false; + } + else { + arrow1.vis = true; + checkArrowMoveWithBoard1 = false; + checkArrowMoveWithBoard2 = true; + } + moveArrowCheck = false; + score++; + //console.log(score); + if(score === 4){ + arc.dy = 5; + } + else if(score === 8){ + autoMove = true; + } + + + if(this.fy >= board.y-board.height/2 && this.fy <= board.y+board.height/2) { + try{ + hitSound.play().catch(function(e){}); + }catch(err){} + var scores = this.fy - board.y; + var currentScore = Math.round(board.height/20)-Math.round(Math.abs(scores/10)); + if(currentScore >= 7){ + newF(); + totalArr+=2; + try{ + successSound.play().catch(function(e){}); + }catch(err){ + } + } + + totalScore += currentScore; + gameScore.innerHTML = totalScore; + + animateScore(currentScore,totalArr); + + + boardY = board.y + scores; + if(scores>=0){ + boardMove = true; + } + else { + boardMove = false; + } + + + } + else updArr(totalArr); + if(totalArr <= 0){ + clearInterval(intv); + try{ + //bgSound.pause(); + endSound.play().catch(function(e){}); + }catch(err){ + } + document.getElementById("animCanvas").removeEventListener("click",shoot); + document.body.removeEventListener("keydown",shoot); + startPage.style.display = "block"; + document.getElementById("title").innerHTML = "Your Score
"+totalScore; + if(bestScore < totalScore){ + bestScore = totalScore; + try{ + highScoreSound.play().catch(function(e){}); + }catch(err){ + } + } + document.getElementById("score").innerHTML = 0; + document.getElementById("best").innerHTML = bestScore; + } + + } + else { + this.x += this.dx; + } + } + else { + this.x += this.dx; + } + } + } + } + else { + ctx.fillRect(rope.x,arc.y-3,10,6); + ctx.fillRect(rope.x,arc.y-1,this.w,2); + ctx.beginPath(); + ctx.moveTo(rope.x+this.w,arc.y-4); + ctx.lineTo(rope.x+this.w+12,arc.y); + ctx.lineTo(rope.x+this.w,arc.y+4); + ctx.fill(); + } + } + } + + // Arrow Move With Board + + Arrow.prototype.moveArrowWithBoard = function(dir) { + if(this == arrow1){ + arrow1.fy += board.dy*dir; + } + else { + arrow2.fy += board.dy*dir; + } + } + + + + + var arrow1 = new Arrow(); + var arrow2 = new Arrow(); + + var arrows = 0; + var moveArrowCheck = false; + var score = 0; + + // Drawing functions... + + function drawArc() { + ctx.beginPath(); + ctx.arc(arc.x,arc.y,arc.r,arc.start,arc.end); + ctx.strokeStyle = arc.color; + ctx.lineWidth = arc.lw; + ctx.stroke(); + ctx.closePath(); + } + + function drawRope() { + ctx.beginPath(); + ctx.moveTo(arc.x,arc.y-arc.r); + if(arrow1.vis && arrow2.vis){ + ctx.lineTo(rope.x,arc.y); + } + ctx.lineTo(arc.x,arc.y+arc.r); + ctx.lineWidth = rope.lw; + ctx.strokeStyle = rope.color; + ctx.stroke(); + ctx.closePath(); + } + + // Moving function... + + function move () { + ctx.clearRect(0,0,w,h); + if(arc.y>h-50 || arc.y<50){ + arc.dy*=-1; + } + arc.y+=arc.dy; + } + + function shoot(){ + if(arrow1.vis && arrow2.vis && arrows != -1){ + moveArrowCheck = true; + if(arrows%2===0){ + arrow1.status = true; + arrow1.fy = arc.y; + arrow2.status = false; + arrow2.x = rope.x; + arrow2.vis = false; + } + else{ + arrow1.status = false; + arrow2.fy = arc.y; + arrow2.status = true; + arrow1.x = rope.x; + arrow1.vis = false; + } + totalArr--; + try{ + shootSound.play().catch(function(e){}); + }catch(err){} + } + arrows++; + } + + document.getElementById("animCanvas").addEventListener("click",shoot); + document.body.addEventListener("keydown",shoot); + + var intv = setInterval(function(){ + move(); + drawArc(); + drawRope(); + arrow1.drawArrow(); + arrow2.drawArrow(); + drawBoard(); + },15) + } + } + \ No newline at end of file diff --git a/Games/Bow_And_Arrow/styles.css b/Games/Bow_And_Arrow/styles.css index 4ba6b93432..0f1a4422a4 100644 --- a/Games/Bow_And_Arrow/styles.css +++ b/Games/Bow_And_Arrow/styles.css @@ -1,96 +1,96 @@ -body { - margin: 0; - font-family: monospace; - text-align: center; - height: 100vh; - width: 100vw; - background-image: url("https://www.freepik.com/free-vector/detailed-abstract-white-background_16139729.htm"); - background-size: cover; - } - - #mainContainer { - transform-origin: 0% 0%; - position: absolute; - width: 100%; - top: 0; - left: 0; - } - - #score { - position: absolute; - top: 0; - left: 0; - width: 100%; - text-align: center; - font-size: 60px; - font-weight: 900; - color: #00000099; - } - - #showPoint { - position: absolute; - top: 0; - left: 0; - background: transparent; - margin: 0; - } - - #showPoint .u { - position: absolute; - display: inline-block; - top: 50%; - left: 70%; - font-size: 30px; - font-family: arial; - opacity: 0; - transition: top 0.1s linear, left 0.1s linear; - } - - #animCanvas { - position: absolute; - top: 0; - left: 0; - z-index: 100; - border-bottom: 1px solid blue; - } - - #arrs { - font-size: 30px; - text-align: left; - position: absolute; - margin: 0; - top: 0; - padding-left: 10px; - } - - #startMenu { - position: absolute; - top: 0; - left: 0; - background: #fff; - z-index: 1000; - width: 100%; - height: 100%; - } - - #startMenu h1 { - font-size: 50px; - text-shadow: 2px 3px #aaa; - font-weight: 900; - } - - #startMenu button { - font-size: 22px; - background: none; - border: none; - border-top: 3px solid #000; - border-bottom: 3px solid #000; - padding: 10px 30px 5px; - line-height: 20px; - outline: none; - } - - #startMenu h2 { - font-size: 25px; - } +body { + margin: 0; + font-family: monospace; + text-align: center; + height: 100vh; + width: 100vw; + background-image: url("https://www.freepik.com/free-vector/detailed-abstract-white-background_16139729.htm"); + background-size: cover; + } + + #mainContainer { + transform-origin: 0% 0%; + position: absolute; + width: 100%; + top: 0; + left: 0; + } + + #score { + position: absolute; + top: 0; + left: 0; + width: 100%; + text-align: center; + font-size: 60px; + font-weight: 900; + color: #00000099; + } + + #showPoint { + position: absolute; + top: 0; + left: 0; + background: transparent; + margin: 0; + } + + #showPoint .u { + position: absolute; + display: inline-block; + top: 50%; + left: 70%; + font-size: 30px; + font-family: arial; + opacity: 0; + transition: top 0.1s linear, left 0.1s linear; + } + + #animCanvas { + position: absolute; + top: 0; + left: 0; + z-index: 100; + border-bottom: 1px solid blue; + } + + #arrs { + font-size: 30px; + text-align: left; + position: absolute; + margin: 0; + top: 0; + padding-left: 10px; + } + + #startMenu { + position: absolute; + top: 0; + left: 0; + background: #fff; + z-index: 1000; + width: 100%; + height: 100%; + } + + #startMenu h1 { + font-size: 50px; + text-shadow: 2px 3px #aaa; + font-weight: 900; + } + + #startMenu button { + font-size: 22px; + background: none; + border: none; + border-top: 3px solid #000; + border-bottom: 3px solid #000; + padding: 10px 30px 5px; + line-height: 20px; + outline: none; + } + + #startMenu h2 { + font-size: 25px; + } \ No newline at end of file diff --git a/Games/Bow_Arrow/README.md b/Games/Bow_Arrow/README.md index a89df59364..5410144d7d 100644 --- a/Games/Bow_Arrow/README.md +++ b/Games/Bow_Arrow/README.md @@ -1,37 +1,37 @@ -# **Game_Name** - - Bow_And_Arrow Game - -
- -## **Description ๐Ÿ“ƒ** - -- Objective is to Shoot monsters and save birds. - -## **functionalities ๐ŸŽฎ** - -- Bow_And_Arrow is a game implemented using HTML, CSS, and JavaScript. The game is to shoot monsters and save birds. -
- -## **How to play? ๐Ÿ•น๏ธ** - -- Start the game -- Move the man with Arrow Keys -- Shoot arrow with Space Bar -- +1 for hitting monsters -- -5 if monsters reaches birds -- Game Over if score<0 -- Monsters speed increases each level. - -
- -## **Screenshots ๐Ÿ“ธ** - -
- - - - - -
- +# **Game_Name** + + Bow_And_Arrow Game + +
+ +## **Description ๐Ÿ“ƒ** + +- Objective is to Shoot monsters and save birds. + +## **functionalities ๐ŸŽฎ** + +- Bow_And_Arrow is a game implemented using HTML, CSS, and JavaScript. The game is to shoot monsters and save birds. +
+ +## **How to play? ๐Ÿ•น๏ธ** + +- Start the game +- Move the man with Arrow Keys +- Shoot arrow with Space Bar +- +1 for hitting monsters +- -5 if monsters reaches birds +- Game Over if score<0 +- Monsters speed increases each level. + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ + + + + +
+ diff --git a/Games/Bow_Arrow/game.html b/Games/Bow_Arrow/game.html index 6705748b2a..eb33a2c37c 100644 --- a/Games/Bow_Arrow/game.html +++ b/Games/Bow_Arrow/game.html @@ -1,40 +1,40 @@ - - - - - - - BOW AND ARROW - - - - - - - - - - -
- - - - - + + + + + + + BOW AND ARROW + + + + + + + + + + +
+ + + + + \ No newline at end of file diff --git a/Games/Bow_Arrow/index.html b/Games/Bow_Arrow/index.html index 7f9a2f015e..11601f9949 100644 --- a/Games/Bow_Arrow/index.html +++ b/Games/Bow_Arrow/index.html @@ -1,54 +1,54 @@ - - - - - - - BOW AND ARROW - - -
-
-
- -
-
- - - - + + + + + + + BOW AND ARROW + + +
+
+
+ +
+
+ + + + diff --git a/Games/Bow_Arrow/myscript.js b/Games/Bow_Arrow/myscript.js index f68dbf1293..1de54d01cc 100644 --- a/Games/Bow_Arrow/myscript.js +++ b/Games/Bow_Arrow/myscript.js @@ -1,345 +1,345 @@ -//declaring obstacles -var myGamePiece; -var myObstacles = []; -var myScore; -var mylevel; -var birds; -var head; -var rules; -var rules2; -var arrowl=[]; -var arrowr=[]; -var snd1= new Audio("sounds/smb_kick.wav"); -var snd2= new Audio("sounds/smb_stomp.wav"); -var snd3= new Audio("sounds/bird.wav"); - -function startGame() - { - - myGamePiece = new component(121,504,"images/shooterl.png","images/shooterr.png" ,400,-200,"image"); - myScore = new component("30px", "Consolas","darkblue","darkblue",870, 90, "text"); - GameOver = new component("140px", "Arial","green","green", 5, 260, "text"); - YouWon = new component("140px", "Arial","green","green", 50, 260, "text"); - mylevel = new component("25px", "Consolas", "black","black", 870, 130, "text"); - head = new component("32px", "Consolas", "red","red", 864, 35, "text"); - rules = new component("20px", "Consolas", "purple","purple", 880, 190, "text"); - birds = new component(856,100,"images/birds.png","images/birds2.png",0,0,"image"); - rec= new component(3,480,"darkblue","darkblue",856,0,"fig"); - rules2 = new component(232,266,"images/rulesimg.jpg","images/rulesimg.jpg" ,865,200,"image"); - myGameArea.start(); -} -//define game area -var myGameArea = -{ - canvas : document.createElement("canvas"), - start : function() - { - this.canvas.width =1100; - this.canvas.height=480; - - this.context = this.canvas.getContext("2d"); - document.body.insertBefore(this.canvas, document.body.childNodes[0]); - this.frameNo = 0; - this.interval = setInterval(updateGameArea, 20); - window.addEventListener('keydown', function (e) { myGameArea.key = e.keyCode;}) - window.addEventListener('keyup', function (e) { myGameArea.key = false;}) - }, - clear : function() - { - this.context.clearRect(0, 0, this.canvas.width, this.canvas.height); - }, - stop : function() - { - clearInterval(this.interval); - x.pause(); - } -} -//define every component -function component(width, height, source1,source2, x, y,type) - { - this.s1=source1; - this.s2=source2; - this.type=type; - this.gamearea = myGameArea; - this.image = new Image(); - this.direction="L"; - this.width = width; - this.height = height; - this.speedX = 0; - this.speedY = 0; - this.x = x; - this.y = y; - this.update = function() - { - ctx = myGameArea.context; - if (this.type == "text") - { - ctx.font = this.width + " " + this.height; - ctx.fillStyle = this.s1; - ctx.fillText(this.text, this.x, this.y); - } - else if(this.type=="fig") - { - ctx.fillStyle = this.s1; - ctx.fillRect(this.x, this.y, this.width, this.height); - - } - else - { - if(this.direction=='L') - { - this.image.src = this.s1; - } - else - { - this.image.src = this.s2; - } - ctx.drawImage(this.image, - this.x, - this.y, - this.width, this.height); - } - } //update every component's new position - - this.newPos = function() - { - this.x += this.speedX; - this.y += this.speedY; - } - //crash with function - this.crashWith = function(otherobj) - { - var myleft = this.x; - var myright = this.x + (this.width); - var mytop = this.y; - var mybottom = this.y + (this.height); - var otherleft = otherobj.x; - var otherright = otherobj.x + (otherobj.width); - var othertop = otherobj.y; - var otherbottom = otherobj.y + (otherobj.height)-30; - var crash = true; - if ((mybottom < othertop) || - (mytop > otherbottom) || - (myright < otherleft) || - (myleft > otherright)) - { - crash = false; - } - return crash; - } - -} -var temp=0,score=0,time=0,num=1,level=1,t,tempt=0,tempt2=0,tempt3=0,monspeed=-1,flag=-1; -//call update game area after every 20 ms -function updateGameArea() -{ - var x, y,ax,ay; - myGameArea.clear(); - myGamePiece.speedX = 0; - myGamePiece.speedY = 0; - if (myGameArea.key == 37) {myGamePiece.direction = "L"; } - if (myGameArea.key == 39) {myGamePiece.direction = "R"; } - if (myGameArea.key == 32) { - if((time>=(tempt3+10)) || (num==1)) - { - - ax=myGamePiece.x; - ay=myGamePiece.y; - if(myGamePiece.direction=='L') - { - arrowl.push(new component(50,17, "images/arrowl.png","images/arrowl.png", ax, ay+450,"image")); - snd1.play(); - myGamePiece.s1="images/shooterla.png"; - tempt=time; - } - else - { - arrowr.push(new component(50,17, "images/arrowr.png","images/arrowr.png", ax, ay+450,"image")); - snd1.play(); - myGamePiece.s2="images/shooterra.png"; - tempt2=time; - } - num++; - } - - tempt3=time; - } - if (myGameArea.key == 38) { - if(myGamePiece.y<=-335) - { - myGamePiece.speedY=0; - } - else{ - - myGamePiece.speedY = -3; } - } - if (myGameArea.key == 40) { - if(myGamePiece.y>=-22) - { - myGamePiece.speedY=0; - } - else{ - - myGamePiece.speedY = 3; } - } - myGameArea.frameNo += 1; - temp++; - time++; - if(temp==50) - { - temp=0; - } - if(time==2250) - { - monspeed+= -1; - level++; - time=0; - } - //draw monster - if (myGameArea.frameNo == 1 || everyinterval(150)) { - t=Math.random()*1000; - while((t>300 && t<500) || (t>781)){ - t=Math.random()*1000; - } - x=t; - y = myGameArea.canvas.height; - - myObstacles.push(new component(55,63, "images/monsterl.png","images/monsterr.png", x, y,"image")); - } - for (i = 0; i < arrowl.length; i += 1) { - arrowl[i].x -= 5; - arrowl[i].update(); - } - for (i = 0; i < arrowr.length; i += 1) { - if(arrowr[i].x>=800) - { - arrowr[i].x=1300; - } - else{ - arrowr[i].x += 5; - } - arrowr[i].update(); - } - for (i = 0; i < myObstacles.length; i += 1) { - if(temp>25){ - myObstacles[i].direction='R'; - birds.direction='R'; - } - else{ - myObstacles[i].direction='L'; - birds.direction='L'; - } - myObstacles[i].y += monspeed; - myObstacles[i].update(); - } - if(time==tempt+10) - { - myGamePiece.s1="images/shooterl.png"; - } - if(time==tempt2+10) - { - myGamePiece.s2="images/shooterr.png"; - } - for(i = 0; i < myObstacles.length;i +=1){ - if (myObstacles[i].crashWith(birds)) { - snd3.play(); - myObstacles[i].y=-100; - if(myObstacles[i].s1=="images/boom.png") - {} - else - { - score-=5; - myScore.s1="red";} -} - } - for (i = 0; i < myObstacles.length; i += 1) { - for(j = 0; j < arrowl.length;j +=1){ - if (myObstacles[i].crashWith(arrowl[j])) - { - snd2.play(); - - if(myObstacles[i].s1=="images/boom.png") - { - flag=5; - } - myObstacles[i].s1="images/boom.png"; - myObstacles[i].width=84; - myObstacles[i].height=80; - myObstacles[i].s2="images/boom.png"; - if(flag!=5) - { - score+=1; - myScore.s1="green"; - arrowl[j].x=-100; - } - else{ - flag=-1; - arrowl[j].x=-100; - } - } - } - } - for (i = 0; i < myObstacles.length; i += 1) - { - for(j = 0; j < arrowr.length;j +=1) - { - if (myObstacles[i].crashWith(arrowr[j])) - { - snd2.play(); - if(myObstacles[i].s1=="images/boom.png") - { - flag=5; - } - myObstacles[i].s1="images/boom.png"; - myObstacles[i].width=84; - myObstacles[i].height=80; - myObstacles[i].s2="images/boom.png"; - if(flag!=5) - { - score+=1; - myScore.s1="green"; - arrowr[j].x=1300; - } - else - { - flag=-1; - arrowr[j].x=1300; - } - } - } - - } - myScore.text="SCORE: " + score; - mylevel.text="LEVEL: " + level; - head.text="BOW AND ARROW"; - rules.text="INSTRUCTIONS-"; - GameOver.text=" GAME OVER"; - YouWon.text="YOU WON"; - rules2.update(); - myScore.update(); - mylevel.update(); - myGamePiece.newPos(); - myGamePiece.update(); - birds.update(); - rec.update(); - head.update(); - rules.update(); - if(score<0) - { - GameOver.update(); - myGameArea.stop(); - - } - if(level==5) - { - YouWon.update(); - myGameArea.stop(); - - } - -} -//function to check if framenumber is multiple of 150 -function everyinterval(n) { - if ((myGameArea.frameNo / n) % 1 == 0) {return true;} - return false; +//declaring obstacles +var myGamePiece; +var myObstacles = []; +var myScore; +var mylevel; +var birds; +var head; +var rules; +var rules2; +var arrowl=[]; +var arrowr=[]; +var snd1= new Audio("sounds/smb_kick.wav"); +var snd2= new Audio("sounds/smb_stomp.wav"); +var snd3= new Audio("sounds/bird.wav"); + +function startGame() + { + + myGamePiece = new component(121,504,"images/shooterl.png","images/shooterr.png" ,400,-200,"image"); + myScore = new component("30px", "Consolas","darkblue","darkblue",870, 90, "text"); + GameOver = new component("140px", "Arial","green","green", 5, 260, "text"); + YouWon = new component("140px", "Arial","green","green", 50, 260, "text"); + mylevel = new component("25px", "Consolas", "black","black", 870, 130, "text"); + head = new component("32px", "Consolas", "red","red", 864, 35, "text"); + rules = new component("20px", "Consolas", "purple","purple", 880, 190, "text"); + birds = new component(856,100,"images/birds.png","images/birds2.png",0,0,"image"); + rec= new component(3,480,"darkblue","darkblue",856,0,"fig"); + rules2 = new component(232,266,"images/rulesimg.jpg","images/rulesimg.jpg" ,865,200,"image"); + myGameArea.start(); +} +//define game area +var myGameArea = +{ + canvas : document.createElement("canvas"), + start : function() + { + this.canvas.width =1100; + this.canvas.height=480; + + this.context = this.canvas.getContext("2d"); + document.body.insertBefore(this.canvas, document.body.childNodes[0]); + this.frameNo = 0; + this.interval = setInterval(updateGameArea, 20); + window.addEventListener('keydown', function (e) { myGameArea.key = e.keyCode;}) + window.addEventListener('keyup', function (e) { myGameArea.key = false;}) + }, + clear : function() + { + this.context.clearRect(0, 0, this.canvas.width, this.canvas.height); + }, + stop : function() + { + clearInterval(this.interval); + x.pause(); + } +} +//define every component +function component(width, height, source1,source2, x, y,type) + { + this.s1=source1; + this.s2=source2; + this.type=type; + this.gamearea = myGameArea; + this.image = new Image(); + this.direction="L"; + this.width = width; + this.height = height; + this.speedX = 0; + this.speedY = 0; + this.x = x; + this.y = y; + this.update = function() + { + ctx = myGameArea.context; + if (this.type == "text") + { + ctx.font = this.width + " " + this.height; + ctx.fillStyle = this.s1; + ctx.fillText(this.text, this.x, this.y); + } + else if(this.type=="fig") + { + ctx.fillStyle = this.s1; + ctx.fillRect(this.x, this.y, this.width, this.height); + + } + else + { + if(this.direction=='L') + { + this.image.src = this.s1; + } + else + { + this.image.src = this.s2; + } + ctx.drawImage(this.image, + this.x, + this.y, + this.width, this.height); + } + } //update every component's new position + + this.newPos = function() + { + this.x += this.speedX; + this.y += this.speedY; + } + //crash with function + this.crashWith = function(otherobj) + { + var myleft = this.x; + var myright = this.x + (this.width); + var mytop = this.y; + var mybottom = this.y + (this.height); + var otherleft = otherobj.x; + var otherright = otherobj.x + (otherobj.width); + var othertop = otherobj.y; + var otherbottom = otherobj.y + (otherobj.height)-30; + var crash = true; + if ((mybottom < othertop) || + (mytop > otherbottom) || + (myright < otherleft) || + (myleft > otherright)) + { + crash = false; + } + return crash; + } + +} +var temp=0,score=0,time=0,num=1,level=1,t,tempt=0,tempt2=0,tempt3=0,monspeed=-1,flag=-1; +//call update game area after every 20 ms +function updateGameArea() +{ + var x, y,ax,ay; + myGameArea.clear(); + myGamePiece.speedX = 0; + myGamePiece.speedY = 0; + if (myGameArea.key == 37) {myGamePiece.direction = "L"; } + if (myGameArea.key == 39) {myGamePiece.direction = "R"; } + if (myGameArea.key == 32) { + if((time>=(tempt3+10)) || (num==1)) + { + + ax=myGamePiece.x; + ay=myGamePiece.y; + if(myGamePiece.direction=='L') + { + arrowl.push(new component(50,17, "images/arrowl.png","images/arrowl.png", ax, ay+450,"image")); + snd1.play(); + myGamePiece.s1="images/shooterla.png"; + tempt=time; + } + else + { + arrowr.push(new component(50,17, "images/arrowr.png","images/arrowr.png", ax, ay+450,"image")); + snd1.play(); + myGamePiece.s2="images/shooterra.png"; + tempt2=time; + } + num++; + } + + tempt3=time; + } + if (myGameArea.key == 38) { + if(myGamePiece.y<=-335) + { + myGamePiece.speedY=0; + } + else{ + + myGamePiece.speedY = -3; } + } + if (myGameArea.key == 40) { + if(myGamePiece.y>=-22) + { + myGamePiece.speedY=0; + } + else{ + + myGamePiece.speedY = 3; } + } + myGameArea.frameNo += 1; + temp++; + time++; + if(temp==50) + { + temp=0; + } + if(time==2250) + { + monspeed+= -1; + level++; + time=0; + } + //draw monster + if (myGameArea.frameNo == 1 || everyinterval(150)) { + t=Math.random()*1000; + while((t>300 && t<500) || (t>781)){ + t=Math.random()*1000; + } + x=t; + y = myGameArea.canvas.height; + + myObstacles.push(new component(55,63, "images/monsterl.png","images/monsterr.png", x, y,"image")); + } + for (i = 0; i < arrowl.length; i += 1) { + arrowl[i].x -= 5; + arrowl[i].update(); + } + for (i = 0; i < arrowr.length; i += 1) { + if(arrowr[i].x>=800) + { + arrowr[i].x=1300; + } + else{ + arrowr[i].x += 5; + } + arrowr[i].update(); + } + for (i = 0; i < myObstacles.length; i += 1) { + if(temp>25){ + myObstacles[i].direction='R'; + birds.direction='R'; + } + else{ + myObstacles[i].direction='L'; + birds.direction='L'; + } + myObstacles[i].y += monspeed; + myObstacles[i].update(); + } + if(time==tempt+10) + { + myGamePiece.s1="images/shooterl.png"; + } + if(time==tempt2+10) + { + myGamePiece.s2="images/shooterr.png"; + } + for(i = 0; i < myObstacles.length;i +=1){ + if (myObstacles[i].crashWith(birds)) { + snd3.play(); + myObstacles[i].y=-100; + if(myObstacles[i].s1=="images/boom.png") + {} + else + { + score-=5; + myScore.s1="red";} +} + } + for (i = 0; i < myObstacles.length; i += 1) { + for(j = 0; j < arrowl.length;j +=1){ + if (myObstacles[i].crashWith(arrowl[j])) + { + snd2.play(); + + if(myObstacles[i].s1=="images/boom.png") + { + flag=5; + } + myObstacles[i].s1="images/boom.png"; + myObstacles[i].width=84; + myObstacles[i].height=80; + myObstacles[i].s2="images/boom.png"; + if(flag!=5) + { + score+=1; + myScore.s1="green"; + arrowl[j].x=-100; + } + else{ + flag=-1; + arrowl[j].x=-100; + } + } + } + } + for (i = 0; i < myObstacles.length; i += 1) + { + for(j = 0; j < arrowr.length;j +=1) + { + if (myObstacles[i].crashWith(arrowr[j])) + { + snd2.play(); + if(myObstacles[i].s1=="images/boom.png") + { + flag=5; + } + myObstacles[i].s1="images/boom.png"; + myObstacles[i].width=84; + myObstacles[i].height=80; + myObstacles[i].s2="images/boom.png"; + if(flag!=5) + { + score+=1; + myScore.s1="green"; + arrowr[j].x=1300; + } + else + { + flag=-1; + arrowr[j].x=1300; + } + } + } + + } + myScore.text="SCORE: " + score; + mylevel.text="LEVEL: " + level; + head.text="BOW AND ARROW"; + rules.text="INSTRUCTIONS-"; + GameOver.text=" GAME OVER"; + YouWon.text="YOU WON"; + rules2.update(); + myScore.update(); + mylevel.update(); + myGamePiece.newPos(); + myGamePiece.update(); + birds.update(); + rec.update(); + head.update(); + rules.update(); + if(score<0) + { + GameOver.update(); + myGameArea.stop(); + + } + if(level==5) + { + YouWon.update(); + myGameArea.stop(); + + } + +} +//function to check if framenumber is multiple of 150 +function everyinterval(n) { + if ((myGameArea.frameNo / n) % 1 == 0) {return true;} + return false; } \ No newline at end of file diff --git a/Games/Bow_Arrow/mystyle.css b/Games/Bow_Arrow/mystyle.css index 468355efeb..785938c871 100644 --- a/Games/Bow_Arrow/mystyle.css +++ b/Games/Bow_Arrow/mystyle.css @@ -1,29 +1,29 @@ -body{ - background-color:gray; -} -canvas { - border: 3px solid darkblue; - background-image:url("images/bg2.gif"); - background-repeat: no-repeat; - margin-left:200px; - margin-top: 120px; -} - -#reset{ - - margin-top:20px; - width:200px; - height:40px; - background-color: #f44336; - font-size:30px; - color: white; - cursor: pointer; -} -.reset1 -{ - margin-left:460px; -} -.reset2 -{ - margin-left:140px; -} +body{ + background-color:gray; +} +canvas { + border: 3px solid darkblue; + background-image:url("images/bg2.gif"); + background-repeat: no-repeat; + margin-left:200px; + margin-top: 120px; +} + +#reset{ + + margin-top:20px; + width:200px; + height:40px; + background-color: #f44336; + font-size:30px; + color: white; + cursor: pointer; +} +.reset1 +{ + margin-left:460px; +} +.reset2 +{ + margin-left:140px; +} diff --git a/Games/Brick_Breaker/README.md b/Games/Brick_Breaker/README.md index 9058a3e049..7a81e1a9d8 100644 --- a/Games/Brick_Breaker/README.md +++ b/Games/Brick_Breaker/README.md @@ -1,33 +1,33 @@ -# **Brick_Breaker** - ---- - -
- -## **Description ๐Ÿ“ƒ** -- This is a classic Brick Breaking Game made using HTML & CSS only that we all know and love! - -## **functionalities ๐ŸŽฎ** -- Features of a classic Brick Breaking Game -- Shows Remaining number of bricks on the top -
- -## **How to play? ๐Ÿ•น๏ธ** -- Simply moving the mouse moves the paddle with which u can bounce the ball and destroy the bricks. - -
- -## **Scores:** -- +1 for each brick broken till number of bricks is greater than or equal to 60. -- +2 for each brick broken till number of bricks is less than 60 and greater than or equal to 50. -- +5 for each brick broken if number of bricks is less than 50; -## **Screenshots ๐Ÿ“ธ** - -
- - - -
- -## **Working video ๐Ÿ“น** - +# **Brick_Breaker** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +- This is a classic Brick Breaking Game made using HTML & CSS only that we all know and love! + +## **functionalities ๐ŸŽฎ** +- Features of a classic Brick Breaking Game +- Shows Remaining number of bricks on the top +
+ +## **How to play? ๐Ÿ•น๏ธ** +- Simply moving the mouse moves the paddle with which u can bounce the ball and destroy the bricks. + +
+ +## **Scores:** +- +1 for each brick broken till number of bricks is greater than or equal to 60. +- +2 for each brick broken till number of bricks is less than 60 and greater than or equal to 50. +- +5 for each brick broken if number of bricks is less than 50; +## **Screenshots ๐Ÿ“ธ** + +
+ + + +
+ +## **Working video ๐Ÿ“น** + diff --git a/Games/Brick_Breaker/index.html b/Games/Brick_Breaker/index.html index 7a8bfbed97..144f47f676 100644 --- a/Games/Brick_Breaker/index.html +++ b/Games/Brick_Breaker/index.html @@ -1,34 +1,34 @@ - - - - - - - Brick Breaker - - - - - - - -
-

Brick Breaker

-
-
- - -
- Bricks Remaining: 0 -
-
- Score: 0 -
- -
-
- -
- - - + + + + + + + Brick Breaker + + + + + + + +
+

Brick Breaker

+
+
+ + +
+ Bricks Remaining: 0 +
+
+ Score: 0 +
+ +
+
+ +
+ + + diff --git a/Games/Brick_Breaker/script.js b/Games/Brick_Breaker/script.js index 54001cefab..4fead96628 100644 --- a/Games/Brick_Breaker/script.js +++ b/Games/Brick_Breaker/script.js @@ -1,325 +1,325 @@ -/**********Global Var***********/ -var canvas, canvasContext; - -// Bricks -const BRICK_W = 80; -const BRICK_H = 20; -const BRICK_GAP = 2; -const BRICK_COLS = 10; -const BRICK_ROWS = 10; -var brickGrid = new Array(BRICK_COLS * BRICK_ROWS); -var brickCount = 0; - -// Ball -var ballX = 75; -var ballSpeedX = 8; -var ballY = 75; -var ballSpeedY = 8; - -// Main Paddle -var paddleX = 400; -const PADDLE_THICKNESS = 15; -const PADDLE_WIDTH = 100; -const PADDLE_DIST_FROM_EDGE = 60; - -// Mouse -var mouseX = 0; -var mouseY = 0; - -/**********General GamePlay***********/ - -window.onload = function () { - canvas = document.getElementById("gameCanvas"); - canvasContext = canvas.getContext("2d"); - var framesPerSecond = 30; - setInterval(updateAll, 1000 / framesPerSecond); - - canvas.addEventListener("mousemove", updateMousePos); - brickReset(); - ballRest(); -}; - -function updateAll() { - movement(); - playArea(); -} - -function ballRest() { - ballX = canvas.width / 2; - ballY = canvas.height / 2.5; -} - -function brickReset() { - brickCount = 0; - initializeBrickColors(); - - var i; - for (var i = 0; i < 3 * BRICK_COLS; i++) { - brickGrid[i] = false; - } - for (; i < BRICK_COLS * BRICK_ROWS; i++) { - if (Math.random() < 0.5) { - brickGrid[i] = true; - } else { - brickGrid[i] = false; - } - brickGrid[i] = true; - brickCount++; - } -} - -function ballMove() { - // ballMovement - ballX += ballSpeedX; - ballY += ballSpeedY; - // ballY - if (ballY > canvas.height) { - // ballSpeedY = -ballSpeedY; - ballRest(); - brickReset(); - } else if (ballY < 0 && ballSpeedY > 0.0) { - ballSpeedY = -ballSpeedY; - } - // ballx - if (ballX > canvas.width && ballSpeedX > 0.0) { - ballSpeedX = -ballSpeedX; - } else if (ballX < 0 && ballSpeedX < 0.0) { - ballSpeedX = -ballSpeedX; - } -} - -function isBrickAtColRow(col, row) { - if (col >= 0 && col < BRICK_COLS && row >= 0 && row < BRICK_ROWS) { - var brickIndexUnderCoord = rowColToArrayIndex(col, row); - return brickGrid[brickIndexUnderCoord]; - } else { - return false; - } -} - -function ballBrickColl() { - var ballBrickCol = Math.floor(ballX / BRICK_W); - var ballBrickRow = Math.floor(ballY / BRICK_H); - var brickIndexUnderBall = rowColToArrayIndex(ballBrickCol, ballBrickRow); - if ( - ballBrickCol >= 0 && - ballBrickCol < BRICK_COLS && - ballBrickRow >= 0 && - ballBrickRow < BRICK_ROWS - ) { - if (isBrickAtColRow(ballBrickCol, ballBrickRow)) { - brickGrid[brickIndexUnderBall] = false; - brickCount--; - - var prevBallX = ballX - ballSpeedX; - var prevBallY = ballY - ballSpeedY; - var prevBrickCol = Math.floor(prevBallX / BRICK_W); - var prevBrickRow = Math.floor(prevBallY / BRICK_H); - - var bothTestFailed = true; - - if (prevBrickCol !== ballBrickCol) { - if (isBrickAtColRow(prevBrickCol, ballBrickRow) == false) { - ballSpeedX = -ballSpeedX; - bothTestFailed = false; - } - } - - if (prevBrickRow !== ballBrickRow) { - if (isBrickAtColRow(ballBrickCol, prevBrickRow) == false) { - ballSpeedY = -ballSpeedY; - bothTestFailed = false; - } - } - - if (bothTestFailed) { - ballSpeedX = -ballSpeedX; - ballSpeedY = -ballSpeedY; - } - } - } - if (brickCount === 0) { - brickReset(); - updateScore(0); - scoredisplay(false); // Reset the score to zero if no bricks are remaining - } else { - updateScore(brickCount); // Update the score with the remaining brick count - scoredisplay(true); // Increment the score if a brick is hit - } - - // colorText(ballBrickCol+","+ballBrickRow+": "+brickIndexUnderBall, mouseX, mouseY, 'white'); - - if(brickCount=== 70){ - scoredisplay(0); - } -} - -function updateScore(score) { - var scoreElement = document.getElementById("score"); - scoreElement.textContent = "Bricks Remaining: " + score; - -} - -var s = 0; // Declare the variable outside the function to store the score -var y=0; -function scoredisplay(hit) { - if (hit) { - s=70-brickCount; - if(s>20){ - y=s-20; - s=s+y*4; - } - else if(s>10){ - y=s-10; - s=s+y; - } - - - } else if(brickCount==70){ - s = 0; // Reset the score to zero if no bricks are hit - } - - - // Update the content of the HTML element with id "s" to display the score - var scoredisplayElement = document.getElementById("s"); - scoredisplayElement.textContent = "Score: " + s; -} - - - - -function paddleMove() { - // paddle - var paddleTopEdgeY = canvas.height - PADDLE_DIST_FROM_EDGE; - var paddleBottomEdgeY = paddleTopEdgeY + PADDLE_THICKNESS; - var paddleLeftEdgeX = paddleX; - var paddleRightEdgeX = paddleX + PADDLE_WIDTH; - if ( - ballY > paddleTopEdgeY && // top of paddle - ballY < paddleBottomEdgeY && // bottom of paddle - ballX > paddleLeftEdgeX && // left half of paddle - ballX < paddleRightEdgeX // right half of paddle - ) { - ballSpeedY = -ballSpeedY; - - var paddleCenterX = paddleX + PADDLE_WIDTH / 2; - var ballDistFromCenterX = ballX - paddleCenterX; - ballSpeedX = ballDistFromCenterX * 0.35; - - if (brickCount == 0) { - brickReset(); - } - } -} - -function movement() { - ballMove(); - ballBrickColl(); - paddleMove(); -} - -function updateMousePos(evt) { - var rect = canvas.getBoundingClientRect(); - var root = document.documentElement; - - mouseX = evt.clientX - rect.left - root.scrollLeft; - mouseY = evt.clientY - rect.top - root.scrollTop; - - paddleX = mouseX - PADDLE_WIDTH / 2; - - // cheat to test ball in any position - // ballX = mouseX; - // ballY = mouseY; - // ballSpeedY = 4; - // ballSpeedY = -4; -} - -/**********GamePlay Draw functions***********/ -function playArea() { - // gameCanvas - colorRect(0, 0, canvas.width, canvas.height, "#222"); - // ball - colorCircle(); - // paddle - colorRect( - paddleX, - canvas.height - PADDLE_DIST_FROM_EDGE, - PADDLE_WIDTH, - PADDLE_THICKNESS, - "#61dafb" - ); - - drawbricks(); -} - -function colorRect(leftX, topY, width, height, color) { - canvasContext.fillStyle = color; - canvasContext.fillRect(leftX, topY, width, height); -} - -function colorText(showWords, textX, textY, fillColor) { - canvasContext.fillStyle = fillColor; - canvasContext.fillText(showWords, textX, textY); -} - -function rowColToArrayIndex(col, row) { - return col + BRICK_COLS * row; -} - -var brickColors = []; - -// Function to initialize the brick colors -function initializeBrickColors() { - brickColors = []; - for (var i = 0; i < BRICK_ROWS * BRICK_COLS; i++) { - // Add a random color to the array - brickColors.push(getRandomColor()); - } -} - -// Function to get a random color -function getRandomColor() { - var colors = ["#f86257", "#5bb9a9", " #7d5ba6", "#0b5394", "#ec9b00"]; - return colors[Math.floor(Math.random() * colors.length)]; -} - -// Call the function to initialize brick colors once during initialization -initializeBrickColors(); - -function drawbricks() { - for (var eachRow = 0; eachRow < BRICK_ROWS; eachRow++) { - for (var eachCol = 0; eachCol < BRICK_COLS; eachCol++) { - var arrayIndex = rowColToArrayIndex(eachCol, eachRow); - if (brickGrid[arrayIndex]) { - // Choose a random color from an array of colors - - colorRect( - BRICK_W * eachCol, - BRICK_H * eachRow, - BRICK_W - BRICK_GAP, - BRICK_H - BRICK_GAP, - brickColors[arrayIndex] - ); - } // if brick - } // each brick - } // each brickrow -} // drawbricks - -function colorCircle() { - var gradient = canvasContext.createRadialGradient( - ballX, - ballY, - 0, - ballX, - ballY, - 10 - ); - gradient.addColorStop(0, "#61dafb"); - gradient.addColorStop(0.5, "#888"); - gradient.addColorStop(1, "#000"); - - canvasContext.fillStyle = gradient; - canvasContext.beginPath(); - canvasContext.arc(ballX, ballY, 10, 0, Math.PI * 2, true); - canvasContext.fill(); -} +/**********Global Var***********/ +var canvas, canvasContext; + +// Bricks +const BRICK_W = 80; +const BRICK_H = 20; +const BRICK_GAP = 2; +const BRICK_COLS = 10; +const BRICK_ROWS = 10; +var brickGrid = new Array(BRICK_COLS * BRICK_ROWS); +var brickCount = 0; + +// Ball +var ballX = 75; +var ballSpeedX = 8; +var ballY = 75; +var ballSpeedY = 8; + +// Main Paddle +var paddleX = 400; +const PADDLE_THICKNESS = 15; +const PADDLE_WIDTH = 100; +const PADDLE_DIST_FROM_EDGE = 60; + +// Mouse +var mouseX = 0; +var mouseY = 0; + +/**********General GamePlay***********/ + +window.onload = function () { + canvas = document.getElementById("gameCanvas"); + canvasContext = canvas.getContext("2d"); + var framesPerSecond = 30; + setInterval(updateAll, 1000 / framesPerSecond); + + canvas.addEventListener("mousemove", updateMousePos); + brickReset(); + ballRest(); +}; + +function updateAll() { + movement(); + playArea(); +} + +function ballRest() { + ballX = canvas.width / 2; + ballY = canvas.height / 2.5; +} + +function brickReset() { + brickCount = 0; + initializeBrickColors(); + + var i; + for (var i = 0; i < 3 * BRICK_COLS; i++) { + brickGrid[i] = false; + } + for (; i < BRICK_COLS * BRICK_ROWS; i++) { + if (Math.random() < 0.5) { + brickGrid[i] = true; + } else { + brickGrid[i] = false; + } + brickGrid[i] = true; + brickCount++; + } +} + +function ballMove() { + // ballMovement + ballX += ballSpeedX; + ballY += ballSpeedY; + // ballY + if (ballY > canvas.height) { + // ballSpeedY = -ballSpeedY; + ballRest(); + brickReset(); + } else if (ballY < 0 && ballSpeedY > 0.0) { + ballSpeedY = -ballSpeedY; + } + // ballx + if (ballX > canvas.width && ballSpeedX > 0.0) { + ballSpeedX = -ballSpeedX; + } else if (ballX < 0 && ballSpeedX < 0.0) { + ballSpeedX = -ballSpeedX; + } +} + +function isBrickAtColRow(col, row) { + if (col >= 0 && col < BRICK_COLS && row >= 0 && row < BRICK_ROWS) { + var brickIndexUnderCoord = rowColToArrayIndex(col, row); + return brickGrid[brickIndexUnderCoord]; + } else { + return false; + } +} + +function ballBrickColl() { + var ballBrickCol = Math.floor(ballX / BRICK_W); + var ballBrickRow = Math.floor(ballY / BRICK_H); + var brickIndexUnderBall = rowColToArrayIndex(ballBrickCol, ballBrickRow); + if ( + ballBrickCol >= 0 && + ballBrickCol < BRICK_COLS && + ballBrickRow >= 0 && + ballBrickRow < BRICK_ROWS + ) { + if (isBrickAtColRow(ballBrickCol, ballBrickRow)) { + brickGrid[brickIndexUnderBall] = false; + brickCount--; + + var prevBallX = ballX - ballSpeedX; + var prevBallY = ballY - ballSpeedY; + var prevBrickCol = Math.floor(prevBallX / BRICK_W); + var prevBrickRow = Math.floor(prevBallY / BRICK_H); + + var bothTestFailed = true; + + if (prevBrickCol !== ballBrickCol) { + if (isBrickAtColRow(prevBrickCol, ballBrickRow) == false) { + ballSpeedX = -ballSpeedX; + bothTestFailed = false; + } + } + + if (prevBrickRow !== ballBrickRow) { + if (isBrickAtColRow(ballBrickCol, prevBrickRow) == false) { + ballSpeedY = -ballSpeedY; + bothTestFailed = false; + } + } + + if (bothTestFailed) { + ballSpeedX = -ballSpeedX; + ballSpeedY = -ballSpeedY; + } + } + } + if (brickCount === 0) { + brickReset(); + updateScore(0); + scoredisplay(false); // Reset the score to zero if no bricks are remaining + } else { + updateScore(brickCount); // Update the score with the remaining brick count + scoredisplay(true); // Increment the score if a brick is hit + } + + // colorText(ballBrickCol+","+ballBrickRow+": "+brickIndexUnderBall, mouseX, mouseY, 'white'); + + if(brickCount=== 70){ + scoredisplay(0); + } +} + +function updateScore(score) { + var scoreElement = document.getElementById("score"); + scoreElement.textContent = "Bricks Remaining: " + score; + +} + +var s = 0; // Declare the variable outside the function to store the score +var y=0; +function scoredisplay(hit) { + if (hit) { + s=70-brickCount; + if(s>20){ + y=s-20; + s=s+y*4; + } + else if(s>10){ + y=s-10; + s=s+y; + } + + + } else if(brickCount==70){ + s = 0; // Reset the score to zero if no bricks are hit + } + + + // Update the content of the HTML element with id "s" to display the score + var scoredisplayElement = document.getElementById("s"); + scoredisplayElement.textContent = "Score: " + s; +} + + + + +function paddleMove() { + // paddle + var paddleTopEdgeY = canvas.height - PADDLE_DIST_FROM_EDGE; + var paddleBottomEdgeY = paddleTopEdgeY + PADDLE_THICKNESS; + var paddleLeftEdgeX = paddleX; + var paddleRightEdgeX = paddleX + PADDLE_WIDTH; + if ( + ballY > paddleTopEdgeY && // top of paddle + ballY < paddleBottomEdgeY && // bottom of paddle + ballX > paddleLeftEdgeX && // left half of paddle + ballX < paddleRightEdgeX // right half of paddle + ) { + ballSpeedY = -ballSpeedY; + + var paddleCenterX = paddleX + PADDLE_WIDTH / 2; + var ballDistFromCenterX = ballX - paddleCenterX; + ballSpeedX = ballDistFromCenterX * 0.35; + + if (brickCount == 0) { + brickReset(); + } + } +} + +function movement() { + ballMove(); + ballBrickColl(); + paddleMove(); +} + +function updateMousePos(evt) { + var rect = canvas.getBoundingClientRect(); + var root = document.documentElement; + + mouseX = evt.clientX - rect.left - root.scrollLeft; + mouseY = evt.clientY - rect.top - root.scrollTop; + + paddleX = mouseX - PADDLE_WIDTH / 2; + + // cheat to test ball in any position + // ballX = mouseX; + // ballY = mouseY; + // ballSpeedY = 4; + // ballSpeedY = -4; +} + +/**********GamePlay Draw functions***********/ +function playArea() { + // gameCanvas + colorRect(0, 0, canvas.width, canvas.height, "#222"); + // ball + colorCircle(); + // paddle + colorRect( + paddleX, + canvas.height - PADDLE_DIST_FROM_EDGE, + PADDLE_WIDTH, + PADDLE_THICKNESS, + "#61dafb" + ); + + drawbricks(); +} + +function colorRect(leftX, topY, width, height, color) { + canvasContext.fillStyle = color; + canvasContext.fillRect(leftX, topY, width, height); +} + +function colorText(showWords, textX, textY, fillColor) { + canvasContext.fillStyle = fillColor; + canvasContext.fillText(showWords, textX, textY); +} + +function rowColToArrayIndex(col, row) { + return col + BRICK_COLS * row; +} + +var brickColors = []; + +// Function to initialize the brick colors +function initializeBrickColors() { + brickColors = []; + for (var i = 0; i < BRICK_ROWS * BRICK_COLS; i++) { + // Add a random color to the array + brickColors.push(getRandomColor()); + } +} + +// Function to get a random color +function getRandomColor() { + var colors = ["#f86257", "#5bb9a9", " #7d5ba6", "#0b5394", "#ec9b00"]; + return colors[Math.floor(Math.random() * colors.length)]; +} + +// Call the function to initialize brick colors once during initialization +initializeBrickColors(); + +function drawbricks() { + for (var eachRow = 0; eachRow < BRICK_ROWS; eachRow++) { + for (var eachCol = 0; eachCol < BRICK_COLS; eachCol++) { + var arrayIndex = rowColToArrayIndex(eachCol, eachRow); + if (brickGrid[arrayIndex]) { + // Choose a random color from an array of colors + + colorRect( + BRICK_W * eachCol, + BRICK_H * eachRow, + BRICK_W - BRICK_GAP, + BRICK_H - BRICK_GAP, + brickColors[arrayIndex] + ); + } // if brick + } // each brick + } // each brickrow +} // drawbricks + +function colorCircle() { + var gradient = canvasContext.createRadialGradient( + ballX, + ballY, + 0, + ballX, + ballY, + 10 + ); + gradient.addColorStop(0, "#61dafb"); + gradient.addColorStop(0.5, "#888"); + gradient.addColorStop(1, "#000"); + + canvasContext.fillStyle = gradient; + canvasContext.beginPath(); + canvasContext.arc(ballX, ballY, 10, 0, Math.PI * 2, true); + canvasContext.fill(); +} diff --git a/Games/Brick_Breaker/styles.css b/Games/Brick_Breaker/styles.css index 7cbb899ef7..4425d585f6 100644 --- a/Games/Brick_Breaker/styles.css +++ b/Games/Brick_Breaker/styles.css @@ -1,75 +1,75 @@ -body { - margin: 20px; - padding: 0; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - /* background-color: #282c34; */ - background: linear-gradient(#282c34, rgb(4, 4, 17)); - color: white; - font-family: 'Arial', sans-serif; -} - -#header-container { - text-align: center; - margin: 20px; - font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; -} - -#header-container h1 { - font-size: 2.7em; - color: #61dafb; - margin: 0; -} -.status{ - display: flex; - flex-direction: row; - justify-content: space-between; - width: 800px;; - margin-bottom: 20px; -} -#score-container #score-display { - - font-size: 30px; - margin: 0px; - margin-bottom: 10px; - -} - -#score-display{ - color:rgb(233, 243, 160); -} - -.status span{ - font-size: 20px; - border: 1px solid rgb(103, 101, 101) !important; - padding: 10px; -} - -/* #canvas-container { - display: flex; - justify-content: center; - align-items: center; -} */ - #canvas-container { - display: flex; - justify-content: center; - align-items: flex-start !important; /* Align bricks to the top */ - height: calc(100vh - 100px); - top:0; -} - -#gameCanvas { - border: 2px solid #61dafb; - background-color: #222; -} - -.home-icon { - font-size: 1.5em; - position: absolute; - /* top: 20px; */ - left: 20px; - color: #61dafb; - text-decoration: none; -} +body { + margin: 20px; + padding: 0; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + /* background-color: #282c34; */ + background: linear-gradient(#282c34, rgb(4, 4, 17)); + color: white; + font-family: 'Arial', sans-serif; +} + +#header-container { + text-align: center; + margin: 20px; + font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; +} + +#header-container h1 { + font-size: 2.7em; + color: #61dafb; + margin: 0; +} +.status{ + display: flex; + flex-direction: row; + justify-content: space-between; + width: 800px;; + margin-bottom: 20px; +} +#score-container #score-display { + + font-size: 30px; + margin: 0px; + margin-bottom: 10px; + +} + +#score-display{ + color:rgb(233, 243, 160); +} + +.status span{ + font-size: 20px; + border: 1px solid rgb(103, 101, 101) !important; + padding: 10px; +} + +/* #canvas-container { + display: flex; + justify-content: center; + align-items: center; +} */ + #canvas-container { + display: flex; + justify-content: center; + align-items: flex-start !important; /* Align bricks to the top */ + height: calc(100vh - 100px); + top:0; +} + +#gameCanvas { + border: 2px solid #61dafb; + background-color: #222; +} + +.home-icon { + font-size: 1.5em; + position: absolute; + /* top: 20px; */ + left: 20px; + color: #61dafb; + text-decoration: none; +} diff --git a/Games/CSS_Crossword/README.md b/Games/CSS_Crossword/README.md index a8fb8d2387..83aea48366 100644 --- a/Games/CSS_Crossword/README.md +++ b/Games/CSS_Crossword/README.md @@ -1,30 +1,30 @@ -# **Know Your Country** - ---- - -
- -## **Description ๐Ÿ“ƒ** -Indulge in the ultimate word challenge with our "CSS Crossword Game" . Decode clever hints, fill the grid, and expand your vocabulary. Perfect for solo brainstorming or friendly competitions. Stimulate your mind and immerse yourself in the classic crossword experience. -- - -## **functionalities ๐ŸŽฎ** - - Utilize CSS Grid to construct the crossword grid, ensuring consistent cell sizing and alignment for a structured layout. Design a CSS-based display for clues, ensuring clarity and aesthetics, with hover effects for interactive clue selection.Implement responsive CSS techniques to ensure the crossword adapts smoothly to various screen sizes, optimizing the user experience on different devices. - -- -
- -## **How to play? ๐Ÿ•น๏ธ** - -In CSS Crossword enter letters into the grid cells based on the chosen clue. Each letter must intersect with existing letters to form valid words.Utilize adjacent filled cells and existing letters to decipher and complete words. Pay attention to letter patterns and word lengths. - - -- - -
- -## **Screenshots ๐Ÿ“ธ** - -
- +# **Know Your Country** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +Indulge in the ultimate word challenge with our "CSS Crossword Game" . Decode clever hints, fill the grid, and expand your vocabulary. Perfect for solo brainstorming or friendly competitions. Stimulate your mind and immerse yourself in the classic crossword experience. +- + +## **functionalities ๐ŸŽฎ** + + Utilize CSS Grid to construct the crossword grid, ensuring consistent cell sizing and alignment for a structured layout. Design a CSS-based display for clues, ensuring clarity and aesthetics, with hover effects for interactive clue selection.Implement responsive CSS techniques to ensure the crossword adapts smoothly to various screen sizes, optimizing the user experience on different devices. + +- +
+ +## **How to play? ๐Ÿ•น๏ธ** + +In CSS Crossword enter letters into the grid cells based on the chosen clue. Each letter must intersect with existing letters to form valid words.Utilize adjacent filled cells and existing letters to decipher and complete words. Pay attention to letter patterns and word lengths. + + +- + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ diff --git a/Games/CSS_Crossword/index.html b/Games/CSS_Crossword/index.html index 062d6f848f..1535a86942 100644 --- a/Games/CSS_Crossword/index.html +++ b/Games/CSS_Crossword/index.html @@ -1,73 +1,73 @@ - -
- - -

- -

- -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
-
+ +
+ + +

+ +

+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+
\ No newline at end of file diff --git a/Games/CSS_Crossword/script.js b/Games/CSS_Crossword/script.js index f606d56849..86a277eabf 100644 --- a/Games/CSS_Crossword/script.js +++ b/Games/CSS_Crossword/script.js @@ -1,374 +1,374 @@ -//---------------------------------// -// GLOBAL VARIABLES // -//---------------------------------// - -var board, wordArr, wordBank, wordsActive, mode; - -var Bounds = { - top:0, right:0, bottom:0, left:0, - - Update:function(x,y){ - this.top = Math.min(y,this.top); - this.right = Math.max(x,this.right); - this.bottom = Math.max(y,this.bottom); - this.left = Math.min(x,this.left); - }, - - Clean:function(){ - this.top = 999; - this.right = 0; - this.bottom = 0; - this.left = 999; - } -}; - - -//---------------------------------// -// MAIN // -//---------------------------------// - -function Play(){ - var letterArr = document.getElementsByClassName('letter'); - - for(var i = 0; i < letterArr.length; i++){ - letterArr[i].innerHTML = ""; - } - - mode = 0; - ToggleInputBoxes(false); -} - - -function Create(){ - if (mode === 0){ - ToggleInputBoxes(true); - document.getElementById("crossword").innerHTML = BoardToHtml(" ") - mode = 1; - } - else{ - GetWordsFromInput(); - - for(var i = 0, isSuccess=false; i < 10 && !isSuccess; i++){ - CleanVars(); - isSuccess = PopulateBoard(); - } - - document.getElementById("crossword").innerHTML = - (isSuccess) ? BoardToHtml(" ") : "Failed to find crossword." ; - } -} - - -function ToggleInputBoxes(active){ - var w=document.getElementsByClassName('word'), - d=document.getElementsByClassName('clue'); - - for(var i=0;i 1){wordArr.push(val);} - } -} - - -function CleanVars(){ - Bounds.Clean(); - wordBank = []; - wordsActive = []; - board = []; - - for(var i = 0; i < 32; i++){ - board.push([]); - for(var j = 0; j < 32; j++){ - board[i].push(null); - } - } -} - - -function PopulateBoard(){ - PrepareBoard(); - - for(var i=0,isOk=true,len=wordBank.length; i board.length){ - isMatch = false; - break; - } - - crossVal.push(board[xIndex][curCross.y]); - crossVal.push(board[xIndex][curCross.y + 1]); - crossVal.push(board[xIndex][curCross.y - 1]); - } - else{ - var yIndex = curCross.y + m; - - if (yIndex < 0 || yIndex > board[curCross.x].length){ - isMatch = false; - break; - } - - crossVal.push(board[curCross.x][yIndex]); - crossVal.push(board[curCross.x + 1][yIndex]); - crossVal.push(board[curCross.x - 1][yIndex]); - } - - if(m > -1 && m < lenM-1){ - if (crossVal[0] !== curWord.char[m]){ - if (crossVal[0] !== null){ - isMatch = false; - break; - } - else if (crossVal[1] !== null){ - isMatch = false; - break; - } - else if (crossVal[2] !== null){ - isMatch = false; - break; - } - } - } - else if (crossVal[0] !== null){ - isMatch = false; - break; - } - } - } - - if (isMatch === true){ - curWord.successfulMatches.push(curCross); - } - } - } - } - } - - curMatchDiff = curWord.totalMatches - curWord.effectiveMatches; - - if (curMatchDiff0){ - curMatchDiff = minMatchDiff; - curIndex = i; - } - else if (curMatchDiff <= 0){ - return false; - } - } - } - - if (curIndex === -1){ - return false; - } - - var spliced = wordBank.splice(curIndex, 1); - wordsActive.push(spliced[0]); - - var pushIndex = wordsActive.length - 1, - rand = Math.random(), - matchArr = wordsActive[pushIndex].successfulMatches, - matchIndex = Math.floor(rand * matchArr.length), - matchData = matchArr[matchIndex]; - - wordsActive[pushIndex].x = matchData.x; - wordsActive[pushIndex].y = matchData.y; - wordsActive[pushIndex].dir = matchData.dir; - - for(i = 0, len = wordsActive[pushIndex].char.length; i < len; i++){ - var xIndex = matchData.x, - yIndex = matchData.y; - - if (matchData.dir === 0){ - xIndex += i; - board[xIndex][yIndex] = wordsActive[pushIndex].char[i]; - } - else{ - yIndex += i; - board[xIndex][yIndex] = wordsActive[pushIndex].char[i]; - } - - Bounds.Update(xIndex,yIndex); - } - - return true; -} - - -function BoardToHtml(blank){ - for(var i=Bounds.top-1, str=""; i"+h+""); -} - -function ArrayToString(a,s){ - if(a===null||a.length<1)return ""; - if(s===null)s=","; - for(var r=a[0],i=1;i 1){wordArr.push(val);} + } +} + + +function CleanVars(){ + Bounds.Clean(); + wordBank = []; + wordsActive = []; + board = []; + + for(var i = 0; i < 32; i++){ + board.push([]); + for(var j = 0; j < 32; j++){ + board[i].push(null); + } + } +} + + +function PopulateBoard(){ + PrepareBoard(); + + for(var i=0,isOk=true,len=wordBank.length; i board.length){ + isMatch = false; + break; + } + + crossVal.push(board[xIndex][curCross.y]); + crossVal.push(board[xIndex][curCross.y + 1]); + crossVal.push(board[xIndex][curCross.y - 1]); + } + else{ + var yIndex = curCross.y + m; + + if (yIndex < 0 || yIndex > board[curCross.x].length){ + isMatch = false; + break; + } + + crossVal.push(board[curCross.x][yIndex]); + crossVal.push(board[curCross.x + 1][yIndex]); + crossVal.push(board[curCross.x - 1][yIndex]); + } + + if(m > -1 && m < lenM-1){ + if (crossVal[0] !== curWord.char[m]){ + if (crossVal[0] !== null){ + isMatch = false; + break; + } + else if (crossVal[1] !== null){ + isMatch = false; + break; + } + else if (crossVal[2] !== null){ + isMatch = false; + break; + } + } + } + else if (crossVal[0] !== null){ + isMatch = false; + break; + } + } + } + + if (isMatch === true){ + curWord.successfulMatches.push(curCross); + } + } + } + } + } + + curMatchDiff = curWord.totalMatches - curWord.effectiveMatches; + + if (curMatchDiff0){ + curMatchDiff = minMatchDiff; + curIndex = i; + } + else if (curMatchDiff <= 0){ + return false; + } + } + } + + if (curIndex === -1){ + return false; + } + + var spliced = wordBank.splice(curIndex, 1); + wordsActive.push(spliced[0]); + + var pushIndex = wordsActive.length - 1, + rand = Math.random(), + matchArr = wordsActive[pushIndex].successfulMatches, + matchIndex = Math.floor(rand * matchArr.length), + matchData = matchArr[matchIndex]; + + wordsActive[pushIndex].x = matchData.x; + wordsActive[pushIndex].y = matchData.y; + wordsActive[pushIndex].dir = matchData.dir; + + for(i = 0, len = wordsActive[pushIndex].char.length; i < len; i++){ + var xIndex = matchData.x, + yIndex = matchData.y; + + if (matchData.dir === 0){ + xIndex += i; + board[xIndex][yIndex] = wordsActive[pushIndex].char[i]; + } + else{ + yIndex += i; + board[xIndex][yIndex] = wordsActive[pushIndex].char[i]; + } + + Bounds.Update(xIndex,yIndex); + } + + return true; +} + + +function BoardToHtml(blank){ + for(var i=Bounds.top-1, str=""; i"+h+""); +} + +function ArrayToString(a,s){ + if(a===null||a.length<1)return ""; + if(s===null)s=","; + for(var r=a[0],i=1;i - -## **Description ๐Ÿ“ƒ** - -CSS Select is a fun game where we make our CSS concepts stronger in a gamified way. - -## **How to play? ๐Ÿ•น๏ธ** - -Use keyboard to type - -
- -## **Screenshots ๐Ÿ“ธ** - -
- - - +# **CSS_Select** + +--- + +
+ +## **Description ๐Ÿ“ƒ** + +CSS Select is a fun game where we make our CSS concepts stronger in a gamified way. + +## **How to play? ๐Ÿ•น๏ธ** + +Use keyboard to type + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ + + ![image](../../assets/images/CSS_Select.png) \ No newline at end of file diff --git a/Games/Candy_Crush/README.md b/Games/Candy_Crush/README.md index 0acf90cd62..664355d9e2 100644 --- a/Games/Candy_Crush/README.md +++ b/Games/Candy_Crush/README.md @@ -1,38 +1,38 @@ -# **Candy Crush** - ---- - -
- -## **Description ๐Ÿ“ƒ** -- The goal is to match at least three candies of the same colour and type in a row or column to clear them from the board. With each successful match, players earn points. -- This project is built on a basic web tech stacks such as HTML, CSS and Javascript. - -## **functionalities ๐ŸŽฎ** -- Scoring system to for comparison. -- Responsive design. -- Random candy generation. -
- -## **How to play? ๐Ÿ•น๏ธ** -- The game will start with a 9x9 candy board. -- Use your mouse and interchange the places of the candies. -- As you form a line(either horizontal or vertical) of atleast 3 candies you score atleast 30 points. - -
- -## **Screenshots ๐Ÿ“ธ** - -
- -![image](../../assets/images/candy_crush.png) - -
- -## **Working video ๐Ÿ“น** - - - - -https://github.com/singh-anushka/GameZone/assets/93376863/4c99b212-0d20-4b3e-9674-325792093d08 - +# **Candy Crush** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +- The goal is to match at least three candies of the same colour and type in a row or column to clear them from the board. With each successful match, players earn points. +- This project is built on a basic web tech stacks such as HTML, CSS and Javascript. + +## **functionalities ๐ŸŽฎ** +- Scoring system to for comparison. +- Responsive design. +- Random candy generation. +
+ +## **How to play? ๐Ÿ•น๏ธ** +- The game will start with a 9x9 candy board. +- Use your mouse and interchange the places of the candies. +- As you form a line(either horizontal or vertical) of atleast 3 candies you score atleast 30 points. + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ +![image](../../assets/images/candy_crush.png) + +
+ +## **Working video ๐Ÿ“น** + + + + +https://github.com/singh-anushka/GameZone/assets/93376863/4c99b212-0d20-4b3e-9674-325792093d08 + diff --git a/Games/Candy_Crush/index.html b/Games/Candy_Crush/index.html index 274c132b8a..c60c3d07ef 100644 --- a/Games/Candy_Crush/index.html +++ b/Games/Candy_Crush/index.html @@ -1,26 +1,26 @@ - - - - - - - Candy Crush - - - - - - - - - -
-
-

Score: 0

-
-
-

Candy Crush

- - + + + + + + + Candy Crush + + + + + + + + + +
+
+

Score: 0

+
+
+

Candy Crush

+ + \ No newline at end of file diff --git a/Games/Candy_Crush/script.js b/Games/Candy_Crush/script.js index af7732fed3..60ed160a07 100644 --- a/Games/Candy_Crush/script.js +++ b/Games/Candy_Crush/script.js @@ -1,203 +1,203 @@ - -var candies = ["Blue", "Orange", "Green", "Yellow", "Red", "Purple"]; -var board = []; -var rows = 9; -var columns = 9; -var score = 0; - -var currTile; -var otherTile; - - -window.onload = function() { - startGame(); - - //1/10th of a second - window.setInterval(function(){ - crushCandy(); - slideCandy(); - generateCandy(); - }, 100); -} - -function randomCandy() { - return candies[Math.floor(Math.random() * candies.length)]; //0 - 5.99 -} - -function startGame() { - for (let r = 0; r < rows; r++) { - let row = []; - for (let c = 0; c < columns; c++) { - // - let tile = document.createElement("img"); - tile.id = r.toString() + "-" + c.toString(); - tile.src = "././assets/" + randomCandy() + ".png"; - - //DRAG FUNCTIONALITY - tile.addEventListener("dragstart", dragStart); //click on a candy, initialize drag process - tile.addEventListener("dragover", dragOver); //clicking on candy, moving mouse to drag the candy - tile.addEventListener("dragenter", dragEnter); //dragging candy onto another candy - tile.addEventListener("dragleave", dragLeave); //leave candy over another candy - tile.addEventListener("drop", dragDrop); //dropping a candy over another candy - tile.addEventListener("dragend", dragEnd); //after drag process completed, we swap candies - - document.getElementById("board").append(tile); - row.push(tile); - } - board.push(row); - } - -} - -function dragStart() { - //this refers to tile that was clicked on for dragging - currTile = this; -} - -function dragOver(e) { - e.preventDefault(); -} - -function dragEnter(e) { - e.preventDefault(); -} - -function dragLeave() { - -} - -function dragDrop() { - //this refers to the target tile that was dropped on - otherTile = this; -} - -function dragEnd() { - - if (currTile.src.includes("blank") || otherTile.src.includes("blank")) { - return; - } - - let currCoords = currTile.id.split("-"); // id="0-0" -> ["0", "0"] - let r = parseInt(currCoords[0]); - let c = parseInt(currCoords[1]); - - let otherCoords = otherTile.id.split("-"); - let r2 = parseInt(otherCoords[0]); - let c2 = parseInt(otherCoords[1]); - - let moveLeft = c2 == c-1 && r == r2; - let moveRight = c2 == c+1 && r == r2; - - let moveUp = r2 == r-1 && c == c2; - let moveDown = r2 == r+1 && c == c2; - - let isAdjacent = moveLeft || moveRight || moveUp || moveDown; - - if (isAdjacent) { - let currImg = currTile.src; - let otherImg = otherTile.src; - currTile.src = otherImg; - otherTile.src = currImg; - - let validMove = checkValid(); - if (!validMove) { - let currImg = currTile.src; - let otherImg = otherTile.src; - currTile.src = otherImg; - otherTile.src = currImg; - } - } -} - -function crushCandy() { - //crushFive(); - //crushFour(); - crushThree(); - document.getElementById("score").innerText = score; - -} - -function crushThree() { - //check rows - for (let r = 0; r < rows; r++) { - for (let c = 0; c < columns-2; c++) { - let candy1 = board[r][c]; - let candy2 = board[r][c+1]; - let candy3 = board[r][c+2]; - if (candy1.src == candy2.src && candy2.src == candy3.src && !candy1.src.includes("blank")) { - candy1.src = "././assets/blank.png"; - candy2.src = "././assets/blank.png"; - candy3.src = "././assets/blank.png"; - score += 30; - } - } - } - - //check columns - for (let c = 0; c < columns; c++) { - for (let r = 0; r < rows-2; r++) { - let candy1 = board[r][c]; - let candy2 = board[r+1][c]; - let candy3 = board[r+2][c]; - if (candy1.src == candy2.src && candy2.src == candy3.src && !candy1.src.includes("blank")) { - candy1.src = "././assets/blank.png"; - candy2.src = "././assets/blank.png"; - candy3.src = "././assets/blank.png"; - score += 30; - } - } - } -} - -function checkValid() { - //check rows - for (let r = 0; r < rows; r++) { - for (let c = 0; c < columns-2; c++) { - let candy1 = board[r][c]; - let candy2 = board[r][c+1]; - let candy3 = board[r][c+2]; - if (candy1.src == candy2.src && candy2.src == candy3.src && !candy1.src.includes("blank")) { - return true; - } - } - } - - //check columns - for (let c = 0; c < columns; c++) { - for (let r = 0; r < rows-2; r++) { - let candy1 = board[r][c]; - let candy2 = board[r+1][c]; - let candy3 = board[r+2][c]; - if (candy1.src == candy2.src && candy2.src == candy3.src && !candy1.src.includes("blank")) { - return true; - } - } - } - - return false; -} - - -function slideCandy() { - for (let c = 0; c < columns; c++) { - let ind = rows - 1; - for (let r = columns-1; r >= 0; r--) { - if (!board[r][c].src.includes("blank")) { - board[ind][c].src = board[r][c].src; - ind -= 1; - } - } - - for (let r = ind; r >= 0; r--) { - board[r][c].src = "././assets/blank.png"; - } - } -} - -function generateCandy() { - for (let c = 0; c < columns; c++) { - if (board[0][c].src.includes("blank")) { - board[0][c].src = "././assets/" + randomCandy() + ".png"; - } - } + +var candies = ["Blue", "Orange", "Green", "Yellow", "Red", "Purple"]; +var board = []; +var rows = 9; +var columns = 9; +var score = 0; + +var currTile; +var otherTile; + + +window.onload = function() { + startGame(); + + //1/10th of a second + window.setInterval(function(){ + crushCandy(); + slideCandy(); + generateCandy(); + }, 100); +} + +function randomCandy() { + return candies[Math.floor(Math.random() * candies.length)]; //0 - 5.99 +} + +function startGame() { + for (let r = 0; r < rows; r++) { + let row = []; + for (let c = 0; c < columns; c++) { + // + let tile = document.createElement("img"); + tile.id = r.toString() + "-" + c.toString(); + tile.src = "././assets/" + randomCandy() + ".png"; + + //DRAG FUNCTIONALITY + tile.addEventListener("dragstart", dragStart); //click on a candy, initialize drag process + tile.addEventListener("dragover", dragOver); //clicking on candy, moving mouse to drag the candy + tile.addEventListener("dragenter", dragEnter); //dragging candy onto another candy + tile.addEventListener("dragleave", dragLeave); //leave candy over another candy + tile.addEventListener("drop", dragDrop); //dropping a candy over another candy + tile.addEventListener("dragend", dragEnd); //after drag process completed, we swap candies + + document.getElementById("board").append(tile); + row.push(tile); + } + board.push(row); + } + +} + +function dragStart() { + //this refers to tile that was clicked on for dragging + currTile = this; +} + +function dragOver(e) { + e.preventDefault(); +} + +function dragEnter(e) { + e.preventDefault(); +} + +function dragLeave() { + +} + +function dragDrop() { + //this refers to the target tile that was dropped on + otherTile = this; +} + +function dragEnd() { + + if (currTile.src.includes("blank") || otherTile.src.includes("blank")) { + return; + } + + let currCoords = currTile.id.split("-"); // id="0-0" -> ["0", "0"] + let r = parseInt(currCoords[0]); + let c = parseInt(currCoords[1]); + + let otherCoords = otherTile.id.split("-"); + let r2 = parseInt(otherCoords[0]); + let c2 = parseInt(otherCoords[1]); + + let moveLeft = c2 == c-1 && r == r2; + let moveRight = c2 == c+1 && r == r2; + + let moveUp = r2 == r-1 && c == c2; + let moveDown = r2 == r+1 && c == c2; + + let isAdjacent = moveLeft || moveRight || moveUp || moveDown; + + if (isAdjacent) { + let currImg = currTile.src; + let otherImg = otherTile.src; + currTile.src = otherImg; + otherTile.src = currImg; + + let validMove = checkValid(); + if (!validMove) { + let currImg = currTile.src; + let otherImg = otherTile.src; + currTile.src = otherImg; + otherTile.src = currImg; + } + } +} + +function crushCandy() { + //crushFive(); + //crushFour(); + crushThree(); + document.getElementById("score").innerText = score; + +} + +function crushThree() { + //check rows + for (let r = 0; r < rows; r++) { + for (let c = 0; c < columns-2; c++) { + let candy1 = board[r][c]; + let candy2 = board[r][c+1]; + let candy3 = board[r][c+2]; + if (candy1.src == candy2.src && candy2.src == candy3.src && !candy1.src.includes("blank")) { + candy1.src = "././assets/blank.png"; + candy2.src = "././assets/blank.png"; + candy3.src = "././assets/blank.png"; + score += 30; + } + } + } + + //check columns + for (let c = 0; c < columns; c++) { + for (let r = 0; r < rows-2; r++) { + let candy1 = board[r][c]; + let candy2 = board[r+1][c]; + let candy3 = board[r+2][c]; + if (candy1.src == candy2.src && candy2.src == candy3.src && !candy1.src.includes("blank")) { + candy1.src = "././assets/blank.png"; + candy2.src = "././assets/blank.png"; + candy3.src = "././assets/blank.png"; + score += 30; + } + } + } +} + +function checkValid() { + //check rows + for (let r = 0; r < rows; r++) { + for (let c = 0; c < columns-2; c++) { + let candy1 = board[r][c]; + let candy2 = board[r][c+1]; + let candy3 = board[r][c+2]; + if (candy1.src == candy2.src && candy2.src == candy3.src && !candy1.src.includes("blank")) { + return true; + } + } + } + + //check columns + for (let c = 0; c < columns; c++) { + for (let r = 0; r < rows-2; r++) { + let candy1 = board[r][c]; + let candy2 = board[r+1][c]; + let candy3 = board[r+2][c]; + if (candy1.src == candy2.src && candy2.src == candy3.src && !candy1.src.includes("blank")) { + return true; + } + } + } + + return false; +} + + +function slideCandy() { + for (let c = 0; c < columns; c++) { + let ind = rows - 1; + for (let r = columns-1; r >= 0; r--) { + if (!board[r][c].src.includes("blank")) { + board[ind][c].src = board[r][c].src; + ind -= 1; + } + } + + for (let r = ind; r >= 0; r--) { + board[r][c].src = "././assets/blank.png"; + } + } +} + +function generateCandy() { + for (let c = 0; c < columns; c++) { + if (board[0][c].src.includes("blank")) { + board[0][c].src = "././assets/" + randomCandy() + ".png"; + } + } } \ No newline at end of file diff --git a/Games/Candy_Crush/style.css b/Games/Candy_Crush/style.css index b70e24ceec..302c5473e9 100644 --- a/Games/Candy_Crush/style.css +++ b/Games/Candy_Crush/style.css @@ -1,42 +1,42 @@ -body { - background-color: #FFFAF4; - background-size: cover; - font-family: Arial, Helvetica, sans-serif; - text-align: center; - display: flex; - height: 100vh; - flex-direction: column; - justify-content: space-between; - overflow: hidden; -} - -h1{ - font-family: 'Shrikhand', cursive; - font-size: 52pt; - color: #E08E6D; -} - -h3{ - font-family: 'Corben', cursive; - color: #F6C391; - font-size: 30pt; - padding-bottom: 0; - margin-bottom: 0; -} - -#board { - width: 450px; - height: 450px; - background-color: #FFE8E8; - border: 5px solid #D25380; - border-radius: 10px; - margin: 0 auto; - display: flex; - flex-wrap: wrap; - padding-top: 0; -} - -#board img { - width: 50px; - height: 50px; +body { + background-color: #FFFAF4; + background-size: cover; + font-family: Arial, Helvetica, sans-serif; + text-align: center; + display: flex; + height: 100vh; + flex-direction: column; + justify-content: space-between; + overflow: hidden; +} + +h1{ + font-family: 'Shrikhand', cursive; + font-size: 52pt; + color: #E08E6D; +} + +h3{ + font-family: 'Corben', cursive; + color: #F6C391; + font-size: 30pt; + padding-bottom: 0; + margin-bottom: 0; +} + +#board { + width: 450px; + height: 450px; + background-color: #FFE8E8; + border: 5px solid #D25380; + border-radius: 10px; + margin: 0 auto; + display: flex; + flex-wrap: wrap; + padding-top: 0; +} + +#board img { + width: 50px; + height: 50px; } \ No newline at end of file diff --git a/Games/CareTaker/README.md b/Games/CareTaker/README.md index c71fee9fae..e03858eabf 100644 --- a/Games/CareTaker/README.md +++ b/Games/CareTaker/README.md @@ -1,34 +1,34 @@ -# **CareTaker** - ---- - -
- -## **Description ๐Ÿ“ƒ** - -- CareTaker is a 2D platformer where the player controls a character that can move left and right. The goal of the game is to reach the end of the level without falling off the platforms. - -## **functionalities ๐ŸŽฎ** - -- **2D platformer**: The game is a 2D platformer, which means that the player controls a character that can move left and right and jump. -- **Simple controls**: The game is controlled using the keyboard. The left arrow key moves the character left, the right arrow key moves the character right, and the spacebar makes the character jump. -- **CSS**: The CSS in the game is used to style the game graphics. The CSS defines the colors, fonts, and sizes of the different game elements. -- **Theme**: The theme of the game is adventure. The player controls a character who is on a quest to reach the end of the level. The player must use their skills to navigate the obstacles and reach their destination. The game is set in a simple but colorful world, which adds to the sense of adventure. -
- -## **How to play? ๐Ÿ•น๏ธ** - -- The game is controlled using the keyboard. The left arrow key moves the character left, the right arrow key moves the character right. - -
- -## **Screenshots ๐Ÿ“ธ** - - - -![Image](CareTaker.png) - -
- -## **Working video ๐Ÿ“น** - +# **CareTaker** + +--- + +
+ +## **Description ๐Ÿ“ƒ** + +- CareTaker is a 2D platformer where the player controls a character that can move left and right. The goal of the game is to reach the end of the level without falling off the platforms. + +## **functionalities ๐ŸŽฎ** + +- **2D platformer**: The game is a 2D platformer, which means that the player controls a character that can move left and right and jump. +- **Simple controls**: The game is controlled using the keyboard. The left arrow key moves the character left, the right arrow key moves the character right, and the spacebar makes the character jump. +- **CSS**: The CSS in the game is used to style the game graphics. The CSS defines the colors, fonts, and sizes of the different game elements. +- **Theme**: The theme of the game is adventure. The player controls a character who is on a quest to reach the end of the level. The player must use their skills to navigate the obstacles and reach their destination. The game is set in a simple but colorful world, which adds to the sense of adventure. +
+ +## **How to play? ๐Ÿ•น๏ธ** + +- The game is controlled using the keyboard. The left arrow key moves the character left, the right arrow key moves the character right. + +
+ +## **Screenshots ๐Ÿ“ธ** + + + +![Image](CareTaker.png) + +
+ +## **Working video ๐Ÿ“น** + diff --git a/Games/Cartoon_Character_Guessing_Game/game.html b/Games/Cartoon_Character_Guessing_Game/game.html index 77a8952b6d..356b00fe3d 100644 --- a/Games/Cartoon_Character_Guessing_Game/game.html +++ b/Games/Cartoon_Character_Guessing_Game/game.html @@ -1,17 +1,17 @@ -` - - - - - - - - Cartoon Character Guessing Game - - -
- -
- - +` + + + + + + + + Cartoon Character Guessing Game + + +
+ +
+ + \ No newline at end of file diff --git a/Games/Cartoon_Character_Guessing_Game/index.html b/Games/Cartoon_Character_Guessing_Game/index.html index 26631dc61a..20bd22459e 100644 --- a/Games/Cartoon_Character_Guessing_Game/index.html +++ b/Games/Cartoon_Character_Guessing_Game/index.html @@ -1,19 +1,19 @@ - - - - - - - - - Cartoon Character Guessing Game - - -
-

Cartoon Character Guessing Game

- -
- + + + + + + + + + Cartoon Character Guessing Game + + +
+

Cartoon Character Guessing Game

+ +
+ \ No newline at end of file diff --git a/Games/Cartoon_Character_Guessing_Game/script.js b/Games/Cartoon_Character_Guessing_Game/script.js index 5327ce41b9..646ee6638a 100644 --- a/Games/Cartoon_Character_Guessing_Game/script.js +++ b/Games/Cartoon_Character_Guessing_Game/script.js @@ -1,205 +1,205 @@ -const data = [ - { - "id": 1, - "image_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/4f/Mickey_Mouse_%28poster_version%29.svg/800px-Mickey_Mouse_%28poster_version%29.svg.png", - "character_name": "Mickey Mouse" - }, - { - "id": 2, - "image_url": "https://th.bing.com/th/id/OIP.ggStsRwWxTyMR5U9BIWpFAHaHw?w=176&h=184&c=7&r=0&o=5&dpr=1.3&pid=1.7", - "character_name": "SpongeBob SquarePants" - }, - { - "id": 3, - "image_url": "https://upload.wikimedia.org/wikipedia/en/0/02/Homer_Simpson_2006.png", - "character_name": "Homer Simpson" - }, - { - "id": 4, - "image_url": "https://upload.wikimedia.org/wikipedia/en/5/53/Scooby-Doo.png", - "character_name": "Scooby-Doo" - }, - { - "id": 5, - "image_url": "https://upload.wikimedia.org/wikipedia/en/f/f6/Tom_Tom_and_Jerry.png", - "character_name": "Tom Cat" - }, - { - "id": 6, - "image_url": "https://upload.wikimedia.org/wikipedia/en/2/2f/Jerry_Mouse.png", - "character_name": "Jerry Mouse" - }, - { - "id": 7, - "image_url": "https://www.desicomments.com/wp-content/uploads/2017/02/Image-Of-Donald-Duck.jpg", - "character_name": "Donald Duck" - }, - { - "id": 8, - "image_url": "https://upload.wikimedia.org/wikipedia/en/a/aa/Bart_Simpson_200px.png", - "character_name": "Bart Simpson" - }, - { - "id": 9, - "image_url": "https://upload.wikimedia.org/wikipedia/en/1/17/Bugs_Bunny.svg", - "character_name": "Bugs Bunny" - }, - { - "id": 10, - "image_url": "https://pngimg.com/uploads/pokemon/pokemon_PNG148.png", - "character_name": "Pikachu" - }, - { - "id": 11, - "image_url": "https://vignette.wikia.nocookie.net/vsbattles/images/4/4f/PopEye.png/revision/latest?cb=20160307172307", - "character_name": "Popeye" - }, - { - "id": 12, - "image_url": "https://www.nicepng.com/png/detail/53-534923_cartoon-character-png-fred-flintstone.png", - "character_name": "Fred Flintstone" - }, - { - "id": 13, - "image_url": "https://www.cartoonpics.net/data/media/11/snoopy_friends.png", - "character_name": "Snoopy" - }, - { - "id": 14, - "image_url": "https://images2.wikia.nocookie.net/__cb20130525054541/woodywoodpecker/images/2/26/Woody-woodpecker-tv-04-g.jpg", - "character_name": "Woody Woodpecker" - }, - { - "id": 15, - "image_url": "https://vignette.wikia.nocookie.net/dominios-encantados/images/e/ea/WIKI_BUZ_LIGHTYEAR.jpg/revision/latest?cb=20141222161728&path-prefix=es", - "character_name": "Buzz Lightyear" - }, - { - "id": 16, - "image_url": "https://images6.fanpop.com/image/photos/38800000/Elsa-frozen-38894629-960-960.jpg", - "character_name": "Elsa" - }, - { - "id": 17, - "image_url": "https://upload.wikimedia.org/wikipedia/en/1/17/Batman-BenAffleck.jpg", - "character_name": "Batman" - } -] -const questionWrapper = document.querySelector(".question-wrapper"); -let timeInterval; - -function getRandomQuestion() { - const randomIndex = Math.floor(Math.random() * data.length); - return data[randomIndex]; -} -function getRandomOption() { - const randomIndex = Math.floor(Math.random() * data.length); - return data[randomIndex].character_name; -} - -function getRandomOptions(correctCharacter) { - let options = [correctCharacter]; - while (options.length < 4) { - let option = getRandomOption(); - if (!options.includes(option)) { - options.push(option); - } - } - return options.sort(() => Math.random() - 0.5); // shuffle the options list -} - -function createResetBtnElement() { - let resetBtnElement = document.createElement('button'); - resetBtnElement.setAttribute('class', 'bg-blue-700 font-bold px-6 py-2 rounded hover:bg-blue-600 text-white focus:ring-2 focus:ring-blue-300 border-2 border-white mr-4') - resetBtnElement.addEventListener('click', renderQuestion) - resetBtnElement.textContent = 'Reset' - resetBtnElement.style.pointerEvents = 'auto'; - return resetBtnElement; -} - -function createQuitBtnElement() { - let quitBtnElement = document.createElement('button'); - quitBtnElement.setAttribute('class', 'bg-blue-700 font-bold px-6 py-2 rounded hover:bg-blue-600 text-white focus:ring-2 focus:ring-blue-300 border-2 border-blue-700') - quitBtnElement.addEventListener('click', () => { - window.location.href = 'index.html' - }) - quitBtnElement.textContent = 'Quit' - quitBtnElement.style.pointerEvents = 'auto'; - return quitBtnElement; -} - -function createImageElement(url) { - let imgElement = document.createElement('img'); - imgElement.setAttribute('class', "mx-auto my-8 h-40 w-40") - imgElement.setAttribute('src', url); - - return imgElement; -} - -function createTimerElement() { - let timerElement = document.createElement('span'); - timerElement.setAttribute('class', "text-blue-600 bg-white rounded px-2 py-1 font-bold") - let timeLeft = 10; - timerElement.textContent = `Time Left: ${timeLeft}s` - timeInterval = setInterval(() => { - timeLeft-=1 - timerElement.textContent = `Time Left: ${timeLeft}s` - if (timeLeft==0) { - clearInterval(timeInterval) - renderQuestion() - return - } - }, 1000) - - return timerElement; -} - -function createHeaderElement() { - let headerElement = document.createElement('h1'); - headerElement.setAttribute('class', "text-gray-200 flex items-center p-2") - headerElement.innerHTML = `Guess who is this!` - headerElement.appendChild(createTimerElement()) - - return headerElement; -} - -function createOptionsElement(index, option, correctOption) { - let optionElement = document.createElement('div'); - optionElement.setAttribute('class', 'option w-full bg-white shadow-md rounded p-2 flex my-4 flex items-center cursor-pointer hover:bg-blue-100') - optionElement.innerHTML = ` -
${index + 1}
-
${option}
- - × - ` - - optionElement.addEventListener('click', (e) => { - if (option === correctOption) { - optionElement.classList.add('correct') - } else { - optionElement.classList.add('wrong') - } - questionWrapper.style.pointerEvents = 'none'; - clearInterval(timeInterval) - }) - return optionElement; -} - -function renderQuestion() { - questionWrapper.innerHTML = ``; - questionWrapper.classList.remove('hide'); - questionWrapper.style.pointerEvents = 'auto'; - - const randomQuestion = getRandomQuestion(); - const options = getRandomOptions(randomQuestion.character_name); - - questionWrapper.appendChild(createHeaderElement()) - questionWrapper.appendChild(createImageElement(randomQuestion.image_url)) - options.map((option, index) => { - questionWrapper.appendChild(createOptionsElement(index, option, randomQuestion.character_name)) - }) - questionWrapper.appendChild(createResetBtnElement()); - questionWrapper.appendChild(createQuitBtnElement()); -} - -document.addEventListener('DOMContentLoaded', renderQuestion); +const data = [ + { + "id": 1, + "image_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/4f/Mickey_Mouse_%28poster_version%29.svg/800px-Mickey_Mouse_%28poster_version%29.svg.png", + "character_name": "Mickey Mouse" + }, + { + "id": 2, + "image_url": "https://th.bing.com/th/id/OIP.ggStsRwWxTyMR5U9BIWpFAHaHw?w=176&h=184&c=7&r=0&o=5&dpr=1.3&pid=1.7", + "character_name": "SpongeBob SquarePants" + }, + { + "id": 3, + "image_url": "https://upload.wikimedia.org/wikipedia/en/0/02/Homer_Simpson_2006.png", + "character_name": "Homer Simpson" + }, + { + "id": 4, + "image_url": "https://upload.wikimedia.org/wikipedia/en/5/53/Scooby-Doo.png", + "character_name": "Scooby-Doo" + }, + { + "id": 5, + "image_url": "https://upload.wikimedia.org/wikipedia/en/f/f6/Tom_Tom_and_Jerry.png", + "character_name": "Tom Cat" + }, + { + "id": 6, + "image_url": "https://upload.wikimedia.org/wikipedia/en/2/2f/Jerry_Mouse.png", + "character_name": "Jerry Mouse" + }, + { + "id": 7, + "image_url": "https://www.desicomments.com/wp-content/uploads/2017/02/Image-Of-Donald-Duck.jpg", + "character_name": "Donald Duck" + }, + { + "id": 8, + "image_url": "https://upload.wikimedia.org/wikipedia/en/a/aa/Bart_Simpson_200px.png", + "character_name": "Bart Simpson" + }, + { + "id": 9, + "image_url": "https://upload.wikimedia.org/wikipedia/en/1/17/Bugs_Bunny.svg", + "character_name": "Bugs Bunny" + }, + { + "id": 10, + "image_url": "https://pngimg.com/uploads/pokemon/pokemon_PNG148.png", + "character_name": "Pikachu" + }, + { + "id": 11, + "image_url": "https://vignette.wikia.nocookie.net/vsbattles/images/4/4f/PopEye.png/revision/latest?cb=20160307172307", + "character_name": "Popeye" + }, + { + "id": 12, + "image_url": "https://www.nicepng.com/png/detail/53-534923_cartoon-character-png-fred-flintstone.png", + "character_name": "Fred Flintstone" + }, + { + "id": 13, + "image_url": "https://www.cartoonpics.net/data/media/11/snoopy_friends.png", + "character_name": "Snoopy" + }, + { + "id": 14, + "image_url": "https://images2.wikia.nocookie.net/__cb20130525054541/woodywoodpecker/images/2/26/Woody-woodpecker-tv-04-g.jpg", + "character_name": "Woody Woodpecker" + }, + { + "id": 15, + "image_url": "https://vignette.wikia.nocookie.net/dominios-encantados/images/e/ea/WIKI_BUZ_LIGHTYEAR.jpg/revision/latest?cb=20141222161728&path-prefix=es", + "character_name": "Buzz Lightyear" + }, + { + "id": 16, + "image_url": "https://images6.fanpop.com/image/photos/38800000/Elsa-frozen-38894629-960-960.jpg", + "character_name": "Elsa" + }, + { + "id": 17, + "image_url": "https://upload.wikimedia.org/wikipedia/en/1/17/Batman-BenAffleck.jpg", + "character_name": "Batman" + } +] +const questionWrapper = document.querySelector(".question-wrapper"); +let timeInterval; + +function getRandomQuestion() { + const randomIndex = Math.floor(Math.random() * data.length); + return data[randomIndex]; +} +function getRandomOption() { + const randomIndex = Math.floor(Math.random() * data.length); + return data[randomIndex].character_name; +} + +function getRandomOptions(correctCharacter) { + let options = [correctCharacter]; + while (options.length < 4) { + let option = getRandomOption(); + if (!options.includes(option)) { + options.push(option); + } + } + return options.sort(() => Math.random() - 0.5); // shuffle the options list +} + +function createResetBtnElement() { + let resetBtnElement = document.createElement('button'); + resetBtnElement.setAttribute('class', 'bg-blue-700 font-bold px-6 py-2 rounded hover:bg-blue-600 text-white focus:ring-2 focus:ring-blue-300 border-2 border-white mr-4') + resetBtnElement.addEventListener('click', renderQuestion) + resetBtnElement.textContent = 'Reset' + resetBtnElement.style.pointerEvents = 'auto'; + return resetBtnElement; +} + +function createQuitBtnElement() { + let quitBtnElement = document.createElement('button'); + quitBtnElement.setAttribute('class', 'bg-blue-700 font-bold px-6 py-2 rounded hover:bg-blue-600 text-white focus:ring-2 focus:ring-blue-300 border-2 border-blue-700') + quitBtnElement.addEventListener('click', () => { + window.location.href = 'index.html' + }) + quitBtnElement.textContent = 'Quit' + quitBtnElement.style.pointerEvents = 'auto'; + return quitBtnElement; +} + +function createImageElement(url) { + let imgElement = document.createElement('img'); + imgElement.setAttribute('class', "mx-auto my-8 h-40 w-40") + imgElement.setAttribute('src', url); + + return imgElement; +} + +function createTimerElement() { + let timerElement = document.createElement('span'); + timerElement.setAttribute('class', "text-blue-600 bg-white rounded px-2 py-1 font-bold") + let timeLeft = 10; + timerElement.textContent = `Time Left: ${timeLeft}s` + timeInterval = setInterval(() => { + timeLeft-=1 + timerElement.textContent = `Time Left: ${timeLeft}s` + if (timeLeft==0) { + clearInterval(timeInterval) + renderQuestion() + return + } + }, 1000) + + return timerElement; +} + +function createHeaderElement() { + let headerElement = document.createElement('h1'); + headerElement.setAttribute('class', "text-gray-200 flex items-center p-2") + headerElement.innerHTML = `Guess who is this!` + headerElement.appendChild(createTimerElement()) + + return headerElement; +} + +function createOptionsElement(index, option, correctOption) { + let optionElement = document.createElement('div'); + optionElement.setAttribute('class', 'option w-full bg-white shadow-md rounded p-2 flex my-4 flex items-center cursor-pointer hover:bg-blue-100') + optionElement.innerHTML = ` +
${index + 1}
+
${option}
+ + × + ` + + optionElement.addEventListener('click', (e) => { + if (option === correctOption) { + optionElement.classList.add('correct') + } else { + optionElement.classList.add('wrong') + } + questionWrapper.style.pointerEvents = 'none'; + clearInterval(timeInterval) + }) + return optionElement; +} + +function renderQuestion() { + questionWrapper.innerHTML = ``; + questionWrapper.classList.remove('hide'); + questionWrapper.style.pointerEvents = 'auto'; + + const randomQuestion = getRandomQuestion(); + const options = getRandomOptions(randomQuestion.character_name); + + questionWrapper.appendChild(createHeaderElement()) + questionWrapper.appendChild(createImageElement(randomQuestion.image_url)) + options.map((option, index) => { + questionWrapper.appendChild(createOptionsElement(index, option, randomQuestion.character_name)) + }) + questionWrapper.appendChild(createResetBtnElement()); + questionWrapper.appendChild(createQuitBtnElement()); +} + +document.addEventListener('DOMContentLoaded', renderQuestion); diff --git a/Games/Cartoon_Character_Guessing_Game/style.css b/Games/Cartoon_Character_Guessing_Game/style.css index 2ee6db02c7..9a9d5c98eb 100644 --- a/Games/Cartoon_Character_Guessing_Game/style.css +++ b/Games/Cartoon_Character_Guessing_Game/style.css @@ -1,46 +1,46 @@ -.question-wrapper, .start { - max-width: 500px; - pointer-events: auto; -} -.display { - display: block; - pointer-events: auto; -} -.hide { - display: none; - pointer-events: none; -} -.f { - display: flex; - align-items: center; - justify-content: center; -} -.check, .times { - display: none; -} -.option.correct { - background-color: #c1ffc1; - color: green; -} -.option.correct .no { - background-color: green; -} -.option.correct .no { - background-color: green; -} -.option.correct .check { - display: inline-block; -} -.option.wrong { - background-color: #ffc1c1; - color: rgb(181, 0, 0); -} -.option.wrong .no { - background-color: red; -} -.option.wrong .no { - background-color: red; -} -.option.wrong .times { - display: inline-block; +.question-wrapper, .start { + max-width: 500px; + pointer-events: auto; +} +.display { + display: block; + pointer-events: auto; +} +.hide { + display: none; + pointer-events: none; +} +.f { + display: flex; + align-items: center; + justify-content: center; +} +.check, .times { + display: none; +} +.option.correct { + background-color: #c1ffc1; + color: green; +} +.option.correct .no { + background-color: green; +} +.option.correct .no { + background-color: green; +} +.option.correct .check { + display: inline-block; +} +.option.wrong { + background-color: #ffc1c1; + color: rgb(181, 0, 0); +} +.option.wrong .no { + background-color: red; +} +.option.wrong .no { + background-color: red; +} +.option.wrong .times { + display: inline-block; } \ No newline at end of file diff --git a/Games/Cast_and_Catch/README.md b/Games/Cast_and_Catch/README.md index fe8808d1a5..2d811f15e7 100644 --- a/Games/Cast_and_Catch/README.md +++ b/Games/Cast_and_Catch/README.md @@ -1,38 +1,38 @@ -# **CAST AND CATCH** - ---- - -
- -## **Description ๐Ÿ“ƒ** -The Fishing Game is a simple and addictive game where the player tries to catch fish using a fishing hook. The player's goal is to catch as many fish as possible within a given time limit or until a certain score is reached. It tests the player's timing and reflexes as they try to hook the fish swimming in the pond. - -## **functionalities ๐ŸŽฎ** -The game starts with a pond background image and a fishing hook positioned at the bottom center of the pond. -Fish of different sizes and types swim randomly in the pond. - -
- -## **How to play? ๐Ÿ•น๏ธ** -The player can control the fishing hook using mouse clicks. -If the hook overlaps with the fish, the player scores points, and the caught fish is removed from the pond. -If the hook misses the fish, no points are scored. -The game continues for a certain duration. -The player's score is displayed on the screen during the game. -After the game ends, the player can restart the game to play again. -- -- - -
- -## **Screenshots ๐Ÿ“ธ** - -
Image Description -
-Image Description - - - - - -
+# **CAST AND CATCH** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +The Fishing Game is a simple and addictive game where the player tries to catch fish using a fishing hook. The player's goal is to catch as many fish as possible within a given time limit or until a certain score is reached. It tests the player's timing and reflexes as they try to hook the fish swimming in the pond. + +## **functionalities ๐ŸŽฎ** +The game starts with a pond background image and a fishing hook positioned at the bottom center of the pond. +Fish of different sizes and types swim randomly in the pond. + +
+ +## **How to play? ๐Ÿ•น๏ธ** +The player can control the fishing hook using mouse clicks. +If the hook overlaps with the fish, the player scores points, and the caught fish is removed from the pond. +If the hook misses the fish, no points are scored. +The game continues for a certain duration. +The player's score is displayed on the screen during the game. +After the game ends, the player can restart the game to play again. +- +- + +
+ +## **Screenshots ๐Ÿ“ธ** + +
Image Description +
+Image Description + + + + + +
diff --git a/Games/Cast_and_Catch/css/style.css b/Games/Cast_and_Catch/css/style.css index 49b05f7282..cefdaf985c 100644 --- a/Games/Cast_and_Catch/css/style.css +++ b/Games/Cast_and_Catch/css/style.css @@ -1,467 +1,467 @@ -body { - background-image: -webkit-linear-gradient(top, #9400d9, #9b0630); - background-image: -moz-linear-gradient(top, #00C5D9, #066A9B); - background-image: -ms-linear-gradient(top, #00C5D9, #066A9B); - background-image: -o-linear-gradient(top, #00C5D9, #066A9B); - background-image: linear-gradient(top, #00C5D9, #066A9B); - font-family: 'Patrick Hand', cursive; - letter-spacing: 0.25px; - font-size: 21px; - margin: 0; - padding: 0; - height: 100vh; - color: white; - overflow: hidden; -} -h1#start-title { - font-family: 'Black Ops One', cursive; - font-weight: 300; - color: #080508; -} -h2 { - margin-top: 0; -} -#info-wrapper { - background-color: rgba(0,0,0,0.25); - padding: 20px; - border-radius: 20px; - border: 4px solid white; - position: relative; -} - -#game-container { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - position: absolute; - text-align: center; - height: 100vh; - width: 100vw; -} -#game-stats { - font-size: 24px; - position: absolute; - left: 28px; - top: 28px; - color: #FFF; - min-width: 100px; - min-height: 180px; - background-color: rgba(0,0,0,0.25); - padding: 20px; - border-radius: 20px; - border: 4px solid white; - display: none; - text-align: left; - flex-direction: column; - align-items: center; -} -#game-day { - font-family: 'Black Ops One', cursive; -} -#game-score { - margin-top: 8px; - font-size: 21px; - display:block; -} -#game-goal { - display: none; - font-size: 32px; - position: absolute; - top: 28px; - background-color: rgba(0,0,0,0.25); - padding: 10px 20px; - border-radius: 20px; - border: 4px solid white; - margin: 0; -} -#click-container{ - display: none; - position: relative; - height: 100vh; - width: 75vw; - margin: 0 auto; - cursor: none; -} -#line{ - display: block; - position:absolute; - height: 100vh; - width: 1px; - background-color: white; - transform: translate(-12.5vw,-100%); - margin-left: 8px; - margin-top: -12px; -} -#line:after { - content:""; - display:block; - height: 30px; - width: 30px; - position: absolute; - bottom: -30px; - left:-21px; - background-image: url("../images/hook.svg"); -} -#line.zapped { - border: 1.5px #ffff33 solid; -} -h1 { - margin: 0; - padding: 20px; -} -button#start-btn { - margin: 20px 0; - padding: 50px; - font-size: 18px; - background: transparent; - border: 4px solid white; - border-radius: 50%; - cursor:pointer; -} -button#start-btn .arrow { - display: block; - border-color: transparent white; - border-style: solid; - border-width: 30px 0px 30px 60px; -} - -.fish { - width: 50px; - height: 50px; - background-color: #7fb8ea; - transform:rotate(45deg); - border-radius: 50%; - position: absolute; - transition: left 0.1s linear, top 0.1s linear, opacity 1s linear; - animation-name: appear; - animation-duration: 0.5s; -} -.fish:after { - content:""; - border-color: transparent #3100f7; - border-style: solid; - border-width: 20px 20px 20px 0px; - transform-origin: center left; - transform: rotate(-45deg); - position: absolute; - right: -15%; - top: -15%; -} -.fish:before, -.rare-fish:before { - content: ""; - background-color: #FFF; - height: 8px; - width: 8px; - display: block; - border-radius: 50%; - top: 50%; - position: absolute; - left: 10%; -} -.rare-fish { - width: 50px; - height: 50px; - background-color: #B02C90; - transform:rotate(45deg); - border-radius: 25%; - position: absolute; - transition: left 0.1s linear, top 0.1s linear, opacity 1s linear; - animation-name: appear; - animation-duration: 0.5s; -} -.rare-fish:after { - content:""; - border-color: transparent #B02C90; - border-style: solid; - border-width: 20px 20px 20px 0px; - transform-origin: center left; - transform: rotate(-45deg); - position: absolute; - right: -15%; - top: -15%; -} -.rare-fish:after { - border-color: transparent #B02C90; -} -.fish.left, -.rare-fish.left{ - transform: scaleX(-1) rotate(45deg); - animation-name: appear; - animation-duration: 0.5s; -} -.shark.left { - transform: scaleX(-1); - animation-name: appear; - animation-duration: 0.5s; -} - -.fish.caught, -.rare-fish.caught, -.trash.caught { - animation: pull-up 0.5s; - animation-fill-mode: forwards; -} - -.fish.disappear, -.rare-fish.disappear, -.trash.disappear, -.jellyfish.disappear, -.shark.disappear{ - animation: disappear 0.35s; - animation-fill-mode: forwards; -} -.trash { - width: 30px; - border-radius:50% 50% 25% 25%; - height:40px; - background-color: rgba(255,255,255,0.3333); - position: absolute; - transition: all 1s; - transform: rotate(-90deg); - animation-name: float; - animation-duration: 1s; - animation-timing-function: linear; -} -.trash:before { - content: ""; - width: 15px; - height: 8px; - border-radius: 10%; - background-color: #C70437; - position:absolute; - left: 50%; - top: -8px; - transform: translateX(-50%); - -} -.trash:after { - content: ""; - width: 30px; - height: 50px; - border-radius: 25% 25% 30% 30%; - background-color: rgba(255,255,255,0.3333); - position: absolute; - top: 40px; -} - -.jellyfish { - width: 80px; - height: 100px; - background-image:url(../images/jellyfish.svg); - background-size: contain; - position: absolute; - transition: left 0.1s linear, top 0.1s linear, opacity 1s linear; - animation-name: floatUp; - animation-duration: 1s; - animation-timing-function: linear; -} -.shark { - width: 240px; - height: 128px; - background-image:url(../images/shark.svg); - background-size: contain; - background-repeat: no-repeat; - position: absolute; - transition: left 0.1s linear, top 0.1s linear, opacity 1s linear; - animation-name: floatUp; - animation-duration: 1s; - animation-timing-function: linear; -} -.hit-text { - font-size: 28px; - position: absolute; - z-index: 2; - top: -20px; - animation-name: point; - animation-duration: 0.75s; - animation-fill-mode: forwards; -} - -@keyframes appear { - from { - opacity: 0; - } - to { - opacity: 1; - } -} -@keyframes disappear { - from { - opacity: 1; - } - to { - opacity: 0; - } -} -@keyframes float { - 0% { - opacity: 0; - margin-left: 0px; - margin-top: -20px - } - 25% { - opacity: 0.25; - margin-left: -10px; - margin-top: -15px - } - 50% { - opacity: 0.5; - margin-left: 0px; - margin-top: -10px - } - 75% { - opacity: 0.75; - margin-left: 10px; - margin-top: -5px - } - 100% { - opacity: 1; - margin-left: 0px; - margin-top: 0px; - } -} -@keyframes floatUp { - 0% { - opacity: 0; - margin-left: 0px; - margin-top: 20px - } - 25% { - opacity: 0.25; - margin-left: -10px; - margin-top: 15px - } - 50% { - opacity: 0.5; - margin-left: 0px; - margin-top: 10px - } - 75% { - opacity: 0.75; - margin-left: 10px; - margin-top: 5px - } - 100% { - opacity: 1; - margin-left: 0px; - margin-top: 0px; - } -} - -@keyframes pull-up { - from { - margin-top: 0; - opacity: 1; - } - to { - margin-top: -50px; - opacity:0; - } -} - -@keyframes point { - 0% { - transform: translateY(0); - } - 50% { - opacity: 1; - } - 100% { - opacity: 0; - } -} - -#bubbles { - width: 100%; - height: 100%; - position: absolute; - top: 0; - left: 0; - z-index: -1; - overflow: hidden; -} - -#bubbles div { - border: solid 2px rgba(255,255,255,0.125); - border-radius: 100%; - position: absolute; - visibility: hidden; - animation: fade 10s infinite; -} - -@keyframes fade { - from { - bottom: -24px; - opacity: 1; - visibility: visible; - } - to { - bottom: 120%; - } -} - -#clock { - position: absolute; - width: 120px; - height: 120px; - top: 80px; -} -/* timer */ -svg { - position: absolute; - width: 100%; - height: 100%; - pointer-events: none; - z-index: 2; -} - -.chart-gauge { - font-size: 2.5rem; - letter-spacing: 4px; - text-anchor: middle; - dominant-baseline: central; - alignment-baseline: middle; - stroke-linecap: round; -} -.timer-time { - fill: #FFFFFF; - transition: 3s; -} -.timer-time.warning { - fill: #ff5252; - animation: shake 0.2s infinite; -} -.timer-backdrop { - transform: rotate(-90deg); - transform-origin: center; - fill: none; - stroke: rgba(255,255,255,.2); - stroke-width: 5; -} -.timer-gauge { - transform: rotate(-90deg); - transform-origin: center; - fill: none; - stroke: #FFF; - stroke-width: 5; - animation-iteration-count: infinite; - stroke-dashoffset: 0; - stroke-dasharray: 250; - transition: 14s linear; -} -.timer-gauge.ticking { - stroke-dashoffset: 250; -} - -@keyframes fill { - 0% { stroke-dashoffset: 360; } - 100% { stroke-dashoffset: 0; } -} - -@keyframes shake { - 0% { letter-spacing:4px; } - 50% { letter-spacing:0px; } - 100% { letter-spacing:4px; } +body { + background-image: -webkit-linear-gradient(top, #9400d9, #9b0630); + background-image: -moz-linear-gradient(top, #00C5D9, #066A9B); + background-image: -ms-linear-gradient(top, #00C5D9, #066A9B); + background-image: -o-linear-gradient(top, #00C5D9, #066A9B); + background-image: linear-gradient(top, #00C5D9, #066A9B); + font-family: 'Patrick Hand', cursive; + letter-spacing: 0.25px; + font-size: 21px; + margin: 0; + padding: 0; + height: 100vh; + color: white; + overflow: hidden; +} +h1#start-title { + font-family: 'Black Ops One', cursive; + font-weight: 300; + color: #080508; +} +h2 { + margin-top: 0; +} +#info-wrapper { + background-color: rgba(0,0,0,0.25); + padding: 20px; + border-radius: 20px; + border: 4px solid white; + position: relative; +} + +#game-container { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + position: absolute; + text-align: center; + height: 100vh; + width: 100vw; +} +#game-stats { + font-size: 24px; + position: absolute; + left: 28px; + top: 28px; + color: #FFF; + min-width: 100px; + min-height: 180px; + background-color: rgba(0,0,0,0.25); + padding: 20px; + border-radius: 20px; + border: 4px solid white; + display: none; + text-align: left; + flex-direction: column; + align-items: center; +} +#game-day { + font-family: 'Black Ops One', cursive; +} +#game-score { + margin-top: 8px; + font-size: 21px; + display:block; +} +#game-goal { + display: none; + font-size: 32px; + position: absolute; + top: 28px; + background-color: rgba(0,0,0,0.25); + padding: 10px 20px; + border-radius: 20px; + border: 4px solid white; + margin: 0; +} +#click-container{ + display: none; + position: relative; + height: 100vh; + width: 75vw; + margin: 0 auto; + cursor: none; +} +#line{ + display: block; + position:absolute; + height: 100vh; + width: 1px; + background-color: white; + transform: translate(-12.5vw,-100%); + margin-left: 8px; + margin-top: -12px; +} +#line:after { + content:""; + display:block; + height: 30px; + width: 30px; + position: absolute; + bottom: -30px; + left:-21px; + background-image: url("../images/hook.svg"); +} +#line.zapped { + border: 1.5px #ffff33 solid; +} +h1 { + margin: 0; + padding: 20px; +} +button#start-btn { + margin: 20px 0; + padding: 50px; + font-size: 18px; + background: transparent; + border: 4px solid white; + border-radius: 50%; + cursor:pointer; +} +button#start-btn .arrow { + display: block; + border-color: transparent white; + border-style: solid; + border-width: 30px 0px 30px 60px; +} + +.fish { + width: 50px; + height: 50px; + background-color: #7fb8ea; + transform:rotate(45deg); + border-radius: 50%; + position: absolute; + transition: left 0.1s linear, top 0.1s linear, opacity 1s linear; + animation-name: appear; + animation-duration: 0.5s; +} +.fish:after { + content:""; + border-color: transparent #3100f7; + border-style: solid; + border-width: 20px 20px 20px 0px; + transform-origin: center left; + transform: rotate(-45deg); + position: absolute; + right: -15%; + top: -15%; +} +.fish:before, +.rare-fish:before { + content: ""; + background-color: #FFF; + height: 8px; + width: 8px; + display: block; + border-radius: 50%; + top: 50%; + position: absolute; + left: 10%; +} +.rare-fish { + width: 50px; + height: 50px; + background-color: #B02C90; + transform:rotate(45deg); + border-radius: 25%; + position: absolute; + transition: left 0.1s linear, top 0.1s linear, opacity 1s linear; + animation-name: appear; + animation-duration: 0.5s; +} +.rare-fish:after { + content:""; + border-color: transparent #B02C90; + border-style: solid; + border-width: 20px 20px 20px 0px; + transform-origin: center left; + transform: rotate(-45deg); + position: absolute; + right: -15%; + top: -15%; +} +.rare-fish:after { + border-color: transparent #B02C90; +} +.fish.left, +.rare-fish.left{ + transform: scaleX(-1) rotate(45deg); + animation-name: appear; + animation-duration: 0.5s; +} +.shark.left { + transform: scaleX(-1); + animation-name: appear; + animation-duration: 0.5s; +} + +.fish.caught, +.rare-fish.caught, +.trash.caught { + animation: pull-up 0.5s; + animation-fill-mode: forwards; +} + +.fish.disappear, +.rare-fish.disappear, +.trash.disappear, +.jellyfish.disappear, +.shark.disappear{ + animation: disappear 0.35s; + animation-fill-mode: forwards; +} +.trash { + width: 30px; + border-radius:50% 50% 25% 25%; + height:40px; + background-color: rgba(255,255,255,0.3333); + position: absolute; + transition: all 1s; + transform: rotate(-90deg); + animation-name: float; + animation-duration: 1s; + animation-timing-function: linear; +} +.trash:before { + content: ""; + width: 15px; + height: 8px; + border-radius: 10%; + background-color: #C70437; + position:absolute; + left: 50%; + top: -8px; + transform: translateX(-50%); + +} +.trash:after { + content: ""; + width: 30px; + height: 50px; + border-radius: 25% 25% 30% 30%; + background-color: rgba(255,255,255,0.3333); + position: absolute; + top: 40px; +} + +.jellyfish { + width: 80px; + height: 100px; + background-image:url(../images/jellyfish.svg); + background-size: contain; + position: absolute; + transition: left 0.1s linear, top 0.1s linear, opacity 1s linear; + animation-name: floatUp; + animation-duration: 1s; + animation-timing-function: linear; +} +.shark { + width: 240px; + height: 128px; + background-image:url(../images/shark.svg); + background-size: contain; + background-repeat: no-repeat; + position: absolute; + transition: left 0.1s linear, top 0.1s linear, opacity 1s linear; + animation-name: floatUp; + animation-duration: 1s; + animation-timing-function: linear; +} +.hit-text { + font-size: 28px; + position: absolute; + z-index: 2; + top: -20px; + animation-name: point; + animation-duration: 0.75s; + animation-fill-mode: forwards; +} + +@keyframes appear { + from { + opacity: 0; + } + to { + opacity: 1; + } +} +@keyframes disappear { + from { + opacity: 1; + } + to { + opacity: 0; + } +} +@keyframes float { + 0% { + opacity: 0; + margin-left: 0px; + margin-top: -20px + } + 25% { + opacity: 0.25; + margin-left: -10px; + margin-top: -15px + } + 50% { + opacity: 0.5; + margin-left: 0px; + margin-top: -10px + } + 75% { + opacity: 0.75; + margin-left: 10px; + margin-top: -5px + } + 100% { + opacity: 1; + margin-left: 0px; + margin-top: 0px; + } +} +@keyframes floatUp { + 0% { + opacity: 0; + margin-left: 0px; + margin-top: 20px + } + 25% { + opacity: 0.25; + margin-left: -10px; + margin-top: 15px + } + 50% { + opacity: 0.5; + margin-left: 0px; + margin-top: 10px + } + 75% { + opacity: 0.75; + margin-left: 10px; + margin-top: 5px + } + 100% { + opacity: 1; + margin-left: 0px; + margin-top: 0px; + } +} + +@keyframes pull-up { + from { + margin-top: 0; + opacity: 1; + } + to { + margin-top: -50px; + opacity:0; + } +} + +@keyframes point { + 0% { + transform: translateY(0); + } + 50% { + opacity: 1; + } + 100% { + opacity: 0; + } +} + +#bubbles { + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; + z-index: -1; + overflow: hidden; +} + +#bubbles div { + border: solid 2px rgba(255,255,255,0.125); + border-radius: 100%; + position: absolute; + visibility: hidden; + animation: fade 10s infinite; +} + +@keyframes fade { + from { + bottom: -24px; + opacity: 1; + visibility: visible; + } + to { + bottom: 120%; + } +} + +#clock { + position: absolute; + width: 120px; + height: 120px; + top: 80px; +} +/* timer */ +svg { + position: absolute; + width: 100%; + height: 100%; + pointer-events: none; + z-index: 2; +} + +.chart-gauge { + font-size: 2.5rem; + letter-spacing: 4px; + text-anchor: middle; + dominant-baseline: central; + alignment-baseline: middle; + stroke-linecap: round; +} +.timer-time { + fill: #FFFFFF; + transition: 3s; +} +.timer-time.warning { + fill: #ff5252; + animation: shake 0.2s infinite; +} +.timer-backdrop { + transform: rotate(-90deg); + transform-origin: center; + fill: none; + stroke: rgba(255,255,255,.2); + stroke-width: 5; +} +.timer-gauge { + transform: rotate(-90deg); + transform-origin: center; + fill: none; + stroke: #FFF; + stroke-width: 5; + animation-iteration-count: infinite; + stroke-dashoffset: 0; + stroke-dasharray: 250; + transition: 14s linear; +} +.timer-gauge.ticking { + stroke-dashoffset: 250; +} + +@keyframes fill { + 0% { stroke-dashoffset: 360; } + 100% { stroke-dashoffset: 0; } +} + +@keyframes shake { + 0% { letter-spacing:4px; } + 50% { letter-spacing:0px; } + 100% { letter-spacing:4px; } } \ No newline at end of file diff --git a/Games/Cast_and_Catch/images/hook.svg b/Games/Cast_and_Catch/images/hook.svg index bedbb88307..4b64de8b2a 100644 --- a/Games/Cast_and_Catch/images/hook.svg +++ b/Games/Cast_and_Catch/images/hook.svg @@ -1,8 +1,8 @@ - - - - - + + + + + diff --git a/Games/Cast_and_Catch/index.html b/Games/Cast_and_Catch/index.html index 92e34a088d..a0e59208d0 100644 --- a/Games/Cast_and_Catch/index.html +++ b/Games/Cast_and_Catch/index.html @@ -1,40 +1,40 @@ - - - - Gone Fishing! - - - - - - -
-
-

Cast and Catch

-
-
- -
-
- Day 1 - -
- - - - 15s - -
- Total Score: 0 -
-

-
-
- -
-
- - + + + + Gone Fishing! + + + + + + +
+
+

Cast and Catch

+
+
+ +
+
+ Day 1 + +
+ + + + 15s + +
+ Total Score: 0 +
+

+
+
+ +
+
+ + \ No newline at end of file diff --git a/Games/Cast_and_Catch/js/script.js b/Games/Cast_and_Catch/js/script.js index 7f5e72ad3e..c747114368 100644 --- a/Games/Cast_and_Catch/js/script.js +++ b/Games/Cast_and_Catch/js/script.js @@ -1,475 +1,475 @@ -window.onload = function() { - const gameContainer = document.querySelector("#game-container"); - const clickContainer = document.querySelector("#click-container"); - const fishingLine = document.querySelector("#line"); - const startScreen = document.querySelector("#start-screen"); - const startTitle = document.querySelector("#start-title"); - const infoWrapper = document.querySelector("#info-wrapper"); - const instructions = document.querySelector("#instructions"); - const startBtn = document.querySelector("#start-btn"); - const gameStats = document.querySelector("#game-stats"); - const gameGoal = document.querySelector("#game-goal"); - const gameDay = document.querySelector("#game-day"); - const gameTimer = document.querySelector("#game-timer"); - const gameTimerGauge = document.querySelector(".timer-gauge"); - const gameScore = document.querySelector("#game-score"); - var mousePosition = { - x:0, - y:0 - } - var gameTimerInterval = null; - var day = 0; - var score = 0; - var currentScore = 0; - var fishTracker = [0,0,0,0] //first item is fish, second is rare fish, third is trash, fourth is jellyfish. no sharks as it will lead to autolose - - //initialise the create items interval variables - var createFishInterval = null; - var createRareFishInterval = null; - var createTrashInterval = null; - var createJellyfishInterval = null; - var createSharkInterval = null; - - var days = [{ - "day": 0, - "score": 20, - "instruction": "

You are on a fishing trip!
There are total of 5 days to go through.
You need to get a certain score to proceed to the next day

Cast and Catch !

" - },{ - "day": 1, - "score": 30, - "instruction": "You can catch rare fishes now.
They are fast, so be ready!" - },{ - "day": 2, - "score": 35, - "instruction": "Lately, more trash are found in the ocean.
There is penalty if you catch some.
Let's continue and avoid the trash!" - },{ - "day": 3, - "score": 40, - "instruction": "Jellyfishes have invaded this ocean region.
You will get stunned if you catch them
Let's continue and avoid getting stunned by them!" - },{ - "day": 4, - "score": 45, - "instruction": "Sharks have been sighted lately.
You have to restart the entire week if you catch them!
Let's continue and not provoke them!" - }]; - - //music and sounds - var bgm; //set bgm - var blop; //fish sound - var rareBlop; // rare fish sound - var trashSound; // trash sound - var bzzt; //jellyfish zapping sound - var bite; //shark bite sound - - //event listeners - startBtn.addEventListener("click", startGame); - clickContainer.addEventListener("mousemove", checkCursor); - - function checkCursor (event){ - //update cursor co ordinates - mousePosition.x = event.clientX; - mousePosition.y = event.clientY; - //set fishing line to follow cursor - fishingLine.style.left= mousePosition.x+"px"; - fishingLine.style.top = mousePosition.y+"px"; - } - //create audio element for playing music and sfx - function sound(src) { - this.sound = document.createElement("audio"); - this.sound.src = src; - this.sound.setAttribute("preload", "auto"); - this.sound.setAttribute("controls", "none"); - this.sound.style.display = "none"; - document.body.appendChild(this.sound); - this.play = function(){ - this.sound.play(); - } - this.stop = function(){ - this.sound.pause(); - } - } - - //start game function - function startGame () { - //day = 4; - //initialise sounds - blop = new sound('sfx/fish.mp3'); - rareBlop = new sound('sfx/rare-fish.mp3'); - trashSound = new sound('sfx/trash.mp3'); - bzzt = new sound('sfx/bzzt.mp3'); - bite = new sound('sfx/bite.mp3'); - bgm = new sound('sfx/Bug_Catching.mp3'); - bgm.play(); - if (day === 0){ - fishTracker = [0,0,0,0,0]; - score = 0; - } - currentScore=0; - infoWrapper.style.display = "none"; - startTitle.style.display = "none"; - clickContainer.style.display = "block"; - gameStats.style.display = "flex"; - gameGoal.style.display = "block"; - createItems(); - } - //create items function - function createItems() { - createTimer(); - day++; - gameDay.innerText = "Day 0"+day; - gameGoal.innerText = `Goal: ${currentScore}/${days[day-1].score}`; - //start creating items depending on the day - switch (day) { - case 1: - createFishInterval = setInterval(createFish, 250); - break; - - case 2: - createFishInterval = setInterval(createFish, 250); - createRareFishInterval = setInterval(createRareFish, 2200); - break; - - case 3: - createFishInterval = setInterval(createFish, 250); - createRareFishInterval = setInterval(createRareFish, 1500); - createTrashInterval = setInterval(createTrash, 1000); - break; - - case 4: - createFishInterval = setInterval(createFish, 250); - createRareFishInterval = setInterval(createRareFish, 1250); - createTrashInterval = setInterval(createTrash, 1500); - createJellyfishInterval = setInterval(createJellyfish,2000); - break; - - case 5: - createFishInterval = setInterval(createFish, 200); - createRareFishInterval = setInterval(createRareFish, 1100); - createTrashInterval = setInterval(createTrash, 1500); - createJellyfishInterval = setInterval(createJellyfish,2000); - createSharkInterval = setInterval(createShark,4000); - break; - } - } - //create timer function - function createTimer () { - gameTimer.innerText = "15s"; - gameScore.innerText = "Total Score: 0"; - let sec = 0; - gameTimerInterval = setInterval(startGameTimer, 1000); - function startGameTimer () { - gameTimer.textContent = 15-sec+"s"; - if (sec === 15) { - sec = 0; - endDay(false); - gameTimer.textContent = 15-sec+"s"; - gameTimer.classList.remove("warning"); - gameTimerGauge.classList.remove("ticking"); - } - else { - if (sec === 1) { - gameTimerGauge.classList.add("ticking"); - } - if (sec > 9){ - gameTimer.classList.add("warning"); - } - sec++ - } - } - } - //create fish function - function createFish () { - let fish = document.createElement("div"); - fish.classList.add("item"); - fish.classList.add("fish"); - clickContainer.appendChild(fish); - setPosition(fish); - fish.addEventListener("mouseover", hit); - setTimeout(function() { - if (!fish.classList.contains("caught")){ - fish.classList.add("disappear"); - } - setTimeout(function() { - if (clickContainer.contains(fish)){ - clickContainer.removeChild(fish); - } - }, 350); - }, 1000); - } - //create rare fish function - function createRareFish () { - let fish = document.createElement("div"); - fish.classList.add("item"); - fish.classList.add("rare-fish"); - clickContainer.appendChild(fish); - setPosition(fish); - fish.addEventListener("mouseover", hit); - setTimeout(function() { - if (!fish.classList.contains("caught")){ - fish.classList.add("disappear"); - } - setTimeout(function() { - if (clickContainer.contains(fish)){ - clickContainer.removeChild(fish); - } - }, 350); - - }, 650); - } - //create trash function - function createTrash () { - let trash = document.createElement("div"); - trash.classList.add("item"); - trash.classList.add("trash"); - clickContainer.appendChild(trash); - setPosition(trash); - trash.addEventListener("mouseover", hit); - setTimeout(function() { - if (!trash.classList.contains("caught")){ - trash.classList.add("disappear"); - } - setTimeout(function() { - if (clickContainer.contains(trash)){ - clickContainer.removeChild(trash); - } - }, 350); - }, 3000); - } - //create jellyfish function - function createJellyfish () { - let jellyfish = document.createElement("div"); - jellyfish.classList.add("item"); - jellyfish.classList.add("jellyfish"); - clickContainer.appendChild(jellyfish); - setPosition(jellyfish); - jellyfish.addEventListener("mouseover", hit); - setTimeout(function() { - if (!jellyfish.classList.contains("caught")){ - jellyfish.classList.add("disappear"); - } - setTimeout(function() { - if (clickContainer.contains(jellyfish)){ - clickContainer.removeChild(jellyfish); - } - }, 350); - }, 3000); - } - //create shark function - function createShark () { - let shark = document.createElement("div"); - shark.classList.add("item"); - shark.classList.add("shark"); - clickContainer.appendChild(shark); - setPosition(shark); - shark.addEventListener("mouseover", hit); - setTimeout(function() { - if (!shark.classList.contains("caught")){ - shark.classList.add("disappear"); - } - setTimeout(function() { - if (clickContainer.contains(shark)){ - clickContainer.removeChild(shark); - } - }, 350); - }, 3000); - } - - function setPosition(item) { - let leftPos = Math.floor(Math.random() * (clickContainer.offsetWidth-100)); - let topPos = Math.floor(Math.random() * ((clickContainer.offsetHeight/5*4)-100)+(clickContainer.offsetHeight/5)); - // if it a type of sea creature and is not trash - if (!item.classList.contains("trash")) { - let randomNum = Math.floor(Math.random()*2); - //left side - if (randomNum%2 === 0){ - if (!item.classList.contains("jellyfish")){ - leftPos = Math.floor(Math.random() * ((clickContainer.offsetWidth/4)-100)); - } - else { - leftPos = Math.floor(Math.random() * ((clickContainer.offsetWidth/2)-100)); - } - setInterval(function(){ - if (item.classList.contains("fish")) { - leftPos+=45; - } - else if (item.classList.contains("rare-fish")){ - leftPos+=65; - } - else if (item.classList.contains("jellyfish")){ - leftPos+=5; - } - else if (item.classList.contains("shark")){ - leftPos+=15; - if (topPos>mousePosition.y) { - topPos-=10; - } - else { - topPos+=10; - } - } - item.style.left = leftPos+"px"; - item.style.top = topPos+"px"; - }, 100); - item.classList.add("left"); - } - //right side - else { - if (!item.classList.contains("jellyfish")){ - leftPos = Math.floor(Math.random() * ((clickContainer.offsetWidth/4)-100)+(clickContainer.offsetWidth/4*3)); - } - else { - leftPos = Math.floor(Math.random() * ((clickContainer.offsetWidth/2)-100)+(clickContainer.offsetWidth/2)); - } - setInterval(function(){ - if (item.classList.contains("fish")) { - leftPos-=45; - } - else if (item.classList.contains("rare-fish")){ - leftPos-=65; - } - else if (item.classList.contains("jellyfish")){ - leftPos-=5; - } - else if (item.classList.contains("shark")){ - leftPos-=15; - if (topPos>mousePosition.y) { - topPos-=10; - } - else { - topPos+=10; - } - } - item.style.left = leftPos+"px"; - item.style.top = topPos+"px"; - }, 100); - item.classList.add("right"); - } - item.style.left = leftPos+"px" - item.style.top = topPos+"px"; - } - //if it is trash - else { - item.style.left = leftPos+"px"; - item.style.top = topPos+"px"; - } - } - function hit(event) { - if (!fishingLine.classList.contains("zapped")) { - let type = event.target.classList; - let hitText = document.createElement('span'); - hitText.setAttribute('class','hit-text'); - this.parentNode.insertBefore(hitText,this); - hitText.style.left = this.style.left; - hitText.style.top = this.style.top; - if (!this.classList.contains("caught")){ - this.classList.add("caught"); - if (type.contains("fish")) { - hitText.innerText = "+1"; - hitText.style.color = "#00ffcd"; - blop.play(); - score++; - currentScore++; - fishTracker[0]++; - } - else if (type.contains("rare-fish")) { - hitText.innerText = "+5"; - hitText.style.color = "#9766d3"; - rareBlop.play(); - score+=5; - currentScore+=5; - fishTracker[1]++; - } - else if (type.contains("trash")){ - hitText.innerText = "-3"; - hitText.style.color = "#ff5252"; - trashSound.play(); - score-=3; - currentScore-3; - fishTracker[2]++; - } - else if (type.contains("jellyfish")){ - fishingLine.classList.add("zapped"); - clickContainer.classList.add("zapped"); - hitText.innerText = "zap!"; - bzzt.play(); - hitText.style.color = "#ffff33"; - fishTracker[2]++; - setTimeout(function() { - fishingLine.classList.remove("zapped"); - clickContainer.classList.remove("zapped"); - }, 2000); - } - else if (type.contains("shark")){ - bite.play(); - endDay(true); - sec = 0; - } - setTimeout(function() { - clickContainer.removeChild(hitText); - }, 1000); - gameScore.innerText = `Total Score: ${score}`; - gameGoal.innerText = `Goal: ${currentScore}/${days[day-1].score}`; - } - } - } - function endDay(died) { - bgm.stop(); - clearInterval(gameTimerInterval); - clearInterval(createFishInterval); - clearInterval(createRareFishInterval); - clearInterval(createTrashInterval); - clearInterval(createJellyfishInterval); - clearInterval(createSharkInterval); - let remainingItems = document.querySelectorAll(".item"); - for (var i=0;iEND OF DAY 0${day}Your score for the day: ${currentScore}

Your score is not high enough. Please try again!

`; - day=0; - } - else { - instructions.innerHTML = `

END OF DAY 0${day}

Your score for the day: ${currentScore}

${days[day].instruction}

`; - } - } - else { - instructions.innerHTML = `

You have finished the entire week!

You have caught ${fishTracker[0]} fishes, ${fishTracker[1]} rare fishes, ${fishTracker[2]} trash and ${fishTracker[2]} jellyfishes.
Your Total Score: ${score}

`; - day=0; - } - - } - else { - day = 0; - instructions.innerHTML = `

Too bad!

You provoked the shark and it destroyed your boat.
Your entire week of fishing went to waste!

`; - } - infoWrapper.style.display = "block"; - startTitle.style.display = "block"; - } - //Make bubbles - var bubbles = document.getElementById('bubbles'); - var randomN = function(start, end){ - return Math.random()*end+start; - }; - var bubbleNumber = 0, - generateBubble = function(){ - if(bubbleNumber < 20){ - var bubble = document.createElement('div'); - var size = randomN(5, 10); - bubble.setAttribute('style','width: '+size+'px; height: '+size+'px; left:'+randomN(1, bubbles.offsetWidth-(size+4) )+'px;'); - bubbles.appendChild(bubble); - bubbleNumber++; - } - else { - clearInterval(bubbleInterval); - } - }; - generateBubble(); - var bubbleInterval = setInterval(generateBubble, 500); - - instructions.innerHTML = `

${days[day].instruction}

`; +window.onload = function() { + const gameContainer = document.querySelector("#game-container"); + const clickContainer = document.querySelector("#click-container"); + const fishingLine = document.querySelector("#line"); + const startScreen = document.querySelector("#start-screen"); + const startTitle = document.querySelector("#start-title"); + const infoWrapper = document.querySelector("#info-wrapper"); + const instructions = document.querySelector("#instructions"); + const startBtn = document.querySelector("#start-btn"); + const gameStats = document.querySelector("#game-stats"); + const gameGoal = document.querySelector("#game-goal"); + const gameDay = document.querySelector("#game-day"); + const gameTimer = document.querySelector("#game-timer"); + const gameTimerGauge = document.querySelector(".timer-gauge"); + const gameScore = document.querySelector("#game-score"); + var mousePosition = { + x:0, + y:0 + } + var gameTimerInterval = null; + var day = 0; + var score = 0; + var currentScore = 0; + var fishTracker = [0,0,0,0] //first item is fish, second is rare fish, third is trash, fourth is jellyfish. no sharks as it will lead to autolose + + //initialise the create items interval variables + var createFishInterval = null; + var createRareFishInterval = null; + var createTrashInterval = null; + var createJellyfishInterval = null; + var createSharkInterval = null; + + var days = [{ + "day": 0, + "score": 20, + "instruction": "

You are on a fishing trip!
There are total of 5 days to go through.
You need to get a certain score to proceed to the next day

Cast and Catch !

" + },{ + "day": 1, + "score": 30, + "instruction": "You can catch rare fishes now.
They are fast, so be ready!" + },{ + "day": 2, + "score": 35, + "instruction": "Lately, more trash are found in the ocean.
There is penalty if you catch some.
Let's continue and avoid the trash!" + },{ + "day": 3, + "score": 40, + "instruction": "Jellyfishes have invaded this ocean region.
You will get stunned if you catch them
Let's continue and avoid getting stunned by them!" + },{ + "day": 4, + "score": 45, + "instruction": "Sharks have been sighted lately.
You have to restart the entire week if you catch them!
Let's continue and not provoke them!" + }]; + + //music and sounds + var bgm; //set bgm + var blop; //fish sound + var rareBlop; // rare fish sound + var trashSound; // trash sound + var bzzt; //jellyfish zapping sound + var bite; //shark bite sound + + //event listeners + startBtn.addEventListener("click", startGame); + clickContainer.addEventListener("mousemove", checkCursor); + + function checkCursor (event){ + //update cursor co ordinates + mousePosition.x = event.clientX; + mousePosition.y = event.clientY; + //set fishing line to follow cursor + fishingLine.style.left= mousePosition.x+"px"; + fishingLine.style.top = mousePosition.y+"px"; + } + //create audio element for playing music and sfx + function sound(src) { + this.sound = document.createElement("audio"); + this.sound.src = src; + this.sound.setAttribute("preload", "auto"); + this.sound.setAttribute("controls", "none"); + this.sound.style.display = "none"; + document.body.appendChild(this.sound); + this.play = function(){ + this.sound.play(); + } + this.stop = function(){ + this.sound.pause(); + } + } + + //start game function + function startGame () { + //day = 4; + //initialise sounds + blop = new sound('sfx/fish.mp3'); + rareBlop = new sound('sfx/rare-fish.mp3'); + trashSound = new sound('sfx/trash.mp3'); + bzzt = new sound('sfx/bzzt.mp3'); + bite = new sound('sfx/bite.mp3'); + bgm = new sound('sfx/Bug_Catching.mp3'); + bgm.play(); + if (day === 0){ + fishTracker = [0,0,0,0,0]; + score = 0; + } + currentScore=0; + infoWrapper.style.display = "none"; + startTitle.style.display = "none"; + clickContainer.style.display = "block"; + gameStats.style.display = "flex"; + gameGoal.style.display = "block"; + createItems(); + } + //create items function + function createItems() { + createTimer(); + day++; + gameDay.innerText = "Day 0"+day; + gameGoal.innerText = `Goal: ${currentScore}/${days[day-1].score}`; + //start creating items depending on the day + switch (day) { + case 1: + createFishInterval = setInterval(createFish, 250); + break; + + case 2: + createFishInterval = setInterval(createFish, 250); + createRareFishInterval = setInterval(createRareFish, 2200); + break; + + case 3: + createFishInterval = setInterval(createFish, 250); + createRareFishInterval = setInterval(createRareFish, 1500); + createTrashInterval = setInterval(createTrash, 1000); + break; + + case 4: + createFishInterval = setInterval(createFish, 250); + createRareFishInterval = setInterval(createRareFish, 1250); + createTrashInterval = setInterval(createTrash, 1500); + createJellyfishInterval = setInterval(createJellyfish,2000); + break; + + case 5: + createFishInterval = setInterval(createFish, 200); + createRareFishInterval = setInterval(createRareFish, 1100); + createTrashInterval = setInterval(createTrash, 1500); + createJellyfishInterval = setInterval(createJellyfish,2000); + createSharkInterval = setInterval(createShark,4000); + break; + } + } + //create timer function + function createTimer () { + gameTimer.innerText = "15s"; + gameScore.innerText = "Total Score: 0"; + let sec = 0; + gameTimerInterval = setInterval(startGameTimer, 1000); + function startGameTimer () { + gameTimer.textContent = 15-sec+"s"; + if (sec === 15) { + sec = 0; + endDay(false); + gameTimer.textContent = 15-sec+"s"; + gameTimer.classList.remove("warning"); + gameTimerGauge.classList.remove("ticking"); + } + else { + if (sec === 1) { + gameTimerGauge.classList.add("ticking"); + } + if (sec > 9){ + gameTimer.classList.add("warning"); + } + sec++ + } + } + } + //create fish function + function createFish () { + let fish = document.createElement("div"); + fish.classList.add("item"); + fish.classList.add("fish"); + clickContainer.appendChild(fish); + setPosition(fish); + fish.addEventListener("mouseover", hit); + setTimeout(function() { + if (!fish.classList.contains("caught")){ + fish.classList.add("disappear"); + } + setTimeout(function() { + if (clickContainer.contains(fish)){ + clickContainer.removeChild(fish); + } + }, 350); + }, 1000); + } + //create rare fish function + function createRareFish () { + let fish = document.createElement("div"); + fish.classList.add("item"); + fish.classList.add("rare-fish"); + clickContainer.appendChild(fish); + setPosition(fish); + fish.addEventListener("mouseover", hit); + setTimeout(function() { + if (!fish.classList.contains("caught")){ + fish.classList.add("disappear"); + } + setTimeout(function() { + if (clickContainer.contains(fish)){ + clickContainer.removeChild(fish); + } + }, 350); + + }, 650); + } + //create trash function + function createTrash () { + let trash = document.createElement("div"); + trash.classList.add("item"); + trash.classList.add("trash"); + clickContainer.appendChild(trash); + setPosition(trash); + trash.addEventListener("mouseover", hit); + setTimeout(function() { + if (!trash.classList.contains("caught")){ + trash.classList.add("disappear"); + } + setTimeout(function() { + if (clickContainer.contains(trash)){ + clickContainer.removeChild(trash); + } + }, 350); + }, 3000); + } + //create jellyfish function + function createJellyfish () { + let jellyfish = document.createElement("div"); + jellyfish.classList.add("item"); + jellyfish.classList.add("jellyfish"); + clickContainer.appendChild(jellyfish); + setPosition(jellyfish); + jellyfish.addEventListener("mouseover", hit); + setTimeout(function() { + if (!jellyfish.classList.contains("caught")){ + jellyfish.classList.add("disappear"); + } + setTimeout(function() { + if (clickContainer.contains(jellyfish)){ + clickContainer.removeChild(jellyfish); + } + }, 350); + }, 3000); + } + //create shark function + function createShark () { + let shark = document.createElement("div"); + shark.classList.add("item"); + shark.classList.add("shark"); + clickContainer.appendChild(shark); + setPosition(shark); + shark.addEventListener("mouseover", hit); + setTimeout(function() { + if (!shark.classList.contains("caught")){ + shark.classList.add("disappear"); + } + setTimeout(function() { + if (clickContainer.contains(shark)){ + clickContainer.removeChild(shark); + } + }, 350); + }, 3000); + } + + function setPosition(item) { + let leftPos = Math.floor(Math.random() * (clickContainer.offsetWidth-100)); + let topPos = Math.floor(Math.random() * ((clickContainer.offsetHeight/5*4)-100)+(clickContainer.offsetHeight/5)); + // if it a type of sea creature and is not trash + if (!item.classList.contains("trash")) { + let randomNum = Math.floor(Math.random()*2); + //left side + if (randomNum%2 === 0){ + if (!item.classList.contains("jellyfish")){ + leftPos = Math.floor(Math.random() * ((clickContainer.offsetWidth/4)-100)); + } + else { + leftPos = Math.floor(Math.random() * ((clickContainer.offsetWidth/2)-100)); + } + setInterval(function(){ + if (item.classList.contains("fish")) { + leftPos+=45; + } + else if (item.classList.contains("rare-fish")){ + leftPos+=65; + } + else if (item.classList.contains("jellyfish")){ + leftPos+=5; + } + else if (item.classList.contains("shark")){ + leftPos+=15; + if (topPos>mousePosition.y) { + topPos-=10; + } + else { + topPos+=10; + } + } + item.style.left = leftPos+"px"; + item.style.top = topPos+"px"; + }, 100); + item.classList.add("left"); + } + //right side + else { + if (!item.classList.contains("jellyfish")){ + leftPos = Math.floor(Math.random() * ((clickContainer.offsetWidth/4)-100)+(clickContainer.offsetWidth/4*3)); + } + else { + leftPos = Math.floor(Math.random() * ((clickContainer.offsetWidth/2)-100)+(clickContainer.offsetWidth/2)); + } + setInterval(function(){ + if (item.classList.contains("fish")) { + leftPos-=45; + } + else if (item.classList.contains("rare-fish")){ + leftPos-=65; + } + else if (item.classList.contains("jellyfish")){ + leftPos-=5; + } + else if (item.classList.contains("shark")){ + leftPos-=15; + if (topPos>mousePosition.y) { + topPos-=10; + } + else { + topPos+=10; + } + } + item.style.left = leftPos+"px"; + item.style.top = topPos+"px"; + }, 100); + item.classList.add("right"); + } + item.style.left = leftPos+"px" + item.style.top = topPos+"px"; + } + //if it is trash + else { + item.style.left = leftPos+"px"; + item.style.top = topPos+"px"; + } + } + function hit(event) { + if (!fishingLine.classList.contains("zapped")) { + let type = event.target.classList; + let hitText = document.createElement('span'); + hitText.setAttribute('class','hit-text'); + this.parentNode.insertBefore(hitText,this); + hitText.style.left = this.style.left; + hitText.style.top = this.style.top; + if (!this.classList.contains("caught")){ + this.classList.add("caught"); + if (type.contains("fish")) { + hitText.innerText = "+1"; + hitText.style.color = "#00ffcd"; + blop.play(); + score++; + currentScore++; + fishTracker[0]++; + } + else if (type.contains("rare-fish")) { + hitText.innerText = "+5"; + hitText.style.color = "#9766d3"; + rareBlop.play(); + score+=5; + currentScore+=5; + fishTracker[1]++; + } + else if (type.contains("trash")){ + hitText.innerText = "-3"; + hitText.style.color = "#ff5252"; + trashSound.play(); + score-=3; + currentScore-3; + fishTracker[2]++; + } + else if (type.contains("jellyfish")){ + fishingLine.classList.add("zapped"); + clickContainer.classList.add("zapped"); + hitText.innerText = "zap!"; + bzzt.play(); + hitText.style.color = "#ffff33"; + fishTracker[2]++; + setTimeout(function() { + fishingLine.classList.remove("zapped"); + clickContainer.classList.remove("zapped"); + }, 2000); + } + else if (type.contains("shark")){ + bite.play(); + endDay(true); + sec = 0; + } + setTimeout(function() { + clickContainer.removeChild(hitText); + }, 1000); + gameScore.innerText = `Total Score: ${score}`; + gameGoal.innerText = `Goal: ${currentScore}/${days[day-1].score}`; + } + } + } + function endDay(died) { + bgm.stop(); + clearInterval(gameTimerInterval); + clearInterval(createFishInterval); + clearInterval(createRareFishInterval); + clearInterval(createTrashInterval); + clearInterval(createJellyfishInterval); + clearInterval(createSharkInterval); + let remainingItems = document.querySelectorAll(".item"); + for (var i=0;iEND OF DAY 0${day}Your score for the day: ${currentScore}

Your score is not high enough. Please try again!

`; + day=0; + } + else { + instructions.innerHTML = `

END OF DAY 0${day}

Your score for the day: ${currentScore}

${days[day].instruction}

`; + } + } + else { + instructions.innerHTML = `

You have finished the entire week!

You have caught ${fishTracker[0]} fishes, ${fishTracker[1]} rare fishes, ${fishTracker[2]} trash and ${fishTracker[2]} jellyfishes.
Your Total Score: ${score}

`; + day=0; + } + + } + else { + day = 0; + instructions.innerHTML = `

Too bad!

You provoked the shark and it destroyed your boat.
Your entire week of fishing went to waste!

`; + } + infoWrapper.style.display = "block"; + startTitle.style.display = "block"; + } + //Make bubbles + var bubbles = document.getElementById('bubbles'); + var randomN = function(start, end){ + return Math.random()*end+start; + }; + var bubbleNumber = 0, + generateBubble = function(){ + if(bubbleNumber < 20){ + var bubble = document.createElement('div'); + var size = randomN(5, 10); + bubble.setAttribute('style','width: '+size+'px; height: '+size+'px; left:'+randomN(1, bubbles.offsetWidth-(size+4) )+'px;'); + bubbles.appendChild(bubble); + bubbleNumber++; + } + else { + clearInterval(bubbleInterval); + } + }; + generateBubble(); + var bubbleInterval = setInterval(generateBubble, 500); + + instructions.innerHTML = `

${days[day].instruction}

`; }; \ No newline at end of file diff --git a/Games/Chrome_Dinosaur_Game/README.md b/Games/Chrome_Dinosaur_Game/README.md index 75c5ae0d17..dda7303e6c 100644 --- a/Games/Chrome_Dinosaur_Game/README.md +++ b/Games/Chrome_Dinosaur_Game/README.md @@ -1,39 +1,39 @@ -# **CHROME DINOSAUR RUNNING GAME** - ---- - -
- -## **Description ๐Ÿ“ƒ** -- Here is a clone of a very classic but fun game which helps us to cure our boredom when we are offline, that is chrome dinosaur game. Aim of the game is to dodge the coming thundering rainy clouds. -**Your Chrome Dinosaur game, but with some twists.** - - -## **functionalities ๐ŸŽฎ** -- Easy to play -- Scoring system so to help you know how you are playing. -
- -## **How to play? ๐Ÿ•น๏ธ** -- Your aim is to protect your dino from the upcoming cactus and thundering clouds, you can easily control your dino with the help of arrow or space keys. -- The score keeps adding up on the basis of how far you have reached in the game. -- If you collide with any obstacle, no problem! just press 'R' to restart the game. - -
- -## **Screenshots ๐Ÿ“ธ** - -
- -![Game image](../../assets/images/Chrome_dinosaur_runner.png) - -
- -## **Working video ๐Ÿ“น** - - - - -https://github.com/singh-anushka/GameZone/assets/93376863/9800d2e1-1c13-44e0-87e3-bc706106d286 - - +# **CHROME DINOSAUR RUNNING GAME** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +- Here is a clone of a very classic but fun game which helps us to cure our boredom when we are offline, that is chrome dinosaur game. Aim of the game is to dodge the coming thundering rainy clouds. +**Your Chrome Dinosaur game, but with some twists.** + + +## **functionalities ๐ŸŽฎ** +- Easy to play +- Scoring system so to help you know how you are playing. +
+ +## **How to play? ๐Ÿ•น๏ธ** +- Your aim is to protect your dino from the upcoming cactus and thundering clouds, you can easily control your dino with the help of arrow or space keys. +- The score keeps adding up on the basis of how far you have reached in the game. +- If you collide with any obstacle, no problem! just press 'R' to restart the game. + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ +![Game image](../../assets/images/Chrome_dinosaur_runner.png) + +
+ +## **Working video ๐Ÿ“น** + + + + +https://github.com/singh-anushka/GameZone/assets/93376863/9800d2e1-1c13-44e0-87e3-bc706106d286 + + diff --git a/Games/Chrome_Dinosaur_Game/index.html b/Games/Chrome_Dinosaur_Game/index.html index 7889388304..5a965afc27 100644 --- a/Games/Chrome_Dinosaur_Game/index.html +++ b/Games/Chrome_Dinosaur_Game/index.html @@ -1,44 +1,44 @@ - - - - - - - Chrome Dinosaur Game - - - - - - - - - -
-

Chrome Dinosaur Game

- - - - - - - - - - - - - - - + + + + + + + Chrome Dinosaur Game + + + + + + + + + +
+

Chrome Dinosaur Game

+ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Games/Chrome_Dinosaur_Game/script.js b/Games/Chrome_Dinosaur_Game/script.js index 8901ce83e0..85d93c66ab 100644 --- a/Games/Chrome_Dinosaur_Game/script.js +++ b/Games/Chrome_Dinosaur_Game/script.js @@ -1,265 +1,265 @@ - -//board -let board; -let boardWidth = 1000; -let boardHeight = 400; -let context; - -//dino -let dinoWidth = 88; -let dinoHeight = 94; -let dinoX = 50; -let dinoY = boardHeight - dinoHeight; -let dinoImg; - -let dino = { - x: dinoX, - y: dinoY, - width: dinoWidth, - height: dinoHeight -} - -//cactus -let cactusArray = []; - -let cactus1Width = 34; -let cactus2Width = 69; -let cactus3Width = 102; - -let cactusHeight = 70; -let cactusX = boardWidth; -let cactusY = boardHeight - cactusHeight; - -let cactus1Img; -let cactus2Img; -let cactus3Img; - -//physics -let velocityX = -5; //cactus moving left speed -let velocityY = 0; -let gravity = .4; - -let gameOver = false; -let score = 0; - -window.onload = function () { - board = document.getElementById("board"); - board.height = boardHeight; - board.width = boardWidth; - - context = board.getContext("2d"); //used for drawing on the board - - //draw initial dinosaur - // context.fillStyle="green"; - // context.fillRect(dino.x, dino.y, dino.width, dino.height); - - dinoImg = new Image(); - dinoImg.src = "./assets/dino.png"; - dinoImg.onload = function () { - context.drawImage(dinoImg, dino.x, dino.y, dino.width, dino.height); - } - - cactus1Img = new Image(); - cactus1Img.src = "./assets/cactus1.png"; - - cactus2Img = new Image(); - cactus2Img.src = "./assets/cactus2.png"; - - cactus3Img = new Image(); - cactus3Img.src = "./assets/cactus3.png"; - - requestAnimationFrame(update); - setInterval(placeCactus, 1000); //1000 milliseconds = 1 second - document.addEventListener("keydown", moveDino); - - -} - - -// Add this function to play the score sound -function playScoreSound() { - const scoreAudio = document.getElementById("scoreAudio"); - scoreAudio.currentTime = 0; // Reset the audio to the beginning to allow rapid replay - scoreAudio.play(); -} - -function update() { - requestAnimationFrame(update); - if(gameOver){ - if(e.code == "KeyR"){ - resetGame(); - } - return; - } - context.clearRect(0, 0, board.width, board.height); - - context.strokeStyle = "#ccc"; - context.lineWidth = 5; - context.strokeRect(0, 0, board.width, board.height); - - - //dino - velocityY += gravity; - dino.y = Math.min(dino.y + velocityY, dinoY); //apply gravity to current dino.y, making sure it doesn't exceed the ground - context.drawImage(dinoImg, dino.x, dino.y, dino.width, dino.height); - - //cactus - for (let i = 0; i < cactusArray.length; i++) { - let cactus = cactusArray[i]; - cactus.x += velocityX; - context.drawImage(cactus.img, cactus.x, cactus.y, cactus.width, cactus.height); - - if (detectCollision(dino, cactus)) { - gameOver = true; - dinoImg.src = "./assets/dino-dead.png"; - context.fillStyle = "#27374D"; - context.font = "40px 'Play'"; - context.fillText("Press 'R' to Restart", 340, 210); - dinoImg.onload = function () { - context.drawImage(dinoImg, dino.x, dino.y, dino.width, dino.height); - } - } - } - - //score - context.fillStyle = "#27374D"; - context.font = "25px 'Play'"; - score++; - context.fillText("Score:", 450, 40); - context.fillText(score, 525, 40); - - // Play score sound if the score is a multiple of 1000 - if (score % 1000 === 0 && score !== 0) { - playScoreSound(); - } - -} - -// Add this function to play the collision sound -function playCollisionSound() { - const collisionAudio = document.getElementById("collisionAudio"); - collisionAudio.currentTime = 0; // Reset the audio to the beginning to allow rapid replay - collisionAudio.play(); -} - - - -function moveDino(e) { - if(gameOver){ - if(e.code == "KeyR"){ - resetGame(); - } - return; - } - - if ((e.code == "Space" || e.code == "ArrowUp") && dino.y == dinoY) { - //jump - velocityY = -12; - playKeyPressSound(); // Play key press sound - } - else if (e.code == "ArrowDown" && dino.y == dinoY) { - //duck - } - -} - -function placeCactus() { - if(gameOver){ - if(e.code == "KeyR"){ - resetGame(); - } - return; - } - - //place cactus - let cactus = { - img: null, - x: cactusX, - y: cactusY, - width: null, - height: cactusHeight - } - - let placeCactusChance = Math.random(); //0 - 0.9999... - - if (placeCactusChance > .90) { //10% you get cactus3 - cactus.img = cactus3Img; - cactus.width = cactus3Width; - cactusArray.push(cactus); - } - else if (placeCactusChance > .70) { //30% you get cactus2 - cactus.img = cactus2Img; - cactus.width = cactus2Width; - cactusArray.push(cactus); - } - else if (placeCactusChance > .50) { //50% you get cactus1 - cactus.img = cactus1Img; - cactus.width = cactus1Width; - cactusArray.push(cactus); - } - - if (cactusArray.length > 5) { - cactusArray.shift(); //remove the first element from the array so that the array doesn't constantly grow - } -} - - -// Add this function to play the key press sound -function playKeyPressSound() { - const keypressAudio = document.getElementById("keypressAudio"); - keypressAudio.currentTime = 0; // Reset the audio to the beginning to allow rapid replay - keypressAudio.play(); -} - - -function detectCollision(a, b) { - const isCollision = - a.x < b.x + b.width && - a.x + a.width > b.x && - a.y < b.y + b.height && - a.y + a.height > b.y; - - if (isCollision) { - gameOver = true; - dinoImg.src = "./assets/dino-dead.png"; - context.fillStyle = "#27374D"; - context.font = "40px 'Play'"; - context.fillText("Press 'R' to Restart", 340, 210); - dinoImg.onload = function () { - context.drawImage(dinoImg, dino.x, dino.y, dino.width, dino.height); - } - playCollisionSound(); // Play collision sound - } - - return isCollision; -} - - -function resetGame() { - gameOver = false - - dinoImg.src = "./assets/dino.png"; - dino = { - x: dinoX, - y: dinoY, - width: dinoWidth, - height: dinoHeight - } - - cactusArray = []; - cactus1Width = 34; - cactus2Width = 69; - cactus3Width = 102; - cactusHeight = 70; - cactusX = 700; - cactusY = boardHeight - cactusHeight; - cactus1Img; - cactus2Img; - cactus3Img; - - velocityX = -8; - velocityY = 0; - gravity = .4; - - score = 0; + +//board +let board; +let boardWidth = 1000; +let boardHeight = 400; +let context; + +//dino +let dinoWidth = 88; +let dinoHeight = 94; +let dinoX = 50; +let dinoY = boardHeight - dinoHeight; +let dinoImg; + +let dino = { + x: dinoX, + y: dinoY, + width: dinoWidth, + height: dinoHeight +} + +//cactus +let cactusArray = []; + +let cactus1Width = 34; +let cactus2Width = 69; +let cactus3Width = 102; + +let cactusHeight = 70; +let cactusX = boardWidth; +let cactusY = boardHeight - cactusHeight; + +let cactus1Img; +let cactus2Img; +let cactus3Img; + +//physics +let velocityX = -5; //cactus moving left speed +let velocityY = 0; +let gravity = .4; + +let gameOver = false; +let score = 0; + +window.onload = function () { + board = document.getElementById("board"); + board.height = boardHeight; + board.width = boardWidth; + + context = board.getContext("2d"); //used for drawing on the board + + //draw initial dinosaur + // context.fillStyle="green"; + // context.fillRect(dino.x, dino.y, dino.width, dino.height); + + dinoImg = new Image(); + dinoImg.src = "./assets/dino.png"; + dinoImg.onload = function () { + context.drawImage(dinoImg, dino.x, dino.y, dino.width, dino.height); + } + + cactus1Img = new Image(); + cactus1Img.src = "./assets/cactus1.png"; + + cactus2Img = new Image(); + cactus2Img.src = "./assets/cactus2.png"; + + cactus3Img = new Image(); + cactus3Img.src = "./assets/cactus3.png"; + + requestAnimationFrame(update); + setInterval(placeCactus, 1000); //1000 milliseconds = 1 second + document.addEventListener("keydown", moveDino); + + +} + + +// Add this function to play the score sound +function playScoreSound() { + const scoreAudio = document.getElementById("scoreAudio"); + scoreAudio.currentTime = 0; // Reset the audio to the beginning to allow rapid replay + scoreAudio.play(); +} + +function update() { + requestAnimationFrame(update); + if(gameOver){ + if(e.code == "KeyR"){ + resetGame(); + } + return; + } + context.clearRect(0, 0, board.width, board.height); + + context.strokeStyle = "#ccc"; + context.lineWidth = 5; + context.strokeRect(0, 0, board.width, board.height); + + + //dino + velocityY += gravity; + dino.y = Math.min(dino.y + velocityY, dinoY); //apply gravity to current dino.y, making sure it doesn't exceed the ground + context.drawImage(dinoImg, dino.x, dino.y, dino.width, dino.height); + + //cactus + for (let i = 0; i < cactusArray.length; i++) { + let cactus = cactusArray[i]; + cactus.x += velocityX; + context.drawImage(cactus.img, cactus.x, cactus.y, cactus.width, cactus.height); + + if (detectCollision(dino, cactus)) { + gameOver = true; + dinoImg.src = "./assets/dino-dead.png"; + context.fillStyle = "#27374D"; + context.font = "40px 'Play'"; + context.fillText("Press 'R' to Restart", 340, 210); + dinoImg.onload = function () { + context.drawImage(dinoImg, dino.x, dino.y, dino.width, dino.height); + } + } + } + + //score + context.fillStyle = "#27374D"; + context.font = "25px 'Play'"; + score++; + context.fillText("Score:", 450, 40); + context.fillText(score, 525, 40); + + // Play score sound if the score is a multiple of 1000 + if (score % 1000 === 0 && score !== 0) { + playScoreSound(); + } + +} + +// Add this function to play the collision sound +function playCollisionSound() { + const collisionAudio = document.getElementById("collisionAudio"); + collisionAudio.currentTime = 0; // Reset the audio to the beginning to allow rapid replay + collisionAudio.play(); +} + + + +function moveDino(e) { + if(gameOver){ + if(e.code == "KeyR"){ + resetGame(); + } + return; + } + + if ((e.code == "Space" || e.code == "ArrowUp") && dino.y == dinoY) { + //jump + velocityY = -12; + playKeyPressSound(); // Play key press sound + } + else if (e.code == "ArrowDown" && dino.y == dinoY) { + //duck + } + +} + +function placeCactus() { + if(gameOver){ + if(e.code == "KeyR"){ + resetGame(); + } + return; + } + + //place cactus + let cactus = { + img: null, + x: cactusX, + y: cactusY, + width: null, + height: cactusHeight + } + + let placeCactusChance = Math.random(); //0 - 0.9999... + + if (placeCactusChance > .90) { //10% you get cactus3 + cactus.img = cactus3Img; + cactus.width = cactus3Width; + cactusArray.push(cactus); + } + else if (placeCactusChance > .70) { //30% you get cactus2 + cactus.img = cactus2Img; + cactus.width = cactus2Width; + cactusArray.push(cactus); + } + else if (placeCactusChance > .50) { //50% you get cactus1 + cactus.img = cactus1Img; + cactus.width = cactus1Width; + cactusArray.push(cactus); + } + + if (cactusArray.length > 5) { + cactusArray.shift(); //remove the first element from the array so that the array doesn't constantly grow + } +} + + +// Add this function to play the key press sound +function playKeyPressSound() { + const keypressAudio = document.getElementById("keypressAudio"); + keypressAudio.currentTime = 0; // Reset the audio to the beginning to allow rapid replay + keypressAudio.play(); +} + + +function detectCollision(a, b) { + const isCollision = + a.x < b.x + b.width && + a.x + a.width > b.x && + a.y < b.y + b.height && + a.y + a.height > b.y; + + if (isCollision) { + gameOver = true; + dinoImg.src = "./assets/dino-dead.png"; + context.fillStyle = "#27374D"; + context.font = "40px 'Play'"; + context.fillText("Press 'R' to Restart", 340, 210); + dinoImg.onload = function () { + context.drawImage(dinoImg, dino.x, dino.y, dino.width, dino.height); + } + playCollisionSound(); // Play collision sound + } + + return isCollision; +} + + +function resetGame() { + gameOver = false + + dinoImg.src = "./assets/dino.png"; + dino = { + x: dinoX, + y: dinoY, + width: dinoWidth, + height: dinoHeight + } + + cactusArray = []; + cactus1Width = 34; + cactus2Width = 69; + cactus3Width = 102; + cactusHeight = 70; + cactusX = 700; + cactusY = boardHeight - cactusHeight; + cactus1Img; + cactus2Img; + cactus3Img; + + velocityX = -8; + velocityY = 0; + gravity = .4; + + score = 0; } \ No newline at end of file diff --git a/Games/Chrome_Dinosaur_Game/style.css b/Games/Chrome_Dinosaur_Game/style.css index c3bb8598e3..16c1028c48 100644 --- a/Games/Chrome_Dinosaur_Game/style.css +++ b/Games/Chrome_Dinosaur_Game/style.css @@ -1,26 +1,26 @@ -body { - font-family: 'Press Start 2P', Courier, monospace; - text-align: center; - display: flex; - flex-direction: column; - align-items: center; - justify-content: space-evenly; - height: 100vh; - - background-color:#efede9; - overflow: hidden; -} - -h1{ - color: #374259; - margin-top: -2rem; - font-family: 'Press Start 2P', cursive; -} - -#board { - background-color:#efede9; - border-bottom: 3px solid #374259; - border-top: 3px solid #374259; - height: 400px; - width: 1000px; +body { + font-family: 'Press Start 2P', Courier, monospace; + text-align: center; + display: flex; + flex-direction: column; + align-items: center; + justify-content: space-evenly; + height: 100vh; + + background-color:#efede9; + overflow: hidden; +} + +h1{ + color: #374259; + margin-top: -2rem; + font-family: 'Press Start 2P', cursive; +} + +#board { + background-color:#efede9; + border-bottom: 3px solid #374259; + border-top: 3px solid #374259; + height: 400px; + width: 1000px; } \ No newline at end of file diff --git a/Games/Circus_Charly/dist/index.html b/Games/Circus_Charly/dist/index.html index 72d112f279..a8501198b0 100644 --- a/Games/Circus_Charly/dist/index.html +++ b/Games/Circus_Charly/dist/index.html @@ -1,2 +1,2 @@ -Circus HTML5
\ No newline at end of file diff --git a/Games/CodePen_Simulator/README.md b/Games/CodePen_Simulator/README.md index bf157d1f46..8da5763b4a 100644 --- a/Games/CodePen_Simulator/README.md +++ b/Games/CodePen_Simulator/README.md @@ -1,25 +1,25 @@ -# **CodePen SImulator** - ---- - -
- -## **Description ๐Ÿ“ƒ** - -This game simulates the CodePen environment where you have to type in the keyboard to create pens. They will gain stats in HTML, CSS, JS & Design based on your skill level and if they are good enough, they will be featured. - -## **How to play? ๐Ÿ•น๏ธ** - -- Use Up, Down, Left & Right Arrow keys to simulate - -
- -## **Screenshots ๐Ÿ“ธ** - - -
- - -![image](../../assets/images/CodePen_SImulator.png) - +# **CodePen SImulator** + +--- + +
+ +## **Description ๐Ÿ“ƒ** + +This game simulates the CodePen environment where you have to type in the keyboard to create pens. They will gain stats in HTML, CSS, JS & Design based on your skill level and if they are good enough, they will be featured. + +## **How to play? ๐Ÿ•น๏ธ** + +- Use Up, Down, Left & Right Arrow keys to simulate + +
+ +## **Screenshots ๐Ÿ“ธ** + + +
+ + +![image](../../assets/images/CodePen_SImulator.png) +
\ No newline at end of file diff --git a/Games/Color_Crush_Game/README.md b/Games/Color_Crush_Game/README.md index f16889063c..abccb34196 100644 --- a/Games/Color_Crush_Game/README.md +++ b/Games/Color_Crush_Game/README.md @@ -1,40 +1,40 @@ -# **Color_Crush_Game ** - ---- Like an Matching game! - -
- -## **Description ๐Ÿ“ƒ** - -- This is a Normal Vedio_game that we can play in virtually and Jumps run etc! -- The project will contain HTML, CSS and JavaScript files. The HTML file adds structure to the game followed by styling using CSS. JavaScript adds functionality to the game. - -## **functionalities ๐ŸŽฎ** - -- Mouse Pointer, Tap On the screen -
- -## **How to play? ๐Ÿ•น๏ธ** - -- we can play this add via mouse point and Tap on the screen etc,. - -
- -## **Screenshots ๐Ÿ“ธ** - - - -![image](https://github.com/Bindusree1515/GameZone/assets/91887086/0d022c68-2853-438f-afdc-8ff13480abf9) - - - - - -
- -## **Working video ๐Ÿ“น** - - - -https://github.com/Kalivarapubindusree/GameZone/assets/114821855/46337838-30bc-42b3-b679-961c6f4855d8 - +# **Color_Crush_Game ** + +--- Like an Matching game! + +
+ +## **Description ๐Ÿ“ƒ** + +- This is a Normal Vedio_game that we can play in virtually and Jumps run etc! +- The project will contain HTML, CSS and JavaScript files. The HTML file adds structure to the game followed by styling using CSS. JavaScript adds functionality to the game. + +## **functionalities ๐ŸŽฎ** + +- Mouse Pointer, Tap On the screen +
+ +## **How to play? ๐Ÿ•น๏ธ** + +- we can play this add via mouse point and Tap on the screen etc,. + +
+ +## **Screenshots ๐Ÿ“ธ** + + + +![image](https://github.com/Bindusree1515/GameZone/assets/91887086/0d022c68-2853-438f-afdc-8ff13480abf9) + + + + + +
+ +## **Working video ๐Ÿ“น** + + + +https://github.com/Kalivarapubindusree/GameZone/assets/114821855/46337838-30bc-42b3-b679-961c6f4855d8 + diff --git a/Games/Color_Swap/index.html b/Games/Color_Swap/index.html index 3d78f88730..e19c4da042 100644 --- a/Games/Color_Swap/index.html +++ b/Games/Color_Swap/index.html @@ -1,22 +1,22 @@ - - - - - - Color Swap - - - -
- -
Score: 0
-
Game Over! You scored points!
-
- - - - - - - - + + + + + + Color Swap + + + +
+ +
Score: 0
+
Game Over! You scored points!
+
+ + + + + + + + diff --git a/Games/Color_Swap/script.js b/Games/Color_Swap/script.js index cdfb02b194..b9f0a0d05a 100644 --- a/Games/Color_Swap/script.js +++ b/Games/Color_Swap/script.js @@ -1,140 +1,140 @@ -const canvas = document.getElementById('gameCanvas'); -const ctx = canvas.getContext('2d'); -const scoreDisplay = document.getElementById('score'); -const gameOverMessage = document.getElementById('gameOverMessage'); -const finalScore = document.getElementById('finalScore'); -const startButton = document.getElementById('startButton'); - -const canvasWidth = canvas.width; -const canvasHeight = canvas.height; -const characterSize = 20; -const obstacleWidth = 60; -const obstacleHeight = 20; -const colors = ['red', 'blue', 'green', 'yellow']; - -let characterX = canvasWidth / 2 - characterSize / 2; -let characterY = canvasHeight - characterSize - 10; -let characterColor = colors[Math.floor(Math.random() * colors.length)]; -let obstacles = []; -let score = 0; -let gameInterval, obstacleInterval; -let gameActive = false; - -document.addEventListener('keydown', moveCharacter); - -function moveCharacter(event) { - if (!gameActive) return; - - switch (event.key) { - case 'ArrowLeft': - characterX -= 20; - if (characterX < 0) characterX = 0; - break; - case 'ArrowRight': - characterX += 20; - if (characterX > canvasWidth - characterSize) characterX = canvasWidth - characterSize; - break; - case 'ArrowUp': - characterY -= 20; - if (characterY < 0) characterY = 0; - break; - case 'ArrowDown': - characterY += 20; - if (characterY > canvasHeight - characterSize) characterY = canvasHeight - characterSize; - break; - } -} - -function createObstacle() { - const x = Math.random() * (canvasWidth - obstacleWidth); - const y = -obstacleHeight; - const color = colors[Math.floor(Math.random() * colors.length)]; - obstacles.push({ x, y, color }); -} - -function updateGame() { - if (!gameActive) return; - - ctx.clearRect(0, 0, canvasWidth, canvasHeight); - - // Draw character - ctx.fillStyle = characterColor; - ctx.fillRect(characterX, characterY, characterSize, characterSize); - - // Draw and move obstacles - for (let i = 0; i < obstacles.length; i++) { - const obstacle = obstacles[i]; - obstacle.y += 2; - - if (obstacle.y > canvasHeight) { - obstacles.splice(i, 1); - i--; - continue; - } - - ctx.fillStyle = obstacle.color; - ctx.fillRect(obstacle.x, obstacle.y, obstacleWidth, obstacleHeight); - - // Check collision - if ( - characterX < obstacle.x + obstacleWidth && - characterX + characterSize > obstacle.x && - characterY < obstacle.y + obstacleHeight && - characterY + characterSize > obstacle.y - ) { - if (characterColor === obstacle.color) { - score++; - scoreDisplay.innerText = `Score: ${score}`; - obstacles.splice(i, 1); - i--; - } else { - gameOver(); - return; - } - } - } - - // Change character color randomly - if (Math.random() < 0.01) { - characterColor = colors[Math.floor(Math.random() * colors.length)]; - } -} - -function startGame() { - score = 0; - characterX = canvasWidth / 2 - characterSize / 2; - characterY = canvasHeight - characterSize - 10; - characterColor = colors[Math.floor(Math.random() * colors.length)]; - obstacles = []; - scoreDisplay.innerText = `Score: ${score}`; - gameActive = true; - gameOverMessage.style.display = 'none'; - - clearInterval(gameInterval); - clearInterval(obstacleInterval); - - gameInterval = setInterval(updateGame, 20); - obstacleInterval = setInterval(createObstacle, 1000); -} - -function gameOver() { - gameActive = false; - clearInterval(gameInterval); - clearInterval(obstacleInterval); - - finalScore.innerText = score; - gameOverMessage.style.display = 'block'; - - setTimeout(() => { - gameOverMessage.style.display = 'none'; - startGame(); - }, 3000); -} - -startButton.addEventListener('click', () => { - startButton.style.display = 'none'; - startGame(); -}); - - - +const canvas = document.getElementById('gameCanvas'); +const ctx = canvas.getContext('2d'); +const scoreDisplay = document.getElementById('score'); +const gameOverMessage = document.getElementById('gameOverMessage'); +const finalScore = document.getElementById('finalScore'); +const startButton = document.getElementById('startButton'); + +const canvasWidth = canvas.width; +const canvasHeight = canvas.height; +const characterSize = 20; +const obstacleWidth = 60; +const obstacleHeight = 20; +const colors = ['red', 'blue', 'green', 'yellow']; + +let characterX = canvasWidth / 2 - characterSize / 2; +let characterY = canvasHeight - characterSize - 10; +let characterColor = colors[Math.floor(Math.random() * colors.length)]; +let obstacles = []; +let score = 0; +let gameInterval, obstacleInterval; +let gameActive = false; + +document.addEventListener('keydown', moveCharacter); + +function moveCharacter(event) { + if (!gameActive) return; + + switch (event.key) { + case 'ArrowLeft': + characterX -= 20; + if (characterX < 0) characterX = 0; + break; + case 'ArrowRight': + characterX += 20; + if (characterX > canvasWidth - characterSize) characterX = canvasWidth - characterSize; + break; + case 'ArrowUp': + characterY -= 20; + if (characterY < 0) characterY = 0; + break; + case 'ArrowDown': + characterY += 20; + if (characterY > canvasHeight - characterSize) characterY = canvasHeight - characterSize; + break; + } +} + +function createObstacle() { + const x = Math.random() * (canvasWidth - obstacleWidth); + const y = -obstacleHeight; + const color = colors[Math.floor(Math.random() * colors.length)]; + obstacles.push({ x, y, color }); +} + +function updateGame() { + if (!gameActive) return; + + ctx.clearRect(0, 0, canvasWidth, canvasHeight); + + // Draw character + ctx.fillStyle = characterColor; + ctx.fillRect(characterX, characterY, characterSize, characterSize); + + // Draw and move obstacles + for (let i = 0; i < obstacles.length; i++) { + const obstacle = obstacles[i]; + obstacle.y += 2; + + if (obstacle.y > canvasHeight) { + obstacles.splice(i, 1); + i--; + continue; + } + + ctx.fillStyle = obstacle.color; + ctx.fillRect(obstacle.x, obstacle.y, obstacleWidth, obstacleHeight); + + // Check collision + if ( + characterX < obstacle.x + obstacleWidth && + characterX + characterSize > obstacle.x && + characterY < obstacle.y + obstacleHeight && + characterY + characterSize > obstacle.y + ) { + if (characterColor === obstacle.color) { + score++; + scoreDisplay.innerText = `Score: ${score}`; + obstacles.splice(i, 1); + i--; + } else { + gameOver(); + return; + } + } + } + + // Change character color randomly + if (Math.random() < 0.01) { + characterColor = colors[Math.floor(Math.random() * colors.length)]; + } +} + +function startGame() { + score = 0; + characterX = canvasWidth / 2 - characterSize / 2; + characterY = canvasHeight - characterSize - 10; + characterColor = colors[Math.floor(Math.random() * colors.length)]; + obstacles = []; + scoreDisplay.innerText = `Score: ${score}`; + gameActive = true; + gameOverMessage.style.display = 'none'; + + clearInterval(gameInterval); + clearInterval(obstacleInterval); + + gameInterval = setInterval(updateGame, 20); + obstacleInterval = setInterval(createObstacle, 1000); +} + +function gameOver() { + gameActive = false; + clearInterval(gameInterval); + clearInterval(obstacleInterval); + + finalScore.innerText = score; + gameOverMessage.style.display = 'block'; + + setTimeout(() => { + gameOverMessage.style.display = 'none'; + startGame(); + }, 3000); +} + +startButton.addEventListener('click', () => { + startButton.style.display = 'none'; + startGame(); +}); + + + diff --git a/Games/Color_Swap/styles.css b/Games/Color_Swap/styles.css index a50538b5bf..a6f3945069 100644 --- a/Games/Color_Swap/styles.css +++ b/Games/Color_Swap/styles.css @@ -1,76 +1,76 @@ -body { - margin: 0; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - height: 100vh; - background-color: #000; - font-family: 'Arial', sans-serif; - color: #0f0; -} - -#gameContainer { - position: relative; - width: 400px; - height: 600px; - border: 2px solid #0f0; - border-radius: 15px; - background-color: #111; - box-shadow: 0px 0px 20px #0f0; - display: flex; - justify-content: center; - align-items: center; -} - -#gameCanvas { - display: block; - border-radius: 15px 15px 0 0; - background-color: #222; - box-shadow: inset 0px 0px 10px #0f0; -} - -#score { - position: absolute; - top: 10px; - left: 10px; - font-size: 20px; - color: #0f0; - text-shadow: 0px 0px 5px #0f0; -} - -#startButton { - margin-top: 20px; - padding: 10px 20px; - background-color: #111; - color: #0f0; - border: 2px solid #0f0; - border-radius: 5px; - cursor: pointer; - font-size: 16px; - box-shadow: 0px 0px 10px #0f0; -} - -#startButton:hover { - background-color: #0f0; - color: #111; - box-shadow: 0px 0px 20px #0f0; -} - -#gameOverMessage { - display: none; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - padding: 20px; - background-color: #111; - color: #0f0; - border: 2px solid #0f0; - border-radius: 10px; - font-size: 20px; - text-align: center; - box-shadow: 0px 0px 20px #0f0; - z-index: 10; -} - +body { + margin: 0; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + height: 100vh; + background-color: #000; + font-family: 'Arial', sans-serif; + color: #0f0; +} + +#gameContainer { + position: relative; + width: 400px; + height: 600px; + border: 2px solid #0f0; + border-radius: 15px; + background-color: #111; + box-shadow: 0px 0px 20px #0f0; + display: flex; + justify-content: center; + align-items: center; +} + +#gameCanvas { + display: block; + border-radius: 15px 15px 0 0; + background-color: #222; + box-shadow: inset 0px 0px 10px #0f0; +} + +#score { + position: absolute; + top: 10px; + left: 10px; + font-size: 20px; + color: #0f0; + text-shadow: 0px 0px 5px #0f0; +} + +#startButton { + margin-top: 20px; + padding: 10px 20px; + background-color: #111; + color: #0f0; + border: 2px solid #0f0; + border-radius: 5px; + cursor: pointer; + font-size: 16px; + box-shadow: 0px 0px 10px #0f0; +} + +#startButton:hover { + background-color: #0f0; + color: #111; + box-shadow: 0px 0px 20px #0f0; +} + +#gameOverMessage { + display: none; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + padding: 20px; + background-color: #111; + color: #0f0; + border: 2px solid #0f0; + border-radius: 10px; + font-size: 20px; + text-align: center; + box-shadow: 0px 0px 20px #0f0; + z-index: 10; +} + diff --git a/Games/Color_switcher/README.md b/Games/Color_switcher/README.md index 56a7b58e9f..de13986db7 100644 --- a/Games/Color_switcher/README.md +++ b/Games/Color_switcher/README.md @@ -1,21 +1,21 @@ -# Color Switcher - -Color Switcher is a simple game built using HTML, CSS, and JavaScript. The objective of the game is to match the color of a moving object with the background color to score points. - - -![Color_switcher](https://github.com/kumar11jr/GameZone/assets/104729493/29d35c18-0f0f-4b82-a8f3-ef5a79a0563b)![Color_switcher1](https://github.com/kumar11jr/GameZone/assets/104729493/54dec573-fc7a-4e81-ae3f-a25e8d931ecc) - - -## How to Play - -1. Open the game in a web browser by opening the `index.html` file. -2. Click on the color switcher element to change its background color. -3. If the new color matches the previous color, your score increases. -4. If the colors don't match, the game is over, and your score resets to zero. -5. Keep trying to match colors and aim for a high score! - -## Technologies Used - -- HTML -- CSS -- JavaScript +# Color Switcher + +Color Switcher is a simple game built using HTML, CSS, and JavaScript. The objective of the game is to match the color of a moving object with the background color to score points. + + +![Color_switcher](https://github.com/kumar11jr/GameZone/assets/104729493/29d35c18-0f0f-4b82-a8f3-ef5a79a0563b)![Color_switcher1](https://github.com/kumar11jr/GameZone/assets/104729493/54dec573-fc7a-4e81-ae3f-a25e8d931ecc) + + +## How to Play + +1. Open the game in a web browser by opening the `index.html` file. +2. Click on the color switcher element to change its background color. +3. If the new color matches the previous color, your score increases. +4. If the colors don't match, the game is over, and your score resets to zero. +5. Keep trying to match colors and aim for a high score! + +## Technologies Used + +- HTML +- CSS +- JavaScript diff --git a/Games/Color_switcher/index.html b/Games/Color_switcher/index.html index d99e70e920..57da285d9e 100644 --- a/Games/Color_switcher/index.html +++ b/Games/Color_switcher/index.html @@ -1,18 +1,18 @@ - - - - Color Switcher - - - - -
-
-
Score: 0
-
-
- - - - + + + + Color Switcher + + + + +
+
+
Score: 0
+
+
+ + + + diff --git a/Games/Color_switcher/script.js b/Games/Color_switcher/script.js index 7d6efaf981..6044d7c578 100644 --- a/Games/Color_switcher/script.js +++ b/Games/Color_switcher/script.js @@ -1,28 +1,28 @@ -const colors = ["red", "Sky-blue", "green", "light-yellow"]; -let currentColor; -let score = 0; - -const colorSwitcher = document.getElementById("color-switcher"); -const scoreElement = document.getElementById("score"); - -colorSwitcher.addEventListener("click", changeColor); - -function changeColor() { - console.log("hii") - const randomIndex = Math.floor(Math.random() * colors.length); - const newColor = colors[randomIndex]; - - if (newColor === currentColor) { - score++; - scoreElement.textContent = `Computer selected ${newColor} Score: ${score}`; - } else { - score = 0; - scoreElement.textContent = `Game Over!`; - } - - currentColor = newColor; - colorSwitcher.className = newColor; -} - -// Initial color setup -changeColor(); +const colors = ["red", "Sky-blue", "green", "light-yellow"]; +let currentColor; +let score = 0; + +const colorSwitcher = document.getElementById("color-switcher"); +const scoreElement = document.getElementById("score"); + +colorSwitcher.addEventListener("click", changeColor); + +function changeColor() { + console.log("hii") + const randomIndex = Math.floor(Math.random() * colors.length); + const newColor = colors[randomIndex]; + + if (newColor === currentColor) { + score++; + scoreElement.textContent = `Computer selected ${newColor} Score: ${score}`; + } else { + score = 0; + scoreElement.textContent = `Game Over!`; + } + + currentColor = newColor; + colorSwitcher.className = newColor; +} + +// Initial color setup +changeColor(); diff --git a/Games/Color_switcher/style.css b/Games/Color_switcher/style.css index 0cabe556a5..6dc33c9296 100644 --- a/Games/Color_switcher/style.css +++ b/Games/Color_switcher/style.css @@ -1,42 +1,42 @@ -body { - background-color: #f2f2f2; - display: flex; - align-items: center; - justify-content: center; - height: 100vh; - margin: 0; -} - -#game-container { - text-align: center; -} - -#score { - font-size: 24px; - margin-bottom: 20px; -} - -#color-switcher { - width: 200px; - height: 200px; - margin: 0 auto; - border-radius: 50%; - cursor: pointer; - box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); -} - -.red { - background-color: #ff4d4d; -} - -.Sky-blue{ - background-color: #66ccff; -} - -.green { - background-color: #99ff99; -} - -.light-yellow { - background-color: #ffcc99; -} +body { + background-color: #f2f2f2; + display: flex; + align-items: center; + justify-content: center; + height: 100vh; + margin: 0; +} + +#game-container { + text-align: center; +} + +#score { + font-size: 24px; + margin-bottom: 20px; +} + +#color-switcher { + width: 200px; + height: 200px; + margin: 0 auto; + border-radius: 50%; + cursor: pointer; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); +} + +.red { + background-color: #ff4d4d; +} + +.Sky-blue{ + background-color: #66ccff; +} + +.green { + background-color: #99ff99; +} + +.light-yellow { + background-color: #ffcc99; +} diff --git a/Games/Colour_Guessing_Game/README.md b/Games/Colour_Guessing_Game/README.md index a422fb4624..a43c705a66 100644 --- a/Games/Colour_Guessing_Game/README.md +++ b/Games/Colour_Guessing_Game/README.md @@ -1,35 +1,35 @@ -# **GUESS By RGB(r, g, b)** - ---- - -
- -## **Description ๐Ÿ“ƒ** -- This game will check your estimation ability and your familiarity with the RGB color scheme. - -## **functionalities ๐ŸŽฎ** -- random color generation -- fully responsive design -- 2 levels -
- -## **How to play? ๐Ÿ•น๏ธ** -- the game has 2 levels, easy and hard. - 1. On picking hard, you will have to choose the closest match out of 6 options to the given RGB coordinates. - 2. On picking easy, you will have to choose the closest match out of 3 options to the given RGB coordinates. - 3. After picking the most accurate colour you win! - 4. Click on play again to start over again. If you want to restart a game just click on 'new colors'. - -
- -## **Screenshots ๐Ÿ“ธ** - -
- -![image](../../assets/images/Colour_Guessing_Game.png) - -
- -## **Working video ๐Ÿ“น** - -https://github.com/singh-anushka/GameZone/assets/93376863/48c8b665-4390-480d-a565-37f9e19f3c4e +# **GUESS By RGB(r, g, b)** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +- This game will check your estimation ability and your familiarity with the RGB color scheme. + +## **functionalities ๐ŸŽฎ** +- random color generation +- fully responsive design +- 2 levels +
+ +## **How to play? ๐Ÿ•น๏ธ** +- the game has 2 levels, easy and hard. + 1. On picking hard, you will have to choose the closest match out of 6 options to the given RGB coordinates. + 2. On picking easy, you will have to choose the closest match out of 3 options to the given RGB coordinates. + 3. After picking the most accurate colour you win! + 4. Click on play again to start over again. If you want to restart a game just click on 'new colors'. + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ +![image](../../assets/images/Colour_Guessing_Game.png) + +
+ +## **Working video ๐Ÿ“น** + +https://github.com/singh-anushka/GameZone/assets/93376863/48c8b665-4390-480d-a565-37f9e19f3c4e diff --git a/Games/Colour_Guessing_Game/index.html b/Games/Colour_Guessing_Game/index.html index 8f2e75466a..7b6a366d10 100644 --- a/Games/Colour_Guessing_Game/index.html +++ b/Games/Colour_Guessing_Game/index.html @@ -1,36 +1,36 @@ - - - - Color Game - - - - - - - - - -
-

Guess byRGB

-
- - - - -
-
-
-
-
-
-
-
-
- - - - + + + + Color Game + + + + + + + + + +
+

Guess byRGB

+
+ + + + +
+
+
+
+
+
+
+
+
+ + + + \ No newline at end of file diff --git a/Games/Colour_Guessing_Game/script.js b/Games/Colour_Guessing_Game/script.js index cac8be5d92..2fb73f3caf 100644 --- a/Games/Colour_Guessing_Game/script.js +++ b/Games/Colour_Guessing_Game/script.js @@ -1,108 +1,108 @@ -var numSquares = 6; -var colors = []; -var pickedColor; - -var squares = document.querySelectorAll(".square"); -var colorDisplay = document.querySelector("#color-display"); -var messageDisplay = document.querySelector("#message"); -var h1 = document.querySelector("h1"); -var resetButton = document.querySelector("#reset"); -var modeButtons = document.querySelectorAll(".mode"); -var easyButton = document.querySelector(".mode"); - -init(); - -function init() { - colorDisplay.textContent = pickedColor; - setupSquares(); - setupMode(); - reset(); -} - -resetButton.addEventListener("click", function() { - reset(); -}); - -function setupSquares() { - document.getElementById("message").style.fontFamily = "'Space Grotesk', sans-serif"; - document.getElementById("message").style.fontWeight = "300"; - for (var i = 0; i < squares.length; i++) { - squares[i].style.backgroundColor = colors[i]; - squares[i].addEventListener("click", function() { - var clickedColor = this.style.backgroundColor; - if(clickedColor === pickedColor) { - this.style.backgroundColor = pickedColor; - messageDisplay.textContent = "Correct"; - resetButton.textContent = "Play Again"; - changeColors(pickedColor); - } - else { - this.style.backgroundColor = "#411530"; - messageDisplay.textContent = "try again"; - } - }); - } -} - -function setupMode() { - for(var i = 0; i < modeButtons.length; i++) { - modeButtons[i].addEventListener("click", function() { - for (var i = 0; i < modeButtons.length; i++) { - modeButtons[i].classList.remove("selected"); - } - this.classList.add("selected"); - if (this.textContent === "Easy") { - numSquares = 3; - } - else { - numSquares = 6; - } - reset(); - }); - } -} - -function reset() { - colors = genRandomColors(numSquares); - pickedColor = chooseColor(); - colorDisplay.textContent = pickedColor; - h1.style.backgroundColor = "#D1512D"; - resetButton.textContent = "New Colors"; - messageDisplay.textContent = ""; - for (var i = 0; i < squares.length; i++) { - if(colors[i]) { - squares[i].style.display = "block"; - squares[i].style.backgroundColor = colors[i]; - } - else { - squares[i].style.display = "none"; - } - } -} - -function changeColors(color) { - for(var i = 0; i < squares.length; i++) { - squares[i].style.backgroundColor = color; - h1.style.backgroundColor = color; - } -} - -function chooseColor() { - var random = Math.floor(Math.random() * colors.length); - return colors[random]; -} - -function genRandomColors(num) { - var arr = []; - for (var i = 0; i < num; i++) { - arr.push(makeColor()); - } - return arr; -} - -function makeColor() { - var r = Math.floor(Math.random() * 256); - var g = Math.floor(Math.random() * 256); - var b = Math.floor(Math.random() * 256); - return "rgb(" + r + ", " + g + ", " + b + ")"; +var numSquares = 6; +var colors = []; +var pickedColor; + +var squares = document.querySelectorAll(".square"); +var colorDisplay = document.querySelector("#color-display"); +var messageDisplay = document.querySelector("#message"); +var h1 = document.querySelector("h1"); +var resetButton = document.querySelector("#reset"); +var modeButtons = document.querySelectorAll(".mode"); +var easyButton = document.querySelector(".mode"); + +init(); + +function init() { + colorDisplay.textContent = pickedColor; + setupSquares(); + setupMode(); + reset(); +} + +resetButton.addEventListener("click", function() { + reset(); +}); + +function setupSquares() { + document.getElementById("message").style.fontFamily = "'Space Grotesk', sans-serif"; + document.getElementById("message").style.fontWeight = "300"; + for (var i = 0; i < squares.length; i++) { + squares[i].style.backgroundColor = colors[i]; + squares[i].addEventListener("click", function() { + var clickedColor = this.style.backgroundColor; + if(clickedColor === pickedColor) { + this.style.backgroundColor = pickedColor; + messageDisplay.textContent = "Correct"; + resetButton.textContent = "Play Again"; + changeColors(pickedColor); + } + else { + this.style.backgroundColor = "#411530"; + messageDisplay.textContent = "try again"; + } + }); + } +} + +function setupMode() { + for(var i = 0; i < modeButtons.length; i++) { + modeButtons[i].addEventListener("click", function() { + for (var i = 0; i < modeButtons.length; i++) { + modeButtons[i].classList.remove("selected"); + } + this.classList.add("selected"); + if (this.textContent === "Easy") { + numSquares = 3; + } + else { + numSquares = 6; + } + reset(); + }); + } +} + +function reset() { + colors = genRandomColors(numSquares); + pickedColor = chooseColor(); + colorDisplay.textContent = pickedColor; + h1.style.backgroundColor = "#D1512D"; + resetButton.textContent = "New Colors"; + messageDisplay.textContent = ""; + for (var i = 0; i < squares.length; i++) { + if(colors[i]) { + squares[i].style.display = "block"; + squares[i].style.backgroundColor = colors[i]; + } + else { + squares[i].style.display = "none"; + } + } +} + +function changeColors(color) { + for(var i = 0; i < squares.length; i++) { + squares[i].style.backgroundColor = color; + h1.style.backgroundColor = color; + } +} + +function chooseColor() { + var random = Math.floor(Math.random() * colors.length); + return colors[random]; +} + +function genRandomColors(num) { + var arr = []; + for (var i = 0; i < num; i++) { + arr.push(makeColor()); + } + return arr; +} + +function makeColor() { + var r = Math.floor(Math.random() * 256); + var g = Math.floor(Math.random() * 256); + var b = Math.floor(Math.random() * 256); + return "rgb(" + r + ", " + g + ", " + b + ")"; } \ No newline at end of file diff --git a/Games/Colour_Guessing_Game/styles.css b/Games/Colour_Guessing_Game/styles.css index 3a83e7d569..b0448ef631 100644 --- a/Games/Colour_Guessing_Game/styles.css +++ b/Games/Colour_Guessing_Game/styles.css @@ -1,88 +1,88 @@ -body { - background-color: #411530; - font-size: 62.5%; - margin: 0; -} - -#container { - max-width: 600px; - margin: 0 auto; - padding-top: 20px; -} -.square { - width: 30%; - background-color: purple; - padding-bottom: 30%; - float: left; - margin: 1.66%; - transition: background .5s; - -webkit-transition: background .5s; - -moz-transition: background .5s; -} - -h1 { - color: white; - background-color:#D1512D; - font-size: 3.5em; - font-family: 'Quicksand', sans-serif; - text-align: center; - text-transform: uppercase; - margin: 0; - padding: 10px 0; -} - -#color-display { - display: block; - font-size: 2em; -} - -#stripe { - background: white; - height: 30px; - text-align: center; - color: black; -} - -#message { - text-transform: uppercase; - color: #D1512D; - font-size: 1.5em; - display: inline-block; - width: 20%; -} - -button { - outline: none; - color: #D1512D; - font-family: 'Space Grotesk', sans-serif; - font-weight: 300; - text-transform: uppercase; - font-size: 1.5em; - background-color: white; - height: 100%; - letter-spacing: 1px; - transition: all 0.3s; - -webkit-transition: all 0.3s; - -moz-transition: all 0.3s; -} - -button:hover { - background-color: #D1512D; - color: white; -} - -.selected { - background-color: #D1512D; - color: white; -} - -.square { - border-radius: 20%; -} - -* { - border: 0px solid red; -} - - - +body { + background-color: #411530; + font-size: 62.5%; + margin: 0; +} + +#container { + max-width: 600px; + margin: 0 auto; + padding-top: 20px; +} +.square { + width: 30%; + background-color: purple; + padding-bottom: 30%; + float: left; + margin: 1.66%; + transition: background .5s; + -webkit-transition: background .5s; + -moz-transition: background .5s; +} + +h1 { + color: white; + background-color:#D1512D; + font-size: 3.5em; + font-family: 'Quicksand', sans-serif; + text-align: center; + text-transform: uppercase; + margin: 0; + padding: 10px 0; +} + +#color-display { + display: block; + font-size: 2em; +} + +#stripe { + background: white; + height: 30px; + text-align: center; + color: black; +} + +#message { + text-transform: uppercase; + color: #D1512D; + font-size: 1.5em; + display: inline-block; + width: 20%; +} + +button { + outline: none; + color: #D1512D; + font-family: 'Space Grotesk', sans-serif; + font-weight: 300; + text-transform: uppercase; + font-size: 1.5em; + background-color: white; + height: 100%; + letter-spacing: 1px; + transition: all 0.3s; + -webkit-transition: all 0.3s; + -moz-transition: all 0.3s; +} + +button:hover { + background-color: #D1512D; + color: white; +} + +.selected { + background-color: #D1512D; + color: white; +} + +.square { + border-radius: 20%; +} + +* { + border: 0px solid red; +} + + + diff --git a/Games/Connect4/connect4.css b/Games/Connect4/connect4.css index 3db4f16012..85f20eee1a 100644 --- a/Games/Connect4/connect4.css +++ b/Games/Connect4/connect4.css @@ -1,82 +1,82 @@ -*{ - margin: 0; - padding: 0; -} -body{ - display: grid; - place-items: center; -} - -h1{ - text-align: center; - margin: 20px 0 20px 0; -} -h2{ - text-align: center; - margin-bottom: 20px; -} - -.board{ - display: grid; - grid-template-columns: repeat(7,1fr); - border: 2px solid black; - width: 630px; - background-color: rgb(74, 74, 198); - - -} - -ul{ - display: grid; - place-items: center; - -} - -ul p{ - margin: 5px; - width: 75px; - height: 75px; - border: 2px solid black; - border-radius: 100px; - background-color: white; -} - -ul:hover{ - cursor: pointer; - background-color: rgb(98, 136, 238); -} - - -@media(max-width:700px){ - .board{ - width: 500px; - } - ul p{ - width: 55px; - height: 55px; - - } - -} -@media(max-width:520px){ - .board{ - width: 400px; - } - ul p{ - width: 40px; - height: 40px; - - } - -} -@media(max-width:420px){ - .board{ - width: 320px; - } - ul p{ - width: 30px; - height: 30px; - - } - -} +*{ + margin: 0; + padding: 0; +} +body{ + display: grid; + place-items: center; +} + +h1{ + text-align: center; + margin: 20px 0 20px 0; +} +h2{ + text-align: center; + margin-bottom: 20px; +} + +.board{ + display: grid; + grid-template-columns: repeat(7,1fr); + border: 2px solid black; + width: 630px; + background-color: rgb(74, 74, 198); + + +} + +ul{ + display: grid; + place-items: center; + +} + +ul p{ + margin: 5px; + width: 75px; + height: 75px; + border: 2px solid black; + border-radius: 100px; + background-color: white; +} + +ul:hover{ + cursor: pointer; + background-color: rgb(98, 136, 238); +} + + +@media(max-width:700px){ + .board{ + width: 500px; + } + ul p{ + width: 55px; + height: 55px; + + } + +} +@media(max-width:520px){ + .board{ + width: 400px; + } + ul p{ + width: 40px; + height: 40px; + + } + +} +@media(max-width:420px){ + .board{ + width: 320px; + } + ul p{ + width: 30px; + height: 30px; + + } + +} diff --git a/Games/Connect4/connect4.js b/Games/Connect4/connect4.js index 478cc5efd7..b4e1fd8df5 100644 --- a/Games/Connect4/connect4.js +++ b/Games/Connect4/connect4.js @@ -1,93 +1,93 @@ -val_c1 = 1 -val_c2 = 1 -val_c3 = 1 -val_c4 = 1 -val_c5 = 1 -val_c6 = 1 -val_c7 = 1 -turn = 1 - - -//checking the winner - -function check(player) { - setTimeout(() => { - - for (i = 1; i <= 7; i++) { - for (j = 1; j <= 3; j++) { - if (document.getElementById(`c${i}r${j}`).style.backgroundColor == `${player}` && document.getElementById(`c${i}r${j + 1}`).style.backgroundColor == `${player}` && document.getElementById(`c${i}r${j + 2}`).style.backgroundColor == `${player}` && document.getElementById(`c${i}r${j + 3}`).style.backgroundColor == `${player}`) { - alert(`${player} wins`) - location.reload() - } - - } - } - - for (i = 1; i <= 6; i++) { - for (j = 1; j <= 4; j++) { - if (document.getElementById(`c${j}r${i}`).style.backgroundColor == `${player}` && document.getElementById(`c${j + 1}r${i}`).style.backgroundColor == `${player}` && document.getElementById(`c${j + 2}r${i}`).style.backgroundColor == `${player}` && document.getElementById(`c${j + 3}r${i}`).style.backgroundColor == `${player}`) { - alert(`${player} wins`) - location.reload() - } - - } - - } - - for (i = 1; i <= 4; i++) { - for (j = 1; j <= 3; j++) { - if (document.getElementById(`c${i}r${j}`).style.backgroundColor == `${player}` && document.getElementById(`c${i + 1}r${j + 1}`).style.backgroundColor == `${player}` && document.getElementById(`c${i + 2}r${j + 2}`).style.backgroundColor == `${player}` && document.getElementById(`c${i + 3}r${j + 3}`).style.backgroundColor == `${player}`) { - alert(`${player} wins`) - location.reload() - } - - } - } - - for (i = 1; i <= 4; i++) { - for (j = 6; j >= 4; j--) { - if (document.getElementById(`c${i}r${j}`).style.backgroundColor == `${player}` && document.getElementById(`c${i + 1}r${j - 1}`).style.backgroundColor == `${player}` && document.getElementById(`c${i + 2}r${j - 2}`).style.backgroundColor == `${player}` && document.getElementById(`c${i + 3}r${j - 3}`).style.backgroundColor == `${player}`) { - alert(`${player} wins`) - location.reload() - } - - } - } - - }, 200) - -} - - - -//playing -document.querySelectorAll(".column").forEach((e) => { - e.addEventListener("click", () => { - - sum = eval(`val_${e.id}`) - eval(`val_${e.id}++`) - - - if (sum <= 6 && turn % 2 != 0) { - document.getElementById(`${e.id}r${sum}`).style.backgroundColor = "red" - turn++ - check('red') - document.getElementById("whosturn").innerText = "Yellow's Turn" - } - - else if (sum <= 6 && turn % 2 == 0) { - document.getElementById(`${e.id}r${sum}`).style.backgroundColor = "yellow" - turn++ - check('yellow') - document.getElementById("whosturn").innerText = "Red's Turn" - - } - - - - - - }) -}) - - +val_c1 = 1 +val_c2 = 1 +val_c3 = 1 +val_c4 = 1 +val_c5 = 1 +val_c6 = 1 +val_c7 = 1 +turn = 1 + + +//checking the winner + +function check(player) { + setTimeout(() => { + + for (i = 1; i <= 7; i++) { + for (j = 1; j <= 3; j++) { + if (document.getElementById(`c${i}r${j}`).style.backgroundColor == `${player}` && document.getElementById(`c${i}r${j + 1}`).style.backgroundColor == `${player}` && document.getElementById(`c${i}r${j + 2}`).style.backgroundColor == `${player}` && document.getElementById(`c${i}r${j + 3}`).style.backgroundColor == `${player}`) { + alert(`${player} wins`) + location.reload() + } + + } + } + + for (i = 1; i <= 6; i++) { + for (j = 1; j <= 4; j++) { + if (document.getElementById(`c${j}r${i}`).style.backgroundColor == `${player}` && document.getElementById(`c${j + 1}r${i}`).style.backgroundColor == `${player}` && document.getElementById(`c${j + 2}r${i}`).style.backgroundColor == `${player}` && document.getElementById(`c${j + 3}r${i}`).style.backgroundColor == `${player}`) { + alert(`${player} wins`) + location.reload() + } + + } + + } + + for (i = 1; i <= 4; i++) { + for (j = 1; j <= 3; j++) { + if (document.getElementById(`c${i}r${j}`).style.backgroundColor == `${player}` && document.getElementById(`c${i + 1}r${j + 1}`).style.backgroundColor == `${player}` && document.getElementById(`c${i + 2}r${j + 2}`).style.backgroundColor == `${player}` && document.getElementById(`c${i + 3}r${j + 3}`).style.backgroundColor == `${player}`) { + alert(`${player} wins`) + location.reload() + } + + } + } + + for (i = 1; i <= 4; i++) { + for (j = 6; j >= 4; j--) { + if (document.getElementById(`c${i}r${j}`).style.backgroundColor == `${player}` && document.getElementById(`c${i + 1}r${j - 1}`).style.backgroundColor == `${player}` && document.getElementById(`c${i + 2}r${j - 2}`).style.backgroundColor == `${player}` && document.getElementById(`c${i + 3}r${j - 3}`).style.backgroundColor == `${player}`) { + alert(`${player} wins`) + location.reload() + } + + } + } + + }, 200) + +} + + + +//playing +document.querySelectorAll(".column").forEach((e) => { + e.addEventListener("click", () => { + + sum = eval(`val_${e.id}`) + eval(`val_${e.id}++`) + + + if (sum <= 6 && turn % 2 != 0) { + document.getElementById(`${e.id}r${sum}`).style.backgroundColor = "red" + turn++ + check('red') + document.getElementById("whosturn").innerText = "Yellow's Turn" + } + + else if (sum <= 6 && turn % 2 == 0) { + document.getElementById(`${e.id}r${sum}`).style.backgroundColor = "yellow" + turn++ + check('yellow') + document.getElementById("whosturn").innerText = "Red's Turn" + + } + + + + + + }) +}) + + diff --git a/Games/Connect4/index.html b/Games/Connect4/index.html index 6999c20d28..e05d0511d1 100644 --- a/Games/Connect4/index.html +++ b/Games/Connect4/index.html @@ -1,85 +1,85 @@ - - - - - - - - Document - - - - - -
-

CONNECT-4

-

Red's Turn

- -
- -
    -

    -

    -

    -

    -

    -

    -
-
    -

    -

    -

    -

    -

    -

    -
-
    -

    -

    -

    -

    -

    -

    -
-
    -

    -

    -

    -

    -

    -

    -
-
    -

    -

    -

    -

    -

    -

    -
-
    -

    -

    -

    -

    -

    -

    -
-
    -

    -

    -

    -

    -

    -

    -
- - -
- - - - - + + + + + + + + Document + + + + + +
+

CONNECT-4

+

Red's Turn

+ +
+ +
    +

    +

    +

    +

    +

    +

    +
+
    +

    +

    +

    +

    +

    +

    +
+
    +

    +

    +

    +

    +

    +

    +
+
    +

    +

    +

    +

    +

    +

    +
+
    +

    +

    +

    +

    +

    +

    +
+
    +

    +

    +

    +

    +

    +

    +
+
    +

    +

    +

    +

    +

    +

    +
+ + +
+ + + + + \ No newline at end of file diff --git a/Games/Connect_Four/README.md b/Games/Connect_Four/README.md index 32cabd7b95..2b72e6de9f 100644 --- a/Games/Connect_Four/README.md +++ b/Games/Connect_Four/README.md @@ -1,29 +1,29 @@ -# Connect Four - -![Connect Four Screenshot](Connect-Four.png) - -## Description - -Connect Four is a classic two-player board game where the objective is to connect four of your colored pieces in a row, column, or diagonal before your opponent does. - -This project is a simple implementation of the Connect Four game using HTML, CSS, and JavaScript. - -## How to Play - -1. Open the `index.html` file in your web browser. -2. The game starts with the "red" player. -3. Click on any of the seven columns at the top of the game board to drop a red piece into that column. -4. The red piece will fall to the lowest available row in the selected column. The "red" player's turn is now over. -5. The game will automatically switch to the "yellow" player's turn. -6. Click on any of the remaining columns to drop a yellow piece into that column. -7. The yellow piece will fall to the lowest available row in the selected column. The "yellow" player's turn is now over. -8. Players take turns dropping their respective colored pieces until one player successfully connects four pieces in a row, column, or diagonal. -9. If a player connects four pieces, an alert will pop up to declare that player as the winner. -10. If neither player connects four pieces and the board is full, the game will end in a draw. -11. To play again, simply refresh the web page to reset the game board and start a new game. - -## Technologies Used - -- HTML -- CSS -- JavaScript +# Connect Four + +![Connect Four Screenshot](Connect-Four.png) + +## Description + +Connect Four is a classic two-player board game where the objective is to connect four of your colored pieces in a row, column, or diagonal before your opponent does. + +This project is a simple implementation of the Connect Four game using HTML, CSS, and JavaScript. + +## How to Play + +1. Open the `index.html` file in your web browser. +2. The game starts with the "red" player. +3. Click on any of the seven columns at the top of the game board to drop a red piece into that column. +4. The red piece will fall to the lowest available row in the selected column. The "red" player's turn is now over. +5. The game will automatically switch to the "yellow" player's turn. +6. Click on any of the remaining columns to drop a yellow piece into that column. +7. The yellow piece will fall to the lowest available row in the selected column. The "yellow" player's turn is now over. +8. Players take turns dropping their respective colored pieces until one player successfully connects four pieces in a row, column, or diagonal. +9. If a player connects four pieces, an alert will pop up to declare that player as the winner. +10. If neither player connects four pieces and the board is full, the game will end in a draw. +11. To play again, simply refresh the web page to reset the game board and start a new game. + +## Technologies Used + +- HTML +- CSS +- JavaScript diff --git a/Games/Connect_Four/index.html b/Games/Connect_Four/index.html index 8db2d51f94..7321851bbf 100644 --- a/Games/Connect_Four/index.html +++ b/Games/Connect_Four/index.html @@ -1,25 +1,25 @@ - - - - Connect4 - - - - - -
- -
-
-

- - Please install Google Chrome. - -
- + + + + Connect4 + + + + + +
+ +
+
+

+ + Please install Google Chrome. + +
+ \ No newline at end of file diff --git a/Games/Connect_Four/script.js b/Games/Connect_Four/script.js index 0b14abcb5e..fce0ed482f 100644 --- a/Games/Connect_Four/script.js +++ b/Games/Connect_Four/script.js @@ -1,173 +1,173 @@ -var canvas, c, grid, check, mouseX, currSide = 0, gameOver = false; -var cols = 7, - rows = 6, - sides = ["blue", "darkred"], - cellSize = 60, - cellGap = 10, - borderGap = 30, - borderWidth = 10, - winningLength = 4, - backColor = "black"; - -function main() { - grid = new Array(cols); - for (var i = 0; i < grid.length; i++) grid[i] = new Array(rows); - canvas = document.getElementById("canvas"); - c = canvas.getContext("2d"); - canvas.width = cols * (cellSize + cellGap) - cellGap + borderGap * 2; - canvas.height = rows * (cellSize + cellGap) - cellGap + borderGap * 2; - canvas.addEventListener("click", function(e) { - mouseX = e.clientX - canvas.offsetLeft; - place(mouseX, sides[currSide]); - currSide = currSide == 0? 1 : 0; - }); - init(); -} - -function init() { - document.getElementById("pageTitle").innerHTML = "CONNECT " + winningLength + "  -  " + cols + " x " + rows; - document.getElementById("tabTitle").innerHTML = "Connect " + winningLength; - document.querySelector("canvas").style.borderRadius = (cellSize / 2 + borderGap + borderWidth) + "px"; - document.querySelector("canvas").style.borderWidth = borderWidth + "px"; - render(); -} - -function place(x, color) { - if (!gameOver) { - var col = Math.floor((mouseX / canvas.width) * cols); - col = col >= cols? col - 1 : col; - for (var i = grid[col].length - 1; i >= 0; i--) { - if (grid[col][i] == undefined) { - grid[col][i] = color; - render(); - check.init(col, i); - check.vertical(col, i, grid[col][i]); - check.horizontal(col, i, grid[col][i]); - check.diagonalNegative(col, i, grid[col][i]); - check.diagonalPositive(col, i, grid[col][i]); - break; - } - } - } -} - -function render() { - c.clearRect(0, 0, canvas.width, canvas.height); - c.lineWidth = 3; - c.strokeStyle = "darkslategray"; - for (var i = 0; i < grid.length; i++) { - for (var k = 0; k < grid[i].length; k++) { - c.fillStyle = grid[i][k] == undefined? backColor : grid[i][k]; - c.beginPath(); - c.arc((cellSize + cellGap) * i + cellSize / 2 + borderGap, - (cellSize + cellGap) * k + cellSize / 2 + borderGap, - cellSize / 2, 0, 2 * Math.PI); - c.stroke(); - c.fill(); - c.closePath(); - } - } -} - -function renderChain(color) { - if (check.chainPositions.length >= winningLength) { - c.lineWidth = cellSize / 11; - c.strokeStyle = color; - c.beginPath(); - c.moveTo((cellSize + cellGap) * check.chainPositions[0][0] + cellSize / 2 + borderGap, - (cellSize + cellGap) * check.chainPositions[0][1] + cellSize / 2 + borderGap); - for (var i = 1; i < check.chainPositions.length; i++) { - var p = check.chainPositions[i]; - c.lineTo((cellSize + cellGap) * p[0] + cellSize / 2 + borderGap, - (cellSize + cellGap) * p[1] + cellSize / 2 + borderGap); - } - c.stroke(); - c.closePath(); - c.strokeStyle = "white"; - for (var i = 0; i < check.chainPositions.length; i++) { - c.beginPath(); - var p = check.chainPositions[i]; - c.arc((cellSize + cellGap) * p[0] + cellSize / 2 + borderGap, - (cellSize + cellGap) * p[1] + cellSize / 2 + borderGap, - cellSize / 2.5, 0, 2 * Math.PI); - c.stroke(); - c.closePath(); - } - } -} - -check = { - chainPositions: new Array(), - chain: 1, - init: function(col, row) { - this.chainPositions = [[col, row]]; - }, - vertical: function(col, row, color) { - for (var i = 1; i < winningLength; i++) { - if (row + i <= rows - 1) { - if (grid[col][row + i] == color) this.chainPositions.push([col, row + i]); - else break; - } - } - for (var i = 1; i < winningLength; i++) { - if (row - i >= 0) { - if (grid[col][row - i] == color) this.chainPositions.push([col, row - i]); - else break; - } - } - this.checkAndReset(color); - }, - horizontal: function(col, row, color) { - for (var i = 1; i < winningLength; i++) { - if (col + i <= cols - 1) { - if (grid[col + i][row] == color) this.chainPositions.push([col + i, row]); - else break; - } - } - for (var i = 1; i < winningLength; i++) { - if (col - i >= 0) { - if (grid[col - i][row] == color) this.chainPositions.push([col - i, row]); - else break; - } - } - this.checkAndReset(color); - }, - diagonalNegative: function(col, row, color) { - for (var i = 1; i < winningLength; i++) { - if ((col + i <= cols - 1) && (row + i <= rows - 1)) { - if (grid[col + i][row + i] == color) this.chainPositions.push([col + i, row + i]); - else break; - } - } - for (var i = 1; i < winningLength; i++) { - if ((col - i >= 0) && (row - i >= 0)) { - if (grid[col - i][row - i] == color) this.chainPositions.push([col - i, row - i]); - else break; - } - } - this.checkAndReset(color); - }, - diagonalPositive: function(col, row, color) { - for (var i = 1; i < winningLength; i++) { - if ((col + i <= cols - 1) && (row - i >= 0)) { - if (grid[col + i][row - i] == color) this.chainPositions.push([col + i, row - i]); - else break; - } - } - for (var i = 1; i < winningLength; i++) { - if ((col - i >= 0) && (row + i <= rows - 1)) { - if (grid[col - i][row + i] == color) this.chainPositions.push([col - i, row + i]); - else break; - } - } - this.checkAndReset(color); - }, - checkAndReset: function(color) { - if (this.chainPositions.length >= winningLength) { - renderChain(color); - alert(winningLength + " IN A ROW!\n" + (color.toString()).toUpperCase() + " WINS!"); - gameOver = true; - } - this.chainPositions.splice(1, this.chainPositions.length - 1); - } +var canvas, c, grid, check, mouseX, currSide = 0, gameOver = false; +var cols = 7, + rows = 6, + sides = ["blue", "darkred"], + cellSize = 60, + cellGap = 10, + borderGap = 30, + borderWidth = 10, + winningLength = 4, + backColor = "black"; + +function main() { + grid = new Array(cols); + for (var i = 0; i < grid.length; i++) grid[i] = new Array(rows); + canvas = document.getElementById("canvas"); + c = canvas.getContext("2d"); + canvas.width = cols * (cellSize + cellGap) - cellGap + borderGap * 2; + canvas.height = rows * (cellSize + cellGap) - cellGap + borderGap * 2; + canvas.addEventListener("click", function(e) { + mouseX = e.clientX - canvas.offsetLeft; + place(mouseX, sides[currSide]); + currSide = currSide == 0? 1 : 0; + }); + init(); +} + +function init() { + document.getElementById("pageTitle").innerHTML = "CONNECT " + winningLength + "  -  " + cols + " x " + rows; + document.getElementById("tabTitle").innerHTML = "Connect " + winningLength; + document.querySelector("canvas").style.borderRadius = (cellSize / 2 + borderGap + borderWidth) + "px"; + document.querySelector("canvas").style.borderWidth = borderWidth + "px"; + render(); +} + +function place(x, color) { + if (!gameOver) { + var col = Math.floor((mouseX / canvas.width) * cols); + col = col >= cols? col - 1 : col; + for (var i = grid[col].length - 1; i >= 0; i--) { + if (grid[col][i] == undefined) { + grid[col][i] = color; + render(); + check.init(col, i); + check.vertical(col, i, grid[col][i]); + check.horizontal(col, i, grid[col][i]); + check.diagonalNegative(col, i, grid[col][i]); + check.diagonalPositive(col, i, grid[col][i]); + break; + } + } + } +} + +function render() { + c.clearRect(0, 0, canvas.width, canvas.height); + c.lineWidth = 3; + c.strokeStyle = "darkslategray"; + for (var i = 0; i < grid.length; i++) { + for (var k = 0; k < grid[i].length; k++) { + c.fillStyle = grid[i][k] == undefined? backColor : grid[i][k]; + c.beginPath(); + c.arc((cellSize + cellGap) * i + cellSize / 2 + borderGap, + (cellSize + cellGap) * k + cellSize / 2 + borderGap, + cellSize / 2, 0, 2 * Math.PI); + c.stroke(); + c.fill(); + c.closePath(); + } + } +} + +function renderChain(color) { + if (check.chainPositions.length >= winningLength) { + c.lineWidth = cellSize / 11; + c.strokeStyle = color; + c.beginPath(); + c.moveTo((cellSize + cellGap) * check.chainPositions[0][0] + cellSize / 2 + borderGap, + (cellSize + cellGap) * check.chainPositions[0][1] + cellSize / 2 + borderGap); + for (var i = 1; i < check.chainPositions.length; i++) { + var p = check.chainPositions[i]; + c.lineTo((cellSize + cellGap) * p[0] + cellSize / 2 + borderGap, + (cellSize + cellGap) * p[1] + cellSize / 2 + borderGap); + } + c.stroke(); + c.closePath(); + c.strokeStyle = "white"; + for (var i = 0; i < check.chainPositions.length; i++) { + c.beginPath(); + var p = check.chainPositions[i]; + c.arc((cellSize + cellGap) * p[0] + cellSize / 2 + borderGap, + (cellSize + cellGap) * p[1] + cellSize / 2 + borderGap, + cellSize / 2.5, 0, 2 * Math.PI); + c.stroke(); + c.closePath(); + } + } +} + +check = { + chainPositions: new Array(), + chain: 1, + init: function(col, row) { + this.chainPositions = [[col, row]]; + }, + vertical: function(col, row, color) { + for (var i = 1; i < winningLength; i++) { + if (row + i <= rows - 1) { + if (grid[col][row + i] == color) this.chainPositions.push([col, row + i]); + else break; + } + } + for (var i = 1; i < winningLength; i++) { + if (row - i >= 0) { + if (grid[col][row - i] == color) this.chainPositions.push([col, row - i]); + else break; + } + } + this.checkAndReset(color); + }, + horizontal: function(col, row, color) { + for (var i = 1; i < winningLength; i++) { + if (col + i <= cols - 1) { + if (grid[col + i][row] == color) this.chainPositions.push([col + i, row]); + else break; + } + } + for (var i = 1; i < winningLength; i++) { + if (col - i >= 0) { + if (grid[col - i][row] == color) this.chainPositions.push([col - i, row]); + else break; + } + } + this.checkAndReset(color); + }, + diagonalNegative: function(col, row, color) { + for (var i = 1; i < winningLength; i++) { + if ((col + i <= cols - 1) && (row + i <= rows - 1)) { + if (grid[col + i][row + i] == color) this.chainPositions.push([col + i, row + i]); + else break; + } + } + for (var i = 1; i < winningLength; i++) { + if ((col - i >= 0) && (row - i >= 0)) { + if (grid[col - i][row - i] == color) this.chainPositions.push([col - i, row - i]); + else break; + } + } + this.checkAndReset(color); + }, + diagonalPositive: function(col, row, color) { + for (var i = 1; i < winningLength; i++) { + if ((col + i <= cols - 1) && (row - i >= 0)) { + if (grid[col + i][row - i] == color) this.chainPositions.push([col + i, row - i]); + else break; + } + } + for (var i = 1; i < winningLength; i++) { + if ((col - i >= 0) && (row + i <= rows - 1)) { + if (grid[col - i][row + i] == color) this.chainPositions.push([col - i, row + i]); + else break; + } + } + this.checkAndReset(color); + }, + checkAndReset: function(color) { + if (this.chainPositions.length >= winningLength) { + renderChain(color); + alert(winningLength + " IN A ROW!\n" + (color.toString()).toUpperCase() + " WINS!"); + gameOver = true; + } + this.chainPositions.splice(1, this.chainPositions.length - 1); + } }; \ No newline at end of file diff --git a/Games/Connect_Four/style.css b/Games/Connect_Four/style.css index ad63a4f28c..742d61687e 100644 --- a/Games/Connect_Four/style.css +++ b/Games/Connect_Four/style.css @@ -1,72 +1,72 @@ -html, body { - padding: 0; - margin: 0; - background: linear-gradient( - to top, - darkslategray, - black - ); - color: -} -body * { - font-family: sans-serif; -} -#container { - text-align: center; - width: 100%; - padding: 20px; - box-sizing: border-box; -} -#canvas { - margin: 0 auto; - margin-bottom: 40px; - padding: 0; - display: block; - background-color: rgba(10, 10, 10, 0.3); - border: 9px solid darkslategray; - border-radius: 0; - overflow: hidden; - z-index: 20; - cursor: pointer; - box-shadow: 0 10px 130px 0 black; - -} -span, #data { - font-family: sans-serif; - color: white; - font-size: 16px; - text-align: center; -} -input { - border: none; - text-align: center; - background-color: rgb(100, 170, 180); - color: white; - padding: 6px; - width: 170px; - font-size: 20px; - margin: 0 4px; - border-radius: 20px; - border-bottom: 5px solid teal; -} -input[type="submit"] { - background-color: crimson; - border-bottom: 5px solid maroon; - width: 50px; -} -input[type="submit"]:active { - background-color: black; - transform: translateY(5px); - border-bottom: 0px solid black; -} -input::-webkit-input-placeholder {color: teal;} -input:focus::-webkit-input-placeholder {color: rgb(100, 170, 180);} -input:focus {outline: none;} -h1 { - -moz-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; - color: white; - letter-spacing: 3px; +html, body { + padding: 0; + margin: 0; + background: linear-gradient( + to top, + darkslategray, + black + ); + color: +} +body * { + font-family: sans-serif; +} +#container { + text-align: center; + width: 100%; + padding: 20px; + box-sizing: border-box; +} +#canvas { + margin: 0 auto; + margin-bottom: 40px; + padding: 0; + display: block; + background-color: rgba(10, 10, 10, 0.3); + border: 9px solid darkslategray; + border-radius: 0; + overflow: hidden; + z-index: 20; + cursor: pointer; + box-shadow: 0 10px 130px 0 black; + +} +span, #data { + font-family: sans-serif; + color: white; + font-size: 16px; + text-align: center; +} +input { + border: none; + text-align: center; + background-color: rgb(100, 170, 180); + color: white; + padding: 6px; + width: 170px; + font-size: 20px; + margin: 0 4px; + border-radius: 20px; + border-bottom: 5px solid teal; +} +input[type="submit"] { + background-color: crimson; + border-bottom: 5px solid maroon; + width: 50px; +} +input[type="submit"]:active { + background-color: black; + transform: translateY(5px); + border-bottom: 0px solid black; +} +input::-webkit-input-placeholder {color: teal;} +input:focus::-webkit-input-placeholder {color: rgb(100, 170, 180);} +input:focus {outline: none;} +h1 { + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; + color: white; + letter-spacing: 3px; } \ No newline at end of file diff --git a/Games/Corona_Fighter/assets/bg.jpg b/Games/Corona_Fighter/assets/bg.jpg deleted file mode 100644 index 8e5f196190..0000000000 Binary files a/Games/Corona_Fighter/assets/bg.jpg and /dev/null differ diff --git a/Games/Corona_Fighter/assets/doctor.png b/Games/Corona_Fighter/assets/doctor.png deleted file mode 100644 index dfba2db522..0000000000 Binary files a/Games/Corona_Fighter/assets/doctor.png and /dev/null differ diff --git a/Games/Corona_Fighter/assets/hand-soap.png b/Games/Corona_Fighter/assets/hand-soap.png deleted file mode 100644 index 9c3f6e5397..0000000000 Binary files a/Games/Corona_Fighter/assets/hand-soap.png and /dev/null differ diff --git a/Games/Corona_Fighter/assets/india.png b/Games/Corona_Fighter/assets/india.png deleted file mode 100644 index 3d48f39bfa..0000000000 Binary files a/Games/Corona_Fighter/assets/india.png and /dev/null differ diff --git a/Games/Corona_Fighter/assets/virus.png b/Games/Corona_Fighter/assets/virus.png deleted file mode 100644 index c72445521f..0000000000 Binary files a/Games/Corona_Fighter/assets/virus.png and /dev/null differ diff --git a/Games/Corona_Fighter/assets/virus.svg b/Games/Corona_Fighter/assets/virus.svg deleted file mode 100644 index 5560343c16..0000000000 --- a/Games/Corona_Fighter/assets/virus.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/Games/Corona_Shooter/README.md b/Games/Corona_Shooter/README.md index 225effbf0c..5ce2e579e6 100644 --- a/Games/Corona_Shooter/README.md +++ b/Games/Corona_Shooter/README.md @@ -1,10 +1,10 @@ -# Corona Shooter Game - -This is a fun interactive space themed shooter game where the player shoots at the Corona Viruses has a health bar and sometimes Hearts pop out shooting which gives you health back. -There is a score counter to the top right. - -Hold mouse button to continue firing your twin miniguns! - -# Preview -![shooter](https://github.com/5h0ov/GameZone/assets/83227649/48b96821-10a3-45a5-b459-ec0242b5e2ed) - +# Corona Shooter Game + +This is a fun interactive space themed shooter game where the player shoots at the Corona Viruses has a health bar and sometimes Hearts pop out shooting which gives you health back. +There is a score counter to the top right. + +Hold mouse button to continue firing your twin miniguns! + +# Preview +![shooter](https://github.com/5h0ov/GameZone/assets/83227649/48b96821-10a3-45a5-b459-ec0242b5e2ed) + diff --git a/Games/Corona_Shooter/index.html b/Games/Corona_Shooter/index.html index 7c9eb9c02d..1fb3a4b8cf 100644 --- a/Games/Corona_Shooter/index.html +++ b/Games/Corona_Shooter/index.html @@ -1,18 +1,18 @@ - - - - - - Corona Shooter - - - - - -
- - - - + + + + + + Corona Shooter + + + + + +
+ + + + \ No newline at end of file diff --git a/Games/Corona_Shooter/script.js b/Games/Corona_Shooter/script.js index 4c1869a754..4a27c26199 100644 --- a/Games/Corona_Shooter/script.js +++ b/Games/Corona_Shooter/script.js @@ -1,860 +1,860 @@ -"use strict" - var stage = { - w:1280, - h:720 - } - - var _pexcanvas = document.getElementById("canvas"); - _pexcanvas.width = stage.w; - _pexcanvas.height = stage.h; - var ctx = _pexcanvas.getContext("2d"); - - - - - var pointer = { - x:stage.w/2, - y:stage.h/4 - } - - var scale = 1; - var portrait = true; - var loffset = 0; - var toffset = 0; - var mxpos = 0; - var mypos = 0; - - -// ------------------------------------------------------------------------------- Gamy - -var againprog = 0; - -var healthprog = 0; - - -function newGame() { - score = 0; - health = 100; - enemies=[]; - enemies.push(new Enemy()); - enemies.push(new Enemy()); - enemies.push(new Enemy()); - againprog = 0; -} - - - -function drawHeart(x,y,w) { - ctx.beginPath(); - ctx.arc(x-w/4, y, w/4, 0.75*Math.PI,0); - ctx.arc(x+w/4, y, w/4, 1*Math.PI, 2.25*Math.PI); - ctx.lineTo(x,y+w/1.5); - ctx.closePath(); - ctx.fill(); -} - - -var Cannon = function(x,y,tx,ty) { - this.x = x; - this.y = y; - this.tx = tx; - this.ty = ty; - this.r = 10; -} - -var cannons = []; - -var gameover = false; - -cannons.push(new Cannon(stage.w,stage.h,stage.w/2,stage.h/2)); - -var firetm = 0; -var fireact = true; - -var health = 100; -var score = 0; - - -var arm = {x:stage.w,y:stage.h}; -var arm2 = {x:0,y:stage.h}; -var danger = false; -var dangera = 0; - - - -var Enemy = function() { - this.x = stage.w/2; - this.y = stage.h/2; - this.r = 10; - this.tx = Math.floor(Math.random()*stage.w); - this.ty = Math.floor(Math.random()*stage.h); - this.des = false; - this.eyeX = 0.4; - this.eyeY = 0.25; - this.eyeR = 0.25; - this.sp = 50; - this.spl = 1.4; - this.op=1; - this.danger = false; - this.nuked = false; -} - -var enemies = []; -// for (var i = 0; i < 10; i++) { -// enemies[i] = new Enemy(); -// } - enemies.push(new Enemy()); - enemies.push(new Enemy()); - enemies.push(new Enemy()); - -var entm = 0; -var ga =0; - -var steptime = 0; - - -var Star = function() { - this.a = Math.random()*Math.PI*2; - this.v = 3+Math.random()*5; - this.x = stage.w/2; - this.y = stage.h/2; - this.r = 0.2; -} - -var Power = function() { - this.type = Math.floor(Math.random()*2)+1; - this.a = Math.random()*Math.PI*2; - this.v = 3+Math.random()*5; - this.x = stage.w/2; - this.y = stage.h/2; - this.r = 0.2; - this.dis = false; - this.op = 1; -} - - -var powers = []; -var powertm = 0; -var powermax = Math.random()*800+300; -// powermax = 10; - -var stars = []; - -for (var i =0;i<200;i++) { - stars[i] = new Star(); - var st = stars[i]; - var move = Math.random()*400; - - st.x += Math.sin(st.a)*move; - st.y += Math.cos(st.a)*move; - - -} - -// powers.push(new Power()); - - - -function enginestep() { - steptime = Date.now(); - ctx.clearRect(0,0,stage.w,stage.h); - - ctx.fillStyle = "#ffffff"; - - - for (var i = 0; i < stars.length; i++) { - var st = stars[i]; - - st.x += Math.sin(st.a)*st.v; - st.y += Math.cos(st.a)*st.v; - st.r += st.v/200; - - ctx.beginPath(); - ctx.arc(st.x,st.y, st.r, 2*Math.PI, 0); - ctx.fill(); - - if (st.x>stage.w||st.x<0||st.y<0||st.y>stage.h) { - stars[i] = new Star(); - } - } - if (!gameover) { - danger = false; - - - powertm++; - if (powertm>powermax) { - powers.push(new Power()); - powertm = 0; - powermax = Math.random()*1200+600; - // powermax = 10; - } - - - - - for (var i = 0; i < powers.length; i++) { - var st = powers[i]; - - if (!st.des) { - st.x += Math.sin(st.a)*st.v/1.5; - st.y += Math.cos(st.a)*st.v/1.5; - st.r += st.v/15; - } else { - st.r *=1.1; - if (st.type==1) { - st.op += (0-st.op)/10; - } else { - st.op += (0-st.op)/20; - - } - st.x += (stage.w/2-st.x)/10; - st.y += (stage.h/2-st.y)/10; - - } - - - if (st.type ==1) { - ctx.fillStyle = "rgba(255,0,0,"+st.op+")"; - - drawHeart(st.x,st.y-st.r/4, st.r*2); - - } else { - ctx.fillStyle = "rgba(255,255,0,"+st.op+")"; - ctx.strokeStyle = "rgba(255,255,0,"+st.op+")"; - ctx.lineWidth = st.r/10; - ctx.beginPath(); - ctx.arc(st.x,st.y, st.r, 2*Math.PI, 0); - ctx.stroke(); - - ctx.beginPath(); - ctx.arc(st.x,st.y, st.r*0.15, 2*Math.PI, 0); - ctx.fill(); - - - ctx.beginPath(); - ctx.arc(st.x,st.y, st.r*0.85, 1.67*Math.PI, 2*Math.PI); - ctx.arc(st.x,st.y, st.r*0.25, 2*Math.PI, 1.67*Math.PI,true); - - ctx.closePath(); - ctx.fill(); - - - - ctx.beginPath(); - ctx.arc(st.x,st.y, st.r*0.85, 3*Math.PI, 3.33*Math.PI); - ctx.arc(st.x,st.y, st.r*0.25, 3.33*Math.PI,3*Math.PI, true); - ctx.closePath(); - ctx.fill(); - - ctx.beginPath(); - ctx.arc(st.x,st.y, st.r*0.85, 2.33*Math.PI, 2.67*Math.PI); - ctx.arc(st.x,st.y, st.r*0.25, 2.67*Math.PI,2.33*Math.PI, true); - ctx.lineTo(st.x,st.y); - ctx.closePath(); - ctx.fill(); - - } - if (st.x>stage.w||st.x<0||st.y<0||st.y>stage.h||st.r>stage.w/2) { - powers.splice(i,1); - if (st.type == 2&&st.r>stage.w/2) { - for (var e = 0; e < enemies.length; e++) { - enemies[e].des = true; - enemies[e].nuked = true; - - } - } - i--; - } - - - } - - entm++; - if (enemies.length<10&&entm>300) { - entm=0; - enemies.push(new Enemy()); - - } - - ctx.lineWidth = 2; - for (var i = 0; i < enemies.length; i++) { - var en = enemies[i]; - if (!en.danger) { - ctx.strokeStyle = "rgba(0,255,255,"+en.op*2+")"; - } else { - health -= 0.01; - ctx.strokeStyle = "rgba(255,0,0,"+en.op*2+")"; - danger = true; - } - - - - - if (!en.des) { - - if (en.danger) { - var randx = Math.floor(Math.random()*4)-2; - var randy = Math.floor(Math.random()*4)-2; - - en.x = en.tx+randx; - en.y = en.ty+randy; - } else { - en.x += (en.tx-en.x)/100; - en.y += (en.ty-en.y)/100; - var randx = 0; - var randy = 0; - } - - en.r += (50-en.r)/100; - if (Math.abs(50-en.r)<2&&!en.danger) { - en.tx=en.x; - en.ty=en.y; - en.danger=true; - } - ctx.beginPath(); - ctx.arc(en.x-en.r*en.eyeX,en.y-en.r*en.eyeY, en.r*en.eyeR, 0, 2*Math.PI); - ctx.stroke(); - ctx.beginPath(); - ctx.arc(en.x+en.r*en.eyeX,en.y-en.r*en.eyeY, en.r*en.eyeR, 0, 2*Math.PI); - ctx.stroke(); - - ctx.beginPath(); - ctx.arc(en.x,en.y+en.r/4, en.r/3, 2*Math.PI, Math.PI); - ctx.stroke(); - - ctx.beginPath(); - ctx.arc(en.x,en.y, en.r, 0, 2*Math.PI); - ctx.stroke(); - } else { - - en.eyeR += (0.5-en.eyeR)/5; - en.op += (0-en.op)/5; - // en.sp += (5-en.sp)/20; - en.r += (100-en.r)/20; - en.spl += (2.5-en.spl)/5; - ctx.beginPath(); - ctx.arc(en.x-en.r*en.eyeX,en.y-en.r*en.eyeY, en.r*en.eyeR, 0, 2*Math.PI); - ctx.stroke(); - ctx.beginPath(); - ctx.arc(en.x+en.r*en.eyeX,en.y-en.r*en.eyeY, en.r*en.eyeR, 0, 2*Math.PI); - ctx.stroke(); - ctx.beginPath(); - ctx.arc(en.x,en.y+en.r/2, en.r*en.eyeR, Math.PI,2*Math.PI); - ctx.stroke(); - - ctx.beginPath(); - ctx.arc(en.x,en.y, en.r, 0, 2*Math.PI); - ctx.stroke(); - } - - //spikes - for (var s = 0; s < 12; s++) { - var a = (Math.PI*2/12)*s+ga; - ctx.beginPath(); - ctx.moveTo(en.x+Math.sin(a)*en.r,en.y+Math.cos(a)*en.r); - ctx.lineTo(en.x+Math.sin(a)*en.r*1.2,en.y+Math.cos(a)*en.r*1.2); - ctx.lineTo(en.x+Math.sin(a+Math.PI/en.sp)*en.r*en.spl,en.y+Math.cos(a+Math.PI/en.sp)*en.r*en.spl); - ctx.lineTo(en.x+Math.sin(a-Math.PI/en.sp)*en.r*en.spl,en.y+Math.cos(a-Math.PI/en.sp)*en.r*en.spl); - ctx.lineTo(en.x+Math.sin(a)*en.r*1.2,en.y+Math.cos(a)*en.r*1.2); - ctx.stroke(); - // ctx.fill(); - } - - if (Math.abs(0.5-en.eyeR)<0.01) { - var rand = Math.floor(Math.random()*2); - if (enemies[i].nuked&&rand==1) { - enemies.splice(i,1); - - } else { - enemies[i] = new Enemy(); - - } - } - } - - - - - - - - if (danger) { - dangera += 0.05+(100-health)/1000; - if (dangera>=Math.PI) { - dangera=0; - } - ctx.fillStyle='rgba(255,0,0,'+(1-Math.sin(dangera))/4+')'; - ctx.fillRect(0,0,stage.w,stage.h); - if (health<10) { - ctx.fillStyle='rgba(255,255,0,'+(Math.sin(dangera))+')'; - ctx.strokeStyle='rgba(255,255,0,'+(Math.sin(dangera))+')'; - - ctx.lineWidth = 10; - ctx.beginPath(); - ctx.lineJoin = 'round'; - ctx.moveTo(stage.w/2,stage.h/4); - ctx.lineTo(stage.w/2+stage.h/7,stage.h/2); - ctx.lineTo(stage.w/2-stage.h/7,stage.h/2); - ctx.closePath(); - ctx.stroke(); - - ctx.font = "bold 130px arial"; - ctx.textAlign = "center"; - ctx.textBaseline = "middle"; - ctx.fillText("!",stage.w/2,stage.h/2.5); - - ctx.font = "bold 50px arial"; - ctx.fillText("LOW HEALTH",stage.w/2,stage.h*0.6); - } - } else { - dangera = 0; - } - - healthprog += (health-healthprog)/5; - ctx.fillStyle='#00ffff'; - ctx.font = "30px arial"; - ctx.textAlign = "left"; - ctx.textBaseline = "middle"; - ctx.fillText("Health: ",20,40); - - ctx.fillText("Score: "+score,stage.w-200,40); - // ctx.fillText("Step: "+(Date.now()-steptime),20,120); - if (health>30) { - ctx.fillStyle='rgba(0,255,255,0.8)'; - } else { - ctx.fillStyle='rgba(255,0,0,0.8)'; - } - ctx.lineWidth = 2; - ctx.fillRect(130,25,healthprog*3,30); - ctx.strokeStyle = "#00ffff"; - ctx.strokeRect(130,25,300,30); - - if (health<0) { - gameover = true; - } - - } else { - - - ctx.fillStyle='rgba(0,255,255,0.3)'; - ctx.fillRect((stage.w-220)/2,stage.h*0.65-25,againprog,50); - - ctx.fillStyle='#00ffff'; - ctx.font = "bold 130px arial"; - ctx.textAlign = "center"; - ctx.textBaseline = "middle"; - ctx.fillText("GAME OVER",stage.w/2,stage.h/3); - ctx.font = "bold 50px arial"; - ctx.fillText("SCORE: "+score,stage.w/2,stage.h/2); - - ctx.font = "bold 30px arial"; - - ctx.fillText("PLAY AGAIN",stage.w/2,stage.h*0.65); - ctx.strokeRect((stage.w-220)/2,stage.h*0.65-25,220,50); - - againprog += (0-againprog)/50; - - } - - ctx.strokeStyle = "#00ffff"; - ctx.fillStyle = "#00ffff"; - ctx.lineWidth = 2; - if (fireact) { - firetm++; - if(firetm>5) { - - cannons.push(new Cannon(pointer.x+(stage.w-pointer.x)/2.5,pointer.y+(stage.h-pointer.y)/2.5,pointer.x,pointer.y)); - cannons.push(new Cannon(pointer.x-(pointer.x)/2.5,pointer.y+(stage.h-pointer.y)/2.5,pointer.x,pointer.y)); - - - firetm=0; - } - - arm.x=Math.floor(Math.random()*50)-25+stage.w; - arm.y=Math.floor(Math.random()*50)-25+stage.h; - arm2.x=Math.floor(Math.random()*30)-15; - arm2.y=Math.floor(Math.random()*30)-15+stage.h; - } else { - arm.x=stage.w; - arm.y=stage.h; - arm2.x=0; - arm2.y=stage.h; - } - - - - - - - for (var i = 0; i < cannons.length; i++) { - - var can = cannons[i]; - - can.x += (can.tx-can.x)/5; - can.y += (can.ty-can.y)/5; - can.r += (0-can.r)/5; - - ctx.beginPath(); - ctx.arc(can.x,can.y, can.r, 0, 2*Math.PI); - ctx.fill(); - - - if (can.r<2&&!gameover) { - for (var a = 0; a < enemies.length; a++) { - var en = enemies[a]; - var dx = can.x-en.x; - var dy = can.y-en.y; - var dis = dx*dx+dy*dy; - if (dis(stage.w-220)/2&&can.y>stage.h*0.65-25&&can.x<(stage.w-220)/2+220&&can.y220) { - newGame(); - gameover = false; - } - } - } - if (Math.abs(can.tx-can.x)<1) { - - - - - cannons.splice(i,1); - } - - - - } - ctx.beginPath(); - ctx.moveTo(pointer.x-20,pointer.y); - ctx.lineTo(pointer.x+20,pointer.y); - ctx.stroke(); - - ctx.beginPath(); - ctx.moveTo(pointer.x,pointer.y-20); - ctx.lineTo(pointer.x,pointer.y+20); - ctx.stroke(); - - ctx.beginPath(); - ctx.arc(pointer.x,pointer.y, 8, 0, 2*Math.PI); - ctx.stroke(); - - ctx.beginPath(); - ctx.moveTo(pointer.x+(arm.x-pointer.x)/3,pointer.y+(arm.y-pointer.y)/3+10); - ctx.lineTo(pointer.x+(arm.x-pointer.x)/2.5,pointer.y+(arm.y-pointer.y)/2.5+10); - ctx.lineTo(pointer.x+(arm.x-pointer.x)/2,pointer.y+(arm.y-pointer.y)/2+10); - ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.5,pointer.y+(arm.y-pointer.y)/1.5+50); - ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.2,pointer.y+(arm.y-pointer.y)/1.2+80); - ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.1,pointer.y+(arm.y-pointer.y)/1.1+100); - ctx.stroke(); - ctx.beginPath(); - ctx.moveTo(pointer.x+(arm.x-pointer.x)/3-10,pointer.y+(arm.y-pointer.y)/3); - ctx.lineTo(pointer.x+(arm.x-pointer.x)/2.5-10,pointer.y+(arm.y-pointer.y)/2.5); - ctx.lineTo(pointer.x+(arm.x-pointer.x)/2-10,pointer.y+(arm.y-pointer.y)/2); - ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.5-50,pointer.y+(arm.y-pointer.y)/1.5); - ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.2-80,pointer.y+(arm.y-pointer.y)/1.2); - ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.1-100,pointer.y+(arm.y-pointer.y)/1.1); - ctx.stroke(); - - ctx.beginPath(); - ctx.moveTo(pointer.x+(arm.x-pointer.x)/3,pointer.y+(arm.y-pointer.y)/3-10); - ctx.lineTo(pointer.x+(arm.x-pointer.x)/2.5,pointer.y+(arm.y-pointer.y)/2.5-10); - ctx.lineTo(pointer.x+(arm.x-pointer.x)/2,pointer.y+(arm.y-pointer.y)/2-10); - ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.5,pointer.y+(arm.y-pointer.y)/1.5-50); - ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.2,pointer.y+(arm.y-pointer.y)/1.2-80); - ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.1,pointer.y+(arm.y-pointer.y)/1.1-100); - ctx.stroke(); - - - - ctx.beginPath(); - ctx.moveTo(arm2.x+pointer.x-(pointer.x)/3,pointer.y+(arm2.y-pointer.y)/3+10); - ctx.lineTo(arm2.x+pointer.x-(pointer.x)/2.5,pointer.y+(arm2.y-pointer.y)/2.5+10); - ctx.lineTo(arm2.x+pointer.x-(pointer.x)/2,pointer.y+(arm2.y-pointer.y)/2+10); - ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.5,pointer.y+(arm2.y-pointer.y)/1.5+50); - ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.2,pointer.y+(arm2.y-pointer.y)/1.2+80); - ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.1,pointer.y+(arm2.y-pointer.y)/1.1+100); - ctx.stroke(); - - ctx.beginPath(); - ctx.moveTo(arm2.x+pointer.x-(pointer.x)/3-10,pointer.y+(arm2.y-pointer.y)/3); - ctx.lineTo(arm2.x+pointer.x-(pointer.x)/2.5-10,pointer.y+(arm2.y-pointer.y)/2.5); - ctx.lineTo(arm2.x+pointer.x-(pointer.x)/2-10,pointer.y+(arm2.y-pointer.y)/2); - ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.5-50,pointer.y+(arm2.y-pointer.y)/1.5); - ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.2-80,pointer.y+(arm2.y-pointer.y)/1.2); - ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.1-100,pointer.y+(arm2.y-pointer.y)/1.1); - ctx.stroke(); - - ctx.beginPath(); - ctx.moveTo(arm2.x+pointer.x-(pointer.x)/3,pointer.y+(arm2.y-pointer.y)/3-10); - ctx.lineTo(arm2.x+pointer.x-(pointer.x)/2.5,pointer.y+(arm2.y-pointer.y)/2.5-10); - ctx.lineTo(arm2.x+pointer.x-(pointer.x)/2,pointer.y+(arm2.y-pointer.y)/2-10); - ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.5,pointer.y+(arm2.y-pointer.y)/1.5-50); - ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.2,pointer.y+(arm2.y-pointer.y)/1.2-80); - ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.1,pointer.y+(arm2.y-pointer.y)/1.1-100); - ctx.stroke(); - - - - - ctx.beginPath(); - ctx.arc(pointer.x+(arm.x-pointer.x)/3,pointer.y+(arm.y-pointer.y)/3, 10, 0, 2*Math.PI); - ctx.arc(pointer.x+(arm.x-pointer.x)/2.5,pointer.y+(arm.y-pointer.y)/2.5, 10, 0, 2*Math.PI); - ctx.arc(pointer.x+(arm.x-pointer.x)/2,pointer.y+(arm.y-pointer.y)/2, 10, 0, 2*Math.PI); - ctx.arc(pointer.x+(arm.x-pointer.x)/1.5,pointer.y+(arm.y-pointer.y)/1.5, 50, 0, 2*Math.PI); - ctx.arc(pointer.x+(arm.x-pointer.x)/1.2,pointer.y+(arm.y-pointer.y)/1.2, 80, 0, 2*Math.PI); - ctx.arc(pointer.x+(arm.x-pointer.x)/1.1,pointer.y+(arm.y-pointer.y)/1.1, 100, 0, 2*Math.PI); - ctx.stroke(); - - - ctx.beginPath(); - ctx.arc(arm2.x+pointer.x-(pointer.x/3),pointer.y+(arm2.y-pointer.y)/3, 10, 0, 2*Math.PI); - ctx.arc(arm2.x+pointer.x-(pointer.x/2.5),pointer.y+(arm2.y-pointer.y)/2.5, 10, 0, 2*Math.PI); - ctx.arc(arm2.x+pointer.x-(pointer.x)/2,pointer.y+(arm2.y-pointer.y)/2, 10, 0, 2*Math.PI); - ctx.arc(arm2.x+pointer.x-(pointer.x)/1.5,pointer.y+(arm2.y-pointer.y)/1.5, 50, 0, 2*Math.PI); - ctx.arc(arm2.x+pointer.x-(pointer.x)/1.2,pointer.y+(arm2.y-pointer.y)/1.2, 80, 0, 2*Math.PI); - ctx.arc(arm2.x+pointer.x-(pointer.x)/1.1,pointer.y+(arm2.y-pointer.y)/1.1, 100, 0, 2*Math.PI); - ctx.stroke(); - - - ctx.fillStyle='#004444'; - ctx.font = "14px arial"; - ctx.textAlign = "center"; - ctx.textBaseline = "middle"; - ctx.fillText("Coronavirus Shooting Game",stage.w/2,stage.h-20); -} - - - -// ------------------------------------------------------------------------------- events -// ------------------------------------------------------------------------------- events -// ------------------------------------------------------------------------------- events -// ------------------------------------------------------------------------------- events - -function toggleFullScreen() { - var doc = window.document; - var docEl = doc.documentElement; - - var requestFullScreen = docEl.requestFullscreen || docEl.mozRequestFullScreen || docEl.webkitRequestFullScreen || docEl.msRequestFullscreen; - var cancelFullScreen = doc.exitFullscreen || doc.mozCancelFullScreen || doc.webkitExitFullscreen || doc.msExitFullscreen; - - if(!doc.fullscreenElement && !doc.mozFullScreenElement && !doc.webkitFullscreenElement && !doc.msFullscreenElement) { - requestFullScreen.call(docEl); - - } - else { - cancelFullScreen.call(doc); - - } -} - - -var ox = 0; -var oy = 0; -function mousestart(e) { - mxpos = (e.pageX-loffset)*scale; - mypos = (e.pageY-toffset)*scale; - pointer.x = mxpos; - pointer.y = mypos; - - fireact = true; - - - -} -function mousemove(e) { - mxpos = (e.pageX-loffset)*scale; - mypos = (e.pageY-toffset)*scale; - pointer.x = mxpos; - pointer.y = mypos; - - // ball.vY += (mxpos-ox)/15*line.d; - - ox = mxpos; -} - -function mouseend(e) { - fireact = false; - -} - -var moveX = 0; -var moveY = 0; -var moveZ = 0; - - -function keydowned(e) { - // if (e.keyCode==65) { - // moveX = 10; - // } else if (e.keyCode==68) { - // moveX = -10; - // } - // if (e.keyCode==83) { - // moveY = -10; - // } else if (e.keyCode==87) { - // moveY = 10; - // } - - // if (e.keyCode==69) { - // moveZ = 10; - // } else if (e.keyCode==81) { - // moveZ = -10; - // } - // console.log(e.keyCode); -} - - - -function keyuped(e) { - // if (e.keyCode==65) { - // moveX = 0; - // } else if (e.keyCode==68) { - // moveX = 0; - // } - // if (e.keyCode==87) { - // moveY = 0; - // } else if (e.keyCode==83) { - // moveY = 0; - // } - // if (e.keyCode==81) { - // moveZ = 0; - // } else if (e.keyCode==69) { - // moveZ = 0; - // } - // console.log("u"+e.keyCode); -} - - - -window.addEventListener('mousedown', function(e) { - mousestart(e); -}, false); -window.addEventListener('mousemove', function(e) { - mousemove(e); -}, false); -window.addEventListener('mouseup', function(e) { - mouseend(e); -}, false); -window.addEventListener('touchstart', function(e) { - e.preventDefault(); - mousestart(e.touches[0]); -}, false); -window.addEventListener('touchmove', function(e) { - e.preventDefault(); - mousemove(e.touches[0]); -}, false); -window.addEventListener('touchend', function(e) { - e.preventDefault(); - mouseend(e.touches[0]); -}, false); - - -window.addEventListener('keydown', function(e) { - keydowned(e); -}, false); -window.addEventListener('keyup', function(e) { - keyuped(e); -}, false); - -// ------------------------------------------------------------------------ stager -// ------------------------------------------------------------------------ stager -// ------------------------------------------------------------------------ stager -// ------------------------------------------------------------------------ stager -function _pexresize() { - var cw = window.innerWidth; - var ch = window.innerHeight; - if (cw<=ch*stage.w/stage.h) { - portrait = true; - scale = stage.w/cw; - loffset = 0; - toffset = Math.floor(ch-(cw*stage.h/stage.w))/2; - _pexcanvas.style.width = cw + "px"; - _pexcanvas.style.height = Math.floor(cw*stage.h/stage.w) + "px"; - } else { - scale = stage.h/ch; - portrait = false; - loffset = Math.floor(cw-(ch*stage.w/stage.h))/2; - toffset = 0; - _pexcanvas.style.height = ch + "px"; - _pexcanvas.style.width = Math.floor(ch*stage.w/stage.h) + "px"; - } - _pexcanvas.style.marginLeft = loffset +"px"; - _pexcanvas.style.marginTop = toffset +"px"; -} - - -window.requestAnimFrame = (function(){ - return window.requestAnimationFrame || - window.webkitRequestAnimationFrame || - window.mozRequestAnimationFrame || - window.oRequestAnimationFrame || - window.msRequestAnimationFrame || - function( callback ){ - window.setTimeout(callback, 1000 / 60); - };})(); - - - - var fps = 60; - - - var nfcount = 0; - -function animated() { - requestAnimFrame(animated); - enginestep(); - - nfcount++; - ctx.fillStyle='#00ffff'; - ctx.font = "12px arial"; - ctx.textAlign = "left"; - ctx.fillText("FPS: "+Math.floor(fps),10,stage.h-20); -} - -_pexresize(); -animated(); - - -function countfps() { - fps = nfcount; - nfcount = 0; -} +"use strict" + var stage = { + w:1280, + h:720 + } + + var _pexcanvas = document.getElementById("canvas"); + _pexcanvas.width = stage.w; + _pexcanvas.height = stage.h; + var ctx = _pexcanvas.getContext("2d"); + + + + + var pointer = { + x:stage.w/2, + y:stage.h/4 + } + + var scale = 1; + var portrait = true; + var loffset = 0; + var toffset = 0; + var mxpos = 0; + var mypos = 0; + + +// ------------------------------------------------------------------------------- Gamy + +var againprog = 0; + +var healthprog = 0; + + +function newGame() { + score = 0; + health = 100; + enemies=[]; + enemies.push(new Enemy()); + enemies.push(new Enemy()); + enemies.push(new Enemy()); + againprog = 0; +} + + + +function drawHeart(x,y,w) { + ctx.beginPath(); + ctx.arc(x-w/4, y, w/4, 0.75*Math.PI,0); + ctx.arc(x+w/4, y, w/4, 1*Math.PI, 2.25*Math.PI); + ctx.lineTo(x,y+w/1.5); + ctx.closePath(); + ctx.fill(); +} + + +var Cannon = function(x,y,tx,ty) { + this.x = x; + this.y = y; + this.tx = tx; + this.ty = ty; + this.r = 10; +} + +var cannons = []; + +var gameover = false; + +cannons.push(new Cannon(stage.w,stage.h,stage.w/2,stage.h/2)); + +var firetm = 0; +var fireact = true; + +var health = 100; +var score = 0; + + +var arm = {x:stage.w,y:stage.h}; +var arm2 = {x:0,y:stage.h}; +var danger = false; +var dangera = 0; + + + +var Enemy = function() { + this.x = stage.w/2; + this.y = stage.h/2; + this.r = 10; + this.tx = Math.floor(Math.random()*stage.w); + this.ty = Math.floor(Math.random()*stage.h); + this.des = false; + this.eyeX = 0.4; + this.eyeY = 0.25; + this.eyeR = 0.25; + this.sp = 50; + this.spl = 1.4; + this.op=1; + this.danger = false; + this.nuked = false; +} + +var enemies = []; +// for (var i = 0; i < 10; i++) { +// enemies[i] = new Enemy(); +// } + enemies.push(new Enemy()); + enemies.push(new Enemy()); + enemies.push(new Enemy()); + +var entm = 0; +var ga =0; + +var steptime = 0; + + +var Star = function() { + this.a = Math.random()*Math.PI*2; + this.v = 3+Math.random()*5; + this.x = stage.w/2; + this.y = stage.h/2; + this.r = 0.2; +} + +var Power = function() { + this.type = Math.floor(Math.random()*2)+1; + this.a = Math.random()*Math.PI*2; + this.v = 3+Math.random()*5; + this.x = stage.w/2; + this.y = stage.h/2; + this.r = 0.2; + this.dis = false; + this.op = 1; +} + + +var powers = []; +var powertm = 0; +var powermax = Math.random()*800+300; +// powermax = 10; + +var stars = []; + +for (var i =0;i<200;i++) { + stars[i] = new Star(); + var st = stars[i]; + var move = Math.random()*400; + + st.x += Math.sin(st.a)*move; + st.y += Math.cos(st.a)*move; + + +} + +// powers.push(new Power()); + + + +function enginestep() { + steptime = Date.now(); + ctx.clearRect(0,0,stage.w,stage.h); + + ctx.fillStyle = "#ffffff"; + + + for (var i = 0; i < stars.length; i++) { + var st = stars[i]; + + st.x += Math.sin(st.a)*st.v; + st.y += Math.cos(st.a)*st.v; + st.r += st.v/200; + + ctx.beginPath(); + ctx.arc(st.x,st.y, st.r, 2*Math.PI, 0); + ctx.fill(); + + if (st.x>stage.w||st.x<0||st.y<0||st.y>stage.h) { + stars[i] = new Star(); + } + } + if (!gameover) { + danger = false; + + + powertm++; + if (powertm>powermax) { + powers.push(new Power()); + powertm = 0; + powermax = Math.random()*1200+600; + // powermax = 10; + } + + + + + for (var i = 0; i < powers.length; i++) { + var st = powers[i]; + + if (!st.des) { + st.x += Math.sin(st.a)*st.v/1.5; + st.y += Math.cos(st.a)*st.v/1.5; + st.r += st.v/15; + } else { + st.r *=1.1; + if (st.type==1) { + st.op += (0-st.op)/10; + } else { + st.op += (0-st.op)/20; + + } + st.x += (stage.w/2-st.x)/10; + st.y += (stage.h/2-st.y)/10; + + } + + + if (st.type ==1) { + ctx.fillStyle = "rgba(255,0,0,"+st.op+")"; + + drawHeart(st.x,st.y-st.r/4, st.r*2); + + } else { + ctx.fillStyle = "rgba(255,255,0,"+st.op+")"; + ctx.strokeStyle = "rgba(255,255,0,"+st.op+")"; + ctx.lineWidth = st.r/10; + ctx.beginPath(); + ctx.arc(st.x,st.y, st.r, 2*Math.PI, 0); + ctx.stroke(); + + ctx.beginPath(); + ctx.arc(st.x,st.y, st.r*0.15, 2*Math.PI, 0); + ctx.fill(); + + + ctx.beginPath(); + ctx.arc(st.x,st.y, st.r*0.85, 1.67*Math.PI, 2*Math.PI); + ctx.arc(st.x,st.y, st.r*0.25, 2*Math.PI, 1.67*Math.PI,true); + + ctx.closePath(); + ctx.fill(); + + + + ctx.beginPath(); + ctx.arc(st.x,st.y, st.r*0.85, 3*Math.PI, 3.33*Math.PI); + ctx.arc(st.x,st.y, st.r*0.25, 3.33*Math.PI,3*Math.PI, true); + ctx.closePath(); + ctx.fill(); + + ctx.beginPath(); + ctx.arc(st.x,st.y, st.r*0.85, 2.33*Math.PI, 2.67*Math.PI); + ctx.arc(st.x,st.y, st.r*0.25, 2.67*Math.PI,2.33*Math.PI, true); + ctx.lineTo(st.x,st.y); + ctx.closePath(); + ctx.fill(); + + } + if (st.x>stage.w||st.x<0||st.y<0||st.y>stage.h||st.r>stage.w/2) { + powers.splice(i,1); + if (st.type == 2&&st.r>stage.w/2) { + for (var e = 0; e < enemies.length; e++) { + enemies[e].des = true; + enemies[e].nuked = true; + + } + } + i--; + } + + + } + + entm++; + if (enemies.length<10&&entm>300) { + entm=0; + enemies.push(new Enemy()); + + } + + ctx.lineWidth = 2; + for (var i = 0; i < enemies.length; i++) { + var en = enemies[i]; + if (!en.danger) { + ctx.strokeStyle = "rgba(0,255,255,"+en.op*2+")"; + } else { + health -= 0.01; + ctx.strokeStyle = "rgba(255,0,0,"+en.op*2+")"; + danger = true; + } + + + + + if (!en.des) { + + if (en.danger) { + var randx = Math.floor(Math.random()*4)-2; + var randy = Math.floor(Math.random()*4)-2; + + en.x = en.tx+randx; + en.y = en.ty+randy; + } else { + en.x += (en.tx-en.x)/100; + en.y += (en.ty-en.y)/100; + var randx = 0; + var randy = 0; + } + + en.r += (50-en.r)/100; + if (Math.abs(50-en.r)<2&&!en.danger) { + en.tx=en.x; + en.ty=en.y; + en.danger=true; + } + ctx.beginPath(); + ctx.arc(en.x-en.r*en.eyeX,en.y-en.r*en.eyeY, en.r*en.eyeR, 0, 2*Math.PI); + ctx.stroke(); + ctx.beginPath(); + ctx.arc(en.x+en.r*en.eyeX,en.y-en.r*en.eyeY, en.r*en.eyeR, 0, 2*Math.PI); + ctx.stroke(); + + ctx.beginPath(); + ctx.arc(en.x,en.y+en.r/4, en.r/3, 2*Math.PI, Math.PI); + ctx.stroke(); + + ctx.beginPath(); + ctx.arc(en.x,en.y, en.r, 0, 2*Math.PI); + ctx.stroke(); + } else { + + en.eyeR += (0.5-en.eyeR)/5; + en.op += (0-en.op)/5; + // en.sp += (5-en.sp)/20; + en.r += (100-en.r)/20; + en.spl += (2.5-en.spl)/5; + ctx.beginPath(); + ctx.arc(en.x-en.r*en.eyeX,en.y-en.r*en.eyeY, en.r*en.eyeR, 0, 2*Math.PI); + ctx.stroke(); + ctx.beginPath(); + ctx.arc(en.x+en.r*en.eyeX,en.y-en.r*en.eyeY, en.r*en.eyeR, 0, 2*Math.PI); + ctx.stroke(); + ctx.beginPath(); + ctx.arc(en.x,en.y+en.r/2, en.r*en.eyeR, Math.PI,2*Math.PI); + ctx.stroke(); + + ctx.beginPath(); + ctx.arc(en.x,en.y, en.r, 0, 2*Math.PI); + ctx.stroke(); + } + + //spikes + for (var s = 0; s < 12; s++) { + var a = (Math.PI*2/12)*s+ga; + ctx.beginPath(); + ctx.moveTo(en.x+Math.sin(a)*en.r,en.y+Math.cos(a)*en.r); + ctx.lineTo(en.x+Math.sin(a)*en.r*1.2,en.y+Math.cos(a)*en.r*1.2); + ctx.lineTo(en.x+Math.sin(a+Math.PI/en.sp)*en.r*en.spl,en.y+Math.cos(a+Math.PI/en.sp)*en.r*en.spl); + ctx.lineTo(en.x+Math.sin(a-Math.PI/en.sp)*en.r*en.spl,en.y+Math.cos(a-Math.PI/en.sp)*en.r*en.spl); + ctx.lineTo(en.x+Math.sin(a)*en.r*1.2,en.y+Math.cos(a)*en.r*1.2); + ctx.stroke(); + // ctx.fill(); + } + + if (Math.abs(0.5-en.eyeR)<0.01) { + var rand = Math.floor(Math.random()*2); + if (enemies[i].nuked&&rand==1) { + enemies.splice(i,1); + + } else { + enemies[i] = new Enemy(); + + } + } + } + + + + + + + + if (danger) { + dangera += 0.05+(100-health)/1000; + if (dangera>=Math.PI) { + dangera=0; + } + ctx.fillStyle='rgba(255,0,0,'+(1-Math.sin(dangera))/4+')'; + ctx.fillRect(0,0,stage.w,stage.h); + if (health<10) { + ctx.fillStyle='rgba(255,255,0,'+(Math.sin(dangera))+')'; + ctx.strokeStyle='rgba(255,255,0,'+(Math.sin(dangera))+')'; + + ctx.lineWidth = 10; + ctx.beginPath(); + ctx.lineJoin = 'round'; + ctx.moveTo(stage.w/2,stage.h/4); + ctx.lineTo(stage.w/2+stage.h/7,stage.h/2); + ctx.lineTo(stage.w/2-stage.h/7,stage.h/2); + ctx.closePath(); + ctx.stroke(); + + ctx.font = "bold 130px arial"; + ctx.textAlign = "center"; + ctx.textBaseline = "middle"; + ctx.fillText("!",stage.w/2,stage.h/2.5); + + ctx.font = "bold 50px arial"; + ctx.fillText("LOW HEALTH",stage.w/2,stage.h*0.6); + } + } else { + dangera = 0; + } + + healthprog += (health-healthprog)/5; + ctx.fillStyle='#00ffff'; + ctx.font = "30px arial"; + ctx.textAlign = "left"; + ctx.textBaseline = "middle"; + ctx.fillText("Health: ",20,40); + + ctx.fillText("Score: "+score,stage.w-200,40); + // ctx.fillText("Step: "+(Date.now()-steptime),20,120); + if (health>30) { + ctx.fillStyle='rgba(0,255,255,0.8)'; + } else { + ctx.fillStyle='rgba(255,0,0,0.8)'; + } + ctx.lineWidth = 2; + ctx.fillRect(130,25,healthprog*3,30); + ctx.strokeStyle = "#00ffff"; + ctx.strokeRect(130,25,300,30); + + if (health<0) { + gameover = true; + } + + } else { + + + ctx.fillStyle='rgba(0,255,255,0.3)'; + ctx.fillRect((stage.w-220)/2,stage.h*0.65-25,againprog,50); + + ctx.fillStyle='#00ffff'; + ctx.font = "bold 130px arial"; + ctx.textAlign = "center"; + ctx.textBaseline = "middle"; + ctx.fillText("GAME OVER",stage.w/2,stage.h/3); + ctx.font = "bold 50px arial"; + ctx.fillText("SCORE: "+score,stage.w/2,stage.h/2); + + ctx.font = "bold 30px arial"; + + ctx.fillText("PLAY AGAIN",stage.w/2,stage.h*0.65); + ctx.strokeRect((stage.w-220)/2,stage.h*0.65-25,220,50); + + againprog += (0-againprog)/50; + + } + + ctx.strokeStyle = "#00ffff"; + ctx.fillStyle = "#00ffff"; + ctx.lineWidth = 2; + if (fireact) { + firetm++; + if(firetm>5) { + + cannons.push(new Cannon(pointer.x+(stage.w-pointer.x)/2.5,pointer.y+(stage.h-pointer.y)/2.5,pointer.x,pointer.y)); + cannons.push(new Cannon(pointer.x-(pointer.x)/2.5,pointer.y+(stage.h-pointer.y)/2.5,pointer.x,pointer.y)); + + + firetm=0; + } + + arm.x=Math.floor(Math.random()*50)-25+stage.w; + arm.y=Math.floor(Math.random()*50)-25+stage.h; + arm2.x=Math.floor(Math.random()*30)-15; + arm2.y=Math.floor(Math.random()*30)-15+stage.h; + } else { + arm.x=stage.w; + arm.y=stage.h; + arm2.x=0; + arm2.y=stage.h; + } + + + + + + + for (var i = 0; i < cannons.length; i++) { + + var can = cannons[i]; + + can.x += (can.tx-can.x)/5; + can.y += (can.ty-can.y)/5; + can.r += (0-can.r)/5; + + ctx.beginPath(); + ctx.arc(can.x,can.y, can.r, 0, 2*Math.PI); + ctx.fill(); + + + if (can.r<2&&!gameover) { + for (var a = 0; a < enemies.length; a++) { + var en = enemies[a]; + var dx = can.x-en.x; + var dy = can.y-en.y; + var dis = dx*dx+dy*dy; + if (dis(stage.w-220)/2&&can.y>stage.h*0.65-25&&can.x<(stage.w-220)/2+220&&can.y220) { + newGame(); + gameover = false; + } + } + } + if (Math.abs(can.tx-can.x)<1) { + + + + + cannons.splice(i,1); + } + + + + } + ctx.beginPath(); + ctx.moveTo(pointer.x-20,pointer.y); + ctx.lineTo(pointer.x+20,pointer.y); + ctx.stroke(); + + ctx.beginPath(); + ctx.moveTo(pointer.x,pointer.y-20); + ctx.lineTo(pointer.x,pointer.y+20); + ctx.stroke(); + + ctx.beginPath(); + ctx.arc(pointer.x,pointer.y, 8, 0, 2*Math.PI); + ctx.stroke(); + + ctx.beginPath(); + ctx.moveTo(pointer.x+(arm.x-pointer.x)/3,pointer.y+(arm.y-pointer.y)/3+10); + ctx.lineTo(pointer.x+(arm.x-pointer.x)/2.5,pointer.y+(arm.y-pointer.y)/2.5+10); + ctx.lineTo(pointer.x+(arm.x-pointer.x)/2,pointer.y+(arm.y-pointer.y)/2+10); + ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.5,pointer.y+(arm.y-pointer.y)/1.5+50); + ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.2,pointer.y+(arm.y-pointer.y)/1.2+80); + ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.1,pointer.y+(arm.y-pointer.y)/1.1+100); + ctx.stroke(); + ctx.beginPath(); + ctx.moveTo(pointer.x+(arm.x-pointer.x)/3-10,pointer.y+(arm.y-pointer.y)/3); + ctx.lineTo(pointer.x+(arm.x-pointer.x)/2.5-10,pointer.y+(arm.y-pointer.y)/2.5); + ctx.lineTo(pointer.x+(arm.x-pointer.x)/2-10,pointer.y+(arm.y-pointer.y)/2); + ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.5-50,pointer.y+(arm.y-pointer.y)/1.5); + ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.2-80,pointer.y+(arm.y-pointer.y)/1.2); + ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.1-100,pointer.y+(arm.y-pointer.y)/1.1); + ctx.stroke(); + + ctx.beginPath(); + ctx.moveTo(pointer.x+(arm.x-pointer.x)/3,pointer.y+(arm.y-pointer.y)/3-10); + ctx.lineTo(pointer.x+(arm.x-pointer.x)/2.5,pointer.y+(arm.y-pointer.y)/2.5-10); + ctx.lineTo(pointer.x+(arm.x-pointer.x)/2,pointer.y+(arm.y-pointer.y)/2-10); + ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.5,pointer.y+(arm.y-pointer.y)/1.5-50); + ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.2,pointer.y+(arm.y-pointer.y)/1.2-80); + ctx.lineTo(pointer.x+(arm.x-pointer.x)/1.1,pointer.y+(arm.y-pointer.y)/1.1-100); + ctx.stroke(); + + + + ctx.beginPath(); + ctx.moveTo(arm2.x+pointer.x-(pointer.x)/3,pointer.y+(arm2.y-pointer.y)/3+10); + ctx.lineTo(arm2.x+pointer.x-(pointer.x)/2.5,pointer.y+(arm2.y-pointer.y)/2.5+10); + ctx.lineTo(arm2.x+pointer.x-(pointer.x)/2,pointer.y+(arm2.y-pointer.y)/2+10); + ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.5,pointer.y+(arm2.y-pointer.y)/1.5+50); + ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.2,pointer.y+(arm2.y-pointer.y)/1.2+80); + ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.1,pointer.y+(arm2.y-pointer.y)/1.1+100); + ctx.stroke(); + + ctx.beginPath(); + ctx.moveTo(arm2.x+pointer.x-(pointer.x)/3-10,pointer.y+(arm2.y-pointer.y)/3); + ctx.lineTo(arm2.x+pointer.x-(pointer.x)/2.5-10,pointer.y+(arm2.y-pointer.y)/2.5); + ctx.lineTo(arm2.x+pointer.x-(pointer.x)/2-10,pointer.y+(arm2.y-pointer.y)/2); + ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.5-50,pointer.y+(arm2.y-pointer.y)/1.5); + ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.2-80,pointer.y+(arm2.y-pointer.y)/1.2); + ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.1-100,pointer.y+(arm2.y-pointer.y)/1.1); + ctx.stroke(); + + ctx.beginPath(); + ctx.moveTo(arm2.x+pointer.x-(pointer.x)/3,pointer.y+(arm2.y-pointer.y)/3-10); + ctx.lineTo(arm2.x+pointer.x-(pointer.x)/2.5,pointer.y+(arm2.y-pointer.y)/2.5-10); + ctx.lineTo(arm2.x+pointer.x-(pointer.x)/2,pointer.y+(arm2.y-pointer.y)/2-10); + ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.5,pointer.y+(arm2.y-pointer.y)/1.5-50); + ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.2,pointer.y+(arm2.y-pointer.y)/1.2-80); + ctx.lineTo(arm2.x+pointer.x-(pointer.x)/1.1,pointer.y+(arm2.y-pointer.y)/1.1-100); + ctx.stroke(); + + + + + ctx.beginPath(); + ctx.arc(pointer.x+(arm.x-pointer.x)/3,pointer.y+(arm.y-pointer.y)/3, 10, 0, 2*Math.PI); + ctx.arc(pointer.x+(arm.x-pointer.x)/2.5,pointer.y+(arm.y-pointer.y)/2.5, 10, 0, 2*Math.PI); + ctx.arc(pointer.x+(arm.x-pointer.x)/2,pointer.y+(arm.y-pointer.y)/2, 10, 0, 2*Math.PI); + ctx.arc(pointer.x+(arm.x-pointer.x)/1.5,pointer.y+(arm.y-pointer.y)/1.5, 50, 0, 2*Math.PI); + ctx.arc(pointer.x+(arm.x-pointer.x)/1.2,pointer.y+(arm.y-pointer.y)/1.2, 80, 0, 2*Math.PI); + ctx.arc(pointer.x+(arm.x-pointer.x)/1.1,pointer.y+(arm.y-pointer.y)/1.1, 100, 0, 2*Math.PI); + ctx.stroke(); + + + ctx.beginPath(); + ctx.arc(arm2.x+pointer.x-(pointer.x/3),pointer.y+(arm2.y-pointer.y)/3, 10, 0, 2*Math.PI); + ctx.arc(arm2.x+pointer.x-(pointer.x/2.5),pointer.y+(arm2.y-pointer.y)/2.5, 10, 0, 2*Math.PI); + ctx.arc(arm2.x+pointer.x-(pointer.x)/2,pointer.y+(arm2.y-pointer.y)/2, 10, 0, 2*Math.PI); + ctx.arc(arm2.x+pointer.x-(pointer.x)/1.5,pointer.y+(arm2.y-pointer.y)/1.5, 50, 0, 2*Math.PI); + ctx.arc(arm2.x+pointer.x-(pointer.x)/1.2,pointer.y+(arm2.y-pointer.y)/1.2, 80, 0, 2*Math.PI); + ctx.arc(arm2.x+pointer.x-(pointer.x)/1.1,pointer.y+(arm2.y-pointer.y)/1.1, 100, 0, 2*Math.PI); + ctx.stroke(); + + + ctx.fillStyle='#004444'; + ctx.font = "14px arial"; + ctx.textAlign = "center"; + ctx.textBaseline = "middle"; + ctx.fillText("Coronavirus Shooting Game",stage.w/2,stage.h-20); +} + + + +// ------------------------------------------------------------------------------- events +// ------------------------------------------------------------------------------- events +// ------------------------------------------------------------------------------- events +// ------------------------------------------------------------------------------- events + +function toggleFullScreen() { + var doc = window.document; + var docEl = doc.documentElement; + + var requestFullScreen = docEl.requestFullscreen || docEl.mozRequestFullScreen || docEl.webkitRequestFullScreen || docEl.msRequestFullscreen; + var cancelFullScreen = doc.exitFullscreen || doc.mozCancelFullScreen || doc.webkitExitFullscreen || doc.msExitFullscreen; + + if(!doc.fullscreenElement && !doc.mozFullScreenElement && !doc.webkitFullscreenElement && !doc.msFullscreenElement) { + requestFullScreen.call(docEl); + + } + else { + cancelFullScreen.call(doc); + + } +} + + +var ox = 0; +var oy = 0; +function mousestart(e) { + mxpos = (e.pageX-loffset)*scale; + mypos = (e.pageY-toffset)*scale; + pointer.x = mxpos; + pointer.y = mypos; + + fireact = true; + + + +} +function mousemove(e) { + mxpos = (e.pageX-loffset)*scale; + mypos = (e.pageY-toffset)*scale; + pointer.x = mxpos; + pointer.y = mypos; + + // ball.vY += (mxpos-ox)/15*line.d; + + ox = mxpos; +} + +function mouseend(e) { + fireact = false; + +} + +var moveX = 0; +var moveY = 0; +var moveZ = 0; + + +function keydowned(e) { + // if (e.keyCode==65) { + // moveX = 10; + // } else if (e.keyCode==68) { + // moveX = -10; + // } + // if (e.keyCode==83) { + // moveY = -10; + // } else if (e.keyCode==87) { + // moveY = 10; + // } + + // if (e.keyCode==69) { + // moveZ = 10; + // } else if (e.keyCode==81) { + // moveZ = -10; + // } + // console.log(e.keyCode); +} + + + +function keyuped(e) { + // if (e.keyCode==65) { + // moveX = 0; + // } else if (e.keyCode==68) { + // moveX = 0; + // } + // if (e.keyCode==87) { + // moveY = 0; + // } else if (e.keyCode==83) { + // moveY = 0; + // } + // if (e.keyCode==81) { + // moveZ = 0; + // } else if (e.keyCode==69) { + // moveZ = 0; + // } + // console.log("u"+e.keyCode); +} + + + +window.addEventListener('mousedown', function(e) { + mousestart(e); +}, false); +window.addEventListener('mousemove', function(e) { + mousemove(e); +}, false); +window.addEventListener('mouseup', function(e) { + mouseend(e); +}, false); +window.addEventListener('touchstart', function(e) { + e.preventDefault(); + mousestart(e.touches[0]); +}, false); +window.addEventListener('touchmove', function(e) { + e.preventDefault(); + mousemove(e.touches[0]); +}, false); +window.addEventListener('touchend', function(e) { + e.preventDefault(); + mouseend(e.touches[0]); +}, false); + + +window.addEventListener('keydown', function(e) { + keydowned(e); +}, false); +window.addEventListener('keyup', function(e) { + keyuped(e); +}, false); + +// ------------------------------------------------------------------------ stager +// ------------------------------------------------------------------------ stager +// ------------------------------------------------------------------------ stager +// ------------------------------------------------------------------------ stager +function _pexresize() { + var cw = window.innerWidth; + var ch = window.innerHeight; + if (cw<=ch*stage.w/stage.h) { + portrait = true; + scale = stage.w/cw; + loffset = 0; + toffset = Math.floor(ch-(cw*stage.h/stage.w))/2; + _pexcanvas.style.width = cw + "px"; + _pexcanvas.style.height = Math.floor(cw*stage.h/stage.w) + "px"; + } else { + scale = stage.h/ch; + portrait = false; + loffset = Math.floor(cw-(ch*stage.w/stage.h))/2; + toffset = 0; + _pexcanvas.style.height = ch + "px"; + _pexcanvas.style.width = Math.floor(ch*stage.w/stage.h) + "px"; + } + _pexcanvas.style.marginLeft = loffset +"px"; + _pexcanvas.style.marginTop = toffset +"px"; +} + + +window.requestAnimFrame = (function(){ + return window.requestAnimationFrame || + window.webkitRequestAnimationFrame || + window.mozRequestAnimationFrame || + window.oRequestAnimationFrame || + window.msRequestAnimationFrame || + function( callback ){ + window.setTimeout(callback, 1000 / 60); + };})(); + + + + var fps = 60; + + + var nfcount = 0; + +function animated() { + requestAnimFrame(animated); + enginestep(); + + nfcount++; + ctx.fillStyle='#00ffff'; + ctx.font = "12px arial"; + ctx.textAlign = "left"; + ctx.fillText("FPS: "+Math.floor(fps),10,stage.h-20); +} + +_pexresize(); +animated(); + + +function countfps() { + fps = nfcount; + nfcount = 0; +} setInterval(countfps,1000); \ No newline at end of file diff --git a/Games/Corona_Shooter/styles.css b/Games/Corona_Shooter/styles.css index b8f3c1317c..28603d000e 100644 --- a/Games/Corona_Shooter/styles.css +++ b/Games/Corona_Shooter/styles.css @@ -1,11 +1,11 @@ -body { - background:#111; - margin:0; - padding:0; - overflow: hidden; -} -canvas { - background:#000; - display:block; - cursor: none; +body { + background:#111; + margin:0; + padding:0; + overflow: hidden; +} +canvas { + background:#000; + display:block; + cursor: none; } \ No newline at end of file diff --git a/Games/Cosmic_Coin_Collector/index.html b/Games/Cosmic_Coin_Collector/index.html index b7104c0076..f4902f01b7 100644 --- a/Games/Cosmic_Coin_Collector/index.html +++ b/Games/Cosmic_Coin_Collector/index.html @@ -1,81 +1,81 @@ - - - -SPACECRAFT - - - - - - - - - - -
    -
  • SPACE
  • -
  • PLUTO
  • -
  • NEPTUNE
  • -
  • URANUS
  • -
  • SATURN
  • -
  • JUPITER
  • -
  • MARS
  • -
  • MOON
  • -
- -
-
-
-

-

-

- - - - - - - - -
Distance travelled
Tokens collected
Big tokens collected
Asteroids destroyed
Places visited
Mission completed
TOTAL
-
- -
-
-

- -
-
- - -
-
-

SPACECRAFT

-
-

- JUMP - UP arrow key
- SHRINK - DOWN arrow key
- MOVE - LEFT / RIGHT arrow keys
- BOOST - SPACE key -

-

- JUMP - Swipe UP
- SHRINK - Swipe DOWN
- MOVE - Swipe LEFT / RIGHT
- BOOST - TAP -

-

- BIG TOKENS help you collect small ones.
- Use SHRINK to go through SPACE JUNK.
- Use BOOST to destroy ASTEROIDS. -

-
- -
-
- - + + + +SPACECRAFT + + + + + + + + + + +
    +
  • SPACE
  • +
  • PLUTO
  • +
  • NEPTUNE
  • +
  • URANUS
  • +
  • SATURN
  • +
  • JUPITER
  • +
  • MARS
  • +
  • MOON
  • +
+ +
+
+
+

+

+

+ + + + + + + + +
Distance travelled
Tokens collected
Big tokens collected
Asteroids destroyed
Places visited
Mission completed
TOTAL
+
+ +
+
+

+ +
+
+ + +
+
+

SPACECRAFT

+
+

+ JUMP - UP arrow key
+ SHRINK - DOWN arrow key
+ MOVE - LEFT / RIGHT arrow keys
+ BOOST - SPACE key +

+

+ JUMP - Swipe UP
+ SHRINK - Swipe DOWN
+ MOVE - Swipe LEFT / RIGHT
+ BOOST - TAP +

+

+ BIG TOKENS help you collect small ones.
+ Use SHRINK to go through SPACE JUNK.
+ Use BOOST to destroy ASTEROIDS. +

+
+ +
+
+ + \ No newline at end of file diff --git a/Games/Crossword_Puzzle/README.md b/Games/Crossword_Puzzle/README.md index 99ffae2380..59bfcfbc65 100644 --- a/Games/Crossword_Puzzle/README.md +++ b/Games/Crossword_Puzzle/README.md @@ -1,10 +1,10 @@ -# Crossword Puzzle Game -A Simple Crossword Puzzle Game built using HTML, CSS and Javascript. - -# Features -- All the features of a basic Crossword -- User can edit the clues and answers to their own liking. -- User can also shuffle the clues using Generate Button. This also changes the layout of the Board. - -# Preview -![Crossword_Puzzle](https://github.com/5h0ov/GameZone/assets/83227649/2046800c-e7f8-465f-b96f-65fa2ae57a72) +# Crossword Puzzle Game +A Simple Crossword Puzzle Game built using HTML, CSS and Javascript. + +# Features +- All the features of a basic Crossword +- User can edit the clues and answers to their own liking. +- User can also shuffle the clues using Generate Button. This also changes the layout of the Board. + +# Preview +![Crossword_Puzzle](https://github.com/5h0ov/GameZone/assets/83227649/2046800c-e7f8-465f-b96f-65fa2ae57a72) diff --git a/Games/Crossword_Puzzle/index.html b/Games/Crossword_Puzzle/index.html index 3f6d82fa76..d9b09910a5 100644 --- a/Games/Crossword_Puzzle/index.html +++ b/Games/Crossword_Puzzle/index.html @@ -1,165 +1,165 @@ - - - - - - Crossword Puzzle - - - - -
-
- -
- -
Create
-
Play
- -
Reset
-
Check Answers
-
- -
- -
Shuffle
- - -
-
-
ACROSS
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
-
- -
-
-
DOWN
-
-
-
- - - + + + + + + Crossword Puzzle + + + + +
+
+ +
+ +
Create
+
Play
+ +
Reset
+
Check Answers
+
+ +
+ +
Shuffle
+ + +
+
+
ACROSS
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+
+ +
+
+
DOWN
+
+
+
+ + + \ No newline at end of file diff --git a/Games/Crossword_Puzzle/script.js b/Games/Crossword_Puzzle/script.js index 4cbc2166ab..f4f01296dc 100644 --- a/Games/Crossword_Puzzle/script.js +++ b/Games/Crossword_Puzzle/script.js @@ -1,603 +1,603 @@ - - -//---------------------------------// -// GLOBAL VARIABLES // -//---------------------------------// - -var board, wordArr, wordBank, wordsActive, boardMap, - focusChar, focusIndex = null, mode, - wordElementsAcross, wordElementsDown; - -var answers = []; - -var Bounds = { - top:0, right:0, bottom:0, left:0, - - Update:function(x,y){ - this.top = Math.min(y,this.top); - this.right = Math.max(x,this.right); - this.bottom = Math.max(y,this.bottom); - this.left = Math.min(x,this.left); - }, - - Clean:function(){ - this.top = 999; - this.right = 0; - this.bottom = 0; - this.left = 999; - } -}; - - -//---------------------------------// -// MAIN // -//---------------------------------// - -function Play(){ - var charEleArr = document.getElementsByClassName('char'); - mode = 0; - - for(var i = 0; i < charEleArr.length; i++){ - RegisterChar(charEleArr[i],boardMap[i]); - charEleArr[i].placeholder = ""; - } - - ToggleInputBoxes(false); - - FormatClues(); -} - -function FormatClues(){ - var cluesAcross = document.getElementById("cluesAcross"), - cluesDown = document.getElementById("cluesDown"), - directionAcross = document.getElementById("directionAcross"), - directionDown = document.getElementById("directionDown"); - - cluesAcross.innerHTML = ""; - cluesDown.innerHTML = ""; - - cluesAcross.appendChild(directionAcross); - cluesDown.appendChild(directionDown); - - for(i = 0; i < wordElementsAcross.length; i++){ - var lineEle = cluesAcross.appendChild(wordElementsAcross[i].ele), - numEle = lineEle.getElementsByClassName("lineNum")[0]; - console.log(numEle); - numEle.innerHTML = wordElementsAcross[i].num; - RemoveClass(numEle,'disabled'); - } - - for(i = 0; i < wordElementsDown.length; i++){ - var lineEle = cluesDown.appendChild(wordElementsDown[i].ele), - numEle = lineEle.getElementsByClassName("lineNum")[0]; - numEle.innerHTML = wordElementsDown[i].num; - RemoveClass(numEle,'disabled'); - } -} - - -function Create(){ - wordElementsAcross = []; - wordElementsDown = []; - - console.log(); - - if (mode === 0){ - mode = 1; - document.getElementById("crossword").innerHTML = BoardToHtml(" "); - ToggleInputBoxes(true); - } -} - - -function Generate(){ - wordElementsAcross = []; - wordElementsDown = []; - - mode = 1; - GetWordsFromInput(); - - for(var i = 0, isSuccess=false; i < 19 && !isSuccess; i++){ - CleanVars(); - isSuccess = PopulateBoard(); - } - - document.getElementById("crossword").innerHTML = - (isSuccess) ? BoardToHtml(" ") : "Failed to find crossword." ; - - FormatClues(); - ToggleInputBoxes(true); -} - - -function ToggleInputBoxes(active){ - var w=document.getElementsByClassName('word'), - d=document.getElementsByClassName('clue'), - b=document.getElementById('btnGen'), - dir=document.getElementsByClassName('clueDirection'), - char=document.getElementsByClassName('char'); - - if (active){ - RemoveClass(b,'disabled'); - - for(var i=0;i 1){wordArr.push({ele:w[i],value:val});} - } -} - - -function CleanVars(){ - Bounds.Clean(); - wordBank = []; - wordsActive = []; - board = []; - - for(var i = 0; i < 50; i++){ - board.push([]); - for(var j = 0; j < 50; j++){ - board[i].push({value:null,char:[]}); - } - } -} - - -function PopulateBoard(){ - PrepareBoard(); - //console.log("board: "+ board.length); - for(var i=0,isOk=true,len=wordBank.length; i board.length){ - isMatch = false; - break; - } - - crossVal.push(board[xIndex][curCross.y].value); - crossVal.push(board[xIndex][curCross.y + 1].value); - crossVal.push(board[xIndex][curCross.y - 1].value); - } - else{ - var yIndex = curCross.y + m; - - if (yIndex < 0 || yIndex > board[curCross.x].length){ - isMatch = false; - break; - } - - crossVal.push(board[curCross.x][yIndex].value); - crossVal.push(board[curCross.x + 1][yIndex].value); - crossVal.push(board[curCross.x - 1][yIndex].value); - } - - if(m > -1 && m < lenM-1){ - if (crossVal[0] !== curWord.char[m]){ - if (crossVal[0] !== null){ - isMatch = false; - break; - } - else if (crossVal[1] !== null){ - isMatch = false; - break; - } - else if (crossVal[2] !== null){ - isMatch = false; - break; - } - } - } - else if (crossVal[0] !== null){ - isMatch = false; - break; - } - } - } - - if (isMatch === true){ - curWord.successfulMatches.push(curCross); - } - } - } - } - } - - curMatchDiff = curWord.totalMatches - curWord.effectiveMatches; - - if (curMatchDiff0){ - curMatchDiff = minMatchDiff; - curIndex = i; - } - else if (curMatchDiff <= 0){ - return false; - } - - } - } - - if (curIndex === -1){ - return false; - } - - var spliced = wordBank.splice(curIndex, 1); - wordsActive.push(spliced[0]); - - var pushIndex = wordsActive.length - 1, - rand = Math.random(), - matchArr = wordsActive[pushIndex].successfulMatches, - matchIndex = Math.floor(rand * matchArr.length), - matchData = matchArr[matchIndex]; - - wordsActive[pushIndex].x = matchData.x; - wordsActive[pushIndex].y = matchData.y; - wordsActive[pushIndex].dir = matchData.dir; - - - var prevObj = null; - - for(i = 0, len = wordsActive[pushIndex].char.length; i < len; i++){ - var cObj, - cIndex, - xInd = matchData.x, - yInd = matchData.y; - - if (matchData.dir === 0){ xInd = matchData.x + i; } - else{ yInd = matchData.y + i; } - - cObj = {wordIndex:pushIndex,prev:prevObj, - value:wordsActive[pushIndex].char[i],next:null}; - - cIndex = board[xInd][yInd].char.length; - - board[xInd][yInd].char.push(cObj); - board[xInd][yInd].value = wordsActive[pushIndex].char[i]; - - Bounds.Update(xInd,yInd); - - if (prevObj !== null){ - prevObj.next = board[xInd][yInd].char[cIndex]; - } - - prevObj = board[xInd][yInd].char[cIndex]; - } - - prevObj = null; - return true; - -} - - -function BoardToHtml(blank){ - boardMap = []; - - for(var i=Bounds.top-1, str=""; i 1){ - if (focusIndex >= boardChar.char.length-1){ - focusIndex = 0; - } - else{ - focusIndex++; - } - } -} - - -function BoardCharFocus(boardChar){ - if (mode === 1){ - return; - } - - if (!(boardChar.char[focusIndex] && boardChar.char[focusIndex].prev === focusChar)){ - focusIndex = Math.max(0,boardChar.char.indexOf(focusChar)); - } - - this.onkeydown = function(e){ - if (mode === 1){ - return; - } - var key = e.keyCode || e.which; - - if (key === 8){ - if (boardChar.char[focusIndex].prev != null){ - focusChar = boardChar.char[focusIndex].prev; - - var isEnd = (boardChar.char[focusIndex].next === null)?true:false; - - document.getElementsByClassName('char') - [boardChar.char[focusIndex].prev.index].focus(); - - if (isEnd){ - document.getElementsByClassName('char') - [boardChar.char[focusIndex].index].value = ""; - document.getElementsByClassName('char') - [boardChar.char[focusIndex].next.index].value = ""; - } - } - } - } - - this.onkeypress = function(){ - if (mode === 1){ - return; - } - if (boardChar.char[focusIndex].next !== null){ - focusChar = boardChar.char[focusIndex].next; - document.getElementsByClassName('char') - [boardChar.char[focusIndex].next.index].focus(); - } - } -} - - -//---------------------------------// -// OBJECT DEFINITIONS // -//---------------------------------// - -function WordObj(wordData){ - this.element = wordData.ele; - this.string = wordData.value; - this.char = wordData.value.split(""); - this.totalMatches = 0; - this.effectiveMatches = 0; - this.successfulMatches = []; -} - - -//---------------------------------// -// EVENTS // -//---------------------------------// - -function RegisterEvents(){ - document.getElementById("btnPlay").addEventListener( - 'click',Play,false); - - document.getElementById("btnCreate").addEventListener( - 'click',Create,false); - - document.getElementById("btnGen").addEventListener( - 'click',Generate,false); -} -RegisterEvents(); - -function RegisterChar(ele, boardChar) { - ele.onclick = CreateCallback("click", boardChar); - ele.onfocus = CreateCallback("focus", boardChar); -} - -function CreateCallback(type, boardChar) { - switch(type){ - case "click": - return function() { - BoardCharClick(boardChar); - }; - case "focus": - return function() { - BoardCharFocus(boardChar); - }; - } -} - - -//---------------------------------// -// HELPER FUNCTIONS // -//---------------------------------// - -function EleStr(e,c,h){ - h = (h)?h:""; - for(var i=0,s="<"+e+" "; i"+h+""); -} - -function ArrayToString(a,s){ - if(a===null||a.length<1)return ""; - if(s===null)s=","; - for(var r=a[0],i=1;i 1){wordArr.push({ele:w[i],value:val});} + } +} + + +function CleanVars(){ + Bounds.Clean(); + wordBank = []; + wordsActive = []; + board = []; + + for(var i = 0; i < 50; i++){ + board.push([]); + for(var j = 0; j < 50; j++){ + board[i].push({value:null,char:[]}); + } + } +} + + +function PopulateBoard(){ + PrepareBoard(); + //console.log("board: "+ board.length); + for(var i=0,isOk=true,len=wordBank.length; i board.length){ + isMatch = false; + break; + } + + crossVal.push(board[xIndex][curCross.y].value); + crossVal.push(board[xIndex][curCross.y + 1].value); + crossVal.push(board[xIndex][curCross.y - 1].value); + } + else{ + var yIndex = curCross.y + m; + + if (yIndex < 0 || yIndex > board[curCross.x].length){ + isMatch = false; + break; + } + + crossVal.push(board[curCross.x][yIndex].value); + crossVal.push(board[curCross.x + 1][yIndex].value); + crossVal.push(board[curCross.x - 1][yIndex].value); + } + + if(m > -1 && m < lenM-1){ + if (crossVal[0] !== curWord.char[m]){ + if (crossVal[0] !== null){ + isMatch = false; + break; + } + else if (crossVal[1] !== null){ + isMatch = false; + break; + } + else if (crossVal[2] !== null){ + isMatch = false; + break; + } + } + } + else if (crossVal[0] !== null){ + isMatch = false; + break; + } + } + } + + if (isMatch === true){ + curWord.successfulMatches.push(curCross); + } + } + } + } + } + + curMatchDiff = curWord.totalMatches - curWord.effectiveMatches; + + if (curMatchDiff0){ + curMatchDiff = minMatchDiff; + curIndex = i; + } + else if (curMatchDiff <= 0){ + return false; + } + + } + } + + if (curIndex === -1){ + return false; + } + + var spliced = wordBank.splice(curIndex, 1); + wordsActive.push(spliced[0]); + + var pushIndex = wordsActive.length - 1, + rand = Math.random(), + matchArr = wordsActive[pushIndex].successfulMatches, + matchIndex = Math.floor(rand * matchArr.length), + matchData = matchArr[matchIndex]; + + wordsActive[pushIndex].x = matchData.x; + wordsActive[pushIndex].y = matchData.y; + wordsActive[pushIndex].dir = matchData.dir; + + + var prevObj = null; + + for(i = 0, len = wordsActive[pushIndex].char.length; i < len; i++){ + var cObj, + cIndex, + xInd = matchData.x, + yInd = matchData.y; + + if (matchData.dir === 0){ xInd = matchData.x + i; } + else{ yInd = matchData.y + i; } + + cObj = {wordIndex:pushIndex,prev:prevObj, + value:wordsActive[pushIndex].char[i],next:null}; + + cIndex = board[xInd][yInd].char.length; + + board[xInd][yInd].char.push(cObj); + board[xInd][yInd].value = wordsActive[pushIndex].char[i]; + + Bounds.Update(xInd,yInd); + + if (prevObj !== null){ + prevObj.next = board[xInd][yInd].char[cIndex]; + } + + prevObj = board[xInd][yInd].char[cIndex]; + } + + prevObj = null; + return true; + +} + + +function BoardToHtml(blank){ + boardMap = []; + + for(var i=Bounds.top-1, str=""; i 1){ + if (focusIndex >= boardChar.char.length-1){ + focusIndex = 0; + } + else{ + focusIndex++; + } + } +} + + +function BoardCharFocus(boardChar){ + if (mode === 1){ + return; + } + + if (!(boardChar.char[focusIndex] && boardChar.char[focusIndex].prev === focusChar)){ + focusIndex = Math.max(0,boardChar.char.indexOf(focusChar)); + } + + this.onkeydown = function(e){ + if (mode === 1){ + return; + } + var key = e.keyCode || e.which; + + if (key === 8){ + if (boardChar.char[focusIndex].prev != null){ + focusChar = boardChar.char[focusIndex].prev; + + var isEnd = (boardChar.char[focusIndex].next === null)?true:false; + + document.getElementsByClassName('char') + [boardChar.char[focusIndex].prev.index].focus(); + + if (isEnd){ + document.getElementsByClassName('char') + [boardChar.char[focusIndex].index].value = ""; + document.getElementsByClassName('char') + [boardChar.char[focusIndex].next.index].value = ""; + } + } + } + } + + this.onkeypress = function(){ + if (mode === 1){ + return; + } + if (boardChar.char[focusIndex].next !== null){ + focusChar = boardChar.char[focusIndex].next; + document.getElementsByClassName('char') + [boardChar.char[focusIndex].next.index].focus(); + } + } +} + + +//---------------------------------// +// OBJECT DEFINITIONS // +//---------------------------------// + +function WordObj(wordData){ + this.element = wordData.ele; + this.string = wordData.value; + this.char = wordData.value.split(""); + this.totalMatches = 0; + this.effectiveMatches = 0; + this.successfulMatches = []; +} + + +//---------------------------------// +// EVENTS // +//---------------------------------// + +function RegisterEvents(){ + document.getElementById("btnPlay").addEventListener( + 'click',Play,false); + + document.getElementById("btnCreate").addEventListener( + 'click',Create,false); + + document.getElementById("btnGen").addEventListener( + 'click',Generate,false); +} +RegisterEvents(); + +function RegisterChar(ele, boardChar) { + ele.onclick = CreateCallback("click", boardChar); + ele.onfocus = CreateCallback("focus", boardChar); +} + +function CreateCallback(type, boardChar) { + switch(type){ + case "click": + return function() { + BoardCharClick(boardChar); + }; + case "focus": + return function() { + BoardCharFocus(boardChar); + }; + } +} + + +//---------------------------------// +// HELPER FUNCTIONS // +//---------------------------------// + +function EleStr(e,c,h){ + h = (h)?h:""; + for(var i=0,s="<"+e+" "; i"+h+""); +} + +function ArrayToString(a,s){ + if(a===null||a.length<1)return ""; + if(s===null)s=","; + for(var r=a[0],i=1;i - - - - - CODE WITH HOSSEIN - - - - - - - - - - - -
-

Dice Roller

- -
-
-
-
-
-
-
-
- - - -
- - - - - - - + + + + + + CODE WITH HOSSEIN + + + + + + + + + + + +
+

Dice Roller

+ +
+
+
+
+
+
+
+
+ + + +
+ + + + + + + diff --git a/Games/Dice_Roller/script.js b/Games/Dice_Roller/script.js index 477effd9a6..18f390203d 100644 --- a/Games/Dice_Roller/script.js +++ b/Games/Dice_Roller/script.js @@ -1,57 +1,57 @@ -// Selecting the dice element and the roll button from the DOM -const dice = document.querySelector('.dice'); -const rollBtn = document.querySelector('.roll'); - -// Function to generate a random dice number between 1 and 6 -const randomDice = () => { - const random = Math.floor(Math.random() * 10); - - if (random >= 1 && random <= 6) { - rollDice(random); - } else { - randomDice(); - } -} - -// Function to animate the dice roll and set the final face based on the random number -const rollDice = random => { - dice.style.animation = 'rolling 4s'; // Apply rolling animation - - setTimeout(() => { - // Set the dice face based on the random number - switch (random) { - case 1: - dice.style.transform = 'rotateX(0deg) rotateY(0deg)'; - break; - - case 6: - dice.style.transform = 'rotateX(180deg) rotateY(0deg)'; - break; - - case 2: - dice.style.transform = 'rotateX(-90deg) rotateY(0deg)'; - break; - - case 5: - dice.style.transform = 'rotateX(90deg) rotateY(0deg)'; - break; - - case 3: - dice.style.transform = 'rotateX(0deg) rotateY(90deg)'; - break; - - case 4: - dice.style.transform = 'rotateX(0deg) rotateY(-90deg)'; - break; - - default: - break; - } - - dice.style.animation = 'none'; // Reset animation - - }, 4050); // Delay to match animation duration -} - -// Event listener to trigger the dice roll on button click -rollBtn.addEventListener('click', randomDice); +// Selecting the dice element and the roll button from the DOM +const dice = document.querySelector('.dice'); +const rollBtn = document.querySelector('.roll'); + +// Function to generate a random dice number between 1 and 6 +const randomDice = () => { + const random = Math.floor(Math.random() * 10); + + if (random >= 1 && random <= 6) { + rollDice(random); + } else { + randomDice(); + } +} + +// Function to animate the dice roll and set the final face based on the random number +const rollDice = random => { + dice.style.animation = 'rolling 4s'; // Apply rolling animation + + setTimeout(() => { + // Set the dice face based on the random number + switch (random) { + case 1: + dice.style.transform = 'rotateX(0deg) rotateY(0deg)'; + break; + + case 6: + dice.style.transform = 'rotateX(180deg) rotateY(0deg)'; + break; + + case 2: + dice.style.transform = 'rotateX(-90deg) rotateY(0deg)'; + break; + + case 5: + dice.style.transform = 'rotateX(90deg) rotateY(0deg)'; + break; + + case 3: + dice.style.transform = 'rotateX(0deg) rotateY(90deg)'; + break; + + case 4: + dice.style.transform = 'rotateX(0deg) rotateY(-90deg)'; + break; + + default: + break; + } + + dice.style.animation = 'none'; // Reset animation + + }, 4050); // Delay to match animation duration +} + +// Event listener to trigger the dice roll on button click +rollBtn.addEventListener('click', randomDice); diff --git a/Games/Dice_Roller/style.css b/Games/Dice_Roller/style.css index cfff54abdf..4218134cca 100644 --- a/Games/Dice_Roller/style.css +++ b/Games/Dice_Roller/style.css @@ -1,172 +1,172 @@ -/* - General Styles -*/ - -* { - margin: 0; - padding: 0; - border: 0; - outline: 0; - box-sizing: border-box; -} - -body { - height: 100vh; - display: flex; - align-items: center; - justify-content: center; - background: linear-gradient(to right, #f2709c, #ff9472); -} - -.container { - display: grid; - place-items: center; - width: 250px; - padding: 60px 0 40px; - border-radius: 30px; - background: #eeeeee; - box-shadow: 0 0 20px rgba(0, 0, 0, .1); - & h2{ - font-family: cursive; - font-size: 2rem; - margin-bottom: 1.4rem; - } -} - - - -/* - Dice Styles -*/ - -.dice { - position: relative; - width: 100px; - height: 100px; - transform-style: preserve-3d; - transition: 1s ease; -} - -@keyframes rolling { - 50% { - transform: rotateX(455deg) rotateY(455deg); - } -} - -.face { - position: absolute; - width: 100%; - height: 100%; - border-radius: 20px; - border: 5px solid #f6f3f0; - transform-style: preserve-3d; - background: linear-gradient(145deg, #dddbd8, #fff); -} - -.face::before { - position: absolute; - content: ''; - width: 100%; - height: 100%; - border-radius: 20px; - background: #f6f3f0; - transform: translateZ(-1px); -} - -.face::after { - position: absolute; - content: ''; - top: 50%; - left: 50%; - width: 18px; - height: 18px; - border-radius: 50%; - background: #131210; -} - -.front { - transform: translateZ(50px); -} - -.back { - transform: rotateX(180deg) translateZ(50px); -} - -.top { - transform: rotateX(90deg) translateZ(50px); -} - -.bottom { - transform: rotateX(-90deg) translateZ(50px); -} - -.right { - transform: rotateY(90deg) translateZ(50px); -} - -.left { - transform: rotateY(-90deg) translateZ(50px); -} - -.front::after { - width: 30px; - height: 30px; - background: #f63330; - margin: -15px 0 0 -15px; -} - -.back::after { - margin: -35px 0 0 -30px; - box-shadow: 40px 0, - 0 25px, - 40px 25px, - 0 50px, - 40px 50px; -} - -.top::after { - margin: -30px 0 0 -30px; - box-shadow: 40px 40px; -} - -.bottom::after { - margin: -36px 0 0 -36px; - box-shadow: 26px 26px, - 52px 52px, - 52px 0, - 0 52px; -} - -.right::after { - margin: -30px 0 0 -30px; - box-shadow: 40px 0, - 0 40px, - 40px 40px; -} - -.left::after { - margin: -35px 0 0 -35px; - box-shadow: 25px 25px, - 50px 50px; -} - -/* - Roll Button styles -*/ - -.roll { - cursor: pointer; - color: #b33951; - margin-top: 60px; - padding: 6px 12px; - border-radius: 3px; - font: 700 16px 'Montserrat'; - border: 2px solid #b33951; - transition: .6s; -} - -.roll:hover { - transform: scale(0.95); - color: #fff; - background: #b33951; +/* + General Styles +*/ + +* { + margin: 0; + padding: 0; + border: 0; + outline: 0; + box-sizing: border-box; +} + +body { + height: 100vh; + display: flex; + align-items: center; + justify-content: center; + background: linear-gradient(to right, #f2709c, #ff9472); +} + +.container { + display: grid; + place-items: center; + width: 250px; + padding: 60px 0 40px; + border-radius: 30px; + background: #eeeeee; + box-shadow: 0 0 20px rgba(0, 0, 0, .1); + & h2{ + font-family: cursive; + font-size: 2rem; + margin-bottom: 1.4rem; + } +} + + + +/* + Dice Styles +*/ + +.dice { + position: relative; + width: 100px; + height: 100px; + transform-style: preserve-3d; + transition: 1s ease; +} + +@keyframes rolling { + 50% { + transform: rotateX(455deg) rotateY(455deg); + } +} + +.face { + position: absolute; + width: 100%; + height: 100%; + border-radius: 20px; + border: 5px solid #f6f3f0; + transform-style: preserve-3d; + background: linear-gradient(145deg, #dddbd8, #fff); +} + +.face::before { + position: absolute; + content: ''; + width: 100%; + height: 100%; + border-radius: 20px; + background: #f6f3f0; + transform: translateZ(-1px); +} + +.face::after { + position: absolute; + content: ''; + top: 50%; + left: 50%; + width: 18px; + height: 18px; + border-radius: 50%; + background: #131210; +} + +.front { + transform: translateZ(50px); +} + +.back { + transform: rotateX(180deg) translateZ(50px); +} + +.top { + transform: rotateX(90deg) translateZ(50px); +} + +.bottom { + transform: rotateX(-90deg) translateZ(50px); +} + +.right { + transform: rotateY(90deg) translateZ(50px); +} + +.left { + transform: rotateY(-90deg) translateZ(50px); +} + +.front::after { + width: 30px; + height: 30px; + background: #f63330; + margin: -15px 0 0 -15px; +} + +.back::after { + margin: -35px 0 0 -30px; + box-shadow: 40px 0, + 0 25px, + 40px 25px, + 0 50px, + 40px 50px; +} + +.top::after { + margin: -30px 0 0 -30px; + box-shadow: 40px 40px; +} + +.bottom::after { + margin: -36px 0 0 -36px; + box-shadow: 26px 26px, + 52px 52px, + 52px 0, + 0 52px; +} + +.right::after { + margin: -30px 0 0 -30px; + box-shadow: 40px 0, + 0 40px, + 40px 40px; +} + +.left::after { + margin: -35px 0 0 -35px; + box-shadow: 25px 25px, + 50px 50px; +} + +/* + Roll Button styles +*/ + +.roll { + cursor: pointer; + color: #b33951; + margin-top: 60px; + padding: 6px 12px; + border-radius: 3px; + font: 700 16px 'Montserrat'; + border: 2px solid #b33951; + transition: .6s; +} + +.roll:hover { + transform: scale(0.95); + color: #fff; + background: #b33951; } \ No newline at end of file diff --git a/Games/Dice_Showdown_Game/README.md b/Games/Dice_Showdown_Game/README.md index e8e3d048aa..8129a0ed45 100644 --- a/Games/Dice_Showdown_Game/README.md +++ b/Games/Dice_Showdown_Game/README.md @@ -1,33 +1,33 @@ -# **DICE SHOWDOWN GAME ** - ---- - -
- -## **Description ๐Ÿ“ƒ** -- This Game is an exciting multiplayer game where two players compete to roll the highest number on their dice. Experience the thrill of luck and strategy as you aim to outscore your opponent in this engaging game suitable for players of all ages. - -## **functionalities ๐ŸŽฎ** -- random key generation -- Mutiplayer Gameplay -- animated keys -
- -## **How to play? ๐Ÿ•น๏ธ** -The game follows a simple set of rules: - -1. Each player rolls a dice, which generates a random number between 1 and 6. -2. The player with the higher number wins the game. -3. If both players roll the same number, the game ends in a tie. -Players can easily continue playing by refreshing the page to generate new random numbers for their respective dice. - -
- -## **Screenshots ๐Ÿ“ธ** - -
- -![image](https://github.com/Roshr2211/GameZone/assets/136987759/61e7a67c-037e-4503-85ca-f1ab7810f6ee) - - -
+# **DICE SHOWDOWN GAME ** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +- This Game is an exciting multiplayer game where two players compete to roll the highest number on their dice. Experience the thrill of luck and strategy as you aim to outscore your opponent in this engaging game suitable for players of all ages. + +## **functionalities ๐ŸŽฎ** +- random key generation +- Mutiplayer Gameplay +- animated keys +
+ +## **How to play? ๐Ÿ•น๏ธ** +The game follows a simple set of rules: + +1. Each player rolls a dice, which generates a random number between 1 and 6. +2. The player with the higher number wins the game. +3. If both players roll the same number, the game ends in a tie. +Players can easily continue playing by refreshing the page to generate new random numbers for their respective dice. + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ +![image](https://github.com/Roshr2211/GameZone/assets/136987759/61e7a67c-037e-4503-85ca-f1ab7810f6ee) + + +
diff --git a/Games/Dice_Showdown_Game/dicee.html b/Games/Dice_Showdown_Game/dicee.html index 5992896ca6..da40cedfa2 100644 --- a/Games/Dice_Showdown_Game/dicee.html +++ b/Games/Dice_Showdown_Game/dicee.html @@ -1,40 +1,40 @@ - - - - - Dicee - - - - - -
- -
-
-

Refresh Me

- -
-

Player 1

- -
- -
-

Player 2

- -
- -
- - - -
-
- - - - -
- www ๐ŸŽฒ Dice ๐ŸŽฒ com -
- + + + + + Dicee + + + + + +
+ +
+
+

Refresh Me

+ +
+

Player 1

+ +
+ +
+

Player 2

+ +
+ +
+ + + +
+
+ + + + +
+ www ๐ŸŽฒ Dice ๐ŸŽฒ com +
+ diff --git a/Games/Dice_Showdown_Game/index.js b/Games/Dice_Showdown_Game/index.js index b44dabaf0f..66e7b8cca0 100644 --- a/Games/Dice_Showdown_Game/index.js +++ b/Games/Dice_Showdown_Game/index.js @@ -1,65 +1,65 @@ -// Function to generate a random number for a dice -function rollDice() { - return Math.floor(Math.random() * 6) + 1; -} - -// Function to update the image source for a dice -function updateDiceImage(diceNumber, diceValue) { - var diceImage = "images/dice" + diceValue + ".png"; - document.querySelectorAll("img")[diceNumber - 1].setAttribute("src", diceImage); -} - -// Initial roll for both dice -var n1 = rollDice(); -var n2 = rollDice(); -updateDiceImage(1, n1); -updateDiceImage(2, n2); - -// Flag to check if both dice should be refreshed together -var refreshBoth = false; - -// Function to update the result based on the values of the two dice -function updateResult(n1, n2) { - - if (n1 === n2) { - document.querySelector("h1").innerHTML = "Tie"; - } else if (n1 > n2) { - document.querySelector("h1").innerHTML = "🚩 Player 1 Wins"; - } else { - document.querySelector("h1").innerHTML = "🚩 Player 2 Wins"; - } - refreshBoth = false; // Reset the flag after updating the result - - - // document.querySelector("h1").innerHTML = "🚩 Play" -} - -// Event listener for the first dice refresh button -document.getElementById("refreshDice1").addEventListener("click", function() { - if (!refreshBoth) { - n1 = rollDice(); - updateDiceImage(1, n1); - updateResult(n1, n2); - } - -}); - -// Event listener for the second dice refresh button -document.getElementById("refreshDice2").addEventListener("click", function() { - if (!refreshBoth) { - n2 = rollDice(); - updateDiceImage(2, n2); - updateResult(n1, n2);} - -}); - -// Event listener for the refresh both dice button -document.getElementById("refreshBoth").addEventListener("click", function() { - document.querySelector("h1").innerHTML = "Play"; - n1 = rollDice(); - n2 = rollDice(); - updateDiceImage(1, n1); - updateDiceImage(2, n2); - // refreshBoth = true; - // updateResult(n1, n2); -}); +// Function to generate a random number for a dice +function rollDice() { + return Math.floor(Math.random() * 6) + 1; +} + +// Function to update the image source for a dice +function updateDiceImage(diceNumber, diceValue) { + var diceImage = "images/dice" + diceValue + ".png"; + document.querySelectorAll("img")[diceNumber - 1].setAttribute("src", diceImage); +} + +// Initial roll for both dice +var n1 = rollDice(); +var n2 = rollDice(); +updateDiceImage(1, n1); +updateDiceImage(2, n2); + +// Flag to check if both dice should be refreshed together +var refreshBoth = false; + +// Function to update the result based on the values of the two dice +function updateResult(n1, n2) { + + if (n1 === n2) { + document.querySelector("h1").innerHTML = "Tie"; + } else if (n1 > n2) { + document.querySelector("h1").innerHTML = "🚩 Player 1 Wins"; + } else { + document.querySelector("h1").innerHTML = "🚩 Player 2 Wins"; + } + refreshBoth = false; // Reset the flag after updating the result + + + // document.querySelector("h1").innerHTML = "🚩 Play" +} + +// Event listener for the first dice refresh button +document.getElementById("refreshDice1").addEventListener("click", function() { + if (!refreshBoth) { + n1 = rollDice(); + updateDiceImage(1, n1); + updateResult(n1, n2); + } + +}); + +// Event listener for the second dice refresh button +document.getElementById("refreshDice2").addEventListener("click", function() { + if (!refreshBoth) { + n2 = rollDice(); + updateDiceImage(2, n2); + updateResult(n1, n2);} + +}); + +// Event listener for the refresh both dice button +document.getElementById("refreshBoth").addEventListener("click", function() { + document.querySelector("h1").innerHTML = "Play"; + n1 = rollDice(); + n2 = rollDice(); + updateDiceImage(1, n1); + updateDiceImage(2, n2); + // refreshBoth = true; + // updateResult(n1, n2); +}); diff --git a/Games/Dice_Showdown_Game/styles.css b/Games/Dice_Showdown_Game/styles.css index 4ebcc3f032..2f740555c8 100644 --- a/Games/Dice_Showdown_Game/styles.css +++ b/Games/Dice_Showdown_Game/styles.css @@ -1,72 +1,72 @@ -.container { - width: 70%; - margin: auto; - text-align: center; - } - - .dice { - text-align: center; - display: inline-block; - } - - body { - background-color: #393E46; - overflow: hidden; - } - - h1 { - margin: 30px; - font-family: 'Lobster', cursive; - text-shadow: 5px 0 #232931; - font-size: 7rem; - color: #4ECCA3; - } - - p { - font-size: 2rem; - color: #4ECCA3; - font-family: 'Indie Flower', cursive; - } - - img { - width: 80%; - } - - footer { - margin-top: 5%; - color: #EEEEEE; - text-align: center; - font-family: 'Indie Flower', cursive; - - } - - .btn { - background: #4ECCA3; - background-image: -webkit-linear-gradient(top, #4ECCA3, #4ECCA3); - background-image: -moz-linear-gradient(top, #4ECCA3, #4ECCA3); - background-image: -ms-linear-gradient(top, #4ECCA3, #4ECCA3); - background-image: -o-linear-gradient(top, #4ECCA3, #4ECCA3); - background-image: linear-gradient(to bottom, #4ECCA3, #4ECCA3); - -webkit-border-radius: 28px; - -moz-border-radius: 28px; - border-radius: 28px; - border: #232931; - font-family: cursive; - color: #ffffff; - font-size: 27px; - padding: 10px 20px; - text-decoration: none; - margin: 5% 10px; /* Adjusted for spacing */ - } - - .btn:hover { - background: #00956F; - color: #CAFBE7; - background-image: -webkit-linear-gradient(top, #24B1A2, #24B1A2); - background-image: -moz-linear-gradient(top, #24B1A2, #24B1A2); - background-image: -ms-linear-gradient(top, #24B1A2, #24B1A2); - background-image: -o-linear-gradient(top, #24B1A2, #24B1A2); - background-image: linear-gradient(to bottom, #24B1A2, #24B1A2); - text-decoration: none; - } - +.container { + width: 70%; + margin: auto; + text-align: center; + } + + .dice { + text-align: center; + display: inline-block; + } + + body { + background-color: #393E46; + overflow: hidden; + } + + h1 { + margin: 30px; + font-family: 'Lobster', cursive; + text-shadow: 5px 0 #232931; + font-size: 7rem; + color: #4ECCA3; + } + + p { + font-size: 2rem; + color: #4ECCA3; + font-family: 'Indie Flower', cursive; + } + + img { + width: 80%; + } + + footer { + margin-top: 5%; + color: #EEEEEE; + text-align: center; + font-family: 'Indie Flower', cursive; + + } + + .btn { + background: #4ECCA3; + background-image: -webkit-linear-gradient(top, #4ECCA3, #4ECCA3); + background-image: -moz-linear-gradient(top, #4ECCA3, #4ECCA3); + background-image: -ms-linear-gradient(top, #4ECCA3, #4ECCA3); + background-image: -o-linear-gradient(top, #4ECCA3, #4ECCA3); + background-image: linear-gradient(to bottom, #4ECCA3, #4ECCA3); + -webkit-border-radius: 28px; + -moz-border-radius: 28px; + border-radius: 28px; + border: #232931; + font-family: cursive; + color: #ffffff; + font-size: 27px; + padding: 10px 20px; + text-decoration: none; + margin: 5% 10px; /* Adjusted for spacing */ + } + + .btn:hover { + background: #00956F; + color: #CAFBE7; + background-image: -webkit-linear-gradient(top, #24B1A2, #24B1A2); + background-image: -moz-linear-gradient(top, #24B1A2, #24B1A2); + background-image: -ms-linear-gradient(top, #24B1A2, #24B1A2); + background-image: -o-linear-gradient(top, #24B1A2, #24B1A2); + background-image: linear-gradient(to bottom, #24B1A2, #24B1A2); + text-decoration: none; + } + diff --git a/Games/Dino_Runner_Game/README.md b/Games/Dino_Runner_Game/README.md index 86f8a31880..5a5366781a 100644 --- a/Games/Dino_Runner_Game/README.md +++ b/Games/Dino_Runner_Game/README.md @@ -1,47 +1,47 @@ -# **DINO_RUNNER** - ---- - -
- -## **Description ๐Ÿ“ƒ** -- This is a retro styled 2D game in which you have to tackle the enemy by jumping in air, and the muskic makes it even more funnier ; `)` -**Your Chrome Dinosaur game, but with some twists.** - - -## **functionalities ๐ŸŽฎ** -- Easy to play -- Exciting sound effects to immerse you and keep you engaged. -- Scoring system so that you can compare points with your fellow friends. -
- -## **How to play? ๐Ÿ•น๏ธ** -- Your aim is to protect your dino from Bowser(enemy), you can easily control your dino with the help of arrow keys. -- The score keeps adding up evry time you successfully dodge the enemy. -- If you die, you can reload and start playing again. - -
- -## **Screenshots ๐Ÿ“ธ** - -
- -![Game image](../../assets/images/Dino_Runner_Game.png) - -
- -## **Working video ๐Ÿ“น** - -
- -
- - - - -## **Note** +# **DINO_RUNNER** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +- This is a retro styled 2D game in which you have to tackle the enemy by jumping in air, and the muskic makes it even more funnier ; `)` +**Your Chrome Dinosaur game, but with some twists.** + + +## **functionalities ๐ŸŽฎ** +- Easy to play +- Exciting sound effects to immerse you and keep you engaged. +- Scoring system so that you can compare points with your fellow friends. +
+ +## **How to play? ๐Ÿ•น๏ธ** +- Your aim is to protect your dino from Bowser(enemy), you can easily control your dino with the help of arrow keys. +- The score keeps adding up evry time you successfully dodge the enemy. +- If you die, you can reload and start playing again. + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ +![Game image](../../assets/images/Dino_Runner_Game.png) + +
+ +## **Working video ๐Ÿ“น** + +
+ +
+ + + + +## **Note** !! The game is currently optimised to run on larger displays only, because of play area !! \ No newline at end of file diff --git a/Games/Dino_Runner_Game/dinosaur-monuments-svgrepo-com.svg b/Games/Dino_Runner_Game/dinosaur-monuments-svgrepo-com.svg index 2af22663f4..1c689a16d7 100644 --- a/Games/Dino_Runner_Game/dinosaur-monuments-svgrepo-com.svg +++ b/Games/Dino_Runner_Game/dinosaur-monuments-svgrepo-com.svg @@ -1,53 +1,53 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + \ No newline at end of file diff --git a/Games/Dino_Runner_Game/index.html b/Games/Dino_Runner_Game/index.html index 4287a1ac9d..a69e0fc3cb 100644 --- a/Games/Dino_Runner_Game/index.html +++ b/Games/Dino_Runner_Game/index.html @@ -1,24 +1,24 @@ - - - - - - Dino Runnner - - - - - - - -
-
- mute/unmute -
Welcome to Dino Runner
-
-
Your Score: 0
-
-
- + + + + + + Dino Runnner + + + + + + + +
+
+ mute/unmute +
Welcome to Dino Runner
+
+
Your Score: 0
+
+
+ \ No newline at end of file diff --git a/Games/Dino_Runner_Game/script.js b/Games/Dino_Runner_Game/script.js index e102e5d39c..90b7e1984f 100644 --- a/Games/Dino_Runner_Game/script.js +++ b/Games/Dino_Runner_Game/script.js @@ -1,140 +1,140 @@ -let score = 0; -let cross = true; -let gameRunning = true; -let gameRestartTimeout; - -const audio = new Audio("music.mp3"); -const audiogo = new Audio("gameover.mp3"); -let isAudioPlaying = false; -let mute = false; - -function toggle(img) { - if (img.src.endsWith("unmute.png")) { - img.src = "mute.png" - audio.pause() - } - else { - img.src = "unmute.png" - audio.play() - } - mute = !mute - isAudioPlaying = !isAudioPlaying - console.log(mute + " " + isAudioPlaying); -} - -audio.play() - -document.addEventListener("keydown", function (e) { - if (!gameRunning) { - return; - } - const gameAreaWidth = 1100; - - if (e.keyCode == 38) { - const dino = document.querySelector(".dino"); - dino.classList.add("animateDino"); - setTimeout(() => { - dino.classList.remove("animateDino"); - }, 700); - } - if (e.keyCode == 39) { - const dino = document.querySelector(".dino"); - const dinoX = parseInt( - window.getComputedStyle(dino, null).getPropertyValue("left") - ); - if (dinoX < gameAreaWidth - dino.offsetWidth) { // Check to ensure dino does not go out of the right screen edge - dino.style.left = dinoX + 112 + "px"; - } - } - if (e.keyCode == 37) { - const dino = document.querySelector(".dino"); - const dinoX = parseInt( - window.getComputedStyle(dino, null).getPropertyValue("left") - ); - if (dinoX > 0) { // Check to ensure dino does not go out of the left screen edge - dino.style.left = dinoX - 112 + "px"; - } - } -}); - -function restartGame() { - clearTimeout(gameRestartTimeout); - - score = 0; - cross = true; - gameRunning = true; - - const obstacle = document.querySelector(".obstacle"); - const gameOver = document.querySelector(".gameOver"); - - obstacle.classList.add("obstacleAni"); - gameOver.innerHTML = ""; - - updateScore(score); -} - -function endGame() { - gameRunning = false; - const obstacle = document.querySelector(".obstacle"); - const gameOver = document.querySelector(".gameOver"); - - gameOver.innerHTML = "Game Over - Restarting in 3 seconds"; - - obstacle.classList.remove("obstacleAni"); - if (!mute) { - audiogo.play(); - } - clearTimeout(gameRestartTimeout); - gameRestartTimeout = setTimeout(restartGame, 3000); -} - -setInterval(() => { - if (!gameRunning) { - return; - } - - const dino = document.querySelector(".dino"); - const gameOver = document.querySelector(".gameOver"); - const obstacle = document.querySelector(".obstacle"); - - const dx = parseInt( - window.getComputedStyle(dino, null).getPropertyValue("left") - ); - const dy = parseInt( - window.getComputedStyle(dino, null).getPropertyValue("top") - ); - - const ox = parseInt( - window.getComputedStyle(obstacle, null).getPropertyValue("left") - ); - const oy = parseInt( - window.getComputedStyle(obstacle, null).getPropertyValue("top") - ); - - const offsetX = Math.abs(dx - ox); - const offsetY = Math.abs(dy - oy); - - if (offsetX < 73 && offsetY < 52) { - endGame(); - } else if (offsetX < 145 && cross) { - score += 1; - updateScore(score); - cross = false; - setTimeout(() => { - cross = true; - }, 1000); - setTimeout(() => { - const aniDur = parseFloat( - window - .getComputedStyle(obstacle, null) - .getPropertyValue("animation-duration") - ); - const newDur = aniDur - 0.1; - obstacle.style.animationDuration = newDur + "s"; - }, 500); - } -}, 1); - -function updateScore(score) { - scoreCont.innerHTML = "Your Score: " + score; -} +let score = 0; +let cross = true; +let gameRunning = true; +let gameRestartTimeout; + +const audio = new Audio("music.mp3"); +const audiogo = new Audio("gameover.mp3"); +let isAudioPlaying = false; +let mute = false; + +function toggle(img) { + if (img.src.endsWith("unmute.png")) { + img.src = "mute.png" + audio.pause() + } + else { + img.src = "unmute.png" + audio.play() + } + mute = !mute + isAudioPlaying = !isAudioPlaying + console.log(mute + " " + isAudioPlaying); +} + +audio.play() + +document.addEventListener("keydown", function (e) { + if (!gameRunning) { + return; + } + const gameAreaWidth = 1100; + + if (e.keyCode == 38) { + const dino = document.querySelector(".dino"); + dino.classList.add("animateDino"); + setTimeout(() => { + dino.classList.remove("animateDino"); + }, 700); + } + if (e.keyCode == 39) { + const dino = document.querySelector(".dino"); + const dinoX = parseInt( + window.getComputedStyle(dino, null).getPropertyValue("left") + ); + if (dinoX < gameAreaWidth - dino.offsetWidth) { // Check to ensure dino does not go out of the right screen edge + dino.style.left = dinoX + 112 + "px"; + } + } + if (e.keyCode == 37) { + const dino = document.querySelector(".dino"); + const dinoX = parseInt( + window.getComputedStyle(dino, null).getPropertyValue("left") + ); + if (dinoX > 0) { // Check to ensure dino does not go out of the left screen edge + dino.style.left = dinoX - 112 + "px"; + } + } +}); + +function restartGame() { + clearTimeout(gameRestartTimeout); + + score = 0; + cross = true; + gameRunning = true; + + const obstacle = document.querySelector(".obstacle"); + const gameOver = document.querySelector(".gameOver"); + + obstacle.classList.add("obstacleAni"); + gameOver.innerHTML = ""; + + updateScore(score); +} + +function endGame() { + gameRunning = false; + const obstacle = document.querySelector(".obstacle"); + const gameOver = document.querySelector(".gameOver"); + + gameOver.innerHTML = "Game Over - Restarting in 3 seconds"; + + obstacle.classList.remove("obstacleAni"); + if (!mute) { + audiogo.play(); + } + clearTimeout(gameRestartTimeout); + gameRestartTimeout = setTimeout(restartGame, 3000); +} + +setInterval(() => { + if (!gameRunning) { + return; + } + + const dino = document.querySelector(".dino"); + const gameOver = document.querySelector(".gameOver"); + const obstacle = document.querySelector(".obstacle"); + + const dx = parseInt( + window.getComputedStyle(dino, null).getPropertyValue("left") + ); + const dy = parseInt( + window.getComputedStyle(dino, null).getPropertyValue("top") + ); + + const ox = parseInt( + window.getComputedStyle(obstacle, null).getPropertyValue("left") + ); + const oy = parseInt( + window.getComputedStyle(obstacle, null).getPropertyValue("top") + ); + + const offsetX = Math.abs(dx - ox); + const offsetY = Math.abs(dy - oy); + + if (offsetX < 73 && offsetY < 52) { + endGame(); + } else if (offsetX < 145 && cross) { + score += 1; + updateScore(score); + cross = false; + setTimeout(() => { + cross = true; + }, 1000); + setTimeout(() => { + const aniDur = parseFloat( + window + .getComputedStyle(obstacle, null) + .getPropertyValue("animation-duration") + ); + const newDur = aniDur - 0.1; + obstacle.style.animationDuration = newDur + "s"; + }, 500); + } +}, 1); + +function updateScore(score) { + scoreCont.innerHTML = "Your Score: " + score; +} diff --git a/Games/Dino_Runner_Game/style.css b/Games/Dino_Runner_Game/style.css index d725d87e0f..6a31a59dcb 100644 --- a/Games/Dino_Runner_Game/style.css +++ b/Games/Dino_Runner_Game/style.css @@ -1,91 +1,91 @@ -*{ - margin: 0; - padding:0; -} -body{ - background-color: red; - overflow: hidden; -} -.gameContainer{ - background-image: url(bg.png); - background-repeat: no-repeat; - background-size: 100vw 100vh; - width: 100%; - height: 100vh; -} - -.sound{ - padding: 2.5rem; - height: 2rem; -} - -.dino{ - background-image: url(dino.png); - background-repeat: no-repeat; - background-size: cover; - width: 233px; - height: 114px; - position: absolute; - bottom:0; - left: 52px; -} - -.obstacle{ - width: 166px; - height: 113px; - background-image: url(dragon.png); - background-size: cover; - position: absolute; - bottom: 0; - left: 44vw; -} - -.animateDino{ - animation: dino 0.6s linear; -} - -.obstacleAni{ - animation: obstacleAni 4s linear infinite; -} - -.gameOver{ - position: relative; - top:63px; - font-size: 53px; - text-align: center; - font-family: 'Ubuntu', sans-serif; -} - -#scoreCont{ - font-size: 25px; - color: #e31616; - font-weight: bold; - position: absolute; - right: 45px; - top: 31px; - border: 2px solid black; - padding: 10px; - font-family: 'Ubuntu', sans-serif; - border-radius: 10px; -} - -@keyframes dino{ - 0%{ - bottom: 0; - } - 50%{ - bottom: 422px; - } - 100%{ - bottom: 0; - } -} - -@keyframes obstacleAni{ - 0%{ - left: 100vw; - } - 100%{ - left: -10vw; - } +*{ + margin: 0; + padding:0; +} +body{ + background-color: red; + overflow: hidden; +} +.gameContainer{ + background-image: url(bg.png); + background-repeat: no-repeat; + background-size: 100vw 100vh; + width: 100%; + height: 100vh; +} + +.sound{ + padding: 2.5rem; + height: 2rem; +} + +.dino{ + background-image: url(dino.png); + background-repeat: no-repeat; + background-size: cover; + width: 233px; + height: 114px; + position: absolute; + bottom:0; + left: 52px; +} + +.obstacle{ + width: 166px; + height: 113px; + background-image: url(dragon.png); + background-size: cover; + position: absolute; + bottom: 0; + left: 44vw; +} + +.animateDino{ + animation: dino 0.6s linear; +} + +.obstacleAni{ + animation: obstacleAni 4s linear infinite; +} + +.gameOver{ + position: relative; + top:63px; + font-size: 53px; + text-align: center; + font-family: 'Ubuntu', sans-serif; +} + +#scoreCont{ + font-size: 25px; + color: #e31616; + font-weight: bold; + position: absolute; + right: 45px; + top: 31px; + border: 2px solid black; + padding: 10px; + font-family: 'Ubuntu', sans-serif; + border-radius: 10px; +} + +@keyframes dino{ + 0%{ + bottom: 0; + } + 50%{ + bottom: 422px; + } + 100%{ + bottom: 0; + } +} + +@keyframes obstacleAni{ + 0%{ + left: 100vw; + } + 100%{ + left: -10vw; + } } \ No newline at end of file diff --git a/Games/Dont_Die_To_Ghosts/index.html b/Games/Dont_Die_To_Ghosts/index.html index 71c3eec729..eebe9ba6fd 100644 --- a/Games/Dont_Die_To_Ghosts/index.html +++ b/Games/Dont_Die_To_Ghosts/index.html @@ -1,2 +1,2 @@ -Don't Die To Ghosts
Don't Die To Ghosts



LOADING

\ No newline at end of file diff --git a/Games/Doodle_Draw/README.md b/Games/Doodle_Draw/README.md index 5e610ee55c..ff3f63c43f 100644 --- a/Games/Doodle_Draw/README.md +++ b/Games/Doodle_Draw/README.md @@ -1,44 +1,44 @@ -# **Doodle Draw** - ---- - -
-Let`s Draw !! - -## **Description ๐Ÿ“ƒ**. -Doodle Draw will unleash your creativity and create pixelated artwork on a virtual canvas. With various customization options and features, you can paint, draw, and experiment to your heart's content. -Let your imagination soar as you bring your ideas to life, one pixel at a time. - - - - -## **functionalities ๐ŸŽฎ** -The game is designed using Html, CSS, and javascript. - -
- -## **How to play? ๐Ÿ•น๏ธ** -- Choose your favorite the color and background (Default for black & white), then hold the mouse inside the grid to paint -- Features - - Clear: Clear the board - - Reset: Reset all to default - - Toggle `random` & `rainbow` button the pixels color will be random - - Toggle `darken` & `lighten` slowly turns cell into black & white - - Toggle `eraser` to clear the cell color - - `Specific Area` used to fill specific area and `Full Area` used to fill full area - - Slice `grid size` will change the resolution of the screen (# of pixels). Depend on what you want - - You can customize pencil and background color by pressing `pen color` & `blackground color` - - If you want to remove grid line, just click `Remove Grid Lines` button -- -- - -
- -## **Screenshots ๐Ÿ“ธ** - -
Image Description -
-Image Description - - - +# **Doodle Draw** + +--- + +
+Let`s Draw !! + +## **Description ๐Ÿ“ƒ**. +Doodle Draw will unleash your creativity and create pixelated artwork on a virtual canvas. With various customization options and features, you can paint, draw, and experiment to your heart's content. +Let your imagination soar as you bring your ideas to life, one pixel at a time. + + + + +## **functionalities ๐ŸŽฎ** +The game is designed using Html, CSS, and javascript. + +
+ +## **How to play? ๐Ÿ•น๏ธ** +- Choose your favorite the color and background (Default for black & white), then hold the mouse inside the grid to paint +- Features + - Clear: Clear the board + - Reset: Reset all to default + - Toggle `random` & `rainbow` button the pixels color will be random + - Toggle `darken` & `lighten` slowly turns cell into black & white + - Toggle `eraser` to clear the cell color + - `Specific Area` used to fill specific area and `Full Area` used to fill full area + - Slice `grid size` will change the resolution of the screen (# of pixels). Depend on what you want + - You can customize pencil and background color by pressing `pen color` & `blackground color` + - If you want to remove grid line, just click `Remove Grid Lines` button +- +- + +
+ +## **Screenshots ๐Ÿ“ธ** + +
Image Description +
+Image Description + + + diff --git a/Games/Doodle_Draw/index.html b/Games/Doodle_Draw/index.html index 198c2976e2..039c1e2896 100644 --- a/Games/Doodle_Draw/index.html +++ b/Games/Doodle_Draw/index.html @@ -1,63 +1,63 @@ - - - - - - - Doodle draw - - - - - -
- -
-
-
- - -
-
-
-
- - - -
-
- - - -
-
- -
-
-

Grid Size: 30 x 30

- -
-
-
-
-
-
-
-
Switch Pen
- - - - - -
-
-
Fill Color
- - -
-
-
-
- - + + + + + + + Doodle draw + + + + + +
+ +
+
+
+ + +
+
+
+
+ + + +
+
+ + + +
+
+ +
+
+

Grid Size: 30 x 30

+ +
+
+
+
+
+
+
+
Switch Pen
+ + + + + +
+
+
Fill Color
+ + +
+
+
+
+ + diff --git a/Games/Doodle_Draw/script.js b/Games/Doodle_Draw/script.js index 3a25c11d07..943f895eab 100644 --- a/Games/Doodle_Draw/script.js +++ b/Games/Doodle_Draw/script.js @@ -1,373 +1,373 @@ -/* General */ -const grid = document.querySelector(".grid"); -const page = document.querySelector(".main"); - -/* Default background color, pen color, number of squares inside grid */ -grid.style.backgroundColor = "#FFFFFF"; -let squareColor = "#000000"; -function createSquare() { - const square = document.createElement("div"); - square.classList.add("square", "square-border"); - grid.appendChild(square); -} -let squaresNumber = 30; -grid.style.cssText += `grid-template-columns: repeat(${squaresNumber}, 1fr)`; -for (sq = 1; sq <= squaresNumber * squaresNumber; sq++) { - createSquare(); -} -let squares = document.querySelectorAll(".square"); - -/* Remove, Add gridlines */ -const gridLines = document.querySelector(".grid-line"); -function removeGridLines() { - squares.forEach((square) => square.classList.remove("square-border")); -} -function addGridLines() { - squares.forEach((square) => square.classList.add("square-border")); -} - -/* Clear all (Clear the grid only) */ -const clearBtn = document.querySelector(".clear"); -function resetAllSquare() { - squares.forEach((square) => { - if (square.style.cssText) square.removeAttribute("style"); - }); -} -clearBtn.addEventListener("click", resetAllSquare); - -/* Change grid size & badge */ -const gridSizeBar = document.querySelector(".size-adjust #slider"); -function changeGridBadge(squaresNumber) { - let gridSizeBadge = document.querySelector(".size-adjust p"); - gridSizeBadge.innerText = `Grid Size: ${squaresNumber} x ${squaresNumber}`; -} -function changeGridSize() { - // Erase current content - resetAllSquare(); - // Input changed - squaresNumber = parseInt(this.value); - if (isNaN(squaresNumber)) { - squaresNumber = 30; - gridSizeBar.value = "30"; - } - // Change badge text - changeGridBadge(squaresNumber); - // Reset grid - grid.style.cssText += `grid-template-columns: repeat(${squaresNumber}, 1fr)`; - // Append or remove squares - while (squares.length < squaresNumber * squaresNumber - 1) { - squares = document.querySelectorAll(".square"); - createSquare(); - } - while (squares.length > squaresNumber * squaresNumber + 1) { - squares = document.querySelectorAll(".square"); - squares[0].parentNode.removeChild(squares[0]); - } - squares = document.querySelectorAll(".square"); - // If gridlines turn off then remove the rest - if (!gridLines.classList.contains("btn-on")) removeGridLines(); -} -// Change the gridline when input done, for performance -gridSizeBar.addEventListener("input", (event) => { - squaresNumber = event["target"].value; - changeGridBadge(squaresNumber); -}); -gridSizeBar.addEventListener("mouseup", changeGridSize); - -/* Turn on or off button Function (Use for rainbow, random, lighten, shading pen, eraser) */ -const buttons = page.querySelectorAll("button"); -function resetAllBtn(event) { - if (event.classList.value.includes("grid-line")) return; - buttons.forEach((button) => { - if (!button.classList.value.includes("grid-line")) - button.classList.remove("btn-on"); - }); -} -function buttonOnOff(event) { - if (event.target.tagName !== "BUTTON") return; - const toggleBtn = event.target; - // Work with clear feature - // If current select pen is lighten, darken & eraser then remove - if (toggleBtn.innerText === "Clear") { - buttons.forEach((button) => { - const targetBtn = button.classList.value; - if ( - targetBtn === "eraser btn-on" || - targetBtn === "darken btn-on" || - targetBtn === "lighten btn-on" - ) - return button.classList.remove("btn-on"); - }); - return; - } else if (toggleBtn.innerText === "Reset") { - resetAll(event); - return; - // If remove glid lines clicked - } else if (toggleBtn.innerText.includes("Remove")) { - gridLines.innerText = "Show Grid Lines"; - removeGridLines(); - toggleBtn.classList.remove("btn-on"); - return; - // If show glid lines clicked - } else if (toggleBtn.innerText.includes("Show")) { - gridLines.innerText = "Remove Grid Lines"; - addGridLines(); - } - // Remove current clicked pen if double click - if (toggleBtn.classList.contains("btn-on")) { - toggleBtn.classList.remove("btn-on"); - return; - } - // Delete all pen with button on (Reset) - resetAllBtn(event.target); - // Then turn button on for current clicked pen - toggleBtn.classList.add("btn-on"); -} -page.addEventListener("click", buttonOnOff); - -/* Color fill specific area */ -const areaFill = document.querySelector(".area"); -function toFill(event) { - function extendSqrs(_) { - // Create surround squares - const squareIdx = Array.from(_.parentElement.children).indexOf(_); - let topSqr = squares[squareIdx - squaresNumber]; - let botSqr = squares[squareIdx + squaresNumber]; - let leftSqr = ""; - let rightSqr = ""; - let leftTopSqr = squares[squareIdx - squaresNumber - 1]; - let rightTopSqr = squares[squareIdx - squaresNumber + 1]; - let leftBotSqr = squares[squareIdx + squaresNumber - 1]; - let rightBotSqr = squares[squareIdx + squaresNumber + 1]; - // If cursor on ther right corner - if (squareIdx % squaresNumber == 0) { - leftSqr = undefined; - leftTopSqr = undefined; - leftBotSqr = undefined; - } else { - leftSqr = squares[squareIdx - 1]; - } - // If cursor on the left corner - if ((squareIdx + 1) % squaresNumber == 0) { - rightSqr = undefined; - rightTopSqr = undefined; - rightBotSqr = undefined; - } else { - rightSqr = squares[squareIdx + 1]; - } - function caseTopLeft() { - if (topSqr.style.backgroundColor && leftSqr.style.backgroundColor) - leftTopSqr = undefined; - } - function caseTopRight() { - if (topSqr.style.backgroundColor && rightSqr.style.backgroundColor) - rightTopSqr = undefined; - } - function caseBotLeft() { - if (leftSqr.style.backgroundColor && botSqr.style.backgroundColor) - leftBotSqr = undefined; - } - function caseBotRight() { - if (botSqr.style.backgroundColor && rightSqr.style.backgroundColor) - rightBotSqr = undefined; - } - if (leftSqr === undefined) { - if (topSqr === undefined) { - caseBotRight(); - } else if (botSqr === undefined) { - caseTopRight(); - } else { - caseTopRight(); - caseBotRight(); - } - } else if (rightSqr === undefined) { - if (topSqr === undefined) { - caseBotLeft(); - } else if (botSqr === undefined) { - caseTopLeft(); - } else { - caseTopLeft(); - caseBotLeft(); - } - } else if (topSqr === undefined) { - caseBotRight(); - caseBotLeft(); - } else if (botSqr === undefined) { - caseTopRight(); - caseTopLeft(); - } else { - caseBotLeft(); - caseBotRight(); - caseTopLeft(); - caseTopRight(); - } - let arrs = [ - _, - leftTopSqr, - topSqr, - rightTopSqr, - rightSqr, - rightBotSqr, - botSqr, - leftBotSqr, - leftSqr, - ]; - let cleanArrs = []; - arrs.forEach((arr) => { - if (arr !== undefined && !arr.style.backgroundColor) cleanArrs.push(arr); - }); - return cleanArrs; - } - // Fill color for new squares created - let arrs = extendSqrs(event); - while (arrs.length > 0) { - arrs.forEach((arr) => { - arrs = arrs.filter((e) => e !== arr); - arr.style.cssText = `background:${squareColor}`; - extendSqrs(arr).forEach((_) => { - if (!arrs.includes(_)) { - arrs.push(_); - _.style.cssText = `background:${squareColor}`; - } - }); - }); - } -} - -/* Toggle pen */ -// Toggle random -const randomBtn = document.querySelector(".random"); -// Toggle rainbow -const rainbowBtn = document.querySelector(".rainbow"); -// Toggle Lighten & darken -const lightenBtn = document.querySelector(".lighten"); -const darkenBtn = document.querySelector(".darken"); -// Toggle eraser -const eraserBtn = document.querySelector(".eraser"); -/* Color fill full area */ -const fullFillBtn = document.querySelector("#fill .full"); -function toFullFill(_) { - if (!_.style.cssText) { - squares.forEach((square) => { - if (!square.style.backgroundColor) - square.style.backgroundColor = penColor.value; - }); - } -} -/* Reset to original (Clear grid, pen, background to default) */ -const resetBtn = document.querySelector(".reset"); -function resetAll(event) { - bgColor.value = "#ffffff"; - penColor.value = "#202020"; - grid.style.backgroundColor = "#FFFFFF"; - squareColor = "#000000"; - resetAllSquare(); - resetAllBtn(event.target); - changeGridSize(); - if (!squares[0].classList.value.includes("square-border")) { - addGridLines(); - } - gridLines.classList.add("btn-on"); - gridLines.innerText = "Remove Grid Lines"; -} - -/* Hold to draw */ -function toDraw(event) { - if (event.buttons !== 1) return; - if (!event["target"].className.includes("square")) return; // Return nothing if not inside of the box - event.preventDefault(); // New to learn - // Areafill - if (areaFill.classList.contains("btn-on")) { - toFill(event["target"]); - // Fullfill - } else if (fullFillBtn.classList.contains("btn-on")) { - toFullFill(event["target"]); - // Toggle rainbow color - } else if (rainbowBtn.classList.contains("btn-on")) { - event["target"].style.cssText = `background:${rainbowColor()}`; - // Toggle random color - } else if (randomBtn.classList.contains("btn-on")) { - event["target"].style.cssText = `background:${randColor()}`; - // Toggle lighten - } else if (lightenBtn.classList.contains("btn-on")) { - if (event["target"].style.cssText) { - // Optimize performance - rgb = event["target"].style.backgroundColor.match(/\d+/g); - event["target"].style.cssText = `background:${rgbChange(rgb, 15)}`; - } - // Toggle darken - } else if (darkenBtn.classList.contains("btn-on")) { - if (event["target"].style.cssText) { - // Optimize performance - rgb = event["target"].style.backgroundColor.match(/\d+/g); - event["target"].style.cssText = `background:${rgbChange(rgb, -15)}`; - } - // Toggle Eraser - } else if (eraserBtn.classList.contains("btn-on")) { - if (event["target"].style.cssText) event.target.removeAttribute("style"); - // Draw the square - } else if (event["target"].style.backgroundColor !== hexToRgb(squareColor)) { - event["target"].style.cssText = `background:${squareColor}`; - } -} -grid.addEventListener("mousemove", toDraw); -grid.addEventListener("mousedown", toDraw); - -/* Change background & pen color */ -let bgColor = document.querySelector("#color-picker-bg"); -let penColor = document.querySelector("#color-picker-pen"); -bgColor.addEventListener("input", () => { - grid.style.backgroundColor = bgColor.value; -}); -penColor.addEventListener("input", () => { - squareColor = penColor.value; - buttons.forEach((button) => { - if ( - button.classList[0] !== "area" && - button.classList[0] !== "full" && - button.classList[0] !== "grid-line" - ) { - return button.classList.remove("btn-on"); - } - }); -}); - -/* Others function */ -// Hex to rgb -function hexToRgb(hex) { - hex = hex.replace("#", ""); - var r = parseInt(hex.substring(0, 2), 16); - var g = parseInt(hex.substring(2, 4), 16); - var b = parseInt(hex.substring(4, 6), 16); - return "rgb(" + r + ", " + g + ", " + b + ")"; -} -// Generate random color -function randColor() { - const rdC1 = Math.floor(Math.random() * 256); - const rdC2 = Math.floor(Math.random() * 256); - const rdC3 = Math.floor(Math.random() * 256); - return `rgb(${rdC1}, ${rdC2}, ${rdC3})`; -} -// Change rgb to lighten or darken -function rgbChange(rgb, level) { - r = parseInt(rgb[0]); - g = parseInt(rgb[1]); - b = parseInt(rgb[2]); - if (r <= 255) r += level; - if (g <= 255) g += level; - if (b <= 255) b += level; - return `rgb(${r}, ${g}, ${b})`; -} -// Generate rainbow color -function rainbowColor() { - const rainbowCorArr = [ - "#9400D3", - "#4B0082", - "#0000FF", - "#00FF00", - "#FFFF00", - "#FF7F00", - "#FF0000", - ]; - return rainbowCorArr[Math.floor(Math.random() * rainbowCorArr.length)]; -} +/* General */ +const grid = document.querySelector(".grid"); +const page = document.querySelector(".main"); + +/* Default background color, pen color, number of squares inside grid */ +grid.style.backgroundColor = "#FFFFFF"; +let squareColor = "#000000"; +function createSquare() { + const square = document.createElement("div"); + square.classList.add("square", "square-border"); + grid.appendChild(square); +} +let squaresNumber = 30; +grid.style.cssText += `grid-template-columns: repeat(${squaresNumber}, 1fr)`; +for (sq = 1; sq <= squaresNumber * squaresNumber; sq++) { + createSquare(); +} +let squares = document.querySelectorAll(".square"); + +/* Remove, Add gridlines */ +const gridLines = document.querySelector(".grid-line"); +function removeGridLines() { + squares.forEach((square) => square.classList.remove("square-border")); +} +function addGridLines() { + squares.forEach((square) => square.classList.add("square-border")); +} + +/* Clear all (Clear the grid only) */ +const clearBtn = document.querySelector(".clear"); +function resetAllSquare() { + squares.forEach((square) => { + if (square.style.cssText) square.removeAttribute("style"); + }); +} +clearBtn.addEventListener("click", resetAllSquare); + +/* Change grid size & badge */ +const gridSizeBar = document.querySelector(".size-adjust #slider"); +function changeGridBadge(squaresNumber) { + let gridSizeBadge = document.querySelector(".size-adjust p"); + gridSizeBadge.innerText = `Grid Size: ${squaresNumber} x ${squaresNumber}`; +} +function changeGridSize() { + // Erase current content + resetAllSquare(); + // Input changed + squaresNumber = parseInt(this.value); + if (isNaN(squaresNumber)) { + squaresNumber = 30; + gridSizeBar.value = "30"; + } + // Change badge text + changeGridBadge(squaresNumber); + // Reset grid + grid.style.cssText += `grid-template-columns: repeat(${squaresNumber}, 1fr)`; + // Append or remove squares + while (squares.length < squaresNumber * squaresNumber - 1) { + squares = document.querySelectorAll(".square"); + createSquare(); + } + while (squares.length > squaresNumber * squaresNumber + 1) { + squares = document.querySelectorAll(".square"); + squares[0].parentNode.removeChild(squares[0]); + } + squares = document.querySelectorAll(".square"); + // If gridlines turn off then remove the rest + if (!gridLines.classList.contains("btn-on")) removeGridLines(); +} +// Change the gridline when input done, for performance +gridSizeBar.addEventListener("input", (event) => { + squaresNumber = event["target"].value; + changeGridBadge(squaresNumber); +}); +gridSizeBar.addEventListener("mouseup", changeGridSize); + +/* Turn on or off button Function (Use for rainbow, random, lighten, shading pen, eraser) */ +const buttons = page.querySelectorAll("button"); +function resetAllBtn(event) { + if (event.classList.value.includes("grid-line")) return; + buttons.forEach((button) => { + if (!button.classList.value.includes("grid-line")) + button.classList.remove("btn-on"); + }); +} +function buttonOnOff(event) { + if (event.target.tagName !== "BUTTON") return; + const toggleBtn = event.target; + // Work with clear feature + // If current select pen is lighten, darken & eraser then remove + if (toggleBtn.innerText === "Clear") { + buttons.forEach((button) => { + const targetBtn = button.classList.value; + if ( + targetBtn === "eraser btn-on" || + targetBtn === "darken btn-on" || + targetBtn === "lighten btn-on" + ) + return button.classList.remove("btn-on"); + }); + return; + } else if (toggleBtn.innerText === "Reset") { + resetAll(event); + return; + // If remove glid lines clicked + } else if (toggleBtn.innerText.includes("Remove")) { + gridLines.innerText = "Show Grid Lines"; + removeGridLines(); + toggleBtn.classList.remove("btn-on"); + return; + // If show glid lines clicked + } else if (toggleBtn.innerText.includes("Show")) { + gridLines.innerText = "Remove Grid Lines"; + addGridLines(); + } + // Remove current clicked pen if double click + if (toggleBtn.classList.contains("btn-on")) { + toggleBtn.classList.remove("btn-on"); + return; + } + // Delete all pen with button on (Reset) + resetAllBtn(event.target); + // Then turn button on for current clicked pen + toggleBtn.classList.add("btn-on"); +} +page.addEventListener("click", buttonOnOff); + +/* Color fill specific area */ +const areaFill = document.querySelector(".area"); +function toFill(event) { + function extendSqrs(_) { + // Create surround squares + const squareIdx = Array.from(_.parentElement.children).indexOf(_); + let topSqr = squares[squareIdx - squaresNumber]; + let botSqr = squares[squareIdx + squaresNumber]; + let leftSqr = ""; + let rightSqr = ""; + let leftTopSqr = squares[squareIdx - squaresNumber - 1]; + let rightTopSqr = squares[squareIdx - squaresNumber + 1]; + let leftBotSqr = squares[squareIdx + squaresNumber - 1]; + let rightBotSqr = squares[squareIdx + squaresNumber + 1]; + // If cursor on ther right corner + if (squareIdx % squaresNumber == 0) { + leftSqr = undefined; + leftTopSqr = undefined; + leftBotSqr = undefined; + } else { + leftSqr = squares[squareIdx - 1]; + } + // If cursor on the left corner + if ((squareIdx + 1) % squaresNumber == 0) { + rightSqr = undefined; + rightTopSqr = undefined; + rightBotSqr = undefined; + } else { + rightSqr = squares[squareIdx + 1]; + } + function caseTopLeft() { + if (topSqr.style.backgroundColor && leftSqr.style.backgroundColor) + leftTopSqr = undefined; + } + function caseTopRight() { + if (topSqr.style.backgroundColor && rightSqr.style.backgroundColor) + rightTopSqr = undefined; + } + function caseBotLeft() { + if (leftSqr.style.backgroundColor && botSqr.style.backgroundColor) + leftBotSqr = undefined; + } + function caseBotRight() { + if (botSqr.style.backgroundColor && rightSqr.style.backgroundColor) + rightBotSqr = undefined; + } + if (leftSqr === undefined) { + if (topSqr === undefined) { + caseBotRight(); + } else if (botSqr === undefined) { + caseTopRight(); + } else { + caseTopRight(); + caseBotRight(); + } + } else if (rightSqr === undefined) { + if (topSqr === undefined) { + caseBotLeft(); + } else if (botSqr === undefined) { + caseTopLeft(); + } else { + caseTopLeft(); + caseBotLeft(); + } + } else if (topSqr === undefined) { + caseBotRight(); + caseBotLeft(); + } else if (botSqr === undefined) { + caseTopRight(); + caseTopLeft(); + } else { + caseBotLeft(); + caseBotRight(); + caseTopLeft(); + caseTopRight(); + } + let arrs = [ + _, + leftTopSqr, + topSqr, + rightTopSqr, + rightSqr, + rightBotSqr, + botSqr, + leftBotSqr, + leftSqr, + ]; + let cleanArrs = []; + arrs.forEach((arr) => { + if (arr !== undefined && !arr.style.backgroundColor) cleanArrs.push(arr); + }); + return cleanArrs; + } + // Fill color for new squares created + let arrs = extendSqrs(event); + while (arrs.length > 0) { + arrs.forEach((arr) => { + arrs = arrs.filter((e) => e !== arr); + arr.style.cssText = `background:${squareColor}`; + extendSqrs(arr).forEach((_) => { + if (!arrs.includes(_)) { + arrs.push(_); + _.style.cssText = `background:${squareColor}`; + } + }); + }); + } +} + +/* Toggle pen */ +// Toggle random +const randomBtn = document.querySelector(".random"); +// Toggle rainbow +const rainbowBtn = document.querySelector(".rainbow"); +// Toggle Lighten & darken +const lightenBtn = document.querySelector(".lighten"); +const darkenBtn = document.querySelector(".darken"); +// Toggle eraser +const eraserBtn = document.querySelector(".eraser"); +/* Color fill full area */ +const fullFillBtn = document.querySelector("#fill .full"); +function toFullFill(_) { + if (!_.style.cssText) { + squares.forEach((square) => { + if (!square.style.backgroundColor) + square.style.backgroundColor = penColor.value; + }); + } +} +/* Reset to original (Clear grid, pen, background to default) */ +const resetBtn = document.querySelector(".reset"); +function resetAll(event) { + bgColor.value = "#ffffff"; + penColor.value = "#202020"; + grid.style.backgroundColor = "#FFFFFF"; + squareColor = "#000000"; + resetAllSquare(); + resetAllBtn(event.target); + changeGridSize(); + if (!squares[0].classList.value.includes("square-border")) { + addGridLines(); + } + gridLines.classList.add("btn-on"); + gridLines.innerText = "Remove Grid Lines"; +} + +/* Hold to draw */ +function toDraw(event) { + if (event.buttons !== 1) return; + if (!event["target"].className.includes("square")) return; // Return nothing if not inside of the box + event.preventDefault(); // New to learn + // Areafill + if (areaFill.classList.contains("btn-on")) { + toFill(event["target"]); + // Fullfill + } else if (fullFillBtn.classList.contains("btn-on")) { + toFullFill(event["target"]); + // Toggle rainbow color + } else if (rainbowBtn.classList.contains("btn-on")) { + event["target"].style.cssText = `background:${rainbowColor()}`; + // Toggle random color + } else if (randomBtn.classList.contains("btn-on")) { + event["target"].style.cssText = `background:${randColor()}`; + // Toggle lighten + } else if (lightenBtn.classList.contains("btn-on")) { + if (event["target"].style.cssText) { + // Optimize performance + rgb = event["target"].style.backgroundColor.match(/\d+/g); + event["target"].style.cssText = `background:${rgbChange(rgb, 15)}`; + } + // Toggle darken + } else if (darkenBtn.classList.contains("btn-on")) { + if (event["target"].style.cssText) { + // Optimize performance + rgb = event["target"].style.backgroundColor.match(/\d+/g); + event["target"].style.cssText = `background:${rgbChange(rgb, -15)}`; + } + // Toggle Eraser + } else if (eraserBtn.classList.contains("btn-on")) { + if (event["target"].style.cssText) event.target.removeAttribute("style"); + // Draw the square + } else if (event["target"].style.backgroundColor !== hexToRgb(squareColor)) { + event["target"].style.cssText = `background:${squareColor}`; + } +} +grid.addEventListener("mousemove", toDraw); +grid.addEventListener("mousedown", toDraw); + +/* Change background & pen color */ +let bgColor = document.querySelector("#color-picker-bg"); +let penColor = document.querySelector("#color-picker-pen"); +bgColor.addEventListener("input", () => { + grid.style.backgroundColor = bgColor.value; +}); +penColor.addEventListener("input", () => { + squareColor = penColor.value; + buttons.forEach((button) => { + if ( + button.classList[0] !== "area" && + button.classList[0] !== "full" && + button.classList[0] !== "grid-line" + ) { + return button.classList.remove("btn-on"); + } + }); +}); + +/* Others function */ +// Hex to rgb +function hexToRgb(hex) { + hex = hex.replace("#", ""); + var r = parseInt(hex.substring(0, 2), 16); + var g = parseInt(hex.substring(2, 4), 16); + var b = parseInt(hex.substring(4, 6), 16); + return "rgb(" + r + ", " + g + ", " + b + ")"; +} +// Generate random color +function randColor() { + const rdC1 = Math.floor(Math.random() * 256); + const rdC2 = Math.floor(Math.random() * 256); + const rdC3 = Math.floor(Math.random() * 256); + return `rgb(${rdC1}, ${rdC2}, ${rdC3})`; +} +// Change rgb to lighten or darken +function rgbChange(rgb, level) { + r = parseInt(rgb[0]); + g = parseInt(rgb[1]); + b = parseInt(rgb[2]); + if (r <= 255) r += level; + if (g <= 255) g += level; + if (b <= 255) b += level; + return `rgb(${r}, ${g}, ${b})`; +} +// Generate rainbow color +function rainbowColor() { + const rainbowCorArr = [ + "#9400D3", + "#4B0082", + "#0000FF", + "#00FF00", + "#FFFF00", + "#FF7F00", + "#FF0000", + ]; + return rainbowCorArr[Math.floor(Math.random() * rainbowCorArr.length)]; +} diff --git a/Games/Doodle_Draw/styles.css b/Games/Doodle_Draw/styles.css index 00902356b5..5f790363b5 100644 --- a/Games/Doodle_Draw/styles.css +++ b/Games/Doodle_Draw/styles.css @@ -1,154 +1,154 @@ -@import url("https://fonts.googleapis.com/css?family=Open+Sans&display=swap"); -/* Body */ -body { - display: flex; - align-items: center; - flex-direction: column; - background-color: #181818; - gap: 30px; -} - -#header { - font-size: 75px; - font-weight: bolder; - color: rgb(220, 60, 20); - font-family: "Open Sans"; -} -/* Container0 */ -.container0 { - display: flex; - flex-direction: row; - gap: 30px; - height: 70px; -} -/* Reset || Clear */ -.blank { - background-color: #2c2b2b; - flex-basis: 300px; - display: flex; - justify-content: center; - align-items: flex-end; -} - -.reset, -.clear { - font-weight: bolder; - font-size: 25px; - padding: 5px 30px 5px 30px; - border-radius: 10%; -} -.clear { - background-color: rgb(218, 75, 42); -} -.reset { - background-color: rgb(211, 75, 75); -} - -/* Background color, pen color */ - -.default { - background-color: #2c2b2b; - flex-basis: 700px; - display: flex; - justify-content: space-around; - align-items: center; -} - -.pen-bg-picker { - display: flex; - flex-direction: column; - align-items: flex-start; - justify-content: center; - gap: 5px; -} - -.color-picker, -.grid-size { - display: flex; - align-items: center; - gap: 10px; -} - -.size-adjust { - display: flex; - gap: 0px; - flex-direction: column; - align-items: center; -} -.size-adjust p { - margin: 0; - color: #ffffff; - font-weight: 600; -} - -label { - color: white; - font-weight: bold; - font-family: sans-serif; -} - -/* Container */ -.container { - display: flex; - justify-content: space-around; - align-items: center; - gap: 30px; -} - -/* Function */ -.toggle { - background-color: #2c2b2b; - width: 300px; - display: flex; - justify-content: space-around; - align-items: center; -} -.container .toggle { - height: 700px; - flex-direction: column; -} - -#draw, -#fill { - display: flex; - flex-direction: column; - gap: 30px; -} -.toggle .title { - /* color: rgb(62, 166, 255); */ - color: rgb(218, 75, 42); - font-weight: bolder; - text-align: center; - font-size: 50px; -} - -button, -.grid-line { - font-size: 20px; - padding: 5px 40px 5px 40px; - border: 0; - border-radius: 10px; - font-family: sans-serif; -} - -.btn-on { - /* background-color: rgb(62, 166, 255); */ - background-color: rgb(218, 75, 42); -} -/* Grid */ -.grid { - width: 700px; - height: 700px; - /* New to learn (grid)*/ - display: grid; - grid-template-columns: repeat(9, 1fr); -} - -.square { - box-sizing: border-box; -} - -.square-border { - border-bottom: 1px rgb(156, 156, 156) solid; - border-right: 1px rgb(156, 156, 156) solid; -} +@import url("https://fonts.googleapis.com/css?family=Open+Sans&display=swap"); +/* Body */ +body { + display: flex; + align-items: center; + flex-direction: column; + background-color: #181818; + gap: 30px; +} + +#header { + font-size: 75px; + font-weight: bolder; + color: rgb(220, 60, 20); + font-family: "Open Sans"; +} +/* Container0 */ +.container0 { + display: flex; + flex-direction: row; + gap: 30px; + height: 70px; +} +/* Reset || Clear */ +.blank { + background-color: #2c2b2b; + flex-basis: 300px; + display: flex; + justify-content: center; + align-items: flex-end; +} + +.reset, +.clear { + font-weight: bolder; + font-size: 25px; + padding: 5px 30px 5px 30px; + border-radius: 10%; +} +.clear { + background-color: rgb(218, 75, 42); +} +.reset { + background-color: rgb(211, 75, 75); +} + +/* Background color, pen color */ + +.default { + background-color: #2c2b2b; + flex-basis: 700px; + display: flex; + justify-content: space-around; + align-items: center; +} + +.pen-bg-picker { + display: flex; + flex-direction: column; + align-items: flex-start; + justify-content: center; + gap: 5px; +} + +.color-picker, +.grid-size { + display: flex; + align-items: center; + gap: 10px; +} + +.size-adjust { + display: flex; + gap: 0px; + flex-direction: column; + align-items: center; +} +.size-adjust p { + margin: 0; + color: #ffffff; + font-weight: 600; +} + +label { + color: white; + font-weight: bold; + font-family: sans-serif; +} + +/* Container */ +.container { + display: flex; + justify-content: space-around; + align-items: center; + gap: 30px; +} + +/* Function */ +.toggle { + background-color: #2c2b2b; + width: 300px; + display: flex; + justify-content: space-around; + align-items: center; +} +.container .toggle { + height: 700px; + flex-direction: column; +} + +#draw, +#fill { + display: flex; + flex-direction: column; + gap: 30px; +} +.toggle .title { + /* color: rgb(62, 166, 255); */ + color: rgb(218, 75, 42); + font-weight: bolder; + text-align: center; + font-size: 50px; +} + +button, +.grid-line { + font-size: 20px; + padding: 5px 40px 5px 40px; + border: 0; + border-radius: 10px; + font-family: sans-serif; +} + +.btn-on { + /* background-color: rgb(62, 166, 255); */ + background-color: rgb(218, 75, 42); +} +/* Grid */ +.grid { + width: 700px; + height: 700px; + /* New to learn (grid)*/ + display: grid; + grid-template-columns: repeat(9, 1fr); +} + +.square { + box-sizing: border-box; +} + +.square-border { + border-bottom: 1px rgb(156, 156, 156) solid; + border-right: 1px rgb(156, 156, 156) solid; +} diff --git a/Games/Doodle_Jump/README.md b/Games/Doodle_Jump/README.md index 0971dd5cd0..82ed43c3f9 100644 --- a/Games/Doodle_Jump/README.md +++ b/Games/Doodle_Jump/README.md @@ -1,36 +1,36 @@ -# **DOODLE JUMP** - ---- -
- -## **Description ๐Ÿ“ƒ** -- A gravity defying creature trying to reach wants to higher steps, with your help. So keep your fingers on the keyboard and help the doodler. -- This game is made using simple Vanilla Javascript, HTML and CSS. - -
- -## **Functionalities ๐ŸŽฎ** -- By using the arrow keys try to move in different directions in air. -- fully responsive design - -
- -## **How to play? ๐Ÿ•น๏ธ** -- Try to keep yourself on the paddles and using them try to jump to reach above paddles. - -
- -## **Screenshots ๐Ÿ“ธ** -![image](../../assets/images/Doodle_Jump_Game.png) - -
- - -## **Working video ๐Ÿ“น** - - - - -https://github.com/singh-anushka/GameZone/assets/93376863/925f0a68-578c-4186-b98a-e659efadfe9b - - +# **DOODLE JUMP** + +--- +
+ +## **Description ๐Ÿ“ƒ** +- A gravity defying creature trying to reach wants to higher steps, with your help. So keep your fingers on the keyboard and help the doodler. +- This game is made using simple Vanilla Javascript, HTML and CSS. + +
+ +## **Functionalities ๐ŸŽฎ** +- By using the arrow keys try to move in different directions in air. +- fully responsive design + +
+ +## **How to play? ๐Ÿ•น๏ธ** +- Try to keep yourself on the paddles and using them try to jump to reach above paddles. + +
+ +## **Screenshots ๐Ÿ“ธ** +![image](../../assets/images/Doodle_Jump_Game.png) + +
+ + +## **Working video ๐Ÿ“น** + + + + +https://github.com/singh-anushka/GameZone/assets/93376863/925f0a68-578c-4186-b98a-e659efadfe9b + + diff --git a/Games/Doodle_Jump/index.html b/Games/Doodle_Jump/index.html index 223115549e..f704f439a9 100644 --- a/Games/Doodle_Jump/index.html +++ b/Games/Doodle_Jump/index.html @@ -1,24 +1,24 @@ - - - - - - - Doodle Jump - - - - - - - - - -
-

Doodle Jump

- - - + + + + + + + Doodle Jump + + + + + + + + + +
+

Doodle Jump

+ + + \ No newline at end of file diff --git a/Games/Doodle_Jump/script.js b/Games/Doodle_Jump/script.js index 6e5f42291d..d4598acc10 100644 --- a/Games/Doodle_Jump/script.js +++ b/Games/Doodle_Jump/script.js @@ -1,208 +1,208 @@ -//board -let board; -let boardWidth = 360; -let boardHeight = 576; -let context; - -//doodler -let doodlerWidth = 46; -let doodlerHeight = 46; -let doodlerX = boardWidth/2 - doodlerWidth/2; -let doodlerY = boardHeight*7/8 - doodlerHeight; -let doodlerRightImg; -let doodlerLeftImg; - -let doodler = { - img : null, - x : doodlerX, - y : doodlerY, - width : doodlerWidth, - height : doodlerHeight -} - -//physics -let velocityX = 0; -let velocityY = 0; -let initialVelocityY = -8; -let gravity = 0.4; - -//platforms -let platformArray = []; -let platformWidth = 60; -let platformHeight = 18; -let platformImg; - -let score = 0; -let maxScore = 0; -let gameOver = false; - -window.onload = function() { - board = document.getElementById("board"); - board.height = boardHeight; - board.width = boardWidth; - context = board.getContext("2d"); - - doodlerRightImg = new Image(); - doodlerRightImg.src = "./assets/doodler-right.png"; - doodler.img = doodlerRightImg; - doodlerRightImg.onload = function() { - context.drawImage(doodler.img, doodler.x, doodler.y, doodler.width, doodler.height); - } - - doodlerLeftImg = new Image(); - doodlerLeftImg.src = "./assets/doodler-left.png"; - - platformImg = new Image(); - platformImg.src = "./assets/platform.png"; - - velocityY = initialVelocityY; - placePlatforms(); - requestAnimationFrame(update); - document.addEventListener("keydown", moveDoodler); -} - -function update() { - requestAnimationFrame(update); - if (gameOver) { - return; - } - context.clearRect(0, 0, board.width, board.height); - - //doodler - doodler.x += velocityX; - if (doodler.x > boardWidth) { - doodler.x = 0; - } - else if (doodler.x + doodler.width < 0) { - doodler.x = boardWidth; - } - - velocityY += gravity; - doodler.y += velocityY; - if (doodler.y > board.height) { - gameOver = true; - } - context.drawImage(doodler.img, doodler.x, doodler.y, doodler.width, doodler.height); - - //platforms - for (let i = 0; i < platformArray.length; i++) { - let platform = platformArray[i]; - if (velocityY < 0 && doodler.y < boardHeight*3/4) { - platform.y -= initialVelocityY; //slide platform down - } - if (detectCollision(doodler, platform) && velocityY >= 0) { - velocityY = initialVelocityY; //jump - } - context.drawImage(platform.img, platform.x, platform.y, platform.width, platform.height); - } - - // clear platforms and add new platform - while (platformArray.length > 0 && platformArray[0].y >= boardHeight) { - platformArray.shift(); //removes first element from the array - newPlatform(); //replace with new platform on top - } - - //score - updateScore(); - context.fillStyle = "#537188"; - context.font = "20px 'Cedarville Cursive', cursive"; - context.fillText("Score:", 5, 35); - context.fillText(score, 70, 35); - - if (gameOver) { - context.fillStyle = "#537188"; - context.font = "22px 'Cedarville Cursive', cursive"; - context.fillText("Your Score is ", 80, 300); - context.fillText(score, 240, 300); - context.fillText("Game Over: Press 'Space' to Restart", 10, 330); - } -} - -function moveDoodler(e) { - if (e.code == "ArrowRight" || e.code == "KeyD") { //move right - velocityX = 4; - doodler.img = doodlerRightImg; - } - else if (e.code == "ArrowLeft" || e.code == "KeyA") { //move left - velocityX = -4; - doodler.img = doodlerLeftImg; - } - else if (e.code == "Space" && gameOver) { - //reset - doodler = { - img : doodlerRightImg, - x : doodlerX, - y : doodlerY, - width : doodlerWidth, - height : doodlerHeight - } - - velocityX = 0; - velocityY = initialVelocityY; - score = 0; - maxScore = 0; - gameOver = false; - placePlatforms(); - } -} - -function placePlatforms() { - platformArray = []; - - //starting platforms - let platform = { - img : platformImg, - x : boardWidth/2, - y : boardHeight - 50, - width : platformWidth, - height : platformHeight - } - - platformArray.push(platform); - - for (let i = 0; i < 6; i++) { - let randomX = Math.floor(Math.random() * boardWidth*3/4); - let platform = { - img : platformImg, - x : randomX, - y : boardHeight - 75*i - 150, - width : platformWidth, - height : platformHeight - } - - platformArray.push(platform); - } -} - -function newPlatform() { - let randomX = Math.floor(Math.random() * boardWidth*3/4); - let platform = { - img : platformImg, - x : randomX, - y : -platformHeight, - width : platformWidth, - height : platformHeight - } - - platformArray.push(platform); -} - -function detectCollision(a, b) { - return a.x < b.x + b.width && //a's top left doesn't reach b's top right - a.x + a.width > b.x && //a's top right passes b's top left - a.y < b.y + b.height && //a's top left doesn't reach b's bottom left - a.y + a.height > b.y; //a's bottom left passes b's top left -} - -function updateScore() { - let points = Math.floor(50*Math.random()); //(0-1) *50 --> (0-50) - if (velocityY < 0) { //negative going up - maxScore += points; - if (score < maxScore) { - score = maxScore; - } - } - else if (velocityY >= 0) { - maxScore -= points; - } +//board +let board; +let boardWidth = 360; +let boardHeight = 576; +let context; + +//doodler +let doodlerWidth = 46; +let doodlerHeight = 46; +let doodlerX = boardWidth/2 - doodlerWidth/2; +let doodlerY = boardHeight*7/8 - doodlerHeight; +let doodlerRightImg; +let doodlerLeftImg; + +let doodler = { + img : null, + x : doodlerX, + y : doodlerY, + width : doodlerWidth, + height : doodlerHeight +} + +//physics +let velocityX = 0; +let velocityY = 0; +let initialVelocityY = -8; +let gravity = 0.4; + +//platforms +let platformArray = []; +let platformWidth = 60; +let platformHeight = 18; +let platformImg; + +let score = 0; +let maxScore = 0; +let gameOver = false; + +window.onload = function() { + board = document.getElementById("board"); + board.height = boardHeight; + board.width = boardWidth; + context = board.getContext("2d"); + + doodlerRightImg = new Image(); + doodlerRightImg.src = "./assets/doodler-right.png"; + doodler.img = doodlerRightImg; + doodlerRightImg.onload = function() { + context.drawImage(doodler.img, doodler.x, doodler.y, doodler.width, doodler.height); + } + + doodlerLeftImg = new Image(); + doodlerLeftImg.src = "./assets/doodler-left.png"; + + platformImg = new Image(); + platformImg.src = "./assets/platform.png"; + + velocityY = initialVelocityY; + placePlatforms(); + requestAnimationFrame(update); + document.addEventListener("keydown", moveDoodler); +} + +function update() { + requestAnimationFrame(update); + if (gameOver) { + return; + } + context.clearRect(0, 0, board.width, board.height); + + //doodler + doodler.x += velocityX; + if (doodler.x > boardWidth) { + doodler.x = 0; + } + else if (doodler.x + doodler.width < 0) { + doodler.x = boardWidth; + } + + velocityY += gravity; + doodler.y += velocityY; + if (doodler.y > board.height) { + gameOver = true; + } + context.drawImage(doodler.img, doodler.x, doodler.y, doodler.width, doodler.height); + + //platforms + for (let i = 0; i < platformArray.length; i++) { + let platform = platformArray[i]; + if (velocityY < 0 && doodler.y < boardHeight*3/4) { + platform.y -= initialVelocityY; //slide platform down + } + if (detectCollision(doodler, platform) && velocityY >= 0) { + velocityY = initialVelocityY; //jump + } + context.drawImage(platform.img, platform.x, platform.y, platform.width, platform.height); + } + + // clear platforms and add new platform + while (platformArray.length > 0 && platformArray[0].y >= boardHeight) { + platformArray.shift(); //removes first element from the array + newPlatform(); //replace with new platform on top + } + + //score + updateScore(); + context.fillStyle = "#537188"; + context.font = "20px 'Cedarville Cursive', cursive"; + context.fillText("Score:", 5, 35); + context.fillText(score, 70, 35); + + if (gameOver) { + context.fillStyle = "#537188"; + context.font = "22px 'Cedarville Cursive', cursive"; + context.fillText("Your Score is ", 80, 300); + context.fillText(score, 240, 300); + context.fillText("Game Over: Press 'Space' to Restart", 10, 330); + } +} + +function moveDoodler(e) { + if (e.code == "ArrowRight" || e.code == "KeyD") { //move right + velocityX = 4; + doodler.img = doodlerRightImg; + } + else if (e.code == "ArrowLeft" || e.code == "KeyA") { //move left + velocityX = -4; + doodler.img = doodlerLeftImg; + } + else if (e.code == "Space" && gameOver) { + //reset + doodler = { + img : doodlerRightImg, + x : doodlerX, + y : doodlerY, + width : doodlerWidth, + height : doodlerHeight + } + + velocityX = 0; + velocityY = initialVelocityY; + score = 0; + maxScore = 0; + gameOver = false; + placePlatforms(); + } +} + +function placePlatforms() { + platformArray = []; + + //starting platforms + let platform = { + img : platformImg, + x : boardWidth/2, + y : boardHeight - 50, + width : platformWidth, + height : platformHeight + } + + platformArray.push(platform); + + for (let i = 0; i < 6; i++) { + let randomX = Math.floor(Math.random() * boardWidth*3/4); + let platform = { + img : platformImg, + x : randomX, + y : boardHeight - 75*i - 150, + width : platformWidth, + height : platformHeight + } + + platformArray.push(platform); + } +} + +function newPlatform() { + let randomX = Math.floor(Math.random() * boardWidth*3/4); + let platform = { + img : platformImg, + x : randomX, + y : -platformHeight, + width : platformWidth, + height : platformHeight + } + + platformArray.push(platform); +} + +function detectCollision(a, b) { + return a.x < b.x + b.width && //a's top left doesn't reach b's top right + a.x + a.width > b.x && //a's top right passes b's top left + a.y < b.y + b.height && //a's top left doesn't reach b's bottom left + a.y + a.height > b.y; //a's bottom left passes b's top left +} + +function updateScore() { + let points = Math.floor(50*Math.random()); //(0-1) *50 --> (0-50) + if (velocityY < 0) { //negative going up + maxScore += points; + if (score < maxScore) { + score = maxScore; + } + } + else if (velocityY >= 0) { + maxScore -= points; + } } \ No newline at end of file diff --git a/Games/Doodle_Jump/style.css b/Games/Doodle_Jump/style.css index 13ef030fb4..c386479d36 100644 --- a/Games/Doodle_Jump/style.css +++ b/Games/Doodle_Jump/style.css @@ -1,26 +1,26 @@ -body { - text-align: center; - height: 100vh; - display: flex; - flex-direction: column-reverse; - justify-content: space-between; - align-items: center; - background-color: #F8EDE3; - overflow: hidden; -} - -h1{ - font-family: 'Fredericka the Great', cursive; - font-size: 50pt; - color: #7D6E83; -} - -#board { - background-image: url("./assets/doodlejumpbg.png"); - width: 400px; - height: 600px; - color: #537188; - margin-top: 5rem; - padding: 2px; - border: 5px dotted #7D6E83; +body { + text-align: center; + height: 100vh; + display: flex; + flex-direction: column-reverse; + justify-content: space-between; + align-items: center; + background-color: #F8EDE3; + overflow: hidden; +} + +h1{ + font-family: 'Fredericka the Great', cursive; + font-size: 50pt; + color: #7D6E83; +} + +#board { + background-image: url("./assets/doodlejumpbg.png"); + width: 400px; + height: 600px; + color: #537188; + margin-top: 5rem; + padding: 2px; + border: 5px dotted #7D6E83; } \ No newline at end of file diff --git a/Games/Doraemon_Jump/README.md b/Games/Doraemon_Jump/README.md index 92f78d3e2a..fa35fe516a 100644 --- a/Games/Doraemon_Jump/README.md +++ b/Games/Doraemon_Jump/README.md @@ -1,23 +1,23 @@ -# **Doraemon_Jump** - -## **Description ๐Ÿ“ƒ** -- The aim is to guide **Doraemon** up a never-ending series of **Dorayakis** without falling. The left side of the playing field wraps around to the right side. The entire game built with HTML,CSS and vanilla Javascript. - -- Credits of background scores and images goes to [TV Asahi](https://www.tv-asahi.co.jp/ips/contents/Animation/) - -## **Functionalities ๐ŸŽฎ** -- left,right,up key -- fully responsive design - -## **How to play? ๐Ÿ•น๏ธ** -- Players have to jump on the dorayakis to get score -- Touching the mouses will decrese the totatl score by 1 -- Start the game by clicking the start button and play again by pessein f5 key - -## **Screenshots ๐Ÿ“ธ** -![Doraemon Jump](https://github.com/amelia2802/GameZone/assets/49182604/bf6587c1-bab6-490b-b04e-7634f7347f74) -## **Working video ๐Ÿ“น** - -https://github.com/amelia2802/GameZone/assets/49182604/43f8455a-f60d-4177-8ae9-1b86227363b8 - - +# **Doraemon_Jump** + +## **Description ๐Ÿ“ƒ** +- The aim is to guide **Doraemon** up a never-ending series of **Dorayakis** without falling. The left side of the playing field wraps around to the right side. The entire game built with HTML,CSS and vanilla Javascript. + +- Credits of background scores and images goes to [TV Asahi](https://www.tv-asahi.co.jp/ips/contents/Animation/) + +## **Functionalities ๐ŸŽฎ** +- left,right,up key +- fully responsive design + +## **How to play? ๐Ÿ•น๏ธ** +- Players have to jump on the dorayakis to get score +- Touching the mouses will decrese the totatl score by 1 +- Start the game by clicking the start button and play again by pessein f5 key + +## **Screenshots ๐Ÿ“ธ** +![Doraemon Jump](https://github.com/amelia2802/GameZone/assets/49182604/bf6587c1-bab6-490b-b04e-7634f7347f74) +## **Working video ๐Ÿ“น** + +https://github.com/amelia2802/GameZone/assets/49182604/43f8455a-f60d-4177-8ae9-1b86227363b8 + + diff --git a/Games/Doraemon_Jump/assets/css/style.css b/Games/Doraemon_Jump/assets/css/style.css index 103f3d28aa..763bd254d7 100644 --- a/Games/Doraemon_Jump/assets/css/style.css +++ b/Games/Doraemon_Jump/assets/css/style.css @@ -1,68 +1,68 @@ -body{ - height: auto; - display: flex; - justify-content: center; - font-family: cursive; - color: white; -} - -#title{ - position: absolute; - width: 340px; -} -.grid{ - width:400px; - height: 750px; - background: url("../img/background.jpg"); - background-size: cover; - position: relative; - font-size: 30px; - text-align: center; - z-index: -1; -} - -.doodler{ - width: 60px; - height: 85px; - background:url("../img/doraemon.png"); - background-size: cover; - position: absolute; -} - -.platform{ - width: 100px; - height: 100px; - background:url("../img/dorayaki.png"); - background-size: cover; - position: absolute; -} - -.enemy{ - width: 60px; - height: 60px; - background:url("https://www.pngkey.com/png/full/911-9114948_mouse-clipart-transparent-background.png"); - background-size: cover; - position: absolute; -} - -.gameOver{ - width: 100px; -} - -#start{ - position: absolute; - top: 20rem; - width: 8rem; - height: 8rem; - border-radius: 100%; - border: 1rem double royalblue; - background-color: transparent; - font-size: 25px; - font-family: cursive; -} - -.play{ - margin-top: 6rem; - font-size: 1.7rem; - color: blueviolet; +body{ + height: auto; + display: flex; + justify-content: center; + font-family: cursive; + color: white; +} + +#title{ + position: absolute; + width: 340px; +} +.grid{ + width:400px; + height: 750px; + background: url("../img/background.jpg"); + background-size: cover; + position: relative; + font-size: 30px; + text-align: center; + z-index: -1; +} + +.doodler{ + width: 60px; + height: 85px; + background:url("../img/doraemon.png"); + background-size: cover; + position: absolute; +} + +.platform{ + width: 100px; + height: 100px; + background:url("../img/dorayaki.png"); + background-size: cover; + position: absolute; +} + +.enemy{ + width: 60px; + height: 60px; + background:url("https://www.pngkey.com/png/full/911-9114948_mouse-clipart-transparent-background.png"); + background-size: cover; + position: absolute; +} + +.gameOver{ + width: 100px; +} + +#start{ + position: absolute; + top: 20rem; + width: 8rem; + height: 8rem; + border-radius: 100%; + border: 1rem double royalblue; + background-color: transparent; + font-size: 25px; + font-family: cursive; +} + +.play{ + margin-top: 6rem; + font-size: 1.7rem; + color: blueviolet; } \ No newline at end of file diff --git a/Games/Doraemon_Jump/assets/js/index.js b/Games/Doraemon_Jump/assets/js/index.js index d1d79b95f1..776bfebb88 100644 --- a/Games/Doraemon_Jump/assets/js/index.js +++ b/Games/Doraemon_Jump/assets/js/index.js @@ -1,268 +1,268 @@ -const grid = document.querySelector(".grid") -const doodler = document.createElement("div") - -let doodlerLeftSpace = 50 -let doodlerBottomSpace = 150 -let startPoint = 150 -let isGameOver = false - -let platformCount = 5 -let platforms = [] - -let enemys = [] - -let upTimerId -let downTimeId - -let isJumping = true -let isGoingLeft = false -let isGoingRight = false - -let leftTimerId -let rightTimeId - -let score = 0 - - -function createDoodler(){ - grid.appendChild(doodler) - doodler.classList.add("doodler") - doodlerLeftSpace = platforms[0].left - doodler.style.left = doodlerLeftSpace + "px" - doodler.style.bottom = doodlerBottomSpace + "px" -} - -class Platform{ - constructor(newPlatformBottom){ - this.bottom = newPlatformBottom - this.left = Math.random() * 315 - this.visual = document.createElement("div") - - const visual = this.visual - visual.classList.add("platform") - - visual.style.left = this.left + "px" - visual.style.bottom = this.bottom + "px" - - grid.appendChild(visual) - } -} - -class Enemy{ - constructor(newenemyBottom){ - this.bottom = newenemyBottom - this.left = Math.random() * 315 - this.visual = document.createElement("div") - - const visual = this.visual - visual.classList.add("enemy") - - visual.style.left = this.left + "px" - visual.style.bottom = this.bottom + "px" - - grid.appendChild(visual) - } -} - -function createPlatforms(){ - for(let i=0;i < platformCount;i++){ - let platformGap = 600 / platformCount - let newPlatformBottom = 100 + i * platformGap - let newPlatform = new Platform(newPlatformBottom) - - platforms.push(newPlatform) - } -} - -function createEnemy(){ - for(let i=0;i < 5;i++){ - let enemyGap = 600 / 5 - let newenemyBottom = 5 + i * enemyGap - let newEnemy = new Enemy(newenemyBottom) - - enemys.push(newEnemy) - } -} - - -function movePlatforms(){ - if(doodlerBottomSpace > 200){ - platforms.forEach(platform => { - platform.bottom -= 4 - - let visual = platform.visual - visual.style.bottom = platform.bottom + "px" - - if(platform.bottom < 10){ - let firstPlatform = platforms[0].visual - firstPlatform.classList.remove("platform") - platforms.shift() - - score++ - let newPlatform = new Platform(600) - platforms.push(newPlatform) - } - - }) - } -} - -function moveEnemys(){ - if(doodlerBottomSpace > 200){ - enemys.forEach(enemy => { - enemy.bottom -= 4 - - let visual = enemy.visual - visual.style.bottom = enemy.bottom + "px" - - if(enemy.bottom < 10){ - let firstEnemy = enemys[0].visual - firstEnemy.classList.remove("enemy") - enemys.shift() - - score-- - let newEnemys = new Enemy(1000) - enemys.push(newEnemys) - } - - }) - } -} - -function jump(){ - clearInterval(downTimeId) - isJumping = true - upTimerId = setInterval(function(){ - doodlerBottomSpace += 20 - doodler.style.bottom = doodlerBottomSpace + "px" - - if(doodlerBottomSpace > startPoint + 200){ - fall() - } - },30) -} - -function fall(){ - clearInterval(upTimerId) - isJumping = false - downTimeId = setInterval(function(){ - doodlerBottomSpace -= 5 - - doodler.style.bottom = doodlerBottomSpace + "px" - - if(doodlerBottomSpace <= 0){ - gameOver() - } - - platforms.forEach(platform => { - if(doodlerBottomSpace >= platform.bottom && doodlerBottomSpace <= platform.bottom + 15 && doodlerLeftSpace+60 >= platform.left && doodlerLeftSpace <= platform.left + 85 && !isJumping){ - startPoint = doodlerBottomSpace - jump() - } - }) - },30) -} - -function display(){ - let gameoverMenu = ` - -

Game Over!

-

Your Score: ${score}

- crying doraemon -

Press f5 to play again!

- ` - - return gameoverMenu -} - - -function gameOver(){ - isGameOver = true - while(grid.firstChild){ - grid.removeChild(grid.firstChild) - } - grid.innerHTML = display() - - clearInterval(upTimerId) - clearInterval(downTimeId) - clearInterval(leftTimerId) - clearInterval(rightTimeId) -} - - - -function control(e){ - if(e.key === "ArrowLeft"){ - moveLeft() - } - else if(e.key === "ArrowRight"){ - moveRight() - } - else if(e.key === "ArrowUp"){ - moveStraight() - } -} -function moveLeft(){ - isGoingLeft = true - if(isGoingRight){ - clearInterval(rightTimeId) - isGoingRight = false - } - leftTimerId = setInterval(function () { - if(doodlerLeftSpace >= 0){ - doodlerLeftSpace-=5 - doodler.style.left = doodlerLeftSpace + "px" - } - else{ - moveRight() - } - - },20) -} - -function moveRight(){ - isGoingRight = true - if(isGoingLeft){ - clearInterval(leftTimerId) - isGoingLeft = false - } - rightTimeId = setInterval(function () { - if(doodlerLeftSpace <= 340){ - doodlerLeftSpace+=5 - doodler.style.left = doodlerLeftSpace + "px" - } - else{ - moveLeft() - } - - },20) -} - -function moveStraight(){ - isGoingLeft = false - isGoingRight = false - clearInterval(rightTimeId) - clearInterval(leftTimerId) -} - - -function start(){ - document.getElementById("start").style.display = "none" - document.getElementById("title").style.visibility = "hidden" - - if(!isGameOver){ - createPlatforms() - createDoodler() - createEnemy() - setInterval(movePlatforms,30) - setInterval(moveEnemys,30) - jump() - - document.addEventListener('keyup',control) - } -} - -document.getElementById("start").addEventListener('click',start) - +const grid = document.querySelector(".grid") +const doodler = document.createElement("div") + +let doodlerLeftSpace = 50 +let doodlerBottomSpace = 150 +let startPoint = 150 +let isGameOver = false + +let platformCount = 5 +let platforms = [] + +let enemys = [] + +let upTimerId +let downTimeId + +let isJumping = true +let isGoingLeft = false +let isGoingRight = false + +let leftTimerId +let rightTimeId + +let score = 0 + + +function createDoodler(){ + grid.appendChild(doodler) + doodler.classList.add("doodler") + doodlerLeftSpace = platforms[0].left + doodler.style.left = doodlerLeftSpace + "px" + doodler.style.bottom = doodlerBottomSpace + "px" +} + +class Platform{ + constructor(newPlatformBottom){ + this.bottom = newPlatformBottom + this.left = Math.random() * 315 + this.visual = document.createElement("div") + + const visual = this.visual + visual.classList.add("platform") + + visual.style.left = this.left + "px" + visual.style.bottom = this.bottom + "px" + + grid.appendChild(visual) + } +} + +class Enemy{ + constructor(newenemyBottom){ + this.bottom = newenemyBottom + this.left = Math.random() * 315 + this.visual = document.createElement("div") + + const visual = this.visual + visual.classList.add("enemy") + + visual.style.left = this.left + "px" + visual.style.bottom = this.bottom + "px" + + grid.appendChild(visual) + } +} + +function createPlatforms(){ + for(let i=0;i < platformCount;i++){ + let platformGap = 600 / platformCount + let newPlatformBottom = 100 + i * platformGap + let newPlatform = new Platform(newPlatformBottom) + + platforms.push(newPlatform) + } +} + +function createEnemy(){ + for(let i=0;i < 5;i++){ + let enemyGap = 600 / 5 + let newenemyBottom = 5 + i * enemyGap + let newEnemy = new Enemy(newenemyBottom) + + enemys.push(newEnemy) + } +} + + +function movePlatforms(){ + if(doodlerBottomSpace > 200){ + platforms.forEach(platform => { + platform.bottom -= 4 + + let visual = platform.visual + visual.style.bottom = platform.bottom + "px" + + if(platform.bottom < 10){ + let firstPlatform = platforms[0].visual + firstPlatform.classList.remove("platform") + platforms.shift() + + score++ + let newPlatform = new Platform(600) + platforms.push(newPlatform) + } + + }) + } +} + +function moveEnemys(){ + if(doodlerBottomSpace > 200){ + enemys.forEach(enemy => { + enemy.bottom -= 4 + + let visual = enemy.visual + visual.style.bottom = enemy.bottom + "px" + + if(enemy.bottom < 10){ + let firstEnemy = enemys[0].visual + firstEnemy.classList.remove("enemy") + enemys.shift() + + score-- + let newEnemys = new Enemy(1000) + enemys.push(newEnemys) + } + + }) + } +} + +function jump(){ + clearInterval(downTimeId) + isJumping = true + upTimerId = setInterval(function(){ + doodlerBottomSpace += 20 + doodler.style.bottom = doodlerBottomSpace + "px" + + if(doodlerBottomSpace > startPoint + 200){ + fall() + } + },30) +} + +function fall(){ + clearInterval(upTimerId) + isJumping = false + downTimeId = setInterval(function(){ + doodlerBottomSpace -= 5 + + doodler.style.bottom = doodlerBottomSpace + "px" + + if(doodlerBottomSpace <= 0){ + gameOver() + } + + platforms.forEach(platform => { + if(doodlerBottomSpace >= platform.bottom && doodlerBottomSpace <= platform.bottom + 15 && doodlerLeftSpace+60 >= platform.left && doodlerLeftSpace <= platform.left + 85 && !isJumping){ + startPoint = doodlerBottomSpace + jump() + } + }) + },30) +} + +function display(){ + let gameoverMenu = ` + +

Game Over!

+

Your Score: ${score}

+ crying doraemon +

Press f5 to play again!

+ ` + + return gameoverMenu +} + + +function gameOver(){ + isGameOver = true + while(grid.firstChild){ + grid.removeChild(grid.firstChild) + } + grid.innerHTML = display() + + clearInterval(upTimerId) + clearInterval(downTimeId) + clearInterval(leftTimerId) + clearInterval(rightTimeId) +} + + + +function control(e){ + if(e.key === "ArrowLeft"){ + moveLeft() + } + else if(e.key === "ArrowRight"){ + moveRight() + } + else if(e.key === "ArrowUp"){ + moveStraight() + } +} +function moveLeft(){ + isGoingLeft = true + if(isGoingRight){ + clearInterval(rightTimeId) + isGoingRight = false + } + leftTimerId = setInterval(function () { + if(doodlerLeftSpace >= 0){ + doodlerLeftSpace-=5 + doodler.style.left = doodlerLeftSpace + "px" + } + else{ + moveRight() + } + + },20) +} + +function moveRight(){ + isGoingRight = true + if(isGoingLeft){ + clearInterval(leftTimerId) + isGoingLeft = false + } + rightTimeId = setInterval(function () { + if(doodlerLeftSpace <= 340){ + doodlerLeftSpace+=5 + doodler.style.left = doodlerLeftSpace + "px" + } + else{ + moveLeft() + } + + },20) +} + +function moveStraight(){ + isGoingLeft = false + isGoingRight = false + clearInterval(rightTimeId) + clearInterval(leftTimerId) +} + + +function start(){ + document.getElementById("start").style.display = "none" + document.getElementById("title").style.visibility = "hidden" + + if(!isGameOver){ + createPlatforms() + createDoodler() + createEnemy() + setInterval(movePlatforms,30) + setInterval(moveEnemys,30) + jump() + + document.addEventListener('keyup',control) + } +} + +document.getElementById("start").addEventListener('click',start) + diff --git a/Games/Doraemon_Jump/index.html b/Games/Doraemon_Jump/index.html index 44e3cdd805..ca27488de8 100644 --- a/Games/Doraemon_Jump/index.html +++ b/Games/Doraemon_Jump/index.html @@ -1,26 +1,26 @@ - - - - - - Doraemon Jump - - - - - -
- - -
-
- - - - - - + + + + + + Doraemon Jump + + + + + +
+ + +
+
+ + + + + + \ No newline at end of file diff --git a/Games/Doremon_Puzzle/README.md b/Games/Doremon_Puzzle/README.md index a907bc207c..68f437a7a7 100644 --- a/Games/Doremon_Puzzle/README.md +++ b/Games/Doremon_Puzzle/README.md @@ -1,35 +1,35 @@ -# **Game_Name** - -Doremon Puzzle - -## **Description ๐Ÿ“ƒ** -Doremon puzzle is a frontend game developed using HTML, CSS, JavaScript - -## **functionalities ๐ŸŽฎ** -- In this game player has to solve a puzzle -- The puzzle will be consist if multiple image segments of a doremon image -- Player has to solve them and create the full image - -## **How to play? ๐Ÿ•น๏ธ** -- The segment whoch the player wants to move the player has to click on that image -- At the same time user has to move the images segmenet; - -## **Screenshots ๐Ÿ“ธ** -![Doremon_Puzzle](https://github.com/sujanrupu/GameZone/assets/103595490/f8bb1ff7-3c07-403c-92e8-f693e1443a3b) - - - - - -## **Working video ๐Ÿ“น** - - - - - -https://github.com/sujanrupu/GameZone/assets/103595490/23b2b007-bb2e-4f22-b589-e82fc99ea563 - - - - - +# **Game_Name** + +Doremon Puzzle + +## **Description ๐Ÿ“ƒ** +Doremon puzzle is a frontend game developed using HTML, CSS, JavaScript + +## **functionalities ๐ŸŽฎ** +- In this game player has to solve a puzzle +- The puzzle will be consist if multiple image segments of a doremon image +- Player has to solve them and create the full image + +## **How to play? ๐Ÿ•น๏ธ** +- The segment whoch the player wants to move the player has to click on that image +- At the same time user has to move the images segmenet; + +## **Screenshots ๐Ÿ“ธ** +![Doremon_Puzzle](https://github.com/sujanrupu/GameZone/assets/103595490/f8bb1ff7-3c07-403c-92e8-f693e1443a3b) + + + + + +## **Working video ๐Ÿ“น** + + + + + +https://github.com/sujanrupu/GameZone/assets/103595490/23b2b007-bb2e-4f22-b589-e82fc99ea563 + + + + + diff --git a/Games/Dot_Dash/index.html b/Games/Dot_Dash/index.html index 734aec69ca..8711f036cc 100644 --- a/Games/Dot_Dash/index.html +++ b/Games/Dot_Dash/index.html @@ -1,34 +1,34 @@ - - - - - - Dot Dash - - - -
-
-
Score: 0
-
Time Left: 30s
-
-
- -
- - - - - - - - - - - - - - - - - + + + + + + Dot Dash + + + +
+
+
Score: 0
+
Time Left: 30s
+
+
+ +
+ + + + + + + + + + + + + + + + + diff --git a/Games/Dot_Dash/script.js b/Games/Dot_Dash/script.js index faaceb8b74..b4fa1b274f 100644 --- a/Games/Dot_Dash/script.js +++ b/Games/Dot_Dash/script.js @@ -1,94 +1,94 @@ -let score = 0; -let timeLeft = 30; // Game duration of 1 minute -let gameInterval; -let dotInterval; -let dotSpeed = 1000; // Start with a moderate speed for dot spawn (in milliseconds) - -const scoreElement = document.getElementById('score'); -const timeElement = document.getElementById('time'); -const gameArea = document.getElementById('gameArea'); -const startButton = document.getElementById('startButton'); -const gameContainer = document.querySelector('.game-container'); - -startButton.addEventListener('click', startGame); - -function startGame() { - score = 0; - timeLeft = 30; // Reset timer to 1 minute - dotSpeed = 1000; // Reset speed to moderate initial value - scoreElement.textContent = score; - timeElement.textContent = timeLeft; - startButton.disabled = true; - gameArea.innerHTML = ''; // Clear any dots before starting - gameInterval = setInterval(updateTimer, 1000); - spawnDot(); -} - -function updateTimer() { - timeLeft--; - timeElement.textContent = timeLeft; - if (timeLeft === 0) { - clearInterval(gameInterval); - clearTimeout(dotInterval); - startButton.disabled = false; - showGameOverMessage(); - } -} - -function spawnDot() { - if (timeLeft <= 0) return; // Prevent spawning new dots if time is up - - const dot = document.createElement('div'); - dot.classList.add('dot'); - dot.style.top = `${Math.random() * 90}%`; - dot.style.left = `${Math.random() * 90}%`; - dot.addEventListener('click', () => { - score++; - scoreElement.textContent = score; - dot.remove(); - adjustDotSpeed(); - spawnDot(); - }); - gameArea.appendChild(dot); - - dotInterval = setTimeout(() => { - if (dot.parentNode && timeLeft > 0) { - dot.remove(); - spawnDot(); - } - }, dotSpeed); -} - -function adjustDotSpeed() { - // Increase the speed of dot spawning as the score increases - if (score % 5 === 0 && dotSpeed > 500) { - dotSpeed -= 100; // Increase speed by reducing interval time - } -} - -function showGameOverMessage() { - gameArea.innerHTML = ''; // Clear any remaining dots - const gameOverMessage = document.createElement('div'); - gameOverMessage.classList.add('game-over-message'); - gameOverMessage.innerHTML = ` -

Game Over!

-

You caught ${score} dots.

-

Reloading in 5 seconds...

- `; - gameContainer.appendChild(gameOverMessage); - - let reloadTimeLeft = 5; - const reloadTimerElement = document.getElementById('reload-timer'); - const reloadInterval = setInterval(() => { - reloadTimeLeft--; - reloadTimerElement.textContent = reloadTimeLeft; - if (reloadTimeLeft === 0) { - clearInterval(reloadInterval); - location.reload(); - } - }, 1000); -} - - - - +let score = 0; +let timeLeft = 30; // Game duration of 1 minute +let gameInterval; +let dotInterval; +let dotSpeed = 1000; // Start with a moderate speed for dot spawn (in milliseconds) + +const scoreElement = document.getElementById('score'); +const timeElement = document.getElementById('time'); +const gameArea = document.getElementById('gameArea'); +const startButton = document.getElementById('startButton'); +const gameContainer = document.querySelector('.game-container'); + +startButton.addEventListener('click', startGame); + +function startGame() { + score = 0; + timeLeft = 30; // Reset timer to 1 minute + dotSpeed = 1000; // Reset speed to moderate initial value + scoreElement.textContent = score; + timeElement.textContent = timeLeft; + startButton.disabled = true; + gameArea.innerHTML = ''; // Clear any dots before starting + gameInterval = setInterval(updateTimer, 1000); + spawnDot(); +} + +function updateTimer() { + timeLeft--; + timeElement.textContent = timeLeft; + if (timeLeft === 0) { + clearInterval(gameInterval); + clearTimeout(dotInterval); + startButton.disabled = false; + showGameOverMessage(); + } +} + +function spawnDot() { + if (timeLeft <= 0) return; // Prevent spawning new dots if time is up + + const dot = document.createElement('div'); + dot.classList.add('dot'); + dot.style.top = `${Math.random() * 90}%`; + dot.style.left = `${Math.random() * 90}%`; + dot.addEventListener('click', () => { + score++; + scoreElement.textContent = score; + dot.remove(); + adjustDotSpeed(); + spawnDot(); + }); + gameArea.appendChild(dot); + + dotInterval = setTimeout(() => { + if (dot.parentNode && timeLeft > 0) { + dot.remove(); + spawnDot(); + } + }, dotSpeed); +} + +function adjustDotSpeed() { + // Increase the speed of dot spawning as the score increases + if (score % 5 === 0 && dotSpeed > 500) { + dotSpeed -= 100; // Increase speed by reducing interval time + } +} + +function showGameOverMessage() { + gameArea.innerHTML = ''; // Clear any remaining dots + const gameOverMessage = document.createElement('div'); + gameOverMessage.classList.add('game-over-message'); + gameOverMessage.innerHTML = ` +

Game Over!

+

You caught ${score} dots.

+

Reloading in 5 seconds...

+ `; + gameContainer.appendChild(gameOverMessage); + + let reloadTimeLeft = 5; + const reloadTimerElement = document.getElementById('reload-timer'); + const reloadInterval = setInterval(() => { + reloadTimeLeft--; + reloadTimerElement.textContent = reloadTimeLeft; + if (reloadTimeLeft === 0) { + clearInterval(reloadInterval); + location.reload(); + } + }, 1000); +} + + + + diff --git a/Games/Dot_Dash/styles.css b/Games/Dot_Dash/styles.css index 1af3da4e82..b3a7d516e9 100644 --- a/Games/Dot_Dash/styles.css +++ b/Games/Dot_Dash/styles.css @@ -1,88 +1,88 @@ -body { - font-family: Arial, sans-serif; - display: flex; - justify-content: center; - align-items: center; - height: 100vh; - margin: 0; - background: linear-gradient(45deg, #00b4db, #0083b0); -} - -.game-container { - text-align: center; - background: #ffffff; - border-radius: 10px; - box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); - overflow: hidden; - width: 90%; - max-width: 600px; - position: relative; -} - -.header { - background: #0083b0; - color: white; - padding: 20px; - display: flex; - justify-content: space-between; -} - -.score-board, .timer { - font-size: 1.5em; -} - -.game-area { - position: relative; - height: 400px; - background: linear-gradient(135deg, #00c6ff, #0072ff); - border-top: 1px solid #ddd; -} - -.dot { - width: 20px; - height: 20px; - background: #ff5722; - border-radius: 50%; - position: absolute; - cursor: pointer; -} - -.start-button { - background: #00b4db; - color: white; - border: none; - padding: 15px 30px; - font-size: 1.2em; - cursor: pointer; - margin: 20px; - border-radius: 5px; -} - -.start-button:hover { - background: #0083b0; -} - -.game-over-message { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - background: rgba(0, 0, 0, 0.8); - color: white; - padding: 30px; - border-radius: 10px; - text-align: center; - box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); -} - -@media (max-width: 600px) { - .header { - flex-direction: column; - align-items: center; - } - .game-area { - height: 300px; - } -} - - +body { + font-family: Arial, sans-serif; + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + margin: 0; + background: linear-gradient(45deg, #00b4db, #0083b0); +} + +.game-container { + text-align: center; + background: #ffffff; + border-radius: 10px; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); + overflow: hidden; + width: 90%; + max-width: 600px; + position: relative; +} + +.header { + background: #0083b0; + color: white; + padding: 20px; + display: flex; + justify-content: space-between; +} + +.score-board, .timer { + font-size: 1.5em; +} + +.game-area { + position: relative; + height: 400px; + background: linear-gradient(135deg, #00c6ff, #0072ff); + border-top: 1px solid #ddd; +} + +.dot { + width: 20px; + height: 20px; + background: #ff5722; + border-radius: 50%; + position: absolute; + cursor: pointer; +} + +.start-button { + background: #00b4db; + color: white; + border: none; + padding: 15px 30px; + font-size: 1.2em; + cursor: pointer; + margin: 20px; + border-radius: 5px; +} + +.start-button:hover { + background: #0083b0; +} + +.game-over-message { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + background: rgba(0, 0, 0, 0.8); + color: white; + padding: 30px; + border-radius: 10px; + text-align: center; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); +} + +@media (max-width: 600px) { + .header { + flex-direction: column; + align-items: center; + } + .game-area { + height: 300px; + } +} + + diff --git a/Games/Drawing_app/Readme.md b/Games/Drawing_app/Readme.md index a13c5d6471..93b17bdaad 100644 --- a/Games/Drawing_app/Readme.md +++ b/Games/Drawing_app/Readme.md @@ -1,51 +1,51 @@ -# ๐ŸŽจ Drawing App - -## Overview - -This is a simple and interactive drawing application built with HTML, CSS, and JavaScript. It allows users to draw shapes, use a brush tool, erase drawings, and save their creations as an image. The application offers a variety of features to make the drawing experience enjoyable and easy to use. - -## โœจ Features - -- **๐Ÿ”ณ Shapes**: Draw rectangles, circles, and triangles. -- **๐Ÿ–Œ๏ธ Brush**: Freehand drawing with customizable brush size. -- **๐Ÿงฝ Eraser**: Erase parts of your drawing. -- **๐ŸŽจ Colors**: Choose from a variety of colors or use the color picker to select a custom color. -- **โœ”๏ธ Fill Color**: Option to fill shapes with color. -- **๐Ÿงน Clear Canvas**: Clear the entire canvas with a single click. -- **๐Ÿ’พ Save Image**: Save your drawing as an image file. - -## ๐Ÿš€ How to Use - -### 1. Drawing Shapes - -- **Select a Shape**: Choose from Rectangle, Circle, or Triangle in the "Shapes" section. -- **Fill Color**: Check the "Fill color" option if you want the shapes to be filled with color. - -### 2. Using the Brush - -- **Select the Brush Tool**: Click on the "Brush" option in the "Options" section. -- **Adjust Brush Size**: Use the slider to adjust the brush size. - -### 3. Using the Eraser - -- **Select the Eraser Tool**: Click on the "Eraser" option in the "Options" section. - -### 4. Changing Colors - -- **Select a Color**: Click on one of the color options in the "Colors" section. -- **Custom Color**: Use the color picker to select a custom color. - -### 5. Clearing the Canvas - -- **Clear Canvas**: Click on the "Clear Canvas" button to erase everything on the canvas. - -### 6. Saving Your Drawing - -- **Save as Image**: Click on the "Save As Image" button to download your drawing as a JPG file. - -## ๐Ÿ“ธ Screenshot -![image](Drawing_app.png) - -## ๐ŸŽจ Conclusion - +# ๐ŸŽจ Drawing App + +## Overview + +This is a simple and interactive drawing application built with HTML, CSS, and JavaScript. It allows users to draw shapes, use a brush tool, erase drawings, and save their creations as an image. The application offers a variety of features to make the drawing experience enjoyable and easy to use. + +## โœจ Features + +- **๐Ÿ”ณ Shapes**: Draw rectangles, circles, and triangles. +- **๐Ÿ–Œ๏ธ Brush**: Freehand drawing with customizable brush size. +- **๐Ÿงฝ Eraser**: Erase parts of your drawing. +- **๐ŸŽจ Colors**: Choose from a variety of colors or use the color picker to select a custom color. +- **โœ”๏ธ Fill Color**: Option to fill shapes with color. +- **๐Ÿงน Clear Canvas**: Clear the entire canvas with a single click. +- **๐Ÿ’พ Save Image**: Save your drawing as an image file. + +## ๐Ÿš€ How to Use + +### 1. Drawing Shapes + +- **Select a Shape**: Choose from Rectangle, Circle, or Triangle in the "Shapes" section. +- **Fill Color**: Check the "Fill color" option if you want the shapes to be filled with color. + +### 2. Using the Brush + +- **Select the Brush Tool**: Click on the "Brush" option in the "Options" section. +- **Adjust Brush Size**: Use the slider to adjust the brush size. + +### 3. Using the Eraser + +- **Select the Eraser Tool**: Click on the "Eraser" option in the "Options" section. + +### 4. Changing Colors + +- **Select a Color**: Click on one of the color options in the "Colors" section. +- **Custom Color**: Use the color picker to select a custom color. + +### 5. Clearing the Canvas + +- **Clear Canvas**: Click on the "Clear Canvas" button to erase everything on the canvas. + +### 6. Saving Your Drawing + +- **Save as Image**: Click on the "Save As Image" button to download your drawing as a JPG file. + +## ๐Ÿ“ธ Screenshot +![image](Drawing_app.png) + +## ๐ŸŽจ Conclusion + Enjoy creating your own drawings with this simple yet powerful drawing application. Feel free to explore different shapes, colors, and tools to make your artwork unique. If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request. Happy drawing! ๐Ÿ˜Š \ No newline at end of file diff --git a/Games/Drawing_app/icons/brush.svg b/Games/Drawing_app/icons/brush.svg index 9e06c55c77..d9bc480519 100644 --- a/Games/Drawing_app/icons/brush.svg +++ b/Games/Drawing_app/icons/brush.svg @@ -1,3 +1,3 @@ - - - + + + diff --git a/Games/Drawing_app/icons/circle.svg b/Games/Drawing_app/icons/circle.svg index 8b8206f0f4..4ce69ab502 100644 --- a/Games/Drawing_app/icons/circle.svg +++ b/Games/Drawing_app/icons/circle.svg @@ -1,3 +1,3 @@ - - - + + + diff --git a/Games/Drawing_app/icons/eraser.svg b/Games/Drawing_app/icons/eraser.svg index f1498c572f..8ddc7e7636 100644 --- a/Games/Drawing_app/icons/eraser.svg +++ b/Games/Drawing_app/icons/eraser.svg @@ -1,3 +1,3 @@ - - - + + + diff --git a/Games/Drawing_app/icons/rectangle.svg b/Games/Drawing_app/icons/rectangle.svg index 4506e74767..b50377ad7d 100644 --- a/Games/Drawing_app/icons/rectangle.svg +++ b/Games/Drawing_app/icons/rectangle.svg @@ -1,3 +1,3 @@ - - - + + + diff --git a/Games/Drawing_app/icons/triangle.svg b/Games/Drawing_app/icons/triangle.svg index a7570f92d4..38981b7cbb 100644 --- a/Games/Drawing_app/icons/triangle.svg +++ b/Games/Drawing_app/icons/triangle.svg @@ -1,3 +1,3 @@ - - - + + + diff --git a/Games/Drawing_app/script.js b/Games/Drawing_app/script.js index cfcba0734a..e1400635ae 100644 --- a/Games/Drawing_app/script.js +++ b/Games/Drawing_app/script.js @@ -1,117 +1,117 @@ -const paintCanvas = document.querySelector("canvas"), -toolButtons = document.querySelectorAll(".tool"), -fillCheckbox = document.querySelector("#fill-color"), -brushSizeSlider = document.querySelector("#size-slider"), -colorOptions = document.querySelectorAll(".colors .option"), -colorInput = document.querySelector("#color-picker"), -clearButton = document.querySelector(".clear-canvas"), -saveButton = document.querySelector(".save-img"), -context = paintCanvas.getContext("2d"); - -let lastMouseX, lastMouseY, canvasSnapshot, -isPainting = false, -activeTool = "brush", -brushSize = 5, -activeColor = "#000"; - -const initializeCanvasBackground = () => { - context.fillStyle = "#fff"; - context.fillRect(0, 0, paintCanvas.width, paintCanvas.height); - context.fillStyle = activeColor; -} - -window.addEventListener("load", () => { - paintCanvas.width = paintCanvas.offsetWidth; - paintCanvas.height = paintCanvas.offsetHeight; - initializeCanvasBackground(); -}); - -const drawRectangle = (event) => { - if(!fillCheckbox.checked) { - return context.strokeRect(event.offsetX, event.offsetY, lastMouseX - event.offsetX, lastMouseY - event.offsetY); - } - context.fillRect(event.offsetX, event.offsetY, lastMouseX - event.offsetX, lastMouseY - event.offsetY); -} - -const drawCircleShape = (event) => { - context.beginPath(); - let radius = Math.sqrt(Math.pow((lastMouseX - event.offsetX), 2) + Math.pow((lastMouseY - event.offsetY), 2)); - context.arc(lastMouseX, lastMouseY, radius, 0, 2 * Math.PI); - fillCheckbox.checked ? context.fill() : context.stroke(); -} - -const drawTriangleShape = (event) => { - context.beginPath(); - context.moveTo(lastMouseX, lastMouseY); - context.lineTo(event.offsetX, event.offsetY); - context.lineTo(lastMouseX * 2 - event.offsetX, event.offsetY); - context.closePath(); - fillCheckbox.checked ? context.fill() : context.stroke(); -} - -const beginDrawing = (event) => { - isPainting = true; - lastMouseX = event.offsetX; - lastMouseY = event.offsetY; - context.beginPath(); - context.lineWidth = brushSize; - context.strokeStyle = activeColor; - context.fillStyle = activeColor; - canvasSnapshot = context.getImageData(0, 0, paintCanvas.width, paintCanvas.height); -} - -const executeDrawing = (event) => { - if(!isPainting) return; - context.putImageData(canvasSnapshot, 0, 0); - - if(activeTool === "brush" || activeTool === "eraser") { - context.strokeStyle = activeTool === "eraser" ? "#fff" : activeColor; - context.lineTo(event.offsetX, event.offsetY); - context.stroke(); - } else if(activeTool === "rectangle"){ - drawRectangle(event); - } else if(activeTool === "circle"){ - drawCircleShape(event); - } else { - drawTriangleShape(event); - } -} - -toolButtons.forEach(button => { - button.addEventListener("click", () => { - document.querySelector(".options .active").classList.remove("active"); - button.classList.add("active"); - activeTool = button.id; - }); -}); - -brushSizeSlider.addEventListener("change", () => brushSize = brushSizeSlider.value); - -colorOptions.forEach(button => { - button.addEventListener("click", () => { - document.querySelector(".options .selected").classList.remove("selected"); - button.classList.add("selected"); - activeColor = window.getComputedStyle(button).getPropertyValue("background-color"); - }); -}); - -colorInput.addEventListener("change", () => { - colorInput.parentElement.style.background = colorInput.value; - colorInput.parentElement.click(); -}); - -clearButton.addEventListener("click", () => { - context.clearRect(0, 0, paintCanvas.width, paintCanvas.height); - initializeCanvasBackground(); -}); - -saveButton.addEventListener("click", () => { - const link = document.createElement("a"); - link.download = `${Date.now()}.jpg`; - link.href = paintCanvas.toDataURL(); - link.click(); -}); - -paintCanvas.addEventListener("mousedown", beginDrawing); -paintCanvas.addEventListener("mousemove", executeDrawing); -paintCanvas.addEventListener("mouseup", () => isPainting = false); +const paintCanvas = document.querySelector("canvas"), +toolButtons = document.querySelectorAll(".tool"), +fillCheckbox = document.querySelector("#fill-color"), +brushSizeSlider = document.querySelector("#size-slider"), +colorOptions = document.querySelectorAll(".colors .option"), +colorInput = document.querySelector("#color-picker"), +clearButton = document.querySelector(".clear-canvas"), +saveButton = document.querySelector(".save-img"), +context = paintCanvas.getContext("2d"); + +let lastMouseX, lastMouseY, canvasSnapshot, +isPainting = false, +activeTool = "brush", +brushSize = 5, +activeColor = "#000"; + +const initializeCanvasBackground = () => { + context.fillStyle = "#fff"; + context.fillRect(0, 0, paintCanvas.width, paintCanvas.height); + context.fillStyle = activeColor; +} + +window.addEventListener("load", () => { + paintCanvas.width = paintCanvas.offsetWidth; + paintCanvas.height = paintCanvas.offsetHeight; + initializeCanvasBackground(); +}); + +const drawRectangle = (event) => { + if(!fillCheckbox.checked) { + return context.strokeRect(event.offsetX, event.offsetY, lastMouseX - event.offsetX, lastMouseY - event.offsetY); + } + context.fillRect(event.offsetX, event.offsetY, lastMouseX - event.offsetX, lastMouseY - event.offsetY); +} + +const drawCircleShape = (event) => { + context.beginPath(); + let radius = Math.sqrt(Math.pow((lastMouseX - event.offsetX), 2) + Math.pow((lastMouseY - event.offsetY), 2)); + context.arc(lastMouseX, lastMouseY, radius, 0, 2 * Math.PI); + fillCheckbox.checked ? context.fill() : context.stroke(); +} + +const drawTriangleShape = (event) => { + context.beginPath(); + context.moveTo(lastMouseX, lastMouseY); + context.lineTo(event.offsetX, event.offsetY); + context.lineTo(lastMouseX * 2 - event.offsetX, event.offsetY); + context.closePath(); + fillCheckbox.checked ? context.fill() : context.stroke(); +} + +const beginDrawing = (event) => { + isPainting = true; + lastMouseX = event.offsetX; + lastMouseY = event.offsetY; + context.beginPath(); + context.lineWidth = brushSize; + context.strokeStyle = activeColor; + context.fillStyle = activeColor; + canvasSnapshot = context.getImageData(0, 0, paintCanvas.width, paintCanvas.height); +} + +const executeDrawing = (event) => { + if(!isPainting) return; + context.putImageData(canvasSnapshot, 0, 0); + + if(activeTool === "brush" || activeTool === "eraser") { + context.strokeStyle = activeTool === "eraser" ? "#fff" : activeColor; + context.lineTo(event.offsetX, event.offsetY); + context.stroke(); + } else if(activeTool === "rectangle"){ + drawRectangle(event); + } else if(activeTool === "circle"){ + drawCircleShape(event); + } else { + drawTriangleShape(event); + } +} + +toolButtons.forEach(button => { + button.addEventListener("click", () => { + document.querySelector(".options .active").classList.remove("active"); + button.classList.add("active"); + activeTool = button.id; + }); +}); + +brushSizeSlider.addEventListener("change", () => brushSize = brushSizeSlider.value); + +colorOptions.forEach(button => { + button.addEventListener("click", () => { + document.querySelector(".options .selected").classList.remove("selected"); + button.classList.add("selected"); + activeColor = window.getComputedStyle(button).getPropertyValue("background-color"); + }); +}); + +colorInput.addEventListener("change", () => { + colorInput.parentElement.style.background = colorInput.value; + colorInput.parentElement.click(); +}); + +clearButton.addEventListener("click", () => { + context.clearRect(0, 0, paintCanvas.width, paintCanvas.height); + initializeCanvasBackground(); +}); + +saveButton.addEventListener("click", () => { + const link = document.createElement("a"); + link.download = `${Date.now()}.jpg`; + link.href = paintCanvas.toDataURL(); + link.click(); +}); + +paintCanvas.addEventListener("mousedown", beginDrawing); +paintCanvas.addEventListener("mousemove", executeDrawing); +paintCanvas.addEventListener("mouseup", () => isPainting = false); diff --git a/Games/Drawing_app/style.css b/Games/Drawing_app/style.css index c4018860e1..38ceee1e3e 100644 --- a/Games/Drawing_app/style.css +++ b/Games/Drawing_app/style.css @@ -1,146 +1,146 @@ - -@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap'); -*{ - margin: 0; - padding: 0; - box-sizing: border-box; - font-family: 'Poppins', sans-serif; -} -body{ - display: flex; - align-items: center; - justify-content: center; - min-height: 100vh; - background: #4A98F7; -} -.container{ - display: flex; - width: 100%; - gap: 10px; - padding: 10px; - max-width: 1050px; -} -section{ - background: #fff; - border-radius: 7px; -} -.tools-board{ - width: 210px; - padding: 15px 22px 0; -} -.tools-board .row{ - margin-bottom: 20px; -} -.row .options{ - list-style: none; - margin: 10px 0 0 5px; -} -.row .options .option{ - display: flex; - cursor: pointer; - align-items: center; - margin-bottom: 10px; -} -.option:is(:hover, .active) img{ - filter: invert(17%) sepia(90%) saturate(3000%) hue-rotate(900deg) brightness(100%) contrast(100%); -} -.option :where(span, label){ - color: #5A6168; - cursor: pointer; - padding-left: 10px; -} -.option:is(:hover, .active) :where(span, label){ - color: #4A98F7; -} -.option #fill-color{ - cursor: pointer; - height: 14px; - width: 14px; -} -#fill-color:checked ~ label{ - color: #4A98F7; -} -.option #size-slider{ - width: 100%; - height: 5px; - margin-top: 10px; -} -.colors .options{ - display: flex; - justify-content: space-between; -} -.colors .option{ - height: 20px; - width: 20px; - border-radius: 50%; - margin-top: 3px; - position: relative; -} -.colors .option:nth-child(1){ - background-color: #fff; - border: 1px solid #bfbfbf; -} -.colors .option:nth-child(2){ - background-color: #000; -} -.colors .option:nth-child(3){ - background-color: #E02020; -} -.colors .option:nth-child(4){ - background-color: #6DD400; -} -.colors .option:nth-child(5){ - background-color: #4A98F7; -} -.colors .option.selected::before{ - position: absolute; - content: ""; - top: 50%; - left: 50%; - height: 12px; - width: 12px; - background: inherit; - border-radius: inherit; - border: 2px solid #fff; - transform: translate(-50%, -50%); -} -.colors .option:first-child.selected::before{ - border-color: #ccc; -} -.option #color-picker{ - opacity: 0; - cursor: pointer; -} -.buttons button{ - width: 100%; - color: #fff; - border: none; - outline: none; - padding: 11px 0; - font-size: 0.9rem; - margin-bottom: 13px; - background: none; - border-radius: 4px; - cursor: pointer; -} -.buttons .clear-canvas{ - color: #6C757D; - border: 1px solid #6C757D; - transition: all 0.3s ease; -} -.clear-canvas:hover{ - color: #fff; - background: #6C757D; -} -.buttons .save-img{ - background: #4A98F7; - border: 1px solid #4A98F7; -} -.drawing-board{ - flex: 1; - overflow: hidden; -} -.drawing-board canvas{ - width: 100%; - height: 100%; + +@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap'); +*{ + margin: 0; + padding: 0; + box-sizing: border-box; + font-family: 'Poppins', sans-serif; +} +body{ + display: flex; + align-items: center; + justify-content: center; + min-height: 100vh; + background: #4A98F7; +} +.container{ + display: flex; + width: 100%; + gap: 10px; + padding: 10px; + max-width: 1050px; +} +section{ + background: #fff; + border-radius: 7px; +} +.tools-board{ + width: 210px; + padding: 15px 22px 0; +} +.tools-board .row{ + margin-bottom: 20px; +} +.row .options{ + list-style: none; + margin: 10px 0 0 5px; +} +.row .options .option{ + display: flex; + cursor: pointer; + align-items: center; + margin-bottom: 10px; +} +.option:is(:hover, .active) img{ + filter: invert(17%) sepia(90%) saturate(3000%) hue-rotate(900deg) brightness(100%) contrast(100%); +} +.option :where(span, label){ + color: #5A6168; + cursor: pointer; + padding-left: 10px; +} +.option:is(:hover, .active) :where(span, label){ + color: #4A98F7; +} +.option #fill-color{ + cursor: pointer; + height: 14px; + width: 14px; +} +#fill-color:checked ~ label{ + color: #4A98F7; +} +.option #size-slider{ + width: 100%; + height: 5px; + margin-top: 10px; +} +.colors .options{ + display: flex; + justify-content: space-between; +} +.colors .option{ + height: 20px; + width: 20px; + border-radius: 50%; + margin-top: 3px; + position: relative; +} +.colors .option:nth-child(1){ + background-color: #fff; + border: 1px solid #bfbfbf; +} +.colors .option:nth-child(2){ + background-color: #000; +} +.colors .option:nth-child(3){ + background-color: #E02020; +} +.colors .option:nth-child(4){ + background-color: #6DD400; +} +.colors .option:nth-child(5){ + background-color: #4A98F7; +} +.colors .option.selected::before{ + position: absolute; + content: ""; + top: 50%; + left: 50%; + height: 12px; + width: 12px; + background: inherit; + border-radius: inherit; + border: 2px solid #fff; + transform: translate(-50%, -50%); +} +.colors .option:first-child.selected::before{ + border-color: #ccc; +} +.option #color-picker{ + opacity: 0; + cursor: pointer; +} +.buttons button{ + width: 100%; + color: #fff; + border: none; + outline: none; + padding: 11px 0; + font-size: 0.9rem; + margin-bottom: 13px; + background: none; + border-radius: 4px; + cursor: pointer; +} +.buttons .clear-canvas{ + color: #6C757D; + border: 1px solid #6C757D; + transition: all 0.3s ease; +} +.clear-canvas:hover{ + color: #fff; + background: #6C757D; +} +.buttons .save-img{ + background: #4A98F7; + border: 1px solid #4A98F7; +} +.drawing-board{ + flex: 1; + overflow: hidden; +} +.drawing-board canvas{ + width: 100%; + height: 100%; } \ No newline at end of file diff --git a/Games/Earth_Destroyer/index.html b/Games/Earth_Destroyer/index.html index abfb47299d..ec85de89d6 100644 --- a/Games/Earth_Destroyer/index.html +++ b/Games/Earth_Destroyer/index.html @@ -1,2 +1,2 @@ -Earth Destroyer
Earth Destroyer
Begin Conquest!

Created for GSSOC

\ No newline at end of file diff --git a/Games/FOLDER_README_TEMPLATE.md b/Games/FOLDER_README_TEMPLATE.md index 4411de2f24..ed6a64ecc3 100644 --- a/Games/FOLDER_README_TEMPLATE.md +++ b/Games/FOLDER_README_TEMPLATE.md @@ -1,31 +1,31 @@ -# **Game_Name** - ---- - -
- -## **Description ๐Ÿ“ƒ** - -- - -## **functionalities ๐ŸŽฎ** - -- -
- -## **How to play? ๐Ÿ•น๏ธ** - -- - -
- -## **Screenshots ๐Ÿ“ธ** - -
- - - -
- -## **Working video ๐Ÿ“น** - +# **Game_Name** + +--- + +
+ +## **Description ๐Ÿ“ƒ** + +- + +## **functionalities ๐ŸŽฎ** + +- +
+ +## **How to play? ๐Ÿ•น๏ธ** + +- + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ + + +
+ +## **Working video ๐Ÿ“น** + diff --git a/Games/Falling_Ball/index.html b/Games/Falling_Ball/index.html index 68d563e519..b5b9c2b8fa 100644 --- a/Games/Falling_Ball/index.html +++ b/Games/Falling_Ball/index.html @@ -1,16 +1,16 @@ - - - - - - - - Fall Game - - -
-
-
- - + + + + + + + + Fall Game + + +
+
+
+ + \ No newline at end of file diff --git a/Games/Falling_Ball/script.js b/Games/Falling_Ball/script.js index 76bb3d656a..dc16b482ec 100644 --- a/Games/Falling_Ball/script.js +++ b/Games/Falling_Ball/script.js @@ -1,94 +1,94 @@ -var character = document.getElementById("character"); -var game = document.getElementById("game"); -var interval; -var both = 0; -var counter = 0; -var currentBlocks = []; - -function moveLeft(){ - var left = parseInt(window.getComputedStyle(character).getPropertyValue("left")); - if(left>0){ - character.style.left = left - 2 + "px"; - } -} -function moveRight(){ - var left = parseInt(window.getComputedStyle(character).getPropertyValue("left")); - if(left<380){ - character.style.left = left + 2 + "px"; - } -} -document.addEventListener("keydown", event => { - if(both==0){ - both++; - if(event.key==="ArrowLeft"){ - interval = setInterval(moveLeft, 1); - } - if(event.key==="ArrowRight"){ - interval = setInterval(moveRight, 1); - } - } -}); -document.addEventListener("keyup", event => { - clearInterval(interval); - both=0; -}); - -var blocks = setInterval(function(){ - var blockLast = document.getElementById("block"+(counter-1)); - var holeLast = document.getElementById("hole"+(counter-1)); - if(counter>0){ - var blockLastTop = parseInt(window.getComputedStyle(blockLast).getPropertyValue("top")); - var holeLastTop = parseInt(window.getComputedStyle(holeLast).getPropertyValue("top")); - } - if(blockLastTop<400||counter==0){ - var block = document.createElement("div"); - var hole = document.createElement("div"); - block.setAttribute("class", "block"); - hole.setAttribute("class", "hole"); - block.setAttribute("id", "block"+counter); - hole.setAttribute("id", "hole"+counter); - block.style.top = blockLastTop + 100 + "px"; - hole.style.top = holeLastTop + 100 + "px"; - var random = Math.floor(Math.random() * 360); - hole.style.left = random + "px"; - game.appendChild(block); - game.appendChild(hole); - currentBlocks.push(counter); - counter++; - } - var characterTop = parseInt(window.getComputedStyle(character).getPropertyValue("top")); - var characterLeft = parseInt(window.getComputedStyle(character).getPropertyValue("left")); - var drop = 0; - if(characterTop <= 0){ - alert("Game over. Score: "+(counter-9)); - clearInterval(blocks); - location.reload(); - } - for(var i = 0; i < currentBlocks.length;i++){ - let current = currentBlocks[i]; - let iblock = document.getElementById("block"+current); - let ihole = document.getElementById("hole"+current); - let iblockTop = parseFloat(window.getComputedStyle(iblock).getPropertyValue("top")); - let iholeLeft = parseFloat(window.getComputedStyle(ihole).getPropertyValue("left")); - iblock.style.top = iblockTop - 0.5 + "px"; - ihole.style.top = iblockTop - 0.5 + "px"; - if(iblockTop < -20){ - currentBlocks.shift(); - iblock.remove(); - ihole.remove(); - } - if(iblockTop-20characterTop){ - drop++; - if(iholeLeft<=characterLeft && iholeLeft+20>=characterLeft){ - drop = 0; - } - } - } - if(drop==0){ - if(characterTop < 480){ - character.style.top = characterTop + 2 + "px"; - } - }else{ - character.style.top = characterTop - 0.5 + "px"; - } -},1); +var character = document.getElementById("character"); +var game = document.getElementById("game"); +var interval; +var both = 0; +var counter = 0; +var currentBlocks = []; + +function moveLeft(){ + var left = parseInt(window.getComputedStyle(character).getPropertyValue("left")); + if(left>0){ + character.style.left = left - 2 + "px"; + } +} +function moveRight(){ + var left = parseInt(window.getComputedStyle(character).getPropertyValue("left")); + if(left<380){ + character.style.left = left + 2 + "px"; + } +} +document.addEventListener("keydown", event => { + if(both==0){ + both++; + if(event.key==="ArrowLeft"){ + interval = setInterval(moveLeft, 1); + } + if(event.key==="ArrowRight"){ + interval = setInterval(moveRight, 1); + } + } +}); +document.addEventListener("keyup", event => { + clearInterval(interval); + both=0; +}); + +var blocks = setInterval(function(){ + var blockLast = document.getElementById("block"+(counter-1)); + var holeLast = document.getElementById("hole"+(counter-1)); + if(counter>0){ + var blockLastTop = parseInt(window.getComputedStyle(blockLast).getPropertyValue("top")); + var holeLastTop = parseInt(window.getComputedStyle(holeLast).getPropertyValue("top")); + } + if(blockLastTop<400||counter==0){ + var block = document.createElement("div"); + var hole = document.createElement("div"); + block.setAttribute("class", "block"); + hole.setAttribute("class", "hole"); + block.setAttribute("id", "block"+counter); + hole.setAttribute("id", "hole"+counter); + block.style.top = blockLastTop + 100 + "px"; + hole.style.top = holeLastTop + 100 + "px"; + var random = Math.floor(Math.random() * 360); + hole.style.left = random + "px"; + game.appendChild(block); + game.appendChild(hole); + currentBlocks.push(counter); + counter++; + } + var characterTop = parseInt(window.getComputedStyle(character).getPropertyValue("top")); + var characterLeft = parseInt(window.getComputedStyle(character).getPropertyValue("left")); + var drop = 0; + if(characterTop <= 0){ + alert("Game over. Score: "+(counter-9)); + clearInterval(blocks); + location.reload(); + } + for(var i = 0; i < currentBlocks.length;i++){ + let current = currentBlocks[i]; + let iblock = document.getElementById("block"+current); + let ihole = document.getElementById("hole"+current); + let iblockTop = parseFloat(window.getComputedStyle(iblock).getPropertyValue("top")); + let iholeLeft = parseFloat(window.getComputedStyle(ihole).getPropertyValue("left")); + iblock.style.top = iblockTop - 0.5 + "px"; + ihole.style.top = iblockTop - 0.5 + "px"; + if(iblockTop < -20){ + currentBlocks.shift(); + iblock.remove(); + ihole.remove(); + } + if(iblockTop-20characterTop){ + drop++; + if(iholeLeft<=characterLeft && iholeLeft+20>=characterLeft){ + drop = 0; + } + } + } + if(drop==0){ + if(characterTop < 480){ + character.style.top = characterTop + 2 + "px"; + } + }else{ + character.style.top = characterTop - 0.5 + "px"; + } +},1); diff --git a/Games/Falling_Ball/style.css b/Games/Falling_Ball/style.css index d3f99c6f32..2e1b2ba4f2 100644 --- a/Games/Falling_Ball/style.css +++ b/Games/Falling_Ball/style.css @@ -1,37 +1,37 @@ -*{ - padding: 0; - margin: 0; -} -#game{ - width: 400px; - height: 500px; - border: 1px solid black; - margin: auto; - overflow: hidden; -} -#character{ - width: 20px; - height: 20px; - background-color: red; - border-radius: 50%; - position: relative; - top: 400px; - left: 190px; - z-index: 1000000; -} -.block{ - width: 400px; - height: 20px; - background-color: black; - position: relative; - top: 100px; - margin-top: -20px; -} -.hole{ - width: 40px; - height: 20px; - background-color: white; - position: relative; - top: 100px; - margin-top: -20px; +*{ + padding: 0; + margin: 0; +} +#game{ + width: 400px; + height: 500px; + border: 1px solid black; + margin: auto; + overflow: hidden; +} +#character{ + width: 20px; + height: 20px; + background-color: red; + border-radius: 50%; + position: relative; + top: 400px; + left: 190px; + z-index: 1000000; +} +.block{ + width: 400px; + height: 20px; + background-color: black; + position: relative; + top: 100px; + margin-top: -20px; +} +.hole{ + width: 40px; + height: 20px; + background-color: white; + position: relative; + top: 100px; + margin-top: -20px; } \ No newline at end of file diff --git a/Games/Fight_Game/README.md b/Games/Fight_Game/README.md index 5e078404b2..f8c1489b9c 100644 --- a/Games/Fight_Game/README.md +++ b/Games/Fight_Game/README.md @@ -1,4 +1,4 @@ -# Fight-game - -#### Player * Controls:W A D Space F -#### Player * Controls:ArrowUp ArrowLeft ArrowRight ArrowDown Control +# Fight-game + +#### Player * Controls:W A D Space F +#### Player * Controls:ArrowUp ArrowLeft ArrowRight ArrowDown Control diff --git a/Games/Fight_Game/classes.js b/Games/Fight_Game/classes.js index 8a74f38c64..7c6632399a 100644 --- a/Games/Fight_Game/classes.js +++ b/Games/Fight_Game/classes.js @@ -1,239 +1,239 @@ -class Sprite { - constructor({ - position, - imageSrc, - scale = 1, - framesMax = 1, - offset = { x: 0, y: 0 }, - }) { - this.position = position; - this.width = 50; - this.height = 150; - this.image = new Image(); - this.image.src = imageSrc; - this.scale = scale; - this.framesMax = framesMax; - this.framesCurrent = 0; - this.framesElapsed = 0; - this.framesHold = 5; - this.offset = offset; - } - - draw() { - c.drawImage( - this.image, - this.framesCurrent * (this.image.width / this.framesMax), - 0, - this.image.width / this.framesMax, - this.image.height, - this.position.x - this.offset.x, - this.position.y - this.offset.y, - (this.image.width / this.framesMax) * this.scale, - this.image.height * this.scale - ); - } - - animateFrames() { - this.framesElapsed++; - - if (this.framesElapsed % this.framesHold === 0) { - if (this.framesCurrent < this.framesMax - 1) { - this.framesCurrent++; - } else { - this.framesCurrent = 0; - } - } - } - - update() { - this.draw(); - this.animateFrames(); - } -} - -class Fighter extends Sprite { - constructor({ - position, - velocity, - color = "red", - imageSrc, - scale = 1, - framesMax = 1, - offset = { x: 0, y: 0 }, - sprites, - attackBox = { offset: {}, width: undefined, height: undefined }, - }) { - super({ - position, - imageSrc, - scale, - framesMax, - offset, - }); - - this.velocity = velocity; - this.width = 50; - this.height = 150; - this.lastKey; - this.attackBox = { - position: { - x: this.position.x, - y: this.position.y, - }, - offset: attackBox.offset, - width: attackBox.width, - height: attackBox.height, - }; - this.color = color; - this.isAttacking; - this.health = 100; - this.framesCurrent = 0; - this.framesElapsed = 0; - this.framesHold = 5; - this.sprites = sprites; - this.dead = false; - - for (const sprite in this.sprites) { - sprites[sprite].image = new Image(); - sprites[sprite].image.src = sprites[sprite].imageSrc; - } - } - - update() { - this.draw(); - if (!this.dead) this.animateFrames(); - - // attack boxes - this.attackBox.position.x = this.position.x + this.attackBox.offset.x; - this.attackBox.position.y = this.position.y + this.attackBox.offset.y; - - // draw the attack box - // c.fillRect( - // this.attackBox.position.x, - // this.attackBox.position.y, - // this.attackBox.width, - // this.attackBox.height - // ) - - this.position.x += this.velocity.x; - this.position.y += this.velocity.y; - - // gravity function - if ( - this.position.y + this.height + this.velocity.y >= - canvas.height - 170 - ) { - this.velocity.y = 0; - this.position.y = 570; - } else this.velocity.y += gravity; - } - - attack1() { - this.switchSprite("attack1"); - this.isAttacking = true; - } - attack2() { - this.switchSprite("attack2"); - this.isAttacking = true; - } - - takeHit() { - this.health -= 10; - - if (this.health <= 0) { - this.switchSprite("death"); - } else this.switchSprite("takeHit"); - } - - switchSprite(sprite) { - if (this.image === this.sprites.death.image) { - if (this.framesCurrent === this.sprites.death.framesMax - 1) - this.dead = true; - return; - } - // overriding all other animations with the attack2 animation - if ( - this.image === this.sprites.attack2.image && - this.framesCurrent < this.sprites.attack2.framesMax - 1 - ) - return; - - // overriding all other animations with the attack1 animation - if ( - this.image === this.sprites.attack1.image && - this.framesCurrent < this.sprites.attack1.framesMax - 1 - ) - return; - - // override when fighter gets hit - if ( - this.image === this.sprites.takeHit.image && - this.framesCurrent < this.sprites.takeHit.framesMax - 1 - ) - return; - - switch (sprite) { - case "idle": - if (this.image !== this.sprites.idle.image) { - this.image = this.sprites.idle.image; - this.framesMax = this.sprites.idle.framesMax; - this.framesCurrent = 0; - } - break; - case "run": - if (this.image !== this.sprites.run.image) { - this.image = this.sprites.run.image; - this.framesMax = this.sprites.run.framesMax; - this.framesCurrent = 0; - } - break; - case "jump": - if (this.image !== this.sprites.jump.image) { - this.image = this.sprites.jump.image; - this.framesMax = this.sprites.jump.framesMax; - this.framesCurrent = 0; - } - break; - - case "fall": - if (this.image !== this.sprites.fall.image) { - this.image = this.sprites.fall.image; - this.framesMax = this.sprites.fall.framesMax; - this.framesCurrent = 0; - } - break; - - case "attack1": - if (this.image !== this.sprites.attack1.image) { - this.image = this.sprites.attack1.image; - this.framesMax = this.sprites.attack1.framesMax; - this.framesCurrent = 0; - } - break; - - case "attack2": - if (this.image !== this.sprites.attack2.image) { - this.image = this.sprites.attack2.image; - this.framesMax = this.sprites.attack2.framesMax; - this.framesCurrent = 0; - } - break; - - case "takeHit": - if (this.image !== this.sprites.takeHit.image) { - this.image = this.sprites.takeHit.image; - this.framesMax = this.sprites.takeHit.framesMax; - this.framesCurrent = 0; - } - break; - - case "death": - if (this.image !== this.sprites.death.image) { - this.image = this.sprites.death.image; - this.framesMax = this.sprites.death.framesMax; - this.framesCurrent = 0; - } - break; - } - } -} +class Sprite { + constructor({ + position, + imageSrc, + scale = 1, + framesMax = 1, + offset = { x: 0, y: 0 }, + }) { + this.position = position; + this.width = 50; + this.height = 150; + this.image = new Image(); + this.image.src = imageSrc; + this.scale = scale; + this.framesMax = framesMax; + this.framesCurrent = 0; + this.framesElapsed = 0; + this.framesHold = 5; + this.offset = offset; + } + + draw() { + c.drawImage( + this.image, + this.framesCurrent * (this.image.width / this.framesMax), + 0, + this.image.width / this.framesMax, + this.image.height, + this.position.x - this.offset.x, + this.position.y - this.offset.y, + (this.image.width / this.framesMax) * this.scale, + this.image.height * this.scale + ); + } + + animateFrames() { + this.framesElapsed++; + + if (this.framesElapsed % this.framesHold === 0) { + if (this.framesCurrent < this.framesMax - 1) { + this.framesCurrent++; + } else { + this.framesCurrent = 0; + } + } + } + + update() { + this.draw(); + this.animateFrames(); + } +} + +class Fighter extends Sprite { + constructor({ + position, + velocity, + color = "red", + imageSrc, + scale = 1, + framesMax = 1, + offset = { x: 0, y: 0 }, + sprites, + attackBox = { offset: {}, width: undefined, height: undefined }, + }) { + super({ + position, + imageSrc, + scale, + framesMax, + offset, + }); + + this.velocity = velocity; + this.width = 50; + this.height = 150; + this.lastKey; + this.attackBox = { + position: { + x: this.position.x, + y: this.position.y, + }, + offset: attackBox.offset, + width: attackBox.width, + height: attackBox.height, + }; + this.color = color; + this.isAttacking; + this.health = 100; + this.framesCurrent = 0; + this.framesElapsed = 0; + this.framesHold = 5; + this.sprites = sprites; + this.dead = false; + + for (const sprite in this.sprites) { + sprites[sprite].image = new Image(); + sprites[sprite].image.src = sprites[sprite].imageSrc; + } + } + + update() { + this.draw(); + if (!this.dead) this.animateFrames(); + + // attack boxes + this.attackBox.position.x = this.position.x + this.attackBox.offset.x; + this.attackBox.position.y = this.position.y + this.attackBox.offset.y; + + // draw the attack box + // c.fillRect( + // this.attackBox.position.x, + // this.attackBox.position.y, + // this.attackBox.width, + // this.attackBox.height + // ) + + this.position.x += this.velocity.x; + this.position.y += this.velocity.y; + + // gravity function + if ( + this.position.y + this.height + this.velocity.y >= + canvas.height - 170 + ) { + this.velocity.y = 0; + this.position.y = 570; + } else this.velocity.y += gravity; + } + + attack1() { + this.switchSprite("attack1"); + this.isAttacking = true; + } + attack2() { + this.switchSprite("attack2"); + this.isAttacking = true; + } + + takeHit() { + this.health -= 10; + + if (this.health <= 0) { + this.switchSprite("death"); + } else this.switchSprite("takeHit"); + } + + switchSprite(sprite) { + if (this.image === this.sprites.death.image) { + if (this.framesCurrent === this.sprites.death.framesMax - 1) + this.dead = true; + return; + } + // overriding all other animations with the attack2 animation + if ( + this.image === this.sprites.attack2.image && + this.framesCurrent < this.sprites.attack2.framesMax - 1 + ) + return; + + // overriding all other animations with the attack1 animation + if ( + this.image === this.sprites.attack1.image && + this.framesCurrent < this.sprites.attack1.framesMax - 1 + ) + return; + + // override when fighter gets hit + if ( + this.image === this.sprites.takeHit.image && + this.framesCurrent < this.sprites.takeHit.framesMax - 1 + ) + return; + + switch (sprite) { + case "idle": + if (this.image !== this.sprites.idle.image) { + this.image = this.sprites.idle.image; + this.framesMax = this.sprites.idle.framesMax; + this.framesCurrent = 0; + } + break; + case "run": + if (this.image !== this.sprites.run.image) { + this.image = this.sprites.run.image; + this.framesMax = this.sprites.run.framesMax; + this.framesCurrent = 0; + } + break; + case "jump": + if (this.image !== this.sprites.jump.image) { + this.image = this.sprites.jump.image; + this.framesMax = this.sprites.jump.framesMax; + this.framesCurrent = 0; + } + break; + + case "fall": + if (this.image !== this.sprites.fall.image) { + this.image = this.sprites.fall.image; + this.framesMax = this.sprites.fall.framesMax; + this.framesCurrent = 0; + } + break; + + case "attack1": + if (this.image !== this.sprites.attack1.image) { + this.image = this.sprites.attack1.image; + this.framesMax = this.sprites.attack1.framesMax; + this.framesCurrent = 0; + } + break; + + case "attack2": + if (this.image !== this.sprites.attack2.image) { + this.image = this.sprites.attack2.image; + this.framesMax = this.sprites.attack2.framesMax; + this.framesCurrent = 0; + } + break; + + case "takeHit": + if (this.image !== this.sprites.takeHit.image) { + this.image = this.sprites.takeHit.image; + this.framesMax = this.sprites.takeHit.framesMax; + this.framesCurrent = 0; + } + break; + + case "death": + if (this.image !== this.sprites.death.image) { + this.image = this.sprites.death.image; + this.framesMax = this.sprites.death.framesMax; + this.framesCurrent = 0; + } + break; + } + } +} diff --git a/Games/Fight_Game/index.html b/Games/Fight_Game/index.html index ba712bc547..dcc55486da 100644 --- a/Games/Fight_Game/index.html +++ b/Games/Fight_Game/index.html @@ -1,114 +1,114 @@ - - - - - - - Samurai Mack - - - - - - - - -
-
-
- -
-
-
-
- -
-
- - -
-
-
-
-
-
-
- - -
- - - - - + + + + + + + Samurai Mack + + + + + + + + +
+
+
+ +
+
+
+
+ +
+
+ + +
+
+
+
+
+
+
+ + +
+ + + + + diff --git a/Games/Fight_Game/index.js b/Games/Fight_Game/index.js index fafe57930f..964f176502 100644 --- a/Games/Fight_Game/index.js +++ b/Games/Fight_Game/index.js @@ -1,352 +1,352 @@ -var audio = new Audio("./music.mp3"); -audio.autoplay = true; -audio.play(); -audio.volume = 0.5; -setInterval(() => { - audio.autoplay = true; - audio.play(); - audio.volume = 0.5; -}, 120000); - -const canvas = document.querySelector("canvas"); -const c = canvas.getContext("2d"); -canvas.width = "1900"; -canvas.height = "885"; -c.fillRect(0, 0, canvas.width, canvas.height); -const gravity = 0.7; - -const background = new Sprite({ - position: { - x: 0, - y: 0, - }, - imageSrc: "./img/background.png", -}); - -const shop = new Sprite({ - position: { - x: 1400, - y: 305, - }, - imageSrc: "./img/shop.png", - scale: 3.25, - framesMax: 6, -}); - -const player = new Fighter({ - position: { - x: 100, - y: 0, - }, - velocity: { - x: 0, - y: 0, - }, - offset: { - x: 0, - y: 0, - }, - imageSrc: "./img/samuraiMack/Idle.png", - framesMax: 8, - scale: 2.5, - offset: { - x: 100, - y: 157, - }, - sprites: { - idle: { - imageSrc: "./img/samuraiMack/Idle.png", - framesMax: 8, - }, - run: { - imageSrc: "./img/samuraiMack/Run.png", - framesMax: 8, - }, - jump: { - imageSrc: "./img/samuraiMack/Jump.png", - framesMax: 2, - }, - fall: { - imageSrc: "./img/samuraiMack/Fall.png", - framesMax: 2, - }, - attack1: { - imageSrc: "./img/samuraiMack/Attack1.png", - framesMax: 6, - }, - attack2: { - imageSrc: "./img/samuraiMack/Attack2.png", - framesMax: 6, - }, - takeHit: { - imageSrc: "./img/samuraiMack/Take Hit - white silhouette.png", - framesMax: 4, - }, - death: { - imageSrc: "./img/samuraiMack/Death.png", - framesMax: 6, - }, - }, - attackBox: { - offset: { - x: 100, - y: 50, - }, - width: 200, - height: 50, - }, -}); -player.draw(); - -const enemy = new Fighter({ - position: { - x: 1500, - y: 100, - }, - velocity: { - x: 0, - y: 0, - }, - color: "blue", - offset: { - x: -50, - y: 0, - }, - imageSrc: "./img/kenji/Idle.png", - framesMax: 8, - scale: 2.5, - offset: { - x: 215, - y: 167, - }, - sprites: { - idle: { - imageSrc: "./img/kenji/Idle.png", - framesMax: 4, - }, - run: { - imageSrc: "./img/kenji/Run.png", - framesMax: 8, - }, - jump: { - imageSrc: "./img/kenji/Jump.png", - framesMax: 2, - }, - fall: { - imageSrc: "./img/kenji/Fall.png", - framesMax: 2, - }, - attack1: { - imageSrc: "./img/kenji/Attack1.png", - framesMax: 4, - }, - attack2: { - imageSrc: "./img/kenji/Attack2.png", - framesMax: 4, - }, - takeHit: { - imageSrc: "./img/kenji/Take hit.png", - framesMax: 3, - }, - death: { - imageSrc: "./img/kenji/Death.png", - framesMax: 7, - }, - }, - attackBox: { - offset: { - x: -250, - y: 50, - }, - width: 100, - height: 50, - }, -}); - -enemy.draw(); - -const keys = { - a: { - pressed: false, - }, - d: { - pressed: false, - }, - ArrowRight: { - pressed: false, - }, - ArrowLeft: { - pressed: false, - }, -}; - -decreaseTimer(); - -function animate() { - window.requestAnimationFrame(animate); - c.fillStyle = "black"; - c.fillRect(0, 0, canvas.width, canvas.height); - //Objects Rendering - background.update(); - shop.update(); - c.fillStyle = "rgba(255,255,255,0.2)"; - c.fillRect(0, 0, canvas.width, canvas.height); - player.update(); - enemy.update(); - - player.velocity.x = 0; - enemy.velocity.x = 0; - - //player bound - if (player.position.x >= 1700) player.position.x = 1700; - if (player.position.x <= -100) player.position.x = -100; - //enemy bound - if (enemy.position.x >= 1750) enemy.position.x = 1750; - if (enemy.position.x <= 1) enemy.position.x = 1; - - //Player Movement - if (keys.a.pressed && player.lastKey == "a") { - player.velocity.x = -10; - player.switchSprite("run"); - } else if (keys.d.pressed && player.lastKey == "d") { - player.velocity.x = 10; - player.switchSprite("run"); - } else { - player.switchSprite("idle"); - } - - //player jumping - if (player.velocity.y < 0) { - player.switchSprite("jump"); - } else if (player.velocity.y > 0) { - player.switchSprite("fall"); - } - - //Enemy movement - if (keys.ArrowLeft.pressed && enemy.lastKey == "ArrowLeft") { - enemy.velocity.x = -10; - enemy.switchSprite("run"); - } else if (keys.ArrowRight.pressed && enemy.lastKey == "ArrowRight") { - enemy.velocity.x = 10; - enemy.switchSprite("run"); - } else { - enemy.switchSprite("idle"); - } - - //enemy jumping - if (enemy.velocity.y < 0) { - enemy.switchSprite("jump"); - } else if (enemy.velocity.y > 0) { - enemy.switchSprite("fall"); - } - //Collision Detection - //for player collision - if ( - rectangularCollisions({ - rectangle1: player, - rectangle2: enemy, - }) && - player.isAttacking && - player.framesCurrent === 4 - ) { - enemy.takeHit(); - player.isAttacking = false; - document.querySelector("#enemyHealth").style.width = enemy.health + "%"; - } - //if player misses - if (player.isAttacking && player.framesCurrent === 4) { - player.isAttacking = false; - } - //For enemy collision - if ( - rectangularCollisions({ - rectangle1: enemy, - rectangle2: player, - }) && - enemy.isAttacking && - enemy.framesCurrent === 2 - ) { - player.takeHit(); - enemy.isAttacking = false; - document.querySelector("#playerHealth").style.width = player.health + "%"; - } - //if enemy misses - if (enemy.isAttacking && enemy.framesCurrent === 2) { - enemy.isAttacking = false; - } - - //End game based on health - if (enemy.health <= 0 || player.health <= 0) { - determineWinner({ player, enemy, timerId }); - } -} -animate(); - -window.addEventListener("keydown", (event) => { - if (!player.dead) { - switch (event.key) { - //Player Movement - case "d": - keys.d.pressed = true; - player.lastKey = "d"; - break; - case "a": - keys.a.pressed = true; - player.lastKey = "a"; - break; - case "w": - if (player.position.y > 250) { - player.velocity.y = -17; - } - break; - case " ": - player.attack1(); - break; - case "f": - player.attack2(); - break; - } - } - //Enemy Movement - if (!enemy.dead) { - switch (event.key) { - case "ArrowRight": - keys.ArrowRight.pressed = true; - enemy.lastKey = "ArrowRight"; - - break; - case "ArrowLeft": - keys.ArrowLeft.pressed = true; - enemy.lastKey = "ArrowLeft"; - - break; - case "ArrowUp": - if (enemy.position.y > 250) { - enemy.velocity.y = -17; - } - break; - case "ArrowDown": - enemy.attack1(); - break; - case "Control": - enemy.attack2(); - break; - } - } - addEventListener("keyup", (event) => { - switch (event.key) { - case "d": - keys.d.pressed = false; - break; - case "a": - keys.a.pressed = false; - break; - //Enemy Keys - case "ArrowRight": - keys.ArrowRight.pressed = false; - break; - case "ArrowLeft": - keys.ArrowLeft.pressed = false; - } - }); -}); +var audio = new Audio("./music.mp3"); +audio.autoplay = true; +audio.play(); +audio.volume = 0.5; +setInterval(() => { + audio.autoplay = true; + audio.play(); + audio.volume = 0.5; +}, 120000); + +const canvas = document.querySelector("canvas"); +const c = canvas.getContext("2d"); +canvas.width = "1900"; +canvas.height = "885"; +c.fillRect(0, 0, canvas.width, canvas.height); +const gravity = 0.7; + +const background = new Sprite({ + position: { + x: 0, + y: 0, + }, + imageSrc: "./img/background.png", +}); + +const shop = new Sprite({ + position: { + x: 1400, + y: 305, + }, + imageSrc: "./img/shop.png", + scale: 3.25, + framesMax: 6, +}); + +const player = new Fighter({ + position: { + x: 100, + y: 0, + }, + velocity: { + x: 0, + y: 0, + }, + offset: { + x: 0, + y: 0, + }, + imageSrc: "./img/samuraiMack/Idle.png", + framesMax: 8, + scale: 2.5, + offset: { + x: 100, + y: 157, + }, + sprites: { + idle: { + imageSrc: "./img/samuraiMack/Idle.png", + framesMax: 8, + }, + run: { + imageSrc: "./img/samuraiMack/Run.png", + framesMax: 8, + }, + jump: { + imageSrc: "./img/samuraiMack/Jump.png", + framesMax: 2, + }, + fall: { + imageSrc: "./img/samuraiMack/Fall.png", + framesMax: 2, + }, + attack1: { + imageSrc: "./img/samuraiMack/Attack1.png", + framesMax: 6, + }, + attack2: { + imageSrc: "./img/samuraiMack/Attack2.png", + framesMax: 6, + }, + takeHit: { + imageSrc: "./img/samuraiMack/Take Hit - white silhouette.png", + framesMax: 4, + }, + death: { + imageSrc: "./img/samuraiMack/Death.png", + framesMax: 6, + }, + }, + attackBox: { + offset: { + x: 100, + y: 50, + }, + width: 200, + height: 50, + }, +}); +player.draw(); + +const enemy = new Fighter({ + position: { + x: 1500, + y: 100, + }, + velocity: { + x: 0, + y: 0, + }, + color: "blue", + offset: { + x: -50, + y: 0, + }, + imageSrc: "./img/kenji/Idle.png", + framesMax: 8, + scale: 2.5, + offset: { + x: 215, + y: 167, + }, + sprites: { + idle: { + imageSrc: "./img/kenji/Idle.png", + framesMax: 4, + }, + run: { + imageSrc: "./img/kenji/Run.png", + framesMax: 8, + }, + jump: { + imageSrc: "./img/kenji/Jump.png", + framesMax: 2, + }, + fall: { + imageSrc: "./img/kenji/Fall.png", + framesMax: 2, + }, + attack1: { + imageSrc: "./img/kenji/Attack1.png", + framesMax: 4, + }, + attack2: { + imageSrc: "./img/kenji/Attack2.png", + framesMax: 4, + }, + takeHit: { + imageSrc: "./img/kenji/Take hit.png", + framesMax: 3, + }, + death: { + imageSrc: "./img/kenji/Death.png", + framesMax: 7, + }, + }, + attackBox: { + offset: { + x: -250, + y: 50, + }, + width: 100, + height: 50, + }, +}); + +enemy.draw(); + +const keys = { + a: { + pressed: false, + }, + d: { + pressed: false, + }, + ArrowRight: { + pressed: false, + }, + ArrowLeft: { + pressed: false, + }, +}; + +decreaseTimer(); + +function animate() { + window.requestAnimationFrame(animate); + c.fillStyle = "black"; + c.fillRect(0, 0, canvas.width, canvas.height); + //Objects Rendering + background.update(); + shop.update(); + c.fillStyle = "rgba(255,255,255,0.2)"; + c.fillRect(0, 0, canvas.width, canvas.height); + player.update(); + enemy.update(); + + player.velocity.x = 0; + enemy.velocity.x = 0; + + //player bound + if (player.position.x >= 1700) player.position.x = 1700; + if (player.position.x <= -100) player.position.x = -100; + //enemy bound + if (enemy.position.x >= 1750) enemy.position.x = 1750; + if (enemy.position.x <= 1) enemy.position.x = 1; + + //Player Movement + if (keys.a.pressed && player.lastKey == "a") { + player.velocity.x = -10; + player.switchSprite("run"); + } else if (keys.d.pressed && player.lastKey == "d") { + player.velocity.x = 10; + player.switchSprite("run"); + } else { + player.switchSprite("idle"); + } + + //player jumping + if (player.velocity.y < 0) { + player.switchSprite("jump"); + } else if (player.velocity.y > 0) { + player.switchSprite("fall"); + } + + //Enemy movement + if (keys.ArrowLeft.pressed && enemy.lastKey == "ArrowLeft") { + enemy.velocity.x = -10; + enemy.switchSprite("run"); + } else if (keys.ArrowRight.pressed && enemy.lastKey == "ArrowRight") { + enemy.velocity.x = 10; + enemy.switchSprite("run"); + } else { + enemy.switchSprite("idle"); + } + + //enemy jumping + if (enemy.velocity.y < 0) { + enemy.switchSprite("jump"); + } else if (enemy.velocity.y > 0) { + enemy.switchSprite("fall"); + } + //Collision Detection + //for player collision + if ( + rectangularCollisions({ + rectangle1: player, + rectangle2: enemy, + }) && + player.isAttacking && + player.framesCurrent === 4 + ) { + enemy.takeHit(); + player.isAttacking = false; + document.querySelector("#enemyHealth").style.width = enemy.health + "%"; + } + //if player misses + if (player.isAttacking && player.framesCurrent === 4) { + player.isAttacking = false; + } + //For enemy collision + if ( + rectangularCollisions({ + rectangle1: enemy, + rectangle2: player, + }) && + enemy.isAttacking && + enemy.framesCurrent === 2 + ) { + player.takeHit(); + enemy.isAttacking = false; + document.querySelector("#playerHealth").style.width = player.health + "%"; + } + //if enemy misses + if (enemy.isAttacking && enemy.framesCurrent === 2) { + enemy.isAttacking = false; + } + + //End game based on health + if (enemy.health <= 0 || player.health <= 0) { + determineWinner({ player, enemy, timerId }); + } +} +animate(); + +window.addEventListener("keydown", (event) => { + if (!player.dead) { + switch (event.key) { + //Player Movement + case "d": + keys.d.pressed = true; + player.lastKey = "d"; + break; + case "a": + keys.a.pressed = true; + player.lastKey = "a"; + break; + case "w": + if (player.position.y > 250) { + player.velocity.y = -17; + } + break; + case " ": + player.attack1(); + break; + case "f": + player.attack2(); + break; + } + } + //Enemy Movement + if (!enemy.dead) { + switch (event.key) { + case "ArrowRight": + keys.ArrowRight.pressed = true; + enemy.lastKey = "ArrowRight"; + + break; + case "ArrowLeft": + keys.ArrowLeft.pressed = true; + enemy.lastKey = "ArrowLeft"; + + break; + case "ArrowUp": + if (enemy.position.y > 250) { + enemy.velocity.y = -17; + } + break; + case "ArrowDown": + enemy.attack1(); + break; + case "Control": + enemy.attack2(); + break; + } + } + addEventListener("keyup", (event) => { + switch (event.key) { + case "d": + keys.d.pressed = false; + break; + case "a": + keys.a.pressed = false; + break; + //Enemy Keys + case "ArrowRight": + keys.ArrowRight.pressed = false; + break; + case "ArrowLeft": + keys.ArrowLeft.pressed = false; + } + }); +}); diff --git a/Games/Fight_Game/utils.js b/Games/Fight_Game/utils.js index 52d9126eea..4c98d56753 100644 --- a/Games/Fight_Game/utils.js +++ b/Games/Fight_Game/utils.js @@ -1,38 +1,38 @@ -function rectangularCollisions({ rectangle1, rectangle2 }) { - return ( - rectangle1.attackBox.position.x + rectangle1.attackBox.width >= - rectangle2.position.x && - rectangle1.attackBox.position.x <= - rectangle2.position.x + rectangle2.width && - rectangle1.attackBox.position.y + rectangle1.attackBox.height >= - rectangle2.position.y && - rectangle1.attackBox.position.y <= rectangle2.position.y + rectangle2.height - ); -} - -function determineWinner({ player, enemy, timerId }) { - clearTimeout(timerId); - document.querySelector("#displayText").style.display = "flex"; - if (player.health === enemy.health) { - document.querySelector("#displayText").innerHTML = "Tie"; - } else if (player.health > enemy.health) { - document.querySelector("#displayText").innerHTML = "Player 1 Wins"; - } else if (player.health < enemy.health) { - document.querySelector("#displayText").innerHTML = "Player 2 Wins"; - } -} - -let timer = 30; -let timerId; -function decreaseTimer() { - if (timer >= 0) { - timerId = setTimeout(() => { - decreaseTimer(); - }, 1000); - document.querySelector("#timer").innerHTML = timer; - timer--; - } - if (timer === 0) { - determineWinner({ player, enemy, timerId }); - } -} +function rectangularCollisions({ rectangle1, rectangle2 }) { + return ( + rectangle1.attackBox.position.x + rectangle1.attackBox.width >= + rectangle2.position.x && + rectangle1.attackBox.position.x <= + rectangle2.position.x + rectangle2.width && + rectangle1.attackBox.position.y + rectangle1.attackBox.height >= + rectangle2.position.y && + rectangle1.attackBox.position.y <= rectangle2.position.y + rectangle2.height + ); +} + +function determineWinner({ player, enemy, timerId }) { + clearTimeout(timerId); + document.querySelector("#displayText").style.display = "flex"; + if (player.health === enemy.health) { + document.querySelector("#displayText").innerHTML = "Tie"; + } else if (player.health > enemy.health) { + document.querySelector("#displayText").innerHTML = "Player 1 Wins"; + } else if (player.health < enemy.health) { + document.querySelector("#displayText").innerHTML = "Player 2 Wins"; + } +} + +let timer = 30; +let timerId; +function decreaseTimer() { + if (timer >= 0) { + timerId = setTimeout(() => { + decreaseTimer(); + }, 1000); + document.querySelector("#timer").innerHTML = timer; + timer--; + } + if (timer === 0) { + determineWinner({ player, enemy, timerId }); + } +} diff --git a/Games/Flappy_Bird/README.md b/Games/Flappy_Bird/README.md index de53568f2f..9937daa915 100644 --- a/Games/Flappy_Bird/README.md +++ b/Games/Flappy_Bird/README.md @@ -1,43 +1,43 @@ -**Simon_Game_Challenge** - - This is a simple implementation of the Flappy Bird game using HTML, CSS, and JavaScript. - -
- - ## **Description ๐Ÿ“ƒ** - - Flappy Bird is a popular side-scrolling game where the player controls a bird and tries to navigate it through gaps between pipes without touching them. The objective is to achieve the highest possible score by successfully passing through as many gaps as possible. - - ## **functionalities ๐ŸŽฎ** - - The game starts as soon as it is loaded in the browser. - - The player can control the bird's movement by clicking or tapping on the screen, causing the bird to flap its wings and ascend. - - Gravity pulls the bird downward, and if it touches any of the pipes or the ground, the game is over. - - The player's score increases with each successfully passed gap between the pipes. - - The game keeps track of the player's highest score. - - The player can restart the game by refreshing the page. -
- - ## **How to play? ๐Ÿ•น๏ธ** - - To play or keep the bird Floating Press Space or Arrow Up key - - The game will stopp once the birds collides or Falls - - Press space or arrowup key to then restart the game - - -
- - ## **Screenshots ๐Ÿ“ธ** - -
- - ![image](../../assets/images/Flappy_Bird_Game.png) - -
- - ## **Working video ๐Ÿ“น** - -
- - -https://github.com/AbhishekPSingh07/GameZone/assets/79076050/7e790f27-2092-4810-8612-d31fe38609ab - - -
+**Simon_Game_Challenge** + + This is a simple implementation of the Flappy Bird game using HTML, CSS, and JavaScript. + +
+ + ## **Description ๐Ÿ“ƒ** + - Flappy Bird is a popular side-scrolling game where the player controls a bird and tries to navigate it through gaps between pipes without touching them. The objective is to achieve the highest possible score by successfully passing through as many gaps as possible. + + ## **functionalities ๐ŸŽฎ** + - The game starts as soon as it is loaded in the browser. + - The player can control the bird's movement by clicking or tapping on the screen, causing the bird to flap its wings and ascend. + - Gravity pulls the bird downward, and if it touches any of the pipes or the ground, the game is over. + - The player's score increases with each successfully passed gap between the pipes. + - The game keeps track of the player's highest score. + - The player can restart the game by refreshing the page. +
+ + ## **How to play? ๐Ÿ•น๏ธ** + - To play or keep the bird Floating Press Space or Arrow Up key + - The game will stopp once the birds collides or Falls + - Press space or arrowup key to then restart the game + + +
+ + ## **Screenshots ๐Ÿ“ธ** + +
+ + ![image](../../assets/images/Flappy_Bird_Game.png) + +
+ + ## **Working video ๐Ÿ“น** + +
+ + +https://github.com/AbhishekPSingh07/GameZone/assets/79076050/7e790f27-2092-4810-8612-d31fe38609ab + + +
diff --git a/Games/Flappy_Bird/index.html b/Games/Flappy_Bird/index.html index a2b4225381..39319337c5 100644 --- a/Games/Flappy_Bird/index.html +++ b/Games/Flappy_Bird/index.html @@ -1,25 +1,25 @@ - - - - - - Flappy Bird - - - - - - -
-
- -
-

How To Play

-

Press Space or ArrowUp key to help the bird fly

-

Press Space or ArrowUp key to Restart

-
-
- - + + + + + + Flappy Bird + + + + + + +
+
+ +
+

How To Play

+

Press Space or ArrowUp key to help the bird fly

+

Press Space or ArrowUp key to Restart

+
+
+ + diff --git a/Games/Flappy_Bird/script.js b/Games/Flappy_Bird/script.js index 3f92f03ad2..2ead587dba 100644 --- a/Games/Flappy_Bird/script.js +++ b/Games/Flappy_Bird/script.js @@ -1,182 +1,182 @@ -//canvas -let canvas; -let boardWidth = 780; -let boardHeight = 720; -let context; - -//bird -let birdHeight = 24; -let birdWidth = 34; -let birdX = boardWidth/8; -let birdY = boardHeight/2; -let birdImage; - -let bird = { - x : birdX, - y : birdY, - width : birdWidth, - height : birdHeight -} - -//pipes -let pipeArray = []; -let pipeWidth = 64; -let pipeHeight = 512; -let pipeX = boardWidth; -let pipeY = 0; -let topPipeImg; -let bottomPipeImg; - -//score -let score = 0; -let HighScore = 0; - -//game Over -let gameOver = false; - -//physics -let velocityX = -2;//pipes moving left Speed -let velocityY = 0;//bird Jump seed -let gravity = 0.4; -window.onload = function(){ - canvas = document.getElementById("canvas"); - canvas.width = boardWidth; - canvas.height = boardHeight; - context = canvas.getContext('2d'); - - //load image bird - - birdImage = new Image(); - birdImage.src = "./assets/flappybird.png"; - birdImage.onload = function(){ - context.drawImage(birdImage,bird.x, bird.y, bird.width, bird.height); - } - - //load the pipes - topPipeImg = new Image(); - topPipeImg.src = "./assets/toppipe.png" - - bottomPipeImg = new Image(); - bottomPipeImg.src = "./assets/bottompipe.png"; - - requestAnimationFrame(Update); - setInterval(placePipes,2000); - document.addEventListener("keydown",moveBird); - -} -function Update(){ - requestAnimationFrame(Update); - if(gameOver){ - return; - } - context.clearRect(0,0,canvas.width,canvas.height); - - //bird - velocityY += gravity; - bird.y = Math.max(bird.y+velocityY,0); - context.drawImage(birdImage,bird.x, bird.y, bird.width, bird.height); - - if(bird.y > canvas.height){ - gameOver = true - } - - //pipe - for(let i=0;i pipe.width+pipe.x){ - score += 0.5; - pipe.passed = true; - } - - if(detectCollision(bird,pipe)){ - gameOver = true; - - } - - } - //clear - while(pipeArray.length >0 && pipeArray[0].x < -pipeWidth){ - pipeArray.shift() - } - //Score - context.fillStyle = "white"; - context.font = "45px sans-serif"; - context.fillText(score,5,45); - context.font = "25px sans-serif"; - context.fillText("HighScore: ",5,85); - if(score > HighScore){ - context.fillText(score,130,85); - }else{ - context.fillText(HighScore,130,85); - } - - - if(gameOver){ - context.font = "45px sans-serif"; - context.fillText("GAME OVER",20,320); - context.fillText("Score:",20,360); - context.fillText(score,155,360); - context.fillText("High Score:",20,400); - if(score> HighScore){ - context.fillText(score,255,400); - }else{ - context.fillText(HighScore,255,400); - } - - - } -} -function placePipes(){ - - if(gameOver){ - return; - } - let randomPipeY = pipeY - pipeHeight/4 - Math.random() *pipeHeight/2; - let openingSpace = canvas.height/4; - let topPipe = { - img : topPipeImg, - x : pipeX, - y : randomPipeY, - width : pipeWidth, - height : pipeHeight, - passed : false, - } - pipeArray.push(topPipe); - let bottomPipe = { - img : bottomPipeImg, - x : pipeX, - y : randomPipeY + pipeHeight + openingSpace, - width : pipeWidth, - height : pipeHeight, - passed : false, - } - - pipeArray.push(bottomPipe); - -} -function moveBird(e){ - if(e.code === "Space" || e.code === "ArrowUp"){ - //jump - velocityY = -6; - - if(gameOver){ - if(score > HighScore){ - HighScore = score; - } - bird.y = birdY; - pipeArray=[]; - score = 0; - gameOver = false; - } - } -} - -function detectCollision(a,b){ - return a.x b.x && - a.y b.y +//canvas +let canvas; +let boardWidth = 780; +let boardHeight = 720; +let context; + +//bird +let birdHeight = 24; +let birdWidth = 34; +let birdX = boardWidth/8; +let birdY = boardHeight/2; +let birdImage; + +let bird = { + x : birdX, + y : birdY, + width : birdWidth, + height : birdHeight +} + +//pipes +let pipeArray = []; +let pipeWidth = 64; +let pipeHeight = 512; +let pipeX = boardWidth; +let pipeY = 0; +let topPipeImg; +let bottomPipeImg; + +//score +let score = 0; +let HighScore = 0; + +//game Over +let gameOver = false; + +//physics +let velocityX = -2;//pipes moving left Speed +let velocityY = 0;//bird Jump seed +let gravity = 0.4; +window.onload = function(){ + canvas = document.getElementById("canvas"); + canvas.width = boardWidth; + canvas.height = boardHeight; + context = canvas.getContext('2d'); + + //load image bird + + birdImage = new Image(); + birdImage.src = "./assets/flappybird.png"; + birdImage.onload = function(){ + context.drawImage(birdImage,bird.x, bird.y, bird.width, bird.height); + } + + //load the pipes + topPipeImg = new Image(); + topPipeImg.src = "./assets/toppipe.png" + + bottomPipeImg = new Image(); + bottomPipeImg.src = "./assets/bottompipe.png"; + + requestAnimationFrame(Update); + setInterval(placePipes,2000); + document.addEventListener("keydown",moveBird); + +} +function Update(){ + requestAnimationFrame(Update); + if(gameOver){ + return; + } + context.clearRect(0,0,canvas.width,canvas.height); + + //bird + velocityY += gravity; + bird.y = Math.max(bird.y+velocityY,0); + context.drawImage(birdImage,bird.x, bird.y, bird.width, bird.height); + + if(bird.y > canvas.height){ + gameOver = true + } + + //pipe + for(let i=0;i pipe.width+pipe.x){ + score += 0.5; + pipe.passed = true; + } + + if(detectCollision(bird,pipe)){ + gameOver = true; + + } + + } + //clear + while(pipeArray.length >0 && pipeArray[0].x < -pipeWidth){ + pipeArray.shift() + } + //Score + context.fillStyle = "white"; + context.font = "45px sans-serif"; + context.fillText(score,5,45); + context.font = "25px sans-serif"; + context.fillText("HighScore: ",5,85); + if(score > HighScore){ + context.fillText(score,130,85); + }else{ + context.fillText(HighScore,130,85); + } + + + if(gameOver){ + context.font = "45px sans-serif"; + context.fillText("GAME OVER",20,320); + context.fillText("Score:",20,360); + context.fillText(score,155,360); + context.fillText("High Score:",20,400); + if(score> HighScore){ + context.fillText(score,255,400); + }else{ + context.fillText(HighScore,255,400); + } + + + } +} +function placePipes(){ + + if(gameOver){ + return; + } + let randomPipeY = pipeY - pipeHeight/4 - Math.random() *pipeHeight/2; + let openingSpace = canvas.height/4; + let topPipe = { + img : topPipeImg, + x : pipeX, + y : randomPipeY, + width : pipeWidth, + height : pipeHeight, + passed : false, + } + pipeArray.push(topPipe); + let bottomPipe = { + img : bottomPipeImg, + x : pipeX, + y : randomPipeY + pipeHeight + openingSpace, + width : pipeWidth, + height : pipeHeight, + passed : false, + } + + pipeArray.push(bottomPipe); + +} +function moveBird(e){ + if(e.code === "Space" || e.code === "ArrowUp"){ + //jump + velocityY = -6; + + if(gameOver){ + if(score > HighScore){ + HighScore = score; + } + bird.y = birdY; + pipeArray=[]; + score = 0; + gameOver = false; + } + } +} + +function detectCollision(a,b){ + return a.x b.x && + a.y b.y } \ No newline at end of file diff --git a/Games/Flappy_Bird/style.css b/Games/Flappy_Bird/style.css index abc02a8fff..d9e5865cf9 100644 --- a/Games/Flappy_Bird/style.css +++ b/Games/Flappy_Bird/style.css @@ -1,41 +1,41 @@ -body { - font-family: 'Courier New', Courier, monospace; - text-align: center; - display: flex; - justify-content: center; - align-items: center; - height: 100vh; - margin: 0; - padding: 10px; -} - -#container { - display: flex; - flex-wrap: wrap; - margin-top: 10px; -} - -#canvas { - background-image: url("./assets/flappybirdbg.png"); - width: 100%; - margin-top: 10px; - max-width: 780px; - height: auto; -} - -#instructions { - margin-left: 20px; -} - -/* Responsive Styles */ -@media (max-width: 600px) { - #container { - flex-direction: column; - align-items: center; - } - - #instructions { - margin-left: 0; - margin-top: 20px; - } -} +body { + font-family: 'Courier New', Courier, monospace; + text-align: center; + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + margin: 0; + padding: 10px; +} + +#container { + display: flex; + flex-wrap: wrap; + margin-top: 10px; +} + +#canvas { + background-image: url("./assets/flappybirdbg.png"); + width: 100%; + margin-top: 10px; + max-width: 780px; + height: auto; +} + +#instructions { + margin-left: 20px; +} + +/* Responsive Styles */ +@media (max-width: 600px) { + #container { + flex-direction: column; + align-items: center; + } + + #instructions { + margin-left: 0; + margin-top: 20px; + } +} diff --git a/Games/Fruit_Catching/README.md b/Games/Fruit_Catching/README.md index 5afc4a7043..d60820902c 100644 --- a/Games/Fruit_Catching/README.md +++ b/Games/Fruit_Catching/README.md @@ -1,33 +1,33 @@ -# **Fruit_Catching** - ---- - -
- -## **Description ๐Ÿ“ƒ** - -- A game testing your reflexes. Your main aim is to catch as many fruits as you can using bucket. - -## **functionalities ๐ŸŽฎ** - -- Easy to play -- The speed of the the fallen fruits gradually increase as points increases. -
- -## **How to play? ๐Ÿ•น๏ธ** - -- Click the A or โ† button to move left -- Click the D or โ†’ button to move right - -
- -## **Screenshots ๐Ÿ“ธ** - -
- - [Fruit_Catching](https://github.com/Darkrider0007/GameZone/blob/main/Games/Fruit_Catching/assets/Screenshot%202023-06-20%20203811.png)| - -
- - - +# **Fruit_Catching** + +--- + +
+ +## **Description ๐Ÿ“ƒ** + +- A game testing your reflexes. Your main aim is to catch as many fruits as you can using bucket. + +## **functionalities ๐ŸŽฎ** + +- Easy to play +- The speed of the the fallen fruits gradually increase as points increases. +
+ +## **How to play? ๐Ÿ•น๏ธ** + +- Click the A or โ† button to move left +- Click the D or โ†’ button to move right + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ + [Fruit_Catching](https://github.com/Darkrider0007/GameZone/blob/main/Games/Fruit_Catching/assets/Screenshot%202023-06-20%20203811.png)| + +
+ + + diff --git a/Games/Fruit_Catching/custum.js b/Games/Fruit_Catching/custum.js index 57dcb1f6d1..11c9bee634 100644 --- a/Games/Fruit_Catching/custum.js +++ b/Games/Fruit_Catching/custum.js @@ -1,76 +1,76 @@ -var game = document.querySelector(".game"); -var basket = document.querySelector(".basket"); -var fruits = document.querySelector(".fruits"); -var basketLeft = parseInt(window.getComputedStyle(basket).getPropertyValue("left")); -var basketBottom = parseInt(window.getComputedStyle(basket).getPropertyValue("bottom")); -var score =0; -var fruitarray = ["images/apple.png","images/orange.png","images/mango.png","images/Strawberrie.png","images/Watermelon.png"] - -function moveBasketLeft(){ - if(basketLeft>0){ - basketLeft -=20; - basket.style.left = basketLeft + "px"; - } -} - -function moveBasketRight(){ - if(basketLeft<620){ - basketLeft +=20; - basket.style.left = basketLeft + "px"; - } - -} - -function control(e){ - if(e.key=="ArrowLeft" || e.key=="a"){ - moveBasketLeft(); - } - if(e.key=="ArrowRight" || e.key=="d"){ - moveBasketRight(); - } -} - -function generateFruits(){ - var fruitBottom = 470; - var fruitLeft = Math.floor(Math.random()*620); - var fruit = document.createElement('img'); - fruit.setAttribute("class","fruit"); - fruit.setAttribute("src",fruitarray[Math.floor(Math.random()*5)]); - fruits.appendChild(fruit); - function fallDownFruit(){ - if(fruitBottom < basketBottom + 50 && fruitBottom > basketBottom && fruitLeft > basketLeft - 30 && fruitLeft < basketLeft+80){ - fruits.removeChild(fruit); - clearInterval(fallInterval); - score++; - document.getElementById("pt").innerHTML = score; - } - if(fruitBottom < basketBottom){ - alert("Game Over! Your Score is: "+score); - location.reload(); - clearInterval(fallInterval); - clearInterval(fruitTimeout); - } - fruitBottom -= 4; - fruit.style.bottom = fruitBottom + "px"; - fruit.style.left = fruitLeft + "px"; - } - if(score>=0 && score<10){ - var fallInterval = setInterval(fallDownFruit, 20); - } - else if(score>=10 && score<20){ - var fallInterval = setInterval(fallDownFruit, 15); - } - else if(score>=20 && score<40){ - var fallInterval = setInterval(fallDownFruit, 12); - } - else if(score>=40 && score<60){ - var fallInterval = setInterval(fallDownFruit, 10); - } - else { - var fallInterval = setInterval(fallDownFruit, 5); - } - var fruitTimeout = setTimeout(generateFruits, 2000); -} -generateFruits(); - +var game = document.querySelector(".game"); +var basket = document.querySelector(".basket"); +var fruits = document.querySelector(".fruits"); +var basketLeft = parseInt(window.getComputedStyle(basket).getPropertyValue("left")); +var basketBottom = parseInt(window.getComputedStyle(basket).getPropertyValue("bottom")); +var score =0; +var fruitarray = ["images/apple.png","images/orange.png","images/mango.png","images/Strawberrie.png","images/Watermelon.png"] + +function moveBasketLeft(){ + if(basketLeft>0){ + basketLeft -=20; + basket.style.left = basketLeft + "px"; + } +} + +function moveBasketRight(){ + if(basketLeft<620){ + basketLeft +=20; + basket.style.left = basketLeft + "px"; + } + +} + +function control(e){ + if(e.key=="ArrowLeft" || e.key=="a"){ + moveBasketLeft(); + } + if(e.key=="ArrowRight" || e.key=="d"){ + moveBasketRight(); + } +} + +function generateFruits(){ + var fruitBottom = 470; + var fruitLeft = Math.floor(Math.random()*620); + var fruit = document.createElement('img'); + fruit.setAttribute("class","fruit"); + fruit.setAttribute("src",fruitarray[Math.floor(Math.random()*5)]); + fruits.appendChild(fruit); + function fallDownFruit(){ + if(fruitBottom < basketBottom + 50 && fruitBottom > basketBottom && fruitLeft > basketLeft - 30 && fruitLeft < basketLeft+80){ + fruits.removeChild(fruit); + clearInterval(fallInterval); + score++; + document.getElementById("pt").innerHTML = score; + } + if(fruitBottom < basketBottom){ + alert("Game Over! Your Score is: "+score); + location.reload(); + clearInterval(fallInterval); + clearInterval(fruitTimeout); + } + fruitBottom -= 4; + fruit.style.bottom = fruitBottom + "px"; + fruit.style.left = fruitLeft + "px"; + } + if(score>=0 && score<10){ + var fallInterval = setInterval(fallDownFruit, 20); + } + else if(score>=10 && score<20){ + var fallInterval = setInterval(fallDownFruit, 15); + } + else if(score>=20 && score<40){ + var fallInterval = setInterval(fallDownFruit, 12); + } + else if(score>=40 && score<60){ + var fallInterval = setInterval(fallDownFruit, 10); + } + else { + var fallInterval = setInterval(fallDownFruit, 5); + } + var fruitTimeout = setTimeout(generateFruits, 2000); +} +generateFruits(); + document.addEventListener("keydown",control); \ No newline at end of file diff --git a/Games/Fruit_Catching/index.html b/Games/Fruit_Catching/index.html index 76d7a813d7..a015860349 100644 --- a/Games/Fruit_Catching/index.html +++ b/Games/Fruit_Catching/index.html @@ -1,28 +1,28 @@ - - - - - - Fruit Catching - - - - - -
-
-

Points

-

0

-
- - -
-
-
-
-
- - + + + + + + Fruit Catching + + + + + +
+
+

Points

+

0

+
+ + +
+
+
+
+
+ + \ No newline at end of file diff --git a/Games/Fruit_Catching/styles.css b/Games/Fruit_Catching/styles.css index eb47c1285a..6f68cbdba2 100644 --- a/Games/Fruit_Catching/styles.css +++ b/Games/Fruit_Catching/styles.css @@ -1,56 +1,56 @@ -*{ - margin: 0; - padding: 0; -} -body{ - width: 100%; - height: 100vh; - display: flex; - justify-content: center; - align-items: center; - background-image: url("https://img.freepik.com/free-vector/farm-scene-with-many-different-fruits-trees-sunset-time_1308-61810.jpg?w=1380&t=st=1687269039~exp=1687269639~hmac=24fecae7d9f0b795d7c38e7b91b791215abf825b7df070b1e0d8c5a693722214"); - -} -.game{ - width: 700px; - height: 500px; - background-color: rgb(144, 240, 154); - position: relative; -} -.danger-line{ - width: 100%; - height: 15px; - background-color:red; - position: absolute; - bottom: 0; -} -.basket{ - width: 80px; - height: 50px; - background-color:#0000ff00; - position: absolute; - bottom: 15px; - left: calc(50%-25px); -} -.basket-img{ - height: 50px; - width: 80px; -} - -.fruit{ - width: 30px; - height: 30px; - /* background-color:green; */ - position: absolute; -} - -.points-table { - position: absolute; - left: 1200px; - top: 100px; -} -h1#pt { - position: absolute; - left: 30px; - font-size: 50px; -} +*{ + margin: 0; + padding: 0; +} +body{ + width: 100%; + height: 100vh; + display: flex; + justify-content: center; + align-items: center; + background-image: url("https://img.freepik.com/free-vector/farm-scene-with-many-different-fruits-trees-sunset-time_1308-61810.jpg?w=1380&t=st=1687269039~exp=1687269639~hmac=24fecae7d9f0b795d7c38e7b91b791215abf825b7df070b1e0d8c5a693722214"); + +} +.game{ + width: 700px; + height: 500px; + background-color: rgb(144, 240, 154); + position: relative; +} +.danger-line{ + width: 100%; + height: 15px; + background-color:red; + position: absolute; + bottom: 0; +} +.basket{ + width: 80px; + height: 50px; + background-color:#0000ff00; + position: absolute; + bottom: 15px; + left: calc(50%-25px); +} +.basket-img{ + height: 50px; + width: 80px; +} + +.fruit{ + width: 30px; + height: 30px; + /* background-color:green; */ + position: absolute; +} + +.points-table { + position: absolute; + left: 1200px; + top: 100px; +} +h1#pt { + position: absolute; + left: 30px; + font-size: 50px; +} diff --git a/Games/Fruit_Ninja/index.html b/Games/Fruit_Ninja/index.html index e77506a30a..93240a7306 100644 --- a/Games/Fruit_Ninja/index.html +++ b/Games/Fruit_Ninja/index.html @@ -1,278 +1,278 @@ - - - - - - - Fruit Ninja - - - - - - - - - - -
- -
- temple - -
- - - -
- katsuro -
- -
-

Fruit Ninja

-

Slice fruit. Avoid bombs. Thatโ€™s all you need to know to play Fruit Ninja!

-

Challenge yourself and see how long you can last in the game, set a high score or simply practice your fruit-slicing skills. - There has never been a better time to play Fruit Ninja, so unsheathe your sword and get ready for an addictive, action-packed gaming experience! -

-
- -
- -
- - - - - + + + + + + + Fruit Ninja + + + + + + + + + + +
+ +
+ temple + +
+ + + +
+ katsuro +
+ +
+

Fruit Ninja

+

Slice fruit. Avoid bombs. Thatโ€™s all you need to know to play Fruit Ninja!

+

Challenge yourself and see how long you can last in the game, set a high score or simply practice your fruit-slicing skills. + There has never been a better time to play Fruit Ninja, so unsheathe your sword and get ready for an addictive, action-packed gaming experience! +

+
+ +
+ +
+ + + + + diff --git a/Games/Fruit_Ninja/js/fruit.js b/Games/Fruit_Ninja/js/fruit.js index b0247af227..04034fd593 100644 --- a/Games/Fruit_Ninja/js/fruit.js +++ b/Games/Fruit_Ninja/js/fruit.js @@ -1,63 +1,63 @@ -// FRUIT -function Fruit(x,y,speed,color,size,fruit,slicedFruit1,slicedFruit2,name){ - this.x = x; - this.y = y; - this.speed = speed; - this.color = color; - this.size = size; - this.xSpeed = randomXSpeed(x); - this.ySpeed = random(-10.4, -7.4); - this.fruit = fruit; - this.slicedFruit1 = slicedFruit1; - this.slicedFruit2 = slicedFruit2; - this.name = name; - this.sliced = false; - this.visible = true; -} - -Fruit.prototype.draw = function(){ - fill(this.color); - if(this.sliced && this.name != 'boom'){ // Draw sliced fruit - image(this.slicedFruit1, this.x - 25, this.y, this.size, this.size); - image(this.slicedFruit2, this.x + 25, this.y, this.size, this.size); - }else{ // Draw fruit - image(this.fruit, this.x, this.y, this.size, this.size); - } -}; - -Fruit.prototype.update = function(){ - if(this.sliced && this.name != 'boom'){ - this.x -= this.xSpeed ; - this.y += this.ySpeed; - this.ySpeed += gravity*5; - }else{ - this.x += this.xSpeed; - this.y += this.ySpeed; - this.ySpeed += gravity; - } - if(this.y > height){ - this.visible = false; - } -}; - -function randomFruit(){ // Create random fruit - var x = random(width); - var y = height; - var size = noise(frameCount)*20 + 40; - var col = color(random(255),random(255),random(255)); - var speed = random(3,5); - var idx = round(random(0,fruitsList.length-1)); - var fruit = fruitsImgs[idx]; - var slicedFruit1 = slicedFruitsImgs[2*idx]; - var slicedFruit2 = slicedFruitsImgs[2*idx + 1]; - var name = fruitsList[idx]; - return new Fruit(x,y,speed,col,size,fruit,slicedFruit1,slicedFruit2,name); -} - -function randomXSpeed(x){ - if( x > width/2 ){ - return random(-2.8,-0.5); // If fruit generated on right side, go left - }else{ - return random(0.5,2.8); // If fruit generated on right side, go left - } -}; +// FRUIT +function Fruit(x,y,speed,color,size,fruit,slicedFruit1,slicedFruit2,name){ + this.x = x; + this.y = y; + this.speed = speed; + this.color = color; + this.size = size; + this.xSpeed = randomXSpeed(x); + this.ySpeed = random(-10.4, -7.4); + this.fruit = fruit; + this.slicedFruit1 = slicedFruit1; + this.slicedFruit2 = slicedFruit2; + this.name = name; + this.sliced = false; + this.visible = true; +} + +Fruit.prototype.draw = function(){ + fill(this.color); + if(this.sliced && this.name != 'boom'){ // Draw sliced fruit + image(this.slicedFruit1, this.x - 25, this.y, this.size, this.size); + image(this.slicedFruit2, this.x + 25, this.y, this.size, this.size); + }else{ // Draw fruit + image(this.fruit, this.x, this.y, this.size, this.size); + } +}; + +Fruit.prototype.update = function(){ + if(this.sliced && this.name != 'boom'){ + this.x -= this.xSpeed ; + this.y += this.ySpeed; + this.ySpeed += gravity*5; + }else{ + this.x += this.xSpeed; + this.y += this.ySpeed; + this.ySpeed += gravity; + } + if(this.y > height){ + this.visible = false; + } +}; + +function randomFruit(){ // Create random fruit + var x = random(width); + var y = height; + var size = noise(frameCount)*20 + 40; + var col = color(random(255),random(255),random(255)); + var speed = random(3,5); + var idx = round(random(0,fruitsList.length-1)); + var fruit = fruitsImgs[idx]; + var slicedFruit1 = slicedFruitsImgs[2*idx]; + var slicedFruit2 = slicedFruitsImgs[2*idx + 1]; + var name = fruitsList[idx]; + return new Fruit(x,y,speed,col,size,fruit,slicedFruit1,slicedFruit2,name); +} + +function randomXSpeed(x){ + if( x > width/2 ){ + return random(-2.8,-0.5); // If fruit generated on right side, go left + }else{ + return random(0.5,2.8); // If fruit generated on right side, go left + } +}; diff --git a/Games/Fruit_Ninja/js/main.js b/Games/Fruit_Ninja/js/main.js index 33eeb3f9bf..47feb173dd 100644 --- a/Games/Fruit_Ninja/js/main.js +++ b/Games/Fruit_Ninja/js/main.js @@ -1,216 +1,216 @@ -// GENERAL VARIABLES -var cnv; -var score, points = 0; -var lives, x = 0; -var isPlay = false; -var gravity = 0.1; -var sword; -var fruit = []; -var fruitsList = ['apple', 'banana', 'peach', 'strawberry', 'watermelon', 'boom']; -var fruitsImgs = [], slicedFruitsImgs = []; -var livesImgs = [], livesImgs2 = []; -var boom, spliced, missed, over, start; // sounds -var resetButton; -//var button, startButton; -// var timer; -// var counter = 60; -// var seconds, minutes; -// var timerValue = 60; - -resetButton = document.getElementById('resetButton'); -resetButton.addEventListener('click', resetGame); - -function preload(){ - - // LOAD SOUNDS - boom = loadSound('sounds/boom.mp3'); - spliced = loadSound('sounds/splatter.mp3'); - missed = loadSound('sounds/missed.mp3'); - start = loadSound('sounds/start.mp3'); - over = loadSound('sounds/over.mp3'); - - // LOAD IMAGES - for(var i=0; i= 60) { - // text("0:" + timerValue, width / 2, height / 2); - // } - // if (timerValue < 60) { - // text('0:0' + timerValue, width / 2, height / 2); - // } -} - -function check(){ // Check for game start - if( !isPlay && (mouseX > 300 && mouseX < 520 && mouseY > 350 && mouseY < 550)){ - start.play(); - isPlay = true; - } -} - -function game(){ - clear(); - background(bg); - if(mouseIsPressed){ // Draw sword - sword.swipe(mouseX, mouseY); - } - if(frameCount % 5 === 0){ - if(noise(frameCount) > 0.69){ - fruit.push(randomFruit()); // Display new fruit - } - } - points = 0 - for(var i=fruit.length-1; i>=0; i--){ - fruit[i].update(); - fruit[i].draw(); - if(!fruit[i].visible){ - if(!fruit[i].sliced && fruit[i].name != 'boom'){ // Missed fruit - image(this.livesImgs2[0], fruit[i].x, fruit[i].y - 120, 50, 50); - missed.play(); - lives--; - x++; - } - if(lives < 1 ){ // Check for lives - gameOver(); - } - fruit.splice(i,1); - }else{ - if(fruit[i].sliced && fruit[i].name == 'boom'){ // Check for bomb - boom.play() - gameOver(); - } - if(sword.checkSlice(fruit[i]) && fruit[i].name != 'boom'){ // Sliced fruit - spliced.play(); - points++; - fruit[i].update(); - fruit[i].draw(); - } - } - } - if(frameCount % 2 === 0 ){ - sword.update(); - } - sword.draw(); - score += points; - drawScore(); - drawLives(); -} - -function drawLives(){ - - image(this.livesImgs[0], width - 110, 20, livesImgs[0].width, livesImgs[0].height); - image(this.livesImgs[1], width - 88, 20, livesImgs[1].width, livesImgs[1].height); - image(this.livesImgs[2], width - 60, 20, livesImgs[2].width, livesImgs[2].height); - if(lives <= 2 ){ - image(this.livesImgs2[0], width - 110, 20, livesImgs2[0].width, livesImgs2[0].height); - } - if(lives <= 1){ - image(this.livesImgs2[1], width - 88, 20, livesImgs2[1].width, livesImgs2[1].height); - } - if(lives === 0){ - image(this.livesImgs2[2], width - 60, 20, livesImgs2[2].width, livesImgs2[2].height); - } -} - -function drawScore(){ - image(this.scoreImg, 10, 10, 40, 40); - textAlign(LEFT); - noStroke(); - fill(255,147,21); - textSize(50); - text(score, 50, 50); -} - -function gameOver(){ - noLoop(); - over.play(); - clear(); - background(bg); - image(this.gameOverImg, 155, 260, 490, 85); - lives = 0; - //button = createButton("Reset"); - //button.position(450, 350); - //button.mousePressed(resetSketch); -} - -function resetGame() { - // Reset game variables - score = 0; - lives = 3; - fruit = []; - isPlay = false; - loop(); // Restart the game loop -} - -// Timer Function - -// timer = createP("timer"); -// setInterval(timeIt, 1000); - -// textAlign(CENTER); -// setInterval(timeIt, 1000); - -// if (timerValue == 0) { -// text('game over', width / 2, height / 2 + 15); -// } -// fruit.push(new Fruit(random(width),height,3,"#FF00FF",random())); -// function resetSketch(){ -// clear(); -// background(bg); -// game(); -// } -// function timeIt() { -// if (timerValue > 0) { -// timerValue--; -// textAlign(CENTER); -// noStroke(); -// fill(255,147,21); -// textSize(50); -// text(timerValue, 200, 250); -// } -// } +// GENERAL VARIABLES +var cnv; +var score, points = 0; +var lives, x = 0; +var isPlay = false; +var gravity = 0.1; +var sword; +var fruit = []; +var fruitsList = ['apple', 'banana', 'peach', 'strawberry', 'watermelon', 'boom']; +var fruitsImgs = [], slicedFruitsImgs = []; +var livesImgs = [], livesImgs2 = []; +var boom, spliced, missed, over, start; // sounds +var resetButton; +//var button, startButton; +// var timer; +// var counter = 60; +// var seconds, minutes; +// var timerValue = 60; + +resetButton = document.getElementById('resetButton'); +resetButton.addEventListener('click', resetGame); + +function preload(){ + + // LOAD SOUNDS + boom = loadSound('sounds/boom.mp3'); + spliced = loadSound('sounds/splatter.mp3'); + missed = loadSound('sounds/missed.mp3'); + start = loadSound('sounds/start.mp3'); + over = loadSound('sounds/over.mp3'); + + // LOAD IMAGES + for(var i=0; i= 60) { + // text("0:" + timerValue, width / 2, height / 2); + // } + // if (timerValue < 60) { + // text('0:0' + timerValue, width / 2, height / 2); + // } +} + +function check(){ // Check for game start + if( !isPlay && (mouseX > 300 && mouseX < 520 && mouseY > 350 && mouseY < 550)){ + start.play(); + isPlay = true; + } +} + +function game(){ + clear(); + background(bg); + if(mouseIsPressed){ // Draw sword + sword.swipe(mouseX, mouseY); + } + if(frameCount % 5 === 0){ + if(noise(frameCount) > 0.69){ + fruit.push(randomFruit()); // Display new fruit + } + } + points = 0 + for(var i=fruit.length-1; i>=0; i--){ + fruit[i].update(); + fruit[i].draw(); + if(!fruit[i].visible){ + if(!fruit[i].sliced && fruit[i].name != 'boom'){ // Missed fruit + image(this.livesImgs2[0], fruit[i].x, fruit[i].y - 120, 50, 50); + missed.play(); + lives--; + x++; + } + if(lives < 1 ){ // Check for lives + gameOver(); + } + fruit.splice(i,1); + }else{ + if(fruit[i].sliced && fruit[i].name == 'boom'){ // Check for bomb + boom.play() + gameOver(); + } + if(sword.checkSlice(fruit[i]) && fruit[i].name != 'boom'){ // Sliced fruit + spliced.play(); + points++; + fruit[i].update(); + fruit[i].draw(); + } + } + } + if(frameCount % 2 === 0 ){ + sword.update(); + } + sword.draw(); + score += points; + drawScore(); + drawLives(); +} + +function drawLives(){ + + image(this.livesImgs[0], width - 110, 20, livesImgs[0].width, livesImgs[0].height); + image(this.livesImgs[1], width - 88, 20, livesImgs[1].width, livesImgs[1].height); + image(this.livesImgs[2], width - 60, 20, livesImgs[2].width, livesImgs[2].height); + if(lives <= 2 ){ + image(this.livesImgs2[0], width - 110, 20, livesImgs2[0].width, livesImgs2[0].height); + } + if(lives <= 1){ + image(this.livesImgs2[1], width - 88, 20, livesImgs2[1].width, livesImgs2[1].height); + } + if(lives === 0){ + image(this.livesImgs2[2], width - 60, 20, livesImgs2[2].width, livesImgs2[2].height); + } +} + +function drawScore(){ + image(this.scoreImg, 10, 10, 40, 40); + textAlign(LEFT); + noStroke(); + fill(255,147,21); + textSize(50); + text(score, 50, 50); +} + +function gameOver(){ + noLoop(); + over.play(); + clear(); + background(bg); + image(this.gameOverImg, 155, 260, 490, 85); + lives = 0; + //button = createButton("Reset"); + //button.position(450, 350); + //button.mousePressed(resetSketch); +} + +function resetGame() { + // Reset game variables + score = 0; + lives = 3; + fruit = []; + isPlay = false; + loop(); // Restart the game loop +} + +// Timer Function + +// timer = createP("timer"); +// setInterval(timeIt, 1000); + +// textAlign(CENTER); +// setInterval(timeIt, 1000); + +// if (timerValue == 0) { +// text('game over', width / 2, height / 2 + 15); +// } +// fruit.push(new Fruit(random(width),height,3,"#FF00FF",random())); +// function resetSketch(){ +// clear(); +// background(bg); +// game(); +// } +// function timeIt() { +// if (timerValue > 0) { +// timerValue--; +// textAlign(CENTER); +// noStroke(); +// fill(255,147,21); +// textSize(50); +// text(timerValue, 200, 250); +// } +// } diff --git a/Games/Fruit_Ninja/js/swords.js b/Games/Fruit_Ninja/js/swords.js index 0f9824cf01..09b7177568 100644 --- a/Games/Fruit_Ninja/js/swords.js +++ b/Games/Fruit_Ninja/js/swords.js @@ -1,53 +1,53 @@ -// Sword -function Sword(color){ - this.swipes = []; - this.color = color; -}; - -Sword.prototype.draw = function(){ - - var l = this.swipes.length; - for(var i=0; i< this.swipes.length; i++){ - var size = map(i, 0, this.swipes.length, 2, 27); - noStroke(); - fill(this.color); - ellipse(this.swipes[i].x, this.swipes[i].y, size); - } - if(l<1){ - return; - } - fill(255); - textSize(20); -}; - -Sword.prototype.update = function(){ - - if(this.swipes.length > 20){ // fade swipe - delete last value - this.swipes.splice(0,1); - this.swipes.splice(0,1); - } - if(this.swipes.length > 0){ - this.swipes.splice(0,1); - } -}; - -Sword.prototype.checkSlice = function(fruit){ - - if(fruit.sliced || this.swipes.length < 2){ - return false; - } - var length = this.swipes.length; - var stroke1 = this.swipes[length - 1]; // latest stroke - var stroke2 = this.swipes[length - 2]; // second last stroke - var d1 = dist(stroke1.x, stroke1.y, fruit.x, fruit.y); // distance between stroke1 and fruit - var d2 = dist(stroke2.x, stroke2.y, fruit.x, fruit.y); // distance between stroke2 and fruit - var d3 = dist(stroke1.x, stroke1.y, stroke2.x, stroke2.y); // distance between stroke1 and stroke2 - var sliced = (d1 < fruit.size) || ((d1 < d3 && d2 < d3) && (d3 < width/4)); - fruit.sliced = sliced; - return sliced; - -}; - -Sword.prototype.swipe = function(x,y){ // sword - this.swipes.push(createVector(x, y)); +// Sword +function Sword(color){ + this.swipes = []; + this.color = color; +}; + +Sword.prototype.draw = function(){ + + var l = this.swipes.length; + for(var i=0; i< this.swipes.length; i++){ + var size = map(i, 0, this.swipes.length, 2, 27); + noStroke(); + fill(this.color); + ellipse(this.swipes[i].x, this.swipes[i].y, size); + } + if(l<1){ + return; + } + fill(255); + textSize(20); +}; + +Sword.prototype.update = function(){ + + if(this.swipes.length > 20){ // fade swipe - delete last value + this.swipes.splice(0,1); + this.swipes.splice(0,1); + } + if(this.swipes.length > 0){ + this.swipes.splice(0,1); + } +}; + +Sword.prototype.checkSlice = function(fruit){ + + if(fruit.sliced || this.swipes.length < 2){ + return false; + } + var length = this.swipes.length; + var stroke1 = this.swipes[length - 1]; // latest stroke + var stroke2 = this.swipes[length - 2]; // second last stroke + var d1 = dist(stroke1.x, stroke1.y, fruit.x, fruit.y); // distance between stroke1 and fruit + var d2 = dist(stroke2.x, stroke2.y, fruit.x, fruit.y); // distance between stroke2 and fruit + var d3 = dist(stroke1.x, stroke1.y, stroke2.x, stroke2.y); // distance between stroke1 and stroke2 + var sliced = (d1 < fruit.size) || ((d1 < d3 && d2 < d3) && (d3 < width/4)); + fruit.sliced = sliced; + return sliced; + +}; + +Sword.prototype.swipe = function(x,y){ // sword + this.swipes.push(createVector(x, y)); } \ No newline at end of file diff --git a/Games/Fruit_Ninja/main.html b/Games/Fruit_Ninja/main.html index 69b6e711c3..bd530f181a 100644 --- a/Games/Fruit_Ninja/main.html +++ b/Games/Fruit_Ninja/main.html @@ -1,136 +1,136 @@ - - - - - - - Fruit Ninja - - - - - - - - - - -
- - - - - - - - - - -
- - - - - - - - - - + + + + + + + Fruit Ninja + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + + + + \ No newline at end of file diff --git a/Games/Fruit_Ninja/p5/addons/p5.dom.js b/Games/Fruit_Ninja/p5/addons/p5.dom.js index 0de0fb8c13..2bcb9f53dc 100644 --- a/Games/Fruit_Ninja/p5/addons/p5.dom.js +++ b/Games/Fruit_Ninja/p5/addons/p5.dom.js @@ -1,3400 +1,3400 @@ -/*! p5.js v0.9.0 July 01, 2019 */ -/** - *

The web is much more than just canvas and p5.dom makes it easy to interact - * with other HTML5 objects, including text, hyperlink, image, input, video, - * audio, and webcam.

- *

There is a set of creation methods, DOM manipulation methods, and - * an extended p5.Element that supports a range of HTML elements. See the - * - * beyond the canvas tutorial for a full overview of how this addon works. - * - *

Methods and properties shown in black are part of the p5.js core, items in - * blue are part of the p5.dom library. You will need to include an extra file - * in order to access the blue functions. See the - * using a library - * section for information on how to include this library. p5.dom comes with - * p5 complete or you can download the single file - * - * here.

- *

See tutorial: beyond the canvas - * for more info on how to use this library. - * - * @module p5.dom - * @submodule p5.dom - * @for p5 - * @main - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) - define('p5.dom', ['p5'], function(p5) { - factory(p5); - }); - else if (typeof exports === 'object') factory(require('../p5')); - else factory(root['p5']); -})(this, function(p5) { - // ============================================================================= - // p5 additions - // ============================================================================= - - /** - * Searches the page for an element with the given ID, class, or tag name (using the '#' or '.' - * prefixes to specify an ID or class respectively, and none for a tag) and returns it as - * a p5.Element. If a class or tag name is given with more than 1 element, - * only the first element will be returned. - * The DOM node itself can be accessed with .elt. - * Returns null if none found. You can also specify a container to search within. - * - * @method select - * @param {String} name id, class, or tag name of element to search for - * @param {String|p5.Element|HTMLElement} [container] id, p5.Element, or - * HTML element to search within - * @return {p5.Element|null} p5.Element containing node found - * @example - *

- * function setup() { - * createCanvas(100, 100); - * //translates canvas 50px down - * select('canvas').position(100, 100); - * } - *
- *
- * // these are all valid calls to select() - * var a = select('#moo'); - * var b = select('#blah', '#myContainer'); - * var c, e; - * if (b) { - * c = select('#foo', b); - * } - * var d = document.getElementById('beep'); - * if (d) { - * e = select('p', d); - * } - * [a, b, c, d, e]; // unused - *
- * - */ - p5.prototype.select = function(e, p) { - p5._validateParameters('select', arguments); - var res = null; - var container = getContainer(p); - if (e[0] === '.') { - e = e.slice(1); - res = container.getElementsByClassName(e); - if (res.length) { - res = res[0]; - } else { - res = null; - } - } else if (e[0] === '#') { - e = e.slice(1); - res = container.getElementById(e); - } else { - res = container.getElementsByTagName(e); - if (res.length) { - res = res[0]; - } else { - res = null; - } - } - if (res) { - return this._wrapElement(res); - } else { - return null; - } - }; - - /** - * Searches the page for elements with the given class or tag name (using the '.' prefix - * to specify a class and no prefix for a tag) and returns them as p5.Elements - * in an array. - * The DOM node itself can be accessed with .elt. - * Returns an empty array if none found. - * You can also specify a container to search within. - * - * @method selectAll - * @param {String} name class or tag name of elements to search for - * @param {String} [container] id, p5.Element, or HTML element to search within - * @return {p5.Element[]} Array of p5.Elements containing nodes found - * @example - *
- * function setup() { - * createButton('btn'); - * createButton('2nd btn'); - * createButton('3rd btn'); - * var buttons = selectAll('button'); - * - * for (var i = 0; i < buttons.length; i++) { - * buttons[i].size(100, 100); - * } - * } - *
- *
- * // these are all valid calls to selectAll() - * var a = selectAll('.moo'); - * a = selectAll('div'); - * a = selectAll('button', '#myContainer'); - * - * var d = select('#container'); - * a = selectAll('p', d); - * - * var f = document.getElementById('beep'); - * a = select('.blah', f); - * - * a; // unused - *
- * - */ - p5.prototype.selectAll = function(e, p) { - p5._validateParameters('selectAll', arguments); - var arr = []; - var res; - var container = getContainer(p); - if (e[0] === '.') { - e = e.slice(1); - res = container.getElementsByClassName(e); - } else { - res = container.getElementsByTagName(e); - } - if (res) { - for (var j = 0; j < res.length; j++) { - var obj = this._wrapElement(res[j]); - arr.push(obj); - } - } - return arr; - }; - - /** - * Helper function for select and selectAll - */ - function getContainer(p) { - var container = document; - if (typeof p === 'string' && p[0] === '#') { - p = p.slice(1); - container = document.getElementById(p) || document; - } else if (p instanceof p5.Element) { - container = p.elt; - } else if (p instanceof HTMLElement) { - container = p; - } - return container; - } - - /** - * Helper function for getElement and getElements. - */ - p5.prototype._wrapElement = function(elt) { - var children = Array.prototype.slice.call(elt.children); - if (elt.tagName === 'INPUT' && elt.type === 'checkbox') { - var converted = new p5.Element(elt, this); - converted.checked = function() { - if (arguments.length === 0) { - return this.elt.checked; - } else if (arguments[0]) { - this.elt.checked = true; - } else { - this.elt.checked = false; - } - return this; - }; - return converted; - } else if (elt.tagName === 'VIDEO' || elt.tagName === 'AUDIO') { - return new p5.MediaElement(elt, this); - } else if (elt.tagName === 'SELECT') { - return this.createSelect(new p5.Element(elt, this)); - } else if ( - children.length > 0 && - children.every(function(c) { - return c.tagName === 'INPUT' || c.tagName === 'LABEL'; - }) - ) { - return this.createRadio(new p5.Element(elt, this)); - } else { - return new p5.Element(elt, this); - } - }; - - /** - * Removes all elements created by p5, except any canvas / graphics - * elements created by createCanvas or createGraphics. - * Event handlers are removed, and element is removed from the DOM. - * @method removeElements - * @example - *
- * function setup() { - * createCanvas(100, 100); - * createDiv('this is some text'); - * createP('this is a paragraph'); - * } - * function mousePressed() { - * removeElements(); // this will remove the div and p, not canvas - * } - *
- * - */ - p5.prototype.removeElements = function(e) { - p5._validateParameters('removeElements', arguments); - for (var i = 0; i < this._elements.length; i++) { - if (!(this._elements[i].elt instanceof HTMLCanvasElement)) { - this._elements[i].remove(); - } - } - }; - - /** - * The .changed() function is called when the value of an - * element changes. - * This can be used to attach an element specific event listener. - * - * @method changed - * @param {Function|Boolean} fxn function to be fired when the value of - * an element changes. - * if `false` is passed instead, the previously - * firing function will no longer fire. - * @chainable - * @example - *
- * var sel; - * - * function setup() { - * textAlign(CENTER); - * background(200); - * sel = createSelect(); - * sel.position(10, 10); - * sel.option('pear'); - * sel.option('kiwi'); - * sel.option('grape'); - * sel.changed(mySelectEvent); - * } - * - * function mySelectEvent() { - * var item = sel.value(); - * background(200); - * text("it's a " + item + '!', 50, 50); - * } - *
- * - *
- * var checkbox; - * var cnv; - * - * function setup() { - * checkbox = createCheckbox(' fill'); - * checkbox.changed(changeFill); - * cnv = createCanvas(100, 100); - * cnv.position(0, 30); - * noFill(); - * } - * - * function draw() { - * background(200); - * ellipse(50, 50, 50, 50); - * } - * - * function changeFill() { - * if (checkbox.checked()) { - * fill(0); - * } else { - * noFill(); - * } - * } - *
- * - * @alt - * dropdown: pear, kiwi, grape. When selected text "its a" + selection shown. - * - */ - p5.Element.prototype.changed = function(fxn) { - p5.Element._adjustListener('change', fxn, this); - return this; - }; - - /** - * The .input() function is called when any user input is - * detected with an element. The input event is often used - * to detect keystrokes in a input element, or changes on a - * slider element. This can be used to attach an element specific - * event listener. - * - * @method input - * @param {Function|Boolean} fxn function to be fired when any user input is - * detected within the element. - * if `false` is passed instead, the previously - * firing function will no longer fire. - * @chainable - * @example - *
- * // Open your console to see the output - * function setup() { - * var inp = createInput(''); - * inp.input(myInputEvent); - * } - * - * function myInputEvent() { - * console.log('you are typing: ', this.value()); - * } - *
- * - * @alt - * no display. - * - */ - p5.Element.prototype.input = function(fxn) { - p5.Element._adjustListener('input', fxn, this); - return this; - }; - - /** - * Helpers for create methods. - */ - function addElement(elt, pInst, media) { - var node = pInst._userNode ? pInst._userNode : document.body; - node.appendChild(elt); - var c = media - ? new p5.MediaElement(elt, pInst) - : new p5.Element(elt, pInst); - pInst._elements.push(c); - return c; - } - - /** - * Creates a <div></div> element in the DOM with given inner HTML. - * Appends to the container node if one is specified, otherwise - * appends to body. - * - * @method createDiv - * @param {String} [html] inner HTML for element created - * @return {p5.Element} pointer to p5.Element holding created node - * @example - *
- * createDiv('this is some text'); - *
- */ - - /** - * Creates a <p></p> element in the DOM with given inner HTML. Used - * for paragraph length text. - * Appends to the container node if one is specified, otherwise - * appends to body. - * - * @method createP - * @param {String} [html] inner HTML for element created - * @return {p5.Element} pointer to p5.Element holding created node - * @example - *
- * createP('this is some text'); - *
- */ - - /** - * Creates a <span></span> element in the DOM with given inner HTML. - * Appends to the container node if one is specified, otherwise - * appends to body. - * - * @method createSpan - * @param {String} [html] inner HTML for element created - * @return {p5.Element} pointer to p5.Element holding created node - * @example - *
- * createSpan('this is some text'); - *
- */ - var tags = ['div', 'p', 'span']; - tags.forEach(function(tag) { - var method = 'create' + tag.charAt(0).toUpperCase() + tag.slice(1); - p5.prototype[method] = function(html) { - var elt = document.createElement(tag); - elt.innerHTML = typeof html === 'undefined' ? '' : html; - return addElement(elt, this); - }; - }); - - /** - * Creates an <img> element in the DOM with given src and - * alternate text. - * Appends to the container node if one is specified, otherwise - * appends to body. - * - * @method createImg - * @param {String} src src path or url for image - * @param {String} [alt] alternate text to be used if image does not load - * @param {Function} [successCallback] callback to be called once image data is loaded - * @return {p5.Element} pointer to p5.Element holding created node - * @example - *
- * createImg('http://p5js.org/img/asterisk-01.png'); - *
- */ - /** - * @method createImg - * @param {String} src - * @param {Function} successCallback - * @return {Object|p5.Element} - */ - p5.prototype.createImg = function() { - p5._validateParameters('createImg', arguments); - var elt = document.createElement('img'); - elt.crossOrigin = 'Anonymous'; - var args = arguments; - var self; - var setAttrs = function() { - self.width = elt.offsetWidth || elt.width; - self.height = elt.offsetHeight || elt.height; - if (args.length > 1 && typeof args[1] === 'function') { - self.fn = args[1]; - self.fn(); - } else if (args.length > 1 && typeof args[2] === 'function') { - self.fn = args[2]; - self.fn(); - } - }; - elt.src = args[0]; - if (args.length > 1 && typeof args[1] === 'string') { - elt.alt = args[1]; - } - elt.onload = function() { - setAttrs(); - }; - self = addElement(elt, this); - return self; - }; - - /** - * Creates an <a></a> element in the DOM for including a hyperlink. - * Appends to the container node if one is specified, otherwise - * appends to body. - * - * @method createA - * @param {String} href url of page to link to - * @param {String} html inner html of link element to display - * @param {String} [target] target where new link should open, - * could be _blank, _self, _parent, _top. - * @return {p5.Element} pointer to p5.Element holding created node - * @example - *
- * createA('http://p5js.org/', 'this is a link'); - *
- */ - p5.prototype.createA = function(href, html, target) { - p5._validateParameters('createA', arguments); - var elt = document.createElement('a'); - elt.href = href; - elt.innerHTML = html; - if (target) elt.target = target; - return addElement(elt, this); - }; - - /** INPUT **/ - - /** - * Creates a slider <input></input> element in the DOM. - * Use .size() to set the display length of the slider. - * Appends to the container node if one is specified, otherwise - * appends to body. - * - * @method createSlider - * @param {Number} min minimum value of the slider - * @param {Number} max maximum value of the slider - * @param {Number} [value] default value of the slider - * @param {Number} [step] step size for each tick of the slider (if step is set to 0, the slider will move continuously from the minimum to the maximum value) - * @return {p5.Element} pointer to p5.Element holding created node - * @example - *
- * var slider; - * function setup() { - * slider = createSlider(0, 255, 100); - * slider.position(10, 10); - * slider.style('width', '80px'); - * } - * - * function draw() { - * var val = slider.value(); - * background(val); - * } - *
- * - *
- * var slider; - * function setup() { - * colorMode(HSB); - * slider = createSlider(0, 360, 60, 40); - * slider.position(10, 10); - * slider.style('width', '80px'); - * } - * - * function draw() { - * var val = slider.value(); - * background(val, 100, 100, 1); - * } - *
- */ - p5.prototype.createSlider = function(min, max, value, step) { - p5._validateParameters('createSlider', arguments); - var elt = document.createElement('input'); - elt.type = 'range'; - elt.min = min; - elt.max = max; - if (step === 0) { - elt.step = 0.000000000000000001; // smallest valid step - } else if (step) { - elt.step = step; - } - if (typeof value === 'number') elt.value = value; - return addElement(elt, this); - }; - - /** - * Creates a <button></button> element in the DOM. - * Use .size() to set the display size of the button. - * Use .mousePressed() to specify behavior on press. - * Appends to the container node if one is specified, otherwise - * appends to body. - * - * @method createButton - * @param {String} label label displayed on the button - * @param {String} [value] value of the button - * @return {p5.Element} pointer to p5.Element holding created node - * @example - *
- * var button; - * function setup() { - * createCanvas(100, 100); - * background(0); - * button = createButton('click me'); - * button.position(19, 19); - * button.mousePressed(changeBG); - * } - * - * function changeBG() { - * var val = random(255); - * background(val); - * } - *
- */ - p5.prototype.createButton = function(label, value) { - p5._validateParameters('createButton', arguments); - var elt = document.createElement('button'); - elt.innerHTML = label; - if (value) elt.value = value; - return addElement(elt, this); - }; - - /** - * Creates a checkbox <input></input> element in the DOM. - * Calling .checked() on a checkbox returns if it is checked or not - * - * @method createCheckbox - * @param {String} [label] label displayed after checkbox - * @param {boolean} [value] value of the checkbox; checked is true, unchecked is false - * @return {p5.Element} pointer to p5.Element holding created node - * @example - *
- * var checkbox; - * - * function setup() { - * checkbox = createCheckbox('label', false); - * checkbox.changed(myCheckedEvent); - * } - * - * function myCheckedEvent() { - * if (this.checked()) { - * console.log('Checking!'); - * } else { - * console.log('Unchecking!'); - * } - * } - *
- */ - p5.prototype.createCheckbox = function() { - p5._validateParameters('createCheckbox', arguments); - var elt = document.createElement('div'); - var checkbox = document.createElement('input'); - checkbox.type = 'checkbox'; - elt.appendChild(checkbox); - //checkbox must be wrapped in p5.Element before label so that label appears after - var self = addElement(elt, this); - self.checked = function() { - var cb = self.elt.getElementsByTagName('input')[0]; - if (cb) { - if (arguments.length === 0) { - return cb.checked; - } else if (arguments[0]) { - cb.checked = true; - } else { - cb.checked = false; - } - } - return self; - }; - this.value = function(val) { - self.value = val; - return this; - }; - if (arguments[0]) { - var ran = Math.random() - .toString(36) - .slice(2); - var label = document.createElement('label'); - checkbox.setAttribute('id', ran); - label.htmlFor = ran; - self.value(arguments[0]); - label.appendChild(document.createTextNode(arguments[0])); - elt.appendChild(label); - } - if (arguments[1]) { - checkbox.checked = true; - } - return self; - }; - - /** - * Creates a dropdown menu <select></select> element in the DOM. - * It also helps to assign select-box methods to p5.Element when selecting existing select box - * @method createSelect - * @param {boolean} [multiple] true if dropdown should support multiple selections - * @return {p5.Element} - * @example - *
- * var sel; - * - * function setup() { - * textAlign(CENTER); - * background(200); - * sel = createSelect(); - * sel.position(10, 10); - * sel.option('pear'); - * sel.option('kiwi'); - * sel.option('grape'); - * sel.changed(mySelectEvent); - * } - * - * function mySelectEvent() { - * var item = sel.value(); - * background(200); - * text('It is a ' + item + '!', 50, 50); - * } - *
- */ - /** - * @method createSelect - * @param {Object} existing DOM select element - * @return {p5.Element} - */ - - p5.prototype.createSelect = function() { - p5._validateParameters('createSelect', arguments); - var elt, self; - var arg = arguments[0]; - if (typeof arg === 'object' && arg.elt.nodeName === 'SELECT') { - self = arg; - elt = this.elt = arg.elt; - } else { - elt = document.createElement('select'); - if (arg && typeof arg === 'boolean') { - elt.setAttribute('multiple', 'true'); - } - self = addElement(elt, this); - } - self.option = function(name, value) { - var index; - //see if there is already an option with this name - for (var i = 0; i < this.elt.length; i++) { - if (this.elt[i].innerHTML === name) { - index = i; - break; - } - } - //if there is an option with this name we will modify it - if (index !== undefined) { - //if the user passed in false then delete that option - if (value === false) { - this.elt.remove(index); - } else { - //otherwise if the name and value are the same then change both - if (this.elt[index].innerHTML === this.elt[index].value) { - this.elt[index].innerHTML = this.elt[index].value = value; - //otherwise just change the value - } else { - this.elt[index].value = value; - } - } - } else { - //if it doesn't exist make it - var opt = document.createElement('option'); - opt.innerHTML = name; - if (arguments.length > 1) opt.value = value; - else opt.value = name; - elt.appendChild(opt); - } - }; - self.selected = function(value) { - var arr = [], - i; - if (arguments.length > 0) { - for (i = 0; i < this.elt.length; i++) { - if (value.toString() === this.elt[i].value) { - this.elt.selectedIndex = i; - } - } - return this; - } else { - if (this.elt.getAttribute('multiple')) { - for (i = 0; i < this.elt.selectedOptions.length; i++) { - arr.push(this.elt.selectedOptions[i].value); - } - return arr; - } else { - return this.elt.value; - } - } - }; - return self; - }; - - /** - * Creates a radio button <input></input> element in the DOM. - * The .option() method can be used to set options for the radio after it is - * created. The .value() method will return the currently selected option. - * - * @method createRadio - * @param {String} [divId] the id and name of the created div and input field respectively - * @return {p5.Element} pointer to p5.Element holding created node - * @example - *
- * var radio; - * - * function setup() { - * radio = createRadio(); - * radio.option('black'); - * radio.option('white'); - * radio.option('gray'); - * radio.style('width', '60px'); - * textAlign(CENTER); - * fill(255, 0, 0); - * } - * - * function draw() { - * var val = radio.value(); - * background(val); - * text(val, width / 2, height / 2); - * } - *
- *
- * var radio; - * - * function setup() { - * radio = createRadio(); - * radio.option('apple', 1); - * radio.option('bread', 2); - * radio.option('juice', 3); - * radio.style('width', '60px'); - * textAlign(CENTER); - * } - * - * function draw() { - * background(200); - * var val = radio.value(); - * if (val) { - * text('item cost is $' + val, width / 2, height / 2); - * } - * } - *
- */ - p5.prototype.createRadio = function(existing_radios) { - p5._validateParameters('createRadio', arguments); - // do some prep by counting number of radios on page - var radios = document.querySelectorAll('input[type=radio]'); - var count = 0; - if (radios.length > 1) { - var length = radios.length; - var prev = radios[0].name; - var current = radios[1].name; - count = 1; - for (var i = 1; i < length; i++) { - current = radios[i].name; - if (prev !== current) { - count++; - } - prev = current; - } - } else if (radios.length === 1) { - count = 1; - } - // see if we got an existing set of radios from callee - var elt, self; - if (typeof existing_radios === 'object') { - // use existing elements - self = existing_radios; - elt = this.elt = existing_radios.elt; - } else { - // create a set of radio buttons - elt = document.createElement('div'); - self = addElement(elt, this); - } - // setup member functions - self._getInputChildrenArray = function() { - return Array.prototype.slice.call(this.elt.children).filter(function(c) { - return c.tagName === 'INPUT'; - }); - }; - - var times = -1; - self.option = function(name, value) { - var opt = document.createElement('input'); - opt.type = 'radio'; - opt.innerHTML = name; - if (value) opt.value = value; - else opt.value = name; - opt.setAttribute('name', 'defaultradio' + count); - elt.appendChild(opt); - if (name) { - times++; - var label = document.createElement('label'); - opt.setAttribute('id', 'defaultradio' + count + '-' + times); - label.htmlFor = 'defaultradio' + count + '-' + times; - label.appendChild(document.createTextNode(name)); - elt.appendChild(label); - } - return opt; - }; - self.selected = function(value) { - var i; - var inputChildren = self._getInputChildrenArray(); - if (value) { - for (i = 0; i < inputChildren.length; i++) { - if (inputChildren[i].value === value) inputChildren[i].checked = true; - } - return this; - } else { - for (i = 0; i < inputChildren.length; i++) { - if (inputChildren[i].checked === true) return inputChildren[i].value; - } - } - }; - self.value = function(value) { - var i; - var inputChildren = self._getInputChildrenArray(); - if (value) { - for (i = 0; i < inputChildren.length; i++) { - if (inputChildren[i].value === value) inputChildren[i].checked = true; - } - return this; - } else { - for (i = 0; i < inputChildren.length; i++) { - if (inputChildren[i].checked === true) return inputChildren[i].value; - } - return ''; - } - }; - return self; - }; - - /** - * Creates a colorPicker element in the DOM for color input. - * The .value() method will return a hex string (#rrggbb) of the color. - * The .color() method will return a p5.Color object with the current chosen color. - * - * @method createColorPicker - * @param {String|p5.Color} [value] default color of element - * @return {p5.Element} pointer to p5.Element holding created node - * @example - *
- * - * var inp1, inp2; - * function setup() { - * createCanvas(100, 100); - * background('grey'); - * inp1 = createColorPicker('#ff0000'); - * inp2 = createColorPicker(color('yellow')); - * inp1.input(setShade1); - * inp2.input(setShade2); - * setMidShade(); - * } - * - * function setMidShade() { - * // Finding a shade between the two - * var commonShade = lerpColor(inp1.color(), inp2.color(), 0.5); - * fill(commonShade); - * rect(20, 20, 60, 60); - * } - * - * function setShade1() { - * setMidShade(); - * console.log('You are choosing shade 1 to be : ', this.value()); - * } - * function setShade2() { - * setMidShade(); - * console.log('You are choosing shade 2 to be : ', this.value()); - * } - * - *
- */ - p5.prototype.createColorPicker = function(value) { - p5._validateParameters('createColorPicker', arguments); - var elt = document.createElement('input'); - var self; - elt.type = 'color'; - if (value) { - if (value instanceof p5.Color) { - elt.value = value.toString('#rrggbb'); - } else { - p5.prototype._colorMode = 'rgb'; - p5.prototype._colorMaxes = { - rgb: [255, 255, 255, 255], - hsb: [360, 100, 100, 1], - hsl: [360, 100, 100, 1] - }; - elt.value = p5.prototype.color(value).toString('#rrggbb'); - } - } else { - elt.value = '#000000'; - } - self = addElement(elt, this); - // Method to return a p5.Color object for the given color. - self.color = function() { - if (value.mode) { - p5.prototype._colorMode = value.mode; - } - if (value.maxes) { - p5.prototype._colorMaxes = value.maxes; - } - return p5.prototype.color(this.elt.value); - }; - return self; - }; - - /** - * Creates an <input></input> element in the DOM for text input. - * Use .size() to set the display length of the box. - * Appends to the container node if one is specified, otherwise - * appends to body. - * - * @method createInput - * @param {String} [value] default value of the input box - * @param {String} [type] type of text, ie text, password etc. Defaults to text - * @return {p5.Element} pointer to p5.Element holding created node - * @example - *
- * function setup() { - * var inp = createInput(''); - * inp.input(myInputEvent); - * } - * - * function myInputEvent() { - * console.log('you are typing: ', this.value()); - * } - *
- */ - p5.prototype.createInput = function(value, type) { - p5._validateParameters('createInput', arguments); - var elt = document.createElement('input'); - elt.type = type ? type : 'text'; - if (value) elt.value = value; - return addElement(elt, this); - }; - - /** - * Creates an <input></input> element in the DOM of type 'file'. - * This allows users to select local files for use in a sketch. - * - * @method createFileInput - * @param {Function} [callback] callback function for when a file loaded - * @param {String} [multiple] optional to allow multiple files selected - * @return {p5.Element} pointer to p5.Element holding created DOM element - * @example - *
- * let input; - * let img; - * - * function setup() { - * input = createFileInput(handleFile); - * input.position(0, 0); - * } - * - * function draw() { - * background(255); - * if (img) { - * image(img, 0, 0, width, height); - * } - * } - * - * function handleFile(file) { - * print(file); - * if (file.type === 'image') { - * img = createImg(file.data); - * img.hide(); - * } else { - * img = null; - * } - * } - *
- */ - p5.prototype.createFileInput = function(callback, multiple) { - p5._validateParameters('createFileInput', arguments); - // Function to handle when a file is selected - // We're simplifying life and assuming that we always - // want to load every selected file - function handleFileSelect(evt) { - // These are the files - var files = evt.target.files; - // Load each one and trigger a callback - for (var i = 0; i < files.length; i++) { - var f = files[i]; - p5.File._load(f, callback); - } - } - // Is the file stuff supported? - if (window.File && window.FileReader && window.FileList && window.Blob) { - // Yup, we're ok and make an input file selector - var elt = document.createElement('input'); - elt.type = 'file'; - - // If we get a second argument that evaluates to true - // then we are looking for multiple files - if (multiple) { - // Anything gets the job done - elt.multiple = 'multiple'; - } - - // Now let's handle when a file was selected - elt.addEventListener('change', handleFileSelect, false); - return addElement(elt, this); - } else { - console.log( - 'The File APIs are not fully supported in this browser. Cannot create element.' - ); - } - }; - - /** VIDEO STUFF **/ - - function createMedia(pInst, type, src, callback) { - var elt = document.createElement(type); - - // allow src to be empty - src = src || ''; - if (typeof src === 'string') { - src = [src]; - } - for (var i = 0; i < src.length; i++) { - var source = document.createElement('source'); - source.src = src[i]; - elt.appendChild(source); - } - if (typeof callback !== 'undefined') { - var callbackHandler = function() { - callback(); - elt.removeEventListener('canplaythrough', callbackHandler); - }; - elt.addEventListener('canplaythrough', callbackHandler); - } - - var c = addElement(elt, pInst, true); - c.loadedmetadata = false; - // set width and height onload metadata - elt.addEventListener('loadedmetadata', function() { - c.width = elt.videoWidth; - c.height = elt.videoHeight; - //c.elt.playbackRate = s; - // set elt width and height if not set - if (c.elt.width === 0) c.elt.width = elt.videoWidth; - if (c.elt.height === 0) c.elt.height = elt.videoHeight; - if (c.presetPlaybackRate) { - c.elt.playbackRate = c.presetPlaybackRate; - delete c.presetPlaybackRate; - } - c.loadedmetadata = true; - }); - - return c; - } - /** - * Creates an HTML5 <video> element in the DOM for simple playback - * of audio/video. Shown by default, can be hidden with .hide() - * and drawn into canvas using video(). Appends to the container - * node if one is specified, otherwise appends to body. The first parameter - * can be either a single string path to a video file, or an array of string - * paths to different formats of the same video. This is useful for ensuring - * that your video can play across different browsers, as each supports - * different formats. See this - * page for further information about supported formats. - * - * @method createVideo - * @param {String|String[]} src path to a video file, or array of paths for - * supporting different browsers - * @param {Function} [callback] callback function to be called upon - * 'canplaythrough' event fire, that is, when the - * browser can play the media, and estimates that - * enough data has been loaded to play the media - * up to its end without having to stop for - * further buffering of content - * @return {p5.MediaElement} pointer to video p5.Element - * @example - *
- * var vid; - * function setup() { - * noCanvas(); - * - * vid = createVideo( - * ['assets/small.mp4', 'assets/small.ogv', 'assets/small.webm'], - * vidLoad - * ); - * - * vid.size(100, 100); - * } - * - * // This function is called when the video loads - * function vidLoad() { - * vid.loop(); - * vid.volume(0); - * } - *
- */ - p5.prototype.createVideo = function(src, callback) { - p5._validateParameters('createVideo', arguments); - return createMedia(this, 'video', src, callback); - }; - - /** AUDIO STUFF **/ - - /** - * Creates a hidden HTML5 <audio> element in the DOM for simple audio - * playback. Appends to the container node if one is specified, - * otherwise appends to body. The first parameter - * can be either a single string path to a audio file, or an array of string - * paths to different formats of the same audio. This is useful for ensuring - * that your audio can play across different browsers, as each supports - * different formats. See this - * page for further information about supported formats. - * - * @method createAudio - * @param {String|String[]} [src] path to an audio file, or array of paths - * for supporting different browsers - * @param {Function} [callback] callback function to be called upon - * 'canplaythrough' event fire, that is, when the - * browser can play the media, and estimates that - * enough data has been loaded to play the media - * up to its end without having to stop for - * further buffering of content - * @return {p5.MediaElement} pointer to audio p5.Element - * @example - *
- * var ele; - * function setup() { - * ele = createAudio('assets/beat.mp3'); - * - * // here we set the element to autoplay - * // The element will play as soon - * // as it is able to do so. - * ele.autoplay(true); - * } - *
- */ - p5.prototype.createAudio = function(src, callback) { - p5._validateParameters('createAudio', arguments); - return createMedia(this, 'audio', src, callback); - }; - - /** CAMERA STUFF **/ - - /** - * @property {String} VIDEO - * @final - * @category Constants - */ - p5.prototype.VIDEO = 'video'; - /** - * @property {String} AUDIO - * @final - * @category Constants - */ - p5.prototype.AUDIO = 'audio'; - - // from: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia - // Older browsers might not implement mediaDevices at all, so we set an empty object first - if (navigator.mediaDevices === undefined) { - navigator.mediaDevices = {}; - } - - // Some browsers partially implement mediaDevices. We can't just assign an object - // with getUserMedia as it would overwrite existing properties. - // Here, we will just add the getUserMedia property if it's missing. - if (navigator.mediaDevices.getUserMedia === undefined) { - navigator.mediaDevices.getUserMedia = function(constraints) { - // First get ahold of the legacy getUserMedia, if present - var getUserMedia = - navigator.webkitGetUserMedia || navigator.mozGetUserMedia; - - // Some browsers just don't implement it - return a rejected promise with an error - // to keep a consistent interface - if (!getUserMedia) { - return Promise.reject( - new Error('getUserMedia is not implemented in this browser') - ); - } - - // Otherwise, wrap the call to the old navigator.getUserMedia with a Promise - return new Promise(function(resolve, reject) { - getUserMedia.call(navigator, constraints, resolve, reject); - }); - }; - } - - /** - *

Creates a new HTML5 <video> element that contains the audio/video - * feed from a webcam. The element is separate from the canvas and is - * displayed by default. The element can be hidden using .hide(). The feed - * can be drawn onto the canvas using image(). The loadedmetadata property can - * be used to detect when the element has fully loaded (see second example).

- *

More specific properties of the feed can be passing in a Constraints object. - * See the - * W3C - * spec for possible properties. Note that not all of these are supported - * by all browsers.

- *

Security note: A new browser security specification requires that getUserMedia, - * which is behind createCapture(), only works when you're running the code locally, - * or on HTTPS. Learn more here - * and here.

- * - * @method createCapture - * @param {String|Constant|Object} type type of capture, either VIDEO or - * AUDIO if none specified, default both, - * or a Constraints object - * @param {Function} [callback] function to be called once - * stream has loaded - * @return {p5.Element} capture video p5.Element - * @example - *
- * var capture; - * - * function setup() { - * createCanvas(480, 480); - * capture = createCapture(VIDEO); - * capture.hide(); - * } - * - * function draw() { - * image(capture, 0, 0, width, width * capture.height / capture.width); - * filter(INVERT); - * } - *
- *
- * function setup() { - * createCanvas(480, 120); - * var constraints = { - * video: { - * mandatory: { - * minWidth: 1280, - * minHeight: 720 - * }, - * optional: [{ maxFrameRate: 10 }] - * }, - * audio: true - * }; - * createCapture(constraints, function(stream) { - * console.log(stream); - * }); - * } - *
- *
- * var capture; - * - * function setup() { - * createCanvas(640, 480); - * capture = createCapture(VIDEO); - * } - * function draw() { - * background(0); - * if (capture.loadedmetadata) { - * var c = capture.get(0, 0, 100, 100); - * image(c, 0, 0); - * } - * } - *
- */ - p5.prototype.createCapture = function() { - p5._validateParameters('createCapture', arguments); - var useVideo = true; - var useAudio = true; - var constraints; - var cb; - for (var i = 0; i < arguments.length; i++) { - if (arguments[i] === p5.prototype.VIDEO) { - useAudio = false; - } else if (arguments[i] === p5.prototype.AUDIO) { - useVideo = false; - } else if (typeof arguments[i] === 'object') { - constraints = arguments[i]; - } else if (typeof arguments[i] === 'function') { - cb = arguments[i]; - } - } - if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) { - var elt = document.createElement('video'); - // required to work in iOS 11 & up: - elt.setAttribute('playsinline', ''); - - if (!constraints) { - constraints = { video: useVideo, audio: useAudio }; - } - - navigator.mediaDevices.getUserMedia(constraints).then( - function(stream) { - try { - if ('srcObject' in elt) { - elt.srcObject = stream; - } else { - elt.src = window.URL.createObjectURL(stream); - } - } catch (err) { - elt.src = stream; - } - }, - function(e) { - console.log(e); - } - ); - } else { - throw 'getUserMedia not supported in this browser'; - } - var c = addElement(elt, this, true); - c.loadedmetadata = false; - // set width and height onload metadata - elt.addEventListener('loadedmetadata', function() { - elt.play(); - if (elt.width) { - c.width = elt.videoWidth = elt.width; - c.height = elt.videoHeight = elt.height; - } else { - c.width = c.elt.width = elt.videoWidth; - c.height = c.elt.height = elt.videoHeight; - } - c.loadedmetadata = true; - if (cb) { - cb(elt.srcObject); - } - }); - return c; - }; - - /** - * Creates element with given tag in the DOM with given content. - * Appends to the container node if one is specified, otherwise - * appends to body. - * - * @method createElement - * @param {String} tag tag for the new element - * @param {String} [content] html content to be inserted into the element - * @return {p5.Element} pointer to p5.Element holding created node - * @example - *
- * createElement('h2', 'im an h2 p5.element!'); - *
- */ - p5.prototype.createElement = function(tag, content) { - p5._validateParameters('createElement', arguments); - var elt = document.createElement(tag); - if (typeof content !== 'undefined') { - elt.innerHTML = content; - } - return addElement(elt, this); - }; - - // ============================================================================= - // p5.Element additions - // ============================================================================= - /** - * - * Adds specified class to the element. - * - * @for p5.Element - * @method addClass - * @param {String} class name of class to add - * @chainable - * @example - *
- * var div = createDiv('div'); - * div.addClass('myClass'); - *
- */ - p5.Element.prototype.addClass = function(c) { - if (this.elt.className) { - if (!this.hasClass(c)) { - this.elt.className = this.elt.className + ' ' + c; - } - } else { - this.elt.className = c; - } - return this; - }; - - /** - * - * Removes specified class from the element. - * - * @method removeClass - * @param {String} class name of class to remove - * @chainable - * @example - *
- * // In this example, a class is set when the div is created - * // and removed when mouse is pressed. This could link up - * // with a CSS style rule to toggle style properties. - * - * var div; - * - * function setup() { - * div = createDiv('div'); - * div.addClass('myClass'); - * } - * - * function mousePressed() { - * div.removeClass('myClass'); - * } - *
- */ - p5.Element.prototype.removeClass = function(c) { - // Note: Removing a class that does not exist does NOT throw an error in classList.remove method - this.elt.classList.remove(c); - return this; - }; - - /** - * - * Checks if specified class already set to element - * - * @method hasClass - * @returns {boolean} a boolean value if element has specified class - * @param c {String} class name of class to check - * @example - *
- * var div; - * - * function setup() { - * div = createDiv('div'); - * div.addClass('show'); - * } - * - * function mousePressed() { - * if (div.hasClass('show')) { - * div.addClass('show'); - * } else { - * div.removeClass('show'); - * } - * } - *
- */ - p5.Element.prototype.hasClass = function(c) { - return this.elt.classList.contains(c); - }; - - /** - * - * Toggles element class - * - * @method toggleClass - * @param c {String} class name to toggle - * @chainable - * @example - *
- * var div; - * - * function setup() { - * div = createDiv('div'); - * div.addClass('show'); - * } - * - * function mousePressed() { - * div.toggleClass('show'); - * } - *
- */ - p5.Element.prototype.toggleClass = function(c) { - // classList also has a toggle() method, but we cannot use that yet as support is unclear. - // See https://github.com/processing/p5.js/issues/3631 - // this.elt.classList.toggle(c); - if (this.elt.classList.contains(c)) { - this.elt.classList.remove(c); - } else { - this.elt.classList.add(c); - } - return this; - }; - - /** - * - * Attaches the element as a child to the parent specified. - * Accepts either a string ID, DOM node, or p5.Element. - * If no argument is specified, an array of children DOM nodes is returned. - * - * @method child - * @returns {Node[]} an array of child nodes - * @example - *
- * var div0 = createDiv('this is the parent'); - * var div1 = createDiv('this is the child'); - * div0.child(div1); // use p5.Element - *
- *
- * var div0 = createDiv('this is the parent'); - * var div1 = createDiv('this is the child'); - * div1.id('apples'); - * div0.child('apples'); // use id - *
- *
- * // this example assumes there is a div already on the page - * // with id "myChildDiv" - * var div0 = createDiv('this is the parent'); - * var elt = document.getElementById('myChildDiv'); - * div0.child(elt); // use element from page - *
- */ - /** - * @method child - * @param {String|p5.Element} [child] the ID, DOM node, or p5.Element - * to add to the current element - * @chainable - */ - p5.Element.prototype.child = function(c) { - if (typeof c === 'undefined') { - return this.elt.childNodes; - } - if (typeof c === 'string') { - if (c[0] === '#') { - c = c.substring(1); - } - c = document.getElementById(c); - } else if (c instanceof p5.Element) { - c = c.elt; - } - this.elt.appendChild(c); - return this; - }; - - /** - * Centers a p5 Element either vertically, horizontally, - * or both, relative to its parent or according to - * the body if the Element has no parent. If no argument is passed - * the Element is aligned both vertically and horizontally. - * - * @method center - * @param {String} [align] passing 'vertical', 'horizontal' aligns element accordingly - * @chainable - * - * @example - *
- * function setup() { - * var div = createDiv('').size(10, 10); - * div.style('background-color', 'orange'); - * div.center(); - * } - *
- */ - p5.Element.prototype.center = function(align) { - var style = this.elt.style.display; - var hidden = this.elt.style.display === 'none'; - var parentHidden = this.parent().style.display === 'none'; - var pos = { x: this.elt.offsetLeft, y: this.elt.offsetTop }; - - if (hidden) this.show(); - - this.elt.style.display = 'block'; - this.position(0, 0); - - if (parentHidden) this.parent().style.display = 'block'; - - var wOffset = Math.abs(this.parent().offsetWidth - this.elt.offsetWidth); - var hOffset = Math.abs(this.parent().offsetHeight - this.elt.offsetHeight); - var y = pos.y; - var x = pos.x; - - if (align === 'both' || align === undefined) { - this.position(wOffset / 2, hOffset / 2); - } else if (align === 'horizontal') { - this.position(wOffset / 2, y); - } else if (align === 'vertical') { - this.position(x, hOffset / 2); - } - - this.style('display', style); - - if (hidden) this.hide(); - - if (parentHidden) this.parent().style.display = 'none'; - - return this; - }; - - /** - * - * If an argument is given, sets the inner HTML of the element, - * replacing any existing html. If true is included as a second - * argument, html is appended instead of replacing existing html. - * If no arguments are given, returns - * the inner HTML of the element. - * - * @for p5.Element - * @method html - * @returns {String} the inner HTML of the element - * @example - *
- * var div = createDiv('').size(100, 100); - * div.html('hi'); - *
- *
- * var div = createDiv('Hello ').size(100, 100); - * div.html('World', true); - *
- */ - /** - * @method html - * @param {String} [html] the HTML to be placed inside the element - * @param {boolean} [append] whether to append HTML to existing - * @chainable - */ - p5.Element.prototype.html = function() { - if (arguments.length === 0) { - return this.elt.innerHTML; - } else if (arguments[1]) { - this.elt.innerHTML += arguments[0]; - return this; - } else { - this.elt.innerHTML = arguments[0]; - return this; - } - }; - - /** - * - * Sets the position of the element relative to (0, 0) of the - * window. Essentially, sets position:absolute and left and top - * properties of style. If no arguments given returns the x and y position - * of the element in an object. - * - * @method position - * @returns {Object} the x and y position of the element in an object - * @example - *
- * function setup() { - * var cnv = createCanvas(100, 100); - * // positions canvas 50px to the right and 100px - * // below upper left corner of the window - * cnv.position(50, 100); - * } - *
- */ - /** - * @method position - * @param {Number} [x] x-position relative to upper left of window - * @param {Number} [y] y-position relative to upper left of window - * @chainable - */ - p5.Element.prototype.position = function() { - if (arguments.length === 0) { - return { x: this.elt.offsetLeft, y: this.elt.offsetTop }; - } else { - this.elt.style.position = 'absolute'; - this.elt.style.left = arguments[0] + 'px'; - this.elt.style.top = arguments[1] + 'px'; - this.x = arguments[0]; - this.y = arguments[1]; - return this; - } - }; - - /* Helper method called by p5.Element.style() */ - p5.Element.prototype._translate = function() { - this.elt.style.position = 'absolute'; - // save out initial non-translate transform styling - var transform = ''; - if (this.elt.style.transform) { - transform = this.elt.style.transform.replace(/translate3d\(.*\)/g, ''); - transform = transform.replace(/translate[X-Z]?\(.*\)/g, ''); - } - if (arguments.length === 2) { - this.elt.style.transform = - 'translate(' + arguments[0] + 'px, ' + arguments[1] + 'px)'; - } else if (arguments.length > 2) { - this.elt.style.transform = - 'translate3d(' + - arguments[0] + - 'px,' + - arguments[1] + - 'px,' + - arguments[2] + - 'px)'; - if (arguments.length === 3) { - this.elt.parentElement.style.perspective = '1000px'; - } else { - this.elt.parentElement.style.perspective = arguments[3] + 'px'; - } - } - // add any extra transform styling back on end - this.elt.style.transform += transform; - return this; - }; - - /* Helper method called by p5.Element.style() */ - p5.Element.prototype._rotate = function() { - // save out initial non-rotate transform styling - var transform = ''; - if (this.elt.style.transform) { - transform = this.elt.style.transform.replace(/rotate3d\(.*\)/g, ''); - transform = transform.replace(/rotate[X-Z]?\(.*\)/g, ''); - } - - if (arguments.length === 1) { - this.elt.style.transform = 'rotate(' + arguments[0] + 'deg)'; - } else if (arguments.length === 2) { - this.elt.style.transform = - 'rotate(' + arguments[0] + 'deg, ' + arguments[1] + 'deg)'; - } else if (arguments.length === 3) { - this.elt.style.transform = 'rotateX(' + arguments[0] + 'deg)'; - this.elt.style.transform += 'rotateY(' + arguments[1] + 'deg)'; - this.elt.style.transform += 'rotateZ(' + arguments[2] + 'deg)'; - } - // add remaining transform back on - this.elt.style.transform += transform; - return this; - }; - - /** - * Sets the given style (css) property (1st arg) of the element with the - * given value (2nd arg). If a single argument is given, .style() - * returns the value of the given property; however, if the single argument - * is given in css syntax ('text-align:center'), .style() sets the css - * appropriately. - * - * @method style - * @param {String} property property to be set - * @returns {String} value of property - * @example - *
- * var myDiv = createDiv('I like pandas.'); - * myDiv.style('font-size', '18px'); - * myDiv.style('color', '#ff0000'); - *
- *
- * var col = color(25, 23, 200, 50); - * var button = createButton('button'); - * button.style('background-color', col); - * button.position(10, 10); - *
- *
- * var myDiv; - * function setup() { - * background(200); - * myDiv = createDiv('I like gray.'); - * myDiv.position(20, 20); - * } - * - * function draw() { - * myDiv.style('font-size', mouseX + 'px'); - * } - *
- */ - /** - * @method style - * @param {String} property - * @param {String|Number|p5.Color} value value to assign to property - * @return {String} current value of property, if no value is given as second argument - * @chainable - */ - p5.Element.prototype.style = function(prop, val) { - var self = this; - - if (val instanceof p5.Color) { - val = - 'rgba(' + - val.levels[0] + - ',' + - val.levels[1] + - ',' + - val.levels[2] + - ',' + - val.levels[3] / 255 + - ')'; - } - - if (typeof val === 'undefined') { - // input provided as single line string - if (prop.indexOf(':') === -1) { - var styles = window.getComputedStyle(self.elt); - var style = styles.getPropertyValue(prop); - return style; - } else { - var attrs = prop.split(';'); - for (var i = 0; i < attrs.length; i++) { - var parts = attrs[i].split(':'); - if (parts[0] && parts[1]) { - this.elt.style[parts[0].trim()] = parts[1].trim(); - } - } - } - } else { - // input provided as key,val pair - this.elt.style[prop] = val; - if ( - prop === 'width' || - prop === 'height' || - prop === 'left' || - prop === 'top' - ) { - var numVal = val.replace(/\D+/g, ''); - this[prop] = parseInt(numVal, 10); - } - } - return this; - }; - - /** - * - * Adds a new attribute or changes the value of an existing attribute - * on the specified element. If no value is specified, returns the - * value of the given attribute, or null if attribute is not set. - * - * @method attribute - * @return {String} value of attribute - * - * @example - *
- * var myDiv = createDiv('I like pandas.'); - * myDiv.attribute('align', 'center'); - *
- */ - /** - * @method attribute - * @param {String} attr attribute to set - * @param {String} value value to assign to attribute - * @chainable - */ - p5.Element.prototype.attribute = function(attr, value) { - //handling for checkboxes and radios to ensure options get - //attributes not divs - if ( - this.elt.firstChild != null && - (this.elt.firstChild.type === 'checkbox' || - this.elt.firstChild.type === 'radio') - ) { - if (typeof value === 'undefined') { - return this.elt.firstChild.getAttribute(attr); - } else { - for (var i = 0; i < this.elt.childNodes.length; i++) { - this.elt.childNodes[i].setAttribute(attr, value); - } - } - } else if (typeof value === 'undefined') { - return this.elt.getAttribute(attr); - } else { - this.elt.setAttribute(attr, value); - return this; - } - }; - - /** - * - * Removes an attribute on the specified element. - * - * @method removeAttribute - * @param {String} attr attribute to remove - * @chainable - * - * @example - *
- * var button; - * var checkbox; - * - * function setup() { - * checkbox = createCheckbox('enable', true); - * checkbox.changed(enableButton); - * button = createButton('button'); - * button.position(10, 10); - * } - * - * function enableButton() { - * if (this.checked()) { - * // Re-enable the button - * button.removeAttribute('disabled'); - * } else { - * // Disable the button - * button.attribute('disabled', ''); - * } - * } - *
- */ - p5.Element.prototype.removeAttribute = function(attr) { - if ( - this.elt.firstChild != null && - (this.elt.firstChild.type === 'checkbox' || - this.elt.firstChild.type === 'radio') - ) { - for (var i = 0; i < this.elt.childNodes.length; i++) { - this.elt.childNodes[i].removeAttribute(attr); - } - } - this.elt.removeAttribute(attr); - return this; - }; - - /** - * Either returns the value of the element if no arguments - * given, or sets the value of the element. - * - * @method value - * @return {String|Number} value of the element - * @example - *
- * // gets the value - * var inp; - * function setup() { - * inp = createInput(''); - * } - * - * function mousePressed() { - * print(inp.value()); - * } - *
- *
- * // sets the value - * var inp; - * function setup() { - * inp = createInput('myValue'); - * } - * - * function mousePressed() { - * inp.value('myValue'); - * } - *
- */ - /** - * @method value - * @param {String|Number} value - * @chainable - */ - p5.Element.prototype.value = function() { - if (arguments.length > 0) { - this.elt.value = arguments[0]; - return this; - } else { - if (this.elt.type === 'range') { - return parseFloat(this.elt.value); - } else return this.elt.value; - } - }; - - /** - * - * Shows the current element. Essentially, setting display:block for the style. - * - * @method show - * @chainable - * @example - *
- * var div = createDiv('div'); - * div.style('display', 'none'); - * div.show(); // turns display to block - *
- */ - p5.Element.prototype.show = function() { - this.elt.style.display = 'block'; - return this; - }; - - /** - * Hides the current element. Essentially, setting display:none for the style. - * - * @method hide - * @chainable - * @example - *
- * var div = createDiv('this is a div'); - * div.hide(); - *
- */ - p5.Element.prototype.hide = function() { - this.elt.style.display = 'none'; - return this; - }; - - /** - * - * Sets the width and height of the element. AUTO can be used to - * only adjust one dimension at a time. If no arguments are given, it - * returns the width and height of the element in an object. In case of - * elements which need to be loaded, such as images, it is recommended - * to call the function after the element has finished loading. - * - * @method size - * @return {Object} the width and height of the element in an object - * @example - *
- * let div = createDiv('this is a div'); - * div.size(100, 100); - * let img = createImg('assets/laDefense.jpg', () => { - * img.size(10, AUTO); - * }); - *
- */ - /** - * @method size - * @param {Number|Constant} w width of the element, either AUTO, or a number - * @param {Number|Constant} [h] height of the element, either AUTO, or a number - * @chainable - */ - p5.Element.prototype.size = function(w, h) { - if (arguments.length === 0) { - return { width: this.elt.offsetWidth, height: this.elt.offsetHeight }; - } else { - var aW = w; - var aH = h; - var AUTO = p5.prototype.AUTO; - if (aW !== AUTO || aH !== AUTO) { - if (aW === AUTO) { - aW = h * this.width / this.height; - } else if (aH === AUTO) { - aH = w * this.height / this.width; - } - // set diff for cnv vs normal div - if (this.elt instanceof HTMLCanvasElement) { - var j = {}; - var k = this.elt.getContext('2d'); - var prop; - for (prop in k) { - j[prop] = k[prop]; - } - this.elt.setAttribute('width', aW * this._pInst._pixelDensity); - this.elt.setAttribute('height', aH * this._pInst._pixelDensity); - this.elt.style.width = aW + 'px'; - this.elt.style.height = aH + 'px'; - this._pInst.scale( - this._pInst._pixelDensity, - this._pInst._pixelDensity - ); - for (prop in j) { - this.elt.getContext('2d')[prop] = j[prop]; - } - } else { - this.elt.style.width = aW + 'px'; - this.elt.style.height = aH + 'px'; - this.elt.width = aW; - this.elt.height = aH; - } - - this.width = this.elt.offsetWidth; - this.height = this.elt.offsetHeight; - - if (this._pInst && this._pInst._curElement) { - // main canvas associated with p5 instance - if (this._pInst._curElement.elt === this.elt) { - this._pInst._setProperty('width', this.elt.offsetWidth); - this._pInst._setProperty('height', this.elt.offsetHeight); - } - } - } - return this; - } - }; - - /** - * Removes the element and deregisters all listeners. - * @method remove - * @example - *
- * var myDiv = createDiv('this is some text'); - * myDiv.remove(); - *
- */ - p5.Element.prototype.remove = function() { - // deregister events - for (var ev in this._events) { - this.elt.removeEventListener(ev, this._events[ev]); - } - if (this.elt.parentNode) { - this.elt.parentNode.removeChild(this.elt); - } - delete this; - }; - - /** - * Registers a callback that gets called every time a file that is - * dropped on the element has been loaded. - * p5 will load every dropped file into memory and pass it as a p5.File object to the callback. - * Multiple files dropped at the same time will result in multiple calls to the callback. - * - * You can optionally pass a second callback which will be registered to the raw - * drop event. - * The callback will thus be provided the original - * DragEvent. - * Dropping multiple files at the same time will trigger the second callback once per drop, - * whereas the first callback will trigger for each loaded file. - * - * @method drop - * @param {Function} callback callback to receive loaded file, called for each file dropped. - * @param {Function} [fxn] callback triggered once when files are dropped with the drop event. - * @chainable - * @example - *
- * function setup() { - * var c = createCanvas(100, 100); - * background(200); - * textAlign(CENTER); - * text('drop file', width / 2, height / 2); - * c.drop(gotFile); - * } - * - * function gotFile(file) { - * background(200); - * text('received file:', width / 2, height / 2); - * text(file.name, width / 2, height / 2 + 50); - * } - *
- * - *
- * var img; - * - * function setup() { - * var c = createCanvas(100, 100); - * background(200); - * textAlign(CENTER); - * text('drop image', width / 2, height / 2); - * c.drop(gotFile); - * } - * - * function draw() { - * if (img) { - * image(img, 0, 0, width, height); - * } - * } - * - * function gotFile(file) { - * img = createImg(file.data).hide(); - * } - *
- * - * @alt - * Canvas turns into whatever image is dragged/dropped onto it. - */ - p5.Element.prototype.drop = function(callback, fxn) { - // Is the file stuff supported? - if (window.File && window.FileReader && window.FileList && window.Blob) { - if (!this._dragDisabled) { - this._dragDisabled = true; - - var preventDefault = function(evt) { - evt.preventDefault(); - }; - - // If you want to be able to drop you've got to turn off - // a lot of default behavior. - // avoid `attachListener` here, since it overrides other handlers. - this.elt.addEventListener('dragover', preventDefault); - - // If this is a drag area we need to turn off the default behavior - this.elt.addEventListener('dragleave', preventDefault); - } - - // Deal with the files - p5.Element._attachListener( - 'drop', - function(evt) { - evt.preventDefault(); - // Call the second argument as a callback that receives the raw drop event - if (typeof fxn === 'function') { - fxn.call(this, evt); - } - // A FileList - var files = evt.dataTransfer.files; - - // Load each one and trigger the callback - for (var i = 0; i < files.length; i++) { - var f = files[i]; - p5.File._load(f, callback); - } - }, - this - ); - } else { - console.log('The File APIs are not fully supported in this browser.'); - } - - return this; - }; - - // ============================================================================= - // p5.MediaElement additions - // ============================================================================= - - /** - * Extends p5.Element to handle audio and video. In addition to the methods - * of p5.Element, it also contains methods for controlling media. It is not - * called directly, but p5.MediaElements are created by calling createVideo, - * createAudio, and createCapture. - * - * @class p5.MediaElement - * @constructor - * @param {String} elt DOM node that is wrapped - */ - p5.MediaElement = function(elt, pInst) { - p5.Element.call(this, elt, pInst); - - var self = this; - this.elt.crossOrigin = 'anonymous'; - - this._prevTime = 0; - this._cueIDCounter = 0; - this._cues = []; - this._pixelsState = this; - this._pixelDensity = 1; - this._modified = false; - this._pixelsDirty = true; - this._pixelsTime = -1; // the time at which we last updated 'pixels' - - /** - * Path to the media element source. - * - * @property src - * @return {String} src - * @example - *
- * var ele; - * - * function setup() { - * background(250); - * - * //p5.MediaElement objects are usually created - * //by calling the createAudio(), createVideo(), - * //and createCapture() functions. - * - * //In this example we create - * //a new p5.MediaElement via createAudio(). - * ele = createAudio('assets/beat.mp3'); - * - * //We'll set up our example so that - * //when you click on the text, - * //an alert box displays the MediaElement's - * //src field. - * textAlign(CENTER); - * text('Click Me!', width / 2, height / 2); - * } - * - * function mouseClicked() { - * //here we test if the mouse is over the - * //canvas element when it's clicked - * if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) { - * //Show our p5.MediaElement's src field - * alert(ele.src); - * } - * } - *
- */ - Object.defineProperty(self, 'src', { - get: function() { - var firstChildSrc = self.elt.children[0].src; - var srcVal = self.elt.src === window.location.href ? '' : self.elt.src; - var ret = - firstChildSrc === window.location.href ? srcVal : firstChildSrc; - return ret; - }, - set: function(newValue) { - for (var i = 0; i < self.elt.children.length; i++) { - self.elt.removeChild(self.elt.children[i]); - } - var source = document.createElement('source'); - source.src = newValue; - elt.appendChild(source); - self.elt.src = newValue; - self.modified = true; - } - }); - - // private _onended callback, set by the method: onended(callback) - self._onended = function() {}; - self.elt.onended = function() { - self._onended(self); - }; - }; - p5.MediaElement.prototype = Object.create(p5.Element.prototype); - - /** - * Play an HTML5 media element. - * - * @method play - * @chainable - * @example - *
- * var ele; - * - * function setup() { - * //p5.MediaElement objects are usually created - * //by calling the createAudio(), createVideo(), - * //and createCapture() functions. - * - * //In this example we create - * //a new p5.MediaElement via createAudio(). - * ele = createAudio('assets/beat.mp3'); - * - * background(250); - * textAlign(CENTER); - * text('Click to Play!', width / 2, height / 2); - * } - * - * function mouseClicked() { - * //here we test if the mouse is over the - * //canvas element when it's clicked - * if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) { - * //Here we call the play() function on - * //the p5.MediaElement we created above. - * //This will start the audio sample. - * ele.play(); - * - * background(200); - * text('You clicked Play!', width / 2, height / 2); - * } - * } - *
- */ - p5.MediaElement.prototype.play = function() { - if (this.elt.currentTime === this.elt.duration) { - this.elt.currentTime = 0; - } - var promise; - if (this.elt.readyState > 1) { - promise = this.elt.play(); - } else { - // in Chrome, playback cannot resume after being stopped and must reload - this.elt.load(); - promise = this.elt.play(); - } - if (promise && promise.catch) { - promise.catch(function(e) { - console.log( - 'WARN: Element play method raised an error asynchronously', - e - ); - }); - } - return this; - }; - - /** - * Stops an HTML5 media element (sets current time to zero). - * - * @method stop - * @chainable - * @example - *
- * //This example both starts - * //and stops a sound sample - * //when the user clicks the canvas - * - * //We will store the p5.MediaElement - * //object in here - * var ele; - * - * //while our audio is playing, - * //this will be set to true - * var sampleIsPlaying = false; - * - * function setup() { - * //Here we create a p5.MediaElement object - * //using the createAudio() function. - * ele = createAudio('assets/beat.mp3'); - * background(200); - * textAlign(CENTER); - * text('Click to play!', width / 2, height / 2); - * } - * - * function mouseClicked() { - * //here we test if the mouse is over the - * //canvas element when it's clicked - * if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) { - * background(200); - * - * if (sampleIsPlaying) { - * //if the sample is currently playing - * //calling the stop() function on - * //our p5.MediaElement will stop - * //it and reset its current - * //time to 0 (i.e. it will start - * //at the beginning the next time - * //you play it) - * ele.stop(); - * - * sampleIsPlaying = false; - * text('Click to play!', width / 2, height / 2); - * } else { - * //loop our sound element until we - * //call ele.stop() on it. - * ele.loop(); - * - * sampleIsPlaying = true; - * text('Click to stop!', width / 2, height / 2); - * } - * } - * } - *
- */ - p5.MediaElement.prototype.stop = function() { - this.elt.pause(); - this.elt.currentTime = 0; - return this; - }; - - /** - * Pauses an HTML5 media element. - * - * @method pause - * @chainable - * @example - *
- * //This example both starts - * //and pauses a sound sample - * //when the user clicks the canvas - * - * //We will store the p5.MediaElement - * //object in here - * var ele; - * - * //while our audio is playing, - * //this will be set to true - * var sampleIsPlaying = false; - * - * function setup() { - * //Here we create a p5.MediaElement object - * //using the createAudio() function. - * ele = createAudio('assets/lucky_dragons.mp3'); - * background(200); - * textAlign(CENTER); - * text('Click to play!', width / 2, height / 2); - * } - * - * function mouseClicked() { - * //here we test if the mouse is over the - * //canvas element when it's clicked - * if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) { - * background(200); - * - * if (sampleIsPlaying) { - * //Calling pause() on our - * //p5.MediaElement will stop it - * //playing, but when we call the - * //loop() or play() functions - * //the sample will start from - * //where we paused it. - * ele.pause(); - * - * sampleIsPlaying = false; - * text('Click to resume!', width / 2, height / 2); - * } else { - * //loop our sound element until we - * //call ele.pause() on it. - * ele.loop(); - * - * sampleIsPlaying = true; - * text('Click to pause!', width / 2, height / 2); - * } - * } - * } - *
- */ - p5.MediaElement.prototype.pause = function() { - this.elt.pause(); - return this; - }; - - /** - * Set 'loop' to true for an HTML5 media element, and starts playing. - * - * @method loop - * @chainable - * @example - *
- * //Clicking the canvas will loop - * //the audio sample until the user - * //clicks again to stop it - * - * //We will store the p5.MediaElement - * //object in here - * var ele; - * - * //while our audio is playing, - * //this will be set to true - * var sampleIsLooping = false; - * - * function setup() { - * //Here we create a p5.MediaElement object - * //using the createAudio() function. - * ele = createAudio('assets/lucky_dragons.mp3'); - * background(200); - * textAlign(CENTER); - * text('Click to loop!', width / 2, height / 2); - * } - * - * function mouseClicked() { - * //here we test if the mouse is over the - * //canvas element when it's clicked - * if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) { - * background(200); - * - * if (!sampleIsLooping) { - * //loop our sound element until we - * //call ele.stop() on it. - * ele.loop(); - * - * sampleIsLooping = true; - * text('Click to stop!', width / 2, height / 2); - * } else { - * ele.stop(); - * - * sampleIsLooping = false; - * text('Click to loop!', width / 2, height / 2); - * } - * } - * } - *
- */ - p5.MediaElement.prototype.loop = function() { - this.elt.setAttribute('loop', true); - this.play(); - return this; - }; - /** - * Set 'loop' to false for an HTML5 media element. Element will stop - * when it reaches the end. - * - * @method noLoop - * @chainable - * @example - *
- * //This example both starts - * //and stops loop of sound sample - * //when the user clicks the canvas - * - * //We will store the p5.MediaElement - * //object in here - * var ele; - * //while our audio is playing, - * //this will be set to true - * var sampleIsPlaying = false; - * - * function setup() { - * //Here we create a p5.MediaElement object - * //using the createAudio() function. - * ele = createAudio('assets/beat.mp3'); - * background(200); - * textAlign(CENTER); - * text('Click to play!', width / 2, height / 2); - * } - * - * function mouseClicked() { - * //here we test if the mouse is over the - * //canvas element when it's clicked - * if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) { - * background(200); - * - * if (sampleIsPlaying) { - * ele.noLoop(); - * text('No more Loops!', width / 2, height / 2); - * } else { - * ele.loop(); - * sampleIsPlaying = true; - * text('Click to stop looping!', width / 2, height / 2); - * } - * } - * } - *
- * - */ - p5.MediaElement.prototype.noLoop = function() { - this.elt.setAttribute('loop', false); - return this; - }; - - /** - * Set HTML5 media element to autoplay or not. - * - * @method autoplay - * @param {Boolean} autoplay whether the element should autoplay - * @chainable - */ - p5.MediaElement.prototype.autoplay = function(val) { - this.elt.setAttribute('autoplay', val); - return this; - }; - - /** - * Sets volume for this HTML5 media element. If no argument is given, - * returns the current volume. - * - * @method volume - * @return {Number} current volume - * - * @example - *
- * var ele; - * function setup() { - * // p5.MediaElement objects are usually created - * // by calling the createAudio(), createVideo(), - * // and createCapture() functions. - * // In this example we create - * // a new p5.MediaElement via createAudio(). - * ele = createAudio('assets/lucky_dragons.mp3'); - * background(250); - * textAlign(CENTER); - * text('Click to Play!', width / 2, height / 2); - * } - * function mouseClicked() { - * // Here we call the volume() function - * // on the sound element to set its volume - * // Volume must be between 0.0 and 1.0 - * ele.volume(0.2); - * ele.play(); - * background(200); - * text('You clicked Play!', width / 2, height / 2); - * } - *
- *
- * var audio; - * var counter = 0; - * - * function loaded() { - * audio.play(); - * } - * - * function setup() { - * audio = createAudio('assets/lucky_dragons.mp3', loaded); - * textAlign(CENTER); - * } - * - * function draw() { - * if (counter === 0) { - * background(0, 255, 0); - * text('volume(0.9)', width / 2, height / 2); - * } else if (counter === 1) { - * background(255, 255, 0); - * text('volume(0.5)', width / 2, height / 2); - * } else if (counter === 2) { - * background(255, 0, 0); - * text('volume(0.1)', width / 2, height / 2); - * } - * } - * - * function mousePressed() { - * counter++; - * if (counter === 0) { - * audio.volume(0.9); - * } else if (counter === 1) { - * audio.volume(0.5); - * } else if (counter === 2) { - * audio.volume(0.1); - * } else { - * counter = 0; - * audio.volume(0.9); - * } - * } - * - *
- */ - /** - * @method volume - * @param {Number} val volume between 0.0 and 1.0 - * @chainable - */ - p5.MediaElement.prototype.volume = function(val) { - if (typeof val === 'undefined') { - return this.elt.volume; - } else { - this.elt.volume = val; - } - }; - - /** - * If no arguments are given, returns the current playback speed of the - * element. The speed parameter sets the speed where 2.0 will play the - * element twice as fast, 0.5 will play at half the speed, and -1 will play - * the element in normal speed in reverse.(Note that not all browsers support - * backward playback and even if they do, playback might not be smooth.) - * - * @method speed - * @return {Number} current playback speed of the element - * - * @example - *
- * //Clicking the canvas will loop - * //the audio sample until the user - * //clicks again to stop it - * - * //We will store the p5.MediaElement - * //object in here - * var ele; - * var button; - * - * function setup() { - * createCanvas(710, 400); - * //Here we create a p5.MediaElement object - * //using the createAudio() function. - * ele = createAudio('assets/beat.mp3'); - * ele.loop(); - * background(200); - * - * button = createButton('2x speed'); - * button.position(100, 68); - * button.mousePressed(twice_speed); - * - * button = createButton('half speed'); - * button.position(200, 68); - * button.mousePressed(half_speed); - * - * button = createButton('reverse play'); - * button.position(300, 68); - * button.mousePressed(reverse_speed); - * - * button = createButton('STOP'); - * button.position(400, 68); - * button.mousePressed(stop_song); - * - * button = createButton('PLAY!'); - * button.position(500, 68); - * button.mousePressed(play_speed); - * } - * - * function twice_speed() { - * ele.speed(2); - * } - * - * function half_speed() { - * ele.speed(0.5); - * } - * - * function reverse_speed() { - * ele.speed(-1); - * } - * - * function stop_song() { - * ele.stop(); - * } - * - * function play_speed() { - * ele.play(); - * } - *
- */ - /** - * @method speed - * @param {Number} speed speed multiplier for element playback - * @chainable - */ - p5.MediaElement.prototype.speed = function(val) { - if (typeof val === 'undefined') { - return this.presetPlaybackRate || this.elt.playbackRate; - } else { - if (this.loadedmetadata) { - this.elt.playbackRate = val; - } else { - this.presetPlaybackRate = val; - } - } - }; - - /** - * If no arguments are given, returns the current time of the element. - * If an argument is given the current time of the element is set to it. - * - * @method time - * @return {Number} current time (in seconds) - * - * @example - *
- * var ele; - * var beginning = true; - * function setup() { - * //p5.MediaElement objects are usually created - * //by calling the createAudio(), createVideo(), - * //and createCapture() functions. - * - * //In this example we create - * //a new p5.MediaElement via createAudio(). - * ele = createAudio('assets/lucky_dragons.mp3'); - * background(250); - * textAlign(CENTER); - * text('start at beginning', width / 2, height / 2); - * } - * - * // this function fires with click anywhere - * function mousePressed() { - * if (beginning === true) { - * // here we start the sound at the beginning - * // time(0) is not necessary here - * // as this produces the same result as - * // play() - * ele.play().time(0); - * background(200); - * text('jump 2 sec in', width / 2, height / 2); - * beginning = false; - * } else { - * // here we jump 2 seconds into the sound - * ele.play().time(2); - * background(250); - * text('start at beginning', width / 2, height / 2); - * beginning = true; - * } - * } - *
- */ - /** - * @method time - * @param {Number} time time to jump to (in seconds) - * @chainable - */ - p5.MediaElement.prototype.time = function(val) { - if (typeof val === 'undefined') { - return this.elt.currentTime; - } else { - this.elt.currentTime = val; - return this; - } - }; - - /** - * Returns the duration of the HTML5 media element. - * - * @method duration - * @return {Number} duration - * - * @example - *
- * var ele; - * function setup() { - * //p5.MediaElement objects are usually created - * //by calling the createAudio(), createVideo(), - * //and createCapture() functions. - * //In this example we create - * //a new p5.MediaElement via createAudio(). - * ele = createAudio('assets/doorbell.mp3'); - * background(250); - * textAlign(CENTER); - * text('Click to know the duration!', 10, 25, 70, 80); - * } - * function mouseClicked() { - * ele.play(); - * background(200); - * //ele.duration dislpays the duration - * text(ele.duration() + ' seconds', width / 2, height / 2); - * } - *
- */ - p5.MediaElement.prototype.duration = function() { - return this.elt.duration; - }; - p5.MediaElement.prototype.pixels = []; - p5.MediaElement.prototype._ensureCanvas = function() { - if (!this.canvas) { - this.canvas = document.createElement('canvas'); - this.drawingContext = this.canvas.getContext('2d'); - this.setModified(true); - } - if (this.loadedmetadata) { - // wait for metadata for w/h - if (this.canvas.width !== this.elt.width) { - this.canvas.width = this.elt.width; - this.canvas.height = this.elt.height; - this.width = this.canvas.width; - this.height = this.canvas.height; - this._pixelsDirty = true; - } - - var currentTime = this.elt.currentTime; - if (this._pixelsDirty || this._pixelsTime !== currentTime) { - // only update the pixels array if it's dirty, or - // if the video time has changed. - this._pixelsTime = currentTime; - this._pixelsDirty = true; - - this.drawingContext.drawImage( - this.elt, - 0, - 0, - this.canvas.width, - this.canvas.height - ); - this.setModified(true); - } - } - }; - p5.MediaElement.prototype.loadPixels = function() { - this._ensureCanvas(); - return p5.Renderer2D.prototype.loadPixels.apply(this, arguments); - }; - p5.MediaElement.prototype.updatePixels = function(x, y, w, h) { - if (this.loadedmetadata) { - // wait for metadata - this._ensureCanvas(); - p5.Renderer2D.prototype.updatePixels.call(this, x, y, w, h); - } - this.setModified(true); - return this; - }; - p5.MediaElement.prototype.get = function() { - this._ensureCanvas(); - return p5.Renderer2D.prototype.get.apply(this, arguments); - }; - p5.MediaElement.prototype._getPixel = function() { - this.loadPixels(); - return p5.Renderer2D.prototype._getPixel.apply(this, arguments); - }; - - p5.MediaElement.prototype.set = function(x, y, imgOrCol) { - if (this.loadedmetadata) { - // wait for metadata - this._ensureCanvas(); - p5.Renderer2D.prototype.set.call(this, x, y, imgOrCol); - this.setModified(true); - } - }; - p5.MediaElement.prototype.copy = function() { - this._ensureCanvas(); - p5.Renderer2D.prototype.copy.apply(this, arguments); - }; - p5.MediaElement.prototype.mask = function() { - this.loadPixels(); - this.setModified(true); - p5.Image.prototype.mask.apply(this, arguments); - }; - /** - * helper method for web GL mode to figure out if the element - * has been modified and might need to be re-uploaded to texture - * memory between frames. - * @method isModified - * @private - * @return {boolean} a boolean indicating whether or not the - * image has been updated or modified since last texture upload. - */ - p5.MediaElement.prototype.isModified = function() { - return this._modified; - }; - /** - * helper method for web GL mode to indicate that an element has been - * changed or unchanged since last upload. gl texture upload will - * set this value to false after uploading the texture; or might set - * it to true if metadata has become available but there is no actual - * texture data available yet.. - * @method setModified - * @param {boolean} val sets whether or not the element has been - * modified. - * @private - */ - p5.MediaElement.prototype.setModified = function(value) { - this._modified = value; - }; - /** - * Schedule an event to be called when the audio or video - * element reaches the end. If the element is looping, - * this will not be called. The element is passed in - * as the argument to the onended callback. - * - * @method onended - * @param {Function} callback function to call when the - * soundfile has ended. The - * media element will be passed - * in as the argument to the - * callback. - * @chainable - * @example - *
- * function setup() { - * var audioEl = createAudio('assets/beat.mp3'); - * audioEl.showControls(); - * audioEl.onended(sayDone); - * } - * - * function sayDone(elt) { - * alert('done playing ' + elt.src); - * } - *
- */ - p5.MediaElement.prototype.onended = function(callback) { - this._onended = callback; - return this; - }; - - /*** CONNECT TO WEB AUDIO API / p5.sound.js ***/ - - /** - * Send the audio output of this element to a specified audioNode or - * p5.sound object. If no element is provided, connects to p5's master - * output. That connection is established when this method is first called. - * All connections are removed by the .disconnect() method. - * - * This method is meant to be used with the p5.sound.js addon library. - * - * @method connect - * @param {AudioNode|Object} audioNode AudioNode from the Web Audio API, - * or an object from the p5.sound library - */ - p5.MediaElement.prototype.connect = function(obj) { - var audioContext, masterOutput; - - // if p5.sound exists, same audio context - if (typeof p5.prototype.getAudioContext === 'function') { - audioContext = p5.prototype.getAudioContext(); - masterOutput = p5.soundOut.input; - } else { - try { - audioContext = obj.context; - masterOutput = audioContext.destination; - } catch (e) { - throw 'connect() is meant to be used with Web Audio API or p5.sound.js'; - } - } - - // create a Web Audio MediaElementAudioSourceNode if none already exists - if (!this.audioSourceNode) { - this.audioSourceNode = audioContext.createMediaElementSource(this.elt); - - // connect to master output when this method is first called - this.audioSourceNode.connect(masterOutput); - } - - // connect to object if provided - if (obj) { - if (obj.input) { - this.audioSourceNode.connect(obj.input); - } else { - this.audioSourceNode.connect(obj); - } - } else { - // otherwise connect to master output of p5.sound / AudioContext - this.audioSourceNode.connect(masterOutput); - } - }; - - /** - * Disconnect all Web Audio routing, including to master output. - * This is useful if you want to re-route the output through - * audio effects, for example. - * - * @method disconnect - */ - p5.MediaElement.prototype.disconnect = function() { - if (this.audioSourceNode) { - this.audioSourceNode.disconnect(); - } else { - throw 'nothing to disconnect'; - } - }; - - /*** SHOW / HIDE CONTROLS ***/ - - /** - * Show the default MediaElement controls, as determined by the web browser. - * - * @method showControls - * @example - *
- * var ele; - * function setup() { - * //p5.MediaElement objects are usually created - * //by calling the createAudio(), createVideo(), - * //and createCapture() functions. - * //In this example we create - * //a new p5.MediaElement via createAudio() - * ele = createAudio('assets/lucky_dragons.mp3'); - * background(200); - * textAlign(CENTER); - * text('Click to Show Controls!', 10, 25, 70, 80); - * } - * function mousePressed() { - * ele.showControls(); - * background(200); - * text('Controls Shown', width / 2, height / 2); - * } - *
- */ - p5.MediaElement.prototype.showControls = function() { - // must set style for the element to show on the page - this.elt.style['text-align'] = 'inherit'; - this.elt.controls = true; - }; - - /** - * Hide the default mediaElement controls. - * @method hideControls - * @example - *
- * var ele; - * function setup() { - * //p5.MediaElement objects are usually created - * //by calling the createAudio(), createVideo(), - * //and createCapture() functions. - * //In this example we create - * //a new p5.MediaElement via createAudio() - * ele = createAudio('assets/lucky_dragons.mp3'); - * ele.showControls(); - * background(200); - * textAlign(CENTER); - * text('Click to hide Controls!', 10, 25, 70, 80); - * } - * function mousePressed() { - * ele.hideControls(); - * background(200); - * text('Controls hidden', width / 2, height / 2); - * } - *
- */ - p5.MediaElement.prototype.hideControls = function() { - this.elt.controls = false; - }; - - /*** SCHEDULE EVENTS ***/ - - // Cue inspired by JavaScript setTimeout, and the - // Tone.js Transport Timeline Event, MIT License Yotam Mann 2015 tonejs.org - var Cue = function(callback, time, id, val) { - this.callback = callback; - this.time = time; - this.id = id; - this.val = val; - }; - - /** - * Schedule events to trigger every time a MediaElement - * (audio/video) reaches a playback cue point. - * - * Accepts a callback function, a time (in seconds) at which to trigger - * the callback, and an optional parameter for the callback. - * - * Time will be passed as the first parameter to the callback function, - * and param will be the second parameter. - * - * - * @method addCue - * @param {Number} time Time in seconds, relative to this media - * element's playback. For example, to trigger - * an event every time playback reaches two - * seconds, pass in the number 2. This will be - * passed as the first parameter to - * the callback function. - * @param {Function} callback Name of a function that will be - * called at the given time. The callback will - * receive time and (optionally) param as its - * two parameters. - * @param {Object} [value] An object to be passed as the - * second parameter to the - * callback function. - * @return {Number} id ID of this cue, - * useful for removeCue(id) - * @example - *
- * // - * // - * function setup() { - * noCanvas(); - * - * var audioEl = createAudio('assets/beat.mp3'); - * audioEl.showControls(); - * - * // schedule three calls to changeBackground - * audioEl.addCue(0.5, changeBackground, color(255, 0, 0)); - * audioEl.addCue(1.0, changeBackground, color(0, 255, 0)); - * audioEl.addCue(2.5, changeBackground, color(0, 0, 255)); - * audioEl.addCue(3.0, changeBackground, color(0, 255, 255)); - * audioEl.addCue(4.2, changeBackground, color(255, 255, 0)); - * audioEl.addCue(5.0, changeBackground, color(255, 255, 0)); - * } - * - * function changeBackground(val) { - * background(val); - * } - *
- */ - p5.MediaElement.prototype.addCue = function(time, callback, val) { - var id = this._cueIDCounter++; - - var cue = new Cue(callback, time, id, val); - this._cues.push(cue); - - if (!this.elt.ontimeupdate) { - this.elt.ontimeupdate = this._onTimeUpdate.bind(this); - } - - return id; - }; - - /** - * Remove a callback based on its ID. The ID is returned by the - * addCue method. - * @method removeCue - * @param {Number} id ID of the cue, as returned by addCue - * @example - *
- * var audioEl, id1, id2; - * function setup() { - * background(255, 255, 255); - * audioEl = createAudio('assets/beat.mp3'); - * audioEl.showControls(); - * // schedule five calls to changeBackground - * id1 = audioEl.addCue(0.5, changeBackground, color(255, 0, 0)); - * audioEl.addCue(1.0, changeBackground, color(0, 255, 0)); - * audioEl.addCue(2.5, changeBackground, color(0, 0, 255)); - * audioEl.addCue(3.0, changeBackground, color(0, 255, 255)); - * id2 = audioEl.addCue(4.2, changeBackground, color(255, 255, 0)); - * text('Click to remove first and last Cue!', 10, 25, 70, 80); - * } - * function mousePressed() { - * audioEl.removeCue(id1); - * audioEl.removeCue(id2); - * } - * function changeBackground(val) { - * background(val); - * } - *
- */ - p5.MediaElement.prototype.removeCue = function(id) { - for (var i = 0; i < this._cues.length; i++) { - if (this._cues[i].id === id) { - console.log(id); - this._cues.splice(i, 1); - } - } - - if (this._cues.length === 0) { - this.elt.ontimeupdate = null; - } - }; - - /** - * Remove all of the callbacks that had originally been scheduled - * via the addCue method. - * @method clearCues - * @param {Number} id ID of the cue, as returned by addCue - * @example - *
- * var audioEl; - * function setup() { - * background(255, 255, 255); - * audioEl = createAudio('assets/beat.mp3'); - * //Show the default MediaElement controls, as determined by the web browser - * audioEl.showControls(); - * // schedule calls to changeBackground - * background(200); - * text('Click to change Cue!', 10, 25, 70, 80); - * audioEl.addCue(0.5, changeBackground, color(255, 0, 0)); - * audioEl.addCue(1.0, changeBackground, color(0, 255, 0)); - * audioEl.addCue(2.5, changeBackground, color(0, 0, 255)); - * audioEl.addCue(3.0, changeBackground, color(0, 255, 255)); - * audioEl.addCue(4.2, changeBackground, color(255, 255, 0)); - * } - * function mousePressed() { - * // here we clear the scheduled callbacks - * audioEl.clearCues(); - * // then we add some more callbacks - * audioEl.addCue(1, changeBackground, color(2, 2, 2)); - * audioEl.addCue(3, changeBackground, color(255, 255, 0)); - * } - * function changeBackground(val) { - * background(val); - * } - *
- */ - p5.MediaElement.prototype.clearCues = function() { - this._cues = []; - this.elt.ontimeupdate = null; - }; - - // private method that checks for cues to be fired if events - // have been scheduled using addCue(callback, time). - p5.MediaElement.prototype._onTimeUpdate = function() { - var playbackTime = this.time(); - - for (var i = 0; i < this._cues.length; i++) { - var callbackTime = this._cues[i].time; - var val = this._cues[i].val; - - if (this._prevTime < callbackTime && callbackTime <= playbackTime) { - // pass the scheduled callbackTime as parameter to the callback - this._cues[i].callback(val); - } - } - - this._prevTime = playbackTime; - }; - - /** - * Base class for a file. - * Used for Element.drop and createFileInput. - * - * @class p5.File - * @constructor - * @param {File} file File that is wrapped - */ - p5.File = function(file, pInst) { - /** - * Underlying File object. All normal File methods can be called on this. - * - * @property file - */ - this.file = file; - - this._pInst = pInst; - - // Splitting out the file type into two components - // This makes determining if image or text etc simpler - var typeList = file.type.split('/'); - /** - * File type (image, text, etc.) - * - * @property type - */ - this.type = typeList[0]; - /** - * File subtype (usually the file extension jpg, png, xml, etc.) - * - * @property subtype - */ - this.subtype = typeList[1]; - /** - * File name - * - * @property name - */ - this.name = file.name; - /** - * File size - * - * @property size - */ - this.size = file.size; - - /** - * URL string containing image data. - * - * @property data - */ - this.data = undefined; - }; - - p5.File._createLoader = function(theFile, callback) { - var reader = new FileReader(); - reader.onload = function(e) { - var p5file = new p5.File(theFile); - p5file.data = e.target.result; - callback(p5file); - }; - return reader; - }; - - p5.File._load = function(f, callback) { - // Text or data? - // This should likely be improved - if (/^text\//.test(f.type)) { - p5.File._createLoader(f, callback).readAsText(f); - } else if (!/^(video|audio)\//.test(f.type)) { - p5.File._createLoader(f, callback).readAsDataURL(f); - } else { - var file = new p5.File(f); - file.data = URL.createObjectURL(f); - callback(file); - } - }; -}); +/*! p5.js v0.9.0 July 01, 2019 */ +/** + *

The web is much more than just canvas and p5.dom makes it easy to interact + * with other HTML5 objects, including text, hyperlink, image, input, video, + * audio, and webcam.

+ *

There is a set of creation methods, DOM manipulation methods, and + * an extended p5.Element that supports a range of HTML elements. See the + * + * beyond the canvas tutorial for a full overview of how this addon works. + * + *

Methods and properties shown in black are part of the p5.js core, items in + * blue are part of the p5.dom library. You will need to include an extra file + * in order to access the blue functions. See the + * using a library + * section for information on how to include this library. p5.dom comes with + * p5 complete or you can download the single file + * + * here.

+ *

See tutorial: beyond the canvas + * for more info on how to use this library. + * + * @module p5.dom + * @submodule p5.dom + * @for p5 + * @main + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) + define('p5.dom', ['p5'], function(p5) { + factory(p5); + }); + else if (typeof exports === 'object') factory(require('../p5')); + else factory(root['p5']); +})(this, function(p5) { + // ============================================================================= + // p5 additions + // ============================================================================= + + /** + * Searches the page for an element with the given ID, class, or tag name (using the '#' or '.' + * prefixes to specify an ID or class respectively, and none for a tag) and returns it as + * a p5.Element. If a class or tag name is given with more than 1 element, + * only the first element will be returned. + * The DOM node itself can be accessed with .elt. + * Returns null if none found. You can also specify a container to search within. + * + * @method select + * @param {String} name id, class, or tag name of element to search for + * @param {String|p5.Element|HTMLElement} [container] id, p5.Element, or + * HTML element to search within + * @return {p5.Element|null} p5.Element containing node found + * @example + *

+ * function setup() { + * createCanvas(100, 100); + * //translates canvas 50px down + * select('canvas').position(100, 100); + * } + *
+ *
+ * // these are all valid calls to select() + * var a = select('#moo'); + * var b = select('#blah', '#myContainer'); + * var c, e; + * if (b) { + * c = select('#foo', b); + * } + * var d = document.getElementById('beep'); + * if (d) { + * e = select('p', d); + * } + * [a, b, c, d, e]; // unused + *
+ * + */ + p5.prototype.select = function(e, p) { + p5._validateParameters('select', arguments); + var res = null; + var container = getContainer(p); + if (e[0] === '.') { + e = e.slice(1); + res = container.getElementsByClassName(e); + if (res.length) { + res = res[0]; + } else { + res = null; + } + } else if (e[0] === '#') { + e = e.slice(1); + res = container.getElementById(e); + } else { + res = container.getElementsByTagName(e); + if (res.length) { + res = res[0]; + } else { + res = null; + } + } + if (res) { + return this._wrapElement(res); + } else { + return null; + } + }; + + /** + * Searches the page for elements with the given class or tag name (using the '.' prefix + * to specify a class and no prefix for a tag) and returns them as p5.Elements + * in an array. + * The DOM node itself can be accessed with .elt. + * Returns an empty array if none found. + * You can also specify a container to search within. + * + * @method selectAll + * @param {String} name class or tag name of elements to search for + * @param {String} [container] id, p5.Element, or HTML element to search within + * @return {p5.Element[]} Array of p5.Elements containing nodes found + * @example + *
+ * function setup() { + * createButton('btn'); + * createButton('2nd btn'); + * createButton('3rd btn'); + * var buttons = selectAll('button'); + * + * for (var i = 0; i < buttons.length; i++) { + * buttons[i].size(100, 100); + * } + * } + *
+ *
+ * // these are all valid calls to selectAll() + * var a = selectAll('.moo'); + * a = selectAll('div'); + * a = selectAll('button', '#myContainer'); + * + * var d = select('#container'); + * a = selectAll('p', d); + * + * var f = document.getElementById('beep'); + * a = select('.blah', f); + * + * a; // unused + *
+ * + */ + p5.prototype.selectAll = function(e, p) { + p5._validateParameters('selectAll', arguments); + var arr = []; + var res; + var container = getContainer(p); + if (e[0] === '.') { + e = e.slice(1); + res = container.getElementsByClassName(e); + } else { + res = container.getElementsByTagName(e); + } + if (res) { + for (var j = 0; j < res.length; j++) { + var obj = this._wrapElement(res[j]); + arr.push(obj); + } + } + return arr; + }; + + /** + * Helper function for select and selectAll + */ + function getContainer(p) { + var container = document; + if (typeof p === 'string' && p[0] === '#') { + p = p.slice(1); + container = document.getElementById(p) || document; + } else if (p instanceof p5.Element) { + container = p.elt; + } else if (p instanceof HTMLElement) { + container = p; + } + return container; + } + + /** + * Helper function for getElement and getElements. + */ + p5.prototype._wrapElement = function(elt) { + var children = Array.prototype.slice.call(elt.children); + if (elt.tagName === 'INPUT' && elt.type === 'checkbox') { + var converted = new p5.Element(elt, this); + converted.checked = function() { + if (arguments.length === 0) { + return this.elt.checked; + } else if (arguments[0]) { + this.elt.checked = true; + } else { + this.elt.checked = false; + } + return this; + }; + return converted; + } else if (elt.tagName === 'VIDEO' || elt.tagName === 'AUDIO') { + return new p5.MediaElement(elt, this); + } else if (elt.tagName === 'SELECT') { + return this.createSelect(new p5.Element(elt, this)); + } else if ( + children.length > 0 && + children.every(function(c) { + return c.tagName === 'INPUT' || c.tagName === 'LABEL'; + }) + ) { + return this.createRadio(new p5.Element(elt, this)); + } else { + return new p5.Element(elt, this); + } + }; + + /** + * Removes all elements created by p5, except any canvas / graphics + * elements created by createCanvas or createGraphics. + * Event handlers are removed, and element is removed from the DOM. + * @method removeElements + * @example + *
+ * function setup() { + * createCanvas(100, 100); + * createDiv('this is some text'); + * createP('this is a paragraph'); + * } + * function mousePressed() { + * removeElements(); // this will remove the div and p, not canvas + * } + *
+ * + */ + p5.prototype.removeElements = function(e) { + p5._validateParameters('removeElements', arguments); + for (var i = 0; i < this._elements.length; i++) { + if (!(this._elements[i].elt instanceof HTMLCanvasElement)) { + this._elements[i].remove(); + } + } + }; + + /** + * The .changed() function is called when the value of an + * element changes. + * This can be used to attach an element specific event listener. + * + * @method changed + * @param {Function|Boolean} fxn function to be fired when the value of + * an element changes. + * if `false` is passed instead, the previously + * firing function will no longer fire. + * @chainable + * @example + *
+ * var sel; + * + * function setup() { + * textAlign(CENTER); + * background(200); + * sel = createSelect(); + * sel.position(10, 10); + * sel.option('pear'); + * sel.option('kiwi'); + * sel.option('grape'); + * sel.changed(mySelectEvent); + * } + * + * function mySelectEvent() { + * var item = sel.value(); + * background(200); + * text("it's a " + item + '!', 50, 50); + * } + *
+ * + *
+ * var checkbox; + * var cnv; + * + * function setup() { + * checkbox = createCheckbox(' fill'); + * checkbox.changed(changeFill); + * cnv = createCanvas(100, 100); + * cnv.position(0, 30); + * noFill(); + * } + * + * function draw() { + * background(200); + * ellipse(50, 50, 50, 50); + * } + * + * function changeFill() { + * if (checkbox.checked()) { + * fill(0); + * } else { + * noFill(); + * } + * } + *
+ * + * @alt + * dropdown: pear, kiwi, grape. When selected text "its a" + selection shown. + * + */ + p5.Element.prototype.changed = function(fxn) { + p5.Element._adjustListener('change', fxn, this); + return this; + }; + + /** + * The .input() function is called when any user input is + * detected with an element. The input event is often used + * to detect keystrokes in a input element, or changes on a + * slider element. This can be used to attach an element specific + * event listener. + * + * @method input + * @param {Function|Boolean} fxn function to be fired when any user input is + * detected within the element. + * if `false` is passed instead, the previously + * firing function will no longer fire. + * @chainable + * @example + *
+ * // Open your console to see the output + * function setup() { + * var inp = createInput(''); + * inp.input(myInputEvent); + * } + * + * function myInputEvent() { + * console.log('you are typing: ', this.value()); + * } + *
+ * + * @alt + * no display. + * + */ + p5.Element.prototype.input = function(fxn) { + p5.Element._adjustListener('input', fxn, this); + return this; + }; + + /** + * Helpers for create methods. + */ + function addElement(elt, pInst, media) { + var node = pInst._userNode ? pInst._userNode : document.body; + node.appendChild(elt); + var c = media + ? new p5.MediaElement(elt, pInst) + : new p5.Element(elt, pInst); + pInst._elements.push(c); + return c; + } + + /** + * Creates a <div></div> element in the DOM with given inner HTML. + * Appends to the container node if one is specified, otherwise + * appends to body. + * + * @method createDiv + * @param {String} [html] inner HTML for element created + * @return {p5.Element} pointer to p5.Element holding created node + * @example + *
+ * createDiv('this is some text'); + *
+ */ + + /** + * Creates a <p></p> element in the DOM with given inner HTML. Used + * for paragraph length text. + * Appends to the container node if one is specified, otherwise + * appends to body. + * + * @method createP + * @param {String} [html] inner HTML for element created + * @return {p5.Element} pointer to p5.Element holding created node + * @example + *
+ * createP('this is some text'); + *
+ */ + + /** + * Creates a <span></span> element in the DOM with given inner HTML. + * Appends to the container node if one is specified, otherwise + * appends to body. + * + * @method createSpan + * @param {String} [html] inner HTML for element created + * @return {p5.Element} pointer to p5.Element holding created node + * @example + *
+ * createSpan('this is some text'); + *
+ */ + var tags = ['div', 'p', 'span']; + tags.forEach(function(tag) { + var method = 'create' + tag.charAt(0).toUpperCase() + tag.slice(1); + p5.prototype[method] = function(html) { + var elt = document.createElement(tag); + elt.innerHTML = typeof html === 'undefined' ? '' : html; + return addElement(elt, this); + }; + }); + + /** + * Creates an <img> element in the DOM with given src and + * alternate text. + * Appends to the container node if one is specified, otherwise + * appends to body. + * + * @method createImg + * @param {String} src src path or url for image + * @param {String} [alt] alternate text to be used if image does not load + * @param {Function} [successCallback] callback to be called once image data is loaded + * @return {p5.Element} pointer to p5.Element holding created node + * @example + *
+ * createImg('http://p5js.org/img/asterisk-01.png'); + *
+ */ + /** + * @method createImg + * @param {String} src + * @param {Function} successCallback + * @return {Object|p5.Element} + */ + p5.prototype.createImg = function() { + p5._validateParameters('createImg', arguments); + var elt = document.createElement('img'); + elt.crossOrigin = 'Anonymous'; + var args = arguments; + var self; + var setAttrs = function() { + self.width = elt.offsetWidth || elt.width; + self.height = elt.offsetHeight || elt.height; + if (args.length > 1 && typeof args[1] === 'function') { + self.fn = args[1]; + self.fn(); + } else if (args.length > 1 && typeof args[2] === 'function') { + self.fn = args[2]; + self.fn(); + } + }; + elt.src = args[0]; + if (args.length > 1 && typeof args[1] === 'string') { + elt.alt = args[1]; + } + elt.onload = function() { + setAttrs(); + }; + self = addElement(elt, this); + return self; + }; + + /** + * Creates an <a></a> element in the DOM for including a hyperlink. + * Appends to the container node if one is specified, otherwise + * appends to body. + * + * @method createA + * @param {String} href url of page to link to + * @param {String} html inner html of link element to display + * @param {String} [target] target where new link should open, + * could be _blank, _self, _parent, _top. + * @return {p5.Element} pointer to p5.Element holding created node + * @example + *
+ * createA('http://p5js.org/', 'this is a link'); + *
+ */ + p5.prototype.createA = function(href, html, target) { + p5._validateParameters('createA', arguments); + var elt = document.createElement('a'); + elt.href = href; + elt.innerHTML = html; + if (target) elt.target = target; + return addElement(elt, this); + }; + + /** INPUT **/ + + /** + * Creates a slider <input></input> element in the DOM. + * Use .size() to set the display length of the slider. + * Appends to the container node if one is specified, otherwise + * appends to body. + * + * @method createSlider + * @param {Number} min minimum value of the slider + * @param {Number} max maximum value of the slider + * @param {Number} [value] default value of the slider + * @param {Number} [step] step size for each tick of the slider (if step is set to 0, the slider will move continuously from the minimum to the maximum value) + * @return {p5.Element} pointer to p5.Element holding created node + * @example + *
+ * var slider; + * function setup() { + * slider = createSlider(0, 255, 100); + * slider.position(10, 10); + * slider.style('width', '80px'); + * } + * + * function draw() { + * var val = slider.value(); + * background(val); + * } + *
+ * + *
+ * var slider; + * function setup() { + * colorMode(HSB); + * slider = createSlider(0, 360, 60, 40); + * slider.position(10, 10); + * slider.style('width', '80px'); + * } + * + * function draw() { + * var val = slider.value(); + * background(val, 100, 100, 1); + * } + *
+ */ + p5.prototype.createSlider = function(min, max, value, step) { + p5._validateParameters('createSlider', arguments); + var elt = document.createElement('input'); + elt.type = 'range'; + elt.min = min; + elt.max = max; + if (step === 0) { + elt.step = 0.000000000000000001; // smallest valid step + } else if (step) { + elt.step = step; + } + if (typeof value === 'number') elt.value = value; + return addElement(elt, this); + }; + + /** + * Creates a <button></button> element in the DOM. + * Use .size() to set the display size of the button. + * Use .mousePressed() to specify behavior on press. + * Appends to the container node if one is specified, otherwise + * appends to body. + * + * @method createButton + * @param {String} label label displayed on the button + * @param {String} [value] value of the button + * @return {p5.Element} pointer to p5.Element holding created node + * @example + *
+ * var button; + * function setup() { + * createCanvas(100, 100); + * background(0); + * button = createButton('click me'); + * button.position(19, 19); + * button.mousePressed(changeBG); + * } + * + * function changeBG() { + * var val = random(255); + * background(val); + * } + *
+ */ + p5.prototype.createButton = function(label, value) { + p5._validateParameters('createButton', arguments); + var elt = document.createElement('button'); + elt.innerHTML = label; + if (value) elt.value = value; + return addElement(elt, this); + }; + + /** + * Creates a checkbox <input></input> element in the DOM. + * Calling .checked() on a checkbox returns if it is checked or not + * + * @method createCheckbox + * @param {String} [label] label displayed after checkbox + * @param {boolean} [value] value of the checkbox; checked is true, unchecked is false + * @return {p5.Element} pointer to p5.Element holding created node + * @example + *
+ * var checkbox; + * + * function setup() { + * checkbox = createCheckbox('label', false); + * checkbox.changed(myCheckedEvent); + * } + * + * function myCheckedEvent() { + * if (this.checked()) { + * console.log('Checking!'); + * } else { + * console.log('Unchecking!'); + * } + * } + *
+ */ + p5.prototype.createCheckbox = function() { + p5._validateParameters('createCheckbox', arguments); + var elt = document.createElement('div'); + var checkbox = document.createElement('input'); + checkbox.type = 'checkbox'; + elt.appendChild(checkbox); + //checkbox must be wrapped in p5.Element before label so that label appears after + var self = addElement(elt, this); + self.checked = function() { + var cb = self.elt.getElementsByTagName('input')[0]; + if (cb) { + if (arguments.length === 0) { + return cb.checked; + } else if (arguments[0]) { + cb.checked = true; + } else { + cb.checked = false; + } + } + return self; + }; + this.value = function(val) { + self.value = val; + return this; + }; + if (arguments[0]) { + var ran = Math.random() + .toString(36) + .slice(2); + var label = document.createElement('label'); + checkbox.setAttribute('id', ran); + label.htmlFor = ran; + self.value(arguments[0]); + label.appendChild(document.createTextNode(arguments[0])); + elt.appendChild(label); + } + if (arguments[1]) { + checkbox.checked = true; + } + return self; + }; + + /** + * Creates a dropdown menu <select></select> element in the DOM. + * It also helps to assign select-box methods to p5.Element when selecting existing select box + * @method createSelect + * @param {boolean} [multiple] true if dropdown should support multiple selections + * @return {p5.Element} + * @example + *
+ * var sel; + * + * function setup() { + * textAlign(CENTER); + * background(200); + * sel = createSelect(); + * sel.position(10, 10); + * sel.option('pear'); + * sel.option('kiwi'); + * sel.option('grape'); + * sel.changed(mySelectEvent); + * } + * + * function mySelectEvent() { + * var item = sel.value(); + * background(200); + * text('It is a ' + item + '!', 50, 50); + * } + *
+ */ + /** + * @method createSelect + * @param {Object} existing DOM select element + * @return {p5.Element} + */ + + p5.prototype.createSelect = function() { + p5._validateParameters('createSelect', arguments); + var elt, self; + var arg = arguments[0]; + if (typeof arg === 'object' && arg.elt.nodeName === 'SELECT') { + self = arg; + elt = this.elt = arg.elt; + } else { + elt = document.createElement('select'); + if (arg && typeof arg === 'boolean') { + elt.setAttribute('multiple', 'true'); + } + self = addElement(elt, this); + } + self.option = function(name, value) { + var index; + //see if there is already an option with this name + for (var i = 0; i < this.elt.length; i++) { + if (this.elt[i].innerHTML === name) { + index = i; + break; + } + } + //if there is an option with this name we will modify it + if (index !== undefined) { + //if the user passed in false then delete that option + if (value === false) { + this.elt.remove(index); + } else { + //otherwise if the name and value are the same then change both + if (this.elt[index].innerHTML === this.elt[index].value) { + this.elt[index].innerHTML = this.elt[index].value = value; + //otherwise just change the value + } else { + this.elt[index].value = value; + } + } + } else { + //if it doesn't exist make it + var opt = document.createElement('option'); + opt.innerHTML = name; + if (arguments.length > 1) opt.value = value; + else opt.value = name; + elt.appendChild(opt); + } + }; + self.selected = function(value) { + var arr = [], + i; + if (arguments.length > 0) { + for (i = 0; i < this.elt.length; i++) { + if (value.toString() === this.elt[i].value) { + this.elt.selectedIndex = i; + } + } + return this; + } else { + if (this.elt.getAttribute('multiple')) { + for (i = 0; i < this.elt.selectedOptions.length; i++) { + arr.push(this.elt.selectedOptions[i].value); + } + return arr; + } else { + return this.elt.value; + } + } + }; + return self; + }; + + /** + * Creates a radio button <input></input> element in the DOM. + * The .option() method can be used to set options for the radio after it is + * created. The .value() method will return the currently selected option. + * + * @method createRadio + * @param {String} [divId] the id and name of the created div and input field respectively + * @return {p5.Element} pointer to p5.Element holding created node + * @example + *
+ * var radio; + * + * function setup() { + * radio = createRadio(); + * radio.option('black'); + * radio.option('white'); + * radio.option('gray'); + * radio.style('width', '60px'); + * textAlign(CENTER); + * fill(255, 0, 0); + * } + * + * function draw() { + * var val = radio.value(); + * background(val); + * text(val, width / 2, height / 2); + * } + *
+ *
+ * var radio; + * + * function setup() { + * radio = createRadio(); + * radio.option('apple', 1); + * radio.option('bread', 2); + * radio.option('juice', 3); + * radio.style('width', '60px'); + * textAlign(CENTER); + * } + * + * function draw() { + * background(200); + * var val = radio.value(); + * if (val) { + * text('item cost is $' + val, width / 2, height / 2); + * } + * } + *
+ */ + p5.prototype.createRadio = function(existing_radios) { + p5._validateParameters('createRadio', arguments); + // do some prep by counting number of radios on page + var radios = document.querySelectorAll('input[type=radio]'); + var count = 0; + if (radios.length > 1) { + var length = radios.length; + var prev = radios[0].name; + var current = radios[1].name; + count = 1; + for (var i = 1; i < length; i++) { + current = radios[i].name; + if (prev !== current) { + count++; + } + prev = current; + } + } else if (radios.length === 1) { + count = 1; + } + // see if we got an existing set of radios from callee + var elt, self; + if (typeof existing_radios === 'object') { + // use existing elements + self = existing_radios; + elt = this.elt = existing_radios.elt; + } else { + // create a set of radio buttons + elt = document.createElement('div'); + self = addElement(elt, this); + } + // setup member functions + self._getInputChildrenArray = function() { + return Array.prototype.slice.call(this.elt.children).filter(function(c) { + return c.tagName === 'INPUT'; + }); + }; + + var times = -1; + self.option = function(name, value) { + var opt = document.createElement('input'); + opt.type = 'radio'; + opt.innerHTML = name; + if (value) opt.value = value; + else opt.value = name; + opt.setAttribute('name', 'defaultradio' + count); + elt.appendChild(opt); + if (name) { + times++; + var label = document.createElement('label'); + opt.setAttribute('id', 'defaultradio' + count + '-' + times); + label.htmlFor = 'defaultradio' + count + '-' + times; + label.appendChild(document.createTextNode(name)); + elt.appendChild(label); + } + return opt; + }; + self.selected = function(value) { + var i; + var inputChildren = self._getInputChildrenArray(); + if (value) { + for (i = 0; i < inputChildren.length; i++) { + if (inputChildren[i].value === value) inputChildren[i].checked = true; + } + return this; + } else { + for (i = 0; i < inputChildren.length; i++) { + if (inputChildren[i].checked === true) return inputChildren[i].value; + } + } + }; + self.value = function(value) { + var i; + var inputChildren = self._getInputChildrenArray(); + if (value) { + for (i = 0; i < inputChildren.length; i++) { + if (inputChildren[i].value === value) inputChildren[i].checked = true; + } + return this; + } else { + for (i = 0; i < inputChildren.length; i++) { + if (inputChildren[i].checked === true) return inputChildren[i].value; + } + return ''; + } + }; + return self; + }; + + /** + * Creates a colorPicker element in the DOM for color input. + * The .value() method will return a hex string (#rrggbb) of the color. + * The .color() method will return a p5.Color object with the current chosen color. + * + * @method createColorPicker + * @param {String|p5.Color} [value] default color of element + * @return {p5.Element} pointer to p5.Element holding created node + * @example + *
+ * + * var inp1, inp2; + * function setup() { + * createCanvas(100, 100); + * background('grey'); + * inp1 = createColorPicker('#ff0000'); + * inp2 = createColorPicker(color('yellow')); + * inp1.input(setShade1); + * inp2.input(setShade2); + * setMidShade(); + * } + * + * function setMidShade() { + * // Finding a shade between the two + * var commonShade = lerpColor(inp1.color(), inp2.color(), 0.5); + * fill(commonShade); + * rect(20, 20, 60, 60); + * } + * + * function setShade1() { + * setMidShade(); + * console.log('You are choosing shade 1 to be : ', this.value()); + * } + * function setShade2() { + * setMidShade(); + * console.log('You are choosing shade 2 to be : ', this.value()); + * } + * + *
+ */ + p5.prototype.createColorPicker = function(value) { + p5._validateParameters('createColorPicker', arguments); + var elt = document.createElement('input'); + var self; + elt.type = 'color'; + if (value) { + if (value instanceof p5.Color) { + elt.value = value.toString('#rrggbb'); + } else { + p5.prototype._colorMode = 'rgb'; + p5.prototype._colorMaxes = { + rgb: [255, 255, 255, 255], + hsb: [360, 100, 100, 1], + hsl: [360, 100, 100, 1] + }; + elt.value = p5.prototype.color(value).toString('#rrggbb'); + } + } else { + elt.value = '#000000'; + } + self = addElement(elt, this); + // Method to return a p5.Color object for the given color. + self.color = function() { + if (value.mode) { + p5.prototype._colorMode = value.mode; + } + if (value.maxes) { + p5.prototype._colorMaxes = value.maxes; + } + return p5.prototype.color(this.elt.value); + }; + return self; + }; + + /** + * Creates an <input></input> element in the DOM for text input. + * Use .size() to set the display length of the box. + * Appends to the container node if one is specified, otherwise + * appends to body. + * + * @method createInput + * @param {String} [value] default value of the input box + * @param {String} [type] type of text, ie text, password etc. Defaults to text + * @return {p5.Element} pointer to p5.Element holding created node + * @example + *
+ * function setup() { + * var inp = createInput(''); + * inp.input(myInputEvent); + * } + * + * function myInputEvent() { + * console.log('you are typing: ', this.value()); + * } + *
+ */ + p5.prototype.createInput = function(value, type) { + p5._validateParameters('createInput', arguments); + var elt = document.createElement('input'); + elt.type = type ? type : 'text'; + if (value) elt.value = value; + return addElement(elt, this); + }; + + /** + * Creates an <input></input> element in the DOM of type 'file'. + * This allows users to select local files for use in a sketch. + * + * @method createFileInput + * @param {Function} [callback] callback function for when a file loaded + * @param {String} [multiple] optional to allow multiple files selected + * @return {p5.Element} pointer to p5.Element holding created DOM element + * @example + *
+ * let input; + * let img; + * + * function setup() { + * input = createFileInput(handleFile); + * input.position(0, 0); + * } + * + * function draw() { + * background(255); + * if (img) { + * image(img, 0, 0, width, height); + * } + * } + * + * function handleFile(file) { + * print(file); + * if (file.type === 'image') { + * img = createImg(file.data); + * img.hide(); + * } else { + * img = null; + * } + * } + *
+ */ + p5.prototype.createFileInput = function(callback, multiple) { + p5._validateParameters('createFileInput', arguments); + // Function to handle when a file is selected + // We're simplifying life and assuming that we always + // want to load every selected file + function handleFileSelect(evt) { + // These are the files + var files = evt.target.files; + // Load each one and trigger a callback + for (var i = 0; i < files.length; i++) { + var f = files[i]; + p5.File._load(f, callback); + } + } + // Is the file stuff supported? + if (window.File && window.FileReader && window.FileList && window.Blob) { + // Yup, we're ok and make an input file selector + var elt = document.createElement('input'); + elt.type = 'file'; + + // If we get a second argument that evaluates to true + // then we are looking for multiple files + if (multiple) { + // Anything gets the job done + elt.multiple = 'multiple'; + } + + // Now let's handle when a file was selected + elt.addEventListener('change', handleFileSelect, false); + return addElement(elt, this); + } else { + console.log( + 'The File APIs are not fully supported in this browser. Cannot create element.' + ); + } + }; + + /** VIDEO STUFF **/ + + function createMedia(pInst, type, src, callback) { + var elt = document.createElement(type); + + // allow src to be empty + src = src || ''; + if (typeof src === 'string') { + src = [src]; + } + for (var i = 0; i < src.length; i++) { + var source = document.createElement('source'); + source.src = src[i]; + elt.appendChild(source); + } + if (typeof callback !== 'undefined') { + var callbackHandler = function() { + callback(); + elt.removeEventListener('canplaythrough', callbackHandler); + }; + elt.addEventListener('canplaythrough', callbackHandler); + } + + var c = addElement(elt, pInst, true); + c.loadedmetadata = false; + // set width and height onload metadata + elt.addEventListener('loadedmetadata', function() { + c.width = elt.videoWidth; + c.height = elt.videoHeight; + //c.elt.playbackRate = s; + // set elt width and height if not set + if (c.elt.width === 0) c.elt.width = elt.videoWidth; + if (c.elt.height === 0) c.elt.height = elt.videoHeight; + if (c.presetPlaybackRate) { + c.elt.playbackRate = c.presetPlaybackRate; + delete c.presetPlaybackRate; + } + c.loadedmetadata = true; + }); + + return c; + } + /** + * Creates an HTML5 <video> element in the DOM for simple playback + * of audio/video. Shown by default, can be hidden with .hide() + * and drawn into canvas using video(). Appends to the container + * node if one is specified, otherwise appends to body. The first parameter + * can be either a single string path to a video file, or an array of string + * paths to different formats of the same video. This is useful for ensuring + * that your video can play across different browsers, as each supports + * different formats. See this + * page for further information about supported formats. + * + * @method createVideo + * @param {String|String[]} src path to a video file, or array of paths for + * supporting different browsers + * @param {Function} [callback] callback function to be called upon + * 'canplaythrough' event fire, that is, when the + * browser can play the media, and estimates that + * enough data has been loaded to play the media + * up to its end without having to stop for + * further buffering of content + * @return {p5.MediaElement} pointer to video p5.Element + * @example + *
+ * var vid; + * function setup() { + * noCanvas(); + * + * vid = createVideo( + * ['assets/small.mp4', 'assets/small.ogv', 'assets/small.webm'], + * vidLoad + * ); + * + * vid.size(100, 100); + * } + * + * // This function is called when the video loads + * function vidLoad() { + * vid.loop(); + * vid.volume(0); + * } + *
+ */ + p5.prototype.createVideo = function(src, callback) { + p5._validateParameters('createVideo', arguments); + return createMedia(this, 'video', src, callback); + }; + + /** AUDIO STUFF **/ + + /** + * Creates a hidden HTML5 <audio> element in the DOM for simple audio + * playback. Appends to the container node if one is specified, + * otherwise appends to body. The first parameter + * can be either a single string path to a audio file, or an array of string + * paths to different formats of the same audio. This is useful for ensuring + * that your audio can play across different browsers, as each supports + * different formats. See this + * page for further information about supported formats. + * + * @method createAudio + * @param {String|String[]} [src] path to an audio file, or array of paths + * for supporting different browsers + * @param {Function} [callback] callback function to be called upon + * 'canplaythrough' event fire, that is, when the + * browser can play the media, and estimates that + * enough data has been loaded to play the media + * up to its end without having to stop for + * further buffering of content + * @return {p5.MediaElement} pointer to audio p5.Element + * @example + *
+ * var ele; + * function setup() { + * ele = createAudio('assets/beat.mp3'); + * + * // here we set the element to autoplay + * // The element will play as soon + * // as it is able to do so. + * ele.autoplay(true); + * } + *
+ */ + p5.prototype.createAudio = function(src, callback) { + p5._validateParameters('createAudio', arguments); + return createMedia(this, 'audio', src, callback); + }; + + /** CAMERA STUFF **/ + + /** + * @property {String} VIDEO + * @final + * @category Constants + */ + p5.prototype.VIDEO = 'video'; + /** + * @property {String} AUDIO + * @final + * @category Constants + */ + p5.prototype.AUDIO = 'audio'; + + // from: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia + // Older browsers might not implement mediaDevices at all, so we set an empty object first + if (navigator.mediaDevices === undefined) { + navigator.mediaDevices = {}; + } + + // Some browsers partially implement mediaDevices. We can't just assign an object + // with getUserMedia as it would overwrite existing properties. + // Here, we will just add the getUserMedia property if it's missing. + if (navigator.mediaDevices.getUserMedia === undefined) { + navigator.mediaDevices.getUserMedia = function(constraints) { + // First get ahold of the legacy getUserMedia, if present + var getUserMedia = + navigator.webkitGetUserMedia || navigator.mozGetUserMedia; + + // Some browsers just don't implement it - return a rejected promise with an error + // to keep a consistent interface + if (!getUserMedia) { + return Promise.reject( + new Error('getUserMedia is not implemented in this browser') + ); + } + + // Otherwise, wrap the call to the old navigator.getUserMedia with a Promise + return new Promise(function(resolve, reject) { + getUserMedia.call(navigator, constraints, resolve, reject); + }); + }; + } + + /** + *

Creates a new HTML5 <video> element that contains the audio/video + * feed from a webcam. The element is separate from the canvas and is + * displayed by default. The element can be hidden using .hide(). The feed + * can be drawn onto the canvas using image(). The loadedmetadata property can + * be used to detect when the element has fully loaded (see second example).

+ *

More specific properties of the feed can be passing in a Constraints object. + * See the + * W3C + * spec for possible properties. Note that not all of these are supported + * by all browsers.

+ *

Security note: A new browser security specification requires that getUserMedia, + * which is behind createCapture(), only works when you're running the code locally, + * or on HTTPS. Learn more here + * and here.

+ * + * @method createCapture + * @param {String|Constant|Object} type type of capture, either VIDEO or + * AUDIO if none specified, default both, + * or a Constraints object + * @param {Function} [callback] function to be called once + * stream has loaded + * @return {p5.Element} capture video p5.Element + * @example + *
+ * var capture; + * + * function setup() { + * createCanvas(480, 480); + * capture = createCapture(VIDEO); + * capture.hide(); + * } + * + * function draw() { + * image(capture, 0, 0, width, width * capture.height / capture.width); + * filter(INVERT); + * } + *
+ *
+ * function setup() { + * createCanvas(480, 120); + * var constraints = { + * video: { + * mandatory: { + * minWidth: 1280, + * minHeight: 720 + * }, + * optional: [{ maxFrameRate: 10 }] + * }, + * audio: true + * }; + * createCapture(constraints, function(stream) { + * console.log(stream); + * }); + * } + *
+ *
+ * var capture; + * + * function setup() { + * createCanvas(640, 480); + * capture = createCapture(VIDEO); + * } + * function draw() { + * background(0); + * if (capture.loadedmetadata) { + * var c = capture.get(0, 0, 100, 100); + * image(c, 0, 0); + * } + * } + *
+ */ + p5.prototype.createCapture = function() { + p5._validateParameters('createCapture', arguments); + var useVideo = true; + var useAudio = true; + var constraints; + var cb; + for (var i = 0; i < arguments.length; i++) { + if (arguments[i] === p5.prototype.VIDEO) { + useAudio = false; + } else if (arguments[i] === p5.prototype.AUDIO) { + useVideo = false; + } else if (typeof arguments[i] === 'object') { + constraints = arguments[i]; + } else if (typeof arguments[i] === 'function') { + cb = arguments[i]; + } + } + if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) { + var elt = document.createElement('video'); + // required to work in iOS 11 & up: + elt.setAttribute('playsinline', ''); + + if (!constraints) { + constraints = { video: useVideo, audio: useAudio }; + } + + navigator.mediaDevices.getUserMedia(constraints).then( + function(stream) { + try { + if ('srcObject' in elt) { + elt.srcObject = stream; + } else { + elt.src = window.URL.createObjectURL(stream); + } + } catch (err) { + elt.src = stream; + } + }, + function(e) { + console.log(e); + } + ); + } else { + throw 'getUserMedia not supported in this browser'; + } + var c = addElement(elt, this, true); + c.loadedmetadata = false; + // set width and height onload metadata + elt.addEventListener('loadedmetadata', function() { + elt.play(); + if (elt.width) { + c.width = elt.videoWidth = elt.width; + c.height = elt.videoHeight = elt.height; + } else { + c.width = c.elt.width = elt.videoWidth; + c.height = c.elt.height = elt.videoHeight; + } + c.loadedmetadata = true; + if (cb) { + cb(elt.srcObject); + } + }); + return c; + }; + + /** + * Creates element with given tag in the DOM with given content. + * Appends to the container node if one is specified, otherwise + * appends to body. + * + * @method createElement + * @param {String} tag tag for the new element + * @param {String} [content] html content to be inserted into the element + * @return {p5.Element} pointer to p5.Element holding created node + * @example + *
+ * createElement('h2', 'im an h2 p5.element!'); + *
+ */ + p5.prototype.createElement = function(tag, content) { + p5._validateParameters('createElement', arguments); + var elt = document.createElement(tag); + if (typeof content !== 'undefined') { + elt.innerHTML = content; + } + return addElement(elt, this); + }; + + // ============================================================================= + // p5.Element additions + // ============================================================================= + /** + * + * Adds specified class to the element. + * + * @for p5.Element + * @method addClass + * @param {String} class name of class to add + * @chainable + * @example + *
+ * var div = createDiv('div'); + * div.addClass('myClass'); + *
+ */ + p5.Element.prototype.addClass = function(c) { + if (this.elt.className) { + if (!this.hasClass(c)) { + this.elt.className = this.elt.className + ' ' + c; + } + } else { + this.elt.className = c; + } + return this; + }; + + /** + * + * Removes specified class from the element. + * + * @method removeClass + * @param {String} class name of class to remove + * @chainable + * @example + *
+ * // In this example, a class is set when the div is created + * // and removed when mouse is pressed. This could link up + * // with a CSS style rule to toggle style properties. + * + * var div; + * + * function setup() { + * div = createDiv('div'); + * div.addClass('myClass'); + * } + * + * function mousePressed() { + * div.removeClass('myClass'); + * } + *
+ */ + p5.Element.prototype.removeClass = function(c) { + // Note: Removing a class that does not exist does NOT throw an error in classList.remove method + this.elt.classList.remove(c); + return this; + }; + + /** + * + * Checks if specified class already set to element + * + * @method hasClass + * @returns {boolean} a boolean value if element has specified class + * @param c {String} class name of class to check + * @example + *
+ * var div; + * + * function setup() { + * div = createDiv('div'); + * div.addClass('show'); + * } + * + * function mousePressed() { + * if (div.hasClass('show')) { + * div.addClass('show'); + * } else { + * div.removeClass('show'); + * } + * } + *
+ */ + p5.Element.prototype.hasClass = function(c) { + return this.elt.classList.contains(c); + }; + + /** + * + * Toggles element class + * + * @method toggleClass + * @param c {String} class name to toggle + * @chainable + * @example + *
+ * var div; + * + * function setup() { + * div = createDiv('div'); + * div.addClass('show'); + * } + * + * function mousePressed() { + * div.toggleClass('show'); + * } + *
+ */ + p5.Element.prototype.toggleClass = function(c) { + // classList also has a toggle() method, but we cannot use that yet as support is unclear. + // See https://github.com/processing/p5.js/issues/3631 + // this.elt.classList.toggle(c); + if (this.elt.classList.contains(c)) { + this.elt.classList.remove(c); + } else { + this.elt.classList.add(c); + } + return this; + }; + + /** + * + * Attaches the element as a child to the parent specified. + * Accepts either a string ID, DOM node, or p5.Element. + * If no argument is specified, an array of children DOM nodes is returned. + * + * @method child + * @returns {Node[]} an array of child nodes + * @example + *
+ * var div0 = createDiv('this is the parent'); + * var div1 = createDiv('this is the child'); + * div0.child(div1); // use p5.Element + *
+ *
+ * var div0 = createDiv('this is the parent'); + * var div1 = createDiv('this is the child'); + * div1.id('apples'); + * div0.child('apples'); // use id + *
+ *
+ * // this example assumes there is a div already on the page + * // with id "myChildDiv" + * var div0 = createDiv('this is the parent'); + * var elt = document.getElementById('myChildDiv'); + * div0.child(elt); // use element from page + *
+ */ + /** + * @method child + * @param {String|p5.Element} [child] the ID, DOM node, or p5.Element + * to add to the current element + * @chainable + */ + p5.Element.prototype.child = function(c) { + if (typeof c === 'undefined') { + return this.elt.childNodes; + } + if (typeof c === 'string') { + if (c[0] === '#') { + c = c.substring(1); + } + c = document.getElementById(c); + } else if (c instanceof p5.Element) { + c = c.elt; + } + this.elt.appendChild(c); + return this; + }; + + /** + * Centers a p5 Element either vertically, horizontally, + * or both, relative to its parent or according to + * the body if the Element has no parent. If no argument is passed + * the Element is aligned both vertically and horizontally. + * + * @method center + * @param {String} [align] passing 'vertical', 'horizontal' aligns element accordingly + * @chainable + * + * @example + *
+ * function setup() { + * var div = createDiv('').size(10, 10); + * div.style('background-color', 'orange'); + * div.center(); + * } + *
+ */ + p5.Element.prototype.center = function(align) { + var style = this.elt.style.display; + var hidden = this.elt.style.display === 'none'; + var parentHidden = this.parent().style.display === 'none'; + var pos = { x: this.elt.offsetLeft, y: this.elt.offsetTop }; + + if (hidden) this.show(); + + this.elt.style.display = 'block'; + this.position(0, 0); + + if (parentHidden) this.parent().style.display = 'block'; + + var wOffset = Math.abs(this.parent().offsetWidth - this.elt.offsetWidth); + var hOffset = Math.abs(this.parent().offsetHeight - this.elt.offsetHeight); + var y = pos.y; + var x = pos.x; + + if (align === 'both' || align === undefined) { + this.position(wOffset / 2, hOffset / 2); + } else if (align === 'horizontal') { + this.position(wOffset / 2, y); + } else if (align === 'vertical') { + this.position(x, hOffset / 2); + } + + this.style('display', style); + + if (hidden) this.hide(); + + if (parentHidden) this.parent().style.display = 'none'; + + return this; + }; + + /** + * + * If an argument is given, sets the inner HTML of the element, + * replacing any existing html. If true is included as a second + * argument, html is appended instead of replacing existing html. + * If no arguments are given, returns + * the inner HTML of the element. + * + * @for p5.Element + * @method html + * @returns {String} the inner HTML of the element + * @example + *
+ * var div = createDiv('').size(100, 100); + * div.html('hi'); + *
+ *
+ * var div = createDiv('Hello ').size(100, 100); + * div.html('World', true); + *
+ */ + /** + * @method html + * @param {String} [html] the HTML to be placed inside the element + * @param {boolean} [append] whether to append HTML to existing + * @chainable + */ + p5.Element.prototype.html = function() { + if (arguments.length === 0) { + return this.elt.innerHTML; + } else if (arguments[1]) { + this.elt.innerHTML += arguments[0]; + return this; + } else { + this.elt.innerHTML = arguments[0]; + return this; + } + }; + + /** + * + * Sets the position of the element relative to (0, 0) of the + * window. Essentially, sets position:absolute and left and top + * properties of style. If no arguments given returns the x and y position + * of the element in an object. + * + * @method position + * @returns {Object} the x and y position of the element in an object + * @example + *
+ * function setup() { + * var cnv = createCanvas(100, 100); + * // positions canvas 50px to the right and 100px + * // below upper left corner of the window + * cnv.position(50, 100); + * } + *
+ */ + /** + * @method position + * @param {Number} [x] x-position relative to upper left of window + * @param {Number} [y] y-position relative to upper left of window + * @chainable + */ + p5.Element.prototype.position = function() { + if (arguments.length === 0) { + return { x: this.elt.offsetLeft, y: this.elt.offsetTop }; + } else { + this.elt.style.position = 'absolute'; + this.elt.style.left = arguments[0] + 'px'; + this.elt.style.top = arguments[1] + 'px'; + this.x = arguments[0]; + this.y = arguments[1]; + return this; + } + }; + + /* Helper method called by p5.Element.style() */ + p5.Element.prototype._translate = function() { + this.elt.style.position = 'absolute'; + // save out initial non-translate transform styling + var transform = ''; + if (this.elt.style.transform) { + transform = this.elt.style.transform.replace(/translate3d\(.*\)/g, ''); + transform = transform.replace(/translate[X-Z]?\(.*\)/g, ''); + } + if (arguments.length === 2) { + this.elt.style.transform = + 'translate(' + arguments[0] + 'px, ' + arguments[1] + 'px)'; + } else if (arguments.length > 2) { + this.elt.style.transform = + 'translate3d(' + + arguments[0] + + 'px,' + + arguments[1] + + 'px,' + + arguments[2] + + 'px)'; + if (arguments.length === 3) { + this.elt.parentElement.style.perspective = '1000px'; + } else { + this.elt.parentElement.style.perspective = arguments[3] + 'px'; + } + } + // add any extra transform styling back on end + this.elt.style.transform += transform; + return this; + }; + + /* Helper method called by p5.Element.style() */ + p5.Element.prototype._rotate = function() { + // save out initial non-rotate transform styling + var transform = ''; + if (this.elt.style.transform) { + transform = this.elt.style.transform.replace(/rotate3d\(.*\)/g, ''); + transform = transform.replace(/rotate[X-Z]?\(.*\)/g, ''); + } + + if (arguments.length === 1) { + this.elt.style.transform = 'rotate(' + arguments[0] + 'deg)'; + } else if (arguments.length === 2) { + this.elt.style.transform = + 'rotate(' + arguments[0] + 'deg, ' + arguments[1] + 'deg)'; + } else if (arguments.length === 3) { + this.elt.style.transform = 'rotateX(' + arguments[0] + 'deg)'; + this.elt.style.transform += 'rotateY(' + arguments[1] + 'deg)'; + this.elt.style.transform += 'rotateZ(' + arguments[2] + 'deg)'; + } + // add remaining transform back on + this.elt.style.transform += transform; + return this; + }; + + /** + * Sets the given style (css) property (1st arg) of the element with the + * given value (2nd arg). If a single argument is given, .style() + * returns the value of the given property; however, if the single argument + * is given in css syntax ('text-align:center'), .style() sets the css + * appropriately. + * + * @method style + * @param {String} property property to be set + * @returns {String} value of property + * @example + *
+ * var myDiv = createDiv('I like pandas.'); + * myDiv.style('font-size', '18px'); + * myDiv.style('color', '#ff0000'); + *
+ *
+ * var col = color(25, 23, 200, 50); + * var button = createButton('button'); + * button.style('background-color', col); + * button.position(10, 10); + *
+ *
+ * var myDiv; + * function setup() { + * background(200); + * myDiv = createDiv('I like gray.'); + * myDiv.position(20, 20); + * } + * + * function draw() { + * myDiv.style('font-size', mouseX + 'px'); + * } + *
+ */ + /** + * @method style + * @param {String} property + * @param {String|Number|p5.Color} value value to assign to property + * @return {String} current value of property, if no value is given as second argument + * @chainable + */ + p5.Element.prototype.style = function(prop, val) { + var self = this; + + if (val instanceof p5.Color) { + val = + 'rgba(' + + val.levels[0] + + ',' + + val.levels[1] + + ',' + + val.levels[2] + + ',' + + val.levels[3] / 255 + + ')'; + } + + if (typeof val === 'undefined') { + // input provided as single line string + if (prop.indexOf(':') === -1) { + var styles = window.getComputedStyle(self.elt); + var style = styles.getPropertyValue(prop); + return style; + } else { + var attrs = prop.split(';'); + for (var i = 0; i < attrs.length; i++) { + var parts = attrs[i].split(':'); + if (parts[0] && parts[1]) { + this.elt.style[parts[0].trim()] = parts[1].trim(); + } + } + } + } else { + // input provided as key,val pair + this.elt.style[prop] = val; + if ( + prop === 'width' || + prop === 'height' || + prop === 'left' || + prop === 'top' + ) { + var numVal = val.replace(/\D+/g, ''); + this[prop] = parseInt(numVal, 10); + } + } + return this; + }; + + /** + * + * Adds a new attribute or changes the value of an existing attribute + * on the specified element. If no value is specified, returns the + * value of the given attribute, or null if attribute is not set. + * + * @method attribute + * @return {String} value of attribute + * + * @example + *
+ * var myDiv = createDiv('I like pandas.'); + * myDiv.attribute('align', 'center'); + *
+ */ + /** + * @method attribute + * @param {String} attr attribute to set + * @param {String} value value to assign to attribute + * @chainable + */ + p5.Element.prototype.attribute = function(attr, value) { + //handling for checkboxes and radios to ensure options get + //attributes not divs + if ( + this.elt.firstChild != null && + (this.elt.firstChild.type === 'checkbox' || + this.elt.firstChild.type === 'radio') + ) { + if (typeof value === 'undefined') { + return this.elt.firstChild.getAttribute(attr); + } else { + for (var i = 0; i < this.elt.childNodes.length; i++) { + this.elt.childNodes[i].setAttribute(attr, value); + } + } + } else if (typeof value === 'undefined') { + return this.elt.getAttribute(attr); + } else { + this.elt.setAttribute(attr, value); + return this; + } + }; + + /** + * + * Removes an attribute on the specified element. + * + * @method removeAttribute + * @param {String} attr attribute to remove + * @chainable + * + * @example + *
+ * var button; + * var checkbox; + * + * function setup() { + * checkbox = createCheckbox('enable', true); + * checkbox.changed(enableButton); + * button = createButton('button'); + * button.position(10, 10); + * } + * + * function enableButton() { + * if (this.checked()) { + * // Re-enable the button + * button.removeAttribute('disabled'); + * } else { + * // Disable the button + * button.attribute('disabled', ''); + * } + * } + *
+ */ + p5.Element.prototype.removeAttribute = function(attr) { + if ( + this.elt.firstChild != null && + (this.elt.firstChild.type === 'checkbox' || + this.elt.firstChild.type === 'radio') + ) { + for (var i = 0; i < this.elt.childNodes.length; i++) { + this.elt.childNodes[i].removeAttribute(attr); + } + } + this.elt.removeAttribute(attr); + return this; + }; + + /** + * Either returns the value of the element if no arguments + * given, or sets the value of the element. + * + * @method value + * @return {String|Number} value of the element + * @example + *
+ * // gets the value + * var inp; + * function setup() { + * inp = createInput(''); + * } + * + * function mousePressed() { + * print(inp.value()); + * } + *
+ *
+ * // sets the value + * var inp; + * function setup() { + * inp = createInput('myValue'); + * } + * + * function mousePressed() { + * inp.value('myValue'); + * } + *
+ */ + /** + * @method value + * @param {String|Number} value + * @chainable + */ + p5.Element.prototype.value = function() { + if (arguments.length > 0) { + this.elt.value = arguments[0]; + return this; + } else { + if (this.elt.type === 'range') { + return parseFloat(this.elt.value); + } else return this.elt.value; + } + }; + + /** + * + * Shows the current element. Essentially, setting display:block for the style. + * + * @method show + * @chainable + * @example + *
+ * var div = createDiv('div'); + * div.style('display', 'none'); + * div.show(); // turns display to block + *
+ */ + p5.Element.prototype.show = function() { + this.elt.style.display = 'block'; + return this; + }; + + /** + * Hides the current element. Essentially, setting display:none for the style. + * + * @method hide + * @chainable + * @example + *
+ * var div = createDiv('this is a div'); + * div.hide(); + *
+ */ + p5.Element.prototype.hide = function() { + this.elt.style.display = 'none'; + return this; + }; + + /** + * + * Sets the width and height of the element. AUTO can be used to + * only adjust one dimension at a time. If no arguments are given, it + * returns the width and height of the element in an object. In case of + * elements which need to be loaded, such as images, it is recommended + * to call the function after the element has finished loading. + * + * @method size + * @return {Object} the width and height of the element in an object + * @example + *
+ * let div = createDiv('this is a div'); + * div.size(100, 100); + * let img = createImg('assets/laDefense.jpg', () => { + * img.size(10, AUTO); + * }); + *
+ */ + /** + * @method size + * @param {Number|Constant} w width of the element, either AUTO, or a number + * @param {Number|Constant} [h] height of the element, either AUTO, or a number + * @chainable + */ + p5.Element.prototype.size = function(w, h) { + if (arguments.length === 0) { + return { width: this.elt.offsetWidth, height: this.elt.offsetHeight }; + } else { + var aW = w; + var aH = h; + var AUTO = p5.prototype.AUTO; + if (aW !== AUTO || aH !== AUTO) { + if (aW === AUTO) { + aW = h * this.width / this.height; + } else if (aH === AUTO) { + aH = w * this.height / this.width; + } + // set diff for cnv vs normal div + if (this.elt instanceof HTMLCanvasElement) { + var j = {}; + var k = this.elt.getContext('2d'); + var prop; + for (prop in k) { + j[prop] = k[prop]; + } + this.elt.setAttribute('width', aW * this._pInst._pixelDensity); + this.elt.setAttribute('height', aH * this._pInst._pixelDensity); + this.elt.style.width = aW + 'px'; + this.elt.style.height = aH + 'px'; + this._pInst.scale( + this._pInst._pixelDensity, + this._pInst._pixelDensity + ); + for (prop in j) { + this.elt.getContext('2d')[prop] = j[prop]; + } + } else { + this.elt.style.width = aW + 'px'; + this.elt.style.height = aH + 'px'; + this.elt.width = aW; + this.elt.height = aH; + } + + this.width = this.elt.offsetWidth; + this.height = this.elt.offsetHeight; + + if (this._pInst && this._pInst._curElement) { + // main canvas associated with p5 instance + if (this._pInst._curElement.elt === this.elt) { + this._pInst._setProperty('width', this.elt.offsetWidth); + this._pInst._setProperty('height', this.elt.offsetHeight); + } + } + } + return this; + } + }; + + /** + * Removes the element and deregisters all listeners. + * @method remove + * @example + *
+ * var myDiv = createDiv('this is some text'); + * myDiv.remove(); + *
+ */ + p5.Element.prototype.remove = function() { + // deregister events + for (var ev in this._events) { + this.elt.removeEventListener(ev, this._events[ev]); + } + if (this.elt.parentNode) { + this.elt.parentNode.removeChild(this.elt); + } + delete this; + }; + + /** + * Registers a callback that gets called every time a file that is + * dropped on the element has been loaded. + * p5 will load every dropped file into memory and pass it as a p5.File object to the callback. + * Multiple files dropped at the same time will result in multiple calls to the callback. + * + * You can optionally pass a second callback which will be registered to the raw + * drop event. + * The callback will thus be provided the original + * DragEvent. + * Dropping multiple files at the same time will trigger the second callback once per drop, + * whereas the first callback will trigger for each loaded file. + * + * @method drop + * @param {Function} callback callback to receive loaded file, called for each file dropped. + * @param {Function} [fxn] callback triggered once when files are dropped with the drop event. + * @chainable + * @example + *
+ * function setup() { + * var c = createCanvas(100, 100); + * background(200); + * textAlign(CENTER); + * text('drop file', width / 2, height / 2); + * c.drop(gotFile); + * } + * + * function gotFile(file) { + * background(200); + * text('received file:', width / 2, height / 2); + * text(file.name, width / 2, height / 2 + 50); + * } + *
+ * + *
+ * var img; + * + * function setup() { + * var c = createCanvas(100, 100); + * background(200); + * textAlign(CENTER); + * text('drop image', width / 2, height / 2); + * c.drop(gotFile); + * } + * + * function draw() { + * if (img) { + * image(img, 0, 0, width, height); + * } + * } + * + * function gotFile(file) { + * img = createImg(file.data).hide(); + * } + *
+ * + * @alt + * Canvas turns into whatever image is dragged/dropped onto it. + */ + p5.Element.prototype.drop = function(callback, fxn) { + // Is the file stuff supported? + if (window.File && window.FileReader && window.FileList && window.Blob) { + if (!this._dragDisabled) { + this._dragDisabled = true; + + var preventDefault = function(evt) { + evt.preventDefault(); + }; + + // If you want to be able to drop you've got to turn off + // a lot of default behavior. + // avoid `attachListener` here, since it overrides other handlers. + this.elt.addEventListener('dragover', preventDefault); + + // If this is a drag area we need to turn off the default behavior + this.elt.addEventListener('dragleave', preventDefault); + } + + // Deal with the files + p5.Element._attachListener( + 'drop', + function(evt) { + evt.preventDefault(); + // Call the second argument as a callback that receives the raw drop event + if (typeof fxn === 'function') { + fxn.call(this, evt); + } + // A FileList + var files = evt.dataTransfer.files; + + // Load each one and trigger the callback + for (var i = 0; i < files.length; i++) { + var f = files[i]; + p5.File._load(f, callback); + } + }, + this + ); + } else { + console.log('The File APIs are not fully supported in this browser.'); + } + + return this; + }; + + // ============================================================================= + // p5.MediaElement additions + // ============================================================================= + + /** + * Extends p5.Element to handle audio and video. In addition to the methods + * of p5.Element, it also contains methods for controlling media. It is not + * called directly, but p5.MediaElements are created by calling createVideo, + * createAudio, and createCapture. + * + * @class p5.MediaElement + * @constructor + * @param {String} elt DOM node that is wrapped + */ + p5.MediaElement = function(elt, pInst) { + p5.Element.call(this, elt, pInst); + + var self = this; + this.elt.crossOrigin = 'anonymous'; + + this._prevTime = 0; + this._cueIDCounter = 0; + this._cues = []; + this._pixelsState = this; + this._pixelDensity = 1; + this._modified = false; + this._pixelsDirty = true; + this._pixelsTime = -1; // the time at which we last updated 'pixels' + + /** + * Path to the media element source. + * + * @property src + * @return {String} src + * @example + *
+ * var ele; + * + * function setup() { + * background(250); + * + * //p5.MediaElement objects are usually created + * //by calling the createAudio(), createVideo(), + * //and createCapture() functions. + * + * //In this example we create + * //a new p5.MediaElement via createAudio(). + * ele = createAudio('assets/beat.mp3'); + * + * //We'll set up our example so that + * //when you click on the text, + * //an alert box displays the MediaElement's + * //src field. + * textAlign(CENTER); + * text('Click Me!', width / 2, height / 2); + * } + * + * function mouseClicked() { + * //here we test if the mouse is over the + * //canvas element when it's clicked + * if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) { + * //Show our p5.MediaElement's src field + * alert(ele.src); + * } + * } + *
+ */ + Object.defineProperty(self, 'src', { + get: function() { + var firstChildSrc = self.elt.children[0].src; + var srcVal = self.elt.src === window.location.href ? '' : self.elt.src; + var ret = + firstChildSrc === window.location.href ? srcVal : firstChildSrc; + return ret; + }, + set: function(newValue) { + for (var i = 0; i < self.elt.children.length; i++) { + self.elt.removeChild(self.elt.children[i]); + } + var source = document.createElement('source'); + source.src = newValue; + elt.appendChild(source); + self.elt.src = newValue; + self.modified = true; + } + }); + + // private _onended callback, set by the method: onended(callback) + self._onended = function() {}; + self.elt.onended = function() { + self._onended(self); + }; + }; + p5.MediaElement.prototype = Object.create(p5.Element.prototype); + + /** + * Play an HTML5 media element. + * + * @method play + * @chainable + * @example + *
+ * var ele; + * + * function setup() { + * //p5.MediaElement objects are usually created + * //by calling the createAudio(), createVideo(), + * //and createCapture() functions. + * + * //In this example we create + * //a new p5.MediaElement via createAudio(). + * ele = createAudio('assets/beat.mp3'); + * + * background(250); + * textAlign(CENTER); + * text('Click to Play!', width / 2, height / 2); + * } + * + * function mouseClicked() { + * //here we test if the mouse is over the + * //canvas element when it's clicked + * if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) { + * //Here we call the play() function on + * //the p5.MediaElement we created above. + * //This will start the audio sample. + * ele.play(); + * + * background(200); + * text('You clicked Play!', width / 2, height / 2); + * } + * } + *
+ */ + p5.MediaElement.prototype.play = function() { + if (this.elt.currentTime === this.elt.duration) { + this.elt.currentTime = 0; + } + var promise; + if (this.elt.readyState > 1) { + promise = this.elt.play(); + } else { + // in Chrome, playback cannot resume after being stopped and must reload + this.elt.load(); + promise = this.elt.play(); + } + if (promise && promise.catch) { + promise.catch(function(e) { + console.log( + 'WARN: Element play method raised an error asynchronously', + e + ); + }); + } + return this; + }; + + /** + * Stops an HTML5 media element (sets current time to zero). + * + * @method stop + * @chainable + * @example + *
+ * //This example both starts + * //and stops a sound sample + * //when the user clicks the canvas + * + * //We will store the p5.MediaElement + * //object in here + * var ele; + * + * //while our audio is playing, + * //this will be set to true + * var sampleIsPlaying = false; + * + * function setup() { + * //Here we create a p5.MediaElement object + * //using the createAudio() function. + * ele = createAudio('assets/beat.mp3'); + * background(200); + * textAlign(CENTER); + * text('Click to play!', width / 2, height / 2); + * } + * + * function mouseClicked() { + * //here we test if the mouse is over the + * //canvas element when it's clicked + * if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) { + * background(200); + * + * if (sampleIsPlaying) { + * //if the sample is currently playing + * //calling the stop() function on + * //our p5.MediaElement will stop + * //it and reset its current + * //time to 0 (i.e. it will start + * //at the beginning the next time + * //you play it) + * ele.stop(); + * + * sampleIsPlaying = false; + * text('Click to play!', width / 2, height / 2); + * } else { + * //loop our sound element until we + * //call ele.stop() on it. + * ele.loop(); + * + * sampleIsPlaying = true; + * text('Click to stop!', width / 2, height / 2); + * } + * } + * } + *
+ */ + p5.MediaElement.prototype.stop = function() { + this.elt.pause(); + this.elt.currentTime = 0; + return this; + }; + + /** + * Pauses an HTML5 media element. + * + * @method pause + * @chainable + * @example + *
+ * //This example both starts + * //and pauses a sound sample + * //when the user clicks the canvas + * + * //We will store the p5.MediaElement + * //object in here + * var ele; + * + * //while our audio is playing, + * //this will be set to true + * var sampleIsPlaying = false; + * + * function setup() { + * //Here we create a p5.MediaElement object + * //using the createAudio() function. + * ele = createAudio('assets/lucky_dragons.mp3'); + * background(200); + * textAlign(CENTER); + * text('Click to play!', width / 2, height / 2); + * } + * + * function mouseClicked() { + * //here we test if the mouse is over the + * //canvas element when it's clicked + * if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) { + * background(200); + * + * if (sampleIsPlaying) { + * //Calling pause() on our + * //p5.MediaElement will stop it + * //playing, but when we call the + * //loop() or play() functions + * //the sample will start from + * //where we paused it. + * ele.pause(); + * + * sampleIsPlaying = false; + * text('Click to resume!', width / 2, height / 2); + * } else { + * //loop our sound element until we + * //call ele.pause() on it. + * ele.loop(); + * + * sampleIsPlaying = true; + * text('Click to pause!', width / 2, height / 2); + * } + * } + * } + *
+ */ + p5.MediaElement.prototype.pause = function() { + this.elt.pause(); + return this; + }; + + /** + * Set 'loop' to true for an HTML5 media element, and starts playing. + * + * @method loop + * @chainable + * @example + *
+ * //Clicking the canvas will loop + * //the audio sample until the user + * //clicks again to stop it + * + * //We will store the p5.MediaElement + * //object in here + * var ele; + * + * //while our audio is playing, + * //this will be set to true + * var sampleIsLooping = false; + * + * function setup() { + * //Here we create a p5.MediaElement object + * //using the createAudio() function. + * ele = createAudio('assets/lucky_dragons.mp3'); + * background(200); + * textAlign(CENTER); + * text('Click to loop!', width / 2, height / 2); + * } + * + * function mouseClicked() { + * //here we test if the mouse is over the + * //canvas element when it's clicked + * if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) { + * background(200); + * + * if (!sampleIsLooping) { + * //loop our sound element until we + * //call ele.stop() on it. + * ele.loop(); + * + * sampleIsLooping = true; + * text('Click to stop!', width / 2, height / 2); + * } else { + * ele.stop(); + * + * sampleIsLooping = false; + * text('Click to loop!', width / 2, height / 2); + * } + * } + * } + *
+ */ + p5.MediaElement.prototype.loop = function() { + this.elt.setAttribute('loop', true); + this.play(); + return this; + }; + /** + * Set 'loop' to false for an HTML5 media element. Element will stop + * when it reaches the end. + * + * @method noLoop + * @chainable + * @example + *
+ * //This example both starts + * //and stops loop of sound sample + * //when the user clicks the canvas + * + * //We will store the p5.MediaElement + * //object in here + * var ele; + * //while our audio is playing, + * //this will be set to true + * var sampleIsPlaying = false; + * + * function setup() { + * //Here we create a p5.MediaElement object + * //using the createAudio() function. + * ele = createAudio('assets/beat.mp3'); + * background(200); + * textAlign(CENTER); + * text('Click to play!', width / 2, height / 2); + * } + * + * function mouseClicked() { + * //here we test if the mouse is over the + * //canvas element when it's clicked + * if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) { + * background(200); + * + * if (sampleIsPlaying) { + * ele.noLoop(); + * text('No more Loops!', width / 2, height / 2); + * } else { + * ele.loop(); + * sampleIsPlaying = true; + * text('Click to stop looping!', width / 2, height / 2); + * } + * } + * } + *
+ * + */ + p5.MediaElement.prototype.noLoop = function() { + this.elt.setAttribute('loop', false); + return this; + }; + + /** + * Set HTML5 media element to autoplay or not. + * + * @method autoplay + * @param {Boolean} autoplay whether the element should autoplay + * @chainable + */ + p5.MediaElement.prototype.autoplay = function(val) { + this.elt.setAttribute('autoplay', val); + return this; + }; + + /** + * Sets volume for this HTML5 media element. If no argument is given, + * returns the current volume. + * + * @method volume + * @return {Number} current volume + * + * @example + *
+ * var ele; + * function setup() { + * // p5.MediaElement objects are usually created + * // by calling the createAudio(), createVideo(), + * // and createCapture() functions. + * // In this example we create + * // a new p5.MediaElement via createAudio(). + * ele = createAudio('assets/lucky_dragons.mp3'); + * background(250); + * textAlign(CENTER); + * text('Click to Play!', width / 2, height / 2); + * } + * function mouseClicked() { + * // Here we call the volume() function + * // on the sound element to set its volume + * // Volume must be between 0.0 and 1.0 + * ele.volume(0.2); + * ele.play(); + * background(200); + * text('You clicked Play!', width / 2, height / 2); + * } + *
+ *
+ * var audio; + * var counter = 0; + * + * function loaded() { + * audio.play(); + * } + * + * function setup() { + * audio = createAudio('assets/lucky_dragons.mp3', loaded); + * textAlign(CENTER); + * } + * + * function draw() { + * if (counter === 0) { + * background(0, 255, 0); + * text('volume(0.9)', width / 2, height / 2); + * } else if (counter === 1) { + * background(255, 255, 0); + * text('volume(0.5)', width / 2, height / 2); + * } else if (counter === 2) { + * background(255, 0, 0); + * text('volume(0.1)', width / 2, height / 2); + * } + * } + * + * function mousePressed() { + * counter++; + * if (counter === 0) { + * audio.volume(0.9); + * } else if (counter === 1) { + * audio.volume(0.5); + * } else if (counter === 2) { + * audio.volume(0.1); + * } else { + * counter = 0; + * audio.volume(0.9); + * } + * } + * + *
+ */ + /** + * @method volume + * @param {Number} val volume between 0.0 and 1.0 + * @chainable + */ + p5.MediaElement.prototype.volume = function(val) { + if (typeof val === 'undefined') { + return this.elt.volume; + } else { + this.elt.volume = val; + } + }; + + /** + * If no arguments are given, returns the current playback speed of the + * element. The speed parameter sets the speed where 2.0 will play the + * element twice as fast, 0.5 will play at half the speed, and -1 will play + * the element in normal speed in reverse.(Note that not all browsers support + * backward playback and even if they do, playback might not be smooth.) + * + * @method speed + * @return {Number} current playback speed of the element + * + * @example + *
+ * //Clicking the canvas will loop + * //the audio sample until the user + * //clicks again to stop it + * + * //We will store the p5.MediaElement + * //object in here + * var ele; + * var button; + * + * function setup() { + * createCanvas(710, 400); + * //Here we create a p5.MediaElement object + * //using the createAudio() function. + * ele = createAudio('assets/beat.mp3'); + * ele.loop(); + * background(200); + * + * button = createButton('2x speed'); + * button.position(100, 68); + * button.mousePressed(twice_speed); + * + * button = createButton('half speed'); + * button.position(200, 68); + * button.mousePressed(half_speed); + * + * button = createButton('reverse play'); + * button.position(300, 68); + * button.mousePressed(reverse_speed); + * + * button = createButton('STOP'); + * button.position(400, 68); + * button.mousePressed(stop_song); + * + * button = createButton('PLAY!'); + * button.position(500, 68); + * button.mousePressed(play_speed); + * } + * + * function twice_speed() { + * ele.speed(2); + * } + * + * function half_speed() { + * ele.speed(0.5); + * } + * + * function reverse_speed() { + * ele.speed(-1); + * } + * + * function stop_song() { + * ele.stop(); + * } + * + * function play_speed() { + * ele.play(); + * } + *
+ */ + /** + * @method speed + * @param {Number} speed speed multiplier for element playback + * @chainable + */ + p5.MediaElement.prototype.speed = function(val) { + if (typeof val === 'undefined') { + return this.presetPlaybackRate || this.elt.playbackRate; + } else { + if (this.loadedmetadata) { + this.elt.playbackRate = val; + } else { + this.presetPlaybackRate = val; + } + } + }; + + /** + * If no arguments are given, returns the current time of the element. + * If an argument is given the current time of the element is set to it. + * + * @method time + * @return {Number} current time (in seconds) + * + * @example + *
+ * var ele; + * var beginning = true; + * function setup() { + * //p5.MediaElement objects are usually created + * //by calling the createAudio(), createVideo(), + * //and createCapture() functions. + * + * //In this example we create + * //a new p5.MediaElement via createAudio(). + * ele = createAudio('assets/lucky_dragons.mp3'); + * background(250); + * textAlign(CENTER); + * text('start at beginning', width / 2, height / 2); + * } + * + * // this function fires with click anywhere + * function mousePressed() { + * if (beginning === true) { + * // here we start the sound at the beginning + * // time(0) is not necessary here + * // as this produces the same result as + * // play() + * ele.play().time(0); + * background(200); + * text('jump 2 sec in', width / 2, height / 2); + * beginning = false; + * } else { + * // here we jump 2 seconds into the sound + * ele.play().time(2); + * background(250); + * text('start at beginning', width / 2, height / 2); + * beginning = true; + * } + * } + *
+ */ + /** + * @method time + * @param {Number} time time to jump to (in seconds) + * @chainable + */ + p5.MediaElement.prototype.time = function(val) { + if (typeof val === 'undefined') { + return this.elt.currentTime; + } else { + this.elt.currentTime = val; + return this; + } + }; + + /** + * Returns the duration of the HTML5 media element. + * + * @method duration + * @return {Number} duration + * + * @example + *
+ * var ele; + * function setup() { + * //p5.MediaElement objects are usually created + * //by calling the createAudio(), createVideo(), + * //and createCapture() functions. + * //In this example we create + * //a new p5.MediaElement via createAudio(). + * ele = createAudio('assets/doorbell.mp3'); + * background(250); + * textAlign(CENTER); + * text('Click to know the duration!', 10, 25, 70, 80); + * } + * function mouseClicked() { + * ele.play(); + * background(200); + * //ele.duration dislpays the duration + * text(ele.duration() + ' seconds', width / 2, height / 2); + * } + *
+ */ + p5.MediaElement.prototype.duration = function() { + return this.elt.duration; + }; + p5.MediaElement.prototype.pixels = []; + p5.MediaElement.prototype._ensureCanvas = function() { + if (!this.canvas) { + this.canvas = document.createElement('canvas'); + this.drawingContext = this.canvas.getContext('2d'); + this.setModified(true); + } + if (this.loadedmetadata) { + // wait for metadata for w/h + if (this.canvas.width !== this.elt.width) { + this.canvas.width = this.elt.width; + this.canvas.height = this.elt.height; + this.width = this.canvas.width; + this.height = this.canvas.height; + this._pixelsDirty = true; + } + + var currentTime = this.elt.currentTime; + if (this._pixelsDirty || this._pixelsTime !== currentTime) { + // only update the pixels array if it's dirty, or + // if the video time has changed. + this._pixelsTime = currentTime; + this._pixelsDirty = true; + + this.drawingContext.drawImage( + this.elt, + 0, + 0, + this.canvas.width, + this.canvas.height + ); + this.setModified(true); + } + } + }; + p5.MediaElement.prototype.loadPixels = function() { + this._ensureCanvas(); + return p5.Renderer2D.prototype.loadPixels.apply(this, arguments); + }; + p5.MediaElement.prototype.updatePixels = function(x, y, w, h) { + if (this.loadedmetadata) { + // wait for metadata + this._ensureCanvas(); + p5.Renderer2D.prototype.updatePixels.call(this, x, y, w, h); + } + this.setModified(true); + return this; + }; + p5.MediaElement.prototype.get = function() { + this._ensureCanvas(); + return p5.Renderer2D.prototype.get.apply(this, arguments); + }; + p5.MediaElement.prototype._getPixel = function() { + this.loadPixels(); + return p5.Renderer2D.prototype._getPixel.apply(this, arguments); + }; + + p5.MediaElement.prototype.set = function(x, y, imgOrCol) { + if (this.loadedmetadata) { + // wait for metadata + this._ensureCanvas(); + p5.Renderer2D.prototype.set.call(this, x, y, imgOrCol); + this.setModified(true); + } + }; + p5.MediaElement.prototype.copy = function() { + this._ensureCanvas(); + p5.Renderer2D.prototype.copy.apply(this, arguments); + }; + p5.MediaElement.prototype.mask = function() { + this.loadPixels(); + this.setModified(true); + p5.Image.prototype.mask.apply(this, arguments); + }; + /** + * helper method for web GL mode to figure out if the element + * has been modified and might need to be re-uploaded to texture + * memory between frames. + * @method isModified + * @private + * @return {boolean} a boolean indicating whether or not the + * image has been updated or modified since last texture upload. + */ + p5.MediaElement.prototype.isModified = function() { + return this._modified; + }; + /** + * helper method for web GL mode to indicate that an element has been + * changed or unchanged since last upload. gl texture upload will + * set this value to false after uploading the texture; or might set + * it to true if metadata has become available but there is no actual + * texture data available yet.. + * @method setModified + * @param {boolean} val sets whether or not the element has been + * modified. + * @private + */ + p5.MediaElement.prototype.setModified = function(value) { + this._modified = value; + }; + /** + * Schedule an event to be called when the audio or video + * element reaches the end. If the element is looping, + * this will not be called. The element is passed in + * as the argument to the onended callback. + * + * @method onended + * @param {Function} callback function to call when the + * soundfile has ended. The + * media element will be passed + * in as the argument to the + * callback. + * @chainable + * @example + *
+ * function setup() { + * var audioEl = createAudio('assets/beat.mp3'); + * audioEl.showControls(); + * audioEl.onended(sayDone); + * } + * + * function sayDone(elt) { + * alert('done playing ' + elt.src); + * } + *
+ */ + p5.MediaElement.prototype.onended = function(callback) { + this._onended = callback; + return this; + }; + + /*** CONNECT TO WEB AUDIO API / p5.sound.js ***/ + + /** + * Send the audio output of this element to a specified audioNode or + * p5.sound object. If no element is provided, connects to p5's master + * output. That connection is established when this method is first called. + * All connections are removed by the .disconnect() method. + * + * This method is meant to be used with the p5.sound.js addon library. + * + * @method connect + * @param {AudioNode|Object} audioNode AudioNode from the Web Audio API, + * or an object from the p5.sound library + */ + p5.MediaElement.prototype.connect = function(obj) { + var audioContext, masterOutput; + + // if p5.sound exists, same audio context + if (typeof p5.prototype.getAudioContext === 'function') { + audioContext = p5.prototype.getAudioContext(); + masterOutput = p5.soundOut.input; + } else { + try { + audioContext = obj.context; + masterOutput = audioContext.destination; + } catch (e) { + throw 'connect() is meant to be used with Web Audio API or p5.sound.js'; + } + } + + // create a Web Audio MediaElementAudioSourceNode if none already exists + if (!this.audioSourceNode) { + this.audioSourceNode = audioContext.createMediaElementSource(this.elt); + + // connect to master output when this method is first called + this.audioSourceNode.connect(masterOutput); + } + + // connect to object if provided + if (obj) { + if (obj.input) { + this.audioSourceNode.connect(obj.input); + } else { + this.audioSourceNode.connect(obj); + } + } else { + // otherwise connect to master output of p5.sound / AudioContext + this.audioSourceNode.connect(masterOutput); + } + }; + + /** + * Disconnect all Web Audio routing, including to master output. + * This is useful if you want to re-route the output through + * audio effects, for example. + * + * @method disconnect + */ + p5.MediaElement.prototype.disconnect = function() { + if (this.audioSourceNode) { + this.audioSourceNode.disconnect(); + } else { + throw 'nothing to disconnect'; + } + }; + + /*** SHOW / HIDE CONTROLS ***/ + + /** + * Show the default MediaElement controls, as determined by the web browser. + * + * @method showControls + * @example + *
+ * var ele; + * function setup() { + * //p5.MediaElement objects are usually created + * //by calling the createAudio(), createVideo(), + * //and createCapture() functions. + * //In this example we create + * //a new p5.MediaElement via createAudio() + * ele = createAudio('assets/lucky_dragons.mp3'); + * background(200); + * textAlign(CENTER); + * text('Click to Show Controls!', 10, 25, 70, 80); + * } + * function mousePressed() { + * ele.showControls(); + * background(200); + * text('Controls Shown', width / 2, height / 2); + * } + *
+ */ + p5.MediaElement.prototype.showControls = function() { + // must set style for the element to show on the page + this.elt.style['text-align'] = 'inherit'; + this.elt.controls = true; + }; + + /** + * Hide the default mediaElement controls. + * @method hideControls + * @example + *
+ * var ele; + * function setup() { + * //p5.MediaElement objects are usually created + * //by calling the createAudio(), createVideo(), + * //and createCapture() functions. + * //In this example we create + * //a new p5.MediaElement via createAudio() + * ele = createAudio('assets/lucky_dragons.mp3'); + * ele.showControls(); + * background(200); + * textAlign(CENTER); + * text('Click to hide Controls!', 10, 25, 70, 80); + * } + * function mousePressed() { + * ele.hideControls(); + * background(200); + * text('Controls hidden', width / 2, height / 2); + * } + *
+ */ + p5.MediaElement.prototype.hideControls = function() { + this.elt.controls = false; + }; + + /*** SCHEDULE EVENTS ***/ + + // Cue inspired by JavaScript setTimeout, and the + // Tone.js Transport Timeline Event, MIT License Yotam Mann 2015 tonejs.org + var Cue = function(callback, time, id, val) { + this.callback = callback; + this.time = time; + this.id = id; + this.val = val; + }; + + /** + * Schedule events to trigger every time a MediaElement + * (audio/video) reaches a playback cue point. + * + * Accepts a callback function, a time (in seconds) at which to trigger + * the callback, and an optional parameter for the callback. + * + * Time will be passed as the first parameter to the callback function, + * and param will be the second parameter. + * + * + * @method addCue + * @param {Number} time Time in seconds, relative to this media + * element's playback. For example, to trigger + * an event every time playback reaches two + * seconds, pass in the number 2. This will be + * passed as the first parameter to + * the callback function. + * @param {Function} callback Name of a function that will be + * called at the given time. The callback will + * receive time and (optionally) param as its + * two parameters. + * @param {Object} [value] An object to be passed as the + * second parameter to the + * callback function. + * @return {Number} id ID of this cue, + * useful for removeCue(id) + * @example + *
+ * // + * // + * function setup() { + * noCanvas(); + * + * var audioEl = createAudio('assets/beat.mp3'); + * audioEl.showControls(); + * + * // schedule three calls to changeBackground + * audioEl.addCue(0.5, changeBackground, color(255, 0, 0)); + * audioEl.addCue(1.0, changeBackground, color(0, 255, 0)); + * audioEl.addCue(2.5, changeBackground, color(0, 0, 255)); + * audioEl.addCue(3.0, changeBackground, color(0, 255, 255)); + * audioEl.addCue(4.2, changeBackground, color(255, 255, 0)); + * audioEl.addCue(5.0, changeBackground, color(255, 255, 0)); + * } + * + * function changeBackground(val) { + * background(val); + * } + *
+ */ + p5.MediaElement.prototype.addCue = function(time, callback, val) { + var id = this._cueIDCounter++; + + var cue = new Cue(callback, time, id, val); + this._cues.push(cue); + + if (!this.elt.ontimeupdate) { + this.elt.ontimeupdate = this._onTimeUpdate.bind(this); + } + + return id; + }; + + /** + * Remove a callback based on its ID. The ID is returned by the + * addCue method. + * @method removeCue + * @param {Number} id ID of the cue, as returned by addCue + * @example + *
+ * var audioEl, id1, id2; + * function setup() { + * background(255, 255, 255); + * audioEl = createAudio('assets/beat.mp3'); + * audioEl.showControls(); + * // schedule five calls to changeBackground + * id1 = audioEl.addCue(0.5, changeBackground, color(255, 0, 0)); + * audioEl.addCue(1.0, changeBackground, color(0, 255, 0)); + * audioEl.addCue(2.5, changeBackground, color(0, 0, 255)); + * audioEl.addCue(3.0, changeBackground, color(0, 255, 255)); + * id2 = audioEl.addCue(4.2, changeBackground, color(255, 255, 0)); + * text('Click to remove first and last Cue!', 10, 25, 70, 80); + * } + * function mousePressed() { + * audioEl.removeCue(id1); + * audioEl.removeCue(id2); + * } + * function changeBackground(val) { + * background(val); + * } + *
+ */ + p5.MediaElement.prototype.removeCue = function(id) { + for (var i = 0; i < this._cues.length; i++) { + if (this._cues[i].id === id) { + console.log(id); + this._cues.splice(i, 1); + } + } + + if (this._cues.length === 0) { + this.elt.ontimeupdate = null; + } + }; + + /** + * Remove all of the callbacks that had originally been scheduled + * via the addCue method. + * @method clearCues + * @param {Number} id ID of the cue, as returned by addCue + * @example + *
+ * var audioEl; + * function setup() { + * background(255, 255, 255); + * audioEl = createAudio('assets/beat.mp3'); + * //Show the default MediaElement controls, as determined by the web browser + * audioEl.showControls(); + * // schedule calls to changeBackground + * background(200); + * text('Click to change Cue!', 10, 25, 70, 80); + * audioEl.addCue(0.5, changeBackground, color(255, 0, 0)); + * audioEl.addCue(1.0, changeBackground, color(0, 255, 0)); + * audioEl.addCue(2.5, changeBackground, color(0, 0, 255)); + * audioEl.addCue(3.0, changeBackground, color(0, 255, 255)); + * audioEl.addCue(4.2, changeBackground, color(255, 255, 0)); + * } + * function mousePressed() { + * // here we clear the scheduled callbacks + * audioEl.clearCues(); + * // then we add some more callbacks + * audioEl.addCue(1, changeBackground, color(2, 2, 2)); + * audioEl.addCue(3, changeBackground, color(255, 255, 0)); + * } + * function changeBackground(val) { + * background(val); + * } + *
+ */ + p5.MediaElement.prototype.clearCues = function() { + this._cues = []; + this.elt.ontimeupdate = null; + }; + + // private method that checks for cues to be fired if events + // have been scheduled using addCue(callback, time). + p5.MediaElement.prototype._onTimeUpdate = function() { + var playbackTime = this.time(); + + for (var i = 0; i < this._cues.length; i++) { + var callbackTime = this._cues[i].time; + var val = this._cues[i].val; + + if (this._prevTime < callbackTime && callbackTime <= playbackTime) { + // pass the scheduled callbackTime as parameter to the callback + this._cues[i].callback(val); + } + } + + this._prevTime = playbackTime; + }; + + /** + * Base class for a file. + * Used for Element.drop and createFileInput. + * + * @class p5.File + * @constructor + * @param {File} file File that is wrapped + */ + p5.File = function(file, pInst) { + /** + * Underlying File object. All normal File methods can be called on this. + * + * @property file + */ + this.file = file; + + this._pInst = pInst; + + // Splitting out the file type into two components + // This makes determining if image or text etc simpler + var typeList = file.type.split('/'); + /** + * File type (image, text, etc.) + * + * @property type + */ + this.type = typeList[0]; + /** + * File subtype (usually the file extension jpg, png, xml, etc.) + * + * @property subtype + */ + this.subtype = typeList[1]; + /** + * File name + * + * @property name + */ + this.name = file.name; + /** + * File size + * + * @property size + */ + this.size = file.size; + + /** + * URL string containing image data. + * + * @property data + */ + this.data = undefined; + }; + + p5.File._createLoader = function(theFile, callback) { + var reader = new FileReader(); + reader.onload = function(e) { + var p5file = new p5.File(theFile); + p5file.data = e.target.result; + callback(p5file); + }; + return reader; + }; + + p5.File._load = function(f, callback) { + // Text or data? + // This should likely be improved + if (/^text\//.test(f.type)) { + p5.File._createLoader(f, callback).readAsText(f); + } else if (!/^(video|audio)\//.test(f.type)) { + p5.File._createLoader(f, callback).readAsDataURL(f); + } else { + var file = new p5.File(f); + file.data = URL.createObjectURL(f); + callback(file); + } + }; +}); diff --git a/Games/Fruit_Ninja/p5/addons/p5.dom.min.js b/Games/Fruit_Ninja/p5/addons/p5.dom.min.js index cd4201f66f..4f9f3f734e 100644 --- a/Games/Fruit_Ninja/p5/addons/p5.dom.min.js +++ b/Games/Fruit_Ninja/p5/addons/p5.dom.min.js @@ -1,3 +1,3 @@ -/*! p5.js v0.9.0 July 01, 2019 */ - +/*! p5.js v0.9.0 July 01, 2019 */ + !function(t,e){"function"==typeof define&&define.amd?define("p5.dom",["p5"],function(t){e(t)}):"object"==typeof exports?e(require("../p5")):e(t.p5)}(this,function(d){function l(t){var e=document;return"string"==typeof t&&"#"===t[0]?(t=t.slice(1),e=document.getElementById(t)||document):t instanceof d.Element?e=t.elt:t instanceof HTMLElement&&(e=t),e}function c(t,e,i){(e._userNode?e._userNode:document.body).appendChild(t);var n=i?new d.MediaElement(t,e):new d.Element(t,e);return e._elements.push(n),n}d.prototype.select=function(t,e){d._validateParameters("select",arguments);var i=null,n=l(e);return(i="."===t[0]?(t=t.slice(1),(i=n.getElementsByClassName(t)).length?i[0]:null):"#"===t[0]?(t=t.slice(1),n.getElementById(t)):(i=n.getElementsByTagName(t)).length?i[0]:null)?this._wrapElement(i):null},d.prototype.selectAll=function(t,e){d._validateParameters("selectAll",arguments);var i,n=[],r=l(e);if(i="."===t[0]?(t=t.slice(1),r.getElementsByClassName(t)):r.getElementsByTagName(t))for(var o=0;oWeb Audio functionality including audio input, - * playback, analysis and synthesis. - *

- * p5.SoundFile: Load and play sound files.
- * p5.Amplitude: Get the current volume of a sound.
- * p5.AudioIn: Get sound from an input source, typically - * a computer microphone.
- * p5.FFT: Analyze the frequency of sound. Returns - * results from the frequency spectrum or time domain (waveform).
- * p5.Oscillator: Generate Sine, - * Triangle, Square and Sawtooth waveforms. Base class of - * p5.Noise and p5.Pulse. - *
- * p5.Envelope: An Envelope is a series - * of fades over time. Often used to control an object's - * output gain level as an "ADSR Envelope" (Attack, Decay, - * Sustain, Release). Can also modulate other parameters.
- * p5.Delay: A delay effect with - * parameters for feedback, delayTime, and lowpass filter.
- * p5.Filter: Filter the frequency range of a - * sound. - *
- * p5.Reverb: Add reverb to a sound by specifying - * duration and decay.
- * p5.Convolver: Extends - * p5.Reverb to simulate the sound of real - * physical spaces through convolution.
- * p5.SoundRecorder: Record sound for playback - * / save the .wav file. - * p5.Phrase, p5.Part and - * p5.Score: Compose musical sequences. - *

- * p5.sound is on GitHub. - * Download the latest version - * here. - * - * @module p5.sound - * @submodule p5.sound - * @for p5.sound - * @main - */ - -/** - * p5.sound - * https://p5js.org/reference/#/libraries/p5.sound - * - * From the Processing Foundation and contributors - * https://github.com/processing/p5.js-sound/graphs/contributors - * - * MIT License (MIT) - * https://github.com/processing/p5.js-sound/blob/master/LICENSE - * - * Some of the many audio libraries & resources that inspire p5.sound: - * - TONE.js (c) Yotam Mann. Licensed under The MIT License (MIT). https://github.com/TONEnoTONE/Tone.js - * - buzz.js (c) Jay Salvat. Licensed under The MIT License (MIT). http://buzz.jaysalvat.com/ - * - Boris Smus Web Audio API book, 2013. Licensed under the Apache License http://www.apache.org/licenses/LICENSE-2.0 - * - wavesurfer.js https://github.com/katspaugh/wavesurfer.js - * - Web Audio Components by Jordan Santell https://github.com/web-audio-components - * - Wilm Thoben's Sound library for Processing https://github.com/processing/processing/tree/master/java/libraries/sound - * - * Web Audio API: http://w3.org/TR/webaudio/ - */ - -(function (root, factory) { - if (typeof define === 'function' && define.amd) - define('p5.sound', ['p5'], function (p5) { (factory(p5));}); - else if (typeof exports === 'object') - factory(require('../p5')); - else - factory(root['p5']); -}(this, function (p5) { - -var shims; -'use strict'; /** - * This module has shims - */ -shims = function () { - /* AudioContext Monkeypatch - Copyright 2013 Chris Wilson - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ - (function () { - function fixSetTarget(param) { - if (!param) - // if NYI, just return - return; - if (!param.setTargetAtTime) - param.setTargetAtTime = param.setTargetValueAtTime; - } - if (window.hasOwnProperty('webkitAudioContext') && !window.hasOwnProperty('AudioContext')) { - window.AudioContext = window.webkitAudioContext; - if (typeof AudioContext.prototype.createGain !== 'function') - AudioContext.prototype.createGain = AudioContext.prototype.createGainNode; - if (typeof AudioContext.prototype.createDelay !== 'function') - AudioContext.prototype.createDelay = AudioContext.prototype.createDelayNode; - if (typeof AudioContext.prototype.createScriptProcessor !== 'function') - AudioContext.prototype.createScriptProcessor = AudioContext.prototype.createJavaScriptNode; - if (typeof AudioContext.prototype.createPeriodicWave !== 'function') - AudioContext.prototype.createPeriodicWave = AudioContext.prototype.createWaveTable; - AudioContext.prototype.internal_createGain = AudioContext.prototype.createGain; - AudioContext.prototype.createGain = function () { - var node = this.internal_createGain(); - fixSetTarget(node.gain); - return node; - }; - AudioContext.prototype.internal_createDelay = AudioContext.prototype.createDelay; - AudioContext.prototype.createDelay = function (maxDelayTime) { - var node = maxDelayTime ? this.internal_createDelay(maxDelayTime) : this.internal_createDelay(); - fixSetTarget(node.delayTime); - return node; - }; - AudioContext.prototype.internal_createBufferSource = AudioContext.prototype.createBufferSource; - AudioContext.prototype.createBufferSource = function () { - var node = this.internal_createBufferSource(); - if (!node.start) { - node.start = function (when, offset, duration) { - if (offset || duration) - this.noteGrainOn(when || 0, offset, duration); - else - this.noteOn(when || 0); - }; - } else { - node.internal_start = node.start; - node.start = function (when, offset, duration) { - if (typeof duration !== 'undefined') - node.internal_start(when || 0, offset, duration); - else - node.internal_start(when || 0, offset || 0); - }; - } - if (!node.stop) { - node.stop = function (when) { - this.noteOff(when || 0); - }; - } else { - node.internal_stop = node.stop; - node.stop = function (when) { - node.internal_stop(when || 0); - }; - } - fixSetTarget(node.playbackRate); - return node; - }; - AudioContext.prototype.internal_createDynamicsCompressor = AudioContext.prototype.createDynamicsCompressor; - AudioContext.prototype.createDynamicsCompressor = function () { - var node = this.internal_createDynamicsCompressor(); - fixSetTarget(node.threshold); - fixSetTarget(node.knee); - fixSetTarget(node.ratio); - fixSetTarget(node.reduction); - fixSetTarget(node.attack); - fixSetTarget(node.release); - return node; - }; - AudioContext.prototype.internal_createBiquadFilter = AudioContext.prototype.createBiquadFilter; - AudioContext.prototype.createBiquadFilter = function () { - var node = this.internal_createBiquadFilter(); - fixSetTarget(node.frequency); - fixSetTarget(node.detune); - fixSetTarget(node.Q); - fixSetTarget(node.gain); - return node; - }; - if (typeof AudioContext.prototype.createOscillator !== 'function') { - AudioContext.prototype.internal_createOscillator = AudioContext.prototype.createOscillator; - AudioContext.prototype.createOscillator = function () { - var node = this.internal_createOscillator(); - if (!node.start) { - node.start = function (when) { - this.noteOn(when || 0); - }; - } else { - node.internal_start = node.start; - node.start = function (when) { - node.internal_start(when || 0); - }; - } - if (!node.stop) { - node.stop = function (when) { - this.noteOff(when || 0); - }; - } else { - node.internal_stop = node.stop; - node.stop = function (when) { - node.internal_stop(when || 0); - }; - } - if (!node.setPeriodicWave) - node.setPeriodicWave = node.setWaveTable; - fixSetTarget(node.frequency); - fixSetTarget(node.detune); - return node; - }; - } - } - if (window.hasOwnProperty('webkitOfflineAudioContext') && !window.hasOwnProperty('OfflineAudioContext')) { - window.OfflineAudioContext = window.webkitOfflineAudioContext; - } - }(window)); - // <-- end MonkeyPatch. - // Polyfill for AudioIn, also handled by p5.dom createCapture - navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; - /** - * Determine which filetypes are supported (inspired by buzz.js) - * The audio element (el) will only be used to test browser support for various audio formats - */ - var el = document.createElement('audio'); - p5.prototype.isSupported = function () { - return !!el.canPlayType; - }; - var isOGGSupported = function () { - return !!el.canPlayType && el.canPlayType('audio/ogg; codecs="vorbis"'); - }; - var isMP3Supported = function () { - return !!el.canPlayType && el.canPlayType('audio/mpeg;'); - }; - var isWAVSupported = function () { - return !!el.canPlayType && el.canPlayType('audio/wav; codecs="1"'); - }; - var isAACSupported = function () { - return !!el.canPlayType && (el.canPlayType('audio/x-m4a;') || el.canPlayType('audio/aac;')); - }; - var isAIFSupported = function () { - return !!el.canPlayType && el.canPlayType('audio/x-aiff;'); - }; - p5.prototype.isFileSupported = function (extension) { - switch (extension.toLowerCase()) { - case 'mp3': - return isMP3Supported(); - case 'wav': - return isWAVSupported(); - case 'ogg': - return isOGGSupported(); - case 'aac': - case 'm4a': - case 'mp4': - return isAACSupported(); - case 'aif': - case 'aiff': - return isAIFSupported(); - default: - return false; - } - }; -}(); -var StartAudioContext; -(function (root, factory) { - if (true) { - StartAudioContext = function () { - return factory(); - }(); - } else if (typeof module === 'object' && module.exports) { - module.exports = factory(); - } else { - root.StartAudioContext = factory(); - } -}(this, function () { - var TapListener = function (element, context) { - this._dragged = false; - this._element = element; - this._bindedMove = this._moved.bind(this); - this._bindedEnd = this._ended.bind(this, context); - element.addEventListener('touchstart', this._bindedEnd); - element.addEventListener('touchmove', this._bindedMove); - element.addEventListener('touchend', this._bindedEnd); - element.addEventListener('mouseup', this._bindedEnd); - }; - TapListener.prototype._moved = function (e) { - this._dragged = true; - }; - TapListener.prototype._ended = function (context) { - if (!this._dragged) { - startContext(context); - } - this._dragged = false; - }; - TapListener.prototype.dispose = function () { - this._element.removeEventListener('touchstart', this._bindedEnd); - this._element.removeEventListener('touchmove', this._bindedMove); - this._element.removeEventListener('touchend', this._bindedEnd); - this._element.removeEventListener('mouseup', this._bindedEnd); - this._bindedMove = null; - this._bindedEnd = null; - this._element = null; - }; - function startContext(context) { - var buffer = context.createBuffer(1, 1, context.sampleRate); - var source = context.createBufferSource(); - source.buffer = buffer; - source.connect(context.destination); - source.start(0); - if (context.resume) { - context.resume(); - } - } - function isStarted(context) { - return context.state === 'running'; - } - function onStarted(context, callback) { - function checkLoop() { - if (isStarted(context)) { - callback(); - } else { - requestAnimationFrame(checkLoop); - if (context.resume) { - context.resume(); - } - } - } - if (isStarted(context)) { - callback(); - } else { - checkLoop(); - } - } - function bindTapListener(element, tapListeners, context) { - if (Array.isArray(element) || NodeList && element instanceof NodeList) { - for (var i = 0; i < element.length; i++) { - bindTapListener(element[i], tapListeners, context); - } - } else if (typeof element === 'string') { - bindTapListener(document.querySelectorAll(element), tapListeners, context); - } else if (element.jquery && typeof element.toArray === 'function') { - bindTapListener(element.toArray(), tapListeners, context); - } else if (Element && element instanceof Element) { - var tap = new TapListener(element, context); - tapListeners.push(tap); - } - } - function StartAudioContext(context, elements, callback) { - var promise = new Promise(function (success) { - onStarted(context, success); - }); - var tapListeners = []; - if (!elements) { - elements = document.body; - } - bindTapListener(elements, tapListeners, context); - promise.then(function () { - for (var i = 0; i < tapListeners.length; i++) { - tapListeners[i].dispose(); - } - tapListeners = null; - if (callback) { - callback(); - } - }); - return promise; - } - return StartAudioContext; -})); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_core_Tone; -Tone_core_Tone = function () { - 'use strict'; - var Tone = function (inputs, outputs) { - if (this.isUndef(inputs) || inputs === 1) { - this.input = this.context.createGain(); - } else if (inputs > 1) { - this.input = new Array(inputs); - } - if (this.isUndef(outputs) || outputs === 1) { - this.output = this.context.createGain(); - } else if (outputs > 1) { - this.output = new Array(inputs); - } - }; - Tone.prototype.set = function (params, value, rampTime) { - if (this.isObject(params)) { - rampTime = value; - } else if (this.isString(params)) { - var tmpObj = {}; - tmpObj[params] = value; - params = tmpObj; - } - paramLoop: - for (var attr in params) { - value = params[attr]; - var parent = this; - if (attr.indexOf('.') !== -1) { - var attrSplit = attr.split('.'); - for (var i = 0; i < attrSplit.length - 1; i++) { - parent = parent[attrSplit[i]]; - if (parent instanceof Tone) { - attrSplit.splice(0, i + 1); - var innerParam = attrSplit.join('.'); - parent.set(innerParam, value); - continue paramLoop; - } - } - attr = attrSplit[attrSplit.length - 1]; - } - var param = parent[attr]; - if (this.isUndef(param)) { - continue; - } - if (Tone.Signal && param instanceof Tone.Signal || Tone.Param && param instanceof Tone.Param) { - if (param.value !== value) { - if (this.isUndef(rampTime)) { - param.value = value; - } else { - param.rampTo(value, rampTime); - } - } - } else if (param instanceof AudioParam) { - if (param.value !== value) { - param.value = value; - } - } else if (param instanceof Tone) { - param.set(value); - } else if (param !== value) { - parent[attr] = value; - } - } - return this; - }; - Tone.prototype.get = function (params) { - if (this.isUndef(params)) { - params = this._collectDefaults(this.constructor); - } else if (this.isString(params)) { - params = [params]; - } - var ret = {}; - for (var i = 0; i < params.length; i++) { - var attr = params[i]; - var parent = this; - var subRet = ret; - if (attr.indexOf('.') !== -1) { - var attrSplit = attr.split('.'); - for (var j = 0; j < attrSplit.length - 1; j++) { - var subAttr = attrSplit[j]; - subRet[subAttr] = subRet[subAttr] || {}; - subRet = subRet[subAttr]; - parent = parent[subAttr]; - } - attr = attrSplit[attrSplit.length - 1]; - } - var param = parent[attr]; - if (this.isObject(params[attr])) { - subRet[attr] = param.get(); - } else if (Tone.Signal && param instanceof Tone.Signal) { - subRet[attr] = param.value; - } else if (Tone.Param && param instanceof Tone.Param) { - subRet[attr] = param.value; - } else if (param instanceof AudioParam) { - subRet[attr] = param.value; - } else if (param instanceof Tone) { - subRet[attr] = param.get(); - } else if (!this.isFunction(param) && !this.isUndef(param)) { - subRet[attr] = param; - } - } - return ret; - }; - Tone.prototype._collectDefaults = function (constr) { - var ret = []; - if (!this.isUndef(constr.defaults)) { - ret = Object.keys(constr.defaults); - } - if (!this.isUndef(constr._super)) { - var superDefs = this._collectDefaults(constr._super); - for (var i = 0; i < superDefs.length; i++) { - if (ret.indexOf(superDefs[i]) === -1) { - ret.push(superDefs[i]); - } - } - } - return ret; - }; - Tone.prototype.toString = function () { - for (var className in Tone) { - var isLetter = className[0].match(/^[A-Z]$/); - var sameConstructor = Tone[className] === this.constructor; - if (this.isFunction(Tone[className]) && isLetter && sameConstructor) { - return className; - } - } - return 'Tone'; - }; - Object.defineProperty(Tone.prototype, 'numberOfInputs', { - get: function () { - if (this.input) { - if (this.isArray(this.input)) { - return this.input.length; - } else { - return 1; - } - } else { - return 0; - } - } - }); - Object.defineProperty(Tone.prototype, 'numberOfOutputs', { - get: function () { - if (this.output) { - if (this.isArray(this.output)) { - return this.output.length; - } else { - return 1; - } - } else { - return 0; - } - } - }); - Tone.prototype.dispose = function () { - if (!this.isUndef(this.input)) { - if (this.input instanceof AudioNode) { - this.input.disconnect(); - } - this.input = null; - } - if (!this.isUndef(this.output)) { - if (this.output instanceof AudioNode) { - this.output.disconnect(); - } - this.output = null; - } - return this; - }; - Tone.prototype.connect = function (unit, outputNum, inputNum) { - if (Array.isArray(this.output)) { - outputNum = this.defaultArg(outputNum, 0); - this.output[outputNum].connect(unit, 0, inputNum); - } else { - this.output.connect(unit, outputNum, inputNum); - } - return this; - }; - Tone.prototype.disconnect = function (destination, outputNum, inputNum) { - if (this.isArray(this.output)) { - if (this.isNumber(destination)) { - this.output[destination].disconnect(); - } else { - outputNum = this.defaultArg(outputNum, 0); - this.output[outputNum].disconnect(destination, 0, inputNum); - } - } else { - this.output.disconnect.apply(this.output, arguments); - } - }; - Tone.prototype.connectSeries = function () { - if (arguments.length > 1) { - var currentUnit = arguments[0]; - for (var i = 1; i < arguments.length; i++) { - var toUnit = arguments[i]; - currentUnit.connect(toUnit); - currentUnit = toUnit; - } - } - return this; - }; - Tone.prototype.chain = function () { - if (arguments.length > 0) { - var currentUnit = this; - for (var i = 0; i < arguments.length; i++) { - var toUnit = arguments[i]; - currentUnit.connect(toUnit); - currentUnit = toUnit; - } - } - return this; - }; - Tone.prototype.fan = function () { - if (arguments.length > 0) { - for (var i = 0; i < arguments.length; i++) { - this.connect(arguments[i]); - } - } - return this; - }; - AudioNode.prototype.chain = Tone.prototype.chain; - AudioNode.prototype.fan = Tone.prototype.fan; - Tone.prototype.defaultArg = function (given, fallback) { - if (this.isObject(given) && this.isObject(fallback)) { - var ret = {}; - for (var givenProp in given) { - ret[givenProp] = this.defaultArg(fallback[givenProp], given[givenProp]); - } - for (var fallbackProp in fallback) { - ret[fallbackProp] = this.defaultArg(given[fallbackProp], fallback[fallbackProp]); - } - return ret; - } else { - return this.isUndef(given) ? fallback : given; - } - }; - Tone.prototype.optionsObject = function (values, keys, defaults) { - var options = {}; - if (values.length === 1 && this.isObject(values[0])) { - options = values[0]; - } else { - for (var i = 0; i < keys.length; i++) { - options[keys[i]] = values[i]; - } - } - if (!this.isUndef(defaults)) { - return this.defaultArg(options, defaults); - } else { - return options; - } - }; - Tone.prototype.isUndef = function (val) { - return typeof val === 'undefined'; - }; - Tone.prototype.isFunction = function (val) { - return typeof val === 'function'; - }; - Tone.prototype.isNumber = function (arg) { - return typeof arg === 'number'; - }; - Tone.prototype.isObject = function (arg) { - return Object.prototype.toString.call(arg) === '[object Object]' && arg.constructor === Object; - }; - Tone.prototype.isBoolean = function (arg) { - return typeof arg === 'boolean'; - }; - Tone.prototype.isArray = function (arg) { - return Array.isArray(arg); - }; - Tone.prototype.isString = function (arg) { - return typeof arg === 'string'; - }; - Tone.noOp = function () { - }; - Tone.prototype._readOnly = function (property) { - if (Array.isArray(property)) { - for (var i = 0; i < property.length; i++) { - this._readOnly(property[i]); - } - } else { - Object.defineProperty(this, property, { - writable: false, - enumerable: true - }); - } - }; - Tone.prototype._writable = function (property) { - if (Array.isArray(property)) { - for (var i = 0; i < property.length; i++) { - this._writable(property[i]); - } - } else { - Object.defineProperty(this, property, { writable: true }); - } - }; - Tone.State = { - Started: 'started', - Stopped: 'stopped', - Paused: 'paused' - }; - Tone.prototype.equalPowerScale = function (percent) { - var piFactor = 0.5 * Math.PI; - return Math.sin(percent * piFactor); - }; - Tone.prototype.dbToGain = function (db) { - return Math.pow(2, db / 6); - }; - Tone.prototype.gainToDb = function (gain) { - return 20 * (Math.log(gain) / Math.LN10); - }; - Tone.prototype.intervalToFrequencyRatio = function (interval) { - return Math.pow(2, interval / 12); - }; - Tone.prototype.now = function () { - return Tone.context.now(); - }; - Tone.now = function () { - return Tone.context.now(); - }; - Tone.extend = function (child, parent) { - if (Tone.prototype.isUndef(parent)) { - parent = Tone; - } - function TempConstructor() { - } - TempConstructor.prototype = parent.prototype; - child.prototype = new TempConstructor(); - child.prototype.constructor = child; - child._super = parent; - }; - var audioContext; - Object.defineProperty(Tone, 'context', { - get: function () { - return audioContext; - }, - set: function (context) { - if (Tone.Context && context instanceof Tone.Context) { - audioContext = context; - } else { - audioContext = new Tone.Context(context); - } - if (Tone.Context) { - Tone.Context.emit('init', audioContext); - } - } - }); - Object.defineProperty(Tone.prototype, 'context', { - get: function () { - return Tone.context; - } - }); - Tone.setContext = function (ctx) { - Tone.context = ctx; - }; - Object.defineProperty(Tone.prototype, 'blockTime', { - get: function () { - return 128 / this.context.sampleRate; - } - }); - Object.defineProperty(Tone.prototype, 'sampleTime', { - get: function () { - return 1 / this.context.sampleRate; - } - }); - Object.defineProperty(Tone, 'supported', { - get: function () { - var hasAudioContext = window.hasOwnProperty('AudioContext') || window.hasOwnProperty('webkitAudioContext'); - var hasPromises = window.hasOwnProperty('Promise'); - var hasWorkers = window.hasOwnProperty('Worker'); - return hasAudioContext && hasPromises && hasWorkers; - } - }); - Tone.version = 'r10'; - if (!window.TONE_SILENCE_VERSION_LOGGING) { - } - return Tone; -}(); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_core_Emitter; -Tone_core_Emitter = function (Tone) { - 'use strict'; - Tone.Emitter = function () { - this._events = {}; - }; - Tone.extend(Tone.Emitter); - Tone.Emitter.prototype.on = function (event, callback) { - var events = event.split(/\W+/); - for (var i = 0; i < events.length; i++) { - var eventName = events[i]; - if (!this._events.hasOwnProperty(eventName)) { - this._events[eventName] = []; - } - this._events[eventName].push(callback); - } - return this; - }; - Tone.Emitter.prototype.off = function (event, callback) { - var events = event.split(/\W+/); - for (var ev = 0; ev < events.length; ev++) { - event = events[ev]; - if (this._events.hasOwnProperty(event)) { - if (Tone.prototype.isUndef(callback)) { - this._events[event] = []; - } else { - var eventList = this._events[event]; - for (var i = 0; i < eventList.length; i++) { - if (eventList[i] === callback) { - eventList.splice(i, 1); - } - } - } - } - } - return this; - }; - Tone.Emitter.prototype.emit = function (event) { - if (this._events) { - var args = Array.apply(null, arguments).slice(1); - if (this._events.hasOwnProperty(event)) { - var eventList = this._events[event]; - for (var i = 0, len = eventList.length; i < len; i++) { - eventList[i].apply(this, args); - } - } - } - return this; - }; - Tone.Emitter.mixin = function (object) { - var functions = [ - 'on', - 'off', - 'emit' - ]; - object._events = {}; - for (var i = 0; i < functions.length; i++) { - var func = functions[i]; - var emitterFunc = Tone.Emitter.prototype[func]; - object[func] = emitterFunc; - } - }; - Tone.Emitter.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._events = null; - return this; - }; - return Tone.Emitter; -}(Tone_core_Tone); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_core_Context; -Tone_core_Context = function (Tone) { - if (!window.hasOwnProperty('AudioContext') && window.hasOwnProperty('webkitAudioContext')) { - window.AudioContext = window.webkitAudioContext; - } - Tone.Context = function (context) { - Tone.Emitter.call(this); - if (!context) { - context = new window.AudioContext(); - } - this._context = context; - for (var prop in this._context) { - this._defineProperty(this._context, prop); - } - this._latencyHint = 'interactive'; - this._lookAhead = 0.1; - this._updateInterval = this._lookAhead / 3; - this._computedUpdateInterval = 0; - this._worker = this._createWorker(); - this._constants = {}; - }; - Tone.extend(Tone.Context, Tone.Emitter); - Tone.Emitter.mixin(Tone.Context); - Tone.Context.prototype._defineProperty = function (context, prop) { - if (this.isUndef(this[prop])) { - Object.defineProperty(this, prop, { - get: function () { - if (typeof context[prop] === 'function') { - return context[prop].bind(context); - } else { - return context[prop]; - } - }, - set: function (val) { - context[prop] = val; - } - }); - } - }; - Tone.Context.prototype.now = function () { - return this._context.currentTime; - }; - Tone.Context.prototype._createWorker = function () { - window.URL = window.URL || window.webkitURL; - var blob = new Blob(['var timeoutTime = ' + (this._updateInterval * 1000).toFixed(1) + ';' + 'self.onmessage = function(msg){' + '\ttimeoutTime = parseInt(msg.data);' + '};' + 'function tick(){' + '\tsetTimeout(tick, timeoutTime);' + '\tself.postMessage(\'tick\');' + '}' + 'tick();']); - var blobUrl = URL.createObjectURL(blob); - var worker = new Worker(blobUrl); - worker.addEventListener('message', function () { - this.emit('tick'); - }.bind(this)); - worker.addEventListener('message', function () { - var now = this.now(); - if (this.isNumber(this._lastUpdate)) { - var diff = now - this._lastUpdate; - this._computedUpdateInterval = Math.max(diff, this._computedUpdateInterval * 0.97); - } - this._lastUpdate = now; - }.bind(this)); - return worker; - }; - Tone.Context.prototype.getConstant = function (val) { - if (this._constants[val]) { - return this._constants[val]; - } else { - var buffer = this._context.createBuffer(1, 128, this._context.sampleRate); - var arr = buffer.getChannelData(0); - for (var i = 0; i < arr.length; i++) { - arr[i] = val; - } - var constant = this._context.createBufferSource(); - constant.channelCount = 1; - constant.channelCountMode = 'explicit'; - constant.buffer = buffer; - constant.loop = true; - constant.start(0); - this._constants[val] = constant; - return constant; - } - }; - Object.defineProperty(Tone.Context.prototype, 'lag', { - get: function () { - var diff = this._computedUpdateInterval - this._updateInterval; - diff = Math.max(diff, 0); - return diff; - } - }); - Object.defineProperty(Tone.Context.prototype, 'lookAhead', { - get: function () { - return this._lookAhead; - }, - set: function (lA) { - this._lookAhead = lA; - } - }); - Object.defineProperty(Tone.Context.prototype, 'updateInterval', { - get: function () { - return this._updateInterval; - }, - set: function (interval) { - this._updateInterval = Math.max(interval, Tone.prototype.blockTime); - this._worker.postMessage(Math.max(interval * 1000, 1)); - } - }); - Object.defineProperty(Tone.Context.prototype, 'latencyHint', { - get: function () { - return this._latencyHint; - }, - set: function (hint) { - var lookAhead = hint; - this._latencyHint = hint; - if (this.isString(hint)) { - switch (hint) { - case 'interactive': - lookAhead = 0.1; - this._context.latencyHint = hint; - break; - case 'playback': - lookAhead = 0.8; - this._context.latencyHint = hint; - break; - case 'balanced': - lookAhead = 0.25; - this._context.latencyHint = hint; - break; - case 'fastest': - lookAhead = 0.01; - break; - } - } - this.lookAhead = lookAhead; - this.updateInterval = lookAhead / 3; - } - }); - function shimConnect() { - var nativeConnect = AudioNode.prototype.connect; - var nativeDisconnect = AudioNode.prototype.disconnect; - function toneConnect(B, outNum, inNum) { - if (B.input) { - if (Array.isArray(B.input)) { - if (Tone.prototype.isUndef(inNum)) { - inNum = 0; - } - this.connect(B.input[inNum]); - } else { - this.connect(B.input, outNum, inNum); - } - } else { - try { - if (B instanceof AudioNode) { - nativeConnect.call(this, B, outNum, inNum); - } else { - nativeConnect.call(this, B, outNum); - } - } catch (e) { - throw new Error('error connecting to node: ' + B + '\n' + e); - } - } - } - function toneDisconnect(B, outNum, inNum) { - if (B && B.input && Array.isArray(B.input)) { - if (Tone.prototype.isUndef(inNum)) { - inNum = 0; - } - this.disconnect(B.input[inNum], outNum, inNum); - } else if (B && B.input) { - this.disconnect(B.input, outNum, inNum); - } else { - try { - nativeDisconnect.apply(this, arguments); - } catch (e) { - throw new Error('error disconnecting node: ' + B + '\n' + e); - } - } - } - if (AudioNode.prototype.connect !== toneConnect) { - AudioNode.prototype.connect = toneConnect; - AudioNode.prototype.disconnect = toneDisconnect; - } - } - if (Tone.supported) { - shimConnect(); - Tone.context = new Tone.Context(); - } else { - console.warn('This browser does not support Tone.js'); - } - return Tone.Context; -}(Tone_core_Tone); -var audiocontext; -'use strict'; -audiocontext = function (StartAudioContext, Context, Tone) { - // Create the Audio Context - const audiocontext = new window.AudioContext(); - Tone.context.dispose(); - Tone.setContext(audiocontext); - /** - *

Returns the Audio Context for this sketch. Useful for users - * who would like to dig deeper into the Web Audio API - * .

- * - *

Some browsers require users to startAudioContext - * with a user gesture, such as touchStarted in the example below.

- * - * @method getAudioContext - * @return {Object} AudioContext for this sketch - * @example - *
- * function draw() { - * background(255); - * textAlign(CENTER); - * - * if (getAudioContext().state !== 'running') { - * text('click to start audio', width/2, height/2); - * } else { - * text('audio is enabled', width/2, height/2); - * } - * } - * - * function touchStarted() { - * if (getAudioContext().state !== 'running') { - * getAudioContext().resume(); - * } - * var synth = new p5.MonoSynth(); - * synth.play('A4', 0.5, 0, 0.2); - * } - * - *
- */ - p5.prototype.getAudioContext = function () { - return audiocontext; - }; - /** - *

It is a good practice to give users control over starting audio playback. - * This practice is enforced by Google Chrome's autoplay policy as of r70 - * (info), iOS Safari, and other browsers. - *

- * - *

- * userStartAudio() starts the Audio Context on a user gesture. It utilizes - * the StartAudioContext library by - * Yotam Mann (MIT Licence, 2016). Read more at https://github.com/tambien/StartAudioContext. - *

- * - *

Starting the audio context on a user gesture can be as simple as userStartAudio(). - * Optional parameters let you decide on a specific element that will start the audio context, - * and/or call a function once the audio context is started.

- * @param {Element|Array} [element(s)] This argument can be an Element, - * Selector String, NodeList, p5.Element, - * jQuery Element, or an Array of any of those. - * @param {Function} [callback] Callback to invoke when the AudioContext has started - * @return {Promise} Returns a Promise which is resolved when - * the AudioContext state is 'running' - * @method userStartAudio - * @example - *
- * function setup() { - * var myDiv = createDiv('click to start audio'); - * myDiv.position(0, 0); - * - * var mySynth = new p5.MonoSynth(); - * - * // This won't play until the context has started - * mySynth.play('A6'); - * - * // Start the audio context on a click/touch event - * userStartAudio().then(function() { - * myDiv.remove(); - * }); - * } - *
- */ - p5.prototype.userStartAudio = function (elements, callback) { - var elt = elements; - if (elements instanceof p5.Element) { - elt = elements.elt; - } else if (elements instanceof Array && elements[0] instanceof p5.Element) { - elt = elements.map(function (e) { - return e.elt; - }); - } - return StartAudioContext(audiocontext, elt, callback); - }; - return audiocontext; -}(StartAudioContext, Tone_core_Context, Tone_core_Tone); -var master; -'use strict'; -master = function (audiocontext) { - /** - * Master contains AudioContext and the master sound output. - */ - var Master = function () { - this.input = audiocontext.createGain(); - this.output = audiocontext.createGain(); - //put a hard limiter on the output - this.limiter = audiocontext.createDynamicsCompressor(); - this.limiter.threshold.value = -3; - this.limiter.ratio.value = 20; - this.limiter.knee.value = 1; - this.audiocontext = audiocontext; - this.output.disconnect(); - // connect input to limiter - this.input.connect(this.limiter); - // connect limiter to output - this.limiter.connect(this.output); - // meter is just for global Amplitude / FFT analysis - this.meter = audiocontext.createGain(); - this.fftMeter = audiocontext.createGain(); - this.output.connect(this.meter); - this.output.connect(this.fftMeter); - // connect output to destination - this.output.connect(this.audiocontext.destination); - // an array of all sounds in the sketch - this.soundArray = []; - // an array of all musical parts in the sketch - this.parts = []; - // file extensions to search for - this.extensions = []; - }; - // create a single instance of the p5Sound / master output for use within this sketch - var p5sound = new Master(); - /** - * Returns a number representing the master amplitude (volume) for sound - * in this sketch. - * - * @method getMasterVolume - * @return {Number} Master amplitude (volume) for sound in this sketch. - * Should be between 0.0 (silence) and 1.0. - */ - p5.prototype.getMasterVolume = function () { - return p5sound.output.gain.value; - }; - /** - *

Scale the output of all sound in this sketch

- * Scaled between 0.0 (silence) and 1.0 (full volume). - * 1.0 is the maximum amplitude of a digital sound, so multiplying - * by greater than 1.0 may cause digital distortion. To - * fade, provide a rampTime parameter. For more - * complex fades, see the Envelope class. - * - * Alternately, you can pass in a signal source such as an - * oscillator to modulate the amplitude with an audio signal. - * - *

How This Works: When you load the p5.sound module, it - * creates a single instance of p5sound. All sound objects in this - * module output to p5sound before reaching your computer's output. - * So if you change the amplitude of p5sound, it impacts all of the - * sound in this module.

- * - *

If no value is provided, returns a Web Audio API Gain Node

- * - * @method masterVolume - * @param {Number|Object} volume Volume (amplitude) between 0.0 - * and 1.0 or modulating signal/oscillator - * @param {Number} [rampTime] Fade for t seconds - * @param {Number} [timeFromNow] Schedule this event to happen at - * t seconds in the future - */ - p5.prototype.masterVolume = function (vol, rampTime, tFromNow) { - if (typeof vol === 'number') { - var rampTime = rampTime || 0; - var tFromNow = tFromNow || 0; - var now = p5sound.audiocontext.currentTime; - var currentVol = p5sound.output.gain.value; - p5sound.output.gain.cancelScheduledValues(now + tFromNow); - p5sound.output.gain.linearRampToValueAtTime(currentVol, now + tFromNow); - p5sound.output.gain.linearRampToValueAtTime(vol, now + tFromNow + rampTime); - } else if (vol) { - vol.connect(p5sound.output.gain); - } else { - // return the Gain Node - return p5sound.output.gain; - } - }; - /** - * `p5.soundOut` is the p5.sound master output. It sends output to - * the destination of this window's web audio context. It contains - * Web Audio API nodes including a dyanmicsCompressor (.limiter), - * and Gain Nodes for .input and .output. - * - * @property {Object} soundOut - */ - p5.prototype.soundOut = p5.soundOut = p5sound; - /** - * a silent connection to the DesinationNode - * which will ensure that anything connected to it - * will not be garbage collected - * - * @private - */ - p5.soundOut._silentNode = p5sound.audiocontext.createGain(); - p5.soundOut._silentNode.gain.value = 0; - p5.soundOut._silentNode.connect(p5sound.audiocontext.destination); - return p5sound; -}(audiocontext); -var helpers; -'use strict'; -helpers = function () { - var p5sound = master; - /** - * @for p5 - */ - /** - * Returns a number representing the sample rate, in samples per second, - * of all sound objects in this audio context. It is determined by the - * sampling rate of your operating system's sound card, and it is not - * currently possile to change. - * It is often 44100, or twice the range of human hearing. - * - * @method sampleRate - * @return {Number} samplerate samples per second - */ - p5.prototype.sampleRate = function () { - return p5sound.audiocontext.sampleRate; - }; - /** - * Returns the closest MIDI note value for - * a given frequency. - * - * @method freqToMidi - * @param {Number} frequency A freqeuncy, for example, the "A" - * above Middle C is 440Hz - * @return {Number} MIDI note value - */ - p5.prototype.freqToMidi = function (f) { - var mathlog2 = Math.log(f / 440) / Math.log(2); - var m = Math.round(12 * mathlog2) + 69; - return m; - }; - /** - * Returns the frequency value of a MIDI note value. - * General MIDI treats notes as integers where middle C - * is 60, C# is 61, D is 62 etc. Useful for generating - * musical frequencies with oscillators. - * - * @method midiToFreq - * @param {Number} midiNote The number of a MIDI note - * @return {Number} Frequency value of the given MIDI note - * @example - *
- * var notes = [60, 64, 67, 72]; - * var i = 0; - * - * function setup() { - * osc = new p5.Oscillator('Triangle'); - * osc.start(); - * frameRate(1); - * } - * - * function draw() { - * var freq = midiToFreq(notes[i]); - * osc.freq(freq); - * i++; - * if (i >= notes.length){ - * i = 0; - * } - * } - *
- */ - var midiToFreq = p5.prototype.midiToFreq = function (m) { - return 440 * Math.pow(2, (m - 69) / 12); - }; - // This method converts ANSI notes specified as a string "C4", "Eb3" to a frequency - var noteToFreq = function (note) { - if (typeof note !== 'string') { - return note; - } - var wholeNotes = { - A: 21, - B: 23, - C: 24, - D: 26, - E: 28, - F: 29, - G: 31 - }; - var value = wholeNotes[note[0].toUpperCase()]; - var octave = ~~note.slice(-1); - value += 12 * (octave - 1); - switch (note[1]) { - case '#': - value += 1; - break; - case 'b': - value -= 1; - break; - default: - break; - } - return midiToFreq(value); - }; - /** - * List the SoundFile formats that you will include. LoadSound - * will search your directory for these extensions, and will pick - * a format that is compatable with the client's web browser. - * Here is a free online file - * converter. - * - * @method soundFormats - * @param {String} [...formats] i.e. 'mp3', 'wav', 'ogg' - * @example - *
- * function preload() { - * // set the global sound formats - * soundFormats('mp3', 'ogg'); - * - * // load either beatbox.mp3, or .ogg, depending on browser - * mySound = loadSound('assets/beatbox.mp3'); - * } - * - * function setup() { - * mySound.play(); - * } - *
- */ - p5.prototype.soundFormats = function () { - // reset extensions array - p5sound.extensions = []; - // add extensions - for (var i = 0; i < arguments.length; i++) { - arguments[i] = arguments[i].toLowerCase(); - if ([ - 'mp3', - 'wav', - 'ogg', - 'm4a', - 'aac' - ].indexOf(arguments[i]) > -1) { - p5sound.extensions.push(arguments[i]); - } else { - throw arguments[i] + ' is not a valid sound format!'; - } - } - }; - p5.prototype.disposeSound = function () { - for (var i = 0; i < p5sound.soundArray.length; i++) { - p5sound.soundArray[i].dispose(); - } - }; - // register removeSound to dispose of p5sound SoundFiles, Convolvers, - // Oscillators etc when sketch ends - p5.prototype.registerMethod('remove', p5.prototype.disposeSound); - p5.prototype._checkFileFormats = function (paths) { - var path; - // if path is a single string, check to see if extension is provided - if (typeof paths === 'string') { - path = paths; - // see if extension is provided - var extTest = path.split('.').pop(); - // if an extension is provided... - if ([ - 'mp3', - 'wav', - 'ogg', - 'm4a', - 'aac' - ].indexOf(extTest) > -1) { - if (p5.prototype.isFileSupported(extTest)) { - path = path; - } else { - var pathSplit = path.split('.'); - var pathCore = pathSplit[pathSplit.length - 1]; - for (var i = 0; i < p5sound.extensions.length; i++) { - var extension = p5sound.extensions[i]; - var supported = p5.prototype.isFileSupported(extension); - if (supported) { - pathCore = ''; - if (pathSplit.length === 2) { - pathCore += pathSplit[0]; - } - for (var i = 1; i <= pathSplit.length - 2; i++) { - var p = pathSplit[i]; - pathCore += '.' + p; - } - path = pathCore += '.'; - path = path += extension; - break; - } - } - } - } else { - for (var i = 0; i < p5sound.extensions.length; i++) { - var extension = p5sound.extensions[i]; - var supported = p5.prototype.isFileSupported(extension); - if (supported) { - path = path + '.' + extension; - break; - } - } - } - } else if (typeof paths === 'object') { - for (var i = 0; i < paths.length; i++) { - var extension = paths[i].split('.').pop(); - var supported = p5.prototype.isFileSupported(extension); - if (supported) { - // ' supported by your browser.'); - path = paths[i]; - break; - } - } - } - return path; - }; - /** - * Used by Osc and Envelope to chain signal math - */ - p5.prototype._mathChain = function (o, math, thisChain, nextChain, type) { - // if this type of math already exists in the chain, replace it - for (var i in o.mathOps) { - if (o.mathOps[i] instanceof type) { - o.mathOps[i].dispose(); - thisChain = i; - if (thisChain < o.mathOps.length - 1) { - nextChain = o.mathOps[i + 1]; - } - } - } - o.mathOps[thisChain - 1].disconnect(); - o.mathOps[thisChain - 1].connect(math); - math.connect(nextChain); - o.mathOps[thisChain] = math; - return o; - }; - // helper methods to convert audio file as .wav format, - // will use as saving .wav file and saving blob object - // Thank you to Matt Diamond's RecorderJS (MIT License) - // https://github.com/mattdiamond/Recorderjs - function convertToWav(audioBuffer) { - var leftChannel, rightChannel; - leftChannel = audioBuffer.getChannelData(0); - // handle mono files - if (audioBuffer.numberOfChannels > 1) { - rightChannel = audioBuffer.getChannelData(1); - } else { - rightChannel = leftChannel; - } - var interleaved = interleave(leftChannel, rightChannel); - // create the buffer and view to create the .WAV file - var buffer = new window.ArrayBuffer(44 + interleaved.length * 2); - var view = new window.DataView(buffer); - // write the WAV container, - // check spec at: https://web.archive.org/web/20171215131933/http://tiny.systems/software/soundProgrammer/WavFormatDocs.pdf - // RIFF chunk descriptor - writeUTFBytes(view, 0, 'RIFF'); - view.setUint32(4, 36 + interleaved.length * 2, true); - writeUTFBytes(view, 8, 'WAVE'); - // FMT sub-chunk - writeUTFBytes(view, 12, 'fmt '); - view.setUint32(16, 16, true); - view.setUint16(20, 1, true); - // stereo (2 channels) - view.setUint16(22, 2, true); - view.setUint32(24, p5sound.audiocontext.sampleRate, true); - view.setUint32(28, p5sound.audiocontext.sampleRate * 4, true); - view.setUint16(32, 4, true); - view.setUint16(34, 16, true); - // data sub-chunk - writeUTFBytes(view, 36, 'data'); - view.setUint32(40, interleaved.length * 2, true); - // write the PCM samples - var lng = interleaved.length; - var index = 44; - var volume = 1; - for (var i = 0; i < lng; i++) { - view.setInt16(index, interleaved[i] * (32767 * volume), true); - index += 2; - } - return view; - } - // helper methods to save waves - function interleave(leftChannel, rightChannel) { - var length = leftChannel.length + rightChannel.length; - var result = new Float32Array(length); - var inputIndex = 0; - for (var index = 0; index < length;) { - result[index++] = leftChannel[inputIndex]; - result[index++] = rightChannel[inputIndex]; - inputIndex++; - } - return result; - } - function writeUTFBytes(view, offset, string) { - var lng = string.length; - for (var i = 0; i < lng; i++) { - view.setUint8(offset + i, string.charCodeAt(i)); - } - } - return { - convertToWav: convertToWav, - midiToFreq: midiToFreq, - noteToFreq: noteToFreq - }; -}(master); -var errorHandler; -'use strict'; -errorHandler = function () { - /* - Helper function to generate an error - with a custom stack trace that points to the sketch - and removes other parts of the stack trace. - - @private - @class customError - @constructor - @param {String} name custom error name - @param {String} errorTrace custom error trace - @param {String} failedPath path to the file that failed to load - @property {String} name custom error name - @property {String} message custom error message - @property {String} stack trace the error back to a line in the user's sketch. - Note: this edits out stack trace within p5.js and p5.sound. - @property {String} originalStack unedited, original stack trace - @property {String} failedPath path to the file that failed to load - @return {Error} returns a custom Error object - */ - var CustomError = function (name, errorTrace, failedPath) { - var err = new Error(); - var tempStack, splitStack; - err.name = name; - err.originalStack = err.stack + errorTrace; - tempStack = err.stack + errorTrace; - err.failedPath = failedPath; - // only print the part of the stack trace that refers to the user code: - var splitStack = tempStack.split('\n'); - splitStack = splitStack.filter(function (ln) { - return !ln.match(/(p5.|native code|globalInit)/g); - }); - err.stack = splitStack.join('\n'); - return err; - }; - return CustomError; -}(); -var panner; -'use strict'; -panner = function () { - var p5sound = master; - var ac = p5sound.audiocontext; - // Stereo panner - // if there is a stereo panner node use it - if (typeof ac.createStereoPanner !== 'undefined') { - p5.Panner = function (input, output) { - this.stereoPanner = this.input = ac.createStereoPanner(); - input.connect(this.stereoPanner); - this.stereoPanner.connect(output); - }; - p5.Panner.prototype.pan = function (val, tFromNow) { - var time = tFromNow || 0; - var t = ac.currentTime + time; - this.stereoPanner.pan.linearRampToValueAtTime(val, t); - }; - //not implemented because stereopanner - //node does not require this and will automatically - //convert single channel or multichannel to stereo. - //tested with single and stereo, not with (>2) multichannel - p5.Panner.prototype.inputChannels = function () { - }; - p5.Panner.prototype.connect = function (obj) { - this.stereoPanner.connect(obj); - }; - p5.Panner.prototype.disconnect = function () { - if (this.stereoPanner) { - this.stereoPanner.disconnect(); - } - }; - } else { - // if there is no createStereoPanner object - // such as in safari 7.1.7 at the time of writing this - // use this method to create the effect - p5.Panner = function (input, output, numInputChannels) { - this.input = ac.createGain(); - input.connect(this.input); - this.left = ac.createGain(); - this.right = ac.createGain(); - this.left.channelInterpretation = 'discrete'; - this.right.channelInterpretation = 'discrete'; - // if input is stereo - if (numInputChannels > 1) { - this.splitter = ac.createChannelSplitter(2); - this.input.connect(this.splitter); - this.splitter.connect(this.left, 1); - this.splitter.connect(this.right, 0); - } else { - this.input.connect(this.left); - this.input.connect(this.right); - } - this.output = ac.createChannelMerger(2); - this.left.connect(this.output, 0, 1); - this.right.connect(this.output, 0, 0); - this.output.connect(output); - }; - // -1 is left, +1 is right - p5.Panner.prototype.pan = function (val, tFromNow) { - var time = tFromNow || 0; - var t = ac.currentTime + time; - var v = (val + 1) / 2; - var rightVal = Math.cos(v * Math.PI / 2); - var leftVal = Math.sin(v * Math.PI / 2); - this.left.gain.linearRampToValueAtTime(leftVal, t); - this.right.gain.linearRampToValueAtTime(rightVal, t); - }; - p5.Panner.prototype.inputChannels = function (numChannels) { - if (numChannels === 1) { - this.input.disconnect(); - this.input.connect(this.left); - this.input.connect(this.right); - } else if (numChannels === 2) { - if (typeof (this.splitter === 'undefined')) { - this.splitter = ac.createChannelSplitter(2); - } - this.input.disconnect(); - this.input.connect(this.splitter); - this.splitter.connect(this.left, 1); - this.splitter.connect(this.right, 0); - } - }; - p5.Panner.prototype.connect = function (obj) { - this.output.connect(obj); - }; - p5.Panner.prototype.disconnect = function () { - if (this.output) { - this.output.disconnect(); - } - }; - } -}(master); -var soundfile; -'use strict'; -soundfile = function () { - var CustomError = errorHandler; - var p5sound = master; - var ac = p5sound.audiocontext; - var midiToFreq = helpers.midiToFreq; - var convertToWav = helpers.convertToWav; - /** - *

SoundFile object with a path to a file.

- * - *

The p5.SoundFile may not be available immediately because - * it loads the file information asynchronously.

- * - *

To do something with the sound as soon as it loads - * pass the name of a function as the second parameter.

- * - *

Only one file path is required. However, audio file formats - * (i.e. mp3, ogg, wav and m4a/aac) are not supported by all - * web browsers. If you want to ensure compatability, instead of a single - * file path, you may include an Array of filepaths, and the browser will - * choose a format that works.

- * - * @class p5.SoundFile - * @constructor - * @param {String|Array} path path to a sound file (String). Optionally, - * you may include multiple file formats in - * an array. Alternately, accepts an object - * from the HTML5 File API, or a p5.File. - * @param {Function} [successCallback] Name of a function to call once file loads - * @param {Function} [errorCallback] Name of a function to call if file fails to - * load. This function will receive an error or - * XMLHttpRequest object with information - * about what went wrong. - * @param {Function} [whileLoadingCallback] Name of a function to call while file - * is loading. That function will - * receive progress of the request to - * load the sound file - * (between 0 and 1) as its first - * parameter. This progress - * does not account for the additional - * time needed to decode the audio data. - * - * @example - *
- * - * function preload() { - * soundFormats('mp3', 'ogg'); - * mySound = loadSound('assets/doorbell.mp3'); - * } - * - * function setup() { - * mySound.setVolume(0.1); - * mySound.play(); - * } - * - *
- */ - p5.SoundFile = function (paths, onload, onerror, whileLoading) { - if (typeof paths !== 'undefined') { - if (typeof paths === 'string' || typeof paths[0] === 'string') { - var path = p5.prototype._checkFileFormats(paths); - this.url = path; - } else if (typeof paths === 'object') { - if (!(window.File && window.FileReader && window.FileList && window.Blob)) { - // The File API isn't supported in this browser - throw 'Unable to load file because the File API is not supported'; - } - } - // if type is a p5.File...get the actual file - if (paths.file) { - paths = paths.file; - } - this.file = paths; - } - // private _onended callback, set by the method: onended(callback) - this._onended = function () { - }; - this._looping = false; - this._playing = false; - this._paused = false; - this._pauseTime = 0; - // cues for scheduling events with addCue() removeCue() - this._cues = []; - this._cueIDCounter = 0; - // position of the most recently played sample - this._lastPos = 0; - this._counterNode = null; - this._scopeNode = null; - // array of sources so that they can all be stopped! - this.bufferSourceNodes = []; - // current source - this.bufferSourceNode = null; - this.buffer = null; - this.playbackRate = 1; - this.input = p5sound.audiocontext.createGain(); - this.output = p5sound.audiocontext.createGain(); - this.reversed = false; - // start and end of playback / loop - this.startTime = 0; - this.endTime = null; - this.pauseTime = 0; - // "restart" would stop playback before retriggering - this.mode = 'sustain'; - // time that playback was started, in millis - this.startMillis = null; - // stereo panning - this.panPosition = 0; - this.panner = new p5.Panner(this.output, p5sound.input, 2); - // it is possible to instantiate a soundfile with no path - if (this.url || this.file) { - this.load(onload, onerror); - } - // add this p5.SoundFile to the soundArray - p5sound.soundArray.push(this); - if (typeof whileLoading === 'function') { - this._whileLoading = whileLoading; - } else { - this._whileLoading = function () { - }; - } - this._onAudioProcess = _onAudioProcess.bind(this); - this._clearOnEnd = _clearOnEnd.bind(this); - }; - // register preload handling of loadSound - p5.prototype.registerPreloadMethod('loadSound', p5.prototype); - /** - * loadSound() returns a new p5.SoundFile from a specified - * path. If called during preload(), the p5.SoundFile will be ready - * to play in time for setup() and draw(). If called outside of - * preload, the p5.SoundFile will not be ready immediately, so - * loadSound accepts a callback as the second parameter. Using a - * - * local server is recommended when loading external files. - * - * @method loadSound - * @param {String|Array} path Path to the sound file, or an array with - * paths to soundfiles in multiple formats - * i.e. ['sound.ogg', 'sound.mp3']. - * Alternately, accepts an object: either - * from the HTML5 File API, or a p5.File. - * @param {Function} [successCallback] Name of a function to call once file loads - * @param {Function} [errorCallback] Name of a function to call if there is - * an error loading the file. - * @param {Function} [whileLoading] Name of a function to call while file is loading. - * This function will receive the percentage loaded - * so far, from 0.0 to 1.0. - * @return {SoundFile} Returns a p5.SoundFile - * @example - *
- * function preload() { - * mySound = loadSound('assets/doorbell.mp3'); - * } - * - * function setup() { - * mySound.setVolume(0.1); - * mySound.play(); - * } - *
- */ - p5.prototype.loadSound = function (path, callback, onerror, whileLoading) { - // if loading locally without a server - if (window.location.origin.indexOf('file://') > -1 && window.cordova === 'undefined') { - window.alert('This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS'); - } - var self = this; - var s = new p5.SoundFile(path, function () { - if (typeof callback === 'function') { - callback.apply(self, arguments); - } - if (typeof self._decrementPreload === 'function') { - self._decrementPreload(); - } - }, onerror, whileLoading); - return s; - }; - /** - * This is a helper function that the p5.SoundFile calls to load - * itself. Accepts a callback (the name of another function) - * as an optional parameter. - * - * @private - * @param {Function} [successCallback] Name of a function to call once file loads - * @param {Function} [errorCallback] Name of a function to call if there is an error - */ - p5.SoundFile.prototype.load = function (callback, errorCallback) { - var self = this; - var errorTrace = new Error().stack; - if (this.url !== undefined && this.url !== '') { - var request = new XMLHttpRequest(); - request.addEventListener('progress', function (evt) { - self._updateProgress(evt); - }, false); - request.open('GET', this.url, true); - request.responseType = 'arraybuffer'; - request.onload = function () { - if (request.status === 200) { - // on sucess loading file: - if (!self.panner) - return; - ac.decodeAudioData(request.response, // success decoding buffer: - function (buff) { - if (!self.panner) - return; - self.buffer = buff; - self.panner.inputChannels(buff.numberOfChannels); - if (callback) { - callback(self); - } - }, // error decoding buffer. "e" is undefined in Chrome 11/22/2015 - function () { - if (!self.panner) - return; - var err = new CustomError('decodeAudioData', errorTrace, self.url); - var msg = 'AudioContext error at decodeAudioData for ' + self.url; - if (errorCallback) { - err.msg = msg; - errorCallback(err); - } else { - console.error(msg + '\n The error stack trace includes: \n' + err.stack); - } - }); - } else { - if (!self.panner) - return; - var err = new CustomError('loadSound', errorTrace, self.url); - var msg = 'Unable to load ' + self.url + '. The request status was: ' + request.status + ' (' + request.statusText + ')'; - if (errorCallback) { - err.message = msg; - errorCallback(err); - } else { - console.error(msg + '\n The error stack trace includes: \n' + err.stack); - } - } - }; - // if there is another error, aside from 404... - request.onerror = function () { - var err = new CustomError('loadSound', errorTrace, self.url); - var msg = 'There was no response from the server at ' + self.url + '. Check the url and internet connectivity.'; - if (errorCallback) { - err.message = msg; - errorCallback(err); - } else { - console.error(msg + '\n The error stack trace includes: \n' + err.stack); - } - }; - request.send(); - } else if (this.file !== undefined) { - var reader = new FileReader(); - reader.onload = function () { - if (!self.panner) - return; - ac.decodeAudioData(reader.result, function (buff) { - if (!self.panner) - return; - self.buffer = buff; - self.panner.inputChannels(buff.numberOfChannels); - if (callback) { - callback(self); - } - }); - }; - reader.onerror = function (e) { - if (!self.panner) - return; - if (onerror) { - onerror(e); - } - }; - reader.readAsArrayBuffer(this.file); - } - }; - // TO DO: use this method to create a loading bar that shows progress during file upload/decode. - p5.SoundFile.prototype._updateProgress = function (evt) { - if (evt.lengthComputable) { - var percentComplete = evt.loaded / evt.total * 0.99; - this._whileLoading(percentComplete, evt); - } else { - // Unable to compute progress information since the total size is unknown - this._whileLoading('size unknown'); - } - }; - /** - * Returns true if the sound file finished loading successfully. - * - * @method isLoaded - * @return {Boolean} - */ - p5.SoundFile.prototype.isLoaded = function () { - if (this.buffer) { - return true; - } else { - return false; - } - }; - /** - * Play the p5.SoundFile - * - * @method play - * @param {Number} [startTime] (optional) schedule playback to start (in seconds from now). - * @param {Number} [rate] (optional) playback rate - * @param {Number} [amp] (optional) amplitude (volume) - * of playback - * @param {Number} [cueStart] (optional) cue start time in seconds - * @param {Number} [duration] (optional) duration of playback in seconds - */ - p5.SoundFile.prototype.play = function (startTime, rate, amp, _cueStart, duration) { - if (!this.output) { - console.warn('SoundFile.play() called after dispose'); - return; - } - var self = this; - var now = p5sound.audiocontext.currentTime; - var cueStart, cueEnd; - var time = startTime || 0; - if (time < 0) { - time = 0; - } - time = time + now; - if (typeof rate !== 'undefined') { - this.rate(rate); - } - if (typeof amp !== 'undefined') { - this.setVolume(amp); - } - // TO DO: if already playing, create array of buffers for easy stop() - if (this.buffer) { - // reset the pause time (if it was paused) - this._pauseTime = 0; - // handle restart playmode - if (this.mode === 'restart' && this.buffer && this.bufferSourceNode) { - this.bufferSourceNode.stop(time); - this._counterNode.stop(time); - } - //dont create another instance if already playing - if (this.mode === 'untildone' && this.isPlaying()) { - return; - } - // make a new source and counter. They are automatically assigned playbackRate and buffer - this.bufferSourceNode = this._initSourceNode(); - // garbage collect counterNode and create a new one - delete this._counterNode; - this._counterNode = this._initCounterNode(); - if (_cueStart) { - if (_cueStart >= 0 && _cueStart < this.buffer.duration) { - // this.startTime = cueStart; - cueStart = _cueStart; - } else { - throw 'start time out of range'; - } - } else { - cueStart = 0; - } - if (duration) { - // if duration is greater than buffer.duration, just play entire file anyway rather than throw an error - duration = duration <= this.buffer.duration - cueStart ? duration : this.buffer.duration; - } - // if it was paused, play at the pause position - if (this._paused) { - this.bufferSourceNode.start(time, this.pauseTime, duration); - this._counterNode.start(time, this.pauseTime, duration); - } else { - this.bufferSourceNode.start(time, cueStart, duration); - this._counterNode.start(time, cueStart, duration); - } - this._playing = true; - this._paused = false; - // add source to sources array, which is used in stopAll() - this.bufferSourceNodes.push(this.bufferSourceNode); - this.bufferSourceNode._arrayIndex = this.bufferSourceNodes.length - 1; - this.bufferSourceNode.addEventListener('ended', this._clearOnEnd); - } else { - throw 'not ready to play file, buffer has yet to load. Try preload()'; - } - // if looping, will restart at original time - this.bufferSourceNode.loop = this._looping; - this._counterNode.loop = this._looping; - if (this._looping === true) { - cueEnd = duration ? duration : cueStart - 1e-15; - this.bufferSourceNode.loopStart = cueStart; - this.bufferSourceNode.loopEnd = cueEnd; - this._counterNode.loopStart = cueStart; - this._counterNode.loopEnd = cueEnd; - } - }; - /** - * p5.SoundFile has two play modes: restart and - * sustain. Play Mode determines what happens to a - * p5.SoundFile if it is triggered while in the middle of playback. - * In sustain mode, playback will continue simultaneous to the - * new playback. In restart mode, play() will stop playback - * and start over. With untilDone, a sound will play only if it's - * not already playing. Sustain is the default mode. - * - * @method playMode - * @param {String} str 'restart' or 'sustain' or 'untilDone' - * @example - *
- * var mySound; - * function preload(){ - * mySound = loadSound('assets/Damscray_DancingTiger.mp3'); - * } - * function mouseClicked() { - * mySound.playMode('sustain'); - * mySound.play(); - * } - * function keyPressed() { - * mySound.playMode('restart'); - * mySound.play(); - * } - * - *
- */ - p5.SoundFile.prototype.playMode = function (str) { - var s = str.toLowerCase(); - // if restart, stop all other sounds from playing - if (s === 'restart' && this.buffer && this.bufferSourceNode) { - for (var i = 0; i < this.bufferSourceNodes.length - 1; i++) { - var now = p5sound.audiocontext.currentTime; - this.bufferSourceNodes[i].stop(now); - } - } - // set play mode to effect future playback - if (s === 'restart' || s === 'sustain' || s === 'untildone') { - this.mode = s; - } else { - throw 'Invalid play mode. Must be either "restart" or "sustain"'; - } - }; - /** - * Pauses a file that is currently playing. If the file is not - * playing, then nothing will happen. - * - * After pausing, .play() will resume from the paused - * position. - * If p5.SoundFile had been set to loop before it was paused, - * it will continue to loop after it is unpaused with .play(). - * - * @method pause - * @param {Number} [startTime] (optional) schedule event to occur - * seconds from now - * @example - *
- * var soundFile; - * - * function preload() { - * soundFormats('ogg', 'mp3'); - * soundFile = loadSound('assets/Damscray_-_Dancing_Tiger_02.mp3'); - * } - * function setup() { - * background(0, 255, 0); - * soundFile.setVolume(0.1); - * soundFile.loop(); - * } - * function keyTyped() { - * if (key == 'p') { - * soundFile.pause(); - * background(255, 0, 0); - * } - * } - * - * function keyReleased() { - * if (key == 'p') { - * soundFile.play(); - * background(0, 255, 0); - * } - * } - * - *
- */ - p5.SoundFile.prototype.pause = function (startTime) { - var now = p5sound.audiocontext.currentTime; - var time = startTime || 0; - var pTime = time + now; - if (this.isPlaying() && this.buffer && this.bufferSourceNode) { - this.pauseTime = this.currentTime(); - this.bufferSourceNode.stop(pTime); - this._counterNode.stop(pTime); - this._paused = true; - this._playing = false; - this._pauseTime = this.currentTime(); - } else { - this._pauseTime = 0; - } - }; - /** - * Loop the p5.SoundFile. Accepts optional parameters to set the - * playback rate, playback volume, loopStart, loopEnd. - * - * @method loop - * @param {Number} [startTime] (optional) schedule event to occur - * seconds from now - * @param {Number} [rate] (optional) playback rate - * @param {Number} [amp] (optional) playback volume - * @param {Number} [cueLoopStart] (optional) startTime in seconds - * @param {Number} [duration] (optional) loop duration in seconds - */ - p5.SoundFile.prototype.loop = function (startTime, rate, amp, loopStart, duration) { - this._looping = true; - this.play(startTime, rate, amp, loopStart, duration); - }; - /** - * Set a p5.SoundFile's looping flag to true or false. If the sound - * is currently playing, this change will take effect when it - * reaches the end of the current playback. - * - * @method setLoop - * @param {Boolean} Boolean set looping to true or false - */ - p5.SoundFile.prototype.setLoop = function (bool) { - if (bool === true) { - this._looping = true; - } else if (bool === false) { - this._looping = false; - } else { - throw 'Error: setLoop accepts either true or false'; - } - if (this.bufferSourceNode) { - this.bufferSourceNode.loop = this._looping; - this._counterNode.loop = this._looping; - } - }; - /** - * Returns 'true' if a p5.SoundFile is currently looping and playing, 'false' if not. - * - * @method isLooping - * @return {Boolean} - */ - p5.SoundFile.prototype.isLooping = function () { - if (!this.bufferSourceNode) { - return false; - } - if (this._looping === true && this.isPlaying() === true) { - return true; - } - return false; - }; - /** - * Returns true if a p5.SoundFile is playing, false if not (i.e. - * paused or stopped). - * - * @method isPlaying - * @return {Boolean} - */ - p5.SoundFile.prototype.isPlaying = function () { - return this._playing; - }; - /** - * Returns true if a p5.SoundFile is paused, false if not (i.e. - * playing or stopped). - * - * @method isPaused - * @return {Boolean} - */ - p5.SoundFile.prototype.isPaused = function () { - return this._paused; - }; - /** - * Stop soundfile playback. - * - * @method stop - * @param {Number} [startTime] (optional) schedule event to occur - * in seconds from now - */ - p5.SoundFile.prototype.stop = function (timeFromNow) { - var time = timeFromNow || 0; - if (this.mode === 'sustain' || this.mode === 'untildone') { - this.stopAll(time); - this._playing = false; - this.pauseTime = 0; - this._paused = false; - } else if (this.buffer && this.bufferSourceNode) { - var now = p5sound.audiocontext.currentTime; - var t = time || 0; - this.pauseTime = 0; - this.bufferSourceNode.stop(now + t); - this._counterNode.stop(now + t); - this._playing = false; - this._paused = false; - } - }; - /** - * Stop playback on all of this soundfile's sources. - * @private - */ - p5.SoundFile.prototype.stopAll = function (_time) { - var now = p5sound.audiocontext.currentTime; - var time = _time || 0; - if (this.buffer && this.bufferSourceNode) { - for (var i in this.bufferSourceNodes) { - const bufferSourceNode = this.bufferSourceNodes[i]; - if (!!bufferSourceNode) { - try { - bufferSourceNode.stop(now + time); - } catch (e) { - } - } - } - this._counterNode.stop(now + time); - this._onended(this); - } - }; - /** - * Multiply the output volume (amplitude) of a sound file - * between 0.0 (silence) and 1.0 (full volume). - * 1.0 is the maximum amplitude of a digital sound, so multiplying - * by greater than 1.0 may cause digital distortion. To - * fade, provide a rampTime parameter. For more - * complex fades, see the Envelope class. - * - * Alternately, you can pass in a signal source such as an - * oscillator to modulate the amplitude with an audio signal. - * - * @method setVolume - * @param {Number|Object} volume Volume (amplitude) between 0.0 - * and 1.0 or modulating signal/oscillator - * @param {Number} [rampTime] Fade for t seconds - * @param {Number} [timeFromNow] Schedule this event to happen at - * t seconds in the future - */ - p5.SoundFile.prototype.setVolume = function (vol, _rampTime, _tFromNow) { - if (typeof vol === 'number') { - var rampTime = _rampTime || 0; - var tFromNow = _tFromNow || 0; - var now = p5sound.audiocontext.currentTime; - var currentVol = this.output.gain.value; - this.output.gain.cancelScheduledValues(now + tFromNow); - this.output.gain.linearRampToValueAtTime(currentVol, now + tFromNow); - this.output.gain.linearRampToValueAtTime(vol, now + tFromNow + rampTime); - } else if (vol) { - vol.connect(this.output.gain); - } else { - // return the Gain Node - return this.output.gain; - } - }; - // same as setVolume, to match Processing Sound - p5.SoundFile.prototype.amp = p5.SoundFile.prototype.setVolume; - // these are the same thing - p5.SoundFile.prototype.fade = p5.SoundFile.prototype.setVolume; - p5.SoundFile.prototype.getVolume = function () { - return this.output.gain.value; - }; - /** - * Set the stereo panning of a p5.sound object to - * a floating point number between -1.0 (left) and 1.0 (right). - * Default is 0.0 (center). - * - * @method pan - * @param {Number} [panValue] Set the stereo panner - * @param {Number} [timeFromNow] schedule this event to happen - * seconds from now - * @example - *
- * - * var ball = {}; - * var soundFile; - * - * function preload() { - * soundFormats('ogg', 'mp3'); - * soundFile = loadSound('assets/beatbox.mp3'); - * } - * - * function draw() { - * background(0); - * ball.x = constrain(mouseX, 0, width); - * ellipse(ball.x, height/2, 20, 20) - * } - * - * function mousePressed(){ - * // map the ball's x location to a panning degree - * // between -1.0 (left) and 1.0 (right) - * var panning = map(ball.x, 0., width,-1.0, 1.0); - * soundFile.pan(panning); - * soundFile.play(); - * } - *
- */ - p5.SoundFile.prototype.pan = function (pval, tFromNow) { - this.panPosition = pval; - this.panner.pan(pval, tFromNow); - }; - /** - * Returns the current stereo pan position (-1.0 to 1.0) - * - * @method getPan - * @return {Number} Returns the stereo pan setting of the Oscillator - * as a number between -1.0 (left) and 1.0 (right). - * 0.0 is center and default. - */ - p5.SoundFile.prototype.getPan = function () { - return this.panPosition; - }; - /** - * Set the playback rate of a sound file. Will change the speed and the pitch. - * Values less than zero will reverse the audio buffer. - * - * @method rate - * @param {Number} [playbackRate] Set the playback rate. 1.0 is normal, - * .5 is half-speed, 2.0 is twice as fast. - * Values less than zero play backwards. - * @example - *
- * var song; - * - * function preload() { - * song = loadSound('assets/Damscray_DancingTiger.mp3'); - * } - * - * function setup() { - * song.loop(); - * } - * - * function draw() { - * background(200); - * - * // Set the rate to a range between 0.1 and 4 - * // Changing the rate also alters the pitch - * var speed = map(mouseY, 0.1, height, 0, 2); - * speed = constrain(speed, 0.01, 4); - * song.rate(speed); - * - * // Draw a circle to show what is going on - * stroke(0); - * fill(51, 100); - * ellipse(mouseX, 100, 48, 48); - * } - * - * - *
- * - */ - p5.SoundFile.prototype.rate = function (playbackRate) { - var reverse = false; - if (typeof playbackRate === 'undefined') { - return this.playbackRate; - } - this.playbackRate = playbackRate; - if (playbackRate === 0) { - playbackRate = 1e-13; - } else if (playbackRate < 0 && !this.reversed) { - playbackRate = Math.abs(playbackRate); - reverse = true; - } else if (playbackRate > 0 && this.reversed) { - reverse = true; - } - if (this.bufferSourceNode) { - var now = p5sound.audiocontext.currentTime; - this.bufferSourceNode.playbackRate.cancelScheduledValues(now); - this.bufferSourceNode.playbackRate.linearRampToValueAtTime(Math.abs(playbackRate), now); - this._counterNode.playbackRate.cancelScheduledValues(now); - this._counterNode.playbackRate.linearRampToValueAtTime(Math.abs(playbackRate), now); - } - if (reverse) { - this.reverseBuffer(); - } - return this.playbackRate; - }; - // TO DO: document this - p5.SoundFile.prototype.setPitch = function (num) { - var newPlaybackRate = midiToFreq(num) / midiToFreq(60); - this.rate(newPlaybackRate); - }; - p5.SoundFile.prototype.getPlaybackRate = function () { - return this.playbackRate; - }; - /** - * Returns the duration of a sound file in seconds. - * - * @method duration - * @return {Number} The duration of the soundFile in seconds. - */ - p5.SoundFile.prototype.duration = function () { - // Return Duration - if (this.buffer) { - return this.buffer.duration; - } else { - return 0; - } - }; - /** - * Return the current position of the p5.SoundFile playhead, in seconds. - * Time is relative to the normal buffer direction, so if `reverseBuffer` - * has been called, currentTime will count backwards. - * - * @method currentTime - * @return {Number} currentTime of the soundFile in seconds. - */ - p5.SoundFile.prototype.currentTime = function () { - return this.reversed ? Math.abs(this._lastPos - this.buffer.length) / ac.sampleRate : this._lastPos / ac.sampleRate; - }; - /** - * Move the playhead of the song to a position, in seconds. Start timing - * and playback duration. If none are given, will reset the file to play - * entire duration from start to finish. - * - * @method jump - * @param {Number} cueTime cueTime of the soundFile in seconds. - * @param {Number} duration duration in seconds. - */ - p5.SoundFile.prototype.jump = function (cueTime, duration) { - if (cueTime < 0 || cueTime > this.buffer.duration) { - throw 'jump time out of range'; - } - if (duration > this.buffer.duration - cueTime) { - throw 'end time out of range'; - } - var cTime = cueTime || 0; - var dur = duration || undefined; - if (this.isPlaying()) { - this.stop(0); - } - this.play(0, this.playbackRate, this.output.gain.value, cTime, dur); - }; - /** - * Return the number of channels in a sound file. - * For example, Mono = 1, Stereo = 2. - * - * @method channels - * @return {Number} [channels] - */ - p5.SoundFile.prototype.channels = function () { - return this.buffer.numberOfChannels; - }; - /** - * Return the sample rate of the sound file. - * - * @method sampleRate - * @return {Number} [sampleRate] - */ - p5.SoundFile.prototype.sampleRate = function () { - return this.buffer.sampleRate; - }; - /** - * Return the number of samples in a sound file. - * Equal to sampleRate * duration. - * - * @method frames - * @return {Number} [sampleCount] - */ - p5.SoundFile.prototype.frames = function () { - return this.buffer.length; - }; - /** - * Returns an array of amplitude peaks in a p5.SoundFile that can be - * used to draw a static waveform. Scans through the p5.SoundFile's - * audio buffer to find the greatest amplitudes. Accepts one - * parameter, 'length', which determines size of the array. - * Larger arrays result in more precise waveform visualizations. - * - * Inspired by Wavesurfer.js. - * - * @method getPeaks - * @params {Number} [length] length is the size of the returned array. - * Larger length results in more precision. - * Defaults to 5*width of the browser window. - * @returns {Float32Array} Array of peaks. - */ - p5.SoundFile.prototype.getPeaks = function (length) { - if (this.buffer) { - // set length to window's width if no length is provided - if (!length) { - length = window.width * 5; - } - if (this.buffer) { - var buffer = this.buffer; - var sampleSize = buffer.length / length; - var sampleStep = ~~(sampleSize / 10) || 1; - var channels = buffer.numberOfChannels; - var peaks = new Float32Array(Math.round(length)); - for (var c = 0; c < channels; c++) { - var chan = buffer.getChannelData(c); - for (var i = 0; i < length; i++) { - var start = ~~(i * sampleSize); - var end = ~~(start + sampleSize); - var max = 0; - for (var j = start; j < end; j += sampleStep) { - var value = chan[j]; - if (value > max) { - max = value; - } else if (-value > max) { - max = value; - } - } - if (c === 0 || Math.abs(max) > peaks[i]) { - peaks[i] = max; - } - } - } - return peaks; - } - } else { - throw 'Cannot load peaks yet, buffer is not loaded'; - } - }; - /** - * Reverses the p5.SoundFile's buffer source. - * Playback must be handled separately (see example). - * - * @method reverseBuffer - * @example - *
- * var drum; - * - * function preload() { - * drum = loadSound('assets/drum.mp3'); - * } - * - * function setup() { - * drum.reverseBuffer(); - * drum.play(); - * } - * - * - *
- */ - p5.SoundFile.prototype.reverseBuffer = function () { - if (this.buffer) { - var currentPos = this._lastPos / ac.sampleRate; - var curVol = this.getVolume(); - this.setVolume(0, 0.001); - const numChannels = this.buffer.numberOfChannels; - for (var i = 0; i < numChannels; i++) { - this.buffer.getChannelData(i).reverse(); - } - // set reversed flag - this.reversed = !this.reversed; - if (currentPos) { - this.jump(this.duration() - currentPos); - } - this.setVolume(curVol, 0.001); - } else { - throw 'SoundFile is not done loading'; - } - }; - /** - * Schedule an event to be called when the soundfile - * reaches the end of a buffer. If the soundfile is - * playing through once, this will be called when it - * ends. If it is looping, it will be called when - * stop is called. - * - * @method onended - * @param {Function} callback function to call when the - * soundfile has ended. - */ - p5.SoundFile.prototype.onended = function (callback) { - this._onended = callback; - return this; - }; - p5.SoundFile.prototype.add = function () { - }; - p5.SoundFile.prototype.dispose = function () { - var now = p5sound.audiocontext.currentTime; - // remove reference to soundfile - var index = p5sound.soundArray.indexOf(this); - p5sound.soundArray.splice(index, 1); - this.stop(now); - if (this.buffer && this.bufferSourceNode) { - for (var i = 0; i < this.bufferSourceNodes.length - 1; i++) { - if (this.bufferSourceNodes[i] !== null) { - this.bufferSourceNodes[i].disconnect(); - try { - this.bufferSourceNodes[i].stop(now); - } catch (e) { - console.warning('no buffer source node to dispose'); - } - this.bufferSourceNodes[i] = null; - } - } - if (this.isPlaying()) { - try { - this._counterNode.stop(now); - } catch (e) { - console.log(e); - } - this._counterNode = null; - } - } - if (this.output) { - this.output.disconnect(); - this.output = null; - } - if (this.panner) { - this.panner.disconnect(); - this.panner = null; - } - }; - /** - * Connects the output of a p5sound object to input of another - * p5.sound object. For example, you may connect a p5.SoundFile to an - * FFT or an Effect. If no parameter is given, it will connect to - * the master output. Most p5sound objects connect to the master - * output when they are created. - * - * @method connect - * @param {Object} [object] Audio object that accepts an input - */ - p5.SoundFile.prototype.connect = function (unit) { - if (!unit) { - this.panner.connect(p5sound.input); - } else { - if (unit.hasOwnProperty('input')) { - this.panner.connect(unit.input); - } else { - this.panner.connect(unit); - } - } - }; - /** - * Disconnects the output of this p5sound object. - * - * @method disconnect - */ - p5.SoundFile.prototype.disconnect = function () { - if (this.panner) { - this.panner.disconnect(); - } - }; - /** - */ - p5.SoundFile.prototype.getLevel = function () { - console.warn('p5.SoundFile.getLevel has been removed from the library. Use p5.Amplitude instead'); - }; - /** - * Reset the source for this SoundFile to a - * new path (URL). - * - * @method setPath - * @param {String} path path to audio file - * @param {Function} callback Callback - */ - p5.SoundFile.prototype.setPath = function (p, callback) { - var path = p5.prototype._checkFileFormats(p); - this.url = path; - this.load(callback); - }; - /** - * Replace the current Audio Buffer with a new Buffer. - * - * @method setBuffer - * @param {Array} buf Array of Float32 Array(s). 2 Float32 Arrays - * will create a stereo source. 1 will create - * a mono source. - */ - p5.SoundFile.prototype.setBuffer = function (buf) { - var numChannels = buf.length; - var size = buf[0].length; - var newBuffer = ac.createBuffer(numChannels, size, ac.sampleRate); - if (!(buf[0] instanceof Float32Array)) { - buf[0] = new Float32Array(buf[0]); - } - for (var channelNum = 0; channelNum < numChannels; channelNum++) { - var channel = newBuffer.getChannelData(channelNum); - channel.set(buf[channelNum]); - } - this.buffer = newBuffer; - // set numbers of channels on input to the panner - this.panner.inputChannels(numChannels); - }; - ////////////////////////////////////////////////// - // script processor node with an empty buffer to help - // keep a sample-accurate position in playback buffer. - // Inspired by Chinmay Pendharkar's technique for Sonoport --> http://bit.ly/1HwdCsV - // Copyright [2015] [Sonoport (Asia) Pte. Ltd.], - // Licensed under the Apache License http://apache.org/licenses/LICENSE-2.0 - //////////////////////////////////////////////////////////////////////////////////// - var _createCounterBuffer = function (buffer) { - const len = buffer.length; - const audioBuf = ac.createBuffer(1, buffer.length, ac.sampleRate); - const arrayBuffer = audioBuf.getChannelData(0); - for (var index = 0; index < len; index++) { - arrayBuffer[index] = index; - } - return audioBuf; - }; - // initialize counterNode, set its initial buffer and playbackRate - p5.SoundFile.prototype._initCounterNode = function () { - var self = this; - var now = ac.currentTime; - var cNode = ac.createBufferSource(); - // dispose of scope node if it already exists - if (self._scopeNode) { - self._scopeNode.disconnect(); - self._scopeNode.removeEventListener('audioprocess', self._onAudioProcess); - delete self._scopeNode; - } - self._scopeNode = ac.createScriptProcessor(256, 1, 1); - // create counter buffer of the same length as self.buffer - cNode.buffer = _createCounterBuffer(self.buffer); - cNode.playbackRate.setValueAtTime(self.playbackRate, now); - cNode.connect(self._scopeNode); - self._scopeNode.connect(p5.soundOut._silentNode); - self._scopeNode.addEventListener('audioprocess', self._onAudioProcess); - return cNode; - }; - // initialize sourceNode, set its initial buffer and playbackRate - p5.SoundFile.prototype._initSourceNode = function () { - var bufferSourceNode = ac.createBufferSource(); - bufferSourceNode.buffer = this.buffer; - bufferSourceNode.playbackRate.value = this.playbackRate; - bufferSourceNode.connect(this.output); - return bufferSourceNode; - }; - /** - * processPeaks returns an array of timestamps where it thinks there is a beat. - * - * This is an asynchronous function that processes the soundfile in an offline audio context, - * and sends the results to your callback function. - * - * The process involves running the soundfile through a lowpass filter, and finding all of the - * peaks above the initial threshold. If the total number of peaks are below the minimum number of peaks, - * it decreases the threshold and re-runs the analysis until either minPeaks or minThreshold are reached. - * - * @method processPeaks - * @param {Function} callback a function to call once this data is returned - * @param {Number} [initThreshold] initial threshold defaults to 0.9 - * @param {Number} [minThreshold] minimum threshold defaults to 0.22 - * @param {Number} [minPeaks] minimum number of peaks defaults to 200 - * @return {Array} Array of timestamped peaks - */ - p5.SoundFile.prototype.processPeaks = function (callback, _initThreshold, _minThreshold, _minPeaks) { - var bufLen = this.buffer.length; - var sampleRate = this.buffer.sampleRate; - var buffer = this.buffer; - var allPeaks = []; - var initialThreshold = _initThreshold || 0.9, threshold = initialThreshold, minThreshold = _minThreshold || 0.22, minPeaks = _minPeaks || 200; - // Create offline context - var offlineContext = new window.OfflineAudioContext(1, bufLen, sampleRate); - // create buffer source - var source = offlineContext.createBufferSource(); - source.buffer = buffer; - // Create filter. TO DO: allow custom setting of filter - var filter = offlineContext.createBiquadFilter(); - filter.type = 'lowpass'; - source.connect(filter); - filter.connect(offlineContext.destination); - // start playing at time:0 - source.start(0); - offlineContext.startRendering(); - // Render the song - // act on the result - offlineContext.oncomplete = function (e) { - if (!self.panner) - return; - var filteredBuffer = e.renderedBuffer; - var bufferData = filteredBuffer.getChannelData(0); - // step 1: - // create Peak instances, add them to array, with strength and sampleIndex - do { - allPeaks = getPeaksAtThreshold(bufferData, threshold); - threshold -= 0.005; - } while (Object.keys(allPeaks).length < minPeaks && threshold >= minThreshold); - // step 2: - // find intervals for each peak in the sampleIndex, add tempos array - var intervalCounts = countIntervalsBetweenNearbyPeaks(allPeaks); - // step 3: find top tempos - var groups = groupNeighborsByTempo(intervalCounts, filteredBuffer.sampleRate); - // sort top intervals - var topTempos = groups.sort(function (intA, intB) { - return intB.count - intA.count; - }).splice(0, 5); - // set this SoundFile's tempo to the top tempo ?? - this.tempo = topTempos[0].tempo; - // step 4: - // new array of peaks at top tempo within a bpmVariance - var bpmVariance = 5; - var tempoPeaks = getPeaksAtTopTempo(allPeaks, topTempos[0].tempo, filteredBuffer.sampleRate, bpmVariance); - callback(tempoPeaks); - }; - }; - // process peaks - var Peak = function (amp, i) { - this.sampleIndex = i; - this.amplitude = amp; - this.tempos = []; - this.intervals = []; - }; - // 1. for processPeaks() Function to identify peaks above a threshold - // returns an array of peak indexes as frames (samples) of the original soundfile - function getPeaksAtThreshold(data, threshold) { - var peaksObj = {}; - var length = data.length; - for (var i = 0; i < length; i++) { - if (data[i] > threshold) { - var amp = data[i]; - var peak = new Peak(amp, i); - peaksObj[i] = peak; - // Skip forward ~ 1/8s to get past this peak. - i += 6000; - } - i++; - } - return peaksObj; - } - // 2. for processPeaks() - function countIntervalsBetweenNearbyPeaks(peaksObj) { - var intervalCounts = []; - var peaksArray = Object.keys(peaksObj).sort(); - for (var index = 0; index < peaksArray.length; index++) { - // find intervals in comparison to nearby peaks - for (var i = 0; i < 10; i++) { - var startPeak = peaksObj[peaksArray[index]]; - var endPeak = peaksObj[peaksArray[index + i]]; - if (startPeak && endPeak) { - var startPos = startPeak.sampleIndex; - var endPos = endPeak.sampleIndex; - var interval = endPos - startPos; - // add a sample interval to the startPeak in the allPeaks array - if (interval > 0) { - startPeak.intervals.push(interval); - } - // tally the intervals and return interval counts - var foundInterval = intervalCounts.some(function (intervalCount) { - if (intervalCount.interval === interval) { - intervalCount.count++; - return intervalCount; - } - }); - // store with JSON like formatting - if (!foundInterval) { - intervalCounts.push({ - interval: interval, - count: 1 - }); - } - } - } - } - return intervalCounts; - } - // 3. for processPeaks --> find tempo - function groupNeighborsByTempo(intervalCounts, sampleRate) { - var tempoCounts = []; - intervalCounts.forEach(function (intervalCount) { - try { - // Convert an interval to tempo - var theoreticalTempo = Math.abs(60 / (intervalCount.interval / sampleRate)); - theoreticalTempo = mapTempo(theoreticalTempo); - var foundTempo = tempoCounts.some(function (tempoCount) { - if (tempoCount.tempo === theoreticalTempo) - return tempoCount.count += intervalCount.count; - }); - if (!foundTempo) { - if (isNaN(theoreticalTempo)) { - return; - } - tempoCounts.push({ - tempo: Math.round(theoreticalTempo), - count: intervalCount.count - }); - } - } catch (e) { - throw e; - } - }); - return tempoCounts; - } - // 4. for processPeaks - get peaks at top tempo - function getPeaksAtTopTempo(peaksObj, tempo, sampleRate, bpmVariance) { - var peaksAtTopTempo = []; - var peaksArray = Object.keys(peaksObj).sort(); - // TO DO: filter out peaks that have the tempo and return - for (var i = 0; i < peaksArray.length; i++) { - var key = peaksArray[i]; - var peak = peaksObj[key]; - for (var j = 0; j < peak.intervals.length; j++) { - var intervalBPM = Math.round(Math.abs(60 / (peak.intervals[j] / sampleRate))); - intervalBPM = mapTempo(intervalBPM); - if (Math.abs(intervalBPM - tempo) < bpmVariance) { - // convert sampleIndex to seconds - peaksAtTopTempo.push(peak.sampleIndex / sampleRate); - } - } - } - // filter out peaks that are very close to each other - peaksAtTopTempo = peaksAtTopTempo.filter(function (peakTime, index, arr) { - var dif = arr[index + 1] - peakTime; - if (dif > 0.01) { - return true; - } - }); - return peaksAtTopTempo; - } - // helper function for processPeaks - function mapTempo(theoreticalTempo) { - // these scenarios create infinite while loop - if (!isFinite(theoreticalTempo) || theoreticalTempo === 0) { - return; - } - // Adjust the tempo to fit within the 90-180 BPM range - while (theoreticalTempo < 90) - theoreticalTempo *= 2; - while (theoreticalTempo > 180 && theoreticalTempo > 90) - theoreticalTempo /= 2; - return theoreticalTempo; - } - /*** SCHEDULE EVENTS ***/ - // Cue inspired by JavaScript setTimeout, and the - // Tone.js Transport Timeline Event, MIT License Yotam Mann 2015 tonejs.org - var Cue = function (callback, time, id, val) { - this.callback = callback; - this.time = time; - this.id = id; - this.val = val; - }; - /** - * Schedule events to trigger every time a MediaElement - * (audio/video) reaches a playback cue point. - * - * Accepts a callback function, a time (in seconds) at which to trigger - * the callback, and an optional parameter for the callback. - * - * Time will be passed as the first parameter to the callback function, - * and param will be the second parameter. - * - * - * @method addCue - * @param {Number} time Time in seconds, relative to this media - * element's playback. For example, to trigger - * an event every time playback reaches two - * seconds, pass in the number 2. This will be - * passed as the first parameter to - * the callback function. - * @param {Function} callback Name of a function that will be - * called at the given time. The callback will - * receive time and (optionally) param as its - * two parameters. - * @param {Object} [value] An object to be passed as the - * second parameter to the - * callback function. - * @return {Number} id ID of this cue, - * useful for removeCue(id) - * @example - *
- * var mySound; - * function preload() { - * mySound = loadSound('assets/beat.mp3'); - * } - * - * function setup() { - * background(0); - * noStroke(); - * fill(255); - * textAlign(CENTER); - * text('click to play', width/2, height/2); - * - * // schedule calls to changeText - * mySound.addCue(0.50, changeText, "hello" ); - * mySound.addCue(1.00, changeText, "p5" ); - * mySound.addCue(1.50, changeText, "what" ); - * mySound.addCue(2.00, changeText, "do" ); - * mySound.addCue(2.50, changeText, "you" ); - * mySound.addCue(3.00, changeText, "want" ); - * mySound.addCue(4.00, changeText, "to" ); - * mySound.addCue(5.00, changeText, "make" ); - * mySound.addCue(6.00, changeText, "?" ); - * } - * - * function changeText(val) { - * background(0); - * text(val, width/2, height/2); - * } - * - * function mouseClicked() { - * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { - * if (mySound.isPlaying() ) { - * mySound.stop(); - * } else { - * mySound.play(); - * } - * } - * } - *
- */ - p5.SoundFile.prototype.addCue = function (time, callback, val) { - var id = this._cueIDCounter++; - var cue = new Cue(callback, time, id, val); - this._cues.push(cue); - // if (!this.elt.ontimeupdate) { - // this.elt.ontimeupdate = this._onTimeUpdate.bind(this); - // } - return id; - }; - /** - * Remove a callback based on its ID. The ID is returned by the - * addCue method. - * - * @method removeCue - * @param {Number} id ID of the cue, as returned by addCue - */ - p5.SoundFile.prototype.removeCue = function (id) { - var cueLength = this._cues.length; - for (var i = 0; i < cueLength; i++) { - var cue = this._cues[i]; - if (cue.id === id) { - this._cues.splice(i, 1); - break; - } - } - if (this._cues.length === 0) { - } - }; - /** - * Remove all of the callbacks that had originally been scheduled - * via the addCue method. - * - * @method clearCues - */ - p5.SoundFile.prototype.clearCues = function () { - this._cues = []; - }; - // private method that checks for cues to be fired if events - // have been scheduled using addCue(callback, time). - p5.SoundFile.prototype._onTimeUpdate = function (position) { - var playbackTime = position / this.buffer.sampleRate; - var cueLength = this._cues.length; - for (var i = 0; i < cueLength; i++) { - var cue = this._cues[i]; - var callbackTime = cue.time; - var val = cue.val; - if (this._prevTime < callbackTime && callbackTime <= playbackTime) { - // pass the scheduled callbackTime as parameter to the callback - cue.callback(val); - } - } - this._prevTime = playbackTime; - }; - /** - * Save a p5.SoundFile as a .wav file. The browser will prompt the user - * to download the file to their device. To upload a file to a server, see - * getBlob - * - * @method save - * @param {String} [fileName] name of the resulting .wav file. - * @example - *
- * var inp, button, mySound; - * var fileName = 'cool'; - * function preload() { - * mySound = loadSound('assets/doorbell.mp3'); - * } - * function setup() { - * btn = createButton('click to save file'); - * btn.position(0, 0); - * btn.mouseClicked(handleMouseClick); - * } - * - * function handleMouseClick() { - * mySound.save(fileName); - * } - *
- */ - p5.SoundFile.prototype.save = function (fileName) { - const dataView = convertToWav(this.buffer); - p5.prototype.saveSound([dataView], fileName, 'wav'); - }; - /** - * This method is useful for sending a SoundFile to a server. It returns the - * .wav-encoded audio data as a "Blob". - * A Blob is a file-like data object that can be uploaded to a server - * with an http request. We'll - * use the `httpDo` options object to send a POST request with some - * specific options: we encode the request as `multipart/form-data`, - * and attach the blob as one of the form values using `FormData`. - * - * - * @method getBlob - * @returns {Blob} A file-like data object - * @example - *
- * - * function preload() { - * mySound = loadSound('assets/doorbell.mp3'); - * } - * - * function setup() { - * noCanvas(); - * var soundBlob = mySound.getBlob(); - * - * // Now we can send the blob to a server... - * var serverUrl = 'https://jsonplaceholder.typicode.com/posts'; - * var httpRequestOptions = { - * method: 'POST', - * body: new FormData().append('soundBlob', soundBlob), - * headers: new Headers({ - * 'Content-Type': 'multipart/form-data' - * }) - * }; - * httpDo(serverUrl, httpRequestOptions); - * - * // We can also create an `ObjectURL` pointing to the Blob - * var blobUrl = URL.createObjectURL(soundBlob); - * - * // The `
- */ - p5.SoundFile.prototype.getBlob = function () { - const dataView = convertToWav(this.buffer); - return new Blob([dataView], { type: 'audio/wav' }); - }; - // event handler to keep track of current position - function _onAudioProcess(processEvent) { - var inputBuffer = processEvent.inputBuffer.getChannelData(0); - this._lastPos = inputBuffer[inputBuffer.length - 1] || 0; - // do any callbacks that have been scheduled - this._onTimeUpdate(self._lastPos); - } - // event handler to remove references to the bufferSourceNode when it is done playing - function _clearOnEnd(e) { - const thisBufferSourceNode = e.target; - const soundFile = this; - // delete this.bufferSourceNode from the sources array when it is done playing: - thisBufferSourceNode._playing = false; - thisBufferSourceNode.removeEventListener('ended', soundFile._clearOnEnd); - // call the onended callback - soundFile._onended(soundFile); - soundFile.bufferSourceNodes.forEach(function (n, i) { - if (n._playing === false) { - soundFile.bufferSourceNodes.splice(i); - } - }); - if (soundFile.bufferSourceNodes.length === 0) { - soundFile._playing = false; - } - } -}(errorHandler, master, helpers, helpers); -var amplitude; -'use strict'; -amplitude = function () { - var p5sound = master; - /** - * Amplitude measures volume between 0.0 and 1.0. - * Listens to all p5sound by default, or use setInput() - * to listen to a specific sound source. Accepts an optional - * smoothing value, which defaults to 0. - * - * @class p5.Amplitude - * @constructor - * @param {Number} [smoothing] between 0.0 and .999 to smooth - * amplitude readings (defaults to 0) - * @example - *
- * var sound, amplitude, cnv; - * - * function preload(){ - * sound = loadSound('assets/beat.mp3'); - * } - * function setup() { - * cnv = createCanvas(100,100); - * amplitude = new p5.Amplitude(); - * - * // start / stop the sound when canvas is clicked - * cnv.mouseClicked(function() { - * if (sound.isPlaying() ){ - * sound.stop(); - * } else { - * sound.play(); - * } - * }); - * } - * function draw() { - * background(0); - * fill(255); - * var level = amplitude.getLevel(); - * var size = map(level, 0, 1, 0, 200); - * ellipse(width/2, height/2, size, size); - * } - * - *
- */ - p5.Amplitude = function (smoothing) { - // Set to 2048 for now. In future iterations, this should be inherited or parsed from p5sound's default - this.bufferSize = 2048; - // set audio context - this.audiocontext = p5sound.audiocontext; - this.processor = this.audiocontext.createScriptProcessor(this.bufferSize, 2, 1); - // for connections - this.input = this.processor; - this.output = this.audiocontext.createGain(); - // smoothing defaults to 0 - this.smoothing = smoothing || 0; - // the variables to return - this.volume = 0; - this.average = 0; - this.stereoVol = [ - 0, - 0 - ]; - this.stereoAvg = [ - 0, - 0 - ]; - this.stereoVolNorm = [ - 0, - 0 - ]; - this.volMax = 0.001; - this.normalize = false; - this.processor.onaudioprocess = this._audioProcess.bind(this); - this.processor.connect(this.output); - this.output.gain.value = 0; - // this may only be necessary because of a Chrome bug - this.output.connect(this.audiocontext.destination); - // connect to p5sound master output by default, unless set by input() - p5sound.meter.connect(this.processor); - // add this p5.SoundFile to the soundArray - p5sound.soundArray.push(this); - }; - /** - * Connects to the p5sound instance (master output) by default. - * Optionally, you can pass in a specific source (i.e. a soundfile). - * - * @method setInput - * @param {soundObject|undefined} [snd] set the sound source - * (optional, defaults to - * master output) - * @param {Number|undefined} [smoothing] a range between 0.0 and 1.0 - * to smooth amplitude readings - * @example - *
- * function preload(){ - * sound1 = loadSound('assets/beat.mp3'); - * sound2 = loadSound('assets/drum.mp3'); - * } - * function setup(){ - * amplitude = new p5.Amplitude(); - * sound1.play(); - * sound2.play(); - * amplitude.setInput(sound2); - * } - * function draw() { - * background(0); - * fill(255); - * var level = amplitude.getLevel(); - * var size = map(level, 0, 1, 0, 200); - * ellipse(width/2, height/2, size, size); - * } - * function mouseClicked(){ - * sound1.stop(); - * sound2.stop(); - * } - *
- */ - p5.Amplitude.prototype.setInput = function (source, smoothing) { - p5sound.meter.disconnect(); - if (smoothing) { - this.smoothing = smoothing; - } - // connect to the master out of p5s instance if no snd is provided - if (source == null) { - p5sound.meter.connect(this.processor); - } else if (source instanceof p5.Signal) { - source.output.connect(this.processor); - } else if (source) { - source.connect(this.processor); - this.processor.disconnect(); - this.processor.connect(this.output); - } else { - p5sound.meter.connect(this.processor); - } - }; - p5.Amplitude.prototype.connect = function (unit) { - if (unit) { - if (unit.hasOwnProperty('input')) { - this.output.connect(unit.input); - } else { - this.output.connect(unit); - } - } else { - this.output.connect(this.panner.connect(p5sound.input)); - } - }; - p5.Amplitude.prototype.disconnect = function () { - if (this.output) { - this.output.disconnect(); - } - }; - // TO DO make this stereo / dependent on # of audio channels - p5.Amplitude.prototype._audioProcess = function (event) { - for (var channel = 0; channel < event.inputBuffer.numberOfChannels; channel++) { - var inputBuffer = event.inputBuffer.getChannelData(channel); - var bufLength = inputBuffer.length; - var total = 0; - var sum = 0; - var x; - for (var i = 0; i < bufLength; i++) { - x = inputBuffer[i]; - if (this.normalize) { - total += Math.max(Math.min(x / this.volMax, 1), -1); - sum += Math.max(Math.min(x / this.volMax, 1), -1) * Math.max(Math.min(x / this.volMax, 1), -1); - } else { - total += x; - sum += x * x; - } - } - var average = total / bufLength; - // ... then take the square root of the sum. - var rms = Math.sqrt(sum / bufLength); - this.stereoVol[channel] = Math.max(rms, this.stereoVol[channel] * this.smoothing); - this.stereoAvg[channel] = Math.max(average, this.stereoVol[channel] * this.smoothing); - this.volMax = Math.max(this.stereoVol[channel], this.volMax); - } - // add volume from all channels together - var self = this; - var volSum = this.stereoVol.reduce(function (previousValue, currentValue, index) { - self.stereoVolNorm[index - 1] = Math.max(Math.min(self.stereoVol[index - 1] / self.volMax, 1), 0); - self.stereoVolNorm[index] = Math.max(Math.min(self.stereoVol[index] / self.volMax, 1), 0); - return previousValue + currentValue; - }); - // volume is average of channels - this.volume = volSum / this.stereoVol.length; - // normalized value - this.volNorm = Math.max(Math.min(this.volume / this.volMax, 1), 0); - }; - /** - * Returns a single Amplitude reading at the moment it is called. - * For continuous readings, run in the draw loop. - * - * @method getLevel - * @param {Number} [channel] Optionally return only channel 0 (left) or 1 (right) - * @return {Number} Amplitude as a number between 0.0 and 1.0 - * @example - *
- * function preload(){ - * sound = loadSound('assets/beat.mp3'); - * } - * function setup() { - * amplitude = new p5.Amplitude(); - * sound.play(); - * } - * function draw() { - * background(0); - * fill(255); - * var level = amplitude.getLevel(); - * var size = map(level, 0, 1, 0, 200); - * ellipse(width/2, height/2, size, size); - * } - * function mouseClicked(){ - * sound.stop(); - * } - *
- */ - p5.Amplitude.prototype.getLevel = function (channel) { - if (typeof channel !== 'undefined') { - if (this.normalize) { - return this.stereoVolNorm[channel]; - } else { - return this.stereoVol[channel]; - } - } else if (this.normalize) { - return this.volNorm; - } else { - return this.volume; - } - }; - /** - * Determines whether the results of Amplitude.process() will be - * Normalized. To normalize, Amplitude finds the difference the - * loudest reading it has processed and the maximum amplitude of - * 1.0. Amplitude adds this difference to all values to produce - * results that will reliably map between 0.0 and 1.0. However, - * if a louder moment occurs, the amount that Normalize adds to - * all the values will change. Accepts an optional boolean parameter - * (true or false). Normalizing is off by default. - * - * @method toggleNormalize - * @param {boolean} [boolean] set normalize to true (1) or false (0) - */ - p5.Amplitude.prototype.toggleNormalize = function (bool) { - if (typeof bool === 'boolean') { - this.normalize = bool; - } else { - this.normalize = !this.normalize; - } - }; - /** - * Smooth Amplitude analysis by averaging with the last analysis - * frame. Off by default. - * - * @method smooth - * @param {Number} set smoothing from 0.0 <= 1 - */ - p5.Amplitude.prototype.smooth = function (s) { - if (s >= 0 && s < 1) { - this.smoothing = s; - } else { - console.log('Error: smoothing must be between 0 and 1'); - } - }; - p5.Amplitude.prototype.dispose = function () { - // remove reference from soundArray - var index = p5sound.soundArray.indexOf(this); - p5sound.soundArray.splice(index, 1); - if (this.input) { - this.input.disconnect(); - delete this.input; - } - if (this.output) { - this.output.disconnect(); - delete this.output; - } - delete this.processor; - }; -}(master); -var fft; -'use strict'; -fft = function () { - var p5sound = master; - /** - *

FFT (Fast Fourier Transform) is an analysis algorithm that - * isolates individual - * - * audio frequencies within a waveform.

- * - *

Once instantiated, a p5.FFT object can return an array based on - * two types of analyses:
โ€ข FFT.waveform() computes - * amplitude values along the time domain. The array indices correspond - * to samples across a brief moment in time. Each value represents - * amplitude of the waveform at that sample of time.
- * โ€ข FFT.analyze() computes amplitude values along the - * frequency domain. The array indices correspond to frequencies (i.e. - * pitches), from the lowest to the highest that humans can hear. Each - * value represents amplitude at that slice of the frequency spectrum. - * Use with getEnergy() to measure amplitude at specific - * frequencies, or within a range of frequencies.

- * - *

FFT analyzes a very short snapshot of sound called a sample - * buffer. It returns an array of amplitude measurements, referred - * to as bins. The array is 1024 bins long by default. - * You can change the bin array length, but it must be a power of 2 - * between 16 and 1024 in order for the FFT algorithm to function - * correctly. The actual size of the FFT buffer is twice the - * number of bins, so given a standard sample rate, the buffer is - * 2048/44100 seconds long.

- * - * - * @class p5.FFT - * @constructor - * @param {Number} [smoothing] Smooth results of Freq Spectrum. - * 0.0 < smoothing < 1.0. - * Defaults to 0.8. - * @param {Number} [bins] Length of resulting array. - * Must be a power of two between - * 16 and 1024. Defaults to 1024. - * @example - *
- * function preload(){ - * sound = loadSound('assets/Damscray_DancingTiger.mp3'); - * } - * - * function setup(){ - * var cnv = createCanvas(100,100); - * cnv.mouseClicked(togglePlay); - * fft = new p5.FFT(); - * sound.amp(0.2); - * } - * - * function draw(){ - * background(0); - * - * var spectrum = fft.analyze(); - * noStroke(); - * fill(0,255,0); // spectrum is green - * for (var i = 0; i< spectrum.length; i++){ - * var x = map(i, 0, spectrum.length, 0, width); - * var h = -height + map(spectrum[i], 0, 255, height, 0); - * rect(x, height, width / spectrum.length, h ) - * } - * - * var waveform = fft.waveform(); - * noFill(); - * beginShape(); - * stroke(255,0,0); // waveform is red - * strokeWeight(1); - * for (var i = 0; i< waveform.length; i++){ - * var x = map(i, 0, waveform.length, 0, width); - * var y = map( waveform[i], -1, 1, 0, height); - * vertex(x,y); - * } - * endShape(); - * - * text('click to play/pause', 4, 10); - * } - * - * // fade sound if mouse is over canvas - * function togglePlay() { - * if (sound.isPlaying()) { - * sound.pause(); - * } else { - * sound.loop(); - * } - * } - *
- */ - p5.FFT = function (smoothing, bins) { - this.input = this.analyser = p5sound.audiocontext.createAnalyser(); - Object.defineProperties(this, { - bins: { - get: function () { - return this.analyser.fftSize / 2; - }, - set: function (b) { - this.analyser.fftSize = b * 2; - }, - configurable: true, - enumerable: true - }, - smoothing: { - get: function () { - return this.analyser.smoothingTimeConstant; - }, - set: function (s) { - this.analyser.smoothingTimeConstant = s; - }, - configurable: true, - enumerable: true - } - }); - // set default smoothing and bins - this.smooth(smoothing); - this.bins = bins || 1024; - // default connections to p5sound fftMeter - p5sound.fftMeter.connect(this.analyser); - this.freqDomain = new Uint8Array(this.analyser.frequencyBinCount); - this.timeDomain = new Uint8Array(this.analyser.frequencyBinCount); - // predefined frequency ranges, these will be tweakable - this.bass = [ - 20, - 140 - ]; - this.lowMid = [ - 140, - 400 - ]; - this.mid = [ - 400, - 2600 - ]; - this.highMid = [ - 2600, - 5200 - ]; - this.treble = [ - 5200, - 14000 - ]; - // add this p5.SoundFile to the soundArray - p5sound.soundArray.push(this); - }; - /** - * Set the input source for the FFT analysis. If no source is - * provided, FFT will analyze all sound in the sketch. - * - * @method setInput - * @param {Object} [source] p5.sound object (or web audio API source node) - */ - p5.FFT.prototype.setInput = function (source) { - if (!source) { - p5sound.fftMeter.connect(this.analyser); - } else { - if (source.output) { - source.output.connect(this.analyser); - } else if (source.connect) { - source.connect(this.analyser); - } - p5sound.fftMeter.disconnect(); - } - }; - /** - * Returns an array of amplitude values (between -1.0 and +1.0) that represent - * a snapshot of amplitude readings in a single buffer. Length will be - * equal to bins (defaults to 1024). Can be used to draw the waveform - * of a sound. - * - * @method waveform - * @param {Number} [bins] Must be a power of two between - * 16 and 1024. Defaults to 1024. - * @param {String} [precision] If any value is provided, will return results - * in a Float32 Array which is more precise - * than a regular array. - * @return {Array} Array Array of amplitude values (-1 to 1) - * over time. Array length = bins. - * - */ - p5.FFT.prototype.waveform = function () { - var bins, mode, normalArray; - for (var i = 0; i < arguments.length; i++) { - if (typeof arguments[i] === 'number') { - bins = arguments[i]; - this.analyser.fftSize = bins * 2; - } - if (typeof arguments[i] === 'string') { - mode = arguments[i]; - } - } - // getFloatFrequencyData doesnt work in Safari as of 5/2015 - if (mode && !p5.prototype._isSafari()) { - timeToFloat(this, this.timeDomain); - this.analyser.getFloatTimeDomainData(this.timeDomain); - return this.timeDomain; - } else { - timeToInt(this, this.timeDomain); - this.analyser.getByteTimeDomainData(this.timeDomain); - var normalArray = new Array(); - for (var j = 0; j < this.timeDomain.length; j++) { - var scaled = p5.prototype.map(this.timeDomain[j], 0, 255, -1, 1); - normalArray.push(scaled); - } - return normalArray; - } - }; - /** - * Returns an array of amplitude values (between 0 and 255) - * across the frequency spectrum. Length is equal to FFT bins - * (1024 by default). The array indices correspond to frequencies - * (i.e. pitches), from the lowest to the highest that humans can - * hear. Each value represents amplitude at that slice of the - * frequency spectrum. Must be called prior to using - * getEnergy(). - * - * @method analyze - * @param {Number} [bins] Must be a power of two between - * 16 and 1024. Defaults to 1024. - * @param {Number} [scale] If "dB," returns decibel - * float measurements between - * -140 and 0 (max). - * Otherwise returns integers from 0-255. - * @return {Array} spectrum Array of energy (amplitude/volume) - * values across the frequency spectrum. - * Lowest energy (silence) = 0, highest - * possible is 255. - * @example - *
- * var osc; - * var fft; - * - * function setup(){ - * createCanvas(100,100); - * osc = new p5.Oscillator(); - * osc.amp(0); - * osc.start(); - * fft = new p5.FFT(); - * } - * - * function draw(){ - * background(0); - * - * var freq = map(mouseX, 0, 800, 20, 15000); - * freq = constrain(freq, 1, 20000); - * osc.freq(freq); - * - * var spectrum = fft.analyze(); - * noStroke(); - * fill(0,255,0); // spectrum is green - * for (var i = 0; i< spectrum.length; i++){ - * var x = map(i, 0, spectrum.length, 0, width); - * var h = -height + map(spectrum[i], 0, 255, height, 0); - * rect(x, height, width / spectrum.length, h ); - * } - * - * stroke(255); - * text('Freq: ' + round(freq)+'Hz', 10, 10); - * - * isMouseOverCanvas(); - * } - * - * // only play sound when mouse is over canvas - * function isMouseOverCanvas() { - * var mX = mouseX, mY = mouseY; - * if (mX > 0 && mX < width && mY < height && mY > 0) { - * osc.amp(0.5, 0.2); - * } else { - * osc.amp(0, 0.2); - * } - * } - *
- * - * - */ - p5.FFT.prototype.analyze = function () { - var mode; - for (var i = 0; i < arguments.length; i++) { - if (typeof arguments[i] === 'number') { - this.bins = arguments[i]; - this.analyser.fftSize = this.bins * 2; - } - if (typeof arguments[i] === 'string') { - mode = arguments[i]; - } - } - if (mode && mode.toLowerCase() === 'db') { - freqToFloat(this); - this.analyser.getFloatFrequencyData(this.freqDomain); - return this.freqDomain; - } else { - freqToInt(this, this.freqDomain); - this.analyser.getByteFrequencyData(this.freqDomain); - var normalArray = Array.apply([], this.freqDomain); - normalArray.length === this.analyser.fftSize; - normalArray.constructor === Array; - return normalArray; - } - }; - /** - * Returns the amount of energy (volume) at a specific - * - * frequency, or the average amount of energy between two - * frequencies. Accepts Number(s) corresponding - * to frequency (in Hz), or a String corresponding to predefined - * frequency ranges ("bass", "lowMid", "mid", "highMid", "treble"). - * Returns a range between 0 (no energy/volume at that frequency) and - * 255 (maximum energy). - * NOTE: analyze() must be called prior to getEnergy(). Analyze() - * tells the FFT to analyze frequency data, and getEnergy() uses - * the results determine the value at a specific frequency or - * range of frequencies.

- * - * @method getEnergy - * @param {Number|String} frequency1 Will return a value representing - * energy at this frequency. Alternately, - * the strings "bass", "lowMid" "mid", - * "highMid", and "treble" will return - * predefined frequency ranges. - * @param {Number} [frequency2] If a second frequency is given, - * will return average amount of - * energy that exists between the - * two frequencies. - * @return {Number} Energy Energy (volume/amplitude) from - * 0 and 255. - * - */ - p5.FFT.prototype.getEnergy = function (frequency1, frequency2) { - var nyquist = p5sound.audiocontext.sampleRate / 2; - if (frequency1 === 'bass') { - frequency1 = this.bass[0]; - frequency2 = this.bass[1]; - } else if (frequency1 === 'lowMid') { - frequency1 = this.lowMid[0]; - frequency2 = this.lowMid[1]; - } else if (frequency1 === 'mid') { - frequency1 = this.mid[0]; - frequency2 = this.mid[1]; - } else if (frequency1 === 'highMid') { - frequency1 = this.highMid[0]; - frequency2 = this.highMid[1]; - } else if (frequency1 === 'treble') { - frequency1 = this.treble[0]; - frequency2 = this.treble[1]; - } - if (typeof frequency1 !== 'number') { - throw 'invalid input for getEnergy()'; - } else if (!frequency2) { - // if only one parameter: - var index = Math.round(frequency1 / nyquist * this.freqDomain.length); - return this.freqDomain[index]; - } else if (frequency1 && frequency2) { - // if two parameters: - // if second is higher than first - if (frequency1 > frequency2) { - var swap = frequency2; - frequency2 = frequency1; - frequency1 = swap; - } - var lowIndex = Math.round(frequency1 / nyquist * this.freqDomain.length); - var highIndex = Math.round(frequency2 / nyquist * this.freqDomain.length); - var total = 0; - var numFrequencies = 0; - // add up all of the values for the frequencies - for (var i = lowIndex; i <= highIndex; i++) { - total += this.freqDomain[i]; - numFrequencies += 1; - } - // divide by total number of frequencies - var toReturn = total / numFrequencies; - return toReturn; - } else { - throw 'invalid input for getEnergy()'; - } - }; - // compatability with v.012, changed to getEnergy in v.0121. Will be deprecated... - p5.FFT.prototype.getFreq = function (freq1, freq2) { - var x = this.getEnergy(freq1, freq2); - return x; - }; - /** - * Returns the - * - * spectral centroid of the input signal. - * NOTE: analyze() must be called prior to getCentroid(). Analyze() - * tells the FFT to analyze frequency data, and getCentroid() uses - * the results determine the spectral centroid.

- * - * @method getCentroid - * @return {Number} Spectral Centroid Frequency Frequency of the spectral centroid in Hz. - * - * - * @example - *
- * - * - *function setup(){ - * cnv = createCanvas(100,100); - * sound = new p5.AudioIn(); - * sound.start(); - * fft = new p5.FFT(); - * sound.connect(fft); - *} - * - * - *function draw(){ - * - * var centroidplot = 0.0; - * var spectralCentroid = 0; - * - * - * background(0); - * stroke(0,255,0); - * var spectrum = fft.analyze(); - * fill(0,255,0); // spectrum is green - * - * //draw the spectrum - * for (var i = 0; i< spectrum.length; i++){ - * var x = map(log(i), 0, log(spectrum.length), 0, width); - * var h = map(spectrum[i], 0, 255, 0, height); - * var rectangle_width = (log(i+1)-log(i))*(width/log(spectrum.length)); - * rect(x, height, rectangle_width, -h ) - * } - - * var nyquist = 22050; - * - * // get the centroid - * spectralCentroid = fft.getCentroid(); - * - * // the mean_freq_index calculation is for the display. - * var mean_freq_index = spectralCentroid/(nyquist/spectrum.length); - * - * centroidplot = map(log(mean_freq_index), 0, log(spectrum.length), 0, width); - * - * - * stroke(255,0,0); // the line showing where the centroid is will be red - * - * rect(centroidplot, 0, width / spectrum.length, height) - * noStroke(); - * fill(255,255,255); // text is white - * text("centroid: ", 10, 20); - * text(round(spectralCentroid)+" Hz", 10, 40); - *} - *
- */ - p5.FFT.prototype.getCentroid = function () { - var nyquist = p5sound.audiocontext.sampleRate / 2; - var cumulative_sum = 0; - var centroid_normalization = 0; - for (var i = 0; i < this.freqDomain.length; i++) { - cumulative_sum += i * this.freqDomain[i]; - centroid_normalization += this.freqDomain[i]; - } - var mean_freq_index = 0; - if (centroid_normalization !== 0) { - mean_freq_index = cumulative_sum / centroid_normalization; - } - var spec_centroid_freq = mean_freq_index * (nyquist / this.freqDomain.length); - return spec_centroid_freq; - }; - /** - * Smooth FFT analysis by averaging with the last analysis frame. - * - * @method smooth - * @param {Number} smoothing 0.0 < smoothing < 1.0. - * Defaults to 0.8. - */ - p5.FFT.prototype.smooth = function (s) { - if (typeof s !== 'undefined') { - this.smoothing = s; - } - return this.smoothing; - }; - p5.FFT.prototype.dispose = function () { - // remove reference from soundArray - var index = p5sound.soundArray.indexOf(this); - p5sound.soundArray.splice(index, 1); - if (this.analyser) { - this.analyser.disconnect(); - delete this.analyser; - } - }; - /** - * Returns an array of average amplitude values for a given number - * of frequency bands split equally. N defaults to 16. - * NOTE: analyze() must be called prior to linAverages(). Analyze() - * tells the FFT to analyze frequency data, and linAverages() uses - * the results to group them into a smaller set of averages.

- * - * @method linAverages - * @param {Number} N Number of returned frequency groups - * @return {Array} linearAverages Array of average amplitude values for each group - */ - p5.FFT.prototype.linAverages = function (N) { - var N = N || 16; - // This prevents undefined, null or 0 values of N - var spectrum = this.freqDomain; - var spectrumLength = spectrum.length; - var spectrumStep = Math.floor(spectrumLength / N); - var linearAverages = new Array(N); - // Keep a second index for the current average group and place the values accordingly - // with only one loop in the spectrum data - var groupIndex = 0; - for (var specIndex = 0; specIndex < spectrumLength; specIndex++) { - linearAverages[groupIndex] = linearAverages[groupIndex] !== undefined ? (linearAverages[groupIndex] + spectrum[specIndex]) / 2 : spectrum[specIndex]; - // Increase the group index when the last element of the group is processed - if (specIndex % spectrumStep === spectrumStep - 1) { - groupIndex++; - } - } - return linearAverages; - }; - /** - * Returns an array of average amplitude values of the spectrum, for a given - * set of - * Octave Bands - * NOTE: analyze() must be called prior to logAverages(). Analyze() - * tells the FFT to analyze frequency data, and logAverages() uses - * the results to group them into a smaller set of averages.

- * - * @method logAverages - * @param {Array} octaveBands Array of Octave Bands objects for grouping - * @return {Array} logAverages Array of average amplitude values for each group - */ - p5.FFT.prototype.logAverages = function (octaveBands) { - var nyquist = p5sound.audiocontext.sampleRate / 2; - var spectrum = this.freqDomain; - var spectrumLength = spectrum.length; - var logAverages = new Array(octaveBands.length); - // Keep a second index for the current average group and place the values accordingly - // With only one loop in the spectrum data - var octaveIndex = 0; - for (var specIndex = 0; specIndex < spectrumLength; specIndex++) { - var specIndexFrequency = Math.round(specIndex * nyquist / this.freqDomain.length); - // Increase the group index if the current frequency exceeds the limits of the band - if (specIndexFrequency > octaveBands[octaveIndex].hi) { - octaveIndex++; - } - logAverages[octaveIndex] = logAverages[octaveIndex] !== undefined ? (logAverages[octaveIndex] + spectrum[specIndex]) / 2 : spectrum[specIndex]; - } - return logAverages; - }; - /** - * Calculates and Returns the 1/N - * Octave Bands - * N defaults to 3 and minimum central frequency to 15.625Hz. - * (1/3 Octave Bands ~= 31 Frequency Bands) - * Setting fCtr0 to a central value of a higher octave will ignore the lower bands - * and produce less frequency groups. - * - * @method getOctaveBands - * @param {Number} N Specifies the 1/N type of generated octave bands - * @param {Number} fCtr0 Minimum central frequency for the lowest band - * @return {Array} octaveBands Array of octave band objects with their bounds - */ - p5.FFT.prototype.getOctaveBands = function (N, fCtr0) { - var N = N || 3; - // Default to 1/3 Octave Bands - var fCtr0 = fCtr0 || 15.625; - // Minimum central frequency, defaults to 15.625Hz - var octaveBands = []; - var lastFrequencyBand = { - lo: fCtr0 / Math.pow(2, 1 / (2 * N)), - ctr: fCtr0, - hi: fCtr0 * Math.pow(2, 1 / (2 * N)) - }; - octaveBands.push(lastFrequencyBand); - var nyquist = p5sound.audiocontext.sampleRate / 2; - while (lastFrequencyBand.hi < nyquist) { - var newFrequencyBand = {}; - newFrequencyBand.lo = lastFrequencyBand.hi; - newFrequencyBand.ctr = lastFrequencyBand.ctr * Math.pow(2, 1 / N); - newFrequencyBand.hi = newFrequencyBand.ctr * Math.pow(2, 1 / (2 * N)); - octaveBands.push(newFrequencyBand); - lastFrequencyBand = newFrequencyBand; - } - return octaveBands; - }; - // helper methods to convert type from float (dB) to int (0-255) - var freqToFloat = function (fft) { - if (fft.freqDomain instanceof Float32Array === false) { - fft.freqDomain = new Float32Array(fft.analyser.frequencyBinCount); - } - }; - var freqToInt = function (fft) { - if (fft.freqDomain instanceof Uint8Array === false) { - fft.freqDomain = new Uint8Array(fft.analyser.frequencyBinCount); - } - }; - var timeToFloat = function (fft) { - if (fft.timeDomain instanceof Float32Array === false) { - fft.timeDomain = new Float32Array(fft.analyser.frequencyBinCount); - } - }; - var timeToInt = function (fft) { - if (fft.timeDomain instanceof Uint8Array === false) { - fft.timeDomain = new Uint8Array(fft.analyser.frequencyBinCount); - } - }; -}(master); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_SignalBase; -Tone_signal_SignalBase = function (Tone) { - 'use strict'; - Tone.SignalBase = function () { - }; - Tone.extend(Tone.SignalBase); - Tone.SignalBase.prototype.connect = function (node, outputNumber, inputNumber) { - if (Tone.Signal && Tone.Signal === node.constructor || Tone.Param && Tone.Param === node.constructor || Tone.TimelineSignal && Tone.TimelineSignal === node.constructor) { - node._param.cancelScheduledValues(0); - node._param.value = 0; - node.overridden = true; - } else if (node instanceof AudioParam) { - node.cancelScheduledValues(0); - node.value = 0; - } - Tone.prototype.connect.call(this, node, outputNumber, inputNumber); - return this; - }; - return Tone.SignalBase; -}(Tone_core_Tone); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_WaveShaper; -Tone_signal_WaveShaper = function (Tone) { - 'use strict'; - Tone.WaveShaper = function (mapping, bufferLen) { - this._shaper = this.input = this.output = this.context.createWaveShaper(); - this._curve = null; - if (Array.isArray(mapping)) { - this.curve = mapping; - } else if (isFinite(mapping) || this.isUndef(mapping)) { - this._curve = new Float32Array(this.defaultArg(mapping, 1024)); - } else if (this.isFunction(mapping)) { - this._curve = new Float32Array(this.defaultArg(bufferLen, 1024)); - this.setMap(mapping); - } - }; - Tone.extend(Tone.WaveShaper, Tone.SignalBase); - Tone.WaveShaper.prototype.setMap = function (mapping) { - for (var i = 0, len = this._curve.length; i < len; i++) { - var normalized = i / (len - 1) * 2 - 1; - this._curve[i] = mapping(normalized, i); - } - this._shaper.curve = this._curve; - return this; - }; - Object.defineProperty(Tone.WaveShaper.prototype, 'curve', { - get: function () { - return this._shaper.curve; - }, - set: function (mapping) { - this._curve = new Float32Array(mapping); - this._shaper.curve = this._curve; - } - }); - Object.defineProperty(Tone.WaveShaper.prototype, 'oversample', { - get: function () { - return this._shaper.oversample; - }, - set: function (oversampling) { - if ([ - 'none', - '2x', - '4x' - ].indexOf(oversampling) !== -1) { - this._shaper.oversample = oversampling; - } else { - throw new RangeError('Tone.WaveShaper: oversampling must be either \'none\', \'2x\', or \'4x\''); - } - } - }); - Tone.WaveShaper.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._shaper.disconnect(); - this._shaper = null; - this._curve = null; - return this; - }; - return Tone.WaveShaper; -}(Tone_core_Tone); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_type_TimeBase; -Tone_type_TimeBase = function (Tone) { - Tone.TimeBase = function (val, units) { - if (this instanceof Tone.TimeBase) { - this._expr = this._noOp; - if (val instanceof Tone.TimeBase) { - this.copy(val); - } else if (!this.isUndef(units) || this.isNumber(val)) { - units = this.defaultArg(units, this._defaultUnits); - var method = this._primaryExpressions[units].method; - this._expr = method.bind(this, val); - } else if (this.isString(val)) { - this.set(val); - } else if (this.isUndef(val)) { - this._expr = this._defaultExpr(); - } - } else { - return new Tone.TimeBase(val, units); - } - }; - Tone.extend(Tone.TimeBase); - Tone.TimeBase.prototype.set = function (exprString) { - this._expr = this._parseExprString(exprString); - return this; - }; - Tone.TimeBase.prototype.clone = function () { - var instance = new this.constructor(); - instance.copy(this); - return instance; - }; - Tone.TimeBase.prototype.copy = function (time) { - var val = time._expr(); - return this.set(val); - }; - Tone.TimeBase.prototype._primaryExpressions = { - 'n': { - regexp: /^(\d+)n/i, - method: function (value) { - value = parseInt(value); - if (value === 1) { - return this._beatsToUnits(this._timeSignature()); - } else { - return this._beatsToUnits(4 / value); - } - } - }, - 't': { - regexp: /^(\d+)t/i, - method: function (value) { - value = parseInt(value); - return this._beatsToUnits(8 / (parseInt(value) * 3)); - } - }, - 'm': { - regexp: /^(\d+)m/i, - method: function (value) { - return this._beatsToUnits(parseInt(value) * this._timeSignature()); - } - }, - 'i': { - regexp: /^(\d+)i/i, - method: function (value) { - return this._ticksToUnits(parseInt(value)); - } - }, - 'hz': { - regexp: /^(\d+(?:\.\d+)?)hz/i, - method: function (value) { - return this._frequencyToUnits(parseFloat(value)); - } - }, - 'tr': { - regexp: /^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/, - method: function (m, q, s) { - var total = 0; - if (m && m !== '0') { - total += this._beatsToUnits(this._timeSignature() * parseFloat(m)); - } - if (q && q !== '0') { - total += this._beatsToUnits(parseFloat(q)); - } - if (s && s !== '0') { - total += this._beatsToUnits(parseFloat(s) / 4); - } - return total; - } - }, - 's': { - regexp: /^(\d+(?:\.\d+)?s)/, - method: function (value) { - return this._secondsToUnits(parseFloat(value)); - } - }, - 'samples': { - regexp: /^(\d+)samples/, - method: function (value) { - return parseInt(value) / this.context.sampleRate; - } - }, - 'default': { - regexp: /^(\d+(?:\.\d+)?)/, - method: function (value) { - return this._primaryExpressions[this._defaultUnits].method.call(this, value); - } - } - }; - Tone.TimeBase.prototype._binaryExpressions = { - '+': { - regexp: /^\+/, - precedence: 2, - method: function (lh, rh) { - return lh() + rh(); - } - }, - '-': { - regexp: /^\-/, - precedence: 2, - method: function (lh, rh) { - return lh() - rh(); - } - }, - '*': { - regexp: /^\*/, - precedence: 1, - method: function (lh, rh) { - return lh() * rh(); - } - }, - '/': { - regexp: /^\//, - precedence: 1, - method: function (lh, rh) { - return lh() / rh(); - } - } - }; - Tone.TimeBase.prototype._unaryExpressions = { - 'neg': { - regexp: /^\-/, - method: function (lh) { - return -lh(); - } - } - }; - Tone.TimeBase.prototype._syntaxGlue = { - '(': { regexp: /^\(/ }, - ')': { regexp: /^\)/ } - }; - Tone.TimeBase.prototype._tokenize = function (expr) { - var position = -1; - var tokens = []; - while (expr.length > 0) { - expr = expr.trim(); - var token = getNextToken(expr, this); - tokens.push(token); - expr = expr.substr(token.value.length); - } - function getNextToken(expr, context) { - var expressions = [ - '_binaryExpressions', - '_unaryExpressions', - '_primaryExpressions', - '_syntaxGlue' - ]; - for (var i = 0; i < expressions.length; i++) { - var group = context[expressions[i]]; - for (var opName in group) { - var op = group[opName]; - var reg = op.regexp; - var match = expr.match(reg); - if (match !== null) { - return { - method: op.method, - precedence: op.precedence, - regexp: op.regexp, - value: match[0] - }; - } - } - } - throw new SyntaxError('Tone.TimeBase: Unexpected token ' + expr); - } - return { - next: function () { - return tokens[++position]; - }, - peek: function () { - return tokens[position + 1]; - } - }; - }; - Tone.TimeBase.prototype._matchGroup = function (token, group, prec) { - var ret = false; - if (!this.isUndef(token)) { - for (var opName in group) { - var op = group[opName]; - if (op.regexp.test(token.value)) { - if (!this.isUndef(prec)) { - if (op.precedence === prec) { - return op; - } - } else { - return op; - } - } - } - } - return ret; - }; - Tone.TimeBase.prototype._parseBinary = function (lexer, precedence) { - if (this.isUndef(precedence)) { - precedence = 2; - } - var expr; - if (precedence < 0) { - expr = this._parseUnary(lexer); - } else { - expr = this._parseBinary(lexer, precedence - 1); - } - var token = lexer.peek(); - while (token && this._matchGroup(token, this._binaryExpressions, precedence)) { - token = lexer.next(); - expr = token.method.bind(this, expr, this._parseBinary(lexer, precedence - 1)); - token = lexer.peek(); - } - return expr; - }; - Tone.TimeBase.prototype._parseUnary = function (lexer) { - var token, expr; - token = lexer.peek(); - var op = this._matchGroup(token, this._unaryExpressions); - if (op) { - token = lexer.next(); - expr = this._parseUnary(lexer); - return op.method.bind(this, expr); - } - return this._parsePrimary(lexer); - }; - Tone.TimeBase.prototype._parsePrimary = function (lexer) { - var token, expr; - token = lexer.peek(); - if (this.isUndef(token)) { - throw new SyntaxError('Tone.TimeBase: Unexpected end of expression'); - } - if (this._matchGroup(token, this._primaryExpressions)) { - token = lexer.next(); - var matching = token.value.match(token.regexp); - return token.method.bind(this, matching[1], matching[2], matching[3]); - } - if (token && token.value === '(') { - lexer.next(); - expr = this._parseBinary(lexer); - token = lexer.next(); - if (!(token && token.value === ')')) { - throw new SyntaxError('Expected )'); - } - return expr; - } - throw new SyntaxError('Tone.TimeBase: Cannot process token ' + token.value); - }; - Tone.TimeBase.prototype._parseExprString = function (exprString) { - if (!this.isString(exprString)) { - exprString = exprString.toString(); - } - var lexer = this._tokenize(exprString); - var tree = this._parseBinary(lexer); - return tree; - }; - Tone.TimeBase.prototype._noOp = function () { - return 0; - }; - Tone.TimeBase.prototype._defaultExpr = function () { - return this._noOp; - }; - Tone.TimeBase.prototype._defaultUnits = 's'; - Tone.TimeBase.prototype._frequencyToUnits = function (freq) { - return 1 / freq; - }; - Tone.TimeBase.prototype._beatsToUnits = function (beats) { - return 60 / Tone.Transport.bpm.value * beats; - }; - Tone.TimeBase.prototype._secondsToUnits = function (seconds) { - return seconds; - }; - Tone.TimeBase.prototype._ticksToUnits = function (ticks) { - return ticks * (this._beatsToUnits(1) / Tone.Transport.PPQ); - }; - Tone.TimeBase.prototype._timeSignature = function () { - return Tone.Transport.timeSignature; - }; - Tone.TimeBase.prototype._pushExpr = function (val, name, units) { - if (!(val instanceof Tone.TimeBase)) { - val = new this.constructor(val, units); - } - this._expr = this._binaryExpressions[name].method.bind(this, this._expr, val._expr); - return this; - }; - Tone.TimeBase.prototype.add = function (val, units) { - return this._pushExpr(val, '+', units); - }; - Tone.TimeBase.prototype.sub = function (val, units) { - return this._pushExpr(val, '-', units); - }; - Tone.TimeBase.prototype.mult = function (val, units) { - return this._pushExpr(val, '*', units); - }; - Tone.TimeBase.prototype.div = function (val, units) { - return this._pushExpr(val, '/', units); - }; - Tone.TimeBase.prototype.valueOf = function () { - return this._expr(); - }; - Tone.TimeBase.prototype.dispose = function () { - this._expr = null; - }; - return Tone.TimeBase; -}(Tone_core_Tone); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_type_Time; -Tone_type_Time = function (Tone) { - Tone.Time = function (val, units) { - if (this instanceof Tone.Time) { - this._plusNow = false; - Tone.TimeBase.call(this, val, units); - } else { - return new Tone.Time(val, units); - } - }; - Tone.extend(Tone.Time, Tone.TimeBase); - Tone.Time.prototype._unaryExpressions = Object.create(Tone.TimeBase.prototype._unaryExpressions); - Tone.Time.prototype._unaryExpressions.quantize = { - regexp: /^@/, - method: function (rh) { - return Tone.Transport.nextSubdivision(rh()); - } - }; - Tone.Time.prototype._unaryExpressions.now = { - regexp: /^\+/, - method: function (lh) { - this._plusNow = true; - return lh(); - } - }; - Tone.Time.prototype.quantize = function (subdiv, percent) { - percent = this.defaultArg(percent, 1); - this._expr = function (expr, subdivision, percent) { - expr = expr(); - subdivision = subdivision.toSeconds(); - var multiple = Math.round(expr / subdivision); - var ideal = multiple * subdivision; - var diff = ideal - expr; - return expr + diff * percent; - }.bind(this, this._expr, new this.constructor(subdiv), percent); - return this; - }; - Tone.Time.prototype.addNow = function () { - this._plusNow = true; - return this; - }; - Tone.Time.prototype._defaultExpr = function () { - this._plusNow = true; - return this._noOp; - }; - Tone.Time.prototype.copy = function (time) { - Tone.TimeBase.prototype.copy.call(this, time); - this._plusNow = time._plusNow; - return this; - }; - Tone.Time.prototype.toNotation = function () { - var time = this.toSeconds(); - var testNotations = [ - '1m', - '2n', - '4n', - '8n', - '16n', - '32n', - '64n', - '128n' - ]; - var retNotation = this._toNotationHelper(time, testNotations); - var testTripletNotations = [ - '1m', - '2n', - '2t', - '4n', - '4t', - '8n', - '8t', - '16n', - '16t', - '32n', - '32t', - '64n', - '64t', - '128n' - ]; - var retTripletNotation = this._toNotationHelper(time, testTripletNotations); - if (retTripletNotation.split('+').length < retNotation.split('+').length) { - return retTripletNotation; - } else { - return retNotation; - } - }; - Tone.Time.prototype._toNotationHelper = function (units, testNotations) { - var threshold = this._notationToUnits(testNotations[testNotations.length - 1]); - var retNotation = ''; - for (var i = 0; i < testNotations.length; i++) { - var notationTime = this._notationToUnits(testNotations[i]); - var multiple = units / notationTime; - var floatingPointError = 0.000001; - if (1 - multiple % 1 < floatingPointError) { - multiple += floatingPointError; - } - multiple = Math.floor(multiple); - if (multiple > 0) { - if (multiple === 1) { - retNotation += testNotations[i]; - } else { - retNotation += multiple.toString() + '*' + testNotations[i]; - } - units -= multiple * notationTime; - if (units < threshold) { - break; - } else { - retNotation += ' + '; - } - } - } - if (retNotation === '') { - retNotation = '0'; - } - return retNotation; - }; - Tone.Time.prototype._notationToUnits = function (notation) { - var primaryExprs = this._primaryExpressions; - var notationExprs = [ - primaryExprs.n, - primaryExprs.t, - primaryExprs.m - ]; - for (var i = 0; i < notationExprs.length; i++) { - var expr = notationExprs[i]; - var match = notation.match(expr.regexp); - if (match) { - return expr.method.call(this, match[1]); - } - } - }; - Tone.Time.prototype.toBarsBeatsSixteenths = function () { - var quarterTime = this._beatsToUnits(1); - var quarters = this.toSeconds() / quarterTime; - var measures = Math.floor(quarters / this._timeSignature()); - var sixteenths = quarters % 1 * 4; - quarters = Math.floor(quarters) % this._timeSignature(); - sixteenths = sixteenths.toString(); - if (sixteenths.length > 3) { - sixteenths = parseFloat(sixteenths).toFixed(3); - } - var progress = [ - measures, - quarters, - sixteenths - ]; - return progress.join(':'); - }; - Tone.Time.prototype.toTicks = function () { - var quarterTime = this._beatsToUnits(1); - var quarters = this.valueOf() / quarterTime; - return Math.floor(quarters * Tone.Transport.PPQ); - }; - Tone.Time.prototype.toSamples = function () { - return this.toSeconds() * this.context.sampleRate; - }; - Tone.Time.prototype.toFrequency = function () { - return 1 / this.toSeconds(); - }; - Tone.Time.prototype.toSeconds = function () { - return this.valueOf(); - }; - Tone.Time.prototype.toMilliseconds = function () { - return this.toSeconds() * 1000; - }; - Tone.Time.prototype.valueOf = function () { - var val = this._expr(); - return val + (this._plusNow ? this.now() : 0); - }; - return Tone.Time; -}(Tone_core_Tone); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_type_Frequency; -Tone_type_Frequency = function (Tone) { - Tone.Frequency = function (val, units) { - if (this instanceof Tone.Frequency) { - Tone.TimeBase.call(this, val, units); - } else { - return new Tone.Frequency(val, units); - } - }; - Tone.extend(Tone.Frequency, Tone.TimeBase); - Tone.Frequency.prototype._primaryExpressions = Object.create(Tone.TimeBase.prototype._primaryExpressions); - Tone.Frequency.prototype._primaryExpressions.midi = { - regexp: /^(\d+(?:\.\d+)?midi)/, - method: function (value) { - return this.midiToFrequency(value); - } - }; - Tone.Frequency.prototype._primaryExpressions.note = { - regexp: /^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i, - method: function (pitch, octave) { - var index = noteToScaleIndex[pitch.toLowerCase()]; - var noteNumber = index + (parseInt(octave) + 1) * 12; - return this.midiToFrequency(noteNumber); - } - }; - Tone.Frequency.prototype._primaryExpressions.tr = { - regexp: /^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/, - method: function (m, q, s) { - var total = 1; - if (m && m !== '0') { - total *= this._beatsToUnits(this._timeSignature() * parseFloat(m)); - } - if (q && q !== '0') { - total *= this._beatsToUnits(parseFloat(q)); - } - if (s && s !== '0') { - total *= this._beatsToUnits(parseFloat(s) / 4); - } - return total; - } - }; - Tone.Frequency.prototype.transpose = function (interval) { - this._expr = function (expr, interval) { - var val = expr(); - return val * this.intervalToFrequencyRatio(interval); - }.bind(this, this._expr, interval); - return this; - }; - Tone.Frequency.prototype.harmonize = function (intervals) { - this._expr = function (expr, intervals) { - var val = expr(); - var ret = []; - for (var i = 0; i < intervals.length; i++) { - ret[i] = val * this.intervalToFrequencyRatio(intervals[i]); - } - return ret; - }.bind(this, this._expr, intervals); - return this; - }; - Tone.Frequency.prototype.toMidi = function () { - return this.frequencyToMidi(this.valueOf()); - }; - Tone.Frequency.prototype.toNote = function () { - var freq = this.valueOf(); - var log = Math.log(freq / Tone.Frequency.A4) / Math.LN2; - var noteNumber = Math.round(12 * log) + 57; - var octave = Math.floor(noteNumber / 12); - if (octave < 0) { - noteNumber += -12 * octave; - } - var noteName = scaleIndexToNote[noteNumber % 12]; - return noteName + octave.toString(); - }; - Tone.Frequency.prototype.toSeconds = function () { - return 1 / this.valueOf(); - }; - Tone.Frequency.prototype.toFrequency = function () { - return this.valueOf(); - }; - Tone.Frequency.prototype.toTicks = function () { - var quarterTime = this._beatsToUnits(1); - var quarters = this.valueOf() / quarterTime; - return Math.floor(quarters * Tone.Transport.PPQ); - }; - Tone.Frequency.prototype._frequencyToUnits = function (freq) { - return freq; - }; - Tone.Frequency.prototype._ticksToUnits = function (ticks) { - return 1 / (ticks * 60 / (Tone.Transport.bpm.value * Tone.Transport.PPQ)); - }; - Tone.Frequency.prototype._beatsToUnits = function (beats) { - return 1 / Tone.TimeBase.prototype._beatsToUnits.call(this, beats); - }; - Tone.Frequency.prototype._secondsToUnits = function (seconds) { - return 1 / seconds; - }; - Tone.Frequency.prototype._defaultUnits = 'hz'; - var noteToScaleIndex = { - 'cbb': -2, - 'cb': -1, - 'c': 0, - 'c#': 1, - 'cx': 2, - 'dbb': 0, - 'db': 1, - 'd': 2, - 'd#': 3, - 'dx': 4, - 'ebb': 2, - 'eb': 3, - 'e': 4, - 'e#': 5, - 'ex': 6, - 'fbb': 3, - 'fb': 4, - 'f': 5, - 'f#': 6, - 'fx': 7, - 'gbb': 5, - 'gb': 6, - 'g': 7, - 'g#': 8, - 'gx': 9, - 'abb': 7, - 'ab': 8, - 'a': 9, - 'a#': 10, - 'ax': 11, - 'bbb': 9, - 'bb': 10, - 'b': 11, - 'b#': 12, - 'bx': 13 - }; - var scaleIndexToNote = [ - 'C', - 'C#', - 'D', - 'D#', - 'E', - 'F', - 'F#', - 'G', - 'G#', - 'A', - 'A#', - 'B' - ]; - Tone.Frequency.A4 = 440; - Tone.Frequency.prototype.midiToFrequency = function (midi) { - return Tone.Frequency.A4 * Math.pow(2, (midi - 69) / 12); - }; - Tone.Frequency.prototype.frequencyToMidi = function (frequency) { - return 69 + 12 * Math.log(frequency / Tone.Frequency.A4) / Math.LN2; - }; - return Tone.Frequency; -}(Tone_core_Tone); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_type_TransportTime; -Tone_type_TransportTime = function (Tone) { - Tone.TransportTime = function (val, units) { - if (this instanceof Tone.TransportTime) { - Tone.Time.call(this, val, units); - } else { - return new Tone.TransportTime(val, units); - } - }; - Tone.extend(Tone.TransportTime, Tone.Time); - Tone.TransportTime.prototype._unaryExpressions = Object.create(Tone.Time.prototype._unaryExpressions); - Tone.TransportTime.prototype._unaryExpressions.quantize = { - regexp: /^@/, - method: function (rh) { - var subdivision = this._secondsToTicks(rh()); - var multiple = Math.ceil(Tone.Transport.ticks / subdivision); - return this._ticksToUnits(multiple * subdivision); - } - }; - Tone.TransportTime.prototype._secondsToTicks = function (seconds) { - var quarterTime = this._beatsToUnits(1); - var quarters = seconds / quarterTime; - return Math.round(quarters * Tone.Transport.PPQ); - }; - Tone.TransportTime.prototype.valueOf = function () { - var val = this._secondsToTicks(this._expr()); - return val + (this._plusNow ? Tone.Transport.ticks : 0); - }; - Tone.TransportTime.prototype.toTicks = function () { - return this.valueOf(); - }; - Tone.TransportTime.prototype.toSeconds = function () { - var val = this._expr(); - return val + (this._plusNow ? Tone.Transport.seconds : 0); - }; - Tone.TransportTime.prototype.toFrequency = function () { - return 1 / this.toSeconds(); - }; - return Tone.TransportTime; -}(Tone_core_Tone); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_type_Type; -Tone_type_Type = function (Tone) { - Tone.Type = { - Default: 'number', - Time: 'time', - Frequency: 'frequency', - TransportTime: 'transportTime', - Ticks: 'ticks', - NormalRange: 'normalRange', - AudioRange: 'audioRange', - Decibels: 'db', - Interval: 'interval', - BPM: 'bpm', - Positive: 'positive', - Cents: 'cents', - Degrees: 'degrees', - MIDI: 'midi', - BarsBeatsSixteenths: 'barsBeatsSixteenths', - Samples: 'samples', - Hertz: 'hertz', - Note: 'note', - Milliseconds: 'milliseconds', - Seconds: 'seconds', - Notation: 'notation' - }; - Tone.prototype.toSeconds = function (time) { - if (this.isNumber(time)) { - return time; - } else if (this.isUndef(time)) { - return this.now(); - } else if (this.isString(time)) { - return new Tone.Time(time).toSeconds(); - } else if (time instanceof Tone.TimeBase) { - return time.toSeconds(); - } - }; - Tone.prototype.toFrequency = function (freq) { - if (this.isNumber(freq)) { - return freq; - } else if (this.isString(freq) || this.isUndef(freq)) { - return new Tone.Frequency(freq).valueOf(); - } else if (freq instanceof Tone.TimeBase) { - return freq.toFrequency(); - } - }; - Tone.prototype.toTicks = function (time) { - if (this.isNumber(time) || this.isString(time)) { - return new Tone.TransportTime(time).toTicks(); - } else if (this.isUndef(time)) { - return Tone.Transport.ticks; - } else if (time instanceof Tone.TimeBase) { - return time.toTicks(); - } - }; - return Tone; -}(Tone_core_Tone, Tone_type_Time, Tone_type_Frequency, Tone_type_TransportTime); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_core_Param; -Tone_core_Param = function (Tone) { - 'use strict'; - Tone.Param = function () { - var options = this.optionsObject(arguments, [ - 'param', - 'units', - 'convert' - ], Tone.Param.defaults); - this._param = this.input = options.param; - this.units = options.units; - this.convert = options.convert; - this.overridden = false; - this._lfo = null; - if (this.isObject(options.lfo)) { - this.value = options.lfo; - } else if (!this.isUndef(options.value)) { - this.value = options.value; - } - }; - Tone.extend(Tone.Param); - Tone.Param.defaults = { - 'units': Tone.Type.Default, - 'convert': true, - 'param': undefined - }; - Object.defineProperty(Tone.Param.prototype, 'value', { - get: function () { - return this._toUnits(this._param.value); - }, - set: function (value) { - if (this.isObject(value)) { - if (this.isUndef(Tone.LFO)) { - throw new Error('Include \'Tone.LFO\' to use an LFO as a Param value.'); - } - if (this._lfo) { - this._lfo.dispose(); - } - this._lfo = new Tone.LFO(value).start(); - this._lfo.connect(this.input); - } else { - var convertedVal = this._fromUnits(value); - this._param.cancelScheduledValues(0); - this._param.value = convertedVal; - } - } - }); - Tone.Param.prototype._fromUnits = function (val) { - if (this.convert || this.isUndef(this.convert)) { - switch (this.units) { - case Tone.Type.Time: - return this.toSeconds(val); - case Tone.Type.Frequency: - return this.toFrequency(val); - case Tone.Type.Decibels: - return this.dbToGain(val); - case Tone.Type.NormalRange: - return Math.min(Math.max(val, 0), 1); - case Tone.Type.AudioRange: - return Math.min(Math.max(val, -1), 1); - case Tone.Type.Positive: - return Math.max(val, 0); - default: - return val; - } - } else { - return val; - } - }; - Tone.Param.prototype._toUnits = function (val) { - if (this.convert || this.isUndef(this.convert)) { - switch (this.units) { - case Tone.Type.Decibels: - return this.gainToDb(val); - default: - return val; - } - } else { - return val; - } - }; - Tone.Param.prototype._minOutput = 0.00001; - Tone.Param.prototype.setValueAtTime = function (value, time) { - value = this._fromUnits(value); - time = this.toSeconds(time); - if (time <= this.now() + this.blockTime) { - this._param.value = value; - } else { - this._param.setValueAtTime(value, time); - } - return this; - }; - Tone.Param.prototype.setRampPoint = function (now) { - now = this.defaultArg(now, this.now()); - var currentVal = this._param.value; - if (currentVal === 0) { - currentVal = this._minOutput; - } - this._param.setValueAtTime(currentVal, now); - return this; - }; - Tone.Param.prototype.linearRampToValueAtTime = function (value, endTime) { - value = this._fromUnits(value); - this._param.linearRampToValueAtTime(value, this.toSeconds(endTime)); - return this; - }; - Tone.Param.prototype.exponentialRampToValueAtTime = function (value, endTime) { - value = this._fromUnits(value); - value = Math.max(this._minOutput, value); - this._param.exponentialRampToValueAtTime(value, this.toSeconds(endTime)); - return this; - }; - Tone.Param.prototype.exponentialRampToValue = function (value, rampTime, startTime) { - startTime = this.toSeconds(startTime); - this.setRampPoint(startTime); - this.exponentialRampToValueAtTime(value, startTime + this.toSeconds(rampTime)); - return this; - }; - Tone.Param.prototype.linearRampToValue = function (value, rampTime, startTime) { - startTime = this.toSeconds(startTime); - this.setRampPoint(startTime); - this.linearRampToValueAtTime(value, startTime + this.toSeconds(rampTime)); - return this; - }; - Tone.Param.prototype.setTargetAtTime = function (value, startTime, timeConstant) { - value = this._fromUnits(value); - value = Math.max(this._minOutput, value); - timeConstant = Math.max(this._minOutput, timeConstant); - this._param.setTargetAtTime(value, this.toSeconds(startTime), timeConstant); - return this; - }; - Tone.Param.prototype.setValueCurveAtTime = function (values, startTime, duration) { - for (var i = 0; i < values.length; i++) { - values[i] = this._fromUnits(values[i]); - } - this._param.setValueCurveAtTime(values, this.toSeconds(startTime), this.toSeconds(duration)); - return this; - }; - Tone.Param.prototype.cancelScheduledValues = function (startTime) { - this._param.cancelScheduledValues(this.toSeconds(startTime)); - return this; - }; - Tone.Param.prototype.rampTo = function (value, rampTime, startTime) { - rampTime = this.defaultArg(rampTime, 0); - if (this.units === Tone.Type.Frequency || this.units === Tone.Type.BPM || this.units === Tone.Type.Decibels) { - this.exponentialRampToValue(value, rampTime, startTime); - } else { - this.linearRampToValue(value, rampTime, startTime); - } - return this; - }; - Object.defineProperty(Tone.Param.prototype, 'lfo', { - get: function () { - return this._lfo; - } - }); - Tone.Param.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._param = null; - if (this._lfo) { - this._lfo.dispose(); - this._lfo = null; - } - return this; - }; - return Tone.Param; -}(Tone_core_Tone); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_core_Gain; -Tone_core_Gain = function (Tone) { - 'use strict'; - if (window.GainNode && !AudioContext.prototype.createGain) { - AudioContext.prototype.createGain = AudioContext.prototype.createGainNode; - } - Tone.Gain = function () { - var options = this.optionsObject(arguments, [ - 'gain', - 'units' - ], Tone.Gain.defaults); - this.input = this.output = this._gainNode = this.context.createGain(); - this.gain = new Tone.Param({ - 'param': this._gainNode.gain, - 'units': options.units, - 'value': options.gain, - 'convert': options.convert - }); - this._readOnly('gain'); - }; - Tone.extend(Tone.Gain); - Tone.Gain.defaults = { - 'gain': 1, - 'convert': true - }; - Tone.Gain.prototype.dispose = function () { - Tone.Param.prototype.dispose.call(this); - this._gainNode.disconnect(); - this._gainNode = null; - this._writable('gain'); - this.gain.dispose(); - this.gain = null; - }; - Tone.prototype.createInsOuts = function (inputs, outputs) { - if (inputs === 1) { - this.input = new Tone.Gain(); - } else if (inputs > 1) { - this.input = new Array(inputs); - } - if (outputs === 1) { - this.output = new Tone.Gain(); - } else if (outputs > 1) { - this.output = new Array(inputs); - } - }; - return Tone.Gain; -}(Tone_core_Tone, Tone_core_Param); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_Signal; -Tone_signal_Signal = function (Tone) { - 'use strict'; - Tone.Signal = function () { - var options = this.optionsObject(arguments, [ - 'value', - 'units' - ], Tone.Signal.defaults); - this.output = this._gain = this.context.createGain(); - options.param = this._gain.gain; - Tone.Param.call(this, options); - this.input = this._param = this._gain.gain; - this.context.getConstant(1).chain(this._gain); - }; - Tone.extend(Tone.Signal, Tone.Param); - Tone.Signal.defaults = { - 'value': 0, - 'units': Tone.Type.Default, - 'convert': true - }; - Tone.Signal.prototype.connect = Tone.SignalBase.prototype.connect; - Tone.Signal.prototype.dispose = function () { - Tone.Param.prototype.dispose.call(this); - this._param = null; - this._gain.disconnect(); - this._gain = null; - return this; - }; - return Tone.Signal; -}(Tone_core_Tone, Tone_signal_WaveShaper, Tone_type_Type, Tone_core_Param); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_Add; -Tone_signal_Add = function (Tone) { - 'use strict'; - Tone.Add = function (value) { - this.createInsOuts(2, 0); - this._sum = this.input[0] = this.input[1] = this.output = new Tone.Gain(); - this._param = this.input[1] = new Tone.Signal(value); - this._param.connect(this._sum); - }; - Tone.extend(Tone.Add, Tone.Signal); - Tone.Add.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._sum.dispose(); - this._sum = null; - this._param.dispose(); - this._param = null; - return this; - }; - return Tone.Add; -}(Tone_core_Tone, Tone_signal_Signal); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_Multiply; -Tone_signal_Multiply = function (Tone) { - 'use strict'; - Tone.Multiply = function (value) { - this.createInsOuts(2, 0); - this._mult = this.input[0] = this.output = new Tone.Gain(); - this._param = this.input[1] = this.output.gain; - this._param.value = this.defaultArg(value, 0); - }; - Tone.extend(Tone.Multiply, Tone.Signal); - Tone.Multiply.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._mult.dispose(); - this._mult = null; - this._param = null; - return this; - }; - return Tone.Multiply; -}(Tone_core_Tone, Tone_signal_Signal); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_Scale; -Tone_signal_Scale = function (Tone) { - 'use strict'; - Tone.Scale = function (outputMin, outputMax) { - this._outputMin = this.defaultArg(outputMin, 0); - this._outputMax = this.defaultArg(outputMax, 1); - this._scale = this.input = new Tone.Multiply(1); - this._add = this.output = new Tone.Add(0); - this._scale.connect(this._add); - this._setRange(); - }; - Tone.extend(Tone.Scale, Tone.SignalBase); - Object.defineProperty(Tone.Scale.prototype, 'min', { - get: function () { - return this._outputMin; - }, - set: function (min) { - this._outputMin = min; - this._setRange(); - } - }); - Object.defineProperty(Tone.Scale.prototype, 'max', { - get: function () { - return this._outputMax; - }, - set: function (max) { - this._outputMax = max; - this._setRange(); - } - }); - Tone.Scale.prototype._setRange = function () { - this._add.value = this._outputMin; - this._scale.value = this._outputMax - this._outputMin; - }; - Tone.Scale.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._add.dispose(); - this._add = null; - this._scale.dispose(); - this._scale = null; - return this; - }; - return Tone.Scale; -}(Tone_core_Tone, Tone_signal_Add, Tone_signal_Multiply); -var signal; -'use strict'; -signal = function () { - // Signal is built with the Tone.js signal by Yotam Mann - // https://github.com/TONEnoTONE/Tone.js/ - var Signal = Tone_signal_Signal; - var Add = Tone_signal_Add; - var Mult = Tone_signal_Multiply; - var Scale = Tone_signal_Scale; - /** - *

p5.Signal is a constant audio-rate signal used by p5.Oscillator - * and p5.Envelope for modulation math.

- * - *

This is necessary because Web Audio is processed on a seprate clock. - * For example, the p5 draw loop runs about 60 times per second. But - * the audio clock must process samples 44100 times per second. If we - * want to add a value to each of those samples, we can't do it in the - * draw loop, but we can do it by adding a constant-rate audio signal.This class mostly functions behind the scenes in p5.sound, and returns - * a Tone.Signal from the Tone.js library by Yotam Mann. - * If you want to work directly with audio signals for modular - * synthesis, check out - * tone.js.

- * - * @class p5.Signal - * @constructor - * @return {Tone.Signal} A Signal object from the Tone.js library - * @example - *
- * function setup() { - * carrier = new p5.Oscillator('sine'); - * carrier.amp(1); // set amplitude - * carrier.freq(220); // set frequency - * carrier.start(); // start oscillating - * - * modulator = new p5.Oscillator('sawtooth'); - * modulator.disconnect(); - * modulator.amp(1); - * modulator.freq(4); - * modulator.start(); - * - * // Modulator's default amplitude range is -1 to 1. - * // Multiply it by -200, so the range is -200 to 200 - * // then add 220 so the range is 20 to 420 - * carrier.freq( modulator.mult(-200).add(220) ); - * } - *
- */ - p5.Signal = function (value) { - var s = new Signal(value); - // p5sound.soundArray.push(s); - return s; - }; - /** - * Fade to value, for smooth transitions - * - * @method fade - * @param {Number} value Value to set this signal - * @param {Number} [secondsFromNow] Length of fade, in seconds from now - */ - Signal.prototype.fade = Signal.prototype.linearRampToValueAtTime; - Mult.prototype.fade = Signal.prototype.fade; - Add.prototype.fade = Signal.prototype.fade; - Scale.prototype.fade = Signal.prototype.fade; - /** - * Connect a p5.sound object or Web Audio node to this - * p5.Signal so that its amplitude values can be scaled. - * - * @method setInput - * @param {Object} input - */ - Signal.prototype.setInput = function (_input) { - _input.connect(this); - }; - Mult.prototype.setInput = Signal.prototype.setInput; - Add.prototype.setInput = Signal.prototype.setInput; - Scale.prototype.setInput = Signal.prototype.setInput; - // signals can add / mult / scale themselves - /** - * Add a constant value to this audio signal, - * and return the resulting audio signal. Does - * not change the value of the original signal, - * instead it returns a new p5.SignalAdd. - * - * @method add - * @param {Number} number - * @return {p5.Signal} object - */ - Signal.prototype.add = function (num) { - var add = new Add(num); - // add.setInput(this); - this.connect(add); - return add; - }; - Mult.prototype.add = Signal.prototype.add; - Add.prototype.add = Signal.prototype.add; - Scale.prototype.add = Signal.prototype.add; - /** - * Multiply this signal by a constant value, - * and return the resulting audio signal. Does - * not change the value of the original signal, - * instead it returns a new p5.SignalMult. - * - * @method mult - * @param {Number} number to multiply - * @return {p5.Signal} object - */ - Signal.prototype.mult = function (num) { - var mult = new Mult(num); - // mult.setInput(this); - this.connect(mult); - return mult; - }; - Mult.prototype.mult = Signal.prototype.mult; - Add.prototype.mult = Signal.prototype.mult; - Scale.prototype.mult = Signal.prototype.mult; - /** - * Scale this signal value to a given range, - * and return the result as an audio signal. Does - * not change the value of the original signal, - * instead it returns a new p5.SignalScale. - * - * @method scale - * @param {Number} number to multiply - * @param {Number} inMin input range minumum - * @param {Number} inMax input range maximum - * @param {Number} outMin input range minumum - * @param {Number} outMax input range maximum - * @return {p5.Signal} object - */ - Signal.prototype.scale = function (inMin, inMax, outMin, outMax) { - var mapOutMin, mapOutMax; - if (arguments.length === 4) { - mapOutMin = p5.prototype.map(outMin, inMin, inMax, 0, 1) - 0.5; - mapOutMax = p5.prototype.map(outMax, inMin, inMax, 0, 1) - 0.5; - } else { - mapOutMin = arguments[0]; - mapOutMax = arguments[1]; - } - var scale = new Scale(mapOutMin, mapOutMax); - this.connect(scale); - return scale; - }; - Mult.prototype.scale = Signal.prototype.scale; - Add.prototype.scale = Signal.prototype.scale; - Scale.prototype.scale = Signal.prototype.scale; -}(Tone_signal_Signal, Tone_signal_Add, Tone_signal_Multiply, Tone_signal_Scale); -var oscillator; -'use strict'; -oscillator = function () { - var p5sound = master; - var Add = Tone_signal_Add; - var Mult = Tone_signal_Multiply; - var Scale = Tone_signal_Scale; - /** - *

Creates a signal that oscillates between -1.0 and 1.0. - * By default, the oscillation takes the form of a sinusoidal - * shape ('sine'). Additional types include 'triangle', - * 'sawtooth' and 'square'. The frequency defaults to - * 440 oscillations per second (440Hz, equal to the pitch of an - * 'A' note).

- * - *

Set the type of oscillation with setType(), or by instantiating a - * specific oscillator: p5.SinOsc, p5.TriOsc, p5.SqrOsc, or p5.SawOsc. - *

- * - * @class p5.Oscillator - * @constructor - * @param {Number} [freq] frequency defaults to 440Hz - * @param {String} [type] type of oscillator. Options: - * 'sine' (default), 'triangle', - * 'sawtooth', 'square' - * @example - *
- * var osc; - * var playing = false; - * - * function setup() { - * backgroundColor = color(255,0,255); - * textAlign(CENTER); - * - * osc = new p5.Oscillator(); - * osc.setType('sine'); - * osc.freq(240); - * osc.amp(0); - * osc.start(); - * } - * - * function draw() { - * background(backgroundColor) - * text('click to play', width/2, height/2); - * } - * - * function mouseClicked() { - * if (mouseX > 0 && mouseX < width && mouseY < height && mouseY > 0) { - * if (!playing) { - * // ramp amplitude to 0.5 over 0.05 seconds - * osc.amp(0.5, 0.05); - * playing = true; - * backgroundColor = color(0,255,255); - * } else { - * // ramp amplitude to 0 over 0.5 seconds - * osc.amp(0, 0.5); - * playing = false; - * backgroundColor = color(255,0,255); - * } - * } - * } - *
- */ - p5.Oscillator = function (freq, type) { - if (typeof freq === 'string') { - var f = type; - type = freq; - freq = f; - } - if (typeof type === 'number') { - var f = type; - type = freq; - freq = f; - } - this.started = false; - // components - this.phaseAmount = undefined; - this.oscillator = p5sound.audiocontext.createOscillator(); - this.f = freq || 440; - // frequency - this.oscillator.type = type || 'sine'; - this.oscillator.frequency.setValueAtTime(this.f, p5sound.audiocontext.currentTime); - // connections - this.output = p5sound.audiocontext.createGain(); - this._freqMods = []; - // modulators connected to this oscillator's frequency - // set default output gain to 0.5 - this.output.gain.value = 0.5; - this.output.gain.setValueAtTime(0.5, p5sound.audiocontext.currentTime); - this.oscillator.connect(this.output); - // stereo panning - this.panPosition = 0; - this.connection = p5sound.input; - // connect to p5sound by default - this.panner = new p5.Panner(this.output, this.connection, 1); - //array of math operation signal chaining - this.mathOps = [this.output]; - // add to the soundArray so we can dispose of the osc later - p5sound.soundArray.push(this); - }; - /** - * Start an oscillator. Accepts an optional parameter to - * determine how long (in seconds from now) until the - * oscillator starts. - * - * @method start - * @param {Number} [time] startTime in seconds from now. - * @param {Number} [frequency] frequency in Hz. - */ - p5.Oscillator.prototype.start = function (time, f) { - if (this.started) { - var now = p5sound.audiocontext.currentTime; - this.stop(now); - } - if (!this.started) { - var freq = f || this.f; - var type = this.oscillator.type; - // set old osc free to be garbage collected (memory) - if (this.oscillator) { - this.oscillator.disconnect(); - delete this.oscillator; - } - // var detune = this.oscillator.frequency.value; - this.oscillator = p5sound.audiocontext.createOscillator(); - this.oscillator.frequency.value = Math.abs(freq); - this.oscillator.type = type; - // this.oscillator.detune.value = detune; - this.oscillator.connect(this.output); - time = time || 0; - this.oscillator.start(time + p5sound.audiocontext.currentTime); - this.freqNode = this.oscillator.frequency; - // if other oscillators are already connected to this osc's freq - for (var i in this._freqMods) { - if (typeof this._freqMods[i].connect !== 'undefined') { - this._freqMods[i].connect(this.oscillator.frequency); - } - } - this.started = true; - } - }; - /** - * Stop an oscillator. Accepts an optional parameter - * to determine how long (in seconds from now) until the - * oscillator stops. - * - * @method stop - * @param {Number} secondsFromNow Time, in seconds from now. - */ - p5.Oscillator.prototype.stop = function (time) { - if (this.started) { - var t = time || 0; - var now = p5sound.audiocontext.currentTime; - this.oscillator.stop(t + now); - this.started = false; - } - }; - /** - * Set the amplitude between 0 and 1.0. Or, pass in an object - * such as an oscillator to modulate amplitude with an audio signal. - * - * @method amp - * @param {Number|Object} vol between 0 and 1.0 - * or a modulating signal/oscillator - * @param {Number} [rampTime] create a fade that lasts rampTime - * @param {Number} [timeFromNow] schedule this event to happen - * seconds from now - * @return {AudioParam} gain If no value is provided, - * returns the Web Audio API - * AudioParam that controls - * this oscillator's - * gain/amplitude/volume) - */ - p5.Oscillator.prototype.amp = function (vol, rampTime, tFromNow) { - var self = this; - if (typeof vol === 'number') { - var rampTime = rampTime || 0; - var tFromNow = tFromNow || 0; - var now = p5sound.audiocontext.currentTime; - this.output.gain.linearRampToValueAtTime(vol, now + tFromNow + rampTime); - } else if (vol) { - vol.connect(self.output.gain); - } else { - // return the Gain Node - return this.output.gain; - } - }; - // these are now the same thing - p5.Oscillator.prototype.fade = p5.Oscillator.prototype.amp; - p5.Oscillator.prototype.getAmp = function () { - return this.output.gain.value; - }; - /** - * Set frequency of an oscillator to a value. Or, pass in an object - * such as an oscillator to modulate the frequency with an audio signal. - * - * @method freq - * @param {Number|Object} Frequency Frequency in Hz - * or modulating signal/oscillator - * @param {Number} [rampTime] Ramp time (in seconds) - * @param {Number} [timeFromNow] Schedule this event to happen - * at x seconds from now - * @return {AudioParam} Frequency If no value is provided, - * returns the Web Audio API - * AudioParam that controls - * this oscillator's frequency - * @example - *
- * var osc = new p5.Oscillator(300); - * osc.start(); - * osc.freq(40, 10); - *
- */ - p5.Oscillator.prototype.freq = function (val, rampTime, tFromNow) { - if (typeof val === 'number' && !isNaN(val)) { - this.f = val; - var now = p5sound.audiocontext.currentTime; - var rampTime = rampTime || 0; - var tFromNow = tFromNow || 0; - var t = now + tFromNow + rampTime; - // var currentFreq = this.oscillator.frequency.value; - // this.oscillator.frequency.cancelScheduledValues(now); - if (rampTime === 0) { - this.oscillator.frequency.setValueAtTime(val, tFromNow + now); - } else { - if (val > 0) { - this.oscillator.frequency.exponentialRampToValueAtTime(val, tFromNow + rampTime + now); - } else { - this.oscillator.frequency.linearRampToValueAtTime(val, tFromNow + rampTime + now); - } - } - // reset phase if oscillator has a phase - if (this.phaseAmount) { - this.phase(this.phaseAmount); - } - } else if (val) { - if (val.output) { - val = val.output; - } - val.connect(this.oscillator.frequency); - // keep track of what is modulating this param - // so it can be re-connected if - this._freqMods.push(val); - } else { - // return the Frequency Node - return this.oscillator.frequency; - } - }; - p5.Oscillator.prototype.getFreq = function () { - return this.oscillator.frequency.value; - }; - /** - * Set type to 'sine', 'triangle', 'sawtooth' or 'square'. - * - * @method setType - * @param {String} type 'sine', 'triangle', 'sawtooth' or 'square'. - */ - p5.Oscillator.prototype.setType = function (type) { - this.oscillator.type = type; - }; - p5.Oscillator.prototype.getType = function () { - return this.oscillator.type; - }; - /** - * Connect to a p5.sound / Web Audio object. - * - * @method connect - * @param {Object} unit A p5.sound or Web Audio object - */ - p5.Oscillator.prototype.connect = function (unit) { - if (!unit) { - this.panner.connect(p5sound.input); - } else if (unit.hasOwnProperty('input')) { - this.panner.connect(unit.input); - this.connection = unit.input; - } else { - this.panner.connect(unit); - this.connection = unit; - } - }; - /** - * Disconnect all outputs - * - * @method disconnect - */ - p5.Oscillator.prototype.disconnect = function () { - if (this.output) { - this.output.disconnect(); - } - if (this.panner) { - this.panner.disconnect(); - if (this.output) { - this.output.connect(this.panner); - } - } - this.oscMods = []; - }; - /** - * Pan between Left (-1) and Right (1) - * - * @method pan - * @param {Number} panning Number between -1 and 1 - * @param {Number} timeFromNow schedule this event to happen - * seconds from now - */ - p5.Oscillator.prototype.pan = function (pval, tFromNow) { - this.panPosition = pval; - this.panner.pan(pval, tFromNow); - }; - p5.Oscillator.prototype.getPan = function () { - return this.panPosition; - }; - // get rid of the oscillator - p5.Oscillator.prototype.dispose = function () { - // remove reference from soundArray - var index = p5sound.soundArray.indexOf(this); - p5sound.soundArray.splice(index, 1); - if (this.oscillator) { - var now = p5sound.audiocontext.currentTime; - this.stop(now); - this.disconnect(); - this.panner = null; - this.oscillator = null; - } - // if it is a Pulse - if (this.osc2) { - this.osc2.dispose(); - } - }; - /** - * Set the phase of an oscillator between 0.0 and 1.0. - * In this implementation, phase is a delay time - * based on the oscillator's current frequency. - * - * @method phase - * @param {Number} phase float between 0.0 and 1.0 - */ - p5.Oscillator.prototype.phase = function (p) { - var delayAmt = p5.prototype.map(p, 0, 1, 0, 1 / this.f); - var now = p5sound.audiocontext.currentTime; - this.phaseAmount = p; - if (!this.dNode) { - // create a delay node - this.dNode = p5sound.audiocontext.createDelay(); - // put the delay node in between output and panner - this.oscillator.disconnect(); - this.oscillator.connect(this.dNode); - this.dNode.connect(this.output); - } - // set delay time to match phase: - this.dNode.delayTime.setValueAtTime(delayAmt, now); - }; - // ========================== // - // SIGNAL MATH FOR MODULATION // - // ========================== // - // return sigChain(this, scale, thisChain, nextChain, Scale); - var sigChain = function (o, mathObj, thisChain, nextChain, type) { - var chainSource = o.oscillator; - // if this type of math already exists in the chain, replace it - for (var i in o.mathOps) { - if (o.mathOps[i] instanceof type) { - chainSource.disconnect(); - o.mathOps[i].dispose(); - thisChain = i; - // assume nextChain is output gain node unless... - if (thisChain < o.mathOps.length - 2) { - nextChain = o.mathOps[i + 1]; - } - } - } - if (thisChain === o.mathOps.length - 1) { - o.mathOps.push(nextChain); - } - // assume source is the oscillator unless i > 0 - if (i > 0) { - chainSource = o.mathOps[i - 1]; - } - chainSource.disconnect(); - chainSource.connect(mathObj); - mathObj.connect(nextChain); - o.mathOps[thisChain] = mathObj; - return o; - }; - /** - * Add a value to the p5.Oscillator's output amplitude, - * and return the oscillator. Calling this method again - * will override the initial add() with a new value. - * - * @method add - * @param {Number} number Constant number to add - * @return {p5.Oscillator} Oscillator Returns this oscillator - * with scaled output - * - */ - p5.Oscillator.prototype.add = function (num) { - var add = new Add(num); - var thisChain = this.mathOps.length - 1; - var nextChain = this.output; - return sigChain(this, add, thisChain, nextChain, Add); - }; - /** - * Multiply the p5.Oscillator's output amplitude - * by a fixed value (i.e. turn it up!). Calling this method - * again will override the initial mult() with a new value. - * - * @method mult - * @param {Number} number Constant number to multiply - * @return {p5.Oscillator} Oscillator Returns this oscillator - * with multiplied output - */ - p5.Oscillator.prototype.mult = function (num) { - var mult = new Mult(num); - var thisChain = this.mathOps.length - 1; - var nextChain = this.output; - return sigChain(this, mult, thisChain, nextChain, Mult); - }; - /** - * Scale this oscillator's amplitude values to a given - * range, and return the oscillator. Calling this method - * again will override the initial scale() with new values. - * - * @method scale - * @param {Number} inMin input range minumum - * @param {Number} inMax input range maximum - * @param {Number} outMin input range minumum - * @param {Number} outMax input range maximum - * @return {p5.Oscillator} Oscillator Returns this oscillator - * with scaled output - */ - p5.Oscillator.prototype.scale = function (inMin, inMax, outMin, outMax) { - var mapOutMin, mapOutMax; - if (arguments.length === 4) { - mapOutMin = p5.prototype.map(outMin, inMin, inMax, 0, 1) - 0.5; - mapOutMax = p5.prototype.map(outMax, inMin, inMax, 0, 1) - 0.5; - } else { - mapOutMin = arguments[0]; - mapOutMax = arguments[1]; - } - var scale = new Scale(mapOutMin, mapOutMax); - var thisChain = this.mathOps.length - 1; - var nextChain = this.output; - return sigChain(this, scale, thisChain, nextChain, Scale); - }; - // ============================== // - // SinOsc, TriOsc, SqrOsc, SawOsc // - // ============================== // - /** - * Constructor: new p5.SinOsc(). - * This creates a Sine Wave Oscillator and is - * equivalent to new p5.Oscillator('sine') - * or creating a p5.Oscillator and then calling - * its method setType('sine'). - * See p5.Oscillator for methods. - * - * @class p5.SinOsc - * @constructor - * @extends p5.Oscillator - * @param {Number} [freq] Set the frequency - */ - p5.SinOsc = function (freq) { - p5.Oscillator.call(this, freq, 'sine'); - }; - p5.SinOsc.prototype = Object.create(p5.Oscillator.prototype); - /** - * Constructor: new p5.TriOsc(). - * This creates a Triangle Wave Oscillator and is - * equivalent to new p5.Oscillator('triangle') - * or creating a p5.Oscillator and then calling - * its method setType('triangle'). - * See p5.Oscillator for methods. - * - * @class p5.TriOsc - * @constructor - * @extends p5.Oscillator - * @param {Number} [freq] Set the frequency - */ - p5.TriOsc = function (freq) { - p5.Oscillator.call(this, freq, 'triangle'); - }; - p5.TriOsc.prototype = Object.create(p5.Oscillator.prototype); - /** - * Constructor: new p5.SawOsc(). - * This creates a SawTooth Wave Oscillator and is - * equivalent to new p5.Oscillator('sawtooth') - * or creating a p5.Oscillator and then calling - * its method setType('sawtooth'). - * See p5.Oscillator for methods. - * - * @class p5.SawOsc - * @constructor - * @extends p5.Oscillator - * @param {Number} [freq] Set the frequency - */ - p5.SawOsc = function (freq) { - p5.Oscillator.call(this, freq, 'sawtooth'); - }; - p5.SawOsc.prototype = Object.create(p5.Oscillator.prototype); - /** - * Constructor: new p5.SqrOsc(). - * This creates a Square Wave Oscillator and is - * equivalent to new p5.Oscillator('square') - * or creating a p5.Oscillator and then calling - * its method setType('square'). - * See p5.Oscillator for methods. - * - * @class p5.SqrOsc - * @constructor - * @extends p5.Oscillator - * @param {Number} [freq] Set the frequency - */ - p5.SqrOsc = function (freq) { - p5.Oscillator.call(this, freq, 'square'); - }; - p5.SqrOsc.prototype = Object.create(p5.Oscillator.prototype); -}(master, Tone_signal_Add, Tone_signal_Multiply, Tone_signal_Scale); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_core_Timeline; -Tone_core_Timeline = function (Tone) { - 'use strict'; - Tone.Timeline = function () { - var options = this.optionsObject(arguments, ['memory'], Tone.Timeline.defaults); - this._timeline = []; - this._toRemove = []; - this._iterating = false; - this.memory = options.memory; - }; - Tone.extend(Tone.Timeline); - Tone.Timeline.defaults = { 'memory': Infinity }; - Object.defineProperty(Tone.Timeline.prototype, 'length', { - get: function () { - return this._timeline.length; - } - }); - Tone.Timeline.prototype.add = function (event) { - if (this.isUndef(event.time)) { - throw new Error('Tone.Timeline: events must have a time attribute'); - } - if (this._timeline.length) { - var index = this._search(event.time); - this._timeline.splice(index + 1, 0, event); - } else { - this._timeline.push(event); - } - if (this.length > this.memory) { - var diff = this.length - this.memory; - this._timeline.splice(0, diff); - } - return this; - }; - Tone.Timeline.prototype.remove = function (event) { - if (this._iterating) { - this._toRemove.push(event); - } else { - var index = this._timeline.indexOf(event); - if (index !== -1) { - this._timeline.splice(index, 1); - } - } - return this; - }; - Tone.Timeline.prototype.get = function (time) { - var index = this._search(time); - if (index !== -1) { - return this._timeline[index]; - } else { - return null; - } - }; - Tone.Timeline.prototype.peek = function () { - return this._timeline[0]; - }; - Tone.Timeline.prototype.shift = function () { - return this._timeline.shift(); - }; - Tone.Timeline.prototype.getAfter = function (time) { - var index = this._search(time); - if (index + 1 < this._timeline.length) { - return this._timeline[index + 1]; - } else { - return null; - } - }; - Tone.Timeline.prototype.getBefore = function (time) { - var len = this._timeline.length; - if (len > 0 && this._timeline[len - 1].time < time) { - return this._timeline[len - 1]; - } - var index = this._search(time); - if (index - 1 >= 0) { - return this._timeline[index - 1]; - } else { - return null; - } - }; - Tone.Timeline.prototype.cancel = function (after) { - if (this._timeline.length > 1) { - var index = this._search(after); - if (index >= 0) { - if (this._timeline[index].time === after) { - for (var i = index; i >= 0; i--) { - if (this._timeline[i].time === after) { - index = i; - } else { - break; - } - } - this._timeline = this._timeline.slice(0, index); - } else { - this._timeline = this._timeline.slice(0, index + 1); - } - } else { - this._timeline = []; - } - } else if (this._timeline.length === 1) { - if (this._timeline[0].time >= after) { - this._timeline = []; - } - } - return this; - }; - Tone.Timeline.prototype.cancelBefore = function (time) { - if (this._timeline.length) { - var index = this._search(time); - if (index >= 0) { - this._timeline = this._timeline.slice(index + 1); - } - } - return this; - }; - Tone.Timeline.prototype._search = function (time) { - var beginning = 0; - var len = this._timeline.length; - var end = len; - if (len > 0 && this._timeline[len - 1].time <= time) { - return len - 1; - } - while (beginning < end) { - var midPoint = Math.floor(beginning + (end - beginning) / 2); - var event = this._timeline[midPoint]; - var nextEvent = this._timeline[midPoint + 1]; - if (event.time === time) { - for (var i = midPoint; i < this._timeline.length; i++) { - var testEvent = this._timeline[i]; - if (testEvent.time === time) { - midPoint = i; - } - } - return midPoint; - } else if (event.time < time && nextEvent.time > time) { - return midPoint; - } else if (event.time > time) { - end = midPoint; - } else if (event.time < time) { - beginning = midPoint + 1; - } - } - return -1; - }; - Tone.Timeline.prototype._iterate = function (callback, lowerBound, upperBound) { - this._iterating = true; - lowerBound = this.defaultArg(lowerBound, 0); - upperBound = this.defaultArg(upperBound, this._timeline.length - 1); - for (var i = lowerBound; i <= upperBound; i++) { - callback(this._timeline[i]); - } - this._iterating = false; - if (this._toRemove.length > 0) { - for (var j = 0; j < this._toRemove.length; j++) { - var index = this._timeline.indexOf(this._toRemove[j]); - if (index !== -1) { - this._timeline.splice(index, 1); - } - } - this._toRemove = []; - } - }; - Tone.Timeline.prototype.forEach = function (callback) { - this._iterate(callback); - return this; - }; - Tone.Timeline.prototype.forEachBefore = function (time, callback) { - var upperBound = this._search(time); - if (upperBound !== -1) { - this._iterate(callback, 0, upperBound); - } - return this; - }; - Tone.Timeline.prototype.forEachAfter = function (time, callback) { - var lowerBound = this._search(time); - this._iterate(callback, lowerBound + 1); - return this; - }; - Tone.Timeline.prototype.forEachFrom = function (time, callback) { - var lowerBound = this._search(time); - while (lowerBound >= 0 && this._timeline[lowerBound].time >= time) { - lowerBound--; - } - this._iterate(callback, lowerBound + 1); - return this; - }; - Tone.Timeline.prototype.forEachAtTime = function (time, callback) { - var upperBound = this._search(time); - if (upperBound !== -1) { - this._iterate(function (event) { - if (event.time === time) { - callback(event); - } - }, 0, upperBound); - } - return this; - }; - Tone.Timeline.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._timeline = null; - this._toRemove = null; - }; - return Tone.Timeline; -}(Tone_core_Tone); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_TimelineSignal; -Tone_signal_TimelineSignal = function (Tone) { - 'use strict'; - Tone.TimelineSignal = function () { - var options = this.optionsObject(arguments, [ - 'value', - 'units' - ], Tone.Signal.defaults); - this._events = new Tone.Timeline(10); - Tone.Signal.apply(this, options); - options.param = this._param; - Tone.Param.call(this, options); - this._initial = this._fromUnits(this._param.value); - }; - Tone.extend(Tone.TimelineSignal, Tone.Param); - Tone.TimelineSignal.Type = { - Linear: 'linear', - Exponential: 'exponential', - Target: 'target', - Curve: 'curve', - Set: 'set' - }; - Object.defineProperty(Tone.TimelineSignal.prototype, 'value', { - get: function () { - var now = this.now(); - var val = this.getValueAtTime(now); - return this._toUnits(val); - }, - set: function (value) { - var convertedVal = this._fromUnits(value); - this._initial = convertedVal; - this.cancelScheduledValues(); - this._param.value = convertedVal; - } - }); - Tone.TimelineSignal.prototype.setValueAtTime = function (value, startTime) { - value = this._fromUnits(value); - startTime = this.toSeconds(startTime); - this._events.add({ - 'type': Tone.TimelineSignal.Type.Set, - 'value': value, - 'time': startTime - }); - this._param.setValueAtTime(value, startTime); - return this; - }; - Tone.TimelineSignal.prototype.linearRampToValueAtTime = function (value, endTime) { - value = this._fromUnits(value); - endTime = this.toSeconds(endTime); - this._events.add({ - 'type': Tone.TimelineSignal.Type.Linear, - 'value': value, - 'time': endTime - }); - this._param.linearRampToValueAtTime(value, endTime); - return this; - }; - Tone.TimelineSignal.prototype.exponentialRampToValueAtTime = function (value, endTime) { - endTime = this.toSeconds(endTime); - var beforeEvent = this._searchBefore(endTime); - if (beforeEvent && beforeEvent.value === 0) { - this.setValueAtTime(this._minOutput, beforeEvent.time); - } - value = this._fromUnits(value); - var setValue = Math.max(value, this._minOutput); - this._events.add({ - 'type': Tone.TimelineSignal.Type.Exponential, - 'value': setValue, - 'time': endTime - }); - if (value < this._minOutput) { - this._param.exponentialRampToValueAtTime(this._minOutput, endTime - this.sampleTime); - this.setValueAtTime(0, endTime); - } else { - this._param.exponentialRampToValueAtTime(value, endTime); - } - return this; - }; - Tone.TimelineSignal.prototype.setTargetAtTime = function (value, startTime, timeConstant) { - value = this._fromUnits(value); - value = Math.max(this._minOutput, value); - timeConstant = Math.max(this._minOutput, timeConstant); - startTime = this.toSeconds(startTime); - this._events.add({ - 'type': Tone.TimelineSignal.Type.Target, - 'value': value, - 'time': startTime, - 'constant': timeConstant - }); - this._param.setTargetAtTime(value, startTime, timeConstant); - return this; - }; - Tone.TimelineSignal.prototype.setValueCurveAtTime = function (values, startTime, duration, scaling) { - scaling = this.defaultArg(scaling, 1); - var floats = new Array(values.length); - for (var i = 0; i < floats.length; i++) { - floats[i] = this._fromUnits(values[i]) * scaling; - } - startTime = this.toSeconds(startTime); - duration = this.toSeconds(duration); - this._events.add({ - 'type': Tone.TimelineSignal.Type.Curve, - 'value': floats, - 'time': startTime, - 'duration': duration - }); - this._param.setValueAtTime(floats[0], startTime); - for (var j = 1; j < floats.length; j++) { - var segmentTime = startTime + j / (floats.length - 1) * duration; - this._param.linearRampToValueAtTime(floats[j], segmentTime); - } - return this; - }; - Tone.TimelineSignal.prototype.cancelScheduledValues = function (after) { - after = this.toSeconds(after); - this._events.cancel(after); - this._param.cancelScheduledValues(after); - return this; - }; - Tone.TimelineSignal.prototype.setRampPoint = function (time) { - time = this.toSeconds(time); - var val = this._toUnits(this.getValueAtTime(time)); - var before = this._searchBefore(time); - if (before && before.time === time) { - this.cancelScheduledValues(time + this.sampleTime); - } else if (before && before.type === Tone.TimelineSignal.Type.Curve && before.time + before.duration > time) { - this.cancelScheduledValues(time); - this.linearRampToValueAtTime(val, time); - } else { - var after = this._searchAfter(time); - if (after) { - this.cancelScheduledValues(time); - if (after.type === Tone.TimelineSignal.Type.Linear) { - this.linearRampToValueAtTime(val, time); - } else if (after.type === Tone.TimelineSignal.Type.Exponential) { - this.exponentialRampToValueAtTime(val, time); - } - } - this.setValueAtTime(val, time); - } - return this; - }; - Tone.TimelineSignal.prototype.linearRampToValueBetween = function (value, start, finish) { - this.setRampPoint(start); - this.linearRampToValueAtTime(value, finish); - return this; - }; - Tone.TimelineSignal.prototype.exponentialRampToValueBetween = function (value, start, finish) { - this.setRampPoint(start); - this.exponentialRampToValueAtTime(value, finish); - return this; - }; - Tone.TimelineSignal.prototype._searchBefore = function (time) { - return this._events.get(time); - }; - Tone.TimelineSignal.prototype._searchAfter = function (time) { - return this._events.getAfter(time); - }; - Tone.TimelineSignal.prototype.getValueAtTime = function (time) { - time = this.toSeconds(time); - var after = this._searchAfter(time); - var before = this._searchBefore(time); - var value = this._initial; - if (before === null) { - value = this._initial; - } else if (before.type === Tone.TimelineSignal.Type.Target) { - var previous = this._events.getBefore(before.time); - var previouVal; - if (previous === null) { - previouVal = this._initial; - } else { - previouVal = previous.value; - } - value = this._exponentialApproach(before.time, previouVal, before.value, before.constant, time); - } else if (before.type === Tone.TimelineSignal.Type.Curve) { - value = this._curveInterpolate(before.time, before.value, before.duration, time); - } else if (after === null) { - value = before.value; - } else if (after.type === Tone.TimelineSignal.Type.Linear) { - value = this._linearInterpolate(before.time, before.value, after.time, after.value, time); - } else if (after.type === Tone.TimelineSignal.Type.Exponential) { - value = this._exponentialInterpolate(before.time, before.value, after.time, after.value, time); - } else { - value = before.value; - } - return value; - }; - Tone.TimelineSignal.prototype.connect = Tone.SignalBase.prototype.connect; - Tone.TimelineSignal.prototype._exponentialApproach = function (t0, v0, v1, timeConstant, t) { - return v1 + (v0 - v1) * Math.exp(-(t - t0) / timeConstant); - }; - Tone.TimelineSignal.prototype._linearInterpolate = function (t0, v0, t1, v1, t) { - return v0 + (v1 - v0) * ((t - t0) / (t1 - t0)); - }; - Tone.TimelineSignal.prototype._exponentialInterpolate = function (t0, v0, t1, v1, t) { - v0 = Math.max(this._minOutput, v0); - return v0 * Math.pow(v1 / v0, (t - t0) / (t1 - t0)); - }; - Tone.TimelineSignal.prototype._curveInterpolate = function (start, curve, duration, time) { - var len = curve.length; - if (time >= start + duration) { - return curve[len - 1]; - } else if (time <= start) { - return curve[0]; - } else { - var progress = (time - start) / duration; - var lowerIndex = Math.floor((len - 1) * progress); - var upperIndex = Math.ceil((len - 1) * progress); - var lowerVal = curve[lowerIndex]; - var upperVal = curve[upperIndex]; - if (upperIndex === lowerIndex) { - return lowerVal; - } else { - return this._linearInterpolate(lowerIndex, lowerVal, upperIndex, upperVal, progress * (len - 1)); - } - } - }; - Tone.TimelineSignal.prototype.dispose = function () { - Tone.Signal.prototype.dispose.call(this); - Tone.Param.prototype.dispose.call(this); - this._events.dispose(); - this._events = null; - }; - return Tone.TimelineSignal; -}(Tone_core_Tone, Tone_signal_Signal); -var envelope; -'use strict'; -envelope = function () { - var p5sound = master; - var Add = Tone_signal_Add; - var Mult = Tone_signal_Multiply; - var Scale = Tone_signal_Scale; - var TimelineSignal = Tone_signal_TimelineSignal; - /** - *

Envelopes are pre-defined amplitude distribution over time. - * Typically, envelopes are used to control the output volume - * of an object, a series of fades referred to as Attack, Decay, - * Sustain and Release ( - * ADSR - * ). Envelopes can also control other Web Audio Parametersโ€”for example, a p5.Envelope can - * control an Oscillator's frequency like this: osc.freq(env).

- *

Use setRange to change the attack/release level. - * Use setADSR to change attackTime, decayTime, sustainPercent and releaseTime.

- *

Use the play method to play the entire envelope, - * the ramp method for a pingable trigger, - * or triggerAttack/ - * triggerRelease to trigger noteOn/noteOff.

- * - * @class p5.Envelope - * @constructor - * @example - *
- * var attackLevel = 1.0; - * var releaseLevel = 0; - * - * var attackTime = 0.001; - * var decayTime = 0.2; - * var susPercent = 0.2; - * var releaseTime = 0.5; - * - * var env, triOsc; - * - * function setup() { - * var cnv = createCanvas(100, 100); - * - * textAlign(CENTER); - * text('click to play', width/2, height/2); - * - * env = new p5.Envelope(); - * env.setADSR(attackTime, decayTime, susPercent, releaseTime); - * env.setRange(attackLevel, releaseLevel); - * - * triOsc = new p5.Oscillator('triangle'); - * triOsc.amp(env); - * triOsc.start(); - * triOsc.freq(220); - * - * cnv.mousePressed(playEnv); - * } - * - * function playEnv() { - * env.play(); - * } - *
- */ - p5.Envelope = function (t1, l1, t2, l2, t3, l3) { - /** - * Time until envelope reaches attackLevel - * @property attackTime - */ - this.aTime = t1 || 0.1; - /** - * Level once attack is complete. - * @property attackLevel - */ - this.aLevel = l1 || 1; - /** - * Time until envelope reaches decayLevel. - * @property decayTime - */ - this.dTime = t2 || 0.5; - /** - * Level after decay. The envelope will sustain here until it is released. - * @property decayLevel - */ - this.dLevel = l2 || 0; - /** - * Duration of the release portion of the envelope. - * @property releaseTime - */ - this.rTime = t3 || 0; - /** - * Level at the end of the release. - * @property releaseLevel - */ - this.rLevel = l3 || 0; - this._rampHighPercentage = 0.98; - this._rampLowPercentage = 0.02; - this.output = p5sound.audiocontext.createGain(); - this.control = new TimelineSignal(); - this._init(); - // this makes sure the envelope starts at zero - this.control.connect(this.output); - // connect to the output - this.connection = null; - // store connection - //array of math operation signal chaining - this.mathOps = [this.control]; - //whether envelope should be linear or exponential curve - this.isExponential = false; - // oscillator or buffer source to clear on env complete - // to save resources if/when it is retriggered - this.sourceToClear = null; - // set to true if attack is set, then false on release - this.wasTriggered = false; - // add to the soundArray so we can dispose of the env later - p5sound.soundArray.push(this); - }; - // this init function just smooths the starting value to zero and gives a start point for the timeline - // - it was necessary to remove glitches at the beginning. - p5.Envelope.prototype._init = function () { - var now = p5sound.audiocontext.currentTime; - var t = now; - this.control.setTargetAtTime(0.00001, t, 0.001); - //also, compute the correct time constants - this._setRampAD(this.aTime, this.dTime); - }; - /** - * Reset the envelope with a series of time/value pairs. - * - * @method set - * @param {Number} attackTime Time (in seconds) before level - * reaches attackLevel - * @param {Number} attackLevel Typically an amplitude between - * 0.0 and 1.0 - * @param {Number} decayTime Time - * @param {Number} decayLevel Amplitude (In a standard ADSR envelope, - * decayLevel = sustainLevel) - * @param {Number} releaseTime Release Time (in seconds) - * @param {Number} releaseLevel Amplitude - * @example - *
- * var t1 = 0.1; // attack time in seconds - * var l1 = 0.7; // attack level 0.0 to 1.0 - * var t2 = 0.3; // decay time in seconds - * var l2 = 0.1; // decay level 0.0 to 1.0 - * var t3 = 0.2; // sustain time in seconds - * var l3 = 0.5; // sustain level 0.0 to 1.0 - * // release level defaults to zero - * - * var env; - * var triOsc; - * - * function setup() { - * background(0); - * noStroke(); - * fill(255); - * textAlign(CENTER); - * text('click to play', width/2, height/2); - * - * env = new p5.Envelope(t1, l1, t2, l2, t3, l3); - * triOsc = new p5.Oscillator('triangle'); - * triOsc.amp(env); // give the env control of the triOsc's amp - * triOsc.start(); - * } - * - * // mouseClick triggers envelope if over canvas - * function mouseClicked() { - * // is mouse over canvas? - * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { - * env.play(triOsc); - * } - * } - *
- * - */ - p5.Envelope.prototype.set = function (t1, l1, t2, l2, t3, l3) { - this.aTime = t1; - this.aLevel = l1; - this.dTime = t2 || 0; - this.dLevel = l2 || 0; - this.rTime = t3 || 0; - this.rLevel = l3 || 0; - // set time constants for ramp - this._setRampAD(t1, t2); - }; - /** - * Set values like a traditional - * - * ADSR envelope - * . - * - * @method setADSR - * @param {Number} attackTime Time (in seconds before envelope - * reaches Attack Level - * @param {Number} [decayTime] Time (in seconds) before envelope - * reaches Decay/Sustain Level - * @param {Number} [susRatio] Ratio between attackLevel and releaseLevel, on a scale from 0 to 1, - * where 1.0 = attackLevel, 0.0 = releaseLevel. - * The susRatio determines the decayLevel and the level at which the - * sustain portion of the envelope will sustain. - * For example, if attackLevel is 0.4, releaseLevel is 0, - * and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is - * increased to 1.0 (using setRange), - * then decayLevel would increase proportionally, to become 0.5. - * @param {Number} [releaseTime] Time in seconds from now (defaults to 0) - * @example - *
- * var attackLevel = 1.0; - * var releaseLevel = 0; - * - * var attackTime = 0.001; - * var decayTime = 0.2; - * var susPercent = 0.2; - * var releaseTime = 0.5; - * - * var env, triOsc; - * - * function setup() { - * var cnv = createCanvas(100, 100); - * - * textAlign(CENTER); - * text('click to play', width/2, height/2); - * - * env = new p5.Envelope(); - * env.setADSR(attackTime, decayTime, susPercent, releaseTime); - * env.setRange(attackLevel, releaseLevel); - * - * triOsc = new p5.Oscillator('triangle'); - * triOsc.amp(env); - * triOsc.start(); - * triOsc.freq(220); - * - * cnv.mousePressed(playEnv); - * } - * - * function playEnv() { - * env.play(); - * } - *
- */ - p5.Envelope.prototype.setADSR = function (aTime, dTime, sPercent, rTime) { - this.aTime = aTime; - this.dTime = dTime || 0; - // lerp - this.sPercent = sPercent || 0; - this.dLevel = typeof sPercent !== 'undefined' ? sPercent * (this.aLevel - this.rLevel) + this.rLevel : 0; - this.rTime = rTime || 0; - // also set time constants for ramp - this._setRampAD(aTime, dTime); - }; - /** - * Set max (attackLevel) and min (releaseLevel) of envelope. - * - * @method setRange - * @param {Number} aLevel attack level (defaults to 1) - * @param {Number} rLevel release level (defaults to 0) - * @example - *
- * var attackLevel = 1.0; - * var releaseLevel = 0; - * - * var attackTime = 0.001; - * var decayTime = 0.2; - * var susPercent = 0.2; - * var releaseTime = 0.5; - * - * var env, triOsc; - * - * function setup() { - * var cnv = createCanvas(100, 100); - * - * textAlign(CENTER); - * text('click to play', width/2, height/2); - * - * env = new p5.Envelope(); - * env.setADSR(attackTime, decayTime, susPercent, releaseTime); - * env.setRange(attackLevel, releaseLevel); - * - * triOsc = new p5.Oscillator('triangle'); - * triOsc.amp(env); - * triOsc.start(); - * triOsc.freq(220); - * - * cnv.mousePressed(playEnv); - * } - * - * function playEnv() { - * env.play(); - * } - *
- */ - p5.Envelope.prototype.setRange = function (aLevel, rLevel) { - this.aLevel = aLevel || 1; - this.rLevel = rLevel || 0; - }; - // private (undocumented) method called when ADSR is set to set time constants for ramp - // - // Set the - // time constants for simple exponential ramps. - // The larger the time constant value, the slower the - // transition will be. - // - // method _setRampAD - // param {Number} attackTimeConstant attack time constant - // param {Number} decayTimeConstant decay time constant - // - p5.Envelope.prototype._setRampAD = function (t1, t2) { - this._rampAttackTime = this.checkExpInput(t1); - this._rampDecayTime = this.checkExpInput(t2); - var TCDenominator = 1; - /// Aatish Bhatia's calculation for time constant for rise(to adjust 1/1-e calculation to any percentage) - TCDenominator = Math.log(1 / this.checkExpInput(1 - this._rampHighPercentage)); - this._rampAttackTC = t1 / this.checkExpInput(TCDenominator); - TCDenominator = Math.log(1 / this._rampLowPercentage); - this._rampDecayTC = t2 / this.checkExpInput(TCDenominator); - }; - // private method - p5.Envelope.prototype.setRampPercentages = function (p1, p2) { - //set the percentages that the simple exponential ramps go to - this._rampHighPercentage = this.checkExpInput(p1); - this._rampLowPercentage = this.checkExpInput(p2); - var TCDenominator = 1; - //now re-compute the time constants based on those percentages - /// Aatish Bhatia's calculation for time constant for rise(to adjust 1/1-e calculation to any percentage) - TCDenominator = Math.log(1 / this.checkExpInput(1 - this._rampHighPercentage)); - this._rampAttackTC = this._rampAttackTime / this.checkExpInput(TCDenominator); - TCDenominator = Math.log(1 / this._rampLowPercentage); - this._rampDecayTC = this._rampDecayTime / this.checkExpInput(TCDenominator); - }; - /** - * Assign a parameter to be controlled by this envelope. - * If a p5.Sound object is given, then the p5.Envelope will control its - * output gain. If multiple inputs are provided, the env will - * control all of them. - * - * @method setInput - * @param {Object} [...inputs] A p5.sound object or - * Web Audio Param. - */ - p5.Envelope.prototype.setInput = function () { - for (var i = 0; i < arguments.length; i++) { - this.connect(arguments[i]); - } - }; - /** - * Set whether the envelope ramp is linear (default) or exponential. - * Exponential ramps can be useful because we perceive amplitude - * and frequency logarithmically. - * - * @method setExp - * @param {Boolean} isExp true is exponential, false is linear - */ - p5.Envelope.prototype.setExp = function (isExp) { - this.isExponential = isExp; - }; - //helper method to protect against zero values being sent to exponential functions - p5.Envelope.prototype.checkExpInput = function (value) { - if (value <= 0) { - value = 1e-8; - } - return value; - }; - /** - * Play tells the envelope to start acting on a given input. - * If the input is a p5.sound object (i.e. AudioIn, Oscillator, - * SoundFile), then Envelope will control its output volume. - * Envelopes can also be used to control any - * Web Audio Audio Param. - * - * @method play - * @param {Object} unit A p5.sound object or - * Web Audio Param. - * @param {Number} [startTime] time from now (in seconds) at which to play - * @param {Number} [sustainTime] time to sustain before releasing the envelope - * @example - *
- * var attackLevel = 1.0; - * var releaseLevel = 0; - * - * var attackTime = 0.001; - * var decayTime = 0.2; - * var susPercent = 0.2; - * var releaseTime = 0.5; - * - * var env, triOsc; - * - * function setup() { - * var cnv = createCanvas(100, 100); - * - * textAlign(CENTER); - * text('click to play', width/2, height/2); - * - * env = new p5.Envelope(); - * env.setADSR(attackTime, decayTime, susPercent, releaseTime); - * env.setRange(attackLevel, releaseLevel); - * - * triOsc = new p5.Oscillator('triangle'); - * triOsc.amp(env); - * triOsc.start(); - * triOsc.freq(220); - * - * cnv.mousePressed(playEnv); - * } - * - * function playEnv() { - * // trigger env on triOsc, 0 seconds from now - * // After decay, sustain for 0.2 seconds before release - * env.play(triOsc, 0, 0.2); - * } - *
- */ - p5.Envelope.prototype.play = function (unit, secondsFromNow, susTime) { - var tFromNow = secondsFromNow || 0; - var susTime = susTime || 0; - if (unit) { - if (this.connection !== unit) { - this.connect(unit); - } - } - this.triggerAttack(unit, tFromNow); - this.triggerRelease(unit, tFromNow + this.aTime + this.dTime + susTime); - }; - /** - * Trigger the Attack, and Decay portion of the Envelope. - * Similar to holding down a key on a piano, but it will - * hold the sustain level until you let go. Input can be - * any p5.sound object, or a - * Web Audio Param. - * - * @method triggerAttack - * @param {Object} unit p5.sound Object or Web Audio Param - * @param {Number} secondsFromNow time from now (in seconds) - * @example - *
- * - * var attackLevel = 1.0; - * var releaseLevel = 0; - * - * var attackTime = 0.001; - * var decayTime = 0.3; - * var susPercent = 0.4; - * var releaseTime = 0.5; - * - * var env, triOsc; - * - * function setup() { - * var cnv = createCanvas(100, 100); - * background(200); - * textAlign(CENTER); - * text('click to play', width/2, height/2); - * - * env = new p5.Envelope(); - * env.setADSR(attackTime, decayTime, susPercent, releaseTime); - * env.setRange(attackLevel, releaseLevel); - * - * triOsc = new p5.Oscillator('triangle'); - * triOsc.amp(env); - * triOsc.start(); - * triOsc.freq(220); - * - * cnv.mousePressed(envAttack); - * } - * - * function envAttack() { - * env.triggerAttack(); - * - * background(0,255,0); - * text('attack!', width/2, height/2); - * } - * - * function mouseReleased() { - * env.triggerRelease(); - * - * background(200); - * text('click to play', width/2, height/2); - * } - *
- */ - p5.Envelope.prototype.triggerAttack = function (unit, secondsFromNow) { - var now = p5sound.audiocontext.currentTime; - var tFromNow = secondsFromNow || 0; - var t = now + tFromNow; - this.lastAttack = t; - this.wasTriggered = true; - if (unit) { - if (this.connection !== unit) { - this.connect(unit); - } - } - // get and set value (with linear ramp) to anchor automation - var valToSet = this.control.getValueAtTime(t); - if (this.isExponential === true) { - this.control.exponentialRampToValueAtTime(this.checkExpInput(valToSet), t); - } else { - this.control.linearRampToValueAtTime(valToSet, t); - } - // after each ramp completes, cancel scheduled values - // (so they can be overridden in case env has been re-triggered) - // then, set current value (with linearRamp to avoid click) - // then, schedule the next automation... - // attack - t += this.aTime; - if (this.isExponential === true) { - this.control.exponentialRampToValueAtTime(this.checkExpInput(this.aLevel), t); - valToSet = this.checkExpInput(this.control.getValueAtTime(t)); - this.control.cancelScheduledValues(t); - this.control.exponentialRampToValueAtTime(valToSet, t); - } else { - this.control.linearRampToValueAtTime(this.aLevel, t); - valToSet = this.control.getValueAtTime(t); - this.control.cancelScheduledValues(t); - this.control.linearRampToValueAtTime(valToSet, t); - } - // decay to decay level (if using ADSR, then decay level == sustain level) - t += this.dTime; - if (this.isExponential === true) { - this.control.exponentialRampToValueAtTime(this.checkExpInput(this.dLevel), t); - valToSet = this.checkExpInput(this.control.getValueAtTime(t)); - this.control.cancelScheduledValues(t); - this.control.exponentialRampToValueAtTime(valToSet, t); - } else { - this.control.linearRampToValueAtTime(this.dLevel, t); - valToSet = this.control.getValueAtTime(t); - this.control.cancelScheduledValues(t); - this.control.linearRampToValueAtTime(valToSet, t); - } - }; - /** - * Trigger the Release of the Envelope. This is similar to releasing - * the key on a piano and letting the sound fade according to the - * release level and release time. - * - * @method triggerRelease - * @param {Object} unit p5.sound Object or Web Audio Param - * @param {Number} secondsFromNow time to trigger the release - * @example - *
- * - * var attackLevel = 1.0; - * var releaseLevel = 0; - * - * var attackTime = 0.001; - * var decayTime = 0.3; - * var susPercent = 0.4; - * var releaseTime = 0.5; - * - * var env, triOsc; - * - * function setup() { - * var cnv = createCanvas(100, 100); - * background(200); - * textAlign(CENTER); - * text('click to play', width/2, height/2); - * - * env = new p5.Envelope(); - * env.setADSR(attackTime, decayTime, susPercent, releaseTime); - * env.setRange(attackLevel, releaseLevel); - * - * triOsc = new p5.Oscillator('triangle'); - * triOsc.amp(env); - * triOsc.start(); - * triOsc.freq(220); - * - * cnv.mousePressed(envAttack); - * } - * - * function envAttack() { - * env.triggerAttack(); - * - * background(0,255,0); - * text('attack!', width/2, height/2); - * } - * - * function mouseReleased() { - * env.triggerRelease(); - * - * background(200); - * text('click to play', width/2, height/2); - * } - *
- */ - p5.Envelope.prototype.triggerRelease = function (unit, secondsFromNow) { - // only trigger a release if an attack was triggered - if (!this.wasTriggered) { - // this currently causes a bit of trouble: - // if a later release has been scheduled (via the play function) - // a new earlier release won't interrupt it, because - // this.wasTriggered has already been set to false. - // If we want new earlier releases to override, then we need to - // keep track of the last release time, and if the new release time is - // earlier, then use it. - return; - } - var now = p5sound.audiocontext.currentTime; - var tFromNow = secondsFromNow || 0; - var t = now + tFromNow; - if (unit) { - if (this.connection !== unit) { - this.connect(unit); - } - } - // get and set value (with linear or exponential ramp) to anchor automation - var valToSet = this.control.getValueAtTime(t); - if (this.isExponential === true) { - this.control.exponentialRampToValueAtTime(this.checkExpInput(valToSet), t); - } else { - this.control.linearRampToValueAtTime(valToSet, t); - } - // release - t += this.rTime; - if (this.isExponential === true) { - this.control.exponentialRampToValueAtTime(this.checkExpInput(this.rLevel), t); - valToSet = this.checkExpInput(this.control.getValueAtTime(t)); - this.control.cancelScheduledValues(t); - this.control.exponentialRampToValueAtTime(valToSet, t); - } else { - this.control.linearRampToValueAtTime(this.rLevel, t); - valToSet = this.control.getValueAtTime(t); - this.control.cancelScheduledValues(t); - this.control.linearRampToValueAtTime(valToSet, t); - } - this.wasTriggered = false; - }; - /** - * Exponentially ramp to a value using the first two - * values from setADSR(attackTime, decayTime) - * as - * time constants for simple exponential ramps. - * If the value is higher than current value, it uses attackTime, - * while a decrease uses decayTime. - * - * @method ramp - * @param {Object} unit p5.sound Object or Web Audio Param - * @param {Number} secondsFromNow When to trigger the ramp - * @param {Number} v Target value - * @param {Number} [v2] Second target value (optional) - * @example - *
- * var env, osc, amp, cnv; - * - * var attackTime = 0.001; - * var decayTime = 0.2; - * var attackLevel = 1; - * var decayLevel = 0; - * - * function setup() { - * cnv = createCanvas(100, 100); - * fill(0,255,0); - * noStroke(); - * - * env = new p5.Envelope(); - * env.setADSR(attackTime, decayTime); - * - * osc = new p5.Oscillator(); - * osc.amp(env); - * osc.start(); - * - * amp = new p5.Amplitude(); - * - * cnv.mousePressed(triggerRamp); - * } - * - * function triggerRamp() { - * env.ramp(osc, 0, attackLevel, decayLevel); - * } - * - * function draw() { - * background(20,20,20); - * text('click me', 10, 20); - * var h = map(amp.getLevel(), 0, 0.4, 0, height);; - * - * rect(0, height, width, -h); - * } - *
- */ - p5.Envelope.prototype.ramp = function (unit, secondsFromNow, v1, v2) { - var now = p5sound.audiocontext.currentTime; - var tFromNow = secondsFromNow || 0; - var t = now + tFromNow; - var destination1 = this.checkExpInput(v1); - var destination2 = typeof v2 !== 'undefined' ? this.checkExpInput(v2) : undefined; - // connect env to unit if not already connected - if (unit) { - if (this.connection !== unit) { - this.connect(unit); - } - } - //get current value - var currentVal = this.checkExpInput(this.control.getValueAtTime(t)); - // this.control.cancelScheduledValues(t); - //if it's going up - if (destination1 > currentVal) { - this.control.setTargetAtTime(destination1, t, this._rampAttackTC); - t += this._rampAttackTime; - } else if (destination1 < currentVal) { - this.control.setTargetAtTime(destination1, t, this._rampDecayTC); - t += this._rampDecayTime; - } - // Now the second part of envelope begins - if (destination2 === undefined) - return; - //if it's going up - if (destination2 > destination1) { - this.control.setTargetAtTime(destination2, t, this._rampAttackTC); - } else if (destination2 < destination1) { - this.control.setTargetAtTime(destination2, t, this._rampDecayTC); - } - }; - p5.Envelope.prototype.connect = function (unit) { - this.connection = unit; - // assume we're talking about output gain - // unless given a different audio param - if (unit instanceof p5.Oscillator || unit instanceof p5.SoundFile || unit instanceof p5.AudioIn || unit instanceof p5.Reverb || unit instanceof p5.Noise || unit instanceof p5.Filter || unit instanceof p5.Delay) { - unit = unit.output.gain; - } - if (unit instanceof AudioParam) { - //set the initial value - unit.setValueAtTime(0, p5sound.audiocontext.currentTime); - } - if (unit instanceof p5.Signal) { - unit.setValue(0); - } - this.output.connect(unit); - }; - p5.Envelope.prototype.disconnect = function () { - if (this.output) { - this.output.disconnect(); - } - }; - // Signal Math - /** - * Add a value to the p5.Oscillator's output amplitude, - * and return the oscillator. Calling this method - * again will override the initial add() with new values. - * - * @method add - * @param {Number} number Constant number to add - * @return {p5.Envelope} Envelope Returns this envelope - * with scaled output - */ - p5.Envelope.prototype.add = function (num) { - var add = new Add(num); - var thisChain = this.mathOps.length; - var nextChain = this.output; - return p5.prototype._mathChain(this, add, thisChain, nextChain, Add); - }; - /** - * Multiply the p5.Envelope's output amplitude - * by a fixed value. Calling this method - * again will override the initial mult() with new values. - * - * @method mult - * @param {Number} number Constant number to multiply - * @return {p5.Envelope} Envelope Returns this envelope - * with scaled output - */ - p5.Envelope.prototype.mult = function (num) { - var mult = new Mult(num); - var thisChain = this.mathOps.length; - var nextChain = this.output; - return p5.prototype._mathChain(this, mult, thisChain, nextChain, Mult); - }; - /** - * Scale this envelope's amplitude values to a given - * range, and return the envelope. Calling this method - * again will override the initial scale() with new values. - * - * @method scale - * @param {Number} inMin input range minumum - * @param {Number} inMax input range maximum - * @param {Number} outMin input range minumum - * @param {Number} outMax input range maximum - * @return {p5.Envelope} Envelope Returns this envelope - * with scaled output - */ - p5.Envelope.prototype.scale = function (inMin, inMax, outMin, outMax) { - var scale = new Scale(inMin, inMax, outMin, outMax); - var thisChain = this.mathOps.length; - var nextChain = this.output; - return p5.prototype._mathChain(this, scale, thisChain, nextChain, Scale); - }; - // get rid of the oscillator - p5.Envelope.prototype.dispose = function () { - // remove reference from soundArray - var index = p5sound.soundArray.indexOf(this); - p5sound.soundArray.splice(index, 1); - this.disconnect(); - if (this.control) { - this.control.dispose(); - this.control = null; - } - for (var i = 1; i < this.mathOps.length; i++) { - this.mathOps[i].dispose(); - } - }; - // Different name for backwards compatibility, replicates p5.Envelope class - p5.Env = function (t1, l1, t2, l2, t3, l3) { - console.warn('WARNING: p5.Env is now deprecated and may be removed in future versions. ' + 'Please use the new p5.Envelope instead.'); - p5.Envelope.call(this, t1, l1, t2, l2, t3, l3); - }; - p5.Env.prototype = Object.create(p5.Envelope.prototype); -}(master, Tone_signal_Add, Tone_signal_Multiply, Tone_signal_Scale, Tone_signal_TimelineSignal); -var pulse; -'use strict'; -pulse = function () { - var p5sound = master; - /** - * Creates a Pulse object, an oscillator that implements - * Pulse Width Modulation. - * The pulse is created with two oscillators. - * Accepts a parameter for frequency, and to set the - * width between the pulses. See - * p5.Oscillator for a full list of methods. - * - * @class p5.Pulse - * @extends p5.Oscillator - * @constructor - * @param {Number} [freq] Frequency in oscillations per second (Hz) - * @param {Number} [w] Width between the pulses (0 to 1.0, - * defaults to 0) - * @example - *
- * var pulse; - * function setup() { - * background(0); - * - * // Create and start the pulse wave oscillator - * pulse = new p5.Pulse(); - * pulse.amp(0.5); - * pulse.freq(220); - * pulse.start(); - * } - * - * function draw() { - * var w = map(mouseX, 0, width, 0, 1); - * w = constrain(w, 0, 1); - * pulse.width(w) - * } - *
- */ - p5.Pulse = function (freq, w) { - p5.Oscillator.call(this, freq, 'sawtooth'); - // width of PWM, should be betw 0 to 1.0 - this.w = w || 0; - // create a second oscillator with inverse frequency - this.osc2 = new p5.SawOsc(freq); - // create a delay node - this.dNode = p5sound.audiocontext.createDelay(); - // dc offset - this.dcOffset = createDCOffset(); - this.dcGain = p5sound.audiocontext.createGain(); - this.dcOffset.connect(this.dcGain); - this.dcGain.connect(this.output); - // set delay time based on PWM width - this.f = freq || 440; - var mW = this.w / this.oscillator.frequency.value; - this.dNode.delayTime.value = mW; - this.dcGain.gain.value = 1.7 * (0.5 - this.w); - // disconnect osc2 and connect it to delay, which is connected to output - this.osc2.disconnect(); - this.osc2.panner.disconnect(); - this.osc2.amp(-1); - // inverted amplitude - this.osc2.output.connect(this.dNode); - this.dNode.connect(this.output); - this.output.gain.value = 1; - this.output.connect(this.panner); - }; - p5.Pulse.prototype = Object.create(p5.Oscillator.prototype); - /** - * Set the width of a Pulse object (an oscillator that implements - * Pulse Width Modulation). - * - * @method width - * @param {Number} [width] Width between the pulses (0 to 1.0, - * defaults to 0) - */ - p5.Pulse.prototype.width = function (w) { - if (typeof w === 'number') { - if (w <= 1 && w >= 0) { - this.w = w; - // set delay time based on PWM width - // var mW = map(this.w, 0, 1.0, 0, 1/this.f); - var mW = this.w / this.oscillator.frequency.value; - this.dNode.delayTime.value = mW; - } - this.dcGain.gain.value = 1.7 * (0.5 - this.w); - } else { - w.connect(this.dNode.delayTime); - var sig = new p5.SignalAdd(-0.5); - sig.setInput(w); - sig = sig.mult(-1); - sig = sig.mult(1.7); - sig.connect(this.dcGain.gain); - } - }; - p5.Pulse.prototype.start = function (f, time) { - var now = p5sound.audiocontext.currentTime; - var t = time || 0; - if (!this.started) { - var freq = f || this.f; - var type = this.oscillator.type; - this.oscillator = p5sound.audiocontext.createOscillator(); - this.oscillator.frequency.setValueAtTime(freq, now); - this.oscillator.type = type; - this.oscillator.connect(this.output); - this.oscillator.start(t + now); - // set up osc2 - this.osc2.oscillator = p5sound.audiocontext.createOscillator(); - this.osc2.oscillator.frequency.setValueAtTime(freq, t + now); - this.osc2.oscillator.type = type; - this.osc2.oscillator.connect(this.osc2.output); - this.osc2.start(t + now); - this.freqNode = [ - this.oscillator.frequency, - this.osc2.oscillator.frequency - ]; - // start dcOffset, too - this.dcOffset = createDCOffset(); - this.dcOffset.connect(this.dcGain); - this.dcOffset.start(t + now); - // if LFO connections depend on these oscillators - if (this.mods !== undefined && this.mods.frequency !== undefined) { - this.mods.frequency.connect(this.freqNode[0]); - this.mods.frequency.connect(this.freqNode[1]); - } - this.started = true; - this.osc2.started = true; - } - }; - p5.Pulse.prototype.stop = function (time) { - if (this.started) { - var t = time || 0; - var now = p5sound.audiocontext.currentTime; - this.oscillator.stop(t + now); - if (this.osc2.oscillator) { - this.osc2.oscillator.stop(t + now); - } - this.dcOffset.stop(t + now); - this.started = false; - this.osc2.started = false; - } - }; - p5.Pulse.prototype.freq = function (val, rampTime, tFromNow) { - if (typeof val === 'number') { - this.f = val; - var now = p5sound.audiocontext.currentTime; - var rampTime = rampTime || 0; - var tFromNow = tFromNow || 0; - var currentFreq = this.oscillator.frequency.value; - this.oscillator.frequency.cancelScheduledValues(now); - this.oscillator.frequency.setValueAtTime(currentFreq, now + tFromNow); - this.oscillator.frequency.exponentialRampToValueAtTime(val, tFromNow + rampTime + now); - this.osc2.oscillator.frequency.cancelScheduledValues(now); - this.osc2.oscillator.frequency.setValueAtTime(currentFreq, now + tFromNow); - this.osc2.oscillator.frequency.exponentialRampToValueAtTime(val, tFromNow + rampTime + now); - if (this.freqMod) { - this.freqMod.output.disconnect(); - this.freqMod = null; - } - } else if (val.output) { - val.output.disconnect(); - val.output.connect(this.oscillator.frequency); - val.output.connect(this.osc2.oscillator.frequency); - this.freqMod = val; - } - }; - // inspiration: http://webaudiodemos.appspot.com/oscilloscope/ - function createDCOffset() { - var ac = p5sound.audiocontext; - var buffer = ac.createBuffer(1, 2048, ac.sampleRate); - var data = buffer.getChannelData(0); - for (var i = 0; i < 2048; i++) - data[i] = 1; - var bufferSource = ac.createBufferSource(); - bufferSource.buffer = buffer; - bufferSource.loop = true; - return bufferSource; - } -}(master, oscillator); -var noise; -'use strict'; -noise = function () { - var p5sound = master; - /** - * Noise is a type of oscillator that generates a buffer with random values. - * - * @class p5.Noise - * @extends p5.Oscillator - * @constructor - * @param {String} type Type of noise can be 'white' (default), - * 'brown' or 'pink'. - */ - p5.Noise = function (type) { - var assignType; - p5.Oscillator.call(this); - delete this.f; - delete this.freq; - delete this.oscillator; - if (type === 'brown') { - assignType = _brownNoise; - } else if (type === 'pink') { - assignType = _pinkNoise; - } else { - assignType = _whiteNoise; - } - this.buffer = assignType; - }; - p5.Noise.prototype = Object.create(p5.Oscillator.prototype); - // generate noise buffers - var _whiteNoise = function () { - var bufferSize = 2 * p5sound.audiocontext.sampleRate; - var whiteBuffer = p5sound.audiocontext.createBuffer(1, bufferSize, p5sound.audiocontext.sampleRate); - var noiseData = whiteBuffer.getChannelData(0); - for (var i = 0; i < bufferSize; i++) { - noiseData[i] = Math.random() * 2 - 1; - } - whiteBuffer.type = 'white'; - return whiteBuffer; - }(); - var _pinkNoise = function () { - var bufferSize = 2 * p5sound.audiocontext.sampleRate; - var pinkBuffer = p5sound.audiocontext.createBuffer(1, bufferSize, p5sound.audiocontext.sampleRate); - var noiseData = pinkBuffer.getChannelData(0); - var b0, b1, b2, b3, b4, b5, b6; - b0 = b1 = b2 = b3 = b4 = b5 = b6 = 0; - for (var i = 0; i < bufferSize; i++) { - var white = Math.random() * 2 - 1; - b0 = 0.99886 * b0 + white * 0.0555179; - b1 = 0.99332 * b1 + white * 0.0750759; - b2 = 0.969 * b2 + white * 0.153852; - b3 = 0.8665 * b3 + white * 0.3104856; - b4 = 0.55 * b4 + white * 0.5329522; - b5 = -0.7616 * b5 - white * 0.016898; - noiseData[i] = b0 + b1 + b2 + b3 + b4 + b5 + b6 + white * 0.5362; - noiseData[i] *= 0.11; - // (roughly) compensate for gain - b6 = white * 0.115926; - } - pinkBuffer.type = 'pink'; - return pinkBuffer; - }(); - var _brownNoise = function () { - var bufferSize = 2 * p5sound.audiocontext.sampleRate; - var brownBuffer = p5sound.audiocontext.createBuffer(1, bufferSize, p5sound.audiocontext.sampleRate); - var noiseData = brownBuffer.getChannelData(0); - var lastOut = 0; - for (var i = 0; i < bufferSize; i++) { - var white = Math.random() * 2 - 1; - noiseData[i] = (lastOut + 0.02 * white) / 1.02; - lastOut = noiseData[i]; - noiseData[i] *= 3.5; - } - brownBuffer.type = 'brown'; - return brownBuffer; - }(); - /** - * Set type of noise to 'white', 'pink' or 'brown'. - * White is the default. - * - * @method setType - * @param {String} [type] 'white', 'pink' or 'brown' - */ - p5.Noise.prototype.setType = function (type) { - switch (type) { - case 'white': - this.buffer = _whiteNoise; - break; - case 'pink': - this.buffer = _pinkNoise; - break; - case 'brown': - this.buffer = _brownNoise; - break; - default: - this.buffer = _whiteNoise; - } - if (this.started) { - var now = p5sound.audiocontext.currentTime; - this.stop(now); - this.start(now + 0.01); - } - }; - p5.Noise.prototype.getType = function () { - return this.buffer.type; - }; - p5.Noise.prototype.start = function () { - if (this.started) { - this.stop(); - } - this.noise = p5sound.audiocontext.createBufferSource(); - this.noise.buffer = this.buffer; - this.noise.loop = true; - this.noise.connect(this.output); - var now = p5sound.audiocontext.currentTime; - this.noise.start(now); - this.started = true; - }; - p5.Noise.prototype.stop = function () { - var now = p5sound.audiocontext.currentTime; - if (this.noise) { - this.noise.stop(now); - this.started = false; - } - }; - p5.Noise.prototype.dispose = function () { - var now = p5sound.audiocontext.currentTime; - // remove reference from soundArray - var index = p5sound.soundArray.indexOf(this); - p5sound.soundArray.splice(index, 1); - if (this.noise) { - this.noise.disconnect(); - this.stop(now); - } - if (this.output) { - this.output.disconnect(); - } - if (this.panner) { - this.panner.disconnect(); - } - this.output = null; - this.panner = null; - this.buffer = null; - this.noise = null; - }; -}(master); -var audioin; -'use strict'; -audioin = function () { - var p5sound = master; - // an array of input sources - p5sound.inputSources = []; - /** - *

Get audio from an input, i.e. your computer's microphone.

- * - *

Turn the mic on/off with the start() and stop() methods. When the mic - * is on, its volume can be measured with getLevel or by connecting an - * FFT object.

- * - *

If you want to hear the AudioIn, use the .connect() method. - * AudioIn does not connect to p5.sound output by default to prevent - * feedback.

- * - *

Note: This uses the getUserMedia/ - * Stream API, which is not supported by certain browsers. Access in Chrome browser - * is limited to localhost and https, but access over http may be limited.

- * - * @class p5.AudioIn - * @constructor - * @param {Function} [errorCallback] A function to call if there is an error - * accessing the AudioIn. For example, - * Safari and iOS devices do not - * currently allow microphone access. - * @example - *
- * var mic; - * function setup(){ - * mic = new p5.AudioIn() - * mic.start(); - * } - * function draw(){ - * background(0); - * micLevel = mic.getLevel(); - * ellipse(width/2, constrain(height-micLevel*height*5, 0, height), 10, 10); - * } - *
- */ - p5.AudioIn = function (errorCallback) { - // set up audio input - /** - * @property {GainNode} input - */ - this.input = p5sound.audiocontext.createGain(); - /** - * @property {GainNode} output - */ - this.output = p5sound.audiocontext.createGain(); - /** - * @property {MediaStream|null} stream - */ - this.stream = null; - /** - * @property {MediaStreamAudioSourceNode|null} mediaStream - */ - this.mediaStream = null; - /** - * @property {Number|null} currentSource - */ - this.currentSource = null; - /** - * Client must allow browser to access their microphone / audioin source. - * Default: false. Will become true when the client enables acces. - * - * @property {Boolean} enabled - */ - this.enabled = false; - /** - * Input amplitude, connect to it by default but not to master out - * - * @property {p5.Amplitude} amplitude - */ - this.amplitude = new p5.Amplitude(); - this.output.connect(this.amplitude.input); - if (!window.MediaStreamTrack || !window.navigator.mediaDevices || !window.navigator.mediaDevices.getUserMedia) { - errorCallback ? errorCallback() : window.alert('This browser does not support MediaStreamTrack and mediaDevices'); - } - // add to soundArray so we can dispose on close - p5sound.soundArray.push(this); - }; - /** - * Start processing audio input. This enables the use of other - * AudioIn methods like getLevel(). Note that by default, AudioIn - * is not connected to p5.sound's output. So you won't hear - * anything unless you use the connect() method.
- * - * Certain browsers limit access to the user's microphone. For example, - * Chrome only allows access from localhost and over https. For this reason, - * you may want to include an errorCallbackโ€”a function that is called in case - * the browser won't provide mic access. - * - * @method start - * @param {Function} [successCallback] Name of a function to call on - * success. - * @param {Function} [errorCallback] Name of a function to call if - * there was an error. For example, - * some browsers do not support - * getUserMedia. - */ - p5.AudioIn.prototype.start = function (successCallback, errorCallback) { - var self = this; - if (this.stream) { - this.stop(); - } - // set the audio source - var audioSource = p5sound.inputSources[self.currentSource]; - var constraints = { - audio: { - sampleRate: p5sound.audiocontext.sampleRate, - echoCancellation: false - } - }; - // if developers determine which source to use - if (p5sound.inputSources[this.currentSource]) { - constraints.audio.deviceId = audioSource.deviceId; - } - window.navigator.mediaDevices.getUserMedia(constraints).then(function (stream) { - self.stream = stream; - self.enabled = true; - // Wrap a MediaStreamSourceNode around the live input - self.mediaStream = p5sound.audiocontext.createMediaStreamSource(stream); - self.mediaStream.connect(self.output); - // only send to the Amplitude reader, so we can see it but not hear it. - self.amplitude.setInput(self.output); - if (successCallback) - successCallback(); - }).catch(function (err) { - if (errorCallback) - errorCallback(err); - else - console.error(err); - }); - }; - /** - * Turn the AudioIn off. If the AudioIn is stopped, it cannot getLevel(). - * If re-starting, the user may be prompted for permission access. - * - * @method stop - */ - p5.AudioIn.prototype.stop = function () { - if (this.stream) { - this.stream.getTracks().forEach(function (track) { - track.stop(); - }); - this.mediaStream.disconnect(); - delete this.mediaStream; - delete this.stream; - } - }; - /** - * Connect to an audio unit. If no parameter is provided, will - * connect to the master output (i.e. your speakers).
- * - * @method connect - * @param {Object} [unit] An object that accepts audio input, - * such as an FFT - */ - p5.AudioIn.prototype.connect = function (unit) { - if (unit) { - if (unit.hasOwnProperty('input')) { - this.output.connect(unit.input); - } else if (unit.hasOwnProperty('analyser')) { - this.output.connect(unit.analyser); - } else { - this.output.connect(unit); - } - } else { - this.output.connect(p5sound.input); - } - }; - /** - * Disconnect the AudioIn from all audio units. For example, if - * connect() had been called, disconnect() will stop sending - * signal to your speakers.
- * - * @method disconnect - */ - p5.AudioIn.prototype.disconnect = function () { - if (this.output) { - this.output.disconnect(); - // stay connected to amplitude even if not outputting to p5 - this.output.connect(this.amplitude.input); - } - }; - /** - * Read the Amplitude (volume level) of an AudioIn. The AudioIn - * class contains its own instance of the Amplitude class to help - * make it easy to get a microphone's volume level. Accepts an - * optional smoothing value (0.0 < 1.0). NOTE: AudioIn must - * .start() before using .getLevel().
- * - * @method getLevel - * @param {Number} [smoothing] Smoothing is 0.0 by default. - * Smooths values based on previous values. - * @return {Number} Volume level (between 0.0 and 1.0) - */ - p5.AudioIn.prototype.getLevel = function (smoothing) { - if (smoothing) { - this.amplitude.smoothing = smoothing; - } - return this.amplitude.getLevel(); - }; - /** - * Set amplitude (volume) of a mic input between 0 and 1.0.
- * - * @method amp - * @param {Number} vol between 0 and 1.0 - * @param {Number} [time] ramp time (optional) - */ - p5.AudioIn.prototype.amp = function (vol, t) { - if (t) { - var rampTime = t || 0; - var currentVol = this.output.gain.value; - this.output.gain.cancelScheduledValues(p5sound.audiocontext.currentTime); - this.output.gain.setValueAtTime(currentVol, p5sound.audiocontext.currentTime); - this.output.gain.linearRampToValueAtTime(vol, rampTime + p5sound.audiocontext.currentTime); - } else { - this.output.gain.cancelScheduledValues(p5sound.audiocontext.currentTime); - this.output.gain.setValueAtTime(vol, p5sound.audiocontext.currentTime); - } - }; - /** - * Returns a list of available input sources. This is a wrapper - * for and it returns a Promise. - * - * @method getSources - * @param {Function} [successCallback] This callback function handles the sources when they - * have been enumerated. The callback function - * receives the deviceList array as its only argument - * @param {Function} [errorCallback] This optional callback receives the error - * message as its argument. - * @returns {Promise} Returns a Promise that can be used in place of the callbacks, similar - * to the enumerateDevices() method - * @example - *
- * var audiograb; - * - * function setup(){ - * //new audioIn - * audioGrab = new p5.AudioIn(); - * - * audioGrab.getSources(function(deviceList) { - * //print out the array of available sources - * //set the source to the first item in the deviceList array - * audioGrab.setSource(0); - * }); - * } - *
- */ - p5.AudioIn.prototype.getSources = function (onSuccess, onError) { - return new Promise(function (resolve, reject) { - window.navigator.mediaDevices.enumerateDevices().then(function (devices) { - p5sound.inputSources = devices.filter(function (device) { - return device.kind === 'audioinput'; - }); - resolve(p5sound.inputSources); - if (onSuccess) { - onSuccess(p5sound.inputSources); - } - }).catch(function (error) { - reject(error); - if (onError) { - onError(error); - } else { - console.error('This browser does not support MediaStreamTrack.getSources()'); - } - }); - }); - }; - /** - * Set the input source. Accepts a number representing a - * position in the array returned by getSources(). - * This is only available in browsers that support - *
navigator.mediaDevices.enumerateDevices().
- * - * @method setSource - * @param {number} num position of input source in the array - */ - p5.AudioIn.prototype.setSource = function (num) { - if (p5sound.inputSources.length > 0 && num < p5sound.inputSources.length) { - // set the current source - this.currentSource = num; - } else { - console.log('unable to set input source'); - } - // restart stream if currently active - if (this.stream && this.stream.active) { - this.start(); - } - }; - // private method - p5.AudioIn.prototype.dispose = function () { - // remove reference from soundArray - var index = p5sound.soundArray.indexOf(this); - p5sound.soundArray.splice(index, 1); - this.stop(); - if (this.output) { - this.output.disconnect(); - } - if (this.amplitude) { - this.amplitude.disconnect(); - } - delete this.amplitude; - delete this.output; - }; -}(master); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_Negate; -Tone_signal_Negate = function (Tone) { - 'use strict'; - Tone.Negate = function () { - this._multiply = this.input = this.output = new Tone.Multiply(-1); - }; - Tone.extend(Tone.Negate, Tone.SignalBase); - Tone.Negate.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._multiply.dispose(); - this._multiply = null; - return this; - }; - return Tone.Negate; -}(Tone_core_Tone, Tone_signal_Multiply); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_Subtract; -Tone_signal_Subtract = function (Tone) { - 'use strict'; - Tone.Subtract = function (value) { - this.createInsOuts(2, 0); - this._sum = this.input[0] = this.output = new Tone.Gain(); - this._neg = new Tone.Negate(); - this._param = this.input[1] = new Tone.Signal(value); - this._param.chain(this._neg, this._sum); - }; - Tone.extend(Tone.Subtract, Tone.Signal); - Tone.Subtract.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._neg.dispose(); - this._neg = null; - this._sum.disconnect(); - this._sum = null; - this._param.dispose(); - this._param = null; - return this; - }; - return Tone.Subtract; -}(Tone_core_Tone, Tone_signal_Add, Tone_signal_Negate, Tone_signal_Signal); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_GreaterThanZero; -Tone_signal_GreaterThanZero = function (Tone) { - 'use strict'; - Tone.GreaterThanZero = function () { - this._thresh = this.output = new Tone.WaveShaper(function (val) { - if (val <= 0) { - return 0; - } else { - return 1; - } - }, 127); - this._scale = this.input = new Tone.Multiply(10000); - this._scale.connect(this._thresh); - }; - Tone.extend(Tone.GreaterThanZero, Tone.SignalBase); - Tone.GreaterThanZero.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._scale.dispose(); - this._scale = null; - this._thresh.dispose(); - this._thresh = null; - return this; - }; - return Tone.GreaterThanZero; -}(Tone_core_Tone, Tone_signal_Signal, Tone_signal_Multiply); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_GreaterThan; -Tone_signal_GreaterThan = function (Tone) { - 'use strict'; - Tone.GreaterThan = function (value) { - this.createInsOuts(2, 0); - this._param = this.input[0] = new Tone.Subtract(value); - this.input[1] = this._param.input[1]; - this._gtz = this.output = new Tone.GreaterThanZero(); - this._param.connect(this._gtz); - }; - Tone.extend(Tone.GreaterThan, Tone.Signal); - Tone.GreaterThan.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._param.dispose(); - this._param = null; - this._gtz.dispose(); - this._gtz = null; - return this; - }; - return Tone.GreaterThan; -}(Tone_core_Tone, Tone_signal_GreaterThanZero, Tone_signal_Subtract); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_Abs; -Tone_signal_Abs = function (Tone) { - 'use strict'; - Tone.Abs = function () { - this._abs = this.input = this.output = new Tone.WaveShaper(function (val) { - if (val === 0) { - return 0; - } else { - return Math.abs(val); - } - }, 127); - }; - Tone.extend(Tone.Abs, Tone.SignalBase); - Tone.Abs.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._abs.dispose(); - this._abs = null; - return this; - }; - return Tone.Abs; -}(Tone_core_Tone, Tone_signal_WaveShaper); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_Modulo; -Tone_signal_Modulo = function (Tone) { - 'use strict'; - Tone.Modulo = function (modulus) { - this.createInsOuts(1, 0); - this._shaper = new Tone.WaveShaper(Math.pow(2, 16)); - this._multiply = new Tone.Multiply(); - this._subtract = this.output = new Tone.Subtract(); - this._modSignal = new Tone.Signal(modulus); - this.input.fan(this._shaper, this._subtract); - this._modSignal.connect(this._multiply, 0, 0); - this._shaper.connect(this._multiply, 0, 1); - this._multiply.connect(this._subtract, 0, 1); - this._setWaveShaper(modulus); - }; - Tone.extend(Tone.Modulo, Tone.SignalBase); - Tone.Modulo.prototype._setWaveShaper = function (mod) { - this._shaper.setMap(function (val) { - var multiple = Math.floor((val + 0.0001) / mod); - return multiple; - }); - }; - Object.defineProperty(Tone.Modulo.prototype, 'value', { - get: function () { - return this._modSignal.value; - }, - set: function (mod) { - this._modSignal.value = mod; - this._setWaveShaper(mod); - } - }); - Tone.Modulo.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._shaper.dispose(); - this._shaper = null; - this._multiply.dispose(); - this._multiply = null; - this._subtract.dispose(); - this._subtract = null; - this._modSignal.dispose(); - this._modSignal = null; - return this; - }; - return Tone.Modulo; -}(Tone_core_Tone, Tone_signal_WaveShaper, Tone_signal_Multiply); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_Pow; -Tone_signal_Pow = function (Tone) { - 'use strict'; - Tone.Pow = function (exp) { - this._exp = this.defaultArg(exp, 1); - this._expScaler = this.input = this.output = new Tone.WaveShaper(this._expFunc(this._exp), 8192); - }; - Tone.extend(Tone.Pow, Tone.SignalBase); - Object.defineProperty(Tone.Pow.prototype, 'value', { - get: function () { - return this._exp; - }, - set: function (exp) { - this._exp = exp; - this._expScaler.setMap(this._expFunc(this._exp)); - } - }); - Tone.Pow.prototype._expFunc = function (exp) { - return function (val) { - return Math.pow(Math.abs(val), exp); - }; - }; - Tone.Pow.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._expScaler.dispose(); - this._expScaler = null; - return this; - }; - return Tone.Pow; -}(Tone_core_Tone); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_AudioToGain; -Tone_signal_AudioToGain = function (Tone) { - 'use strict'; - Tone.AudioToGain = function () { - this._norm = this.input = this.output = new Tone.WaveShaper(function (x) { - return (x + 1) / 2; - }); - }; - Tone.extend(Tone.AudioToGain, Tone.SignalBase); - Tone.AudioToGain.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._norm.dispose(); - this._norm = null; - return this; - }; - return Tone.AudioToGain; -}(Tone_core_Tone, Tone_signal_WaveShaper); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_Expr; -Tone_signal_Expr = function (Tone) { - 'use strict'; - Tone.Expr = function () { - var expr = this._replacements(Array.prototype.slice.call(arguments)); - var inputCount = this._parseInputs(expr); - this._nodes = []; - this.input = new Array(inputCount); - for (var i = 0; i < inputCount; i++) { - this.input[i] = this.context.createGain(); - } - var tree = this._parseTree(expr); - var result; - try { - result = this._eval(tree); - } catch (e) { - this._disposeNodes(); - throw new Error('Tone.Expr: Could evaluate expression: ' + expr); - } - this.output = result; - }; - Tone.extend(Tone.Expr, Tone.SignalBase); - function applyBinary(Constructor, args, self) { - var op = new Constructor(); - self._eval(args[0]).connect(op, 0, 0); - self._eval(args[1]).connect(op, 0, 1); - return op; - } - function applyUnary(Constructor, args, self) { - var op = new Constructor(); - self._eval(args[0]).connect(op, 0, 0); - return op; - } - function getNumber(arg) { - return arg ? parseFloat(arg) : undefined; - } - function literalNumber(arg) { - return arg && arg.args ? parseFloat(arg.args) : undefined; - } - Tone.Expr._Expressions = { - 'value': { - 'signal': { - regexp: /^\d+\.\d+|^\d+/, - method: function (arg) { - var sig = new Tone.Signal(getNumber(arg)); - return sig; - } - }, - 'input': { - regexp: /^\$\d/, - method: function (arg, self) { - return self.input[getNumber(arg.substr(1))]; - } - } - }, - 'glue': { - '(': { regexp: /^\(/ }, - ')': { regexp: /^\)/ }, - ',': { regexp: /^,/ } - }, - 'func': { - 'abs': { - regexp: /^abs/, - method: applyUnary.bind(this, Tone.Abs) - }, - 'mod': { - regexp: /^mod/, - method: function (args, self) { - var modulus = literalNumber(args[1]); - var op = new Tone.Modulo(modulus); - self._eval(args[0]).connect(op); - return op; - } - }, - 'pow': { - regexp: /^pow/, - method: function (args, self) { - var exp = literalNumber(args[1]); - var op = new Tone.Pow(exp); - self._eval(args[0]).connect(op); - return op; - } - }, - 'a2g': { - regexp: /^a2g/, - method: function (args, self) { - var op = new Tone.AudioToGain(); - self._eval(args[0]).connect(op); - return op; - } - } - }, - 'binary': { - '+': { - regexp: /^\+/, - precedence: 1, - method: applyBinary.bind(this, Tone.Add) - }, - '-': { - regexp: /^\-/, - precedence: 1, - method: function (args, self) { - if (args.length === 1) { - return applyUnary(Tone.Negate, args, self); - } else { - return applyBinary(Tone.Subtract, args, self); - } - } - }, - '*': { - regexp: /^\*/, - precedence: 0, - method: applyBinary.bind(this, Tone.Multiply) - } - }, - 'unary': { - '-': { - regexp: /^\-/, - method: applyUnary.bind(this, Tone.Negate) - }, - '!': { - regexp: /^\!/, - method: applyUnary.bind(this, Tone.NOT) - } - } - }; - Tone.Expr.prototype._parseInputs = function (expr) { - var inputArray = expr.match(/\$\d/g); - var inputMax = 0; - if (inputArray !== null) { - for (var i = 0; i < inputArray.length; i++) { - var inputNum = parseInt(inputArray[i].substr(1)) + 1; - inputMax = Math.max(inputMax, inputNum); - } - } - return inputMax; - }; - Tone.Expr.prototype._replacements = function (args) { - var expr = args.shift(); - for (var i = 0; i < args.length; i++) { - expr = expr.replace(/\%/i, args[i]); - } - return expr; - }; - Tone.Expr.prototype._tokenize = function (expr) { - var position = -1; - var tokens = []; - while (expr.length > 0) { - expr = expr.trim(); - var token = getNextToken(expr); - tokens.push(token); - expr = expr.substr(token.value.length); - } - function getNextToken(expr) { - for (var type in Tone.Expr._Expressions) { - var group = Tone.Expr._Expressions[type]; - for (var opName in group) { - var op = group[opName]; - var reg = op.regexp; - var match = expr.match(reg); - if (match !== null) { - return { - type: type, - value: match[0], - method: op.method - }; - } - } - } - throw new SyntaxError('Tone.Expr: Unexpected token ' + expr); - } - return { - next: function () { - return tokens[++position]; - }, - peek: function () { - return tokens[position + 1]; - } - }; - }; - Tone.Expr.prototype._parseTree = function (expr) { - var lexer = this._tokenize(expr); - var isUndef = this.isUndef.bind(this); - function matchSyntax(token, syn) { - return !isUndef(token) && token.type === 'glue' && token.value === syn; - } - function matchGroup(token, groupName, prec) { - var ret = false; - var group = Tone.Expr._Expressions[groupName]; - if (!isUndef(token)) { - for (var opName in group) { - var op = group[opName]; - if (op.regexp.test(token.value)) { - if (!isUndef(prec)) { - if (op.precedence === prec) { - return true; - } - } else { - return true; - } - } - } - } - return ret; - } - function parseExpression(precedence) { - if (isUndef(precedence)) { - precedence = 5; - } - var expr; - if (precedence < 0) { - expr = parseUnary(); - } else { - expr = parseExpression(precedence - 1); - } - var token = lexer.peek(); - while (matchGroup(token, 'binary', precedence)) { - token = lexer.next(); - expr = { - operator: token.value, - method: token.method, - args: [ - expr, - parseExpression(precedence - 1) - ] - }; - token = lexer.peek(); - } - return expr; - } - function parseUnary() { - var token, expr; - token = lexer.peek(); - if (matchGroup(token, 'unary')) { - token = lexer.next(); - expr = parseUnary(); - return { - operator: token.value, - method: token.method, - args: [expr] - }; - } - return parsePrimary(); - } - function parsePrimary() { - var token, expr; - token = lexer.peek(); - if (isUndef(token)) { - throw new SyntaxError('Tone.Expr: Unexpected termination of expression'); - } - if (token.type === 'func') { - token = lexer.next(); - return parseFunctionCall(token); - } - if (token.type === 'value') { - token = lexer.next(); - return { - method: token.method, - args: token.value - }; - } - if (matchSyntax(token, '(')) { - lexer.next(); - expr = parseExpression(); - token = lexer.next(); - if (!matchSyntax(token, ')')) { - throw new SyntaxError('Expected )'); - } - return expr; - } - throw new SyntaxError('Tone.Expr: Parse error, cannot process token ' + token.value); - } - function parseFunctionCall(func) { - var token, args = []; - token = lexer.next(); - if (!matchSyntax(token, '(')) { - throw new SyntaxError('Tone.Expr: Expected ( in a function call "' + func.value + '"'); - } - token = lexer.peek(); - if (!matchSyntax(token, ')')) { - args = parseArgumentList(); - } - token = lexer.next(); - if (!matchSyntax(token, ')')) { - throw new SyntaxError('Tone.Expr: Expected ) in a function call "' + func.value + '"'); - } - return { - method: func.method, - args: args, - name: name - }; - } - function parseArgumentList() { - var token, expr, args = []; - while (true) { - expr = parseExpression(); - if (isUndef(expr)) { - break; - } - args.push(expr); - token = lexer.peek(); - if (!matchSyntax(token, ',')) { - break; - } - lexer.next(); - } - return args; - } - return parseExpression(); - }; - Tone.Expr.prototype._eval = function (tree) { - if (!this.isUndef(tree)) { - var node = tree.method(tree.args, this); - this._nodes.push(node); - return node; - } - }; - Tone.Expr.prototype._disposeNodes = function () { - for (var i = 0; i < this._nodes.length; i++) { - var node = this._nodes[i]; - if (this.isFunction(node.dispose)) { - node.dispose(); - } else if (this.isFunction(node.disconnect)) { - node.disconnect(); - } - node = null; - this._nodes[i] = null; - } - this._nodes = null; - }; - Tone.Expr.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._disposeNodes(); - }; - return Tone.Expr; -}(Tone_core_Tone, Tone_signal_Add, Tone_signal_Subtract, Tone_signal_Multiply, Tone_signal_GreaterThan, Tone_signal_GreaterThanZero, Tone_signal_Abs, Tone_signal_Negate, Tone_signal_Modulo, Tone_signal_Pow); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_signal_EqualPowerGain; -Tone_signal_EqualPowerGain = function (Tone) { - 'use strict'; - Tone.EqualPowerGain = function () { - this._eqPower = this.input = this.output = new Tone.WaveShaper(function (val) { - if (Math.abs(val) < 0.001) { - return 0; - } else { - return this.equalPowerScale(val); - } - }.bind(this), 4096); - }; - Tone.extend(Tone.EqualPowerGain, Tone.SignalBase); - Tone.EqualPowerGain.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._eqPower.dispose(); - this._eqPower = null; - return this; - }; - return Tone.EqualPowerGain; -}(Tone_core_Tone); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_component_CrossFade; -Tone_component_CrossFade = function (Tone) { - 'use strict'; - Tone.CrossFade = function (initialFade) { - this.createInsOuts(2, 1); - this.a = this.input[0] = new Tone.Gain(); - this.b = this.input[1] = new Tone.Gain(); - this.fade = new Tone.Signal(this.defaultArg(initialFade, 0.5), Tone.Type.NormalRange); - this._equalPowerA = new Tone.EqualPowerGain(); - this._equalPowerB = new Tone.EqualPowerGain(); - this._invert = new Tone.Expr('1 - $0'); - this.a.connect(this.output); - this.b.connect(this.output); - this.fade.chain(this._equalPowerB, this.b.gain); - this.fade.chain(this._invert, this._equalPowerA, this.a.gain); - this._readOnly('fade'); - }; - Tone.extend(Tone.CrossFade); - Tone.CrossFade.prototype.dispose = function () { - Tone.prototype.dispose.call(this); - this._writable('fade'); - this._equalPowerA.dispose(); - this._equalPowerA = null; - this._equalPowerB.dispose(); - this._equalPowerB = null; - this.fade.dispose(); - this.fade = null; - this._invert.dispose(); - this._invert = null; - this.a.dispose(); - this.a = null; - this.b.dispose(); - this.b = null; - return this; - }; - return Tone.CrossFade; -}(Tone_core_Tone, Tone_signal_Signal, Tone_signal_Expr, Tone_signal_EqualPowerGain); -var effect; -'use strict'; -effect = function () { - var p5sound = master; - var CrossFade = Tone_component_CrossFade; - /** - * Effect is a base class for audio effects in p5.
- * This module handles the nodes and methods that are - * common and useful for current and future effects. - * - * - * This class is extended by p5.Distortion, - * p5.Compressor, - * p5.Delay, - * p5.Filter, - * p5.Reverb. - * - * @class p5.Effect - * @constructor - * - * @param {Object} [ac] Reference to the audio context of the p5 object - * @param {AudioNode} [input] Gain Node effect wrapper - * @param {AudioNode} [output] Gain Node effect wrapper - * @param {Object} [_drywet] Tone.JS CrossFade node (defaults to value: 1) - * @param {AudioNode} [wet] Effects that extend this class should connect - * to the wet signal to this gain node, so that dry and wet - * signals are mixed properly. - */ - p5.Effect = function () { - this.ac = p5sound.audiocontext; - this.input = this.ac.createGain(); - this.output = this.ac.createGain(); - /** - * The p5.Effect class is built - * using Tone.js CrossFade - * @private - */ - this._drywet = new CrossFade(1); - /** - * In classes that extend - * p5.Effect, connect effect nodes - * to the wet parameter - */ - this.wet = this.ac.createGain(); - this.input.connect(this._drywet.a); - this.wet.connect(this._drywet.b); - this._drywet.connect(this.output); - this.connect(); - //Add to the soundArray - p5sound.soundArray.push(this); - }; - /** - * Set the output volume of the filter. - * - * @method amp - * @param {Number} [vol] amplitude between 0 and 1.0 - * @param {Number} [rampTime] create a fade that lasts until rampTime - * @param {Number} [tFromNow] schedule this event to happen in tFromNow seconds - */ - p5.Effect.prototype.amp = function (vol, rampTime, tFromNow) { - var rampTime = rampTime || 0; - var tFromNow = tFromNow || 0; - var now = p5sound.audiocontext.currentTime; - var currentVol = this.output.gain.value; - this.output.gain.cancelScheduledValues(now); - this.output.gain.linearRampToValueAtTime(currentVol, now + tFromNow + 0.001); - this.output.gain.linearRampToValueAtTime(vol, now + tFromNow + rampTime + 0.001); - }; - /** - * Link effects together in a chain - * Example usage: filter.chain(reverb, delay, panner); - * May be used with an open-ended number of arguments - * - * @method chain - * @param {Object} [arguments] Chain together multiple sound objects - */ - p5.Effect.prototype.chain = function () { - if (arguments.length > 0) { - this.connect(arguments[0]); - for (var i = 1; i < arguments.length; i += 1) { - arguments[i - 1].connect(arguments[i]); - } - } - return this; - }; - /** - * Adjust the dry/wet value. - * - * @method drywet - * @param {Number} [fade] The desired drywet value (0 - 1.0) - */ - p5.Effect.prototype.drywet = function (fade) { - if (typeof fade !== 'undefined') { - this._drywet.fade.value = fade; - } - return this._drywet.fade.value; - }; - /** - * Send output to a p5.js-sound, Web Audio Node, or use signal to - * control an AudioParam - * - * @method connect - * @param {Object} unit - */ - p5.Effect.prototype.connect = function (unit) { - var u = unit || p5.soundOut.input; - this.output.connect(u.input ? u.input : u); - }; - /** - * Disconnect all output. - * - * @method disconnect - */ - p5.Effect.prototype.disconnect = function () { - if (this.output) { - this.output.disconnect(); - } - }; - p5.Effect.prototype.dispose = function () { - // remove refernce form soundArray - var index = p5sound.soundArray.indexOf(this); - p5sound.soundArray.splice(index, 1); - if (this.input) { - this.input.disconnect(); - delete this.input; - } - if (this.output) { - this.output.disconnect(); - delete this.output; - } - if (this._drywet) { - this._drywet.disconnect(); - delete this._drywet; - } - if (this.wet) { - this.wet.disconnect(); - delete this.wet; - } - this.ac = undefined; - }; - return p5.Effect; -}(master, Tone_component_CrossFade); -var filter; -'use strict'; -filter = function () { - var p5sound = master; - var Effect = effect; - /** - *

A p5.Filter uses a Web Audio Biquad Filter to filter - * the frequency response of an input source. Subclasses - * include:

- * * p5.LowPass: - * Allows frequencies below the cutoff frequency to pass through, - * and attenuates frequencies above the cutoff.
- * * p5.HighPass: - * The opposite of a lowpass filter.
- * * p5.BandPass: - * Allows a range of frequencies to pass through and attenuates - * the frequencies below and above this frequency range.
- * - * The .res() method controls either width of the - * bandpass, or resonance of the low/highpass cutoff frequency. - * - * This class extends p5.Effect. - * Methods amp(), chain(), - * drywet(), connect(), and - * disconnect() are available. - * - * @class p5.Filter - * @extends p5.Effect - * @constructor - * @param {String} [type] 'lowpass' (default), 'highpass', 'bandpass' - * @example - *
- * var fft, noise, filter; - * - * function setup() { - * fill(255, 40, 255); - * - * filter = new p5.BandPass(); - * - * noise = new p5.Noise(); - * // disconnect unfiltered noise, - * // and connect to filter - * noise.disconnect(); - * noise.connect(filter); - * noise.start(); - * - * fft = new p5.FFT(); - * } - * - * function draw() { - * background(30); - * - * // set the BandPass frequency based on mouseX - * var freq = map(mouseX, 0, width, 20, 10000); - * filter.freq(freq); - * // give the filter a narrow band (lower res = wider bandpass) - * filter.res(50); - * - * // draw filtered spectrum - * var spectrum = fft.analyze(); - * noStroke(); - * for (var i = 0; i < spectrum.length; i++) { - * var x = map(i, 0, spectrum.length, 0, width); - * var h = -height + map(spectrum[i], 0, 255, height, 0); - * rect(x, height, width/spectrum.length, h); - * } - * - * isMouseOverCanvas(); - * } - * - * function isMouseOverCanvas() { - * var mX = mouseX, mY = mouseY; - * if (mX > 0 && mX < width && mY < height && mY > 0) { - * noise.amp(0.5, 0.2); - * } else { - * noise.amp(0, 0.2); - * } - * } - *
- */ - //constructor with inheritance - p5.Filter = function (type) { - Effect.call(this); - //add extend Effect by adding a Biquad Filter - /** - * The p5.Filter is built with a - * - * Web Audio BiquadFilter Node. - * - * @property {DelayNode} biquadFilter - */ - this.biquad = this.ac.createBiquadFilter(); - this.input.connect(this.biquad); - this.biquad.connect(this.wet); - if (type) { - this.setType(type); - } - //Properties useful for the toggle method. - this._on = true; - this._untoggledType = this.biquad.type; - }; - p5.Filter.prototype = Object.create(Effect.prototype); - /** - * Filter an audio signal according to a set - * of filter parameters. - * - * @method process - * @param {Object} Signal An object that outputs audio - * @param {Number} [freq] Frequency in Hz, from 10 to 22050 - * @param {Number} [res] Resonance/Width of the filter frequency - * from 0.001 to 1000 - */ - p5.Filter.prototype.process = function (src, freq, res, time) { - src.connect(this.input); - this.set(freq, res, time); - }; - /** - * Set the frequency and the resonance of the filter. - * - * @method set - * @param {Number} [freq] Frequency in Hz, from 10 to 22050 - * @param {Number} [res] Resonance (Q) from 0.001 to 1000 - * @param {Number} [timeFromNow] schedule this event to happen - * seconds from now - */ - p5.Filter.prototype.set = function (freq, res, time) { - if (freq) { - this.freq(freq, time); - } - if (res) { - this.res(res, time); - } - }; - /** - * Set the filter frequency, in Hz, from 10 to 22050 (the range of - * human hearing, although in reality most people hear in a narrower - * range). - * - * @method freq - * @param {Number} freq Filter Frequency - * @param {Number} [timeFromNow] schedule this event to happen - * seconds from now - * @return {Number} value Returns the current frequency value - */ - p5.Filter.prototype.freq = function (freq, time) { - var t = time || 0; - if (freq <= 0) { - freq = 1; - } - if (typeof freq === 'number') { - this.biquad.frequency.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.biquad.frequency.exponentialRampToValueAtTime(freq, this.ac.currentTime + 0.02 + t); - } else if (freq) { - freq.connect(this.biquad.frequency); - } - return this.biquad.frequency.value; - }; - /** - * Controls either width of a bandpass frequency, - * or the resonance of a low/highpass cutoff frequency. - * - * @method res - * @param {Number} res Resonance/Width of filter freq - * from 0.001 to 1000 - * @param {Number} [timeFromNow] schedule this event to happen - * seconds from now - * @return {Number} value Returns the current res value - */ - p5.Filter.prototype.res = function (res, time) { - var t = time || 0; - if (typeof res === 'number') { - this.biquad.Q.value = res; - this.biquad.Q.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.biquad.Q.linearRampToValueAtTime(res, this.ac.currentTime + 0.02 + t); - } else if (res) { - res.connect(this.biquad.Q); - } - return this.biquad.Q.value; - }; - /** - * Controls the gain attribute of a Biquad Filter. - * This is distinctly different from .amp() which is inherited from p5.Effect - * .amp() controls the volume via the output gain node - * p5.Filter.gain() controls the gain parameter of a Biquad Filter node. - * - * @method gain - * @param {Number} gain - * @return {Number} Returns the current or updated gain value - */ - p5.Filter.prototype.gain = function (gain, time) { - var t = time || 0; - if (typeof gain === 'number') { - this.biquad.gain.value = gain; - this.biquad.gain.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.biquad.gain.linearRampToValueAtTime(gain, this.ac.currentTime + 0.02 + t); - } else if (gain) { - gain.connect(this.biquad.gain); - } - return this.biquad.gain.value; - }; - /** - * Toggle function. Switches between the specified type and allpass - * - * @method toggle - * @return {boolean} [Toggle value] - */ - p5.Filter.prototype.toggle = function () { - this._on = !this._on; - if (this._on === true) { - this.biquad.type = this._untoggledType; - } else if (this._on === false) { - this.biquad.type = 'allpass'; - } - return this._on; - }; - /** - * Set the type of a p5.Filter. Possible types include: - * "lowpass" (default), "highpass", "bandpass", - * "lowshelf", "highshelf", "peaking", "notch", - * "allpass". - * - * @method setType - * @param {String} t - */ - p5.Filter.prototype.setType = function (t) { - this.biquad.type = t; - this._untoggledType = this.biquad.type; - }; - p5.Filter.prototype.dispose = function () { - // remove reference from soundArray - Effect.prototype.dispose.apply(this); - if (this.biquad) { - this.biquad.disconnect(); - delete this.biquad; - } - }; - /** - * Constructor: new p5.LowPass() Filter. - * This is the same as creating a p5.Filter and then calling - * its method setType('lowpass'). - * See p5.Filter for methods. - * - * @class p5.LowPass - * @constructor - * @extends p5.Filter - */ - p5.LowPass = function () { - p5.Filter.call(this, 'lowpass'); - }; - p5.LowPass.prototype = Object.create(p5.Filter.prototype); - /** - * Constructor: new p5.HighPass() Filter. - * This is the same as creating a p5.Filter and then calling - * its method setType('highpass'). - * See p5.Filter for methods. - * - * @class p5.HighPass - * @constructor - * @extends p5.Filter - */ - p5.HighPass = function () { - p5.Filter.call(this, 'highpass'); - }; - p5.HighPass.prototype = Object.create(p5.Filter.prototype); - /** - * Constructor: new p5.BandPass() Filter. - * This is the same as creating a p5.Filter and then calling - * its method setType('bandpass'). - * See p5.Filter for methods. - * - * @class p5.BandPass - * @constructor - * @extends p5.Filter - */ - p5.BandPass = function () { - p5.Filter.call(this, 'bandpass'); - }; - p5.BandPass.prototype = Object.create(p5.Filter.prototype); - return p5.Filter; -}(master, effect); -var src_eqFilter; -'use strict'; -src_eqFilter = function () { - var Filter = filter; - var p5sound = master; - /** - * EQFilter extends p5.Filter with constraints - * necessary for the p5.EQ - * - * @private - */ - var EQFilter = function (freq, res) { - Filter.call(this, 'peaking'); - this.disconnect(); - this.set(freq, res); - this.biquad.gain.value = 0; - delete this.input; - delete this.output; - delete this._drywet; - delete this.wet; - }; - EQFilter.prototype = Object.create(Filter.prototype); - EQFilter.prototype.amp = function () { - console.warn('`amp()` is not available for p5.EQ bands. Use `.gain()`'); - }; - EQFilter.prototype.drywet = function () { - console.warn('`drywet()` is not available for p5.EQ bands.'); - }; - EQFilter.prototype.connect = function (unit) { - var u = unit || p5.soundOut.input; - if (this.biquad) { - this.biquad.connect(u.input ? u.input : u); - } else { - this.output.connect(u.input ? u.input : u); - } - }; - EQFilter.prototype.disconnect = function () { - if (this.biquad) { - this.biquad.disconnect(); - } - }; - EQFilter.prototype.dispose = function () { - // remove reference form soundArray - var index = p5sound.soundArray.indexOf(this); - p5sound.soundArray.splice(index, 1); - this.disconnect(); - delete this.biquad; - }; - return EQFilter; -}(filter, master); -var eq; -'use strict'; -eq = function () { - var Effect = effect; - var EQFilter = src_eqFilter; - /** - * p5.EQ is an audio effect that performs the function of a multiband - * audio equalizer. Equalization is used to adjust the balance of - * frequency compoenents of an audio signal. This process is commonly used - * in sound production and recording to change the waveform before it reaches - * a sound output device. EQ can also be used as an audio effect to create - * interesting distortions by filtering out parts of the spectrum. p5.EQ is - * built using a chain of Web Audio Biquad Filter Nodes and can be - * instantiated with 3 or 8 bands. Bands can be added or removed from - * the EQ by directly modifying p5.EQ.bands (the array that stores filters). - * - * This class extends p5.Effect. - * Methods amp(), chain(), - * drywet(), connect(), and - * disconnect() are available. - * - * @class p5.EQ - * @constructor - * @extends p5.Effect - * @param {Number} [_eqsize] Constructor will accept 3 or 8, defaults to 3 - * @return {Object} p5.EQ object - * - * @example - *
- * var eq; - * var band_names; - * var band_index; - * - * var soundFile, play; - * - * function preload() { - * soundFormats('mp3', 'ogg'); - * soundFile = loadSound('assets/beat'); - * } - * - * function setup() { - * eq = new p5.EQ(3); - * soundFile.disconnect(); - * eq.process(soundFile); - * - * band_names = ['lows','mids','highs']; - * band_index = 0; - * play = false; - * textAlign(CENTER); - * } - * - * function draw() { - * background(30); - * noStroke(); - * fill(255); - * text('click to kill',50,25); - * - * fill(255, 40, 255); - * textSize(26); - * text(band_names[band_index],50,55); - * - * fill(255); - * textSize(9); - * text('space = play/pause',50,80); - * } - * - * //If mouse is over canvas, cycle to the next band and kill the frequency - * function mouseClicked() { - * for (var i = 0; i < eq.bands.length; i++) { - * eq.bands[i].gain(0); - * } - * eq.bands[band_index].gain(-40); - * if (mouseX > 0 && mouseX < width && mouseY < height && mouseY > 0) { - * band_index === 2 ? band_index = 0 : band_index++; - * } - * } - * - * //use space bar to trigger play / pause - * function keyPressed() { - * if (key===' ') { - * play = !play - * play ? soundFile.loop() : soundFile.pause(); - * } - * } - *
- */ - p5.EQ = function (_eqsize) { - Effect.call(this); - //p5.EQ can be of size (3) or (8), defaults to 3 - _eqsize = _eqsize === 3 || _eqsize === 8 ? _eqsize : 3; - var factor; - _eqsize === 3 ? factor = Math.pow(2, 3) : factor = 2; - /** - * The p5.EQ is built with abstracted p5.Filter objects. - * To modify any bands, use methods of the - * p5.Filter API, especially `gain` and `freq`. - * Bands are stored in an array, with indices 0 - 3, or 0 - 7 - * @property {Array} bands - * - */ - this.bands = []; - var freq, res; - for (var i = 0; i < _eqsize; i++) { - if (i === _eqsize - 1) { - freq = 21000; - res = 0.01; - } else if (i === 0) { - freq = 100; - res = 0.1; - } else if (i === 1) { - freq = _eqsize === 3 ? 360 * factor : 360; - res = 1; - } else { - freq = this.bands[i - 1].freq() * factor; - res = 1; - } - this.bands[i] = this._newBand(freq, res); - if (i > 0) { - this.bands[i - 1].connect(this.bands[i].biquad); - } else { - this.input.connect(this.bands[i].biquad); - } - } - this.bands[_eqsize - 1].connect(this.output); - }; - p5.EQ.prototype = Object.create(Effect.prototype); - /** - * Process an input by connecting it to the EQ - * @method process - * @param {Object} src Audio source - */ - p5.EQ.prototype.process = function (src) { - src.connect(this.input); - }; - // /** - // * Set the frequency and gain of each band in the EQ. This method should be - // * called with 3 or 8 frequency and gain pairs, depending on the size of the EQ. - // * ex. eq.set(freq0, gain0, freq1, gain1, freq2, gain2); - // * - // * @method set - // * @param {Number} [freq0] Frequency value for band with index 0 - // * @param {Number} [gain0] Gain value for band with index 0 - // * @param {Number} [freq1] Frequency value for band with index 1 - // * @param {Number} [gain1] Gain value for band with index 1 - // * @param {Number} [freq2] Frequency value for band with index 2 - // * @param {Number} [gain2] Gain value for band with index 2 - // * @param {Number} [freq3] Frequency value for band with index 3 - // * @param {Number} [gain3] Gain value for band with index 3 - // * @param {Number} [freq4] Frequency value for band with index 4 - // * @param {Number} [gain4] Gain value for band with index 4 - // * @param {Number} [freq5] Frequency value for band with index 5 - // * @param {Number} [gain5] Gain value for band with index 5 - // * @param {Number} [freq6] Frequency value for band with index 6 - // * @param {Number} [gain6] Gain value for band with index 6 - // * @param {Number} [freq7] Frequency value for band with index 7 - // * @param {Number} [gain7] Gain value for band with index 7 - // */ - p5.EQ.prototype.set = function () { - if (arguments.length === this.bands.length * 2) { - for (var i = 0; i < arguments.length; i += 2) { - this.bands[i / 2].freq(arguments[i]); - this.bands[i / 2].gain(arguments[i + 1]); - } - } else { - console.error('Argument mismatch. .set() should be called with ' + this.bands.length * 2 + ' arguments. (one frequency and gain value pair for each band of the eq)'); - } - }; - /** - * Add a new band. Creates a p5.Filter and strips away everything but - * the raw biquad filter. This method returns an abstracted p5.Filter, - * which can be added to p5.EQ.bands, in order to create new EQ bands. - * @private - * @method _newBand - * @param {Number} freq - * @param {Number} res - * @return {Object} Abstracted Filter - */ - p5.EQ.prototype._newBand = function (freq, res) { - return new EQFilter(freq, res); - }; - p5.EQ.prototype.dispose = function () { - Effect.prototype.dispose.apply(this); - if (this.bands) { - while (this.bands.length > 0) { - delete this.bands.pop().dispose(); - } - delete this.bands; - } - }; - return p5.EQ; -}(effect, src_eqFilter); -var panner3d; -'use strict'; -panner3d = function () { - var p5sound = master; - var Effect = effect; - /** - * Panner3D is based on the - * Web Audio Spatial Panner Node. - * This panner is a spatial processing node that allows audio to be positioned - * and oriented in 3D space. - * - * The position is relative to an - * Audio Context Listener, which can be accessed - * by p5.soundOut.audiocontext.listener - * - * - * @class p5.Panner3D - * @constructor - */ - p5.Panner3D = function () { - Effect.call(this); - /** - * - * Web Audio Spatial Panner Node - * - * Properties include - * - panningModel: "equal power" or "HRTF" - * - distanceModel: "linear", "inverse", or "exponential" - * - * @property {AudioNode} panner - * - */ - this.panner = this.ac.createPanner(); - this.panner.panningModel = 'HRTF'; - this.panner.distanceModel = 'linear'; - this.panner.connect(this.output); - this.input.connect(this.panner); - }; - p5.Panner3D.prototype = Object.create(Effect.prototype); - /** - * Connect an audio sorce - * - * @method process - * @param {Object} src Input source - */ - p5.Panner3D.prototype.process = function (src) { - src.connect(this.input); - }; - /** - * Set the X,Y,Z position of the Panner - * @method set - * @param {Number} xVal - * @param {Number} yVal - * @param {Number} zVal - * @param {Number} time - * @return {Array} Updated x, y, z values as an array - */ - p5.Panner3D.prototype.set = function (xVal, yVal, zVal, time) { - this.positionX(xVal, time); - this.positionY(yVal, time); - this.positionZ(zVal, time); - return [ - this.panner.positionX.value, - this.panner.positionY.value, - this.panner.positionZ.value - ]; - }; - /** - * Getter and setter methods for position coordinates - * @method positionX - * @return {Number} updated coordinate value - */ - /** - * Getter and setter methods for position coordinates - * @method positionY - * @return {Number} updated coordinate value - */ - /** - * Getter and setter methods for position coordinates - * @method positionZ - * @return {Number} updated coordinate value - */ - p5.Panner3D.prototype.positionX = function (xVal, time) { - var t = time || 0; - if (typeof xVal === 'number') { - this.panner.positionX.value = xVal; - this.panner.positionX.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.panner.positionX.linearRampToValueAtTime(xVal, this.ac.currentTime + 0.02 + t); - } else if (xVal) { - xVal.connect(this.panner.positionX); - } - return this.panner.positionX.value; - }; - p5.Panner3D.prototype.positionY = function (yVal, time) { - var t = time || 0; - if (typeof yVal === 'number') { - this.panner.positionY.value = yVal; - this.panner.positionY.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.panner.positionY.linearRampToValueAtTime(yVal, this.ac.currentTime + 0.02 + t); - } else if (yVal) { - yVal.connect(this.panner.positionY); - } - return this.panner.positionY.value; - }; - p5.Panner3D.prototype.positionZ = function (zVal, time) { - var t = time || 0; - if (typeof zVal === 'number') { - this.panner.positionZ.value = zVal; - this.panner.positionZ.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.panner.positionZ.linearRampToValueAtTime(zVal, this.ac.currentTime + 0.02 + t); - } else if (zVal) { - zVal.connect(this.panner.positionZ); - } - return this.panner.positionZ.value; - }; - /** - * Set the X,Y,Z position of the Panner - * @method orient - * @param {Number} xVal - * @param {Number} yVal - * @param {Number} zVal - * @param {Number} time - * @return {Array} Updated x, y, z values as an array - */ - p5.Panner3D.prototype.orient = function (xVal, yVal, zVal, time) { - this.orientX(xVal, time); - this.orientY(yVal, time); - this.orientZ(zVal, time); - return [ - this.panner.orientationX.value, - this.panner.orientationY.value, - this.panner.orientationZ.value - ]; - }; - /** - * Getter and setter methods for orient coordinates - * @method orientX - * @return {Number} updated coordinate value - */ - /** - * Getter and setter methods for orient coordinates - * @method orientY - * @return {Number} updated coordinate value - */ - /** - * Getter and setter methods for orient coordinates - * @method orientZ - * @return {Number} updated coordinate value - */ - p5.Panner3D.prototype.orientX = function (xVal, time) { - var t = time || 0; - if (typeof xVal === 'number') { - this.panner.orientationX.value = xVal; - this.panner.orientationX.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.panner.orientationX.linearRampToValueAtTime(xVal, this.ac.currentTime + 0.02 + t); - } else if (xVal) { - xVal.connect(this.panner.orientationX); - } - return this.panner.orientationX.value; - }; - p5.Panner3D.prototype.orientY = function (yVal, time) { - var t = time || 0; - if (typeof yVal === 'number') { - this.panner.orientationY.value = yVal; - this.panner.orientationY.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.panner.orientationY.linearRampToValueAtTime(yVal, this.ac.currentTime + 0.02 + t); - } else if (yVal) { - yVal.connect(this.panner.orientationY); - } - return this.panner.orientationY.value; - }; - p5.Panner3D.prototype.orientZ = function (zVal, time) { - var t = time || 0; - if (typeof zVal === 'number') { - this.panner.orientationZ.value = zVal; - this.panner.orientationZ.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.panner.orientationZ.linearRampToValueAtTime(zVal, this.ac.currentTime + 0.02 + t); - } else if (zVal) { - zVal.connect(this.panner.orientationZ); - } - return this.panner.orientationZ.value; - }; - /** - * Set the rolloff factor and max distance - * @method setFalloff - * @param {Number} [maxDistance] - * @param {Number} [rolloffFactor] - */ - p5.Panner3D.prototype.setFalloff = function (maxDistance, rolloffFactor) { - this.maxDist(maxDistance); - this.rolloff(rolloffFactor); - }; - /** - * Maxium distance between the source and the listener - * @method maxDist - * @param {Number} maxDistance - * @return {Number} updated value - */ - p5.Panner3D.prototype.maxDist = function (maxDistance) { - if (typeof maxDistance === 'number') { - this.panner.maxDistance = maxDistance; - } - return this.panner.maxDistance; - }; - /** - * How quickly the volume is reduced as the source moves away from the listener - * @method rollof - * @param {Number} rolloffFactor - * @return {Number} updated value - */ - p5.Panner3D.prototype.rolloff = function (rolloffFactor) { - if (typeof rolloffFactor === 'number') { - this.panner.rolloffFactor = rolloffFactor; - } - return this.panner.rolloffFactor; - }; - p5.Panner3D.dispose = function () { - Effect.prototype.dispose.apply(this); - if (this.panner) { - this.panner.disconnect(); - delete this.panner; - } - }; - return p5.Panner3D; -}(master, effect); -var listener3d; -'use strict'; -listener3d = function () { - var p5sound = master; - var Effect = effect; - // /** - // * listener is a class that can construct both a Spatial Panner - // * and a Spatial Listener. The panner is based on the - // * Web Audio Spatial Panner Node - // * https://www.w3.org/TR/webaudio/#the-listenernode-interface - // * This panner is a spatial processing node that allows audio to be positioned - // * and oriented in 3D space. - // * - // * The Listener modifies the properties of the Audio Context Listener. - // * Both objects types use the same methods. The default is a spatial panner. - // * - // * p5.Panner3D - Constructs a Spatial Panner
- // * p5.Listener3D - Constructs a Spatial Listener
- // * - // * @class listener - // * @constructor - // * @return {Object} p5.Listener3D Object - // * - // * @param {Web Audio Node} listener Web Audio Spatial Panning Node - // * @param {AudioParam} listener.panningModel "equal power" or "HRTF" - // * @param {AudioParam} listener.distanceModel "linear", "inverse", or "exponential" - // * @param {String} [type] [Specify construction of a spatial panner or listener] - // */ - p5.Listener3D = function (type) { - this.ac = p5sound.audiocontext; - this.listener = this.ac.listener; - }; - // /** - // * Connect an audio sorce - // * @param {Object} src Input source - // */ - p5.Listener3D.prototype.process = function (src) { - src.connect(this.input); - }; - // /** - // * Set the X,Y,Z position of the Panner - // * @param {[Number]} xVal - // * @param {[Number]} yVal - // * @param {[Number]} zVal - // * @param {[Number]} time - // * @return {[Array]} [Updated x, y, z values as an array] - // */ - p5.Listener3D.prototype.position = function (xVal, yVal, zVal, time) { - this.positionX(xVal, time); - this.positionY(yVal, time); - this.positionZ(zVal, time); - return [ - this.listener.positionX.value, - this.listener.positionY.value, - this.listener.positionZ.value - ]; - }; - // /** - // * Getter and setter methods for position coordinates - // * @return {Number} [updated coordinate value] - // */ - p5.Listener3D.prototype.positionX = function (xVal, time) { - var t = time || 0; - if (typeof xVal === 'number') { - this.listener.positionX.value = xVal; - this.listener.positionX.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.listener.positionX.linearRampToValueAtTime(xVal, this.ac.currentTime + 0.02 + t); - } else if (xVal) { - xVal.connect(this.listener.positionX); - } - return this.listener.positionX.value; - }; - p5.Listener3D.prototype.positionY = function (yVal, time) { - var t = time || 0; - if (typeof yVal === 'number') { - this.listener.positionY.value = yVal; - this.listener.positionY.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.listener.positionY.linearRampToValueAtTime(yVal, this.ac.currentTime + 0.02 + t); - } else if (yVal) { - yVal.connect(this.listener.positionY); - } - return this.listener.positionY.value; - }; - p5.Listener3D.prototype.positionZ = function (zVal, time) { - var t = time || 0; - if (typeof zVal === 'number') { - this.listener.positionZ.value = zVal; - this.listener.positionZ.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.listener.positionZ.linearRampToValueAtTime(zVal, this.ac.currentTime + 0.02 + t); - } else if (zVal) { - zVal.connect(this.listener.positionZ); - } - return this.listener.positionZ.value; - }; - // cannot define method when class definition is commented - // /** - // * Overrides the listener orient() method because Listener has slightly - // * different params. In human terms, Forward vectors are the direction the - // * nose is pointing. Up vectors are the direction of the top of the head. - // * - // * @method orient - // * @param {Number} xValF Forward vector X direction - // * @param {Number} yValF Forward vector Y direction - // * @param {Number} zValF Forward vector Z direction - // * @param {Number} xValU Up vector X direction - // * @param {Number} yValU Up vector Y direction - // * @param {Number} zValU Up vector Z direction - // * @param {Number} time - // * @return {Array} All orienation params - // */ - p5.Listener3D.prototype.orient = function (xValF, yValF, zValF, xValU, yValU, zValU, time) { - if (arguments.length === 3 || arguments.length === 4) { - time = arguments[3]; - this.orientForward(xValF, yValF, zValF, time); - } else if (arguments.length === 6 || arguments === 7) { - this.orientForward(xValF, yValF, zValF); - this.orientUp(xValU, yValU, zValU, time); - } - return [ - this.listener.forwardX.value, - this.listener.forwardY.value, - this.listener.forwardZ.value, - this.listener.upX.value, - this.listener.upY.value, - this.listener.upZ.value - ]; - }; - p5.Listener3D.prototype.orientForward = function (xValF, yValF, zValF, time) { - this.forwardX(xValF, time); - this.forwardY(yValF, time); - this.forwardZ(zValF, time); - return [ - this.listener.forwardX, - this.listener.forwardY, - this.listener.forwardZ - ]; - }; - p5.Listener3D.prototype.orientUp = function (xValU, yValU, zValU, time) { - this.upX(xValU, time); - this.upY(yValU, time); - this.upZ(zValU, time); - return [ - this.listener.upX, - this.listener.upY, - this.listener.upZ - ]; - }; - // /** - // * Getter and setter methods for orient coordinates - // * @return {Number} [updated coordinate value] - // */ - p5.Listener3D.prototype.forwardX = function (xVal, time) { - var t = time || 0; - if (typeof xVal === 'number') { - this.listener.forwardX.value = xVal; - this.listener.forwardX.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.listener.forwardX.linearRampToValueAtTime(xVal, this.ac.currentTime + 0.02 + t); - } else if (xVal) { - xVal.connect(this.listener.forwardX); - } - return this.listener.forwardX.value; - }; - p5.Listener3D.prototype.forwardY = function (yVal, time) { - var t = time || 0; - if (typeof yVal === 'number') { - this.listener.forwardY.value = yVal; - this.listener.forwardY.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.listener.forwardY.linearRampToValueAtTime(yVal, this.ac.currentTime + 0.02 + t); - } else if (yVal) { - yVal.connect(this.listener.forwardY); - } - return this.listener.forwardY.value; - }; - p5.Listener3D.prototype.forwardZ = function (zVal, time) { - var t = time || 0; - if (typeof zVal === 'number') { - this.listener.forwardZ.value = zVal; - this.listener.forwardZ.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.listener.forwardZ.linearRampToValueAtTime(zVal, this.ac.currentTime + 0.02 + t); - } else if (zVal) { - zVal.connect(this.listener.forwardZ); - } - return this.listener.forwardZ.value; - }; - p5.Listener3D.prototype.upX = function (xVal, time) { - var t = time || 0; - if (typeof xVal === 'number') { - this.listener.upX.value = xVal; - this.listener.upX.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.listener.upX.linearRampToValueAtTime(xVal, this.ac.currentTime + 0.02 + t); - } else if (xVal) { - xVal.connect(this.listener.upX); - } - return this.listener.upX.value; - }; - p5.Listener3D.prototype.upY = function (yVal, time) { - var t = time || 0; - if (typeof yVal === 'number') { - this.listener.upY.value = yVal; - this.listener.upY.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.listener.upY.linearRampToValueAtTime(yVal, this.ac.currentTime + 0.02 + t); - } else if (yVal) { - yVal.connect(this.listener.upY); - } - return this.listener.upY.value; - }; - p5.Listener3D.prototype.upZ = function (zVal, time) { - var t = time || 0; - if (typeof zVal === 'number') { - this.listener.upZ.value = zVal; - this.listener.upZ.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.listener.upZ.linearRampToValueAtTime(zVal, this.ac.currentTime + 0.02 + t); - } else if (zVal) { - zVal.connect(this.listener.upZ); - } - return this.listener.upZ.value; - }; - return p5.Listener3D; -}(master, effect); -var delay; -'use strict'; -delay = function () { - var Filter = filter; - var Effect = effect; - /** - * Delay is an echo effect. It processes an existing sound source, - * and outputs a delayed version of that sound. The p5.Delay can - * produce different effects depending on the delayTime, feedback, - * filter, and type. In the example below, a feedback of 0.5 (the - * defaul value) will produce a looping delay that decreases in - * volume by 50% each repeat. A filter will cut out the high - * frequencies so that the delay does not sound as piercing as the - * original source. - * - * - * This class extends p5.Effect. - * Methods amp(), chain(), - * drywet(), connect(), and - * disconnect() are available. - * @class p5.Delay - * @extends p5.Effect - * @constructor - * @example - *
- * var noise, env, delay; - * - * function setup() { - * background(0); - * noStroke(); - * fill(255); - * textAlign(CENTER); - * text('click to play', width/2, height/2); - * - * noise = new p5.Noise('brown'); - * noise.amp(0); - * noise.start(); - * - * delay = new p5.Delay(); - * - * // delay.process() accepts 4 parameters: - * // source, delayTime, feedback, filter frequency - * // play with these numbers!! - * delay.process(noise, .12, .7, 2300); - * - * // play the noise with an envelope, - * // a series of fades ( time / value pairs ) - * env = new p5.Envelope(.01, 0.2, .2, .1); - * } - * - * // mouseClick triggers envelope - * function mouseClicked() { - * // is mouse over canvas? - * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { - * env.play(noise); - * } - * } - *
- */ - p5.Delay = function () { - Effect.call(this); - this._split = this.ac.createChannelSplitter(2); - this._merge = this.ac.createChannelMerger(2); - this._leftGain = this.ac.createGain(); - this._rightGain = this.ac.createGain(); - /** - * The p5.Delay is built with two - * - * Web Audio Delay Nodes, one for each stereo channel. - * - * @property {DelayNode} leftDelay - */ - this.leftDelay = this.ac.createDelay(); - /** - * The p5.Delay is built with two - * - * Web Audio Delay Nodes, one for each stereo channel. - * - * @property {DelayNode} rightDelay - */ - this.rightDelay = this.ac.createDelay(); - this._leftFilter = new Filter(); - this._rightFilter = new Filter(); - this._leftFilter.disconnect(); - this._rightFilter.disconnect(); - this._leftFilter.biquad.frequency.setValueAtTime(1200, this.ac.currentTime); - this._rightFilter.biquad.frequency.setValueAtTime(1200, this.ac.currentTime); - this._leftFilter.biquad.Q.setValueAtTime(0.3, this.ac.currentTime); - this._rightFilter.biquad.Q.setValueAtTime(0.3, this.ac.currentTime); - // graph routing - this.input.connect(this._split); - this.leftDelay.connect(this._leftGain); - this.rightDelay.connect(this._rightGain); - this._leftGain.connect(this._leftFilter.input); - this._rightGain.connect(this._rightFilter.input); - this._merge.connect(this.wet); - this._leftFilter.biquad.gain.setValueAtTime(1, this.ac.currentTime); - this._rightFilter.biquad.gain.setValueAtTime(1, this.ac.currentTime); - // default routing - this.setType(0); - this._maxDelay = this.leftDelay.delayTime.maxValue; - // set initial feedback to 0.5 - this.feedback(0.5); - }; - p5.Delay.prototype = Object.create(Effect.prototype); - /** - * Add delay to an audio signal according to a set - * of delay parameters. - * - * @method process - * @param {Object} Signal An object that outputs audio - * @param {Number} [delayTime] Time (in seconds) of the delay/echo. - * Some browsers limit delayTime to - * 1 second. - * @param {Number} [feedback] sends the delay back through itself - * in a loop that decreases in volume - * each time. - * @param {Number} [lowPass] Cutoff frequency. Only frequencies - * below the lowPass will be part of the - * delay. - */ - p5.Delay.prototype.process = function (src, _delayTime, _feedback, _filter) { - var feedback = _feedback || 0; - var delayTime = _delayTime || 0; - if (feedback >= 1) { - throw new Error('Feedback value will force a positive feedback loop.'); - } - if (delayTime >= this._maxDelay) { - throw new Error('Delay Time exceeds maximum delay time of ' + this._maxDelay + ' second.'); - } - src.connect(this.input); - this.leftDelay.delayTime.setValueAtTime(delayTime, this.ac.currentTime); - this.rightDelay.delayTime.setValueAtTime(delayTime, this.ac.currentTime); - this._leftGain.gain.value = feedback; - this._rightGain.gain.value = feedback; - if (_filter) { - this._leftFilter.freq(_filter); - this._rightFilter.freq(_filter); - } - }; - /** - * Set the delay (echo) time, in seconds. Usually this value will be - * a floating point number between 0.0 and 1.0. - * - * @method delayTime - * @param {Number} delayTime Time (in seconds) of the delay - */ - p5.Delay.prototype.delayTime = function (t) { - // if t is an audio node... - if (typeof t !== 'number') { - t.connect(this.leftDelay.delayTime); - t.connect(this.rightDelay.delayTime); - } else { - this.leftDelay.delayTime.cancelScheduledValues(this.ac.currentTime); - this.rightDelay.delayTime.cancelScheduledValues(this.ac.currentTime); - this.leftDelay.delayTime.linearRampToValueAtTime(t, this.ac.currentTime); - this.rightDelay.delayTime.linearRampToValueAtTime(t, this.ac.currentTime); - } - }; - /** - * Feedback occurs when Delay sends its signal back through its input - * in a loop. The feedback amount determines how much signal to send each - * time through the loop. A feedback greater than 1.0 is not desirable because - * it will increase the overall output each time through the loop, - * creating an infinite feedback loop. The default value is 0.5 - * - * @method feedback - * @param {Number|Object} feedback 0.0 to 1.0, or an object such as an - * Oscillator that can be used to - * modulate this param - * @returns {Number} Feedback value - * - */ - p5.Delay.prototype.feedback = function (f) { - // if f is an audio node... - if (f && typeof f !== 'number') { - f.connect(this._leftGain.gain); - f.connect(this._rightGain.gain); - } else if (f >= 1) { - throw new Error('Feedback value will force a positive feedback loop.'); - } else if (typeof f === 'number') { - this._leftGain.gain.value = f; - this._rightGain.gain.value = f; - } - // return value of feedback - return this._leftGain.gain.value; - }; - /** - * Set a lowpass filter frequency for the delay. A lowpass filter - * will cut off any frequencies higher than the filter frequency. - * - * @method filter - * @param {Number|Object} cutoffFreq A lowpass filter will cut off any - * frequencies higher than the filter frequency. - * @param {Number|Object} res Resonance of the filter frequency - * cutoff, or an object (i.e. a p5.Oscillator) - * that can be used to modulate this parameter. - * High numbers (i.e. 15) will produce a resonance, - * low numbers (i.e. .2) will produce a slope. - */ - p5.Delay.prototype.filter = function (freq, q) { - this._leftFilter.set(freq, q); - this._rightFilter.set(freq, q); - }; - /** - * Choose a preset type of delay. 'pingPong' bounces the signal - * from the left to the right channel to produce a stereo effect. - * Any other parameter will revert to the default delay setting. - * - * @method setType - * @param {String|Number} type 'pingPong' (1) or 'default' (0) - */ - p5.Delay.prototype.setType = function (t) { - if (t === 1) { - t = 'pingPong'; - } - this._split.disconnect(); - this._leftFilter.disconnect(); - this._rightFilter.disconnect(); - this._split.connect(this.leftDelay, 0); - this._split.connect(this.rightDelay, 1); - switch (t) { - case 'pingPong': - this._rightFilter.setType(this._leftFilter.biquad.type); - this._leftFilter.output.connect(this._merge, 0, 0); - this._rightFilter.output.connect(this._merge, 0, 1); - this._leftFilter.output.connect(this.rightDelay); - this._rightFilter.output.connect(this.leftDelay); - break; - default: - this._leftFilter.output.connect(this._merge, 0, 0); - this._rightFilter.output.connect(this._merge, 0, 1); - this._leftFilter.output.connect(this.leftDelay); - this._rightFilter.output.connect(this.rightDelay); - } - }; - // DocBlocks for methods inherited from p5.Effect - /** - * Set the output level of the delay effect. - * - * @method amp - * @param {Number} volume amplitude between 0 and 1.0 - * @param {Number} [rampTime] create a fade that lasts rampTime - * @param {Number} [timeFromNow] schedule this event to happen - * seconds from now - */ - /** - * Send output to a p5.sound or web audio object - * - * @method connect - * @param {Object} unit - */ - /** - * Disconnect all output. - * - * @method disconnect - */ - p5.Delay.prototype.dispose = function () { - Effect.prototype.dispose.apply(this); - this._split.disconnect(); - this._leftFilter.dispose(); - this._rightFilter.dispose(); - this._merge.disconnect(); - this._leftGain.disconnect(); - this._rightGain.disconnect(); - this.leftDelay.disconnect(); - this.rightDelay.disconnect(); - this._split = undefined; - this._leftFilter = undefined; - this._rightFilter = undefined; - this._merge = undefined; - this._leftGain = undefined; - this._rightGain = undefined; - this.leftDelay = undefined; - this.rightDelay = undefined; - }; -}(filter, effect); -var reverb; -'use strict'; -reverb = function () { - var CustomError = errorHandler; - var Effect = effect; - /** - * Reverb adds depth to a sound through a large number of decaying - * echoes. It creates the perception that sound is occurring in a - * physical space. The p5.Reverb has paramters for Time (how long does the - * reverb last) and decayRate (how much the sound decays with each echo) - * that can be set with the .set() or .process() methods. The p5.Convolver - * extends p5.Reverb allowing you to recreate the sound of actual physical - * spaces through convolution. - * - * This class extends p5.Effect. - * Methods amp(), chain(), - * drywet(), connect(), and - * disconnect() are available. - * - * @class p5.Reverb - * @extends p5.Effect - * @constructor - * @example - *
- * var soundFile, reverb; - * function preload() { - * soundFile = loadSound('assets/Damscray_DancingTiger.mp3'); - * } - * - * function setup() { - * reverb = new p5.Reverb(); - * soundFile.disconnect(); // so we'll only hear reverb... - * - * // connect soundFile to reverb, process w/ - * // 3 second reverbTime, decayRate of 2% - * reverb.process(soundFile, 3, 2); - * soundFile.play(); - * } - *
- */ - p5.Reverb = function () { - Effect.call(this); - this._initConvolverNode(); - // otherwise, Safari distorts - this.input.gain.value = 0.5; - // default params - this._seconds = 3; - this._decay = 2; - this._reverse = false; - this._buildImpulse(); - }; - p5.Reverb.prototype = Object.create(Effect.prototype); - p5.Reverb.prototype._initConvolverNode = function () { - this.convolverNode = this.ac.createConvolver(); - this.input.connect(this.convolverNode); - this.convolverNode.connect(this.wet); - }; - p5.Reverb.prototype._teardownConvolverNode = function () { - if (this.convolverNode) { - this.convolverNode.disconnect(); - delete this.convolverNode; - } - }; - p5.Reverb.prototype._setBuffer = function (audioBuffer) { - this._teardownConvolverNode(); - this._initConvolverNode(); - this.convolverNode.buffer = audioBuffer; - }; - /** - * Connect a source to the reverb, and assign reverb parameters. - * - * @method process - * @param {Object} src p5.sound / Web Audio object with a sound - * output. - * @param {Number} [seconds] Duration of the reverb, in seconds. - * Min: 0, Max: 10. Defaults to 3. - * @param {Number} [decayRate] Percentage of decay with each echo. - * Min: 0, Max: 100. Defaults to 2. - * @param {Boolean} [reverse] Play the reverb backwards or forwards. - */ - p5.Reverb.prototype.process = function (src, seconds, decayRate, reverse) { - src.connect(this.input); - var rebuild = false; - if (seconds) { - this._seconds = seconds; - rebuild = true; - } - if (decayRate) { - this._decay = decayRate; - } - if (reverse) { - this._reverse = reverse; - } - if (rebuild) { - this._buildImpulse(); - } - }; - /** - * Set the reverb settings. Similar to .process(), but without - * assigning a new input. - * - * @method set - * @param {Number} [seconds] Duration of the reverb, in seconds. - * Min: 0, Max: 10. Defaults to 3. - * @param {Number} [decayRate] Percentage of decay with each echo. - * Min: 0, Max: 100. Defaults to 2. - * @param {Boolean} [reverse] Play the reverb backwards or forwards. - */ - p5.Reverb.prototype.set = function (seconds, decayRate, reverse) { - var rebuild = false; - if (seconds) { - this._seconds = seconds; - rebuild = true; - } - if (decayRate) { - this._decay = decayRate; - } - if (reverse) { - this._reverse = reverse; - } - if (rebuild) { - this._buildImpulse(); - } - }; - // DocBlocks for methods inherited from p5.Effect - /** - * Set the output level of the reverb effect. - * - * @method amp - * @param {Number} volume amplitude between 0 and 1.0 - * @param {Number} [rampTime] create a fade that lasts rampTime - * @param {Number} [timeFromNow] schedule this event to happen - * seconds from now - */ - /** - * Send output to a p5.sound or web audio object - * - * @method connect - * @param {Object} unit - */ - /** - * Disconnect all output. - * - * @method disconnect - */ - /** - * Inspired by Simple Reverb by Jordan Santell - * https://github.com/web-audio-components/simple-reverb/blob/master/index.js - * - * Utility function for building an impulse response - * based on the module parameters. - * - * @private - */ - p5.Reverb.prototype._buildImpulse = function () { - var rate = this.ac.sampleRate; - var length = rate * this._seconds; - var decay = this._decay; - var impulse = this.ac.createBuffer(2, length, rate); - var impulseL = impulse.getChannelData(0); - var impulseR = impulse.getChannelData(1); - var n, i; - for (i = 0; i < length; i++) { - n = this._reverse ? length - i : i; - impulseL[i] = (Math.random() * 2 - 1) * Math.pow(1 - n / length, decay); - impulseR[i] = (Math.random() * 2 - 1) * Math.pow(1 - n / length, decay); - } - this._setBuffer(impulse); - }; - p5.Reverb.prototype.dispose = function () { - Effect.prototype.dispose.apply(this); - this._teardownConvolverNode(); - }; - // ======================================================================= - // *** p5.Convolver *** - // ======================================================================= - /** - *

p5.Convolver extends p5.Reverb. It can emulate the sound of real - * physical spaces through a process called - * convolution.

- * - *

Convolution multiplies any audio input by an "impulse response" - * to simulate the dispersion of sound over time. The impulse response is - * generated from an audio file that you provide. One way to - * generate an impulse response is to pop a balloon in a reverberant space - * and record the echo. Convolution can also be used to experiment with - * sound.

- * - *

Use the method createConvolution(path) to instantiate a - * p5.Convolver with a path to your impulse response audio file.

- * - * @class p5.Convolver - * @extends p5.Effect - * @constructor - * @param {String} path path to a sound file - * @param {Function} [callback] function to call when loading succeeds - * @param {Function} [errorCallback] function to call if loading fails. - * This function will receive an error or - * XMLHttpRequest object with information - * about what went wrong. - * @example - *
- * var cVerb, sound; - * function preload() { - * // We have both MP3 and OGG versions of all sound assets - * soundFormats('ogg', 'mp3'); - * - * // Try replacing 'bx-spring' with other soundfiles like - * // 'concrete-tunnel' 'small-plate' 'drum' 'beatbox' - * cVerb = createConvolver('assets/bx-spring.mp3'); - * - * // Try replacing 'Damscray_DancingTiger' with - * // 'beat', 'doorbell', lucky_dragons_-_power_melody' - * sound = loadSound('assets/Damscray_DancingTiger.mp3'); - * } - * - * function setup() { - * // disconnect from master output... - * sound.disconnect(); - * - * // ...and process with cVerb - * // so that we only hear the convolution - * cVerb.process(sound); - * - * sound.play(); - * } - *
- */ - p5.Convolver = function (path, callback, errorCallback) { - p5.Reverb.call(this); - /** - * Internally, the p5.Convolver uses the a - * - * Web Audio Convolver Node. - * - * @property {ConvolverNode} convolverNode - */ - this._initConvolverNode(); - // otherwise, Safari distorts - this.input.gain.value = 0.5; - if (path) { - this.impulses = []; - this._loadBuffer(path, callback, errorCallback); - } else { - // parameters - this._seconds = 3; - this._decay = 2; - this._reverse = false; - this._buildImpulse(); - } - }; - p5.Convolver.prototype = Object.create(p5.Reverb.prototype); - p5.prototype.registerPreloadMethod('createConvolver', p5.prototype); - /** - * Create a p5.Convolver. Accepts a path to a soundfile - * that will be used to generate an impulse response. - * - * @method createConvolver - * @param {String} path path to a sound file - * @param {Function} [callback] function to call if loading is successful. - * The object will be passed in as the argument - * to the callback function. - * @param {Function} [errorCallback] function to call if loading is not successful. - * A custom error will be passed in as the argument - * to the callback function. - * @return {p5.Convolver} - * @example - *
- * var cVerb, sound; - * function preload() { - * // We have both MP3 and OGG versions of all sound assets - * soundFormats('ogg', 'mp3'); - * - * // Try replacing 'bx-spring' with other soundfiles like - * // 'concrete-tunnel' 'small-plate' 'drum' 'beatbox' - * cVerb = createConvolver('assets/bx-spring.mp3'); - * - * // Try replacing 'Damscray_DancingTiger' with - * // 'beat', 'doorbell', lucky_dragons_-_power_melody' - * sound = loadSound('assets/Damscray_DancingTiger.mp3'); - * } - * - * function setup() { - * // disconnect from master output... - * sound.disconnect(); - * - * // ...and process with cVerb - * // so that we only hear the convolution - * cVerb.process(sound); - * - * sound.play(); - * } - *
- */ - p5.prototype.createConvolver = function (path, callback, errorCallback) { - // if loading locally without a server - if (window.location.origin.indexOf('file://') > -1 && window.cordova === 'undefined') { - alert('This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS'); - } - var self = this; - var cReverb = new p5.Convolver(path, function (buffer) { - if (typeof callback === 'function') { - callback(buffer); - } - if (typeof self._decrementPreload === 'function') { - self._decrementPreload(); - } - }, errorCallback); - cReverb.impulses = []; - return cReverb; - }; - /** - * Private method to load a buffer as an Impulse Response, - * assign it to the convolverNode, and add to the Array of .impulses. - * - * @param {String} path - * @param {Function} callback - * @param {Function} errorCallback - * @private - */ - p5.Convolver.prototype._loadBuffer = function (path, callback, errorCallback) { - var path = p5.prototype._checkFileFormats(path); - var self = this; - var errorTrace = new Error().stack; - var ac = p5.prototype.getAudioContext(); - var request = new XMLHttpRequest(); - request.open('GET', path, true); - request.responseType = 'arraybuffer'; - request.onload = function () { - if (request.status === 200) { - // on success loading file: - ac.decodeAudioData(request.response, function (buff) { - var buffer = {}; - var chunks = path.split('/'); - buffer.name = chunks[chunks.length - 1]; - buffer.audioBuffer = buff; - self.impulses.push(buffer); - self._setBuffer(buffer.audioBuffer); - if (callback) { - callback(buffer); - } - }, // error decoding buffer. "e" is undefined in Chrome 11/22/2015 - function () { - var err = new CustomError('decodeAudioData', errorTrace, self.url); - var msg = 'AudioContext error at decodeAudioData for ' + self.url; - if (errorCallback) { - err.msg = msg; - errorCallback(err); - } else { - console.error(msg + '\n The error stack trace includes: \n' + err.stack); - } - }); - } else { - var err = new CustomError('loadConvolver', errorTrace, self.url); - var msg = 'Unable to load ' + self.url + '. The request status was: ' + request.status + ' (' + request.statusText + ')'; - if (errorCallback) { - err.message = msg; - errorCallback(err); - } else { - console.error(msg + '\n The error stack trace includes: \n' + err.stack); - } - } - }; - // if there is another error, aside from 404... - request.onerror = function () { - var err = new CustomError('loadConvolver', errorTrace, self.url); - var msg = 'There was no response from the server at ' + self.url + '. Check the url and internet connectivity.'; - if (errorCallback) { - err.message = msg; - errorCallback(err); - } else { - console.error(msg + '\n The error stack trace includes: \n' + err.stack); - } - }; - request.send(); - }; - p5.Convolver.prototype.set = null; - /** - * Connect a source to the reverb, and assign reverb parameters. - * - * @method process - * @param {Object} src p5.sound / Web Audio object with a sound - * output. - * @example - *
- * var cVerb, sound; - * function preload() { - * soundFormats('ogg', 'mp3'); - * - * cVerb = createConvolver('assets/concrete-tunnel.mp3'); - * - * sound = loadSound('assets/beat.mp3'); - * } - * - * function setup() { - * // disconnect from master output... - * sound.disconnect(); - * - * // ...and process with (i.e. connect to) cVerb - * // so that we only hear the convolution - * cVerb.process(sound); - * - * sound.play(); - * } - *
- */ - p5.Convolver.prototype.process = function (src) { - src.connect(this.input); - }; - /** - * If you load multiple impulse files using the .addImpulse method, - * they will be stored as Objects in this Array. Toggle between them - * with the toggleImpulse(id) method. - * - * @property {Array} impulses - */ - p5.Convolver.prototype.impulses = []; - /** - * Load and assign a new Impulse Response to the p5.Convolver. - * The impulse is added to the .impulses array. Previous - * impulses can be accessed with the .toggleImpulse(id) - * method. - * - * @method addImpulse - * @param {String} path path to a sound file - * @param {Function} callback function (optional) - * @param {Function} errorCallback function (optional) - */ - p5.Convolver.prototype.addImpulse = function (path, callback, errorCallback) { - // if loading locally without a server - if (window.location.origin.indexOf('file://') > -1 && window.cordova === 'undefined') { - alert('This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS'); - } - this._loadBuffer(path, callback, errorCallback); - }; - /** - * Similar to .addImpulse, except that the .impulses - * Array is reset to save memory. A new .impulses - * array is created with this impulse as the only item. - * - * @method resetImpulse - * @param {String} path path to a sound file - * @param {Function} callback function (optional) - * @param {Function} errorCallback function (optional) - */ - p5.Convolver.prototype.resetImpulse = function (path, callback, errorCallback) { - // if loading locally without a server - if (window.location.origin.indexOf('file://') > -1 && window.cordova === 'undefined') { - alert('This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS'); - } - this.impulses = []; - this._loadBuffer(path, callback, errorCallback); - }; - /** - * If you have used .addImpulse() to add multiple impulses - * to a p5.Convolver, then you can use this method to toggle between - * the items in the .impulses Array. Accepts a parameter - * to identify which impulse you wish to use, identified either by its - * original filename (String) or by its position in the .impulses - * Array (Number).
- * You can access the objects in the .impulses Array directly. Each - * Object has two attributes: an .audioBuffer (type: - * Web Audio - * AudioBuffer) and a .name, a String that corresponds - * with the original filename. - * - * @method toggleImpulse - * @param {String|Number} id Identify the impulse by its original filename - * (String), or by its position in the - * .impulses Array (Number). - */ - p5.Convolver.prototype.toggleImpulse = function (id) { - if (typeof id === 'number' && id < this.impulses.length) { - this._setBuffer(this.impulses[id].audioBuffer); - } - if (typeof id === 'string') { - for (var i = 0; i < this.impulses.length; i++) { - if (this.impulses[i].name === id) { - this._setBuffer(this.impulses[i].audioBuffer); - break; - } - } - } - }; - p5.Convolver.prototype.dispose = function () { - p5.Reverb.prototype.dispose.apply(this); - // remove all the Impulse Response buffers - for (var i in this.impulses) { - if (this.impulses[i]) { - this.impulses[i] = null; - } - } - }; -}(errorHandler, effect); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_core_TimelineState; -Tone_core_TimelineState = function (Tone) { - 'use strict'; - Tone.TimelineState = function (initial) { - Tone.Timeline.call(this); - this._initial = initial; - }; - Tone.extend(Tone.TimelineState, Tone.Timeline); - Tone.TimelineState.prototype.getValueAtTime = function (time) { - var event = this.get(time); - if (event !== null) { - return event.state; - } else { - return this._initial; - } - }; - Tone.TimelineState.prototype.setStateAtTime = function (state, time) { - this.add({ - 'state': state, - 'time': time - }); - }; - return Tone.TimelineState; -}(Tone_core_Tone, Tone_core_Timeline); -/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ -var Tone_core_Clock; -Tone_core_Clock = function (Tone) { - 'use strict'; - Tone.Clock = function () { - Tone.Emitter.call(this); - var options = this.optionsObject(arguments, [ - 'callback', - 'frequency' - ], Tone.Clock.defaults); - this.callback = options.callback; - this._nextTick = 0; - this._lastState = Tone.State.Stopped; - this.frequency = new Tone.TimelineSignal(options.frequency, Tone.Type.Frequency); - this._readOnly('frequency'); - this.ticks = 0; - this._state = new Tone.TimelineState(Tone.State.Stopped); - this._boundLoop = this._loop.bind(this); - this.context.on('tick', this._boundLoop); - }; - Tone.extend(Tone.Clock, Tone.Emitter); - Tone.Clock.defaults = { - 'callback': Tone.noOp, - 'frequency': 1, - 'lookAhead': 'auto' - }; - Object.defineProperty(Tone.Clock.prototype, 'state', { - get: function () { - return this._state.getValueAtTime(this.now()); - } - }); - Tone.Clock.prototype.start = function (time, offset) { - time = this.toSeconds(time); - if (this._state.getValueAtTime(time) !== Tone.State.Started) { - this._state.add({ - 'state': Tone.State.Started, - 'time': time, - 'offset': offset - }); - } - return this; - }; - Tone.Clock.prototype.stop = function (time) { - time = this.toSeconds(time); - this._state.cancel(time); - this._state.setStateAtTime(Tone.State.Stopped, time); - return this; - }; - Tone.Clock.prototype.pause = function (time) { - time = this.toSeconds(time); - if (this._state.getValueAtTime(time) === Tone.State.Started) { - this._state.setStateAtTime(Tone.State.Paused, time); - } - return this; - }; - Tone.Clock.prototype._loop = function () { - var now = this.now(); - var lookAhead = this.context.lookAhead; - var updateInterval = this.context.updateInterval; - var lagCompensation = this.context.lag * 2; - var loopInterval = now + lookAhead + updateInterval + lagCompensation; - while (loopInterval > this._nextTick && this._state) { - var currentState = this._state.getValueAtTime(this._nextTick); - if (currentState !== this._lastState) { - this._lastState = currentState; - var event = this._state.get(this._nextTick); - if (currentState === Tone.State.Started) { - this._nextTick = event.time; - if (!this.isUndef(event.offset)) { - this.ticks = event.offset; - } - this.emit('start', event.time, this.ticks); - } else if (currentState === Tone.State.Stopped) { - this.ticks = 0; - this.emit('stop', event.time); - } else if (currentState === Tone.State.Paused) { - this.emit('pause', event.time); - } - } - var tickTime = this._nextTick; - if (this.frequency) { - this._nextTick += 1 / this.frequency.getValueAtTime(this._nextTick); - if (currentState === Tone.State.Started) { - this.callback(tickTime); - this.ticks++; - } - } - } - }; - Tone.Clock.prototype.getStateAtTime = function (time) { - time = this.toSeconds(time); - return this._state.getValueAtTime(time); - }; - Tone.Clock.prototype.dispose = function () { - Tone.Emitter.prototype.dispose.call(this); - this.context.off('tick', this._boundLoop); - this._writable('frequency'); - this.frequency.dispose(); - this.frequency = null; - this._boundLoop = null; - this._nextTick = Infinity; - this.callback = null; - this._state.dispose(); - this._state = null; - }; - return Tone.Clock; -}(Tone_core_Tone, Tone_signal_TimelineSignal, Tone_core_TimelineState, Tone_core_Emitter); -var metro; -'use strict'; -metro = function () { - var p5sound = master; - // requires the Tone.js library's Clock (MIT license, Yotam Mann) - // https://github.com/TONEnoTONE/Tone.js/ - var Clock = Tone_core_Clock; - p5.Metro = function () { - this.clock = new Clock({ 'callback': this.ontick.bind(this) }); - this.syncedParts = []; - this.bpm = 120; - // gets overridden by p5.Part - this._init(); - this.prevTick = 0; - this.tatumTime = 0; - this.tickCallback = function () { - }; - }; - p5.Metro.prototype.ontick = function (tickTime) { - var elapsedTime = tickTime - this.prevTick; - var secondsFromNow = tickTime - p5sound.audiocontext.currentTime; - if (elapsedTime - this.tatumTime <= -0.02) { - return; - } else { - this.prevTick = tickTime; - // for all of the active things on the metro: - var self = this; - this.syncedParts.forEach(function (thisPart) { - if (!thisPart.isPlaying) - return; - thisPart.incrementStep(secondsFromNow); - // each synced source keeps track of its own beat number - thisPart.phrases.forEach(function (thisPhrase) { - var phraseArray = thisPhrase.sequence; - var bNum = self.metroTicks % phraseArray.length; - if (phraseArray[bNum] !== 0 && (self.metroTicks < phraseArray.length || !thisPhrase.looping)) { - thisPhrase.callback(secondsFromNow, phraseArray[bNum]); - } - }); - }); - this.metroTicks += 1; - this.tickCallback(secondsFromNow); - } - }; - p5.Metro.prototype.setBPM = function (bpm, rampTime) { - var beatTime = 60 / (bpm * this.tatums); - var now = p5sound.audiocontext.currentTime; - this.tatumTime = beatTime; - var rampTime = rampTime || 0; - this.clock.frequency.setValueAtTime(this.clock.frequency.value, now); - this.clock.frequency.linearRampToValueAtTime(bpm, now + rampTime); - this.bpm = bpm; - }; - p5.Metro.prototype.getBPM = function () { - return this.clock.getRate() / this.tatums * 60; - }; - p5.Metro.prototype._init = function () { - this.metroTicks = 0; - }; - // clear existing synced parts, add only this one - p5.Metro.prototype.resetSync = function (part) { - this.syncedParts = [part]; - }; - // push a new synced part to the array - p5.Metro.prototype.pushSync = function (part) { - this.syncedParts.push(part); - }; - p5.Metro.prototype.start = function (timeFromNow) { - var t = timeFromNow || 0; - var now = p5sound.audiocontext.currentTime; - this.clock.start(now + t); - this.setBPM(this.bpm); - }; - p5.Metro.prototype.stop = function (timeFromNow) { - var t = timeFromNow || 0; - var now = p5sound.audiocontext.currentTime; - this.clock.stop(now + t); - }; - p5.Metro.prototype.beatLength = function (tatums) { - this.tatums = 1 / tatums / 4; - }; -}(master, Tone_core_Clock); -var looper; -'use strict'; -looper = function () { - var p5sound = master; - var BPM = 120; - /** - * Set the global tempo, in beats per minute, for all - * p5.Parts. This method will impact all active p5.Parts. - * - * @method setBPM - * @param {Number} BPM Beats Per Minute - * @param {Number} rampTime Seconds from now - */ - p5.prototype.setBPM = function (bpm, rampTime) { - BPM = bpm; - for (var i in p5sound.parts) { - if (p5sound.parts[i]) { - p5sound.parts[i].setBPM(bpm, rampTime); - } - } - }; - /** - *

A phrase is a pattern of musical events over time, i.e. - * a series of notes and rests.

- * - *

Phrases must be added to a p5.Part for playback, and - * each part can play multiple phrases at the same time. - * For example, one Phrase might be a kick drum, another - * could be a snare, and another could be the bassline.

- * - *

The first parameter is a name so that the phrase can be - * modified or deleted later. The callback is a a function that - * this phrase will call at every stepโ€”for example it might be - * called playNote(value){}. The array determines - * which value is passed into the callback at each step of the - * phrase. It can be numbers, an object with multiple numbers, - * or a zero (0) indicates a rest so the callback won't be called).

- * - * @class p5.Phrase - * @constructor - * @param {String} name Name so that you can access the Phrase. - * @param {Function} callback The name of a function that this phrase - * will call. Typically it will play a sound, - * and accept two parameters: a time at which - * to play the sound (in seconds from now), - * and a value from the sequence array. The - * time should be passed into the play() or - * start() method to ensure precision. - * @param {Array} sequence Array of values to pass into the callback - * at each step of the phrase. - * @example - *
- * var mySound, myPhrase, myPart; - * var pattern = [1,0,0,2,0,2,0,0]; - * var msg = 'click to play'; - * - * function preload() { - * mySound = loadSound('assets/beatbox.mp3'); - * } - * - * function setup() { - * noStroke(); - * fill(255); - * textAlign(CENTER); - * masterVolume(0.1); - * - * myPhrase = new p5.Phrase('bbox', makeSound, pattern); - * myPart = new p5.Part(); - * myPart.addPhrase(myPhrase); - * myPart.setBPM(60); - * } - * - * function draw() { - * background(0); - * text(msg, width/2, height/2); - * } - * - * function makeSound(time, playbackRate) { - * mySound.rate(playbackRate); - * mySound.play(time); - * } - * - * function mouseClicked() { - * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { - * myPart.start(); - * msg = 'playing pattern'; - * } - * } - * - *
- */ - p5.Phrase = function (name, callback, sequence) { - this.phraseStep = 0; - this.name = name; - this.callback = callback; - /** - * Array of values to pass into the callback - * at each step of the phrase. Depending on the callback - * function's requirements, these values may be numbers, - * strings, or an object with multiple parameters. - * Zero (0) indicates a rest. - * - * @property {Array} sequence - */ - this.sequence = sequence; - }; - /** - *

A p5.Part plays back one or more p5.Phrases. Instantiate a part - * with steps and tatums. By default, each step represents a 1/16th note.

- * - *

See p5.Phrase for more about musical timing.

- * - * @class p5.Part - * @constructor - * @param {Number} [steps] Steps in the part - * @param {Number} [tatums] Divisions of a beat, e.g. use 1/4, or 0.25 for a quater note (default is 1/16, a sixteenth note) - * @example - *
- * var box, drum, myPart; - * var boxPat = [1,0,0,2,0,2,0,0]; - * var drumPat = [0,1,1,0,2,0,1,0]; - * var msg = 'click to play'; - * - * function preload() { - * box = loadSound('assets/beatbox.mp3'); - * drum = loadSound('assets/drum.mp3'); - * } - * - * function setup() { - * noStroke(); - * fill(255); - * textAlign(CENTER); - * masterVolume(0.1); - * - * var boxPhrase = new p5.Phrase('box', playBox, boxPat); - * var drumPhrase = new p5.Phrase('drum', playDrum, drumPat); - * myPart = new p5.Part(); - * myPart.addPhrase(boxPhrase); - * myPart.addPhrase(drumPhrase); - * myPart.setBPM(60); - * masterVolume(0.1); - * } - * - * function draw() { - * background(0); - * text(msg, width/2, height/2); - * } - * - * function playBox(time, playbackRate) { - * box.rate(playbackRate); - * box.play(time); - * } - * - * function playDrum(time, playbackRate) { - * drum.rate(playbackRate); - * drum.play(time); - * } - * - * function mouseClicked() { - * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { - * myPart.start(); - * msg = 'playing part'; - * } - * } - *
- */ - p5.Part = function (steps, bLength) { - this.length = steps || 0; - // how many beats - this.partStep = 0; - this.phrases = []; - this.isPlaying = false; - this.noLoop(); - this.tatums = bLength || 0.0625; - // defaults to quarter note - this.metro = new p5.Metro(); - this.metro._init(); - this.metro.beatLength(this.tatums); - this.metro.setBPM(BPM); - p5sound.parts.push(this); - this.callback = function () { - }; - }; - /** - * Set the tempo of this part, in Beats Per Minute. - * - * @method setBPM - * @param {Number} BPM Beats Per Minute - * @param {Number} [rampTime] Seconds from now - */ - p5.Part.prototype.setBPM = function (tempo, rampTime) { - this.metro.setBPM(tempo, rampTime); - }; - /** - * Returns the tempo, in Beats Per Minute, of this part. - * - * @method getBPM - * @return {Number} - */ - p5.Part.prototype.getBPM = function () { - return this.metro.getBPM(); - }; - /** - * Start playback of this part. It will play - * through all of its phrases at a speed - * determined by setBPM. - * - * @method start - * @param {Number} [time] seconds from now - */ - p5.Part.prototype.start = function (time) { - if (!this.isPlaying) { - this.isPlaying = true; - this.metro.resetSync(this); - var t = time || 0; - this.metro.start(t); - } - }; - /** - * Loop playback of this part. It will begin - * looping through all of its phrases at a speed - * determined by setBPM. - * - * @method loop - * @param {Number} [time] seconds from now - */ - p5.Part.prototype.loop = function (time) { - this.looping = true; - // rest onended function - this.onended = function () { - this.partStep = 0; - }; - var t = time || 0; - this.start(t); - }; - /** - * Tell the part to stop looping. - * - * @method noLoop - */ - p5.Part.prototype.noLoop = function () { - this.looping = false; - // rest onended function - this.onended = function () { - this.stop(); - }; - }; - /** - * Stop the part and cue it to step 0. Playback will resume from the begining of the Part when it is played again. - * - * @method stop - * @param {Number} [time] seconds from now - */ - p5.Part.prototype.stop = function (time) { - this.partStep = 0; - this.pause(time); - }; - /** - * Pause the part. Playback will resume - * from the current step. - * - * @method pause - * @param {Number} time seconds from now - */ - p5.Part.prototype.pause = function (time) { - this.isPlaying = false; - var t = time || 0; - this.metro.stop(t); - }; - /** - * Add a p5.Phrase to this Part. - * - * @method addPhrase - * @param {p5.Phrase} phrase reference to a p5.Phrase - */ - p5.Part.prototype.addPhrase = function (name, callback, array) { - var p; - if (arguments.length === 3) { - p = new p5.Phrase(name, callback, array); - } else if (arguments[0] instanceof p5.Phrase) { - p = arguments[0]; - } else { - throw 'invalid input. addPhrase accepts name, callback, array or a p5.Phrase'; - } - this.phrases.push(p); - // reset the length if phrase is longer than part's existing length - if (p.sequence.length > this.length) { - this.length = p.sequence.length; - } - }; - /** - * Remove a phrase from this part, based on the name it was - * given when it was created. - * - * @method removePhrase - * @param {String} phraseName - */ - p5.Part.prototype.removePhrase = function (name) { - for (var i in this.phrases) { - if (this.phrases[i].name === name) { - this.phrases.splice(i, 1); - } - } - }; - /** - * Get a phrase from this part, based on the name it was - * given when it was created. Now you can modify its array. - * - * @method getPhrase - * @param {String} phraseName - */ - p5.Part.prototype.getPhrase = function (name) { - for (var i in this.phrases) { - if (this.phrases[i].name === name) { - return this.phrases[i]; - } - } - }; - /** - * Find all sequences with the specified name, and replace their patterns with the specified array. - * - * @method replaceSequence - * @param {String} phraseName - * @param {Array} sequence Array of values to pass into the callback - * at each step of the phrase. - */ - p5.Part.prototype.replaceSequence = function (name, array) { - for (var i in this.phrases) { - if (this.phrases[i].name === name) { - this.phrases[i].sequence = array; - } - } - }; - p5.Part.prototype.incrementStep = function (time) { - if (this.partStep < this.length - 1) { - this.callback(time); - this.partStep += 1; - } else { - if (!this.looping && this.partStep === this.length - 1) { - // this.callback(time); - this.onended(); - } - } - }; - /** - * Set the function that will be called at every step. This will clear the previous function. - * - * @method onStep - * @param {Function} callback The name of the callback - * you want to fire - * on every beat/tatum. - */ - p5.Part.prototype.onStep = function (callback) { - this.callback = callback; - }; - // =============== - // p5.Score - // =============== - /** - * A Score consists of a series of Parts. The parts will - * be played back in order. For example, you could have an - * A part, a B part, and a C part, and play them back in this order - * new p5.Score(a, a, b, a, c) - * - * @class p5.Score - * @constructor - * @param {p5.Part} [...parts] One or multiple parts, to be played in sequence. - */ - p5.Score = function () { - // for all of the arguments - this.parts = []; - this.currentPart = 0; - var thisScore = this; - for (var i in arguments) { - if (arguments[i] && this.parts[i]) { - this.parts[i] = arguments[i]; - this.parts[i].nextPart = this.parts[i + 1]; - this.parts[i].onended = function () { - thisScore.resetPart(i); - playNextPart(thisScore); - }; - } - } - this.looping = false; - }; - p5.Score.prototype.onended = function () { - if (this.looping) { - // this.resetParts(); - this.parts[0].start(); - } else { - this.parts[this.parts.length - 1].onended = function () { - this.stop(); - this.resetParts(); - }; - } - this.currentPart = 0; - }; - /** - * Start playback of the score. - * - * @method start - */ - p5.Score.prototype.start = function () { - this.parts[this.currentPart].start(); - this.scoreStep = 0; - }; - /** - * Stop playback of the score. - * - * @method stop - */ - p5.Score.prototype.stop = function () { - this.parts[this.currentPart].stop(); - this.currentPart = 0; - this.scoreStep = 0; - }; - /** - * Pause playback of the score. - * - * @method pause - */ - p5.Score.prototype.pause = function () { - this.parts[this.currentPart].stop(); - }; - /** - * Loop playback of the score. - * - * @method loop - */ - p5.Score.prototype.loop = function () { - this.looping = true; - this.start(); - }; - /** - * Stop looping playback of the score. If it - * is currently playing, this will go into effect - * after the current round of playback completes. - * - * @method noLoop - */ - p5.Score.prototype.noLoop = function () { - this.looping = false; - }; - p5.Score.prototype.resetParts = function () { - var self = this; - this.parts.forEach(function (part) { - self.resetParts[part]; - }); - }; - p5.Score.prototype.resetPart = function (i) { - this.parts[i].stop(); - this.parts[i].partStep = 0; - for (var p in this.parts[i].phrases) { - if (this.parts[i]) { - this.parts[i].phrases[p].phraseStep = 0; - } - } - }; - /** - * Set the tempo for all parts in the score - * - * @method setBPM - * @param {Number} BPM Beats Per Minute - * @param {Number} rampTime Seconds from now - */ - p5.Score.prototype.setBPM = function (bpm, rampTime) { - for (var i in this.parts) { - if (this.parts[i]) { - this.parts[i].setBPM(bpm, rampTime); - } - } - }; - function playNextPart(aScore) { - aScore.currentPart++; - if (aScore.currentPart >= aScore.parts.length) { - aScore.scoreStep = 0; - aScore.onended(); - } else { - aScore.scoreStep = 0; - aScore.parts[aScore.currentPart - 1].stop(); - aScore.parts[aScore.currentPart].start(); - } - } -}(master); -var soundloop; -'use strict'; -soundloop = function () { - var p5sound = master; - var Clock = Tone_core_Clock; - /** - * SoundLoop - * - * @class p5.SoundLoop - * @constructor - * - * @param {Function} callback this function will be called on each iteration of theloop - * @param {Number|String} [interval] amount of time or beats for each iteration of the loop - * defaults to 1 - * - * @example - *
- * var click; - * var looper1; - * - * function preload() { - * click = loadSound('assets/drum.mp3'); - * } - * - * function setup() { - * //the looper's callback is passed the timeFromNow - * //this value should be used as a reference point from - * //which to schedule sounds - * looper1 = new p5.SoundLoop(function(timeFromNow){ - * click.play(timeFromNow); - * background(255 * (looper1.iterations % 2)); - * }, 2); - * - * //stop after 10 iteratios; - * looper1.maxIterations = 10; - * //start the loop - * looper1.start(); - * } - *
- */ - p5.SoundLoop = function (callback, interval) { - this.callback = callback; - /** - * musicalTimeMode uses Tone.Time convention - * true if string, false if number - * @property {Boolean} musicalTimeMode - */ - this.musicalTimeMode = typeof this._interval === 'number' ? false : true; - this._interval = interval || 1; - /** - * musicalTimeMode variables - * modify these only when the interval is specified in musicalTime format as a string - */ - this._timeSignature = 4; - this._bpm = 60; - this.isPlaying = false; - /** - * Set a limit to the number of loops to play. defaults to Infinity - * @property {Number} maxIterations - */ - this.maxIterations = Infinity; - var self = this; - this.clock = new Clock({ - 'callback': function (time) { - var timeFromNow = time - p5sound.audiocontext.currentTime; - /** - * Do not initiate the callback if timeFromNow is < 0 - * This ususually occurs for a few milliseconds when the page - * is not fully loaded - * - * The callback should only be called until maxIterations is reached - */ - if (timeFromNow > 0 && self.iterations <= self.maxIterations) { - self.callback(timeFromNow); - } - }, - 'frequency': this._calcFreq() - }); - }; - /** - * Start the loop - * @method start - * @param {Number} [timeFromNow] schedule a starting time - */ - p5.SoundLoop.prototype.start = function (timeFromNow) { - var t = timeFromNow || 0; - var now = p5sound.audiocontext.currentTime; - if (!this.isPlaying) { - this.clock.start(now + t); - this.isPlaying = true; - } - }; - /** - * Stop the loop - * @method stop - * @param {Number} [timeFromNow] schedule a stopping time - */ - p5.SoundLoop.prototype.stop = function (timeFromNow) { - var t = timeFromNow || 0; - var now = p5sound.audiocontext.currentTime; - if (this.isPlaying) { - this.clock.stop(now + t); - this.isPlaying = false; - } - }; - /** - * Pause the loop - * @method pause - * @param {Number} [timeFromNow] schedule a pausing time - */ - p5.SoundLoop.prototype.pause = function (timeFromNow) { - var t = timeFromNow || 0; - var now = p5sound.audiocontext.currentTime; - if (this.isPlaying) { - this.clock.pause(now + t); - this.isPlaying = false; - } - }; - /** - * Synchronize loops. Use this method to start two more more loops in synchronization - * or to start a loop in synchronization with a loop that is already playing - * This method will schedule the implicit loop in sync with the explicit master loop - * i.e. loopToStart.syncedStart(loopToSyncWith) - * - * @method syncedStart - * @param {Object} otherLoop a p5.SoundLoop to sync with - * @param {Number} [timeFromNow] Start the loops in sync after timeFromNow seconds - */ - p5.SoundLoop.prototype.syncedStart = function (otherLoop, timeFromNow) { - var t = timeFromNow || 0; - var now = p5sound.audiocontext.currentTime; - if (!otherLoop.isPlaying) { - otherLoop.clock.start(now + t); - otherLoop.isPlaying = true; - this.clock.start(now + t); - this.isPlaying = true; - } else if (otherLoop.isPlaying) { - var time = otherLoop.clock._nextTick - p5sound.audiocontext.currentTime; - this.clock.start(now + time); - this.isPlaying = true; - } - }; - /** - * Updates frequency value, reflected in next callback - * @private - * @method _update - */ - p5.SoundLoop.prototype._update = function () { - this.clock.frequency.value = this._calcFreq(); - }; - /** - * Calculate the frequency of the clock's callback based on bpm, interval, and timesignature - * @private - * @method _calcFreq - * @return {Number} new clock frequency value - */ - p5.SoundLoop.prototype._calcFreq = function () { - //Seconds mode, bpm / timesignature has no effect - if (typeof this._interval === 'number') { - this.musicalTimeMode = false; - return 1 / this._interval; - } else if (typeof this._interval === 'string') { - this.musicalTimeMode = true; - return this._bpm / 60 / this._convertNotation(this._interval) * (this._timeSignature / 4); - } - }; - /** - * Convert notation from musical time format to seconds - * Uses Tone.Time convention - * @private - * @method _convertNotation - * @param {String} value value to be converted - * @return {Number} converted value in seconds - */ - p5.SoundLoop.prototype._convertNotation = function (value) { - var type = value.slice(-1); - value = Number(value.slice(0, -1)); - switch (type) { - case 'm': - return this._measure(value); - case 'n': - return this._note(value); - default: - console.warn('Specified interval is not formatted correctly. See Tone.js ' + 'timing reference for more info: https://github.com/Tonejs/Tone.js/wiki/Time'); - } - }; - /** - * Helper conversion methods of measure and note - * @private - * @method _measure - * @private - * @method _note - */ - p5.SoundLoop.prototype._measure = function (value) { - return value * this._timeSignature; - }; - p5.SoundLoop.prototype._note = function (value) { - return this._timeSignature / value; - }; - /** - * Getters and Setters, setting any paramter will result in a change in the clock's - * frequency, that will be reflected after the next callback - * beats per minute (defaults to 60) - * @property {Number} bpm - */ - Object.defineProperty(p5.SoundLoop.prototype, 'bpm', { - get: function () { - return this._bpm; - }, - set: function (bpm) { - if (!this.musicalTimeMode) { - console.warn('Changing the BPM in "seconds" mode has no effect. ' + 'BPM is only relevant in musicalTimeMode ' + 'when the interval is specified as a string ' + '("2n", "4n", "1m"...etc)'); - } - this._bpm = bpm; - this._update(); - } - }); - /** - * number of quarter notes in a measure (defaults to 4) - * @property {Number} timeSignature - */ - Object.defineProperty(p5.SoundLoop.prototype, 'timeSignature', { - get: function () { - return this._timeSignature; - }, - set: function (timeSig) { - if (!this.musicalTimeMode) { - console.warn('Changing the timeSignature in "seconds" mode has no effect. ' + 'BPM is only relevant in musicalTimeMode ' + 'when the interval is specified as a string ' + '("2n", "4n", "1m"...etc)'); - } - this._timeSignature = timeSig; - this._update(); - } - }); - /** - * length of the loops interval - * @property {Number|String} interval - */ - Object.defineProperty(p5.SoundLoop.prototype, 'interval', { - get: function () { - return this._interval; - }, - set: function (interval) { - this.musicalTimeMode = typeof interval === 'Number' ? false : true; - this._interval = interval; - this._update(); - } - }); - /** - * how many times the callback has been called so far - * @property {Number} iterations - * @readonly - */ - Object.defineProperty(p5.SoundLoop.prototype, 'iterations', { - get: function () { - return this.clock.ticks; - } - }); - return p5.SoundLoop; -}(master, Tone_core_Clock); -var compressor; -compressor = function () { - 'use strict'; - var p5sound = master; - var Effect = effect; - var CustomError = errorHandler; - /** - * Compressor is an audio effect class that performs dynamics compression - * on an audio input source. This is a very commonly used technique in music - * and sound production. Compression creates an overall louder, richer, - * and fuller sound by lowering the volume of louds and raising that of softs. - * Compression can be used to avoid clipping (sound distortion due to - * peaks in volume) and is especially useful when many sounds are played - * at once. Compression can be used on indivudal sound sources in addition - * to the master output. - * - * This class extends p5.Effect. - * Methods amp(), chain(), - * drywet(), connect(), and - * disconnect() are available. - * - * @class p5.Compressor - * @constructor - * @extends p5.Effect - * - * - */ - p5.Compressor = function () { - Effect.call(this); - /** - * The p5.Compressor is built with a Web Audio Dynamics Compressor Node - * - * @property {AudioNode} compressor - */ - this.compressor = this.ac.createDynamicsCompressor(); - this.input.connect(this.compressor); - this.compressor.connect(this.wet); - }; - p5.Compressor.prototype = Object.create(Effect.prototype); - /** - * Performs the same function as .connect, but also accepts - * optional parameters to set compressor's audioParams - * @method process - * - * @param {Object} src Sound source to be connected - * - * @param {Number} [attack] The amount of time (in seconds) to reduce the gain by 10dB, - * default = .003, range 0 - 1 - * @param {Number} [knee] A decibel value representing the range above the - * threshold where the curve smoothly transitions to the "ratio" portion. - * default = 30, range 0 - 40 - * @param {Number} [ratio] The amount of dB change in input for a 1 dB change in output - * default = 12, range 1 - 20 - * @param {Number} [threshold] The decibel value above which the compression will start taking effect - * default = -24, range -100 - 0 - * @param {Number} [release] The amount of time (in seconds) to increase the gain by 10dB - * default = .25, range 0 - 1 - */ - p5.Compressor.prototype.process = function (src, attack, knee, ratio, threshold, release) { - src.connect(this.input); - this.set(attack, knee, ratio, threshold, release); - }; - /** - * Set the paramters of a compressor. - * @method set - * @param {Number} attack The amount of time (in seconds) to reduce the gain by 10dB, - * default = .003, range 0 - 1 - * @param {Number} knee A decibel value representing the range above the - * threshold where the curve smoothly transitions to the "ratio" portion. - * default = 30, range 0 - 40 - * @param {Number} ratio The amount of dB change in input for a 1 dB change in output - * default = 12, range 1 - 20 - * @param {Number} threshold The decibel value above which the compression will start taking effect - * default = -24, range -100 - 0 - * @param {Number} release The amount of time (in seconds) to increase the gain by 10dB - * default = .25, range 0 - 1 - */ - p5.Compressor.prototype.set = function (attack, knee, ratio, threshold, release) { - if (typeof attack !== 'undefined') { - this.attack(attack); - } - if (typeof knee !== 'undefined') { - this.knee(knee); - } - if (typeof ratio !== 'undefined') { - this.ratio(ratio); - } - if (typeof threshold !== 'undefined') { - this.threshold(threshold); - } - if (typeof release !== 'undefined') { - this.release(release); - } - }; - /** - * Get current attack or set value w/ time ramp - * - * - * @method attack - * @param {Number} [attack] Attack is the amount of time (in seconds) to reduce the gain by 10dB, - * default = .003, range 0 - 1 - * @param {Number} [time] Assign time value to schedule the change in value - */ - p5.Compressor.prototype.attack = function (attack, time) { - var t = time || 0; - if (typeof attack == 'number') { - this.compressor.attack.value = attack; - this.compressor.attack.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.compressor.attack.linearRampToValueAtTime(attack, this.ac.currentTime + 0.02 + t); - } else if (typeof attack !== 'undefined') { - attack.connect(this.compressor.attack); - } - return this.compressor.attack.value; - }; - /** - * Get current knee or set value w/ time ramp - * - * @method knee - * @param {Number} [knee] A decibel value representing the range above the - * threshold where the curve smoothly transitions to the "ratio" portion. - * default = 30, range 0 - 40 - * @param {Number} [time] Assign time value to schedule the change in value - */ - p5.Compressor.prototype.knee = function (knee, time) { - var t = time || 0; - if (typeof knee == 'number') { - this.compressor.knee.value = knee; - this.compressor.knee.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.compressor.knee.linearRampToValueAtTime(knee, this.ac.currentTime + 0.02 + t); - } else if (typeof knee !== 'undefined') { - knee.connect(this.compressor.knee); - } - return this.compressor.knee.value; - }; - /** - * Get current ratio or set value w/ time ramp - * @method ratio - * - * @param {Number} [ratio] The amount of dB change in input for a 1 dB change in output - * default = 12, range 1 - 20 - * @param {Number} [time] Assign time value to schedule the change in value - */ - p5.Compressor.prototype.ratio = function (ratio, time) { - var t = time || 0; - if (typeof ratio == 'number') { - this.compressor.ratio.value = ratio; - this.compressor.ratio.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.compressor.ratio.linearRampToValueAtTime(ratio, this.ac.currentTime + 0.02 + t); - } else if (typeof ratio !== 'undefined') { - ratio.connect(this.compressor.ratio); - } - return this.compressor.ratio.value; - }; - /** - * Get current threshold or set value w/ time ramp - * @method threshold - * - * @param {Number} threshold The decibel value above which the compression will start taking effect - * default = -24, range -100 - 0 - * @param {Number} [time] Assign time value to schedule the change in value - */ - p5.Compressor.prototype.threshold = function (threshold, time) { - var t = time || 0; - if (typeof threshold == 'number') { - this.compressor.threshold.value = threshold; - this.compressor.threshold.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.compressor.threshold.linearRampToValueAtTime(threshold, this.ac.currentTime + 0.02 + t); - } else if (typeof threshold !== 'undefined') { - threshold.connect(this.compressor.threshold); - } - return this.compressor.threshold.value; - }; - /** - * Get current release or set value w/ time ramp - * @method release - * - * @param {Number} release The amount of time (in seconds) to increase the gain by 10dB - * default = .25, range 0 - 1 - * - * @param {Number} [time] Assign time value to schedule the change in value - */ - p5.Compressor.prototype.release = function (release, time) { - var t = time || 0; - if (typeof release == 'number') { - this.compressor.release.value = release; - this.compressor.release.cancelScheduledValues(this.ac.currentTime + 0.01 + t); - this.compressor.release.linearRampToValueAtTime(release, this.ac.currentTime + 0.02 + t); - } else if (typeof number !== 'undefined') { - release.connect(this.compressor.release); - } - return this.compressor.release.value; - }; - /** - * Return the current reduction value - * - * @method reduction - * @return {Number} Value of the amount of gain reduction that is applied to the signal - */ - p5.Compressor.prototype.reduction = function () { - return this.compressor.reduction.value; - }; - p5.Compressor.prototype.dispose = function () { - Effect.prototype.dispose.apply(this); - if (this.compressor) { - this.compressor.disconnect(); - delete this.compressor; - } - }; - return p5.Compressor; -}(master, effect, errorHandler); -var soundRecorder; -'use strict'; -soundRecorder = function () { - // inspiration: recorder.js, Tone.js & typedarray.org - var p5sound = master; - var convertToWav = helpers.convertToWav; - var ac = p5sound.audiocontext; - /** - *

Record sounds for playback and/or to save as a .wav file. - * The p5.SoundRecorder records all sound output from your sketch, - * or can be assigned a specific source with setInput().

- *

The record() method accepts a p5.SoundFile as a parameter. - * When playback is stopped (either after the given amount of time, - * or with the stop() method), the p5.SoundRecorder will send its - * recording to that p5.SoundFile for playback.

- * - * @class p5.SoundRecorder - * @constructor - * @example - *
- * var mic, recorder, soundFile; - * var state = 0; - * - * function setup() { - * background(200); - * // create an audio in - * mic = new p5.AudioIn(); - * - * // prompts user to enable their browser mic - * mic.start(); - * - * // create a sound recorder - * recorder = new p5.SoundRecorder(); - * - * // connect the mic to the recorder - * recorder.setInput(mic); - * - * // this sound file will be used to - * // playback & save the recording - * soundFile = new p5.SoundFile(); - * - * text('keyPress to record', 20, 20); - * } - * - * function keyPressed() { - * // make sure user enabled the mic - * if (state === 0 && mic.enabled) { - * - * // record to our p5.SoundFile - * recorder.record(soundFile); - * - * background(255,0,0); - * text('Recording!', 20, 20); - * state++; - * } - * else if (state === 1) { - * background(0,255,0); - * - * // stop recorder and - * // send result to soundFile - * recorder.stop(); - * - * text('Stopped', 20, 20); - * state++; - * } - * - * else if (state === 2) { - * soundFile.play(); // play the result! - * save(soundFile, 'mySound.wav'); - * state++; - * } - * } - *
- */ - p5.SoundRecorder = function () { - this.input = ac.createGain(); - this.output = ac.createGain(); - this.recording = false; - this.bufferSize = 1024; - this._channels = 2; - // stereo (default) - this._clear(); - // initialize variables - this._jsNode = ac.createScriptProcessor(this.bufferSize, this._channels, 2); - this._jsNode.onaudioprocess = this._audioprocess.bind(this); - /** - * callback invoked when the recording is over - * @private - * @type Function(Float32Array) - */ - this._callback = function () { - }; - // connections - this._jsNode.connect(p5.soundOut._silentNode); - this.setInput(); - // add this p5.SoundFile to the soundArray - p5sound.soundArray.push(this); - }; - /** - * Connect a specific device to the p5.SoundRecorder. - * If no parameter is given, p5.SoundRecorer will record - * all audible p5.sound from your sketch. - * - * @method setInput - * @param {Object} [unit] p5.sound object or a web audio unit - * that outputs sound - */ - p5.SoundRecorder.prototype.setInput = function (unit) { - this.input.disconnect(); - this.input = null; - this.input = ac.createGain(); - this.input.connect(this._jsNode); - this.input.connect(this.output); - if (unit) { - unit.connect(this.input); - } else { - p5.soundOut.output.connect(this.input); - } - }; - /** - * Start recording. To access the recording, provide - * a p5.SoundFile as the first parameter. The p5.SoundRecorder - * will send its recording to that p5.SoundFile for playback once - * recording is complete. Optional parameters include duration - * (in seconds) of the recording, and a callback function that - * will be called once the complete recording has been - * transfered to the p5.SoundFile. - * - * @method record - * @param {p5.SoundFile} soundFile p5.SoundFile - * @param {Number} [duration] Time (in seconds) - * @param {Function} [callback] The name of a function that will be - * called once the recording completes - */ - p5.SoundRecorder.prototype.record = function (sFile, duration, callback) { - this.recording = true; - if (duration) { - this.sampleLimit = Math.round(duration * ac.sampleRate); - } - if (sFile && callback) { - this._callback = function () { - this.buffer = this._getBuffer(); - sFile.setBuffer(this.buffer); - callback(); - }; - } else if (sFile) { - this._callback = function () { - this.buffer = this._getBuffer(); - sFile.setBuffer(this.buffer); - }; - } - }; - /** - * Stop the recording. Once the recording is stopped, - * the results will be sent to the p5.SoundFile that - * was given on .record(), and if a callback function - * was provided on record, that function will be called. - * - * @method stop - */ - p5.SoundRecorder.prototype.stop = function () { - this.recording = false; - this._callback(); - this._clear(); - }; - p5.SoundRecorder.prototype._clear = function () { - this._leftBuffers = []; - this._rightBuffers = []; - this.recordedSamples = 0; - this.sampleLimit = null; - }; - /** - * internal method called on audio process - * - * @private - * @param {AudioProcessorEvent} event - */ - p5.SoundRecorder.prototype._audioprocess = function (event) { - if (this.recording === false) { - return; - } else if (this.recording === true) { - // if we are past the duration, then stop... else: - if (this.sampleLimit && this.recordedSamples >= this.sampleLimit) { - this.stop(); - } else { - // get channel data - var left = event.inputBuffer.getChannelData(0); - var right = event.inputBuffer.getChannelData(1); - // clone the samples - this._leftBuffers.push(new Float32Array(left)); - this._rightBuffers.push(new Float32Array(right)); - this.recordedSamples += this.bufferSize; - } - } - }; - p5.SoundRecorder.prototype._getBuffer = function () { - var buffers = []; - buffers.push(this._mergeBuffers(this._leftBuffers)); - buffers.push(this._mergeBuffers(this._rightBuffers)); - return buffers; - }; - p5.SoundRecorder.prototype._mergeBuffers = function (channelBuffer) { - var result = new Float32Array(this.recordedSamples); - var offset = 0; - var lng = channelBuffer.length; - for (var i = 0; i < lng; i++) { - var buffer = channelBuffer[i]; - result.set(buffer, offset); - offset += buffer.length; - } - return result; - }; - p5.SoundRecorder.prototype.dispose = function () { - this._clear(); - // remove reference from soundArray - var index = p5sound.soundArray.indexOf(this); - p5sound.soundArray.splice(index, 1); - this._callback = function () { - }; - if (this.input) { - this.input.disconnect(); - } - this.input = null; - this._jsNode = null; - }; - /** - * Save a p5.SoundFile as a .wav file. The browser will prompt the user - * to download the file to their device. - * For uploading audio to a server, use - * `p5.SoundFile.saveBlob`. - * - * @for p5 - * @method saveSound - * @param {p5.SoundFile} soundFile p5.SoundFile that you wish to save - * @param {String} fileName name of the resulting .wav file. - */ - // add to p5.prototype as this is used by the p5 `save()` method. - p5.prototype.saveSound = function (soundFile, fileName) { - const dataView = convertToWav(soundFile.buffer); - p5.prototype.writeFile([dataView], fileName, 'wav'); - }; -}(master, helpers); -var peakdetect; -'use strict'; -peakdetect = function () { - /** - *

PeakDetect works in conjunction with p5.FFT to - * look for onsets in some or all of the frequency spectrum. - *

- *

- * To use p5.PeakDetect, call update in the draw loop - * and pass in a p5.FFT object. - *

- *

- * You can listen for a specific part of the frequency spectrum by - * setting the range between freq1 and freq2. - *

- * - *

threshold is the threshold for detecting a peak, - * scaled between 0 and 1. It is logarithmic, so 0.1 is half as loud - * as 1.0.

- * - *

- * The update method is meant to be run in the draw loop, and - * frames determines how many loops must pass before - * another peak can be detected. - * For example, if the frameRate() = 60, you could detect the beat of a - * 120 beat-per-minute song with this equation: - * framesPerPeak = 60 / (estimatedBPM / 60 ); - *

- * - *

- * Based on example contribtued by @b2renger, and a simple beat detection - * explanation by Felix Turner. - *

- * - * @class p5.PeakDetect - * @constructor - * @param {Number} [freq1] lowFrequency - defaults to 20Hz - * @param {Number} [freq2] highFrequency - defaults to 20000 Hz - * @param {Number} [threshold] Threshold for detecting a beat between 0 and 1 - * scaled logarithmically where 0.1 is 1/2 the loudness - * of 1.0. Defaults to 0.35. - * @param {Number} [framesPerPeak] Defaults to 20. - * @example - *
- * - * var cnv, soundFile, fft, peakDetect; - * var ellipseWidth = 10; - * - * function preload() { - * soundFile = loadSound('assets/beat.mp3'); - * } - * - * function setup() { - * background(0); - * noStroke(); - * fill(255); - * textAlign(CENTER); - * - * // p5.PeakDetect requires a p5.FFT - * fft = new p5.FFT(); - * peakDetect = new p5.PeakDetect(); - * } - * - * function draw() { - * background(0); - * text('click to play/pause', width/2, height/2); - * - * // peakDetect accepts an fft post-analysis - * fft.analyze(); - * peakDetect.update(fft); - * - * if ( peakDetect.isDetected ) { - * ellipseWidth = 50; - * } else { - * ellipseWidth *= 0.95; - * } - * - * ellipse(width/2, height/2, ellipseWidth, ellipseWidth); - * } - * - * // toggle play/stop when canvas is clicked - * function mouseClicked() { - * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { - * if (soundFile.isPlaying() ) { - * soundFile.stop(); - * } else { - * soundFile.play(); - * } - * } - * } - *
- */ - p5.PeakDetect = function (freq1, freq2, threshold, _framesPerPeak) { - // framesPerPeak determines how often to look for a beat. - // If a beat is provided, try to look for a beat based on bpm - this.framesPerPeak = _framesPerPeak || 20; - this.framesSinceLastPeak = 0; - this.decayRate = 0.95; - this.threshold = threshold || 0.35; - this.cutoff = 0; - // how much to increase the cutoff - // TO DO: document this / figure out how to make it accessible - this.cutoffMult = 1.5; - this.energy = 0; - this.penergy = 0; - // TO DO: document this property / figure out how to make it accessible - this.currentValue = 0; - /** - * isDetected is set to true when a peak is detected. - * - * @attribute isDetected {Boolean} - * @default false - */ - this.isDetected = false; - this.f1 = freq1 || 40; - this.f2 = freq2 || 20000; - // function to call when a peak is detected - this._onPeak = function () { - }; - }; - /** - * The update method is run in the draw loop. - * - * Accepts an FFT object. You must call .analyze() - * on the FFT object prior to updating the peakDetect - * because it relies on a completed FFT analysis. - * - * @method update - * @param {p5.FFT} fftObject A p5.FFT object - */ - p5.PeakDetect.prototype.update = function (fftObject) { - var nrg = this.energy = fftObject.getEnergy(this.f1, this.f2) / 255; - if (nrg > this.cutoff && nrg > this.threshold && nrg - this.penergy > 0) { - // trigger callback - this._onPeak(); - this.isDetected = true; - // debounce - this.cutoff = nrg * this.cutoffMult; - this.framesSinceLastPeak = 0; - } else { - this.isDetected = false; - if (this.framesSinceLastPeak <= this.framesPerPeak) { - this.framesSinceLastPeak++; - } else { - this.cutoff *= this.decayRate; - this.cutoff = Math.max(this.cutoff, this.threshold); - } - } - this.currentValue = nrg; - this.penergy = nrg; - }; - /** - * onPeak accepts two arguments: a function to call when - * a peak is detected. The value of the peak, - * between 0.0 and 1.0, is passed to the callback. - * - * @method onPeak - * @param {Function} callback Name of a function that will - * be called when a peak is - * detected. - * @param {Object} [val] Optional value to pass - * into the function when - * a peak is detected. - * @example - *
- * var cnv, soundFile, fft, peakDetect; - * var ellipseWidth = 0; - * - * function preload() { - * soundFile = loadSound('assets/beat.mp3'); - * } - * - * function setup() { - * cnv = createCanvas(100,100); - * textAlign(CENTER); - * - * fft = new p5.FFT(); - * peakDetect = new p5.PeakDetect(); - * - * setupSound(); - * - * // when a beat is detected, call triggerBeat() - * peakDetect.onPeak(triggerBeat); - * } - * - * function draw() { - * background(0); - * fill(255); - * text('click to play', width/2, height/2); - * - * fft.analyze(); - * peakDetect.update(fft); - * - * ellipseWidth *= 0.95; - * ellipse(width/2, height/2, ellipseWidth, ellipseWidth); - * } - * - * // this function is called by peakDetect.onPeak - * function triggerBeat() { - * ellipseWidth = 50; - * } - * - * // mouseclick starts/stops sound - * function setupSound() { - * cnv.mouseClicked( function() { - * if (soundFile.isPlaying() ) { - * soundFile.stop(); - * } else { - * soundFile.play(); - * } - * }); - * } - *
- */ - p5.PeakDetect.prototype.onPeak = function (callback, val) { - var self = this; - self._onPeak = function () { - callback(self.energy, val); - }; - }; -}(); -var gain; -'use strict'; -gain = function () { - var p5sound = master; - /** - * A gain node is usefull to set the relative volume of sound. - * It's typically used to build mixers. - * - * @class p5.Gain - * @constructor - * @example - *
- * - * // load two soundfile and crossfade beetween them - * var sound1,sound2; - * var gain1, gain2, gain3; - * - * function preload(){ - * soundFormats('ogg', 'mp3'); - * sound1 = loadSound('assets/Damscray_-_Dancing_Tiger_01'); - * sound2 = loadSound('assets/beat.mp3'); - * } - * - * function setup() { - * createCanvas(400,200); - * - * // create a 'master' gain to which we will connect both soundfiles - * gain3 = new p5.Gain(); - * gain3.connect(); - * - * // setup first sound for playing - * sound1.rate(1); - * sound1.loop(); - * sound1.disconnect(); // diconnect from p5 output - * - * gain1 = new p5.Gain(); // setup a gain node - * gain1.setInput(sound1); // connect the first sound to its input - * gain1.connect(gain3); // connect its output to the 'master' - * - * sound2.rate(1); - * sound2.disconnect(); - * sound2.loop(); - * - * gain2 = new p5.Gain(); - * gain2.setInput(sound2); - * gain2.connect(gain3); - * - * } - * - * function draw(){ - * background(180); - * - * // calculate the horizontal distance beetween the mouse and the right of the screen - * var d = dist(mouseX,0,width,0); - * - * // map the horizontal position of the mouse to values useable for volume control of sound1 - * var vol1 = map(mouseX,0,width,0,1); - * var vol2 = 1-vol1; // when sound1 is loud, sound2 is quiet and vice versa - * - * gain1.amp(vol1,0.5,0); - * gain2.amp(vol2,0.5,0); - * - * // map the vertical position of the mouse to values useable for 'master volume control' - * var vol3 = map(mouseY,0,height,0,1); - * gain3.amp(vol3,0.5,0); - * } - *
- * - */ - p5.Gain = function () { - this.ac = p5sound.audiocontext; - this.input = this.ac.createGain(); - this.output = this.ac.createGain(); - // otherwise, Safari distorts - this.input.gain.value = 0.5; - this.input.connect(this.output); - // add to the soundArray - p5sound.soundArray.push(this); - }; - /** - * Connect a source to the gain node. - * - * @method setInput - * @param {Object} src p5.sound / Web Audio object with a sound - * output. - */ - p5.Gain.prototype.setInput = function (src) { - src.connect(this.input); - }; - /** - * Send output to a p5.sound or web audio object - * - * @method connect - * @param {Object} unit - */ - p5.Gain.prototype.connect = function (unit) { - var u = unit || p5.soundOut.input; - this.output.connect(u.input ? u.input : u); - }; - /** - * Disconnect all output. - * - * @method disconnect - */ - p5.Gain.prototype.disconnect = function () { - if (this.output) { - this.output.disconnect(); - } - }; - /** - * Set the output level of the gain node. - * - * @method amp - * @param {Number} volume amplitude between 0 and 1.0 - * @param {Number} [rampTime] create a fade that lasts rampTime - * @param {Number} [timeFromNow] schedule this event to happen - * seconds from now - */ - p5.Gain.prototype.amp = function (vol, rampTime, tFromNow) { - var rampTime = rampTime || 0; - var tFromNow = tFromNow || 0; - var now = p5sound.audiocontext.currentTime; - var currentVol = this.output.gain.value; - this.output.gain.cancelScheduledValues(now); - this.output.gain.linearRampToValueAtTime(currentVol, now + tFromNow); - this.output.gain.linearRampToValueAtTime(vol, now + tFromNow + rampTime); - }; - p5.Gain.prototype.dispose = function () { - // remove reference from soundArray - var index = p5sound.soundArray.indexOf(this); - p5sound.soundArray.splice(index, 1); - if (this.output) { - this.output.disconnect(); - delete this.output; - } - if (this.input) { - this.input.disconnect(); - delete this.input; - } - }; -}(master); -var audioVoice; -'use strict'; -audioVoice = function () { - var p5sound = master; - /** - * Base class for monophonic synthesizers. Any extensions of this class - * should follow the API and implement the methods below in order to - * remain compatible with p5.PolySynth(); - * - * @class p5.AudioVoice - * @constructor - */ - p5.AudioVoice = function () { - this.ac = p5sound.audiocontext; - this.output = this.ac.createGain(); - this.connect(); - p5sound.soundArray.push(this); - }; - p5.AudioVoice.prototype.play = function (note, velocity, secondsFromNow, sustime) { - }; - p5.AudioVoice.prototype.triggerAttack = function (note, velocity, secondsFromNow) { - }; - p5.AudioVoice.prototype.triggerRelease = function (secondsFromNow) { - }; - p5.AudioVoice.prototype.amp = function (vol, rampTime) { - }; - /** - * Connect to p5 objects or Web Audio Nodes - * @method connect - * @param {Object} unit - */ - p5.AudioVoice.prototype.connect = function (unit) { - var u = unit || p5sound.input; - this.output.connect(u.input ? u.input : u); - }; - /** - * Disconnect from soundOut - * @method disconnect - */ - p5.AudioVoice.prototype.disconnect = function () { - this.output.disconnect(); - }; - p5.AudioVoice.prototype.dispose = function () { - if (this.output) { - this.output.disconnect(); - delete this.output; - } - }; - return p5.AudioVoice; -}(master); -var monosynth; -'use strict'; -monosynth = function () { - var p5sound = master; - var AudioVoice = audioVoice; - var noteToFreq = helpers.noteToFreq; - var DEFAULT_SUSTAIN = 0.15; - /** - * A MonoSynth is used as a single voice for sound synthesis. - * This is a class to be used in conjunction with the PolySynth - * class. Custom synthetisers should be built inheriting from - * this class. - * - * @class p5.MonoSynth - * @constructor - * @example - *
- * var monoSynth; - * - * function setup() { - * var cnv = createCanvas(100, 100); - * cnv.mousePressed(playSynth); - * - * monoSynth = new p5.MonoSynth(); - * - * textAlign(CENTER); - * text('click to play', width/2, height/2); - * } - * - * function playSynth() { - * // time from now (in seconds) - * var time = 0; - * // note duration (in seconds) - * var dur = 0.25; - * // velocity (volume, from 0 to 1) - * var v = 0.2; - * - * monoSynth.play("G3", v, time, dur); - * monoSynth.play("C4", v, time += dur, dur); - * - * background(random(255), random(255), 255); - * text('click to play', width/2, height/2); - * } - *
- **/ - p5.MonoSynth = function () { - AudioVoice.call(this); - this.oscillator = new p5.Oscillator(); - this.env = new p5.Envelope(); - this.env.setRange(1, 0); - this.env.setExp(true); - //set params - this.setADSR(0.02, 0.25, 0.05, 0.35); - // oscillator --> env --> this.output (gain) --> p5.soundOut - this.oscillator.disconnect(); - this.oscillator.connect(this.output); - this.env.disconnect(); - this.env.setInput(this.output.gain); - // reset oscillator gain to 1.0 - this.oscillator.output.gain.value = 1; - this.oscillator.start(); - this.connect(); - p5sound.soundArray.push(this); - }; - p5.MonoSynth.prototype = Object.create(p5.AudioVoice.prototype); - /** - * Play tells the MonoSynth to start playing a note. This method schedules - * the calling of .triggerAttack and .triggerRelease. - * - * @method play - * @param {String | Number} note the note you want to play, specified as a - * frequency in Hertz (Number) or as a midi - * value in Note/Octave format ("C4", "Eb3"...etc") - * See - * Tone. Defaults to 440 hz. - * @param {Number} [velocity] velocity of the note to play (ranging from 0 to 1) - * @param {Number} [secondsFromNow] time from now (in seconds) at which to play - * @param {Number} [sustainTime] time to sustain before releasing the envelope - * @example - *
- * var monoSynth; - * - * function setup() { - * var cnv = createCanvas(100, 100); - * cnv.mousePressed(playSynth); - * - * monoSynth = new p5.MonoSynth(); - * - * textAlign(CENTER); - * text('click to play', width/2, height/2); - * } - * - * function playSynth() { - * // time from now (in seconds) - * var time = 0; - * // note duration (in seconds) - * var dur = 1/6; - * // note velocity (volume, from 0 to 1) - * var v = random(); - * - * monoSynth.play("Fb3", v, 0, dur); - * monoSynth.play("Gb3", v, time += dur, dur); - * - * background(random(255), random(255), 255); - * text('click to play', width/2, height/2); - * } - *
- * - */ - p5.MonoSynth.prototype.play = function (note, velocity, secondsFromNow, susTime) { - this.triggerAttack(note, velocity, ~~secondsFromNow); - this.triggerRelease(~~secondsFromNow + (susTime || DEFAULT_SUSTAIN)); - }; - /** - * Trigger the Attack, and Decay portion of the Envelope. - * Similar to holding down a key on a piano, but it will - * hold the sustain level until you let go. - * - * @param {String | Number} note the note you want to play, specified as a - * frequency in Hertz (Number) or as a midi - * value in Note/Octave format ("C4", "Eb3"...etc") - * See - * Tone. Defaults to 440 hz - * @param {Number} [velocity] velocity of the note to play (ranging from 0 to 1) - * @param {Number} [secondsFromNow] time from now (in seconds) at which to play - * @method triggerAttack - * @example - *
- * var monoSynth = new p5.MonoSynth(); - * - * function mousePressed() { - * monoSynth.triggerAttack("E3"); - * } - * - * function mouseReleased() { - * monoSynth.triggerRelease(); - * } - *
- */ - p5.MonoSynth.prototype.triggerAttack = function (note, velocity, secondsFromNow) { - var secondsFromNow = ~~secondsFromNow; - var freq = noteToFreq(note); - var vel = velocity || 0.1; - this.oscillator.freq(freq, 0, secondsFromNow); - this.env.ramp(this.output.gain, secondsFromNow, vel); - }; - /** - * Trigger the release of the Envelope. This is similar to releasing - * the key on a piano and letting the sound fade according to the - * release level and release time. - * - * @param {Number} secondsFromNow time to trigger the release - * @method triggerRelease - * @example - *
- * var monoSynth = new p5.MonoSynth(); - * - * function mousePressed() { - * monoSynth.triggerAttack("E3"); - * } - * - * function mouseReleased() { - * monoSynth.triggerRelease(); - * } - *
- */ - p5.MonoSynth.prototype.triggerRelease = function (secondsFromNow) { - var secondsFromNow = secondsFromNow || 0; - this.env.ramp(this.output.gain, secondsFromNow, 0); - }; - /** - * Set values like a traditional - * - * ADSR envelope - * . - * - * @method setADSR - * @param {Number} attackTime Time (in seconds before envelope - * reaches Attack Level - * @param {Number} [decayTime] Time (in seconds) before envelope - * reaches Decay/Sustain Level - * @param {Number} [susRatio] Ratio between attackLevel and releaseLevel, on a scale from 0 to 1, - * where 1.0 = attackLevel, 0.0 = releaseLevel. - * The susRatio determines the decayLevel and the level at which the - * sustain portion of the envelope will sustain. - * For example, if attackLevel is 0.4, releaseLevel is 0, - * and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is - * increased to 1.0 (using setRange), - * then decayLevel would increase proportionally, to become 0.5. - * @param {Number} [releaseTime] Time in seconds from now (defaults to 0) - */ - p5.MonoSynth.prototype.setADSR = function (attack, decay, sustain, release) { - this.env.setADSR(attack, decay, sustain, release); - }; - /** - * Getters and Setters - * @property {Number} attack - */ - /** - * @property {Number} decay - */ - /** - * @property {Number} sustain - */ - /** - * @property {Number} release - */ - Object.defineProperties(p5.MonoSynth.prototype, { - 'attack': { - get: function () { - return this.env.aTime; - }, - set: function (attack) { - this.env.setADSR(attack, this.env.dTime, this.env.sPercent, this.env.rTime); - } - }, - 'decay': { - get: function () { - return this.env.dTime; - }, - set: function (decay) { - this.env.setADSR(this.env.aTime, decay, this.env.sPercent, this.env.rTime); - } - }, - 'sustain': { - get: function () { - return this.env.sPercent; - }, - set: function (sustain) { - this.env.setADSR(this.env.aTime, this.env.dTime, sustain, this.env.rTime); - } - }, - 'release': { - get: function () { - return this.env.rTime; - }, - set: function (release) { - this.env.setADSR(this.env.aTime, this.env.dTime, this.env.sPercent, release); - } - } - }); - /** - * MonoSynth amp - * @method amp - * @param {Number} vol desired volume - * @param {Number} [rampTime] Time to reach new volume - * @return {Number} new volume value - */ - p5.MonoSynth.prototype.amp = function (vol, rampTime) { - var t = rampTime || 0; - if (typeof vol !== 'undefined') { - this.oscillator.amp(vol, t); - } - return this.oscillator.amp().value; - }; - /** - * Connect to a p5.sound / Web Audio object. - * - * @method connect - * @param {Object} unit A p5.sound or Web Audio object - */ - p5.MonoSynth.prototype.connect = function (unit) { - var u = unit || p5sound.input; - this.output.connect(u.input ? u.input : u); - }; - /** - * Disconnect all outputs - * - * @method disconnect - */ - p5.MonoSynth.prototype.disconnect = function () { - if (this.output) { - this.output.disconnect(); - } - }; - /** - * Get rid of the MonoSynth and free up its resources / memory. - * - * @method dispose - */ - p5.MonoSynth.prototype.dispose = function () { - AudioVoice.prototype.dispose.apply(this); - if (this.env) { - this.env.dispose(); - } - if (this.oscillator) { - this.oscillator.dispose(); - } - }; -}(master, audioVoice, helpers); -var polysynth; -'use strict'; -polysynth = function () { - var p5sound = master; - var TimelineSignal = Tone_signal_TimelineSignal; - var noteToFreq = helpers.noteToFreq; - /** - * An AudioVoice is used as a single voice for sound synthesis. - * The PolySynth class holds an array of AudioVoice, and deals - * with voices allocations, with setting notes to be played, and - * parameters to be set. - * - * @class p5.PolySynth - * @constructor - * - * @param {Number} [synthVoice] A monophonic synth voice inheriting - * the AudioVoice class. Defaults to p5.MonoSynth - * @param {Number} [maxVoices] Number of voices, defaults to 8; - * @example - *
- * var polySynth; - * - * function setup() { - * var cnv = createCanvas(100, 100); - * cnv.mousePressed(playSynth); - * - * polySynth = new p5.PolySynth(); - * - * textAlign(CENTER); - * text('click to play', width/2, height/2); - * } - * - * function playSynth() { - * // note duration (in seconds) - * var dur = 1.5; - * - * // time from now (in seconds) - * var time = 0; - * - * // velocity (volume, from 0 to 1) - * var vel = 0.1; - * - * // notes can overlap with each other - * polySynth.play("G2", vel, 0, dur); - * polySynth.play("C3", vel, time += 1/3, dur); - * polySynth.play("G3", vel, time += 1/3, dur); - * - * background(random(255), random(255), 255); - * text('click to play', width/2, height/2); - * } - *
- **/ - p5.PolySynth = function (audioVoice, maxVoices) { - //audiovoices will contain maxVoices many monophonic synths - this.audiovoices = []; - /** - * An object that holds information about which notes have been played and - * which notes are currently being played. New notes are added as keys - * on the fly. While a note has been attacked, but not released, the value of the - * key is the audiovoice which is generating that note. When notes are released, - * the value of the key becomes undefined. - * @property notes - */ - this.notes = {}; - //indices of the most recently used, and least recently used audiovoice - this._newest = 0; - this._oldest = 0; - /** - * A PolySynth must have at least 1 voice, defaults to 8 - * @property polyvalue - */ - this.maxVoices = maxVoices || 8; - /** - * Monosynth that generates the sound for each note that is triggered. The - * p5.PolySynth defaults to using the p5.MonoSynth as its voice. - * @property AudioVoice - */ - this.AudioVoice = audioVoice === undefined ? p5.MonoSynth : audioVoice; - /** - * This value must only change as a note is attacked or released. Due to delay - * and sustain times, Tone.TimelineSignal is required to schedule the change in value. - * @private - * @property {Tone.TimelineSignal} _voicesInUse - */ - this._voicesInUse = new TimelineSignal(0); - this.output = p5sound.audiocontext.createGain(); - this.connect(); - //Construct the appropriate number of audiovoices - this._allocateVoices(); - p5sound.soundArray.push(this); - }; - /** - * Construct the appropriate number of audiovoices - * @private - * @method _allocateVoices - */ - p5.PolySynth.prototype._allocateVoices = function () { - for (var i = 0; i < this.maxVoices; i++) { - this.audiovoices.push(new this.AudioVoice()); - this.audiovoices[i].disconnect(); - this.audiovoices[i].connect(this.output); - } - }; - /** - * Play a note by triggering noteAttack and noteRelease with sustain time - * - * @method play - * @param {Number} [note] midi note to play (ranging from 0 to 127 - 60 being a middle C) - * @param {Number} [velocity] velocity of the note to play (ranging from 0 to 1) - * @param {Number} [secondsFromNow] time from now (in seconds) at which to play - * @param {Number} [sustainTime] time to sustain before releasing the envelope - * @example - *
- * var polySynth; - * - * function setup() { - * var cnv = createCanvas(100, 100); - * cnv.mousePressed(playSynth); - * - * polySynth = new p5.PolySynth(); - * - * textAlign(CENTER); - * text('click to play', width/2, height/2); - * } - * - * function playSynth() { - * // note duration (in seconds) - * var dur = 0.1; - * - * // time from now (in seconds) - * var time = 0; - * - * // velocity (volume, from 0 to 1) - * var vel = 0.1; - * - * polySynth.play("G2", vel, 0, dur); - * polySynth.play("C3", vel, 0, dur); - * polySynth.play("G3", vel, 0, dur); - * - * background(random(255), random(255), 255); - * text('click to play', width/2, height/2); - * } - *
- */ - p5.PolySynth.prototype.play = function (note, velocity, secondsFromNow, susTime) { - var susTime = susTime || 1; - this.noteAttack(note, velocity, secondsFromNow); - this.noteRelease(note, secondsFromNow + susTime); - }; - /** - * noteADSR sets the envelope for a specific note that has just been triggered. - * Using this method modifies the envelope of whichever audiovoice is being used - * to play the desired note. The envelope should be reset before noteRelease is called - * in order to prevent the modified envelope from being used on other notes. - * - * @method noteADSR - * @param {Number} [note] Midi note on which ADSR should be set. - * @param {Number} [attackTime] Time (in seconds before envelope - * reaches Attack Level - * @param {Number} [decayTime] Time (in seconds) before envelope - * reaches Decay/Sustain Level - * @param {Number} [susRatio] Ratio between attackLevel and releaseLevel, on a scale from 0 to 1, - * where 1.0 = attackLevel, 0.0 = releaseLevel. - * The susRatio determines the decayLevel and the level at which the - * sustain portion of the envelope will sustain. - * For example, if attackLevel is 0.4, releaseLevel is 0, - * and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is - * increased to 1.0 (using setRange), - * then decayLevel would increase proportionally, to become 0.5. - * @param {Number} [releaseTime] Time in seconds from now (defaults to 0) - **/ - p5.PolySynth.prototype.noteADSR = function (note, a, d, s, r, timeFromNow) { - var now = p5sound.audiocontext.currentTime; - var timeFromNow = timeFromNow || 0; - var t = now + timeFromNow; - this.audiovoices[this.notes[note].getValueAtTime(t)].setADSR(a, d, s, r); - }; - /** - * Set the PolySynths global envelope. This method modifies the envelopes of each - * monosynth so that all notes are played with this envelope. - * - * @method setADSR - * @param {Number} [attackTime] Time (in seconds before envelope - * reaches Attack Level - * @param {Number} [decayTime] Time (in seconds) before envelope - * reaches Decay/Sustain Level - * @param {Number} [susRatio] Ratio between attackLevel and releaseLevel, on a scale from 0 to 1, - * where 1.0 = attackLevel, 0.0 = releaseLevel. - * The susRatio determines the decayLevel and the level at which the - * sustain portion of the envelope will sustain. - * For example, if attackLevel is 0.4, releaseLevel is 0, - * and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is - * increased to 1.0 (using setRange), - * then decayLevel would increase proportionally, to become 0.5. - * @param {Number} [releaseTime] Time in seconds from now (defaults to 0) - **/ - p5.PolySynth.prototype.setADSR = function (a, d, s, r) { - this.audiovoices.forEach(function (voice) { - voice.setADSR(a, d, s, r); - }); - }; - /** - * Trigger the Attack, and Decay portion of a MonoSynth. - * Similar to holding down a key on a piano, but it will - * hold the sustain level until you let go. - * - * @method noteAttack - * @param {Number} [note] midi note on which attack should be triggered. - * @param {Number} [velocity] velocity of the note to play (ranging from 0 to 1)/ - * @param {Number} [secondsFromNow] time from now (in seconds) - * @example - *
- * var polySynth = new p5.PolySynth(); - * var pitches = ["G", "D", "G", "C"]; - * var octaves = [2, 3, 4]; - * - * function mousePressed() { - * // play a chord: multiple notes at the same time - * for (var i = 0; i < 4; i++) { - * var note = random(pitches) + random(octaves); - * polySynth.noteAttack(note, 0.1); - * } - * } - * - * function mouseReleased() { - * // release all voices - * polySynth.noteRelease(); - * } - *
- */ - p5.PolySynth.prototype.noteAttack = function (_note, _velocity, secondsFromNow) { - //this value goes to the audiovoices which handle their own scheduling - var secondsFromNow = ~~secondsFromNow; - //this value is used by this._voicesInUse - var acTime = p5sound.audiocontext.currentTime + secondsFromNow; - //Convert note to frequency if necessary. This is because entries into this.notes - //should be based on frequency for the sake of consistency. - var note = noteToFreq(_note); - var velocity = _velocity || 0.1; - var currentVoice; - //Release the note if it is already playing - if (this.notes[note] && this.notes[note].getValueAtTime(acTime) !== null) { - this.noteRelease(note, 0); - } - //Check to see how many voices are in use at the time the note will start - if (this._voicesInUse.getValueAtTime(acTime) < this.maxVoices) { - currentVoice = Math.max(~~this._voicesInUse.getValueAtTime(acTime), 0); - } else { - currentVoice = this._oldest; - var oldestNote = p5.prototype.freqToMidi(this.audiovoices[this._oldest].oscillator.freq().value); - this.noteRelease(oldestNote); - this._oldest = (this._oldest + 1) % (this.maxVoices - 1); - } - //Overrite the entry in the notes object. A note (frequency value) - //corresponds to the index of the audiovoice that is playing it - this.notes[note] = new TimelineSignal(); - this.notes[note].setValueAtTime(currentVoice, acTime); - //Find the scheduled change in this._voicesInUse that will be previous to this new note - //Add 1 and schedule this value at time 't', when this note will start playing - var previousVal = this._voicesInUse._searchBefore(acTime) === null ? 0 : this._voicesInUse._searchBefore(acTime).value; - this._voicesInUse.setValueAtTime(previousVal + 1, acTime); - //Then update all scheduled values that follow to increase by 1 - this._updateAfter(acTime, 1); - this._newest = currentVoice; - //The audiovoice handles the actual scheduling of the note - if (typeof velocity === 'number') { - var maxRange = 1 / this._voicesInUse.getValueAtTime(acTime) * 2; - velocity = velocity > maxRange ? maxRange : velocity; - } - this.audiovoices[currentVoice].triggerAttack(note, velocity, secondsFromNow); - }; - /** - * Private method to ensure accurate values of this._voicesInUse - * Any time a new value is scheduled, it is necessary to increment all subsequent - * scheduledValues after attack, and decrement all subsequent - * scheduledValues after release - * - * @private - * @param {[type]} time [description] - * @param {[type]} value [description] - * @return {[type]} [description] - */ - p5.PolySynth.prototype._updateAfter = function (time, value) { - if (this._voicesInUse._searchAfter(time) === null) { - return; - } else { - this._voicesInUse._searchAfter(time).value += value; - var nextTime = this._voicesInUse._searchAfter(time).time; - this._updateAfter(nextTime, value); - } - }; - /** - * Trigger the Release of an AudioVoice note. This is similar to releasing - * the key on a piano and letting the sound fade according to the - * release level and release time. - * - * @method noteRelease - * @param {Number} [note] midi note on which attack should be triggered. - * If no value is provided, all notes will be released. - * @param {Number} [secondsFromNow] time to trigger the release - * @example - *
- * var pitches = ["G", "D", "G", "C"]; - * var octaves = [2, 3, 4]; - * var polySynth = new p5.PolySynth(); - * - * function mousePressed() { - * // play a chord: multiple notes at the same time - * for (var i = 0; i < 4; i++) { - * var note = random(pitches) + random(octaves); - * polySynth.noteAttack(note, 0.1); - * } - * } - * - * function mouseReleased() { - * // release all voices - * polySynth.noteRelease(); - * } - *
- * - */ - p5.PolySynth.prototype.noteRelease = function (_note, secondsFromNow) { - var now = p5sound.audiocontext.currentTime; - var tFromNow = secondsFromNow || 0; - var t = now + tFromNow; - // if a note value is not provided, release all voices - if (!_note) { - this.audiovoices.forEach(function (voice) { - voice.triggerRelease(tFromNow); - }); - this._voicesInUse.setValueAtTime(0, t); - for (var n in this.notes) { - this.notes[n].dispose(); - delete this.notes[n]; - } - return; - } - //Make sure note is in frequency inorder to query the this.notes object - var note = noteToFreq(_note); - if (!this.notes[note] || this.notes[note].getValueAtTime(t) === null) { - console.warn('Cannot release a note that is not already playing'); - } else { - //Find the scheduled change in this._voicesInUse that will be previous to this new note - //subtract 1 and schedule this value at time 't', when this note will stop playing - var previousVal = Math.max(~~this._voicesInUse.getValueAtTime(t).value, 1); - this._voicesInUse.setValueAtTime(previousVal - 1, t); - //Then update all scheduled values that follow to decrease by 1 but never go below 0 - if (previousVal > 0) { - this._updateAfter(t, -1); - } - this.audiovoices[this.notes[note].getValueAtTime(t)].triggerRelease(tFromNow); - this.notes[note].dispose(); - delete this.notes[note]; - this._newest = this._newest === 0 ? 0 : (this._newest - 1) % (this.maxVoices - 1); - } - }; - /** - * Connect to a p5.sound / Web Audio object. - * - * @method connect - * @param {Object} unit A p5.sound or Web Audio object - */ - p5.PolySynth.prototype.connect = function (unit) { - var u = unit || p5sound.input; - this.output.connect(u.input ? u.input : u); - }; - /** - * Disconnect all outputs - * - * @method disconnect - */ - p5.PolySynth.prototype.disconnect = function () { - if (this.output) { - this.output.disconnect(); - } - }; - /** - * Get rid of the MonoSynth and free up its resources / memory. - * - * @method dispose - */ - p5.PolySynth.prototype.dispose = function () { - this.audiovoices.forEach(function (voice) { - voice.dispose(); - }); - if (this.output) { - this.output.disconnect(); - delete this.output; - } - }; -}(master, Tone_signal_TimelineSignal, helpers); -var distortion; -'use strict'; -distortion = function () { - var Effect = effect; - /* - * Adapted from [Kevin Ennis on StackOverflow](http://stackoverflow.com/questions/22312841/waveshaper-node-in-webaudio-how-to-emulate-distortion) - */ - function makeDistortionCurve(amount) { - var k = typeof amount === 'number' ? amount : 50; - var numSamples = 44100; - var curve = new Float32Array(numSamples); - var deg = Math.PI / 180; - var i = 0; - var x; - for (; i < numSamples; ++i) { - x = i * 2 / numSamples - 1; - curve[i] = (3 + k) * x * 20 * deg / (Math.PI + k * Math.abs(x)); - } - return curve; - } - /** - * A Distortion effect created with a Waveshaper Node, - * with an approach adapted from - * [Kevin Ennis](http://stackoverflow.com/questions/22312841/waveshaper-node-in-webaudio-how-to-emulate-distortion) - * - * This class extends p5.Effect. - * Methods amp(), chain(), - * drywet(), connect(), and - * disconnect() are available. - * - * @class p5.Distortion - * @extends p5.Effect - * @constructor - * @param {Number} [amount=0.25] Unbounded distortion amount. - * Normal values range from 0-1. - * @param {String} [oversample='none'] 'none', '2x', or '4x'. - * - */ - p5.Distortion = function (amount, oversample) { - Effect.call(this); - if (typeof amount === 'undefined') { - amount = 0.25; - } - if (typeof amount !== 'number') { - throw new Error('amount must be a number'); - } - if (typeof oversample === 'undefined') { - oversample = '2x'; - } - if (typeof oversample !== 'string') { - throw new Error('oversample must be a String'); - } - var curveAmount = p5.prototype.map(amount, 0, 1, 0, 2000); - /** - * The p5.Distortion is built with a - * - * Web Audio WaveShaper Node. - * - * @property {AudioNode} WaveShaperNode - */ - this.waveShaperNode = this.ac.createWaveShaper(); - this.amount = curveAmount; - this.waveShaperNode.curve = makeDistortionCurve(curveAmount); - this.waveShaperNode.oversample = oversample; - this.input.connect(this.waveShaperNode); - this.waveShaperNode.connect(this.wet); - }; - p5.Distortion.prototype = Object.create(Effect.prototype); - /** - * Process a sound source, optionally specify amount and oversample values. - * - * @method process - * @param {Number} [amount=0.25] Unbounded distortion amount. - * Normal values range from 0-1. - * @param {String} [oversample='none'] 'none', '2x', or '4x'. - */ - p5.Distortion.prototype.process = function (src, amount, oversample) { - src.connect(this.input); - this.set(amount, oversample); - }; - /** - * Set the amount and oversample of the waveshaper distortion. - * - * @method set - * @param {Number} [amount=0.25] Unbounded distortion amount. - * Normal values range from 0-1. - * @param {String} [oversample='none'] 'none', '2x', or '4x'. - */ - p5.Distortion.prototype.set = function (amount, oversample) { - if (amount) { - var curveAmount = p5.prototype.map(amount, 0, 1, 0, 2000); - this.amount = curveAmount; - this.waveShaperNode.curve = makeDistortionCurve(curveAmount); - } - if (oversample) { - this.waveShaperNode.oversample = oversample; - } - }; - /** - * Return the distortion amount, typically between 0-1. - * - * @method getAmount - * @return {Number} Unbounded distortion amount. - * Normal values range from 0-1. - */ - p5.Distortion.prototype.getAmount = function () { - return this.amount; - }; - /** - * Return the oversampling. - * - * @method getOversample - * - * @return {String} Oversample can either be 'none', '2x', or '4x'. - */ - p5.Distortion.prototype.getOversample = function () { - return this.waveShaperNode.oversample; - }; - p5.Distortion.prototype.dispose = function () { - Effect.prototype.dispose.apply(this); - if (this.waveShaperNode) { - this.waveShaperNode.disconnect(); - this.waveShaperNode = null; - } - }; -}(effect); -var src_app; -'use strict'; -src_app = function () { - var p5SOUND = master; - return p5SOUND; -}(shims, audiocontext, master, helpers, errorHandler, panner, soundfile, amplitude, fft, signal, oscillator, envelope, pulse, noise, audioin, filter, eq, panner3d, listener3d, delay, reverb, metro, looper, soundloop, compressor, soundRecorder, peakdetect, gain, monosynth, polysynth, distortion, audioVoice, monosynth, polysynth); +/*! p5.sound.js v0.3.11 2019-03-14 */ +/** + * p5.sound extends p5 with Web Audio functionality including audio input, + * playback, analysis and synthesis. + *

+ * p5.SoundFile: Load and play sound files.
+ * p5.Amplitude: Get the current volume of a sound.
+ * p5.AudioIn: Get sound from an input source, typically + * a computer microphone.
+ * p5.FFT: Analyze the frequency of sound. Returns + * results from the frequency spectrum or time domain (waveform).
+ * p5.Oscillator: Generate Sine, + * Triangle, Square and Sawtooth waveforms. Base class of + * p5.Noise and p5.Pulse. + *
+ * p5.Envelope: An Envelope is a series + * of fades over time. Often used to control an object's + * output gain level as an "ADSR Envelope" (Attack, Decay, + * Sustain, Release). Can also modulate other parameters.
+ * p5.Delay: A delay effect with + * parameters for feedback, delayTime, and lowpass filter.
+ * p5.Filter: Filter the frequency range of a + * sound. + *
+ * p5.Reverb: Add reverb to a sound by specifying + * duration and decay.
+ * p5.Convolver: Extends + * p5.Reverb to simulate the sound of real + * physical spaces through convolution.
+ * p5.SoundRecorder: Record sound for playback + * / save the .wav file. + * p5.Phrase, p5.Part and + * p5.Score: Compose musical sequences. + *

+ * p5.sound is on GitHub. + * Download the latest version + * here. + * + * @module p5.sound + * @submodule p5.sound + * @for p5.sound + * @main + */ + +/** + * p5.sound + * https://p5js.org/reference/#/libraries/p5.sound + * + * From the Processing Foundation and contributors + * https://github.com/processing/p5.js-sound/graphs/contributors + * + * MIT License (MIT) + * https://github.com/processing/p5.js-sound/blob/master/LICENSE + * + * Some of the many audio libraries & resources that inspire p5.sound: + * - TONE.js (c) Yotam Mann. Licensed under The MIT License (MIT). https://github.com/TONEnoTONE/Tone.js + * - buzz.js (c) Jay Salvat. Licensed under The MIT License (MIT). http://buzz.jaysalvat.com/ + * - Boris Smus Web Audio API book, 2013. Licensed under the Apache License http://www.apache.org/licenses/LICENSE-2.0 + * - wavesurfer.js https://github.com/katspaugh/wavesurfer.js + * - Web Audio Components by Jordan Santell https://github.com/web-audio-components + * - Wilm Thoben's Sound library for Processing https://github.com/processing/processing/tree/master/java/libraries/sound + * + * Web Audio API: http://w3.org/TR/webaudio/ + */ + +(function (root, factory) { + if (typeof define === 'function' && define.amd) + define('p5.sound', ['p5'], function (p5) { (factory(p5));}); + else if (typeof exports === 'object') + factory(require('../p5')); + else + factory(root['p5']); +}(this, function (p5) { + +var shims; +'use strict'; /** + * This module has shims + */ +shims = function () { + /* AudioContext Monkeypatch + Copyright 2013 Chris Wilson + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + */ + (function () { + function fixSetTarget(param) { + if (!param) + // if NYI, just return + return; + if (!param.setTargetAtTime) + param.setTargetAtTime = param.setTargetValueAtTime; + } + if (window.hasOwnProperty('webkitAudioContext') && !window.hasOwnProperty('AudioContext')) { + window.AudioContext = window.webkitAudioContext; + if (typeof AudioContext.prototype.createGain !== 'function') + AudioContext.prototype.createGain = AudioContext.prototype.createGainNode; + if (typeof AudioContext.prototype.createDelay !== 'function') + AudioContext.prototype.createDelay = AudioContext.prototype.createDelayNode; + if (typeof AudioContext.prototype.createScriptProcessor !== 'function') + AudioContext.prototype.createScriptProcessor = AudioContext.prototype.createJavaScriptNode; + if (typeof AudioContext.prototype.createPeriodicWave !== 'function') + AudioContext.prototype.createPeriodicWave = AudioContext.prototype.createWaveTable; + AudioContext.prototype.internal_createGain = AudioContext.prototype.createGain; + AudioContext.prototype.createGain = function () { + var node = this.internal_createGain(); + fixSetTarget(node.gain); + return node; + }; + AudioContext.prototype.internal_createDelay = AudioContext.prototype.createDelay; + AudioContext.prototype.createDelay = function (maxDelayTime) { + var node = maxDelayTime ? this.internal_createDelay(maxDelayTime) : this.internal_createDelay(); + fixSetTarget(node.delayTime); + return node; + }; + AudioContext.prototype.internal_createBufferSource = AudioContext.prototype.createBufferSource; + AudioContext.prototype.createBufferSource = function () { + var node = this.internal_createBufferSource(); + if (!node.start) { + node.start = function (when, offset, duration) { + if (offset || duration) + this.noteGrainOn(when || 0, offset, duration); + else + this.noteOn(when || 0); + }; + } else { + node.internal_start = node.start; + node.start = function (when, offset, duration) { + if (typeof duration !== 'undefined') + node.internal_start(when || 0, offset, duration); + else + node.internal_start(when || 0, offset || 0); + }; + } + if (!node.stop) { + node.stop = function (when) { + this.noteOff(when || 0); + }; + } else { + node.internal_stop = node.stop; + node.stop = function (when) { + node.internal_stop(when || 0); + }; + } + fixSetTarget(node.playbackRate); + return node; + }; + AudioContext.prototype.internal_createDynamicsCompressor = AudioContext.prototype.createDynamicsCompressor; + AudioContext.prototype.createDynamicsCompressor = function () { + var node = this.internal_createDynamicsCompressor(); + fixSetTarget(node.threshold); + fixSetTarget(node.knee); + fixSetTarget(node.ratio); + fixSetTarget(node.reduction); + fixSetTarget(node.attack); + fixSetTarget(node.release); + return node; + }; + AudioContext.prototype.internal_createBiquadFilter = AudioContext.prototype.createBiquadFilter; + AudioContext.prototype.createBiquadFilter = function () { + var node = this.internal_createBiquadFilter(); + fixSetTarget(node.frequency); + fixSetTarget(node.detune); + fixSetTarget(node.Q); + fixSetTarget(node.gain); + return node; + }; + if (typeof AudioContext.prototype.createOscillator !== 'function') { + AudioContext.prototype.internal_createOscillator = AudioContext.prototype.createOscillator; + AudioContext.prototype.createOscillator = function () { + var node = this.internal_createOscillator(); + if (!node.start) { + node.start = function (when) { + this.noteOn(when || 0); + }; + } else { + node.internal_start = node.start; + node.start = function (when) { + node.internal_start(when || 0); + }; + } + if (!node.stop) { + node.stop = function (when) { + this.noteOff(when || 0); + }; + } else { + node.internal_stop = node.stop; + node.stop = function (when) { + node.internal_stop(when || 0); + }; + } + if (!node.setPeriodicWave) + node.setPeriodicWave = node.setWaveTable; + fixSetTarget(node.frequency); + fixSetTarget(node.detune); + return node; + }; + } + } + if (window.hasOwnProperty('webkitOfflineAudioContext') && !window.hasOwnProperty('OfflineAudioContext')) { + window.OfflineAudioContext = window.webkitOfflineAudioContext; + } + }(window)); + // <-- end MonkeyPatch. + // Polyfill for AudioIn, also handled by p5.dom createCapture + navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; + /** + * Determine which filetypes are supported (inspired by buzz.js) + * The audio element (el) will only be used to test browser support for various audio formats + */ + var el = document.createElement('audio'); + p5.prototype.isSupported = function () { + return !!el.canPlayType; + }; + var isOGGSupported = function () { + return !!el.canPlayType && el.canPlayType('audio/ogg; codecs="vorbis"'); + }; + var isMP3Supported = function () { + return !!el.canPlayType && el.canPlayType('audio/mpeg;'); + }; + var isWAVSupported = function () { + return !!el.canPlayType && el.canPlayType('audio/wav; codecs="1"'); + }; + var isAACSupported = function () { + return !!el.canPlayType && (el.canPlayType('audio/x-m4a;') || el.canPlayType('audio/aac;')); + }; + var isAIFSupported = function () { + return !!el.canPlayType && el.canPlayType('audio/x-aiff;'); + }; + p5.prototype.isFileSupported = function (extension) { + switch (extension.toLowerCase()) { + case 'mp3': + return isMP3Supported(); + case 'wav': + return isWAVSupported(); + case 'ogg': + return isOGGSupported(); + case 'aac': + case 'm4a': + case 'mp4': + return isAACSupported(); + case 'aif': + case 'aiff': + return isAIFSupported(); + default: + return false; + } + }; +}(); +var StartAudioContext; +(function (root, factory) { + if (true) { + StartAudioContext = function () { + return factory(); + }(); + } else if (typeof module === 'object' && module.exports) { + module.exports = factory(); + } else { + root.StartAudioContext = factory(); + } +}(this, function () { + var TapListener = function (element, context) { + this._dragged = false; + this._element = element; + this._bindedMove = this._moved.bind(this); + this._bindedEnd = this._ended.bind(this, context); + element.addEventListener('touchstart', this._bindedEnd); + element.addEventListener('touchmove', this._bindedMove); + element.addEventListener('touchend', this._bindedEnd); + element.addEventListener('mouseup', this._bindedEnd); + }; + TapListener.prototype._moved = function (e) { + this._dragged = true; + }; + TapListener.prototype._ended = function (context) { + if (!this._dragged) { + startContext(context); + } + this._dragged = false; + }; + TapListener.prototype.dispose = function () { + this._element.removeEventListener('touchstart', this._bindedEnd); + this._element.removeEventListener('touchmove', this._bindedMove); + this._element.removeEventListener('touchend', this._bindedEnd); + this._element.removeEventListener('mouseup', this._bindedEnd); + this._bindedMove = null; + this._bindedEnd = null; + this._element = null; + }; + function startContext(context) { + var buffer = context.createBuffer(1, 1, context.sampleRate); + var source = context.createBufferSource(); + source.buffer = buffer; + source.connect(context.destination); + source.start(0); + if (context.resume) { + context.resume(); + } + } + function isStarted(context) { + return context.state === 'running'; + } + function onStarted(context, callback) { + function checkLoop() { + if (isStarted(context)) { + callback(); + } else { + requestAnimationFrame(checkLoop); + if (context.resume) { + context.resume(); + } + } + } + if (isStarted(context)) { + callback(); + } else { + checkLoop(); + } + } + function bindTapListener(element, tapListeners, context) { + if (Array.isArray(element) || NodeList && element instanceof NodeList) { + for (var i = 0; i < element.length; i++) { + bindTapListener(element[i], tapListeners, context); + } + } else if (typeof element === 'string') { + bindTapListener(document.querySelectorAll(element), tapListeners, context); + } else if (element.jquery && typeof element.toArray === 'function') { + bindTapListener(element.toArray(), tapListeners, context); + } else if (Element && element instanceof Element) { + var tap = new TapListener(element, context); + tapListeners.push(tap); + } + } + function StartAudioContext(context, elements, callback) { + var promise = new Promise(function (success) { + onStarted(context, success); + }); + var tapListeners = []; + if (!elements) { + elements = document.body; + } + bindTapListener(elements, tapListeners, context); + promise.then(function () { + for (var i = 0; i < tapListeners.length; i++) { + tapListeners[i].dispose(); + } + tapListeners = null; + if (callback) { + callback(); + } + }); + return promise; + } + return StartAudioContext; +})); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_core_Tone; +Tone_core_Tone = function () { + 'use strict'; + var Tone = function (inputs, outputs) { + if (this.isUndef(inputs) || inputs === 1) { + this.input = this.context.createGain(); + } else if (inputs > 1) { + this.input = new Array(inputs); + } + if (this.isUndef(outputs) || outputs === 1) { + this.output = this.context.createGain(); + } else if (outputs > 1) { + this.output = new Array(inputs); + } + }; + Tone.prototype.set = function (params, value, rampTime) { + if (this.isObject(params)) { + rampTime = value; + } else if (this.isString(params)) { + var tmpObj = {}; + tmpObj[params] = value; + params = tmpObj; + } + paramLoop: + for (var attr in params) { + value = params[attr]; + var parent = this; + if (attr.indexOf('.') !== -1) { + var attrSplit = attr.split('.'); + for (var i = 0; i < attrSplit.length - 1; i++) { + parent = parent[attrSplit[i]]; + if (parent instanceof Tone) { + attrSplit.splice(0, i + 1); + var innerParam = attrSplit.join('.'); + parent.set(innerParam, value); + continue paramLoop; + } + } + attr = attrSplit[attrSplit.length - 1]; + } + var param = parent[attr]; + if (this.isUndef(param)) { + continue; + } + if (Tone.Signal && param instanceof Tone.Signal || Tone.Param && param instanceof Tone.Param) { + if (param.value !== value) { + if (this.isUndef(rampTime)) { + param.value = value; + } else { + param.rampTo(value, rampTime); + } + } + } else if (param instanceof AudioParam) { + if (param.value !== value) { + param.value = value; + } + } else if (param instanceof Tone) { + param.set(value); + } else if (param !== value) { + parent[attr] = value; + } + } + return this; + }; + Tone.prototype.get = function (params) { + if (this.isUndef(params)) { + params = this._collectDefaults(this.constructor); + } else if (this.isString(params)) { + params = [params]; + } + var ret = {}; + for (var i = 0; i < params.length; i++) { + var attr = params[i]; + var parent = this; + var subRet = ret; + if (attr.indexOf('.') !== -1) { + var attrSplit = attr.split('.'); + for (var j = 0; j < attrSplit.length - 1; j++) { + var subAttr = attrSplit[j]; + subRet[subAttr] = subRet[subAttr] || {}; + subRet = subRet[subAttr]; + parent = parent[subAttr]; + } + attr = attrSplit[attrSplit.length - 1]; + } + var param = parent[attr]; + if (this.isObject(params[attr])) { + subRet[attr] = param.get(); + } else if (Tone.Signal && param instanceof Tone.Signal) { + subRet[attr] = param.value; + } else if (Tone.Param && param instanceof Tone.Param) { + subRet[attr] = param.value; + } else if (param instanceof AudioParam) { + subRet[attr] = param.value; + } else if (param instanceof Tone) { + subRet[attr] = param.get(); + } else if (!this.isFunction(param) && !this.isUndef(param)) { + subRet[attr] = param; + } + } + return ret; + }; + Tone.prototype._collectDefaults = function (constr) { + var ret = []; + if (!this.isUndef(constr.defaults)) { + ret = Object.keys(constr.defaults); + } + if (!this.isUndef(constr._super)) { + var superDefs = this._collectDefaults(constr._super); + for (var i = 0; i < superDefs.length; i++) { + if (ret.indexOf(superDefs[i]) === -1) { + ret.push(superDefs[i]); + } + } + } + return ret; + }; + Tone.prototype.toString = function () { + for (var className in Tone) { + var isLetter = className[0].match(/^[A-Z]$/); + var sameConstructor = Tone[className] === this.constructor; + if (this.isFunction(Tone[className]) && isLetter && sameConstructor) { + return className; + } + } + return 'Tone'; + }; + Object.defineProperty(Tone.prototype, 'numberOfInputs', { + get: function () { + if (this.input) { + if (this.isArray(this.input)) { + return this.input.length; + } else { + return 1; + } + } else { + return 0; + } + } + }); + Object.defineProperty(Tone.prototype, 'numberOfOutputs', { + get: function () { + if (this.output) { + if (this.isArray(this.output)) { + return this.output.length; + } else { + return 1; + } + } else { + return 0; + } + } + }); + Tone.prototype.dispose = function () { + if (!this.isUndef(this.input)) { + if (this.input instanceof AudioNode) { + this.input.disconnect(); + } + this.input = null; + } + if (!this.isUndef(this.output)) { + if (this.output instanceof AudioNode) { + this.output.disconnect(); + } + this.output = null; + } + return this; + }; + Tone.prototype.connect = function (unit, outputNum, inputNum) { + if (Array.isArray(this.output)) { + outputNum = this.defaultArg(outputNum, 0); + this.output[outputNum].connect(unit, 0, inputNum); + } else { + this.output.connect(unit, outputNum, inputNum); + } + return this; + }; + Tone.prototype.disconnect = function (destination, outputNum, inputNum) { + if (this.isArray(this.output)) { + if (this.isNumber(destination)) { + this.output[destination].disconnect(); + } else { + outputNum = this.defaultArg(outputNum, 0); + this.output[outputNum].disconnect(destination, 0, inputNum); + } + } else { + this.output.disconnect.apply(this.output, arguments); + } + }; + Tone.prototype.connectSeries = function () { + if (arguments.length > 1) { + var currentUnit = arguments[0]; + for (var i = 1; i < arguments.length; i++) { + var toUnit = arguments[i]; + currentUnit.connect(toUnit); + currentUnit = toUnit; + } + } + return this; + }; + Tone.prototype.chain = function () { + if (arguments.length > 0) { + var currentUnit = this; + for (var i = 0; i < arguments.length; i++) { + var toUnit = arguments[i]; + currentUnit.connect(toUnit); + currentUnit = toUnit; + } + } + return this; + }; + Tone.prototype.fan = function () { + if (arguments.length > 0) { + for (var i = 0; i < arguments.length; i++) { + this.connect(arguments[i]); + } + } + return this; + }; + AudioNode.prototype.chain = Tone.prototype.chain; + AudioNode.prototype.fan = Tone.prototype.fan; + Tone.prototype.defaultArg = function (given, fallback) { + if (this.isObject(given) && this.isObject(fallback)) { + var ret = {}; + for (var givenProp in given) { + ret[givenProp] = this.defaultArg(fallback[givenProp], given[givenProp]); + } + for (var fallbackProp in fallback) { + ret[fallbackProp] = this.defaultArg(given[fallbackProp], fallback[fallbackProp]); + } + return ret; + } else { + return this.isUndef(given) ? fallback : given; + } + }; + Tone.prototype.optionsObject = function (values, keys, defaults) { + var options = {}; + if (values.length === 1 && this.isObject(values[0])) { + options = values[0]; + } else { + for (var i = 0; i < keys.length; i++) { + options[keys[i]] = values[i]; + } + } + if (!this.isUndef(defaults)) { + return this.defaultArg(options, defaults); + } else { + return options; + } + }; + Tone.prototype.isUndef = function (val) { + return typeof val === 'undefined'; + }; + Tone.prototype.isFunction = function (val) { + return typeof val === 'function'; + }; + Tone.prototype.isNumber = function (arg) { + return typeof arg === 'number'; + }; + Tone.prototype.isObject = function (arg) { + return Object.prototype.toString.call(arg) === '[object Object]' && arg.constructor === Object; + }; + Tone.prototype.isBoolean = function (arg) { + return typeof arg === 'boolean'; + }; + Tone.prototype.isArray = function (arg) { + return Array.isArray(arg); + }; + Tone.prototype.isString = function (arg) { + return typeof arg === 'string'; + }; + Tone.noOp = function () { + }; + Tone.prototype._readOnly = function (property) { + if (Array.isArray(property)) { + for (var i = 0; i < property.length; i++) { + this._readOnly(property[i]); + } + } else { + Object.defineProperty(this, property, { + writable: false, + enumerable: true + }); + } + }; + Tone.prototype._writable = function (property) { + if (Array.isArray(property)) { + for (var i = 0; i < property.length; i++) { + this._writable(property[i]); + } + } else { + Object.defineProperty(this, property, { writable: true }); + } + }; + Tone.State = { + Started: 'started', + Stopped: 'stopped', + Paused: 'paused' + }; + Tone.prototype.equalPowerScale = function (percent) { + var piFactor = 0.5 * Math.PI; + return Math.sin(percent * piFactor); + }; + Tone.prototype.dbToGain = function (db) { + return Math.pow(2, db / 6); + }; + Tone.prototype.gainToDb = function (gain) { + return 20 * (Math.log(gain) / Math.LN10); + }; + Tone.prototype.intervalToFrequencyRatio = function (interval) { + return Math.pow(2, interval / 12); + }; + Tone.prototype.now = function () { + return Tone.context.now(); + }; + Tone.now = function () { + return Tone.context.now(); + }; + Tone.extend = function (child, parent) { + if (Tone.prototype.isUndef(parent)) { + parent = Tone; + } + function TempConstructor() { + } + TempConstructor.prototype = parent.prototype; + child.prototype = new TempConstructor(); + child.prototype.constructor = child; + child._super = parent; + }; + var audioContext; + Object.defineProperty(Tone, 'context', { + get: function () { + return audioContext; + }, + set: function (context) { + if (Tone.Context && context instanceof Tone.Context) { + audioContext = context; + } else { + audioContext = new Tone.Context(context); + } + if (Tone.Context) { + Tone.Context.emit('init', audioContext); + } + } + }); + Object.defineProperty(Tone.prototype, 'context', { + get: function () { + return Tone.context; + } + }); + Tone.setContext = function (ctx) { + Tone.context = ctx; + }; + Object.defineProperty(Tone.prototype, 'blockTime', { + get: function () { + return 128 / this.context.sampleRate; + } + }); + Object.defineProperty(Tone.prototype, 'sampleTime', { + get: function () { + return 1 / this.context.sampleRate; + } + }); + Object.defineProperty(Tone, 'supported', { + get: function () { + var hasAudioContext = window.hasOwnProperty('AudioContext') || window.hasOwnProperty('webkitAudioContext'); + var hasPromises = window.hasOwnProperty('Promise'); + var hasWorkers = window.hasOwnProperty('Worker'); + return hasAudioContext && hasPromises && hasWorkers; + } + }); + Tone.version = 'r10'; + if (!window.TONE_SILENCE_VERSION_LOGGING) { + } + return Tone; +}(); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_core_Emitter; +Tone_core_Emitter = function (Tone) { + 'use strict'; + Tone.Emitter = function () { + this._events = {}; + }; + Tone.extend(Tone.Emitter); + Tone.Emitter.prototype.on = function (event, callback) { + var events = event.split(/\W+/); + for (var i = 0; i < events.length; i++) { + var eventName = events[i]; + if (!this._events.hasOwnProperty(eventName)) { + this._events[eventName] = []; + } + this._events[eventName].push(callback); + } + return this; + }; + Tone.Emitter.prototype.off = function (event, callback) { + var events = event.split(/\W+/); + for (var ev = 0; ev < events.length; ev++) { + event = events[ev]; + if (this._events.hasOwnProperty(event)) { + if (Tone.prototype.isUndef(callback)) { + this._events[event] = []; + } else { + var eventList = this._events[event]; + for (var i = 0; i < eventList.length; i++) { + if (eventList[i] === callback) { + eventList.splice(i, 1); + } + } + } + } + } + return this; + }; + Tone.Emitter.prototype.emit = function (event) { + if (this._events) { + var args = Array.apply(null, arguments).slice(1); + if (this._events.hasOwnProperty(event)) { + var eventList = this._events[event]; + for (var i = 0, len = eventList.length; i < len; i++) { + eventList[i].apply(this, args); + } + } + } + return this; + }; + Tone.Emitter.mixin = function (object) { + var functions = [ + 'on', + 'off', + 'emit' + ]; + object._events = {}; + for (var i = 0; i < functions.length; i++) { + var func = functions[i]; + var emitterFunc = Tone.Emitter.prototype[func]; + object[func] = emitterFunc; + } + }; + Tone.Emitter.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._events = null; + return this; + }; + return Tone.Emitter; +}(Tone_core_Tone); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_core_Context; +Tone_core_Context = function (Tone) { + if (!window.hasOwnProperty('AudioContext') && window.hasOwnProperty('webkitAudioContext')) { + window.AudioContext = window.webkitAudioContext; + } + Tone.Context = function (context) { + Tone.Emitter.call(this); + if (!context) { + context = new window.AudioContext(); + } + this._context = context; + for (var prop in this._context) { + this._defineProperty(this._context, prop); + } + this._latencyHint = 'interactive'; + this._lookAhead = 0.1; + this._updateInterval = this._lookAhead / 3; + this._computedUpdateInterval = 0; + this._worker = this._createWorker(); + this._constants = {}; + }; + Tone.extend(Tone.Context, Tone.Emitter); + Tone.Emitter.mixin(Tone.Context); + Tone.Context.prototype._defineProperty = function (context, prop) { + if (this.isUndef(this[prop])) { + Object.defineProperty(this, prop, { + get: function () { + if (typeof context[prop] === 'function') { + return context[prop].bind(context); + } else { + return context[prop]; + } + }, + set: function (val) { + context[prop] = val; + } + }); + } + }; + Tone.Context.prototype.now = function () { + return this._context.currentTime; + }; + Tone.Context.prototype._createWorker = function () { + window.URL = window.URL || window.webkitURL; + var blob = new Blob(['var timeoutTime = ' + (this._updateInterval * 1000).toFixed(1) + ';' + 'self.onmessage = function(msg){' + '\ttimeoutTime = parseInt(msg.data);' + '};' + 'function tick(){' + '\tsetTimeout(tick, timeoutTime);' + '\tself.postMessage(\'tick\');' + '}' + 'tick();']); + var blobUrl = URL.createObjectURL(blob); + var worker = new Worker(blobUrl); + worker.addEventListener('message', function () { + this.emit('tick'); + }.bind(this)); + worker.addEventListener('message', function () { + var now = this.now(); + if (this.isNumber(this._lastUpdate)) { + var diff = now - this._lastUpdate; + this._computedUpdateInterval = Math.max(diff, this._computedUpdateInterval * 0.97); + } + this._lastUpdate = now; + }.bind(this)); + return worker; + }; + Tone.Context.prototype.getConstant = function (val) { + if (this._constants[val]) { + return this._constants[val]; + } else { + var buffer = this._context.createBuffer(1, 128, this._context.sampleRate); + var arr = buffer.getChannelData(0); + for (var i = 0; i < arr.length; i++) { + arr[i] = val; + } + var constant = this._context.createBufferSource(); + constant.channelCount = 1; + constant.channelCountMode = 'explicit'; + constant.buffer = buffer; + constant.loop = true; + constant.start(0); + this._constants[val] = constant; + return constant; + } + }; + Object.defineProperty(Tone.Context.prototype, 'lag', { + get: function () { + var diff = this._computedUpdateInterval - this._updateInterval; + diff = Math.max(diff, 0); + return diff; + } + }); + Object.defineProperty(Tone.Context.prototype, 'lookAhead', { + get: function () { + return this._lookAhead; + }, + set: function (lA) { + this._lookAhead = lA; + } + }); + Object.defineProperty(Tone.Context.prototype, 'updateInterval', { + get: function () { + return this._updateInterval; + }, + set: function (interval) { + this._updateInterval = Math.max(interval, Tone.prototype.blockTime); + this._worker.postMessage(Math.max(interval * 1000, 1)); + } + }); + Object.defineProperty(Tone.Context.prototype, 'latencyHint', { + get: function () { + return this._latencyHint; + }, + set: function (hint) { + var lookAhead = hint; + this._latencyHint = hint; + if (this.isString(hint)) { + switch (hint) { + case 'interactive': + lookAhead = 0.1; + this._context.latencyHint = hint; + break; + case 'playback': + lookAhead = 0.8; + this._context.latencyHint = hint; + break; + case 'balanced': + lookAhead = 0.25; + this._context.latencyHint = hint; + break; + case 'fastest': + lookAhead = 0.01; + break; + } + } + this.lookAhead = lookAhead; + this.updateInterval = lookAhead / 3; + } + }); + function shimConnect() { + var nativeConnect = AudioNode.prototype.connect; + var nativeDisconnect = AudioNode.prototype.disconnect; + function toneConnect(B, outNum, inNum) { + if (B.input) { + if (Array.isArray(B.input)) { + if (Tone.prototype.isUndef(inNum)) { + inNum = 0; + } + this.connect(B.input[inNum]); + } else { + this.connect(B.input, outNum, inNum); + } + } else { + try { + if (B instanceof AudioNode) { + nativeConnect.call(this, B, outNum, inNum); + } else { + nativeConnect.call(this, B, outNum); + } + } catch (e) { + throw new Error('error connecting to node: ' + B + '\n' + e); + } + } + } + function toneDisconnect(B, outNum, inNum) { + if (B && B.input && Array.isArray(B.input)) { + if (Tone.prototype.isUndef(inNum)) { + inNum = 0; + } + this.disconnect(B.input[inNum], outNum, inNum); + } else if (B && B.input) { + this.disconnect(B.input, outNum, inNum); + } else { + try { + nativeDisconnect.apply(this, arguments); + } catch (e) { + throw new Error('error disconnecting node: ' + B + '\n' + e); + } + } + } + if (AudioNode.prototype.connect !== toneConnect) { + AudioNode.prototype.connect = toneConnect; + AudioNode.prototype.disconnect = toneDisconnect; + } + } + if (Tone.supported) { + shimConnect(); + Tone.context = new Tone.Context(); + } else { + console.warn('This browser does not support Tone.js'); + } + return Tone.Context; +}(Tone_core_Tone); +var audiocontext; +'use strict'; +audiocontext = function (StartAudioContext, Context, Tone) { + // Create the Audio Context + const audiocontext = new window.AudioContext(); + Tone.context.dispose(); + Tone.setContext(audiocontext); + /** + *

Returns the Audio Context for this sketch. Useful for users + * who would like to dig deeper into the Web Audio API + * .

+ * + *

Some browsers require users to startAudioContext + * with a user gesture, such as touchStarted in the example below.

+ * + * @method getAudioContext + * @return {Object} AudioContext for this sketch + * @example + *
+ * function draw() { + * background(255); + * textAlign(CENTER); + * + * if (getAudioContext().state !== 'running') { + * text('click to start audio', width/2, height/2); + * } else { + * text('audio is enabled', width/2, height/2); + * } + * } + * + * function touchStarted() { + * if (getAudioContext().state !== 'running') { + * getAudioContext().resume(); + * } + * var synth = new p5.MonoSynth(); + * synth.play('A4', 0.5, 0, 0.2); + * } + * + *
+ */ + p5.prototype.getAudioContext = function () { + return audiocontext; + }; + /** + *

It is a good practice to give users control over starting audio playback. + * This practice is enforced by Google Chrome's autoplay policy as of r70 + * (info), iOS Safari, and other browsers. + *

+ * + *

+ * userStartAudio() starts the Audio Context on a user gesture. It utilizes + * the StartAudioContext library by + * Yotam Mann (MIT Licence, 2016). Read more at https://github.com/tambien/StartAudioContext. + *

+ * + *

Starting the audio context on a user gesture can be as simple as userStartAudio(). + * Optional parameters let you decide on a specific element that will start the audio context, + * and/or call a function once the audio context is started.

+ * @param {Element|Array} [element(s)] This argument can be an Element, + * Selector String, NodeList, p5.Element, + * jQuery Element, or an Array of any of those. + * @param {Function} [callback] Callback to invoke when the AudioContext has started + * @return {Promise} Returns a Promise which is resolved when + * the AudioContext state is 'running' + * @method userStartAudio + * @example + *
+ * function setup() { + * var myDiv = createDiv('click to start audio'); + * myDiv.position(0, 0); + * + * var mySynth = new p5.MonoSynth(); + * + * // This won't play until the context has started + * mySynth.play('A6'); + * + * // Start the audio context on a click/touch event + * userStartAudio().then(function() { + * myDiv.remove(); + * }); + * } + *
+ */ + p5.prototype.userStartAudio = function (elements, callback) { + var elt = elements; + if (elements instanceof p5.Element) { + elt = elements.elt; + } else if (elements instanceof Array && elements[0] instanceof p5.Element) { + elt = elements.map(function (e) { + return e.elt; + }); + } + return StartAudioContext(audiocontext, elt, callback); + }; + return audiocontext; +}(StartAudioContext, Tone_core_Context, Tone_core_Tone); +var master; +'use strict'; +master = function (audiocontext) { + /** + * Master contains AudioContext and the master sound output. + */ + var Master = function () { + this.input = audiocontext.createGain(); + this.output = audiocontext.createGain(); + //put a hard limiter on the output + this.limiter = audiocontext.createDynamicsCompressor(); + this.limiter.threshold.value = -3; + this.limiter.ratio.value = 20; + this.limiter.knee.value = 1; + this.audiocontext = audiocontext; + this.output.disconnect(); + // connect input to limiter + this.input.connect(this.limiter); + // connect limiter to output + this.limiter.connect(this.output); + // meter is just for global Amplitude / FFT analysis + this.meter = audiocontext.createGain(); + this.fftMeter = audiocontext.createGain(); + this.output.connect(this.meter); + this.output.connect(this.fftMeter); + // connect output to destination + this.output.connect(this.audiocontext.destination); + // an array of all sounds in the sketch + this.soundArray = []; + // an array of all musical parts in the sketch + this.parts = []; + // file extensions to search for + this.extensions = []; + }; + // create a single instance of the p5Sound / master output for use within this sketch + var p5sound = new Master(); + /** + * Returns a number representing the master amplitude (volume) for sound + * in this sketch. + * + * @method getMasterVolume + * @return {Number} Master amplitude (volume) for sound in this sketch. + * Should be between 0.0 (silence) and 1.0. + */ + p5.prototype.getMasterVolume = function () { + return p5sound.output.gain.value; + }; + /** + *

Scale the output of all sound in this sketch

+ * Scaled between 0.0 (silence) and 1.0 (full volume). + * 1.0 is the maximum amplitude of a digital sound, so multiplying + * by greater than 1.0 may cause digital distortion. To + * fade, provide a rampTime parameter. For more + * complex fades, see the Envelope class. + * + * Alternately, you can pass in a signal source such as an + * oscillator to modulate the amplitude with an audio signal. + * + *

How This Works: When you load the p5.sound module, it + * creates a single instance of p5sound. All sound objects in this + * module output to p5sound before reaching your computer's output. + * So if you change the amplitude of p5sound, it impacts all of the + * sound in this module.

+ * + *

If no value is provided, returns a Web Audio API Gain Node

+ * + * @method masterVolume + * @param {Number|Object} volume Volume (amplitude) between 0.0 + * and 1.0 or modulating signal/oscillator + * @param {Number} [rampTime] Fade for t seconds + * @param {Number} [timeFromNow] Schedule this event to happen at + * t seconds in the future + */ + p5.prototype.masterVolume = function (vol, rampTime, tFromNow) { + if (typeof vol === 'number') { + var rampTime = rampTime || 0; + var tFromNow = tFromNow || 0; + var now = p5sound.audiocontext.currentTime; + var currentVol = p5sound.output.gain.value; + p5sound.output.gain.cancelScheduledValues(now + tFromNow); + p5sound.output.gain.linearRampToValueAtTime(currentVol, now + tFromNow); + p5sound.output.gain.linearRampToValueAtTime(vol, now + tFromNow + rampTime); + } else if (vol) { + vol.connect(p5sound.output.gain); + } else { + // return the Gain Node + return p5sound.output.gain; + } + }; + /** + * `p5.soundOut` is the p5.sound master output. It sends output to + * the destination of this window's web audio context. It contains + * Web Audio API nodes including a dyanmicsCompressor (.limiter), + * and Gain Nodes for .input and .output. + * + * @property {Object} soundOut + */ + p5.prototype.soundOut = p5.soundOut = p5sound; + /** + * a silent connection to the DesinationNode + * which will ensure that anything connected to it + * will not be garbage collected + * + * @private + */ + p5.soundOut._silentNode = p5sound.audiocontext.createGain(); + p5.soundOut._silentNode.gain.value = 0; + p5.soundOut._silentNode.connect(p5sound.audiocontext.destination); + return p5sound; +}(audiocontext); +var helpers; +'use strict'; +helpers = function () { + var p5sound = master; + /** + * @for p5 + */ + /** + * Returns a number representing the sample rate, in samples per second, + * of all sound objects in this audio context. It is determined by the + * sampling rate of your operating system's sound card, and it is not + * currently possile to change. + * It is often 44100, or twice the range of human hearing. + * + * @method sampleRate + * @return {Number} samplerate samples per second + */ + p5.prototype.sampleRate = function () { + return p5sound.audiocontext.sampleRate; + }; + /** + * Returns the closest MIDI note value for + * a given frequency. + * + * @method freqToMidi + * @param {Number} frequency A freqeuncy, for example, the "A" + * above Middle C is 440Hz + * @return {Number} MIDI note value + */ + p5.prototype.freqToMidi = function (f) { + var mathlog2 = Math.log(f / 440) / Math.log(2); + var m = Math.round(12 * mathlog2) + 69; + return m; + }; + /** + * Returns the frequency value of a MIDI note value. + * General MIDI treats notes as integers where middle C + * is 60, C# is 61, D is 62 etc. Useful for generating + * musical frequencies with oscillators. + * + * @method midiToFreq + * @param {Number} midiNote The number of a MIDI note + * @return {Number} Frequency value of the given MIDI note + * @example + *
+ * var notes = [60, 64, 67, 72]; + * var i = 0; + * + * function setup() { + * osc = new p5.Oscillator('Triangle'); + * osc.start(); + * frameRate(1); + * } + * + * function draw() { + * var freq = midiToFreq(notes[i]); + * osc.freq(freq); + * i++; + * if (i >= notes.length){ + * i = 0; + * } + * } + *
+ */ + var midiToFreq = p5.prototype.midiToFreq = function (m) { + return 440 * Math.pow(2, (m - 69) / 12); + }; + // This method converts ANSI notes specified as a string "C4", "Eb3" to a frequency + var noteToFreq = function (note) { + if (typeof note !== 'string') { + return note; + } + var wholeNotes = { + A: 21, + B: 23, + C: 24, + D: 26, + E: 28, + F: 29, + G: 31 + }; + var value = wholeNotes[note[0].toUpperCase()]; + var octave = ~~note.slice(-1); + value += 12 * (octave - 1); + switch (note[1]) { + case '#': + value += 1; + break; + case 'b': + value -= 1; + break; + default: + break; + } + return midiToFreq(value); + }; + /** + * List the SoundFile formats that you will include. LoadSound + * will search your directory for these extensions, and will pick + * a format that is compatable with the client's web browser. + * Here is a free online file + * converter. + * + * @method soundFormats + * @param {String} [...formats] i.e. 'mp3', 'wav', 'ogg' + * @example + *
+ * function preload() { + * // set the global sound formats + * soundFormats('mp3', 'ogg'); + * + * // load either beatbox.mp3, or .ogg, depending on browser + * mySound = loadSound('assets/beatbox.mp3'); + * } + * + * function setup() { + * mySound.play(); + * } + *
+ */ + p5.prototype.soundFormats = function () { + // reset extensions array + p5sound.extensions = []; + // add extensions + for (var i = 0; i < arguments.length; i++) { + arguments[i] = arguments[i].toLowerCase(); + if ([ + 'mp3', + 'wav', + 'ogg', + 'm4a', + 'aac' + ].indexOf(arguments[i]) > -1) { + p5sound.extensions.push(arguments[i]); + } else { + throw arguments[i] + ' is not a valid sound format!'; + } + } + }; + p5.prototype.disposeSound = function () { + for (var i = 0; i < p5sound.soundArray.length; i++) { + p5sound.soundArray[i].dispose(); + } + }; + // register removeSound to dispose of p5sound SoundFiles, Convolvers, + // Oscillators etc when sketch ends + p5.prototype.registerMethod('remove', p5.prototype.disposeSound); + p5.prototype._checkFileFormats = function (paths) { + var path; + // if path is a single string, check to see if extension is provided + if (typeof paths === 'string') { + path = paths; + // see if extension is provided + var extTest = path.split('.').pop(); + // if an extension is provided... + if ([ + 'mp3', + 'wav', + 'ogg', + 'm4a', + 'aac' + ].indexOf(extTest) > -1) { + if (p5.prototype.isFileSupported(extTest)) { + path = path; + } else { + var pathSplit = path.split('.'); + var pathCore = pathSplit[pathSplit.length - 1]; + for (var i = 0; i < p5sound.extensions.length; i++) { + var extension = p5sound.extensions[i]; + var supported = p5.prototype.isFileSupported(extension); + if (supported) { + pathCore = ''; + if (pathSplit.length === 2) { + pathCore += pathSplit[0]; + } + for (var i = 1; i <= pathSplit.length - 2; i++) { + var p = pathSplit[i]; + pathCore += '.' + p; + } + path = pathCore += '.'; + path = path += extension; + break; + } + } + } + } else { + for (var i = 0; i < p5sound.extensions.length; i++) { + var extension = p5sound.extensions[i]; + var supported = p5.prototype.isFileSupported(extension); + if (supported) { + path = path + '.' + extension; + break; + } + } + } + } else if (typeof paths === 'object') { + for (var i = 0; i < paths.length; i++) { + var extension = paths[i].split('.').pop(); + var supported = p5.prototype.isFileSupported(extension); + if (supported) { + // ' supported by your browser.'); + path = paths[i]; + break; + } + } + } + return path; + }; + /** + * Used by Osc and Envelope to chain signal math + */ + p5.prototype._mathChain = function (o, math, thisChain, nextChain, type) { + // if this type of math already exists in the chain, replace it + for (var i in o.mathOps) { + if (o.mathOps[i] instanceof type) { + o.mathOps[i].dispose(); + thisChain = i; + if (thisChain < o.mathOps.length - 1) { + nextChain = o.mathOps[i + 1]; + } + } + } + o.mathOps[thisChain - 1].disconnect(); + o.mathOps[thisChain - 1].connect(math); + math.connect(nextChain); + o.mathOps[thisChain] = math; + return o; + }; + // helper methods to convert audio file as .wav format, + // will use as saving .wav file and saving blob object + // Thank you to Matt Diamond's RecorderJS (MIT License) + // https://github.com/mattdiamond/Recorderjs + function convertToWav(audioBuffer) { + var leftChannel, rightChannel; + leftChannel = audioBuffer.getChannelData(0); + // handle mono files + if (audioBuffer.numberOfChannels > 1) { + rightChannel = audioBuffer.getChannelData(1); + } else { + rightChannel = leftChannel; + } + var interleaved = interleave(leftChannel, rightChannel); + // create the buffer and view to create the .WAV file + var buffer = new window.ArrayBuffer(44 + interleaved.length * 2); + var view = new window.DataView(buffer); + // write the WAV container, + // check spec at: https://web.archive.org/web/20171215131933/http://tiny.systems/software/soundProgrammer/WavFormatDocs.pdf + // RIFF chunk descriptor + writeUTFBytes(view, 0, 'RIFF'); + view.setUint32(4, 36 + interleaved.length * 2, true); + writeUTFBytes(view, 8, 'WAVE'); + // FMT sub-chunk + writeUTFBytes(view, 12, 'fmt '); + view.setUint32(16, 16, true); + view.setUint16(20, 1, true); + // stereo (2 channels) + view.setUint16(22, 2, true); + view.setUint32(24, p5sound.audiocontext.sampleRate, true); + view.setUint32(28, p5sound.audiocontext.sampleRate * 4, true); + view.setUint16(32, 4, true); + view.setUint16(34, 16, true); + // data sub-chunk + writeUTFBytes(view, 36, 'data'); + view.setUint32(40, interleaved.length * 2, true); + // write the PCM samples + var lng = interleaved.length; + var index = 44; + var volume = 1; + for (var i = 0; i < lng; i++) { + view.setInt16(index, interleaved[i] * (32767 * volume), true); + index += 2; + } + return view; + } + // helper methods to save waves + function interleave(leftChannel, rightChannel) { + var length = leftChannel.length + rightChannel.length; + var result = new Float32Array(length); + var inputIndex = 0; + for (var index = 0; index < length;) { + result[index++] = leftChannel[inputIndex]; + result[index++] = rightChannel[inputIndex]; + inputIndex++; + } + return result; + } + function writeUTFBytes(view, offset, string) { + var lng = string.length; + for (var i = 0; i < lng; i++) { + view.setUint8(offset + i, string.charCodeAt(i)); + } + } + return { + convertToWav: convertToWav, + midiToFreq: midiToFreq, + noteToFreq: noteToFreq + }; +}(master); +var errorHandler; +'use strict'; +errorHandler = function () { + /* + Helper function to generate an error + with a custom stack trace that points to the sketch + and removes other parts of the stack trace. + + @private + @class customError + @constructor + @param {String} name custom error name + @param {String} errorTrace custom error trace + @param {String} failedPath path to the file that failed to load + @property {String} name custom error name + @property {String} message custom error message + @property {String} stack trace the error back to a line in the user's sketch. + Note: this edits out stack trace within p5.js and p5.sound. + @property {String} originalStack unedited, original stack trace + @property {String} failedPath path to the file that failed to load + @return {Error} returns a custom Error object + */ + var CustomError = function (name, errorTrace, failedPath) { + var err = new Error(); + var tempStack, splitStack; + err.name = name; + err.originalStack = err.stack + errorTrace; + tempStack = err.stack + errorTrace; + err.failedPath = failedPath; + // only print the part of the stack trace that refers to the user code: + var splitStack = tempStack.split('\n'); + splitStack = splitStack.filter(function (ln) { + return !ln.match(/(p5.|native code|globalInit)/g); + }); + err.stack = splitStack.join('\n'); + return err; + }; + return CustomError; +}(); +var panner; +'use strict'; +panner = function () { + var p5sound = master; + var ac = p5sound.audiocontext; + // Stereo panner + // if there is a stereo panner node use it + if (typeof ac.createStereoPanner !== 'undefined') { + p5.Panner = function (input, output) { + this.stereoPanner = this.input = ac.createStereoPanner(); + input.connect(this.stereoPanner); + this.stereoPanner.connect(output); + }; + p5.Panner.prototype.pan = function (val, tFromNow) { + var time = tFromNow || 0; + var t = ac.currentTime + time; + this.stereoPanner.pan.linearRampToValueAtTime(val, t); + }; + //not implemented because stereopanner + //node does not require this and will automatically + //convert single channel or multichannel to stereo. + //tested with single and stereo, not with (>2) multichannel + p5.Panner.prototype.inputChannels = function () { + }; + p5.Panner.prototype.connect = function (obj) { + this.stereoPanner.connect(obj); + }; + p5.Panner.prototype.disconnect = function () { + if (this.stereoPanner) { + this.stereoPanner.disconnect(); + } + }; + } else { + // if there is no createStereoPanner object + // such as in safari 7.1.7 at the time of writing this + // use this method to create the effect + p5.Panner = function (input, output, numInputChannels) { + this.input = ac.createGain(); + input.connect(this.input); + this.left = ac.createGain(); + this.right = ac.createGain(); + this.left.channelInterpretation = 'discrete'; + this.right.channelInterpretation = 'discrete'; + // if input is stereo + if (numInputChannels > 1) { + this.splitter = ac.createChannelSplitter(2); + this.input.connect(this.splitter); + this.splitter.connect(this.left, 1); + this.splitter.connect(this.right, 0); + } else { + this.input.connect(this.left); + this.input.connect(this.right); + } + this.output = ac.createChannelMerger(2); + this.left.connect(this.output, 0, 1); + this.right.connect(this.output, 0, 0); + this.output.connect(output); + }; + // -1 is left, +1 is right + p5.Panner.prototype.pan = function (val, tFromNow) { + var time = tFromNow || 0; + var t = ac.currentTime + time; + var v = (val + 1) / 2; + var rightVal = Math.cos(v * Math.PI / 2); + var leftVal = Math.sin(v * Math.PI / 2); + this.left.gain.linearRampToValueAtTime(leftVal, t); + this.right.gain.linearRampToValueAtTime(rightVal, t); + }; + p5.Panner.prototype.inputChannels = function (numChannels) { + if (numChannels === 1) { + this.input.disconnect(); + this.input.connect(this.left); + this.input.connect(this.right); + } else if (numChannels === 2) { + if (typeof (this.splitter === 'undefined')) { + this.splitter = ac.createChannelSplitter(2); + } + this.input.disconnect(); + this.input.connect(this.splitter); + this.splitter.connect(this.left, 1); + this.splitter.connect(this.right, 0); + } + }; + p5.Panner.prototype.connect = function (obj) { + this.output.connect(obj); + }; + p5.Panner.prototype.disconnect = function () { + if (this.output) { + this.output.disconnect(); + } + }; + } +}(master); +var soundfile; +'use strict'; +soundfile = function () { + var CustomError = errorHandler; + var p5sound = master; + var ac = p5sound.audiocontext; + var midiToFreq = helpers.midiToFreq; + var convertToWav = helpers.convertToWav; + /** + *

SoundFile object with a path to a file.

+ * + *

The p5.SoundFile may not be available immediately because + * it loads the file information asynchronously.

+ * + *

To do something with the sound as soon as it loads + * pass the name of a function as the second parameter.

+ * + *

Only one file path is required. However, audio file formats + * (i.e. mp3, ogg, wav and m4a/aac) are not supported by all + * web browsers. If you want to ensure compatability, instead of a single + * file path, you may include an Array of filepaths, and the browser will + * choose a format that works.

+ * + * @class p5.SoundFile + * @constructor + * @param {String|Array} path path to a sound file (String). Optionally, + * you may include multiple file formats in + * an array. Alternately, accepts an object + * from the HTML5 File API, or a p5.File. + * @param {Function} [successCallback] Name of a function to call once file loads + * @param {Function} [errorCallback] Name of a function to call if file fails to + * load. This function will receive an error or + * XMLHttpRequest object with information + * about what went wrong. + * @param {Function} [whileLoadingCallback] Name of a function to call while file + * is loading. That function will + * receive progress of the request to + * load the sound file + * (between 0 and 1) as its first + * parameter. This progress + * does not account for the additional + * time needed to decode the audio data. + * + * @example + *
+ * + * function preload() { + * soundFormats('mp3', 'ogg'); + * mySound = loadSound('assets/doorbell.mp3'); + * } + * + * function setup() { + * mySound.setVolume(0.1); + * mySound.play(); + * } + * + *
+ */ + p5.SoundFile = function (paths, onload, onerror, whileLoading) { + if (typeof paths !== 'undefined') { + if (typeof paths === 'string' || typeof paths[0] === 'string') { + var path = p5.prototype._checkFileFormats(paths); + this.url = path; + } else if (typeof paths === 'object') { + if (!(window.File && window.FileReader && window.FileList && window.Blob)) { + // The File API isn't supported in this browser + throw 'Unable to load file because the File API is not supported'; + } + } + // if type is a p5.File...get the actual file + if (paths.file) { + paths = paths.file; + } + this.file = paths; + } + // private _onended callback, set by the method: onended(callback) + this._onended = function () { + }; + this._looping = false; + this._playing = false; + this._paused = false; + this._pauseTime = 0; + // cues for scheduling events with addCue() removeCue() + this._cues = []; + this._cueIDCounter = 0; + // position of the most recently played sample + this._lastPos = 0; + this._counterNode = null; + this._scopeNode = null; + // array of sources so that they can all be stopped! + this.bufferSourceNodes = []; + // current source + this.bufferSourceNode = null; + this.buffer = null; + this.playbackRate = 1; + this.input = p5sound.audiocontext.createGain(); + this.output = p5sound.audiocontext.createGain(); + this.reversed = false; + // start and end of playback / loop + this.startTime = 0; + this.endTime = null; + this.pauseTime = 0; + // "restart" would stop playback before retriggering + this.mode = 'sustain'; + // time that playback was started, in millis + this.startMillis = null; + // stereo panning + this.panPosition = 0; + this.panner = new p5.Panner(this.output, p5sound.input, 2); + // it is possible to instantiate a soundfile with no path + if (this.url || this.file) { + this.load(onload, onerror); + } + // add this p5.SoundFile to the soundArray + p5sound.soundArray.push(this); + if (typeof whileLoading === 'function') { + this._whileLoading = whileLoading; + } else { + this._whileLoading = function () { + }; + } + this._onAudioProcess = _onAudioProcess.bind(this); + this._clearOnEnd = _clearOnEnd.bind(this); + }; + // register preload handling of loadSound + p5.prototype.registerPreloadMethod('loadSound', p5.prototype); + /** + * loadSound() returns a new p5.SoundFile from a specified + * path. If called during preload(), the p5.SoundFile will be ready + * to play in time for setup() and draw(). If called outside of + * preload, the p5.SoundFile will not be ready immediately, so + * loadSound accepts a callback as the second parameter. Using a + * + * local server is recommended when loading external files. + * + * @method loadSound + * @param {String|Array} path Path to the sound file, or an array with + * paths to soundfiles in multiple formats + * i.e. ['sound.ogg', 'sound.mp3']. + * Alternately, accepts an object: either + * from the HTML5 File API, or a p5.File. + * @param {Function} [successCallback] Name of a function to call once file loads + * @param {Function} [errorCallback] Name of a function to call if there is + * an error loading the file. + * @param {Function} [whileLoading] Name of a function to call while file is loading. + * This function will receive the percentage loaded + * so far, from 0.0 to 1.0. + * @return {SoundFile} Returns a p5.SoundFile + * @example + *
+ * function preload() { + * mySound = loadSound('assets/doorbell.mp3'); + * } + * + * function setup() { + * mySound.setVolume(0.1); + * mySound.play(); + * } + *
+ */ + p5.prototype.loadSound = function (path, callback, onerror, whileLoading) { + // if loading locally without a server + if (window.location.origin.indexOf('file://') > -1 && window.cordova === 'undefined') { + window.alert('This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS'); + } + var self = this; + var s = new p5.SoundFile(path, function () { + if (typeof callback === 'function') { + callback.apply(self, arguments); + } + if (typeof self._decrementPreload === 'function') { + self._decrementPreload(); + } + }, onerror, whileLoading); + return s; + }; + /** + * This is a helper function that the p5.SoundFile calls to load + * itself. Accepts a callback (the name of another function) + * as an optional parameter. + * + * @private + * @param {Function} [successCallback] Name of a function to call once file loads + * @param {Function} [errorCallback] Name of a function to call if there is an error + */ + p5.SoundFile.prototype.load = function (callback, errorCallback) { + var self = this; + var errorTrace = new Error().stack; + if (this.url !== undefined && this.url !== '') { + var request = new XMLHttpRequest(); + request.addEventListener('progress', function (evt) { + self._updateProgress(evt); + }, false); + request.open('GET', this.url, true); + request.responseType = 'arraybuffer'; + request.onload = function () { + if (request.status === 200) { + // on sucess loading file: + if (!self.panner) + return; + ac.decodeAudioData(request.response, // success decoding buffer: + function (buff) { + if (!self.panner) + return; + self.buffer = buff; + self.panner.inputChannels(buff.numberOfChannels); + if (callback) { + callback(self); + } + }, // error decoding buffer. "e" is undefined in Chrome 11/22/2015 + function () { + if (!self.panner) + return; + var err = new CustomError('decodeAudioData', errorTrace, self.url); + var msg = 'AudioContext error at decodeAudioData for ' + self.url; + if (errorCallback) { + err.msg = msg; + errorCallback(err); + } else { + console.error(msg + '\n The error stack trace includes: \n' + err.stack); + } + }); + } else { + if (!self.panner) + return; + var err = new CustomError('loadSound', errorTrace, self.url); + var msg = 'Unable to load ' + self.url + '. The request status was: ' + request.status + ' (' + request.statusText + ')'; + if (errorCallback) { + err.message = msg; + errorCallback(err); + } else { + console.error(msg + '\n The error stack trace includes: \n' + err.stack); + } + } + }; + // if there is another error, aside from 404... + request.onerror = function () { + var err = new CustomError('loadSound', errorTrace, self.url); + var msg = 'There was no response from the server at ' + self.url + '. Check the url and internet connectivity.'; + if (errorCallback) { + err.message = msg; + errorCallback(err); + } else { + console.error(msg + '\n The error stack trace includes: \n' + err.stack); + } + }; + request.send(); + } else if (this.file !== undefined) { + var reader = new FileReader(); + reader.onload = function () { + if (!self.panner) + return; + ac.decodeAudioData(reader.result, function (buff) { + if (!self.panner) + return; + self.buffer = buff; + self.panner.inputChannels(buff.numberOfChannels); + if (callback) { + callback(self); + } + }); + }; + reader.onerror = function (e) { + if (!self.panner) + return; + if (onerror) { + onerror(e); + } + }; + reader.readAsArrayBuffer(this.file); + } + }; + // TO DO: use this method to create a loading bar that shows progress during file upload/decode. + p5.SoundFile.prototype._updateProgress = function (evt) { + if (evt.lengthComputable) { + var percentComplete = evt.loaded / evt.total * 0.99; + this._whileLoading(percentComplete, evt); + } else { + // Unable to compute progress information since the total size is unknown + this._whileLoading('size unknown'); + } + }; + /** + * Returns true if the sound file finished loading successfully. + * + * @method isLoaded + * @return {Boolean} + */ + p5.SoundFile.prototype.isLoaded = function () { + if (this.buffer) { + return true; + } else { + return false; + } + }; + /** + * Play the p5.SoundFile + * + * @method play + * @param {Number} [startTime] (optional) schedule playback to start (in seconds from now). + * @param {Number} [rate] (optional) playback rate + * @param {Number} [amp] (optional) amplitude (volume) + * of playback + * @param {Number} [cueStart] (optional) cue start time in seconds + * @param {Number} [duration] (optional) duration of playback in seconds + */ + p5.SoundFile.prototype.play = function (startTime, rate, amp, _cueStart, duration) { + if (!this.output) { + console.warn('SoundFile.play() called after dispose'); + return; + } + var self = this; + var now = p5sound.audiocontext.currentTime; + var cueStart, cueEnd; + var time = startTime || 0; + if (time < 0) { + time = 0; + } + time = time + now; + if (typeof rate !== 'undefined') { + this.rate(rate); + } + if (typeof amp !== 'undefined') { + this.setVolume(amp); + } + // TO DO: if already playing, create array of buffers for easy stop() + if (this.buffer) { + // reset the pause time (if it was paused) + this._pauseTime = 0; + // handle restart playmode + if (this.mode === 'restart' && this.buffer && this.bufferSourceNode) { + this.bufferSourceNode.stop(time); + this._counterNode.stop(time); + } + //dont create another instance if already playing + if (this.mode === 'untildone' && this.isPlaying()) { + return; + } + // make a new source and counter. They are automatically assigned playbackRate and buffer + this.bufferSourceNode = this._initSourceNode(); + // garbage collect counterNode and create a new one + delete this._counterNode; + this._counterNode = this._initCounterNode(); + if (_cueStart) { + if (_cueStart >= 0 && _cueStart < this.buffer.duration) { + // this.startTime = cueStart; + cueStart = _cueStart; + } else { + throw 'start time out of range'; + } + } else { + cueStart = 0; + } + if (duration) { + // if duration is greater than buffer.duration, just play entire file anyway rather than throw an error + duration = duration <= this.buffer.duration - cueStart ? duration : this.buffer.duration; + } + // if it was paused, play at the pause position + if (this._paused) { + this.bufferSourceNode.start(time, this.pauseTime, duration); + this._counterNode.start(time, this.pauseTime, duration); + } else { + this.bufferSourceNode.start(time, cueStart, duration); + this._counterNode.start(time, cueStart, duration); + } + this._playing = true; + this._paused = false; + // add source to sources array, which is used in stopAll() + this.bufferSourceNodes.push(this.bufferSourceNode); + this.bufferSourceNode._arrayIndex = this.bufferSourceNodes.length - 1; + this.bufferSourceNode.addEventListener('ended', this._clearOnEnd); + } else { + throw 'not ready to play file, buffer has yet to load. Try preload()'; + } + // if looping, will restart at original time + this.bufferSourceNode.loop = this._looping; + this._counterNode.loop = this._looping; + if (this._looping === true) { + cueEnd = duration ? duration : cueStart - 1e-15; + this.bufferSourceNode.loopStart = cueStart; + this.bufferSourceNode.loopEnd = cueEnd; + this._counterNode.loopStart = cueStart; + this._counterNode.loopEnd = cueEnd; + } + }; + /** + * p5.SoundFile has two play modes: restart and + * sustain. Play Mode determines what happens to a + * p5.SoundFile if it is triggered while in the middle of playback. + * In sustain mode, playback will continue simultaneous to the + * new playback. In restart mode, play() will stop playback + * and start over. With untilDone, a sound will play only if it's + * not already playing. Sustain is the default mode. + * + * @method playMode + * @param {String} str 'restart' or 'sustain' or 'untilDone' + * @example + *
+ * var mySound; + * function preload(){ + * mySound = loadSound('assets/Damscray_DancingTiger.mp3'); + * } + * function mouseClicked() { + * mySound.playMode('sustain'); + * mySound.play(); + * } + * function keyPressed() { + * mySound.playMode('restart'); + * mySound.play(); + * } + * + *
+ */ + p5.SoundFile.prototype.playMode = function (str) { + var s = str.toLowerCase(); + // if restart, stop all other sounds from playing + if (s === 'restart' && this.buffer && this.bufferSourceNode) { + for (var i = 0; i < this.bufferSourceNodes.length - 1; i++) { + var now = p5sound.audiocontext.currentTime; + this.bufferSourceNodes[i].stop(now); + } + } + // set play mode to effect future playback + if (s === 'restart' || s === 'sustain' || s === 'untildone') { + this.mode = s; + } else { + throw 'Invalid play mode. Must be either "restart" or "sustain"'; + } + }; + /** + * Pauses a file that is currently playing. If the file is not + * playing, then nothing will happen. + * + * After pausing, .play() will resume from the paused + * position. + * If p5.SoundFile had been set to loop before it was paused, + * it will continue to loop after it is unpaused with .play(). + * + * @method pause + * @param {Number} [startTime] (optional) schedule event to occur + * seconds from now + * @example + *
+ * var soundFile; + * + * function preload() { + * soundFormats('ogg', 'mp3'); + * soundFile = loadSound('assets/Damscray_-_Dancing_Tiger_02.mp3'); + * } + * function setup() { + * background(0, 255, 0); + * soundFile.setVolume(0.1); + * soundFile.loop(); + * } + * function keyTyped() { + * if (key == 'p') { + * soundFile.pause(); + * background(255, 0, 0); + * } + * } + * + * function keyReleased() { + * if (key == 'p') { + * soundFile.play(); + * background(0, 255, 0); + * } + * } + * + *
+ */ + p5.SoundFile.prototype.pause = function (startTime) { + var now = p5sound.audiocontext.currentTime; + var time = startTime || 0; + var pTime = time + now; + if (this.isPlaying() && this.buffer && this.bufferSourceNode) { + this.pauseTime = this.currentTime(); + this.bufferSourceNode.stop(pTime); + this._counterNode.stop(pTime); + this._paused = true; + this._playing = false; + this._pauseTime = this.currentTime(); + } else { + this._pauseTime = 0; + } + }; + /** + * Loop the p5.SoundFile. Accepts optional parameters to set the + * playback rate, playback volume, loopStart, loopEnd. + * + * @method loop + * @param {Number} [startTime] (optional) schedule event to occur + * seconds from now + * @param {Number} [rate] (optional) playback rate + * @param {Number} [amp] (optional) playback volume + * @param {Number} [cueLoopStart] (optional) startTime in seconds + * @param {Number} [duration] (optional) loop duration in seconds + */ + p5.SoundFile.prototype.loop = function (startTime, rate, amp, loopStart, duration) { + this._looping = true; + this.play(startTime, rate, amp, loopStart, duration); + }; + /** + * Set a p5.SoundFile's looping flag to true or false. If the sound + * is currently playing, this change will take effect when it + * reaches the end of the current playback. + * + * @method setLoop + * @param {Boolean} Boolean set looping to true or false + */ + p5.SoundFile.prototype.setLoop = function (bool) { + if (bool === true) { + this._looping = true; + } else if (bool === false) { + this._looping = false; + } else { + throw 'Error: setLoop accepts either true or false'; + } + if (this.bufferSourceNode) { + this.bufferSourceNode.loop = this._looping; + this._counterNode.loop = this._looping; + } + }; + /** + * Returns 'true' if a p5.SoundFile is currently looping and playing, 'false' if not. + * + * @method isLooping + * @return {Boolean} + */ + p5.SoundFile.prototype.isLooping = function () { + if (!this.bufferSourceNode) { + return false; + } + if (this._looping === true && this.isPlaying() === true) { + return true; + } + return false; + }; + /** + * Returns true if a p5.SoundFile is playing, false if not (i.e. + * paused or stopped). + * + * @method isPlaying + * @return {Boolean} + */ + p5.SoundFile.prototype.isPlaying = function () { + return this._playing; + }; + /** + * Returns true if a p5.SoundFile is paused, false if not (i.e. + * playing or stopped). + * + * @method isPaused + * @return {Boolean} + */ + p5.SoundFile.prototype.isPaused = function () { + return this._paused; + }; + /** + * Stop soundfile playback. + * + * @method stop + * @param {Number} [startTime] (optional) schedule event to occur + * in seconds from now + */ + p5.SoundFile.prototype.stop = function (timeFromNow) { + var time = timeFromNow || 0; + if (this.mode === 'sustain' || this.mode === 'untildone') { + this.stopAll(time); + this._playing = false; + this.pauseTime = 0; + this._paused = false; + } else if (this.buffer && this.bufferSourceNode) { + var now = p5sound.audiocontext.currentTime; + var t = time || 0; + this.pauseTime = 0; + this.bufferSourceNode.stop(now + t); + this._counterNode.stop(now + t); + this._playing = false; + this._paused = false; + } + }; + /** + * Stop playback on all of this soundfile's sources. + * @private + */ + p5.SoundFile.prototype.stopAll = function (_time) { + var now = p5sound.audiocontext.currentTime; + var time = _time || 0; + if (this.buffer && this.bufferSourceNode) { + for (var i in this.bufferSourceNodes) { + const bufferSourceNode = this.bufferSourceNodes[i]; + if (!!bufferSourceNode) { + try { + bufferSourceNode.stop(now + time); + } catch (e) { + } + } + } + this._counterNode.stop(now + time); + this._onended(this); + } + }; + /** + * Multiply the output volume (amplitude) of a sound file + * between 0.0 (silence) and 1.0 (full volume). + * 1.0 is the maximum amplitude of a digital sound, so multiplying + * by greater than 1.0 may cause digital distortion. To + * fade, provide a rampTime parameter. For more + * complex fades, see the Envelope class. + * + * Alternately, you can pass in a signal source such as an + * oscillator to modulate the amplitude with an audio signal. + * + * @method setVolume + * @param {Number|Object} volume Volume (amplitude) between 0.0 + * and 1.0 or modulating signal/oscillator + * @param {Number} [rampTime] Fade for t seconds + * @param {Number} [timeFromNow] Schedule this event to happen at + * t seconds in the future + */ + p5.SoundFile.prototype.setVolume = function (vol, _rampTime, _tFromNow) { + if (typeof vol === 'number') { + var rampTime = _rampTime || 0; + var tFromNow = _tFromNow || 0; + var now = p5sound.audiocontext.currentTime; + var currentVol = this.output.gain.value; + this.output.gain.cancelScheduledValues(now + tFromNow); + this.output.gain.linearRampToValueAtTime(currentVol, now + tFromNow); + this.output.gain.linearRampToValueAtTime(vol, now + tFromNow + rampTime); + } else if (vol) { + vol.connect(this.output.gain); + } else { + // return the Gain Node + return this.output.gain; + } + }; + // same as setVolume, to match Processing Sound + p5.SoundFile.prototype.amp = p5.SoundFile.prototype.setVolume; + // these are the same thing + p5.SoundFile.prototype.fade = p5.SoundFile.prototype.setVolume; + p5.SoundFile.prototype.getVolume = function () { + return this.output.gain.value; + }; + /** + * Set the stereo panning of a p5.sound object to + * a floating point number between -1.0 (left) and 1.0 (right). + * Default is 0.0 (center). + * + * @method pan + * @param {Number} [panValue] Set the stereo panner + * @param {Number} [timeFromNow] schedule this event to happen + * seconds from now + * @example + *
+ * + * var ball = {}; + * var soundFile; + * + * function preload() { + * soundFormats('ogg', 'mp3'); + * soundFile = loadSound('assets/beatbox.mp3'); + * } + * + * function draw() { + * background(0); + * ball.x = constrain(mouseX, 0, width); + * ellipse(ball.x, height/2, 20, 20) + * } + * + * function mousePressed(){ + * // map the ball's x location to a panning degree + * // between -1.0 (left) and 1.0 (right) + * var panning = map(ball.x, 0., width,-1.0, 1.0); + * soundFile.pan(panning); + * soundFile.play(); + * } + *
+ */ + p5.SoundFile.prototype.pan = function (pval, tFromNow) { + this.panPosition = pval; + this.panner.pan(pval, tFromNow); + }; + /** + * Returns the current stereo pan position (-1.0 to 1.0) + * + * @method getPan + * @return {Number} Returns the stereo pan setting of the Oscillator + * as a number between -1.0 (left) and 1.0 (right). + * 0.0 is center and default. + */ + p5.SoundFile.prototype.getPan = function () { + return this.panPosition; + }; + /** + * Set the playback rate of a sound file. Will change the speed and the pitch. + * Values less than zero will reverse the audio buffer. + * + * @method rate + * @param {Number} [playbackRate] Set the playback rate. 1.0 is normal, + * .5 is half-speed, 2.0 is twice as fast. + * Values less than zero play backwards. + * @example + *
+ * var song; + * + * function preload() { + * song = loadSound('assets/Damscray_DancingTiger.mp3'); + * } + * + * function setup() { + * song.loop(); + * } + * + * function draw() { + * background(200); + * + * // Set the rate to a range between 0.1 and 4 + * // Changing the rate also alters the pitch + * var speed = map(mouseY, 0.1, height, 0, 2); + * speed = constrain(speed, 0.01, 4); + * song.rate(speed); + * + * // Draw a circle to show what is going on + * stroke(0); + * fill(51, 100); + * ellipse(mouseX, 100, 48, 48); + * } + * + * + *
+ * + */ + p5.SoundFile.prototype.rate = function (playbackRate) { + var reverse = false; + if (typeof playbackRate === 'undefined') { + return this.playbackRate; + } + this.playbackRate = playbackRate; + if (playbackRate === 0) { + playbackRate = 1e-13; + } else if (playbackRate < 0 && !this.reversed) { + playbackRate = Math.abs(playbackRate); + reverse = true; + } else if (playbackRate > 0 && this.reversed) { + reverse = true; + } + if (this.bufferSourceNode) { + var now = p5sound.audiocontext.currentTime; + this.bufferSourceNode.playbackRate.cancelScheduledValues(now); + this.bufferSourceNode.playbackRate.linearRampToValueAtTime(Math.abs(playbackRate), now); + this._counterNode.playbackRate.cancelScheduledValues(now); + this._counterNode.playbackRate.linearRampToValueAtTime(Math.abs(playbackRate), now); + } + if (reverse) { + this.reverseBuffer(); + } + return this.playbackRate; + }; + // TO DO: document this + p5.SoundFile.prototype.setPitch = function (num) { + var newPlaybackRate = midiToFreq(num) / midiToFreq(60); + this.rate(newPlaybackRate); + }; + p5.SoundFile.prototype.getPlaybackRate = function () { + return this.playbackRate; + }; + /** + * Returns the duration of a sound file in seconds. + * + * @method duration + * @return {Number} The duration of the soundFile in seconds. + */ + p5.SoundFile.prototype.duration = function () { + // Return Duration + if (this.buffer) { + return this.buffer.duration; + } else { + return 0; + } + }; + /** + * Return the current position of the p5.SoundFile playhead, in seconds. + * Time is relative to the normal buffer direction, so if `reverseBuffer` + * has been called, currentTime will count backwards. + * + * @method currentTime + * @return {Number} currentTime of the soundFile in seconds. + */ + p5.SoundFile.prototype.currentTime = function () { + return this.reversed ? Math.abs(this._lastPos - this.buffer.length) / ac.sampleRate : this._lastPos / ac.sampleRate; + }; + /** + * Move the playhead of the song to a position, in seconds. Start timing + * and playback duration. If none are given, will reset the file to play + * entire duration from start to finish. + * + * @method jump + * @param {Number} cueTime cueTime of the soundFile in seconds. + * @param {Number} duration duration in seconds. + */ + p5.SoundFile.prototype.jump = function (cueTime, duration) { + if (cueTime < 0 || cueTime > this.buffer.duration) { + throw 'jump time out of range'; + } + if (duration > this.buffer.duration - cueTime) { + throw 'end time out of range'; + } + var cTime = cueTime || 0; + var dur = duration || undefined; + if (this.isPlaying()) { + this.stop(0); + } + this.play(0, this.playbackRate, this.output.gain.value, cTime, dur); + }; + /** + * Return the number of channels in a sound file. + * For example, Mono = 1, Stereo = 2. + * + * @method channels + * @return {Number} [channels] + */ + p5.SoundFile.prototype.channels = function () { + return this.buffer.numberOfChannels; + }; + /** + * Return the sample rate of the sound file. + * + * @method sampleRate + * @return {Number} [sampleRate] + */ + p5.SoundFile.prototype.sampleRate = function () { + return this.buffer.sampleRate; + }; + /** + * Return the number of samples in a sound file. + * Equal to sampleRate * duration. + * + * @method frames + * @return {Number} [sampleCount] + */ + p5.SoundFile.prototype.frames = function () { + return this.buffer.length; + }; + /** + * Returns an array of amplitude peaks in a p5.SoundFile that can be + * used to draw a static waveform. Scans through the p5.SoundFile's + * audio buffer to find the greatest amplitudes. Accepts one + * parameter, 'length', which determines size of the array. + * Larger arrays result in more precise waveform visualizations. + * + * Inspired by Wavesurfer.js. + * + * @method getPeaks + * @params {Number} [length] length is the size of the returned array. + * Larger length results in more precision. + * Defaults to 5*width of the browser window. + * @returns {Float32Array} Array of peaks. + */ + p5.SoundFile.prototype.getPeaks = function (length) { + if (this.buffer) { + // set length to window's width if no length is provided + if (!length) { + length = window.width * 5; + } + if (this.buffer) { + var buffer = this.buffer; + var sampleSize = buffer.length / length; + var sampleStep = ~~(sampleSize / 10) || 1; + var channels = buffer.numberOfChannels; + var peaks = new Float32Array(Math.round(length)); + for (var c = 0; c < channels; c++) { + var chan = buffer.getChannelData(c); + for (var i = 0; i < length; i++) { + var start = ~~(i * sampleSize); + var end = ~~(start + sampleSize); + var max = 0; + for (var j = start; j < end; j += sampleStep) { + var value = chan[j]; + if (value > max) { + max = value; + } else if (-value > max) { + max = value; + } + } + if (c === 0 || Math.abs(max) > peaks[i]) { + peaks[i] = max; + } + } + } + return peaks; + } + } else { + throw 'Cannot load peaks yet, buffer is not loaded'; + } + }; + /** + * Reverses the p5.SoundFile's buffer source. + * Playback must be handled separately (see example). + * + * @method reverseBuffer + * @example + *
+ * var drum; + * + * function preload() { + * drum = loadSound('assets/drum.mp3'); + * } + * + * function setup() { + * drum.reverseBuffer(); + * drum.play(); + * } + * + * + *
+ */ + p5.SoundFile.prototype.reverseBuffer = function () { + if (this.buffer) { + var currentPos = this._lastPos / ac.sampleRate; + var curVol = this.getVolume(); + this.setVolume(0, 0.001); + const numChannels = this.buffer.numberOfChannels; + for (var i = 0; i < numChannels; i++) { + this.buffer.getChannelData(i).reverse(); + } + // set reversed flag + this.reversed = !this.reversed; + if (currentPos) { + this.jump(this.duration() - currentPos); + } + this.setVolume(curVol, 0.001); + } else { + throw 'SoundFile is not done loading'; + } + }; + /** + * Schedule an event to be called when the soundfile + * reaches the end of a buffer. If the soundfile is + * playing through once, this will be called when it + * ends. If it is looping, it will be called when + * stop is called. + * + * @method onended + * @param {Function} callback function to call when the + * soundfile has ended. + */ + p5.SoundFile.prototype.onended = function (callback) { + this._onended = callback; + return this; + }; + p5.SoundFile.prototype.add = function () { + }; + p5.SoundFile.prototype.dispose = function () { + var now = p5sound.audiocontext.currentTime; + // remove reference to soundfile + var index = p5sound.soundArray.indexOf(this); + p5sound.soundArray.splice(index, 1); + this.stop(now); + if (this.buffer && this.bufferSourceNode) { + for (var i = 0; i < this.bufferSourceNodes.length - 1; i++) { + if (this.bufferSourceNodes[i] !== null) { + this.bufferSourceNodes[i].disconnect(); + try { + this.bufferSourceNodes[i].stop(now); + } catch (e) { + console.warning('no buffer source node to dispose'); + } + this.bufferSourceNodes[i] = null; + } + } + if (this.isPlaying()) { + try { + this._counterNode.stop(now); + } catch (e) { + console.log(e); + } + this._counterNode = null; + } + } + if (this.output) { + this.output.disconnect(); + this.output = null; + } + if (this.panner) { + this.panner.disconnect(); + this.panner = null; + } + }; + /** + * Connects the output of a p5sound object to input of another + * p5.sound object. For example, you may connect a p5.SoundFile to an + * FFT or an Effect. If no parameter is given, it will connect to + * the master output. Most p5sound objects connect to the master + * output when they are created. + * + * @method connect + * @param {Object} [object] Audio object that accepts an input + */ + p5.SoundFile.prototype.connect = function (unit) { + if (!unit) { + this.panner.connect(p5sound.input); + } else { + if (unit.hasOwnProperty('input')) { + this.panner.connect(unit.input); + } else { + this.panner.connect(unit); + } + } + }; + /** + * Disconnects the output of this p5sound object. + * + * @method disconnect + */ + p5.SoundFile.prototype.disconnect = function () { + if (this.panner) { + this.panner.disconnect(); + } + }; + /** + */ + p5.SoundFile.prototype.getLevel = function () { + console.warn('p5.SoundFile.getLevel has been removed from the library. Use p5.Amplitude instead'); + }; + /** + * Reset the source for this SoundFile to a + * new path (URL). + * + * @method setPath + * @param {String} path path to audio file + * @param {Function} callback Callback + */ + p5.SoundFile.prototype.setPath = function (p, callback) { + var path = p5.prototype._checkFileFormats(p); + this.url = path; + this.load(callback); + }; + /** + * Replace the current Audio Buffer with a new Buffer. + * + * @method setBuffer + * @param {Array} buf Array of Float32 Array(s). 2 Float32 Arrays + * will create a stereo source. 1 will create + * a mono source. + */ + p5.SoundFile.prototype.setBuffer = function (buf) { + var numChannels = buf.length; + var size = buf[0].length; + var newBuffer = ac.createBuffer(numChannels, size, ac.sampleRate); + if (!(buf[0] instanceof Float32Array)) { + buf[0] = new Float32Array(buf[0]); + } + for (var channelNum = 0; channelNum < numChannels; channelNum++) { + var channel = newBuffer.getChannelData(channelNum); + channel.set(buf[channelNum]); + } + this.buffer = newBuffer; + // set numbers of channels on input to the panner + this.panner.inputChannels(numChannels); + }; + ////////////////////////////////////////////////// + // script processor node with an empty buffer to help + // keep a sample-accurate position in playback buffer. + // Inspired by Chinmay Pendharkar's technique for Sonoport --> http://bit.ly/1HwdCsV + // Copyright [2015] [Sonoport (Asia) Pte. Ltd.], + // Licensed under the Apache License http://apache.org/licenses/LICENSE-2.0 + //////////////////////////////////////////////////////////////////////////////////// + var _createCounterBuffer = function (buffer) { + const len = buffer.length; + const audioBuf = ac.createBuffer(1, buffer.length, ac.sampleRate); + const arrayBuffer = audioBuf.getChannelData(0); + for (var index = 0; index < len; index++) { + arrayBuffer[index] = index; + } + return audioBuf; + }; + // initialize counterNode, set its initial buffer and playbackRate + p5.SoundFile.prototype._initCounterNode = function () { + var self = this; + var now = ac.currentTime; + var cNode = ac.createBufferSource(); + // dispose of scope node if it already exists + if (self._scopeNode) { + self._scopeNode.disconnect(); + self._scopeNode.removeEventListener('audioprocess', self._onAudioProcess); + delete self._scopeNode; + } + self._scopeNode = ac.createScriptProcessor(256, 1, 1); + // create counter buffer of the same length as self.buffer + cNode.buffer = _createCounterBuffer(self.buffer); + cNode.playbackRate.setValueAtTime(self.playbackRate, now); + cNode.connect(self._scopeNode); + self._scopeNode.connect(p5.soundOut._silentNode); + self._scopeNode.addEventListener('audioprocess', self._onAudioProcess); + return cNode; + }; + // initialize sourceNode, set its initial buffer and playbackRate + p5.SoundFile.prototype._initSourceNode = function () { + var bufferSourceNode = ac.createBufferSource(); + bufferSourceNode.buffer = this.buffer; + bufferSourceNode.playbackRate.value = this.playbackRate; + bufferSourceNode.connect(this.output); + return bufferSourceNode; + }; + /** + * processPeaks returns an array of timestamps where it thinks there is a beat. + * + * This is an asynchronous function that processes the soundfile in an offline audio context, + * and sends the results to your callback function. + * + * The process involves running the soundfile through a lowpass filter, and finding all of the + * peaks above the initial threshold. If the total number of peaks are below the minimum number of peaks, + * it decreases the threshold and re-runs the analysis until either minPeaks or minThreshold are reached. + * + * @method processPeaks + * @param {Function} callback a function to call once this data is returned + * @param {Number} [initThreshold] initial threshold defaults to 0.9 + * @param {Number} [minThreshold] minimum threshold defaults to 0.22 + * @param {Number} [minPeaks] minimum number of peaks defaults to 200 + * @return {Array} Array of timestamped peaks + */ + p5.SoundFile.prototype.processPeaks = function (callback, _initThreshold, _minThreshold, _minPeaks) { + var bufLen = this.buffer.length; + var sampleRate = this.buffer.sampleRate; + var buffer = this.buffer; + var allPeaks = []; + var initialThreshold = _initThreshold || 0.9, threshold = initialThreshold, minThreshold = _minThreshold || 0.22, minPeaks = _minPeaks || 200; + // Create offline context + var offlineContext = new window.OfflineAudioContext(1, bufLen, sampleRate); + // create buffer source + var source = offlineContext.createBufferSource(); + source.buffer = buffer; + // Create filter. TO DO: allow custom setting of filter + var filter = offlineContext.createBiquadFilter(); + filter.type = 'lowpass'; + source.connect(filter); + filter.connect(offlineContext.destination); + // start playing at time:0 + source.start(0); + offlineContext.startRendering(); + // Render the song + // act on the result + offlineContext.oncomplete = function (e) { + if (!self.panner) + return; + var filteredBuffer = e.renderedBuffer; + var bufferData = filteredBuffer.getChannelData(0); + // step 1: + // create Peak instances, add them to array, with strength and sampleIndex + do { + allPeaks = getPeaksAtThreshold(bufferData, threshold); + threshold -= 0.005; + } while (Object.keys(allPeaks).length < minPeaks && threshold >= minThreshold); + // step 2: + // find intervals for each peak in the sampleIndex, add tempos array + var intervalCounts = countIntervalsBetweenNearbyPeaks(allPeaks); + // step 3: find top tempos + var groups = groupNeighborsByTempo(intervalCounts, filteredBuffer.sampleRate); + // sort top intervals + var topTempos = groups.sort(function (intA, intB) { + return intB.count - intA.count; + }).splice(0, 5); + // set this SoundFile's tempo to the top tempo ?? + this.tempo = topTempos[0].tempo; + // step 4: + // new array of peaks at top tempo within a bpmVariance + var bpmVariance = 5; + var tempoPeaks = getPeaksAtTopTempo(allPeaks, topTempos[0].tempo, filteredBuffer.sampleRate, bpmVariance); + callback(tempoPeaks); + }; + }; + // process peaks + var Peak = function (amp, i) { + this.sampleIndex = i; + this.amplitude = amp; + this.tempos = []; + this.intervals = []; + }; + // 1. for processPeaks() Function to identify peaks above a threshold + // returns an array of peak indexes as frames (samples) of the original soundfile + function getPeaksAtThreshold(data, threshold) { + var peaksObj = {}; + var length = data.length; + for (var i = 0; i < length; i++) { + if (data[i] > threshold) { + var amp = data[i]; + var peak = new Peak(amp, i); + peaksObj[i] = peak; + // Skip forward ~ 1/8s to get past this peak. + i += 6000; + } + i++; + } + return peaksObj; + } + // 2. for processPeaks() + function countIntervalsBetweenNearbyPeaks(peaksObj) { + var intervalCounts = []; + var peaksArray = Object.keys(peaksObj).sort(); + for (var index = 0; index < peaksArray.length; index++) { + // find intervals in comparison to nearby peaks + for (var i = 0; i < 10; i++) { + var startPeak = peaksObj[peaksArray[index]]; + var endPeak = peaksObj[peaksArray[index + i]]; + if (startPeak && endPeak) { + var startPos = startPeak.sampleIndex; + var endPos = endPeak.sampleIndex; + var interval = endPos - startPos; + // add a sample interval to the startPeak in the allPeaks array + if (interval > 0) { + startPeak.intervals.push(interval); + } + // tally the intervals and return interval counts + var foundInterval = intervalCounts.some(function (intervalCount) { + if (intervalCount.interval === interval) { + intervalCount.count++; + return intervalCount; + } + }); + // store with JSON like formatting + if (!foundInterval) { + intervalCounts.push({ + interval: interval, + count: 1 + }); + } + } + } + } + return intervalCounts; + } + // 3. for processPeaks --> find tempo + function groupNeighborsByTempo(intervalCounts, sampleRate) { + var tempoCounts = []; + intervalCounts.forEach(function (intervalCount) { + try { + // Convert an interval to tempo + var theoreticalTempo = Math.abs(60 / (intervalCount.interval / sampleRate)); + theoreticalTempo = mapTempo(theoreticalTempo); + var foundTempo = tempoCounts.some(function (tempoCount) { + if (tempoCount.tempo === theoreticalTempo) + return tempoCount.count += intervalCount.count; + }); + if (!foundTempo) { + if (isNaN(theoreticalTempo)) { + return; + } + tempoCounts.push({ + tempo: Math.round(theoreticalTempo), + count: intervalCount.count + }); + } + } catch (e) { + throw e; + } + }); + return tempoCounts; + } + // 4. for processPeaks - get peaks at top tempo + function getPeaksAtTopTempo(peaksObj, tempo, sampleRate, bpmVariance) { + var peaksAtTopTempo = []; + var peaksArray = Object.keys(peaksObj).sort(); + // TO DO: filter out peaks that have the tempo and return + for (var i = 0; i < peaksArray.length; i++) { + var key = peaksArray[i]; + var peak = peaksObj[key]; + for (var j = 0; j < peak.intervals.length; j++) { + var intervalBPM = Math.round(Math.abs(60 / (peak.intervals[j] / sampleRate))); + intervalBPM = mapTempo(intervalBPM); + if (Math.abs(intervalBPM - tempo) < bpmVariance) { + // convert sampleIndex to seconds + peaksAtTopTempo.push(peak.sampleIndex / sampleRate); + } + } + } + // filter out peaks that are very close to each other + peaksAtTopTempo = peaksAtTopTempo.filter(function (peakTime, index, arr) { + var dif = arr[index + 1] - peakTime; + if (dif > 0.01) { + return true; + } + }); + return peaksAtTopTempo; + } + // helper function for processPeaks + function mapTempo(theoreticalTempo) { + // these scenarios create infinite while loop + if (!isFinite(theoreticalTempo) || theoreticalTempo === 0) { + return; + } + // Adjust the tempo to fit within the 90-180 BPM range + while (theoreticalTempo < 90) + theoreticalTempo *= 2; + while (theoreticalTempo > 180 && theoreticalTempo > 90) + theoreticalTempo /= 2; + return theoreticalTempo; + } + /*** SCHEDULE EVENTS ***/ + // Cue inspired by JavaScript setTimeout, and the + // Tone.js Transport Timeline Event, MIT License Yotam Mann 2015 tonejs.org + var Cue = function (callback, time, id, val) { + this.callback = callback; + this.time = time; + this.id = id; + this.val = val; + }; + /** + * Schedule events to trigger every time a MediaElement + * (audio/video) reaches a playback cue point. + * + * Accepts a callback function, a time (in seconds) at which to trigger + * the callback, and an optional parameter for the callback. + * + * Time will be passed as the first parameter to the callback function, + * and param will be the second parameter. + * + * + * @method addCue + * @param {Number} time Time in seconds, relative to this media + * element's playback. For example, to trigger + * an event every time playback reaches two + * seconds, pass in the number 2. This will be + * passed as the first parameter to + * the callback function. + * @param {Function} callback Name of a function that will be + * called at the given time. The callback will + * receive time and (optionally) param as its + * two parameters. + * @param {Object} [value] An object to be passed as the + * second parameter to the + * callback function. + * @return {Number} id ID of this cue, + * useful for removeCue(id) + * @example + *
+ * var mySound; + * function preload() { + * mySound = loadSound('assets/beat.mp3'); + * } + * + * function setup() { + * background(0); + * noStroke(); + * fill(255); + * textAlign(CENTER); + * text('click to play', width/2, height/2); + * + * // schedule calls to changeText + * mySound.addCue(0.50, changeText, "hello" ); + * mySound.addCue(1.00, changeText, "p5" ); + * mySound.addCue(1.50, changeText, "what" ); + * mySound.addCue(2.00, changeText, "do" ); + * mySound.addCue(2.50, changeText, "you" ); + * mySound.addCue(3.00, changeText, "want" ); + * mySound.addCue(4.00, changeText, "to" ); + * mySound.addCue(5.00, changeText, "make" ); + * mySound.addCue(6.00, changeText, "?" ); + * } + * + * function changeText(val) { + * background(0); + * text(val, width/2, height/2); + * } + * + * function mouseClicked() { + * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { + * if (mySound.isPlaying() ) { + * mySound.stop(); + * } else { + * mySound.play(); + * } + * } + * } + *
+ */ + p5.SoundFile.prototype.addCue = function (time, callback, val) { + var id = this._cueIDCounter++; + var cue = new Cue(callback, time, id, val); + this._cues.push(cue); + // if (!this.elt.ontimeupdate) { + // this.elt.ontimeupdate = this._onTimeUpdate.bind(this); + // } + return id; + }; + /** + * Remove a callback based on its ID. The ID is returned by the + * addCue method. + * + * @method removeCue + * @param {Number} id ID of the cue, as returned by addCue + */ + p5.SoundFile.prototype.removeCue = function (id) { + var cueLength = this._cues.length; + for (var i = 0; i < cueLength; i++) { + var cue = this._cues[i]; + if (cue.id === id) { + this._cues.splice(i, 1); + break; + } + } + if (this._cues.length === 0) { + } + }; + /** + * Remove all of the callbacks that had originally been scheduled + * via the addCue method. + * + * @method clearCues + */ + p5.SoundFile.prototype.clearCues = function () { + this._cues = []; + }; + // private method that checks for cues to be fired if events + // have been scheduled using addCue(callback, time). + p5.SoundFile.prototype._onTimeUpdate = function (position) { + var playbackTime = position / this.buffer.sampleRate; + var cueLength = this._cues.length; + for (var i = 0; i < cueLength; i++) { + var cue = this._cues[i]; + var callbackTime = cue.time; + var val = cue.val; + if (this._prevTime < callbackTime && callbackTime <= playbackTime) { + // pass the scheduled callbackTime as parameter to the callback + cue.callback(val); + } + } + this._prevTime = playbackTime; + }; + /** + * Save a p5.SoundFile as a .wav file. The browser will prompt the user + * to download the file to their device. To upload a file to a server, see + * getBlob + * + * @method save + * @param {String} [fileName] name of the resulting .wav file. + * @example + *
+ * var inp, button, mySound; + * var fileName = 'cool'; + * function preload() { + * mySound = loadSound('assets/doorbell.mp3'); + * } + * function setup() { + * btn = createButton('click to save file'); + * btn.position(0, 0); + * btn.mouseClicked(handleMouseClick); + * } + * + * function handleMouseClick() { + * mySound.save(fileName); + * } + *
+ */ + p5.SoundFile.prototype.save = function (fileName) { + const dataView = convertToWav(this.buffer); + p5.prototype.saveSound([dataView], fileName, 'wav'); + }; + /** + * This method is useful for sending a SoundFile to a server. It returns the + * .wav-encoded audio data as a "Blob". + * A Blob is a file-like data object that can be uploaded to a server + * with an http request. We'll + * use the `httpDo` options object to send a POST request with some + * specific options: we encode the request as `multipart/form-data`, + * and attach the blob as one of the form values using `FormData`. + * + * + * @method getBlob + * @returns {Blob} A file-like data object + * @example + *
+ * + * function preload() { + * mySound = loadSound('assets/doorbell.mp3'); + * } + * + * function setup() { + * noCanvas(); + * var soundBlob = mySound.getBlob(); + * + * // Now we can send the blob to a server... + * var serverUrl = 'https://jsonplaceholder.typicode.com/posts'; + * var httpRequestOptions = { + * method: 'POST', + * body: new FormData().append('soundBlob', soundBlob), + * headers: new Headers({ + * 'Content-Type': 'multipart/form-data' + * }) + * }; + * httpDo(serverUrl, httpRequestOptions); + * + * // We can also create an `ObjectURL` pointing to the Blob + * var blobUrl = URL.createObjectURL(soundBlob); + * + * // The `
+ */ + p5.SoundFile.prototype.getBlob = function () { + const dataView = convertToWav(this.buffer); + return new Blob([dataView], { type: 'audio/wav' }); + }; + // event handler to keep track of current position + function _onAudioProcess(processEvent) { + var inputBuffer = processEvent.inputBuffer.getChannelData(0); + this._lastPos = inputBuffer[inputBuffer.length - 1] || 0; + // do any callbacks that have been scheduled + this._onTimeUpdate(self._lastPos); + } + // event handler to remove references to the bufferSourceNode when it is done playing + function _clearOnEnd(e) { + const thisBufferSourceNode = e.target; + const soundFile = this; + // delete this.bufferSourceNode from the sources array when it is done playing: + thisBufferSourceNode._playing = false; + thisBufferSourceNode.removeEventListener('ended', soundFile._clearOnEnd); + // call the onended callback + soundFile._onended(soundFile); + soundFile.bufferSourceNodes.forEach(function (n, i) { + if (n._playing === false) { + soundFile.bufferSourceNodes.splice(i); + } + }); + if (soundFile.bufferSourceNodes.length === 0) { + soundFile._playing = false; + } + } +}(errorHandler, master, helpers, helpers); +var amplitude; +'use strict'; +amplitude = function () { + var p5sound = master; + /** + * Amplitude measures volume between 0.0 and 1.0. + * Listens to all p5sound by default, or use setInput() + * to listen to a specific sound source. Accepts an optional + * smoothing value, which defaults to 0. + * + * @class p5.Amplitude + * @constructor + * @param {Number} [smoothing] between 0.0 and .999 to smooth + * amplitude readings (defaults to 0) + * @example + *
+ * var sound, amplitude, cnv; + * + * function preload(){ + * sound = loadSound('assets/beat.mp3'); + * } + * function setup() { + * cnv = createCanvas(100,100); + * amplitude = new p5.Amplitude(); + * + * // start / stop the sound when canvas is clicked + * cnv.mouseClicked(function() { + * if (sound.isPlaying() ){ + * sound.stop(); + * } else { + * sound.play(); + * } + * }); + * } + * function draw() { + * background(0); + * fill(255); + * var level = amplitude.getLevel(); + * var size = map(level, 0, 1, 0, 200); + * ellipse(width/2, height/2, size, size); + * } + * + *
+ */ + p5.Amplitude = function (smoothing) { + // Set to 2048 for now. In future iterations, this should be inherited or parsed from p5sound's default + this.bufferSize = 2048; + // set audio context + this.audiocontext = p5sound.audiocontext; + this.processor = this.audiocontext.createScriptProcessor(this.bufferSize, 2, 1); + // for connections + this.input = this.processor; + this.output = this.audiocontext.createGain(); + // smoothing defaults to 0 + this.smoothing = smoothing || 0; + // the variables to return + this.volume = 0; + this.average = 0; + this.stereoVol = [ + 0, + 0 + ]; + this.stereoAvg = [ + 0, + 0 + ]; + this.stereoVolNorm = [ + 0, + 0 + ]; + this.volMax = 0.001; + this.normalize = false; + this.processor.onaudioprocess = this._audioProcess.bind(this); + this.processor.connect(this.output); + this.output.gain.value = 0; + // this may only be necessary because of a Chrome bug + this.output.connect(this.audiocontext.destination); + // connect to p5sound master output by default, unless set by input() + p5sound.meter.connect(this.processor); + // add this p5.SoundFile to the soundArray + p5sound.soundArray.push(this); + }; + /** + * Connects to the p5sound instance (master output) by default. + * Optionally, you can pass in a specific source (i.e. a soundfile). + * + * @method setInput + * @param {soundObject|undefined} [snd] set the sound source + * (optional, defaults to + * master output) + * @param {Number|undefined} [smoothing] a range between 0.0 and 1.0 + * to smooth amplitude readings + * @example + *
+ * function preload(){ + * sound1 = loadSound('assets/beat.mp3'); + * sound2 = loadSound('assets/drum.mp3'); + * } + * function setup(){ + * amplitude = new p5.Amplitude(); + * sound1.play(); + * sound2.play(); + * amplitude.setInput(sound2); + * } + * function draw() { + * background(0); + * fill(255); + * var level = amplitude.getLevel(); + * var size = map(level, 0, 1, 0, 200); + * ellipse(width/2, height/2, size, size); + * } + * function mouseClicked(){ + * sound1.stop(); + * sound2.stop(); + * } + *
+ */ + p5.Amplitude.prototype.setInput = function (source, smoothing) { + p5sound.meter.disconnect(); + if (smoothing) { + this.smoothing = smoothing; + } + // connect to the master out of p5s instance if no snd is provided + if (source == null) { + p5sound.meter.connect(this.processor); + } else if (source instanceof p5.Signal) { + source.output.connect(this.processor); + } else if (source) { + source.connect(this.processor); + this.processor.disconnect(); + this.processor.connect(this.output); + } else { + p5sound.meter.connect(this.processor); + } + }; + p5.Amplitude.prototype.connect = function (unit) { + if (unit) { + if (unit.hasOwnProperty('input')) { + this.output.connect(unit.input); + } else { + this.output.connect(unit); + } + } else { + this.output.connect(this.panner.connect(p5sound.input)); + } + }; + p5.Amplitude.prototype.disconnect = function () { + if (this.output) { + this.output.disconnect(); + } + }; + // TO DO make this stereo / dependent on # of audio channels + p5.Amplitude.prototype._audioProcess = function (event) { + for (var channel = 0; channel < event.inputBuffer.numberOfChannels; channel++) { + var inputBuffer = event.inputBuffer.getChannelData(channel); + var bufLength = inputBuffer.length; + var total = 0; + var sum = 0; + var x; + for (var i = 0; i < bufLength; i++) { + x = inputBuffer[i]; + if (this.normalize) { + total += Math.max(Math.min(x / this.volMax, 1), -1); + sum += Math.max(Math.min(x / this.volMax, 1), -1) * Math.max(Math.min(x / this.volMax, 1), -1); + } else { + total += x; + sum += x * x; + } + } + var average = total / bufLength; + // ... then take the square root of the sum. + var rms = Math.sqrt(sum / bufLength); + this.stereoVol[channel] = Math.max(rms, this.stereoVol[channel] * this.smoothing); + this.stereoAvg[channel] = Math.max(average, this.stereoVol[channel] * this.smoothing); + this.volMax = Math.max(this.stereoVol[channel], this.volMax); + } + // add volume from all channels together + var self = this; + var volSum = this.stereoVol.reduce(function (previousValue, currentValue, index) { + self.stereoVolNorm[index - 1] = Math.max(Math.min(self.stereoVol[index - 1] / self.volMax, 1), 0); + self.stereoVolNorm[index] = Math.max(Math.min(self.stereoVol[index] / self.volMax, 1), 0); + return previousValue + currentValue; + }); + // volume is average of channels + this.volume = volSum / this.stereoVol.length; + // normalized value + this.volNorm = Math.max(Math.min(this.volume / this.volMax, 1), 0); + }; + /** + * Returns a single Amplitude reading at the moment it is called. + * For continuous readings, run in the draw loop. + * + * @method getLevel + * @param {Number} [channel] Optionally return only channel 0 (left) or 1 (right) + * @return {Number} Amplitude as a number between 0.0 and 1.0 + * @example + *
+ * function preload(){ + * sound = loadSound('assets/beat.mp3'); + * } + * function setup() { + * amplitude = new p5.Amplitude(); + * sound.play(); + * } + * function draw() { + * background(0); + * fill(255); + * var level = amplitude.getLevel(); + * var size = map(level, 0, 1, 0, 200); + * ellipse(width/2, height/2, size, size); + * } + * function mouseClicked(){ + * sound.stop(); + * } + *
+ */ + p5.Amplitude.prototype.getLevel = function (channel) { + if (typeof channel !== 'undefined') { + if (this.normalize) { + return this.stereoVolNorm[channel]; + } else { + return this.stereoVol[channel]; + } + } else if (this.normalize) { + return this.volNorm; + } else { + return this.volume; + } + }; + /** + * Determines whether the results of Amplitude.process() will be + * Normalized. To normalize, Amplitude finds the difference the + * loudest reading it has processed and the maximum amplitude of + * 1.0. Amplitude adds this difference to all values to produce + * results that will reliably map between 0.0 and 1.0. However, + * if a louder moment occurs, the amount that Normalize adds to + * all the values will change. Accepts an optional boolean parameter + * (true or false). Normalizing is off by default. + * + * @method toggleNormalize + * @param {boolean} [boolean] set normalize to true (1) or false (0) + */ + p5.Amplitude.prototype.toggleNormalize = function (bool) { + if (typeof bool === 'boolean') { + this.normalize = bool; + } else { + this.normalize = !this.normalize; + } + }; + /** + * Smooth Amplitude analysis by averaging with the last analysis + * frame. Off by default. + * + * @method smooth + * @param {Number} set smoothing from 0.0 <= 1 + */ + p5.Amplitude.prototype.smooth = function (s) { + if (s >= 0 && s < 1) { + this.smoothing = s; + } else { + console.log('Error: smoothing must be between 0 and 1'); + } + }; + p5.Amplitude.prototype.dispose = function () { + // remove reference from soundArray + var index = p5sound.soundArray.indexOf(this); + p5sound.soundArray.splice(index, 1); + if (this.input) { + this.input.disconnect(); + delete this.input; + } + if (this.output) { + this.output.disconnect(); + delete this.output; + } + delete this.processor; + }; +}(master); +var fft; +'use strict'; +fft = function () { + var p5sound = master; + /** + *

FFT (Fast Fourier Transform) is an analysis algorithm that + * isolates individual + * + * audio frequencies within a waveform.

+ * + *

Once instantiated, a p5.FFT object can return an array based on + * two types of analyses:
โ€ข FFT.waveform() computes + * amplitude values along the time domain. The array indices correspond + * to samples across a brief moment in time. Each value represents + * amplitude of the waveform at that sample of time.
+ * โ€ข FFT.analyze() computes amplitude values along the + * frequency domain. The array indices correspond to frequencies (i.e. + * pitches), from the lowest to the highest that humans can hear. Each + * value represents amplitude at that slice of the frequency spectrum. + * Use with getEnergy() to measure amplitude at specific + * frequencies, or within a range of frequencies.

+ * + *

FFT analyzes a very short snapshot of sound called a sample + * buffer. It returns an array of amplitude measurements, referred + * to as bins. The array is 1024 bins long by default. + * You can change the bin array length, but it must be a power of 2 + * between 16 and 1024 in order for the FFT algorithm to function + * correctly. The actual size of the FFT buffer is twice the + * number of bins, so given a standard sample rate, the buffer is + * 2048/44100 seconds long.

+ * + * + * @class p5.FFT + * @constructor + * @param {Number} [smoothing] Smooth results of Freq Spectrum. + * 0.0 < smoothing < 1.0. + * Defaults to 0.8. + * @param {Number} [bins] Length of resulting array. + * Must be a power of two between + * 16 and 1024. Defaults to 1024. + * @example + *
+ * function preload(){ + * sound = loadSound('assets/Damscray_DancingTiger.mp3'); + * } + * + * function setup(){ + * var cnv = createCanvas(100,100); + * cnv.mouseClicked(togglePlay); + * fft = new p5.FFT(); + * sound.amp(0.2); + * } + * + * function draw(){ + * background(0); + * + * var spectrum = fft.analyze(); + * noStroke(); + * fill(0,255,0); // spectrum is green + * for (var i = 0; i< spectrum.length; i++){ + * var x = map(i, 0, spectrum.length, 0, width); + * var h = -height + map(spectrum[i], 0, 255, height, 0); + * rect(x, height, width / spectrum.length, h ) + * } + * + * var waveform = fft.waveform(); + * noFill(); + * beginShape(); + * stroke(255,0,0); // waveform is red + * strokeWeight(1); + * for (var i = 0; i< waveform.length; i++){ + * var x = map(i, 0, waveform.length, 0, width); + * var y = map( waveform[i], -1, 1, 0, height); + * vertex(x,y); + * } + * endShape(); + * + * text('click to play/pause', 4, 10); + * } + * + * // fade sound if mouse is over canvas + * function togglePlay() { + * if (sound.isPlaying()) { + * sound.pause(); + * } else { + * sound.loop(); + * } + * } + *
+ */ + p5.FFT = function (smoothing, bins) { + this.input = this.analyser = p5sound.audiocontext.createAnalyser(); + Object.defineProperties(this, { + bins: { + get: function () { + return this.analyser.fftSize / 2; + }, + set: function (b) { + this.analyser.fftSize = b * 2; + }, + configurable: true, + enumerable: true + }, + smoothing: { + get: function () { + return this.analyser.smoothingTimeConstant; + }, + set: function (s) { + this.analyser.smoothingTimeConstant = s; + }, + configurable: true, + enumerable: true + } + }); + // set default smoothing and bins + this.smooth(smoothing); + this.bins = bins || 1024; + // default connections to p5sound fftMeter + p5sound.fftMeter.connect(this.analyser); + this.freqDomain = new Uint8Array(this.analyser.frequencyBinCount); + this.timeDomain = new Uint8Array(this.analyser.frequencyBinCount); + // predefined frequency ranges, these will be tweakable + this.bass = [ + 20, + 140 + ]; + this.lowMid = [ + 140, + 400 + ]; + this.mid = [ + 400, + 2600 + ]; + this.highMid = [ + 2600, + 5200 + ]; + this.treble = [ + 5200, + 14000 + ]; + // add this p5.SoundFile to the soundArray + p5sound.soundArray.push(this); + }; + /** + * Set the input source for the FFT analysis. If no source is + * provided, FFT will analyze all sound in the sketch. + * + * @method setInput + * @param {Object} [source] p5.sound object (or web audio API source node) + */ + p5.FFT.prototype.setInput = function (source) { + if (!source) { + p5sound.fftMeter.connect(this.analyser); + } else { + if (source.output) { + source.output.connect(this.analyser); + } else if (source.connect) { + source.connect(this.analyser); + } + p5sound.fftMeter.disconnect(); + } + }; + /** + * Returns an array of amplitude values (between -1.0 and +1.0) that represent + * a snapshot of amplitude readings in a single buffer. Length will be + * equal to bins (defaults to 1024). Can be used to draw the waveform + * of a sound. + * + * @method waveform + * @param {Number} [bins] Must be a power of two between + * 16 and 1024. Defaults to 1024. + * @param {String} [precision] If any value is provided, will return results + * in a Float32 Array which is more precise + * than a regular array. + * @return {Array} Array Array of amplitude values (-1 to 1) + * over time. Array length = bins. + * + */ + p5.FFT.prototype.waveform = function () { + var bins, mode, normalArray; + for (var i = 0; i < arguments.length; i++) { + if (typeof arguments[i] === 'number') { + bins = arguments[i]; + this.analyser.fftSize = bins * 2; + } + if (typeof arguments[i] === 'string') { + mode = arguments[i]; + } + } + // getFloatFrequencyData doesnt work in Safari as of 5/2015 + if (mode && !p5.prototype._isSafari()) { + timeToFloat(this, this.timeDomain); + this.analyser.getFloatTimeDomainData(this.timeDomain); + return this.timeDomain; + } else { + timeToInt(this, this.timeDomain); + this.analyser.getByteTimeDomainData(this.timeDomain); + var normalArray = new Array(); + for (var j = 0; j < this.timeDomain.length; j++) { + var scaled = p5.prototype.map(this.timeDomain[j], 0, 255, -1, 1); + normalArray.push(scaled); + } + return normalArray; + } + }; + /** + * Returns an array of amplitude values (between 0 and 255) + * across the frequency spectrum. Length is equal to FFT bins + * (1024 by default). The array indices correspond to frequencies + * (i.e. pitches), from the lowest to the highest that humans can + * hear. Each value represents amplitude at that slice of the + * frequency spectrum. Must be called prior to using + * getEnergy(). + * + * @method analyze + * @param {Number} [bins] Must be a power of two between + * 16 and 1024. Defaults to 1024. + * @param {Number} [scale] If "dB," returns decibel + * float measurements between + * -140 and 0 (max). + * Otherwise returns integers from 0-255. + * @return {Array} spectrum Array of energy (amplitude/volume) + * values across the frequency spectrum. + * Lowest energy (silence) = 0, highest + * possible is 255. + * @example + *
+ * var osc; + * var fft; + * + * function setup(){ + * createCanvas(100,100); + * osc = new p5.Oscillator(); + * osc.amp(0); + * osc.start(); + * fft = new p5.FFT(); + * } + * + * function draw(){ + * background(0); + * + * var freq = map(mouseX, 0, 800, 20, 15000); + * freq = constrain(freq, 1, 20000); + * osc.freq(freq); + * + * var spectrum = fft.analyze(); + * noStroke(); + * fill(0,255,0); // spectrum is green + * for (var i = 0; i< spectrum.length; i++){ + * var x = map(i, 0, spectrum.length, 0, width); + * var h = -height + map(spectrum[i], 0, 255, height, 0); + * rect(x, height, width / spectrum.length, h ); + * } + * + * stroke(255); + * text('Freq: ' + round(freq)+'Hz', 10, 10); + * + * isMouseOverCanvas(); + * } + * + * // only play sound when mouse is over canvas + * function isMouseOverCanvas() { + * var mX = mouseX, mY = mouseY; + * if (mX > 0 && mX < width && mY < height && mY > 0) { + * osc.amp(0.5, 0.2); + * } else { + * osc.amp(0, 0.2); + * } + * } + *
+ * + * + */ + p5.FFT.prototype.analyze = function () { + var mode; + for (var i = 0; i < arguments.length; i++) { + if (typeof arguments[i] === 'number') { + this.bins = arguments[i]; + this.analyser.fftSize = this.bins * 2; + } + if (typeof arguments[i] === 'string') { + mode = arguments[i]; + } + } + if (mode && mode.toLowerCase() === 'db') { + freqToFloat(this); + this.analyser.getFloatFrequencyData(this.freqDomain); + return this.freqDomain; + } else { + freqToInt(this, this.freqDomain); + this.analyser.getByteFrequencyData(this.freqDomain); + var normalArray = Array.apply([], this.freqDomain); + normalArray.length === this.analyser.fftSize; + normalArray.constructor === Array; + return normalArray; + } + }; + /** + * Returns the amount of energy (volume) at a specific + * + * frequency, or the average amount of energy between two + * frequencies. Accepts Number(s) corresponding + * to frequency (in Hz), or a String corresponding to predefined + * frequency ranges ("bass", "lowMid", "mid", "highMid", "treble"). + * Returns a range between 0 (no energy/volume at that frequency) and + * 255 (maximum energy). + * NOTE: analyze() must be called prior to getEnergy(). Analyze() + * tells the FFT to analyze frequency data, and getEnergy() uses + * the results determine the value at a specific frequency or + * range of frequencies.

+ * + * @method getEnergy + * @param {Number|String} frequency1 Will return a value representing + * energy at this frequency. Alternately, + * the strings "bass", "lowMid" "mid", + * "highMid", and "treble" will return + * predefined frequency ranges. + * @param {Number} [frequency2] If a second frequency is given, + * will return average amount of + * energy that exists between the + * two frequencies. + * @return {Number} Energy Energy (volume/amplitude) from + * 0 and 255. + * + */ + p5.FFT.prototype.getEnergy = function (frequency1, frequency2) { + var nyquist = p5sound.audiocontext.sampleRate / 2; + if (frequency1 === 'bass') { + frequency1 = this.bass[0]; + frequency2 = this.bass[1]; + } else if (frequency1 === 'lowMid') { + frequency1 = this.lowMid[0]; + frequency2 = this.lowMid[1]; + } else if (frequency1 === 'mid') { + frequency1 = this.mid[0]; + frequency2 = this.mid[1]; + } else if (frequency1 === 'highMid') { + frequency1 = this.highMid[0]; + frequency2 = this.highMid[1]; + } else if (frequency1 === 'treble') { + frequency1 = this.treble[0]; + frequency2 = this.treble[1]; + } + if (typeof frequency1 !== 'number') { + throw 'invalid input for getEnergy()'; + } else if (!frequency2) { + // if only one parameter: + var index = Math.round(frequency1 / nyquist * this.freqDomain.length); + return this.freqDomain[index]; + } else if (frequency1 && frequency2) { + // if two parameters: + // if second is higher than first + if (frequency1 > frequency2) { + var swap = frequency2; + frequency2 = frequency1; + frequency1 = swap; + } + var lowIndex = Math.round(frequency1 / nyquist * this.freqDomain.length); + var highIndex = Math.round(frequency2 / nyquist * this.freqDomain.length); + var total = 0; + var numFrequencies = 0; + // add up all of the values for the frequencies + for (var i = lowIndex; i <= highIndex; i++) { + total += this.freqDomain[i]; + numFrequencies += 1; + } + // divide by total number of frequencies + var toReturn = total / numFrequencies; + return toReturn; + } else { + throw 'invalid input for getEnergy()'; + } + }; + // compatability with v.012, changed to getEnergy in v.0121. Will be deprecated... + p5.FFT.prototype.getFreq = function (freq1, freq2) { + var x = this.getEnergy(freq1, freq2); + return x; + }; + /** + * Returns the + * + * spectral centroid of the input signal. + * NOTE: analyze() must be called prior to getCentroid(). Analyze() + * tells the FFT to analyze frequency data, and getCentroid() uses + * the results determine the spectral centroid.

+ * + * @method getCentroid + * @return {Number} Spectral Centroid Frequency Frequency of the spectral centroid in Hz. + * + * + * @example + *
+ * + * + *function setup(){ + * cnv = createCanvas(100,100); + * sound = new p5.AudioIn(); + * sound.start(); + * fft = new p5.FFT(); + * sound.connect(fft); + *} + * + * + *function draw(){ + * + * var centroidplot = 0.0; + * var spectralCentroid = 0; + * + * + * background(0); + * stroke(0,255,0); + * var spectrum = fft.analyze(); + * fill(0,255,0); // spectrum is green + * + * //draw the spectrum + * for (var i = 0; i< spectrum.length; i++){ + * var x = map(log(i), 0, log(spectrum.length), 0, width); + * var h = map(spectrum[i], 0, 255, 0, height); + * var rectangle_width = (log(i+1)-log(i))*(width/log(spectrum.length)); + * rect(x, height, rectangle_width, -h ) + * } + + * var nyquist = 22050; + * + * // get the centroid + * spectralCentroid = fft.getCentroid(); + * + * // the mean_freq_index calculation is for the display. + * var mean_freq_index = spectralCentroid/(nyquist/spectrum.length); + * + * centroidplot = map(log(mean_freq_index), 0, log(spectrum.length), 0, width); + * + * + * stroke(255,0,0); // the line showing where the centroid is will be red + * + * rect(centroidplot, 0, width / spectrum.length, height) + * noStroke(); + * fill(255,255,255); // text is white + * text("centroid: ", 10, 20); + * text(round(spectralCentroid)+" Hz", 10, 40); + *} + *
+ */ + p5.FFT.prototype.getCentroid = function () { + var nyquist = p5sound.audiocontext.sampleRate / 2; + var cumulative_sum = 0; + var centroid_normalization = 0; + for (var i = 0; i < this.freqDomain.length; i++) { + cumulative_sum += i * this.freqDomain[i]; + centroid_normalization += this.freqDomain[i]; + } + var mean_freq_index = 0; + if (centroid_normalization !== 0) { + mean_freq_index = cumulative_sum / centroid_normalization; + } + var spec_centroid_freq = mean_freq_index * (nyquist / this.freqDomain.length); + return spec_centroid_freq; + }; + /** + * Smooth FFT analysis by averaging with the last analysis frame. + * + * @method smooth + * @param {Number} smoothing 0.0 < smoothing < 1.0. + * Defaults to 0.8. + */ + p5.FFT.prototype.smooth = function (s) { + if (typeof s !== 'undefined') { + this.smoothing = s; + } + return this.smoothing; + }; + p5.FFT.prototype.dispose = function () { + // remove reference from soundArray + var index = p5sound.soundArray.indexOf(this); + p5sound.soundArray.splice(index, 1); + if (this.analyser) { + this.analyser.disconnect(); + delete this.analyser; + } + }; + /** + * Returns an array of average amplitude values for a given number + * of frequency bands split equally. N defaults to 16. + * NOTE: analyze() must be called prior to linAverages(). Analyze() + * tells the FFT to analyze frequency data, and linAverages() uses + * the results to group them into a smaller set of averages.

+ * + * @method linAverages + * @param {Number} N Number of returned frequency groups + * @return {Array} linearAverages Array of average amplitude values for each group + */ + p5.FFT.prototype.linAverages = function (N) { + var N = N || 16; + // This prevents undefined, null or 0 values of N + var spectrum = this.freqDomain; + var spectrumLength = spectrum.length; + var spectrumStep = Math.floor(spectrumLength / N); + var linearAverages = new Array(N); + // Keep a second index for the current average group and place the values accordingly + // with only one loop in the spectrum data + var groupIndex = 0; + for (var specIndex = 0; specIndex < spectrumLength; specIndex++) { + linearAverages[groupIndex] = linearAverages[groupIndex] !== undefined ? (linearAverages[groupIndex] + spectrum[specIndex]) / 2 : spectrum[specIndex]; + // Increase the group index when the last element of the group is processed + if (specIndex % spectrumStep === spectrumStep - 1) { + groupIndex++; + } + } + return linearAverages; + }; + /** + * Returns an array of average amplitude values of the spectrum, for a given + * set of + * Octave Bands + * NOTE: analyze() must be called prior to logAverages(). Analyze() + * tells the FFT to analyze frequency data, and logAverages() uses + * the results to group them into a smaller set of averages.

+ * + * @method logAverages + * @param {Array} octaveBands Array of Octave Bands objects for grouping + * @return {Array} logAverages Array of average amplitude values for each group + */ + p5.FFT.prototype.logAverages = function (octaveBands) { + var nyquist = p5sound.audiocontext.sampleRate / 2; + var spectrum = this.freqDomain; + var spectrumLength = spectrum.length; + var logAverages = new Array(octaveBands.length); + // Keep a second index for the current average group and place the values accordingly + // With only one loop in the spectrum data + var octaveIndex = 0; + for (var specIndex = 0; specIndex < spectrumLength; specIndex++) { + var specIndexFrequency = Math.round(specIndex * nyquist / this.freqDomain.length); + // Increase the group index if the current frequency exceeds the limits of the band + if (specIndexFrequency > octaveBands[octaveIndex].hi) { + octaveIndex++; + } + logAverages[octaveIndex] = logAverages[octaveIndex] !== undefined ? (logAverages[octaveIndex] + spectrum[specIndex]) / 2 : spectrum[specIndex]; + } + return logAverages; + }; + /** + * Calculates and Returns the 1/N + * Octave Bands + * N defaults to 3 and minimum central frequency to 15.625Hz. + * (1/3 Octave Bands ~= 31 Frequency Bands) + * Setting fCtr0 to a central value of a higher octave will ignore the lower bands + * and produce less frequency groups. + * + * @method getOctaveBands + * @param {Number} N Specifies the 1/N type of generated octave bands + * @param {Number} fCtr0 Minimum central frequency for the lowest band + * @return {Array} octaveBands Array of octave band objects with their bounds + */ + p5.FFT.prototype.getOctaveBands = function (N, fCtr0) { + var N = N || 3; + // Default to 1/3 Octave Bands + var fCtr0 = fCtr0 || 15.625; + // Minimum central frequency, defaults to 15.625Hz + var octaveBands = []; + var lastFrequencyBand = { + lo: fCtr0 / Math.pow(2, 1 / (2 * N)), + ctr: fCtr0, + hi: fCtr0 * Math.pow(2, 1 / (2 * N)) + }; + octaveBands.push(lastFrequencyBand); + var nyquist = p5sound.audiocontext.sampleRate / 2; + while (lastFrequencyBand.hi < nyquist) { + var newFrequencyBand = {}; + newFrequencyBand.lo = lastFrequencyBand.hi; + newFrequencyBand.ctr = lastFrequencyBand.ctr * Math.pow(2, 1 / N); + newFrequencyBand.hi = newFrequencyBand.ctr * Math.pow(2, 1 / (2 * N)); + octaveBands.push(newFrequencyBand); + lastFrequencyBand = newFrequencyBand; + } + return octaveBands; + }; + // helper methods to convert type from float (dB) to int (0-255) + var freqToFloat = function (fft) { + if (fft.freqDomain instanceof Float32Array === false) { + fft.freqDomain = new Float32Array(fft.analyser.frequencyBinCount); + } + }; + var freqToInt = function (fft) { + if (fft.freqDomain instanceof Uint8Array === false) { + fft.freqDomain = new Uint8Array(fft.analyser.frequencyBinCount); + } + }; + var timeToFloat = function (fft) { + if (fft.timeDomain instanceof Float32Array === false) { + fft.timeDomain = new Float32Array(fft.analyser.frequencyBinCount); + } + }; + var timeToInt = function (fft) { + if (fft.timeDomain instanceof Uint8Array === false) { + fft.timeDomain = new Uint8Array(fft.analyser.frequencyBinCount); + } + }; +}(master); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_SignalBase; +Tone_signal_SignalBase = function (Tone) { + 'use strict'; + Tone.SignalBase = function () { + }; + Tone.extend(Tone.SignalBase); + Tone.SignalBase.prototype.connect = function (node, outputNumber, inputNumber) { + if (Tone.Signal && Tone.Signal === node.constructor || Tone.Param && Tone.Param === node.constructor || Tone.TimelineSignal && Tone.TimelineSignal === node.constructor) { + node._param.cancelScheduledValues(0); + node._param.value = 0; + node.overridden = true; + } else if (node instanceof AudioParam) { + node.cancelScheduledValues(0); + node.value = 0; + } + Tone.prototype.connect.call(this, node, outputNumber, inputNumber); + return this; + }; + return Tone.SignalBase; +}(Tone_core_Tone); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_WaveShaper; +Tone_signal_WaveShaper = function (Tone) { + 'use strict'; + Tone.WaveShaper = function (mapping, bufferLen) { + this._shaper = this.input = this.output = this.context.createWaveShaper(); + this._curve = null; + if (Array.isArray(mapping)) { + this.curve = mapping; + } else if (isFinite(mapping) || this.isUndef(mapping)) { + this._curve = new Float32Array(this.defaultArg(mapping, 1024)); + } else if (this.isFunction(mapping)) { + this._curve = new Float32Array(this.defaultArg(bufferLen, 1024)); + this.setMap(mapping); + } + }; + Tone.extend(Tone.WaveShaper, Tone.SignalBase); + Tone.WaveShaper.prototype.setMap = function (mapping) { + for (var i = 0, len = this._curve.length; i < len; i++) { + var normalized = i / (len - 1) * 2 - 1; + this._curve[i] = mapping(normalized, i); + } + this._shaper.curve = this._curve; + return this; + }; + Object.defineProperty(Tone.WaveShaper.prototype, 'curve', { + get: function () { + return this._shaper.curve; + }, + set: function (mapping) { + this._curve = new Float32Array(mapping); + this._shaper.curve = this._curve; + } + }); + Object.defineProperty(Tone.WaveShaper.prototype, 'oversample', { + get: function () { + return this._shaper.oversample; + }, + set: function (oversampling) { + if ([ + 'none', + '2x', + '4x' + ].indexOf(oversampling) !== -1) { + this._shaper.oversample = oversampling; + } else { + throw new RangeError('Tone.WaveShaper: oversampling must be either \'none\', \'2x\', or \'4x\''); + } + } + }); + Tone.WaveShaper.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._shaper.disconnect(); + this._shaper = null; + this._curve = null; + return this; + }; + return Tone.WaveShaper; +}(Tone_core_Tone); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_type_TimeBase; +Tone_type_TimeBase = function (Tone) { + Tone.TimeBase = function (val, units) { + if (this instanceof Tone.TimeBase) { + this._expr = this._noOp; + if (val instanceof Tone.TimeBase) { + this.copy(val); + } else if (!this.isUndef(units) || this.isNumber(val)) { + units = this.defaultArg(units, this._defaultUnits); + var method = this._primaryExpressions[units].method; + this._expr = method.bind(this, val); + } else if (this.isString(val)) { + this.set(val); + } else if (this.isUndef(val)) { + this._expr = this._defaultExpr(); + } + } else { + return new Tone.TimeBase(val, units); + } + }; + Tone.extend(Tone.TimeBase); + Tone.TimeBase.prototype.set = function (exprString) { + this._expr = this._parseExprString(exprString); + return this; + }; + Tone.TimeBase.prototype.clone = function () { + var instance = new this.constructor(); + instance.copy(this); + return instance; + }; + Tone.TimeBase.prototype.copy = function (time) { + var val = time._expr(); + return this.set(val); + }; + Tone.TimeBase.prototype._primaryExpressions = { + 'n': { + regexp: /^(\d+)n/i, + method: function (value) { + value = parseInt(value); + if (value === 1) { + return this._beatsToUnits(this._timeSignature()); + } else { + return this._beatsToUnits(4 / value); + } + } + }, + 't': { + regexp: /^(\d+)t/i, + method: function (value) { + value = parseInt(value); + return this._beatsToUnits(8 / (parseInt(value) * 3)); + } + }, + 'm': { + regexp: /^(\d+)m/i, + method: function (value) { + return this._beatsToUnits(parseInt(value) * this._timeSignature()); + } + }, + 'i': { + regexp: /^(\d+)i/i, + method: function (value) { + return this._ticksToUnits(parseInt(value)); + } + }, + 'hz': { + regexp: /^(\d+(?:\.\d+)?)hz/i, + method: function (value) { + return this._frequencyToUnits(parseFloat(value)); + } + }, + 'tr': { + regexp: /^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/, + method: function (m, q, s) { + var total = 0; + if (m && m !== '0') { + total += this._beatsToUnits(this._timeSignature() * parseFloat(m)); + } + if (q && q !== '0') { + total += this._beatsToUnits(parseFloat(q)); + } + if (s && s !== '0') { + total += this._beatsToUnits(parseFloat(s) / 4); + } + return total; + } + }, + 's': { + regexp: /^(\d+(?:\.\d+)?s)/, + method: function (value) { + return this._secondsToUnits(parseFloat(value)); + } + }, + 'samples': { + regexp: /^(\d+)samples/, + method: function (value) { + return parseInt(value) / this.context.sampleRate; + } + }, + 'default': { + regexp: /^(\d+(?:\.\d+)?)/, + method: function (value) { + return this._primaryExpressions[this._defaultUnits].method.call(this, value); + } + } + }; + Tone.TimeBase.prototype._binaryExpressions = { + '+': { + regexp: /^\+/, + precedence: 2, + method: function (lh, rh) { + return lh() + rh(); + } + }, + '-': { + regexp: /^\-/, + precedence: 2, + method: function (lh, rh) { + return lh() - rh(); + } + }, + '*': { + regexp: /^\*/, + precedence: 1, + method: function (lh, rh) { + return lh() * rh(); + } + }, + '/': { + regexp: /^\//, + precedence: 1, + method: function (lh, rh) { + return lh() / rh(); + } + } + }; + Tone.TimeBase.prototype._unaryExpressions = { + 'neg': { + regexp: /^\-/, + method: function (lh) { + return -lh(); + } + } + }; + Tone.TimeBase.prototype._syntaxGlue = { + '(': { regexp: /^\(/ }, + ')': { regexp: /^\)/ } + }; + Tone.TimeBase.prototype._tokenize = function (expr) { + var position = -1; + var tokens = []; + while (expr.length > 0) { + expr = expr.trim(); + var token = getNextToken(expr, this); + tokens.push(token); + expr = expr.substr(token.value.length); + } + function getNextToken(expr, context) { + var expressions = [ + '_binaryExpressions', + '_unaryExpressions', + '_primaryExpressions', + '_syntaxGlue' + ]; + for (var i = 0; i < expressions.length; i++) { + var group = context[expressions[i]]; + for (var opName in group) { + var op = group[opName]; + var reg = op.regexp; + var match = expr.match(reg); + if (match !== null) { + return { + method: op.method, + precedence: op.precedence, + regexp: op.regexp, + value: match[0] + }; + } + } + } + throw new SyntaxError('Tone.TimeBase: Unexpected token ' + expr); + } + return { + next: function () { + return tokens[++position]; + }, + peek: function () { + return tokens[position + 1]; + } + }; + }; + Tone.TimeBase.prototype._matchGroup = function (token, group, prec) { + var ret = false; + if (!this.isUndef(token)) { + for (var opName in group) { + var op = group[opName]; + if (op.regexp.test(token.value)) { + if (!this.isUndef(prec)) { + if (op.precedence === prec) { + return op; + } + } else { + return op; + } + } + } + } + return ret; + }; + Tone.TimeBase.prototype._parseBinary = function (lexer, precedence) { + if (this.isUndef(precedence)) { + precedence = 2; + } + var expr; + if (precedence < 0) { + expr = this._parseUnary(lexer); + } else { + expr = this._parseBinary(lexer, precedence - 1); + } + var token = lexer.peek(); + while (token && this._matchGroup(token, this._binaryExpressions, precedence)) { + token = lexer.next(); + expr = token.method.bind(this, expr, this._parseBinary(lexer, precedence - 1)); + token = lexer.peek(); + } + return expr; + }; + Tone.TimeBase.prototype._parseUnary = function (lexer) { + var token, expr; + token = lexer.peek(); + var op = this._matchGroup(token, this._unaryExpressions); + if (op) { + token = lexer.next(); + expr = this._parseUnary(lexer); + return op.method.bind(this, expr); + } + return this._parsePrimary(lexer); + }; + Tone.TimeBase.prototype._parsePrimary = function (lexer) { + var token, expr; + token = lexer.peek(); + if (this.isUndef(token)) { + throw new SyntaxError('Tone.TimeBase: Unexpected end of expression'); + } + if (this._matchGroup(token, this._primaryExpressions)) { + token = lexer.next(); + var matching = token.value.match(token.regexp); + return token.method.bind(this, matching[1], matching[2], matching[3]); + } + if (token && token.value === '(') { + lexer.next(); + expr = this._parseBinary(lexer); + token = lexer.next(); + if (!(token && token.value === ')')) { + throw new SyntaxError('Expected )'); + } + return expr; + } + throw new SyntaxError('Tone.TimeBase: Cannot process token ' + token.value); + }; + Tone.TimeBase.prototype._parseExprString = function (exprString) { + if (!this.isString(exprString)) { + exprString = exprString.toString(); + } + var lexer = this._tokenize(exprString); + var tree = this._parseBinary(lexer); + return tree; + }; + Tone.TimeBase.prototype._noOp = function () { + return 0; + }; + Tone.TimeBase.prototype._defaultExpr = function () { + return this._noOp; + }; + Tone.TimeBase.prototype._defaultUnits = 's'; + Tone.TimeBase.prototype._frequencyToUnits = function (freq) { + return 1 / freq; + }; + Tone.TimeBase.prototype._beatsToUnits = function (beats) { + return 60 / Tone.Transport.bpm.value * beats; + }; + Tone.TimeBase.prototype._secondsToUnits = function (seconds) { + return seconds; + }; + Tone.TimeBase.prototype._ticksToUnits = function (ticks) { + return ticks * (this._beatsToUnits(1) / Tone.Transport.PPQ); + }; + Tone.TimeBase.prototype._timeSignature = function () { + return Tone.Transport.timeSignature; + }; + Tone.TimeBase.prototype._pushExpr = function (val, name, units) { + if (!(val instanceof Tone.TimeBase)) { + val = new this.constructor(val, units); + } + this._expr = this._binaryExpressions[name].method.bind(this, this._expr, val._expr); + return this; + }; + Tone.TimeBase.prototype.add = function (val, units) { + return this._pushExpr(val, '+', units); + }; + Tone.TimeBase.prototype.sub = function (val, units) { + return this._pushExpr(val, '-', units); + }; + Tone.TimeBase.prototype.mult = function (val, units) { + return this._pushExpr(val, '*', units); + }; + Tone.TimeBase.prototype.div = function (val, units) { + return this._pushExpr(val, '/', units); + }; + Tone.TimeBase.prototype.valueOf = function () { + return this._expr(); + }; + Tone.TimeBase.prototype.dispose = function () { + this._expr = null; + }; + return Tone.TimeBase; +}(Tone_core_Tone); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_type_Time; +Tone_type_Time = function (Tone) { + Tone.Time = function (val, units) { + if (this instanceof Tone.Time) { + this._plusNow = false; + Tone.TimeBase.call(this, val, units); + } else { + return new Tone.Time(val, units); + } + }; + Tone.extend(Tone.Time, Tone.TimeBase); + Tone.Time.prototype._unaryExpressions = Object.create(Tone.TimeBase.prototype._unaryExpressions); + Tone.Time.prototype._unaryExpressions.quantize = { + regexp: /^@/, + method: function (rh) { + return Tone.Transport.nextSubdivision(rh()); + } + }; + Tone.Time.prototype._unaryExpressions.now = { + regexp: /^\+/, + method: function (lh) { + this._plusNow = true; + return lh(); + } + }; + Tone.Time.prototype.quantize = function (subdiv, percent) { + percent = this.defaultArg(percent, 1); + this._expr = function (expr, subdivision, percent) { + expr = expr(); + subdivision = subdivision.toSeconds(); + var multiple = Math.round(expr / subdivision); + var ideal = multiple * subdivision; + var diff = ideal - expr; + return expr + diff * percent; + }.bind(this, this._expr, new this.constructor(subdiv), percent); + return this; + }; + Tone.Time.prototype.addNow = function () { + this._plusNow = true; + return this; + }; + Tone.Time.prototype._defaultExpr = function () { + this._plusNow = true; + return this._noOp; + }; + Tone.Time.prototype.copy = function (time) { + Tone.TimeBase.prototype.copy.call(this, time); + this._plusNow = time._plusNow; + return this; + }; + Tone.Time.prototype.toNotation = function () { + var time = this.toSeconds(); + var testNotations = [ + '1m', + '2n', + '4n', + '8n', + '16n', + '32n', + '64n', + '128n' + ]; + var retNotation = this._toNotationHelper(time, testNotations); + var testTripletNotations = [ + '1m', + '2n', + '2t', + '4n', + '4t', + '8n', + '8t', + '16n', + '16t', + '32n', + '32t', + '64n', + '64t', + '128n' + ]; + var retTripletNotation = this._toNotationHelper(time, testTripletNotations); + if (retTripletNotation.split('+').length < retNotation.split('+').length) { + return retTripletNotation; + } else { + return retNotation; + } + }; + Tone.Time.prototype._toNotationHelper = function (units, testNotations) { + var threshold = this._notationToUnits(testNotations[testNotations.length - 1]); + var retNotation = ''; + for (var i = 0; i < testNotations.length; i++) { + var notationTime = this._notationToUnits(testNotations[i]); + var multiple = units / notationTime; + var floatingPointError = 0.000001; + if (1 - multiple % 1 < floatingPointError) { + multiple += floatingPointError; + } + multiple = Math.floor(multiple); + if (multiple > 0) { + if (multiple === 1) { + retNotation += testNotations[i]; + } else { + retNotation += multiple.toString() + '*' + testNotations[i]; + } + units -= multiple * notationTime; + if (units < threshold) { + break; + } else { + retNotation += ' + '; + } + } + } + if (retNotation === '') { + retNotation = '0'; + } + return retNotation; + }; + Tone.Time.prototype._notationToUnits = function (notation) { + var primaryExprs = this._primaryExpressions; + var notationExprs = [ + primaryExprs.n, + primaryExprs.t, + primaryExprs.m + ]; + for (var i = 0; i < notationExprs.length; i++) { + var expr = notationExprs[i]; + var match = notation.match(expr.regexp); + if (match) { + return expr.method.call(this, match[1]); + } + } + }; + Tone.Time.prototype.toBarsBeatsSixteenths = function () { + var quarterTime = this._beatsToUnits(1); + var quarters = this.toSeconds() / quarterTime; + var measures = Math.floor(quarters / this._timeSignature()); + var sixteenths = quarters % 1 * 4; + quarters = Math.floor(quarters) % this._timeSignature(); + sixteenths = sixteenths.toString(); + if (sixteenths.length > 3) { + sixteenths = parseFloat(sixteenths).toFixed(3); + } + var progress = [ + measures, + quarters, + sixteenths + ]; + return progress.join(':'); + }; + Tone.Time.prototype.toTicks = function () { + var quarterTime = this._beatsToUnits(1); + var quarters = this.valueOf() / quarterTime; + return Math.floor(quarters * Tone.Transport.PPQ); + }; + Tone.Time.prototype.toSamples = function () { + return this.toSeconds() * this.context.sampleRate; + }; + Tone.Time.prototype.toFrequency = function () { + return 1 / this.toSeconds(); + }; + Tone.Time.prototype.toSeconds = function () { + return this.valueOf(); + }; + Tone.Time.prototype.toMilliseconds = function () { + return this.toSeconds() * 1000; + }; + Tone.Time.prototype.valueOf = function () { + var val = this._expr(); + return val + (this._plusNow ? this.now() : 0); + }; + return Tone.Time; +}(Tone_core_Tone); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_type_Frequency; +Tone_type_Frequency = function (Tone) { + Tone.Frequency = function (val, units) { + if (this instanceof Tone.Frequency) { + Tone.TimeBase.call(this, val, units); + } else { + return new Tone.Frequency(val, units); + } + }; + Tone.extend(Tone.Frequency, Tone.TimeBase); + Tone.Frequency.prototype._primaryExpressions = Object.create(Tone.TimeBase.prototype._primaryExpressions); + Tone.Frequency.prototype._primaryExpressions.midi = { + regexp: /^(\d+(?:\.\d+)?midi)/, + method: function (value) { + return this.midiToFrequency(value); + } + }; + Tone.Frequency.prototype._primaryExpressions.note = { + regexp: /^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i, + method: function (pitch, octave) { + var index = noteToScaleIndex[pitch.toLowerCase()]; + var noteNumber = index + (parseInt(octave) + 1) * 12; + return this.midiToFrequency(noteNumber); + } + }; + Tone.Frequency.prototype._primaryExpressions.tr = { + regexp: /^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/, + method: function (m, q, s) { + var total = 1; + if (m && m !== '0') { + total *= this._beatsToUnits(this._timeSignature() * parseFloat(m)); + } + if (q && q !== '0') { + total *= this._beatsToUnits(parseFloat(q)); + } + if (s && s !== '0') { + total *= this._beatsToUnits(parseFloat(s) / 4); + } + return total; + } + }; + Tone.Frequency.prototype.transpose = function (interval) { + this._expr = function (expr, interval) { + var val = expr(); + return val * this.intervalToFrequencyRatio(interval); + }.bind(this, this._expr, interval); + return this; + }; + Tone.Frequency.prototype.harmonize = function (intervals) { + this._expr = function (expr, intervals) { + var val = expr(); + var ret = []; + for (var i = 0; i < intervals.length; i++) { + ret[i] = val * this.intervalToFrequencyRatio(intervals[i]); + } + return ret; + }.bind(this, this._expr, intervals); + return this; + }; + Tone.Frequency.prototype.toMidi = function () { + return this.frequencyToMidi(this.valueOf()); + }; + Tone.Frequency.prototype.toNote = function () { + var freq = this.valueOf(); + var log = Math.log(freq / Tone.Frequency.A4) / Math.LN2; + var noteNumber = Math.round(12 * log) + 57; + var octave = Math.floor(noteNumber / 12); + if (octave < 0) { + noteNumber += -12 * octave; + } + var noteName = scaleIndexToNote[noteNumber % 12]; + return noteName + octave.toString(); + }; + Tone.Frequency.prototype.toSeconds = function () { + return 1 / this.valueOf(); + }; + Tone.Frequency.prototype.toFrequency = function () { + return this.valueOf(); + }; + Tone.Frequency.prototype.toTicks = function () { + var quarterTime = this._beatsToUnits(1); + var quarters = this.valueOf() / quarterTime; + return Math.floor(quarters * Tone.Transport.PPQ); + }; + Tone.Frequency.prototype._frequencyToUnits = function (freq) { + return freq; + }; + Tone.Frequency.prototype._ticksToUnits = function (ticks) { + return 1 / (ticks * 60 / (Tone.Transport.bpm.value * Tone.Transport.PPQ)); + }; + Tone.Frequency.prototype._beatsToUnits = function (beats) { + return 1 / Tone.TimeBase.prototype._beatsToUnits.call(this, beats); + }; + Tone.Frequency.prototype._secondsToUnits = function (seconds) { + return 1 / seconds; + }; + Tone.Frequency.prototype._defaultUnits = 'hz'; + var noteToScaleIndex = { + 'cbb': -2, + 'cb': -1, + 'c': 0, + 'c#': 1, + 'cx': 2, + 'dbb': 0, + 'db': 1, + 'd': 2, + 'd#': 3, + 'dx': 4, + 'ebb': 2, + 'eb': 3, + 'e': 4, + 'e#': 5, + 'ex': 6, + 'fbb': 3, + 'fb': 4, + 'f': 5, + 'f#': 6, + 'fx': 7, + 'gbb': 5, + 'gb': 6, + 'g': 7, + 'g#': 8, + 'gx': 9, + 'abb': 7, + 'ab': 8, + 'a': 9, + 'a#': 10, + 'ax': 11, + 'bbb': 9, + 'bb': 10, + 'b': 11, + 'b#': 12, + 'bx': 13 + }; + var scaleIndexToNote = [ + 'C', + 'C#', + 'D', + 'D#', + 'E', + 'F', + 'F#', + 'G', + 'G#', + 'A', + 'A#', + 'B' + ]; + Tone.Frequency.A4 = 440; + Tone.Frequency.prototype.midiToFrequency = function (midi) { + return Tone.Frequency.A4 * Math.pow(2, (midi - 69) / 12); + }; + Tone.Frequency.prototype.frequencyToMidi = function (frequency) { + return 69 + 12 * Math.log(frequency / Tone.Frequency.A4) / Math.LN2; + }; + return Tone.Frequency; +}(Tone_core_Tone); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_type_TransportTime; +Tone_type_TransportTime = function (Tone) { + Tone.TransportTime = function (val, units) { + if (this instanceof Tone.TransportTime) { + Tone.Time.call(this, val, units); + } else { + return new Tone.TransportTime(val, units); + } + }; + Tone.extend(Tone.TransportTime, Tone.Time); + Tone.TransportTime.prototype._unaryExpressions = Object.create(Tone.Time.prototype._unaryExpressions); + Tone.TransportTime.prototype._unaryExpressions.quantize = { + regexp: /^@/, + method: function (rh) { + var subdivision = this._secondsToTicks(rh()); + var multiple = Math.ceil(Tone.Transport.ticks / subdivision); + return this._ticksToUnits(multiple * subdivision); + } + }; + Tone.TransportTime.prototype._secondsToTicks = function (seconds) { + var quarterTime = this._beatsToUnits(1); + var quarters = seconds / quarterTime; + return Math.round(quarters * Tone.Transport.PPQ); + }; + Tone.TransportTime.prototype.valueOf = function () { + var val = this._secondsToTicks(this._expr()); + return val + (this._plusNow ? Tone.Transport.ticks : 0); + }; + Tone.TransportTime.prototype.toTicks = function () { + return this.valueOf(); + }; + Tone.TransportTime.prototype.toSeconds = function () { + var val = this._expr(); + return val + (this._plusNow ? Tone.Transport.seconds : 0); + }; + Tone.TransportTime.prototype.toFrequency = function () { + return 1 / this.toSeconds(); + }; + return Tone.TransportTime; +}(Tone_core_Tone); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_type_Type; +Tone_type_Type = function (Tone) { + Tone.Type = { + Default: 'number', + Time: 'time', + Frequency: 'frequency', + TransportTime: 'transportTime', + Ticks: 'ticks', + NormalRange: 'normalRange', + AudioRange: 'audioRange', + Decibels: 'db', + Interval: 'interval', + BPM: 'bpm', + Positive: 'positive', + Cents: 'cents', + Degrees: 'degrees', + MIDI: 'midi', + BarsBeatsSixteenths: 'barsBeatsSixteenths', + Samples: 'samples', + Hertz: 'hertz', + Note: 'note', + Milliseconds: 'milliseconds', + Seconds: 'seconds', + Notation: 'notation' + }; + Tone.prototype.toSeconds = function (time) { + if (this.isNumber(time)) { + return time; + } else if (this.isUndef(time)) { + return this.now(); + } else if (this.isString(time)) { + return new Tone.Time(time).toSeconds(); + } else if (time instanceof Tone.TimeBase) { + return time.toSeconds(); + } + }; + Tone.prototype.toFrequency = function (freq) { + if (this.isNumber(freq)) { + return freq; + } else if (this.isString(freq) || this.isUndef(freq)) { + return new Tone.Frequency(freq).valueOf(); + } else if (freq instanceof Tone.TimeBase) { + return freq.toFrequency(); + } + }; + Tone.prototype.toTicks = function (time) { + if (this.isNumber(time) || this.isString(time)) { + return new Tone.TransportTime(time).toTicks(); + } else if (this.isUndef(time)) { + return Tone.Transport.ticks; + } else if (time instanceof Tone.TimeBase) { + return time.toTicks(); + } + }; + return Tone; +}(Tone_core_Tone, Tone_type_Time, Tone_type_Frequency, Tone_type_TransportTime); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_core_Param; +Tone_core_Param = function (Tone) { + 'use strict'; + Tone.Param = function () { + var options = this.optionsObject(arguments, [ + 'param', + 'units', + 'convert' + ], Tone.Param.defaults); + this._param = this.input = options.param; + this.units = options.units; + this.convert = options.convert; + this.overridden = false; + this._lfo = null; + if (this.isObject(options.lfo)) { + this.value = options.lfo; + } else if (!this.isUndef(options.value)) { + this.value = options.value; + } + }; + Tone.extend(Tone.Param); + Tone.Param.defaults = { + 'units': Tone.Type.Default, + 'convert': true, + 'param': undefined + }; + Object.defineProperty(Tone.Param.prototype, 'value', { + get: function () { + return this._toUnits(this._param.value); + }, + set: function (value) { + if (this.isObject(value)) { + if (this.isUndef(Tone.LFO)) { + throw new Error('Include \'Tone.LFO\' to use an LFO as a Param value.'); + } + if (this._lfo) { + this._lfo.dispose(); + } + this._lfo = new Tone.LFO(value).start(); + this._lfo.connect(this.input); + } else { + var convertedVal = this._fromUnits(value); + this._param.cancelScheduledValues(0); + this._param.value = convertedVal; + } + } + }); + Tone.Param.prototype._fromUnits = function (val) { + if (this.convert || this.isUndef(this.convert)) { + switch (this.units) { + case Tone.Type.Time: + return this.toSeconds(val); + case Tone.Type.Frequency: + return this.toFrequency(val); + case Tone.Type.Decibels: + return this.dbToGain(val); + case Tone.Type.NormalRange: + return Math.min(Math.max(val, 0), 1); + case Tone.Type.AudioRange: + return Math.min(Math.max(val, -1), 1); + case Tone.Type.Positive: + return Math.max(val, 0); + default: + return val; + } + } else { + return val; + } + }; + Tone.Param.prototype._toUnits = function (val) { + if (this.convert || this.isUndef(this.convert)) { + switch (this.units) { + case Tone.Type.Decibels: + return this.gainToDb(val); + default: + return val; + } + } else { + return val; + } + }; + Tone.Param.prototype._minOutput = 0.00001; + Tone.Param.prototype.setValueAtTime = function (value, time) { + value = this._fromUnits(value); + time = this.toSeconds(time); + if (time <= this.now() + this.blockTime) { + this._param.value = value; + } else { + this._param.setValueAtTime(value, time); + } + return this; + }; + Tone.Param.prototype.setRampPoint = function (now) { + now = this.defaultArg(now, this.now()); + var currentVal = this._param.value; + if (currentVal === 0) { + currentVal = this._minOutput; + } + this._param.setValueAtTime(currentVal, now); + return this; + }; + Tone.Param.prototype.linearRampToValueAtTime = function (value, endTime) { + value = this._fromUnits(value); + this._param.linearRampToValueAtTime(value, this.toSeconds(endTime)); + return this; + }; + Tone.Param.prototype.exponentialRampToValueAtTime = function (value, endTime) { + value = this._fromUnits(value); + value = Math.max(this._minOutput, value); + this._param.exponentialRampToValueAtTime(value, this.toSeconds(endTime)); + return this; + }; + Tone.Param.prototype.exponentialRampToValue = function (value, rampTime, startTime) { + startTime = this.toSeconds(startTime); + this.setRampPoint(startTime); + this.exponentialRampToValueAtTime(value, startTime + this.toSeconds(rampTime)); + return this; + }; + Tone.Param.prototype.linearRampToValue = function (value, rampTime, startTime) { + startTime = this.toSeconds(startTime); + this.setRampPoint(startTime); + this.linearRampToValueAtTime(value, startTime + this.toSeconds(rampTime)); + return this; + }; + Tone.Param.prototype.setTargetAtTime = function (value, startTime, timeConstant) { + value = this._fromUnits(value); + value = Math.max(this._minOutput, value); + timeConstant = Math.max(this._minOutput, timeConstant); + this._param.setTargetAtTime(value, this.toSeconds(startTime), timeConstant); + return this; + }; + Tone.Param.prototype.setValueCurveAtTime = function (values, startTime, duration) { + for (var i = 0; i < values.length; i++) { + values[i] = this._fromUnits(values[i]); + } + this._param.setValueCurveAtTime(values, this.toSeconds(startTime), this.toSeconds(duration)); + return this; + }; + Tone.Param.prototype.cancelScheduledValues = function (startTime) { + this._param.cancelScheduledValues(this.toSeconds(startTime)); + return this; + }; + Tone.Param.prototype.rampTo = function (value, rampTime, startTime) { + rampTime = this.defaultArg(rampTime, 0); + if (this.units === Tone.Type.Frequency || this.units === Tone.Type.BPM || this.units === Tone.Type.Decibels) { + this.exponentialRampToValue(value, rampTime, startTime); + } else { + this.linearRampToValue(value, rampTime, startTime); + } + return this; + }; + Object.defineProperty(Tone.Param.prototype, 'lfo', { + get: function () { + return this._lfo; + } + }); + Tone.Param.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._param = null; + if (this._lfo) { + this._lfo.dispose(); + this._lfo = null; + } + return this; + }; + return Tone.Param; +}(Tone_core_Tone); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_core_Gain; +Tone_core_Gain = function (Tone) { + 'use strict'; + if (window.GainNode && !AudioContext.prototype.createGain) { + AudioContext.prototype.createGain = AudioContext.prototype.createGainNode; + } + Tone.Gain = function () { + var options = this.optionsObject(arguments, [ + 'gain', + 'units' + ], Tone.Gain.defaults); + this.input = this.output = this._gainNode = this.context.createGain(); + this.gain = new Tone.Param({ + 'param': this._gainNode.gain, + 'units': options.units, + 'value': options.gain, + 'convert': options.convert + }); + this._readOnly('gain'); + }; + Tone.extend(Tone.Gain); + Tone.Gain.defaults = { + 'gain': 1, + 'convert': true + }; + Tone.Gain.prototype.dispose = function () { + Tone.Param.prototype.dispose.call(this); + this._gainNode.disconnect(); + this._gainNode = null; + this._writable('gain'); + this.gain.dispose(); + this.gain = null; + }; + Tone.prototype.createInsOuts = function (inputs, outputs) { + if (inputs === 1) { + this.input = new Tone.Gain(); + } else if (inputs > 1) { + this.input = new Array(inputs); + } + if (outputs === 1) { + this.output = new Tone.Gain(); + } else if (outputs > 1) { + this.output = new Array(inputs); + } + }; + return Tone.Gain; +}(Tone_core_Tone, Tone_core_Param); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_Signal; +Tone_signal_Signal = function (Tone) { + 'use strict'; + Tone.Signal = function () { + var options = this.optionsObject(arguments, [ + 'value', + 'units' + ], Tone.Signal.defaults); + this.output = this._gain = this.context.createGain(); + options.param = this._gain.gain; + Tone.Param.call(this, options); + this.input = this._param = this._gain.gain; + this.context.getConstant(1).chain(this._gain); + }; + Tone.extend(Tone.Signal, Tone.Param); + Tone.Signal.defaults = { + 'value': 0, + 'units': Tone.Type.Default, + 'convert': true + }; + Tone.Signal.prototype.connect = Tone.SignalBase.prototype.connect; + Tone.Signal.prototype.dispose = function () { + Tone.Param.prototype.dispose.call(this); + this._param = null; + this._gain.disconnect(); + this._gain = null; + return this; + }; + return Tone.Signal; +}(Tone_core_Tone, Tone_signal_WaveShaper, Tone_type_Type, Tone_core_Param); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_Add; +Tone_signal_Add = function (Tone) { + 'use strict'; + Tone.Add = function (value) { + this.createInsOuts(2, 0); + this._sum = this.input[0] = this.input[1] = this.output = new Tone.Gain(); + this._param = this.input[1] = new Tone.Signal(value); + this._param.connect(this._sum); + }; + Tone.extend(Tone.Add, Tone.Signal); + Tone.Add.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._sum.dispose(); + this._sum = null; + this._param.dispose(); + this._param = null; + return this; + }; + return Tone.Add; +}(Tone_core_Tone, Tone_signal_Signal); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_Multiply; +Tone_signal_Multiply = function (Tone) { + 'use strict'; + Tone.Multiply = function (value) { + this.createInsOuts(2, 0); + this._mult = this.input[0] = this.output = new Tone.Gain(); + this._param = this.input[1] = this.output.gain; + this._param.value = this.defaultArg(value, 0); + }; + Tone.extend(Tone.Multiply, Tone.Signal); + Tone.Multiply.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._mult.dispose(); + this._mult = null; + this._param = null; + return this; + }; + return Tone.Multiply; +}(Tone_core_Tone, Tone_signal_Signal); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_Scale; +Tone_signal_Scale = function (Tone) { + 'use strict'; + Tone.Scale = function (outputMin, outputMax) { + this._outputMin = this.defaultArg(outputMin, 0); + this._outputMax = this.defaultArg(outputMax, 1); + this._scale = this.input = new Tone.Multiply(1); + this._add = this.output = new Tone.Add(0); + this._scale.connect(this._add); + this._setRange(); + }; + Tone.extend(Tone.Scale, Tone.SignalBase); + Object.defineProperty(Tone.Scale.prototype, 'min', { + get: function () { + return this._outputMin; + }, + set: function (min) { + this._outputMin = min; + this._setRange(); + } + }); + Object.defineProperty(Tone.Scale.prototype, 'max', { + get: function () { + return this._outputMax; + }, + set: function (max) { + this._outputMax = max; + this._setRange(); + } + }); + Tone.Scale.prototype._setRange = function () { + this._add.value = this._outputMin; + this._scale.value = this._outputMax - this._outputMin; + }; + Tone.Scale.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._add.dispose(); + this._add = null; + this._scale.dispose(); + this._scale = null; + return this; + }; + return Tone.Scale; +}(Tone_core_Tone, Tone_signal_Add, Tone_signal_Multiply); +var signal; +'use strict'; +signal = function () { + // Signal is built with the Tone.js signal by Yotam Mann + // https://github.com/TONEnoTONE/Tone.js/ + var Signal = Tone_signal_Signal; + var Add = Tone_signal_Add; + var Mult = Tone_signal_Multiply; + var Scale = Tone_signal_Scale; + /** + *

p5.Signal is a constant audio-rate signal used by p5.Oscillator + * and p5.Envelope for modulation math.

+ * + *

This is necessary because Web Audio is processed on a seprate clock. + * For example, the p5 draw loop runs about 60 times per second. But + * the audio clock must process samples 44100 times per second. If we + * want to add a value to each of those samples, we can't do it in the + * draw loop, but we can do it by adding a constant-rate audio signal.This class mostly functions behind the scenes in p5.sound, and returns + * a Tone.Signal from the Tone.js library by Yotam Mann. + * If you want to work directly with audio signals for modular + * synthesis, check out + * tone.js.

+ * + * @class p5.Signal + * @constructor + * @return {Tone.Signal} A Signal object from the Tone.js library + * @example + *
+ * function setup() { + * carrier = new p5.Oscillator('sine'); + * carrier.amp(1); // set amplitude + * carrier.freq(220); // set frequency + * carrier.start(); // start oscillating + * + * modulator = new p5.Oscillator('sawtooth'); + * modulator.disconnect(); + * modulator.amp(1); + * modulator.freq(4); + * modulator.start(); + * + * // Modulator's default amplitude range is -1 to 1. + * // Multiply it by -200, so the range is -200 to 200 + * // then add 220 so the range is 20 to 420 + * carrier.freq( modulator.mult(-200).add(220) ); + * } + *
+ */ + p5.Signal = function (value) { + var s = new Signal(value); + // p5sound.soundArray.push(s); + return s; + }; + /** + * Fade to value, for smooth transitions + * + * @method fade + * @param {Number} value Value to set this signal + * @param {Number} [secondsFromNow] Length of fade, in seconds from now + */ + Signal.prototype.fade = Signal.prototype.linearRampToValueAtTime; + Mult.prototype.fade = Signal.prototype.fade; + Add.prototype.fade = Signal.prototype.fade; + Scale.prototype.fade = Signal.prototype.fade; + /** + * Connect a p5.sound object or Web Audio node to this + * p5.Signal so that its amplitude values can be scaled. + * + * @method setInput + * @param {Object} input + */ + Signal.prototype.setInput = function (_input) { + _input.connect(this); + }; + Mult.prototype.setInput = Signal.prototype.setInput; + Add.prototype.setInput = Signal.prototype.setInput; + Scale.prototype.setInput = Signal.prototype.setInput; + // signals can add / mult / scale themselves + /** + * Add a constant value to this audio signal, + * and return the resulting audio signal. Does + * not change the value of the original signal, + * instead it returns a new p5.SignalAdd. + * + * @method add + * @param {Number} number + * @return {p5.Signal} object + */ + Signal.prototype.add = function (num) { + var add = new Add(num); + // add.setInput(this); + this.connect(add); + return add; + }; + Mult.prototype.add = Signal.prototype.add; + Add.prototype.add = Signal.prototype.add; + Scale.prototype.add = Signal.prototype.add; + /** + * Multiply this signal by a constant value, + * and return the resulting audio signal. Does + * not change the value of the original signal, + * instead it returns a new p5.SignalMult. + * + * @method mult + * @param {Number} number to multiply + * @return {p5.Signal} object + */ + Signal.prototype.mult = function (num) { + var mult = new Mult(num); + // mult.setInput(this); + this.connect(mult); + return mult; + }; + Mult.prototype.mult = Signal.prototype.mult; + Add.prototype.mult = Signal.prototype.mult; + Scale.prototype.mult = Signal.prototype.mult; + /** + * Scale this signal value to a given range, + * and return the result as an audio signal. Does + * not change the value of the original signal, + * instead it returns a new p5.SignalScale. + * + * @method scale + * @param {Number} number to multiply + * @param {Number} inMin input range minumum + * @param {Number} inMax input range maximum + * @param {Number} outMin input range minumum + * @param {Number} outMax input range maximum + * @return {p5.Signal} object + */ + Signal.prototype.scale = function (inMin, inMax, outMin, outMax) { + var mapOutMin, mapOutMax; + if (arguments.length === 4) { + mapOutMin = p5.prototype.map(outMin, inMin, inMax, 0, 1) - 0.5; + mapOutMax = p5.prototype.map(outMax, inMin, inMax, 0, 1) - 0.5; + } else { + mapOutMin = arguments[0]; + mapOutMax = arguments[1]; + } + var scale = new Scale(mapOutMin, mapOutMax); + this.connect(scale); + return scale; + }; + Mult.prototype.scale = Signal.prototype.scale; + Add.prototype.scale = Signal.prototype.scale; + Scale.prototype.scale = Signal.prototype.scale; +}(Tone_signal_Signal, Tone_signal_Add, Tone_signal_Multiply, Tone_signal_Scale); +var oscillator; +'use strict'; +oscillator = function () { + var p5sound = master; + var Add = Tone_signal_Add; + var Mult = Tone_signal_Multiply; + var Scale = Tone_signal_Scale; + /** + *

Creates a signal that oscillates between -1.0 and 1.0. + * By default, the oscillation takes the form of a sinusoidal + * shape ('sine'). Additional types include 'triangle', + * 'sawtooth' and 'square'. The frequency defaults to + * 440 oscillations per second (440Hz, equal to the pitch of an + * 'A' note).

+ * + *

Set the type of oscillation with setType(), or by instantiating a + * specific oscillator: p5.SinOsc, p5.TriOsc, p5.SqrOsc, or p5.SawOsc. + *

+ * + * @class p5.Oscillator + * @constructor + * @param {Number} [freq] frequency defaults to 440Hz + * @param {String} [type] type of oscillator. Options: + * 'sine' (default), 'triangle', + * 'sawtooth', 'square' + * @example + *
+ * var osc; + * var playing = false; + * + * function setup() { + * backgroundColor = color(255,0,255); + * textAlign(CENTER); + * + * osc = new p5.Oscillator(); + * osc.setType('sine'); + * osc.freq(240); + * osc.amp(0); + * osc.start(); + * } + * + * function draw() { + * background(backgroundColor) + * text('click to play', width/2, height/2); + * } + * + * function mouseClicked() { + * if (mouseX > 0 && mouseX < width && mouseY < height && mouseY > 0) { + * if (!playing) { + * // ramp amplitude to 0.5 over 0.05 seconds + * osc.amp(0.5, 0.05); + * playing = true; + * backgroundColor = color(0,255,255); + * } else { + * // ramp amplitude to 0 over 0.5 seconds + * osc.amp(0, 0.5); + * playing = false; + * backgroundColor = color(255,0,255); + * } + * } + * } + *
+ */ + p5.Oscillator = function (freq, type) { + if (typeof freq === 'string') { + var f = type; + type = freq; + freq = f; + } + if (typeof type === 'number') { + var f = type; + type = freq; + freq = f; + } + this.started = false; + // components + this.phaseAmount = undefined; + this.oscillator = p5sound.audiocontext.createOscillator(); + this.f = freq || 440; + // frequency + this.oscillator.type = type || 'sine'; + this.oscillator.frequency.setValueAtTime(this.f, p5sound.audiocontext.currentTime); + // connections + this.output = p5sound.audiocontext.createGain(); + this._freqMods = []; + // modulators connected to this oscillator's frequency + // set default output gain to 0.5 + this.output.gain.value = 0.5; + this.output.gain.setValueAtTime(0.5, p5sound.audiocontext.currentTime); + this.oscillator.connect(this.output); + // stereo panning + this.panPosition = 0; + this.connection = p5sound.input; + // connect to p5sound by default + this.panner = new p5.Panner(this.output, this.connection, 1); + //array of math operation signal chaining + this.mathOps = [this.output]; + // add to the soundArray so we can dispose of the osc later + p5sound.soundArray.push(this); + }; + /** + * Start an oscillator. Accepts an optional parameter to + * determine how long (in seconds from now) until the + * oscillator starts. + * + * @method start + * @param {Number} [time] startTime in seconds from now. + * @param {Number} [frequency] frequency in Hz. + */ + p5.Oscillator.prototype.start = function (time, f) { + if (this.started) { + var now = p5sound.audiocontext.currentTime; + this.stop(now); + } + if (!this.started) { + var freq = f || this.f; + var type = this.oscillator.type; + // set old osc free to be garbage collected (memory) + if (this.oscillator) { + this.oscillator.disconnect(); + delete this.oscillator; + } + // var detune = this.oscillator.frequency.value; + this.oscillator = p5sound.audiocontext.createOscillator(); + this.oscillator.frequency.value = Math.abs(freq); + this.oscillator.type = type; + // this.oscillator.detune.value = detune; + this.oscillator.connect(this.output); + time = time || 0; + this.oscillator.start(time + p5sound.audiocontext.currentTime); + this.freqNode = this.oscillator.frequency; + // if other oscillators are already connected to this osc's freq + for (var i in this._freqMods) { + if (typeof this._freqMods[i].connect !== 'undefined') { + this._freqMods[i].connect(this.oscillator.frequency); + } + } + this.started = true; + } + }; + /** + * Stop an oscillator. Accepts an optional parameter + * to determine how long (in seconds from now) until the + * oscillator stops. + * + * @method stop + * @param {Number} secondsFromNow Time, in seconds from now. + */ + p5.Oscillator.prototype.stop = function (time) { + if (this.started) { + var t = time || 0; + var now = p5sound.audiocontext.currentTime; + this.oscillator.stop(t + now); + this.started = false; + } + }; + /** + * Set the amplitude between 0 and 1.0. Or, pass in an object + * such as an oscillator to modulate amplitude with an audio signal. + * + * @method amp + * @param {Number|Object} vol between 0 and 1.0 + * or a modulating signal/oscillator + * @param {Number} [rampTime] create a fade that lasts rampTime + * @param {Number} [timeFromNow] schedule this event to happen + * seconds from now + * @return {AudioParam} gain If no value is provided, + * returns the Web Audio API + * AudioParam that controls + * this oscillator's + * gain/amplitude/volume) + */ + p5.Oscillator.prototype.amp = function (vol, rampTime, tFromNow) { + var self = this; + if (typeof vol === 'number') { + var rampTime = rampTime || 0; + var tFromNow = tFromNow || 0; + var now = p5sound.audiocontext.currentTime; + this.output.gain.linearRampToValueAtTime(vol, now + tFromNow + rampTime); + } else if (vol) { + vol.connect(self.output.gain); + } else { + // return the Gain Node + return this.output.gain; + } + }; + // these are now the same thing + p5.Oscillator.prototype.fade = p5.Oscillator.prototype.amp; + p5.Oscillator.prototype.getAmp = function () { + return this.output.gain.value; + }; + /** + * Set frequency of an oscillator to a value. Or, pass in an object + * such as an oscillator to modulate the frequency with an audio signal. + * + * @method freq + * @param {Number|Object} Frequency Frequency in Hz + * or modulating signal/oscillator + * @param {Number} [rampTime] Ramp time (in seconds) + * @param {Number} [timeFromNow] Schedule this event to happen + * at x seconds from now + * @return {AudioParam} Frequency If no value is provided, + * returns the Web Audio API + * AudioParam that controls + * this oscillator's frequency + * @example + *
+ * var osc = new p5.Oscillator(300); + * osc.start(); + * osc.freq(40, 10); + *
+ */ + p5.Oscillator.prototype.freq = function (val, rampTime, tFromNow) { + if (typeof val === 'number' && !isNaN(val)) { + this.f = val; + var now = p5sound.audiocontext.currentTime; + var rampTime = rampTime || 0; + var tFromNow = tFromNow || 0; + var t = now + tFromNow + rampTime; + // var currentFreq = this.oscillator.frequency.value; + // this.oscillator.frequency.cancelScheduledValues(now); + if (rampTime === 0) { + this.oscillator.frequency.setValueAtTime(val, tFromNow + now); + } else { + if (val > 0) { + this.oscillator.frequency.exponentialRampToValueAtTime(val, tFromNow + rampTime + now); + } else { + this.oscillator.frequency.linearRampToValueAtTime(val, tFromNow + rampTime + now); + } + } + // reset phase if oscillator has a phase + if (this.phaseAmount) { + this.phase(this.phaseAmount); + } + } else if (val) { + if (val.output) { + val = val.output; + } + val.connect(this.oscillator.frequency); + // keep track of what is modulating this param + // so it can be re-connected if + this._freqMods.push(val); + } else { + // return the Frequency Node + return this.oscillator.frequency; + } + }; + p5.Oscillator.prototype.getFreq = function () { + return this.oscillator.frequency.value; + }; + /** + * Set type to 'sine', 'triangle', 'sawtooth' or 'square'. + * + * @method setType + * @param {String} type 'sine', 'triangle', 'sawtooth' or 'square'. + */ + p5.Oscillator.prototype.setType = function (type) { + this.oscillator.type = type; + }; + p5.Oscillator.prototype.getType = function () { + return this.oscillator.type; + }; + /** + * Connect to a p5.sound / Web Audio object. + * + * @method connect + * @param {Object} unit A p5.sound or Web Audio object + */ + p5.Oscillator.prototype.connect = function (unit) { + if (!unit) { + this.panner.connect(p5sound.input); + } else if (unit.hasOwnProperty('input')) { + this.panner.connect(unit.input); + this.connection = unit.input; + } else { + this.panner.connect(unit); + this.connection = unit; + } + }; + /** + * Disconnect all outputs + * + * @method disconnect + */ + p5.Oscillator.prototype.disconnect = function () { + if (this.output) { + this.output.disconnect(); + } + if (this.panner) { + this.panner.disconnect(); + if (this.output) { + this.output.connect(this.panner); + } + } + this.oscMods = []; + }; + /** + * Pan between Left (-1) and Right (1) + * + * @method pan + * @param {Number} panning Number between -1 and 1 + * @param {Number} timeFromNow schedule this event to happen + * seconds from now + */ + p5.Oscillator.prototype.pan = function (pval, tFromNow) { + this.panPosition = pval; + this.panner.pan(pval, tFromNow); + }; + p5.Oscillator.prototype.getPan = function () { + return this.panPosition; + }; + // get rid of the oscillator + p5.Oscillator.prototype.dispose = function () { + // remove reference from soundArray + var index = p5sound.soundArray.indexOf(this); + p5sound.soundArray.splice(index, 1); + if (this.oscillator) { + var now = p5sound.audiocontext.currentTime; + this.stop(now); + this.disconnect(); + this.panner = null; + this.oscillator = null; + } + // if it is a Pulse + if (this.osc2) { + this.osc2.dispose(); + } + }; + /** + * Set the phase of an oscillator between 0.0 and 1.0. + * In this implementation, phase is a delay time + * based on the oscillator's current frequency. + * + * @method phase + * @param {Number} phase float between 0.0 and 1.0 + */ + p5.Oscillator.prototype.phase = function (p) { + var delayAmt = p5.prototype.map(p, 0, 1, 0, 1 / this.f); + var now = p5sound.audiocontext.currentTime; + this.phaseAmount = p; + if (!this.dNode) { + // create a delay node + this.dNode = p5sound.audiocontext.createDelay(); + // put the delay node in between output and panner + this.oscillator.disconnect(); + this.oscillator.connect(this.dNode); + this.dNode.connect(this.output); + } + // set delay time to match phase: + this.dNode.delayTime.setValueAtTime(delayAmt, now); + }; + // ========================== // + // SIGNAL MATH FOR MODULATION // + // ========================== // + // return sigChain(this, scale, thisChain, nextChain, Scale); + var sigChain = function (o, mathObj, thisChain, nextChain, type) { + var chainSource = o.oscillator; + // if this type of math already exists in the chain, replace it + for (var i in o.mathOps) { + if (o.mathOps[i] instanceof type) { + chainSource.disconnect(); + o.mathOps[i].dispose(); + thisChain = i; + // assume nextChain is output gain node unless... + if (thisChain < o.mathOps.length - 2) { + nextChain = o.mathOps[i + 1]; + } + } + } + if (thisChain === o.mathOps.length - 1) { + o.mathOps.push(nextChain); + } + // assume source is the oscillator unless i > 0 + if (i > 0) { + chainSource = o.mathOps[i - 1]; + } + chainSource.disconnect(); + chainSource.connect(mathObj); + mathObj.connect(nextChain); + o.mathOps[thisChain] = mathObj; + return o; + }; + /** + * Add a value to the p5.Oscillator's output amplitude, + * and return the oscillator. Calling this method again + * will override the initial add() with a new value. + * + * @method add + * @param {Number} number Constant number to add + * @return {p5.Oscillator} Oscillator Returns this oscillator + * with scaled output + * + */ + p5.Oscillator.prototype.add = function (num) { + var add = new Add(num); + var thisChain = this.mathOps.length - 1; + var nextChain = this.output; + return sigChain(this, add, thisChain, nextChain, Add); + }; + /** + * Multiply the p5.Oscillator's output amplitude + * by a fixed value (i.e. turn it up!). Calling this method + * again will override the initial mult() with a new value. + * + * @method mult + * @param {Number} number Constant number to multiply + * @return {p5.Oscillator} Oscillator Returns this oscillator + * with multiplied output + */ + p5.Oscillator.prototype.mult = function (num) { + var mult = new Mult(num); + var thisChain = this.mathOps.length - 1; + var nextChain = this.output; + return sigChain(this, mult, thisChain, nextChain, Mult); + }; + /** + * Scale this oscillator's amplitude values to a given + * range, and return the oscillator. Calling this method + * again will override the initial scale() with new values. + * + * @method scale + * @param {Number} inMin input range minumum + * @param {Number} inMax input range maximum + * @param {Number} outMin input range minumum + * @param {Number} outMax input range maximum + * @return {p5.Oscillator} Oscillator Returns this oscillator + * with scaled output + */ + p5.Oscillator.prototype.scale = function (inMin, inMax, outMin, outMax) { + var mapOutMin, mapOutMax; + if (arguments.length === 4) { + mapOutMin = p5.prototype.map(outMin, inMin, inMax, 0, 1) - 0.5; + mapOutMax = p5.prototype.map(outMax, inMin, inMax, 0, 1) - 0.5; + } else { + mapOutMin = arguments[0]; + mapOutMax = arguments[1]; + } + var scale = new Scale(mapOutMin, mapOutMax); + var thisChain = this.mathOps.length - 1; + var nextChain = this.output; + return sigChain(this, scale, thisChain, nextChain, Scale); + }; + // ============================== // + // SinOsc, TriOsc, SqrOsc, SawOsc // + // ============================== // + /** + * Constructor: new p5.SinOsc(). + * This creates a Sine Wave Oscillator and is + * equivalent to new p5.Oscillator('sine') + * or creating a p5.Oscillator and then calling + * its method setType('sine'). + * See p5.Oscillator for methods. + * + * @class p5.SinOsc + * @constructor + * @extends p5.Oscillator + * @param {Number} [freq] Set the frequency + */ + p5.SinOsc = function (freq) { + p5.Oscillator.call(this, freq, 'sine'); + }; + p5.SinOsc.prototype = Object.create(p5.Oscillator.prototype); + /** + * Constructor: new p5.TriOsc(). + * This creates a Triangle Wave Oscillator and is + * equivalent to new p5.Oscillator('triangle') + * or creating a p5.Oscillator and then calling + * its method setType('triangle'). + * See p5.Oscillator for methods. + * + * @class p5.TriOsc + * @constructor + * @extends p5.Oscillator + * @param {Number} [freq] Set the frequency + */ + p5.TriOsc = function (freq) { + p5.Oscillator.call(this, freq, 'triangle'); + }; + p5.TriOsc.prototype = Object.create(p5.Oscillator.prototype); + /** + * Constructor: new p5.SawOsc(). + * This creates a SawTooth Wave Oscillator and is + * equivalent to new p5.Oscillator('sawtooth') + * or creating a p5.Oscillator and then calling + * its method setType('sawtooth'). + * See p5.Oscillator for methods. + * + * @class p5.SawOsc + * @constructor + * @extends p5.Oscillator + * @param {Number} [freq] Set the frequency + */ + p5.SawOsc = function (freq) { + p5.Oscillator.call(this, freq, 'sawtooth'); + }; + p5.SawOsc.prototype = Object.create(p5.Oscillator.prototype); + /** + * Constructor: new p5.SqrOsc(). + * This creates a Square Wave Oscillator and is + * equivalent to new p5.Oscillator('square') + * or creating a p5.Oscillator and then calling + * its method setType('square'). + * See p5.Oscillator for methods. + * + * @class p5.SqrOsc + * @constructor + * @extends p5.Oscillator + * @param {Number} [freq] Set the frequency + */ + p5.SqrOsc = function (freq) { + p5.Oscillator.call(this, freq, 'square'); + }; + p5.SqrOsc.prototype = Object.create(p5.Oscillator.prototype); +}(master, Tone_signal_Add, Tone_signal_Multiply, Tone_signal_Scale); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_core_Timeline; +Tone_core_Timeline = function (Tone) { + 'use strict'; + Tone.Timeline = function () { + var options = this.optionsObject(arguments, ['memory'], Tone.Timeline.defaults); + this._timeline = []; + this._toRemove = []; + this._iterating = false; + this.memory = options.memory; + }; + Tone.extend(Tone.Timeline); + Tone.Timeline.defaults = { 'memory': Infinity }; + Object.defineProperty(Tone.Timeline.prototype, 'length', { + get: function () { + return this._timeline.length; + } + }); + Tone.Timeline.prototype.add = function (event) { + if (this.isUndef(event.time)) { + throw new Error('Tone.Timeline: events must have a time attribute'); + } + if (this._timeline.length) { + var index = this._search(event.time); + this._timeline.splice(index + 1, 0, event); + } else { + this._timeline.push(event); + } + if (this.length > this.memory) { + var diff = this.length - this.memory; + this._timeline.splice(0, diff); + } + return this; + }; + Tone.Timeline.prototype.remove = function (event) { + if (this._iterating) { + this._toRemove.push(event); + } else { + var index = this._timeline.indexOf(event); + if (index !== -1) { + this._timeline.splice(index, 1); + } + } + return this; + }; + Tone.Timeline.prototype.get = function (time) { + var index = this._search(time); + if (index !== -1) { + return this._timeline[index]; + } else { + return null; + } + }; + Tone.Timeline.prototype.peek = function () { + return this._timeline[0]; + }; + Tone.Timeline.prototype.shift = function () { + return this._timeline.shift(); + }; + Tone.Timeline.prototype.getAfter = function (time) { + var index = this._search(time); + if (index + 1 < this._timeline.length) { + return this._timeline[index + 1]; + } else { + return null; + } + }; + Tone.Timeline.prototype.getBefore = function (time) { + var len = this._timeline.length; + if (len > 0 && this._timeline[len - 1].time < time) { + return this._timeline[len - 1]; + } + var index = this._search(time); + if (index - 1 >= 0) { + return this._timeline[index - 1]; + } else { + return null; + } + }; + Tone.Timeline.prototype.cancel = function (after) { + if (this._timeline.length > 1) { + var index = this._search(after); + if (index >= 0) { + if (this._timeline[index].time === after) { + for (var i = index; i >= 0; i--) { + if (this._timeline[i].time === after) { + index = i; + } else { + break; + } + } + this._timeline = this._timeline.slice(0, index); + } else { + this._timeline = this._timeline.slice(0, index + 1); + } + } else { + this._timeline = []; + } + } else if (this._timeline.length === 1) { + if (this._timeline[0].time >= after) { + this._timeline = []; + } + } + return this; + }; + Tone.Timeline.prototype.cancelBefore = function (time) { + if (this._timeline.length) { + var index = this._search(time); + if (index >= 0) { + this._timeline = this._timeline.slice(index + 1); + } + } + return this; + }; + Tone.Timeline.prototype._search = function (time) { + var beginning = 0; + var len = this._timeline.length; + var end = len; + if (len > 0 && this._timeline[len - 1].time <= time) { + return len - 1; + } + while (beginning < end) { + var midPoint = Math.floor(beginning + (end - beginning) / 2); + var event = this._timeline[midPoint]; + var nextEvent = this._timeline[midPoint + 1]; + if (event.time === time) { + for (var i = midPoint; i < this._timeline.length; i++) { + var testEvent = this._timeline[i]; + if (testEvent.time === time) { + midPoint = i; + } + } + return midPoint; + } else if (event.time < time && nextEvent.time > time) { + return midPoint; + } else if (event.time > time) { + end = midPoint; + } else if (event.time < time) { + beginning = midPoint + 1; + } + } + return -1; + }; + Tone.Timeline.prototype._iterate = function (callback, lowerBound, upperBound) { + this._iterating = true; + lowerBound = this.defaultArg(lowerBound, 0); + upperBound = this.defaultArg(upperBound, this._timeline.length - 1); + for (var i = lowerBound; i <= upperBound; i++) { + callback(this._timeline[i]); + } + this._iterating = false; + if (this._toRemove.length > 0) { + for (var j = 0; j < this._toRemove.length; j++) { + var index = this._timeline.indexOf(this._toRemove[j]); + if (index !== -1) { + this._timeline.splice(index, 1); + } + } + this._toRemove = []; + } + }; + Tone.Timeline.prototype.forEach = function (callback) { + this._iterate(callback); + return this; + }; + Tone.Timeline.prototype.forEachBefore = function (time, callback) { + var upperBound = this._search(time); + if (upperBound !== -1) { + this._iterate(callback, 0, upperBound); + } + return this; + }; + Tone.Timeline.prototype.forEachAfter = function (time, callback) { + var lowerBound = this._search(time); + this._iterate(callback, lowerBound + 1); + return this; + }; + Tone.Timeline.prototype.forEachFrom = function (time, callback) { + var lowerBound = this._search(time); + while (lowerBound >= 0 && this._timeline[lowerBound].time >= time) { + lowerBound--; + } + this._iterate(callback, lowerBound + 1); + return this; + }; + Tone.Timeline.prototype.forEachAtTime = function (time, callback) { + var upperBound = this._search(time); + if (upperBound !== -1) { + this._iterate(function (event) { + if (event.time === time) { + callback(event); + } + }, 0, upperBound); + } + return this; + }; + Tone.Timeline.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._timeline = null; + this._toRemove = null; + }; + return Tone.Timeline; +}(Tone_core_Tone); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_TimelineSignal; +Tone_signal_TimelineSignal = function (Tone) { + 'use strict'; + Tone.TimelineSignal = function () { + var options = this.optionsObject(arguments, [ + 'value', + 'units' + ], Tone.Signal.defaults); + this._events = new Tone.Timeline(10); + Tone.Signal.apply(this, options); + options.param = this._param; + Tone.Param.call(this, options); + this._initial = this._fromUnits(this._param.value); + }; + Tone.extend(Tone.TimelineSignal, Tone.Param); + Tone.TimelineSignal.Type = { + Linear: 'linear', + Exponential: 'exponential', + Target: 'target', + Curve: 'curve', + Set: 'set' + }; + Object.defineProperty(Tone.TimelineSignal.prototype, 'value', { + get: function () { + var now = this.now(); + var val = this.getValueAtTime(now); + return this._toUnits(val); + }, + set: function (value) { + var convertedVal = this._fromUnits(value); + this._initial = convertedVal; + this.cancelScheduledValues(); + this._param.value = convertedVal; + } + }); + Tone.TimelineSignal.prototype.setValueAtTime = function (value, startTime) { + value = this._fromUnits(value); + startTime = this.toSeconds(startTime); + this._events.add({ + 'type': Tone.TimelineSignal.Type.Set, + 'value': value, + 'time': startTime + }); + this._param.setValueAtTime(value, startTime); + return this; + }; + Tone.TimelineSignal.prototype.linearRampToValueAtTime = function (value, endTime) { + value = this._fromUnits(value); + endTime = this.toSeconds(endTime); + this._events.add({ + 'type': Tone.TimelineSignal.Type.Linear, + 'value': value, + 'time': endTime + }); + this._param.linearRampToValueAtTime(value, endTime); + return this; + }; + Tone.TimelineSignal.prototype.exponentialRampToValueAtTime = function (value, endTime) { + endTime = this.toSeconds(endTime); + var beforeEvent = this._searchBefore(endTime); + if (beforeEvent && beforeEvent.value === 0) { + this.setValueAtTime(this._minOutput, beforeEvent.time); + } + value = this._fromUnits(value); + var setValue = Math.max(value, this._minOutput); + this._events.add({ + 'type': Tone.TimelineSignal.Type.Exponential, + 'value': setValue, + 'time': endTime + }); + if (value < this._minOutput) { + this._param.exponentialRampToValueAtTime(this._minOutput, endTime - this.sampleTime); + this.setValueAtTime(0, endTime); + } else { + this._param.exponentialRampToValueAtTime(value, endTime); + } + return this; + }; + Tone.TimelineSignal.prototype.setTargetAtTime = function (value, startTime, timeConstant) { + value = this._fromUnits(value); + value = Math.max(this._minOutput, value); + timeConstant = Math.max(this._minOutput, timeConstant); + startTime = this.toSeconds(startTime); + this._events.add({ + 'type': Tone.TimelineSignal.Type.Target, + 'value': value, + 'time': startTime, + 'constant': timeConstant + }); + this._param.setTargetAtTime(value, startTime, timeConstant); + return this; + }; + Tone.TimelineSignal.prototype.setValueCurveAtTime = function (values, startTime, duration, scaling) { + scaling = this.defaultArg(scaling, 1); + var floats = new Array(values.length); + for (var i = 0; i < floats.length; i++) { + floats[i] = this._fromUnits(values[i]) * scaling; + } + startTime = this.toSeconds(startTime); + duration = this.toSeconds(duration); + this._events.add({ + 'type': Tone.TimelineSignal.Type.Curve, + 'value': floats, + 'time': startTime, + 'duration': duration + }); + this._param.setValueAtTime(floats[0], startTime); + for (var j = 1; j < floats.length; j++) { + var segmentTime = startTime + j / (floats.length - 1) * duration; + this._param.linearRampToValueAtTime(floats[j], segmentTime); + } + return this; + }; + Tone.TimelineSignal.prototype.cancelScheduledValues = function (after) { + after = this.toSeconds(after); + this._events.cancel(after); + this._param.cancelScheduledValues(after); + return this; + }; + Tone.TimelineSignal.prototype.setRampPoint = function (time) { + time = this.toSeconds(time); + var val = this._toUnits(this.getValueAtTime(time)); + var before = this._searchBefore(time); + if (before && before.time === time) { + this.cancelScheduledValues(time + this.sampleTime); + } else if (before && before.type === Tone.TimelineSignal.Type.Curve && before.time + before.duration > time) { + this.cancelScheduledValues(time); + this.linearRampToValueAtTime(val, time); + } else { + var after = this._searchAfter(time); + if (after) { + this.cancelScheduledValues(time); + if (after.type === Tone.TimelineSignal.Type.Linear) { + this.linearRampToValueAtTime(val, time); + } else if (after.type === Tone.TimelineSignal.Type.Exponential) { + this.exponentialRampToValueAtTime(val, time); + } + } + this.setValueAtTime(val, time); + } + return this; + }; + Tone.TimelineSignal.prototype.linearRampToValueBetween = function (value, start, finish) { + this.setRampPoint(start); + this.linearRampToValueAtTime(value, finish); + return this; + }; + Tone.TimelineSignal.prototype.exponentialRampToValueBetween = function (value, start, finish) { + this.setRampPoint(start); + this.exponentialRampToValueAtTime(value, finish); + return this; + }; + Tone.TimelineSignal.prototype._searchBefore = function (time) { + return this._events.get(time); + }; + Tone.TimelineSignal.prototype._searchAfter = function (time) { + return this._events.getAfter(time); + }; + Tone.TimelineSignal.prototype.getValueAtTime = function (time) { + time = this.toSeconds(time); + var after = this._searchAfter(time); + var before = this._searchBefore(time); + var value = this._initial; + if (before === null) { + value = this._initial; + } else if (before.type === Tone.TimelineSignal.Type.Target) { + var previous = this._events.getBefore(before.time); + var previouVal; + if (previous === null) { + previouVal = this._initial; + } else { + previouVal = previous.value; + } + value = this._exponentialApproach(before.time, previouVal, before.value, before.constant, time); + } else if (before.type === Tone.TimelineSignal.Type.Curve) { + value = this._curveInterpolate(before.time, before.value, before.duration, time); + } else if (after === null) { + value = before.value; + } else if (after.type === Tone.TimelineSignal.Type.Linear) { + value = this._linearInterpolate(before.time, before.value, after.time, after.value, time); + } else if (after.type === Tone.TimelineSignal.Type.Exponential) { + value = this._exponentialInterpolate(before.time, before.value, after.time, after.value, time); + } else { + value = before.value; + } + return value; + }; + Tone.TimelineSignal.prototype.connect = Tone.SignalBase.prototype.connect; + Tone.TimelineSignal.prototype._exponentialApproach = function (t0, v0, v1, timeConstant, t) { + return v1 + (v0 - v1) * Math.exp(-(t - t0) / timeConstant); + }; + Tone.TimelineSignal.prototype._linearInterpolate = function (t0, v0, t1, v1, t) { + return v0 + (v1 - v0) * ((t - t0) / (t1 - t0)); + }; + Tone.TimelineSignal.prototype._exponentialInterpolate = function (t0, v0, t1, v1, t) { + v0 = Math.max(this._minOutput, v0); + return v0 * Math.pow(v1 / v0, (t - t0) / (t1 - t0)); + }; + Tone.TimelineSignal.prototype._curveInterpolate = function (start, curve, duration, time) { + var len = curve.length; + if (time >= start + duration) { + return curve[len - 1]; + } else if (time <= start) { + return curve[0]; + } else { + var progress = (time - start) / duration; + var lowerIndex = Math.floor((len - 1) * progress); + var upperIndex = Math.ceil((len - 1) * progress); + var lowerVal = curve[lowerIndex]; + var upperVal = curve[upperIndex]; + if (upperIndex === lowerIndex) { + return lowerVal; + } else { + return this._linearInterpolate(lowerIndex, lowerVal, upperIndex, upperVal, progress * (len - 1)); + } + } + }; + Tone.TimelineSignal.prototype.dispose = function () { + Tone.Signal.prototype.dispose.call(this); + Tone.Param.prototype.dispose.call(this); + this._events.dispose(); + this._events = null; + }; + return Tone.TimelineSignal; +}(Tone_core_Tone, Tone_signal_Signal); +var envelope; +'use strict'; +envelope = function () { + var p5sound = master; + var Add = Tone_signal_Add; + var Mult = Tone_signal_Multiply; + var Scale = Tone_signal_Scale; + var TimelineSignal = Tone_signal_TimelineSignal; + /** + *

Envelopes are pre-defined amplitude distribution over time. + * Typically, envelopes are used to control the output volume + * of an object, a series of fades referred to as Attack, Decay, + * Sustain and Release ( + * ADSR + * ). Envelopes can also control other Web Audio Parametersโ€”for example, a p5.Envelope can + * control an Oscillator's frequency like this: osc.freq(env).

+ *

Use setRange to change the attack/release level. + * Use setADSR to change attackTime, decayTime, sustainPercent and releaseTime.

+ *

Use the play method to play the entire envelope, + * the ramp method for a pingable trigger, + * or triggerAttack/ + * triggerRelease to trigger noteOn/noteOff.

+ * + * @class p5.Envelope + * @constructor + * @example + *
+ * var attackLevel = 1.0; + * var releaseLevel = 0; + * + * var attackTime = 0.001; + * var decayTime = 0.2; + * var susPercent = 0.2; + * var releaseTime = 0.5; + * + * var env, triOsc; + * + * function setup() { + * var cnv = createCanvas(100, 100); + * + * textAlign(CENTER); + * text('click to play', width/2, height/2); + * + * env = new p5.Envelope(); + * env.setADSR(attackTime, decayTime, susPercent, releaseTime); + * env.setRange(attackLevel, releaseLevel); + * + * triOsc = new p5.Oscillator('triangle'); + * triOsc.amp(env); + * triOsc.start(); + * triOsc.freq(220); + * + * cnv.mousePressed(playEnv); + * } + * + * function playEnv() { + * env.play(); + * } + *
+ */ + p5.Envelope = function (t1, l1, t2, l2, t3, l3) { + /** + * Time until envelope reaches attackLevel + * @property attackTime + */ + this.aTime = t1 || 0.1; + /** + * Level once attack is complete. + * @property attackLevel + */ + this.aLevel = l1 || 1; + /** + * Time until envelope reaches decayLevel. + * @property decayTime + */ + this.dTime = t2 || 0.5; + /** + * Level after decay. The envelope will sustain here until it is released. + * @property decayLevel + */ + this.dLevel = l2 || 0; + /** + * Duration of the release portion of the envelope. + * @property releaseTime + */ + this.rTime = t3 || 0; + /** + * Level at the end of the release. + * @property releaseLevel + */ + this.rLevel = l3 || 0; + this._rampHighPercentage = 0.98; + this._rampLowPercentage = 0.02; + this.output = p5sound.audiocontext.createGain(); + this.control = new TimelineSignal(); + this._init(); + // this makes sure the envelope starts at zero + this.control.connect(this.output); + // connect to the output + this.connection = null; + // store connection + //array of math operation signal chaining + this.mathOps = [this.control]; + //whether envelope should be linear or exponential curve + this.isExponential = false; + // oscillator or buffer source to clear on env complete + // to save resources if/when it is retriggered + this.sourceToClear = null; + // set to true if attack is set, then false on release + this.wasTriggered = false; + // add to the soundArray so we can dispose of the env later + p5sound.soundArray.push(this); + }; + // this init function just smooths the starting value to zero and gives a start point for the timeline + // - it was necessary to remove glitches at the beginning. + p5.Envelope.prototype._init = function () { + var now = p5sound.audiocontext.currentTime; + var t = now; + this.control.setTargetAtTime(0.00001, t, 0.001); + //also, compute the correct time constants + this._setRampAD(this.aTime, this.dTime); + }; + /** + * Reset the envelope with a series of time/value pairs. + * + * @method set + * @param {Number} attackTime Time (in seconds) before level + * reaches attackLevel + * @param {Number} attackLevel Typically an amplitude between + * 0.0 and 1.0 + * @param {Number} decayTime Time + * @param {Number} decayLevel Amplitude (In a standard ADSR envelope, + * decayLevel = sustainLevel) + * @param {Number} releaseTime Release Time (in seconds) + * @param {Number} releaseLevel Amplitude + * @example + *
+ * var t1 = 0.1; // attack time in seconds + * var l1 = 0.7; // attack level 0.0 to 1.0 + * var t2 = 0.3; // decay time in seconds + * var l2 = 0.1; // decay level 0.0 to 1.0 + * var t3 = 0.2; // sustain time in seconds + * var l3 = 0.5; // sustain level 0.0 to 1.0 + * // release level defaults to zero + * + * var env; + * var triOsc; + * + * function setup() { + * background(0); + * noStroke(); + * fill(255); + * textAlign(CENTER); + * text('click to play', width/2, height/2); + * + * env = new p5.Envelope(t1, l1, t2, l2, t3, l3); + * triOsc = new p5.Oscillator('triangle'); + * triOsc.amp(env); // give the env control of the triOsc's amp + * triOsc.start(); + * } + * + * // mouseClick triggers envelope if over canvas + * function mouseClicked() { + * // is mouse over canvas? + * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { + * env.play(triOsc); + * } + * } + *
+ * + */ + p5.Envelope.prototype.set = function (t1, l1, t2, l2, t3, l3) { + this.aTime = t1; + this.aLevel = l1; + this.dTime = t2 || 0; + this.dLevel = l2 || 0; + this.rTime = t3 || 0; + this.rLevel = l3 || 0; + // set time constants for ramp + this._setRampAD(t1, t2); + }; + /** + * Set values like a traditional + * + * ADSR envelope + * . + * + * @method setADSR + * @param {Number} attackTime Time (in seconds before envelope + * reaches Attack Level + * @param {Number} [decayTime] Time (in seconds) before envelope + * reaches Decay/Sustain Level + * @param {Number} [susRatio] Ratio between attackLevel and releaseLevel, on a scale from 0 to 1, + * where 1.0 = attackLevel, 0.0 = releaseLevel. + * The susRatio determines the decayLevel and the level at which the + * sustain portion of the envelope will sustain. + * For example, if attackLevel is 0.4, releaseLevel is 0, + * and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is + * increased to 1.0 (using setRange), + * then decayLevel would increase proportionally, to become 0.5. + * @param {Number} [releaseTime] Time in seconds from now (defaults to 0) + * @example + *
+ * var attackLevel = 1.0; + * var releaseLevel = 0; + * + * var attackTime = 0.001; + * var decayTime = 0.2; + * var susPercent = 0.2; + * var releaseTime = 0.5; + * + * var env, triOsc; + * + * function setup() { + * var cnv = createCanvas(100, 100); + * + * textAlign(CENTER); + * text('click to play', width/2, height/2); + * + * env = new p5.Envelope(); + * env.setADSR(attackTime, decayTime, susPercent, releaseTime); + * env.setRange(attackLevel, releaseLevel); + * + * triOsc = new p5.Oscillator('triangle'); + * triOsc.amp(env); + * triOsc.start(); + * triOsc.freq(220); + * + * cnv.mousePressed(playEnv); + * } + * + * function playEnv() { + * env.play(); + * } + *
+ */ + p5.Envelope.prototype.setADSR = function (aTime, dTime, sPercent, rTime) { + this.aTime = aTime; + this.dTime = dTime || 0; + // lerp + this.sPercent = sPercent || 0; + this.dLevel = typeof sPercent !== 'undefined' ? sPercent * (this.aLevel - this.rLevel) + this.rLevel : 0; + this.rTime = rTime || 0; + // also set time constants for ramp + this._setRampAD(aTime, dTime); + }; + /** + * Set max (attackLevel) and min (releaseLevel) of envelope. + * + * @method setRange + * @param {Number} aLevel attack level (defaults to 1) + * @param {Number} rLevel release level (defaults to 0) + * @example + *
+ * var attackLevel = 1.0; + * var releaseLevel = 0; + * + * var attackTime = 0.001; + * var decayTime = 0.2; + * var susPercent = 0.2; + * var releaseTime = 0.5; + * + * var env, triOsc; + * + * function setup() { + * var cnv = createCanvas(100, 100); + * + * textAlign(CENTER); + * text('click to play', width/2, height/2); + * + * env = new p5.Envelope(); + * env.setADSR(attackTime, decayTime, susPercent, releaseTime); + * env.setRange(attackLevel, releaseLevel); + * + * triOsc = new p5.Oscillator('triangle'); + * triOsc.amp(env); + * triOsc.start(); + * triOsc.freq(220); + * + * cnv.mousePressed(playEnv); + * } + * + * function playEnv() { + * env.play(); + * } + *
+ */ + p5.Envelope.prototype.setRange = function (aLevel, rLevel) { + this.aLevel = aLevel || 1; + this.rLevel = rLevel || 0; + }; + // private (undocumented) method called when ADSR is set to set time constants for ramp + // + // Set the + // time constants for simple exponential ramps. + // The larger the time constant value, the slower the + // transition will be. + // + // method _setRampAD + // param {Number} attackTimeConstant attack time constant + // param {Number} decayTimeConstant decay time constant + // + p5.Envelope.prototype._setRampAD = function (t1, t2) { + this._rampAttackTime = this.checkExpInput(t1); + this._rampDecayTime = this.checkExpInput(t2); + var TCDenominator = 1; + /// Aatish Bhatia's calculation for time constant for rise(to adjust 1/1-e calculation to any percentage) + TCDenominator = Math.log(1 / this.checkExpInput(1 - this._rampHighPercentage)); + this._rampAttackTC = t1 / this.checkExpInput(TCDenominator); + TCDenominator = Math.log(1 / this._rampLowPercentage); + this._rampDecayTC = t2 / this.checkExpInput(TCDenominator); + }; + // private method + p5.Envelope.prototype.setRampPercentages = function (p1, p2) { + //set the percentages that the simple exponential ramps go to + this._rampHighPercentage = this.checkExpInput(p1); + this._rampLowPercentage = this.checkExpInput(p2); + var TCDenominator = 1; + //now re-compute the time constants based on those percentages + /// Aatish Bhatia's calculation for time constant for rise(to adjust 1/1-e calculation to any percentage) + TCDenominator = Math.log(1 / this.checkExpInput(1 - this._rampHighPercentage)); + this._rampAttackTC = this._rampAttackTime / this.checkExpInput(TCDenominator); + TCDenominator = Math.log(1 / this._rampLowPercentage); + this._rampDecayTC = this._rampDecayTime / this.checkExpInput(TCDenominator); + }; + /** + * Assign a parameter to be controlled by this envelope. + * If a p5.Sound object is given, then the p5.Envelope will control its + * output gain. If multiple inputs are provided, the env will + * control all of them. + * + * @method setInput + * @param {Object} [...inputs] A p5.sound object or + * Web Audio Param. + */ + p5.Envelope.prototype.setInput = function () { + for (var i = 0; i < arguments.length; i++) { + this.connect(arguments[i]); + } + }; + /** + * Set whether the envelope ramp is linear (default) or exponential. + * Exponential ramps can be useful because we perceive amplitude + * and frequency logarithmically. + * + * @method setExp + * @param {Boolean} isExp true is exponential, false is linear + */ + p5.Envelope.prototype.setExp = function (isExp) { + this.isExponential = isExp; + }; + //helper method to protect against zero values being sent to exponential functions + p5.Envelope.prototype.checkExpInput = function (value) { + if (value <= 0) { + value = 1e-8; + } + return value; + }; + /** + * Play tells the envelope to start acting on a given input. + * If the input is a p5.sound object (i.e. AudioIn, Oscillator, + * SoundFile), then Envelope will control its output volume. + * Envelopes can also be used to control any + * Web Audio Audio Param. + * + * @method play + * @param {Object} unit A p5.sound object or + * Web Audio Param. + * @param {Number} [startTime] time from now (in seconds) at which to play + * @param {Number} [sustainTime] time to sustain before releasing the envelope + * @example + *
+ * var attackLevel = 1.0; + * var releaseLevel = 0; + * + * var attackTime = 0.001; + * var decayTime = 0.2; + * var susPercent = 0.2; + * var releaseTime = 0.5; + * + * var env, triOsc; + * + * function setup() { + * var cnv = createCanvas(100, 100); + * + * textAlign(CENTER); + * text('click to play', width/2, height/2); + * + * env = new p5.Envelope(); + * env.setADSR(attackTime, decayTime, susPercent, releaseTime); + * env.setRange(attackLevel, releaseLevel); + * + * triOsc = new p5.Oscillator('triangle'); + * triOsc.amp(env); + * triOsc.start(); + * triOsc.freq(220); + * + * cnv.mousePressed(playEnv); + * } + * + * function playEnv() { + * // trigger env on triOsc, 0 seconds from now + * // After decay, sustain for 0.2 seconds before release + * env.play(triOsc, 0, 0.2); + * } + *
+ */ + p5.Envelope.prototype.play = function (unit, secondsFromNow, susTime) { + var tFromNow = secondsFromNow || 0; + var susTime = susTime || 0; + if (unit) { + if (this.connection !== unit) { + this.connect(unit); + } + } + this.triggerAttack(unit, tFromNow); + this.triggerRelease(unit, tFromNow + this.aTime + this.dTime + susTime); + }; + /** + * Trigger the Attack, and Decay portion of the Envelope. + * Similar to holding down a key on a piano, but it will + * hold the sustain level until you let go. Input can be + * any p5.sound object, or a + * Web Audio Param. + * + * @method triggerAttack + * @param {Object} unit p5.sound Object or Web Audio Param + * @param {Number} secondsFromNow time from now (in seconds) + * @example + *
+ * + * var attackLevel = 1.0; + * var releaseLevel = 0; + * + * var attackTime = 0.001; + * var decayTime = 0.3; + * var susPercent = 0.4; + * var releaseTime = 0.5; + * + * var env, triOsc; + * + * function setup() { + * var cnv = createCanvas(100, 100); + * background(200); + * textAlign(CENTER); + * text('click to play', width/2, height/2); + * + * env = new p5.Envelope(); + * env.setADSR(attackTime, decayTime, susPercent, releaseTime); + * env.setRange(attackLevel, releaseLevel); + * + * triOsc = new p5.Oscillator('triangle'); + * triOsc.amp(env); + * triOsc.start(); + * triOsc.freq(220); + * + * cnv.mousePressed(envAttack); + * } + * + * function envAttack() { + * env.triggerAttack(); + * + * background(0,255,0); + * text('attack!', width/2, height/2); + * } + * + * function mouseReleased() { + * env.triggerRelease(); + * + * background(200); + * text('click to play', width/2, height/2); + * } + *
+ */ + p5.Envelope.prototype.triggerAttack = function (unit, secondsFromNow) { + var now = p5sound.audiocontext.currentTime; + var tFromNow = secondsFromNow || 0; + var t = now + tFromNow; + this.lastAttack = t; + this.wasTriggered = true; + if (unit) { + if (this.connection !== unit) { + this.connect(unit); + } + } + // get and set value (with linear ramp) to anchor automation + var valToSet = this.control.getValueAtTime(t); + if (this.isExponential === true) { + this.control.exponentialRampToValueAtTime(this.checkExpInput(valToSet), t); + } else { + this.control.linearRampToValueAtTime(valToSet, t); + } + // after each ramp completes, cancel scheduled values + // (so they can be overridden in case env has been re-triggered) + // then, set current value (with linearRamp to avoid click) + // then, schedule the next automation... + // attack + t += this.aTime; + if (this.isExponential === true) { + this.control.exponentialRampToValueAtTime(this.checkExpInput(this.aLevel), t); + valToSet = this.checkExpInput(this.control.getValueAtTime(t)); + this.control.cancelScheduledValues(t); + this.control.exponentialRampToValueAtTime(valToSet, t); + } else { + this.control.linearRampToValueAtTime(this.aLevel, t); + valToSet = this.control.getValueAtTime(t); + this.control.cancelScheduledValues(t); + this.control.linearRampToValueAtTime(valToSet, t); + } + // decay to decay level (if using ADSR, then decay level == sustain level) + t += this.dTime; + if (this.isExponential === true) { + this.control.exponentialRampToValueAtTime(this.checkExpInput(this.dLevel), t); + valToSet = this.checkExpInput(this.control.getValueAtTime(t)); + this.control.cancelScheduledValues(t); + this.control.exponentialRampToValueAtTime(valToSet, t); + } else { + this.control.linearRampToValueAtTime(this.dLevel, t); + valToSet = this.control.getValueAtTime(t); + this.control.cancelScheduledValues(t); + this.control.linearRampToValueAtTime(valToSet, t); + } + }; + /** + * Trigger the Release of the Envelope. This is similar to releasing + * the key on a piano and letting the sound fade according to the + * release level and release time. + * + * @method triggerRelease + * @param {Object} unit p5.sound Object or Web Audio Param + * @param {Number} secondsFromNow time to trigger the release + * @example + *
+ * + * var attackLevel = 1.0; + * var releaseLevel = 0; + * + * var attackTime = 0.001; + * var decayTime = 0.3; + * var susPercent = 0.4; + * var releaseTime = 0.5; + * + * var env, triOsc; + * + * function setup() { + * var cnv = createCanvas(100, 100); + * background(200); + * textAlign(CENTER); + * text('click to play', width/2, height/2); + * + * env = new p5.Envelope(); + * env.setADSR(attackTime, decayTime, susPercent, releaseTime); + * env.setRange(attackLevel, releaseLevel); + * + * triOsc = new p5.Oscillator('triangle'); + * triOsc.amp(env); + * triOsc.start(); + * triOsc.freq(220); + * + * cnv.mousePressed(envAttack); + * } + * + * function envAttack() { + * env.triggerAttack(); + * + * background(0,255,0); + * text('attack!', width/2, height/2); + * } + * + * function mouseReleased() { + * env.triggerRelease(); + * + * background(200); + * text('click to play', width/2, height/2); + * } + *
+ */ + p5.Envelope.prototype.triggerRelease = function (unit, secondsFromNow) { + // only trigger a release if an attack was triggered + if (!this.wasTriggered) { + // this currently causes a bit of trouble: + // if a later release has been scheduled (via the play function) + // a new earlier release won't interrupt it, because + // this.wasTriggered has already been set to false. + // If we want new earlier releases to override, then we need to + // keep track of the last release time, and if the new release time is + // earlier, then use it. + return; + } + var now = p5sound.audiocontext.currentTime; + var tFromNow = secondsFromNow || 0; + var t = now + tFromNow; + if (unit) { + if (this.connection !== unit) { + this.connect(unit); + } + } + // get and set value (with linear or exponential ramp) to anchor automation + var valToSet = this.control.getValueAtTime(t); + if (this.isExponential === true) { + this.control.exponentialRampToValueAtTime(this.checkExpInput(valToSet), t); + } else { + this.control.linearRampToValueAtTime(valToSet, t); + } + // release + t += this.rTime; + if (this.isExponential === true) { + this.control.exponentialRampToValueAtTime(this.checkExpInput(this.rLevel), t); + valToSet = this.checkExpInput(this.control.getValueAtTime(t)); + this.control.cancelScheduledValues(t); + this.control.exponentialRampToValueAtTime(valToSet, t); + } else { + this.control.linearRampToValueAtTime(this.rLevel, t); + valToSet = this.control.getValueAtTime(t); + this.control.cancelScheduledValues(t); + this.control.linearRampToValueAtTime(valToSet, t); + } + this.wasTriggered = false; + }; + /** + * Exponentially ramp to a value using the first two + * values from setADSR(attackTime, decayTime) + * as + * time constants for simple exponential ramps. + * If the value is higher than current value, it uses attackTime, + * while a decrease uses decayTime. + * + * @method ramp + * @param {Object} unit p5.sound Object or Web Audio Param + * @param {Number} secondsFromNow When to trigger the ramp + * @param {Number} v Target value + * @param {Number} [v2] Second target value (optional) + * @example + *
+ * var env, osc, amp, cnv; + * + * var attackTime = 0.001; + * var decayTime = 0.2; + * var attackLevel = 1; + * var decayLevel = 0; + * + * function setup() { + * cnv = createCanvas(100, 100); + * fill(0,255,0); + * noStroke(); + * + * env = new p5.Envelope(); + * env.setADSR(attackTime, decayTime); + * + * osc = new p5.Oscillator(); + * osc.amp(env); + * osc.start(); + * + * amp = new p5.Amplitude(); + * + * cnv.mousePressed(triggerRamp); + * } + * + * function triggerRamp() { + * env.ramp(osc, 0, attackLevel, decayLevel); + * } + * + * function draw() { + * background(20,20,20); + * text('click me', 10, 20); + * var h = map(amp.getLevel(), 0, 0.4, 0, height);; + * + * rect(0, height, width, -h); + * } + *
+ */ + p5.Envelope.prototype.ramp = function (unit, secondsFromNow, v1, v2) { + var now = p5sound.audiocontext.currentTime; + var tFromNow = secondsFromNow || 0; + var t = now + tFromNow; + var destination1 = this.checkExpInput(v1); + var destination2 = typeof v2 !== 'undefined' ? this.checkExpInput(v2) : undefined; + // connect env to unit if not already connected + if (unit) { + if (this.connection !== unit) { + this.connect(unit); + } + } + //get current value + var currentVal = this.checkExpInput(this.control.getValueAtTime(t)); + // this.control.cancelScheduledValues(t); + //if it's going up + if (destination1 > currentVal) { + this.control.setTargetAtTime(destination1, t, this._rampAttackTC); + t += this._rampAttackTime; + } else if (destination1 < currentVal) { + this.control.setTargetAtTime(destination1, t, this._rampDecayTC); + t += this._rampDecayTime; + } + // Now the second part of envelope begins + if (destination2 === undefined) + return; + //if it's going up + if (destination2 > destination1) { + this.control.setTargetAtTime(destination2, t, this._rampAttackTC); + } else if (destination2 < destination1) { + this.control.setTargetAtTime(destination2, t, this._rampDecayTC); + } + }; + p5.Envelope.prototype.connect = function (unit) { + this.connection = unit; + // assume we're talking about output gain + // unless given a different audio param + if (unit instanceof p5.Oscillator || unit instanceof p5.SoundFile || unit instanceof p5.AudioIn || unit instanceof p5.Reverb || unit instanceof p5.Noise || unit instanceof p5.Filter || unit instanceof p5.Delay) { + unit = unit.output.gain; + } + if (unit instanceof AudioParam) { + //set the initial value + unit.setValueAtTime(0, p5sound.audiocontext.currentTime); + } + if (unit instanceof p5.Signal) { + unit.setValue(0); + } + this.output.connect(unit); + }; + p5.Envelope.prototype.disconnect = function () { + if (this.output) { + this.output.disconnect(); + } + }; + // Signal Math + /** + * Add a value to the p5.Oscillator's output amplitude, + * and return the oscillator. Calling this method + * again will override the initial add() with new values. + * + * @method add + * @param {Number} number Constant number to add + * @return {p5.Envelope} Envelope Returns this envelope + * with scaled output + */ + p5.Envelope.prototype.add = function (num) { + var add = new Add(num); + var thisChain = this.mathOps.length; + var nextChain = this.output; + return p5.prototype._mathChain(this, add, thisChain, nextChain, Add); + }; + /** + * Multiply the p5.Envelope's output amplitude + * by a fixed value. Calling this method + * again will override the initial mult() with new values. + * + * @method mult + * @param {Number} number Constant number to multiply + * @return {p5.Envelope} Envelope Returns this envelope + * with scaled output + */ + p5.Envelope.prototype.mult = function (num) { + var mult = new Mult(num); + var thisChain = this.mathOps.length; + var nextChain = this.output; + return p5.prototype._mathChain(this, mult, thisChain, nextChain, Mult); + }; + /** + * Scale this envelope's amplitude values to a given + * range, and return the envelope. Calling this method + * again will override the initial scale() with new values. + * + * @method scale + * @param {Number} inMin input range minumum + * @param {Number} inMax input range maximum + * @param {Number} outMin input range minumum + * @param {Number} outMax input range maximum + * @return {p5.Envelope} Envelope Returns this envelope + * with scaled output + */ + p5.Envelope.prototype.scale = function (inMin, inMax, outMin, outMax) { + var scale = new Scale(inMin, inMax, outMin, outMax); + var thisChain = this.mathOps.length; + var nextChain = this.output; + return p5.prototype._mathChain(this, scale, thisChain, nextChain, Scale); + }; + // get rid of the oscillator + p5.Envelope.prototype.dispose = function () { + // remove reference from soundArray + var index = p5sound.soundArray.indexOf(this); + p5sound.soundArray.splice(index, 1); + this.disconnect(); + if (this.control) { + this.control.dispose(); + this.control = null; + } + for (var i = 1; i < this.mathOps.length; i++) { + this.mathOps[i].dispose(); + } + }; + // Different name for backwards compatibility, replicates p5.Envelope class + p5.Env = function (t1, l1, t2, l2, t3, l3) { + console.warn('WARNING: p5.Env is now deprecated and may be removed in future versions. ' + 'Please use the new p5.Envelope instead.'); + p5.Envelope.call(this, t1, l1, t2, l2, t3, l3); + }; + p5.Env.prototype = Object.create(p5.Envelope.prototype); +}(master, Tone_signal_Add, Tone_signal_Multiply, Tone_signal_Scale, Tone_signal_TimelineSignal); +var pulse; +'use strict'; +pulse = function () { + var p5sound = master; + /** + * Creates a Pulse object, an oscillator that implements + * Pulse Width Modulation. + * The pulse is created with two oscillators. + * Accepts a parameter for frequency, and to set the + * width between the pulses. See + * p5.Oscillator for a full list of methods. + * + * @class p5.Pulse + * @extends p5.Oscillator + * @constructor + * @param {Number} [freq] Frequency in oscillations per second (Hz) + * @param {Number} [w] Width between the pulses (0 to 1.0, + * defaults to 0) + * @example + *
+ * var pulse; + * function setup() { + * background(0); + * + * // Create and start the pulse wave oscillator + * pulse = new p5.Pulse(); + * pulse.amp(0.5); + * pulse.freq(220); + * pulse.start(); + * } + * + * function draw() { + * var w = map(mouseX, 0, width, 0, 1); + * w = constrain(w, 0, 1); + * pulse.width(w) + * } + *
+ */ + p5.Pulse = function (freq, w) { + p5.Oscillator.call(this, freq, 'sawtooth'); + // width of PWM, should be betw 0 to 1.0 + this.w = w || 0; + // create a second oscillator with inverse frequency + this.osc2 = new p5.SawOsc(freq); + // create a delay node + this.dNode = p5sound.audiocontext.createDelay(); + // dc offset + this.dcOffset = createDCOffset(); + this.dcGain = p5sound.audiocontext.createGain(); + this.dcOffset.connect(this.dcGain); + this.dcGain.connect(this.output); + // set delay time based on PWM width + this.f = freq || 440; + var mW = this.w / this.oscillator.frequency.value; + this.dNode.delayTime.value = mW; + this.dcGain.gain.value = 1.7 * (0.5 - this.w); + // disconnect osc2 and connect it to delay, which is connected to output + this.osc2.disconnect(); + this.osc2.panner.disconnect(); + this.osc2.amp(-1); + // inverted amplitude + this.osc2.output.connect(this.dNode); + this.dNode.connect(this.output); + this.output.gain.value = 1; + this.output.connect(this.panner); + }; + p5.Pulse.prototype = Object.create(p5.Oscillator.prototype); + /** + * Set the width of a Pulse object (an oscillator that implements + * Pulse Width Modulation). + * + * @method width + * @param {Number} [width] Width between the pulses (0 to 1.0, + * defaults to 0) + */ + p5.Pulse.prototype.width = function (w) { + if (typeof w === 'number') { + if (w <= 1 && w >= 0) { + this.w = w; + // set delay time based on PWM width + // var mW = map(this.w, 0, 1.0, 0, 1/this.f); + var mW = this.w / this.oscillator.frequency.value; + this.dNode.delayTime.value = mW; + } + this.dcGain.gain.value = 1.7 * (0.5 - this.w); + } else { + w.connect(this.dNode.delayTime); + var sig = new p5.SignalAdd(-0.5); + sig.setInput(w); + sig = sig.mult(-1); + sig = sig.mult(1.7); + sig.connect(this.dcGain.gain); + } + }; + p5.Pulse.prototype.start = function (f, time) { + var now = p5sound.audiocontext.currentTime; + var t = time || 0; + if (!this.started) { + var freq = f || this.f; + var type = this.oscillator.type; + this.oscillator = p5sound.audiocontext.createOscillator(); + this.oscillator.frequency.setValueAtTime(freq, now); + this.oscillator.type = type; + this.oscillator.connect(this.output); + this.oscillator.start(t + now); + // set up osc2 + this.osc2.oscillator = p5sound.audiocontext.createOscillator(); + this.osc2.oscillator.frequency.setValueAtTime(freq, t + now); + this.osc2.oscillator.type = type; + this.osc2.oscillator.connect(this.osc2.output); + this.osc2.start(t + now); + this.freqNode = [ + this.oscillator.frequency, + this.osc2.oscillator.frequency + ]; + // start dcOffset, too + this.dcOffset = createDCOffset(); + this.dcOffset.connect(this.dcGain); + this.dcOffset.start(t + now); + // if LFO connections depend on these oscillators + if (this.mods !== undefined && this.mods.frequency !== undefined) { + this.mods.frequency.connect(this.freqNode[0]); + this.mods.frequency.connect(this.freqNode[1]); + } + this.started = true; + this.osc2.started = true; + } + }; + p5.Pulse.prototype.stop = function (time) { + if (this.started) { + var t = time || 0; + var now = p5sound.audiocontext.currentTime; + this.oscillator.stop(t + now); + if (this.osc2.oscillator) { + this.osc2.oscillator.stop(t + now); + } + this.dcOffset.stop(t + now); + this.started = false; + this.osc2.started = false; + } + }; + p5.Pulse.prototype.freq = function (val, rampTime, tFromNow) { + if (typeof val === 'number') { + this.f = val; + var now = p5sound.audiocontext.currentTime; + var rampTime = rampTime || 0; + var tFromNow = tFromNow || 0; + var currentFreq = this.oscillator.frequency.value; + this.oscillator.frequency.cancelScheduledValues(now); + this.oscillator.frequency.setValueAtTime(currentFreq, now + tFromNow); + this.oscillator.frequency.exponentialRampToValueAtTime(val, tFromNow + rampTime + now); + this.osc2.oscillator.frequency.cancelScheduledValues(now); + this.osc2.oscillator.frequency.setValueAtTime(currentFreq, now + tFromNow); + this.osc2.oscillator.frequency.exponentialRampToValueAtTime(val, tFromNow + rampTime + now); + if (this.freqMod) { + this.freqMod.output.disconnect(); + this.freqMod = null; + } + } else if (val.output) { + val.output.disconnect(); + val.output.connect(this.oscillator.frequency); + val.output.connect(this.osc2.oscillator.frequency); + this.freqMod = val; + } + }; + // inspiration: http://webaudiodemos.appspot.com/oscilloscope/ + function createDCOffset() { + var ac = p5sound.audiocontext; + var buffer = ac.createBuffer(1, 2048, ac.sampleRate); + var data = buffer.getChannelData(0); + for (var i = 0; i < 2048; i++) + data[i] = 1; + var bufferSource = ac.createBufferSource(); + bufferSource.buffer = buffer; + bufferSource.loop = true; + return bufferSource; + } +}(master, oscillator); +var noise; +'use strict'; +noise = function () { + var p5sound = master; + /** + * Noise is a type of oscillator that generates a buffer with random values. + * + * @class p5.Noise + * @extends p5.Oscillator + * @constructor + * @param {String} type Type of noise can be 'white' (default), + * 'brown' or 'pink'. + */ + p5.Noise = function (type) { + var assignType; + p5.Oscillator.call(this); + delete this.f; + delete this.freq; + delete this.oscillator; + if (type === 'brown') { + assignType = _brownNoise; + } else if (type === 'pink') { + assignType = _pinkNoise; + } else { + assignType = _whiteNoise; + } + this.buffer = assignType; + }; + p5.Noise.prototype = Object.create(p5.Oscillator.prototype); + // generate noise buffers + var _whiteNoise = function () { + var bufferSize = 2 * p5sound.audiocontext.sampleRate; + var whiteBuffer = p5sound.audiocontext.createBuffer(1, bufferSize, p5sound.audiocontext.sampleRate); + var noiseData = whiteBuffer.getChannelData(0); + for (var i = 0; i < bufferSize; i++) { + noiseData[i] = Math.random() * 2 - 1; + } + whiteBuffer.type = 'white'; + return whiteBuffer; + }(); + var _pinkNoise = function () { + var bufferSize = 2 * p5sound.audiocontext.sampleRate; + var pinkBuffer = p5sound.audiocontext.createBuffer(1, bufferSize, p5sound.audiocontext.sampleRate); + var noiseData = pinkBuffer.getChannelData(0); + var b0, b1, b2, b3, b4, b5, b6; + b0 = b1 = b2 = b3 = b4 = b5 = b6 = 0; + for (var i = 0; i < bufferSize; i++) { + var white = Math.random() * 2 - 1; + b0 = 0.99886 * b0 + white * 0.0555179; + b1 = 0.99332 * b1 + white * 0.0750759; + b2 = 0.969 * b2 + white * 0.153852; + b3 = 0.8665 * b3 + white * 0.3104856; + b4 = 0.55 * b4 + white * 0.5329522; + b5 = -0.7616 * b5 - white * 0.016898; + noiseData[i] = b0 + b1 + b2 + b3 + b4 + b5 + b6 + white * 0.5362; + noiseData[i] *= 0.11; + // (roughly) compensate for gain + b6 = white * 0.115926; + } + pinkBuffer.type = 'pink'; + return pinkBuffer; + }(); + var _brownNoise = function () { + var bufferSize = 2 * p5sound.audiocontext.sampleRate; + var brownBuffer = p5sound.audiocontext.createBuffer(1, bufferSize, p5sound.audiocontext.sampleRate); + var noiseData = brownBuffer.getChannelData(0); + var lastOut = 0; + for (var i = 0; i < bufferSize; i++) { + var white = Math.random() * 2 - 1; + noiseData[i] = (lastOut + 0.02 * white) / 1.02; + lastOut = noiseData[i]; + noiseData[i] *= 3.5; + } + brownBuffer.type = 'brown'; + return brownBuffer; + }(); + /** + * Set type of noise to 'white', 'pink' or 'brown'. + * White is the default. + * + * @method setType + * @param {String} [type] 'white', 'pink' or 'brown' + */ + p5.Noise.prototype.setType = function (type) { + switch (type) { + case 'white': + this.buffer = _whiteNoise; + break; + case 'pink': + this.buffer = _pinkNoise; + break; + case 'brown': + this.buffer = _brownNoise; + break; + default: + this.buffer = _whiteNoise; + } + if (this.started) { + var now = p5sound.audiocontext.currentTime; + this.stop(now); + this.start(now + 0.01); + } + }; + p5.Noise.prototype.getType = function () { + return this.buffer.type; + }; + p5.Noise.prototype.start = function () { + if (this.started) { + this.stop(); + } + this.noise = p5sound.audiocontext.createBufferSource(); + this.noise.buffer = this.buffer; + this.noise.loop = true; + this.noise.connect(this.output); + var now = p5sound.audiocontext.currentTime; + this.noise.start(now); + this.started = true; + }; + p5.Noise.prototype.stop = function () { + var now = p5sound.audiocontext.currentTime; + if (this.noise) { + this.noise.stop(now); + this.started = false; + } + }; + p5.Noise.prototype.dispose = function () { + var now = p5sound.audiocontext.currentTime; + // remove reference from soundArray + var index = p5sound.soundArray.indexOf(this); + p5sound.soundArray.splice(index, 1); + if (this.noise) { + this.noise.disconnect(); + this.stop(now); + } + if (this.output) { + this.output.disconnect(); + } + if (this.panner) { + this.panner.disconnect(); + } + this.output = null; + this.panner = null; + this.buffer = null; + this.noise = null; + }; +}(master); +var audioin; +'use strict'; +audioin = function () { + var p5sound = master; + // an array of input sources + p5sound.inputSources = []; + /** + *

Get audio from an input, i.e. your computer's microphone.

+ * + *

Turn the mic on/off with the start() and stop() methods. When the mic + * is on, its volume can be measured with getLevel or by connecting an + * FFT object.

+ * + *

If you want to hear the AudioIn, use the .connect() method. + * AudioIn does not connect to p5.sound output by default to prevent + * feedback.

+ * + *

Note: This uses the getUserMedia/ + * Stream API, which is not supported by certain browsers. Access in Chrome browser + * is limited to localhost and https, but access over http may be limited.

+ * + * @class p5.AudioIn + * @constructor + * @param {Function} [errorCallback] A function to call if there is an error + * accessing the AudioIn. For example, + * Safari and iOS devices do not + * currently allow microphone access. + * @example + *
+ * var mic; + * function setup(){ + * mic = new p5.AudioIn() + * mic.start(); + * } + * function draw(){ + * background(0); + * micLevel = mic.getLevel(); + * ellipse(width/2, constrain(height-micLevel*height*5, 0, height), 10, 10); + * } + *
+ */ + p5.AudioIn = function (errorCallback) { + // set up audio input + /** + * @property {GainNode} input + */ + this.input = p5sound.audiocontext.createGain(); + /** + * @property {GainNode} output + */ + this.output = p5sound.audiocontext.createGain(); + /** + * @property {MediaStream|null} stream + */ + this.stream = null; + /** + * @property {MediaStreamAudioSourceNode|null} mediaStream + */ + this.mediaStream = null; + /** + * @property {Number|null} currentSource + */ + this.currentSource = null; + /** + * Client must allow browser to access their microphone / audioin source. + * Default: false. Will become true when the client enables acces. + * + * @property {Boolean} enabled + */ + this.enabled = false; + /** + * Input amplitude, connect to it by default but not to master out + * + * @property {p5.Amplitude} amplitude + */ + this.amplitude = new p5.Amplitude(); + this.output.connect(this.amplitude.input); + if (!window.MediaStreamTrack || !window.navigator.mediaDevices || !window.navigator.mediaDevices.getUserMedia) { + errorCallback ? errorCallback() : window.alert('This browser does not support MediaStreamTrack and mediaDevices'); + } + // add to soundArray so we can dispose on close + p5sound.soundArray.push(this); + }; + /** + * Start processing audio input. This enables the use of other + * AudioIn methods like getLevel(). Note that by default, AudioIn + * is not connected to p5.sound's output. So you won't hear + * anything unless you use the connect() method.
+ * + * Certain browsers limit access to the user's microphone. For example, + * Chrome only allows access from localhost and over https. For this reason, + * you may want to include an errorCallbackโ€”a function that is called in case + * the browser won't provide mic access. + * + * @method start + * @param {Function} [successCallback] Name of a function to call on + * success. + * @param {Function} [errorCallback] Name of a function to call if + * there was an error. For example, + * some browsers do not support + * getUserMedia. + */ + p5.AudioIn.prototype.start = function (successCallback, errorCallback) { + var self = this; + if (this.stream) { + this.stop(); + } + // set the audio source + var audioSource = p5sound.inputSources[self.currentSource]; + var constraints = { + audio: { + sampleRate: p5sound.audiocontext.sampleRate, + echoCancellation: false + } + }; + // if developers determine which source to use + if (p5sound.inputSources[this.currentSource]) { + constraints.audio.deviceId = audioSource.deviceId; + } + window.navigator.mediaDevices.getUserMedia(constraints).then(function (stream) { + self.stream = stream; + self.enabled = true; + // Wrap a MediaStreamSourceNode around the live input + self.mediaStream = p5sound.audiocontext.createMediaStreamSource(stream); + self.mediaStream.connect(self.output); + // only send to the Amplitude reader, so we can see it but not hear it. + self.amplitude.setInput(self.output); + if (successCallback) + successCallback(); + }).catch(function (err) { + if (errorCallback) + errorCallback(err); + else + console.error(err); + }); + }; + /** + * Turn the AudioIn off. If the AudioIn is stopped, it cannot getLevel(). + * If re-starting, the user may be prompted for permission access. + * + * @method stop + */ + p5.AudioIn.prototype.stop = function () { + if (this.stream) { + this.stream.getTracks().forEach(function (track) { + track.stop(); + }); + this.mediaStream.disconnect(); + delete this.mediaStream; + delete this.stream; + } + }; + /** + * Connect to an audio unit. If no parameter is provided, will + * connect to the master output (i.e. your speakers).
+ * + * @method connect + * @param {Object} [unit] An object that accepts audio input, + * such as an FFT + */ + p5.AudioIn.prototype.connect = function (unit) { + if (unit) { + if (unit.hasOwnProperty('input')) { + this.output.connect(unit.input); + } else if (unit.hasOwnProperty('analyser')) { + this.output.connect(unit.analyser); + } else { + this.output.connect(unit); + } + } else { + this.output.connect(p5sound.input); + } + }; + /** + * Disconnect the AudioIn from all audio units. For example, if + * connect() had been called, disconnect() will stop sending + * signal to your speakers.
+ * + * @method disconnect + */ + p5.AudioIn.prototype.disconnect = function () { + if (this.output) { + this.output.disconnect(); + // stay connected to amplitude even if not outputting to p5 + this.output.connect(this.amplitude.input); + } + }; + /** + * Read the Amplitude (volume level) of an AudioIn. The AudioIn + * class contains its own instance of the Amplitude class to help + * make it easy to get a microphone's volume level. Accepts an + * optional smoothing value (0.0 < 1.0). NOTE: AudioIn must + * .start() before using .getLevel().
+ * + * @method getLevel + * @param {Number} [smoothing] Smoothing is 0.0 by default. + * Smooths values based on previous values. + * @return {Number} Volume level (between 0.0 and 1.0) + */ + p5.AudioIn.prototype.getLevel = function (smoothing) { + if (smoothing) { + this.amplitude.smoothing = smoothing; + } + return this.amplitude.getLevel(); + }; + /** + * Set amplitude (volume) of a mic input between 0 and 1.0.
+ * + * @method amp + * @param {Number} vol between 0 and 1.0 + * @param {Number} [time] ramp time (optional) + */ + p5.AudioIn.prototype.amp = function (vol, t) { + if (t) { + var rampTime = t || 0; + var currentVol = this.output.gain.value; + this.output.gain.cancelScheduledValues(p5sound.audiocontext.currentTime); + this.output.gain.setValueAtTime(currentVol, p5sound.audiocontext.currentTime); + this.output.gain.linearRampToValueAtTime(vol, rampTime + p5sound.audiocontext.currentTime); + } else { + this.output.gain.cancelScheduledValues(p5sound.audiocontext.currentTime); + this.output.gain.setValueAtTime(vol, p5sound.audiocontext.currentTime); + } + }; + /** + * Returns a list of available input sources. This is a wrapper + * for and it returns a Promise. + * + * @method getSources + * @param {Function} [successCallback] This callback function handles the sources when they + * have been enumerated. The callback function + * receives the deviceList array as its only argument + * @param {Function} [errorCallback] This optional callback receives the error + * message as its argument. + * @returns {Promise} Returns a Promise that can be used in place of the callbacks, similar + * to the enumerateDevices() method + * @example + *
+ * var audiograb; + * + * function setup(){ + * //new audioIn + * audioGrab = new p5.AudioIn(); + * + * audioGrab.getSources(function(deviceList) { + * //print out the array of available sources + * //set the source to the first item in the deviceList array + * audioGrab.setSource(0); + * }); + * } + *
+ */ + p5.AudioIn.prototype.getSources = function (onSuccess, onError) { + return new Promise(function (resolve, reject) { + window.navigator.mediaDevices.enumerateDevices().then(function (devices) { + p5sound.inputSources = devices.filter(function (device) { + return device.kind === 'audioinput'; + }); + resolve(p5sound.inputSources); + if (onSuccess) { + onSuccess(p5sound.inputSources); + } + }).catch(function (error) { + reject(error); + if (onError) { + onError(error); + } else { + console.error('This browser does not support MediaStreamTrack.getSources()'); + } + }); + }); + }; + /** + * Set the input source. Accepts a number representing a + * position in the array returned by getSources(). + * This is only available in browsers that support + *
navigator.mediaDevices.enumerateDevices().
+ * + * @method setSource + * @param {number} num position of input source in the array + */ + p5.AudioIn.prototype.setSource = function (num) { + if (p5sound.inputSources.length > 0 && num < p5sound.inputSources.length) { + // set the current source + this.currentSource = num; + } else { + console.log('unable to set input source'); + } + // restart stream if currently active + if (this.stream && this.stream.active) { + this.start(); + } + }; + // private method + p5.AudioIn.prototype.dispose = function () { + // remove reference from soundArray + var index = p5sound.soundArray.indexOf(this); + p5sound.soundArray.splice(index, 1); + this.stop(); + if (this.output) { + this.output.disconnect(); + } + if (this.amplitude) { + this.amplitude.disconnect(); + } + delete this.amplitude; + delete this.output; + }; +}(master); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_Negate; +Tone_signal_Negate = function (Tone) { + 'use strict'; + Tone.Negate = function () { + this._multiply = this.input = this.output = new Tone.Multiply(-1); + }; + Tone.extend(Tone.Negate, Tone.SignalBase); + Tone.Negate.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._multiply.dispose(); + this._multiply = null; + return this; + }; + return Tone.Negate; +}(Tone_core_Tone, Tone_signal_Multiply); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_Subtract; +Tone_signal_Subtract = function (Tone) { + 'use strict'; + Tone.Subtract = function (value) { + this.createInsOuts(2, 0); + this._sum = this.input[0] = this.output = new Tone.Gain(); + this._neg = new Tone.Negate(); + this._param = this.input[1] = new Tone.Signal(value); + this._param.chain(this._neg, this._sum); + }; + Tone.extend(Tone.Subtract, Tone.Signal); + Tone.Subtract.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._neg.dispose(); + this._neg = null; + this._sum.disconnect(); + this._sum = null; + this._param.dispose(); + this._param = null; + return this; + }; + return Tone.Subtract; +}(Tone_core_Tone, Tone_signal_Add, Tone_signal_Negate, Tone_signal_Signal); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_GreaterThanZero; +Tone_signal_GreaterThanZero = function (Tone) { + 'use strict'; + Tone.GreaterThanZero = function () { + this._thresh = this.output = new Tone.WaveShaper(function (val) { + if (val <= 0) { + return 0; + } else { + return 1; + } + }, 127); + this._scale = this.input = new Tone.Multiply(10000); + this._scale.connect(this._thresh); + }; + Tone.extend(Tone.GreaterThanZero, Tone.SignalBase); + Tone.GreaterThanZero.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._scale.dispose(); + this._scale = null; + this._thresh.dispose(); + this._thresh = null; + return this; + }; + return Tone.GreaterThanZero; +}(Tone_core_Tone, Tone_signal_Signal, Tone_signal_Multiply); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_GreaterThan; +Tone_signal_GreaterThan = function (Tone) { + 'use strict'; + Tone.GreaterThan = function (value) { + this.createInsOuts(2, 0); + this._param = this.input[0] = new Tone.Subtract(value); + this.input[1] = this._param.input[1]; + this._gtz = this.output = new Tone.GreaterThanZero(); + this._param.connect(this._gtz); + }; + Tone.extend(Tone.GreaterThan, Tone.Signal); + Tone.GreaterThan.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._param.dispose(); + this._param = null; + this._gtz.dispose(); + this._gtz = null; + return this; + }; + return Tone.GreaterThan; +}(Tone_core_Tone, Tone_signal_GreaterThanZero, Tone_signal_Subtract); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_Abs; +Tone_signal_Abs = function (Tone) { + 'use strict'; + Tone.Abs = function () { + this._abs = this.input = this.output = new Tone.WaveShaper(function (val) { + if (val === 0) { + return 0; + } else { + return Math.abs(val); + } + }, 127); + }; + Tone.extend(Tone.Abs, Tone.SignalBase); + Tone.Abs.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._abs.dispose(); + this._abs = null; + return this; + }; + return Tone.Abs; +}(Tone_core_Tone, Tone_signal_WaveShaper); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_Modulo; +Tone_signal_Modulo = function (Tone) { + 'use strict'; + Tone.Modulo = function (modulus) { + this.createInsOuts(1, 0); + this._shaper = new Tone.WaveShaper(Math.pow(2, 16)); + this._multiply = new Tone.Multiply(); + this._subtract = this.output = new Tone.Subtract(); + this._modSignal = new Tone.Signal(modulus); + this.input.fan(this._shaper, this._subtract); + this._modSignal.connect(this._multiply, 0, 0); + this._shaper.connect(this._multiply, 0, 1); + this._multiply.connect(this._subtract, 0, 1); + this._setWaveShaper(modulus); + }; + Tone.extend(Tone.Modulo, Tone.SignalBase); + Tone.Modulo.prototype._setWaveShaper = function (mod) { + this._shaper.setMap(function (val) { + var multiple = Math.floor((val + 0.0001) / mod); + return multiple; + }); + }; + Object.defineProperty(Tone.Modulo.prototype, 'value', { + get: function () { + return this._modSignal.value; + }, + set: function (mod) { + this._modSignal.value = mod; + this._setWaveShaper(mod); + } + }); + Tone.Modulo.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._shaper.dispose(); + this._shaper = null; + this._multiply.dispose(); + this._multiply = null; + this._subtract.dispose(); + this._subtract = null; + this._modSignal.dispose(); + this._modSignal = null; + return this; + }; + return Tone.Modulo; +}(Tone_core_Tone, Tone_signal_WaveShaper, Tone_signal_Multiply); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_Pow; +Tone_signal_Pow = function (Tone) { + 'use strict'; + Tone.Pow = function (exp) { + this._exp = this.defaultArg(exp, 1); + this._expScaler = this.input = this.output = new Tone.WaveShaper(this._expFunc(this._exp), 8192); + }; + Tone.extend(Tone.Pow, Tone.SignalBase); + Object.defineProperty(Tone.Pow.prototype, 'value', { + get: function () { + return this._exp; + }, + set: function (exp) { + this._exp = exp; + this._expScaler.setMap(this._expFunc(this._exp)); + } + }); + Tone.Pow.prototype._expFunc = function (exp) { + return function (val) { + return Math.pow(Math.abs(val), exp); + }; + }; + Tone.Pow.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._expScaler.dispose(); + this._expScaler = null; + return this; + }; + return Tone.Pow; +}(Tone_core_Tone); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_AudioToGain; +Tone_signal_AudioToGain = function (Tone) { + 'use strict'; + Tone.AudioToGain = function () { + this._norm = this.input = this.output = new Tone.WaveShaper(function (x) { + return (x + 1) / 2; + }); + }; + Tone.extend(Tone.AudioToGain, Tone.SignalBase); + Tone.AudioToGain.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._norm.dispose(); + this._norm = null; + return this; + }; + return Tone.AudioToGain; +}(Tone_core_Tone, Tone_signal_WaveShaper); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_Expr; +Tone_signal_Expr = function (Tone) { + 'use strict'; + Tone.Expr = function () { + var expr = this._replacements(Array.prototype.slice.call(arguments)); + var inputCount = this._parseInputs(expr); + this._nodes = []; + this.input = new Array(inputCount); + for (var i = 0; i < inputCount; i++) { + this.input[i] = this.context.createGain(); + } + var tree = this._parseTree(expr); + var result; + try { + result = this._eval(tree); + } catch (e) { + this._disposeNodes(); + throw new Error('Tone.Expr: Could evaluate expression: ' + expr); + } + this.output = result; + }; + Tone.extend(Tone.Expr, Tone.SignalBase); + function applyBinary(Constructor, args, self) { + var op = new Constructor(); + self._eval(args[0]).connect(op, 0, 0); + self._eval(args[1]).connect(op, 0, 1); + return op; + } + function applyUnary(Constructor, args, self) { + var op = new Constructor(); + self._eval(args[0]).connect(op, 0, 0); + return op; + } + function getNumber(arg) { + return arg ? parseFloat(arg) : undefined; + } + function literalNumber(arg) { + return arg && arg.args ? parseFloat(arg.args) : undefined; + } + Tone.Expr._Expressions = { + 'value': { + 'signal': { + regexp: /^\d+\.\d+|^\d+/, + method: function (arg) { + var sig = new Tone.Signal(getNumber(arg)); + return sig; + } + }, + 'input': { + regexp: /^\$\d/, + method: function (arg, self) { + return self.input[getNumber(arg.substr(1))]; + } + } + }, + 'glue': { + '(': { regexp: /^\(/ }, + ')': { regexp: /^\)/ }, + ',': { regexp: /^,/ } + }, + 'func': { + 'abs': { + regexp: /^abs/, + method: applyUnary.bind(this, Tone.Abs) + }, + 'mod': { + regexp: /^mod/, + method: function (args, self) { + var modulus = literalNumber(args[1]); + var op = new Tone.Modulo(modulus); + self._eval(args[0]).connect(op); + return op; + } + }, + 'pow': { + regexp: /^pow/, + method: function (args, self) { + var exp = literalNumber(args[1]); + var op = new Tone.Pow(exp); + self._eval(args[0]).connect(op); + return op; + } + }, + 'a2g': { + regexp: /^a2g/, + method: function (args, self) { + var op = new Tone.AudioToGain(); + self._eval(args[0]).connect(op); + return op; + } + } + }, + 'binary': { + '+': { + regexp: /^\+/, + precedence: 1, + method: applyBinary.bind(this, Tone.Add) + }, + '-': { + regexp: /^\-/, + precedence: 1, + method: function (args, self) { + if (args.length === 1) { + return applyUnary(Tone.Negate, args, self); + } else { + return applyBinary(Tone.Subtract, args, self); + } + } + }, + '*': { + regexp: /^\*/, + precedence: 0, + method: applyBinary.bind(this, Tone.Multiply) + } + }, + 'unary': { + '-': { + regexp: /^\-/, + method: applyUnary.bind(this, Tone.Negate) + }, + '!': { + regexp: /^\!/, + method: applyUnary.bind(this, Tone.NOT) + } + } + }; + Tone.Expr.prototype._parseInputs = function (expr) { + var inputArray = expr.match(/\$\d/g); + var inputMax = 0; + if (inputArray !== null) { + for (var i = 0; i < inputArray.length; i++) { + var inputNum = parseInt(inputArray[i].substr(1)) + 1; + inputMax = Math.max(inputMax, inputNum); + } + } + return inputMax; + }; + Tone.Expr.prototype._replacements = function (args) { + var expr = args.shift(); + for (var i = 0; i < args.length; i++) { + expr = expr.replace(/\%/i, args[i]); + } + return expr; + }; + Tone.Expr.prototype._tokenize = function (expr) { + var position = -1; + var tokens = []; + while (expr.length > 0) { + expr = expr.trim(); + var token = getNextToken(expr); + tokens.push(token); + expr = expr.substr(token.value.length); + } + function getNextToken(expr) { + for (var type in Tone.Expr._Expressions) { + var group = Tone.Expr._Expressions[type]; + for (var opName in group) { + var op = group[opName]; + var reg = op.regexp; + var match = expr.match(reg); + if (match !== null) { + return { + type: type, + value: match[0], + method: op.method + }; + } + } + } + throw new SyntaxError('Tone.Expr: Unexpected token ' + expr); + } + return { + next: function () { + return tokens[++position]; + }, + peek: function () { + return tokens[position + 1]; + } + }; + }; + Tone.Expr.prototype._parseTree = function (expr) { + var lexer = this._tokenize(expr); + var isUndef = this.isUndef.bind(this); + function matchSyntax(token, syn) { + return !isUndef(token) && token.type === 'glue' && token.value === syn; + } + function matchGroup(token, groupName, prec) { + var ret = false; + var group = Tone.Expr._Expressions[groupName]; + if (!isUndef(token)) { + for (var opName in group) { + var op = group[opName]; + if (op.regexp.test(token.value)) { + if (!isUndef(prec)) { + if (op.precedence === prec) { + return true; + } + } else { + return true; + } + } + } + } + return ret; + } + function parseExpression(precedence) { + if (isUndef(precedence)) { + precedence = 5; + } + var expr; + if (precedence < 0) { + expr = parseUnary(); + } else { + expr = parseExpression(precedence - 1); + } + var token = lexer.peek(); + while (matchGroup(token, 'binary', precedence)) { + token = lexer.next(); + expr = { + operator: token.value, + method: token.method, + args: [ + expr, + parseExpression(precedence - 1) + ] + }; + token = lexer.peek(); + } + return expr; + } + function parseUnary() { + var token, expr; + token = lexer.peek(); + if (matchGroup(token, 'unary')) { + token = lexer.next(); + expr = parseUnary(); + return { + operator: token.value, + method: token.method, + args: [expr] + }; + } + return parsePrimary(); + } + function parsePrimary() { + var token, expr; + token = lexer.peek(); + if (isUndef(token)) { + throw new SyntaxError('Tone.Expr: Unexpected termination of expression'); + } + if (token.type === 'func') { + token = lexer.next(); + return parseFunctionCall(token); + } + if (token.type === 'value') { + token = lexer.next(); + return { + method: token.method, + args: token.value + }; + } + if (matchSyntax(token, '(')) { + lexer.next(); + expr = parseExpression(); + token = lexer.next(); + if (!matchSyntax(token, ')')) { + throw new SyntaxError('Expected )'); + } + return expr; + } + throw new SyntaxError('Tone.Expr: Parse error, cannot process token ' + token.value); + } + function parseFunctionCall(func) { + var token, args = []; + token = lexer.next(); + if (!matchSyntax(token, '(')) { + throw new SyntaxError('Tone.Expr: Expected ( in a function call "' + func.value + '"'); + } + token = lexer.peek(); + if (!matchSyntax(token, ')')) { + args = parseArgumentList(); + } + token = lexer.next(); + if (!matchSyntax(token, ')')) { + throw new SyntaxError('Tone.Expr: Expected ) in a function call "' + func.value + '"'); + } + return { + method: func.method, + args: args, + name: name + }; + } + function parseArgumentList() { + var token, expr, args = []; + while (true) { + expr = parseExpression(); + if (isUndef(expr)) { + break; + } + args.push(expr); + token = lexer.peek(); + if (!matchSyntax(token, ',')) { + break; + } + lexer.next(); + } + return args; + } + return parseExpression(); + }; + Tone.Expr.prototype._eval = function (tree) { + if (!this.isUndef(tree)) { + var node = tree.method(tree.args, this); + this._nodes.push(node); + return node; + } + }; + Tone.Expr.prototype._disposeNodes = function () { + for (var i = 0; i < this._nodes.length; i++) { + var node = this._nodes[i]; + if (this.isFunction(node.dispose)) { + node.dispose(); + } else if (this.isFunction(node.disconnect)) { + node.disconnect(); + } + node = null; + this._nodes[i] = null; + } + this._nodes = null; + }; + Tone.Expr.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._disposeNodes(); + }; + return Tone.Expr; +}(Tone_core_Tone, Tone_signal_Add, Tone_signal_Subtract, Tone_signal_Multiply, Tone_signal_GreaterThan, Tone_signal_GreaterThanZero, Tone_signal_Abs, Tone_signal_Negate, Tone_signal_Modulo, Tone_signal_Pow); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_signal_EqualPowerGain; +Tone_signal_EqualPowerGain = function (Tone) { + 'use strict'; + Tone.EqualPowerGain = function () { + this._eqPower = this.input = this.output = new Tone.WaveShaper(function (val) { + if (Math.abs(val) < 0.001) { + return 0; + } else { + return this.equalPowerScale(val); + } + }.bind(this), 4096); + }; + Tone.extend(Tone.EqualPowerGain, Tone.SignalBase); + Tone.EqualPowerGain.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._eqPower.dispose(); + this._eqPower = null; + return this; + }; + return Tone.EqualPowerGain; +}(Tone_core_Tone); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_component_CrossFade; +Tone_component_CrossFade = function (Tone) { + 'use strict'; + Tone.CrossFade = function (initialFade) { + this.createInsOuts(2, 1); + this.a = this.input[0] = new Tone.Gain(); + this.b = this.input[1] = new Tone.Gain(); + this.fade = new Tone.Signal(this.defaultArg(initialFade, 0.5), Tone.Type.NormalRange); + this._equalPowerA = new Tone.EqualPowerGain(); + this._equalPowerB = new Tone.EqualPowerGain(); + this._invert = new Tone.Expr('1 - $0'); + this.a.connect(this.output); + this.b.connect(this.output); + this.fade.chain(this._equalPowerB, this.b.gain); + this.fade.chain(this._invert, this._equalPowerA, this.a.gain); + this._readOnly('fade'); + }; + Tone.extend(Tone.CrossFade); + Tone.CrossFade.prototype.dispose = function () { + Tone.prototype.dispose.call(this); + this._writable('fade'); + this._equalPowerA.dispose(); + this._equalPowerA = null; + this._equalPowerB.dispose(); + this._equalPowerB = null; + this.fade.dispose(); + this.fade = null; + this._invert.dispose(); + this._invert = null; + this.a.dispose(); + this.a = null; + this.b.dispose(); + this.b = null; + return this; + }; + return Tone.CrossFade; +}(Tone_core_Tone, Tone_signal_Signal, Tone_signal_Expr, Tone_signal_EqualPowerGain); +var effect; +'use strict'; +effect = function () { + var p5sound = master; + var CrossFade = Tone_component_CrossFade; + /** + * Effect is a base class for audio effects in p5.
+ * This module handles the nodes and methods that are + * common and useful for current and future effects. + * + * + * This class is extended by p5.Distortion, + * p5.Compressor, + * p5.Delay, + * p5.Filter, + * p5.Reverb. + * + * @class p5.Effect + * @constructor + * + * @param {Object} [ac] Reference to the audio context of the p5 object + * @param {AudioNode} [input] Gain Node effect wrapper + * @param {AudioNode} [output] Gain Node effect wrapper + * @param {Object} [_drywet] Tone.JS CrossFade node (defaults to value: 1) + * @param {AudioNode} [wet] Effects that extend this class should connect + * to the wet signal to this gain node, so that dry and wet + * signals are mixed properly. + */ + p5.Effect = function () { + this.ac = p5sound.audiocontext; + this.input = this.ac.createGain(); + this.output = this.ac.createGain(); + /** + * The p5.Effect class is built + * using Tone.js CrossFade + * @private + */ + this._drywet = new CrossFade(1); + /** + * In classes that extend + * p5.Effect, connect effect nodes + * to the wet parameter + */ + this.wet = this.ac.createGain(); + this.input.connect(this._drywet.a); + this.wet.connect(this._drywet.b); + this._drywet.connect(this.output); + this.connect(); + //Add to the soundArray + p5sound.soundArray.push(this); + }; + /** + * Set the output volume of the filter. + * + * @method amp + * @param {Number} [vol] amplitude between 0 and 1.0 + * @param {Number} [rampTime] create a fade that lasts until rampTime + * @param {Number} [tFromNow] schedule this event to happen in tFromNow seconds + */ + p5.Effect.prototype.amp = function (vol, rampTime, tFromNow) { + var rampTime = rampTime || 0; + var tFromNow = tFromNow || 0; + var now = p5sound.audiocontext.currentTime; + var currentVol = this.output.gain.value; + this.output.gain.cancelScheduledValues(now); + this.output.gain.linearRampToValueAtTime(currentVol, now + tFromNow + 0.001); + this.output.gain.linearRampToValueAtTime(vol, now + tFromNow + rampTime + 0.001); + }; + /** + * Link effects together in a chain + * Example usage: filter.chain(reverb, delay, panner); + * May be used with an open-ended number of arguments + * + * @method chain + * @param {Object} [arguments] Chain together multiple sound objects + */ + p5.Effect.prototype.chain = function () { + if (arguments.length > 0) { + this.connect(arguments[0]); + for (var i = 1; i < arguments.length; i += 1) { + arguments[i - 1].connect(arguments[i]); + } + } + return this; + }; + /** + * Adjust the dry/wet value. + * + * @method drywet + * @param {Number} [fade] The desired drywet value (0 - 1.0) + */ + p5.Effect.prototype.drywet = function (fade) { + if (typeof fade !== 'undefined') { + this._drywet.fade.value = fade; + } + return this._drywet.fade.value; + }; + /** + * Send output to a p5.js-sound, Web Audio Node, or use signal to + * control an AudioParam + * + * @method connect + * @param {Object} unit + */ + p5.Effect.prototype.connect = function (unit) { + var u = unit || p5.soundOut.input; + this.output.connect(u.input ? u.input : u); + }; + /** + * Disconnect all output. + * + * @method disconnect + */ + p5.Effect.prototype.disconnect = function () { + if (this.output) { + this.output.disconnect(); + } + }; + p5.Effect.prototype.dispose = function () { + // remove refernce form soundArray + var index = p5sound.soundArray.indexOf(this); + p5sound.soundArray.splice(index, 1); + if (this.input) { + this.input.disconnect(); + delete this.input; + } + if (this.output) { + this.output.disconnect(); + delete this.output; + } + if (this._drywet) { + this._drywet.disconnect(); + delete this._drywet; + } + if (this.wet) { + this.wet.disconnect(); + delete this.wet; + } + this.ac = undefined; + }; + return p5.Effect; +}(master, Tone_component_CrossFade); +var filter; +'use strict'; +filter = function () { + var p5sound = master; + var Effect = effect; + /** + *

A p5.Filter uses a Web Audio Biquad Filter to filter + * the frequency response of an input source. Subclasses + * include:

+ * * p5.LowPass: + * Allows frequencies below the cutoff frequency to pass through, + * and attenuates frequencies above the cutoff.
+ * * p5.HighPass: + * The opposite of a lowpass filter.
+ * * p5.BandPass: + * Allows a range of frequencies to pass through and attenuates + * the frequencies below and above this frequency range.
+ * + * The .res() method controls either width of the + * bandpass, or resonance of the low/highpass cutoff frequency. + * + * This class extends p5.Effect. + * Methods amp(), chain(), + * drywet(), connect(), and + * disconnect() are available. + * + * @class p5.Filter + * @extends p5.Effect + * @constructor + * @param {String} [type] 'lowpass' (default), 'highpass', 'bandpass' + * @example + *
+ * var fft, noise, filter; + * + * function setup() { + * fill(255, 40, 255); + * + * filter = new p5.BandPass(); + * + * noise = new p5.Noise(); + * // disconnect unfiltered noise, + * // and connect to filter + * noise.disconnect(); + * noise.connect(filter); + * noise.start(); + * + * fft = new p5.FFT(); + * } + * + * function draw() { + * background(30); + * + * // set the BandPass frequency based on mouseX + * var freq = map(mouseX, 0, width, 20, 10000); + * filter.freq(freq); + * // give the filter a narrow band (lower res = wider bandpass) + * filter.res(50); + * + * // draw filtered spectrum + * var spectrum = fft.analyze(); + * noStroke(); + * for (var i = 0; i < spectrum.length; i++) { + * var x = map(i, 0, spectrum.length, 0, width); + * var h = -height + map(spectrum[i], 0, 255, height, 0); + * rect(x, height, width/spectrum.length, h); + * } + * + * isMouseOverCanvas(); + * } + * + * function isMouseOverCanvas() { + * var mX = mouseX, mY = mouseY; + * if (mX > 0 && mX < width && mY < height && mY > 0) { + * noise.amp(0.5, 0.2); + * } else { + * noise.amp(0, 0.2); + * } + * } + *
+ */ + //constructor with inheritance + p5.Filter = function (type) { + Effect.call(this); + //add extend Effect by adding a Biquad Filter + /** + * The p5.Filter is built with a + * + * Web Audio BiquadFilter Node. + * + * @property {DelayNode} biquadFilter + */ + this.biquad = this.ac.createBiquadFilter(); + this.input.connect(this.biquad); + this.biquad.connect(this.wet); + if (type) { + this.setType(type); + } + //Properties useful for the toggle method. + this._on = true; + this._untoggledType = this.biquad.type; + }; + p5.Filter.prototype = Object.create(Effect.prototype); + /** + * Filter an audio signal according to a set + * of filter parameters. + * + * @method process + * @param {Object} Signal An object that outputs audio + * @param {Number} [freq] Frequency in Hz, from 10 to 22050 + * @param {Number} [res] Resonance/Width of the filter frequency + * from 0.001 to 1000 + */ + p5.Filter.prototype.process = function (src, freq, res, time) { + src.connect(this.input); + this.set(freq, res, time); + }; + /** + * Set the frequency and the resonance of the filter. + * + * @method set + * @param {Number} [freq] Frequency in Hz, from 10 to 22050 + * @param {Number} [res] Resonance (Q) from 0.001 to 1000 + * @param {Number} [timeFromNow] schedule this event to happen + * seconds from now + */ + p5.Filter.prototype.set = function (freq, res, time) { + if (freq) { + this.freq(freq, time); + } + if (res) { + this.res(res, time); + } + }; + /** + * Set the filter frequency, in Hz, from 10 to 22050 (the range of + * human hearing, although in reality most people hear in a narrower + * range). + * + * @method freq + * @param {Number} freq Filter Frequency + * @param {Number} [timeFromNow] schedule this event to happen + * seconds from now + * @return {Number} value Returns the current frequency value + */ + p5.Filter.prototype.freq = function (freq, time) { + var t = time || 0; + if (freq <= 0) { + freq = 1; + } + if (typeof freq === 'number') { + this.biquad.frequency.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.biquad.frequency.exponentialRampToValueAtTime(freq, this.ac.currentTime + 0.02 + t); + } else if (freq) { + freq.connect(this.biquad.frequency); + } + return this.biquad.frequency.value; + }; + /** + * Controls either width of a bandpass frequency, + * or the resonance of a low/highpass cutoff frequency. + * + * @method res + * @param {Number} res Resonance/Width of filter freq + * from 0.001 to 1000 + * @param {Number} [timeFromNow] schedule this event to happen + * seconds from now + * @return {Number} value Returns the current res value + */ + p5.Filter.prototype.res = function (res, time) { + var t = time || 0; + if (typeof res === 'number') { + this.biquad.Q.value = res; + this.biquad.Q.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.biquad.Q.linearRampToValueAtTime(res, this.ac.currentTime + 0.02 + t); + } else if (res) { + res.connect(this.biquad.Q); + } + return this.biquad.Q.value; + }; + /** + * Controls the gain attribute of a Biquad Filter. + * This is distinctly different from .amp() which is inherited from p5.Effect + * .amp() controls the volume via the output gain node + * p5.Filter.gain() controls the gain parameter of a Biquad Filter node. + * + * @method gain + * @param {Number} gain + * @return {Number} Returns the current or updated gain value + */ + p5.Filter.prototype.gain = function (gain, time) { + var t = time || 0; + if (typeof gain === 'number') { + this.biquad.gain.value = gain; + this.biquad.gain.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.biquad.gain.linearRampToValueAtTime(gain, this.ac.currentTime + 0.02 + t); + } else if (gain) { + gain.connect(this.biquad.gain); + } + return this.biquad.gain.value; + }; + /** + * Toggle function. Switches between the specified type and allpass + * + * @method toggle + * @return {boolean} [Toggle value] + */ + p5.Filter.prototype.toggle = function () { + this._on = !this._on; + if (this._on === true) { + this.biquad.type = this._untoggledType; + } else if (this._on === false) { + this.biquad.type = 'allpass'; + } + return this._on; + }; + /** + * Set the type of a p5.Filter. Possible types include: + * "lowpass" (default), "highpass", "bandpass", + * "lowshelf", "highshelf", "peaking", "notch", + * "allpass". + * + * @method setType + * @param {String} t + */ + p5.Filter.prototype.setType = function (t) { + this.biquad.type = t; + this._untoggledType = this.biquad.type; + }; + p5.Filter.prototype.dispose = function () { + // remove reference from soundArray + Effect.prototype.dispose.apply(this); + if (this.biquad) { + this.biquad.disconnect(); + delete this.biquad; + } + }; + /** + * Constructor: new p5.LowPass() Filter. + * This is the same as creating a p5.Filter and then calling + * its method setType('lowpass'). + * See p5.Filter for methods. + * + * @class p5.LowPass + * @constructor + * @extends p5.Filter + */ + p5.LowPass = function () { + p5.Filter.call(this, 'lowpass'); + }; + p5.LowPass.prototype = Object.create(p5.Filter.prototype); + /** + * Constructor: new p5.HighPass() Filter. + * This is the same as creating a p5.Filter and then calling + * its method setType('highpass'). + * See p5.Filter for methods. + * + * @class p5.HighPass + * @constructor + * @extends p5.Filter + */ + p5.HighPass = function () { + p5.Filter.call(this, 'highpass'); + }; + p5.HighPass.prototype = Object.create(p5.Filter.prototype); + /** + * Constructor: new p5.BandPass() Filter. + * This is the same as creating a p5.Filter and then calling + * its method setType('bandpass'). + * See p5.Filter for methods. + * + * @class p5.BandPass + * @constructor + * @extends p5.Filter + */ + p5.BandPass = function () { + p5.Filter.call(this, 'bandpass'); + }; + p5.BandPass.prototype = Object.create(p5.Filter.prototype); + return p5.Filter; +}(master, effect); +var src_eqFilter; +'use strict'; +src_eqFilter = function () { + var Filter = filter; + var p5sound = master; + /** + * EQFilter extends p5.Filter with constraints + * necessary for the p5.EQ + * + * @private + */ + var EQFilter = function (freq, res) { + Filter.call(this, 'peaking'); + this.disconnect(); + this.set(freq, res); + this.biquad.gain.value = 0; + delete this.input; + delete this.output; + delete this._drywet; + delete this.wet; + }; + EQFilter.prototype = Object.create(Filter.prototype); + EQFilter.prototype.amp = function () { + console.warn('`amp()` is not available for p5.EQ bands. Use `.gain()`'); + }; + EQFilter.prototype.drywet = function () { + console.warn('`drywet()` is not available for p5.EQ bands.'); + }; + EQFilter.prototype.connect = function (unit) { + var u = unit || p5.soundOut.input; + if (this.biquad) { + this.biquad.connect(u.input ? u.input : u); + } else { + this.output.connect(u.input ? u.input : u); + } + }; + EQFilter.prototype.disconnect = function () { + if (this.biquad) { + this.biquad.disconnect(); + } + }; + EQFilter.prototype.dispose = function () { + // remove reference form soundArray + var index = p5sound.soundArray.indexOf(this); + p5sound.soundArray.splice(index, 1); + this.disconnect(); + delete this.biquad; + }; + return EQFilter; +}(filter, master); +var eq; +'use strict'; +eq = function () { + var Effect = effect; + var EQFilter = src_eqFilter; + /** + * p5.EQ is an audio effect that performs the function of a multiband + * audio equalizer. Equalization is used to adjust the balance of + * frequency compoenents of an audio signal. This process is commonly used + * in sound production and recording to change the waveform before it reaches + * a sound output device. EQ can also be used as an audio effect to create + * interesting distortions by filtering out parts of the spectrum. p5.EQ is + * built using a chain of Web Audio Biquad Filter Nodes and can be + * instantiated with 3 or 8 bands. Bands can be added or removed from + * the EQ by directly modifying p5.EQ.bands (the array that stores filters). + * + * This class extends p5.Effect. + * Methods amp(), chain(), + * drywet(), connect(), and + * disconnect() are available. + * + * @class p5.EQ + * @constructor + * @extends p5.Effect + * @param {Number} [_eqsize] Constructor will accept 3 or 8, defaults to 3 + * @return {Object} p5.EQ object + * + * @example + *
+ * var eq; + * var band_names; + * var band_index; + * + * var soundFile, play; + * + * function preload() { + * soundFormats('mp3', 'ogg'); + * soundFile = loadSound('assets/beat'); + * } + * + * function setup() { + * eq = new p5.EQ(3); + * soundFile.disconnect(); + * eq.process(soundFile); + * + * band_names = ['lows','mids','highs']; + * band_index = 0; + * play = false; + * textAlign(CENTER); + * } + * + * function draw() { + * background(30); + * noStroke(); + * fill(255); + * text('click to kill',50,25); + * + * fill(255, 40, 255); + * textSize(26); + * text(band_names[band_index],50,55); + * + * fill(255); + * textSize(9); + * text('space = play/pause',50,80); + * } + * + * //If mouse is over canvas, cycle to the next band and kill the frequency + * function mouseClicked() { + * for (var i = 0; i < eq.bands.length; i++) { + * eq.bands[i].gain(0); + * } + * eq.bands[band_index].gain(-40); + * if (mouseX > 0 && mouseX < width && mouseY < height && mouseY > 0) { + * band_index === 2 ? band_index = 0 : band_index++; + * } + * } + * + * //use space bar to trigger play / pause + * function keyPressed() { + * if (key===' ') { + * play = !play + * play ? soundFile.loop() : soundFile.pause(); + * } + * } + *
+ */ + p5.EQ = function (_eqsize) { + Effect.call(this); + //p5.EQ can be of size (3) or (8), defaults to 3 + _eqsize = _eqsize === 3 || _eqsize === 8 ? _eqsize : 3; + var factor; + _eqsize === 3 ? factor = Math.pow(2, 3) : factor = 2; + /** + * The p5.EQ is built with abstracted p5.Filter objects. + * To modify any bands, use methods of the + * p5.Filter API, especially `gain` and `freq`. + * Bands are stored in an array, with indices 0 - 3, or 0 - 7 + * @property {Array} bands + * + */ + this.bands = []; + var freq, res; + for (var i = 0; i < _eqsize; i++) { + if (i === _eqsize - 1) { + freq = 21000; + res = 0.01; + } else if (i === 0) { + freq = 100; + res = 0.1; + } else if (i === 1) { + freq = _eqsize === 3 ? 360 * factor : 360; + res = 1; + } else { + freq = this.bands[i - 1].freq() * factor; + res = 1; + } + this.bands[i] = this._newBand(freq, res); + if (i > 0) { + this.bands[i - 1].connect(this.bands[i].biquad); + } else { + this.input.connect(this.bands[i].biquad); + } + } + this.bands[_eqsize - 1].connect(this.output); + }; + p5.EQ.prototype = Object.create(Effect.prototype); + /** + * Process an input by connecting it to the EQ + * @method process + * @param {Object} src Audio source + */ + p5.EQ.prototype.process = function (src) { + src.connect(this.input); + }; + // /** + // * Set the frequency and gain of each band in the EQ. This method should be + // * called with 3 or 8 frequency and gain pairs, depending on the size of the EQ. + // * ex. eq.set(freq0, gain0, freq1, gain1, freq2, gain2); + // * + // * @method set + // * @param {Number} [freq0] Frequency value for band with index 0 + // * @param {Number} [gain0] Gain value for band with index 0 + // * @param {Number} [freq1] Frequency value for band with index 1 + // * @param {Number} [gain1] Gain value for band with index 1 + // * @param {Number} [freq2] Frequency value for band with index 2 + // * @param {Number} [gain2] Gain value for band with index 2 + // * @param {Number} [freq3] Frequency value for band with index 3 + // * @param {Number} [gain3] Gain value for band with index 3 + // * @param {Number} [freq4] Frequency value for band with index 4 + // * @param {Number} [gain4] Gain value for band with index 4 + // * @param {Number} [freq5] Frequency value for band with index 5 + // * @param {Number} [gain5] Gain value for band with index 5 + // * @param {Number} [freq6] Frequency value for band with index 6 + // * @param {Number} [gain6] Gain value for band with index 6 + // * @param {Number} [freq7] Frequency value for band with index 7 + // * @param {Number} [gain7] Gain value for band with index 7 + // */ + p5.EQ.prototype.set = function () { + if (arguments.length === this.bands.length * 2) { + for (var i = 0; i < arguments.length; i += 2) { + this.bands[i / 2].freq(arguments[i]); + this.bands[i / 2].gain(arguments[i + 1]); + } + } else { + console.error('Argument mismatch. .set() should be called with ' + this.bands.length * 2 + ' arguments. (one frequency and gain value pair for each band of the eq)'); + } + }; + /** + * Add a new band. Creates a p5.Filter and strips away everything but + * the raw biquad filter. This method returns an abstracted p5.Filter, + * which can be added to p5.EQ.bands, in order to create new EQ bands. + * @private + * @method _newBand + * @param {Number} freq + * @param {Number} res + * @return {Object} Abstracted Filter + */ + p5.EQ.prototype._newBand = function (freq, res) { + return new EQFilter(freq, res); + }; + p5.EQ.prototype.dispose = function () { + Effect.prototype.dispose.apply(this); + if (this.bands) { + while (this.bands.length > 0) { + delete this.bands.pop().dispose(); + } + delete this.bands; + } + }; + return p5.EQ; +}(effect, src_eqFilter); +var panner3d; +'use strict'; +panner3d = function () { + var p5sound = master; + var Effect = effect; + /** + * Panner3D is based on the + * Web Audio Spatial Panner Node. + * This panner is a spatial processing node that allows audio to be positioned + * and oriented in 3D space. + * + * The position is relative to an + * Audio Context Listener, which can be accessed + * by p5.soundOut.audiocontext.listener + * + * + * @class p5.Panner3D + * @constructor + */ + p5.Panner3D = function () { + Effect.call(this); + /** + * + * Web Audio Spatial Panner Node + * + * Properties include + * - panningModel: "equal power" or "HRTF" + * - distanceModel: "linear", "inverse", or "exponential" + * + * @property {AudioNode} panner + * + */ + this.panner = this.ac.createPanner(); + this.panner.panningModel = 'HRTF'; + this.panner.distanceModel = 'linear'; + this.panner.connect(this.output); + this.input.connect(this.panner); + }; + p5.Panner3D.prototype = Object.create(Effect.prototype); + /** + * Connect an audio sorce + * + * @method process + * @param {Object} src Input source + */ + p5.Panner3D.prototype.process = function (src) { + src.connect(this.input); + }; + /** + * Set the X,Y,Z position of the Panner + * @method set + * @param {Number} xVal + * @param {Number} yVal + * @param {Number} zVal + * @param {Number} time + * @return {Array} Updated x, y, z values as an array + */ + p5.Panner3D.prototype.set = function (xVal, yVal, zVal, time) { + this.positionX(xVal, time); + this.positionY(yVal, time); + this.positionZ(zVal, time); + return [ + this.panner.positionX.value, + this.panner.positionY.value, + this.panner.positionZ.value + ]; + }; + /** + * Getter and setter methods for position coordinates + * @method positionX + * @return {Number} updated coordinate value + */ + /** + * Getter and setter methods for position coordinates + * @method positionY + * @return {Number} updated coordinate value + */ + /** + * Getter and setter methods for position coordinates + * @method positionZ + * @return {Number} updated coordinate value + */ + p5.Panner3D.prototype.positionX = function (xVal, time) { + var t = time || 0; + if (typeof xVal === 'number') { + this.panner.positionX.value = xVal; + this.panner.positionX.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.panner.positionX.linearRampToValueAtTime(xVal, this.ac.currentTime + 0.02 + t); + } else if (xVal) { + xVal.connect(this.panner.positionX); + } + return this.panner.positionX.value; + }; + p5.Panner3D.prototype.positionY = function (yVal, time) { + var t = time || 0; + if (typeof yVal === 'number') { + this.panner.positionY.value = yVal; + this.panner.positionY.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.panner.positionY.linearRampToValueAtTime(yVal, this.ac.currentTime + 0.02 + t); + } else if (yVal) { + yVal.connect(this.panner.positionY); + } + return this.panner.positionY.value; + }; + p5.Panner3D.prototype.positionZ = function (zVal, time) { + var t = time || 0; + if (typeof zVal === 'number') { + this.panner.positionZ.value = zVal; + this.panner.positionZ.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.panner.positionZ.linearRampToValueAtTime(zVal, this.ac.currentTime + 0.02 + t); + } else if (zVal) { + zVal.connect(this.panner.positionZ); + } + return this.panner.positionZ.value; + }; + /** + * Set the X,Y,Z position of the Panner + * @method orient + * @param {Number} xVal + * @param {Number} yVal + * @param {Number} zVal + * @param {Number} time + * @return {Array} Updated x, y, z values as an array + */ + p5.Panner3D.prototype.orient = function (xVal, yVal, zVal, time) { + this.orientX(xVal, time); + this.orientY(yVal, time); + this.orientZ(zVal, time); + return [ + this.panner.orientationX.value, + this.panner.orientationY.value, + this.panner.orientationZ.value + ]; + }; + /** + * Getter and setter methods for orient coordinates + * @method orientX + * @return {Number} updated coordinate value + */ + /** + * Getter and setter methods for orient coordinates + * @method orientY + * @return {Number} updated coordinate value + */ + /** + * Getter and setter methods for orient coordinates + * @method orientZ + * @return {Number} updated coordinate value + */ + p5.Panner3D.prototype.orientX = function (xVal, time) { + var t = time || 0; + if (typeof xVal === 'number') { + this.panner.orientationX.value = xVal; + this.panner.orientationX.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.panner.orientationX.linearRampToValueAtTime(xVal, this.ac.currentTime + 0.02 + t); + } else if (xVal) { + xVal.connect(this.panner.orientationX); + } + return this.panner.orientationX.value; + }; + p5.Panner3D.prototype.orientY = function (yVal, time) { + var t = time || 0; + if (typeof yVal === 'number') { + this.panner.orientationY.value = yVal; + this.panner.orientationY.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.panner.orientationY.linearRampToValueAtTime(yVal, this.ac.currentTime + 0.02 + t); + } else if (yVal) { + yVal.connect(this.panner.orientationY); + } + return this.panner.orientationY.value; + }; + p5.Panner3D.prototype.orientZ = function (zVal, time) { + var t = time || 0; + if (typeof zVal === 'number') { + this.panner.orientationZ.value = zVal; + this.panner.orientationZ.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.panner.orientationZ.linearRampToValueAtTime(zVal, this.ac.currentTime + 0.02 + t); + } else if (zVal) { + zVal.connect(this.panner.orientationZ); + } + return this.panner.orientationZ.value; + }; + /** + * Set the rolloff factor and max distance + * @method setFalloff + * @param {Number} [maxDistance] + * @param {Number} [rolloffFactor] + */ + p5.Panner3D.prototype.setFalloff = function (maxDistance, rolloffFactor) { + this.maxDist(maxDistance); + this.rolloff(rolloffFactor); + }; + /** + * Maxium distance between the source and the listener + * @method maxDist + * @param {Number} maxDistance + * @return {Number} updated value + */ + p5.Panner3D.prototype.maxDist = function (maxDistance) { + if (typeof maxDistance === 'number') { + this.panner.maxDistance = maxDistance; + } + return this.panner.maxDistance; + }; + /** + * How quickly the volume is reduced as the source moves away from the listener + * @method rollof + * @param {Number} rolloffFactor + * @return {Number} updated value + */ + p5.Panner3D.prototype.rolloff = function (rolloffFactor) { + if (typeof rolloffFactor === 'number') { + this.panner.rolloffFactor = rolloffFactor; + } + return this.panner.rolloffFactor; + }; + p5.Panner3D.dispose = function () { + Effect.prototype.dispose.apply(this); + if (this.panner) { + this.panner.disconnect(); + delete this.panner; + } + }; + return p5.Panner3D; +}(master, effect); +var listener3d; +'use strict'; +listener3d = function () { + var p5sound = master; + var Effect = effect; + // /** + // * listener is a class that can construct both a Spatial Panner + // * and a Spatial Listener. The panner is based on the + // * Web Audio Spatial Panner Node + // * https://www.w3.org/TR/webaudio/#the-listenernode-interface + // * This panner is a spatial processing node that allows audio to be positioned + // * and oriented in 3D space. + // * + // * The Listener modifies the properties of the Audio Context Listener. + // * Both objects types use the same methods. The default is a spatial panner. + // * + // * p5.Panner3D - Constructs a Spatial Panner
+ // * p5.Listener3D - Constructs a Spatial Listener
+ // * + // * @class listener + // * @constructor + // * @return {Object} p5.Listener3D Object + // * + // * @param {Web Audio Node} listener Web Audio Spatial Panning Node + // * @param {AudioParam} listener.panningModel "equal power" or "HRTF" + // * @param {AudioParam} listener.distanceModel "linear", "inverse", or "exponential" + // * @param {String} [type] [Specify construction of a spatial panner or listener] + // */ + p5.Listener3D = function (type) { + this.ac = p5sound.audiocontext; + this.listener = this.ac.listener; + }; + // /** + // * Connect an audio sorce + // * @param {Object} src Input source + // */ + p5.Listener3D.prototype.process = function (src) { + src.connect(this.input); + }; + // /** + // * Set the X,Y,Z position of the Panner + // * @param {[Number]} xVal + // * @param {[Number]} yVal + // * @param {[Number]} zVal + // * @param {[Number]} time + // * @return {[Array]} [Updated x, y, z values as an array] + // */ + p5.Listener3D.prototype.position = function (xVal, yVal, zVal, time) { + this.positionX(xVal, time); + this.positionY(yVal, time); + this.positionZ(zVal, time); + return [ + this.listener.positionX.value, + this.listener.positionY.value, + this.listener.positionZ.value + ]; + }; + // /** + // * Getter and setter methods for position coordinates + // * @return {Number} [updated coordinate value] + // */ + p5.Listener3D.prototype.positionX = function (xVal, time) { + var t = time || 0; + if (typeof xVal === 'number') { + this.listener.positionX.value = xVal; + this.listener.positionX.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.listener.positionX.linearRampToValueAtTime(xVal, this.ac.currentTime + 0.02 + t); + } else if (xVal) { + xVal.connect(this.listener.positionX); + } + return this.listener.positionX.value; + }; + p5.Listener3D.prototype.positionY = function (yVal, time) { + var t = time || 0; + if (typeof yVal === 'number') { + this.listener.positionY.value = yVal; + this.listener.positionY.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.listener.positionY.linearRampToValueAtTime(yVal, this.ac.currentTime + 0.02 + t); + } else if (yVal) { + yVal.connect(this.listener.positionY); + } + return this.listener.positionY.value; + }; + p5.Listener3D.prototype.positionZ = function (zVal, time) { + var t = time || 0; + if (typeof zVal === 'number') { + this.listener.positionZ.value = zVal; + this.listener.positionZ.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.listener.positionZ.linearRampToValueAtTime(zVal, this.ac.currentTime + 0.02 + t); + } else if (zVal) { + zVal.connect(this.listener.positionZ); + } + return this.listener.positionZ.value; + }; + // cannot define method when class definition is commented + // /** + // * Overrides the listener orient() method because Listener has slightly + // * different params. In human terms, Forward vectors are the direction the + // * nose is pointing. Up vectors are the direction of the top of the head. + // * + // * @method orient + // * @param {Number} xValF Forward vector X direction + // * @param {Number} yValF Forward vector Y direction + // * @param {Number} zValF Forward vector Z direction + // * @param {Number} xValU Up vector X direction + // * @param {Number} yValU Up vector Y direction + // * @param {Number} zValU Up vector Z direction + // * @param {Number} time + // * @return {Array} All orienation params + // */ + p5.Listener3D.prototype.orient = function (xValF, yValF, zValF, xValU, yValU, zValU, time) { + if (arguments.length === 3 || arguments.length === 4) { + time = arguments[3]; + this.orientForward(xValF, yValF, zValF, time); + } else if (arguments.length === 6 || arguments === 7) { + this.orientForward(xValF, yValF, zValF); + this.orientUp(xValU, yValU, zValU, time); + } + return [ + this.listener.forwardX.value, + this.listener.forwardY.value, + this.listener.forwardZ.value, + this.listener.upX.value, + this.listener.upY.value, + this.listener.upZ.value + ]; + }; + p5.Listener3D.prototype.orientForward = function (xValF, yValF, zValF, time) { + this.forwardX(xValF, time); + this.forwardY(yValF, time); + this.forwardZ(zValF, time); + return [ + this.listener.forwardX, + this.listener.forwardY, + this.listener.forwardZ + ]; + }; + p5.Listener3D.prototype.orientUp = function (xValU, yValU, zValU, time) { + this.upX(xValU, time); + this.upY(yValU, time); + this.upZ(zValU, time); + return [ + this.listener.upX, + this.listener.upY, + this.listener.upZ + ]; + }; + // /** + // * Getter and setter methods for orient coordinates + // * @return {Number} [updated coordinate value] + // */ + p5.Listener3D.prototype.forwardX = function (xVal, time) { + var t = time || 0; + if (typeof xVal === 'number') { + this.listener.forwardX.value = xVal; + this.listener.forwardX.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.listener.forwardX.linearRampToValueAtTime(xVal, this.ac.currentTime + 0.02 + t); + } else if (xVal) { + xVal.connect(this.listener.forwardX); + } + return this.listener.forwardX.value; + }; + p5.Listener3D.prototype.forwardY = function (yVal, time) { + var t = time || 0; + if (typeof yVal === 'number') { + this.listener.forwardY.value = yVal; + this.listener.forwardY.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.listener.forwardY.linearRampToValueAtTime(yVal, this.ac.currentTime + 0.02 + t); + } else if (yVal) { + yVal.connect(this.listener.forwardY); + } + return this.listener.forwardY.value; + }; + p5.Listener3D.prototype.forwardZ = function (zVal, time) { + var t = time || 0; + if (typeof zVal === 'number') { + this.listener.forwardZ.value = zVal; + this.listener.forwardZ.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.listener.forwardZ.linearRampToValueAtTime(zVal, this.ac.currentTime + 0.02 + t); + } else if (zVal) { + zVal.connect(this.listener.forwardZ); + } + return this.listener.forwardZ.value; + }; + p5.Listener3D.prototype.upX = function (xVal, time) { + var t = time || 0; + if (typeof xVal === 'number') { + this.listener.upX.value = xVal; + this.listener.upX.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.listener.upX.linearRampToValueAtTime(xVal, this.ac.currentTime + 0.02 + t); + } else if (xVal) { + xVal.connect(this.listener.upX); + } + return this.listener.upX.value; + }; + p5.Listener3D.prototype.upY = function (yVal, time) { + var t = time || 0; + if (typeof yVal === 'number') { + this.listener.upY.value = yVal; + this.listener.upY.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.listener.upY.linearRampToValueAtTime(yVal, this.ac.currentTime + 0.02 + t); + } else if (yVal) { + yVal.connect(this.listener.upY); + } + return this.listener.upY.value; + }; + p5.Listener3D.prototype.upZ = function (zVal, time) { + var t = time || 0; + if (typeof zVal === 'number') { + this.listener.upZ.value = zVal; + this.listener.upZ.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.listener.upZ.linearRampToValueAtTime(zVal, this.ac.currentTime + 0.02 + t); + } else if (zVal) { + zVal.connect(this.listener.upZ); + } + return this.listener.upZ.value; + }; + return p5.Listener3D; +}(master, effect); +var delay; +'use strict'; +delay = function () { + var Filter = filter; + var Effect = effect; + /** + * Delay is an echo effect. It processes an existing sound source, + * and outputs a delayed version of that sound. The p5.Delay can + * produce different effects depending on the delayTime, feedback, + * filter, and type. In the example below, a feedback of 0.5 (the + * defaul value) will produce a looping delay that decreases in + * volume by 50% each repeat. A filter will cut out the high + * frequencies so that the delay does not sound as piercing as the + * original source. + * + * + * This class extends p5.Effect. + * Methods amp(), chain(), + * drywet(), connect(), and + * disconnect() are available. + * @class p5.Delay + * @extends p5.Effect + * @constructor + * @example + *
+ * var noise, env, delay; + * + * function setup() { + * background(0); + * noStroke(); + * fill(255); + * textAlign(CENTER); + * text('click to play', width/2, height/2); + * + * noise = new p5.Noise('brown'); + * noise.amp(0); + * noise.start(); + * + * delay = new p5.Delay(); + * + * // delay.process() accepts 4 parameters: + * // source, delayTime, feedback, filter frequency + * // play with these numbers!! + * delay.process(noise, .12, .7, 2300); + * + * // play the noise with an envelope, + * // a series of fades ( time / value pairs ) + * env = new p5.Envelope(.01, 0.2, .2, .1); + * } + * + * // mouseClick triggers envelope + * function mouseClicked() { + * // is mouse over canvas? + * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { + * env.play(noise); + * } + * } + *
+ */ + p5.Delay = function () { + Effect.call(this); + this._split = this.ac.createChannelSplitter(2); + this._merge = this.ac.createChannelMerger(2); + this._leftGain = this.ac.createGain(); + this._rightGain = this.ac.createGain(); + /** + * The p5.Delay is built with two + * + * Web Audio Delay Nodes, one for each stereo channel. + * + * @property {DelayNode} leftDelay + */ + this.leftDelay = this.ac.createDelay(); + /** + * The p5.Delay is built with two + * + * Web Audio Delay Nodes, one for each stereo channel. + * + * @property {DelayNode} rightDelay + */ + this.rightDelay = this.ac.createDelay(); + this._leftFilter = new Filter(); + this._rightFilter = new Filter(); + this._leftFilter.disconnect(); + this._rightFilter.disconnect(); + this._leftFilter.biquad.frequency.setValueAtTime(1200, this.ac.currentTime); + this._rightFilter.biquad.frequency.setValueAtTime(1200, this.ac.currentTime); + this._leftFilter.biquad.Q.setValueAtTime(0.3, this.ac.currentTime); + this._rightFilter.biquad.Q.setValueAtTime(0.3, this.ac.currentTime); + // graph routing + this.input.connect(this._split); + this.leftDelay.connect(this._leftGain); + this.rightDelay.connect(this._rightGain); + this._leftGain.connect(this._leftFilter.input); + this._rightGain.connect(this._rightFilter.input); + this._merge.connect(this.wet); + this._leftFilter.biquad.gain.setValueAtTime(1, this.ac.currentTime); + this._rightFilter.biquad.gain.setValueAtTime(1, this.ac.currentTime); + // default routing + this.setType(0); + this._maxDelay = this.leftDelay.delayTime.maxValue; + // set initial feedback to 0.5 + this.feedback(0.5); + }; + p5.Delay.prototype = Object.create(Effect.prototype); + /** + * Add delay to an audio signal according to a set + * of delay parameters. + * + * @method process + * @param {Object} Signal An object that outputs audio + * @param {Number} [delayTime] Time (in seconds) of the delay/echo. + * Some browsers limit delayTime to + * 1 second. + * @param {Number} [feedback] sends the delay back through itself + * in a loop that decreases in volume + * each time. + * @param {Number} [lowPass] Cutoff frequency. Only frequencies + * below the lowPass will be part of the + * delay. + */ + p5.Delay.prototype.process = function (src, _delayTime, _feedback, _filter) { + var feedback = _feedback || 0; + var delayTime = _delayTime || 0; + if (feedback >= 1) { + throw new Error('Feedback value will force a positive feedback loop.'); + } + if (delayTime >= this._maxDelay) { + throw new Error('Delay Time exceeds maximum delay time of ' + this._maxDelay + ' second.'); + } + src.connect(this.input); + this.leftDelay.delayTime.setValueAtTime(delayTime, this.ac.currentTime); + this.rightDelay.delayTime.setValueAtTime(delayTime, this.ac.currentTime); + this._leftGain.gain.value = feedback; + this._rightGain.gain.value = feedback; + if (_filter) { + this._leftFilter.freq(_filter); + this._rightFilter.freq(_filter); + } + }; + /** + * Set the delay (echo) time, in seconds. Usually this value will be + * a floating point number between 0.0 and 1.0. + * + * @method delayTime + * @param {Number} delayTime Time (in seconds) of the delay + */ + p5.Delay.prototype.delayTime = function (t) { + // if t is an audio node... + if (typeof t !== 'number') { + t.connect(this.leftDelay.delayTime); + t.connect(this.rightDelay.delayTime); + } else { + this.leftDelay.delayTime.cancelScheduledValues(this.ac.currentTime); + this.rightDelay.delayTime.cancelScheduledValues(this.ac.currentTime); + this.leftDelay.delayTime.linearRampToValueAtTime(t, this.ac.currentTime); + this.rightDelay.delayTime.linearRampToValueAtTime(t, this.ac.currentTime); + } + }; + /** + * Feedback occurs when Delay sends its signal back through its input + * in a loop. The feedback amount determines how much signal to send each + * time through the loop. A feedback greater than 1.0 is not desirable because + * it will increase the overall output each time through the loop, + * creating an infinite feedback loop. The default value is 0.5 + * + * @method feedback + * @param {Number|Object} feedback 0.0 to 1.0, or an object such as an + * Oscillator that can be used to + * modulate this param + * @returns {Number} Feedback value + * + */ + p5.Delay.prototype.feedback = function (f) { + // if f is an audio node... + if (f && typeof f !== 'number') { + f.connect(this._leftGain.gain); + f.connect(this._rightGain.gain); + } else if (f >= 1) { + throw new Error('Feedback value will force a positive feedback loop.'); + } else if (typeof f === 'number') { + this._leftGain.gain.value = f; + this._rightGain.gain.value = f; + } + // return value of feedback + return this._leftGain.gain.value; + }; + /** + * Set a lowpass filter frequency for the delay. A lowpass filter + * will cut off any frequencies higher than the filter frequency. + * + * @method filter + * @param {Number|Object} cutoffFreq A lowpass filter will cut off any + * frequencies higher than the filter frequency. + * @param {Number|Object} res Resonance of the filter frequency + * cutoff, or an object (i.e. a p5.Oscillator) + * that can be used to modulate this parameter. + * High numbers (i.e. 15) will produce a resonance, + * low numbers (i.e. .2) will produce a slope. + */ + p5.Delay.prototype.filter = function (freq, q) { + this._leftFilter.set(freq, q); + this._rightFilter.set(freq, q); + }; + /** + * Choose a preset type of delay. 'pingPong' bounces the signal + * from the left to the right channel to produce a stereo effect. + * Any other parameter will revert to the default delay setting. + * + * @method setType + * @param {String|Number} type 'pingPong' (1) or 'default' (0) + */ + p5.Delay.prototype.setType = function (t) { + if (t === 1) { + t = 'pingPong'; + } + this._split.disconnect(); + this._leftFilter.disconnect(); + this._rightFilter.disconnect(); + this._split.connect(this.leftDelay, 0); + this._split.connect(this.rightDelay, 1); + switch (t) { + case 'pingPong': + this._rightFilter.setType(this._leftFilter.biquad.type); + this._leftFilter.output.connect(this._merge, 0, 0); + this._rightFilter.output.connect(this._merge, 0, 1); + this._leftFilter.output.connect(this.rightDelay); + this._rightFilter.output.connect(this.leftDelay); + break; + default: + this._leftFilter.output.connect(this._merge, 0, 0); + this._rightFilter.output.connect(this._merge, 0, 1); + this._leftFilter.output.connect(this.leftDelay); + this._rightFilter.output.connect(this.rightDelay); + } + }; + // DocBlocks for methods inherited from p5.Effect + /** + * Set the output level of the delay effect. + * + * @method amp + * @param {Number} volume amplitude between 0 and 1.0 + * @param {Number} [rampTime] create a fade that lasts rampTime + * @param {Number} [timeFromNow] schedule this event to happen + * seconds from now + */ + /** + * Send output to a p5.sound or web audio object + * + * @method connect + * @param {Object} unit + */ + /** + * Disconnect all output. + * + * @method disconnect + */ + p5.Delay.prototype.dispose = function () { + Effect.prototype.dispose.apply(this); + this._split.disconnect(); + this._leftFilter.dispose(); + this._rightFilter.dispose(); + this._merge.disconnect(); + this._leftGain.disconnect(); + this._rightGain.disconnect(); + this.leftDelay.disconnect(); + this.rightDelay.disconnect(); + this._split = undefined; + this._leftFilter = undefined; + this._rightFilter = undefined; + this._merge = undefined; + this._leftGain = undefined; + this._rightGain = undefined; + this.leftDelay = undefined; + this.rightDelay = undefined; + }; +}(filter, effect); +var reverb; +'use strict'; +reverb = function () { + var CustomError = errorHandler; + var Effect = effect; + /** + * Reverb adds depth to a sound through a large number of decaying + * echoes. It creates the perception that sound is occurring in a + * physical space. The p5.Reverb has paramters for Time (how long does the + * reverb last) and decayRate (how much the sound decays with each echo) + * that can be set with the .set() or .process() methods. The p5.Convolver + * extends p5.Reverb allowing you to recreate the sound of actual physical + * spaces through convolution. + * + * This class extends p5.Effect. + * Methods amp(), chain(), + * drywet(), connect(), and + * disconnect() are available. + * + * @class p5.Reverb + * @extends p5.Effect + * @constructor + * @example + *
+ * var soundFile, reverb; + * function preload() { + * soundFile = loadSound('assets/Damscray_DancingTiger.mp3'); + * } + * + * function setup() { + * reverb = new p5.Reverb(); + * soundFile.disconnect(); // so we'll only hear reverb... + * + * // connect soundFile to reverb, process w/ + * // 3 second reverbTime, decayRate of 2% + * reverb.process(soundFile, 3, 2); + * soundFile.play(); + * } + *
+ */ + p5.Reverb = function () { + Effect.call(this); + this._initConvolverNode(); + // otherwise, Safari distorts + this.input.gain.value = 0.5; + // default params + this._seconds = 3; + this._decay = 2; + this._reverse = false; + this._buildImpulse(); + }; + p5.Reverb.prototype = Object.create(Effect.prototype); + p5.Reverb.prototype._initConvolverNode = function () { + this.convolverNode = this.ac.createConvolver(); + this.input.connect(this.convolverNode); + this.convolverNode.connect(this.wet); + }; + p5.Reverb.prototype._teardownConvolverNode = function () { + if (this.convolverNode) { + this.convolverNode.disconnect(); + delete this.convolverNode; + } + }; + p5.Reverb.prototype._setBuffer = function (audioBuffer) { + this._teardownConvolverNode(); + this._initConvolverNode(); + this.convolverNode.buffer = audioBuffer; + }; + /** + * Connect a source to the reverb, and assign reverb parameters. + * + * @method process + * @param {Object} src p5.sound / Web Audio object with a sound + * output. + * @param {Number} [seconds] Duration of the reverb, in seconds. + * Min: 0, Max: 10. Defaults to 3. + * @param {Number} [decayRate] Percentage of decay with each echo. + * Min: 0, Max: 100. Defaults to 2. + * @param {Boolean} [reverse] Play the reverb backwards or forwards. + */ + p5.Reverb.prototype.process = function (src, seconds, decayRate, reverse) { + src.connect(this.input); + var rebuild = false; + if (seconds) { + this._seconds = seconds; + rebuild = true; + } + if (decayRate) { + this._decay = decayRate; + } + if (reverse) { + this._reverse = reverse; + } + if (rebuild) { + this._buildImpulse(); + } + }; + /** + * Set the reverb settings. Similar to .process(), but without + * assigning a new input. + * + * @method set + * @param {Number} [seconds] Duration of the reverb, in seconds. + * Min: 0, Max: 10. Defaults to 3. + * @param {Number} [decayRate] Percentage of decay with each echo. + * Min: 0, Max: 100. Defaults to 2. + * @param {Boolean} [reverse] Play the reverb backwards or forwards. + */ + p5.Reverb.prototype.set = function (seconds, decayRate, reverse) { + var rebuild = false; + if (seconds) { + this._seconds = seconds; + rebuild = true; + } + if (decayRate) { + this._decay = decayRate; + } + if (reverse) { + this._reverse = reverse; + } + if (rebuild) { + this._buildImpulse(); + } + }; + // DocBlocks for methods inherited from p5.Effect + /** + * Set the output level of the reverb effect. + * + * @method amp + * @param {Number} volume amplitude between 0 and 1.0 + * @param {Number} [rampTime] create a fade that lasts rampTime + * @param {Number} [timeFromNow] schedule this event to happen + * seconds from now + */ + /** + * Send output to a p5.sound or web audio object + * + * @method connect + * @param {Object} unit + */ + /** + * Disconnect all output. + * + * @method disconnect + */ + /** + * Inspired by Simple Reverb by Jordan Santell + * https://github.com/web-audio-components/simple-reverb/blob/master/index.js + * + * Utility function for building an impulse response + * based on the module parameters. + * + * @private + */ + p5.Reverb.prototype._buildImpulse = function () { + var rate = this.ac.sampleRate; + var length = rate * this._seconds; + var decay = this._decay; + var impulse = this.ac.createBuffer(2, length, rate); + var impulseL = impulse.getChannelData(0); + var impulseR = impulse.getChannelData(1); + var n, i; + for (i = 0; i < length; i++) { + n = this._reverse ? length - i : i; + impulseL[i] = (Math.random() * 2 - 1) * Math.pow(1 - n / length, decay); + impulseR[i] = (Math.random() * 2 - 1) * Math.pow(1 - n / length, decay); + } + this._setBuffer(impulse); + }; + p5.Reverb.prototype.dispose = function () { + Effect.prototype.dispose.apply(this); + this._teardownConvolverNode(); + }; + // ======================================================================= + // *** p5.Convolver *** + // ======================================================================= + /** + *

p5.Convolver extends p5.Reverb. It can emulate the sound of real + * physical spaces through a process called + * convolution.

+ * + *

Convolution multiplies any audio input by an "impulse response" + * to simulate the dispersion of sound over time. The impulse response is + * generated from an audio file that you provide. One way to + * generate an impulse response is to pop a balloon in a reverberant space + * and record the echo. Convolution can also be used to experiment with + * sound.

+ * + *

Use the method createConvolution(path) to instantiate a + * p5.Convolver with a path to your impulse response audio file.

+ * + * @class p5.Convolver + * @extends p5.Effect + * @constructor + * @param {String} path path to a sound file + * @param {Function} [callback] function to call when loading succeeds + * @param {Function} [errorCallback] function to call if loading fails. + * This function will receive an error or + * XMLHttpRequest object with information + * about what went wrong. + * @example + *
+ * var cVerb, sound; + * function preload() { + * // We have both MP3 and OGG versions of all sound assets + * soundFormats('ogg', 'mp3'); + * + * // Try replacing 'bx-spring' with other soundfiles like + * // 'concrete-tunnel' 'small-plate' 'drum' 'beatbox' + * cVerb = createConvolver('assets/bx-spring.mp3'); + * + * // Try replacing 'Damscray_DancingTiger' with + * // 'beat', 'doorbell', lucky_dragons_-_power_melody' + * sound = loadSound('assets/Damscray_DancingTiger.mp3'); + * } + * + * function setup() { + * // disconnect from master output... + * sound.disconnect(); + * + * // ...and process with cVerb + * // so that we only hear the convolution + * cVerb.process(sound); + * + * sound.play(); + * } + *
+ */ + p5.Convolver = function (path, callback, errorCallback) { + p5.Reverb.call(this); + /** + * Internally, the p5.Convolver uses the a + * + * Web Audio Convolver Node. + * + * @property {ConvolverNode} convolverNode + */ + this._initConvolverNode(); + // otherwise, Safari distorts + this.input.gain.value = 0.5; + if (path) { + this.impulses = []; + this._loadBuffer(path, callback, errorCallback); + } else { + // parameters + this._seconds = 3; + this._decay = 2; + this._reverse = false; + this._buildImpulse(); + } + }; + p5.Convolver.prototype = Object.create(p5.Reverb.prototype); + p5.prototype.registerPreloadMethod('createConvolver', p5.prototype); + /** + * Create a p5.Convolver. Accepts a path to a soundfile + * that will be used to generate an impulse response. + * + * @method createConvolver + * @param {String} path path to a sound file + * @param {Function} [callback] function to call if loading is successful. + * The object will be passed in as the argument + * to the callback function. + * @param {Function} [errorCallback] function to call if loading is not successful. + * A custom error will be passed in as the argument + * to the callback function. + * @return {p5.Convolver} + * @example + *
+ * var cVerb, sound; + * function preload() { + * // We have both MP3 and OGG versions of all sound assets + * soundFormats('ogg', 'mp3'); + * + * // Try replacing 'bx-spring' with other soundfiles like + * // 'concrete-tunnel' 'small-plate' 'drum' 'beatbox' + * cVerb = createConvolver('assets/bx-spring.mp3'); + * + * // Try replacing 'Damscray_DancingTiger' with + * // 'beat', 'doorbell', lucky_dragons_-_power_melody' + * sound = loadSound('assets/Damscray_DancingTiger.mp3'); + * } + * + * function setup() { + * // disconnect from master output... + * sound.disconnect(); + * + * // ...and process with cVerb + * // so that we only hear the convolution + * cVerb.process(sound); + * + * sound.play(); + * } + *
+ */ + p5.prototype.createConvolver = function (path, callback, errorCallback) { + // if loading locally without a server + if (window.location.origin.indexOf('file://') > -1 && window.cordova === 'undefined') { + alert('This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS'); + } + var self = this; + var cReverb = new p5.Convolver(path, function (buffer) { + if (typeof callback === 'function') { + callback(buffer); + } + if (typeof self._decrementPreload === 'function') { + self._decrementPreload(); + } + }, errorCallback); + cReverb.impulses = []; + return cReverb; + }; + /** + * Private method to load a buffer as an Impulse Response, + * assign it to the convolverNode, and add to the Array of .impulses. + * + * @param {String} path + * @param {Function} callback + * @param {Function} errorCallback + * @private + */ + p5.Convolver.prototype._loadBuffer = function (path, callback, errorCallback) { + var path = p5.prototype._checkFileFormats(path); + var self = this; + var errorTrace = new Error().stack; + var ac = p5.prototype.getAudioContext(); + var request = new XMLHttpRequest(); + request.open('GET', path, true); + request.responseType = 'arraybuffer'; + request.onload = function () { + if (request.status === 200) { + // on success loading file: + ac.decodeAudioData(request.response, function (buff) { + var buffer = {}; + var chunks = path.split('/'); + buffer.name = chunks[chunks.length - 1]; + buffer.audioBuffer = buff; + self.impulses.push(buffer); + self._setBuffer(buffer.audioBuffer); + if (callback) { + callback(buffer); + } + }, // error decoding buffer. "e" is undefined in Chrome 11/22/2015 + function () { + var err = new CustomError('decodeAudioData', errorTrace, self.url); + var msg = 'AudioContext error at decodeAudioData for ' + self.url; + if (errorCallback) { + err.msg = msg; + errorCallback(err); + } else { + console.error(msg + '\n The error stack trace includes: \n' + err.stack); + } + }); + } else { + var err = new CustomError('loadConvolver', errorTrace, self.url); + var msg = 'Unable to load ' + self.url + '. The request status was: ' + request.status + ' (' + request.statusText + ')'; + if (errorCallback) { + err.message = msg; + errorCallback(err); + } else { + console.error(msg + '\n The error stack trace includes: \n' + err.stack); + } + } + }; + // if there is another error, aside from 404... + request.onerror = function () { + var err = new CustomError('loadConvolver', errorTrace, self.url); + var msg = 'There was no response from the server at ' + self.url + '. Check the url and internet connectivity.'; + if (errorCallback) { + err.message = msg; + errorCallback(err); + } else { + console.error(msg + '\n The error stack trace includes: \n' + err.stack); + } + }; + request.send(); + }; + p5.Convolver.prototype.set = null; + /** + * Connect a source to the reverb, and assign reverb parameters. + * + * @method process + * @param {Object} src p5.sound / Web Audio object with a sound + * output. + * @example + *
+ * var cVerb, sound; + * function preload() { + * soundFormats('ogg', 'mp3'); + * + * cVerb = createConvolver('assets/concrete-tunnel.mp3'); + * + * sound = loadSound('assets/beat.mp3'); + * } + * + * function setup() { + * // disconnect from master output... + * sound.disconnect(); + * + * // ...and process with (i.e. connect to) cVerb + * // so that we only hear the convolution + * cVerb.process(sound); + * + * sound.play(); + * } + *
+ */ + p5.Convolver.prototype.process = function (src) { + src.connect(this.input); + }; + /** + * If you load multiple impulse files using the .addImpulse method, + * they will be stored as Objects in this Array. Toggle between them + * with the toggleImpulse(id) method. + * + * @property {Array} impulses + */ + p5.Convolver.prototype.impulses = []; + /** + * Load and assign a new Impulse Response to the p5.Convolver. + * The impulse is added to the .impulses array. Previous + * impulses can be accessed with the .toggleImpulse(id) + * method. + * + * @method addImpulse + * @param {String} path path to a sound file + * @param {Function} callback function (optional) + * @param {Function} errorCallback function (optional) + */ + p5.Convolver.prototype.addImpulse = function (path, callback, errorCallback) { + // if loading locally without a server + if (window.location.origin.indexOf('file://') > -1 && window.cordova === 'undefined') { + alert('This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS'); + } + this._loadBuffer(path, callback, errorCallback); + }; + /** + * Similar to .addImpulse, except that the .impulses + * Array is reset to save memory. A new .impulses + * array is created with this impulse as the only item. + * + * @method resetImpulse + * @param {String} path path to a sound file + * @param {Function} callback function (optional) + * @param {Function} errorCallback function (optional) + */ + p5.Convolver.prototype.resetImpulse = function (path, callback, errorCallback) { + // if loading locally without a server + if (window.location.origin.indexOf('file://') > -1 && window.cordova === 'undefined') { + alert('This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS'); + } + this.impulses = []; + this._loadBuffer(path, callback, errorCallback); + }; + /** + * If you have used .addImpulse() to add multiple impulses + * to a p5.Convolver, then you can use this method to toggle between + * the items in the .impulses Array. Accepts a parameter + * to identify which impulse you wish to use, identified either by its + * original filename (String) or by its position in the .impulses + * Array (Number).
+ * You can access the objects in the .impulses Array directly. Each + * Object has two attributes: an .audioBuffer (type: + * Web Audio + * AudioBuffer) and a .name, a String that corresponds + * with the original filename. + * + * @method toggleImpulse + * @param {String|Number} id Identify the impulse by its original filename + * (String), or by its position in the + * .impulses Array (Number). + */ + p5.Convolver.prototype.toggleImpulse = function (id) { + if (typeof id === 'number' && id < this.impulses.length) { + this._setBuffer(this.impulses[id].audioBuffer); + } + if (typeof id === 'string') { + for (var i = 0; i < this.impulses.length; i++) { + if (this.impulses[i].name === id) { + this._setBuffer(this.impulses[i].audioBuffer); + break; + } + } + } + }; + p5.Convolver.prototype.dispose = function () { + p5.Reverb.prototype.dispose.apply(this); + // remove all the Impulse Response buffers + for (var i in this.impulses) { + if (this.impulses[i]) { + this.impulses[i] = null; + } + } + }; +}(errorHandler, effect); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_core_TimelineState; +Tone_core_TimelineState = function (Tone) { + 'use strict'; + Tone.TimelineState = function (initial) { + Tone.Timeline.call(this); + this._initial = initial; + }; + Tone.extend(Tone.TimelineState, Tone.Timeline); + Tone.TimelineState.prototype.getValueAtTime = function (time) { + var event = this.get(time); + if (event !== null) { + return event.state; + } else { + return this._initial; + } + }; + Tone.TimelineState.prototype.setStateAtTime = function (state, time) { + this.add({ + 'state': state, + 'time': time + }); + }; + return Tone.TimelineState; +}(Tone_core_Tone, Tone_core_Timeline); +/** Tone.js module by Yotam Mann, MIT License 2016 http://opensource.org/licenses/MIT **/ +var Tone_core_Clock; +Tone_core_Clock = function (Tone) { + 'use strict'; + Tone.Clock = function () { + Tone.Emitter.call(this); + var options = this.optionsObject(arguments, [ + 'callback', + 'frequency' + ], Tone.Clock.defaults); + this.callback = options.callback; + this._nextTick = 0; + this._lastState = Tone.State.Stopped; + this.frequency = new Tone.TimelineSignal(options.frequency, Tone.Type.Frequency); + this._readOnly('frequency'); + this.ticks = 0; + this._state = new Tone.TimelineState(Tone.State.Stopped); + this._boundLoop = this._loop.bind(this); + this.context.on('tick', this._boundLoop); + }; + Tone.extend(Tone.Clock, Tone.Emitter); + Tone.Clock.defaults = { + 'callback': Tone.noOp, + 'frequency': 1, + 'lookAhead': 'auto' + }; + Object.defineProperty(Tone.Clock.prototype, 'state', { + get: function () { + return this._state.getValueAtTime(this.now()); + } + }); + Tone.Clock.prototype.start = function (time, offset) { + time = this.toSeconds(time); + if (this._state.getValueAtTime(time) !== Tone.State.Started) { + this._state.add({ + 'state': Tone.State.Started, + 'time': time, + 'offset': offset + }); + } + return this; + }; + Tone.Clock.prototype.stop = function (time) { + time = this.toSeconds(time); + this._state.cancel(time); + this._state.setStateAtTime(Tone.State.Stopped, time); + return this; + }; + Tone.Clock.prototype.pause = function (time) { + time = this.toSeconds(time); + if (this._state.getValueAtTime(time) === Tone.State.Started) { + this._state.setStateAtTime(Tone.State.Paused, time); + } + return this; + }; + Tone.Clock.prototype._loop = function () { + var now = this.now(); + var lookAhead = this.context.lookAhead; + var updateInterval = this.context.updateInterval; + var lagCompensation = this.context.lag * 2; + var loopInterval = now + lookAhead + updateInterval + lagCompensation; + while (loopInterval > this._nextTick && this._state) { + var currentState = this._state.getValueAtTime(this._nextTick); + if (currentState !== this._lastState) { + this._lastState = currentState; + var event = this._state.get(this._nextTick); + if (currentState === Tone.State.Started) { + this._nextTick = event.time; + if (!this.isUndef(event.offset)) { + this.ticks = event.offset; + } + this.emit('start', event.time, this.ticks); + } else if (currentState === Tone.State.Stopped) { + this.ticks = 0; + this.emit('stop', event.time); + } else if (currentState === Tone.State.Paused) { + this.emit('pause', event.time); + } + } + var tickTime = this._nextTick; + if (this.frequency) { + this._nextTick += 1 / this.frequency.getValueAtTime(this._nextTick); + if (currentState === Tone.State.Started) { + this.callback(tickTime); + this.ticks++; + } + } + } + }; + Tone.Clock.prototype.getStateAtTime = function (time) { + time = this.toSeconds(time); + return this._state.getValueAtTime(time); + }; + Tone.Clock.prototype.dispose = function () { + Tone.Emitter.prototype.dispose.call(this); + this.context.off('tick', this._boundLoop); + this._writable('frequency'); + this.frequency.dispose(); + this.frequency = null; + this._boundLoop = null; + this._nextTick = Infinity; + this.callback = null; + this._state.dispose(); + this._state = null; + }; + return Tone.Clock; +}(Tone_core_Tone, Tone_signal_TimelineSignal, Tone_core_TimelineState, Tone_core_Emitter); +var metro; +'use strict'; +metro = function () { + var p5sound = master; + // requires the Tone.js library's Clock (MIT license, Yotam Mann) + // https://github.com/TONEnoTONE/Tone.js/ + var Clock = Tone_core_Clock; + p5.Metro = function () { + this.clock = new Clock({ 'callback': this.ontick.bind(this) }); + this.syncedParts = []; + this.bpm = 120; + // gets overridden by p5.Part + this._init(); + this.prevTick = 0; + this.tatumTime = 0; + this.tickCallback = function () { + }; + }; + p5.Metro.prototype.ontick = function (tickTime) { + var elapsedTime = tickTime - this.prevTick; + var secondsFromNow = tickTime - p5sound.audiocontext.currentTime; + if (elapsedTime - this.tatumTime <= -0.02) { + return; + } else { + this.prevTick = tickTime; + // for all of the active things on the metro: + var self = this; + this.syncedParts.forEach(function (thisPart) { + if (!thisPart.isPlaying) + return; + thisPart.incrementStep(secondsFromNow); + // each synced source keeps track of its own beat number + thisPart.phrases.forEach(function (thisPhrase) { + var phraseArray = thisPhrase.sequence; + var bNum = self.metroTicks % phraseArray.length; + if (phraseArray[bNum] !== 0 && (self.metroTicks < phraseArray.length || !thisPhrase.looping)) { + thisPhrase.callback(secondsFromNow, phraseArray[bNum]); + } + }); + }); + this.metroTicks += 1; + this.tickCallback(secondsFromNow); + } + }; + p5.Metro.prototype.setBPM = function (bpm, rampTime) { + var beatTime = 60 / (bpm * this.tatums); + var now = p5sound.audiocontext.currentTime; + this.tatumTime = beatTime; + var rampTime = rampTime || 0; + this.clock.frequency.setValueAtTime(this.clock.frequency.value, now); + this.clock.frequency.linearRampToValueAtTime(bpm, now + rampTime); + this.bpm = bpm; + }; + p5.Metro.prototype.getBPM = function () { + return this.clock.getRate() / this.tatums * 60; + }; + p5.Metro.prototype._init = function () { + this.metroTicks = 0; + }; + // clear existing synced parts, add only this one + p5.Metro.prototype.resetSync = function (part) { + this.syncedParts = [part]; + }; + // push a new synced part to the array + p5.Metro.prototype.pushSync = function (part) { + this.syncedParts.push(part); + }; + p5.Metro.prototype.start = function (timeFromNow) { + var t = timeFromNow || 0; + var now = p5sound.audiocontext.currentTime; + this.clock.start(now + t); + this.setBPM(this.bpm); + }; + p5.Metro.prototype.stop = function (timeFromNow) { + var t = timeFromNow || 0; + var now = p5sound.audiocontext.currentTime; + this.clock.stop(now + t); + }; + p5.Metro.prototype.beatLength = function (tatums) { + this.tatums = 1 / tatums / 4; + }; +}(master, Tone_core_Clock); +var looper; +'use strict'; +looper = function () { + var p5sound = master; + var BPM = 120; + /** + * Set the global tempo, in beats per minute, for all + * p5.Parts. This method will impact all active p5.Parts. + * + * @method setBPM + * @param {Number} BPM Beats Per Minute + * @param {Number} rampTime Seconds from now + */ + p5.prototype.setBPM = function (bpm, rampTime) { + BPM = bpm; + for (var i in p5sound.parts) { + if (p5sound.parts[i]) { + p5sound.parts[i].setBPM(bpm, rampTime); + } + } + }; + /** + *

A phrase is a pattern of musical events over time, i.e. + * a series of notes and rests.

+ * + *

Phrases must be added to a p5.Part for playback, and + * each part can play multiple phrases at the same time. + * For example, one Phrase might be a kick drum, another + * could be a snare, and another could be the bassline.

+ * + *

The first parameter is a name so that the phrase can be + * modified or deleted later. The callback is a a function that + * this phrase will call at every stepโ€”for example it might be + * called playNote(value){}. The array determines + * which value is passed into the callback at each step of the + * phrase. It can be numbers, an object with multiple numbers, + * or a zero (0) indicates a rest so the callback won't be called).

+ * + * @class p5.Phrase + * @constructor + * @param {String} name Name so that you can access the Phrase. + * @param {Function} callback The name of a function that this phrase + * will call. Typically it will play a sound, + * and accept two parameters: a time at which + * to play the sound (in seconds from now), + * and a value from the sequence array. The + * time should be passed into the play() or + * start() method to ensure precision. + * @param {Array} sequence Array of values to pass into the callback + * at each step of the phrase. + * @example + *
+ * var mySound, myPhrase, myPart; + * var pattern = [1,0,0,2,0,2,0,0]; + * var msg = 'click to play'; + * + * function preload() { + * mySound = loadSound('assets/beatbox.mp3'); + * } + * + * function setup() { + * noStroke(); + * fill(255); + * textAlign(CENTER); + * masterVolume(0.1); + * + * myPhrase = new p5.Phrase('bbox', makeSound, pattern); + * myPart = new p5.Part(); + * myPart.addPhrase(myPhrase); + * myPart.setBPM(60); + * } + * + * function draw() { + * background(0); + * text(msg, width/2, height/2); + * } + * + * function makeSound(time, playbackRate) { + * mySound.rate(playbackRate); + * mySound.play(time); + * } + * + * function mouseClicked() { + * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { + * myPart.start(); + * msg = 'playing pattern'; + * } + * } + * + *
+ */ + p5.Phrase = function (name, callback, sequence) { + this.phraseStep = 0; + this.name = name; + this.callback = callback; + /** + * Array of values to pass into the callback + * at each step of the phrase. Depending on the callback + * function's requirements, these values may be numbers, + * strings, or an object with multiple parameters. + * Zero (0) indicates a rest. + * + * @property {Array} sequence + */ + this.sequence = sequence; + }; + /** + *

A p5.Part plays back one or more p5.Phrases. Instantiate a part + * with steps and tatums. By default, each step represents a 1/16th note.

+ * + *

See p5.Phrase for more about musical timing.

+ * + * @class p5.Part + * @constructor + * @param {Number} [steps] Steps in the part + * @param {Number} [tatums] Divisions of a beat, e.g. use 1/4, or 0.25 for a quater note (default is 1/16, a sixteenth note) + * @example + *
+ * var box, drum, myPart; + * var boxPat = [1,0,0,2,0,2,0,0]; + * var drumPat = [0,1,1,0,2,0,1,0]; + * var msg = 'click to play'; + * + * function preload() { + * box = loadSound('assets/beatbox.mp3'); + * drum = loadSound('assets/drum.mp3'); + * } + * + * function setup() { + * noStroke(); + * fill(255); + * textAlign(CENTER); + * masterVolume(0.1); + * + * var boxPhrase = new p5.Phrase('box', playBox, boxPat); + * var drumPhrase = new p5.Phrase('drum', playDrum, drumPat); + * myPart = new p5.Part(); + * myPart.addPhrase(boxPhrase); + * myPart.addPhrase(drumPhrase); + * myPart.setBPM(60); + * masterVolume(0.1); + * } + * + * function draw() { + * background(0); + * text(msg, width/2, height/2); + * } + * + * function playBox(time, playbackRate) { + * box.rate(playbackRate); + * box.play(time); + * } + * + * function playDrum(time, playbackRate) { + * drum.rate(playbackRate); + * drum.play(time); + * } + * + * function mouseClicked() { + * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { + * myPart.start(); + * msg = 'playing part'; + * } + * } + *
+ */ + p5.Part = function (steps, bLength) { + this.length = steps || 0; + // how many beats + this.partStep = 0; + this.phrases = []; + this.isPlaying = false; + this.noLoop(); + this.tatums = bLength || 0.0625; + // defaults to quarter note + this.metro = new p5.Metro(); + this.metro._init(); + this.metro.beatLength(this.tatums); + this.metro.setBPM(BPM); + p5sound.parts.push(this); + this.callback = function () { + }; + }; + /** + * Set the tempo of this part, in Beats Per Minute. + * + * @method setBPM + * @param {Number} BPM Beats Per Minute + * @param {Number} [rampTime] Seconds from now + */ + p5.Part.prototype.setBPM = function (tempo, rampTime) { + this.metro.setBPM(tempo, rampTime); + }; + /** + * Returns the tempo, in Beats Per Minute, of this part. + * + * @method getBPM + * @return {Number} + */ + p5.Part.prototype.getBPM = function () { + return this.metro.getBPM(); + }; + /** + * Start playback of this part. It will play + * through all of its phrases at a speed + * determined by setBPM. + * + * @method start + * @param {Number} [time] seconds from now + */ + p5.Part.prototype.start = function (time) { + if (!this.isPlaying) { + this.isPlaying = true; + this.metro.resetSync(this); + var t = time || 0; + this.metro.start(t); + } + }; + /** + * Loop playback of this part. It will begin + * looping through all of its phrases at a speed + * determined by setBPM. + * + * @method loop + * @param {Number} [time] seconds from now + */ + p5.Part.prototype.loop = function (time) { + this.looping = true; + // rest onended function + this.onended = function () { + this.partStep = 0; + }; + var t = time || 0; + this.start(t); + }; + /** + * Tell the part to stop looping. + * + * @method noLoop + */ + p5.Part.prototype.noLoop = function () { + this.looping = false; + // rest onended function + this.onended = function () { + this.stop(); + }; + }; + /** + * Stop the part and cue it to step 0. Playback will resume from the begining of the Part when it is played again. + * + * @method stop + * @param {Number} [time] seconds from now + */ + p5.Part.prototype.stop = function (time) { + this.partStep = 0; + this.pause(time); + }; + /** + * Pause the part. Playback will resume + * from the current step. + * + * @method pause + * @param {Number} time seconds from now + */ + p5.Part.prototype.pause = function (time) { + this.isPlaying = false; + var t = time || 0; + this.metro.stop(t); + }; + /** + * Add a p5.Phrase to this Part. + * + * @method addPhrase + * @param {p5.Phrase} phrase reference to a p5.Phrase + */ + p5.Part.prototype.addPhrase = function (name, callback, array) { + var p; + if (arguments.length === 3) { + p = new p5.Phrase(name, callback, array); + } else if (arguments[0] instanceof p5.Phrase) { + p = arguments[0]; + } else { + throw 'invalid input. addPhrase accepts name, callback, array or a p5.Phrase'; + } + this.phrases.push(p); + // reset the length if phrase is longer than part's existing length + if (p.sequence.length > this.length) { + this.length = p.sequence.length; + } + }; + /** + * Remove a phrase from this part, based on the name it was + * given when it was created. + * + * @method removePhrase + * @param {String} phraseName + */ + p5.Part.prototype.removePhrase = function (name) { + for (var i in this.phrases) { + if (this.phrases[i].name === name) { + this.phrases.splice(i, 1); + } + } + }; + /** + * Get a phrase from this part, based on the name it was + * given when it was created. Now you can modify its array. + * + * @method getPhrase + * @param {String} phraseName + */ + p5.Part.prototype.getPhrase = function (name) { + for (var i in this.phrases) { + if (this.phrases[i].name === name) { + return this.phrases[i]; + } + } + }; + /** + * Find all sequences with the specified name, and replace their patterns with the specified array. + * + * @method replaceSequence + * @param {String} phraseName + * @param {Array} sequence Array of values to pass into the callback + * at each step of the phrase. + */ + p5.Part.prototype.replaceSequence = function (name, array) { + for (var i in this.phrases) { + if (this.phrases[i].name === name) { + this.phrases[i].sequence = array; + } + } + }; + p5.Part.prototype.incrementStep = function (time) { + if (this.partStep < this.length - 1) { + this.callback(time); + this.partStep += 1; + } else { + if (!this.looping && this.partStep === this.length - 1) { + // this.callback(time); + this.onended(); + } + } + }; + /** + * Set the function that will be called at every step. This will clear the previous function. + * + * @method onStep + * @param {Function} callback The name of the callback + * you want to fire + * on every beat/tatum. + */ + p5.Part.prototype.onStep = function (callback) { + this.callback = callback; + }; + // =============== + // p5.Score + // =============== + /** + * A Score consists of a series of Parts. The parts will + * be played back in order. For example, you could have an + * A part, a B part, and a C part, and play them back in this order + * new p5.Score(a, a, b, a, c) + * + * @class p5.Score + * @constructor + * @param {p5.Part} [...parts] One or multiple parts, to be played in sequence. + */ + p5.Score = function () { + // for all of the arguments + this.parts = []; + this.currentPart = 0; + var thisScore = this; + for (var i in arguments) { + if (arguments[i] && this.parts[i]) { + this.parts[i] = arguments[i]; + this.parts[i].nextPart = this.parts[i + 1]; + this.parts[i].onended = function () { + thisScore.resetPart(i); + playNextPart(thisScore); + }; + } + } + this.looping = false; + }; + p5.Score.prototype.onended = function () { + if (this.looping) { + // this.resetParts(); + this.parts[0].start(); + } else { + this.parts[this.parts.length - 1].onended = function () { + this.stop(); + this.resetParts(); + }; + } + this.currentPart = 0; + }; + /** + * Start playback of the score. + * + * @method start + */ + p5.Score.prototype.start = function () { + this.parts[this.currentPart].start(); + this.scoreStep = 0; + }; + /** + * Stop playback of the score. + * + * @method stop + */ + p5.Score.prototype.stop = function () { + this.parts[this.currentPart].stop(); + this.currentPart = 0; + this.scoreStep = 0; + }; + /** + * Pause playback of the score. + * + * @method pause + */ + p5.Score.prototype.pause = function () { + this.parts[this.currentPart].stop(); + }; + /** + * Loop playback of the score. + * + * @method loop + */ + p5.Score.prototype.loop = function () { + this.looping = true; + this.start(); + }; + /** + * Stop looping playback of the score. If it + * is currently playing, this will go into effect + * after the current round of playback completes. + * + * @method noLoop + */ + p5.Score.prototype.noLoop = function () { + this.looping = false; + }; + p5.Score.prototype.resetParts = function () { + var self = this; + this.parts.forEach(function (part) { + self.resetParts[part]; + }); + }; + p5.Score.prototype.resetPart = function (i) { + this.parts[i].stop(); + this.parts[i].partStep = 0; + for (var p in this.parts[i].phrases) { + if (this.parts[i]) { + this.parts[i].phrases[p].phraseStep = 0; + } + } + }; + /** + * Set the tempo for all parts in the score + * + * @method setBPM + * @param {Number} BPM Beats Per Minute + * @param {Number} rampTime Seconds from now + */ + p5.Score.prototype.setBPM = function (bpm, rampTime) { + for (var i in this.parts) { + if (this.parts[i]) { + this.parts[i].setBPM(bpm, rampTime); + } + } + }; + function playNextPart(aScore) { + aScore.currentPart++; + if (aScore.currentPart >= aScore.parts.length) { + aScore.scoreStep = 0; + aScore.onended(); + } else { + aScore.scoreStep = 0; + aScore.parts[aScore.currentPart - 1].stop(); + aScore.parts[aScore.currentPart].start(); + } + } +}(master); +var soundloop; +'use strict'; +soundloop = function () { + var p5sound = master; + var Clock = Tone_core_Clock; + /** + * SoundLoop + * + * @class p5.SoundLoop + * @constructor + * + * @param {Function} callback this function will be called on each iteration of theloop + * @param {Number|String} [interval] amount of time or beats for each iteration of the loop + * defaults to 1 + * + * @example + *
+ * var click; + * var looper1; + * + * function preload() { + * click = loadSound('assets/drum.mp3'); + * } + * + * function setup() { + * //the looper's callback is passed the timeFromNow + * //this value should be used as a reference point from + * //which to schedule sounds + * looper1 = new p5.SoundLoop(function(timeFromNow){ + * click.play(timeFromNow); + * background(255 * (looper1.iterations % 2)); + * }, 2); + * + * //stop after 10 iteratios; + * looper1.maxIterations = 10; + * //start the loop + * looper1.start(); + * } + *
+ */ + p5.SoundLoop = function (callback, interval) { + this.callback = callback; + /** + * musicalTimeMode uses Tone.Time convention + * true if string, false if number + * @property {Boolean} musicalTimeMode + */ + this.musicalTimeMode = typeof this._interval === 'number' ? false : true; + this._interval = interval || 1; + /** + * musicalTimeMode variables + * modify these only when the interval is specified in musicalTime format as a string + */ + this._timeSignature = 4; + this._bpm = 60; + this.isPlaying = false; + /** + * Set a limit to the number of loops to play. defaults to Infinity + * @property {Number} maxIterations + */ + this.maxIterations = Infinity; + var self = this; + this.clock = new Clock({ + 'callback': function (time) { + var timeFromNow = time - p5sound.audiocontext.currentTime; + /** + * Do not initiate the callback if timeFromNow is < 0 + * This ususually occurs for a few milliseconds when the page + * is not fully loaded + * + * The callback should only be called until maxIterations is reached + */ + if (timeFromNow > 0 && self.iterations <= self.maxIterations) { + self.callback(timeFromNow); + } + }, + 'frequency': this._calcFreq() + }); + }; + /** + * Start the loop + * @method start + * @param {Number} [timeFromNow] schedule a starting time + */ + p5.SoundLoop.prototype.start = function (timeFromNow) { + var t = timeFromNow || 0; + var now = p5sound.audiocontext.currentTime; + if (!this.isPlaying) { + this.clock.start(now + t); + this.isPlaying = true; + } + }; + /** + * Stop the loop + * @method stop + * @param {Number} [timeFromNow] schedule a stopping time + */ + p5.SoundLoop.prototype.stop = function (timeFromNow) { + var t = timeFromNow || 0; + var now = p5sound.audiocontext.currentTime; + if (this.isPlaying) { + this.clock.stop(now + t); + this.isPlaying = false; + } + }; + /** + * Pause the loop + * @method pause + * @param {Number} [timeFromNow] schedule a pausing time + */ + p5.SoundLoop.prototype.pause = function (timeFromNow) { + var t = timeFromNow || 0; + var now = p5sound.audiocontext.currentTime; + if (this.isPlaying) { + this.clock.pause(now + t); + this.isPlaying = false; + } + }; + /** + * Synchronize loops. Use this method to start two more more loops in synchronization + * or to start a loop in synchronization with a loop that is already playing + * This method will schedule the implicit loop in sync with the explicit master loop + * i.e. loopToStart.syncedStart(loopToSyncWith) + * + * @method syncedStart + * @param {Object} otherLoop a p5.SoundLoop to sync with + * @param {Number} [timeFromNow] Start the loops in sync after timeFromNow seconds + */ + p5.SoundLoop.prototype.syncedStart = function (otherLoop, timeFromNow) { + var t = timeFromNow || 0; + var now = p5sound.audiocontext.currentTime; + if (!otherLoop.isPlaying) { + otherLoop.clock.start(now + t); + otherLoop.isPlaying = true; + this.clock.start(now + t); + this.isPlaying = true; + } else if (otherLoop.isPlaying) { + var time = otherLoop.clock._nextTick - p5sound.audiocontext.currentTime; + this.clock.start(now + time); + this.isPlaying = true; + } + }; + /** + * Updates frequency value, reflected in next callback + * @private + * @method _update + */ + p5.SoundLoop.prototype._update = function () { + this.clock.frequency.value = this._calcFreq(); + }; + /** + * Calculate the frequency of the clock's callback based on bpm, interval, and timesignature + * @private + * @method _calcFreq + * @return {Number} new clock frequency value + */ + p5.SoundLoop.prototype._calcFreq = function () { + //Seconds mode, bpm / timesignature has no effect + if (typeof this._interval === 'number') { + this.musicalTimeMode = false; + return 1 / this._interval; + } else if (typeof this._interval === 'string') { + this.musicalTimeMode = true; + return this._bpm / 60 / this._convertNotation(this._interval) * (this._timeSignature / 4); + } + }; + /** + * Convert notation from musical time format to seconds + * Uses Tone.Time convention + * @private + * @method _convertNotation + * @param {String} value value to be converted + * @return {Number} converted value in seconds + */ + p5.SoundLoop.prototype._convertNotation = function (value) { + var type = value.slice(-1); + value = Number(value.slice(0, -1)); + switch (type) { + case 'm': + return this._measure(value); + case 'n': + return this._note(value); + default: + console.warn('Specified interval is not formatted correctly. See Tone.js ' + 'timing reference for more info: https://github.com/Tonejs/Tone.js/wiki/Time'); + } + }; + /** + * Helper conversion methods of measure and note + * @private + * @method _measure + * @private + * @method _note + */ + p5.SoundLoop.prototype._measure = function (value) { + return value * this._timeSignature; + }; + p5.SoundLoop.prototype._note = function (value) { + return this._timeSignature / value; + }; + /** + * Getters and Setters, setting any paramter will result in a change in the clock's + * frequency, that will be reflected after the next callback + * beats per minute (defaults to 60) + * @property {Number} bpm + */ + Object.defineProperty(p5.SoundLoop.prototype, 'bpm', { + get: function () { + return this._bpm; + }, + set: function (bpm) { + if (!this.musicalTimeMode) { + console.warn('Changing the BPM in "seconds" mode has no effect. ' + 'BPM is only relevant in musicalTimeMode ' + 'when the interval is specified as a string ' + '("2n", "4n", "1m"...etc)'); + } + this._bpm = bpm; + this._update(); + } + }); + /** + * number of quarter notes in a measure (defaults to 4) + * @property {Number} timeSignature + */ + Object.defineProperty(p5.SoundLoop.prototype, 'timeSignature', { + get: function () { + return this._timeSignature; + }, + set: function (timeSig) { + if (!this.musicalTimeMode) { + console.warn('Changing the timeSignature in "seconds" mode has no effect. ' + 'BPM is only relevant in musicalTimeMode ' + 'when the interval is specified as a string ' + '("2n", "4n", "1m"...etc)'); + } + this._timeSignature = timeSig; + this._update(); + } + }); + /** + * length of the loops interval + * @property {Number|String} interval + */ + Object.defineProperty(p5.SoundLoop.prototype, 'interval', { + get: function () { + return this._interval; + }, + set: function (interval) { + this.musicalTimeMode = typeof interval === 'Number' ? false : true; + this._interval = interval; + this._update(); + } + }); + /** + * how many times the callback has been called so far + * @property {Number} iterations + * @readonly + */ + Object.defineProperty(p5.SoundLoop.prototype, 'iterations', { + get: function () { + return this.clock.ticks; + } + }); + return p5.SoundLoop; +}(master, Tone_core_Clock); +var compressor; +compressor = function () { + 'use strict'; + var p5sound = master; + var Effect = effect; + var CustomError = errorHandler; + /** + * Compressor is an audio effect class that performs dynamics compression + * on an audio input source. This is a very commonly used technique in music + * and sound production. Compression creates an overall louder, richer, + * and fuller sound by lowering the volume of louds and raising that of softs. + * Compression can be used to avoid clipping (sound distortion due to + * peaks in volume) and is especially useful when many sounds are played + * at once. Compression can be used on indivudal sound sources in addition + * to the master output. + * + * This class extends p5.Effect. + * Methods amp(), chain(), + * drywet(), connect(), and + * disconnect() are available. + * + * @class p5.Compressor + * @constructor + * @extends p5.Effect + * + * + */ + p5.Compressor = function () { + Effect.call(this); + /** + * The p5.Compressor is built with a Web Audio Dynamics Compressor Node + * + * @property {AudioNode} compressor + */ + this.compressor = this.ac.createDynamicsCompressor(); + this.input.connect(this.compressor); + this.compressor.connect(this.wet); + }; + p5.Compressor.prototype = Object.create(Effect.prototype); + /** + * Performs the same function as .connect, but also accepts + * optional parameters to set compressor's audioParams + * @method process + * + * @param {Object} src Sound source to be connected + * + * @param {Number} [attack] The amount of time (in seconds) to reduce the gain by 10dB, + * default = .003, range 0 - 1 + * @param {Number} [knee] A decibel value representing the range above the + * threshold where the curve smoothly transitions to the "ratio" portion. + * default = 30, range 0 - 40 + * @param {Number} [ratio] The amount of dB change in input for a 1 dB change in output + * default = 12, range 1 - 20 + * @param {Number} [threshold] The decibel value above which the compression will start taking effect + * default = -24, range -100 - 0 + * @param {Number} [release] The amount of time (in seconds) to increase the gain by 10dB + * default = .25, range 0 - 1 + */ + p5.Compressor.prototype.process = function (src, attack, knee, ratio, threshold, release) { + src.connect(this.input); + this.set(attack, knee, ratio, threshold, release); + }; + /** + * Set the paramters of a compressor. + * @method set + * @param {Number} attack The amount of time (in seconds) to reduce the gain by 10dB, + * default = .003, range 0 - 1 + * @param {Number} knee A decibel value representing the range above the + * threshold where the curve smoothly transitions to the "ratio" portion. + * default = 30, range 0 - 40 + * @param {Number} ratio The amount of dB change in input for a 1 dB change in output + * default = 12, range 1 - 20 + * @param {Number} threshold The decibel value above which the compression will start taking effect + * default = -24, range -100 - 0 + * @param {Number} release The amount of time (in seconds) to increase the gain by 10dB + * default = .25, range 0 - 1 + */ + p5.Compressor.prototype.set = function (attack, knee, ratio, threshold, release) { + if (typeof attack !== 'undefined') { + this.attack(attack); + } + if (typeof knee !== 'undefined') { + this.knee(knee); + } + if (typeof ratio !== 'undefined') { + this.ratio(ratio); + } + if (typeof threshold !== 'undefined') { + this.threshold(threshold); + } + if (typeof release !== 'undefined') { + this.release(release); + } + }; + /** + * Get current attack or set value w/ time ramp + * + * + * @method attack + * @param {Number} [attack] Attack is the amount of time (in seconds) to reduce the gain by 10dB, + * default = .003, range 0 - 1 + * @param {Number} [time] Assign time value to schedule the change in value + */ + p5.Compressor.prototype.attack = function (attack, time) { + var t = time || 0; + if (typeof attack == 'number') { + this.compressor.attack.value = attack; + this.compressor.attack.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.compressor.attack.linearRampToValueAtTime(attack, this.ac.currentTime + 0.02 + t); + } else if (typeof attack !== 'undefined') { + attack.connect(this.compressor.attack); + } + return this.compressor.attack.value; + }; + /** + * Get current knee or set value w/ time ramp + * + * @method knee + * @param {Number} [knee] A decibel value representing the range above the + * threshold where the curve smoothly transitions to the "ratio" portion. + * default = 30, range 0 - 40 + * @param {Number} [time] Assign time value to schedule the change in value + */ + p5.Compressor.prototype.knee = function (knee, time) { + var t = time || 0; + if (typeof knee == 'number') { + this.compressor.knee.value = knee; + this.compressor.knee.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.compressor.knee.linearRampToValueAtTime(knee, this.ac.currentTime + 0.02 + t); + } else if (typeof knee !== 'undefined') { + knee.connect(this.compressor.knee); + } + return this.compressor.knee.value; + }; + /** + * Get current ratio or set value w/ time ramp + * @method ratio + * + * @param {Number} [ratio] The amount of dB change in input for a 1 dB change in output + * default = 12, range 1 - 20 + * @param {Number} [time] Assign time value to schedule the change in value + */ + p5.Compressor.prototype.ratio = function (ratio, time) { + var t = time || 0; + if (typeof ratio == 'number') { + this.compressor.ratio.value = ratio; + this.compressor.ratio.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.compressor.ratio.linearRampToValueAtTime(ratio, this.ac.currentTime + 0.02 + t); + } else if (typeof ratio !== 'undefined') { + ratio.connect(this.compressor.ratio); + } + return this.compressor.ratio.value; + }; + /** + * Get current threshold or set value w/ time ramp + * @method threshold + * + * @param {Number} threshold The decibel value above which the compression will start taking effect + * default = -24, range -100 - 0 + * @param {Number} [time] Assign time value to schedule the change in value + */ + p5.Compressor.prototype.threshold = function (threshold, time) { + var t = time || 0; + if (typeof threshold == 'number') { + this.compressor.threshold.value = threshold; + this.compressor.threshold.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.compressor.threshold.linearRampToValueAtTime(threshold, this.ac.currentTime + 0.02 + t); + } else if (typeof threshold !== 'undefined') { + threshold.connect(this.compressor.threshold); + } + return this.compressor.threshold.value; + }; + /** + * Get current release or set value w/ time ramp + * @method release + * + * @param {Number} release The amount of time (in seconds) to increase the gain by 10dB + * default = .25, range 0 - 1 + * + * @param {Number} [time] Assign time value to schedule the change in value + */ + p5.Compressor.prototype.release = function (release, time) { + var t = time || 0; + if (typeof release == 'number') { + this.compressor.release.value = release; + this.compressor.release.cancelScheduledValues(this.ac.currentTime + 0.01 + t); + this.compressor.release.linearRampToValueAtTime(release, this.ac.currentTime + 0.02 + t); + } else if (typeof number !== 'undefined') { + release.connect(this.compressor.release); + } + return this.compressor.release.value; + }; + /** + * Return the current reduction value + * + * @method reduction + * @return {Number} Value of the amount of gain reduction that is applied to the signal + */ + p5.Compressor.prototype.reduction = function () { + return this.compressor.reduction.value; + }; + p5.Compressor.prototype.dispose = function () { + Effect.prototype.dispose.apply(this); + if (this.compressor) { + this.compressor.disconnect(); + delete this.compressor; + } + }; + return p5.Compressor; +}(master, effect, errorHandler); +var soundRecorder; +'use strict'; +soundRecorder = function () { + // inspiration: recorder.js, Tone.js & typedarray.org + var p5sound = master; + var convertToWav = helpers.convertToWav; + var ac = p5sound.audiocontext; + /** + *

Record sounds for playback and/or to save as a .wav file. + * The p5.SoundRecorder records all sound output from your sketch, + * or can be assigned a specific source with setInput().

+ *

The record() method accepts a p5.SoundFile as a parameter. + * When playback is stopped (either after the given amount of time, + * or with the stop() method), the p5.SoundRecorder will send its + * recording to that p5.SoundFile for playback.

+ * + * @class p5.SoundRecorder + * @constructor + * @example + *
+ * var mic, recorder, soundFile; + * var state = 0; + * + * function setup() { + * background(200); + * // create an audio in + * mic = new p5.AudioIn(); + * + * // prompts user to enable their browser mic + * mic.start(); + * + * // create a sound recorder + * recorder = new p5.SoundRecorder(); + * + * // connect the mic to the recorder + * recorder.setInput(mic); + * + * // this sound file will be used to + * // playback & save the recording + * soundFile = new p5.SoundFile(); + * + * text('keyPress to record', 20, 20); + * } + * + * function keyPressed() { + * // make sure user enabled the mic + * if (state === 0 && mic.enabled) { + * + * // record to our p5.SoundFile + * recorder.record(soundFile); + * + * background(255,0,0); + * text('Recording!', 20, 20); + * state++; + * } + * else if (state === 1) { + * background(0,255,0); + * + * // stop recorder and + * // send result to soundFile + * recorder.stop(); + * + * text('Stopped', 20, 20); + * state++; + * } + * + * else if (state === 2) { + * soundFile.play(); // play the result! + * save(soundFile, 'mySound.wav'); + * state++; + * } + * } + *
+ */ + p5.SoundRecorder = function () { + this.input = ac.createGain(); + this.output = ac.createGain(); + this.recording = false; + this.bufferSize = 1024; + this._channels = 2; + // stereo (default) + this._clear(); + // initialize variables + this._jsNode = ac.createScriptProcessor(this.bufferSize, this._channels, 2); + this._jsNode.onaudioprocess = this._audioprocess.bind(this); + /** + * callback invoked when the recording is over + * @private + * @type Function(Float32Array) + */ + this._callback = function () { + }; + // connections + this._jsNode.connect(p5.soundOut._silentNode); + this.setInput(); + // add this p5.SoundFile to the soundArray + p5sound.soundArray.push(this); + }; + /** + * Connect a specific device to the p5.SoundRecorder. + * If no parameter is given, p5.SoundRecorer will record + * all audible p5.sound from your sketch. + * + * @method setInput + * @param {Object} [unit] p5.sound object or a web audio unit + * that outputs sound + */ + p5.SoundRecorder.prototype.setInput = function (unit) { + this.input.disconnect(); + this.input = null; + this.input = ac.createGain(); + this.input.connect(this._jsNode); + this.input.connect(this.output); + if (unit) { + unit.connect(this.input); + } else { + p5.soundOut.output.connect(this.input); + } + }; + /** + * Start recording. To access the recording, provide + * a p5.SoundFile as the first parameter. The p5.SoundRecorder + * will send its recording to that p5.SoundFile for playback once + * recording is complete. Optional parameters include duration + * (in seconds) of the recording, and a callback function that + * will be called once the complete recording has been + * transfered to the p5.SoundFile. + * + * @method record + * @param {p5.SoundFile} soundFile p5.SoundFile + * @param {Number} [duration] Time (in seconds) + * @param {Function} [callback] The name of a function that will be + * called once the recording completes + */ + p5.SoundRecorder.prototype.record = function (sFile, duration, callback) { + this.recording = true; + if (duration) { + this.sampleLimit = Math.round(duration * ac.sampleRate); + } + if (sFile && callback) { + this._callback = function () { + this.buffer = this._getBuffer(); + sFile.setBuffer(this.buffer); + callback(); + }; + } else if (sFile) { + this._callback = function () { + this.buffer = this._getBuffer(); + sFile.setBuffer(this.buffer); + }; + } + }; + /** + * Stop the recording. Once the recording is stopped, + * the results will be sent to the p5.SoundFile that + * was given on .record(), and if a callback function + * was provided on record, that function will be called. + * + * @method stop + */ + p5.SoundRecorder.prototype.stop = function () { + this.recording = false; + this._callback(); + this._clear(); + }; + p5.SoundRecorder.prototype._clear = function () { + this._leftBuffers = []; + this._rightBuffers = []; + this.recordedSamples = 0; + this.sampleLimit = null; + }; + /** + * internal method called on audio process + * + * @private + * @param {AudioProcessorEvent} event + */ + p5.SoundRecorder.prototype._audioprocess = function (event) { + if (this.recording === false) { + return; + } else if (this.recording === true) { + // if we are past the duration, then stop... else: + if (this.sampleLimit && this.recordedSamples >= this.sampleLimit) { + this.stop(); + } else { + // get channel data + var left = event.inputBuffer.getChannelData(0); + var right = event.inputBuffer.getChannelData(1); + // clone the samples + this._leftBuffers.push(new Float32Array(left)); + this._rightBuffers.push(new Float32Array(right)); + this.recordedSamples += this.bufferSize; + } + } + }; + p5.SoundRecorder.prototype._getBuffer = function () { + var buffers = []; + buffers.push(this._mergeBuffers(this._leftBuffers)); + buffers.push(this._mergeBuffers(this._rightBuffers)); + return buffers; + }; + p5.SoundRecorder.prototype._mergeBuffers = function (channelBuffer) { + var result = new Float32Array(this.recordedSamples); + var offset = 0; + var lng = channelBuffer.length; + for (var i = 0; i < lng; i++) { + var buffer = channelBuffer[i]; + result.set(buffer, offset); + offset += buffer.length; + } + return result; + }; + p5.SoundRecorder.prototype.dispose = function () { + this._clear(); + // remove reference from soundArray + var index = p5sound.soundArray.indexOf(this); + p5sound.soundArray.splice(index, 1); + this._callback = function () { + }; + if (this.input) { + this.input.disconnect(); + } + this.input = null; + this._jsNode = null; + }; + /** + * Save a p5.SoundFile as a .wav file. The browser will prompt the user + * to download the file to their device. + * For uploading audio to a server, use + * `p5.SoundFile.saveBlob`. + * + * @for p5 + * @method saveSound + * @param {p5.SoundFile} soundFile p5.SoundFile that you wish to save + * @param {String} fileName name of the resulting .wav file. + */ + // add to p5.prototype as this is used by the p5 `save()` method. + p5.prototype.saveSound = function (soundFile, fileName) { + const dataView = convertToWav(soundFile.buffer); + p5.prototype.writeFile([dataView], fileName, 'wav'); + }; +}(master, helpers); +var peakdetect; +'use strict'; +peakdetect = function () { + /** + *

PeakDetect works in conjunction with p5.FFT to + * look for onsets in some or all of the frequency spectrum. + *

+ *

+ * To use p5.PeakDetect, call update in the draw loop + * and pass in a p5.FFT object. + *

+ *

+ * You can listen for a specific part of the frequency spectrum by + * setting the range between freq1 and freq2. + *

+ * + *

threshold is the threshold for detecting a peak, + * scaled between 0 and 1. It is logarithmic, so 0.1 is half as loud + * as 1.0.

+ * + *

+ * The update method is meant to be run in the draw loop, and + * frames determines how many loops must pass before + * another peak can be detected. + * For example, if the frameRate() = 60, you could detect the beat of a + * 120 beat-per-minute song with this equation: + * framesPerPeak = 60 / (estimatedBPM / 60 ); + *

+ * + *

+ * Based on example contribtued by @b2renger, and a simple beat detection + * explanation by Felix Turner. + *

+ * + * @class p5.PeakDetect + * @constructor + * @param {Number} [freq1] lowFrequency - defaults to 20Hz + * @param {Number} [freq2] highFrequency - defaults to 20000 Hz + * @param {Number} [threshold] Threshold for detecting a beat between 0 and 1 + * scaled logarithmically where 0.1 is 1/2 the loudness + * of 1.0. Defaults to 0.35. + * @param {Number} [framesPerPeak] Defaults to 20. + * @example + *
+ * + * var cnv, soundFile, fft, peakDetect; + * var ellipseWidth = 10; + * + * function preload() { + * soundFile = loadSound('assets/beat.mp3'); + * } + * + * function setup() { + * background(0); + * noStroke(); + * fill(255); + * textAlign(CENTER); + * + * // p5.PeakDetect requires a p5.FFT + * fft = new p5.FFT(); + * peakDetect = new p5.PeakDetect(); + * } + * + * function draw() { + * background(0); + * text('click to play/pause', width/2, height/2); + * + * // peakDetect accepts an fft post-analysis + * fft.analyze(); + * peakDetect.update(fft); + * + * if ( peakDetect.isDetected ) { + * ellipseWidth = 50; + * } else { + * ellipseWidth *= 0.95; + * } + * + * ellipse(width/2, height/2, ellipseWidth, ellipseWidth); + * } + * + * // toggle play/stop when canvas is clicked + * function mouseClicked() { + * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { + * if (soundFile.isPlaying() ) { + * soundFile.stop(); + * } else { + * soundFile.play(); + * } + * } + * } + *
+ */ + p5.PeakDetect = function (freq1, freq2, threshold, _framesPerPeak) { + // framesPerPeak determines how often to look for a beat. + // If a beat is provided, try to look for a beat based on bpm + this.framesPerPeak = _framesPerPeak || 20; + this.framesSinceLastPeak = 0; + this.decayRate = 0.95; + this.threshold = threshold || 0.35; + this.cutoff = 0; + // how much to increase the cutoff + // TO DO: document this / figure out how to make it accessible + this.cutoffMult = 1.5; + this.energy = 0; + this.penergy = 0; + // TO DO: document this property / figure out how to make it accessible + this.currentValue = 0; + /** + * isDetected is set to true when a peak is detected. + * + * @attribute isDetected {Boolean} + * @default false + */ + this.isDetected = false; + this.f1 = freq1 || 40; + this.f2 = freq2 || 20000; + // function to call when a peak is detected + this._onPeak = function () { + }; + }; + /** + * The update method is run in the draw loop. + * + * Accepts an FFT object. You must call .analyze() + * on the FFT object prior to updating the peakDetect + * because it relies on a completed FFT analysis. + * + * @method update + * @param {p5.FFT} fftObject A p5.FFT object + */ + p5.PeakDetect.prototype.update = function (fftObject) { + var nrg = this.energy = fftObject.getEnergy(this.f1, this.f2) / 255; + if (nrg > this.cutoff && nrg > this.threshold && nrg - this.penergy > 0) { + // trigger callback + this._onPeak(); + this.isDetected = true; + // debounce + this.cutoff = nrg * this.cutoffMult; + this.framesSinceLastPeak = 0; + } else { + this.isDetected = false; + if (this.framesSinceLastPeak <= this.framesPerPeak) { + this.framesSinceLastPeak++; + } else { + this.cutoff *= this.decayRate; + this.cutoff = Math.max(this.cutoff, this.threshold); + } + } + this.currentValue = nrg; + this.penergy = nrg; + }; + /** + * onPeak accepts two arguments: a function to call when + * a peak is detected. The value of the peak, + * between 0.0 and 1.0, is passed to the callback. + * + * @method onPeak + * @param {Function} callback Name of a function that will + * be called when a peak is + * detected. + * @param {Object} [val] Optional value to pass + * into the function when + * a peak is detected. + * @example + *
+ * var cnv, soundFile, fft, peakDetect; + * var ellipseWidth = 0; + * + * function preload() { + * soundFile = loadSound('assets/beat.mp3'); + * } + * + * function setup() { + * cnv = createCanvas(100,100); + * textAlign(CENTER); + * + * fft = new p5.FFT(); + * peakDetect = new p5.PeakDetect(); + * + * setupSound(); + * + * // when a beat is detected, call triggerBeat() + * peakDetect.onPeak(triggerBeat); + * } + * + * function draw() { + * background(0); + * fill(255); + * text('click to play', width/2, height/2); + * + * fft.analyze(); + * peakDetect.update(fft); + * + * ellipseWidth *= 0.95; + * ellipse(width/2, height/2, ellipseWidth, ellipseWidth); + * } + * + * // this function is called by peakDetect.onPeak + * function triggerBeat() { + * ellipseWidth = 50; + * } + * + * // mouseclick starts/stops sound + * function setupSound() { + * cnv.mouseClicked( function() { + * if (soundFile.isPlaying() ) { + * soundFile.stop(); + * } else { + * soundFile.play(); + * } + * }); + * } + *
+ */ + p5.PeakDetect.prototype.onPeak = function (callback, val) { + var self = this; + self._onPeak = function () { + callback(self.energy, val); + }; + }; +}(); +var gain; +'use strict'; +gain = function () { + var p5sound = master; + /** + * A gain node is usefull to set the relative volume of sound. + * It's typically used to build mixers. + * + * @class p5.Gain + * @constructor + * @example + *
+ * + * // load two soundfile and crossfade beetween them + * var sound1,sound2; + * var gain1, gain2, gain3; + * + * function preload(){ + * soundFormats('ogg', 'mp3'); + * sound1 = loadSound('assets/Damscray_-_Dancing_Tiger_01'); + * sound2 = loadSound('assets/beat.mp3'); + * } + * + * function setup() { + * createCanvas(400,200); + * + * // create a 'master' gain to which we will connect both soundfiles + * gain3 = new p5.Gain(); + * gain3.connect(); + * + * // setup first sound for playing + * sound1.rate(1); + * sound1.loop(); + * sound1.disconnect(); // diconnect from p5 output + * + * gain1 = new p5.Gain(); // setup a gain node + * gain1.setInput(sound1); // connect the first sound to its input + * gain1.connect(gain3); // connect its output to the 'master' + * + * sound2.rate(1); + * sound2.disconnect(); + * sound2.loop(); + * + * gain2 = new p5.Gain(); + * gain2.setInput(sound2); + * gain2.connect(gain3); + * + * } + * + * function draw(){ + * background(180); + * + * // calculate the horizontal distance beetween the mouse and the right of the screen + * var d = dist(mouseX,0,width,0); + * + * // map the horizontal position of the mouse to values useable for volume control of sound1 + * var vol1 = map(mouseX,0,width,0,1); + * var vol2 = 1-vol1; // when sound1 is loud, sound2 is quiet and vice versa + * + * gain1.amp(vol1,0.5,0); + * gain2.amp(vol2,0.5,0); + * + * // map the vertical position of the mouse to values useable for 'master volume control' + * var vol3 = map(mouseY,0,height,0,1); + * gain3.amp(vol3,0.5,0); + * } + *
+ * + */ + p5.Gain = function () { + this.ac = p5sound.audiocontext; + this.input = this.ac.createGain(); + this.output = this.ac.createGain(); + // otherwise, Safari distorts + this.input.gain.value = 0.5; + this.input.connect(this.output); + // add to the soundArray + p5sound.soundArray.push(this); + }; + /** + * Connect a source to the gain node. + * + * @method setInput + * @param {Object} src p5.sound / Web Audio object with a sound + * output. + */ + p5.Gain.prototype.setInput = function (src) { + src.connect(this.input); + }; + /** + * Send output to a p5.sound or web audio object + * + * @method connect + * @param {Object} unit + */ + p5.Gain.prototype.connect = function (unit) { + var u = unit || p5.soundOut.input; + this.output.connect(u.input ? u.input : u); + }; + /** + * Disconnect all output. + * + * @method disconnect + */ + p5.Gain.prototype.disconnect = function () { + if (this.output) { + this.output.disconnect(); + } + }; + /** + * Set the output level of the gain node. + * + * @method amp + * @param {Number} volume amplitude between 0 and 1.0 + * @param {Number} [rampTime] create a fade that lasts rampTime + * @param {Number} [timeFromNow] schedule this event to happen + * seconds from now + */ + p5.Gain.prototype.amp = function (vol, rampTime, tFromNow) { + var rampTime = rampTime || 0; + var tFromNow = tFromNow || 0; + var now = p5sound.audiocontext.currentTime; + var currentVol = this.output.gain.value; + this.output.gain.cancelScheduledValues(now); + this.output.gain.linearRampToValueAtTime(currentVol, now + tFromNow); + this.output.gain.linearRampToValueAtTime(vol, now + tFromNow + rampTime); + }; + p5.Gain.prototype.dispose = function () { + // remove reference from soundArray + var index = p5sound.soundArray.indexOf(this); + p5sound.soundArray.splice(index, 1); + if (this.output) { + this.output.disconnect(); + delete this.output; + } + if (this.input) { + this.input.disconnect(); + delete this.input; + } + }; +}(master); +var audioVoice; +'use strict'; +audioVoice = function () { + var p5sound = master; + /** + * Base class for monophonic synthesizers. Any extensions of this class + * should follow the API and implement the methods below in order to + * remain compatible with p5.PolySynth(); + * + * @class p5.AudioVoice + * @constructor + */ + p5.AudioVoice = function () { + this.ac = p5sound.audiocontext; + this.output = this.ac.createGain(); + this.connect(); + p5sound.soundArray.push(this); + }; + p5.AudioVoice.prototype.play = function (note, velocity, secondsFromNow, sustime) { + }; + p5.AudioVoice.prototype.triggerAttack = function (note, velocity, secondsFromNow) { + }; + p5.AudioVoice.prototype.triggerRelease = function (secondsFromNow) { + }; + p5.AudioVoice.prototype.amp = function (vol, rampTime) { + }; + /** + * Connect to p5 objects or Web Audio Nodes + * @method connect + * @param {Object} unit + */ + p5.AudioVoice.prototype.connect = function (unit) { + var u = unit || p5sound.input; + this.output.connect(u.input ? u.input : u); + }; + /** + * Disconnect from soundOut + * @method disconnect + */ + p5.AudioVoice.prototype.disconnect = function () { + this.output.disconnect(); + }; + p5.AudioVoice.prototype.dispose = function () { + if (this.output) { + this.output.disconnect(); + delete this.output; + } + }; + return p5.AudioVoice; +}(master); +var monosynth; +'use strict'; +monosynth = function () { + var p5sound = master; + var AudioVoice = audioVoice; + var noteToFreq = helpers.noteToFreq; + var DEFAULT_SUSTAIN = 0.15; + /** + * A MonoSynth is used as a single voice for sound synthesis. + * This is a class to be used in conjunction with the PolySynth + * class. Custom synthetisers should be built inheriting from + * this class. + * + * @class p5.MonoSynth + * @constructor + * @example + *
+ * var monoSynth; + * + * function setup() { + * var cnv = createCanvas(100, 100); + * cnv.mousePressed(playSynth); + * + * monoSynth = new p5.MonoSynth(); + * + * textAlign(CENTER); + * text('click to play', width/2, height/2); + * } + * + * function playSynth() { + * // time from now (in seconds) + * var time = 0; + * // note duration (in seconds) + * var dur = 0.25; + * // velocity (volume, from 0 to 1) + * var v = 0.2; + * + * monoSynth.play("G3", v, time, dur); + * monoSynth.play("C4", v, time += dur, dur); + * + * background(random(255), random(255), 255); + * text('click to play', width/2, height/2); + * } + *
+ **/ + p5.MonoSynth = function () { + AudioVoice.call(this); + this.oscillator = new p5.Oscillator(); + this.env = new p5.Envelope(); + this.env.setRange(1, 0); + this.env.setExp(true); + //set params + this.setADSR(0.02, 0.25, 0.05, 0.35); + // oscillator --> env --> this.output (gain) --> p5.soundOut + this.oscillator.disconnect(); + this.oscillator.connect(this.output); + this.env.disconnect(); + this.env.setInput(this.output.gain); + // reset oscillator gain to 1.0 + this.oscillator.output.gain.value = 1; + this.oscillator.start(); + this.connect(); + p5sound.soundArray.push(this); + }; + p5.MonoSynth.prototype = Object.create(p5.AudioVoice.prototype); + /** + * Play tells the MonoSynth to start playing a note. This method schedules + * the calling of .triggerAttack and .triggerRelease. + * + * @method play + * @param {String | Number} note the note you want to play, specified as a + * frequency in Hertz (Number) or as a midi + * value in Note/Octave format ("C4", "Eb3"...etc") + * See + * Tone. Defaults to 440 hz. + * @param {Number} [velocity] velocity of the note to play (ranging from 0 to 1) + * @param {Number} [secondsFromNow] time from now (in seconds) at which to play + * @param {Number} [sustainTime] time to sustain before releasing the envelope + * @example + *
+ * var monoSynth; + * + * function setup() { + * var cnv = createCanvas(100, 100); + * cnv.mousePressed(playSynth); + * + * monoSynth = new p5.MonoSynth(); + * + * textAlign(CENTER); + * text('click to play', width/2, height/2); + * } + * + * function playSynth() { + * // time from now (in seconds) + * var time = 0; + * // note duration (in seconds) + * var dur = 1/6; + * // note velocity (volume, from 0 to 1) + * var v = random(); + * + * monoSynth.play("Fb3", v, 0, dur); + * monoSynth.play("Gb3", v, time += dur, dur); + * + * background(random(255), random(255), 255); + * text('click to play', width/2, height/2); + * } + *
+ * + */ + p5.MonoSynth.prototype.play = function (note, velocity, secondsFromNow, susTime) { + this.triggerAttack(note, velocity, ~~secondsFromNow); + this.triggerRelease(~~secondsFromNow + (susTime || DEFAULT_SUSTAIN)); + }; + /** + * Trigger the Attack, and Decay portion of the Envelope. + * Similar to holding down a key on a piano, but it will + * hold the sustain level until you let go. + * + * @param {String | Number} note the note you want to play, specified as a + * frequency in Hertz (Number) or as a midi + * value in Note/Octave format ("C4", "Eb3"...etc") + * See + * Tone. Defaults to 440 hz + * @param {Number} [velocity] velocity of the note to play (ranging from 0 to 1) + * @param {Number} [secondsFromNow] time from now (in seconds) at which to play + * @method triggerAttack + * @example + *
+ * var monoSynth = new p5.MonoSynth(); + * + * function mousePressed() { + * monoSynth.triggerAttack("E3"); + * } + * + * function mouseReleased() { + * monoSynth.triggerRelease(); + * } + *
+ */ + p5.MonoSynth.prototype.triggerAttack = function (note, velocity, secondsFromNow) { + var secondsFromNow = ~~secondsFromNow; + var freq = noteToFreq(note); + var vel = velocity || 0.1; + this.oscillator.freq(freq, 0, secondsFromNow); + this.env.ramp(this.output.gain, secondsFromNow, vel); + }; + /** + * Trigger the release of the Envelope. This is similar to releasing + * the key on a piano and letting the sound fade according to the + * release level and release time. + * + * @param {Number} secondsFromNow time to trigger the release + * @method triggerRelease + * @example + *
+ * var monoSynth = new p5.MonoSynth(); + * + * function mousePressed() { + * monoSynth.triggerAttack("E3"); + * } + * + * function mouseReleased() { + * monoSynth.triggerRelease(); + * } + *
+ */ + p5.MonoSynth.prototype.triggerRelease = function (secondsFromNow) { + var secondsFromNow = secondsFromNow || 0; + this.env.ramp(this.output.gain, secondsFromNow, 0); + }; + /** + * Set values like a traditional + * + * ADSR envelope + * . + * + * @method setADSR + * @param {Number} attackTime Time (in seconds before envelope + * reaches Attack Level + * @param {Number} [decayTime] Time (in seconds) before envelope + * reaches Decay/Sustain Level + * @param {Number} [susRatio] Ratio between attackLevel and releaseLevel, on a scale from 0 to 1, + * where 1.0 = attackLevel, 0.0 = releaseLevel. + * The susRatio determines the decayLevel and the level at which the + * sustain portion of the envelope will sustain. + * For example, if attackLevel is 0.4, releaseLevel is 0, + * and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is + * increased to 1.0 (using setRange), + * then decayLevel would increase proportionally, to become 0.5. + * @param {Number} [releaseTime] Time in seconds from now (defaults to 0) + */ + p5.MonoSynth.prototype.setADSR = function (attack, decay, sustain, release) { + this.env.setADSR(attack, decay, sustain, release); + }; + /** + * Getters and Setters + * @property {Number} attack + */ + /** + * @property {Number} decay + */ + /** + * @property {Number} sustain + */ + /** + * @property {Number} release + */ + Object.defineProperties(p5.MonoSynth.prototype, { + 'attack': { + get: function () { + return this.env.aTime; + }, + set: function (attack) { + this.env.setADSR(attack, this.env.dTime, this.env.sPercent, this.env.rTime); + } + }, + 'decay': { + get: function () { + return this.env.dTime; + }, + set: function (decay) { + this.env.setADSR(this.env.aTime, decay, this.env.sPercent, this.env.rTime); + } + }, + 'sustain': { + get: function () { + return this.env.sPercent; + }, + set: function (sustain) { + this.env.setADSR(this.env.aTime, this.env.dTime, sustain, this.env.rTime); + } + }, + 'release': { + get: function () { + return this.env.rTime; + }, + set: function (release) { + this.env.setADSR(this.env.aTime, this.env.dTime, this.env.sPercent, release); + } + } + }); + /** + * MonoSynth amp + * @method amp + * @param {Number} vol desired volume + * @param {Number} [rampTime] Time to reach new volume + * @return {Number} new volume value + */ + p5.MonoSynth.prototype.amp = function (vol, rampTime) { + var t = rampTime || 0; + if (typeof vol !== 'undefined') { + this.oscillator.amp(vol, t); + } + return this.oscillator.amp().value; + }; + /** + * Connect to a p5.sound / Web Audio object. + * + * @method connect + * @param {Object} unit A p5.sound or Web Audio object + */ + p5.MonoSynth.prototype.connect = function (unit) { + var u = unit || p5sound.input; + this.output.connect(u.input ? u.input : u); + }; + /** + * Disconnect all outputs + * + * @method disconnect + */ + p5.MonoSynth.prototype.disconnect = function () { + if (this.output) { + this.output.disconnect(); + } + }; + /** + * Get rid of the MonoSynth and free up its resources / memory. + * + * @method dispose + */ + p5.MonoSynth.prototype.dispose = function () { + AudioVoice.prototype.dispose.apply(this); + if (this.env) { + this.env.dispose(); + } + if (this.oscillator) { + this.oscillator.dispose(); + } + }; +}(master, audioVoice, helpers); +var polysynth; +'use strict'; +polysynth = function () { + var p5sound = master; + var TimelineSignal = Tone_signal_TimelineSignal; + var noteToFreq = helpers.noteToFreq; + /** + * An AudioVoice is used as a single voice for sound synthesis. + * The PolySynth class holds an array of AudioVoice, and deals + * with voices allocations, with setting notes to be played, and + * parameters to be set. + * + * @class p5.PolySynth + * @constructor + * + * @param {Number} [synthVoice] A monophonic synth voice inheriting + * the AudioVoice class. Defaults to p5.MonoSynth + * @param {Number} [maxVoices] Number of voices, defaults to 8; + * @example + *
+ * var polySynth; + * + * function setup() { + * var cnv = createCanvas(100, 100); + * cnv.mousePressed(playSynth); + * + * polySynth = new p5.PolySynth(); + * + * textAlign(CENTER); + * text('click to play', width/2, height/2); + * } + * + * function playSynth() { + * // note duration (in seconds) + * var dur = 1.5; + * + * // time from now (in seconds) + * var time = 0; + * + * // velocity (volume, from 0 to 1) + * var vel = 0.1; + * + * // notes can overlap with each other + * polySynth.play("G2", vel, 0, dur); + * polySynth.play("C3", vel, time += 1/3, dur); + * polySynth.play("G3", vel, time += 1/3, dur); + * + * background(random(255), random(255), 255); + * text('click to play', width/2, height/2); + * } + *
+ **/ + p5.PolySynth = function (audioVoice, maxVoices) { + //audiovoices will contain maxVoices many monophonic synths + this.audiovoices = []; + /** + * An object that holds information about which notes have been played and + * which notes are currently being played. New notes are added as keys + * on the fly. While a note has been attacked, but not released, the value of the + * key is the audiovoice which is generating that note. When notes are released, + * the value of the key becomes undefined. + * @property notes + */ + this.notes = {}; + //indices of the most recently used, and least recently used audiovoice + this._newest = 0; + this._oldest = 0; + /** + * A PolySynth must have at least 1 voice, defaults to 8 + * @property polyvalue + */ + this.maxVoices = maxVoices || 8; + /** + * Monosynth that generates the sound for each note that is triggered. The + * p5.PolySynth defaults to using the p5.MonoSynth as its voice. + * @property AudioVoice + */ + this.AudioVoice = audioVoice === undefined ? p5.MonoSynth : audioVoice; + /** + * This value must only change as a note is attacked or released. Due to delay + * and sustain times, Tone.TimelineSignal is required to schedule the change in value. + * @private + * @property {Tone.TimelineSignal} _voicesInUse + */ + this._voicesInUse = new TimelineSignal(0); + this.output = p5sound.audiocontext.createGain(); + this.connect(); + //Construct the appropriate number of audiovoices + this._allocateVoices(); + p5sound.soundArray.push(this); + }; + /** + * Construct the appropriate number of audiovoices + * @private + * @method _allocateVoices + */ + p5.PolySynth.prototype._allocateVoices = function () { + for (var i = 0; i < this.maxVoices; i++) { + this.audiovoices.push(new this.AudioVoice()); + this.audiovoices[i].disconnect(); + this.audiovoices[i].connect(this.output); + } + }; + /** + * Play a note by triggering noteAttack and noteRelease with sustain time + * + * @method play + * @param {Number} [note] midi note to play (ranging from 0 to 127 - 60 being a middle C) + * @param {Number} [velocity] velocity of the note to play (ranging from 0 to 1) + * @param {Number} [secondsFromNow] time from now (in seconds) at which to play + * @param {Number} [sustainTime] time to sustain before releasing the envelope + * @example + *
+ * var polySynth; + * + * function setup() { + * var cnv = createCanvas(100, 100); + * cnv.mousePressed(playSynth); + * + * polySynth = new p5.PolySynth(); + * + * textAlign(CENTER); + * text('click to play', width/2, height/2); + * } + * + * function playSynth() { + * // note duration (in seconds) + * var dur = 0.1; + * + * // time from now (in seconds) + * var time = 0; + * + * // velocity (volume, from 0 to 1) + * var vel = 0.1; + * + * polySynth.play("G2", vel, 0, dur); + * polySynth.play("C3", vel, 0, dur); + * polySynth.play("G3", vel, 0, dur); + * + * background(random(255), random(255), 255); + * text('click to play', width/2, height/2); + * } + *
+ */ + p5.PolySynth.prototype.play = function (note, velocity, secondsFromNow, susTime) { + var susTime = susTime || 1; + this.noteAttack(note, velocity, secondsFromNow); + this.noteRelease(note, secondsFromNow + susTime); + }; + /** + * noteADSR sets the envelope for a specific note that has just been triggered. + * Using this method modifies the envelope of whichever audiovoice is being used + * to play the desired note. The envelope should be reset before noteRelease is called + * in order to prevent the modified envelope from being used on other notes. + * + * @method noteADSR + * @param {Number} [note] Midi note on which ADSR should be set. + * @param {Number} [attackTime] Time (in seconds before envelope + * reaches Attack Level + * @param {Number} [decayTime] Time (in seconds) before envelope + * reaches Decay/Sustain Level + * @param {Number} [susRatio] Ratio between attackLevel and releaseLevel, on a scale from 0 to 1, + * where 1.0 = attackLevel, 0.0 = releaseLevel. + * The susRatio determines the decayLevel and the level at which the + * sustain portion of the envelope will sustain. + * For example, if attackLevel is 0.4, releaseLevel is 0, + * and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is + * increased to 1.0 (using setRange), + * then decayLevel would increase proportionally, to become 0.5. + * @param {Number} [releaseTime] Time in seconds from now (defaults to 0) + **/ + p5.PolySynth.prototype.noteADSR = function (note, a, d, s, r, timeFromNow) { + var now = p5sound.audiocontext.currentTime; + var timeFromNow = timeFromNow || 0; + var t = now + timeFromNow; + this.audiovoices[this.notes[note].getValueAtTime(t)].setADSR(a, d, s, r); + }; + /** + * Set the PolySynths global envelope. This method modifies the envelopes of each + * monosynth so that all notes are played with this envelope. + * + * @method setADSR + * @param {Number} [attackTime] Time (in seconds before envelope + * reaches Attack Level + * @param {Number} [decayTime] Time (in seconds) before envelope + * reaches Decay/Sustain Level + * @param {Number} [susRatio] Ratio between attackLevel and releaseLevel, on a scale from 0 to 1, + * where 1.0 = attackLevel, 0.0 = releaseLevel. + * The susRatio determines the decayLevel and the level at which the + * sustain portion of the envelope will sustain. + * For example, if attackLevel is 0.4, releaseLevel is 0, + * and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is + * increased to 1.0 (using setRange), + * then decayLevel would increase proportionally, to become 0.5. + * @param {Number} [releaseTime] Time in seconds from now (defaults to 0) + **/ + p5.PolySynth.prototype.setADSR = function (a, d, s, r) { + this.audiovoices.forEach(function (voice) { + voice.setADSR(a, d, s, r); + }); + }; + /** + * Trigger the Attack, and Decay portion of a MonoSynth. + * Similar to holding down a key on a piano, but it will + * hold the sustain level until you let go. + * + * @method noteAttack + * @param {Number} [note] midi note on which attack should be triggered. + * @param {Number} [velocity] velocity of the note to play (ranging from 0 to 1)/ + * @param {Number} [secondsFromNow] time from now (in seconds) + * @example + *
+ * var polySynth = new p5.PolySynth(); + * var pitches = ["G", "D", "G", "C"]; + * var octaves = [2, 3, 4]; + * + * function mousePressed() { + * // play a chord: multiple notes at the same time + * for (var i = 0; i < 4; i++) { + * var note = random(pitches) + random(octaves); + * polySynth.noteAttack(note, 0.1); + * } + * } + * + * function mouseReleased() { + * // release all voices + * polySynth.noteRelease(); + * } + *
+ */ + p5.PolySynth.prototype.noteAttack = function (_note, _velocity, secondsFromNow) { + //this value goes to the audiovoices which handle their own scheduling + var secondsFromNow = ~~secondsFromNow; + //this value is used by this._voicesInUse + var acTime = p5sound.audiocontext.currentTime + secondsFromNow; + //Convert note to frequency if necessary. This is because entries into this.notes + //should be based on frequency for the sake of consistency. + var note = noteToFreq(_note); + var velocity = _velocity || 0.1; + var currentVoice; + //Release the note if it is already playing + if (this.notes[note] && this.notes[note].getValueAtTime(acTime) !== null) { + this.noteRelease(note, 0); + } + //Check to see how many voices are in use at the time the note will start + if (this._voicesInUse.getValueAtTime(acTime) < this.maxVoices) { + currentVoice = Math.max(~~this._voicesInUse.getValueAtTime(acTime), 0); + } else { + currentVoice = this._oldest; + var oldestNote = p5.prototype.freqToMidi(this.audiovoices[this._oldest].oscillator.freq().value); + this.noteRelease(oldestNote); + this._oldest = (this._oldest + 1) % (this.maxVoices - 1); + } + //Overrite the entry in the notes object. A note (frequency value) + //corresponds to the index of the audiovoice that is playing it + this.notes[note] = new TimelineSignal(); + this.notes[note].setValueAtTime(currentVoice, acTime); + //Find the scheduled change in this._voicesInUse that will be previous to this new note + //Add 1 and schedule this value at time 't', when this note will start playing + var previousVal = this._voicesInUse._searchBefore(acTime) === null ? 0 : this._voicesInUse._searchBefore(acTime).value; + this._voicesInUse.setValueAtTime(previousVal + 1, acTime); + //Then update all scheduled values that follow to increase by 1 + this._updateAfter(acTime, 1); + this._newest = currentVoice; + //The audiovoice handles the actual scheduling of the note + if (typeof velocity === 'number') { + var maxRange = 1 / this._voicesInUse.getValueAtTime(acTime) * 2; + velocity = velocity > maxRange ? maxRange : velocity; + } + this.audiovoices[currentVoice].triggerAttack(note, velocity, secondsFromNow); + }; + /** + * Private method to ensure accurate values of this._voicesInUse + * Any time a new value is scheduled, it is necessary to increment all subsequent + * scheduledValues after attack, and decrement all subsequent + * scheduledValues after release + * + * @private + * @param {[type]} time [description] + * @param {[type]} value [description] + * @return {[type]} [description] + */ + p5.PolySynth.prototype._updateAfter = function (time, value) { + if (this._voicesInUse._searchAfter(time) === null) { + return; + } else { + this._voicesInUse._searchAfter(time).value += value; + var nextTime = this._voicesInUse._searchAfter(time).time; + this._updateAfter(nextTime, value); + } + }; + /** + * Trigger the Release of an AudioVoice note. This is similar to releasing + * the key on a piano and letting the sound fade according to the + * release level and release time. + * + * @method noteRelease + * @param {Number} [note] midi note on which attack should be triggered. + * If no value is provided, all notes will be released. + * @param {Number} [secondsFromNow] time to trigger the release + * @example + *
+ * var pitches = ["G", "D", "G", "C"]; + * var octaves = [2, 3, 4]; + * var polySynth = new p5.PolySynth(); + * + * function mousePressed() { + * // play a chord: multiple notes at the same time + * for (var i = 0; i < 4; i++) { + * var note = random(pitches) + random(octaves); + * polySynth.noteAttack(note, 0.1); + * } + * } + * + * function mouseReleased() { + * // release all voices + * polySynth.noteRelease(); + * } + *
+ * + */ + p5.PolySynth.prototype.noteRelease = function (_note, secondsFromNow) { + var now = p5sound.audiocontext.currentTime; + var tFromNow = secondsFromNow || 0; + var t = now + tFromNow; + // if a note value is not provided, release all voices + if (!_note) { + this.audiovoices.forEach(function (voice) { + voice.triggerRelease(tFromNow); + }); + this._voicesInUse.setValueAtTime(0, t); + for (var n in this.notes) { + this.notes[n].dispose(); + delete this.notes[n]; + } + return; + } + //Make sure note is in frequency inorder to query the this.notes object + var note = noteToFreq(_note); + if (!this.notes[note] || this.notes[note].getValueAtTime(t) === null) { + console.warn('Cannot release a note that is not already playing'); + } else { + //Find the scheduled change in this._voicesInUse that will be previous to this new note + //subtract 1 and schedule this value at time 't', when this note will stop playing + var previousVal = Math.max(~~this._voicesInUse.getValueAtTime(t).value, 1); + this._voicesInUse.setValueAtTime(previousVal - 1, t); + //Then update all scheduled values that follow to decrease by 1 but never go below 0 + if (previousVal > 0) { + this._updateAfter(t, -1); + } + this.audiovoices[this.notes[note].getValueAtTime(t)].triggerRelease(tFromNow); + this.notes[note].dispose(); + delete this.notes[note]; + this._newest = this._newest === 0 ? 0 : (this._newest - 1) % (this.maxVoices - 1); + } + }; + /** + * Connect to a p5.sound / Web Audio object. + * + * @method connect + * @param {Object} unit A p5.sound or Web Audio object + */ + p5.PolySynth.prototype.connect = function (unit) { + var u = unit || p5sound.input; + this.output.connect(u.input ? u.input : u); + }; + /** + * Disconnect all outputs + * + * @method disconnect + */ + p5.PolySynth.prototype.disconnect = function () { + if (this.output) { + this.output.disconnect(); + } + }; + /** + * Get rid of the MonoSynth and free up its resources / memory. + * + * @method dispose + */ + p5.PolySynth.prototype.dispose = function () { + this.audiovoices.forEach(function (voice) { + voice.dispose(); + }); + if (this.output) { + this.output.disconnect(); + delete this.output; + } + }; +}(master, Tone_signal_TimelineSignal, helpers); +var distortion; +'use strict'; +distortion = function () { + var Effect = effect; + /* + * Adapted from [Kevin Ennis on StackOverflow](http://stackoverflow.com/questions/22312841/waveshaper-node-in-webaudio-how-to-emulate-distortion) + */ + function makeDistortionCurve(amount) { + var k = typeof amount === 'number' ? amount : 50; + var numSamples = 44100; + var curve = new Float32Array(numSamples); + var deg = Math.PI / 180; + var i = 0; + var x; + for (; i < numSamples; ++i) { + x = i * 2 / numSamples - 1; + curve[i] = (3 + k) * x * 20 * deg / (Math.PI + k * Math.abs(x)); + } + return curve; + } + /** + * A Distortion effect created with a Waveshaper Node, + * with an approach adapted from + * [Kevin Ennis](http://stackoverflow.com/questions/22312841/waveshaper-node-in-webaudio-how-to-emulate-distortion) + * + * This class extends p5.Effect. + * Methods amp(), chain(), + * drywet(), connect(), and + * disconnect() are available. + * + * @class p5.Distortion + * @extends p5.Effect + * @constructor + * @param {Number} [amount=0.25] Unbounded distortion amount. + * Normal values range from 0-1. + * @param {String} [oversample='none'] 'none', '2x', or '4x'. + * + */ + p5.Distortion = function (amount, oversample) { + Effect.call(this); + if (typeof amount === 'undefined') { + amount = 0.25; + } + if (typeof amount !== 'number') { + throw new Error('amount must be a number'); + } + if (typeof oversample === 'undefined') { + oversample = '2x'; + } + if (typeof oversample !== 'string') { + throw new Error('oversample must be a String'); + } + var curveAmount = p5.prototype.map(amount, 0, 1, 0, 2000); + /** + * The p5.Distortion is built with a + * + * Web Audio WaveShaper Node. + * + * @property {AudioNode} WaveShaperNode + */ + this.waveShaperNode = this.ac.createWaveShaper(); + this.amount = curveAmount; + this.waveShaperNode.curve = makeDistortionCurve(curveAmount); + this.waveShaperNode.oversample = oversample; + this.input.connect(this.waveShaperNode); + this.waveShaperNode.connect(this.wet); + }; + p5.Distortion.prototype = Object.create(Effect.prototype); + /** + * Process a sound source, optionally specify amount and oversample values. + * + * @method process + * @param {Number} [amount=0.25] Unbounded distortion amount. + * Normal values range from 0-1. + * @param {String} [oversample='none'] 'none', '2x', or '4x'. + */ + p5.Distortion.prototype.process = function (src, amount, oversample) { + src.connect(this.input); + this.set(amount, oversample); + }; + /** + * Set the amount and oversample of the waveshaper distortion. + * + * @method set + * @param {Number} [amount=0.25] Unbounded distortion amount. + * Normal values range from 0-1. + * @param {String} [oversample='none'] 'none', '2x', or '4x'. + */ + p5.Distortion.prototype.set = function (amount, oversample) { + if (amount) { + var curveAmount = p5.prototype.map(amount, 0, 1, 0, 2000); + this.amount = curveAmount; + this.waveShaperNode.curve = makeDistortionCurve(curveAmount); + } + if (oversample) { + this.waveShaperNode.oversample = oversample; + } + }; + /** + * Return the distortion amount, typically between 0-1. + * + * @method getAmount + * @return {Number} Unbounded distortion amount. + * Normal values range from 0-1. + */ + p5.Distortion.prototype.getAmount = function () { + return this.amount; + }; + /** + * Return the oversampling. + * + * @method getOversample + * + * @return {String} Oversample can either be 'none', '2x', or '4x'. + */ + p5.Distortion.prototype.getOversample = function () { + return this.waveShaperNode.oversample; + }; + p5.Distortion.prototype.dispose = function () { + Effect.prototype.dispose.apply(this); + if (this.waveShaperNode) { + this.waveShaperNode.disconnect(); + this.waveShaperNode = null; + } + }; +}(effect); +var src_app; +'use strict'; +src_app = function () { + var p5SOUND = master; + return p5SOUND; +}(shims, audiocontext, master, helpers, errorHandler, panner, soundfile, amplitude, fft, signal, oscillator, envelope, pulse, noise, audioin, filter, eq, panner3d, listener3d, delay, reverb, metro, looper, soundloop, compressor, soundRecorder, peakdetect, gain, monosynth, polysynth, distortion, audioVoice, monosynth, polysynth); })); \ No newline at end of file diff --git a/Games/Fruit_Ninja/p5/addons/p5.sound.min.js b/Games/Fruit_Ninja/p5/addons/p5.sound.min.js index a4efca3481..899f447372 100644 --- a/Games/Fruit_Ninja/p5/addons/p5.sound.min.js +++ b/Games/Fruit_Ninja/p5/addons/p5.sound.min.js @@ -1,28 +1,28 @@ -/*! p5.sound.min.js v0.3.11 2019-03-14 */ - -/** - * p5.sound - * https://p5js.org/reference/#/libraries/p5.sound - * - * From the Processing Foundation and contributors - * https://github.com/processing/p5.js-sound/graphs/contributors - * - * MIT License (MIT) - * https://github.com/processing/p5.js-sound/blob/master/LICENSE - * - * Some of the many audio libraries & resources that inspire p5.sound: - * - TONE.js (c) Yotam Mann. Licensed under The MIT License (MIT). https://github.com/TONEnoTONE/Tone.js - * - buzz.js (c) Jay Salvat. Licensed under The MIT License (MIT). http://buzz.jaysalvat.com/ - * - Boris Smus Web Audio API book, 2013. Licensed under the Apache License http://www.apache.org/licenses/LICENSE-2.0 - * - wavesurfer.js https://github.com/katspaugh/wavesurfer.js - * - Web Audio Components by Jordan Santell https://github.com/web-audio-components - * - Wilm Thoben's Sound library for Processing https://github.com/processing/processing/tree/master/java/libraries/sound - * - * Web Audio API: http://w3.org/TR/webaudio/ - */ - -!function(t,e){"function"==typeof define&&define.amd?define("p5.sound",["p5"],function(t){e(t)}):e("object"==typeof exports?require("../p5"):t.p5)}(this,function(t){var e;e=function(){!function(){function t(t){t&&(t.setTargetAtTime||(t.setTargetAtTime=t.setTargetValueAtTime))}window.hasOwnProperty("webkitAudioContext")&&!window.hasOwnProperty("AudioContext")&&(window.AudioContext=window.webkitAudioContext,"function"!=typeof AudioContext.prototype.createGain&&(AudioContext.prototype.createGain=AudioContext.prototype.createGainNode),"function"!=typeof AudioContext.prototype.createDelay&&(AudioContext.prototype.createDelay=AudioContext.prototype.createDelayNode),"function"!=typeof AudioContext.prototype.createScriptProcessor&&(AudioContext.prototype.createScriptProcessor=AudioContext.prototype.createJavaScriptNode),"function"!=typeof AudioContext.prototype.createPeriodicWave&&(AudioContext.prototype.createPeriodicWave=AudioContext.prototype.createWaveTable),AudioContext.prototype.internal_createGain=AudioContext.prototype.createGain,AudioContext.prototype.createGain=function(){var e=this.internal_createGain();return t(e.gain),e},AudioContext.prototype.internal_createDelay=AudioContext.prototype.createDelay,AudioContext.prototype.createDelay=function(e){var i=e?this.internal_createDelay(e):this.internal_createDelay();return t(i.delayTime),i},AudioContext.prototype.internal_createBufferSource=AudioContext.prototype.createBufferSource,AudioContext.prototype.createBufferSource=function(){var e=this.internal_createBufferSource();return e.start?(e.internal_start=e.start,e.start=function(t,i,n){"undefined"!=typeof n?e.internal_start(t||0,i,n):e.internal_start(t||0,i||0)}):e.start=function(t,e,i){e||i?this.noteGrainOn(t||0,e,i):this.noteOn(t||0)},e.stop?(e.internal_stop=e.stop,e.stop=function(t){e.internal_stop(t||0)}):e.stop=function(t){this.noteOff(t||0)},t(e.playbackRate),e},AudioContext.prototype.internal_createDynamicsCompressor=AudioContext.prototype.createDynamicsCompressor,AudioContext.prototype.createDynamicsCompressor=function(){var e=this.internal_createDynamicsCompressor();return t(e.threshold),t(e.knee),t(e.ratio),t(e.reduction),t(e.attack),t(e.release),e},AudioContext.prototype.internal_createBiquadFilter=AudioContext.prototype.createBiquadFilter,AudioContext.prototype.createBiquadFilter=function(){var e=this.internal_createBiquadFilter();return t(e.frequency),t(e.detune),t(e.Q),t(e.gain),e},"function"!=typeof AudioContext.prototype.createOscillator&&(AudioContext.prototype.internal_createOscillator=AudioContext.prototype.createOscillator,AudioContext.prototype.createOscillator=function(){var e=this.internal_createOscillator();return e.start?(e.internal_start=e.start,e.start=function(t){e.internal_start(t||0)}):e.start=function(t){this.noteOn(t||0)},e.stop?(e.internal_stop=e.stop,e.stop=function(t){e.internal_stop(t||0)}):e.stop=function(t){this.noteOff(t||0)},e.setPeriodicWave||(e.setPeriodicWave=e.setWaveTable),t(e.frequency),t(e.detune),e})),window.hasOwnProperty("webkitOfflineAudioContext")&&!window.hasOwnProperty("OfflineAudioContext")&&(window.OfflineAudioContext=window.webkitOfflineAudioContext)}(window),navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;var e=document.createElement("audio");t.prototype.isSupported=function(){return!!e.canPlayType};var i=function(){return!!e.canPlayType&&e.canPlayType('audio/ogg; codecs="vorbis"')},n=function(){return!!e.canPlayType&&e.canPlayType("audio/mpeg;")},o=function(){return!!e.canPlayType&&e.canPlayType('audio/wav; codecs="1"')},r=function(){return!!e.canPlayType&&(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;"))},s=function(){return!!e.canPlayType&&e.canPlayType("audio/x-aiff;")};t.prototype.isFileSupported=function(t){switch(t.toLowerCase()){case"mp3":return n();case"wav":return o();case"ogg":return i();case"aac":case"m4a":case"mp4":return r();case"aif":case"aiff":return s();default:return!1}}}();var i;!function(t,e){i=function(){return e()}()}(this,function(){function t(t){var e=t.createBuffer(1,1,t.sampleRate),i=t.createBufferSource();i.buffer=e,i.connect(t.destination),i.start(0),t.resume&&t.resume()}function e(t){return"running"===t.state}function i(t,i){function n(){e(t)?i():(requestAnimationFrame(n),t.resume&&t.resume())}e(t)?i():n()}function n(t,e,i){if(Array.isArray(t)||NodeList&&t instanceof NodeList)for(var o=0;o1&&(this.input=new Array(t)),this.isUndef(e)||1===e?this.output=this.context.createGain():e>1&&(this.output=new Array(t))};t.prototype.set=function(e,i,n){if(this.isObject(e))n=i;else if(this.isString(e)){var o={};o[e]=i,e=o}t:for(var r in e){i=e[r];var s=this;if(-1!==r.indexOf(".")){for(var a=r.split("."),u=0;u1)for(var t=arguments[0],e=1;e0)for(var t=this,e=0;e0)for(var t=0;tn;n++)i[n].apply(this,e)}return this},t.Emitter.mixin=function(e){var i=["on","off","emit"];e._events={};for(var n=0;n1?t.getChannelData(1):e;var s=i(e,r),a=new window.ArrayBuffer(44+2*s.length),u=new window.DataView(a);n(u,0,"RIFF"),u.setUint32(4,36+2*s.length,!0),n(u,8,"WAVE"),n(u,12,"fmt "),u.setUint32(16,16,!0),u.setUint16(20,1,!0),u.setUint16(22,2,!0),u.setUint32(24,o.audiocontext.sampleRate,!0),u.setUint32(28,4*o.audiocontext.sampleRate,!0),u.setUint16(32,4,!0),u.setUint16(34,16,!0),n(u,36,"data"),u.setUint32(40,2*s.length,!0);for(var c=s.length,p=44,h=1,l=0;c>l;l++)u.setInt16(p,s[l]*(32767*h),!0),p+=2;return u}function i(t,e){for(var i=t.length+e.length,n=new Float32Array(i),o=0,r=0;i>r;)n[r++]=t[o],n[r++]=e[o],o++;return n}function n(t,e,i){for(var n=i.length,o=0;n>o;o++)t.setUint8(e+o,i.charCodeAt(o))}var o=a;t.prototype.sampleRate=function(){return o.audiocontext.sampleRate},t.prototype.freqToMidi=function(t){var e=Math.log(t/440)/Math.log(2),i=Math.round(12*e)+69;return i};var r=t.prototype.midiToFreq=function(t){return 440*Math.pow(2,(t-69)/12)},s=function(t){if("string"!=typeof t)return t;var e={A:21,B:23,C:24,D:26,E:28,F:29,G:31},i=e[t[0].toUpperCase()],n=~~t.slice(-1);switch(i+=12*(n-1),t[1]){case"#":i+=1;break;case"b":i-=1}return r(i)};return t.prototype.soundFormats=function(){o.extensions=[];for(var t=0;t-1))throw arguments[t]+" is not a valid sound format!";o.extensions.push(arguments[t])}},t.prototype.disposeSound=function(){for(var t=0;t-1)if(t.prototype.isFileSupported(n))i=i;else for(var r=i.split("."),s=r[r.length-1],a=0;a1?(this.splitter=i.createChannelSplitter(2),this.input.connect(this.splitter),this.splitter.connect(this.left,1),this.splitter.connect(this.right,0)):(this.input.connect(this.left),this.input.connect(this.right)),this.output=i.createChannelMerger(2),this.left.connect(this.output,0,1),this.right.connect(this.output,0,0),this.output.connect(e)},t.Panner.prototype.pan=function(t,e){var n=e||0,o=i.currentTime+n,r=(t+1)/2,s=Math.cos(r*Math.PI/2),a=Math.sin(r*Math.PI/2);this.left.gain.linearRampToValueAtTime(a,o),this.right.gain.linearRampToValueAtTime(s,o)},t.Panner.prototype.inputChannels=function(t){1===t?(this.input.disconnect(),this.input.connect(this.left),this.input.connect(this.right)):2===t&&(this.splitter=i.createChannelSplitter(2),this.input.disconnect(),this.input.connect(this.splitter),this.splitter.connect(this.left,1),this.splitter.connect(this.right,0))},t.Panner.prototype.connect=function(t){this.output.connect(t)},t.Panner.prototype.disconnect=function(){this.output&&this.output.disconnect()})}(a);var h;h=function(){function e(t,e){for(var i={},n=t.length,o=0;n>o;o++){if(t[o]>e){var r=t[o],s=new v(r,o);i[o]=s,o+=6e3}o++}return i}function i(t){for(var e=[],i=Object.keys(t).sort(),n=0;no;o++){var r=t[i[n]],s=t[i[n+o]];if(r&&s){var a=r.sampleIndex,u=s.sampleIndex,c=u-a;c>0&&r.intervals.push(c);var p=e.some(function(t){return t.interval===c?(t.count++,t):void 0});p||e.push({interval:c,count:1})}}return e}function n(t,e){var i=[];return t.forEach(function(t){try{var n=Math.abs(60/(t.interval/e));n=r(n);var o=i.some(function(e){return e.tempo===n?e.count+=t.count:void 0});if(!o){if(isNaN(n))return;i.push({tempo:Math.round(n),count:t.count})}}catch(s){throw s}}),i}function o(t,e,i,n){for(var o=[],s=Object.keys(t).sort(),a=0;a.01?!0:void 0})}function r(t){if(isFinite(t)&&0!==t){for(;90>t;)t*=2;for(;t>180&&t>90;)t/=2;return t}}function s(t){var e=t.inputBuffer.getChannelData(0);this._lastPos=e[e.length-1]||0,this._onTimeUpdate(self._lastPos)}function p(t){const e=t.target,i=this;e._playing=!1,e.removeEventListener("ended",i._clearOnEnd),i._onended(i),i.bufferSourceNodes.forEach(function(t,e){t._playing===!1&&i.bufferSourceNodes.splice(e)}),0===i.bufferSourceNodes.length&&(i._playing=!1)}var h=c,l=a,f=l.audiocontext,d=u.midiToFreq,m=u.convertToWav;t.SoundFile=function(e,i,n,o){if("undefined"!=typeof e){if("string"==typeof e||"string"==typeof e[0]){var r=t.prototype._checkFileFormats(e);this.url=r}else if("object"==typeof e&&!(window.File&&window.FileReader&&window.FileList&&window.Blob))throw"Unable to load file because the File API is not supported";e.file&&(e=e.file),this.file=e}this._onended=function(){},this._looping=!1,this._playing=!1,this._paused=!1,this._pauseTime=0,this._cues=[],this._cueIDCounter=0,this._lastPos=0,this._counterNode=null,this._scopeNode=null,this.bufferSourceNodes=[],this.bufferSourceNode=null,this.buffer=null,this.playbackRate=1,this.input=l.audiocontext.createGain(),this.output=l.audiocontext.createGain(),this.reversed=!1,this.startTime=0,this.endTime=null,this.pauseTime=0,this.mode="sustain",this.startMillis=null,this.panPosition=0,this.panner=new t.Panner(this.output,l.input,2),(this.url||this.file)&&this.load(i,n),l.soundArray.push(this),"function"==typeof o?this._whileLoading=o:this._whileLoading=function(){},this._onAudioProcess=s.bind(this),this._clearOnEnd=p.bind(this)},t.prototype.registerPreloadMethod("loadSound",t.prototype),t.prototype.loadSound=function(e,i,n,o){window.location.origin.indexOf("file://")>-1&&"undefined"===window.cordova&&window.alert("This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS");var r=this,s=new t.SoundFile(e,function(){"function"==typeof i&&i.apply(r,arguments),"function"==typeof r._decrementPreload&&r._decrementPreload()},n,o);return s},t.SoundFile.prototype.load=function(t,e){var i=this,n=(new Error).stack;if(void 0!==this.url&&""!==this.url){var o=new XMLHttpRequest;o.addEventListener("progress",function(t){i._updateProgress(t)},!1),o.open("GET",this.url,!0),o.responseType="arraybuffer",o.onload=function(){if(200===o.status){if(!i.panner)return;f.decodeAudioData(o.response,function(e){i.panner&&(i.buffer=e,i.panner.inputChannels(e.numberOfChannels),t&&t(i))},function(){if(i.panner){var t=new h("decodeAudioData",n,i.url),o="AudioContext error at decodeAudioData for "+i.url;e?(t.msg=o,e(t)):console.error(o+"\n The error stack trace includes: \n"+t.stack)}})}else{if(!i.panner)return;var r=new h("loadSound",n,i.url),s="Unable to load "+i.url+". The request status was: "+o.status+" ("+o.statusText+")";e?(r.message=s,e(r)):console.error(s+"\n The error stack trace includes: \n"+r.stack)}},o.onerror=function(){var t=new h("loadSound",n,i.url),o="There was no response from the server at "+i.url+". Check the url and internet connectivity.";e?(t.message=o,e(t)):console.error(o+"\n The error stack trace includes: \n"+t.stack)},o.send()}else if(void 0!==this.file){var r=new FileReader;r.onload=function(){i.panner&&f.decodeAudioData(r.result,function(e){i.panner&&(i.buffer=e,i.panner.inputChannels(e.numberOfChannels),t&&t(i))})},r.onerror=function(t){i.panner&&onerror&&onerror(t)},r.readAsArrayBuffer(this.file)}},t.SoundFile.prototype._updateProgress=function(t){if(t.lengthComputable){var e=t.loaded/t.total*.99;this._whileLoading(e,t)}else this._whileLoading("size unknown")},t.SoundFile.prototype.isLoaded=function(){return this.buffer?!0:!1},t.SoundFile.prototype.play=function(t,e,i,n,o){if(!this.output)return void console.warn("SoundFile.play() called after dispose");var r,s,a=l.audiocontext.currentTime,u=t||0;if(0>u&&(u=0),u+=a,"undefined"!=typeof e&&this.rate(e),"undefined"!=typeof i&&this.setVolume(i),!this.buffer)throw"not ready to play file, buffer has yet to load. Try preload()";if(this._pauseTime=0,"restart"===this.mode&&this.buffer&&this.bufferSourceNode&&(this.bufferSourceNode.stop(u),this._counterNode.stop(u)),"untildone"!==this.mode||!this.isPlaying()){if(this.bufferSourceNode=this._initSourceNode(),delete this._counterNode,this._counterNode=this._initCounterNode(),n){if(!(n>=0&&nt&&!this.reversed?(t=Math.abs(t),e=!0):t>0&&this.reversed&&(e=!0),this.bufferSourceNode){var i=l.audiocontext.currentTime;this.bufferSourceNode.playbackRate.cancelScheduledValues(i),this.bufferSourceNode.playbackRate.linearRampToValueAtTime(Math.abs(t),i),this._counterNode.playbackRate.cancelScheduledValues(i),this._counterNode.playbackRate.linearRampToValueAtTime(Math.abs(t),i)}return e&&this.reverseBuffer(),this.playbackRate},t.SoundFile.prototype.setPitch=function(t){var e=d(t)/d(60);this.rate(e)},t.SoundFile.prototype.getPlaybackRate=function(){return this.playbackRate},t.SoundFile.prototype.duration=function(){return this.buffer?this.buffer.duration:0},t.SoundFile.prototype.currentTime=function(){return this.reversed?Math.abs(this._lastPos-this.buffer.length)/f.sampleRate:this._lastPos/f.sampleRate},t.SoundFile.prototype.jump=function(t,e){if(0>t||t>this.buffer.duration)throw"jump time out of range";if(e>this.buffer.duration-t)throw"end time out of range";var i=t||0,n=e||void 0;this.isPlaying()&&this.stop(0),this.play(0,this.playbackRate,this.output.gain.value,i,n); -},t.SoundFile.prototype.channels=function(){return this.buffer.numberOfChannels},t.SoundFile.prototype.sampleRate=function(){return this.buffer.sampleRate},t.SoundFile.prototype.frames=function(){return this.buffer.length},t.SoundFile.prototype.getPeaks=function(t){if(!this.buffer)throw"Cannot load peaks yet, buffer is not loaded";if(t||(t=5*window.width),this.buffer){for(var e=this.buffer,i=e.length/t,n=~~(i/10)||1,o=e.numberOfChannels,r=new Float32Array(Math.round(t)),s=0;o>s;s++)for(var a=e.getChannelData(s),u=0;t>u;u++){for(var c=~~(u*i),p=~~(c+i),h=0,l=c;p>l;l+=n){var f=a[l];f>h?h=f:-f>h&&(h=f)}(0===s||Math.abs(h)>r[u])&&(r[u]=h)}return r}},t.SoundFile.prototype.reverseBuffer=function(){if(!this.buffer)throw"SoundFile is not done loading";var t=this._lastPos/f.sampleRate,e=this.getVolume();this.setVolume(0,.001);const i=this.buffer.numberOfChannels;for(var n=0;i>n;n++)this.buffer.getChannelData(n).reverse();this.reversed=!this.reversed,t&&this.jump(this.duration()-t),this.setVolume(e,.001)},t.SoundFile.prototype.onended=function(t){return this._onended=t,this},t.SoundFile.prototype.add=function(){},t.SoundFile.prototype.dispose=function(){var t=l.audiocontext.currentTime,e=l.soundArray.indexOf(this);if(l.soundArray.splice(e,1),this.stop(t),this.buffer&&this.bufferSourceNode){for(var i=0;io;o++){var r=n.getChannelData(o);r.set(t[o])}this.buffer=n,this.panner.inputChannels(e)};var y=function(t){const e=t.length,i=f.createBuffer(1,t.length,f.sampleRate),n=i.getChannelData(0);for(var o=0;e>o;o++)n[o]=o;return i};t.SoundFile.prototype._initCounterNode=function(){var e=this,i=f.currentTime,n=f.createBufferSource();return e._scopeNode&&(e._scopeNode.disconnect(),e._scopeNode.removeEventListener("audioprocess",e._onAudioProcess),delete e._scopeNode),e._scopeNode=f.createScriptProcessor(256,1,1),n.buffer=y(e.buffer),n.playbackRate.setValueAtTime(e.playbackRate,i),n.connect(e._scopeNode),e._scopeNode.connect(t.soundOut._silentNode),e._scopeNode.addEventListener("audioprocess",e._onAudioProcess),n},t.SoundFile.prototype._initSourceNode=function(){var t=f.createBufferSource();return t.buffer=this.buffer,t.playbackRate.value=this.playbackRate,t.connect(this.output),t},t.SoundFile.prototype.processPeaks=function(t,r,s,a){var u=this.buffer.length,c=this.buffer.sampleRate,p=this.buffer,h=[],l=r||.9,f=l,d=s||.22,m=a||200,y=new window.OfflineAudioContext(1,u,c),v=y.createBufferSource();v.buffer=p;var g=y.createBiquadFilter();g.type="lowpass",v.connect(g),g.connect(y.destination),v.start(0),y.startRendering(),y.oncomplete=function(r){if(self.panner){var s=r.renderedBuffer,a=s.getChannelData(0);do h=e(a,f),f-=.005;while(Object.keys(h).length=d);var u=i(h),c=n(u,s.sampleRate),p=c.sort(function(t,e){return e.count-t.count}).splice(0,5);this.tempo=p[0].tempo;var l=5,y=o(h,p[0].tempo,s.sampleRate,l);t(y)}}};var v=function(t,e){this.sampleIndex=e,this.amplitude=t,this.tempos=[],this.intervals=[]},g=function(t,e,i,n){this.callback=t,this.time=e,this.id=i,this.val=n};t.SoundFile.prototype.addCue=function(t,e,i){var n=this._cueIDCounter++,o=new g(e,t,n,i);return this._cues.push(o),n},t.SoundFile.prototype.removeCue=function(t){for(var e=this._cues.length,i=0;e>i;i++){var n=this._cues[i];if(n.id===t){this._cues.splice(i,1);break}}0===this._cues.length},t.SoundFile.prototype.clearCues=function(){this._cues=[]},t.SoundFile.prototype._onTimeUpdate=function(t){for(var e=t/this.buffer.sampleRate,i=this._cues.length,n=0;i>n;n++){var o=this._cues[n],r=o.time,s=o.val;this._prevTime=r&&o.callback(s)}this._prevTime=e},t.SoundFile.prototype.save=function(e){const i=m(this.buffer);t.prototype.saveSound([i],e,"wav")},t.SoundFile.prototype.getBlob=function(){const t=m(this.buffer);return new Blob([t],{type:"audio/wav"})}}(c,a,u,u);var l;l=function(){var e=a;t.Amplitude=function(t){this.bufferSize=2048,this.audiocontext=e.audiocontext,this.processor=this.audiocontext.createScriptProcessor(this.bufferSize,2,1),this.input=this.processor,this.output=this.audiocontext.createGain(),this.smoothing=t||0,this.volume=0,this.average=0,this.stereoVol=[0,0],this.stereoAvg=[0,0],this.stereoVolNorm=[0,0],this.volMax=.001,this.normalize=!1,this.processor.onaudioprocess=this._audioProcess.bind(this),this.processor.connect(this.output),this.output.gain.value=0,this.output.connect(this.audiocontext.destination),e.meter.connect(this.processor),e.soundArray.push(this)},t.Amplitude.prototype.setInput=function(i,n){e.meter.disconnect(),n&&(this.smoothing=n),null==i?(console.log("Amplitude input source is not ready! Connecting to master output instead"),e.meter.connect(this.processor)):i instanceof t.Signal?i.output.connect(this.processor):i?(i.connect(this.processor),this.processor.disconnect(),this.processor.connect(this.output)):e.meter.connect(this.processor)},t.Amplitude.prototype.connect=function(t){t?t.hasOwnProperty("input")?this.output.connect(t.input):this.output.connect(t):this.output.connect(this.panner.connect(e.input))},t.Amplitude.prototype.disconnect=function(){this.output&&this.output.disconnect()},t.Amplitude.prototype._audioProcess=function(t){for(var e=0;ea;a++)i=n[a],this.normalize?(r+=Math.max(Math.min(i/this.volMax,1),-1),s+=Math.max(Math.min(i/this.volMax,1),-1)*Math.max(Math.min(i/this.volMax,1),-1)):(r+=i,s+=i*i);var u=r/o,c=Math.sqrt(s/o);this.stereoVol[e]=Math.max(c,this.stereoVol[e]*this.smoothing),this.stereoAvg[e]=Math.max(u,this.stereoVol[e]*this.smoothing),this.volMax=Math.max(this.stereoVol[e],this.volMax)}var p=this,h=this.stereoVol.reduce(function(t,e,i){return p.stereoVolNorm[i-1]=Math.max(Math.min(p.stereoVol[i-1]/p.volMax,1),0),p.stereoVolNorm[i]=Math.max(Math.min(p.stereoVol[i]/p.volMax,1),0),t+e});this.volume=h/this.stereoVol.length,this.volNorm=Math.max(Math.min(this.volume/this.volMax,1),0)},t.Amplitude.prototype.getLevel=function(t){return"undefined"!=typeof t?this.normalize?this.stereoVolNorm[t]:this.stereoVol[t]:this.normalize?this.volNorm:this.volume},t.Amplitude.prototype.toggleNormalize=function(t){"boolean"==typeof t?this.normalize=t:this.normalize=!this.normalize},t.Amplitude.prototype.smooth=function(t){t>=0&&1>t?this.smoothing=t:console.log("Error: smoothing must be between 0 and 1")},t.Amplitude.prototype.dispose=function(){var t=e.soundArray.indexOf(this);e.soundArray.splice(t,1),this.input&&(this.input.disconnect(),delete this.input),this.output&&(this.output.disconnect(),delete this.output),delete this.processor}}(a);var f;f=function(){var e=a;t.FFT=function(t,i){this.input=this.analyser=e.audiocontext.createAnalyser(),Object.defineProperties(this,{bins:{get:function(){return this.analyser.fftSize/2},set:function(t){this.analyser.fftSize=2*t},configurable:!0,enumerable:!0},smoothing:{get:function(){return this.analyser.smoothingTimeConstant},set:function(t){this.analyser.smoothingTimeConstant=t},configurable:!0,enumerable:!0}}),this.smooth(t),this.bins=i||1024,e.fftMeter.connect(this.analyser),this.freqDomain=new Uint8Array(this.analyser.frequencyBinCount),this.timeDomain=new Uint8Array(this.analyser.frequencyBinCount),this.bass=[20,140],this.lowMid=[140,400],this.mid=[400,2600],this.highMid=[2600,5200],this.treble=[5200,14e3],e.soundArray.push(this)},t.FFT.prototype.setInput=function(t){t?(t.output?t.output.connect(this.analyser):t.connect&&t.connect(this.analyser),e.fftMeter.disconnect()):e.fftMeter.connect(this.analyser)},t.FFT.prototype.waveform=function(){for(var e,i,n,s=0;si){var o=i;i=t,t=o}for(var r=Math.round(t/n*this.freqDomain.length),s=Math.round(i/n*this.freqDomain.length),a=0,u=0,c=r;s>=c;c++)a+=this.freqDomain[c],u+=1;var p=a/u;return p}throw"invalid input for getEnergy()"}var h=Math.round(t/n*this.freqDomain.length);return this.freqDomain[h]},t.FFT.prototype.getFreq=function(t,e){console.log("getFreq() is deprecated. Please use getEnergy() instead.");var i=this.getEnergy(t,e);return i},t.FFT.prototype.getCentroid=function(){for(var t=e.audiocontext.sampleRate/2,i=0,n=0,o=0;os;s++)o[r]=void 0!==o[r]?(o[r]+e[s])/2:e[s],s%n===n-1&&r++;return o},t.FFT.prototype.logAverages=function(t){for(var i=e.audiocontext.sampleRate/2,n=this.freqDomain,o=n.length,r=new Array(t.length),s=0,a=0;o>a;a++){var u=Math.round(a*i/this.freqDomain.length);u>t[s].hi&&s++,r[s]=void 0!==r[s]?(r[s]+n[a])/2:n[a]}return r},t.FFT.prototype.getOctaveBands=function(t,i){var t=t||3,i=i||15.625,n=[],o={lo:i/Math.pow(2,1/(2*t)),ctr:i,hi:i*Math.pow(2,1/(2*t))};n.push(o);for(var r=e.audiocontext.sampleRate/2;o.hie;e++){var n=e/(i-1)*2-1;this._curve[e]=t(n,e)}return this._shaper.curve=this._curve,this},Object.defineProperty(t.WaveShaper.prototype,"curve",{get:function(){return this._shaper.curve},set:function(t){this._curve=new Float32Array(t),this._shaper.curve=this._curve}}),Object.defineProperty(t.WaveShaper.prototype,"oversample",{get:function(){return this._shaper.oversample},set:function(t){if(-1===["none","2x","4x"].indexOf(t))throw new RangeError("Tone.WaveShaper: oversampling must be either 'none', '2x', or '4x'");this._shaper.oversample=t}}),t.WaveShaper.prototype.dispose=function(){return t.prototype.dispose.call(this),this._shaper.disconnect(),this._shaper=null,this._curve=null,this},t.WaveShaper}(n);var y;y=function(t){return t.TimeBase=function(e,i){if(!(this instanceof t.TimeBase))return new t.TimeBase(e,i);if(this._expr=this._noOp,e instanceof t.TimeBase)this.copy(e);else if(!this.isUndef(i)||this.isNumber(e)){i=this.defaultArg(i,this._defaultUnits);var n=this._primaryExpressions[i].method;this._expr=n.bind(this,e)}else this.isString(e)?this.set(e):this.isUndef(e)&&(this._expr=this._defaultExpr())},t.extend(t.TimeBase),t.TimeBase.prototype.set=function(t){return this._expr=this._parseExprString(t),this},t.TimeBase.prototype.clone=function(){var t=new this.constructor;return t.copy(this),t},t.TimeBase.prototype.copy=function(t){var e=t._expr();return this.set(e)},t.TimeBase.prototype._primaryExpressions={n:{regexp:/^(\d+)n/i,method:function(t){return t=parseInt(t),1===t?this._beatsToUnits(this._timeSignature()):this._beatsToUnits(4/t)}},t:{regexp:/^(\d+)t/i,method:function(t){return t=parseInt(t),this._beatsToUnits(8/(3*parseInt(t)))}},m:{regexp:/^(\d+)m/i,method:function(t){return this._beatsToUnits(parseInt(t)*this._timeSignature())}},i:{regexp:/^(\d+)i/i,method:function(t){return this._ticksToUnits(parseInt(t))}},hz:{regexp:/^(\d+(?:\.\d+)?)hz/i,method:function(t){return this._frequencyToUnits(parseFloat(t))}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method:function(t,e,i){var n=0;return t&&"0"!==t&&(n+=this._beatsToUnits(this._timeSignature()*parseFloat(t))),e&&"0"!==e&&(n+=this._beatsToUnits(parseFloat(e))),i&&"0"!==i&&(n+=this._beatsToUnits(parseFloat(i)/4)),n}},s:{regexp:/^(\d+(?:\.\d+)?s)/,method:function(t){return this._secondsToUnits(parseFloat(t))}},samples:{regexp:/^(\d+)samples/,method:function(t){return parseInt(t)/this.context.sampleRate}},"default":{regexp:/^(\d+(?:\.\d+)?)/,method:function(t){return this._primaryExpressions[this._defaultUnits].method.call(this,t)}}},t.TimeBase.prototype._binaryExpressions={"+":{regexp:/^\+/,precedence:2,method:function(t,e){return t()+e()}},"-":{regexp:/^\-/,precedence:2,method:function(t,e){return t()-e()}},"*":{regexp:/^\*/,precedence:1,method:function(t,e){return t()*e()}},"/":{regexp:/^\//,precedence:1,method:function(t,e){return t()/e()}}},t.TimeBase.prototype._unaryExpressions={neg:{regexp:/^\-/,method:function(t){return-t()}}},t.TimeBase.prototype._syntaxGlue={"(":{regexp:/^\(/},")":{regexp:/^\)/}},t.TimeBase.prototype._tokenize=function(t){function e(t,e){for(var i=["_binaryExpressions","_unaryExpressions","_primaryExpressions","_syntaxGlue"],n=0;n0;){t=t.trim();var o=e(t,this);n.push(o),t=t.substr(o.value.length)}return{next:function(){return n[++i]},peek:function(){return n[i+1]}}},t.TimeBase.prototype._matchGroup=function(t,e,i){var n=!1;if(!this.isUndef(t))for(var o in e){var r=e[o];if(r.regexp.test(t.value)){if(this.isUndef(i))return r;if(r.precedence===i)return r}}return n},t.TimeBase.prototype._parseBinary=function(t,e){this.isUndef(e)&&(e=2);var i;i=0>e?this._parseUnary(t):this._parseBinary(t,e-1);for(var n=t.peek();n&&this._matchGroup(n,this._binaryExpressions,e);)n=t.next(),i=n.method.bind(this,i,this._parseBinary(t,e-1)),n=t.peek();return i},t.TimeBase.prototype._parseUnary=function(t){var e,i;e=t.peek();var n=this._matchGroup(e,this._unaryExpressions);return n?(e=t.next(),i=this._parseUnary(t),n.method.bind(this,i)):this._parsePrimary(t)},t.TimeBase.prototype._parsePrimary=function(t){var e,i;if(e=t.peek(),this.isUndef(e))throw new SyntaxError("Tone.TimeBase: Unexpected end of expression");if(this._matchGroup(e,this._primaryExpressions)){e=t.next();var n=e.value.match(e.regexp);return e.method.bind(this,n[1],n[2],n[3])}if(e&&"("===e.value){if(t.next(),i=this._parseBinary(t),e=t.next(),!e||")"!==e.value)throw new SyntaxError("Expected )");return i}throw new SyntaxError("Tone.TimeBase: Cannot process token "+e.value)},t.TimeBase.prototype._parseExprString=function(t){this.isString(t)||(t=t.toString());var e=this._tokenize(t),i=this._parseBinary(e);return i},t.TimeBase.prototype._noOp=function(){return 0},t.TimeBase.prototype._defaultExpr=function(){return this._noOp},t.TimeBase.prototype._defaultUnits="s",t.TimeBase.prototype._frequencyToUnits=function(t){return 1/t},t.TimeBase.prototype._beatsToUnits=function(e){return 60/t.Transport.bpm.value*e},t.TimeBase.prototype._secondsToUnits=function(t){return t},t.TimeBase.prototype._ticksToUnits=function(e){return e*(this._beatsToUnits(1)/t.Transport.PPQ)},t.TimeBase.prototype._timeSignature=function(){return t.Transport.timeSignature},t.TimeBase.prototype._pushExpr=function(e,i,n){return e instanceof t.TimeBase||(e=new this.constructor(e,n)),this._expr=this._binaryExpressions[i].method.bind(this,this._expr,e._expr),this},t.TimeBase.prototype.add=function(t,e){return this._pushExpr(t,"+",e)},t.TimeBase.prototype.sub=function(t,e){return this._pushExpr(t,"-",e)},t.TimeBase.prototype.mult=function(t,e){return this._pushExpr(t,"*",e)},t.TimeBase.prototype.div=function(t,e){return this._pushExpr(t,"/",e)},t.TimeBase.prototype.valueOf=function(){return this._expr()},t.TimeBase.prototype.dispose=function(){this._expr=null},t.TimeBase}(n);var v;v=function(t){return t.Time=function(e,i){return this instanceof t.Time?(this._plusNow=!1,void t.TimeBase.call(this,e,i)):new t.Time(e,i)},t.extend(t.Time,t.TimeBase),t.Time.prototype._unaryExpressions=Object.create(t.TimeBase.prototype._unaryExpressions),t.Time.prototype._unaryExpressions.quantize={regexp:/^@/,method:function(e){return t.Transport.nextSubdivision(e())}},t.Time.prototype._unaryExpressions.now={regexp:/^\+/,method:function(t){return this._plusNow=!0,t()}},t.Time.prototype.quantize=function(t,e){return e=this.defaultArg(e,1),this._expr=function(t,e,i){t=t(),e=e.toSeconds();var n=Math.round(t/e),o=n*e,r=o-t;return t+r*i}.bind(this,this._expr,new this.constructor(t),e),this},t.Time.prototype.addNow=function(){return this._plusNow=!0,this},t.Time.prototype._defaultExpr=function(){return this._plusNow=!0,this._noOp},t.Time.prototype.copy=function(e){return t.TimeBase.prototype.copy.call(this,e),this._plusNow=e._plusNow,this},t.Time.prototype.toNotation=function(){var t=this.toSeconds(),e=["1m","2n","4n","8n","16n","32n","64n","128n"],i=this._toNotationHelper(t,e),n=["1m","2n","2t","4n","4t","8n","8t","16n","16t","32n","32t","64n","64t","128n"],o=this._toNotationHelper(t,n);return o.split("+").length1-s%1&&(s+=a),s=Math.floor(s),s>0){if(n+=1===s?e[o]:s.toString()+"*"+e[o],t-=s*r,i>t)break;n+=" + "}}return""===n&&(n="0"),n},t.Time.prototype._notationToUnits=function(t){for(var e=this._primaryExpressions,i=[e.n,e.t,e.m],n=0;n3&&(n=parseFloat(n).toFixed(3));var o=[i,e,n];return o.join(":")},t.Time.prototype.toTicks=function(){var e=this._beatsToUnits(1),i=this.valueOf()/e;return Math.floor(i*t.Transport.PPQ)},t.Time.prototype.toSamples=function(){return this.toSeconds()*this.context.sampleRate},t.Time.prototype.toFrequency=function(){return 1/this.toSeconds()},t.Time.prototype.toSeconds=function(){return this.valueOf()},t.Time.prototype.toMilliseconds=function(){return 1e3*this.toSeconds()},t.Time.prototype.valueOf=function(){var t=this._expr();return t+(this._plusNow?this.now():0)},t.Time}(n);var g;g=function(t){t.Frequency=function(e,i){return this instanceof t.Frequency?void t.TimeBase.call(this,e,i):new t.Frequency(e,i)},t.extend(t.Frequency,t.TimeBase),t.Frequency.prototype._primaryExpressions=Object.create(t.TimeBase.prototype._primaryExpressions),t.Frequency.prototype._primaryExpressions.midi={regexp:/^(\d+(?:\.\d+)?midi)/,method:function(t){return this.midiToFrequency(t)}},t.Frequency.prototype._primaryExpressions.note={regexp:/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i,method:function(t,i){var n=e[t.toLowerCase()],o=n+12*(parseInt(i)+1);return this.midiToFrequency(o)}},t.Frequency.prototype._primaryExpressions.tr={regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method:function(t,e,i){var n=1;return t&&"0"!==t&&(n*=this._beatsToUnits(this._timeSignature()*parseFloat(t))),e&&"0"!==e&&(n*=this._beatsToUnits(parseFloat(e))),i&&"0"!==i&&(n*=this._beatsToUnits(parseFloat(i)/4)),n}},t.Frequency.prototype.transpose=function(t){return this._expr=function(t,e){var i=t();return i*this.intervalToFrequencyRatio(e)}.bind(this,this._expr,t),this},t.Frequency.prototype.harmonize=function(t){return this._expr=function(t,e){for(var i=t(),n=[],o=0;or&&(o+=-12*r);var s=i[o%12];return s+r.toString()},t.Frequency.prototype.toSeconds=function(){return 1/this.valueOf()},t.Frequency.prototype.toFrequency=function(){return this.valueOf()},t.Frequency.prototype.toTicks=function(){var e=this._beatsToUnits(1),i=this.valueOf()/e;return Math.floor(i*t.Transport.PPQ)},t.Frequency.prototype._frequencyToUnits=function(t){return t},t.Frequency.prototype._ticksToUnits=function(e){return 1/(60*e/(t.Transport.bpm.value*t.Transport.PPQ))},t.Frequency.prototype._beatsToUnits=function(e){return 1/t.TimeBase.prototype._beatsToUnits.call(this,e)},t.Frequency.prototype._secondsToUnits=function(t){return 1/t},t.Frequency.prototype._defaultUnits="hz";var e={cbb:-2,cb:-1,c:0,"c#":1,cx:2,dbb:0,db:1,d:2,"d#":3,dx:4,ebb:2,eb:3,e:4,"e#":5,ex:6,fbb:3,fb:4,f:5,"f#":6,fx:7,gbb:5,gb:6,g:7,"g#":8,gx:9,abb:7,ab:8,a:9,"a#":10,ax:11,bbb:9,bb:10,b:11,"b#":12,bx:13},i=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];return t.Frequency.A4=440,t.Frequency.prototype.midiToFrequency=function(e){return t.Frequency.A4*Math.pow(2,(e-69)/12)},t.Frequency.prototype.frequencyToMidi=function(e){return 69+12*Math.log(e/t.Frequency.A4)/Math.LN2},t.Frequency}(n);var _;_=function(t){return t.TransportTime=function(e,i){return this instanceof t.TransportTime?void t.Time.call(this,e,i):new t.TransportTime(e,i)},t.extend(t.TransportTime,t.Time),t.TransportTime.prototype._unaryExpressions=Object.create(t.Time.prototype._unaryExpressions),t.TransportTime.prototype._unaryExpressions.quantize={regexp:/^@/,method:function(e){var i=this._secondsToTicks(e()),n=Math.ceil(t.Transport.ticks/i);return this._ticksToUnits(n*i)}},t.TransportTime.prototype._secondsToTicks=function(e){var i=this._beatsToUnits(1),n=e/i;return Math.round(n*t.Transport.PPQ)},t.TransportTime.prototype.valueOf=function(){var e=this._secondsToTicks(this._expr());return e+(this._plusNow?t.Transport.ticks:0)},t.TransportTime.prototype.toTicks=function(){return this.valueOf()},t.TransportTime.prototype.toSeconds=function(){var e=this._expr();return e+(this._plusNow?t.Transport.seconds:0)},t.TransportTime.prototype.toFrequency=function(){return 1/this.toSeconds()},t.TransportTime}(n);var T;T=function(t){return t.Type={Default:"number",Time:"time",Frequency:"frequency",TransportTime:"transportTime",Ticks:"ticks",NormalRange:"normalRange",AudioRange:"audioRange",Decibels:"db",Interval:"interval",BPM:"bpm",Positive:"positive",Cents:"cents",Degrees:"degrees",MIDI:"midi",BarsBeatsSixteenths:"barsBeatsSixteenths",Samples:"samples",Hertz:"hertz",Note:"note",Milliseconds:"milliseconds",Seconds:"seconds",Notation:"notation"},t.prototype.toSeconds=function(e){return this.isNumber(e)?e:this.isUndef(e)?this.now():this.isString(e)?new t.Time(e).toSeconds():e instanceof t.TimeBase?e.toSeconds():void 0},t.prototype.toFrequency=function(e){return this.isNumber(e)?e:this.isString(e)||this.isUndef(e)?new t.Frequency(e).valueOf():e instanceof t.TimeBase?e.toFrequency():void 0},t.prototype.toTicks=function(e){return this.isNumber(e)||this.isString(e)?new t.TransportTime(e).toTicks():this.isUndef(e)?t.Transport.ticks:e instanceof t.TimeBase?e.toTicks():void 0},t}(n,v,g,_);var b;b=function(t){"use strict";return t.Param=function(){var e=this.optionsObject(arguments,["param","units","convert"],t.Param.defaults);this._param=this.input=e.param,this.units=e.units,this.convert=e.convert,this.overridden=!1,this._lfo=null,this.isObject(e.lfo)?this.value=e.lfo:this.isUndef(e.value)||(this.value=e.value)},t.extend(t.Param),t.Param.defaults={units:t.Type.Default,convert:!0,param:void 0},Object.defineProperty(t.Param.prototype,"value",{get:function(){return this._toUnits(this._param.value)},set:function(e){if(this.isObject(e)){if(this.isUndef(t.LFO))throw new Error("Include 'Tone.LFO' to use an LFO as a Param value.");this._lfo&&this._lfo.dispose(),this._lfo=new t.LFO(e).start(),this._lfo.connect(this.input)}else{var i=this._fromUnits(e);this._param.cancelScheduledValues(0),this._param.value=i}}}),t.Param.prototype._fromUnits=function(e){if(!this.convert&&!this.isUndef(this.convert))return e;switch(this.units){case t.Type.Time:return this.toSeconds(e);case t.Type.Frequency:return this.toFrequency(e);case t.Type.Decibels:return this.dbToGain(e);case t.Type.NormalRange:return Math.min(Math.max(e,0),1);case t.Type.AudioRange:return Math.min(Math.max(e,-1),1);case t.Type.Positive:return Math.max(e,0);default:return e}},t.Param.prototype._toUnits=function(e){if(!this.convert&&!this.isUndef(this.convert))return e;switch(this.units){case t.Type.Decibels:return this.gainToDb(e);default:return e}},t.Param.prototype._minOutput=1e-5,t.Param.prototype.setValueAtTime=function(t,e){return t=this._fromUnits(t),e=this.toSeconds(e),e<=this.now()+this.blockTime?this._param.value=t:this._param.setValueAtTime(t,e),this},t.Param.prototype.setRampPoint=function(t){t=this.defaultArg(t,this.now());var e=this._param.value;return 0===e&&(e=this._minOutput),this._param.setValueAtTime(e,t),this},t.Param.prototype.linearRampToValueAtTime=function(t,e){return t=this._fromUnits(t),this._param.linearRampToValueAtTime(t,this.toSeconds(e)),this},t.Param.prototype.exponentialRampToValueAtTime=function(t,e){return t=this._fromUnits(t),t=Math.max(this._minOutput,t),this._param.exponentialRampToValueAtTime(t,this.toSeconds(e)),this},t.Param.prototype.exponentialRampToValue=function(t,e,i){return i=this.toSeconds(i),this.setRampPoint(i),this.exponentialRampToValueAtTime(t,i+this.toSeconds(e)),this},t.Param.prototype.linearRampToValue=function(t,e,i){return i=this.toSeconds(i),this.setRampPoint(i),this.linearRampToValueAtTime(t,i+this.toSeconds(e)),this},t.Param.prototype.setTargetAtTime=function(t,e,i){return t=this._fromUnits(t),t=Math.max(this._minOutput,t),i=Math.max(this._minOutput,i),this._param.setTargetAtTime(t,this.toSeconds(e),i),this},t.Param.prototype.setValueCurveAtTime=function(t,e,i){for(var n=0;n1&&(this.input=new Array(e)),1===i?this.output=new t.Gain:i>1&&(this.output=new Array(e))},t.Gain}(n,b);var S;S=function(t){"use strict";return t.Signal=function(){var e=this.optionsObject(arguments,["value","units"],t.Signal.defaults);this.output=this._gain=this.context.createGain(),e.param=this._gain.gain,t.Param.call(this,e),this.input=this._param=this._gain.gain,this.context.getConstant(1).chain(this._gain)},t.extend(t.Signal,t.Param),t.Signal.defaults={value:0,units:t.Type.Default,convert:!0},t.Signal.prototype.connect=t.SignalBase.prototype.connect,t.Signal.prototype.dispose=function(){return t.Param.prototype.dispose.call(this),this._param=null,this._gain.disconnect(),this._gain=null,this},t.Signal}(n,m,T,b);var w;w=function(t){"use strict";return t.Add=function(e){this.createInsOuts(2,0),this._sum=this.input[0]=this.input[1]=this.output=new t.Gain,this._param=this.input[1]=new t.Signal(e),this._param.connect(this._sum)},t.extend(t.Add,t.Signal),t.Add.prototype.dispose=function(){return t.prototype.dispose.call(this),this._sum.dispose(),this._sum=null,this._param.dispose(),this._param=null,this},t.Add}(n,S);var A;A=function(t){"use strict";return t.Multiply=function(e){this.createInsOuts(2,0),this._mult=this.input[0]=this.output=new t.Gain,this._param=this.input[1]=this.output.gain,this._param.value=this.defaultArg(e,0)},t.extend(t.Multiply,t.Signal),t.Multiply.prototype.dispose=function(){return t.prototype.dispose.call(this),this._mult.dispose(),this._mult=null, -this._param=null,this},t.Multiply}(n,S);var P;P=function(t){"use strict";return t.Scale=function(e,i){this._outputMin=this.defaultArg(e,0),this._outputMax=this.defaultArg(i,1),this._scale=this.input=new t.Multiply(1),this._add=this.output=new t.Add(0),this._scale.connect(this._add),this._setRange()},t.extend(t.Scale,t.SignalBase),Object.defineProperty(t.Scale.prototype,"min",{get:function(){return this._outputMin},set:function(t){this._outputMin=t,this._setRange()}}),Object.defineProperty(t.Scale.prototype,"max",{get:function(){return this._outputMax},set:function(t){this._outputMax=t,this._setRange()}}),t.Scale.prototype._setRange=function(){this._add.value=this._outputMin,this._scale.value=this._outputMax-this._outputMin},t.Scale.prototype.dispose=function(){return t.prototype.dispose.call(this),this._add.dispose(),this._add=null,this._scale.dispose(),this._scale=null,this},t.Scale}(n,w,A);var k;k=function(){var e=S,i=w,n=A,o=P;t.Signal=function(t){var i=new e(t);return i},e.prototype.fade=e.prototype.linearRampToValueAtTime,n.prototype.fade=e.prototype.fade,i.prototype.fade=e.prototype.fade,o.prototype.fade=e.prototype.fade,e.prototype.setInput=function(t){t.connect(this)},n.prototype.setInput=e.prototype.setInput,i.prototype.setInput=e.prototype.setInput,o.prototype.setInput=e.prototype.setInput,e.prototype.add=function(t){var e=new i(t);return this.connect(e),e},n.prototype.add=e.prototype.add,i.prototype.add=e.prototype.add,o.prototype.add=e.prototype.add,e.prototype.mult=function(t){var e=new n(t);return this.connect(e),e},n.prototype.mult=e.prototype.mult,i.prototype.mult=e.prototype.mult,o.prototype.mult=e.prototype.mult,e.prototype.scale=function(e,i,n,r){var s,a;4===arguments.length?(s=t.prototype.map(n,e,i,0,1)-.5,a=t.prototype.map(r,e,i,0,1)-.5):(s=arguments[0],a=arguments[1]);var u=new o(s,a);return this.connect(u),u},n.prototype.scale=e.prototype.scale,i.prototype.scale=e.prototype.scale,o.prototype.scale=e.prototype.scale}(S,w,A,P);var O;O=function(){var e=a,i=w,n=A,o=P;t.Oscillator=function(i,n){if("string"==typeof i){var o=n;n=i,i=o}if("number"==typeof n){var o=n;n=i,i=o}this.started=!1,this.phaseAmount=void 0,this.oscillator=e.audiocontext.createOscillator(),this.f=i||440,this.oscillator.type=n||"sine",this.oscillator.frequency.setValueAtTime(this.f,e.audiocontext.currentTime),this.output=e.audiocontext.createGain(),this._freqMods=[],this.output.gain.value=.5,this.output.gain.setValueAtTime(.5,e.audiocontext.currentTime),this.oscillator.connect(this.output),this.panPosition=0,this.connection=e.input,this.panner=new t.Panner(this.output,this.connection,1),this.mathOps=[this.output],e.soundArray.push(this)},t.Oscillator.prototype.start=function(t,i){if(this.started){var n=e.audiocontext.currentTime;this.stop(n)}if(!this.started){var o=i||this.f,r=this.oscillator.type;this.oscillator&&(this.oscillator.disconnect(),delete this.oscillator),this.oscillator=e.audiocontext.createOscillator(),this.oscillator.frequency.value=Math.abs(o),this.oscillator.type=r,this.oscillator.connect(this.output),t=t||0,this.oscillator.start(t+e.audiocontext.currentTime),this.freqNode=this.oscillator.frequency;for(var s in this._freqMods)"undefined"!=typeof this._freqMods[s].connect&&this._freqMods[s].connect(this.oscillator.frequency);this.started=!0}},t.Oscillator.prototype.stop=function(t){if(this.started){var i=t||0,n=e.audiocontext.currentTime;this.oscillator.stop(i+n),this.started=!1}},t.Oscillator.prototype.amp=function(t,i,n){var o=this;if("number"==typeof t){var i=i||0,n=n||0,r=e.audiocontext.currentTime;this.output.gain.linearRampToValueAtTime(t,r+n+i)}else{if(!t)return this.output.gain;t.connect(o.output.gain)}},t.Oscillator.prototype.fade=t.Oscillator.prototype.amp,t.Oscillator.prototype.getAmp=function(){return this.output.gain.value},t.Oscillator.prototype.freq=function(t,i,n){if("number"!=typeof t||isNaN(t)){if(!t)return this.oscillator.frequency;t.output&&(t=t.output),t.connect(this.oscillator.frequency),this._freqMods.push(t)}else{this.f=t;var o=e.audiocontext.currentTime,i=i||0,n=n||0;0===i?this.oscillator.frequency.setValueAtTime(t,n+o):t>0?this.oscillator.frequency.exponentialRampToValueAtTime(t,n+i+o):this.oscillator.frequency.linearRampToValueAtTime(t,n+i+o),this.phaseAmount&&this.phase(this.phaseAmount)}},t.Oscillator.prototype.getFreq=function(){return this.oscillator.frequency.value},t.Oscillator.prototype.setType=function(t){this.oscillator.type=t},t.Oscillator.prototype.getType=function(){return this.oscillator.type},t.Oscillator.prototype.connect=function(t){t?t.hasOwnProperty("input")?(this.panner.connect(t.input),this.connection=t.input):(this.panner.connect(t),this.connection=t):this.panner.connect(e.input)},t.Oscillator.prototype.disconnect=function(){this.output&&this.output.disconnect(),this.panner&&(this.panner.disconnect(),this.output&&this.output.connect(this.panner)),this.oscMods=[]},t.Oscillator.prototype.pan=function(t,e){this.panPosition=t,this.panner.pan(t,e)},t.Oscillator.prototype.getPan=function(){return this.panPosition},t.Oscillator.prototype.dispose=function(){var t=e.soundArray.indexOf(this);if(e.soundArray.splice(t,1),this.oscillator){var i=e.audiocontext.currentTime;this.stop(i),this.disconnect(),this.panner=null,this.oscillator=null}this.osc2&&this.osc2.dispose()},t.Oscillator.prototype.phase=function(i){var n=t.prototype.map(i,0,1,0,1/this.f),o=e.audiocontext.currentTime;this.phaseAmount=i,this.dNode||(this.dNode=e.audiocontext.createDelay(),this.oscillator.disconnect(),this.oscillator.connect(this.dNode),this.dNode.connect(this.output)),this.dNode.delayTime.setValueAtTime(n,o)};var r=function(t,e,i,n,o){var r=t.oscillator;for(var s in t.mathOps)t.mathOps[s]instanceof o&&(r.disconnect(),t.mathOps[s].dispose(),i=s,i0&&(r=t.mathOps[s-1]),r.disconnect(),r.connect(e),e.connect(n),t.mathOps[i]=e,t};t.Oscillator.prototype.add=function(t){var e=new i(t),n=this.mathOps.length-1,o=this.output;return r(this,e,n,o,i)},t.Oscillator.prototype.mult=function(t){var e=new n(t),i=this.mathOps.length-1,o=this.output;return r(this,e,i,o,n)},t.Oscillator.prototype.scale=function(e,i,n,s){var a,u;4===arguments.length?(a=t.prototype.map(n,e,i,0,1)-.5,u=t.prototype.map(s,e,i,0,1)-.5):(a=arguments[0],u=arguments[1]);var c=new o(a,u),p=this.mathOps.length-1,h=this.output;return r(this,c,p,h,o)},t.SinOsc=function(e){t.Oscillator.call(this,e,"sine")},t.SinOsc.prototype=Object.create(t.Oscillator.prototype),t.TriOsc=function(e){t.Oscillator.call(this,e,"triangle")},t.TriOsc.prototype=Object.create(t.Oscillator.prototype),t.SawOsc=function(e){t.Oscillator.call(this,e,"sawtooth")},t.SawOsc.prototype=Object.create(t.Oscillator.prototype),t.SqrOsc=function(e){t.Oscillator.call(this,e,"square")},t.SqrOsc.prototype=Object.create(t.Oscillator.prototype)}(a,w,A,P);var F;F=function(t){"use strict";return t.Timeline=function(){var e=this.optionsObject(arguments,["memory"],t.Timeline.defaults);this._timeline=[],this._toRemove=[],this._iterating=!1,this.memory=e.memory},t.extend(t.Timeline),t.Timeline.defaults={memory:1/0},Object.defineProperty(t.Timeline.prototype,"length",{get:function(){return this._timeline.length}}),t.Timeline.prototype.add=function(t){if(this.isUndef(t.time))throw new Error("Tone.Timeline: events must have a time attribute");if(this._timeline.length){var e=this._search(t.time);this._timeline.splice(e+1,0,t)}else this._timeline.push(t);if(this.length>this.memory){var i=this.length-this.memory;this._timeline.splice(0,i)}return this},t.Timeline.prototype.remove=function(t){if(this._iterating)this._toRemove.push(t);else{var e=this._timeline.indexOf(t);-1!==e&&this._timeline.splice(e,1)}return this},t.Timeline.prototype.get=function(t){var e=this._search(t);return-1!==e?this._timeline[e]:null},t.Timeline.prototype.peek=function(){return this._timeline[0]},t.Timeline.prototype.shift=function(){return this._timeline.shift()},t.Timeline.prototype.getAfter=function(t){var e=this._search(t);return e+10&&this._timeline[e-1].time=0?this._timeline[i-1]:null},t.Timeline.prototype.cancel=function(t){if(this._timeline.length>1){var e=this._search(t);if(e>=0)if(this._timeline[e].time===t){for(var i=e;i>=0&&this._timeline[i].time===t;i--)e=i;this._timeline=this._timeline.slice(0,e)}else this._timeline=this._timeline.slice(0,e+1);else this._timeline=[]}else 1===this._timeline.length&&this._timeline[0].time>=t&&(this._timeline=[]);return this},t.Timeline.prototype.cancelBefore=function(t){if(this._timeline.length){var e=this._search(t);e>=0&&(this._timeline=this._timeline.slice(e+1))}return this},t.Timeline.prototype._search=function(t){var e=0,i=this._timeline.length,n=i;if(i>0&&this._timeline[i-1].time<=t)return i-1;for(;n>e;){var o=Math.floor(e+(n-e)/2),r=this._timeline[o],s=this._timeline[o+1];if(r.time===t){for(var a=o;at)return o;r.time>t?n=o:r.time=n;n++)t(this._timeline[n]);if(this._iterating=!1,this._toRemove.length>0){for(var o=0;o=0&&this._timeline[i].time>=t;)i--;return this._iterate(e,i+1),this},t.Timeline.prototype.forEachAtTime=function(t,e){var i=this._search(t);return-1!==i&&this._iterate(function(i){i.time===t&&e(i)},0,i),this},t.Timeline.prototype.dispose=function(){t.prototype.dispose.call(this),this._timeline=null,this._toRemove=null},t.Timeline}(n);var q;q=function(t){"use strict";return t.TimelineSignal=function(){var e=this.optionsObject(arguments,["value","units"],t.Signal.defaults);this._events=new t.Timeline(10),t.Signal.apply(this,e),e.param=this._param,t.Param.call(this,e),this._initial=this._fromUnits(this._param.value)},t.extend(t.TimelineSignal,t.Param),t.TimelineSignal.Type={Linear:"linear",Exponential:"exponential",Target:"target",Curve:"curve",Set:"set"},Object.defineProperty(t.TimelineSignal.prototype,"value",{get:function(){var t=this.now(),e=this.getValueAtTime(t);return this._toUnits(e)},set:function(t){var e=this._fromUnits(t);this._initial=e,this.cancelScheduledValues(),this._param.value=e}}),t.TimelineSignal.prototype.setValueAtTime=function(e,i){return e=this._fromUnits(e),i=this.toSeconds(i),this._events.add({type:t.TimelineSignal.Type.Set,value:e,time:i}),this._param.setValueAtTime(e,i),this},t.TimelineSignal.prototype.linearRampToValueAtTime=function(e,i){return e=this._fromUnits(e),i=this.toSeconds(i),this._events.add({type:t.TimelineSignal.Type.Linear,value:e,time:i}),this._param.linearRampToValueAtTime(e,i),this},t.TimelineSignal.prototype.exponentialRampToValueAtTime=function(e,i){i=this.toSeconds(i);var n=this._searchBefore(i);n&&0===n.value&&this.setValueAtTime(this._minOutput,n.time),e=this._fromUnits(e);var o=Math.max(e,this._minOutput);return this._events.add({type:t.TimelineSignal.Type.Exponential,value:o,time:i}),ee)this.cancelScheduledValues(e),this.linearRampToValueAtTime(i,e);else{var o=this._searchAfter(e);o&&(this.cancelScheduledValues(e),o.type===t.TimelineSignal.Type.Linear?this.linearRampToValueAtTime(i,e):o.type===t.TimelineSignal.Type.Exponential&&this.exponentialRampToValueAtTime(i,e)),this.setValueAtTime(i,e)}return this},t.TimelineSignal.prototype.linearRampToValueBetween=function(t,e,i){return this.setRampPoint(e),this.linearRampToValueAtTime(t,i),this},t.TimelineSignal.prototype.exponentialRampToValueBetween=function(t,e,i){return this.setRampPoint(e),this.exponentialRampToValueAtTime(t,i),this},t.TimelineSignal.prototype._searchBefore=function(t){return this._events.get(t)},t.TimelineSignal.prototype._searchAfter=function(t){return this._events.getAfter(t)},t.TimelineSignal.prototype.getValueAtTime=function(e){e=this.toSeconds(e);var i=this._searchAfter(e),n=this._searchBefore(e),o=this._initial;if(null===n)o=this._initial;else if(n.type===t.TimelineSignal.Type.Target){var r,s=this._events.getBefore(n.time);r=null===s?this._initial:s.value,o=this._exponentialApproach(n.time,r,n.value,n.constant,e)}else o=n.type===t.TimelineSignal.Type.Curve?this._curveInterpolate(n.time,n.value,n.duration,e):null===i?n.value:i.type===t.TimelineSignal.Type.Linear?this._linearInterpolate(n.time,n.value,i.time,i.value,e):i.type===t.TimelineSignal.Type.Exponential?this._exponentialInterpolate(n.time,n.value,i.time,i.value,e):n.value;return o},t.TimelineSignal.prototype.connect=t.SignalBase.prototype.connect,t.TimelineSignal.prototype._exponentialApproach=function(t,e,i,n,o){return i+(e-i)*Math.exp(-(o-t)/n)},t.TimelineSignal.prototype._linearInterpolate=function(t,e,i,n,o){return e+(n-e)*((o-t)/(i-t))},t.TimelineSignal.prototype._exponentialInterpolate=function(t,e,i,n,o){return e=Math.max(this._minOutput,e),e*Math.pow(n/e,(o-t)/(i-t))},t.TimelineSignal.prototype._curveInterpolate=function(t,e,i,n){var o=e.length;if(n>=t+i)return e[o-1];if(t>=n)return e[0];var r=(n-t)/i,s=Math.floor((o-1)*r),a=Math.ceil((o-1)*r),u=e[s],c=e[a];return a===s?u:this._linearInterpolate(s,u,a,c,r*(o-1))},t.TimelineSignal.prototype.dispose=function(){t.Signal.prototype.dispose.call(this),t.Param.prototype.dispose.call(this),this._events.dispose(),this._events=null},t.TimelineSignal}(n,S);var M;M=function(){var e=a,i=w,n=A,o=P,r=q;t.Envelope=function(t,i,n,o,s,a){this.aTime=t||.1,this.aLevel=i||1,this.dTime=n||.5,this.dLevel=o||0,this.rTime=s||0,this.rLevel=a||0,this._rampHighPercentage=.98,this._rampLowPercentage=.02,this.output=e.audiocontext.createGain(),this.control=new r,this._init(),this.control.connect(this.output),this.connection=null,this.mathOps=[this.control],this.isExponential=!1,this.sourceToClear=null,this.wasTriggered=!1,e.soundArray.push(this)},t.Envelope.prototype._init=function(){var t=e.audiocontext.currentTime,i=t;this.control.setTargetAtTime(1e-5,i,.001),this._setRampAD(this.aTime,this.dTime)},t.Envelope.prototype.set=function(t,e,i,n,o,r){this.aTime=t,this.aLevel=e,this.dTime=i||0,this.dLevel=n||0,this.rTime=o||0,this.rLevel=r||0,this._setRampAD(t,i)},t.Envelope.prototype.setADSR=function(t,e,i,n){this.aTime=t,this.dTime=e||0,this.sPercent=i||0,this.dLevel="undefined"!=typeof i?i*(this.aLevel-this.rLevel)+this.rLevel:0,this.rTime=n||0,this._setRampAD(t,e)},t.Envelope.prototype.setRange=function(t,e){this.aLevel=t||1,this.rLevel=e||0},t.Envelope.prototype._setRampAD=function(t,e){this._rampAttackTime=this.checkExpInput(t),this._rampDecayTime=this.checkExpInput(e);var i=1;i=Math.log(1/this.checkExpInput(1-this._rampHighPercentage)),this._rampAttackTC=t/this.checkExpInput(i),i=Math.log(1/this._rampLowPercentage),this._rampDecayTC=e/this.checkExpInput(i)},t.Envelope.prototype.setRampPercentages=function(t,e){this._rampHighPercentage=this.checkExpInput(t),this._rampLowPercentage=this.checkExpInput(e);var i=1;i=Math.log(1/this.checkExpInput(1-this._rampHighPercentage)),this._rampAttackTC=this._rampAttackTime/this.checkExpInput(i),i=Math.log(1/this._rampLowPercentage),this._rampDecayTC=this._rampDecayTime/this.checkExpInput(i)},t.Envelope.prototype.setInput=function(){for(var t=0;t=t&&(t=1e-8),t},t.Envelope.prototype.play=function(t,e,i){var n=e||0,i=i||0;t&&this.connection!==t&&this.connect(t),this.triggerAttack(t,n),this.triggerRelease(t,n+this.aTime+this.dTime+i)},t.Envelope.prototype.triggerAttack=function(t,i){var n=e.audiocontext.currentTime,o=i||0,r=n+o;this.lastAttack=r,this.wasTriggered=!0,t&&this.connection!==t&&this.connect(t);var s=this.control.getValueAtTime(r);this.isExponential===!0?this.control.exponentialRampToValueAtTime(this.checkExpInput(s),r):this.control.linearRampToValueAtTime(s,r),r+=this.aTime,this.isExponential===!0?(this.control.exponentialRampToValueAtTime(this.checkExpInput(this.aLevel),r),s=this.checkExpInput(this.control.getValueAtTime(r)),this.control.cancelScheduledValues(r),this.control.exponentialRampToValueAtTime(s,r)):(this.control.linearRampToValueAtTime(this.aLevel,r),s=this.control.getValueAtTime(r),this.control.cancelScheduledValues(r),this.control.linearRampToValueAtTime(s,r)),r+=this.dTime,this.isExponential===!0?(this.control.exponentialRampToValueAtTime(this.checkExpInput(this.dLevel),r),s=this.checkExpInput(this.control.getValueAtTime(r)),this.control.cancelScheduledValues(r),this.control.exponentialRampToValueAtTime(s,r)):(this.control.linearRampToValueAtTime(this.dLevel,r),s=this.control.getValueAtTime(r),this.control.cancelScheduledValues(r),this.control.linearRampToValueAtTime(s,r))},t.Envelope.prototype.triggerRelease=function(t,i){if(this.wasTriggered){var n=e.audiocontext.currentTime,o=i||0,r=n+o;t&&this.connection!==t&&this.connect(t);var s=this.control.getValueAtTime(r);this.isExponential===!0?this.control.exponentialRampToValueAtTime(this.checkExpInput(s),r):this.control.linearRampToValueAtTime(s,r),r+=this.rTime,this.isExponential===!0?(this.control.exponentialRampToValueAtTime(this.checkExpInput(this.rLevel),r),s=this.checkExpInput(this.control.getValueAtTime(r)),this.control.cancelScheduledValues(r),this.control.exponentialRampToValueAtTime(s,r)):(this.control.linearRampToValueAtTime(this.rLevel,r),s=this.control.getValueAtTime(r),this.control.cancelScheduledValues(r),this.control.linearRampToValueAtTime(s,r)),this.wasTriggered=!1}},t.Envelope.prototype.ramp=function(t,i,n,o){var r=e.audiocontext.currentTime,s=i||0,a=r+s,u=this.checkExpInput(n),c="undefined"!=typeof o?this.checkExpInput(o):void 0;t&&this.connection!==t&&this.connect(t);var p=this.checkExpInput(this.control.getValueAtTime(a));u>p?(this.control.setTargetAtTime(u,a,this._rampAttackTC),a+=this._rampAttackTime):p>u&&(this.control.setTargetAtTime(u,a,this._rampDecayTC),a+=this._rampDecayTime),void 0!==c&&(c>u?this.control.setTargetAtTime(c,a,this._rampAttackTC):u>c&&this.control.setTargetAtTime(c,a,this._rampDecayTC))},t.Envelope.prototype.connect=function(i){this.connection=i,(i instanceof t.Oscillator||i instanceof t.SoundFile||i instanceof t.AudioIn||i instanceof t.Reverb||i instanceof t.Noise||i instanceof t.Filter||i instanceof t.Delay)&&(i=i.output.gain),i instanceof AudioParam&&i.setValueAtTime(0,e.audiocontext.currentTime),i instanceof t.Signal&&i.setValue(0),this.output.connect(i)},t.Envelope.prototype.disconnect=function(){this.output&&this.output.disconnect()},t.Envelope.prototype.add=function(e){var n=new i(e),o=this.mathOps.length,r=this.output;return t.prototype._mathChain(this,n,o,r,i)},t.Envelope.prototype.mult=function(e){var i=new n(e),o=this.mathOps.length,r=this.output;return t.prototype._mathChain(this,i,o,r,n)},t.Envelope.prototype.scale=function(e,i,n,r){var s=new o(e,i,n,r),a=this.mathOps.length,u=this.output;return t.prototype._mathChain(this,s,a,u,o)},t.Envelope.prototype.dispose=function(){var t=e.soundArray.indexOf(this);e.soundArray.splice(t,1),this.disconnect(),this.control&&(this.control.dispose(),this.control=null);for(var i=1;io;o++)n[o]=1;var r=t.createBufferSource();return r.buffer=e,r.loop=!0,r}var i=a;t.Pulse=function(n,o){t.Oscillator.call(this,n,"sawtooth"),this.w=o||0,this.osc2=new t.SawOsc(n),this.dNode=i.audiocontext.createDelay(),this.dcOffset=e(),this.dcGain=i.audiocontext.createGain(),this.dcOffset.connect(this.dcGain),this.dcGain.connect(this.output),this.f=n||440;var r=this.w/this.oscillator.frequency.value;this.dNode.delayTime.value=r,this.dcGain.gain.value=1.7*(.5-this.w),this.osc2.disconnect(),this.osc2.panner.disconnect(),this.osc2.amp(-1),this.osc2.output.connect(this.dNode),this.dNode.connect(this.output),this.output.gain.value=1,this.output.connect(this.panner)},t.Pulse.prototype=Object.create(t.Oscillator.prototype),t.Pulse.prototype.width=function(e){if("number"==typeof e){if(1>=e&&e>=0){this.w=e;var i=this.w/this.oscillator.frequency.value;this.dNode.delayTime.value=i}this.dcGain.gain.value=1.7*(.5-this.w)}else{e.connect(this.dNode.delayTime);var n=new t.SignalAdd(-.5);n.setInput(e),n=n.mult(-1),n=n.mult(1.7),n.connect(this.dcGain.gain)}},t.Pulse.prototype.start=function(t,n){var o=i.audiocontext.currentTime,r=n||0;if(!this.started){var s=t||this.f,a=this.oscillator.type;this.oscillator=i.audiocontext.createOscillator(),this.oscillator.frequency.setValueAtTime(s,o),this.oscillator.type=a,this.oscillator.connect(this.output),this.oscillator.start(r+o),this.osc2.oscillator=i.audiocontext.createOscillator(),this.osc2.oscillator.frequency.setValueAtTime(s,r+o),this.osc2.oscillator.type=a,this.osc2.oscillator.connect(this.osc2.output),this.osc2.start(r+o),this.freqNode=[this.oscillator.frequency,this.osc2.oscillator.frequency],this.dcOffset=e(),this.dcOffset.connect(this.dcGain),this.dcOffset.start(r+o),void 0!==this.mods&&void 0!==this.mods.frequency&&(this.mods.frequency.connect(this.freqNode[0]),this.mods.frequency.connect(this.freqNode[1])),this.started=!0,this.osc2.started=!0}},t.Pulse.prototype.stop=function(t){if(this.started){var e=t||0,n=i.audiocontext.currentTime;this.oscillator.stop(e+n),this.osc2.oscillator&&this.osc2.oscillator.stop(e+n),this.dcOffset.stop(e+n),this.started=!1,this.osc2.started=!1}},t.Pulse.prototype.freq=function(t,e,n){if("number"==typeof t){this.f=t;var o=i.audiocontext.currentTime,e=e||0,n=n||0,r=this.oscillator.frequency.value;this.oscillator.frequency.cancelScheduledValues(o),this.oscillator.frequency.setValueAtTime(r,o+n),this.oscillator.frequency.exponentialRampToValueAtTime(t,n+e+o),this.osc2.oscillator.frequency.cancelScheduledValues(o),this.osc2.oscillator.frequency.setValueAtTime(r,o+n),this.osc2.oscillator.frequency.exponentialRampToValueAtTime(t,n+e+o),this.freqMod&&(this.freqMod.output.disconnect(),this.freqMod=null)}else t.output&&(t.output.disconnect(),t.output.connect(this.oscillator.frequency),t.output.connect(this.osc2.oscillator.frequency),this.freqMod=t)}}(a,O);var V;V=function(){var e=a;t.Noise=function(e){var r;t.Oscillator.call(this),delete this.f,delete this.freq,delete this.oscillator,r="brown"===e?o:"pink"===e?n:i,this.buffer=r},t.Noise.prototype=Object.create(t.Oscillator.prototype);var i=function(){for(var t=2*e.audiocontext.sampleRate,i=e.audiocontext.createBuffer(1,t,e.audiocontext.sampleRate),n=i.getChannelData(0),o=0;t>o;o++)n[o]=2*Math.random()-1;return i.type="white",i}(),n=function(){var t,i,n,o,r,s,a,u=2*e.audiocontext.sampleRate,c=e.audiocontext.createBuffer(1,u,e.audiocontext.sampleRate),p=c.getChannelData(0);t=i=n=o=r=s=a=0;for(var h=0;u>h;h++){var l=2*Math.random()-1;t=.99886*t+.0555179*l,i=.99332*i+.0750759*l,n=.969*n+.153852*l,o=.8665*o+.3104856*l,r=.55*r+.5329522*l,s=-.7616*s-.016898*l,p[h]=t+i+n+o+r+s+a+.5362*l,p[h]*=.11,a=.115926*l}return c.type="pink",c}(),o=function(){for(var t=2*e.audiocontext.sampleRate,i=e.audiocontext.createBuffer(1,t,e.audiocontext.sampleRate),n=i.getChannelData(0),o=0,r=0;t>r;r++){var s=2*Math.random()-1;n[r]=(o+.02*s)/1.02,o=n[r],n[r]*=3.5}return i.type="brown",i}();t.Noise.prototype.setType=function(t){switch(t){case"white":this.buffer=i;break;case"pink":this.buffer=n;break;case"brown":this.buffer=o;break;default:this.buffer=i}if(this.started){var r=e.audiocontext.currentTime;this.stop(r),this.start(r+.01)}},t.Noise.prototype.getType=function(){return this.buffer.type},t.Noise.prototype.start=function(){this.started&&this.stop(),this.noise=e.audiocontext.createBufferSource(),this.noise.buffer=this.buffer,this.noise.loop=!0,this.noise.connect(this.output);var t=e.audiocontext.currentTime;this.noise.start(t),this.started=!0},t.Noise.prototype.stop=function(){var t=e.audiocontext.currentTime;this.noise&&(this.noise.stop(t),this.started=!1)},t.Noise.prototype.dispose=function(){var t=e.audiocontext.currentTime,i=e.soundArray.indexOf(this);e.soundArray.splice(i,1),this.noise&&(this.noise.disconnect(),this.stop(t)),this.output&&this.output.disconnect(),this.panner&&this.panner.disconnect(),this.output=null,this.panner=null,this.buffer=null,this.noise=null}}(a);var R;R=function(){var e=a;e.inputSources=[],t.AudioIn=function(i){this.input=e.audiocontext.createGain(),this.output=e.audiocontext.createGain(),this.stream=null,this.mediaStream=null,this.currentSource=null,this.enabled=!1,this.amplitude=new t.Amplitude,this.output.connect(this.amplitude.input),window.MediaStreamTrack&&window.navigator.mediaDevices&&window.navigator.mediaDevices.getUserMedia||(i?i():window.alert("This browser does not support MediaStreamTrack and mediaDevices")),e.soundArray.push(this)},t.AudioIn.prototype.start=function(t,i){var n=this;this.stream&&this.stop();var o=e.inputSources[n.currentSource],r={audio:{sampleRate:e.audiocontext.sampleRate,echoCancellation:!1}};e.inputSources[this.currentSource]&&(r.audio.deviceId=o.deviceId),window.navigator.mediaDevices.getUserMedia(r).then(function(i){n.stream=i,n.enabled=!0,n.mediaStream=e.audiocontext.createMediaStreamSource(i),n.mediaStream.connect(n.output),n.amplitude.setInput(n.output),t&&t()})["catch"](function(t){i?i(t):console.error(t)})},t.AudioIn.prototype.stop=function(){this.stream&&(this.stream.getTracks().forEach(function(t){t.stop()}),this.mediaStream.disconnect(),delete this.mediaStream,delete this.stream)},t.AudioIn.prototype.connect=function(t){t?t.hasOwnProperty("input")?this.output.connect(t.input):t.hasOwnProperty("analyser")?this.output.connect(t.analyser):this.output.connect(t):this.output.connect(e.input)},t.AudioIn.prototype.disconnect=function(){this.output&&(this.output.disconnect(),this.output.connect(this.amplitude.input))},t.AudioIn.prototype.getLevel=function(t){return t&&(this.amplitude.smoothing=t),this.amplitude.getLevel()},t.AudioIn.prototype.amp=function(t,i){if(i){var n=i||0,o=this.output.gain.value;this.output.gain.cancelScheduledValues(e.audiocontext.currentTime),this.output.gain.setValueAtTime(o,e.audiocontext.currentTime),this.output.gain.linearRampToValueAtTime(t,n+e.audiocontext.currentTime)}else this.output.gain.cancelScheduledValues(e.audiocontext.currentTime),this.output.gain.setValueAtTime(t,e.audiocontext.currentTime)},t.AudioIn.prototype.getSources=function(t,i){return new Promise(function(n,o){window.navigator.mediaDevices.enumerateDevices().then(function(i){e.inputSources=i.filter(function(t){return"audioinput"===t.kind}),n(e.inputSources),t&&t(e.inputSources)})["catch"](function(t){o(t),i?i(t):console.error("This browser does not support MediaStreamTrack.getSources()")})})},t.AudioIn.prototype.setSource=function(t){e.inputSources.length>0&&t=t?0:1},127),this._scale=this.input=new t.Multiply(1e4),this._scale.connect(this._thresh)},t.extend(t.GreaterThanZero,t.SignalBase),t.GreaterThanZero.prototype.dispose=function(){return t.prototype.dispose.call(this),this._scale.dispose(),this._scale=null,this._thresh.dispose(),this._thresh=null,this},t.GreaterThanZero}(n,S,A);var B;B=function(t){"use strict";return t.GreaterThan=function(e){this.createInsOuts(2,0),this._param=this.input[0]=new t.Subtract(e),this.input[1]=this._param.input[1],this._gtz=this.output=new t.GreaterThanZero,this._param.connect(this._gtz)},t.extend(t.GreaterThan,t.Signal),t.GreaterThan.prototype.dispose=function(){return t.prototype.dispose.call(this),this._param.dispose(),this._param=null,this._gtz.dispose(),this._gtz=null,this},t.GreaterThan}(n,N,D);var U;U=function(t){"use strict";return t.Abs=function(){this._abs=this.input=this.output=new t.WaveShaper(function(t){return 0===t?0:Math.abs(t)},127)},t.extend(t.Abs,t.SignalBase),t.Abs.prototype.dispose=function(){return t.prototype.dispose.call(this),this._abs.dispose(),this._abs=null,this},t.Abs}(n,m);var I;I=function(t){"use strict";return t.Modulo=function(e){this.createInsOuts(1,0),this._shaper=new t.WaveShaper(Math.pow(2,16)),this._multiply=new t.Multiply,this._subtract=this.output=new t.Subtract,this._modSignal=new t.Signal(e),this.input.fan(this._shaper,this._subtract),this._modSignal.connect(this._multiply,0,0),this._shaper.connect(this._multiply,0,1),this._multiply.connect(this._subtract,0,1),this._setWaveShaper(e)},t.extend(t.Modulo,t.SignalBase),t.Modulo.prototype._setWaveShaper=function(t){this._shaper.setMap(function(e){var i=Math.floor((e+1e-4)/t);return i; -})},Object.defineProperty(t.Modulo.prototype,"value",{get:function(){return this._modSignal.value},set:function(t){this._modSignal.value=t,this._setWaveShaper(t)}}),t.Modulo.prototype.dispose=function(){return t.prototype.dispose.call(this),this._shaper.dispose(),this._shaper=null,this._multiply.dispose(),this._multiply=null,this._subtract.dispose(),this._subtract=null,this._modSignal.dispose(),this._modSignal=null,this},t.Modulo}(n,m,A);var G;G=function(t){"use strict";return t.Pow=function(e){this._exp=this.defaultArg(e,1),this._expScaler=this.input=this.output=new t.WaveShaper(this._expFunc(this._exp),8192)},t.extend(t.Pow,t.SignalBase),Object.defineProperty(t.Pow.prototype,"value",{get:function(){return this._exp},set:function(t){this._exp=t,this._expScaler.setMap(this._expFunc(this._exp))}}),t.Pow.prototype._expFunc=function(t){return function(e){return Math.pow(Math.abs(e),t)}},t.Pow.prototype.dispose=function(){return t.prototype.dispose.call(this),this._expScaler.dispose(),this._expScaler=null,this},t.Pow}(n);var L;L=function(t){"use strict";return t.AudioToGain=function(){this._norm=this.input=this.output=new t.WaveShaper(function(t){return(t+1)/2})},t.extend(t.AudioToGain,t.SignalBase),t.AudioToGain.prototype.dispose=function(){return t.prototype.dispose.call(this),this._norm.dispose(),this._norm=null,this},t.AudioToGain}(n,m);var j;j=function(t){"use strict";function e(t,e,i){var n=new t;return i._eval(e[0]).connect(n,0,0),i._eval(e[1]).connect(n,0,1),n}function i(t,e,i){var n=new t;return i._eval(e[0]).connect(n,0,0),n}function n(t){return t?parseFloat(t):void 0}function o(t){return t&&t.args?parseFloat(t.args):void 0}return t.Expr=function(){var t=this._replacements(Array.prototype.slice.call(arguments)),e=this._parseInputs(t);this._nodes=[],this.input=new Array(e);for(var i=0;e>i;i++)this.input[i]=this.context.createGain();var n,o=this._parseTree(t);try{n=this._eval(o)}catch(r){throw this._disposeNodes(),new Error("Tone.Expr: Could evaluate expression: "+t)}this.output=n},t.extend(t.Expr,t.SignalBase),t.Expr._Expressions={value:{signal:{regexp:/^\d+\.\d+|^\d+/,method:function(e){var i=new t.Signal(n(e));return i}},input:{regexp:/^\$\d/,method:function(t,e){return e.input[n(t.substr(1))]}}},glue:{"(":{regexp:/^\(/},")":{regexp:/^\)/},",":{regexp:/^,/}},func:{abs:{regexp:/^abs/,method:i.bind(this,t.Abs)},mod:{regexp:/^mod/,method:function(e,i){var n=o(e[1]),r=new t.Modulo(n);return i._eval(e[0]).connect(r),r}},pow:{regexp:/^pow/,method:function(e,i){var n=o(e[1]),r=new t.Pow(n);return i._eval(e[0]).connect(r),r}},a2g:{regexp:/^a2g/,method:function(e,i){var n=new t.AudioToGain;return i._eval(e[0]).connect(n),n}}},binary:{"+":{regexp:/^\+/,precedence:1,method:e.bind(this,t.Add)},"-":{regexp:/^\-/,precedence:1,method:function(n,o){return 1===n.length?i(t.Negate,n,o):e(t.Subtract,n,o)}},"*":{regexp:/^\*/,precedence:0,method:e.bind(this,t.Multiply)}},unary:{"-":{regexp:/^\-/,method:i.bind(this,t.Negate)},"!":{regexp:/^\!/,method:i.bind(this,t.NOT)}}},t.Expr.prototype._parseInputs=function(t){var e=t.match(/\$\d/g),i=0;if(null!==e)for(var n=0;n0;){e=e.trim();var r=i(e);o.push(r),e=e.substr(r.value.length)}return{next:function(){return o[++n]},peek:function(){return o[n+1]}}},t.Expr.prototype._parseTree=function(e){function i(t,e){return!p(t)&&"glue"===t.type&&t.value===e}function n(e,i,n){var o=!1,r=t.Expr._Expressions[i];if(!p(e))for(var s in r){var a=r[s];if(a.regexp.test(e.value)){if(p(n))return!0;if(a.precedence===n)return!0}}return o}function o(t){p(t)&&(t=5);var e;e=0>t?r():o(t-1);for(var i=c.peek();n(i,"binary",t);)i=c.next(),e={operator:i.value,method:i.method,args:[e,o(t-1)]},i=c.peek();return e}function r(){var t,e;return t=c.peek(),n(t,"unary")?(t=c.next(),e=r(),{operator:t.value,method:t.method,args:[e]}):s()}function s(){var t,e;if(t=c.peek(),p(t))throw new SyntaxError("Tone.Expr: Unexpected termination of expression");if("func"===t.type)return t=c.next(),a(t);if("value"===t.type)return t=c.next(),{method:t.method,args:t.value};if(i(t,"(")){if(c.next(),e=o(),t=c.next(),!i(t,")"))throw new SyntaxError("Expected )");return e}throw new SyntaxError("Tone.Expr: Parse error, cannot process token "+t.value)}function a(t){var e,n=[];if(e=c.next(),!i(e,"("))throw new SyntaxError('Tone.Expr: Expected ( in a function call "'+t.value+'"');if(e=c.peek(),i(e,")")||(n=u()),e=c.next(),!i(e,")"))throw new SyntaxError('Tone.Expr: Expected ) in a function call "'+t.value+'"');return{method:t.method,args:n,name:name}}function u(){for(var t,e,n=[];;){if(e=o(),p(e))break;if(n.push(e),t=c.peek(),!i(t,","))break;c.next()}return n}var c=this._tokenize(e),p=this.isUndef.bind(this);return o()},t.Expr.prototype._eval=function(t){if(!this.isUndef(t)){var e=t.method(t.args,this);return this._nodes.push(e),e}},t.Expr.prototype._disposeNodes=function(){for(var t=0;t0){this.connect(arguments[0]);for(var t=1;t=t&&(t=1),"number"==typeof t?(this.biquad.frequency.cancelScheduledValues(this.ac.currentTime+.01+i),this.biquad.frequency.exponentialRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.biquad.frequency),this.biquad.frequency.value},t.Filter.prototype.res=function(t,e){var i=e||0;return"number"==typeof t?(this.biquad.Q.value=t,this.biquad.Q.cancelScheduledValues(this.ac.currentTime+.01+i),this.biquad.Q.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.biquad.Q),this.biquad.Q.value},t.Filter.prototype.gain=function(t,e){var i=e||0;return"number"==typeof t?(this.biquad.gain.value=t,this.biquad.gain.cancelScheduledValues(this.ac.currentTime+.01+i),this.biquad.gain.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.biquad.gain),this.biquad.gain.value},t.Filter.prototype.toggle=function(){return this._on=!this._on,this._on===!0?this.biquad.type=this._untoggledType:this._on===!1&&(this.biquad.type="allpass"),this._on},t.Filter.prototype.setType=function(t){this.biquad.type=t,this._untoggledType=this.biquad.type},t.Filter.prototype.dispose=function(){e.prototype.dispose.apply(this),this.biquad&&(this.biquad.disconnect(),delete this.biquad)},t.LowPass=function(){t.Filter.call(this,"lowpass")},t.LowPass.prototype=Object.create(t.Filter.prototype),t.HighPass=function(){t.Filter.call(this,"highpass")},t.HighPass.prototype=Object.create(t.Filter.prototype),t.BandPass=function(){t.Filter.call(this,"bandpass")},t.BandPass.prototype=Object.create(t.Filter.prototype),t.Filter}(a,Y);var W;W=function(){var e=z,i=a,n=function(t,i){e.call(this,"peaking"),this.disconnect(),this.set(t,i),this.biquad.gain.value=0,delete this.input,delete this.output,delete this._drywet,delete this.wet};return n.prototype=Object.create(e.prototype),n.prototype.amp=function(){console.warn("`amp()` is not available for p5.EQ bands. Use `.gain()`")},n.prototype.drywet=function(){console.warn("`drywet()` is not available for p5.EQ bands.")},n.prototype.connect=function(e){var i=e||t.soundOut.input;this.biquad?this.biquad.connect(i.input?i.input:i):this.output.connect(i.input?i.input:i)},n.prototype.disconnect=function(){this.biquad&&this.biquad.disconnect()},n.prototype.dispose=function(){var t=i.soundArray.indexOf(this);i.soundArray.splice(t,1),this.disconnect(),delete this.biquad},n}(z,a);var Q;Q=function(){var e=Y,i=W;return t.EQ=function(t){e.call(this),t=3===t||8===t?t:3;var i;i=3===t?Math.pow(2,3):2,this.bands=[];for(var n,o,r=0;t>r;r++)r===t-1?(n=21e3,o=.01):0===r?(n=100,o=.1):1===r?(n=3===t?360*i:360,o=1):(n=this.bands[r-1].freq()*i,o=1),this.bands[r]=this._newBand(n,o),r>0?this.bands[r-1].connect(this.bands[r].biquad):this.input.connect(this.bands[r].biquad);this.bands[t-1].connect(this.output)},t.EQ.prototype=Object.create(e.prototype),t.EQ.prototype.process=function(t){t.connect(this.input)},t.EQ.prototype.set=function(){if(arguments.length===2*this.bands.length)for(var t=0;t0;)delete this.bands.pop().dispose();delete this.bands}},t.EQ}(Y,W);var H;H=function(){var e=Y;return t.Panner3D=function(){e.call(this),this.panner=this.ac.createPanner(),this.panner.panningModel="HRTF",this.panner.distanceModel="linear",this.panner.connect(this.output),this.input.connect(this.panner)},t.Panner3D.prototype=Object.create(e.prototype),t.Panner3D.prototype.process=function(t){t.connect(this.input)},t.Panner3D.prototype.set=function(t,e,i,n){return this.positionX(t,n),this.positionY(e,n),this.positionZ(i,n),[this.panner.positionX.value,this.panner.positionY.value,this.panner.positionZ.value]},t.Panner3D.prototype.positionX=function(t,e){var i=e||0;return"number"==typeof t?(this.panner.positionX.value=t,this.panner.positionX.cancelScheduledValues(this.ac.currentTime+.01+i),this.panner.positionX.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.panner.positionX),this.panner.positionX.value},t.Panner3D.prototype.positionY=function(t,e){var i=e||0;return"number"==typeof t?(this.panner.positionY.value=t,this.panner.positionY.cancelScheduledValues(this.ac.currentTime+.01+i),this.panner.positionY.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.panner.positionY),this.panner.positionY.value},t.Panner3D.prototype.positionZ=function(t,e){var i=e||0;return"number"==typeof t?(this.panner.positionZ.value=t,this.panner.positionZ.cancelScheduledValues(this.ac.currentTime+.01+i),this.panner.positionZ.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.panner.positionZ),this.panner.positionZ.value},t.Panner3D.prototype.orient=function(t,e,i,n){return this.orientX(t,n),this.orientY(e,n),this.orientZ(i,n),[this.panner.orientationX.value,this.panner.orientationY.value,this.panner.orientationZ.value]},t.Panner3D.prototype.orientX=function(t,e){var i=e||0;return"number"==typeof t?(this.panner.orientationX.value=t,this.panner.orientationX.cancelScheduledValues(this.ac.currentTime+.01+i),this.panner.orientationX.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.panner.orientationX),this.panner.orientationX.value},t.Panner3D.prototype.orientY=function(t,e){var i=e||0;return"number"==typeof t?(this.panner.orientationY.value=t,this.panner.orientationY.cancelScheduledValues(this.ac.currentTime+.01+i),this.panner.orientationY.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.panner.orientationY),this.panner.orientationY.value},t.Panner3D.prototype.orientZ=function(t,e){var i=e||0;return"number"==typeof t?(this.panner.orientationZ.value=t,this.panner.orientationZ.cancelScheduledValues(this.ac.currentTime+.01+i),this.panner.orientationZ.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.panner.orientationZ),this.panner.orientationZ.value},t.Panner3D.prototype.setFalloff=function(t,e){this.maxDist(t),this.rolloff(e)},t.Panner3D.prototype.maxDist=function(t){return"number"==typeof t&&(this.panner.maxDistance=t),this.panner.maxDistance},t.Panner3D.prototype.rolloff=function(t){return"number"==typeof t&&(this.panner.rolloffFactor=t),this.panner.rolloffFactor},t.Panner3D.dispose=function(){e.prototype.dispose.apply(this),this.panner&&(this.panner.disconnect(),delete this.panner)},t.Panner3D}(a,Y);var $;$=function(){var e=a;return t.Listener3D=function(t){this.ac=e.audiocontext,this.listener=this.ac.listener},t.Listener3D.prototype.process=function(t){t.connect(this.input)},t.Listener3D.prototype.position=function(t,e,i,n){return this.positionX(t,n),this.positionY(e,n),this.positionZ(i,n),[this.listener.positionX.value,this.listener.positionY.value,this.listener.positionZ.value]},t.Listener3D.prototype.positionX=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.positionX.value=t,this.listener.positionX.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.positionX.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.positionX),this.listener.positionX.value},t.Listener3D.prototype.positionY=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.positionY.value=t,this.listener.positionY.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.positionY.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.positionY),this.listener.positionY.value},t.Listener3D.prototype.positionZ=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.positionZ.value=t,this.listener.positionZ.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.positionZ.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.positionZ),this.listener.positionZ.value},t.Listener3D.prototype.orient=function(t,e,i,n,o,r,s){return 3===arguments.length||4===arguments.length?(s=arguments[3],this.orientForward(t,e,i,s)):(6===arguments.length||7===arguments)&&(this.orientForward(t,e,i),this.orientUp(n,o,r,s)),[this.listener.forwardX.value,this.listener.forwardY.value,this.listener.forwardZ.value,this.listener.upX.value,this.listener.upY.value,this.listener.upZ.value]},t.Listener3D.prototype.orientForward=function(t,e,i,n){return this.forwardX(t,n),this.forwardY(e,n),this.forwardZ(i,n),[this.listener.forwardX,this.listener.forwardY,this.listener.forwardZ]},t.Listener3D.prototype.orientUp=function(t,e,i,n){return this.upX(t,n),this.upY(e,n),this.upZ(i,n),[this.listener.upX,this.listener.upY,this.listener.upZ]},t.Listener3D.prototype.forwardX=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.forwardX.value=t,this.listener.forwardX.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.forwardX.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.forwardX),this.listener.forwardX.value},t.Listener3D.prototype.forwardY=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.forwardY.value=t,this.listener.forwardY.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.forwardY.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.forwardY),this.listener.forwardY.value},t.Listener3D.prototype.forwardZ=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.forwardZ.value=t,this.listener.forwardZ.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.forwardZ.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.forwardZ),this.listener.forwardZ.value},t.Listener3D.prototype.upX=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.upX.value=t,this.listener.upX.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.upX.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.upX),this.listener.upX.value},t.Listener3D.prototype.upY=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.upY.value=t,this.listener.upY.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.upY.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.upY),this.listener.upY.value},t.Listener3D.prototype.upZ=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.upZ.value=t,this.listener.upZ.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.upZ.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.upZ),this.listener.upZ.value},t.Listener3D}(a,Y);var J;J=function(){var e=z,i=Y;t.Delay=function(){i.call(this),this._split=this.ac.createChannelSplitter(2),this._merge=this.ac.createChannelMerger(2),this._leftGain=this.ac.createGain(),this._rightGain=this.ac.createGain(),this.leftDelay=this.ac.createDelay(),this.rightDelay=this.ac.createDelay(),this._leftFilter=new e,this._rightFilter=new e,this._leftFilter.disconnect(),this._rightFilter.disconnect(),this._leftFilter.biquad.frequency.setValueAtTime(1200,this.ac.currentTime),this._rightFilter.biquad.frequency.setValueAtTime(1200,this.ac.currentTime),this._leftFilter.biquad.Q.setValueAtTime(.3,this.ac.currentTime),this._rightFilter.biquad.Q.setValueAtTime(.3,this.ac.currentTime),this.input.connect(this._split),this.leftDelay.connect(this._leftGain),this.rightDelay.connect(this._rightGain),this._leftGain.connect(this._leftFilter.input),this._rightGain.connect(this._rightFilter.input),this._merge.connect(this.wet),this._leftFilter.biquad.gain.setValueAtTime(1,this.ac.currentTime),this._rightFilter.biquad.gain.setValueAtTime(1,this.ac.currentTime),this.setType(0),this._maxDelay=this.leftDelay.delayTime.maxValue,this.feedback(.5)},t.Delay.prototype=Object.create(i.prototype),t.Delay.prototype.process=function(t,e,i,n){var o=i||0,r=e||0;if(o>=1)throw new Error("Feedback value will force a positive feedback loop.");if(r>=this._maxDelay)throw new Error("Delay Time exceeds maximum delay time of "+this._maxDelay+" second.");t.connect(this.input),this.leftDelay.delayTime.setValueAtTime(r,this.ac.currentTime),this.rightDelay.delayTime.setValueAtTime(r,this.ac.currentTime),this._leftGain.gain.value=o,this._rightGain.gain.value=o,n&&(this._leftFilter.freq(n),this._rightFilter.freq(n))},t.Delay.prototype.delayTime=function(t){"number"!=typeof t?(t.connect(this.leftDelay.delayTime),t.connect(this.rightDelay.delayTime)):(this.leftDelay.delayTime.cancelScheduledValues(this.ac.currentTime),this.rightDelay.delayTime.cancelScheduledValues(this.ac.currentTime),this.leftDelay.delayTime.linearRampToValueAtTime(t,this.ac.currentTime),this.rightDelay.delayTime.linearRampToValueAtTime(t,this.ac.currentTime))},t.Delay.prototype.feedback=function(t){if(t&&"number"!=typeof t)t.connect(this._leftGain.gain),t.connect(this._rightGain.gain);else{if(t>=1)throw new Error("Feedback value will force a positive feedback loop.");"number"==typeof t&&(this._leftGain.gain.value=t,this._rightGain.gain.value=t)}return this._leftGain.gain.value},t.Delay.prototype.filter=function(t,e){this._leftFilter.set(t,e),this._rightFilter.set(t,e)},t.Delay.prototype.setType=function(t){switch(1===t&&(t="pingPong"),this._split.disconnect(),this._leftFilter.disconnect(),this._rightFilter.disconnect(),this._split.connect(this.leftDelay,0),this._split.connect(this.rightDelay,1),t){case"pingPong":this._rightFilter.setType(this._leftFilter.biquad.type),this._leftFilter.output.connect(this._merge,0,0),this._rightFilter.output.connect(this._merge,0,1),this._leftFilter.output.connect(this.rightDelay),this._rightFilter.output.connect(this.leftDelay);break;default:this._leftFilter.output.connect(this._merge,0,0),this._rightFilter.output.connect(this._merge,0,1),this._leftFilter.output.connect(this.leftDelay),this._rightFilter.output.connect(this.rightDelay)}},t.Delay.prototype.dispose=function(){i.prototype.dispose.apply(this),this._split.disconnect(),this._leftFilter.dispose(),this._rightFilter.dispose(),this._merge.disconnect(),this._leftGain.disconnect(),this._rightGain.disconnect(),this.leftDelay.disconnect(),this.rightDelay.disconnect(),this._split=void 0,this._leftFilter=void 0,this._rightFilter=void 0,this._merge=void 0,this._leftGain=void 0,this._rightGain=void 0,this.leftDelay=void 0,this.rightDelay=void 0}}(z,Y);var K;K=function(){var e=c,i=Y;t.Reverb=function(){i.call(this),this._initConvolverNode(),this.input.gain.value=.5,this._seconds=3,this._decay=2,this._reverse=!1,this._buildImpulse()},t.Reverb.prototype=Object.create(i.prototype),t.Reverb.prototype._initConvolverNode=function(){this.convolverNode=this.ac.createConvolver(),this.input.connect(this.convolverNode),this.convolverNode.connect(this.wet)},t.Reverb.prototype._teardownConvolverNode=function(){this.convolverNode&&(this.convolverNode.disconnect(),delete this.convolverNode)},t.Reverb.prototype._setBuffer=function(t){this._teardownConvolverNode(),this._initConvolverNode(),this.convolverNode.buffer=t},t.Reverb.prototype.process=function(t,e,i,n){t.connect(this.input);var o=!1;e&&(this._seconds=e,o=!0),i&&(this._decay=i),n&&(this._reverse=n),o&&this._buildImpulse()},t.Reverb.prototype.set=function(t,e,i){var n=!1;t&&(this._seconds=t,n=!0),e&&(this._decay=e),i&&(this._reverse=i),n&&this._buildImpulse()},t.Reverb.prototype._buildImpulse=function(){var t,e,i=this.ac.sampleRate,n=i*this._seconds,o=this._decay,r=this.ac.createBuffer(2,n,i),s=r.getChannelData(0),a=r.getChannelData(1);for(e=0;n>e;e++)t=this._reverse?n-e:e,s[e]=(2*Math.random()-1)*Math.pow(1-t/n,o),a[e]=(2*Math.random()-1)*Math.pow(1-t/n,o);this._setBuffer(r)},t.Reverb.prototype.dispose=function(){i.prototype.dispose.apply(this),this._teardownConvolverNode()},t.Convolver=function(e,i,n){t.Reverb.call(this),this._initConvolverNode(),this.input.gain.value=.5,e?(this.impulses=[],this._loadBuffer(e,i,n)):(this._seconds=3,this._decay=2,this._reverse=!1,this._buildImpulse())},t.Convolver.prototype=Object.create(t.Reverb.prototype),t.prototype.registerPreloadMethod("createConvolver",t.prototype),t.prototype.createConvolver=function(e,i,n){window.location.origin.indexOf("file://")>-1&&"undefined"===window.cordova&&alert("This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS");var o=this,r=new t.Convolver(e,function(t){"function"==typeof i&&i(t),"function"==typeof o._decrementPreload&&o._decrementPreload()},n);return r.impulses=[],r},t.Convolver.prototype._loadBuffer=function(i,n,o){var i=t.prototype._checkFileFormats(i),r=this,s=(new Error).stack,a=t.prototype.getAudioContext(),u=new XMLHttpRequest;u.open("GET",i,!0),u.responseType="arraybuffer",u.onload=function(){if(200===u.status)a.decodeAudioData(u.response,function(t){var e={},o=i.split("/");e.name=o[o.length-1],e.audioBuffer=t,r.impulses.push(e),r._setBuffer(e.audioBuffer),n&&n(e)},function(){var t=new e("decodeAudioData",s,r.url),i="AudioContext error at decodeAudioData for "+r.url;o?(t.msg=i,o(t)):console.error(i+"\n The error stack trace includes: \n"+t.stack)});else{var t=new e("loadConvolver",s,r.url),c="Unable to load "+r.url+". The request status was: "+u.status+" ("+u.statusText+")";o?(t.message=c,o(t)):console.error(c+"\n The error stack trace includes: \n"+t.stack)}},u.onerror=function(){var t=new e("loadConvolver",s,r.url),i="There was no response from the server at "+r.url+". Check the url and internet connectivity.";o?(t.message=i,o(t)):console.error(i+"\n The error stack trace includes: \n"+t.stack)},u.send()},t.Convolver.prototype.set=null,t.Convolver.prototype.process=function(t){t.connect(this.input)},t.Convolver.prototype.impulses=[],t.Convolver.prototype.addImpulse=function(t,e,i){window.location.origin.indexOf("file://")>-1&&"undefined"===window.cordova&&alert("This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS"),this._loadBuffer(t,e,i)},t.Convolver.prototype.resetImpulse=function(t,e,i){window.location.origin.indexOf("file://")>-1&&"undefined"===window.cordova&&alert("This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS"),this.impulses=[],this._loadBuffer(t,e,i)},t.Convolver.prototype.toggleImpulse=function(t){if("number"==typeof t&&tthis._nextTick&&this._state;){var s=this._state.getValueAtTime(this._nextTick);if(s!==this._lastState){this._lastState=s;var a=this._state.get(this._nextTick);s===t.State.Started?(this._nextTick=a.time,this.isUndef(a.offset)||(this.ticks=a.offset),this.emit("start",a.time,this.ticks)):s===t.State.Stopped?(this.ticks=0,this.emit("stop",a.time)):s===t.State.Paused&&this.emit("pause",a.time)}var u=this._nextTick;this.frequency&&(this._nextTick+=1/this.frequency.getValueAtTime(this._nextTick),s===t.State.Started&&(this.callback(u),this.ticks++))}},t.Clock.prototype.getStateAtTime=function(t){return t=this.toSeconds(t),this._state.getValueAtTime(t)},t.Clock.prototype.dispose=function(){t.Emitter.prototype.dispose.call(this),this.context.off("tick",this._boundLoop),this._writable("frequency"),this.frequency.dispose(),this.frequency=null,this._boundLoop=null,this._nextTick=1/0,this.callback=null,this._state.dispose(),this._state=null},t.Clock}(n,q,tt,o);var it;it=function(){var e=a,i=et;t.Metro=function(){this.clock=new i({callback:this.ontick.bind(this)}),this.syncedParts=[],this.bpm=120,this._init(),this.prevTick=0,this.tatumTime=0,this.tickCallback=function(){}},t.Metro.prototype.ontick=function(t){var i=t-this.prevTick,n=t-e.audiocontext.currentTime;if(!(i-this.tatumTime<=-.02)){this.prevTick=t;var o=this;this.syncedParts.forEach(function(t){t.isPlaying&&(t.incrementStep(n),t.phrases.forEach(function(t){var e=t.sequence,i=o.metroTicks%e.length;0!==e[i]&&(o.metroTicks=t.parts.length?(t.scoreStep=0,t.onended()):(t.scoreStep=0,t.parts[t.currentPart-1].stop(),t.parts[t.currentPart].start())}var i=a,n=120;t.prototype.setBPM=function(t,e){n=t;for(var o in i.parts)i.parts[o]&&i.parts[o].setBPM(t,e)},t.Phrase=function(t,e,i){this.phraseStep=0,this.name=t,this.callback=e,this.sequence=i},t.Part=function(e,o){this.length=e||0,this.partStep=0, +/*! p5.sound.min.js v0.3.11 2019-03-14 */ + +/** + * p5.sound + * https://p5js.org/reference/#/libraries/p5.sound + * + * From the Processing Foundation and contributors + * https://github.com/processing/p5.js-sound/graphs/contributors + * + * MIT License (MIT) + * https://github.com/processing/p5.js-sound/blob/master/LICENSE + * + * Some of the many audio libraries & resources that inspire p5.sound: + * - TONE.js (c) Yotam Mann. Licensed under The MIT License (MIT). https://github.com/TONEnoTONE/Tone.js + * - buzz.js (c) Jay Salvat. Licensed under The MIT License (MIT). http://buzz.jaysalvat.com/ + * - Boris Smus Web Audio API book, 2013. Licensed under the Apache License http://www.apache.org/licenses/LICENSE-2.0 + * - wavesurfer.js https://github.com/katspaugh/wavesurfer.js + * - Web Audio Components by Jordan Santell https://github.com/web-audio-components + * - Wilm Thoben's Sound library for Processing https://github.com/processing/processing/tree/master/java/libraries/sound + * + * Web Audio API: http://w3.org/TR/webaudio/ + */ + +!function(t,e){"function"==typeof define&&define.amd?define("p5.sound",["p5"],function(t){e(t)}):e("object"==typeof exports?require("../p5"):t.p5)}(this,function(t){var e;e=function(){!function(){function t(t){t&&(t.setTargetAtTime||(t.setTargetAtTime=t.setTargetValueAtTime))}window.hasOwnProperty("webkitAudioContext")&&!window.hasOwnProperty("AudioContext")&&(window.AudioContext=window.webkitAudioContext,"function"!=typeof AudioContext.prototype.createGain&&(AudioContext.prototype.createGain=AudioContext.prototype.createGainNode),"function"!=typeof AudioContext.prototype.createDelay&&(AudioContext.prototype.createDelay=AudioContext.prototype.createDelayNode),"function"!=typeof AudioContext.prototype.createScriptProcessor&&(AudioContext.prototype.createScriptProcessor=AudioContext.prototype.createJavaScriptNode),"function"!=typeof AudioContext.prototype.createPeriodicWave&&(AudioContext.prototype.createPeriodicWave=AudioContext.prototype.createWaveTable),AudioContext.prototype.internal_createGain=AudioContext.prototype.createGain,AudioContext.prototype.createGain=function(){var e=this.internal_createGain();return t(e.gain),e},AudioContext.prototype.internal_createDelay=AudioContext.prototype.createDelay,AudioContext.prototype.createDelay=function(e){var i=e?this.internal_createDelay(e):this.internal_createDelay();return t(i.delayTime),i},AudioContext.prototype.internal_createBufferSource=AudioContext.prototype.createBufferSource,AudioContext.prototype.createBufferSource=function(){var e=this.internal_createBufferSource();return e.start?(e.internal_start=e.start,e.start=function(t,i,n){"undefined"!=typeof n?e.internal_start(t||0,i,n):e.internal_start(t||0,i||0)}):e.start=function(t,e,i){e||i?this.noteGrainOn(t||0,e,i):this.noteOn(t||0)},e.stop?(e.internal_stop=e.stop,e.stop=function(t){e.internal_stop(t||0)}):e.stop=function(t){this.noteOff(t||0)},t(e.playbackRate),e},AudioContext.prototype.internal_createDynamicsCompressor=AudioContext.prototype.createDynamicsCompressor,AudioContext.prototype.createDynamicsCompressor=function(){var e=this.internal_createDynamicsCompressor();return t(e.threshold),t(e.knee),t(e.ratio),t(e.reduction),t(e.attack),t(e.release),e},AudioContext.prototype.internal_createBiquadFilter=AudioContext.prototype.createBiquadFilter,AudioContext.prototype.createBiquadFilter=function(){var e=this.internal_createBiquadFilter();return t(e.frequency),t(e.detune),t(e.Q),t(e.gain),e},"function"!=typeof AudioContext.prototype.createOscillator&&(AudioContext.prototype.internal_createOscillator=AudioContext.prototype.createOscillator,AudioContext.prototype.createOscillator=function(){var e=this.internal_createOscillator();return e.start?(e.internal_start=e.start,e.start=function(t){e.internal_start(t||0)}):e.start=function(t){this.noteOn(t||0)},e.stop?(e.internal_stop=e.stop,e.stop=function(t){e.internal_stop(t||0)}):e.stop=function(t){this.noteOff(t||0)},e.setPeriodicWave||(e.setPeriodicWave=e.setWaveTable),t(e.frequency),t(e.detune),e})),window.hasOwnProperty("webkitOfflineAudioContext")&&!window.hasOwnProperty("OfflineAudioContext")&&(window.OfflineAudioContext=window.webkitOfflineAudioContext)}(window),navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;var e=document.createElement("audio");t.prototype.isSupported=function(){return!!e.canPlayType};var i=function(){return!!e.canPlayType&&e.canPlayType('audio/ogg; codecs="vorbis"')},n=function(){return!!e.canPlayType&&e.canPlayType("audio/mpeg;")},o=function(){return!!e.canPlayType&&e.canPlayType('audio/wav; codecs="1"')},r=function(){return!!e.canPlayType&&(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;"))},s=function(){return!!e.canPlayType&&e.canPlayType("audio/x-aiff;")};t.prototype.isFileSupported=function(t){switch(t.toLowerCase()){case"mp3":return n();case"wav":return o();case"ogg":return i();case"aac":case"m4a":case"mp4":return r();case"aif":case"aiff":return s();default:return!1}}}();var i;!function(t,e){i=function(){return e()}()}(this,function(){function t(t){var e=t.createBuffer(1,1,t.sampleRate),i=t.createBufferSource();i.buffer=e,i.connect(t.destination),i.start(0),t.resume&&t.resume()}function e(t){return"running"===t.state}function i(t,i){function n(){e(t)?i():(requestAnimationFrame(n),t.resume&&t.resume())}e(t)?i():n()}function n(t,e,i){if(Array.isArray(t)||NodeList&&t instanceof NodeList)for(var o=0;o1&&(this.input=new Array(t)),this.isUndef(e)||1===e?this.output=this.context.createGain():e>1&&(this.output=new Array(t))};t.prototype.set=function(e,i,n){if(this.isObject(e))n=i;else if(this.isString(e)){var o={};o[e]=i,e=o}t:for(var r in e){i=e[r];var s=this;if(-1!==r.indexOf(".")){for(var a=r.split("."),u=0;u1)for(var t=arguments[0],e=1;e0)for(var t=this,e=0;e0)for(var t=0;tn;n++)i[n].apply(this,e)}return this},t.Emitter.mixin=function(e){var i=["on","off","emit"];e._events={};for(var n=0;n1?t.getChannelData(1):e;var s=i(e,r),a=new window.ArrayBuffer(44+2*s.length),u=new window.DataView(a);n(u,0,"RIFF"),u.setUint32(4,36+2*s.length,!0),n(u,8,"WAVE"),n(u,12,"fmt "),u.setUint32(16,16,!0),u.setUint16(20,1,!0),u.setUint16(22,2,!0),u.setUint32(24,o.audiocontext.sampleRate,!0),u.setUint32(28,4*o.audiocontext.sampleRate,!0),u.setUint16(32,4,!0),u.setUint16(34,16,!0),n(u,36,"data"),u.setUint32(40,2*s.length,!0);for(var c=s.length,p=44,h=1,l=0;c>l;l++)u.setInt16(p,s[l]*(32767*h),!0),p+=2;return u}function i(t,e){for(var i=t.length+e.length,n=new Float32Array(i),o=0,r=0;i>r;)n[r++]=t[o],n[r++]=e[o],o++;return n}function n(t,e,i){for(var n=i.length,o=0;n>o;o++)t.setUint8(e+o,i.charCodeAt(o))}var o=a;t.prototype.sampleRate=function(){return o.audiocontext.sampleRate},t.prototype.freqToMidi=function(t){var e=Math.log(t/440)/Math.log(2),i=Math.round(12*e)+69;return i};var r=t.prototype.midiToFreq=function(t){return 440*Math.pow(2,(t-69)/12)},s=function(t){if("string"!=typeof t)return t;var e={A:21,B:23,C:24,D:26,E:28,F:29,G:31},i=e[t[0].toUpperCase()],n=~~t.slice(-1);switch(i+=12*(n-1),t[1]){case"#":i+=1;break;case"b":i-=1}return r(i)};return t.prototype.soundFormats=function(){o.extensions=[];for(var t=0;t-1))throw arguments[t]+" is not a valid sound format!";o.extensions.push(arguments[t])}},t.prototype.disposeSound=function(){for(var t=0;t-1)if(t.prototype.isFileSupported(n))i=i;else for(var r=i.split("."),s=r[r.length-1],a=0;a1?(this.splitter=i.createChannelSplitter(2),this.input.connect(this.splitter),this.splitter.connect(this.left,1),this.splitter.connect(this.right,0)):(this.input.connect(this.left),this.input.connect(this.right)),this.output=i.createChannelMerger(2),this.left.connect(this.output,0,1),this.right.connect(this.output,0,0),this.output.connect(e)},t.Panner.prototype.pan=function(t,e){var n=e||0,o=i.currentTime+n,r=(t+1)/2,s=Math.cos(r*Math.PI/2),a=Math.sin(r*Math.PI/2);this.left.gain.linearRampToValueAtTime(a,o),this.right.gain.linearRampToValueAtTime(s,o)},t.Panner.prototype.inputChannels=function(t){1===t?(this.input.disconnect(),this.input.connect(this.left),this.input.connect(this.right)):2===t&&(this.splitter=i.createChannelSplitter(2),this.input.disconnect(),this.input.connect(this.splitter),this.splitter.connect(this.left,1),this.splitter.connect(this.right,0))},t.Panner.prototype.connect=function(t){this.output.connect(t)},t.Panner.prototype.disconnect=function(){this.output&&this.output.disconnect()})}(a);var h;h=function(){function e(t,e){for(var i={},n=t.length,o=0;n>o;o++){if(t[o]>e){var r=t[o],s=new v(r,o);i[o]=s,o+=6e3}o++}return i}function i(t){for(var e=[],i=Object.keys(t).sort(),n=0;no;o++){var r=t[i[n]],s=t[i[n+o]];if(r&&s){var a=r.sampleIndex,u=s.sampleIndex,c=u-a;c>0&&r.intervals.push(c);var p=e.some(function(t){return t.interval===c?(t.count++,t):void 0});p||e.push({interval:c,count:1})}}return e}function n(t,e){var i=[];return t.forEach(function(t){try{var n=Math.abs(60/(t.interval/e));n=r(n);var o=i.some(function(e){return e.tempo===n?e.count+=t.count:void 0});if(!o){if(isNaN(n))return;i.push({tempo:Math.round(n),count:t.count})}}catch(s){throw s}}),i}function o(t,e,i,n){for(var o=[],s=Object.keys(t).sort(),a=0;a.01?!0:void 0})}function r(t){if(isFinite(t)&&0!==t){for(;90>t;)t*=2;for(;t>180&&t>90;)t/=2;return t}}function s(t){var e=t.inputBuffer.getChannelData(0);this._lastPos=e[e.length-1]||0,this._onTimeUpdate(self._lastPos)}function p(t){const e=t.target,i=this;e._playing=!1,e.removeEventListener("ended",i._clearOnEnd),i._onended(i),i.bufferSourceNodes.forEach(function(t,e){t._playing===!1&&i.bufferSourceNodes.splice(e)}),0===i.bufferSourceNodes.length&&(i._playing=!1)}var h=c,l=a,f=l.audiocontext,d=u.midiToFreq,m=u.convertToWav;t.SoundFile=function(e,i,n,o){if("undefined"!=typeof e){if("string"==typeof e||"string"==typeof e[0]){var r=t.prototype._checkFileFormats(e);this.url=r}else if("object"==typeof e&&!(window.File&&window.FileReader&&window.FileList&&window.Blob))throw"Unable to load file because the File API is not supported";e.file&&(e=e.file),this.file=e}this._onended=function(){},this._looping=!1,this._playing=!1,this._paused=!1,this._pauseTime=0,this._cues=[],this._cueIDCounter=0,this._lastPos=0,this._counterNode=null,this._scopeNode=null,this.bufferSourceNodes=[],this.bufferSourceNode=null,this.buffer=null,this.playbackRate=1,this.input=l.audiocontext.createGain(),this.output=l.audiocontext.createGain(),this.reversed=!1,this.startTime=0,this.endTime=null,this.pauseTime=0,this.mode="sustain",this.startMillis=null,this.panPosition=0,this.panner=new t.Panner(this.output,l.input,2),(this.url||this.file)&&this.load(i,n),l.soundArray.push(this),"function"==typeof o?this._whileLoading=o:this._whileLoading=function(){},this._onAudioProcess=s.bind(this),this._clearOnEnd=p.bind(this)},t.prototype.registerPreloadMethod("loadSound",t.prototype),t.prototype.loadSound=function(e,i,n,o){window.location.origin.indexOf("file://")>-1&&"undefined"===window.cordova&&window.alert("This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS");var r=this,s=new t.SoundFile(e,function(){"function"==typeof i&&i.apply(r,arguments),"function"==typeof r._decrementPreload&&r._decrementPreload()},n,o);return s},t.SoundFile.prototype.load=function(t,e){var i=this,n=(new Error).stack;if(void 0!==this.url&&""!==this.url){var o=new XMLHttpRequest;o.addEventListener("progress",function(t){i._updateProgress(t)},!1),o.open("GET",this.url,!0),o.responseType="arraybuffer",o.onload=function(){if(200===o.status){if(!i.panner)return;f.decodeAudioData(o.response,function(e){i.panner&&(i.buffer=e,i.panner.inputChannels(e.numberOfChannels),t&&t(i))},function(){if(i.panner){var t=new h("decodeAudioData",n,i.url),o="AudioContext error at decodeAudioData for "+i.url;e?(t.msg=o,e(t)):console.error(o+"\n The error stack trace includes: \n"+t.stack)}})}else{if(!i.panner)return;var r=new h("loadSound",n,i.url),s="Unable to load "+i.url+". The request status was: "+o.status+" ("+o.statusText+")";e?(r.message=s,e(r)):console.error(s+"\n The error stack trace includes: \n"+r.stack)}},o.onerror=function(){var t=new h("loadSound",n,i.url),o="There was no response from the server at "+i.url+". Check the url and internet connectivity.";e?(t.message=o,e(t)):console.error(o+"\n The error stack trace includes: \n"+t.stack)},o.send()}else if(void 0!==this.file){var r=new FileReader;r.onload=function(){i.panner&&f.decodeAudioData(r.result,function(e){i.panner&&(i.buffer=e,i.panner.inputChannels(e.numberOfChannels),t&&t(i))})},r.onerror=function(t){i.panner&&onerror&&onerror(t)},r.readAsArrayBuffer(this.file)}},t.SoundFile.prototype._updateProgress=function(t){if(t.lengthComputable){var e=t.loaded/t.total*.99;this._whileLoading(e,t)}else this._whileLoading("size unknown")},t.SoundFile.prototype.isLoaded=function(){return this.buffer?!0:!1},t.SoundFile.prototype.play=function(t,e,i,n,o){if(!this.output)return void console.warn("SoundFile.play() called after dispose");var r,s,a=l.audiocontext.currentTime,u=t||0;if(0>u&&(u=0),u+=a,"undefined"!=typeof e&&this.rate(e),"undefined"!=typeof i&&this.setVolume(i),!this.buffer)throw"not ready to play file, buffer has yet to load. Try preload()";if(this._pauseTime=0,"restart"===this.mode&&this.buffer&&this.bufferSourceNode&&(this.bufferSourceNode.stop(u),this._counterNode.stop(u)),"untildone"!==this.mode||!this.isPlaying()){if(this.bufferSourceNode=this._initSourceNode(),delete this._counterNode,this._counterNode=this._initCounterNode(),n){if(!(n>=0&&nt&&!this.reversed?(t=Math.abs(t),e=!0):t>0&&this.reversed&&(e=!0),this.bufferSourceNode){var i=l.audiocontext.currentTime;this.bufferSourceNode.playbackRate.cancelScheduledValues(i),this.bufferSourceNode.playbackRate.linearRampToValueAtTime(Math.abs(t),i),this._counterNode.playbackRate.cancelScheduledValues(i),this._counterNode.playbackRate.linearRampToValueAtTime(Math.abs(t),i)}return e&&this.reverseBuffer(),this.playbackRate},t.SoundFile.prototype.setPitch=function(t){var e=d(t)/d(60);this.rate(e)},t.SoundFile.prototype.getPlaybackRate=function(){return this.playbackRate},t.SoundFile.prototype.duration=function(){return this.buffer?this.buffer.duration:0},t.SoundFile.prototype.currentTime=function(){return this.reversed?Math.abs(this._lastPos-this.buffer.length)/f.sampleRate:this._lastPos/f.sampleRate},t.SoundFile.prototype.jump=function(t,e){if(0>t||t>this.buffer.duration)throw"jump time out of range";if(e>this.buffer.duration-t)throw"end time out of range";var i=t||0,n=e||void 0;this.isPlaying()&&this.stop(0),this.play(0,this.playbackRate,this.output.gain.value,i,n); +},t.SoundFile.prototype.channels=function(){return this.buffer.numberOfChannels},t.SoundFile.prototype.sampleRate=function(){return this.buffer.sampleRate},t.SoundFile.prototype.frames=function(){return this.buffer.length},t.SoundFile.prototype.getPeaks=function(t){if(!this.buffer)throw"Cannot load peaks yet, buffer is not loaded";if(t||(t=5*window.width),this.buffer){for(var e=this.buffer,i=e.length/t,n=~~(i/10)||1,o=e.numberOfChannels,r=new Float32Array(Math.round(t)),s=0;o>s;s++)for(var a=e.getChannelData(s),u=0;t>u;u++){for(var c=~~(u*i),p=~~(c+i),h=0,l=c;p>l;l+=n){var f=a[l];f>h?h=f:-f>h&&(h=f)}(0===s||Math.abs(h)>r[u])&&(r[u]=h)}return r}},t.SoundFile.prototype.reverseBuffer=function(){if(!this.buffer)throw"SoundFile is not done loading";var t=this._lastPos/f.sampleRate,e=this.getVolume();this.setVolume(0,.001);const i=this.buffer.numberOfChannels;for(var n=0;i>n;n++)this.buffer.getChannelData(n).reverse();this.reversed=!this.reversed,t&&this.jump(this.duration()-t),this.setVolume(e,.001)},t.SoundFile.prototype.onended=function(t){return this._onended=t,this},t.SoundFile.prototype.add=function(){},t.SoundFile.prototype.dispose=function(){var t=l.audiocontext.currentTime,e=l.soundArray.indexOf(this);if(l.soundArray.splice(e,1),this.stop(t),this.buffer&&this.bufferSourceNode){for(var i=0;io;o++){var r=n.getChannelData(o);r.set(t[o])}this.buffer=n,this.panner.inputChannels(e)};var y=function(t){const e=t.length,i=f.createBuffer(1,t.length,f.sampleRate),n=i.getChannelData(0);for(var o=0;e>o;o++)n[o]=o;return i};t.SoundFile.prototype._initCounterNode=function(){var e=this,i=f.currentTime,n=f.createBufferSource();return e._scopeNode&&(e._scopeNode.disconnect(),e._scopeNode.removeEventListener("audioprocess",e._onAudioProcess),delete e._scopeNode),e._scopeNode=f.createScriptProcessor(256,1,1),n.buffer=y(e.buffer),n.playbackRate.setValueAtTime(e.playbackRate,i),n.connect(e._scopeNode),e._scopeNode.connect(t.soundOut._silentNode),e._scopeNode.addEventListener("audioprocess",e._onAudioProcess),n},t.SoundFile.prototype._initSourceNode=function(){var t=f.createBufferSource();return t.buffer=this.buffer,t.playbackRate.value=this.playbackRate,t.connect(this.output),t},t.SoundFile.prototype.processPeaks=function(t,r,s,a){var u=this.buffer.length,c=this.buffer.sampleRate,p=this.buffer,h=[],l=r||.9,f=l,d=s||.22,m=a||200,y=new window.OfflineAudioContext(1,u,c),v=y.createBufferSource();v.buffer=p;var g=y.createBiquadFilter();g.type="lowpass",v.connect(g),g.connect(y.destination),v.start(0),y.startRendering(),y.oncomplete=function(r){if(self.panner){var s=r.renderedBuffer,a=s.getChannelData(0);do h=e(a,f),f-=.005;while(Object.keys(h).length=d);var u=i(h),c=n(u,s.sampleRate),p=c.sort(function(t,e){return e.count-t.count}).splice(0,5);this.tempo=p[0].tempo;var l=5,y=o(h,p[0].tempo,s.sampleRate,l);t(y)}}};var v=function(t,e){this.sampleIndex=e,this.amplitude=t,this.tempos=[],this.intervals=[]},g=function(t,e,i,n){this.callback=t,this.time=e,this.id=i,this.val=n};t.SoundFile.prototype.addCue=function(t,e,i){var n=this._cueIDCounter++,o=new g(e,t,n,i);return this._cues.push(o),n},t.SoundFile.prototype.removeCue=function(t){for(var e=this._cues.length,i=0;e>i;i++){var n=this._cues[i];if(n.id===t){this._cues.splice(i,1);break}}0===this._cues.length},t.SoundFile.prototype.clearCues=function(){this._cues=[]},t.SoundFile.prototype._onTimeUpdate=function(t){for(var e=t/this.buffer.sampleRate,i=this._cues.length,n=0;i>n;n++){var o=this._cues[n],r=o.time,s=o.val;this._prevTime=r&&o.callback(s)}this._prevTime=e},t.SoundFile.prototype.save=function(e){const i=m(this.buffer);t.prototype.saveSound([i],e,"wav")},t.SoundFile.prototype.getBlob=function(){const t=m(this.buffer);return new Blob([t],{type:"audio/wav"})}}(c,a,u,u);var l;l=function(){var e=a;t.Amplitude=function(t){this.bufferSize=2048,this.audiocontext=e.audiocontext,this.processor=this.audiocontext.createScriptProcessor(this.bufferSize,2,1),this.input=this.processor,this.output=this.audiocontext.createGain(),this.smoothing=t||0,this.volume=0,this.average=0,this.stereoVol=[0,0],this.stereoAvg=[0,0],this.stereoVolNorm=[0,0],this.volMax=.001,this.normalize=!1,this.processor.onaudioprocess=this._audioProcess.bind(this),this.processor.connect(this.output),this.output.gain.value=0,this.output.connect(this.audiocontext.destination),e.meter.connect(this.processor),e.soundArray.push(this)},t.Amplitude.prototype.setInput=function(i,n){e.meter.disconnect(),n&&(this.smoothing=n),null==i?(console.log("Amplitude input source is not ready! Connecting to master output instead"),e.meter.connect(this.processor)):i instanceof t.Signal?i.output.connect(this.processor):i?(i.connect(this.processor),this.processor.disconnect(),this.processor.connect(this.output)):e.meter.connect(this.processor)},t.Amplitude.prototype.connect=function(t){t?t.hasOwnProperty("input")?this.output.connect(t.input):this.output.connect(t):this.output.connect(this.panner.connect(e.input))},t.Amplitude.prototype.disconnect=function(){this.output&&this.output.disconnect()},t.Amplitude.prototype._audioProcess=function(t){for(var e=0;ea;a++)i=n[a],this.normalize?(r+=Math.max(Math.min(i/this.volMax,1),-1),s+=Math.max(Math.min(i/this.volMax,1),-1)*Math.max(Math.min(i/this.volMax,1),-1)):(r+=i,s+=i*i);var u=r/o,c=Math.sqrt(s/o);this.stereoVol[e]=Math.max(c,this.stereoVol[e]*this.smoothing),this.stereoAvg[e]=Math.max(u,this.stereoVol[e]*this.smoothing),this.volMax=Math.max(this.stereoVol[e],this.volMax)}var p=this,h=this.stereoVol.reduce(function(t,e,i){return p.stereoVolNorm[i-1]=Math.max(Math.min(p.stereoVol[i-1]/p.volMax,1),0),p.stereoVolNorm[i]=Math.max(Math.min(p.stereoVol[i]/p.volMax,1),0),t+e});this.volume=h/this.stereoVol.length,this.volNorm=Math.max(Math.min(this.volume/this.volMax,1),0)},t.Amplitude.prototype.getLevel=function(t){return"undefined"!=typeof t?this.normalize?this.stereoVolNorm[t]:this.stereoVol[t]:this.normalize?this.volNorm:this.volume},t.Amplitude.prototype.toggleNormalize=function(t){"boolean"==typeof t?this.normalize=t:this.normalize=!this.normalize},t.Amplitude.prototype.smooth=function(t){t>=0&&1>t?this.smoothing=t:console.log("Error: smoothing must be between 0 and 1")},t.Amplitude.prototype.dispose=function(){var t=e.soundArray.indexOf(this);e.soundArray.splice(t,1),this.input&&(this.input.disconnect(),delete this.input),this.output&&(this.output.disconnect(),delete this.output),delete this.processor}}(a);var f;f=function(){var e=a;t.FFT=function(t,i){this.input=this.analyser=e.audiocontext.createAnalyser(),Object.defineProperties(this,{bins:{get:function(){return this.analyser.fftSize/2},set:function(t){this.analyser.fftSize=2*t},configurable:!0,enumerable:!0},smoothing:{get:function(){return this.analyser.smoothingTimeConstant},set:function(t){this.analyser.smoothingTimeConstant=t},configurable:!0,enumerable:!0}}),this.smooth(t),this.bins=i||1024,e.fftMeter.connect(this.analyser),this.freqDomain=new Uint8Array(this.analyser.frequencyBinCount),this.timeDomain=new Uint8Array(this.analyser.frequencyBinCount),this.bass=[20,140],this.lowMid=[140,400],this.mid=[400,2600],this.highMid=[2600,5200],this.treble=[5200,14e3],e.soundArray.push(this)},t.FFT.prototype.setInput=function(t){t?(t.output?t.output.connect(this.analyser):t.connect&&t.connect(this.analyser),e.fftMeter.disconnect()):e.fftMeter.connect(this.analyser)},t.FFT.prototype.waveform=function(){for(var e,i,n,s=0;si){var o=i;i=t,t=o}for(var r=Math.round(t/n*this.freqDomain.length),s=Math.round(i/n*this.freqDomain.length),a=0,u=0,c=r;s>=c;c++)a+=this.freqDomain[c],u+=1;var p=a/u;return p}throw"invalid input for getEnergy()"}var h=Math.round(t/n*this.freqDomain.length);return this.freqDomain[h]},t.FFT.prototype.getFreq=function(t,e){console.log("getFreq() is deprecated. Please use getEnergy() instead.");var i=this.getEnergy(t,e);return i},t.FFT.prototype.getCentroid=function(){for(var t=e.audiocontext.sampleRate/2,i=0,n=0,o=0;os;s++)o[r]=void 0!==o[r]?(o[r]+e[s])/2:e[s],s%n===n-1&&r++;return o},t.FFT.prototype.logAverages=function(t){for(var i=e.audiocontext.sampleRate/2,n=this.freqDomain,o=n.length,r=new Array(t.length),s=0,a=0;o>a;a++){var u=Math.round(a*i/this.freqDomain.length);u>t[s].hi&&s++,r[s]=void 0!==r[s]?(r[s]+n[a])/2:n[a]}return r},t.FFT.prototype.getOctaveBands=function(t,i){var t=t||3,i=i||15.625,n=[],o={lo:i/Math.pow(2,1/(2*t)),ctr:i,hi:i*Math.pow(2,1/(2*t))};n.push(o);for(var r=e.audiocontext.sampleRate/2;o.hie;e++){var n=e/(i-1)*2-1;this._curve[e]=t(n,e)}return this._shaper.curve=this._curve,this},Object.defineProperty(t.WaveShaper.prototype,"curve",{get:function(){return this._shaper.curve},set:function(t){this._curve=new Float32Array(t),this._shaper.curve=this._curve}}),Object.defineProperty(t.WaveShaper.prototype,"oversample",{get:function(){return this._shaper.oversample},set:function(t){if(-1===["none","2x","4x"].indexOf(t))throw new RangeError("Tone.WaveShaper: oversampling must be either 'none', '2x', or '4x'");this._shaper.oversample=t}}),t.WaveShaper.prototype.dispose=function(){return t.prototype.dispose.call(this),this._shaper.disconnect(),this._shaper=null,this._curve=null,this},t.WaveShaper}(n);var y;y=function(t){return t.TimeBase=function(e,i){if(!(this instanceof t.TimeBase))return new t.TimeBase(e,i);if(this._expr=this._noOp,e instanceof t.TimeBase)this.copy(e);else if(!this.isUndef(i)||this.isNumber(e)){i=this.defaultArg(i,this._defaultUnits);var n=this._primaryExpressions[i].method;this._expr=n.bind(this,e)}else this.isString(e)?this.set(e):this.isUndef(e)&&(this._expr=this._defaultExpr())},t.extend(t.TimeBase),t.TimeBase.prototype.set=function(t){return this._expr=this._parseExprString(t),this},t.TimeBase.prototype.clone=function(){var t=new this.constructor;return t.copy(this),t},t.TimeBase.prototype.copy=function(t){var e=t._expr();return this.set(e)},t.TimeBase.prototype._primaryExpressions={n:{regexp:/^(\d+)n/i,method:function(t){return t=parseInt(t),1===t?this._beatsToUnits(this._timeSignature()):this._beatsToUnits(4/t)}},t:{regexp:/^(\d+)t/i,method:function(t){return t=parseInt(t),this._beatsToUnits(8/(3*parseInt(t)))}},m:{regexp:/^(\d+)m/i,method:function(t){return this._beatsToUnits(parseInt(t)*this._timeSignature())}},i:{regexp:/^(\d+)i/i,method:function(t){return this._ticksToUnits(parseInt(t))}},hz:{regexp:/^(\d+(?:\.\d+)?)hz/i,method:function(t){return this._frequencyToUnits(parseFloat(t))}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method:function(t,e,i){var n=0;return t&&"0"!==t&&(n+=this._beatsToUnits(this._timeSignature()*parseFloat(t))),e&&"0"!==e&&(n+=this._beatsToUnits(parseFloat(e))),i&&"0"!==i&&(n+=this._beatsToUnits(parseFloat(i)/4)),n}},s:{regexp:/^(\d+(?:\.\d+)?s)/,method:function(t){return this._secondsToUnits(parseFloat(t))}},samples:{regexp:/^(\d+)samples/,method:function(t){return parseInt(t)/this.context.sampleRate}},"default":{regexp:/^(\d+(?:\.\d+)?)/,method:function(t){return this._primaryExpressions[this._defaultUnits].method.call(this,t)}}},t.TimeBase.prototype._binaryExpressions={"+":{regexp:/^\+/,precedence:2,method:function(t,e){return t()+e()}},"-":{regexp:/^\-/,precedence:2,method:function(t,e){return t()-e()}},"*":{regexp:/^\*/,precedence:1,method:function(t,e){return t()*e()}},"/":{regexp:/^\//,precedence:1,method:function(t,e){return t()/e()}}},t.TimeBase.prototype._unaryExpressions={neg:{regexp:/^\-/,method:function(t){return-t()}}},t.TimeBase.prototype._syntaxGlue={"(":{regexp:/^\(/},")":{regexp:/^\)/}},t.TimeBase.prototype._tokenize=function(t){function e(t,e){for(var i=["_binaryExpressions","_unaryExpressions","_primaryExpressions","_syntaxGlue"],n=0;n0;){t=t.trim();var o=e(t,this);n.push(o),t=t.substr(o.value.length)}return{next:function(){return n[++i]},peek:function(){return n[i+1]}}},t.TimeBase.prototype._matchGroup=function(t,e,i){var n=!1;if(!this.isUndef(t))for(var o in e){var r=e[o];if(r.regexp.test(t.value)){if(this.isUndef(i))return r;if(r.precedence===i)return r}}return n},t.TimeBase.prototype._parseBinary=function(t,e){this.isUndef(e)&&(e=2);var i;i=0>e?this._parseUnary(t):this._parseBinary(t,e-1);for(var n=t.peek();n&&this._matchGroup(n,this._binaryExpressions,e);)n=t.next(),i=n.method.bind(this,i,this._parseBinary(t,e-1)),n=t.peek();return i},t.TimeBase.prototype._parseUnary=function(t){var e,i;e=t.peek();var n=this._matchGroup(e,this._unaryExpressions);return n?(e=t.next(),i=this._parseUnary(t),n.method.bind(this,i)):this._parsePrimary(t)},t.TimeBase.prototype._parsePrimary=function(t){var e,i;if(e=t.peek(),this.isUndef(e))throw new SyntaxError("Tone.TimeBase: Unexpected end of expression");if(this._matchGroup(e,this._primaryExpressions)){e=t.next();var n=e.value.match(e.regexp);return e.method.bind(this,n[1],n[2],n[3])}if(e&&"("===e.value){if(t.next(),i=this._parseBinary(t),e=t.next(),!e||")"!==e.value)throw new SyntaxError("Expected )");return i}throw new SyntaxError("Tone.TimeBase: Cannot process token "+e.value)},t.TimeBase.prototype._parseExprString=function(t){this.isString(t)||(t=t.toString());var e=this._tokenize(t),i=this._parseBinary(e);return i},t.TimeBase.prototype._noOp=function(){return 0},t.TimeBase.prototype._defaultExpr=function(){return this._noOp},t.TimeBase.prototype._defaultUnits="s",t.TimeBase.prototype._frequencyToUnits=function(t){return 1/t},t.TimeBase.prototype._beatsToUnits=function(e){return 60/t.Transport.bpm.value*e},t.TimeBase.prototype._secondsToUnits=function(t){return t},t.TimeBase.prototype._ticksToUnits=function(e){return e*(this._beatsToUnits(1)/t.Transport.PPQ)},t.TimeBase.prototype._timeSignature=function(){return t.Transport.timeSignature},t.TimeBase.prototype._pushExpr=function(e,i,n){return e instanceof t.TimeBase||(e=new this.constructor(e,n)),this._expr=this._binaryExpressions[i].method.bind(this,this._expr,e._expr),this},t.TimeBase.prototype.add=function(t,e){return this._pushExpr(t,"+",e)},t.TimeBase.prototype.sub=function(t,e){return this._pushExpr(t,"-",e)},t.TimeBase.prototype.mult=function(t,e){return this._pushExpr(t,"*",e)},t.TimeBase.prototype.div=function(t,e){return this._pushExpr(t,"/",e)},t.TimeBase.prototype.valueOf=function(){return this._expr()},t.TimeBase.prototype.dispose=function(){this._expr=null},t.TimeBase}(n);var v;v=function(t){return t.Time=function(e,i){return this instanceof t.Time?(this._plusNow=!1,void t.TimeBase.call(this,e,i)):new t.Time(e,i)},t.extend(t.Time,t.TimeBase),t.Time.prototype._unaryExpressions=Object.create(t.TimeBase.prototype._unaryExpressions),t.Time.prototype._unaryExpressions.quantize={regexp:/^@/,method:function(e){return t.Transport.nextSubdivision(e())}},t.Time.prototype._unaryExpressions.now={regexp:/^\+/,method:function(t){return this._plusNow=!0,t()}},t.Time.prototype.quantize=function(t,e){return e=this.defaultArg(e,1),this._expr=function(t,e,i){t=t(),e=e.toSeconds();var n=Math.round(t/e),o=n*e,r=o-t;return t+r*i}.bind(this,this._expr,new this.constructor(t),e),this},t.Time.prototype.addNow=function(){return this._plusNow=!0,this},t.Time.prototype._defaultExpr=function(){return this._plusNow=!0,this._noOp},t.Time.prototype.copy=function(e){return t.TimeBase.prototype.copy.call(this,e),this._plusNow=e._plusNow,this},t.Time.prototype.toNotation=function(){var t=this.toSeconds(),e=["1m","2n","4n","8n","16n","32n","64n","128n"],i=this._toNotationHelper(t,e),n=["1m","2n","2t","4n","4t","8n","8t","16n","16t","32n","32t","64n","64t","128n"],o=this._toNotationHelper(t,n);return o.split("+").length1-s%1&&(s+=a),s=Math.floor(s),s>0){if(n+=1===s?e[o]:s.toString()+"*"+e[o],t-=s*r,i>t)break;n+=" + "}}return""===n&&(n="0"),n},t.Time.prototype._notationToUnits=function(t){for(var e=this._primaryExpressions,i=[e.n,e.t,e.m],n=0;n3&&(n=parseFloat(n).toFixed(3));var o=[i,e,n];return o.join(":")},t.Time.prototype.toTicks=function(){var e=this._beatsToUnits(1),i=this.valueOf()/e;return Math.floor(i*t.Transport.PPQ)},t.Time.prototype.toSamples=function(){return this.toSeconds()*this.context.sampleRate},t.Time.prototype.toFrequency=function(){return 1/this.toSeconds()},t.Time.prototype.toSeconds=function(){return this.valueOf()},t.Time.prototype.toMilliseconds=function(){return 1e3*this.toSeconds()},t.Time.prototype.valueOf=function(){var t=this._expr();return t+(this._plusNow?this.now():0)},t.Time}(n);var g;g=function(t){t.Frequency=function(e,i){return this instanceof t.Frequency?void t.TimeBase.call(this,e,i):new t.Frequency(e,i)},t.extend(t.Frequency,t.TimeBase),t.Frequency.prototype._primaryExpressions=Object.create(t.TimeBase.prototype._primaryExpressions),t.Frequency.prototype._primaryExpressions.midi={regexp:/^(\d+(?:\.\d+)?midi)/,method:function(t){return this.midiToFrequency(t)}},t.Frequency.prototype._primaryExpressions.note={regexp:/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i,method:function(t,i){var n=e[t.toLowerCase()],o=n+12*(parseInt(i)+1);return this.midiToFrequency(o)}},t.Frequency.prototype._primaryExpressions.tr={regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method:function(t,e,i){var n=1;return t&&"0"!==t&&(n*=this._beatsToUnits(this._timeSignature()*parseFloat(t))),e&&"0"!==e&&(n*=this._beatsToUnits(parseFloat(e))),i&&"0"!==i&&(n*=this._beatsToUnits(parseFloat(i)/4)),n}},t.Frequency.prototype.transpose=function(t){return this._expr=function(t,e){var i=t();return i*this.intervalToFrequencyRatio(e)}.bind(this,this._expr,t),this},t.Frequency.prototype.harmonize=function(t){return this._expr=function(t,e){for(var i=t(),n=[],o=0;or&&(o+=-12*r);var s=i[o%12];return s+r.toString()},t.Frequency.prototype.toSeconds=function(){return 1/this.valueOf()},t.Frequency.prototype.toFrequency=function(){return this.valueOf()},t.Frequency.prototype.toTicks=function(){var e=this._beatsToUnits(1),i=this.valueOf()/e;return Math.floor(i*t.Transport.PPQ)},t.Frequency.prototype._frequencyToUnits=function(t){return t},t.Frequency.prototype._ticksToUnits=function(e){return 1/(60*e/(t.Transport.bpm.value*t.Transport.PPQ))},t.Frequency.prototype._beatsToUnits=function(e){return 1/t.TimeBase.prototype._beatsToUnits.call(this,e)},t.Frequency.prototype._secondsToUnits=function(t){return 1/t},t.Frequency.prototype._defaultUnits="hz";var e={cbb:-2,cb:-1,c:0,"c#":1,cx:2,dbb:0,db:1,d:2,"d#":3,dx:4,ebb:2,eb:3,e:4,"e#":5,ex:6,fbb:3,fb:4,f:5,"f#":6,fx:7,gbb:5,gb:6,g:7,"g#":8,gx:9,abb:7,ab:8,a:9,"a#":10,ax:11,bbb:9,bb:10,b:11,"b#":12,bx:13},i=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];return t.Frequency.A4=440,t.Frequency.prototype.midiToFrequency=function(e){return t.Frequency.A4*Math.pow(2,(e-69)/12)},t.Frequency.prototype.frequencyToMidi=function(e){return 69+12*Math.log(e/t.Frequency.A4)/Math.LN2},t.Frequency}(n);var _;_=function(t){return t.TransportTime=function(e,i){return this instanceof t.TransportTime?void t.Time.call(this,e,i):new t.TransportTime(e,i)},t.extend(t.TransportTime,t.Time),t.TransportTime.prototype._unaryExpressions=Object.create(t.Time.prototype._unaryExpressions),t.TransportTime.prototype._unaryExpressions.quantize={regexp:/^@/,method:function(e){var i=this._secondsToTicks(e()),n=Math.ceil(t.Transport.ticks/i);return this._ticksToUnits(n*i)}},t.TransportTime.prototype._secondsToTicks=function(e){var i=this._beatsToUnits(1),n=e/i;return Math.round(n*t.Transport.PPQ)},t.TransportTime.prototype.valueOf=function(){var e=this._secondsToTicks(this._expr());return e+(this._plusNow?t.Transport.ticks:0)},t.TransportTime.prototype.toTicks=function(){return this.valueOf()},t.TransportTime.prototype.toSeconds=function(){var e=this._expr();return e+(this._plusNow?t.Transport.seconds:0)},t.TransportTime.prototype.toFrequency=function(){return 1/this.toSeconds()},t.TransportTime}(n);var T;T=function(t){return t.Type={Default:"number",Time:"time",Frequency:"frequency",TransportTime:"transportTime",Ticks:"ticks",NormalRange:"normalRange",AudioRange:"audioRange",Decibels:"db",Interval:"interval",BPM:"bpm",Positive:"positive",Cents:"cents",Degrees:"degrees",MIDI:"midi",BarsBeatsSixteenths:"barsBeatsSixteenths",Samples:"samples",Hertz:"hertz",Note:"note",Milliseconds:"milliseconds",Seconds:"seconds",Notation:"notation"},t.prototype.toSeconds=function(e){return this.isNumber(e)?e:this.isUndef(e)?this.now():this.isString(e)?new t.Time(e).toSeconds():e instanceof t.TimeBase?e.toSeconds():void 0},t.prototype.toFrequency=function(e){return this.isNumber(e)?e:this.isString(e)||this.isUndef(e)?new t.Frequency(e).valueOf():e instanceof t.TimeBase?e.toFrequency():void 0},t.prototype.toTicks=function(e){return this.isNumber(e)||this.isString(e)?new t.TransportTime(e).toTicks():this.isUndef(e)?t.Transport.ticks:e instanceof t.TimeBase?e.toTicks():void 0},t}(n,v,g,_);var b;b=function(t){"use strict";return t.Param=function(){var e=this.optionsObject(arguments,["param","units","convert"],t.Param.defaults);this._param=this.input=e.param,this.units=e.units,this.convert=e.convert,this.overridden=!1,this._lfo=null,this.isObject(e.lfo)?this.value=e.lfo:this.isUndef(e.value)||(this.value=e.value)},t.extend(t.Param),t.Param.defaults={units:t.Type.Default,convert:!0,param:void 0},Object.defineProperty(t.Param.prototype,"value",{get:function(){return this._toUnits(this._param.value)},set:function(e){if(this.isObject(e)){if(this.isUndef(t.LFO))throw new Error("Include 'Tone.LFO' to use an LFO as a Param value.");this._lfo&&this._lfo.dispose(),this._lfo=new t.LFO(e).start(),this._lfo.connect(this.input)}else{var i=this._fromUnits(e);this._param.cancelScheduledValues(0),this._param.value=i}}}),t.Param.prototype._fromUnits=function(e){if(!this.convert&&!this.isUndef(this.convert))return e;switch(this.units){case t.Type.Time:return this.toSeconds(e);case t.Type.Frequency:return this.toFrequency(e);case t.Type.Decibels:return this.dbToGain(e);case t.Type.NormalRange:return Math.min(Math.max(e,0),1);case t.Type.AudioRange:return Math.min(Math.max(e,-1),1);case t.Type.Positive:return Math.max(e,0);default:return e}},t.Param.prototype._toUnits=function(e){if(!this.convert&&!this.isUndef(this.convert))return e;switch(this.units){case t.Type.Decibels:return this.gainToDb(e);default:return e}},t.Param.prototype._minOutput=1e-5,t.Param.prototype.setValueAtTime=function(t,e){return t=this._fromUnits(t),e=this.toSeconds(e),e<=this.now()+this.blockTime?this._param.value=t:this._param.setValueAtTime(t,e),this},t.Param.prototype.setRampPoint=function(t){t=this.defaultArg(t,this.now());var e=this._param.value;return 0===e&&(e=this._minOutput),this._param.setValueAtTime(e,t),this},t.Param.prototype.linearRampToValueAtTime=function(t,e){return t=this._fromUnits(t),this._param.linearRampToValueAtTime(t,this.toSeconds(e)),this},t.Param.prototype.exponentialRampToValueAtTime=function(t,e){return t=this._fromUnits(t),t=Math.max(this._minOutput,t),this._param.exponentialRampToValueAtTime(t,this.toSeconds(e)),this},t.Param.prototype.exponentialRampToValue=function(t,e,i){return i=this.toSeconds(i),this.setRampPoint(i),this.exponentialRampToValueAtTime(t,i+this.toSeconds(e)),this},t.Param.prototype.linearRampToValue=function(t,e,i){return i=this.toSeconds(i),this.setRampPoint(i),this.linearRampToValueAtTime(t,i+this.toSeconds(e)),this},t.Param.prototype.setTargetAtTime=function(t,e,i){return t=this._fromUnits(t),t=Math.max(this._minOutput,t),i=Math.max(this._minOutput,i),this._param.setTargetAtTime(t,this.toSeconds(e),i),this},t.Param.prototype.setValueCurveAtTime=function(t,e,i){for(var n=0;n1&&(this.input=new Array(e)),1===i?this.output=new t.Gain:i>1&&(this.output=new Array(e))},t.Gain}(n,b);var S;S=function(t){"use strict";return t.Signal=function(){var e=this.optionsObject(arguments,["value","units"],t.Signal.defaults);this.output=this._gain=this.context.createGain(),e.param=this._gain.gain,t.Param.call(this,e),this.input=this._param=this._gain.gain,this.context.getConstant(1).chain(this._gain)},t.extend(t.Signal,t.Param),t.Signal.defaults={value:0,units:t.Type.Default,convert:!0},t.Signal.prototype.connect=t.SignalBase.prototype.connect,t.Signal.prototype.dispose=function(){return t.Param.prototype.dispose.call(this),this._param=null,this._gain.disconnect(),this._gain=null,this},t.Signal}(n,m,T,b);var w;w=function(t){"use strict";return t.Add=function(e){this.createInsOuts(2,0),this._sum=this.input[0]=this.input[1]=this.output=new t.Gain,this._param=this.input[1]=new t.Signal(e),this._param.connect(this._sum)},t.extend(t.Add,t.Signal),t.Add.prototype.dispose=function(){return t.prototype.dispose.call(this),this._sum.dispose(),this._sum=null,this._param.dispose(),this._param=null,this},t.Add}(n,S);var A;A=function(t){"use strict";return t.Multiply=function(e){this.createInsOuts(2,0),this._mult=this.input[0]=this.output=new t.Gain,this._param=this.input[1]=this.output.gain,this._param.value=this.defaultArg(e,0)},t.extend(t.Multiply,t.Signal),t.Multiply.prototype.dispose=function(){return t.prototype.dispose.call(this),this._mult.dispose(),this._mult=null, +this._param=null,this},t.Multiply}(n,S);var P;P=function(t){"use strict";return t.Scale=function(e,i){this._outputMin=this.defaultArg(e,0),this._outputMax=this.defaultArg(i,1),this._scale=this.input=new t.Multiply(1),this._add=this.output=new t.Add(0),this._scale.connect(this._add),this._setRange()},t.extend(t.Scale,t.SignalBase),Object.defineProperty(t.Scale.prototype,"min",{get:function(){return this._outputMin},set:function(t){this._outputMin=t,this._setRange()}}),Object.defineProperty(t.Scale.prototype,"max",{get:function(){return this._outputMax},set:function(t){this._outputMax=t,this._setRange()}}),t.Scale.prototype._setRange=function(){this._add.value=this._outputMin,this._scale.value=this._outputMax-this._outputMin},t.Scale.prototype.dispose=function(){return t.prototype.dispose.call(this),this._add.dispose(),this._add=null,this._scale.dispose(),this._scale=null,this},t.Scale}(n,w,A);var k;k=function(){var e=S,i=w,n=A,o=P;t.Signal=function(t){var i=new e(t);return i},e.prototype.fade=e.prototype.linearRampToValueAtTime,n.prototype.fade=e.prototype.fade,i.prototype.fade=e.prototype.fade,o.prototype.fade=e.prototype.fade,e.prototype.setInput=function(t){t.connect(this)},n.prototype.setInput=e.prototype.setInput,i.prototype.setInput=e.prototype.setInput,o.prototype.setInput=e.prototype.setInput,e.prototype.add=function(t){var e=new i(t);return this.connect(e),e},n.prototype.add=e.prototype.add,i.prototype.add=e.prototype.add,o.prototype.add=e.prototype.add,e.prototype.mult=function(t){var e=new n(t);return this.connect(e),e},n.prototype.mult=e.prototype.mult,i.prototype.mult=e.prototype.mult,o.prototype.mult=e.prototype.mult,e.prototype.scale=function(e,i,n,r){var s,a;4===arguments.length?(s=t.prototype.map(n,e,i,0,1)-.5,a=t.prototype.map(r,e,i,0,1)-.5):(s=arguments[0],a=arguments[1]);var u=new o(s,a);return this.connect(u),u},n.prototype.scale=e.prototype.scale,i.prototype.scale=e.prototype.scale,o.prototype.scale=e.prototype.scale}(S,w,A,P);var O;O=function(){var e=a,i=w,n=A,o=P;t.Oscillator=function(i,n){if("string"==typeof i){var o=n;n=i,i=o}if("number"==typeof n){var o=n;n=i,i=o}this.started=!1,this.phaseAmount=void 0,this.oscillator=e.audiocontext.createOscillator(),this.f=i||440,this.oscillator.type=n||"sine",this.oscillator.frequency.setValueAtTime(this.f,e.audiocontext.currentTime),this.output=e.audiocontext.createGain(),this._freqMods=[],this.output.gain.value=.5,this.output.gain.setValueAtTime(.5,e.audiocontext.currentTime),this.oscillator.connect(this.output),this.panPosition=0,this.connection=e.input,this.panner=new t.Panner(this.output,this.connection,1),this.mathOps=[this.output],e.soundArray.push(this)},t.Oscillator.prototype.start=function(t,i){if(this.started){var n=e.audiocontext.currentTime;this.stop(n)}if(!this.started){var o=i||this.f,r=this.oscillator.type;this.oscillator&&(this.oscillator.disconnect(),delete this.oscillator),this.oscillator=e.audiocontext.createOscillator(),this.oscillator.frequency.value=Math.abs(o),this.oscillator.type=r,this.oscillator.connect(this.output),t=t||0,this.oscillator.start(t+e.audiocontext.currentTime),this.freqNode=this.oscillator.frequency;for(var s in this._freqMods)"undefined"!=typeof this._freqMods[s].connect&&this._freqMods[s].connect(this.oscillator.frequency);this.started=!0}},t.Oscillator.prototype.stop=function(t){if(this.started){var i=t||0,n=e.audiocontext.currentTime;this.oscillator.stop(i+n),this.started=!1}},t.Oscillator.prototype.amp=function(t,i,n){var o=this;if("number"==typeof t){var i=i||0,n=n||0,r=e.audiocontext.currentTime;this.output.gain.linearRampToValueAtTime(t,r+n+i)}else{if(!t)return this.output.gain;t.connect(o.output.gain)}},t.Oscillator.prototype.fade=t.Oscillator.prototype.amp,t.Oscillator.prototype.getAmp=function(){return this.output.gain.value},t.Oscillator.prototype.freq=function(t,i,n){if("number"!=typeof t||isNaN(t)){if(!t)return this.oscillator.frequency;t.output&&(t=t.output),t.connect(this.oscillator.frequency),this._freqMods.push(t)}else{this.f=t;var o=e.audiocontext.currentTime,i=i||0,n=n||0;0===i?this.oscillator.frequency.setValueAtTime(t,n+o):t>0?this.oscillator.frequency.exponentialRampToValueAtTime(t,n+i+o):this.oscillator.frequency.linearRampToValueAtTime(t,n+i+o),this.phaseAmount&&this.phase(this.phaseAmount)}},t.Oscillator.prototype.getFreq=function(){return this.oscillator.frequency.value},t.Oscillator.prototype.setType=function(t){this.oscillator.type=t},t.Oscillator.prototype.getType=function(){return this.oscillator.type},t.Oscillator.prototype.connect=function(t){t?t.hasOwnProperty("input")?(this.panner.connect(t.input),this.connection=t.input):(this.panner.connect(t),this.connection=t):this.panner.connect(e.input)},t.Oscillator.prototype.disconnect=function(){this.output&&this.output.disconnect(),this.panner&&(this.panner.disconnect(),this.output&&this.output.connect(this.panner)),this.oscMods=[]},t.Oscillator.prototype.pan=function(t,e){this.panPosition=t,this.panner.pan(t,e)},t.Oscillator.prototype.getPan=function(){return this.panPosition},t.Oscillator.prototype.dispose=function(){var t=e.soundArray.indexOf(this);if(e.soundArray.splice(t,1),this.oscillator){var i=e.audiocontext.currentTime;this.stop(i),this.disconnect(),this.panner=null,this.oscillator=null}this.osc2&&this.osc2.dispose()},t.Oscillator.prototype.phase=function(i){var n=t.prototype.map(i,0,1,0,1/this.f),o=e.audiocontext.currentTime;this.phaseAmount=i,this.dNode||(this.dNode=e.audiocontext.createDelay(),this.oscillator.disconnect(),this.oscillator.connect(this.dNode),this.dNode.connect(this.output)),this.dNode.delayTime.setValueAtTime(n,o)};var r=function(t,e,i,n,o){var r=t.oscillator;for(var s in t.mathOps)t.mathOps[s]instanceof o&&(r.disconnect(),t.mathOps[s].dispose(),i=s,i0&&(r=t.mathOps[s-1]),r.disconnect(),r.connect(e),e.connect(n),t.mathOps[i]=e,t};t.Oscillator.prototype.add=function(t){var e=new i(t),n=this.mathOps.length-1,o=this.output;return r(this,e,n,o,i)},t.Oscillator.prototype.mult=function(t){var e=new n(t),i=this.mathOps.length-1,o=this.output;return r(this,e,i,o,n)},t.Oscillator.prototype.scale=function(e,i,n,s){var a,u;4===arguments.length?(a=t.prototype.map(n,e,i,0,1)-.5,u=t.prototype.map(s,e,i,0,1)-.5):(a=arguments[0],u=arguments[1]);var c=new o(a,u),p=this.mathOps.length-1,h=this.output;return r(this,c,p,h,o)},t.SinOsc=function(e){t.Oscillator.call(this,e,"sine")},t.SinOsc.prototype=Object.create(t.Oscillator.prototype),t.TriOsc=function(e){t.Oscillator.call(this,e,"triangle")},t.TriOsc.prototype=Object.create(t.Oscillator.prototype),t.SawOsc=function(e){t.Oscillator.call(this,e,"sawtooth")},t.SawOsc.prototype=Object.create(t.Oscillator.prototype),t.SqrOsc=function(e){t.Oscillator.call(this,e,"square")},t.SqrOsc.prototype=Object.create(t.Oscillator.prototype)}(a,w,A,P);var F;F=function(t){"use strict";return t.Timeline=function(){var e=this.optionsObject(arguments,["memory"],t.Timeline.defaults);this._timeline=[],this._toRemove=[],this._iterating=!1,this.memory=e.memory},t.extend(t.Timeline),t.Timeline.defaults={memory:1/0},Object.defineProperty(t.Timeline.prototype,"length",{get:function(){return this._timeline.length}}),t.Timeline.prototype.add=function(t){if(this.isUndef(t.time))throw new Error("Tone.Timeline: events must have a time attribute");if(this._timeline.length){var e=this._search(t.time);this._timeline.splice(e+1,0,t)}else this._timeline.push(t);if(this.length>this.memory){var i=this.length-this.memory;this._timeline.splice(0,i)}return this},t.Timeline.prototype.remove=function(t){if(this._iterating)this._toRemove.push(t);else{var e=this._timeline.indexOf(t);-1!==e&&this._timeline.splice(e,1)}return this},t.Timeline.prototype.get=function(t){var e=this._search(t);return-1!==e?this._timeline[e]:null},t.Timeline.prototype.peek=function(){return this._timeline[0]},t.Timeline.prototype.shift=function(){return this._timeline.shift()},t.Timeline.prototype.getAfter=function(t){var e=this._search(t);return e+10&&this._timeline[e-1].time=0?this._timeline[i-1]:null},t.Timeline.prototype.cancel=function(t){if(this._timeline.length>1){var e=this._search(t);if(e>=0)if(this._timeline[e].time===t){for(var i=e;i>=0&&this._timeline[i].time===t;i--)e=i;this._timeline=this._timeline.slice(0,e)}else this._timeline=this._timeline.slice(0,e+1);else this._timeline=[]}else 1===this._timeline.length&&this._timeline[0].time>=t&&(this._timeline=[]);return this},t.Timeline.prototype.cancelBefore=function(t){if(this._timeline.length){var e=this._search(t);e>=0&&(this._timeline=this._timeline.slice(e+1))}return this},t.Timeline.prototype._search=function(t){var e=0,i=this._timeline.length,n=i;if(i>0&&this._timeline[i-1].time<=t)return i-1;for(;n>e;){var o=Math.floor(e+(n-e)/2),r=this._timeline[o],s=this._timeline[o+1];if(r.time===t){for(var a=o;at)return o;r.time>t?n=o:r.time=n;n++)t(this._timeline[n]);if(this._iterating=!1,this._toRemove.length>0){for(var o=0;o=0&&this._timeline[i].time>=t;)i--;return this._iterate(e,i+1),this},t.Timeline.prototype.forEachAtTime=function(t,e){var i=this._search(t);return-1!==i&&this._iterate(function(i){i.time===t&&e(i)},0,i),this},t.Timeline.prototype.dispose=function(){t.prototype.dispose.call(this),this._timeline=null,this._toRemove=null},t.Timeline}(n);var q;q=function(t){"use strict";return t.TimelineSignal=function(){var e=this.optionsObject(arguments,["value","units"],t.Signal.defaults);this._events=new t.Timeline(10),t.Signal.apply(this,e),e.param=this._param,t.Param.call(this,e),this._initial=this._fromUnits(this._param.value)},t.extend(t.TimelineSignal,t.Param),t.TimelineSignal.Type={Linear:"linear",Exponential:"exponential",Target:"target",Curve:"curve",Set:"set"},Object.defineProperty(t.TimelineSignal.prototype,"value",{get:function(){var t=this.now(),e=this.getValueAtTime(t);return this._toUnits(e)},set:function(t){var e=this._fromUnits(t);this._initial=e,this.cancelScheduledValues(),this._param.value=e}}),t.TimelineSignal.prototype.setValueAtTime=function(e,i){return e=this._fromUnits(e),i=this.toSeconds(i),this._events.add({type:t.TimelineSignal.Type.Set,value:e,time:i}),this._param.setValueAtTime(e,i),this},t.TimelineSignal.prototype.linearRampToValueAtTime=function(e,i){return e=this._fromUnits(e),i=this.toSeconds(i),this._events.add({type:t.TimelineSignal.Type.Linear,value:e,time:i}),this._param.linearRampToValueAtTime(e,i),this},t.TimelineSignal.prototype.exponentialRampToValueAtTime=function(e,i){i=this.toSeconds(i);var n=this._searchBefore(i);n&&0===n.value&&this.setValueAtTime(this._minOutput,n.time),e=this._fromUnits(e);var o=Math.max(e,this._minOutput);return this._events.add({type:t.TimelineSignal.Type.Exponential,value:o,time:i}),ee)this.cancelScheduledValues(e),this.linearRampToValueAtTime(i,e);else{var o=this._searchAfter(e);o&&(this.cancelScheduledValues(e),o.type===t.TimelineSignal.Type.Linear?this.linearRampToValueAtTime(i,e):o.type===t.TimelineSignal.Type.Exponential&&this.exponentialRampToValueAtTime(i,e)),this.setValueAtTime(i,e)}return this},t.TimelineSignal.prototype.linearRampToValueBetween=function(t,e,i){return this.setRampPoint(e),this.linearRampToValueAtTime(t,i),this},t.TimelineSignal.prototype.exponentialRampToValueBetween=function(t,e,i){return this.setRampPoint(e),this.exponentialRampToValueAtTime(t,i),this},t.TimelineSignal.prototype._searchBefore=function(t){return this._events.get(t)},t.TimelineSignal.prototype._searchAfter=function(t){return this._events.getAfter(t)},t.TimelineSignal.prototype.getValueAtTime=function(e){e=this.toSeconds(e);var i=this._searchAfter(e),n=this._searchBefore(e),o=this._initial;if(null===n)o=this._initial;else if(n.type===t.TimelineSignal.Type.Target){var r,s=this._events.getBefore(n.time);r=null===s?this._initial:s.value,o=this._exponentialApproach(n.time,r,n.value,n.constant,e)}else o=n.type===t.TimelineSignal.Type.Curve?this._curveInterpolate(n.time,n.value,n.duration,e):null===i?n.value:i.type===t.TimelineSignal.Type.Linear?this._linearInterpolate(n.time,n.value,i.time,i.value,e):i.type===t.TimelineSignal.Type.Exponential?this._exponentialInterpolate(n.time,n.value,i.time,i.value,e):n.value;return o},t.TimelineSignal.prototype.connect=t.SignalBase.prototype.connect,t.TimelineSignal.prototype._exponentialApproach=function(t,e,i,n,o){return i+(e-i)*Math.exp(-(o-t)/n)},t.TimelineSignal.prototype._linearInterpolate=function(t,e,i,n,o){return e+(n-e)*((o-t)/(i-t))},t.TimelineSignal.prototype._exponentialInterpolate=function(t,e,i,n,o){return e=Math.max(this._minOutput,e),e*Math.pow(n/e,(o-t)/(i-t))},t.TimelineSignal.prototype._curveInterpolate=function(t,e,i,n){var o=e.length;if(n>=t+i)return e[o-1];if(t>=n)return e[0];var r=(n-t)/i,s=Math.floor((o-1)*r),a=Math.ceil((o-1)*r),u=e[s],c=e[a];return a===s?u:this._linearInterpolate(s,u,a,c,r*(o-1))},t.TimelineSignal.prototype.dispose=function(){t.Signal.prototype.dispose.call(this),t.Param.prototype.dispose.call(this),this._events.dispose(),this._events=null},t.TimelineSignal}(n,S);var M;M=function(){var e=a,i=w,n=A,o=P,r=q;t.Envelope=function(t,i,n,o,s,a){this.aTime=t||.1,this.aLevel=i||1,this.dTime=n||.5,this.dLevel=o||0,this.rTime=s||0,this.rLevel=a||0,this._rampHighPercentage=.98,this._rampLowPercentage=.02,this.output=e.audiocontext.createGain(),this.control=new r,this._init(),this.control.connect(this.output),this.connection=null,this.mathOps=[this.control],this.isExponential=!1,this.sourceToClear=null,this.wasTriggered=!1,e.soundArray.push(this)},t.Envelope.prototype._init=function(){var t=e.audiocontext.currentTime,i=t;this.control.setTargetAtTime(1e-5,i,.001),this._setRampAD(this.aTime,this.dTime)},t.Envelope.prototype.set=function(t,e,i,n,o,r){this.aTime=t,this.aLevel=e,this.dTime=i||0,this.dLevel=n||0,this.rTime=o||0,this.rLevel=r||0,this._setRampAD(t,i)},t.Envelope.prototype.setADSR=function(t,e,i,n){this.aTime=t,this.dTime=e||0,this.sPercent=i||0,this.dLevel="undefined"!=typeof i?i*(this.aLevel-this.rLevel)+this.rLevel:0,this.rTime=n||0,this._setRampAD(t,e)},t.Envelope.prototype.setRange=function(t,e){this.aLevel=t||1,this.rLevel=e||0},t.Envelope.prototype._setRampAD=function(t,e){this._rampAttackTime=this.checkExpInput(t),this._rampDecayTime=this.checkExpInput(e);var i=1;i=Math.log(1/this.checkExpInput(1-this._rampHighPercentage)),this._rampAttackTC=t/this.checkExpInput(i),i=Math.log(1/this._rampLowPercentage),this._rampDecayTC=e/this.checkExpInput(i)},t.Envelope.prototype.setRampPercentages=function(t,e){this._rampHighPercentage=this.checkExpInput(t),this._rampLowPercentage=this.checkExpInput(e);var i=1;i=Math.log(1/this.checkExpInput(1-this._rampHighPercentage)),this._rampAttackTC=this._rampAttackTime/this.checkExpInput(i),i=Math.log(1/this._rampLowPercentage),this._rampDecayTC=this._rampDecayTime/this.checkExpInput(i)},t.Envelope.prototype.setInput=function(){for(var t=0;t=t&&(t=1e-8),t},t.Envelope.prototype.play=function(t,e,i){var n=e||0,i=i||0;t&&this.connection!==t&&this.connect(t),this.triggerAttack(t,n),this.triggerRelease(t,n+this.aTime+this.dTime+i)},t.Envelope.prototype.triggerAttack=function(t,i){var n=e.audiocontext.currentTime,o=i||0,r=n+o;this.lastAttack=r,this.wasTriggered=!0,t&&this.connection!==t&&this.connect(t);var s=this.control.getValueAtTime(r);this.isExponential===!0?this.control.exponentialRampToValueAtTime(this.checkExpInput(s),r):this.control.linearRampToValueAtTime(s,r),r+=this.aTime,this.isExponential===!0?(this.control.exponentialRampToValueAtTime(this.checkExpInput(this.aLevel),r),s=this.checkExpInput(this.control.getValueAtTime(r)),this.control.cancelScheduledValues(r),this.control.exponentialRampToValueAtTime(s,r)):(this.control.linearRampToValueAtTime(this.aLevel,r),s=this.control.getValueAtTime(r),this.control.cancelScheduledValues(r),this.control.linearRampToValueAtTime(s,r)),r+=this.dTime,this.isExponential===!0?(this.control.exponentialRampToValueAtTime(this.checkExpInput(this.dLevel),r),s=this.checkExpInput(this.control.getValueAtTime(r)),this.control.cancelScheduledValues(r),this.control.exponentialRampToValueAtTime(s,r)):(this.control.linearRampToValueAtTime(this.dLevel,r),s=this.control.getValueAtTime(r),this.control.cancelScheduledValues(r),this.control.linearRampToValueAtTime(s,r))},t.Envelope.prototype.triggerRelease=function(t,i){if(this.wasTriggered){var n=e.audiocontext.currentTime,o=i||0,r=n+o;t&&this.connection!==t&&this.connect(t);var s=this.control.getValueAtTime(r);this.isExponential===!0?this.control.exponentialRampToValueAtTime(this.checkExpInput(s),r):this.control.linearRampToValueAtTime(s,r),r+=this.rTime,this.isExponential===!0?(this.control.exponentialRampToValueAtTime(this.checkExpInput(this.rLevel),r),s=this.checkExpInput(this.control.getValueAtTime(r)),this.control.cancelScheduledValues(r),this.control.exponentialRampToValueAtTime(s,r)):(this.control.linearRampToValueAtTime(this.rLevel,r),s=this.control.getValueAtTime(r),this.control.cancelScheduledValues(r),this.control.linearRampToValueAtTime(s,r)),this.wasTriggered=!1}},t.Envelope.prototype.ramp=function(t,i,n,o){var r=e.audiocontext.currentTime,s=i||0,a=r+s,u=this.checkExpInput(n),c="undefined"!=typeof o?this.checkExpInput(o):void 0;t&&this.connection!==t&&this.connect(t);var p=this.checkExpInput(this.control.getValueAtTime(a));u>p?(this.control.setTargetAtTime(u,a,this._rampAttackTC),a+=this._rampAttackTime):p>u&&(this.control.setTargetAtTime(u,a,this._rampDecayTC),a+=this._rampDecayTime),void 0!==c&&(c>u?this.control.setTargetAtTime(c,a,this._rampAttackTC):u>c&&this.control.setTargetAtTime(c,a,this._rampDecayTC))},t.Envelope.prototype.connect=function(i){this.connection=i,(i instanceof t.Oscillator||i instanceof t.SoundFile||i instanceof t.AudioIn||i instanceof t.Reverb||i instanceof t.Noise||i instanceof t.Filter||i instanceof t.Delay)&&(i=i.output.gain),i instanceof AudioParam&&i.setValueAtTime(0,e.audiocontext.currentTime),i instanceof t.Signal&&i.setValue(0),this.output.connect(i)},t.Envelope.prototype.disconnect=function(){this.output&&this.output.disconnect()},t.Envelope.prototype.add=function(e){var n=new i(e),o=this.mathOps.length,r=this.output;return t.prototype._mathChain(this,n,o,r,i)},t.Envelope.prototype.mult=function(e){var i=new n(e),o=this.mathOps.length,r=this.output;return t.prototype._mathChain(this,i,o,r,n)},t.Envelope.prototype.scale=function(e,i,n,r){var s=new o(e,i,n,r),a=this.mathOps.length,u=this.output;return t.prototype._mathChain(this,s,a,u,o)},t.Envelope.prototype.dispose=function(){var t=e.soundArray.indexOf(this);e.soundArray.splice(t,1),this.disconnect(),this.control&&(this.control.dispose(),this.control=null);for(var i=1;io;o++)n[o]=1;var r=t.createBufferSource();return r.buffer=e,r.loop=!0,r}var i=a;t.Pulse=function(n,o){t.Oscillator.call(this,n,"sawtooth"),this.w=o||0,this.osc2=new t.SawOsc(n),this.dNode=i.audiocontext.createDelay(),this.dcOffset=e(),this.dcGain=i.audiocontext.createGain(),this.dcOffset.connect(this.dcGain),this.dcGain.connect(this.output),this.f=n||440;var r=this.w/this.oscillator.frequency.value;this.dNode.delayTime.value=r,this.dcGain.gain.value=1.7*(.5-this.w),this.osc2.disconnect(),this.osc2.panner.disconnect(),this.osc2.amp(-1),this.osc2.output.connect(this.dNode),this.dNode.connect(this.output),this.output.gain.value=1,this.output.connect(this.panner)},t.Pulse.prototype=Object.create(t.Oscillator.prototype),t.Pulse.prototype.width=function(e){if("number"==typeof e){if(1>=e&&e>=0){this.w=e;var i=this.w/this.oscillator.frequency.value;this.dNode.delayTime.value=i}this.dcGain.gain.value=1.7*(.5-this.w)}else{e.connect(this.dNode.delayTime);var n=new t.SignalAdd(-.5);n.setInput(e),n=n.mult(-1),n=n.mult(1.7),n.connect(this.dcGain.gain)}},t.Pulse.prototype.start=function(t,n){var o=i.audiocontext.currentTime,r=n||0;if(!this.started){var s=t||this.f,a=this.oscillator.type;this.oscillator=i.audiocontext.createOscillator(),this.oscillator.frequency.setValueAtTime(s,o),this.oscillator.type=a,this.oscillator.connect(this.output),this.oscillator.start(r+o),this.osc2.oscillator=i.audiocontext.createOscillator(),this.osc2.oscillator.frequency.setValueAtTime(s,r+o),this.osc2.oscillator.type=a,this.osc2.oscillator.connect(this.osc2.output),this.osc2.start(r+o),this.freqNode=[this.oscillator.frequency,this.osc2.oscillator.frequency],this.dcOffset=e(),this.dcOffset.connect(this.dcGain),this.dcOffset.start(r+o),void 0!==this.mods&&void 0!==this.mods.frequency&&(this.mods.frequency.connect(this.freqNode[0]),this.mods.frequency.connect(this.freqNode[1])),this.started=!0,this.osc2.started=!0}},t.Pulse.prototype.stop=function(t){if(this.started){var e=t||0,n=i.audiocontext.currentTime;this.oscillator.stop(e+n),this.osc2.oscillator&&this.osc2.oscillator.stop(e+n),this.dcOffset.stop(e+n),this.started=!1,this.osc2.started=!1}},t.Pulse.prototype.freq=function(t,e,n){if("number"==typeof t){this.f=t;var o=i.audiocontext.currentTime,e=e||0,n=n||0,r=this.oscillator.frequency.value;this.oscillator.frequency.cancelScheduledValues(o),this.oscillator.frequency.setValueAtTime(r,o+n),this.oscillator.frequency.exponentialRampToValueAtTime(t,n+e+o),this.osc2.oscillator.frequency.cancelScheduledValues(o),this.osc2.oscillator.frequency.setValueAtTime(r,o+n),this.osc2.oscillator.frequency.exponentialRampToValueAtTime(t,n+e+o),this.freqMod&&(this.freqMod.output.disconnect(),this.freqMod=null)}else t.output&&(t.output.disconnect(),t.output.connect(this.oscillator.frequency),t.output.connect(this.osc2.oscillator.frequency),this.freqMod=t)}}(a,O);var V;V=function(){var e=a;t.Noise=function(e){var r;t.Oscillator.call(this),delete this.f,delete this.freq,delete this.oscillator,r="brown"===e?o:"pink"===e?n:i,this.buffer=r},t.Noise.prototype=Object.create(t.Oscillator.prototype);var i=function(){for(var t=2*e.audiocontext.sampleRate,i=e.audiocontext.createBuffer(1,t,e.audiocontext.sampleRate),n=i.getChannelData(0),o=0;t>o;o++)n[o]=2*Math.random()-1;return i.type="white",i}(),n=function(){var t,i,n,o,r,s,a,u=2*e.audiocontext.sampleRate,c=e.audiocontext.createBuffer(1,u,e.audiocontext.sampleRate),p=c.getChannelData(0);t=i=n=o=r=s=a=0;for(var h=0;u>h;h++){var l=2*Math.random()-1;t=.99886*t+.0555179*l,i=.99332*i+.0750759*l,n=.969*n+.153852*l,o=.8665*o+.3104856*l,r=.55*r+.5329522*l,s=-.7616*s-.016898*l,p[h]=t+i+n+o+r+s+a+.5362*l,p[h]*=.11,a=.115926*l}return c.type="pink",c}(),o=function(){for(var t=2*e.audiocontext.sampleRate,i=e.audiocontext.createBuffer(1,t,e.audiocontext.sampleRate),n=i.getChannelData(0),o=0,r=0;t>r;r++){var s=2*Math.random()-1;n[r]=(o+.02*s)/1.02,o=n[r],n[r]*=3.5}return i.type="brown",i}();t.Noise.prototype.setType=function(t){switch(t){case"white":this.buffer=i;break;case"pink":this.buffer=n;break;case"brown":this.buffer=o;break;default:this.buffer=i}if(this.started){var r=e.audiocontext.currentTime;this.stop(r),this.start(r+.01)}},t.Noise.prototype.getType=function(){return this.buffer.type},t.Noise.prototype.start=function(){this.started&&this.stop(),this.noise=e.audiocontext.createBufferSource(),this.noise.buffer=this.buffer,this.noise.loop=!0,this.noise.connect(this.output);var t=e.audiocontext.currentTime;this.noise.start(t),this.started=!0},t.Noise.prototype.stop=function(){var t=e.audiocontext.currentTime;this.noise&&(this.noise.stop(t),this.started=!1)},t.Noise.prototype.dispose=function(){var t=e.audiocontext.currentTime,i=e.soundArray.indexOf(this);e.soundArray.splice(i,1),this.noise&&(this.noise.disconnect(),this.stop(t)),this.output&&this.output.disconnect(),this.panner&&this.panner.disconnect(),this.output=null,this.panner=null,this.buffer=null,this.noise=null}}(a);var R;R=function(){var e=a;e.inputSources=[],t.AudioIn=function(i){this.input=e.audiocontext.createGain(),this.output=e.audiocontext.createGain(),this.stream=null,this.mediaStream=null,this.currentSource=null,this.enabled=!1,this.amplitude=new t.Amplitude,this.output.connect(this.amplitude.input),window.MediaStreamTrack&&window.navigator.mediaDevices&&window.navigator.mediaDevices.getUserMedia||(i?i():window.alert("This browser does not support MediaStreamTrack and mediaDevices")),e.soundArray.push(this)},t.AudioIn.prototype.start=function(t,i){var n=this;this.stream&&this.stop();var o=e.inputSources[n.currentSource],r={audio:{sampleRate:e.audiocontext.sampleRate,echoCancellation:!1}};e.inputSources[this.currentSource]&&(r.audio.deviceId=o.deviceId),window.navigator.mediaDevices.getUserMedia(r).then(function(i){n.stream=i,n.enabled=!0,n.mediaStream=e.audiocontext.createMediaStreamSource(i),n.mediaStream.connect(n.output),n.amplitude.setInput(n.output),t&&t()})["catch"](function(t){i?i(t):console.error(t)})},t.AudioIn.prototype.stop=function(){this.stream&&(this.stream.getTracks().forEach(function(t){t.stop()}),this.mediaStream.disconnect(),delete this.mediaStream,delete this.stream)},t.AudioIn.prototype.connect=function(t){t?t.hasOwnProperty("input")?this.output.connect(t.input):t.hasOwnProperty("analyser")?this.output.connect(t.analyser):this.output.connect(t):this.output.connect(e.input)},t.AudioIn.prototype.disconnect=function(){this.output&&(this.output.disconnect(),this.output.connect(this.amplitude.input))},t.AudioIn.prototype.getLevel=function(t){return t&&(this.amplitude.smoothing=t),this.amplitude.getLevel()},t.AudioIn.prototype.amp=function(t,i){if(i){var n=i||0,o=this.output.gain.value;this.output.gain.cancelScheduledValues(e.audiocontext.currentTime),this.output.gain.setValueAtTime(o,e.audiocontext.currentTime),this.output.gain.linearRampToValueAtTime(t,n+e.audiocontext.currentTime)}else this.output.gain.cancelScheduledValues(e.audiocontext.currentTime),this.output.gain.setValueAtTime(t,e.audiocontext.currentTime)},t.AudioIn.prototype.getSources=function(t,i){return new Promise(function(n,o){window.navigator.mediaDevices.enumerateDevices().then(function(i){e.inputSources=i.filter(function(t){return"audioinput"===t.kind}),n(e.inputSources),t&&t(e.inputSources)})["catch"](function(t){o(t),i?i(t):console.error("This browser does not support MediaStreamTrack.getSources()")})})},t.AudioIn.prototype.setSource=function(t){e.inputSources.length>0&&t=t?0:1},127),this._scale=this.input=new t.Multiply(1e4),this._scale.connect(this._thresh)},t.extend(t.GreaterThanZero,t.SignalBase),t.GreaterThanZero.prototype.dispose=function(){return t.prototype.dispose.call(this),this._scale.dispose(),this._scale=null,this._thresh.dispose(),this._thresh=null,this},t.GreaterThanZero}(n,S,A);var B;B=function(t){"use strict";return t.GreaterThan=function(e){this.createInsOuts(2,0),this._param=this.input[0]=new t.Subtract(e),this.input[1]=this._param.input[1],this._gtz=this.output=new t.GreaterThanZero,this._param.connect(this._gtz)},t.extend(t.GreaterThan,t.Signal),t.GreaterThan.prototype.dispose=function(){return t.prototype.dispose.call(this),this._param.dispose(),this._param=null,this._gtz.dispose(),this._gtz=null,this},t.GreaterThan}(n,N,D);var U;U=function(t){"use strict";return t.Abs=function(){this._abs=this.input=this.output=new t.WaveShaper(function(t){return 0===t?0:Math.abs(t)},127)},t.extend(t.Abs,t.SignalBase),t.Abs.prototype.dispose=function(){return t.prototype.dispose.call(this),this._abs.dispose(),this._abs=null,this},t.Abs}(n,m);var I;I=function(t){"use strict";return t.Modulo=function(e){this.createInsOuts(1,0),this._shaper=new t.WaveShaper(Math.pow(2,16)),this._multiply=new t.Multiply,this._subtract=this.output=new t.Subtract,this._modSignal=new t.Signal(e),this.input.fan(this._shaper,this._subtract),this._modSignal.connect(this._multiply,0,0),this._shaper.connect(this._multiply,0,1),this._multiply.connect(this._subtract,0,1),this._setWaveShaper(e)},t.extend(t.Modulo,t.SignalBase),t.Modulo.prototype._setWaveShaper=function(t){this._shaper.setMap(function(e){var i=Math.floor((e+1e-4)/t);return i; +})},Object.defineProperty(t.Modulo.prototype,"value",{get:function(){return this._modSignal.value},set:function(t){this._modSignal.value=t,this._setWaveShaper(t)}}),t.Modulo.prototype.dispose=function(){return t.prototype.dispose.call(this),this._shaper.dispose(),this._shaper=null,this._multiply.dispose(),this._multiply=null,this._subtract.dispose(),this._subtract=null,this._modSignal.dispose(),this._modSignal=null,this},t.Modulo}(n,m,A);var G;G=function(t){"use strict";return t.Pow=function(e){this._exp=this.defaultArg(e,1),this._expScaler=this.input=this.output=new t.WaveShaper(this._expFunc(this._exp),8192)},t.extend(t.Pow,t.SignalBase),Object.defineProperty(t.Pow.prototype,"value",{get:function(){return this._exp},set:function(t){this._exp=t,this._expScaler.setMap(this._expFunc(this._exp))}}),t.Pow.prototype._expFunc=function(t){return function(e){return Math.pow(Math.abs(e),t)}},t.Pow.prototype.dispose=function(){return t.prototype.dispose.call(this),this._expScaler.dispose(),this._expScaler=null,this},t.Pow}(n);var L;L=function(t){"use strict";return t.AudioToGain=function(){this._norm=this.input=this.output=new t.WaveShaper(function(t){return(t+1)/2})},t.extend(t.AudioToGain,t.SignalBase),t.AudioToGain.prototype.dispose=function(){return t.prototype.dispose.call(this),this._norm.dispose(),this._norm=null,this},t.AudioToGain}(n,m);var j;j=function(t){"use strict";function e(t,e,i){var n=new t;return i._eval(e[0]).connect(n,0,0),i._eval(e[1]).connect(n,0,1),n}function i(t,e,i){var n=new t;return i._eval(e[0]).connect(n,0,0),n}function n(t){return t?parseFloat(t):void 0}function o(t){return t&&t.args?parseFloat(t.args):void 0}return t.Expr=function(){var t=this._replacements(Array.prototype.slice.call(arguments)),e=this._parseInputs(t);this._nodes=[],this.input=new Array(e);for(var i=0;e>i;i++)this.input[i]=this.context.createGain();var n,o=this._parseTree(t);try{n=this._eval(o)}catch(r){throw this._disposeNodes(),new Error("Tone.Expr: Could evaluate expression: "+t)}this.output=n},t.extend(t.Expr,t.SignalBase),t.Expr._Expressions={value:{signal:{regexp:/^\d+\.\d+|^\d+/,method:function(e){var i=new t.Signal(n(e));return i}},input:{regexp:/^\$\d/,method:function(t,e){return e.input[n(t.substr(1))]}}},glue:{"(":{regexp:/^\(/},")":{regexp:/^\)/},",":{regexp:/^,/}},func:{abs:{regexp:/^abs/,method:i.bind(this,t.Abs)},mod:{regexp:/^mod/,method:function(e,i){var n=o(e[1]),r=new t.Modulo(n);return i._eval(e[0]).connect(r),r}},pow:{regexp:/^pow/,method:function(e,i){var n=o(e[1]),r=new t.Pow(n);return i._eval(e[0]).connect(r),r}},a2g:{regexp:/^a2g/,method:function(e,i){var n=new t.AudioToGain;return i._eval(e[0]).connect(n),n}}},binary:{"+":{regexp:/^\+/,precedence:1,method:e.bind(this,t.Add)},"-":{regexp:/^\-/,precedence:1,method:function(n,o){return 1===n.length?i(t.Negate,n,o):e(t.Subtract,n,o)}},"*":{regexp:/^\*/,precedence:0,method:e.bind(this,t.Multiply)}},unary:{"-":{regexp:/^\-/,method:i.bind(this,t.Negate)},"!":{regexp:/^\!/,method:i.bind(this,t.NOT)}}},t.Expr.prototype._parseInputs=function(t){var e=t.match(/\$\d/g),i=0;if(null!==e)for(var n=0;n0;){e=e.trim();var r=i(e);o.push(r),e=e.substr(r.value.length)}return{next:function(){return o[++n]},peek:function(){return o[n+1]}}},t.Expr.prototype._parseTree=function(e){function i(t,e){return!p(t)&&"glue"===t.type&&t.value===e}function n(e,i,n){var o=!1,r=t.Expr._Expressions[i];if(!p(e))for(var s in r){var a=r[s];if(a.regexp.test(e.value)){if(p(n))return!0;if(a.precedence===n)return!0}}return o}function o(t){p(t)&&(t=5);var e;e=0>t?r():o(t-1);for(var i=c.peek();n(i,"binary",t);)i=c.next(),e={operator:i.value,method:i.method,args:[e,o(t-1)]},i=c.peek();return e}function r(){var t,e;return t=c.peek(),n(t,"unary")?(t=c.next(),e=r(),{operator:t.value,method:t.method,args:[e]}):s()}function s(){var t,e;if(t=c.peek(),p(t))throw new SyntaxError("Tone.Expr: Unexpected termination of expression");if("func"===t.type)return t=c.next(),a(t);if("value"===t.type)return t=c.next(),{method:t.method,args:t.value};if(i(t,"(")){if(c.next(),e=o(),t=c.next(),!i(t,")"))throw new SyntaxError("Expected )");return e}throw new SyntaxError("Tone.Expr: Parse error, cannot process token "+t.value)}function a(t){var e,n=[];if(e=c.next(),!i(e,"("))throw new SyntaxError('Tone.Expr: Expected ( in a function call "'+t.value+'"');if(e=c.peek(),i(e,")")||(n=u()),e=c.next(),!i(e,")"))throw new SyntaxError('Tone.Expr: Expected ) in a function call "'+t.value+'"');return{method:t.method,args:n,name:name}}function u(){for(var t,e,n=[];;){if(e=o(),p(e))break;if(n.push(e),t=c.peek(),!i(t,","))break;c.next()}return n}var c=this._tokenize(e),p=this.isUndef.bind(this);return o()},t.Expr.prototype._eval=function(t){if(!this.isUndef(t)){var e=t.method(t.args,this);return this._nodes.push(e),e}},t.Expr.prototype._disposeNodes=function(){for(var t=0;t0){this.connect(arguments[0]);for(var t=1;t=t&&(t=1),"number"==typeof t?(this.biquad.frequency.cancelScheduledValues(this.ac.currentTime+.01+i),this.biquad.frequency.exponentialRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.biquad.frequency),this.biquad.frequency.value},t.Filter.prototype.res=function(t,e){var i=e||0;return"number"==typeof t?(this.biquad.Q.value=t,this.biquad.Q.cancelScheduledValues(this.ac.currentTime+.01+i),this.biquad.Q.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.biquad.Q),this.biquad.Q.value},t.Filter.prototype.gain=function(t,e){var i=e||0;return"number"==typeof t?(this.biquad.gain.value=t,this.biquad.gain.cancelScheduledValues(this.ac.currentTime+.01+i),this.biquad.gain.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.biquad.gain),this.biquad.gain.value},t.Filter.prototype.toggle=function(){return this._on=!this._on,this._on===!0?this.biquad.type=this._untoggledType:this._on===!1&&(this.biquad.type="allpass"),this._on},t.Filter.prototype.setType=function(t){this.biquad.type=t,this._untoggledType=this.biquad.type},t.Filter.prototype.dispose=function(){e.prototype.dispose.apply(this),this.biquad&&(this.biquad.disconnect(),delete this.biquad)},t.LowPass=function(){t.Filter.call(this,"lowpass")},t.LowPass.prototype=Object.create(t.Filter.prototype),t.HighPass=function(){t.Filter.call(this,"highpass")},t.HighPass.prototype=Object.create(t.Filter.prototype),t.BandPass=function(){t.Filter.call(this,"bandpass")},t.BandPass.prototype=Object.create(t.Filter.prototype),t.Filter}(a,Y);var W;W=function(){var e=z,i=a,n=function(t,i){e.call(this,"peaking"),this.disconnect(),this.set(t,i),this.biquad.gain.value=0,delete this.input,delete this.output,delete this._drywet,delete this.wet};return n.prototype=Object.create(e.prototype),n.prototype.amp=function(){console.warn("`amp()` is not available for p5.EQ bands. Use `.gain()`")},n.prototype.drywet=function(){console.warn("`drywet()` is not available for p5.EQ bands.")},n.prototype.connect=function(e){var i=e||t.soundOut.input;this.biquad?this.biquad.connect(i.input?i.input:i):this.output.connect(i.input?i.input:i)},n.prototype.disconnect=function(){this.biquad&&this.biquad.disconnect()},n.prototype.dispose=function(){var t=i.soundArray.indexOf(this);i.soundArray.splice(t,1),this.disconnect(),delete this.biquad},n}(z,a);var Q;Q=function(){var e=Y,i=W;return t.EQ=function(t){e.call(this),t=3===t||8===t?t:3;var i;i=3===t?Math.pow(2,3):2,this.bands=[];for(var n,o,r=0;t>r;r++)r===t-1?(n=21e3,o=.01):0===r?(n=100,o=.1):1===r?(n=3===t?360*i:360,o=1):(n=this.bands[r-1].freq()*i,o=1),this.bands[r]=this._newBand(n,o),r>0?this.bands[r-1].connect(this.bands[r].biquad):this.input.connect(this.bands[r].biquad);this.bands[t-1].connect(this.output)},t.EQ.prototype=Object.create(e.prototype),t.EQ.prototype.process=function(t){t.connect(this.input)},t.EQ.prototype.set=function(){if(arguments.length===2*this.bands.length)for(var t=0;t0;)delete this.bands.pop().dispose();delete this.bands}},t.EQ}(Y,W);var H;H=function(){var e=Y;return t.Panner3D=function(){e.call(this),this.panner=this.ac.createPanner(),this.panner.panningModel="HRTF",this.panner.distanceModel="linear",this.panner.connect(this.output),this.input.connect(this.panner)},t.Panner3D.prototype=Object.create(e.prototype),t.Panner3D.prototype.process=function(t){t.connect(this.input)},t.Panner3D.prototype.set=function(t,e,i,n){return this.positionX(t,n),this.positionY(e,n),this.positionZ(i,n),[this.panner.positionX.value,this.panner.positionY.value,this.panner.positionZ.value]},t.Panner3D.prototype.positionX=function(t,e){var i=e||0;return"number"==typeof t?(this.panner.positionX.value=t,this.panner.positionX.cancelScheduledValues(this.ac.currentTime+.01+i),this.panner.positionX.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.panner.positionX),this.panner.positionX.value},t.Panner3D.prototype.positionY=function(t,e){var i=e||0;return"number"==typeof t?(this.panner.positionY.value=t,this.panner.positionY.cancelScheduledValues(this.ac.currentTime+.01+i),this.panner.positionY.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.panner.positionY),this.panner.positionY.value},t.Panner3D.prototype.positionZ=function(t,e){var i=e||0;return"number"==typeof t?(this.panner.positionZ.value=t,this.panner.positionZ.cancelScheduledValues(this.ac.currentTime+.01+i),this.panner.positionZ.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.panner.positionZ),this.panner.positionZ.value},t.Panner3D.prototype.orient=function(t,e,i,n){return this.orientX(t,n),this.orientY(e,n),this.orientZ(i,n),[this.panner.orientationX.value,this.panner.orientationY.value,this.panner.orientationZ.value]},t.Panner3D.prototype.orientX=function(t,e){var i=e||0;return"number"==typeof t?(this.panner.orientationX.value=t,this.panner.orientationX.cancelScheduledValues(this.ac.currentTime+.01+i),this.panner.orientationX.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.panner.orientationX),this.panner.orientationX.value},t.Panner3D.prototype.orientY=function(t,e){var i=e||0;return"number"==typeof t?(this.panner.orientationY.value=t,this.panner.orientationY.cancelScheduledValues(this.ac.currentTime+.01+i),this.panner.orientationY.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.panner.orientationY),this.panner.orientationY.value},t.Panner3D.prototype.orientZ=function(t,e){var i=e||0;return"number"==typeof t?(this.panner.orientationZ.value=t,this.panner.orientationZ.cancelScheduledValues(this.ac.currentTime+.01+i),this.panner.orientationZ.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.panner.orientationZ),this.panner.orientationZ.value},t.Panner3D.prototype.setFalloff=function(t,e){this.maxDist(t),this.rolloff(e)},t.Panner3D.prototype.maxDist=function(t){return"number"==typeof t&&(this.panner.maxDistance=t),this.panner.maxDistance},t.Panner3D.prototype.rolloff=function(t){return"number"==typeof t&&(this.panner.rolloffFactor=t),this.panner.rolloffFactor},t.Panner3D.dispose=function(){e.prototype.dispose.apply(this),this.panner&&(this.panner.disconnect(),delete this.panner)},t.Panner3D}(a,Y);var $;$=function(){var e=a;return t.Listener3D=function(t){this.ac=e.audiocontext,this.listener=this.ac.listener},t.Listener3D.prototype.process=function(t){t.connect(this.input)},t.Listener3D.prototype.position=function(t,e,i,n){return this.positionX(t,n),this.positionY(e,n),this.positionZ(i,n),[this.listener.positionX.value,this.listener.positionY.value,this.listener.positionZ.value]},t.Listener3D.prototype.positionX=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.positionX.value=t,this.listener.positionX.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.positionX.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.positionX),this.listener.positionX.value},t.Listener3D.prototype.positionY=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.positionY.value=t,this.listener.positionY.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.positionY.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.positionY),this.listener.positionY.value},t.Listener3D.prototype.positionZ=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.positionZ.value=t,this.listener.positionZ.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.positionZ.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.positionZ),this.listener.positionZ.value},t.Listener3D.prototype.orient=function(t,e,i,n,o,r,s){return 3===arguments.length||4===arguments.length?(s=arguments[3],this.orientForward(t,e,i,s)):(6===arguments.length||7===arguments)&&(this.orientForward(t,e,i),this.orientUp(n,o,r,s)),[this.listener.forwardX.value,this.listener.forwardY.value,this.listener.forwardZ.value,this.listener.upX.value,this.listener.upY.value,this.listener.upZ.value]},t.Listener3D.prototype.orientForward=function(t,e,i,n){return this.forwardX(t,n),this.forwardY(e,n),this.forwardZ(i,n),[this.listener.forwardX,this.listener.forwardY,this.listener.forwardZ]},t.Listener3D.prototype.orientUp=function(t,e,i,n){return this.upX(t,n),this.upY(e,n),this.upZ(i,n),[this.listener.upX,this.listener.upY,this.listener.upZ]},t.Listener3D.prototype.forwardX=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.forwardX.value=t,this.listener.forwardX.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.forwardX.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.forwardX),this.listener.forwardX.value},t.Listener3D.prototype.forwardY=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.forwardY.value=t,this.listener.forwardY.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.forwardY.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.forwardY),this.listener.forwardY.value},t.Listener3D.prototype.forwardZ=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.forwardZ.value=t,this.listener.forwardZ.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.forwardZ.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.forwardZ),this.listener.forwardZ.value},t.Listener3D.prototype.upX=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.upX.value=t,this.listener.upX.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.upX.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.upX),this.listener.upX.value},t.Listener3D.prototype.upY=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.upY.value=t,this.listener.upY.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.upY.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.upY),this.listener.upY.value},t.Listener3D.prototype.upZ=function(t,e){var i=e||0;return"number"==typeof t?(this.listener.upZ.value=t,this.listener.upZ.cancelScheduledValues(this.ac.currentTime+.01+i),this.listener.upZ.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):t&&t.connect(this.listener.upZ),this.listener.upZ.value},t.Listener3D}(a,Y);var J;J=function(){var e=z,i=Y;t.Delay=function(){i.call(this),this._split=this.ac.createChannelSplitter(2),this._merge=this.ac.createChannelMerger(2),this._leftGain=this.ac.createGain(),this._rightGain=this.ac.createGain(),this.leftDelay=this.ac.createDelay(),this.rightDelay=this.ac.createDelay(),this._leftFilter=new e,this._rightFilter=new e,this._leftFilter.disconnect(),this._rightFilter.disconnect(),this._leftFilter.biquad.frequency.setValueAtTime(1200,this.ac.currentTime),this._rightFilter.biquad.frequency.setValueAtTime(1200,this.ac.currentTime),this._leftFilter.biquad.Q.setValueAtTime(.3,this.ac.currentTime),this._rightFilter.biquad.Q.setValueAtTime(.3,this.ac.currentTime),this.input.connect(this._split),this.leftDelay.connect(this._leftGain),this.rightDelay.connect(this._rightGain),this._leftGain.connect(this._leftFilter.input),this._rightGain.connect(this._rightFilter.input),this._merge.connect(this.wet),this._leftFilter.biquad.gain.setValueAtTime(1,this.ac.currentTime),this._rightFilter.biquad.gain.setValueAtTime(1,this.ac.currentTime),this.setType(0),this._maxDelay=this.leftDelay.delayTime.maxValue,this.feedback(.5)},t.Delay.prototype=Object.create(i.prototype),t.Delay.prototype.process=function(t,e,i,n){var o=i||0,r=e||0;if(o>=1)throw new Error("Feedback value will force a positive feedback loop.");if(r>=this._maxDelay)throw new Error("Delay Time exceeds maximum delay time of "+this._maxDelay+" second.");t.connect(this.input),this.leftDelay.delayTime.setValueAtTime(r,this.ac.currentTime),this.rightDelay.delayTime.setValueAtTime(r,this.ac.currentTime),this._leftGain.gain.value=o,this._rightGain.gain.value=o,n&&(this._leftFilter.freq(n),this._rightFilter.freq(n))},t.Delay.prototype.delayTime=function(t){"number"!=typeof t?(t.connect(this.leftDelay.delayTime),t.connect(this.rightDelay.delayTime)):(this.leftDelay.delayTime.cancelScheduledValues(this.ac.currentTime),this.rightDelay.delayTime.cancelScheduledValues(this.ac.currentTime),this.leftDelay.delayTime.linearRampToValueAtTime(t,this.ac.currentTime),this.rightDelay.delayTime.linearRampToValueAtTime(t,this.ac.currentTime))},t.Delay.prototype.feedback=function(t){if(t&&"number"!=typeof t)t.connect(this._leftGain.gain),t.connect(this._rightGain.gain);else{if(t>=1)throw new Error("Feedback value will force a positive feedback loop.");"number"==typeof t&&(this._leftGain.gain.value=t,this._rightGain.gain.value=t)}return this._leftGain.gain.value},t.Delay.prototype.filter=function(t,e){this._leftFilter.set(t,e),this._rightFilter.set(t,e)},t.Delay.prototype.setType=function(t){switch(1===t&&(t="pingPong"),this._split.disconnect(),this._leftFilter.disconnect(),this._rightFilter.disconnect(),this._split.connect(this.leftDelay,0),this._split.connect(this.rightDelay,1),t){case"pingPong":this._rightFilter.setType(this._leftFilter.biquad.type),this._leftFilter.output.connect(this._merge,0,0),this._rightFilter.output.connect(this._merge,0,1),this._leftFilter.output.connect(this.rightDelay),this._rightFilter.output.connect(this.leftDelay);break;default:this._leftFilter.output.connect(this._merge,0,0),this._rightFilter.output.connect(this._merge,0,1),this._leftFilter.output.connect(this.leftDelay),this._rightFilter.output.connect(this.rightDelay)}},t.Delay.prototype.dispose=function(){i.prototype.dispose.apply(this),this._split.disconnect(),this._leftFilter.dispose(),this._rightFilter.dispose(),this._merge.disconnect(),this._leftGain.disconnect(),this._rightGain.disconnect(),this.leftDelay.disconnect(),this.rightDelay.disconnect(),this._split=void 0,this._leftFilter=void 0,this._rightFilter=void 0,this._merge=void 0,this._leftGain=void 0,this._rightGain=void 0,this.leftDelay=void 0,this.rightDelay=void 0}}(z,Y);var K;K=function(){var e=c,i=Y;t.Reverb=function(){i.call(this),this._initConvolverNode(),this.input.gain.value=.5,this._seconds=3,this._decay=2,this._reverse=!1,this._buildImpulse()},t.Reverb.prototype=Object.create(i.prototype),t.Reverb.prototype._initConvolverNode=function(){this.convolverNode=this.ac.createConvolver(),this.input.connect(this.convolverNode),this.convolverNode.connect(this.wet)},t.Reverb.prototype._teardownConvolverNode=function(){this.convolverNode&&(this.convolverNode.disconnect(),delete this.convolverNode)},t.Reverb.prototype._setBuffer=function(t){this._teardownConvolverNode(),this._initConvolverNode(),this.convolverNode.buffer=t},t.Reverb.prototype.process=function(t,e,i,n){t.connect(this.input);var o=!1;e&&(this._seconds=e,o=!0),i&&(this._decay=i),n&&(this._reverse=n),o&&this._buildImpulse()},t.Reverb.prototype.set=function(t,e,i){var n=!1;t&&(this._seconds=t,n=!0),e&&(this._decay=e),i&&(this._reverse=i),n&&this._buildImpulse()},t.Reverb.prototype._buildImpulse=function(){var t,e,i=this.ac.sampleRate,n=i*this._seconds,o=this._decay,r=this.ac.createBuffer(2,n,i),s=r.getChannelData(0),a=r.getChannelData(1);for(e=0;n>e;e++)t=this._reverse?n-e:e,s[e]=(2*Math.random()-1)*Math.pow(1-t/n,o),a[e]=(2*Math.random()-1)*Math.pow(1-t/n,o);this._setBuffer(r)},t.Reverb.prototype.dispose=function(){i.prototype.dispose.apply(this),this._teardownConvolverNode()},t.Convolver=function(e,i,n){t.Reverb.call(this),this._initConvolverNode(),this.input.gain.value=.5,e?(this.impulses=[],this._loadBuffer(e,i,n)):(this._seconds=3,this._decay=2,this._reverse=!1,this._buildImpulse())},t.Convolver.prototype=Object.create(t.Reverb.prototype),t.prototype.registerPreloadMethod("createConvolver",t.prototype),t.prototype.createConvolver=function(e,i,n){window.location.origin.indexOf("file://")>-1&&"undefined"===window.cordova&&alert("This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS");var o=this,r=new t.Convolver(e,function(t){"function"==typeof i&&i(t),"function"==typeof o._decrementPreload&&o._decrementPreload()},n);return r.impulses=[],r},t.Convolver.prototype._loadBuffer=function(i,n,o){var i=t.prototype._checkFileFormats(i),r=this,s=(new Error).stack,a=t.prototype.getAudioContext(),u=new XMLHttpRequest;u.open("GET",i,!0),u.responseType="arraybuffer",u.onload=function(){if(200===u.status)a.decodeAudioData(u.response,function(t){var e={},o=i.split("/");e.name=o[o.length-1],e.audioBuffer=t,r.impulses.push(e),r._setBuffer(e.audioBuffer),n&&n(e)},function(){var t=new e("decodeAudioData",s,r.url),i="AudioContext error at decodeAudioData for "+r.url;o?(t.msg=i,o(t)):console.error(i+"\n The error stack trace includes: \n"+t.stack)});else{var t=new e("loadConvolver",s,r.url),c="Unable to load "+r.url+". The request status was: "+u.status+" ("+u.statusText+")";o?(t.message=c,o(t)):console.error(c+"\n The error stack trace includes: \n"+t.stack)}},u.onerror=function(){var t=new e("loadConvolver",s,r.url),i="There was no response from the server at "+r.url+". Check the url and internet connectivity.";o?(t.message=i,o(t)):console.error(i+"\n The error stack trace includes: \n"+t.stack)},u.send()},t.Convolver.prototype.set=null,t.Convolver.prototype.process=function(t){t.connect(this.input)},t.Convolver.prototype.impulses=[],t.Convolver.prototype.addImpulse=function(t,e,i){window.location.origin.indexOf("file://")>-1&&"undefined"===window.cordova&&alert("This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS"),this._loadBuffer(t,e,i)},t.Convolver.prototype.resetImpulse=function(t,e,i){window.location.origin.indexOf("file://")>-1&&"undefined"===window.cordova&&alert("This sketch may require a server to load external files. Please see http://bit.ly/1qcInwS"),this.impulses=[],this._loadBuffer(t,e,i)},t.Convolver.prototype.toggleImpulse=function(t){if("number"==typeof t&&tthis._nextTick&&this._state;){var s=this._state.getValueAtTime(this._nextTick);if(s!==this._lastState){this._lastState=s;var a=this._state.get(this._nextTick);s===t.State.Started?(this._nextTick=a.time,this.isUndef(a.offset)||(this.ticks=a.offset),this.emit("start",a.time,this.ticks)):s===t.State.Stopped?(this.ticks=0,this.emit("stop",a.time)):s===t.State.Paused&&this.emit("pause",a.time)}var u=this._nextTick;this.frequency&&(this._nextTick+=1/this.frequency.getValueAtTime(this._nextTick),s===t.State.Started&&(this.callback(u),this.ticks++))}},t.Clock.prototype.getStateAtTime=function(t){return t=this.toSeconds(t),this._state.getValueAtTime(t)},t.Clock.prototype.dispose=function(){t.Emitter.prototype.dispose.call(this),this.context.off("tick",this._boundLoop),this._writable("frequency"),this.frequency.dispose(),this.frequency=null,this._boundLoop=null,this._nextTick=1/0,this.callback=null,this._state.dispose(),this._state=null},t.Clock}(n,q,tt,o);var it;it=function(){var e=a,i=et;t.Metro=function(){this.clock=new i({callback:this.ontick.bind(this)}),this.syncedParts=[],this.bpm=120,this._init(),this.prevTick=0,this.tatumTime=0,this.tickCallback=function(){}},t.Metro.prototype.ontick=function(t){var i=t-this.prevTick,n=t-e.audiocontext.currentTime;if(!(i-this.tatumTime<=-.02)){this.prevTick=t;var o=this;this.syncedParts.forEach(function(t){t.isPlaying&&(t.incrementStep(n),t.phrases.forEach(function(t){var e=t.sequence,i=o.metroTicks%e.length;0!==e[i]&&(o.metroTicks=t.parts.length?(t.scoreStep=0,t.onended()):(t.scoreStep=0,t.parts[t.currentPart-1].stop(),t.parts[t.currentPart].start())}var i=a,n=120;t.prototype.setBPM=function(t,e){n=t;for(var o in i.parts)i.parts[o]&&i.parts[o].setBPM(t,e)},t.Phrase=function(t,e,i){this.phraseStep=0,this.name=t,this.callback=e,this.sequence=i},t.Part=function(e,o){this.length=e||0,this.partStep=0, this.phrases=[],this.isPlaying=!1,this.noLoop(),this.tatums=o||.0625,this.metro=new t.Metro,this.metro._init(),this.metro.beatLength(this.tatums),this.metro.setBPM(n),i.parts.push(this),this.callback=function(){}},t.Part.prototype.setBPM=function(t,e){this.metro.setBPM(t,e)},t.Part.prototype.getBPM=function(){return this.metro.getBPM()},t.Part.prototype.start=function(t){if(!this.isPlaying){this.isPlaying=!0,this.metro.resetSync(this);var e=t||0;this.metro.start(e)}},t.Part.prototype.loop=function(t){this.looping=!0,this.onended=function(){this.partStep=0};var e=t||0;this.start(e)},t.Part.prototype.noLoop=function(){this.looping=!1,this.onended=function(){this.stop()}},t.Part.prototype.stop=function(t){this.partStep=0,this.pause(t)},t.Part.prototype.pause=function(t){this.isPlaying=!1;var e=t||0;this.metro.stop(e)},t.Part.prototype.addPhrase=function(e,i,n){var o;if(3===arguments.length)o=new t.Phrase(e,i,n);else{if(!(arguments[0]instanceof t.Phrase))throw"invalid input. addPhrase accepts name, callback, array or a p5.Phrase";o=arguments[0]}this.phrases.push(o),o.sequence.length>this.length&&(this.length=o.sequence.length)},t.Part.prototype.removePhrase=function(t){for(var e in this.phrases)this.phrases[e].name===t&&this.phrases.splice(e,1)},t.Part.prototype.getPhrase=function(t){for(var e in this.phrases)if(this.phrases[e].name===t)return this.phrases[e]},t.Part.prototype.replaceSequence=function(t,e){for(var i in this.phrases)this.phrases[i].name===t&&(this.phrases[i].sequence=e)},t.Part.prototype.incrementStep=function(t){this.partStep0&&o.iterations<=o.maxIterations&&o.callback(i)},frequency:this._calcFreq()})},t.SoundLoop.prototype.start=function(t){var i=t||0,n=e.audiocontext.currentTime;this.isPlaying||(this.clock.start(n+i),this.isPlaying=!0)},t.SoundLoop.prototype.stop=function(t){var i=t||0,n=e.audiocontext.currentTime;this.isPlaying&&(this.clock.stop(n+i),this.isPlaying=!1)},t.SoundLoop.prototype.pause=function(t){var i=t||0,n=e.audiocontext.currentTime;this.isPlaying&&(this.clock.pause(n+i),this.isPlaying=!1)},t.SoundLoop.prototype.syncedStart=function(t,i){var n=i||0,o=e.audiocontext.currentTime;if(t.isPlaying){if(t.isPlaying){var r=t.clock._nextTick-e.audiocontext.currentTime;this.clock.start(o+r),this.isPlaying=!0}}else t.clock.start(o+n),t.isPlaying=!0,this.clock.start(o+n),this.isPlaying=!0},t.SoundLoop.prototype._update=function(){this.clock.frequency.value=this._calcFreq()},t.SoundLoop.prototype._calcFreq=function(){return"number"==typeof this._interval?(this.musicalTimeMode=!1,1/this._interval):"string"==typeof this._interval?(this.musicalTimeMode=!0,this._bpm/60/this._convertNotation(this._interval)*(this._timeSignature/4)):void 0},t.SoundLoop.prototype._convertNotation=function(t){var e=t.slice(-1);switch(t=Number(t.slice(0,-1)),e){case"m":return this._measure(t);case"n":return this._note(t);default:console.warn("Specified interval is not formatted correctly. See Tone.js timing reference for more info: https://github.com/Tonejs/Tone.js/wiki/Time")}},t.SoundLoop.prototype._measure=function(t){return t*this._timeSignature},t.SoundLoop.prototype._note=function(t){return this._timeSignature/t},Object.defineProperty(t.SoundLoop.prototype,"bpm",{get:function(){return this._bpm},set:function(t){this.musicalTimeMode||console.warn('Changing the BPM in "seconds" mode has no effect. BPM is only relevant in musicalTimeMode when the interval is specified as a string ("2n", "4n", "1m"...etc)'),this._bpm=t,this._update()}}),Object.defineProperty(t.SoundLoop.prototype,"timeSignature",{get:function(){return this._timeSignature},set:function(t){this.musicalTimeMode||console.warn('Changing the timeSignature in "seconds" mode has no effect. BPM is only relevant in musicalTimeMode when the interval is specified as a string ("2n", "4n", "1m"...etc)'),this._timeSignature=t,this._update()}}),Object.defineProperty(t.SoundLoop.prototype,"interval",{get:function(){return this._interval},set:function(t){this.musicalTimeMode="Number"==typeof t?!1:!0,this._interval=t,this._update()}}),Object.defineProperty(t.SoundLoop.prototype,"iterations",{get:function(){return this.clock.ticks}}),t.SoundLoop}(a,et);var rt;rt=function(){"use strict";var e=Y;return t.Compressor=function(){e.call(this),this.compressor=this.ac.createDynamicsCompressor(),this.input.connect(this.compressor),this.compressor.connect(this.wet)},t.Compressor.prototype=Object.create(e.prototype),t.Compressor.prototype.process=function(t,e,i,n,o,r){t.connect(this.input),this.set(e,i,n,o,r)},t.Compressor.prototype.set=function(t,e,i,n,o){"undefined"!=typeof t&&this.attack(t),"undefined"!=typeof e&&this.knee(e),"undefined"!=typeof i&&this.ratio(i),"undefined"!=typeof n&&this.threshold(n),"undefined"!=typeof o&&this.release(o)},t.Compressor.prototype.attack=function(t,e){var i=e||0;return"number"==typeof t?(this.compressor.attack.value=t,this.compressor.attack.cancelScheduledValues(this.ac.currentTime+.01+i),this.compressor.attack.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):"undefined"!=typeof t&&t.connect(this.compressor.attack),this.compressor.attack.value},t.Compressor.prototype.knee=function(t,e){var i=e||0;return"number"==typeof t?(this.compressor.knee.value=t,this.compressor.knee.cancelScheduledValues(this.ac.currentTime+.01+i),this.compressor.knee.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):"undefined"!=typeof t&&t.connect(this.compressor.knee),this.compressor.knee.value},t.Compressor.prototype.ratio=function(t,e){var i=e||0;return"number"==typeof t?(this.compressor.ratio.value=t,this.compressor.ratio.cancelScheduledValues(this.ac.currentTime+.01+i),this.compressor.ratio.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):"undefined"!=typeof t&&t.connect(this.compressor.ratio),this.compressor.ratio.value},t.Compressor.prototype.threshold=function(t,e){var i=e||0;return"number"==typeof t?(this.compressor.threshold.value=t,this.compressor.threshold.cancelScheduledValues(this.ac.currentTime+.01+i),this.compressor.threshold.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):"undefined"!=typeof t&&t.connect(this.compressor.threshold),this.compressor.threshold.value},t.Compressor.prototype.release=function(t,e){var i=e||0;return"number"==typeof t?(this.compressor.release.value=t,this.compressor.release.cancelScheduledValues(this.ac.currentTime+.01+i),this.compressor.release.linearRampToValueAtTime(t,this.ac.currentTime+.02+i)):"undefined"!=typeof number&&t.connect(this.compressor.release),this.compressor.release.value},t.Compressor.prototype.reduction=function(){return this.compressor.reduction.value},t.Compressor.prototype.dispose=function(){e.prototype.dispose.apply(this),this.compressor&&(this.compressor.disconnect(),delete this.compressor)},t.Compressor}(a,Y,c);var st;st=function(){var e=a,i=u.convertToWav,n=e.audiocontext;t.SoundRecorder=function(){this.input=n.createGain(),this.output=n.createGain(),this.recording=!1,this.bufferSize=1024,this._channels=2,this._clear(),this._jsNode=n.createScriptProcessor(this.bufferSize,this._channels,2),this._jsNode.onaudioprocess=this._audioprocess.bind(this),this._callback=function(){},this._jsNode.connect(t.soundOut._silentNode),this.setInput(),e.soundArray.push(this)},t.SoundRecorder.prototype.setInput=function(e){this.input.disconnect(),this.input=null,this.input=n.createGain(),this.input.connect(this._jsNode),this.input.connect(this.output),e?e.connect(this.input):t.soundOut.output.connect(this.input)},t.SoundRecorder.prototype.record=function(t,e,i){this.recording=!0,e&&(this.sampleLimit=Math.round(e*n.sampleRate)),t&&i?this._callback=function(){this.buffer=this._getBuffer(),t.setBuffer(this.buffer),i()}:t&&(this._callback=function(){this.buffer=this._getBuffer(),t.setBuffer(this.buffer)})},t.SoundRecorder.prototype.stop=function(){this.recording=!1,this._callback(),this._clear()},t.SoundRecorder.prototype._clear=function(){this._leftBuffers=[],this._rightBuffers=[],this.recordedSamples=0,this.sampleLimit=null},t.SoundRecorder.prototype._audioprocess=function(t){if(this.recording!==!1&&this.recording===!0)if(this.sampleLimit&&this.recordedSamples>=this.sampleLimit)this.stop();else{var e=t.inputBuffer.getChannelData(0),i=t.inputBuffer.getChannelData(1);this._leftBuffers.push(new Float32Array(e)),this._rightBuffers.push(new Float32Array(i)),this.recordedSamples+=this.bufferSize}},t.SoundRecorder.prototype._getBuffer=function(){var t=[];return t.push(this._mergeBuffers(this._leftBuffers)),t.push(this._mergeBuffers(this._rightBuffers)),t},t.SoundRecorder.prototype._mergeBuffers=function(t){for(var e=new Float32Array(this.recordedSamples),i=0,n=t.length,o=0;n>o;o++){var r=t[o];e.set(r,i),i+=r.length}return e},t.SoundRecorder.prototype.dispose=function(){this._clear();var t=e.soundArray.indexOf(this);e.soundArray.splice(t,1),this._callback=function(){},this.input&&this.input.disconnect(),this.input=null,this._jsNode=null},t.prototype.saveSound=function(e,n){const o=i(e.buffer);t.prototype.writeFile([o],n,"wav")}}(a,u);var at;at=function(){t.PeakDetect=function(t,e,i,n){this.framesPerPeak=n||20,this.framesSinceLastPeak=0,this.decayRate=.95,this.threshold=i||.35,this.cutoff=0,this.cutoffMult=1.5,this.energy=0,this.penergy=0,this.currentValue=0,this.isDetected=!1,this.f1=t||40,this.f2=e||2e4,this._onPeak=function(){}},t.PeakDetect.prototype.update=function(t){var e=this.energy=t.getEnergy(this.f1,this.f2)/255;e>this.cutoff&&e>this.threshold&&e-this.penergy>0?(this._onPeak(),this.isDetected=!0,this.cutoff=e*this.cutoffMult,this.framesSinceLastPeak=0):(this.isDetected=!1,this.framesSinceLastPeak<=this.framesPerPeak?this.framesSinceLastPeak++:(this.cutoff*=this.decayRate,this.cutoff=Math.max(this.cutoff,this.threshold))),this.currentValue=e,this.penergy=e},t.PeakDetect.prototype.onPeak=function(t,e){var i=this;i._onPeak=function(){t(i.energy,e)}}}();var ut;ut=function(){var e=a;t.Gain=function(){this.ac=e.audiocontext,this.input=this.ac.createGain(),this.output=this.ac.createGain(),this.input.gain.value=.5,this.input.connect(this.output),e.soundArray.push(this)},t.Gain.prototype.setInput=function(t){t.connect(this.input)},t.Gain.prototype.connect=function(e){var i=e||t.soundOut.input;this.output.connect(i.input?i.input:i)},t.Gain.prototype.disconnect=function(){this.output&&this.output.disconnect()},t.Gain.prototype.amp=function(t,i,n){var i=i||0,n=n||0,o=e.audiocontext.currentTime,r=this.output.gain.value;this.output.gain.cancelScheduledValues(o),this.output.gain.linearRampToValueAtTime(r,o+n),this.output.gain.linearRampToValueAtTime(t,o+n+i)},t.Gain.prototype.dispose=function(){var t=e.soundArray.indexOf(this);e.soundArray.splice(t,1),this.output&&(this.output.disconnect(),delete this.output),this.input&&(this.input.disconnect(),delete this.input)}}(a);var ct;ct=function(){var e=a;return t.AudioVoice=function(){this.ac=e.audiocontext,this.output=this.ac.createGain(),this.connect(),e.soundArray.push(this)},t.AudioVoice.prototype.play=function(t,e,i,n){},t.AudioVoice.prototype.triggerAttack=function(t,e,i){},t.AudioVoice.prototype.triggerRelease=function(t){},t.AudioVoice.prototype.amp=function(t,e){},t.AudioVoice.prototype.connect=function(t){var i=t||e.input;this.output.connect(i.input?i.input:i)},t.AudioVoice.prototype.disconnect=function(){this.output.disconnect()},t.AudioVoice.prototype.dispose=function(){this.output&&(this.output.disconnect(),delete this.output)},t.AudioVoice}(a);var pt;pt=function(){var e=a,i=ct,n=u.noteToFreq,o=.15;t.MonoSynth=function(){i.call(this),this.oscillator=new t.Oscillator,this.env=new t.Envelope,this.env.setRange(1,0),this.env.setExp(!0),this.setADSR(.02,.25,.05,.35),this.oscillator.disconnect(),this.oscillator.connect(this.output),this.env.disconnect(),this.env.setInput(this.output.gain),this.oscillator.output.gain.value=1,this.oscillator.start(),this.connect(),e.soundArray.push(this)},t.MonoSynth.prototype=Object.create(t.AudioVoice.prototype),t.MonoSynth.prototype.play=function(t,e,i,n){this.triggerAttack(t,e,~~i),this.triggerRelease(~~i+(n||o))},t.MonoSynth.prototype.triggerAttack=function(t,e,i){var i=~~i,o=n(t),r=e||.1;this.oscillator.freq(o,0,i),this.env.ramp(this.output.gain,i,r)},t.MonoSynth.prototype.triggerRelease=function(t){var t=t||0;this.env.ramp(this.output.gain,t,0)},t.MonoSynth.prototype.setADSR=function(t,e,i,n){this.env.setADSR(t,e,i,n)},Object.defineProperties(t.MonoSynth.prototype,{attack:{get:function(){return this.env.aTime},set:function(t){this.env.setADSR(t,this.env.dTime,this.env.sPercent,this.env.rTime)}},decay:{get:function(){return this.env.dTime},set:function(t){this.env.setADSR(this.env.aTime,t,this.env.sPercent,this.env.rTime)}},sustain:{get:function(){return this.env.sPercent},set:function(t){this.env.setADSR(this.env.aTime,this.env.dTime,t,this.env.rTime)}},release:{get:function(){return this.env.rTime},set:function(t){this.env.setADSR(this.env.aTime,this.env.dTime,this.env.sPercent,t)}}}),t.MonoSynth.prototype.amp=function(t,e){var i=e||0;return"undefined"!=typeof t&&this.oscillator.amp(t,i),this.oscillator.amp().value},t.MonoSynth.prototype.connect=function(t){var i=t||e.input;this.output.connect(i.input?i.input:i)},t.MonoSynth.prototype.disconnect=function(){this.output&&this.output.disconnect()},t.MonoSynth.prototype.dispose=function(){i.prototype.dispose.apply(this),this.env&&this.env.dispose(),this.oscillator&&this.oscillator.dispose()}}(a,ct,u);var ht;ht=function(){var e=a,i=q,n=u.noteToFreq;t.PolySynth=function(n,o){this.audiovoices=[],this.notes={},this._newest=0,this._oldest=0,this.maxVoices=o||8,this.AudioVoice=void 0===n?t.MonoSynth:n,this._voicesInUse=new i(0),this.output=e.audiocontext.createGain(),this.connect(),this._allocateVoices(),e.soundArray.push(this)},t.PolySynth.prototype._allocateVoices=function(){for(var t=0;tf?f:p}this.audiovoices[a].triggerAttack(c,p,s)},t.PolySynth.prototype._updateAfter=function(t,e){if(null!==this._voicesInUse._searchAfter(t)){this._voicesInUse._searchAfter(t).value+=e;var i=this._voicesInUse._searchAfter(t).time;this._updateAfter(i,e)}},t.PolySynth.prototype.noteRelease=function(t,i){var o=e.audiocontext.currentTime,r=i||0,s=o+r;if(t){var a=n(t);if(this.notes[a]&&null!==this.notes[a].getValueAtTime(s)){var u=Math.max(~~this._voicesInUse.getValueAtTime(s).value,1);this._voicesInUse.setValueAtTime(u-1,s),u>0&&this._updateAfter(s,-1),this.audiovoices[this.notes[a].getValueAtTime(s)].triggerRelease(r),this.notes[a].dispose(),delete this.notes[a],this._newest=0===this._newest?0:(this._newest-1)%(this.maxVoices-1)}else console.warn("Cannot release a note that is not already playing")}else{this.audiovoices.forEach(function(t){t.triggerRelease(r)}),this._voicesInUse.setValueAtTime(0,s);for(var c in this.notes)this.notes[c].dispose(),delete this.notes[c]}},t.PolySynth.prototype.connect=function(t){var i=t||e.input;this.output.connect(i.input?i.input:i)},t.PolySynth.prototype.disconnect=function(){this.output&&this.output.disconnect()},t.PolySynth.prototype.dispose=function(){this.audiovoices.forEach(function(t){t.dispose()}),this.output&&(this.output.disconnect(),delete this.output)}}(a,q,u);var lt;lt=function(){function e(t){for(var e,i="number"==typeof t?t:50,n=44100,o=new Float32Array(n),r=Math.PI/180,s=0;n>s;++s)e=2*s/n-1,o[s]=(3+i)*e*20*r/(Math.PI+i*Math.abs(e));return o}var i=Y;t.Distortion=function(n,o){if(i.call(this),"undefined"==typeof n&&(n=.25),"number"!=typeof n)throw new Error("amount must be a number");if("undefined"==typeof o&&(o="2x"),"string"!=typeof o)throw new Error("oversample must be a String");var r=t.prototype.map(n,0,1,0,2e3);this.waveShaperNode=this.ac.createWaveShaper(),this.amount=r,this.waveShaperNode.curve=e(r),this.waveShaperNode.oversample=o,this.input.connect(this.waveShaperNode),this.waveShaperNode.connect(this.wet)},t.Distortion.prototype=Object.create(i.prototype),t.Distortion.prototype.process=function(t,e,i){t.connect(this.input),this.set(e,i)},t.Distortion.prototype.set=function(i,n){if(i){var o=t.prototype.map(i,0,1,0,2e3);this.amount=o,this.waveShaperNode.curve=e(o)}n&&(this.waveShaperNode.oversample=n)},t.Distortion.prototype.getAmount=function(){return this.amount},t.Distortion.prototype.getOversample=function(){return this.waveShaperNode.oversample},t.Distortion.prototype.dispose=function(){i.prototype.dispose.apply(this),this.waveShaperNode&&(this.waveShaperNode.disconnect(),this.waveShaperNode=null)}}(Y);var ft;ft=function(){var t=a;return t}(e,s,a,u,c,p,h,l,f,k,O,M,E,V,R,z,Q,H,$,J,K,it,nt,ot,rt,st,at,ut,pt,ht,lt,ct,pt,ht)}); \ No newline at end of file diff --git a/Games/Fruit_Ninja/p5/p5.js b/Games/Fruit_Ninja/p5/p5.js index c05e251b97..46a9c439a2 100644 --- a/Games/Fruit_Ninja/p5/p5.js +++ b/Games/Fruit_Ninja/p5/p5.js @@ -1,90024 +1,90024 @@ -/*! p5.js v0.9.0 July 01, 2019 */ -(function(f) { - if (typeof exports === 'object' && typeof module !== 'undefined') { - module.exports = f(); - } else if (typeof define === 'function' && define.amd) { - define([], f); - } else { - var g; - if (typeof window !== 'undefined') { - g = window; - } else if (typeof global !== 'undefined') { - g = global; - } else if (typeof self !== 'undefined') { - g = self; - } else { - g = this; - } - g.p5 = f(); - } -})(function() { - var define, module, exports; - return (function() { - function r(e, n, t) { - function o(i, f) { - if (!n[i]) { - if (!e[i]) { - var c = 'function' == typeof require && require; - if (!f && c) return c(i, !0); - if (u) return u(i, !0); - var a = new Error("Cannot find module '" + i + "'"); - throw ((a.code = 'MODULE_NOT_FOUND'), a); - } - var p = (n[i] = { exports: {} }); - e[i][0].call( - p.exports, - function(r) { - var n = e[i][1][r]; - return o(n || r); - }, - p, - p.exports, - r, - e, - n, - t - ); - } - return n[i].exports; - } - for (var u = 'function' == typeof require && require, i = 0; i < t.length; i++) - o(t[i]); - return o; - } - return r; - })()( - { - 1: [ - function(_dereq_, module, exports) { - module.exports = { - project: { - name: 'p5', - description: - '[![Build Status](https://travis-ci.org/processing/p5.js.svg?branch=master)](https://travis-ci.org/processing/p5.js) [![npm version](https://badge.fury.io/js/p5.svg)](https://www.npmjs.com/package/p5)', - version: '0.9.0', - url: 'https://github.com/processing/p5.js#readme' - }, - files: { - 'src/color/color_conversion.js': { - name: 'src/color/color_conversion.js', - modules: { - 'Color Conversion': 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/color/creating_reading.js': { - name: 'src/color/creating_reading.js', - modules: { - 'Creating & Reading': 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/color/p5.Color.js': { - name: 'src/color/p5.Color.js', - modules: {}, - classes: { - 'p5.Color': 1 - }, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/color/setting.js': { - name: 'src/color/setting.js', - modules: { - Setting: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/core/shape/2d_primitives.js': { - name: 'src/core/shape/2d_primitives.js', - modules: { - '2D Primitives': 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/core/shape/attributes.js': { - name: 'src/core/shape/attributes.js', - modules: { - Attributes: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/core/shape/curves.js': { - name: 'src/core/shape/curves.js', - modules: { - Curves: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/core/shape/vertex.js': { - name: 'src/core/shape/vertex.js', - modules: { - Vertex: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/core/constants.js': { - name: 'src/core/constants.js', - modules: { - Constants: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/core/environment.js': { - name: 'src/core/environment.js', - modules: { - Environment: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/core/error_helpers.js': { - name: 'src/core/error_helpers.js', - modules: {}, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/core/helpers.js': { - name: 'src/core/helpers.js', - modules: {}, - classes: {}, - fors: {}, - namespaces: {} - }, - 'src/core/init.js': { - name: 'src/core/init.js', - modules: {}, - classes: {}, - fors: {}, - namespaces: {} - }, - 'src/core/legacy.js': { - name: 'src/core/legacy.js', - modules: {}, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/core/main.js': { - name: 'src/core/main.js', - modules: { - Structure: 1 - }, - classes: { - p5: 1 - }, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/core/p5.Element.js': { - name: 'src/core/p5.Element.js', - modules: { - DOM: 1 - }, - classes: { - 'p5.Element': 1 - }, - fors: { - 'p5.Element': 1 - }, - namespaces: {} - }, - 'src/core/p5.Graphics.js': { - name: 'src/core/p5.Graphics.js', - modules: { - Rendering: 1 - }, - classes: { - 'p5.Graphics': 1 - }, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/core/p5.Renderer.js': { - name: 'src/core/p5.Renderer.js', - modules: {}, - classes: { - 'p5.Renderer': 1 - }, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/core/p5.Renderer2D.js': { - name: 'src/core/p5.Renderer2D.js', - modules: {}, - classes: {}, - fors: {}, - namespaces: {} - }, - 'src/core/rendering.js': { - name: 'src/core/rendering.js', - modules: {}, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/core/shim.js': { - name: 'src/core/shim.js', - modules: {}, - classes: {}, - fors: {}, - namespaces: {} - }, - 'src/core/structure.js': { - name: 'src/core/structure.js', - modules: {}, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/core/transform.js': { - name: 'src/core/transform.js', - modules: { - Transform: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/data/local_storage.js': { - name: 'src/data/local_storage.js', - modules: { - LocalStorage: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/data/p5.TypedDict.js': { - name: 'src/data/p5.TypedDict.js', - modules: { - Dictionary: 1 - }, - classes: { - 'p5.TypedDict': 1, - 'p5.StringDict': 1, - 'p5.NumberDict': 1 - }, - fors: { - 'p5.TypedDict': 1, - p5: 1 - }, - namespaces: {} - }, - 'src/events/acceleration.js': { - name: 'src/events/acceleration.js', - modules: { - Acceleration: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/events/keyboard.js': { - name: 'src/events/keyboard.js', - modules: { - Keyboard: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/events/mouse.js': { - name: 'src/events/mouse.js', - modules: { - Mouse: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/events/touch.js': { - name: 'src/events/touch.js', - modules: { - Touch: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/image/filters.js': { - name: 'src/image/filters.js', - modules: {}, - classes: {}, - fors: {}, - namespaces: {} - }, - 'src/image/image.js': { - name: 'src/image/image.js', - modules: { - Image: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/image/loading_displaying.js': { - name: 'src/image/loading_displaying.js', - modules: { - 'Loading & Displaying': 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/image/p5.Image.js': { - name: 'src/image/p5.Image.js', - modules: {}, - classes: { - 'p5.Image': 1 - }, - fors: {}, - namespaces: {} - }, - 'src/image/pixels.js': { - name: 'src/image/pixels.js', - modules: { - Pixels: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/io/files.js': { - name: 'src/io/files.js', - modules: { - Input: 1, - Output: 1 - }, - classes: { - 'p5.PrintWriter': 1 - }, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/io/p5.Table.js': { - name: 'src/io/p5.Table.js', - modules: { - Table: 1 - }, - classes: { - 'p5.Table': 1 - }, - fors: {}, - namespaces: {} - }, - 'src/io/p5.TableRow.js': { - name: 'src/io/p5.TableRow.js', - modules: {}, - classes: { - 'p5.TableRow': 1 - }, - fors: {}, - namespaces: {} - }, - 'src/io/p5.XML.js': { - name: 'src/io/p5.XML.js', - modules: { - XML: 1 - }, - classes: { - 'p5.XML': 1 - }, - fors: {}, - namespaces: {} - }, - 'src/math/calculation.js': { - name: 'src/math/calculation.js', - modules: { - Calculation: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/math/math.js': { - name: 'src/math/math.js', - modules: { - Math: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/math/noise.js': { - name: 'src/math/noise.js', - modules: { - Noise: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/math/p5.Vector.js': { - name: 'src/math/p5.Vector.js', - modules: {}, - classes: { - 'p5.Vector': 1 - }, - fors: {}, - namespaces: {} - }, - 'src/math/random.js': { - name: 'src/math/random.js', - modules: { - Random: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/math/trigonometry.js': { - name: 'src/math/trigonometry.js', - modules: { - Trigonometry: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/typography/attributes.js': { - name: 'src/typography/attributes.js', - modules: {}, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/typography/loading_displaying.js': { - name: 'src/typography/loading_displaying.js', - modules: {}, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/typography/p5.Font.js': { - name: 'src/typography/p5.Font.js', - modules: { - Font: 1 - }, - classes: { - 'p5.Font': 1 - }, - fors: {}, - namespaces: {} - }, - 'src/utilities/array_functions.js': { - name: 'src/utilities/array_functions.js', - modules: { - 'Array Functions': 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/utilities/conversion.js': { - name: 'src/utilities/conversion.js', - modules: { - Conversion: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/utilities/string_functions.js': { - name: 'src/utilities/string_functions.js', - modules: { - 'String Functions': 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/utilities/time_date.js': { - name: 'src/utilities/time_date.js', - modules: { - 'Time & Date': 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/webgl/3d_primitives.js': { - name: 'src/webgl/3d_primitives.js', - modules: { - '3D Primitives': 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/webgl/interaction.js': { - name: 'src/webgl/interaction.js', - modules: { - Interaction: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/webgl/light.js': { - name: 'src/webgl/light.js', - modules: { - Lights: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/webgl/loading.js': { - name: 'src/webgl/loading.js', - modules: { - '3D Models': 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/webgl/material.js': { - name: 'src/webgl/material.js', - modules: { - Material: 1 - }, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/webgl/p5.Camera.js': { - name: 'src/webgl/p5.Camera.js', - modules: { - Camera: 1 - }, - classes: { - 'p5.Camera': 1 - }, - fors: { - p5: 1, - 'p5.Camera': 1 - }, - namespaces: {} - }, - 'src/webgl/p5.Geometry.js': { - name: 'src/webgl/p5.Geometry.js', - modules: {}, - classes: { - 'p5.Geometry': 1 - }, - fors: {}, - namespaces: {} - }, - 'src/webgl/p5.Matrix.js': { - name: 'src/webgl/p5.Matrix.js', - modules: {}, - classes: { - 'p5.Matrix': 1 - }, - fors: {}, - namespaces: {} - }, - 'src/webgl/p5.RendererGL.Immediate.js': { - name: 'src/webgl/p5.RendererGL.Immediate.js', - modules: {}, - classes: {}, - fors: {}, - namespaces: {} - }, - 'src/webgl/p5.RendererGL.Retained.js': { - name: 'src/webgl/p5.RendererGL.Retained.js', - modules: {}, - classes: {}, - fors: {}, - namespaces: {} - }, - 'src/webgl/p5.RendererGL.js': { - name: 'src/webgl/p5.RendererGL.js', - modules: {}, - classes: { - 'p5.RendererGL': 1 - }, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/webgl/p5.Shader.js': { - name: 'src/webgl/p5.Shader.js', - modules: { - Shaders: 1 - }, - classes: { - 'p5.Shader': 1 - }, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/webgl/p5.Texture.js': { - name: 'src/webgl/p5.Texture.js', - modules: {}, - classes: { - 'p5.Texture': 1 - }, - fors: { - p5: 1 - }, - namespaces: {} - }, - 'src/webgl/text.js': { - name: 'src/webgl/text.js', - modules: {}, - classes: { - ImageInfos: 1, - FontInfo: 1, - Cubic: 1 - }, - fors: {}, - namespaces: {} - }, - 'lib/addons/p5.dom.js': { - name: 'lib/addons/p5.dom.js', - modules: { - 'p5.dom': 1 - }, - classes: { - 'p5.MediaElement': 1, - 'p5.File': 1 - }, - fors: { - p5: 1, - 'p5.Element': 1 - }, - namespaces: {} - }, - 'lib/addons/p5.sound.js': { - name: 'lib/addons/p5.sound.js', - modules: { - 'p5.sound': 1 - }, - classes: { - 'p5.SoundFile': 1, - 'p5.Amplitude': 1, - 'p5.FFT': 1, - 'p5.Signal': 1, - 'p5.Oscillator': 1, - 'p5.SinOsc': 1, - 'p5.TriOsc': 1, - 'p5.SawOsc': 1, - 'p5.SqrOsc': 1, - 'p5.Envelope': 1, - 'p5.Pulse': 1, - 'p5.Noise': 1, - 'p5.AudioIn': 1, - 'p5.Effect': 1, - 'p5.Filter': 1, - 'p5.LowPass': 1, - 'p5.HighPass': 1, - 'p5.BandPass': 1, - 'p5.EQ': 1, - 'p5.Panner3D': 1, - 'p5.Delay': 1, - 'p5.Reverb': 1, - 'p5.Convolver': 1, - 'p5.Phrase': 1, - 'p5.Part': 1, - 'p5.Score': 1, - 'p5.SoundLoop': 1, - 'p5.Compressor': 1, - 'p5.SoundRecorder': 1, - 'p5.PeakDetect': 1, - 'p5.Gain': 1, - 'p5.AudioVoice': 1, - 'p5.MonoSynth': 1, - 'p5.PolySynth': 1, - 'p5.Distortion': 1 - }, - fors: { - 'p5.sound': 1, - p5: 1 - }, - namespaces: {} - }, - 'lib/addons/p5.sound.min.js': { - name: 'lib/addons/p5.sound.min.js', - modules: {}, - classes: {}, - fors: {}, - namespaces: {} - } - }, - modules: { - Color: { - name: 'Color', - submodules: { - 'Color Conversion': 1, - 'Creating & Reading': 1, - Setting: 1 - }, - elements: {}, - classes: { - 'p5.Color': 1 - }, - fors: { - p5: 1 - }, - namespaces: {}, - file: 'src/color/p5.Color.js', - line: 16 - }, - 'Color Conversion': { - name: 'Color Conversion', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Color', - namespace: '', - file: 'src/color/color_conversion.js', - line: 1, - requires: ['core'] - }, - 'Creating & Reading': { - name: 'Creating & Reading', - submodules: {}, - elements: {}, - classes: { - 'p5.Color': 1 - }, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Color', - namespace: '', - file: 'src/color/p5.Color.js', - line: 16, - requires: ['core', 'constants'], - description: - '

Each color stores the color mode and level maxes that applied at the\ntime of its construction. These are used to interpret the input arguments\n(at construction and later for that instance of color) and to format the\noutput e.g. when saturation() is requested.

\n

Internally we store an array representing the ideal RGBA values in floating\npoint form, normalized from 0 to 1. From this we calculate the closest\nscreen color (RGBA levels from 0 to 255) and expose this to the renderer.

\n

We also cache normalized, floating point components of the color in various\nrepresentations as they are calculated. This is done to prevent repeating a\nconversion that has already been performed.

\n' - }, - Setting: { - name: 'Setting', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Color', - namespace: '', - file: 'src/color/setting.js', - line: 1, - requires: ['core', 'constants'] - }, - Shape: { - name: 'Shape', - submodules: { - '2D Primitives': 1, - Curves: 1, - Vertex: 1, - '3D Primitives': 1, - '3D Models': 1 - }, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - '2D Primitives': { - name: '2D Primitives', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Shape', - namespace: '', - file: 'src/core/shape/2d_primitives.js', - line: 1, - requires: ['core', 'constants'] - }, - Attributes: { - name: 'Attributes', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Typography', - namespace: '', - file: 'src/core/shape/attributes.js', - line: 1, - requires: ['core', 'constants'] - }, - Curves: { - name: 'Curves', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Shape', - namespace: '', - file: 'src/core/shape/curves.js', - line: 1, - requires: ['core'] - }, - Vertex: { - name: 'Vertex', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Shape', - namespace: '', - file: 'src/core/shape/vertex.js', - line: 1, - requires: ['core', 'constants'] - }, - Constants: { - name: 'Constants', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {}, - module: 'Constants', - file: 'src/core/constants.js', - line: 1 - }, - Environment: { - name: 'Environment', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {}, - module: 'Environment', - file: 'src/core/environment.js', - line: 1, - requires: ['core', 'constants'] - }, - Structure: { - name: 'Structure', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {}, - module: 'IO', - file: 'src/core/main.js', - line: 1, - requires: ['constants'] - }, - DOM: { - name: 'DOM', - submodules: {}, - elements: {}, - classes: { - 'p5.Element': 1 - }, - fors: { - 'p5.Element': 1 - }, - namespaces: {}, - module: 'DOM', - file: 'src/core/p5.Element.js', - line: 11, - description: - '

Base class for all elements added to a sketch, including canvas,\ngraphics buffers, and other HTML elements. Methods in blue are\nincluded in the core functionality, methods in brown are added\nwith the p5.dom\nlibrary.\nIt is not called directly, but p5.Element\nobjects are created by calling createCanvas, createGraphics,\nor in the p5.dom library, createDiv, createImg, createInput, etc.

\n' - }, - Rendering: { - name: 'Rendering', - submodules: { - undefined: 1 - }, - elements: {}, - classes: { - 'p5.RendererGL': 1, - 'p5.Graphics': 1, - 'p5.Renderer': 1 - }, - fors: { - p5: 1 - }, - namespaces: {}, - module: 'Rendering', - file: 'src/webgl/p5.RendererGL.js', - line: 519, - description: - '

Thin wrapper around a renderer, to be used for creating a\ngraphics buffer object. Use this class if you need\nto draw into an off-screen graphics buffer. The two parameters define the\nwidth and height in pixels. The fields and methods for this class are\nextensive, but mirror the normal drawing API for p5.

\n' - }, - Transform: { - name: 'Transform', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {}, - module: 'Transform', - file: 'src/core/transform.js', - line: 1, - requires: ['core', 'constants'] - }, - Data: { - name: 'Data', - submodules: { - LocalStorage: 1, - Dictionary: 1, - 'Array Functions': 1, - Conversion: 1, - 'String Functions': 1 - }, - elements: {}, - classes: { - 'p5.TypedDict': 1, - 'p5.StringDict': 1, - 'p5.NumberDict': 1 - }, - fors: { - p5: 1, - 'p5.TypedDict': 1 - }, - namespaces: {}, - file: 'src/data/p5.TypedDict.js', - line: 422 - }, - LocalStorage: { - name: 'LocalStorage', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Data', - namespace: '', - file: 'src/data/local_storage.js', - line: 1, - requires: [ - 'core\n\nThis module defines the p5 methods for working with local storage' - ] - }, - Dictionary: { - name: 'Dictionary', - submodules: {}, - elements: {}, - classes: { - 'p5.TypedDict': 1, - 'p5.StringDict': 1, - 'p5.NumberDict': 1 - }, - fors: { - 'p5.TypedDict': 1, - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Data', - namespace: '', - file: 'src/data/p5.TypedDict.js', - line: 422, - requires: [ - 'core\n\nThis module defines the p5 methods for the p5 Dictionary classes.\nThe classes StringDict and NumberDict are for storing and working\nwith key-value pairs.' - ], - description: - '

Base class for all p5.Dictionary types. Specifically\n typed Dictionary classes inherit from this class.

\n' - }, - Events: { - name: 'Events', - submodules: { - Acceleration: 1, - Keyboard: 1, - Mouse: 1, - Touch: 1 - }, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - namespaces: {} - }, - Acceleration: { - name: 'Acceleration', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Events', - namespace: '', - file: 'src/events/acceleration.js', - line: 1, - requires: ['core'] - }, - Keyboard: { - name: 'Keyboard', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Events', - namespace: '', - file: 'src/events/keyboard.js', - line: 1, - requires: ['core'] - }, - Mouse: { - name: 'Mouse', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Events', - namespace: '', - file: 'src/events/mouse.js', - line: 1, - requires: ['core', 'constants'] - }, - Touch: { - name: 'Touch', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Events', - namespace: '', - file: 'src/events/touch.js', - line: 1, - requires: ['core'] - }, - Image: { - name: 'Image', - submodules: { - Pixels: 1 - }, - elements: {}, - classes: { - 'p5.Image': 1 - }, - fors: { - p5: 1 - }, - namespaces: {}, - module: 'Image', - file: 'src/image/p5.Image.js', - line: 23, - requires: ['core'], - description: - '

Creates a new p5.Image. A p5.Image is a canvas backed representation of an\nimage.\n

\np5 can display .gif, .jpg and .png images. Images may be displayed\nin 2D and 3D space. Before an image is used, it must be loaded with the\nloadImage() function. The p5.Image class contains fields for the width and\nheight of the image, as well as an array called pixels[] that contains the\nvalues for every pixel in the image.\n

\nThe methods described below allow easy access to the image's pixels and\nalpha channel and simplify the process of compositing.\n

\nBefore using the pixels[] array, be sure to use the loadPixels() method on\nthe image to make sure that the pixel data is properly loaded.

\n' - }, - 'Loading & Displaying': { - name: 'Loading & Displaying', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Typography', - namespace: '', - file: 'src/image/loading_displaying.js', - line: 1, - requires: ['core'] - }, - Pixels: { - name: 'Pixels', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Image', - namespace: '', - file: 'src/image/pixels.js', - line: 1, - requires: ['core'] - }, - IO: { - name: 'IO', - submodules: { - Structure: 1, - Input: 1, - Output: 1, - Table: 1, - XML: 1, - 'Time & Date': 1 - }, - elements: {}, - classes: { - p5: 1, - 'p5.PrintWriter': 1, - 'p5.Table': 1, - 'p5.TableRow': 1, - 'p5.XML': 1 - }, - fors: { - p5: 1 - }, - namespaces: {}, - file: 'src/io/p5.XML.js', - line: 11 - }, - Input: { - name: 'Input', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'IO', - namespace: '', - file: 'src/io/files.js', - line: 1, - requires: ['core'] - }, - Output: { - name: 'Output', - submodules: {}, - elements: {}, - classes: { - p5: 1, - 'p5.PrintWriter': 1 - }, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'IO', - namespace: '', - file: 'src/io/files.js', - line: 1238, - description: - '

This is the p5 instance constructor.

\n

A p5 instance holds all the properties and methods related to\na p5 sketch. It expects an incoming sketch closure and it can also\ntake an optional node parameter for attaching the generated p5 canvas\nto a node. The sketch closure takes the newly created p5 instance as\nits sole argument and may optionally set preload(), setup(), and/or\ndraw() properties on it for running a sketch.

\n

A p5 sketch can run in "global" or "instance" mode:\n"global" - all properties and methods are attached to the window\n"instance" - all properties and methods are bound to this p5 object

\n' - }, - Table: { - name: 'Table', - submodules: {}, - elements: {}, - classes: { - 'p5.Table': 1, - 'p5.TableRow': 1 - }, - fors: {}, - is_submodule: 1, - namespaces: {}, - module: 'IO', - namespace: '', - file: 'src/io/p5.TableRow.js', - line: 11, - requires: ['core'], - description: - '

Table objects store data with multiple rows and columns, much\nlike in a traditional spreadsheet. Tables can be generated from\nscratch, dynamically, or using data from an existing file.

\n' - }, - XML: { - name: 'XML', - submodules: {}, - elements: {}, - classes: { - 'p5.XML': 1 - }, - fors: {}, - is_submodule: 1, - namespaces: {}, - module: 'IO', - namespace: '', - file: 'src/io/p5.XML.js', - line: 11, - requires: ['core'], - description: - '

XML is a representation of an XML object, able to parse XML code. Use\nloadXML() to load external XML files and create XML objects.

\n' - }, - Math: { - name: 'Math', - submodules: { - Calculation: 1, - Noise: 1, - Random: 1, - Trigonometry: 1 - }, - elements: {}, - classes: { - 'p5.Vector': 1 - }, - fors: { - p5: 1 - }, - namespaces: {}, - module: 'Math', - file: 'src/math/p5.Vector.js', - line: 12, - requires: ['core'], - description: - '

A class to describe a two or three dimensional vector, specifically\na Euclidean (also known as geometric) vector. A vector is an entity\nthat has both magnitude and direction. The datatype, however, stores\nthe components of the vector (x, y for 2D, and x, y, z for 3D). The magnitude\nand direction can be accessed via the methods mag() and heading().\n

\nIn many of the p5.js examples, you will see p5.Vector used to describe a\nposition, velocity, or acceleration. For example, if you consider a rectangle\nmoving across the screen, at any given instant it has a position (a vector\nthat points from the origin to its location), a velocity (the rate at which\nthe object's position changes per time unit, expressed as a vector), and\nacceleration (the rate at which the object's velocity changes per time\nunit, expressed as a vector).\n

\nSince vectors represent groupings of values, we cannot simply use\ntraditional addition/multiplication/etc. Instead, we'll need to do some\n"vector" math, which is made easy by the methods inside the p5.Vector class.

\n' - }, - Calculation: { - name: 'Calculation', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Math', - namespace: '', - file: 'src/math/calculation.js', - line: 1, - requires: ['core'] - }, - Noise: { - name: 'Noise', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Math', - namespace: '', - file: 'src/math/noise.js', - line: 14, - requires: ['core'] - }, - Random: { - name: 'Random', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Math', - namespace: '', - file: 'src/math/random.js', - line: 1, - requires: ['core'] - }, - Trigonometry: { - name: 'Trigonometry', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Math', - namespace: '', - file: 'src/math/trigonometry.js', - line: 1, - requires: ['core', 'constants'] - }, - Typography: { - name: 'Typography', - submodules: { - Attributes: 1, - 'Loading & Displaying': 1, - Font: 1 - }, - elements: {}, - classes: { - 'p5.Font': 1 - }, - fors: { - p5: 1 - }, - namespaces: {}, - file: 'src/typography/p5.Font.js', - line: 15 - }, - Font: { - name: 'Font', - submodules: {}, - elements: {}, - classes: { - 'p5.Font': 1 - }, - fors: {}, - is_submodule: 1, - namespaces: {}, - module: 'Typography', - namespace: '', - file: 'src/typography/p5.Font.js', - line: 15, - description: - '

This module defines the p5.Font class and functions for\ndrawing text to the display canvas.

\n', - requires: ['core', 'constants'] - }, - 'Array Functions': { - name: 'Array Functions', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Data', - namespace: '', - file: 'src/utilities/array_functions.js', - line: 1, - requires: ['core'] - }, - Conversion: { - name: 'Conversion', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Data', - namespace: '', - file: 'src/utilities/conversion.js', - line: 1, - requires: ['core'] - }, - 'String Functions': { - name: 'String Functions', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Data', - namespace: '', - file: 'src/utilities/string_functions.js', - line: 1, - requires: ['core'] - }, - 'Time & Date': { - name: 'Time & Date', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'IO', - namespace: '', - file: 'src/utilities/time_date.js', - line: 1, - requires: ['core'] - }, - '3D Primitives': { - name: '3D Primitives', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Shape', - namespace: '', - file: 'src/webgl/3d_primitives.js', - line: 1, - requires: ['core', 'p5.Geometry'] - }, - 'Lights, Camera': { - name: 'Lights, Camera', - submodules: { - Interaction: 1, - Lights: 1, - Material: 1, - Camera: 1, - Shaders: 1 - }, - elements: {}, - classes: { - 'p5.Camera': 1, - 'p5.Geometry': 1, - 'p5.Matrix': 1, - 'p5.Shader': 1, - 'p5.Texture': 1, - ImageInfos: 1, - FontInfo: 1, - Cubic: 1 - }, - fors: { - p5: 1, - 'p5.Camera': 1 - }, - namespaces: {}, - file: 'src/webgl/text.js', - line: 259 - }, - Interaction: { - name: 'Interaction', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Lights, Camera', - namespace: '', - file: 'src/webgl/interaction.js', - line: 1, - requires: ['core'] - }, - Lights: { - name: 'Lights', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Lights, Camera', - namespace: '', - file: 'src/webgl/light.js', - line: 1, - requires: ['core'] - }, - '3D Models': { - name: '3D Models', - submodules: {}, - elements: {}, - classes: {}, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Shape', - namespace: '', - file: 'src/webgl/loading.js', - line: 1, - requires: ['core', 'p5.Geometry'] - }, - Material: { - name: 'Material', - submodules: {}, - elements: {}, - classes: { - 'p5.Texture': 1 - }, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Lights, Camera', - namespace: '', - file: 'src/webgl/p5.Texture.js', - line: 14, - requires: ['core'], - description: '

This module defines the p5.Texture class

\n' - }, - Camera: { - name: 'Camera', - submodules: {}, - elements: {}, - classes: { - 'p5.Camera': 1 - }, - fors: { - p5: 1, - 'p5.Camera': 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Lights, Camera', - namespace: '', - file: 'src/webgl/p5.Camera.js', - line: 209, - requires: ['core'], - description: - '

This class describes a camera for use in p5's\n\nWebGL mode. It contains camera position, orientation, and projection\ninformation necessary for rendering a 3D scene.

\n

New p5.Camera objects can be made through the\ncreateCamera() function and controlled through\nthe methods described below. A camera created in this way will use a default\nposition in the scene and a default perspective projection until these\nproperties are changed through the various methods available. It is possible\nto create multiple cameras, in which case the current camera\ncan be set through the setCamera() method.

\n

Note:\nThe methods below operate in two coordinate systems: the 'world' coordinate\nsystem describe positions in terms of their relationship to the origin along\nthe X, Y and Z axes whereas the camera's 'local' coordinate system\ndescribes positions from the camera's point of view: left-right, up-down,\nand forward-backward. The move() method,\nfor instance, moves the camera along its own axes, whereas the\nsetPosition()\nmethod sets the camera's position in world-space.

\n' - }, - Shaders: { - name: 'Shaders', - submodules: {}, - elements: {}, - classes: { - 'p5.Shader': 1 - }, - fors: { - p5: 1 - }, - is_submodule: 1, - namespaces: {}, - module: 'Lights, Camera', - namespace: '', - file: 'src/webgl/p5.Shader.js', - line: 13, - description: '

This module defines the p5.Shader class

\n', - requires: ['core'] - }, - 'p5.dom': { - name: 'p5.dom', - submodules: {}, - elements: {}, - classes: { - 'p5.MediaElement': 1, - 'p5.File': 1 - }, - fors: { - p5: 1, - 'p5.Element': 1 - }, - namespaces: {}, - module: 'p5.dom', - file: 'lib/addons/p5.dom.js', - line: 3323, - description: - "

The web is much more than just canvas and p5.dom makes it easy to interact\nwith other HTML5 objects, including text, hyperlink, image, input, video,\naudio, and webcam.

\n

There is a set of creation methods, DOM manipulation methods, and\nan extended p5.Element that supports a range of HTML elements. See the\n\nbeyond the canvas tutorial for a full overview of how this addon works.

\n

Methods and properties shown in black are part of the p5.js core, items in\nblue are part of the p5.dom library. You will need to include an extra file\nin order to access the blue functions. See the\nusing a library\nsection for information on how to include this library. p5.dom comes with\np5 complete or you can download the single file\n\nhere.

\n

See tutorial: beyond the canvas\nfor more info on how to use this library.

\n", - tag: 'main', - itemtype: 'main' - }, - 'p5.sound': { - name: 'p5.sound', - submodules: {}, - elements: {}, - classes: { - 'p5.sound': 1, - 'p5.SoundFile': 1, - 'p5.Amplitude': 1, - 'p5.FFT': 1, - 'p5.Signal': 1, - 'p5.Oscillator': 1, - 'p5.SinOsc': 1, - 'p5.TriOsc': 1, - 'p5.SawOsc': 1, - 'p5.SqrOsc': 1, - 'p5.Envelope': 1, - 'p5.Pulse': 1, - 'p5.Noise': 1, - 'p5.AudioIn': 1, - 'p5.Effect': 1, - 'p5.Filter': 1, - 'p5.LowPass': 1, - 'p5.HighPass': 1, - 'p5.BandPass': 1, - 'p5.EQ': 1, - 'p5.Panner3D': 1, - 'p5.Delay': 1, - 'p5.Reverb': 1, - 'p5.Convolver': 1, - 'p5.Phrase': 1, - 'p5.Part': 1, - 'p5.Score': 1, - 'p5.SoundLoop': 1, - 'p5.Compressor': 1, - 'p5.SoundRecorder': 1, - 'p5.PeakDetect': 1, - 'p5.Gain': 1, - 'p5.AudioVoice': 1, - 'p5.MonoSynth': 1, - 'p5.PolySynth': 1, - 'p5.Distortion': 1 - }, - fors: { - 'p5.sound': 1, - p5: 1 - }, - namespaces: {}, - module: 'p5.sound', - file: 'lib/addons/p5.sound.js', - line: 12767, - description: - '

p5.sound extends p5 with Web Audio functionality including audio input,\nplayback, analysis and synthesis.\n

\np5.SoundFile: Load and play sound files.
\np5.Amplitude: Get the current volume of a sound.
\np5.AudioIn: Get sound from an input source, typically\n a computer microphone.
\np5.FFT: Analyze the frequency of sound. Returns\n results from the frequency spectrum or time domain (waveform).
\np5.Oscillator: Generate Sine,\n Triangle, Square and Sawtooth waveforms. Base class of\n p5.Noise and p5.Pulse.\n
\np5.Envelope: An Envelope is a series\n of fades over time. Often used to control an object's\n output gain level as an "ADSR Envelope" (Attack, Decay,\n Sustain, Release). Can also modulate other parameters.
\np5.Delay: A delay effect with\n parameters for feedback, delayTime, and lowpass filter.
\np5.Filter: Filter the frequency range of a\n sound.\n
\np5.Reverb: Add reverb to a sound by specifying\n duration and decay.
\np5.Convolver: Extends\np5.Reverb to simulate the sound of real\n physical spaces through convolution.
\np5.SoundRecorder: Record sound for playback\n / save the .wav file.\np5.Phrase, p5.Part and\np5.Score: Compose musical sequences.\n

\np5.sound is on GitHub.\nDownload the latest version\nhere.

\n', - tag: 'main', - itemtype: 'main' - } - }, - classes: { - p5: { - name: 'p5', - shortname: 'p5', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'IO', - submodule: 'Output', - namespace: '', - file: 'src/core/main.js', - line: 15, - description: - '

This is the p5 instance constructor.

\n

A p5 instance holds all the properties and methods related to\na p5 sketch. It expects an incoming sketch closure and it can also\ntake an optional node parameter for attaching the generated p5 canvas\nto a node. The sketch closure takes the newly created p5 instance as\nits sole argument and may optionally set preload(), setup(), and/or\ndraw() properties on it for running a sketch.

\n

A p5 sketch can run in "global" or "instance" mode:\n"global" - all properties and methods are attached to the window\n"instance" - all properties and methods are bound to this p5 object

\n', - is_constructor: 1, - params: [ - { - name: 'sketch', - description: - '

a closure that can set optional preload(),\n setup(), and/or draw() properties on the\n given p5 instance

\n', - type: 'Function' - }, - { - name: 'node', - description: '

element to attach canvas to

\n', - type: 'HTMLElement', - optional: true - } - ], - return: { - description: 'a p5 instance', - type: 'P5' - } - }, - 'p5.Color': { - name: 'p5.Color', - shortname: 'p5.Color', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'Color', - submodule: 'Creating & Reading', - namespace: '', - file: 'src/color/p5.Color.js', - line: 16, - description: - '

Each color stores the color mode and level maxes that applied at the\ntime of its construction. These are used to interpret the input arguments\n(at construction and later for that instance of color) and to format the\noutput e.g. when saturation() is requested.

\n

Internally we store an array representing the ideal RGBA values in floating\npoint form, normalized from 0 to 1. From this we calculate the closest\nscreen color (RGBA levels from 0 to 255) and expose this to the renderer.

\n

We also cache normalized, floating point components of the color in various\nrepresentations as they are calculated. This is done to prevent repeating a\nconversion that has already been performed.

\n' - }, - 'p5.Element': { - name: 'p5.Element', - shortname: 'p5.Element', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'DOM', - submodule: 'DOM', - namespace: '', - file: 'src/core/p5.Element.js', - line: 11, - description: - '

Base class for all elements added to a sketch, including canvas,\ngraphics buffers, and other HTML elements. Methods in blue are\nincluded in the core functionality, methods in brown are added\nwith the p5.dom\nlibrary.\nIt is not called directly, but p5.Element\nobjects are created by calling createCanvas, createGraphics,\nor in the p5.dom library, createDiv, createImg, createInput, etc.

\n', - params: [ - { - name: 'elt', - description: '

DOM node that is wrapped

\n', - type: 'String' - }, - { - name: 'pInst', - description: '

pointer to p5 instance

\n', - type: 'P5', - optional: true - } - ] - }, - 'p5.Graphics': { - name: 'p5.Graphics', - shortname: 'p5.Graphics', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'Rendering', - submodule: 'Rendering', - namespace: '', - file: 'src/core/p5.Graphics.js', - line: 12, - description: - '

Thin wrapper around a renderer, to be used for creating a\ngraphics buffer object. Use this class if you need\nto draw into an off-screen graphics buffer. The two parameters define the\nwidth and height in pixels. The fields and methods for this class are\nextensive, but mirror the normal drawing API for p5.

\n', - extends: 'p5.Element', - params: [ - { - name: 'w', - description: '

width

\n', - type: 'Number' - }, - { - name: 'h', - description: '

height

\n', - type: 'Number' - }, - { - name: 'renderer', - description: '

the renderer to use, either P2D or WEBGL

\n', - type: 'Constant' - }, - { - name: 'pInst', - description: '

pointer to p5 instance

\n', - type: 'P5', - optional: true - } - ] - }, - 'p5.Renderer': { - name: 'p5.Renderer', - shortname: 'p5.Renderer', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'Rendering', - submodule: 'Rendering', - namespace: '', - file: 'src/core/p5.Renderer.js', - line: 12, - description: - '

Main graphics and rendering context, as well as the base API\nimplementation for p5.js "core". To be used as the superclass for\nRenderer2D and Renderer3D classes, respecitvely.

\n', - is_constructor: 1, - extends: 'p5.Element', - params: [ - { - name: 'elt', - description: '

DOM node that is wrapped

\n', - type: 'String' - }, - { - name: 'pInst', - description: '

pointer to p5 instance

\n', - type: 'P5', - optional: true - }, - { - name: 'isMainCanvas', - description: '

whether we're using it as main canvas

\n', - type: 'Boolean', - optional: true - } - ] - }, - 'p5.TypedDict': { - name: 'p5.TypedDict', - shortname: 'p5.TypedDict', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'Data', - submodule: 'Dictionary', - namespace: '', - file: 'src/data/p5.TypedDict.js', - line: 84, - description: - '

Base class for all p5.Dictionary types. Specifically\n typed Dictionary classes inherit from this class.

\n' - }, - 'p5.StringDict': { - name: 'p5.StringDict', - shortname: 'p5.StringDict', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'Data', - submodule: 'Dictionary', - namespace: '', - file: 'src/data/p5.TypedDict.js', - line: 403, - description: '

A simple Dictionary class for Strings.

\n', - extends: 'p5.TypedDict' - }, - 'p5.NumberDict': { - name: 'p5.NumberDict', - shortname: 'p5.NumberDict', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'Data', - submodule: 'Dictionary', - namespace: '', - file: 'src/data/p5.TypedDict.js', - line: 422, - description: '

A simple Dictionary class for Numbers.

\n', - extends: 'p5.TypedDict' - }, - 'p5.Image': { - name: 'p5.Image', - shortname: 'p5.Image', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'Image', - submodule: 'Image', - namespace: '', - file: 'src/image/p5.Image.js', - line: 23, - description: - '

Creates a new p5.Image. A p5.Image is a canvas backed representation of an\nimage.\n

\np5 can display .gif, .jpg and .png images. Images may be displayed\nin 2D and 3D space. Before an image is used, it must be loaded with the\nloadImage() function. The p5.Image class contains fields for the width and\nheight of the image, as well as an array called pixels[] that contains the\nvalues for every pixel in the image.\n

\nThe methods described below allow easy access to the image's pixels and\nalpha channel and simplify the process of compositing.\n

\nBefore using the pixels[] array, be sure to use the loadPixels() method on\nthe image to make sure that the pixel data is properly loaded.

\n', - example: [ - '\n
\nfunction setup() {\n let img = createImage(100, 100); // same as new p5.Image(100, 100);\n img.loadPixels();\n createCanvas(100, 100);\n background(0);\n\n // helper for writing color to array\n function writeColor(image, x, y, red, green, blue, alpha) {\n let index = (x + y * width) * 4;\n image.pixels[index] = red;\n image.pixels[index + 1] = green;\n image.pixels[index + 2] = blue;\n image.pixels[index + 3] = alpha;\n }\n\n let x, y;\n // fill with random colors\n for (y = 0; y < img.height; y++) {\n for (x = 0; x < img.width; x++) {\n let red = random(255);\n let green = random(255);\n let blue = random(255);\n let alpha = 255;\n writeColor(img, x, y, red, green, blue, alpha);\n }\n }\n\n // draw a red line\n y = 0;\n for (x = 0; x < img.width; x++) {\n writeColor(img, x, y, 255, 0, 0, 255);\n }\n\n // draw a green line\n y = img.height - 1;\n for (x = 0; x < img.width; x++) {\n writeColor(img, x, y, 0, 255, 0, 255);\n }\n\n img.updatePixels();\n image(img, 0, 0);\n}\n
' - ], - params: [ - { - name: 'width', - description: '', - type: 'Number' - }, - { - name: 'height', - description: '', - type: 'Number' - } - ] - }, - 'p5.PrintWriter': { - name: 'p5.PrintWriter', - shortname: 'p5.PrintWriter', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'IO', - submodule: 'Output', - namespace: '', - file: 'src/io/files.js', - line: 1238, - params: [ - { - name: 'filename', - description: '', - type: 'String' - }, - { - name: 'extension', - description: '', - type: 'String', - optional: true - } - ] - }, - 'p5.Table': { - name: 'p5.Table', - shortname: 'p5.Table', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'IO', - submodule: 'Table', - namespace: '', - file: 'src/io/p5.Table.js', - line: 35, - description: - '

Table objects store data with multiple rows and columns, much\nlike in a traditional spreadsheet. Tables can be generated from\nscratch, dynamically, or using data from an existing file.

\n', - is_constructor: 1, - params: [ - { - name: 'rows', - description: '

An array of p5.TableRow objects

\n', - type: 'p5.TableRow[]', - optional: true - } - ] - }, - 'p5.TableRow': { - name: 'p5.TableRow', - shortname: 'p5.TableRow', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'IO', - submodule: 'Table', - namespace: '', - file: 'src/io/p5.TableRow.js', - line: 11, - description: - '

A TableRow object represents a single row of data values,\nstored in columns, from a table.

\n

A Table Row contains both an ordered array, and an unordered\nJSON object.

\n', - is_constructor: 1, - params: [ - { - name: 'str', - description: - '

optional: populate the row with a\n string of values, separated by the\n separator

\n', - type: 'String', - optional: true - }, - { - name: 'separator', - description: '

comma separated values (csv) by default

\n', - type: 'String', - optional: true - } - ] - }, - 'p5.XML': { - name: 'p5.XML', - shortname: 'p5.XML', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'IO', - submodule: 'XML', - namespace: '', - file: 'src/io/p5.XML.js', - line: 11, - description: - '

XML is a representation of an XML object, able to parse XML code. Use\nloadXML() to load external XML files and create XML objects.

\n', - is_constructor: 1, - example: [ - '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let children = xml.getChildren(\'animal\');\n\n for (let i = 0; i < children.length; i++) {\n let id = children[i].getNum(\'id\');\n let coloring = children[i].getString(\'species\');\n let name = children[i].getContent();\n print(id + \', \' + coloring + \', \' + name);\n }\n}\n\n// Sketch prints:\n// 0, Capra hircus, Goat\n// 1, Panthera pardus, Leopard\n// 2, Equus zebra, Zebra\n
' - ], - alt: 'no image displayed' - }, - 'p5.Vector': { - name: 'p5.Vector', - shortname: 'p5.Vector', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'Math', - submodule: 'Math', - namespace: '', - file: 'src/math/p5.Vector.js', - line: 12, - description: - '

A class to describe a two or three dimensional vector, specifically\na Euclidean (also known as geometric) vector. A vector is an entity\nthat has both magnitude and direction. The datatype, however, stores\nthe components of the vector (x, y for 2D, and x, y, z for 3D). The magnitude\nand direction can be accessed via the methods mag() and heading().\n

\nIn many of the p5.js examples, you will see p5.Vector used to describe a\nposition, velocity, or acceleration. For example, if you consider a rectangle\nmoving across the screen, at any given instant it has a position (a vector\nthat points from the origin to its location), a velocity (the rate at which\nthe object's position changes per time unit, expressed as a vector), and\nacceleration (the rate at which the object's velocity changes per time\nunit, expressed as a vector).\n

\nSince vectors represent groupings of values, we cannot simply use\ntraditional addition/multiplication/etc. Instead, we'll need to do some\n"vector" math, which is made easy by the methods inside the p5.Vector class.

\n', - params: [ - { - name: 'x', - description: '

x component of the vector

\n', - type: 'Number', - optional: true - }, - { - name: 'y', - description: '

y component of the vector

\n', - type: 'Number', - optional: true - }, - { - name: 'z', - description: '

z component of the vector

\n', - type: 'Number', - optional: true - } - ], - example: [ - '\n
\n\nlet v1 = createVector(40, 50);\nlet v2 = createVector(40, 50);\n\nellipse(v1.x, v1.y, 50, 50);\nellipse(v2.x, v2.y, 50, 50);\nv1.add(v2);\nellipse(v1.x, v1.y, 50, 50);\n\n
' - ], - alt: - '2 white ellipses. One center-left the other bottom right and off canvas' - }, - 'p5.Font': { - name: 'p5.Font', - shortname: 'p5.Font', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'Typography', - submodule: 'Font', - namespace: '', - file: 'src/typography/p5.Font.js', - line: 15, - description: '

Base class for font handling

\n', - params: [ - { - name: 'pInst', - description: '

pointer to p5 instance

\n', - type: 'P5', - optional: true - } - ] - }, - 'p5.Camera': { - name: 'p5.Camera', - shortname: 'p5.Camera', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'Lights, Camera', - submodule: 'Camera', - namespace: '', - file: 'src/webgl/p5.Camera.js', - line: 209, - description: - '

This class describes a camera for use in p5's\n\nWebGL mode. It contains camera position, orientation, and projection\ninformation necessary for rendering a 3D scene.

\n

New p5.Camera objects can be made through the\ncreateCamera() function and controlled through\nthe methods described below. A camera created in this way will use a default\nposition in the scene and a default perspective projection until these\nproperties are changed through the various methods available. It is possible\nto create multiple cameras, in which case the current camera\ncan be set through the setCamera() method.

\n

Note:\nThe methods below operate in two coordinate systems: the 'world' coordinate\nsystem describe positions in terms of their relationship to the origin along\nthe X, Y and Z axes whereas the camera's 'local' coordinate system\ndescribes positions from the camera's point of view: left-right, up-down,\nand forward-backward. The move() method,\nfor instance, moves the camera along its own axes, whereas the\nsetPosition()\nmethod sets the camera's position in world-space.

\n', - params: [ - { - name: 'rendererGL', - description: '

instance of WebGL renderer

\n', - type: 'RendererGL' - } - ], - example: [ - "\n
\n\nlet cam;\nlet delta = 0.01;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n normalMaterial();\n cam = createCamera();\n // set initial pan angle\n cam.pan(-0.8);\n}\n\nfunction draw() {\n background(200);\n\n // pan camera according to angle 'delta'\n cam.pan(delta);\n\n // every 160 frames, switch direction\n if (frameCount % 160 === 0) {\n delta *= -1;\n }\n\n rotateX(frameCount * 0.01);\n translate(-100, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n}\n\n
" - ], - alt: 'camera view pans left and right across a series of rotating 3D boxes.' - }, - 'p5.Geometry': { - name: 'p5.Geometry', - shortname: 'p5.Geometry', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'Lights, Camera', - namespace: '', - file: 'src/webgl/p5.Geometry.js', - line: 6, - description: '

p5 Geometry class

\n', - is_constructor: 1, - params: [ - { - name: 'detailX', - description: '

number of vertices on horizontal surface

\n', - type: 'Integer', - optional: true - }, - { - name: 'detailY', - description: '

number of vertices on horizontal surface

\n', - type: 'Integer', - optional: true - }, - { - name: 'callback', - description: '

function to call upon object instantiation.

\n', - type: 'Function', - optional: true - } - ] - }, - 'p5.Shader': { - name: 'p5.Shader', - shortname: 'p5.Shader', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'Lights, Camera', - submodule: 'Shaders', - namespace: '', - file: 'src/webgl/p5.Shader.js', - line: 13, - description: '

Shader class for WEBGL Mode

\n', - params: [ - { - name: 'renderer', - description: - '

an instance of p5.RendererGL that\nwill provide the GL context for this new p5.Shader

\n', - type: 'p5.RendererGL' - }, - { - name: 'vertSrc', - description: '

source code for the vertex shader (as a string)

\n', - type: 'String' - }, - { - name: 'fragSrc', - description: - '

source code for the fragment shader (as a string)

\n', - type: 'String' - } - ] - }, - 'p5.MediaElement': { - name: 'p5.MediaElement', - shortname: 'p5.MediaElement', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.dom', - submodule: 'p5.dom', - namespace: '', - file: 'lib/addons/p5.dom.js', - line: 2228, - description: - '

Extends p5.Element to handle audio and video. In addition to the methods\nof p5.Element, it also contains methods for controlling media. It is not\ncalled directly, but p5.MediaElements are created by calling createVideo,\ncreateAudio, and createCapture.

\n', - is_constructor: 1, - params: [ - { - name: 'elt', - description: '

DOM node that is wrapped

\n', - type: 'String' - } - ] - }, - 'p5.File': { - name: 'p5.File', - shortname: 'p5.File', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.dom', - submodule: 'p5.dom', - namespace: '', - file: 'lib/addons/p5.dom.js', - line: 3323, - description: - '

Base class for a file.\nUsed for Element.drop and createFileInput.

\n', - is_constructor: 1, - params: [ - { - name: 'file', - description: '

File that is wrapped

\n', - type: 'File' - } - ] - }, - 'p5.sound': { - name: 'p5.sound', - shortname: 'p5.sound', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '' - }, - 'p5.SoundFile': { - name: 'p5.SoundFile', - shortname: 'p5.SoundFile', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 1645, - description: - '

SoundFile object with a path to a file.

\n\n

The p5.SoundFile may not be available immediately because\nit loads the file information asynchronously.

\n\n

To do something with the sound as soon as it loads\npass the name of a function as the second parameter.

\n\n

Only one file path is required. However, audio file formats\n(i.e. mp3, ogg, wav and m4a/aac) are not supported by all\nweb browsers. If you want to ensure compatability, instead of a single\nfile path, you may include an Array of filepaths, and the browser will\nchoose a format that works.

', - is_constructor: 1, - params: [ - { - name: 'path', - description: - '

path to a sound file (String). Optionally,\n you may include multiple file formats in\n an array. Alternately, accepts an object\n from the HTML5 File API, or a p5.File.

\n', - type: 'String|Array' - }, - { - name: 'successCallback', - description: '

Name of a function to call once file loads

\n', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: - '

Name of a function to call if file fails to\n load. This function will receive an error or\n XMLHttpRequest object with information\n about what went wrong.

\n', - type: 'Function', - optional: true - }, - { - name: 'whileLoadingCallback', - description: - '

Name of a function to call while file\n is loading. That function will\n receive progress of the request to\n load the sound file\n (between 0 and 1) as its first\n parameter. This progress\n does not account for the additional\n time needed to decode the audio data.

\n', - type: 'Function', - optional: true - } - ], - example: [ - "\n
\n\nfunction preload() {\n soundFormats('mp3', 'ogg');\n mySound = loadSound('assets/doorbell.mp3');\n}\n\nfunction setup() {\n mySound.setVolume(0.1);\n mySound.play();\n}\n\n
" - ] - }, - 'p5.Amplitude': { - name: 'p5.Amplitude', - shortname: 'p5.Amplitude', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 3179, - description: - '

Amplitude measures volume between 0.0 and 1.0.\nListens to all p5sound by default, or use setInput()\nto listen to a specific sound source. Accepts an optional\nsmoothing value, which defaults to 0.

\n', - is_constructor: 1, - params: [ - { - name: 'smoothing', - description: - '

between 0.0 and .999 to smooth\n amplitude readings (defaults to 0)

\n', - type: 'Number', - optional: true - } - ], - example: [ - "\n
\nvar sound, amplitude, cnv;\n\nfunction preload(){\n sound = loadSound('assets/beat.mp3');\n}\nfunction setup() {\n cnv = createCanvas(100,100);\n amplitude = new p5.Amplitude();\n\n // start / stop the sound when canvas is clicked\n cnv.mouseClicked(function() {\n if (sound.isPlaying() ){\n sound.stop();\n } else {\n sound.play();\n }\n });\n}\nfunction draw() {\n background(0);\n fill(255);\n var level = amplitude.getLevel();\n var size = map(level, 0, 1, 0, 200);\n ellipse(width/2, height/2, size, size);\n}\n\n
" - ] - }, - 'p5.FFT': { - name: 'p5.FFT', - shortname: 'p5.FFT', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 3458, - description: - '

FFT (Fast Fourier Transform) is an analysis algorithm that\nisolates individual\n\naudio frequencies within a waveform.

\n\n

Once instantiated, a p5.FFT object can return an array based on\ntwo types of analyses:
โ€ข FFT.waveform() computes\namplitude values along the time domain. The array indices correspond\nto samples across a brief moment in time. Each value represents\namplitude of the waveform at that sample of time.
\nโ€ข FFT.analyze() computes amplitude values along the\nfrequency domain. The array indices correspond to frequencies (i.e.\npitches), from the lowest to the highest that humans can hear. Each\nvalue represents amplitude at that slice of the frequency spectrum.\nUse with getEnergy() to measure amplitude at specific\nfrequencies, or within a range of frequencies.

\n\n

FFT analyzes a very short snapshot of sound called a sample\nbuffer. It returns an array of amplitude measurements, referred\nto as bins. The array is 1024 bins long by default.\nYou can change the bin array length, but it must be a power of 2\nbetween 16 and 1024 in order for the FFT algorithm to function\ncorrectly. The actual size of the FFT buffer is twice the\nnumber of bins, so given a standard sample rate, the buffer is\n2048/44100 seconds long.

', - is_constructor: 1, - params: [ - { - name: 'smoothing', - description: - '

Smooth results of Freq Spectrum.\n 0.0 < smoothing < 1.0.\n Defaults to 0.8.

\n', - type: 'Number', - optional: true - }, - { - name: 'bins', - description: - '

Length of resulting array.\n Must be a power of two between\n 16 and 1024. Defaults to 1024.

\n', - type: 'Number', - optional: true - } - ], - example: [ - "\n
\nfunction preload(){\n sound = loadSound('assets/Damscray_DancingTiger.mp3');\n}\n\nfunction setup(){\n var cnv = createCanvas(100,100);\n cnv.mouseClicked(togglePlay);\n fft = new p5.FFT();\n sound.amp(0.2);\n}\n\nfunction draw(){\n background(0);\n\n var spectrum = fft.analyze();\n noStroke();\n fill(0,255,0); // spectrum is green\n for (var i = 0; i< spectrum.length; i++){\n var x = map(i, 0, spectrum.length, 0, width);\n var h = -height + map(spectrum[i], 0, 255, height, 0);\n rect(x, height, width / spectrum.length, h )\n }\n\n var waveform = fft.waveform();\n noFill();\n beginShape();\n stroke(255,0,0); // waveform is red\n strokeWeight(1);\n for (var i = 0; i< waveform.length; i++){\n var x = map(i, 0, waveform.length, 0, width);\n var y = map( waveform[i], -1, 1, 0, height);\n vertex(x,y);\n }\n endShape();\n\n text('click to play/pause', 4, 10);\n}\n\n// fade sound if mouse is over canvas\nfunction togglePlay() {\n if (sound.isPlaying()) {\n sound.pause();\n } else {\n sound.loop();\n }\n}\n
" - ] - }, - 'p5.Signal': { - name: 'p5.Signal', - shortname: 'p5.Signal', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 5223, - description: - "

p5.Signal is a constant audio-rate signal used by p5.Oscillator\nand p5.Envelope for modulation math.

\n\n

This is necessary because Web Audio is processed on a seprate clock.\nFor example, the p5 draw loop runs about 60 times per second. But\nthe audio clock must process samples 44100 times per second. If we\nwant to add a value to each of those samples, we can't do it in the\ndraw loop, but we can do it by adding a constant-rate audio signal.</p.\n\n

This class mostly functions behind the scenes in p5.sound, and returns\na Tone.Signal from the Tone.js library by Yotam Mann.\nIf you want to work directly with audio signals for modular\nsynthesis, check out\ntone.js.

", - is_constructor: 1, - return: { - description: 'A Signal object from the Tone.js library', - type: 'Tone.Signal' - }, - example: [ - "\n
\nfunction setup() {\n carrier = new p5.Oscillator('sine');\n carrier.amp(1); // set amplitude\n carrier.freq(220); // set frequency\n carrier.start(); // start oscillating\n\n modulator = new p5.Oscillator('sawtooth');\n modulator.disconnect();\n modulator.amp(1);\n modulator.freq(4);\n modulator.start();\n\n // Modulator's default amplitude range is -1 to 1.\n // Multiply it by -200, so the range is -200 to 200\n // then add 220 so the range is 20 to 420\n carrier.freq( modulator.mult(-200).add(220) );\n}\n
" - ] - }, - 'p5.Oscillator': { - name: 'p5.Oscillator', - shortname: 'p5.Oscillator', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 5369, - description: - '

Creates a signal that oscillates between -1.0 and 1.0.\nBy default, the oscillation takes the form of a sinusoidal\nshape ('sine'). Additional types include 'triangle',\n'sawtooth' and 'square'. The frequency defaults to\n440 oscillations per second (440Hz, equal to the pitch of an\n'A' note).

\n\n

Set the type of oscillation with setType(), or by instantiating a\nspecific oscillator: p5.SinOsc, p5.TriOsc, p5.SqrOsc, or p5.SawOsc.\n

', - is_constructor: 1, - params: [ - { - name: 'freq', - description: '

frequency defaults to 440Hz

\n', - type: 'Number', - optional: true - }, - { - name: 'type', - description: - '

type of oscillator. Options:\n 'sine' (default), 'triangle',\n 'sawtooth', 'square'

\n', - type: 'String', - optional: true - } - ], - example: [ - "\n
\nvar osc;\nvar playing = false;\n\nfunction setup() {\n backgroundColor = color(255,0,255);\n textAlign(CENTER);\n\n osc = new p5.Oscillator();\n osc.setType('sine');\n osc.freq(240);\n osc.amp(0);\n osc.start();\n}\n\nfunction draw() {\n background(backgroundColor)\n text('click to play', width/2, height/2);\n}\n\nfunction mouseClicked() {\n if (mouseX > 0 && mouseX < width && mouseY < height && mouseY > 0) {\n if (!playing) {\n // ramp amplitude to 0.5 over 0.05 seconds\n osc.amp(0.5, 0.05);\n playing = true;\n backgroundColor = color(0,255,255);\n } else {\n // ramp amplitude to 0 over 0.5 seconds\n osc.amp(0, 0.5);\n playing = false;\n backgroundColor = color(255,0,255);\n }\n }\n}\n
" - ] - }, - 'p5.SinOsc': { - name: 'p5.SinOsc', - shortname: 'p5.SinOsc', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 5810, - description: - '

Constructor: new p5.SinOsc().\nThis creates a Sine Wave Oscillator and is\nequivalent to new p5.Oscillator('sine')\n or creating a p5.Oscillator and then calling\nits method setType('sine').\nSee p5.Oscillator for methods.

\n', - is_constructor: 1, - extends: 'p5.Oscillator', - params: [ - { - name: 'freq', - description: '

Set the frequency

\n', - type: 'Number', - optional: true - } - ] - }, - 'p5.TriOsc': { - name: 'p5.TriOsc', - shortname: 'p5.TriOsc', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 5827, - description: - '

Constructor: new p5.TriOsc().\nThis creates a Triangle Wave Oscillator and is\nequivalent to new p5.Oscillator('triangle')\n or creating a p5.Oscillator and then calling\nits method setType('triangle').\nSee p5.Oscillator for methods.

\n', - is_constructor: 1, - extends: 'p5.Oscillator', - params: [ - { - name: 'freq', - description: '

Set the frequency

\n', - type: 'Number', - optional: true - } - ] - }, - 'p5.SawOsc': { - name: 'p5.SawOsc', - shortname: 'p5.SawOsc', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 5844, - description: - '

Constructor: new p5.SawOsc().\nThis creates a SawTooth Wave Oscillator and is\nequivalent to new p5.Oscillator('sawtooth')\n or creating a p5.Oscillator and then calling\nits method setType('sawtooth').\nSee p5.Oscillator for methods.

\n', - is_constructor: 1, - extends: 'p5.Oscillator', - params: [ - { - name: 'freq', - description: '

Set the frequency

\n', - type: 'Number', - optional: true - } - ] - }, - 'p5.SqrOsc': { - name: 'p5.SqrOsc', - shortname: 'p5.SqrOsc', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 5861, - description: - '

Constructor: new p5.SqrOsc().\nThis creates a Square Wave Oscillator and is\nequivalent to new p5.Oscillator('square')\n or creating a p5.Oscillator and then calling\nits method setType('square').\nSee p5.Oscillator for methods.

\n', - is_constructor: 1, - extends: 'p5.Oscillator', - params: [ - { - name: 'freq', - description: '

Set the frequency

\n', - type: 'Number', - optional: true - } - ] - }, - 'p5.Envelope': { - name: 'p5.Envelope', - shortname: 'p5.Envelope', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 6316, - description: - '

Envelopes are pre-defined amplitude distribution over time.\nTypically, envelopes are used to control the output volume\nof an object, a series of fades referred to as Attack, Decay,\nSustain and Release (\nADSR\n). Envelopes can also control other Web Audio Parametersโ€”for example, a p5.Envelope can\ncontrol an Oscillator's frequency like this: osc.freq(env).

\n

Use setRange to change the attack/release level.\nUse setADSR to change attackTime, decayTime, sustainPercent and releaseTime.

\n

Use the play method to play the entire envelope,\nthe ramp method for a pingable trigger,\nor triggerAttack/\ntriggerRelease to trigger noteOn/noteOff.

', - is_constructor: 1, - example: [ - "\n
\nvar attackLevel = 1.0;\nvar releaseLevel = 0;\n\nvar attackTime = 0.001;\nvar decayTime = 0.2;\nvar susPercent = 0.2;\nvar releaseTime = 0.5;\n\nvar env, triOsc;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n\n textAlign(CENTER);\n text('click to play', width/2, height/2);\n\n env = new p5.Envelope();\n env.setADSR(attackTime, decayTime, susPercent, releaseTime);\n env.setRange(attackLevel, releaseLevel);\n\n triOsc = new p5.Oscillator('triangle');\n triOsc.amp(env);\n triOsc.start();\n triOsc.freq(220);\n\n cnv.mousePressed(playEnv);\n}\n\nfunction playEnv() {\n env.play();\n}\n
" - ] - }, - 'p5.Pulse': { - name: 'p5.Pulse', - shortname: 'p5.Pulse', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 7114, - description: - '

Creates a Pulse object, an oscillator that implements\nPulse Width Modulation.\nThe pulse is created with two oscillators.\nAccepts a parameter for frequency, and to set the\nwidth between the pulses. See \np5.Oscillator for a full list of methods.

\n', - extends: 'p5.Oscillator', - is_constructor: 1, - params: [ - { - name: 'freq', - description: '

Frequency in oscillations per second (Hz)

\n', - type: 'Number', - optional: true - }, - { - name: 'w', - description: - '

Width between the pulses (0 to 1.0,\n defaults to 0)

\n', - type: 'Number', - optional: true - } - ], - example: [ - '\n
\nvar pulse;\nfunction setup() {\n background(0);\n\n // Create and start the pulse wave oscillator\n pulse = new p5.Pulse();\n pulse.amp(0.5);\n pulse.freq(220);\n pulse.start();\n}\n\nfunction draw() {\n var w = map(mouseX, 0, width, 0, 1);\n w = constrain(w, 0, 1);\n pulse.width(w)\n}\n
' - ] - }, - 'p5.Noise': { - name: 'p5.Noise', - shortname: 'p5.Noise', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 7293, - description: - '

Noise is a type of oscillator that generates a buffer with random values.

\n', - extends: 'p5.Oscillator', - is_constructor: 1, - params: [ - { - name: 'type', - description: - '

Type of noise can be 'white' (default),\n 'brown' or 'pink'.

\n', - type: 'String' - } - ] - }, - 'p5.AudioIn': { - name: 'p5.AudioIn', - shortname: 'p5.AudioIn', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 7441, - description: - '

Get audio from an input, i.e. your computer's microphone.

\n\n

Turn the mic on/off with the start() and stop() methods. When the mic\nis on, its volume can be measured with getLevel or by connecting an\nFFT object.

\n\n

If you want to hear the AudioIn, use the .connect() method.\nAudioIn does not connect to p5.sound output by default to prevent\nfeedback.

\n\n

Note: This uses the getUserMedia/\nStream API, which is not supported by certain browsers. Access in Chrome browser\nis limited to localhost and https, but access over http may be limited.

', - is_constructor: 1, - params: [ - { - name: 'errorCallback', - description: - '

A function to call if there is an error\n accessing the AudioIn. For example,\n Safari and iOS devices do not\n currently allow microphone access.

\n', - type: 'Function', - optional: true - } - ], - example: [ - '\n
\nvar mic;\nfunction setup(){\n mic = new p5.AudioIn()\n mic.start();\n}\nfunction draw(){\n background(0);\n micLevel = mic.getLevel();\n ellipse(width/2, constrain(height-micLevel*height*5, 0, height), 10, 10);\n}\n
' - ] - }, - 'p5.Effect': { - name: 'p5.Effect', - shortname: 'p5.Effect', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 8357, - description: - '

Effect is a base class for audio effects in p5.
\nThis module handles the nodes and methods that are \ncommon and useful for current and future effects.

\n

This class is extended by p5.Distortion, \np5.Compressor,\np5.Delay, \np5.Filter, \np5.Reverb.

\n', - is_constructor: 1, - params: [ - { - name: 'ac', - description: '

Reference to the audio context of the p5 object

\n', - type: 'Object', - optional: true - }, - { - name: 'input', - description: '

Gain Node effect wrapper

\n', - type: 'AudioNode', - optional: true - }, - { - name: 'output', - description: '

Gain Node effect wrapper

\n', - type: 'AudioNode', - optional: true - }, - { - name: '_drywet', - description: '

Tone.JS CrossFade node (defaults to value: 1)

\n', - type: 'Object', - optional: true - }, - { - name: 'wet', - description: - '

Effects that extend this class should connect\n to the wet signal to this gain node, so that dry and wet \n signals are mixed properly.

\n', - type: 'AudioNode', - optional: true - } - ] - }, - 'p5.Filter': { - name: 'p5.Filter', - shortname: 'p5.Filter', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 8499, - description: - '

A p5.Filter uses a Web Audio Biquad Filter to filter\nthe frequency response of an input source. Subclasses\ninclude:

\n
    \n
  • p5.LowPass:\nAllows frequencies below the cutoff frequency to pass through,\nand attenuates frequencies above the cutoff.
  • \n
  • p5.HighPass:\nThe opposite of a lowpass filter.
  • \n
  • p5.BandPass:\nAllows a range of frequencies to pass through and attenuates\nthe frequencies below and above this frequency range.
  • \n
\n

The .res() method controls either width of the\nbandpass, or resonance of the low/highpass cutoff frequency.

\n

This class extends p5.Effect.
Methods amp(), chain(), \ndrywet(), connect(), and \ndisconnect() are available.

\n', - extends: 'p5.Effect', - is_constructor: 1, - params: [ - { - name: 'type', - description: - '

'lowpass' (default), 'highpass', 'bandpass'

\n', - type: 'String', - optional: true - } - ], - example: [ - '\n
\nvar fft, noise, filter;\n\nfunction setup() {\n fill(255, 40, 255);\n\n filter = new p5.BandPass();\n\n noise = new p5.Noise();\n // disconnect unfiltered noise,\n // and connect to filter\n noise.disconnect();\n noise.connect(filter);\n noise.start();\n\n fft = new p5.FFT();\n}\n\nfunction draw() {\n background(30);\n\n // set the BandPass frequency based on mouseX\n var freq = map(mouseX, 0, width, 20, 10000);\n filter.freq(freq);\n // give the filter a narrow band (lower res = wider bandpass)\n filter.res(50);\n\n // draw filtered spectrum\n var spectrum = fft.analyze();\n noStroke();\n for (var i = 0; i < spectrum.length; i++) {\n var x = map(i, 0, spectrum.length, 0, width);\n var h = -height + map(spectrum[i], 0, 255, height, 0);\n rect(x, height, width/spectrum.length, h);\n }\n\n isMouseOverCanvas();\n}\n\nfunction isMouseOverCanvas() {\n var mX = mouseX, mY = mouseY;\n if (mX > 0 && mX < width && mY < height && mY > 0) {\n noise.amp(0.5, 0.2);\n } else {\n noise.amp(0, 0.2);\n }\n}\n
' - ] - }, - 'p5.LowPass': { - name: 'p5.LowPass', - shortname: 'p5.LowPass', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 8730, - description: - '

Constructor: new p5.LowPass() Filter.\nThis is the same as creating a p5.Filter and then calling\nits method setType('lowpass').\nSee p5.Filter for methods.

\n', - is_constructor: 1, - extends: 'p5.Filter' - }, - 'p5.HighPass': { - name: 'p5.HighPass', - shortname: 'p5.HighPass', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 8744, - description: - '

Constructor: new p5.HighPass() Filter.\nThis is the same as creating a p5.Filter and then calling\nits method setType('highpass').\nSee p5.Filter for methods.

\n', - is_constructor: 1, - extends: 'p5.Filter' - }, - 'p5.BandPass': { - name: 'p5.BandPass', - shortname: 'p5.BandPass', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 8758, - description: - '

Constructor: new p5.BandPass() Filter.\nThis is the same as creating a p5.Filter and then calling\nits method setType('bandpass').\nSee p5.Filter for methods.

\n', - is_constructor: 1, - extends: 'p5.Filter' - }, - 'p5.EQ': { - name: 'p5.EQ', - shortname: 'p5.EQ', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 8829, - description: - '

p5.EQ is an audio effect that performs the function of a multiband\naudio equalizer. Equalization is used to adjust the balance of\nfrequency compoenents of an audio signal. This process is commonly used\nin sound production and recording to change the waveform before it reaches\na sound output device. EQ can also be used as an audio effect to create\ninteresting distortions by filtering out parts of the spectrum. p5.EQ is\nbuilt using a chain of Web Audio Biquad Filter Nodes and can be\ninstantiated with 3 or 8 bands. Bands can be added or removed from\nthe EQ by directly modifying p5.EQ.bands (the array that stores filters).

\n

This class extends p5.Effect.\nMethods amp(), chain(),\ndrywet(), connect(), and\ndisconnect() are available.

\n', - is_constructor: 1, - extends: 'p5.Effect', - params: [ - { - name: '_eqsize', - description: '

Constructor will accept 3 or 8, defaults to 3

\n', - type: 'Number', - optional: true - } - ], - return: { - description: 'p5.EQ object', - type: 'Object' - }, - example: [ - "\n
\nvar eq;\nvar band_names;\nvar band_index;\n\nvar soundFile, play;\n\nfunction preload() {\n soundFormats('mp3', 'ogg');\n soundFile = loadSound('assets/beat');\n}\n\nfunction setup() {\n eq = new p5.EQ(3);\n soundFile.disconnect();\n eq.process(soundFile);\n\n band_names = ['lows','mids','highs'];\n band_index = 0;\n play = false;\n textAlign(CENTER);\n}\n\nfunction draw() {\n background(30);\n noStroke();\n fill(255);\n text('click to kill',50,25);\n\n fill(255, 40, 255);\n textSize(26);\n text(band_names[band_index],50,55);\n\n fill(255);\n textSize(9);\n text('space = play/pause',50,80);\n}\n\n//If mouse is over canvas, cycle to the next band and kill the frequency\nfunction mouseClicked() {\n for (var i = 0; i < eq.bands.length; i++) {\n eq.bands[i].gain(0);\n }\n eq.bands[band_index].gain(-40);\n if (mouseX > 0 && mouseX < width && mouseY < height && mouseY > 0) {\n band_index === 2 ? band_index = 0 : band_index++;\n }\n}\n\n//use space bar to trigger play / pause\nfunction keyPressed() {\n if (key===' ') {\n play = !play\n play ? soundFile.loop() : soundFile.pause();\n }\n}\n
" - ] - }, - 'p5.Panner3D': { - name: 'p5.Panner3D', - shortname: 'p5.Panner3D', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 9021, - description: - '

Panner3D is based on the \nWeb Audio Spatial Panner Node.\nThis panner is a spatial processing node that allows audio to be positioned\nand oriented in 3D space.

\n

The position is relative to an \nAudio Context Listener, which can be accessed\nby p5.soundOut.audiocontext.listener

\n', - is_constructor: 1 - }, - 'p5.Delay': { - name: 'p5.Delay', - shortname: 'p5.Delay', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 9472, - description: - '

Delay is an echo effect. It processes an existing sound source,\nand outputs a delayed version of that sound. The p5.Delay can\nproduce different effects depending on the delayTime, feedback,\nfilter, and type. In the example below, a feedback of 0.5 (the\ndefaul value) will produce a looping delay that decreases in\nvolume by 50% each repeat. A filter will cut out the high\nfrequencies so that the delay does not sound as piercing as the\noriginal source.

\n

This class extends p5.Effect.
Methods amp(), chain(), \ndrywet(), connect(), and \ndisconnect() are available.

\n', - extends: 'p5.Effect', - is_constructor: 1, - example: [ - "\n
\nvar noise, env, delay;\n\nfunction setup() {\n background(0);\n noStroke();\n fill(255);\n textAlign(CENTER);\n text('click to play', width/2, height/2);\n\n noise = new p5.Noise('brown');\n noise.amp(0);\n noise.start();\n\n delay = new p5.Delay();\n\n // delay.process() accepts 4 parameters:\n // source, delayTime, feedback, filter frequency\n // play with these numbers!!\n delay.process(noise, .12, .7, 2300);\n\n // play the noise with an envelope,\n // a series of fades ( time / value pairs )\n env = new p5.Envelope(.01, 0.2, .2, .1);\n}\n\n// mouseClick triggers envelope\nfunction mouseClicked() {\n // is mouse over canvas?\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n env.play(noise);\n }\n}\n
" - ] - }, - 'p5.Reverb': { - name: 'p5.Reverb', - shortname: 'p5.Reverb', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 9749, - description: - '

Reverb adds depth to a sound through a large number of decaying\nechoes. It creates the perception that sound is occurring in a\nphysical space. The p5.Reverb has paramters for Time (how long does the\nreverb last) and decayRate (how much the sound decays with each echo)\nthat can be set with the .set() or .process() methods. The p5.Convolver\nextends p5.Reverb allowing you to recreate the sound of actual physical\nspaces through convolution.

\n

This class extends p5.Effect.\nMethods amp(), chain(),\ndrywet(), connect(), and\ndisconnect() are available.

\n', - extends: 'p5.Effect', - is_constructor: 1, - example: [ - "\n
\nvar soundFile, reverb;\nfunction preload() {\n soundFile = loadSound('assets/Damscray_DancingTiger.mp3');\n}\n\nfunction setup() {\n reverb = new p5.Reverb();\n soundFile.disconnect(); // so we'll only hear reverb...\n\n // connect soundFile to reverb, process w/\n // 3 second reverbTime, decayRate of 2%\n reverb.process(soundFile, 3, 2);\n soundFile.play();\n}\n
" - ] - }, - 'p5.Convolver': { - name: 'p5.Convolver', - shortname: 'p5.Convolver', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 9920, - description: - '

p5.Convolver extends p5.Reverb. It can emulate the sound of real\nphysical spaces through a process called \nconvolution.

\n\n

Convolution multiplies any audio input by an "impulse response"\nto simulate the dispersion of sound over time. The impulse response is\ngenerated from an audio file that you provide. One way to\ngenerate an impulse response is to pop a balloon in a reverberant space\nand record the echo. Convolution can also be used to experiment with\nsound.

\n\n

Use the method createConvolution(path) to instantiate a\np5.Convolver with a path to your impulse response audio file.

', - extends: 'p5.Effect', - is_constructor: 1, - params: [ - { - name: 'path', - description: '

path to a sound file

\n', - type: 'String' - }, - { - name: 'callback', - description: '

function to call when loading succeeds

\n', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: - '

function to call if loading fails.\n This function will receive an error or\n XMLHttpRequest object with information\n about what went wrong.

\n', - type: 'Function', - optional: true - } - ], - example: [ - "\n
\nvar cVerb, sound;\nfunction preload() {\n // We have both MP3 and OGG versions of all sound assets\n soundFormats('ogg', 'mp3');\n\n // Try replacing 'bx-spring' with other soundfiles like\n // 'concrete-tunnel' 'small-plate' 'drum' 'beatbox'\n cVerb = createConvolver('assets/bx-spring.mp3');\n\n // Try replacing 'Damscray_DancingTiger' with\n // 'beat', 'doorbell', lucky_dragons_-_power_melody'\n sound = loadSound('assets/Damscray_DancingTiger.mp3');\n}\n\nfunction setup() {\n // disconnect from master output...\n sound.disconnect();\n\n // ...and process with cVerb\n // so that we only hear the convolution\n cVerb.process(sound);\n\n sound.play();\n}\n
" - ] - }, - 'p5.Phrase': { - name: 'p5.Phrase', - shortname: 'p5.Phrase', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 10476, - description: - '

A phrase is a pattern of musical events over time, i.e.\na series of notes and rests.

\n\n

Phrases must be added to a p5.Part for playback, and\neach part can play multiple phrases at the same time.\nFor example, one Phrase might be a kick drum, another\ncould be a snare, and another could be the bassline.

\n\n

The first parameter is a name so that the phrase can be\nmodified or deleted later. The callback is a a function that\nthis phrase will call at every stepโ€”for example it might be\ncalled playNote(value){}. The array determines\nwhich value is passed into the callback at each step of the\nphrase. It can be numbers, an object with multiple numbers,\nor a zero (0) indicates a rest so the callback won't be called).

', - is_constructor: 1, - params: [ - { - name: 'name', - description: '

Name so that you can access the Phrase.

\n', - type: 'String' - }, - { - name: 'callback', - description: - '

The name of a function that this phrase\n will call. Typically it will play a sound,\n and accept two parameters: a time at which\n to play the sound (in seconds from now),\n and a value from the sequence array. The\n time should be passed into the play() or\n start() method to ensure precision.

\n', - type: 'Function' - }, - { - name: 'sequence', - description: - '

Array of values to pass into the callback\n at each step of the phrase.

\n', - type: 'Array' - } - ], - example: [ - "\n
\nvar mySound, myPhrase, myPart;\nvar pattern = [1,0,0,2,0,2,0,0];\nvar msg = 'click to play';\n\nfunction preload() {\n mySound = loadSound('assets/beatbox.mp3');\n}\n\nfunction setup() {\n noStroke();\n fill(255);\n textAlign(CENTER);\n masterVolume(0.1);\n\n myPhrase = new p5.Phrase('bbox', makeSound, pattern);\n myPart = new p5.Part();\n myPart.addPhrase(myPhrase);\n myPart.setBPM(60);\n}\n\nfunction draw() {\n background(0);\n text(msg, width/2, height/2);\n}\n\nfunction makeSound(time, playbackRate) {\n mySound.rate(playbackRate);\n mySound.play(time);\n}\n\nfunction mouseClicked() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n myPart.start();\n msg = 'playing pattern';\n }\n}\n\n
" - ] - }, - 'p5.Part': { - name: 'p5.Part', - shortname: 'p5.Part', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 10561, - description: - '

A p5.Part plays back one or more p5.Phrases. Instantiate a part\nwith steps and tatums. By default, each step represents a 1/16th note.

\n\n

See p5.Phrase for more about musical timing.

', - is_constructor: 1, - params: [ - { - name: 'steps', - description: '

Steps in the part

\n', - type: 'Number', - optional: true - }, - { - name: 'tatums', - description: - '

Divisions of a beat, e.g. use 1/4, or 0.25 for a quater note (default is 1/16, a sixteenth note)

\n', - type: 'Number', - optional: true - } - ], - example: [ - "\n
\nvar box, drum, myPart;\nvar boxPat = [1,0,0,2,0,2,0,0];\nvar drumPat = [0,1,1,0,2,0,1,0];\nvar msg = 'click to play';\n\nfunction preload() {\n box = loadSound('assets/beatbox.mp3');\n drum = loadSound('assets/drum.mp3');\n}\n\nfunction setup() {\n noStroke();\n fill(255);\n textAlign(CENTER);\n masterVolume(0.1);\n\n var boxPhrase = new p5.Phrase('box', playBox, boxPat);\n var drumPhrase = new p5.Phrase('drum', playDrum, drumPat);\n myPart = new p5.Part();\n myPart.addPhrase(boxPhrase);\n myPart.addPhrase(drumPhrase);\n myPart.setBPM(60);\n masterVolume(0.1);\n}\n\nfunction draw() {\n background(0);\n text(msg, width/2, height/2);\n}\n\nfunction playBox(time, playbackRate) {\n box.rate(playbackRate);\n box.play(time);\n}\n\nfunction playDrum(time, playbackRate) {\n drum.rate(playbackRate);\n drum.play(time);\n}\n\nfunction mouseClicked() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n myPart.start();\n msg = 'playing part';\n }\n}\n
" - ] - }, - 'p5.Score': { - name: 'p5.Score', - shortname: 'p5.Score', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 10814, - description: - '

A Score consists of a series of Parts. The parts will\nbe played back in order. For example, you could have an\nA part, a B part, and a C part, and play them back in this order\nnew p5.Score(a, a, b, a, c)

\n', - is_constructor: 1, - params: [ - { - name: 'parts', - description: - '

One or multiple parts, to be played in sequence.

\n', - type: 'p5.Part', - optional: true, - multiple: true - } - ] - }, - 'p5.SoundLoop': { - name: 'p5.SoundLoop', - shortname: 'p5.SoundLoop', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 10945, - description: '

SoundLoop

\n', - is_constructor: 1, - params: [ - { - name: 'callback', - description: - '

this function will be called on each iteration of theloop

\n', - type: 'Function' - }, - { - name: 'interval', - description: - '

amount of time or beats for each iteration of the loop\n defaults to 1

\n', - type: 'Number|String', - optional: true - } - ], - example: [ - "\n
\nvar click;\nvar looper1;\n\nfunction preload() {\n click = loadSound('assets/drum.mp3');\n}\n\nfunction setup() {\n //the looper's callback is passed the timeFromNow\n //this value should be used as a reference point from \n //which to schedule sounds \n looper1 = new p5.SoundLoop(function(timeFromNow){\n click.play(timeFromNow);\n background(255 * (looper1.iterations % 2));\n }, 2);\n\n //stop after 10 iteratios;\n looper1.maxIterations = 10;\n //start the loop\n looper1.start();\n}\n
" - ] - }, - 'p5.Compressor': { - name: 'p5.Compressor', - shortname: 'p5.Compressor', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 11205, - description: - '

Compressor is an audio effect class that performs dynamics compression\non an audio input source. This is a very commonly used technique in music\nand sound production. Compression creates an overall louder, richer, \nand fuller sound by lowering the volume of louds and raising that of softs.\nCompression can be used to avoid clipping (sound distortion due to \npeaks in volume) and is especially useful when many sounds are played \nat once. Compression can be used on indivudal sound sources in addition\nto the master output.

\n

This class extends p5.Effect.
Methods amp(), chain(), \ndrywet(), connect(), and \ndisconnect() are available.

\n', - is_constructor: 1, - extends: 'p5.Effect' - }, - 'p5.SoundRecorder': { - name: 'p5.SoundRecorder', - shortname: 'p5.SoundRecorder', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 11417, - description: - '

Record sounds for playback and/or to save as a .wav file.\nThe p5.SoundRecorder records all sound output from your sketch,\nor can be assigned a specific source with setInput().

\n

The record() method accepts a p5.SoundFile as a parameter.\nWhen playback is stopped (either after the given amount of time,\nor with the stop() method), the p5.SoundRecorder will send its\nrecording to that p5.SoundFile for playback.

', - is_constructor: 1, - example: [ - "\n
\nvar mic, recorder, soundFile;\nvar state = 0;\n\nfunction setup() {\n background(200);\n // create an audio in\n mic = new p5.AudioIn();\n\n // prompts user to enable their browser mic\n mic.start();\n\n // create a sound recorder\n recorder = new p5.SoundRecorder();\n\n // connect the mic to the recorder\n recorder.setInput(mic);\n\n // this sound file will be used to\n // playback & save the recording\n soundFile = new p5.SoundFile();\n\n text('keyPress to record', 20, 20);\n}\n\nfunction keyPressed() {\n // make sure user enabled the mic\n if (state === 0 && mic.enabled) {\n\n // record to our p5.SoundFile\n recorder.record(soundFile);\n\n background(255,0,0);\n text('Recording!', 20, 20);\n state++;\n }\n else if (state === 1) {\n background(0,255,0);\n\n // stop recorder and\n // send result to soundFile\n recorder.stop();\n\n text('Stopped', 20, 20);\n state++;\n }\n\n else if (state === 2) {\n soundFile.play(); // play the result!\n save(soundFile, 'mySound.wav');\n state++;\n }\n}\n
" - ] - }, - 'p5.PeakDetect': { - name: 'p5.PeakDetect', - shortname: 'p5.PeakDetect', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 11655, - description: - '

PeakDetect works in conjunction with p5.FFT to\nlook for onsets in some or all of the frequency spectrum.\n

\n

\nTo use p5.PeakDetect, call update in the draw loop\nand pass in a p5.FFT object.\n

\n

\nYou can listen for a specific part of the frequency spectrum by\nsetting the range between freq1 and freq2.\n

\n\n

threshold is the threshold for detecting a peak,\nscaled between 0 and 1. It is logarithmic, so 0.1 is half as loud\nas 1.0.

\n\n

\nThe update method is meant to be run in the draw loop, and\nframes determines how many loops must pass before\nanother peak can be detected.\nFor example, if the frameRate() = 60, you could detect the beat of a\n120 beat-per-minute song with this equation:\n framesPerPeak = 60 / (estimatedBPM / 60 );\n

\n\n

\nBased on example contribtued by @b2renger, and a simple beat detection\nexplanation by Felix Turner.\n

', - is_constructor: 1, - params: [ - { - name: 'freq1', - description: '

lowFrequency - defaults to 20Hz

\n', - type: 'Number', - optional: true - }, - { - name: 'freq2', - description: '

highFrequency - defaults to 20000 Hz

\n', - type: 'Number', - optional: true - }, - { - name: 'threshold', - description: - '

Threshold for detecting a beat between 0 and 1\n scaled logarithmically where 0.1 is 1/2 the loudness\n of 1.0. Defaults to 0.35.

\n', - type: 'Number', - optional: true - }, - { - name: 'framesPerPeak', - description: '

Defaults to 20.

\n', - type: 'Number', - optional: true - } - ], - example: [ - "\n
\n\nvar cnv, soundFile, fft, peakDetect;\nvar ellipseWidth = 10;\n\nfunction preload() {\n soundFile = loadSound('assets/beat.mp3');\n}\n\nfunction setup() {\n background(0);\n noStroke();\n fill(255);\n textAlign(CENTER);\n\n // p5.PeakDetect requires a p5.FFT\n fft = new p5.FFT();\n peakDetect = new p5.PeakDetect();\n}\n\nfunction draw() {\n background(0);\n text('click to play/pause', width/2, height/2);\n\n // peakDetect accepts an fft post-analysis\n fft.analyze();\n peakDetect.update(fft);\n\n if ( peakDetect.isDetected ) {\n ellipseWidth = 50;\n } else {\n ellipseWidth *= 0.95;\n }\n\n ellipse(width/2, height/2, ellipseWidth, ellipseWidth);\n}\n\n// toggle play/stop when canvas is clicked\nfunction mouseClicked() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n if (soundFile.isPlaying() ) {\n soundFile.stop();\n } else {\n soundFile.play();\n }\n }\n}\n
" - ] - }, - 'p5.Gain': { - name: 'p5.Gain', - shortname: 'p5.Gain', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 11879, - description: - '

A gain node is usefull to set the relative volume of sound.\nIt's typically used to build mixers.

\n', - is_constructor: 1, - example: [ - "\n
\n\n // load two soundfile and crossfade beetween them\n var sound1,sound2;\n var gain1, gain2, gain3;\n\n function preload(){\n soundFormats('ogg', 'mp3');\n sound1 = loadSound('assets/Damscray_-_Dancing_Tiger_01');\n sound2 = loadSound('assets/beat.mp3');\n }\n\n function setup() {\n createCanvas(400,200);\n\n // create a 'master' gain to which we will connect both soundfiles\n gain3 = new p5.Gain();\n gain3.connect();\n\n // setup first sound for playing\n sound1.rate(1);\n sound1.loop();\n sound1.disconnect(); // diconnect from p5 output\n\n gain1 = new p5.Gain(); // setup a gain node\n gain1.setInput(sound1); // connect the first sound to its input\n gain1.connect(gain3); // connect its output to the 'master'\n\n sound2.rate(1);\n sound2.disconnect();\n sound2.loop();\n\n gain2 = new p5.Gain();\n gain2.setInput(sound2);\n gain2.connect(gain3);\n\n }\n\n function draw(){\n background(180);\n\n // calculate the horizontal distance beetween the mouse and the right of the screen\n var d = dist(mouseX,0,width,0);\n\n // map the horizontal position of the mouse to values useable for volume control of sound1\n var vol1 = map(mouseX,0,width,0,1);\n var vol2 = 1-vol1; // when sound1 is loud, sound2 is quiet and vice versa\n\n gain1.amp(vol1,0.5,0);\n gain2.amp(vol2,0.5,0);\n\n // map the vertical position of the mouse to values useable for 'master volume control'\n var vol3 = map(mouseY,0,height,0,1);\n gain3.amp(vol3,0.5,0);\n }\n
\n" - ] - }, - 'p5.AudioVoice': { - name: 'p5.AudioVoice', - shortname: 'p5.AudioVoice', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 12020, - description: - '

Base class for monophonic synthesizers. Any extensions of this class\nshould follow the API and implement the methods below in order to \nremain compatible with p5.PolySynth();

\n', - is_constructor: 1 - }, - 'p5.MonoSynth': { - name: 'p5.MonoSynth', - shortname: 'p5.MonoSynth', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 12073, - description: - '

A MonoSynth is used as a single voice for sound synthesis.\nThis is a class to be used in conjunction with the PolySynth\nclass. Custom synthetisers should be built inheriting from\nthis class.

\n', - is_constructor: 1, - example: [ - '\n
\nvar monoSynth;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n cnv.mousePressed(playSynth);\n\n monoSynth = new p5.MonoSynth();\n\n textAlign(CENTER);\n text(\'click to play\', width/2, height/2);\n}\n\nfunction playSynth() {\n // time from now (in seconds)\n var time = 0;\n // note duration (in seconds)\n var dur = 0.25;\n // velocity (volume, from 0 to 1)\n var v = 0.2;\n\n monoSynth.play("G3", v, time, dur);\n monoSynth.play("C4", v, time += dur, dur);\n\n background(random(255), random(255), 255);\n text(\'click to play\', width/2, height/2);\n}\n
' - ] - }, - 'p5.PolySynth': { - name: 'p5.PolySynth', - shortname: 'p5.PolySynth', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 12362, - description: - '

An AudioVoice is used as a single voice for sound synthesis.\nThe PolySynth class holds an array of AudioVoice, and deals\nwith voices allocations, with setting notes to be played, and\nparameters to be set.

\n', - is_constructor: 1, - params: [ - { - name: 'synthVoice', - description: - '

A monophonic synth voice inheriting\n the AudioVoice class. Defaults to p5.MonoSynth

\n', - type: 'Number', - optional: true - }, - { - name: 'maxVoices', - description: '

Number of voices, defaults to 8;

\n', - type: 'Number', - optional: true - } - ], - example: [ - '\n
\nvar polySynth;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n cnv.mousePressed(playSynth);\n\n polySynth = new p5.PolySynth();\n\n textAlign(CENTER);\n text(\'click to play\', width/2, height/2);\n}\n\nfunction playSynth() {\n // note duration (in seconds)\n var dur = 1.5;\n\n // time from now (in seconds)\n var time = 0;\n\n // velocity (volume, from 0 to 1)\n var vel = 0.1;\n\n // notes can overlap with each other\n polySynth.play("G2", vel, 0, dur);\n polySynth.play("C3", vel, time += 1/3, dur);\n polySynth.play("G3", vel, time += 1/3, dur);\n\n background(random(255), random(255), 255);\n text(\'click to play\', width/2, height/2);\n}\n
' - ] - }, - 'p5.Distortion': { - name: 'p5.Distortion', - shortname: 'p5.Distortion', - classitems: [], - plugins: [], - extensions: [], - plugin_for: [], - extension_for: [], - module: 'p5.sound', - submodule: 'p5.sound', - namespace: '', - file: 'lib/addons/p5.sound.js', - line: 12767, - description: - '

A Distortion effect created with a Waveshaper Node,\nwith an approach adapted from\nKevin Ennis

\n

This class extends p5.Effect.
Methods amp(), chain(), \ndrywet(), connect(), and \ndisconnect() are available.

\n', - extends: 'p5.Effect', - is_constructor: 1, - params: [ - { - name: 'amount', - description: - '

Unbounded distortion amount.\n Normal values range from 0-1.

\n', - type: 'Number', - optional: true, - optdefault: '0.25' - }, - { - name: 'oversample', - description: '

'none', '2x', or '4x'.

\n', - type: 'String', - optional: true, - optdefault: "'none'" - } - ] - } - }, - elements: {}, - classitems: [ - { - file: 'src/color/color_conversion.js', - line: 10, - description: - '

Conversions adapted from http://www.easyrgb.com/en/math.php.

\n

In these functions, hue is always in the range [0, 1], just like all other\ncomponents are in the range [0, 1]. 'Brightness' and 'value' are used\ninterchangeably.

\n', - class: 'p5', - module: 'Color', - submodule: 'Color Conversion' - }, - { - file: 'src/color/color_conversion.js', - line: 21, - description: '

Convert an HSBA array to HSLA.

\n', - class: 'p5', - module: 'Color', - submodule: 'Color Conversion' - }, - { - file: 'src/color/color_conversion.js', - line: 47, - description: '

Convert an HSBA array to RGBA.

\n', - class: 'p5', - module: 'Color', - submodule: 'Color Conversion' - }, - { - file: 'src/color/color_conversion.js', - line: 102, - description: '

Convert an HSLA array to HSBA.

\n', - class: 'p5', - module: 'Color', - submodule: 'Color Conversion' - }, - { - file: 'src/color/color_conversion.js', - line: 125, - description: - '

Convert an HSLA array to RGBA.

\n

We need to change basis from HSLA to something that can be more easily be\nprojected onto RGBA. We will choose hue and brightness as our first two\ncomponents, and pick a convenient third one ('zest') so that we don't need\nto calculate formal HSBA saturation.

\n', - class: 'p5', - module: 'Color', - submodule: 'Color Conversion' - }, - { - file: 'src/color/color_conversion.js', - line: 189, - description: '

Convert an RGBA array to HSBA.

\n', - class: 'p5', - module: 'Color', - submodule: 'Color Conversion' - }, - { - file: 'src/color/color_conversion.js', - line: 228, - description: '

Convert an RGBA array to HSLA.

\n', - class: 'p5', - module: 'Color', - submodule: 'Color Conversion' - }, - { - file: 'src/color/creating_reading.js', - line: 16, - description: - '

Extracts the alpha value from a color or pixel array.

\n', - itemtype: 'method', - name: 'alpha', - params: [ - { - name: 'color', - description: - '

p5.Color object, color components,\n or CSS color

\n', - type: 'p5.Color|Number[]|String' - } - ], - return: { - description: 'the alpha value', - type: 'Number' - }, - example: [ - "\n
\n\nnoStroke();\nlet c = color(0, 126, 255, 102);\nfill(c);\nrect(15, 15, 35, 70);\nlet value = alpha(c); // Sets 'value' to 102\nfill(value);\nrect(50, 15, 35, 70);\n\n
" - ], - alt: - 'Left half of canvas light blue and right half light charcoal grey.\nLeft half of canvas light purple and right half a royal blue.\nLeft half of canvas salmon pink and the right half white.\nYellow rect in middle right of canvas, with 55 pixel width and height.\nYellow ellipse in top left canvas, black ellipse in bottom right,both 80x80.\nBright fuchsia rect in middle of canvas, 60 pixel width and height.\nTwo bright green rects on opposite sides of the canvas, both 45x80.\nFour blue rects in each corner of the canvas, each are 35x35.\nBright sea green rect on left and darker rect on right of canvas, both 45x80.\nDark green rect on left and light green rect on right of canvas, both 45x80.\nDark blue rect on left and light teal rect on right of canvas, both 45x80.\nblue rect on left and green on right, both with black outlines & 35x60.\nsalmon pink rect on left and black on right, both 35x60.\n4 rects, tan, brown, brownish purple and purple, with white outlines & 20x60.\nlight pastel green rect on left and dark grey rect on right, both 35x60.\nyellow rect on left and red rect on right, both with black outlines & 35x60.\ngrey canvas\ndeep pink rect on left and grey rect on right, both 35x60.', - class: 'p5', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/creating_reading.js', - line: 61, - description: - '

Extracts the blue value from a color or pixel array.

\n', - itemtype: 'method', - name: 'blue', - params: [ - { - name: 'color', - description: - '

p5.Color object, color components,\n or CSS color

\n', - type: 'p5.Color|Number[]|String' - } - ], - return: { - description: 'the blue value', - type: 'Number' - }, - example: [ - "\n
\n\nlet c = color(175, 100, 220); // Define color 'c'\nfill(c); // Use color variable 'c' as fill color\nrect(15, 20, 35, 60); // Draw left rectangle\n\nlet blueValue = blue(c); // Get blue in 'c'\nprint(blueValue); // Prints \"220.0\"\nfill(0, 0, blueValue); // Use 'blueValue' in new fill\nrect(50, 20, 35, 60); // Draw right rectangle\n\n
" - ], - alt: 'Left half of canvas light purple and right half a royal blue.', - class: 'p5', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/creating_reading.js', - line: 91, - description: - '

Extracts the HSB brightness value from a color or pixel array.

\n', - itemtype: 'method', - name: 'brightness', - params: [ - { - name: 'color', - description: - '

p5.Color object, color components,\n or CSS color

\n', - type: 'p5.Color|Number[]|String' - } - ], - return: { - description: 'the brightness value', - type: 'Number' - }, - example: [ - "\n
\n\nnoStroke();\ncolorMode(HSB, 255);\nlet c = color(0, 126, 255);\nfill(c);\nrect(15, 20, 35, 60);\nlet value = brightness(c); // Sets 'value' to 255\nfill(value);\nrect(50, 20, 35, 60);\n\n
\n
\n\nnoStroke();\ncolorMode(HSB, 255);\nlet c = color('hsb(60, 100%, 50%)');\nfill(c);\nrect(15, 20, 35, 60);\nlet value = brightness(c); // A 'value' of 50% is 127.5\nfill(value);\nrect(50, 20, 35, 60);\n\n
" - ], - alt: - 'Left half of canvas salmon pink and the right half white.\nLeft half of canvas yellow at half brightness and the right gray .', - class: 'p5', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/creating_reading.js', - line: 134, - description: - '

Creates colors for storing in variables of the color datatype. The\nparameters are interpreted as RGB or HSB values depending on the\ncurrent colorMode(). The default mode is RGB values from 0 to 255\nand, therefore, the function call color(255, 204, 0) will return a\nbright yellow color.\n

\nNote that if only one value is provided to color(), it will be interpreted\nas a grayscale value. Add a second value, and it will be used for alpha\ntransparency. When three values are specified, they are interpreted as\neither RGB or HSB values. Adding a fourth value applies alpha\ntransparency.\n

\nIf a single string argument is provided, RGB, RGBA and Hex CSS color\nstrings and all named color strings are supported. In this case, an alpha\nnumber value as a second argument is not supported, the RGBA form should be\nused.

\n', - itemtype: 'method', - name: 'color', - return: { - description: 'resulting color', - type: 'p5.Color' - }, - example: [ - "\n
\n\nlet c = color(255, 204, 0); // Define color 'c'\nfill(c); // Use color variable 'c' as fill color\nnoStroke(); // Don't draw a stroke around shapes\nrect(30, 20, 55, 55); // Draw rectangle\n\n
\n\n
\n\nlet c = color(255, 204, 0); // Define color 'c'\nfill(c); // Use color variable 'c' as fill color\nnoStroke(); // Don't draw a stroke around shapes\nellipse(25, 25, 80, 80); // Draw left circle\n\n// Using only one value with color()\n// generates a grayscale value.\nc = color(65); // Update 'c' with grayscale value\nfill(c); // Use updated 'c' as fill color\nellipse(75, 75, 80, 80); // Draw right circle\n\n
\n\n
\n\n// Named SVG & CSS colors may be used,\nlet c = color('magenta');\nfill(c); // Use 'c' as fill color\nnoStroke(); // Don't draw a stroke around shapes\nrect(20, 20, 60, 60); // Draw rectangle\n\n
\n\n
\n\n// as can hex color codes:\nnoStroke(); // Don't draw a stroke around shapes\nlet c = color('#0f0');\nfill(c); // Use 'c' as fill color\nrect(0, 10, 45, 80); // Draw rectangle\n\nc = color('#00ff00');\nfill(c); // Use updated 'c' as fill color\nrect(55, 10, 45, 80); // Draw rectangle\n\n
\n\n
\n\n// RGB and RGBA color strings are also supported:\n// these all set to the same color (solid blue)\nlet c;\nnoStroke(); // Don't draw a stroke around shapes\nc = color('rgb(0,0,255)');\nfill(c); // Use 'c' as fill color\nrect(10, 10, 35, 35); // Draw rectangle\n\nc = color('rgb(0%, 0%, 100%)');\nfill(c); // Use updated 'c' as fill color\nrect(55, 10, 35, 35); // Draw rectangle\n\nc = color('rgba(0, 0, 255, 1)');\nfill(c); // Use updated 'c' as fill color\nrect(10, 55, 35, 35); // Draw rectangle\n\nc = color('rgba(0%, 0%, 100%, 1)');\nfill(c); // Use updated 'c' as fill color\nrect(55, 55, 35, 35); // Draw rectangle\n\n
\n\n
\n\n// HSL color is also supported and can be specified\n// by value\nlet c;\nnoStroke(); // Don't draw a stroke around shapes\nc = color('hsl(160, 100%, 50%)');\nfill(c); // Use 'c' as fill color\nrect(0, 10, 45, 80); // Draw rectangle\n\nc = color('hsla(160, 100%, 50%, 0.5)');\nfill(c); // Use updated 'c' as fill color\nrect(55, 10, 45, 80); // Draw rectangle\n\n
\n\n
\n\n// HSB color is also supported and can be specified\n// by value\nlet c;\nnoStroke(); // Don't draw a stroke around shapes\nc = color('hsb(160, 100%, 50%)');\nfill(c); // Use 'c' as fill color\nrect(0, 10, 45, 80); // Draw rectangle\n\nc = color('hsba(160, 100%, 50%, 0.5)');\nfill(c); // Use updated 'c' as fill color\nrect(55, 10, 45, 80); // Draw rectangle\n\n
\n\n
\n\nlet c; // Declare color 'c'\nnoStroke(); // Don't draw a stroke around shapes\n\n// If no colorMode is specified, then the\n// default of RGB with scale of 0-255 is used.\nc = color(50, 55, 100); // Create a color for 'c'\nfill(c); // Use color variable 'c' as fill color\nrect(0, 10, 45, 80); // Draw left rect\n\ncolorMode(HSB, 100); // Use HSB with scale of 0-100\nc = color(50, 55, 100); // Update 'c' with new color\nfill(c); // Use updated 'c' as fill color\nrect(55, 10, 45, 80); // Draw right rect\n\n
" - ], - alt: - 'Yellow rect in middle right of canvas, with 55 pixel width and height.\nYellow ellipse in top left of canvas, black ellipse in bottom right,both 80x80.\nBright fuchsia rect in middle of canvas, 60 pixel width and height.\nTwo bright green rects on opposite sides of the canvas, both 45x80.\nFour blue rects in each corner of the canvas, each are 35x35.\nBright sea green rect on left and darker rect on right of canvas, both 45x80.\nDark green rect on left and lighter green rect on right of canvas, both 45x80.\nDark blue rect on left and light teal rect on right of canvas, both 45x80.', - class: 'p5', - module: 'Color', - submodule: 'Creating & Reading', - overloads: [ - { - line: 134, - params: [ - { - name: 'gray', - description: - '

number specifying value between white\n and black.

\n', - type: 'Number' - }, - { - name: 'alpha', - description: - '

alpha value relative to current color range\n (default is 0-255)

\n', - type: 'Number', - optional: true - } - ], - return: { - description: 'resulting color', - type: 'p5.Color' - } - }, - { - line: 293, - params: [ - { - name: 'v1', - description: - '

red or hue value relative to\n the current color range

\n', - type: 'Number' - }, - { - name: 'v2', - description: - '

green or saturation value\n relative to the current color range

\n', - type: 'Number' - }, - { - name: 'v3', - description: - '

blue or brightness value\n relative to the current color range

\n', - type: 'Number' - }, - { - name: 'alpha', - description: '', - type: 'Number', - optional: true - } - ], - return: { - description: '', - type: 'p5.Color' - } - }, - { - line: 305, - params: [ - { - name: 'value', - description: '

a color string

\n', - type: 'String' - } - ], - return: { - description: '', - type: 'p5.Color' - } - }, - { - line: 310, - params: [ - { - name: 'values', - description: - '

an array containing the red,green,blue &\n and alpha components of the color

\n', - type: 'Number[]' - } - ], - return: { - description: '', - type: 'p5.Color' - } - }, - { - line: 316, - params: [ - { - name: 'color', - description: '', - type: 'p5.Color' - } - ], - return: { - description: '', - type: 'p5.Color' - } - } - ] - }, - { - file: 'src/color/creating_reading.js', - line: 332, - description: - '

Extracts the green value from a color or pixel array.

\n', - itemtype: 'method', - name: 'green', - params: [ - { - name: 'color', - description: - '

p5.Color object, color components,\n or CSS color

\n', - type: 'p5.Color|Number[]|String' - } - ], - return: { - description: 'the green value', - type: 'Number' - }, - example: [ - "\n
\n\nlet c = color(20, 75, 200); // Define color 'c'\nfill(c); // Use color variable 'c' as fill color\nrect(15, 20, 35, 60); // Draw left rectangle\n\nlet greenValue = green(c); // Get green in 'c'\nprint(greenValue); // Print \"75.0\"\nfill(0, greenValue, 0); // Use 'greenValue' in new fill\nrect(50, 20, 35, 60); // Draw right rectangle\n\n
" - ], - alt: - 'blue rect on left and green on right, both with black outlines & 35x60.', - class: 'p5', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/creating_reading.js', - line: 363, - description: - '

Extracts the hue value from a color or pixel array.

\n

Hue exists in both HSB and HSL. This function will return the\nHSB-normalized hue when supplied with an HSB color object (or when supplied\nwith a pixel array while the color mode is HSB), but will default to the\nHSL-normalized hue otherwise. (The values will only be different if the\nmaximum hue setting for each system is different.)

\n', - itemtype: 'method', - name: 'hue', - params: [ - { - name: 'color', - description: - '

p5.Color object, color components,\n or CSS color

\n', - type: 'p5.Color|Number[]|String' - } - ], - return: { - description: 'the hue', - type: 'Number' - }, - example: [ - '\n
\n\nnoStroke();\ncolorMode(HSB, 255);\nlet c = color(0, 126, 255);\nfill(c);\nrect(15, 20, 35, 60);\nlet value = hue(c); // Sets \'value\' to "0"\nfill(value);\nrect(50, 20, 35, 60);\n\n
' - ], - alt: 'salmon pink rect on left and black on right, both 35x60.', - class: 'p5', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/creating_reading.js', - line: 400, - description: - '

Blends two colors to find a third color somewhere between them. The amt\nparameter is the amount to interpolate between the two values where 0.0\nequal to the first color, 0.1 is very near the first color, 0.5 is halfway\nin between, etc. An amount below 0 will be treated as 0. Likewise, amounts\nabove 1 will be capped at 1. This is different from the behavior of lerp(),\nbut necessary because otherwise numbers outside the range will produce\nstrange and unexpected colors.\n

\nThe way that colours are interpolated depends on the current color mode.

\n', - itemtype: 'method', - name: 'lerpColor', - params: [ - { - name: 'c1', - description: '

interpolate from this color

\n', - type: 'p5.Color' - }, - { - name: 'c2', - description: '

interpolate to this color

\n', - type: 'p5.Color' - }, - { - name: 'amt', - description: '

number between 0 and 1

\n', - type: 'Number' - } - ], - return: { - description: 'interpolated color', - type: 'p5.Color' - }, - example: [ - '\n
\n\ncolorMode(RGB);\nstroke(255);\nbackground(51);\nlet from = color(218, 165, 32);\nlet to = color(72, 61, 139);\ncolorMode(RGB); // Try changing to HSB.\nlet interA = lerpColor(from, to, 0.33);\nlet interB = lerpColor(from, to, 0.66);\nfill(from);\nrect(10, 20, 20, 60);\nfill(interA);\nrect(30, 20, 20, 60);\nfill(interB);\nrect(50, 20, 20, 60);\nfill(to);\nrect(70, 20, 20, 60);\n\n
' - ], - alt: - '4 rects one tan, brown, brownish purple, purple, with white outlines & 20x60', - class: 'p5', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/creating_reading.js', - line: 497, - description: - '

Extracts the HSL lightness value from a color or pixel array.

\n', - itemtype: 'method', - name: 'lightness', - params: [ - { - name: 'color', - description: - '

p5.Color object, color components,\n or CSS color

\n', - type: 'p5.Color|Number[]|String' - } - ], - return: { - description: 'the lightness', - type: 'Number' - }, - example: [ - "\n
\n\nnoStroke();\ncolorMode(HSL);\nlet c = color(156, 100, 50, 1);\nfill(c);\nrect(15, 20, 35, 60);\nlet value = lightness(c); // Sets 'value' to 50\nfill(value);\nrect(50, 20, 35, 60);\n\n
" - ], - alt: - 'light pastel green rect on left and dark grey rect on right, both 35x60.', - class: 'p5', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/creating_reading.js', - line: 527, - description: '

Extracts the red value from a color or pixel array.

\n', - itemtype: 'method', - name: 'red', - params: [ - { - name: 'color', - description: - '

p5.Color object, color components,\n or CSS color

\n', - type: 'p5.Color|Number[]|String' - } - ], - return: { - description: 'the red value', - type: 'Number' - }, - example: [ - "\n
\n\nlet c = color(255, 204, 0); // Define color 'c'\nfill(c); // Use color variable 'c' as fill color\nrect(15, 20, 35, 60); // Draw left rectangle\n\nlet redValue = red(c); // Get red in 'c'\nprint(redValue); // Print \"255.0\"\nfill(redValue, 0, 0); // Use 'redValue' in new fill\nrect(50, 20, 35, 60); // Draw right rectangle\n\n
\n\n
\n\ncolorMode(RGB, 255); // Sets the range for red, green, and blue to 255\nlet c = color(127, 255, 0);\ncolorMode(RGB, 1); // Sets the range for red, green, and blue to 1\nlet myColor = red(c);\nprint(myColor); // 0.4980392156862745\n\n
" - ], - alt: - 'yellow rect on left and red rect on right, both with black outlines and 35x60.\ngrey canvas', - class: 'p5', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/creating_reading.js', - line: 567, - description: - '

Extracts the saturation value from a color or pixel array.

\n

Saturation is scaled differently in HSB and HSL. This function will return\nthe HSB saturation when supplied with an HSB color object (or when supplied\nwith a pixel array while the color mode is HSB), but will default to the\nHSL saturation otherwise.

\n', - itemtype: 'method', - name: 'saturation', - params: [ - { - name: 'color', - description: - '

p5.Color object, color components,\n or CSS color

\n', - type: 'p5.Color|Number[]|String' - } - ], - return: { - description: 'the saturation value', - type: 'Number' - }, - example: [ - "\n
\n\nnoStroke();\ncolorMode(HSB, 255);\nlet c = color(0, 126, 255);\nfill(c);\nrect(15, 20, 35, 60);\nlet value = saturation(c); // Sets 'value' to 126\nfill(value);\nrect(50, 20, 35, 60);\n\n
" - ], - alt: 'deep pink rect on left and grey rect on right, both 35x60.', - class: 'p5', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/p5.Color.js', - line: 52, - description: - '

This function returns the color formatted as a string. This can be useful\nfor debugging, or for using p5.js with other libraries.

\n', - itemtype: 'method', - name: 'toString', - params: [ - { - name: 'format', - description: - '

How the color string will be formatted.\nLeaving this empty formats the string as rgba(r, g, b, a).\n'#rgb' '#rgba' '#rrggbb' and '#rrggbbaa' format as hexadecimal color codes.\n'rgb' 'hsb' and 'hsl' return the color formatted in the specified color mode.\n'rgba' 'hsba' and 'hsla' are the same as above but with alpha channels.\n'rgb%' 'hsb%' 'hsl%' 'rgba%' 'hsba%' and 'hsla%' format as percentages.

\n', - type: 'String', - optional: true - } - ], - return: { - description: 'the formatted string', - type: 'String' - }, - example: [ - "\n
\n\nlet myColor;\nfunction setup() {\n createCanvas(200, 200);\n stroke(255);\n myColor = color(100, 100, 250);\n fill(myColor);\n}\n\nfunction draw() {\n rotate(HALF_PI);\n text(myColor.toString(), 0, -5);\n text(myColor.toString('#rrggbb'), 0, -30);\n text(myColor.toString('rgba%'), 0, -55);\n}\n\n
" - ], - alt: 'canvas with text representation of color', - class: 'p5.Color', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/p5.Color.js', - line: 253, - itemtype: 'method', - name: 'setRed', - params: [ - { - name: 'red', - description: '

the new red value

\n', - type: 'Number' - } - ], - example: [ - '\n
\n\nlet backgroundColor;\n\nfunction setup() {\n backgroundColor = color(100, 50, 150);\n}\n\nfunction draw() {\n backgroundColor.setRed(128 + 128 * sin(millis() / 1000));\n background(backgroundColor);\n}\n\n
' - ], - alt: 'canvas with gradually changing background color', - class: 'p5.Color', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/p5.Color.js', - line: 280, - itemtype: 'method', - name: 'setGreen', - params: [ - { - name: 'green', - description: '

the new green value

\n', - type: 'Number' - } - ], - example: [ - '\n
\n\nlet backgroundColor;\n\nfunction setup() {\n backgroundColor = color(100, 50, 150);\n}\n\nfunction draw() {\n backgroundColor.setGreen(128 + 128 * sin(millis() / 1000));\n background(backgroundColor);\n}\n\n
' - ], - alt: 'canvas with gradually changing background color', - class: 'p5.Color', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/p5.Color.js', - line: 307, - itemtype: 'method', - name: 'setBlue', - params: [ - { - name: 'blue', - description: '

the new blue value

\n', - type: 'Number' - } - ], - example: [ - '\n
\n\nlet backgroundColor;\n\nfunction setup() {\n backgroundColor = color(100, 50, 150);\n}\n\nfunction draw() {\n backgroundColor.setBlue(128 + 128 * sin(millis() / 1000));\n background(backgroundColor);\n}\n\n
' - ], - alt: 'canvas with gradually changing background color', - class: 'p5.Color', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/p5.Color.js', - line: 334, - itemtype: 'method', - name: 'setAlpha', - params: [ - { - name: 'alpha', - description: '

the new alpha value

\n', - type: 'Number' - } - ], - example: [ - '\n
\n\nlet squareColor;\n\nfunction setup() {\n ellipseMode(CORNERS);\n strokeWeight(4);\n squareColor = color(100, 50, 150);\n}\n\nfunction draw() {\n background(255);\n\n noFill();\n stroke(0);\n ellipse(10, 10, width - 10, height - 10);\n\n squareColor.setAlpha(128 + 128 * sin(millis() / 1000));\n fill(squareColor);\n noStroke();\n rect(13, 13, width - 26, height - 26);\n}\n\n
' - ], - alt: 'circle behind a square with gradually changing opacity', - class: 'p5.Color', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/p5.Color.js', - line: 415, - description: - '

Hue is the same in HSB and HSL, but the maximum value may be different.\nThis function will return the HSB-normalized saturation when supplied with\nan HSB color object, but will default to the HSL-normalized saturation\notherwise.

\n', - class: 'p5.Color', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/p5.Color.js', - line: 446, - description: - '

Saturation is scaled differently in HSB and HSL. This function will return\nthe HSB saturation when supplied with an HSB color object, but will default\nto the HSL saturation otherwise.

\n', - class: 'p5.Color', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/p5.Color.js', - line: 465, - description: '

CSS named colors.

\n', - class: 'p5.Color', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/p5.Color.js', - line: 618, - description: - '

These regular expressions are used to build up the patterns for matching\nviable CSS color strings: fragmenting the regexes in this way increases the\nlegibility and comprehensibility of the code.

\n

Note that RGB values of .9 are not parsed by IE, but are supported here for\ncolor string consistency.

\n', - class: 'p5.Color', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/p5.Color.js', - line: 631, - description: - '

Full color string patterns. The capture groups are necessary.

\n', - class: 'p5.Color', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/p5.Color.js', - line: 994, - description: - '

For HSB and HSL, interpret the gray level as a brightness/lightness\nvalue (they are equivalent when chroma is zero). For RGB, normalize the\ngray level according to the blue maximum.

\n', - class: 'p5.Color', - module: 'Color', - submodule: 'Creating & Reading' - }, - { - file: 'src/color/setting.js', - line: 15, - description: - '

The background() function sets the color used for the background of the\np5.js canvas. The default background is transparent. This function is\ntypically used within draw() to clear the display window at the beginning\nof each frame, but it can be used inside setup() to set the background on\nthe first frame of animation or if the background need only be set once.\n

\nThe color is either specified in terms of the RGB, HSB, or HSL color\ndepending on the current colorMode. (The default color space is RGB, with\neach value in the range from 0 to 255). The alpha range by default is also 0 to 255.\n

\nIf a single string argument is provided, RGB, RGBA and Hex CSS color strings\nand all named color strings are supported. In this case, an alpha number\nvalue as a second argument is not supported, the RGBA form should be used.\n

\nA p5.Color object can also be provided to set the background color.\n

\nA p5.Image can also be provided to set the background image.

\n', - itemtype: 'method', - name: 'background', - chainable: 1, - example: [ - "\n
\n\n// Grayscale integer value\nbackground(51);\n\n
\n\n
\n\n// R, G & B integer values\nbackground(255, 204, 0);\n\n
\n\n
\n\n// H, S & B integer values\ncolorMode(HSB);\nbackground(255, 204, 100);\n\n
\n\n
\n\n// Named SVG/CSS color string\nbackground('red');\n\n
\n\n
\n\n// three-digit hexadecimal RGB notation\nbackground('#fae');\n\n
\n\n
\n\n// six-digit hexadecimal RGB notation\nbackground('#222222');\n\n
\n\n
\n\n// integer RGB notation\nbackground('rgb(0,255,0)');\n\n
\n\n
\n\n// integer RGBA notation\nbackground('rgba(0,255,0, 0.25)');\n\n
\n\n
\n\n// percentage RGB notation\nbackground('rgb(100%,0%,10%)');\n\n
\n\n
\n\n// percentage RGBA notation\nbackground('rgba(100%,0%,100%,0.5)');\n\n
\n\n
\n\n// p5 Color object\nbackground(color(0, 0, 255));\n\n
" - ], - alt: - 'canvas with darkest charcoal grey background.\ncanvas with yellow background.\ncanvas with royal blue background.\ncanvas with red background.\ncanvas with pink background.\ncanvas with black background.\ncanvas with bright green background.\ncanvas with soft green background.\ncanvas with red background.\ncanvas with light purple background.\ncanvas with blue background.', - class: 'p5', - module: 'Color', - submodule: 'Setting', - overloads: [ - { - line: 15, - params: [ - { - name: 'color', - description: - '

any value created by the color() function

\n', - type: 'p5.Color' - } - ], - chainable: 1 - }, - { - line: 131, - params: [ - { - name: 'colorstring', - description: - '

color string, possible formats include: integer\n rgb() or rgba(), percentage rgb() or rgba(),\n 3-digit hex, 6-digit hex

\n', - type: 'String' - }, - { - name: 'a', - description: - '

opacity of the background relative to current\n color range (default is 0-255)

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 141, - params: [ - { - name: 'gray', - description: '

specifies a value between white and black

\n', - type: 'Number' - }, - { - name: 'a', - description: '', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 148, - params: [ - { - name: 'v1', - description: - '

red or hue value (depending on the current color\n mode)

\n', - type: 'Number' - }, - { - name: 'v2', - description: - '

green or saturation value (depending on the current\n color mode)

\n', - type: 'Number' - }, - { - name: 'v3', - description: - '

blue or brightness value (depending on the current\n color mode)

\n', - type: 'Number' - }, - { - name: 'a', - description: '', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 160, - params: [ - { - name: 'values', - description: - '

an array containing the red, green, blue\n and alpha components of the color

\n', - type: 'Number[]' - } - ], - chainable: 1 - }, - { - line: 167, - params: [ - { - name: 'image', - description: - '

image created with loadImage() or createImage(),\n to set as background\n (must be same size as the sketch window)

\n', - type: 'p5.Image' - }, - { - name: 'a', - description: '', - type: 'Number', - optional: true - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/color/setting.js', - line: 181, - description: - '

Clears the pixels within a buffer. This function only clears the canvas.\nIt will not clear objects created by createX() methods such as\ncreateVideo() or createDiv().\nUnlike the main graphics context, pixels in additional graphics areas created\nwith createGraphics() can be entirely\nor partially transparent. This function clears everything to make all of\nthe pixels 100% transparent.

\n', - itemtype: 'method', - name: 'clear', - chainable: 1, - example: [ - '\n
\n\n// Clear the screen on mouse press.\nfunction setup() {\n createCanvas(100, 100);\n}\n\nfunction draw() {\n ellipse(mouseX, mouseY, 20, 20);\n}\n\nfunction mousePressed() {\n clear();\n}\n\n
' - ], - alt: - '20x20 white ellipses are continually drawn at mouse x and y coordinates.', - class: 'p5', - module: 'Color', - submodule: 'Setting' - }, - { - file: 'src/color/setting.js', - line: 220, - description: - '

colorMode() changes the way p5.js interprets color data. By default, the\nparameters for fill(), stroke(), background(), and color() are defined by\nvalues between 0 and 255 using the RGB color model. This is equivalent to\nsetting colorMode(RGB, 255). Setting colorMode(HSB) lets you use the HSB\nsystem instead. By default, this is colorMode(HSB, 360, 100, 100, 1). You\ncan also use HSL.\n

\nNote: existing color objects remember the mode that they were created in,\nso you can change modes as you like without affecting their appearance.

\n', - itemtype: 'method', - name: 'colorMode', - chainable: 1, - example: [ - '\n
\n\nnoStroke();\ncolorMode(RGB, 100);\nfor (let i = 0; i < 100; i++) {\n for (let j = 0; j < 100; j++) {\n stroke(i, j, 0);\n point(i, j);\n }\n}\n\n
\n\n
\n\nnoStroke();\ncolorMode(HSB, 100);\nfor (let i = 0; i < 100; i++) {\n for (let j = 0; j < 100; j++) {\n stroke(i, j, 100);\n point(i, j);\n }\n}\n\n
\n\n
\n\ncolorMode(RGB, 255);\nlet c = color(127, 255, 0);\n\ncolorMode(RGB, 1);\nlet myColor = c._getRed();\ntext(myColor, 10, 10, 80, 80);\n\n
\n\n
\n\nnoFill();\ncolorMode(RGB, 255, 255, 255, 1);\nbackground(255);\n\nstrokeWeight(4);\nstroke(255, 0, 10, 0.3);\nellipse(40, 40, 50, 50);\nellipse(50, 50, 40, 40);\n\n
' - ], - alt: - 'Green to red gradient from bottom L to top R. shading originates from top left.\nRainbow gradient from left to right. Brightness increasing to white at top.\nunknown image.\n50x50 ellipse at middle L & 40x40 ellipse at center. Translucent pink outlines.', - class: 'p5', - module: 'Color', - submodule: 'Setting', - overloads: [ - { - line: 220, - params: [ - { - name: 'mode', - description: - '

either RGB, HSB or HSL, corresponding to\n Red/Green/Blue and Hue/Saturation/Brightness\n (or Lightness)

\n', - type: 'Constant' - }, - { - name: 'max', - description: '

range for all values

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 297, - params: [ - { - name: 'mode', - description: '', - type: 'Constant' - }, - { - name: 'max1', - description: - '

range for the red or hue depending on the\n current color mode

\n', - type: 'Number' - }, - { - name: 'max2', - description: - '

range for the green or saturation depending\n on the current color mode

\n', - type: 'Number' - }, - { - name: 'max3', - description: - '

range for the blue or brightness/lightness\n depending on the current color mode

\n', - type: 'Number' - }, - { - name: 'maxA', - description: '

range for the alpha

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/color/setting.js', - line: 341, - description: - '

Sets the color used to fill shapes. For example, if you run\nfill(204, 102, 0), all shapes drawn after the fill command will be filled with the color orange. This\ncolor is either specified in terms of the RGB or HSB color depending on\nthe current colorMode(). (The default color space is RGB, with each value\nin the range from 0 to 255). The alpha range by default is also 0 to 255.\n

\nIf a single string argument is provided, RGB, RGBA and Hex CSS color strings\nand all named color strings are supported. In this case, an alpha number\nvalue as a second argument is not supported, the RGBA form should be used.\n

\nA p5 Color object can also be provided to set the fill color.

\n', - itemtype: 'method', - name: 'fill', - chainable: 1, - example: [ - "\n
\n\n// Grayscale integer value\nfill(51);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// R, G & B integer values\nfill(255, 204, 0);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// H, S & B integer values\ncolorMode(HSB);\nfill(255, 204, 100);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// Named SVG/CSS color string\nfill('red');\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// three-digit hexadecimal RGB notation\nfill('#fae');\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// six-digit hexadecimal RGB notation\nfill('#222222');\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// integer RGB notation\nfill('rgb(0,255,0)');\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// integer RGBA notation\nfill('rgba(0,255,0, 0.25)');\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// percentage RGB notation\nfill('rgb(100%,0%,10%)');\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// percentage RGBA notation\nfill('rgba(100%,0%,100%,0.5)');\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// p5 Color object\nfill(color(0, 0, 255));\nrect(20, 20, 60, 60);\n\n
" - ], - alt: - '60x60 dark charcoal grey rect with black outline in center of canvas.\n60x60 yellow rect with black outline in center of canvas.\n60x60 royal blue rect with black outline in center of canvas.\n60x60 red rect with black outline in center of canvas.\n60x60 pink rect with black outline in center of canvas.\n60x60 black rect with black outline in center of canvas.\n60x60 light green rect with black outline in center of canvas.\n60x60 soft green rect with black outline in center of canvas.\n60x60 red rect with black outline in center of canvas.\n60x60 dark fuchsia rect with black outline in center of canvas.\n60x60 blue rect with black outline in center of canvas.', - class: 'p5', - module: 'Color', - submodule: 'Setting', - overloads: [ - { - line: 341, - params: [ - { - name: 'v1', - description: - '

red or hue value relative to\n the current color range

\n', - type: 'Number' - }, - { - name: 'v2', - description: - '

green or saturation value\n relative to the current color range

\n', - type: 'Number' - }, - { - name: 'v3', - description: - '

blue or brightness value\n relative to the current color range

\n', - type: 'Number' - }, - { - name: 'alpha', - description: '', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 466, - params: [ - { - name: 'value', - description: '

a color string

\n', - type: 'String' - } - ], - chainable: 1 - }, - { - line: 472, - params: [ - { - name: 'gray', - description: '

a gray value

\n', - type: 'Number' - }, - { - name: 'alpha', - description: '', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 479, - params: [ - { - name: 'values', - description: - '

an array containing the red,green,blue &\n and alpha components of the color

\n', - type: 'Number[]' - } - ], - chainable: 1 - }, - { - line: 486, - params: [ - { - name: 'color', - description: '

the fill color

\n', - type: 'p5.Color' - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/color/setting.js', - line: 498, - description: - '

Disables filling geometry. If both noStroke() and noFill() are called,\nnothing will be drawn to the screen.

\n', - itemtype: 'method', - name: 'noFill', - chainable: 1, - example: [ - "\n
\n\nrect(15, 10, 55, 55);\nnoFill();\nrect(20, 20, 60, 60);\n\n
\n\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(0);\n noFill();\n stroke(100, 100, 240);\n rotateX(frameCount * 0.01);\n rotateY(frameCount * 0.01);\n box(45, 45, 45);\n}\n\n
" - ], - alt: - 'white rect top middle and noFill rect center. Both 60x60 with black outlines.\nblack canvas with purple cube wireframe spinning', - class: 'p5', - module: 'Color', - submodule: 'Setting' - }, - { - file: 'src/color/setting.js', - line: 539, - description: - '

Disables drawing the stroke (outline). If both noStroke() and noFill()\nare called, nothing will be drawn to the screen.

\n', - itemtype: 'method', - name: 'noStroke', - chainable: 1, - example: [ - "\n
\n\nnoStroke();\nrect(20, 20, 60, 60);\n\n
\n\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(0);\n noStroke();\n fill(240, 150, 150);\n rotateX(frameCount * 0.01);\n rotateY(frameCount * 0.01);\n box(45, 45, 45);\n}\n\n
" - ], - alt: - '60x60 white rect at center. no outline.\nblack canvas with pink cube spinning', - class: 'p5', - module: 'Color', - submodule: 'Setting' - }, - { - file: 'src/color/setting.js', - line: 579, - description: - '

Sets the color used to draw lines and borders around shapes. This color\nis either specified in terms of the RGB or HSB color depending on the\ncurrent colorMode() (the default color space is RGB, with each value in\nthe range from 0 to 255). The alpha range by default is also 0 to 255.\n

\nIf a single string argument is provided, RGB, RGBA and Hex CSS color\nstrings and all named color strings are supported. In this case, an alpha\nnumber value as a second argument is not supported, the RGBA form should be\nused.\n

\nA p5 Color object can also be provided to set the stroke color.

\n', - itemtype: 'method', - name: 'stroke', - chainable: 1, - example: [ - "\n
\n\n// Grayscale integer value\nstrokeWeight(4);\nstroke(51);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// R, G & B integer values\nstroke(255, 204, 0);\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// H, S & B integer values\ncolorMode(HSB);\nstrokeWeight(4);\nstroke(255, 204, 100);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// Named SVG/CSS color string\nstroke('red');\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// three-digit hexadecimal RGB notation\nstroke('#fae');\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// six-digit hexadecimal RGB notation\nstroke('#222222');\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// integer RGB notation\nstroke('rgb(0,255,0)');\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// integer RGBA notation\nstroke('rgba(0,255,0,0.25)');\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// percentage RGB notation\nstroke('rgb(100%,0%,10%)');\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// percentage RGBA notation\nstroke('rgba(100%,0%,100%,0.5)');\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// p5 Color object\nstroke(color(0, 0, 255));\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
" - ], - alt: - '60x60 white rect at center. Dark charcoal grey outline.\n60x60 white rect at center. Yellow outline.\n60x60 white rect at center. Royal blue outline.\n60x60 white rect at center. Red outline.\n60x60 white rect at center. Pink outline.\n60x60 white rect at center. Black outline.\n60x60 white rect at center. Bright green outline.\n60x60 white rect at center. Soft green outline.\n60x60 white rect at center. Red outline.\n60x60 white rect at center. Dark fuchsia outline.\n60x60 white rect at center. Blue outline.', - class: 'p5', - module: 'Color', - submodule: 'Setting', - overloads: [ - { - line: 579, - params: [ - { - name: 'v1', - description: - '

red or hue value relative to\n the current color range

\n', - type: 'Number' - }, - { - name: 'v2', - description: - '

green or saturation value\n relative to the current color range

\n', - type: 'Number' - }, - { - name: 'v3', - description: - '

blue or brightness value\n relative to the current color range

\n', - type: 'Number' - }, - { - name: 'alpha', - description: '', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 718, - params: [ - { - name: 'value', - description: '

a color string

\n', - type: 'String' - } - ], - chainable: 1 - }, - { - line: 724, - params: [ - { - name: 'gray', - description: '

a gray value

\n', - type: 'Number' - }, - { - name: 'alpha', - description: '', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 731, - params: [ - { - name: 'values', - description: - '

an array containing the red,green,blue &\n and alpha components of the color

\n', - type: 'Number[]' - } - ], - chainable: 1 - }, - { - line: 738, - params: [ - { - name: 'color', - description: '

the stroke color

\n', - type: 'p5.Color' - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/core/shape/2d_primitives.js', - line: 16, - description: - '

This function does 3 things:

\n
    \n
  1. Bounds the desired start/stop angles for an arc (in radians) so that:

    \n
    0 <= start < TWO_PI ;    start <= stop < start + TWO_PI\n

    This means that the arc rendering functions don't have to be concerned\nwith what happens if stop is smaller than start, or if the arc 'goes\nround more than once', etc.: they can just start at start and increase\nuntil stop and the correct arc will be drawn.

    \n
  2. \n
  3. Optionally adjusts the angles within each quadrant to counter the naive\nscaling of the underlying ellipse up from the unit circle. Without\nthis, the angles become arbitrary when width != height: 45 degrees\nmight be drawn at 5 degrees on a 'wide' ellipse, or at 85 degrees on\na 'tall' ellipse.

    \n
  4. \n
  5. Flags up when start and stop correspond to the same place on the\nunderlying ellipse. This is useful if you want to do something special\nthere (like rendering a whole ellipse instead).

    \n
  6. \n
\n', - class: 'p5', - module: 'Shape', - submodule: '2D Primitives' - }, - { - file: 'src/core/shape/2d_primitives.js', - line: 102, - description: - '

Draw an arc to the screen. If called with only x, y, w, h, start, and\nstop, the arc will be drawn and filled as an open pie segment. If a mode parameter is provided, the arc\nwill be filled like an open semi-circle (OPEN) , a closed semi-circle (CHORD), or as a closed pie segment (PIE). The\norigin may be changed with the ellipseMode() function.

\nThe arc is always drawn clockwise from wherever start falls to wherever stop falls on the ellipse.\nAdding or subtracting TWO_PI to either angle does not change where they fall.\nIf both start and stop fall at the same place, a full ellipse will be drawn. Be aware that the the\ny-axis increases in the downward direction therefore the values of PI is counter clockwise.

\n', - itemtype: 'method', - name: 'arc', - params: [ - { - name: 'x', - description: '

x-coordinate of the arc's ellipse

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y-coordinate of the arc's ellipse

\n', - type: 'Number' - }, - { - name: 'w', - description: '

width of the arc's ellipse by default

\n', - type: 'Number' - }, - { - name: 'h', - description: '

height of the arc's ellipse by default

\n', - type: 'Number' - }, - { - name: 'start', - description: '

angle to start the arc, specified in radians

\n', - type: 'Number' - }, - { - name: 'stop', - description: '

angle to stop the arc, specified in radians

\n', - type: 'Number' - }, - { - name: 'mode', - description: - '

optional parameter to determine the way of drawing\n the arc. either CHORD, PIE or OPEN

\n', - type: 'Constant', - optional: true - }, - { - name: 'detail', - description: - '

optional parameter for WebGL mode only. This is to\n specify the number of vertices that makes up the\n perimeter of the arc. Default value is 25.

\n', - type: 'Number', - optional: true - } - ], - chainable: 1, - example: [ - '\n
\n\narc(50, 55, 50, 50, 0, HALF_PI);\nnoFill();\narc(50, 55, 60, 60, HALF_PI, PI);\narc(50, 55, 70, 70, PI, PI + QUARTER_PI);\narc(50, 55, 80, 80, PI + QUARTER_PI, TWO_PI);\n\n
\n\n
\n\narc(50, 50, 80, 80, 0, PI + QUARTER_PI);\n\n
\n\n
\n\narc(50, 50, 80, 80, 0, PI + QUARTER_PI, OPEN);\n\n
\n\n
\n\narc(50, 50, 80, 80, 0, PI + QUARTER_PI, CHORD);\n\n
\n\n
\n\narc(50, 50, 80, 80, 0, PI + QUARTER_PI, PIE);\n\n
' - ], - alt: - 'shattered outline of an ellipse with a quarter of a white circle bottom-right.\nwhite ellipse with top right quarter missing.\nwhite ellipse with black outline with top right missing.\nwhite ellipse with top right missing with black outline around shape.\nwhite ellipse with top right quarter missing with black outline around the shape.', - class: 'p5', - module: 'Shape', - submodule: '2D Primitives' - }, - { - file: 'src/core/shape/2d_primitives.js', - line: 210, - description: - '

Draws an ellipse (oval) to the screen. An ellipse with equal width and\nheight is a circle. By default, the first two parameters set the location,\nand the third and fourth parameters set the shape's width and height. If\nno height is specified, the value of width is used for both the width and\nheight. If a negative height or width is specified, the absolute value is taken.\nThe origin may be changed with the ellipseMode() function.

\n', - itemtype: 'method', - name: 'ellipse', - chainable: 1, - example: ['\n
\n\nellipse(56, 46, 55, 55);\n\n
'], - alt: - 'white ellipse with black outline in middle-right of canvas that is 55x55.', - class: 'p5', - module: 'Shape', - submodule: '2D Primitives', - overloads: [ - { - line: 210, - params: [ - { - name: 'x', - description: '

x-coordinate of the ellipse.

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y-coordinate of the ellipse.

\n', - type: 'Number' - }, - { - name: 'w', - description: '

width of the ellipse.

\n', - type: 'Number' - }, - { - name: 'h', - description: '

height of the ellipse.

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 235, - params: [ - { - name: 'x', - description: '', - type: 'Number' - }, - { - name: 'y', - description: '', - type: 'Number' - }, - { - name: 'w', - description: '', - type: 'Number' - }, - { - name: 'h', - description: '', - type: 'Number' - }, - { - name: 'detail', - description: - '

number of radial sectors to draw (for WebGL mode)

\n', - type: 'Integer' - } - ] - } - ] - }, - { - file: 'src/core/shape/2d_primitives.js', - line: 270, - description: - '

Draws a circle to the screen. A circle is a simple closed shape.\nIt is the set of all points in a plane that are at a given distance from a given point, the centre.\nThis function is a special case of the ellipse() function, where the width and height of the ellipse are the same.\nHeight and width of the ellipse correspond to the diameter of the circle.\nBy default, the first two parameters set the location of the centre of the circle, the third sets the diameter of the circle.

\n', - itemtype: 'method', - name: 'circle', - params: [ - { - name: 'x', - description: '

x-coordinate of the centre of the circle.

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y-coordinate of the centre of the circle.

\n', - type: 'Number' - }, - { - name: 'd', - description: '

diameter of the circle.

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - '\n
\n\n// Draw a circle at location (30, 30) with a diameter of 20.\ncircle(30, 30, 20);\n\n
' - ], - alt: 'white circle with black outline in mid of canvas that is 55x55.', - class: 'p5', - module: 'Shape', - submodule: '2D Primitives' - }, - { - file: 'src/core/shape/2d_primitives.js', - line: 300, - description: - '

Draws a line (a direct path between two points) to the screen. The version\nof line() with four parameters draws the line in 2D. To color a line, use\nthe stroke() function. A line cannot be filled, therefore the fill()\nfunction will not affect the color of a line. 2D lines are drawn with a\nwidth of one pixel by default, but this can be changed with the\nstrokeWeight() function.

\n', - itemtype: 'method', - name: 'line', - chainable: 1, - example: [ - '\n
\n\nline(30, 20, 85, 75);\n\n
\n\n
\n\nline(30, 20, 85, 20);\nstroke(126);\nline(85, 20, 85, 75);\nstroke(255);\nline(85, 75, 30, 75);\n\n
' - ], - alt: - 'line 78 pixels long running from mid-top to bottom-right of canvas.\n3 lines of various stroke sizes. Form top, bottom and right sides of a square.', - class: 'p5', - module: 'Shape', - submodule: '2D Primitives', - overloads: [ - { - line: 300, - params: [ - { - name: 'x1', - description: '

the x-coordinate of the first point

\n', - type: 'Number' - }, - { - name: 'y1', - description: '

the y-coordinate of the first point

\n', - type: 'Number' - }, - { - name: 'x2', - description: '

the x-coordinate of the second point

\n', - type: 'Number' - }, - { - name: 'y2', - description: '

the y-coordinate of the second point

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 336, - params: [ - { - name: 'x1', - description: '', - type: 'Number' - }, - { - name: 'y1', - description: '', - type: 'Number' - }, - { - name: 'z1', - description: '

the z-coordinate of the first point

\n', - type: 'Number' - }, - { - name: 'x2', - description: '', - type: 'Number' - }, - { - name: 'y2', - description: '', - type: 'Number' - }, - { - name: 'z2', - description: '

the z-coordinate of the second point

\n', - type: 'Number' - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/core/shape/2d_primitives.js', - line: 356, - description: - '

Draws a point, a coordinate in space at the dimension of one pixel.\nThe first parameter is the horizontal value for the point, the second\nvalue is the vertical value for the point. The color of the point is\ndetermined by the current stroke.

\n', - itemtype: 'method', - name: 'point', - params: [ - { - name: 'x', - description: '

the x-coordinate

\n', - type: 'Number' - }, - { - name: 'y', - description: '

the y-coordinate

\n', - type: 'Number' - }, - { - name: 'z', - description: '

the z-coordinate (for WebGL mode)

\n', - type: 'Number', - optional: true - } - ], - chainable: 1, - example: [ - '\n
\n\npoint(30, 20);\npoint(85, 20);\npoint(85, 75);\npoint(30, 75);\n\n
' - ], - alt: '4 points centered in the middle-right of the canvas.', - class: 'p5', - module: 'Shape', - submodule: '2D Primitives' - }, - { - file: 'src/core/shape/2d_primitives.js', - line: 391, - description: - '

Draw a quad. A quad is a quadrilateral, a four sided polygon. It is\nsimilar to a rectangle, but the angles between its edges are not\nconstrained to ninety degrees. The first pair of parameters (x1,y1)\nsets the first vertex and the subsequent pairs should proceed\nclockwise or counter-clockwise around the defined shape.\nz-arguments only work when quad() is used in WEBGL mode.

\n', - itemtype: 'method', - name: 'quad', - chainable: 1, - example: [ - '\n
\n\nquad(38, 31, 86, 20, 69, 63, 30, 76);\n\n
' - ], - alt: - 'irregular white quadrilateral shape with black outline mid-right of canvas.', - class: 'p5', - module: 'Shape', - submodule: '2D Primitives', - overloads: [ - { - line: 391, - params: [ - { - name: 'x1', - description: '

the x-coordinate of the first point

\n', - type: 'Number' - }, - { - name: 'y1', - description: '

the y-coordinate of the first point

\n', - type: 'Number' - }, - { - name: 'x2', - description: '

the x-coordinate of the second point

\n', - type: 'Number' - }, - { - name: 'y2', - description: '

the y-coordinate of the second point

\n', - type: 'Number' - }, - { - name: 'x3', - description: '

the x-coordinate of the third point

\n', - type: 'Number' - }, - { - name: 'y3', - description: '

the y-coordinate of the third point

\n', - type: 'Number' - }, - { - name: 'x4', - description: '

the x-coordinate of the fourth point

\n', - type: 'Number' - }, - { - name: 'y4', - description: '

the y-coordinate of the fourth point

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 421, - params: [ - { - name: 'x1', - description: '', - type: 'Number' - }, - { - name: 'y1', - description: '', - type: 'Number' - }, - { - name: 'z1', - description: '

the z-coordinate of the first point

\n', - type: 'Number' - }, - { - name: 'x2', - description: '', - type: 'Number' - }, - { - name: 'y2', - description: '', - type: 'Number' - }, - { - name: 'z2', - description: '

the z-coordinate of the second point

\n', - type: 'Number' - }, - { - name: 'x3', - description: '', - type: 'Number' - }, - { - name: 'y3', - description: '', - type: 'Number' - }, - { - name: 'z3', - description: '

the z-coordinate of the third point

\n', - type: 'Number' - }, - { - name: 'x4', - description: '', - type: 'Number' - }, - { - name: 'y4', - description: '', - type: 'Number' - }, - { - name: 'z4', - description: '

the z-coordinate of the fourth point

\n', - type: 'Number' - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/core/shape/2d_primitives.js', - line: 458, - description: - '

Draws a rectangle to the screen. A rectangle is a four-sided shape with\nevery angle at ninety degrees. By default, the first two parameters set\nthe location of the upper-left corner, the third sets the width, and the\nfourth sets the height. The way these parameters are interpreted, however,\nmay be changed with the rectMode() function.\n

\nThe fifth, sixth, seventh and eighth parameters, if specified,\ndetermine corner radius for the top-left, top-right, lower-right and\nlower-left corners, respectively. An omitted corner radius parameter is set\nto the value of the previously specified radius value in the parameter list.

\n', - itemtype: 'method', - name: 'rect', - chainable: 1, - example: [ - '\n
\n\n// Draw a rectangle at location (30, 20) with a width and height of 55.\nrect(30, 20, 55, 55);\n\n
\n\n
\n\n// Draw a rectangle with rounded corners, each having a radius of 20.\nrect(30, 20, 55, 55, 20);\n\n
\n\n
\n\n// Draw a rectangle with rounded corners having the following radii:\n// top-left = 20, top-right = 15, bottom-right = 10, bottom-left = 5.\nrect(30, 20, 55, 55, 20, 15, 10, 5);\n\n
' - ], - alt: - '55x55 white rect with black outline in mid-right of canvas.\n55x55 white rect with black outline and rounded edges in mid-right of canvas.\n55x55 white rect with black outline and rounded edges of different radii.', - class: 'p5', - module: 'Shape', - submodule: '2D Primitives', - overloads: [ - { - line: 458, - params: [ - { - name: 'x', - description: '

x-coordinate of the rectangle.

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y-coordinate of the rectangle.

\n', - type: 'Number' - }, - { - name: 'w', - description: '

width of the rectangle.

\n', - type: 'Number' - }, - { - name: 'h', - description: '

height of the rectangle.

\n', - type: 'Number' - }, - { - name: 'tl', - description: '

optional radius of top-left corner.

\n', - type: 'Number', - optional: true - }, - { - name: 'tr', - description: '

optional radius of top-right corner.

\n', - type: 'Number', - optional: true - }, - { - name: 'br', - description: '

optional radius of bottom-right corner.

\n', - type: 'Number', - optional: true - }, - { - name: 'bl', - description: '

optional radius of bottom-left corner.

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 508, - params: [ - { - name: 'x', - description: '', - type: 'Number' - }, - { - name: 'y', - description: '', - type: 'Number' - }, - { - name: 'w', - description: '', - type: 'Number' - }, - { - name: 'h', - description: '', - type: 'Number' - }, - { - name: 'detailX', - description: - '

number of segments in the x-direction (for WebGL mode)

\n', - type: 'Integer', - optional: true - }, - { - name: 'detailY', - description: - '

number of segments in the y-direction (for WebGL mode)

\n', - type: 'Integer', - optional: true - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/core/shape/2d_primitives.js', - line: 541, - description: - '

Draws a square to the screen. A square is a four-sided shape with\nevery angle at ninety degrees, and equal side size.\nThis function is a special case of the rect() function, where the width and height are the same, and the parameter is called "s" for side size.\nBy default, the first two parameters set the location of the upper-left corner, the third sets the side size of the square.\nThe way these parameters are interpreted, however,\nmay be changed with the rectMode() function.\n

\nThe fourth, fifth, sixth and seventh parameters, if specified,\ndetermine corner radius for the top-left, top-right, lower-right and\nlower-left corners, respectively. An omitted corner radius parameter is set\nto the value of the previously specified radius value in the parameter list.

\n', - itemtype: 'method', - name: 'square', - params: [ - { - name: 'x', - description: '

x-coordinate of the square.

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y-coordinate of the square.

\n', - type: 'Number' - }, - { - name: 's', - description: '

side size of the square.

\n', - type: 'Number' - }, - { - name: 'tl', - description: '

optional radius of top-left corner.

\n', - type: 'Number', - optional: true - }, - { - name: 'tr', - description: '

optional radius of top-right corner.

\n', - type: 'Number', - optional: true - }, - { - name: 'br', - description: '

optional radius of bottom-right corner.

\n', - type: 'Number', - optional: true - }, - { - name: 'bl', - description: '

optional radius of bottom-left corner.

\n', - type: 'Number', - optional: true - } - ], - chainable: 1, - example: [ - '\n
\n\n// Draw a square at location (30, 20) with a side size of 55.\nsquare(30, 20, 55);\n\n
\n\n
\n\n// Draw a square with rounded corners, each having a radius of 20.\nsquare(30, 20, 55, 20);\n\n
\n\n
\n\n// Draw a square with rounded corners having the following radii:\n// top-left = 20, top-right = 15, bottom-right = 10, bottom-left = 5.\nsquare(30, 20, 55, 20, 15, 10, 5);\n\n
' - ], - alt: - '55x55 white square with black outline in mid-right of canvas.\n55x55 white square with black outline and rounded edges in mid-right of canvas.\n55x55 white square with black outline and rounded edges of different radii.', - class: 'p5', - module: 'Shape', - submodule: '2D Primitives' - }, - { - file: 'src/core/shape/2d_primitives.js', - line: 595, - description: - '

A triangle is a plane created by connecting three points. The first two\narguments specify the first point, the middle two arguments specify the\nsecond point, and the last two arguments specify the third point.

\n', - itemtype: 'method', - name: 'triangle', - params: [ - { - name: 'x1', - description: '

x-coordinate of the first point

\n', - type: 'Number' - }, - { - name: 'y1', - description: '

y-coordinate of the first point

\n', - type: 'Number' - }, - { - name: 'x2', - description: '

x-coordinate of the second point

\n', - type: 'Number' - }, - { - name: 'y2', - description: '

y-coordinate of the second point

\n', - type: 'Number' - }, - { - name: 'x3', - description: '

x-coordinate of the third point

\n', - type: 'Number' - }, - { - name: 'y3', - description: '

y-coordinate of the third point

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - '\n
\n\ntriangle(30, 75, 58, 20, 86, 75);\n\n
' - ], - alt: 'white triangle with black outline in mid-right of canvas.', - class: 'p5', - module: 'Shape', - submodule: '2D Primitives' - }, - { - file: 'src/core/shape/attributes.js', - line: 14, - description: - '

Modifies the location from which ellipses are drawn by changing the way\nin which parameters given to ellipse() are interpreted.\n

\nThe default mode is ellipseMode(CENTER), which interprets the first two\nparameters of ellipse() as the shape's center point, while the third and\nfourth parameters are its width and height.\n

\nellipseMode(RADIUS) also uses the first two parameters of ellipse() as\nthe shape's center point, but uses the third and fourth parameters to\nspecify half of the shapes's width and height.\n

\nellipseMode(CORNER) interprets the first two parameters of ellipse() as\nthe upper-left corner of the shape, while the third and fourth parameters\nare its width and height.\n

\nellipseMode(CORNERS) interprets the first two parameters of ellipse() as\nthe location of one corner of the ellipse's bounding box, and the third\nand fourth parameters as the location of the opposite corner.\n

\nThe parameter must be written in ALL CAPS because Javascript is a\ncase-sensitive language.

\n', - itemtype: 'method', - name: 'ellipseMode', - params: [ - { - name: 'mode', - description: '

either CENTER, RADIUS, CORNER, or CORNERS

\n', - type: 'Constant' - } - ], - chainable: 1, - example: [ - '\n
\n\nellipseMode(RADIUS); // Set ellipseMode to RADIUS\nfill(255); // Set fill to white\nellipse(50, 50, 30, 30); // Draw white ellipse using RADIUS mode\n\nellipseMode(CENTER); // Set ellipseMode to CENTER\nfill(100); // Set fill to gray\nellipse(50, 50, 30, 30); // Draw gray ellipse using CENTER mode\n\n
\n\n
\n\nellipseMode(CORNER); // Set ellipseMode is CORNER\nfill(255); // Set fill to white\nellipse(25, 25, 50, 50); // Draw white ellipse using CORNER mode\n\nellipseMode(CORNERS); // Set ellipseMode to CORNERS\nfill(100); // Set fill to gray\nellipse(25, 25, 50, 50); // Draw gray ellipse using CORNERS mode\n\n
' - ], - alt: - '60x60 white ellipse and 30x30 grey ellipse with black outlines at center.\n60x60 white ellipse @center and 30x30 grey ellipse top-right, black outlines.', - class: 'p5', - module: 'Shape', - submodule: 'Attributes' - }, - { - file: 'src/core/shape/attributes.js', - line: 83, - description: - '

Draws all geometry with jagged (aliased) edges. Note that smooth() is\nactive by default in 2D mode, so it is necessary to call noSmooth() to disable\nsmoothing of geometry, images, and fonts. In 3D mode, noSmooth() is enabled\nby default, so it is necessary to call smooth() if you would like\nsmooth (antialiased) edges on your geometry.

\n', - itemtype: 'method', - name: 'noSmooth', - chainable: 1, - example: [ - '\n
\n\nbackground(0);\nnoStroke();\nsmooth();\nellipse(30, 48, 36, 36);\nnoSmooth();\nellipse(70, 48, 36, 36);\n\n
' - ], - alt: - '2 pixelated 36x36 white ellipses to left & right of center, black background', - class: 'p5', - module: 'Shape', - submodule: 'Attributes' - }, - { - file: 'src/core/shape/attributes.js', - line: 116, - description: - '

Modifies the location from which rectangles are drawn by changing the way\nin which parameters given to rect() are interpreted.\n

\nThe default mode is rectMode(CORNER), which interprets the first two\nparameters of rect() as the upper-left corner of the shape, while the\nthird and fourth parameters are its width and height.\n

\nrectMode(CORNERS) interprets the first two parameters of rect() as the\nlocation of one corner, and the third and fourth parameters as the\nlocation of the opposite corner.\n

\nrectMode(CENTER) interprets the first two parameters of rect() as the\nshape's center point, while the third and fourth parameters are its\nwidth and height.\n

\nrectMode(RADIUS) also uses the first two parameters of rect() as the\nshape's center point, but uses the third and fourth parameters to specify\nhalf of the shapes's width and height.\n

\nThe parameter must be written in ALL CAPS because Javascript is a\ncase-sensitive language.

\n', - itemtype: 'method', - name: 'rectMode', - params: [ - { - name: 'mode', - description: '

either CORNER, CORNERS, CENTER, or RADIUS

\n', - type: 'Constant' - } - ], - chainable: 1, - example: [ - '\n
\n\nrectMode(CORNER); // Default rectMode is CORNER\nfill(255); // Set fill to white\nrect(25, 25, 50, 50); // Draw white rect using CORNER mode\n\nrectMode(CORNERS); // Set rectMode to CORNERS\nfill(100); // Set fill to gray\nrect(25, 25, 50, 50); // Draw gray rect using CORNERS mode\n\n
\n\n
\n\nrectMode(RADIUS); // Set rectMode to RADIUS\nfill(255); // Set fill to white\nrect(50, 50, 30, 30); // Draw white rect using RADIUS mode\n\nrectMode(CENTER); // Set rectMode to CENTER\nfill(100); // Set fill to gray\nrect(50, 50, 30, 30); // Draw gray rect using CENTER mode\n\n
' - ], - alt: - '50x50 white rect at center and 25x25 grey rect in the top left of the other.\n50x50 white rect at center and 25x25 grey rect in the center of the other.', - class: 'p5', - module: 'Shape', - submodule: 'Attributes' - }, - { - file: 'src/core/shape/attributes.js', - line: 185, - description: - '

Draws all geometry with smooth (anti-aliased) edges. smooth() will also\nimprove image quality of resized images. Note that smooth() is active by\ndefault in 2D mode; noSmooth() can be used to disable smoothing of geometry,\nimages, and fonts. In 3D mode, noSmooth() is enabled\nby default, so it is necessary to call smooth() if you would like\nsmooth (antialiased) edges on your geometry.

\n', - itemtype: 'method', - name: 'smooth', - chainable: 1, - example: [ - '\n
\n\nbackground(0);\nnoStroke();\nsmooth();\nellipse(30, 48, 36, 36);\nnoSmooth();\nellipse(70, 48, 36, 36);\n\n
' - ], - alt: - '2 pixelated 36x36 white ellipses one left one right of center. On black.', - class: 'p5', - module: 'Shape', - submodule: 'Attributes' - }, - { - file: 'src/core/shape/attributes.js', - line: 219, - description: - '

Sets the style for rendering line endings. These ends are either squared,\nextended, or rounded, each of which specified with the corresponding\nparameters: SQUARE, PROJECT, and ROUND. The default cap is ROUND.

\n', - itemtype: 'method', - name: 'strokeCap', - params: [ - { - name: 'cap', - description: '

either SQUARE, PROJECT, or ROUND

\n', - type: 'Constant' - } - ], - chainable: 1, - example: [ - '\n
\n\nstrokeWeight(12.0);\nstrokeCap(ROUND);\nline(20, 30, 80, 30);\nstrokeCap(SQUARE);\nline(20, 50, 80, 50);\nstrokeCap(PROJECT);\nline(20, 70, 80, 70);\n\n
' - ], - alt: - '3 lines. Top line: rounded ends, mid: squared, bottom:longer squared ends.', - class: 'p5', - module: 'Shape', - submodule: 'Attributes' - }, - { - file: 'src/core/shape/attributes.js', - line: 256, - description: - '

Sets the style of the joints which connect line segments. These joints\nare either mitered, beveled, or rounded and specified with the\ncorresponding parameters MITER, BEVEL, and ROUND. The default joint is\nMITER.

\n', - itemtype: 'method', - name: 'strokeJoin', - params: [ - { - name: 'join', - description: '

either MITER, BEVEL, ROUND

\n', - type: 'Constant' - } - ], - chainable: 1, - example: [ - '\n
\n\nnoFill();\nstrokeWeight(10.0);\nstrokeJoin(MITER);\nbeginShape();\nvertex(35, 20);\nvertex(65, 50);\nvertex(35, 80);\nendShape();\n\n
\n\n
\n\nnoFill();\nstrokeWeight(10.0);\nstrokeJoin(BEVEL);\nbeginShape();\nvertex(35, 20);\nvertex(65, 50);\nvertex(35, 80);\nendShape();\n\n
\n\n
\n\nnoFill();\nstrokeWeight(10.0);\nstrokeJoin(ROUND);\nbeginShape();\nvertex(35, 20);\nvertex(65, 50);\nvertex(35, 80);\nendShape();\n\n
' - ], - alt: - 'Right-facing arrowhead shape with pointed tip in center of canvas.\nRight-facing arrowhead shape with flat tip in center of canvas.\nRight-facing arrowhead shape with rounded tip in center of canvas.', - class: 'p5', - module: 'Shape', - submodule: 'Attributes' - }, - { - file: 'src/core/shape/attributes.js', - line: 323, - description: - '

Sets the width of the stroke used for lines, points, and the border\naround shapes. All widths are set in units of pixels.

\n', - itemtype: 'method', - name: 'strokeWeight', - params: [ - { - name: 'weight', - description: '

the weight (in pixels) of the stroke

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - '\n
\n\nstrokeWeight(1); // Default\nline(20, 20, 80, 20);\nstrokeWeight(4); // Thicker\nline(20, 40, 80, 40);\nstrokeWeight(10); // Beastly\nline(20, 70, 80, 70);\n\n
' - ], - alt: '3 horizontal black lines. Top line: thin, mid: medium, bottom:thick.', - class: 'p5', - module: 'Shape', - submodule: 'Attributes' - }, - { - file: 'src/core/shape/curves.js', - line: 13, - description: - '

Draws a cubic Bezier curve on the screen. These curves are defined by a\nseries of anchor and control points. The first two parameters specify\nthe first anchor point and the last two parameters specify the other\nanchor point, which become the first and last points on the curve. The\nmiddle parameters specify the two control points which define the shape\nof the curve. Approximately speaking, control points "pull" the curve\ntowards them.

Bezier curves were developed by French\nautomotive engineer Pierre Bezier, and are commonly used in computer\ngraphics to define gently sloping curves. See also curve().

\n', - itemtype: 'method', - name: 'bezier', - chainable: 1, - example: [ - '\n
\n\nnoFill();\nstroke(255, 102, 0);\nline(85, 20, 10, 10);\nline(90, 90, 15, 80);\nstroke(0, 0, 0);\nbezier(85, 20, 10, 10, 90, 90, 15, 80);\n\n
\n\n
\n\nbackground(0, 0, 0);\nnoFill();\nstroke(255);\nbezier(250, 250, 0, 100, 100, 0, 100, 0, 0, 0, 100, 0);\n\n
' - ], - alt: - 'stretched black s-shape in center with orange lines extending from end points.\nstretched black s-shape with 10 5x5 white ellipses along the shape.\nstretched black s-shape with 7 5x5 ellipses and orange lines along the shape.\nstretched black s-shape with 17 small orange lines extending from under shape.\nhorseshoe shape with orange ends facing left and black curved center.\nhorseshoe shape with orange ends facing left and black curved center.\nLine shaped like right-facing arrow,points move with mouse-x and warp shape.\nhorizontal line that hooks downward on the right and 13 5x5 ellipses along it.\nright curving line mid-right of canvas with 7 short lines radiating from it.', - class: 'p5', - module: 'Shape', - submodule: 'Curves', - overloads: [ - { - line: 13, - params: [ - { - name: 'x1', - description: '

x-coordinate for the first anchor point

\n', - type: 'Number' - }, - { - name: 'y1', - description: '

y-coordinate for the first anchor point

\n', - type: 'Number' - }, - { - name: 'x2', - description: '

x-coordinate for the first control point

\n', - type: 'Number' - }, - { - name: 'y2', - description: '

y-coordinate for the first control point

\n', - type: 'Number' - }, - { - name: 'x3', - description: '

x-coordinate for the second control point

\n', - type: 'Number' - }, - { - name: 'y3', - description: '

y-coordinate for the second control point

\n', - type: 'Number' - }, - { - name: 'x4', - description: '

x-coordinate for the second anchor point

\n', - type: 'Number' - }, - { - name: 'y4', - description: '

y-coordinate for the second anchor point

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 66, - params: [ - { - name: 'x1', - description: '', - type: 'Number' - }, - { - name: 'y1', - description: '', - type: 'Number' - }, - { - name: 'z1', - description: '

z-coordinate for the first anchor point

\n', - type: 'Number' - }, - { - name: 'x2', - description: '', - type: 'Number' - }, - { - name: 'y2', - description: '', - type: 'Number' - }, - { - name: 'z2', - description: '

z-coordinate for the first control point

\n', - type: 'Number' - }, - { - name: 'x3', - description: '', - type: 'Number' - }, - { - name: 'y3', - description: '', - type: 'Number' - }, - { - name: 'z3', - description: '

z-coordinate for the second control point

\n', - type: 'Number' - }, - { - name: 'x4', - description: '', - type: 'Number' - }, - { - name: 'y4', - description: '', - type: 'Number' - }, - { - name: 'z4', - description: '

z-coordinate for the second anchor point

\n', - type: 'Number' - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/core/shape/curves.js', - line: 96, - description: - '

Sets the resolution at which Beziers display.

\n

The default value is 20.

\n

This function is only useful when using the WEBGL renderer\nas the default canvas renderer does not use this information.

\n', - itemtype: 'method', - name: 'bezierDetail', - params: [ - { - name: 'detail', - description: '

resolution of the curves

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n noFill();\n\n bezierDetail(5);\n}\n\nfunction draw() {\n background(200);\n\n bezier(-40, -40, 0,\n 90, -40, 0,\n -90, 40, 0,\n 40, 40, 0);\n}\n\n
" - ], - alt: 'stretched black s-shape with a low level of bezier detail', - class: 'p5', - module: 'Shape', - submodule: 'Curves' - }, - { - file: 'src/core/shape/curves.js', - line: 139, - description: - '

Evaluates the Bezier at position t for points a, b, c, d.\nThe parameters a and d are the first and last points\non the curve, and b and c are the control points.\nThe final parameter t varies between 0 and 1.\nThis can be done once with the x coordinates and a second time\nwith the y coordinates to get the location of a bezier curve at t.

\n', - itemtype: 'method', - name: 'bezierPoint', - params: [ - { - name: 'a', - description: '

coordinate of first point on the curve

\n', - type: 'Number' - }, - { - name: 'b', - description: '

coordinate of first control point

\n', - type: 'Number' - }, - { - name: 'c', - description: '

coordinate of second control point

\n', - type: 'Number' - }, - { - name: 'd', - description: '

coordinate of second point on the curve

\n', - type: 'Number' - }, - { - name: 't', - description: '

value between 0 and 1

\n', - type: 'Number' - } - ], - return: { - description: 'the value of the Bezier at position t', - type: 'Number' - }, - example: [ - '\n
\n\nnoFill();\nlet x1 = 85,\n x2 = 10,\n x3 = 90,\n x4 = 15;\nlet y1 = 20,\n y2 = 10,\n y3 = 90,\n y4 = 80;\nbezier(x1, y1, x2, y2, x3, y3, x4, y4);\nfill(255);\nlet steps = 10;\nfor (let i = 0; i <= steps; i++) {\n let t = i / steps;\n let x = bezierPoint(x1, x2, x3, x4, t);\n let y = bezierPoint(y1, y2, y3, y4, t);\n ellipse(x, y, 5, 5);\n}\n\n
' - ], - alt: - 'stretched black s-shape with 17 small orange lines extending from under shape.', - class: 'p5', - module: 'Shape', - submodule: 'Curves' - }, - { - file: 'src/core/shape/curves.js', - line: 194, - description: - '

Evaluates the tangent to the Bezier at position t for points a, b, c, d.\nThe parameters a and d are the first and last points\non the curve, and b and c are the control points.\nThe final parameter t varies between 0 and 1.

\n', - itemtype: 'method', - name: 'bezierTangent', - params: [ - { - name: 'a', - description: '

coordinate of first point on the curve

\n', - type: 'Number' - }, - { - name: 'b', - description: '

coordinate of first control point

\n', - type: 'Number' - }, - { - name: 'c', - description: '

coordinate of second control point

\n', - type: 'Number' - }, - { - name: 'd', - description: '

coordinate of second point on the curve

\n', - type: 'Number' - }, - { - name: 't', - description: '

value between 0 and 1

\n', - type: 'Number' - } - ], - return: { - description: 'the tangent at position t', - type: 'Number' - }, - example: [ - '\n
\n\nnoFill();\nbezier(85, 20, 10, 10, 90, 90, 15, 80);\nlet steps = 6;\nfill(255);\nfor (let i = 0; i <= steps; i++) {\n let t = i / steps;\n // Get the location of the point\n let x = bezierPoint(85, 10, 90, 15, t);\n let y = bezierPoint(20, 10, 90, 80, t);\n // Get the tangent points\n let tx = bezierTangent(85, 10, 90, 15, t);\n let ty = bezierTangent(20, 10, 90, 80, t);\n // Calculate an angle from the tangent points\n let a = atan2(ty, tx);\n a += PI;\n stroke(255, 102, 0);\n line(x, y, cos(a) * 30 + x, sin(a) * 30 + y);\n // The following line of code makes a line\n // inverse of the above line\n //line(x, y, cos(a)*-30 + x, sin(a)*-30 + y);\n stroke(0);\n ellipse(x, y, 5, 5);\n}\n\n
\n\n
\n\nnoFill();\nbezier(85, 20, 10, 10, 90, 90, 15, 80);\nstroke(255, 102, 0);\nlet steps = 16;\nfor (let i = 0; i <= steps; i++) {\n let t = i / steps;\n let x = bezierPoint(85, 10, 90, 15, t);\n let y = bezierPoint(20, 10, 90, 80, t);\n let tx = bezierTangent(85, 10, 90, 15, t);\n let ty = bezierTangent(20, 10, 90, 80, t);\n let a = atan2(ty, tx);\n a -= HALF_PI;\n line(x, y, cos(a) * 8 + x, sin(a) * 8 + y);\n}\n\n
' - ], - alt: - 's-shaped line with 17 short orange lines extending from underside of shape', - class: 'p5', - module: 'Shape', - submodule: 'Curves' - }, - { - file: 'src/core/shape/curves.js', - line: 273, - description: - '

Draws a curved line on the screen between two points, given as the\nmiddle four parameters. The first two parameters are a control point, as\nif the curve came from this point even though it's not drawn. The last\ntwo parameters similarly describe the other control point.

\nLonger curves can be created by putting a series of curve() functions\ntogether or using curveVertex(). An additional function called\ncurveTightness() provides control for the visual quality of the curve.\nThe curve() function is an implementation of Catmull-Rom splines.

\n', - itemtype: 'method', - name: 'curve', - chainable: 1, - example: [ - '\n
\n\nnoFill();\nstroke(255, 102, 0);\ncurve(5, 26, 5, 26, 73, 24, 73, 61);\nstroke(0);\ncurve(5, 26, 73, 24, 73, 61, 15, 65);\nstroke(255, 102, 0);\ncurve(73, 24, 73, 61, 15, 65, 15, 65);\n\n
\n
\n\n// Define the curve points as JavaScript objects\nlet p1 = { x: 5, y: 26 },\n p2 = { x: 73, y: 24 };\nlet p3 = { x: 73, y: 61 },\n p4 = { x: 15, y: 65 };\nnoFill();\nstroke(255, 102, 0);\ncurve(p1.x, p1.y, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y);\nstroke(0);\ncurve(p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y);\nstroke(255, 102, 0);\ncurve(p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, p4.x, p4.y);\n\n
\n
\n\nnoFill();\nstroke(255, 102, 0);\ncurve(5, 26, 0, 5, 26, 0, 73, 24, 0, 73, 61, 0);\nstroke(0);\ncurve(5, 26, 0, 73, 24, 0, 73, 61, 0, 15, 65, 0);\nstroke(255, 102, 0);\ncurve(73, 24, 0, 73, 61, 0, 15, 65, 0, 15, 65, 0);\n\n
' - ], - alt: - 'horseshoe shape with orange ends facing left and black curved center.\nhorseshoe shape with orange ends facing left and black curved center.\ncurving black and orange lines.', - class: 'p5', - module: 'Shape', - submodule: 'Curves', - overloads: [ - { - line: 273, - params: [ - { - name: 'x1', - description: - '

x-coordinate for the beginning control point

\n', - type: 'Number' - }, - { - name: 'y1', - description: - '

y-coordinate for the beginning control point

\n', - type: 'Number' - }, - { - name: 'x2', - description: '

x-coordinate for the first point

\n', - type: 'Number' - }, - { - name: 'y2', - description: '

y-coordinate for the first point

\n', - type: 'Number' - }, - { - name: 'x3', - description: '

x-coordinate for the second point

\n', - type: 'Number' - }, - { - name: 'y3', - description: '

y-coordinate for the second point

\n', - type: 'Number' - }, - { - name: 'x4', - description: '

x-coordinate for the ending control point

\n', - type: 'Number' - }, - { - name: 'y4', - description: '

y-coordinate for the ending control point

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 338, - params: [ - { - name: 'x1', - description: '', - type: 'Number' - }, - { - name: 'y1', - description: '', - type: 'Number' - }, - { - name: 'z1', - description: - '

z-coordinate for the beginning control point

\n', - type: 'Number' - }, - { - name: 'x2', - description: '', - type: 'Number' - }, - { - name: 'y2', - description: '', - type: 'Number' - }, - { - name: 'z2', - description: '

z-coordinate for the first point

\n', - type: 'Number' - }, - { - name: 'x3', - description: '', - type: 'Number' - }, - { - name: 'y3', - description: '', - type: 'Number' - }, - { - name: 'z3', - description: '

z-coordinate for the second point

\n', - type: 'Number' - }, - { - name: 'x4', - description: '', - type: 'Number' - }, - { - name: 'y4', - description: '', - type: 'Number' - }, - { - name: 'z4', - description: '

z-coordinate for the ending control point

\n', - type: 'Number' - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/core/shape/curves.js', - line: 364, - description: - '

Sets the resolution at which curves display.

\n

The default value is 20 while the minimum value is 3.

\n

This function is only useful when using the WEBGL renderer\nas the default canvas renderer does not use this\ninformation.

\n', - itemtype: 'method', - name: 'curveDetail', - params: [ - { - name: 'resolution', - description: '

resolution of the curves

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n\n curveDetail(5);\n}\nfunction draw() {\n background(200);\n\n curve(250, 600, 0, -30, 40, 0, 30, 30, 0, -250, 600, 0);\n}\n\n
" - ], - alt: 'white arch shape with a low level of curve detail.', - class: 'p5', - module: 'Shape', - submodule: 'Curves' - }, - { - file: 'src/core/shape/curves.js', - line: 406, - description: - '

Modifies the quality of forms created with curve() and curveVertex().\nThe parameter tightness determines how the curve fits to the vertex\npoints. The value 0.0 is the default value for tightness (this value\ndefines the curves to be Catmull-Rom splines) and the value 1.0 connects\nall the points with straight lines. Values within the range -5.0 and 5.0\nwill deform the curves but will leave them recognizable and as values\nincrease in magnitude, they will continue to deform.

\n', - itemtype: 'method', - name: 'curveTightness', - params: [ - { - name: 'amount', - description: - '

amount of deformation from the original vertices

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - '\n
\n\n// Move the mouse left and right to see the curve change\n\nfunction setup() {\n createCanvas(100, 100);\n noFill();\n}\n\nfunction draw() {\n background(204);\n let t = map(mouseX, 0, width, -5, 5);\n curveTightness(t);\n beginShape();\n curveVertex(10, 26);\n curveVertex(10, 26);\n curveVertex(83, 24);\n curveVertex(83, 61);\n curveVertex(25, 65);\n curveVertex(25, 65);\n endShape();\n}\n\n
' - ], - alt: - 'Line shaped like right-facing arrow,points move with mouse-x and warp shape.', - class: 'p5', - module: 'Shape', - submodule: 'Curves' - }, - { - file: 'src/core/shape/curves.js', - line: 453, - description: - '

Evaluates the curve at position t for points a, b, c, d.\nThe parameter t varies between 0 and 1, a and d are control points\nof the curve, and b and c are the start and end points of the curve.\nThis can be done once with the x coordinates and a second time\nwith the y coordinates to get the location of a curve at t.

\n', - itemtype: 'method', - name: 'curvePoint', - params: [ - { - name: 'a', - description: '

coordinate of first control point of the curve

\n', - type: 'Number' - }, - { - name: 'b', - description: '

coordinate of first point

\n', - type: 'Number' - }, - { - name: 'c', - description: '

coordinate of second point

\n', - type: 'Number' - }, - { - name: 'd', - description: '

coordinate of second control point

\n', - type: 'Number' - }, - { - name: 't', - description: '

value between 0 and 1

\n', - type: 'Number' - } - ], - return: { - description: 'bezier value at position t', - type: 'Number' - }, - example: [ - '\n
\n\nnoFill();\ncurve(5, 26, 5, 26, 73, 24, 73, 61);\ncurve(5, 26, 73, 24, 73, 61, 15, 65);\nfill(255);\nellipseMode(CENTER);\nlet steps = 6;\nfor (let i = 0; i <= steps; i++) {\n let t = i / steps;\n let x = curvePoint(5, 5, 73, 73, t);\n let y = curvePoint(26, 26, 24, 61, t);\n ellipse(x, y, 5, 5);\n x = curvePoint(5, 73, 73, 15, t);\n y = curvePoint(26, 24, 61, 65, t);\n ellipse(x, y, 5, 5);\n}\n\n
\n\nline hooking down to right-bottom with 13 5x5 white ellipse points' - ], - class: 'p5', - module: 'Shape', - submodule: 'Curves' - }, - { - file: 'src/core/shape/curves.js', - line: 502, - description: - '

Evaluates the tangent to the curve at position t for points a, b, c, d.\nThe parameter t varies between 0 and 1, a and d are points on the curve,\nand b and c are the control points.

\n', - itemtype: 'method', - name: 'curveTangent', - params: [ - { - name: 'a', - description: '

coordinate of first point on the curve

\n', - type: 'Number' - }, - { - name: 'b', - description: '

coordinate of first control point

\n', - type: 'Number' - }, - { - name: 'c', - description: '

coordinate of second control point

\n', - type: 'Number' - }, - { - name: 'd', - description: '

coordinate of second point on the curve

\n', - type: 'Number' - }, - { - name: 't', - description: '

value between 0 and 1

\n', - type: 'Number' - } - ], - return: { - description: 'the tangent at position t', - type: 'Number' - }, - example: [ - '\n
\n\nnoFill();\ncurve(5, 26, 73, 24, 73, 61, 15, 65);\nlet steps = 6;\nfor (let i = 0; i <= steps; i++) {\n let t = i / steps;\n let x = curvePoint(5, 73, 73, 15, t);\n let y = curvePoint(26, 24, 61, 65, t);\n //ellipse(x, y, 5, 5);\n let tx = curveTangent(5, 73, 73, 15, t);\n let ty = curveTangent(26, 24, 61, 65, t);\n let a = atan2(ty, tx);\n a -= PI / 2.0;\n line(x, y, cos(a) * 8 + x, sin(a) * 8 + y);\n}\n\n
' - ], - alt: - 'right curving line mid-right of canvas with 7 short lines radiating from it.', - class: 'p5', - module: 'Shape', - submodule: 'Curves' - }, - { - file: 'src/core/shape/vertex.js', - line: 22, - description: - '

Use the beginContour() and endContour() functions to create negative\nshapes within shapes such as the center of the letter 'O'. beginContour()\nbegins recording vertices for the shape and endContour() stops recording.\nThe vertices that define a negative shape must "wind" in the opposite\ndirection from the exterior shape. First draw vertices for the exterior\nclockwise order, then for internal shapes, draw vertices\nshape in counter-clockwise.\n

\nThese functions can only be used within a beginShape()/endShape() pair and\ntransformations such as translate(), rotate(), and scale() do not work\nwithin a beginContour()/endContour() pair. It is also not possible to use\nother shapes, such as ellipse() or rect() within.

\n', - itemtype: 'method', - name: 'beginContour', - chainable: 1, - example: [ - '\n
\n\ntranslate(50, 50);\nstroke(255, 0, 0);\nbeginShape();\n// Exterior part of shape, clockwise winding\nvertex(-40, -40);\nvertex(40, -40);\nvertex(40, 40);\nvertex(-40, 40);\n// Interior part of shape, counter-clockwise winding\nbeginContour();\nvertex(-20, -20);\nvertex(-20, 20);\nvertex(20, 20);\nvertex(20, -20);\nendContour();\nendShape(CLOSE);\n\n
' - ], - alt: - 'white rect and smaller grey rect with red outlines in center of canvas.', - class: 'p5', - module: 'Shape', - submodule: 'Vertex' - }, - { - file: 'src/core/shape/vertex.js', - line: 70, - description: - '

Using the beginShape() and endShape() functions allow creating more\ncomplex forms. beginShape() begins recording vertices for a shape and\nendShape() stops recording. The value of the kind parameter tells it which\ntypes of shapes to create from the provided vertices. With no mode\nspecified, the shape can be any irregular polygon.\n

\nThe parameters available for beginShape() are POINTS, LINES, TRIANGLES,\nTRIANGLE_FAN, TRIANGLE_STRIP, QUADS, and QUAD_STRIP. After calling the\nbeginShape() function, a series of vertex() commands must follow. To stop\ndrawing the shape, call endShape(). Each shape will be outlined with the\ncurrent stroke color and filled with the fill color.\n

\nTransformations such as translate(), rotate(), and scale() do not work\nwithin beginShape(). It is also not possible to use other shapes, such as\nellipse() or rect() within beginShape().

\n', - itemtype: 'method', - name: 'beginShape', - params: [ - { - name: 'kind', - description: - '

either POINTS, LINES, TRIANGLES, TRIANGLE_FAN\n TRIANGLE_STRIP, QUADS, or QUAD_STRIP

\n', - type: 'Constant', - optional: true - } - ], - chainable: 1, - example: [ - '\n
\n\nbeginShape();\nvertex(30, 20);\nvertex(85, 20);\nvertex(85, 75);\nvertex(30, 75);\nendShape(CLOSE);\n\n
\n\n
\n\nbeginShape(POINTS);\nvertex(30, 20);\nvertex(85, 20);\nvertex(85, 75);\nvertex(30, 75);\nendShape();\n\n
\n\n
\n\nbeginShape(LINES);\nvertex(30, 20);\nvertex(85, 20);\nvertex(85, 75);\nvertex(30, 75);\nendShape();\n\n
\n\n
\n\nnoFill();\nbeginShape();\nvertex(30, 20);\nvertex(85, 20);\nvertex(85, 75);\nvertex(30, 75);\nendShape();\n\n
\n\n
\n\nnoFill();\nbeginShape();\nvertex(30, 20);\nvertex(85, 20);\nvertex(85, 75);\nvertex(30, 75);\nendShape(CLOSE);\n\n
\n\n
\n\nbeginShape(TRIANGLES);\nvertex(30, 75);\nvertex(40, 20);\nvertex(50, 75);\nvertex(60, 20);\nvertex(70, 75);\nvertex(80, 20);\nendShape();\n\n
\n\n
\n\nbeginShape(TRIANGLE_STRIP);\nvertex(30, 75);\nvertex(40, 20);\nvertex(50, 75);\nvertex(60, 20);\nvertex(70, 75);\nvertex(80, 20);\nvertex(90, 75);\nendShape();\n\n
\n\n
\n\nbeginShape(TRIANGLE_FAN);\nvertex(57.5, 50);\nvertex(57.5, 15);\nvertex(92, 50);\nvertex(57.5, 85);\nvertex(22, 50);\nvertex(57.5, 15);\nendShape();\n\n
\n\n
\n\nbeginShape(QUADS);\nvertex(30, 20);\nvertex(30, 75);\nvertex(50, 75);\nvertex(50, 20);\nvertex(65, 20);\nvertex(65, 75);\nvertex(85, 75);\nvertex(85, 20);\nendShape();\n\n
\n\n
\n\nbeginShape(QUAD_STRIP);\nvertex(30, 20);\nvertex(30, 75);\nvertex(50, 20);\nvertex(50, 75);\nvertex(65, 20);\nvertex(65, 75);\nvertex(85, 20);\nvertex(85, 75);\nendShape();\n\n
\n\n
\n\nbeginShape();\nvertex(20, 20);\nvertex(40, 20);\nvertex(40, 40);\nvertex(60, 40);\nvertex(60, 60);\nvertex(20, 60);\nendShape(CLOSE);\n\n
' - ], - alt: - 'white square-shape with black outline in middle-right of canvas.\n4 black points in a square shape in middle-right of canvas.\n2 horizontal black lines. In the top-right and bottom-right of canvas.\n3 line shape with horizontal on top, vertical in middle and horizontal bottom.\nsquare line shape in middle-right of canvas.\n2 white triangle shapes mid-right canvas. left one pointing up and right down.\n5 horizontal interlocking and alternating white triangles in mid-right canvas.\n4 interlocking white triangles in 45 degree rotated square-shape.\n2 white rectangle shapes in mid-right canvas. Both 20x55.\n3 side-by-side white rectangles center rect is smaller in mid-right canvas.\nThick white l-shape with black outline mid-top-left of canvas.', - class: 'p5', - module: 'Shape', - submodule: 'Vertex' - }, - { - file: 'src/core/shape/vertex.js', - line: 270, - description: - '

Specifies vertex coordinates for Bezier curves. Each call to\nbezierVertex() defines the position of two control points and\none anchor point of a Bezier curve, adding a new segment to a\nline or shape. For WebGL mode bezierVertex() can be used in 2D\nas well as 3D mode. 2D mode expects 6 parameters, while 3D mode\nexpects 9 parameters (including z coordinates).\n

\nThe first time bezierVertex() is used within a beginShape()\ncall, it must be prefaced with a call to vertex() to set the first anchor\npoint. This function must be used between beginShape() and endShape()\nand only when there is no MODE or POINTS parameter specified to\nbeginShape().

\n', - itemtype: 'method', - name: 'bezierVertex', - chainable: 1, - example: [ - '\n
\n\nnoFill();\nbeginShape();\nvertex(30, 20);\nbezierVertex(80, 0, 80, 75, 30, 75);\nendShape();\n\n
', - '\n
\n\nbeginShape();\nvertex(30, 20);\nbezierVertex(80, 0, 80, 75, 30, 75);\nbezierVertex(50, 80, 60, 25, 30, 20);\nendShape();\n\n
', - "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n setAttributes('antialias', true);\n}\nfunction draw() {\n orbitControl();\n background(50);\n strokeWeight(4);\n stroke(255);\n point(-25, 30);\n point(25, 30);\n point(25, -30);\n point(-25, -30);\n\n strokeWeight(1);\n noFill();\n\n beginShape();\n vertex(-25, 30);\n bezierVertex(25, 30, 25, -30, -25, -30);\n endShape();\n\n beginShape();\n vertex(-25, 30, 20);\n bezierVertex(25, 30, 20, 25, -30, 20, -25, -30, 20);\n endShape();\n}\n\n
" - ], - alt: - 'crescent shape in middle of canvas with another crescent shape on positive z-axis.', - class: 'p5', - module: 'Shape', - submodule: 'Vertex', - overloads: [ - { - line: 270, - params: [ - { - name: 'x2', - description: '

x-coordinate for the first control point

\n', - type: 'Number' - }, - { - name: 'y2', - description: '

y-coordinate for the first control point

\n', - type: 'Number' - }, - { - name: 'x3', - description: '

x-coordinate for the second control point

\n', - type: 'Number' - }, - { - name: 'y3', - description: '

y-coordinate for the second control point

\n', - type: 'Number' - }, - { - name: 'x4', - description: '

x-coordinate for the anchor point

\n', - type: 'Number' - }, - { - name: 'y4', - description: '

y-coordinate for the anchor point

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 358, - params: [ - { - name: 'x2', - description: '', - type: 'Number' - }, - { - name: 'y2', - description: '', - type: 'Number' - }, - { - name: 'z2', - description: - '

z-coordinate for the first control point (for WebGL mode)

\n', - type: 'Number' - }, - { - name: 'x3', - description: '', - type: 'Number' - }, - { - name: 'y3', - description: '', - type: 'Number' - }, - { - name: 'z3', - description: - '

z-coordinate for the second control point (for WebGL mode)

\n', - type: 'Number' - }, - { - name: 'x4', - description: '', - type: 'Number' - }, - { - name: 'y4', - description: '', - type: 'Number' - }, - { - name: 'z4', - description: - '

z-coordinate for the anchor point (for WebGL mode)

\n', - type: 'Number' - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/core/shape/vertex.js', - line: 398, - description: - '

Specifies vertex coordinates for curves. This function may only\nbe used between beginShape() and endShape() and only when there\nis no MODE parameter specified to beginShape().\nFor WebGL mode curveVertex() can be used in 2D as well as 3D mode.\n2D mode expects 2 parameters, while 3D mode expects 3 parameters.\n

\nThe first and last points in a series of curveVertex() lines will be used to\nguide the beginning and end of a the curve. A minimum of four\npoints is required to draw a tiny curve between the second and\nthird points. Adding a fifth point with curveVertex() will draw\nthe curve between the second, third, and fourth points. The\ncurveVertex() function is an implementation of Catmull-Rom\nsplines.

\n', - itemtype: 'method', - name: 'curveVertex', - chainable: 1, - example: [ - '\n
\n\nstrokeWeight(5);\npoint(84, 91);\npoint(68, 19);\npoint(21, 17);\npoint(32, 91);\nstrokeWeight(1);\n\nnoFill();\nbeginShape();\ncurveVertex(84, 91);\ncurveVertex(84, 91);\ncurveVertex(68, 19);\ncurveVertex(21, 17);\ncurveVertex(32, 91);\ncurveVertex(32, 91);\nendShape();\n\n
' - ], - alt: - 'Upside-down u-shape line, mid canvas. left point extends beyond canvas view.', - class: 'p5', - module: 'Shape', - submodule: 'Vertex', - overloads: [ - { - line: 398, - params: [ - { - name: 'x', - description: '

x-coordinate of the vertex

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y-coordinate of the vertex

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 443, - params: [ - { - name: 'x', - description: '', - type: 'Number' - }, - { - name: 'y', - description: '', - type: 'Number' - }, - { - name: 'z', - description: '

z-coordinate of the vertex (for WebGL mode)

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/core/shape/vertex.js', - line: 508, - description: - '

Use the beginContour() and endContour() functions to create negative\nshapes within shapes such as the center of the letter 'O'. beginContour()\nbegins recording vertices for the shape and endContour() stops recording.\nThe vertices that define a negative shape must "wind" in the opposite\ndirection from the exterior shape. First draw vertices for the exterior\nclockwise order, then for internal shapes, draw vertices\nshape in counter-clockwise.\n

\nThese functions can only be used within a beginShape()/endShape() pair and\ntransformations such as translate(), rotate(), and scale() do not work\nwithin a beginContour()/endContour() pair. It is also not possible to use\nother shapes, such as ellipse() or rect() within.

\n', - itemtype: 'method', - name: 'endContour', - chainable: 1, - example: [ - '\n
\n\ntranslate(50, 50);\nstroke(255, 0, 0);\nbeginShape();\n// Exterior part of shape, clockwise winding\nvertex(-40, -40);\nvertex(40, -40);\nvertex(40, 40);\nvertex(-40, 40);\n// Interior part of shape, counter-clockwise winding\nbeginContour();\nvertex(-20, -20);\nvertex(-20, 20);\nvertex(20, 20);\nvertex(20, -20);\nendContour();\nendShape(CLOSE);\n\n
' - ], - alt: - 'white rect and smaller grey rect with red outlines in center of canvas.', - class: 'p5', - module: 'Shape', - submodule: 'Vertex' - }, - { - file: 'src/core/shape/vertex.js', - line: 568, - description: - '

The endShape() function is the companion to beginShape() and may only be\ncalled after beginShape(). When endshape() is called, all of image data\ndefined since the previous call to beginShape() is written into the image\nbuffer. The constant CLOSE as the value for the MODE parameter to close\nthe shape (to connect the beginning and the end).

\n', - itemtype: 'method', - name: 'endShape', - params: [ - { - name: 'mode', - description: '

use CLOSE to close the shape

\n', - type: 'Constant', - optional: true - } - ], - chainable: 1, - example: [ - '\n
\n\nnoFill();\n\nbeginShape();\nvertex(20, 20);\nvertex(45, 20);\nvertex(45, 80);\nendShape(CLOSE);\n\nbeginShape();\nvertex(50, 20);\nvertex(75, 20);\nvertex(75, 80);\nendShape();\n\n
' - ], - alt: - 'Triangle line shape with smallest interior angle on bottom and upside-down L.', - class: 'p5', - module: 'Shape', - submodule: 'Vertex' - }, - { - file: 'src/core/shape/vertex.js', - line: 654, - description: - '

Specifies vertex coordinates for quadratic Bezier curves. Each call to\nquadraticVertex() defines the position of one control points and one\nanchor point of a Bezier curve, adding a new segment to a line or shape.\nThe first time quadraticVertex() is used within a beginShape() call, it\nmust be prefaced with a call to vertex() to set the first anchor point.\nFor WebGL mode quadraticVertex() can be used in 2D as well as 3D mode.\n2D mode expects 4 parameters, while 3D mode expects 6 parameters\n(including z coordinates).\n

\nThis function must be used between beginShape() and endShape()\nand only when there is no MODE or POINTS parameter specified to\nbeginShape().

\n', - itemtype: 'method', - name: 'quadraticVertex', - chainable: 1, - example: [ - '\n
\n\nstrokeWeight(5);\npoint(20, 20);\npoint(80, 20);\npoint(50, 50);\n\nnoFill();\nstrokeWeight(1);\nbeginShape();\nvertex(20, 20);\nquadraticVertex(80, 20, 50, 50);\nendShape();\n\n
\n\n
\n\nstrokeWeight(5);\npoint(20, 20);\npoint(80, 20);\npoint(50, 50);\n\npoint(20, 80);\npoint(80, 80);\npoint(80, 60);\n\nnoFill();\nstrokeWeight(1);\nbeginShape();\nvertex(20, 20);\nquadraticVertex(80, 20, 50, 50);\nquadraticVertex(20, 80, 80, 80);\nvertex(80, 60);\nendShape();\n\n
' - ], - alt: - 'arched-shaped black line with 4 pixel thick stroke weight.\nbackwards s-shaped black line with 4 pixel thick stroke weight.', - class: 'p5', - module: 'Shape', - submodule: 'Vertex', - overloads: [ - { - line: 654, - params: [ - { - name: 'cx', - description: '

x-coordinate for the control point

\n', - type: 'Number' - }, - { - name: 'cy', - description: '

y-coordinate for the control point

\n', - type: 'Number' - }, - { - name: 'x3', - description: '

x-coordinate for the anchor point

\n', - type: 'Number' - }, - { - name: 'y3', - description: '

y-coordinate for the anchor point

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 720, - params: [ - { - name: 'cx', - description: '', - type: 'Number' - }, - { - name: 'cy', - description: '', - type: 'Number' - }, - { - name: 'cz', - description: - '

z-coordinate for the control point (for WebGL mode)

\n', - type: 'Number' - }, - { - name: 'x3', - description: '', - type: 'Number' - }, - { - name: 'y3', - description: '', - type: 'Number' - }, - { - name: 'z3', - description: - '

z-coordinate for the anchor point (for WebGL mode)

\n', - type: 'Number' - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/core/shape/vertex.js', - line: 813, - description: - '

All shapes are constructed by connecting a series of vertices. vertex()\nis used to specify the vertex coordinates for points, lines, triangles,\nquads, and polygons. It is used exclusively within the beginShape() and\nendShape() functions.

\n', - itemtype: 'method', - name: 'vertex', - chainable: 1, - example: [ - "\n
\n\nstrokeWeight(3);\nbeginShape(POINTS);\nvertex(30, 20);\nvertex(85, 20);\nvertex(85, 75);\nvertex(30, 75);\nendShape();\n\n
\n\n
\n\ncreateCanvas(100, 100, WEBGL);\nbackground(240, 240, 240);\nfill(237, 34, 93);\nnoStroke();\nbeginShape();\nvertex(0, 35);\nvertex(35, 0);\nvertex(0, -35);\nvertex(-35, 0);\nendShape();\n\n
\n\n
\n\ncreateCanvas(100, 100, WEBGL);\nbackground(240, 240, 240);\nfill(237, 34, 93);\nnoStroke();\nbeginShape();\nvertex(-10, 10);\nvertex(0, 35);\nvertex(10, 10);\nvertex(35, 0);\nvertex(10, -8);\nvertex(0, -35);\nvertex(-10, -8);\nvertex(-35, 0);\nendShape();\n\n
\n\n
\n\nstrokeWeight(3);\nstroke(237, 34, 93);\nbeginShape(LINES);\nvertex(10, 35);\nvertex(90, 35);\nvertex(10, 65);\nvertex(90, 65);\nvertex(35, 10);\nvertex(35, 90);\nvertex(65, 10);\nvertex(65, 90);\nendShape();\n\n
\n\n
\n\n// Click to change the number of sides.\n// In WebGL mode, custom shapes will only\n// display hollow fill sections when\n// all calls to vertex() use the same z-value.\n\nlet sides = 3;\nlet angle, px, py;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n setAttributes('antialias', true);\n fill(237, 34, 93);\n strokeWeight(3);\n}\n\nfunction draw() {\n background(200);\n rotateX(frameCount * 0.01);\n rotateZ(frameCount * 0.01);\n ngon(sides, 0, 0, 80);\n}\n\nfunction mouseClicked() {\n if (sides > 6) {\n sides = 3;\n } else {\n sides++;\n }\n}\n\nfunction ngon(n, x, y, d) {\n beginShape();\n for (var i = 0; i < n + 1; i++) {\n angle = TWO_PI / n * i;\n px = x + sin(angle) * d / 2;\n py = y - cos(angle) * d / 2;\n vertex(px, py, 0);\n }\n for (i = 0; i < n + 1; i++) {\n angle = TWO_PI / n * i;\n px = x + sin(angle) * d / 4;\n py = y - cos(angle) * d / 4;\n vertex(px, py, 0);\n }\n endShape();\n}\n\n
" - ], - alt: - '4 black points in a square shape in middle-right of canvas.\n4 points making a diamond shape.\n8 points making a star.\n8 points making 4 lines.\nA rotating 3D shape with a hollow section in the middle.', - class: 'p5', - module: 'Shape', - submodule: 'Vertex', - overloads: [ - { - line: 813, - params: [ - { - name: 'x', - description: '

x-coordinate of the vertex

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y-coordinate of the vertex

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 945, - params: [ - { - name: 'x', - description: '', - type: 'Number' - }, - { - name: 'y', - description: '', - type: 'Number' - }, - { - name: 'z', - description: '

z-coordinate of the vertex

\n', - type: 'Number' - }, - { - name: 'u', - description: '

the vertex's texture u-coordinate

\n', - type: 'Number', - optional: true - }, - { - name: 'v', - description: '

the vertex's texture v-coordinate

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/core/constants.js', - line: 13, - description: '

The default, two-dimensional renderer.

\n', - itemtype: 'property', - name: 'P2D', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 19, - description: - '

One of the two render modes in p5.js: P2D (default renderer) and WEBGL\nEnables 3D render by introducing the third dimension: Z

\n', - itemtype: 'property', - name: 'WEBGL', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 28, - itemtype: 'property', - name: 'ARROW', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 33, - itemtype: 'property', - name: 'CROSS', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 38, - itemtype: 'property', - name: 'HAND', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 43, - itemtype: 'property', - name: 'MOVE', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 48, - itemtype: 'property', - name: 'TEXT', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 53, - itemtype: 'property', - name: 'WAIT', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 61, - description: - '

HALF_PI is a mathematical constant with the value\n1.57079632679489661923. It is half the ratio of the\ncircumference of a circle to its diameter. It is useful in\ncombination with the trigonometric functions sin() and cos().

\n', - itemtype: 'property', - name: 'HALF_PI', - type: 'Number', - final: 1, - example: ['\n
\narc(50, 50, 80, 80, 0, HALF_PI);\n
'], - alt: '80x80 white quarter-circle with curve toward bottom right of canvas.', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 80, - description: - '

PI is a mathematical constant with the value\n3.14159265358979323846. It is the ratio of the circumference\nof a circle to its diameter. It is useful in combination with\nthe trigonometric functions sin() and cos().

\n', - itemtype: 'property', - name: 'PI', - type: 'Number', - final: 1, - example: ['\n
\narc(50, 50, 80, 80, 0, PI);\n
'], - alt: 'white half-circle with curve toward bottom of canvas.', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 99, - description: - '

QUARTER_PI is a mathematical constant with the value 0.7853982.\nIt is one quarter the ratio of the circumference of a circle to\nits diameter. It is useful in combination with the trigonometric\nfunctions sin() and cos().

\n', - itemtype: 'property', - name: 'QUARTER_PI', - type: 'Number', - final: 1, - example: [ - '\n
\narc(50, 50, 80, 80, 0, QUARTER_PI);\n
' - ], - alt: - 'white eighth-circle rotated about 40 degrees with curve bottom right canvas.', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 118, - description: - '

TAU is an alias for TWO_PI, a mathematical constant with the\nvalue 6.28318530717958647693. It is twice the ratio of the\ncircumference of a circle to its diameter. It is useful in\ncombination with the trigonometric functions sin() and cos().

\n', - itemtype: 'property', - name: 'TAU', - type: 'Number', - final: 1, - example: ['\n
\narc(50, 50, 80, 80, 0, TAU);\n
'], - alt: '80x80 white ellipse shape in center of canvas.', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 137, - description: - '

TWO_PI is a mathematical constant with the value\n6.28318530717958647693. It is twice the ratio of the\ncircumference of a circle to its diameter. It is useful in\ncombination with the trigonometric functions sin() and cos().

\n', - itemtype: 'property', - name: 'TWO_PI', - type: 'Number', - final: 1, - example: ['\n
\narc(50, 50, 80, 80, 0, TWO_PI);\n
'], - alt: '80x80 white ellipse shape in center of canvas.', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 156, - description: - '

Constant to be used with angleMode() function, to set the mode which\np5.js interprates and calculates angles (either DEGREES or RADIANS).

\n', - itemtype: 'property', - name: 'DEGREES', - type: 'String', - final: 1, - example: [ - "\n
\nfunction setup() {\n angleMode(DEGREES);\n}\n
" - ], - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 170, - description: - '

Constant to be used with angleMode() function, to set the mode which\np5.js interprates and calculates angles (either RADIANS or DEGREES).

\n', - itemtype: 'property', - name: 'RADIANS', - type: 'String', - final: 1, - example: [ - "\n
\nfunction setup() {\n angleMode(RADIANS);\n}\n
" - ], - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 188, - itemtype: 'property', - name: 'CORNER', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 193, - itemtype: 'property', - name: 'CORNERS', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 198, - itemtype: 'property', - name: 'RADIUS', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 203, - itemtype: 'property', - name: 'RIGHT', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 208, - itemtype: 'property', - name: 'LEFT', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 213, - itemtype: 'property', - name: 'CENTER', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 218, - itemtype: 'property', - name: 'TOP', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 223, - itemtype: 'property', - name: 'BOTTOM', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 228, - itemtype: 'property', - name: 'BASELINE', - type: 'String', - final: 1, - default: 'alphabetic', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 234, - itemtype: 'property', - name: 'POINTS', - type: 'Number', - final: 1, - default: '0x0000', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 240, - itemtype: 'property', - name: 'LINES', - type: 'Number', - final: 1, - default: '0x0001', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 246, - itemtype: 'property', - name: 'LINE_STRIP', - type: 'Number', - final: 1, - default: '0x0003', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 252, - itemtype: 'property', - name: 'LINE_LOOP', - type: 'Number', - final: 1, - default: '0x0002', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 258, - itemtype: 'property', - name: 'TRIANGLES', - type: 'Number', - final: 1, - default: '0x0004', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 264, - itemtype: 'property', - name: 'TRIANGLE_FAN', - type: 'Number', - final: 1, - default: '0x0006', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 270, - itemtype: 'property', - name: 'TRIANGLE_STRIP', - type: 'Number', - final: 1, - default: '0x0005', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 276, - itemtype: 'property', - name: 'QUADS', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 281, - itemtype: 'property', - name: 'QUAD_STRIP', - type: 'String', - final: 1, - default: 'quad_strip', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 287, - itemtype: 'property', - name: 'CLOSE', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 292, - itemtype: 'property', - name: 'OPEN', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 297, - itemtype: 'property', - name: 'CHORD', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 302, - itemtype: 'property', - name: 'PIE', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 307, - itemtype: 'property', - name: 'PROJECT', - type: 'String', - final: 1, - default: 'square', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 313, - itemtype: 'property', - name: 'SQUARE', - type: 'String', - final: 1, - default: 'butt', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 319, - itemtype: 'property', - name: 'ROUND', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 324, - itemtype: 'property', - name: 'BEVEL', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 329, - itemtype: 'property', - name: 'MITER', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 336, - itemtype: 'property', - name: 'RGB', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 341, - itemtype: 'property', - name: 'HSB', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 346, - itemtype: 'property', - name: 'HSL', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 353, - description: - '

AUTO allows us to automatically set the width or height of an element (but not both),\nbased on the current height and width of the element. Only one parameter can\nbe passed to the size function as AUTO, at a time.

\n', - itemtype: 'property', - name: 'AUTO', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 380, - itemtype: 'property', - name: 'BLEND', - type: 'String', - final: 1, - default: 'source-over', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 386, - itemtype: 'property', - name: 'ADD', - type: 'String', - final: 1, - default: 'lighter', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 394, - itemtype: 'property', - name: 'DARKEST', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 399, - itemtype: 'property', - name: 'LIGHTEST', - type: 'String', - final: 1, - default: 'lighten', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 405, - itemtype: 'property', - name: 'DIFFERENCE', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 410, - itemtype: 'property', - name: 'SUBTRACT', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 415, - itemtype: 'property', - name: 'EXCLUSION', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 420, - itemtype: 'property', - name: 'MULTIPLY', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 425, - itemtype: 'property', - name: 'SCREEN', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 430, - itemtype: 'property', - name: 'REPLACE', - type: 'String', - final: 1, - default: 'copy', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 436, - itemtype: 'property', - name: 'OVERLAY', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 441, - itemtype: 'property', - name: 'HARD_LIGHT', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 446, - itemtype: 'property', - name: 'SOFT_LIGHT', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 451, - itemtype: 'property', - name: 'DODGE', - type: 'String', - final: 1, - default: 'color-dodge', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 457, - itemtype: 'property', - name: 'BURN', - type: 'String', - final: 1, - default: 'color-burn', - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 465, - itemtype: 'property', - name: 'THRESHOLD', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 470, - itemtype: 'property', - name: 'GRAY', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 475, - itemtype: 'property', - name: 'OPAQUE', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 480, - itemtype: 'property', - name: 'INVERT', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 485, - itemtype: 'property', - name: 'POSTERIZE', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 490, - itemtype: 'property', - name: 'DILATE', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 495, - itemtype: 'property', - name: 'ERODE', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 500, - itemtype: 'property', - name: 'BLUR', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 507, - itemtype: 'property', - name: 'NORMAL', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 512, - itemtype: 'property', - name: 'ITALIC', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 517, - itemtype: 'property', - name: 'BOLD', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 522, - itemtype: 'property', - name: 'BOLDITALIC', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 547, - itemtype: 'property', - name: 'IMAGE', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 561, - itemtype: 'property', - name: 'LANDSCAPE', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 566, - itemtype: 'property', - name: 'PORTRAIT', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 576, - itemtype: 'property', - name: 'GRID', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/constants.js', - line: 582, - itemtype: 'property', - name: 'AXES', - type: 'String', - final: 1, - class: 'p5', - module: 'Constants', - submodule: 'Constants' - }, - { - file: 'src/core/environment.js', - line: 22, - description: - '

The print() function writes to the console area of your browser.\nThis function is often helpful for looking at the data a program is\nproducing. This function creates a new line of text for each call to\nthe function. Individual elements can be\nseparated with quotes ("") and joined with the addition operator (+).

\n

Note that calling print() without any arguments invokes the window.print()\nfunction which opens the browser's print dialog. To print a blank line\nto console you can write print('\\n').

\n', - itemtype: 'method', - name: 'print', - params: [ - { - name: 'contents', - description: - '

any combination of Number, String, Object, Boolean,\n Array to print

\n', - type: 'Any' - } - ], - example: [ - "\n
\nlet x = 10;\nprint('The value of x is ' + x);\n// prints \"The value of x is 10\"\n
" - ], - alt: 'default grey canvas', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 53, - description: - '

The system variable frameCount contains the number of frames that have\nbeen displayed since the program started. Inside setup() the value is 0,\nafter the first iteration of draw it is 1, etc.

\n', - itemtype: 'property', - name: 'frameCount', - type: 'Integer', - readonly: '', - example: [ - '\n
\nfunction setup() {\n frameRate(30);\n textSize(30);\n textAlign(CENTER);\n}\n\nfunction draw() {\n background(200);\n text(frameCount, width / 2, height / 2);\n}\n
' - ], - alt: 'numbers rapidly counting upward with frame count set to 30.', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 80, - description: - '

The system variable deltaTime contains the time\ndifference between the beginning of the previous frame and the beginning\nof the current frame in milliseconds.\n

\nThis variable is useful for creating time sensitive animation or physics\ncalculation that should stay constant regardless of frame rate.

\n', - itemtype: 'property', - name: 'deltaTime', - type: 'Integer', - readonly: '', - example: [ - '\n
\nlet rectX = 0;\nlet fr = 30; //starting FPS\nlet clr;\n\nfunction setup() {\n background(200);\n frameRate(fr); // Attempt to refresh at starting FPS\n clr = color(255, 0, 0);\n}\n\nfunction draw() {\n background(200);\n rectX = rectX + 1 * (deltaTime / 50); // Move Rectangle in relation to deltaTime\n\n if (rectX >= width) {\n // If you go off screen.\n if (fr === 30) {\n clr = color(0, 0, 255);\n fr = 10;\n frameRate(fr); // make frameRate 10 FPS\n } else {\n clr = color(255, 0, 0);\n fr = 30;\n frameRate(fr); // make frameRate 30 FPS\n }\n rectX = 0;\n }\n fill(clr);\n rect(rectX, 40, 20, 20);\n}\n
' - ], - alt: - 'red rect moves left to right, followed by blue rect moving at the same speed\nwith a lower frame rate. Loops.', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 131, - description: - '

Confirms if the window a p5.js program is in is "focused," meaning that\nthe sketch will accept mouse or keyboard input. This variable is\n"true" if the window is focused and "false" if not.

\n', - itemtype: 'property', - name: 'focused', - type: 'Boolean', - readonly: '', - example: [ - '\n
\n// To demonstrate, put two windows side by side.\n// Click on the window that the p5 sketch isn\'t in!\nfunction draw() {\n background(200);\n noStroke();\n fill(0, 200, 0);\n ellipse(25, 25, 50, 50);\n\n if (!focused) {\n // or "if (focused === false)"\n stroke(200, 0, 0);\n line(0, 0, 100, 100);\n line(100, 0, 0, 100);\n }\n}\n
' - ], - alt: - 'green 50x50 ellipse at top left. Red X covers canvas when page focus changes', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 163, - description: - '

Sets the cursor to a predefined symbol or an image, or makes it visible\nif already hidden. If you are trying to set an image as the cursor, the\nrecommended size is 16x16 or 32x32 pixels. The values for parameters x and y\nmust be less than the dimensions of the image.

\n', - itemtype: 'method', - name: 'cursor', - params: [ - { - name: 'type', - description: - '

Built-In: either ARROW, CROSS, HAND, MOVE, TEXT and WAIT\n Native CSS properties: 'grab', 'progress', 'cell' etc.\n External: path for cursor's images\n (Allowed File extensions: .cur, .gif, .jpg, .jpeg, .png)\n For more information on Native CSS cursors and url visit:\n https://developer.mozilla.org/en-US/docs/Web/CSS/cursor

\n', - type: 'String|Constant' - }, - { - name: 'x', - description: - '

the horizontal active spot of the cursor (must be less than 32)

\n', - type: 'Number', - optional: true - }, - { - name: 'y', - description: - '

the vertical active spot of the cursor (must be less than 32)

\n', - type: 'Number', - optional: true - } - ], - example: [ - "\n
\n// Move the mouse across the quadrants\n// to see the cursor change\nfunction draw() {\n line(width / 2, 0, width / 2, height);\n line(0, height / 2, width, height / 2);\n if (mouseX < 50 && mouseY < 50) {\n cursor(CROSS);\n } else if (mouseX > 50 && mouseY < 50) {\n cursor('progress');\n } else if (mouseX > 50 && mouseY > 50) {\n cursor('https://s3.amazonaws.com/mupublicdata/cursor.cur');\n } else {\n cursor('grab');\n }\n}\n
" - ], - alt: - 'canvas is divided into four quadrants. cursor on first is a cross, second is a progress,\nthird is a custom cursor using path to the cursor and fourth is a grab.', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 232, - description: - '

Specifies the number of frames to be displayed every second. For example,\nthe function call frameRate(30) will attempt to refresh 30 times a second.\nIf the processor is not fast enough to maintain the specified rate, the\nframe rate will not be achieved. Setting the frame rate within setup() is\nrecommended. The default frame rate is based on the frame rate of the display\n(here also called "refresh rate"), which is set to 60 frames per second on most\ncomputers. A frame rate of 24 frames per second (usual for movies) or above\nwill be enough for smooth animations\nThis is the same as setFrameRate(val).\n

\nCalling frameRate() with no arguments returns the current framerate. The\ndraw function must run at least once before it will return a value. This\nis the same as getFrameRate().\n

\nCalling frameRate() with arguments that are not of the type numbers\nor are non positive also returns current framerate.

\n', - itemtype: 'method', - name: 'frameRate', - chainable: 1, - example: [ - '\n\n
\nlet rectX = 0;\nlet fr = 30; //starting FPS\nlet clr;\n\nfunction setup() {\n background(200);\n frameRate(fr); // Attempt to refresh at starting FPS\n clr = color(255, 0, 0);\n}\n\nfunction draw() {\n background(200);\n rectX = rectX += 1; // Move Rectangle\n\n if (rectX >= width) {\n // If you go off screen.\n if (fr === 30) {\n clr = color(0, 0, 255);\n fr = 10;\n frameRate(fr); // make frameRate 10 FPS\n } else {\n clr = color(255, 0, 0);\n fr = 30;\n frameRate(fr); // make frameRate 30 FPS\n }\n rectX = 0;\n }\n fill(clr);\n rect(rectX, 40, 20, 20);\n}\n
' - ], - alt: - 'blue rect moves left to right, followed by red rect moving faster. Loops.', - class: 'p5', - module: 'Environment', - submodule: 'Environment', - overloads: [ - { - line: 232, - params: [ - { - name: 'fps', - description: - '

number of frames to be displayed every second

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 293, - params: [], - return: { - description: 'current frameRate', - type: 'Number' - } - } - ] - }, - { - file: 'src/core/environment.js', - line: 332, - description: '

Hides the cursor from view.

\n', - itemtype: 'method', - name: 'noCursor', - example: [ - '\n
\nfunction setup() {\n noCursor();\n}\n\nfunction draw() {\n background(200);\n ellipse(mouseX, mouseY, 10, 10);\n}\n
' - ], - alt: 'cursor becomes 10x 10 white ellipse the moves with mouse x and y.', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 357, - description: - '

System variable that stores the width of the screen display according to The\ndefault pixelDensity. This is used to run a\nfull-screen program on any display size. To return actual screen size,\nmultiply this by pixelDensity.

\n', - itemtype: 'property', - name: 'displayWidth', - type: 'Number', - readonly: '', - example: [ - '\n
\ncreateCanvas(displayWidth, displayHeight);\n
' - ], - alt: 'cursor becomes 10x 10 white ellipse the moves with mouse x and y.', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 376, - description: - '

System variable that stores the height of the screen display according to The\ndefault pixelDensity. This is used to run a\nfull-screen program on any display size. To return actual screen size,\nmultiply this by pixelDensity.

\n', - itemtype: 'property', - name: 'displayHeight', - type: 'Number', - readonly: '', - example: [ - '\n
\ncreateCanvas(displayWidth, displayHeight);\n
' - ], - alt: 'no display.', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 395, - description: - '

System variable that stores the width of the inner window, it maps to\nwindow.innerWidth.

\n', - itemtype: 'property', - name: 'windowWidth', - type: 'Number', - readonly: '', - example: [ - '\n
\ncreateCanvas(windowWidth, windowHeight);\n
' - ], - alt: 'no display.', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 411, - description: - '

System variable that stores the height of the inner window, it maps to\nwindow.innerHeight.

\n', - itemtype: 'property', - name: 'windowHeight', - type: 'Number', - readonly: '', - example: [ - '\n
\ncreateCanvas(windowWidth, windowHeight);\n
' - ], - alt: 'no display.', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 427, - description: - '

The windowResized() function is called once every time the browser window\nis resized. This is a good place to resize the canvas or do any other\nadjustments to accommodate the new window size.

\n', - itemtype: 'method', - name: 'windowResized', - example: [ - '\n
\nfunction setup() {\n createCanvas(windowWidth, windowHeight);\n}\n\nfunction draw() {\n background(0, 100, 200);\n}\n\nfunction windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}\n
' - ], - alt: 'no display.', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 481, - description: - '

System variable that stores the width of the drawing canvas. This value\nis set by the first parameter of the createCanvas() function.\nFor example, the function call createCanvas(320, 240) sets the width\nvariable to the value 320. The value of width defaults to 100 if\ncreateCanvas() is not used in a program.

\n', - itemtype: 'property', - name: 'width', - type: 'Number', - readonly: '', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 493, - description: - '

System variable that stores the height of the drawing canvas. This value\nis set by the second parameter of the createCanvas() function. For\nexample, the function call createCanvas(320, 240) sets the height\nvariable to the value 240. The value of height defaults to 100 if\ncreateCanvas() is not used in a program.

\n', - itemtype: 'property', - name: 'height', - type: 'Number', - readonly: '', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 505, - description: - '

If argument is given, sets the sketch to fullscreen or not based on the\nvalue of the argument. If no argument is given, returns the current\nfullscreen state. Note that due to browser restrictions this can only\nbe called on user input, for example, on mouse press like the example\nbelow.

\n', - itemtype: 'method', - name: 'fullscreen', - params: [ - { - name: 'val', - description: - '

whether the sketch should be in fullscreen mode\nor not

\n', - type: 'Boolean', - optional: true - } - ], - return: { - description: 'current fullscreen state', - type: 'Boolean' - }, - example: [ - '\n
\n\n// Clicking in the box toggles fullscreen on and off.\nfunction setup() {\n background(200);\n}\nfunction mousePressed() {\n if (mouseX > 0 && mouseX < 100 && mouseY > 0 && mouseY < 100) {\n let fs = fullscreen();\n fullscreen(!fs);\n }\n}\n\n
' - ], - alt: 'no display.', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 556, - description: - '

Sets the pixel scaling for high pixel density displays. By default\npixel density is set to match display density, call pixelDensity(1)\nto turn this off. Calling pixelDensity() with no arguments returns\nthe current pixel density of the sketch.

\n', - itemtype: 'method', - name: 'pixelDensity', - chainable: 1, - example: [ - '\n
\n\nfunction setup() {\n pixelDensity(1);\n createCanvas(100, 100);\n background(200);\n ellipse(width / 2, height / 2, 50, 50);\n}\n\n
\n
\n\nfunction setup() {\n pixelDensity(3.0);\n createCanvas(100, 100);\n background(200);\n ellipse(width / 2, height / 2, 50, 50);\n}\n\n
' - ], - alt: - 'fuzzy 50x50 white ellipse with black outline in center of canvas.\nsharp 50x50 white ellipse with black outline in center of canvas.', - class: 'p5', - module: 'Environment', - submodule: 'Environment', - overloads: [ - { - line: 556, - params: [ - { - name: 'val', - description: '

whether or how much the sketch should scale

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 591, - params: [], - return: { - description: 'current pixel density of the sketch', - type: 'Number' - } - } - ] - }, - { - file: 'src/core/environment.js', - line: 611, - description: - '

Returns the pixel density of the current display the sketch is running on.

\n', - itemtype: 'method', - name: 'displayDensity', - return: { - description: 'current pixel density of the display', - type: 'Number' - }, - example: [ - '\n
\n\nfunction setup() {\n let density = displayDensity();\n pixelDensity(density);\n createCanvas(100, 100);\n background(200);\n ellipse(width / 2, height / 2, 50, 50);\n}\n\n
' - ], - alt: '50x50 white ellipse with black outline in center of canvas.', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 668, - description: '

Gets the current URL.

\n', - itemtype: 'method', - name: 'getURL', - return: { - description: 'url', - type: 'String' - }, - example: [ - '\n
\n\nlet url;\nlet x = 100;\n\nfunction setup() {\n fill(0);\n noStroke();\n url = getURL();\n}\n\nfunction draw() {\n background(200);\n text(url, x, height / 2);\n x--;\n}\n\n
' - ], - alt: - 'current url (http://p5js.org/reference/#/p5/getURL) moves right to left.', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 699, - description: '

Gets the current URL path as an array.

\n', - itemtype: 'method', - name: 'getURLPath', - return: { - description: 'path components', - type: 'String[]' - }, - example: [ - "\n
\nfunction setup() {\n let urlPath = getURLPath();\n for (let i = 0; i < urlPath.length; i++) {\n text(urlPath[i], 10, i * 20 + 20);\n }\n}\n
" - ], - alt: 'no display', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/environment.js', - line: 722, - description: '

Gets the current URL params as an Object.

\n', - itemtype: 'method', - name: 'getURLParams', - return: { - description: 'URL params', - type: 'Object' - }, - example: [ - "\n
\n\n// Example: http://p5js.org?year=2014&month=May&day=15\n\nfunction setup() {\n let params = getURLParams();\n text(params.day, 10, 20);\n text(params.month, 10, 40);\n text(params.year, 10, 60);\n}\n\n
" - ], - alt: 'no display.', - class: 'p5', - module: 'Environment', - submodule: 'Environment' - }, - { - file: 'src/core/error_helpers.js', - line: 1, - requires: ['core'], - class: 'p5', - module: 'Environment' - }, - { - file: 'src/core/error_helpers.js', - line: 584, - description: - '

Validates parameters\nparam {String} func the name of the function\nparam {Array} args user input arguments

\n

example:\n var a;\n ellipse(10,10,a,5);\nconsole ouput:\n "It looks like ellipse received an empty variable in spot #2."

\n

example:\n ellipse(10,"foo",5,5);\nconsole output:\n "ellipse was expecting a number for parameter #1,\n received "foo" instead."

\n', - class: 'p5', - module: 'Environment' - }, - { - file: 'src/core/error_helpers.js', - line: 645, - description: - '

Prints out all the colors in the color pallete with white text.\nFor color blindness testing.

\n', - class: 'p5', - module: 'Environment' - }, - { - file: 'src/core/helpers.js', - line: 1, - requires: ['constants'], - class: 'p5', - module: 'Environment' - }, - { - file: 'src/core/legacy.js', - line: 1, - requires: [ - 'core\nThese are functions that are part of the Processing API but are not part of\nthe p5.js API. In some cases they have a new name', - 'in others', - 'they are\nremoved completely. Not all unsupported Processing functions are listed here\nbut we try to include ones that a user coming from Processing might likely\ncall.' - ], - class: 'p5', - module: 'Environment' - }, - { - file: 'src/core/main.js', - line: 42, - description: - '

Called directly before setup(), the preload() function is used to handle\nasynchronous loading of external files in a blocking way. If a preload\nfunction is defined, setup() will wait until any load calls within have\nfinished. Nothing besides load calls (loadImage, loadJSON, loadFont,\nloadStrings, etc.) should be inside the preload function. If asynchronous\nloading is preferred, the load methods can instead be called in setup()\nor anywhere else with the use of a callback parameter.\n

\nBy default the text "loading..." will be displayed. To make your own\nloading page, include an HTML element with id "p5_loading" in your\npage. More information here.

\n', - itemtype: 'method', - name: 'preload', - example: [ - "\n
\nlet img;\nlet c;\nfunction preload() {\n // preload() runs once\n img = loadImage('assets/laDefense.jpg');\n}\n\nfunction setup() {\n // setup() waits until preload() is done\n img.loadPixels();\n // get color of middle pixel\n c = img.get(img.width / 2, img.height / 2);\n}\n\nfunction draw() {\n background(c);\n image(img, 25, 25, 50, 50);\n}\n
" - ], - alt: 'nothing displayed', - class: 'p5', - module: 'Structure', - submodule: 'Structure' - }, - { - file: 'src/core/main.js', - line: 83, - description: - '

The setup() function is called once when the program starts. It's used to\ndefine initial environment properties such as screen size and background\ncolor and to load media such as images and fonts as the program starts.\nThere can only be one setup() function for each program and it shouldn't\nbe called again after its initial execution.\n

\nNote: Variables declared within setup() are not accessible within other\nfunctions, including draw().

\n', - itemtype: 'method', - name: 'setup', - example: [ - '\n
\nlet a = 0;\n\nfunction setup() {\n background(0);\n noStroke();\n fill(102);\n}\n\nfunction draw() {\n rect(a++ % width, 10, 2, 80);\n}\n
' - ], - alt: 'nothing displayed', - class: 'p5', - module: 'Structure', - submodule: 'Structure' - }, - { - file: 'src/core/main.js', - line: 114, - description: - '

Called directly after setup(), the draw() function continuously executes\nthe lines of code contained inside its block until the program is stopped\nor noLoop() is called. Note if noLoop() is called in setup(), draw() will\nstill be executed once before stopping. draw() is called automatically and\nshould never be called explicitly.\n

\nIt should always be controlled with noLoop(), redraw() and loop(). After\nnoLoop() stops the code in draw() from executing, redraw() causes the\ncode inside draw() to execute once, and loop() will cause the code\ninside draw() to resume executing continuously.\n

\nThe number of times draw() executes in each second may be controlled with\nthe frameRate() function.\n

\nThere can only be one draw() function for each sketch, and draw() must\nexist if you want the code to run continuously, or to process events such\nas mousePressed(). Sometimes, you might have an empty call to draw() in\nyour program, as shown in the above example.\n

\nIt is important to note that the drawing coordinate system will be reset\nat the beginning of each draw() call. If any transformations are performed\nwithin draw() (ex: scale, rotate, translate), their effects will be\nundone at the beginning of draw(), so transformations will not accumulate\nover time. On the other hand, styling applied (ex: fill, stroke, etc) will\nremain in effect.

\n', - itemtype: 'method', - name: 'draw', - example: [ - '\n
\nlet yPos = 0;\nfunction setup() {\n // setup() runs once\n frameRate(30);\n}\nfunction draw() {\n // draw() loops forever, until stopped\n background(204);\n yPos = yPos - 1;\n if (yPos < 0) {\n yPos = height;\n }\n line(0, yPos, width, yPos);\n}\n
' - ], - alt: 'nothing displayed', - class: 'p5', - module: 'Structure', - submodule: 'Structure' - }, - { - file: 'src/core/main.js', - line: 396, - description: - '

Removes the entire p5 sketch. This will remove the canvas and any\nelements created by p5.js. It will also stop the draw loop and unbind\nany properties or methods from the window global scope. It will\nleave a variable p5 in case you wanted to create a new p5 sketch.\nIf you like, you can set p5 = null to erase it. While all functions and\nvariables and objects created by the p5 library will be removed, any\nother global variables created by your code will remain.

\n', - itemtype: 'method', - name: 'remove', - example: [ - "\n
\nfunction draw() {\n ellipse(50, 50, 10, 10);\n}\n\nfunction mousePressed() {\n remove(); // remove whole sketch on mouse press\n}\n
" - ], - alt: 'nothing displayed', - class: 'p5', - module: 'Structure', - submodule: 'Structure' - }, - { - file: 'src/core/main.js', - line: 577, - description: - "

Allows for the friendly error system (FES) to be turned off when creating a sketch,\nwhich can give a significant boost to performance when needed.\nSee \ndisabling the friendly error system.

\n", - itemtype: 'property', - name: 'disableFriendlyErrors', - type: 'Boolean', - example: [ - '\n
\np5.disableFriendlyErrors = true;\n\nfunction setup() {\n createCanvas(100, 50);\n}\n
' - ], - class: 'p5', - module: 'Structure', - submodule: 'Structure' - }, - { - file: 'src/core/p5.Element.js', - line: 26, - description: - '

Underlying HTML element. All normal HTML methods can be called on this.

\n', - example: [ - "\n
\n\nfunction setup() {\n let c = createCanvas(50, 50);\n c.elt.style.border = '5px solid red';\n}\n\nfunction draw() {\n background(220);\n}\n\n
" - ], - itemtype: 'property', - name: 'elt', - readonly: '', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM' - }, - { - file: 'src/core/p5.Element.js', - line: 52, - description: - "

Attaches the element to the parent specified. A way of setting\n the container for the element. Accepts either a string ID, DOM\n node, or p5.Element. If no arguments given, parent node is returned.\n For more ways to position the canvas, see the\n \n positioning the canvas wiki page.\nAll above examples except for the first one require the inclusion of\n the p5.dom library in your index.html. See the\n using a library\n section for information on how to include this library.

\n", - itemtype: 'method', - name: 'parent', - chainable: 1, - example: [ - "\n
\n // in the html file:\n // <div id=\"myContainer\"></div>\n// in the js file:\n let cnv = createCanvas(100, 100);\n cnv.parent('myContainer');\n
\n
\n let div0 = createDiv('this is the parent');\n let div1 = createDiv('this is the child');\n div1.parent(div0); // use p5.Element\n
\n
\n let div0 = createDiv('this is the parent');\n div0.id('apples');\n let div1 = createDiv('this is the child');\n div1.parent('apples'); // use id\n
\n
\n let elt = document.getElementById('myParentDiv');\n let div1 = createDiv('this is the child');\n div1.parent(elt); // use element from page\n
" - ], - alt: 'no display.', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM', - overloads: [ - { - line: 52, - params: [ - { - name: 'parent', - description: - '

the ID, DOM node, or p5.Element\n of desired parent element

\n', - type: 'String|p5.Element|Object' - } - ], - chainable: 1 - }, - { - line: 100, - params: [], - return: { - description: '', - type: 'p5.Element' - } - } - ] - }, - { - file: 'src/core/p5.Element.js', - line: 122, - description: - '

Sets the ID of the element. If no ID argument is passed in, it instead\n returns the current ID of the element.\n Note that only one element can have a particular id in a page.\n The .class() function can be used\n to identify multiple elements with the same class name.

\n', - itemtype: 'method', - name: 'id', - chainable: 1, - example: [ - "\n
\n function setup() {\n let cnv = createCanvas(100, 100);\n // Assigns a CSS selector ID to\n // the canvas element.\n cnv.id('mycanvas');\n }\n
" - ], - alt: 'no display.', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM', - overloads: [ - { - line: 122, - params: [ - { - name: 'id', - description: '

ID of the element

\n', - type: 'String' - } - ], - chainable: 1 - }, - { - line: 147, - params: [], - return: { - description: 'the id of the element', - type: 'String' - } - } - ] - }, - { - file: 'src/core/p5.Element.js', - line: 162, - description: - '

Adds given class to the element. If no class argument is passed in, it\n instead returns a string containing the current class(es) of the element.

\n', - itemtype: 'method', - name: 'class', - chainable: 1, - example: [ - "\n
\n function setup() {\n let cnv = createCanvas(100, 100);\n // Assigns a CSS selector class 'small'\n // to the canvas element.\n cnv.class('small');\n }\n
" - ], - alt: 'no display.', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM', - overloads: [ - { - line: 162, - params: [ - { - name: 'class', - description: '

class to add

\n', - type: 'String' - } - ], - chainable: 1 - }, - { - line: 184, - params: [], - return: { - description: 'the class of the element', - type: 'String' - } - } - ] - }, - { - file: 'src/core/p5.Element.js', - line: 197, - description: - '

The .mousePressed() function is called once after every time a\nmouse button is pressed over the element.\nSome mobile browsers may also trigger this event on a touch screen,\nif the user performs a quick tap.\nThis can be used to attach element specific event listeners.

\n', - itemtype: 'method', - name: 'mousePressed', - params: [ - { - name: 'fxn', - description: - '

function to be fired when mouse is\n pressed over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', - type: 'Function|Boolean' - } - ], - chainable: 1, - example: [ - "\n
\nlet cnv;\nlet d;\nlet g;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.mousePressed(changeGray); // attach listener for\n // canvas click only\n d = 10;\n g = 100;\n}\n\nfunction draw() {\n background(g);\n ellipse(width / 2, height / 2, d, d);\n}\n\n// this function fires with any click anywhere\nfunction mousePressed() {\n d = d + 10;\n}\n\n// this function fires only when cnv is clicked\nfunction changeGray() {\n g = random(0, 255);\n}\n
" - ], - alt: 'no display.', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM' - }, - { - file: 'src/core/p5.Element.js', - line: 258, - description: - '

The .doubleClicked() function is called once after every time a\nmouse button is pressed twice over the element. This can be used to\nattach element and action specific event listeners.

\n', - itemtype: 'method', - name: 'doubleClicked', - params: [ - { - name: 'fxn', - description: - '

function to be fired when mouse is\n double clicked over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', - type: 'Function|Boolean' - } - ], - return: { - description: '', - type: 'p5.Element' - }, - example: [ - "\n
\nlet cnv;\nlet d;\nlet g;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.doubleClicked(changeGray); // attach listener for\n // canvas double click only\n d = 10;\n g = 100;\n}\n\nfunction draw() {\n background(g);\n ellipse(width / 2, height / 2, d, d);\n}\n\n// this function fires with any double click anywhere\nfunction doubleClicked() {\n d = d + 10;\n}\n\n// this function fires only when cnv is double clicked\nfunction changeGray() {\n g = random(0, 255);\n}\n
" - ], - alt: 'no display.', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM' - }, - { - file: 'src/core/p5.Element.js', - line: 307, - description: - '

The .mouseWheel() function is called once after every time a\nmouse wheel is scrolled over the element. This can be used to\nattach element specific event listeners.\n

\nThe function accepts a callback function as argument which will be executed\nwhen the wheel event is triggered on the element, the callback function is\npassed one argument event. The event.deltaY property returns negative\nvalues if the mouse wheel is rotated up or away from the user and positive\nin the other direction. The event.deltaX does the same as event.deltaY\nexcept it reads the horizontal wheel scroll of the mouse wheel.\n

\nOn OS X with "natural" scrolling enabled, the event.deltaY values are\nreversed.

\n', - itemtype: 'method', - name: 'mouseWheel', - params: [ - { - name: 'fxn', - description: - '

function to be fired when mouse is\n scrolled over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', - type: 'Function|Boolean' - } - ], - chainable: 1, - example: [ - "\n
\nlet cnv;\nlet d;\nlet g;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.mouseWheel(changeSize); // attach listener for\n // activity on canvas only\n d = 10;\n g = 100;\n}\n\nfunction draw() {\n background(g);\n ellipse(width / 2, height / 2, d, d);\n}\n\n// this function fires with mousewheel movement\n// anywhere on screen\nfunction mouseWheel() {\n g = g + 10;\n}\n\n// this function fires with mousewheel movement\n// over canvas only\nfunction changeSize(event) {\n if (event.deltaY > 0) {\n d = d + 10;\n } else {\n d = d - 10;\n }\n}\n
" - ], - alt: 'no display.', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM' - }, - { - file: 'src/core/p5.Element.js', - line: 373, - description: - '

The .mouseReleased() function is called once after every time a\nmouse button is released over the element.\nSome mobile browsers may also trigger this event on a touch screen,\nif the user performs a quick tap.\nThis can be used to attach element specific event listeners.

\n', - itemtype: 'method', - name: 'mouseReleased', - params: [ - { - name: 'fxn', - description: - '

function to be fired when mouse is\n released over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', - type: 'Function|Boolean' - } - ], - chainable: 1, - example: [ - "\n
\nlet cnv;\nlet d;\nlet g;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.mouseReleased(changeGray); // attach listener for\n // activity on canvas only\n d = 10;\n g = 100;\n}\n\nfunction draw() {\n background(g);\n ellipse(width / 2, height / 2, d, d);\n}\n\n// this function fires after the mouse has been\n// released\nfunction mouseReleased() {\n d = d + 10;\n}\n\n// this function fires after the mouse has been\n// released while on canvas\nfunction changeGray() {\n g = random(0, 255);\n}\n
" - ], - alt: 'no display.', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM' - }, - { - file: 'src/core/p5.Element.js', - line: 427, - description: - '

The .mouseClicked() function is called once after a mouse button is\npressed and released over the element.\nSome mobile browsers may also trigger this event on a touch screen,\nif the user performs a quick tap.\nThis can be used to attach element specific event listeners.

\n', - itemtype: 'method', - name: 'mouseClicked', - params: [ - { - name: 'fxn', - description: - '

function to be fired when mouse is\n clicked over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', - type: 'Function|Boolean' - } - ], - chainable: 1, - example: [ - '\n
\n\nlet cnv;\nlet d;\nlet g;\n\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.mouseClicked(changeGray); // attach listener for\n // activity on canvas only\n d = 10;\n g = 100;\n}\n\nfunction draw() {\n background(g);\n ellipse(width / 2, height / 2, d, d);\n}\n\n// this function fires after the mouse has been\n// clicked anywhere\nfunction mouseClicked() {\n d = d + 10;\n}\n\n// this function fires after the mouse has been\n// clicked on canvas\nfunction changeGray() {\n g = random(0, 255);\n}\n\n
' - ], - alt: 'no display.', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM' - }, - { - file: 'src/core/p5.Element.js', - line: 483, - description: - '

The .mouseMoved() function is called once every time a\nmouse moves over the element. This can be used to attach an\nelement specific event listener.

\n', - itemtype: 'method', - name: 'mouseMoved', - params: [ - { - name: 'fxn', - description: - '

function to be fired when a mouse moves\n over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', - type: 'Function|Boolean' - } - ], - chainable: 1, - example: [ - "\n
\nlet cnv;\nlet d = 30;\nlet g;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.mouseMoved(changeSize); // attach listener for\n // activity on canvas only\n d = 10;\n g = 100;\n}\n\nfunction draw() {\n background(g);\n fill(200);\n ellipse(width / 2, height / 2, d, d);\n}\n\n// this function fires when mouse moves anywhere on\n// page\nfunction mouseMoved() {\n g = g + 5;\n if (g > 255) {\n g = 0;\n }\n}\n\n// this function fires when mouse moves over canvas\nfunction changeSize() {\n d = d + 2;\n if (d > 100) {\n d = 0;\n }\n}\n
" - ], - alt: 'no display.', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM' - }, - { - file: 'src/core/p5.Element.js', - line: 541, - description: - '

The .mouseOver() function is called once after every time a\nmouse moves onto the element. This can be used to attach an\nelement specific event listener.

\n', - itemtype: 'method', - name: 'mouseOver', - params: [ - { - name: 'fxn', - description: - '

function to be fired when a mouse moves\n onto the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', - type: 'Function|Boolean' - } - ], - chainable: 1, - example: [ - "\n
\nlet cnv;\nlet d;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.mouseOver(changeGray);\n d = 10;\n}\n\nfunction draw() {\n ellipse(width / 2, height / 2, d, d);\n}\n\nfunction changeGray() {\n d = d + 10;\n if (d > 100) {\n d = 0;\n }\n}\n
" - ], - alt: 'no display.', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM' - }, - { - file: 'src/core/p5.Element.js', - line: 584, - description: - '

The .mouseOut() function is called once after every time a\nmouse moves off the element. This can be used to attach an\nelement specific event listener.

\n', - itemtype: 'method', - name: 'mouseOut', - params: [ - { - name: 'fxn', - description: - '

function to be fired when a mouse\n moves off of an element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', - type: 'Function|Boolean' - } - ], - chainable: 1, - example: [ - "\n
\nlet cnv;\nlet d;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.mouseOut(changeGray);\n d = 10;\n}\n\nfunction draw() {\n ellipse(width / 2, height / 2, d, d);\n}\n\nfunction changeGray() {\n d = d + 10;\n if (d > 100) {\n d = 0;\n }\n}\n
" - ], - alt: 'no display.', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM' - }, - { - file: 'src/core/p5.Element.js', - line: 626, - description: - '

The .touchStarted() function is called once after every time a touch is\nregistered. This can be used to attach element specific event listeners.

\n', - itemtype: 'method', - name: 'touchStarted', - params: [ - { - name: 'fxn', - description: - '

function to be fired when a touch\n starts over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', - type: 'Function|Boolean' - } - ], - chainable: 1, - example: [ - "\n
\nlet cnv;\nlet d;\nlet g;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.touchStarted(changeGray); // attach listener for\n // canvas click only\n d = 10;\n g = 100;\n}\n\nfunction draw() {\n background(g);\n ellipse(width / 2, height / 2, d, d);\n}\n\n// this function fires with any touch anywhere\nfunction touchStarted() {\n d = d + 10;\n}\n\n// this function fires only when cnv is clicked\nfunction changeGray() {\n g = random(0, 255);\n}\n
" - ], - alt: 'no display.', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM' - }, - { - file: 'src/core/p5.Element.js', - line: 674, - description: - '

The .touchMoved() function is called once after every time a touch move is\nregistered. This can be used to attach element specific event listeners.

\n', - itemtype: 'method', - name: 'touchMoved', - params: [ - { - name: 'fxn', - description: - '

function to be fired when a touch moves over\n the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', - type: 'Function|Boolean' - } - ], - chainable: 1, - example: [ - "\n
\nlet cnv;\nlet g;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.touchMoved(changeGray); // attach listener for\n // canvas click only\n g = 100;\n}\n\nfunction draw() {\n background(g);\n}\n\n// this function fires only when cnv is clicked\nfunction changeGray() {\n g = random(0, 255);\n}\n
" - ], - alt: 'no display.', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM' - }, - { - file: 'src/core/p5.Element.js', - line: 714, - description: - '

The .touchEnded() function is called once after every time a touch is\nregistered. This can be used to attach element specific event listeners.

\n', - itemtype: 'method', - name: 'touchEnded', - params: [ - { - name: 'fxn', - description: - '

function to be fired when a touch ends\n over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', - type: 'Function|Boolean' - } - ], - chainable: 1, - example: [ - "\n
\nlet cnv;\nlet d;\nlet g;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.touchEnded(changeGray); // attach listener for\n // canvas click only\n d = 10;\n g = 100;\n}\n\nfunction draw() {\n background(g);\n ellipse(width / 2, height / 2, d, d);\n}\n\n// this function fires with any touch anywhere\nfunction touchEnded() {\n d = d + 10;\n}\n\n// this function fires only when cnv is clicked\nfunction changeGray() {\n g = random(0, 255);\n}\n
" - ], - alt: 'no display.', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM' - }, - { - file: 'src/core/p5.Element.js', - line: 763, - description: - '

The .dragOver() function is called once after every time a\nfile is dragged over the element. This can be used to attach an\nelement specific event listener.

\n', - itemtype: 'method', - name: 'dragOver', - params: [ - { - name: 'fxn', - description: - '

function to be fired when a file is\n dragged over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', - type: 'Function|Boolean' - } - ], - chainable: 1, - example: [ - "\n
\n// To test this sketch, simply drag a\n// file over the canvas\nfunction setup() {\n let c = createCanvas(100, 100);\n background(200);\n textAlign(CENTER);\n text('Drag file', width / 2, height / 2);\n c.dragOver(dragOverCallback);\n}\n\n// This function will be called whenever\n// a file is dragged over the canvas\nfunction dragOverCallback() {\n background(240);\n text('Dragged over', width / 2, height / 2);\n}\n
" - ], - alt: 'nothing displayed', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM' - }, - { - file: 'src/core/p5.Element.js', - line: 801, - description: - '

The .dragLeave() function is called once after every time a\ndragged file leaves the element area. This can be used to attach an\nelement specific event listener.

\n', - itemtype: 'method', - name: 'dragLeave', - params: [ - { - name: 'fxn', - description: - '

function to be fired when a file is\n dragged off the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', - type: 'Function|Boolean' - } - ], - chainable: 1, - example: [ - "\n
\n// To test this sketch, simply drag a file\n// over and then out of the canvas area\nfunction setup() {\n let c = createCanvas(100, 100);\n background(200);\n textAlign(CENTER);\n text('Drag file', width / 2, height / 2);\n c.dragLeave(dragLeaveCallback);\n}\n\n// This function will be called whenever\n// a file is dragged out of the canvas\nfunction dragLeaveCallback() {\n background(240);\n text('Dragged off', width / 2, height / 2);\n}\n
" - ], - alt: 'nothing displayed', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM' - }, - { - file: 'src/core/p5.Element.js', - line: 865, - description: '

Helper fxn for sharing pixel methods

\n', - class: 'p5.Element', - module: 'DOM', - submodule: 'DOM' - }, - { - file: 'src/core/p5.Graphics.js', - line: 65, - description: - "

Resets certain values such as those modified by functions in the Transform category\nand in the Lights category that are not automatically reset\nwith graphics buffer objects. Calling this in draw() will copy the behavior\nof the standard canvas.

\n", - itemtype: 'method', - name: 'reset', - example: [ - "\n\n
\nlet pg;\nfunction setup() {\n createCanvas(100, 100);\n background(0);\n pg = createGraphics(50, 100);\n pg.fill(0);\n frameRate(5);\n}\nfunction draw() {\n image(pg, width / 2, 0);\n pg.background(255);\n // p5.Graphics object behave a bit differently in some cases\n // The normal canvas on the left resets the translate\n // with every loop through draw()\n // the graphics object on the right doesn't automatically reset\n // so translate() is additive and it moves down the screen\n rect(0, 0, width / 2, 5);\n pg.rect(0, 0, width / 2, 5);\n translate(0, 5, 0);\n pg.translate(0, 5, 0);\n}\nfunction mouseClicked() {\n // if you click you will see that\n // reset() resets the translate back to the initial state\n // of the Graphics object\n pg.reset();\n}\n
" - ], - alt: - 'A white line on a black background stays still on the top-left half.\nA black line animates from top to bottom on a white background on the right half.\nWhen clicked, the black line starts back over at the top.', - class: 'p5.Graphics', - module: 'Rendering', - submodule: 'Rendering' - }, - { - file: 'src/core/p5.Graphics.js', - line: 117, - description: - '

Removes a Graphics object from the page and frees any resources\nassociated with it.

\n', - itemtype: 'method', - name: 'remove', - example: [ - "\n
\nlet bg;\nfunction setup() {\n bg = createCanvas(100, 100);\n bg.background(0);\n image(bg, 0, 0);\n bg.remove();\n}\n
\n\n
\nlet bg;\nfunction setup() {\n pixelDensity(1);\n createCanvas(100, 100);\n stroke(255);\n fill(0);\n\n // create and draw the background image\n bg = createGraphics(100, 100);\n bg.background(200);\n bg.ellipse(50, 50, 80, 80);\n}\nfunction draw() {\n let t = millis() / 1000;\n // draw the background\n if (bg) {\n image(bg, frameCount % 100, 0);\n image(bg, frameCount % 100 - 100, 0);\n }\n // draw the foreground\n let p = p5.Vector.fromAngle(t, 35).add(50, 50);\n ellipse(p.x, p.y, 30);\n}\nfunction mouseClicked() {\n // remove the background\n if (bg) {\n bg.remove();\n bg = null;\n }\n}\n
" - ], - alt: - 'no image\na multi-colored circle moving back and forth over a scrolling background.', - class: 'p5.Graphics', - module: 'Rendering', - submodule: 'Rendering' - }, - { - file: 'src/core/p5.Renderer.js', - line: 97, - description: '

Resize our canvas element.

\n', - class: 'p5.Renderer', - module: 'Rendering', - submodule: 'Rendering' - }, - { - file: 'src/core/p5.Renderer.js', - line: 335, - description: '

Helper fxn to check font type (system or otf)

\n', - class: 'p5.Renderer', - module: 'Rendering', - submodule: 'Rendering' - }, - { - file: 'src/core/p5.Renderer.js', - line: 388, - description: - '

Helper fxn to measure ascent and descent.\nAdapted from http://stackoverflow.com/a/25355178

\n', - class: 'p5.Renderer', - module: 'Rendering', - submodule: 'Rendering' - }, - { - file: 'src/core/p5.Renderer2D.js', - line: 9, - description: - '

p5.Renderer2D\nThe 2D graphics canvas renderer class.\nextends p5.Renderer

\n', - class: 'p5', - module: 'Rendering' - }, - { - file: 'src/core/p5.Renderer2D.js', - line: 407, - description: - '

Generate a cubic Bezier representing an arc on the unit circle of total\nangle size radians, beginning start radians above the x-axis. Up to\nfour of these curves are combined to make a full arc.

\n

See www.joecridge.me/bezier.pdf for an explanation of the method.

\n', - class: 'p5', - module: 'Rendering' - }, - { - file: 'src/core/rendering.js', - line: 17, - description: - '

Creates a canvas element in the document, and sets the dimensions of it\nin pixels. This method should be called only once at the start of setup.\nCalling createCanvas more than once in a sketch will result in very\nunpredictable behavior. If you want more than one drawing canvas\nyou could use createGraphics (hidden by default but it can be shown).\n

\nThe system variables width and height are set by the parameters passed\nto this function. If createCanvas() is not used, the window will be\ngiven a default size of 100x100 pixels.\n

\nFor more ways to position the canvas, see the\n\npositioning the canvas wiki page.

\n', - itemtype: 'method', - name: 'createCanvas', - params: [ - { - name: 'w', - description: '

width of the canvas

\n', - type: 'Number' - }, - { - name: 'h', - description: '

height of the canvas

\n', - type: 'Number' - }, - { - name: 'renderer', - description: '

either P2D or WEBGL

\n', - type: 'Constant', - optional: true - } - ], - return: { - description: '', - type: 'p5.Renderer' - }, - example: [ - '\n
\n\nfunction setup() {\n createCanvas(100, 50);\n background(153);\n line(0, 0, width, height);\n}\n\n
' - ], - alt: 'Black line extending from top-left of canvas to bottom right.', - class: 'p5', - module: 'Rendering', - submodule: 'Rendering' - }, - { - file: 'src/core/rendering.js', - line: 119, - description: - '

Resizes the canvas to given width and height. The canvas will be cleared\nand draw will be called immediately, allowing the sketch to re-render itself\nin the resized canvas.

\n', - itemtype: 'method', - name: 'resizeCanvas', - params: [ - { - name: 'w', - description: '

width of the canvas

\n', - type: 'Number' - }, - { - name: 'h', - description: '

height of the canvas

\n', - type: 'Number' - }, - { - name: 'noRedraw', - description: '

don't redraw the canvas immediately

\n', - type: 'Boolean', - optional: true - } - ], - example: [ - '\n
\nfunction setup() {\n createCanvas(windowWidth, windowHeight);\n}\n\nfunction draw() {\n background(0, 100, 200);\n}\n\nfunction windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}\n
' - ], - alt: 'No image displayed.', - class: 'p5', - module: 'Rendering', - submodule: 'Rendering' - }, - { - file: 'src/core/rendering.js', - line: 174, - description: - '

Removes the default canvas for a p5 sketch that doesn't\nrequire a canvas

\n', - itemtype: 'method', - name: 'noCanvas', - example: [ - '\n
\n\nfunction setup() {\n noCanvas();\n}\n\n
' - ], - alt: 'no image displayed', - class: 'p5', - module: 'Rendering', - submodule: 'Rendering' - }, - { - file: 'src/core/rendering.js', - line: 197, - description: - '

Creates and returns a new p5.Renderer object. Use this class if you need\nto draw into an off-screen graphics buffer. The two parameters define the\nwidth and height in pixels.

\n', - itemtype: 'method', - name: 'createGraphics', - params: [ - { - name: 'w', - description: '

width of the offscreen graphics buffer

\n', - type: 'Number' - }, - { - name: 'h', - description: '

height of the offscreen graphics buffer

\n', - type: 'Number' - }, - { - name: 'renderer', - description: '

either P2D or WEBGL\nundefined defaults to p2d

\n', - type: 'Constant', - optional: true - } - ], - return: { - description: 'offscreen graphics buffer', - type: 'p5.Graphics' - }, - example: [ - '\n
\n\nlet pg;\nfunction setup() {\n createCanvas(100, 100);\n pg = createGraphics(100, 100);\n}\nfunction draw() {\n background(200);\n pg.background(100);\n pg.noStroke();\n pg.ellipse(pg.width / 2, pg.height / 2, 50, 50);\n image(pg, 50, 50);\n image(pg, 0, 0, 50, 50);\n}\n\n
' - ], - alt: - '4 grey squares alternating light and dark grey. White quarter circle mid-left.', - class: 'p5', - module: 'Rendering', - submodule: 'Rendering' - }, - { - file: 'src/core/rendering.js', - line: 236, - description: - '

Blends the pixels in the display window according to the defined mode.\nThere is a choice of the following modes to blend the source pixels (A)\nwith the ones of pixels already in the display window (B):

\n

    \n

  • BLEND - linear interpolation of colours: C =\nA*factor + B. This is the default blending mode.
  • \n

  • ADD - sum of A and B
  • \n

  • DARKEST - only the darkest colour succeeds: C =\nmin(A*factor, B).
  • \n

  • LIGHTEST - only the lightest colour succeeds: C =\nmax(A*factor, B).
  • \n

  • DIFFERENCE - subtract colors from underlying image.
  • \n

  • EXCLUSION - similar to DIFFERENCE, but less\nextreme.
  • \n

  • MULTIPLY - multiply the colors, result will always be\ndarker.
  • \n

  • SCREEN - opposite multiply, uses inverse values of the\ncolors.
  • \n

  • REPLACE - the pixels entirely replace the others and\ndon't utilize alpha (transparency) values.
  • \n

  • OVERLAY - mix of MULTIPLY and SCREEN\n. Multiplies dark values, and screens light values. (2D)
  • \n

  • HARD_LIGHT - SCREEN when greater than 50%\ngray, MULTIPLY when lower. (2D)
  • \n

  • SOFT_LIGHT - mix of DARKEST and\nLIGHTEST. Works like OVERLAY, but not as harsh. (2D)\n
  • \n

  • DODGE - lightens light tones and increases contrast,\nignores darks. (2D)
  • \n

  • BURN - darker areas are applied, increasing contrast,\nignores lights. (2D)
  • \n

  • SUBTRACT - remainder of A and B (3D)
  • \n
\n

\n(2D) indicates that this blend mode only works in the 2D renderer.
\n(3D) indicates that this blend mode only works in the WEBGL renderer.

\n', - itemtype: 'method', - name: 'blendMode', - params: [ - { - name: 'mode', - description: - '

blend mode to set for canvas.\n either BLEND, DARKEST, LIGHTEST, DIFFERENCE, MULTIPLY,\n EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT,\n SOFT_LIGHT, DODGE, BURN, ADD, or SUBTRACT

\n', - type: 'Constant' - } - ], - example: [ - '\n
\n\nblendMode(LIGHTEST);\nstrokeWeight(30);\nstroke(80, 150, 255);\nline(25, 25, 75, 75);\nstroke(255, 50, 50);\nline(75, 25, 25, 75);\n\n
\n
\n\nblendMode(MULTIPLY);\nstrokeWeight(30);\nstroke(80, 150, 255);\nline(25, 25, 75, 75);\nstroke(255, 50, 50);\nline(75, 25, 25, 75);\n\n
' - ], - alt: - 'translucent image thick red & blue diagonal rounded lines intersecting center\nThick red & blue diagonal rounded lines intersecting center. dark at overlap', - class: 'p5', - module: 'Rendering', - submodule: 'Rendering' - }, - { - file: 'src/core/shim.js', - line: 23, - description: - '

shim for Uint8ClampedArray.slice\n(allows arrayCopy to work with pixels[])\nwith thanks to http://halfpapstudios.com/blog/tag/html5-canvas/\nEnumerable set to false to protect for...in from\nUint8ClampedArray.prototype pollution.

\n', - class: 'p5', - module: 'Rendering' - }, - { - file: 'src/core/shim.js', - line: 45, - description: - '

this is implementation of Object.assign() which is unavailable in\nIE11 and (non-Chrome) Android browsers.\nThe assign() method is used to copy the values of all enumerable\nown properties from one or more source objects to a target object.\nIt will return the target object.\nModified from https://github.com/ljharb/object.assign

\n', - class: 'p5', - module: 'Rendering' - }, - { - file: 'src/core/structure.js', - line: 12, - description: - '

Stops p5.js from continuously executing the code within draw().\nIf loop() is called, the code in draw() begins to run continuously again.\nIf using noLoop() in setup(), it should be the last line inside the block.\n

\nWhen noLoop() is used, it's not possible to manipulate or access the\nscreen inside event handling functions such as mousePressed() or\nkeyPressed(). Instead, use those functions to call redraw() or loop(),\nwhich will run draw(), which can update the screen properly. This means\nthat when noLoop() has been called, no drawing can happen, and functions\nlike saveFrame() or loadPixels() may not be used.\n

\nNote that if the sketch is resized, redraw() will be called to update\nthe sketch, even after noLoop() has been specified. Otherwise, the sketch\nwould enter an odd state until loop() was called.

\n', - itemtype: 'method', - name: 'noLoop', - example: [ - '\n
\nfunction setup() {\n createCanvas(100, 100);\n background(200);\n noLoop();\n}\n\nfunction draw() {\n line(10, 10, 90, 90);\n}\n
\n\n
\nlet x = 0;\nfunction setup() {\n createCanvas(100, 100);\n}\n\nfunction draw() {\n background(204);\n x = x + 0.1;\n if (x > width) {\n x = 0;\n }\n line(x, 0, x, height);\n}\n\nfunction mousePressed() {\n noLoop();\n}\n\nfunction mouseReleased() {\n loop();\n}\n
' - ], - alt: - '113 pixel long line extending from top-left to bottom right of canvas.\nhorizontal line moves slowly from left. Loops but stops on mouse press.', - class: 'p5', - module: 'Structure', - submodule: 'Structure' - }, - { - file: 'src/core/structure.js', - line: 74, - description: - '

By default, p5.js loops through draw() continuously, executing the code\nwithin it. However, the draw() loop may be stopped by calling noLoop().\nIn that case, the draw() loop can be resumed with loop().

\n

Avoid calling loop() from inside setup().

\n', - itemtype: 'method', - name: 'loop', - example: [ - '\n
\nlet x = 0;\nfunction setup() {\n createCanvas(100, 100);\n noLoop();\n}\n\nfunction draw() {\n background(204);\n x = x + 0.1;\n if (x > width) {\n x = 0;\n }\n line(x, 0, x, height);\n}\n\nfunction mousePressed() {\n loop();\n}\n\nfunction mouseReleased() {\n noLoop();\n}\n
' - ], - alt: - 'horizontal line moves slowly from left. Loops but stops on mouse press.', - class: 'p5', - module: 'Structure', - submodule: 'Structure' - }, - { - file: 'src/core/structure.js', - line: 122, - description: - '

The push() function saves the current drawing style settings and\ntransformations, while pop() restores these settings. Note that these\nfunctions are always used together. They allow you to change the style\nand transformation settings and later return to what you had. When a new\nstate is started with push(), it builds on the current style and transform\ninformation. The push() and pop() functions can be embedded to provide\nmore control. (See the second example for a demonstration.)\n

\npush() stores information related to the current transformation state\nand style settings controlled by the following functions: fill(),\nstroke(), tint(), strokeWeight(), strokeCap(), strokeJoin(),\nimageMode(), rectMode(), ellipseMode(), colorMode(), textAlign(),\ntextFont(), textSize(), textLeading().\n

\nIn WEBGL mode additional style settings are stored. These are controlled by the following functions: setCamera(), ambientLight(), directionalLight(),\npointLight(), texture(), specularMaterial(), shininess(), normalMaterial()\nand shader().

\n', - itemtype: 'method', - name: 'push', - example: [ - '\n
\n\nellipse(0, 50, 33, 33); // Left circle\n\npush(); // Start a new drawing state\nstrokeWeight(10);\nfill(204, 153, 0);\ntranslate(50, 0);\nellipse(0, 50, 33, 33); // Middle circle\npop(); // Restore original state\n\nellipse(100, 50, 33, 33); // Right circle\n\n
\n
\n\nellipse(0, 50, 33, 33); // Left circle\n\npush(); // Start a new drawing state\nstrokeWeight(10);\nfill(204, 153, 0);\nellipse(33, 50, 33, 33); // Left-middle circle\n\npush(); // Start another new drawing state\nstroke(0, 102, 153);\nellipse(66, 50, 33, 33); // Right-middle circle\npop(); // Restore previous state\n\npop(); // Restore original state\n\nellipse(100, 50, 33, 33); // Right circle\n\n
' - ], - alt: - 'Gold ellipse + thick black outline @center 2 white ellipses on left and right.\n2 Gold ellipses left black right blue stroke. 2 white ellipses on left+right.', - class: 'p5', - module: 'Structure', - submodule: 'Structure' - }, - { - file: 'src/core/structure.js', - line: 191, - description: - '

The push() function saves the current drawing style settings and\ntransformations, while pop() restores these settings. Note that these\nfunctions are always used together. They allow you to change the style\nand transformation settings and later return to what you had. When a new\nstate is started with push(), it builds on the current style and transform\ninformation. The push() and pop() functions can be embedded to provide\nmore control. (See the second example for a demonstration.)\n

\npush() stores information related to the current transformation state\nand style settings controlled by the following functions: fill(),\nstroke(), tint(), strokeWeight(), strokeCap(), strokeJoin(),\nimageMode(), rectMode(), ellipseMode(), colorMode(), textAlign(),\ntextFont(), textSize(), textLeading().\n

\nIn WEBGL mode additional style settings are stored. These are controlled by the following functions: setCamera(), ambientLight(), directionalLight(),\npointLight(), texture(), specularMaterial(), shininess(), normalMaterial()\nand shader().

\n', - itemtype: 'method', - name: 'pop', - example: [ - '\n
\n\nellipse(0, 50, 33, 33); // Left circle\n\npush(); // Start a new drawing state\ntranslate(50, 0);\nstrokeWeight(10);\nfill(204, 153, 0);\nellipse(0, 50, 33, 33); // Middle circle\npop(); // Restore original state\n\nellipse(100, 50, 33, 33); // Right circle\n\n
\n
\n\nellipse(0, 50, 33, 33); // Left circle\n\npush(); // Start a new drawing state\nstrokeWeight(10);\nfill(204, 153, 0);\nellipse(33, 50, 33, 33); // Left-middle circle\n\npush(); // Start another new drawing state\nstroke(0, 102, 153);\nellipse(66, 50, 33, 33); // Right-middle circle\npop(); // Restore previous state\n\npop(); // Restore original state\n\nellipse(100, 50, 33, 33); // Right circle\n\n
' - ], - alt: - 'Gold ellipse + thick black outline @center 2 white ellipses on left and right.\n2 Gold ellipses left black right blue stroke. 2 white ellipses on left+right.', - class: 'p5', - module: 'Structure', - submodule: 'Structure' - }, - { - file: 'src/core/structure.js', - line: 261, - description: - '

Executes the code within draw() one time. This functions allows the\n program to update the display window only when necessary, for example\n when an event registered by mousePressed() or keyPressed() occurs.\n

\n In structuring a program, it only makes sense to call redraw() within\n events such as mousePressed(). This is because redraw() does not run\n draw() immediately (it only sets a flag that indicates an update is\n needed).\n

\n The redraw() function does not work properly when called inside draw().\n To enable/disable animations, use loop() and noLoop().\n

\n In addition you can set the number of redraws per method call. Just\n add an integer as single parameter for the number of redraws.

\n', - itemtype: 'method', - name: 'redraw', - params: [ - { - name: 'n', - description: '

Redraw for n-times. The default value is 1.

\n', - type: 'Integer', - optional: true - } - ], - example: [ - "\n
\n let x = 0;\nfunction setup() {\n createCanvas(100, 100);\n noLoop();\n }\nfunction draw() {\n background(204);\n line(x, 0, x, height);\n }\nfunction mousePressed() {\n x += 1;\n redraw();\n }\n
\n
\n let x = 0;\nfunction setup() {\n createCanvas(100, 100);\n noLoop();\n }\nfunction draw() {\n background(204);\n x += 1;\n line(x, 0, x, height);\n }\nfunction mousePressed() {\n redraw(5);\n }\n
" - ], - alt: 'black line on far left of canvas\n black line on far left of canvas', - class: 'p5', - module: 'Structure', - submodule: 'Structure' - }, - { - file: 'src/core/transform.js', - line: 13, - description: - '

Multiplies the current matrix by the one specified through the parameters.\nThis is a powerful operation that can perform the equivalent of translate,\nscale, shear and rotate all at once. You can learn more about transformation\nmatrices on \nWikipedia.

\n

The naming of the arguments here follows the naming of the \nWHATWG specification and corresponds to a\ntransformation matrix of the\nform:

\n
\n

\n
\n', - itemtype: 'method', - name: 'applyMatrix', - params: [ - { - name: 'a', - description: - '

numbers which define the 2x3 matrix to be multiplied

\n', - type: 'Number' - }, - { - name: 'b', - description: - '

numbers which define the 2x3 matrix to be multiplied

\n', - type: 'Number' - }, - { - name: 'c', - description: - '

numbers which define the 2x3 matrix to be multiplied

\n', - type: 'Number' - }, - { - name: 'd', - description: - '

numbers which define the 2x3 matrix to be multiplied

\n', - type: 'Number' - }, - { - name: 'e', - description: - '

numbers which define the 2x3 matrix to be multiplied

\n', - type: 'Number' - }, - { - name: 'f', - description: - '

numbers which define the 2x3 matrix to be multiplied

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - "\n
\n\nfunction setup() {\n frameRate(10);\n rectMode(CENTER);\n}\n\nfunction draw() {\n var step = frameCount % 20;\n background(200);\n // Equivalent to translate(x, y);\n applyMatrix(1, 0, 0, 1, 40 + step, 50);\n rect(0, 0, 50, 50);\n}\n\n
\n
\n\nfunction setup() {\n frameRate(10);\n rectMode(CENTER);\n}\n\nfunction draw() {\n var step = frameCount % 20;\n background(200);\n translate(50, 50);\n // Equivalent to scale(x, y);\n applyMatrix(1 / step, 0, 0, 1 / step, 0, 0);\n rect(0, 0, 50, 50);\n}\n\n
\n
\n\nfunction setup() {\n frameRate(10);\n rectMode(CENTER);\n}\n\nfunction draw() {\n var step = frameCount % 20;\n var angle = map(step, 0, 20, 0, TWO_PI);\n var cos_a = cos(angle);\n var sin_a = sin(angle);\n background(200);\n translate(50, 50);\n // Equivalent to rotate(angle);\n applyMatrix(cos_a, sin_a, -sin_a, cos_a, 0, 0);\n rect(0, 0, 50, 50);\n}\n\n
\n
\n\nfunction setup() {\n frameRate(10);\n rectMode(CENTER);\n}\n\nfunction draw() {\n var step = frameCount % 20;\n var angle = map(step, 0, 20, -PI / 4, PI / 4);\n background(200);\n translate(50, 50);\n // equivalent to shearX(angle);\n var shear_factor = 1 / tan(PI / 2 - angle);\n applyMatrix(1, 0, shear_factor, 1, 0, 0);\n rect(0, 0, 50, 50);\n}\n\n
\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n noFill();\n}\n\nfunction draw() {\n background(200);\n rotateY(PI / 6);\n stroke(153);\n box(35);\n var rad = millis() / 1000;\n // Set rotation angles\n var ct = cos(rad);\n var st = sin(rad);\n // Matrix for rotation around the Y axis\n applyMatrix( ct, 0.0, st, 0.0,\n 0.0, 1.0, 0.0, 0.0,\n -st, 0.0, ct, 0.0,\n 0.0, 0.0, 0.0, 1.0);\n stroke(255);\n box(50);\n}\n\n
" - ], - alt: - 'A rectangle translating to the right\nA rectangle shrinking to the center\nA rectangle rotating clockwise about the center\nA rectangle shearing', - class: 'p5', - module: 'Transform', - submodule: 'Transform' - }, - { - file: 'src/core/transform.js', - line: 150, - description: - '

Replaces the current matrix with the identity matrix.

\n', - itemtype: 'method', - name: 'resetMatrix', - chainable: 1, - example: [ - '\n
\n\ntranslate(50, 50);\napplyMatrix(0.5, 0.5, -0.5, 0.5, 0, 0);\nrect(0, 0, 20, 20);\n// Note that the translate is also reset.\nresetMatrix();\nrect(0, 0, 20, 20);\n\n
' - ], - alt: 'A rotated retangle in the center with another at the top left corner', - class: 'p5', - module: 'Transform', - submodule: 'Transform' - }, - { - file: 'src/core/transform.js', - line: 176, - description: - '

Rotates a shape the amount specified by the angle parameter. This\nfunction accounts for angleMode, so angles can be entered in either\nRADIANS or DEGREES.\n

\nObjects are always rotated around their relative position to the\norigin and positive numbers rotate objects in a clockwise direction.\nTransformations apply to everything that happens after and subsequent\ncalls to the function accumulates the effect. For example, calling\nrotate(HALF_PI) and then rotate(HALF_PI) is the same as rotate(PI).\nAll tranformations are reset when draw() begins again.\n

\nTechnically, rotate() multiplies the current transformation matrix\nby a rotation matrix. This function can be further controlled by\nthe push() and pop().

\n', - itemtype: 'method', - name: 'rotate', - params: [ - { - name: 'angle', - description: - '

the angle of rotation, specified in radians\n or degrees, depending on current angleMode

\n', - type: 'Number' - }, - { - name: 'axis', - description: '

(in 3d) the axis to rotate around

\n', - type: 'p5.Vector|Number[]', - optional: true - } - ], - chainable: 1, - example: [ - '\n
\n\ntranslate(width / 2, height / 2);\nrotate(PI / 3.0);\nrect(-26, -26, 52, 52);\n\n
' - ], - alt: - 'white 52x52 rect with black outline at center rotated counter 45 degrees', - class: 'p5', - module: 'Transform', - submodule: 'Transform' - }, - { - file: 'src/core/transform.js', - line: 216, - description: '

Rotates around X axis.

\n', - itemtype: 'method', - name: 'rotateX', - params: [ - { - name: 'angle', - description: - '

the angle of rotation, specified in radians\n or degrees, depending on current angleMode

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(255);\n rotateX(millis() / 1000);\n box();\n}\n\n
" - ], - alt: '3d box rotating around the x axis.', - class: 'p5', - module: 'Transform', - submodule: 'Transform' - }, - { - file: 'src/core/transform.js', - line: 246, - description: '

Rotates around Y axis.

\n', - itemtype: 'method', - name: 'rotateY', - params: [ - { - name: 'angle', - description: - '

the angle of rotation, specified in radians\n or degrees, depending on current angleMode

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(255);\n rotateY(millis() / 1000);\n box();\n}\n\n
" - ], - alt: '3d box rotating around the y axis.', - class: 'p5', - module: 'Transform', - submodule: 'Transform' - }, - { - file: 'src/core/transform.js', - line: 276, - description: '

Rotates around Z axis. Webgl mode only.

\n', - itemtype: 'method', - name: 'rotateZ', - params: [ - { - name: 'angle', - description: - '

the angle of rotation, specified in radians\n or degrees, depending on current angleMode

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(255);\n rotateZ(millis() / 1000);\n box();\n}\n\n
" - ], - alt: '3d box rotating around the z axis.', - class: 'p5', - module: 'Transform', - submodule: 'Transform' - }, - { - file: 'src/core/transform.js', - line: 306, - description: - '

Increases or decreases the size of a shape by expanding and contracting\nvertices. Objects always scale from their relative origin to the\ncoordinate system. Scale values are specified as decimal percentages.\nFor example, the function call scale(2.0) increases the dimension of a\nshape by 200%.\n

\nTransformations apply to everything that happens after and subsequent\ncalls to the function multiply the effect. For example, calling scale(2.0)\nand then scale(1.5) is the same as scale(3.0). If scale() is called\nwithin draw(), the transformation is reset when the loop begins again.\n

\nUsing this function with the z parameter is only available in WEBGL mode.\nThis function can be further controlled with push() and pop().

\n', - itemtype: 'method', - name: 'scale', - chainable: 1, - example: [ - '\n
\n\nrect(30, 20, 50, 50);\nscale(0.5);\nrect(30, 20, 50, 50);\n\n
\n\n
\n\nrect(30, 20, 50, 50);\nscale(0.5, 1.3);\nrect(30, 20, 50, 50);\n\n
' - ], - alt: - 'white 52x52 rect with black outline at center rotated counter 45 degrees\n2 white rects with black outline- 1 50x50 at center. other 25x65 bottom left', - class: 'p5', - module: 'Transform', - submodule: 'Transform', - overloads: [ - { - line: 306, - params: [ - { - name: 's', - description: - '

percent to scale the object, or percentage to\n scale the object in the x-axis if multiple arguments\n are given

\n', - type: 'Number|p5.Vector|Number[]' - }, - { - name: 'y', - description: '

percent to scale the object in the y-axis

\n', - type: 'Number', - optional: true - }, - { - name: 'z', - description: - '

percent to scale the object in the z-axis (webgl only)

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 351, - params: [ - { - name: 'scales', - description: '

per-axis percents to scale the object

\n', - type: 'p5.Vector|Number[]' - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/core/transform.js', - line: 381, - description: - '

Shears a shape around the x-axis the amount specified by the angle\nparameter. Angles should be specified in the current angleMode.\nObjects are always sheared around their relative position to the origin\nand positive numbers shear objects in a clockwise direction.\n

\nTransformations apply to everything that happens after and subsequent\ncalls to the function accumulates the effect. For example, calling\nshearX(PI/2) and then shearX(PI/2) is the same as shearX(PI).\nIf shearX() is called within the draw(), the transformation is reset when\nthe loop begins again.\n

\nTechnically, shearX() multiplies the current transformation matrix by a\nrotation matrix. This function can be further controlled by the\npush() and pop() functions.

\n', - itemtype: 'method', - name: 'shearX', - params: [ - { - name: 'angle', - description: - '

angle of shear specified in radians or degrees,\n depending on current angleMode

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - '\n
\n\ntranslate(width / 4, height / 4);\nshearX(PI / 4.0);\nrect(0, 0, 30, 30);\n\n
' - ], - alt: 'white irregular quadrilateral with black outline at top middle.', - class: 'p5', - module: 'Transform', - submodule: 'Transform' - }, - { - file: 'src/core/transform.js', - line: 421, - description: - '

Shears a shape around the y-axis the amount specified by the angle\nparameter. Angles should be specified in the current angleMode. Objects\nare always sheared around their relative position to the origin and\npositive numbers shear objects in a clockwise direction.\n

\nTransformations apply to everything that happens after and subsequent\ncalls to the function accumulates the effect. For example, calling\nshearY(PI/2) and then shearY(PI/2) is the same as shearY(PI). If\nshearY() is called within the draw(), the transformation is reset when\nthe loop begins again.\n

\nTechnically, shearY() multiplies the current transformation matrix by a\nrotation matrix. This function can be further controlled by the\npush() and pop() functions.

\n', - itemtype: 'method', - name: 'shearY', - params: [ - { - name: 'angle', - description: - '

angle of shear specified in radians or degrees,\n depending on current angleMode

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - '\n
\n\ntranslate(width / 4, height / 4);\nshearY(PI / 4.0);\nrect(0, 0, 30, 30);\n\n
' - ], - alt: 'white irregular quadrilateral with black outline at middle bottom.', - class: 'p5', - module: 'Transform', - submodule: 'Transform' - }, - { - file: 'src/core/transform.js', - line: 461, - description: - '

Specifies an amount to displace objects within the display window.\nThe x parameter specifies left/right translation, the y parameter\nspecifies up/down translation.\n

\nTransformations are cumulative and apply to everything that happens after\nand subsequent calls to the function accumulates the effect. For example,\ncalling translate(50, 0) and then translate(20, 0) is the same as\ntranslate(70, 0). If translate() is called within draw(), the\ntransformation is reset when the loop begins again. This function can be\nfurther controlled by using push() and pop().

\n', - itemtype: 'method', - name: 'translate', - chainable: 1, - example: [ - '\n
\n\ntranslate(30, 20);\nrect(0, 0, 55, 55);\n\n
\n\n
\n\nrect(0, 0, 55, 55); // Draw rect at original 0,0\ntranslate(30, 20);\nrect(0, 0, 55, 55); // Draw rect at new 0,0\ntranslate(14, 14);\nrect(0, 0, 55, 55); // Draw rect at new 0,0\n\n
\n\n\n
\n\nfunction draw() {\n background(200);\n rectMode(CENTER);\n translate(width / 2, height / 2);\n translate(p5.Vector.fromAngle(millis() / 1000, 40));\n rect(0, 0, 20, 20);\n}\n\n
' - ], - alt: - 'white 55x55 rect with black outline at center right.\n3 white 55x55 rects with black outlines at top-l, center-r and bottom-r.\na 20x20 white rect moving in a circle around the canvas', - class: 'p5', - module: 'Transform', - submodule: 'Transform', - overloads: [ - { - line: 461, - params: [ - { - name: 'x', - description: '

left/right translation

\n', - type: 'Number' - }, - { - name: 'y', - description: '

up/down translation

\n', - type: 'Number' - }, - { - name: 'z', - description: '

forward/backward translation (webgl only)

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 515, - params: [ - { - name: 'vector', - description: '

the vector to translate by

\n', - type: 'p5.Vector' - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/data/local_storage.js', - line: 11, - description: - '

Stores a value in local storage under the key name.\n Local storage is saved in the browser and persists\n between browsing sessions and page reloads.\n The key can be the name of the variable but doesn't\n have to be. To retrieve stored items\n see getItem.\n

\n Sensitive data such as passwords or personal information\n should not be stored in local storage.

\n', - itemtype: 'method', - name: 'storeItem', - params: [ - { - name: 'key', - description: '', - type: 'String' - }, - { - name: 'value', - description: '', - type: 'String|Number|Object|Boolean|p5.Color' - } - ], - example: [ - "\n
\n // Type to change the letter in the\n // center of the canvas.\n // If you reload the page, it will\n // still display the last key you entered\nlet myText;\nfunction setup() {\n createCanvas(100, 100);\n myText = getItem('myText');\n if (myText === null) {\n myText = '';\n }\n }\nfunction draw() {\n textSize(40);\n background(255);\n text(myText, width / 2, height / 2);\n }\nfunction keyPressed() {\n myText = key;\n storeItem('myText', myText);\n }\n
" - ], - alt: - 'When you type the key name is displayed as black text on white background.\n If you reload the page, the last letter typed is still displaying.', - class: 'p5', - module: 'Data', - submodule: 'LocalStorage' - }, - { - file: 'src/data/local_storage.js', - line: 88, - description: - '

Returns the value of an item that was stored in local storage\n using storeItem()

\n', - itemtype: 'method', - name: 'getItem', - params: [ - { - name: 'key', - description: - '

name that you wish to use to store in local storage

\n', - type: 'String' - } - ], - return: { - description: 'Value of stored item', - type: 'Number|Object|String|Boolean|p5.Color' - }, - example: [ - "\n
\n // Click the mouse to change\n // the color of the background\n // Once you have changed the color\n // it will stay changed even when you\n // reload the page.\nlet myColor;\nfunction setup() {\n createCanvas(100, 100);\n myColor = getItem('myColor');\n }\nfunction draw() {\n if (myColor !== null) {\n background(myColor);\n }\n }\nfunction mousePressed() {\n myColor = color(random(255), random(255), random(255));\n storeItem('myColor', myColor);\n }\n
" - ], - alt: - 'If you click, the canvas changes to a random color.\n If you reload the page, the canvas is still the color it\n was when the page was previously loaded.', - class: 'p5', - module: 'Data', - submodule: 'LocalStorage' - }, - { - file: 'src/data/local_storage.js', - line: 163, - description: - '

Clears all local storage items set with storeItem()\n for the current domain.

\n', - itemtype: 'method', - name: 'clearStorage', - example: [ - "\n
\n \n function setup() {\n let myNum = 10;\n let myBool = false;\n storeItem('myNum', myNum);\n storeItem('myBool', myBool);\n print(getItem('myNum')); // logs 10 to the console\n print(getItem('myBool')); // logs false to the console\n clearStorage();\n print(getItem('myNum')); // logs null to the console\n print(getItem('myBool')); // logs null to the console\n }\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'LocalStorage' - }, - { - file: 'src/data/local_storage.js', - line: 191, - description: '

Removes an item that was stored with storeItem()

\n', - itemtype: 'method', - name: 'removeItem', - params: [ - { - name: 'key', - description: '', - type: 'String' - } - ], - example: [ - "\n
\n \n function setup() {\n let myVar = 10;\n storeItem('myVar', myVar);\n print(getItem('myVar')); // logs 10 to the console\n removeItem('myVar');\n print(getItem('myVar')); // logs null to the console\n }\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'LocalStorage' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 16, - description: - '

Creates a new instance of p5.StringDict using the key-value pair\n or the object you provide.

\n', - itemtype: 'method', - name: 'createStringDict', - return: { - description: '', - type: 'p5.StringDict' - }, - example: [ - "\n
\n \n function setup() {\n let myDictionary = createStringDict('p5', 'js');\n print(myDictionary.hasKey('p5')); // logs true to console\n let anotherDictionary = createStringDict({ happy: 'coding' });\n print(anotherDictionary.hasKey('happy')); // logs true to console\n }\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'Dictionary', - overloads: [ - { - line: 16, - params: [ - { - name: 'key', - description: '', - type: 'String' - }, - { - name: 'value', - description: '', - type: 'String' - } - ], - return: { - description: '', - type: 'p5.StringDict' - } - }, - { - line: 39, - params: [ - { - name: 'object', - description: '

object

\n', - type: 'Object' - } - ], - return: { - description: '', - type: 'p5.StringDict' - } - } - ] - }, - { - file: 'src/data/p5.TypedDict.js', - line: 50, - description: - '

Creates a new instance of p5.NumberDict using the key-value pair\n or object you provide.

\n', - itemtype: 'method', - name: 'createNumberDict', - return: { - description: '', - type: 'p5.NumberDict' - }, - example: [ - '\n
\n \n function setup() {\n let myDictionary = createNumberDict(100, 42);\n print(myDictionary.hasKey(100)); // logs true to console\n let anotherDictionary = createNumberDict({ 200: 84 });\n print(anotherDictionary.hasKey(200)); // logs true to console\n }\n
' - ], - class: 'p5', - module: 'Data', - submodule: 'Dictionary', - overloads: [ - { - line: 50, - params: [ - { - name: 'key', - description: '', - type: 'Number' - }, - { - name: 'value', - description: '', - type: 'Number' - } - ], - return: { - description: '', - type: 'p5.NumberDict' - } - }, - { - line: 73, - params: [ - { - name: 'object', - description: '

object

\n', - type: 'Object' - } - ], - return: { - description: '', - type: 'p5.NumberDict' - } - } - ] - }, - { - file: 'src/data/p5.TypedDict.js', - line: 103, - description: - '

Returns the number of key-value pairs currently stored in the Dictionary.

\n', - itemtype: 'method', - name: 'size', - return: { - description: 'the number of key-value pairs in the Dictionary', - type: 'Integer' - }, - example: [ - '\n
\n\nfunction setup() {\n let myDictionary = createNumberDict(1, 10);\n myDictionary.create(2, 20);\n myDictionary.create(3, 30);\n print(myDictionary.size()); // logs 3 to the console\n}\n
\n' - ], - class: 'p5.TypedDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 125, - description: - '

Returns true if the given key exists in the Dictionary,\notherwise returns false.

\n', - itemtype: 'method', - name: 'hasKey', - params: [ - { - name: 'key', - description: '

that you want to look up

\n', - type: 'Number|String' - } - ], - return: { - description: 'whether that key exists in Dictionary', - type: 'Boolean' - }, - example: [ - "\n
\n\nfunction setup() {\n let myDictionary = createStringDict('p5', 'js');\n print(myDictionary.hasKey('p5')); // logs true to console\n}\n
\n" - ], - class: 'p5.TypedDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 148, - description: '

Returns the value stored at the given key.

\n', - itemtype: 'method', - name: 'get', - params: [ - { - name: 'the', - description: '

key you want to access

\n', - type: 'Number|String' - } - ], - return: { - description: 'the value stored at that key', - type: 'Number|String' - }, - example: [ - "\n
\n\nfunction setup() {\n let myDictionary = createStringDict('p5', 'js');\n let myValue = myDictionary.get('p5');\n print(myValue === 'js'); // logs true to console\n}\n
\n" - ], - class: 'p5.TypedDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 175, - description: - '

Updates the value associated with the given key in case it already exists\nin the Dictionary. Otherwise a new key-value pair is added.

\n', - itemtype: 'method', - name: 'set', - params: [ - { - name: 'key', - description: '', - type: 'Number|String' - }, - { - name: 'value', - description: '', - type: 'Number|String' - } - ], - example: [ - "\n
\n\nfunction setup() {\n let myDictionary = createStringDict('p5', 'js');\n myDictionary.set('p5', 'JS');\n myDictionary.print(); // logs \"key: p5 - value: JS\" to console\n}\n
\n" - ], - class: 'p5.TypedDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 203, - description: - '

private helper function to handle the user passing in objects\nduring construction or calls to create()

\n', - class: 'p5.TypedDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 214, - description: '

Creates a new key-value pair in the Dictionary.

\n', - itemtype: 'method', - name: 'create', - example: [ - "\n
\n\nfunction setup() {\n let myDictionary = createStringDict('p5', 'js');\n myDictionary.create('happy', 'coding');\n myDictionary.print();\n // above logs \"key: p5 - value: js, key: happy - value: coding\" to console\n}\n
" - ], - class: 'p5.TypedDict', - module: 'Data', - submodule: 'Dictionary', - overloads: [ - { - line: 214, - params: [ - { - name: 'key', - description: '', - type: 'Number|String' - }, - { - name: 'value', - description: '', - type: 'Number|String' - } - ] - }, - { - line: 232, - params: [ - { - name: 'obj', - description: '

key/value pair

\n', - type: 'Object' - } - ] - } - ] - }, - { - file: 'src/data/p5.TypedDict.js', - line: 250, - description: - '

Removes all previously stored key-value pairs from the Dictionary.

\n', - itemtype: 'method', - name: 'clear', - example: [ - "\n
\n\nfunction setup() {\n let myDictionary = createStringDict('p5', 'js');\n print(myDictionary.hasKey('p5')); // prints 'true'\n myDictionary.clear();\n print(myDictionary.hasKey('p5')); // prints 'false'\n}\n\n
" - ], - class: 'p5.TypedDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 271, - description: - '

Removes the key-value pair stored at the given key from the Dictionary.

\n', - itemtype: 'method', - name: 'remove', - params: [ - { - name: 'key', - description: '

for the pair to remove

\n', - type: 'Number|String' - } - ], - example: [ - "\n
\n\nfunction setup() {\n let myDictionary = createStringDict('p5', 'js');\n myDictionary.create('happy', 'coding');\n myDictionary.print();\n // above logs \"key: p5 - value: js, key: happy - value: coding\" to console\n myDictionary.remove('p5');\n myDictionary.print();\n // above logs \"key: happy value: coding\" to console\n}\n
\n" - ], - class: 'p5.TypedDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 301, - description: - '

Logs the set of items currently stored in the Dictionary to the console.

\n', - itemtype: 'method', - name: 'print', - example: [ - "\n
\n\nfunction setup() {\n let myDictionary = createStringDict('p5', 'js');\n myDictionary.create('happy', 'coding');\n myDictionary.print();\n // above logs \"key: p5 - value: js, key: happy - value: coding\" to console\n}\n\n
" - ], - class: 'p5.TypedDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 325, - description: - '

Converts the Dictionary into a CSV file for local download.

\n', - itemtype: 'method', - name: 'saveTable', - example: [ - "\n
\n\nfunction setup() {\n createCanvas(100, 100);\n background(200);\n text('click here to save', 10, 10, 70, 80);\n}\n\nfunction mousePressed() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n createStringDict({\n john: 1940,\n paul: 1942,\n george: 1943,\n ringo: 1940\n }).saveTable('beatles');\n }\n}\n\n
" - ], - class: 'p5.TypedDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 363, - description: - '

Converts the Dictionary into a JSON file for local download.

\n', - itemtype: 'method', - name: 'saveJSON', - example: [ - "\n
\n\nfunction setup() {\n createCanvas(100, 100);\n background(200);\n text('click here to save', 10, 10, 70, 80);\n}\n\nfunction mousePressed() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n createStringDict({\n john: 1940,\n paul: 1942,\n george: 1943,\n ringo: 1940\n }).saveJSON('beatles');\n }\n}\n\n
" - ], - class: 'p5.TypedDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 394, - description: - '

private helper function to ensure that the user passed in valid\nvalues for the Dictionary type

\n', - class: 'p5.TypedDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 437, - description: - '

private helper function to ensure that the user passed in valid\nvalues for the Dictionary type

\n', - class: 'p5.NumberDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 446, - description: - '

Add the given number to the value currently stored at the given key.\nThe sum then replaces the value previously stored in the Dictionary.

\n', - itemtype: 'method', - name: 'add', - params: [ - { - name: 'Key', - description: '

for the value you wish to add to

\n', - type: 'Number' - }, - { - name: 'Number', - description: '

to add to the value

\n', - type: 'Number' - } - ], - example: [ - "\n
\n\nfunction setup() {\n let myDictionary = createNumberDict(2, 5);\n myDictionary.add(2, 2);\n print(myDictionary.get(2)); // logs 7 to console.\n}\n
\n\n" - ], - class: 'p5.NumberDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 474, - description: - '

Subtract the given number from the value currently stored at the given key.\nThe difference then replaces the value previously stored in the Dictionary.

\n', - itemtype: 'method', - name: 'sub', - params: [ - { - name: 'Key', - description: '

for the value you wish to subtract from

\n', - type: 'Number' - }, - { - name: 'Number', - description: '

to subtract from the value

\n', - type: 'Number' - } - ], - example: [ - "\n
\n\nfunction setup() {\n let myDictionary = createNumberDict(2, 5);\n myDictionary.sub(2, 2);\n print(myDictionary.get(2)); // logs 3 to console.\n}\n
\n\n" - ], - class: 'p5.NumberDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 498, - description: - '

Multiply the given number with the value currently stored at the given key.\nThe product then replaces the value previously stored in the Dictionary.

\n', - itemtype: 'method', - name: 'mult', - params: [ - { - name: 'Key', - description: '

for value you wish to multiply

\n', - type: 'Number' - }, - { - name: 'Amount', - description: '

to multiply the value by

\n', - type: 'Number' - } - ], - example: [ - "\n
\n\nfunction setup() {\n let myDictionary = createNumberDict(2, 4);\n myDictionary.mult(2, 2);\n print(myDictionary.get(2)); // logs 8 to console.\n}\n
\n\n" - ], - class: 'p5.NumberDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 526, - description: - '

Divide the given number with the value currently stored at the given key.\nThe quotient then replaces the value previously stored in the Dictionary.

\n', - itemtype: 'method', - name: 'div', - params: [ - { - name: 'Key', - description: '

for value you wish to divide

\n', - type: 'Number' - }, - { - name: 'Amount', - description: '

to divide the value by

\n', - type: 'Number' - } - ], - example: [ - "\n
\n\nfunction setup() {\n let myDictionary = createNumberDict(2, 8);\n myDictionary.div(2, 2);\n print(myDictionary.get(2)); // logs 4 to console.\n}\n
\n\n" - ], - class: 'p5.NumberDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 554, - description: - '

private helper function for finding lowest or highest value\nthe argument 'flip' is used to flip the comparison arrow\nfrom 'less than' to 'greater than'

\n', - class: 'p5.NumberDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 579, - description: - '

Return the lowest number currently stored in the Dictionary.

\n', - itemtype: 'method', - name: 'minValue', - return: { - description: '', - type: 'Number' - }, - example: [ - "\n
\n\nfunction setup() {\n let myDictionary = createNumberDict({ 2: -10, 4: 0.65, 1.2: 3 });\n let lowestValue = myDictionary.minValue(); // value is -10\n print(lowestValue);\n}\n
\n" - ], - class: 'p5.NumberDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 600, - description: - '

Return the highest number currently stored in the Dictionary.

\n', - itemtype: 'method', - name: 'maxValue', - return: { - description: '', - type: 'Number' - }, - example: [ - "\n
\n\nfunction setup() {\n let myDictionary = createNumberDict({ 2: -10, 4: 0.65, 1.2: 3 });\n let highestValue = myDictionary.maxValue(); // value is 3\n print(highestValue);\n}\n
\n" - ], - class: 'p5.NumberDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 621, - description: - '

private helper function for finding lowest or highest key\nthe argument 'flip' is used to flip the comparison arrow\nfrom 'less than' to 'greater than'

\n', - class: 'p5.NumberDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 644, - description: - '

Return the lowest key currently used in the Dictionary.

\n', - itemtype: 'method', - name: 'minKey', - return: { - description: '', - type: 'Number' - }, - example: [ - "\n
\n\nfunction setup() {\n let myDictionary = createNumberDict({ 2: 4, 4: 6, 1.2: 3 });\n let lowestKey = myDictionary.minKey(); // value is 1.2\n print(lowestKey);\n}\n
\n" - ], - class: 'p5.NumberDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/data/p5.TypedDict.js', - line: 665, - description: - '

Return the highest key currently used in the Dictionary.

\n', - itemtype: 'method', - name: 'maxKey', - return: { - description: '', - type: 'Number' - }, - example: [ - "\n
\n\nfunction setup() {\n let myDictionary = createNumberDict({ 2: 4, 4: 6, 1.2: 3 });\n let highestKey = myDictionary.maxKey(); // value is 4\n print(highestKey);\n}\n
\n" - ], - class: 'p5.NumberDict', - module: 'Data', - submodule: 'Dictionary' - }, - { - file: 'src/events/acceleration.js', - line: 12, - description: - '

The system variable deviceOrientation always contains the orientation of\nthe device. The value of this variable will either be set 'landscape'\nor 'portrait'. If no data is available it will be set to 'undefined'.\neither LANDSCAPE or PORTRAIT.

\n', - itemtype: 'property', - name: 'deviceOrientation', - type: 'Constant', - readonly: '', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 23, - description: - '

The system variable accelerationX always contains the acceleration of the\ndevice along the x axis. Value is represented as meters per second squared.

\n', - itemtype: 'property', - name: 'accelerationX', - type: 'Number', - readonly: '', - example: [ - "\n
\n\n// Move a touchscreen device to register\n// acceleration changes.\nfunction draw() {\n background(220, 50);\n fill('magenta');\n ellipse(width / 2, height / 2, accelerationX);\n}\n\n
" - ], - alt: 'Magnitude of device acceleration is displayed as ellipse size', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 46, - description: - '

The system variable accelerationY always contains the acceleration of the\ndevice along the y axis. Value is represented as meters per second squared.

\n', - itemtype: 'property', - name: 'accelerationY', - type: 'Number', - readonly: '', - example: [ - "\n
\n\n// Move a touchscreen device to register\n// acceleration changes.\nfunction draw() {\n background(220, 50);\n fill('magenta');\n ellipse(width / 2, height / 2, accelerationY);\n}\n\n
" - ], - alt: 'Magnitude of device acceleration is displayed as ellipse size', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 69, - description: - '

The system variable accelerationZ always contains the acceleration of the\ndevice along the z axis. Value is represented as meters per second squared.

\n', - itemtype: 'property', - name: 'accelerationZ', - type: 'Number', - readonly: '', - example: [ - "\n
\n\n// Move a touchscreen device to register\n// acceleration changes.\nfunction draw() {\n background(220, 50);\n fill('magenta');\n ellipse(width / 2, height / 2, accelerationZ);\n}\n\n
" - ], - alt: 'Magnitude of device acceleration is displayed as ellipse size', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 94, - description: - '

The system variable pAccelerationX always contains the acceleration of the\ndevice along the x axis in the frame previous to the current frame. Value\nis represented as meters per second squared.

\n', - itemtype: 'property', - name: 'pAccelerationX', - type: 'Number', - readonly: '', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 104, - description: - '

The system variable pAccelerationY always contains the acceleration of the\ndevice along the y axis in the frame previous to the current frame. Value\nis represented as meters per second squared.

\n', - itemtype: 'property', - name: 'pAccelerationY', - type: 'Number', - readonly: '', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 114, - description: - '

The system variable pAccelerationZ always contains the acceleration of the\ndevice along the z axis in the frame previous to the current frame. Value\nis represented as meters per second squared.

\n', - itemtype: 'property', - name: 'pAccelerationZ', - type: 'Number', - readonly: '', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 135, - description: - '

The system variable rotationX always contains the rotation of the\ndevice along the x axis. Value is represented as 0 to +/-180 degrees.\n

\nNote: The order the rotations are called is important, ie. if used\ntogether, it must be called in the order Z-X-Y or there might be\nunexpected behaviour.

\n', - itemtype: 'property', - name: 'rotationX', - type: 'Number', - readonly: '', - example: [ - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n //rotateZ(radians(rotationZ));\n rotateX(radians(rotationX));\n //rotateY(radians(rotationY));\n box(200, 200, 200);\n}\n\n
' - ], - alt: - 'red horizontal line right, green vertical line bottom. black background.', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 166, - description: - '

The system variable rotationY always contains the rotation of the\ndevice along the y axis. Value is represented as 0 to +/-90 degrees.\n

\nNote: The order the rotations are called is important, ie. if used\ntogether, it must be called in the order Z-X-Y or there might be\nunexpected behaviour.

\n', - itemtype: 'property', - name: 'rotationY', - type: 'Number', - readonly: '', - example: [ - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n //rotateZ(radians(rotationZ));\n //rotateX(radians(rotationX));\n rotateY(radians(rotationY));\n box(200, 200, 200);\n}\n\n
' - ], - alt: - 'red horizontal line right, green vertical line bottom. black background.', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 197, - description: - '

The system variable rotationZ always contains the rotation of the\ndevice along the z axis. Value is represented as 0 to 359 degrees.\n

\nUnlike rotationX and rotationY, this variable is available for devices\nwith a built-in compass only.\n

\nNote: The order the rotations are called is important, ie. if used\ntogether, it must be called in the order Z-X-Y or there might be\nunexpected behaviour.

\n', - example: [ - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n rotateZ(radians(rotationZ));\n //rotateX(radians(rotationX));\n //rotateY(radians(rotationY));\n box(200, 200, 200);\n}\n\n
' - ], - itemtype: 'property', - name: 'rotationZ', - type: 'Number', - readonly: '', - alt: - 'red horizontal line right, green vertical line bottom. black background.', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 233, - description: - '

The system variable pRotationX always contains the rotation of the\ndevice along the x axis in the frame previous to the current frame. Value\nis represented as 0 to +/-180 degrees.\n

\npRotationX can also be used with rotationX to determine the rotate\ndirection of the device along the X-axis.

\n', - example: [ - "\n
\n\n// A simple if statement looking at whether\n// rotationX - pRotationX < 0 is true or not will be\n// sufficient for determining the rotate direction\n// in most cases.\n\n// Some extra logic is needed to account for cases where\n// the angles wrap around.\nlet rotateDirection = 'clockwise';\n\n// Simple range conversion to make things simpler.\n// This is not absolutely necessary but the logic\n// will be different in that case.\n\nlet rX = rotationX + 180;\nlet pRX = pRotationX + 180;\n\nif ((rX - pRX > 0 && rX - pRX < 270) || rX - pRX < -270) {\n rotateDirection = 'clockwise';\n} else if (rX - pRX < 0 || rX - pRX > 270) {\n rotateDirection = 'counter-clockwise';\n}\n\nprint(rotateDirection);\n\n
" - ], - alt: 'no image to display.', - itemtype: 'property', - name: 'pRotationX', - type: 'Number', - readonly: '', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 278, - description: - '

The system variable pRotationY always contains the rotation of the\ndevice along the y axis in the frame previous to the current frame. Value\nis represented as 0 to +/-90 degrees.\n

\npRotationY can also be used with rotationY to determine the rotate\ndirection of the device along the Y-axis.

\n', - example: [ - "\n
\n\n// A simple if statement looking at whether\n// rotationY - pRotationY < 0 is true or not will be\n// sufficient for determining the rotate direction\n// in most cases.\n\n// Some extra logic is needed to account for cases where\n// the angles wrap around.\nlet rotateDirection = 'clockwise';\n\n// Simple range conversion to make things simpler.\n// This is not absolutely necessary but the logic\n// will be different in that case.\n\nlet rY = rotationY + 180;\nlet pRY = pRotationY + 180;\n\nif ((rY - pRY > 0 && rY - pRY < 270) || rY - pRY < -270) {\n rotateDirection = 'clockwise';\n} else if (rY - pRY < 0 || rY - pRY > 270) {\n rotateDirection = 'counter-clockwise';\n}\nprint(rotateDirection);\n\n
" - ], - alt: 'no image to display.', - itemtype: 'property', - name: 'pRotationY', - type: 'Number', - readonly: '', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 322, - description: - '

The system variable pRotationZ always contains the rotation of the\ndevice along the z axis in the frame previous to the current frame. Value\nis represented as 0 to 359 degrees.\n

\npRotationZ can also be used with rotationZ to determine the rotate\ndirection of the device along the Z-axis.

\n', - example: [ - "\n
\n\n// A simple if statement looking at whether\n// rotationZ - pRotationZ < 0 is true or not will be\n// sufficient for determining the rotate direction\n// in most cases.\n\n// Some extra logic is needed to account for cases where\n// the angles wrap around.\nlet rotateDirection = 'clockwise';\n\nif (\n (rotationZ - pRotationZ > 0 && rotationZ - pRotationZ < 270) ||\n rotationZ - pRotationZ < -270\n) {\n rotateDirection = 'clockwise';\n} else if (rotationZ - pRotationZ < 0 || rotationZ - pRotationZ > 270) {\n rotateDirection = 'counter-clockwise';\n}\nprint(rotateDirection);\n\n
" - ], - alt: 'no image to display.', - itemtype: 'property', - name: 'pRotationZ', - type: 'Number', - readonly: '', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 380, - description: - '

When a device is rotated, the axis that triggers the deviceTurned()\nmethod is stored in the turnAxis variable. The turnAxis variable is only defined within\nthe scope of deviceTurned().

\n', - itemtype: 'property', - name: 'turnAxis', - type: 'String', - readonly: '', - example: [ - "\n
\n\n// Run this example on a mobile device\n// Rotate the device by 90 degrees in the\n// X-axis to change the value.\n\nvar value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction deviceTurned() {\n if (turnAxis === 'X') {\n if (value === 0) {\n value = 255;\n } else if (value === 255) {\n value = 0;\n }\n }\n}\n\n
" - ], - alt: - '50x50 black rect in center of canvas. turns white on mobile when device turns\n50x50 black rect in center of canvas. turns white on mobile when x-axis turns', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 419, - description: - '

The setMoveThreshold() function is used to set the movement threshold for\nthe deviceMoved() function. The default threshold is set to 0.5.

\n', - itemtype: 'method', - name: 'setMoveThreshold', - params: [ - { - name: 'value', - description: '

The threshold value

\n', - type: 'Number' - } - ], - example: [ - '\n
\n\n// Run this example on a mobile device\n// You will need to move the device incrementally further\n// the closer the square\'s color gets to white in order to change the value.\n\nlet value = 0;\nlet threshold = 0.5;\nfunction setup() {\n setMoveThreshold(threshold);\n}\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction deviceMoved() {\n value = value + 5;\n threshold = threshold + 0.1;\n if (value > 255) {\n value = 0;\n threshold = 30;\n }\n setMoveThreshold(threshold);\n}\n\n
' - ], - alt: - '50x50 black rect in center of canvas. turns white on mobile when device moves', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 462, - description: - '

The setShakeThreshold() function is used to set the movement threshold for\nthe deviceShaken() function. The default threshold is set to 30.

\n', - itemtype: 'method', - name: 'setShakeThreshold', - params: [ - { - name: 'value', - description: '

The threshold value

\n', - type: 'Number' - } - ], - example: [ - '\n
\n\n// Run this example on a mobile device\n// You will need to shake the device more firmly\n// the closer the box\'s fill gets to white in order to change the value.\n\nlet value = 0;\nlet threshold = 30;\nfunction setup() {\n setShakeThreshold(threshold);\n}\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction deviceMoved() {\n value = value + 5;\n threshold = threshold + 5;\n if (value > 255) {\n value = 0;\n threshold = 30;\n }\n setShakeThreshold(threshold);\n}\n\n
' - ], - alt: - '50x50 black rect in center of canvas. turns white on mobile when device\nis being shaked', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 506, - description: - '

The deviceMoved() function is called when the device is moved by more than\nthe threshold value along X, Y or Z axis. The default threshold is set to 0.5.\nThe threshold value can be changed using setMoveThreshold().

\n', - itemtype: 'method', - name: 'deviceMoved', - example: [ - '\n
\n\n// Run this example on a mobile device\n// Move the device around\n// to change the value.\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction deviceMoved() {\n value = value + 5;\n if (value > 255) {\n value = 0;\n }\n}\n\n
' - ], - alt: - '50x50 black rect in center of canvas. turns white on mobile when device moves', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 538, - description: - '

The deviceTurned() function is called when the device rotates by\nmore than 90 degrees continuously.\n

\nThe axis that triggers the deviceTurned() method is stored in the turnAxis\nvariable. The deviceTurned() method can be locked to trigger on any axis:\nX, Y or Z by comparing the turnAxis variable to 'X', 'Y' or 'Z'.

\n', - itemtype: 'method', - name: 'deviceTurned', - example: [ - '\n
\n\n// Run this example on a mobile device\n// Rotate the device by 90 degrees\n// to change the value.\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction deviceTurned() {\n if (value === 0) {\n value = 255;\n } else if (value === 255) {\n value = 0;\n }\n}\n\n
\n
\n\n// Run this example on a mobile device\n// Rotate the device by 90 degrees in the\n// X-axis to change the value.\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction deviceTurned() {\n if (turnAxis === \'X\') {\n if (value === 0) {\n value = 255;\n } else if (value === 255) {\n value = 0;\n }\n }\n}\n\n
' - ], - alt: - '50x50 black rect in center of canvas. turns white on mobile when device turns\n50x50 black rect in center of canvas. turns white on mobile when x-axis turns', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/acceleration.js', - line: 597, - description: - '

The deviceShaken() function is called when the device total acceleration\nchanges of accelerationX and accelerationY values is more than\nthe threshold value. The default threshold is set to 30.\nThe threshold value can be changed using setShakeThreshold().

\n', - itemtype: 'method', - name: 'deviceShaken', - example: [ - '\n
\n\n// Run this example on a mobile device\n// Shake the device to change the value.\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction deviceShaken() {\n value = value + 5;\n if (value > 255) {\n value = 0;\n }\n}\n\n
' - ], - alt: - '50x50 black rect in center of canvas. turns white on mobile when device shakes', - class: 'p5', - module: 'Events', - submodule: 'Acceleration' - }, - { - file: 'src/events/keyboard.js', - line: 12, - description: - '

The boolean system variable keyIsPressed is true if any key is pressed\nand false if no keys are pressed.

\n', - itemtype: 'property', - name: 'keyIsPressed', - type: 'Boolean', - readonly: '', - example: [ - '\n
\n\nfunction draw() {\n if (keyIsPressed === true) {\n fill(0);\n } else {\n fill(255);\n }\n rect(25, 25, 50, 50);\n}\n\n
' - ], - alt: '50x50 white rect that turns black on keypress.', - class: 'p5', - module: 'Events', - submodule: 'Keyboard' - }, - { - file: 'src/events/keyboard.js', - line: 39, - description: - '

The system variable key always contains the value of the most recent\nkey on the keyboard that was typed. To get the proper capitalization, it\nis best to use it within keyTyped(). For non-ASCII keys, use the keyCode\nvariable.

\n', - itemtype: 'property', - name: 'key', - type: 'String', - readonly: '', - example: [ - '\n
\n// Click any key to display it!\n// (Not Guaranteed to be Case Sensitive)\nfunction setup() {\n fill(245, 123, 158);\n textSize(50);\n}\n\nfunction draw() {\n background(200);\n text(key, 33, 65); // Display last key pressed.\n}\n
' - ], - alt: 'canvas displays any key value that is pressed in pink font.', - class: 'p5', - module: 'Events', - submodule: 'Keyboard' - }, - { - file: 'src/events/keyboard.js', - line: 68, - description: - '

The variable keyCode is used to detect special keys such as BACKSPACE,\nDELETE, ENTER, RETURN, TAB, ESCAPE, SHIFT, CONTROL, OPTION, ALT, UP_ARROW,\nDOWN_ARROW, LEFT_ARROW, RIGHT_ARROW.\nYou can also check for custom keys by looking up the keyCode of any key\non a site like this: keycode.info.

\n', - itemtype: 'property', - name: 'keyCode', - type: 'Integer', - readonly: '', - example: [ - "\n
\nlet fillVal = 126;\nfunction draw() {\n fill(fillVal);\n rect(25, 25, 50, 50);\n}\n\nfunction keyPressed() {\n if (keyCode === UP_ARROW) {\n fillVal = 255;\n } else if (keyCode === DOWN_ARROW) {\n fillVal = 0;\n }\n return false; // prevent default\n}\n
\n
\nfunction draw() {}\nfunction keyPressed() {\n background('yellow');\n text(`${key} ${keyCode}`, 10, 40);\n print(key, ' ', keyCode);\n return false; // prevent default\n}\n
" - ], - alt: - 'Grey rect center. turns white when up arrow pressed and black when down\nDisplay key pressed and its keyCode in a yellow box', - class: 'p5', - module: 'Events', - submodule: 'Keyboard' - }, - { - file: 'src/events/keyboard.js', - line: 109, - description: - '

The keyPressed() function is called once every time a key is pressed. The\nkeyCode for the key that was pressed is stored in the keyCode variable.\n

\nFor non-ASCII keys, use the keyCode variable. You can check if the keyCode\nequals BACKSPACE, DELETE, ENTER, RETURN, TAB, ESCAPE, SHIFT, CONTROL,\nOPTION, ALT, UP_ARROW, DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW.\n

\nFor ASCII keys, the key that was pressed is stored in the key variable. However, it\ndoes not distinguish between uppercase and lowercase. For this reason, it\nis recommended to use keyTyped() to read the key variable, in which the\ncase of the variable will be distinguished.\n

\nBecause of how operating systems handle key repeats, holding down a key\nmay cause multiple calls to keyTyped() (and keyReleased() as well). The\nrate of repeat is set by the operating system and how each computer is\nconfigured.

\nBrowsers may have different default\nbehaviors attached to various key events. To prevent any default\nbehavior for this event, add "return false" to the end of the method.

\n', - itemtype: 'method', - name: 'keyPressed', - example: [ - '\n
\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction keyPressed() {\n if (value === 0) {\n value = 255;\n } else {\n value = 0;\n }\n}\n\n
\n
\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction keyPressed() {\n if (keyCode === LEFT_ARROW) {\n value = 255;\n } else if (keyCode === RIGHT_ARROW) {\n value = 0;\n }\n}\n\n
\n
\n\nfunction keyPressed() {\n // Do something\n return false; // prevent any default behaviour\n}\n\n
' - ], - alt: - 'black rect center. turns white when key pressed and black when released\nblack rect center. turns white when left arrow pressed and black when right.', - class: 'p5', - module: 'Events', - submodule: 'Keyboard' - }, - { - file: 'src/events/keyboard.js', - line: 196, - description: - '

The keyReleased() function is called once every time a key is released.\nSee key and keyCode for more information.

\nBrowsers may have different default\nbehaviors attached to various key events. To prevent any default\nbehavior for this event, add "return false" to the end of the method.

\n', - itemtype: 'method', - name: 'keyReleased', - example: [ - '\n
\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction keyReleased() {\n if (value === 0) {\n value = 255;\n } else {\n value = 0;\n }\n return false; // prevent any default behavior\n}\n\n
' - ], - alt: - 'black rect center. turns white when key pressed and black when pressed again', - class: 'p5', - module: 'Events', - submodule: 'Keyboard' - }, - { - file: 'src/events/keyboard.js', - line: 248, - description: - '

The keyTyped() function is called once every time a key is pressed, but\naction keys such as Backspace, Delete, Ctrl, Shift, and Alt are ignored. If you are trying to detect\na keyCode for one of these keys, use the keyPressed() function instead.\nThe most recent key typed will be stored in the key variable.\n

\nBecause of how operating systems handle key repeats, holding down a key\nwill cause multiple calls to keyTyped() (and keyReleased() as well). The\nrate of repeat is set by the operating system and how each computer is\nconfigured.

\nBrowsers may have different default behaviors attached to various key\nevents. To prevent any default behavior for this event, add "return false"\nto the end of the method.

\n', - itemtype: 'method', - name: 'keyTyped', - example: [ - "\n
\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction keyTyped() {\n if (key === 'a') {\n value = 255;\n } else if (key === 'b') {\n value = 0;\n }\n // uncomment to prevent any default behavior\n // return false;\n}\n\n
" - ], - alt: - "black rect center. turns white when 'a' key typed and black when 'b' pressed", - class: 'p5', - module: 'Events', - submodule: 'Keyboard' - }, - { - file: 'src/events/keyboard.js', - line: 302, - description: - '

The onblur function is called when the user is no longer focused\non the p5 element. Because the keyup events will not fire if the user is\nnot focused on the element we must assume all keys currently down have\nbeen released.

\n', - class: 'p5', - module: 'Events', - submodule: 'Keyboard' - }, - { - file: 'src/events/keyboard.js', - line: 312, - description: - '

The keyIsDown() function checks if the key is currently down, i.e. pressed.\nIt can be used if you have an object that moves, and you want several keys\nto be able to affect its behaviour simultaneously, such as moving a\nsprite diagonally. You can put in any number representing the keyCode of\nthe key, or use any of the variable keyCode names listed\nhere.

\n', - itemtype: 'method', - name: 'keyIsDown', - params: [ - { - name: 'code', - description: '

The key to check for.

\n', - type: 'Number' - } - ], - return: { - description: 'whether key is down or not', - type: 'Boolean' - }, - example: [ - '\n
\nlet x = 100;\nlet y = 100;\n\nfunction setup() {\n createCanvas(512, 512);\n fill(255, 0, 0);\n}\n\nfunction draw() {\n if (keyIsDown(LEFT_ARROW)) {\n x -= 5;\n }\n\n if (keyIsDown(RIGHT_ARROW)) {\n x += 5;\n }\n\n if (keyIsDown(UP_ARROW)) {\n y -= 5;\n }\n\n if (keyIsDown(DOWN_ARROW)) {\n y += 5;\n }\n\n clear();\n ellipse(x, y, 50, 50);\n}\n
\n\n
\nlet diameter = 50;\n\nfunction setup() {\n createCanvas(512, 512);\n}\n\nfunction draw() {\n // 107 and 187 are keyCodes for "+"\n if (keyIsDown(107) || keyIsDown(187)) {\n diameter += 1;\n }\n\n // 109 and 189 are keyCodes for "-"\n if (keyIsDown(109) || keyIsDown(189)) {\n diameter -= 1;\n }\n\n clear();\n fill(255, 0, 0);\n ellipse(50, 50, diameter, diameter);\n}\n
' - ], - alt: - '50x50 red ellipse moves left, right, up and down with arrow presses.\n50x50 red ellipse gets bigger or smaller when + or - are pressed.', - class: 'p5', - module: 'Events', - submodule: 'Keyboard' - }, - { - file: 'src/events/mouse.js', - line: 22, - description: - '

The system variable mouseX always contains the current horizontal\nposition of the mouse, relative to (0, 0) of the canvas. The value at\nthe top-left corner is (0, 0) for 2-D and (-width/2, -height/2) for WebGL.\nIf touch is used instead of mouse input, mouseX will hold the x value\nof the most recent touch point.

\n', - itemtype: 'property', - name: 'mouseX', - type: 'Number', - readonly: '', - example: [ - '\n
\n\n// Move the mouse across the canvas\nfunction draw() {\n background(244, 248, 252);\n line(mouseX, 0, mouseX, 100);\n}\n\n
' - ], - alt: 'horizontal black line moves left and right with mouse x-position', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/mouse.js', - line: 49, - description: - '

The system variable mouseY always contains the current vertical\nposition of the mouse, relative to (0, 0) of the canvas. The value at\nthe top-left corner is (0, 0) for 2-D and (-width/2, -height/2) for WebGL.\nIf touch is used instead of mouse input, mouseY will hold the y value\nof the most recent touch point.

\n', - itemtype: 'property', - name: 'mouseY', - type: 'Number', - readonly: '', - example: [ - '\n
\n\n// Move the mouse across the canvas\nfunction draw() {\n background(244, 248, 252);\n line(0, mouseY, 100, mouseY);\n}\n\n
' - ], - alt: 'vertical black line moves up and down with mouse y-position', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/mouse.js', - line: 76, - description: - '

The system variable pmouseX always contains the horizontal position of\nthe mouse or finger in the frame previous to the current frame, relative to\n(0, 0) of the canvas. The value at the top-left corner is (0, 0) for 2-D and\n(-width/2, -height/2) for WebGL. Note: pmouseX will be reset to the current mouseX\nvalue at the start of each touch event.

\n', - itemtype: 'property', - name: 'pmouseX', - type: 'Number', - readonly: '', - example: [ - "\n
\n\n// Move the mouse across the canvas to leave a trail\nfunction setup() {\n //slow down the frameRate to make it more visible\n frameRate(10);\n}\n\nfunction draw() {\n background(244, 248, 252);\n line(mouseX, mouseY, pmouseX, pmouseY);\n print(pmouseX + ' -> ' + mouseX);\n}\n\n
" - ], - alt: - 'line trail is created from cursor movements. faster movement make longer line.', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/mouse.js', - line: 109, - description: - '

The system variable pmouseY always contains the vertical position of\nthe mouse or finger in the frame previous to the current frame, relative to\n(0, 0) of the canvas. The value at the top-left corner is (0, 0) for 2-D and\n(-width/2, -height/2) for WebGL. Note: pmouseY will be reset to the current mouseY\nvalue at the start of each touch event.

\n', - itemtype: 'property', - name: 'pmouseY', - type: 'Number', - readonly: '', - example: [ - "\n
\n\nfunction draw() {\n background(237, 34, 93);\n fill(0);\n //draw a square only if the mouse is not moving\n if (mouseY === pmouseY && mouseX === pmouseX) {\n rect(20, 20, 60, 60);\n }\n\n print(pmouseY + ' -> ' + mouseY);\n}\n\n
" - ], - alt: - '60x60 black rect center, fuchsia background. rect flickers on mouse movement', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/mouse.js', - line: 141, - description: - '

The system variable winMouseX always contains the current horizontal\nposition of the mouse, relative to (0, 0) of the window.

\n', - itemtype: 'property', - name: 'winMouseX', - type: 'Number', - readonly: '', - example: [ - "\n
\n\nlet myCanvas;\n\nfunction setup() {\n //use a variable to store a pointer to the canvas\n myCanvas = createCanvas(100, 100);\n const body = document.getElementsByTagName('body')[0];\n myCanvas.parent(body);\n}\n\nfunction draw() {\n background(237, 34, 93);\n fill(0);\n\n //move the canvas to the horizontal mouse position\n //relative to the window\n myCanvas.position(winMouseX + 1, windowHeight / 2);\n\n //the y of the square is relative to the canvas\n rect(20, mouseY, 60, 60);\n}\n\n
" - ], - alt: - '60x60 black rect y moves with mouse y and fuchsia canvas moves with mouse x', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/mouse.js', - line: 180, - description: - '

The system variable winMouseY always contains the current vertical\nposition of the mouse, relative to (0, 0) of the window.

\n', - itemtype: 'property', - name: 'winMouseY', - type: 'Number', - readonly: '', - example: [ - "\n
\n\nlet myCanvas;\n\nfunction setup() {\n //use a variable to store a pointer to the canvas\n myCanvas = createCanvas(100, 100);\n const body = document.getElementsByTagName('body')[0];\n myCanvas.parent(body);\n}\n\nfunction draw() {\n background(237, 34, 93);\n fill(0);\n\n //move the canvas to the vertical mouse position\n //relative to the window\n myCanvas.position(windowWidth / 2, winMouseY + 1);\n\n //the x of the square is relative to the canvas\n rect(mouseX, 20, 60, 60);\n}\n\n
" - ], - alt: - '60x60 black rect x moves with mouse x and fuchsia canvas y moves with mouse y', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/mouse.js', - line: 219, - description: - '

The system variable pwinMouseX always contains the horizontal position\nof the mouse in the frame previous to the current frame, relative to\n(0, 0) of the window. Note: pwinMouseX will be reset to the current winMouseX\nvalue at the start of each touch event.

\n', - itemtype: 'property', - name: 'pwinMouseX', - type: 'Number', - readonly: '', - example: [ - '\n
\n\nlet myCanvas;\n\nfunction setup() {\n //use a variable to store a pointer to the canvas\n myCanvas = createCanvas(100, 100);\n noStroke();\n fill(237, 34, 93);\n}\n\nfunction draw() {\n clear();\n //the difference between previous and\n //current x position is the horizontal mouse speed\n let speed = abs(winMouseX - pwinMouseX);\n //change the size of the circle\n //according to the horizontal speed\n ellipse(50, 50, 10 + speed * 5, 10 + speed * 5);\n //move the canvas to the mouse position\n myCanvas.position(winMouseX + 1, winMouseY + 1);\n}\n\n
' - ], - alt: - 'fuchsia ellipse moves with mouse x and y. Grows and shrinks with mouse speed', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/mouse.js', - line: 260, - description: - '

The system variable pwinMouseY always contains the vertical position of\nthe mouse in the frame previous to the current frame, relative to (0, 0)\nof the window. Note: pwinMouseY will be reset to the current winMouseY\nvalue at the start of each touch event.

\n', - itemtype: 'property', - name: 'pwinMouseY', - type: 'Number', - readonly: '', - example: [ - '\n
\n\nlet myCanvas;\n\nfunction setup() {\n //use a variable to store a pointer to the canvas\n myCanvas = createCanvas(100, 100);\n noStroke();\n fill(237, 34, 93);\n}\n\nfunction draw() {\n clear();\n //the difference between previous and\n //current y position is the vertical mouse speed\n let speed = abs(winMouseY - pwinMouseY);\n //change the size of the circle\n //according to the vertical speed\n ellipse(50, 50, 10 + speed * 5, 10 + speed * 5);\n //move the canvas to the mouse position\n myCanvas.position(winMouseX + 1, winMouseY + 1);\n}\n\n
' - ], - alt: - 'fuchsia ellipse moves with mouse x and y. Grows and shrinks with mouse speed', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/mouse.js', - line: 302, - description: - '

Processing automatically tracks if the mouse button is pressed and which\nbutton is pressed. The value of the system variable mouseButton is either\nLEFT, RIGHT, or CENTER depending on which button was pressed last.\nWarning: different browsers may track mouseButton differently.

\n', - itemtype: 'property', - name: 'mouseButton', - type: 'Constant', - readonly: '', - example: [ - '\n
\n\nfunction draw() {\n background(237, 34, 93);\n fill(0);\n\n if (mouseIsPressed) {\n if (mouseButton === LEFT) {\n ellipse(50, 50, 50, 50);\n }\n if (mouseButton === RIGHT) {\n rect(25, 25, 50, 50);\n }\n if (mouseButton === CENTER) {\n triangle(23, 75, 50, 20, 78, 75);\n }\n }\n\n print(mouseButton);\n}\n\n
' - ], - alt: - '50x50 black ellipse appears on center of fuchsia canvas on mouse click/press.', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/mouse.js', - line: 341, - description: - '

The boolean system variable mouseIsPressed is true if the mouse is pressed\nand false if not.

\n', - itemtype: 'property', - name: 'mouseIsPressed', - type: 'Boolean', - readonly: '', - example: [ - '\n
\n\nfunction draw() {\n background(237, 34, 93);\n fill(0);\n\n if (mouseIsPressed) {\n ellipse(50, 50, 50, 50);\n } else {\n rect(25, 25, 50, 50);\n }\n\n print(mouseIsPressed);\n}\n\n
' - ], - alt: - 'black 50x50 rect becomes ellipse with mouse click/press. fuchsia background.', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/mouse.js', - line: 432, - description: - '

The mouseMoved() function is called every time the mouse moves and a mouse\nbutton is not pressed.

\nBrowsers may have different default\nbehaviors attached to various mouse events. To prevent any default\nbehavior for this event, add "return false" to the end of the method.

\n', - itemtype: 'method', - name: 'mouseMoved', - params: [ - { - name: 'event', - description: '

optional MouseEvent callback argument.

\n', - type: 'Object', - optional: true - } - ], - example: [ - '\n
\n\n// Move the mouse across the page\n// to change its value\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction mouseMoved() {\n value = value + 5;\n if (value > 255) {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction mouseMoved() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a MouseEvent object\n// as a callback argument\nfunction mouseMoved(event) {\n console.log(event);\n}\n\n
' - ], - alt: - 'black 50x50 rect becomes lighter with mouse movements until white then resets\nno image displayed', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/mouse.js', - line: 487, - description: - '

The mouseDragged() function is called once every time the mouse moves and\na mouse button is pressed. If no mouseDragged() function is defined, the\ntouchMoved() function will be called instead if it is defined.

\nBrowsers may have different default\nbehaviors attached to various mouse events. To prevent any default\nbehavior for this event, add "return false" to the end of the method.

\n', - itemtype: 'method', - name: 'mouseDragged', - params: [ - { - name: 'event', - description: '

optional MouseEvent callback argument.

\n', - type: 'Object', - optional: true - } - ], - example: [ - '\n
\n\n// Drag the mouse across the page\n// to change its value\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction mouseDragged() {\n value = value + 5;\n if (value > 255) {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction mouseDragged() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a MouseEvent object\n// as a callback argument\nfunction mouseDragged(event) {\n console.log(event);\n}\n\n
' - ], - alt: - 'black 50x50 rect turns lighter with mouse click and drag until white, resets\nno image displayed', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/mouse.js', - line: 568, - description: - '

The mousePressed() function is called once after every time a mouse button\nis pressed. The mouseButton variable (see the related reference entry)\ncan be used to determine which button has been pressed. If no\nmousePressed() function is defined, the touchStarted() function will be\ncalled instead if it is defined.

\nBrowsers may have different default\nbehaviors attached to various mouse events. To prevent any default\nbehavior for this event, add "return false" to the end of the method.

\n', - itemtype: 'method', - name: 'mousePressed', - params: [ - { - name: 'event', - description: '

optional MouseEvent callback argument.

\n', - type: 'Object', - optional: true - } - ], - example: [ - '\n
\n\n// Click within the image to change\n// the value of the rectangle\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction mousePressed() {\n if (value === 0) {\n value = 255;\n } else {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction mousePressed() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a MouseEvent object\n// as a callback argument\nfunction mousePressed(event) {\n console.log(event);\n}\n\n
' - ], - alt: - 'black 50x50 rect turns white with mouse click/press.\nno image displayed', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/mouse.js', - line: 650, - description: - '

The mouseReleased() function is called every time a mouse button is\nreleased. If no mouseReleased() function is defined, the touchEnded()\nfunction will be called instead if it is defined.

\nBrowsers may have different default\nbehaviors attached to various mouse events. To prevent any default\nbehavior for this event, add "return false" to the end of the method.

\n', - itemtype: 'method', - name: 'mouseReleased', - params: [ - { - name: 'event', - description: '

optional MouseEvent callback argument.

\n', - type: 'Object', - optional: true - } - ], - example: [ - '\n
\n\n// Click within the image to change\n// the value of the rectangle\n// after the mouse has been clicked\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction mouseReleased() {\n if (value === 0) {\n value = 255;\n } else {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction mouseReleased() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a MouseEvent object\n// as a callback argument\nfunction mouseReleased(event) {\n console.log(event);\n}\n\n
' - ], - alt: - 'black 50x50 rect turns white with mouse click/press.\nno image displayed', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/mouse.js', - line: 728, - description: - '

The mouseClicked() function is called once after a mouse button has been\npressed and then released.

\nBrowsers handle clicks differently, so this function is only guaranteed to be\nrun when the left mouse button is clicked. To handle other mouse buttons\nbeing pressed or released, see mousePressed() or mouseReleased().

\nBrowsers may have different default\nbehaviors attached to various mouse events. To prevent any default\nbehavior for this event, add "return false" to the end of the method.

\n', - itemtype: 'method', - name: 'mouseClicked', - params: [ - { - name: 'event', - description: '

optional MouseEvent callback argument.

\n', - type: 'Object', - optional: true - } - ], - example: [ - '\n
\n\n// Click within the image to change\n// the value of the rectangle\n// after the mouse has been clicked\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\n\nfunction mouseClicked() {\n if (value === 0) {\n value = 255;\n } else {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction mouseClicked() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a MouseEvent object\n// as a callback argument\nfunction mouseClicked(event) {\n console.log(event);\n}\n\n
' - ], - alt: - 'black 50x50 rect turns white with mouse click/press.\nno image displayed', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/mouse.js', - line: 798, - description: - '

The doubleClicked() function is executed every time a event\nlistener has detected a dblclick event which is a part of the\nDOM L3 specification. The doubleClicked event is fired when a\npointing device button (usually a mouse's primary button)\nis clicked twice on a single element. For more info on the\ndblclick event refer to mozilla's documentation here:\nhttps://developer.mozilla.org/en-US/docs/Web/Events/dblclick

\n', - itemtype: 'method', - name: 'doubleClicked', - params: [ - { - name: 'event', - description: '

optional MouseEvent callback argument.

\n', - type: 'Object', - optional: true - } - ], - example: [ - '\n
\n\n// Click within the image to change\n// the value of the rectangle\n// after the mouse has been double clicked\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\n\nfunction doubleClicked() {\n if (value === 0) {\n value = 255;\n } else {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction doubleClicked() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a MouseEvent object\n// as a callback argument\nfunction doubleClicked(event) {\n console.log(event);\n}\n\n
' - ], - alt: - 'black 50x50 rect turns white with mouse doubleClick/press.\nno image displayed', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/mouse.js', - line: 883, - description: - '

The function mouseWheel() is executed every time a vertical mouse wheel\nevent is detected either triggered by an actual mouse wheel or by a\ntouchpad.

\nThe event.delta property returns the amount the mouse wheel\nhave scrolled. The values can be positive or negative depending on the\nscroll direction (on OS X with "natural" scrolling enabled, the signs\nare inverted).

\nBrowsers may have different default behaviors attached to various\nmouse events. To prevent any default behavior for this event, add\n"return false" to the end of the method.

\nDue to the current support of the "wheel" event on Safari, the function\nmay only work as expected if "return false" is included while using Safari.

\n', - itemtype: 'method', - name: 'mouseWheel', - params: [ - { - name: 'event', - description: '

optional WheelEvent callback argument.

\n', - type: 'Object', - optional: true - } - ], - example: [ - '\n
\n\nlet pos = 25;\n\nfunction draw() {\n background(237, 34, 93);\n fill(0);\n rect(25, pos, 50, 50);\n}\n\nfunction mouseWheel(event) {\n print(event.delta);\n //move the square according to the vertical scroll amount\n pos += event.delta;\n //uncomment to block page scrolling\n //return false;\n}\n\n
' - ], - alt: - 'black 50x50 rect moves up and down with vertical scroll. fuchsia background', - class: 'p5', - module: 'Events', - submodule: 'Mouse' - }, - { - file: 'src/events/touch.js', - line: 12, - description: - '

The system variable touches[] contains an array of the positions of all\ncurrent touch points, relative to (0, 0) of the canvas, and IDs identifying a\nunique touch as it moves. Each element in the array is an object with x, y,\nand id properties.

\n

The touches[] array is not supported on Safari and IE on touch-based\ndesktops (laptops).

\n', - itemtype: 'property', - name: 'touches', - type: 'Object[]', - readonly: '', - example: [ - "\n
\n\n// On a touchscreen device, touch\n// the canvas using one or more fingers\n// at the same time\nfunction draw() {\n clear();\n let display = touches.length + ' touches';\n text(display, 5, 10);\n}\n\n
" - ], - alt: 'Number of touches currently registered are displayed on the canvas', - class: 'p5', - module: 'Events', - submodule: 'Touch' - }, - { - file: 'src/events/touch.js', - line: 74, - description: - '

The touchStarted() function is called once after every time a touch is\nregistered. If no touchStarted() function is defined, the mousePressed()\nfunction will be called instead if it is defined.

\nBrowsers may have different default behaviors attached to various touch\nevents. To prevent any default behavior for this event, add "return false"\nto the end of the method.

\n', - itemtype: 'method', - name: 'touchStarted', - params: [ - { - name: 'event', - description: '

optional TouchEvent callback argument.

\n', - type: 'Object', - optional: true - } - ], - example: [ - '\n
\n\n// Touch within the image to change\n// the value of the rectangle\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction touchStarted() {\n if (value === 0) {\n value = 255;\n } else {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction touchStarted() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a TouchEvent object\n// as a callback argument\nfunction touchStarted(event) {\n console.log(event);\n}\n\n
' - ], - alt: '50x50 black rect turns white with touch event.\nno image displayed', - class: 'p5', - module: 'Events', - submodule: 'Touch' - }, - { - file: 'src/events/touch.js', - line: 154, - description: - '

The touchMoved() function is called every time a touch move is registered.\nIf no touchMoved() function is defined, the mouseDragged() function will\nbe called instead if it is defined.

\nBrowsers may have different default behaviors attached to various touch\nevents. To prevent any default behavior for this event, add "return false"\nto the end of the method.

\n', - itemtype: 'method', - name: 'touchMoved', - params: [ - { - name: 'event', - description: '

optional TouchEvent callback argument.

\n', - type: 'Object', - optional: true - } - ], - example: [ - '\n
\n\n// Move your finger across the page\n// to change its value\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction touchMoved() {\n value = value + 5;\n if (value > 255) {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction touchMoved() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a TouchEvent object\n// as a callback argument\nfunction touchMoved(event) {\n console.log(event);\n}\n\n
' - ], - alt: - '50x50 black rect turns lighter with touch until white. resets\nno image displayed', - class: 'p5', - module: 'Events', - submodule: 'Touch' - }, - { - file: 'src/events/touch.js', - line: 227, - description: - '

The touchEnded() function is called every time a touch ends. If no\ntouchEnded() function is defined, the mouseReleased() function will be\ncalled instead if it is defined.

\nBrowsers may have different default behaviors attached to various touch\nevents. To prevent any default behavior for this event, add "return false"\nto the end of the method.

\n', - itemtype: 'method', - name: 'touchEnded', - params: [ - { - name: 'event', - description: '

optional TouchEvent callback argument.

\n', - type: 'Object', - optional: true - } - ], - example: [ - '\n
\n\n// Release touch within the image to\n// change the value of the rectangle\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction touchEnded() {\n if (value === 0) {\n value = 255;\n } else {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction touchEnded() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a TouchEvent object\n// as a callback argument\nfunction touchEnded(event) {\n console.log(event);\n}\n\n
' - ], - alt: '50x50 black rect turns white with touch.\nno image displayed', - class: 'p5', - module: 'Events', - submodule: 'Touch' - }, - { - file: 'src/image/filters.js', - line: 3, - description: - '

This module defines the filters for use with image buffers.

\n

This module is basically a collection of functions stored in an object\nas opposed to modules. The functions are destructive, modifying\nthe passed in canvas rather than creating a copy.

\n

Generally speaking users of this module will use the Filters.apply method\non a canvas to create an effect.

\n

A number of functions are borrowed/adapted from\nhttp://www.html5rocks.com/en/tutorials/canvas/imagefilters/\nor the java processing implementation.

\n', - class: 'p5', - module: 'Events' - }, - { - file: 'src/image/image.js', - line: 8, - description: - '

This module defines the p5 methods for the p5.Image class\nfor drawing images to the main display canvas.

\n', - class: 'p5', - module: 'Image', - submodule: 'Image' - }, - { - file: 'src/image/image.js', - line: 22, - description: - '

Creates a new p5.Image (the datatype for storing images). This provides a\nfresh buffer of pixels to play with. Set the size of the buffer with the\nwidth and height parameters.\n

\n.pixels gives access to an array containing the values for all the pixels\nin the display window.\nThese values are numbers. This array is the size (including an appropriate\nfactor for the pixelDensity) of the display window x4,\nrepresenting the R, G, B, A values in order for each pixel, moving from\nleft to right across each row, then down each column. See .pixels for\nmore info. It may also be simpler to use set() or get().\n

\nBefore accessing the pixels of an image, the data must loaded with the\nloadPixels() function. After the array data has been modified, the\nupdatePixels() function must be run to update the changes.

\n', - itemtype: 'method', - name: 'createImage', - params: [ - { - name: 'width', - description: '

width in pixels

\n', - type: 'Integer' - }, - { - name: 'height', - description: '

height in pixels

\n', - type: 'Integer' - } - ], - return: { - description: 'the p5.Image object', - type: 'p5.Image' - }, - example: [ - '\n
\n\nlet img = createImage(66, 66);\nimg.loadPixels();\nfor (let i = 0; i < img.width; i++) {\n for (let j = 0; j < img.height; j++) {\n img.set(i, j, color(0, 90, 102));\n }\n}\nimg.updatePixels();\nimage(img, 17, 17);\n\n
\n\n
\n\nlet img = createImage(66, 66);\nimg.loadPixels();\nfor (let i = 0; i < img.width; i++) {\n for (let j = 0; j < img.height; j++) {\n img.set(i, j, color(0, 90, 102, (i % img.width) * 2));\n }\n}\nimg.updatePixels();\nimage(img, 17, 17);\nimage(img, 34, 34);\n\n
\n\n
\n\nlet pink = color(255, 102, 204);\nlet img = createImage(66, 66);\nimg.loadPixels();\nlet d = pixelDensity();\nlet halfImage = 4 * (img.width * d) * (img.height / 2 * d);\nfor (let i = 0; i < halfImage; i += 4) {\n img.pixels[i] = red(pink);\n img.pixels[i + 1] = green(pink);\n img.pixels[i + 2] = blue(pink);\n img.pixels[i + 3] = alpha(pink);\n}\nimg.updatePixels();\nimage(img, 17, 17);\n\n
' - ], - alt: - '66x66 dark turquoise rect in center of canvas.\n2 gradated dark turquoise rects fade left. 1 center 1 bottom right of canvas\nno image displayed', - class: 'p5', - module: 'Image', - submodule: 'Image' - }, - { - file: 'src/image/image.js', - line: 102, - description: - '

Save the current canvas as an image. The browser will either save the\nfile immediately, or prompt the user with a dialogue window.

\n', - itemtype: 'method', - name: 'saveCanvas', - example: [ - "\n
\n function setup() {\n let c = createCanvas(100, 100);\n background(255, 0, 0);\n saveCanvas(c, 'myCanvas', 'jpg');\n }\n
\n
\n // note that this example has the same result as above\n // if no canvas is specified, defaults to main canvas\n function setup() {\n let c = createCanvas(100, 100);\n background(255, 0, 0);\n saveCanvas('myCanvas', 'jpg');\n\n // all of the following are valid\n saveCanvas(c, 'myCanvas', 'jpg');\n saveCanvas(c, 'myCanvas.jpg');\n saveCanvas(c, 'myCanvas');\n saveCanvas(c);\n saveCanvas('myCanvas', 'png');\n saveCanvas('myCanvas');\n saveCanvas();\n }\n
" - ], - alt: 'no image displayed\n no image displayed\n no image displayed', - class: 'p5', - module: 'Image', - submodule: 'Image', - overloads: [ - { - line: 102, - params: [ - { - name: 'selectedCanvas', - description: - '

a variable\n representing a specific html5 canvas (optional)

\n', - type: 'p5.Element|HTMLCanvasElement' - }, - { - name: 'filename', - description: '', - type: 'String', - optional: true - }, - { - name: 'extension', - description: '

'jpg' or 'png'

\n', - type: 'String', - optional: true - } - ] - }, - { - line: 144, - params: [ - { - name: 'filename', - description: '', - type: 'String', - optional: true - }, - { - name: 'extension', - description: '', - type: 'String', - optional: true - } - ] - } - ] - }, - { - file: 'src/image/image.js', - line: 195, - description: - '

Capture a sequence of frames that can be used to create a movie.\nAccepts a callback. For example, you may wish to send the frames\nto a server where they can be stored or converted into a movie.\nIf no callback is provided, the browser will pop up save dialogues in an\nattempt to download all of the images that have just been created. With the\ncallback provided the image data isn't saved by default but instead passed\nas an argument to the callback function as an array of objects, with the\nsize of array equal to the total number of frames.

\n

Note that saveFrames() will only save the first 15 frames of an animation.\nTo export longer animations, you might look into a library like\nccapture.js.

\n', - itemtype: 'method', - name: 'saveFrames', - params: [ - { - name: 'filename', - description: '', - type: 'String' - }, - { - name: 'extension', - description: '

'jpg' or 'png'

\n', - type: 'String' - }, - { - name: 'duration', - description: '

Duration in seconds to save the frames for.

\n', - type: 'Number' - }, - { - name: 'framerate', - description: '

Framerate to save the frames in.

\n', - type: 'Number' - }, - { - name: 'callback', - description: - '

A callback function that will be executed\n to handle the image data. This function\n should accept an array as argument. The\n array will contain the specified number of\n frames of objects. Each object has three\n properties: imageData - an\n image/octet-stream, filename and extension.

\n', - type: 'Function(Array)', - optional: true - } - ], - example: [ - "\n
\n function draw() {\n background(mouseX);\n }\n\n function mousePressed() {\n saveFrames('out', 'png', 1, 25, data => {\n print(data);\n });\n }\n
" - ], - alt: 'canvas background goes from light to dark with mouse x.', - class: 'p5', - module: 'Image', - submodule: 'Image' - }, - { - file: 'src/image/loading_displaying.js', - line: 17, - description: - '

Loads an image from a path and creates a p5.Image from it.\n

\nThe image may not be immediately available for rendering\nIf you want to ensure that the image is ready before doing\nanything with it, place the loadImage() call in preload().\nYou may also supply a callback function to handle the image when it's ready.\n

\nThe path to the image should be relative to the HTML file\nthat links in your sketch. Loading an image from a URL or other\nremote location may be blocked due to your browser's built-in\nsecurity.

\n', - itemtype: 'method', - name: 'loadImage', - params: [ - { - name: 'path', - description: '

Path of the image to be loaded

\n', - type: 'String' - }, - { - name: 'successCallback', - description: - '

Function to be called once\n the image is loaded. Will be passed the\n p5.Image.

\n', - type: 'function(p5.Image)', - optional: true - }, - { - name: 'failureCallback', - description: - '

called with event error if\n the image fails to load.

\n', - type: 'Function(Event)', - optional: true - } - ], - return: { - description: 'the p5.Image object', - type: 'p5.Image' - }, - example: [ - "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/laDefense.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n}\n\n
\n
\n\nfunction setup() {\n // here we use a callback to display the image after loading\n loadImage('assets/laDefense.jpg', img => {\n image(img, 0, 0);\n });\n}\n\n
" - ], - alt: - 'image of the underside of a white umbrella and grided ceililng above\nimage of the underside of a white umbrella and grided ceililng above', - class: 'p5', - module: 'Image', - submodule: 'Loading & Displaying' - }, - { - file: 'src/image/loading_displaying.js', - line: 127, - description: - '

Draw an image to the p5.js canvas.

\n

This function can be used with different numbers of parameters. The\nsimplest use requires only three parameters: img, x, and yโ€”where (x, y) is\nthe position of the image. Two more parameters can optionally be added to\nspecify the width and height of the image.

\n

This function can also be used with all eight Number parameters. To\ndifferentiate between all these parameters, p5.js uses the language of\n"destination rectangle" (which corresponds to "dx", "dy", etc.) and "source\nimage" (which corresponds to "sx", "sy", etc.) below. Specifying the\n"source image" dimensions can be useful when you want to display a\nsubsection of the source image instead of the whole thing. Here's a diagram\nto explain further:\n

\n', - itemtype: 'method', - name: 'image', - example: [ - "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/laDefense.jpg');\n}\nfunction setup() {\n // Top-left corner of the img is at (0, 0)\n // Width and height are the img's original width and height\n image(img, 0, 0);\n}\n\n
\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/laDefense.jpg');\n}\nfunction setup() {\n background(50);\n // Top-left corner of the img is at (10, 10)\n // Width and height are 50 x 50\n image(img, 10, 10, 50, 50);\n}\n\n
\n
\n\nfunction setup() {\n // Here, we use a callback to display the image after loading\n loadImage('assets/laDefense.jpg', img => {\n image(img, 0, 0);\n });\n}\n\n
\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/gradient.png');\n}\nfunction setup() {\n // 1. Background image\n // Top-left corner of the img is at (0, 0)\n // Width and height are the img's original width and height, 100 x 100\n image(img, 0, 0);\n // 2. Top right image\n // Top-left corner of destination rectangle is at (50, 0)\n // Destination rectangle width and height are 40 x 20\n // The next parameters are relative to the source image:\n // - Starting at position (50, 50) on the source image, capture a 50 x 50\n // subsection\n // - Draw this subsection to fill the dimensions of the destination rectangle\n image(img, 50, 0, 40, 20, 50, 50, 50, 50);\n}\n\n
" - ], - alt: - 'image of the underside of a white umbrella and gridded ceiling above\nimage of the underside of a white umbrella and gridded ceiling above', - class: 'p5', - module: 'Image', - submodule: 'Loading & Displaying', - overloads: [ - { - line: 127, - params: [ - { - name: 'img', - description: '

the image to display

\n', - type: 'p5.Image|p5.Element' - }, - { - name: 'x', - description: - '

the x-coordinate of the top-left corner of the image

\n', - type: 'Number' - }, - { - name: 'y', - description: - '

the y-coordinate of the top-left corner of the image

\n', - type: 'Number' - }, - { - name: 'width', - description: '

the width to draw the image

\n', - type: 'Number', - optional: true - }, - { - name: 'height', - description: '

the height to draw the image

\n', - type: 'Number', - optional: true - } - ] - }, - { - line: 215, - params: [ - { - name: 'img', - description: '', - type: 'p5.Image|p5.Element' - }, - { - name: 'dx', - description: - '

the x-coordinate of the destination\n rectangle in which to draw the source image

\n', - type: 'Number' - }, - { - name: 'dy', - description: - '

the y-coordinate of the destination\n rectangle in which to draw the source image

\n', - type: 'Number' - }, - { - name: 'dWidth', - description: '

the width of the destination rectangle

\n', - type: 'Number' - }, - { - name: 'dHeight', - description: '

the height of the destination rectangle

\n', - type: 'Number' - }, - { - name: 'sx', - description: - '

the x-coordinate of the subsection of the source\nimage to draw into the destination rectangle

\n', - type: 'Number' - }, - { - name: 'sy', - description: - '

the y-coordinate of the subsection of the source\nimage to draw into the destination rectangle

\n', - type: 'Number' - }, - { - name: 'sWidth', - description: - '

the width of the subsection of the\n source image to draw into the destination\n rectangle

\n', - type: 'Number', - optional: true - }, - { - name: 'sHeight', - description: - '

the height of the subsection of the\n source image to draw into the destination rectangle

\n', - type: 'Number', - optional: true - } - ] - } - ] - }, - { - file: 'src/image/loading_displaying.js', - line: 298, - description: - '

Sets the fill value for displaying images. Images can be tinted to\nspecified colors or made transparent by including an alpha value.\n

\nTo apply transparency to an image without affecting its color, use\nwhite as the tint color and specify an alpha value. For instance,\ntint(255, 128) will make an image 50% transparent (assuming the default\nalpha range of 0-255, which can be changed with colorMode()).\n

\nThe value for the gray parameter must be less than or equal to the current\nmaximum value as specified by colorMode(). The default maximum value is\n255.

\n', - itemtype: 'method', - name: 'tint', - example: [ - "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/laDefense.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n tint(0, 153, 204); // Tint blue\n image(img, 50, 0);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/laDefense.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n tint(0, 153, 204, 126); // Tint blue and set transparency\n image(img, 50, 0);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/laDefense.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n tint(255, 126); // Apply transparency without changing color\n image(img, 50, 0);\n}\n\n
" - ], - alt: - '2 side by side images of umbrella and ceiling, one image with blue tint\nImages of umbrella and ceiling, one half of image with blue tint\n2 side by side images of umbrella and ceiling, one image translucent', - class: 'p5', - module: 'Image', - submodule: 'Loading & Displaying', - overloads: [ - { - line: 298, - params: [ - { - name: 'v1', - description: - '

red or hue value relative to\n the current color range

\n', - type: 'Number' - }, - { - name: 'v2', - description: - '

green or saturation value\n relative to the current color range

\n', - type: 'Number' - }, - { - name: 'v3', - description: - '

blue or brightness value\n relative to the current color range

\n', - type: 'Number' - }, - { - name: 'alpha', - description: '', - type: 'Number', - optional: true - } - ] - }, - { - line: 371, - params: [ - { - name: 'value', - description: '

a color string

\n', - type: 'String' - } - ] - }, - { - line: 376, - params: [ - { - name: 'gray', - description: '

a gray value

\n', - type: 'Number' - }, - { - name: 'alpha', - description: '', - type: 'Number', - optional: true - } - ] - }, - { - line: 382, - params: [ - { - name: 'values', - description: - '

an array containing the red,green,blue &\n and alpha components of the color

\n', - type: 'Number[]' - } - ] - }, - { - line: 388, - params: [ - { - name: 'color', - description: '

the tint color

\n', - type: 'p5.Color' - } - ] - } - ] - }, - { - file: 'src/image/loading_displaying.js', - line: 398, - description: - '

Removes the current fill value for displaying images and reverts to\ndisplaying images with their original hues.

\n', - itemtype: 'method', - name: 'noTint', - example: [ - "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n tint(0, 153, 204); // Tint blue\n image(img, 0, 0);\n noTint(); // Disable tint\n image(img, 50, 0);\n}\n\n
" - ], - alt: '2 side by side images of bricks, left image with blue tint', - class: 'p5', - module: 'Image', - submodule: 'Loading & Displaying' - }, - { - file: 'src/image/loading_displaying.js', - line: 464, - description: - '

Set image mode. Modifies the location from which images are drawn by\nchanging the way in which parameters given to image() are interpreted.\nThe default mode is imageMode(CORNER), which interprets the second and\nthird parameters of image() as the upper-left corner of the image. If\ntwo additional parameters are specified, they are used to set the image's\nwidth and height.\n

\nimageMode(CORNERS) interprets the second and third parameters of image()\nas the location of one corner, and the fourth and fifth parameters as the\nopposite corner.\n

\nimageMode(CENTER) interprets the second and third parameters of image()\nas the image's center point. If two additional parameters are specified,\nthey are used to set the image's width and height.

\n', - itemtype: 'method', - name: 'imageMode', - params: [ - { - name: 'mode', - description: '

either CORNER, CORNERS, or CENTER

\n', - type: 'Constant' - } - ], - example: [ - "\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n imageMode(CORNER);\n image(img, 10, 10, 50, 50);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n imageMode(CORNERS);\n image(img, 10, 10, 90, 40);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n imageMode(CENTER);\n image(img, 50, 50, 80, 80);\n}\n\n
" - ], - alt: - 'small square image of bricks\nhorizontal rectangle image of bricks\nlarge square image of bricks', - class: 'p5', - module: 'Image', - submodule: 'Loading & Displaying' - }, - { - file: 'src/image/p5.Image.js', - line: 9, - description: - '

This module defines the p5.Image class and P5 methods for\ndrawing images to the main display canvas.

\n', - class: 'p5.Image', - module: 'Image', - submodule: 'Image' - }, - { - file: 'src/image/p5.Image.js', - line: 90, - description: '

Image width.

\n', - itemtype: 'property', - name: 'width', - type: 'Number', - readonly: '', - example: [ - "\n
\nlet img;\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n createCanvas(100, 100);\n image(img, 0, 0);\n for (let i = 0; i < img.width; i++) {\n let c = img.get(i, img.height / 2);\n stroke(c);\n line(i, height / 2, i, height);\n }\n}\n
" - ], - alt: - 'rocky mountains in top and horizontal lines in corresponding colors in bottom.', - class: 'p5.Image', - module: 'Image', - submodule: 'Image' - }, - { - file: 'src/image/p5.Image.js', - line: 117, - description: '

Image height.

\n', - itemtype: 'property', - name: 'height', - type: 'Number', - readonly: '', - example: [ - "\n
\nlet img;\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n createCanvas(100, 100);\n image(img, 0, 0);\n for (let i = 0; i < img.height; i++) {\n let c = img.get(img.width / 2, i);\n stroke(c);\n line(0, i, width / 2, i);\n }\n}\n
" - ], - alt: - 'rocky mountains on right and vertical lines in corresponding colors on left.', - class: 'p5.Image', - module: 'Image', - submodule: 'Image' - }, - { - file: 'src/image/p5.Image.js', - line: 153, - description: - '

Array containing the values for all the pixels in the display window.\nThese values are numbers. This array is the size (include an appropriate\nfactor for pixelDensity) of the display window x4,\nrepresenting the R, G, B, A values in order for each pixel, moving from\nleft to right across each row, then down each column. Retina and other\nhigh denisty displays may have more pixels (by a factor of\npixelDensity^2).\nFor example, if the image is 100x100 pixels, there will be 40,000. With\npixelDensity = 2, there will be 160,000. The first four values\n(indices 0-3) in the array will be the R, G, B, A values of the pixel at\n(0, 0). The second four values (indices 4-7) will contain the R, G, B, A\nvalues of the pixel at (1, 0). More generally, to set values for a pixel\nat (x, y):

\n
let d = pixelDensity();\nfor (let i = 0; i < d; i++) {\n  for (let j = 0; j < d; j++) {\n    // loop over\n    index = 4 * ((y * d + j) * width * d + (x * d + i));\n    pixels[index] = r;\n    pixels[index+1] = g;\n    pixels[index+2] = b;\n    pixels[index+3] = a;\n  }\n}\n
\n



\nBefore accessing this array, the data must loaded with the loadPixels()\nfunction. After the array data has been modified, the updatePixels()\nfunction must be run to update the changes.

\n', - itemtype: 'property', - name: 'pixels', - type: 'Number[]', - example: [ - '\n
\n\nlet img = createImage(66, 66);\nimg.loadPixels();\nfor (let i = 0; i < img.width; i++) {\n for (let j = 0; j < img.height; j++) {\n img.set(i, j, color(0, 90, 102));\n }\n}\nimg.updatePixels();\nimage(img, 17, 17);\n\n
\n
\n\nlet pink = color(255, 102, 204);\nlet img = createImage(66, 66);\nimg.loadPixels();\nfor (let i = 0; i < 4 * (width * height / 2); i += 4) {\n img.pixels[i] = red(pink);\n img.pixels[i + 1] = green(pink);\n img.pixels[i + 2] = blue(pink);\n img.pixels[i + 3] = alpha(pink);\n}\nimg.updatePixels();\nimage(img, 17, 17);\n\n
' - ], - alt: - '66x66 turquoise rect in center of canvas\n66x66 pink rect in center of canvas', - class: 'p5.Image', - module: 'Image', - submodule: 'Image' - }, - { - file: 'src/image/p5.Image.js', - line: 223, - description: '

Helper fxn for sharing pixel methods

\n', - class: 'p5.Image', - module: 'Image', - submodule: 'Image' - }, - { - file: 'src/image/p5.Image.js', - line: 232, - description: - '

Loads the pixels data for this image into the [pixels] attribute.

\n', - itemtype: 'method', - name: 'loadPixels', - example: [ - "\n
\nlet myImage;\nlet halfImage;\n\nfunction preload() {\n myImage = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n myImage.loadPixels();\n halfImage = 4 * myImage.width * myImage.height / 2;\n for (let i = 0; i < halfImage; i++) {\n myImage.pixels[i + halfImage] = myImage.pixels[i];\n }\n myImage.updatePixels();\n}\n\nfunction draw() {\n image(myImage, 0, 0, width, height);\n}\n
" - ], - alt: '2 images of rocky mountains vertically stacked', - class: 'p5.Image', - module: 'Image', - submodule: 'Image' - }, - { - file: 'src/image/p5.Image.js', - line: 268, - description: - '

Updates the backing canvas for this image with the contents of\nthe [pixels] array.

\n', - itemtype: 'method', - name: 'updatePixels', - example: [ - "\n
\nlet myImage;\nlet halfImage;\n\nfunction preload() {\n myImage = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n myImage.loadPixels();\n halfImage = 4 * myImage.width * myImage.height / 2;\n for (let i = 0; i < halfImage; i++) {\n myImage.pixels[i + halfImage] = myImage.pixels[i];\n }\n myImage.updatePixels();\n}\n\nfunction draw() {\n image(myImage, 0, 0, width, height);\n}\n
" - ], - alt: '2 images of rocky mountains vertically stacked', - class: 'p5.Image', - module: 'Image', - submodule: 'Image', - overloads: [ - { - line: 268, - params: [ - { - name: 'x', - description: - '

x-offset of the target update area for the\n underlying canvas

\n', - type: 'Integer' - }, - { - name: 'y', - description: - '

y-offset of the target update area for the\n underlying canvas

\n', - type: 'Integer' - }, - { - name: 'w', - description: - '

height of the target update area for the\n underlying canvas

\n', - type: 'Integer' - }, - { - name: 'h', - description: - '

height of the target update area for the\n underlying canvas

\n', - type: 'Integer' - } - ] - }, - { - line: 308, - params: [] - } - ] - }, - { - file: 'src/image/p5.Image.js', - line: 316, - description: - '

Get a region of pixels from an image.

\n

If no params are passed, the whole image is returned.\nIf x and y are the only params passed a single pixel is extracted.\nIf all params are passed a rectangle region is extracted and a p5.Image\nis returned.

\n', - itemtype: 'method', - name: 'get', - return: { - description: 'the rectangle p5.Image', - type: 'p5.Image' - }, - example: [ - "\n
\nlet myImage;\nlet c;\n\nfunction preload() {\n myImage = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n background(myImage);\n noStroke();\n c = myImage.get(60, 90);\n fill(c);\n rect(25, 25, 50, 50);\n}\n\n//get() returns color here\n
" - ], - alt: 'image of rocky mountains with 50x50 green rect in front', - class: 'p5.Image', - module: 'Image', - submodule: 'Image', - overloads: [ - { - line: 316, - params: [ - { - name: 'x', - description: '

x-coordinate of the pixel

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y-coordinate of the pixel

\n', - type: 'Number' - }, - { - name: 'w', - description: '

width

\n', - type: 'Number' - }, - { - name: 'h', - description: '

height

\n', - type: 'Number' - } - ], - return: { - description: 'the rectangle p5.Image', - type: 'p5.Image' - } - }, - { - line: 354, - params: [], - return: { - description: 'the whole p5.Image', - type: 'p5.Image' - } - }, - { - line: 358, - params: [ - { - name: 'x', - description: '', - type: 'Number' - }, - { - name: 'y', - description: '', - type: 'Number' - } - ], - return: { - description: 'color of pixel at x,y in array format [R, G, B, A]', - type: 'Number[]' - } - } - ] - }, - { - file: 'src/image/p5.Image.js', - line: 371, - description: - '

Set the color of a single pixel or write an image into\nthis p5.Image.

\n

Note that for a large number of pixels this will\nbe slower than directly manipulating the pixels array\nand then calling updatePixels().

\n', - itemtype: 'method', - name: 'set', - params: [ - { - name: 'x', - description: '

x-coordinate of the pixel

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y-coordinate of the pixel

\n', - type: 'Number' - }, - { - name: 'a', - description: - '

grayscale value | pixel array |\n a p5.Color | image to copy

\n', - type: 'Number|Number[]|Object' - } - ], - example: [ - '\n
\n\nlet img = createImage(66, 66);\nimg.loadPixels();\nfor (let i = 0; i < img.width; i++) {\n for (let j = 0; j < img.height; j++) {\n img.set(i, j, color(0, 90, 102, (i % img.width) * 2));\n }\n}\nimg.updatePixels();\nimage(img, 17, 17);\nimage(img, 34, 34);\n\n
' - ], - alt: - '2 gradated dark turquoise rects fade left. 1 center 1 bottom right of canvas', - class: 'p5.Image', - module: 'Image', - submodule: 'Image' - }, - { - file: 'src/image/p5.Image.js', - line: 409, - description: - '

Resize the image to a new width and height. To make the image scale\nproportionally, use 0 as the value for the wide or high parameter.\nFor instance, to make the width of an image 150 pixels, and change\nthe height using the same proportion, use resize(150, 0).

\n', - itemtype: 'method', - name: 'resize', - params: [ - { - name: 'width', - description: '

the resized image width

\n', - type: 'Number' - }, - { - name: 'height', - description: '

the resized image height

\n', - type: 'Number' - } - ], - example: [ - "\n
\nlet img;\n\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\n\nfunction draw() {\n image(img, 0, 0);\n}\n\nfunction mousePressed() {\n img.resize(50, 100);\n}\n
" - ], - alt: 'image of rocky mountains. zoomed in', - class: 'p5.Image', - module: 'Image', - submodule: 'Image' - }, - { - file: 'src/image/p5.Image.js', - line: 494, - description: - '

Copies a region of pixels from one image to another. If no\nsrcImage is specified this is used as the source. If the source\nand destination regions aren't the same size, it will\nautomatically resize source pixels to fit the specified\ntarget region.

\n', - itemtype: 'method', - name: 'copy', - example: [ - "\n
\nlet photo;\nlet bricks;\nlet x;\nlet y;\n\nfunction preload() {\n photo = loadImage('assets/rockies.jpg');\n bricks = loadImage('assets/bricks.jpg');\n}\n\nfunction setup() {\n x = bricks.width / 2;\n y = bricks.height / 2;\n photo.copy(bricks, 0, 0, x, y, 0, 0, x, y);\n image(photo, 0, 0);\n}\n
" - ], - alt: - 'image of rocky mountains and smaller image on top of bricks at top left', - class: 'p5.Image', - module: 'Image', - submodule: 'Image', - overloads: [ - { - line: 494, - params: [ - { - name: 'srcImage', - description: '

source image

\n', - type: 'p5.Image|p5.Element' - }, - { - name: 'sx', - description: - '

X coordinate of the source's upper left corner

\n', - type: 'Integer' - }, - { - name: 'sy', - description: - '

Y coordinate of the source's upper left corner

\n', - type: 'Integer' - }, - { - name: 'sw', - description: '

source image width

\n', - type: 'Integer' - }, - { - name: 'sh', - description: '

source image height

\n', - type: 'Integer' - }, - { - name: 'dx', - description: - '

X coordinate of the destination's upper left corner

\n', - type: 'Integer' - }, - { - name: 'dy', - description: - '

Y coordinate of the destination's upper left corner

\n', - type: 'Integer' - }, - { - name: 'dw', - description: '

destination image width

\n', - type: 'Integer' - }, - { - name: 'dh', - description: '

destination image height

\n', - type: 'Integer' - } - ] - }, - { - line: 535, - params: [ - { - name: 'sx', - description: '', - type: 'Integer' - }, - { - name: 'sy', - description: '', - type: 'Integer' - }, - { - name: 'sw', - description: '', - type: 'Integer' - }, - { - name: 'sh', - description: '', - type: 'Integer' - }, - { - name: 'dx', - description: '', - type: 'Integer' - }, - { - name: 'dy', - description: '', - type: 'Integer' - }, - { - name: 'dw', - description: '', - type: 'Integer' - }, - { - name: 'dh', - description: '', - type: 'Integer' - } - ] - } - ] - }, - { - file: 'src/image/p5.Image.js', - line: 575, - description: - '

Masks part of an image from displaying by loading another\nimage and using it's alpha channel as an alpha channel for\nthis image.

\n', - itemtype: 'method', - name: 'mask', - params: [ - { - name: 'srcImage', - description: '

source image

\n', - type: 'p5.Image' - } - ], - example: [ - "\n
\nlet photo, maskImage;\nfunction preload() {\n photo = loadImage('assets/rockies.jpg');\n maskImage = loadImage('assets/mask2.png');\n}\n\nfunction setup() {\n createCanvas(100, 100);\n photo.mask(maskImage);\n image(photo, 0, 0);\n}\n
" - ], - alt: - 'image of rocky mountains with white at right\n\n\nhttp://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/', - class: 'p5.Image', - module: 'Image', - submodule: 'Image' - }, - { - file: 'src/image/p5.Image.js', - line: 638, - description: - '

Applies an image filter to a p5.Image

\n', - itemtype: 'method', - name: 'filter', - params: [ - { - name: 'filterType', - description: - '

either THRESHOLD, GRAY, OPAQUE, INVERT,\n POSTERIZE, BLUR, ERODE, DILATE or BLUR.\n See Filters.js for docs on\n each available filter

\n', - type: 'Constant' - }, - { - name: 'filterParam', - description: - '

an optional parameter unique\n to each filter, see above

\n', - type: 'Number', - optional: true - } - ], - example: [ - "\n
\nlet photo1;\nlet photo2;\n\nfunction preload() {\n photo1 = loadImage('assets/rockies.jpg');\n photo2 = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n photo2.filter(GRAY);\n image(photo1, 0, 0);\n image(photo2, width / 2, 0);\n}\n
" - ], - alt: - '2 images of rocky mountains left one in color, right in black and white', - class: 'p5.Image', - module: 'Image', - submodule: 'Image' - }, - { - file: 'src/image/p5.Image.js', - line: 674, - description: - '

Copies a region of pixels from one image to another, using a specified\nblend mode to do the operation.

\n', - itemtype: 'method', - name: 'blend', - example: [ - "\n
\nlet mountains;\nlet bricks;\n\nfunction preload() {\n mountains = loadImage('assets/rockies.jpg');\n bricks = loadImage('assets/bricks_third.jpg');\n}\n\nfunction setup() {\n mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, ADD);\n image(mountains, 0, 0);\n image(bricks, 0, 0);\n}\n
\n
\nlet mountains;\nlet bricks;\n\nfunction preload() {\n mountains = loadImage('assets/rockies.jpg');\n bricks = loadImage('assets/bricks_third.jpg');\n}\n\nfunction setup() {\n mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, DARKEST);\n image(mountains, 0, 0);\n image(bricks, 0, 0);\n}\n
\n
\nlet mountains;\nlet bricks;\n\nfunction preload() {\n mountains = loadImage('assets/rockies.jpg');\n bricks = loadImage('assets/bricks_third.jpg');\n}\n\nfunction setup() {\n mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, LIGHTEST);\n image(mountains, 0, 0);\n image(bricks, 0, 0);\n}\n
" - ], - alt: - 'image of rocky mountains. Brick images on left and right. Right overexposed\nimage of rockies. Brickwall images on left and right. Right mortar transparent\nimage of rockies. Brickwall images on left and right. Right translucent', - class: 'p5.Image', - module: 'Image', - submodule: 'Image', - overloads: [ - { - line: 674, - params: [ - { - name: 'srcImage', - description: '

source image

\n', - type: 'p5.Image' - }, - { - name: 'sx', - description: - '

X coordinate of the source's upper left corner

\n', - type: 'Integer' - }, - { - name: 'sy', - description: - '

Y coordinate of the source's upper left corner

\n', - type: 'Integer' - }, - { - name: 'sw', - description: '

source image width

\n', - type: 'Integer' - }, - { - name: 'sh', - description: '

source image height

\n', - type: 'Integer' - }, - { - name: 'dx', - description: - '

X coordinate of the destination's upper left corner

\n', - type: 'Integer' - }, - { - name: 'dy', - description: - '

Y coordinate of the destination's upper left corner

\n', - type: 'Integer' - }, - { - name: 'dw', - description: '

destination image width

\n', - type: 'Integer' - }, - { - name: 'dh', - description: '

destination image height

\n', - type: 'Integer' - }, - { - name: 'blendMode', - description: - '

the blend mode. either\n BLEND, DARKEST, LIGHTEST, DIFFERENCE,\n MULTIPLY, EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT,\n SOFT_LIGHT, DODGE, BURN, ADD or NORMAL.

\n

Available blend modes are: normal | multiply | screen | overlay |\n darken | lighten | color-dodge | color-burn | hard-light |\n soft-light | difference | exclusion | hue | saturation |\n color | luminosity

\n

http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/

\n', - type: 'Constant' - } - ] - }, - { - line: 753, - params: [ - { - name: 'sx', - description: '', - type: 'Integer' - }, - { - name: 'sy', - description: '', - type: 'Integer' - }, - { - name: 'sw', - description: '', - type: 'Integer' - }, - { - name: 'sh', - description: '', - type: 'Integer' - }, - { - name: 'dx', - description: '', - type: 'Integer' - }, - { - name: 'dy', - description: '', - type: 'Integer' - }, - { - name: 'dw', - description: '', - type: 'Integer' - }, - { - name: 'dh', - description: '', - type: 'Integer' - }, - { - name: 'blendMode', - description: '', - type: 'Constant' - } - ] - } - ] - }, - { - file: 'src/image/p5.Image.js', - line: 796, - description: - '

Saves the image to a file and force the browser to download it.\nAccepts two strings for filename and file extension\nSupports png (default) and jpg.

\n', - itemtype: 'method', - name: 'save', - params: [ - { - name: 'filename', - description: '

give your file a name

\n', - type: 'String' - }, - { - name: 'extension', - description: '

'png' or 'jpg'

\n', - type: 'String' - } - ], - example: [ - "\n
\nlet photo;\n\nfunction preload() {\n photo = loadImage('assets/rockies.jpg');\n}\n\nfunction draw() {\n image(photo, 0, 0);\n}\n\nfunction keyTyped() {\n if (key === 's') {\n photo.save('photo', 'png');\n }\n}\n
" - ], - alt: 'image of rocky mountains.', - class: 'p5.Image', - module: 'Image', - submodule: 'Image' - }, - { - file: 'src/image/pixels.js', - line: 14, - description: - '

Uint8ClampedArray\ncontaining the values for all the pixels in the display window.\nThese values are numbers. This array is the size (include an appropriate\nfactor for pixelDensity) of the display window x4,\nrepresenting the R, G, B, A values in order for each pixel, moving from\nleft to right across each row, then down each column. Retina and other\nhigh density displays will have more pixels[] (by a factor of\npixelDensity^2).\nFor example, if the image is 100x100 pixels, there will be 40,000. On a\nretina display, there will be 160,000.\n

\nThe first four values (indices 0-3) in the array will be the R, G, B, A\nvalues of the pixel at (0, 0). The second four values (indices 4-7) will\ncontain the R, G, B, A values of the pixel at (1, 0). More generally, to\nset values for a pixel at (x, y):

\n
let d = pixelDensity();\nfor (let i = 0; i < d; i++) {\n  for (let j = 0; j < d; j++) {\n    // loop over\n    index = 4 * ((y * d + j) * width * d + (x * d + i));\n    pixels[index] = r;\n    pixels[index+1] = g;\n    pixels[index+2] = b;\n    pixels[index+3] = a;\n  }\n}\n
\n

While the above method is complex, it is flexible enough to work with\nany pixelDensity. Note that set() will automatically take care of\nsetting all the appropriate values in pixels[] for a given (x, y) at\nany pixelDensity, but the performance may not be as fast when lots of\nmodifications are made to the pixel array.\n

\nBefore accessing this array, the data must loaded with the loadPixels()\nfunction. After the array data has been modified, the updatePixels()\nfunction must be run to update the changes.\n

\nNote that this is not a standard javascript array. This means that\nstandard javascript functions such as slice() or\narrayCopy() do not\nwork.

', - itemtype: 'property', - name: 'pixels', - type: 'Number[]', - example: [ - '\n
\n\nlet pink = color(255, 102, 204);\nloadPixels();\nlet d = pixelDensity();\nlet halfImage = 4 * (width * d) * (height / 2 * d);\nfor (let i = 0; i < halfImage; i += 4) {\n pixels[i] = red(pink);\n pixels[i + 1] = green(pink);\n pixels[i + 2] = blue(pink);\n pixels[i + 3] = alpha(pink);\n}\nupdatePixels();\n\n
' - ], - alt: 'top half of canvas pink, bottom grey', - class: 'p5', - module: 'Image', - submodule: 'Pixels' - }, - { - file: 'src/image/pixels.js', - line: 83, - description: - '

Copies a region of pixels from one image to another, using a specified\nblend mode to do the operation.

\n', - itemtype: 'method', - name: 'blend', - example: [ - "\n
\nlet img0;\nlet img1;\n\nfunction preload() {\n img0 = loadImage('assets/rockies.jpg');\n img1 = loadImage('assets/bricks_third.jpg');\n}\n\nfunction setup() {\n background(img0);\n image(img1, 0, 0);\n blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, LIGHTEST);\n}\n
\n
\nlet img0;\nlet img1;\n\nfunction preload() {\n img0 = loadImage('assets/rockies.jpg');\n img1 = loadImage('assets/bricks_third.jpg');\n}\n\nfunction setup() {\n background(img0);\n image(img1, 0, 0);\n blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, DARKEST);\n}\n
\n
\nlet img0;\nlet img1;\n\nfunction preload() {\n img0 = loadImage('assets/rockies.jpg');\n img1 = loadImage('assets/bricks_third.jpg');\n}\n\nfunction setup() {\n background(img0);\n image(img1, 0, 0);\n blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, ADD);\n}\n
" - ], - alt: - 'image of rocky mountains. Brick images on left and right. Right overexposed\nimage of rockies. Brickwall images on left and right. Right mortar transparent\nimage of rockies. Brickwall images on left and right. Right translucent', - class: 'p5', - module: 'Image', - submodule: 'Pixels', - overloads: [ - { - line: 83, - params: [ - { - name: 'srcImage', - description: '

source image

\n', - type: 'p5.Image' - }, - { - name: 'sx', - description: - '

X coordinate of the source's upper left corner

\n', - type: 'Integer' - }, - { - name: 'sy', - description: - '

Y coordinate of the source's upper left corner

\n', - type: 'Integer' - }, - { - name: 'sw', - description: '

source image width

\n', - type: 'Integer' - }, - { - name: 'sh', - description: '

source image height

\n', - type: 'Integer' - }, - { - name: 'dx', - description: - '

X coordinate of the destination's upper left corner

\n', - type: 'Integer' - }, - { - name: 'dy', - description: - '

Y coordinate of the destination's upper left corner

\n', - type: 'Integer' - }, - { - name: 'dw', - description: '

destination image width

\n', - type: 'Integer' - }, - { - name: 'dh', - description: '

destination image height

\n', - type: 'Integer' - }, - { - name: 'blendMode', - description: - '

the blend mode. either\n BLEND, DARKEST, LIGHTEST, DIFFERENCE,\n MULTIPLY, EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT,\n SOFT_LIGHT, DODGE, BURN, ADD or NORMAL.

\n', - type: 'Constant' - } - ] - }, - { - line: 156, - params: [ - { - name: 'sx', - description: '', - type: 'Integer' - }, - { - name: 'sy', - description: '', - type: 'Integer' - }, - { - name: 'sw', - description: '', - type: 'Integer' - }, - { - name: 'sh', - description: '', - type: 'Integer' - }, - { - name: 'dx', - description: '', - type: 'Integer' - }, - { - name: 'dy', - description: '', - type: 'Integer' - }, - { - name: 'dw', - description: '', - type: 'Integer' - }, - { - name: 'dh', - description: '', - type: 'Integer' - }, - { - name: 'blendMode', - description: '', - type: 'Constant' - } - ] - } - ] - }, - { - file: 'src/image/pixels.js', - line: 177, - description: - '

Copies a region of the canvas to another region of the canvas\nand copies a region of pixels from an image used as the srcImg parameter\ninto the canvas srcImage is specified this is used as the source. If\nthe source and destination regions aren't the same size, it will\nautomatically resize source pixels to fit the specified\ntarget region.

\n', - itemtype: 'method', - name: 'copy', - example: [ - "\n
\nlet img;\n\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n background(img);\n copy(img, 7, 22, 10, 10, 35, 25, 50, 50);\n stroke(255);\n noFill();\n // Rectangle shows area being copied\n rect(7, 22, 10, 10);\n}\n
" - ], - alt: - 'image of rocky mountains. Brick images on left and right. Right overexposed\nimage of rockies. Brickwall images on left and right. Right mortar transparent\nimage of rockies. Brickwall images on left and right. Right translucent', - class: 'p5', - module: 'Image', - submodule: 'Pixels', - overloads: [ - { - line: 177, - params: [ - { - name: 'srcImage', - description: '

source image

\n', - type: 'p5.Image|p5.Element' - }, - { - name: 'sx', - description: - '

X coordinate of the source's upper left corner

\n', - type: 'Integer' - }, - { - name: 'sy', - description: - '

Y coordinate of the source's upper left corner

\n', - type: 'Integer' - }, - { - name: 'sw', - description: '

source image width

\n', - type: 'Integer' - }, - { - name: 'sh', - description: '

source image height

\n', - type: 'Integer' - }, - { - name: 'dx', - description: - '

X coordinate of the destination's upper left corner

\n', - type: 'Integer' - }, - { - name: 'dy', - description: - '

Y coordinate of the destination's upper left corner

\n', - type: 'Integer' - }, - { - name: 'dw', - description: '

destination image width

\n', - type: 'Integer' - }, - { - name: 'dh', - description: '

destination image height

\n', - type: 'Integer' - } - ] - }, - { - line: 220, - params: [ - { - name: 'sx', - description: '', - type: 'Integer' - }, - { - name: 'sy', - description: '', - type: 'Integer' - }, - { - name: 'sw', - description: '', - type: 'Integer' - }, - { - name: 'sh', - description: '', - type: 'Integer' - }, - { - name: 'dx', - description: '', - type: 'Integer' - }, - { - name: 'dy', - description: '', - type: 'Integer' - }, - { - name: 'dw', - description: '', - type: 'Integer' - }, - { - name: 'dh', - description: '', - type: 'Integer' - } - ] - } - ] - }, - { - file: 'src/image/pixels.js', - line: 236, - description: - '

Applies a filter to the canvas.\n

\n

The presets options are:\n

\n

THRESHOLD\nConverts the image to black and white pixels depending if they are above or\nbelow the threshold defined by the level parameter. The parameter must be\nbetween 0.0 (black) and 1.0 (white). If no level is specified, 0.5 is used.\n

\n

GRAY\nConverts any colors in the image to grayscale equivalents. No parameter\nis used.\n

\n

OPAQUE\nSets the alpha channel to entirely opaque. No parameter is used.\n

\n

INVERT\nSets each pixel to its inverse value. No parameter is used.\n

\n

POSTERIZE\nLimits each channel of the image to the number of colors specified as the\nparameter. The parameter can be set to values between 2 and 255, but\nresults are most noticeable in the lower ranges.\n

\n

BLUR\nExecutes a Gaussian blur with the level parameter specifying the extent\nof the blurring. If no parameter is used, the blur is equivalent to\nGaussian blur of radius 1. Larger values increase the blur.\n

\n

ERODE\nReduces the light areas. No parameter is used.\n

\n

DILATE\nIncreases the light areas. No parameter is used.

\n', - itemtype: 'method', - name: 'filter', - params: [ - { - name: 'filterType', - description: - '

either THRESHOLD, GRAY, OPAQUE, INVERT,\n POSTERIZE, BLUR, ERODE, DILATE or BLUR.\n See Filters.js for docs on\n each available filter

\n', - type: 'Constant' - }, - { - name: 'filterParam', - description: - '

an optional parameter unique\n to each filter, see above

\n', - type: 'Number', - optional: true - } - ], - example: [ - "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n filter(THRESHOLD);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n filter(GRAY);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n filter(OPAQUE);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n filter(INVERT);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n filter(POSTERIZE, 3);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n filter(DILATE);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n filter(BLUR, 3);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n filter(ERODE);\n}\n\n
" - ], - alt: - 'black and white image of a brick wall.\ngreyscale image of a brickwall\nimage of a brickwall\njade colored image of a brickwall\nred and pink image of a brickwall\nimage of a brickwall\nblurry image of a brickwall\nimage of a brickwall\nimage of a brickwall with less detail', - class: 'p5', - module: 'Image', - submodule: 'Pixels' - }, - { - file: 'src/image/pixels.js', - line: 415, - description: - '

Get a region of pixels, or a single pixel, from the canvas.

\n

Returns an array of [R,G,B,A] values for any pixel or grabs a section of\nan image. If no parameters are specified, the entire image is returned.\nUse the x and y parameters to get the value of one pixel. Get a section of\nthe display window by specifying additional w and h parameters. When\ngetting an image, the x and y parameters define the coordinates for the\nupper-left corner of the image, regardless of the current imageMode().\n

\nGetting the color of a single pixel with get(x, y) is easy, but not as fast\nas grabbing the data directly from pixels[]. The equivalent statement to\nget(x, y) using pixels[] with pixel density d is

\n
let x, y, d; // set these to the coordinates\nlet off = (y * width + x) * d * 4;\nlet components = [\n  pixels[off],\n  pixels[off + 1],\n  pixels[off + 2],\n  pixels[off + 3]\n];\nprint(components);\n
\n



\n

See the reference for pixels[] for more information.

\n

If you want to extract an array of colors or a subimage from an p5.Image object,\ntake a look at p5.Image.get()

\n', - itemtype: 'method', - name: 'get', - return: { - description: 'the rectangle p5.Image', - type: 'p5.Image' - }, - example: [ - "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n let c = get();\n image(c, width / 2, 0);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n let c = get(50, 90);\n fill(c);\n noStroke();\n rect(25, 25, 50, 50);\n}\n\n
" - ], - alt: - '2 images of the rocky mountains, side-by-side\nImage of the rocky mountains with 50x50 green rect in center of canvas', - class: 'p5', - module: 'Image', - submodule: 'Pixels', - overloads: [ - { - line: 415, - params: [ - { - name: 'x', - description: '

x-coordinate of the pixel

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y-coordinate of the pixel

\n', - type: 'Number' - }, - { - name: 'w', - description: '

width

\n', - type: 'Number' - }, - { - name: 'h', - description: '

height

\n', - type: 'Number' - } - ], - return: { - description: 'the rectangle p5.Image', - type: 'p5.Image' - } - }, - { - line: 488, - params: [], - return: { - description: 'the whole p5.Image', - type: 'p5.Image' - } - }, - { - line: 492, - params: [ - { - name: 'x', - description: '', - type: 'Number' - }, - { - name: 'y', - description: '', - type: 'Number' - } - ], - return: { - description: 'color of pixel at x,y in array format [R, G, B, A]', - type: 'Number[]' - } - } - ] - }, - { - file: 'src/image/pixels.js', - line: 503, - description: - '

Loads the pixel data for the display window into the pixels[] array. This\nfunction must always be called before reading from or writing to pixels[].\nNote that only changes made with set() or direct manipulation of pixels[]\nwill occur.

\n', - itemtype: 'method', - name: 'loadPixels', - example: [ - "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n image(img, 0, 0, width, height);\n let d = pixelDensity();\n let halfImage = 4 * (width * d) * (height * d / 2);\n loadPixels();\n for (let i = 0; i < halfImage; i++) {\n pixels[i + halfImage] = pixels[i];\n }\n updatePixels();\n}\n\n
" - ], - alt: - 'two images of the rocky mountains. one on top, one on bottom of canvas.', - class: 'p5', - module: 'Image', - submodule: 'Pixels' - }, - { - file: 'src/image/pixels.js', - line: 540, - description: - '

Changes the color of any pixel, or writes an image directly to the\ndisplay window.

\n

The x and y parameters specify the pixel to change and the c parameter\nspecifies the color value. This can be a p5.Color object, or [R, G, B, A]\npixel array. It can also be a single grayscale value.\nWhen setting an image, the x and y parameters define the coordinates for\nthe upper-left corner of the image, regardless of the current imageMode().\n

\n

\nAfter using set(), you must call updatePixels() for your changes to appear.\nThis should be called once all pixels have been set, and must be called before\ncalling .get() or drawing the image.\n

\n

Setting the color of a single pixel with set(x, y) is easy, but not as\nfast as putting the data directly into pixels[]. Setting the pixels[]\nvalues directly may be complicated when working with a retina display,\nbut will perform better when lots of pixels need to be set directly on\nevery loop.

\n

See the reference for pixels[] for more information.

', - itemtype: 'method', - name: 'set', - params: [ - { - name: 'x', - description: '

x-coordinate of the pixel

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y-coordinate of the pixel

\n', - type: 'Number' - }, - { - name: 'c', - description: - '

insert a grayscale value | a pixel array |\n a p5.Color object | a p5.Image to copy

\n', - type: 'Number|Number[]|Object' - } - ], - example: [ - "\n
\n\nlet black = color(0);\nset(30, 20, black);\nset(85, 20, black);\nset(85, 75, black);\nset(30, 75, black);\nupdatePixels();\n\n
\n\n
\n\nfor (let i = 30; i < width - 15; i++) {\n for (let j = 20; j < height - 25; j++) {\n let c = color(204 - j, 153 - i, 0);\n set(i, j, c);\n }\n}\nupdatePixels();\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n set(0, 0, img);\n updatePixels();\n line(0, 0, width, height);\n line(0, height, width, 0);\n}\n\n
" - ], - alt: - "4 black points in the shape of a square middle-right of canvas.\nsquare with orangey-brown gradient lightening at bottom right.\nimage of the rocky mountains. with lines like an 'x' through the center.", - class: 'p5', - module: 'Image', - submodule: 'Pixels' - }, - { - file: 'src/image/pixels.js', - line: 614, - description: - '

Updates the display window with the data in the pixels[] array.\nUse in conjunction with loadPixels(). If you're only reading pixels from\nthe array, there's no need to call updatePixels() โ€” updating is only\nnecessary to apply changes. updatePixels() should be called anytime the\npixels array is manipulated or set() is called, and only changes made with\nset() or direct changes to pixels[] will occur.

\n', - itemtype: 'method', - name: 'updatePixels', - params: [ - { - name: 'x', - description: - '

x-coordinate of the upper-left corner of region\n to update

\n', - type: 'Number', - optional: true - }, - { - name: 'y', - description: - '

y-coordinate of the upper-left corner of region\n to update

\n', - type: 'Number', - optional: true - }, - { - name: 'w', - description: '

width of region to update

\n', - type: 'Number', - optional: true - }, - { - name: 'h', - description: '

height of region to update

\n', - type: 'Number', - optional: true - } - ], - example: [ - "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n image(img, 0, 0, width, height);\n let d = pixelDensity();\n let halfImage = 4 * (width * d) * (height * d / 2);\n loadPixels();\n for (let i = 0; i < halfImage; i++) {\n pixels[i + halfImage] = pixels[i];\n }\n updatePixels();\n}\n\n
" - ], - alt: - 'two images of the rocky mountains. one on top, one on bottom of canvas.', - class: 'p5', - module: 'Image', - submodule: 'Pixels' - }, - { - file: 'src/io/files.js', - line: 19, - description: - '

Loads a JSON file from a file or a URL, and returns an Object.\nNote that even if the JSON file contains an Array, an Object will be\nreturned with index numbers as keys.

\n

This method is asynchronous, meaning it may not finish before the next\nline in your sketch is executed. JSONP is supported via a polyfill and you\ncan pass in as the second argument an object with definitions of the json\ncallback following the syntax specified here.

\n

This method is suitable for fetching files up to size of 64MB.

\n', - itemtype: 'method', - name: 'loadJSON', - return: { - description: 'JSON data', - type: 'Object|Array' - }, - example: [ - '\n\n

Calling loadJSON() inside preload() guarantees to complete the\noperation before setup() and draw() are called.

\n\n
\n// Examples use USGS Earthquake API:\n// https://earthquake.usgs.gov/fdsnws/event/1/#methods\nlet earthquakes;\nfunction preload() {\n // Get the most recent earthquake in the database\n let url =\n \'https://earthquake.usgs.gov/earthquakes/feed/v1.0/\' +\n \'summary/all_day.geojson\';\n earthquakes = loadJSON(url);\n}\n\nfunction setup() {\n noLoop();\n}\n\nfunction draw() {\n background(200);\n // Get the magnitude and name of the earthquake out of the loaded JSON\n let earthquakeMag = earthquakes.features[0].properties.mag;\n let earthquakeName = earthquakes.features[0].properties.place;\n ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10);\n textAlign(CENTER);\n text(earthquakeName, 0, height - 30, width, 30);\n}\n
\n\n\n

Outside of preload(), you may supply a callback function to handle the\nobject:

\n
\nfunction setup() {\n noLoop();\n let url =\n \'https://earthquake.usgs.gov/earthquakes/feed/v1.0/\' +\n \'summary/all_day.geojson\';\n loadJSON(url, drawEarthquake);\n}\n\nfunction draw() {\n background(200);\n}\n\nfunction drawEarthquake(earthquakes) {\n // Get the magnitude and name of the earthquake out of the loaded JSON\n let earthquakeMag = earthquakes.features[0].properties.mag;\n let earthquakeName = earthquakes.features[0].properties.place;\n ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10);\n textAlign(CENTER);\n text(earthquakeName, 0, height - 30, width, 30);\n}\n
' - ], - alt: - '50x50 ellipse that changes from black to white depending on the current humidity\n50x50 ellipse that changes from black to white depending on the current humidity', - class: 'p5', - module: 'IO', - submodule: 'Input', - overloads: [ - { - line: 19, - params: [ - { - name: 'path', - description: '

name of the file or url to load

\n', - type: 'String' - }, - { - name: 'jsonpOptions', - description: '

options object for jsonp related settings

\n', - type: 'Object', - optional: true - }, - { - name: 'datatype', - description: '

"json" or "jsonp"

\n', - type: 'String', - optional: true - }, - { - name: 'callback', - description: - '

function to be executed after\n loadJSON() completes, data is passed\n in as first argument

\n', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: - '

function to be executed if\n there is an error, response is passed\n in as first argument

\n', - type: 'Function', - optional: true - } - ], - return: { - description: 'JSON data', - type: 'Object|Array' - } - }, - { - line: 105, - params: [ - { - name: 'path', - description: '', - type: 'String' - }, - { - name: 'datatype', - description: '', - type: 'String' - }, - { - name: 'callback', - description: '', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: '', - type: 'Function', - optional: true - } - ], - return: { - description: '', - type: 'Object|Array' - } - }, - { - line: 113, - params: [ - { - name: 'path', - description: '', - type: 'String' - }, - { - name: 'callback', - description: '', - type: 'Function' - }, - { - name: 'errorCallback', - description: '', - type: 'Function', - optional: true - } - ], - return: { - description: '', - type: 'Object|Array' - } - } - ] - }, - { - file: 'src/io/files.js', - line: 184, - description: - '

Reads the contents of a file and creates a String array of its individual\nlines. If the name of the file is used as the parameter, as in the above\nexample, the file must be located in the sketch directory/folder.\n

\nAlternatively, the file maybe be loaded from anywhere on the local\ncomputer using an absolute path (something that starts with / on Unix and\nLinux, or a drive letter on Windows), or the filename parameter can be a\nURL for a file found on a network.\n

\nThis method is asynchronous, meaning it may not finish before the next\nline in your sketch is executed.

\n

This method is suitable for fetching files up to size of 64MB.

\n', - itemtype: 'method', - name: 'loadStrings', - params: [ - { - name: 'filename', - description: '

name of the file or url to load

\n', - type: 'String' - }, - { - name: 'callback', - description: - '

function to be executed after loadStrings()\n completes, Array is passed in as first\n argument

\n', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: - '

function to be executed if\n there is an error, response is passed\n in as first argument

\n', - type: 'Function', - optional: true - } - ], - return: { - description: 'Array of Strings', - type: 'String[]' - }, - example: [ - '\n\n

Calling loadStrings() inside preload() guarantees to complete the\noperation before setup() and draw() are called.

\n\n
\nlet result;\nfunction preload() {\n result = loadStrings(\'assets/test.txt\');\n}\n\nfunction setup() {\n background(200);\n let ind = floor(random(result.length));\n text(result[ind], 10, 10, 80, 80);\n}\n
\n\n

Outside of preload(), you may supply a callback function to handle the\nobject:

\n\n
\nfunction setup() {\n loadStrings(\'assets/test.txt\', pickString);\n}\n\nfunction pickString(result) {\n background(200);\n let ind = floor(random(result.length));\n text(result[ind], 10, 10, 80, 80);\n}\n
' - ], - alt: - 'randomly generated text from a file, for example "i smell like butter"\nrandomly generated text from a file, for example "i have three feet"', - class: 'p5', - module: 'IO', - submodule: 'Input' - }, - { - file: 'src/io/files.js', - line: 297, - description: - '

Reads the contents of a file or URL and creates a p5.Table object with\nits values. If a file is specified, it must be located in the sketch's\n"data" folder. The filename parameter can also be a URL to a file found\nonline. By default, the file is assumed to be comma-separated (in CSV\nformat). Table only looks for a header row if the 'header' option is\nincluded.

\n\n

Possible options include:\n

    \n
  • csv - parse the table as comma-separated values
  • \n
  • tsv - parse the table as tab-separated values
  • \n
  • header - this table has a header (title) row
  • \n
\n

\n\n

When passing in multiple options, pass them in as separate parameters,\nseperated by commas. For example:\n

\n\nloadTable('my_csv_file.csv', 'csv', 'header');\n\n

\n\n

All files loaded and saved use UTF-8 encoding.

\n\n

This method is asynchronous, meaning it may not finish before the next\nline in your sketch is executed. Calling loadTable() inside preload()\nguarantees to complete the operation before setup() and draw() are called.\n

Outside of preload(), you may supply a callback function to handle the\nobject:

\n

\n\n

This method is suitable for fetching files up to size of 64MB.

\n', - itemtype: 'method', - name: 'loadTable', - return: { - description: 'Table object containing data', - type: 'Object' - }, - example: [ - '\n
\n\n// Given the following CSV file called "mammals.csv"\n// located in the project\'s "assets" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value "csv"\n //and has a header specifying the columns labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n //the file can be remote\n //table = loadTable("http://p5js.org/reference/assets/mammals.csv",\n // "csv", "header");\n}\n\nfunction setup() {\n //count the columns\n print(table.getRowCount() + \' total rows in table\');\n print(table.getColumnCount() + \' total columns in table\');\n\n print(table.getColumn(\'name\'));\n //["Goat", "Leopard", "Zebra"]\n\n //cycle through the table\n for (let r = 0; r < table.getRowCount(); r++)\n for (let c = 0; c < table.getColumnCount(); c++) {\n print(table.getString(r, c));\n }\n}\n\n
' - ], - alt: - 'randomly generated text from a file, for example "i smell like butter"\nrandomly generated text from a file, for example "i have three feet"', - class: 'p5', - module: 'IO', - submodule: 'Input', - overloads: [ - { - line: 297, - params: [ - { - name: 'filename', - description: '

name of the file or URL to load

\n', - type: 'String' - }, - { - name: 'options', - description: - '

"header" "csv" "tsv"

\n', - type: 'String' - }, - { - name: 'callback', - description: - '

function to be executed after\n loadTable() completes. On success, the\n Table object is passed in as the\n first argument.

\n', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: - '

function to be executed if\n there is an error, response is passed\n in as first argument

\n', - type: 'Function', - optional: true - } - ], - return: { - description: 'Table object containing data', - type: 'Object' - } - }, - { - line: 387, - params: [ - { - name: 'filename', - description: '', - type: 'String' - }, - { - name: 'callback', - description: '', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: '', - type: 'Function', - optional: true - } - ], - return: { - description: '', - type: 'Object' - } - } - ] - }, - { - file: 'src/io/files.js', - line: 607, - description: - '

Reads the contents of a file and creates an XML object with its values.\nIf the name of the file is used as the parameter, as in the above example,\nthe file must be located in the sketch directory/folder.

\n

Alternatively, the file maybe be loaded from anywhere on the local\ncomputer using an absolute path (something that starts with / on Unix and\nLinux, or a drive letter on Windows), or the filename parameter can be a\nURL for a file found on a network.

\n

This method is asynchronous, meaning it may not finish before the next\nline in your sketch is executed. Calling loadXML() inside preload()\nguarantees to complete the operation before setup() and draw() are called.

\n

Outside of preload(), you may supply a callback function to handle the\nobject.

\n

This method is suitable for fetching files up to size of 64MB.

\n', - itemtype: 'method', - name: 'loadXML', - params: [ - { - name: 'filename', - description: '

name of the file or URL to load

\n', - type: 'String' - }, - { - name: 'callback', - description: - '

function to be executed after loadXML()\n completes, XML object is passed in as\n first argument

\n', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: - '

function to be executed if\n there is an error, response is passed\n in as first argument

\n', - type: 'Function', - optional: true - } - ], - return: { - description: 'XML object containing data', - type: 'Object' - }, - example: [ - '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let children = xml.getChildren(\'animal\');\n\n for (let i = 0; i < children.length; i++) {\n let id = children[i].getNum(\'id\');\n let coloring = children[i].getString(\'species\');\n let name = children[i].getContent();\n print(id + \', \' + coloring + \', \' + name);\n }\n}\n\n// Sketch prints:\n// 0, Capra hircus, Goat\n// 1, Panthera pardus, Leopard\n// 2, Equus zebra, Zebra\n
' - ], - alt: 'no image displayed', - class: 'p5', - module: 'IO', - submodule: 'Input' - }, - { - file: 'src/io/files.js', - line: 718, - description: - '

This method is suitable for fetching files up to size of 64MB.

\n', - itemtype: 'method', - name: 'loadBytes', - params: [ - { - name: 'file', - description: '

name of the file or URL to load

\n', - type: 'String' - }, - { - name: 'callback', - description: - '

function to be executed after loadBytes()\n completes

\n', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: - '

function to be executed if there\n is an error

\n', - type: 'Function', - optional: true - } - ], - return: { - description: "an object whose 'bytes' property will be the loaded buffer", - type: 'Object' - }, - example: [ - "\n
\nlet data;\n\nfunction preload() {\n data = loadBytes('assets/mammals.xml');\n}\n\nfunction setup() {\n for (let i = 0; i < 5; i++) {\n console.log(data.bytes[i].toString(16));\n }\n}\n
" - ], - alt: 'no image displayed', - class: 'p5', - module: 'IO', - submodule: 'Input' - }, - { - file: 'src/io/files.js', - line: 778, - description: - '

Method for executing an HTTP GET request. If data type is not specified,\np5 will try to guess based on the URL, defaulting to text. This is equivalent to\ncalling httpDo(path, 'GET'). The 'binary' datatype will return\na Blob object, and the 'arrayBuffer' datatype will return an ArrayBuffer\nwhich can be used to initialize typed arrays (such as Uint8Array).

\n', - itemtype: 'method', - name: 'httpGet', - return: { - description: - 'A promise that resolves with the data when the operation\n completes successfully or rejects with the error after\n one occurs.', - type: 'Promise' - }, - example: [ - "\n
\n// Examples use USGS Earthquake API:\n// https://earthquake.usgs.gov/fdsnws/event/1/#methods\nlet earthquakes;\nfunction preload() {\n // Get the most recent earthquake in the database\n let url =\n 'https://earthquake.usgs.gov/fdsnws/event/1/query?' +\n 'format=geojson&limit=1&orderby=time';\n httpGet(url, 'jsonp', false, function(response) {\n // when the HTTP request completes, populate the variable that holds the\n // earthquake data used in the visualization.\n earthquakes = response;\n });\n}\n\nfunction draw() {\n if (!earthquakes) {\n // Wait until the earthquake data has loaded before drawing.\n return;\n }\n background(200);\n // Get the magnitude and name of the earthquake out of the loaded JSON\n let earthquakeMag = earthquakes.features[0].properties.mag;\n let earthquakeName = earthquakes.features[0].properties.place;\n ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10);\n textAlign(CENTER);\n text(earthquakeName, 0, height - 30, width, 30);\n noLoop();\n}\n
" - ], - class: 'p5', - module: 'IO', - submodule: 'Input', - overloads: [ - { - line: 778, - params: [ - { - name: 'path', - description: '

name of the file or url to load

\n', - type: 'String' - }, - { - name: 'datatype', - description: - '

"json", "jsonp", "binary", "arrayBuffer",\n "xml", or "text"

\n', - type: 'String', - optional: true - }, - { - name: 'data', - description: '

param data passed sent with request

\n', - type: 'Object|Boolean', - optional: true - }, - { - name: 'callback', - description: - '

function to be executed after\n httpGet() completes, data is passed in\n as first argument

\n', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: - '

function to be executed if\n there is an error, response is passed\n in as first argument

\n', - type: 'Function', - optional: true - } - ], - return: { - description: - 'A promise that resolves with the data when the operation\n completes successfully or rejects with the error after\n one occurs.', - type: 'Promise' - } - }, - { - line: 832, - params: [ - { - name: 'path', - description: '', - type: 'String' - }, - { - name: 'data', - description: '', - type: 'Object|Boolean' - }, - { - name: 'callback', - description: '', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: '', - type: 'Function', - optional: true - } - ], - return: { - description: '', - type: 'Promise' - } - }, - { - line: 840, - params: [ - { - name: 'path', - description: '', - type: 'String' - }, - { - name: 'callback', - description: '', - type: 'Function' - }, - { - name: 'errorCallback', - description: '', - type: 'Function', - optional: true - } - ], - return: { - description: '', - type: 'Promise' - } - } - ] - }, - { - file: 'src/io/files.js', - line: 855, - description: - '

Method for executing an HTTP POST request. If data type is not specified,\np5 will try to guess based on the URL, defaulting to text. This is equivalent to\ncalling httpDo(path, 'POST').

\n', - itemtype: 'method', - name: 'httpPost', - return: { - description: - 'A promise that resolves with the data when the operation\n completes successfully or rejects with the error after\n one occurs.', - type: 'Promise' - }, - example: [ - "\n
\n\n// Examples use jsonplaceholder.typicode.com for a Mock Data API\n\nlet url = 'https://jsonplaceholder.typicode.com/posts';\nlet postData = { userId: 1, title: 'p5 Clicked!', body: 'p5.js is way cool.' };\n\nfunction setup() {\n createCanvas(800, 800);\n}\n\nfunction mousePressed() {\n // Pick new random color values\n let r = random(255);\n let g = random(255);\n let b = random(255);\n\n httpPost(url, 'json', postData, function(result) {\n strokeWeight(2);\n stroke(r, g, b);\n fill(r, g, b, 127);\n ellipse(mouseX, mouseY, 200, 200);\n text(result.body, mouseX, mouseY);\n });\n}\n\n
\n\n\n
\nlet url = 'https://invalidURL'; // A bad URL that will cause errors\nlet postData = { title: 'p5 Clicked!', body: 'p5.js is way cool.' };\n\nfunction setup() {\n createCanvas(800, 800);\n}\n\nfunction mousePressed() {\n // Pick new random color values\n let r = random(255);\n let g = random(255);\n let b = random(255);\n\n httpPost(\n url,\n 'json',\n postData,\n function(result) {\n // ... won't be called\n },\n function(error) {\n strokeWeight(2);\n stroke(r, g, b);\n fill(r, g, b, 127);\n text(error.toString(), mouseX, mouseY);\n }\n );\n}\n
\n" - ], - class: 'p5', - module: 'IO', - submodule: 'Input', - overloads: [ - { - line: 855, - params: [ - { - name: 'path', - description: '

name of the file or url to load

\n', - type: 'String' - }, - { - name: 'datatype', - description: - '

"json", "jsonp", "xml", or "text".\n If omitted, httpPost() will guess.

\n', - type: 'String', - optional: true - }, - { - name: 'data', - description: '

param data passed sent with request

\n', - type: 'Object|Boolean', - optional: true - }, - { - name: 'callback', - description: - '

function to be executed after\n httpPost() completes, data is passed in\n as first argument

\n', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: - '

function to be executed if\n there is an error, response is passed\n in as first argument

\n', - type: 'Function', - optional: true - } - ], - return: { - description: - 'A promise that resolves with the data when the operation\n completes successfully or rejects with the error after\n one occurs.', - type: 'Promise' - } - }, - { - line: 937, - params: [ - { - name: 'path', - description: '', - type: 'String' - }, - { - name: 'data', - description: '', - type: 'Object|Boolean' - }, - { - name: 'callback', - description: '', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: '', - type: 'Function', - optional: true - } - ], - return: { - description: '', - type: 'Promise' - } - }, - { - line: 945, - params: [ - { - name: 'path', - description: '', - type: 'String' - }, - { - name: 'callback', - description: '', - type: 'Function' - }, - { - name: 'errorCallback', - description: '', - type: 'Function', - optional: true - } - ], - return: { - description: '', - type: 'Promise' - } - } - ] - }, - { - file: 'src/io/files.js', - line: 960, - description: - '

Method for executing an HTTP request. If data type is not specified,\np5 will try to guess based on the URL, defaulting to text.

\nFor more advanced use, you may also pass in the path as the first argument\nand a object as the second argument, the signature follows the one specified\nin the Fetch API specification.\nThis method is suitable for fetching files up to size of 64MB when "GET" is used.

\n', - itemtype: 'method', - name: 'httpDo', - return: { - description: - 'A promise that resolves with the data when the operation\n completes successfully or rejects with the error after\n one occurs.', - type: 'Promise' - }, - example: [ - "\n
\n\n// Examples use USGS Earthquake API:\n// https://earthquake.usgs.gov/fdsnws/event/1/#methods\n\n// displays an animation of all USGS earthquakes\nlet earthquakes;\nlet eqFeatureIndex = 0;\n\nfunction preload() {\n let url = 'https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson';\n httpDo(\n url,\n {\n method: 'GET',\n // Other Request options, like special headers for apis\n headers: { authorization: 'Bearer secretKey' }\n },\n function(res) {\n earthquakes = res;\n }\n );\n}\n\nfunction draw() {\n // wait until the data is loaded\n if (!earthquakes || !earthquakes.features[eqFeatureIndex]) {\n return;\n }\n clear();\n\n let feature = earthquakes.features[eqFeatureIndex];\n let mag = feature.properties.mag;\n let rad = mag / 11 * ((width + height) / 2);\n fill(255, 0, 0, 100);\n ellipse(width / 2 + random(-2, 2), height / 2 + random(-2, 2), rad, rad);\n\n if (eqFeatureIndex >= earthquakes.features.length) {\n eqFeatureIndex = 0;\n } else {\n eqFeatureIndex += 1;\n }\n}\n\n
" - ], - class: 'p5', - module: 'IO', - submodule: 'Input', - overloads: [ - { - line: 960, - params: [ - { - name: 'path', - description: '

name of the file or url to load

\n', - type: 'String' - }, - { - name: 'method', - description: - '

either "GET", "POST", or "PUT",\n defaults to "GET"

\n', - type: 'String', - optional: true - }, - { - name: 'datatype', - description: - '

"json", "jsonp", "xml", or "text"

\n', - type: 'String', - optional: true - }, - { - name: 'data', - description: '

param data passed sent with request

\n', - type: 'Object', - optional: true - }, - { - name: 'callback', - description: - '

function to be executed after\n httpGet() completes, data is passed in\n as first argument

\n', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: - '

function to be executed if\n there is an error, response is passed\n in as first argument

\n', - type: 'Function', - optional: true - } - ], - return: { - description: - 'A promise that resolves with the data when the operation\n completes successfully or rejects with the error after\n one occurs.', - type: 'Promise' - } - }, - { - line: 1031, - params: [ - { - name: 'path', - description: '', - type: 'String' - }, - { - name: 'options', - description: - '

Request object options as documented in the\n "fetch" API\nreference

\n', - type: 'Object' - }, - { - name: 'callback', - description: '', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: '', - type: 'Function', - optional: true - } - ], - return: { - description: '', - type: 'Promise' - } - } - ] - }, - { - file: 'src/io/files.js', - line: 1193, - itemtype: 'method', - name: 'createWriter', - params: [ - { - name: 'name', - description: '

name of the file to be created

\n', - type: 'String' - }, - { - name: 'extension', - description: '', - type: 'String', - optional: true - } - ], - return: { - description: '', - type: 'p5.PrintWriter' - }, - example: [ - "\n
\n\nfunction setup() {\n createCanvas(100, 100);\n background(200);\n text('click here to save', 10, 10, 70, 80);\n}\n\nfunction mousePressed() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n var writer = createWriter('squares.txt');\n for (let i = 0; i < 10; i++) {\n writer.print(i * i);\n }\n writer.close();\n writer.clear();\n }\n}\n\n
" - ], - class: 'p5', - module: 'IO', - submodule: 'Output' - }, - { - file: 'src/io/files.js', - line: 1248, - description: '

Writes data to the PrintWriter stream

\n', - itemtype: 'method', - name: 'write', - params: [ - { - name: 'data', - description: '

all data to be written by the PrintWriter

\n', - type: 'Array' - } - ], - example: [ - "\n
\n\n// creates a file called 'newFile.txt'\nlet writer = createWriter('newFile.txt');\n// write 'Hello world!'' to the file\nwriter.write(['Hello world!']);\n// close the PrintWriter and save the file\nwriter.close();\n\n
\n
\n\n// creates a file called 'newFile2.txt'\nlet writer = createWriter('newFile2.txt');\n// write 'apples,bananas,123' to the file\nwriter.write(['apples', 'bananas', 123]);\n// close the PrintWriter and save the file\nwriter.close();\n\n
\n
\n\n// creates a file called 'newFile3.txt'\nlet writer = createWriter('newFile3.txt');\n// write 'My name is: Teddy' to the file\nwriter.write('My name is:');\nwriter.write(' Teddy');\n// close the PrintWriter and save the file\nwriter.close();\n\n
" - ], - class: 'p5.PrintWriter', - module: 'IO', - submodule: 'Output' - }, - { - file: 'src/io/files.js', - line: 1288, - description: - '

Writes data to the PrintWriter stream, and adds a new line at the end

\n', - itemtype: 'method', - name: 'print', - params: [ - { - name: 'data', - description: '

all data to be printed by the PrintWriter

\n', - type: 'Array' - } - ], - example: [ - "\n
\n\n// creates a file called 'newFile.txt'\nlet writer = createWriter('newFile.txt');\n// creates a file containing\n// My name is:\n// Teddy\nwriter.print('My name is:');\nwriter.print('Teddy');\n// close the PrintWriter and save the file\nwriter.close();\n\n
\n
\n\nlet writer;\n\nfunction setup() {\n createCanvas(400, 400);\n // create a PrintWriter\n writer = createWriter('newFile.txt');\n}\n\nfunction draw() {\n // print all mouseX and mouseY coordinates to the stream\n writer.print([mouseX, mouseY]);\n}\n\nfunction mouseClicked() {\n // close the PrintWriter and save the file\n writer.close();\n}\n\n
" - ], - class: 'p5.PrintWriter', - module: 'IO', - submodule: 'Output' - }, - { - file: 'src/io/files.js', - line: 1331, - description: - '

Clears the data already written to the PrintWriter object

\n', - itemtype: 'method', - name: 'clear', - example: [ - "\n
\n// create writer object\nlet writer = createWriter('newFile.txt');\nwriter.write(['clear me']);\n// clear writer object here\nwriter.clear();\n// close writer\nwriter.close();\n
\n" - ], - class: 'p5.PrintWriter', - module: 'IO', - submodule: 'Output' - }, - { - file: 'src/io/files.js', - line: 1349, - description: '

Closes the PrintWriter

\n', - itemtype: 'method', - name: 'close', - example: [ - "\n
\n\n// create a file called 'newFile.txt'\nlet writer = createWriter('newFile.txt');\n// close the PrintWriter and save the file\nwriter.close();\n\n
\n
\n\n// create a file called 'newFile2.txt'\nlet writer = createWriter('newFile2.txt');\n// write some data to the file\nwriter.write([100, 101, 102]);\n// close the PrintWriter and save the file\nwriter.close();\n\n
" - ], - class: 'p5.PrintWriter', - module: 'IO', - submodule: 'Output' - }, - { - file: 'src/io/files.js', - line: 1398, - description: - "

Save an image, text, json, csv, wav, or html. Prompts download to\nthe client's computer. Note that it is not recommended to call save()\nwithin draw if it's looping, as the save() function will open a new save\ndialog every frame.

\n

The default behavior is to save the canvas as an image. You can\noptionally specify a filename.\nFor example:

\n
\n save();\n save('myCanvas.jpg'); // save a specific canvas with a filename\n 
\n\n

Alternately, the first parameter can be a pointer to a canvas\np5.Element, an Array of Strings,\nan Array of JSON, a JSON object, a p5.Table, a p5.Image, or a\np5.SoundFile (requires p5.sound). The second parameter is a filename\n(including extension). The third parameter is for options specific\nto this type of object. This method will save a file that fits the\ngiven parameters. For example:

\n\n
\n // Saves canvas as an image\n save('myCanvas.jpg');\n\n // Saves pImage as a png image\n let img = createImage(10, 10);\n save(img, 'my.png');\n\n // Saves canvas as an image\n let cnv = createCanvas(100, 100);\n save(cnv, 'myCanvas.jpg');\n\n // Saves p5.Renderer object as an image\n let gb = createGraphics(100, 100);\n save(gb, 'myGraphics.jpg');\n\n let myTable = new p5.Table();\n\n // Saves table as html file\n save(myTable, 'myTable.html');\n\n // Comma Separated Values\n save(myTable, 'myTable.csv');\n\n // Tab Separated Values\n save(myTable, 'myTable.tsv');\n\n let myJSON = { a: 1, b: true };\n\n // Saves pretty JSON\n save(myJSON, 'my.json');\n\n // Optimizes JSON filesize\n save(myJSON, 'my.json', true);\n\n // Saves array of strings to a text file with line breaks after each item\n let arrayOfStrings = ['a', 'b'];\n save(arrayOfStrings, 'my.txt');\n 
", - itemtype: 'method', - name: 'save', - params: [ - { - name: 'objectOrFilename', - description: - '

If filename is provided, will\n save canvas as an image with\n either png or jpg extension\n depending on the filename.\n If object is provided, will\n save depending on the object\n and filename (see examples\n above).

\n', - type: 'Object|String', - optional: true - }, - { - name: 'filename', - description: - '

If an object is provided as the first\n parameter, then the second parameter\n indicates the filename,\n and should include an appropriate\n file extension (see examples above).

\n', - type: 'String', - optional: true - }, - { - name: 'options', - description: - '

Additional options depend on\n filetype. For example, when saving JSON,\n true indicates that the\n output will be optimized for filesize,\n rather than readability.

\n', - type: 'Boolean|String', - optional: true - } - ], - class: 'p5', - module: 'IO', - submodule: 'Output' - }, - { - file: 'src/io/files.js', - line: 1526, - description: - '

Writes the contents of an Array or a JSON object to a .json file.\nThe file saving process and location of the saved file will\nvary between web browsers.

\n', - itemtype: 'method', - name: 'saveJSON', - params: [ - { - name: 'json', - description: '', - type: 'Array|Object' - }, - { - name: 'filename', - description: '', - type: 'String' - }, - { - name: 'optimize', - description: - '

If true, removes line breaks\n and spaces from the output\n file to optimize filesize\n (but not readability).

\n', - type: 'Boolean', - optional: true - } - ], - example: [ - '\n
\n let json = {}; // new JSON Object\n\n json.id = 0;\n json.species = \'Panthera leo\';\n json.name = \'Lion\';\n\n function setup() {\n createCanvas(100, 100);\n background(200);\n text(\'click here to save\', 10, 10, 70, 80);\n }\n\n function mousePressed() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n saveJSON(json, \'lion.json\');\n }\n }\n\n // saves the following to a file called "lion.json":\n // {\n // "id": 0,\n // "species": "Panthera leo",\n // "name": "Lion"\n // }\n
' - ], - alt: 'no image displayed', - class: 'p5', - module: 'IO', - submodule: 'Output' - }, - { - file: 'src/io/files.js', - line: 1584, - description: - '

Writes an array of Strings to a text file, one line per String.\nThe file saving process and location of the saved file will\nvary between web browsers.

\n', - itemtype: 'method', - name: 'saveStrings', - params: [ - { - name: 'list', - description: '

string array to be written

\n', - type: 'String[]' - }, - { - name: 'filename', - description: '

filename for output

\n', - type: 'String' - }, - { - name: 'extension', - description: '

the filename's extension

\n', - type: 'String', - optional: true - } - ], - example: [ - "\n
\n let words = 'apple bear cat dog';\n\n // .split() outputs an Array\n let list = split(words, ' ');\n\n function setup() {\n createCanvas(100, 100);\n background(200);\n text('click here to save', 10, 10, 70, 80);\n }\n\n function mousePressed() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n saveStrings(list, 'nouns.txt');\n }\n }\n\n // Saves the following to a file called 'nouns.txt':\n //\n // apple\n // bear\n // cat\n // dog\n
" - ], - alt: 'no image displayed', - class: 'p5', - module: 'IO', - submodule: 'Output' - }, - { - file: 'src/io/files.js', - line: 1652, - description: - '

Writes the contents of a Table object to a file. Defaults to a\ntext file with comma-separated-values ('csv') but can also\nuse tab separation ('tsv'), or generate an HTML table ('html').\nThe file saving process and location of the saved file will\nvary between web browsers.

\n', - itemtype: 'method', - name: 'saveTable', - params: [ - { - name: 'Table', - description: - '

the Table object to save to a file

\n', - type: 'p5.Table' - }, - { - name: 'filename', - description: '

the filename to which the Table should be saved

\n', - type: 'String' - }, - { - name: 'options', - description: - '

can be one of "tsv", "csv", or "html"

\n', - type: 'String', - optional: true - } - ], - example: [ - "\n
\n let table;\n\n function setup() {\n table = new p5.Table();\n\n table.addColumn('id');\n table.addColumn('species');\n table.addColumn('name');\n\n let newRow = table.addRow();\n newRow.setNum('id', table.getRowCount() - 1);\n newRow.setString('species', 'Panthera leo');\n newRow.setString('name', 'Lion');\n\n // To save, un-comment next line then click 'run'\n // saveTable(table, 'new.csv');\n }\n\n // Saves the following to a file called 'new.csv':\n // id,species,name\n // 0,Panthera leo,Lion\n
" - ], - alt: 'no image displayed', - class: 'p5', - module: 'IO', - submodule: 'Output' - }, - { - file: 'src/io/p5.Table.js', - line: 11, - description: - '

Table Options

\n

Generic class for handling tabular data, typically from a\nCSV, TSV, or other sort of spreadsheet file.

\n

CSV files are\n\ncomma separated values, often with the data in quotes. TSV\nfiles use tabs as separators, and usually don't bother with the\nquotes.

\n

File names should end with .csv if they're comma separated.

\n

A rough "spec" for CSV can be found\nhere.

\n

To load files, use the loadTable method.

\n

To save tables to your computer, use the save method\n or the saveTable method.

\n\n

Possible options include:

\n
    \n
  • csv - parse the table as comma-separated values\n
  • tsv - parse the table as tab-separated values\n
  • header - this table has a header (title) row\n
', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 45, - itemtype: 'property', - name: 'columns', - type: 'String[]', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 50, - itemtype: 'property', - name: 'rows', - type: 'p5.TableRow[]', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 56, - description: - '

Use addRow() to add a new row of data to a p5.Table object. By default,\nan empty row is created. Typically, you would store a reference to\nthe new row in a TableRow object (see newRow in the example above),\nand then set individual values using set().

\n

If a p5.TableRow object is included as a parameter, then that row is\nduplicated and added to the table.

\n', - itemtype: 'method', - name: 'addRow', - params: [ - { - name: 'row', - description: '

row to be added to the table

\n', - type: 'p5.TableRow', - optional: true - } - ], - return: { - description: 'the row that was added', - type: 'p5.TableRow' - }, - example: [ - "\n
\n \n // Given the CSV file \"mammals.csv\"\n // in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n //add a row\n let newRow = table.addRow();\n newRow.setString('id', table.getRowCount() - 1);\n newRow.setString('species', 'Canis Lupus');\n newRow.setString('name', 'Wolf');\n\n //print the results\n for (let r = 0; r < table.getRowCount(); r++)\n for (let c = 0; c < table.getColumnCount(); c++)\n print(table.getString(r, c));\n }\n \n
" - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 120, - description: '

Removes a row from the table object.

\n', - itemtype: 'method', - name: 'removeRow', - params: [ - { - name: 'id', - description: '

ID number of the row to remove

\n', - type: 'Integer' - } - ], - example: [ - '\n
\n\n// Given the CSV file "mammals.csv"\n// in the project\'s "assets" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value "csv"\n //and has a header specifying the columns labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n}\n\nfunction setup() {\n //remove the first row\n table.removeRow(0);\n\n //print the results\n for (let r = 0; r < table.getRowCount(); r++)\n for (let c = 0; c < table.getColumnCount(); c++)\n print(table.getString(r, c));\n}\n\n
' - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 168, - description: - '

Returns a reference to the specified p5.TableRow. The reference\ncan then be used to get and set values of the selected row.

\n', - itemtype: 'method', - name: 'getRow', - params: [ - { - name: 'rowID', - description: '

ID number of the row to get

\n', - type: 'Integer' - } - ], - return: { - description: 'p5.TableRow object', - type: 'p5.TableRow' - }, - example: [ - '\n
\n\n// Given the CSV file "mammals.csv"\n// in the project\'s "assets" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value "csv"\n //and has a header specifying the columns labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n}\n\nfunction setup() {\n let row = table.getRow(1);\n //print it column by column\n //note: a row is an object, not an array\n for (let c = 0; c < table.getColumnCount(); c++) {\n print(row.getString(c));\n }\n}\n\n
' - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 214, - description: - '

Gets all rows from the table. Returns an array of p5.TableRows.

\n', - itemtype: 'method', - name: 'getRows', - return: { - description: 'Array of p5.TableRows', - type: 'p5.TableRow[]' - }, - example: [ - "\n
\n \n // Given the CSV file \"mammals.csv\"\n // in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n let rows = table.getRows();\n\n //warning: rows is an array of objects\n for (let r = 0; r < rows.length; r++) {\n rows[r].set('name', 'Unicorn');\n }\n\n //print the results\n for (let r = 0; r < table.getRowCount(); r++)\n for (let c = 0; c < table.getColumnCount(); c++)\n print(table.getString(r, c));\n }\n \n
" - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 263, - description: - '

Finds the first row in the Table that contains the value\nprovided, and returns a reference to that row. Even if\nmultiple rows are possible matches, only the first matching\nrow is returned. The column to search may be specified by\neither its ID or title.

\n', - itemtype: 'method', - name: 'findRow', - params: [ - { - name: 'value', - description: '

The value to match

\n', - type: 'String' - }, - { - name: 'column', - description: - '

ID number or title of the\n column to search

\n', - type: 'Integer|String' - } - ], - return: { - description: '', - type: 'p5.TableRow' - }, - example: [ - "\n
\n \n // Given the CSV file \"mammals.csv\"\n // in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n //find the animal named zebra\n let row = table.findRow('Zebra', 'name');\n //find the corresponding species\n print(row.getString('species'));\n }\n \n
" - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 328, - description: - '

Finds the rows in the Table that contain the value\nprovided, and returns references to those rows. Returns an\nArray, so for must be used to iterate through all the rows,\nas shown in the example above. The column to search may be\nspecified by either its ID or title.

\n', - itemtype: 'method', - name: 'findRows', - params: [ - { - name: 'value', - description: '

The value to match

\n', - type: 'String' - }, - { - name: 'column', - description: - '

ID number or title of the\n column to search

\n', - type: 'Integer|String' - } - ], - return: { - description: 'An Array of TableRow objects', - type: 'p5.TableRow[]' - }, - example: [ - "\n
\n \n // Given the CSV file \"mammals.csv\"\n // in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n //add another goat\n let newRow = table.addRow();\n newRow.setString('id', table.getRowCount() - 1);\n newRow.setString('species', 'Scape Goat');\n newRow.setString('name', 'Goat');\n\n //find the rows containing animals named Goat\n let rows = table.findRows('Goat', 'name');\n print(rows.length + ' Goats found');\n }\n \n
" - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 397, - description: - '

Finds the first row in the Table that matches the regular\nexpression provided, and returns a reference to that row.\nEven if multiple rows are possible matches, only the first\nmatching row is returned. The column to search may be\nspecified by either its ID or title.

\n', - itemtype: 'method', - name: 'matchRow', - params: [ - { - name: 'regexp', - description: '

The regular expression to match

\n', - type: 'String|RegExp' - }, - { - name: 'column', - description: - '

The column ID (number) or\n title (string)

\n', - type: 'String|Integer' - } - ], - return: { - description: 'TableRow object', - type: 'p5.TableRow' - }, - example: [ - '\n
\n\n// Given the CSV file "mammals.csv"\n// in the project\'s "assets" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value "csv"\n //and has a header specifying the columns labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n}\n\nfunction setup() {\n //Search using specified regex on a given column, return TableRow object\n let mammal = table.matchRow(new RegExp(\'ant\'), 1);\n print(mammal.getString(1));\n //Output "Panthera pardus"\n}\n\n
\n' - ], - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 456, - description: - '

Finds the rows in the Table that match the regular expression provided,\nand returns references to those rows. Returns an array, so for must be\nused to iterate through all the rows, as shown in the example. The\ncolumn to search may be specified by either its ID or title.

\n', - itemtype: 'method', - name: 'matchRows', - params: [ - { - name: 'regexp', - description: '

The regular expression to match

\n', - type: 'String' - }, - { - name: 'column', - description: - '

The column ID (number) or\n title (string)

\n', - type: 'String|Integer', - optional: true - } - ], - return: { - description: 'An Array of TableRow objects', - type: 'p5.TableRow[]' - }, - example: [ - "\n
\n\nlet table;\n\nfunction setup() {\n table = new p5.Table();\n\n table.addColumn('name');\n table.addColumn('type');\n\n let newRow = table.addRow();\n newRow.setString('name', 'Lion');\n newRow.setString('type', 'Mammal');\n\n newRow = table.addRow();\n newRow.setString('name', 'Snake');\n newRow.setString('type', 'Reptile');\n\n newRow = table.addRow();\n newRow.setString('name', 'Mosquito');\n newRow.setString('type', 'Insect');\n\n newRow = table.addRow();\n newRow.setString('name', 'Lizard');\n newRow.setString('type', 'Reptile');\n\n let rows = table.matchRows('R.*', 'type');\n for (let i = 0; i < rows.length; i++) {\n print(rows[i].getString('name') + ': ' + rows[i].getString('type'));\n }\n}\n// Sketch prints:\n// Snake: Reptile\n// Lizard: Reptile\n\n
" - ], - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 523, - description: - '

Retrieves all values in the specified column, and returns them\nas an array. The column may be specified by either its ID or title.

\n', - itemtype: 'method', - name: 'getColumn', - params: [ - { - name: 'column', - description: '

String or Number of the column to return

\n', - type: 'String|Number' - } - ], - return: { - description: 'Array of column values', - type: 'Array' - }, - example: [ - '\n
\n \n // Given the CSV file "mammals.csv"\n // in the project\'s "assets" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value "csv"\n //and has a header specifying the columns labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n }\n\n function setup() {\n //getColumn returns an array that can be printed directly\n print(table.getColumn(\'species\'));\n //outputs ["Capra hircus", "Panthera pardus", "Equus zebra"]\n }\n \n
' - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 576, - description: - '

Removes all rows from a Table. While all rows are removed,\ncolumns and column titles are maintained.

\n', - itemtype: 'method', - name: 'clearRows', - example: [ - "\n
\n \n // Given the CSV file \"mammals.csv\"\n // in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n table.clearRows();\n print(table.getRowCount() + ' total rows in table');\n print(table.getColumnCount() + ' total columns in table');\n }\n \n
" - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 618, - description: - '

Use addColumn() to add a new column to a Table object.\nTypically, you will want to specify a title, so the column\nmay be easily referenced later by name. (If no title is\nspecified, the new column's title will be null.)

\n', - itemtype: 'method', - name: 'addColumn', - params: [ - { - name: 'title', - description: '

title of the given column

\n', - type: 'String', - optional: true - } - ], - example: [ - "\n
\n \n // Given the CSV file \"mammals.csv\"\n // in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n table.addColumn('carnivore');\n table.set(0, 'carnivore', 'no');\n table.set(1, 'carnivore', 'yes');\n table.set(2, 'carnivore', 'no');\n\n //print the results\n for (let r = 0; r < table.getRowCount(); r++)\n for (let c = 0; c < table.getColumnCount(); c++)\n print(table.getString(r, c));\n }\n \n
" - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 669, - description: '

Returns the total number of columns in a Table.

\n', - itemtype: 'method', - name: 'getColumnCount', - return: { - description: 'Number of columns in this table', - type: 'Integer' - }, - example: [ - "\n
\n \n // given the cvs file \"blobs.csv\" in /assets directory\n // ID, Name, Flavor, Shape, Color\n // Blob1, Blobby, Sweet, Blob, Pink\n // Blob2, Saddy, Savory, Blob, Blue\n\n let table;\n\n function preload() {\n table = loadTable('assets/blobs.csv');\n }\n\n function setup() {\n createCanvas(200, 100);\n textAlign(CENTER);\n background(255);\n }\n\n function draw() {\n let numOfColumn = table.getColumnCount();\n text('There are ' + numOfColumn + ' columns in the table.', 100, 50);\n }\n \n
" - ], - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 705, - description: '

Returns the total number of rows in a Table.

\n', - itemtype: 'method', - name: 'getRowCount', - return: { - description: 'Number of rows in this table', - type: 'Integer' - }, - example: [ - "\n
\n \n // given the cvs file \"blobs.csv\" in /assets directory\n //\n // ID, Name, Flavor, Shape, Color\n // Blob1, Blobby, Sweet, Blob, Pink\n // Blob2, Saddy, Savory, Blob, Blue\n\n let table;\n\n function preload() {\n table = loadTable('assets/blobs.csv');\n }\n\n function setup() {\n createCanvas(200, 100);\n textAlign(CENTER);\n background(255);\n }\n\n function draw() {\n text('There are ' + table.getRowCount() + ' rows in the table.', 100, 50);\n }\n \n
" - ], - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 741, - description: - '

Removes any of the specified characters (or "tokens").

\n\n

If no column is specified, then the values in all columns and\nrows are processed. A specific column may be referenced by\neither its ID or title.

', - itemtype: 'method', - name: 'removeTokens', - params: [ - { - name: 'chars', - description: '

String listing characters to be removed

\n', - type: 'String' - }, - { - name: 'column', - description: - '

Column ID (number)\n or name (string)

\n', - type: 'String|Integer', - optional: true - } - ], - example: [ - "\n
\n function setup() {\n let table = new p5.Table();\n\n table.addColumn('name');\n table.addColumn('type');\n\n let newRow = table.addRow();\n newRow.setString('name', ' $Lion ,');\n newRow.setString('type', ',,,Mammal');\n\n newRow = table.addRow();\n newRow.setString('name', '$Snake ');\n newRow.setString('type', ',,,Reptile');\n\n table.removeTokens(',$ ');\n print(table.getArray());\n }\n\n // prints:\n // 0 \"Lion\" \"Mamal\"\n // 1 \"Snake\" \"Reptile\"\n
" - ], - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 815, - description: - '

Trims leading and trailing whitespace, such as spaces and tabs,\nfrom String table values. If no column is specified, then the\nvalues in all columns and rows are trimmed. A specific column\nmay be referenced by either its ID or title.

\n', - itemtype: 'method', - name: 'trim', - params: [ - { - name: 'column', - description: - '

Column ID (number)\n or name (string)

\n', - type: 'String|Integer', - optional: true - } - ], - example: [ - "\n
\n function setup() {\n let table = new p5.Table();\n\n table.addColumn('name');\n table.addColumn('type');\n\n let newRow = table.addRow();\n newRow.setString('name', ' Lion ,');\n newRow.setString('type', ' Mammal ');\n\n newRow = table.addRow();\n newRow.setString('name', ' Snake ');\n newRow.setString('type', ' Reptile ');\n\n table.trim();\n print(table.getArray());\n }\n\n // prints:\n // 0 \"Lion\" \"Mamal\"\n // 1 \"Snake\" \"Reptile\"\n
" - ], - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 879, - description: - '

Use removeColumn() to remove an existing column from a Table\nobject. The column to be removed may be identified by either\nits title (a String) or its index value (an int).\nremoveColumn(0) would remove the first column, removeColumn(1)\nwould remove the second column, and so on.

\n', - itemtype: 'method', - name: 'removeColumn', - params: [ - { - name: 'column', - description: '

columnName (string) or ID (number)

\n', - type: 'String|Integer' - } - ], - example: [ - "\n
\n \n // Given the CSV file \"mammals.csv\"\n // in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n table.removeColumn('id');\n print(table.getColumnCount());\n }\n \n
" - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 944, - description: - '

Stores a value in the Table's specified row and column.\nThe row is specified by its ID, while the column may be specified\nby either its ID or title.

\n', - itemtype: 'method', - name: 'set', - params: [ - { - name: 'row', - description: '

row ID

\n', - type: 'Integer' - }, - { - name: 'column', - description: - '

column ID (Number)\n or title (String)

\n', - type: 'String|Integer' - }, - { - name: 'value', - description: '

value to assign

\n', - type: 'String|Number' - } - ], - example: [ - "\n
\n\n// Given the CSV file \"mammals.csv\"\n// in the project's \"assets\" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n}\n\nfunction setup() {\n table.set(0, 'species', 'Canis Lupus');\n table.set(0, 'name', 'Wolf');\n\n //print the results\n for (let r = 0; r < table.getRowCount(); r++)\n for (let c = 0; c < table.getColumnCount(); c++)\n print(table.getString(r, c));\n}\n\n
" - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 994, - description: - '

Stores a Float value in the Table's specified row and column.\nThe row is specified by its ID, while the column may be specified\nby either its ID or title.

\n', - itemtype: 'method', - name: 'setNum', - params: [ - { - name: 'row', - description: '

row ID

\n', - type: 'Integer' - }, - { - name: 'column', - description: - '

column ID (Number)\n or title (String)

\n', - type: 'String|Integer' - }, - { - name: 'value', - description: '

value to assign

\n', - type: 'Number' - } - ], - example: [ - '\n
\n\n// Given the CSV file "mammals.csv"\n// in the project\'s "assets" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value "csv"\n //and has a header specifying the columns labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n}\n\nfunction setup() {\n table.setNum(1, \'id\', 1);\n\n print(table.getColumn(0));\n //["0", 1, "2"]\n}\n\n
' - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 1040, - description: - '

Stores a String value in the Table's specified row and column.\nThe row is specified by its ID, while the column may be specified\nby either its ID or title.

\n', - itemtype: 'method', - name: 'setString', - params: [ - { - name: 'row', - description: '

row ID

\n', - type: 'Integer' - }, - { - name: 'column', - description: - '

column ID (Number)\n or title (String)

\n', - type: 'String|Integer' - }, - { - name: 'value', - description: '

value to assign

\n', - type: 'String' - } - ], - example: [ - "\n
\n// Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n}\n\nfunction setup() {\n //add a row\n let newRow = table.addRow();\n newRow.setString('id', table.getRowCount() - 1);\n newRow.setString('species', 'Canis Lupus');\n newRow.setString('name', 'Wolf');\n\n print(table.getArray());\n}\n
" - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 1085, - description: - '

Retrieves a value from the Table's specified row and column.\nThe row is specified by its ID, while the column may be specified by\neither its ID or title.

\n', - itemtype: 'method', - name: 'get', - params: [ - { - name: 'row', - description: '

row ID

\n', - type: 'Integer' - }, - { - name: 'column', - description: - '

columnName (string) or\n ID (number)

\n', - type: 'String|Integer' - } - ], - return: { - description: '', - type: 'String|Number' - }, - example: [ - "\n
\n\n// Given the CSV file \"mammals.csv\"\n// in the project's \"assets\" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n}\n\nfunction setup() {\n print(table.get(0, 1));\n //Capra hircus\n print(table.get(0, 'species'));\n //Capra hircus\n}\n\n
" - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 1132, - description: - '

Retrieves a Float value from the Table's specified row and column.\nThe row is specified by its ID, while the column may be specified by\neither its ID or title.

\n', - itemtype: 'method', - name: 'getNum', - params: [ - { - name: 'row', - description: '

row ID

\n', - type: 'Integer' - }, - { - name: 'column', - description: - '

columnName (string) or\n ID (number)

\n', - type: 'String|Integer' - } - ], - return: { - description: '', - type: 'Number' - }, - example: [ - '\n
\n\n// Given the CSV file "mammals.csv"\n// in the project\'s "assets" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value "csv"\n //and has a header specifying the columns labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n}\n\nfunction setup() {\n print(table.getNum(1, 0) + 100);\n //id 1 + 100 = 101\n}\n\n
' - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 1177, - description: - '

Retrieves a String value from the Table's specified row and column.\nThe row is specified by its ID, while the column may be specified by\neither its ID or title.

\n', - itemtype: 'method', - name: 'getString', - params: [ - { - name: 'row', - description: '

row ID

\n', - type: 'Integer' - }, - { - name: 'column', - description: - '

columnName (string) or\n ID (number)

\n', - type: 'String|Integer' - } - ], - return: { - description: '', - type: 'String' - }, - example: [ - '\n
\n\n// Given the CSV file "mammals.csv"\n// in the project\'s "assets" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n // table is comma separated value "CSV"\n // and has specifiying header for column labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n}\n\nfunction setup() {\n print(table.getString(0, 0)); // 0\n print(table.getString(0, 1)); // Capra hircus\n print(table.getString(0, 2)); // Goat\n print(table.getString(1, 0)); // 1\n print(table.getString(1, 1)); // Panthera pardus\n print(table.getString(1, 2)); // Leopard\n print(table.getString(2, 0)); // 2\n print(table.getString(2, 1)); // Equus zebra\n print(table.getString(2, 2)); // Zebra\n}\n\n
' - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 1230, - description: - '

Retrieves all table data and returns as an object. If a column name is\npassed in, each row object will be stored with that attribute as its\ntitle.

\n', - itemtype: 'method', - name: 'getObject', - params: [ - { - name: 'headerColumn', - description: - '

Name of the column which should be used to\n title each row object (optional)

\n', - type: 'String', - optional: true - } - ], - return: { - description: '', - type: 'Object' - }, - example: [ - '\n
\n\n// Given the CSV file "mammals.csv"\n// in the project\'s "assets" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value "csv"\n //and has a header specifying the columns labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n}\n\nfunction setup() {\n let tableObject = table.getObject();\n\n print(tableObject);\n //outputs an object\n}\n\n
' - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.Table.js', - line: 1296, - description: - '

Retrieves all table data and returns it as a multidimensional array.

\n', - itemtype: 'method', - name: 'getArray', - return: { - description: '', - type: 'Array' - }, - example: [ - '\n
\n\n// Given the CSV file "mammals.csv"\n// in the project\'s "assets" folder\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leoperd\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n // table is comma separated value "CSV"\n // and has specifiying header for column labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n}\n\nfunction setup() {\n let tableArray = table.getArray();\n for (let i = 0; i < tableArray.length; i++) {\n print(tableArray[i]);\n }\n}\n\n
' - ], - alt: 'no image displayed', - class: 'p5.Table', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.TableRow.js', - line: 42, - description: - '

Stores a value in the TableRow's specified column.\nThe column may be specified by either its ID or title.

\n', - itemtype: 'method', - name: 'set', - params: [ - { - name: 'column', - description: - '

Column ID (Number)\n or Title (String)

\n', - type: 'String|Integer' - }, - { - name: 'value', - description: '

The value to be stored

\n', - type: 'String|Number' - } - ], - example: [ - "\n
\n // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n let rows = table.getRows();\n for (let r = 0; r < rows.length; r++) {\n rows[r].set('name', 'Unicorn');\n }\n\n //print the results\n print(table.getArray());\n }\n
" - ], - alt: 'no image displayed', - class: 'p5.TableRow', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.TableRow.js', - line: 106, - description: - '

Stores a Float value in the TableRow's specified column.\nThe column may be specified by either its ID or title.

\n', - itemtype: 'method', - name: 'setNum', - params: [ - { - name: 'column', - description: - '

Column ID (Number)\n or Title (String)

\n', - type: 'String|Integer' - }, - { - name: 'value', - description: - '

The value to be stored\n as a Float

\n', - type: 'Number|String' - } - ], - example: [ - "\n
\n // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n let rows = table.getRows();\n for (let r = 0; r < rows.length; r++) {\n rows[r].setNum('id', r + 10);\n }\n\n print(table.getArray());\n }\n
" - ], - alt: 'no image displayed', - class: 'p5.TableRow', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.TableRow.js', - line: 150, - description: - '

Stores a String value in the TableRow's specified column.\nThe column may be specified by either its ID or title.

\n', - itemtype: 'method', - name: 'setString', - params: [ - { - name: 'column', - description: - '

Column ID (Number)\n or Title (String)

\n', - type: 'String|Integer' - }, - { - name: 'value', - description: - '

The value to be stored\n as a String

\n', - type: 'String|Number|Boolean|Object' - } - ], - example: [ - "\n
\n // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n let rows = table.getRows();\n for (let r = 0; r < rows.length; r++) {\n let name = rows[r].getString('name');\n rows[r].setString('name', 'A ' + name + ' named George');\n }\n\n print(table.getArray());\n }\n
" - ], - alt: 'no image displayed', - class: 'p5.TableRow', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.TableRow.js', - line: 195, - description: - '

Retrieves a value from the TableRow's specified column.\nThe column may be specified by either its ID or title.

\n', - itemtype: 'method', - name: 'get', - params: [ - { - name: 'column', - description: - '

columnName (string) or\n ID (number)

\n', - type: 'String|Integer' - } - ], - return: { - description: '', - type: 'String|Number' - }, - example: [ - "\n
\n // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n let names = [];\n let rows = table.getRows();\n for (let r = 0; r < rows.length; r++) {\n names.push(rows[r].get('name'));\n }\n\n print(names);\n }\n
" - ], - alt: 'no image displayed', - class: 'p5.TableRow', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.TableRow.js', - line: 243, - description: - '

Retrieves a Float value from the TableRow's specified\ncolumn. The column may be specified by either its ID or\ntitle.

\n', - itemtype: 'method', - name: 'getNum', - params: [ - { - name: 'column', - description: - '

columnName (string) or\n ID (number)

\n', - type: 'String|Integer' - } - ], - return: { - description: 'Float Floating point number', - type: 'Number' - }, - example: [ - "\n
\n // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n let rows = table.getRows();\n let minId = Infinity;\n let maxId = -Infinity;\n for (let r = 0; r < rows.length; r++) {\n let id = rows[r].getNum('id');\n minId = min(minId, id);\n maxId = min(maxId, id);\n }\n print('minimum id = ' + minId + ', maximum id = ' + maxId);\n }\n
" - ], - alt: 'no image displayed', - class: 'p5.TableRow', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.TableRow.js', - line: 299, - description: - '

Retrieves an String value from the TableRow's specified\ncolumn. The column may be specified by either its ID or\ntitle.

\n', - itemtype: 'method', - name: 'getString', - params: [ - { - name: 'column', - description: - '

columnName (string) or\n ID (number)

\n', - type: 'String|Integer' - } - ], - return: { - description: 'String', - type: 'String' - }, - example: [ - "\n
\n // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n let rows = table.getRows();\n let longest = '';\n for (let r = 0; r < rows.length; r++) {\n let species = rows[r].getString('species');\n if (longest.length < species.length) {\n longest = species;\n }\n }\n\n print('longest: ' + longest);\n }\n
" - ], - alt: 'no image displayed', - class: 'p5.TableRow', - module: 'IO', - submodule: 'Table' - }, - { - file: 'src/io/p5.XML.js', - line: 65, - description: - '

Gets a copy of the element's parent. Returns the parent as another\np5.XML object.

\n', - itemtype: 'method', - name: 'getParent', - return: { - description: 'element parent', - type: 'p5.XML' - }, - example: [ - '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let children = xml.getChildren(\'animal\');\n let parent = children[1].getParent();\n print(parent.getName());\n}\n\n// Sketch prints:\n// mammals\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 103, - description: - '

Gets the element's full name, which is returned as a String.

\n', - itemtype: 'method', - name: 'getName', - return: { - description: 'the name of the node', - type: 'String' - }, - example: [ - '<animal\n
\n // The following short XML file called "mammals.xml" is parsed\n // in the code below.\n //\n // \n // <mammals>\n // <animal id="0" species="Capra hircus">Goat</animal>\n // <animal id="1" species="Panthera pardus">Leopard</animal>\n // <animal id="2" species="Equus zebra">Zebra</animal>\n // </mammals>\n\n let xml;\n\n function preload() {\n xml = loadXML(\'assets/mammals.xml\');\n }\n\n function setup() {\n print(xml.getName());\n }\n\n // Sketch prints:\n // mammals\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 138, - description: - '

Sets the element's name, which is specified as a String.

\n', - itemtype: 'method', - name: 'setName', - params: [ - { - name: 'the', - description: '

new name of the node

\n', - type: 'String' - } - ], - example: [ - '<animal\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n print(xml.getName());\n xml.setName(\'fish\');\n print(xml.getName());\n}\n\n// Sketch prints:\n// mammals\n// fish\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 184, - description: - '

Checks whether or not the element has any children, and returns the result\nas a boolean.

\n', - itemtype: 'method', - name: 'hasChildren', - return: { - description: '', - type: 'Boolean' - }, - example: [ - '<animal\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n print(xml.hasChildren());\n}\n\n// Sketch prints:\n// true\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 220, - description: - '

Get the names of all of the element's children, and returns the names as an\narray of Strings. This is the same as looping through and calling getName()\non each child element individually.

\n', - itemtype: 'method', - name: 'listChildren', - return: { - description: 'names of the children of the element', - type: 'String[]' - }, - example: [ - '<animal\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n print(xml.listChildren());\n}\n\n// Sketch prints:\n// ["animal", "animal", "animal"]\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 261, - description: - '

Returns all of the element's children as an array of p5.XML objects. When\nthe name parameter is specified, then it will return all children that match\nthat name.

\n', - itemtype: 'method', - name: 'getChildren', - params: [ - { - name: 'name', - description: '

element name

\n', - type: 'String', - optional: true - } - ], - return: { - description: 'children of the element', - type: 'p5.XML[]' - }, - example: [ - '<animal\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let animals = xml.getChildren(\'animal\');\n\n for (let i = 0; i < animals.length; i++) {\n print(animals[i].getContent());\n }\n}\n\n// Sketch prints:\n// "Goat"\n// "Leopard"\n// "Zebra"\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 317, - description: - '

Returns the first of the element's children that matches the name parameter\nor the child of the given index.It returns undefined if no matching\nchild is found.

\n', - itemtype: 'method', - name: 'getChild', - params: [ - { - name: 'name', - description: '

element name or index

\n', - type: 'String|Integer' - } - ], - return: { - description: '', - type: 'p5.XML' - }, - example: [ - '<animal\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.getContent());\n}\n\n// Sketch prints:\n// "Goat"\n
\n
\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let secondChild = xml.getChild(1);\n print(secondChild.getContent());\n}\n\n// Sketch prints:\n// "Leopard"\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 378, - description: - '

Appends a new child to the element. The child can be specified with\neither a String, which will be used as the new tag's name, or as a\nreference to an existing p5.XML object.\nA reference to the newly created child is returned as an p5.XML object.

\n', - itemtype: 'method', - name: 'addChild', - params: [ - { - name: 'node', - description: - '

a p5.XML Object which will be the child to be added

\n', - type: 'p5.XML' - } - ], - example: [ - '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let child = new p5.XML();\n child.setName(\'animal\');\n child.setAttribute(\'id\', \'3\');\n child.setAttribute(\'species\', \'Ornithorhynchus anatinus\');\n child.setContent(\'Platypus\');\n xml.addChild(child);\n\n let animals = xml.getChildren(\'animal\');\n print(animals[animals.length - 1].getContent());\n}\n\n// Sketch prints:\n// "Goat"\n// "Leopard"\n// "Zebra"\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 430, - description: '

Removes the element specified by name or index.

\n', - itemtype: 'method', - name: 'removeChild', - params: [ - { - name: 'name', - description: '

element name or index

\n', - type: 'String|Integer' - } - ], - example: [ - '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n xml.removeChild(\'animal\');\n let children = xml.getChildren();\n for (let i = 0; i < children.length; i++) {\n print(children[i].getContent());\n }\n}\n\n// Sketch prints:\n// "Leopard"\n// "Zebra"\n
\n
\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n xml.removeChild(1);\n let children = xml.getChildren();\n for (let i = 0; i < children.length; i++) {\n print(children[i].getContent());\n }\n}\n\n// Sketch prints:\n// "Goat"\n// "Zebra"\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 502, - description: - '

Counts the specified element's number of attributes, returned as an Number.

\n', - itemtype: 'method', - name: 'getAttributeCount', - return: { - description: '', - type: 'Integer' - }, - example: [ - '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.getAttributeCount());\n}\n\n// Sketch prints:\n// 2\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 538, - description: - '

Gets all of the specified element's attributes, and returns them as an\narray of Strings.

\n', - itemtype: 'method', - name: 'listAttributes', - return: { - description: 'an array of strings containing the names of attributes', - type: 'String[]' - }, - example: [ - '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.listAttributes());\n}\n\n// Sketch prints:\n// ["id", "species"]\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 580, - description: - '

Checks whether or not an element has the specified attribute.

\n', - itemtype: 'method', - name: 'hasAttribute', - params: [ - { - name: 'the', - description: '

attribute to be checked

\n', - type: 'String' - } - ], - return: { - description: 'true if attribute found else false', - type: 'Boolean' - }, - example: [ - '\n
\n // The following short XML file called "mammals.xml" is parsed\n // in the code below.\n //\n // \n // <mammals>\n // <animal id="0" species="Capra hircus">Goat</animal>\n // <animal id="1" species="Panthera pardus">Leopard</animal>\n // <animal id="2" species="Equus zebra">Zebra</animal>\n // </mammals>\n\n let xml;\n\n function preload() {\n xml = loadXML(\'assets/mammals.xml\');\n }\n\n function setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.hasAttribute(\'species\'));\n print(firstChild.hasAttribute(\'color\'));\n }\n\n // Sketch prints:\n // true\n // false\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 624, - description: - '

Returns an attribute value of the element as an Number. If the defaultValue\nparameter is specified and the attribute doesn't exist, then defaultValue\nis returned. If no defaultValue is specified and the attribute doesn't\nexist, the value 0 is returned.

\n', - itemtype: 'method', - name: 'getNum', - params: [ - { - name: 'name', - description: '

the non-null full name of the attribute

\n', - type: 'String' - }, - { - name: 'defaultValue', - description: '

the default value of the attribute

\n', - type: 'Number', - optional: true - } - ], - return: { - description: '', - type: 'Number' - }, - example: [ - '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.getNum(\'id\'));\n}\n\n// Sketch prints:\n// 0\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 670, - description: - '

Returns an attribute value of the element as an String. If the defaultValue\nparameter is specified and the attribute doesn't exist, then defaultValue\nis returned. If no defaultValue is specified and the attribute doesn't\nexist, null is returned.

\n', - itemtype: 'method', - name: 'getString', - params: [ - { - name: 'name', - description: '

the non-null full name of the attribute

\n', - type: 'String' - }, - { - name: 'defaultValue', - description: '

the default value of the attribute

\n', - type: 'Number', - optional: true - } - ], - return: { - description: '', - type: 'String' - }, - example: [ - '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.getString(\'species\'));\n}\n\n// Sketch prints:\n// "Capra hircus"\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 716, - description: - '

Sets the content of an element's attribute. The first parameter specifies\nthe attribute name, while the second specifies the new content.

\n', - itemtype: 'method', - name: 'setAttribute', - params: [ - { - name: 'name', - description: '

the full name of the attribute

\n', - type: 'String' - }, - { - name: 'value', - description: '

the value of the attribute

\n', - type: 'Number|String|Boolean' - } - ], - example: [ - '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.getString(\'species\'));\n firstChild.setAttribute(\'species\', \'Jamides zebra\');\n print(firstChild.getString(\'species\'));\n}\n\n// Sketch prints:\n// "Capra hircus"\n// "Jamides zebra"\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 757, - description: - '

Returns the content of an element. If there is no such content,\ndefaultValue is returned if specified, otherwise null is returned.

\n', - itemtype: 'method', - name: 'getContent', - params: [ - { - name: 'defaultValue', - description: '

value returned if no content is found

\n', - type: 'String', - optional: true - } - ], - return: { - description: '', - type: 'String' - }, - example: [ - '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.getContent());\n}\n\n// Sketch prints:\n// "Goat"\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 798, - description: '

Sets the element's content.

\n', - itemtype: 'method', - name: 'setContent', - params: [ - { - name: 'text', - description: '

the new content

\n', - type: 'String' - } - ], - example: [ - '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.getContent());\n firstChild.setContent(\'Mountain Goat\');\n print(firstChild.getContent());\n}\n\n// Sketch prints:\n// "Goat"\n// "Mountain Goat"\n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/io/p5.XML.js', - line: 839, - description: - '

Serializes the element into a string. This function is useful for preparing\nthe content to be sent over a http request or saved to file.

\n', - itemtype: 'method', - name: 'serialize', - return: { - description: 'Serialized string of the element', - type: 'String' - }, - example: [ - '\n
\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n print(xml.serialize());\n}\n\n// Sketch prints:\n// \n// Goat\n// Leopard\n// Zebra\n// \n
' - ], - class: 'p5.XML', - module: 'IO', - submodule: 'XML' - }, - { - file: 'src/math/calculation.js', - line: 12, - description: - '

Calculates the absolute value (magnitude) of a number. Maps to Math.abs().\nThe absolute value of a number is always positive.

\n', - itemtype: 'method', - name: 'abs', - params: [ - { - name: 'n', - description: '

number to compute

\n', - type: 'Number' - } - ], - return: { - description: 'absolute value of given number', - type: 'Number' - }, - example: [ - '\n
\nfunction setup() {\n let x = -3;\n let y = abs(x);\n\n print(x); // -3\n print(y); // 3\n}\n
' - ], - alt: 'no image displayed', - class: 'p5', - module: 'Math', - submodule: 'Calculation' - }, - { - file: 'src/math/calculation.js', - line: 36, - description: - '

Calculates the closest int value that is greater than or equal to the\nvalue of the parameter. Maps to Math.ceil(). For example, ceil(9.03)\nreturns the value 10.

\n', - itemtype: 'method', - name: 'ceil', - params: [ - { - name: 'n', - description: '

number to round up

\n', - type: 'Number' - } - ], - return: { - description: 'rounded up number', - type: 'Integer' - }, - example: [ - '\n
\nfunction draw() {\n background(200);\n // map, mouseX between 0 and 5.\n let ax = map(mouseX, 0, 100, 0, 5);\n let ay = 66;\n\n //Get the ceiling of the mapped number.\n let bx = ceil(map(mouseX, 0, 100, 0, 5));\n let by = 33;\n\n // Multiply the mapped numbers by 20 to more easily\n // see the changes.\n stroke(0);\n fill(0);\n line(0, ay, ax * 20, ay);\n line(0, by, bx * 20, by);\n\n // Reformat the float returned by map and draw it.\n noStroke();\n text(nfc(ax, 2), ax, ay - 5);\n text(nfc(bx, 1), bx, by - 5);\n}\n
' - ], - alt: - '2 horizontal lines & number sets. increase with mouse x. bottom to 2 decimals', - class: 'p5', - module: 'Math', - submodule: 'Calculation' - }, - { - file: 'src/math/calculation.js', - line: 76, - description: - '

Constrains a value between a minimum and maximum value.

\n', - itemtype: 'method', - name: 'constrain', - params: [ - { - name: 'n', - description: '

number to constrain

\n', - type: 'Number' - }, - { - name: 'low', - description: '

minimum limit

\n', - type: 'Number' - }, - { - name: 'high', - description: '

maximum limit

\n', - type: 'Number' - } - ], - return: { - description: 'constrained number', - type: 'Number' - }, - example: [ - '\n
\nfunction draw() {\n background(200);\n\n let leftWall = 25;\n let rightWall = 75;\n\n // xm is just the mouseX, while\n // xc is the mouseX, but constrained\n // between the leftWall and rightWall!\n let xm = mouseX;\n let xc = constrain(mouseX, leftWall, rightWall);\n\n // Draw the walls.\n stroke(150);\n line(leftWall, 0, leftWall, height);\n line(rightWall, 0, rightWall, height);\n\n // Draw xm and xc as circles.\n noStroke();\n fill(150);\n ellipse(xm, 33, 9, 9); // Not Constrained\n fill(0);\n ellipse(xc, 66, 9, 9); // Constrained\n}\n
' - ], - alt: - '2 vertical lines. 2 ellipses move with mouse X 1 does not move passed lines', - class: 'p5', - module: 'Math', - submodule: 'Calculation' - }, - { - file: 'src/math/calculation.js', - line: 121, - description: - '

Calculates the distance between two points, in either two or three dimensions.

\n', - itemtype: 'method', - name: 'dist', - return: { - description: 'distance between the two points', - type: 'Number' - }, - example: [ - "\n
\n// Move your mouse inside the canvas to see the\n// change in distance between two points!\nfunction draw() {\n background(200);\n fill(0);\n\n let x1 = 10;\n let y1 = 90;\n let x2 = mouseX;\n let y2 = mouseY;\n\n line(x1, y1, x2, y2);\n ellipse(x1, y1, 7, 7);\n ellipse(x2, y2, 7, 7);\n\n // d is the length of the line\n // the distance from point 1 to point 2.\n let d = int(dist(x1, y1, x2, y2));\n\n // Let's write d along the line we are drawing!\n push();\n translate((x1 + x2) / 2, (y1 + y2) / 2);\n rotate(atan2(y2 - y1, x2 - x1));\n text(nfc(d, 1), 0, -5);\n pop();\n // Fancy!\n}\n
" - ], - alt: - '2 ellipses joined by line. 1 ellipse moves with mouse X&Y. Distance displayed.', - class: 'p5', - module: 'Math', - submodule: 'Calculation', - overloads: [ - { - line: 121, - params: [ - { - name: 'x1', - description: '

x-coordinate of the first point

\n', - type: 'Number' - }, - { - name: 'y1', - description: '

y-coordinate of the first point

\n', - type: 'Number' - }, - { - name: 'x2', - description: '

x-coordinate of the second point

\n', - type: 'Number' - }, - { - name: 'y2', - description: '

y-coordinate of the second point

\n', - type: 'Number' - } - ], - return: { - description: 'distance between the two points', - type: 'Number' - } - }, - { - line: 165, - params: [ - { - name: 'x1', - description: '', - type: 'Number' - }, - { - name: 'y1', - description: '', - type: 'Number' - }, - { - name: 'z1', - description: '

z-coordinate of the first point

\n', - type: 'Number' - }, - { - name: 'x2', - description: '', - type: 'Number' - }, - { - name: 'y2', - description: '', - type: 'Number' - }, - { - name: 'z2', - description: '

z-coordinate of the second point

\n', - type: 'Number' - } - ], - return: { - description: 'distance between the two points', - type: 'Number' - } - } - ] - }, - { - file: 'src/math/calculation.js', - line: 190, - description: - '

Returns Euler's number e (2.71828...) raised to the power of the n\nparameter. Maps to Math.exp().

\n', - itemtype: 'method', - name: 'exp', - params: [ - { - name: 'n', - description: '

exponent to raise

\n', - type: 'Number' - } - ], - return: { - description: 'e^n', - type: 'Number' - }, - example: [ - "\n
\nfunction draw() {\n background(200);\n\n // Compute the exp() function with a value between 0 and 2\n let xValue = map(mouseX, 0, width, 0, 2);\n let yValue = exp(xValue);\n\n let y = map(yValue, 0, 8, height, 0);\n\n let legend = 'exp (' + nfc(xValue, 3) + ')\\n= ' + nf(yValue, 1, 4);\n stroke(150);\n line(mouseX, y, mouseX, height);\n fill(0);\n text(legend, 5, 15);\n noStroke();\n ellipse(mouseX, y, 7, 7);\n\n // Draw the exp(x) curve,\n // over the domain of x from 0 to 2\n noFill();\n stroke(0);\n beginShape();\n for (let x = 0; x < width; x++) {\n xValue = map(x, 0, width, 0, 2);\n yValue = exp(xValue);\n y = map(yValue, 0, 8, height, 0);\n vertex(x, y);\n }\n\n endShape();\n line(0, 0, 0, height);\n line(0, height - 1, width, height - 1);\n}\n
" - ], - alt: 'ellipse moves along a curve with mouse x. e^n displayed.', - class: 'p5', - module: 'Math', - submodule: 'Calculation' - }, - { - file: 'src/math/calculation.js', - line: 240, - description: - '

Calculates the closest int value that is less than or equal to the\nvalue of the parameter. Maps to Math.floor().

\n', - itemtype: 'method', - name: 'floor', - params: [ - { - name: 'n', - description: '

number to round down

\n', - type: 'Number' - } - ], - return: { - description: 'rounded down number', - type: 'Integer' - }, - example: [ - '\n
\nfunction draw() {\n background(200);\n //map, mouseX between 0 and 5.\n let ax = map(mouseX, 0, 100, 0, 5);\n let ay = 66;\n\n //Get the floor of the mapped number.\n let bx = floor(map(mouseX, 0, 100, 0, 5));\n let by = 33;\n\n // Multiply the mapped numbers by 20 to more easily\n // see the changes.\n stroke(0);\n fill(0);\n line(0, ay, ax * 20, ay);\n line(0, by, bx * 20, by);\n\n // Reformat the float returned by map and draw it.\n noStroke();\n text(nfc(ax, 2), ax, ay - 5);\n text(nfc(bx, 1), bx, by - 5);\n}\n
' - ], - alt: - '2 horizontal lines & number sets. increase with mouse x. bottom to 2 decimals', - class: 'p5', - module: 'Math', - submodule: 'Calculation' - }, - { - file: 'src/math/calculation.js', - line: 279, - description: - '

Calculates a number between two numbers at a specific increment. The amt\nparameter is the amount to interpolate between the two values where 0.0\nequal to the first point, 0.1 is very near the first point, 0.5 is\nhalf-way in between, and 1.0 is equal to the second point. If the\nvalue of amt is more than 1.0 or less than 0.0, the number will be\ncalculated accordingly in the ratio of the two given numbers. The lerp\nfunction is convenient for creating motion along a straight\npath and for drawing dotted lines.

\n', - itemtype: 'method', - name: 'lerp', - params: [ - { - name: 'start', - description: '

first value

\n', - type: 'Number' - }, - { - name: 'stop', - description: '

second value

\n', - type: 'Number' - }, - { - name: 'amt', - description: '

number

\n', - type: 'Number' - } - ], - return: { - description: 'lerped value', - type: 'Number' - }, - example: [ - '\n
\nfunction setup() {\n background(200);\n let a = 20;\n let b = 80;\n let c = lerp(a, b, 0.2);\n let d = lerp(a, b, 0.5);\n let e = lerp(a, b, 0.8);\n\n let y = 50;\n\n strokeWeight(5);\n stroke(0); // Draw the original points in black\n point(a, y);\n point(b, y);\n\n stroke(100); // Draw the lerp points in gray\n point(c, y);\n point(d, y);\n point(e, y);\n}\n
' - ], - alt: - '5 points horizontally staggered mid-canvas. mid 3 are grey, outer black', - class: 'p5', - module: 'Math', - submodule: 'Calculation' - }, - { - file: 'src/math/calculation.js', - line: 327, - description: - '

Calculates the natural logarithm (the base-e logarithm) of a number. This\nfunction expects the n parameter to be a value greater than 0.0. Maps to\nMath.log().

\n', - itemtype: 'method', - name: 'log', - params: [ - { - name: 'n', - description: '

number greater than 0

\n', - type: 'Number' - } - ], - return: { - description: 'natural logarithm of n', - type: 'Number' - }, - example: [ - "\n
\nfunction draw() {\n background(200);\n let maxX = 2.8;\n let maxY = 1.5;\n\n // Compute the natural log of a value between 0 and maxX\n let xValue = map(mouseX, 0, width, 0, maxX);\n let yValue, y;\n if (xValue > 0) {\n // Cannot take the log of a negative number.\n yValue = log(xValue);\n y = map(yValue, -maxY, maxY, height, 0);\n\n // Display the calculation occurring.\n let legend = 'log(' + nf(xValue, 1, 2) + ')\\n= ' + nf(yValue, 1, 3);\n stroke(150);\n line(mouseX, y, mouseX, height);\n fill(0);\n text(legend, 5, 15);\n noStroke();\n ellipse(mouseX, y, 7, 7);\n }\n\n // Draw the log(x) curve,\n // over the domain of x from 0 to maxX\n noFill();\n stroke(0);\n beginShape();\n for (let x = 0; x < width; x++) {\n xValue = map(x, 0, width, 0, maxX);\n yValue = log(xValue);\n y = map(yValue, -maxY, maxY, height, 0);\n vertex(x, y);\n }\n endShape();\n line(0, 0, 0, height);\n line(0, height / 2, width, height / 2);\n}\n
" - ], - alt: - 'ellipse moves along a curve with mouse x. natural logarithm of n displayed.', - class: 'p5', - module: 'Math', - submodule: 'Calculation' - }, - { - file: 'src/math/calculation.js', - line: 383, - description: - '

Calculates the magnitude (or length) of a vector. A vector is a direction\nin space commonly used in computer graphics and linear algebra. Because it\nhas no "start" position, the magnitude of a vector can be thought of as\nthe distance from the coordinate 0,0 to its x,y value. Therefore, mag() is\na shortcut for writing dist(0, 0, x, y).

\n', - itemtype: 'method', - name: 'mag', - params: [ - { - name: 'a', - description: '

first value

\n', - type: 'Number' - }, - { - name: 'b', - description: '

second value

\n', - type: 'Number' - } - ], - return: { - description: 'magnitude of vector from (0,0) to (a,b)', - type: 'Number' - }, - example: [ - '\n
\nfunction setup() {\n let x1 = 20;\n let x2 = 80;\n let y1 = 30;\n let y2 = 70;\n\n line(0, 0, x1, y1);\n print(mag(x1, y1)); // Prints "36.05551275463989"\n line(0, 0, x2, y1);\n print(mag(x2, y1)); // Prints "85.44003745317531"\n line(0, 0, x1, y2);\n print(mag(x1, y2)); // Prints "72.80109889280519"\n line(0, 0, x2, y2);\n print(mag(x2, y2)); // Prints "106.3014581273465"\n}\n
' - ], - alt: '4 lines of different length radiate from top left of canvas.', - class: 'p5', - module: 'Math', - submodule: 'Calculation' - }, - { - file: 'src/math/calculation.js', - line: 422, - description: - '

Re-maps a number from one range to another.\n

\nIn the first example above, the number 25 is converted from a value in the\nrange of 0 to 100 into a value that ranges from the left edge of the\nwindow (0) to the right edge (width).

\n', - itemtype: 'method', - name: 'map', - params: [ - { - name: 'value', - description: '

the incoming value to be converted

\n', - type: 'Number' - }, - { - name: 'start1', - description: '

lower bound of the value's current range

\n', - type: 'Number' - }, - { - name: 'stop1', - description: '

upper bound of the value's current range

\n', - type: 'Number' - }, - { - name: 'start2', - description: '

lower bound of the value's target range

\n', - type: 'Number' - }, - { - name: 'stop2', - description: '

upper bound of the value's target range

\n', - type: 'Number' - }, - { - name: 'withinBounds', - description: '

constrain the value to the newly mapped range

\n', - type: 'Boolean', - optional: true - } - ], - return: { - description: 'remapped number', - type: 'Number' - }, - example: [ - '\n
\nlet value = 25;\nlet m = map(value, 0, 100, 0, width);\nellipse(m, 50, 10, 10);\n
\n\n
\nfunction setup() {\n noStroke();\n}\n\nfunction draw() {\n background(204);\n let x1 = map(mouseX, 0, width, 25, 75);\n ellipse(x1, 25, 25, 25);\n //This ellipse is constrained to the 0-100 range\n //after setting withinBounds to true\n let x2 = map(mouseX, 0, width, 0, 100, true);\n ellipse(x2, 75, 25, 25);\n}\n
' - ], - alt: - '10 by 10 white ellipse with in mid left canvas\n2 25 by 25 white ellipses move with mouse x. Bottom has more range from X', - class: 'p5', - module: 'Math', - submodule: 'Calculation' - }, - { - file: 'src/math/calculation.js', - line: 478, - description: - '

Determines the largest value in a sequence of numbers, and then returns\nthat value. max() accepts any number of Number parameters, or an Array\nof any length.

\n', - itemtype: 'method', - name: 'max', - return: { - description: 'maximum Number', - type: 'Number' - }, - example: [ - "\n
\nfunction setup() {\n // Change the elements in the array and run the sketch\n // to show how max() works!\n let numArray = [2, 1, 5, 4, 8, 9];\n fill(0);\n noStroke();\n text('Array Elements', 0, 10);\n // Draw all numbers in the array\n let spacing = 15;\n let elemsY = 25;\n for (let i = 0; i < numArray.length; i++) {\n text(numArray[i], i * spacing, elemsY);\n }\n let maxX = 33;\n let maxY = 80;\n // Draw the Maximum value in the array.\n textSize(32);\n text(max(numArray), maxX, maxY);\n}\n
" - ], - alt: - 'Small text at top reads: Array Elements 2 1 5 4 8 9. Large text at center: 9', - class: 'p5', - module: 'Math', - submodule: 'Calculation', - overloads: [ - { - line: 478, - params: [ - { - name: 'n0', - description: '

Number to compare

\n', - type: 'Number' - }, - { - name: 'n1', - description: '

Number to compare

\n', - type: 'Number' - } - ], - return: { - description: 'maximum Number', - type: 'Number' - } - }, - { - line: 514, - params: [ - { - name: 'nums', - description: '

Numbers to compare

\n', - type: 'Number[]' - } - ], - return: { - description: '', - type: 'Number' - } - } - ] - }, - { - file: 'src/math/calculation.js', - line: 528, - description: - '

Determines the smallest value in a sequence of numbers, and then returns\nthat value. min() accepts any number of Number parameters, or an Array\nof any length.

\n', - itemtype: 'method', - name: 'min', - return: { - description: 'minimum Number', - type: 'Number' - }, - example: [ - "\n
\nfunction setup() {\n // Change the elements in the array and run the sketch\n // to show how min() works!\n let numArray = [2, 1, 5, 4, 8, 9];\n fill(0);\n noStroke();\n text('Array Elements', 0, 10);\n // Draw all numbers in the array\n let spacing = 15;\n let elemsY = 25;\n for (let i = 0; i < numArray.length; i++) {\n text(numArray[i], i * spacing, elemsY);\n }\n let maxX = 33;\n let maxY = 80;\n // Draw the Minimum value in the array.\n textSize(32);\n text(min(numArray), maxX, maxY);\n}\n
" - ], - alt: - 'Small text at top reads: Array Elements 2 1 5 4 8 9. Large text at center: 1', - class: 'p5', - module: 'Math', - submodule: 'Calculation', - overloads: [ - { - line: 528, - params: [ - { - name: 'n0', - description: '

Number to compare

\n', - type: 'Number' - }, - { - name: 'n1', - description: '

Number to compare

\n', - type: 'Number' - } - ], - return: { - description: 'minimum Number', - type: 'Number' - } - }, - { - line: 564, - params: [ - { - name: 'nums', - description: '

Numbers to compare

\n', - type: 'Number[]' - } - ], - return: { - description: '', - type: 'Number' - } - } - ] - }, - { - file: 'src/math/calculation.js', - line: 578, - description: - '

Normalizes a number from another range into a value between 0 and 1.\nIdentical to map(value, low, high, 0, 1).\nNumbers outside of the range are not clamped to 0 and 1, because\nout-of-range values are often intentional and useful. (See the example above.)

\n', - itemtype: 'method', - name: 'norm', - params: [ - { - name: 'value', - description: '

incoming value to be normalized

\n', - type: 'Number' - }, - { - name: 'start', - description: '

lower bound of the value's current range

\n', - type: 'Number' - }, - { - name: 'stop', - description: '

upper bound of the value's current range

\n', - type: 'Number' - } - ], - return: { - description: 'normalized number', - type: 'Number' - }, - example: [ - "\n
\nfunction draw() {\n background(200);\n let currentNum = mouseX;\n let lowerBound = 0;\n let upperBound = width; //100;\n let normalized = norm(currentNum, lowerBound, upperBound);\n let lineY = 70;\n stroke(3);\n line(0, lineY, width, lineY);\n //Draw an ellipse mapped to the non-normalized value.\n noStroke();\n fill(50);\n let s = 7; // ellipse size\n ellipse(currentNum, lineY, s, s);\n\n // Draw the guide\n let guideY = lineY + 15;\n text('0', 0, guideY);\n textAlign(RIGHT);\n text('100', width, guideY);\n\n // Draw the normalized value\n textAlign(LEFT);\n fill(0);\n textSize(32);\n let normalY = 40;\n let normalX = 20;\n text(normalized, normalX, normalY);\n}\n
" - ], - alt: - 'ellipse moves with mouse. 0 shown left & 100 right and updating values center', - class: 'p5', - module: 'Math', - submodule: 'Calculation' - }, - { - file: 'src/math/calculation.js', - line: 631, - description: - '

Facilitates exponential expressions. The pow() function is an efficient\nway of multiplying numbers by themselves (or their reciprocals) in large\nquantities. For example, pow(3, 5) is equivalent to the expression\n33333 and pow(3, -5) is equivalent to 1 / 33333. Maps to\nMath.pow().

\n', - itemtype: 'method', - name: 'pow', - params: [ - { - name: 'n', - description: '

base of the exponential expression

\n', - type: 'Number' - }, - { - name: 'e', - description: '

power by which to raise the base

\n', - type: 'Number' - } - ], - return: { - description: 'n^e', - type: 'Number' - }, - example: [ - '\n
\nfunction setup() {\n //Exponentially increase the size of an ellipse.\n let eSize = 3; // Original Size\n let eLoc = 10; // Original Location\n\n ellipse(eLoc, eLoc, eSize, eSize);\n\n ellipse(eLoc * 2, eLoc * 2, pow(eSize, 2), pow(eSize, 2));\n\n ellipse(eLoc * 4, eLoc * 4, pow(eSize, 3), pow(eSize, 3));\n\n ellipse(eLoc * 8, eLoc * 8, pow(eSize, 4), pow(eSize, 4));\n}\n
' - ], - alt: 'small to large ellipses radiating from top left of canvas', - class: 'p5', - module: 'Math', - submodule: 'Calculation' - }, - { - file: 'src/math/calculation.js', - line: 665, - description: - '

Calculates the integer closest to the n parameter. For example,\nround(133.8) returns the value 134. Maps to Math.round().

\n', - itemtype: 'method', - name: 'round', - params: [ - { - name: 'n', - description: '

number to round

\n', - type: 'Number' - } - ], - return: { - description: 'rounded number', - type: 'Integer' - }, - example: [ - '\n
\nfunction draw() {\n background(200);\n //map, mouseX between 0 and 5.\n let ax = map(mouseX, 0, 100, 0, 5);\n let ay = 66;\n\n // Round the mapped number.\n let bx = round(map(mouseX, 0, 100, 0, 5));\n let by = 33;\n\n // Multiply the mapped numbers by 20 to more easily\n // see the changes.\n stroke(0);\n fill(0);\n line(0, ay, ax * 20, ay);\n line(0, by, bx * 20, by);\n\n // Reformat the float returned by map and draw it.\n noStroke();\n text(nfc(ax, 2), ax, ay - 5);\n text(nfc(bx, 1), bx, by - 5);\n}\n
' - ], - alt: - 'horizontal center line squared values displayed on top and regular on bottom.', - class: 'p5', - module: 'Math', - submodule: 'Calculation' - }, - { - file: 'src/math/calculation.js', - line: 704, - description: - '

Squares a number (multiplies a number by itself). The result is always a\npositive number, as multiplying two negative numbers always yields a\npositive result. For example, -1 * -1 = 1.

\n', - itemtype: 'method', - name: 'sq', - params: [ - { - name: 'n', - description: '

number to square

\n', - type: 'Number' - } - ], - return: { - description: 'squared number', - type: 'Number' - }, - example: [ - "\n
\nfunction draw() {\n background(200);\n let eSize = 7;\n let x1 = map(mouseX, 0, width, 0, 10);\n let y1 = 80;\n let x2 = sq(x1);\n let y2 = 20;\n\n // Draw the non-squared.\n line(0, y1, width, y1);\n ellipse(x1, y1, eSize, eSize);\n\n // Draw the squared.\n line(0, y2, width, y2);\n ellipse(x2, y2, eSize, eSize);\n\n // Draw dividing line.\n stroke(100);\n line(0, height / 2, width, height / 2);\n\n // Draw text.\n let spacing = 15;\n noStroke();\n fill(0);\n text('x = ' + x1, 0, y1 + spacing);\n text('sq(x) = ' + x2, 0, y2 + spacing);\n}\n
" - ], - alt: - 'horizontal center line squared values displayed on top and regular on bottom.', - class: 'p5', - module: 'Math', - submodule: 'Calculation' - }, - { - file: 'src/math/calculation.js', - line: 751, - description: - '

Calculates the square root of a number. The square root of a number is\nalways positive, even though there may be a valid negative root. The\nsquare root s of number a is such that s*s = a. It is the opposite of\nsquaring. Maps to Math.sqrt().

\n', - itemtype: 'method', - name: 'sqrt', - params: [ - { - name: 'n', - description: '

non-negative number to square root

\n', - type: 'Number' - } - ], - return: { - description: 'square root of number', - type: 'Number' - }, - example: [ - "\n
\nfunction draw() {\n background(200);\n let eSize = 7;\n let x1 = mouseX;\n let y1 = 80;\n let x2 = sqrt(x1);\n let y2 = 20;\n\n // Draw the non-squared.\n line(0, y1, width, y1);\n ellipse(x1, y1, eSize, eSize);\n\n // Draw the squared.\n line(0, y2, width, y2);\n ellipse(x2, y2, eSize, eSize);\n\n // Draw dividing line.\n stroke(100);\n line(0, height / 2, width, height / 2);\n\n // Draw text.\n noStroke();\n fill(0);\n let spacing = 15;\n text('x = ' + x1, 0, y1 + spacing);\n text('sqrt(x) = ' + x2, 0, y2 + spacing);\n}\n
" - ], - alt: - 'horizontal center line squareroot values displayed on top and regular on bottom.', - class: 'p5', - module: 'Math', - submodule: 'Calculation' - }, - { - file: 'src/math/math.js', - line: 12, - description: - '

Creates a new p5.Vector (the datatype for storing vectors). This provides a\ntwo or three dimensional vector, specifically a Euclidean (also known as\ngeometric) vector. A vector is an entity that has both magnitude and\ndirection.

\n', - itemtype: 'method', - name: 'createVector', - params: [ - { - name: 'x', - description: '

x component of the vector

\n', - type: 'Number', - optional: true - }, - { - name: 'y', - description: '

y component of the vector

\n', - type: 'Number', - optional: true - }, - { - name: 'z', - description: '

z component of the vector

\n', - type: 'Number', - optional: true - } - ], - return: { - description: '', - type: 'p5.Vector' - }, - example: [ - "\n
\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n noStroke();\n fill(255, 102, 204);\n}\n\nfunction draw() {\n background(255);\n pointLight(color(255), createVector(sin(millis() / 1000) * 20, -40, -10));\n scale(0.75);\n sphere();\n}\n
" - ], - alt: 'a purple sphere lit by a point light oscillating horizontally', - class: 'p5', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/noise.js', - line: 40, - description: - '

Returns the Perlin noise value at specified coordinates. Perlin noise is\na random sequence generator producing a more natural ordered, harmonic\nsuccession of numbers compared to the standard random() function.\nIt was invented by Ken Perlin in the 1980s and been used since in\ngraphical applications to produce procedural textures, natural motion,\nshapes, terrains etc.

The main difference to the\nrandom() function is that Perlin noise is defined in an infinite\nn-dimensional space where each pair of coordinates corresponds to a\nfixed semi-random value (fixed only for the lifespan of the program; see\nthe noiseSeed() function). p5.js can compute 1D, 2D and 3D noise,\ndepending on the number of coordinates given. The resulting value will\nalways be between 0.0 and 1.0. The noise value can be animated by moving\nthrough the noise space as demonstrated in the example above. The 2nd\nand 3rd dimension can also be interpreted as time.

The actual\nnoise is structured similar to an audio signal, in respect to the\nfunction's use of frequencies. Similar to the concept of harmonics in\nphysics, perlin noise is computed over several octaves which are added\ntogether for the final result.

Another way to adjust the\ncharacter of the resulting sequence is the scale of the input\ncoordinates. As the function works within an infinite space the value of\nthe coordinates doesn't matter as such, only the distance between\nsuccessive coordinates does (eg. when using noise() within a\nloop). As a general rule the smaller the difference between coordinates,\nthe smoother the resulting noise sequence will be. Steps of 0.005-0.03\nwork best for most applications, but this will differ depending on use.

\n', - itemtype: 'method', - name: 'noise', - params: [ - { - name: 'x', - description: '

x-coordinate in noise space

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y-coordinate in noise space

\n', - type: 'Number', - optional: true - }, - { - name: 'z', - description: '

z-coordinate in noise space

\n', - type: 'Number', - optional: true - } - ], - return: { - description: - 'Perlin noise value (between 0 and 1) at specified\n coordinates', - type: 'Number' - }, - example: [ - '\n
\n\nlet xoff = 0.0;\n\nfunction draw() {\n background(204);\n xoff = xoff + 0.01;\n let n = noise(xoff) * width;\n line(n, 0, n, height);\n}\n\n
\n
\nlet noiseScale=0.02;\n\nfunction draw() {\n background(0);\n for (let x=0; x < width; x++) {\n let noiseVal = noise((mouseX+x)*noiseScale, mouseY*noiseScale);\n stroke(noiseVal*255);\n line(x, mouseY+noiseVal*80, x, height);\n }\n}\n\n
' - ], - alt: - 'vertical line moves left to right with updating noise values.\nhorizontal wave pattern effected by mouse x-position & updating noise values.', - class: 'p5', - module: 'Math', - submodule: 'Noise' - }, - { - file: 'src/math/noise.js', - line: 187, - description: - '

Adjusts the character and level of detail produced by the Perlin noise\n function. Similar to harmonics in physics, noise is computed over\n several octaves. Lower octaves contribute more to the output signal and\n as such define the overall intensity of the noise, whereas higher octaves\n create finer grained details in the noise sequence.\n

\n By default, noise is computed over 4 octaves with each octave contributing\n exactly half than its predecessor, starting at 50% strength for the 1st\n octave. This falloff amount can be changed by adding an additional function\n parameter. Eg. a falloff factor of 0.75 means each octave will now have\n 75% impact (25% less) of the previous lower octave. Any value between\n 0.0 and 1.0 is valid, however note that values greater than 0.5 might\n result in greater than 1.0 values returned by noise().\n

\n By changing these parameters, the signal created by the noise()\n function can be adapted to fit very specific needs and characteristics.

\n', - itemtype: 'method', - name: 'noiseDetail', - params: [ - { - name: 'lod', - description: '

number of octaves to be used by the noise

\n', - type: 'Number' - }, - { - name: 'falloff', - description: '

falloff factor for each octave

\n', - type: 'Number' - } - ], - example: [ - '\n
\n \n let noiseVal;\n let noiseScale = 0.02;\nfunction setup() {\n createCanvas(100, 100);\n }\nfunction draw() {\n background(0);\n for (let y = 0; y < height; y++) {\n for (let x = 0; x < width / 2; x++) {\n noiseDetail(2, 0.2);\n noiseVal = noise((mouseX + x) * noiseScale, (mouseY + y) * noiseScale);\n stroke(noiseVal * 255);\n point(x, y);\n noiseDetail(8, 0.65);\n noiseVal = noise(\n (mouseX + x + width / 2) * noiseScale,\n (mouseY + y) * noiseScale\n );\n stroke(noiseVal * 255);\n point(x + width / 2, y);\n }\n }\n }\n \n
' - ], - alt: - '2 vertical grey smokey patterns affected my mouse x-position and noise.', - class: 'p5', - module: 'Math', - submodule: 'Noise' - }, - { - file: 'src/math/noise.js', - line: 253, - description: - '

Sets the seed value for noise(). By default, noise()\nproduces different results each time the program is run. Set the\nvalue parameter to a constant to return the same pseudo-random\nnumbers each time the software is run.

\n', - itemtype: 'method', - name: 'noiseSeed', - params: [ - { - name: 'seed', - description: '

the seed value

\n', - type: 'Number' - } - ], - example: [ - '\n
\nlet xoff = 0.0;\n\nfunction setup() {\n noiseSeed(99);\n stroke(0, 10);\n}\n\nfunction draw() {\n xoff = xoff + .01;\n let n = noise(xoff) * width;\n line(n, 0, n, height);\n}\n\n
' - ], - alt: 'vertical grey lines drawing in pattern affected by noise.', - class: 'p5', - module: 'Math', - submodule: 'Noise' - }, - { - file: 'src/math/p5.Vector.js', - line: 67, - description: '

The x component of the vector

\n', - itemtype: 'property', - name: 'x', - type: 'Number', - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 72, - description: '

The y component of the vector

\n', - itemtype: 'property', - name: 'y', - type: 'Number', - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 77, - description: '

The z component of the vector

\n', - itemtype: 'property', - name: 'z', - type: 'Number', - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 84, - description: - '

Returns a string representation of a vector v by calling String(v)\nor v.toString(). This method is useful for logging vectors in the\nconsole.

\n', - itemtype: 'method', - name: 'toString', - return: { - description: '', - type: 'String' - }, - example: [ - '\n
\n\nfunction setup() {\n let v = createVector(20, 30);\n print(String(v)); // prints "p5.Vector Object : [20, 30, 0]"\n}\n\n
\n\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(0, 0);\n let v1 = createVector(mouseX, mouseY);\n drawArrow(v0, v1, \'black\');\n\n noStroke();\n text(v1.toString(), 10, 25, 90, 75);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
' - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 134, - description: - '

Sets the x, y, and z component of the vector using two or three separate\nvariables, the data from a p5.Vector, or the values from a float array.

\n', - itemtype: 'method', - name: 'set', - chainable: 1, - example: [ - "\n
\n\nfunction setup() {\n let v = createVector(1, 2, 3);\n v.set(4, 5, 6); // Sets vector to [4, 5, 6]\n\n let v1 = createVector(0, 0, 0);\n let arr = [1, 2, 3];\n v1.set(arr); // Sets vector to [1, 2, 3]\n}\n\n
\n\n
\n\nlet v0, v1;\nfunction setup() {\n createCanvas(100, 100);\n\n v0 = createVector(0, 0);\n v1 = createVector(50, 50);\n}\n\nfunction draw() {\n background(240);\n\n drawArrow(v0, v1, 'black');\n v1.set(v1.x + random(-1, 1), v1.y + random(-1, 1));\n\n noStroke();\n text('x: ' + round(v1.x) + ' y: ' + round(v1.y), 20, 90);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math', - overloads: [ - { - line: 134, - params: [ - { - name: 'x', - description: '

the x component of the vector

\n', - type: 'Number', - optional: true - }, - { - name: 'y', - description: '

the y component of the vector

\n', - type: 'Number', - optional: true - }, - { - name: 'z', - description: '

the z component of the vector

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 193, - params: [ - { - name: 'value', - description: '

the vector to set

\n', - type: 'p5.Vector|Number[]' - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/math/p5.Vector.js', - line: 217, - description: - '

Gets a copy of the vector, returns a p5.Vector object.

\n', - itemtype: 'method', - name: 'copy', - return: { - description: 'the copy of the p5.Vector object', - type: 'p5.Vector' - }, - example: [ - '\n
\n\nlet v1 = createVector(1, 2, 3);\nlet v2 = v1.copy();\nprint(v1.x === v2.x && v1.y === v2.y && v1.z === v2.z);\n// Prints "true"\n\n
' - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 240, - description: - '

Adds x, y, and z components to a vector, adds one vector to another, or\nadds two independent vectors together. The version of the method that adds\ntwo vectors together is a static method and returns a p5.Vector, the others\nacts directly on the vector. See the examples for more context.

\n', - itemtype: 'method', - name: 'add', - chainable: 1, - example: [ - "\n
\n\nlet v = createVector(1, 2, 3);\nv.add(4, 5, 6);\n// v's components are set to [5, 7, 9]\n\n
\n\n
\n\n// Static method\nlet v1 = createVector(1, 2, 3);\nlet v2 = createVector(2, 3, 4);\n\nlet v3 = p5.Vector.add(v1, v2);\n// v3 has components [3, 5, 7]\nprint(v3);\n\n
\n\n
\n\n// red vector + blue vector = purple vector\nfunction draw() {\n background(240);\n\n let v0 = createVector(0, 0);\n let v1 = createVector(mouseX, mouseY);\n drawArrow(v0, v1, 'red');\n\n let v2 = createVector(-30, 20);\n drawArrow(v1, v2, 'blue');\n\n let v3 = p5.Vector.add(v1, v2);\n drawArrow(v0, v3, 'purple');\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math', - overloads: [ - { - line: 240, - params: [ - { - name: 'x', - description: '

the x component of the vector to be added

\n', - type: 'Number' - }, - { - name: 'y', - description: '

the y component of the vector to be added

\n', - type: 'Number', - optional: true - }, - { - name: 'z', - description: '

the z component of the vector to be added

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 306, - params: [ - { - name: 'value', - description: '

the vector to add

\n', - type: 'p5.Vector|Number[]' - } - ], - chainable: 1 - }, - { - line: 1555, - params: [ - { - name: 'v1', - description: - '

a p5.Vector to add

\n', - type: 'p5.Vector' - }, - { - name: 'v2', - description: - '

a p5.Vector to add

\n', - type: 'p5.Vector' - }, - { - name: 'target', - description: '

the vector to receive the result

\n', - type: 'p5.Vector' - } - ], - static: 1 - }, - { - line: 1562, - params: [ - { - name: 'v1', - description: '', - type: 'p5.Vector' - }, - { - name: 'v2', - description: '', - type: 'p5.Vector' - } - ], - static: 1, - return: { - description: 'the resulting p5.Vector', - type: 'p5.Vector' - } - } - ] - }, - { - file: 'src/math/p5.Vector.js', - line: 330, - description: - '

Subtracts x, y, and z components from a vector, subtracts one vector from\nanother, or subtracts two independent vectors. The version of the method\nthat subtracts two vectors is a static method and returns a p5.Vector, the\nother acts directly on the vector. See the examples for more context.

\n', - itemtype: 'method', - name: 'sub', - chainable: 1, - example: [ - "\n
\n\nlet v = createVector(4, 5, 6);\nv.sub(1, 1, 1);\n// v's components are set to [3, 4, 5]\n\n
\n\n
\n\n// Static method\nlet v1 = createVector(2, 3, 4);\nlet v2 = createVector(1, 2, 3);\n\nlet v3 = p5.Vector.sub(v1, v2);\n// v3 has components [1, 1, 1]\nprint(v3);\n\n
\n\n
\n\n// red vector - blue vector = purple vector\nfunction draw() {\n background(240);\n\n let v0 = createVector(0, 0);\n let v1 = createVector(70, 50);\n drawArrow(v0, v1, 'red');\n\n let v2 = createVector(mouseX, mouseY);\n drawArrow(v0, v2, 'blue');\n\n let v3 = p5.Vector.sub(v1, v2);\n drawArrow(v2, v3, 'purple');\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math', - overloads: [ - { - line: 330, - params: [ - { - name: 'x', - description: '

the x component of the vector to subtract

\n', - type: 'Number' - }, - { - name: 'y', - description: '

the y component of the vector to subtract

\n', - type: 'Number', - optional: true - }, - { - name: 'z', - description: '

the z component of the vector to subtract

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 396, - params: [ - { - name: 'value', - description: '

the vector to subtract

\n', - type: 'p5.Vector|Number[]' - } - ], - chainable: 1 - }, - { - line: 1585, - params: [ - { - name: 'v1', - description: - '

a p5.Vector to subtract from

\n', - type: 'p5.Vector' - }, - { - name: 'v2', - description: - '

a p5.Vector to subtract

\n', - type: 'p5.Vector' - }, - { - name: 'target', - description: '

if undefined a new vector will be created

\n', - type: 'p5.Vector' - } - ], - static: 1 - }, - { - line: 1592, - params: [ - { - name: 'v1', - description: '', - type: 'p5.Vector' - }, - { - name: 'v2', - description: '', - type: 'p5.Vector' - } - ], - static: 1, - return: { - description: 'the resulting p5.Vector', - type: 'p5.Vector' - } - } - ] - }, - { - file: 'src/math/p5.Vector.js', - line: 420, - description: - '

Multiply the vector by a scalar. The static version of this method\ncreates a new p5.Vector while the non static version acts on the vector\ndirectly. See the examples for more context.

\n', - itemtype: 'method', - name: 'mult', - chainable: 1, - example: [ - "\n
\n\nlet v = createVector(1, 2, 3);\nv.mult(2);\n// v's components are set to [2, 4, 6]\n\n
\n\n
\n\n// Static method\nlet v1 = createVector(1, 2, 3);\nlet v2 = p5.Vector.mult(v1, 2);\n// v2 has components [2, 4, 6]\nprint(v2);\n\n
\n\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(50, 50);\n let v1 = createVector(25, -25);\n drawArrow(v0, v1, 'red');\n\n let num = map(mouseX, 0, width, -2, 2, true);\n let v2 = p5.Vector.mult(v1, num);\n drawArrow(v0, v2, 'blue');\n\n noStroke();\n text('multiplied by ' + num.toFixed(2), 5, 90);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math', - overloads: [ - { - line: 420, - params: [ - { - name: 'n', - description: '

the number to multiply with the vector

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 1613, - params: [ - { - name: 'v', - description: '

the vector to multiply

\n', - type: 'p5.Vector' - }, - { - name: 'n', - description: '', - type: 'Number' - }, - { - name: 'target', - description: '

if undefined a new vector will be created

\n', - type: 'p5.Vector' - } - ], - static: 1 - }, - { - line: 1620, - params: [ - { - name: 'v', - description: '', - type: 'p5.Vector' - }, - { - name: 'n', - description: '', - type: 'Number' - } - ], - static: 1, - return: { - description: 'the resulting new p5.Vector', - type: 'p5.Vector' - } - } - ] - }, - { - file: 'src/math/p5.Vector.js', - line: 495, - description: - '

Divide the vector by a scalar. The static version of this method creates a\nnew p5.Vector while the non static version acts on the vector directly.\nSee the examples for more context.

\n', - itemtype: 'method', - name: 'div', - chainable: 1, - example: [ - "\n
\n\nlet v = createVector(6, 4, 2);\nv.div(2); //v's components are set to [3, 2, 1]\n\n
\n\n
\n\n// Static method\nlet v1 = createVector(6, 4, 2);\nlet v2 = p5.Vector.div(v1, 2);\n// v2 has components [3, 2, 1]\nprint(v2);\n\n
\n\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(0, 100);\n let v1 = createVector(50, -50);\n drawArrow(v0, v1, 'red');\n\n let num = map(mouseX, 0, width, 10, 0.5, true);\n let v2 = p5.Vector.div(v1, num);\n drawArrow(v0, v2, 'blue');\n\n noStroke();\n text('divided by ' + num.toFixed(2), 10, 90);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math', - overloads: [ - { - line: 495, - params: [ - { - name: 'n', - description: '

the number to divide the vector by

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 1640, - params: [ - { - name: 'v', - description: '

the vector to divide

\n', - type: 'p5.Vector' - }, - { - name: 'n', - description: '', - type: 'Number' - }, - { - name: 'target', - description: '

if undefined a new vector will be created

\n', - type: 'p5.Vector' - } - ], - static: 1 - }, - { - line: 1647, - params: [ - { - name: 'v', - description: '', - type: 'p5.Vector' - }, - { - name: 'n', - description: '', - type: 'Number' - } - ], - static: 1, - return: { - description: 'the resulting new p5.Vector', - type: 'p5.Vector' - } - } - ] - }, - { - file: 'src/math/p5.Vector.js', - line: 573, - description: - '

Calculates the magnitude (length) of the vector and returns the result as\na float (this is simply the equation sqrt(xx + yy + z*z).)

\n', - itemtype: 'method', - name: 'mag', - return: { - description: 'magnitude of the vector', - type: 'Number' - }, - example: [ - '\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(0, 0);\n let v1 = createVector(mouseX, mouseY);\n drawArrow(v0, v1, \'black\');\n\n noStroke();\n text(\'vector length: \' + v1.mag().toFixed(2), 10, 70, 90, 30);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
\n
\n\nlet v = createVector(20.0, 30.0, 40.0);\nlet m = v.mag();\nprint(m); // Prints "53.85164807134504"\n\n
' - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math', - overloads: [ - { - line: 573, - params: [], - return: { - description: 'magnitude of the vector', - type: 'Number' - } - }, - { - line: 1737, - params: [ - { - name: 'vecT', - description: '

the vector to return the magnitude of

\n', - type: 'p5.Vector' - } - ], - static: 1, - return: { - description: 'the magnitude of vecT', - type: 'Number' - } - } - ] - }, - { - file: 'src/math/p5.Vector.js', - line: 621, - description: - '

Calculates the squared magnitude of the vector and returns the result\nas a float (this is simply the equation (xx + yy + z*z).)\nFaster if the real length is not required in the\ncase of comparing vectors, etc.

\n', - itemtype: 'method', - name: 'magSq', - return: { - description: 'squared magnitude of the vector', - type: 'Number' - }, - example: [ - '\n
\n\n// Static method\nlet v1 = createVector(6, 4, 2);\nprint(v1.magSq()); // Prints "56"\n\n
\n\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(0, 0);\n let v1 = createVector(mouseX, mouseY);\n drawArrow(v0, v1, \'black\');\n\n noStroke();\n text(\'vector length squared: \' + v1.magSq().toFixed(2), 10, 45, 90, 55);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
' - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 675, - description: - '

Calculates the dot product of two vectors. The version of the method\nthat computes the dot product of two independent vectors is a static\nmethod. See the examples for more context.

\n', - itemtype: 'method', - name: 'dot', - return: { - description: 'the dot product', - type: 'Number' - }, - example: [ - '\n
\n\nlet v1 = createVector(1, 2, 3);\nlet v2 = createVector(2, 3, 4);\n\nprint(v1.dot(v2)); // Prints "20"\n\n
\n\n
\n\n//Static method\nlet v1 = createVector(1, 2, 3);\nlet v2 = createVector(3, 2, 1);\nprint(p5.Vector.dot(v1, v2)); // Prints "10"\n\n
' - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math', - overloads: [ - { - line: 675, - params: [ - { - name: 'x', - description: '

x component of the vector

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y component of the vector

\n', - type: 'Number', - optional: true - }, - { - name: 'z', - description: '

z component of the vector

\n', - type: 'Number', - optional: true - } - ], - return: { - description: 'the dot product', - type: 'Number' - } - }, - { - line: 706, - params: [ - { - name: 'value', - description: - '

value component of the vector or a p5.Vector

\n', - type: 'p5.Vector' - } - ], - return: { - description: '', - type: 'Number' - } - }, - { - line: 1667, - params: [ - { - name: 'v1', - description: - '

the first p5.Vector

\n', - type: 'p5.Vector' - }, - { - name: 'v2', - description: - '

the second p5.Vector

\n', - type: 'p5.Vector' - } - ], - static: 1, - return: { - description: 'the dot product', - type: 'Number' - } - } - ] - }, - { - file: 'src/math/p5.Vector.js', - line: 718, - description: - '

Calculates and returns a vector composed of the cross product between\ntwo vectors. Both the static and non static methods return a new p5.Vector.\nSee the examples for more context.

\n', - itemtype: 'method', - name: 'cross', - return: { - description: - 'p5.Vector composed of cross product', - type: 'p5.Vector' - }, - example: [ - '\n
\n\nlet v1 = createVector(1, 2, 3);\nlet v2 = createVector(1, 2, 3);\n\nv1.cross(v2); // v\'s components are [0, 0, 0]\n\n
\n\n
\n\n// Static method\nlet v1 = createVector(1, 0, 0);\nlet v2 = createVector(0, 1, 0);\n\nlet crossProduct = p5.Vector.cross(v1, v2);\n// crossProduct has components [0, 0, 1]\nprint(crossProduct);\n\n
' - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math', - overloads: [ - { - line: 718, - params: [ - { - name: 'v', - description: - '

p5.Vector to be crossed

\n', - type: 'p5.Vector' - } - ], - return: { - description: - 'p5.Vector composed of cross product', - type: 'p5.Vector' - } - }, - { - line: 1681, - params: [ - { - name: 'v1', - description: - '

the first p5.Vector

\n', - type: 'p5.Vector' - }, - { - name: 'v2', - description: - '

the second p5.Vector

\n', - type: 'p5.Vector' - } - ], - static: 1, - return: { - description: 'the cross product', - type: 'Number' - } - } - ] - }, - { - file: 'src/math/p5.Vector.js', - line: 759, - description: - '

Calculates the Euclidean distance between two points (considering a\npoint as a vector object).

\n', - itemtype: 'method', - name: 'dist', - return: { - description: 'the distance', - type: 'Number' - }, - example: [ - "\n
\n\nlet v1 = createVector(1, 0, 0);\nlet v2 = createVector(0, 1, 0);\n\nlet distance = v1.dist(v2); // distance is 1.4142...\nprint(distance);\n\n
\n\n
\n\n// Static method\nlet v1 = createVector(1, 0, 0);\nlet v2 = createVector(0, 1, 0);\n\nlet distance = p5.Vector.dist(v1, v2);\n// distance is 1.4142...\nprint(distance);\n\n
\n\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(0, 0);\n\n let v1 = createVector(70, 50);\n drawArrow(v0, v1, 'red');\n\n let v2 = createVector(mouseX, mouseY);\n drawArrow(v0, v2, 'blue');\n\n noStroke();\n text('distance between vectors: ' + v2.dist(v1).toFixed(2), 5, 50, 95, 50);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math', - overloads: [ - { - line: 759, - params: [ - { - name: 'v', - description: - '

the x, y, and z coordinates of a p5.Vector

\n', - type: 'p5.Vector' - } - ], - return: { - description: 'the distance', - type: 'Number' - } - }, - { - line: 1696, - params: [ - { - name: 'v1', - description: - '

the first p5.Vector

\n', - type: 'p5.Vector' - }, - { - name: 'v2', - description: - '

the second p5.Vector

\n', - type: 'p5.Vector' - } - ], - static: 1, - return: { - description: 'the distance', - type: 'Number' - } - } - ] - }, - { - file: 'src/math/p5.Vector.js', - line: 830, - description: - '

Normalize the vector to length 1 (make it a unit vector).

\n', - itemtype: 'method', - name: 'normalize', - return: { - description: 'normalized p5.Vector', - type: 'p5.Vector' - }, - example: [ - "\n
\n\nlet v = createVector(10, 20, 2);\n// v has components [10.0, 20.0, 2.0]\nv.normalize();\n// v's components are set to\n// [0.4454354, 0.8908708, 0.089087084]\n\n
\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(50, 50);\n let v1 = createVector(mouseX - 50, mouseY - 50);\n\n drawArrow(v0, v1, 'red');\n v1.normalize();\n drawArrow(v0, v1.mult(35), 'blue');\n\n noFill();\n ellipse(50, 50, 35 * 2);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 886, - description: - '

Limit the magnitude of this vector to the value used for the max\nparameter.

\n', - itemtype: 'method', - name: 'limit', - params: [ - { - name: 'max', - description: '

the maximum magnitude for the vector

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - "\n
\n\nlet v = createVector(10, 20, 2);\n// v has components [10.0, 20.0, 2.0]\nv.limit(5);\n// v's components are set to\n// [2.2271771, 4.4543543, 0.4454354]\n\n
\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(50, 50);\n let v1 = createVector(mouseX - 50, mouseY - 50);\n\n drawArrow(v0, v1, 'red');\n drawArrow(v0, v1.limit(35), 'blue');\n\n noFill();\n ellipse(50, 50, 35 * 2);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 944, - description: - '

Set the magnitude of this vector to the value used for the len\nparameter.

\n', - itemtype: 'method', - name: 'setMag', - params: [ - { - name: 'len', - description: '

the new length for this vector

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - "\n
\n\nlet v = createVector(10, 20, 2);\n// v has components [10.0, 20.0, 2.0]\nv.setMag(10);\n// v's components are set to [6.0, 8.0, 0.0]\n\n
\n\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(0, 0);\n let v1 = createVector(50, 50);\n\n drawArrow(v0, v1, 'red');\n\n let length = map(mouseX, 0, width, 0, 141, true);\n v1.setMag(length);\n drawArrow(v0, v1, 'blue');\n\n noStroke();\n text('magnitude set to: ' + length.toFixed(2), 10, 70, 90, 30);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 1000, - description: - '

Calculate the angle of rotation for this vector (only 2D vectors)

\n', - itemtype: 'method', - name: 'heading', - return: { - description: 'the angle of rotation', - type: 'Number' - }, - example: [ - "\n
\n\nfunction setup() {\n let v1 = createVector(30, 50);\n print(v1.heading()); // 1.0303768265243125\n\n v1 = createVector(40, 50);\n print(v1.heading()); // 0.8960553845713439\n\n v1 = createVector(30, 70);\n print(v1.heading()); // 1.1659045405098132\n}\n\n
\n\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(50, 50);\n let v1 = createVector(mouseX - 50, mouseY - 50);\n\n drawArrow(v0, v1, 'black');\n\n let myHeading = v1.heading();\n noStroke();\n text(\n 'vector heading: ' +\n myHeading.toFixed(2) +\n ' radians or ' +\n degrees(myHeading).toFixed(2) +\n ' degrees',\n 10,\n 50,\n 90,\n 50\n );\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 1069, - description: - '

Rotate the vector by an angle (only 2D vectors), magnitude remains the\nsame

\n', - itemtype: 'method', - name: 'rotate', - params: [ - { - name: 'angle', - description: '

the angle of rotation

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - "\n
\n\nlet v = createVector(10.0, 20.0);\n// v has components [10.0, 20.0, 0.0]\nv.rotate(HALF_PI);\n// v's components are set to [-20.0, 9.999999, 0.0]\n\n
\n\n
\n\nlet angle = 0;\nfunction draw() {\n background(240);\n\n let v0 = createVector(50, 50);\n let v1 = createVector(50, 0);\n\n drawArrow(v0, v1.rotate(angle), 'black');\n angle += 0.01;\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 1125, - description: - '

Calculates and returns the angle (in radians) between two vectors.

\n', - itemtype: 'method', - name: 'angleBetween', - params: [ - { - name: 'value', - description: - '

the x, y, and z components of a p5.Vector

\n', - type: 'p5.Vector' - } - ], - return: { - description: 'the angle between (in radians)', - type: 'Number' - }, - example: [ - "\n
\n\nlet v1 = createVector(1, 0, 0);\nlet v2 = createVector(0, 1, 0);\n\nlet angle = v1.angleBetween(v2);\n// angle is PI/2\nprint(angle);\n\n
\n\n
\n\nfunction draw() {\n background(240);\n let v0 = createVector(50, 50);\n\n let v1 = createVector(50, 0);\n drawArrow(v0, v1, 'red');\n\n let v2 = createVector(mouseX - 50, mouseY - 50);\n drawArrow(v0, v2, 'blue');\n\n let angleBetween = v1.angleBetween(v2);\n noStroke();\n text(\n 'angle between: ' +\n angleBetween.toFixed(2) +\n ' radians or ' +\n degrees(angleBetween).toFixed(2) +\n ' degrees',\n 10,\n 50,\n 90,\n 50\n );\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 1198, - description: '

Linear interpolate the vector to another vector

\n', - itemtype: 'method', - name: 'lerp', - chainable: 1, - example: [ - "\n
\n\nlet v = createVector(1, 1, 0);\n\nv.lerp(3, 3, 0, 0.5); // v now has components [2,2,0]\n\n
\n\n
\n\nlet v1 = createVector(0, 0, 0);\nlet v2 = createVector(100, 100, 0);\n\nlet v3 = p5.Vector.lerp(v1, v2, 0.5);\n// v3 has components [50,50,0]\nprint(v3);\n\n
\n\n
\n\nlet step = 0.01;\nlet amount = 0;\n\nfunction draw() {\n background(240);\n let v0 = createVector(0, 0);\n\n let v1 = createVector(mouseX, mouseY);\n drawArrow(v0, v1, 'red');\n\n let v2 = createVector(90, 90);\n drawArrow(v0, v2, 'blue');\n\n if (amount > 1 || amount < 0) {\n step *= -1;\n }\n amount += step;\n let v3 = p5.Vector.lerp(v1, v2, amount);\n\n drawArrow(v0, v3, 'purple');\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math', - overloads: [ - { - line: 1198, - params: [ - { - name: 'x', - description: '

the x component

\n', - type: 'Number' - }, - { - name: 'y', - description: '

the y component

\n', - type: 'Number' - }, - { - name: 'z', - description: '

the z component

\n', - type: 'Number' - }, - { - name: 'amt', - description: - '

the amount of interpolation; some value between 0.0\n (old vector) and 1.0 (new vector). 0.9 is very near\n the new vector. 0.5 is halfway in between.

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 1271, - params: [ - { - name: 'v', - description: - '

the p5.Vector to lerp to

\n', - type: 'p5.Vector' - }, - { - name: 'amt', - description: '', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 1711, - params: [ - { - name: 'v1', - description: '', - type: 'p5.Vector' - }, - { - name: 'v2', - description: '', - type: 'p5.Vector' - }, - { - name: 'amt', - description: '', - type: 'Number' - }, - { - name: 'target', - description: '

if undefined a new vector will be created

\n', - type: 'p5.Vector' - } - ], - static: 1 - }, - { - line: 1719, - params: [ - { - name: 'v1', - description: '', - type: 'p5.Vector' - }, - { - name: 'v2', - description: '', - type: 'p5.Vector' - }, - { - name: 'amt', - description: '', - type: 'Number' - } - ], - static: 1, - return: { - description: 'the lerped value', - type: 'Number' - } - } - ] - }, - { - file: 'src/math/p5.Vector.js', - line: 1287, - description: - '

Return a representation of this vector as a float array. This is only\nfor temporary use. If used in any other fashion, the contents should be\ncopied by using the p5.Vector.copy() method to copy into your own\narray.

\n', - itemtype: 'method', - name: 'array', - return: { - description: 'an Array with the 3 values', - type: 'Number[]' - }, - example: [ - '\n
\n\nfunction setup() {\n let v = createVector(20, 30);\n print(v.array()); // Prints : Array [20, 30, 0]\n}\n\n
\n\n
\n\nlet v = createVector(10.0, 20.0, 30.0);\nlet f = v.array();\nprint(f[0]); // Prints "10.0"\nprint(f[1]); // Prints "20.0"\nprint(f[2]); // Prints "30.0"\n\n
' - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 1319, - description: - '

Equality check against a p5.Vector

\n', - itemtype: 'method', - name: 'equals', - return: { - description: 'whether the vectors are equals', - type: 'Boolean' - }, - example: [ - '\n
\n\nlet v1 = createVector(5, 10, 20);\nlet v2 = createVector(5, 10, 20);\nlet v3 = createVector(13, 10, 19);\n\nprint(v1.equals(v2.x, v2.y, v2.z)); // true\nprint(v1.equals(v3.x, v3.y, v3.z)); // false\n\n
\n\n
\n\nlet v1 = createVector(10.0, 20.0, 30.0);\nlet v2 = createVector(10.0, 20.0, 30.0);\nlet v3 = createVector(0.0, 0.0, 0.0);\nprint(v1.equals(v2)); // true\nprint(v1.equals(v3)); // false\n\n
' - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math', - overloads: [ - { - line: 1319, - params: [ - { - name: 'x', - description: '

the x component of the vector

\n', - type: 'Number', - optional: true - }, - { - name: 'y', - description: '

the y component of the vector

\n', - type: 'Number', - optional: true - }, - { - name: 'z', - description: '

the z component of the vector

\n', - type: 'Number', - optional: true - } - ], - return: { - description: 'whether the vectors are equals', - type: 'Boolean' - } - }, - { - line: 1349, - params: [ - { - name: 'value', - description: '

the vector to compare

\n', - type: 'p5.Vector|Array' - } - ], - return: { - description: '', - type: 'Boolean' - } - } - ] - }, - { - file: 'src/math/p5.Vector.js', - line: 1374, - description: '

Make a new 2D vector from an angle

\n', - itemtype: 'method', - name: 'fromAngle', - static: 1, - params: [ - { - name: 'angle', - description: - '

the desired angle, in radians (unaffected by angleMode)

\n', - type: 'Number' - }, - { - name: 'length', - description: '

the length of the new vector (defaults to 1)

\n', - type: 'Number', - optional: true - } - ], - return: { - description: 'the new p5.Vector object', - type: 'p5.Vector' - }, - example: [ - "\n
\n\nfunction draw() {\n background(200);\n\n // Create a variable, proportional to the mouseX,\n // varying from 0-360, to represent an angle in degrees.\n let myDegrees = map(mouseX, 0, width, 0, 360);\n\n // Display that variable in an onscreen text.\n // (Note the nfc() function to truncate additional decimal places,\n // and the \"\\xB0\" character for the degree symbol.)\n let readout = 'angle = ' + nfc(myDegrees, 1) + '\\xB0';\n noStroke();\n fill(0);\n text(readout, 5, 15);\n\n // Create a p5.Vector using the fromAngle function,\n // and extract its x and y components.\n let v = p5.Vector.fromAngle(radians(myDegrees), 30);\n let vx = v.x;\n let vy = v.y;\n\n push();\n translate(width / 2, height / 2);\n noFill();\n stroke(150);\n line(0, 0, 30, 0);\n stroke(0);\n line(0, 0, vx, vy);\n pop();\n}\n\n
" - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 1425, - description: - '

Make a new 3D vector from a pair of ISO spherical angles

\n', - itemtype: 'method', - name: 'fromAngles', - static: 1, - params: [ - { - name: 'theta', - description: '

the polar angle, in radians (zero is up)

\n', - type: 'Number' - }, - { - name: 'phi', - description: - '

the azimuthal angle, in radians\n (zero is out of the screen)

\n', - type: 'Number' - }, - { - name: 'length', - description: '

the length of the new vector (defaults to 1)

\n', - type: 'Number', - optional: true - } - ], - return: { - description: 'the new p5.Vector object', - type: 'p5.Vector' - }, - example: [ - "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n fill(255);\n noStroke();\n}\nfunction draw() {\n background(255);\n\n let t = millis() / 1000;\n\n // add three point lights\n pointLight(color('#f00'), p5.Vector.fromAngles(t * 1.0, t * 1.3, 100));\n pointLight(color('#0f0'), p5.Vector.fromAngles(t * 1.1, t * 1.2, 100));\n pointLight(color('#00f'), p5.Vector.fromAngles(t * 1.2, t * 1.1, 100));\n\n sphere(35);\n}\n\n
" - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 1474, - description: '

Make a new 2D unit vector from a random angle

\n', - itemtype: 'method', - name: 'random2D', - static: 1, - return: { - description: 'the new p5.Vector object', - type: 'p5.Vector' - }, - example: [ - "\n
\n\nlet v = p5.Vector.random2D();\n// May make v's attributes something like:\n// [0.61554617, -0.51195765, 0.0] or\n// [-0.4695841, -0.14366731, 0.0] or\n// [0.6091097, -0.22805278, 0.0]\nprint(v);\n\n
\n\n
\n\nfunction setup() {\n frameRate(1);\n}\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(50, 50);\n let v1 = p5.Vector.random2D();\n drawArrow(v0, v1.mult(50), 'black');\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 1527, - description: '

Make a new random 3D unit vector.

\n', - itemtype: 'method', - name: 'random3D', - static: 1, - return: { - description: 'the new p5.Vector object', - type: 'p5.Vector' - }, - example: [ - '\n
\n\nlet v = p5.Vector.random3D();\n// May make v\'s attributes something like:\n// [0.61554617, -0.51195765, 0.599168] or\n// [-0.4695841, -0.14366731, -0.8711202] or\n// [0.6091097, -0.22805278, -0.7595902]\nprint(v);\n\n
' - ], - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 1610, - description: - '

Multiplies a vector by a scalar and returns a new vector.

\n', - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 1637, - description: - '

Divides a vector by a scalar and returns a new vector.

\n', - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 1664, - description: '

Calculates the dot product of two vectors.

\n', - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 1678, - description: '

Calculates the cross product of two vectors.

\n', - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 1692, - description: - '

Calculates the Euclidean distance between two points (considering a\npoint as a vector object).

\n', - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/p5.Vector.js', - line: 1707, - description: - '

Linear interpolate a vector to another vector and return the result as a\nnew vector.

\n', - class: 'p5.Vector', - module: 'Math', - submodule: 'Math' - }, - { - file: 'src/math/random.js', - line: 48, - description: - '

Sets the seed value for random().

\n

By default, random() produces different results each time the program\nis run. Set the seed parameter to a constant to return the same\npseudo-random numbers each time the software is run.

\n', - itemtype: 'method', - name: 'randomSeed', - params: [ - { - name: 'seed', - description: '

the seed value

\n', - type: 'Number' - } - ], - example: [ - '\n
\n\nrandomSeed(99);\nfor (let i = 0; i < 100; i++) {\n let r = random(0, 255);\n stroke(r);\n line(i, 0, i, 100);\n}\n\n
' - ], - alt: 'many vertical lines drawn in white, black or grey.', - class: 'p5', - module: 'Math', - submodule: 'Random' - }, - { - file: 'src/math/random.js', - line: 79, - description: - '

Return a random floating-point number.

\n

Takes either 0, 1 or 2 arguments.

\n

If no argument is given, returns a random number from 0\nup to (but not including) 1.

\n

If one argument is given and it is a number, returns a random number from 0\nup to (but not including) the number.

\n

If one argument is given and it is an array, returns a random element from\nthat array.

\n

If two arguments are given, returns a random number from the\nfirst argument up to (but not including) the second argument.

\n', - itemtype: 'method', - name: 'random', - return: { - description: 'the random number', - type: 'Number' - }, - example: [ - "\n
\n\nfor (let i = 0; i < 100; i++) {\n let r = random(50);\n stroke(r * 5);\n line(50, i, 50 + r, i);\n}\n\n
\n
\n\nfor (let i = 0; i < 100; i++) {\n let r = random(-50, 50);\n line(50, i, 50 + r, i);\n}\n\n
\n
\n\n// Get a random element from an array using the random(Array) syntax\nlet words = ['apple', 'bear', 'cat', 'dog'];\nlet word = random(words); // select random word\ntext(word, 10, 50); // draw the word\n\n
" - ], - alt: - '100 horizontal lines from center canvas to right. size+fill change each time\n100 horizontal lines from center of canvas. height & side change each render\nword displayed at random. Either apple, bear, cat, or dog', - class: 'p5', - module: 'Math', - submodule: 'Random', - overloads: [ - { - line: 79, - params: [ - { - name: 'min', - description: '

the lower bound (inclusive)

\n', - type: 'Number', - optional: true - }, - { - name: 'max', - description: '

the upper bound (exclusive)

\n', - type: 'Number', - optional: true - } - ], - return: { - description: 'the random number', - type: 'Number' - } - }, - { - line: 133, - params: [ - { - name: 'choices', - description: '

the array to choose from

\n', - type: 'Array' - } - ], - return: { - description: 'the random element from the array', - type: '*' - } - } - ] - }, - { - file: 'src/math/random.js', - line: 166, - description: - '

Returns a random number fitting a Gaussian, or\n normal, distribution. There is theoretically no minimum or maximum\n value that randomGaussian() might return. Rather, there is\n just a very low probability that values far from the mean will be\n returned; and a higher probability that numbers near the mean will\n be returned.\n

\n Takes either 0, 1 or 2 arguments.
\n If no args, returns a mean of 0 and standard deviation of 1.
\n If one arg, that arg is the mean (standard deviation is 1).
\n If two args, first is mean, second is standard deviation.

\n', - itemtype: 'method', - name: 'randomGaussian', - params: [ - { - name: 'mean', - description: '

the mean

\n', - type: 'Number' - }, - { - name: 'sd', - description: '

the standard deviation

\n', - type: 'Number' - } - ], - return: { - description: 'the random number', - type: 'Number' - }, - example: [ - '\n
\n \n for (let y = 0; y < 100; y++) {\n let x = randomGaussian(50, 15);\n line(50, y, x, y);\n }\n \n
\n
\n \n let distribution = new Array(360);\nfunction setup() {\n createCanvas(100, 100);\n for (let i = 0; i < distribution.length; i++) {\n distribution[i] = floor(randomGaussian(0, 15));\n }\n }\nfunction draw() {\n background(204);\n translate(width / 2, width / 2);\n for (let i = 0; i < distribution.length; i++) {\n rotate(TWO_PI / distribution.length);\n stroke(0);\n let dist = abs(distribution[i]);\n line(0, 0, dist, 0);\n }\n }\n \n
' - ], - alt: - '100 horizontal lines from center of canvas. height & side change each render\n black lines radiate from center of canvas. size determined each render', - class: 'p5', - module: 'Math', - submodule: 'Random' - }, - { - file: 'src/math/trigonometry.js', - line: 20, - description: - '

The inverse of cos(), returns the arc cosine of a value. This function\nexpects the values in the range of -1 to 1 and values are returned in\nthe range 0 to PI (3.1415927).

\n', - itemtype: 'method', - name: 'acos', - params: [ - { - name: 'value', - description: '

the value whose arc cosine is to be returned

\n', - type: 'Number' - } - ], - return: { - description: 'the arc cosine of the given value', - type: 'Number' - }, - example: [ - "\n
\n\nlet a = PI;\nlet c = cos(a);\nlet ac = acos(c);\n// Prints: \"3.1415927 : -1.0 : 3.1415927\"\nprint(a + ' : ' + c + ' : ' + ac);\n\n
\n\n
\n\nlet a = PI + PI / 4.0;\nlet c = cos(a);\nlet ac = acos(c);\n// Prints: \"3.926991 : -0.70710665 : 2.3561943\"\nprint(a + ' : ' + c + ' : ' + ac);\n\n
" - ], - class: 'p5', - module: 'Math', - submodule: 'Trigonometry' - }, - { - file: 'src/math/trigonometry.js', - line: 54, - description: - '

The inverse of sin(), returns the arc sine of a value. This function\nexpects the values in the range of -1 to 1 and values are returned\nin the range -PI/2 to PI/2.

\n', - itemtype: 'method', - name: 'asin', - params: [ - { - name: 'value', - description: '

the value whose arc sine is to be returned

\n', - type: 'Number' - } - ], - return: { - description: 'the arc sine of the given value', - type: 'Number' - }, - example: [ - "\n
\n\nlet a = PI + PI / 3;\nlet s = sin(a);\nlet as = asin(s);\n// Prints: \"1.0471976 : 0.86602545 : 1.0471976\"\nprint(a + ' : ' + s + ' : ' + as);\n\n
\n\n
\n\nlet a = PI + PI / 3.0;\nlet s = sin(a);\nlet as = asin(s);\n// Prints: \"4.1887903 : -0.86602545 : -1.0471976\"\nprint(a + ' : ' + s + ' : ' + as);\n\n
\n" - ], - class: 'p5', - module: 'Math', - submodule: 'Trigonometry' - }, - { - file: 'src/math/trigonometry.js', - line: 89, - description: - '

The inverse of tan(), returns the arc tangent of a value. This function\nexpects the values in the range of -Infinity to Infinity (exclusive) and\nvalues are returned in the range -PI/2 to PI/2.

\n', - itemtype: 'method', - name: 'atan', - params: [ - { - name: 'value', - description: '

the value whose arc tangent is to be returned

\n', - type: 'Number' - } - ], - return: { - description: 'the arc tangent of the given value', - type: 'Number' - }, - example: [ - "\n
\n\nlet a = PI + PI / 3;\nlet t = tan(a);\nlet at = atan(t);\n// Prints: \"1.0471976 : 1.7320509 : 1.0471976\"\nprint(a + ' : ' + t + ' : ' + at);\n\n
\n\n
\n\nlet a = PI + PI / 3.0;\nlet t = tan(a);\nlet at = atan(t);\n// Prints: \"4.1887903 : 1.7320513 : 1.0471977\"\nprint(a + ' : ' + t + ' : ' + at);\n\n
\n" - ], - class: 'p5', - module: 'Math', - submodule: 'Trigonometry' - }, - { - file: 'src/math/trigonometry.js', - line: 124, - description: - '

Calculates the angle (in radians) from a specified point to the coordinate\norigin as measured from the positive x-axis. Values are returned as a\nfloat in the range from PI to -PI. The atan2() function is most often used\nfor orienting geometry to the position of the cursor.\n

\nNote: The y-coordinate of the point is the first parameter, and the\nx-coordinate is the second parameter, due the the structure of calculating\nthe tangent.

\n', - itemtype: 'method', - name: 'atan2', - params: [ - { - name: 'y', - description: '

y-coordinate of the point

\n', - type: 'Number' - }, - { - name: 'x', - description: '

x-coordinate of the point

\n', - type: 'Number' - } - ], - return: { - description: 'the arc tangent of the given point', - type: 'Number' - }, - example: [ - '\n
\n\nfunction draw() {\n background(204);\n translate(width / 2, height / 2);\n let a = atan2(mouseY - height / 2, mouseX - width / 2);\n rotate(a);\n rect(-30, -5, 60, 10);\n}\n\n
' - ], - alt: '60 by 10 rect at center of canvas rotates with mouse movements', - class: 'p5', - module: 'Math', - submodule: 'Trigonometry' - }, - { - file: 'src/math/trigonometry.js', - line: 160, - description: - '

Calculates the cosine of an angle. This function takes into account the\ncurrent angleMode. Values are returned in the range -1 to 1.

\n', - itemtype: 'method', - name: 'cos', - params: [ - { - name: 'angle', - description: '

the angle

\n', - type: 'Number' - } - ], - return: { - description: 'the cosine of the angle', - type: 'Number' - }, - example: [ - '\n
\n\nlet a = 0.0;\nlet inc = TWO_PI / 25.0;\nfor (let i = 0; i < 25; i++) {\n line(i * 4, 50, i * 4, 50 + cos(a) * 40.0);\n a = a + inc;\n}\n\n
' - ], - alt: - 'vertical black lines form wave patterns, extend-down on left and right side', - class: 'p5', - module: 'Math', - submodule: 'Trigonometry' - }, - { - file: 'src/math/trigonometry.js', - line: 188, - description: - '

Calculates the sine of an angle. This function takes into account the\ncurrent angleMode. Values are returned in the range -1 to 1.

\n', - itemtype: 'method', - name: 'sin', - params: [ - { - name: 'angle', - description: '

the angle

\n', - type: 'Number' - } - ], - return: { - description: 'the sine of the angle', - type: 'Number' - }, - example: [ - '\n
\n\nlet a = 0.0;\nlet inc = TWO_PI / 25.0;\nfor (let i = 0; i < 25; i++) {\n line(i * 4, 50, i * 4, 50 + sin(a) * 40.0);\n a = a + inc;\n}\n\n
' - ], - alt: - 'vertical black lines extend down and up from center to form wave pattern', - class: 'p5', - module: 'Math', - submodule: 'Trigonometry' - }, - { - file: 'src/math/trigonometry.js', - line: 216, - description: - '

Calculates the tangent of an angle. This function takes into account\nthe current angleMode. Values are returned in the range -1 to 1.

\n', - itemtype: 'method', - name: 'tan', - params: [ - { - name: 'angle', - description: '

the angle

\n', - type: 'Number' - } - ], - return: { - description: 'the tangent of the angle', - type: 'Number' - }, - example: [ - '\n
\n\nlet a = 0.0;\nlet inc = TWO_PI / 50.0;\nfor (let i = 0; i < 100; i = i + 2) {\n line(i, 50, i, 50 + tan(a) * 2.0);\n a = a + inc;\n}\n' - ], - alt: - 'vertical black lines end down and up from center to form spike pattern', - class: 'p5', - module: 'Math', - submodule: 'Trigonometry' - }, - { - file: 'src/math/trigonometry.js', - line: 244, - description: - '

Converts a radian measurement to its corresponding value in degrees.\nRadians and degrees are two ways of measuring the same thing. There are\n360 degrees in a circle and 2*PI radians in a circle. For example,\n90ยฐ = PI/2 = 1.5707964. This function does not take into account the\ncurrent angleMode.

\n', - itemtype: 'method', - name: 'degrees', - params: [ - { - name: 'radians', - description: '

the radians value to convert to degrees

\n', - type: 'Number' - } - ], - return: { - description: 'the converted angle', - type: 'Number' - }, - example: [ - "\n
\n\nlet rad = PI / 4;\nlet deg = degrees(rad);\nprint(rad + ' radians is ' + deg + ' degrees');\n// Prints: 0.7853981633974483 radians is 45 degrees\n\n
\n" - ], - class: 'p5', - module: 'Math', - submodule: 'Trigonometry' - }, - { - file: 'src/math/trigonometry.js', - line: 271, - description: - '

Converts a degree measurement to its corresponding value in radians.\nRadians and degrees are two ways of measuring the same thing. There are\n360 degrees in a circle and 2*PI radians in a circle. For example,\n90ยฐ = PI/2 = 1.5707964. This function does not take into account the\ncurrent angleMode.

\n', - itemtype: 'method', - name: 'radians', - params: [ - { - name: 'degrees', - description: '

the degree value to convert to radians

\n', - type: 'Number' - } - ], - return: { - description: 'the converted angle', - type: 'Number' - }, - example: [ - "\n
\n\nlet deg = 45.0;\nlet rad = radians(deg);\nprint(deg + ' degrees is ' + rad + ' radians');\n// Prints: 45 degrees is 0.7853981633974483 radians\n\n
" - ], - class: 'p5', - module: 'Math', - submodule: 'Trigonometry' - }, - { - file: 'src/math/trigonometry.js', - line: 296, - description: - '

Sets the current mode of p5 to given mode. Default mode is RADIANS.

\n', - itemtype: 'method', - name: 'angleMode', - params: [ - { - name: 'mode', - description: '

either RADIANS or DEGREES

\n', - type: 'Constant' - } - ], - example: [ - '\n
\n\nfunction draw() {\n background(204);\n angleMode(DEGREES); // Change the mode to DEGREES\n let a = atan2(mouseY - height / 2, mouseX - width / 2);\n translate(width / 2, height / 2);\n push();\n rotate(a);\n rect(-20, -5, 40, 10); // Larger rectangle is rotating in degrees\n pop();\n angleMode(RADIANS); // Change the mode to RADIANS\n rotate(a); // variable a stays the same\n rect(-40, -5, 20, 10); // Smaller rectangle is rotating in radians\n}\n\n
' - ], - alt: - '40 by 10 rect in center rotates with mouse moves. 20 by 10 rect moves faster.', - class: 'p5', - module: 'Math', - submodule: 'Trigonometry' - }, - { - file: 'src/typography/attributes.js', - line: 13, - description: - '

Sets the current alignment for drawing text. Accepts two\narguments: horizAlign (LEFT, CENTER, or RIGHT) and\nvertAlign (TOP, BOTTOM, CENTER, or BASELINE).

\n

The horizAlign parameter is in reference to the x value\nof the text() function, while the vertAlign parameter is\nin reference to the y value.

\n

So if you write textAlign(LEFT), you are aligning the left\nedge of your text to the x value you give in text(). If you\nwrite textAlign(RIGHT, TOP), you are aligning the right edge\nof your text to the x value and the top of edge of the text\nto the y value.

\n', - itemtype: 'method', - name: 'textAlign', - chainable: 1, - example: [ - "\n
\n\ntextSize(16);\ntextAlign(RIGHT);\ntext('ABCD', 50, 30);\ntextAlign(CENTER);\ntext('EFGH', 50, 50);\ntextAlign(LEFT);\ntext('IJKL', 50, 70);\n\n
\n\n
\n\ntextSize(16);\nstrokeWeight(0.5);\n\nline(0, 12, width, 12);\ntextAlign(CENTER, TOP);\ntext('TOP', 0, 12, width);\n\nline(0, 37, width, 37);\ntextAlign(CENTER, CENTER);\ntext('CENTER', 0, 37, width);\n\nline(0, 62, width, 62);\ntextAlign(CENTER, BASELINE);\ntext('BASELINE', 0, 62, width);\n\nline(0, 87, width, 87);\ntextAlign(CENTER, BOTTOM);\ntext('BOTTOM', 0, 87, width);\n\n
" - ], - alt: - "Letters ABCD displayed at top right, EFGH at center and IJKL at bottom left.\nThe names of the four vertical alignments rendered each showing that alignment's placement relative to a horizontal line.", - class: 'p5', - module: 'Typography', - submodule: 'Attributes', - overloads: [ - { - line: 13, - params: [ - { - name: 'horizAlign', - description: - '

horizontal alignment, either LEFT,\n CENTER, or RIGHT

\n', - type: 'Constant' - }, - { - name: 'vertAlign', - description: - '

vertical alignment, either TOP,\n BOTTOM, CENTER, or BASELINE

\n', - type: 'Constant', - optional: true - } - ], - chainable: 1 - }, - { - line: 75, - params: [], - return: { - description: '', - type: 'Object' - } - } - ] - }, - { - file: 'src/typography/attributes.js', - line: 84, - description: - '

Sets/gets the spacing, in pixels, between lines of text. This\nsetting will be used in all subsequent calls to the text() function.

\n', - itemtype: 'method', - name: 'textLeading', - chainable: 1, - example: [ - '\n
\n\n// Text to display. The "\\n" is a "new line" character\nlet lines = \'L1\\nL2\\nL3\';\ntextSize(12);\n\ntextLeading(10); // Set leading to 10\ntext(lines, 10, 25);\n\ntextLeading(20); // Set leading to 20\ntext(lines, 40, 25);\n\ntextLeading(30); // Set leading to 30\ntext(lines, 70, 25);\n\n
' - ], - alt: - 'set L1 L2 & L3 displayed vertically 3 times. spacing increases for each set', - class: 'p5', - module: 'Typography', - submodule: 'Attributes', - overloads: [ - { - line: 84, - params: [ - { - name: 'leading', - description: - '

the size in pixels for spacing between lines

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 113, - params: [], - return: { - description: '', - type: 'Number' - } - } - ] - }, - { - file: 'src/typography/attributes.js', - line: 122, - description: - '

Sets/gets the current font size. This size will be used in all subsequent\ncalls to the text() function. Font size is measured in pixels.

\n', - itemtype: 'method', - name: 'textSize', - chainable: 1, - example: [ - "\n
\n\ntextSize(12);\ntext('Font Size 12', 10, 30);\ntextSize(14);\ntext('Font Size 14', 10, 60);\ntextSize(16);\ntext('Font Size 16', 10, 90);\n\n
" - ], - alt: - 'Font Size 12 displayed small, Font Size 14 medium & Font Size 16 large', - class: 'p5', - module: 'Typography', - submodule: 'Attributes', - overloads: [ - { - line: 122, - params: [ - { - name: 'theSize', - description: '

the size of the letters in units of pixels

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 145, - params: [], - return: { - description: '', - type: 'Number' - } - } - ] - }, - { - file: 'src/typography/attributes.js', - line: 154, - description: - '

Sets/gets the style of the text for system fonts to NORMAL, ITALIC, BOLD or BOLDITALIC.\nNote: this may be is overridden by CSS styling. For non-system fonts\n(opentype, truetype, etc.) please load styled fonts instead.

\n', - itemtype: 'method', - name: 'textStyle', - chainable: 1, - example: [ - "\n
\n\nstrokeWeight(0);\ntextSize(12);\ntextStyle(NORMAL);\ntext('Font Style Normal', 10, 15);\ntextStyle(ITALIC);\ntext('Font Style Italic', 10, 40);\ntextStyle(BOLD);\ntext('Font Style Bold', 10, 65);\ntextStyle(BOLDITALIC);\ntext('Font Style Bold Italic', 10, 90);\n\n
" - ], - alt: - 'words Font Style Normal displayed normally, Italic in italic, bold in bold and bold italic in bold italics.', - class: 'p5', - module: 'Typography', - submodule: 'Attributes', - overloads: [ - { - line: 154, - params: [ - { - name: 'theStyle', - description: - '

styling for text, either NORMAL,\n ITALIC, BOLD or BOLDITALIC

\n', - type: 'Constant' - } - ], - chainable: 1 - }, - { - line: 182, - params: [], - return: { - description: '', - type: 'String' - } - } - ] - }, - { - file: 'src/typography/attributes.js', - line: 191, - description: - '

Calculates and returns the width of any character or text string.

\n', - itemtype: 'method', - name: 'textWidth', - params: [ - { - name: 'theText', - description: '

the String of characters to measure

\n', - type: 'String' - } - ], - return: { - description: '', - type: 'Number' - }, - example: [ - "\n
\n\ntextSize(28);\n\nlet aChar = 'P';\nlet cWidth = textWidth(aChar);\ntext(aChar, 0, 40);\nline(cWidth, 0, cWidth, 50);\n\nlet aString = 'p5.js';\nlet sWidth = textWidth(aString);\ntext(aString, 0, 85);\nline(sWidth, 50, sWidth, 100);\n\n
" - ], - alt: - 'Letter P and p5.js are displayed with vertical lines at end. P is wide', - class: 'p5', - module: 'Typography', - submodule: 'Attributes' - }, - { - file: 'src/typography/attributes.js', - line: 226, - description: - '

Returns the ascent of the current font at its current size. The ascent\nrepresents the distance, in pixels, of the tallest character above\nthe baseline.

\n', - itemtype: 'method', - name: 'textAscent', - return: { - description: '', - type: 'Number' - }, - example: [ - "\n
\n\nlet base = height * 0.75;\nlet scalar = 0.8; // Different for each font\n\ntextSize(32); // Set initial text size\nlet asc = textAscent() * scalar; // Calc ascent\nline(0, base - asc, width, base - asc);\ntext('dp', 0, base); // Draw text on baseline\n\ntextSize(64); // Increase text size\nasc = textAscent() * scalar; // Recalc ascent\nline(40, base - asc, width, base - asc);\ntext('dp', 40, base); // Draw text on baseline\n\n
" - ], - class: 'p5', - module: 'Typography', - submodule: 'Attributes' - }, - { - file: 'src/typography/attributes.js', - line: 255, - description: - '

Returns the descent of the current font at its current size. The descent\nrepresents the distance, in pixels, of the character with the longest\ndescender below the baseline.

\n', - itemtype: 'method', - name: 'textDescent', - return: { - description: '', - type: 'Number' - }, - example: [ - "\n
\n\nlet base = height * 0.75;\nlet scalar = 0.8; // Different for each font\n\ntextSize(32); // Set initial text size\nlet desc = textDescent() * scalar; // Calc ascent\nline(0, base + desc, width, base + desc);\ntext('dp', 0, base); // Draw text on baseline\n\ntextSize(64); // Increase text size\ndesc = textDescent() * scalar; // Recalc ascent\nline(40, base + desc, width, base + desc);\ntext('dp', 40, base); // Draw text on baseline\n\n
" - ], - class: 'p5', - module: 'Typography', - submodule: 'Attributes' - }, - { - file: 'src/typography/attributes.js', - line: 284, - description: '

Helper function to measure ascent and descent.

\n', - class: 'p5', - module: 'Typography', - submodule: 'Attributes' - }, - { - file: 'src/typography/loading_displaying.js', - line: 16, - description: - '

Loads an opentype font file (.otf, .ttf) from a file or a URL,\nand returns a PFont Object. This method is asynchronous,\nmeaning it may not finish before the next line in your sketch\nis executed.\n

\nThe path to the font should be relative to the HTML file\nthat links in your sketch. Loading fonts from a URL or other\nremote location may be blocked due to your browser's built-in\nsecurity.

\n', - itemtype: 'method', - name: 'loadFont', - params: [ - { - name: 'path', - description: '

name of the file or url to load

\n', - type: 'String' - }, - { - name: 'callback', - description: - '

function to be executed after\n loadFont() completes

\n', - type: 'Function', - optional: true - }, - { - name: 'onError', - description: - '

function to be executed if\n an error occurs

\n', - type: 'Function', - optional: true - } - ], - return: { - description: 'p5.Font object', - type: 'p5.Font' - }, - example: [ - "\n\n

Calling loadFont() inside preload() guarantees that the load\noperation will have completed before setup() and draw() are called.

\n\n
\nlet myFont;\nfunction preload() {\n myFont = loadFont('assets/inconsolata.otf');\n}\n\nfunction setup() {\n fill('#ED225D');\n textFont(myFont);\n textSize(36);\n text('p5*js', 10, 50);\n}\n
\n\nOutside of preload(), you may supply a callback function to handle the\nobject:\n\n
\nfunction setup() {\n loadFont('assets/inconsolata.otf', drawText);\n}\n\nfunction drawText(font) {\n fill('#ED225D');\n textFont(font, 36);\n text('p5*js', 10, 50);\n}\n
\n\n

You can also use the font filename string (without the file extension) to style other HTML\nelements.

\n\n
\nfunction preload() {\n loadFont('assets/inconsolata.otf');\n}\n\nfunction setup() {\n let myDiv = createDiv('hello there');\n myDiv.style('font-family', 'Inconsolata');\n}\n
" - ], - alt: "p5*js in p5's theme dark pink\np5*js in p5's theme dark pink", - class: 'p5', - module: 'Typography', - submodule: 'Loading & Displaying' - }, - { - file: 'src/typography/loading_displaying.js', - line: 143, - description: - '

Draws text to the screen. Displays the information specified in the first\nparameter on the screen in the position specified by the additional\nparameters. A default font will be used unless a font is set with the\ntextFont() function and a default size will be used unless a font is set\nwith textSize(). Change the color of the text with the fill() function.\nChange the outline of the text with the stroke() and strokeWeight()\nfunctions.\n

\nThe text displays in relation to the textAlign() function, which gives the\noption to draw to the left, right, and center of the coordinates.\n

\nThe x2 and y2 parameters define a rectangular area to display within and\nmay only be used with string data. When these parameters are specified,\nthey are interpreted based on the current rectMode() setting. Text that\ndoes not fit completely within the rectangle specified will not be drawn\nto the screen. If x2 and y2 are not specified, the baseline alignment is the\ndefault, which means that the text will be drawn upwards from x and y.\n

\nWEBGL: Only opentype/truetype fonts are supported. You must load a font using the\nloadFont() method (see the example above).\nstroke() currently has no effect in webgl mode.

\n', - itemtype: 'method', - name: 'text', - params: [ - { - name: 'str', - description: - '

the alphanumeric\n symbols to be displayed

\n', - type: 'String|Object|Array|Number|Boolean' - }, - { - name: 'x', - description: '

x-coordinate of text

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y-coordinate of text

\n', - type: 'Number' - }, - { - name: 'x2', - description: - '

by default, the width of the text box,\n see rectMode() for more info

\n', - type: 'Number', - optional: true - }, - { - name: 'y2', - description: - '

by default, the height of the text box,\n see rectMode() for more info

\n', - type: 'Number', - optional: true - } - ], - chainable: 1, - example: [ - "\n
\n\ntextSize(32);\ntext('word', 10, 30);\nfill(0, 102, 153);\ntext('word', 10, 60);\nfill(0, 102, 153, 51);\ntext('word', 10, 90);\n\n
\n
\n\nlet s = 'The quick brown fox jumped over the lazy dog.';\nfill(50);\ntext(s, 10, 10, 70, 80); // Text wraps within text box\n\n
\n\n
\n\nlet inconsolata;\nfunction preload() {\n inconsolata = loadFont('assets/inconsolata.otf');\n}\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n textFont(inconsolata);\n textSize(width / 3);\n textAlign(CENTER, CENTER);\n}\nfunction draw() {\n background(0);\n let time = millis();\n rotateX(time / 1000);\n rotateZ(time / 1234);\n text('p5.js', 0, 0);\n}\n\n
" - ], - alt: - "'word' displayed 3 times going from black, blue to translucent blue\nThe quick brown fox jumped over the lazy dog.\nthe text 'p5.js' spinning in 3d", - class: 'p5', - module: 'Typography', - submodule: 'Loading & Displaying' - }, - { - file: 'src/typography/loading_displaying.js', - line: 230, - description: - '

Sets the current font that will be drawn with the text() function.\n

\nWEBGL: Only fonts loaded via loadFont() are supported.

\n', - itemtype: 'method', - name: 'textFont', - return: { - description: 'the current font', - type: 'Object' - }, - example: [ - "\n
\n\nfill(0);\ntextSize(12);\ntextFont('Georgia');\ntext('Georgia', 12, 30);\ntextFont('Helvetica');\ntext('Helvetica', 12, 60);\n\n
\n
\n\nlet fontRegular, fontItalic, fontBold;\nfunction preload() {\n fontRegular = loadFont('assets/Regular.otf');\n fontItalic = loadFont('assets/Italic.ttf');\n fontBold = loadFont('assets/Bold.ttf');\n}\nfunction setup() {\n background(210);\n fill(0)\n .strokeWeight(0)\n .textSize(10);\n textFont(fontRegular);\n text('Font Style Normal', 10, 30);\n textFont(fontItalic);\n text('Font Style Italic', 10, 50);\n textFont(fontBold);\n text('Font Style Bold', 10, 70);\n}\n\n
" - ], - alt: - 'words Font Style Normal displayed normally, Italic in italic and bold in bold', - class: 'p5', - module: 'Typography', - submodule: 'Loading & Displaying', - overloads: [ - { - line: 230, - params: [], - return: { - description: 'the current font', - type: 'Object' - } - }, - { - line: 275, - params: [ - { - name: 'font', - description: - '

a font loaded via loadFont(), or a String\nrepresenting a web safe font (a font\nthat is generally available across all systems)

\n', - type: 'Object|String' - }, - { - name: 'size', - description: '

the font size to use

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/typography/p5.Font.js', - line: 25, - description: '

Underlying opentype font implementation

\n', - itemtype: 'property', - name: 'font', - class: 'p5.Font', - module: 'Typography', - submodule: 'Font' - }, - { - file: 'src/typography/p5.Font.js', - line: 32, - description: - '

Returns a tight bounding box for the given text string using this\nfont (currently only supports single lines)

\n', - itemtype: 'method', - name: 'textBounds', - params: [ - { - name: 'line', - description: '

a line of text

\n', - type: 'String' - }, - { - name: 'x', - description: '

x-position

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y-position

\n', - type: 'Number' - }, - { - name: 'fontSize', - description: '

font size to use (optional) Default is 12.

\n', - type: 'Number', - optional: true - }, - { - name: 'options', - description: - '

opentype options (optional)\n opentype fonts contains alignment and baseline options.\n Default is 'LEFT' and 'alphabetic'

\n', - type: 'Object', - optional: true - } - ], - return: { - description: 'a rectangle object with properties: x, y, w, h', - type: 'Object' - }, - example: [ - "\n
\n\nlet font;\nlet textString = 'Lorem ipsum dolor sit amet.';\nfunction preload() {\n font = loadFont('./assets/Regular.otf');\n}\nfunction setup() {\n background(210);\n\n let bbox = font.textBounds(textString, 10, 30, 12);\n fill(255);\n stroke(0);\n rect(bbox.x, bbox.y, bbox.w, bbox.h);\n fill(0);\n noStroke();\n\n textFont(font);\n textSize(12);\n text(textString, 10, 30);\n}\n\n
" - ], - alt: - 'words Lorem ipsum dol go off canvas and contained by white bounding box', - class: 'p5.Font', - module: 'Typography', - submodule: 'Font' - }, - { - file: 'src/typography/p5.Font.js', - line: 156, - description: - '

Computes an array of points following the path for specified text

\n', - itemtype: 'method', - name: 'textToPoints', - params: [ - { - name: 'txt', - description: '

a line of text

\n', - type: 'String' - }, - { - name: 'x', - description: '

x-position

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y-position

\n', - type: 'Number' - }, - { - name: 'fontSize', - description: '

font size to use (optional)

\n', - type: 'Number' - }, - { - name: 'options', - description: - '

an (optional) object that can contain:

\n


sampleFactor - the ratio of path-length to number of samples\n(default=.1); higher values yield more points and are therefore\nmore precise

\n


simplifyThreshold - if set to a non-zero value, collinear points will be\nbe removed from the polygon; the value represents the threshold angle to use\nwhen determining whether two edges are collinear

\n', - type: 'Object', - optional: true - } - ], - return: { - description: 'an array of points, each with x, y, alpha (the path angle)', - type: 'Array' - }, - example: [ - "\n
\n\nlet font;\nfunction preload() {\n font = loadFont('assets/inconsolata.otf');\n}\n\nlet points;\nlet bounds;\nfunction setup() {\n createCanvas(100, 100);\n stroke(0);\n fill(255, 104, 204);\n\n points = font.textToPoints('p5', 0, 0, 10, {\n sampleFactor: 5,\n simplifyThreshold: 0\n });\n bounds = font.textBounds(' p5 ', 0, 0, 10);\n}\n\nfunction draw() {\n background(255);\n beginShape();\n translate(-bounds.x * width / bounds.w, -bounds.y * height / bounds.h);\n for (let i = 0; i < points.length; i++) {\n let p = points[i];\n vertex(\n p.x * width / bounds.w +\n sin(20 * p.y / bounds.h + millis() / 1000) * width / 30,\n p.y * height / bounds.h\n );\n }\n endShape(CLOSE);\n}\n\n
\n" - ], - class: 'p5.Font', - module: 'Typography', - submodule: 'Font' - }, - { - file: 'src/utilities/array_functions.js', - line: 12, - description: - '

Adds a value to the end of an array. Extends the length of\nthe array by one. Maps to Array.push().

\n', - itemtype: 'method', - name: 'append', - deprecated: true, - deprecationMessage: - 'Use array.push(value) instead.', - params: [ - { - name: 'array', - description: '

Array to append

\n', - type: 'Array' - }, - { - name: 'value', - description: '

to be added to the Array

\n', - type: 'Any' - } - ], - return: { - description: 'the array that was appended to', - type: 'Array' - }, - example: [ - "\n
\nfunction setup() {\n var myArray = ['Mango', 'Apple', 'Papaya'];\n print(myArray); // ['Mango', 'Apple', 'Papaya']\n\n append(myArray, 'Peach');\n print(myArray); // ['Mango', 'Apple', 'Papaya', 'Peach']\n}\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'Array Functions' - }, - { - file: 'src/utilities/array_functions.js', - line: 37, - description: - '

Copies an array (or part of an array) to another array. The src array is\ncopied to the dst array, beginning at the position specified by\nsrcPosition and into the position specified by dstPosition. The number of\nelements to copy is determined by length. Note that copying values\noverwrites existing values in the destination array. To append values\ninstead of overwriting them, use concat().\n

\nThe simplified version with only two arguments, arrayCopy(src, dst),\ncopies an entire array to another of the same size. It is equivalent to\narrayCopy(src, 0, dst, 0, src.length).\n

\nUsing this function is far more efficient for copying array data than\niterating through a for() loop and copying each element individually.

\n', - itemtype: 'method', - name: 'arrayCopy', - deprecated: true, - example: [ - "\n
\nvar src = ['A', 'B', 'C'];\nvar dst = [1, 2, 3];\nvar srcPosition = 1;\nvar dstPosition = 0;\nvar length = 2;\n\nprint(src); // ['A', 'B', 'C']\nprint(dst); // [ 1 , 2 , 3 ]\n\narrayCopy(src, srcPosition, dst, dstPosition, length);\nprint(dst); // ['B', 'C', 3]\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'Array Functions', - overloads: [ - { - line: 37, - params: [ - { - name: 'src', - description: '

the source Array

\n', - type: 'Array' - }, - { - name: 'srcPosition', - description: '

starting position in the source Array

\n', - type: 'Integer' - }, - { - name: 'dst', - description: '

the destination Array

\n', - type: 'Array' - }, - { - name: 'dstPosition', - description: '

starting position in the destination Array

\n', - type: 'Integer' - }, - { - name: 'length', - description: '

number of Array elements to be copied

\n', - type: 'Integer' - } - ] - }, - { - line: 75, - params: [ - { - name: 'src', - description: '', - type: 'Array' - }, - { - name: 'dst', - description: '', - type: 'Array' - }, - { - name: 'length', - description: '', - type: 'Integer', - optional: true - } - ] - } - ] - }, - { - file: 'src/utilities/array_functions.js', - line: 114, - description: - '

Concatenates two arrays, maps to Array.concat(). Does not modify the\ninput arrays.

\n', - itemtype: 'method', - name: 'concat', - deprecated: true, - deprecationMessage: - 'Use arr1.concat(arr2) instead.', - params: [ - { - name: 'a', - description: '

first Array to concatenate

\n', - type: 'Array' - }, - { - name: 'b', - description: '

second Array to concatenate

\n', - type: 'Array' - } - ], - return: { - description: 'concatenated array', - type: 'Array' - }, - example: [ - "\n
\nfunction setup() {\n var arr1 = ['A', 'B', 'C'];\n var arr2 = [1, 2, 3];\n\n print(arr1); // ['A','B','C']\n print(arr2); // [1,2,3]\n\n var arr3 = concat(arr1, arr2);\n\n print(arr1); // ['A','B','C']\n print(arr2); // [1, 2, 3]\n print(arr3); // ['A','B','C', 1, 2, 3]\n}\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'Array Functions' - }, - { - file: 'src/utilities/array_functions.js', - line: 145, - description: - '

Reverses the order of an array, maps to Array.reverse()

\n', - itemtype: 'method', - name: 'reverse', - deprecated: true, - deprecationMessage: - 'Use array.reverse() instead.', - params: [ - { - name: 'list', - description: '

Array to reverse

\n', - type: 'Array' - } - ], - return: { - description: 'the reversed list', - type: 'Array' - }, - example: [ - "\n
\nfunction setup() {\n var myArray = ['A', 'B', 'C'];\n print(myArray); // ['A','B','C']\n\n reverse(myArray);\n print(myArray); // ['C','B','A']\n}\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'Array Functions' - }, - { - file: 'src/utilities/array_functions.js', - line: 167, - description: - '

Decreases an array by one element and returns the shortened array,\nmaps to Array.pop().

\n', - itemtype: 'method', - name: 'shorten', - deprecated: true, - deprecationMessage: - 'Use array.pop() instead.', - params: [ - { - name: 'list', - description: '

Array to shorten

\n', - type: 'Array' - } - ], - return: { - description: 'shortened Array', - type: 'Array' - }, - example: [ - "\n
\nfunction setup() {\n var myArray = ['A', 'B', 'C'];\n print(myArray); // ['A', 'B', 'C']\n var newArray = shorten(myArray);\n print(myArray); // ['A','B','C']\n print(newArray); // ['A','B']\n}\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'Array Functions' - }, - { - file: 'src/utilities/array_functions.js', - line: 191, - description: - "

Randomizes the order of the elements of an array. Implements\n\nFisher-Yates Shuffle Algorithm.

\n", - itemtype: 'method', - name: 'shuffle', - params: [ - { - name: 'array', - description: '

Array to shuffle

\n', - type: 'Array' - }, - { - name: 'bool', - description: '

modify passed array

\n', - type: 'Boolean', - optional: true - } - ], - return: { - description: 'shuffled Array', - type: 'Array' - }, - example: [ - "\n
\nfunction setup() {\n var regularArr = ['ABC', 'def', createVector(), TAU, Math.E];\n print(regularArr);\n shuffle(regularArr, true); // force modifications to passed array\n print(regularArr);\n\n // By default shuffle() returns a shuffled cloned array:\n var newArr = shuffle(regularArr);\n print(regularArr);\n print(newArr);\n}\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'Array Functions' - }, - { - file: 'src/utilities/array_functions.js', - line: 233, - description: - '

Sorts an array of numbers from smallest to largest, or puts an array of\nwords in alphabetical order. The original array is not modified; a\nre-ordered array is returned. The count parameter states the number of\nelements to sort. For example, if there are 12 elements in an array and\ncount is set to 5, only the first 5 elements in the array will be sorted.

\n', - itemtype: 'method', - name: 'sort', - deprecated: true, - deprecationMessage: - 'Use array.sort() instead.', - params: [ - { - name: 'list', - description: '

Array to sort

\n', - type: 'Array' - }, - { - name: 'count', - description: '

number of elements to sort, starting from 0

\n', - type: 'Integer', - optional: true - } - ], - return: { - description: 'the sorted list', - type: 'Array' - }, - example: [ - "\n
\nfunction setup() {\n var words = ['banana', 'apple', 'pear', 'lime'];\n print(words); // ['banana', 'apple', 'pear', 'lime']\n var count = 4; // length of array\n\n words = sort(words, count);\n print(words); // ['apple', 'banana', 'lime', 'pear']\n}\n
\n
\nfunction setup() {\n var numbers = [2, 6, 1, 5, 14, 9, 8, 12];\n print(numbers); // [2, 6, 1, 5, 14, 9, 8, 12]\n var count = 5; // Less than the length of the array\n\n numbers = sort(numbers, count);\n print(numbers); // [1,2,5,6,14,9,8,12]\n}\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'Array Functions' - }, - { - file: 'src/utilities/array_functions.js', - line: 281, - description: - '

Inserts a value or an array of values into an existing array. The first\nparameter specifies the initial array to be modified, and the second\nparameter defines the data to be inserted. The third parameter is an index\nvalue which specifies the array position from which to insert data.\n(Remember that array index numbering starts at zero, so the first position\nis 0, the second position is 1, and so on.)

\n', - itemtype: 'method', - name: 'splice', - deprecated: true, - deprecationMessage: - 'Use array.splice() instead.', - params: [ - { - name: 'list', - description: '

Array to splice into

\n', - type: 'Array' - }, - { - name: 'value', - description: '

value to be spliced in

\n', - type: 'Any' - }, - { - name: 'position', - description: '

in the array from which to insert data

\n', - type: 'Integer' - } - ], - return: { - description: 'the list', - type: 'Array' - }, - example: [ - "\n
\nfunction setup() {\n var myArray = [0, 1, 2, 3, 4];\n var insArray = ['A', 'B', 'C'];\n print(myArray); // [0, 1, 2, 3, 4]\n print(insArray); // ['A','B','C']\n\n splice(myArray, insArray, 3);\n print(myArray); // [0,1,2,'A','B','C',3,4]\n}\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'Array Functions' - }, - { - file: 'src/utilities/array_functions.js', - line: 316, - description: - '

Extracts an array of elements from an existing array. The list parameter\ndefines the array from which the elements will be copied, and the start\nand count parameters specify which elements to extract. If no count is\ngiven, elements will be extracted from the start to the end of the array.\nWhen specifying the start, remember that the first array element is 0.\nThis function does not change the source array.

\n', - itemtype: 'method', - name: 'subset', - deprecated: true, - deprecationMessage: - 'Use array.slice() instead.', - params: [ - { - name: 'list', - description: '

Array to extract from

\n', - type: 'Array' - }, - { - name: 'start', - description: '

position to begin

\n', - type: 'Integer' - }, - { - name: 'count', - description: '

number of values to extract

\n', - type: 'Integer', - optional: true - } - ], - return: { - description: 'Array of extracted elements', - type: 'Array' - }, - example: [ - "\n
\nfunction setup() {\n var myArray = [1, 2, 3, 4, 5];\n print(myArray); // [1, 2, 3, 4, 5]\n\n var sub1 = subset(myArray, 0, 3);\n var sub2 = subset(myArray, 2, 2);\n print(sub1); // [1,2,3]\n print(sub2); // [3,4]\n}\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'Array Functions' - }, - { - file: 'src/utilities/conversion.js', - line: 12, - description: - '

Converts a string to its floating point representation. The contents of a\nstring must resemble a number, or NaN (not a number) will be returned.\nFor example, float("1234.56") evaluates to 1234.56, but float("giraffe")\nwill return NaN.

\n

When an array of values is passed in, then an array of floats of the same\nlength is returned.

\n', - itemtype: 'method', - name: 'float', - params: [ - { - name: 'str', - description: '

float string to parse

\n', - type: 'String' - } - ], - return: { - description: 'floating point representation of string', - type: 'Number' - }, - example: [ - "\n
\nvar str = '20';\nvar diameter = float(str);\nellipse(width / 2, height / 2, diameter, diameter);\n
\n
\nprint(float('10.31')); // 10.31\nprint(float('Infinity')); // Infinity\nprint(float('-Infinity')); // -Infinity\n
" - ], - alt: '20 by 20 white ellipse in the center of the canvas', - class: 'p5', - module: 'Data', - submodule: 'Conversion' - }, - { - file: 'src/utilities/conversion.js', - line: 47, - description: - '

Converts a boolean, string, or float to its integer representation.\nWhen an array of values is passed in, then an int array of the same length\nis returned.

\n', - itemtype: 'method', - name: 'int', - return: { - description: 'integer representation of value', - type: 'Number' - }, - example: [ - "\n
\nprint(int('10')); // 10\nprint(int(10.31)); // 10\nprint(int(-10)); // -10\nprint(int(true)); // 1\nprint(int(false)); // 0\nprint(int([false, true, '10.3', 9.8])); // [0, 1, 10, 9]\nprint(int(Infinity)); // Infinity\nprint(int('-Infinity')); // -Infinity\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'Conversion', - overloads: [ - { - line: 47, - params: [ - { - name: 'n', - description: '

value to parse

\n', - type: 'String|Boolean|Number' - }, - { - name: 'radix', - description: '

the radix to convert to (default: 10)

\n', - type: 'Integer', - optional: true - } - ], - return: { - description: 'integer representation of value', - type: 'Number' - } - }, - { - line: 69, - params: [ - { - name: 'ns', - description: '

values to parse

\n', - type: 'Array' - } - ], - return: { - description: 'integer representation of values', - type: 'Number[]' - } - } - ] - }, - { - file: 'src/utilities/conversion.js', - line: 93, - description: - '

Converts a boolean, string or number to its string representation.\nWhen an array of values is passed in, then an array of strings of the same\nlength is returned.

\n', - itemtype: 'method', - name: 'str', - params: [ - { - name: 'n', - description: '

value to parse

\n', - type: 'String|Boolean|Number|Array' - } - ], - return: { - description: 'string representation of value', - type: 'String' - }, - example: [ - '\n
\nprint(str(\'10\')); // "10"\nprint(str(10.31)); // "10.31"\nprint(str(-10)); // "-10"\nprint(str(true)); // "true"\nprint(str(false)); // "false"\nprint(str([true, \'10.3\', 9.8])); // [ "true", "10.3", "9.8" ]\n
' - ], - class: 'p5', - module: 'Data', - submodule: 'Conversion' - }, - { - file: 'src/utilities/conversion.js', - line: 119, - description: - '

Converts a number or string to its boolean representation.\nFor a number, any non-zero value (positive or negative) evaluates to true,\nwhile zero evaluates to false. For a string, the value "true" evaluates to\ntrue, while any other value evaluates to false. When an array of number or\nstring values is passed in, then a array of booleans of the same length is\nreturned.

\n', - itemtype: 'method', - name: 'boolean', - params: [ - { - name: 'n', - description: '

value to parse

\n', - type: 'String|Boolean|Number|Array' - } - ], - return: { - description: 'boolean representation of value', - type: 'Boolean' - }, - example: [ - "\n
\nprint(boolean(0)); // false\nprint(boolean(1)); // true\nprint(boolean('true')); // true\nprint(boolean('abcd')); // false\nprint(boolean([0, 12, 'true'])); // [false, true, true]\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'Conversion' - }, - { - file: 'src/utilities/conversion.js', - line: 151, - description: - '

Converts a number, string representation of a number, or boolean to its byte\nrepresentation. A byte can be only a whole number between -128 and 127, so\nwhen a value outside of this range is converted, it wraps around to the\ncorresponding byte representation. When an array of number, string or boolean\nvalues is passed in, then an array of bytes the same length is returned.

\n', - itemtype: 'method', - name: 'byte', - return: { - description: 'byte representation of value', - type: 'Number' - }, - example: [ - "\n
\nprint(byte(127)); // 127\nprint(byte(128)); // -128\nprint(byte(23.4)); // 23\nprint(byte('23.4')); // 23\nprint(byte('hello')); // NaN\nprint(byte(true)); // 1\nprint(byte([0, 255, '100'])); // [0, -1, 100]\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'Conversion', - overloads: [ - { - line: 151, - params: [ - { - name: 'n', - description: '

value to parse

\n', - type: 'String|Boolean|Number' - } - ], - return: { - description: 'byte representation of value', - type: 'Number' - } - }, - { - line: 173, - params: [ - { - name: 'ns', - description: '

values to parse

\n', - type: 'Array' - } - ], - return: { - description: 'array of byte representation of values', - type: 'Number[]' - } - } - ] - }, - { - file: 'src/utilities/conversion.js', - line: 187, - description: - '

Converts a number or string to its corresponding single-character\nstring representation. If a string parameter is provided, it is first\nparsed as an integer and then translated into a single-character string.\nWhen an array of number or string values is passed in, then an array of\nsingle-character strings of the same length is returned.

\n', - itemtype: 'method', - name: 'char', - return: { - description: 'string representation of value', - type: 'String' - }, - example: [ - '\n
\nprint(char(65)); // "A"\nprint(char(\'65\')); // "A"\nprint(char([65, 66, 67])); // [ "A", "B", "C" ]\nprint(join(char([65, 66, 67]), \'\')); // "ABC"\n
' - ], - class: 'p5', - module: 'Data', - submodule: 'Conversion', - overloads: [ - { - line: 187, - params: [ - { - name: 'n', - description: '

value to parse

\n', - type: 'String|Number' - } - ], - return: { - description: 'string representation of value', - type: 'String' - } - }, - { - line: 206, - params: [ - { - name: 'ns', - description: '

values to parse

\n', - type: 'Array' - } - ], - return: { - description: 'array of string representation of values', - type: 'String[]' - } - } - ] - }, - { - file: 'src/utilities/conversion.js', - line: 221, - description: - '

Converts a single-character string to its corresponding integer\nrepresentation. When an array of single-character string values is passed\nin, then an array of integers of the same length is returned.

\n', - itemtype: 'method', - name: 'unchar', - return: { - description: 'integer representation of value', - type: 'Number' - }, - example: [ - "\n
\nprint(unchar('A')); // 65\nprint(unchar(['A', 'B', 'C'])); // [ 65, 66, 67 ]\nprint(unchar(split('ABC', ''))); // [ 65, 66, 67 ]\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'Conversion', - overloads: [ - { - line: 221, - params: [ - { - name: 'n', - description: '

value to parse

\n', - type: 'String' - } - ], - return: { - description: 'integer representation of value', - type: 'Number' - } - }, - { - line: 237, - params: [ - { - name: 'ns', - description: '

values to parse

\n', - type: 'Array' - } - ], - return: { - description: 'integer representation of values', - type: 'Number[]' - } - } - ] - }, - { - file: 'src/utilities/conversion.js', - line: 250, - description: - '

Converts a number to a string in its equivalent hexadecimal notation. If a\nsecond parameter is passed, it is used to set the number of characters to\ngenerate in the hexadecimal notation. When an array is passed in, an\narray of strings in hexadecimal notation of the same length is returned.

\n', - itemtype: 'method', - name: 'hex', - return: { - description: 'hexadecimal string representation of value', - type: 'String' - }, - example: [ - '\n
\nprint(hex(255)); // "000000FF"\nprint(hex(255, 6)); // "0000FF"\nprint(hex([0, 127, 255], 6)); // [ "000000", "00007F", "0000FF" ]\nprint(Infinity); // "FFFFFFFF"\nprint(-Infinity); // "00000000"\n
' - ], - class: 'p5', - module: 'Data', - submodule: 'Conversion', - overloads: [ - { - line: 250, - params: [ - { - name: 'n', - description: '

value to parse

\n', - type: 'Number' - }, - { - name: 'digits', - description: '', - type: 'Number', - optional: true - } - ], - return: { - description: 'hexadecimal string representation of value', - type: 'String' - } - }, - { - line: 270, - params: [ - { - name: 'ns', - description: '

array of values to parse

\n', - type: 'Number[]' - }, - { - name: 'digits', - description: '', - type: 'Number', - optional: true - } - ], - return: { - description: 'hexadecimal string representation of values', - type: 'String[]' - } - } - ] - }, - { - file: 'src/utilities/conversion.js', - line: 302, - description: - '

Converts a string representation of a hexadecimal number to its equivalent\ninteger value. When an array of strings in hexadecimal notation is passed\nin, an array of integers of the same length is returned.

\n', - itemtype: 'method', - name: 'unhex', - return: { - description: 'integer representation of hexadecimal value', - type: 'Number' - }, - example: [ - "\n
\nprint(unhex('A')); // 10\nprint(unhex('FF')); // 255\nprint(unhex(['FF', 'AA', '00'])); // [ 255, 170, 0 ]\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'Conversion', - overloads: [ - { - line: 302, - params: [ - { - name: 'n', - description: '

value to parse

\n', - type: 'String' - } - ], - return: { - description: 'integer representation of hexadecimal value', - type: 'Number' - } - }, - { - line: 318, - params: [ - { - name: 'ns', - description: '

values to parse

\n', - type: 'Array' - } - ], - return: { - description: 'integer representations of hexadecimal value', - type: 'Number[]' - } - } - ] - }, - { - file: 'src/utilities/string_functions.js', - line: 15, - description: - '

Combines an array of Strings into one String, each separated by the\ncharacter(s) used for the separator parameter. To join arrays of ints or\nfloats, it's necessary to first convert them to Strings using nf() or\nnfs().

\n', - itemtype: 'method', - name: 'join', - params: [ - { - name: 'list', - description: '

array of Strings to be joined

\n', - type: 'Array' - }, - { - name: 'separator', - description: '

String to be placed between each item

\n', - type: 'String' - } - ], - return: { - description: 'joined String', - type: 'String' - }, - example: [ - "\n
\n\nvar array = ['Hello', 'world!'];\nvar separator = ' ';\nvar message = join(array, separator);\ntext(message, 5, 50);\n\n
" - ], - alt: '"hello world!" displayed middle left of canvas.', - class: 'p5', - module: 'Data', - submodule: 'String Functions' - }, - { - file: 'src/utilities/string_functions.js', - line: 44, - description: - '

This function is used to apply a regular expression to a piece of text,\nand return matching groups (elements found inside parentheses) as a\nString array. If there are no matches, a null value will be returned.\nIf no groups are specified in the regular expression, but the sequence\nmatches, an array of length 1 (with the matched text as the first element\nof the array) will be returned.\n

\nTo use the function, first check to see if the result is null. If the\nresult is null, then the sequence did not match at all. If the sequence\ndid match, an array is returned.\n

\nIf there are groups (specified by sets of parentheses) in the regular\nexpression, then the contents of each will be returned in the array.\nElement [0] of a regular expression match returns the entire matching\nstring, and the match groups start at element [1] (the first group is [1],\nthe second [2], and so on).

\n', - itemtype: 'method', - name: 'match', - params: [ - { - name: 'str', - description: '

the String to be searched

\n', - type: 'String' - }, - { - name: 'regexp', - description: '

the regexp to be used for matching

\n', - type: 'String' - } - ], - return: { - description: 'Array of Strings found', - type: 'String[]' - }, - example: [ - "\n
\n\nvar string = 'Hello p5js*!';\nvar regexp = 'p5js\\\\*';\nvar m = match(string, regexp);\ntext(m, 5, 50);\n\n
" - ], - alt: '"p5js*" displayed middle left of canvas.', - class: 'p5', - module: 'Data', - submodule: 'String Functions' - }, - { - file: 'src/utilities/string_functions.js', - line: 85, - description: - '

This function is used to apply a regular expression to a piece of text,\nand return a list of matching groups (elements found inside parentheses)\nas a two-dimensional String array. If there are no matches, a null value\nwill be returned. If no groups are specified in the regular expression,\nbut the sequence matches, a two dimensional array is still returned, but\nthe second dimension is only of length one.\n

\nTo use the function, first check to see if the result is null. If the\nresult is null, then the sequence did not match at all. If the sequence\ndid match, a 2D array is returned.\n

\nIf there are groups (specified by sets of parentheses) in the regular\nexpression, then the contents of each will be returned in the array.\nAssuming a loop with counter variable i, element [i][0] of a regular\nexpression match returns the entire matching string, and the match groups\nstart at element [i][1] (the first group is [i][1], the second [i][2],\nand so on).

\n', - itemtype: 'method', - name: 'matchAll', - params: [ - { - name: 'str', - description: '

the String to be searched

\n', - type: 'String' - }, - { - name: 'regexp', - description: '

the regexp to be used for matching

\n', - type: 'String' - } - ], - return: { - description: '2d Array of Strings found', - type: 'String[]' - }, - example: [ - "\n
\n\nvar string = 'Hello p5js*! Hello world!';\nvar regexp = 'Hello';\nmatchAll(string, regexp);\n\n
" - ], - class: 'p5', - module: 'Data', - submodule: 'String Functions' - }, - { - file: 'src/utilities/string_functions.js', - line: 132, - description: - '

Utility function for formatting numbers into strings. There are two\nversions: one for formatting floats, and one for formatting ints.\nThe values for the digits, left, and right parameters should always\nbe positive integers.\n(NOTE): Be cautious when using left and right parameters as it prepends numbers of 0's if the parameter\nif greater than the current length of the number.\nFor example if number is 123.2 and left parameter passed is 4 which is greater than length of 123\n(integer part) i.e 3 than result will be 0123.2. Same case for right parameter i.e. if right is 3 than\nthe result will be 123.200.

\n', - itemtype: 'method', - name: 'nf', - return: { - description: 'formatted String', - type: 'String' - }, - example: [ - "\n
\n\nvar myFont;\nfunction preload() {\n myFont = loadFont('assets/fonts/inconsolata.ttf');\n}\nfunction setup() {\n background(200);\n var num1 = 321;\n var num2 = -1321;\n\n noStroke();\n fill(0);\n textFont(myFont);\n textSize(22);\n\n text(nf(num1, 4, 2), 10, 30);\n text(nf(num2, 4, 2), 10, 80);\n // Draw dividing line\n stroke(120);\n line(0, 50, width, 50);\n}\n\n
" - ], - alt: '"0321.00" middle top, -1321.00" middle bottom canvas', - class: 'p5', - module: 'Data', - submodule: 'String Functions', - overloads: [ - { - line: 132, - params: [ - { - name: 'num', - description: '

the Number to format

\n', - type: 'Number|String' - }, - { - name: 'left', - description: - '

number of digits to the left of the\n decimal point

\n', - type: 'Integer|String', - optional: true - }, - { - name: 'right', - description: - '

number of digits to the right of the\n decimal point

\n', - type: 'Integer|String', - optional: true - } - ], - return: { - description: 'formatted String', - type: 'String' - } - }, - { - line: 180, - params: [ - { - name: 'nums', - description: '

the Numbers to format

\n', - type: 'Array' - }, - { - name: 'left', - description: '', - type: 'Integer|String', - optional: true - }, - { - name: 'right', - description: '', - type: 'Integer|String', - optional: true - } - ], - return: { - description: 'formatted Strings', - type: 'String[]' - } - } - ] - }, - { - file: 'src/utilities/string_functions.js', - line: 243, - description: - '

Utility function for formatting numbers into strings and placing\nappropriate commas to mark units of 1000. There are two versions: one\nfor formatting ints, and one for formatting an array of ints. The value\nfor the right parameter should always be a positive integer.

\n', - itemtype: 'method', - name: 'nfc', - return: { - description: 'formatted String', - type: 'String' - }, - example: [ - '\n
\n\nfunction setup() {\n background(200);\n var num = 11253106.115;\n var numArr = [1, 1, 2];\n\n noStroke();\n fill(0);\n textSize(12);\n\n // Draw formatted numbers\n text(nfc(num, 4), 10, 30);\n text(nfc(numArr, 2), 10, 80);\n\n // Draw dividing line\n stroke(120);\n line(0, 50, width, 50);\n}\n\n
' - ], - alt: - '"11,253,106.115" top middle and "1.00,1.00,2.00" displayed bottom mid', - class: 'p5', - module: 'Data', - submodule: 'String Functions', - overloads: [ - { - line: 243, - params: [ - { - name: 'num', - description: '

the Number to format

\n', - type: 'Number|String' - }, - { - name: 'right', - description: - '

number of digits to the right of the\n decimal point

\n', - type: 'Integer|String', - optional: true - } - ], - return: { - description: 'formatted String', - type: 'String' - } - }, - { - line: 281, - params: [ - { - name: 'nums', - description: '

the Numbers to format

\n', - type: 'Array' - }, - { - name: 'right', - description: '', - type: 'Integer|String', - optional: true - } - ], - return: { - description: 'formatted Strings', - type: 'String[]' - } - } - ] - }, - { - file: 'src/utilities/string_functions.js', - line: 319, - description: - '

Utility function for formatting numbers into strings. Similar to nf() but\nputs a "+" in front of positive numbers and a "-" in front of negative\nnumbers. There are two versions: one for formatting floats, and one for\nformatting ints. The values for left, and right parameters\nshould always be positive integers.

\n', - itemtype: 'method', - name: 'nfp', - return: { - description: 'formatted String', - type: 'String' - }, - example: [ - '\n
\n\nfunction setup() {\n background(200);\n var num1 = 11253106.115;\n var num2 = -11253106.115;\n\n noStroke();\n fill(0);\n textSize(12);\n\n // Draw formatted numbers\n text(nfp(num1, 4, 2), 10, 30);\n text(nfp(num2, 4, 2), 10, 80);\n\n // Draw dividing line\n stroke(120);\n line(0, 50, width, 50);\n}\n\n
' - ], - alt: '"+11253106.11" top middle and "-11253106.11" displayed bottom middle', - class: 'p5', - module: 'Data', - submodule: 'String Functions', - overloads: [ - { - line: 319, - params: [ - { - name: 'num', - description: '

the Number to format

\n', - type: 'Number' - }, - { - name: 'left', - description: - '

number of digits to the left of the decimal\n point

\n', - type: 'Integer', - optional: true - }, - { - name: 'right', - description: - '

number of digits to the right of the\n decimal point

\n', - type: 'Integer', - optional: true - } - ], - return: { - description: 'formatted String', - type: 'String' - } - }, - { - line: 360, - params: [ - { - name: 'nums', - description: '

the Numbers to format

\n', - type: 'Number[]' - }, - { - name: 'left', - description: '', - type: 'Integer', - optional: true - }, - { - name: 'right', - description: '', - type: 'Integer', - optional: true - } - ], - return: { - description: 'formatted Strings', - type: 'String[]' - } - } - ] - }, - { - file: 'src/utilities/string_functions.js', - line: 381, - description: - '

Utility function for formatting numbers into strings. Similar to nf() but\nputs an additional "_" (space) in front of positive numbers just in case to align it with negative\nnumbers which includes "-" (minus) sign.\nThe main usecase of nfs() can be seen when one wants to align the digits (place values) of a non-negative\nnumber with some negative number (See the example to get a clear picture).\nThere are two versions: one for formatting float, and one for formatting int.\nThe values for the digits, left, and right parameters should always be positive integers.\n(IMP): The result on the canvas basically the expected alignment can vary based on the typeface you are using.\n(NOTE): Be cautious when using left and right parameters as it prepends numbers of 0's if the parameter\nif greater than the current length of the number.\nFor example if number is 123.2 and left parameter passed is 4 which is greater than length of 123\n(integer part) i.e 3 than result will be 0123.2. Same case for right parameter i.e. if right is 3 than\nthe result will be 123.200.

\n', - itemtype: 'method', - name: 'nfs', - return: { - description: 'formatted String', - type: 'String' - }, - example: [ - "\n
\n\nvar myFont;\nfunction preload() {\n myFont = loadFont('assets/fonts/inconsolata.ttf');\n}\nfunction setup() {\n background(200);\n var num1 = 321;\n var num2 = -1321;\n\n noStroke();\n fill(0);\n textFont(myFont);\n textSize(22);\n\n // nfs() aligns num1 (positive number) with num2 (negative number) by\n // adding a blank space in front of the num1 (positive number)\n // [left = 4] in num1 add one 0 in front, to align the digits with num2\n // [right = 2] in num1 and num2 adds two 0's after both numbers\n // To see the differences check the example of nf() too.\n text(nfs(num1, 4, 2), 10, 30);\n text(nfs(num2, 4, 2), 10, 80);\n // Draw dividing line\n stroke(120);\n line(0, 50, width, 50);\n}\n\n
" - ], - alt: '"0321.00" top middle and "-1321.00" displayed bottom middle', - class: 'p5', - module: 'Data', - submodule: 'String Functions', - overloads: [ - { - line: 381, - params: [ - { - name: 'num', - description: '

the Number to format

\n', - type: 'Number' - }, - { - name: 'left', - description: - '

number of digits to the left of the decimal\n point

\n', - type: 'Integer', - optional: true - }, - { - name: 'right', - description: - '

number of digits to the right of the\n decimal point

\n', - type: 'Integer', - optional: true - } - ], - return: { - description: 'formatted String', - type: 'String' - } - }, - { - line: 438, - params: [ - { - name: 'nums', - description: '

the Numbers to format

\n', - type: 'Array' - }, - { - name: 'left', - description: '', - type: 'Integer', - optional: true - }, - { - name: 'right', - description: '', - type: 'Integer', - optional: true - } - ], - return: { - description: 'formatted Strings', - type: 'String[]' - } - } - ] - }, - { - file: 'src/utilities/string_functions.js', - line: 459, - description: - '

The split() function maps to String.split(), it breaks a String into\npieces using a character or string as the delimiter. The delim parameter\nspecifies the character or characters that mark the boundaries between\neach piece. A String[] array is returned that contains each of the pieces.

\n

The splitTokens() function works in a similar fashion, except that it\nsplits using a range of characters instead of a specific character or\nsequence.

\n', - itemtype: 'method', - name: 'split', - params: [ - { - name: 'value', - description: '

the String to be split

\n', - type: 'String' - }, - { - name: 'delim', - description: '

the String used to separate the data

\n', - type: 'String' - } - ], - return: { - description: 'Array of Strings', - type: 'String[]' - }, - example: [ - "\n
\n\nvar names = 'Pat,Xio,Alex';\nvar splitString = split(names, ',');\ntext(splitString[0], 5, 30);\ntext(splitString[1], 5, 50);\ntext(splitString[2], 5, 70);\n\n
" - ], - alt: '"pat" top left, "Xio" mid left and "Alex" displayed bottom left', - class: 'p5', - module: 'Data', - submodule: 'String Functions' - }, - { - file: 'src/utilities/string_functions.js', - line: 493, - description: - '

The splitTokens() function splits a String at one or many character\ndelimiters or "tokens." The delim parameter specifies the character or\ncharacters to be used as a boundary.\n

\nIf no delim characters are specified, any whitespace character is used to\nsplit. Whitespace characters include tab (\\t), line feed (\\n), carriage\nreturn (\\r), form feed (\\f), and space.

\n', - itemtype: 'method', - name: 'splitTokens', - params: [ - { - name: 'value', - description: '

the String to be split

\n', - type: 'String' - }, - { - name: 'delim', - description: - '

list of individual Strings that will be used as\n separators

\n', - type: 'String', - optional: true - } - ], - return: { - description: 'Array of Strings', - type: 'String[]' - }, - example: [ - '\n
\n\nfunction setup() {\n var myStr = \'Mango, Banana, Lime\';\n var myStrArr = splitTokens(myStr, \',\');\n\n print(myStrArr); // prints : ["Mango"," Banana"," Lime"]\n}\n\n
' - ], - class: 'p5', - module: 'Data', - submodule: 'String Functions' - }, - { - file: 'src/utilities/string_functions.js', - line: 548, - description: - '

Removes whitespace characters from the beginning and end of a String. In\naddition to standard whitespace characters such as space, carriage return,\nand tab, this function also removes the Unicode "nbsp" character.

\n', - itemtype: 'method', - name: 'trim', - return: { - description: 'a trimmed String', - type: 'String' - }, - example: [ - "\n
\n\nvar string = trim(' No new lines\\n ');\ntext(string + ' here', 2, 50);\n\n
" - ], - alt: '"No new lines here" displayed center canvas', - class: 'p5', - module: 'Data', - submodule: 'String Functions', - overloads: [ - { - line: 548, - params: [ - { - name: 'str', - description: '

a String to be trimmed

\n', - type: 'String' - } - ], - return: { - description: 'a trimmed String', - type: 'String' - } - }, - { - line: 568, - params: [ - { - name: 'strs', - description: '

an Array of Strings to be trimmed

\n', - type: 'Array' - } - ], - return: { - description: 'an Array of trimmed Strings', - type: 'String[]' - } - } - ] - }, - { - file: 'src/utilities/time_date.js', - line: 12, - description: - '

p5.js communicates with the clock on your computer. The day() function\nreturns the current day as a value from 1 - 31.

\n', - itemtype: 'method', - name: 'day', - return: { - description: 'the current day', - type: 'Integer' - }, - example: [ - "\n
\n\nvar d = day();\ntext('Current day: \\n' + d, 5, 50);\n\n
" - ], - alt: 'Current day is displayed', - class: 'p5', - module: 'IO', - submodule: 'Time & Date' - }, - { - file: 'src/utilities/time_date.js', - line: 34, - description: - '

p5.js communicates with the clock on your computer. The hour() function\nreturns the current hour as a value from 0 - 23.

\n', - itemtype: 'method', - name: 'hour', - return: { - description: 'the current hour', - type: 'Integer' - }, - example: [ - "\n
\n\nvar h = hour();\ntext('Current hour:\\n' + h, 5, 50);\n\n
" - ], - alt: 'Current hour is displayed', - class: 'p5', - module: 'IO', - submodule: 'Time & Date' - }, - { - file: 'src/utilities/time_date.js', - line: 56, - description: - '

p5.js communicates with the clock on your computer. The minute() function\nreturns the current minute as a value from 0 - 59.

\n', - itemtype: 'method', - name: 'minute', - return: { - description: 'the current minute', - type: 'Integer' - }, - example: [ - "\n
\n\nvar m = minute();\ntext('Current minute: \\n' + m, 5, 50);\n\n
" - ], - alt: 'Current minute is displayed', - class: 'p5', - module: 'IO', - submodule: 'Time & Date' - }, - { - file: 'src/utilities/time_date.js', - line: 78, - description: - '

Returns the number of milliseconds (thousandths of a second) since\nstarting the program. This information is often used for timing events and\nanimation sequences.

\n', - itemtype: 'method', - name: 'millis', - return: { - description: 'the number of milliseconds since starting the program', - type: 'Number' - }, - example: [ - "\n
\n\nvar millisecond = millis();\ntext('Milliseconds \\nrunning: \\n' + millisecond, 5, 40);\n\n
" - ], - alt: 'number of milliseconds since program has started displayed', - class: 'p5', - module: 'IO', - submodule: 'Time & Date' - }, - { - file: 'src/utilities/time_date.js', - line: 101, - description: - '

p5.js communicates with the clock on your computer. The month() function\nreturns the current month as a value from 1 - 12.

\n', - itemtype: 'method', - name: 'month', - return: { - description: 'the current month', - type: 'Integer' - }, - example: [ - "\n
\n\nvar m = month();\ntext('Current month: \\n' + m, 5, 50);\n\n
" - ], - alt: 'Current month is displayed', - class: 'p5', - module: 'IO', - submodule: 'Time & Date' - }, - { - file: 'src/utilities/time_date.js', - line: 123, - description: - '

p5.js communicates with the clock on your computer. The second() function\nreturns the current second as a value from 0 - 59.

\n', - itemtype: 'method', - name: 'second', - return: { - description: 'the current second', - type: 'Integer' - }, - example: [ - "\n
\n\nvar s = second();\ntext('Current second: \\n' + s, 5, 50);\n\n
" - ], - alt: 'Current second is displayed', - class: 'p5', - module: 'IO', - submodule: 'Time & Date' - }, - { - file: 'src/utilities/time_date.js', - line: 145, - description: - '

p5.js communicates with the clock on your computer. The year() function\nreturns the current year as an integer (2014, 2015, 2016, etc).

\n', - itemtype: 'method', - name: 'year', - return: { - description: 'the current year', - type: 'Integer' - }, - example: [ - "\n
\n\nvar y = year();\ntext('Current year: \\n' + y, 5, 50);\n\n
" - ], - alt: 'Current year is displayed', - class: 'p5', - module: 'IO', - submodule: 'Time & Date' - }, - { - file: 'src/webgl/3d_primitives.js', - line: 14, - description: '

Draw a plane with given a width and height

\n', - itemtype: 'method', - name: 'plane', - params: [ - { - name: 'width', - description: '

width of the plane

\n', - type: 'Number', - optional: true - }, - { - name: 'height', - description: '

height of the plane

\n', - type: 'Number', - optional: true - }, - { - name: 'detailX', - description: - '

Optional number of triangle\n subdivisions in x-dimension

\n', - type: 'Integer', - optional: true - }, - { - name: 'detailY', - description: - '

Optional number of triangle\n subdivisions in y-dimension

\n', - type: 'Integer', - optional: true - } - ], - chainable: 1, - example: [ - '\n
\n\n// draw a plane\n// with width 50 and height 50\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n plane(50, 50);\n}\n\n
' - ], - alt: - 'Nothing displayed on canvas\nRotating interior view of a box with sides that change color.\n3d red and green gradient.\nRotating interior view of a cylinder with sides that change color.\nRotating view of a cylinder with sides that change color.\n3d red and green gradient.\nrotating view of a multi-colored cylinder with concave sides.', - class: 'p5', - module: 'Shape', - submodule: '3D Primitives' - }, - { - file: 'src/webgl/3d_primitives.js', - line: 98, - description: '

Draw a box with given width, height and depth

\n', - itemtype: 'method', - name: 'box', - params: [ - { - name: 'width', - description: '

width of the box

\n', - type: 'Number', - optional: true - }, - { - name: 'Height', - description: '

height of the box

\n', - type: 'Number', - optional: true - }, - { - name: 'depth', - description: '

depth of the box

\n', - type: 'Number', - optional: true - }, - { - name: 'detailX', - description: - '

Optional number of triangle\n subdivisions in x-dimension

\n', - type: 'Integer', - optional: true - }, - { - name: 'detailY', - description: - '

Optional number of triangle\n subdivisions in y-dimension

\n', - type: 'Integer', - optional: true - } - ], - chainable: 1, - example: [ - '\n
\n\n// draw a spinning box\n// with width, height and depth of 50\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n rotateX(frameCount * 0.01);\n rotateY(frameCount * 0.01);\n box(50);\n}\n\n
' - ], - class: 'p5', - module: 'Shape', - submodule: '3D Primitives' - }, - { - file: 'src/webgl/3d_primitives.js', - line: 216, - description: '

Draw a sphere with given radius

\n', - itemtype: 'method', - name: 'sphere', - params: [ - { - name: 'radius', - description: '

radius of circle

\n', - type: 'Number', - optional: true - }, - { - name: 'detailX', - description: - '

number of segments,\n the more segments the smoother geometry\n default is 24

\n', - type: 'Integer', - optional: true - }, - { - name: 'detailY', - description: - '

number of segments,\n the more segments the smoother geometry\n default is 16

\n', - type: 'Integer', - optional: true - } - ], - chainable: 1, - example: [ - '\n
\n\n// draw a sphere with radius 40\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n sphere(40);\n}\n\n
' - ], - class: 'p5', - module: 'Shape', - submodule: '3D Primitives' - }, - { - file: 'src/webgl/3d_primitives.js', - line: 378, - description: '

Draw a cylinder with given radius and height

\n', - itemtype: 'method', - name: 'cylinder', - params: [ - { - name: 'radius', - description: '

radius of the surface

\n', - type: 'Number', - optional: true - }, - { - name: 'height', - description: '

height of the cylinder

\n', - type: 'Number', - optional: true - }, - { - name: 'detailX', - description: - '

number of segments,\n the more segments the smoother geometry\n default is 24

\n', - type: 'Integer', - optional: true - }, - { - name: 'detailY', - description: - '

number of segments in y-dimension,\n the more segments the smoother geometry\n default is 1

\n', - type: 'Integer', - optional: true - }, - { - name: 'bottomCap', - description: '

whether to draw the bottom of the cylinder

\n', - type: 'Boolean', - optional: true - }, - { - name: 'topCap', - description: '

whether to draw the top of the cylinder

\n', - type: 'Boolean', - optional: true - } - ], - chainable: 1, - example: [ - '\n
\n\n// draw a spinning cylinder\n// with radius 20 and height 50\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n rotateX(frameCount * 0.01);\n rotateZ(frameCount * 0.01);\n cylinder(20, 50);\n}\n\n
' - ], - class: 'p5', - module: 'Shape', - submodule: '3D Primitives' - }, - { - file: 'src/webgl/3d_primitives.js', - line: 470, - description: '

Draw a cone with given radius and height

\n', - itemtype: 'method', - name: 'cone', - params: [ - { - name: 'radius', - description: '

radius of the bottom surface

\n', - type: 'Number', - optional: true - }, - { - name: 'height', - description: '

height of the cone

\n', - type: 'Number', - optional: true - }, - { - name: 'detailX', - description: - '

number of segments,\n the more segments the smoother geometry\n default is 24

\n', - type: 'Integer', - optional: true - }, - { - name: 'detailY', - description: - '

number of segments,\n the more segments the smoother geometry\n default is 1

\n', - type: 'Integer', - optional: true - }, - { - name: 'cap', - description: '

whether to draw the base of the cone

\n', - type: 'Boolean', - optional: true - } - ], - chainable: 1, - example: [ - '\n
\n\n// draw a spinning cone\n// with radius 40 and height 70\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n rotateX(frameCount * 0.01);\n rotateZ(frameCount * 0.01);\n cone(40, 70);\n}\n\n
' - ], - class: 'p5', - module: 'Shape', - submodule: '3D Primitives' - }, - { - file: 'src/webgl/3d_primitives.js', - line: 540, - description: '

Draw an ellipsoid with given radius

\n', - itemtype: 'method', - name: 'ellipsoid', - params: [ - { - name: 'radiusx', - description: '

x-radius of ellipsoid

\n', - type: 'Number', - optional: true - }, - { - name: 'radiusy', - description: '

y-radius of ellipsoid

\n', - type: 'Number', - optional: true - }, - { - name: 'radiusz', - description: '

z-radius of ellipsoid

\n', - type: 'Number', - optional: true - }, - { - name: 'detailX', - description: - '

number of segments,\n the more segments the smoother geometry\n default is 24. Avoid detail number above\n 150, it may crash the browser.

\n', - type: 'Integer', - optional: true - }, - { - name: 'detailY', - description: - '

number of segments,\n the more segments the smoother geometry\n default is 16. Avoid detail number above\n 150, it may crash the browser.

\n', - type: 'Integer', - optional: true - } - ], - chainable: 1, - example: [ - '\n
\n\n// draw an ellipsoid\n// with radius 30, 40 and 40.\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n ellipsoid(30, 40, 40);\n}\n\n
' - ], - class: 'p5', - module: 'Shape', - submodule: '3D Primitives' - }, - { - file: 'src/webgl/3d_primitives.js', - line: 631, - description: '

Draw a torus with given radius and tube radius

\n', - itemtype: 'method', - name: 'torus', - params: [ - { - name: 'radius', - description: '

radius of the whole ring

\n', - type: 'Number', - optional: true - }, - { - name: 'tubeRadius', - description: '

radius of the tube

\n', - type: 'Number', - optional: true - }, - { - name: 'detailX', - description: - '

number of segments in x-dimension,\n the more segments the smoother geometry\n default is 24

\n', - type: 'Integer', - optional: true - }, - { - name: 'detailY', - description: - '

number of segments in y-dimension,\n the more segments the smoother geometry\n default is 16

\n', - type: 'Integer', - optional: true - } - ], - chainable: 1, - example: [ - '\n
\n\n// draw a spinning torus\n// with ring radius 30 and tube radius 15\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n rotateX(frameCount * 0.01);\n rotateY(frameCount * 0.01);\n torus(30, 15);\n}\n\n
' - ], - class: 'p5', - module: 'Shape', - submodule: '3D Primitives' - }, - { - file: 'src/webgl/interaction.js', - line: 13, - description: - '

Allows movement around a 3D sketch using a mouse or trackpad. Left-clicking\nand dragging will rotate the camera position about the center of the sketch,\nright-clicking and dragging will pan the camera position without rotation,\nand using the mouse wheel (scrolling) will move the camera closer or further\nfrom the center of the sketch. This function can be called with parameters\ndictating sensitivity to mouse movement along the X and Y axes. Calling\nthis function without parameters is equivalent to calling orbitControl(1,1).\nTo reverse direction of movement in either axis, enter a negative number\nfor sensitivity.

\n', - itemtype: 'method', - name: 'orbitControl', - params: [ - { - name: 'sensitivityX', - description: '

sensitivity to mouse movement along X axis

\n', - type: 'Number', - optional: true - }, - { - name: 'sensitivityY', - description: '

sensitivity to mouse movement along Y axis

\n', - type: 'Number', - optional: true - } - ], - chainable: 1, - example: [ - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n normalMaterial();\n}\nfunction draw() {\n background(200);\n orbitControl();\n rotateY(0.5);\n box(30, 50);\n}\n\n
' - ], - alt: 'Camera orbits around a box when mouse is hold-clicked & then moved.', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Interaction' - }, - { - file: 'src/webgl/interaction.js', - line: 146, - description: - '

debugMode() helps visualize 3D space by adding a grid to indicate where the\nโ€˜groundโ€™ is in a sketch and an axes icon which indicates the +X, +Y, and +Z\ndirections. This function can be called without parameters to create a\ndefault grid and axes icon, or it can be called according to the examples\nabove to customize the size and position of the grid and/or axes icon. The\ngrid is drawn using the most recently set stroke color and weight. To\nspecify these parameters, add a call to stroke() and strokeWeight()\njust before the end of the draw() loop.

\n

By default, the grid will run through the origin (0,0,0) of the sketch\nalong the XZ plane\nand the axes icon will be offset from the origin. Both the grid and axes\nicon will be sized according to the current canvas size. Note that because the\ngrid runs parallel to the default camera view, it is often helpful to use\ndebugMode along with orbitControl to allow full view of the grid.

\n', - itemtype: 'method', - name: 'debugMode', - example: [ - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n normalMaterial();\n debugMode();\n}\n\nfunction draw() {\n background(200);\n orbitControl();\n box(15, 30);\n // Press the spacebar to turn debugMode off!\n if (keyIsDown(32)) {\n noDebugMode();\n }\n}\n\n
', - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n normalMaterial();\n debugMode(GRID);\n}\n\nfunction draw() {\n background(200);\n orbitControl();\n box(15, 30);\n}\n\n
', - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n normalMaterial();\n debugMode(AXES);\n}\n\nfunction draw() {\n background(200);\n orbitControl();\n box(15, 30);\n}\n\n
', - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n normalMaterial();\n debugMode(GRID, 100, 10, 0, 0, 0);\n}\n\nfunction draw() {\n background(200);\n orbitControl();\n box(15, 30);\n}\n\n
', - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n normalMaterial();\n debugMode(100, 10, 0, 0, 0, 20, 0, -40, 0);\n}\n\nfunction draw() {\n noStroke();\n background(200);\n orbitControl();\n box(15, 30);\n // set the stroke color and weight for the grid!\n stroke(255, 0, 150);\n strokeWeight(0.8);\n}\n\n
' - ], - alt: - 'a 3D box is centered on a grid in a 3D sketch. an icon\nindicates the direction of each axis: a red line points +X,\na green line +Y, and a blue line +Z.', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Interaction', - overloads: [ - { - line: 146, - params: [] - }, - { - line: 279, - params: [ - { - name: 'mode', - description: '

either GRID or AXES

\n', - type: 'Constant' - } - ] - }, - { - line: 284, - params: [ - { - name: 'mode', - description: '', - type: 'Constant' - }, - { - name: 'gridSize', - description: '

size of one side of the grid

\n', - type: 'Number', - optional: true - }, - { - name: 'gridDivisions', - description: '

number of divisions in the grid

\n', - type: 'Number', - optional: true - }, - { - name: 'xOff', - description: '

X axis offset from origin (0,0,0)

\n', - type: 'Number', - optional: true - }, - { - name: 'yOff', - description: '

Y axis offset from origin (0,0,0)

\n', - type: 'Number', - optional: true - }, - { - name: 'zOff', - description: '

Z axis offset from origin (0,0,0)

\n', - type: 'Number', - optional: true - } - ] - }, - { - line: 294, - params: [ - { - name: 'mode', - description: '', - type: 'Constant' - }, - { - name: 'axesSize', - description: '

size of axes icon

\n', - type: 'Number', - optional: true - }, - { - name: 'xOff', - description: '', - type: 'Number', - optional: true - }, - { - name: 'yOff', - description: '', - type: 'Number', - optional: true - }, - { - name: 'zOff', - description: '', - type: 'Number', - optional: true - } - ] - }, - { - line: 303, - params: [ - { - name: 'gridSize', - description: '', - type: 'Number', - optional: true - }, - { - name: 'gridDivisions', - description: '', - type: 'Number', - optional: true - }, - { - name: 'gridXOff', - description: '', - type: 'Number', - optional: true - }, - { - name: 'gridYOff', - description: '', - type: 'Number', - optional: true - }, - { - name: 'gridZOff', - description: '', - type: 'Number', - optional: true - }, - { - name: 'axesSize', - description: '', - type: 'Number', - optional: true - }, - { - name: 'axesXOff', - description: '', - type: 'Number', - optional: true - }, - { - name: 'axesYOff', - description: '', - type: 'Number', - optional: true - }, - { - name: 'axesZOff', - description: '', - type: 'Number', - optional: true - } - ] - } - ] - }, - { - file: 'src/webgl/interaction.js', - line: 380, - description: '

Turns off debugMode() in a 3D sketch.

\n', - itemtype: 'method', - name: 'noDebugMode', - example: [ - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n normalMaterial();\n debugMode();\n}\n\nfunction draw() {\n background(200);\n orbitControl();\n box(15, 30);\n // Press the spacebar to turn debugMode off!\n if (keyIsDown(32)) {\n noDebugMode();\n }\n}\n\n
' - ], - alt: - 'a 3D box is centered on a grid in a 3D sketch. an icon\nindicates the direction of each axis: a red line points +X,\na green line +Y, and a blue line +Z. the grid and icon disappear when the\nspacebar is pressed.', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Interaction' - }, - { - file: 'src/webgl/light.js', - line: 12, - description: '

Creates an ambient light with a color

\n', - itemtype: 'method', - name: 'ambientLight', - chainable: 1, - example: [ - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(0);\n ambientLight(150);\n ambientMaterial(250);\n noStroke();\n sphere(40);\n}\n\n
' - ], - alt: 'evenly distributed light across a sphere', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Lights', - overloads: [ - { - line: 12, - params: [ - { - name: 'v1', - description: - '

red or hue value relative to\n the current color range

\n', - type: 'Number' - }, - { - name: 'v2', - description: - '

green or saturation value\n relative to the current color range

\n', - type: 'Number' - }, - { - name: 'v3', - description: - '

blue or brightness value\n relative to the current color range

\n', - type: 'Number' - }, - { - name: 'alpha', - description: '

the alpha value

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 46, - params: [ - { - name: 'value', - description: '

a color string

\n', - type: 'String' - } - ], - chainable: 1 - }, - { - line: 52, - params: [ - { - name: 'gray', - description: '

a gray value

\n', - type: 'Number' - }, - { - name: 'alpha', - description: '', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 59, - params: [ - { - name: 'values', - description: - '

an array containing the red,green,blue &\n and alpha components of the color

\n', - type: 'Number[]' - } - ], - chainable: 1 - }, - { - line: 66, - params: [ - { - name: 'color', - description: '

the ambient light color

\n', - type: 'p5.Color' - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/webgl/light.js', - line: 87, - description: - '

Creates a directional light with a color and a direction

\n', - itemtype: 'method', - name: 'directionalLight', - chainable: 1, - example: [ - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(0);\n //move your mouse to change light direction\n let dirX = (mouseX / width - 0.5) * 2;\n let dirY = (mouseY / height - 0.5) * 2;\n directionalLight(250, 250, 250, -dirX, -dirY, -1);\n noStroke();\n sphere(40);\n}\n\n
' - ], - alt: 'light source on canvas changeable with mouse position', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Lights', - overloads: [ - { - line: 87, - params: [ - { - name: 'v1', - description: - '

red or hue value (depending on the current\ncolor mode),

\n', - type: 'Number' - }, - { - name: 'v2', - description: '

green or saturation value

\n', - type: 'Number' - }, - { - name: 'v3', - description: '

blue or brightness value

\n', - type: 'Number' - }, - { - name: 'position', - description: '

the direction of the light

\n', - type: 'p5.Vector' - } - ], - chainable: 1 - }, - { - line: 119, - params: [ - { - name: 'color', - description: - '

color Array, CSS color string,\n or p5.Color value

\n', - type: 'Number[]|String|p5.Color' - }, - { - name: 'x', - description: '

x axis direction

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y axis direction

\n', - type: 'Number' - }, - { - name: 'z', - description: '

z axis direction

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 129, - params: [ - { - name: 'color', - description: '', - type: 'Number[]|String|p5.Color' - }, - { - name: 'position', - description: '', - type: 'p5.Vector' - } - ], - chainable: 1 - }, - { - line: 136, - params: [ - { - name: 'v1', - description: '', - type: 'Number' - }, - { - name: 'v2', - description: '', - type: 'Number' - }, - { - name: 'v3', - description: '', - type: 'Number' - }, - { - name: 'x', - description: '', - type: 'Number' - }, - { - name: 'y', - description: '', - type: 'Number' - }, - { - name: 'z', - description: '', - type: 'Number' - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/webgl/light.js', - line: 185, - description: - '

Creates a point light with a color and a light position

\n', - itemtype: 'method', - name: 'pointLight', - chainable: 1, - example: [ - "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(0);\n //move your mouse to change light position\n let locX = mouseX - width / 2;\n let locY = mouseY - height / 2;\n // to set the light position,\n // think of the world's coordinate as:\n // -width/2,-height/2 -------- width/2,-height/2\n // | |\n // | 0,0 |\n // | |\n // -width/2,height/2--------width/2,height/2\n pointLight(250, 250, 250, locX, locY, 50);\n noStroke();\n sphere(40);\n}\n\n
" - ], - alt: 'spot light on canvas changes position with mouse', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Lights', - overloads: [ - { - line: 185, - params: [ - { - name: 'v1', - description: - '

red or hue value (depending on the current\ncolor mode),

\n', - type: 'Number' - }, - { - name: 'v2', - description: '

green or saturation value

\n', - type: 'Number' - }, - { - name: 'v3', - description: '

blue or brightness value

\n', - type: 'Number' - }, - { - name: 'x', - description: '

x axis position

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y axis position

\n', - type: 'Number' - }, - { - name: 'z', - description: '

z axis position

\n', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 226, - params: [ - { - name: 'v1', - description: '', - type: 'Number' - }, - { - name: 'v2', - description: '', - type: 'Number' - }, - { - name: 'v3', - description: '', - type: 'Number' - }, - { - name: 'position', - description: '

the position of the light

\n', - type: 'p5.Vector' - } - ], - chainable: 1 - }, - { - line: 235, - params: [ - { - name: 'color', - description: - '

color Array, CSS color string,\nor p5.Color value

\n', - type: 'Number[]|String|p5.Color' - }, - { - name: 'x', - description: '', - type: 'Number' - }, - { - name: 'y', - description: '', - type: 'Number' - }, - { - name: 'z', - description: '', - type: 'Number' - } - ], - chainable: 1 - }, - { - line: 245, - params: [ - { - name: 'color', - description: '', - type: 'Number[]|String|p5.Color' - }, - { - name: 'position', - description: '', - type: 'p5.Vector' - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/webgl/light.js', - line: 287, - description: - '

Sets the default ambient and directional light. The defaults are ambientLight(128, 128, 128) and directionalLight(128, 128, 128, 0, 0, -1). Lights need to be included in the draw() to remain persistent in a looping program. Placing them in the setup() of a looping program will cause them to only have an effect the first time through the loop.

\n', - itemtype: 'method', - name: 'lights', - chainable: 1, - example: [ - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(0);\n lights();\n rotateX(millis() / 1000);\n rotateY(millis() / 1000);\n rotateZ(millis() / 1000);\n box();\n}\n\n
' - ], - alt: 'the light is partially ambient and partially directional', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Lights' - }, - { - file: 'src/webgl/light.js', - line: 318, - description: - '

Sets the falloff rates for point lights. It affects only the elements which are created after it in the code.\nThe default value is lightFalloff(1.0, 0.0, 0.0), and the parameters are used to calculate the falloff with the following equation:

\n

d = distance from light position to vertex position

\n

falloff = 1 / (CONSTANT + d * LINEAR + ( d * d ) * QUADRATIC)

\n', - itemtype: 'method', - name: 'lightFalloff', - params: [ - { - name: 'constant', - description: '

constant value for determining falloff

\n', - type: 'Number' - }, - { - name: 'linear', - description: '

linear value for determining falloff

\n', - type: 'Number' - }, - { - name: 'quadratic', - description: '

quadratic value for determining falloff

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n noStroke();\n}\nfunction draw() {\n background(0);\n let locX = mouseX - width / 2;\n let locY = mouseY - height / 2;\n translate(-25, 0, 0);\n lightFalloff(1, 0, 0);\n pointLight(250, 250, 250, locX, locY, 50);\n sphere(20);\n translate(50, 0, 0);\n lightFalloff(0.9, 0.01, 0);\n pointLight(250, 250, 250, locX, locY, 50);\n sphere(20);\n}\n\n
' - ], - alt: - 'Two spheres with different falloff values show different intensity of light', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Lights' - }, - { - file: 'src/webgl/loading.js', - line: 14, - description: - '

Load a 3d model from an OBJ or STL file.\n

\nOne of the limitations of the OBJ and STL format is that it doesn't have a built-in\nsense of scale. This means that models exported from different programs might\nbe very different sizes. If your model isn't displaying, try calling\nloadModel() with the normalized parameter set to true. This will resize the\nmodel to a scale appropriate for p5. You can also make additional changes to\nthe final size of your model with the scale() function.

\n

Also, the support for colored STL files is not present. STL files with color will be\nrendered without color properties.

\n', - itemtype: 'method', - name: 'loadModel', - return: { - description: 'the p5.Geometry object', - type: 'p5.Geometry' - }, - example: [ - "\n
\n\n//draw a spinning octahedron\nlet octahedron;\n\nfunction preload() {\n octahedron = loadModel('assets/octahedron.obj');\n}\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n rotateX(frameCount * 0.01);\n rotateY(frameCount * 0.01);\n model(octahedron);\n}\n\n
", - "\n
\n\n//draw a spinning teapot\nlet teapot;\n\nfunction preload() {\n // Load model with normalise parameter set to true\n teapot = loadModel('assets/teapot.obj', true);\n}\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n scale(0.4); // Scaled to make model fit into canvas\n rotateX(frameCount * 0.01);\n rotateY(frameCount * 0.01);\n normalMaterial(); // For effect\n model(teapot);\n}\n\n
" - ], - alt: 'Vertically rotating 3-d teapot with red, green and blue gradient.', - class: 'p5', - module: 'Shape', - submodule: '3D Models', - overloads: [ - { - line: 14, - params: [ - { - name: 'path', - description: '

Path of the model to be loaded

\n', - type: 'String' - }, - { - name: 'normalize', - description: - '

If true, scale the model to a\n standardized size when loading

\n', - type: 'Boolean' - }, - { - name: 'successCallback', - description: - '

Function to be called\n once the model is loaded. Will be passed\n the 3D model object.

\n', - type: 'function(p5.Geometry)', - optional: true - }, - { - name: 'failureCallback', - description: - '

called with event error if\n the model fails to load.

\n', - type: 'Function(Event)', - optional: true - } - ], - return: { - description: 'the p5.Geometry object', - type: 'p5.Geometry' - } - }, - { - line: 93, - params: [ - { - name: 'path', - description: '', - type: 'String' - }, - { - name: 'successCallback', - description: '', - type: 'function(p5.Geometry)', - optional: true - }, - { - name: 'failureCallback', - description: '', - type: 'Function(Event)', - optional: true - } - ], - return: { - description: 'the p5.Geometry object', - type: 'p5.Geometry' - } - } - ] - }, - { - file: 'src/webgl/loading.js', - line: 169, - description: - '

Parse OBJ lines into model. For reference, this is what a simple model of a\nsquare might look like:

\n

v -0.5 -0.5 0.5\nv -0.5 -0.5 -0.5\nv -0.5 0.5 -0.5\nv -0.5 0.5 0.5

\n

f 4 3 2 1

\n', - class: 'p5', - module: 'Shape', - submodule: '3D Models' - }, - { - file: 'src/webgl/loading.js', - line: 278, - description: - '

STL files can be of two types, ASCII and Binary,

\n

We need to convert the arrayBuffer to an array of strings,\nto parse it as an ASCII file.

\n', - class: 'p5', - module: 'Shape', - submodule: '3D Models' - }, - { - file: 'src/webgl/loading.js', - line: 305, - description: - '

This function checks if the file is in ASCII format or in Binary format

\n

It is done by searching keyword solid at the start of the file.

\n

An ASCII STL data must begin with solid as the first six bytes.\nHowever, ASCII STLs lacking the SPACE after the d are known to be\nplentiful. So, check the first 5 bytes for solid.

\n

Several encodings, such as UTF-8, precede the text with up to 5 bytes:\nhttps://en.wikipedia.org/wiki/Byte_order_mark#Byte_order_marks_by_encoding\nSearch for solid to start anywhere after those prefixes.

\n', - class: 'p5', - module: 'Shape', - submodule: '3D Models' - }, - { - file: 'src/webgl/loading.js', - line: 332, - description: - '

This function matches the query at the provided offset

\n', - class: 'p5', - module: 'Shape', - submodule: '3D Models' - }, - { - file: 'src/webgl/loading.js', - line: 344, - description: - '

This function parses the Binary STL files.\nhttps://en.wikipedia.org/wiki/STL_%28file_format%29#Binary_STL

\n

Currently there is no support for the colors provided in STL files.

\n', - class: 'p5', - module: 'Shape', - submodule: '3D Models' - }, - { - file: 'src/webgl/loading.js', - line: 433, - description: - '

ASCII STL file starts with solid 'nameOfFile'\nThen contain the normal of the face, starting with facet normal\nNext contain a keyword indicating the start of face vertex, outer loop\nNext comes the three vertex, starting with vertex x y z\nVertices ends with endloop\nFace ends with endfacet\nNext face starts with facet normal\nThe end of the file is indicated by endsolid

\n', - class: 'p5', - module: 'Shape', - submodule: '3D Models' - }, - { - file: 'src/webgl/loading.js', - line: 580, - description: '

Render a 3d model to the screen.

\n', - itemtype: 'method', - name: 'model', - params: [ - { - name: 'model', - description: '

Loaded 3d model to be rendered

\n', - type: 'p5.Geometry' - } - ], - example: [ - "\n
\n\n//draw a spinning octahedron\nlet octahedron;\n\nfunction preload() {\n octahedron = loadModel('assets/octahedron.obj');\n}\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n rotateX(frameCount * 0.01);\n rotateY(frameCount * 0.01);\n model(octahedron);\n}\n\n
" - ], - alt: 'Vertically rotating 3-d octahedron.', - class: 'p5', - module: 'Shape', - submodule: '3D Models' - }, - { - file: 'src/webgl/material.js', - line: 14, - description: - '

Loads a custom shader from the provided vertex and fragment\nshader paths. The shader files are loaded asynchronously in the\nbackground, so this method should be used in preload().

\n

For now, there are three main types of shaders. p5 will automatically\nsupply appropriate vertices, normals, colors, and lighting attributes\nif the parameters defined in the shader match the names.

\n', - itemtype: 'method', - name: 'loadShader', - params: [ - { - name: 'vertFilename', - description: - '

path to file containing vertex shader\nsource code

\n', - type: 'String' - }, - { - name: 'fragFilename', - description: - '

path to file containing fragment shader\nsource code

\n', - type: 'String' - }, - { - name: 'callback', - description: - '

callback to be executed after loadShader\ncompletes. On success, the Shader object is passed as the first argument.

\n', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: - '

callback to be executed when an error\noccurs inside loadShader. On error, the error is passed as the first\nargument.

\n', - type: 'Function', - optional: true - } - ], - return: { - description: - 'a shader object created from the provided\nvertex and fragment shader files.', - type: 'p5.Shader' - }, - example: [ - "\n
\n\nlet mandel;\nfunction preload() {\n // load the shader definitions from files\n mandel = loadShader('assets/shader.vert', 'assets/shader.frag');\n}\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n // use the shader\n shader(mandel);\n noStroke();\n mandel.setUniform('p', [-0.74364388703, 0.13182590421]);\n}\n\nfunction draw() {\n mandel.setUniform('r', 1.5 * exp(-6.5 * (1 + sin(millis() / 2000))));\n quad(-1, -1, 1, -1, 1, 1, -1, 1);\n}\n\n
" - ], - alt: 'zooming Mandelbrot set. a colorful, infinitely detailed fractal.', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Material' - }, - { - file: 'src/webgl/material.js', - line: 113, - itemtype: 'method', - name: 'createShader', - params: [ - { - name: 'vertSrc', - description: '

source code for the vertex shader

\n', - type: 'String' - }, - { - name: 'fragSrc', - description: '

source code for the fragment shader

\n', - type: 'String' - } - ], - return: { - description: - 'a shader object created from the provided\nvertex and fragment shaders.', - type: 'p5.Shader' - }, - example: [ - "\n
\n\n// the 'varying's are shared between both vertex & fragment shaders\nlet varying = 'precision highp float; varying vec2 vPos;';\n\n// the vertex shader is called for each vertex\nlet vs =\n varying +\n 'attribute vec3 aPosition;' +\n 'void main() { vPos = (gl_Position = vec4(aPosition,1.0)).xy; }';\n\n// the fragment shader is called for each pixel\nlet fs =\n varying +\n 'uniform vec2 p;' +\n 'uniform float r;' +\n 'const int I = 500;' +\n 'void main() {' +\n ' vec2 c = p + vPos * r, z = c;' +\n ' float n = 0.0;' +\n ' for (int i = I; i > 0; i --) {' +\n ' if(z.x*z.x+z.y*z.y > 4.0) {' +\n ' n = float(i)/float(I);' +\n ' break;' +\n ' }' +\n ' z = vec2(z.x*z.x-z.y*z.y, 2.0*z.x*z.y) + c;' +\n ' }' +\n ' gl_FragColor = vec4(0.5-cos(n*17.0)/2.0,0.5-cos(n*13.0)/2.0,0.5-cos(n*23.0)/2.0,1.0);' +\n '}';\n\nlet mandel;\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n\n // create and initialize the shader\n mandel = createShader(vs, fs);\n shader(mandel);\n noStroke();\n\n // 'p' is the center point of the Mandelbrot image\n mandel.setUniform('p', [-0.74364388703, 0.13182590421]);\n}\n\nfunction draw() {\n // 'r' is the size of the image in Mandelbrot-space\n mandel.setUniform('r', 1.5 * exp(-6.5 * (1 + sin(millis() / 2000))));\n quad(-1, -1, 1, -1, 1, 1, -1, 1);\n}\n\n
" - ], - alt: 'zooming Mandelbrot set. a colorful, infinitely detailed fractal.', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Material' - }, - { - file: 'src/webgl/material.js', - line: 181, - description: - '

The shader() function lets the user provide a custom shader\nto fill in shapes in WEBGL mode. Users can create their\nown shaders by loading vertex and fragment shaders with\nloadShader().

\n', - itemtype: 'method', - name: 'shader', - chainable: 1, - params: [ - { - name: 's', - description: - '

the desired p5.Shader to use for rendering\nshapes.

\n', - type: 'p5.Shader', - optional: true - } - ], - example: [ - "\n
\n\n// Click within the image to toggle\n// the shader used by the quad shape\n// Note: for an alternative approach to the same example,\n// involving changing uniforms please refer to:\n// https://p5js.org/reference/#/p5.Shader/setUniform\n\nlet redGreen;\nlet orangeBlue;\nlet showRedGreen = false;\n\nfunction preload() {\n // note that we are using two instances\n // of the same vertex and fragment shaders\n redGreen = loadShader('assets/shader.vert', 'assets/shader-gradient.frag');\n orangeBlue = loadShader('assets/shader.vert', 'assets/shader-gradient.frag');\n}\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n\n // initialize the colors for redGreen shader\n shader(redGreen);\n redGreen.setUniform('colorCenter', [1.0, 0.0, 0.0]);\n redGreen.setUniform('colorBackground', [0.0, 1.0, 0.0]);\n\n // initialize the colors for orangeBlue shader\n shader(orangeBlue);\n orangeBlue.setUniform('colorCenter', [1.0, 0.5, 0.0]);\n orangeBlue.setUniform('colorBackground', [0.226, 0.0, 0.615]);\n\n noStroke();\n}\n\nfunction draw() {\n // update the offset values for each shader,\n // moving orangeBlue in vertical and redGreen\n // in horizontal direction\n orangeBlue.setUniform('offset', [0, sin(millis() / 2000) + 1]);\n redGreen.setUniform('offset', [sin(millis() / 2000), 1]);\n\n if (showRedGreen === true) {\n shader(redGreen);\n } else {\n shader(orangeBlue);\n }\n quad(-1, -1, 1, -1, 1, 1, -1, 1);\n}\n\nfunction mouseClicked() {\n showRedGreen = !showRedGreen;\n}\n\n
" - ], - alt: - 'canvas toggles between a circular gradient of orange and blue vertically. and a circular gradient of red and green moving horizontally when mouse is clicked/pressed.', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Material' - }, - { - file: 'src/webgl/material.js', - line: 272, - description: - '

This function restores the default shaders in WEBGL mode. Code that runs\nafter resetShader() will not be affected by previously defined\nshaders. Should be run after shader().

\n', - itemtype: 'method', - name: 'resetShader', - chainable: 1, - class: 'p5', - module: 'Lights, Camera', - submodule: 'Material' - }, - { - file: 'src/webgl/material.js', - line: 285, - description: - '

Normal material for geometry. You can view all\npossible materials in this\nexample.

\n', - itemtype: 'method', - name: 'normalMaterial', - chainable: 1, - example: [ - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n normalMaterial();\n sphere(40);\n}\n\n
' - ], - alt: 'Red, green and blue gradient.', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Material' - }, - { - file: 'src/webgl/material.js', - line: 322, - description: - '

Texture for geometry. You can view other possible materials in this\nexample.

\n', - itemtype: 'method', - name: 'texture', - params: [ - { - name: 'tex', - description: - '

2-dimensional graphics\n to render as texture

\n', - type: 'p5.Image|p5.MediaElement|p5.Graphics' - } - ], - chainable: 1, - example: [ - "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/laDefense.jpg');\n}\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(0);\n rotateZ(frameCount * 0.01);\n rotateX(frameCount * 0.01);\n rotateY(frameCount * 0.01);\n //pass image as texture\n texture(img);\n box(200, 200, 200);\n}\n\n
\n\n
\n\nlet pg;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n pg = createGraphics(200, 200);\n pg.textSize(75);\n}\n\nfunction draw() {\n background(0);\n pg.background(255);\n pg.text('hello!', 0, 100);\n //pass image as texture\n texture(pg);\n rotateX(0.5);\n noStroke();\n plane(50);\n}\n\n
\n\n
\n\nlet vid;\nfunction preload() {\n vid = createVideo('assets/fingers.mov');\n vid.hide();\n}\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(0);\n //pass video frame as texture\n texture(vid);\n rect(-40, -40, 80, 80);\n}\n\nfunction mousePressed() {\n vid.loop();\n}\n\n
" - ], - alt: - 'Rotating view of many images umbrella and grid roof on a 3d plane\nblack canvas\nblack canvas', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Material' - }, - { - file: 'src/webgl/material.js', - line: 419, - description: - '

Sets the coordinate space for texture mapping. The default mode is IMAGE\nwhich refers to the actual coordinates of the image.\nNORMAL refers to a normalized space of values ranging from 0 to 1.\nThis function only works in WEBGL mode.

\n

With IMAGE, if an image is 100 x 200 pixels, mapping the image onto the entire\nsize of a quad would require the points (0,0) (100, 0) (100,200) (0,200).\nThe same mapping in NORMAL is (0,0) (1,0) (1,1) (0,1).

\n', - itemtype: 'method', - name: 'textureMode', - params: [ - { - name: 'mode', - description: '

either IMAGE or NORMAL

\n', - type: 'Constant' - } - ], - example: [ - "\n
\n\nlet img;\n\nfunction preload() {\n img = loadImage('assets/laDefense.jpg');\n}\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n texture(img);\n textureMode(NORMAL);\n beginShape();\n vertex(-50, -50, 0, 0);\n vertex(50, -50, 1, 0);\n vertex(50, 50, 1, 1);\n vertex(-50, 50, 0, 1);\n endShape();\n}\n\n
" - ], - alt: 'the underside of a white umbrella and gridded ceiling above', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Material' - }, - { - file: 'src/webgl/material.js', - line: 498, - description: - '

Sets the global texture wrapping mode. This controls how textures behave\nwhen their uv's go outside of the 0 - 1 range. There are three options:\nCLAMP, REPEAT, and MIRROR.

\n

CLAMP causes the pixels at the edge of the texture to extend to the bounds\nREPEAT causes the texture to tile repeatedly until reaching the bounds\nMIRROR works similarly to REPEAT but it flips the texture with every new tile

\n

REPEAT & MIRROR are only available if the texture\nis a power of two size (128, 256, 512, 1024, etc.).

\n

This method will affect all textures in your sketch until a subsequent\ntextureWrap call is made.

\n

If only one argument is provided, it will be applied to both the\nhorizontal and vertical axes.

\n', - itemtype: 'method', - name: 'textureWrap', - params: [ - { - name: 'wrapX', - description: '

either CLAMP, REPEAT, or MIRROR

\n', - type: 'Constant' - }, - { - name: 'wrapY', - description: '

either CLAMP, REPEAT, or MIRROR

\n', - type: 'Constant', - optional: true - } - ], - example: [ - "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/rockies128.jpg');\n}\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n textureWrap(MIRROR);\n}\n\nfunction draw() {\n background(0);\n\n let dX = mouseX;\n let dY = mouseY;\n\n let u = lerp(1.0, 2.0, dX);\n let v = lerp(1.0, 2.0, dY);\n\n scale(width / 2);\n\n texture(img);\n\n beginShape(TRIANGLES);\n vertex(-1, -1, 0, 0, 0);\n vertex(1, -1, 0, u, 0);\n vertex(1, 1, 0, u, v);\n\n vertex(1, 1, 0, u, v);\n vertex(-1, 1, 0, 0, v);\n vertex(-1, -1, 0, 0, 0);\n endShape();\n}\n\n
" - ], - alt: 'an image of the rocky mountains repeated in mirrored tiles', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Material' - }, - { - file: 'src/webgl/material.js', - line: 573, - description: - '

Ambient material for geometry with a given color. You can view all\npossible materials in this\nexample.

\n', - itemtype: 'method', - name: 'ambientMaterial', - chainable: 1, - example: [ - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(0);\n noStroke();\n ambientLight(200);\n ambientMaterial(70, 130, 230);\n sphere(40);\n}\n\n
' - ], - alt: 'radiating light source from top right of canvas', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Material', - overloads: [ - { - line: 573, - params: [ - { - name: 'v1', - description: - '

gray value, red or hue value\n (depending on the current color mode),

\n', - type: 'Number' - }, - { - name: 'v2', - description: '

green or saturation value

\n', - type: 'Number', - optional: true - }, - { - name: 'v3', - description: '

blue or brightness value

\n', - type: 'Number', - optional: true - }, - { - name: 'a', - description: '

opacity

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 604, - params: [ - { - name: 'color', - description: '

color, color Array, or CSS color string

\n', - type: 'Number[]|String|p5.Color' - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/webgl/material.js', - line: 623, - description: - '

Specular material for geometry with a given color. You can view all\npossible materials in this\nexample.

\n', - itemtype: 'method', - name: 'specularMaterial', - chainable: 1, - example: [ - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(0);\n noStroke();\n ambientLight(50);\n pointLight(250, 250, 250, 100, 100, 30);\n specularMaterial(250);\n sphere(40);\n}\n\n
' - ], - alt: 'diffused radiating light source from top right of canvas', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Material', - overloads: [ - { - line: 623, - params: [ - { - name: 'v1', - description: - '

gray value, red or hue value\n (depending on the current color mode),

\n', - type: 'Number' - }, - { - name: 'v2', - description: '

green or saturation value

\n', - type: 'Number', - optional: true - }, - { - name: 'v3', - description: '

blue or brightness value

\n', - type: 'Number', - optional: true - }, - { - name: 'a', - description: '

opacity

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - }, - { - line: 655, - params: [ - { - name: 'color', - description: '

color Array, or CSS color string

\n', - type: 'Number[]|String|p5.Color' - } - ], - chainable: 1 - } - ] - }, - { - file: 'src/webgl/material.js', - line: 674, - description: - '

Sets the amount of gloss in the surface of shapes.\nUsed in combination with specularMaterial() in setting\nthe material properties of shapes. The default and minimum value is 1.

\n', - itemtype: 'method', - name: 'shininess', - params: [ - { - name: 'shine', - description: - '

Degree of Shininess.\n Defaults to 1.

\n', - type: 'Number' - } - ], - chainable: 1, - example: [ - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(0);\n noStroke();\n let locX = mouseX - width / 2;\n let locY = mouseY - height / 2;\n ambientLight(60, 60, 60);\n pointLight(255, 255, 255, locX, locY, 50);\n specularMaterial(250);\n translate(-25, 0, 0);\n shininess(1);\n sphere(20);\n translate(50, 0, 0);\n shininess(20);\n sphere(20);\n}\n\n
' - ], - alt: 'Shininess on Camera changes position with mouse', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Material' - }, - { - file: 'src/webgl/p5.Camera.js', - line: 15, - description: - '

Sets the camera position for a 3D sketch. Parameters for this function define\nthe position for the camera, the center of the sketch (where the camera is\npointing), and an up direction (the orientation of the camera).

\n

When called with no arguments, this function creates a default camera\nequivalent to\ncamera(0, 0, (height/2.0) / tan(PI*30.0 / 180.0), 0, 0, 0, 0, 1, 0);

\n', - itemtype: 'method', - name: 'camera', - params: [ - { - name: 'x', - description: '

camera position value on x axis

\n', - type: 'Number', - optional: true - }, - { - name: 'y', - description: '

camera position value on y axis

\n', - type: 'Number', - optional: true - }, - { - name: 'z', - description: '

camera position value on z axis

\n', - type: 'Number', - optional: true - }, - { - name: 'centerX', - description: '

x coordinate representing center of the sketch

\n', - type: 'Number', - optional: true - }, - { - name: 'centerY', - description: '

y coordinate representing center of the sketch

\n', - type: 'Number', - optional: true - }, - { - name: 'centerZ', - description: '

z coordinate representing center of the sketch

\n', - type: 'Number', - optional: true - }, - { - name: 'upX', - description: - '

x component of direction 'up' from camera

\n', - type: 'Number', - optional: true - }, - { - name: 'upY', - description: - '

y component of direction 'up' from camera

\n', - type: 'Number', - optional: true - }, - { - name: 'upZ', - description: - '

z component of direction 'up' from camera

\n', - type: 'Number', - optional: true - } - ], - chainable: 1, - example: [ - '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(204);\n //move the camera away from the plane by a sin wave\n camera(0, 0, 20 + sin(frameCount * 0.01) * 10, 0, 0, 0, 0, 1, 0);\n plane(10, 10);\n}\n\n
' - ], - alt: 'White square repeatedly grows to fill canvas and then shrinks.', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Camera' - }, - { - file: 'src/webgl/p5.Camera.js', - line: 61, - description: - '

Sets a perspective projection for the camera in a 3D sketch. This projection\nrepresents depth through foreshortening: objects that are close to the camera\nappear their actual size while those that are further away from the camera\nappear smaller. The parameters to this function define the viewing frustum\n(the truncated pyramid within which objects are seen by the camera) through\nvertical field of view, aspect ratio (usually width/height), and near and far\nclipping planes.

\n

When called with no arguments, the defaults\nprovided are equivalent to\nperspective(PI/3.0, width/height, eyeZ/10.0, eyeZ10.0), where eyeZ\nis equal to ((height/2.0) / tan(PI60.0/360.0));

\n', - itemtype: 'method', - name: 'perspective', - params: [ - { - name: 'fovy', - description: - '

camera frustum vertical field of view,\n from bottom to top of view, in angleMode units

\n', - type: 'Number', - optional: true - }, - { - name: 'aspect', - description: '

camera frustum aspect ratio

\n', - type: 'Number', - optional: true - }, - { - name: 'near', - description: '

frustum near plane length

\n', - type: 'Number', - optional: true - }, - { - name: 'far', - description: '

frustum far plane length

\n', - type: 'Number', - optional: true - } - ], - chainable: 1, - example: [ - "\n
\n\n//drag the mouse to look around!\n//you will see there's a vanishing point\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n perspective(PI / 3.0, width / height, 0.1, 500);\n}\nfunction draw() {\n background(200);\n orbitControl();\n normalMaterial();\n\n rotateX(-0.3);\n rotateY(-0.2);\n translate(0, 0, -50);\n\n push();\n translate(-15, 0, sin(frameCount / 30) * 95);\n box(30);\n pop();\n push();\n translate(15, 0, sin(frameCount / 30 + PI) * 95);\n box(30);\n pop();\n}\n\n
" - ], - alt: - 'two colored 3D boxes move back and forth, rotating as mouse is dragged.', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Camera' - }, - { - file: 'src/webgl/p5.Camera.js', - line: 126, - description: - '

Sets an orthographic projection for the camera in a 3D sketch and defines a\nbox-shaped viewing frustum within which objects are seen. In this projection,\nall objects with the same dimension appear the same size, regardless of\nwhether they are near or far from the camera. The parameters to this\nfunction specify the viewing frustum where left and right are the minimum and\nmaximum x values, top and bottom are the minimum and maximum y values, and near\nand far are the minimum and maximum z values. If no parameters are given, the\ndefault is used: ortho(-width/2, width/2, -height/2, height/2).

\n', - itemtype: 'method', - name: 'ortho', - params: [ - { - name: 'left', - description: '

camera frustum left plane

\n', - type: 'Number', - optional: true - }, - { - name: 'right', - description: '

camera frustum right plane

\n', - type: 'Number', - optional: true - }, - { - name: 'bottom', - description: '

camera frustum bottom plane

\n', - type: 'Number', - optional: true - }, - { - name: 'top', - description: '

camera frustum top plane

\n', - type: 'Number', - optional: true - }, - { - name: 'near', - description: '

camera frustum near plane

\n', - type: 'Number', - optional: true - }, - { - name: 'far', - description: '

camera frustum far plane

\n', - type: 'Number', - optional: true - } - ], - chainable: 1, - example: [ - "\n
\n\n//drag the mouse to look around!\n//there's no vanishing point\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n ortho(-width / 2, width / 2, height / 2, -height / 2, 0, 500);\n}\nfunction draw() {\n background(200);\n orbitControl();\n normalMaterial();\n\n rotateX(0.2);\n rotateY(-0.2);\n push();\n translate(-15, 0, sin(frameCount / 30) * 65);\n box(30);\n pop();\n push();\n translate(15, 0, sin(frameCount / 30 + PI) * 65);\n box(30);\n pop();\n}\n\n
" - ], - alt: - 'two 3D boxes move back and forth along same plane, rotating as mouse is dragged.', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Camera' - }, - { - file: 'src/webgl/p5.Camera.js', - line: 187, - description: - '

Creates a new p5.Camera object and tells the\nrenderer to use that camera.\nReturns the p5.Camera object.

\n', - itemtype: 'method', - name: 'createCamera', - return: { - description: 'The newly created camera object.', - type: 'p5.Camera' - }, - class: 'p5', - module: 'Lights, Camera', - submodule: 'Camera' - }, - { - file: 'src/webgl/p5.Camera.js', - line: 298, - description: - '

Sets a perspective projection for a p5.Camera object and sets parameters\nfor that projection according to perspective()\nsyntax.

\n', - itemtype: 'method', - name: 'perspective', - class: 'p5.Camera', - module: 'Lights, Camera', - submodule: 'Camera' - }, - { - file: 'src/webgl/p5.Camera.js', - line: 379, - description: - '

Sets an orthographic projection for a p5.Camera object and sets parameters\nfor that projection according to ortho() syntax.

\n', - itemtype: 'method', - name: 'ortho', - class: 'p5.Camera', - module: 'Lights, Camera', - submodule: 'Camera' - }, - { - file: 'src/webgl/p5.Camera.js', - line: 486, - description: - '

Panning rotates the camera view to the left and right.

\n', - itemtype: 'method', - name: 'pan', - params: [ - { - name: 'angle', - description: - '

amount to rotate camera in current\nangleMode units.\nGreater than 0 values rotate counterclockwise (to the left).

\n', - type: 'Number' - } - ], - example: [ - "\n
\n\nlet cam;\nlet delta = 0.01;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n normalMaterial();\n cam = createCamera();\n // set initial pan angle\n cam.pan(-0.8);\n}\n\nfunction draw() {\n background(200);\n\n // pan camera according to angle 'delta'\n cam.pan(delta);\n\n // every 160 frames, switch direction\n if (frameCount % 160 === 0) {\n delta *= -1;\n }\n\n rotateX(frameCount * 0.01);\n translate(-100, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n}\n\n
" - ], - alt: - 'camera view pans left and right across a series of rotating 3D boxes.', - class: 'p5.Camera', - module: 'Lights, Camera', - submodule: 'Camera' - }, - { - file: 'src/webgl/p5.Camera.js', - line: 545, - description: '

Tilting rotates the camera view up and down.

\n', - itemtype: 'method', - name: 'tilt', - params: [ - { - name: 'angle', - description: - '

amount to rotate camera in current\nangleMode units.\nGreater than 0 values rotate counterclockwise (to the left).

\n', - type: 'Number' - } - ], - example: [ - "\n
\n\nlet cam;\nlet delta = 0.01;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n normalMaterial();\n cam = createCamera();\n // set initial tilt\n cam.tilt(-0.8);\n}\n\nfunction draw() {\n background(200);\n\n // pan camera according to angle 'delta'\n cam.tilt(delta);\n\n // every 160 frames, switch direction\n if (frameCount % 160 === 0) {\n delta *= -1;\n }\n\n rotateY(frameCount * 0.01);\n translate(0, -100, 0);\n box(20);\n translate(0, 35, 0);\n box(20);\n translate(0, 35, 0);\n box(20);\n translate(0, 35, 0);\n box(20);\n translate(0, 35, 0);\n box(20);\n translate(0, 35, 0);\n box(20);\n translate(0, 35, 0);\n box(20);\n}\n\n
" - ], - alt: 'camera view tilts up and down across a series of rotating 3D boxes.', - class: 'p5.Camera', - module: 'Lights, Camera', - submodule: 'Camera' - }, - { - file: 'src/webgl/p5.Camera.js', - line: 603, - description: - '

Reorients the camera to look at a position in world space.

\n', - itemtype: 'method', - name: 'lookAt', - params: [ - { - name: 'x', - description: '

x position of a point in world space

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y position of a point in world space

\n', - type: 'Number' - }, - { - name: 'z', - description: '

z position of a point in world space

\n', - type: 'Number' - } - ], - example: [ - '\n
\n\nlet cam;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n normalMaterial();\n cam = createCamera();\n}\n\nfunction draw() {\n background(200);\n\n // look at a new random point every 60 frames\n if (frameCount % 60 === 0) {\n cam.lookAt(random(-100, 100), random(-50, 50), 0);\n }\n\n rotateX(frameCount * 0.01);\n translate(-100, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n}\n\n
' - ], - alt: - 'camera view of rotating 3D cubes changes to look at a new random\npoint every second .', - class: 'p5.Camera', - module: 'Lights, Camera', - submodule: 'Camera' - }, - { - file: 'src/webgl/p5.Camera.js', - line: 670, - description: - '

Sets a camera's position and orientation. This is equivalent to calling\ncamera() on a p5.Camera object.

\n', - itemtype: 'method', - name: 'camera', - class: 'p5.Camera', - module: 'Lights, Camera', - submodule: 'Camera' - }, - { - file: 'src/webgl/p5.Camera.js', - line: 751, - description: - '

Move camera along its local axes while maintaining current camera orientation.

\n', - itemtype: 'method', - name: 'move', - params: [ - { - name: 'x', - description: - '

amount to move along camera's left-right axis

\n', - type: 'Number' - }, - { - name: 'y', - description: '

amount to move along camera's up-down axis

\n', - type: 'Number' - }, - { - name: 'z', - description: - '

amount to move along camera's forward-backward axis

\n', - type: 'Number' - } - ], - example: [ - '\n
\n\n// see the camera move along its own axes while maintaining its orientation\nlet cam;\nlet delta = 0.5;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n normalMaterial();\n cam = createCamera();\n}\n\nfunction draw() {\n background(200);\n\n // move the camera along its local axes\n cam.move(delta, delta, 0);\n\n // every 100 frames, switch direction\n if (frameCount % 150 === 0) {\n delta *= -1;\n }\n\n translate(-10, -10, 0);\n box(50, 8, 50);\n translate(15, 15, 0);\n box(50, 8, 50);\n translate(15, 15, 0);\n box(50, 8, 50);\n translate(15, 15, 0);\n box(50, 8, 50);\n translate(15, 15, 0);\n box(50, 8, 50);\n translate(15, 15, 0);\n box(50, 8, 50);\n}\n\n
' - ], - alt: - 'camera view moves along a series of 3D boxes, maintaining the same\norientation throughout the move', - class: 'p5.Camera', - module: 'Lights, Camera', - submodule: 'Camera' - }, - { - file: 'src/webgl/p5.Camera.js', - line: 823, - description: - '

Set camera position in world-space while maintaining current camera\norientation.

\n', - itemtype: 'method', - name: 'setPosition', - params: [ - { - name: 'x', - description: '

x position of a point in world space

\n', - type: 'Number' - }, - { - name: 'y', - description: '

y position of a point in world space

\n', - type: 'Number' - }, - { - name: 'z', - description: '

z position of a point in world space

\n', - type: 'Number' - } - ], - example: [ - "\n
\n\n// press '1' '2' or '3' keys to set camera position\n\nlet cam;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n normalMaterial();\n cam = createCamera();\n}\n\nfunction draw() {\n background(200);\n\n // '1' key\n if (keyIsDown(49)) {\n cam.setPosition(30, 0, 80);\n }\n // '2' key\n if (keyIsDown(50)) {\n cam.setPosition(0, 0, 80);\n }\n // '3' key\n if (keyIsDown(51)) {\n cam.setPosition(-30, 0, 80);\n }\n\n box(20);\n}\n\n
" - ], - alt: - 'camera position changes as the user presses keys, altering view of a 3D box', - class: 'p5.Camera', - module: 'Lights, Camera', - submodule: 'Camera' - }, - { - file: 'src/webgl/p5.Camera.js', - line: 1088, - description: - '

Sets rendererGL's current camera to a p5.Camera object. Allows switching\nbetween multiple cameras.

\n', - itemtype: 'method', - name: 'setCamera', - params: [ - { - name: 'cam', - description: '

p5.Camera object

\n', - type: 'p5.Camera' - } - ], - example: [ - '\n
\n\nlet cam1, cam2;\nlet currentCamera;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n normalMaterial();\n\n cam1 = createCamera();\n cam2 = createCamera();\n cam2.setPosition(30, 0, 50);\n cam2.lookAt(0, 0, 0);\n cam2.ortho();\n\n // set variable for previously active camera:\n currentCamera = 1;\n}\n\nfunction draw() {\n background(200);\n\n // camera 1:\n cam1.lookAt(0, 0, 0);\n cam1.setPosition(sin(frameCount / 60) * 200, 0, 100);\n\n // every 100 frames, switch between the two cameras\n if (frameCount % 100 === 0) {\n if (currentCamera === 1) {\n setCamera(cam1);\n currentCamera = 0;\n } else {\n setCamera(cam2);\n currentCamera = 1;\n }\n }\n\n drawBoxes();\n}\n\nfunction drawBoxes() {\n rotateX(frameCount * 0.01);\n translate(-100, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n}\n\n
' - ], - alt: - 'Canvas switches between two camera views, each showing a series of spinning\n3D boxes.', - class: 'p5', - module: 'Lights, Camera', - submodule: 'Camera' - }, - { - file: 'src/webgl/p5.Geometry.js', - line: 66, - itemtype: 'method', - name: 'computeFaces', - chainable: 1, - class: 'p5.Geometry', - module: 'Lights, Camera' - }, - { - file: 'src/webgl/p5.Geometry.js', - line: 108, - description: - '

computes smooth normals per vertex as an average of each\nface.

\n', - itemtype: 'method', - name: 'computeNormals', - chainable: 1, - class: 'p5.Geometry', - module: 'Lights, Camera' - }, - { - file: 'src/webgl/p5.Geometry.js', - line: 147, - description: - '

Averages the vertex normals. Used in curved\nsurfaces

\n', - itemtype: 'method', - name: 'averageNormals', - chainable: 1, - class: 'p5.Geometry', - module: 'Lights, Camera' - }, - { - file: 'src/webgl/p5.Geometry.js', - line: 168, - description: - '

Averages pole normals. Used in spherical primitives

\n', - itemtype: 'method', - name: 'averagePoleNormals', - chainable: 1, - class: 'p5.Geometry', - module: 'Lights, Camera' - }, - { - file: 'src/webgl/p5.Geometry.js', - line: 261, - description: - '

Modifies all vertices to be centered within the range -100 to 100.

\n', - itemtype: 'method', - name: 'normalize', - chainable: 1, - class: 'p5.Geometry', - module: 'Lights, Camera' - }, - { - file: 'src/webgl/p5.RendererGL.js', - line: 263, - description: - '

Set attributes for the WebGL Drawing context.\nThis is a way of adjusting how the WebGL\nrenderer works to fine-tune the display and performance.\n

\nNote that this will reinitialize the drawing context\nif called after the WebGL canvas is made.\n

\nIf an object is passed as the parameter, all attributes\nnot declared in the object will be set to defaults.\n

\nThe available attributes are:\n
\nalpha - indicates if the canvas contains an alpha buffer\ndefault is true\n

\ndepth - indicates whether the drawing buffer has a depth buffer\nof at least 16 bits - default is true\n

\nstencil - indicates whether the drawing buffer has a stencil buffer\nof at least 8 bits\n

\nantialias - indicates whether or not to perform anti-aliasing\ndefault is false\n

\npremultipliedAlpha - indicates that the page compositor will assume\nthe drawing buffer contains colors with pre-multiplied alpha\ndefault is false\n

\npreserveDrawingBuffer - if true the buffers will not be cleared and\nand will preserve their values until cleared or overwritten by author\n(note that p5 clears automatically on draw loop)\ndefault is true\n

\nperPixelLighting - if true, per-pixel lighting will be used in the\nlighting shader.\ndefault is false\n

\n', - itemtype: 'method', - name: 'setAttributes', - example: [ - "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(255);\n push();\n rotateZ(frameCount * 0.02);\n rotateX(frameCount * 0.02);\n rotateY(frameCount * 0.02);\n fill(0, 0, 0);\n box(50);\n pop();\n}\n\n
\n
\nNow with the antialias attribute set to true.\n
\n
\n\nfunction setup() {\n setAttributes('antialias', true);\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(255);\n push();\n rotateZ(frameCount * 0.02);\n rotateX(frameCount * 0.02);\n rotateY(frameCount * 0.02);\n fill(0, 0, 0);\n box(50);\n pop();\n}\n\n
\n\n
\n\n// press the mouse button to enable perPixelLighting\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n noStroke();\n fill(255);\n}\n\nvar lights = [\n { c: '#f00', t: 1.12, p: 1.91, r: 0.2 },\n { c: '#0f0', t: 1.21, p: 1.31, r: 0.2 },\n { c: '#00f', t: 1.37, p: 1.57, r: 0.2 },\n { c: '#ff0', t: 1.12, p: 1.91, r: 0.7 },\n { c: '#0ff', t: 1.21, p: 1.31, r: 0.7 },\n { c: '#f0f', t: 1.37, p: 1.57, r: 0.7 }\n];\n\nfunction draw() {\n var t = millis() / 1000 + 1000;\n background(0);\n directionalLight(color('#222'), 1, 1, 1);\n\n for (var i = 0; i < lights.length; i++) {\n var light = lights[i];\n pointLight(\n color(light.c),\n p5.Vector.fromAngles(t * light.t, t * light.p, width * light.r)\n );\n }\n\n specularMaterial(255);\n sphere(width * 0.1);\n\n rotateX(t * 0.77);\n rotateY(t * 0.83);\n rotateZ(t * 0.91);\n torus(width * 0.3, width * 0.07, 24, 10);\n}\n\nfunction mousePressed() {\n setAttributes('perPixelLighting', true);\n noStroke();\n fill(255);\n}\nfunction mouseReleased() {\n setAttributes('perPixelLighting', false);\n noStroke();\n fill(255);\n}\n\n
" - ], - alt: 'a rotating cube with smoother edges', - class: 'p5', - module: 'Rendering', - submodule: 'Rendering', - overloads: [ - { - line: 263, - params: [ - { - name: 'key', - description: '

Name of attribute

\n', - type: 'String' - }, - { - name: 'value', - description: '

New value of named attribute

\n', - type: 'Boolean' - } - ] - }, - { - line: 402, - params: [ - { - name: 'obj', - description: '

object with key-value pairs

\n', - type: 'Object' - } - ] - } - ] - }, - { - file: 'src/webgl/p5.Shader.js', - line: 269, - description: - '

Wrapper around gl.uniform functions.\nAs we store uniform info in the shader we can use that\nto do type checking on the supplied data and call\nthe appropriate function.

\n', - itemtype: 'method', - name: 'setUniform', - chainable: 1, - params: [ - { - name: 'uniformName', - description: '

the name of the uniform in the\nshader program

\n', - type: 'String' - }, - { - name: 'data', - description: - '

the data to be associated\nwith that uniform; type varies (could be a single numerical value, array,\nmatrix, or texture / sampler reference)

\n', - type: 'Object|Number|Boolean|Number[]' - } - ], - example: [ - "\n
\n\n// Click within the image to toggle the value of uniforms\n// Note: for an alternative approach to the same example,\n// involving toggling between shaders please refer to:\n// https://p5js.org/reference/#/p5/shader\n\nlet grad;\nlet showRedGreen = false;\n\nfunction preload() {\n // note that we are using two instances\n // of the same vertex and fragment shaders\n grad = loadShader('assets/shader.vert', 'assets/shader-gradient.frag');\n}\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n shader(grad);\n noStroke();\n}\n\nfunction draw() {\n // update the offset values for each scenario,\n // moving the \"grad\" shader in either vertical or\n // horizontal direction each with differing colors\n\n if (showRedGreen === true) {\n grad.setUniform('colorCenter', [1, 0, 0]);\n grad.setUniform('colorBackground', [0, 1, 0]);\n grad.setUniform('offset', [sin(millis() / 2000), 1]);\n } else {\n grad.setUniform('colorCenter', [1, 0.5, 0]);\n grad.setUniform('colorBackground', [0.226, 0, 0.615]);\n grad.setUniform('offset', [0, sin(millis() / 2000) + 1]);\n }\n quad(-1, -1, 1, -1, 1, 1, -1, 1);\n}\n\nfunction mouseClicked() {\n showRedGreen = !showRedGreen;\n}\n\n
" - ], - alt: - 'canvas toggles between a circular gradient of orange and blue vertically. and a circular gradient of red and green moving horizontally when mouse is clicked/pressed.', - class: 'p5.Shader', - module: 'Lights, Camera', - submodule: 'Shaders' - }, - { - file: 'lib/addons/p5.dom.js', - line: 40, - description: - '

Searches the page for an element with the given ID, class, or tag name (using the '#' or '.'\nprefixes to specify an ID or class respectively, and none for a tag) and returns it as\na p5.Element. If a class or tag name is given with more than 1 element,\nonly the first element will be returned.\nThe DOM node itself can be accessed with .elt.\nReturns null if none found. You can also specify a container to search within.

\n', - itemtype: 'method', - name: 'select', - params: [ - { - name: 'name', - description: '

id, class, or tag name of element to search for

\n', - type: 'String' - }, - { - name: 'container', - description: - '

id, p5.Element, or\n HTML element to search within

\n', - type: 'String|p5.Element|HTMLElement', - optional: true - } - ], - return: { - description: - 'p5.Element containing node found', - type: 'p5.Element|null' - }, - example: [ - "\n
\nfunction setup() {\n createCanvas(100, 100);\n //translates canvas 50px down\n select('canvas').position(100, 100);\n}\n
\n
\n// these are all valid calls to select()\nvar a = select('#moo');\nvar b = select('#blah', '#myContainer');\nvar c, e;\nif (b) {\n c = select('#foo', b);\n}\nvar d = document.getElementById('beep');\nif (d) {\n e = select('p', d);\n}\n[a, b, c, d, e]; // unused\n
\n" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 107, - description: - '

Searches the page for elements with the given class or tag name (using the '.' prefix\nto specify a class and no prefix for a tag) and returns them as p5.Elements\nin an array.\nThe DOM node itself can be accessed with .elt.\nReturns an empty array if none found.\nYou can also specify a container to search within.

\n', - itemtype: 'method', - name: 'selectAll', - params: [ - { - name: 'name', - description: '

class or tag name of elements to search for

\n', - type: 'String' - }, - { - name: 'container', - description: - '

id, p5.Element, or HTML element to search within

\n', - type: 'String', - optional: true - } - ], - return: { - description: - 'Array of p5.Elements containing nodes found', - type: 'p5.Element[]' - }, - example: [ - "\n
\nfunction setup() {\n createButton('btn');\n createButton('2nd btn');\n createButton('3rd btn');\n var buttons = selectAll('button');\n\n for (var i = 0; i < buttons.length; i++) {\n buttons[i].size(100, 100);\n }\n}\n
\n
\n// these are all valid calls to selectAll()\nvar a = selectAll('.moo');\na = selectAll('div');\na = selectAll('button', '#myContainer');\n\nvar d = select('#container');\na = selectAll('p', d);\n\nvar f = document.getElementById('beep');\na = select('.blah', f);\n\na; // unused\n
\n" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 168, - description: '

Helper function for select and selectAll

\n', - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 184, - description: '

Helper function for getElement and getElements.

\n', - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 218, - description: - '

Removes all elements created by p5, except any canvas / graphics\nelements created by createCanvas or createGraphics.\nEvent handlers are removed, and element is removed from the DOM.

\n', - itemtype: 'method', - name: 'removeElements', - example: [ - "\n
\nfunction setup() {\n createCanvas(100, 100);\n createDiv('this is some text');\n createP('this is a paragraph');\n}\nfunction mousePressed() {\n removeElements(); // this will remove the div and p, not canvas\n}\n
\n" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 245, - description: - '

The .changed() function is called when the value of an\nelement changes.\nThis can be used to attach an element specific event listener.

\n', - itemtype: 'method', - name: 'changed', - params: [ - { - name: 'fxn', - description: - '

function to be fired when the value of\n an element changes.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', - type: 'Function|Boolean' - } - ], - chainable: 1, - example: [ - "\n
\nvar sel;\n\nfunction setup() {\n textAlign(CENTER);\n background(200);\n sel = createSelect();\n sel.position(10, 10);\n sel.option('pear');\n sel.option('kiwi');\n sel.option('grape');\n sel.changed(mySelectEvent);\n}\n\nfunction mySelectEvent() {\n var item = sel.value();\n background(200);\n text(\"it's a \" + item + '!', 50, 50);\n}\n
\n\n
\nvar checkbox;\nvar cnv;\n\nfunction setup() {\n checkbox = createCheckbox(' fill');\n checkbox.changed(changeFill);\n cnv = createCanvas(100, 100);\n cnv.position(0, 30);\n noFill();\n}\n\nfunction draw() {\n background(200);\n ellipse(50, 50, 50, 50);\n}\n\nfunction changeFill() {\n if (checkbox.checked()) {\n fill(0);\n } else {\n noFill();\n }\n}\n
" - ], - alt: - 'dropdown: pear, kiwi, grape. When selected text "its a" + selection shown.', - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 313, - description: - '

The .input() function is called when any user input is\ndetected with an element. The input event is often used\nto detect keystrokes in a input element, or changes on a\nslider element. This can be used to attach an element specific\nevent listener.

\n', - itemtype: 'method', - name: 'input', - params: [ - { - name: 'fxn', - description: - '

function to be fired when any user input is\n detected within the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', - type: 'Function|Boolean' - } - ], - chainable: 1, - example: [ - "\n
\n// Open your console to see the output\nfunction setup() {\n var inp = createInput('');\n inp.input(myInputEvent);\n}\n\nfunction myInputEvent() {\n console.log('you are typing: ', this.value());\n}\n
" - ], - alt: 'no display.', - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 348, - description: '

Helpers for create methods.

\n', - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 361, - description: - '

Creates a <div></div> element in the DOM with given inner HTML.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', - itemtype: 'method', - name: 'createDiv', - params: [ - { - name: 'html', - description: '

inner HTML for element created

\n', - type: 'String', - optional: true - } - ], - return: { - description: - 'pointer to p5.Element holding created node', - type: 'p5.Element' - }, - example: [ - "\n
\ncreateDiv('this is some text');\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 375, - description: - '

Creates a <p></p> element in the DOM with given inner HTML. Used\nfor paragraph length text.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', - itemtype: 'method', - name: 'createP', - params: [ - { - name: 'html', - description: '

inner HTML for element created

\n', - type: 'String', - optional: true - } - ], - return: { - description: - 'pointer to p5.Element holding created node', - type: 'p5.Element' - }, - example: [ - "\n
\ncreateP('this is some text');\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 390, - description: - '

Creates a <span></span> element in the DOM with given inner HTML.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', - itemtype: 'method', - name: 'createSpan', - params: [ - { - name: 'html', - description: '

inner HTML for element created

\n', - type: 'String', - optional: true - } - ], - return: { - description: - 'pointer to p5.Element holding created node', - type: 'p5.Element' - }, - example: [ - "\n
\ncreateSpan('this is some text');\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 413, - description: - '

Creates an <img> element in the DOM with given src and\nalternate text.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', - itemtype: 'method', - name: 'createImg', - return: { - description: - 'pointer to p5.Element holding created node', - type: 'p5.Element' - }, - example: [ - "\n
\ncreateImg('http://p5js.org/img/asterisk-01.png');\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom', - overloads: [ - { - line: 413, - params: [ - { - name: 'src', - description: '

src path or url for image

\n', - type: 'String' - }, - { - name: 'alt', - description: - '

alternate text to be used if image does not load

\n', - type: 'String', - optional: true - }, - { - name: 'successCallback', - description: - '

callback to be called once image data is loaded

\n', - type: 'Function', - optional: true - } - ], - return: { - description: - 'pointer to p5.Element holding created node', - type: 'p5.Element' - } - }, - { - line: 429, - params: [ - { - name: 'src', - description: '', - type: 'String' - }, - { - name: 'successCallback', - description: '', - type: 'Function' - } - ], - return: { - description: '', - type: 'Object|p5.Element' - } - } - ] - }, - { - file: 'lib/addons/p5.dom.js', - line: 463, - description: - '

Creates an <a></a> element in the DOM for including a hyperlink.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', - itemtype: 'method', - name: 'createA', - params: [ - { - name: 'href', - description: '

url of page to link to

\n', - type: 'String' - }, - { - name: 'html', - description: '

inner html of link element to display

\n', - type: 'String' - }, - { - name: 'target', - description: - '

target where new link should open,\n could be _blank, _self, _parent, _top.

\n', - type: 'String', - optional: true - } - ], - return: { - description: - 'pointer to p5.Element holding created node', - type: 'p5.Element' - }, - example: [ - "\n
\ncreateA('http://p5js.org/', 'this is a link');\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 488, - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 490, - description: - '

Creates a slider <input></input> element in the DOM.\nUse .size() to set the display length of the slider.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', - itemtype: 'method', - name: 'createSlider', - params: [ - { - name: 'min', - description: '

minimum value of the slider

\n', - type: 'Number' - }, - { - name: 'max', - description: '

maximum value of the slider

\n', - type: 'Number' - }, - { - name: 'value', - description: '

default value of the slider

\n', - type: 'Number', - optional: true - }, - { - name: 'step', - description: - '

step size for each tick of the slider (if step is set to 0, the slider will move continuously from the minimum to the maximum value)

\n', - type: 'Number', - optional: true - } - ], - return: { - description: - 'pointer to p5.Element holding created node', - type: 'p5.Element' - }, - example: [ - "\n
\nvar slider;\nfunction setup() {\n slider = createSlider(0, 255, 100);\n slider.position(10, 10);\n slider.style('width', '80px');\n}\n\nfunction draw() {\n var val = slider.value();\n background(val);\n}\n
\n\n
\nvar slider;\nfunction setup() {\n colorMode(HSB);\n slider = createSlider(0, 360, 60, 40);\n slider.position(10, 10);\n slider.style('width', '80px');\n}\n\nfunction draw() {\n var val = slider.value();\n background(val, 100, 100, 1);\n}\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 547, - description: - '

Creates a <button></button> element in the DOM.\nUse .size() to set the display size of the button.\nUse .mousePressed() to specify behavior on press.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', - itemtype: 'method', - name: 'createButton', - params: [ - { - name: 'label', - description: '

label displayed on the button

\n', - type: 'String' - }, - { - name: 'value', - description: '

value of the button

\n', - type: 'String', - optional: true - } - ], - return: { - description: - 'pointer to p5.Element holding created node', - type: 'p5.Element' - }, - example: [ - "\n
\nvar button;\nfunction setup() {\n createCanvas(100, 100);\n background(0);\n button = createButton('click me');\n button.position(19, 19);\n button.mousePressed(changeBG);\n}\n\nfunction changeBG() {\n var val = random(255);\n background(val);\n}\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 583, - description: - '

Creates a checkbox <input></input> element in the DOM.\nCalling .checked() on a checkbox returns if it is checked or not

\n', - itemtype: 'method', - name: 'createCheckbox', - params: [ - { - name: 'label', - description: '

label displayed after checkbox

\n', - type: 'String', - optional: true - }, - { - name: 'value', - description: - '

value of the checkbox; checked is true, unchecked is false

\n', - type: 'Boolean', - optional: true - } - ], - return: { - description: - 'pointer to p5.Element holding created node', - type: 'p5.Element' - }, - example: [ - "\n
\nvar checkbox;\n\nfunction setup() {\n checkbox = createCheckbox('label', false);\n checkbox.changed(myCheckedEvent);\n}\n\nfunction myCheckedEvent() {\n if (this.checked()) {\n console.log('Checking!');\n } else {\n console.log('Unchecking!');\n }\n}\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 651, - description: - '

Creates a dropdown menu <select></select> element in the DOM.\nIt also helps to assign select-box methods to p5.Element when selecting existing select box

\n', - itemtype: 'method', - name: 'createSelect', - return: { - description: '', - type: 'p5.Element' - }, - example: [ - "\n
\nvar sel;\n\nfunction setup() {\n textAlign(CENTER);\n background(200);\n sel = createSelect();\n sel.position(10, 10);\n sel.option('pear');\n sel.option('kiwi');\n sel.option('grape');\n sel.changed(mySelectEvent);\n}\n\nfunction mySelectEvent() {\n var item = sel.value();\n background(200);\n text('It is a ' + item + '!', 50, 50);\n}\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom', - overloads: [ - { - line: 651, - params: [ - { - name: 'multiple', - description: - '

true if dropdown should support multiple selections

\n', - type: 'Boolean', - optional: true - } - ], - return: { - description: '', - type: 'p5.Element' - } - }, - { - line: 679, - params: [ - { - name: 'existing', - description: '

DOM select element

\n', - type: 'Object' - } - ], - return: { - description: '', - type: 'p5.Element' - } - } - ] - }, - { - file: 'lib/addons/p5.dom.js', - line: 755, - description: - '

Creates a radio button <input></input> element in the DOM.\nThe .option() method can be used to set options for the radio after it is\ncreated. The .value() method will return the currently selected option.

\n', - itemtype: 'method', - name: 'createRadio', - params: [ - { - name: 'divId', - description: - '

the id and name of the created div and input field respectively

\n', - type: 'String', - optional: true - } - ], - return: { - description: - 'pointer to p5.Element holding created node', - type: 'p5.Element' - }, - example: [ - "\n
\nvar radio;\n\nfunction setup() {\n radio = createRadio();\n radio.option('black');\n radio.option('white');\n radio.option('gray');\n radio.style('width', '60px');\n textAlign(CENTER);\n fill(255, 0, 0);\n}\n\nfunction draw() {\n var val = radio.value();\n background(val);\n text(val, width / 2, height / 2);\n}\n
\n
\nvar radio;\n\nfunction setup() {\n radio = createRadio();\n radio.option('apple', 1);\n radio.option('bread', 2);\n radio.option('juice', 3);\n radio.style('width', '60px');\n textAlign(CENTER);\n}\n\nfunction draw() {\n background(200);\n var val = radio.value();\n if (val) {\n text('item cost is $' + val, width / 2, height / 2);\n }\n}\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 893, - description: - '

Creates a colorPicker element in the DOM for color input.\nThe .value() method will return a hex string (#rrggbb) of the color.\nThe .color() method will return a p5.Color object with the current chosen color.

\n', - itemtype: 'method', - name: 'createColorPicker', - params: [ - { - name: 'value', - description: '

default color of element

\n', - type: 'String|p5.Color', - optional: true - } - ], - return: { - description: - 'pointer to p5.Element holding created node', - type: 'p5.Element' - }, - example: [ - "\n
\n\nvar inp1, inp2;\nfunction setup() {\n createCanvas(100, 100);\n background('grey');\n inp1 = createColorPicker('#ff0000');\n inp2 = createColorPicker(color('yellow'));\n inp1.input(setShade1);\n inp2.input(setShade2);\n setMidShade();\n}\n\nfunction setMidShade() {\n // Finding a shade between the two\n var commonShade = lerpColor(inp1.color(), inp2.color(), 0.5);\n fill(commonShade);\n rect(20, 20, 60, 60);\n}\n\nfunction setShade1() {\n setMidShade();\n console.log('You are choosing shade 1 to be : ', this.value());\n}\nfunction setShade2() {\n setMidShade();\n console.log('You are choosing shade 2 to be : ', this.value());\n}\n\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 967, - description: - '

Creates an <input></input> element in the DOM for text input.\nUse .size() to set the display length of the box.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', - itemtype: 'method', - name: 'createInput', - params: [ - { - name: 'value', - description: '

default value of the input box

\n', - type: 'String', - optional: true - }, - { - name: 'type', - description: - '

type of text, ie text, password etc. Defaults to text

\n', - type: 'String', - optional: true - } - ], - return: { - description: - 'pointer to p5.Element holding created node', - type: 'p5.Element' - }, - example: [ - "\n
\nfunction setup() {\n var inp = createInput('');\n inp.input(myInputEvent);\n}\n\nfunction myInputEvent() {\n console.log('you are typing: ', this.value());\n}\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 997, - description: - '

Creates an <input></input> element in the DOM of type 'file'.\nThis allows users to select local files for use in a sketch.

\n', - itemtype: 'method', - name: 'createFileInput', - params: [ - { - name: 'callback', - description: '

callback function for when a file loaded

\n', - type: 'Function', - optional: true - }, - { - name: 'multiple', - description: '

optional to allow multiple files selected

\n', - type: 'String', - optional: true - } - ], - return: { - description: - 'pointer to p5.Element holding created DOM element', - type: 'p5.Element' - }, - example: [ - "\n
\nlet input;\nlet img;\n\nfunction setup() {\n input = createFileInput(handleFile);\n input.position(0, 0);\n}\n\nfunction draw() {\n background(255);\n if (img) {\n image(img, 0, 0, width, height);\n }\n}\n\nfunction handleFile(file) {\n print(file);\n if (file.type === 'image') {\n img = createImg(file.data);\n img.hide();\n } else {\n img = null;\n }\n}\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 1070, - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 1112, - description: - '

Creates an HTML5 <video> element in the DOM for simple playback\nof audio/video. Shown by default, can be hidden with .hide()\nand drawn into canvas using video(). Appends to the container\nnode if one is specified, otherwise appends to body. The first parameter\ncan be either a single string path to a video file, or an array of string\npaths to different formats of the same video. This is useful for ensuring\nthat your video can play across different browsers, as each supports\ndifferent formats. See this\npage for further information about supported formats.

\n', - itemtype: 'method', - name: 'createVideo', - params: [ - { - name: 'src', - description: - '

path to a video file, or array of paths for\n supporting different browsers

\n', - type: 'String|String[]' - }, - { - name: 'callback', - description: - '

callback function to be called upon\n 'canplaythrough' event fire, that is, when the\n browser can play the media, and estimates that\n enough data has been loaded to play the media\n up to its end without having to stop for\n further buffering of content

\n', - type: 'Function', - optional: true - } - ], - return: { - description: 'pointer to video p5.Element', - type: 'p5.MediaElement' - }, - example: [ - "\n
\nvar vid;\nfunction setup() {\n noCanvas();\n\n vid = createVideo(\n ['assets/small.mp4', 'assets/small.ogv', 'assets/small.webm'],\n vidLoad\n );\n\n vid.size(100, 100);\n}\n\n// This function is called when the video loads\nfunction vidLoad() {\n vid.loop();\n vid.volume(0);\n}\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 1159, - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 1161, - description: - "

Creates a hidden HTML5 <audio> element in the DOM for simple audio\nplayback. Appends to the container node if one is specified,\notherwise appends to body. The first parameter\ncan be either a single string path to a audio file, or an array of string\npaths to different formats of the same audio. This is useful for ensuring\nthat your audio can play across different browsers, as each supports\ndifferent formats. See this\npage for further information about supported formats.

\n", - itemtype: 'method', - name: 'createAudio', - params: [ - { - name: 'src', - description: - '

path to an audio file, or array of paths\n for supporting different browsers

\n', - type: 'String|String[]', - optional: true - }, - { - name: 'callback', - description: - '

callback function to be called upon\n 'canplaythrough' event fire, that is, when the\n browser can play the media, and estimates that\n enough data has been loaded to play the media\n up to its end without having to stop for\n further buffering of content

\n', - type: 'Function', - optional: true - } - ], - return: { - description: 'pointer to audio p5.Element', - type: 'p5.MediaElement' - }, - example: [ - "\n
\nvar ele;\nfunction setup() {\n ele = createAudio('assets/beat.mp3');\n\n // here we set the element to autoplay\n // The element will play as soon\n // as it is able to do so.\n ele.autoplay(true);\n}\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 1199, - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 1201, - itemtype: 'property', - name: 'VIDEO', - type: 'String', - final: 1, - category: ['Constants'], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 1207, - itemtype: 'property', - name: 'AUDIO', - type: 'String', - final: 1, - category: ['Constants'], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 1244, - description: - '

Creates a new HTML5 <video> element that contains the audio/video\nfeed from a webcam. The element is separate from the canvas and is\ndisplayed by default. The element can be hidden using .hide(). The feed\ncan be drawn onto the canvas using image(). The loadedmetadata property can\nbe used to detect when the element has fully loaded (see second example).

\n

More specific properties of the feed can be passing in a Constraints object.\nSee the\n W3C\nspec for possible properties. Note that not all of these are supported\nby all browsers.

\n

Security note: A new browser security specification requires that getUserMedia,\nwhich is behind createCapture(), only works when you're running the code locally,\nor on HTTPS. Learn more here\nand here.

', - itemtype: 'method', - name: 'createCapture', - params: [ - { - name: 'type', - description: - '

type of capture, either VIDEO or\n AUDIO if none specified, default both,\n or a Constraints object

\n', - type: 'String|Constant|Object' - }, - { - name: 'callback', - description: - '

function to be called once\n stream has loaded

\n', - type: 'Function', - optional: true - } - ], - return: { - description: 'capture video p5.Element', - type: 'p5.Element' - }, - example: [ - "\n
\nvar capture;\n\nfunction setup() {\n createCanvas(480, 480);\n capture = createCapture(VIDEO);\n capture.hide();\n}\n\nfunction draw() {\n image(capture, 0, 0, width, width * capture.height / capture.width);\n filter(INVERT);\n}\n
\n
\nfunction setup() {\n createCanvas(480, 120);\n var constraints = {\n video: {\n mandatory: {\n minWidth: 1280,\n minHeight: 720\n },\n optional: [{ maxFrameRate: 10 }]\n },\n audio: true\n };\n createCapture(constraints, function(stream) {\n console.log(stream);\n });\n}\n
\n
\nvar capture;\n\nfunction setup() {\n createCanvas(640, 480);\n capture = createCapture(VIDEO);\n}\nfunction draw() {\n background(0);\n if (capture.loadedmetadata) {\n var c = capture.get(0, 0, 100, 100);\n image(c, 0, 0);\n }\n}\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 1381, - description: - '

Creates element with given tag in the DOM with given content.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', - itemtype: 'method', - name: 'createElement', - params: [ - { - name: 'tag', - description: '

tag for the new element

\n', - type: 'String' - }, - { - name: 'content', - description: '

html content to be inserted into the element

\n', - type: 'String', - optional: true - } - ], - return: { - description: - 'pointer to p5.Element holding created node', - type: 'p5.Element' - }, - example: [ - "\n
\ncreateElement('h2', 'im an h2 p5.element!');\n
" - ], - class: 'p5', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 1407, - description: '

Adds specified class to the element.

\n', - itemtype: 'method', - name: 'addClass', - params: [ - { - name: 'class', - description: '

name of class to add

\n', - type: 'String' - } - ], - chainable: 1, - example: [ - "\n
\n var div = createDiv('div');\n div.addClass('myClass');\n
" - ], - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 1432, - description: '

Removes specified class from the element.

\n', - itemtype: 'method', - name: 'removeClass', - params: [ - { - name: 'class', - description: '

name of class to remove

\n', - type: 'String' - } - ], - chainable: 1, - example: [ - "\n
\n // In this example, a class is set when the div is created\n // and removed when mouse is pressed. This could link up\n // with a CSS style rule to toggle style properties.\nvar div;\nfunction setup() {\n div = createDiv('div');\n div.addClass('myClass');\n }\nfunction mousePressed() {\n div.removeClass('myClass');\n }\n
" - ], - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 1463, - description: '

Checks if specified class already set to element

\n', - itemtype: 'method', - name: 'hasClass', - return: { - description: 'a boolean value if element has specified class', - type: 'Boolean' - }, - params: [ - { - name: 'c', - description: '

class name of class to check

\n', - type: 'String' - } - ], - example: [ - "\n
\n var div;\nfunction setup() {\n div = createDiv('div');\n div.addClass('show');\n }\nfunction mousePressed() {\n if (div.hasClass('show')) {\n div.addClass('show');\n } else {\n div.removeClass('show');\n }\n }\n
" - ], - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 1492, - description: '

Toggles element class

\n', - itemtype: 'method', - name: 'toggleClass', - params: [ - { - name: 'c', - description: '

class name to toggle

\n', - type: 'String' - } - ], - chainable: 1, - example: [ - "\n
\n var div;\nfunction setup() {\n div = createDiv('div');\n div.addClass('show');\n }\nfunction mousePressed() {\n div.toggleClass('show');\n }\n
" - ], - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 1525, - description: - '

Attaches the element as a child to the parent specified.\n Accepts either a string ID, DOM node, or p5.Element.\n If no argument is specified, an array of children DOM nodes is returned.

\n', - itemtype: 'method', - name: 'child', - return: { - description: 'an array of child nodes', - type: 'Node[]' - }, - example: [ - "\n
\n var div0 = createDiv('this is the parent');\n var div1 = createDiv('this is the child');\n div0.child(div1); // use p5.Element\n
\n
\n var div0 = createDiv('this is the parent');\n var div1 = createDiv('this is the child');\n div1.id('apples');\n div0.child('apples'); // use id\n
\n
\n // this example assumes there is a div already on the page\n // with id \"myChildDiv\"\n var div0 = createDiv('this is the parent');\n var elt = document.getElementById('myChildDiv');\n div0.child(elt); // use element from page\n
" - ], - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom', - overloads: [ - { - line: 1525, - params: [], - return: { - description: 'an array of child nodes', - type: 'Node[]' - } - }, - { - line: 1553, - params: [ - { - name: 'child', - description: - '

the ID, DOM node, or p5.Element\n to add to the current element

\n', - type: 'String|p5.Element', - optional: true - } - ], - chainable: 1 - } - ] - }, - { - file: 'lib/addons/p5.dom.js', - line: 1575, - description: - '

Centers a p5 Element either vertically, horizontally,\nor both, relative to its parent or according to\nthe body if the Element has no parent. If no argument is passed\nthe Element is aligned both vertically and horizontally.

\n', - itemtype: 'method', - name: 'center', - params: [ - { - name: 'align', - description: - '

passing 'vertical', 'horizontal' aligns element accordingly

\n', - type: 'String', - optional: true - } - ], - chainable: 1, - example: [ - "\n
\nfunction setup() {\n var div = createDiv('').size(10, 10);\n div.style('background-color', 'orange');\n div.center();\n}\n
" - ], - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 1629, - description: - '

If an argument is given, sets the inner HTML of the element,\n replacing any existing html. If true is included as a second\n argument, html is appended instead of replacing existing html.\n If no arguments are given, returns\n the inner HTML of the element.

\n', - itemtype: 'method', - name: 'html', - return: { - description: 'the inner HTML of the element', - type: 'String' - }, - example: [ - "\n
\n var div = createDiv('').size(100, 100);\n div.html('hi');\n
\n
\n var div = createDiv('Hello ').size(100, 100);\n div.html('World', true);\n
" - ], - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom', - overloads: [ - { - line: 1629, - params: [], - return: { - description: 'the inner HTML of the element', - type: 'String' - } - }, - { - line: 1650, - params: [ - { - name: 'html', - description: '

the HTML to be placed inside the element

\n', - type: 'String', - optional: true - }, - { - name: 'append', - description: '

whether to append HTML to existing

\n', - type: 'Boolean', - optional: true - } - ], - chainable: 1 - } - ] - }, - { - file: 'lib/addons/p5.dom.js', - line: 1668, - description: - '

Sets the position of the element relative to (0, 0) of the\n window. Essentially, sets position:absolute and left and top\n properties of style. If no arguments given returns the x and y position\n of the element in an object.

\n', - itemtype: 'method', - name: 'position', - return: { - description: 'the x and y position of the element in an object', - type: 'Object' - }, - example: [ - "\n
\n function setup() {\n var cnv = createCanvas(100, 100);\n // positions canvas 50px to the right and 100px\n // below upper left corner of the window\n cnv.position(50, 100);\n }\n
" - ], - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom', - overloads: [ - { - line: 1668, - params: [], - return: { - description: 'the x and y position of the element in an object', - type: 'Object' - } - }, - { - line: 1687, - params: [ - { - name: 'x', - description: '

x-position relative to upper left of window

\n', - type: 'Number', - optional: true - }, - { - name: 'y', - description: '

y-position relative to upper left of window

\n', - type: 'Number', - optional: true - } - ], - chainable: 1 - } - ] - }, - { - file: 'lib/addons/p5.dom.js', - line: 1762, - description: - '

Sets the given style (css) property (1st arg) of the element with the\ngiven value (2nd arg). If a single argument is given, .style()\nreturns the value of the given property; however, if the single argument\nis given in css syntax ('text-align:center'), .style() sets the css\nappropriately.

\n', - itemtype: 'method', - name: 'style', - return: { - description: 'value of property', - type: 'String' - }, - example: [ - "\n
\nvar myDiv = createDiv('I like pandas.');\nmyDiv.style('font-size', '18px');\nmyDiv.style('color', '#ff0000');\n
\n
\nvar col = color(25, 23, 200, 50);\nvar button = createButton('button');\nbutton.style('background-color', col);\nbutton.position(10, 10);\n
\n
\nvar myDiv;\nfunction setup() {\n background(200);\n myDiv = createDiv('I like gray.');\n myDiv.position(20, 20);\n}\n\nfunction draw() {\n myDiv.style('font-size', mouseX + 'px');\n}\n
" - ], - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom', - overloads: [ - { - line: 1762, - params: [ - { - name: 'property', - description: '

property to be set

\n', - type: 'String' - } - ], - return: { - description: 'value of property', - type: 'String' - } - }, - { - line: 1797, - params: [ - { - name: 'property', - description: '', - type: 'String' - }, - { - name: 'value', - description: '

value to assign to property

\n', - type: 'String|Number|p5.Color' - } - ], - chainable: 1, - return: { - description: - 'current value of property, if no value is given as second argument', - type: 'String' - } - } - ] - }, - { - file: 'lib/addons/p5.dom.js', - line: 1851, - description: - '

Adds a new attribute or changes the value of an existing attribute\n on the specified element. If no value is specified, returns the\n value of the given attribute, or null if attribute is not set.

\n', - itemtype: 'method', - name: 'attribute', - return: { - description: 'value of attribute', - type: 'String' - }, - example: [ - "\n
\n var myDiv = createDiv('I like pandas.');\n myDiv.attribute('align', 'center');\n
" - ], - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom', - overloads: [ - { - line: 1851, - params: [], - return: { - description: 'value of attribute', - type: 'String' - } - }, - { - line: 1866, - params: [ - { - name: 'attr', - description: '

attribute to set

\n', - type: 'String' - }, - { - name: 'value', - description: '

value to assign to attribute

\n', - type: 'String' - } - ], - chainable: 1 - } - ] - }, - { - file: 'lib/addons/p5.dom.js', - line: 1895, - description: '

Removes an attribute on the specified element.

\n', - itemtype: 'method', - name: 'removeAttribute', - params: [ - { - name: 'attr', - description: '

attribute to remove

\n', - type: 'String' - } - ], - chainable: 1, - example: [ - "\n
\n var button;\n var checkbox;\nfunction setup() {\n checkbox = createCheckbox('enable', true);\n checkbox.changed(enableButton);\n button = createButton('button');\n button.position(10, 10);\n }\nfunction enableButton() {\n if (this.checked()) {\n // Re-enable the button\n button.removeAttribute('disabled');\n } else {\n // Disable the button\n button.attribute('disabled', '');\n }\n }\n
" - ], - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 1940, - description: - '

Either returns the value of the element if no arguments\ngiven, or sets the value of the element.

\n', - itemtype: 'method', - name: 'value', - return: { - description: 'value of the element', - type: 'String|Number' - }, - example: [ - "\n
\n// gets the value\nvar inp;\nfunction setup() {\n inp = createInput('');\n}\n\nfunction mousePressed() {\n print(inp.value());\n}\n
\n
\n// sets the value\nvar inp;\nfunction setup() {\n inp = createInput('myValue');\n}\n\nfunction mousePressed() {\n inp.value('myValue');\n}\n
" - ], - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom', - overloads: [ - { - line: 1940, - params: [], - return: { - description: 'value of the element', - type: 'String|Number' - } - }, - { - line: 1970, - params: [ - { - name: 'value', - description: '', - type: 'String|Number' - } - ], - chainable: 1 - } - ] - }, - { - file: 'lib/addons/p5.dom.js', - line: 1986, - description: - '

Shows the current element. Essentially, setting display:block for the style.

\n', - itemtype: 'method', - name: 'show', - chainable: 1, - example: [ - "\n
\n var div = createDiv('div');\n div.style('display', 'none');\n div.show(); // turns display to block\n
" - ], - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 2004, - description: - '

Hides the current element. Essentially, setting display:none for the style.

\n', - itemtype: 'method', - name: 'hide', - chainable: 1, - example: [ - "\n
\nvar div = createDiv('this is a div');\ndiv.hide();\n
" - ], - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 2020, - description: - '

Sets the width and height of the element. AUTO can be used to\n only adjust one dimension at a time. If no arguments are given, it\n returns the width and height of the element in an object. In case of\n elements which need to be loaded, such as images, it is recommended\n to call the function after the element has finished loading.

\n', - itemtype: 'method', - name: 'size', - return: { - description: 'the width and height of the element in an object', - type: 'Object' - }, - example: [ - "\n
\n let div = createDiv('this is a div');\n div.size(100, 100);\n let img = createImg('assets/laDefense.jpg', () => {\n img.size(10, AUTO);\n });\n
" - ], - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom', - overloads: [ - { - line: 2020, - params: [], - return: { - description: 'the width and height of the element in an object', - type: 'Object' - } - }, - { - line: 2039, - params: [ - { - name: 'w', - description: - '

width of the element, either AUTO, or a number

\n', - type: 'Number|Constant' - }, - { - name: 'h', - description: - '

height of the element, either AUTO, or a number

\n', - type: 'Number|Constant', - optional: true - } - ], - chainable: 1 - } - ] - }, - { - file: 'lib/addons/p5.dom.js', - line: 2099, - description: '

Removes the element and deregisters all listeners.

\n', - itemtype: 'method', - name: 'remove', - example: [ - "\n
\nvar myDiv = createDiv('this is some text');\nmyDiv.remove();\n
" - ], - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 2119, - description: - '

Registers a callback that gets called every time a file that is\ndropped on the element has been loaded.\np5 will load every dropped file into memory and pass it as a p5.File object to the callback.\nMultiple files dropped at the same time will result in multiple calls to the callback.

\n

You can optionally pass a second callback which will be registered to the raw\ndrop event.\nThe callback will thus be provided the original\nDragEvent.\nDropping multiple files at the same time will trigger the second callback once per drop,\nwhereas the first callback will trigger for each loaded file.

\n', - itemtype: 'method', - name: 'drop', - params: [ - { - name: 'callback', - description: - '

callback to receive loaded file, called for each file dropped.

\n', - type: 'Function' - }, - { - name: 'fxn', - description: - '

callback triggered once when files are dropped with the drop event.

\n', - type: 'Function', - optional: true - } - ], - chainable: 1, - example: [ - "\n
\nfunction setup() {\n var c = createCanvas(100, 100);\n background(200);\n textAlign(CENTER);\n text('drop file', width / 2, height / 2);\n c.drop(gotFile);\n}\n\nfunction gotFile(file) {\n background(200);\n text('received file:', width / 2, height / 2);\n text(file.name, width / 2, height / 2 + 50);\n}\n
\n\n
\nvar img;\n\nfunction setup() {\n var c = createCanvas(100, 100);\n background(200);\n textAlign(CENTER);\n text('drop image', width / 2, height / 2);\n c.drop(gotFile);\n}\n\nfunction draw() {\n if (img) {\n image(img, 0, 0, width, height);\n }\n}\n\nfunction gotFile(file) {\n img = createImg(file.data).hide();\n}\n
" - ], - alt: 'Canvas turns into whatever image is dragged/dropped onto it.', - class: 'p5.Element', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 2253, - description: '

Path to the media element source.

\n', - itemtype: 'property', - name: 'src', - return: { - description: 'src', - type: 'String' - }, - example: [ - "\n
\nvar ele;\n\nfunction setup() {\n background(250);\n\n //p5.MediaElement objects are usually created\n //by calling the createAudio(), createVideo(),\n //and createCapture() functions.\n\n //In this example we create\n //a new p5.MediaElement via createAudio().\n ele = createAudio('assets/beat.mp3');\n\n //We'll set up our example so that\n //when you click on the text,\n //an alert box displays the MediaElement's\n //src field.\n textAlign(CENTER);\n text('Click Me!', width / 2, height / 2);\n}\n\nfunction mouseClicked() {\n //here we test if the mouse is over the\n //canvas element when it's clicked\n if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n //Show our p5.MediaElement's src field\n alert(ele.src);\n }\n}\n
" - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 2319, - description: '

Play an HTML5 media element.

\n', - itemtype: 'method', - name: 'play', - chainable: 1, - example: [ - "\n
\nvar ele;\n\nfunction setup() {\n //p5.MediaElement objects are usually created\n //by calling the createAudio(), createVideo(),\n //and createCapture() functions.\n\n //In this example we create\n //a new p5.MediaElement via createAudio().\n ele = createAudio('assets/beat.mp3');\n\n background(250);\n textAlign(CENTER);\n text('Click to Play!', width / 2, height / 2);\n}\n\nfunction mouseClicked() {\n //here we test if the mouse is over the\n //canvas element when it's clicked\n if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n //Here we call the play() function on\n //the p5.MediaElement we created above.\n //This will start the audio sample.\n ele.play();\n\n background(200);\n text('You clicked Play!', width / 2, height / 2);\n }\n}\n
" - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 2380, - description: - '

Stops an HTML5 media element (sets current time to zero).

\n', - itemtype: 'method', - name: 'stop', - chainable: 1, - example: [ - "\n
\n//This example both starts\n//and stops a sound sample\n//when the user clicks the canvas\n\n//We will store the p5.MediaElement\n//object in here\nvar ele;\n\n//while our audio is playing,\n//this will be set to true\nvar sampleIsPlaying = false;\n\nfunction setup() {\n //Here we create a p5.MediaElement object\n //using the createAudio() function.\n ele = createAudio('assets/beat.mp3');\n background(200);\n textAlign(CENTER);\n text('Click to play!', width / 2, height / 2);\n}\n\nfunction mouseClicked() {\n //here we test if the mouse is over the\n //canvas element when it's clicked\n if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n background(200);\n\n if (sampleIsPlaying) {\n //if the sample is currently playing\n //calling the stop() function on\n //our p5.MediaElement will stop\n //it and reset its current\n //time to 0 (i.e. it will start\n //at the beginning the next time\n //you play it)\n ele.stop();\n\n sampleIsPlaying = false;\n text('Click to play!', width / 2, height / 2);\n } else {\n //loop our sound element until we\n //call ele.stop() on it.\n ele.loop();\n\n sampleIsPlaying = true;\n text('Click to stop!', width / 2, height / 2);\n }\n }\n}\n
" - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 2444, - description: '

Pauses an HTML5 media element.

\n', - itemtype: 'method', - name: 'pause', - chainable: 1, - example: [ - "\n
\n//This example both starts\n//and pauses a sound sample\n//when the user clicks the canvas\n\n//We will store the p5.MediaElement\n//object in here\nvar ele;\n\n//while our audio is playing,\n//this will be set to true\nvar sampleIsPlaying = false;\n\nfunction setup() {\n //Here we create a p5.MediaElement object\n //using the createAudio() function.\n ele = createAudio('assets/lucky_dragons.mp3');\n background(200);\n textAlign(CENTER);\n text('Click to play!', width / 2, height / 2);\n}\n\nfunction mouseClicked() {\n //here we test if the mouse is over the\n //canvas element when it's clicked\n if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n background(200);\n\n if (sampleIsPlaying) {\n //Calling pause() on our\n //p5.MediaElement will stop it\n //playing, but when we call the\n //loop() or play() functions\n //the sample will start from\n //where we paused it.\n ele.pause();\n\n sampleIsPlaying = false;\n text('Click to resume!', width / 2, height / 2);\n } else {\n //loop our sound element until we\n //call ele.pause() on it.\n ele.loop();\n\n sampleIsPlaying = true;\n text('Click to pause!', width / 2, height / 2);\n }\n }\n}\n
" - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 2506, - description: - '

Set 'loop' to true for an HTML5 media element, and starts playing.

\n', - itemtype: 'method', - name: 'loop', - chainable: 1, - example: [ - "\n
\n//Clicking the canvas will loop\n//the audio sample until the user\n//clicks again to stop it\n\n//We will store the p5.MediaElement\n//object in here\nvar ele;\n\n//while our audio is playing,\n//this will be set to true\nvar sampleIsLooping = false;\n\nfunction setup() {\n //Here we create a p5.MediaElement object\n //using the createAudio() function.\n ele = createAudio('assets/lucky_dragons.mp3');\n background(200);\n textAlign(CENTER);\n text('Click to loop!', width / 2, height / 2);\n}\n\nfunction mouseClicked() {\n //here we test if the mouse is over the\n //canvas element when it's clicked\n if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n background(200);\n\n if (!sampleIsLooping) {\n //loop our sound element until we\n //call ele.stop() on it.\n ele.loop();\n\n sampleIsLooping = true;\n text('Click to stop!', width / 2, height / 2);\n } else {\n ele.stop();\n\n sampleIsLooping = false;\n text('Click to loop!', width / 2, height / 2);\n }\n }\n}\n
" - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 2562, - description: - '

Set 'loop' to false for an HTML5 media element. Element will stop\nwhen it reaches the end.

\n', - itemtype: 'method', - name: 'noLoop', - chainable: 1, - example: [ - "\n
\n//This example both starts\n//and stops loop of sound sample\n//when the user clicks the canvas\n\n//We will store the p5.MediaElement\n//object in here\nvar ele;\n//while our audio is playing,\n//this will be set to true\nvar sampleIsPlaying = false;\n\nfunction setup() {\n //Here we create a p5.MediaElement object\n //using the createAudio() function.\n ele = createAudio('assets/beat.mp3');\n background(200);\n textAlign(CENTER);\n text('Click to play!', width / 2, height / 2);\n}\n\nfunction mouseClicked() {\n //here we test if the mouse is over the\n //canvas element when it's clicked\n if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n background(200);\n\n if (sampleIsPlaying) {\n ele.noLoop();\n text('No more Loops!', width / 2, height / 2);\n } else {\n ele.loop();\n sampleIsPlaying = true;\n text('Click to stop looping!', width / 2, height / 2);\n }\n }\n}\n
\n" - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 2614, - description: '

Set HTML5 media element to autoplay or not.

\n', - itemtype: 'method', - name: 'autoplay', - params: [ - { - name: 'autoplay', - description: '

whether the element should autoplay

\n', - type: 'Boolean' - } - ], - chainable: 1, - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 2626, - description: - '

Sets volume for this HTML5 media element. If no argument is given,\nreturns the current volume.

\n', - itemtype: 'method', - name: 'volume', - return: { - description: 'current volume', - type: 'Number' - }, - example: [ - "\n
\nvar ele;\nfunction setup() {\n // p5.MediaElement objects are usually created\n // by calling the createAudio(), createVideo(),\n // and createCapture() functions.\n // In this example we create\n // a new p5.MediaElement via createAudio().\n ele = createAudio('assets/lucky_dragons.mp3');\n background(250);\n textAlign(CENTER);\n text('Click to Play!', width / 2, height / 2);\n}\nfunction mouseClicked() {\n // Here we call the volume() function\n // on the sound element to set its volume\n // Volume must be between 0.0 and 1.0\n ele.volume(0.2);\n ele.play();\n background(200);\n text('You clicked Play!', width / 2, height / 2);\n}\n
\n
\nvar audio;\nvar counter = 0;\n\nfunction loaded() {\n audio.play();\n}\n\nfunction setup() {\n audio = createAudio('assets/lucky_dragons.mp3', loaded);\n textAlign(CENTER);\n}\n\nfunction draw() {\n if (counter === 0) {\n background(0, 255, 0);\n text('volume(0.9)', width / 2, height / 2);\n } else if (counter === 1) {\n background(255, 255, 0);\n text('volume(0.5)', width / 2, height / 2);\n } else if (counter === 2) {\n background(255, 0, 0);\n text('volume(0.1)', width / 2, height / 2);\n }\n}\n\nfunction mousePressed() {\n counter++;\n if (counter === 0) {\n audio.volume(0.9);\n } else if (counter === 1) {\n audio.volume(0.5);\n } else if (counter === 2) {\n audio.volume(0.1);\n } else {\n counter = 0;\n audio.volume(0.9);\n }\n}\n\n
" - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom', - overloads: [ - { - line: 2626, - params: [], - return: { - description: 'current volume', - type: 'Number' - } - }, - { - line: 2699, - params: [ - { - name: 'val', - description: '

volume between 0.0 and 1.0

\n', - type: 'Number' - } - ], - chainable: 1 - } - ] - }, - { - file: 'lib/addons/p5.dom.js', - line: 2712, - description: - '

If no arguments are given, returns the current playback speed of the\nelement. The speed parameter sets the speed where 2.0 will play the\nelement twice as fast, 0.5 will play at half the speed, and -1 will play\nthe element in normal speed in reverse.(Note that not all browsers support\nbackward playback and even if they do, playback might not be smooth.)

\n', - itemtype: 'method', - name: 'speed', - return: { - description: 'current playback speed of the element', - type: 'Number' - }, - example: [ - "\n
\n//Clicking the canvas will loop\n//the audio sample until the user\n//clicks again to stop it\n\n//We will store the p5.MediaElement\n//object in here\nvar ele;\nvar button;\n\nfunction setup() {\n createCanvas(710, 400);\n //Here we create a p5.MediaElement object\n //using the createAudio() function.\n ele = createAudio('assets/beat.mp3');\n ele.loop();\n background(200);\n\n button = createButton('2x speed');\n button.position(100, 68);\n button.mousePressed(twice_speed);\n\n button = createButton('half speed');\n button.position(200, 68);\n button.mousePressed(half_speed);\n\n button = createButton('reverse play');\n button.position(300, 68);\n button.mousePressed(reverse_speed);\n\n button = createButton('STOP');\n button.position(400, 68);\n button.mousePressed(stop_song);\n\n button = createButton('PLAY!');\n button.position(500, 68);\n button.mousePressed(play_speed);\n}\n\nfunction twice_speed() {\n ele.speed(2);\n}\n\nfunction half_speed() {\n ele.speed(0.5);\n}\n\nfunction reverse_speed() {\n ele.speed(-1);\n}\n\nfunction stop_song() {\n ele.stop();\n}\n\nfunction play_speed() {\n ele.play();\n}\n
" - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom', - overloads: [ - { - line: 2712, - params: [], - return: { - description: 'current playback speed of the element', - type: 'Number' - } - }, - { - line: 2783, - params: [ - { - name: 'speed', - description: '

speed multiplier for element playback

\n', - type: 'Number' - } - ], - chainable: 1 - } - ] - }, - { - file: 'lib/addons/p5.dom.js', - line: 2800, - description: - '

If no arguments are given, returns the current time of the element.\nIf an argument is given the current time of the element is set to it.

\n', - itemtype: 'method', - name: 'time', - return: { - description: 'current time (in seconds)', - type: 'Number' - }, - example: [ - "\n
\nvar ele;\nvar beginning = true;\nfunction setup() {\n //p5.MediaElement objects are usually created\n //by calling the createAudio(), createVideo(),\n //and createCapture() functions.\n\n //In this example we create\n //a new p5.MediaElement via createAudio().\n ele = createAudio('assets/lucky_dragons.mp3');\n background(250);\n textAlign(CENTER);\n text('start at beginning', width / 2, height / 2);\n}\n\n// this function fires with click anywhere\nfunction mousePressed() {\n if (beginning === true) {\n // here we start the sound at the beginning\n // time(0) is not necessary here\n // as this produces the same result as\n // play()\n ele.play().time(0);\n background(200);\n text('jump 2 sec in', width / 2, height / 2);\n beginning = false;\n } else {\n // here we jump 2 seconds into the sound\n ele.play().time(2);\n background(250);\n text('start at beginning', width / 2, height / 2);\n beginning = true;\n }\n}\n
" - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom', - overloads: [ - { - line: 2800, - params: [], - return: { - description: 'current time (in seconds)', - type: 'Number' - } - }, - { - line: 2845, - params: [ - { - name: 'time', - description: '

time to jump to (in seconds)

\n', - type: 'Number' - } - ], - chainable: 1 - } - ] - }, - { - file: 'lib/addons/p5.dom.js', - line: 2859, - description: '

Returns the duration of the HTML5 media element.

\n', - itemtype: 'method', - name: 'duration', - return: { - description: 'duration', - type: 'Number' - }, - example: [ - "\n
\nvar ele;\nfunction setup() {\n //p5.MediaElement objects are usually created\n //by calling the createAudio(), createVideo(),\n //and createCapture() functions.\n //In this example we create\n //a new p5.MediaElement via createAudio().\n ele = createAudio('assets/doorbell.mp3');\n background(250);\n textAlign(CENTER);\n text('Click to know the duration!', 10, 25, 70, 80);\n}\nfunction mouseClicked() {\n ele.play();\n background(200);\n //ele.duration dislpays the duration\n text(ele.duration() + ' seconds', width / 2, height / 2);\n}\n
" - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 2990, - description: - '

Schedule an event to be called when the audio or video\nelement reaches the end. If the element is looping,\nthis will not be called. The element is passed in\nas the argument to the onended callback.

\n', - itemtype: 'method', - name: 'onended', - params: [ - { - name: 'callback', - description: - '

function to call when the\n soundfile has ended. The\n media element will be passed\n in as the argument to the\n callback.

\n', - type: 'Function' - } - ], - chainable: 1, - example: [ - "\n
\nfunction setup() {\n var audioEl = createAudio('assets/beat.mp3');\n audioEl.showControls();\n audioEl.onended(sayDone);\n}\n\nfunction sayDone(elt) {\n alert('done playing ' + elt.src);\n}\n
" - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 3021, - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 3023, - description: - '

Send the audio output of this element to a specified audioNode or\np5.sound object. If no element is provided, connects to p5's master\noutput. That connection is established when this method is first called.\nAll connections are removed by the .disconnect() method.

\n

This method is meant to be used with the p5.sound.js addon library.

\n', - itemtype: 'method', - name: 'connect', - params: [ - { - name: 'audioNode', - description: - '

AudioNode from the Web Audio API,\nor an object from the p5.sound library

\n', - type: 'AudioNode|Object' - } - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 3072, - description: - '

Disconnect all Web Audio routing, including to master output.\nThis is useful if you want to re-route the output through\naudio effects, for example.

\n', - itemtype: 'method', - name: 'disconnect', - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 3087, - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 3089, - description: - '

Show the default MediaElement controls, as determined by the web browser.

\n', - itemtype: 'method', - name: 'showControls', - example: [ - "\n
\nvar ele;\nfunction setup() {\n //p5.MediaElement objects are usually created\n //by calling the createAudio(), createVideo(),\n //and createCapture() functions.\n //In this example we create\n //a new p5.MediaElement via createAudio()\n ele = createAudio('assets/lucky_dragons.mp3');\n background(200);\n textAlign(CENTER);\n text('Click to Show Controls!', 10, 25, 70, 80);\n}\nfunction mousePressed() {\n ele.showControls();\n background(200);\n text('Controls Shown', width / 2, height / 2);\n}\n
" - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 3120, - description: '

Hide the default mediaElement controls.

\n', - itemtype: 'method', - name: 'hideControls', - example: [ - "\n
\nvar ele;\nfunction setup() {\n //p5.MediaElement objects are usually created\n //by calling the createAudio(), createVideo(),\n //and createCapture() functions.\n //In this example we create\n //a new p5.MediaElement via createAudio()\n ele = createAudio('assets/lucky_dragons.mp3');\n ele.showControls();\n background(200);\n textAlign(CENTER);\n text('Click to hide Controls!', 10, 25, 70, 80);\n}\nfunction mousePressed() {\n ele.hideControls();\n background(200);\n text('Controls hidden', width / 2, height / 2);\n}\n
" - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 3149, - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 3160, - description: - '

Schedule events to trigger every time a MediaElement\n(audio/video) reaches a playback cue point.

\n

Accepts a callback function, a time (in seconds) at which to trigger\nthe callback, and an optional parameter for the callback.

\n

Time will be passed as the first parameter to the callback function,\nand param will be the second parameter.

\n', - itemtype: 'method', - name: 'addCue', - params: [ - { - name: 'time', - description: - '

Time in seconds, relative to this media\n element's playback. For example, to trigger\n an event every time playback reaches two\n seconds, pass in the number 2. This will be\n passed as the first parameter to\n the callback function.

\n', - type: 'Number' - }, - { - name: 'callback', - description: - '

Name of a function that will be\n called at the given time. The callback will\n receive time and (optionally) param as its\n two parameters.

\n', - type: 'Function' - }, - { - name: 'value', - description: - '

An object to be passed as the\n second parameter to the\n callback function.

\n', - type: 'Object', - optional: true - } - ], - return: { - description: - 'id ID of this cue,\n useful for removeCue(id)', - type: 'Number' - }, - example: [ - "\n
\n//\n//\nfunction setup() {\n noCanvas();\n\n var audioEl = createAudio('assets/beat.mp3');\n audioEl.showControls();\n\n // schedule three calls to changeBackground\n audioEl.addCue(0.5, changeBackground, color(255, 0, 0));\n audioEl.addCue(1.0, changeBackground, color(0, 255, 0));\n audioEl.addCue(2.5, changeBackground, color(0, 0, 255));\n audioEl.addCue(3.0, changeBackground, color(0, 255, 255));\n audioEl.addCue(4.2, changeBackground, color(255, 255, 0));\n audioEl.addCue(5.0, changeBackground, color(255, 255, 0));\n}\n\nfunction changeBackground(val) {\n background(val);\n}\n
" - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 3224, - description: - '

Remove a callback based on its ID. The ID is returned by the\naddCue method.

\n', - itemtype: 'method', - name: 'removeCue', - params: [ - { - name: 'id', - description: '

ID of the cue, as returned by addCue

\n', - type: 'Number' - } - ], - example: [ - "\n
\nvar audioEl, id1, id2;\nfunction setup() {\n background(255, 255, 255);\n audioEl = createAudio('assets/beat.mp3');\n audioEl.showControls();\n // schedule five calls to changeBackground\n id1 = audioEl.addCue(0.5, changeBackground, color(255, 0, 0));\n audioEl.addCue(1.0, changeBackground, color(0, 255, 0));\n audioEl.addCue(2.5, changeBackground, color(0, 0, 255));\n audioEl.addCue(3.0, changeBackground, color(0, 255, 255));\n id2 = audioEl.addCue(4.2, changeBackground, color(255, 255, 0));\n text('Click to remove first and last Cue!', 10, 25, 70, 80);\n}\nfunction mousePressed() {\n audioEl.removeCue(id1);\n audioEl.removeCue(id2);\n}\nfunction changeBackground(val) {\n background(val);\n}\n
" - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 3266, - description: - '

Remove all of the callbacks that had originally been scheduled\nvia the addCue method.

\n', - itemtype: 'method', - name: 'clearCues', - params: [ - { - name: 'id', - description: '

ID of the cue, as returned by addCue

\n', - type: 'Number' - } - ], - example: [ - "\n
\nvar audioEl;\nfunction setup() {\n background(255, 255, 255);\n audioEl = createAudio('assets/beat.mp3');\n //Show the default MediaElement controls, as determined by the web browser\n audioEl.showControls();\n // schedule calls to changeBackground\n background(200);\n text('Click to change Cue!', 10, 25, 70, 80);\n audioEl.addCue(0.5, changeBackground, color(255, 0, 0));\n audioEl.addCue(1.0, changeBackground, color(0, 255, 0));\n audioEl.addCue(2.5, changeBackground, color(0, 0, 255));\n audioEl.addCue(3.0, changeBackground, color(0, 255, 255));\n audioEl.addCue(4.2, changeBackground, color(255, 255, 0));\n}\nfunction mousePressed() {\n // here we clear the scheduled callbacks\n audioEl.clearCues();\n // then we add some more callbacks\n audioEl.addCue(1, changeBackground, color(2, 2, 2));\n audioEl.addCue(3, changeBackground, color(255, 255, 0));\n}\nfunction changeBackground(val) {\n background(val);\n}\n
" - ], - class: 'p5.MediaElement', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 3332, - description: - '

Underlying File object. All normal File methods can be called on this.

\n', - itemtype: 'property', - name: 'file', - class: 'p5.File', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 3344, - description: '

File type (image, text, etc.)

\n', - itemtype: 'property', - name: 'type', - class: 'p5.File', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 3350, - description: - '

File subtype (usually the file extension jpg, png, xml, etc.)

\n', - itemtype: 'property', - name: 'subtype', - class: 'p5.File', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 3356, - description: '

File name

\n', - itemtype: 'property', - name: 'name', - class: 'p5.File', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 3362, - description: '

File size

\n', - itemtype: 'property', - name: 'size', - class: 'p5.File', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.dom.js', - line: 3369, - description: '

URL string containing image data.

\n', - itemtype: 'property', - name: 'data', - class: 'p5.File', - module: 'p5.dom', - submodule: 'p5.dom' - }, - { - file: 'lib/addons/p5.sound.js', - line: 46, - description: - '

p5.sound \nhttps://p5js.org/reference/#/libraries/p5.sound

\n

From the Processing Foundation and contributors\nhttps://github.com/processing/p5.js-sound/graphs/contributors

\n

MIT License (MIT)\nhttps://github.com/processing/p5.js-sound/blob/master/LICENSE

\n

Some of the many audio libraries & resources that inspire p5.sound:

\n\n', - class: 'p5.sound', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 214, - description: - '

Determine which filetypes are supported (inspired by buzz.js)\nThe audio element (el) will only be used to test browser support for various audio formats

\n', - class: 'p5.sound', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 363, - class: 'p5.sound', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 740, - class: 'p5.sound', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 810, - class: 'p5.sound', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 1005, - description: - "

Returns the Audio Context for this sketch. Useful for users\nwho would like to dig deeper into the Web Audio API\n.

\n\n

Some browsers require users to startAudioContext\nwith a user gesture, such as touchStarted in the example below.

", - itemtype: 'method', - name: 'getAudioContext', - return: { - description: 'AudioContext for this sketch', - type: 'Object' - }, - example: [ - "\n
\n function draw() {\n background(255);\n textAlign(CENTER);\n\n if (getAudioContext().state !== 'running') {\n text('click to start audio', width/2, height/2);\n } else {\n text('audio is enabled', width/2, height/2);\n }\n }\n\n function touchStarted() {\n if (getAudioContext().state !== 'running') {\n getAudioContext().resume();\n }\n var synth = new p5.MonoSynth();\n synth.play('A4', 0.5, 0, 0.2);\n }\n\n
" - ], - class: 'p5.sound', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 1042, - description: - '

It is a good practice to give users control over starting audio playback.\nThis practice is enforced by Google Chrome's autoplay policy as of r70\n(info), iOS Safari, and other browsers.\n

\n\n

\nuserStartAudio() starts the Audio Context on a user gesture. It utilizes\nthe StartAudioContext library by\nYotam Mann (MIT Licence, 2016). Read more at https://github.com/tambien/StartAudioContext.\n

\n\n

Starting the audio context on a user gesture can be as simple as userStartAudio().\nOptional parameters let you decide on a specific element that will start the audio context,\nand/or call a function once the audio context is started.

', - params: [ - { - name: 'element(s)', - description: - '

This argument can be an Element,\n Selector String, NodeList, p5.Element,\n jQuery Element, or an Array of any of those.

\n', - type: 'Element|Array', - optional: true - }, - { - name: 'callback', - description: - '

Callback to invoke when the AudioContext has started

\n', - type: 'Function', - optional: true - } - ], - return: { - description: - "Returns a Promise which is resolved when\n the AudioContext state is 'running'", - type: 'Promise' - }, - itemtype: 'method', - name: 'userStartAudio', - example: [ - "\n
\nfunction setup() {\n var myDiv = createDiv('click to start audio');\n myDiv.position(0, 0);\n\n var mySynth = new p5.MonoSynth();\n\n // This won't play until the context has started\n mySynth.play('A6');\n\n // Start the audio context on a click/touch event\n userStartAudio().then(function() {\n myDiv.remove();\n });\n}\n
" - ], - class: 'p5.sound', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 1099, - description: - '

Master contains AudioContext and the master sound output.

\n', - class: 'p5.sound', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 1132, - description: - '

Returns a number representing the master amplitude (volume) for sound\nin this sketch.

\n', - itemtype: 'method', - name: 'getMasterVolume', - return: { - description: - 'Master amplitude (volume) for sound in this sketch.\n Should be between 0.0 (silence) and 1.0.', - type: 'Number' - }, - class: 'p5.sound', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 1143, - description: - '

Scale the output of all sound in this sketch

\nScaled between 0.0 (silence) and 1.0 (full volume).\n1.0 is the maximum amplitude of a digital sound, so multiplying\nby greater than 1.0 may cause digital distortion. To\nfade, provide a rampTime parameter. For more\ncomplex fades, see the Envelope class.\n\nAlternately, you can pass in a signal source such as an\noscillator to modulate the amplitude with an audio signal.\n\n

How This Works: When you load the p5.sound module, it\ncreates a single instance of p5sound. All sound objects in this\nmodule output to p5sound before reaching your computer's output.\nSo if you change the amplitude of p5sound, it impacts all of the\nsound in this module.

\n\n

If no value is provided, returns a Web Audio API Gain Node

', - itemtype: 'method', - name: 'masterVolume', - params: [ - { - name: 'volume', - description: - '

Volume (amplitude) between 0.0\n and 1.0 or modulating signal/oscillator

\n', - type: 'Number|Object' - }, - { - name: 'rampTime', - description: '

Fade for t seconds

\n', - type: 'Number', - optional: true - }, - { - name: 'timeFromNow', - description: - '

Schedule this event to happen at\n t seconds in the future

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.sound', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 1185, - description: - '

p5.soundOut is the p5.sound master output. It sends output to\nthe destination of this window's web audio context. It contains\nWeb Audio API nodes including a dyanmicsCompressor (.limiter),\nand Gain Nodes for .input and .output.

\n', - itemtype: 'property', - name: 'soundOut', - type: 'Object', - class: 'p5.sound', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 1210, - class: 'p5', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 1213, - description: - '

Returns a number representing the sample rate, in samples per second,\nof all sound objects in this audio context. It is determined by the\nsampling rate of your operating system's sound card, and it is not\ncurrently possile to change.\nIt is often 44100, or twice the range of human hearing.

\n', - itemtype: 'method', - name: 'sampleRate', - return: { - description: 'samplerate samples per second', - type: 'Number' - }, - class: 'p5', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 1226, - description: - '

Returns the closest MIDI note value for\na given frequency.

\n', - itemtype: 'method', - name: 'freqToMidi', - params: [ - { - name: 'frequency', - description: - '

A freqeuncy, for example, the "A"\n above Middle C is 440Hz

\n', - type: 'Number' - } - ], - return: { - description: 'MIDI note value', - type: 'Number' - }, - class: 'p5', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 1240, - description: - '

Returns the frequency value of a MIDI note value.\nGeneral MIDI treats notes as integers where middle C\nis 60, C# is 61, D is 62 etc. Useful for generating\nmusical frequencies with oscillators.

\n', - itemtype: 'method', - name: 'midiToFreq', - params: [ - { - name: 'midiNote', - description: '

The number of a MIDI note

\n', - type: 'Number' - } - ], - return: { - description: 'Frequency value of the given MIDI note', - type: 'Number' - }, - example: [ - "\n
\nvar notes = [60, 64, 67, 72];\nvar i = 0;\n\nfunction setup() {\n osc = new p5.Oscillator('Triangle');\n osc.start();\n frameRate(1);\n}\n\nfunction draw() {\n var freq = midiToFreq(notes[i]);\n osc.freq(freq);\n i++;\n if (i >= notes.length){\n i = 0;\n }\n}\n
" - ], - class: 'p5', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 1302, - description: - '

List the SoundFile formats that you will include. LoadSound\nwill search your directory for these extensions, and will pick\na format that is compatable with the client's web browser.\nHere is a free online file\nconverter.

\n', - itemtype: 'method', - name: 'soundFormats', - params: [ - { - name: 'formats', - description: - '

i.e. 'mp3', 'wav', 'ogg'

\n', - type: 'String', - optional: true, - multiple: true - } - ], - example: [ - "\n
\nfunction preload() {\n // set the global sound formats\n soundFormats('mp3', 'ogg');\n\n // load either beatbox.mp3, or .ogg, depending on browser\n mySound = loadSound('assets/beatbox.mp3');\n}\n\nfunction setup() {\n mySound.play();\n}\n
" - ], - class: 'p5', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 1415, - description: '

Used by Osc and Envelope to chain signal math

\n', - class: 'p5', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 1763, - description: - '

loadSound() returns a new p5.SoundFile from a specified\npath. If called during preload(), the p5.SoundFile will be ready\nto play in time for setup() and draw(). If called outside of\npreload, the p5.SoundFile will not be ready immediately, so\nloadSound accepts a callback as the second parameter. Using a\n\nlocal server is recommended when loading external files.

\n', - itemtype: 'method', - name: 'loadSound', - params: [ - { - name: 'path', - description: - '

Path to the sound file, or an array with\n paths to soundfiles in multiple formats\n i.e. ['sound.ogg', 'sound.mp3'].\n Alternately, accepts an object: either\n from the HTML5 File API, or a p5.File.

\n', - type: 'String|Array' - }, - { - name: 'successCallback', - description: '

Name of a function to call once file loads

\n', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: - '

Name of a function to call if there is\n an error loading the file.

\n', - type: 'Function', - optional: true - }, - { - name: 'whileLoading', - description: - '

Name of a function to call while file is loading.\n This function will receive the percentage loaded\n so far, from 0.0 to 1.0.

\n', - type: 'Function', - optional: true - } - ], - return: { - description: 'Returns a p5.SoundFile', - type: 'SoundFile' - }, - example: [ - "\n
\nfunction preload() {\n mySound = loadSound('assets/doorbell.mp3');\n}\n\nfunction setup() {\n mySound.setVolume(0.1);\n mySound.play();\n}\n
" - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 1919, - description: - '

Returns true if the sound file finished loading successfully.

\n', - itemtype: 'method', - name: 'isLoaded', - return: { - description: '', - type: 'Boolean' - }, - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 1932, - description: '

Play the p5.SoundFile

\n', - itemtype: 'method', - name: 'play', - params: [ - { - name: 'startTime', - description: - '

(optional) schedule playback to start (in seconds from now).

\n', - type: 'Number', - optional: true - }, - { - name: 'rate', - description: '

(optional) playback rate

\n', - type: 'Number', - optional: true - }, - { - name: 'amp', - description: - '

(optional) amplitude (volume)\n of playback

\n', - type: 'Number', - optional: true - }, - { - name: 'cueStart', - description: '

(optional) cue start time in seconds

\n', - type: 'Number', - optional: true - }, - { - name: 'duration', - description: '

(optional) duration of playback in seconds

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2022, - description: - '

p5.SoundFile has two play modes: restart and\nsustain. Play Mode determines what happens to a\np5.SoundFile if it is triggered while in the middle of playback.\nIn sustain mode, playback will continue simultaneous to the\nnew playback. In restart mode, play() will stop playback\nand start over. With untilDone, a sound will play only if it's\nnot already playing. Sustain is the default mode.

\n', - itemtype: 'method', - name: 'playMode', - params: [ - { - name: 'str', - description: - '

'restart' or 'sustain' or 'untilDone'

\n', - type: 'String' - } - ], - example: [ - "\n
\nvar mySound;\nfunction preload(){\n mySound = loadSound('assets/Damscray_DancingTiger.mp3');\n}\nfunction mouseClicked() {\n mySound.playMode('sustain');\n mySound.play();\n}\nfunction keyPressed() {\n mySound.playMode('restart');\n mySound.play();\n}\n\n
" - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2066, - description: - '

Pauses a file that is currently playing. If the file is not\nplaying, then nothing will happen.

\n

After pausing, .play() will resume from the paused\nposition.\nIf p5.SoundFile had been set to loop before it was paused,\nit will continue to loop after it is unpaused with .play().

\n', - itemtype: 'method', - name: 'pause', - params: [ - { - name: 'startTime', - description: - '

(optional) schedule event to occur\n seconds from now

\n', - type: 'Number', - optional: true - } - ], - example: [ - "\n
\nvar soundFile;\n\nfunction preload() {\n soundFormats('ogg', 'mp3');\n soundFile = loadSound('assets/Damscray_-_Dancing_Tiger_02.mp3');\n}\nfunction setup() {\n background(0, 255, 0);\n soundFile.setVolume(0.1);\n soundFile.loop();\n}\nfunction keyTyped() {\n if (key == 'p') {\n soundFile.pause();\n background(255, 0, 0);\n }\n}\n\nfunction keyReleased() {\n if (key == 'p') {\n soundFile.play();\n background(0, 255, 0);\n }\n}\n\n
" - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2122, - description: - '

Loop the p5.SoundFile. Accepts optional parameters to set the\nplayback rate, playback volume, loopStart, loopEnd.

\n', - itemtype: 'method', - name: 'loop', - params: [ - { - name: 'startTime', - description: - '

(optional) schedule event to occur\n seconds from now

\n', - type: 'Number', - optional: true - }, - { - name: 'rate', - description: '

(optional) playback rate

\n', - type: 'Number', - optional: true - }, - { - name: 'amp', - description: '

(optional) playback volume

\n', - type: 'Number', - optional: true - }, - { - name: 'cueLoopStart', - description: '

(optional) startTime in seconds

\n', - type: 'Number', - optional: true - }, - { - name: 'duration', - description: '

(optional) loop duration in seconds

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2138, - description: - '

Set a p5.SoundFile's looping flag to true or false. If the sound\nis currently playing, this change will take effect when it\nreaches the end of the current playback.

\n', - itemtype: 'method', - name: 'setLoop', - params: [ - { - name: 'Boolean', - description: '

set looping to true or false

\n', - type: 'Boolean' - } - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2159, - description: - '

Returns 'true' if a p5.SoundFile is currently looping and playing, 'false' if not.

\n', - itemtype: 'method', - name: 'isLooping', - return: { - description: '', - type: 'Boolean' - }, - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2174, - description: - '

Returns true if a p5.SoundFile is playing, false if not (i.e.\npaused or stopped).

\n', - itemtype: 'method', - name: 'isPlaying', - return: { - description: '', - type: 'Boolean' - }, - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2184, - description: - '

Returns true if a p5.SoundFile is paused, false if not (i.e.\nplaying or stopped).

\n', - itemtype: 'method', - name: 'isPaused', - return: { - description: '', - type: 'Boolean' - }, - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2194, - description: '

Stop soundfile playback.

\n', - itemtype: 'method', - name: 'stop', - params: [ - { - name: 'startTime', - description: - '

(optional) schedule event to occur\n in seconds from now

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2239, - description: - '

Multiply the output volume (amplitude) of a sound file\nbetween 0.0 (silence) and 1.0 (full volume).\n1.0 is the maximum amplitude of a digital sound, so multiplying\nby greater than 1.0 may cause digital distortion. To\nfade, provide a rampTime parameter. For more\ncomplex fades, see the Envelope class.

\n

Alternately, you can pass in a signal source such as an\noscillator to modulate the amplitude with an audio signal.

\n', - itemtype: 'method', - name: 'setVolume', - params: [ - { - name: 'volume', - description: - '

Volume (amplitude) between 0.0\n and 1.0 or modulating signal/oscillator

\n', - type: 'Number|Object' - }, - { - name: 'rampTime', - description: '

Fade for t seconds

\n', - type: 'Number', - optional: true - }, - { - name: 'timeFromNow', - description: - '

Schedule this event to happen at\n t seconds in the future

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2280, - description: - '

Set the stereo panning of a p5.sound object to\na floating point number between -1.0 (left) and 1.0 (right).\nDefault is 0.0 (center).

\n', - itemtype: 'method', - name: 'pan', - params: [ - { - name: 'panValue', - description: '

Set the stereo panner

\n', - type: 'Number', - optional: true - }, - { - name: 'timeFromNow', - description: - '

schedule this event to happen\n seconds from now

\n', - type: 'Number', - optional: true - } - ], - example: [ - "\n
\n\n var ball = {};\n var soundFile;\n\n function preload() {\n soundFormats('ogg', 'mp3');\n soundFile = loadSound('assets/beatbox.mp3');\n }\n\n function draw() {\n background(0);\n ball.x = constrain(mouseX, 0, width);\n ellipse(ball.x, height/2, 20, 20)\n }\n\n function mousePressed(){\n // map the ball's x location to a panning degree\n // between -1.0 (left) and 1.0 (right)\n var panning = map(ball.x, 0., width,-1.0, 1.0);\n soundFile.pan(panning);\n soundFile.play();\n }\n
" - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2319, - description: - '

Returns the current stereo pan position (-1.0 to 1.0)

\n', - itemtype: 'method', - name: 'getPan', - return: { - description: - 'Returns the stereo pan setting of the Oscillator\n as a number between -1.0 (left) and 1.0 (right).\n 0.0 is center and default.', - type: 'Number' - }, - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2330, - description: - '

Set the playback rate of a sound file. Will change the speed and the pitch.\nValues less than zero will reverse the audio buffer.

\n', - itemtype: 'method', - name: 'rate', - params: [ - { - name: 'playbackRate', - description: - '

Set the playback rate. 1.0 is normal,\n .5 is half-speed, 2.0 is twice as fast.\n Values less than zero play backwards.

\n', - type: 'Number', - optional: true - } - ], - example: [ - "\n
\nvar song;\n\nfunction preload() {\n song = loadSound('assets/Damscray_DancingTiger.mp3');\n}\n\nfunction setup() {\n song.loop();\n}\n\nfunction draw() {\n background(200);\n\n // Set the rate to a range between 0.1 and 4\n // Changing the rate also alters the pitch\n var speed = map(mouseY, 0.1, height, 0, 2);\n speed = constrain(speed, 0.01, 4);\n song.rate(speed);\n\n // Draw a circle to show what is going on\n stroke(0);\n fill(51, 100);\n ellipse(mouseX, 100, 48, 48);\n}\n\n \n
\n" - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2403, - description: '

Returns the duration of a sound file in seconds.

\n', - itemtype: 'method', - name: 'duration', - return: { - description: 'The duration of the soundFile in seconds.', - type: 'Number' - }, - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2417, - description: - '

Return the current position of the p5.SoundFile playhead, in seconds.\nTime is relative to the normal buffer direction, so if reverseBuffer\nhas been called, currentTime will count backwards.

\n', - itemtype: 'method', - name: 'currentTime', - return: { - description: 'currentTime of the soundFile in seconds.', - type: 'Number' - }, - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2428, - description: - '

Move the playhead of the song to a position, in seconds. Start timing\nand playback duration. If none are given, will reset the file to play\nentire duration from start to finish.

\n', - itemtype: 'method', - name: 'jump', - params: [ - { - name: 'cueTime', - description: '

cueTime of the soundFile in seconds.

\n', - type: 'Number' - }, - { - name: 'duration', - description: '

duration in seconds.

\n', - type: 'Number' - } - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2451, - description: - '

Return the number of channels in a sound file.\nFor example, Mono = 1, Stereo = 2.

\n', - itemtype: 'method', - name: 'channels', - return: { - description: '[channels]', - type: 'Number' - }, - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2461, - description: '

Return the sample rate of the sound file.

\n', - itemtype: 'method', - name: 'sampleRate', - return: { - description: '[sampleRate]', - type: 'Number' - }, - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2470, - description: - '

Return the number of samples in a sound file.\nEqual to sampleRate * duration.

\n', - itemtype: 'method', - name: 'frames', - return: { - description: '[sampleCount]', - type: 'Number' - }, - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2480, - description: - '

Returns an array of amplitude peaks in a p5.SoundFile that can be\nused to draw a static waveform. Scans through the p5.SoundFile's\naudio buffer to find the greatest amplitudes. Accepts one\nparameter, 'length', which determines size of the array.\nLarger arrays result in more precise waveform visualizations.

\n

Inspired by Wavesurfer.js.

\n', - itemtype: 'method', - name: 'getPeaks', - params: [ - { - name: 'length', - description: - '

length is the size of the returned array.\n Larger length results in more precision.\n Defaults to 5*width of the browser window.

\n', - type: 'Number', - optional: true - } - ], - return: { - description: 'Array of peaks.', - type: 'Float32Array' - }, - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2532, - description: - '

Reverses the p5.SoundFile's buffer source.\nPlayback must be handled separately (see example).

\n', - itemtype: 'method', - name: 'reverseBuffer', - example: [ - "\n
\nvar drum;\n\nfunction preload() {\n drum = loadSound('assets/drum.mp3');\n}\n\nfunction setup() {\n drum.reverseBuffer();\n drum.play();\n}\n\n \n
" - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2572, - description: - '

Schedule an event to be called when the soundfile\nreaches the end of a buffer. If the soundfile is\nplaying through once, this will be called when it\nends. If it is looping, it will be called when\nstop is called.

\n', - itemtype: 'method', - name: 'onended', - params: [ - { - name: 'callback', - description: - '

function to call when the\n soundfile has ended.

\n', - type: 'Function' - } - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2625, - description: - '

Connects the output of a p5sound object to input of another\np5.sound object. For example, you may connect a p5.SoundFile to an\nFFT or an Effect. If no parameter is given, it will connect to\nthe master output. Most p5sound objects connect to the master\noutput when they are created.

\n', - itemtype: 'method', - name: 'connect', - params: [ - { - name: 'object', - description: '

Audio object that accepts an input

\n', - type: 'Object', - optional: true - } - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2646, - description: '

Disconnects the output of this p5sound object.

\n', - itemtype: 'method', - name: 'disconnect', - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2656, - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2661, - description: - '

Reset the source for this SoundFile to a\nnew path (URL).

\n', - itemtype: 'method', - name: 'setPath', - params: [ - { - name: 'path', - description: '

path to audio file

\n', - type: 'String' - }, - { - name: 'callback', - description: '

Callback

\n', - type: 'Function' - } - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2674, - description: '

Replace the current Audio Buffer with a new Buffer.

\n', - itemtype: 'method', - name: 'setBuffer', - params: [ - { - name: 'buf', - description: - '

Array of Float32 Array(s). 2 Float32 Arrays\n will create a stereo source. 1 will create\n a mono source.

\n', - type: 'Array' - } - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2741, - description: - '

processPeaks returns an array of timestamps where it thinks there is a beat.

\n

This is an asynchronous function that processes the soundfile in an offline audio context,\nand sends the results to your callback function.

\n

The process involves running the soundfile through a lowpass filter, and finding all of the\npeaks above the initial threshold. If the total number of peaks are below the minimum number of peaks,\nit decreases the threshold and re-runs the analysis until either minPeaks or minThreshold are reached.

\n', - itemtype: 'method', - name: 'processPeaks', - params: [ - { - name: 'callback', - description: '

a function to call once this data is returned

\n', - type: 'Function' - }, - { - name: 'initThreshold', - description: '

initial threshold defaults to 0.9

\n', - type: 'Number', - optional: true - }, - { - name: 'minThreshold', - description: '

minimum threshold defaults to 0.22

\n', - type: 'Number', - optional: true - }, - { - name: 'minPeaks', - description: '

minimum number of peaks defaults to 200

\n', - type: 'Number', - optional: true - } - ], - return: { - description: 'Array of timestamped peaks', - type: 'Array' - }, - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2934, - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 2943, - description: - '

Schedule events to trigger every time a MediaElement\n(audio/video) reaches a playback cue point.

\n

Accepts a callback function, a time (in seconds) at which to trigger\nthe callback, and an optional parameter for the callback.

\n

Time will be passed as the first parameter to the callback function,\nand param will be the second parameter.

\n', - itemtype: 'method', - name: 'addCue', - params: [ - { - name: 'time', - description: - '

Time in seconds, relative to this media\n element's playback. For example, to trigger\n an event every time playback reaches two\n seconds, pass in the number 2. This will be\n passed as the first parameter to\n the callback function.

\n', - type: 'Number' - }, - { - name: 'callback', - description: - '

Name of a function that will be\n called at the given time. The callback will\n receive time and (optionally) param as its\n two parameters.

\n', - type: 'Function' - }, - { - name: 'value', - description: - '

An object to be passed as the\n second parameter to the\n callback function.

\n', - type: 'Object', - optional: true - } - ], - return: { - description: - 'id ID of this cue,\n useful for removeCue(id)', - type: 'Number' - }, - example: [ - '\n
\nvar mySound;\nfunction preload() {\n mySound = loadSound(\'assets/beat.mp3\');\n}\n\nfunction setup() {\n background(0);\n noStroke();\n fill(255);\n textAlign(CENTER);\n text(\'click to play\', width/2, height/2);\n\n // schedule calls to changeText\n mySound.addCue(0.50, changeText, "hello" );\n mySound.addCue(1.00, changeText, "p5" );\n mySound.addCue(1.50, changeText, "what" );\n mySound.addCue(2.00, changeText, "do" );\n mySound.addCue(2.50, changeText, "you" );\n mySound.addCue(3.00, changeText, "want" );\n mySound.addCue(4.00, changeText, "to" );\n mySound.addCue(5.00, changeText, "make" );\n mySound.addCue(6.00, changeText, "?" );\n}\n\nfunction changeText(val) {\n background(0);\n text(val, width/2, height/2);\n}\n\nfunction mouseClicked() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n if (mySound.isPlaying() ) {\n mySound.stop();\n } else {\n mySound.play();\n }\n }\n}\n
' - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3021, - description: - '

Remove a callback based on its ID. The ID is returned by the\naddCue method.

\n', - itemtype: 'method', - name: 'removeCue', - params: [ - { - name: 'id', - description: '

ID of the cue, as returned by addCue

\n', - type: 'Number' - } - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3040, - description: - '

Remove all of the callbacks that had originally been scheduled\nvia the addCue method.

\n', - itemtype: 'method', - name: 'clearCues', - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3065, - description: - '

Save a p5.SoundFile as a .wav file. The browser will prompt the user\nto download the file to their device. To upload a file to a server, see\ngetBlob

\n', - itemtype: 'method', - name: 'save', - params: [ - { - name: 'fileName', - description: '

name of the resulting .wav file.

\n', - type: 'String', - optional: true - } - ], - example: [ - "\n
\n var inp, button, mySound;\n var fileName = 'cool';\n function preload() {\n mySound = loadSound('assets/doorbell.mp3');\n }\n function setup() {\n btn = createButton('click to save file');\n btn.position(0, 0);\n btn.mouseClicked(handleMouseClick);\n }\n\n function handleMouseClick() {\n mySound.save(fileName);\n }\n
" - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3094, - description: - '

This method is useful for sending a SoundFile to a server. It returns the\n.wav-encoded audio data as a "Blob".\nA Blob is a file-like data object that can be uploaded to a server\nwith an http request. We'll\nuse the httpDo options object to send a POST request with some\nspecific options: we encode the request as multipart/form-data,\nand attach the blob as one of the form values using FormData.

\n', - itemtype: 'method', - name: 'getBlob', - return: { - description: 'A file-like data object', - type: 'Blob' - }, - example: [ - "\n
\n\n function preload() {\n mySound = loadSound('assets/doorbell.mp3');\n }\n\n function setup() {\n noCanvas();\n var soundBlob = mySound.getBlob();\n\n // Now we can send the blob to a server...\n var serverUrl = 'https://jsonplaceholder.typicode.com/posts';\n var httpRequestOptions = {\n method: 'POST',\n body: new FormData().append('soundBlob', soundBlob),\n headers: new Headers({\n 'Content-Type': 'multipart/form-data'\n })\n };\n httpDo(serverUrl, httpRequestOptions);\n\n // We can also create an `ObjectURL` pointing to the Blob\n var blobUrl = URL.createObjectURL(soundBlob);\n\n // The `
" - ], - class: 'p5.SoundFile', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3257, - description: - '

Connects to the p5sound instance (master output) by default.\nOptionally, you can pass in a specific source (i.e. a soundfile).

\n', - itemtype: 'method', - name: 'setInput', - params: [ - { - name: 'snd', - description: - '

set the sound source\n (optional, defaults to\n master output)

\n', - type: 'SoundObject|undefined', - optional: true - }, - { - name: 'smoothing', - description: - '

a range between 0.0 and 1.0\n to smooth amplitude readings

\n', - type: 'Number|undefined', - optional: true - } - ], - example: [ - "\n
\nfunction preload(){\n sound1 = loadSound('assets/beat.mp3');\n sound2 = loadSound('assets/drum.mp3');\n}\nfunction setup(){\n amplitude = new p5.Amplitude();\n sound1.play();\n sound2.play();\n amplitude.setInput(sound2);\n}\nfunction draw() {\n background(0);\n fill(255);\n var level = amplitude.getLevel();\n var size = map(level, 0, 1, 0, 200);\n ellipse(width/2, height/2, size, size);\n}\nfunction mouseClicked(){\n sound1.stop();\n sound2.stop();\n}\n
" - ], - class: 'p5.Amplitude', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3364, - description: - '

Returns a single Amplitude reading at the moment it is called.\nFor continuous readings, run in the draw loop.

\n', - itemtype: 'method', - name: 'getLevel', - params: [ - { - name: 'channel', - description: - '

Optionally return only channel 0 (left) or 1 (right)

\n', - type: 'Number', - optional: true - } - ], - return: { - description: 'Amplitude as a number between 0.0 and 1.0', - type: 'Number' - }, - example: [ - "\n
\nfunction preload(){\n sound = loadSound('assets/beat.mp3');\n}\nfunction setup() {\n amplitude = new p5.Amplitude();\n sound.play();\n}\nfunction draw() {\n background(0);\n fill(255);\n var level = amplitude.getLevel();\n var size = map(level, 0, 1, 0, 200);\n ellipse(width/2, height/2, size, size);\n}\nfunction mouseClicked(){\n sound.stop();\n}\n
" - ], - class: 'p5.Amplitude', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3405, - description: - '

Determines whether the results of Amplitude.process() will be\nNormalized. To normalize, Amplitude finds the difference the\nloudest reading it has processed and the maximum amplitude of\n1.0. Amplitude adds this difference to all values to produce\nresults that will reliably map between 0.0 and 1.0. However,\nif a louder moment occurs, the amount that Normalize adds to\nall the values will change. Accepts an optional boolean parameter\n(true or false). Normalizing is off by default.

\n', - itemtype: 'method', - name: 'toggleNormalize', - params: [ - { - name: 'boolean', - description: '

set normalize to true (1) or false (0)

\n', - type: 'Boolean', - optional: true - } - ], - class: 'p5.Amplitude', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3425, - description: - '

Smooth Amplitude analysis by averaging with the last analysis\nframe. Off by default.

\n', - itemtype: 'method', - name: 'smooth', - params: [ - { - name: 'set', - description: '

smoothing from 0.0 <= 1

\n', - type: 'Number' - } - ], - class: 'p5.Amplitude', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3599, - description: - '

Set the input source for the FFT analysis. If no source is\nprovided, FFT will analyze all sound in the sketch.

\n', - itemtype: 'method', - name: 'setInput', - params: [ - { - name: 'source', - description: '

p5.sound object (or web audio API source node)

\n', - type: 'Object', - optional: true - } - ], - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3618, - description: - '

Returns an array of amplitude values (between -1.0 and +1.0) that represent\na snapshot of amplitude readings in a single buffer. Length will be\nequal to bins (defaults to 1024). Can be used to draw the waveform\nof a sound.

\n', - itemtype: 'method', - name: 'waveform', - params: [ - { - name: 'bins', - description: - '

Must be a power of two between\n 16 and 1024. Defaults to 1024.

\n', - type: 'Number', - optional: true - }, - { - name: 'precision', - description: - '

If any value is provided, will return results\n in a Float32 Array which is more precise\n than a regular array.

\n', - type: 'String', - optional: true - } - ], - return: { - description: - 'Array Array of amplitude values (-1 to 1)\n over time. Array length = bins.', - type: 'Array' - }, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3661, - description: - '

Returns an array of amplitude values (between 0 and 255)\nacross the frequency spectrum. Length is equal to FFT bins\n(1024 by default). The array indices correspond to frequencies\n(i.e. pitches), from the lowest to the highest that humans can\nhear. Each value represents amplitude at that slice of the\nfrequency spectrum. Must be called prior to using\ngetEnergy().

\n', - itemtype: 'method', - name: 'analyze', - params: [ - { - name: 'bins', - description: - '

Must be a power of two between\n 16 and 1024. Defaults to 1024.

\n', - type: 'Number', - optional: true - }, - { - name: 'scale', - description: - '

If "dB," returns decibel\n float measurements between\n -140 and 0 (max).\n Otherwise returns integers from 0-255.

\n', - type: 'Number', - optional: true - } - ], - return: { - description: - 'spectrum Array of energy (amplitude/volume)\n values across the frequency spectrum.\n Lowest energy (silence) = 0, highest\n possible is 255.', - type: 'Array' - }, - example: [ - "\n
\nvar osc;\nvar fft;\n\nfunction setup(){\n createCanvas(100,100);\n osc = new p5.Oscillator();\n osc.amp(0);\n osc.start();\n fft = new p5.FFT();\n}\n\nfunction draw(){\n background(0);\n\n var freq = map(mouseX, 0, 800, 20, 15000);\n freq = constrain(freq, 1, 20000);\n osc.freq(freq);\n\n var spectrum = fft.analyze();\n noStroke();\n fill(0,255,0); // spectrum is green\n for (var i = 0; i< spectrum.length; i++){\n var x = map(i, 0, spectrum.length, 0, width);\n var h = -height + map(spectrum[i], 0, 255, height, 0);\n rect(x, height, width / spectrum.length, h );\n }\n\n stroke(255);\n text('Freq: ' + round(freq)+'Hz', 10, 10);\n\n isMouseOverCanvas();\n}\n\n// only play sound when mouse is over canvas\nfunction isMouseOverCanvas() {\n var mX = mouseX, mY = mouseY;\n if (mX > 0 && mX < width && mY < height && mY > 0) {\n osc.amp(0.5, 0.2);\n } else {\n osc.amp(0, 0.2);\n }\n}\n
\n\n" - ], - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3753, - description: - '

Returns the amount of energy (volume) at a specific\n\nfrequency, or the average amount of energy between two\nfrequencies. Accepts Number(s) corresponding\nto frequency (in Hz), or a String corresponding to predefined\nfrequency ranges ("bass", "lowMid", "mid", "highMid", "treble").\nReturns a range between 0 (no energy/volume at that frequency) and\n255 (maximum energy).\nNOTE: analyze() must be called prior to getEnergy(). Analyze()\ntells the FFT to analyze frequency data, and getEnergy() uses\nthe results determine the value at a specific frequency or\nrange of frequencies.

\n', - itemtype: 'method', - name: 'getEnergy', - params: [ - { - name: 'frequency1', - description: - '

Will return a value representing\n energy at this frequency. Alternately,\n the strings "bass", "lowMid" "mid",\n "highMid", and "treble" will return\n predefined frequency ranges.

\n', - type: 'Number|String' - }, - { - name: 'frequency2', - description: - '

If a second frequency is given,\n will return average amount of\n energy that exists between the\n two frequencies.

\n', - type: 'Number', - optional: true - } - ], - return: { - description: - 'Energy Energy (volume/amplitude) from\n 0 and 255.', - type: 'Number' - }, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3835, - description: - '

Returns the\n\nspectral centroid of the input signal.\nNOTE: analyze() must be called prior to getCentroid(). Analyze()\ntells the FFT to analyze frequency data, and getCentroid() uses\nthe results determine the spectral centroid.

\n', - itemtype: 'method', - name: 'getCentroid', - return: { - description: - 'Spectral Centroid Frequency Frequency of the spectral centroid in Hz.', - type: 'Number' - }, - example: [ - '\n
\n\n\nfunction setup(){\ncnv = createCanvas(100,100);\nsound = new p5.AudioIn();\nsound.start();\nfft = new p5.FFT();\nsound.connect(fft);\n}\n\n\nfunction draw(){\n\nvar centroidplot = 0.0;\nvar spectralCentroid = 0;\n\n\nbackground(0);\nstroke(0,255,0);\nvar spectrum = fft.analyze();\nfill(0,255,0); // spectrum is green\n\n//draw the spectrum\nfor (var i = 0; i< spectrum.length; i++){\n var x = map(log(i), 0, log(spectrum.length), 0, width);\n var h = map(spectrum[i], 0, 255, 0, height);\n var rectangle_width = (log(i+1)-log(i))*(width/log(spectrum.length));\n rect(x, height, rectangle_width, -h )\n}\n\nvar nyquist = 22050;\n\n// get the centroid\nspectralCentroid = fft.getCentroid();\n\n// the mean_freq_index calculation is for the display.\nvar mean_freq_index = spectralCentroid/(nyquist/spectrum.length);\n\ncentroidplot = map(log(mean_freq_index), 0, log(spectrum.length), 0, width);\n\n\nstroke(255,0,0); // the line showing where the centroid is will be red\n\nrect(centroidplot, 0, width / spectrum.length, height)\nnoStroke();\nfill(255,255,255); // text is white\ntext("centroid: ", 10, 20);\ntext(round(spectralCentroid)+" Hz", 10, 40);\n}\n
' - ], - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3915, - description: - '

Smooth FFT analysis by averaging with the last analysis frame.

\n', - itemtype: 'method', - name: 'smooth', - params: [ - { - name: 'smoothing', - description: - '

0.0 < smoothing < 1.0.\n Defaults to 0.8.

\n', - type: 'Number' - } - ], - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3937, - description: - '

Returns an array of average amplitude values for a given number\nof frequency bands split equally. N defaults to 16.\nNOTE: analyze() must be called prior to linAverages(). Analyze()\ntells the FFT to analyze frequency data, and linAverages() uses\nthe results to group them into a smaller set of averages.

\n', - itemtype: 'method', - name: 'linAverages', - params: [ - { - name: 'N', - description: '

Number of returned frequency groups

\n', - type: 'Number' - } - ], - return: { - description: - 'linearAverages Array of average amplitude values for each group', - type: 'Array' - }, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3967, - description: - '

Returns an array of average amplitude values of the spectrum, for a given\nset of \nOctave Bands\nNOTE: analyze() must be called prior to logAverages(). Analyze()\ntells the FFT to analyze frequency data, and logAverages() uses\nthe results to group them into a smaller set of averages.

\n', - itemtype: 'method', - name: 'logAverages', - params: [ - { - name: 'octaveBands', - description: '

Array of Octave Bands objects for grouping

\n', - type: 'Array' - } - ], - return: { - description: - 'logAverages Array of average amplitude values for each group', - type: 'Array' - }, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 3997, - description: - '

Calculates and Returns the 1/N\nOctave Bands\nN defaults to 3 and minimum central frequency to 15.625Hz.\n(1/3 Octave Bands ~= 31 Frequency Bands)\nSetting fCtr0 to a central value of a higher octave will ignore the lower bands\nand produce less frequency groups.

\n', - itemtype: 'method', - name: 'getOctaveBands', - params: [ - { - name: 'N', - description: - '

Specifies the 1/N type of generated octave bands

\n', - type: 'Number' - }, - { - name: 'fCtr0', - description: '

Minimum central frequency for the lowest band

\n', - type: 'Number' - } - ], - return: { - description: - 'octaveBands Array of octave band objects with their bounds', - type: 'Array' - }, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 4055, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 4076, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 4135, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 4453, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 4625, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 4783, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 4824, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 4881, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5049, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5097, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5128, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5149, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5169, - class: 'p5.FFT', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5268, - description: '

Fade to value, for smooth transitions

\n', - itemtype: 'method', - name: 'fade', - params: [ - { - name: 'value', - description: '

Value to set this signal

\n', - type: 'Number' - }, - { - name: 'secondsFromNow', - description: '

Length of fade, in seconds from now

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Signal', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5279, - description: - '

Connect a p5.sound object or Web Audio node to this\np5.Signal so that its amplitude values can be scaled.

\n', - itemtype: 'method', - name: 'setInput', - params: [ - { - name: 'input', - description: '', - type: 'Object' - } - ], - class: 'p5.Signal', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5293, - description: - '

Add a constant value to this audio signal,\nand return the resulting audio signal. Does\nnot change the value of the original signal,\ninstead it returns a new p5.SignalAdd.

\n', - itemtype: 'method', - name: 'add', - params: [ - { - name: 'number', - description: '', - type: 'Number' - } - ], - return: { - description: 'object', - type: 'p5.Signal' - }, - class: 'p5.Signal', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5312, - description: - '

Multiply this signal by a constant value,\nand return the resulting audio signal. Does\nnot change the value of the original signal,\ninstead it returns a new p5.SignalMult.

\n', - itemtype: 'method', - name: 'mult', - params: [ - { - name: 'number', - description: '

to multiply

\n', - type: 'Number' - } - ], - return: { - description: 'object', - type: 'p5.Signal' - }, - class: 'p5.Signal', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5331, - description: - '

Scale this signal value to a given range,\nand return the result as an audio signal. Does\nnot change the value of the original signal,\ninstead it returns a new p5.SignalScale.

\n', - itemtype: 'method', - name: 'scale', - params: [ - { - name: 'number', - description: '

to multiply

\n', - type: 'Number' - }, - { - name: 'inMin', - description: '

input range minumum

\n', - type: 'Number' - }, - { - name: 'inMax', - description: '

input range maximum

\n', - type: 'Number' - }, - { - name: 'outMin', - description: '

input range minumum

\n', - type: 'Number' - }, - { - name: 'outMax', - description: '

input range maximum

\n', - type: 'Number' - } - ], - return: { - description: 'object', - type: 'p5.Signal' - }, - class: 'p5.Signal', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5465, - description: - '

Start an oscillator. Accepts an optional parameter to\ndetermine how long (in seconds from now) until the\noscillator starts.

\n', - itemtype: 'method', - name: 'start', - params: [ - { - name: 'time', - description: '

startTime in seconds from now.

\n', - type: 'Number', - optional: true - }, - { - name: 'frequency', - description: '

frequency in Hz.

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Oscillator', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5505, - description: - '

Stop an oscillator. Accepts an optional parameter\nto determine how long (in seconds from now) until the\noscillator stops.

\n', - itemtype: 'method', - name: 'stop', - params: [ - { - name: 'secondsFromNow', - description: '

Time, in seconds from now.

\n', - type: 'Number' - } - ], - class: 'p5.Oscillator', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5521, - description: - '

Set the amplitude between 0 and 1.0. Or, pass in an object\nsuch as an oscillator to modulate amplitude with an audio signal.

\n', - itemtype: 'method', - name: 'amp', - params: [ - { - name: 'vol', - description: - '

between 0 and 1.0\n or a modulating signal/oscillator

\n', - type: 'Number|Object' - }, - { - name: 'rampTime', - description: '

create a fade that lasts rampTime

\n', - type: 'Number', - optional: true - }, - { - name: 'timeFromNow', - description: - '

schedule this event to happen\n seconds from now

\n', - type: 'Number', - optional: true - } - ], - return: { - description: - "gain If no value is provided,\n returns the Web Audio API\n AudioParam that controls\n this oscillator's\n gain/amplitude/volume)", - type: 'AudioParam' - }, - class: 'p5.Oscillator', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5556, - description: - '

Set frequency of an oscillator to a value. Or, pass in an object\nsuch as an oscillator to modulate the frequency with an audio signal.

\n', - itemtype: 'method', - name: 'freq', - params: [ - { - name: 'Frequency', - description: - '

Frequency in Hz\n or modulating signal/oscillator

\n', - type: 'Number|Object' - }, - { - name: 'rampTime', - description: '

Ramp time (in seconds)

\n', - type: 'Number', - optional: true - }, - { - name: 'timeFromNow', - description: - '

Schedule this event to happen\n at x seconds from now

\n', - type: 'Number', - optional: true - } - ], - return: { - description: - "Frequency If no value is provided,\n returns the Web Audio API\n AudioParam that controls\n this oscillator's frequency", - type: 'AudioParam' - }, - example: [ - '\n
\nvar osc = new p5.Oscillator(300);\nosc.start();\nosc.freq(40, 10);\n
' - ], - class: 'p5.Oscillator', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5615, - description: - '

Set type to 'sine', 'triangle', 'sawtooth' or 'square'.

\n', - itemtype: 'method', - name: 'setType', - params: [ - { - name: 'type', - description: - '

'sine', 'triangle', 'sawtooth' or 'square'.

\n', - type: 'String' - } - ], - class: 'p5.Oscillator', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5627, - description: '

Connect to a p5.sound / Web Audio object.

\n', - itemtype: 'method', - name: 'connect', - params: [ - { - name: 'unit', - description: '

A p5.sound or Web Audio object

\n', - type: 'Object' - } - ], - class: 'p5.Oscillator', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5644, - description: '

Disconnect all outputs

\n', - itemtype: 'method', - name: 'disconnect', - class: 'p5.Oscillator', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5661, - description: '

Pan between Left (-1) and Right (1)

\n', - itemtype: 'method', - name: 'pan', - params: [ - { - name: 'panning', - description: '

Number between -1 and 1

\n', - type: 'Number' - }, - { - name: 'timeFromNow', - description: - '

schedule this event to happen\n seconds from now

\n', - type: 'Number' - } - ], - class: 'p5.Oscillator', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5693, - description: - '

Set the phase of an oscillator between 0.0 and 1.0.\nIn this implementation, phase is a delay time\nbased on the oscillator's current frequency.

\n', - itemtype: 'method', - name: 'phase', - params: [ - { - name: 'phase', - description: '

float between 0.0 and 1.0

\n', - type: 'Number' - } - ], - class: 'p5.Oscillator', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5747, - description: - '

Add a value to the p5.Oscillator's output amplitude,\nand return the oscillator. Calling this method again\nwill override the initial add() with a new value.

\n', - itemtype: 'method', - name: 'add', - params: [ - { - name: 'number', - description: '

Constant number to add

\n', - type: 'Number' - } - ], - return: { - description: - 'Oscillator Returns this oscillator\n with scaled output', - type: 'p5.Oscillator' - }, - class: 'p5.Oscillator', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5764, - description: - '

Multiply the p5.Oscillator's output amplitude\nby a fixed value (i.e. turn it up!). Calling this method\nagain will override the initial mult() with a new value.

\n', - itemtype: 'method', - name: 'mult', - params: [ - { - name: 'number', - description: '

Constant number to multiply

\n', - type: 'Number' - } - ], - return: { - description: - 'Oscillator Returns this oscillator\n with multiplied output', - type: 'p5.Oscillator' - }, - class: 'p5.Oscillator', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5780, - description: - '

Scale this oscillator's amplitude values to a given\nrange, and return the oscillator. Calling this method\nagain will override the initial scale() with new values.

\n', - itemtype: 'method', - name: 'scale', - params: [ - { - name: 'inMin', - description: '

input range minumum

\n', - type: 'Number' - }, - { - name: 'inMax', - description: '

input range maximum

\n', - type: 'Number' - }, - { - name: 'outMin', - description: '

input range minumum

\n', - type: 'Number' - }, - { - name: 'outMax', - description: '

input range maximum

\n', - type: 'Number' - } - ], - return: { - description: - 'Oscillator Returns this oscillator\n with scaled output', - type: 'p5.Oscillator' - }, - class: 'p5.Oscillator', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 5879, - class: 'p5.SqrOsc', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 6082, - class: 'p5.SqrOsc', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 6369, - description: '

Time until envelope reaches attackLevel

\n', - itemtype: 'property', - name: 'attackTime', - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 6374, - description: '

Level once attack is complete.

\n', - itemtype: 'property', - name: 'attackLevel', - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 6379, - description: '

Time until envelope reaches decayLevel.

\n', - itemtype: 'property', - name: 'decayTime', - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 6384, - description: - '

Level after decay. The envelope will sustain here until it is released.

\n', - itemtype: 'property', - name: 'decayLevel', - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 6389, - description: '

Duration of the release portion of the envelope.

\n', - itemtype: 'property', - name: 'releaseTime', - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 6394, - description: '

Level at the end of the release.

\n', - itemtype: 'property', - name: 'releaseLevel', - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 6430, - description: - '

Reset the envelope with a series of time/value pairs.

\n', - itemtype: 'method', - name: 'set', - params: [ - { - name: 'attackTime', - description: - '

Time (in seconds) before level\n reaches attackLevel

\n', - type: 'Number' - }, - { - name: 'attackLevel', - description: - '

Typically an amplitude between\n 0.0 and 1.0

\n', - type: 'Number' - }, - { - name: 'decayTime', - description: '

Time

\n', - type: 'Number' - }, - { - name: 'decayLevel', - description: - '

Amplitude (In a standard ADSR envelope,\n decayLevel = sustainLevel)

\n', - type: 'Number' - }, - { - name: 'releaseTime', - description: '

Release Time (in seconds)

\n', - type: 'Number' - }, - { - name: 'releaseLevel', - description: '

Amplitude

\n', - type: 'Number' - } - ], - example: [ - "\n
\nvar t1 = 0.1; // attack time in seconds\nvar l1 = 0.7; // attack level 0.0 to 1.0\nvar t2 = 0.3; // decay time in seconds\nvar l2 = 0.1; // decay level 0.0 to 1.0\nvar t3 = 0.2; // sustain time in seconds\nvar l3 = 0.5; // sustain level 0.0 to 1.0\n// release level defaults to zero\n\nvar env;\nvar triOsc;\n\nfunction setup() {\n background(0);\n noStroke();\n fill(255);\n textAlign(CENTER);\n text('click to play', width/2, height/2);\n\n env = new p5.Envelope(t1, l1, t2, l2, t3, l3);\n triOsc = new p5.Oscillator('triangle');\n triOsc.amp(env); // give the env control of the triOsc's amp\n triOsc.start();\n}\n\n// mouseClick triggers envelope if over canvas\nfunction mouseClicked() {\n // is mouse over canvas?\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n env.play(triOsc);\n }\n}\n
\n" - ], - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 6489, - description: - '

Set values like a traditional\n\nADSR envelope\n.

\n', - itemtype: 'method', - name: 'setADSR', - params: [ - { - name: 'attackTime', - description: - '

Time (in seconds before envelope\n reaches Attack Level

\n', - type: 'Number' - }, - { - name: 'decayTime', - description: - '

Time (in seconds) before envelope\n reaches Decay/Sustain Level

\n', - type: 'Number', - optional: true - }, - { - name: 'susRatio', - description: - '

Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\n where 1.0 = attackLevel, 0.0 = releaseLevel.\n The susRatio determines the decayLevel and the level at which the\n sustain portion of the envelope will sustain.\n For example, if attackLevel is 0.4, releaseLevel is 0,\n and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\n increased to 1.0 (using setRange),\n then decayLevel would increase proportionally, to become 0.5.

\n', - type: 'Number', - optional: true - }, - { - name: 'releaseTime', - description: '

Time in seconds from now (defaults to 0)

\n', - type: 'Number', - optional: true - } - ], - example: [ - "\n
\nvar attackLevel = 1.0;\nvar releaseLevel = 0;\n\nvar attackTime = 0.001;\nvar decayTime = 0.2;\nvar susPercent = 0.2;\nvar releaseTime = 0.5;\n\nvar env, triOsc;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n\n textAlign(CENTER);\n text('click to play', width/2, height/2);\n\n env = new p5.Envelope();\n env.setADSR(attackTime, decayTime, susPercent, releaseTime);\n env.setRange(attackLevel, releaseLevel);\n\n triOsc = new p5.Oscillator('triangle');\n triOsc.amp(env);\n triOsc.start();\n triOsc.freq(220);\n\n cnv.mousePressed(playEnv);\n}\n\nfunction playEnv() {\n env.play();\n}\n
" - ], - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 6554, - description: - '

Set max (attackLevel) and min (releaseLevel) of envelope.

\n', - itemtype: 'method', - name: 'setRange', - params: [ - { - name: 'aLevel', - description: '

attack level (defaults to 1)

\n', - type: 'Number' - }, - { - name: 'rLevel', - description: '

release level (defaults to 0)

\n', - type: 'Number' - } - ], - example: [ - "\n
\nvar attackLevel = 1.0;\nvar releaseLevel = 0;\n\nvar attackTime = 0.001;\nvar decayTime = 0.2;\nvar susPercent = 0.2;\nvar releaseTime = 0.5;\n\nvar env, triOsc;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n\n textAlign(CENTER);\n text('click to play', width/2, height/2);\n\n env = new p5.Envelope();\n env.setADSR(attackTime, decayTime, susPercent, releaseTime);\n env.setRange(attackLevel, releaseLevel);\n\n triOsc = new p5.Oscillator('triangle');\n triOsc.amp(env);\n triOsc.start();\n triOsc.freq(220);\n\n cnv.mousePressed(playEnv);\n}\n\nfunction playEnv() {\n env.play();\n}\n
" - ], - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 6633, - description: - '

Assign a parameter to be controlled by this envelope.\nIf a p5.Sound object is given, then the p5.Envelope will control its\noutput gain. If multiple inputs are provided, the env will\ncontrol all of them.

\n', - itemtype: 'method', - name: 'setInput', - params: [ - { - name: 'inputs', - description: - '

A p5.sound object or\n Web Audio Param.

\n', - type: 'Object', - optional: true, - multiple: true - } - ], - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 6648, - description: - '

Set whether the envelope ramp is linear (default) or exponential.\nExponential ramps can be useful because we perceive amplitude\nand frequency logarithmically.

\n', - itemtype: 'method', - name: 'setExp', - params: [ - { - name: 'isExp', - description: '

true is exponential, false is linear

\n', - type: 'Boolean' - } - ], - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 6666, - description: - '

Play tells the envelope to start acting on a given input.\nIf the input is a p5.sound object (i.e. AudioIn, Oscillator,\nSoundFile), then Envelope will control its output volume.\nEnvelopes can also be used to control any \nWeb Audio Audio Param.

\n', - itemtype: 'method', - name: 'play', - params: [ - { - name: 'unit', - description: - '

A p5.sound object or\n Web Audio Param.

\n', - type: 'Object' - }, - { - name: 'startTime', - description: '

time from now (in seconds) at which to play

\n', - type: 'Number', - optional: true - }, - { - name: 'sustainTime', - description: '

time to sustain before releasing the envelope

\n', - type: 'Number', - optional: true - } - ], - example: [ - "\n
\nvar attackLevel = 1.0;\nvar releaseLevel = 0;\n\nvar attackTime = 0.001;\nvar decayTime = 0.2;\nvar susPercent = 0.2;\nvar releaseTime = 0.5;\n\nvar env, triOsc;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n\n textAlign(CENTER);\n text('click to play', width/2, height/2);\n\n env = new p5.Envelope();\n env.setADSR(attackTime, decayTime, susPercent, releaseTime);\n env.setRange(attackLevel, releaseLevel);\n\n triOsc = new p5.Oscillator('triangle');\n triOsc.amp(env);\n triOsc.start();\n triOsc.freq(220);\n\n cnv.mousePressed(playEnv);\n}\n\nfunction playEnv() {\n // trigger env on triOsc, 0 seconds from now\n // After decay, sustain for 0.2 seconds before release\n env.play(triOsc, 0, 0.2);\n}\n
" - ], - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 6727, - description: - '

Trigger the Attack, and Decay portion of the Envelope.\nSimilar to holding down a key on a piano, but it will\nhold the sustain level until you let go. Input can be\nany p5.sound object, or a \nWeb Audio Param.

\n', - itemtype: 'method', - name: 'triggerAttack', - params: [ - { - name: 'unit', - description: '

p5.sound Object or Web Audio Param

\n', - type: 'Object' - }, - { - name: 'secondsFromNow', - description: '

time from now (in seconds)

\n', - type: 'Number' - } - ], - example: [ - "\n
\n\nvar attackLevel = 1.0;\nvar releaseLevel = 0;\n\nvar attackTime = 0.001;\nvar decayTime = 0.3;\nvar susPercent = 0.4;\nvar releaseTime = 0.5;\n\nvar env, triOsc;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n background(200);\n textAlign(CENTER);\n text('click to play', width/2, height/2);\n\n env = new p5.Envelope();\n env.setADSR(attackTime, decayTime, susPercent, releaseTime);\n env.setRange(attackLevel, releaseLevel);\n\n triOsc = new p5.Oscillator('triangle');\n triOsc.amp(env);\n triOsc.start();\n triOsc.freq(220);\n\n cnv.mousePressed(envAttack);\n}\n\nfunction envAttack() {\n console.log('trigger attack');\n env.triggerAttack();\n\n background(0,255,0);\n text('attack!', width/2, height/2);\n}\n\nfunction mouseReleased() {\n env.triggerRelease();\n\n background(200);\n text('click to play', width/2, height/2);\n}\n
" - ], - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 6834, - description: - '

Trigger the Release of the Envelope. This is similar to releasing\nthe key on a piano and letting the sound fade according to the\nrelease level and release time.

\n', - itemtype: 'method', - name: 'triggerRelease', - params: [ - { - name: 'unit', - description: '

p5.sound Object or Web Audio Param

\n', - type: 'Object' - }, - { - name: 'secondsFromNow', - description: '

time to trigger the release

\n', - type: 'Number' - } - ], - example: [ - "\n
\n\nvar attackLevel = 1.0;\nvar releaseLevel = 0;\n\nvar attackTime = 0.001;\nvar decayTime = 0.3;\nvar susPercent = 0.4;\nvar releaseTime = 0.5;\n\nvar env, triOsc;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n background(200);\n textAlign(CENTER);\n text('click to play', width/2, height/2);\n\n env = new p5.Envelope();\n env.setADSR(attackTime, decayTime, susPercent, releaseTime);\n env.setRange(attackLevel, releaseLevel);\n\n triOsc = new p5.Oscillator('triangle');\n triOsc.amp(env);\n triOsc.start();\n triOsc.freq(220);\n\n cnv.mousePressed(envAttack);\n}\n\nfunction envAttack() {\n console.log('trigger attack');\n env.triggerAttack();\n\n background(0,255,0);\n text('attack!', width/2, height/2);\n}\n\nfunction mouseReleased() {\n env.triggerRelease();\n\n background(200);\n text('click to play', width/2, height/2);\n}\n
" - ], - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 6931, - description: - '

Exponentially ramp to a value using the first two\nvalues from setADSR(attackTime, decayTime)\nas \ntime constants for simple exponential ramps.\nIf the value is higher than current value, it uses attackTime,\nwhile a decrease uses decayTime.

\n', - itemtype: 'method', - name: 'ramp', - params: [ - { - name: 'unit', - description: '

p5.sound Object or Web Audio Param

\n', - type: 'Object' - }, - { - name: 'secondsFromNow', - description: '

When to trigger the ramp

\n', - type: 'Number' - }, - { - name: 'v', - description: '

Target value

\n', - type: 'Number' - }, - { - name: 'v2', - description: '

Second target value (optional)

\n', - type: 'Number', - optional: true - } - ], - example: [ - "\n
\nvar env, osc, amp, cnv;\n\nvar attackTime = 0.001;\nvar decayTime = 0.2;\nvar attackLevel = 1;\nvar decayLevel = 0;\n\nfunction setup() {\n cnv = createCanvas(100, 100);\n fill(0,255,0);\n noStroke();\n\n env = new p5.Envelope();\n env.setADSR(attackTime, decayTime);\n\n osc = new p5.Oscillator();\n osc.amp(env);\n osc.start();\n\n amp = new p5.Amplitude();\n\n cnv.mousePressed(triggerRamp);\n}\n\nfunction triggerRamp() {\n env.ramp(osc, 0, attackLevel, decayLevel);\n}\n\nfunction draw() {\n background(20,20,20);\n text('click me', 10, 20);\n var h = map(amp.getLevel(), 0, 0.4, 0, height);;\n\n rect(0, height, width, -h);\n}\n
" - ], - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7038, - description: - '

Add a value to the p5.Oscillator's output amplitude,\nand return the oscillator. Calling this method\nagain will override the initial add() with new values.

\n', - itemtype: 'method', - name: 'add', - params: [ - { - name: 'number', - description: '

Constant number to add

\n', - type: 'Number' - } - ], - return: { - description: - 'Envelope Returns this envelope\n with scaled output', - type: 'p5.Envelope' - }, - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7054, - description: - '

Multiply the p5.Envelope's output amplitude\nby a fixed value. Calling this method\nagain will override the initial mult() with new values.

\n', - itemtype: 'method', - name: 'mult', - params: [ - { - name: 'number', - description: '

Constant number to multiply

\n', - type: 'Number' - } - ], - return: { - description: - 'Envelope Returns this envelope\n with scaled output', - type: 'p5.Envelope' - }, - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7070, - description: - '

Scale this envelope's amplitude values to a given\nrange, and return the envelope. Calling this method\nagain will override the initial scale() with new values.

\n', - itemtype: 'method', - name: 'scale', - params: [ - { - name: 'inMin', - description: '

input range minumum

\n', - type: 'Number' - }, - { - name: 'inMax', - description: '

input range maximum

\n', - type: 'Number' - }, - { - name: 'outMin', - description: '

input range minumum

\n', - type: 'Number' - }, - { - name: 'outMax', - description: '

input range maximum

\n', - type: 'Number' - } - ], - return: { - description: - 'Envelope Returns this envelope\n with scaled output', - type: 'p5.Envelope' - }, - class: 'p5.Envelope', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7178, - description: - '

Set the width of a Pulse object (an oscillator that implements\nPulse Width Modulation).

\n', - itemtype: 'method', - name: 'width', - params: [ - { - name: 'width', - description: - '

Width between the pulses (0 to 1.0,\n defaults to 0)

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Pulse', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7365, - description: - '

Set type of noise to 'white', 'pink' or 'brown'.\nWhite is the default.

\n', - itemtype: 'method', - name: 'setType', - params: [ - { - name: 'type', - description: - '

'white', 'pink' or 'brown'

\n', - type: 'String', - optional: true - } - ], - class: 'p5.Noise', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7478, - itemtype: 'property', - name: 'input', - type: 'GainNode', - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7482, - itemtype: 'property', - name: 'output', - type: 'GainNode', - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7486, - itemtype: 'property', - name: 'stream', - type: 'MediaStream|null', - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7490, - itemtype: 'property', - name: 'mediaStream', - type: 'MediaStreamAudioSourceNode|null', - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7494, - itemtype: 'property', - name: 'currentSource', - type: 'Number|null', - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7498, - description: - '

Client must allow browser to access their microphone / audioin source.\nDefault: false. Will become true when the client enables acces.

\n', - itemtype: 'property', - name: 'enabled', - type: 'Boolean', - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7505, - description: - '

Input amplitude, connect to it by default but not to master out

\n', - itemtype: 'property', - name: 'amplitude', - type: 'p5.Amplitude', - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7518, - description: - '

Start processing audio input. This enables the use of other\nAudioIn methods like getLevel(). Note that by default, AudioIn\nis not connected to p5.sound's output. So you won't hear\nanything unless you use the connect() method.

\n

Certain browsers limit access to the user's microphone. For example,\nChrome only allows access from localhost and over https. For this reason,\nyou may want to include an errorCallbackโ€”a function that is called in case\nthe browser won't provide mic access.

\n', - itemtype: 'method', - name: 'start', - params: [ - { - name: 'successCallback', - description: - '

Name of a function to call on\n success.

\n', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: - '

Name of a function to call if\n there was an error. For example,\n some browsers do not support\n getUserMedia.

\n', - type: 'Function', - optional: true - } - ], - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7571, - description: - '

Turn the AudioIn off. If the AudioIn is stopped, it cannot getLevel().\nIf re-starting, the user may be prompted for permission access.

\n', - itemtype: 'method', - name: 'stop', - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7587, - description: - '

Connect to an audio unit. If no parameter is provided, will\nconnect to the master output (i.e. your speakers).

\n', - itemtype: 'method', - name: 'connect', - params: [ - { - name: 'unit', - description: - '

An object that accepts audio input,\n such as an FFT

\n', - type: 'Object', - optional: true - } - ], - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7608, - description: - '

Disconnect the AudioIn from all audio units. For example, if\nconnect() had been called, disconnect() will stop sending\nsignal to your speakers.

\n', - itemtype: 'method', - name: 'disconnect', - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7622, - description: - '

Read the Amplitude (volume level) of an AudioIn. The AudioIn\nclass contains its own instance of the Amplitude class to help\nmake it easy to get a microphone's volume level. Accepts an\noptional smoothing value (0.0 < 1.0). NOTE: AudioIn must\n.start() before using .getLevel().

\n', - itemtype: 'method', - name: 'getLevel', - params: [ - { - name: 'smoothing', - description: - '

Smoothing is 0.0 by default.\n Smooths values based on previous values.

\n', - type: 'Number', - optional: true - } - ], - return: { - description: 'Volume level (between 0.0 and 1.0)', - type: 'Number' - }, - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7640, - description: - '

Set amplitude (volume) of a mic input between 0 and 1.0.

\n', - itemtype: 'method', - name: 'amp', - params: [ - { - name: 'vol', - description: '

between 0 and 1.0

\n', - type: 'Number' - }, - { - name: 'time', - description: '

ramp time (optional)

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7659, - description: - '

Returns a list of available input sources. This is a wrapper\nfor <a title="MediaDevices.enumerateDevices() - Web APIs | MDN" target="_blank" href=\n "https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices"

\n
\n

and it returns a Promise.

\n
\n', - itemtype: 'method', - name: 'getSources', - params: [ - { - name: 'successCallback', - description: - '

This callback function handles the sources when they\n have been enumerated. The callback function\n receives the deviceList array as its only argument

\n', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: - '

This optional callback receives the error\n message as its argument.

\n', - type: 'Function', - optional: true - } - ], - return: { - description: - 'Returns a Promise that can be used in place of the callbacks, similar\n to the enumerateDevices() method', - type: 'Promise' - }, - example: [ - '\n
\n var audiograb;\n\n function setup(){\n //new audioIn\n audioGrab = new p5.AudioIn();\n\n audioGrab.getSources(function(deviceList) {\n //print out the array of available sources\n console.log(deviceList);\n //set the source to the first item in the deviceList array\n audioGrab.setSource(0);\n });\n }\n
' - ], - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7710, - description: - '

Set the input source. Accepts a number representing a\nposition in the array returned by getSources().\nThis is only available in browsers that support\n<a title="MediaDevices.enumerateDevices() - Web APIs | MDN" target="_blank" href=\n"https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices"

\n
\n

navigator.mediaDevices.enumerateDevices().

\n
\n', - itemtype: 'method', - name: 'setSource', - params: [ - { - name: 'num', - description: '

position of input source in the array

\n', - type: 'Number' - } - ], - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7750, - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7766, - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7790, - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7816, - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7838, - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7860, - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7906, - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7937, - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 7955, - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8292, - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8314, - class: 'p5.AudioIn', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8390, - description: - '

In classes that extend\np5.Effect, connect effect nodes\nto the wet parameter

\n', - class: 'p5.Effect', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8403, - description: '

Set the output volume of the filter.

\n', - itemtype: 'method', - name: 'amp', - params: [ - { - name: 'vol', - description: '

amplitude between 0 and 1.0

\n', - type: 'Number', - optional: true - }, - { - name: 'rampTime', - description: '

create a fade that lasts until rampTime

\n', - type: 'Number', - optional: true - }, - { - name: 'tFromNow', - description: - '

schedule this event to happen in tFromNow seconds

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Effect', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8420, - description: - '

Link effects together in a chain
Example usage: filter.chain(reverb, delay, panner);\nMay be used with an open-ended number of arguments

\n', - itemtype: 'method', - name: 'chain', - params: [ - { - name: 'arguments', - description: '

Chain together multiple sound objects

\n', - type: 'Object', - optional: true - } - ], - class: 'p5.Effect', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8437, - description: '

Adjust the dry/wet value.

\n', - itemtype: 'method', - name: 'drywet', - params: [ - { - name: 'fade', - description: '

The desired drywet value (0 - 1.0)

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Effect', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8449, - description: - '

Send output to a p5.js-sound, Web Audio Node, or use signal to\ncontrol an AudioParam

\n', - itemtype: 'method', - name: 'connect', - params: [ - { - name: 'unit', - description: '', - type: 'Object' - } - ], - class: 'p5.Effect', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8460, - description: '

Disconnect all output.

\n', - itemtype: 'method', - name: 'disconnect', - class: 'p5.Effect', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8578, - description: - '

The p5.Filter is built with a\n\nWeb Audio BiquadFilter Node.

\n', - itemtype: 'property', - name: 'biquadFilter', - type: 'DelayNode', - class: 'p5.Filter', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8596, - description: - '

Filter an audio signal according to a set\nof filter parameters.

\n', - itemtype: 'method', - name: 'process', - params: [ - { - name: 'Signal', - description: '

An object that outputs audio

\n', - type: 'Object' - }, - { - name: 'freq', - description: '

Frequency in Hz, from 10 to 22050

\n', - type: 'Number', - optional: true - }, - { - name: 'res', - description: - '

Resonance/Width of the filter frequency\n from 0.001 to 1000

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Filter', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8610, - description: '

Set the frequency and the resonance of the filter.

\n', - itemtype: 'method', - name: 'set', - params: [ - { - name: 'freq', - description: '

Frequency in Hz, from 10 to 22050

\n', - type: 'Number', - optional: true - }, - { - name: 'res', - description: '

Resonance (Q) from 0.001 to 1000

\n', - type: 'Number', - optional: true - }, - { - name: 'timeFromNow', - description: - '

schedule this event to happen\n seconds from now

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Filter', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8627, - description: - '

Set the filter frequency, in Hz, from 10 to 22050 (the range of\nhuman hearing, although in reality most people hear in a narrower\nrange).

\n', - itemtype: 'method', - name: 'freq', - params: [ - { - name: 'freq', - description: '

Filter Frequency

\n', - type: 'Number' - }, - { - name: 'timeFromNow', - description: - '

schedule this event to happen\n seconds from now

\n', - type: 'Number', - optional: true - } - ], - return: { - description: 'value Returns the current frequency value', - type: 'Number' - }, - class: 'p5.Filter', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8651, - description: - '

Controls either width of a bandpass frequency,\nor the resonance of a low/highpass cutoff frequency.

\n', - itemtype: 'method', - name: 'res', - params: [ - { - name: 'res', - description: - '

Resonance/Width of filter freq\n from 0.001 to 1000

\n', - type: 'Number' - }, - { - name: 'timeFromNow', - description: - '

schedule this event to happen\n seconds from now

\n', - type: 'Number', - optional: true - } - ], - return: { - description: 'value Returns the current res value', - type: 'Number' - }, - class: 'p5.Filter', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8673, - description: - '

Controls the gain attribute of a Biquad Filter.\nThis is distinctly different from .amp() which is inherited from p5.Effect\n.amp() controls the volume via the output gain node\np5.Filter.gain() controls the gain parameter of a Biquad Filter node.

\n', - itemtype: 'method', - name: 'gain', - params: [ - { - name: 'gain', - description: '', - type: 'Number' - } - ], - return: { - description: 'Returns the current or updated gain value', - type: 'Number' - }, - class: 'p5.Filter', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8694, - description: - '

Toggle function. Switches between the specified type and allpass

\n', - itemtype: 'method', - name: 'toggle', - return: { - description: '[Toggle value]', - type: 'Boolean' - }, - class: 'p5.Filter', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8709, - description: - '

Set the type of a p5.Filter. Possible types include:\n"lowpass" (default), "highpass", "bandpass",\n"lowshelf", "highshelf", "peaking", "notch",\n"allpass".

\n', - itemtype: 'method', - name: 'setType', - params: [ - { - name: 't', - description: '', - type: 'String' - } - ], - class: 'p5.Filter', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8916, - description: - '

The p5.EQ is built with abstracted p5.Filter objects.\nTo modify any bands, use methods of the \np5.Filter API, especially gain and freq.\nBands are stored in an array, with indices 0 - 3, or 0 - 7

\n', - itemtype: 'property', - name: 'bands', - type: 'Array', - class: 'p5.EQ', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 8951, - description: '

Process an input by connecting it to the EQ

\n', - itemtype: 'method', - name: 'process', - params: [ - { - name: 'src', - description: '

Audio source

\n', - type: 'Object' - } - ], - class: 'p5.EQ', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9039, - description: - '

\nWeb Audio Spatial Panner Node

\n

Properties include

\n\n', - itemtype: 'property', - name: 'panner', - type: 'AudioNode', - class: 'p5.Panner3D', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9062, - description: '

Connect an audio sorce

\n', - itemtype: 'method', - name: 'process', - params: [ - { - name: 'src', - description: '

Input source

\n', - type: 'Object' - } - ], - class: 'p5.Panner3D', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9071, - description: '

Set the X,Y,Z position of the Panner

\n', - itemtype: 'method', - name: 'set', - params: [ - { - name: 'xVal', - description: '', - type: 'Number' - }, - { - name: 'yVal', - description: '', - type: 'Number' - }, - { - name: 'zVal', - description: '', - type: 'Number' - }, - { - name: 'time', - description: '', - type: 'Number' - } - ], - return: { - description: 'Updated x, y, z values as an array', - type: 'Array' - }, - class: 'p5.Panner3D', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9090, - description: '

Getter and setter methods for position coordinates

\n', - itemtype: 'method', - name: 'positionX', - return: { - description: 'updated coordinate value', - type: 'Number' - }, - class: 'p5.Panner3D', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9095, - description: '

Getter and setter methods for position coordinates

\n', - itemtype: 'method', - name: 'positionY', - return: { - description: 'updated coordinate value', - type: 'Number' - }, - class: 'p5.Panner3D', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9100, - description: '

Getter and setter methods for position coordinates

\n', - itemtype: 'method', - name: 'positionZ', - return: { - description: 'updated coordinate value', - type: 'Number' - }, - class: 'p5.Panner3D', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9138, - description: '

Set the X,Y,Z position of the Panner

\n', - itemtype: 'method', - name: 'orient', - params: [ - { - name: 'xVal', - description: '', - type: 'Number' - }, - { - name: 'yVal', - description: '', - type: 'Number' - }, - { - name: 'zVal', - description: '', - type: 'Number' - }, - { - name: 'time', - description: '', - type: 'Number' - } - ], - return: { - description: 'Updated x, y, z values as an array', - type: 'Array' - }, - class: 'p5.Panner3D', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9157, - description: '

Getter and setter methods for orient coordinates

\n', - itemtype: 'method', - name: 'orientX', - return: { - description: 'updated coordinate value', - type: 'Number' - }, - class: 'p5.Panner3D', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9162, - description: '

Getter and setter methods for orient coordinates

\n', - itemtype: 'method', - name: 'orientY', - return: { - description: 'updated coordinate value', - type: 'Number' - }, - class: 'p5.Panner3D', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9167, - description: '

Getter and setter methods for orient coordinates

\n', - itemtype: 'method', - name: 'orientZ', - return: { - description: 'updated coordinate value', - type: 'Number' - }, - class: 'p5.Panner3D', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9205, - description: '

Set the rolloff factor and max distance

\n', - itemtype: 'method', - name: 'setFalloff', - params: [ - { - name: 'maxDistance', - description: '', - type: 'Number', - optional: true - }, - { - name: 'rolloffFactor', - description: '', - type: 'Number', - optional: true - } - ], - class: 'p5.Panner3D', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9215, - description: '

Maxium distance between the source and the listener

\n', - itemtype: 'method', - name: 'maxDist', - params: [ - { - name: 'maxDistance', - description: '', - type: 'Number' - } - ], - return: { - description: 'updated value', - type: 'Number' - }, - class: 'p5.Panner3D', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9227, - description: - '

How quickly the volume is reduced as the source moves away from the listener

\n', - itemtype: 'method', - name: 'rollof', - params: [ - { - name: 'rolloffFactor', - description: '', - type: 'Number' - } - ], - return: { - description: 'updated value', - type: 'Number' - }, - class: 'p5.Panner3D', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9532, - description: - '

The p5.Delay is built with two\n\nWeb Audio Delay Nodes, one for each stereo channel.

\n', - itemtype: 'property', - name: 'leftDelay', - type: 'DelayNode', - class: 'p5.Delay', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9540, - description: - '

The p5.Delay is built with two\n\nWeb Audio Delay Nodes, one for each stereo channel.

\n', - itemtype: 'property', - name: 'rightDelay', - type: 'DelayNode', - class: 'p5.Delay', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9572, - description: - '

Add delay to an audio signal according to a set\nof delay parameters.

\n', - itemtype: 'method', - name: 'process', - params: [ - { - name: 'Signal', - description: '

An object that outputs audio

\n', - type: 'Object' - }, - { - name: 'delayTime', - description: - '

Time (in seconds) of the delay/echo.\n Some browsers limit delayTime to\n 1 second.

\n', - type: 'Number', - optional: true - }, - { - name: 'feedback', - description: - '

sends the delay back through itself\n in a loop that decreases in volume\n each time.

\n', - type: 'Number', - optional: true - }, - { - name: 'lowPass', - description: - '

Cutoff frequency. Only frequencies\n below the lowPass will be part of the\n delay.

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Delay', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9607, - description: - '

Set the delay (echo) time, in seconds. Usually this value will be\na floating point number between 0.0 and 1.0.

\n', - itemtype: 'method', - name: 'delayTime', - params: [ - { - name: 'delayTime', - description: '

Time (in seconds) of the delay

\n', - type: 'Number' - } - ], - class: 'p5.Delay', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9626, - description: - '

Feedback occurs when Delay sends its signal back through its input\nin a loop. The feedback amount determines how much signal to send each\ntime through the loop. A feedback greater than 1.0 is not desirable because\nit will increase the overall output each time through the loop,\ncreating an infinite feedback loop. The default value is 0.5

\n', - itemtype: 'method', - name: 'feedback', - params: [ - { - name: 'feedback', - description: - '

0.0 to 1.0, or an object such as an\n Oscillator that can be used to\n modulate this param

\n', - type: 'Number|Object' - } - ], - return: { - description: 'Feedback value', - type: 'Number' - }, - class: 'p5.Delay', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9654, - description: - '

Set a lowpass filter frequency for the delay. A lowpass filter\nwill cut off any frequencies higher than the filter frequency.

\n', - itemtype: 'method', - name: 'filter', - params: [ - { - name: 'cutoffFreq', - description: - '

A lowpass filter will cut off any\n frequencies higher than the filter frequency.

\n', - type: 'Number|Object' - }, - { - name: 'res', - description: - '

Resonance of the filter frequency\n cutoff, or an object (i.e. a p5.Oscillator)\n that can be used to modulate this parameter.\n High numbers (i.e. 15) will produce a resonance,\n low numbers (i.e. .2) will produce a slope.

\n', - type: 'Number|Object' - } - ], - class: 'p5.Delay', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9671, - description: - '

Choose a preset type of delay. 'pingPong' bounces the signal\nfrom the left to the right channel to produce a stereo effect.\nAny other parameter will revert to the default delay setting.

\n', - itemtype: 'method', - name: 'setType', - params: [ - { - name: 'type', - description: '

'pingPong' (1) or 'default' (0)

\n', - type: 'String|Number' - } - ], - class: 'p5.Delay', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9704, - description: '

Set the output level of the delay effect.

\n', - itemtype: 'method', - name: 'amp', - params: [ - { - name: 'volume', - description: '

amplitude between 0 and 1.0

\n', - type: 'Number' - }, - { - name: 'rampTime', - description: '

create a fade that lasts rampTime

\n', - type: 'Number', - optional: true - }, - { - name: 'timeFromNow', - description: - '

schedule this event to happen\n seconds from now

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Delay', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9713, - description: '

Send output to a p5.sound or web audio object

\n', - itemtype: 'method', - name: 'connect', - params: [ - { - name: 'unit', - description: '', - type: 'Object' - } - ], - class: 'p5.Delay', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9719, - description: '

Disconnect all output.

\n', - itemtype: 'method', - name: 'disconnect', - class: 'p5.Delay', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9812, - description: - '

Connect a source to the reverb, and assign reverb parameters.

\n', - itemtype: 'method', - name: 'process', - params: [ - { - name: 'src', - description: - '

p5.sound / Web Audio object with a sound\n output.

\n', - type: 'Object' - }, - { - name: 'seconds', - description: - '

Duration of the reverb, in seconds.\n Min: 0, Max: 10. Defaults to 3.

\n', - type: 'Number', - optional: true - }, - { - name: 'decayRate', - description: - '

Percentage of decay with each echo.\n Min: 0, Max: 100. Defaults to 2.

\n', - type: 'Number', - optional: true - }, - { - name: 'reverse', - description: '

Play the reverb backwards or forwards.

\n', - type: 'Boolean', - optional: true - } - ], - class: 'p5.Reverb', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9841, - description: - '

Set the reverb settings. Similar to .process(), but without\nassigning a new input.

\n', - itemtype: 'method', - name: 'set', - params: [ - { - name: 'seconds', - description: - '

Duration of the reverb, in seconds.\n Min: 0, Max: 10. Defaults to 3.

\n', - type: 'Number', - optional: true - }, - { - name: 'decayRate', - description: - '

Percentage of decay with each echo.\n Min: 0, Max: 100. Defaults to 2.

\n', - type: 'Number', - optional: true - }, - { - name: 'reverse', - description: '

Play the reverb backwards or forwards.

\n', - type: 'Boolean', - optional: true - } - ], - class: 'p5.Reverb', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9869, - description: '

Set the output level of the reverb effect.

\n', - itemtype: 'method', - name: 'amp', - params: [ - { - name: 'volume', - description: '

amplitude between 0 and 1.0

\n', - type: 'Number' - }, - { - name: 'rampTime', - description: '

create a fade that lasts rampTime

\n', - type: 'Number', - optional: true - }, - { - name: 'timeFromNow', - description: - '

schedule this event to happen\n seconds from now

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Reverb', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9878, - description: '

Send output to a p5.sound or web audio object

\n', - itemtype: 'method', - name: 'connect', - params: [ - { - name: 'unit', - description: '', - type: 'Object' - } - ], - class: 'p5.Reverb', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9884, - description: '

Disconnect all output.

\n', - itemtype: 'method', - name: 'disconnect', - class: 'p5.Reverb', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9975, - description: - '

Internally, the p5.Convolver uses the a\n\nWeb Audio Convolver Node.

\n', - itemtype: 'property', - name: 'convolverNode', - type: 'ConvolverNode', - class: 'p5.Convolver', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 9998, - description: - '

Create a p5.Convolver. Accepts a path to a soundfile\nthat will be used to generate an impulse response.

\n', - itemtype: 'method', - name: 'createConvolver', - params: [ - { - name: 'path', - description: '

path to a sound file

\n', - type: 'String' - }, - { - name: 'callback', - description: - '

function to call if loading is successful.\n The object will be passed in as the argument\n to the callback function.

\n', - type: 'Function', - optional: true - }, - { - name: 'errorCallback', - description: - '

function to call if loading is not successful.\n A custom error will be passed in as the argument\n to the callback function.

\n', - type: 'Function', - optional: true - } - ], - return: { - description: '', - type: 'p5.Convolver' - }, - example: [ - "\n
\nvar cVerb, sound;\nfunction preload() {\n // We have both MP3 and OGG versions of all sound assets\n soundFormats('ogg', 'mp3');\n\n // Try replacing 'bx-spring' with other soundfiles like\n // 'concrete-tunnel' 'small-plate' 'drum' 'beatbox'\n cVerb = createConvolver('assets/bx-spring.mp3');\n\n // Try replacing 'Damscray_DancingTiger' with\n // 'beat', 'doorbell', lucky_dragons_-_power_melody'\n sound = loadSound('assets/Damscray_DancingTiger.mp3');\n}\n\nfunction setup() {\n // disconnect from master output...\n sound.disconnect();\n\n // ...and process with cVerb\n // so that we only hear the convolution\n cVerb.process(sound);\n\n sound.play();\n}\n
" - ], - class: 'p5.Convolver', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10122, - description: - '

Connect a source to the reverb, and assign reverb parameters.

\n', - itemtype: 'method', - name: 'process', - params: [ - { - name: 'src', - description: - '

p5.sound / Web Audio object with a sound\n output.

\n', - type: 'Object' - } - ], - example: [ - "\n
\nvar cVerb, sound;\nfunction preload() {\n soundFormats('ogg', 'mp3');\n\n cVerb = createConvolver('assets/concrete-tunnel.mp3');\n\n sound = loadSound('assets/beat.mp3');\n}\n\nfunction setup() {\n // disconnect from master output...\n sound.disconnect();\n\n // ...and process with (i.e. connect to) cVerb\n // so that we only hear the convolution\n cVerb.process(sound);\n\n sound.play();\n}\n
" - ], - class: 'p5.Convolver', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10154, - description: - '

If you load multiple impulse files using the .addImpulse method,\nthey will be stored as Objects in this Array. Toggle between them\nwith the toggleImpulse(id) method.

\n', - itemtype: 'property', - name: 'impulses', - type: 'Array', - class: 'p5.Convolver', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10162, - description: - '

Load and assign a new Impulse Response to the p5.Convolver.\nThe impulse is added to the .impulses array. Previous\nimpulses can be accessed with the .toggleImpulse(id)\nmethod.

\n', - itemtype: 'method', - name: 'addImpulse', - params: [ - { - name: 'path', - description: '

path to a sound file

\n', - type: 'String' - }, - { - name: 'callback', - description: '

function (optional)

\n', - type: 'Function' - }, - { - name: 'errorCallback', - description: '

function (optional)

\n', - type: 'Function' - } - ], - class: 'p5.Convolver', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10180, - description: - '

Similar to .addImpulse, except that the .impulses\nArray is reset to save memory. A new .impulses\narray is created with this impulse as the only item.

\n', - itemtype: 'method', - name: 'resetImpulse', - params: [ - { - name: 'path', - description: '

path to a sound file

\n', - type: 'String' - }, - { - name: 'callback', - description: '

function (optional)

\n', - type: 'Function' - }, - { - name: 'errorCallback', - description: '

function (optional)

\n', - type: 'Function' - } - ], - class: 'p5.Convolver', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10198, - description: - '

If you have used .addImpulse() to add multiple impulses\nto a p5.Convolver, then you can use this method to toggle between\nthe items in the .impulses Array. Accepts a parameter\nto identify which impulse you wish to use, identified either by its\noriginal filename (String) or by its position in the .impulses\n Array (Number).
\nYou can access the objects in the .impulses Array directly. Each\nObject has two attributes: an .audioBuffer (type:\nWeb Audio \nAudioBuffer) and a .name, a String that corresponds\nwith the original filename.

\n', - itemtype: 'method', - name: 'toggleImpulse', - params: [ - { - name: 'id', - description: - '

Identify the impulse by its original filename\n (String), or by its position in the\n .impulses Array (Number).

\n', - type: 'String|Number' - } - ], - class: 'p5.Convolver', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10240, - class: 'p5.Convolver', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10265, - class: 'p5.Convolver', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10460, - description: - '

Set the global tempo, in beats per minute, for all\np5.Parts. This method will impact all active p5.Parts.

\n', - itemtype: 'method', - name: 'setBPM', - params: [ - { - name: 'BPM', - description: '

Beats Per Minute

\n', - type: 'Number' - }, - { - name: 'rampTime', - description: '

Seconds from now

\n', - type: 'Number' - } - ], - class: 'p5.Convolver', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10550, - description: - '

Array of values to pass into the callback\nat each step of the phrase. Depending on the callback\nfunction's requirements, these values may be numbers,\nstrings, or an object with multiple parameters.\nZero (0) indicates a rest.

\n', - itemtype: 'property', - name: 'sequence', - type: 'Array', - class: 'p5.Phrase', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10638, - description: '

Set the tempo of this part, in Beats Per Minute.

\n', - itemtype: 'method', - name: 'setBPM', - params: [ - { - name: 'BPM', - description: '

Beats Per Minute

\n', - type: 'Number' - }, - { - name: 'rampTime', - description: '

Seconds from now

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Part', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10648, - description: - '

Returns the tempo, in Beats Per Minute, of this part.

\n', - itemtype: 'method', - name: 'getBPM', - return: { - description: '', - type: 'Number' - }, - class: 'p5.Part', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10657, - description: - '

Start playback of this part. It will play\nthrough all of its phrases at a speed\ndetermined by setBPM.

\n', - itemtype: 'method', - name: 'start', - params: [ - { - name: 'time', - description: '

seconds from now

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Part', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10673, - description: - '

Loop playback of this part. It will begin\nlooping through all of its phrases at a speed\ndetermined by setBPM.

\n', - itemtype: 'method', - name: 'loop', - params: [ - { - name: 'time', - description: '

seconds from now

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Part', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10690, - description: '

Tell the part to stop looping.

\n', - itemtype: 'method', - name: 'noLoop', - class: 'p5.Part', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10702, - description: - '

Stop the part and cue it to step 0. Playback will resume from the begining of the Part when it is played again.

\n', - itemtype: 'method', - name: 'stop', - params: [ - { - name: 'time', - description: '

seconds from now

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Part', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10712, - description: - '

Pause the part. Playback will resume\nfrom the current step.

\n', - itemtype: 'method', - name: 'pause', - params: [ - { - name: 'time', - description: '

seconds from now

\n', - type: 'Number' - } - ], - class: 'p5.Part', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10724, - description: '

Add a p5.Phrase to this Part.

\n', - itemtype: 'method', - name: 'addPhrase', - params: [ - { - name: 'phrase', - description: '

reference to a p5.Phrase

\n', - type: 'p5.Phrase' - } - ], - class: 'p5.Part', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10745, - description: - '

Remove a phrase from this part, based on the name it was\ngiven when it was created.

\n', - itemtype: 'method', - name: 'removePhrase', - params: [ - { - name: 'phraseName', - description: '', - type: 'String' - } - ], - class: 'p5.Part', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10759, - description: - '

Get a phrase from this part, based on the name it was\ngiven when it was created. Now you can modify its array.

\n', - itemtype: 'method', - name: 'getPhrase', - params: [ - { - name: 'phraseName', - description: '', - type: 'String' - } - ], - class: 'p5.Part', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10773, - description: - '

Find all sequences with the specified name, and replace their patterns with the specified array.

\n', - itemtype: 'method', - name: 'replaceSequence', - params: [ - { - name: 'phraseName', - description: '', - type: 'String' - }, - { - name: 'sequence', - description: - '

Array of values to pass into the callback\n at each step of the phrase.

\n', - type: 'Array' - } - ], - class: 'p5.Part', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10800, - description: - '

Set the function that will be called at every step. This will clear the previous function.

\n', - itemtype: 'method', - name: 'onStep', - params: [ - { - name: 'callback', - description: - '

The name of the callback\n you want to fire\n on every beat/tatum.

\n', - type: 'Function' - } - ], - class: 'p5.Part', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10853, - description: '

Start playback of the score.

\n', - itemtype: 'method', - name: 'start', - class: 'p5.Score', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10862, - description: '

Stop playback of the score.

\n', - itemtype: 'method', - name: 'stop', - class: 'p5.Score', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10872, - description: '

Pause playback of the score.

\n', - itemtype: 'method', - name: 'pause', - class: 'p5.Score', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10880, - description: '

Loop playback of the score.

\n', - itemtype: 'method', - name: 'loop', - class: 'p5.Score', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10889, - description: - '

Stop looping playback of the score. If it\nis currently playing, this will go into effect\nafter the current round of playback completes.

\n', - itemtype: 'method', - name: 'noLoop', - class: 'p5.Score', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10914, - description: '

Set the tempo for all parts in the score

\n', - itemtype: 'method', - name: 'setBPM', - params: [ - { - name: 'BPM', - description: '

Beats Per Minute

\n', - type: 'Number' - }, - { - name: 'rampTime', - description: '

Seconds from now

\n', - type: 'Number' - } - ], - class: 'p5.Score', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10982, - description: - '

musicalTimeMode uses Tone.Time convention\ntrue if string, false if number

\n', - itemtype: 'property', - name: 'musicalTimeMode', - type: 'Boolean', - class: 'p5.SoundLoop', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10989, - description: - '

musicalTimeMode variables\nmodify these only when the interval is specified in musicalTime format as a string

\n', - class: 'p5.SoundLoop', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 10996, - description: - '

Set a limit to the number of loops to play. defaults to Infinity

\n', - itemtype: 'property', - name: 'maxIterations', - type: 'Number', - class: 'p5.SoundLoop', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11005, - description: - '

Do not initiate the callback if timeFromNow is < 0\nThis ususually occurs for a few milliseconds when the page\nis not fully loaded

\n

The callback should only be called until maxIterations is reached

\n', - class: 'p5.SoundLoop', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11019, - description: '

Start the loop

\n', - itemtype: 'method', - name: 'start', - params: [ - { - name: 'timeFromNow', - description: '

schedule a starting time

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.SoundLoop', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11032, - description: '

Stop the loop

\n', - itemtype: 'method', - name: 'stop', - params: [ - { - name: 'timeFromNow', - description: '

schedule a stopping time

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.SoundLoop', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11045, - description: '

Pause the loop

\n', - itemtype: 'method', - name: 'pause', - params: [ - { - name: 'timeFromNow', - description: '

schedule a pausing time

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.SoundLoop', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11058, - description: - '

Synchronize loops. Use this method to start two more more loops in synchronization\nor to start a loop in synchronization with a loop that is already playing\nThis method will schedule the implicit loop in sync with the explicit master loop\ni.e. loopToStart.syncedStart(loopToSyncWith)

\n', - itemtype: 'method', - name: 'syncedStart', - params: [ - { - name: 'otherLoop', - description: '

a p5.SoundLoop to sync with

\n', - type: 'Object' - }, - { - name: 'timeFromNow', - description: - '

Start the loops in sync after timeFromNow seconds

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.SoundLoop', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11139, - description: - '

Getters and Setters, setting any paramter will result in a change in the clock's\nfrequency, that will be reflected after the next callback\nbeats per minute (defaults to 60)

\n', - itemtype: 'property', - name: 'bpm', - type: 'Number', - class: 'p5.SoundLoop', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11157, - description: - '

number of quarter notes in a measure (defaults to 4)

\n', - itemtype: 'property', - name: 'timeSignature', - type: 'Number', - class: 'p5.SoundLoop', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11173, - description: '

length of the loops interval

\n', - itemtype: 'property', - name: 'interval', - type: 'Number|String', - class: 'p5.SoundLoop', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11187, - description: '

how many times the callback has been called so far

\n', - itemtype: 'property', - name: 'iterations', - type: 'Number', - readonly: '', - class: 'p5.SoundLoop', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11228, - description: - '

The p5.Compressor is built with a Web Audio Dynamics Compressor Node\n

\n', - itemtype: 'property', - name: 'compressor', - type: 'AudioNode', - class: 'p5.Compressor', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11239, - description: - '

Performs the same function as .connect, but also accepts\noptional parameters to set compressor's audioParams

\n', - itemtype: 'method', - name: 'process', - params: [ - { - name: 'src', - description: '

Sound source to be connected

\n', - type: 'Object' - }, - { - name: 'attack', - description: - '

The amount of time (in seconds) to reduce the gain by 10dB,\n default = .003, range 0 - 1

\n', - type: 'Number', - optional: true - }, - { - name: 'knee', - description: - '

A decibel value representing the range above the \n threshold where the curve smoothly transitions to the "ratio" portion.\n default = 30, range 0 - 40

\n', - type: 'Number', - optional: true - }, - { - name: 'ratio', - description: - '

The amount of dB change in input for a 1 dB change in output\n default = 12, range 1 - 20

\n', - type: 'Number', - optional: true - }, - { - name: 'threshold', - description: - '

The decibel value above which the compression will start taking effect\n default = -24, range -100 - 0

\n', - type: 'Number', - optional: true - }, - { - name: 'release', - description: - '

The amount of time (in seconds) to increase the gain by 10dB\n default = .25, range 0 - 1

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Compressor', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11262, - description: '

Set the paramters of a compressor.

\n', - itemtype: 'method', - name: 'set', - params: [ - { - name: 'attack', - description: - '

The amount of time (in seconds) to reduce the gain by 10dB,\n default = .003, range 0 - 1

\n', - type: 'Number' - }, - { - name: 'knee', - description: - '

A decibel value representing the range above the \n threshold where the curve smoothly transitions to the "ratio" portion.\n default = 30, range 0 - 40

\n', - type: 'Number' - }, - { - name: 'ratio', - description: - '

The amount of dB change in input for a 1 dB change in output\n default = 12, range 1 - 20

\n', - type: 'Number' - }, - { - name: 'threshold', - description: - '

The decibel value above which the compression will start taking effect\n default = -24, range -100 - 0

\n', - type: 'Number' - }, - { - name: 'release', - description: - '

The amount of time (in seconds) to increase the gain by 10dB\n default = .25, range 0 - 1

\n', - type: 'Number' - } - ], - class: 'p5.Compressor', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11294, - description: '

Get current attack or set value w/ time ramp

\n', - itemtype: 'method', - name: 'attack', - params: [ - { - name: 'attack', - description: - '

Attack is the amount of time (in seconds) to reduce the gain by 10dB,\n default = .003, range 0 - 1

\n', - type: 'Number', - optional: true - }, - { - name: 'time', - description: - '

Assign time value to schedule the change in value

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Compressor', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11314, - description: '

Get current knee or set value w/ time ramp

\n', - itemtype: 'method', - name: 'knee', - params: [ - { - name: 'knee', - description: - '

A decibel value representing the range above the \n threshold where the curve smoothly transitions to the "ratio" portion.\n default = 30, range 0 - 40

\n', - type: 'Number', - optional: true - }, - { - name: 'time', - description: - '

Assign time value to schedule the change in value

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Compressor', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11334, - description: '

Get current ratio or set value w/ time ramp

\n', - itemtype: 'method', - name: 'ratio', - params: [ - { - name: 'ratio', - description: - '

The amount of dB change in input for a 1 dB change in output\n default = 12, range 1 - 20

\n', - type: 'Number', - optional: true - }, - { - name: 'time', - description: - '

Assign time value to schedule the change in value

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Compressor', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11353, - description: '

Get current threshold or set value w/ time ramp

\n', - itemtype: 'method', - name: 'threshold', - params: [ - { - name: 'threshold', - description: - '

The decibel value above which the compression will start taking effect\n default = -24, range -100 - 0

\n', - type: 'Number' - }, - { - name: 'time', - description: - '

Assign time value to schedule the change in value

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Compressor', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11372, - description: '

Get current release or set value w/ time ramp

\n', - itemtype: 'method', - name: 'release', - params: [ - { - name: 'release', - description: - '

The amount of time (in seconds) to increase the gain by 10dB\n default = .25, range 0 - 1

\n', - type: 'Number' - }, - { - name: 'time', - description: - '

Assign time value to schedule the change in value

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Compressor', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11392, - description: '

Return the current reduction value

\n', - itemtype: 'method', - name: 'reduction', - return: { - description: - 'Value of the amount of gain reduction that is applied to the signal', - type: 'Number' - }, - class: 'p5.Compressor', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11508, - description: - '

Connect a specific device to the p5.SoundRecorder.\nIf no parameter is given, p5.SoundRecorer will record\nall audible p5.sound from your sketch.

\n', - itemtype: 'method', - name: 'setInput', - params: [ - { - name: 'unit', - description: - '

p5.sound object or a web audio unit\n that outputs sound

\n', - type: 'Object', - optional: true - } - ], - class: 'p5.SoundRecorder', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11529, - description: - '

Start recording. To access the recording, provide\na p5.SoundFile as the first parameter. The p5.SoundRecorder\nwill send its recording to that p5.SoundFile for playback once\nrecording is complete. Optional parameters include duration\n(in seconds) of the recording, and a callback function that\nwill be called once the complete recording has been\ntransfered to the p5.SoundFile.

\n', - itemtype: 'method', - name: 'record', - params: [ - { - name: 'soundFile', - description: '

p5.SoundFile

\n', - type: 'p5.SoundFile' - }, - { - name: 'duration', - description: '

Time (in seconds)

\n', - type: 'Number', - optional: true - }, - { - name: 'callback', - description: - '

The name of a function that will be\n called once the recording completes

\n', - type: 'Function', - optional: true - } - ], - class: 'p5.SoundRecorder', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11562, - description: - '

Stop the recording. Once the recording is stopped,\nthe results will be sent to the p5.SoundFile that\nwas given on .record(), and if a callback function\nwas provided on record, that function will be called.

\n', - itemtype: 'method', - name: 'stop', - class: 'p5.SoundRecorder', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11635, - description: - '

Save a p5.SoundFile as a .wav file. The browser will prompt the user\nto download the file to their device.\nFor uploading audio to a server, use\np5.SoundFile.saveBlob.

\n', - itemtype: 'method', - name: 'saveSound', - params: [ - { - name: 'soundFile', - description: '

p5.SoundFile that you wish to save

\n', - type: 'p5.SoundFile' - }, - { - name: 'fileName', - description: '

name of the resulting .wav file.

\n', - type: 'String' - } - ], - class: 'p5', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11761, - description: '

isDetected is set to true when a peak is detected.

\n', - itemtype: 'attribute', - name: 'isDetected', - type: 'Boolean', - default: 'false', - class: 'p5.PeakDetect', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11774, - description: - '

The update method is run in the draw loop.

\n

Accepts an FFT object. You must call .analyze()\non the FFT object prior to updating the peakDetect\nbecause it relies on a completed FFT analysis.

\n', - itemtype: 'method', - name: 'update', - params: [ - { - name: 'fftObject', - description: '

A p5.FFT object

\n', - type: 'p5.FFT' - } - ], - class: 'p5.PeakDetect', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11805, - description: - '

onPeak accepts two arguments: a function to call when\na peak is detected. The value of the peak,\nbetween 0.0 and 1.0, is passed to the callback.

\n', - itemtype: 'method', - name: 'onPeak', - params: [ - { - name: 'callback', - description: - '

Name of a function that will\n be called when a peak is\n detected.

\n', - type: 'Function' - }, - { - name: 'val', - description: - '

Optional value to pass\n into the function when\n a peak is detected.

\n', - type: 'Object', - optional: true - } - ], - example: [ - "\n
\nvar cnv, soundFile, fft, peakDetect;\nvar ellipseWidth = 0;\n\nfunction preload() {\n soundFile = loadSound('assets/beat.mp3');\n}\n\nfunction setup() {\n cnv = createCanvas(100,100);\n textAlign(CENTER);\n\n fft = new p5.FFT();\n peakDetect = new p5.PeakDetect();\n\n setupSound();\n\n // when a beat is detected, call triggerBeat()\n peakDetect.onPeak(triggerBeat);\n}\n\nfunction draw() {\n background(0);\n fill(255);\n text('click to play', width/2, height/2);\n\n fft.analyze();\n peakDetect.update(fft);\n\n ellipseWidth *= 0.95;\n ellipse(width/2, height/2, ellipseWidth, ellipseWidth);\n}\n\n// this function is called by peakDetect.onPeak\nfunction triggerBeat() {\n ellipseWidth = 50;\n}\n\n// mouseclick starts/stops sound\nfunction setupSound() {\n cnv.mouseClicked( function() {\n if (soundFile.isPlaying() ) {\n soundFile.stop();\n } else {\n soundFile.play();\n }\n });\n}\n
" - ], - class: 'p5.PeakDetect', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11954, - description: '

Connect a source to the gain node.

\n', - itemtype: 'method', - name: 'setInput', - params: [ - { - name: 'src', - description: - '

p5.sound / Web Audio object with a sound\n output.

\n', - type: 'Object' - } - ], - class: 'p5.Gain', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11964, - description: '

Send output to a p5.sound or web audio object

\n', - itemtype: 'method', - name: 'connect', - params: [ - { - name: 'unit', - description: '', - type: 'Object' - } - ], - class: 'p5.Gain', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11974, - description: '

Disconnect all output.

\n', - itemtype: 'method', - name: 'disconnect', - class: 'p5.Gain', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 11984, - description: '

Set the output level of the gain node.

\n', - itemtype: 'method', - name: 'amp', - params: [ - { - name: 'volume', - description: '

amplitude between 0 and 1.0

\n', - type: 'Number' - }, - { - name: 'rampTime', - description: '

create a fade that lasts rampTime

\n', - type: 'Number', - optional: true - }, - { - name: 'timeFromNow', - description: - '

schedule this event to happen\n seconds from now

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.Gain', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12042, - description: '

Connect to p5 objects or Web Audio Nodes

\n', - itemtype: 'method', - name: 'connect', - params: [ - { - name: 'unit', - description: '', - type: 'Object' - } - ], - class: 'p5.AudioVoice', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12051, - description: '

Disconnect from soundOut

\n', - itemtype: 'method', - name: 'disconnect', - class: 'p5.AudioVoice', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12131, - description: - '

Play tells the MonoSynth to start playing a note. This method schedules\nthe calling of .triggerAttack and .triggerRelease.

\n', - itemtype: 'method', - name: 'play', - params: [ - { - name: 'note', - description: - '

the note you want to play, specified as a\n frequency in Hertz (Number) or as a midi\n value in Note/Octave format ("C4", "Eb3"...etc")\n See \n Tone. Defaults to 440 hz.

\n', - type: 'String | Number' - }, - { - name: 'velocity', - description: - '

velocity of the note to play (ranging from 0 to 1)

\n', - type: 'Number', - optional: true - }, - { - name: 'secondsFromNow', - description: '

time from now (in seconds) at which to play

\n', - type: 'Number', - optional: true - }, - { - name: 'sustainTime', - description: '

time to sustain before releasing the envelope

\n', - type: 'Number', - optional: true - } - ], - example: [ - '\n
\nvar monoSynth;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n cnv.mousePressed(playSynth);\n\n monoSynth = new p5.MonoSynth();\n\n textAlign(CENTER);\n text(\'click to play\', width/2, height/2);\n}\n\nfunction playSynth() {\n // time from now (in seconds)\n var time = 0;\n // note duration (in seconds)\n var dur = 1/6;\n // note velocity (volume, from 0 to 1)\n var v = random();\n\n monoSynth.play("Fb3", v, 0, dur);\n monoSynth.play("Gb3", v, time += dur, dur);\n\n background(random(255), random(255), 255);\n text(\'click to play\', width/2, height/2);\n}\n
\n' - ], - class: 'p5.MonoSynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12179, - description: - '

Trigger the Attack, and Decay portion of the Envelope.\nSimilar to holding down a key on a piano, but it will\nhold the sustain level until you let go.

\n', - params: [ - { - name: 'note', - description: - '

the note you want to play, specified as a\n frequency in Hertz (Number) or as a midi\n value in Note/Octave format ("C4", "Eb3"...etc")\n See \n Tone. Defaults to 440 hz

\n', - type: 'String | Number' - }, - { - name: 'velocity', - description: - '

velocity of the note to play (ranging from 0 to 1)

\n', - type: 'Number', - optional: true - }, - { - name: 'secondsFromNow', - description: '

time from now (in seconds) at which to play

\n', - type: 'Number', - optional: true - } - ], - itemtype: 'method', - name: 'triggerAttack', - example: [ - '\n
\nvar monoSynth = new p5.MonoSynth();\n\nfunction mousePressed() {\n monoSynth.triggerAttack("E3");\n}\n\nfunction mouseReleased() {\n monoSynth.triggerRelease();\n}\n
' - ], - class: 'p5.MonoSynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12212, - description: - '

Trigger the release of the Envelope. This is similar to releasing\nthe key on a piano and letting the sound fade according to the\nrelease level and release time.

\n', - params: [ - { - name: 'secondsFromNow', - description: '

time to trigger the release

\n', - type: 'Number' - } - ], - itemtype: 'method', - name: 'triggerRelease', - example: [ - '\n
\nvar monoSynth = new p5.MonoSynth();\n\nfunction mousePressed() {\n monoSynth.triggerAttack("E3");\n}\n\nfunction mouseReleased() {\n monoSynth.triggerRelease();\n}\n
' - ], - class: 'p5.MonoSynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12236, - description: - '

Set values like a traditional\n\nADSR envelope\n.

\n', - itemtype: 'method', - name: 'setADSR', - params: [ - { - name: 'attackTime', - description: - '

Time (in seconds before envelope\n reaches Attack Level

\n', - type: 'Number' - }, - { - name: 'decayTime', - description: - '

Time (in seconds) before envelope\n reaches Decay/Sustain Level

\n', - type: 'Number', - optional: true - }, - { - name: 'susRatio', - description: - '

Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\n where 1.0 = attackLevel, 0.0 = releaseLevel.\n The susRatio determines the decayLevel and the level at which the\n sustain portion of the envelope will sustain.\n For example, if attackLevel is 0.4, releaseLevel is 0,\n and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\n increased to 1.0 (using setRange),\n then decayLevel would increase proportionally, to become 0.5.

\n', - type: 'Number', - optional: true - }, - { - name: 'releaseTime', - description: '

Time in seconds from now (defaults to 0)

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.MonoSynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12260, - description: '

Getters and Setters

\n', - itemtype: 'property', - name: 'attack', - type: 'Number', - class: 'p5.MonoSynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12264, - itemtype: 'property', - name: 'decay', - type: 'Number', - class: 'p5.MonoSynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12267, - itemtype: 'property', - name: 'sustain', - type: 'Number', - class: 'p5.MonoSynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12270, - itemtype: 'property', - name: 'release', - type: 'Number', - class: 'p5.MonoSynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12307, - description: '

MonoSynth amp

\n', - itemtype: 'method', - name: 'amp', - params: [ - { - name: 'vol', - description: '

desired volume

\n', - type: 'Number' - }, - { - name: 'rampTime', - description: '

Time to reach new volume

\n', - type: 'Number', - optional: true - } - ], - return: { - description: 'new volume value', - type: 'Number' - }, - class: 'p5.MonoSynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12321, - description: '

Connect to a p5.sound / Web Audio object.

\n', - itemtype: 'method', - name: 'connect', - params: [ - { - name: 'unit', - description: '

A p5.sound or Web Audio object

\n', - type: 'Object' - } - ], - class: 'p5.MonoSynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12331, - description: '

Disconnect all outputs

\n', - itemtype: 'method', - name: 'disconnect', - class: 'p5.MonoSynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12341, - description: - '

Get rid of the MonoSynth and free up its resources / memory.

\n', - itemtype: 'method', - name: 'dispose', - class: 'p5.MonoSynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12411, - description: - '

An object that holds information about which notes have been played and\nwhich notes are currently being played. New notes are added as keys\non the fly. While a note has been attacked, but not released, the value of the\nkey is the audiovoice which is generating that note. When notes are released,\nthe value of the key becomes undefined.

\n', - itemtype: 'property', - name: 'notes', - class: 'p5.PolySynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12423, - description: - '

A PolySynth must have at least 1 voice, defaults to 8

\n', - itemtype: 'property', - name: 'polyvalue', - class: 'p5.PolySynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12428, - description: - '

Monosynth that generates the sound for each note that is triggered. The\np5.PolySynth defaults to using the p5.MonoSynth as its voice.

\n', - itemtype: 'property', - name: 'AudioVoice', - class: 'p5.PolySynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12459, - description: - '

Play a note by triggering noteAttack and noteRelease with sustain time

\n', - itemtype: 'method', - name: 'play', - params: [ - { - name: 'note', - description: - '

midi note to play (ranging from 0 to 127 - 60 being a middle C)

\n', - type: 'Number', - optional: true - }, - { - name: 'velocity', - description: - '

velocity of the note to play (ranging from 0 to 1)

\n', - type: 'Number', - optional: true - }, - { - name: 'secondsFromNow', - description: '

time from now (in seconds) at which to play

\n', - type: 'Number', - optional: true - }, - { - name: 'sustainTime', - description: '

time to sustain before releasing the envelope

\n', - type: 'Number', - optional: true - } - ], - example: [ - '\n
\nvar polySynth;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n cnv.mousePressed(playSynth);\n\n polySynth = new p5.PolySynth();\n\n textAlign(CENTER);\n text(\'click to play\', width/2, height/2);\n}\n\nfunction playSynth() {\n // note duration (in seconds)\n var dur = 0.1;\n\n // time from now (in seconds)\n var time = 0;\n\n // velocity (volume, from 0 to 1)\n var vel = 0.1;\n\n polySynth.play("G2", vel, 0, dur);\n polySynth.play("C3", vel, 0, dur);\n polySynth.play("G3", vel, 0, dur);\n\n background(random(255), random(255), 255);\n text(\'click to play\', width/2, height/2);\n}\n
' - ], - class: 'p5.PolySynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12505, - description: - '

noteADSR sets the envelope for a specific note that has just been triggered.\nUsing this method modifies the envelope of whichever audiovoice is being used\nto play the desired note. The envelope should be reset before noteRelease is called\nin order to prevent the modified envelope from being used on other notes.

\n', - itemtype: 'method', - name: 'noteADSR', - params: [ - { - name: 'note', - description: '

Midi note on which ADSR should be set.

\n', - type: 'Number', - optional: true - }, - { - name: 'attackTime', - description: - '

Time (in seconds before envelope\n reaches Attack Level

\n', - type: 'Number', - optional: true - }, - { - name: 'decayTime', - description: - '

Time (in seconds) before envelope\n reaches Decay/Sustain Level

\n', - type: 'Number', - optional: true - }, - { - name: 'susRatio', - description: - '

Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\n where 1.0 = attackLevel, 0.0 = releaseLevel.\n The susRatio determines the decayLevel and the level at which the\n sustain portion of the envelope will sustain.\n For example, if attackLevel is 0.4, releaseLevel is 0,\n and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\n increased to 1.0 (using setRange),\n then decayLevel would increase proportionally, to become 0.5.

\n', - type: 'Number', - optional: true - }, - { - name: 'releaseTime', - description: '

Time in seconds from now (defaults to 0)

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.PolySynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12533, - description: - '

Set the PolySynths global envelope. This method modifies the envelopes of each\nmonosynth so that all notes are played with this envelope.

\n', - itemtype: 'method', - name: 'setADSR', - params: [ - { - name: 'attackTime', - description: - '

Time (in seconds before envelope\n reaches Attack Level

\n', - type: 'Number', - optional: true - }, - { - name: 'decayTime', - description: - '

Time (in seconds) before envelope\n reaches Decay/Sustain Level

\n', - type: 'Number', - optional: true - }, - { - name: 'susRatio', - description: - '

Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\n where 1.0 = attackLevel, 0.0 = releaseLevel.\n The susRatio determines the decayLevel and the level at which the\n sustain portion of the envelope will sustain.\n For example, if attackLevel is 0.4, releaseLevel is 0,\n and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\n increased to 1.0 (using setRange),\n then decayLevel would increase proportionally, to become 0.5.

\n', - type: 'Number', - optional: true - }, - { - name: 'releaseTime', - description: '

Time in seconds from now (defaults to 0)

\n', - type: 'Number', - optional: true - } - ], - class: 'p5.PolySynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12557, - description: - '

Trigger the Attack, and Decay portion of a MonoSynth.\nSimilar to holding down a key on a piano, but it will\nhold the sustain level until you let go.

\n', - itemtype: 'method', - name: 'noteAttack', - params: [ - { - name: 'note', - description: '

midi note on which attack should be triggered.

\n', - type: 'Number', - optional: true - }, - { - name: 'velocity', - description: - '

velocity of the note to play (ranging from 0 to 1)/

\n', - type: 'Number', - optional: true - }, - { - name: 'secondsFromNow', - description: '

time from now (in seconds)

\n', - type: 'Number', - optional: true - } - ], - example: [ - '\n
\nvar polySynth = new p5.PolySynth();\nvar pitches = ["G", "D", "G", "C"];\nvar octaves = [2, 3, 4];\n\nfunction mousePressed() {\n // play a chord: multiple notes at the same time\n for (var i = 0; i < 4; i++) {\n var note = random(pitches) + random(octaves);\n polySynth.noteAttack(note, 0.1);\n }\n}\n\nfunction mouseReleased() {\n // release all voices\n polySynth.noteRelease();\n}\n
' - ], - class: 'p5.PolySynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12647, - description: - '

Trigger the Release of an AudioVoice note. This is similar to releasing\nthe key on a piano and letting the sound fade according to the\nrelease level and release time.

\n', - itemtype: 'method', - name: 'noteRelease', - params: [ - { - name: 'note', - description: - '

midi note on which attack should be triggered.\n If no value is provided, all notes will be released.

\n', - type: 'Number', - optional: true - }, - { - name: 'secondsFromNow', - description: '

time to trigger the release

\n', - type: 'Number', - optional: true - } - ], - example: [ - '\n
\nvar pitches = ["G", "D", "G", "C"];\nvar octaves = [2, 3, 4];\nvar polySynth = new p5.PolySynth();\n\nfunction mousePressed() {\n // play a chord: multiple notes at the same time\n for (var i = 0; i < 4; i++) {\n var note = random(pitches) + random(octaves);\n polySynth.noteAttack(note, 0.1);\n }\n}\n\nfunction mouseReleased() {\n // release all voices\n polySynth.noteRelease();\n}\n
\n' - ], - class: 'p5.PolySynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12712, - description: '

Connect to a p5.sound / Web Audio object.

\n', - itemtype: 'method', - name: 'connect', - params: [ - { - name: 'unit', - description: '

A p5.sound or Web Audio object

\n', - type: 'Object' - } - ], - class: 'p5.PolySynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12722, - description: '

Disconnect all outputs

\n', - itemtype: 'method', - name: 'disconnect', - class: 'p5.PolySynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12732, - description: - '

Get rid of the MonoSynth and free up its resources / memory.

\n', - itemtype: 'method', - name: 'dispose', - class: 'p5.PolySynth', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12800, - description: - '

The p5.Distortion is built with a\n\nWeb Audio WaveShaper Node.

\n', - itemtype: 'property', - name: 'WaveShaperNode', - type: 'AudioNode', - class: 'p5.Distortion', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12815, - description: - '

Process a sound source, optionally specify amount and oversample values.

\n', - itemtype: 'method', - name: 'process', - params: [ - { - name: 'amount', - description: - '

Unbounded distortion amount.\n Normal values range from 0-1.

\n', - type: 'Number', - optional: true, - optdefault: '0.25' - }, - { - name: 'oversample', - description: '

'none', '2x', or '4x'.

\n', - type: 'String', - optional: true, - optdefault: "'none'" - } - ], - class: 'p5.Distortion', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12827, - description: - '

Set the amount and oversample of the waveshaper distortion.

\n', - itemtype: 'method', - name: 'set', - params: [ - { - name: 'amount', - description: - '

Unbounded distortion amount.\n Normal values range from 0-1.

\n', - type: 'Number', - optional: true, - optdefault: '0.25' - }, - { - name: 'oversample', - description: '

'none', '2x', or '4x'.

\n', - type: 'String', - optional: true, - optdefault: "'none'" - } - ], - class: 'p5.Distortion', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12845, - description: - '

Return the distortion amount, typically between 0-1.

\n', - itemtype: 'method', - name: 'getAmount', - return: { - description: - 'Unbounded distortion amount.\n Normal values range from 0-1.', - type: 'Number' - }, - class: 'p5.Distortion', - module: 'p5.sound', - submodule: 'p5.sound' - }, - { - file: 'lib/addons/p5.sound.js', - line: 12855, - description: '

Return the oversampling.

\n', - itemtype: 'method', - name: 'getOversample', - return: { - description: "Oversample can either be 'none', '2x', or '4x'.", - type: 'String' - }, - class: 'p5.Distortion', - module: 'p5.sound', - submodule: 'p5.sound' - } - ], - warnings: [ - { - message: 'unknown tag: alt', - line: ' src/color/creating_reading.js:16' - }, - { - message: 'unknown tag: alt', - line: ' src/color/creating_reading.js:61' - }, - { - message: 'unknown tag: alt', - line: ' src/color/creating_reading.js:91' - }, - { - message: 'unknown tag: alt', - line: ' src/color/creating_reading.js:134' - }, - { - message: 'unknown tag: alt', - line: ' src/color/creating_reading.js:332' - }, - { - message: 'unknown tag: alt', - line: ' src/color/creating_reading.js:363' - }, - { - message: 'unknown tag: alt', - line: ' src/color/creating_reading.js:400' - }, - { - message: 'unknown tag: alt', - line: ' src/color/creating_reading.js:497' - }, - { - message: 'unknown tag: alt', - line: ' src/color/creating_reading.js:527' - }, - { - message: 'unknown tag: alt', - line: ' src/color/creating_reading.js:567' - }, - { - message: 'unknown tag: alt', - line: ' src/color/p5.Color.js:52' - }, - { - message: 'unknown tag: alt', - line: ' src/color/p5.Color.js:253' - }, - { - message: 'unknown tag: alt', - line: ' src/color/p5.Color.js:280' - }, - { - message: 'unknown tag: alt', - line: ' src/color/p5.Color.js:307' - }, - { - message: 'unknown tag: alt', - line: ' src/color/p5.Color.js:334' - }, - { - message: 'unknown tag: alt', - line: ' src/color/p5.Color.js:768' - }, - { - message: 'unknown tag: alt', - line: ' src/color/setting.js:15' - }, - { - message: 'unknown tag: alt', - line: ' src/color/setting.js:181' - }, - { - message: 'unknown tag: alt', - line: ' src/color/setting.js:220' - }, - { - message: 'unknown tag: alt', - line: ' src/color/setting.js:341' - }, - { - message: 'unknown tag: alt', - line: ' src/color/setting.js:498' - }, - { - message: 'unknown tag: alt', - line: ' src/color/setting.js:539' - }, - { - message: 'unknown tag: alt', - line: ' src/color/setting.js:579' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/2d_primitives.js:102' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/2d_primitives.js:210' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/2d_primitives.js:270' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/2d_primitives.js:300' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/2d_primitives.js:356' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/2d_primitives.js:391' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/2d_primitives.js:458' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/2d_primitives.js:541' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/2d_primitives.js:595' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/attributes.js:14' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/attributes.js:83' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/attributes.js:116' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/attributes.js:185' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/attributes.js:219' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/attributes.js:256' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/attributes.js:323' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/curves.js:13' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/curves.js:96' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/curves.js:139' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/curves.js:194' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/curves.js:273' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/curves.js:364' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/curves.js:406' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/curves.js:502' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/vertex.js:22' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/vertex.js:70' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/vertex.js:270' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/vertex.js:270' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/vertex.js:270' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/vertex.js:398' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/vertex.js:443' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/vertex.js:508' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/vertex.js:568' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/vertex.js:654' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/vertex.js:720' - }, - { - message: 'unknown tag: alt', - line: ' src/core/shape/vertex.js:813' - }, - { - message: 'unknown tag: alt', - line: ' src/core/constants.js:61' - }, - { - message: 'unknown tag: alt', - line: ' src/core/constants.js:80' - }, - { - message: 'unknown tag: alt', - line: ' src/core/constants.js:99' - }, - { - message: 'unknown tag: alt', - line: ' src/core/constants.js:118' - }, - { - message: 'unknown tag: alt', - line: ' src/core/constants.js:137' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:22' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:53' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:80' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:131' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:163' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:232' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:332' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:357' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:376' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:395' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:411' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:427' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:505' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:556' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' src/core/environment.js:591' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' src/core/environment.js:611' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:611' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:668' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:699' - }, - { - message: 'unknown tag: alt', - line: ' src/core/environment.js:722' - }, - { - message: 'unknown tag: alt', - line: ' src/core/main.js:42' - }, - { - message: 'unknown tag: alt', - line: ' src/core/main.js:83' - }, - { - message: 'unknown tag: alt', - line: ' src/core/main.js:114' - }, - { - message: 'unknown tag: alt', - line: ' src/core/main.js:396' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Element.js:52' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Element.js:122' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Element.js:162' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Element.js:197' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Element.js:258' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Element.js:307' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Element.js:373' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Element.js:427' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Element.js:483' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Element.js:541' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Element.js:584' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Element.js:626' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Element.js:674' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Element.js:714' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Element.js:763' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Element.js:801' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Graphics.js:65' - }, - { - message: 'unknown tag: alt', - line: ' src/core/p5.Graphics.js:117' - }, - { - message: 'unknown tag: alt', - line: ' src/core/rendering.js:17' - }, - { - message: 'unknown tag: alt', - line: ' src/core/rendering.js:119' - }, - { - message: 'unknown tag: alt', - line: ' src/core/rendering.js:174' - }, - { - message: 'unknown tag: alt', - line: ' src/core/rendering.js:197' - }, - { - message: 'unknown tag: alt', - line: ' src/core/rendering.js:236' - }, - { - message: 'unknown tag: alt', - line: ' src/core/structure.js:12' - }, - { - message: 'unknown tag: alt', - line: ' src/core/structure.js:74' - }, - { - message: 'unknown tag: alt', - line: ' src/core/structure.js:122' - }, - { - message: 'unknown tag: alt', - line: ' src/core/structure.js:191' - }, - { - message: 'unknown tag: alt', - line: ' src/core/structure.js:261' - }, - { - message: 'unknown tag: alt', - line: ' src/core/transform.js:13' - }, - { - message: 'unknown tag: alt', - line: ' src/core/transform.js:150' - }, - { - message: 'unknown tag: alt', - line: ' src/core/transform.js:176' - }, - { - message: 'unknown tag: alt', - line: ' src/core/transform.js:216' - }, - { - message: 'unknown tag: alt', - line: ' src/core/transform.js:246' - }, - { - message: 'unknown tag: alt', - line: ' src/core/transform.js:276' - }, - { - message: 'unknown tag: alt', - line: ' src/core/transform.js:306' - }, - { - message: 'unknown tag: alt', - line: ' src/core/transform.js:381' - }, - { - message: 'unknown tag: alt', - line: ' src/core/transform.js:421' - }, - { - message: 'unknown tag: alt', - line: ' src/core/transform.js:461' - }, - { - message: 'unknown tag: alt', - line: ' src/data/local_storage.js:11' - }, - { - message: 'unknown tag: alt', - line: ' src/data/local_storage.js:88' - }, - { - message: 'unknown tag: alt', - line: ' src/events/acceleration.js:23' - }, - { - message: 'unknown tag: alt', - line: ' src/events/acceleration.js:46' - }, - { - message: 'unknown tag: alt', - line: ' src/events/acceleration.js:69' - }, - { - message: 'unknown tag: alt', - line: ' src/events/acceleration.js:135' - }, - { - message: 'unknown tag: alt', - line: ' src/events/acceleration.js:166' - }, - { - message: 'unknown tag: alt', - line: ' src/events/acceleration.js:197' - }, - { - message: 'unknown tag: alt', - line: ' src/events/acceleration.js:233' - }, - { - message: 'unknown tag: alt', - line: ' src/events/acceleration.js:278' - }, - { - message: 'unknown tag: alt', - line: ' src/events/acceleration.js:322' - }, - { - message: 'unknown tag: alt', - line: ' src/events/acceleration.js:380' - }, - { - message: 'unknown tag: alt', - line: ' src/events/acceleration.js:419' - }, - { - message: 'unknown tag: alt', - line: ' src/events/acceleration.js:462' - }, - { - message: 'unknown tag: alt', - line: ' src/events/acceleration.js:506' - }, - { - message: 'unknown tag: alt', - line: ' src/events/acceleration.js:538' - }, - { - message: 'unknown tag: alt', - line: ' src/events/acceleration.js:597' - }, - { - message: 'unknown tag: alt', - line: ' src/events/keyboard.js:12' - }, - { - message: 'unknown tag: alt', - line: ' src/events/keyboard.js:39' - }, - { - message: 'unknown tag: alt', - line: ' src/events/keyboard.js:68' - }, - { - message: 'unknown tag: alt', - line: ' src/events/keyboard.js:109' - }, - { - message: 'unknown tag: alt', - line: ' src/events/keyboard.js:196' - }, - { - message: 'unknown tag: alt', - line: ' src/events/keyboard.js:248' - }, - { - message: 'unknown tag: alt', - line: ' src/events/keyboard.js:312' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:22' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:49' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:76' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:109' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:141' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:180' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:219' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:260' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:302' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:341' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:432' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:487' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:568' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:650' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:728' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:798' - }, - { - message: 'unknown tag: alt', - line: ' src/events/mouse.js:883' - }, - { - message: 'unknown tag: alt', - line: ' src/events/touch.js:12' - }, - { - message: 'unknown tag: alt', - line: ' src/events/touch.js:74' - }, - { - message: 'unknown tag: alt', - line: ' src/events/touch.js:154' - }, - { - message: 'unknown tag: alt', - line: ' src/events/touch.js:227' - }, - { - message: 'unknown tag: alt', - line: ' src/image/image.js:22' - }, - { - message: 'unknown tag: alt', - line: ' src/image/image.js:102' - }, - { - message: 'unknown tag: alt', - line: ' src/image/image.js:195' - }, - { - message: 'unknown tag: alt', - line: ' src/image/loading_displaying.js:17' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' src/image/loading_displaying.js:110' - }, - { - message: 'unknown tag: alt', - line: ' src/image/loading_displaying.js:127' - }, - { - message: 'unknown tag: alt', - line: ' src/image/loading_displaying.js:298' - }, - { - message: 'unknown tag: alt', - line: ' src/image/loading_displaying.js:398' - }, - { - message: 'unknown tag: alt', - line: ' src/image/loading_displaying.js:464' - }, - { - message: 'unknown tag: alt', - line: ' src/image/p5.Image.js:90' - }, - { - message: 'unknown tag: alt', - line: ' src/image/p5.Image.js:117' - }, - { - message: 'unknown tag: alt', - line: ' src/image/p5.Image.js:153' - }, - { - message: 'unknown tag: alt', - line: ' src/image/p5.Image.js:232' - }, - { - message: 'unknown tag: alt', - line: ' src/image/p5.Image.js:268' - }, - { - message: 'unknown tag: alt', - line: ' src/image/p5.Image.js:316' - }, - { - message: 'unknown tag: alt', - line: ' src/image/p5.Image.js:371' - }, - { - message: 'unknown tag: alt', - line: ' src/image/p5.Image.js:409' - }, - { - message: 'unknown tag: alt', - line: ' src/image/p5.Image.js:494' - }, - { - message: 'unknown tag: alt', - line: ' src/image/p5.Image.js:575' - }, - { - message: 'unknown tag: alt', - line: ' src/image/p5.Image.js:638' - }, - { - message: 'unknown tag: alt', - line: ' src/image/p5.Image.js:674' - }, - { - message: 'unknown tag: alt', - line: ' src/image/p5.Image.js:796' - }, - { - message: 'unknown tag: alt', - line: ' src/image/pixels.js:14' - }, - { - message: 'unknown tag: alt', - line: ' src/image/pixels.js:83' - }, - { - message: 'unknown tag: alt', - line: ' src/image/pixels.js:177' - }, - { - message: 'unknown tag: alt', - line: ' src/image/pixels.js:236' - }, - { - message: 'unknown tag: alt', - line: ' src/image/pixels.js:415' - }, - { - message: 'unknown tag: alt', - line: ' src/image/pixels.js:503' - }, - { - message: 'unknown tag: alt', - line: ' src/image/pixels.js:540' - }, - { - message: 'unknown tag: alt', - line: ' src/image/pixels.js:614' - }, - { - message: 'unknown tag: alt', - line: ' src/io/files.js:19' - }, - { - message: 'unknown tag: alt', - line: ' src/io/files.js:184' - }, - { - message: 'unknown tag: alt', - line: ' src/io/files.js:297' - }, - { - message: 'unknown tag: alt', - line: ' src/io/files.js:607' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' src/io/files.js:718' - }, - { - message: 'unknown tag: alt', - line: ' src/io/files.js:718' - }, - { - message: 'unknown tag: alt', - line: ' src/io/files.js:1526' - }, - { - message: 'unknown tag: alt', - line: ' src/io/files.js:1584' - }, - { - message: 'unknown tag: alt', - line: ' src/io/files.js:1652' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:56' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:120' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:168' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:214' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:263' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:328' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:523' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:576' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:618' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:879' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:944' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:994' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:1040' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:1085' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:1132' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:1177' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:1230' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.Table.js:1296' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.TableRow.js:42' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.TableRow.js:106' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.TableRow.js:150' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.TableRow.js:195' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.TableRow.js:243' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.TableRow.js:299' - }, - { - message: 'unknown tag: alt', - line: ' src/io/p5.XML.js:11' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:12' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:36' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:76' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:121' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:190' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:240' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:279' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:327' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:383' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:422' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:478' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:528' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:578' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:631' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:665' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:704' - }, - { - message: 'unknown tag: alt', - line: ' src/math/calculation.js:751' - }, - { - message: 'unknown tag: alt', - line: ' src/math/math.js:12' - }, - { - message: 'unknown tag: alt', - line: ' src/math/noise.js:40' - }, - { - message: 'unknown tag: alt', - line: ' src/math/noise.js:187' - }, - { - message: 'unknown tag: alt', - line: ' src/math/noise.js:253' - }, - { - message: 'unknown tag: alt', - line: ' src/math/p5.Vector.js:12' - }, - { - message: 'unknown tag: alt', - line: ' src/math/random.js:48' - }, - { - message: 'unknown tag: alt', - line: ' src/math/random.js:79' - }, - { - message: 'unknown tag: alt', - line: ' src/math/random.js:166' - }, - { - message: 'unknown tag: alt', - line: ' src/math/trigonometry.js:124' - }, - { - message: 'unknown tag: alt', - line: ' src/math/trigonometry.js:160' - }, - { - message: 'unknown tag: alt', - line: ' src/math/trigonometry.js:188' - }, - { - message: 'unknown tag: alt', - line: ' src/math/trigonometry.js:216' - }, - { - message: 'unknown tag: alt', - line: ' src/math/trigonometry.js:296' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' src/math/trigonometry.js:332' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' src/math/trigonometry.js:347' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' src/math/trigonometry.js:362' - }, - { - message: 'unknown tag: alt', - line: ' src/typography/attributes.js:13' - }, - { - message: 'unknown tag: alt', - line: ' src/typography/attributes.js:84' - }, - { - message: 'unknown tag: alt', - line: ' src/typography/attributes.js:122' - }, - { - message: 'unknown tag: alt', - line: ' src/typography/attributes.js:154' - }, - { - message: 'unknown tag: alt', - line: ' src/typography/attributes.js:191' - }, - { - message: 'unknown tag: alt', - line: ' src/typography/loading_displaying.js:16' - }, - { - message: 'unknown tag: alt', - line: ' src/typography/loading_displaying.js:143' - }, - { - message: 'unknown tag: alt', - line: ' src/typography/loading_displaying.js:230' - }, - { - message: 'unknown tag: alt', - line: ' src/typography/p5.Font.js:32' - }, - { - message: 'unknown tag: alt', - line: ' src/utilities/conversion.js:12' - }, - { - message: 'unknown tag: alt', - line: ' src/utilities/string_functions.js:15' - }, - { - message: 'unknown tag: alt', - line: ' src/utilities/string_functions.js:44' - }, - { - message: 'unknown tag: alt', - line: ' src/utilities/string_functions.js:132' - }, - { - message: 'unknown tag: alt', - line: ' src/utilities/string_functions.js:243' - }, - { - message: 'unknown tag: alt', - line: ' src/utilities/string_functions.js:319' - }, - { - message: 'unknown tag: alt', - line: ' src/utilities/string_functions.js:381' - }, - { - message: 'unknown tag: alt', - line: ' src/utilities/string_functions.js:459' - }, - { - message: 'unknown tag: alt', - line: ' src/utilities/string_functions.js:548' - }, - { - message: 'unknown tag: alt', - line: ' src/utilities/time_date.js:12' - }, - { - message: 'unknown tag: alt', - line: ' src/utilities/time_date.js:34' - }, - { - message: 'unknown tag: alt', - line: ' src/utilities/time_date.js:56' - }, - { - message: 'unknown tag: alt', - line: ' src/utilities/time_date.js:78' - }, - { - message: 'unknown tag: alt', - line: ' src/utilities/time_date.js:101' - }, - { - message: 'unknown tag: alt', - line: ' src/utilities/time_date.js:123' - }, - { - message: 'unknown tag: alt', - line: ' src/utilities/time_date.js:145' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/3d_primitives.js:14' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/interaction.js:13' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/interaction.js:146' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/interaction.js:146' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/interaction.js:146' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/interaction.js:146' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/interaction.js:146' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/interaction.js:380' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/light.js:12' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/light.js:87' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/light.js:185' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/light.js:287' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/light.js:318' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/loading.js:14' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/loading.js:14' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/loading.js:580' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/material.js:14' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' src/webgl/material.js:113' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/material.js:113' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/material.js:181' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/material.js:285' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/material.js:322' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/material.js:419' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/material.js:419' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/material.js:498' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/material.js:573' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/material.js:623' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/material.js:674' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/p5.Camera.js:15' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/p5.Camera.js:61' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/p5.Camera.js:126' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/p5.Camera.js:209' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/p5.Camera.js:486' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/p5.Camera.js:545' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/p5.Camera.js:603' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/p5.Camera.js:751' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/p5.Camera.js:823' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/p5.Camera.js:1088' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' src/webgl/p5.RendererGL.Retained.js:40' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/p5.RendererGL.js:263' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/p5.RendererGL.js:519' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/p5.RendererGL.js:561' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/p5.RendererGL.js:631' - }, - { - message: 'unknown tag: alt', - line: ' src/webgl/p5.Shader.js:269' - }, - { - message: 'replacing incorrect tag: function with method', - line: ' src/webgl/text.js:117' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' src/webgl/text.js:160' - }, - { - message: 'replacing incorrect tag: function with method', - line: ' src/webgl/text.js:193' - }, - { - message: 'replacing incorrect tag: function with method', - line: ' src/webgl/text.js:205' - }, - { - message: 'replacing incorrect tag: function with method', - line: ' src/webgl/text.js:235' - }, - { - message: 'replacing incorrect tag: function with method', - line: ' src/webgl/text.js:249' - }, - { - message: 'replacing incorrect tag: function with method', - line: ' src/webgl/text.js:387' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' src/webgl/text.js:387' - }, - { - message: 'replacing incorrect tag: function with method', - line: ' src/webgl/text.js:457' - }, - { - message: 'replacing incorrect tag: function with method', - line: ' src/webgl/text.js:472' - }, - { - message: 'replacing incorrect tag: function with method', - line: ' src/webgl/text.js:547' - }, - { - message: 'unknown tag: alt', - line: ' lib/addons/p5.dom.js:245' - }, - { - message: 'unknown tag: alt', - line: ' lib/addons/p5.dom.js:313' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' lib/addons/p5.dom.js:1463' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' lib/addons/p5.dom.js:1525' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' lib/addons/p5.dom.js:1629' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' lib/addons/p5.dom.js:1668' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' lib/addons/p5.dom.js:1762' - }, - { - message: 'unknown tag: alt', - line: ' lib/addons/p5.dom.js:2119' - }, - { - message: 'replacing incorrect tag: params with param', - line: ' lib/addons/p5.sound.js:2480' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' lib/addons/p5.sound.js:2480' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' lib/addons/p5.sound.js:3094' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' lib/addons/p5.sound.js:7659' - }, - { - message: 'replacing incorrect tag: returns with return', - line: ' lib/addons/p5.sound.js:9626' - }, - { - message: - "Missing item type\nConversions adapted from .\n\nIn these functions, hue is always in the range [0, 1], just like all other\ncomponents are in the range [0, 1]. 'Brightness' and 'value' are used\ninterchangeably.", - line: ' src/color/color_conversion.js:10' - }, - { - message: 'Missing item type\nConvert an HSBA array to HSLA.', - line: ' src/color/color_conversion.js:21' - }, - { - message: 'Missing item type\nConvert an HSBA array to RGBA.', - line: ' src/color/color_conversion.js:47' - }, - { - message: 'Missing item type\nConvert an HSLA array to HSBA.', - line: ' src/color/color_conversion.js:102' - }, - { - message: - "Missing item type\nConvert an HSLA array to RGBA.\n\nWe need to change basis from HSLA to something that can be more easily be\nprojected onto RGBA. We will choose hue and brightness as our first two\ncomponents, and pick a convenient third one ('zest') so that we don't need\nto calculate formal HSBA saturation.", - line: ' src/color/color_conversion.js:125' - }, - { - message: 'Missing item type\nConvert an RGBA array to HSBA.', - line: ' src/color/color_conversion.js:189' - }, - { - message: 'Missing item type\nConvert an RGBA array to HSLA.', - line: ' src/color/color_conversion.js:228' - }, - { - message: - 'Missing item type\nHue is the same in HSB and HSL, but the maximum value may be different.\nThis function will return the HSB-normalized saturation when supplied with\nan HSB color object, but will default to the HSL-normalized saturation\notherwise.', - line: ' src/color/p5.Color.js:415' - }, - { - message: - 'Missing item type\nSaturation is scaled differently in HSB and HSL. This function will return\nthe HSB saturation when supplied with an HSB color object, but will default\nto the HSL saturation otherwise.', - line: ' src/color/p5.Color.js:446' - }, - { - message: 'Missing item type\nCSS named colors.', - line: ' src/color/p5.Color.js:465' - }, - { - message: - 'Missing item type\nThese regular expressions are used to build up the patterns for matching\nviable CSS color strings: fragmenting the regexes in this way increases the\nlegibility and comprehensibility of the code.\n\nNote that RGB values of .9 are not parsed by IE, but are supported here for\ncolor string consistency.', - line: ' src/color/p5.Color.js:618' - }, - { - message: - 'Missing item type\nFull color string patterns. The capture groups are necessary.', - line: ' src/color/p5.Color.js:631' - }, - { - message: - 'Missing item type\nFor a number of different inputs, returns a color formatted as [r, g, b, a]\narrays, with each component normalized between 0 and 1.', - line: ' src/color/p5.Color.js:768' - }, - { - message: - 'Missing item type\nFor HSB and HSL, interpret the gray level as a brightness/lightness\nvalue (they are equivalent when chroma is zero). For RGB, normalize the\ngray level according to the blue maximum.', - line: ' src/color/p5.Color.js:994' - }, - { - message: - "Missing item type\nThis function does 3 things:\n\n 1. Bounds the desired start/stop angles for an arc (in radians) so that:\n\n 0 <= start < TWO_PI ; start <= stop < start + TWO_PI\n\n This means that the arc rendering functions don't have to be concerned\n with what happens if stop is smaller than start, or if the arc 'goes\n round more than once', etc.: they can just start at start and increase\n until stop and the correct arc will be drawn.\n\n 2. Optionally adjusts the angles within each quadrant to counter the naive\n scaling of the underlying ellipse up from the unit circle. Without\n this, the angles become arbitrary when width != height: 45 degrees\n might be drawn at 5 degrees on a 'wide' ellipse, or at 85 degrees on\n a 'tall' ellipse.\n\n 3. Flags up when start and stop correspond to the same place on the\n underlying ellipse. This is useful if you want to do something special\n there (like rendering a whole ellipse instead).", - line: ' src/core/shape/2d_primitives.js:16' - }, - { - message: 'Missing item type\nReturns the current framerate.', - line: ' src/core/environment.js:306' - }, - { - message: - 'Missing item type\nSpecifies the number of frames to be displayed every second. For example,\nthe function call frameRate(30) will attempt to refresh 30 times a second.\nIf the processor is not fast enough to maintain the specified rate, the\nframe rate will not be achieved. Setting the frame rate within setup() is\nrecommended. The default rate is 60 frames per second.\n\nCalling frameRate() with no arguments returns the current framerate.', - line: ' src/core/environment.js:316' - }, - { - message: 'Missing item type', - line: ' src/core/error_helpers.js:1' - }, - { - message: - 'Missing item type\nValidates parameters\nparam {String} func the name of the function\nparam {Array} args user input arguments\n\nexample:\n var a;\n ellipse(10,10,a,5);\nconsole ouput:\n "It looks like ellipse received an empty variable in spot #2."\n\nexample:\n ellipse(10,"foo",5,5);\nconsole output:\n "ellipse was expecting a number for parameter #1,\n received "foo" instead."', - line: ' src/core/error_helpers.js:584' - }, - { - message: - 'Missing item type\nPrints out all the colors in the color pallete with white text.\nFor color blindness testing.', - line: ' src/core/error_helpers.js:645' - }, - { - message: 'Missing item type', - line: ' src/core/helpers.js:1' - }, - { - message: - 'Missing item type\n_globalInit\n\nTODO: ???\nif sketch is on window\nassume "global" mode\nand instantiate p5 automatically\notherwise do nothing', - line: ' src/core/init.js:5' - }, - { - message: 'Missing item type', - line: ' src/core/legacy.js:1' - }, - { - message: 'Missing item type\nHelper fxn for sharing pixel methods', - line: ' src/core/p5.Element.js:865' - }, - { - message: 'Missing item type\nResize our canvas element.', - line: ' src/core/p5.Renderer.js:97' - }, - { - message: 'Missing item type\nHelper fxn to check font type (system or otf)', - line: ' src/core/p5.Renderer.js:335' - }, - { - message: - 'Missing item type\nHelper fxn to measure ascent and descent.\nAdapted from http://stackoverflow.com/a/25355178', - line: ' src/core/p5.Renderer.js:388' - }, - { - message: - 'Missing item type\np5.Renderer2D\nThe 2D graphics canvas renderer class.\nextends p5.Renderer', - line: ' src/core/p5.Renderer2D.js:9' - }, - { - message: - 'Missing item type\nGenerate a cubic Bezier representing an arc on the unit circle of total\nangle `size` radians, beginning `start` radians above the x-axis. Up to\nfour of these curves are combined to make a full arc.\n\nSee www.joecridge.me/bezier.pdf for an explanation of the method.', - line: ' src/core/p5.Renderer2D.js:407' - }, - { - message: - 'Missing item type\nshim for Uint8ClampedArray.slice\n(allows arrayCopy to work with pixels[])\nwith thanks to http://halfpapstudios.com/blog/tag/html5-canvas/\nEnumerable set to false to protect for...in from\nUint8ClampedArray.prototype pollution.', - line: ' src/core/shim.js:23' - }, - { - message: - 'Missing item type\nthis is implementation of Object.assign() which is unavailable in\nIE11 and (non-Chrome) Android browsers.\nThe assign() method is used to copy the values of all enumerable\nown properties from one or more source objects to a target object.\nIt will return the target object.\nModified from https://github.com/ljharb/object.assign', - line: ' src/core/shim.js:45' - }, - { - message: - 'Missing item type\nprivate helper function to handle the user passing in objects\nduring construction or calls to create()', - line: ' src/data/p5.TypedDict.js:203' - }, - { - message: - 'Missing item type\nprivate helper function to ensure that the user passed in valid\nvalues for the Dictionary type', - line: ' src/data/p5.TypedDict.js:394' - }, - { - message: - 'Missing item type\nprivate helper function to ensure that the user passed in valid\nvalues for the Dictionary type', - line: ' src/data/p5.TypedDict.js:437' - }, - { - message: - "Missing item type\nprivate helper function for finding lowest or highest value\nthe argument 'flip' is used to flip the comparison arrow\nfrom 'less than' to 'greater than'", - line: ' src/data/p5.TypedDict.js:554' - }, - { - message: - "Missing item type\nprivate helper function for finding lowest or highest key\nthe argument 'flip' is used to flip the comparison arrow\nfrom 'less than' to 'greater than'", - line: ' src/data/p5.TypedDict.js:621' - }, - { - message: - 'Missing item type\n_updatePAccelerations updates the pAcceleration values', - line: ' src/events/acceleration.js:124' - }, - { - message: - 'Missing item type\nThe onblur function is called when the user is no longer focused\non the p5 element. Because the keyup events will not fire if the user is\nnot focused on the element we must assume all keys currently down have\nbeen released.', - line: ' src/events/keyboard.js:302' - }, - { - message: - 'Missing item type\nThe _areDownKeys function returns a boolean true if any keys pressed\nand a false if no keys are currently pressed.\n\nHelps avoid instances where multiple keys are pressed simultaneously and\nreleasing a single key will then switch the\nkeyIsPressed property to true.', - line: ' src/events/keyboard.js:389' - }, - { - message: - 'Missing item type\nThis module defines the filters for use with image buffers.\n\nThis module is basically a collection of functions stored in an object\nas opposed to modules. The functions are destructive, modifying\nthe passed in canvas rather than creating a copy.\n\nGenerally speaking users of this module will use the Filters.apply method\non a canvas to create an effect.\n\nA number of functions are borrowed/adapted from\nhttp://www.html5rocks.com/en/tutorials/canvas/imagefilters/\nor the java processing implementation.', - line: ' src/image/filters.js:3' - }, - { - message: 'Missing item type\nReturns the pixel buffer for a canvas', - line: ' src/image/filters.js:26' - }, - { - message: - 'Missing item type\nReturns a 32 bit number containing ARGB data at ith pixel in the\n1D array containing pixels data.', - line: ' src/image/filters.js:46' - }, - { - message: - 'Missing item type\nModifies pixels RGBA values to values contained in the data object.', - line: ' src/image/filters.js:67' - }, - { - message: - 'Missing item type\nReturns the ImageData object for a canvas\nhttps://developer.mozilla.org/en-US/docs/Web/API/ImageData', - line: ' src/image/filters.js:87' - }, - { - message: 'Missing item type\nReturns a blank ImageData object.', - line: ' src/image/filters.js:107' - }, - { - message: - 'Missing item type\nApplys a filter function to a canvas.\n\nThe difference between this and the actual filter functions defined below\nis that the filter functions generally modify the pixel buffer but do\nnot actually put that data back to the canvas (where it would actually\nupdate what is visible). By contrast this method does make the changes\nactually visible in the canvas.\n\nThe apply method is the method that callers of this module would generally\nuse. It has been separated from the actual filters to support an advanced\nuse case of creating a filter chain that executes without actually updating\nthe canvas in between everystep.', - line: ' src/image/filters.js:122' - }, - { - message: - 'Missing item type\nConverts the image to black and white pixels depending if they are above or\nbelow the threshold defined by the level parameter. The parameter must be\nbetween 0.0 (black) and 1.0 (white). If no level is specified, 0.5 is used.\n\nBorrowed from http://www.html5rocks.com/en/tutorials/canvas/imagefilters/', - line: ' src/image/filters.js:175' - }, - { - message: - 'Missing item type\nConverts any colors in the image to grayscale equivalents.\nNo parameter is used.\n\nBorrowed from http://www.html5rocks.com/en/tutorials/canvas/imagefilters/', - line: ' src/image/filters.js:209' - }, - { - message: - 'Missing item type\nSets the alpha channel to entirely opaque. No parameter is used.', - line: ' src/image/filters.js:232' - }, - { - message: - 'Missing item type\nSets each pixel to its inverse value. No parameter is used.', - line: ' src/image/filters.js:248' - }, - { - message: - 'Missing item type\nLimits each channel of the image to the number of colors specified as\nthe parameter. The parameter can be set to values between 2 and 255, but\nresults are most noticeable in the lower ranges.\n\nAdapted from java based processing implementation', - line: ' src/image/filters.js:263' - }, - { - message: 'Missing item type\nreduces the bright areas in an image', - line: ' src/image/filters.js:295' - }, - { - message: 'Missing item type\nincreases the bright areas in an image', - line: ' src/image/filters.js:383' - }, - { - message: - 'Missing item type\nThis module defines the p5 methods for the p5.Image class\nfor drawing images to the main display canvas.', - line: ' src/image/image.js:8' - }, - { - message: - 'Missing item type\nValidates clipping params. Per drawImage spec sWidth and sHight cannot be\nnegative or greater than image intrinsic width and height', - line: ' src/image/loading_displaying.js:110' - }, - { - message: - 'Missing item type\nApply the current tint color to the input image, return the resulting\ncanvas.', - line: ' src/image/loading_displaying.js:427' - }, - { - message: - 'Missing item type\nThis module defines the p5.Image class and P5 methods for\ndrawing images to the main display canvas.', - line: ' src/image/p5.Image.js:9' - }, - { - message: 'Missing item type\nHelper fxn for sharing pixel methods', - line: ' src/image/p5.Image.js:223' - }, - { - message: - 'Missing item type\nGenerate a blob of file data as a url to prepare for download.\nAccepts an array of data, a filename, and an extension (optional).\nThis is a private function because it does not do any formatting,\nbut it is used by saveStrings, saveJSON, saveTable etc.', - line: ' src/io/files.js:1778' - }, - { - message: - 'Missing item type\nReturns a file extension, or another string\nif the provided parameter has no extension.', - line: ' src/io/files.js:1847' - }, - { - message: - 'Missing item type\nReturns true if the browser is Safari, false if not.\nSafari makes trouble for downloading files.', - line: ' src/io/files.js:1880' - }, - { - message: - 'Missing item type\nHelper function, a callback for download that deletes\nan invisible anchor element from the DOM once the file\nhas been automatically downloaded.', - line: ' src/io/files.js:1892' - }, - { - message: - 'Missing item type\nTable Options\n

Generic class for handling tabular data, typically from a\nCSV, TSV, or other sort of spreadsheet file.

\n

CSV files are\n\ncomma separated values, often with the data in quotes. TSV\nfiles use tabs as separators, and usually don\'t bother with the\nquotes.

\n

File names should end with .csv if they\'re comma separated.

\n

A rough "spec" for CSV can be found\nhere.

\n

To load files, use the loadTable method.

\n

To save tables to your computer, use the save method\n or the saveTable method.

\n\nPossible options include:\n
    \n
  • csv - parse the table as comma-separated values\n
  • tsv - parse the table as tab-separated values\n
  • header - this table has a header (title) row\n
', - line: ' src/io/p5.Table.js:11' - }, - { - message: - 'Missing item type\nMultiplies a vector by a scalar and returns a new vector.', - line: ' src/math/p5.Vector.js:1610' - }, - { - message: - 'Missing item type\nDivides a vector by a scalar and returns a new vector.', - line: ' src/math/p5.Vector.js:1637' - }, - { - message: 'Missing item type\nCalculates the dot product of two vectors.', - line: ' src/math/p5.Vector.js:1664' - }, - { - message: 'Missing item type\nCalculates the cross product of two vectors.', - line: ' src/math/p5.Vector.js:1678' - }, - { - message: - 'Missing item type\nCalculates the Euclidean distance between two points (considering a\npoint as a vector object).', - line: ' src/math/p5.Vector.js:1692' - }, - { - message: - 'Missing item type\nLinear interpolate a vector to another vector and return the result as a\nnew vector.', - line: ' src/math/p5.Vector.js:1707' - }, - { - message: - 'Missing item type\nHelper function to measure ascent and descent.', - line: ' src/typography/attributes.js:284' - }, - { - message: - 'Missing item type\nReturns the set of opentype glyphs for the supplied string.\n\nNote that there is not a strict one-to-one mapping between characters\nand glyphs, so the list of returned glyphs can be larger or smaller\n than the length of the given string.', - line: ' src/typography/p5.Font.js:255' - }, - { - message: - 'Missing item type\nReturns an opentype path for the supplied string and position.', - line: ' src/typography/p5.Font.js:270' - }, - { - message: 'Missing item type', - line: ' src/webgl/3d_primitives.js:260' - }, - { - message: - 'Missing item type\nDraws a point, a coordinate in space at the dimension of one pixel,\ngiven x, y and z coordinates. The color of the point is determined\nby the current stroke, while the point size is determined by current\nstroke weight.', - line: ' src/webgl/3d_primitives.js:732' - }, - { - message: 'Missing item type\nDraw a line given two points', - line: ' src/webgl/3d_primitives.js:1155' - }, - { - message: - 'Missing item type\nParse OBJ lines into model. For reference, this is what a simple model of a\nsquare might look like:\n\nv -0.5 -0.5 0.5\nv -0.5 -0.5 -0.5\nv -0.5 0.5 -0.5\nv -0.5 0.5 0.5\n\nf 4 3 2 1', - line: ' src/webgl/loading.js:169' - }, - { - message: - 'Missing item type\nSTL files can be of two types, ASCII and Binary,\n\nWe need to convert the arrayBuffer to an array of strings,\nto parse it as an ASCII file.', - line: ' src/webgl/loading.js:278' - }, - { - message: - 'Missing item type\nThis function checks if the file is in ASCII format or in Binary format\n\nIt is done by searching keyword `solid` at the start of the file.\n\nAn ASCII STL data must begin with `solid` as the first six bytes.\nHowever, ASCII STLs lacking the SPACE after the `d` are known to be\nplentiful. So, check the first 5 bytes for `solid`.\n\nSeveral encodings, such as UTF-8, precede the text with up to 5 bytes:\nhttps://en.wikipedia.org/wiki/Byte_order_mark#Byte_order_marks_by_encoding\nSearch for `solid` to start anywhere after those prefixes.', - line: ' src/webgl/loading.js:305' - }, - { - message: - 'Missing item type\nThis function matches the `query` at the provided `offset`', - line: ' src/webgl/loading.js:332' - }, - { - message: - 'Missing item type\nThis function parses the Binary STL files.\nhttps://en.wikipedia.org/wiki/STL_%28file_format%29#Binary_STL\n\nCurrently there is no support for the colors provided in STL files.', - line: ' src/webgl/loading.js:344' - }, - { - message: - "Missing item type\nASCII STL file starts with `solid 'nameOfFile'`\nThen contain the normal of the face, starting with `facet normal`\nNext contain a keyword indicating the start of face vertex, `outer loop`\nNext comes the three vertex, starting with `vertex x y z`\nVertices ends with `endloop`\nFace ends with `endfacet`\nNext face starts with `facet normal`\nThe end of the file is indicated by `endsolid`", - line: ' src/webgl/loading.js:433' - }, - { - message: 'Missing item type', - line: ' src/webgl/material.js:719' - }, - { - message: 'Missing item type', - line: ' src/webgl/material.js:741' - }, - { - message: - 'Missing item type\nCreate a 2D array for establishing stroke connections', - line: ' src/webgl/p5.Geometry.js:206' - }, - { - message: - "Missing item type\nCreate 4 vertices for each stroke line, two at the beginning position\nand two at the end position. These vertices are displaced relative to\nthat line's normal on the GPU", - line: ' src/webgl/p5.Geometry.js:227' - }, - { - message: 'Missing item type', - line: ' src/webgl/p5.Matrix.js:1' - }, - { - message: 'Missing item type\nPRIVATE', - line: ' src/webgl/p5.Matrix.js:730' - }, - { - message: - 'Missing item type\nWelcome to RendererGL Immediate Mode.\nImmediate mode is used for drawing custom shapes\nfrom a set of vertices. Immediate Mode is activated\nwhen you call beginShape() & de-activated when you call endShape().\nImmediate mode is a style of programming borrowed\nfrom OpenGL\'s (now-deprecated) immediate mode.\nIt differs from p5.js\' default, Retained Mode, which caches\ngeometries and buffers on the CPU to reduce the number of webgl\ndraw calls. Retained mode is more efficient & performative,\nhowever, Immediate Mode is useful for sketching quick\ngeometric ideas.', - line: ' src/webgl/p5.RendererGL.Immediate.js:1' - }, - { - message: - 'Missing item type\nEnd shape drawing and render vertices to screen.', - line: ' src/webgl/p5.RendererGL.Immediate.js:140' - }, - { - message: - 'Missing item type\ninitializes buffer defaults. runs each time a new geometry is\nregistered', - line: ' src/webgl/p5.RendererGL.Retained.js:40' - }, - { - message: - 'Missing item type\ncreates a buffers object that holds the WebGL render buffers\nfor a geometry.', - line: ' src/webgl/p5.RendererGL.Retained.js:144' - }, - { - message: 'Missing item type\nDraws buffers given a geometry key ID', - line: ' src/webgl/p5.RendererGL.Retained.js:182' - }, - { - message: 'Missing item type\nmodel view, projection, & normal\nmatrices', - line: ' src/webgl/p5.RendererGL.js:96' - }, - { - message: 'Missing item type\n[background description]', - line: ' src/webgl/p5.RendererGL.js:501' - }, - { - message: 'Missing item type\n[resize description]', - line: ' src/webgl/p5.RendererGL.js:752' - }, - { - message: 'Missing item type\nclears color and depth buffers\nwith r,g,b,a', - line: ' src/webgl/p5.RendererGL.js:783' - }, - { - message: 'Missing item type\n[translate description]', - line: ' src/webgl/p5.RendererGL.js:816' - }, - { - message: 'Missing item type\nScales the Model View Matrix by a vector', - line: ' src/webgl/p5.RendererGL.js:835' - }, - { - message: - 'Missing item type\nturn a two dimensional array into one dimensional array', - line: ' src/webgl/p5.RendererGL.js:1200' - }, - { - message: - 'Missing item type\nturn a p5.Vector Array into a one dimensional number array', - line: ' src/webgl/p5.RendererGL.js:1237' - }, - { - message: - 'Missing item type\nensures that p5 is using a 3d renderer. throws an error if not.', - line: ' src/webgl/p5.RendererGL.js:1254' - }, - { - message: 'Missing item type\nHelper function for select and selectAll', - line: ' lib/addons/p5.dom.js:168' - }, - { - message: - 'Missing item type\nHelper function for getElement and getElements.', - line: ' lib/addons/p5.dom.js:184' - }, - { - message: 'Missing item type\nHelpers for create methods.', - line: ' lib/addons/p5.dom.js:348' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.dom.js:488' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.dom.js:1070' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.dom.js:1159' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.dom.js:1199' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.dom.js:3021' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.dom.js:3087' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.dom.js:3149' - }, - { - message: - "Missing item type\np5.sound \nhttps://p5js.org/reference/#/libraries/p5.sound\n\nFrom the Processing Foundation and contributors\nhttps://github.com/processing/p5.js-sound/graphs/contributors\n\nMIT License (MIT)\nhttps://github.com/processing/p5.js-sound/blob/master/LICENSE\n\nSome of the many audio libraries & resources that inspire p5.sound:\n - TONE.js (c) Yotam Mann. Licensed under The MIT License (MIT). https://github.com/TONEnoTONE/Tone.js\n - buzz.js (c) Jay Salvat. Licensed under The MIT License (MIT). http://buzz.jaysalvat.com/\n - Boris Smus Web Audio API book, 2013. Licensed under the Apache License http://www.apache.org/licenses/LICENSE-2.0\n - wavesurfer.js https://github.com/katspaugh/wavesurfer.js\n - Web Audio Components by Jordan Santell https://github.com/web-audio-components\n - Wilm Thoben's Sound library for Processing https://github.com/processing/processing/tree/master/java/libraries/sound\n\n Web Audio API: http://w3.org/TR/webaudio/", - line: ' lib/addons/p5.sound.js:46' - }, - { - message: - 'Missing item type\nDetermine which filetypes are supported (inspired by buzz.js)\nThe audio element (el) will only be used to test browser support for various audio formats', - line: ' lib/addons/p5.sound.js:214' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:363' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:740' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:810' - }, - { - message: - 'Missing item type\nMaster contains AudioContext and the master sound output.', - line: ' lib/addons/p5.sound.js:1099' - }, - { - message: - 'Missing item type\na silent connection to the DesinationNode\nwhich will ensure that anything connected to it\nwill not be garbage collected', - line: ' lib/addons/p5.sound.js:1194' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:1210' - }, - { - message: 'Missing item type\nUsed by Osc and Envelope to chain signal math', - line: ' lib/addons/p5.sound.js:1415' - }, - { - message: - 'Missing item type\nThis is a helper function that the p5.SoundFile calls to load\nitself. Accepts a callback (the name of another function)\nas an optional parameter.', - line: ' lib/addons/p5.sound.js:1813' - }, - { - message: - "Missing item type\nStop playback on all of this soundfile's sources.", - line: ' lib/addons/p5.sound.js:2218' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:2656' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:2934' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:4055' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:4076' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:4135' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:4453' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:4625' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:4783' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:4824' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:4881' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:5049' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:5097' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:5128' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:5149' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:5169' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:5879' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:6082' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:7750' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:7766' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:7790' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:7816' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:7838' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:7860' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:7906' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:7937' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:7955' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:8292' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:8314' - }, - { - message: - 'Missing item type\nThe p5.Effect class is built\n \tusing Tone.js CrossFade', - line: ' lib/addons/p5.sound.js:8384' - }, - { - message: - 'Missing item type\nIn classes that extend\np5.Effect, connect effect nodes\nto the wet parameter', - line: ' lib/addons/p5.sound.js:8390' - }, - { - message: - 'Missing item type\nEQFilter extends p5.Filter with constraints\nnecessary for the p5.EQ', - line: ' lib/addons/p5.sound.js:8779' - }, - { - message: - 'Missing item type\nInspired by Simple Reverb by Jordan Santell\nhttps://github.com/web-audio-components/simple-reverb/blob/master/index.js\n\nUtility function for building an impulse response\nbased on the module parameters.', - line: ' lib/addons/p5.sound.js:9889' - }, - { - message: - 'Missing item type\nPrivate method to load a buffer as an Impulse Response,\nassign it to the convolverNode, and add to the Array of .impulses.', - line: ' lib/addons/p5.sound.js:10056' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:10240' - }, - { - message: 'Missing item type', - line: ' lib/addons/p5.sound.js:10265' - }, - { - message: - 'Missing item type\nmusicalTimeMode variables\nmodify these only when the interval is specified in musicalTime format as a string', - line: ' lib/addons/p5.sound.js:10989' - }, - { - message: - 'Missing item type\nDo not initiate the callback if timeFromNow is < 0\nThis ususually occurs for a few milliseconds when the page\nis not fully loaded\n\nThe callback should only be called until maxIterations is reached', - line: ' lib/addons/p5.sound.js:11005' - }, - { - message: 'Missing item type\ncallback invoked when the recording is over', - line: ' lib/addons/p5.sound.js:11495' - }, - { - message: 'Missing item type\ninternal method called on audio process', - line: ' lib/addons/p5.sound.js:11581' - }, - { - message: - 'Missing item type\nPrivate method to ensure accurate values of this._voicesInUse\nAny time a new value is scheduled, it is necessary to increment all subsequent\nscheduledValues after attack, and decrement all subsequent\nscheduledValues after release', - line: ' lib/addons/p5.sound.js:12627' - }, - { - message: - "Missing item type\np5.sound \nhttps://p5js.org/reference/#/libraries/p5.sound\n\nFrom the Processing Foundation and contributors\nhttps://github.com/processing/p5.js-sound/graphs/contributors\n\nMIT License (MIT)\nhttps://github.com/processing/p5.js-sound/blob/master/LICENSE\n\nSome of the many audio libraries & resources that inspire p5.sound:\n - TONE.js (c) Yotam Mann. Licensed under The MIT License (MIT). https://github.com/TONEnoTONE/Tone.js\n - buzz.js (c) Jay Salvat. Licensed under The MIT License (MIT). http://buzz.jaysalvat.com/\n - Boris Smus Web Audio API book, 2013. Licensed under the Apache License http://www.apache.org/licenses/LICENSE-2.0\n - wavesurfer.js https://github.com/katspaugh/wavesurfer.js\n - Web Audio Components by Jordan Santell https://github.com/web-audio-components\n - Wilm Thoben's Sound library for Processing https://github.com/processing/processing/tree/master/java/libraries/sound\n\n Web Audio API: http://w3.org/TR/webaudio/", - line: ' lib/addons/p5.sound.min.js:3' - } - ], - consts: { - RGB: ['p5.colorMode'], - HSB: ['p5.colorMode'], - HSL: ['p5.colorMode'], - CHORD: ['p5.arc'], - PIE: ['p5.arc'], - OPEN: ['p5.arc'], - CENTER: ['p5.ellipseMode', 'p5.rectMode', 'p5.imageMode', 'p5.textAlign'], - RADIUS: ['p5.ellipseMode', 'p5.rectMode'], - CORNER: ['p5.ellipseMode', 'p5.rectMode', 'p5.imageMode'], - CORNERS: ['p5.ellipseMode', 'p5.rectMode', 'p5.imageMode'], - SQUARE: ['p5.strokeCap'], - PROJECT: ['p5.strokeCap'], - ROUND: ['p5.strokeCap', 'p5.strokeJoin'], - MITER: ['p5.strokeJoin'], - BEVEL: ['p5.strokeJoin'], - POINTS: ['p5.beginShape'], - LINES: ['p5.beginShape'], - TRIANGLES: ['p5.beginShape'], - TRIANGLE_FAN: ['p5.beginShape'], - TRIANGLE_STRIP: ['p5.beginShape'], - QUADS: ['p5.beginShape'], - QUAD_STRIP: ['p5.beginShape'], - CLOSE: ['p5.endShape'], - ARROW: ['p5.cursor'], - CROSS: ['p5.cursor'], - HAND: ['p5.cursor'], - MOVE: ['p5.cursor'], - TEXT: ['p5.cursor'], - P2D: ['p5.createCanvas', 'p5.createGraphics'], - WEBGL: ['p5.createCanvas', 'p5.createGraphics'], - BLEND: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], - DARKEST: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], - LIGHTEST: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], - DIFFERENCE: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], - MULTIPLY: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], - EXCLUSION: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], - SCREEN: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], - REPLACE: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], - OVERLAY: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], - HARD_LIGHT: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], - SOFT_LIGHT: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], - DODGE: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], - BURN: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], - ADD: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], - SUBTRACT: ['p5.blendMode'], - THRESHOLD: ['p5.Image.filter', 'p5.filter'], - GRAY: ['p5.Image.filter', 'p5.filter'], - OPAQUE: ['p5.Image.filter', 'p5.filter'], - INVERT: ['p5.Image.filter', 'p5.filter'], - POSTERIZE: ['p5.Image.filter', 'p5.filter'], - BLUR: ['p5.Image.filter', 'p5.filter'], - ERODE: ['p5.Image.filter', 'p5.filter'], - DILATE: ['p5.Image.filter', 'p5.filter'], - NORMAL: ['p5.Image.blend', 'p5.blend', 'p5.textStyle', 'p5.textureMode'], - RADIANS: ['p5.angleMode'], - DEGREES: ['p5.angleMode'], - LEFT: ['p5.textAlign'], - RIGHT: ['p5.textAlign'], - TOP: ['p5.textAlign'], - BOTTOM: ['p5.textAlign'], - BASELINE: ['p5.textAlign'], - ITALIC: ['p5.textStyle'], - BOLD: ['p5.textStyle'], - BOLDITALIC: ['p5.textStyle'], - IMAGE: ['p5.textureMode'], - CLAMP: ['p5.textureWrap'], - REPEAT: ['p5.textureWrap'], - MIRROR: ['p5.textureWrap'], - VIDEO: ['p5.createCapture'], - AUDIO: ['p5.createCapture'] - } - }; - }, - {} - ], - 2: [ - function(_dereq_, module, exports) { - 'use strict'; - - exports.byteLength = byteLength; - exports.toByteArray = toByteArray; - exports.fromByteArray = fromByteArray; - - var lookup = []; - var revLookup = []; - var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array; - - var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; - for (var i = 0, len = code.length; i < len; ++i) { - lookup[i] = code[i]; - revLookup[code.charCodeAt(i)] = i; - } - - // Support decoding URL-safe base64 strings, as Node.js does. - // See: https://en.wikipedia.org/wiki/Base64#URL_applications - revLookup['-'.charCodeAt(0)] = 62; - revLookup['_'.charCodeAt(0)] = 63; - - function getLens(b64) { - var len = b64.length; - - if (len % 4 > 0) { - throw new Error('Invalid string. Length must be a multiple of 4'); - } - - // Trim off extra bytes after placeholder bytes are found - // See: https://github.com/beatgammit/base64-js/issues/42 - var validLen = b64.indexOf('='); - if (validLen === -1) validLen = len; - - var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4; - - return [validLen, placeHoldersLen]; - } - - // base64 is 4/3 + up to two characters of the original data - function byteLength(b64) { - var lens = getLens(b64); - var validLen = lens[0]; - var placeHoldersLen = lens[1]; - return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; - } - - function _byteLength(b64, validLen, placeHoldersLen) { - return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; - } - - function toByteArray(b64) { - var tmp; - var lens = getLens(b64); - var validLen = lens[0]; - var placeHoldersLen = lens[1]; - - var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)); - - var curByte = 0; - - // if there are placeholders, only get up to the last complete 4 chars - var len = placeHoldersLen > 0 ? validLen - 4 : validLen; - - for (var i = 0; i < len; i += 4) { - tmp = - (revLookup[b64.charCodeAt(i)] << 18) | - (revLookup[b64.charCodeAt(i + 1)] << 12) | - (revLookup[b64.charCodeAt(i + 2)] << 6) | - revLookup[b64.charCodeAt(i + 3)]; - arr[curByte++] = (tmp >> 16) & 0xff; - arr[curByte++] = (tmp >> 8) & 0xff; - arr[curByte++] = tmp & 0xff; - } - - if (placeHoldersLen === 2) { - tmp = - (revLookup[b64.charCodeAt(i)] << 2) | - (revLookup[b64.charCodeAt(i + 1)] >> 4); - arr[curByte++] = tmp & 0xff; - } - - if (placeHoldersLen === 1) { - tmp = - (revLookup[b64.charCodeAt(i)] << 10) | - (revLookup[b64.charCodeAt(i + 1)] << 4) | - (revLookup[b64.charCodeAt(i + 2)] >> 2); - arr[curByte++] = (tmp >> 8) & 0xff; - arr[curByte++] = tmp & 0xff; - } - - return arr; - } - - function tripletToBase64(num) { - return ( - lookup[(num >> 18) & 0x3f] + - lookup[(num >> 12) & 0x3f] + - lookup[(num >> 6) & 0x3f] + - lookup[num & 0x3f] - ); - } - - function encodeChunk(uint8, start, end) { - var tmp; - var output = []; - for (var i = start; i < end; i += 3) { - tmp = - ((uint8[i] << 16) & 0xff0000) + - ((uint8[i + 1] << 8) & 0xff00) + - (uint8[i + 2] & 0xff); - output.push(tripletToBase64(tmp)); - } - return output.join(''); - } - - function fromByteArray(uint8) { - var tmp; - var len = uint8.length; - var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes - var parts = []; - var maxChunkLength = 16383; // must be multiple of 3 - - // go through the array every three bytes, we'll deal with trailing stuff later - for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { - parts.push( - encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength) - ); - } - - // pad the end with zeros, but make sure to not forget the extra bytes - if (extraBytes === 1) { - tmp = uint8[len - 1]; - parts.push(lookup[tmp >> 2] + lookup[(tmp << 4) & 0x3f] + '=='); - } else if (extraBytes === 2) { - tmp = (uint8[len - 2] << 8) + uint8[len - 1]; - parts.push( - lookup[tmp >> 10] + - lookup[(tmp >> 4) & 0x3f] + - lookup[(tmp << 2) & 0x3f] + - '=' - ); - } - - return parts.join(''); - } - }, - {} - ], - 3: [function(_dereq_, module, exports) {}, {}], - 4: [ - function(_dereq_, module, exports) { - /*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ - /* eslint-disable no-proto */ - - 'use strict'; - - var base64 = _dereq_('base64-js'); - var ieee754 = _dereq_('ieee754'); - - exports.Buffer = Buffer; - exports.SlowBuffer = SlowBuffer; - exports.INSPECT_MAX_BYTES = 50; - - var K_MAX_LENGTH = 0x7fffffff; - exports.kMaxLength = K_MAX_LENGTH; - - /** - * If `Buffer.TYPED_ARRAY_SUPPORT`: - * === true Use Uint8Array implementation (fastest) - * === false Print warning and recommend using `buffer` v4.x which has an Object - * implementation (most compatible, even IE6) - * - * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+, - * Opera 11.6+, iOS 4.2+. - * - * We report that the browser does not support typed arrays if the are not subclassable - * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array` - * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support - * for __proto__ and has a buggy typed array implementation. - */ - Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport(); - - if ( - !Buffer.TYPED_ARRAY_SUPPORT && - typeof console !== 'undefined' && - typeof console.error === 'function' - ) { - console.error( - 'This browser lacks typed array (Uint8Array) support which is required by ' + - '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.' - ); - } - - function typedArraySupport() { - // Can typed array instances can be augmented? - try { - var arr = new Uint8Array(1); - arr.__proto__ = { - __proto__: Uint8Array.prototype, - foo: function() { - return 42; - } - }; - return arr.foo() === 42; - } catch (e) { - return false; - } - } - - Object.defineProperty(Buffer.prototype, 'parent', { - enumerable: true, - get: function() { - if (!Buffer.isBuffer(this)) return undefined; - return this.buffer; - } - }); - - Object.defineProperty(Buffer.prototype, 'offset', { - enumerable: true, - get: function() { - if (!Buffer.isBuffer(this)) return undefined; - return this.byteOffset; - } - }); - - function createBuffer(length) { - if (length > K_MAX_LENGTH) { - throw new RangeError( - 'The value "' + length + '" is invalid for option "size"' - ); - } - // Return an augmented `Uint8Array` instance - var buf = new Uint8Array(length); - buf.__proto__ = Buffer.prototype; - return buf; - } - - /** - * The Buffer constructor returns instances of `Uint8Array` that have their - * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of - * `Uint8Array`, so the returned instances will have all the node `Buffer` methods - * and the `Uint8Array` methods. Square bracket notation works as expected -- it - * returns a single octet. - * - * The `Uint8Array` prototype remains unmodified. - */ - - function Buffer(arg, encodingOrOffset, length) { - // Common case. - if (typeof arg === 'number') { - if (typeof encodingOrOffset === 'string') { - throw new TypeError( - 'The "string" argument must be of type string. Received type number' - ); - } - return allocUnsafe(arg); - } - return from(arg, encodingOrOffset, length); - } - - // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97 - if ( - typeof Symbol !== 'undefined' && - Symbol.species != null && - Buffer[Symbol.species] === Buffer - ) { - Object.defineProperty(Buffer, Symbol.species, { - value: null, - configurable: true, - enumerable: false, - writable: false - }); - } - - Buffer.poolSize = 8192; // not used by this implementation - - function from(value, encodingOrOffset, length) { - if (typeof value === 'string') { - return fromString(value, encodingOrOffset); - } - - if (ArrayBuffer.isView(value)) { - return fromArrayLike(value); - } - - if (value == null) { - throw TypeError( - 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + - 'or Array-like Object. Received type ' + - typeof value - ); - } - - if ( - isInstance(value, ArrayBuffer) || - (value && isInstance(value.buffer, ArrayBuffer)) - ) { - return fromArrayBuffer(value, encodingOrOffset, length); - } - - if (typeof value === 'number') { - throw new TypeError( - 'The "value" argument must not be of type number. Received type number' - ); - } - - var valueOf = value.valueOf && value.valueOf(); - if (valueOf != null && valueOf !== value) { - return Buffer.from(valueOf, encodingOrOffset, length); - } - - var b = fromObject(value); - if (b) return b; - - if ( - typeof Symbol !== 'undefined' && - Symbol.toPrimitive != null && - typeof value[Symbol.toPrimitive] === 'function' - ) { - return Buffer.from( - value[Symbol.toPrimitive]('string'), - encodingOrOffset, - length - ); - } - - throw new TypeError( - 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + - 'or Array-like Object. Received type ' + - typeof value - ); - } - - /** - * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError - * if value is a number. - * Buffer.from(str[, encoding]) - * Buffer.from(array) - * Buffer.from(buffer) - * Buffer.from(arrayBuffer[, byteOffset[, length]]) - **/ - Buffer.from = function(value, encodingOrOffset, length) { - return from(value, encodingOrOffset, length); - }; - - // Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug: - // https://github.com/feross/buffer/pull/148 - Buffer.prototype.__proto__ = Uint8Array.prototype; - Buffer.__proto__ = Uint8Array; - - function assertSize(size) { - if (typeof size !== 'number') { - throw new TypeError('"size" argument must be of type number'); - } else if (size < 0) { - throw new RangeError('The value "' + size + '" is invalid for option "size"'); - } - } - - function alloc(size, fill, encoding) { - assertSize(size); - if (size <= 0) { - return createBuffer(size); - } - if (fill !== undefined) { - // Only pay attention to encoding if it's a string. This - // prevents accidentally sending in a number that would - // be interpretted as a start offset. - return typeof encoding === 'string' - ? createBuffer(size).fill(fill, encoding) - : createBuffer(size).fill(fill); - } - return createBuffer(size); - } - - /** - * Creates a new filled Buffer instance. - * alloc(size[, fill[, encoding]]) - **/ - Buffer.alloc = function(size, fill, encoding) { - return alloc(size, fill, encoding); - }; - - function allocUnsafe(size) { - assertSize(size); - return createBuffer(size < 0 ? 0 : checked(size) | 0); - } - - /** - * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance. - * */ - Buffer.allocUnsafe = function(size) { - return allocUnsafe(size); - }; - /** - * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance. - */ - Buffer.allocUnsafeSlow = function(size) { - return allocUnsafe(size); - }; - - function fromString(string, encoding) { - if (typeof encoding !== 'string' || encoding === '') { - encoding = 'utf8'; - } - - if (!Buffer.isEncoding(encoding)) { - throw new TypeError('Unknown encoding: ' + encoding); - } - - var length = byteLength(string, encoding) | 0; - var buf = createBuffer(length); - - var actual = buf.write(string, encoding); - - if (actual !== length) { - // Writing a hex string, for example, that contains invalid characters will - // cause everything after the first invalid character to be ignored. (e.g. - // 'abxxcd' will be treated as 'ab') - buf = buf.slice(0, actual); - } - - return buf; - } - - function fromArrayLike(array) { - var length = array.length < 0 ? 0 : checked(array.length) | 0; - var buf = createBuffer(length); - for (var i = 0; i < length; i += 1) { - buf[i] = array[i] & 255; - } - return buf; - } - - function fromArrayBuffer(array, byteOffset, length) { - if (byteOffset < 0 || array.byteLength < byteOffset) { - throw new RangeError('"offset" is outside of buffer bounds'); - } - - if (array.byteLength < byteOffset + (length || 0)) { - throw new RangeError('"length" is outside of buffer bounds'); - } - - var buf; - if (byteOffset === undefined && length === undefined) { - buf = new Uint8Array(array); - } else if (length === undefined) { - buf = new Uint8Array(array, byteOffset); - } else { - buf = new Uint8Array(array, byteOffset, length); - } - - // Return an augmented `Uint8Array` instance - buf.__proto__ = Buffer.prototype; - return buf; - } - - function fromObject(obj) { - if (Buffer.isBuffer(obj)) { - var len = checked(obj.length) | 0; - var buf = createBuffer(len); - - if (buf.length === 0) { - return buf; - } - - obj.copy(buf, 0, 0, len); - return buf; - } - - if (obj.length !== undefined) { - if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) { - return createBuffer(0); - } - return fromArrayLike(obj); - } - - if (obj.type === 'Buffer' && Array.isArray(obj.data)) { - return fromArrayLike(obj.data); - } - } - - function checked(length) { - // Note: cannot use `length < K_MAX_LENGTH` here because that fails when - // length is NaN (which is otherwise coerced to zero.) - if (length >= K_MAX_LENGTH) { - throw new RangeError( - 'Attempt to allocate Buffer larger than maximum ' + - 'size: 0x' + - K_MAX_LENGTH.toString(16) + - ' bytes' - ); - } - return length | 0; - } - - function SlowBuffer(length) { - if (+length != length) { - // eslint-disable-line eqeqeq - length = 0; - } - return Buffer.alloc(+length); - } - - Buffer.isBuffer = function isBuffer(b) { - return b != null && b._isBuffer === true && b !== Buffer.prototype; // so Buffer.isBuffer(Buffer.prototype) will be false - }; - - Buffer.compare = function compare(a, b) { - if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength); - if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength); - if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { - throw new TypeError( - 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' - ); - } - - if (a === b) return 0; - - var x = a.length; - var y = b.length; - - for (var i = 0, len = Math.min(x, y); i < len; ++i) { - if (a[i] !== b[i]) { - x = a[i]; - y = b[i]; - break; - } - } - - if (x < y) return -1; - if (y < x) return 1; - return 0; - }; - - Buffer.isEncoding = function isEncoding(encoding) { - switch (String(encoding).toLowerCase()) { - case 'hex': - case 'utf8': - case 'utf-8': - case 'ascii': - case 'latin1': - case 'binary': - case 'base64': - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return true; - default: - return false; - } - }; - - Buffer.concat = function concat(list, length) { - if (!Array.isArray(list)) { - throw new TypeError('"list" argument must be an Array of Buffers'); - } - - if (list.length === 0) { - return Buffer.alloc(0); - } - - var i; - if (length === undefined) { - length = 0; - for (i = 0; i < list.length; ++i) { - length += list[i].length; - } - } - - var buffer = Buffer.allocUnsafe(length); - var pos = 0; - for (i = 0; i < list.length; ++i) { - var buf = list[i]; - if (isInstance(buf, Uint8Array)) { - buf = Buffer.from(buf); - } - if (!Buffer.isBuffer(buf)) { - throw new TypeError('"list" argument must be an Array of Buffers'); - } - buf.copy(buffer, pos); - pos += buf.length; - } - return buffer; - }; - - function byteLength(string, encoding) { - if (Buffer.isBuffer(string)) { - return string.length; - } - if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) { - return string.byteLength; - } - if (typeof string !== 'string') { - throw new TypeError( - 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' + - 'Received type ' + - typeof string - ); - } - - var len = string.length; - var mustMatch = arguments.length > 2 && arguments[2] === true; - if (!mustMatch && len === 0) return 0; - - // Use a for loop to avoid recursion - var loweredCase = false; - for (;;) { - switch (encoding) { - case 'ascii': - case 'latin1': - case 'binary': - return len; - case 'utf8': - case 'utf-8': - return utf8ToBytes(string).length; - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return len * 2; - case 'hex': - return len >>> 1; - case 'base64': - return base64ToBytes(string).length; - default: - if (loweredCase) { - return mustMatch ? -1 : utf8ToBytes(string).length; // assume utf8 - } - encoding = ('' + encoding).toLowerCase(); - loweredCase = true; - } - } - } - Buffer.byteLength = byteLength; - - function slowToString(encoding, start, end) { - var loweredCase = false; - - // No need to verify that "this.length <= MAX_UINT32" since it's a read-only - // property of a typed array. - - // This behaves neither like String nor Uint8Array in that we set start/end - // to their upper/lower bounds if the value passed is out of range. - // undefined is handled specially as per ECMA-262 6th Edition, - // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization. - if (start === undefined || start < 0) { - start = 0; - } - // Return early if start > this.length. Done here to prevent potential uint32 - // coercion fail below. - if (start > this.length) { - return ''; - } - - if (end === undefined || end > this.length) { - end = this.length; - } - - if (end <= 0) { - return ''; - } - - // Force coersion to uint32. This will also coerce falsey/NaN values to 0. - end >>>= 0; - start >>>= 0; - - if (end <= start) { - return ''; - } - - if (!encoding) encoding = 'utf8'; - - while (true) { - switch (encoding) { - case 'hex': - return hexSlice(this, start, end); - - case 'utf8': - case 'utf-8': - return utf8Slice(this, start, end); - - case 'ascii': - return asciiSlice(this, start, end); - - case 'latin1': - case 'binary': - return latin1Slice(this, start, end); - - case 'base64': - return base64Slice(this, start, end); - - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return utf16leSlice(this, start, end); - - default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding); - encoding = (encoding + '').toLowerCase(); - loweredCase = true; - } - } - } - - // This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package) - // to detect a Buffer instance. It's not possible to use `instanceof Buffer` - // reliably in a browserify context because there could be multiple different - // copies of the 'buffer' package in use. This method works even for Buffer - // instances that were created from another copy of the `buffer` package. - // See: https://github.com/feross/buffer/issues/154 - Buffer.prototype._isBuffer = true; - - function swap(b, n, m) { - var i = b[n]; - b[n] = b[m]; - b[m] = i; - } - - Buffer.prototype.swap16 = function swap16() { - var len = this.length; - if (len % 2 !== 0) { - throw new RangeError('Buffer size must be a multiple of 16-bits'); - } - for (var i = 0; i < len; i += 2) { - swap(this, i, i + 1); - } - return this; - }; - - Buffer.prototype.swap32 = function swap32() { - var len = this.length; - if (len % 4 !== 0) { - throw new RangeError('Buffer size must be a multiple of 32-bits'); - } - for (var i = 0; i < len; i += 4) { - swap(this, i, i + 3); - swap(this, i + 1, i + 2); - } - return this; - }; - - Buffer.prototype.swap64 = function swap64() { - var len = this.length; - if (len % 8 !== 0) { - throw new RangeError('Buffer size must be a multiple of 64-bits'); - } - for (var i = 0; i < len; i += 8) { - swap(this, i, i + 7); - swap(this, i + 1, i + 6); - swap(this, i + 2, i + 5); - swap(this, i + 3, i + 4); - } - return this; - }; - - Buffer.prototype.toString = function toString() { - var length = this.length; - if (length === 0) return ''; - if (arguments.length === 0) return utf8Slice(this, 0, length); - return slowToString.apply(this, arguments); - }; - - Buffer.prototype.toLocaleString = Buffer.prototype.toString; - - Buffer.prototype.equals = function equals(b) { - if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer'); - if (this === b) return true; - return Buffer.compare(this, b) === 0; - }; - - Buffer.prototype.inspect = function inspect() { - var str = ''; - var max = exports.INSPECT_MAX_BYTES; - str = this.toString('hex', 0, max) - .replace(/(.{2})/g, '$1 ') - .trim(); - if (this.length > max) str += ' ... '; - return ''; - }; - - Buffer.prototype.compare = function compare( - target, - start, - end, - thisStart, - thisEnd - ) { - if (isInstance(target, Uint8Array)) { - target = Buffer.from(target, target.offset, target.byteLength); - } - if (!Buffer.isBuffer(target)) { - throw new TypeError( - 'The "target" argument must be one of type Buffer or Uint8Array. ' + - 'Received type ' + - typeof target - ); - } - - if (start === undefined) { - start = 0; - } - if (end === undefined) { - end = target ? target.length : 0; - } - if (thisStart === undefined) { - thisStart = 0; - } - if (thisEnd === undefined) { - thisEnd = this.length; - } - - if ( - start < 0 || - end > target.length || - thisStart < 0 || - thisEnd > this.length - ) { - throw new RangeError('out of range index'); - } - - if (thisStart >= thisEnd && start >= end) { - return 0; - } - if (thisStart >= thisEnd) { - return -1; - } - if (start >= end) { - return 1; - } - - start >>>= 0; - end >>>= 0; - thisStart >>>= 0; - thisEnd >>>= 0; - - if (this === target) return 0; - - var x = thisEnd - thisStart; - var y = end - start; - var len = Math.min(x, y); - - var thisCopy = this.slice(thisStart, thisEnd); - var targetCopy = target.slice(start, end); - - for (var i = 0; i < len; ++i) { - if (thisCopy[i] !== targetCopy[i]) { - x = thisCopy[i]; - y = targetCopy[i]; - break; - } - } - - if (x < y) return -1; - if (y < x) return 1; - return 0; - }; - - // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`, - // OR the last index of `val` in `buffer` at offset <= `byteOffset`. - // - // Arguments: - // - buffer - a Buffer to search - // - val - a string, Buffer, or number - // - byteOffset - an index into `buffer`; will be clamped to an int32 - // - encoding - an optional encoding, relevant is val is a string - // - dir - true for indexOf, false for lastIndexOf - function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) { - // Empty buffer means no match - if (buffer.length === 0) return -1; - - // Normalize byteOffset - if (typeof byteOffset === 'string') { - encoding = byteOffset; - byteOffset = 0; - } else if (byteOffset > 0x7fffffff) { - byteOffset = 0x7fffffff; - } else if (byteOffset < -0x80000000) { - byteOffset = -0x80000000; - } - byteOffset = +byteOffset; // Coerce to Number. - if (numberIsNaN(byteOffset)) { - // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer - byteOffset = dir ? 0 : buffer.length - 1; - } - - // Normalize byteOffset: negative offsets start from the end of the buffer - if (byteOffset < 0) byteOffset = buffer.length + byteOffset; - if (byteOffset >= buffer.length) { - if (dir) return -1; - else byteOffset = buffer.length - 1; - } else if (byteOffset < 0) { - if (dir) byteOffset = 0; - else return -1; - } - - // Normalize val - if (typeof val === 'string') { - val = Buffer.from(val, encoding); - } - - // Finally, search either indexOf (if dir is true) or lastIndexOf - if (Buffer.isBuffer(val)) { - // Special case: looking for empty string/buffer always fails - if (val.length === 0) { - return -1; - } - return arrayIndexOf(buffer, val, byteOffset, encoding, dir); - } else if (typeof val === 'number') { - val = val & 0xff; // Search for a byte value [0-255] - if (typeof Uint8Array.prototype.indexOf === 'function') { - if (dir) { - return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset); - } else { - return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset); - } - } - return arrayIndexOf(buffer, [val], byteOffset, encoding, dir); - } - - throw new TypeError('val must be string, number or Buffer'); - } - - function arrayIndexOf(arr, val, byteOffset, encoding, dir) { - var indexSize = 1; - var arrLength = arr.length; - var valLength = val.length; - - if (encoding !== undefined) { - encoding = String(encoding).toLowerCase(); - if ( - encoding === 'ucs2' || - encoding === 'ucs-2' || - encoding === 'utf16le' || - encoding === 'utf-16le' - ) { - if (arr.length < 2 || val.length < 2) { - return -1; - } - indexSize = 2; - arrLength /= 2; - valLength /= 2; - byteOffset /= 2; - } - } - - function read(buf, i) { - if (indexSize === 1) { - return buf[i]; - } else { - return buf.readUInt16BE(i * indexSize); - } - } - - var i; - if (dir) { - var foundIndex = -1; - for (i = byteOffset; i < arrLength; i++) { - if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) { - if (foundIndex === -1) foundIndex = i; - if (i - foundIndex + 1 === valLength) return foundIndex * indexSize; - } else { - if (foundIndex !== -1) i -= i - foundIndex; - foundIndex = -1; - } - } - } else { - if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength; - for (i = byteOffset; i >= 0; i--) { - var found = true; - for (var j = 0; j < valLength; j++) { - if (read(arr, i + j) !== read(val, j)) { - found = false; - break; - } - } - if (found) return i; - } - } - - return -1; - } - - Buffer.prototype.includes = function includes(val, byteOffset, encoding) { - return this.indexOf(val, byteOffset, encoding) !== -1; - }; - - Buffer.prototype.indexOf = function indexOf(val, byteOffset, encoding) { - return bidirectionalIndexOf(this, val, byteOffset, encoding, true); - }; - - Buffer.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) { - return bidirectionalIndexOf(this, val, byteOffset, encoding, false); - }; - - function hexWrite(buf, string, offset, length) { - offset = Number(offset) || 0; - var remaining = buf.length - offset; - if (!length) { - length = remaining; - } else { - length = Number(length); - if (length > remaining) { - length = remaining; - } - } - - var strLen = string.length; - - if (length > strLen / 2) { - length = strLen / 2; - } - for (var i = 0; i < length; ++i) { - var parsed = parseInt(string.substr(i * 2, 2), 16); - if (numberIsNaN(parsed)) return i; - buf[offset + i] = parsed; - } - return i; - } - - function utf8Write(buf, string, offset, length) { - return blitBuffer( - utf8ToBytes(string, buf.length - offset), - buf, - offset, - length - ); - } - - function asciiWrite(buf, string, offset, length) { - return blitBuffer(asciiToBytes(string), buf, offset, length); - } - - function latin1Write(buf, string, offset, length) { - return asciiWrite(buf, string, offset, length); - } - - function base64Write(buf, string, offset, length) { - return blitBuffer(base64ToBytes(string), buf, offset, length); - } - - function ucs2Write(buf, string, offset, length) { - return blitBuffer( - utf16leToBytes(string, buf.length - offset), - buf, - offset, - length - ); - } - - Buffer.prototype.write = function write(string, offset, length, encoding) { - // Buffer#write(string) - if (offset === undefined) { - encoding = 'utf8'; - length = this.length; - offset = 0; - // Buffer#write(string, encoding) - } else if (length === undefined && typeof offset === 'string') { - encoding = offset; - length = this.length; - offset = 0; - // Buffer#write(string, offset[, length][, encoding]) - } else if (isFinite(offset)) { - offset = offset >>> 0; - if (isFinite(length)) { - length = length >>> 0; - if (encoding === undefined) encoding = 'utf8'; - } else { - encoding = length; - length = undefined; - } - } else { - throw new Error( - 'Buffer.write(string, encoding, offset[, length]) is no longer supported' - ); - } - - var remaining = this.length - offset; - if (length === undefined || length > remaining) length = remaining; - - if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) { - throw new RangeError('Attempt to write outside buffer bounds'); - } - - if (!encoding) encoding = 'utf8'; - - var loweredCase = false; - for (;;) { - switch (encoding) { - case 'hex': - return hexWrite(this, string, offset, length); - - case 'utf8': - case 'utf-8': - return utf8Write(this, string, offset, length); - - case 'ascii': - return asciiWrite(this, string, offset, length); - - case 'latin1': - case 'binary': - return latin1Write(this, string, offset, length); - - case 'base64': - // Warning: maxLength not taken into account in base64Write - return base64Write(this, string, offset, length); - - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return ucs2Write(this, string, offset, length); - - default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding); - encoding = ('' + encoding).toLowerCase(); - loweredCase = true; - } - } - }; - - Buffer.prototype.toJSON = function toJSON() { - return { - type: 'Buffer', - data: Array.prototype.slice.call(this._arr || this, 0) - }; - }; - - function base64Slice(buf, start, end) { - if (start === 0 && end === buf.length) { - return base64.fromByteArray(buf); - } else { - return base64.fromByteArray(buf.slice(start, end)); - } - } - - function utf8Slice(buf, start, end) { - end = Math.min(buf.length, end); - var res = []; - - var i = start; - while (i < end) { - var firstByte = buf[i]; - var codePoint = null; - var bytesPerSequence = - firstByte > 0xef ? 4 : firstByte > 0xdf ? 3 : firstByte > 0xbf ? 2 : 1; - - if (i + bytesPerSequence <= end) { - var secondByte, thirdByte, fourthByte, tempCodePoint; - - switch (bytesPerSequence) { - case 1: - if (firstByte < 0x80) { - codePoint = firstByte; - } - break; - case 2: - secondByte = buf[i + 1]; - if ((secondByte & 0xc0) === 0x80) { - tempCodePoint = ((firstByte & 0x1f) << 0x6) | (secondByte & 0x3f); - if (tempCodePoint > 0x7f) { - codePoint = tempCodePoint; - } - } - break; - case 3: - secondByte = buf[i + 1]; - thirdByte = buf[i + 2]; - if ((secondByte & 0xc0) === 0x80 && (thirdByte & 0xc0) === 0x80) { - tempCodePoint = - ((firstByte & 0xf) << 0xc) | - ((secondByte & 0x3f) << 0x6) | - (thirdByte & 0x3f); - if ( - tempCodePoint > 0x7ff && - (tempCodePoint < 0xd800 || tempCodePoint > 0xdfff) - ) { - codePoint = tempCodePoint; - } - } - break; - case 4: - secondByte = buf[i + 1]; - thirdByte = buf[i + 2]; - fourthByte = buf[i + 3]; - if ( - (secondByte & 0xc0) === 0x80 && - (thirdByte & 0xc0) === 0x80 && - (fourthByte & 0xc0) === 0x80 - ) { - tempCodePoint = - ((firstByte & 0xf) << 0x12) | - ((secondByte & 0x3f) << 0xc) | - ((thirdByte & 0x3f) << 0x6) | - (fourthByte & 0x3f); - if (tempCodePoint > 0xffff && tempCodePoint < 0x110000) { - codePoint = tempCodePoint; - } - } - } - } - - if (codePoint === null) { - // we did not generate a valid codePoint so insert a - // replacement char (U+FFFD) and advance only 1 byte - codePoint = 0xfffd; - bytesPerSequence = 1; - } else if (codePoint > 0xffff) { - // encode to utf16 (surrogate pair dance) - codePoint -= 0x10000; - res.push(((codePoint >>> 10) & 0x3ff) | 0xd800); - codePoint = 0xdc00 | (codePoint & 0x3ff); - } - - res.push(codePoint); - i += bytesPerSequence; - } - - return decodeCodePointsArray(res); - } - - // Based on http://stackoverflow.com/a/22747272/680742, the browser with - // the lowest limit is Chrome, with 0x10000 args. - // We go 1 magnitude less, for safety - var MAX_ARGUMENTS_LENGTH = 0x1000; - - function decodeCodePointsArray(codePoints) { - var len = codePoints.length; - if (len <= MAX_ARGUMENTS_LENGTH) { - return String.fromCharCode.apply(String, codePoints); // avoid extra slice() - } - - // Decode in chunks to avoid "call stack size exceeded". - var res = ''; - var i = 0; - while (i < len) { - res += String.fromCharCode.apply( - String, - codePoints.slice(i, (i += MAX_ARGUMENTS_LENGTH)) - ); - } - return res; - } - - function asciiSlice(buf, start, end) { - var ret = ''; - end = Math.min(buf.length, end); - - for (var i = start; i < end; ++i) { - ret += String.fromCharCode(buf[i] & 0x7f); - } - return ret; - } - - function latin1Slice(buf, start, end) { - var ret = ''; - end = Math.min(buf.length, end); - - for (var i = start; i < end; ++i) { - ret += String.fromCharCode(buf[i]); - } - return ret; - } - - function hexSlice(buf, start, end) { - var len = buf.length; - - if (!start || start < 0) start = 0; - if (!end || end < 0 || end > len) end = len; - - var out = ''; - for (var i = start; i < end; ++i) { - out += toHex(buf[i]); - } - return out; - } - - function utf16leSlice(buf, start, end) { - var bytes = buf.slice(start, end); - var res = ''; - for (var i = 0; i < bytes.length; i += 2) { - res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256); - } - return res; - } - - Buffer.prototype.slice = function slice(start, end) { - var len = this.length; - start = ~~start; - end = end === undefined ? len : ~~end; - - if (start < 0) { - start += len; - if (start < 0) start = 0; - } else if (start > len) { - start = len; - } - - if (end < 0) { - end += len; - if (end < 0) end = 0; - } else if (end > len) { - end = len; - } - - if (end < start) end = start; - - var newBuf = this.subarray(start, end); - // Return an augmented `Uint8Array` instance - newBuf.__proto__ = Buffer.prototype; - return newBuf; - }; - - /* - * Need to make sure that buffer isn't trying to write out of bounds. - */ - function checkOffset(offset, ext, length) { - if (offset % 1 !== 0 || offset < 0) throw new RangeError('offset is not uint'); - if (offset + ext > length) - throw new RangeError('Trying to access beyond buffer length'); - } - - Buffer.prototype.readUIntLE = function readUIntLE(offset, byteLength, noAssert) { - offset = offset >>> 0; - byteLength = byteLength >>> 0; - if (!noAssert) checkOffset(offset, byteLength, this.length); - - var val = this[offset]; - var mul = 1; - var i = 0; - while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul; - } - - return val; - }; - - Buffer.prototype.readUIntBE = function readUIntBE(offset, byteLength, noAssert) { - offset = offset >>> 0; - byteLength = byteLength >>> 0; - if (!noAssert) { - checkOffset(offset, byteLength, this.length); - } - - var val = this[offset + --byteLength]; - var mul = 1; - while (byteLength > 0 && (mul *= 0x100)) { - val += this[offset + --byteLength] * mul; - } - - return val; - }; - - Buffer.prototype.readUInt8 = function readUInt8(offset, noAssert) { - offset = offset >>> 0; - if (!noAssert) checkOffset(offset, 1, this.length); - return this[offset]; - }; - - Buffer.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) { - offset = offset >>> 0; - if (!noAssert) checkOffset(offset, 2, this.length); - return this[offset] | (this[offset + 1] << 8); - }; - - Buffer.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) { - offset = offset >>> 0; - if (!noAssert) checkOffset(offset, 2, this.length); - return (this[offset] << 8) | this[offset + 1]; - }; - - Buffer.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) { - offset = offset >>> 0; - if (!noAssert) checkOffset(offset, 4, this.length); - - return ( - (this[offset] | (this[offset + 1] << 8) | (this[offset + 2] << 16)) + - this[offset + 3] * 0x1000000 - ); - }; - - Buffer.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) { - offset = offset >>> 0; - if (!noAssert) checkOffset(offset, 4, this.length); - - return ( - this[offset] * 0x1000000 + - ((this[offset + 1] << 16) | (this[offset + 2] << 8) | this[offset + 3]) - ); - }; - - Buffer.prototype.readIntLE = function readIntLE(offset, byteLength, noAssert) { - offset = offset >>> 0; - byteLength = byteLength >>> 0; - if (!noAssert) checkOffset(offset, byteLength, this.length); - - var val = this[offset]; - var mul = 1; - var i = 0; - while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul; - } - mul *= 0x80; - - if (val >= mul) val -= Math.pow(2, 8 * byteLength); - - return val; - }; - - Buffer.prototype.readIntBE = function readIntBE(offset, byteLength, noAssert) { - offset = offset >>> 0; - byteLength = byteLength >>> 0; - if (!noAssert) checkOffset(offset, byteLength, this.length); - - var i = byteLength; - var mul = 1; - var val = this[offset + --i]; - while (i > 0 && (mul *= 0x100)) { - val += this[offset + --i] * mul; - } - mul *= 0x80; - - if (val >= mul) val -= Math.pow(2, 8 * byteLength); - - return val; - }; - - Buffer.prototype.readInt8 = function readInt8(offset, noAssert) { - offset = offset >>> 0; - if (!noAssert) checkOffset(offset, 1, this.length); - if (!(this[offset] & 0x80)) return this[offset]; - return (0xff - this[offset] + 1) * -1; - }; - - Buffer.prototype.readInt16LE = function readInt16LE(offset, noAssert) { - offset = offset >>> 0; - if (!noAssert) checkOffset(offset, 2, this.length); - var val = this[offset] | (this[offset + 1] << 8); - return val & 0x8000 ? val | 0xffff0000 : val; - }; - - Buffer.prototype.readInt16BE = function readInt16BE(offset, noAssert) { - offset = offset >>> 0; - if (!noAssert) checkOffset(offset, 2, this.length); - var val = this[offset + 1] | (this[offset] << 8); - return val & 0x8000 ? val | 0xffff0000 : val; - }; - - Buffer.prototype.readInt32LE = function readInt32LE(offset, noAssert) { - offset = offset >>> 0; - if (!noAssert) checkOffset(offset, 4, this.length); - - return ( - this[offset] | - (this[offset + 1] << 8) | - (this[offset + 2] << 16) | - (this[offset + 3] << 24) - ); - }; - - Buffer.prototype.readInt32BE = function readInt32BE(offset, noAssert) { - offset = offset >>> 0; - if (!noAssert) checkOffset(offset, 4, this.length); - - return ( - (this[offset] << 24) | - (this[offset + 1] << 16) | - (this[offset + 2] << 8) | - this[offset + 3] - ); - }; - - Buffer.prototype.readFloatLE = function readFloatLE(offset, noAssert) { - offset = offset >>> 0; - if (!noAssert) checkOffset(offset, 4, this.length); - return ieee754.read(this, offset, true, 23, 4); - }; - - Buffer.prototype.readFloatBE = function readFloatBE(offset, noAssert) { - offset = offset >>> 0; - if (!noAssert) checkOffset(offset, 4, this.length); - return ieee754.read(this, offset, false, 23, 4); - }; - - Buffer.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) { - offset = offset >>> 0; - if (!noAssert) checkOffset(offset, 8, this.length); - return ieee754.read(this, offset, true, 52, 8); - }; - - Buffer.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) { - offset = offset >>> 0; - if (!noAssert) checkOffset(offset, 8, this.length); - return ieee754.read(this, offset, false, 52, 8); - }; - - function checkInt(buf, value, offset, ext, max, min) { - if (!Buffer.isBuffer(buf)) - throw new TypeError('"buffer" argument must be a Buffer instance'); - if (value > max || value < min) - throw new RangeError('"value" argument is out of bounds'); - if (offset + ext > buf.length) throw new RangeError('Index out of range'); - } - - Buffer.prototype.writeUIntLE = function writeUIntLE( - value, - offset, - byteLength, - noAssert - ) { - value = +value; - offset = offset >>> 0; - byteLength = byteLength >>> 0; - if (!noAssert) { - var maxBytes = Math.pow(2, 8 * byteLength) - 1; - checkInt(this, value, offset, byteLength, maxBytes, 0); - } - - var mul = 1; - var i = 0; - this[offset] = value & 0xff; - while (++i < byteLength && (mul *= 0x100)) { - this[offset + i] = (value / mul) & 0xff; - } - - return offset + byteLength; - }; - - Buffer.prototype.writeUIntBE = function writeUIntBE( - value, - offset, - byteLength, - noAssert - ) { - value = +value; - offset = offset >>> 0; - byteLength = byteLength >>> 0; - if (!noAssert) { - var maxBytes = Math.pow(2, 8 * byteLength) - 1; - checkInt(this, value, offset, byteLength, maxBytes, 0); - } - - var i = byteLength - 1; - var mul = 1; - this[offset + i] = value & 0xff; - while (--i >= 0 && (mul *= 0x100)) { - this[offset + i] = (value / mul) & 0xff; - } - - return offset + byteLength; - }; - - Buffer.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) { - value = +value; - offset = offset >>> 0; - if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0); - this[offset] = value & 0xff; - return offset + 1; - }; - - Buffer.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) { - value = +value; - offset = offset >>> 0; - if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0); - this[offset] = value & 0xff; - this[offset + 1] = value >>> 8; - return offset + 2; - }; - - Buffer.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) { - value = +value; - offset = offset >>> 0; - if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0); - this[offset] = value >>> 8; - this[offset + 1] = value & 0xff; - return offset + 2; - }; - - Buffer.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) { - value = +value; - offset = offset >>> 0; - if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0); - this[offset + 3] = value >>> 24; - this[offset + 2] = value >>> 16; - this[offset + 1] = value >>> 8; - this[offset] = value & 0xff; - return offset + 4; - }; - - Buffer.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) { - value = +value; - offset = offset >>> 0; - if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0); - this[offset] = value >>> 24; - this[offset + 1] = value >>> 16; - this[offset + 2] = value >>> 8; - this[offset + 3] = value & 0xff; - return offset + 4; - }; - - Buffer.prototype.writeIntLE = function writeIntLE( - value, - offset, - byteLength, - noAssert - ) { - value = +value; - offset = offset >>> 0; - if (!noAssert) { - var limit = Math.pow(2, 8 * byteLength - 1); - - checkInt(this, value, offset, byteLength, limit - 1, -limit); - } - - var i = 0; - var mul = 1; - var sub = 0; - this[offset] = value & 0xff; - while (++i < byteLength && (mul *= 0x100)) { - if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) { - sub = 1; - } - this[offset + i] = (((value / mul) >> 0) - sub) & 0xff; - } - - return offset + byteLength; - }; - - Buffer.prototype.writeIntBE = function writeIntBE( - value, - offset, - byteLength, - noAssert - ) { - value = +value; - offset = offset >>> 0; - if (!noAssert) { - var limit = Math.pow(2, 8 * byteLength - 1); - - checkInt(this, value, offset, byteLength, limit - 1, -limit); - } - - var i = byteLength - 1; - var mul = 1; - var sub = 0; - this[offset + i] = value & 0xff; - while (--i >= 0 && (mul *= 0x100)) { - if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) { - sub = 1; - } - this[offset + i] = (((value / mul) >> 0) - sub) & 0xff; - } - - return offset + byteLength; - }; - - Buffer.prototype.writeInt8 = function writeInt8(value, offset, noAssert) { - value = +value; - offset = offset >>> 0; - if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80); - if (value < 0) value = 0xff + value + 1; - this[offset] = value & 0xff; - return offset + 1; - }; - - Buffer.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) { - value = +value; - offset = offset >>> 0; - if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000); - this[offset] = value & 0xff; - this[offset + 1] = value >>> 8; - return offset + 2; - }; - - Buffer.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) { - value = +value; - offset = offset >>> 0; - if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000); - this[offset] = value >>> 8; - this[offset + 1] = value & 0xff; - return offset + 2; - }; - - Buffer.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) { - value = +value; - offset = offset >>> 0; - if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000); - this[offset] = value & 0xff; - this[offset + 1] = value >>> 8; - this[offset + 2] = value >>> 16; - this[offset + 3] = value >>> 24; - return offset + 4; - }; - - Buffer.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) { - value = +value; - offset = offset >>> 0; - if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000); - if (value < 0) value = 0xffffffff + value + 1; - this[offset] = value >>> 24; - this[offset + 1] = value >>> 16; - this[offset + 2] = value >>> 8; - this[offset + 3] = value & 0xff; - return offset + 4; - }; - - function checkIEEE754(buf, value, offset, ext, max, min) { - if (offset + ext > buf.length) throw new RangeError('Index out of range'); - if (offset < 0) throw new RangeError('Index out of range'); - } - - function writeFloat(buf, value, offset, littleEndian, noAssert) { - value = +value; - offset = offset >>> 0; - if (!noAssert) { - checkIEEE754( - buf, - value, - offset, - 4, - 3.4028234663852886e38, - -3.4028234663852886e38 - ); - } - ieee754.write(buf, value, offset, littleEndian, 23, 4); - return offset + 4; - } - - Buffer.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) { - return writeFloat(this, value, offset, true, noAssert); - }; - - Buffer.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) { - return writeFloat(this, value, offset, false, noAssert); - }; - - function writeDouble(buf, value, offset, littleEndian, noAssert) { - value = +value; - offset = offset >>> 0; - if (!noAssert) { - checkIEEE754( - buf, - value, - offset, - 8, - 1.7976931348623157e308, - -1.7976931348623157e308 - ); - } - ieee754.write(buf, value, offset, littleEndian, 52, 8); - return offset + 8; - } - - Buffer.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) { - return writeDouble(this, value, offset, true, noAssert); - }; - - Buffer.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) { - return writeDouble(this, value, offset, false, noAssert); - }; - - // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length) - Buffer.prototype.copy = function copy(target, targetStart, start, end) { - if (!Buffer.isBuffer(target)) - throw new TypeError('argument should be a Buffer'); - if (!start) start = 0; - if (!end && end !== 0) end = this.length; - if (targetStart >= target.length) targetStart = target.length; - if (!targetStart) targetStart = 0; - if (end > 0 && end < start) end = start; - - // Copy 0 bytes; we're done - if (end === start) return 0; - if (target.length === 0 || this.length === 0) return 0; - - // Fatal error conditions - if (targetStart < 0) { - throw new RangeError('targetStart out of bounds'); - } - if (start < 0 || start >= this.length) - throw new RangeError('Index out of range'); - if (end < 0) throw new RangeError('sourceEnd out of bounds'); - - // Are we oob? - if (end > this.length) end = this.length; - if (target.length - targetStart < end - start) { - end = target.length - targetStart + start; - } - - var len = end - start; - - if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') { - // Use built-in when available, missing from IE11 - this.copyWithin(targetStart, start, end); - } else if (this === target && start < targetStart && targetStart < end) { - // descending copy from end - for (var i = len - 1; i >= 0; --i) { - target[i + targetStart] = this[i + start]; - } - } else { - Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart); - } - - return len; - }; - - // Usage: - // buffer.fill(number[, offset[, end]]) - // buffer.fill(buffer[, offset[, end]]) - // buffer.fill(string[, offset[, end]][, encoding]) - Buffer.prototype.fill = function fill(val, start, end, encoding) { - // Handle string cases: - if (typeof val === 'string') { - if (typeof start === 'string') { - encoding = start; - start = 0; - end = this.length; - } else if (typeof end === 'string') { - encoding = end; - end = this.length; - } - if (encoding !== undefined && typeof encoding !== 'string') { - throw new TypeError('encoding must be a string'); - } - if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) { - throw new TypeError('Unknown encoding: ' + encoding); - } - if (val.length === 1) { - var code = val.charCodeAt(0); - if ((encoding === 'utf8' && code < 128) || encoding === 'latin1') { - // Fast path: If `val` fits into a single byte, use that numeric value. - val = code; - } - } - } else if (typeof val === 'number') { - val = val & 255; - } - - // Invalid ranges are not set to a default, so can range check early. - if (start < 0 || this.length < start || this.length < end) { - throw new RangeError('Out of range index'); - } - - if (end <= start) { - return this; - } - - start = start >>> 0; - end = end === undefined ? this.length : end >>> 0; - - if (!val) val = 0; - - var i; - if (typeof val === 'number') { - for (i = start; i < end; ++i) { - this[i] = val; - } - } else { - var bytes = Buffer.isBuffer(val) ? val : Buffer.from(val, encoding); - var len = bytes.length; - if (len === 0) { - throw new TypeError( - 'The value "' + val + '" is invalid for argument "value"' - ); - } - for (i = 0; i < end - start; ++i) { - this[i + start] = bytes[i % len]; - } - } - - return this; - }; - - // HELPER FUNCTIONS - // ================ - - var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g; - - function base64clean(str) { - // Node takes equal signs as end of the Base64 encoding - str = str.split('=')[0]; - // Node strips out invalid characters like \n and \t from the string, base64-js does not - str = str.trim().replace(INVALID_BASE64_RE, ''); - // Node converts strings with length < 2 to '' - if (str.length < 2) return ''; - // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not - while (str.length % 4 !== 0) { - str = str + '='; - } - return str; - } - - function toHex(n) { - if (n < 16) return '0' + n.toString(16); - return n.toString(16); - } - - function utf8ToBytes(string, units) { - units = units || Infinity; - var codePoint; - var length = string.length; - var leadSurrogate = null; - var bytes = []; - - for (var i = 0; i < length; ++i) { - codePoint = string.charCodeAt(i); - - // is surrogate component - if (codePoint > 0xd7ff && codePoint < 0xe000) { - // last char was a lead - if (!leadSurrogate) { - // no lead yet - if (codePoint > 0xdbff) { - // unexpected trail - if ((units -= 3) > -1) bytes.push(0xef, 0xbf, 0xbd); - continue; - } else if (i + 1 === length) { - // unpaired lead - if ((units -= 3) > -1) bytes.push(0xef, 0xbf, 0xbd); - continue; - } - - // valid lead - leadSurrogate = codePoint; - - continue; - } - - // 2 leads in a row - if (codePoint < 0xdc00) { - if ((units -= 3) > -1) bytes.push(0xef, 0xbf, 0xbd); - leadSurrogate = codePoint; - continue; - } - - // valid surrogate pair - codePoint = - (((leadSurrogate - 0xd800) << 10) | (codePoint - 0xdc00)) + 0x10000; - } else if (leadSurrogate) { - // valid bmp char, but last char was a lead - if ((units -= 3) > -1) bytes.push(0xef, 0xbf, 0xbd); - } - - leadSurrogate = null; - - // encode utf8 - if (codePoint < 0x80) { - if ((units -= 1) < 0) break; - bytes.push(codePoint); - } else if (codePoint < 0x800) { - if ((units -= 2) < 0) break; - bytes.push((codePoint >> 0x6) | 0xc0, (codePoint & 0x3f) | 0x80); - } else if (codePoint < 0x10000) { - if ((units -= 3) < 0) break; - bytes.push( - (codePoint >> 0xc) | 0xe0, - ((codePoint >> 0x6) & 0x3f) | 0x80, - (codePoint & 0x3f) | 0x80 - ); - } else if (codePoint < 0x110000) { - if ((units -= 4) < 0) break; - bytes.push( - (codePoint >> 0x12) | 0xf0, - ((codePoint >> 0xc) & 0x3f) | 0x80, - ((codePoint >> 0x6) & 0x3f) | 0x80, - (codePoint & 0x3f) | 0x80 - ); - } else { - throw new Error('Invalid code point'); - } - } - - return bytes; - } - - function asciiToBytes(str) { - var byteArray = []; - for (var i = 0; i < str.length; ++i) { - // Node's code seems to be doing this and not & 0x7F.. - byteArray.push(str.charCodeAt(i) & 0xff); - } - return byteArray; - } - - function utf16leToBytes(str, units) { - var c, hi, lo; - var byteArray = []; - for (var i = 0; i < str.length; ++i) { - if ((units -= 2) < 0) break; - - c = str.charCodeAt(i); - hi = c >> 8; - lo = c % 256; - byteArray.push(lo); - byteArray.push(hi); - } - - return byteArray; - } - - function base64ToBytes(str) { - return base64.toByteArray(base64clean(str)); - } - - function blitBuffer(src, dst, offset, length) { - for (var i = 0; i < length; ++i) { - if (i + offset >= dst.length || i >= src.length) break; - dst[i + offset] = src[i]; - } - return i; - } - - // ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass - // the `instanceof` check but they should be treated as of that type. - // See: https://github.com/feross/buffer/issues/166 - function isInstance(obj, type) { - return ( - obj instanceof type || - (obj != null && - obj.constructor != null && - obj.constructor.name != null && - obj.constructor.name === type.name) - ); - } - function numberIsNaN(obj) { - // For IE11 support - return obj !== obj; // eslint-disable-line no-self-compare - } - }, - { 'base64-js': 2, ieee754: 8 } - ], - 5: [ - function(_dereq_, module, exports) { - (function(process, global) { - /*! - * @overview es6-promise - a tiny implementation of Promises/A+. - * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) - * @license Licensed under MIT license - * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE - * @version v4.2.6+9869a4bc - */ - - (function(global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' - ? (module.exports = factory()) - : typeof define === 'function' && define.amd - ? define(factory) - : (global.ES6Promise = factory()); - })(this, function() { - 'use strict'; - - function objectOrFunction(x) { - var type = typeof x; - return x !== null && (type === 'object' || type === 'function'); - } - - function isFunction(x) { - return typeof x === 'function'; - } - - var _isArray = void 0; - if (Array.isArray) { - _isArray = Array.isArray; - } else { - _isArray = function(x) { - return Object.prototype.toString.call(x) === '[object Array]'; - }; - } - - var isArray = _isArray; - - var len = 0; - var vertxNext = void 0; - var customSchedulerFn = void 0; - - var asap = function asap(callback, arg) { - queue[len] = callback; - queue[len + 1] = arg; - len += 2; - if (len === 2) { - // If len is 2, that means that we need to schedule an async flush. - // If additional callbacks are queued before the queue is flushed, they - // will be processed by this flush that we are scheduling. - if (customSchedulerFn) { - customSchedulerFn(flush); - } else { - scheduleFlush(); - } - } - }; - - function setScheduler(scheduleFn) { - customSchedulerFn = scheduleFn; - } - - function setAsap(asapFn) { - asap = asapFn; - } - - var browserWindow = typeof window !== 'undefined' ? window : undefined; - var browserGlobal = browserWindow || {}; - var BrowserMutationObserver = - browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver; - var isNode = - typeof self === 'undefined' && - typeof process !== 'undefined' && - {}.toString.call(process) === '[object process]'; - - // test for web worker but not in IE10 - var isWorker = - typeof Uint8ClampedArray !== 'undefined' && - typeof importScripts !== 'undefined' && - typeof MessageChannel !== 'undefined'; - - // node - function useNextTick() { - // node version 0.10.x displays a deprecation warning when nextTick is used recursively - // see https://github.com/cujojs/when/issues/410 for details - return function() { - return process.nextTick(flush); - }; - } - - // vertx - function useVertxTimer() { - if (typeof vertxNext !== 'undefined') { - return function() { - vertxNext(flush); - }; - } - - return useSetTimeout(); - } - - function useMutationObserver() { - var iterations = 0; - var observer = new BrowserMutationObserver(flush); - var node = document.createTextNode(''); - observer.observe(node, { characterData: true }); - - return function() { - node.data = iterations = ++iterations % 2; - }; - } - - // web worker - function useMessageChannel() { - var channel = new MessageChannel(); - channel.port1.onmessage = flush; - return function() { - return channel.port2.postMessage(0); - }; - } - - function useSetTimeout() { - // Store setTimeout reference so es6-promise will be unaffected by - // other code modifying setTimeout (like sinon.useFakeTimers()) - var globalSetTimeout = setTimeout; - return function() { - return globalSetTimeout(flush, 1); - }; - } - - var queue = new Array(1000); - function flush() { - for (var i = 0; i < len; i += 2) { - var callback = queue[i]; - var arg = queue[i + 1]; - - callback(arg); - - queue[i] = undefined; - queue[i + 1] = undefined; - } - - len = 0; - } - - function attemptVertx() { - try { - var vertx = Function('return this')().require('vertx'); - vertxNext = vertx.runOnLoop || vertx.runOnContext; - return useVertxTimer(); - } catch (e) { - return useSetTimeout(); - } - } - - var scheduleFlush = void 0; - // Decide what async method to use to triggering processing of queued callbacks: - if (isNode) { - scheduleFlush = useNextTick(); - } else if (BrowserMutationObserver) { - scheduleFlush = useMutationObserver(); - } else if (isWorker) { - scheduleFlush = useMessageChannel(); - } else if (browserWindow === undefined && typeof _dereq_ === 'function') { - scheduleFlush = attemptVertx(); - } else { - scheduleFlush = useSetTimeout(); - } - - function then(onFulfillment, onRejection) { - var parent = this; - - var child = new this.constructor(noop); - - if (child[PROMISE_ID] === undefined) { - makePromise(child); - } - - var _state = parent._state; - - if (_state) { - var callback = arguments[_state - 1]; - asap(function() { - return invokeCallback(_state, child, callback, parent._result); - }); - } else { - subscribe(parent, child, onFulfillment, onRejection); - } - - return child; - } - - /** - `Promise.resolve` returns a promise that will become resolved with the - passed `value`. It is shorthand for the following: - - ```javascript - let promise = new Promise(function(resolve, reject){ - resolve(1); - }); - - promise.then(function(value){ - // value === 1 - }); - ``` - - Instead of writing the above, your code now simply becomes the following: - - ```javascript - let promise = Promise.resolve(1); - - promise.then(function(value){ - // value === 1 - }); - ``` - - @method resolve - @static - @param {Any} value value that the returned promise will be resolved with - Useful for tooling. - @return {Promise} a promise that will become fulfilled with the given - `value` -*/ - function resolve$1(object) { - /*jshint validthis:true */ - var Constructor = this; - - if ( - object && - typeof object === 'object' && - object.constructor === Constructor - ) { - return object; - } - - var promise = new Constructor(noop); - resolve(promise, object); - return promise; - } - - var PROMISE_ID = Math.random() - .toString(36) - .substring(2); - - function noop() {} - - var PENDING = void 0; - var FULFILLED = 1; - var REJECTED = 2; - - var TRY_CATCH_ERROR = { error: null }; - - function selfFulfillment() { - return new TypeError('You cannot resolve a promise with itself'); - } - - function cannotReturnOwn() { - return new TypeError( - 'A promises callback cannot return that same promise.' - ); - } - - function getThen(promise) { - try { - return promise.then; - } catch (error) { - TRY_CATCH_ERROR.error = error; - return TRY_CATCH_ERROR; - } - } - - function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) { - try { - then$$1.call(value, fulfillmentHandler, rejectionHandler); - } catch (e) { - return e; - } - } - - function handleForeignThenable(promise, thenable, then$$1) { - asap(function(promise) { - var sealed = false; - var error = tryThen( - then$$1, - thenable, - function(value) { - if (sealed) { - return; - } - sealed = true; - if (thenable !== value) { - resolve(promise, value); - } else { - fulfill(promise, value); - } - }, - function(reason) { - if (sealed) { - return; - } - sealed = true; - - reject(promise, reason); - }, - 'Settle: ' + (promise._label || ' unknown promise') - ); - - if (!sealed && error) { - sealed = true; - reject(promise, error); - } - }, promise); - } - - function handleOwnThenable(promise, thenable) { - if (thenable._state === FULFILLED) { - fulfill(promise, thenable._result); - } else if (thenable._state === REJECTED) { - reject(promise, thenable._result); - } else { - subscribe( - thenable, - undefined, - function(value) { - return resolve(promise, value); - }, - function(reason) { - return reject(promise, reason); - } - ); - } - } - - function handleMaybeThenable(promise, maybeThenable, then$$1) { - if ( - maybeThenable.constructor === promise.constructor && - then$$1 === then && - maybeThenable.constructor.resolve === resolve$1 - ) { - handleOwnThenable(promise, maybeThenable); - } else { - if (then$$1 === TRY_CATCH_ERROR) { - reject(promise, TRY_CATCH_ERROR.error); - TRY_CATCH_ERROR.error = null; - } else if (then$$1 === undefined) { - fulfill(promise, maybeThenable); - } else if (isFunction(then$$1)) { - handleForeignThenable(promise, maybeThenable, then$$1); - } else { - fulfill(promise, maybeThenable); - } - } - } - - function resolve(promise, value) { - if (promise === value) { - reject(promise, selfFulfillment()); - } else if (objectOrFunction(value)) { - handleMaybeThenable(promise, value, getThen(value)); - } else { - fulfill(promise, value); - } - } - - function publishRejection(promise) { - if (promise._onerror) { - promise._onerror(promise._result); - } - - publish(promise); - } - - function fulfill(promise, value) { - if (promise._state !== PENDING) { - return; - } - - promise._result = value; - promise._state = FULFILLED; - - if (promise._subscribers.length !== 0) { - asap(publish, promise); - } - } - - function reject(promise, reason) { - if (promise._state !== PENDING) { - return; - } - promise._state = REJECTED; - promise._result = reason; - - asap(publishRejection, promise); - } - - function subscribe(parent, child, onFulfillment, onRejection) { - var _subscribers = parent._subscribers; - var length = _subscribers.length; - - parent._onerror = null; - - _subscribers[length] = child; - _subscribers[length + FULFILLED] = onFulfillment; - _subscribers[length + REJECTED] = onRejection; - - if (length === 0 && parent._state) { - asap(publish, parent); - } - } - - function publish(promise) { - var subscribers = promise._subscribers; - var settled = promise._state; - - if (subscribers.length === 0) { - return; - } - - var child = void 0, - callback = void 0, - detail = promise._result; - - for (var i = 0; i < subscribers.length; i += 3) { - child = subscribers[i]; - callback = subscribers[i + settled]; - - if (child) { - invokeCallback(settled, child, callback, detail); - } else { - callback(detail); - } - } - - promise._subscribers.length = 0; - } - - function tryCatch(callback, detail) { - try { - return callback(detail); - } catch (e) { - TRY_CATCH_ERROR.error = e; - return TRY_CATCH_ERROR; - } - } - - function invokeCallback(settled, promise, callback, detail) { - var hasCallback = isFunction(callback), - value = void 0, - error = void 0, - succeeded = void 0, - failed = void 0; - - if (hasCallback) { - value = tryCatch(callback, detail); - - if (value === TRY_CATCH_ERROR) { - failed = true; - error = value.error; - value.error = null; - } else { - succeeded = true; - } - - if (promise === value) { - reject(promise, cannotReturnOwn()); - return; - } - } else { - value = detail; - succeeded = true; - } - - if (promise._state !== PENDING) { - // noop - } else if (hasCallback && succeeded) { - resolve(promise, value); - } else if (failed) { - reject(promise, error); - } else if (settled === FULFILLED) { - fulfill(promise, value); - } else if (settled === REJECTED) { - reject(promise, value); - } - } - - function initializePromise(promise, resolver) { - try { - resolver( - function resolvePromise(value) { - resolve(promise, value); - }, - function rejectPromise(reason) { - reject(promise, reason); - } - ); - } catch (e) { - reject(promise, e); - } - } - - var id = 0; - function nextId() { - return id++; - } - - function makePromise(promise) { - promise[PROMISE_ID] = id++; - promise._state = undefined; - promise._result = undefined; - promise._subscribers = []; - } - - function validationError() { - return new Error('Array Methods must be provided an Array'); - } - - var Enumerator = (function() { - function Enumerator(Constructor, input) { - this._instanceConstructor = Constructor; - this.promise = new Constructor(noop); - - if (!this.promise[PROMISE_ID]) { - makePromise(this.promise); - } - - if (isArray(input)) { - this.length = input.length; - this._remaining = input.length; - - this._result = new Array(this.length); - - if (this.length === 0) { - fulfill(this.promise, this._result); - } else { - this.length = this.length || 0; - this._enumerate(input); - if (this._remaining === 0) { - fulfill(this.promise, this._result); - } - } - } else { - reject(this.promise, validationError()); - } - } - - Enumerator.prototype._enumerate = function _enumerate(input) { - for (var i = 0; this._state === PENDING && i < input.length; i++) { - this._eachEntry(input[i], i); - } - }; - - Enumerator.prototype._eachEntry = function _eachEntry(entry, i) { - var c = this._instanceConstructor; - var resolve$$1 = c.resolve; - - if (resolve$$1 === resolve$1) { - var _then = getThen(entry); - - if (_then === then && entry._state !== PENDING) { - this._settledAt(entry._state, i, entry._result); - } else if (typeof _then !== 'function') { - this._remaining--; - this._result[i] = entry; - } else if (c === Promise$1) { - var promise = new c(noop); - handleMaybeThenable(promise, entry, _then); - this._willSettleAt(promise, i); - } else { - this._willSettleAt( - new c(function(resolve$$1) { - return resolve$$1(entry); - }), - i - ); - } - } else { - this._willSettleAt(resolve$$1(entry), i); - } - }; - - Enumerator.prototype._settledAt = function _settledAt(state, i, value) { - var promise = this.promise; - - if (promise._state === PENDING) { - this._remaining--; - - if (state === REJECTED) { - reject(promise, value); - } else { - this._result[i] = value; - } - } - - if (this._remaining === 0) { - fulfill(promise, this._result); - } - }; - - Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) { - var enumerator = this; - - subscribe( - promise, - undefined, - function(value) { - return enumerator._settledAt(FULFILLED, i, value); - }, - function(reason) { - return enumerator._settledAt(REJECTED, i, reason); - } - ); - }; - - return Enumerator; - })(); - - /** - `Promise.all` accepts an array of promises, and returns a new promise which - is fulfilled with an array of fulfillment values for the passed promises, or - rejected with the reason of the first passed promise to be rejected. It casts all - elements of the passed iterable to promises as it runs this algorithm. - - Example: - - ```javascript - let promise1 = resolve(1); - let promise2 = resolve(2); - let promise3 = resolve(3); - let promises = [ promise1, promise2, promise3 ]; - - Promise.all(promises).then(function(array){ - // The array here would be [ 1, 2, 3 ]; - }); - ``` - - If any of the `promises` given to `all` are rejected, the first promise - that is rejected will be given as an argument to the returned promises's - rejection handler. For example: - - Example: - - ```javascript - let promise1 = resolve(1); - let promise2 = reject(new Error("2")); - let promise3 = reject(new Error("3")); - let promises = [ promise1, promise2, promise3 ]; - - Promise.all(promises).then(function(array){ - // Code here never runs because there are rejected promises! - }, function(error) { - // error.message === "2" - }); - ``` - - @method all - @static - @param {Array} entries array of promises - @param {String} label optional string for labeling the promise. - Useful for tooling. - @return {Promise} promise that is fulfilled when all `promises` have been - fulfilled, or rejected if any of them become rejected. - @static -*/ - function all(entries) { - return new Enumerator(this, entries).promise; - } - - /** - `Promise.race` returns a new promise which is settled in the same way as the - first passed promise to settle. - - Example: - - ```javascript - let promise1 = new Promise(function(resolve, reject){ - setTimeout(function(){ - resolve('promise 1'); - }, 200); - }); - - let promise2 = new Promise(function(resolve, reject){ - setTimeout(function(){ - resolve('promise 2'); - }, 100); - }); - - Promise.race([promise1, promise2]).then(function(result){ - // result === 'promise 2' because it was resolved before promise1 - // was resolved. - }); - ``` - - `Promise.race` is deterministic in that only the state of the first - settled promise matters. For example, even if other promises given to the - `promises` array argument are resolved, but the first settled promise has - become rejected before the other promises became fulfilled, the returned - promise will become rejected: - - ```javascript - let promise1 = new Promise(function(resolve, reject){ - setTimeout(function(){ - resolve('promise 1'); - }, 200); - }); - - let promise2 = new Promise(function(resolve, reject){ - setTimeout(function(){ - reject(new Error('promise 2')); - }, 100); - }); - - Promise.race([promise1, promise2]).then(function(result){ - // Code here never runs - }, function(reason){ - // reason.message === 'promise 2' because promise 2 became rejected before - // promise 1 became fulfilled - }); - ``` - - An example real-world use case is implementing timeouts: - - ```javascript - Promise.race([ajax('foo.json'), timeout(5000)]) - ``` - - @method race - @static - @param {Array} promises array of promises to observe - Useful for tooling. - @return {Promise} a promise which settles in the same way as the first passed - promise to settle. -*/ - function race(entries) { - /*jshint validthis:true */ - var Constructor = this; - - if (!isArray(entries)) { - return new Constructor(function(_, reject) { - return reject(new TypeError('You must pass an array to race.')); - }); - } else { - return new Constructor(function(resolve, reject) { - var length = entries.length; - for (var i = 0; i < length; i++) { - Constructor.resolve(entries[i]).then(resolve, reject); - } - }); - } - } - - /** - `Promise.reject` returns a promise rejected with the passed `reason`. - It is shorthand for the following: - - ```javascript - let promise = new Promise(function(resolve, reject){ - reject(new Error('WHOOPS')); - }); - - promise.then(function(value){ - // Code here doesn't run because the promise is rejected! - }, function(reason){ - // reason.message === 'WHOOPS' - }); - ``` - - Instead of writing the above, your code now simply becomes the following: - - ```javascript - let promise = Promise.reject(new Error('WHOOPS')); - - promise.then(function(value){ - // Code here doesn't run because the promise is rejected! - }, function(reason){ - // reason.message === 'WHOOPS' - }); - ``` - - @method reject - @static - @param {Any} reason value that the returned promise will be rejected with. - Useful for tooling. - @return {Promise} a promise rejected with the given `reason`. -*/ - function reject$1(reason) { - /*jshint validthis:true */ - var Constructor = this; - var promise = new Constructor(noop); - reject(promise, reason); - return promise; - } - - function needsResolver() { - throw new TypeError( - 'You must pass a resolver function as the first argument to the promise constructor' - ); - } - - function needsNew() { - throw new TypeError( - "Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function." - ); - } - - /** - Promise objects represent the eventual result of an asynchronous operation. The - primary way of interacting with a promise is through its `then` method, which - registers callbacks to receive either a promise's eventual value or the reason - why the promise cannot be fulfilled. - - Terminology - ----------- - - - `promise` is an object or function with a `then` method whose behavior conforms to this specification. - - `thenable` is an object or function that defines a `then` method. - - `value` is any legal JavaScript value (including undefined, a thenable, or a promise). - - `exception` is a value that is thrown using the throw statement. - - `reason` is a value that indicates why a promise was rejected. - - `settled` the final resting state of a promise, fulfilled or rejected. - - A promise can be in one of three states: pending, fulfilled, or rejected. - - Promises that are fulfilled have a fulfillment value and are in the fulfilled - state. Promises that are rejected have a rejection reason and are in the - rejected state. A fulfillment value is never a thenable. - - Promises can also be said to *resolve* a value. If this value is also a - promise, then the original promise's settled state will match the value's - settled state. So a promise that *resolves* a promise that rejects will - itself reject, and a promise that *resolves* a promise that fulfills will - itself fulfill. - - - Basic Usage: - ------------ - - ```js - let promise = new Promise(function(resolve, reject) { - // on success - resolve(value); - - // on failure - reject(reason); - }); - - promise.then(function(value) { - // on fulfillment - }, function(reason) { - // on rejection - }); - ``` - - Advanced Usage: - --------------- - - Promises shine when abstracting away asynchronous interactions such as - `XMLHttpRequest`s. - - ```js - function getJSON(url) { - return new Promise(function(resolve, reject){ - let xhr = new XMLHttpRequest(); - - xhr.open('GET', url); - xhr.onreadystatechange = handler; - xhr.responseType = 'json'; - xhr.setRequestHeader('Accept', 'application/json'); - xhr.send(); - - function handler() { - if (this.readyState === this.DONE) { - if (this.status === 200) { - resolve(this.response); - } else { - reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']')); - } - } - }; - }); - } - - getJSON('/posts.json').then(function(json) { - // on fulfillment - }, function(reason) { - // on rejection - }); - ``` - - Unlike callbacks, promises are great composable primitives. - - ```js - Promise.all([ - getJSON('/posts'), - getJSON('/comments') - ]).then(function(values){ - values[0] // => postsJSON - values[1] // => commentsJSON - - return values; - }); - ``` - - @class Promise - @param {Function} resolver - Useful for tooling. - @constructor -*/ - - var Promise$1 = (function() { - function Promise(resolver) { - this[PROMISE_ID] = nextId(); - this._result = this._state = undefined; - this._subscribers = []; - - if (noop !== resolver) { - typeof resolver !== 'function' && needsResolver(); - this instanceof Promise - ? initializePromise(this, resolver) - : needsNew(); - } - } - - /** - The primary way of interacting with a promise is through its `then` method, - which registers callbacks to receive either a promise's eventual value or the - reason why the promise cannot be fulfilled. - ```js - findUser().then(function(user){ - // user is available - }, function(reason){ - // user is unavailable, and you are given the reason why - }); - ``` - Chaining - -------- - The return value of `then` is itself a promise. This second, 'downstream' - promise is resolved with the return value of the first promise's fulfillment - or rejection handler, or rejected if the handler throws an exception. - ```js - findUser().then(function (user) { - return user.name; - }, function (reason) { - return 'default name'; - }).then(function (userName) { - // If `findUser` fulfilled, `userName` will be the user's name, otherwise it - // will be `'default name'` - }); - findUser().then(function (user) { - throw new Error('Found user, but still unhappy'); - }, function (reason) { - throw new Error('`findUser` rejected and we're unhappy'); - }).then(function (value) { - // never reached - }, function (reason) { - // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'. - // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'. - }); - ``` - If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream. - ```js - findUser().then(function (user) { - throw new PedagogicalException('Upstream error'); - }).then(function (value) { - // never reached - }).then(function (value) { - // never reached - }, function (reason) { - // The `PedgagocialException` is propagated all the way down to here - }); - ``` - Assimilation - ------------ - Sometimes the value you want to propagate to a downstream promise can only be - retrieved asynchronously. This can be achieved by returning a promise in the - fulfillment or rejection handler. The downstream promise will then be pending - until the returned promise is settled. This is called *assimilation*. - ```js - findUser().then(function (user) { - return findCommentsByAuthor(user); - }).then(function (comments) { - // The user's comments are now available - }); - ``` - If the assimliated promise rejects, then the downstream promise will also reject. - ```js - findUser().then(function (user) { - return findCommentsByAuthor(user); - }).then(function (comments) { - // If `findCommentsByAuthor` fulfills, we'll have the value here - }, function (reason) { - // If `findCommentsByAuthor` rejects, we'll have the reason here - }); - ``` - Simple Example - -------------- - Synchronous Example - ```javascript - let result; - try { - result = findResult(); - // success - } catch(reason) { - // failure - } - ``` - Errback Example - ```js - findResult(function(result, err){ - if (err) { - // failure - } else { - // success - } - }); - ``` - Promise Example; - ```javascript - findResult().then(function(result){ - // success - }, function(reason){ - // failure - }); - ``` - Advanced Example - -------------- - Synchronous Example - ```javascript - let author, books; - try { - author = findAuthor(); - books = findBooksByAuthor(author); - // success - } catch(reason) { - // failure - } - ``` - Errback Example - ```js - function foundBooks(books) { - } - function failure(reason) { - } - findAuthor(function(author, err){ - if (err) { - failure(err); - // failure - } else { - try { - findBoooksByAuthor(author, function(books, err) { - if (err) { - failure(err); - } else { - try { - foundBooks(books); - } catch(reason) { - failure(reason); - } - } - }); - } catch(error) { - failure(err); - } - // success - } - }); - ``` - Promise Example; - ```javascript - findAuthor(). - then(findBooksByAuthor). - then(function(books){ - // found books - }).catch(function(reason){ - // something went wrong - }); - ``` - @method then - @param {Function} onFulfilled - @param {Function} onRejected - Useful for tooling. - @return {Promise} - */ - - /** - `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same - as the catch block of a try/catch statement. - ```js - function findAuthor(){ - throw new Error('couldn't find that author'); - } - // synchronous - try { - findAuthor(); - } catch(reason) { - // something went wrong - } - // async with promises - findAuthor().catch(function(reason){ - // something went wrong - }); - ``` - @method catch - @param {Function} onRejection - Useful for tooling. - @return {Promise} - */ - - Promise.prototype.catch = function _catch(onRejection) { - return this.then(null, onRejection); - }; - - /** - `finally` will be invoked regardless of the promise's fate just as native - try/catch/finally behaves - - Synchronous example: - - ```js - findAuthor() { - if (Math.random() > 0.5) { - throw new Error(); - } - return new Author(); - } - - try { - return findAuthor(); // succeed or fail - } catch(error) { - return findOtherAuther(); - } finally { - // always runs - // doesn't affect the return value - } - ``` - - Asynchronous example: - - ```js - findAuthor().catch(function(reason){ - return findOtherAuther(); - }).finally(function(){ - // author was either found, or not - }); - ``` - - @method finally - @param {Function} callback - @return {Promise} - */ - - Promise.prototype.finally = function _finally(callback) { - var promise = this; - var constructor = promise.constructor; - - if (isFunction(callback)) { - return promise.then( - function(value) { - return constructor.resolve(callback()).then(function() { - return value; - }); - }, - function(reason) { - return constructor.resolve(callback()).then(function() { - throw reason; - }); - } - ); - } - - return promise.then(callback, callback); - }; - - return Promise; - })(); - - Promise$1.prototype.then = then; - Promise$1.all = all; - Promise$1.race = race; - Promise$1.resolve = resolve$1; - Promise$1.reject = reject$1; - Promise$1._setScheduler = setScheduler; - Promise$1._setAsap = setAsap; - Promise$1._asap = asap; - - /*global self*/ - function polyfill() { - var local = void 0; - - if (typeof global !== 'undefined') { - local = global; - } else if (typeof self !== 'undefined') { - local = self; - } else { - try { - local = Function('return this')(); - } catch (e) { - throw new Error( - 'polyfill failed because global object is unavailable in this environment' - ); - } - } - - var P = local.Promise; - - if (P) { - var promiseToString = null; - try { - promiseToString = Object.prototype.toString.call(P.resolve()); - } catch (e) { - // silently ignored - } - - if (promiseToString === '[object Promise]' && !P.cast) { - return; - } - } - - local.Promise = Promise$1; - } - - // Strange compat.. - Promise$1.polyfill = polyfill; - Promise$1.Promise = Promise$1; - - return Promise$1; - }); - }.call( - this, - _dereq_('_process'), - typeof global !== 'undefined' - ? global - : typeof self !== 'undefined' - ? self - : typeof window !== 'undefined' ? window : {} - )); - }, - { _process: 11 } - ], - 6: [ - function(_dereq_, module, exports) { - (function(global, factory) { - if (typeof define === 'function' && define.amd) { - define(['exports', 'module'], factory); - } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') { - factory(exports, module); - } else { - var mod = { - exports: {} - }; - factory(mod.exports, mod); - global.fetchJsonp = mod.exports; - } - })(this, function(exports, module) { - 'use strict'; - - var defaultOptions = { - timeout: 5000, - jsonpCallback: 'callback', - jsonpCallbackFunction: null - }; - - function generateCallbackFunction() { - return 'jsonp_' + Date.now() + '_' + Math.ceil(Math.random() * 100000); - } - - function clearFunction(functionName) { - // IE8 throws an exception when you try to delete a property on window - // http://stackoverflow.com/a/1824228/751089 - try { - delete window[functionName]; - } catch (e) { - window[functionName] = undefined; - } - } - - function removeScript(scriptId) { - var script = document.getElementById(scriptId); - if (script) { - document.getElementsByTagName('head')[0].removeChild(script); - } - } - - function fetchJsonp(_url) { - var options = - arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; - - // to avoid param reassign - var url = _url; - var timeout = options.timeout || defaultOptions.timeout; - var jsonpCallback = options.jsonpCallback || defaultOptions.jsonpCallback; - - var timeoutId = undefined; - - return new Promise(function(resolve, reject) { - var callbackFunction = - options.jsonpCallbackFunction || generateCallbackFunction(); - var scriptId = jsonpCallback + '_' + callbackFunction; - - window[callbackFunction] = function(response) { - resolve({ - ok: true, - // keep consistent with fetch API - json: function json() { - return Promise.resolve(response); - } - }); - - if (timeoutId) clearTimeout(timeoutId); - - removeScript(scriptId); - - clearFunction(callbackFunction); - }; - - // Check if the user set their own params, and if not add a ? to start a list of params - url += url.indexOf('?') === -1 ? '?' : '&'; - - var jsonpScript = document.createElement('script'); - jsonpScript.setAttribute( - 'src', - '' + url + jsonpCallback + '=' + callbackFunction - ); - if (options.charset) { - jsonpScript.setAttribute('charset', options.charset); - } - jsonpScript.id = scriptId; - document.getElementsByTagName('head')[0].appendChild(jsonpScript); - - timeoutId = setTimeout(function() { - reject(new Error('JSONP request to ' + _url + ' timed out')); - - clearFunction(callbackFunction); - removeScript(scriptId); - window[callbackFunction] = function() { - clearFunction(callbackFunction); - }; - }, timeout); - - // Caught if got 404/500 - jsonpScript.onerror = function() { - reject(new Error('JSONP request to ' + _url + ' failed')); - - clearFunction(callbackFunction); - removeScript(scriptId); - if (timeoutId) clearTimeout(timeoutId); - }; - }); - } - - // export as global function - /* - let local; - if (typeof global !== 'undefined') { - local = global; - } else if (typeof self !== 'undefined') { - local = self; - } else { - try { - local = Function('return this')(); - } catch (e) { - throw new Error('polyfill failed because global object is unavailable in this environment'); - } - } - local.fetchJsonp = fetchJsonp; - */ - - module.exports = fetchJsonp; - }); - }, - {} - ], - 7: [ - function(_dereq_, module, exports) { - /* FileSaver.js - * A saveAs() FileSaver implementation. - * 1.3.2 - * 2016-06-16 18:25:19 - * - * By Eli Grey, http://eligrey.com - * License: MIT - * See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md - */ - - /*global self */ - /*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */ - - /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */ - - var saveAs = - saveAs || - (function(view) { - 'use strict'; - // IE <10 is explicitly unsupported - if ( - typeof view === 'undefined' || - (typeof navigator !== 'undefined' && - /MSIE [1-9]\./.test(navigator.userAgent)) - ) { - return; - } - var doc = view.document, - // only get URL when necessary in case Blob.js hasn't overridden it yet - get_URL = function() { - return view.URL || view.webkitURL || view; - }, - save_link = doc.createElementNS('http://www.w3.org/1999/xhtml', 'a'), - can_use_save_link = 'download' in save_link, - click = function(node) { - var event = new MouseEvent('click'); - node.dispatchEvent(event); - }, - is_safari = /constructor/i.test(view.HTMLElement) || view.safari, - is_chrome_ios = /CriOS\/[\d]+/.test(navigator.userAgent), - throw_outside = function(ex) { - (view.setImmediate || view.setTimeout)(function() { - throw ex; - }, 0); - }, - force_saveable_type = 'application/octet-stream', - // the Blob API is fundamentally broken as there is no "downloadfinished" event to subscribe to - arbitrary_revoke_timeout = 1000 * 40, // in ms - revoke = function(file) { - var revoker = function() { - if (typeof file === 'string') { - // file is an object URL - get_URL().revokeObjectURL(file); - } else { - // file is a File - file.remove(); - } - }; - setTimeout(revoker, arbitrary_revoke_timeout); - }, - dispatch = function(filesaver, event_types, event) { - event_types = [].concat(event_types); - var i = event_types.length; - while (i--) { - var listener = filesaver['on' + event_types[i]]; - if (typeof listener === 'function') { - try { - listener.call(filesaver, event || filesaver); - } catch (ex) { - throw_outside(ex); - } - } - } - }, - auto_bom = function(blob) { - // prepend BOM for UTF-8 XML and text/* types (including HTML) - // note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF - if ( - /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test( - blob.type - ) - ) { - return new Blob([String.fromCharCode(0xfeff), blob], { - type: blob.type - }); - } - return blob; - }, - FileSaver = function(blob, name, no_auto_bom) { - if (!no_auto_bom) { - blob = auto_bom(blob); - } - // First try a.download, then web filesystem, then object URLs - var filesaver = this, - type = blob.type, - force = type === force_saveable_type, - object_url, - dispatch_all = function() { - dispatch(filesaver, 'writestart progress write writeend'.split(' ')); - }, - // on any filesys errors revert to saving with object URLs - fs_error = function() { - if ((is_chrome_ios || (force && is_safari)) && view.FileReader) { - // Safari doesn't allow downloading of blob urls - var reader = new FileReader(); - reader.onloadend = function() { - var url = is_chrome_ios - ? reader.result - : reader.result.replace( - /^data:[^;]*;/, - 'data:attachment/file;' - ); - var popup = view.open(url, '_blank'); - if (!popup) view.location.href = url; - url = undefined; // release reference before dispatching - filesaver.readyState = filesaver.DONE; - dispatch_all(); - }; - reader.readAsDataURL(blob); - filesaver.readyState = filesaver.INIT; - return; - } - // don't create more object URLs than needed - if (!object_url) { - object_url = get_URL().createObjectURL(blob); - } - if (force) { - view.location.href = object_url; - } else { - var opened = view.open(object_url, '_blank'); - if (!opened) { - // Apple does not allow window.open, see https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/WorkingwithWindowsandTabs/WorkingwithWindowsandTabs.html - view.location.href = object_url; - } - } - filesaver.readyState = filesaver.DONE; - dispatch_all(); - revoke(object_url); - }; - filesaver.readyState = filesaver.INIT; - - if (can_use_save_link) { - object_url = get_URL().createObjectURL(blob); - setTimeout(function() { - save_link.href = object_url; - save_link.download = name; - click(save_link); - dispatch_all(); - revoke(object_url); - filesaver.readyState = filesaver.DONE; - }); - return; - } - - fs_error(); - }, - FS_proto = FileSaver.prototype, - saveAs = function(blob, name, no_auto_bom) { - return new FileSaver(blob, name || blob.name || 'download', no_auto_bom); - }; - // IE 10+ (native saveAs) - if (typeof navigator !== 'undefined' && navigator.msSaveOrOpenBlob) { - return function(blob, name, no_auto_bom) { - name = name || blob.name || 'download'; - - if (!no_auto_bom) { - blob = auto_bom(blob); - } - return navigator.msSaveOrOpenBlob(blob, name); - }; - } - - FS_proto.abort = function() {}; - FS_proto.readyState = FS_proto.INIT = 0; - FS_proto.WRITING = 1; - FS_proto.DONE = 2; - - FS_proto.error = FS_proto.onwritestart = FS_proto.onprogress = FS_proto.onwrite = FS_proto.onabort = FS_proto.onerror = FS_proto.onwriteend = null; - - return saveAs; - })( - (typeof self !== 'undefined' && self) || - (typeof window !== 'undefined' && window) || - this.content - ); - // `self` is undefined in Firefox for Android content script context - // while `this` is nsIContentFrameMessageManager - // with an attribute `content` that corresponds to the window - - if (typeof module !== 'undefined' && module.exports) { - module.exports.saveAs = saveAs; - } else if ( - typeof define !== 'undefined' && - define !== null && - define.amd !== null - ) { - define('FileSaver.js', function() { - return saveAs; - }); - } - }, - {} - ], - 8: [ - function(_dereq_, module, exports) { - exports.read = function(buffer, offset, isLE, mLen, nBytes) { - var e, m; - var eLen = nBytes * 8 - mLen - 1; - var eMax = (1 << eLen) - 1; - var eBias = eMax >> 1; - var nBits = -7; - var i = isLE ? nBytes - 1 : 0; - var d = isLE ? -1 : 1; - var s = buffer[offset + i]; - - i += d; - - e = s & ((1 << -nBits) - 1); - s >>= -nBits; - nBits += eLen; - for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {} - - m = e & ((1 << -nBits) - 1); - e >>= -nBits; - nBits += mLen; - for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {} - - if (e === 0) { - e = 1 - eBias; - } else if (e === eMax) { - return m ? NaN : (s ? -1 : 1) * Infinity; - } else { - m = m + Math.pow(2, mLen); - e = e - eBias; - } - return (s ? -1 : 1) * m * Math.pow(2, e - mLen); - }; - - exports.write = function(buffer, value, offset, isLE, mLen, nBytes) { - var e, m, c; - var eLen = nBytes * 8 - mLen - 1; - var eMax = (1 << eLen) - 1; - var eBias = eMax >> 1; - var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0; - var i = isLE ? 0 : nBytes - 1; - var d = isLE ? 1 : -1; - var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0; - - value = Math.abs(value); - - if (isNaN(value) || value === Infinity) { - m = isNaN(value) ? 1 : 0; - e = eMax; - } else { - e = Math.floor(Math.log(value) / Math.LN2); - if (value * (c = Math.pow(2, -e)) < 1) { - e--; - c *= 2; - } - if (e + eBias >= 1) { - value += rt / c; - } else { - value += rt * Math.pow(2, 1 - eBias); - } - if (value * c >= 2) { - e++; - c /= 2; - } - - if (e + eBias >= eMax) { - m = 0; - e = eMax; - } else if (e + eBias >= 1) { - m = (value * c - 1) * Math.pow(2, mLen); - e = e + eBias; - } else { - m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen); - e = 0; - } - } - - for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {} - - e = (e << mLen) | m; - eLen += mLen; - for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {} - - buffer[offset + i - d] |= s * 128; - }; - }, - {} - ], - 9: [ - function(_dereq_, module, exports) { - /* - - Copyright 2000, Silicon Graphics, Inc. All Rights Reserved. - Copyright 2015, Google Inc. All Rights Reserved. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to - deal in the Software without restriction, including without limitation the - rights to use, copy, modify, merge, publish, distribute, sublicense, and/or - sell copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice including the dates of first publication and - either this permission notice or a reference to http://oss.sgi.com/projects/FreeB/ - shall be included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR - IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - Original Code. The Original Code is: OpenGL Sample Implementation, - Version 1.2.1, released January 26, 2000, developed by Silicon Graphics, - Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc. - Copyright in any portions created by third parties is as indicated - elsewhere herein. All Rights Reserved. -*/ - 'use strict'; - var n; - function t(a, b) { - return a.b === b.b && a.a === b.a; - } - function u(a, b) { - return a.b < b.b || (a.b === b.b && a.a <= b.a); - } - function v(a, b, c) { - var d = b.b - a.b, - e = c.b - b.b; - return 0 < d + e - ? d < e - ? b.a - a.a + d / (d + e) * (a.a - c.a) - : b.a - c.a + e / (d + e) * (c.a - a.a) - : 0; - } - function x(a, b, c) { - var d = b.b - a.b, - e = c.b - b.b; - return 0 < d + e ? (b.a - c.a) * d + (b.a - a.a) * e : 0; - } - function z(a, b) { - return a.a < b.a || (a.a === b.a && a.b <= b.b); - } - function aa(a, b, c) { - var d = b.a - a.a, - e = c.a - b.a; - return 0 < d + e - ? d < e - ? b.b - a.b + d / (d + e) * (a.b - c.b) - : b.b - c.b + e / (d + e) * (c.b - a.b) - : 0; - } - function ba(a, b, c) { - var d = b.a - a.a, - e = c.a - b.a; - return 0 < d + e ? (b.b - c.b) * d + (b.b - a.b) * e : 0; - } - function ca(a) { - return u(a.b.a, a.a); - } - function da(a) { - return u(a.a, a.b.a); - } - function A(a, b, c, d) { - a = 0 > a ? 0 : a; - c = 0 > c ? 0 : c; - return a <= c - ? 0 === c ? (b + d) / 2 : b + a / (a + c) * (d - b) - : d + c / (a + c) * (b - d); - } - function ea(a) { - var b = B(a.b); - C(b, a.c); - C(b.b, a.c); - D(b, a.a); - return b; - } - function E(a, b) { - var c = !1, - d = !1; - a !== b && - (b.a !== a.a && ((d = !0), F(b.a, a.a)), - b.d !== a.d && ((c = !0), G(b.d, a.d)), - H(b, a), - d || (C(b, a.a), (a.a.c = a)), - c || (D(b, a.d), (a.d.a = a))); - } - function I(a) { - var b = a.b, - c = !1; - a.d !== a.b.d && ((c = !0), G(a.d, a.b.d)); - a.c === a - ? F(a.a, null) - : ((a.b.d.a = J(a)), (a.a.c = a.c), H(a, J(a)), c || D(a, a.d)); - b.c === b - ? (F(b.a, null), G(b.d, null)) - : ((a.d.a = J(b)), (b.a.c = b.c), H(b, J(b))); - fa(a); - } - function K(a) { - var b = B(a), - c = b.b; - H(b, a.e); - b.a = a.b.a; - C(c, b.a); - b.d = c.d = a.d; - b = b.b; - H(a.b, J(a.b)); - H(a.b, b); - a.b.a = b.a; - b.b.a.c = b.b; - b.b.d = a.b.d; - b.f = a.f; - b.b.f = a.b.f; - return b; - } - function L(a, b) { - var c = !1, - d = B(a), - e = d.b; - b.d !== a.d && ((c = !0), G(b.d, a.d)); - H(d, a.e); - H(e, b); - d.a = a.b.a; - e.a = b.a; - d.d = e.d = a.d; - a.d.a = e; - c || D(d, a.d); - return d; - } - function B(a) { - var b = new M(), - c = new M(), - d = a.b.h; - c.h = d; - d.b.h = b; - b.h = a; - a.b.h = c; - b.b = c; - b.c = b; - b.e = c; - c.b = b; - c.c = c; - return (c.e = b); - } - function H(a, b) { - var c = a.c, - d = b.c; - c.b.e = b; - d.b.e = a; - a.c = d; - b.c = c; - } - function C(a, b) { - var c = b.f, - d = new N(b, c); - c.e = d; - b.f = d; - c = d.c = a; - do (c.a = d), (c = c.c); - while (c !== a); - } - function D(a, b) { - var c = b.d, - d = new ga(b, c); - c.b = d; - b.d = d; - d.a = a; - d.c = b.c; - c = a; - do (c.d = d), (c = c.e); - while (c !== a); - } - function fa(a) { - var b = a.h; - a = a.b.h; - b.b.h = a; - a.b.h = b; - } - function F(a, b) { - var c = a.c, - d = c; - do (d.a = b), (d = d.c); - while (d !== c); - c = a.f; - d = a.e; - d.f = c; - c.e = d; - } - function G(a, b) { - var c = a.a, - d = c; - do (d.d = b), (d = d.e); - while (d !== c); - c = a.d; - d = a.b; - d.d = c; - c.b = d; - } - function ha(a) { - var b = 0; - Math.abs(a[1]) > Math.abs(a[0]) && (b = 1); - Math.abs(a[2]) > Math.abs(a[b]) && (b = 2); - return b; - } - var O = 4 * 1e150; - function P(a, b) { - a.f += b.f; - a.b.f += b.b.f; - } - function ia(a, b, c) { - a = a.a; - b = b.a; - c = c.a; - if (b.b.a === a) - return c.b.a === a - ? u(b.a, c.a) ? 0 >= x(c.b.a, b.a, c.a) : 0 <= x(b.b.a, c.a, b.a) - : 0 >= x(c.b.a, a, c.a); - if (c.b.a === a) return 0 <= x(b.b.a, a, b.a); - b = v(b.b.a, a, b.a); - a = v(c.b.a, a, c.a); - return b >= a; - } - function Q(a) { - a.a.i = null; - var b = a.e; - b.a.c = b.c; - b.c.a = b.a; - a.e = null; - } - function ja(a, b) { - I(a.a); - a.c = !1; - a.a = b; - b.i = a; - } - function ka(a) { - var b = a.a.a; - do a = R(a); - while (a.a.a === b); - a.c && ((b = L(S(a).a.b, a.a.e)), ja(a, b), (a = R(a))); - return a; - } - function la(a, b, c) { - var d = new ma(); - d.a = c; - d.e = na(a.f, b.e, d); - return (c.i = d); - } - function oa(a, b) { - switch (a.s) { - case 100130: - return 0 !== (b & 1); - case 100131: - return 0 !== b; - case 100132: - return 0 < b; - case 100133: - return 0 > b; - case 100134: - return 2 <= b || -2 >= b; - } - return !1; - } - function pa(a) { - var b = a.a, - c = b.d; - c.c = a.d; - c.a = b; - Q(a); - } - function T(a, b, c) { - a = b; - for (b = b.a; a !== c; ) { - a.c = !1; - var d = S(a), - e = d.a; - if (e.a !== b.a) { - if (!d.c) { - pa(a); - break; - } - e = L(b.c.b, e.b); - ja(d, e); - } - b.c !== e && (E(J(e), e), E(b, e)); - pa(a); - b = d.a; - a = d; - } - return b; - } - function U(a, b, c, d, e, f) { - var g = !0; - do la(a, b, c.b), (c = c.c); - while (c !== d); - for (null === e && (e = S(b).a.b.c); ; ) { - d = S(b); - c = d.a.b; - if (c.a !== e.a) break; - c.c !== e && (E(J(c), c), E(J(e), c)); - d.f = b.f - c.f; - d.d = oa(a, d.f); - b.b = !0; - !g && qa(a, b) && (P(c, e), Q(b), I(e)); - g = !1; - b = d; - e = c; - } - b.b = !0; - f && ra(a, b); - } - function sa(a, b, c, d, e) { - var f = [b.g[0], b.g[1], b.g[2]]; - b.d = null; - b.d = a.o ? a.o(f, c, d, a.c) || null : null; - null === b.d && (e ? a.n || (V(a, 100156), (a.n = !0)) : (b.d = c[0])); - } - function ta(a, b, c) { - var d = [null, null, null, null]; - d[0] = b.a.d; - d[1] = c.a.d; - sa(a, b.a, d, [0.5, 0.5, 0, 0], !1); - E(b, c); - } - function ua(a, b, c, d, e) { - var f = Math.abs(b.b - a.b) + Math.abs(b.a - a.a), - g = Math.abs(c.b - a.b) + Math.abs(c.a - a.a), - h = e + 1; - d[e] = 0.5 * g / (f + g); - d[h] = 0.5 * f / (f + g); - a.g[0] += d[e] * b.g[0] + d[h] * c.g[0]; - a.g[1] += d[e] * b.g[1] + d[h] * c.g[1]; - a.g[2] += d[e] * b.g[2] + d[h] * c.g[2]; - } - function qa(a, b) { - var c = S(b), - d = b.a, - e = c.a; - if (u(d.a, e.a)) { - if (0 < x(e.b.a, d.a, e.a)) return !1; - if (!t(d.a, e.a)) K(e.b), E(d, J(e)), (b.b = c.b = !0); - else if (d.a !== e.a) { - var c = a.e, - f = d.a.h; - if (0 <= f) { - var c = c.b, - g = c.d, - h = c.e, - k = c.c, - l = k[f]; - g[l] = g[c.a]; - k[g[l]] = l; - l <= --c.a && - (1 >= l ? W(c, l) : u(h[g[l >> 1]], h[g[l]]) ? W(c, l) : va(c, l)); - h[f] = null; - k[f] = c.b; - c.b = f; - } else - for (c.c[-(f + 1)] = null; 0 < c.a && null === c.c[c.d[c.a - 1]]; ) --c.a; - ta(a, J(e), d); - } - } else { - if (0 > x(d.b.a, e.a, d.a)) return !1; - R(b).b = b.b = !0; - K(d.b); - E(J(e), d); - } - return !0; - } - function wa(a, b) { - var c = S(b), - d = b.a, - e = c.a, - f = d.a, - g = e.a, - h = d.b.a, - k = e.b.a, - l = new N(); - x(h, a.a, f); - x(k, a.a, g); - if (f === g || Math.min(f.a, h.a) > Math.max(g.a, k.a)) return !1; - if (u(f, g)) { - if (0 < x(k, f, g)) return !1; - } else if (0 > x(h, g, f)) return !1; - var r = h, - p = f, - q = k, - y = g, - m, - w; - u(r, p) || ((m = r), (r = p), (p = m)); - u(q, y) || ((m = q), (q = y), (y = m)); - u(r, q) || ((m = r), (r = q), (q = m), (m = p), (p = y), (y = m)); - u(q, p) - ? u(p, y) - ? ((m = v(r, q, p)), - (w = v(q, p, y)), - 0 > m + w && ((m = -m), (w = -w)), - (l.b = A(m, q.b, w, p.b))) - : ((m = x(r, q, p)), - (w = -x(r, y, p)), - 0 > m + w && ((m = -m), (w = -w)), - (l.b = A(m, q.b, w, y.b))) - : (l.b = (q.b + p.b) / 2); - z(r, p) || ((m = r), (r = p), (p = m)); - z(q, y) || ((m = q), (q = y), (y = m)); - z(r, q) || ((m = r), (r = q), (q = m), (m = p), (p = y), (y = m)); - z(q, p) - ? z(p, y) - ? ((m = aa(r, q, p)), - (w = aa(q, p, y)), - 0 > m + w && ((m = -m), (w = -w)), - (l.a = A(m, q.a, w, p.a))) - : ((m = ba(r, q, p)), - (w = -ba(r, y, p)), - 0 > m + w && ((m = -m), (w = -w)), - (l.a = A(m, q.a, w, y.a))) - : (l.a = (q.a + p.a) / 2); - u(l, a.a) && ((l.b = a.a.b), (l.a = a.a.a)); - r = u(f, g) ? f : g; - u(r, l) && ((l.b = r.b), (l.a = r.a)); - if (t(l, f) || t(l, g)) return qa(a, b), !1; - if ((!t(h, a.a) && 0 <= x(h, a.a, l)) || (!t(k, a.a) && 0 >= x(k, a.a, l))) { - if (k === a.a) - return ( - K(d.b), - E(e.b, d), - (b = ka(b)), - (d = S(b).a), - T(a, S(b), c), - U(a, b, J(d), d, d, !0), - !0 - ); - if (h === a.a) { - K(e.b); - E(d.e, J(e)); - f = c = b; - g = f.a.b.a; - do f = R(f); - while (f.a.b.a === g); - b = f; - f = S(b).a.b.c; - c.a = J(e); - e = T(a, c, null); - U(a, b, e.c, d.b.c, f, !0); - return !0; - } - 0 <= x(h, a.a, l) && - ((R(b).b = b.b = !0), K(d.b), (d.a.b = a.a.b), (d.a.a = a.a.a)); - 0 >= x(k, a.a, l) && - ((b.b = c.b = !0), K(e.b), (e.a.b = a.a.b), (e.a.a = a.a.a)); - return !1; - } - K(d.b); - K(e.b); - E(J(e), d); - d.a.b = l.b; - d.a.a = l.a; - d.a.h = xa(a.e, d.a); - d = d.a; - e = [0, 0, 0, 0]; - l = [f.d, h.d, g.d, k.d]; - d.g[0] = d.g[1] = d.g[2] = 0; - ua(d, f, h, e, 0); - ua(d, g, k, e, 2); - sa(a, d, l, e, !0); - R(b).b = b.b = c.b = !0; - return !1; - } - function ra(a, b) { - for (var c = S(b); ; ) { - for (; c.b; ) (b = c), (c = S(c)); - if (!b.b && ((c = b), (b = R(b)), null === b || !b.b)) break; - b.b = !1; - var d = b.a, - e = c.a, - f; - if ((f = d.b.a !== e.b.a)) - a: { - f = b; - var g = S(f), - h = f.a, - k = g.a, - l = void 0; - if (u(h.b.a, k.b.a)) { - if (0 > x(h.b.a, k.b.a, h.a)) { - f = !1; - break a; - } - R(f).b = f.b = !0; - l = K(h); - E(k.b, l); - l.d.c = f.d; - } else { - if (0 < x(k.b.a, h.b.a, k.a)) { - f = !1; - break a; - } - f.b = g.b = !0; - l = K(k); - E(h.e, k.b); - l.b.d.c = f.d; - } - f = !0; - } - f && - (c.c - ? (Q(c), I(e), (c = S(b)), (e = c.a)) - : b.c && (Q(b), I(d), (b = R(c)), (d = b.a))); - if (d.a !== e.a) - if (d.b.a === e.b.a || b.c || c.c || (d.b.a !== a.a && e.b.a !== a.a)) - qa(a, b); - else if (wa(a, b)) break; - d.a === e.a && d.b.a === e.b.a && (P(e, d), Q(b), I(d), (b = R(c))); - } - } - function ya(a, b) { - a.a = b; - for (var c = b.c; null === c.i; ) - if (((c = c.c), c === b.c)) { - var c = a, - d = b, - e = new ma(); - e.a = d.c.b; - var f = c.f, - g = f.a; - do g = g.a; - while (null !== g.b && !f.c(f.b, e, g.b)); - var f = g.b, - h = S(f), - e = f.a, - g = h.a; - if (0 === x(e.b.a, d, e.a)) - (e = f.a), - t(e.a, d) || - t(e.b.a, d) || - (K(e.b), f.c && (I(e.c), (f.c = !1)), E(d.c, e), ya(c, d)); - else { - var k = u(g.b.a, e.b.a) ? f : h, - h = void 0; - f.d || k.c - ? (k === f ? (h = L(d.c.b, e.e)) : (h = L(g.b.c.b, d.c).b), - k.c - ? ja(k, h) - : ((e = c), - (f = la(c, f, h)), - (f.f = R(f).f + f.a.f), - (f.d = oa(e, f.f))), - ya(c, d)) - : U(c, f, d.c, d.c, null, !0); - } - return; - } - c = ka(c.i); - e = S(c); - f = e.a; - e = T(a, e, null); - if (e.c === f) { - var f = e, - e = f.c, - g = S(c), - h = c.a, - k = g.a, - l = !1; - h.b.a !== k.b.a && wa(a, c); - t(h.a, a.a) && - (E(J(e), h), (c = ka(c)), (e = S(c).a), T(a, S(c), g), (l = !0)); - t(k.a, a.a) && (E(f, J(k)), (f = T(a, g, null)), (l = !0)); - l - ? U(a, c, f.c, e, e, !0) - : (u(k.a, h.a) ? (d = J(k)) : (d = h), - (d = L(f.c.b, d)), - U(a, c, d, d.c, d.c, !1), - (d.b.i.c = !0), - ra(a, c)); - } else U(a, c, e.c, f, f, !0); - } - function za(a, b) { - var c = new ma(), - d = ea(a.b); - d.a.b = O; - d.a.a = b; - d.b.a.b = -O; - d.b.a.a = b; - a.a = d.b.a; - c.a = d; - c.f = 0; - c.d = !1; - c.c = !1; - c.h = !0; - c.b = !1; - d = a.f; - d = na(d, d.a, c); - c.e = d; - } - function Aa(a) { - this.a = new Ba(); - this.b = a; - this.c = ia; - } - function na(a, b, c) { - do b = b.c; - while (null !== b.b && !a.c(a.b, b.b, c)); - a = new Ba(c, b.a, b); - b.a.c = a; - return (b.a = a); - } - function Ba(a, b, c) { - this.b = a || null; - this.a = b || this; - this.c = c || this; - } - function X() { - this.d = Y; - this.p = this.b = this.q = null; - this.j = [0, 0, 0]; - this.s = 100130; - this.n = !1; - this.o = this.a = this.e = this.f = null; - this.m = !1; - this.c = this.r = this.i = this.k = this.l = this.h = null; - } - var Y = 0; - n = X.prototype; - n.x = function() { - Z(this, Y); - }; - n.B = function(a, b) { - switch (a) { - case 100142: - return; - case 100140: - switch (b) { - case 100130: - case 100131: - case 100132: - case 100133: - case 100134: - this.s = b; - return; - } - break; - case 100141: - this.m = !!b; - return; - default: - V(this, 100900); - return; - } - V(this, 100901); - }; - n.y = function(a) { - switch (a) { - case 100142: - return 0; - case 100140: - return this.s; - case 100141: - return this.m; - default: - V(this, 100900); - } - return !1; - }; - n.A = function(a, b, c) { - this.j[0] = a; - this.j[1] = b; - this.j[2] = c; - }; - n.z = function(a, b) { - var c = b ? b : null; - switch (a) { - case 100100: - case 100106: - this.h = c; - break; - case 100104: - case 100110: - this.l = c; - break; - case 100101: - case 100107: - this.k = c; - break; - case 100102: - case 100108: - this.i = c; - break; - case 100103: - case 100109: - this.p = c; - break; - case 100105: - case 100111: - this.o = c; - break; - case 100112: - this.r = c; - break; - default: - V(this, 100900); - } - }; - n.C = function(a, b) { - var c = !1, - d = [0, 0, 0]; - Z(this, 2); - for (var e = 0; 3 > e; ++e) { - var f = a[e]; - -1e150 > f && ((f = -1e150), (c = !0)); - 1e150 < f && ((f = 1e150), (c = !0)); - d[e] = f; - } - c && V(this, 100155); - c = this.q; - null === c ? ((c = ea(this.b)), E(c, c.b)) : (K(c), (c = c.e)); - c.a.d = b; - c.a.g[0] = d[0]; - c.a.g[1] = d[1]; - c.a.g[2] = d[2]; - c.f = 1; - c.b.f = -1; - this.q = c; - }; - n.u = function(a) { - Z(this, Y); - this.d = 1; - this.b = new Ca(); - this.c = a; - }; - n.t = function() { - Z(this, 1); - this.d = 2; - this.q = null; - }; - n.v = function() { - Z(this, 2); - this.d = 1; - }; - n.w = function() { - Z(this, 1); - this.d = Y; - var a = this.j[0], - b = this.j[1], - c = this.j[2], - d = !1, - e = [a, b, c]; - if (0 === a && 0 === b && 0 === c) { - for ( - var b = [-2 * 1e150, -2 * 1e150, -2 * 1e150], - f = [2 * 1e150, 2 * 1e150, 2 * 1e150], - c = [], - g = [], - d = this.b.c, - a = d.e; - a !== d; - a = a.e - ) - for (var h = 0; 3 > h; ++h) { - var k = a.g[h]; - k < f[h] && ((f[h] = k), (g[h] = a)); - k > b[h] && ((b[h] = k), (c[h] = a)); - } - a = 0; - b[1] - f[1] > b[0] - f[0] && (a = 1); - b[2] - f[2] > b[a] - f[a] && (a = 2); - if (f[a] >= b[a]) (e[0] = 0), (e[1] = 0), (e[2] = 1); - else { - b = 0; - f = g[a]; - c = c[a]; - g = [0, 0, 0]; - f = [f.g[0] - c.g[0], f.g[1] - c.g[1], f.g[2] - c.g[2]]; - h = [0, 0, 0]; - for (a = d.e; a !== d; a = a.e) - (h[0] = a.g[0] - c.g[0]), - (h[1] = a.g[1] - c.g[1]), - (h[2] = a.g[2] - c.g[2]), - (g[0] = f[1] * h[2] - f[2] * h[1]), - (g[1] = f[2] * h[0] - f[0] * h[2]), - (g[2] = f[0] * h[1] - f[1] * h[0]), - (k = g[0] * g[0] + g[1] * g[1] + g[2] * g[2]), - k > b && ((b = k), (e[0] = g[0]), (e[1] = g[1]), (e[2] = g[2])); - 0 >= b && ((e[0] = e[1] = e[2] = 0), (e[ha(f)] = 1)); - } - d = !0; - } - g = ha(e); - a = this.b.c; - b = (g + 1) % 3; - c = (g + 2) % 3; - g = 0 < e[g] ? 1 : -1; - for (e = a.e; e !== a; e = e.e) (e.b = e.g[b]), (e.a = g * e.g[c]); - if (d) { - e = 0; - d = this.b.a; - for (a = d.b; a !== d; a = a.b) - if (((b = a.a), !(0 >= b.f))) { - do (e += (b.a.b - b.b.a.b) * (b.a.a + b.b.a.a)), (b = b.e); - while (b !== a.a); - } - if (0 > e) for (e = this.b.c, d = e.e; d !== e; d = d.e) d.a = -d.a; - } - this.n = !1; - e = this.b.b; - for (a = e.h; a !== e; a = d) - if ( - ((d = a.h), - (b = a.e), - t(a.a, a.b.a) && a.e.e !== a && (ta(this, b, a), I(a), (a = b), (b = a.e)), - b.e === a) - ) { - if (b !== a) { - if (b === d || b === d.b) d = d.h; - I(b); - } - if (a === d || a === d.b) d = d.h; - I(a); - } - this.e = e = new Da(); - d = this.b.c; - for (a = d.e; a !== d; a = a.e) a.h = xa(e, a); - Ea(e); - this.f = new Aa(this); - za(this, -O); - for (za(this, O); null !== (e = Fa(this.e)); ) { - for (;;) { - a: if (((a = this.e), 0 === a.a)) d = Ga(a.b); - else if ( - ((d = a.c[a.d[a.a - 1]]), 0 !== a.b.a && ((a = Ga(a.b)), u(a, d))) - ) { - d = a; - break a; - } - if (null === d || !t(d, e)) break; - d = Fa(this.e); - ta(this, e.c, d.c); - } - ya(this, e); - } - this.a = this.f.a.a.b.a.a; - for (e = 0; null !== (d = this.f.a.a.b); ) d.h || ++e, Q(d); - this.f = null; - e = this.e; - e.b = null; - e.d = null; - this.e = e.c = null; - e = this.b; - for (a = e.a.b; a !== e.a; a = d) - (d = a.b), (a = a.a), a.e.e === a && (P(a.c, a), I(a)); - if (!this.n) { - e = this.b; - if (this.m) - for (a = e.b.h; a !== e.b; a = d) - (d = a.h), a.b.d.c !== a.d.c ? (a.f = a.d.c ? 1 : -1) : I(a); - else - for (a = e.a.b; a !== e.a; a = d) - if (((d = a.b), a.c)) { - for (a = a.a; u(a.b.a, a.a); a = a.c.b); - for (; u(a.a, a.b.a); a = a.e); - b = a.c.b; - for (c = void 0; a.e !== b; ) - if (u(a.b.a, b.a)) { - for (; b.e !== a && (ca(b.e) || 0 >= x(b.a, b.b.a, b.e.b.a)); ) - (c = L(b.e, b)), (b = c.b); - b = b.c.b; - } else { - for (; b.e !== a && (da(a.c.b) || 0 <= x(a.b.a, a.a, a.c.b.a)); ) - (c = L(a, a.c.b)), (a = c.b); - a = a.e; - } - for (; b.e.e !== a; ) (c = L(b.e, b)), (b = c.b); - } - if (this.h || this.i || this.k || this.l) - if (this.m) - for (e = this.b, d = e.a.b; d !== e.a; d = d.b) { - if (d.c) { - this.h && this.h(2, this.c); - a = d.a; - do this.k && this.k(a.a.d, this.c), (a = a.e); - while (a !== d.a); - this.i && this.i(this.c); - } - } - else { - e = this.b; - d = !!this.l; - a = !1; - b = -1; - for (c = e.a.d; c !== e.a; c = c.d) - if (c.c) { - a || (this.h && this.h(4, this.c), (a = !0)); - g = c.a; - do - d && - ((f = g.b.d.c ? 0 : 1), - b !== f && ((b = f), this.l && this.l(!!b, this.c))), - this.k && this.k(g.a.d, this.c), - (g = g.e); - while (g !== c.a); - } - a && this.i && this.i(this.c); - } - if (this.r) { - e = this.b; - for (a = e.a.b; a !== e.a; a = d) - if (((d = a.b), !a.c)) { - b = a.a; - c = b.e; - g = void 0; - do - (g = c), - (c = g.e), - (g.d = null), - null === g.b.d && - (g.c === g ? F(g.a, null) : ((g.a.c = g.c), H(g, J(g))), - (f = g.b), - f.c === f ? F(f.a, null) : ((f.a.c = f.c), H(f, J(f))), - fa(g)); - while (g !== b); - b = a.d; - a = a.b; - a.d = b; - b.b = a; - } - this.r(this.b); - this.c = this.b = null; - return; - } - } - this.b = this.c = null; - }; - function Z(a, b) { - if (a.d !== b) - for (; a.d !== b; ) - if (a.d < b) - switch (a.d) { - case Y: - V(a, 100151); - a.u(null); - break; - case 1: - V(a, 100152), a.t(); - } - else - switch (a.d) { - case 2: - V(a, 100154); - a.v(); - break; - case 1: - V(a, 100153), a.w(); - } - } - function V(a, b) { - a.p && a.p(b, a.c); - } - function ga(a, b) { - this.b = a || this; - this.d = b || this; - this.a = null; - this.c = !1; - } - function M() { - this.h = this; - this.i = this.d = this.a = this.e = this.c = this.b = null; - this.f = 0; - } - function J(a) { - return a.b.e; - } - function Ca() { - this.c = new N(); - this.a = new ga(); - this.b = new M(); - this.d = new M(); - this.b.b = this.d; - this.d.b = this.b; - } - function N(a, b) { - this.e = a || this; - this.f = b || this; - this.d = this.c = null; - this.g = [0, 0, 0]; - this.h = this.a = this.b = 0; - } - function Da() { - this.c = []; - this.d = null; - this.a = 0; - this.e = !1; - this.b = new Ha(); - } - function Ea(a) { - a.d = []; - for (var b = 0; b < a.a; b++) a.d[b] = b; - a.d.sort( - (function(a) { - return function(b, e) { - return u(a[b], a[e]) ? 1 : -1; - }; - })(a.c) - ); - a.e = !0; - Ia(a.b); - } - function xa(a, b) { - if (a.e) { - var c = a.b, - d = ++c.a; - 2 * d > c.f && ((c.f *= 2), (c.c = Ja(c.c, c.f + 1))); - var e; - 0 === c.b ? (e = d) : ((e = c.b), (c.b = c.c[c.b])); - c.e[e] = b; - c.c[e] = d; - c.d[d] = e; - c.h && va(c, d); - return e; - } - c = a.a++; - a.c[c] = b; - return -(c + 1); - } - function Fa(a) { - if (0 === a.a) return Ka(a.b); - var b = a.c[a.d[a.a - 1]]; - if (0 !== a.b.a && u(Ga(a.b), b)) return Ka(a.b); - do --a.a; - while (0 < a.a && null === a.c[a.d[a.a - 1]]); - return b; - } - function Ha() { - this.d = Ja([0], 33); - this.e = [null, null]; - this.c = [0, 0]; - this.a = 0; - this.f = 32; - this.b = 0; - this.h = !1; - this.d[1] = 1; - } - function Ja(a, b) { - for (var c = Array(b), d = 0; d < a.length; d++) c[d] = a[d]; - for (; d < b; d++) c[d] = 0; - return c; - } - function Ia(a) { - for (var b = a.a; 1 <= b; --b) W(a, b); - a.h = !0; - } - function Ga(a) { - return a.e[a.d[1]]; - } - function Ka(a) { - var b = a.d, - c = a.e, - d = a.c, - e = b[1], - f = c[e]; - 0 < a.a && - ((b[1] = b[a.a]), - (d[b[1]] = 1), - (c[e] = null), - (d[e] = a.b), - (a.b = e), - 0 < --a.a && W(a, 1)); - return f; - } - function W(a, b) { - for (var c = a.d, d = a.e, e = a.c, f = b, g = c[f]; ; ) { - var h = f << 1; - h < a.a && u(d[c[h + 1]], d[c[h]]) && (h += 1); - var k = c[h]; - if (h > a.a || u(d[g], d[k])) { - c[f] = g; - e[g] = f; - break; - } - c[f] = k; - e[k] = f; - f = h; - } - } - function va(a, b) { - for (var c = a.d, d = a.e, e = a.c, f = b, g = c[f]; ; ) { - var h = f >> 1, - k = c[h]; - if (0 === h || u(d[k], d[g])) { - c[f] = g; - e[g] = f; - break; - } - c[f] = k; - e[k] = f; - f = h; - } - } - function ma() { - this.e = this.a = null; - this.f = 0; - this.c = this.b = this.h = this.d = !1; - } - function S(a) { - return a.e.c.b; - } - function R(a) { - return a.e.a.b; - } - this.libtess = { - GluTesselator: X, - windingRule: { - GLU_TESS_WINDING_ODD: 100130, - GLU_TESS_WINDING_NONZERO: 100131, - GLU_TESS_WINDING_POSITIVE: 100132, - GLU_TESS_WINDING_NEGATIVE: 100133, - GLU_TESS_WINDING_ABS_GEQ_TWO: 100134 - }, - primitiveType: { - GL_LINE_LOOP: 2, - GL_TRIANGLES: 4, - GL_TRIANGLE_STRIP: 5, - GL_TRIANGLE_FAN: 6 - }, - errorType: { - GLU_TESS_MISSING_BEGIN_POLYGON: 100151, - GLU_TESS_MISSING_END_POLYGON: 100153, - GLU_TESS_MISSING_BEGIN_CONTOUR: 100152, - GLU_TESS_MISSING_END_CONTOUR: 100154, - GLU_TESS_COORD_TOO_LARGE: 100155, - GLU_TESS_NEED_COMBINE_CALLBACK: 100156 - }, - gluEnum: { - GLU_TESS_MESH: 100112, - GLU_TESS_TOLERANCE: 100142, - GLU_TESS_WINDING_RULE: 100140, - GLU_TESS_BOUNDARY_ONLY: 100141, - GLU_INVALID_ENUM: 100900, - GLU_INVALID_VALUE: 100901, - GLU_TESS_BEGIN: 100100, - GLU_TESS_VERTEX: 100101, - GLU_TESS_END: 100102, - GLU_TESS_ERROR: 100103, - GLU_TESS_EDGE_FLAG: 100104, - GLU_TESS_COMBINE: 100105, - GLU_TESS_BEGIN_DATA: 100106, - GLU_TESS_VERTEX_DATA: 100107, - GLU_TESS_END_DATA: 100108, - GLU_TESS_ERROR_DATA: 100109, - GLU_TESS_EDGE_FLAG_DATA: 100110, - GLU_TESS_COMBINE_DATA: 100111 - } - }; - X.prototype.gluDeleteTess = X.prototype.x; - X.prototype.gluTessProperty = X.prototype.B; - X.prototype.gluGetTessProperty = X.prototype.y; - X.prototype.gluTessNormal = X.prototype.A; - X.prototype.gluTessCallback = X.prototype.z; - X.prototype.gluTessVertex = X.prototype.C; - X.prototype.gluTessBeginPolygon = X.prototype.u; - X.prototype.gluTessBeginContour = X.prototype.t; - X.prototype.gluTessEndContour = X.prototype.v; - X.prototype.gluTessEndPolygon = X.prototype.w; - if (typeof module !== 'undefined') { - module.exports = this.libtess; - } - }, - {} - ], - 10: [ - function(_dereq_, module, exports) { - (function(Buffer) { - /** - * https://opentype.js.org v0.9.0 | (c) Frederik De Bleser and other contributors | MIT License | Uses tiny-inflate by Devon Govett and string.prototype.codepointat polyfill by Mathias Bynens - */ - - (function(global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' - ? factory(exports) - : typeof define === 'function' && define.amd - ? define(['exports'], factory) - : factory((global.opentype = {})); - })(this, function(exports) { - 'use strict'; - - /*! https://mths.be/codepointat v0.2.0 by @mathias */ - if (!String.prototype.codePointAt) { - (function() { - var defineProperty = (function() { - // IE 8 only supports `Object.defineProperty` on DOM elements - try { - var object = {}; - var $defineProperty = Object.defineProperty; - var result = - $defineProperty(object, object, object) && $defineProperty; - } catch (error) {} - return result; - })(); - var codePointAt = function(position) { - if (this == null) { - throw TypeError(); - } - var string = String(this); - var size = string.length; - // `ToInteger` - var index = position ? Number(position) : 0; - if (index != index) { - // better `isNaN` - index = 0; - } - // Account for out-of-bounds indices: - if (index < 0 || index >= size) { - return undefined; - } - // Get the first code unit - var first = string.charCodeAt(index); - var second; - if ( - // check if itโ€™s the start of a surrogate pair - first >= 0xd800 && - first <= 0xdbff && // high surrogate - size > index + 1 // there is a next code unit - ) { - second = string.charCodeAt(index + 1); - if (second >= 0xdc00 && second <= 0xdfff) { - // low surrogate - // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - return (first - 0xd800) * 0x400 + second - 0xdc00 + 0x10000; - } - } - return first; - }; - if (defineProperty) { - defineProperty(String.prototype, 'codePointAt', { - value: codePointAt, - configurable: true, - writable: true - }); - } else { - String.prototype.codePointAt = codePointAt; - } - })(); - } - - var TINF_OK = 0; - var TINF_DATA_ERROR = -3; - - function Tree() { - this.table = new Uint16Array(16); /* table of code length counts */ - this.trans = new Uint16Array(288); /* code -> symbol translation table */ - } - - function Data(source, dest) { - this.source = source; - this.sourceIndex = 0; - this.tag = 0; - this.bitcount = 0; - - this.dest = dest; - this.destLen = 0; - - this.ltree = new Tree(); /* dynamic length/symbol tree */ - this.dtree = new Tree(); /* dynamic distance tree */ - } - - /* --------------------------------------------------- * - * -- uninitialized global data (static structures) -- * - * --------------------------------------------------- */ - - var sltree = new Tree(); - var sdtree = new Tree(); - - /* extra bits and base tables for length codes */ - var length_bits = new Uint8Array(30); - var length_base = new Uint16Array(30); - - /* extra bits and base tables for distance codes */ - var dist_bits = new Uint8Array(30); - var dist_base = new Uint16Array(30); - - /* special ordering of code length codes */ - var clcidx = new Uint8Array([ - 16, - 17, - 18, - 0, - 8, - 7, - 9, - 6, - 10, - 5, - 11, - 4, - 12, - 3, - 13, - 2, - 14, - 1, - 15 - ]); - - /* used by tinf_decode_trees, avoids allocations every call */ - var code_tree = new Tree(); - var lengths = new Uint8Array(288 + 32); - - /* ----------------------- * - * -- utility functions -- * - * ----------------------- */ - - /* build extra bits and base tables */ - function tinf_build_bits_base(bits, base, delta, first) { - var i, sum; - - /* build bits table */ - for (i = 0; i < delta; ++i) { - bits[i] = 0; - } - for (i = 0; i < 30 - delta; ++i) { - bits[i + delta] = (i / delta) | 0; - } - - /* build base table */ - for (sum = first, i = 0; i < 30; ++i) { - base[i] = sum; - sum += 1 << bits[i]; - } - } - - /* build the fixed huffman trees */ - function tinf_build_fixed_trees(lt, dt) { - var i; - - /* build fixed length tree */ - for (i = 0; i < 7; ++i) { - lt.table[i] = 0; - } - - lt.table[7] = 24; - lt.table[8] = 152; - lt.table[9] = 112; - - for (i = 0; i < 24; ++i) { - lt.trans[i] = 256 + i; - } - for (i = 0; i < 144; ++i) { - lt.trans[24 + i] = i; - } - for (i = 0; i < 8; ++i) { - lt.trans[24 + 144 + i] = 280 + i; - } - for (i = 0; i < 112; ++i) { - lt.trans[24 + 144 + 8 + i] = 144 + i; - } - - /* build fixed distance tree */ - for (i = 0; i < 5; ++i) { - dt.table[i] = 0; - } - - dt.table[5] = 32; - - for (i = 0; i < 32; ++i) { - dt.trans[i] = i; - } - } - - /* given an array of code lengths, build a tree */ - var offs = new Uint16Array(16); - - function tinf_build_tree(t, lengths, off, num) { - var i, sum; - - /* clear code length count table */ - for (i = 0; i < 16; ++i) { - t.table[i] = 0; - } - - /* scan symbol lengths, and sum code length counts */ - for (i = 0; i < num; ++i) { - t.table[lengths[off + i]]++; - } - - t.table[0] = 0; - - /* compute offset table for distribution sort */ - for (sum = 0, i = 0; i < 16; ++i) { - offs[i] = sum; - sum += t.table[i]; - } - - /* create code->symbol translation table (symbols sorted by code) */ - for (i = 0; i < num; ++i) { - if (lengths[off + i]) { - t.trans[offs[lengths[off + i]]++] = i; - } - } - } - - /* ---------------------- * - * -- decode functions -- * - * ---------------------- */ - - /* get one bit from source stream */ - function tinf_getbit(d) { - /* check if tag is empty */ - if (!d.bitcount--) { - /* load next tag */ - d.tag = d.source[d.sourceIndex++]; - d.bitcount = 7; - } - - /* shift bit out of tag */ - var bit = d.tag & 1; - d.tag >>>= 1; - - return bit; - } - - /* read a num bit value from a stream and add base */ - function tinf_read_bits(d, num, base) { - if (!num) { - return base; - } - - while (d.bitcount < 24) { - d.tag |= d.source[d.sourceIndex++] << d.bitcount; - d.bitcount += 8; - } - - var val = d.tag & (0xffff >>> (16 - num)); - d.tag >>>= num; - d.bitcount -= num; - return val + base; - } - - /* given a data stream and a tree, decode a symbol */ - function tinf_decode_symbol(d, t) { - while (d.bitcount < 24) { - d.tag |= d.source[d.sourceIndex++] << d.bitcount; - d.bitcount += 8; - } - - var sum = 0, - cur = 0, - len = 0; - var tag = d.tag; - - /* get more bits while code value is above sum */ - do { - cur = 2 * cur + (tag & 1); - tag >>>= 1; - ++len; - - sum += t.table[len]; - cur -= t.table[len]; - } while (cur >= 0); - - d.tag = tag; - d.bitcount -= len; - - return t.trans[sum + cur]; - } - - /* given a data stream, decode dynamic trees from it */ - function tinf_decode_trees(d, lt, dt) { - var hlit, hdist, hclen; - var i, num, length; - - /* get 5 bits HLIT (257-286) */ - hlit = tinf_read_bits(d, 5, 257); - - /* get 5 bits HDIST (1-32) */ - hdist = tinf_read_bits(d, 5, 1); - - /* get 4 bits HCLEN (4-19) */ - hclen = tinf_read_bits(d, 4, 4); - - for (i = 0; i < 19; ++i) { - lengths[i] = 0; - } - - /* read code lengths for code length alphabet */ - for (i = 0; i < hclen; ++i) { - /* get 3 bits code length (0-7) */ - var clen = tinf_read_bits(d, 3, 0); - lengths[clcidx[i]] = clen; - } - - /* build code length tree */ - tinf_build_tree(code_tree, lengths, 0, 19); - - /* decode code lengths for the dynamic trees */ - for (num = 0; num < hlit + hdist; ) { - var sym = tinf_decode_symbol(d, code_tree); - - switch (sym) { - case 16: - /* copy previous code length 3-6 times (read 2 bits) */ - var prev = lengths[num - 1]; - for (length = tinf_read_bits(d, 2, 3); length; --length) { - lengths[num++] = prev; - } - break; - case 17: - /* repeat code length 0 for 3-10 times (read 3 bits) */ - for (length = tinf_read_bits(d, 3, 3); length; --length) { - lengths[num++] = 0; - } - break; - case 18: - /* repeat code length 0 for 11-138 times (read 7 bits) */ - for (length = tinf_read_bits(d, 7, 11); length; --length) { - lengths[num++] = 0; - } - break; - default: - /* values 0-15 represent the actual code lengths */ - lengths[num++] = sym; - break; - } - } - - /* build dynamic trees */ - tinf_build_tree(lt, lengths, 0, hlit); - tinf_build_tree(dt, lengths, hlit, hdist); - } - - /* ----------------------------- * - * -- block inflate functions -- * - * ----------------------------- */ - - /* given a stream and two trees, inflate a block of data */ - function tinf_inflate_block_data(d, lt, dt) { - while (1) { - var sym = tinf_decode_symbol(d, lt); - - /* check for end of block */ - if (sym === 256) { - return TINF_OK; - } - - if (sym < 256) { - d.dest[d.destLen++] = sym; - } else { - var length, dist, offs; - var i; - - sym -= 257; - - /* possibly get more bits from length code */ - length = tinf_read_bits(d, length_bits[sym], length_base[sym]); - - dist = tinf_decode_symbol(d, dt); - - /* possibly get more bits from distance code */ - offs = d.destLen - tinf_read_bits(d, dist_bits[dist], dist_base[dist]); - - /* copy match */ - for (i = offs; i < offs + length; ++i) { - d.dest[d.destLen++] = d.dest[i]; - } - } - } - } - - /* inflate an uncompressed block of data */ - function tinf_inflate_uncompressed_block(d) { - var length, invlength; - var i; - - /* unread from bitbuffer */ - while (d.bitcount > 8) { - d.sourceIndex--; - d.bitcount -= 8; - } - - /* get length */ - length = d.source[d.sourceIndex + 1]; - length = 256 * length + d.source[d.sourceIndex]; - - /* get one's complement of length */ - invlength = d.source[d.sourceIndex + 3]; - invlength = 256 * invlength + d.source[d.sourceIndex + 2]; - - /* check length */ - if (length !== (~invlength & 0x0000ffff)) { - return TINF_DATA_ERROR; - } - - d.sourceIndex += 4; - - /* copy block */ - for (i = length; i; --i) { - d.dest[d.destLen++] = d.source[d.sourceIndex++]; - } - - /* make sure we start next block on a byte boundary */ - d.bitcount = 0; - - return TINF_OK; - } - - /* inflate stream from source to dest */ - function tinf_uncompress(source, dest) { - var d = new Data(source, dest); - var bfinal, btype, res; - - do { - /* read final block flag */ - bfinal = tinf_getbit(d); - - /* read block type (2 bits) */ - btype = tinf_read_bits(d, 2, 0); - - /* decompress block */ - switch (btype) { - case 0: - /* decompress uncompressed block */ - res = tinf_inflate_uncompressed_block(d); - break; - case 1: - /* decompress block with fixed huffman trees */ - res = tinf_inflate_block_data(d, sltree, sdtree); - break; - case 2: - /* decompress block with dynamic huffman trees */ - tinf_decode_trees(d, d.ltree, d.dtree); - res = tinf_inflate_block_data(d, d.ltree, d.dtree); - break; - default: - res = TINF_DATA_ERROR; - } - - if (res !== TINF_OK) { - throw new Error('Data error'); - } - } while (!bfinal); - - if (d.destLen < d.dest.length) { - if (typeof d.dest.slice === 'function') { - return d.dest.slice(0, d.destLen); - } else { - return d.dest.subarray(0, d.destLen); - } - } - - return d.dest; - } - - /* -------------------- * - * -- initialization -- * - * -------------------- */ - - /* build fixed huffman trees */ - tinf_build_fixed_trees(sltree, sdtree); - - /* build extra bits and base tables */ - tinf_build_bits_base(length_bits, length_base, 4, 3); - tinf_build_bits_base(dist_bits, dist_base, 2, 1); - - /* fix a special case */ - length_bits[28] = 0; - length_base[28] = 258; - - var tinyInflate = tinf_uncompress; - - // The Bounding Box object - - function derive(v0, v1, v2, v3, t) { - return ( - Math.pow(1 - t, 3) * v0 + - 3 * Math.pow(1 - t, 2) * t * v1 + - 3 * (1 - t) * Math.pow(t, 2) * v2 + - Math.pow(t, 3) * v3 - ); - } - /** - * A bounding box is an enclosing box that describes the smallest measure within which all the points lie. - * It is used to calculate the bounding box of a glyph or text path. - * - * On initialization, x1/y1/x2/y2 will be NaN. Check if the bounding box is empty using `isEmpty()`. - * - * @exports opentype.BoundingBox - * @class - * @constructor - */ - function BoundingBox() { - this.x1 = Number.NaN; - this.y1 = Number.NaN; - this.x2 = Number.NaN; - this.y2 = Number.NaN; - } - - /** - * Returns true if the bounding box is empty, that is, no points have been added to the box yet. - */ - BoundingBox.prototype.isEmpty = function() { - return isNaN(this.x1) || isNaN(this.y1) || isNaN(this.x2) || isNaN(this.y2); - }; - - /** - * Add the point to the bounding box. - * The x1/y1/x2/y2 coordinates of the bounding box will now encompass the given point. - * @param {number} x - The X coordinate of the point. - * @param {number} y - The Y coordinate of the point. - */ - BoundingBox.prototype.addPoint = function(x, y) { - if (typeof x === 'number') { - if (isNaN(this.x1) || isNaN(this.x2)) { - this.x1 = x; - this.x2 = x; - } - if (x < this.x1) { - this.x1 = x; - } - if (x > this.x2) { - this.x2 = x; - } - } - if (typeof y === 'number') { - if (isNaN(this.y1) || isNaN(this.y2)) { - this.y1 = y; - this.y2 = y; - } - if (y < this.y1) { - this.y1 = y; - } - if (y > this.y2) { - this.y2 = y; - } - } - }; - - /** - * Add a X coordinate to the bounding box. - * This extends the bounding box to include the X coordinate. - * This function is used internally inside of addBezier. - * @param {number} x - The X coordinate of the point. - */ - BoundingBox.prototype.addX = function(x) { - this.addPoint(x, null); - }; - - /** - * Add a Y coordinate to the bounding box. - * This extends the bounding box to include the Y coordinate. - * This function is used internally inside of addBezier. - * @param {number} y - The Y coordinate of the point. - */ - BoundingBox.prototype.addY = function(y) { - this.addPoint(null, y); - }; - - /** - * Add a Bรฉzier curve to the bounding box. - * This extends the bounding box to include the entire Bรฉzier. - * @param {number} x0 - The starting X coordinate. - * @param {number} y0 - The starting Y coordinate. - * @param {number} x1 - The X coordinate of the first control point. - * @param {number} y1 - The Y coordinate of the first control point. - * @param {number} x2 - The X coordinate of the second control point. - * @param {number} y2 - The Y coordinate of the second control point. - * @param {number} x - The ending X coordinate. - * @param {number} y - The ending Y coordinate. - */ - BoundingBox.prototype.addBezier = function(x0, y0, x1, y1, x2, y2, x, y) { - var this$1 = this; - - // This code is based on http://nishiohirokazu.blogspot.com/2009/06/how-to-calculate-bezier-curves-bounding.html - // and https://github.com/icons8/svg-path-bounding-box - - var p0 = [x0, y0]; - var p1 = [x1, y1]; - var p2 = [x2, y2]; - var p3 = [x, y]; - - this.addPoint(x0, y0); - this.addPoint(x, y); - - for (var i = 0; i <= 1; i++) { - var b = 6 * p0[i] - 12 * p1[i] + 6 * p2[i]; - var a = -3 * p0[i] + 9 * p1[i] - 9 * p2[i] + 3 * p3[i]; - var c = 3 * p1[i] - 3 * p0[i]; - - if (a === 0) { - if (b === 0) { - continue; - } - var t = -c / b; - if (0 < t && t < 1) { - if (i === 0) { - this$1.addX(derive(p0[i], p1[i], p2[i], p3[i], t)); - } - if (i === 1) { - this$1.addY(derive(p0[i], p1[i], p2[i], p3[i], t)); - } - } - continue; - } - - var b2ac = Math.pow(b, 2) - 4 * c * a; - if (b2ac < 0) { - continue; - } - var t1 = (-b + Math.sqrt(b2ac)) / (2 * a); - if (0 < t1 && t1 < 1) { - if (i === 0) { - this$1.addX(derive(p0[i], p1[i], p2[i], p3[i], t1)); - } - if (i === 1) { - this$1.addY(derive(p0[i], p1[i], p2[i], p3[i], t1)); - } - } - var t2 = (-b - Math.sqrt(b2ac)) / (2 * a); - if (0 < t2 && t2 < 1) { - if (i === 0) { - this$1.addX(derive(p0[i], p1[i], p2[i], p3[i], t2)); - } - if (i === 1) { - this$1.addY(derive(p0[i], p1[i], p2[i], p3[i], t2)); - } - } - } - }; - - /** - * Add a quadratic curve to the bounding box. - * This extends the bounding box to include the entire quadratic curve. - * @param {number} x0 - The starting X coordinate. - * @param {number} y0 - The starting Y coordinate. - * @param {number} x1 - The X coordinate of the control point. - * @param {number} y1 - The Y coordinate of the control point. - * @param {number} x - The ending X coordinate. - * @param {number} y - The ending Y coordinate. - */ - BoundingBox.prototype.addQuad = function(x0, y0, x1, y1, x, y) { - var cp1x = x0 + 2 / 3 * (x1 - x0); - var cp1y = y0 + 2 / 3 * (y1 - y0); - var cp2x = cp1x + 1 / 3 * (x - x0); - var cp2y = cp1y + 1 / 3 * (y - y0); - this.addBezier(x0, y0, cp1x, cp1y, cp2x, cp2y, x, y); - }; - - // Geometric objects - - /** - * A bรฉzier path containing a set of path commands similar to a SVG path. - * Paths can be drawn on a context using `draw`. - * @exports opentype.Path - * @class - * @constructor - */ - function Path() { - this.commands = []; - this.fill = 'black'; - this.stroke = null; - this.strokeWidth = 1; - } - - /** - * @param {number} x - * @param {number} y - */ - Path.prototype.moveTo = function(x, y) { - this.commands.push({ - type: 'M', - x: x, - y: y - }); - }; - - /** - * @param {number} x - * @param {number} y - */ - Path.prototype.lineTo = function(x, y) { - this.commands.push({ - type: 'L', - x: x, - y: y - }); - }; - - /** - * Draws cubic curve - * @function - * curveTo - * @memberof opentype.Path.prototype - * @param {number} x1 - x of control 1 - * @param {number} y1 - y of control 1 - * @param {number} x2 - x of control 2 - * @param {number} y2 - y of control 2 - * @param {number} x - x of path point - * @param {number} y - y of path point - */ - - /** - * Draws cubic curve - * @function - * bezierCurveTo - * @memberof opentype.Path.prototype - * @param {number} x1 - x of control 1 - * @param {number} y1 - y of control 1 - * @param {number} x2 - x of control 2 - * @param {number} y2 - y of control 2 - * @param {number} x - x of path point - * @param {number} y - y of path point - * @see curveTo - */ - Path.prototype.curveTo = Path.prototype.bezierCurveTo = function( - x1, - y1, - x2, - y2, - x, - y - ) { - this.commands.push({ - type: 'C', - x1: x1, - y1: y1, - x2: x2, - y2: y2, - x: x, - y: y - }); - }; - - /** - * Draws quadratic curve - * @function - * quadraticCurveTo - * @memberof opentype.Path.prototype - * @param {number} x1 - x of control - * @param {number} y1 - y of control - * @param {number} x - x of path point - * @param {number} y - y of path point - */ - - /** - * Draws quadratic curve - * @function - * quadTo - * @memberof opentype.Path.prototype - * @param {number} x1 - x of control - * @param {number} y1 - y of control - * @param {number} x - x of path point - * @param {number} y - y of path point - */ - Path.prototype.quadTo = Path.prototype.quadraticCurveTo = function( - x1, - y1, - x, - y - ) { - this.commands.push({ - type: 'Q', - x1: x1, - y1: y1, - x: x, - y: y - }); - }; - - /** - * Closes the path - * @function closePath - * @memberof opentype.Path.prototype - */ - - /** - * Close the path - * @function close - * @memberof opentype.Path.prototype - */ - Path.prototype.close = Path.prototype.closePath = function() { - this.commands.push({ - type: 'Z' - }); - }; - - /** - * Add the given path or list of commands to the commands of this path. - * @param {Array} pathOrCommands - another opentype.Path, an opentype.BoundingBox, or an array of commands. - */ - Path.prototype.extend = function(pathOrCommands) { - if (pathOrCommands.commands) { - pathOrCommands = pathOrCommands.commands; - } else if (pathOrCommands instanceof BoundingBox) { - var box = pathOrCommands; - this.moveTo(box.x1, box.y1); - this.lineTo(box.x2, box.y1); - this.lineTo(box.x2, box.y2); - this.lineTo(box.x1, box.y2); - this.close(); - return; - } - - Array.prototype.push.apply(this.commands, pathOrCommands); - }; - - /** - * Calculate the bounding box of the path. - * @returns {opentype.BoundingBox} - */ - Path.prototype.getBoundingBox = function() { - var this$1 = this; - - var box = new BoundingBox(); - - var startX = 0; - var startY = 0; - var prevX = 0; - var prevY = 0; - for (var i = 0; i < this.commands.length; i++) { - var cmd = this$1.commands[i]; - switch (cmd.type) { - case 'M': - box.addPoint(cmd.x, cmd.y); - startX = prevX = cmd.x; - startY = prevY = cmd.y; - break; - case 'L': - box.addPoint(cmd.x, cmd.y); - prevX = cmd.x; - prevY = cmd.y; - break; - case 'Q': - box.addQuad(prevX, prevY, cmd.x1, cmd.y1, cmd.x, cmd.y); - prevX = cmd.x; - prevY = cmd.y; - break; - case 'C': - box.addBezier( - prevX, - prevY, - cmd.x1, - cmd.y1, - cmd.x2, - cmd.y2, - cmd.x, - cmd.y - ); - prevX = cmd.x; - prevY = cmd.y; - break; - case 'Z': - prevX = startX; - prevY = startY; - break; - default: - throw new Error('Unexpected path command ' + cmd.type); - } - } - if (box.isEmpty()) { - box.addPoint(0, 0); - } - return box; - }; - - /** - * Draw the path to a 2D context. - * @param {CanvasRenderingContext2D} ctx - A 2D drawing context. - */ - Path.prototype.draw = function(ctx) { - var this$1 = this; - - ctx.beginPath(); - for (var i = 0; i < this.commands.length; i += 1) { - var cmd = this$1.commands[i]; - if (cmd.type === 'M') { - ctx.moveTo(cmd.x, cmd.y); - } else if (cmd.type === 'L') { - ctx.lineTo(cmd.x, cmd.y); - } else if (cmd.type === 'C') { - ctx.bezierCurveTo(cmd.x1, cmd.y1, cmd.x2, cmd.y2, cmd.x, cmd.y); - } else if (cmd.type === 'Q') { - ctx.quadraticCurveTo(cmd.x1, cmd.y1, cmd.x, cmd.y); - } else if (cmd.type === 'Z') { - ctx.closePath(); - } - } - - if (this.fill) { - ctx.fillStyle = this.fill; - ctx.fill(); - } - - if (this.stroke) { - ctx.strokeStyle = this.stroke; - ctx.lineWidth = this.strokeWidth; - ctx.stroke(); - } - }; - - /** - * Convert the Path to a string of path data instructions - * See http://www.w3.org/TR/SVG/paths.html#PathData - * @param {number} [decimalPlaces=2] - The amount of decimal places for floating-point values - * @return {string} - */ - Path.prototype.toPathData = function(decimalPlaces) { - var this$1 = this; - - decimalPlaces = decimalPlaces !== undefined ? decimalPlaces : 2; - - function floatToString(v) { - if (Math.round(v) === v) { - return '' + Math.round(v); - } else { - return v.toFixed(decimalPlaces); - } - } - - function packValues() { - var arguments$1 = arguments; - - var s = ''; - for (var i = 0; i < arguments.length; i += 1) { - var v = arguments$1[i]; - if (v >= 0 && i > 0) { - s += ' '; - } - - s += floatToString(v); - } - - return s; - } - - var d = ''; - for (var i = 0; i < this.commands.length; i += 1) { - var cmd = this$1.commands[i]; - if (cmd.type === 'M') { - d += 'M' + packValues(cmd.x, cmd.y); - } else if (cmd.type === 'L') { - d += 'L' + packValues(cmd.x, cmd.y); - } else if (cmd.type === 'C') { - d += 'C' + packValues(cmd.x1, cmd.y1, cmd.x2, cmd.y2, cmd.x, cmd.y); - } else if (cmd.type === 'Q') { - d += 'Q' + packValues(cmd.x1, cmd.y1, cmd.x, cmd.y); - } else if (cmd.type === 'Z') { - d += 'Z'; - } - } - - return d; - }; - - /** - * Convert the path to an SVG element, as a string. - * @param {number} [decimalPlaces=2] - The amount of decimal places for floating-point values - * @return {string} - */ - Path.prototype.toSVG = function(decimalPlaces) { - var svg = '= 0 && v <= 255, - 'Byte value should be between 0 and 255.' - ); - return [v]; - }; - /** - * @constant - * @type {number} - */ - sizeOf.BYTE = constant(1); - - /** - * Convert a 8-bit signed integer to a list of 1 byte. - * @param {string} - * @returns {Array} - */ - encode.CHAR = function(v) { - return [v.charCodeAt(0)]; - }; - - /** - * @constant - * @type {number} - */ - sizeOf.CHAR = constant(1); - - /** - * Convert an ASCII string to a list of bytes. - * @param {string} - * @returns {Array} - */ - encode.CHARARRAY = function(v) { - var b = []; - for (var i = 0; i < v.length; i += 1) { - b[i] = v.charCodeAt(i); - } - - return b; - }; - - /** - * @param {Array} - * @returns {number} - */ - sizeOf.CHARARRAY = function(v) { - return v.length; - }; - - /** - * Convert a 16-bit unsigned integer to a list of 2 bytes. - * @param {number} - * @returns {Array} - */ - encode.USHORT = function(v) { - return [(v >> 8) & 0xff, v & 0xff]; - }; - - /** - * @constant - * @type {number} - */ - sizeOf.USHORT = constant(2); - - /** - * Convert a 16-bit signed integer to a list of 2 bytes. - * @param {number} - * @returns {Array} - */ - encode.SHORT = function(v) { - // Two's complement - if (v >= LIMIT16) { - v = -(2 * LIMIT16 - v); - } - - return [(v >> 8) & 0xff, v & 0xff]; - }; - - /** - * @constant - * @type {number} - */ - sizeOf.SHORT = constant(2); - - /** - * Convert a 24-bit unsigned integer to a list of 3 bytes. - * @param {number} - * @returns {Array} - */ - encode.UINT24 = function(v) { - return [(v >> 16) & 0xff, (v >> 8) & 0xff, v & 0xff]; - }; - - /** - * @constant - * @type {number} - */ - sizeOf.UINT24 = constant(3); - - /** - * Convert a 32-bit unsigned integer to a list of 4 bytes. - * @param {number} - * @returns {Array} - */ - encode.ULONG = function(v) { - return [(v >> 24) & 0xff, (v >> 16) & 0xff, (v >> 8) & 0xff, v & 0xff]; - }; - - /** - * @constant - * @type {number} - */ - sizeOf.ULONG = constant(4); - - /** - * Convert a 32-bit unsigned integer to a list of 4 bytes. - * @param {number} - * @returns {Array} - */ - encode.LONG = function(v) { - // Two's complement - if (v >= LIMIT32) { - v = -(2 * LIMIT32 - v); - } - - return [(v >> 24) & 0xff, (v >> 16) & 0xff, (v >> 8) & 0xff, v & 0xff]; - }; - - /** - * @constant - * @type {number} - */ - sizeOf.LONG = constant(4); - - encode.FIXED = encode.ULONG; - sizeOf.FIXED = sizeOf.ULONG; - - encode.FWORD = encode.SHORT; - sizeOf.FWORD = sizeOf.SHORT; - - encode.UFWORD = encode.USHORT; - sizeOf.UFWORD = sizeOf.USHORT; - - /** - * Convert a 32-bit Apple Mac timestamp integer to a list of 8 bytes, 64-bit timestamp. - * @param {number} - * @returns {Array} - */ - encode.LONGDATETIME = function(v) { - return [ - 0, - 0, - 0, - 0, - (v >> 24) & 0xff, - (v >> 16) & 0xff, - (v >> 8) & 0xff, - v & 0xff - ]; - }; - - /** - * @constant - * @type {number} - */ - sizeOf.LONGDATETIME = constant(8); - - /** - * Convert a 4-char tag to a list of 4 bytes. - * @param {string} - * @returns {Array} - */ - encode.TAG = function(v) { - check.argument(v.length === 4, 'Tag should be exactly 4 ASCII characters.'); - return [v.charCodeAt(0), v.charCodeAt(1), v.charCodeAt(2), v.charCodeAt(3)]; - }; - - /** - * @constant - * @type {number} - */ - sizeOf.TAG = constant(4); - - // CFF data types /////////////////////////////////////////////////////////// - - encode.Card8 = encode.BYTE; - sizeOf.Card8 = sizeOf.BYTE; - - encode.Card16 = encode.USHORT; - sizeOf.Card16 = sizeOf.USHORT; - - encode.OffSize = encode.BYTE; - sizeOf.OffSize = sizeOf.BYTE; - - encode.SID = encode.USHORT; - sizeOf.SID = sizeOf.USHORT; - - // Convert a numeric operand or charstring number to a variable-size list of bytes. - /** - * Convert a numeric operand or charstring number to a variable-size list of bytes. - * @param {number} - * @returns {Array} - */ - encode.NUMBER = function(v) { - if (v >= -107 && v <= 107) { - return [v + 139]; - } else if (v >= 108 && v <= 1131) { - v = v - 108; - return [(v >> 8) + 247, v & 0xff]; - } else if (v >= -1131 && v <= -108) { - v = -v - 108; - return [(v >> 8) + 251, v & 0xff]; - } else if (v >= -32768 && v <= 32767) { - return encode.NUMBER16(v); - } else { - return encode.NUMBER32(v); - } - }; - - /** - * @param {number} - * @returns {number} - */ - sizeOf.NUMBER = function(v) { - return encode.NUMBER(v).length; - }; - - /** - * Convert a signed number between -32768 and +32767 to a three-byte value. - * This ensures we always use three bytes, but is not the most compact format. - * @param {number} - * @returns {Array} - */ - encode.NUMBER16 = function(v) { - return [28, (v >> 8) & 0xff, v & 0xff]; - }; - - /** - * @constant - * @type {number} - */ - sizeOf.NUMBER16 = constant(3); - - /** - * Convert a signed number between -(2^31) and +(2^31-1) to a five-byte value. - * This is useful if you want to be sure you always use four bytes, - * at the expense of wasting a few bytes for smaller numbers. - * @param {number} - * @returns {Array} - */ - encode.NUMBER32 = function(v) { - return [29, (v >> 24) & 0xff, (v >> 16) & 0xff, (v >> 8) & 0xff, v & 0xff]; - }; - - /** - * @constant - * @type {number} - */ - sizeOf.NUMBER32 = constant(5); - - /** - * @param {number} - * @returns {Array} - */ - encode.REAL = function(v) { - var value = v.toString(); - - // Some numbers use an epsilon to encode the value. (e.g. JavaScript will store 0.0000001 as 1e-7) - // This code converts it back to a number without the epsilon. - var m = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(value); - if (m) { - var epsilon = parseFloat('1e' + ((m[2] ? +m[2] : 0) + m[1].length)); - value = (Math.round(v * epsilon) / epsilon).toString(); - } - - var nibbles = ''; - for (var i = 0, ii = value.length; i < ii; i += 1) { - var c = value[i]; - if (c === 'e') { - nibbles += value[++i] === '-' ? 'c' : 'b'; - } else if (c === '.') { - nibbles += 'a'; - } else if (c === '-') { - nibbles += 'e'; - } else { - nibbles += c; - } - } - - nibbles += nibbles.length & 1 ? 'f' : 'ff'; - var out = [30]; - for (var i$1 = 0, ii$1 = nibbles.length; i$1 < ii$1; i$1 += 2) { - out.push(parseInt(nibbles.substr(i$1, 2), 16)); - } - - return out; - }; - - /** - * @param {number} - * @returns {number} - */ - sizeOf.REAL = function(v) { - return encode.REAL(v).length; - }; - - encode.NAME = encode.CHARARRAY; - sizeOf.NAME = sizeOf.CHARARRAY; - - encode.STRING = encode.CHARARRAY; - sizeOf.STRING = sizeOf.CHARARRAY; - - /** - * @param {DataView} data - * @param {number} offset - * @param {number} numBytes - * @returns {string} - */ - decode.UTF8 = function(data, offset, numBytes) { - var codePoints = []; - var numChars = numBytes; - for (var j = 0; j < numChars; j++, offset += 1) { - codePoints[j] = data.getUint8(offset); - } - - return String.fromCharCode.apply(null, codePoints); - }; - - /** - * @param {DataView} data - * @param {number} offset - * @param {number} numBytes - * @returns {string} - */ - decode.UTF16 = function(data, offset, numBytes) { - var codePoints = []; - var numChars = numBytes / 2; - for (var j = 0; j < numChars; j++, offset += 2) { - codePoints[j] = data.getUint16(offset); - } - - return String.fromCharCode.apply(null, codePoints); - }; - - /** - * Convert a JavaScript string to UTF16-BE. - * @param {string} - * @returns {Array} - */ - encode.UTF16 = function(v) { - var b = []; - for (var i = 0; i < v.length; i += 1) { - var codepoint = v.charCodeAt(i); - b[b.length] = (codepoint >> 8) & 0xff; - b[b.length] = codepoint & 0xff; - } - - return b; - }; - - /** - * @param {string} - * @returns {number} - */ - sizeOf.UTF16 = function(v) { - return v.length * 2; - }; - - // Data for converting old eight-bit Macintosh encodings to Unicode. - // This representation is optimized for decoding; encoding is slower - // and needs more memory. The assumption is that all opentype.js users - // want to open fonts, but saving a font will be comparatively rare - // so it can be more expensive. Keyed by IANA character set name. - // - // Python script for generating these strings: - // - // s = u''.join([chr(c).decode('mac_greek') for c in range(128, 256)]) - // print(s.encode('utf-8')) - /** - * @private - */ - var eightBitMacEncodings = { - // Python: 'mac_croatian' - 'x-mac-croatian': - 'ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผโ€ ยฐยขยฃยงโ€ขยถรŸยฎล โ„ขยดยจโ‰ ลฝร˜โˆžยฑโ‰คโ‰ฅโˆ†ยตโˆ‚โˆ‘โˆลกโˆซยชยบฮฉลพรธ' + - 'ยฟยกยฌโˆšฦ’โ‰ˆฤ†ยซฤŒโ€ฆย ร€รƒร•ล’ล“ฤโ€”โ€œโ€โ€˜โ€™รทโ—Š๏ฃฟยฉโ„โ‚ฌโ€นโ€บร†ยปโ€“ยทโ€šโ€žโ€ฐร‚ฤ‡รฤรˆรรŽรรŒร“ร”ฤ‘ร’รšร›ร™ฤฑห†หœยฏฯ€ร‹หšยธรŠรฆห‡', - // Python: 'mac_cyrillic' - 'x-mac-cyrillic': - 'ะะ‘ะ’ะ“ะ”ะ•ะ–ะ—ะ˜ะ™ะšะ›ะœะะžะŸะ ะกะขะฃะคะฅะฆะงะจะฉะชะซะฌะญะฎะฏโ€ ยฐายฃยงโ€ขยถะ†ยฎยฉโ„ขะ‚ั’โ‰ ะƒั“โˆžยฑโ‰คโ‰ฅั–ยตา‘ะˆะ„ั”ะ‡ั—ะ‰ั™ะŠัš' + - 'ั˜ะ…ยฌโˆšฦ’โ‰ˆโˆ†ยซยปโ€ฆย ะ‹ั›ะŒัœั•โ€“โ€”โ€œโ€โ€˜โ€™รทโ€žะŽัžะัŸโ„–ะั‘ัะฐะฑะฒะณะดะตะถะทะธะนะบะปะผะฝะพะฟั€ัั‚ัƒั„ั…ั†ั‡ัˆั‰ัŠั‹ัŒััŽ', - // http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/GAELIC.TXT - 'x-mac-gaelic': - 'ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผโ€ ยฐยขยฃยงโ€ขยถรŸยฎยฉโ„ขยดยจโ‰ ร†ร˜แธ‚ยฑโ‰คโ‰ฅแธƒฤŠฤ‹แธŠแธ‹แธžแธŸฤ ฤกแน€รฆรธ' + - 'แนแน–แน—ษผฦ’ลฟแน ยซยปโ€ฆย ร€รƒร•ล’ล“โ€“โ€”โ€œโ€โ€˜โ€™แนกแบ›รฟลธแนชโ‚ฌโ€นโ€บลถลทแนซยทแปฒแปณโŠร‚รŠรร‹รˆรรŽรรŒร“ร”โ™ฃร’รšร›ร™ฤฑรรฝลดลตแบ„แบ…แบ€แบแบ‚แบƒ', - // Python: 'mac_greek' - 'x-mac-greek': - 'ร„ยนยฒร‰ยณร–รœฮ…ร รขรคฮ„ยจรงรฉรจรชรซยฃโ„ขรฎรฏโ€ขยฝโ€ฐรดรถยฆโ‚ฌรนรปรผโ€ ฮ“ฮ”ฮ˜ฮ›ฮžฮ รŸยฎยฉฮฃฮชยงโ‰ ยฐยทฮ‘ยฑโ‰คโ‰ฅยฅฮ’ฮ•ฮ–ฮ—ฮ™ฮšฮœฮฆฮซฮจฮฉ' + - 'ฮฌฮยฌฮŸฮกโ‰ˆฮคยซยปโ€ฆย ฮฅฮงฮ†ฮˆล“โ€“โ€•โ€œโ€โ€˜โ€™รทฮ‰ฮŠฮŒฮŽฮญฮฎฮฏฯŒฮฯฮฑฮฒฯˆฮดฮตฯ†ฮณฮทฮนฮพฮบฮปฮผฮฝฮฟฯ€ฯŽฯฯƒฯ„ฮธฯ‰ฯ‚ฯ‡ฯ…ฮถฯŠฯ‹ฮฮฐ\u00AD', - // Python: 'mac_iceland' - 'x-mac-icelandic': - 'ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผรยฐยขยฃยงโ€ขยถรŸยฎยฉโ„ขยดยจโ‰ ร†ร˜โˆžยฑโ‰คโ‰ฅยฅยตโˆ‚โˆ‘โˆฯ€โˆซยชยบฮฉรฆรธ' + - 'ยฟยกยฌโˆšฦ’โ‰ˆโˆ†ยซยปโ€ฆย ร€รƒร•ล’ล“โ€“โ€”โ€œโ€โ€˜โ€™รทโ—Šรฟลธโ„โ‚ฌรรฐรžรพรฝยทโ€šโ€žโ€ฐร‚รŠรร‹รˆรรŽรรŒร“ร”๏ฃฟร’รšร›ร™ฤฑห†หœยฏห˜ห™หšยธหห›ห‡', - // http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/INUIT.TXT - 'x-mac-inuit': - 'แƒแ„แ…แ†แŠแ‹แฑแฒแณแดแธแนแ‘‰แ‘Žแ‘แ‘แ‘‘แ‘•แ‘–แ‘ฆแ‘ญแ‘ฎแ‘ฏแ‘ฐแ‘ฒแ‘ณแ’ƒแ’‹แ’Œแ’แ’Žแ’แ’‘ยฐแ’กแ’ฅแ’ฆโ€ขยถแ’งยฎยฉโ„ขแ’จแ’ชแ’ซแ’ปแ“‚แ“ƒแ“„แ“…แ“‡แ“ˆแ“แ“ฏแ“ฐแ“ฑแ“ฒแ“ดแ“ตแ”…แ“•แ“–แ“—' + - 'แ“˜แ“šแ“›แ“ชแ”จแ”ฉแ”ชแ”ซแ”ญโ€ฆย แ”ฎแ”พแ••แ•–แ•—โ€“โ€”โ€œโ€โ€˜โ€™แ•˜แ•™แ•šแ•แ•†แ•‡แ•ˆแ•‰แ•‹แ•Œแ•แ•ฟแ–€แ–แ–‚แ–ƒแ–„แ–…แ–แ–แ–‘แ–’แ–“แ–”แ–•แ™ฑแ™ฒแ™ณแ™ดแ™ตแ™ถแ––แ– แ–กแ–ขแ–ฃแ–คแ–ฅแ–ฆแ•ผลล‚', - // Python: 'mac_latin2' - 'x-mac-ce': - 'ร„ฤ€ฤร‰ฤ„ร–รœรกฤ…ฤŒรคฤฤ†ฤ‡รฉลนลบฤŽรญฤฤ’ฤ“ฤ–รณฤ—รดรถรตรบฤšฤ›รผโ€ ยฐฤ˜ยฃยงโ€ขยถรŸยฎยฉโ„ขฤ™ยจโ‰ ฤฃฤฎฤฏฤชโ‰คโ‰ฅฤซฤถโˆ‚โˆ‘ล‚ฤปฤผฤฝฤพฤนฤบล…' + - 'ล†ลƒยฌโˆšล„ล‡โˆ†ยซยปโ€ฆย ลˆลร•ล‘ลŒโ€“โ€”โ€œโ€โ€˜โ€™รทโ—Šลล”ล•ล˜โ€นโ€บล™ล–ล—ล โ€šโ€žลกลšล›รลคลฅรลฝลพลชร“ร”ลซลฎรšลฏลฐลฑลฒลณรรฝฤทลปลลผฤขห‡', - // Python: 'mac_roman' - macintosh: - 'ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผโ€ ยฐยขยฃยงโ€ขยถรŸยฎยฉโ„ขยดยจโ‰ ร†ร˜โˆžยฑโ‰คโ‰ฅยฅยตโˆ‚โˆ‘โˆฯ€โˆซยชยบฮฉรฆรธ' + - 'ยฟยกยฌโˆšฦ’โ‰ˆโˆ†ยซยปโ€ฆย ร€รƒร•ล’ล“โ€“โ€”โ€œโ€โ€˜โ€™รทโ—Šรฟลธโ„โ‚ฌโ€นโ€บ๏ฌ๏ฌ‚โ€กยทโ€šโ€žโ€ฐร‚รŠรร‹รˆรรŽรรŒร“ร”๏ฃฟร’รšร›ร™ฤฑห†หœยฏห˜ห™หšยธหห›ห‡', - // Python: 'mac_romanian' - 'x-mac-romanian': - 'ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผโ€ ยฐยขยฃยงโ€ขยถรŸยฎยฉโ„ขยดยจโ‰ ฤ‚ศ˜โˆžยฑโ‰คโ‰ฅยฅยตโˆ‚โˆ‘โˆฯ€โˆซยชยบฮฉฤƒศ™' + - 'ยฟยกยฌโˆšฦ’โ‰ˆโˆ†ยซยปโ€ฆย ร€รƒร•ล’ล“โ€“โ€”โ€œโ€โ€˜โ€™รทโ—Šรฟลธโ„โ‚ฌโ€นโ€บศšศ›โ€กยทโ€šโ€žโ€ฐร‚รŠรร‹รˆรรŽรรŒร“ร”๏ฃฟร’รšร›ร™ฤฑห†หœยฏห˜ห™หšยธหห›ห‡', - // Python: 'mac_turkish' - 'x-mac-turkish': - 'ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผโ€ ยฐยขยฃยงโ€ขยถรŸยฎยฉโ„ขยดยจโ‰ ร†ร˜โˆžยฑโ‰คโ‰ฅยฅยตโˆ‚โˆ‘โˆฯ€โˆซยชยบฮฉรฆรธ' + - 'ยฟยกยฌโˆšฦ’โ‰ˆโˆ†ยซยปโ€ฆย ร€รƒร•ล’ล“โ€“โ€”โ€œโ€โ€˜โ€™รทโ—ŠรฟลธฤžฤŸฤฐฤฑลžลŸโ€กยทโ€šโ€žโ€ฐร‚รŠรร‹รˆรรŽรรŒร“ร”๏ฃฟร’รšร›ร™๏ข ห†หœยฏห˜ห™หšยธหห›ห‡' - }; - - /** - * Decodes an old-style Macintosh string. Returns either a Unicode JavaScript - * string, or 'undefined' if the encoding is unsupported. For example, we do - * not support Chinese, Japanese or Korean because these would need large - * mapping tables. - * @param {DataView} dataView - * @param {number} offset - * @param {number} dataLength - * @param {string} encoding - * @returns {string} - */ - decode.MACSTRING = function(dataView, offset, dataLength, encoding) { - var table = eightBitMacEncodings[encoding]; - if (table === undefined) { - return undefined; - } - - var result = ''; - for (var i = 0; i < dataLength; i++) { - var c = dataView.getUint8(offset + i); - // In all eight-bit Mac encodings, the characters 0x00..0x7F are - // mapped to U+0000..U+007F; we only need to look up the others. - if (c <= 0x7f) { - result += String.fromCharCode(c); - } else { - result += table[c & 0x7f]; - } - } - - return result; - }; - - // Helper function for encode.MACSTRING. Returns a dictionary for mapping - // Unicode character codes to their 8-bit MacOS equivalent. This table - // is not exactly a super cheap data structure, but we do not care because - // encoding Macintosh strings is only rarely needed in typical applications. - var macEncodingTableCache = typeof WeakMap === 'function' && new WeakMap(); - var macEncodingCacheKeys; - var getMacEncodingTable = function(encoding) { - // Since we use encoding as a cache key for WeakMap, it has to be - // a String object and not a literal. And at least on NodeJS 2.10.1, - // WeakMap requires that the same String instance is passed for cache hits. - if (!macEncodingCacheKeys) { - macEncodingCacheKeys = {}; - for (var e in eightBitMacEncodings) { - /*jshint -W053 */ // Suppress "Do not use String as a constructor." - macEncodingCacheKeys[e] = new String(e); - } - } - - var cacheKey = macEncodingCacheKeys[encoding]; - if (cacheKey === undefined) { - return undefined; - } - - // We can't do "if (cache.has(key)) {return cache.get(key)}" here: - // since garbage collection may run at any time, it could also kick in - // between the calls to cache.has() and cache.get(). In that case, - // we would return 'undefined' even though we do support the encoding. - if (macEncodingTableCache) { - var cachedTable = macEncodingTableCache.get(cacheKey); - if (cachedTable !== undefined) { - return cachedTable; - } - } - - var decodingTable = eightBitMacEncodings[encoding]; - if (decodingTable === undefined) { - return undefined; - } - - var encodingTable = {}; - for (var i = 0; i < decodingTable.length; i++) { - encodingTable[decodingTable.charCodeAt(i)] = i + 0x80; - } - - if (macEncodingTableCache) { - macEncodingTableCache.set(cacheKey, encodingTable); - } - - return encodingTable; - }; - - /** - * Encodes an old-style Macintosh string. Returns a byte array upon success. - * If the requested encoding is unsupported, or if the input string contains - * a character that cannot be expressed in the encoding, the function returns - * 'undefined'. - * @param {string} str - * @param {string} encoding - * @returns {Array} - */ - encode.MACSTRING = function(str, encoding) { - var table = getMacEncodingTable(encoding); - if (table === undefined) { - return undefined; - } - - var result = []; - for (var i = 0; i < str.length; i++) { - var c = str.charCodeAt(i); - - // In all eight-bit Mac encodings, the characters 0x00..0x7F are - // mapped to U+0000..U+007F; we only need to look up the others. - if (c >= 0x80) { - c = table[c]; - if (c === undefined) { - // str contains a Unicode character that cannot be encoded - // in the requested encoding. - return undefined; - } - } - result[i] = c; - // result.push(c); - } - - return result; - }; - - /** - * @param {string} str - * @param {string} encoding - * @returns {number} - */ - sizeOf.MACSTRING = function(str, encoding) { - var b = encode.MACSTRING(str, encoding); - if (b !== undefined) { - return b.length; - } else { - return 0; - } - }; - - // Helper for encode.VARDELTAS - function isByteEncodable(value) { - return value >= -128 && value <= 127; - } - - // Helper for encode.VARDELTAS - function encodeVarDeltaRunAsZeroes(deltas, pos, result) { - var runLength = 0; - var numDeltas = deltas.length; - while (pos < numDeltas && runLength < 64 && deltas[pos] === 0) { - ++pos; - ++runLength; - } - result.push(0x80 | (runLength - 1)); - return pos; - } - - // Helper for encode.VARDELTAS - function encodeVarDeltaRunAsBytes(deltas, offset, result) { - var runLength = 0; - var numDeltas = deltas.length; - var pos = offset; - while (pos < numDeltas && runLength < 64) { - var value = deltas[pos]; - if (!isByteEncodable(value)) { - break; - } - - // Within a byte-encoded run of deltas, a single zero is best - // stored literally as 0x00 value. However, if we have two or - // more zeroes in a sequence, it is better to start a new run. - // Fore example, the sequence of deltas [15, 15, 0, 15, 15] - // becomes 6 bytes (04 0F 0F 00 0F 0F) when storing the zero - // within the current run, but 7 bytes (01 0F 0F 80 01 0F 0F) - // when starting a new run. - if (value === 0 && pos + 1 < numDeltas && deltas[pos + 1] === 0) { - break; - } - - ++pos; - ++runLength; - } - result.push(runLength - 1); - for (var i = offset; i < pos; ++i) { - result.push((deltas[i] + 256) & 0xff); - } - return pos; - } - - // Helper for encode.VARDELTAS - function encodeVarDeltaRunAsWords(deltas, offset, result) { - var runLength = 0; - var numDeltas = deltas.length; - var pos = offset; - while (pos < numDeltas && runLength < 64) { - var value = deltas[pos]; - - // Within a word-encoded run of deltas, it is easiest to start - // a new run (with a different encoding) whenever we encounter - // a zero value. For example, the sequence [0x6666, 0, 0x7777] - // needs 7 bytes when storing the zero inside the current run - // (42 66 66 00 00 77 77), and equally 7 bytes when starting a - // new run (40 66 66 80 40 77 77). - if (value === 0) { - break; - } - - // Within a word-encoded run of deltas, a single value in the - // range (-128..127) should be encoded within the current run - // because it is more compact. For example, the sequence - // [0x6666, 2, 0x7777] becomes 7 bytes when storing the value - // literally (42 66 66 00 02 77 77), but 8 bytes when starting - // a new run (40 66 66 00 02 40 77 77). - if ( - isByteEncodable(value) && - pos + 1 < numDeltas && - isByteEncodable(deltas[pos + 1]) - ) { - break; - } - - ++pos; - ++runLength; - } - result.push(0x40 | (runLength - 1)); - for (var i = offset; i < pos; ++i) { - var val = deltas[i]; - result.push(((val + 0x10000) >> 8) & 0xff, (val + 0x100) & 0xff); - } - return pos; - } - - /** - * Encode a list of variation adjustment deltas. - * - * Variation adjustment deltas are used in โ€˜gvarโ€™ and โ€˜cvarโ€™ tables. - * They indicate how points (in โ€˜gvarโ€™) or values (in โ€˜cvarโ€™) get adjusted - * when generating instances of variation fonts. - * - * @see https://www.microsoft.com/typography/otspec/gvar.htm - * @see https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6gvar.html - * @param {Array} - * @return {Array} - */ - encode.VARDELTAS = function(deltas) { - var pos = 0; - var result = []; - while (pos < deltas.length) { - var value = deltas[pos]; - if (value === 0) { - pos = encodeVarDeltaRunAsZeroes(deltas, pos, result); - } else if (value >= -128 && value <= 127) { - pos = encodeVarDeltaRunAsBytes(deltas, pos, result); - } else { - pos = encodeVarDeltaRunAsWords(deltas, pos, result); - } - } - return result; - }; - - // Convert a list of values to a CFF INDEX structure. - // The values should be objects containing name / type / value. - /** - * @param {Array} l - * @returns {Array} - */ - encode.INDEX = function(l) { - //var offset, offsets, offsetEncoder, encodedOffsets, encodedOffset, data, - // i, v; - // Because we have to know which data type to use to encode the offsets, - // we have to go through the values twice: once to encode the data and - // calculate the offsets, then again to encode the offsets using the fitting data type. - var offset = 1; // First offset is always 1. - var offsets = [offset]; - var data = []; - for (var i = 0; i < l.length; i += 1) { - var v = encode.OBJECT(l[i]); - Array.prototype.push.apply(data, v); - offset += v.length; - offsets.push(offset); - } - - if (data.length === 0) { - return [0, 0]; - } - - var encodedOffsets = []; - var offSize = (1 + Math.floor(Math.log(offset) / Math.log(2)) / 8) | 0; - var offsetEncoder = [ - undefined, - encode.BYTE, - encode.USHORT, - encode.UINT24, - encode.ULONG - ][offSize]; - for (var i$1 = 0; i$1 < offsets.length; i$1 += 1) { - var encodedOffset = offsetEncoder(offsets[i$1]); - Array.prototype.push.apply(encodedOffsets, encodedOffset); - } - - return Array.prototype.concat( - encode.Card16(l.length), - encode.OffSize(offSize), - encodedOffsets, - data - ); - }; - - /** - * @param {Array} - * @returns {number} - */ - sizeOf.INDEX = function(v) { - return encode.INDEX(v).length; - }; - - /** - * Convert an object to a CFF DICT structure. - * The keys should be numeric. - * The values should be objects containing name / type / value. - * @param {Object} m - * @returns {Array} - */ - encode.DICT = function(m) { - var d = []; - var keys = Object.keys(m); - var length = keys.length; - - for (var i = 0; i < length; i += 1) { - // Object.keys() return string keys, but our keys are always numeric. - var k = parseInt(keys[i], 0); - var v = m[k]; - // Value comes before the key. - d = d.concat(encode.OPERAND(v.value, v.type)); - d = d.concat(encode.OPERATOR(k)); - } - - return d; - }; - - /** - * @param {Object} - * @returns {number} - */ - sizeOf.DICT = function(m) { - return encode.DICT(m).length; - }; - - /** - * @param {number} - * @returns {Array} - */ - encode.OPERATOR = function(v) { - if (v < 1200) { - return [v]; - } else { - return [12, v - 1200]; - } - }; - - /** - * @param {Array} v - * @param {string} - * @returns {Array} - */ - encode.OPERAND = function(v, type) { - var d = []; - if (Array.isArray(type)) { - for (var i = 0; i < type.length; i += 1) { - check.argument( - v.length === type.length, - 'Not enough arguments given for type' + type - ); - d = d.concat(encode.OPERAND(v[i], type[i])); - } - } else { - if (type === 'SID') { - d = d.concat(encode.NUMBER(v)); - } else if (type === 'offset') { - // We make it easy for ourselves and always encode offsets as - // 4 bytes. This makes offset calculation for the top dict easier. - d = d.concat(encode.NUMBER32(v)); - } else if (type === 'number') { - d = d.concat(encode.NUMBER(v)); - } else if (type === 'real') { - d = d.concat(encode.REAL(v)); - } else { - throw new Error('Unknown operand type ' + type); - // FIXME Add support for booleans - } - } - - return d; - }; - - encode.OP = encode.BYTE; - sizeOf.OP = sizeOf.BYTE; - - // memoize charstring encoding using WeakMap if available - var wmm = typeof WeakMap === 'function' && new WeakMap(); - - /** - * Convert a list of CharString operations to bytes. - * @param {Array} - * @returns {Array} - */ - encode.CHARSTRING = function(ops) { - // See encode.MACSTRING for why we don't do "if (wmm && wmm.has(ops))". - if (wmm) { - var cachedValue = wmm.get(ops); - if (cachedValue !== undefined) { - return cachedValue; - } - } - - var d = []; - var length = ops.length; - - for (var i = 0; i < length; i += 1) { - var op = ops[i]; - d = d.concat(encode[op.type](op.value)); - } - - if (wmm) { - wmm.set(ops, d); - } - - return d; - }; - - /** - * @param {Array} - * @returns {number} - */ - sizeOf.CHARSTRING = function(ops) { - return encode.CHARSTRING(ops).length; - }; - - // Utility functions //////////////////////////////////////////////////////// - - /** - * Convert an object containing name / type / value to bytes. - * @param {Object} - * @returns {Array} - */ - encode.OBJECT = function(v) { - var encodingFunction = encode[v.type]; - check.argument( - encodingFunction !== undefined, - 'No encoding function for type ' + v.type - ); - return encodingFunction(v.value); - }; - - /** - * @param {Object} - * @returns {number} - */ - sizeOf.OBJECT = function(v) { - var sizeOfFunction = sizeOf[v.type]; - check.argument( - sizeOfFunction !== undefined, - 'No sizeOf function for type ' + v.type - ); - return sizeOfFunction(v.value); - }; - - /** - * Convert a table object to bytes. - * A table contains a list of fields containing the metadata (name, type and default value). - * The table itself has the field values set as attributes. - * @param {opentype.Table} - * @returns {Array} - */ - encode.TABLE = function(table) { - var d = []; - var length = table.fields.length; - var subtables = []; - var subtableOffsets = []; - - for (var i = 0; i < length; i += 1) { - var field = table.fields[i]; - var encodingFunction = encode[field.type]; - check.argument( - encodingFunction !== undefined, - 'No encoding function for field type ' + - field.type + - ' (' + - field.name + - ')' - ); - var value = table[field.name]; - if (value === undefined) { - value = field.value; - } - - var bytes = encodingFunction(value); - - if (field.type === 'TABLE') { - subtableOffsets.push(d.length); - d = d.concat([0, 0]); - subtables.push(bytes); - } else { - d = d.concat(bytes); - } - } - - for (var i$1 = 0; i$1 < subtables.length; i$1 += 1) { - var o = subtableOffsets[i$1]; - var offset = d.length; - check.argument(offset < 65536, 'Table ' + table.tableName + ' too big.'); - d[o] = offset >> 8; - d[o + 1] = offset & 0xff; - d = d.concat(subtables[i$1]); - } - - return d; - }; - - /** - * @param {opentype.Table} - * @returns {number} - */ - sizeOf.TABLE = function(table) { - var numBytes = 0; - var length = table.fields.length; - - for (var i = 0; i < length; i += 1) { - var field = table.fields[i]; - var sizeOfFunction = sizeOf[field.type]; - check.argument( - sizeOfFunction !== undefined, - 'No sizeOf function for field type ' + - field.type + - ' (' + - field.name + - ')' - ); - var value = table[field.name]; - if (value === undefined) { - value = field.value; - } - - numBytes += sizeOfFunction(value); - - // Subtables take 2 more bytes for offsets. - if (field.type === 'TABLE') { - numBytes += 2; - } - } - - return numBytes; - }; - - encode.RECORD = encode.TABLE; - sizeOf.RECORD = sizeOf.TABLE; - - // Merge in a list of bytes. - encode.LITERAL = function(v) { - return v; - }; - - sizeOf.LITERAL = function(v) { - return v.length; - }; - - // Table metadata - - /** - * @exports opentype.Table - * @class - * @param {string} tableName - * @param {Array} fields - * @param {Object} options - * @constructor - */ - function Table(tableName, fields, options) { - var this$1 = this; - - for (var i = 0; i < fields.length; i += 1) { - var field = fields[i]; - this$1[field.name] = field.value; - } - - this.tableName = tableName; - this.fields = fields; - if (options) { - var optionKeys = Object.keys(options); - for (var i$1 = 0; i$1 < optionKeys.length; i$1 += 1) { - var k = optionKeys[i$1]; - var v = options[k]; - if (this$1[k] !== undefined) { - this$1[k] = v; - } - } - } - } - - /** - * Encodes the table and returns an array of bytes - * @return {Array} - */ - Table.prototype.encode = function() { - return encode.TABLE(this); - }; - - /** - * Get the size of the table. - * @return {number} - */ - Table.prototype.sizeOf = function() { - return sizeOf.TABLE(this); - }; - - /** - * @private - */ - function ushortList(itemName, list, count) { - if (count === undefined) { - count = list.length; - } - var fields = new Array(list.length + 1); - fields[0] = { name: itemName + 'Count', type: 'USHORT', value: count }; - for (var i = 0; i < list.length; i++) { - fields[i + 1] = { name: itemName + i, type: 'USHORT', value: list[i] }; - } - return fields; - } - - /** - * @private - */ - function tableList(itemName, records, itemCallback) { - var count = records.length; - var fields = new Array(count + 1); - fields[0] = { name: itemName + 'Count', type: 'USHORT', value: count }; - for (var i = 0; i < count; i++) { - fields[i + 1] = { - name: itemName + i, - type: 'TABLE', - value: itemCallback(records[i], i) - }; - } - return fields; - } - - /** - * @private - */ - function recordList(itemName, records, itemCallback) { - var count = records.length; - var fields = []; - fields[0] = { name: itemName + 'Count', type: 'USHORT', value: count }; - for (var i = 0; i < count; i++) { - fields = fields.concat(itemCallback(records[i], i)); - } - return fields; - } - - // Common Layout Tables - - /** - * @exports opentype.Coverage - * @class - * @param {opentype.Table} - * @constructor - * @extends opentype.Table - */ - function Coverage(coverageTable) { - if (coverageTable.format === 1) { - Table.call( - this, - 'coverageTable', - [{ name: 'coverageFormat', type: 'USHORT', value: 1 }].concat( - ushortList('glyph', coverageTable.glyphs) - ) - ); - } else { - check.assert(false, "Can't create coverage table format 2 yet."); - } - } - Coverage.prototype = Object.create(Table.prototype); - Coverage.prototype.constructor = Coverage; - - function ScriptList(scriptListTable) { - Table.call( - this, - 'scriptListTable', - recordList('scriptRecord', scriptListTable, function(scriptRecord, i) { - var script = scriptRecord.script; - var defaultLangSys = script.defaultLangSys; - check.assert( - !!defaultLangSys, - 'Unable to write GSUB: script ' + - scriptRecord.tag + - ' has no default language system.' - ); - return [ - { name: 'scriptTag' + i, type: 'TAG', value: scriptRecord.tag }, - { - name: 'script' + i, - type: 'TABLE', - value: new Table( - 'scriptTable', - [ - { - name: 'defaultLangSys', - type: 'TABLE', - value: new Table( - 'defaultLangSys', - [ - { name: 'lookupOrder', type: 'USHORT', value: 0 }, - { - name: 'reqFeatureIndex', - type: 'USHORT', - value: defaultLangSys.reqFeatureIndex - } - ].concat( - ushortList('featureIndex', defaultLangSys.featureIndexes) - ) - ) - } - ].concat( - recordList('langSys', script.langSysRecords, function( - langSysRecord, - i - ) { - var langSys = langSysRecord.langSys; - return [ - { - name: 'langSysTag' + i, - type: 'TAG', - value: langSysRecord.tag - }, - { - name: 'langSys' + i, - type: 'TABLE', - value: new Table( - 'langSys', - [ - { name: 'lookupOrder', type: 'USHORT', value: 0 }, - { - name: 'reqFeatureIndex', - type: 'USHORT', - value: langSys.reqFeatureIndex - } - ].concat( - ushortList('featureIndex', langSys.featureIndexes) - ) - ) - } - ]; - }) - ) - ) - } - ]; - }) - ); - } - ScriptList.prototype = Object.create(Table.prototype); - ScriptList.prototype.constructor = ScriptList; - - /** - * @exports opentype.FeatureList - * @class - * @param {opentype.Table} - * @constructor - * @extends opentype.Table - */ - function FeatureList(featureListTable) { - Table.call( - this, - 'featureListTable', - recordList('featureRecord', featureListTable, function(featureRecord, i) { - var feature = featureRecord.feature; - return [ - { name: 'featureTag' + i, type: 'TAG', value: featureRecord.tag }, - { - name: 'feature' + i, - type: 'TABLE', - value: new Table( - 'featureTable', - [ - { - name: 'featureParams', - type: 'USHORT', - value: feature.featureParams - } - ].concat(ushortList('lookupListIndex', feature.lookupListIndexes)) - ) - } - ]; - }) - ); - } - FeatureList.prototype = Object.create(Table.prototype); - FeatureList.prototype.constructor = FeatureList; - - /** - * @exports opentype.LookupList - * @class - * @param {opentype.Table} - * @param {Object} - * @constructor - * @extends opentype.Table - */ - function LookupList(lookupListTable, subtableMakers) { - Table.call( - this, - 'lookupListTable', - tableList('lookup', lookupListTable, function(lookupTable) { - var subtableCallback = subtableMakers[lookupTable.lookupType]; - check.assert( - !!subtableCallback, - 'Unable to write GSUB lookup type ' + - lookupTable.lookupType + - ' tables.' - ); - return new Table( - 'lookupTable', - [ - { - name: 'lookupType', - type: 'USHORT', - value: lookupTable.lookupType - }, - { - name: 'lookupFlag', - type: 'USHORT', - value: lookupTable.lookupFlag - } - ].concat( - tableList('subtable', lookupTable.subtables, subtableCallback) - ) - ); - }) - ); - } - LookupList.prototype = Object.create(Table.prototype); - LookupList.prototype.constructor = LookupList; - - // Record = same as Table, but inlined (a Table has an offset and its data is further in the stream) - // Don't use offsets inside Records (probable bug), only in Tables. - var table = { - Table: Table, - Record: Table, - Coverage: Coverage, - ScriptList: ScriptList, - FeatureList: FeatureList, - LookupList: LookupList, - ushortList: ushortList, - tableList: tableList, - recordList: recordList - }; - - // Parsing utility functions - - // Retrieve an unsigned byte from the DataView. - function getByte(dataView, offset) { - return dataView.getUint8(offset); - } - - // Retrieve an unsigned 16-bit short from the DataView. - // The value is stored in big endian. - function getUShort(dataView, offset) { - return dataView.getUint16(offset, false); - } - - // Retrieve a signed 16-bit short from the DataView. - // The value is stored in big endian. - function getShort(dataView, offset) { - return dataView.getInt16(offset, false); - } - - // Retrieve an unsigned 32-bit long from the DataView. - // The value is stored in big endian. - function getULong(dataView, offset) { - return dataView.getUint32(offset, false); - } - - // Retrieve a 32-bit signed fixed-point number (16.16) from the DataView. - // The value is stored in big endian. - function getFixed(dataView, offset) { - var decimal = dataView.getInt16(offset, false); - var fraction = dataView.getUint16(offset + 2, false); - return decimal + fraction / 65535; - } - - // Retrieve a 4-character tag from the DataView. - // Tags are used to identify tables. - function getTag(dataView, offset) { - var tag = ''; - for (var i = offset; i < offset + 4; i += 1) { - tag += String.fromCharCode(dataView.getInt8(i)); - } - - return tag; - } - - // Retrieve an offset from the DataView. - // Offsets are 1 to 4 bytes in length, depending on the offSize argument. - function getOffset(dataView, offset, offSize) { - var v = 0; - for (var i = 0; i < offSize; i += 1) { - v <<= 8; - v += dataView.getUint8(offset + i); - } - - return v; - } - - // Retrieve a number of bytes from start offset to the end offset from the DataView. - function getBytes(dataView, startOffset, endOffset) { - var bytes = []; - for (var i = startOffset; i < endOffset; i += 1) { - bytes.push(dataView.getUint8(i)); - } - - return bytes; - } - - // Convert the list of bytes to a string. - function bytesToString(bytes) { - var s = ''; - for (var i = 0; i < bytes.length; i += 1) { - s += String.fromCharCode(bytes[i]); - } - - return s; - } - - var typeOffsets = { - byte: 1, - uShort: 2, - short: 2, - uLong: 4, - fixed: 4, - longDateTime: 8, - tag: 4 - }; - - // A stateful parser that changes the offset whenever a value is retrieved. - // The data is a DataView. - function Parser(data, offset) { - this.data = data; - this.offset = offset; - this.relativeOffset = 0; - } - - Parser.prototype.parseByte = function() { - var v = this.data.getUint8(this.offset + this.relativeOffset); - this.relativeOffset += 1; - return v; - }; - - Parser.prototype.parseChar = function() { - var v = this.data.getInt8(this.offset + this.relativeOffset); - this.relativeOffset += 1; - return v; - }; - - Parser.prototype.parseCard8 = Parser.prototype.parseByte; - - Parser.prototype.parseUShort = function() { - var v = this.data.getUint16(this.offset + this.relativeOffset); - this.relativeOffset += 2; - return v; - }; - - Parser.prototype.parseCard16 = Parser.prototype.parseUShort; - Parser.prototype.parseSID = Parser.prototype.parseUShort; - Parser.prototype.parseOffset16 = Parser.prototype.parseUShort; - - Parser.prototype.parseShort = function() { - var v = this.data.getInt16(this.offset + this.relativeOffset); - this.relativeOffset += 2; - return v; - }; - - Parser.prototype.parseF2Dot14 = function() { - var v = this.data.getInt16(this.offset + this.relativeOffset) / 16384; - this.relativeOffset += 2; - return v; - }; - - Parser.prototype.parseULong = function() { - var v = getULong(this.data, this.offset + this.relativeOffset); - this.relativeOffset += 4; - return v; - }; - - Parser.prototype.parseOffset32 = Parser.prototype.parseULong; - - Parser.prototype.parseFixed = function() { - var v = getFixed(this.data, this.offset + this.relativeOffset); - this.relativeOffset += 4; - return v; - }; - - Parser.prototype.parseString = function(length) { - var dataView = this.data; - var offset = this.offset + this.relativeOffset; - var string = ''; - this.relativeOffset += length; - for (var i = 0; i < length; i++) { - string += String.fromCharCode(dataView.getUint8(offset + i)); - } - - return string; - }; - - Parser.prototype.parseTag = function() { - return this.parseString(4); - }; - - // LONGDATETIME is a 64-bit integer. - // JavaScript and unix timestamps traditionally use 32 bits, so we - // only take the last 32 bits. - // + Since until 2038 those bits will be filled by zeros we can ignore them. - Parser.prototype.parseLongDateTime = function() { - var v = getULong(this.data, this.offset + this.relativeOffset + 4); - // Subtract seconds between 01/01/1904 and 01/01/1970 - // to convert Apple Mac timestamp to Standard Unix timestamp - v -= 2082844800; - this.relativeOffset += 8; - return v; - }; - - Parser.prototype.parseVersion = function(minorBase) { - var major = getUShort(this.data, this.offset + this.relativeOffset); - - // How to interpret the minor version is very vague in the spec. 0x5000 is 5, 0x1000 is 1 - // Default returns the correct number if minor = 0xN000 where N is 0-9 - // Set minorBase to 1 for tables that use minor = N where N is 0-9 - var minor = getUShort(this.data, this.offset + this.relativeOffset + 2); - this.relativeOffset += 4; - if (minorBase === undefined) { - minorBase = 0x1000; - } - return major + minor / minorBase / 10; - }; - - Parser.prototype.skip = function(type, amount) { - if (amount === undefined) { - amount = 1; - } - - this.relativeOffset += typeOffsets[type] * amount; - }; - - ///// Parsing lists and records /////////////////////////////// - - // Parse a list of 32 bit unsigned integers. - Parser.prototype.parseULongList = function(count) { - if (count === undefined) { - count = this.parseULong(); - } - var offsets = new Array(count); - var dataView = this.data; - var offset = this.offset + this.relativeOffset; - for (var i = 0; i < count; i++) { - offsets[i] = dataView.getUint32(offset); - offset += 4; - } - - this.relativeOffset += count * 4; - return offsets; - }; - - // Parse a list of 16 bit unsigned integers. The length of the list can be read on the stream - // or provided as an argument. - Parser.prototype.parseOffset16List = Parser.prototype.parseUShortList = function( - count - ) { - if (count === undefined) { - count = this.parseUShort(); - } - var offsets = new Array(count); - var dataView = this.data; - var offset = this.offset + this.relativeOffset; - for (var i = 0; i < count; i++) { - offsets[i] = dataView.getUint16(offset); - offset += 2; - } - - this.relativeOffset += count * 2; - return offsets; - }; - - // Parses a list of 16 bit signed integers. - Parser.prototype.parseShortList = function(count) { - var list = new Array(count); - var dataView = this.data; - var offset = this.offset + this.relativeOffset; - for (var i = 0; i < count; i++) { - list[i] = dataView.getInt16(offset); - offset += 2; - } - - this.relativeOffset += count * 2; - return list; - }; - - // Parses a list of bytes. - Parser.prototype.parseByteList = function(count) { - var list = new Array(count); - var dataView = this.data; - var offset = this.offset + this.relativeOffset; - for (var i = 0; i < count; i++) { - list[i] = dataView.getUint8(offset++); - } - - this.relativeOffset += count; - return list; - }; - - /** - * Parse a list of items. - * Record count is optional, if omitted it is read from the stream. - * itemCallback is one of the Parser methods. - */ - Parser.prototype.parseList = function(count, itemCallback) { - var this$1 = this; - - if (!itemCallback) { - itemCallback = count; - count = this.parseUShort(); - } - var list = new Array(count); - for (var i = 0; i < count; i++) { - list[i] = itemCallback.call(this$1); - } - return list; - }; - - Parser.prototype.parseList32 = function(count, itemCallback) { - var this$1 = this; - - if (!itemCallback) { - itemCallback = count; - count = this.parseULong(); - } - var list = new Array(count); - for (var i = 0; i < count; i++) { - list[i] = itemCallback.call(this$1); - } - return list; - }; - - /** - * Parse a list of records. - * Record count is optional, if omitted it is read from the stream. - * Example of recordDescription: { sequenceIndex: Parser.uShort, lookupListIndex: Parser.uShort } - */ - Parser.prototype.parseRecordList = function(count, recordDescription) { - var this$1 = this; - - // If the count argument is absent, read it in the stream. - if (!recordDescription) { - recordDescription = count; - count = this.parseUShort(); - } - var records = new Array(count); - var fields = Object.keys(recordDescription); - for (var i = 0; i < count; i++) { - var rec = {}; - for (var j = 0; j < fields.length; j++) { - var fieldName = fields[j]; - var fieldType = recordDescription[fieldName]; - rec[fieldName] = fieldType.call(this$1); - } - records[i] = rec; - } - return records; - }; - - Parser.prototype.parseRecordList32 = function(count, recordDescription) { - var this$1 = this; - - // If the count argument is absent, read it in the stream. - if (!recordDescription) { - recordDescription = count; - count = this.parseULong(); - } - var records = new Array(count); - var fields = Object.keys(recordDescription); - for (var i = 0; i < count; i++) { - var rec = {}; - for (var j = 0; j < fields.length; j++) { - var fieldName = fields[j]; - var fieldType = recordDescription[fieldName]; - rec[fieldName] = fieldType.call(this$1); - } - records[i] = rec; - } - return records; - }; - - // Parse a data structure into an object - // Example of description: { sequenceIndex: Parser.uShort, lookupListIndex: Parser.uShort } - Parser.prototype.parseStruct = function(description) { - var this$1 = this; - - if (typeof description === 'function') { - return description.call(this); - } else { - var fields = Object.keys(description); - var struct = {}; - for (var j = 0; j < fields.length; j++) { - var fieldName = fields[j]; - var fieldType = description[fieldName]; - struct[fieldName] = fieldType.call(this$1); - } - return struct; - } - }; - - /** - * Parse a GPOS valueRecord - * https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#value-record - * valueFormat is optional, if omitted it is read from the stream. - */ - Parser.prototype.parseValueRecord = function(valueFormat) { - if (valueFormat === undefined) { - valueFormat = this.parseUShort(); - } - if (valueFormat === 0) { - // valueFormat2 in kerning pairs is most often 0 - // in this case return undefined instead of an empty object, to save space - return; - } - var valueRecord = {}; - - if (valueFormat & 0x0001) { - valueRecord.xPlacement = this.parseShort(); - } - if (valueFormat & 0x0002) { - valueRecord.yPlacement = this.parseShort(); - } - if (valueFormat & 0x0004) { - valueRecord.xAdvance = this.parseShort(); - } - if (valueFormat & 0x0008) { - valueRecord.yAdvance = this.parseShort(); - } - - // Device table (non-variable font) / VariationIndex table (variable font) not supported - // https://docs.microsoft.com/fr-fr/typography/opentype/spec/chapter2#devVarIdxTbls - if (valueFormat & 0x0010) { - valueRecord.xPlaDevice = undefined; - this.parseShort(); - } - if (valueFormat & 0x0020) { - valueRecord.yPlaDevice = undefined; - this.parseShort(); - } - if (valueFormat & 0x0040) { - valueRecord.xAdvDevice = undefined; - this.parseShort(); - } - if (valueFormat & 0x0080) { - valueRecord.yAdvDevice = undefined; - this.parseShort(); - } - - return valueRecord; - }; - - /** - * Parse a list of GPOS valueRecords - * https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#value-record - * valueFormat and valueCount are read from the stream. - */ - Parser.prototype.parseValueRecordList = function() { - var this$1 = this; - - var valueFormat = this.parseUShort(); - var valueCount = this.parseUShort(); - var values = new Array(valueCount); - for (var i = 0; i < valueCount; i++) { - values[i] = this$1.parseValueRecord(valueFormat); - } - return values; - }; - - Parser.prototype.parsePointer = function(description) { - var structOffset = this.parseOffset16(); - if (structOffset > 0) { - // NULL offset => return undefined - return new Parser(this.data, this.offset + structOffset).parseStruct( - description - ); - } - return undefined; - }; - - Parser.prototype.parsePointer32 = function(description) { - var structOffset = this.parseOffset32(); - if (structOffset > 0) { - // NULL offset => return undefined - return new Parser(this.data, this.offset + structOffset).parseStruct( - description - ); - } - return undefined; - }; - - /** - * Parse a list of offsets to lists of 16-bit integers, - * or a list of offsets to lists of offsets to any kind of items. - * If itemCallback is not provided, a list of list of UShort is assumed. - * If provided, itemCallback is called on each item and must parse the item. - * See examples in tables/gsub.js - */ - Parser.prototype.parseListOfLists = function(itemCallback) { - var this$1 = this; - - var offsets = this.parseOffset16List(); - var count = offsets.length; - var relativeOffset = this.relativeOffset; - var list = new Array(count); - for (var i = 0; i < count; i++) { - var start = offsets[i]; - if (start === 0) { - // NULL offset - // Add i as owned property to list. Convenient with assert. - list[i] = undefined; - continue; - } - this$1.relativeOffset = start; - if (itemCallback) { - var subOffsets = this$1.parseOffset16List(); - var subList = new Array(subOffsets.length); - for (var j = 0; j < subOffsets.length; j++) { - this$1.relativeOffset = start + subOffsets[j]; - subList[j] = itemCallback.call(this$1); - } - list[i] = subList; - } else { - list[i] = this$1.parseUShortList(); - } - } - this.relativeOffset = relativeOffset; - return list; - }; - - ///// Complex tables parsing ////////////////////////////////// - - // Parse a coverage table in a GSUB, GPOS or GDEF table. - // https://www.microsoft.com/typography/OTSPEC/chapter2.htm - // parser.offset must point to the start of the table containing the coverage. - Parser.prototype.parseCoverage = function() { - var this$1 = this; - - var startOffset = this.offset + this.relativeOffset; - var format = this.parseUShort(); - var count = this.parseUShort(); - if (format === 1) { - return { - format: 1, - glyphs: this.parseUShortList(count) - }; - } else if (format === 2) { - var ranges = new Array(count); - for (var i = 0; i < count; i++) { - ranges[i] = { - start: this$1.parseUShort(), - end: this$1.parseUShort(), - index: this$1.parseUShort() - }; - } - return { - format: 2, - ranges: ranges - }; - } - throw new Error( - '0x' + startOffset.toString(16) + ': Coverage format must be 1 or 2.' - ); - }; - - // Parse a Class Definition Table in a GSUB, GPOS or GDEF table. - // https://www.microsoft.com/typography/OTSPEC/chapter2.htm - Parser.prototype.parseClassDef = function() { - var startOffset = this.offset + this.relativeOffset; - var format = this.parseUShort(); - if (format === 1) { - return { - format: 1, - startGlyph: this.parseUShort(), - classes: this.parseUShortList() - }; - } else if (format === 2) { - return { - format: 2, - ranges: this.parseRecordList({ - start: Parser.uShort, - end: Parser.uShort, - classId: Parser.uShort - }) - }; - } - throw new Error( - '0x' + startOffset.toString(16) + ': ClassDef format must be 1 or 2.' - ); - }; - - ///// Static methods /////////////////////////////////// - // These convenience methods can be used as callbacks and should be called with "this" context set to a Parser instance. - - Parser.list = function(count, itemCallback) { - return function() { - return this.parseList(count, itemCallback); - }; - }; - - Parser.list32 = function(count, itemCallback) { - return function() { - return this.parseList32(count, itemCallback); - }; - }; - - Parser.recordList = function(count, recordDescription) { - return function() { - return this.parseRecordList(count, recordDescription); - }; - }; - - Parser.recordList32 = function(count, recordDescription) { - return function() { - return this.parseRecordList32(count, recordDescription); - }; - }; - - Parser.pointer = function(description) { - return function() { - return this.parsePointer(description); - }; - }; - - Parser.pointer32 = function(description) { - return function() { - return this.parsePointer32(description); - }; - }; - - Parser.tag = Parser.prototype.parseTag; - Parser.byte = Parser.prototype.parseByte; - Parser.uShort = Parser.offset16 = Parser.prototype.parseUShort; - Parser.uShortList = Parser.prototype.parseUShortList; - Parser.uLong = Parser.offset32 = Parser.prototype.parseULong; - Parser.uLongList = Parser.prototype.parseULongList; - Parser.struct = Parser.prototype.parseStruct; - Parser.coverage = Parser.prototype.parseCoverage; - Parser.classDef = Parser.prototype.parseClassDef; - - ///// Script, Feature, Lookup lists /////////////////////////////////////////////// - // https://www.microsoft.com/typography/OTSPEC/chapter2.htm - - var langSysTable = { - reserved: Parser.uShort, - reqFeatureIndex: Parser.uShort, - featureIndexes: Parser.uShortList - }; - - Parser.prototype.parseScriptList = function() { - return ( - this.parsePointer( - Parser.recordList({ - tag: Parser.tag, - script: Parser.pointer({ - defaultLangSys: Parser.pointer(langSysTable), - langSysRecords: Parser.recordList({ - tag: Parser.tag, - langSys: Parser.pointer(langSysTable) - }) - }) - }) - ) || [] - ); - }; - - Parser.prototype.parseFeatureList = function() { - return ( - this.parsePointer( - Parser.recordList({ - tag: Parser.tag, - feature: Parser.pointer({ - featureParams: Parser.offset16, - lookupListIndexes: Parser.uShortList - }) - }) - ) || [] - ); - }; - - Parser.prototype.parseLookupList = function(lookupTableParsers) { - return ( - this.parsePointer( - Parser.list( - Parser.pointer(function() { - var lookupType = this.parseUShort(); - check.argument( - 1 <= lookupType && lookupType <= 9, - 'GPOS/GSUB lookup type ' + lookupType + ' unknown.' - ); - var lookupFlag = this.parseUShort(); - var useMarkFilteringSet = lookupFlag & 0x10; - return { - lookupType: lookupType, - lookupFlag: lookupFlag, - subtables: this.parseList( - Parser.pointer(lookupTableParsers[lookupType]) - ), - markFilteringSet: useMarkFilteringSet - ? this.parseUShort() - : undefined - }; - }) - ) - ) || [] - ); - }; - - Parser.prototype.parseFeatureVariationsList = function() { - return ( - this.parsePointer32(function() { - var majorVersion = this.parseUShort(); - var minorVersion = this.parseUShort(); - check.argument( - majorVersion === 1 && minorVersion < 1, - 'GPOS/GSUB feature variations table unknown.' - ); - var featureVariations = this.parseRecordList32({ - conditionSetOffset: Parser.offset32, - featureTableSubstitutionOffset: Parser.offset32 - }); - return featureVariations; - }) || [] - ); - }; - - var parse = { - getByte: getByte, - getCard8: getByte, - getUShort: getUShort, - getCard16: getUShort, - getShort: getShort, - getULong: getULong, - getFixed: getFixed, - getTag: getTag, - getOffset: getOffset, - getBytes: getBytes, - bytesToString: bytesToString, - Parser: Parser - }; - - // The `cmap` table stores the mappings from characters to glyphs. - - function parseCmapTableFormat12(cmap, p) { - //Skip reserved. - p.parseUShort(); - - // Length in bytes of the sub-tables. - cmap.length = p.parseULong(); - cmap.language = p.parseULong(); - - var groupCount; - cmap.groupCount = groupCount = p.parseULong(); - cmap.glyphIndexMap = {}; - - for (var i = 0; i < groupCount; i += 1) { - var startCharCode = p.parseULong(); - var endCharCode = p.parseULong(); - var startGlyphId = p.parseULong(); - - for (var c = startCharCode; c <= endCharCode; c += 1) { - cmap.glyphIndexMap[c] = startGlyphId; - startGlyphId++; - } - } - } - - function parseCmapTableFormat4(cmap, p, data, start, offset) { - // Length in bytes of the sub-tables. - cmap.length = p.parseUShort(); - cmap.language = p.parseUShort(); - - // segCount is stored x 2. - var segCount; - cmap.segCount = segCount = p.parseUShort() >> 1; - - // Skip searchRange, entrySelector, rangeShift. - p.skip('uShort', 3); - - // The "unrolled" mapping from character codes to glyph indices. - cmap.glyphIndexMap = {}; - var endCountParser = new parse.Parser(data, start + offset + 14); - var startCountParser = new parse.Parser( - data, - start + offset + 16 + segCount * 2 - ); - var idDeltaParser = new parse.Parser( - data, - start + offset + 16 + segCount * 4 - ); - var idRangeOffsetParser = new parse.Parser( - data, - start + offset + 16 + segCount * 6 - ); - var glyphIndexOffset = start + offset + 16 + segCount * 8; - for (var i = 0; i < segCount - 1; i += 1) { - var glyphIndex = void 0; - var endCount = endCountParser.parseUShort(); - var startCount = startCountParser.parseUShort(); - var idDelta = idDeltaParser.parseShort(); - var idRangeOffset = idRangeOffsetParser.parseUShort(); - for (var c = startCount; c <= endCount; c += 1) { - if (idRangeOffset !== 0) { - // The idRangeOffset is relative to the current position in the idRangeOffset array. - // Take the current offset in the idRangeOffset array. - glyphIndexOffset = - idRangeOffsetParser.offset + idRangeOffsetParser.relativeOffset - 2; - - // Add the value of the idRangeOffset, which will move us into the glyphIndex array. - glyphIndexOffset += idRangeOffset; - - // Then add the character index of the current segment, multiplied by 2 for USHORTs. - glyphIndexOffset += (c - startCount) * 2; - glyphIndex = parse.getUShort(data, glyphIndexOffset); - if (glyphIndex !== 0) { - glyphIndex = (glyphIndex + idDelta) & 0xffff; - } - } else { - glyphIndex = (c + idDelta) & 0xffff; - } - - cmap.glyphIndexMap[c] = glyphIndex; - } - } - } - - // Parse the `cmap` table. This table stores the mappings from characters to glyphs. - // There are many available formats, but we only support the Windows format 4 and 12. - // This function returns a `CmapEncoding` object or null if no supported format could be found. - function parseCmapTable(data, start) { - var cmap = {}; - cmap.version = parse.getUShort(data, start); - check.argument(cmap.version === 0, 'cmap table version should be 0.'); - - // The cmap table can contain many sub-tables, each with their own format. - // We're only interested in a "platform 0" (Unicode format) and "platform 3" (Windows format) table. - cmap.numTables = parse.getUShort(data, start + 2); - var offset = -1; - for (var i = cmap.numTables - 1; i >= 0; i -= 1) { - var platformId = parse.getUShort(data, start + 4 + i * 8); - var encodingId = parse.getUShort(data, start + 4 + i * 8 + 2); - if ( - (platformId === 3 && - (encodingId === 0 || encodingId === 1 || encodingId === 10)) || - (platformId === 0 && - (encodingId === 0 || - encodingId === 1 || - encodingId === 2 || - encodingId === 3 || - encodingId === 4)) - ) { - offset = parse.getULong(data, start + 4 + i * 8 + 4); - break; - } - } - - if (offset === -1) { - // There is no cmap table in the font that we support. - throw new Error('No valid cmap sub-tables found.'); - } - - var p = new parse.Parser(data, start + offset); - cmap.format = p.parseUShort(); - - if (cmap.format === 12) { - parseCmapTableFormat12(cmap, p); - } else if (cmap.format === 4) { - parseCmapTableFormat4(cmap, p, data, start, offset); - } else { - throw new Error( - 'Only format 4 and 12 cmap tables are supported (found format ' + - cmap.format + - ').' - ); - } - - return cmap; - } - - function addSegment(t, code, glyphIndex) { - t.segments.push({ - end: code, - start: code, - delta: -(code - glyphIndex), - offset: 0, - glyphIndex: glyphIndex - }); - } - - function addTerminatorSegment(t) { - t.segments.push({ - end: 0xffff, - start: 0xffff, - delta: 1, - offset: 0 - }); - } - - // Make cmap table, format 4 by default, 12 if needed only - function makeCmapTable(glyphs) { - // Plan 0 is the base Unicode Plan but emojis, for example are on another plan, and needs cmap 12 format (with 32bit) - var isPlan0Only = true; - var i; - - // Check if we need to add cmap format 12 or if format 4 only is fine - for (i = glyphs.length - 1; i > 0; i -= 1) { - var g = glyphs.get(i); - if (g.unicode > 65535) { - isPlan0Only = false; - break; - } - } - - var cmapTable = [ - { name: 'version', type: 'USHORT', value: 0 }, - { name: 'numTables', type: 'USHORT', value: isPlan0Only ? 1 : 2 }, - - // CMAP 4 header - { name: 'platformID', type: 'USHORT', value: 3 }, - { name: 'encodingID', type: 'USHORT', value: 1 }, - { name: 'offset', type: 'ULONG', value: isPlan0Only ? 12 : 12 + 8 } - ]; - - if (!isPlan0Only) { - cmapTable = cmapTable.concat([ - // CMAP 12 header - { name: 'cmap12PlatformID', type: 'USHORT', value: 3 }, // We encode only for PlatformID = 3 (Windows) because it is supported everywhere - { name: 'cmap12EncodingID', type: 'USHORT', value: 10 }, - { name: 'cmap12Offset', type: 'ULONG', value: 0 } - ]); - } - - cmapTable = cmapTable.concat([ - // CMAP 4 Subtable - { name: 'format', type: 'USHORT', value: 4 }, - { name: 'cmap4Length', type: 'USHORT', value: 0 }, - { name: 'language', type: 'USHORT', value: 0 }, - { name: 'segCountX2', type: 'USHORT', value: 0 }, - { name: 'searchRange', type: 'USHORT', value: 0 }, - { name: 'entrySelector', type: 'USHORT', value: 0 }, - { name: 'rangeShift', type: 'USHORT', value: 0 } - ]); - - var t = new table.Table('cmap', cmapTable); - - t.segments = []; - for (i = 0; i < glyphs.length; i += 1) { - var glyph = glyphs.get(i); - for (var j = 0; j < glyph.unicodes.length; j += 1) { - addSegment(t, glyph.unicodes[j], i); - } - - t.segments = t.segments.sort(function(a, b) { - return a.start - b.start; - }); - } - - addTerminatorSegment(t); - - var segCount = t.segments.length; - var segCountToRemove = 0; - - // CMAP 4 - // Set up parallel segment arrays. - var endCounts = []; - var startCounts = []; - var idDeltas = []; - var idRangeOffsets = []; - var glyphIds = []; - - // CMAP 12 - var cmap12Groups = []; - - // Reminder this loop is not following the specification at 100% - // The specification -> find suites of characters and make a group - // Here we're doing one group for each letter - // Doing as the spec can save 8 times (or more) space - for (i = 0; i < segCount; i += 1) { - var segment = t.segments[i]; - - // CMAP 4 - if (segment.end <= 65535 && segment.start <= 65535) { - endCounts = endCounts.concat({ - name: 'end_' + i, - type: 'USHORT', - value: segment.end - }); - startCounts = startCounts.concat({ - name: 'start_' + i, - type: 'USHORT', - value: segment.start - }); - idDeltas = idDeltas.concat({ - name: 'idDelta_' + i, - type: 'SHORT', - value: segment.delta - }); - idRangeOffsets = idRangeOffsets.concat({ - name: 'idRangeOffset_' + i, - type: 'USHORT', - value: segment.offset - }); - if (segment.glyphId !== undefined) { - glyphIds = glyphIds.concat({ - name: 'glyph_' + i, - type: 'USHORT', - value: segment.glyphId - }); - } - } else { - // Skip Unicode > 65535 (16bit unsigned max) for CMAP 4, will be added in CMAP 12 - segCountToRemove += 1; - } - - // CMAP 12 - // Skip Terminator Segment - if (!isPlan0Only && segment.glyphIndex !== undefined) { - cmap12Groups = cmap12Groups.concat({ - name: 'cmap12Start_' + i, - type: 'ULONG', - value: segment.start - }); - cmap12Groups = cmap12Groups.concat({ - name: 'cmap12End_' + i, - type: 'ULONG', - value: segment.end - }); - cmap12Groups = cmap12Groups.concat({ - name: 'cmap12Glyph_' + i, - type: 'ULONG', - value: segment.glyphIndex - }); - } - } - - // CMAP 4 Subtable - t.segCountX2 = (segCount - segCountToRemove) * 2; - t.searchRange = - Math.pow( - 2, - Math.floor(Math.log(segCount - segCountToRemove) / Math.log(2)) - ) * 2; - t.entrySelector = Math.log(t.searchRange / 2) / Math.log(2); - t.rangeShift = t.segCountX2 - t.searchRange; - - t.fields = t.fields.concat(endCounts); - t.fields.push({ name: 'reservedPad', type: 'USHORT', value: 0 }); - t.fields = t.fields.concat(startCounts); - t.fields = t.fields.concat(idDeltas); - t.fields = t.fields.concat(idRangeOffsets); - t.fields = t.fields.concat(glyphIds); - - t.cmap4Length = - 14 + // Subtable header - endCounts.length * 2 + - 2 + // reservedPad - startCounts.length * 2 + - idDeltas.length * 2 + - idRangeOffsets.length * 2 + - glyphIds.length * 2; - - if (!isPlan0Only) { - // CMAP 12 Subtable - var cmap12Length = - 16 + // Subtable header - cmap12Groups.length * 4; - - t.cmap12Offset = 12 + 2 * 2 + 4 + t.cmap4Length; - t.fields = t.fields.concat([ - { name: 'cmap12Format', type: 'USHORT', value: 12 }, - { name: 'cmap12Reserved', type: 'USHORT', value: 0 }, - { name: 'cmap12Length', type: 'ULONG', value: cmap12Length }, - { name: 'cmap12Language', type: 'ULONG', value: 0 }, - { name: 'cmap12nGroups', type: 'ULONG', value: cmap12Groups.length / 3 } - ]); - - t.fields = t.fields.concat(cmap12Groups); - } - - return t; - } - - var cmap = { parse: parseCmapTable, make: makeCmapTable }; - - // Glyph encoding - - var cffStandardStrings = [ - '.notdef', - 'space', - 'exclam', - 'quotedbl', - 'numbersign', - 'dollar', - 'percent', - 'ampersand', - 'quoteright', - 'parenleft', - 'parenright', - 'asterisk', - 'plus', - 'comma', - 'hyphen', - 'period', - 'slash', - 'zero', - 'one', - 'two', - 'three', - 'four', - 'five', - 'six', - 'seven', - 'eight', - 'nine', - 'colon', - 'semicolon', - 'less', - 'equal', - 'greater', - 'question', - 'at', - 'A', - 'B', - 'C', - 'D', - 'E', - 'F', - 'G', - 'H', - 'I', - 'J', - 'K', - 'L', - 'M', - 'N', - 'O', - 'P', - 'Q', - 'R', - 'S', - 'T', - 'U', - 'V', - 'W', - 'X', - 'Y', - 'Z', - 'bracketleft', - 'backslash', - 'bracketright', - 'asciicircum', - 'underscore', - 'quoteleft', - 'a', - 'b', - 'c', - 'd', - 'e', - 'f', - 'g', - 'h', - 'i', - 'j', - 'k', - 'l', - 'm', - 'n', - 'o', - 'p', - 'q', - 'r', - 's', - 't', - 'u', - 'v', - 'w', - 'x', - 'y', - 'z', - 'braceleft', - 'bar', - 'braceright', - 'asciitilde', - 'exclamdown', - 'cent', - 'sterling', - 'fraction', - 'yen', - 'florin', - 'section', - 'currency', - 'quotesingle', - 'quotedblleft', - 'guillemotleft', - 'guilsinglleft', - 'guilsinglright', - 'fi', - 'fl', - 'endash', - 'dagger', - 'daggerdbl', - 'periodcentered', - 'paragraph', - 'bullet', - 'quotesinglbase', - 'quotedblbase', - 'quotedblright', - 'guillemotright', - 'ellipsis', - 'perthousand', - 'questiondown', - 'grave', - 'acute', - 'circumflex', - 'tilde', - 'macron', - 'breve', - 'dotaccent', - 'dieresis', - 'ring', - 'cedilla', - 'hungarumlaut', - 'ogonek', - 'caron', - 'emdash', - 'AE', - 'ordfeminine', - 'Lslash', - 'Oslash', - 'OE', - 'ordmasculine', - 'ae', - 'dotlessi', - 'lslash', - 'oslash', - 'oe', - 'germandbls', - 'onesuperior', - 'logicalnot', - 'mu', - 'trademark', - 'Eth', - 'onehalf', - 'plusminus', - 'Thorn', - 'onequarter', - 'divide', - 'brokenbar', - 'degree', - 'thorn', - 'threequarters', - 'twosuperior', - 'registered', - 'minus', - 'eth', - 'multiply', - 'threesuperior', - 'copyright', - 'Aacute', - 'Acircumflex', - 'Adieresis', - 'Agrave', - 'Aring', - 'Atilde', - 'Ccedilla', - 'Eacute', - 'Ecircumflex', - 'Edieresis', - 'Egrave', - 'Iacute', - 'Icircumflex', - 'Idieresis', - 'Igrave', - 'Ntilde', - 'Oacute', - 'Ocircumflex', - 'Odieresis', - 'Ograve', - 'Otilde', - 'Scaron', - 'Uacute', - 'Ucircumflex', - 'Udieresis', - 'Ugrave', - 'Yacute', - 'Ydieresis', - 'Zcaron', - 'aacute', - 'acircumflex', - 'adieresis', - 'agrave', - 'aring', - 'atilde', - 'ccedilla', - 'eacute', - 'ecircumflex', - 'edieresis', - 'egrave', - 'iacute', - 'icircumflex', - 'idieresis', - 'igrave', - 'ntilde', - 'oacute', - 'ocircumflex', - 'odieresis', - 'ograve', - 'otilde', - 'scaron', - 'uacute', - 'ucircumflex', - 'udieresis', - 'ugrave', - 'yacute', - 'ydieresis', - 'zcaron', - 'exclamsmall', - 'Hungarumlautsmall', - 'dollaroldstyle', - 'dollarsuperior', - 'ampersandsmall', - 'Acutesmall', - 'parenleftsuperior', - 'parenrightsuperior', - '266 ff', - 'onedotenleader', - 'zerooldstyle', - 'oneoldstyle', - 'twooldstyle', - 'threeoldstyle', - 'fouroldstyle', - 'fiveoldstyle', - 'sixoldstyle', - 'sevenoldstyle', - 'eightoldstyle', - 'nineoldstyle', - 'commasuperior', - 'threequartersemdash', - 'periodsuperior', - 'questionsmall', - 'asuperior', - 'bsuperior', - 'centsuperior', - 'dsuperior', - 'esuperior', - 'isuperior', - 'lsuperior', - 'msuperior', - 'nsuperior', - 'osuperior', - 'rsuperior', - 'ssuperior', - 'tsuperior', - 'ff', - 'ffi', - 'ffl', - 'parenleftinferior', - 'parenrightinferior', - 'Circumflexsmall', - 'hyphensuperior', - 'Gravesmall', - 'Asmall', - 'Bsmall', - 'Csmall', - 'Dsmall', - 'Esmall', - 'Fsmall', - 'Gsmall', - 'Hsmall', - 'Ismall', - 'Jsmall', - 'Ksmall', - 'Lsmall', - 'Msmall', - 'Nsmall', - 'Osmall', - 'Psmall', - 'Qsmall', - 'Rsmall', - 'Ssmall', - 'Tsmall', - 'Usmall', - 'Vsmall', - 'Wsmall', - 'Xsmall', - 'Ysmall', - 'Zsmall', - 'colonmonetary', - 'onefitted', - 'rupiah', - 'Tildesmall', - 'exclamdownsmall', - 'centoldstyle', - 'Lslashsmall', - 'Scaronsmall', - 'Zcaronsmall', - 'Dieresissmall', - 'Brevesmall', - 'Caronsmall', - 'Dotaccentsmall', - 'Macronsmall', - 'figuredash', - 'hypheninferior', - 'Ogoneksmall', - 'Ringsmall', - 'Cedillasmall', - 'questiondownsmall', - 'oneeighth', - 'threeeighths', - 'fiveeighths', - 'seveneighths', - 'onethird', - 'twothirds', - 'zerosuperior', - 'foursuperior', - 'fivesuperior', - 'sixsuperior', - 'sevensuperior', - 'eightsuperior', - 'ninesuperior', - 'zeroinferior', - 'oneinferior', - 'twoinferior', - 'threeinferior', - 'fourinferior', - 'fiveinferior', - 'sixinferior', - 'seveninferior', - 'eightinferior', - 'nineinferior', - 'centinferior', - 'dollarinferior', - 'periodinferior', - 'commainferior', - 'Agravesmall', - 'Aacutesmall', - 'Acircumflexsmall', - 'Atildesmall', - 'Adieresissmall', - 'Aringsmall', - 'AEsmall', - 'Ccedillasmall', - 'Egravesmall', - 'Eacutesmall', - 'Ecircumflexsmall', - 'Edieresissmall', - 'Igravesmall', - 'Iacutesmall', - 'Icircumflexsmall', - 'Idieresissmall', - 'Ethsmall', - 'Ntildesmall', - 'Ogravesmall', - 'Oacutesmall', - 'Ocircumflexsmall', - 'Otildesmall', - 'Odieresissmall', - 'OEsmall', - 'Oslashsmall', - 'Ugravesmall', - 'Uacutesmall', - 'Ucircumflexsmall', - 'Udieresissmall', - 'Yacutesmall', - 'Thornsmall', - 'Ydieresissmall', - '001.000', - '001.001', - '001.002', - '001.003', - 'Black', - 'Bold', - 'Book', - 'Light', - 'Medium', - 'Regular', - 'Roman', - 'Semibold' - ]; - - var cffStandardEncoding = [ - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - 'space', - 'exclam', - 'quotedbl', - 'numbersign', - 'dollar', - 'percent', - 'ampersand', - 'quoteright', - 'parenleft', - 'parenright', - 'asterisk', - 'plus', - 'comma', - 'hyphen', - 'period', - 'slash', - 'zero', - 'one', - 'two', - 'three', - 'four', - 'five', - 'six', - 'seven', - 'eight', - 'nine', - 'colon', - 'semicolon', - 'less', - 'equal', - 'greater', - 'question', - 'at', - 'A', - 'B', - 'C', - 'D', - 'E', - 'F', - 'G', - 'H', - 'I', - 'J', - 'K', - 'L', - 'M', - 'N', - 'O', - 'P', - 'Q', - 'R', - 'S', - 'T', - 'U', - 'V', - 'W', - 'X', - 'Y', - 'Z', - 'bracketleft', - 'backslash', - 'bracketright', - 'asciicircum', - 'underscore', - 'quoteleft', - 'a', - 'b', - 'c', - 'd', - 'e', - 'f', - 'g', - 'h', - 'i', - 'j', - 'k', - 'l', - 'm', - 'n', - 'o', - 'p', - 'q', - 'r', - 's', - 't', - 'u', - 'v', - 'w', - 'x', - 'y', - 'z', - 'braceleft', - 'bar', - 'braceright', - 'asciitilde', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - 'exclamdown', - 'cent', - 'sterling', - 'fraction', - 'yen', - 'florin', - 'section', - 'currency', - 'quotesingle', - 'quotedblleft', - 'guillemotleft', - 'guilsinglleft', - 'guilsinglright', - 'fi', - 'fl', - '', - 'endash', - 'dagger', - 'daggerdbl', - 'periodcentered', - '', - 'paragraph', - 'bullet', - 'quotesinglbase', - 'quotedblbase', - 'quotedblright', - 'guillemotright', - 'ellipsis', - 'perthousand', - '', - 'questiondown', - '', - 'grave', - 'acute', - 'circumflex', - 'tilde', - 'macron', - 'breve', - 'dotaccent', - 'dieresis', - '', - 'ring', - 'cedilla', - '', - 'hungarumlaut', - 'ogonek', - 'caron', - 'emdash', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - 'AE', - '', - 'ordfeminine', - '', - '', - '', - '', - 'Lslash', - 'Oslash', - 'OE', - 'ordmasculine', - '', - '', - '', - '', - '', - 'ae', - '', - '', - '', - 'dotlessi', - '', - '', - 'lslash', - 'oslash', - 'oe', - 'germandbls' - ]; - - var cffExpertEncoding = [ - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - 'space', - 'exclamsmall', - 'Hungarumlautsmall', - '', - 'dollaroldstyle', - 'dollarsuperior', - 'ampersandsmall', - 'Acutesmall', - 'parenleftsuperior', - 'parenrightsuperior', - 'twodotenleader', - 'onedotenleader', - 'comma', - 'hyphen', - 'period', - 'fraction', - 'zerooldstyle', - 'oneoldstyle', - 'twooldstyle', - 'threeoldstyle', - 'fouroldstyle', - 'fiveoldstyle', - 'sixoldstyle', - 'sevenoldstyle', - 'eightoldstyle', - 'nineoldstyle', - 'colon', - 'semicolon', - 'commasuperior', - 'threequartersemdash', - 'periodsuperior', - 'questionsmall', - '', - 'asuperior', - 'bsuperior', - 'centsuperior', - 'dsuperior', - 'esuperior', - '', - '', - 'isuperior', - '', - '', - 'lsuperior', - 'msuperior', - 'nsuperior', - 'osuperior', - '', - '', - 'rsuperior', - 'ssuperior', - 'tsuperior', - '', - 'ff', - 'fi', - 'fl', - 'ffi', - 'ffl', - 'parenleftinferior', - '', - 'parenrightinferior', - 'Circumflexsmall', - 'hyphensuperior', - 'Gravesmall', - 'Asmall', - 'Bsmall', - 'Csmall', - 'Dsmall', - 'Esmall', - 'Fsmall', - 'Gsmall', - 'Hsmall', - 'Ismall', - 'Jsmall', - 'Ksmall', - 'Lsmall', - 'Msmall', - 'Nsmall', - 'Osmall', - 'Psmall', - 'Qsmall', - 'Rsmall', - 'Ssmall', - 'Tsmall', - 'Usmall', - 'Vsmall', - 'Wsmall', - 'Xsmall', - 'Ysmall', - 'Zsmall', - 'colonmonetary', - 'onefitted', - 'rupiah', - 'Tildesmall', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - '', - 'exclamdownsmall', - 'centoldstyle', - 'Lslashsmall', - '', - '', - 'Scaronsmall', - 'Zcaronsmall', - 'Dieresissmall', - 'Brevesmall', - 'Caronsmall', - '', - 'Dotaccentsmall', - '', - '', - 'Macronsmall', - '', - '', - 'figuredash', - 'hypheninferior', - '', - '', - 'Ogoneksmall', - 'Ringsmall', - 'Cedillasmall', - '', - '', - '', - 'onequarter', - 'onehalf', - 'threequarters', - 'questiondownsmall', - 'oneeighth', - 'threeeighths', - 'fiveeighths', - 'seveneighths', - 'onethird', - 'twothirds', - '', - '', - 'zerosuperior', - 'onesuperior', - 'twosuperior', - 'threesuperior', - 'foursuperior', - 'fivesuperior', - 'sixsuperior', - 'sevensuperior', - 'eightsuperior', - 'ninesuperior', - 'zeroinferior', - 'oneinferior', - 'twoinferior', - 'threeinferior', - 'fourinferior', - 'fiveinferior', - 'sixinferior', - 'seveninferior', - 'eightinferior', - 'nineinferior', - 'centinferior', - 'dollarinferior', - 'periodinferior', - 'commainferior', - 'Agravesmall', - 'Aacutesmall', - 'Acircumflexsmall', - 'Atildesmall', - 'Adieresissmall', - 'Aringsmall', - 'AEsmall', - 'Ccedillasmall', - 'Egravesmall', - 'Eacutesmall', - 'Ecircumflexsmall', - 'Edieresissmall', - 'Igravesmall', - 'Iacutesmall', - 'Icircumflexsmall', - 'Idieresissmall', - 'Ethsmall', - 'Ntildesmall', - 'Ogravesmall', - 'Oacutesmall', - 'Ocircumflexsmall', - 'Otildesmall', - 'Odieresissmall', - 'OEsmall', - 'Oslashsmall', - 'Ugravesmall', - 'Uacutesmall', - 'Ucircumflexsmall', - 'Udieresissmall', - 'Yacutesmall', - 'Thornsmall', - 'Ydieresissmall' - ]; - - var standardNames = [ - '.notdef', - '.null', - 'nonmarkingreturn', - 'space', - 'exclam', - 'quotedbl', - 'numbersign', - 'dollar', - 'percent', - 'ampersand', - 'quotesingle', - 'parenleft', - 'parenright', - 'asterisk', - 'plus', - 'comma', - 'hyphen', - 'period', - 'slash', - 'zero', - 'one', - 'two', - 'three', - 'four', - 'five', - 'six', - 'seven', - 'eight', - 'nine', - 'colon', - 'semicolon', - 'less', - 'equal', - 'greater', - 'question', - 'at', - 'A', - 'B', - 'C', - 'D', - 'E', - 'F', - 'G', - 'H', - 'I', - 'J', - 'K', - 'L', - 'M', - 'N', - 'O', - 'P', - 'Q', - 'R', - 'S', - 'T', - 'U', - 'V', - 'W', - 'X', - 'Y', - 'Z', - 'bracketleft', - 'backslash', - 'bracketright', - 'asciicircum', - 'underscore', - 'grave', - 'a', - 'b', - 'c', - 'd', - 'e', - 'f', - 'g', - 'h', - 'i', - 'j', - 'k', - 'l', - 'm', - 'n', - 'o', - 'p', - 'q', - 'r', - 's', - 't', - 'u', - 'v', - 'w', - 'x', - 'y', - 'z', - 'braceleft', - 'bar', - 'braceright', - 'asciitilde', - 'Adieresis', - 'Aring', - 'Ccedilla', - 'Eacute', - 'Ntilde', - 'Odieresis', - 'Udieresis', - 'aacute', - 'agrave', - 'acircumflex', - 'adieresis', - 'atilde', - 'aring', - 'ccedilla', - 'eacute', - 'egrave', - 'ecircumflex', - 'edieresis', - 'iacute', - 'igrave', - 'icircumflex', - 'idieresis', - 'ntilde', - 'oacute', - 'ograve', - 'ocircumflex', - 'odieresis', - 'otilde', - 'uacute', - 'ugrave', - 'ucircumflex', - 'udieresis', - 'dagger', - 'degree', - 'cent', - 'sterling', - 'section', - 'bullet', - 'paragraph', - 'germandbls', - 'registered', - 'copyright', - 'trademark', - 'acute', - 'dieresis', - 'notequal', - 'AE', - 'Oslash', - 'infinity', - 'plusminus', - 'lessequal', - 'greaterequal', - 'yen', - 'mu', - 'partialdiff', - 'summation', - 'product', - 'pi', - 'integral', - 'ordfeminine', - 'ordmasculine', - 'Omega', - 'ae', - 'oslash', - 'questiondown', - 'exclamdown', - 'logicalnot', - 'radical', - 'florin', - 'approxequal', - 'Delta', - 'guillemotleft', - 'guillemotright', - 'ellipsis', - 'nonbreakingspace', - 'Agrave', - 'Atilde', - 'Otilde', - 'OE', - 'oe', - 'endash', - 'emdash', - 'quotedblleft', - 'quotedblright', - 'quoteleft', - 'quoteright', - 'divide', - 'lozenge', - 'ydieresis', - 'Ydieresis', - 'fraction', - 'currency', - 'guilsinglleft', - 'guilsinglright', - 'fi', - 'fl', - 'daggerdbl', - 'periodcentered', - 'quotesinglbase', - 'quotedblbase', - 'perthousand', - 'Acircumflex', - 'Ecircumflex', - 'Aacute', - 'Edieresis', - 'Egrave', - 'Iacute', - 'Icircumflex', - 'Idieresis', - 'Igrave', - 'Oacute', - 'Ocircumflex', - 'apple', - 'Ograve', - 'Uacute', - 'Ucircumflex', - 'Ugrave', - 'dotlessi', - 'circumflex', - 'tilde', - 'macron', - 'breve', - 'dotaccent', - 'ring', - 'cedilla', - 'hungarumlaut', - 'ogonek', - 'caron', - 'Lslash', - 'lslash', - 'Scaron', - 'scaron', - 'Zcaron', - 'zcaron', - 'brokenbar', - 'Eth', - 'eth', - 'Yacute', - 'yacute', - 'Thorn', - 'thorn', - 'minus', - 'multiply', - 'onesuperior', - 'twosuperior', - 'threesuperior', - 'onehalf', - 'onequarter', - 'threequarters', - 'franc', - 'Gbreve', - 'gbreve', - 'Idotaccent', - 'Scedilla', - 'scedilla', - 'Cacute', - 'cacute', - 'Ccaron', - 'ccaron', - 'dcroat' - ]; - - /** - * This is the encoding used for fonts created from scratch. - * It loops through all glyphs and finds the appropriate unicode value. - * Since it's linear time, other encodings will be faster. - * @exports opentype.DefaultEncoding - * @class - * @constructor - * @param {opentype.Font} - */ - function DefaultEncoding(font) { - this.font = font; - } - - DefaultEncoding.prototype.charToGlyphIndex = function(c) { - var code = c.codePointAt(0); - var glyphs = this.font.glyphs; - if (glyphs) { - for (var i = 0; i < glyphs.length; i += 1) { - var glyph = glyphs.get(i); - for (var j = 0; j < glyph.unicodes.length; j += 1) { - if (glyph.unicodes[j] === code) { - return i; - } - } - } - } - return null; - }; - - /** - * @exports opentype.CmapEncoding - * @class - * @constructor - * @param {Object} cmap - a object with the cmap encoded data - */ - function CmapEncoding(cmap) { - this.cmap = cmap; - } - - /** - * @param {string} c - the character - * @return {number} The glyph index. - */ - CmapEncoding.prototype.charToGlyphIndex = function(c) { - return this.cmap.glyphIndexMap[c.codePointAt(0)] || 0; - }; - - /** - * @exports opentype.CffEncoding - * @class - * @constructor - * @param {string} encoding - The encoding - * @param {Array} charset - The character set. - */ - function CffEncoding(encoding, charset) { - this.encoding = encoding; - this.charset = charset; - } - - /** - * @param {string} s - The character - * @return {number} The index. - */ - CffEncoding.prototype.charToGlyphIndex = function(s) { - var code = s.codePointAt(0); - var charName = this.encoding[code]; - return this.charset.indexOf(charName); - }; - - /** - * @exports opentype.GlyphNames - * @class - * @constructor - * @param {Object} post - */ - function GlyphNames(post) { - var this$1 = this; - - switch (post.version) { - case 1: - this.names = standardNames.slice(); - break; - case 2: - this.names = new Array(post.numberOfGlyphs); - for (var i = 0; i < post.numberOfGlyphs; i++) { - if (post.glyphNameIndex[i] < standardNames.length) { - this$1.names[i] = standardNames[post.glyphNameIndex[i]]; - } else { - this$1.names[i] = - post.names[post.glyphNameIndex[i] - standardNames.length]; - } - } - - break; - case 2.5: - this.names = new Array(post.numberOfGlyphs); - for (var i$1 = 0; i$1 < post.numberOfGlyphs; i$1++) { - this$1.names[i$1] = standardNames[i$1 + post.glyphNameIndex[i$1]]; - } - - break; - case 3: - this.names = []; - break; - default: - this.names = []; - break; - } - } - - /** - * Gets the index of a glyph by name. - * @param {string} name - The glyph name - * @return {number} The index - */ - GlyphNames.prototype.nameToGlyphIndex = function(name) { - return this.names.indexOf(name); - }; - - /** - * @param {number} gid - * @return {string} - */ - GlyphNames.prototype.glyphIndexToName = function(gid) { - return this.names[gid]; - }; - - /** - * @alias opentype.addGlyphNames - * @param {opentype.Font} - */ - function addGlyphNames(font) { - var glyph; - var glyphIndexMap = font.tables.cmap.glyphIndexMap; - var charCodes = Object.keys(glyphIndexMap); - - for (var i = 0; i < charCodes.length; i += 1) { - var c = charCodes[i]; - var glyphIndex = glyphIndexMap[c]; - glyph = font.glyphs.get(glyphIndex); - glyph.addUnicode(parseInt(c)); - } - - for (var i$1 = 0; i$1 < font.glyphs.length; i$1 += 1) { - glyph = font.glyphs.get(i$1); - if (font.cffEncoding) { - if (font.isCIDFont) { - glyph.name = 'gid' + i$1; - } else { - glyph.name = font.cffEncoding.charset[i$1]; - } - } else if (font.glyphNames.names) { - glyph.name = font.glyphNames.glyphIndexToName(i$1); - } - } - } - - // Drawing utility functions. - - // Draw a line on the given context from point `x1,y1` to point `x2,y2`. - function line(ctx, x1, y1, x2, y2) { - ctx.beginPath(); - ctx.moveTo(x1, y1); - ctx.lineTo(x2, y2); - ctx.stroke(); - } - - var draw = { line: line }; - - // The Glyph object - // import glyf from './tables/glyf' Can't be imported here, because it's a circular dependency - - function getPathDefinition(glyph, path) { - var _path = path || new Path(); - return { - configurable: true, - - get: function() { - if (typeof _path === 'function') { - _path = _path(); - } - - return _path; - }, - - set: function(p) { - _path = p; - } - }; - } - /** - * @typedef GlyphOptions - * @type Object - * @property {string} [name] - The glyph name - * @property {number} [unicode] - * @property {Array} [unicodes] - * @property {number} [xMin] - * @property {number} [yMin] - * @property {number} [xMax] - * @property {number} [yMax] - * @property {number} [advanceWidth] - */ - - // A Glyph is an individual mark that often corresponds to a character. - // Some glyphs, such as ligatures, are a combination of many characters. - // Glyphs are the basic building blocks of a font. - // - // The `Glyph` class contains utility methods for drawing the path and its points. - /** - * @exports opentype.Glyph - * @class - * @param {GlyphOptions} - * @constructor - */ - function Glyph(options) { - // By putting all the code on a prototype function (which is only declared once) - // we reduce the memory requirements for larger fonts by some 2% - this.bindConstructorValues(options); - } - - /** - * @param {GlyphOptions} - */ - Glyph.prototype.bindConstructorValues = function(options) { - this.index = options.index || 0; - - // These three values cannot be deferred for memory optimization: - this.name = options.name || null; - this.unicode = options.unicode || undefined; - this.unicodes = - options.unicodes || options.unicode !== undefined - ? [options.unicode] - : []; - - // But by binding these values only when necessary, we reduce can - // the memory requirements by almost 3% for larger fonts. - if (options.xMin) { - this.xMin = options.xMin; - } - - if (options.yMin) { - this.yMin = options.yMin; - } - - if (options.xMax) { - this.xMax = options.xMax; - } - - if (options.yMax) { - this.yMax = options.yMax; - } - - if (options.advanceWidth) { - this.advanceWidth = options.advanceWidth; - } - - // The path for a glyph is the most memory intensive, and is bound as a value - // with a getter/setter to ensure we actually do path parsing only once the - // path is actually needed by anything. - Object.defineProperty(this, 'path', getPathDefinition(this, options.path)); - }; - - /** - * @param {number} - */ - Glyph.prototype.addUnicode = function(unicode) { - if (this.unicodes.length === 0) { - this.unicode = unicode; - } - - this.unicodes.push(unicode); - }; - - /** - * Calculate the minimum bounding box for this glyph. - * @return {opentype.BoundingBox} - */ - Glyph.prototype.getBoundingBox = function() { - return this.path.getBoundingBox(); - }; - - /** - * Convert the glyph to a Path we can draw on a drawing context. - * @param {number} [x=0] - Horizontal position of the beginning of the text. - * @param {number} [y=0] - Vertical position of the *baseline* of the text. - * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. - * @param {Object=} options - xScale, yScale to stretch the glyph. - * @param {opentype.Font} if hinting is to be used, the font - * @return {opentype.Path} - */ - Glyph.prototype.getPath = function(x, y, fontSize, options, font) { - x = x !== undefined ? x : 0; - y = y !== undefined ? y : 0; - fontSize = fontSize !== undefined ? fontSize : 72; - var commands; - var hPoints; - if (!options) { - options = {}; - } - var xScale = options.xScale; - var yScale = options.yScale; - - if (options.hinting && font && font.hinting) { - // in case of hinting, the hinting engine takes care - // of scaling the points (not the path) before hinting. - hPoints = this.path && font.hinting.exec(this, fontSize); - // in case the hinting engine failed hPoints is undefined - // and thus reverts to plain rending - } - - if (hPoints) { - // Call font.hinting.getCommands instead of `glyf.getPath(hPoints).commands` to avoid a circular dependency - commands = font.hinting.getCommands(hPoints); - x = Math.round(x); - y = Math.round(y); - // TODO in case of hinting xyScaling is not yet supported - xScale = yScale = 1; - } else { - commands = this.path.commands; - var scale = 1 / this.path.unitsPerEm * fontSize; - if (xScale === undefined) { - xScale = scale; - } - if (yScale === undefined) { - yScale = scale; - } - } - - var p = new Path(); - for (var i = 0; i < commands.length; i += 1) { - var cmd = commands[i]; - if (cmd.type === 'M') { - p.moveTo(x + cmd.x * xScale, y + -cmd.y * yScale); - } else if (cmd.type === 'L') { - p.lineTo(x + cmd.x * xScale, y + -cmd.y * yScale); - } else if (cmd.type === 'Q') { - p.quadraticCurveTo( - x + cmd.x1 * xScale, - y + -cmd.y1 * yScale, - x + cmd.x * xScale, - y + -cmd.y * yScale - ); - } else if (cmd.type === 'C') { - p.curveTo( - x + cmd.x1 * xScale, - y + -cmd.y1 * yScale, - x + cmd.x2 * xScale, - y + -cmd.y2 * yScale, - x + cmd.x * xScale, - y + -cmd.y * yScale - ); - } else if (cmd.type === 'Z') { - p.closePath(); - } - } - - return p; - }; - - /** - * Split the glyph into contours. - * This function is here for backwards compatibility, and to - * provide raw access to the TrueType glyph outlines. - * @return {Array} - */ - Glyph.prototype.getContours = function() { - var this$1 = this; - - if (this.points === undefined) { - return []; - } - - var contours = []; - var currentContour = []; - for (var i = 0; i < this.points.length; i += 1) { - var pt = this$1.points[i]; - currentContour.push(pt); - if (pt.lastPointOfContour) { - contours.push(currentContour); - currentContour = []; - } - } - - check.argument( - currentContour.length === 0, - 'There are still points left in the current contour.' - ); - return contours; - }; - - /** - * Calculate the xMin/yMin/xMax/yMax/lsb/rsb for a Glyph. - * @return {Object} - */ - Glyph.prototype.getMetrics = function() { - var commands = this.path.commands; - var xCoords = []; - var yCoords = []; - for (var i = 0; i < commands.length; i += 1) { - var cmd = commands[i]; - if (cmd.type !== 'Z') { - xCoords.push(cmd.x); - yCoords.push(cmd.y); - } - - if (cmd.type === 'Q' || cmd.type === 'C') { - xCoords.push(cmd.x1); - yCoords.push(cmd.y1); - } - - if (cmd.type === 'C') { - xCoords.push(cmd.x2); - yCoords.push(cmd.y2); - } - } - - var metrics = { - xMin: Math.min.apply(null, xCoords), - yMin: Math.min.apply(null, yCoords), - xMax: Math.max.apply(null, xCoords), - yMax: Math.max.apply(null, yCoords), - leftSideBearing: this.leftSideBearing - }; - - if (!isFinite(metrics.xMin)) { - metrics.xMin = 0; - } - - if (!isFinite(metrics.xMax)) { - metrics.xMax = this.advanceWidth; - } - - if (!isFinite(metrics.yMin)) { - metrics.yMin = 0; - } - - if (!isFinite(metrics.yMax)) { - metrics.yMax = 0; - } - - metrics.rightSideBearing = - this.advanceWidth - - metrics.leftSideBearing - - (metrics.xMax - metrics.xMin); - return metrics; - }; - - /** - * Draw the glyph on the given context. - * @param {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas. - * @param {number} [x=0] - Horizontal position of the beginning of the text. - * @param {number} [y=0] - Vertical position of the *baseline* of the text. - * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. - * @param {Object=} options - xScale, yScale to stretch the glyph. - */ - Glyph.prototype.draw = function(ctx, x, y, fontSize, options) { - this.getPath(x, y, fontSize, options).draw(ctx); - }; - - /** - * Draw the points of the glyph. - * On-curve points will be drawn in blue, off-curve points will be drawn in red. - * @param {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas. - * @param {number} [x=0] - Horizontal position of the beginning of the text. - * @param {number} [y=0] - Vertical position of the *baseline* of the text. - * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. - */ - Glyph.prototype.drawPoints = function(ctx, x, y, fontSize) { - function drawCircles(l, x, y, scale) { - var PI_SQ = Math.PI * 2; - ctx.beginPath(); - for (var j = 0; j < l.length; j += 1) { - ctx.moveTo(x + l[j].x * scale, y + l[j].y * scale); - ctx.arc(x + l[j].x * scale, y + l[j].y * scale, 2, 0, PI_SQ, false); - } - - ctx.closePath(); - ctx.fill(); - } - - x = x !== undefined ? x : 0; - y = y !== undefined ? y : 0; - fontSize = fontSize !== undefined ? fontSize : 24; - var scale = 1 / this.path.unitsPerEm * fontSize; - - var blueCircles = []; - var redCircles = []; - var path = this.path; - for (var i = 0; i < path.commands.length; i += 1) { - var cmd = path.commands[i]; - if (cmd.x !== undefined) { - blueCircles.push({ x: cmd.x, y: -cmd.y }); - } - - if (cmd.x1 !== undefined) { - redCircles.push({ x: cmd.x1, y: -cmd.y1 }); - } - - if (cmd.x2 !== undefined) { - redCircles.push({ x: cmd.x2, y: -cmd.y2 }); - } - } - - ctx.fillStyle = 'blue'; - drawCircles(blueCircles, x, y, scale); - ctx.fillStyle = 'red'; - drawCircles(redCircles, x, y, scale); - }; - - /** - * Draw lines indicating important font measurements. - * Black lines indicate the origin of the coordinate system (point 0,0). - * Blue lines indicate the glyph bounding box. - * Green line indicates the advance width of the glyph. - * @param {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas. - * @param {number} [x=0] - Horizontal position of the beginning of the text. - * @param {number} [y=0] - Vertical position of the *baseline* of the text. - * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. - */ - Glyph.prototype.drawMetrics = function(ctx, x, y, fontSize) { - var scale; - x = x !== undefined ? x : 0; - y = y !== undefined ? y : 0; - fontSize = fontSize !== undefined ? fontSize : 24; - scale = 1 / this.path.unitsPerEm * fontSize; - ctx.lineWidth = 1; - - // Draw the origin - ctx.strokeStyle = 'black'; - draw.line(ctx, x, -10000, x, 10000); - draw.line(ctx, -10000, y, 10000, y); - - // This code is here due to memory optimization: by not using - // defaults in the constructor, we save a notable amount of memory. - var xMin = this.xMin || 0; - var yMin = this.yMin || 0; - var xMax = this.xMax || 0; - var yMax = this.yMax || 0; - var advanceWidth = this.advanceWidth || 0; - - // Draw the glyph box - ctx.strokeStyle = 'blue'; - draw.line(ctx, x + xMin * scale, -10000, x + xMin * scale, 10000); - draw.line(ctx, x + xMax * scale, -10000, x + xMax * scale, 10000); - draw.line(ctx, -10000, y + -yMin * scale, 10000, y + -yMin * scale); - draw.line(ctx, -10000, y + -yMax * scale, 10000, y + -yMax * scale); - - // Draw the advance width - ctx.strokeStyle = 'green'; - draw.line( - ctx, - x + advanceWidth * scale, - -10000, - x + advanceWidth * scale, - 10000 - ); - }; - - // The GlyphSet object - - // Define a property on the glyph that depends on the path being loaded. - function defineDependentProperty(glyph, externalName, internalName) { - Object.defineProperty(glyph, externalName, { - get: function() { - // Request the path property to make sure the path is loaded. - glyph.path; // jshint ignore:line - return glyph[internalName]; - }, - set: function(newValue) { - glyph[internalName] = newValue; - }, - enumerable: true, - configurable: true - }); - } - - /** - * A GlyphSet represents all glyphs available in the font, but modelled using - * a deferred glyph loader, for retrieving glyphs only once they are absolutely - * necessary, to keep the memory footprint down. - * @exports opentype.GlyphSet - * @class - * @param {opentype.Font} - * @param {Array} - */ - function GlyphSet(font, glyphs) { - var this$1 = this; - - this.font = font; - this.glyphs = {}; - if (Array.isArray(glyphs)) { - for (var i = 0; i < glyphs.length; i++) { - this$1.glyphs[i] = glyphs[i]; - } - } - - this.length = (glyphs && glyphs.length) || 0; - } - - /** - * @param {number} index - * @return {opentype.Glyph} - */ - GlyphSet.prototype.get = function(index) { - if (typeof this.glyphs[index] === 'function') { - this.glyphs[index] = this.glyphs[index](); - } - - return this.glyphs[index]; - }; - - /** - * @param {number} index - * @param {Object} - */ - GlyphSet.prototype.push = function(index, loader) { - this.glyphs[index] = loader; - this.length++; - }; - - /** - * @alias opentype.glyphLoader - * @param {opentype.Font} font - * @param {number} index - * @return {opentype.Glyph} - */ - function glyphLoader(font, index) { - return new Glyph({ index: index, font: font }); - } - - /** - * Generate a stub glyph that can be filled with all metadata *except* - * the "points" and "path" properties, which must be loaded only once - * the glyph's path is actually requested for text shaping. - * @alias opentype.ttfGlyphLoader - * @param {opentype.Font} font - * @param {number} index - * @param {Function} parseGlyph - * @param {Object} data - * @param {number} position - * @param {Function} buildPath - * @return {opentype.Glyph} - */ - function ttfGlyphLoader(font, index, parseGlyph, data, position, buildPath) { - return function() { - var glyph = new Glyph({ index: index, font: font }); - - glyph.path = function() { - parseGlyph(glyph, data, position); - var path = buildPath(font.glyphs, glyph); - path.unitsPerEm = font.unitsPerEm; - return path; - }; - - defineDependentProperty(glyph, 'xMin', '_xMin'); - defineDependentProperty(glyph, 'xMax', '_xMax'); - defineDependentProperty(glyph, 'yMin', '_yMin'); - defineDependentProperty(glyph, 'yMax', '_yMax'); - - return glyph; - }; - } - /** - * @alias opentype.cffGlyphLoader - * @param {opentype.Font} font - * @param {number} index - * @param {Function} parseCFFCharstring - * @param {string} charstring - * @return {opentype.Glyph} - */ - function cffGlyphLoader(font, index, parseCFFCharstring, charstring) { - return function() { - var glyph = new Glyph({ index: index, font: font }); - - glyph.path = function() { - var path = parseCFFCharstring(font, glyph, charstring); - path.unitsPerEm = font.unitsPerEm; - return path; - }; - - return glyph; - }; - } - - var glyphset = { - GlyphSet: GlyphSet, - glyphLoader: glyphLoader, - ttfGlyphLoader: ttfGlyphLoader, - cffGlyphLoader: cffGlyphLoader - }; - - // The `CFF` table contains the glyph outlines in PostScript format. - - // Custom equals function that can also check lists. - function equals(a, b) { - if (a === b) { - return true; - } else if (Array.isArray(a) && Array.isArray(b)) { - if (a.length !== b.length) { - return false; - } - - for (var i = 0; i < a.length; i += 1) { - if (!equals(a[i], b[i])) { - return false; - } - } - - return true; - } else { - return false; - } - } - - // Subroutines are encoded using the negative half of the number space. - // See type 2 chapter 4.7 "Subroutine operators". - function calcCFFSubroutineBias(subrs) { - var bias; - if (subrs.length < 1240) { - bias = 107; - } else if (subrs.length < 33900) { - bias = 1131; - } else { - bias = 32768; - } - - return bias; - } - - // Parse a `CFF` INDEX array. - // An index array consists of a list of offsets, then a list of objects at those offsets. - function parseCFFIndex(data, start, conversionFn) { - var offsets = []; - var objects = []; - var count = parse.getCard16(data, start); - var objectOffset; - var endOffset; - if (count !== 0) { - var offsetSize = parse.getByte(data, start + 2); - objectOffset = start + (count + 1) * offsetSize + 2; - var pos = start + 3; - for (var i = 0; i < count + 1; i += 1) { - offsets.push(parse.getOffset(data, pos, offsetSize)); - pos += offsetSize; - } - - // The total size of the index array is 4 header bytes + the value of the last offset. - endOffset = objectOffset + offsets[count]; - } else { - endOffset = start + 2; - } - - for (var i$1 = 0; i$1 < offsets.length - 1; i$1 += 1) { - var value = parse.getBytes( - data, - objectOffset + offsets[i$1], - objectOffset + offsets[i$1 + 1] - ); - if (conversionFn) { - value = conversionFn(value); - } - - objects.push(value); - } - - return { objects: objects, startOffset: start, endOffset: endOffset }; - } - - // Parse a `CFF` DICT real value. - function parseFloatOperand(parser) { - var s = ''; - var eof = 15; - var lookup = [ - '0', - '1', - '2', - '3', - '4', - '5', - '6', - '7', - '8', - '9', - '.', - 'E', - 'E-', - null, - '-' - ]; - while (true) { - var b = parser.parseByte(); - var n1 = b >> 4; - var n2 = b & 15; - - if (n1 === eof) { - break; - } - - s += lookup[n1]; - - if (n2 === eof) { - break; - } - - s += lookup[n2]; - } - - return parseFloat(s); - } - - // Parse a `CFF` DICT operand. - function parseOperand(parser, b0) { - var b1; - var b2; - var b3; - var b4; - if (b0 === 28) { - b1 = parser.parseByte(); - b2 = parser.parseByte(); - return (b1 << 8) | b2; - } - - if (b0 === 29) { - b1 = parser.parseByte(); - b2 = parser.parseByte(); - b3 = parser.parseByte(); - b4 = parser.parseByte(); - return (b1 << 24) | (b2 << 16) | (b3 << 8) | b4; - } - - if (b0 === 30) { - return parseFloatOperand(parser); - } - - if (b0 >= 32 && b0 <= 246) { - return b0 - 139; - } - - if (b0 >= 247 && b0 <= 250) { - b1 = parser.parseByte(); - return (b0 - 247) * 256 + b1 + 108; - } - - if (b0 >= 251 && b0 <= 254) { - b1 = parser.parseByte(); - return -(b0 - 251) * 256 - b1 - 108; - } - - throw new Error('Invalid b0 ' + b0); - } - - // Convert the entries returned by `parseDict` to a proper dictionary. - // If a value is a list of one, it is unpacked. - function entriesToObject(entries) { - var o = {}; - for (var i = 0; i < entries.length; i += 1) { - var key = entries[i][0]; - var values = entries[i][1]; - var value = void 0; - if (values.length === 1) { - value = values[0]; - } else { - value = values; - } - - if (o.hasOwnProperty(key) && !isNaN(o[key])) { - throw new Error('Object ' + o + ' already has key ' + key); - } - - o[key] = value; - } - - return o; - } - - // Parse a `CFF` DICT object. - // A dictionary contains key-value pairs in a compact tokenized format. - function parseCFFDict(data, start, size) { - start = start !== undefined ? start : 0; - var parser = new parse.Parser(data, start); - var entries = []; - var operands = []; - size = size !== undefined ? size : data.length; - - while (parser.relativeOffset < size) { - var op = parser.parseByte(); - - // The first byte for each dict item distinguishes between operator (key) and operand (value). - // Values <= 21 are operators. - if (op <= 21) { - // Two-byte operators have an initial escape byte of 12. - if (op === 12) { - op = 1200 + parser.parseByte(); - } - - entries.push([op, operands]); - operands = []; - } else { - // Since the operands (values) come before the operators (keys), we store all operands in a list - // until we encounter an operator. - operands.push(parseOperand(parser, op)); - } - } - - return entriesToObject(entries); - } - - // Given a String Index (SID), return the value of the string. - // Strings below index 392 are standard CFF strings and are not encoded in the font. - function getCFFString(strings, index) { - if (index <= 390) { - index = cffStandardStrings[index]; - } else { - index = strings[index - 391]; - } - - return index; - } - - // Interpret a dictionary and return a new dictionary with readable keys and values for missing entries. - // This function takes `meta` which is a list of objects containing `operand`, `name` and `default`. - function interpretDict(dict, meta, strings) { - var newDict = {}; - var value; - - // Because we also want to include missing values, we start out from the meta list - // and lookup values in the dict. - for (var i = 0; i < meta.length; i += 1) { - var m = meta[i]; - - if (Array.isArray(m.type)) { - var values = []; - values.length = m.type.length; - for (var j = 0; j < m.type.length; j++) { - value = dict[m.op] !== undefined ? dict[m.op][j] : undefined; - if (value === undefined) { - value = - m.value !== undefined && m.value[j] !== undefined - ? m.value[j] - : null; - } - if (m.type[j] === 'SID') { - value = getCFFString(strings, value); - } - values[j] = value; - } - newDict[m.name] = values; - } else { - value = dict[m.op]; - if (value === undefined) { - value = m.value !== undefined ? m.value : null; - } - - if (m.type === 'SID') { - value = getCFFString(strings, value); - } - newDict[m.name] = value; - } - } - - return newDict; - } - - // Parse the CFF header. - function parseCFFHeader(data, start) { - var header = {}; - header.formatMajor = parse.getCard8(data, start); - header.formatMinor = parse.getCard8(data, start + 1); - header.size = parse.getCard8(data, start + 2); - header.offsetSize = parse.getCard8(data, start + 3); - header.startOffset = start; - header.endOffset = start + 4; - return header; - } - - var TOP_DICT_META = [ - { name: 'version', op: 0, type: 'SID' }, - { name: 'notice', op: 1, type: 'SID' }, - { name: 'copyright', op: 1200, type: 'SID' }, - { name: 'fullName', op: 2, type: 'SID' }, - { name: 'familyName', op: 3, type: 'SID' }, - { name: 'weight', op: 4, type: 'SID' }, - { name: 'isFixedPitch', op: 1201, type: 'number', value: 0 }, - { name: 'italicAngle', op: 1202, type: 'number', value: 0 }, - { name: 'underlinePosition', op: 1203, type: 'number', value: -100 }, - { name: 'underlineThickness', op: 1204, type: 'number', value: 50 }, - { name: 'paintType', op: 1205, type: 'number', value: 0 }, - { name: 'charstringType', op: 1206, type: 'number', value: 2 }, - { - name: 'fontMatrix', - op: 1207, - type: ['real', 'real', 'real', 'real', 'real', 'real'], - value: [0.001, 0, 0, 0.001, 0, 0] - }, - { name: 'uniqueId', op: 13, type: 'number' }, - { - name: 'fontBBox', - op: 5, - type: ['number', 'number', 'number', 'number'], - value: [0, 0, 0, 0] - }, - { name: 'strokeWidth', op: 1208, type: 'number', value: 0 }, - { name: 'xuid', op: 14, type: [], value: null }, - { name: 'charset', op: 15, type: 'offset', value: 0 }, - { name: 'encoding', op: 16, type: 'offset', value: 0 }, - { name: 'charStrings', op: 17, type: 'offset', value: 0 }, - { name: 'private', op: 18, type: ['number', 'offset'], value: [0, 0] }, - { name: 'ros', op: 1230, type: ['SID', 'SID', 'number'] }, - { name: 'cidFontVersion', op: 1231, type: 'number', value: 0 }, - { name: 'cidFontRevision', op: 1232, type: 'number', value: 0 }, - { name: 'cidFontType', op: 1233, type: 'number', value: 0 }, - { name: 'cidCount', op: 1234, type: 'number', value: 8720 }, - { name: 'uidBase', op: 1235, type: 'number' }, - { name: 'fdArray', op: 1236, type: 'offset' }, - { name: 'fdSelect', op: 1237, type: 'offset' }, - { name: 'fontName', op: 1238, type: 'SID' } - ]; - - var PRIVATE_DICT_META = [ - { name: 'subrs', op: 19, type: 'offset', value: 0 }, - { name: 'defaultWidthX', op: 20, type: 'number', value: 0 }, - { name: 'nominalWidthX', op: 21, type: 'number', value: 0 } - ]; - - // Parse the CFF top dictionary. A CFF table can contain multiple fonts, each with their own top dictionary. - // The top dictionary contains the essential metadata for the font, together with the private dictionary. - function parseCFFTopDict(data, strings) { - var dict = parseCFFDict(data, 0, data.byteLength); - return interpretDict(dict, TOP_DICT_META, strings); - } - - // Parse the CFF private dictionary. We don't fully parse out all the values, only the ones we need. - function parseCFFPrivateDict(data, start, size, strings) { - var dict = parseCFFDict(data, start, size); - return interpretDict(dict, PRIVATE_DICT_META, strings); - } - - // Returns a list of "Top DICT"s found using an INDEX list. - // Used to read both the usual high-level Top DICTs and also the FDArray - // discovered inside CID-keyed fonts. When a Top DICT has a reference to - // a Private DICT that is read and saved into the Top DICT. - // - // In addition to the expected/optional values as outlined in TOP_DICT_META - // the following values might be saved into the Top DICT. - // - // _subrs [] array of local CFF subroutines from Private DICT - // _subrsBias bias value computed from number of subroutines - // (see calcCFFSubroutineBias() and parseCFFCharstring()) - // _defaultWidthX default widths for CFF characters - // _nominalWidthX bias added to width embedded within glyph description - // - // _privateDict saved copy of parsed Private DICT from Top DICT - function gatherCFFTopDicts(data, start, cffIndex, strings) { - var topDictArray = []; - for (var iTopDict = 0; iTopDict < cffIndex.length; iTopDict += 1) { - var topDictData = new DataView(new Uint8Array(cffIndex[iTopDict]).buffer); - var topDict = parseCFFTopDict(topDictData, strings); - topDict._subrs = []; - topDict._subrsBias = 0; - var privateSize = topDict.private[0]; - var privateOffset = topDict.private[1]; - if (privateSize !== 0 && privateOffset !== 0) { - var privateDict = parseCFFPrivateDict( - data, - privateOffset + start, - privateSize, - strings - ); - topDict._defaultWidthX = privateDict.defaultWidthX; - topDict._nominalWidthX = privateDict.nominalWidthX; - if (privateDict.subrs !== 0) { - var subrOffset = privateOffset + privateDict.subrs; - var subrIndex = parseCFFIndex(data, subrOffset + start); - topDict._subrs = subrIndex.objects; - topDict._subrsBias = calcCFFSubroutineBias(topDict._subrs); - } - topDict._privateDict = privateDict; - } - topDictArray.push(topDict); - } - return topDictArray; - } - - // Parse the CFF charset table, which contains internal names for all the glyphs. - // This function will return a list of glyph names. - // See Adobe TN #5176 chapter 13, "Charsets". - function parseCFFCharset(data, start, nGlyphs, strings) { - var sid; - var count; - var parser = new parse.Parser(data, start); - - // The .notdef glyph is not included, so subtract 1. - nGlyphs -= 1; - var charset = ['.notdef']; - - var format = parser.parseCard8(); - if (format === 0) { - for (var i = 0; i < nGlyphs; i += 1) { - sid = parser.parseSID(); - charset.push(getCFFString(strings, sid)); - } - } else if (format === 1) { - while (charset.length <= nGlyphs) { - sid = parser.parseSID(); - count = parser.parseCard8(); - for (var i$1 = 0; i$1 <= count; i$1 += 1) { - charset.push(getCFFString(strings, sid)); - sid += 1; - } - } - } else if (format === 2) { - while (charset.length <= nGlyphs) { - sid = parser.parseSID(); - count = parser.parseCard16(); - for (var i$2 = 0; i$2 <= count; i$2 += 1) { - charset.push(getCFFString(strings, sid)); - sid += 1; - } - } - } else { - throw new Error('Unknown charset format ' + format); - } - - return charset; - } - - // Parse the CFF encoding data. Only one encoding can be specified per font. - // See Adobe TN #5176 chapter 12, "Encodings". - function parseCFFEncoding(data, start, charset) { - var code; - var enc = {}; - var parser = new parse.Parser(data, start); - var format = parser.parseCard8(); - if (format === 0) { - var nCodes = parser.parseCard8(); - for (var i = 0; i < nCodes; i += 1) { - code = parser.parseCard8(); - enc[code] = i; - } - } else if (format === 1) { - var nRanges = parser.parseCard8(); - code = 1; - for (var i$1 = 0; i$1 < nRanges; i$1 += 1) { - var first = parser.parseCard8(); - var nLeft = parser.parseCard8(); - for (var j = first; j <= first + nLeft; j += 1) { - enc[j] = code; - code += 1; - } - } - } else { - throw new Error('Unknown encoding format ' + format); - } - - return new CffEncoding(enc, charset); - } - - // Take in charstring code and return a Glyph object. - // The encoding is described in the Type 2 Charstring Format - // https://www.microsoft.com/typography/OTSPEC/charstr2.htm - function parseCFFCharstring(font, glyph, code) { - var c1x; - var c1y; - var c2x; - var c2y; - var p = new Path(); - var stack = []; - var nStems = 0; - var haveWidth = false; - var open = false; - var x = 0; - var y = 0; - var subrs; - var subrsBias; - var defaultWidthX; - var nominalWidthX; - if (font.isCIDFont) { - var fdIndex = font.tables.cff.topDict._fdSelect[glyph.index]; - var fdDict = font.tables.cff.topDict._fdArray[fdIndex]; - subrs = fdDict._subrs; - subrsBias = fdDict._subrsBias; - defaultWidthX = fdDict._defaultWidthX; - nominalWidthX = fdDict._nominalWidthX; - } else { - subrs = font.tables.cff.topDict._subrs; - subrsBias = font.tables.cff.topDict._subrsBias; - defaultWidthX = font.tables.cff.topDict._defaultWidthX; - nominalWidthX = font.tables.cff.topDict._nominalWidthX; - } - var width = defaultWidthX; - - function newContour(x, y) { - if (open) { - p.closePath(); - } - - p.moveTo(x, y); - open = true; - } - - function parseStems() { - var hasWidthArg; - - // The number of stem operators on the stack is always even. - // If the value is uneven, that means a width is specified. - hasWidthArg = stack.length % 2 !== 0; - if (hasWidthArg && !haveWidth) { - width = stack.shift() + nominalWidthX; - } - - nStems += stack.length >> 1; - stack.length = 0; - haveWidth = true; - } - - function parse$$1(code) { - var b1; - var b2; - var b3; - var b4; - var codeIndex; - var subrCode; - var jpx; - var jpy; - var c3x; - var c3y; - var c4x; - var c4y; - - var i = 0; - while (i < code.length) { - var v = code[i]; - i += 1; - switch (v) { - case 1: // hstem - parseStems(); - break; - case 3: // vstem - parseStems(); - break; - case 4: // vmoveto - if (stack.length > 1 && !haveWidth) { - width = stack.shift() + nominalWidthX; - haveWidth = true; - } - - y += stack.pop(); - newContour(x, y); - break; - case 5: // rlineto - while (stack.length > 0) { - x += stack.shift(); - y += stack.shift(); - p.lineTo(x, y); - } - - break; - case 6: // hlineto - while (stack.length > 0) { - x += stack.shift(); - p.lineTo(x, y); - if (stack.length === 0) { - break; - } - - y += stack.shift(); - p.lineTo(x, y); - } - - break; - case 7: // vlineto - while (stack.length > 0) { - y += stack.shift(); - p.lineTo(x, y); - if (stack.length === 0) { - break; - } - - x += stack.shift(); - p.lineTo(x, y); - } - - break; - case 8: // rrcurveto - while (stack.length > 0) { - c1x = x + stack.shift(); - c1y = y + stack.shift(); - c2x = c1x + stack.shift(); - c2y = c1y + stack.shift(); - x = c2x + stack.shift(); - y = c2y + stack.shift(); - p.curveTo(c1x, c1y, c2x, c2y, x, y); - } - - break; - case 10: // callsubr - codeIndex = stack.pop() + subrsBias; - subrCode = subrs[codeIndex]; - if (subrCode) { - parse$$1(subrCode); - } - - break; - case 11: // return - return; - case 12: // flex operators - v = code[i]; - i += 1; - switch (v) { - case 35: // flex - // |- dx1 dy1 dx2 dy2 dx3 dy3 dx4 dy4 dx5 dy5 dx6 dy6 fd flex (12 35) |- - c1x = x + stack.shift(); // dx1 - c1y = y + stack.shift(); // dy1 - c2x = c1x + stack.shift(); // dx2 - c2y = c1y + stack.shift(); // dy2 - jpx = c2x + stack.shift(); // dx3 - jpy = c2y + stack.shift(); // dy3 - c3x = jpx + stack.shift(); // dx4 - c3y = jpy + stack.shift(); // dy4 - c4x = c3x + stack.shift(); // dx5 - c4y = c3y + stack.shift(); // dy5 - x = c4x + stack.shift(); // dx6 - y = c4y + stack.shift(); // dy6 - stack.shift(); // flex depth - p.curveTo(c1x, c1y, c2x, c2y, jpx, jpy); - p.curveTo(c3x, c3y, c4x, c4y, x, y); - break; - case 34: // hflex - // |- dx1 dx2 dy2 dx3 dx4 dx5 dx6 hflex (12 34) |- - c1x = x + stack.shift(); // dx1 - c1y = y; // dy1 - c2x = c1x + stack.shift(); // dx2 - c2y = c1y + stack.shift(); // dy2 - jpx = c2x + stack.shift(); // dx3 - jpy = c2y; // dy3 - c3x = jpx + stack.shift(); // dx4 - c3y = c2y; // dy4 - c4x = c3x + stack.shift(); // dx5 - c4y = y; // dy5 - x = c4x + stack.shift(); // dx6 - p.curveTo(c1x, c1y, c2x, c2y, jpx, jpy); - p.curveTo(c3x, c3y, c4x, c4y, x, y); - break; - case 36: // hflex1 - // |- dx1 dy1 dx2 dy2 dx3 dx4 dx5 dy5 dx6 hflex1 (12 36) |- - c1x = x + stack.shift(); // dx1 - c1y = y + stack.shift(); // dy1 - c2x = c1x + stack.shift(); // dx2 - c2y = c1y + stack.shift(); // dy2 - jpx = c2x + stack.shift(); // dx3 - jpy = c2y; // dy3 - c3x = jpx + stack.shift(); // dx4 - c3y = c2y; // dy4 - c4x = c3x + stack.shift(); // dx5 - c4y = c3y + stack.shift(); // dy5 - x = c4x + stack.shift(); // dx6 - p.curveTo(c1x, c1y, c2x, c2y, jpx, jpy); - p.curveTo(c3x, c3y, c4x, c4y, x, y); - break; - case 37: // flex1 - // |- dx1 dy1 dx2 dy2 dx3 dy3 dx4 dy4 dx5 dy5 d6 flex1 (12 37) |- - c1x = x + stack.shift(); // dx1 - c1y = y + stack.shift(); // dy1 - c2x = c1x + stack.shift(); // dx2 - c2y = c1y + stack.shift(); // dy2 - jpx = c2x + stack.shift(); // dx3 - jpy = c2y + stack.shift(); // dy3 - c3x = jpx + stack.shift(); // dx4 - c3y = jpy + stack.shift(); // dy4 - c4x = c3x + stack.shift(); // dx5 - c4y = c3y + stack.shift(); // dy5 - if (Math.abs(c4x - x) > Math.abs(c4y - y)) { - x = c4x + stack.shift(); - } else { - y = c4y + stack.shift(); - } - - p.curveTo(c1x, c1y, c2x, c2y, jpx, jpy); - p.curveTo(c3x, c3y, c4x, c4y, x, y); - break; - default: - console.log( - 'Glyph ' + glyph.index + ': unknown operator ' + 1200 + v - ); - stack.length = 0; - } - break; - case 14: // endchar - if (stack.length > 0 && !haveWidth) { - width = stack.shift() + nominalWidthX; - haveWidth = true; - } - - if (open) { - p.closePath(); - open = false; - } - - break; - case 18: // hstemhm - parseStems(); - break; - case 19: // hintmask - case 20: // cntrmask - parseStems(); - i += (nStems + 7) >> 3; - break; - case 21: // rmoveto - if (stack.length > 2 && !haveWidth) { - width = stack.shift() + nominalWidthX; - haveWidth = true; - } - - y += stack.pop(); - x += stack.pop(); - newContour(x, y); - break; - case 22: // hmoveto - if (stack.length > 1 && !haveWidth) { - width = stack.shift() + nominalWidthX; - haveWidth = true; - } - - x += stack.pop(); - newContour(x, y); - break; - case 23: // vstemhm - parseStems(); - break; - case 24: // rcurveline - while (stack.length > 2) { - c1x = x + stack.shift(); - c1y = y + stack.shift(); - c2x = c1x + stack.shift(); - c2y = c1y + stack.shift(); - x = c2x + stack.shift(); - y = c2y + stack.shift(); - p.curveTo(c1x, c1y, c2x, c2y, x, y); - } - - x += stack.shift(); - y += stack.shift(); - p.lineTo(x, y); - break; - case 25: // rlinecurve - while (stack.length > 6) { - x += stack.shift(); - y += stack.shift(); - p.lineTo(x, y); - } - - c1x = x + stack.shift(); - c1y = y + stack.shift(); - c2x = c1x + stack.shift(); - c2y = c1y + stack.shift(); - x = c2x + stack.shift(); - y = c2y + stack.shift(); - p.curveTo(c1x, c1y, c2x, c2y, x, y); - break; - case 26: // vvcurveto - if (stack.length % 2) { - x += stack.shift(); - } - - while (stack.length > 0) { - c1x = x; - c1y = y + stack.shift(); - c2x = c1x + stack.shift(); - c2y = c1y + stack.shift(); - x = c2x; - y = c2y + stack.shift(); - p.curveTo(c1x, c1y, c2x, c2y, x, y); - } - - break; - case 27: // hhcurveto - if (stack.length % 2) { - y += stack.shift(); - } - - while (stack.length > 0) { - c1x = x + stack.shift(); - c1y = y; - c2x = c1x + stack.shift(); - c2y = c1y + stack.shift(); - x = c2x + stack.shift(); - y = c2y; - p.curveTo(c1x, c1y, c2x, c2y, x, y); - } - - break; - case 28: // shortint - b1 = code[i]; - b2 = code[i + 1]; - stack.push(((b1 << 24) | (b2 << 16)) >> 16); - i += 2; - break; - case 29: // callgsubr - codeIndex = stack.pop() + font.gsubrsBias; - subrCode = font.gsubrs[codeIndex]; - if (subrCode) { - parse$$1(subrCode); - } - - break; - case 30: // vhcurveto - while (stack.length > 0) { - c1x = x; - c1y = y + stack.shift(); - c2x = c1x + stack.shift(); - c2y = c1y + stack.shift(); - x = c2x + stack.shift(); - y = c2y + (stack.length === 1 ? stack.shift() : 0); - p.curveTo(c1x, c1y, c2x, c2y, x, y); - if (stack.length === 0) { - break; - } - - c1x = x + stack.shift(); - c1y = y; - c2x = c1x + stack.shift(); - c2y = c1y + stack.shift(); - y = c2y + stack.shift(); - x = c2x + (stack.length === 1 ? stack.shift() : 0); - p.curveTo(c1x, c1y, c2x, c2y, x, y); - } - - break; - case 31: // hvcurveto - while (stack.length > 0) { - c1x = x + stack.shift(); - c1y = y; - c2x = c1x + stack.shift(); - c2y = c1y + stack.shift(); - y = c2y + stack.shift(); - x = c2x + (stack.length === 1 ? stack.shift() : 0); - p.curveTo(c1x, c1y, c2x, c2y, x, y); - if (stack.length === 0) { - break; - } - - c1x = x; - c1y = y + stack.shift(); - c2x = c1x + stack.shift(); - c2y = c1y + stack.shift(); - x = c2x + stack.shift(); - y = c2y + (stack.length === 1 ? stack.shift() : 0); - p.curveTo(c1x, c1y, c2x, c2y, x, y); - } - - break; - default: - if (v < 32) { - console.log('Glyph ' + glyph.index + ': unknown operator ' + v); - } else if (v < 247) { - stack.push(v - 139); - } else if (v < 251) { - b1 = code[i]; - i += 1; - stack.push((v - 247) * 256 + b1 + 108); - } else if (v < 255) { - b1 = code[i]; - i += 1; - stack.push(-(v - 251) * 256 - b1 - 108); - } else { - b1 = code[i]; - b2 = code[i + 1]; - b3 = code[i + 2]; - b4 = code[i + 3]; - i += 4; - stack.push(((b1 << 24) | (b2 << 16) | (b3 << 8) | b4) / 65536); - } - } - } - } - - parse$$1(code); - - glyph.advanceWidth = width; - return p; - } - - function parseCFFFDSelect(data, start, nGlyphs, fdArrayCount) { - var fdSelect = []; - var fdIndex; - var parser = new parse.Parser(data, start); - var format = parser.parseCard8(); - if (format === 0) { - // Simple list of nGlyphs elements - for (var iGid = 0; iGid < nGlyphs; iGid++) { - fdIndex = parser.parseCard8(); - if (fdIndex >= fdArrayCount) { - throw new Error( - 'CFF table CID Font FDSelect has bad FD index value ' + - fdIndex + - ' (FD count ' + - fdArrayCount + - ')' - ); - } - fdSelect.push(fdIndex); - } - } else if (format === 3) { - // Ranges - var nRanges = parser.parseCard16(); - var first = parser.parseCard16(); - if (first !== 0) { - throw new Error( - 'CFF Table CID Font FDSelect format 3 range has bad initial GID ' + - first - ); - } - var next; - for (var iRange = 0; iRange < nRanges; iRange++) { - fdIndex = parser.parseCard8(); - next = parser.parseCard16(); - if (fdIndex >= fdArrayCount) { - throw new Error( - 'CFF table CID Font FDSelect has bad FD index value ' + - fdIndex + - ' (FD count ' + - fdArrayCount + - ')' - ); - } - if (next > nGlyphs) { - throw new Error( - 'CFF Table CID Font FDSelect format 3 range has bad GID ' + next - ); - } - for (; first < next; first++) { - fdSelect.push(fdIndex); - } - first = next; - } - if (next !== nGlyphs) { - throw new Error( - 'CFF Table CID Font FDSelect format 3 range has bad final GID ' + next - ); - } - } else { - throw new Error( - 'CFF Table CID Font FDSelect table has unsupported format ' + format - ); - } - return fdSelect; - } - - // Parse the `CFF` table, which contains the glyph outlines in PostScript format. - function parseCFFTable(data, start, font) { - font.tables.cff = {}; - var header = parseCFFHeader(data, start); - var nameIndex = parseCFFIndex(data, header.endOffset, parse.bytesToString); - var topDictIndex = parseCFFIndex(data, nameIndex.endOffset); - var stringIndex = parseCFFIndex( - data, - topDictIndex.endOffset, - parse.bytesToString - ); - var globalSubrIndex = parseCFFIndex(data, stringIndex.endOffset); - font.gsubrs = globalSubrIndex.objects; - font.gsubrsBias = calcCFFSubroutineBias(font.gsubrs); - - var topDictArray = gatherCFFTopDicts( - data, - start, - topDictIndex.objects, - stringIndex.objects - ); - if (topDictArray.length !== 1) { - throw new Error( - "CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = " + - topDictArray.length - ); - } - - var topDict = topDictArray[0]; - font.tables.cff.topDict = topDict; - - if (topDict._privateDict) { - font.defaultWidthX = topDict._privateDict.defaultWidthX; - font.nominalWidthX = topDict._privateDict.nominalWidthX; - } - - if (topDict.ros[0] !== undefined && topDict.ros[1] !== undefined) { - font.isCIDFont = true; - } - - if (font.isCIDFont) { - var fdArrayOffset = topDict.fdArray; - var fdSelectOffset = topDict.fdSelect; - if (fdArrayOffset === 0 || fdSelectOffset === 0) { - throw new Error( - 'Font is marked as a CID font, but FDArray and/or FDSelect information is missing' - ); - } - fdArrayOffset += start; - var fdArrayIndex = parseCFFIndex(data, fdArrayOffset); - var fdArray = gatherCFFTopDicts( - data, - start, - fdArrayIndex.objects, - stringIndex.objects - ); - topDict._fdArray = fdArray; - fdSelectOffset += start; - topDict._fdSelect = parseCFFFDSelect( - data, - fdSelectOffset, - font.numGlyphs, - fdArray.length - ); - } - - var privateDictOffset = start + topDict.private[1]; - var privateDict = parseCFFPrivateDict( - data, - privateDictOffset, - topDict.private[0], - stringIndex.objects - ); - font.defaultWidthX = privateDict.defaultWidthX; - font.nominalWidthX = privateDict.nominalWidthX; - - if (privateDict.subrs !== 0) { - var subrOffset = privateDictOffset + privateDict.subrs; - var subrIndex = parseCFFIndex(data, subrOffset); - font.subrs = subrIndex.objects; - font.subrsBias = calcCFFSubroutineBias(font.subrs); - } else { - font.subrs = []; - font.subrsBias = 0; - } - - // Offsets in the top dict are relative to the beginning of the CFF data, so add the CFF start offset. - var charStringsIndex = parseCFFIndex(data, start + topDict.charStrings); - font.nGlyphs = charStringsIndex.objects.length; - - var charset = parseCFFCharset( - data, - start + topDict.charset, - font.nGlyphs, - stringIndex.objects - ); - if (topDict.encoding === 0) { - // Standard encoding - font.cffEncoding = new CffEncoding(cffStandardEncoding, charset); - } else if (topDict.encoding === 1) { - // Expert encoding - font.cffEncoding = new CffEncoding(cffExpertEncoding, charset); - } else { - font.cffEncoding = parseCFFEncoding( - data, - start + topDict.encoding, - charset - ); - } - - // Prefer the CMAP encoding to the CFF encoding. - font.encoding = font.encoding || font.cffEncoding; - - font.glyphs = new glyphset.GlyphSet(font); - for (var i = 0; i < font.nGlyphs; i += 1) { - var charString = charStringsIndex.objects[i]; - font.glyphs.push( - i, - glyphset.cffGlyphLoader(font, i, parseCFFCharstring, charString) - ); - } - } - - // Convert a string to a String ID (SID). - // The list of strings is modified in place. - function encodeString(s, strings) { - var sid; - - // Is the string in the CFF standard strings? - var i = cffStandardStrings.indexOf(s); - if (i >= 0) { - sid = i; - } - - // Is the string already in the string index? - i = strings.indexOf(s); - if (i >= 0) { - sid = i + cffStandardStrings.length; - } else { - sid = cffStandardStrings.length + strings.length; - strings.push(s); - } - - return sid; - } - - function makeHeader() { - return new table.Record('Header', [ - { name: 'major', type: 'Card8', value: 1 }, - { name: 'minor', type: 'Card8', value: 0 }, - { name: 'hdrSize', type: 'Card8', value: 4 }, - { name: 'major', type: 'Card8', value: 1 } - ]); - } - - function makeNameIndex(fontNames) { - var t = new table.Record('Name INDEX', [ - { name: 'names', type: 'INDEX', value: [] } - ]); - t.names = []; - for (var i = 0; i < fontNames.length; i += 1) { - t.names.push({ name: 'name_' + i, type: 'NAME', value: fontNames[i] }); - } - - return t; - } - - // Given a dictionary's metadata, create a DICT structure. - function makeDict(meta, attrs, strings) { - var m = {}; - for (var i = 0; i < meta.length; i += 1) { - var entry = meta[i]; - var value = attrs[entry.name]; - if (value !== undefined && !equals(value, entry.value)) { - if (entry.type === 'SID') { - value = encodeString(value, strings); - } - - m[entry.op] = { name: entry.name, type: entry.type, value: value }; - } - } - - return m; - } - - // The Top DICT houses the global font attributes. - function makeTopDict(attrs, strings) { - var t = new table.Record('Top DICT', [ - { name: 'dict', type: 'DICT', value: {} } - ]); - t.dict = makeDict(TOP_DICT_META, attrs, strings); - return t; - } - - function makeTopDictIndex(topDict) { - var t = new table.Record('Top DICT INDEX', [ - { name: 'topDicts', type: 'INDEX', value: [] } - ]); - t.topDicts = [{ name: 'topDict_0', type: 'TABLE', value: topDict }]; - return t; - } - - function makeStringIndex(strings) { - var t = new table.Record('String INDEX', [ - { name: 'strings', type: 'INDEX', value: [] } - ]); - t.strings = []; - for (var i = 0; i < strings.length; i += 1) { - t.strings.push({ - name: 'string_' + i, - type: 'STRING', - value: strings[i] - }); - } - - return t; - } - - function makeGlobalSubrIndex() { - // Currently we don't use subroutines. - return new table.Record('Global Subr INDEX', [ - { name: 'subrs', type: 'INDEX', value: [] } - ]); - } - - function makeCharsets(glyphNames, strings) { - var t = new table.Record('Charsets', [ - { name: 'format', type: 'Card8', value: 0 } - ]); - for (var i = 0; i < glyphNames.length; i += 1) { - var glyphName = glyphNames[i]; - var glyphSID = encodeString(glyphName, strings); - t.fields.push({ name: 'glyph_' + i, type: 'SID', value: glyphSID }); - } - - return t; - } - - function glyphToOps(glyph) { - var ops = []; - var path = glyph.path; - ops.push({ name: 'width', type: 'NUMBER', value: glyph.advanceWidth }); - var x = 0; - var y = 0; - for (var i = 0; i < path.commands.length; i += 1) { - var dx = void 0; - var dy = void 0; - var cmd = path.commands[i]; - if (cmd.type === 'Q') { - // CFF only supports bรฉzier curves, so convert the quad to a bรฉzier. - var _13 = 1 / 3; - var _23 = 2 / 3; - - // We're going to create a new command so we don't change the original path. - cmd = { - type: 'C', - x: cmd.x, - y: cmd.y, - x1: _13 * x + _23 * cmd.x1, - y1: _13 * y + _23 * cmd.y1, - x2: _13 * cmd.x + _23 * cmd.x1, - y2: _13 * cmd.y + _23 * cmd.y1 - }; - } - - if (cmd.type === 'M') { - dx = Math.round(cmd.x - x); - dy = Math.round(cmd.y - y); - ops.push({ name: 'dx', type: 'NUMBER', value: dx }); - ops.push({ name: 'dy', type: 'NUMBER', value: dy }); - ops.push({ name: 'rmoveto', type: 'OP', value: 21 }); - x = Math.round(cmd.x); - y = Math.round(cmd.y); - } else if (cmd.type === 'L') { - dx = Math.round(cmd.x - x); - dy = Math.round(cmd.y - y); - ops.push({ name: 'dx', type: 'NUMBER', value: dx }); - ops.push({ name: 'dy', type: 'NUMBER', value: dy }); - ops.push({ name: 'rlineto', type: 'OP', value: 5 }); - x = Math.round(cmd.x); - y = Math.round(cmd.y); - } else if (cmd.type === 'C') { - var dx1 = Math.round(cmd.x1 - x); - var dy1 = Math.round(cmd.y1 - y); - var dx2 = Math.round(cmd.x2 - cmd.x1); - var dy2 = Math.round(cmd.y2 - cmd.y1); - dx = Math.round(cmd.x - cmd.x2); - dy = Math.round(cmd.y - cmd.y2); - ops.push({ name: 'dx1', type: 'NUMBER', value: dx1 }); - ops.push({ name: 'dy1', type: 'NUMBER', value: dy1 }); - ops.push({ name: 'dx2', type: 'NUMBER', value: dx2 }); - ops.push({ name: 'dy2', type: 'NUMBER', value: dy2 }); - ops.push({ name: 'dx', type: 'NUMBER', value: dx }); - ops.push({ name: 'dy', type: 'NUMBER', value: dy }); - ops.push({ name: 'rrcurveto', type: 'OP', value: 8 }); - x = Math.round(cmd.x); - y = Math.round(cmd.y); - } - - // Contours are closed automatically. - } - - ops.push({ name: 'endchar', type: 'OP', value: 14 }); - return ops; - } - - function makeCharStringsIndex(glyphs) { - var t = new table.Record('CharStrings INDEX', [ - { name: 'charStrings', type: 'INDEX', value: [] } - ]); - - for (var i = 0; i < glyphs.length; i += 1) { - var glyph = glyphs.get(i); - var ops = glyphToOps(glyph); - t.charStrings.push({ name: glyph.name, type: 'CHARSTRING', value: ops }); - } - - return t; - } - - function makePrivateDict(attrs, strings) { - var t = new table.Record('Private DICT', [ - { name: 'dict', type: 'DICT', value: {} } - ]); - t.dict = makeDict(PRIVATE_DICT_META, attrs, strings); - return t; - } - - function makeCFFTable(glyphs, options) { - var t = new table.Table('CFF ', [ - { name: 'header', type: 'RECORD' }, - { name: 'nameIndex', type: 'RECORD' }, - { name: 'topDictIndex', type: 'RECORD' }, - { name: 'stringIndex', type: 'RECORD' }, - { name: 'globalSubrIndex', type: 'RECORD' }, - { name: 'charsets', type: 'RECORD' }, - { name: 'charStringsIndex', type: 'RECORD' }, - { name: 'privateDict', type: 'RECORD' } - ]); - - var fontScale = 1 / options.unitsPerEm; - // We use non-zero values for the offsets so that the DICT encodes them. - // This is important because the size of the Top DICT plays a role in offset calculation, - // and the size shouldn't change after we've written correct offsets. - var attrs = { - version: options.version, - fullName: options.fullName, - familyName: options.familyName, - weight: options.weightName, - fontBBox: options.fontBBox || [0, 0, 0, 0], - fontMatrix: [fontScale, 0, 0, fontScale, 0, 0], - charset: 999, - encoding: 0, - charStrings: 999, - private: [0, 999] - }; - - var privateAttrs = {}; - - var glyphNames = []; - var glyph; - - // Skip first glyph (.notdef) - for (var i = 1; i < glyphs.length; i += 1) { - glyph = glyphs.get(i); - glyphNames.push(glyph.name); - } - - var strings = []; - - t.header = makeHeader(); - t.nameIndex = makeNameIndex([options.postScriptName]); - var topDict = makeTopDict(attrs, strings); - t.topDictIndex = makeTopDictIndex(topDict); - t.globalSubrIndex = makeGlobalSubrIndex(); - t.charsets = makeCharsets(glyphNames, strings); - t.charStringsIndex = makeCharStringsIndex(glyphs); - t.privateDict = makePrivateDict(privateAttrs, strings); - - // Needs to come at the end, to encode all custom strings used in the font. - t.stringIndex = makeStringIndex(strings); - - var startOffset = - t.header.sizeOf() + - t.nameIndex.sizeOf() + - t.topDictIndex.sizeOf() + - t.stringIndex.sizeOf() + - t.globalSubrIndex.sizeOf(); - attrs.charset = startOffset; - - // We use the CFF standard encoding; proper encoding will be handled in cmap. - attrs.encoding = 0; - attrs.charStrings = attrs.charset + t.charsets.sizeOf(); - attrs.private[1] = attrs.charStrings + t.charStringsIndex.sizeOf(); - - // Recreate the Top DICT INDEX with the correct offsets. - topDict = makeTopDict(attrs, strings); - t.topDictIndex = makeTopDictIndex(topDict); - - return t; - } - - var cff = { parse: parseCFFTable, make: makeCFFTable }; - - // The `head` table contains global information about the font. - - // Parse the header `head` table - function parseHeadTable(data, start) { - var head = {}; - var p = new parse.Parser(data, start); - head.version = p.parseVersion(); - head.fontRevision = Math.round(p.parseFixed() * 1000) / 1000; - head.checkSumAdjustment = p.parseULong(); - head.magicNumber = p.parseULong(); - check.argument( - head.magicNumber === 0x5f0f3cf5, - 'Font header has wrong magic number.' - ); - head.flags = p.parseUShort(); - head.unitsPerEm = p.parseUShort(); - head.created = p.parseLongDateTime(); - head.modified = p.parseLongDateTime(); - head.xMin = p.parseShort(); - head.yMin = p.parseShort(); - head.xMax = p.parseShort(); - head.yMax = p.parseShort(); - head.macStyle = p.parseUShort(); - head.lowestRecPPEM = p.parseUShort(); - head.fontDirectionHint = p.parseShort(); - head.indexToLocFormat = p.parseShort(); - head.glyphDataFormat = p.parseShort(); - return head; - } - - function makeHeadTable(options) { - // Apple Mac timestamp epoch is 01/01/1904 not 01/01/1970 - var timestamp = Math.round(new Date().getTime() / 1000) + 2082844800; - var createdTimestamp = timestamp; - - if (options.createdTimestamp) { - createdTimestamp = options.createdTimestamp + 2082844800; - } - - return new table.Table( - 'head', - [ - { name: 'version', type: 'FIXED', value: 0x00010000 }, - { name: 'fontRevision', type: 'FIXED', value: 0x00010000 }, - { name: 'checkSumAdjustment', type: 'ULONG', value: 0 }, - { name: 'magicNumber', type: 'ULONG', value: 0x5f0f3cf5 }, - { name: 'flags', type: 'USHORT', value: 0 }, - { name: 'unitsPerEm', type: 'USHORT', value: 1000 }, - { name: 'created', type: 'LONGDATETIME', value: createdTimestamp }, - { name: 'modified', type: 'LONGDATETIME', value: timestamp }, - { name: 'xMin', type: 'SHORT', value: 0 }, - { name: 'yMin', type: 'SHORT', value: 0 }, - { name: 'xMax', type: 'SHORT', value: 0 }, - { name: 'yMax', type: 'SHORT', value: 0 }, - { name: 'macStyle', type: 'USHORT', value: 0 }, - { name: 'lowestRecPPEM', type: 'USHORT', value: 0 }, - { name: 'fontDirectionHint', type: 'SHORT', value: 2 }, - { name: 'indexToLocFormat', type: 'SHORT', value: 0 }, - { name: 'glyphDataFormat', type: 'SHORT', value: 0 } - ], - options - ); - } - - var head = { parse: parseHeadTable, make: makeHeadTable }; - - // The `hhea` table contains information for horizontal layout. - - // Parse the horizontal header `hhea` table - function parseHheaTable(data, start) { - var hhea = {}; - var p = new parse.Parser(data, start); - hhea.version = p.parseVersion(); - hhea.ascender = p.parseShort(); - hhea.descender = p.parseShort(); - hhea.lineGap = p.parseShort(); - hhea.advanceWidthMax = p.parseUShort(); - hhea.minLeftSideBearing = p.parseShort(); - hhea.minRightSideBearing = p.parseShort(); - hhea.xMaxExtent = p.parseShort(); - hhea.caretSlopeRise = p.parseShort(); - hhea.caretSlopeRun = p.parseShort(); - hhea.caretOffset = p.parseShort(); - p.relativeOffset += 8; - hhea.metricDataFormat = p.parseShort(); - hhea.numberOfHMetrics = p.parseUShort(); - return hhea; - } - - function makeHheaTable(options) { - return new table.Table( - 'hhea', - [ - { name: 'version', type: 'FIXED', value: 0x00010000 }, - { name: 'ascender', type: 'FWORD', value: 0 }, - { name: 'descender', type: 'FWORD', value: 0 }, - { name: 'lineGap', type: 'FWORD', value: 0 }, - { name: 'advanceWidthMax', type: 'UFWORD', value: 0 }, - { name: 'minLeftSideBearing', type: 'FWORD', value: 0 }, - { name: 'minRightSideBearing', type: 'FWORD', value: 0 }, - { name: 'xMaxExtent', type: 'FWORD', value: 0 }, - { name: 'caretSlopeRise', type: 'SHORT', value: 1 }, - { name: 'caretSlopeRun', type: 'SHORT', value: 0 }, - { name: 'caretOffset', type: 'SHORT', value: 0 }, - { name: 'reserved1', type: 'SHORT', value: 0 }, - { name: 'reserved2', type: 'SHORT', value: 0 }, - { name: 'reserved3', type: 'SHORT', value: 0 }, - { name: 'reserved4', type: 'SHORT', value: 0 }, - { name: 'metricDataFormat', type: 'SHORT', value: 0 }, - { name: 'numberOfHMetrics', type: 'USHORT', value: 0 } - ], - options - ); - } - - var hhea = { parse: parseHheaTable, make: makeHheaTable }; - - // The `hmtx` table contains the horizontal metrics for all glyphs. - - // Parse the `hmtx` table, which contains the horizontal metrics for all glyphs. - // This function augments the glyph array, adding the advanceWidth and leftSideBearing to each glyph. - function parseHmtxTable(data, start, numMetrics, numGlyphs, glyphs) { - var advanceWidth; - var leftSideBearing; - var p = new parse.Parser(data, start); - for (var i = 0; i < numGlyphs; i += 1) { - // If the font is monospaced, only one entry is needed. This last entry applies to all subsequent glyphs. - if (i < numMetrics) { - advanceWidth = p.parseUShort(); - leftSideBearing = p.parseShort(); - } - - var glyph = glyphs.get(i); - glyph.advanceWidth = advanceWidth; - glyph.leftSideBearing = leftSideBearing; - } - } - - function makeHmtxTable(glyphs) { - var t = new table.Table('hmtx', []); - for (var i = 0; i < glyphs.length; i += 1) { - var glyph = glyphs.get(i); - var advanceWidth = glyph.advanceWidth || 0; - var leftSideBearing = glyph.leftSideBearing || 0; - t.fields.push({ - name: 'advanceWidth_' + i, - type: 'USHORT', - value: advanceWidth - }); - t.fields.push({ - name: 'leftSideBearing_' + i, - type: 'SHORT', - value: leftSideBearing - }); - } - - return t; - } - - var hmtx = { parse: parseHmtxTable, make: makeHmtxTable }; - - // The `ltag` table stores IETF BCP-47 language tags. It allows supporting - - function makeLtagTable(tags) { - var result = new table.Table('ltag', [ - { name: 'version', type: 'ULONG', value: 1 }, - { name: 'flags', type: 'ULONG', value: 0 }, - { name: 'numTags', type: 'ULONG', value: tags.length } - ]); - - var stringPool = ''; - var stringPoolOffset = 12 + tags.length * 4; - for (var i = 0; i < tags.length; ++i) { - var pos = stringPool.indexOf(tags[i]); - if (pos < 0) { - pos = stringPool.length; - stringPool += tags[i]; - } - - result.fields.push({ - name: 'offset ' + i, - type: 'USHORT', - value: stringPoolOffset + pos - }); - result.fields.push({ - name: 'length ' + i, - type: 'USHORT', - value: tags[i].length - }); - } - - result.fields.push({ - name: 'stringPool', - type: 'CHARARRAY', - value: stringPool - }); - return result; - } - - function parseLtagTable(data, start) { - var p = new parse.Parser(data, start); - var tableVersion = p.parseULong(); - check.argument(tableVersion === 1, 'Unsupported ltag table version.'); - // The 'ltag' specification does not define any flags; skip the field. - p.skip('uLong', 1); - var numTags = p.parseULong(); - - var tags = []; - for (var i = 0; i < numTags; i++) { - var tag = ''; - var offset = start + p.parseUShort(); - var length = p.parseUShort(); - for (var j = offset; j < offset + length; ++j) { - tag += String.fromCharCode(data.getInt8(j)); - } - - tags.push(tag); - } - - return tags; - } - - var ltag = { make: makeLtagTable, parse: parseLtagTable }; - - // The `maxp` table establishes the memory requirements for the font. - - // Parse the maximum profile `maxp` table. - function parseMaxpTable(data, start) { - var maxp = {}; - var p = new parse.Parser(data, start); - maxp.version = p.parseVersion(); - maxp.numGlyphs = p.parseUShort(); - if (maxp.version === 1.0) { - maxp.maxPoints = p.parseUShort(); - maxp.maxContours = p.parseUShort(); - maxp.maxCompositePoints = p.parseUShort(); - maxp.maxCompositeContours = p.parseUShort(); - maxp.maxZones = p.parseUShort(); - maxp.maxTwilightPoints = p.parseUShort(); - maxp.maxStorage = p.parseUShort(); - maxp.maxFunctionDefs = p.parseUShort(); - maxp.maxInstructionDefs = p.parseUShort(); - maxp.maxStackElements = p.parseUShort(); - maxp.maxSizeOfInstructions = p.parseUShort(); - maxp.maxComponentElements = p.parseUShort(); - maxp.maxComponentDepth = p.parseUShort(); - } - - return maxp; - } - - function makeMaxpTable(numGlyphs) { - return new table.Table('maxp', [ - { name: 'version', type: 'FIXED', value: 0x00005000 }, - { name: 'numGlyphs', type: 'USHORT', value: numGlyphs } - ]); - } - - var maxp = { parse: parseMaxpTable, make: makeMaxpTable }; - - // The `name` naming table. - - // NameIDs for the name table. - var nameTableNames = [ - 'copyright', // 0 - 'fontFamily', // 1 - 'fontSubfamily', // 2 - 'uniqueID', // 3 - 'fullName', // 4 - 'version', // 5 - 'postScriptName', // 6 - 'trademark', // 7 - 'manufacturer', // 8 - 'designer', // 9 - 'description', // 10 - 'manufacturerURL', // 11 - 'designerURL', // 12 - 'license', // 13 - 'licenseURL', // 14 - 'reserved', // 15 - 'preferredFamily', // 16 - 'preferredSubfamily', // 17 - 'compatibleFullName', // 18 - 'sampleText', // 19 - 'postScriptFindFontName', // 20 - 'wwsFamily', // 21 - 'wwsSubfamily' // 22 - ]; - - var macLanguages = { - 0: 'en', - 1: 'fr', - 2: 'de', - 3: 'it', - 4: 'nl', - 5: 'sv', - 6: 'es', - 7: 'da', - 8: 'pt', - 9: 'no', - 10: 'he', - 11: 'ja', - 12: 'ar', - 13: 'fi', - 14: 'el', - 15: 'is', - 16: 'mt', - 17: 'tr', - 18: 'hr', - 19: 'zh-Hant', - 20: 'ur', - 21: 'hi', - 22: 'th', - 23: 'ko', - 24: 'lt', - 25: 'pl', - 26: 'hu', - 27: 'es', - 28: 'lv', - 29: 'se', - 30: 'fo', - 31: 'fa', - 32: 'ru', - 33: 'zh', - 34: 'nl-BE', - 35: 'ga', - 36: 'sq', - 37: 'ro', - 38: 'cz', - 39: 'sk', - 40: 'si', - 41: 'yi', - 42: 'sr', - 43: 'mk', - 44: 'bg', - 45: 'uk', - 46: 'be', - 47: 'uz', - 48: 'kk', - 49: 'az-Cyrl', - 50: 'az-Arab', - 51: 'hy', - 52: 'ka', - 53: 'mo', - 54: 'ky', - 55: 'tg', - 56: 'tk', - 57: 'mn-CN', - 58: 'mn', - 59: 'ps', - 60: 'ks', - 61: 'ku', - 62: 'sd', - 63: 'bo', - 64: 'ne', - 65: 'sa', - 66: 'mr', - 67: 'bn', - 68: 'as', - 69: 'gu', - 70: 'pa', - 71: 'or', - 72: 'ml', - 73: 'kn', - 74: 'ta', - 75: 'te', - 76: 'si', - 77: 'my', - 78: 'km', - 79: 'lo', - 80: 'vi', - 81: 'id', - 82: 'tl', - 83: 'ms', - 84: 'ms-Arab', - 85: 'am', - 86: 'ti', - 87: 'om', - 88: 'so', - 89: 'sw', - 90: 'rw', - 91: 'rn', - 92: 'ny', - 93: 'mg', - 94: 'eo', - 128: 'cy', - 129: 'eu', - 130: 'ca', - 131: 'la', - 132: 'qu', - 133: 'gn', - 134: 'ay', - 135: 'tt', - 136: 'ug', - 137: 'dz', - 138: 'jv', - 139: 'su', - 140: 'gl', - 141: 'af', - 142: 'br', - 143: 'iu', - 144: 'gd', - 145: 'gv', - 146: 'ga', - 147: 'to', - 148: 'el-polyton', - 149: 'kl', - 150: 'az', - 151: 'nn' - }; - - // MacOS language ID โ†’ MacOS script ID - // - // Note that the script ID is not sufficient to determine what encoding - // to use in TrueType files. For some languages, MacOS used a modification - // of a mainstream script. For example, an Icelandic name would be stored - // with smRoman in the TrueType naming table, but the actual encoding - // is a special Icelandic version of the normal Macintosh Roman encoding. - // As another example, Inuktitut uses an 8-bit encoding for Canadian Aboriginal - // Syllables but MacOS had run out of available script codes, so this was - // done as a (pretty radical) "modification" of Ethiopic. - // - // http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/Readme.txt - var macLanguageToScript = { - 0: 0, // langEnglish โ†’ smRoman - 1: 0, // langFrench โ†’ smRoman - 2: 0, // langGerman โ†’ smRoman - 3: 0, // langItalian โ†’ smRoman - 4: 0, // langDutch โ†’ smRoman - 5: 0, // langSwedish โ†’ smRoman - 6: 0, // langSpanish โ†’ smRoman - 7: 0, // langDanish โ†’ smRoman - 8: 0, // langPortuguese โ†’ smRoman - 9: 0, // langNorwegian โ†’ smRoman - 10: 5, // langHebrew โ†’ smHebrew - 11: 1, // langJapanese โ†’ smJapanese - 12: 4, // langArabic โ†’ smArabic - 13: 0, // langFinnish โ†’ smRoman - 14: 6, // langGreek โ†’ smGreek - 15: 0, // langIcelandic โ†’ smRoman (modified) - 16: 0, // langMaltese โ†’ smRoman - 17: 0, // langTurkish โ†’ smRoman (modified) - 18: 0, // langCroatian โ†’ smRoman (modified) - 19: 2, // langTradChinese โ†’ smTradChinese - 20: 4, // langUrdu โ†’ smArabic - 21: 9, // langHindi โ†’ smDevanagari - 22: 21, // langThai โ†’ smThai - 23: 3, // langKorean โ†’ smKorean - 24: 29, // langLithuanian โ†’ smCentralEuroRoman - 25: 29, // langPolish โ†’ smCentralEuroRoman - 26: 29, // langHungarian โ†’ smCentralEuroRoman - 27: 29, // langEstonian โ†’ smCentralEuroRoman - 28: 29, // langLatvian โ†’ smCentralEuroRoman - 29: 0, // langSami โ†’ smRoman - 30: 0, // langFaroese โ†’ smRoman (modified) - 31: 4, // langFarsi โ†’ smArabic (modified) - 32: 7, // langRussian โ†’ smCyrillic - 33: 25, // langSimpChinese โ†’ smSimpChinese - 34: 0, // langFlemish โ†’ smRoman - 35: 0, // langIrishGaelic โ†’ smRoman (modified) - 36: 0, // langAlbanian โ†’ smRoman - 37: 0, // langRomanian โ†’ smRoman (modified) - 38: 29, // langCzech โ†’ smCentralEuroRoman - 39: 29, // langSlovak โ†’ smCentralEuroRoman - 40: 0, // langSlovenian โ†’ smRoman (modified) - 41: 5, // langYiddish โ†’ smHebrew - 42: 7, // langSerbian โ†’ smCyrillic - 43: 7, // langMacedonian โ†’ smCyrillic - 44: 7, // langBulgarian โ†’ smCyrillic - 45: 7, // langUkrainian โ†’ smCyrillic (modified) - 46: 7, // langByelorussian โ†’ smCyrillic - 47: 7, // langUzbek โ†’ smCyrillic - 48: 7, // langKazakh โ†’ smCyrillic - 49: 7, // langAzerbaijani โ†’ smCyrillic - 50: 4, // langAzerbaijanAr โ†’ smArabic - 51: 24, // langArmenian โ†’ smArmenian - 52: 23, // langGeorgian โ†’ smGeorgian - 53: 7, // langMoldavian โ†’ smCyrillic - 54: 7, // langKirghiz โ†’ smCyrillic - 55: 7, // langTajiki โ†’ smCyrillic - 56: 7, // langTurkmen โ†’ smCyrillic - 57: 27, // langMongolian โ†’ smMongolian - 58: 7, // langMongolianCyr โ†’ smCyrillic - 59: 4, // langPashto โ†’ smArabic - 60: 4, // langKurdish โ†’ smArabic - 61: 4, // langKashmiri โ†’ smArabic - 62: 4, // langSindhi โ†’ smArabic - 63: 26, // langTibetan โ†’ smTibetan - 64: 9, // langNepali โ†’ smDevanagari - 65: 9, // langSanskrit โ†’ smDevanagari - 66: 9, // langMarathi โ†’ smDevanagari - 67: 13, // langBengali โ†’ smBengali - 68: 13, // langAssamese โ†’ smBengali - 69: 11, // langGujarati โ†’ smGujarati - 70: 10, // langPunjabi โ†’ smGurmukhi - 71: 12, // langOriya โ†’ smOriya - 72: 17, // langMalayalam โ†’ smMalayalam - 73: 16, // langKannada โ†’ smKannada - 74: 14, // langTamil โ†’ smTamil - 75: 15, // langTelugu โ†’ smTelugu - 76: 18, // langSinhalese โ†’ smSinhalese - 77: 19, // langBurmese โ†’ smBurmese - 78: 20, // langKhmer โ†’ smKhmer - 79: 22, // langLao โ†’ smLao - 80: 30, // langVietnamese โ†’ smVietnamese - 81: 0, // langIndonesian โ†’ smRoman - 82: 0, // langTagalog โ†’ smRoman - 83: 0, // langMalayRoman โ†’ smRoman - 84: 4, // langMalayArabic โ†’ smArabic - 85: 28, // langAmharic โ†’ smEthiopic - 86: 28, // langTigrinya โ†’ smEthiopic - 87: 28, // langOromo โ†’ smEthiopic - 88: 0, // langSomali โ†’ smRoman - 89: 0, // langSwahili โ†’ smRoman - 90: 0, // langKinyarwanda โ†’ smRoman - 91: 0, // langRundi โ†’ smRoman - 92: 0, // langNyanja โ†’ smRoman - 93: 0, // langMalagasy โ†’ smRoman - 94: 0, // langEsperanto โ†’ smRoman - 128: 0, // langWelsh โ†’ smRoman (modified) - 129: 0, // langBasque โ†’ smRoman - 130: 0, // langCatalan โ†’ smRoman - 131: 0, // langLatin โ†’ smRoman - 132: 0, // langQuechua โ†’ smRoman - 133: 0, // langGuarani โ†’ smRoman - 134: 0, // langAymara โ†’ smRoman - 135: 7, // langTatar โ†’ smCyrillic - 136: 4, // langUighur โ†’ smArabic - 137: 26, // langDzongkha โ†’ smTibetan - 138: 0, // langJavaneseRom โ†’ smRoman - 139: 0, // langSundaneseRom โ†’ smRoman - 140: 0, // langGalician โ†’ smRoman - 141: 0, // langAfrikaans โ†’ smRoman - 142: 0, // langBreton โ†’ smRoman (modified) - 143: 28, // langInuktitut โ†’ smEthiopic (modified) - 144: 0, // langScottishGaelic โ†’ smRoman (modified) - 145: 0, // langManxGaelic โ†’ smRoman (modified) - 146: 0, // langIrishGaelicScript โ†’ smRoman (modified) - 147: 0, // langTongan โ†’ smRoman - 148: 6, // langGreekAncient โ†’ smRoman - 149: 0, // langGreenlandic โ†’ smRoman - 150: 0, // langAzerbaijanRoman โ†’ smRoman - 151: 0 // langNynorsk โ†’ smRoman - }; - - // While Microsoft indicates a region/country for all its language - // IDs, we omit the region code if it's equal to the "most likely - // region subtag" according to Unicode CLDR. For scripts, we omit - // the subtag if it is equal to the Suppress-Script entry in the - // IANA language subtag registry for IETF BCP 47. - // - // For example, Microsoft states that its language code 0x041A is - // Croatian in Croatia. We transform this to the BCP 47 language code 'hr' - // and not 'hr-HR' because Croatia is the default country for Croatian, - // according to Unicode CLDR. As another example, Microsoft states - // that 0x101A is Croatian (Latin) in Bosnia-Herzegovina. We transform - // this to 'hr-BA' and not 'hr-Latn-BA' because Latin is the default script - // for the Croatian language, according to IANA. - // - // http://www.unicode.org/cldr/charts/latest/supplemental/likely_subtags.html - // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry - var windowsLanguages = { - 0x0436: 'af', - 0x041c: 'sq', - 0x0484: 'gsw', - 0x045e: 'am', - 0x1401: 'ar-DZ', - 0x3c01: 'ar-BH', - 0x0c01: 'ar', - 0x0801: 'ar-IQ', - 0x2c01: 'ar-JO', - 0x3401: 'ar-KW', - 0x3001: 'ar-LB', - 0x1001: 'ar-LY', - 0x1801: 'ary', - 0x2001: 'ar-OM', - 0x4001: 'ar-QA', - 0x0401: 'ar-SA', - 0x2801: 'ar-SY', - 0x1c01: 'aeb', - 0x3801: 'ar-AE', - 0x2401: 'ar-YE', - 0x042b: 'hy', - 0x044d: 'as', - 0x082c: 'az-Cyrl', - 0x042c: 'az', - 0x046d: 'ba', - 0x042d: 'eu', - 0x0423: 'be', - 0x0845: 'bn', - 0x0445: 'bn-IN', - 0x201a: 'bs-Cyrl', - 0x141a: 'bs', - 0x047e: 'br', - 0x0402: 'bg', - 0x0403: 'ca', - 0x0c04: 'zh-HK', - 0x1404: 'zh-MO', - 0x0804: 'zh', - 0x1004: 'zh-SG', - 0x0404: 'zh-TW', - 0x0483: 'co', - 0x041a: 'hr', - 0x101a: 'hr-BA', - 0x0405: 'cs', - 0x0406: 'da', - 0x048c: 'prs', - 0x0465: 'dv', - 0x0813: 'nl-BE', - 0x0413: 'nl', - 0x0c09: 'en-AU', - 0x2809: 'en-BZ', - 0x1009: 'en-CA', - 0x2409: 'en-029', - 0x4009: 'en-IN', - 0x1809: 'en-IE', - 0x2009: 'en-JM', - 0x4409: 'en-MY', - 0x1409: 'en-NZ', - 0x3409: 'en-PH', - 0x4809: 'en-SG', - 0x1c09: 'en-ZA', - 0x2c09: 'en-TT', - 0x0809: 'en-GB', - 0x0409: 'en', - 0x3009: 'en-ZW', - 0x0425: 'et', - 0x0438: 'fo', - 0x0464: 'fil', - 0x040b: 'fi', - 0x080c: 'fr-BE', - 0x0c0c: 'fr-CA', - 0x040c: 'fr', - 0x140c: 'fr-LU', - 0x180c: 'fr-MC', - 0x100c: 'fr-CH', - 0x0462: 'fy', - 0x0456: 'gl', - 0x0437: 'ka', - 0x0c07: 'de-AT', - 0x0407: 'de', - 0x1407: 'de-LI', - 0x1007: 'de-LU', - 0x0807: 'de-CH', - 0x0408: 'el', - 0x046f: 'kl', - 0x0447: 'gu', - 0x0468: 'ha', - 0x040d: 'he', - 0x0439: 'hi', - 0x040e: 'hu', - 0x040f: 'is', - 0x0470: 'ig', - 0x0421: 'id', - 0x045d: 'iu', - 0x085d: 'iu-Latn', - 0x083c: 'ga', - 0x0434: 'xh', - 0x0435: 'zu', - 0x0410: 'it', - 0x0810: 'it-CH', - 0x0411: 'ja', - 0x044b: 'kn', - 0x043f: 'kk', - 0x0453: 'km', - 0x0486: 'quc', - 0x0487: 'rw', - 0x0441: 'sw', - 0x0457: 'kok', - 0x0412: 'ko', - 0x0440: 'ky', - 0x0454: 'lo', - 0x0426: 'lv', - 0x0427: 'lt', - 0x082e: 'dsb', - 0x046e: 'lb', - 0x042f: 'mk', - 0x083e: 'ms-BN', - 0x043e: 'ms', - 0x044c: 'ml', - 0x043a: 'mt', - 0x0481: 'mi', - 0x047a: 'arn', - 0x044e: 'mr', - 0x047c: 'moh', - 0x0450: 'mn', - 0x0850: 'mn-CN', - 0x0461: 'ne', - 0x0414: 'nb', - 0x0814: 'nn', - 0x0482: 'oc', - 0x0448: 'or', - 0x0463: 'ps', - 0x0415: 'pl', - 0x0416: 'pt', - 0x0816: 'pt-PT', - 0x0446: 'pa', - 0x046b: 'qu-BO', - 0x086b: 'qu-EC', - 0x0c6b: 'qu', - 0x0418: 'ro', - 0x0417: 'rm', - 0x0419: 'ru', - 0x243b: 'smn', - 0x103b: 'smj-NO', - 0x143b: 'smj', - 0x0c3b: 'se-FI', - 0x043b: 'se', - 0x083b: 'se-SE', - 0x203b: 'sms', - 0x183b: 'sma-NO', - 0x1c3b: 'sms', - 0x044f: 'sa', - 0x1c1a: 'sr-Cyrl-BA', - 0x0c1a: 'sr', - 0x181a: 'sr-Latn-BA', - 0x081a: 'sr-Latn', - 0x046c: 'nso', - 0x0432: 'tn', - 0x045b: 'si', - 0x041b: 'sk', - 0x0424: 'sl', - 0x2c0a: 'es-AR', - 0x400a: 'es-BO', - 0x340a: 'es-CL', - 0x240a: 'es-CO', - 0x140a: 'es-CR', - 0x1c0a: 'es-DO', - 0x300a: 'es-EC', - 0x440a: 'es-SV', - 0x100a: 'es-GT', - 0x480a: 'es-HN', - 0x080a: 'es-MX', - 0x4c0a: 'es-NI', - 0x180a: 'es-PA', - 0x3c0a: 'es-PY', - 0x280a: 'es-PE', - 0x500a: 'es-PR', - - // Microsoft has defined two different language codes for - // โ€œSpanish with modern sortingโ€ and โ€œSpanish with traditional - // sortingโ€. This makes sense for collation APIs, and it would be - // possible to express this in BCP 47 language tags via Unicode - // extensions (eg., es-u-co-trad is Spanish with traditional - // sorting). However, for storing names in fonts, the distinction - // does not make sense, so we give โ€œesโ€ in both cases. - 0x0c0a: 'es', - 0x040a: 'es', - - 0x540a: 'es-US', - 0x380a: 'es-UY', - 0x200a: 'es-VE', - 0x081d: 'sv-FI', - 0x041d: 'sv', - 0x045a: 'syr', - 0x0428: 'tg', - 0x085f: 'tzm', - 0x0449: 'ta', - 0x0444: 'tt', - 0x044a: 'te', - 0x041e: 'th', - 0x0451: 'bo', - 0x041f: 'tr', - 0x0442: 'tk', - 0x0480: 'ug', - 0x0422: 'uk', - 0x042e: 'hsb', - 0x0420: 'ur', - 0x0843: 'uz-Cyrl', - 0x0443: 'uz', - 0x042a: 'vi', - 0x0452: 'cy', - 0x0488: 'wo', - 0x0485: 'sah', - 0x0478: 'ii', - 0x046a: 'yo' - }; - - // Returns a IETF BCP 47 language code, for example 'zh-Hant' - // for 'Chinese in the traditional script'. - function getLanguageCode(platformID, languageID, ltag) { - switch (platformID) { - case 0: // Unicode - if (languageID === 0xffff) { - return 'und'; - } else if (ltag) { - return ltag[languageID]; - } - - break; - - case 1: // Macintosh - return macLanguages[languageID]; - - case 3: // Windows - return windowsLanguages[languageID]; - } - - return undefined; - } - - var utf16 = 'utf-16'; - - // MacOS script ID โ†’ encoding. This table stores the default case, - // which can be overridden by macLanguageEncodings. - var macScriptEncodings = { - 0: 'macintosh', // smRoman - 1: 'x-mac-japanese', // smJapanese - 2: 'x-mac-chinesetrad', // smTradChinese - 3: 'x-mac-korean', // smKorean - 6: 'x-mac-greek', // smGreek - 7: 'x-mac-cyrillic', // smCyrillic - 9: 'x-mac-devanagai', // smDevanagari - 10: 'x-mac-gurmukhi', // smGurmukhi - 11: 'x-mac-gujarati', // smGujarati - 12: 'x-mac-oriya', // smOriya - 13: 'x-mac-bengali', // smBengali - 14: 'x-mac-tamil', // smTamil - 15: 'x-mac-telugu', // smTelugu - 16: 'x-mac-kannada', // smKannada - 17: 'x-mac-malayalam', // smMalayalam - 18: 'x-mac-sinhalese', // smSinhalese - 19: 'x-mac-burmese', // smBurmese - 20: 'x-mac-khmer', // smKhmer - 21: 'x-mac-thai', // smThai - 22: 'x-mac-lao', // smLao - 23: 'x-mac-georgian', // smGeorgian - 24: 'x-mac-armenian', // smArmenian - 25: 'x-mac-chinesesimp', // smSimpChinese - 26: 'x-mac-tibetan', // smTibetan - 27: 'x-mac-mongolian', // smMongolian - 28: 'x-mac-ethiopic', // smEthiopic - 29: 'x-mac-ce', // smCentralEuroRoman - 30: 'x-mac-vietnamese', // smVietnamese - 31: 'x-mac-extarabic' // smExtArabic - }; - - // MacOS language ID โ†’ encoding. This table stores the exceptional - // cases, which override macScriptEncodings. For writing MacOS naming - // tables, we need to emit a MacOS script ID. Therefore, we cannot - // merge macScriptEncodings into macLanguageEncodings. - // - // http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/Readme.txt - var macLanguageEncodings = { - 15: 'x-mac-icelandic', // langIcelandic - 17: 'x-mac-turkish', // langTurkish - 18: 'x-mac-croatian', // langCroatian - 24: 'x-mac-ce', // langLithuanian - 25: 'x-mac-ce', // langPolish - 26: 'x-mac-ce', // langHungarian - 27: 'x-mac-ce', // langEstonian - 28: 'x-mac-ce', // langLatvian - 30: 'x-mac-icelandic', // langFaroese - 37: 'x-mac-romanian', // langRomanian - 38: 'x-mac-ce', // langCzech - 39: 'x-mac-ce', // langSlovak - 40: 'x-mac-ce', // langSlovenian - 143: 'x-mac-inuit', // langInuktitut - 146: 'x-mac-gaelic' // langIrishGaelicScript - }; - - function getEncoding(platformID, encodingID, languageID) { - switch (platformID) { - case 0: // Unicode - return utf16; - - case 1: // Apple Macintosh - return ( - macLanguageEncodings[languageID] || macScriptEncodings[encodingID] - ); - - case 3: // Microsoft Windows - if (encodingID === 1 || encodingID === 10) { - return utf16; - } - - break; - } - - return undefined; - } - - // Parse the naming `name` table. - // FIXME: Format 1 additional fields are not supported yet. - // ltag is the content of the `ltag' table, such as ['en', 'zh-Hans', 'de-CH-1904']. - function parseNameTable(data, start, ltag) { - var name = {}; - var p = new parse.Parser(data, start); - var format = p.parseUShort(); - var count = p.parseUShort(); - var stringOffset = p.offset + p.parseUShort(); - for (var i = 0; i < count; i++) { - var platformID = p.parseUShort(); - var encodingID = p.parseUShort(); - var languageID = p.parseUShort(); - var nameID = p.parseUShort(); - var property = nameTableNames[nameID] || nameID; - var byteLength = p.parseUShort(); - var offset = p.parseUShort(); - var language = getLanguageCode(platformID, languageID, ltag); - var encoding = getEncoding(platformID, encodingID, languageID); - if (encoding !== undefined && language !== undefined) { - var text = void 0; - if (encoding === utf16) { - text = decode.UTF16(data, stringOffset + offset, byteLength); - } else { - text = decode.MACSTRING( - data, - stringOffset + offset, - byteLength, - encoding - ); - } - - if (text) { - var translations = name[property]; - if (translations === undefined) { - translations = name[property] = {}; - } - - translations[language] = text; - } - } - } - - var langTagCount = 0; - if (format === 1) { - // FIXME: Also handle Microsoft's 'name' table 1. - langTagCount = p.parseUShort(); - } - - return name; - } - - // {23: 'foo'} โ†’ {'foo': 23} - // ['bar', 'baz'] โ†’ {'bar': 0, 'baz': 1} - function reverseDict(dict) { - var result = {}; - for (var key in dict) { - result[dict[key]] = parseInt(key); - } - - return result; - } - - function makeNameRecord( - platformID, - encodingID, - languageID, - nameID, - length, - offset - ) { - return new table.Record('NameRecord', [ - { name: 'platformID', type: 'USHORT', value: platformID }, - { name: 'encodingID', type: 'USHORT', value: encodingID }, - { name: 'languageID', type: 'USHORT', value: languageID }, - { name: 'nameID', type: 'USHORT', value: nameID }, - { name: 'length', type: 'USHORT', value: length }, - { name: 'offset', type: 'USHORT', value: offset } - ]); - } - - // Finds the position of needle in haystack, or -1 if not there. - // Like String.indexOf(), but for arrays. - function findSubArray(needle, haystack) { - var needleLength = needle.length; - var limit = haystack.length - needleLength + 1; - - loop: for (var pos = 0; pos < limit; pos++) { - for (; pos < limit; pos++) { - for (var k = 0; k < needleLength; k++) { - if (haystack[pos + k] !== needle[k]) { - continue loop; - } - } - - return pos; - } - } - - return -1; - } - - function addStringToPool(s, pool) { - var offset = findSubArray(s, pool); - if (offset < 0) { - offset = pool.length; - var i = 0; - var len = s.length; - for (; i < len; ++i) { - pool.push(s[i]); - } - } - - return offset; - } - - function makeNameTable(names, ltag) { - var nameID; - var nameIDs = []; - - var namesWithNumericKeys = {}; - var nameTableIds = reverseDict(nameTableNames); - for (var key in names) { - var id = nameTableIds[key]; - if (id === undefined) { - id = key; - } - - nameID = parseInt(id); - - if (isNaN(nameID)) { - throw new Error( - 'Name table entry "' + - key + - '" does not exist, see nameTableNames for complete list.' - ); - } - - namesWithNumericKeys[nameID] = names[key]; - nameIDs.push(nameID); - } - - var macLanguageIds = reverseDict(macLanguages); - var windowsLanguageIds = reverseDict(windowsLanguages); - - var nameRecords = []; - var stringPool = []; - - for (var i = 0; i < nameIDs.length; i++) { - nameID = nameIDs[i]; - var translations = namesWithNumericKeys[nameID]; - for (var lang in translations) { - var text = translations[lang]; - - // For MacOS, we try to emit the name in the form that was introduced - // in the initial version of the TrueType spec (in the late 1980s). - // However, this can fail for various reasons: the requested BCP 47 - // language code might not have an old-style Mac equivalent; - // we might not have a codec for the needed character encoding; - // or the name might contain characters that cannot be expressed - // in the old-style Macintosh encoding. In case of failure, we emit - // the name in a more modern fashion (Unicode encoding with BCP 47 - // language tags) that is recognized by MacOS 10.5, released in 2009. - // If fonts were only read by operating systems, we could simply - // emit all names in the modern form; this would be much easier. - // However, there are many applications and libraries that read - // 'name' tables directly, and these will usually only recognize - // the ancient form (silently skipping the unrecognized names). - var macPlatform = 1; // Macintosh - var macLanguage = macLanguageIds[lang]; - var macScript = macLanguageToScript[macLanguage]; - var macEncoding = getEncoding(macPlatform, macScript, macLanguage); - var macName = encode.MACSTRING(text, macEncoding); - if (macName === undefined) { - macPlatform = 0; // Unicode - macLanguage = ltag.indexOf(lang); - if (macLanguage < 0) { - macLanguage = ltag.length; - ltag.push(lang); - } - - macScript = 4; // Unicode 2.0 and later - macName = encode.UTF16(text); - } - - var macNameOffset = addStringToPool(macName, stringPool); - nameRecords.push( - makeNameRecord( - macPlatform, - macScript, - macLanguage, - nameID, - macName.length, - macNameOffset - ) - ); - - var winLanguage = windowsLanguageIds[lang]; - if (winLanguage !== undefined) { - var winName = encode.UTF16(text); - var winNameOffset = addStringToPool(winName, stringPool); - nameRecords.push( - makeNameRecord( - 3, - 1, - winLanguage, - nameID, - winName.length, - winNameOffset - ) - ); - } - } - } - - nameRecords.sort(function(a, b) { - return ( - a.platformID - b.platformID || - a.encodingID - b.encodingID || - a.languageID - b.languageID || - a.nameID - b.nameID - ); - }); - - var t = new table.Table('name', [ - { name: 'format', type: 'USHORT', value: 0 }, - { name: 'count', type: 'USHORT', value: nameRecords.length }, - { - name: 'stringOffset', - type: 'USHORT', - value: 6 + nameRecords.length * 12 - } - ]); - - for (var r = 0; r < nameRecords.length; r++) { - t.fields.push({ - name: 'record_' + r, - type: 'RECORD', - value: nameRecords[r] - }); - } - - t.fields.push({ name: 'strings', type: 'LITERAL', value: stringPool }); - return t; - } - - var _name = { parse: parseNameTable, make: makeNameTable }; - - // The `OS/2` table contains metrics required in OpenType fonts. - - var unicodeRanges = [ - { begin: 0x0000, end: 0x007f }, // Basic Latin - { begin: 0x0080, end: 0x00ff }, // Latin-1 Supplement - { begin: 0x0100, end: 0x017f }, // Latin Extended-A - { begin: 0x0180, end: 0x024f }, // Latin Extended-B - { begin: 0x0250, end: 0x02af }, // IPA Extensions - { begin: 0x02b0, end: 0x02ff }, // Spacing Modifier Letters - { begin: 0x0300, end: 0x036f }, // Combining Diacritical Marks - { begin: 0x0370, end: 0x03ff }, // Greek and Coptic - { begin: 0x2c80, end: 0x2cff }, // Coptic - { begin: 0x0400, end: 0x04ff }, // Cyrillic - { begin: 0x0530, end: 0x058f }, // Armenian - { begin: 0x0590, end: 0x05ff }, // Hebrew - { begin: 0xa500, end: 0xa63f }, // Vai - { begin: 0x0600, end: 0x06ff }, // Arabic - { begin: 0x07c0, end: 0x07ff }, // NKo - { begin: 0x0900, end: 0x097f }, // Devanagari - { begin: 0x0980, end: 0x09ff }, // Bengali - { begin: 0x0a00, end: 0x0a7f }, // Gurmukhi - { begin: 0x0a80, end: 0x0aff }, // Gujarati - { begin: 0x0b00, end: 0x0b7f }, // Oriya - { begin: 0x0b80, end: 0x0bff }, // Tamil - { begin: 0x0c00, end: 0x0c7f }, // Telugu - { begin: 0x0c80, end: 0x0cff }, // Kannada - { begin: 0x0d00, end: 0x0d7f }, // Malayalam - { begin: 0x0e00, end: 0x0e7f }, // Thai - { begin: 0x0e80, end: 0x0eff }, // Lao - { begin: 0x10a0, end: 0x10ff }, // Georgian - { begin: 0x1b00, end: 0x1b7f }, // Balinese - { begin: 0x1100, end: 0x11ff }, // Hangul Jamo - { begin: 0x1e00, end: 0x1eff }, // Latin Extended Additional - { begin: 0x1f00, end: 0x1fff }, // Greek Extended - { begin: 0x2000, end: 0x206f }, // General Punctuation - { begin: 0x2070, end: 0x209f }, // Superscripts And Subscripts - { begin: 0x20a0, end: 0x20cf }, // Currency Symbol - { begin: 0x20d0, end: 0x20ff }, // Combining Diacritical Marks For Symbols - { begin: 0x2100, end: 0x214f }, // Letterlike Symbols - { begin: 0x2150, end: 0x218f }, // Number Forms - { begin: 0x2190, end: 0x21ff }, // Arrows - { begin: 0x2200, end: 0x22ff }, // Mathematical Operators - { begin: 0x2300, end: 0x23ff }, // Miscellaneous Technical - { begin: 0x2400, end: 0x243f }, // Control Pictures - { begin: 0x2440, end: 0x245f }, // Optical Character Recognition - { begin: 0x2460, end: 0x24ff }, // Enclosed Alphanumerics - { begin: 0x2500, end: 0x257f }, // Box Drawing - { begin: 0x2580, end: 0x259f }, // Block Elements - { begin: 0x25a0, end: 0x25ff }, // Geometric Shapes - { begin: 0x2600, end: 0x26ff }, // Miscellaneous Symbols - { begin: 0x2700, end: 0x27bf }, // Dingbats - { begin: 0x3000, end: 0x303f }, // CJK Symbols And Punctuation - { begin: 0x3040, end: 0x309f }, // Hiragana - { begin: 0x30a0, end: 0x30ff }, // Katakana - { begin: 0x3100, end: 0x312f }, // Bopomofo - { begin: 0x3130, end: 0x318f }, // Hangul Compatibility Jamo - { begin: 0xa840, end: 0xa87f }, // Phags-pa - { begin: 0x3200, end: 0x32ff }, // Enclosed CJK Letters And Months - { begin: 0x3300, end: 0x33ff }, // CJK Compatibility - { begin: 0xac00, end: 0xd7af }, // Hangul Syllables - { begin: 0xd800, end: 0xdfff }, // Non-Plane 0 * - { begin: 0x10900, end: 0x1091f }, // Phoenicia - { begin: 0x4e00, end: 0x9fff }, // CJK Unified Ideographs - { begin: 0xe000, end: 0xf8ff }, // Private Use Area (plane 0) - { begin: 0x31c0, end: 0x31ef }, // CJK Strokes - { begin: 0xfb00, end: 0xfb4f }, // Alphabetic Presentation Forms - { begin: 0xfb50, end: 0xfdff }, // Arabic Presentation Forms-A - { begin: 0xfe20, end: 0xfe2f }, // Combining Half Marks - { begin: 0xfe10, end: 0xfe1f }, // Vertical Forms - { begin: 0xfe50, end: 0xfe6f }, // Small Form Variants - { begin: 0xfe70, end: 0xfeff }, // Arabic Presentation Forms-B - { begin: 0xff00, end: 0xffef }, // Halfwidth And Fullwidth Forms - { begin: 0xfff0, end: 0xffff }, // Specials - { begin: 0x0f00, end: 0x0fff }, // Tibetan - { begin: 0x0700, end: 0x074f }, // Syriac - { begin: 0x0780, end: 0x07bf }, // Thaana - { begin: 0x0d80, end: 0x0dff }, // Sinhala - { begin: 0x1000, end: 0x109f }, // Myanmar - { begin: 0x1200, end: 0x137f }, // Ethiopic - { begin: 0x13a0, end: 0x13ff }, // Cherokee - { begin: 0x1400, end: 0x167f }, // Unified Canadian Aboriginal Syllabics - { begin: 0x1680, end: 0x169f }, // Ogham - { begin: 0x16a0, end: 0x16ff }, // Runic - { begin: 0x1780, end: 0x17ff }, // Khmer - { begin: 0x1800, end: 0x18af }, // Mongolian - { begin: 0x2800, end: 0x28ff }, // Braille Patterns - { begin: 0xa000, end: 0xa48f }, // Yi Syllables - { begin: 0x1700, end: 0x171f }, // Tagalog - { begin: 0x10300, end: 0x1032f }, // Old Italic - { begin: 0x10330, end: 0x1034f }, // Gothic - { begin: 0x10400, end: 0x1044f }, // Deseret - { begin: 0x1d000, end: 0x1d0ff }, // Byzantine Musical Symbols - { begin: 0x1d400, end: 0x1d7ff }, // Mathematical Alphanumeric Symbols - { begin: 0xff000, end: 0xffffd }, // Private Use (plane 15) - { begin: 0xfe00, end: 0xfe0f }, // Variation Selectors - { begin: 0xe0000, end: 0xe007f }, // Tags - { begin: 0x1900, end: 0x194f }, // Limbu - { begin: 0x1950, end: 0x197f }, // Tai Le - { begin: 0x1980, end: 0x19df }, // New Tai Lue - { begin: 0x1a00, end: 0x1a1f }, // Buginese - { begin: 0x2c00, end: 0x2c5f }, // Glagolitic - { begin: 0x2d30, end: 0x2d7f }, // Tifinagh - { begin: 0x4dc0, end: 0x4dff }, // Yijing Hexagram Symbols - { begin: 0xa800, end: 0xa82f }, // Syloti Nagri - { begin: 0x10000, end: 0x1007f }, // Linear B Syllabary - { begin: 0x10140, end: 0x1018f }, // Ancient Greek Numbers - { begin: 0x10380, end: 0x1039f }, // Ugaritic - { begin: 0x103a0, end: 0x103df }, // Old Persian - { begin: 0x10450, end: 0x1047f }, // Shavian - { begin: 0x10480, end: 0x104af }, // Osmanya - { begin: 0x10800, end: 0x1083f }, // Cypriot Syllabary - { begin: 0x10a00, end: 0x10a5f }, // Kharoshthi - { begin: 0x1d300, end: 0x1d35f }, // Tai Xuan Jing Symbols - { begin: 0x12000, end: 0x123ff }, // Cuneiform - { begin: 0x1d360, end: 0x1d37f }, // Counting Rod Numerals - { begin: 0x1b80, end: 0x1bbf }, // Sundanese - { begin: 0x1c00, end: 0x1c4f }, // Lepcha - { begin: 0x1c50, end: 0x1c7f }, // Ol Chiki - { begin: 0xa880, end: 0xa8df }, // Saurashtra - { begin: 0xa900, end: 0xa92f }, // Kayah Li - { begin: 0xa930, end: 0xa95f }, // Rejang - { begin: 0xaa00, end: 0xaa5f }, // Cham - { begin: 0x10190, end: 0x101cf }, // Ancient Symbols - { begin: 0x101d0, end: 0x101ff }, // Phaistos Disc - { begin: 0x102a0, end: 0x102df }, // Carian - { begin: 0x1f030, end: 0x1f09f } // Domino Tiles - ]; - - function getUnicodeRange(unicode) { - for (var i = 0; i < unicodeRanges.length; i += 1) { - var range = unicodeRanges[i]; - if (unicode >= range.begin && unicode < range.end) { - return i; - } - } - - return -1; - } - - // Parse the OS/2 and Windows metrics `OS/2` table - function parseOS2Table(data, start) { - var os2 = {}; - var p = new parse.Parser(data, start); - os2.version = p.parseUShort(); - os2.xAvgCharWidth = p.parseShort(); - os2.usWeightClass = p.parseUShort(); - os2.usWidthClass = p.parseUShort(); - os2.fsType = p.parseUShort(); - os2.ySubscriptXSize = p.parseShort(); - os2.ySubscriptYSize = p.parseShort(); - os2.ySubscriptXOffset = p.parseShort(); - os2.ySubscriptYOffset = p.parseShort(); - os2.ySuperscriptXSize = p.parseShort(); - os2.ySuperscriptYSize = p.parseShort(); - os2.ySuperscriptXOffset = p.parseShort(); - os2.ySuperscriptYOffset = p.parseShort(); - os2.yStrikeoutSize = p.parseShort(); - os2.yStrikeoutPosition = p.parseShort(); - os2.sFamilyClass = p.parseShort(); - os2.panose = []; - for (var i = 0; i < 10; i++) { - os2.panose[i] = p.parseByte(); - } - - os2.ulUnicodeRange1 = p.parseULong(); - os2.ulUnicodeRange2 = p.parseULong(); - os2.ulUnicodeRange3 = p.parseULong(); - os2.ulUnicodeRange4 = p.parseULong(); - os2.achVendID = String.fromCharCode( - p.parseByte(), - p.parseByte(), - p.parseByte(), - p.parseByte() - ); - os2.fsSelection = p.parseUShort(); - os2.usFirstCharIndex = p.parseUShort(); - os2.usLastCharIndex = p.parseUShort(); - os2.sTypoAscender = p.parseShort(); - os2.sTypoDescender = p.parseShort(); - os2.sTypoLineGap = p.parseShort(); - os2.usWinAscent = p.parseUShort(); - os2.usWinDescent = p.parseUShort(); - if (os2.version >= 1) { - os2.ulCodePageRange1 = p.parseULong(); - os2.ulCodePageRange2 = p.parseULong(); - } - - if (os2.version >= 2) { - os2.sxHeight = p.parseShort(); - os2.sCapHeight = p.parseShort(); - os2.usDefaultChar = p.parseUShort(); - os2.usBreakChar = p.parseUShort(); - os2.usMaxContent = p.parseUShort(); - } - - return os2; - } - - function makeOS2Table(options) { - return new table.Table( - 'OS/2', - [ - { name: 'version', type: 'USHORT', value: 0x0003 }, - { name: 'xAvgCharWidth', type: 'SHORT', value: 0 }, - { name: 'usWeightClass', type: 'USHORT', value: 0 }, - { name: 'usWidthClass', type: 'USHORT', value: 0 }, - { name: 'fsType', type: 'USHORT', value: 0 }, - { name: 'ySubscriptXSize', type: 'SHORT', value: 650 }, - { name: 'ySubscriptYSize', type: 'SHORT', value: 699 }, - { name: 'ySubscriptXOffset', type: 'SHORT', value: 0 }, - { name: 'ySubscriptYOffset', type: 'SHORT', value: 140 }, - { name: 'ySuperscriptXSize', type: 'SHORT', value: 650 }, - { name: 'ySuperscriptYSize', type: 'SHORT', value: 699 }, - { name: 'ySuperscriptXOffset', type: 'SHORT', value: 0 }, - { name: 'ySuperscriptYOffset', type: 'SHORT', value: 479 }, - { name: 'yStrikeoutSize', type: 'SHORT', value: 49 }, - { name: 'yStrikeoutPosition', type: 'SHORT', value: 258 }, - { name: 'sFamilyClass', type: 'SHORT', value: 0 }, - { name: 'bFamilyType', type: 'BYTE', value: 0 }, - { name: 'bSerifStyle', type: 'BYTE', value: 0 }, - { name: 'bWeight', type: 'BYTE', value: 0 }, - { name: 'bProportion', type: 'BYTE', value: 0 }, - { name: 'bContrast', type: 'BYTE', value: 0 }, - { name: 'bStrokeVariation', type: 'BYTE', value: 0 }, - { name: 'bArmStyle', type: 'BYTE', value: 0 }, - { name: 'bLetterform', type: 'BYTE', value: 0 }, - { name: 'bMidline', type: 'BYTE', value: 0 }, - { name: 'bXHeight', type: 'BYTE', value: 0 }, - { name: 'ulUnicodeRange1', type: 'ULONG', value: 0 }, - { name: 'ulUnicodeRange2', type: 'ULONG', value: 0 }, - { name: 'ulUnicodeRange3', type: 'ULONG', value: 0 }, - { name: 'ulUnicodeRange4', type: 'ULONG', value: 0 }, - { name: 'achVendID', type: 'CHARARRAY', value: 'XXXX' }, - { name: 'fsSelection', type: 'USHORT', value: 0 }, - { name: 'usFirstCharIndex', type: 'USHORT', value: 0 }, - { name: 'usLastCharIndex', type: 'USHORT', value: 0 }, - { name: 'sTypoAscender', type: 'SHORT', value: 0 }, - { name: 'sTypoDescender', type: 'SHORT', value: 0 }, - { name: 'sTypoLineGap', type: 'SHORT', value: 0 }, - { name: 'usWinAscent', type: 'USHORT', value: 0 }, - { name: 'usWinDescent', type: 'USHORT', value: 0 }, - { name: 'ulCodePageRange1', type: 'ULONG', value: 0 }, - { name: 'ulCodePageRange2', type: 'ULONG', value: 0 }, - { name: 'sxHeight', type: 'SHORT', value: 0 }, - { name: 'sCapHeight', type: 'SHORT', value: 0 }, - { name: 'usDefaultChar', type: 'USHORT', value: 0 }, - { name: 'usBreakChar', type: 'USHORT', value: 0 }, - { name: 'usMaxContext', type: 'USHORT', value: 0 } - ], - options - ); - } - - var os2 = { - parse: parseOS2Table, - make: makeOS2Table, - unicodeRanges: unicodeRanges, - getUnicodeRange: getUnicodeRange - }; - - // The `post` table stores additional PostScript information, such as glyph names. - - // Parse the PostScript `post` table - function parsePostTable(data, start) { - var post = {}; - var p = new parse.Parser(data, start); - post.version = p.parseVersion(); - post.italicAngle = p.parseFixed(); - post.underlinePosition = p.parseShort(); - post.underlineThickness = p.parseShort(); - post.isFixedPitch = p.parseULong(); - post.minMemType42 = p.parseULong(); - post.maxMemType42 = p.parseULong(); - post.minMemType1 = p.parseULong(); - post.maxMemType1 = p.parseULong(); - switch (post.version) { - case 1: - post.names = standardNames.slice(); - break; - case 2: - post.numberOfGlyphs = p.parseUShort(); - post.glyphNameIndex = new Array(post.numberOfGlyphs); - for (var i = 0; i < post.numberOfGlyphs; i++) { - post.glyphNameIndex[i] = p.parseUShort(); - } - - post.names = []; - for (var i$1 = 0; i$1 < post.numberOfGlyphs; i$1++) { - if (post.glyphNameIndex[i$1] >= standardNames.length) { - var nameLength = p.parseChar(); - post.names.push(p.parseString(nameLength)); - } - } - - break; - case 2.5: - post.numberOfGlyphs = p.parseUShort(); - post.offset = new Array(post.numberOfGlyphs); - for (var i$2 = 0; i$2 < post.numberOfGlyphs; i$2++) { - post.offset[i$2] = p.parseChar(); - } - - break; - } - return post; - } - - function makePostTable() { - return new table.Table('post', [ - { name: 'version', type: 'FIXED', value: 0x00030000 }, - { name: 'italicAngle', type: 'FIXED', value: 0 }, - { name: 'underlinePosition', type: 'FWORD', value: 0 }, - { name: 'underlineThickness', type: 'FWORD', value: 0 }, - { name: 'isFixedPitch', type: 'ULONG', value: 0 }, - { name: 'minMemType42', type: 'ULONG', value: 0 }, - { name: 'maxMemType42', type: 'ULONG', value: 0 }, - { name: 'minMemType1', type: 'ULONG', value: 0 }, - { name: 'maxMemType1', type: 'ULONG', value: 0 } - ]); - } - - var post = { parse: parsePostTable, make: makePostTable }; - - // The `GSUB` table contains ligatures, among other things. - - var subtableParsers = new Array(9); // subtableParsers[0] is unused - - // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#SS - subtableParsers[1] = function parseLookup1() { - var start = this.offset + this.relativeOffset; - var substFormat = this.parseUShort(); - if (substFormat === 1) { - return { - substFormat: 1, - coverage: this.parsePointer(Parser.coverage), - deltaGlyphId: this.parseUShort() - }; - } else if (substFormat === 2) { - return { - substFormat: 2, - coverage: this.parsePointer(Parser.coverage), - substitute: this.parseOffset16List() - }; - } - check.assert( - false, - '0x' + start.toString(16) + ': lookup type 1 format must be 1 or 2.' - ); - }; - - // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#MS - subtableParsers[2] = function parseLookup2() { - var substFormat = this.parseUShort(); - check.argument( - substFormat === 1, - 'GSUB Multiple Substitution Subtable identifier-format must be 1' - ); - return { - substFormat: substFormat, - coverage: this.parsePointer(Parser.coverage), - sequences: this.parseListOfLists() - }; - }; - - // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#AS - subtableParsers[3] = function parseLookup3() { - var substFormat = this.parseUShort(); - check.argument( - substFormat === 1, - 'GSUB Alternate Substitution Subtable identifier-format must be 1' - ); - return { - substFormat: substFormat, - coverage: this.parsePointer(Parser.coverage), - alternateSets: this.parseListOfLists() - }; - }; - - // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#LS - subtableParsers[4] = function parseLookup4() { - var substFormat = this.parseUShort(); - check.argument( - substFormat === 1, - 'GSUB ligature table identifier-format must be 1' - ); - return { - substFormat: substFormat, - coverage: this.parsePointer(Parser.coverage), - ligatureSets: this.parseListOfLists(function() { - return { - ligGlyph: this.parseUShort(), - components: this.parseUShortList(this.parseUShort() - 1) - }; - }) - }; - }; - - var lookupRecordDesc = { - sequenceIndex: Parser.uShort, - lookupListIndex: Parser.uShort - }; - - // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#CSF - subtableParsers[5] = function parseLookup5() { - var start = this.offset + this.relativeOffset; - var substFormat = this.parseUShort(); - - if (substFormat === 1) { - return { - substFormat: substFormat, - coverage: this.parsePointer(Parser.coverage), - ruleSets: this.parseListOfLists(function() { - var glyphCount = this.parseUShort(); - var substCount = this.parseUShort(); - return { - input: this.parseUShortList(glyphCount - 1), - lookupRecords: this.parseRecordList(substCount, lookupRecordDesc) - }; - }) - }; - } else if (substFormat === 2) { - return { - substFormat: substFormat, - coverage: this.parsePointer(Parser.coverage), - classDef: this.parsePointer(Parser.classDef), - classSets: this.parseListOfLists(function() { - var glyphCount = this.parseUShort(); - var substCount = this.parseUShort(); - return { - classes: this.parseUShortList(glyphCount - 1), - lookupRecords: this.parseRecordList(substCount, lookupRecordDesc) - }; - }) - }; - } else if (substFormat === 3) { - var glyphCount = this.parseUShort(); - var substCount = this.parseUShort(); - return { - substFormat: substFormat, - coverages: this.parseList(glyphCount, Parser.pointer(Parser.coverage)), - lookupRecords: this.parseRecordList(substCount, lookupRecordDesc) - }; - } - check.assert( - false, - '0x' + start.toString(16) + ': lookup type 5 format must be 1, 2 or 3.' - ); - }; - - // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#CC - subtableParsers[6] = function parseLookup6() { - var start = this.offset + this.relativeOffset; - var substFormat = this.parseUShort(); - if (substFormat === 1) { - return { - substFormat: 1, - coverage: this.parsePointer(Parser.coverage), - chainRuleSets: this.parseListOfLists(function() { - return { - backtrack: this.parseUShortList(), - input: this.parseUShortList(this.parseShort() - 1), - lookahead: this.parseUShortList(), - lookupRecords: this.parseRecordList(lookupRecordDesc) - }; - }) - }; - } else if (substFormat === 2) { - return { - substFormat: 2, - coverage: this.parsePointer(Parser.coverage), - backtrackClassDef: this.parsePointer(Parser.classDef), - inputClassDef: this.parsePointer(Parser.classDef), - lookaheadClassDef: this.parsePointer(Parser.classDef), - chainClassSet: this.parseListOfLists(function() { - return { - backtrack: this.parseUShortList(), - input: this.parseUShortList(this.parseShort() - 1), - lookahead: this.parseUShortList(), - lookupRecords: this.parseRecordList(lookupRecordDesc) - }; - }) - }; - } else if (substFormat === 3) { - return { - substFormat: 3, - backtrackCoverage: this.parseList(Parser.pointer(Parser.coverage)), - inputCoverage: this.parseList(Parser.pointer(Parser.coverage)), - lookaheadCoverage: this.parseList(Parser.pointer(Parser.coverage)), - lookupRecords: this.parseRecordList(lookupRecordDesc) - }; - } - check.assert( - false, - '0x' + start.toString(16) + ': lookup type 6 format must be 1, 2 or 3.' - ); - }; - - // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#ES - subtableParsers[7] = function parseLookup7() { - // Extension Substitution subtable - var substFormat = this.parseUShort(); - check.argument( - substFormat === 1, - 'GSUB Extension Substitution subtable identifier-format must be 1' - ); - var extensionLookupType = this.parseUShort(); - var extensionParser = new Parser( - this.data, - this.offset + this.parseULong() - ); - return { - substFormat: 1, - lookupType: extensionLookupType, - extension: subtableParsers[extensionLookupType].call(extensionParser) - }; - }; - - // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#RCCS - subtableParsers[8] = function parseLookup8() { - var substFormat = this.parseUShort(); - check.argument( - substFormat === 1, - 'GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1' - ); - return { - substFormat: substFormat, - coverage: this.parsePointer(Parser.coverage), - backtrackCoverage: this.parseList(Parser.pointer(Parser.coverage)), - lookaheadCoverage: this.parseList(Parser.pointer(Parser.coverage)), - substitutes: this.parseUShortList() - }; - }; - - // https://www.microsoft.com/typography/OTSPEC/gsub.htm - function parseGsubTable(data, start) { - start = start || 0; - var p = new Parser(data, start); - var tableVersion = p.parseVersion(1); - check.argument( - tableVersion === 1 || tableVersion === 1.1, - 'Unsupported GSUB table version.' - ); - if (tableVersion === 1) { - return { - version: tableVersion, - scripts: p.parseScriptList(), - features: p.parseFeatureList(), - lookups: p.parseLookupList(subtableParsers) - }; - } else { - return { - version: tableVersion, - scripts: p.parseScriptList(), - features: p.parseFeatureList(), - lookups: p.parseLookupList(subtableParsers), - variations: p.parseFeatureVariationsList() - }; - } - } - - // GSUB Writing ////////////////////////////////////////////// - var subtableMakers = new Array(9); - - subtableMakers[1] = function makeLookup1(subtable) { - if (subtable.substFormat === 1) { - return new table.Table('substitutionTable', [ - { name: 'substFormat', type: 'USHORT', value: 1 }, - { - name: 'coverage', - type: 'TABLE', - value: new table.Coverage(subtable.coverage) - }, - { name: 'deltaGlyphID', type: 'USHORT', value: subtable.deltaGlyphId } - ]); - } else { - return new table.Table( - 'substitutionTable', - [ - { name: 'substFormat', type: 'USHORT', value: 2 }, - { - name: 'coverage', - type: 'TABLE', - value: new table.Coverage(subtable.coverage) - } - ].concat(table.ushortList('substitute', subtable.substitute)) - ); - } - check.fail('Lookup type 1 substFormat must be 1 or 2.'); - }; - - subtableMakers[3] = function makeLookup3(subtable) { - check.assert( - subtable.substFormat === 1, - 'Lookup type 3 substFormat must be 1.' - ); - return new table.Table( - 'substitutionTable', - [ - { name: 'substFormat', type: 'USHORT', value: 1 }, - { - name: 'coverage', - type: 'TABLE', - value: new table.Coverage(subtable.coverage) - } - ].concat( - table.tableList('altSet', subtable.alternateSets, function( - alternateSet - ) { - return new table.Table( - 'alternateSetTable', - table.ushortList('alternate', alternateSet) - ); - }) - ) - ); - }; - - subtableMakers[4] = function makeLookup4(subtable) { - check.assert( - subtable.substFormat === 1, - 'Lookup type 4 substFormat must be 1.' - ); - return new table.Table( - 'substitutionTable', - [ - { name: 'substFormat', type: 'USHORT', value: 1 }, - { - name: 'coverage', - type: 'TABLE', - value: new table.Coverage(subtable.coverage) - } - ].concat( - table.tableList('ligSet', subtable.ligatureSets, function(ligatureSet) { - return new table.Table( - 'ligatureSetTable', - table.tableList('ligature', ligatureSet, function(ligature) { - return new table.Table( - 'ligatureTable', - [ - { name: 'ligGlyph', type: 'USHORT', value: ligature.ligGlyph } - ].concat( - table.ushortList( - 'component', - ligature.components, - ligature.components.length + 1 - ) - ) - ); - }) - ); - }) - ) - ); - }; - - function makeGsubTable(gsub) { - return new table.Table('GSUB', [ - { name: 'version', type: 'ULONG', value: 0x10000 }, - { - name: 'scripts', - type: 'TABLE', - value: new table.ScriptList(gsub.scripts) - }, - { - name: 'features', - type: 'TABLE', - value: new table.FeatureList(gsub.features) - }, - { - name: 'lookups', - type: 'TABLE', - value: new table.LookupList(gsub.lookups, subtableMakers) - } - ]); - } - - var gsub = { parse: parseGsubTable, make: makeGsubTable }; - - // The `GPOS` table contains kerning pairs, among other things. - - // Parse the metadata `meta` table. - // https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6meta.html - function parseMetaTable(data, start) { - var p = new parse.Parser(data, start); - var tableVersion = p.parseULong(); - check.argument(tableVersion === 1, 'Unsupported META table version.'); - p.parseULong(); // flags - currently unused and set to 0 - p.parseULong(); // tableOffset - var numDataMaps = p.parseULong(); - - var tags = {}; - for (var i = 0; i < numDataMaps; i++) { - var tag = p.parseTag(); - var dataOffset = p.parseULong(); - var dataLength = p.parseULong(); - var text = decode.UTF8(data, start + dataOffset, dataLength); - - tags[tag] = text; - } - return tags; - } - - function makeMetaTable(tags) { - var numTags = Object.keys(tags).length; - var stringPool = ''; - var stringPoolOffset = 16 + numTags * 12; - - var result = new table.Table('meta', [ - { name: 'version', type: 'ULONG', value: 1 }, - { name: 'flags', type: 'ULONG', value: 0 }, - { name: 'offset', type: 'ULONG', value: stringPoolOffset }, - { name: 'numTags', type: 'ULONG', value: numTags } - ]); - - for (var tag in tags) { - var pos = stringPool.length; - stringPool += tags[tag]; - - result.fields.push({ name: 'tag ' + tag, type: 'TAG', value: tag }); - result.fields.push({ - name: 'offset ' + tag, - type: 'ULONG', - value: stringPoolOffset + pos - }); - result.fields.push({ - name: 'length ' + tag, - type: 'ULONG', - value: tags[tag].length - }); - } - - result.fields.push({ - name: 'stringPool', - type: 'CHARARRAY', - value: stringPool - }); - - return result; - } - - var meta = { parse: parseMetaTable, make: makeMetaTable }; - - // The `sfnt` wrapper provides organization for the tables in the font. - - function log2(v) { - return (Math.log(v) / Math.log(2)) | 0; - } - - function computeCheckSum(bytes) { - while (bytes.length % 4 !== 0) { - bytes.push(0); - } - - var sum = 0; - for (var i = 0; i < bytes.length; i += 4) { - sum += - (bytes[i] << 24) + - (bytes[i + 1] << 16) + - (bytes[i + 2] << 8) + - bytes[i + 3]; - } - - sum %= Math.pow(2, 32); - return sum; - } - - function makeTableRecord(tag, checkSum, offset, length) { - return new table.Record('Table Record', [ - { name: 'tag', type: 'TAG', value: tag !== undefined ? tag : '' }, - { - name: 'checkSum', - type: 'ULONG', - value: checkSum !== undefined ? checkSum : 0 - }, - { - name: 'offset', - type: 'ULONG', - value: offset !== undefined ? offset : 0 - }, - { - name: 'length', - type: 'ULONG', - value: length !== undefined ? length : 0 - } - ]); - } - - function makeSfntTable(tables) { - var sfnt = new table.Table('sfnt', [ - { name: 'version', type: 'TAG', value: 'OTTO' }, - { name: 'numTables', type: 'USHORT', value: 0 }, - { name: 'searchRange', type: 'USHORT', value: 0 }, - { name: 'entrySelector', type: 'USHORT', value: 0 }, - { name: 'rangeShift', type: 'USHORT', value: 0 } - ]); - sfnt.tables = tables; - sfnt.numTables = tables.length; - var highestPowerOf2 = Math.pow(2, log2(sfnt.numTables)); - sfnt.searchRange = 16 * highestPowerOf2; - sfnt.entrySelector = log2(highestPowerOf2); - sfnt.rangeShift = sfnt.numTables * 16 - sfnt.searchRange; - - var recordFields = []; - var tableFields = []; - - var offset = sfnt.sizeOf() + makeTableRecord().sizeOf() * sfnt.numTables; - while (offset % 4 !== 0) { - offset += 1; - tableFields.push({ name: 'padding', type: 'BYTE', value: 0 }); - } - - for (var i = 0; i < tables.length; i += 1) { - var t = tables[i]; - check.argument( - t.tableName.length === 4, - 'Table name' + t.tableName + ' is invalid.' - ); - var tableLength = t.sizeOf(); - var tableRecord = makeTableRecord( - t.tableName, - computeCheckSum(t.encode()), - offset, - tableLength - ); - recordFields.push({ - name: tableRecord.tag + ' Table Record', - type: 'RECORD', - value: tableRecord - }); - tableFields.push({ - name: t.tableName + ' table', - type: 'RECORD', - value: t - }); - offset += tableLength; - check.argument( - !isNaN(offset), - 'Something went wrong calculating the offset.' - ); - while (offset % 4 !== 0) { - offset += 1; - tableFields.push({ name: 'padding', type: 'BYTE', value: 0 }); - } - } - - // Table records need to be sorted alphabetically. - recordFields.sort(function(r1, r2) { - if (r1.value.tag > r2.value.tag) { - return 1; - } else { - return -1; - } - }); - - sfnt.fields = sfnt.fields.concat(recordFields); - sfnt.fields = sfnt.fields.concat(tableFields); - return sfnt; - } - - // Get the metrics for a character. If the string has more than one character - // this function returns metrics for the first available character. - // You can provide optional fallback metrics if no characters are available. - function metricsForChar(font, chars, notFoundMetrics) { - for (var i = 0; i < chars.length; i += 1) { - var glyphIndex = font.charToGlyphIndex(chars[i]); - if (glyphIndex > 0) { - var glyph = font.glyphs.get(glyphIndex); - return glyph.getMetrics(); - } - } - - return notFoundMetrics; - } - - function average(vs) { - var sum = 0; - for (var i = 0; i < vs.length; i += 1) { - sum += vs[i]; - } - - return sum / vs.length; - } - - // Convert the font object to a SFNT data structure. - // This structure contains all the necessary tables and metadata to create a binary OTF file. - function fontToSfntTable(font) { - var xMins = []; - var yMins = []; - var xMaxs = []; - var yMaxs = []; - var advanceWidths = []; - var leftSideBearings = []; - var rightSideBearings = []; - var firstCharIndex; - var lastCharIndex = 0; - var ulUnicodeRange1 = 0; - var ulUnicodeRange2 = 0; - var ulUnicodeRange3 = 0; - var ulUnicodeRange4 = 0; - - for (var i = 0; i < font.glyphs.length; i += 1) { - var glyph = font.glyphs.get(i); - var unicode = glyph.unicode | 0; - - if (isNaN(glyph.advanceWidth)) { - throw new Error( - 'Glyph ' + glyph.name + ' (' + i + '): advanceWidth is not a number.' - ); - } - - if (firstCharIndex > unicode || firstCharIndex === undefined) { - // ignore .notdef char - if (unicode > 0) { - firstCharIndex = unicode; - } - } - - if (lastCharIndex < unicode) { - lastCharIndex = unicode; - } - - var position = os2.getUnicodeRange(unicode); - if (position < 32) { - ulUnicodeRange1 |= 1 << position; - } else if (position < 64) { - ulUnicodeRange2 |= 1 << (position - 32); - } else if (position < 96) { - ulUnicodeRange3 |= 1 << (position - 64); - } else if (position < 123) { - ulUnicodeRange4 |= 1 << (position - 96); - } else { - throw new Error( - 'Unicode ranges bits > 123 are reserved for internal usage' - ); - } - // Skip non-important characters. - if (glyph.name === '.notdef') { - continue; - } - var metrics = glyph.getMetrics(); - xMins.push(metrics.xMin); - yMins.push(metrics.yMin); - xMaxs.push(metrics.xMax); - yMaxs.push(metrics.yMax); - leftSideBearings.push(metrics.leftSideBearing); - rightSideBearings.push(metrics.rightSideBearing); - advanceWidths.push(glyph.advanceWidth); - } - - var globals = { - xMin: Math.min.apply(null, xMins), - yMin: Math.min.apply(null, yMins), - xMax: Math.max.apply(null, xMaxs), - yMax: Math.max.apply(null, yMaxs), - advanceWidthMax: Math.max.apply(null, advanceWidths), - advanceWidthAvg: average(advanceWidths), - minLeftSideBearing: Math.min.apply(null, leftSideBearings), - maxLeftSideBearing: Math.max.apply(null, leftSideBearings), - minRightSideBearing: Math.min.apply(null, rightSideBearings) - }; - globals.ascender = font.ascender; - globals.descender = font.descender; - - var headTable = head.make({ - flags: 3, // 00000011 (baseline for font at y=0; left sidebearing point at x=0) - unitsPerEm: font.unitsPerEm, - xMin: globals.xMin, - yMin: globals.yMin, - xMax: globals.xMax, - yMax: globals.yMax, - lowestRecPPEM: 3, - createdTimestamp: font.createdTimestamp - }); - - var hheaTable = hhea.make({ - ascender: globals.ascender, - descender: globals.descender, - advanceWidthMax: globals.advanceWidthMax, - minLeftSideBearing: globals.minLeftSideBearing, - minRightSideBearing: globals.minRightSideBearing, - xMaxExtent: globals.maxLeftSideBearing + (globals.xMax - globals.xMin), - numberOfHMetrics: font.glyphs.length - }); - - var maxpTable = maxp.make(font.glyphs.length); - - var os2Table = os2.make({ - xAvgCharWidth: Math.round(globals.advanceWidthAvg), - usWeightClass: font.tables.os2.usWeightClass, - usWidthClass: font.tables.os2.usWidthClass, - usFirstCharIndex: firstCharIndex, - usLastCharIndex: lastCharIndex, - ulUnicodeRange1: ulUnicodeRange1, - ulUnicodeRange2: ulUnicodeRange2, - ulUnicodeRange3: ulUnicodeRange3, - ulUnicodeRange4: ulUnicodeRange4, - fsSelection: font.tables.os2.fsSelection, // REGULAR - // See http://typophile.com/node/13081 for more info on vertical metrics. - // We get metrics for typical characters (such as "x" for xHeight). - // We provide some fallback characters if characters are unavailable: their - // ordering was chosen experimentally. - sTypoAscender: globals.ascender, - sTypoDescender: globals.descender, - sTypoLineGap: 0, - usWinAscent: globals.yMax, - usWinDescent: Math.abs(globals.yMin), - ulCodePageRange1: 1, // FIXME: hard-code Latin 1 support for now - sxHeight: metricsForChar(font, 'xyvw', { - yMax: Math.round(globals.ascender / 2) - }).yMax, - sCapHeight: metricsForChar(font, 'HIKLEFJMNTZBDPRAGOQSUVWXY', globals) - .yMax, - usDefaultChar: font.hasChar(' ') ? 32 : 0, // Use space as the default character, if available. - usBreakChar: font.hasChar(' ') ? 32 : 0 // Use space as the break character, if available. - }); - - var hmtxTable = hmtx.make(font.glyphs); - var cmapTable = cmap.make(font.glyphs); - - var englishFamilyName = font.getEnglishName('fontFamily'); - var englishStyleName = font.getEnglishName('fontSubfamily'); - var englishFullName = englishFamilyName + ' ' + englishStyleName; - var postScriptName = font.getEnglishName('postScriptName'); - if (!postScriptName) { - postScriptName = - englishFamilyName.replace(/\s/g, '') + '-' + englishStyleName; - } - - var names = {}; - for (var n in font.names) { - names[n] = font.names[n]; - } - - if (!names.uniqueID) { - names.uniqueID = { - en: font.getEnglishName('manufacturer') + ':' + englishFullName - }; - } - - if (!names.postScriptName) { - names.postScriptName = { en: postScriptName }; - } - - if (!names.preferredFamily) { - names.preferredFamily = font.names.fontFamily; - } - - if (!names.preferredSubfamily) { - names.preferredSubfamily = font.names.fontSubfamily; - } - - var languageTags = []; - var nameTable = _name.make(names, languageTags); - var ltagTable = - languageTags.length > 0 ? ltag.make(languageTags) : undefined; - - var postTable = post.make(); - var cffTable = cff.make(font.glyphs, { - version: font.getEnglishName('version'), - fullName: englishFullName, - familyName: englishFamilyName, - weightName: englishStyleName, - postScriptName: postScriptName, - unitsPerEm: font.unitsPerEm, - fontBBox: [0, globals.yMin, globals.ascender, globals.advanceWidthMax] - }); - - var metaTable = - font.metas && Object.keys(font.metas).length > 0 - ? meta.make(font.metas) - : undefined; - - // The order does not matter because makeSfntTable() will sort them. - var tables = [ - headTable, - hheaTable, - maxpTable, - os2Table, - nameTable, - cmapTable, - postTable, - cffTable, - hmtxTable - ]; - if (ltagTable) { - tables.push(ltagTable); - } - // Optional tables - if (font.tables.gsub) { - tables.push(gsub.make(font.tables.gsub)); - } - if (metaTable) { - tables.push(metaTable); - } - - var sfntTable = makeSfntTable(tables); - - // Compute the font's checkSum and store it in head.checkSumAdjustment. - var bytes = sfntTable.encode(); - var checkSum = computeCheckSum(bytes); - var tableFields = sfntTable.fields; - var checkSumAdjusted = false; - for (var i$1 = 0; i$1 < tableFields.length; i$1 += 1) { - if (tableFields[i$1].name === 'head table') { - tableFields[i$1].value.checkSumAdjustment = 0xb1b0afba - checkSum; - checkSumAdjusted = true; - break; - } - } - - if (!checkSumAdjusted) { - throw new Error('Could not find head table with checkSum to adjust.'); - } - - return sfntTable; - } - - var sfnt = { - make: makeSfntTable, - fontToTable: fontToSfntTable, - computeCheckSum: computeCheckSum - }; - - // The Layout object is the prototype of Substitution objects, and provides - - function searchTag(arr, tag) { - /* jshint bitwise: false */ - var imin = 0; - var imax = arr.length - 1; - while (imin <= imax) { - var imid = (imin + imax) >>> 1; - var val = arr[imid].tag; - if (val === tag) { - return imid; - } else if (val < tag) { - imin = imid + 1; - } else { - imax = imid - 1; - } - } - // Not found: return -1-insertion point - return -imin - 1; - } - - function binSearch(arr, value) { - /* jshint bitwise: false */ - var imin = 0; - var imax = arr.length - 1; - while (imin <= imax) { - var imid = (imin + imax) >>> 1; - var val = arr[imid]; - if (val === value) { - return imid; - } else if (val < value) { - imin = imid + 1; - } else { - imax = imid - 1; - } - } - // Not found: return -1-insertion point - return -imin - 1; - } - - // binary search in a list of ranges (coverage, class definition) - function searchRange(ranges, value) { - // jshint bitwise: false - var range; - var imin = 0; - var imax = ranges.length - 1; - while (imin <= imax) { - var imid = (imin + imax) >>> 1; - range = ranges[imid]; - var start = range.start; - if (start === value) { - return range; - } else if (start < value) { - imin = imid + 1; - } else { - imax = imid - 1; - } - } - if (imin > 0) { - range = ranges[imin - 1]; - if (value > range.end) { - return 0; - } - return range; - } - } - - /** - * @exports opentype.Layout - * @class - */ - function Layout(font, tableName) { - this.font = font; - this.tableName = tableName; - } - - Layout.prototype = { - /** - * Binary search an object by "tag" property - * @instance - * @function searchTag - * @memberof opentype.Layout - * @param {Array} arr - * @param {string} tag - * @return {number} - */ - searchTag: searchTag, - - /** - * Binary search in a list of numbers - * @instance - * @function binSearch - * @memberof opentype.Layout - * @param {Array} arr - * @param {number} value - * @return {number} - */ - binSearch: binSearch, - - /** - * Get or create the Layout table (GSUB, GPOS etc). - * @param {boolean} create - Whether to create a new one. - * @return {Object} The GSUB or GPOS table. - */ - getTable: function(create) { - var layout = this.font.tables[this.tableName]; - if (!layout && create) { - layout = this.font.tables[this.tableName] = this.createDefaultTable(); - } - return layout; - }, - - /** - * Returns all scripts in the substitution table. - * @instance - * @return {Array} - */ - getScriptNames: function() { - var layout = this.getTable(); - if (!layout) { - return []; - } - return layout.scripts.map(function(script) { - return script.tag; - }); - }, - - /** - * Returns the best bet for a script name. - * Returns 'DFLT' if it exists. - * If not, returns 'latn' if it exists. - * If neither exist, returns undefined. - */ - getDefaultScriptName: function() { - var layout = this.getTable(); - if (!layout) { - return; - } - var hasLatn = false; - for (var i = 0; i < layout.scripts.length; i++) { - var name = layout.scripts[i].tag; - if (name === 'DFLT') { - return name; - } - if (name === 'latn') { - hasLatn = true; - } - } - if (hasLatn) { - return 'latn'; - } - }, - - /** - * Returns all LangSysRecords in the given script. - * @instance - * @param {string} [script='DFLT'] - * @param {boolean} create - forces the creation of this script table if it doesn't exist. - * @return {Object} An object with tag and script properties. - */ - getScriptTable: function(script, create) { - var layout = this.getTable(create); - if (layout) { - script = script || 'DFLT'; - var scripts = layout.scripts; - var pos = searchTag(layout.scripts, script); - if (pos >= 0) { - return scripts[pos].script; - } else if (create) { - var scr = { - tag: script, - script: { - defaultLangSys: { - reserved: 0, - reqFeatureIndex: 0xffff, - featureIndexes: [] - }, - langSysRecords: [] - } - }; - scripts.splice(-1 - pos, 0, scr); - return scr.script; - } - } - }, - - /** - * Returns a language system table - * @instance - * @param {string} [script='DFLT'] - * @param {string} [language='dlft'] - * @param {boolean} create - forces the creation of this langSysTable if it doesn't exist. - * @return {Object} - */ - getLangSysTable: function(script, language, create) { - var scriptTable = this.getScriptTable(script, create); - if (scriptTable) { - if (!language || language === 'dflt' || language === 'DFLT') { - return scriptTable.defaultLangSys; - } - var pos = searchTag(scriptTable.langSysRecords, language); - if (pos >= 0) { - return scriptTable.langSysRecords[pos].langSys; - } else if (create) { - var langSysRecord = { - tag: language, - langSys: { - reserved: 0, - reqFeatureIndex: 0xffff, - featureIndexes: [] - } - }; - scriptTable.langSysRecords.splice(-1 - pos, 0, langSysRecord); - return langSysRecord.langSys; - } - } - }, - - /** - * Get a specific feature table. - * @instance - * @param {string} [script='DFLT'] - * @param {string} [language='dlft'] - * @param {string} feature - One of the codes listed at https://www.microsoft.com/typography/OTSPEC/featurelist.htm - * @param {boolean} create - forces the creation of the feature table if it doesn't exist. - * @return {Object} - */ - getFeatureTable: function(script, language, feature, create) { - var langSysTable = this.getLangSysTable(script, language, create); - if (langSysTable) { - var featureRecord; - var featIndexes = langSysTable.featureIndexes; - var allFeatures = this.font.tables[this.tableName].features; - // The FeatureIndex array of indices is in arbitrary order, - // even if allFeatures is sorted alphabetically by feature tag. - for (var i = 0; i < featIndexes.length; i++) { - featureRecord = allFeatures[featIndexes[i]]; - if (featureRecord.tag === feature) { - return featureRecord.feature; - } - } - if (create) { - var index = allFeatures.length; - // Automatic ordering of features would require to shift feature indexes in the script list. - check.assert( - index === 0 || feature >= allFeatures[index - 1].tag, - 'Features must be added in alphabetical order.' - ); - featureRecord = { - tag: feature, - feature: { params: 0, lookupListIndexes: [] } - }; - allFeatures.push(featureRecord); - featIndexes.push(index); - return featureRecord.feature; - } - } - }, - - /** - * Get the lookup tables of a given type for a script/language/feature. - * @instance - * @param {string} [script='DFLT'] - * @param {string} [language='dlft'] - * @param {string} feature - 4-letter feature code - * @param {number} lookupType - 1 to 9 - * @param {boolean} create - forces the creation of the lookup table if it doesn't exist, with no subtables. - * @return {Object[]} - */ - getLookupTables: function(script, language, feature, lookupType, create) { - var featureTable = this.getFeatureTable( - script, - language, - feature, - create - ); - var tables = []; - if (featureTable) { - var lookupTable; - var lookupListIndexes = featureTable.lookupListIndexes; - var allLookups = this.font.tables[this.tableName].lookups; - // lookupListIndexes are in no particular order, so use naive search. - for (var i = 0; i < lookupListIndexes.length; i++) { - lookupTable = allLookups[lookupListIndexes[i]]; - if (lookupTable.lookupType === lookupType) { - tables.push(lookupTable); - } - } - if (tables.length === 0 && create) { - lookupTable = { - lookupType: lookupType, - lookupFlag: 0, - subtables: [], - markFilteringSet: undefined - }; - var index = allLookups.length; - allLookups.push(lookupTable); - lookupListIndexes.push(index); - return [lookupTable]; - } - } - return tables; - }, - - /** - * Find a glyph in a class definition table - * https://docs.microsoft.com/en-us/typography/opentype/spec/chapter2#class-definition-table - * @param {object} classDefTable - an OpenType Layout class definition table - * @param {number} glyphIndex - the index of the glyph to find - * @returns {number} -1 if not found - */ - getGlyphClass: function(classDefTable, glyphIndex) { - switch (classDefTable.format) { - case 1: - if ( - classDefTable.startGlyph <= glyphIndex && - glyphIndex < classDefTable.startGlyph + classDefTable.classes.length - ) { - return classDefTable.classes[glyphIndex - classDefTable.startGlyph]; - } - return 0; - case 2: - var range = searchRange(classDefTable.ranges, glyphIndex); - return range ? range.classId : 0; - } - }, - - /** - * Find a glyph in a coverage table - * https://docs.microsoft.com/en-us/typography/opentype/spec/chapter2#coverage-table - * @param {object} coverageTable - an OpenType Layout coverage table - * @param {number} glyphIndex - the index of the glyph to find - * @returns {number} -1 if not found - */ - getCoverageIndex: function(coverageTable, glyphIndex) { - switch (coverageTable.format) { - case 1: - var index = binSearch(coverageTable.glyphs, glyphIndex); - return index >= 0 ? index : -1; - case 2: - var range = searchRange(coverageTable.ranges, glyphIndex); - return range ? range.index + glyphIndex - range.start : -1; - } - }, - - /** - * Returns the list of glyph indexes of a coverage table. - * Format 1: the list is stored raw - * Format 2: compact list as range records. - * @instance - * @param {Object} coverageTable - * @return {Array} - */ - expandCoverage: function(coverageTable) { - if (coverageTable.format === 1) { - return coverageTable.glyphs; - } else { - var glyphs = []; - var ranges = coverageTable.ranges; - for (var i = 0; i < ranges.length; i++) { - var range = ranges[i]; - var start = range.start; - var end = range.end; - for (var j = start; j <= end; j++) { - glyphs.push(j); - } - } - return glyphs; - } - } - }; - - // The Position object provides utility methods to manipulate - - /** - * @exports opentype.Position - * @class - * @extends opentype.Layout - * @param {opentype.Font} - * @constructor - */ - function Position(font) { - Layout.call(this, font, 'gpos'); - } - - Position.prototype = Layout.prototype; - - /** - * Init some data for faster and easier access later. - */ - Position.prototype.init = function() { - var script = this.getDefaultScriptName(); - this.defaultKerningTables = this.getKerningTables(script); - }; - - /** - * Find a glyph pair in a list of lookup tables of type 2 and retrieve the xAdvance kerning value. - * - * @param {integer} leftIndex - left glyph index - * @param {integer} rightIndex - right glyph index - * @returns {integer} - */ - Position.prototype.getKerningValue = function( - kerningLookups, - leftIndex, - rightIndex - ) { - var this$1 = this; - - for (var i = 0; i < kerningLookups.length; i++) { - var subtables = kerningLookups[i].subtables; - for (var j = 0; j < subtables.length; j++) { - var subtable = subtables[j]; - var covIndex = this$1.getCoverageIndex(subtable.coverage, leftIndex); - if (covIndex < 0) { - continue; - } - switch (subtable.posFormat) { - case 1: - // Search Pair Adjustment Positioning Format 1 - var pairSet = subtable.pairSets[covIndex]; - for (var k = 0; k < pairSet.length; k++) { - var pair = pairSet[k]; - if (pair.secondGlyph === rightIndex) { - return (pair.value1 && pair.value1.xAdvance) || 0; - } - } - break; // left glyph found, not right glyph - try next subtable - case 2: - // Search Pair Adjustment Positioning Format 2 - var class1 = this$1.getGlyphClass(subtable.classDef1, leftIndex); - var class2 = this$1.getGlyphClass(subtable.classDef2, rightIndex); - var pair$1 = subtable.classRecords[class1][class2]; - return (pair$1.value1 && pair$1.value1.xAdvance) || 0; - } - } - } - return 0; - }; - - /** - * List all kerning lookup tables. - * - * @param {string} [script='DFLT'] - use font.position.getDefaultScriptName() for a better default value - * @param {string} [language='dflt'] - * @return {object[]} The list of kerning lookup tables (may be empty), or undefined if there is no GPOS table (and we should use the kern table) - */ - Position.prototype.getKerningTables = function(script, language) { - if (this.font.tables.gpos) { - return this.getLookupTables(script, language, 'kern', 2); - } - }; - - // The Substitution object provides utility methods to manipulate - - /** - * @exports opentype.Substitution - * @class - * @extends opentype.Layout - * @param {opentype.Font} - * @constructor - */ - function Substitution(font) { - Layout.call(this, font, 'gsub'); - } - - // Check if 2 arrays of primitives are equal. - function arraysEqual(ar1, ar2) { - var n = ar1.length; - if (n !== ar2.length) { - return false; - } - for (var i = 0; i < n; i++) { - if (ar1[i] !== ar2[i]) { - return false; - } - } - return true; - } - - // Find the first subtable of a lookup table in a particular format. - function getSubstFormat(lookupTable, format, defaultSubtable) { - var subtables = lookupTable.subtables; - for (var i = 0; i < subtables.length; i++) { - var subtable = subtables[i]; - if (subtable.substFormat === format) { - return subtable; - } - } - if (defaultSubtable) { - subtables.push(defaultSubtable); - return defaultSubtable; - } - return undefined; - } - - Substitution.prototype = Layout.prototype; - - /** - * Create a default GSUB table. - * @return {Object} gsub - The GSUB table. - */ - Substitution.prototype.createDefaultTable = function() { - // Generate a default empty GSUB table with just a DFLT script and dflt lang sys. - return { - version: 1, - scripts: [ - { - tag: 'DFLT', - script: { - defaultLangSys: { - reserved: 0, - reqFeatureIndex: 0xffff, - featureIndexes: [] - }, - langSysRecords: [] - } - } - ], - features: [], - lookups: [] - }; - }; - - /** - * List all single substitutions (lookup type 1) for a given script, language, and feature. - * @param {string} [script='DFLT'] - * @param {string} [language='dflt'] - * @param {string} feature - 4-character feature name ('aalt', 'salt', 'ss01'...) - * @return {Array} substitutions - The list of substitutions. - */ - Substitution.prototype.getSingle = function(feature, script, language) { - var this$1 = this; - - var substitutions = []; - var lookupTables = this.getLookupTables(script, language, feature, 1); - for (var idx = 0; idx < lookupTables.length; idx++) { - var subtables = lookupTables[idx].subtables; - for (var i = 0; i < subtables.length; i++) { - var subtable = subtables[i]; - var glyphs = this$1.expandCoverage(subtable.coverage); - var j = void 0; - if (subtable.substFormat === 1) { - var delta = subtable.deltaGlyphId; - for (j = 0; j < glyphs.length; j++) { - var glyph = glyphs[j]; - substitutions.push({ sub: glyph, by: glyph + delta }); - } - } else { - var substitute = subtable.substitute; - for (j = 0; j < glyphs.length; j++) { - substitutions.push({ sub: glyphs[j], by: substitute[j] }); - } - } - } - } - return substitutions; - }; - - /** - * List all alternates (lookup type 3) for a given script, language, and feature. - * @param {string} [script='DFLT'] - * @param {string} [language='dflt'] - * @param {string} feature - 4-character feature name ('aalt', 'salt'...) - * @return {Array} alternates - The list of alternates - */ - Substitution.prototype.getAlternates = function(feature, script, language) { - var this$1 = this; - - var alternates = []; - var lookupTables = this.getLookupTables(script, language, feature, 3); - for (var idx = 0; idx < lookupTables.length; idx++) { - var subtables = lookupTables[idx].subtables; - for (var i = 0; i < subtables.length; i++) { - var subtable = subtables[i]; - var glyphs = this$1.expandCoverage(subtable.coverage); - var alternateSets = subtable.alternateSets; - for (var j = 0; j < glyphs.length; j++) { - alternates.push({ sub: glyphs[j], by: alternateSets[j] }); - } - } - } - return alternates; - }; - - /** - * List all ligatures (lookup type 4) for a given script, language, and feature. - * The result is an array of ligature objects like { sub: [ids], by: id } - * @param {string} feature - 4-letter feature name ('liga', 'rlig', 'dlig'...) - * @param {string} [script='DFLT'] - * @param {string} [language='dflt'] - * @return {Array} ligatures - The list of ligatures. - */ - Substitution.prototype.getLigatures = function(feature, script, language) { - var this$1 = this; - - var ligatures = []; - var lookupTables = this.getLookupTables(script, language, feature, 4); - for (var idx = 0; idx < lookupTables.length; idx++) { - var subtables = lookupTables[idx].subtables; - for (var i = 0; i < subtables.length; i++) { - var subtable = subtables[i]; - var glyphs = this$1.expandCoverage(subtable.coverage); - var ligatureSets = subtable.ligatureSets; - for (var j = 0; j < glyphs.length; j++) { - var startGlyph = glyphs[j]; - var ligSet = ligatureSets[j]; - for (var k = 0; k < ligSet.length; k++) { - var lig = ligSet[k]; - ligatures.push({ - sub: [startGlyph].concat(lig.components), - by: lig.ligGlyph - }); - } - } - } - } - return ligatures; - }; - - /** - * Add or modify a single substitution (lookup type 1) - * Format 2, more flexible, is always used. - * @param {string} feature - 4-letter feature name ('liga', 'rlig', 'dlig'...) - * @param {Object} substitution - { sub: id, delta: number } for format 1 or { sub: id, by: id } for format 2. - * @param {string} [script='DFLT'] - * @param {string} [language='dflt'] - */ - Substitution.prototype.addSingle = function( - feature, - substitution, - script, - language - ) { - var lookupTable = this.getLookupTables( - script, - language, - feature, - 1, - true - )[0]; - var subtable = getSubstFormat(lookupTable, 2, { - // lookup type 1 subtable, format 2, coverage format 1 - substFormat: 2, - coverage: { format: 1, glyphs: [] }, - substitute: [] - }); - check.assert( - subtable.coverage.format === 1, - 'Ligature: unable to modify coverage table format ' + - subtable.coverage.format - ); - var coverageGlyph = substitution.sub; - var pos = this.binSearch(subtable.coverage.glyphs, coverageGlyph); - if (pos < 0) { - pos = -1 - pos; - subtable.coverage.glyphs.splice(pos, 0, coverageGlyph); - subtable.substitute.splice(pos, 0, 0); - } - subtable.substitute[pos] = substitution.by; - }; - - /** - * Add or modify an alternate substitution (lookup type 1) - * @param {string} feature - 4-letter feature name ('liga', 'rlig', 'dlig'...) - * @param {Object} substitution - { sub: id, by: [ids] } - * @param {string} [script='DFLT'] - * @param {string} [language='dflt'] - */ - Substitution.prototype.addAlternate = function( - feature, - substitution, - script, - language - ) { - var lookupTable = this.getLookupTables( - script, - language, - feature, - 3, - true - )[0]; - var subtable = getSubstFormat(lookupTable, 1, { - // lookup type 3 subtable, format 1, coverage format 1 - substFormat: 1, - coverage: { format: 1, glyphs: [] }, - alternateSets: [] - }); - check.assert( - subtable.coverage.format === 1, - 'Ligature: unable to modify coverage table format ' + - subtable.coverage.format - ); - var coverageGlyph = substitution.sub; - var pos = this.binSearch(subtable.coverage.glyphs, coverageGlyph); - if (pos < 0) { - pos = -1 - pos; - subtable.coverage.glyphs.splice(pos, 0, coverageGlyph); - subtable.alternateSets.splice(pos, 0, 0); - } - subtable.alternateSets[pos] = substitution.by; - }; - - /** - * Add a ligature (lookup type 4) - * Ligatures with more components must be stored ahead of those with fewer components in order to be found - * @param {string} feature - 4-letter feature name ('liga', 'rlig', 'dlig'...) - * @param {Object} ligature - { sub: [ids], by: id } - * @param {string} [script='DFLT'] - * @param {string} [language='dflt'] - */ - Substitution.prototype.addLigature = function( - feature, - ligature, - script, - language - ) { - var lookupTable = this.getLookupTables( - script, - language, - feature, - 4, - true - )[0]; - var subtable = lookupTable.subtables[0]; - if (!subtable) { - subtable = { - // lookup type 4 subtable, format 1, coverage format 1 - substFormat: 1, - coverage: { format: 1, glyphs: [] }, - ligatureSets: [] - }; - lookupTable.subtables[0] = subtable; - } - check.assert( - subtable.coverage.format === 1, - 'Ligature: unable to modify coverage table format ' + - subtable.coverage.format - ); - var coverageGlyph = ligature.sub[0]; - var ligComponents = ligature.sub.slice(1); - var ligatureTable = { - ligGlyph: ligature.by, - components: ligComponents - }; - var pos = this.binSearch(subtable.coverage.glyphs, coverageGlyph); - if (pos >= 0) { - // ligatureSet already exists - var ligatureSet = subtable.ligatureSets[pos]; - for (var i = 0; i < ligatureSet.length; i++) { - // If ligature already exists, return. - if (arraysEqual(ligatureSet[i].components, ligComponents)) { - return; - } - } - // ligature does not exist: add it. - ligatureSet.push(ligatureTable); - } else { - // Create a new ligatureSet and add coverage for the first glyph. - pos = -1 - pos; - subtable.coverage.glyphs.splice(pos, 0, coverageGlyph); - subtable.ligatureSets.splice(pos, 0, [ligatureTable]); - } - }; - - /** - * List all feature data for a given script and language. - * @param {string} feature - 4-letter feature name - * @param {string} [script='DFLT'] - * @param {string} [language='dflt'] - * @return {Array} substitutions - The list of substitutions. - */ - Substitution.prototype.getFeature = function(feature, script, language) { - if (/ss\d\d/.test(feature)) { - // ss01 - ss20 - return this.getSingle(feature, script, language); - } - switch (feature) { - case 'aalt': - case 'salt': - return this.getSingle(feature, script, language).concat( - this.getAlternates(feature, script, language) - ); - case 'dlig': - case 'liga': - case 'rlig': - return this.getLigatures(feature, script, language); - } - return undefined; - }; - - /** - * Add a substitution to a feature for a given script and language. - * @param {string} feature - 4-letter feature name - * @param {Object} sub - the substitution to add (an object like { sub: id or [ids], by: id or [ids] }) - * @param {string} [script='DFLT'] - * @param {string} [language='dflt'] - */ - Substitution.prototype.add = function(feature, sub, script, language) { - if (/ss\d\d/.test(feature)) { - // ss01 - ss20 - return this.addSingle(feature, sub, script, language); - } - switch (feature) { - case 'aalt': - case 'salt': - if (typeof sub.by === 'number') { - return this.addSingle(feature, sub, script, language); - } - return this.addAlternate(feature, sub, script, language); - case 'dlig': - case 'liga': - case 'rlig': - return this.addLigature(feature, sub, script, language); - } - return undefined; - }; - - function isBrowser() { - return typeof window !== 'undefined'; - } - - function nodeBufferToArrayBuffer(buffer) { - var ab = new ArrayBuffer(buffer.length); - var view = new Uint8Array(ab); - for (var i = 0; i < buffer.length; ++i) { - view[i] = buffer[i]; - } - - return ab; - } - - function arrayBufferToNodeBuffer(ab) { - var buffer = new Buffer(ab.byteLength); - var view = new Uint8Array(ab); - for (var i = 0; i < buffer.length; ++i) { - buffer[i] = view[i]; - } - - return buffer; - } - - function checkArgument(expression, message) { - if (!expression) { - throw message; - } - } - - // The `glyf` table describes the glyphs in TrueType outline format. - - // Parse the coordinate data for a glyph. - function parseGlyphCoordinate( - p, - flag, - previousValue, - shortVectorBitMask, - sameBitMask - ) { - var v; - if ((flag & shortVectorBitMask) > 0) { - // The coordinate is 1 byte long. - v = p.parseByte(); - // The `same` bit is re-used for short values to signify the sign of the value. - if ((flag & sameBitMask) === 0) { - v = -v; - } - - v = previousValue + v; - } else { - // The coordinate is 2 bytes long. - // If the `same` bit is set, the coordinate is the same as the previous coordinate. - if ((flag & sameBitMask) > 0) { - v = previousValue; - } else { - // Parse the coordinate as a signed 16-bit delta value. - v = previousValue + p.parseShort(); - } - } - - return v; - } - - // Parse a TrueType glyph. - function parseGlyph(glyph, data, start) { - var p = new parse.Parser(data, start); - glyph.numberOfContours = p.parseShort(); - glyph._xMin = p.parseShort(); - glyph._yMin = p.parseShort(); - glyph._xMax = p.parseShort(); - glyph._yMax = p.parseShort(); - var flags; - var flag; - - if (glyph.numberOfContours > 0) { - // This glyph is not a composite. - var endPointIndices = (glyph.endPointIndices = []); - for (var i = 0; i < glyph.numberOfContours; i += 1) { - endPointIndices.push(p.parseUShort()); - } - - glyph.instructionLength = p.parseUShort(); - glyph.instructions = []; - for (var i$1 = 0; i$1 < glyph.instructionLength; i$1 += 1) { - glyph.instructions.push(p.parseByte()); - } - - var numberOfCoordinates = endPointIndices[endPointIndices.length - 1] + 1; - flags = []; - for (var i$2 = 0; i$2 < numberOfCoordinates; i$2 += 1) { - flag = p.parseByte(); - flags.push(flag); - // If bit 3 is set, we repeat this flag n times, where n is the next byte. - if ((flag & 8) > 0) { - var repeatCount = p.parseByte(); - for (var j = 0; j < repeatCount; j += 1) { - flags.push(flag); - i$2 += 1; - } - } - } - - check.argument(flags.length === numberOfCoordinates, 'Bad flags.'); - - if (endPointIndices.length > 0) { - var points = []; - var point; - // X/Y coordinates are relative to the previous point, except for the first point which is relative to 0,0. - if (numberOfCoordinates > 0) { - for (var i$3 = 0; i$3 < numberOfCoordinates; i$3 += 1) { - flag = flags[i$3]; - point = {}; - point.onCurve = !!(flag & 1); - point.lastPointOfContour = endPointIndices.indexOf(i$3) >= 0; - points.push(point); - } - - var px = 0; - for (var i$4 = 0; i$4 < numberOfCoordinates; i$4 += 1) { - flag = flags[i$4]; - point = points[i$4]; - point.x = parseGlyphCoordinate(p, flag, px, 2, 16); - px = point.x; - } - - var py = 0; - for (var i$5 = 0; i$5 < numberOfCoordinates; i$5 += 1) { - flag = flags[i$5]; - point = points[i$5]; - point.y = parseGlyphCoordinate(p, flag, py, 4, 32); - py = point.y; - } - } - - glyph.points = points; - } else { - glyph.points = []; - } - } else if (glyph.numberOfContours === 0) { - glyph.points = []; - } else { - glyph.isComposite = true; - glyph.points = []; - glyph.components = []; - var moreComponents = true; - while (moreComponents) { - flags = p.parseUShort(); - var component = { - glyphIndex: p.parseUShort(), - xScale: 1, - scale01: 0, - scale10: 0, - yScale: 1, - dx: 0, - dy: 0 - }; - if ((flags & 1) > 0) { - // The arguments are words - if ((flags & 2) > 0) { - // values are offset - component.dx = p.parseShort(); - component.dy = p.parseShort(); - } else { - // values are matched points - component.matchedPoints = [p.parseUShort(), p.parseUShort()]; - } - } else { - // The arguments are bytes - if ((flags & 2) > 0) { - // values are offset - component.dx = p.parseChar(); - component.dy = p.parseChar(); - } else { - // values are matched points - component.matchedPoints = [p.parseByte(), p.parseByte()]; - } - } - - if ((flags & 8) > 0) { - // We have a scale - component.xScale = component.yScale = p.parseF2Dot14(); - } else if ((flags & 64) > 0) { - // We have an X / Y scale - component.xScale = p.parseF2Dot14(); - component.yScale = p.parseF2Dot14(); - } else if ((flags & 128) > 0) { - // We have a 2x2 transformation - component.xScale = p.parseF2Dot14(); - component.scale01 = p.parseF2Dot14(); - component.scale10 = p.parseF2Dot14(); - component.yScale = p.parseF2Dot14(); - } - - glyph.components.push(component); - moreComponents = !!(flags & 32); - } - if (flags & 0x100) { - // We have instructions - glyph.instructionLength = p.parseUShort(); - glyph.instructions = []; - for (var i$6 = 0; i$6 < glyph.instructionLength; i$6 += 1) { - glyph.instructions.push(p.parseByte()); - } - } - } - } - - // Transform an array of points and return a new array. - function transformPoints(points, transform) { - var newPoints = []; - for (var i = 0; i < points.length; i += 1) { - var pt = points[i]; - var newPt = { - x: transform.xScale * pt.x + transform.scale01 * pt.y + transform.dx, - y: transform.scale10 * pt.x + transform.yScale * pt.y + transform.dy, - onCurve: pt.onCurve, - lastPointOfContour: pt.lastPointOfContour - }; - newPoints.push(newPt); - } - - return newPoints; - } - - function getContours(points) { - var contours = []; - var currentContour = []; - for (var i = 0; i < points.length; i += 1) { - var pt = points[i]; - currentContour.push(pt); - if (pt.lastPointOfContour) { - contours.push(currentContour); - currentContour = []; - } - } - - check.argument( - currentContour.length === 0, - 'There are still points left in the current contour.' - ); - return contours; - } - - // Convert the TrueType glyph outline to a Path. - function getPath(points) { - var p = new Path(); - if (!points) { - return p; - } - - var contours = getContours(points); - - for (var contourIndex = 0; contourIndex < contours.length; ++contourIndex) { - var contour = contours[contourIndex]; - - var prev = null; - var curr = contour[contour.length - 1]; - var next = contour[0]; - - if (curr.onCurve) { - p.moveTo(curr.x, curr.y); - } else { - if (next.onCurve) { - p.moveTo(next.x, next.y); - } else { - // If both first and last points are off-curve, start at their middle. - var start = { - x: (curr.x + next.x) * 0.5, - y: (curr.y + next.y) * 0.5 - }; - p.moveTo(start.x, start.y); - } - } - - for (var i = 0; i < contour.length; ++i) { - prev = curr; - curr = next; - next = contour[(i + 1) % contour.length]; - - if (curr.onCurve) { - // This is a straight line. - p.lineTo(curr.x, curr.y); - } else { - var prev2 = prev; - var next2 = next; - - if (!prev.onCurve) { - prev2 = { x: (curr.x + prev.x) * 0.5, y: (curr.y + prev.y) * 0.5 }; - } - - if (!next.onCurve) { - next2 = { x: (curr.x + next.x) * 0.5, y: (curr.y + next.y) * 0.5 }; - } - - p.quadraticCurveTo(curr.x, curr.y, next2.x, next2.y); - } - } - - p.closePath(); - } - return p; - } - - function buildPath(glyphs, glyph) { - if (glyph.isComposite) { - for (var j = 0; j < glyph.components.length; j += 1) { - var component = glyph.components[j]; - var componentGlyph = glyphs.get(component.glyphIndex); - // Force the ttfGlyphLoader to parse the glyph. - componentGlyph.getPath(); - if (componentGlyph.points) { - var transformedPoints = void 0; - if (component.matchedPoints === undefined) { - // component positioned by offset - transformedPoints = transformPoints( - componentGlyph.points, - component - ); - } else { - // component positioned by matched points - if ( - component.matchedPoints[0] > glyph.points.length - 1 || - component.matchedPoints[1] > componentGlyph.points.length - 1 - ) { - throw Error('Matched points out of range in ' + glyph.name); - } - var firstPt = glyph.points[component.matchedPoints[0]]; - var secondPt = componentGlyph.points[component.matchedPoints[1]]; - var transform = { - xScale: component.xScale, - scale01: component.scale01, - scale10: component.scale10, - yScale: component.yScale, - dx: 0, - dy: 0 - }; - secondPt = transformPoints([secondPt], transform)[0]; - transform.dx = firstPt.x - secondPt.x; - transform.dy = firstPt.y - secondPt.y; - transformedPoints = transformPoints( - componentGlyph.points, - transform - ); - } - glyph.points = glyph.points.concat(transformedPoints); - } - } - } - - return getPath(glyph.points); - } - - // Parse all the glyphs according to the offsets from the `loca` table. - function parseGlyfTable(data, start, loca, font) { - var glyphs = new glyphset.GlyphSet(font); - - // The last element of the loca table is invalid. - for (var i = 0; i < loca.length - 1; i += 1) { - var offset = loca[i]; - var nextOffset = loca[i + 1]; - if (offset !== nextOffset) { - glyphs.push( - i, - glyphset.ttfGlyphLoader( - font, - i, - parseGlyph, - data, - start + offset, - buildPath - ) - ); - } else { - glyphs.push(i, glyphset.glyphLoader(font, i)); - } - } - - return glyphs; - } - - var glyf = { getPath: getPath, parse: parseGlyfTable }; - - /* A TrueType font hinting interpreter. - * - * (c) 2017 Axel Kittenberger - * - * This interpreter has been implemented according to this documentation: - * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM05/Chap5.html - * - * According to the documentation F24DOT6 values are used for pixels. - * That means calculation is 1/64 pixel accurate and uses integer operations. - * However, Javascript has floating point operations by default and only - * those are available. One could make a case to simulate the 1/64 accuracy - * exactly by truncating after every division operation - * (for example with << 0) to get pixel exactly results as other TrueType - * implementations. It may make sense since some fonts are pixel optimized - * by hand using DELTAP instructions. The current implementation doesn't - * and rather uses full floating point precision. - * - * xScale, yScale and rotation is currently ignored. - * - * A few non-trivial instructions are missing as I didn't encounter yet - * a font that used them to test a possible implementation. - * - * Some fonts seem to use undocumented features regarding the twilight zone. - * Only some of them are implemented as they were encountered. - * - * The exports.DEBUG statements are removed on the minified distribution file. - */ - - var instructionTable; - var exec; - var execGlyph; - var execComponent; - - /* - * Creates a hinting object. - * - * There ought to be exactly one - * for each truetype font that is used for hinting. - */ - function Hinting(font) { - // the font this hinting object is for - this.font = font; - - this.getCommands = function(hPoints) { - return glyf.getPath(hPoints).commands; - }; - - // cached states - this._fpgmState = this._prepState = undefined; - - // errorState - // 0 ... all okay - // 1 ... had an error in a glyf, - // continue working but stop spamming - // the console - // 2 ... error at prep, stop hinting at this ppem - // 3 ... error at fpeg, stop hinting for this font at all - this._errorState = 0; - } - - /* - * Not rounding. - */ - function roundOff(v) { - return v; - } - - /* - * Rounding to grid. - */ - function roundToGrid(v) { - //Rounding in TT is supposed to "symmetrical around zero" - return Math.sign(v) * Math.round(Math.abs(v)); - } - - /* - * Rounding to double grid. - */ - function roundToDoubleGrid(v) { - return Math.sign(v) * Math.round(Math.abs(v * 2)) / 2; - } - - /* - * Rounding to half grid. - */ - function roundToHalfGrid(v) { - return Math.sign(v) * (Math.round(Math.abs(v) + 0.5) - 0.5); - } - - /* - * Rounding to up to grid. - */ - function roundUpToGrid(v) { - return Math.sign(v) * Math.ceil(Math.abs(v)); - } - - /* - * Rounding to down to grid. - */ - function roundDownToGrid(v) { - return Math.sign(v) * Math.floor(Math.abs(v)); - } - - /* - * Super rounding. - */ - var roundSuper = function(v) { - var period = this.srPeriod; - var phase = this.srPhase; - var threshold = this.srThreshold; - var sign = 1; - - if (v < 0) { - v = -v; - sign = -1; - } - - v += threshold - phase; - - v = Math.trunc(v / period) * period; - - v += phase; - - // according to http://xgridfit.sourceforge.net/round.html - if (v < 0) { - return phase * sign; - } - - return v * sign; - }; - - /* - * Unit vector of x-axis. - */ - var xUnitVector = { - x: 1, - - y: 0, - - axis: 'x', - - // Gets the projected distance between two points. - // o1/o2 ... if true, respective original position is used. - distance: function(p1, p2, o1, o2) { - return (o1 ? p1.xo : p1.x) - (o2 ? p2.xo : p2.x); - }, - - // Moves point p so the moved position has the same relative - // position to the moved positions of rp1 and rp2 than the - // original positions had. - // - // See APPENDIX on INTERPOLATE at the bottom of this file. - interpolate: function(p, rp1, rp2, pv) { - var do1; - var do2; - var doa1; - var doa2; - var dm1; - var dm2; - var dt; - - if (!pv || pv === this) { - do1 = p.xo - rp1.xo; - do2 = p.xo - rp2.xo; - dm1 = rp1.x - rp1.xo; - dm2 = rp2.x - rp2.xo; - doa1 = Math.abs(do1); - doa2 = Math.abs(do2); - dt = doa1 + doa2; - - if (dt === 0) { - p.x = p.xo + (dm1 + dm2) / 2; - return; - } - - p.x = p.xo + (dm1 * doa2 + dm2 * doa1) / dt; - return; - } - - do1 = pv.distance(p, rp1, true, true); - do2 = pv.distance(p, rp2, true, true); - dm1 = pv.distance(rp1, rp1, false, true); - dm2 = pv.distance(rp2, rp2, false, true); - doa1 = Math.abs(do1); - doa2 = Math.abs(do2); - dt = doa1 + doa2; - - if (dt === 0) { - xUnitVector.setRelative(p, p, (dm1 + dm2) / 2, pv, true); - return; - } - - xUnitVector.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt, pv, true); - }, - - // Slope of line normal to this - normalSlope: Number.NEGATIVE_INFINITY, - - // Sets the point 'p' relative to point 'rp' - // by the distance 'd'. - // - // See APPENDIX on SETRELATIVE at the bottom of this file. - // - // p ... point to set - // rp ... reference point - // d ... distance on projection vector - // pv ... projection vector (undefined = this) - // org ... if true, uses the original position of rp as reference. - setRelative: function(p, rp, d, pv, org) { - if (!pv || pv === this) { - p.x = (org ? rp.xo : rp.x) + d; - return; - } - - var rpx = org ? rp.xo : rp.x; - var rpy = org ? rp.yo : rp.y; - var rpdx = rpx + d * pv.x; - var rpdy = rpy + d * pv.y; - - p.x = rpdx + (p.y - rpdy) / pv.normalSlope; - }, - - // Slope of vector line. - slope: 0, - - // Touches the point p. - touch: function(p) { - p.xTouched = true; - }, - - // Tests if a point p is touched. - touched: function(p) { - return p.xTouched; - }, - - // Untouches the point p. - untouch: function(p) { - p.xTouched = false; - } - }; - - /* - * Unit vector of y-axis. - */ - var yUnitVector = { - x: 0, - - y: 1, - - axis: 'y', - - // Gets the projected distance between two points. - // o1/o2 ... if true, respective original position is used. - distance: function(p1, p2, o1, o2) { - return (o1 ? p1.yo : p1.y) - (o2 ? p2.yo : p2.y); - }, - - // Moves point p so the moved position has the same relative - // position to the moved positions of rp1 and rp2 than the - // original positions had. - // - // See APPENDIX on INTERPOLATE at the bottom of this file. - interpolate: function(p, rp1, rp2, pv) { - var do1; - var do2; - var doa1; - var doa2; - var dm1; - var dm2; - var dt; - - if (!pv || pv === this) { - do1 = p.yo - rp1.yo; - do2 = p.yo - rp2.yo; - dm1 = rp1.y - rp1.yo; - dm2 = rp2.y - rp2.yo; - doa1 = Math.abs(do1); - doa2 = Math.abs(do2); - dt = doa1 + doa2; - - if (dt === 0) { - p.y = p.yo + (dm1 + dm2) / 2; - return; - } - - p.y = p.yo + (dm1 * doa2 + dm2 * doa1) / dt; - return; - } - - do1 = pv.distance(p, rp1, true, true); - do2 = pv.distance(p, rp2, true, true); - dm1 = pv.distance(rp1, rp1, false, true); - dm2 = pv.distance(rp2, rp2, false, true); - doa1 = Math.abs(do1); - doa2 = Math.abs(do2); - dt = doa1 + doa2; - - if (dt === 0) { - yUnitVector.setRelative(p, p, (dm1 + dm2) / 2, pv, true); - return; - } - - yUnitVector.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt, pv, true); - }, - - // Slope of line normal to this. - normalSlope: 0, - - // Sets the point 'p' relative to point 'rp' - // by the distance 'd' - // - // See APPENDIX on SETRELATIVE at the bottom of this file. - // - // p ... point to set - // rp ... reference point - // d ... distance on projection vector - // pv ... projection vector (undefined = this) - // org ... if true, uses the original position of rp as reference. - setRelative: function(p, rp, d, pv, org) { - if (!pv || pv === this) { - p.y = (org ? rp.yo : rp.y) + d; - return; - } - - var rpx = org ? rp.xo : rp.x; - var rpy = org ? rp.yo : rp.y; - var rpdx = rpx + d * pv.x; - var rpdy = rpy + d * pv.y; - - p.y = rpdy + pv.normalSlope * (p.x - rpdx); - }, - - // Slope of vector line. - slope: Number.POSITIVE_INFINITY, - - // Touches the point p. - touch: function(p) { - p.yTouched = true; - }, - - // Tests if a point p is touched. - touched: function(p) { - return p.yTouched; - }, - - // Untouches the point p. - untouch: function(p) { - p.yTouched = false; - } - }; - - Object.freeze(xUnitVector); - Object.freeze(yUnitVector); - - /* - * Creates a unit vector that is not x- or y-axis. - */ - function UnitVector(x, y) { - this.x = x; - this.y = y; - this.axis = undefined; - this.slope = y / x; - this.normalSlope = -x / y; - Object.freeze(this); - } - - /* - * Gets the projected distance between two points. - * o1/o2 ... if true, respective original position is used. - */ - UnitVector.prototype.distance = function(p1, p2, o1, o2) { - return ( - this.x * xUnitVector.distance(p1, p2, o1, o2) + - this.y * yUnitVector.distance(p1, p2, o1, o2) - ); - }; - - /* - * Moves point p so the moved position has the same relative - * position to the moved positions of rp1 and rp2 than the - * original positions had. - * - * See APPENDIX on INTERPOLATE at the bottom of this file. - */ - UnitVector.prototype.interpolate = function(p, rp1, rp2, pv) { - var dm1; - var dm2; - var do1; - var do2; - var doa1; - var doa2; - var dt; - - do1 = pv.distance(p, rp1, true, true); - do2 = pv.distance(p, rp2, true, true); - dm1 = pv.distance(rp1, rp1, false, true); - dm2 = pv.distance(rp2, rp2, false, true); - doa1 = Math.abs(do1); - doa2 = Math.abs(do2); - dt = doa1 + doa2; - - if (dt === 0) { - this.setRelative(p, p, (dm1 + dm2) / 2, pv, true); - return; - } - - this.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt, pv, true); - }; - - /* - * Sets the point 'p' relative to point 'rp' - * by the distance 'd' - * - * See APPENDIX on SETRELATIVE at the bottom of this file. - * - * p ... point to set - * rp ... reference point - * d ... distance on projection vector - * pv ... projection vector (undefined = this) - * org ... if true, uses the original position of rp as reference. - */ - UnitVector.prototype.setRelative = function(p, rp, d, pv, org) { - pv = pv || this; - - var rpx = org ? rp.xo : rp.x; - var rpy = org ? rp.yo : rp.y; - var rpdx = rpx + d * pv.x; - var rpdy = rpy + d * pv.y; - - var pvns = pv.normalSlope; - var fvs = this.slope; - - var px = p.x; - var py = p.y; - - p.x = (fvs * px - pvns * rpdx + rpdy - py) / (fvs - pvns); - p.y = fvs * (p.x - px) + py; - }; - - /* - * Touches the point p. - */ - UnitVector.prototype.touch = function(p) { - p.xTouched = true; - p.yTouched = true; - }; - - /* - * Returns a unit vector with x/y coordinates. - */ - function getUnitVector(x, y) { - var d = Math.sqrt(x * x + y * y); - - x /= d; - y /= d; - - if (x === 1 && y === 0) { - return xUnitVector; - } else if (x === 0 && y === 1) { - return yUnitVector; - } else { - return new UnitVector(x, y); - } - } - - /* - * Creates a point in the hinting engine. - */ - function HPoint(x, y, lastPointOfContour, onCurve) { - this.x = this.xo = Math.round(x * 64) / 64; // hinted x value and original x-value - this.y = this.yo = Math.round(y * 64) / 64; // hinted y value and original y-value - - this.lastPointOfContour = lastPointOfContour; - this.onCurve = onCurve; - this.prevPointOnContour = undefined; - this.nextPointOnContour = undefined; - this.xTouched = false; - this.yTouched = false; - - Object.preventExtensions(this); - } - - /* - * Returns the next touched point on the contour. - * - * v ... unit vector to test touch axis. - */ - HPoint.prototype.nextTouched = function(v) { - var p = this.nextPointOnContour; - - while (!v.touched(p) && p !== this) { - p = p.nextPointOnContour; - } - - return p; - }; - - /* - * Returns the previous touched point on the contour - * - * v ... unit vector to test touch axis. - */ - HPoint.prototype.prevTouched = function(v) { - var p = this.prevPointOnContour; - - while (!v.touched(p) && p !== this) { - p = p.prevPointOnContour; - } - - return p; - }; - - /* - * The zero point. - */ - var HPZero = Object.freeze(new HPoint(0, 0)); - - /* - * The default state of the interpreter. - * - * Note: Freezing the defaultState and then deriving from it - * makes the V8 Javascript engine going awkward, - * so this is avoided, albeit the defaultState shouldn't - * ever change. - */ - var defaultState = { - cvCutIn: 17 / 16, // control value cut in - deltaBase: 9, - deltaShift: 0.125, - loop: 1, // loops some instructions - minDis: 1, // minimum distance - autoFlip: true - }; - - /* - * The current state of the interpreter. - * - * env ... 'fpgm' or 'prep' or 'glyf' - * prog ... the program - */ - function State(env, prog) { - this.env = env; - this.stack = []; - this.prog = prog; - - switch (env) { - case 'glyf': - this.zp0 = this.zp1 = this.zp2 = 1; - this.rp0 = this.rp1 = this.rp2 = 0; - /* fall through */ - case 'prep': - this.fv = this.pv = this.dpv = xUnitVector; - this.round = roundToGrid; - } - } - - /* - * Executes a glyph program. - * - * This does the hinting for each glyph. - * - * Returns an array of moved points. - * - * glyph: the glyph to hint - * ppem: the size the glyph is rendered for - */ - Hinting.prototype.exec = function(glyph, ppem) { - if (typeof ppem !== 'number') { - throw new Error('Point size is not a number!'); - } - - // Received a fatal error, don't do any hinting anymore. - if (this._errorState > 2) { - return; - } - - var font = this.font; - var prepState = this._prepState; - - if (!prepState || prepState.ppem !== ppem) { - var fpgmState = this._fpgmState; - - if (!fpgmState) { - // Executes the fpgm state. - // This is used by fonts to define functions. - State.prototype = defaultState; - - fpgmState = this._fpgmState = new State('fpgm', font.tables.fpgm); - - fpgmState.funcs = []; - fpgmState.font = font; - - if (exports.DEBUG) { - console.log('---EXEC FPGM---'); - fpgmState.step = -1; - } - - try { - exec(fpgmState); - } catch (e) { - console.log('Hinting error in FPGM:' + e); - this._errorState = 3; - return; - } - } - - // Executes the prep program for this ppem setting. - // This is used by fonts to set cvt values - // depending on to be rendered font size. - - State.prototype = fpgmState; - prepState = this._prepState = new State('prep', font.tables.prep); - - prepState.ppem = ppem; - - // Creates a copy of the cvt table - // and scales it to the current ppem setting. - var oCvt = font.tables.cvt; - if (oCvt) { - var cvt = (prepState.cvt = new Array(oCvt.length)); - var scale = ppem / font.unitsPerEm; - for (var c = 0; c < oCvt.length; c++) { - cvt[c] = oCvt[c] * scale; - } - } else { - prepState.cvt = []; - } - - if (exports.DEBUG) { - console.log('---EXEC PREP---'); - prepState.step = -1; - } - - try { - exec(prepState); - } catch (e) { - if (this._errorState < 2) { - console.log('Hinting error in PREP:' + e); - } - this._errorState = 2; - } - } - - if (this._errorState > 1) { - return; - } - - try { - return execGlyph(glyph, prepState); - } catch (e) { - if (this._errorState < 1) { - console.log('Hinting error:' + e); - console.log('Note: further hinting errors are silenced'); - } - this._errorState = 1; - return undefined; - } - }; - - /* - * Executes the hinting program for a glyph. - */ - execGlyph = function(glyph, prepState) { - // original point positions - var xScale = prepState.ppem / prepState.font.unitsPerEm; - var yScale = xScale; - var components = glyph.components; - var contours; - var gZone; - var state; - - State.prototype = prepState; - if (!components) { - state = new State('glyf', glyph.instructions); - if (exports.DEBUG) { - console.log('---EXEC GLYPH---'); - state.step = -1; - } - execComponent(glyph, state, xScale, yScale); - gZone = state.gZone; - } else { - var font = prepState.font; - gZone = []; - contours = []; - for (var i = 0; i < components.length; i++) { - var c = components[i]; - var cg = font.glyphs.get(c.glyphIndex); - - state = new State('glyf', cg.instructions); - - if (exports.DEBUG) { - console.log('---EXEC COMP ' + i + '---'); - state.step = -1; - } - - execComponent(cg, state, xScale, yScale); - // appends the computed points to the result array - // post processes the component points - var dx = Math.round(c.dx * xScale); - var dy = Math.round(c.dy * yScale); - var gz = state.gZone; - var cc = state.contours; - for (var pi = 0; pi < gz.length; pi++) { - var p = gz[pi]; - p.xTouched = p.yTouched = false; - p.xo = p.x = p.x + dx; - p.yo = p.y = p.y + dy; - } - - var gLen = gZone.length; - gZone.push.apply(gZone, gz); - for (var j = 0; j < cc.length; j++) { - contours.push(cc[j] + gLen); - } - } - - if (glyph.instructions && !state.inhibitGridFit) { - // the composite has instructions on its own - state = new State('glyf', glyph.instructions); - - state.gZone = state.z0 = state.z1 = state.z2 = gZone; - - state.contours = contours; - - // note: HPZero cannot be used here, since - // the point might be modified - gZone.push( - new HPoint(0, 0), - new HPoint(Math.round(glyph.advanceWidth * xScale), 0) - ); - - if (exports.DEBUG) { - console.log('---EXEC COMPOSITE---'); - state.step = -1; - } - - exec(state); - - gZone.length -= 2; - } - } - - return gZone; - }; - - /* - * Executes the hinting program for a component of a multi-component glyph - * or of the glyph itself for a non-component glyph. - */ - execComponent = function(glyph, state, xScale, yScale) { - var points = glyph.points || []; - var pLen = points.length; - var gZone = (state.gZone = state.z0 = state.z1 = state.z2 = []); - var contours = (state.contours = []); - - // Scales the original points and - // makes copies for the hinted points. - var cp; // current point - for (var i = 0; i < pLen; i++) { - cp = points[i]; - - gZone[i] = new HPoint( - cp.x * xScale, - cp.y * yScale, - cp.lastPointOfContour, - cp.onCurve - ); - } - - // Chain links the contours. - var sp; // start point - var np; // next point - - for (var i$1 = 0; i$1 < pLen; i$1++) { - cp = gZone[i$1]; - - if (!sp) { - sp = cp; - contours.push(i$1); - } - - if (cp.lastPointOfContour) { - cp.nextPointOnContour = sp; - sp.prevPointOnContour = cp; - sp = undefined; - } else { - np = gZone[i$1 + 1]; - cp.nextPointOnContour = np; - np.prevPointOnContour = cp; - } - } - - if (state.inhibitGridFit) { - return; - } - - if (exports.DEBUG) { - console.log('PROCESSING GLYPH', state.stack); - for (var i$2 = 0; i$2 < pLen; i$2++) { - console.log(i$2, gZone[i$2].x, gZone[i$2].y); - } - } - - gZone.push( - new HPoint(0, 0), - new HPoint(Math.round(glyph.advanceWidth * xScale), 0) - ); - - exec(state); - - // Removes the extra points. - gZone.length -= 2; - - if (exports.DEBUG) { - console.log('FINISHED GLYPH', state.stack); - for (var i$3 = 0; i$3 < pLen; i$3++) { - console.log(i$3, gZone[i$3].x, gZone[i$3].y); - } - } - }; - - /* - * Executes the program loaded in state. - */ - exec = function(state) { - var prog = state.prog; - - if (!prog) { - return; - } - - var pLen = prog.length; - var ins; - - for (state.ip = 0; state.ip < pLen; state.ip++) { - if (exports.DEBUG) { - state.step++; - } - ins = instructionTable[prog[state.ip]]; - - if (!ins) { - throw new Error( - 'unknown instruction: 0x' + Number(prog[state.ip]).toString(16) - ); - } - - ins(state); - - // very extensive debugging for each step - /* - if (exports.DEBUG) { - var da; - if (state.gZone) { - da = []; - for (let i = 0; i < state.gZone.length; i++) - { - da.push(i + ' ' + - state.gZone[i].x * 64 + ' ' + - state.gZone[i].y * 64 + ' ' + - (state.gZone[i].xTouched ? 'x' : '') + - (state.gZone[i].yTouched ? 'y' : '') - ); - } - console.log('GZ', da); - } - - if (state.tZone) { - da = []; - for (let i = 0; i < state.tZone.length; i++) { - da.push(i + ' ' + - state.tZone[i].x * 64 + ' ' + - state.tZone[i].y * 64 + ' ' + - (state.tZone[i].xTouched ? 'x' : '') + - (state.tZone[i].yTouched ? 'y' : '') - ); - } - console.log('TZ', da); - } - - if (state.stack.length > 10) { - console.log( - state.stack.length, - '...', state.stack.slice(state.stack.length - 10) - ); - } else { - console.log(state.stack.length, state.stack); - } - } - */ - } - }; - - /* - * Initializes the twilight zone. - * - * This is only done if a SZPx instruction - * refers to the twilight zone. - */ - function initTZone(state) { - var tZone = (state.tZone = new Array(state.gZone.length)); - - // no idea if this is actually correct... - for (var i = 0; i < tZone.length; i++) { - tZone[i] = new HPoint(0, 0); - } - } - - /* - * Skips the instruction pointer ahead over an IF/ELSE block. - * handleElse .. if true breaks on matching ELSE - */ - function skip(state, handleElse) { - var prog = state.prog; - var ip = state.ip; - var nesting = 1; - var ins; - - do { - ins = prog[++ip]; - if (ins === 0x58) { - // IF - nesting++; - } else if (ins === 0x59) { - // EIF - nesting--; - } else if (ins === 0x40) { - // NPUSHB - ip += prog[ip + 1] + 1; - } else if (ins === 0x41) { - // NPUSHW - ip += 2 * prog[ip + 1] + 1; - } else if (ins >= 0xb0 && ins <= 0xb7) { - // PUSHB - ip += ins - 0xb0 + 1; - } else if (ins >= 0xb8 && ins <= 0xbf) { - // PUSHW - ip += (ins - 0xb8 + 1) * 2; - } else if (handleElse && nesting === 1 && ins === 0x1b) { - // ELSE - break; - } - } while (nesting > 0); - - state.ip = ip; - } - - /*----------------------------------------------------------* - * And then a lot of instructions... * - *----------------------------------------------------------*/ - - // SVTCA[a] Set freedom and projection Vectors To Coordinate Axis - // 0x00-0x01 - function SVTCA(v, state) { - if (exports.DEBUG) { - console.log(state.step, 'SVTCA[' + v.axis + ']'); - } - - state.fv = state.pv = state.dpv = v; - } - - // SPVTCA[a] Set Projection Vector to Coordinate Axis - // 0x02-0x03 - function SPVTCA(v, state) { - if (exports.DEBUG) { - console.log(state.step, 'SPVTCA[' + v.axis + ']'); - } - - state.pv = state.dpv = v; - } - - // SFVTCA[a] Set Freedom Vector to Coordinate Axis - // 0x04-0x05 - function SFVTCA(v, state) { - if (exports.DEBUG) { - console.log(state.step, 'SFVTCA[' + v.axis + ']'); - } - - state.fv = v; - } - - // SPVTL[a] Set Projection Vector To Line - // 0x06-0x07 - function SPVTL(a, state) { - var stack = state.stack; - var p2i = stack.pop(); - var p1i = stack.pop(); - var p2 = state.z2[p2i]; - var p1 = state.z1[p1i]; - - if (exports.DEBUG) { - console.log('SPVTL[' + a + ']', p2i, p1i); - } - - var dx; - var dy; - - if (!a) { - dx = p1.x - p2.x; - dy = p1.y - p2.y; - } else { - dx = p2.y - p1.y; - dy = p1.x - p2.x; - } - - state.pv = state.dpv = getUnitVector(dx, dy); - } - - // SFVTL[a] Set Freedom Vector To Line - // 0x08-0x09 - function SFVTL(a, state) { - var stack = state.stack; - var p2i = stack.pop(); - var p1i = stack.pop(); - var p2 = state.z2[p2i]; - var p1 = state.z1[p1i]; - - if (exports.DEBUG) { - console.log('SFVTL[' + a + ']', p2i, p1i); - } - - var dx; - var dy; - - if (!a) { - dx = p1.x - p2.x; - dy = p1.y - p2.y; - } else { - dx = p2.y - p1.y; - dy = p1.x - p2.x; - } - - state.fv = getUnitVector(dx, dy); - } - - // SPVFS[] Set Projection Vector From Stack - // 0x0A - function SPVFS(state) { - var stack = state.stack; - var y = stack.pop(); - var x = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SPVFS[]', y, x); - } - - state.pv = state.dpv = getUnitVector(x, y); - } - - // SFVFS[] Set Freedom Vector From Stack - // 0x0B - function SFVFS(state) { - var stack = state.stack; - var y = stack.pop(); - var x = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SPVFS[]', y, x); - } - - state.fv = getUnitVector(x, y); - } - - // GPV[] Get Projection Vector - // 0x0C - function GPV(state) { - var stack = state.stack; - var pv = state.pv; - - if (exports.DEBUG) { - console.log(state.step, 'GPV[]'); - } - - stack.push(pv.x * 0x4000); - stack.push(pv.y * 0x4000); - } - - // GFV[] Get Freedom Vector - // 0x0C - function GFV(state) { - var stack = state.stack; - var fv = state.fv; - - if (exports.DEBUG) { - console.log(state.step, 'GFV[]'); - } - - stack.push(fv.x * 0x4000); - stack.push(fv.y * 0x4000); - } - - // SFVTPV[] Set Freedom Vector To Projection Vector - // 0x0E - function SFVTPV(state) { - state.fv = state.pv; - - if (exports.DEBUG) { - console.log(state.step, 'SFVTPV[]'); - } - } - - // ISECT[] moves point p to the InterSECTion of two lines - // 0x0F - function ISECT(state) { - var stack = state.stack; - var pa0i = stack.pop(); - var pa1i = stack.pop(); - var pb0i = stack.pop(); - var pb1i = stack.pop(); - var pi = stack.pop(); - var z0 = state.z0; - var z1 = state.z1; - var pa0 = z0[pa0i]; - var pa1 = z0[pa1i]; - var pb0 = z1[pb0i]; - var pb1 = z1[pb1i]; - var p = state.z2[pi]; - - if (exports.DEBUG) { - console.log('ISECT[], ', pa0i, pa1i, pb0i, pb1i, pi); - } - - // math from - // en.wikipedia.org/wiki/Line%E2%80%93line_intersection#Given_two_points_on_each_line - - var x1 = pa0.x; - var y1 = pa0.y; - var x2 = pa1.x; - var y2 = pa1.y; - var x3 = pb0.x; - var y3 = pb0.y; - var x4 = pb1.x; - var y4 = pb1.y; - - var div = (x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4); - var f1 = x1 * y2 - y1 * x2; - var f2 = x3 * y4 - y3 * x4; - - p.x = (f1 * (x3 - x4) - f2 * (x1 - x2)) / div; - p.y = (f1 * (y3 - y4) - f2 * (y1 - y2)) / div; - } - - // SRP0[] Set Reference Point 0 - // 0x10 - function SRP0(state) { - state.rp0 = state.stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SRP0[]', state.rp0); - } - } - - // SRP1[] Set Reference Point 1 - // 0x11 - function SRP1(state) { - state.rp1 = state.stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SRP1[]', state.rp1); - } - } - - // SRP1[] Set Reference Point 2 - // 0x12 - function SRP2(state) { - state.rp2 = state.stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SRP2[]', state.rp2); - } - } - - // SZP0[] Set Zone Pointer 0 - // 0x13 - function SZP0(state) { - var n = state.stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SZP0[]', n); - } - - state.zp0 = n; - - switch (n) { - case 0: - if (!state.tZone) { - initTZone(state); - } - state.z0 = state.tZone; - break; - case 1: - state.z0 = state.gZone; - break; - default: - throw new Error('Invalid zone pointer'); - } - } - - // SZP1[] Set Zone Pointer 1 - // 0x14 - function SZP1(state) { - var n = state.stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SZP1[]', n); - } - - state.zp1 = n; - - switch (n) { - case 0: - if (!state.tZone) { - initTZone(state); - } - state.z1 = state.tZone; - break; - case 1: - state.z1 = state.gZone; - break; - default: - throw new Error('Invalid zone pointer'); - } - } - - // SZP2[] Set Zone Pointer 2 - // 0x15 - function SZP2(state) { - var n = state.stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SZP2[]', n); - } - - state.zp2 = n; - - switch (n) { - case 0: - if (!state.tZone) { - initTZone(state); - } - state.z2 = state.tZone; - break; - case 1: - state.z2 = state.gZone; - break; - default: - throw new Error('Invalid zone pointer'); - } - } - - // SZPS[] Set Zone PointerS - // 0x16 - function SZPS(state) { - var n = state.stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SZPS[]', n); - } - - state.zp0 = state.zp1 = state.zp2 = n; - - switch (n) { - case 0: - if (!state.tZone) { - initTZone(state); - } - state.z0 = state.z1 = state.z2 = state.tZone; - break; - case 1: - state.z0 = state.z1 = state.z2 = state.gZone; - break; - default: - throw new Error('Invalid zone pointer'); - } - } - - // SLOOP[] Set LOOP variable - // 0x17 - function SLOOP(state) { - state.loop = state.stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SLOOP[]', state.loop); - } - } - - // RTG[] Round To Grid - // 0x18 - function RTG(state) { - if (exports.DEBUG) { - console.log(state.step, 'RTG[]'); - } - - state.round = roundToGrid; - } - - // RTHG[] Round To Half Grid - // 0x19 - function RTHG(state) { - if (exports.DEBUG) { - console.log(state.step, 'RTHG[]'); - } - - state.round = roundToHalfGrid; - } - - // SMD[] Set Minimum Distance - // 0x1A - function SMD(state) { - var d = state.stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SMD[]', d); - } - - state.minDis = d / 0x40; - } - - // ELSE[] ELSE clause - // 0x1B - function ELSE(state) { - // This instruction has been reached by executing a then branch - // so it just skips ahead until matching EIF. - // - // In case the IF was negative the IF[] instruction already - // skipped forward over the ELSE[] - - if (exports.DEBUG) { - console.log(state.step, 'ELSE[]'); - } - - skip(state, false); - } - - // JMPR[] JuMP Relative - // 0x1C - function JMPR(state) { - var o = state.stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'JMPR[]', o); - } - - // A jump by 1 would do nothing. - state.ip += o - 1; - } - - // SCVTCI[] Set Control Value Table Cut-In - // 0x1D - function SCVTCI(state) { - var n = state.stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SCVTCI[]', n); - } - - state.cvCutIn = n / 0x40; - } - - // DUP[] DUPlicate top stack element - // 0x20 - function DUP(state) { - var stack = state.stack; - - if (exports.DEBUG) { - console.log(state.step, 'DUP[]'); - } - - stack.push(stack[stack.length - 1]); - } - - // POP[] POP top stack element - // 0x21 - function POP(state) { - if (exports.DEBUG) { - console.log(state.step, 'POP[]'); - } - - state.stack.pop(); - } - - // CLEAR[] CLEAR the stack - // 0x22 - function CLEAR(state) { - if (exports.DEBUG) { - console.log(state.step, 'CLEAR[]'); - } - - state.stack.length = 0; - } - - // SWAP[] SWAP the top two elements on the stack - // 0x23 - function SWAP(state) { - var stack = state.stack; - - var a = stack.pop(); - var b = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SWAP[]'); - } - - stack.push(a); - stack.push(b); - } - - // DEPTH[] DEPTH of the stack - // 0x24 - function DEPTH(state) { - var stack = state.stack; - - if (exports.DEBUG) { - console.log(state.step, 'DEPTH[]'); - } - - stack.push(stack.length); - } - - // LOOPCALL[] LOOPCALL function - // 0x2A - function LOOPCALL(state) { - var stack = state.stack; - var fn = stack.pop(); - var c = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'LOOPCALL[]', fn, c); - } - - // saves callers program - var cip = state.ip; - var cprog = state.prog; - - state.prog = state.funcs[fn]; - - // executes the function - for (var i = 0; i < c; i++) { - exec(state); - - if (exports.DEBUG) { - console.log( - ++state.step, - i + 1 < c ? 'next loopcall' : 'done loopcall', - i - ); - } - } - - // restores the callers program - state.ip = cip; - state.prog = cprog; - } - - // CALL[] CALL function - // 0x2B - function CALL(state) { - var fn = state.stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'CALL[]', fn); - } - - // saves callers program - var cip = state.ip; - var cprog = state.prog; - - state.prog = state.funcs[fn]; - - // executes the function - exec(state); - - // restores the callers program - state.ip = cip; - state.prog = cprog; - - if (exports.DEBUG) { - console.log(++state.step, 'returning from', fn); - } - } - - // CINDEX[] Copy the INDEXed element to the top of the stack - // 0x25 - function CINDEX(state) { - var stack = state.stack; - var k = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'CINDEX[]', k); - } - - // In case of k == 1, it copies the last element after popping - // thus stack.length - k. - stack.push(stack[stack.length - k]); - } - - // MINDEX[] Move the INDEXed element to the top of the stack - // 0x26 - function MINDEX(state) { - var stack = state.stack; - var k = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'MINDEX[]', k); - } - - stack.push(stack.splice(stack.length - k, 1)[0]); - } - - // FDEF[] Function DEFinition - // 0x2C - function FDEF(state) { - if (state.env !== 'fpgm') { - throw new Error('FDEF not allowed here'); - } - var stack = state.stack; - var prog = state.prog; - var ip = state.ip; - - var fn = stack.pop(); - var ipBegin = ip; - - if (exports.DEBUG) { - console.log(state.step, 'FDEF[]', fn); - } - - while (prog[++ip] !== 0x2d) {} - - state.ip = ip; - state.funcs[fn] = prog.slice(ipBegin + 1, ip); - } - - // MDAP[a] Move Direct Absolute Point - // 0x2E-0x2F - function MDAP(round, state) { - var pi = state.stack.pop(); - var p = state.z0[pi]; - var fv = state.fv; - var pv = state.pv; - - if (exports.DEBUG) { - console.log(state.step, 'MDAP[' + round + ']', pi); - } - - var d = pv.distance(p, HPZero); - - if (round) { - d = state.round(d); - } - - fv.setRelative(p, HPZero, d, pv); - fv.touch(p); - - state.rp0 = state.rp1 = pi; - } - - // IUP[a] Interpolate Untouched Points through the outline - // 0x30 - function IUP(v, state) { - var z2 = state.z2; - var pLen = z2.length - 2; - var cp; - var pp; - var np; - - if (exports.DEBUG) { - console.log(state.step, 'IUP[' + v.axis + ']'); - } - - for (var i = 0; i < pLen; i++) { - cp = z2[i]; // current point - - // if this point has been touched go on - if (v.touched(cp)) { - continue; - } - - pp = cp.prevTouched(v); - - // no point on the contour has been touched? - if (pp === cp) { - continue; - } - - np = cp.nextTouched(v); - - if (pp === np) { - // only one point on the contour has been touched - // so simply moves the point like that - - v.setRelative(cp, cp, v.distance(pp, pp, false, true), v, true); - } - - v.interpolate(cp, pp, np, v); - } - } - - // SHP[] SHift Point using reference point - // 0x32-0x33 - function SHP(a, state) { - var stack = state.stack; - var rpi = a ? state.rp1 : state.rp2; - var rp = (a ? state.z0 : state.z1)[rpi]; - var fv = state.fv; - var pv = state.pv; - var loop = state.loop; - var z2 = state.z2; - - while (loop--) { - var pi = stack.pop(); - var p = z2[pi]; - - var d = pv.distance(rp, rp, false, true); - fv.setRelative(p, p, d, pv); - fv.touch(p); - - if (exports.DEBUG) { - console.log( - state.step, - (state.loop > 1 ? 'loop ' + (state.loop - loop) + ': ' : '') + - 'SHP[' + - (a ? 'rp1' : 'rp2') + - ']', - pi - ); - } - } - - state.loop = 1; - } - - // SHC[] SHift Contour using reference point - // 0x36-0x37 - function SHC(a, state) { - var stack = state.stack; - var rpi = a ? state.rp1 : state.rp2; - var rp = (a ? state.z0 : state.z1)[rpi]; - var fv = state.fv; - var pv = state.pv; - var ci = stack.pop(); - var sp = state.z2[state.contours[ci]]; - var p = sp; - - if (exports.DEBUG) { - console.log(state.step, 'SHC[' + a + ']', ci); - } - - var d = pv.distance(rp, rp, false, true); - - do { - if (p !== rp) { - fv.setRelative(p, p, d, pv); - } - p = p.nextPointOnContour; - } while (p !== sp); - } - - // SHZ[] SHift Zone using reference point - // 0x36-0x37 - function SHZ(a, state) { - var stack = state.stack; - var rpi = a ? state.rp1 : state.rp2; - var rp = (a ? state.z0 : state.z1)[rpi]; - var fv = state.fv; - var pv = state.pv; - - var e = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SHZ[' + a + ']', e); - } - - var z; - switch (e) { - case 0: - z = state.tZone; - break; - case 1: - z = state.gZone; - break; - default: - throw new Error('Invalid zone'); - } - - var p; - var d = pv.distance(rp, rp, false, true); - var pLen = z.length - 2; - for (var i = 0; i < pLen; i++) { - p = z[i]; - fv.setRelative(p, p, d, pv); - //if (p !== rp) fv.setRelative(p, p, d, pv); - } - } - - // SHPIX[] SHift point by a PIXel amount - // 0x38 - function SHPIX(state) { - var stack = state.stack; - var loop = state.loop; - var fv = state.fv; - var d = stack.pop() / 0x40; - var z2 = state.z2; - - while (loop--) { - var pi = stack.pop(); - var p = z2[pi]; - - if (exports.DEBUG) { - console.log( - state.step, - (state.loop > 1 ? 'loop ' + (state.loop - loop) + ': ' : '') + - 'SHPIX[]', - pi, - d - ); - } - - fv.setRelative(p, p, d); - fv.touch(p); - } - - state.loop = 1; - } - - // IP[] Interpolate Point - // 0x39 - function IP(state) { - var stack = state.stack; - var rp1i = state.rp1; - var rp2i = state.rp2; - var loop = state.loop; - var rp1 = state.z0[rp1i]; - var rp2 = state.z1[rp2i]; - var fv = state.fv; - var pv = state.dpv; - var z2 = state.z2; - - while (loop--) { - var pi = stack.pop(); - var p = z2[pi]; - - if (exports.DEBUG) { - console.log( - state.step, - (state.loop > 1 ? 'loop ' + (state.loop - loop) + ': ' : '') + 'IP[]', - pi, - rp1i, - '<->', - rp2i - ); - } - - fv.interpolate(p, rp1, rp2, pv); - - fv.touch(p); - } - - state.loop = 1; - } - - // MSIRP[a] Move Stack Indirect Relative Point - // 0x3A-0x3B - function MSIRP(a, state) { - var stack = state.stack; - var d = stack.pop() / 64; - var pi = stack.pop(); - var p = state.z1[pi]; - var rp0 = state.z0[state.rp0]; - var fv = state.fv; - var pv = state.pv; - - fv.setRelative(p, rp0, d, pv); - fv.touch(p); - - if (exports.DEBUG) { - console.log(state.step, 'MSIRP[' + a + ']', d, pi); - } - - state.rp1 = state.rp0; - state.rp2 = pi; - if (a) { - state.rp0 = pi; - } - } - - // ALIGNRP[] Align to reference point. - // 0x3C - function ALIGNRP(state) { - var stack = state.stack; - var rp0i = state.rp0; - var rp0 = state.z0[rp0i]; - var loop = state.loop; - var fv = state.fv; - var pv = state.pv; - var z1 = state.z1; - - while (loop--) { - var pi = stack.pop(); - var p = z1[pi]; - - if (exports.DEBUG) { - console.log( - state.step, - (state.loop > 1 ? 'loop ' + (state.loop - loop) + ': ' : '') + - 'ALIGNRP[]', - pi - ); - } - - fv.setRelative(p, rp0, 0, pv); - fv.touch(p); - } - - state.loop = 1; - } - - // RTG[] Round To Double Grid - // 0x3D - function RTDG(state) { - if (exports.DEBUG) { - console.log(state.step, 'RTDG[]'); - } - - state.round = roundToDoubleGrid; - } - - // MIAP[a] Move Indirect Absolute Point - // 0x3E-0x3F - function MIAP(round, state) { - var stack = state.stack; - var n = stack.pop(); - var pi = stack.pop(); - var p = state.z0[pi]; - var fv = state.fv; - var pv = state.pv; - var cv = state.cvt[n]; - - if (exports.DEBUG) { - console.log(state.step, 'MIAP[' + round + ']', n, '(', cv, ')', pi); - } - - var d = pv.distance(p, HPZero); - - if (round) { - if (Math.abs(d - cv) < state.cvCutIn) { - d = cv; - } - - d = state.round(d); - } - - fv.setRelative(p, HPZero, d, pv); - - if (state.zp0 === 0) { - p.xo = p.x; - p.yo = p.y; - } - - fv.touch(p); - - state.rp0 = state.rp1 = pi; - } - - // NPUSB[] PUSH N Bytes - // 0x40 - function NPUSHB(state) { - var prog = state.prog; - var ip = state.ip; - var stack = state.stack; - - var n = prog[++ip]; - - if (exports.DEBUG) { - console.log(state.step, 'NPUSHB[]', n); - } - - for (var i = 0; i < n; i++) { - stack.push(prog[++ip]); - } - - state.ip = ip; - } - - // NPUSHW[] PUSH N Words - // 0x41 - function NPUSHW(state) { - var ip = state.ip; - var prog = state.prog; - var stack = state.stack; - var n = prog[++ip]; - - if (exports.DEBUG) { - console.log(state.step, 'NPUSHW[]', n); - } - - for (var i = 0; i < n; i++) { - var w = (prog[++ip] << 8) | prog[++ip]; - if (w & 0x8000) { - w = -((w ^ 0xffff) + 1); - } - stack.push(w); - } - - state.ip = ip; - } - - // WS[] Write Store - // 0x42 - function WS(state) { - var stack = state.stack; - var store = state.store; - - if (!store) { - store = state.store = []; - } - - var v = stack.pop(); - var l = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'WS', v, l); - } - - store[l] = v; - } - - // RS[] Read Store - // 0x43 - function RS(state) { - var stack = state.stack; - var store = state.store; - - var l = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'RS', l); - } - - var v = (store && store[l]) || 0; - - stack.push(v); - } - - // WCVTP[] Write Control Value Table in Pixel units - // 0x44 - function WCVTP(state) { - var stack = state.stack; - - var v = stack.pop(); - var l = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'WCVTP', v, l); - } - - state.cvt[l] = v / 0x40; - } - - // RCVT[] Read Control Value Table entry - // 0x45 - function RCVT(state) { - var stack = state.stack; - var cvte = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'RCVT', cvte); - } - - stack.push(state.cvt[cvte] * 0x40); - } - - // GC[] Get Coordinate projected onto the projection vector - // 0x46-0x47 - function GC(a, state) { - var stack = state.stack; - var pi = stack.pop(); - var p = state.z2[pi]; - - if (exports.DEBUG) { - console.log(state.step, 'GC[' + a + ']', pi); - } - - stack.push(state.dpv.distance(p, HPZero, a, false) * 0x40); - } - - // MD[a] Measure Distance - // 0x49-0x4A - function MD(a, state) { - var stack = state.stack; - var pi2 = stack.pop(); - var pi1 = stack.pop(); - var p2 = state.z1[pi2]; - var p1 = state.z0[pi1]; - var d = state.dpv.distance(p1, p2, a, a); - - if (exports.DEBUG) { - console.log(state.step, 'MD[' + a + ']', pi2, pi1, '->', d); - } - - state.stack.push(Math.round(d * 64)); - } - - // MPPEM[] Measure Pixels Per EM - // 0x4B - function MPPEM(state) { - if (exports.DEBUG) { - console.log(state.step, 'MPPEM[]'); - } - state.stack.push(state.ppem); - } - - // FLIPON[] set the auto FLIP Boolean to ON - // 0x4D - function FLIPON(state) { - if (exports.DEBUG) { - console.log(state.step, 'FLIPON[]'); - } - state.autoFlip = true; - } - - // LT[] Less Than - // 0x50 - function LT(state) { - var stack = state.stack; - var e2 = stack.pop(); - var e1 = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'LT[]', e2, e1); - } - - stack.push(e1 < e2 ? 1 : 0); - } - - // LTEQ[] Less Than or EQual - // 0x53 - function LTEQ(state) { - var stack = state.stack; - var e2 = stack.pop(); - var e1 = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'LTEQ[]', e2, e1); - } - - stack.push(e1 <= e2 ? 1 : 0); - } - - // GTEQ[] Greater Than - // 0x52 - function GT(state) { - var stack = state.stack; - var e2 = stack.pop(); - var e1 = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'GT[]', e2, e1); - } - - stack.push(e1 > e2 ? 1 : 0); - } - - // GTEQ[] Greater Than or EQual - // 0x53 - function GTEQ(state) { - var stack = state.stack; - var e2 = stack.pop(); - var e1 = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'GTEQ[]', e2, e1); - } - - stack.push(e1 >= e2 ? 1 : 0); - } - - // EQ[] EQual - // 0x54 - function EQ(state) { - var stack = state.stack; - var e2 = stack.pop(); - var e1 = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'EQ[]', e2, e1); - } - - stack.push(e2 === e1 ? 1 : 0); - } - - // NEQ[] Not EQual - // 0x55 - function NEQ(state) { - var stack = state.stack; - var e2 = stack.pop(); - var e1 = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'NEQ[]', e2, e1); - } - - stack.push(e2 !== e1 ? 1 : 0); - } - - // ODD[] ODD - // 0x56 - function ODD(state) { - var stack = state.stack; - var n = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'ODD[]', n); - } - - stack.push(Math.trunc(n) % 2 ? 1 : 0); - } - - // EVEN[] EVEN - // 0x57 - function EVEN(state) { - var stack = state.stack; - var n = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'EVEN[]', n); - } - - stack.push(Math.trunc(n) % 2 ? 0 : 1); - } - - // IF[] IF test - // 0x58 - function IF(state) { - var test = state.stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'IF[]', test); - } - - // if test is true it just continues - // if not the ip is skipped until matching ELSE or EIF - if (!test) { - skip(state, true); - - if (exports.DEBUG) { - console.log(state.step, 'EIF[]'); - } - } - } - - // EIF[] End IF - // 0x59 - function EIF(state) { - // this can be reached normally when - // executing an else branch. - // -> just ignore it - - if (exports.DEBUG) { - console.log(state.step, 'EIF[]'); - } - } - - // AND[] logical AND - // 0x5A - function AND(state) { - var stack = state.stack; - var e2 = stack.pop(); - var e1 = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'AND[]', e2, e1); - } - - stack.push(e2 && e1 ? 1 : 0); - } - - // OR[] logical OR - // 0x5B - function OR(state) { - var stack = state.stack; - var e2 = stack.pop(); - var e1 = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'OR[]', e2, e1); - } - - stack.push(e2 || e1 ? 1 : 0); - } - - // NOT[] logical NOT - // 0x5C - function NOT(state) { - var stack = state.stack; - var e = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'NOT[]', e); - } - - stack.push(e ? 0 : 1); - } - - // DELTAP1[] DELTA exception P1 - // DELTAP2[] DELTA exception P2 - // DELTAP3[] DELTA exception P3 - // 0x5D, 0x71, 0x72 - function DELTAP123(b, state) { - var stack = state.stack; - var n = stack.pop(); - var fv = state.fv; - var pv = state.pv; - var ppem = state.ppem; - var base = state.deltaBase + (b - 1) * 16; - var ds = state.deltaShift; - var z0 = state.z0; - - if (exports.DEBUG) { - console.log(state.step, 'DELTAP[' + b + ']', n, stack); - } - - for (var i = 0; i < n; i++) { - var pi = stack.pop(); - var arg = stack.pop(); - var appem = base + ((arg & 0xf0) >> 4); - if (appem !== ppem) { - continue; - } - - var mag = (arg & 0x0f) - 8; - if (mag >= 0) { - mag++; - } - if (exports.DEBUG) { - console.log(state.step, 'DELTAPFIX', pi, 'by', mag * ds); - } - - var p = z0[pi]; - fv.setRelative(p, p, mag * ds, pv); - } - } - - // SDB[] Set Delta Base in the graphics state - // 0x5E - function SDB(state) { - var stack = state.stack; - var n = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SDB[]', n); - } - - state.deltaBase = n; - } - - // SDS[] Set Delta Shift in the graphics state - // 0x5F - function SDS(state) { - var stack = state.stack; - var n = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SDS[]', n); - } - - state.deltaShift = Math.pow(0.5, n); - } - - // ADD[] ADD - // 0x60 - function ADD(state) { - var stack = state.stack; - var n2 = stack.pop(); - var n1 = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'ADD[]', n2, n1); - } - - stack.push(n1 + n2); - } - - // SUB[] SUB - // 0x61 - function SUB(state) { - var stack = state.stack; - var n2 = stack.pop(); - var n1 = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SUB[]', n2, n1); - } - - stack.push(n1 - n2); - } - - // DIV[] DIV - // 0x62 - function DIV(state) { - var stack = state.stack; - var n2 = stack.pop(); - var n1 = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'DIV[]', n2, n1); - } - - stack.push(n1 * 64 / n2); - } - - // MUL[] MUL - // 0x63 - function MUL(state) { - var stack = state.stack; - var n2 = stack.pop(); - var n1 = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'MUL[]', n2, n1); - } - - stack.push(n1 * n2 / 64); - } - - // ABS[] ABSolute value - // 0x64 - function ABS(state) { - var stack = state.stack; - var n = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'ABS[]', n); - } - - stack.push(Math.abs(n)); - } - - // NEG[] NEGate - // 0x65 - function NEG(state) { - var stack = state.stack; - var n = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'NEG[]', n); - } - - stack.push(-n); - } - - // FLOOR[] FLOOR - // 0x66 - function FLOOR(state) { - var stack = state.stack; - var n = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'FLOOR[]', n); - } - - stack.push(Math.floor(n / 0x40) * 0x40); - } - - // CEILING[] CEILING - // 0x67 - function CEILING(state) { - var stack = state.stack; - var n = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'CEILING[]', n); - } - - stack.push(Math.ceil(n / 0x40) * 0x40); - } - - // ROUND[ab] ROUND value - // 0x68-0x6B - function ROUND(dt, state) { - var stack = state.stack; - var n = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'ROUND[]'); - } - - stack.push(state.round(n / 0x40) * 0x40); - } - - // WCVTF[] Write Control Value Table in Funits - // 0x70 - function WCVTF(state) { - var stack = state.stack; - var v = stack.pop(); - var l = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'WCVTF[]', v, l); - } - - state.cvt[l] = v * state.ppem / state.font.unitsPerEm; - } - - // DELTAC1[] DELTA exception C1 - // DELTAC2[] DELTA exception C2 - // DELTAC3[] DELTA exception C3 - // 0x73, 0x74, 0x75 - function DELTAC123(b, state) { - var stack = state.stack; - var n = stack.pop(); - var ppem = state.ppem; - var base = state.deltaBase + (b - 1) * 16; - var ds = state.deltaShift; - - if (exports.DEBUG) { - console.log(state.step, 'DELTAC[' + b + ']', n, stack); - } - - for (var i = 0; i < n; i++) { - var c = stack.pop(); - var arg = stack.pop(); - var appem = base + ((arg & 0xf0) >> 4); - if (appem !== ppem) { - continue; - } - - var mag = (arg & 0x0f) - 8; - if (mag >= 0) { - mag++; - } - - var delta = mag * ds; - - if (exports.DEBUG) { - console.log(state.step, 'DELTACFIX', c, 'by', delta); - } - - state.cvt[c] += delta; - } - } - - // SROUND[] Super ROUND - // 0x76 - function SROUND(state) { - var n = state.stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'SROUND[]', n); - } - - state.round = roundSuper; - - var period; - - switch (n & 0xc0) { - case 0x00: - period = 0.5; - break; - case 0x40: - period = 1; - break; - case 0x80: - period = 2; - break; - default: - throw new Error('invalid SROUND value'); - } - - state.srPeriod = period; - - switch (n & 0x30) { - case 0x00: - state.srPhase = 0; - break; - case 0x10: - state.srPhase = 0.25 * period; - break; - case 0x20: - state.srPhase = 0.5 * period; - break; - case 0x30: - state.srPhase = 0.75 * period; - break; - default: - throw new Error('invalid SROUND value'); - } - - n &= 0x0f; - - if (n === 0) { - state.srThreshold = 0; - } else { - state.srThreshold = (n / 8 - 0.5) * period; - } - } - - // S45ROUND[] Super ROUND 45 degrees - // 0x77 - function S45ROUND(state) { - var n = state.stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'S45ROUND[]', n); - } - - state.round = roundSuper; - - var period; - - switch (n & 0xc0) { - case 0x00: - period = Math.sqrt(2) / 2; - break; - case 0x40: - period = Math.sqrt(2); - break; - case 0x80: - period = 2 * Math.sqrt(2); - break; - default: - throw new Error('invalid S45ROUND value'); - } - - state.srPeriod = period; - - switch (n & 0x30) { - case 0x00: - state.srPhase = 0; - break; - case 0x10: - state.srPhase = 0.25 * period; - break; - case 0x20: - state.srPhase = 0.5 * period; - break; - case 0x30: - state.srPhase = 0.75 * period; - break; - default: - throw new Error('invalid S45ROUND value'); - } - - n &= 0x0f; - - if (n === 0) { - state.srThreshold = 0; - } else { - state.srThreshold = (n / 8 - 0.5) * period; - } - } - - // ROFF[] Round Off - // 0x7A - function ROFF(state) { - if (exports.DEBUG) { - console.log(state.step, 'ROFF[]'); - } - - state.round = roundOff; - } - - // RUTG[] Round Up To Grid - // 0x7C - function RUTG(state) { - if (exports.DEBUG) { - console.log(state.step, 'RUTG[]'); - } - - state.round = roundUpToGrid; - } - - // RDTG[] Round Down To Grid - // 0x7D - function RDTG(state) { - if (exports.DEBUG) { - console.log(state.step, 'RDTG[]'); - } - - state.round = roundDownToGrid; - } - - // SCANCTRL[] SCAN conversion ConTRoL - // 0x85 - function SCANCTRL(state) { - var n = state.stack.pop(); - - // ignored by opentype.js - - if (exports.DEBUG) { - console.log(state.step, 'SCANCTRL[]', n); - } - } - - // SDPVTL[a] Set Dual Projection Vector To Line - // 0x86-0x87 - function SDPVTL(a, state) { - var stack = state.stack; - var p2i = stack.pop(); - var p1i = stack.pop(); - var p2 = state.z2[p2i]; - var p1 = state.z1[p1i]; - - if (exports.DEBUG) { - console.log(state.step, 'SDPVTL[' + a + ']', p2i, p1i); - } - - var dx; - var dy; - - if (!a) { - dx = p1.x - p2.x; - dy = p1.y - p2.y; - } else { - dx = p2.y - p1.y; - dy = p1.x - p2.x; - } - - state.dpv = getUnitVector(dx, dy); - } - - // GETINFO[] GET INFOrmation - // 0x88 - function GETINFO(state) { - var stack = state.stack; - var sel = stack.pop(); - var r = 0; - - if (exports.DEBUG) { - console.log(state.step, 'GETINFO[]', sel); - } - - // v35 as in no subpixel hinting - if (sel & 0x01) { - r = 35; - } - - // TODO rotation and stretch currently not supported - // and thus those GETINFO are always 0. - - // opentype.js is always gray scaling - if (sel & 0x20) { - r |= 0x1000; - } - - stack.push(r); - } - - // ROLL[] ROLL the top three stack elements - // 0x8A - function ROLL(state) { - var stack = state.stack; - var a = stack.pop(); - var b = stack.pop(); - var c = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'ROLL[]'); - } - - stack.push(b); - stack.push(a); - stack.push(c); - } - - // MAX[] MAXimum of top two stack elements - // 0x8B - function MAX(state) { - var stack = state.stack; - var e2 = stack.pop(); - var e1 = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'MAX[]', e2, e1); - } - - stack.push(Math.max(e1, e2)); - } - - // MIN[] MINimum of top two stack elements - // 0x8C - function MIN(state) { - var stack = state.stack; - var e2 = stack.pop(); - var e1 = stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'MIN[]', e2, e1); - } - - stack.push(Math.min(e1, e2)); - } - - // SCANTYPE[] SCANTYPE - // 0x8D - function SCANTYPE(state) { - var n = state.stack.pop(); - // ignored by opentype.js - if (exports.DEBUG) { - console.log(state.step, 'SCANTYPE[]', n); - } - } - - // INSTCTRL[] INSTCTRL - // 0x8D - function INSTCTRL(state) { - var s = state.stack.pop(); - var v = state.stack.pop(); - - if (exports.DEBUG) { - console.log(state.step, 'INSTCTRL[]', s, v); - } - - switch (s) { - case 1: - state.inhibitGridFit = !!v; - return; - case 2: - state.ignoreCvt = !!v; - return; - default: - throw new Error('invalid INSTCTRL[] selector'); - } - } - - // PUSHB[abc] PUSH Bytes - // 0xB0-0xB7 - function PUSHB(n, state) { - var stack = state.stack; - var prog = state.prog; - var ip = state.ip; - - if (exports.DEBUG) { - console.log(state.step, 'PUSHB[' + n + ']'); - } - - for (var i = 0; i < n; i++) { - stack.push(prog[++ip]); - } - - state.ip = ip; - } - - // PUSHW[abc] PUSH Words - // 0xB8-0xBF - function PUSHW(n, state) { - var ip = state.ip; - var prog = state.prog; - var stack = state.stack; - - if (exports.DEBUG) { - console.log(state.ip, 'PUSHW[' + n + ']'); - } - - for (var i = 0; i < n; i++) { - var w = (prog[++ip] << 8) | prog[++ip]; - if (w & 0x8000) { - w = -((w ^ 0xffff) + 1); - } - stack.push(w); - } - - state.ip = ip; - } - - // MDRP[abcde] Move Direct Relative Point - // 0xD0-0xEF - // (if indirect is 0) - // - // and - // - // MIRP[abcde] Move Indirect Relative Point - // 0xE0-0xFF - // (if indirect is 1) - - function MDRP_MIRP(indirect, setRp0, keepD, ro, dt, state) { - var stack = state.stack; - var cvte = indirect && stack.pop(); - var pi = stack.pop(); - var rp0i = state.rp0; - var rp = state.z0[rp0i]; - var p = state.z1[pi]; - - var md = state.minDis; - var fv = state.fv; - var pv = state.dpv; - var od; // original distance - var d; // moving distance - var sign; // sign of distance - var cv; - - d = od = pv.distance(p, rp, true, true); - sign = d >= 0 ? 1 : -1; // Math.sign would be 0 in case of 0 - - // TODO consider autoFlip - d = Math.abs(d); - - if (indirect) { - cv = state.cvt[cvte]; - - if (ro && Math.abs(d - cv) < state.cvCutIn) { - d = cv; - } - } - - if (keepD && d < md) { - d = md; - } - - if (ro) { - d = state.round(d); - } - - fv.setRelative(p, rp, sign * d, pv); - fv.touch(p); - - if (exports.DEBUG) { - console.log( - state.step, - (indirect ? 'MIRP[' : 'MDRP[') + - (setRp0 ? 'M' : 'm') + - (keepD ? '>' : '_') + - (ro ? 'R' : '_') + - (dt === 0 ? 'Gr' : dt === 1 ? 'Bl' : dt === 2 ? 'Wh' : '') + - ']', - indirect ? cvte + '(' + state.cvt[cvte] + ',' + cv + ')' : '', - pi, - '(d =', - od, - '->', - sign * d, - ')' - ); - } - - state.rp1 = state.rp0; - state.rp2 = pi; - if (setRp0) { - state.rp0 = pi; - } - } - - /* - * The instruction table. - */ - instructionTable = [ - /* 0x00 */ SVTCA.bind(undefined, yUnitVector), - /* 0x01 */ SVTCA.bind(undefined, xUnitVector), - /* 0x02 */ SPVTCA.bind(undefined, yUnitVector), - /* 0x03 */ SPVTCA.bind(undefined, xUnitVector), - /* 0x04 */ SFVTCA.bind(undefined, yUnitVector), - /* 0x05 */ SFVTCA.bind(undefined, xUnitVector), - /* 0x06 */ SPVTL.bind(undefined, 0), - /* 0x07 */ SPVTL.bind(undefined, 1), - /* 0x08 */ SFVTL.bind(undefined, 0), - /* 0x09 */ SFVTL.bind(undefined, 1), - /* 0x0A */ SPVFS, - /* 0x0B */ SFVFS, - /* 0x0C */ GPV, - /* 0x0D */ GFV, - /* 0x0E */ SFVTPV, - /* 0x0F */ ISECT, - /* 0x10 */ SRP0, - /* 0x11 */ SRP1, - /* 0x12 */ SRP2, - /* 0x13 */ SZP0, - /* 0x14 */ SZP1, - /* 0x15 */ SZP2, - /* 0x16 */ SZPS, - /* 0x17 */ SLOOP, - /* 0x18 */ RTG, - /* 0x19 */ RTHG, - /* 0x1A */ SMD, - /* 0x1B */ ELSE, - /* 0x1C */ JMPR, - /* 0x1D */ SCVTCI, - /* 0x1E */ undefined, // TODO SSWCI - /* 0x1F */ undefined, // TODO SSW - /* 0x20 */ DUP, - /* 0x21 */ POP, - /* 0x22 */ CLEAR, - /* 0x23 */ SWAP, - /* 0x24 */ DEPTH, - /* 0x25 */ CINDEX, - /* 0x26 */ MINDEX, - /* 0x27 */ undefined, // TODO ALIGNPTS - /* 0x28 */ undefined, - /* 0x29 */ undefined, // TODO UTP - /* 0x2A */ LOOPCALL, - /* 0x2B */ CALL, - /* 0x2C */ FDEF, - /* 0x2D */ undefined, // ENDF (eaten by FDEF) - /* 0x2E */ MDAP.bind(undefined, 0), - /* 0x2F */ MDAP.bind(undefined, 1), - /* 0x30 */ IUP.bind(undefined, yUnitVector), - /* 0x31 */ IUP.bind(undefined, xUnitVector), - /* 0x32 */ SHP.bind(undefined, 0), - /* 0x33 */ SHP.bind(undefined, 1), - /* 0x34 */ SHC.bind(undefined, 0), - /* 0x35 */ SHC.bind(undefined, 1), - /* 0x36 */ SHZ.bind(undefined, 0), - /* 0x37 */ SHZ.bind(undefined, 1), - /* 0x38 */ SHPIX, - /* 0x39 */ IP, - /* 0x3A */ MSIRP.bind(undefined, 0), - /* 0x3B */ MSIRP.bind(undefined, 1), - /* 0x3C */ ALIGNRP, - /* 0x3D */ RTDG, - /* 0x3E */ MIAP.bind(undefined, 0), - /* 0x3F */ MIAP.bind(undefined, 1), - /* 0x40 */ NPUSHB, - /* 0x41 */ NPUSHW, - /* 0x42 */ WS, - /* 0x43 */ RS, - /* 0x44 */ WCVTP, - /* 0x45 */ RCVT, - /* 0x46 */ GC.bind(undefined, 0), - /* 0x47 */ GC.bind(undefined, 1), - /* 0x48 */ undefined, // TODO SCFS - /* 0x49 */ MD.bind(undefined, 0), - /* 0x4A */ MD.bind(undefined, 1), - /* 0x4B */ MPPEM, - /* 0x4C */ undefined, // TODO MPS - /* 0x4D */ FLIPON, - /* 0x4E */ undefined, // TODO FLIPOFF - /* 0x4F */ undefined, // TODO DEBUG - /* 0x50 */ LT, - /* 0x51 */ LTEQ, - /* 0x52 */ GT, - /* 0x53 */ GTEQ, - /* 0x54 */ EQ, - /* 0x55 */ NEQ, - /* 0x56 */ ODD, - /* 0x57 */ EVEN, - /* 0x58 */ IF, - /* 0x59 */ EIF, - /* 0x5A */ AND, - /* 0x5B */ OR, - /* 0x5C */ NOT, - /* 0x5D */ DELTAP123.bind(undefined, 1), - /* 0x5E */ SDB, - /* 0x5F */ SDS, - /* 0x60 */ ADD, - /* 0x61 */ SUB, - /* 0x62 */ DIV, - /* 0x63 */ MUL, - /* 0x64 */ ABS, - /* 0x65 */ NEG, - /* 0x66 */ FLOOR, - /* 0x67 */ CEILING, - /* 0x68 */ ROUND.bind(undefined, 0), - /* 0x69 */ ROUND.bind(undefined, 1), - /* 0x6A */ ROUND.bind(undefined, 2), - /* 0x6B */ ROUND.bind(undefined, 3), - /* 0x6C */ undefined, // TODO NROUND[ab] - /* 0x6D */ undefined, // TODO NROUND[ab] - /* 0x6E */ undefined, // TODO NROUND[ab] - /* 0x6F */ undefined, // TODO NROUND[ab] - /* 0x70 */ WCVTF, - /* 0x71 */ DELTAP123.bind(undefined, 2), - /* 0x72 */ DELTAP123.bind(undefined, 3), - /* 0x73 */ DELTAC123.bind(undefined, 1), - /* 0x74 */ DELTAC123.bind(undefined, 2), - /* 0x75 */ DELTAC123.bind(undefined, 3), - /* 0x76 */ SROUND, - /* 0x77 */ S45ROUND, - /* 0x78 */ undefined, // TODO JROT[] - /* 0x79 */ undefined, // TODO JROF[] - /* 0x7A */ ROFF, - /* 0x7B */ undefined, - /* 0x7C */ RUTG, - /* 0x7D */ RDTG, - /* 0x7E */ POP, // actually SANGW, supposed to do only a pop though - /* 0x7F */ POP, // actually AA, supposed to do only a pop though - /* 0x80 */ undefined, // TODO FLIPPT - /* 0x81 */ undefined, // TODO FLIPRGON - /* 0x82 */ undefined, // TODO FLIPRGOFF - /* 0x83 */ undefined, - /* 0x84 */ undefined, - /* 0x85 */ SCANCTRL, - /* 0x86 */ SDPVTL.bind(undefined, 0), - /* 0x87 */ SDPVTL.bind(undefined, 1), - /* 0x88 */ GETINFO, - /* 0x89 */ undefined, // TODO IDEF - /* 0x8A */ ROLL, - /* 0x8B */ MAX, - /* 0x8C */ MIN, - /* 0x8D */ SCANTYPE, - /* 0x8E */ INSTCTRL, - /* 0x8F */ undefined, - /* 0x90 */ undefined, - /* 0x91 */ undefined, - /* 0x92 */ undefined, - /* 0x93 */ undefined, - /* 0x94 */ undefined, - /* 0x95 */ undefined, - /* 0x96 */ undefined, - /* 0x97 */ undefined, - /* 0x98 */ undefined, - /* 0x99 */ undefined, - /* 0x9A */ undefined, - /* 0x9B */ undefined, - /* 0x9C */ undefined, - /* 0x9D */ undefined, - /* 0x9E */ undefined, - /* 0x9F */ undefined, - /* 0xA0 */ undefined, - /* 0xA1 */ undefined, - /* 0xA2 */ undefined, - /* 0xA3 */ undefined, - /* 0xA4 */ undefined, - /* 0xA5 */ undefined, - /* 0xA6 */ undefined, - /* 0xA7 */ undefined, - /* 0xA8 */ undefined, - /* 0xA9 */ undefined, - /* 0xAA */ undefined, - /* 0xAB */ undefined, - /* 0xAC */ undefined, - /* 0xAD */ undefined, - /* 0xAE */ undefined, - /* 0xAF */ undefined, - /* 0xB0 */ PUSHB.bind(undefined, 1), - /* 0xB1 */ PUSHB.bind(undefined, 2), - /* 0xB2 */ PUSHB.bind(undefined, 3), - /* 0xB3 */ PUSHB.bind(undefined, 4), - /* 0xB4 */ PUSHB.bind(undefined, 5), - /* 0xB5 */ PUSHB.bind(undefined, 6), - /* 0xB6 */ PUSHB.bind(undefined, 7), - /* 0xB7 */ PUSHB.bind(undefined, 8), - /* 0xB8 */ PUSHW.bind(undefined, 1), - /* 0xB9 */ PUSHW.bind(undefined, 2), - /* 0xBA */ PUSHW.bind(undefined, 3), - /* 0xBB */ PUSHW.bind(undefined, 4), - /* 0xBC */ PUSHW.bind(undefined, 5), - /* 0xBD */ PUSHW.bind(undefined, 6), - /* 0xBE */ PUSHW.bind(undefined, 7), - /* 0xBF */ PUSHW.bind(undefined, 8), - /* 0xC0 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 0, 0), - /* 0xC1 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 0, 1), - /* 0xC2 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 0, 2), - /* 0xC3 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 0, 3), - /* 0xC4 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 1, 0), - /* 0xC5 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 1, 1), - /* 0xC6 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 1, 2), - /* 0xC7 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 1, 3), - /* 0xC8 */ MDRP_MIRP.bind(undefined, 0, 0, 1, 0, 0), - /* 0xC9 */ MDRP_MIRP.bind(undefined, 0, 0, 1, 0, 1), - /* 0xCA */ MDRP_MIRP.bind(undefined, 0, 0, 1, 0, 2), - /* 0xCB */ MDRP_MIRP.bind(undefined, 0, 0, 1, 0, 3), - /* 0xCC */ MDRP_MIRP.bind(undefined, 0, 0, 1, 1, 0), - /* 0xCD */ MDRP_MIRP.bind(undefined, 0, 0, 1, 1, 1), - /* 0xCE */ MDRP_MIRP.bind(undefined, 0, 0, 1, 1, 2), - /* 0xCF */ MDRP_MIRP.bind(undefined, 0, 0, 1, 1, 3), - /* 0xD0 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 0, 0), - /* 0xD1 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 0, 1), - /* 0xD2 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 0, 2), - /* 0xD3 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 0, 3), - /* 0xD4 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 1, 0), - /* 0xD5 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 1, 1), - /* 0xD6 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 1, 2), - /* 0xD7 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 1, 3), - /* 0xD8 */ MDRP_MIRP.bind(undefined, 0, 1, 1, 0, 0), - /* 0xD9 */ MDRP_MIRP.bind(undefined, 0, 1, 1, 0, 1), - /* 0xDA */ MDRP_MIRP.bind(undefined, 0, 1, 1, 0, 2), - /* 0xDB */ MDRP_MIRP.bind(undefined, 0, 1, 1, 0, 3), - /* 0xDC */ MDRP_MIRP.bind(undefined, 0, 1, 1, 1, 0), - /* 0xDD */ MDRP_MIRP.bind(undefined, 0, 1, 1, 1, 1), - /* 0xDE */ MDRP_MIRP.bind(undefined, 0, 1, 1, 1, 2), - /* 0xDF */ MDRP_MIRP.bind(undefined, 0, 1, 1, 1, 3), - /* 0xE0 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 0, 0), - /* 0xE1 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 0, 1), - /* 0xE2 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 0, 2), - /* 0xE3 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 0, 3), - /* 0xE4 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 1, 0), - /* 0xE5 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 1, 1), - /* 0xE6 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 1, 2), - /* 0xE7 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 1, 3), - /* 0xE8 */ MDRP_MIRP.bind(undefined, 1, 0, 1, 0, 0), - /* 0xE9 */ MDRP_MIRP.bind(undefined, 1, 0, 1, 0, 1), - /* 0xEA */ MDRP_MIRP.bind(undefined, 1, 0, 1, 0, 2), - /* 0xEB */ MDRP_MIRP.bind(undefined, 1, 0, 1, 0, 3), - /* 0xEC */ MDRP_MIRP.bind(undefined, 1, 0, 1, 1, 0), - /* 0xED */ MDRP_MIRP.bind(undefined, 1, 0, 1, 1, 1), - /* 0xEE */ MDRP_MIRP.bind(undefined, 1, 0, 1, 1, 2), - /* 0xEF */ MDRP_MIRP.bind(undefined, 1, 0, 1, 1, 3), - /* 0xF0 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 0, 0), - /* 0xF1 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 0, 1), - /* 0xF2 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 0, 2), - /* 0xF3 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 0, 3), - /* 0xF4 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 1, 0), - /* 0xF5 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 1, 1), - /* 0xF6 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 1, 2), - /* 0xF7 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 1, 3), - /* 0xF8 */ MDRP_MIRP.bind(undefined, 1, 1, 1, 0, 0), - /* 0xF9 */ MDRP_MIRP.bind(undefined, 1, 1, 1, 0, 1), - /* 0xFA */ MDRP_MIRP.bind(undefined, 1, 1, 1, 0, 2), - /* 0xFB */ MDRP_MIRP.bind(undefined, 1, 1, 1, 0, 3), - /* 0xFC */ MDRP_MIRP.bind(undefined, 1, 1, 1, 1, 0), - /* 0xFD */ MDRP_MIRP.bind(undefined, 1, 1, 1, 1, 1), - /* 0xFE */ MDRP_MIRP.bind(undefined, 1, 1, 1, 1, 2), - /* 0xFF */ MDRP_MIRP.bind(undefined, 1, 1, 1, 1, 3) - ]; - - /***************************** - Mathematical Considerations - ****************************** - - fv ... refers to freedom vector - pv ... refers to projection vector - rp ... refers to reference point - p ... refers to to point being operated on - d ... refers to distance - - SETRELATIVE: - ============ - - case freedom vector == x-axis: - ------------------------------ - - (pv) - .-' - rpd .-' - .-* - d .-'90ยฐ' - .-' ' - .-' ' - *-' ' b - rp ' - ' - ' - p *----------*-------------- (fv) - pm - - rpdx = rpx + d * pv.x - rpdy = rpy + d * pv.y - - equation of line b - - y - rpdy = pvns * (x- rpdx) - - y = p.y - - x = rpdx + ( p.y - rpdy ) / pvns - - - case freedom vector == y-axis: - ------------------------------ - - * pm - |\ - | \ - | \ - | \ - | \ - | \ - | \ - | \ - | \ - | \ b - | \ - | \ - | \ .-' (pv) - | 90ยฐ \.-' - | .-'* rpd - | .-' - * *-' d - p rp - - rpdx = rpx + d * pv.x - rpdy = rpy + d * pv.y - - equation of line b: - pvns ... normal slope to pv - - y - rpdy = pvns * (x - rpdx) - - x = p.x - - y = rpdy + pvns * (p.x - rpdx) - - - - generic case: - ------------- - - - .'(fv) - .' - .* pm - .' ! - .' . - .' ! - .' . b - .' ! - * . - p ! - 90ยฐ . ... (pv) - ...-*-''' - ...---''' rpd - ...---''' d - *--''' - rp - - rpdx = rpx + d * pv.x - rpdy = rpy + d * pv.y - - equation of line b: - pvns... normal slope to pv - - y - rpdy = pvns * (x - rpdx) - - equation of freedom vector line: - fvs ... slope of freedom vector (=fy/fx) - - y - py = fvs * (x - px) - - - on pm both equations are true for same x/y - - y - rpdy = pvns * (x - rpdx) - - y - py = fvs * (x - px) - - form to y and set equal: - - pvns * (x - rpdx) + rpdy = fvs * (x - px) + py - - expand: - - pvns * x - pvns * rpdx + rpdy = fvs * x - fvs * px + py - - switch: - - fvs * x - fvs * px + py = pvns * x - pvns * rpdx + rpdy - - solve for x: - - fvs * x - pvns * x = fvs * px - pvns * rpdx - py + rpdy - - - - fvs * px - pvns * rpdx + rpdy - py - x = ----------------------------------- - fvs - pvns - - and: - - y = fvs * (x - px) + py - - - - INTERPOLATE: - ============ - - Examples of point interpolation. - - The weight of the movement of the reference point gets bigger - the further the other reference point is away, thus the safest - option (that is avoiding 0/0 divisions) is to weight the - original distance of the other point by the sum of both distances. - - If the sum of both distances is 0, then move the point by the - arithmetic average of the movement of both reference points. - - - - - (+6) - rp1o *---->*rp1 - . . (+12) - . . rp2o *---------->* rp2 - . . . . - . . . . - . 10 20 . . - |.........|...................| . - . . . - . . (+8) . - po *------>*p . - . . . - . 12 . 24 . - |...........|.......................| - 36 - - - ------- - - - - (+10) - rp1o *-------->*rp1 - . . (-10) - . . rp2 *<---------* rpo2 - . . . . - . . . . - . 10 . 30 . . - |.........|.............................| - . . - . (+5) . - po *--->* p . - . . . - . . 20 . - |....|..............| - 5 15 - - - ------- - - - (+10) - rp1o *-------->*rp1 - . . - . . - rp2o *-------->*rp2 - - - (+10) - po *-------->* p - - ------- - - - (+10) - rp1o *-------->*rp1 - . . - . .(+30) - rp2o *---------------------------->*rp2 - - - (+25) - po *----------------------->* p - - - - vim: set ts=4 sw=4 expandtab: - *****/ - - // The Font object - - // This code is based on Array.from implementation for strings in https://github.com/mathiasbynens/Array.from - var arrayFromString = - Array.from || - function(s) { - return ( - s.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]?|[^\uD800-\uDFFF]|./g) || [] - ); - }; - - /** - * @typedef FontOptions - * @type Object - * @property {Boolean} empty - whether to create a new empty font - * @property {string} familyName - * @property {string} styleName - * @property {string=} fullName - * @property {string=} postScriptName - * @property {string=} designer - * @property {string=} designerURL - * @property {string=} manufacturer - * @property {string=} manufacturerURL - * @property {string=} license - * @property {string=} licenseURL - * @property {string=} version - * @property {string=} description - * @property {string=} copyright - * @property {string=} trademark - * @property {Number} unitsPerEm - * @property {Number} ascender - * @property {Number} descender - * @property {Number} createdTimestamp - * @property {string=} weightClass - * @property {string=} widthClass - * @property {string=} fsSelection - */ - - /** - * A Font represents a loaded OpenType font file. - * It contains a set of glyphs and methods to draw text on a drawing context, - * or to get a path representing the text. - * @exports opentype.Font - * @class - * @param {FontOptions} - * @constructor - */ - function Font(options) { - options = options || {}; - - if (!options.empty) { - // Check that we've provided the minimum set of names. - checkArgument( - options.familyName, - 'When creating a new Font object, familyName is required.' - ); - checkArgument( - options.styleName, - 'When creating a new Font object, styleName is required.' - ); - checkArgument( - options.unitsPerEm, - 'When creating a new Font object, unitsPerEm is required.' - ); - checkArgument( - options.ascender, - 'When creating a new Font object, ascender is required.' - ); - checkArgument( - options.descender, - 'When creating a new Font object, descender is required.' - ); - checkArgument( - options.descender < 0, - 'Descender should be negative (e.g. -512).' - ); - - // OS X will complain if the names are empty, so we put a single space everywhere by default. - this.names = { - fontFamily: { en: options.familyName || ' ' }, - fontSubfamily: { en: options.styleName || ' ' }, - fullName: { - en: options.fullName || options.familyName + ' ' + options.styleName - }, - // postScriptName may not contain any whitespace - postScriptName: { - en: - options.postScriptName || - (options.familyName + options.styleName).replace(/\s/g, '') - }, - designer: { en: options.designer || ' ' }, - designerURL: { en: options.designerURL || ' ' }, - manufacturer: { en: options.manufacturer || ' ' }, - manufacturerURL: { en: options.manufacturerURL || ' ' }, - license: { en: options.license || ' ' }, - licenseURL: { en: options.licenseURL || ' ' }, - version: { en: options.version || 'Version 0.1' }, - description: { en: options.description || ' ' }, - copyright: { en: options.copyright || ' ' }, - trademark: { en: options.trademark || ' ' } - }; - this.unitsPerEm = options.unitsPerEm || 1000; - this.ascender = options.ascender; - this.descender = options.descender; - this.createdTimestamp = options.createdTimestamp; - this.tables = { - os2: { - usWeightClass: options.weightClass || this.usWeightClasses.MEDIUM, - usWidthClass: options.widthClass || this.usWidthClasses.MEDIUM, - fsSelection: options.fsSelection || this.fsSelectionValues.REGULAR - } - }; - } - - this.supported = true; // Deprecated: parseBuffer will throw an error if font is not supported. - this.glyphs = new glyphset.GlyphSet(this, options.glyphs || []); - this.encoding = new DefaultEncoding(this); - this.position = new Position(this); - this.substitution = new Substitution(this); - this.tables = this.tables || {}; - - Object.defineProperty(this, 'hinting', { - get: function() { - if (this._hinting) { - return this._hinting; - } - if (this.outlinesFormat === 'truetype') { - return (this._hinting = new Hinting(this)); - } - } - }); - } - - /** - * Check if the font has a glyph for the given character. - * @param {string} - * @return {Boolean} - */ - Font.prototype.hasChar = function(c) { - return this.encoding.charToGlyphIndex(c) !== null; - }; - - /** - * Convert the given character to a single glyph index. - * Note that this function assumes that there is a one-to-one mapping between - * the given character and a glyph; for complex scripts this might not be the case. - * @param {string} - * @return {Number} - */ - Font.prototype.charToGlyphIndex = function(s) { - return this.encoding.charToGlyphIndex(s); - }; - - /** - * Convert the given character to a single Glyph object. - * Note that this function assumes that there is a one-to-one mapping between - * the given character and a glyph; for complex scripts this might not be the case. - * @param {string} - * @return {opentype.Glyph} - */ - Font.prototype.charToGlyph = function(c) { - var glyphIndex = this.charToGlyphIndex(c); - var glyph = this.glyphs.get(glyphIndex); - if (!glyph) { - // .notdef - glyph = this.glyphs.get(0); - } - - return glyph; - }; - - /** - * Convert the given text to a list of Glyph objects. - * Note that there is no strict one-to-one mapping between characters and - * glyphs, so the list of returned glyphs can be larger or smaller than the - * length of the given string. - * @param {string} - * @param {GlyphRenderOptions} [options] - * @return {opentype.Glyph[]} - */ - Font.prototype.stringToGlyphs = function(s, options) { - var this$1 = this; - - options = options || this.defaultRenderOptions; - // Get glyph indexes - var chars = arrayFromString(s); - var indexes = []; - for (var i = 0; i < chars.length; i += 1) { - var c = chars[i]; - indexes.push(this$1.charToGlyphIndex(c)); - } - var length = indexes.length; - - // Apply substitutions on glyph indexes - if (options.features) { - var script = options.script || this.substitution.getDefaultScriptName(); - var manyToOne = []; - if (options.features.liga) { - manyToOne = manyToOne.concat( - this.substitution.getFeature('liga', script, options.language) - ); - } - if (options.features.rlig) { - manyToOne = manyToOne.concat( - this.substitution.getFeature('rlig', script, options.language) - ); - } - for (var i$1 = 0; i$1 < length; i$1 += 1) { - for (var j = 0; j < manyToOne.length; j++) { - var ligature = manyToOne[j]; - var components = ligature.sub; - var compCount = components.length; - var k = 0; - while (k < compCount && components[k] === indexes[i$1 + k]) { - k++; - } - if (k === compCount) { - indexes.splice(i$1, compCount, ligature.by); - length = length - compCount + 1; - } - } - } - } - - // convert glyph indexes to glyph objects - var glyphs = new Array(length); - var notdef = this.glyphs.get(0); - for (var i$2 = 0; i$2 < length; i$2 += 1) { - glyphs[i$2] = this$1.glyphs.get(indexes[i$2]) || notdef; - } - return glyphs; - }; - - /** - * @param {string} - * @return {Number} - */ - Font.prototype.nameToGlyphIndex = function(name) { - return this.glyphNames.nameToGlyphIndex(name); - }; - - /** - * @param {string} - * @return {opentype.Glyph} - */ - Font.prototype.nameToGlyph = function(name) { - var glyphIndex = this.nameToGlyphIndex(name); - var glyph = this.glyphs.get(glyphIndex); - if (!glyph) { - // .notdef - glyph = this.glyphs.get(0); - } - - return glyph; - }; - - /** - * @param {Number} - * @return {String} - */ - Font.prototype.glyphIndexToName = function(gid) { - if (!this.glyphNames.glyphIndexToName) { - return ''; - } - - return this.glyphNames.glyphIndexToName(gid); - }; - - /** - * Retrieve the value of the kerning pair between the left glyph (or its index) - * and the right glyph (or its index). If no kerning pair is found, return 0. - * The kerning value gets added to the advance width when calculating the spacing - * between glyphs. - * For GPOS kerning, this method uses the default script and language, which covers - * most use cases. To have greater control, use font.position.getKerningValue . - * @param {opentype.Glyph} leftGlyph - * @param {opentype.Glyph} rightGlyph - * @return {Number} - */ - Font.prototype.getKerningValue = function(leftGlyph, rightGlyph) { - leftGlyph = leftGlyph.index || leftGlyph; - rightGlyph = rightGlyph.index || rightGlyph; - var gposKerning = this.position.defaultKerningTables; - if (gposKerning) { - return this.position.getKerningValue(gposKerning, leftGlyph, rightGlyph); - } - // "kern" table - return this.kerningPairs[leftGlyph + ',' + rightGlyph] || 0; - }; - - /** - * @typedef GlyphRenderOptions - * @type Object - * @property {string} [script] - script used to determine which features to apply. By default, 'DFLT' or 'latn' is used. - * See https://www.microsoft.com/typography/otspec/scripttags.htm - * @property {string} [language='dflt'] - language system used to determine which features to apply. - * See https://www.microsoft.com/typography/developers/opentype/languagetags.aspx - * @property {boolean} [kerning=true] - whether to include kerning values - * @property {object} [features] - OpenType Layout feature tags. Used to enable or disable the features of the given script/language system. - * See https://www.microsoft.com/typography/otspec/featuretags.htm - */ - Font.prototype.defaultRenderOptions = { - kerning: true, - features: { - liga: true, - rlig: true - } - }; - - /** - * Helper function that invokes the given callback for each glyph in the given text. - * The callback gets `(glyph, x, y, fontSize, options)`.* @param {string} text - * @param {string} text - The text to apply. - * @param {number} [x=0] - Horizontal position of the beginning of the text. - * @param {number} [y=0] - Vertical position of the *baseline* of the text. - * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. - * @param {GlyphRenderOptions=} options - * @param {Function} callback - */ - Font.prototype.forEachGlyph = function( - text, - x, - y, - fontSize, - options, - callback - ) { - var this$1 = this; - - x = x !== undefined ? x : 0; - y = y !== undefined ? y : 0; - fontSize = fontSize !== undefined ? fontSize : 72; - options = options || this.defaultRenderOptions; - var fontScale = 1 / this.unitsPerEm * fontSize; - var glyphs = this.stringToGlyphs(text, options); - var kerningLookups; - if (options.kerning) { - var script = options.script || this.position.getDefaultScriptName(); - kerningLookups = this.position.getKerningTables(script, options.language); - } - for (var i = 0; i < glyphs.length; i += 1) { - var glyph = glyphs[i]; - callback.call(this$1, glyph, x, y, fontSize, options); - if (glyph.advanceWidth) { - x += glyph.advanceWidth * fontScale; - } - - if (options.kerning && i < glyphs.length - 1) { - // We should apply position adjustment lookups in a more generic way. - // Here we only use the xAdvance value. - var kerningValue = kerningLookups - ? this$1.position.getKerningValue( - kerningLookups, - glyph.index, - glyphs[i + 1].index - ) - : this$1.getKerningValue(glyph, glyphs[i + 1]); - x += kerningValue * fontScale; - } - - if (options.letterSpacing) { - x += options.letterSpacing * fontSize; - } else if (options.tracking) { - x += options.tracking / 1000 * fontSize; - } - } - return x; - }; - - /** - * Create a Path object that represents the given text. - * @param {string} text - The text to create. - * @param {number} [x=0] - Horizontal position of the beginning of the text. - * @param {number} [y=0] - Vertical position of the *baseline* of the text. - * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. - * @param {GlyphRenderOptions=} options - * @return {opentype.Path} - */ - Font.prototype.getPath = function(text, x, y, fontSize, options) { - var fullPath = new Path(); - this.forEachGlyph(text, x, y, fontSize, options, function( - glyph, - gX, - gY, - gFontSize - ) { - var glyphPath = glyph.getPath(gX, gY, gFontSize, options, this); - fullPath.extend(glyphPath); - }); - return fullPath; - }; - - /** - * Create an array of Path objects that represent the glyphs of a given text. - * @param {string} text - The text to create. - * @param {number} [x=0] - Horizontal position of the beginning of the text. - * @param {number} [y=0] - Vertical position of the *baseline* of the text. - * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. - * @param {GlyphRenderOptions=} options - * @return {opentype.Path[]} - */ - Font.prototype.getPaths = function(text, x, y, fontSize, options) { - var glyphPaths = []; - this.forEachGlyph(text, x, y, fontSize, options, function( - glyph, - gX, - gY, - gFontSize - ) { - var glyphPath = glyph.getPath(gX, gY, gFontSize, options, this); - glyphPaths.push(glyphPath); - }); - - return glyphPaths; - }; - - /** - * Returns the advance width of a text. - * - * This is something different than Path.getBoundingBox() as for example a - * suffixed whitespace increases the advanceWidth but not the bounding box - * or an overhanging letter like a calligraphic 'f' might have a quite larger - * bounding box than its advance width. - * - * This corresponds to canvas2dContext.measureText(text).width - * - * @param {string} text - The text to create. - * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. - * @param {GlyphRenderOptions=} options - * @return advance width - */ - Font.prototype.getAdvanceWidth = function(text, fontSize, options) { - return this.forEachGlyph(text, 0, 0, fontSize, options, function() {}); - }; - - /** - * Draw the text on the given drawing context. - * @param {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas. - * @param {string} text - The text to create. - * @param {number} [x=0] - Horizontal position of the beginning of the text. - * @param {number} [y=0] - Vertical position of the *baseline* of the text. - * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. - * @param {GlyphRenderOptions=} options - */ - Font.prototype.draw = function(ctx, text, x, y, fontSize, options) { - this.getPath(text, x, y, fontSize, options).draw(ctx); - }; - - /** - * Draw the points of all glyphs in the text. - * On-curve points will be drawn in blue, off-curve points will be drawn in red. - * @param {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas. - * @param {string} text - The text to create. - * @param {number} [x=0] - Horizontal position of the beginning of the text. - * @param {number} [y=0] - Vertical position of the *baseline* of the text. - * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. - * @param {GlyphRenderOptions=} options - */ - Font.prototype.drawPoints = function(ctx, text, x, y, fontSize, options) { - this.forEachGlyph(text, x, y, fontSize, options, function( - glyph, - gX, - gY, - gFontSize - ) { - glyph.drawPoints(ctx, gX, gY, gFontSize); - }); - }; - - /** - * Draw lines indicating important font measurements for all glyphs in the text. - * Black lines indicate the origin of the coordinate system (point 0,0). - * Blue lines indicate the glyph bounding box. - * Green line indicates the advance width of the glyph. - * @param {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas. - * @param {string} text - The text to create. - * @param {number} [x=0] - Horizontal position of the beginning of the text. - * @param {number} [y=0] - Vertical position of the *baseline* of the text. - * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. - * @param {GlyphRenderOptions=} options - */ - Font.prototype.drawMetrics = function(ctx, text, x, y, fontSize, options) { - this.forEachGlyph(text, x, y, fontSize, options, function( - glyph, - gX, - gY, - gFontSize - ) { - glyph.drawMetrics(ctx, gX, gY, gFontSize); - }); - }; - - /** - * @param {string} - * @return {string} - */ - Font.prototype.getEnglishName = function(name) { - var translations = this.names[name]; - if (translations) { - return translations.en; - } - }; - - /** - * Validate - */ - Font.prototype.validate = function() { - var _this = this; - - function assert(predicate, message) {} - - function assertNamePresent(name) { - var englishName = _this.getEnglishName(name); - assert( - englishName && englishName.trim().length > 0, - 'No English ' + name + ' specified.' - ); - } - - // Identification information - assertNamePresent('fontFamily'); - assertNamePresent('weightName'); - assertNamePresent('manufacturer'); - assertNamePresent('copyright'); - assertNamePresent('version'); - - // Dimension information - assert(this.unitsPerEm > 0, 'No unitsPerEm specified.'); - }; - - /** - * Convert the font object to a SFNT data structure. - * This structure contains all the necessary tables and metadata to create a binary OTF file. - * @return {opentype.Table} - */ - Font.prototype.toTables = function() { - return sfnt.fontToTable(this); - }; - /** - * @deprecated Font.toBuffer is deprecated. Use Font.toArrayBuffer instead. - */ - Font.prototype.toBuffer = function() { - console.warn( - 'Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.' - ); - return this.toArrayBuffer(); - }; - /** - * Converts a `opentype.Font` into an `ArrayBuffer` - * @return {ArrayBuffer} - */ - Font.prototype.toArrayBuffer = function() { - var sfntTable = this.toTables(); - var bytes = sfntTable.encode(); - var buffer = new ArrayBuffer(bytes.length); - var intArray = new Uint8Array(buffer); - for (var i = 0; i < bytes.length; i++) { - intArray[i] = bytes[i]; - } - - return buffer; - }; - - /** - * Initiate a download of the OpenType font. - */ - Font.prototype.download = function(fileName) { - var familyName = this.getEnglishName('fontFamily'); - var styleName = this.getEnglishName('fontSubfamily'); - fileName = - fileName || familyName.replace(/\s/g, '') + '-' + styleName + '.otf'; - var arrayBuffer = this.toArrayBuffer(); - - if (isBrowser()) { - window.requestFileSystem = - window.requestFileSystem || window.webkitRequestFileSystem; - window.requestFileSystem( - window.TEMPORARY, - arrayBuffer.byteLength, - function(fs) { - fs.root.getFile(fileName, { create: true }, function(fileEntry) { - fileEntry.createWriter(function(writer) { - var dataView = new DataView(arrayBuffer); - var blob = new Blob([dataView], { type: 'font/opentype' }); - writer.write(blob); - - writer.addEventListener( - 'writeend', - function() { - // Navigating to the file will download it. - location.href = fileEntry.toURL(); - }, - false - ); - }); - }); - }, - function(err) { - throw new Error(err.name + ': ' + err.message); - } - ); - } else { - var fs = _dereq_('fs'); - var buffer = arrayBufferToNodeBuffer(arrayBuffer); - fs.writeFileSync(fileName, buffer); - } - }; - /** - * @private - */ - Font.prototype.fsSelectionValues = { - ITALIC: 0x001, //1 - UNDERSCORE: 0x002, //2 - NEGATIVE: 0x004, //4 - OUTLINED: 0x008, //8 - STRIKEOUT: 0x010, //16 - BOLD: 0x020, //32 - REGULAR: 0x040, //64 - USER_TYPO_METRICS: 0x080, //128 - WWS: 0x100, //256 - OBLIQUE: 0x200 //512 - }; - - /** - * @private - */ - Font.prototype.usWidthClasses = { - ULTRA_CONDENSED: 1, - EXTRA_CONDENSED: 2, - CONDENSED: 3, - SEMI_CONDENSED: 4, - MEDIUM: 5, - SEMI_EXPANDED: 6, - EXPANDED: 7, - EXTRA_EXPANDED: 8, - ULTRA_EXPANDED: 9 - }; - - /** - * @private - */ - Font.prototype.usWeightClasses = { - THIN: 100, - EXTRA_LIGHT: 200, - LIGHT: 300, - NORMAL: 400, - MEDIUM: 500, - SEMI_BOLD: 600, - BOLD: 700, - EXTRA_BOLD: 800, - BLACK: 900 - }; - - // The `fvar` table stores font variation axes and instances. - - function addName(name, names) { - var nameString = JSON.stringify(name); - var nameID = 256; - for (var nameKey in names) { - var n = parseInt(nameKey); - if (!n || n < 256) { - continue; - } - - if (JSON.stringify(names[nameKey]) === nameString) { - return n; - } - - if (nameID <= n) { - nameID = n + 1; - } - } - - names[nameID] = name; - return nameID; - } - - function makeFvarAxis(n, axis, names) { - var nameID = addName(axis.name, names); - return [ - { name: 'tag_' + n, type: 'TAG', value: axis.tag }, - { name: 'minValue_' + n, type: 'FIXED', value: axis.minValue << 16 }, - { - name: 'defaultValue_' + n, - type: 'FIXED', - value: axis.defaultValue << 16 - }, - { name: 'maxValue_' + n, type: 'FIXED', value: axis.maxValue << 16 }, - { name: 'flags_' + n, type: 'USHORT', value: 0 }, - { name: 'nameID_' + n, type: 'USHORT', value: nameID } - ]; - } - - function parseFvarAxis(data, start, names) { - var axis = {}; - var p = new parse.Parser(data, start); - axis.tag = p.parseTag(); - axis.minValue = p.parseFixed(); - axis.defaultValue = p.parseFixed(); - axis.maxValue = p.parseFixed(); - p.skip('uShort', 1); // reserved for flags; no values defined - axis.name = names[p.parseUShort()] || {}; - return axis; - } - - function makeFvarInstance(n, inst, axes, names) { - var nameID = addName(inst.name, names); - var fields = [ - { name: 'nameID_' + n, type: 'USHORT', value: nameID }, - { name: 'flags_' + n, type: 'USHORT', value: 0 } - ]; - - for (var i = 0; i < axes.length; ++i) { - var axisTag = axes[i].tag; - fields.push({ - name: 'axis_' + n + ' ' + axisTag, - type: 'FIXED', - value: inst.coordinates[axisTag] << 16 - }); - } - - return fields; - } - - function parseFvarInstance(data, start, axes, names) { - var inst = {}; - var p = new parse.Parser(data, start); - inst.name = names[p.parseUShort()] || {}; - p.skip('uShort', 1); // reserved for flags; no values defined - - inst.coordinates = {}; - for (var i = 0; i < axes.length; ++i) { - inst.coordinates[axes[i].tag] = p.parseFixed(); - } - - return inst; - } - - function makeFvarTable(fvar, names) { - var result = new table.Table('fvar', [ - { name: 'version', type: 'ULONG', value: 0x10000 }, - { name: 'offsetToData', type: 'USHORT', value: 0 }, - { name: 'countSizePairs', type: 'USHORT', value: 2 }, - { name: 'axisCount', type: 'USHORT', value: fvar.axes.length }, - { name: 'axisSize', type: 'USHORT', value: 20 }, - { name: 'instanceCount', type: 'USHORT', value: fvar.instances.length }, - { name: 'instanceSize', type: 'USHORT', value: 4 + fvar.axes.length * 4 } - ]); - result.offsetToData = result.sizeOf(); - - for (var i = 0; i < fvar.axes.length; i++) { - result.fields = result.fields.concat( - makeFvarAxis(i, fvar.axes[i], names) - ); - } - - for (var j = 0; j < fvar.instances.length; j++) { - result.fields = result.fields.concat( - makeFvarInstance(j, fvar.instances[j], fvar.axes, names) - ); - } - - return result; - } - - function parseFvarTable(data, start, names) { - var p = new parse.Parser(data, start); - var tableVersion = p.parseULong(); - check.argument( - tableVersion === 0x00010000, - 'Unsupported fvar table version.' - ); - var offsetToData = p.parseOffset16(); - // Skip countSizePairs. - p.skip('uShort', 1); - var axisCount = p.parseUShort(); - var axisSize = p.parseUShort(); - var instanceCount = p.parseUShort(); - var instanceSize = p.parseUShort(); - - var axes = []; - for (var i = 0; i < axisCount; i++) { - axes.push( - parseFvarAxis(data, start + offsetToData + i * axisSize, names) - ); - } - - var instances = []; - var instanceStart = start + offsetToData + axisCount * axisSize; - for (var j = 0; j < instanceCount; j++) { - instances.push( - parseFvarInstance(data, instanceStart + j * instanceSize, axes, names) - ); - } - - return { axes: axes, instances: instances }; - } - - var fvar = { make: makeFvarTable, parse: parseFvarTable }; - - // The `GPOS` table contains kerning pairs, among other things. - - var subtableParsers$1 = new Array(10); // subtableParsers[0] is unused - - // https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#lookup-type-1-single-adjustment-positioning-subtable - // this = Parser instance - subtableParsers$1[1] = function parseLookup1() { - var start = this.offset + this.relativeOffset; - var posformat = this.parseUShort(); - if (posformat === 1) { - return { - posFormat: 1, - coverage: this.parsePointer(Parser.coverage), - value: this.parseValueRecord() - }; - } else if (posformat === 2) { - return { - posFormat: 2, - coverage: this.parsePointer(Parser.coverage), - values: this.parseValueRecordList() - }; - } - check.assert( - false, - '0x' + start.toString(16) + ': GPOS lookup type 1 format must be 1 or 2.' - ); - }; - - // https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#lookup-type-2-pair-adjustment-positioning-subtable - subtableParsers$1[2] = function parseLookup2() { - var start = this.offset + this.relativeOffset; - var posFormat = this.parseUShort(); - check.assert( - posFormat === 1 || posFormat === 2, - '0x' + start.toString(16) + ': GPOS lookup type 2 format must be 1 or 2.' - ); - var coverage = this.parsePointer(Parser.coverage); - var valueFormat1 = this.parseUShort(); - var valueFormat2 = this.parseUShort(); - if (posFormat === 1) { - // Adjustments for Glyph Pairs - return { - posFormat: posFormat, - coverage: coverage, - valueFormat1: valueFormat1, - valueFormat2: valueFormat2, - pairSets: this.parseList( - Parser.pointer( - Parser.list(function() { - return { - // pairValueRecord - secondGlyph: this.parseUShort(), - value1: this.parseValueRecord(valueFormat1), - value2: this.parseValueRecord(valueFormat2) - }; - }) - ) - ) - }; - } else if (posFormat === 2) { - var classDef1 = this.parsePointer(Parser.classDef); - var classDef2 = this.parsePointer(Parser.classDef); - var class1Count = this.parseUShort(); - var class2Count = this.parseUShort(); - return { - // Class Pair Adjustment - posFormat: posFormat, - coverage: coverage, - valueFormat1: valueFormat1, - valueFormat2: valueFormat2, - classDef1: classDef1, - classDef2: classDef2, - class1Count: class1Count, - class2Count: class2Count, - classRecords: this.parseList( - class1Count, - Parser.list(class2Count, function() { - return { - value1: this.parseValueRecord(valueFormat1), - value2: this.parseValueRecord(valueFormat2) - }; - }) - ) - }; - } - }; - - subtableParsers$1[3] = function parseLookup3() { - return { error: 'GPOS Lookup 3 not supported' }; - }; - subtableParsers$1[4] = function parseLookup4() { - return { error: 'GPOS Lookup 4 not supported' }; - }; - subtableParsers$1[5] = function parseLookup5() { - return { error: 'GPOS Lookup 5 not supported' }; - }; - subtableParsers$1[6] = function parseLookup6() { - return { error: 'GPOS Lookup 6 not supported' }; - }; - subtableParsers$1[7] = function parseLookup7() { - return { error: 'GPOS Lookup 7 not supported' }; - }; - subtableParsers$1[8] = function parseLookup8() { - return { error: 'GPOS Lookup 8 not supported' }; - }; - subtableParsers$1[9] = function parseLookup9() { - return { error: 'GPOS Lookup 9 not supported' }; - }; - - // https://docs.microsoft.com/en-us/typography/opentype/spec/gpos - function parseGposTable(data, start) { - start = start || 0; - var p = new Parser(data, start); - var tableVersion = p.parseVersion(1); - check.argument( - tableVersion === 1 || tableVersion === 1.1, - 'Unsupported GPOS table version ' + tableVersion - ); - - if (tableVersion === 1) { - return { - version: tableVersion, - scripts: p.parseScriptList(), - features: p.parseFeatureList(), - lookups: p.parseLookupList(subtableParsers$1) - }; - } else { - return { - version: tableVersion, - scripts: p.parseScriptList(), - features: p.parseFeatureList(), - lookups: p.parseLookupList(subtableParsers$1), - variations: p.parseFeatureVariationsList() - }; - } - } - - // GPOS Writing ////////////////////////////////////////////// - // NOT SUPPORTED - var subtableMakers$1 = new Array(10); - - function makeGposTable(gpos) { - return new table.Table('GPOS', [ - { name: 'version', type: 'ULONG', value: 0x10000 }, - { - name: 'scripts', - type: 'TABLE', - value: new table.ScriptList(gpos.scripts) - }, - { - name: 'features', - type: 'TABLE', - value: new table.FeatureList(gpos.features) - }, - { - name: 'lookups', - type: 'TABLE', - value: new table.LookupList(gpos.lookups, subtableMakers$1) - } - ]); - } - - var gpos = { parse: parseGposTable, make: makeGposTable }; - - // The `kern` table contains kerning pairs. - - function parseWindowsKernTable(p) { - var pairs = {}; - // Skip nTables. - p.skip('uShort'); - var subtableVersion = p.parseUShort(); - check.argument( - subtableVersion === 0, - 'Unsupported kern sub-table version.' - ); - // Skip subtableLength, subtableCoverage - p.skip('uShort', 2); - var nPairs = p.parseUShort(); - // Skip searchRange, entrySelector, rangeShift. - p.skip('uShort', 3); - for (var i = 0; i < nPairs; i += 1) { - var leftIndex = p.parseUShort(); - var rightIndex = p.parseUShort(); - var value = p.parseShort(); - pairs[leftIndex + ',' + rightIndex] = value; - } - return pairs; - } - - function parseMacKernTable(p) { - var pairs = {}; - // The Mac kern table stores the version as a fixed (32 bits) but we only loaded the first 16 bits. - // Skip the rest. - p.skip('uShort'); - var nTables = p.parseULong(); - //check.argument(nTables === 1, 'Only 1 subtable is supported (got ' + nTables + ').'); - if (nTables > 1) { - console.warn('Only the first kern subtable is supported.'); - } - p.skip('uLong'); - var coverage = p.parseUShort(); - var subtableVersion = coverage & 0xff; - p.skip('uShort'); - if (subtableVersion === 0) { - var nPairs = p.parseUShort(); - // Skip searchRange, entrySelector, rangeShift. - p.skip('uShort', 3); - for (var i = 0; i < nPairs; i += 1) { - var leftIndex = p.parseUShort(); - var rightIndex = p.parseUShort(); - var value = p.parseShort(); - pairs[leftIndex + ',' + rightIndex] = value; - } - } - return pairs; - } - - // Parse the `kern` table which contains kerning pairs. - function parseKernTable(data, start) { - var p = new parse.Parser(data, start); - var tableVersion = p.parseUShort(); - if (tableVersion === 0) { - return parseWindowsKernTable(p); - } else if (tableVersion === 1) { - return parseMacKernTable(p); - } else { - throw new Error('Unsupported kern table version (' + tableVersion + ').'); - } - } - - var kern = { parse: parseKernTable }; - - // The `loca` table stores the offsets to the locations of the glyphs in the font. - - // Parse the `loca` table. This table stores the offsets to the locations of the glyphs in the font, - // relative to the beginning of the glyphData table. - // The number of glyphs stored in the `loca` table is specified in the `maxp` table (under numGlyphs) - // The loca table has two versions: a short version where offsets are stored as uShorts, and a long - // version where offsets are stored as uLongs. The `head` table specifies which version to use - // (under indexToLocFormat). - function parseLocaTable(data, start, numGlyphs, shortVersion) { - var p = new parse.Parser(data, start); - var parseFn = shortVersion ? p.parseUShort : p.parseULong; - // There is an extra entry after the last index element to compute the length of the last glyph. - // That's why we use numGlyphs + 1. - var glyphOffsets = []; - for (var i = 0; i < numGlyphs + 1; i += 1) { - var glyphOffset = parseFn.call(p); - if (shortVersion) { - // The short table version stores the actual offset divided by 2. - glyphOffset *= 2; - } - - glyphOffsets.push(glyphOffset); - } - - return glyphOffsets; - } - - var loca = { parse: parseLocaTable }; - - // opentype.js - - /** - * The opentype library. - * @namespace opentype - */ - - // File loaders ///////////////////////////////////////////////////////// - /** - * Loads a font from a file. The callback throws an error message as the first parameter if it fails - * and the font as an ArrayBuffer in the second parameter if it succeeds. - * @param {string} path - The path of the file - * @param {Function} callback - The function to call when the font load completes - */ - function loadFromFile(path, callback) { - var fs = _dereq_('fs'); - fs.readFile(path, function(err, buffer) { - if (err) { - return callback(err.message); - } - - callback(null, nodeBufferToArrayBuffer(buffer)); - }); - } - /** - * Loads a font from a URL. The callback throws an error message as the first parameter if it fails - * and the font as an ArrayBuffer in the second parameter if it succeeds. - * @param {string} url - The URL of the font file. - * @param {Function} callback - The function to call when the font load completes - */ - function loadFromUrl(url, callback) { - var request = new XMLHttpRequest(); - request.open('get', url, true); - request.responseType = 'arraybuffer'; - request.onload = function() { - if (request.response) { - return callback(null, request.response); - } else { - return callback('Font could not be loaded: ' + request.statusText); - } - }; - - request.onerror = function() { - callback('Font could not be loaded'); - }; - - request.send(); - } - - // Table Directory Entries ////////////////////////////////////////////// - /** - * Parses OpenType table entries. - * @param {DataView} - * @param {Number} - * @return {Object[]} - */ - function parseOpenTypeTableEntries(data, numTables) { - var tableEntries = []; - var p = 12; - for (var i = 0; i < numTables; i += 1) { - var tag = parse.getTag(data, p); - var checksum = parse.getULong(data, p + 4); - var offset = parse.getULong(data, p + 8); - var length = parse.getULong(data, p + 12); - tableEntries.push({ - tag: tag, - checksum: checksum, - offset: offset, - length: length, - compression: false - }); - p += 16; - } - - return tableEntries; - } - - /** - * Parses WOFF table entries. - * @param {DataView} - * @param {Number} - * @return {Object[]} - */ - function parseWOFFTableEntries(data, numTables) { - var tableEntries = []; - var p = 44; // offset to the first table directory entry. - for (var i = 0; i < numTables; i += 1) { - var tag = parse.getTag(data, p); - var offset = parse.getULong(data, p + 4); - var compLength = parse.getULong(data, p + 8); - var origLength = parse.getULong(data, p + 12); - var compression = void 0; - if (compLength < origLength) { - compression = 'WOFF'; - } else { - compression = false; - } - - tableEntries.push({ - tag: tag, - offset: offset, - compression: compression, - compressedLength: compLength, - length: origLength - }); - p += 20; - } - - return tableEntries; - } - - /** - * @typedef TableData - * @type Object - * @property {DataView} data - The DataView - * @property {number} offset - The data offset. - */ - - /** - * @param {DataView} - * @param {Object} - * @return {TableData} - */ - function uncompressTable(data, tableEntry) { - if (tableEntry.compression === 'WOFF') { - var inBuffer = new Uint8Array( - data.buffer, - tableEntry.offset + 2, - tableEntry.compressedLength - 2 - ); - var outBuffer = new Uint8Array(tableEntry.length); - tinyInflate(inBuffer, outBuffer); - if (outBuffer.byteLength !== tableEntry.length) { - throw new Error( - 'Decompression error: ' + - tableEntry.tag + - " decompressed length doesn't match recorded length" - ); - } - - var view = new DataView(outBuffer.buffer, 0); - return { data: view, offset: 0 }; - } else { - return { data: data, offset: tableEntry.offset }; - } - } - - // Public API /////////////////////////////////////////////////////////// - - /** - * Parse the OpenType file data (as an ArrayBuffer) and return a Font object. - * Throws an error if the font could not be parsed. - * @param {ArrayBuffer} - * @return {opentype.Font} - */ - function parseBuffer(buffer) { - var indexToLocFormat; - var ltagTable; - - // Since the constructor can also be called to create new fonts from scratch, we indicate this - // should be an empty font that we'll fill with our own data. - var font = new Font({ empty: true }); - - // OpenType fonts use big endian byte ordering. - // We can't rely on typed array view types, because they operate with the endianness of the host computer. - // Instead we use DataViews where we can specify endianness. - var data = new DataView(buffer, 0); - var numTables; - var tableEntries = []; - var signature = parse.getTag(data, 0); - if ( - signature === String.fromCharCode(0, 1, 0, 0) || - signature === 'true' || - signature === 'typ1' - ) { - font.outlinesFormat = 'truetype'; - numTables = parse.getUShort(data, 4); - tableEntries = parseOpenTypeTableEntries(data, numTables); - } else if (signature === 'OTTO') { - font.outlinesFormat = 'cff'; - numTables = parse.getUShort(data, 4); - tableEntries = parseOpenTypeTableEntries(data, numTables); - } else if (signature === 'wOFF') { - var flavor = parse.getTag(data, 4); - if (flavor === String.fromCharCode(0, 1, 0, 0)) { - font.outlinesFormat = 'truetype'; - } else if (flavor === 'OTTO') { - font.outlinesFormat = 'cff'; - } else { - throw new Error('Unsupported OpenType flavor ' + signature); - } - - numTables = parse.getUShort(data, 12); - tableEntries = parseWOFFTableEntries(data, numTables); - } else { - throw new Error('Unsupported OpenType signature ' + signature); - } - - var cffTableEntry; - var fvarTableEntry; - var glyfTableEntry; - var gposTableEntry; - var gsubTableEntry; - var hmtxTableEntry; - var kernTableEntry; - var locaTableEntry; - var nameTableEntry; - var metaTableEntry; - var p; - - for (var i = 0; i < numTables; i += 1) { - var tableEntry = tableEntries[i]; - var table = void 0; - switch (tableEntry.tag) { - case 'cmap': - table = uncompressTable(data, tableEntry); - font.tables.cmap = cmap.parse(table.data, table.offset); - font.encoding = new CmapEncoding(font.tables.cmap); - break; - case 'cvt ': - table = uncompressTable(data, tableEntry); - p = new parse.Parser(table.data, table.offset); - font.tables.cvt = p.parseShortList(tableEntry.length / 2); - break; - case 'fvar': - fvarTableEntry = tableEntry; - break; - case 'fpgm': - table = uncompressTable(data, tableEntry); - p = new parse.Parser(table.data, table.offset); - font.tables.fpgm = p.parseByteList(tableEntry.length); - break; - case 'head': - table = uncompressTable(data, tableEntry); - font.tables.head = head.parse(table.data, table.offset); - font.unitsPerEm = font.tables.head.unitsPerEm; - indexToLocFormat = font.tables.head.indexToLocFormat; - break; - case 'hhea': - table = uncompressTable(data, tableEntry); - font.tables.hhea = hhea.parse(table.data, table.offset); - font.ascender = font.tables.hhea.ascender; - font.descender = font.tables.hhea.descender; - font.numberOfHMetrics = font.tables.hhea.numberOfHMetrics; - break; - case 'hmtx': - hmtxTableEntry = tableEntry; - break; - case 'ltag': - table = uncompressTable(data, tableEntry); - ltagTable = ltag.parse(table.data, table.offset); - break; - case 'maxp': - table = uncompressTable(data, tableEntry); - font.tables.maxp = maxp.parse(table.data, table.offset); - font.numGlyphs = font.tables.maxp.numGlyphs; - break; - case 'name': - nameTableEntry = tableEntry; - break; - case 'OS/2': - table = uncompressTable(data, tableEntry); - font.tables.os2 = os2.parse(table.data, table.offset); - break; - case 'post': - table = uncompressTable(data, tableEntry); - font.tables.post = post.parse(table.data, table.offset); - font.glyphNames = new GlyphNames(font.tables.post); - break; - case 'prep': - table = uncompressTable(data, tableEntry); - p = new parse.Parser(table.data, table.offset); - font.tables.prep = p.parseByteList(tableEntry.length); - break; - case 'glyf': - glyfTableEntry = tableEntry; - break; - case 'loca': - locaTableEntry = tableEntry; - break; - case 'CFF ': - cffTableEntry = tableEntry; - break; - case 'kern': - kernTableEntry = tableEntry; - break; - case 'GPOS': - gposTableEntry = tableEntry; - break; - case 'GSUB': - gsubTableEntry = tableEntry; - break; - case 'meta': - metaTableEntry = tableEntry; - break; - } - } - - var nameTable = uncompressTable(data, nameTableEntry); - font.tables.name = _name.parse(nameTable.data, nameTable.offset, ltagTable); - font.names = font.tables.name; - - if (glyfTableEntry && locaTableEntry) { - var shortVersion = indexToLocFormat === 0; - var locaTable = uncompressTable(data, locaTableEntry); - var locaOffsets = loca.parse( - locaTable.data, - locaTable.offset, - font.numGlyphs, - shortVersion - ); - var glyfTable = uncompressTable(data, glyfTableEntry); - font.glyphs = glyf.parse( - glyfTable.data, - glyfTable.offset, - locaOffsets, - font - ); - } else if (cffTableEntry) { - var cffTable = uncompressTable(data, cffTableEntry); - cff.parse(cffTable.data, cffTable.offset, font); - } else { - throw new Error("Font doesn't contain TrueType or CFF outlines."); - } - - var hmtxTable = uncompressTable(data, hmtxTableEntry); - hmtx.parse( - hmtxTable.data, - hmtxTable.offset, - font.numberOfHMetrics, - font.numGlyphs, - font.glyphs - ); - addGlyphNames(font); - - if (kernTableEntry) { - var kernTable = uncompressTable(data, kernTableEntry); - font.kerningPairs = kern.parse(kernTable.data, kernTable.offset); - } else { - font.kerningPairs = {}; - } - - if (gposTableEntry) { - var gposTable = uncompressTable(data, gposTableEntry); - font.tables.gpos = gpos.parse(gposTable.data, gposTable.offset); - font.position.init(); - } - - if (gsubTableEntry) { - var gsubTable = uncompressTable(data, gsubTableEntry); - font.tables.gsub = gsub.parse(gsubTable.data, gsubTable.offset); - } - - if (fvarTableEntry) { - var fvarTable = uncompressTable(data, fvarTableEntry); - font.tables.fvar = fvar.parse( - fvarTable.data, - fvarTable.offset, - font.names - ); - } - - if (metaTableEntry) { - var metaTable = uncompressTable(data, metaTableEntry); - font.tables.meta = meta.parse(metaTable.data, metaTable.offset); - font.metas = font.tables.meta; - } - - return font; - } - - /** - * Asynchronously load the font from a URL or a filesystem. When done, call the callback - * with two arguments `(err, font)`. The `err` will be null on success, - * the `font` is a Font object. - * We use the node.js callback convention so that - * opentype.js can integrate with frameworks like async.js. - * @alias opentype.load - * @param {string} url - The URL of the font to load. - * @param {Function} callback - The callback. - */ - function load(url, callback) { - var isNode$$1 = typeof window === 'undefined'; - var loadFn = isNode$$1 ? loadFromFile : loadFromUrl; - loadFn(url, function(err, arrayBuffer) { - if (err) { - return callback(err); - } - var font; - try { - font = parseBuffer(arrayBuffer); - } catch (e) { - return callback(e, null); - } - return callback(null, font); - }); - } - - /** - * Synchronously load the font from a URL or file. - * When done, returns the font object or throws an error. - * @alias opentype.loadSync - * @param {string} url - The URL of the font to load. - * @return {opentype.Font} - */ - function loadSync(url) { - var fs = _dereq_('fs'); - var buffer = fs.readFileSync(url); - return parseBuffer(nodeBufferToArrayBuffer(buffer)); - } - - exports.Font = Font; - exports.Glyph = Glyph; - exports.Path = Path; - exports.BoundingBox = BoundingBox; - exports._parse = parse; - exports.parse = parseBuffer; - exports.load = load; - exports.loadSync = loadSync; - - Object.defineProperty(exports, '__esModule', { value: true }); - }); - }.call(this, _dereq_('buffer').Buffer)); - }, - { buffer: 4, fs: 3 } - ], - 11: [ - function(_dereq_, module, exports) { - // shim for using process in browser - var process = (module.exports = {}); - - // cached from whatever global is present so that test runners that stub it - // don't break things. But we need to wrap it in a try catch in case it is - // wrapped in strict mode code which doesn't define any globals. It's inside a - // function because try/catches deoptimize in certain engines. - - var cachedSetTimeout; - var cachedClearTimeout; - - function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); - } - function defaultClearTimeout() { - throw new Error('clearTimeout has not been defined'); - } - (function() { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } - })(); - function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ( - (cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && - setTimeout - ) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch (e) { - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch (e) { - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - } - function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ( - (cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && - clearTimeout - ) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e) { - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e) { - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - } - var queue = []; - var draining = false; - var currentQueue; - var queueIndex = -1; - - function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } - } - - function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while (len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); - } - - process.nextTick = function(fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } - }; - - // v8 likes predictible objects - function Item(fun, array) { - this.fun = fun; - this.array = array; - } - Item.prototype.run = function() { - this.fun.apply(null, this.array); - }; - process.title = 'browser'; - process.browser = true; - process.env = {}; - process.argv = []; - process.version = ''; // empty string to avoid regexp issues - process.versions = {}; - - function noop() {} - - process.on = noop; - process.addListener = noop; - process.once = noop; - process.off = noop; - process.removeListener = noop; - process.removeAllListeners = noop; - process.emit = noop; - process.prependListener = noop; - process.prependOnceListener = noop; - - process.listeners = function(name) { - return []; - }; - - process.binding = function(name) { - throw new Error('process.binding is not supported'); - }; - - process.cwd = function() { - return '/'; - }; - process.chdir = function(dir) { - throw new Error('process.chdir is not supported'); - }; - process.umask = function() { - return 0; - }; - }, - {} - ], - 12: [ - function(_dereq_, module, exports) { - (function(self) { - 'use strict'; - - if (self.fetch) { - return; - } - - var support = { - searchParams: 'URLSearchParams' in self, - iterable: 'Symbol' in self && 'iterator' in Symbol, - blob: - 'FileReader' in self && - 'Blob' in self && - (function() { - try { - new Blob(); - return true; - } catch (e) { - return false; - } - })(), - formData: 'FormData' in self, - arrayBuffer: 'ArrayBuffer' in self - }; - - if (support.arrayBuffer) { - var viewClasses = [ - '[object Int8Array]', - '[object Uint8Array]', - '[object Uint8ClampedArray]', - '[object Int16Array]', - '[object Uint16Array]', - '[object Int32Array]', - '[object Uint32Array]', - '[object Float32Array]', - '[object Float64Array]' - ]; - - var isDataView = function(obj) { - return obj && DataView.prototype.isPrototypeOf(obj); - }; - - var isArrayBufferView = - ArrayBuffer.isView || - function(obj) { - return ( - obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1 - ); - }; - } - - function normalizeName(name) { - if (typeof name !== 'string') { - name = String(name); - } - if (/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(name)) { - throw new TypeError('Invalid character in header field name'); - } - return name.toLowerCase(); - } - - function normalizeValue(value) { - if (typeof value !== 'string') { - value = String(value); - } - return value; - } - - // Build a destructive iterator for the value list - function iteratorFor(items) { - var iterator = { - next: function() { - var value = items.shift(); - return { done: value === undefined, value: value }; - } - }; - - if (support.iterable) { - iterator[Symbol.iterator] = function() { - return iterator; - }; - } - - return iterator; - } - - function Headers(headers) { - this.map = {}; - - if (headers instanceof Headers) { - headers.forEach(function(value, name) { - this.append(name, value); - }, this); - } else if (Array.isArray(headers)) { - headers.forEach(function(header) { - this.append(header[0], header[1]); - }, this); - } else if (headers) { - Object.getOwnPropertyNames(headers).forEach(function(name) { - this.append(name, headers[name]); - }, this); - } - } - - Headers.prototype.append = function(name, value) { - name = normalizeName(name); - value = normalizeValue(value); - var oldValue = this.map[name]; - this.map[name] = oldValue ? oldValue + ',' + value : value; - }; - - Headers.prototype['delete'] = function(name) { - delete this.map[normalizeName(name)]; - }; - - Headers.prototype.get = function(name) { - name = normalizeName(name); - return this.has(name) ? this.map[name] : null; - }; - - Headers.prototype.has = function(name) { - return this.map.hasOwnProperty(normalizeName(name)); - }; - - Headers.prototype.set = function(name, value) { - this.map[normalizeName(name)] = normalizeValue(value); - }; - - Headers.prototype.forEach = function(callback, thisArg) { - for (var name in this.map) { - if (this.map.hasOwnProperty(name)) { - callback.call(thisArg, this.map[name], name, this); - } - } - }; - - Headers.prototype.keys = function() { - var items = []; - this.forEach(function(value, name) { - items.push(name); - }); - return iteratorFor(items); - }; - - Headers.prototype.values = function() { - var items = []; - this.forEach(function(value) { - items.push(value); - }); - return iteratorFor(items); - }; - - Headers.prototype.entries = function() { - var items = []; - this.forEach(function(value, name) { - items.push([name, value]); - }); - return iteratorFor(items); - }; - - if (support.iterable) { - Headers.prototype[Symbol.iterator] = Headers.prototype.entries; - } - - function consumed(body) { - if (body.bodyUsed) { - return Promise.reject(new TypeError('Already read')); - } - body.bodyUsed = true; - } - - function fileReaderReady(reader) { - return new Promise(function(resolve, reject) { - reader.onload = function() { - resolve(reader.result); - }; - reader.onerror = function() { - reject(reader.error); - }; - }); - } - - function readBlobAsArrayBuffer(blob) { - var reader = new FileReader(); - var promise = fileReaderReady(reader); - reader.readAsArrayBuffer(blob); - return promise; - } - - function readBlobAsText(blob) { - var reader = new FileReader(); - var promise = fileReaderReady(reader); - reader.readAsText(blob); - return promise; - } - - function readArrayBufferAsText(buf) { - var view = new Uint8Array(buf); - var chars = new Array(view.length); - - for (var i = 0; i < view.length; i++) { - chars[i] = String.fromCharCode(view[i]); - } - return chars.join(''); - } - - function bufferClone(buf) { - if (buf.slice) { - return buf.slice(0); - } else { - var view = new Uint8Array(buf.byteLength); - view.set(new Uint8Array(buf)); - return view.buffer; - } - } - - function Body() { - this.bodyUsed = false; - - this._initBody = function(body) { - this._bodyInit = body; - if (!body) { - this._bodyText = ''; - } else if (typeof body === 'string') { - this._bodyText = body; - } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { - this._bodyBlob = body; - } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { - this._bodyFormData = body; - } else if ( - support.searchParams && - URLSearchParams.prototype.isPrototypeOf(body) - ) { - this._bodyText = body.toString(); - } else if (support.arrayBuffer && support.blob && isDataView(body)) { - this._bodyArrayBuffer = bufferClone(body.buffer); - // IE 10-11 can't handle a DataView body. - this._bodyInit = new Blob([this._bodyArrayBuffer]); - } else if ( - support.arrayBuffer && - (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body)) - ) { - this._bodyArrayBuffer = bufferClone(body); - } else { - throw new Error('unsupported BodyInit type'); - } - - if (!this.headers.get('content-type')) { - if (typeof body === 'string') { - this.headers.set('content-type', 'text/plain;charset=UTF-8'); - } else if (this._bodyBlob && this._bodyBlob.type) { - this.headers.set('content-type', this._bodyBlob.type); - } else if ( - support.searchParams && - URLSearchParams.prototype.isPrototypeOf(body) - ) { - this.headers.set( - 'content-type', - 'application/x-www-form-urlencoded;charset=UTF-8' - ); - } - } - }; - - if (support.blob) { - this.blob = function() { - var rejected = consumed(this); - if (rejected) { - return rejected; - } - - if (this._bodyBlob) { - return Promise.resolve(this._bodyBlob); - } else if (this._bodyArrayBuffer) { - return Promise.resolve(new Blob([this._bodyArrayBuffer])); - } else if (this._bodyFormData) { - throw new Error('could not read FormData body as blob'); - } else { - return Promise.resolve(new Blob([this._bodyText])); - } - }; - - this.arrayBuffer = function() { - if (this._bodyArrayBuffer) { - return consumed(this) || Promise.resolve(this._bodyArrayBuffer); - } else { - return this.blob().then(readBlobAsArrayBuffer); - } - }; - } - - this.text = function() { - var rejected = consumed(this); - if (rejected) { - return rejected; - } - - if (this._bodyBlob) { - return readBlobAsText(this._bodyBlob); - } else if (this._bodyArrayBuffer) { - return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer)); - } else if (this._bodyFormData) { - throw new Error('could not read FormData body as text'); - } else { - return Promise.resolve(this._bodyText); - } - }; - - if (support.formData) { - this.formData = function() { - return this.text().then(decode); - }; - } - - this.json = function() { - return this.text().then(JSON.parse); - }; - - return this; - } - - // HTTP methods whose capitalization should be normalized - var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; - - function normalizeMethod(method) { - var upcased = method.toUpperCase(); - return methods.indexOf(upcased) > -1 ? upcased : method; - } - - function Request(input, options) { - options = options || {}; - var body = options.body; - - if (input instanceof Request) { - if (input.bodyUsed) { - throw new TypeError('Already read'); - } - this.url = input.url; - this.credentials = input.credentials; - if (!options.headers) { - this.headers = new Headers(input.headers); - } - this.method = input.method; - this.mode = input.mode; - if (!body && input._bodyInit != null) { - body = input._bodyInit; - input.bodyUsed = true; - } - } else { - this.url = String(input); - } - - this.credentials = options.credentials || this.credentials || 'omit'; - if (options.headers || !this.headers) { - this.headers = new Headers(options.headers); - } - this.method = normalizeMethod(options.method || this.method || 'GET'); - this.mode = options.mode || this.mode || null; - this.referrer = null; - - if ((this.method === 'GET' || this.method === 'HEAD') && body) { - throw new TypeError('Body not allowed for GET or HEAD requests'); - } - this._initBody(body); - } - - Request.prototype.clone = function() { - return new Request(this, { body: this._bodyInit }); - }; - - function decode(body) { - var form = new FormData(); - body - .trim() - .split('&') - .forEach(function(bytes) { - if (bytes) { - var split = bytes.split('='); - var name = split.shift().replace(/\+/g, ' '); - var value = split.join('=').replace(/\+/g, ' '); - form.append(decodeURIComponent(name), decodeURIComponent(value)); - } - }); - return form; - } - - function parseHeaders(rawHeaders) { - var headers = new Headers(); - // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space - // https://tools.ietf.org/html/rfc7230#section-3.2 - var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' '); - preProcessedHeaders.split(/\r?\n/).forEach(function(line) { - var parts = line.split(':'); - var key = parts.shift().trim(); - if (key) { - var value = parts.join(':').trim(); - headers.append(key, value); - } - }); - return headers; - } - - Body.call(Request.prototype); - - function Response(bodyInit, options) { - if (!options) { - options = {}; - } - - this.type = 'default'; - this.status = options.status === undefined ? 200 : options.status; - this.ok = this.status >= 200 && this.status < 300; - this.statusText = 'statusText' in options ? options.statusText : 'OK'; - this.headers = new Headers(options.headers); - this.url = options.url || ''; - this._initBody(bodyInit); - } - - Body.call(Response.prototype); - - Response.prototype.clone = function() { - return new Response(this._bodyInit, { - status: this.status, - statusText: this.statusText, - headers: new Headers(this.headers), - url: this.url - }); - }; - - Response.error = function() { - var response = new Response(null, { status: 0, statusText: '' }); - response.type = 'error'; - return response; - }; - - var redirectStatuses = [301, 302, 303, 307, 308]; - - Response.redirect = function(url, status) { - if (redirectStatuses.indexOf(status) === -1) { - throw new RangeError('Invalid status code'); - } - - return new Response(null, { status: status, headers: { location: url } }); - }; - - self.Headers = Headers; - self.Request = Request; - self.Response = Response; - - self.fetch = function(input, init) { - return new Promise(function(resolve, reject) { - var request = new Request(input, init); - var xhr = new XMLHttpRequest(); - - xhr.onload = function() { - var options = { - status: xhr.status, - statusText: xhr.statusText, - headers: parseHeaders(xhr.getAllResponseHeaders() || '') - }; - options.url = - 'responseURL' in xhr - ? xhr.responseURL - : options.headers.get('X-Request-URL'); - var body = 'response' in xhr ? xhr.response : xhr.responseText; - resolve(new Response(body, options)); - }; - - xhr.onerror = function() { - reject(new TypeError('Network request failed')); - }; - - xhr.ontimeout = function() { - reject(new TypeError('Network request failed')); - }; - - xhr.open(request.method, request.url, true); - - if (request.credentials === 'include') { - xhr.withCredentials = true; - } else if (request.credentials === 'omit') { - xhr.withCredentials = false; - } - - if ('responseType' in xhr && support.blob) { - xhr.responseType = 'blob'; - } - - request.headers.forEach(function(value, name) { - xhr.setRequestHeader(name, value); - }); - - xhr.send( - typeof request._bodyInit === 'undefined' ? null : request._bodyInit - ); - }); - }; - self.fetch.polyfill = true; - })(typeof self !== 'undefined' ? self : this); - }, - {} - ], - 13: [ - function(_dereq_, module, exports) { - 'use strict'; - - // core - var p5 = _dereq_('./core/main'); - _dereq_('./core/constants'); - _dereq_('./core/environment'); - _dereq_('./core/error_helpers'); - _dereq_('./core/helpers'); - _dereq_('./core/legacy'); - _dereq_('./core/p5.Element'); - _dereq_('./core/p5.Graphics'); - _dereq_('./core/p5.Renderer'); - _dereq_('./core/p5.Renderer2D'); - _dereq_('./core/rendering'); - _dereq_('./core/shim'); - _dereq_('./core/structure'); - _dereq_('./core/transform'); - _dereq_('./core/shape/2d_primitives'); - _dereq_('./core/shape/attributes'); - _dereq_('./core/shape/curves'); - _dereq_('./core/shape/vertex'); - - // color - _dereq_('./color/color_conversion'); - _dereq_('./color/creating_reading'); - _dereq_('./color/p5.Color'); - _dereq_('./color/setting'); - - // data - _dereq_('./data/p5.TypedDict'); - _dereq_('./data/local_storage.js'); - - // events - _dereq_('./events/acceleration'); - _dereq_('./events/keyboard'); - _dereq_('./events/mouse'); - _dereq_('./events/touch'); - - // image - _dereq_('./image/filters'); - _dereq_('./image/image'); - _dereq_('./image/loading_displaying'); - _dereq_('./image/p5.Image'); - _dereq_('./image/pixels'); - - // io - _dereq_('./io/files'); - _dereq_('./io/p5.Table'); - _dereq_('./io/p5.TableRow'); - _dereq_('./io/p5.XML'); - - // math - _dereq_('./math/calculation'); - _dereq_('./math/math'); - _dereq_('./math/noise'); - _dereq_('./math/p5.Vector'); - _dereq_('./math/random'); - _dereq_('./math/trigonometry'); - - // typography - _dereq_('./typography/attributes'); - _dereq_('./typography/loading_displaying'); - _dereq_('./typography/p5.Font'); - - // utilities - _dereq_('./utilities/array_functions'); - _dereq_('./utilities/conversion'); - _dereq_('./utilities/string_functions'); - _dereq_('./utilities/time_date'); - - // webgl - _dereq_('./webgl/3d_primitives'); - _dereq_('./webgl/interaction'); - _dereq_('./webgl/light'); - _dereq_('./webgl/loading'); - _dereq_('./webgl/material'); - _dereq_('./webgl/p5.Camera'); - _dereq_('./webgl/p5.Geometry'); - _dereq_('./webgl/p5.Matrix'); - _dereq_('./webgl/p5.RendererGL.Immediate'); - _dereq_('./webgl/p5.RendererGL'); - _dereq_('./webgl/p5.RendererGL.Retained'); - _dereq_('./webgl/p5.Shader'); - _dereq_('./webgl/p5.Texture'); - _dereq_('./webgl/text'); - - _dereq_('./core/init'); - - module.exports = p5; - }, - { - './color/color_conversion': 14, - './color/creating_reading': 15, - './color/p5.Color': 16, - './color/setting': 17, - './core/constants': 18, - './core/environment': 19, - './core/error_helpers': 20, - './core/helpers': 21, - './core/init': 22, - './core/legacy': 23, - './core/main': 24, - './core/p5.Element': 25, - './core/p5.Graphics': 26, - './core/p5.Renderer': 27, - './core/p5.Renderer2D': 28, - './core/rendering': 29, - './core/shape/2d_primitives': 30, - './core/shape/attributes': 31, - './core/shape/curves': 32, - './core/shape/vertex': 33, - './core/shim': 34, - './core/structure': 35, - './core/transform': 36, - './data/local_storage.js': 37, - './data/p5.TypedDict': 38, - './events/acceleration': 39, - './events/keyboard': 40, - './events/mouse': 41, - './events/touch': 42, - './image/filters': 43, - './image/image': 44, - './image/loading_displaying': 45, - './image/p5.Image': 46, - './image/pixels': 47, - './io/files': 48, - './io/p5.Table': 49, - './io/p5.TableRow': 50, - './io/p5.XML': 51, - './math/calculation': 52, - './math/math': 53, - './math/noise': 54, - './math/p5.Vector': 55, - './math/random': 56, - './math/trigonometry': 57, - './typography/attributes': 58, - './typography/loading_displaying': 59, - './typography/p5.Font': 60, - './utilities/array_functions': 61, - './utilities/conversion': 62, - './utilities/string_functions': 63, - './utilities/time_date': 64, - './webgl/3d_primitives': 65, - './webgl/interaction': 66, - './webgl/light': 67, - './webgl/loading': 68, - './webgl/material': 69, - './webgl/p5.Camera': 70, - './webgl/p5.Geometry': 71, - './webgl/p5.Matrix': 72, - './webgl/p5.RendererGL': 75, - './webgl/p5.RendererGL.Immediate': 73, - './webgl/p5.RendererGL.Retained': 74, - './webgl/p5.Shader': 76, - './webgl/p5.Texture': 77, - './webgl/text': 78 - } - ], - 14: [ - function(_dereq_, module, exports) { - /** - * @module Color - * @submodule Color Conversion - * @for p5 - * @requires core - */ - - 'use strict'; - - /** - * Conversions adapted from . - * - * In these functions, hue is always in the range [0, 1], just like all other - * components are in the range [0, 1]. 'Brightness' and 'value' are used - * interchangeably. - */ - - var p5 = _dereq_('../core/main'); - p5.ColorConversion = {}; - - /** - * Convert an HSBA array to HSLA. - */ - p5.ColorConversion._hsbaToHSLA = function(hsba) { - var hue = hsba[0]; - var sat = hsba[1]; - var val = hsba[2]; - - // Calculate lightness. - var li = (2 - sat) * val / 2; - - // Convert saturation. - if (li !== 0) { - if (li === 1) { - sat = 0; - } else if (li < 0.5) { - sat = sat / (2 - sat); - } else { - sat = sat * val / (2 - li * 2); - } - } - - // Hue and alpha stay the same. - return [hue, sat, li, hsba[3]]; - }; - - /** - * Convert an HSBA array to RGBA. - */ - p5.ColorConversion._hsbaToRGBA = function(hsba) { - var hue = hsba[0] * 6; // We will split hue into 6 sectors. - var sat = hsba[1]; - var val = hsba[2]; - - var RGBA = []; - - if (sat === 0) { - RGBA = [val, val, val, hsba[3]]; // Return early if grayscale. - } else { - var sector = Math.floor(hue); - var tint1 = val * (1 - sat); - var tint2 = val * (1 - sat * (hue - sector)); - var tint3 = val * (1 - sat * (1 + sector - hue)); - var red, green, blue; - if (sector === 1) { - // Yellow to green. - red = tint2; - green = val; - blue = tint1; - } else if (sector === 2) { - // Green to cyan. - red = tint1; - green = val; - blue = tint3; - } else if (sector === 3) { - // Cyan to blue. - red = tint1; - green = tint2; - blue = val; - } else if (sector === 4) { - // Blue to magenta. - red = tint3; - green = tint1; - blue = val; - } else if (sector === 5) { - // Magenta to red. - red = val; - green = tint1; - blue = tint2; - } else { - // Red to yellow (sector could be 0 or 6). - red = val; - green = tint3; - blue = tint1; - } - RGBA = [red, green, blue, hsba[3]]; - } - - return RGBA; - }; - - /** - * Convert an HSLA array to HSBA. - */ - p5.ColorConversion._hslaToHSBA = function(hsla) { - var hue = hsla[0]; - var sat = hsla[1]; - var li = hsla[2]; - - // Calculate brightness. - var val; - if (li < 0.5) { - val = (1 + sat) * li; - } else { - val = li + sat - li * sat; - } - - // Convert saturation. - sat = 2 * (val - li) / val; - - // Hue and alpha stay the same. - return [hue, sat, val, hsla[3]]; - }; - - /** - * Convert an HSLA array to RGBA. - * - * We need to change basis from HSLA to something that can be more easily be - * projected onto RGBA. We will choose hue and brightness as our first two - * components, and pick a convenient third one ('zest') so that we don't need - * to calculate formal HSBA saturation. - */ - p5.ColorConversion._hslaToRGBA = function(hsla) { - var hue = hsla[0] * 6; // We will split hue into 6 sectors. - var sat = hsla[1]; - var li = hsla[2]; - - var RGBA = []; - - if (sat === 0) { - RGBA = [li, li, li, hsla[3]]; // Return early if grayscale. - } else { - // Calculate brightness. - var val; - if (li < 0.5) { - val = (1 + sat) * li; - } else { - val = li + sat - li * sat; - } - - // Define zest. - var zest = 2 * li - val; - - // Implement projection (project onto green by default). - var hzvToRGB = function hzvToRGB(hue, zest, val) { - if (hue < 0) { - // Hue must wrap to allow projection onto red and blue. - hue += 6; - } else if (hue >= 6) { - hue -= 6; - } - if (hue < 1) { - // Red to yellow (increasing green). - return zest + (val - zest) * hue; - } else if (hue < 3) { - // Yellow to cyan (greatest green). - return val; - } else if (hue < 4) { - // Cyan to blue (decreasing green). - return zest + (val - zest) * (4 - hue); - } else { - // Blue to red (least green). - return zest; - } - }; - - // Perform projections, offsetting hue as necessary. - RGBA = [ - hzvToRGB(hue + 2, zest, val), - hzvToRGB(hue, zest, val), - hzvToRGB(hue - 2, zest, val), - hsla[3] - ]; - } - - return RGBA; - }; - - /** - * Convert an RGBA array to HSBA. - */ - p5.ColorConversion._rgbaToHSBA = function(rgba) { - var red = rgba[0]; - var green = rgba[1]; - var blue = rgba[2]; - - var val = Math.max(red, green, blue); - var chroma = val - Math.min(red, green, blue); - - var hue, sat; - if (chroma === 0) { - // Return early if grayscale. - hue = 0; - sat = 0; - } else { - sat = chroma / val; - if (red === val) { - // Magenta to yellow. - hue = (green - blue) / chroma; - } else if (green === val) { - // Yellow to cyan. - hue = 2 + (blue - red) / chroma; - } else if (blue === val) { - // Cyan to magenta. - hue = 4 + (red - green) / chroma; - } - if (hue < 0) { - // Confine hue to the interval [0, 1). - hue += 6; - } else if (hue >= 6) { - hue -= 6; - } - } - - return [hue / 6, sat, val, rgba[3]]; - }; - - /** - * Convert an RGBA array to HSLA. - */ - p5.ColorConversion._rgbaToHSLA = function(rgba) { - var red = rgba[0]; - var green = rgba[1]; - var blue = rgba[2]; - - var val = Math.max(red, green, blue); - var min = Math.min(red, green, blue); - var li = val + min; // We will halve this later. - var chroma = val - min; - - var hue, sat; - if (chroma === 0) { - // Return early if grayscale. - hue = 0; - sat = 0; - } else { - if (li < 1) { - sat = chroma / li; - } else { - sat = chroma / (2 - li); - } - if (red === val) { - // Magenta to yellow. - hue = (green - blue) / chroma; - } else if (green === val) { - // Yellow to cyan. - hue = 2 + (blue - red) / chroma; - } else if (blue === val) { - // Cyan to magenta. - hue = 4 + (red - green) / chroma; - } - if (hue < 0) { - // Confine hue to the interval [0, 1). - hue += 6; - } else if (hue >= 6) { - hue -= 6; - } - } - - return [hue / 6, sat, li / 2, rgba[3]]; - }; - - module.exports = p5.ColorConversion; - }, - { '../core/main': 24 } - ], - 15: [ - function(_dereq_, module, exports) { - /** - * @module Color - * @submodule Creating & Reading - * @for p5 - * @requires core - * @requires constants - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - var constants = _dereq_('../core/constants'); - _dereq_('./p5.Color'); - _dereq_('../core/error_helpers'); - - /** - * Extracts the alpha value from a color or pixel array. - * - * @method alpha - * @param {p5.Color|Number[]|String} color p5.Color object, color components, - * or CSS color - * @return {Number} the alpha value - * @example - *
- * - * noStroke(); - * let c = color(0, 126, 255, 102); - * fill(c); - * rect(15, 15, 35, 70); - * let value = alpha(c); // Sets 'value' to 102 - * fill(value); - * rect(50, 15, 35, 70); - * - *
- * - * @alt - * Left half of canvas light blue and right half light charcoal grey. - * Left half of canvas light purple and right half a royal blue. - * Left half of canvas salmon pink and the right half white. - * Yellow rect in middle right of canvas, with 55 pixel width and height. - * Yellow ellipse in top left canvas, black ellipse in bottom right,both 80x80. - * Bright fuchsia rect in middle of canvas, 60 pixel width and height. - * Two bright green rects on opposite sides of the canvas, both 45x80. - * Four blue rects in each corner of the canvas, each are 35x35. - * Bright sea green rect on left and darker rect on right of canvas, both 45x80. - * Dark green rect on left and light green rect on right of canvas, both 45x80. - * Dark blue rect on left and light teal rect on right of canvas, both 45x80. - * blue rect on left and green on right, both with black outlines & 35x60. - * salmon pink rect on left and black on right, both 35x60. - * 4 rects, tan, brown, brownish purple and purple, with white outlines & 20x60. - * light pastel green rect on left and dark grey rect on right, both 35x60. - * yellow rect on left and red rect on right, both with black outlines & 35x60. - * grey canvas - * deep pink rect on left and grey rect on right, both 35x60. - */ - p5.prototype.alpha = function(c) { - p5._validateParameters('alpha', arguments); - return this.color(c)._getAlpha(); - }; - - /** - * Extracts the blue value from a color or pixel array. - * - * @method blue - * @param {p5.Color|Number[]|String} color p5.Color object, color components, - * or CSS color - * @return {Number} the blue value - * @example - *
- * - * let c = color(175, 100, 220); // Define color 'c' - * fill(c); // Use color variable 'c' as fill color - * rect(15, 20, 35, 60); // Draw left rectangle - * - * let blueValue = blue(c); // Get blue in 'c' - * print(blueValue); // Prints "220.0" - * fill(0, 0, blueValue); // Use 'blueValue' in new fill - * rect(50, 20, 35, 60); // Draw right rectangle - * - *
- * - * @alt - * Left half of canvas light purple and right half a royal blue. - * - */ - p5.prototype.blue = function(c) { - p5._validateParameters('blue', arguments); - return this.color(c)._getBlue(); - }; - - /** - * Extracts the HSB brightness value from a color or pixel array. - * - * @method brightness - * @param {p5.Color|Number[]|String} color p5.Color object, color components, - * or CSS color - * @return {Number} the brightness value - * @example - *
- * - * noStroke(); - * colorMode(HSB, 255); - * let c = color(0, 126, 255); - * fill(c); - * rect(15, 20, 35, 60); - * let value = brightness(c); // Sets 'value' to 255 - * fill(value); - * rect(50, 20, 35, 60); - * - *
- *
- * - * noStroke(); - * colorMode(HSB, 255); - * let c = color('hsb(60, 100%, 50%)'); - * fill(c); - * rect(15, 20, 35, 60); - * let value = brightness(c); // A 'value' of 50% is 127.5 - * fill(value); - * rect(50, 20, 35, 60); - * - *
- * - * @alt - * Left half of canvas salmon pink and the right half white. - * Left half of canvas yellow at half brightness and the right gray . - * - */ - p5.prototype.brightness = function(c) { - p5._validateParameters('brightness', arguments); - return this.color(c)._getBrightness(); - }; - - /** - * Creates colors for storing in variables of the color datatype. The - * parameters are interpreted as RGB or HSB values depending on the - * current colorMode(). The default mode is RGB values from 0 to 255 - * and, therefore, the function call color(255, 204, 0) will return a - * bright yellow color. - *

- * Note that if only one value is provided to color(), it will be interpreted - * as a grayscale value. Add a second value, and it will be used for alpha - * transparency. When three values are specified, they are interpreted as - * either RGB or HSB values. Adding a fourth value applies alpha - * transparency. - *

- * If a single string argument is provided, RGB, RGBA and Hex CSS color - * strings and all named color strings are supported. In this case, an alpha - * number value as a second argument is not supported, the RGBA form should be - * used. - * - * @method color - * @param {Number} gray number specifying value between white - * and black. - * @param {Number} [alpha] alpha value relative to current color range - * (default is 0-255) - * @return {p5.Color} resulting color - * - * @example - *
- * - * let c = color(255, 204, 0); // Define color 'c' - * fill(c); // Use color variable 'c' as fill color - * noStroke(); // Don't draw a stroke around shapes - * rect(30, 20, 55, 55); // Draw rectangle - * - *
- * - *
- * - * let c = color(255, 204, 0); // Define color 'c' - * fill(c); // Use color variable 'c' as fill color - * noStroke(); // Don't draw a stroke around shapes - * ellipse(25, 25, 80, 80); // Draw left circle - * - * // Using only one value with color() - * // generates a grayscale value. - * c = color(65); // Update 'c' with grayscale value - * fill(c); // Use updated 'c' as fill color - * ellipse(75, 75, 80, 80); // Draw right circle - * - *
- * - *
- * - * // Named SVG & CSS colors may be used, - * let c = color('magenta'); - * fill(c); // Use 'c' as fill color - * noStroke(); // Don't draw a stroke around shapes - * rect(20, 20, 60, 60); // Draw rectangle - * - *
- * - *
- * - * // as can hex color codes: - * noStroke(); // Don't draw a stroke around shapes - * let c = color('#0f0'); - * fill(c); // Use 'c' as fill color - * rect(0, 10, 45, 80); // Draw rectangle - * - * c = color('#00ff00'); - * fill(c); // Use updated 'c' as fill color - * rect(55, 10, 45, 80); // Draw rectangle - * - *
- * - *
- * - * // RGB and RGBA color strings are also supported: - * // these all set to the same color (solid blue) - * let c; - * noStroke(); // Don't draw a stroke around shapes - * c = color('rgb(0,0,255)'); - * fill(c); // Use 'c' as fill color - * rect(10, 10, 35, 35); // Draw rectangle - * - * c = color('rgb(0%, 0%, 100%)'); - * fill(c); // Use updated 'c' as fill color - * rect(55, 10, 35, 35); // Draw rectangle - * - * c = color('rgba(0, 0, 255, 1)'); - * fill(c); // Use updated 'c' as fill color - * rect(10, 55, 35, 35); // Draw rectangle - * - * c = color('rgba(0%, 0%, 100%, 1)'); - * fill(c); // Use updated 'c' as fill color - * rect(55, 55, 35, 35); // Draw rectangle - * - *
- * - *
- * - * // HSL color is also supported and can be specified - * // by value - * let c; - * noStroke(); // Don't draw a stroke around shapes - * c = color('hsl(160, 100%, 50%)'); - * fill(c); // Use 'c' as fill color - * rect(0, 10, 45, 80); // Draw rectangle - * - * c = color('hsla(160, 100%, 50%, 0.5)'); - * fill(c); // Use updated 'c' as fill color - * rect(55, 10, 45, 80); // Draw rectangle - * - *
- * - *
- * - * // HSB color is also supported and can be specified - * // by value - * let c; - * noStroke(); // Don't draw a stroke around shapes - * c = color('hsb(160, 100%, 50%)'); - * fill(c); // Use 'c' as fill color - * rect(0, 10, 45, 80); // Draw rectangle - * - * c = color('hsba(160, 100%, 50%, 0.5)'); - * fill(c); // Use updated 'c' as fill color - * rect(55, 10, 45, 80); // Draw rectangle - * - *
- * - *
- * - * let c; // Declare color 'c' - * noStroke(); // Don't draw a stroke around shapes - * - * // If no colorMode is specified, then the - * // default of RGB with scale of 0-255 is used. - * c = color(50, 55, 100); // Create a color for 'c' - * fill(c); // Use color variable 'c' as fill color - * rect(0, 10, 45, 80); // Draw left rect - * - * colorMode(HSB, 100); // Use HSB with scale of 0-100 - * c = color(50, 55, 100); // Update 'c' with new color - * fill(c); // Use updated 'c' as fill color - * rect(55, 10, 45, 80); // Draw right rect - * - *
- * - * @alt - * Yellow rect in middle right of canvas, with 55 pixel width and height. - * Yellow ellipse in top left of canvas, black ellipse in bottom right,both 80x80. - * Bright fuchsia rect in middle of canvas, 60 pixel width and height. - * Two bright green rects on opposite sides of the canvas, both 45x80. - * Four blue rects in each corner of the canvas, each are 35x35. - * Bright sea green rect on left and darker rect on right of canvas, both 45x80. - * Dark green rect on left and lighter green rect on right of canvas, both 45x80. - * Dark blue rect on left and light teal rect on right of canvas, both 45x80. - * - */ - /** - * @method color - * @param {Number} v1 red or hue value relative to - * the current color range - * @param {Number} v2 green or saturation value - * relative to the current color range - * @param {Number} v3 blue or brightness value - * relative to the current color range - * @param {Number} [alpha] - * @return {p5.Color} - */ - - /** - * @method color - * @param {String} value a color string - * @return {p5.Color} - */ - /** - * @method color - * @param {Number[]} values an array containing the red,green,blue & - * and alpha components of the color - * @return {p5.Color} - */ - /** - * @method color - * @param {p5.Color} color - * @return {p5.Color} - */ - - p5.prototype.color = function() { - p5._validateParameters('color', arguments); - if (arguments[0] instanceof p5.Color) { - return arguments[0]; // Do nothing if argument is already a color object. - } - - var args = arguments[0] instanceof Array ? arguments[0] : arguments; - return new p5.Color(this, args); - }; - - /** - * Extracts the green value from a color or pixel array. - * - * @method green - * @param {p5.Color|Number[]|String} color p5.Color object, color components, - * or CSS color - * @return {Number} the green value - * @example - *
- * - * let c = color(20, 75, 200); // Define color 'c' - * fill(c); // Use color variable 'c' as fill color - * rect(15, 20, 35, 60); // Draw left rectangle - * - * let greenValue = green(c); // Get green in 'c' - * print(greenValue); // Print "75.0" - * fill(0, greenValue, 0); // Use 'greenValue' in new fill - * rect(50, 20, 35, 60); // Draw right rectangle - * - *
- * - * @alt - * blue rect on left and green on right, both with black outlines & 35x60. - * - */ - - p5.prototype.green = function(c) { - p5._validateParameters('green', arguments); - return this.color(c)._getGreen(); - }; - - /** - * Extracts the hue value from a color or pixel array. - * - * Hue exists in both HSB and HSL. This function will return the - * HSB-normalized hue when supplied with an HSB color object (or when supplied - * with a pixel array while the color mode is HSB), but will default to the - * HSL-normalized hue otherwise. (The values will only be different if the - * maximum hue setting for each system is different.) - * - * @method hue - * @param {p5.Color|Number[]|String} color p5.Color object, color components, - * or CSS color - * @return {Number} the hue - * @example - *
- * - * noStroke(); - * colorMode(HSB, 255); - * let c = color(0, 126, 255); - * fill(c); - * rect(15, 20, 35, 60); - * let value = hue(c); // Sets 'value' to "0" - * fill(value); - * rect(50, 20, 35, 60); - * - *
- * - * @alt - * salmon pink rect on left and black on right, both 35x60. - * - */ - - p5.prototype.hue = function(c) { - p5._validateParameters('hue', arguments); - return this.color(c)._getHue(); - }; - - /** - * Blends two colors to find a third color somewhere between them. The amt - * parameter is the amount to interpolate between the two values where 0.0 - * equal to the first color, 0.1 is very near the first color, 0.5 is halfway - * in between, etc. An amount below 0 will be treated as 0. Likewise, amounts - * above 1 will be capped at 1. This is different from the behavior of lerp(), - * but necessary because otherwise numbers outside the range will produce - * strange and unexpected colors. - *

- * The way that colours are interpolated depends on the current color mode. - * - * @method lerpColor - * @param {p5.Color} c1 interpolate from this color - * @param {p5.Color} c2 interpolate to this color - * @param {Number} amt number between 0 and 1 - * @return {p5.Color} interpolated color - * @example - *
- * - * colorMode(RGB); - * stroke(255); - * background(51); - * let from = color(218, 165, 32); - * let to = color(72, 61, 139); - * colorMode(RGB); // Try changing to HSB. - * let interA = lerpColor(from, to, 0.33); - * let interB = lerpColor(from, to, 0.66); - * fill(from); - * rect(10, 20, 20, 60); - * fill(interA); - * rect(30, 20, 20, 60); - * fill(interB); - * rect(50, 20, 20, 60); - * fill(to); - * rect(70, 20, 20, 60); - * - *
- * - * @alt - * 4 rects one tan, brown, brownish purple, purple, with white outlines & 20x60 - * - */ - - p5.prototype.lerpColor = function(c1, c2, amt) { - p5._validateParameters('lerpColor', arguments); - var mode = this._colorMode; - var maxes = this._colorMaxes; - var l0, l1, l2, l3; - var fromArray, toArray; - - if (mode === constants.RGB) { - fromArray = c1.levels.map(function(level) { - return level / 255; - }); - toArray = c2.levels.map(function(level) { - return level / 255; - }); - } else if (mode === constants.HSB) { - c1._getBrightness(); // Cache hsba so it definitely exists. - c2._getBrightness(); - fromArray = c1.hsba; - toArray = c2.hsba; - } else if (mode === constants.HSL) { - c1._getLightness(); // Cache hsla so it definitely exists. - c2._getLightness(); - fromArray = c1.hsla; - toArray = c2.hsla; - } else { - throw new Error(mode + 'cannot be used for interpolation.'); - } - - // Prevent extrapolation. - amt = Math.max(Math.min(amt, 1), 0); - - // Define lerp here itself if user isn't using math module. - // Maintains the definition as found in math/calculation.js - if (typeof this.lerp === 'undefined') { - this.lerp = function(start, stop, amt) { - return amt * (stop - start) + start; - }; - } - - // Perform interpolation. - l0 = this.lerp(fromArray[0], toArray[0], amt); - l1 = this.lerp(fromArray[1], toArray[1], amt); - l2 = this.lerp(fromArray[2], toArray[2], amt); - l3 = this.lerp(fromArray[3], toArray[3], amt); - - // Scale components. - l0 *= maxes[mode][0]; - l1 *= maxes[mode][1]; - l2 *= maxes[mode][2]; - l3 *= maxes[mode][3]; - - return this.color(l0, l1, l2, l3); - }; - - /** - * Extracts the HSL lightness value from a color or pixel array. - * - * @method lightness - * @param {p5.Color|Number[]|String} color p5.Color object, color components, - * or CSS color - * @return {Number} the lightness - * @example - *
- * - * noStroke(); - * colorMode(HSL); - * let c = color(156, 100, 50, 1); - * fill(c); - * rect(15, 20, 35, 60); - * let value = lightness(c); // Sets 'value' to 50 - * fill(value); - * rect(50, 20, 35, 60); - * - *
- * - * @alt - * light pastel green rect on left and dark grey rect on right, both 35x60. - * - */ - p5.prototype.lightness = function(c) { - p5._validateParameters('lightness', arguments); - return this.color(c)._getLightness(); - }; - - /** - * Extracts the red value from a color or pixel array. - * - * @method red - * @param {p5.Color|Number[]|String} color p5.Color object, color components, - * or CSS color - * @return {Number} the red value - * @example - *
- * - * let c = color(255, 204, 0); // Define color 'c' - * fill(c); // Use color variable 'c' as fill color - * rect(15, 20, 35, 60); // Draw left rectangle - * - * let redValue = red(c); // Get red in 'c' - * print(redValue); // Print "255.0" - * fill(redValue, 0, 0); // Use 'redValue' in new fill - * rect(50, 20, 35, 60); // Draw right rectangle - * - *
- * - *
- * - * colorMode(RGB, 255); // Sets the range for red, green, and blue to 255 - * let c = color(127, 255, 0); - * colorMode(RGB, 1); // Sets the range for red, green, and blue to 1 - * let myColor = red(c); - * print(myColor); // 0.4980392156862745 - * - *
- * - * @alt - * yellow rect on left and red rect on right, both with black outlines and 35x60. - * grey canvas - */ - p5.prototype.red = function(c) { - p5._validateParameters('red', arguments); - return this.color(c)._getRed(); - }; - - /** - * Extracts the saturation value from a color or pixel array. - * - * Saturation is scaled differently in HSB and HSL. This function will return - * the HSB saturation when supplied with an HSB color object (or when supplied - * with a pixel array while the color mode is HSB), but will default to the - * HSL saturation otherwise. - * - * @method saturation - * @param {p5.Color|Number[]|String} color p5.Color object, color components, - * or CSS color - * @return {Number} the saturation value - * @example - *
- * - * noStroke(); - * colorMode(HSB, 255); - * let c = color(0, 126, 255); - * fill(c); - * rect(15, 20, 35, 60); - * let value = saturation(c); // Sets 'value' to 126 - * fill(value); - * rect(50, 20, 35, 60); - * - *
- * - * @alt - *deep pink rect on left and grey rect on right, both 35x60. - * - */ - - p5.prototype.saturation = function(c) { - p5._validateParameters('saturation', arguments); - return this.color(c)._getSaturation(); - }; - - module.exports = p5; - }, - { - '../core/constants': 18, - '../core/error_helpers': 20, - '../core/main': 24, - './p5.Color': 16 - } - ], - 16: [ - function(_dereq_, module, exports) { - /** - * @module Color - * @submodule Creating & Reading - * @for p5 - * @requires core - * @requires constants - * @requires color_conversion - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - var constants = _dereq_('../core/constants'); - var color_conversion = _dereq_('./color_conversion'); - - /** - * Each color stores the color mode and level maxes that applied at the - * time of its construction. These are used to interpret the input arguments - * (at construction and later for that instance of color) and to format the - * output e.g. when saturation() is requested. - * - * Internally we store an array representing the ideal RGBA values in floating - * point form, normalized from 0 to 1. From this we calculate the closest - * screen color (RGBA levels from 0 to 255) and expose this to the renderer. - * - * We also cache normalized, floating point components of the color in various - * representations as they are calculated. This is done to prevent repeating a - * conversion that has already been performed. - * - * @class p5.Color - */ - p5.Color = function(pInst, vals) { - // Record color mode and maxes at time of construction. - this._storeModeAndMaxes(pInst._colorMode, pInst._colorMaxes); - - // Calculate normalized RGBA values. - if ( - this.mode !== constants.RGB && - this.mode !== constants.HSL && - this.mode !== constants.HSB - ) { - throw new Error(this.mode + ' is an invalid colorMode.'); - } else { - this._array = p5.Color._parseInputs.apply(this, vals); - } - - // Expose closest screen color. - this._calculateLevels(); - return this; - }; - - /** - * This function returns the color formatted as a string. This can be useful - * for debugging, or for using p5.js with other libraries. - * @method toString - * @param {String} [format] How the color string will be formatted. - * Leaving this empty formats the string as rgba(r, g, b, a). - * '#rgb' '#rgba' '#rrggbb' and '#rrggbbaa' format as hexadecimal color codes. - * 'rgb' 'hsb' and 'hsl' return the color formatted in the specified color mode. - * 'rgba' 'hsba' and 'hsla' are the same as above but with alpha channels. - * 'rgb%' 'hsb%' 'hsl%' 'rgba%' 'hsba%' and 'hsla%' format as percentages. - * @return {String} the formatted string - * @example - *
- * - * let myColor; - * function setup() { - * createCanvas(200, 200); - * stroke(255); - * myColor = color(100, 100, 250); - * fill(myColor); - * } - * - * function draw() { - * rotate(HALF_PI); - * text(myColor.toString(), 0, -5); - * text(myColor.toString('#rrggbb'), 0, -30); - * text(myColor.toString('rgba%'), 0, -55); - * } - * - *
- * - * @alt - * canvas with text representation of color - */ - p5.Color.prototype.toString = function(format) { - var a = this.levels; - var f = this._array; - var alpha = f[3]; // String representation uses normalized alpha - - switch (format) { - case '#rrggbb': - return '#'.concat( - a[0] < 16 ? '0'.concat(a[0].toString(16)) : a[0].toString(16), - a[1] < 16 ? '0'.concat(a[1].toString(16)) : a[1].toString(16), - a[2] < 16 ? '0'.concat(a[2].toString(16)) : a[2].toString(16) - ); - - case '#rrggbbaa': - return '#'.concat( - a[0] < 16 ? '0'.concat(a[0].toString(16)) : a[0].toString(16), - a[1] < 16 ? '0'.concat(a[1].toString(16)) : a[1].toString(16), - a[2] < 16 ? '0'.concat(a[2].toString(16)) : a[2].toString(16), - a[3] < 16 ? '0'.concat(a[2].toString(16)) : a[3].toString(16) - ); - - case '#rgb': - return '#'.concat( - Math.round(f[0] * 15).toString(16), - Math.round(f[1] * 15).toString(16), - Math.round(f[2] * 15).toString(16) - ); - - case '#rgba': - return '#'.concat( - Math.round(f[0] * 15).toString(16), - Math.round(f[1] * 15).toString(16), - Math.round(f[2] * 15).toString(16), - Math.round(f[3] * 15).toString(16) - ); - - case 'rgb': - return 'rgb('.concat(a[0], ', ', a[1], ', ', a[2], ')'); - - case 'rgb%': - return 'rgb('.concat( - (100 * f[0]).toPrecision(3), - '%, ', - (100 * f[1]).toPrecision(3), - '%, ', - (100 * f[2]).toPrecision(3), - '%)' - ); - - case 'rgba%': - return 'rgba('.concat( - (100 * f[0]).toPrecision(3), - '%, ', - (100 * f[1]).toPrecision(3), - '%, ', - (100 * f[2]).toPrecision(3), - '%, ', - (100 * f[3]).toPrecision(3), - '%)' - ); - - case 'hsb': - case 'hsv': - if (!this.hsba) this.hsba = color_conversion._rgbaToHSBA(this._array); - return 'hsb('.concat( - this.hsba[0] * this.maxes[constants.HSB][0], - ', ', - this.hsba[1] * this.maxes[constants.HSB][1], - ', ', - this.hsba[2] * this.maxes[constants.HSB][2], - ')' - ); - - case 'hsb%': - case 'hsv%': - if (!this.hsba) this.hsba = color_conversion._rgbaToHSBA(this._array); - return 'hsb('.concat( - (100 * this.hsba[0]).toPrecision(3), - '%, ', - (100 * this.hsba[1]).toPrecision(3), - '%, ', - (100 * this.hsba[2]).toPrecision(3), - '%)' - ); - - case 'hsba': - case 'hsva': - if (!this.hsba) this.hsba = color_conversion._rgbaToHSBA(this._array); - return 'hsba('.concat( - this.hsba[0] * this.maxes[constants.HSB][0], - ', ', - this.hsba[1] * this.maxes[constants.HSB][1], - ', ', - this.hsba[2] * this.maxes[constants.HSB][2], - ', ', - alpha, - ')' - ); - - case 'hsba%': - case 'hsva%': - if (!this.hsba) this.hsba = color_conversion._rgbaToHSBA(this._array); - return 'hsba('.concat( - (100 * this.hsba[0]).toPrecision(3), - '%, ', - (100 * this.hsba[1]).toPrecision(3), - '%, ', - (100 * this.hsba[2]).toPrecision(3), - '%, ', - (100 * alpha).toPrecision(3), - '%)' - ); - - case 'hsl': - if (!this.hsla) this.hsla = color_conversion._rgbaToHSLA(this._array); - return 'hsl('.concat( - this.hsla[0] * this.maxes[constants.HSL][0], - ', ', - this.hsla[1] * this.maxes[constants.HSL][1], - ', ', - this.hsla[2] * this.maxes[constants.HSL][2], - ')' - ); - - case 'hsl%': - if (!this.hsla) this.hsla = color_conversion._rgbaToHSLA(this._array); - return 'hsl('.concat( - (100 * this.hsla[0]).toPrecision(3), - '%, ', - (100 * this.hsla[1]).toPrecision(3), - '%, ', - (100 * this.hsla[2]).toPrecision(3), - '%)' - ); - - case 'hsla': - if (!this.hsla) this.hsla = color_conversion._rgbaToHSLA(this._array); - return 'hsla('.concat( - this.hsla[0] * this.maxes[constants.HSL][0], - ', ', - this.hsla[1] * this.maxes[constants.HSL][1], - ', ', - this.hsla[2] * this.maxes[constants.HSL][2], - ', ', - alpha, - ')' - ); - - case 'hsla%': - if (!this.hsla) this.hsla = color_conversion._rgbaToHSLA(this._array); - return 'hsl('.concat( - (100 * this.hsla[0]).toPrecision(3), - '%, ', - (100 * this.hsla[1]).toPrecision(3), - '%, ', - (100 * this.hsla[2]).toPrecision(3), - '%, ', - (100 * alpha).toPrecision(3), - '%)' - ); - - case 'rgba': - default: - return 'rgba('.concat(a[0], ',', a[1], ',', a[2], ',', alpha, ')'); - } - }; - - /** - * @method setRed - * @param {Number} red the new red value - * @example - *
- * - * let backgroundColor; - * - * function setup() { - * backgroundColor = color(100, 50, 150); - * } - * - * function draw() { - * backgroundColor.setRed(128 + 128 * sin(millis() / 1000)); - * background(backgroundColor); - * } - * - *
- * - * @alt - * canvas with gradually changing background color - */ - p5.Color.prototype.setRed = function(new_red) { - this._array[0] = new_red / this.maxes[constants.RGB][0]; - this._calculateLevels(); - }; - - /** - * @method setGreen - * @param {Number} green the new green value - * @example - *
- * - * let backgroundColor; - * - * function setup() { - * backgroundColor = color(100, 50, 150); - * } - * - * function draw() { - * backgroundColor.setGreen(128 + 128 * sin(millis() / 1000)); - * background(backgroundColor); - * } - * - *
- * - * @alt - * canvas with gradually changing background color - **/ - p5.Color.prototype.setGreen = function(new_green) { - this._array[1] = new_green / this.maxes[constants.RGB][1]; - this._calculateLevels(); - }; - - /** - * @method setBlue - * @param {Number} blue the new blue value - * @example - *
- * - * let backgroundColor; - * - * function setup() { - * backgroundColor = color(100, 50, 150); - * } - * - * function draw() { - * backgroundColor.setBlue(128 + 128 * sin(millis() / 1000)); - * background(backgroundColor); - * } - * - *
- * - * @alt - * canvas with gradually changing background color - **/ - p5.Color.prototype.setBlue = function(new_blue) { - this._array[2] = new_blue / this.maxes[constants.RGB][2]; - this._calculateLevels(); - }; - - /** - * @method setAlpha - * @param {Number} alpha the new alpha value - * @example - *
- * - * let squareColor; - * - * function setup() { - * ellipseMode(CORNERS); - * strokeWeight(4); - * squareColor = color(100, 50, 150); - * } - * - * function draw() { - * background(255); - * - * noFill(); - * stroke(0); - * ellipse(10, 10, width - 10, height - 10); - * - * squareColor.setAlpha(128 + 128 * sin(millis() / 1000)); - * fill(squareColor); - * noStroke(); - * rect(13, 13, width - 26, height - 26); - * } - * - *
- * - * @alt - * circle behind a square with gradually changing opacity - **/ - p5.Color.prototype.setAlpha = function(new_alpha) { - this._array[3] = new_alpha / this.maxes[this.mode][3]; - this._calculateLevels(); - }; - - // calculates and stores the closest screen levels - p5.Color.prototype._calculateLevels = function() { - var array = this._array; - // (loop backwards for performance) - var levels = (this.levels = new Array(array.length)); - for (var i = array.length - 1; i >= 0; --i) { - levels[i] = Math.round(array[i] * 255); - } - }; - - p5.Color.prototype._getAlpha = function() { - return this._array[3] * this.maxes[this.mode][3]; - }; - - // stores the color mode and maxes in this instance of Color - // for later use (by _parseInputs()) - p5.Color.prototype._storeModeAndMaxes = function(new_mode, new_maxes) { - this.mode = new_mode; - this.maxes = new_maxes; - }; - - p5.Color.prototype._getMode = function() { - return this.mode; - }; - - p5.Color.prototype._getMaxes = function() { - return this.maxes; - }; - - p5.Color.prototype._getBlue = function() { - return this._array[2] * this.maxes[constants.RGB][2]; - }; - - p5.Color.prototype._getBrightness = function() { - if (!this.hsba) { - this.hsba = color_conversion._rgbaToHSBA(this._array); - } - return this.hsba[2] * this.maxes[constants.HSB][2]; - }; - - p5.Color.prototype._getGreen = function() { - return this._array[1] * this.maxes[constants.RGB][1]; - }; - - /** - * Hue is the same in HSB and HSL, but the maximum value may be different. - * This function will return the HSB-normalized saturation when supplied with - * an HSB color object, but will default to the HSL-normalized saturation - * otherwise. - */ - p5.Color.prototype._getHue = function() { - if (this.mode === constants.HSB) { - if (!this.hsba) { - this.hsba = color_conversion._rgbaToHSBA(this._array); - } - return this.hsba[0] * this.maxes[constants.HSB][0]; - } else { - if (!this.hsla) { - this.hsla = color_conversion._rgbaToHSLA(this._array); - } - return this.hsla[0] * this.maxes[constants.HSL][0]; - } - }; - - p5.Color.prototype._getLightness = function() { - if (!this.hsla) { - this.hsla = color_conversion._rgbaToHSLA(this._array); - } - return this.hsla[2] * this.maxes[constants.HSL][2]; - }; - - p5.Color.prototype._getRed = function() { - return this._array[0] * this.maxes[constants.RGB][0]; - }; - - /** - * Saturation is scaled differently in HSB and HSL. This function will return - * the HSB saturation when supplied with an HSB color object, but will default - * to the HSL saturation otherwise. - */ - p5.Color.prototype._getSaturation = function() { - if (this.mode === constants.HSB) { - if (!this.hsba) { - this.hsba = color_conversion._rgbaToHSBA(this._array); - } - return this.hsba[1] * this.maxes[constants.HSB][1]; - } else { - if (!this.hsla) { - this.hsla = color_conversion._rgbaToHSLA(this._array); - } - return this.hsla[1] * this.maxes[constants.HSL][1]; - } - }; - - /** - * CSS named colors. - */ - var namedColors = { - aliceblue: '#f0f8ff', - antiquewhite: '#faebd7', - aqua: '#00ffff', - aquamarine: '#7fffd4', - azure: '#f0ffff', - beige: '#f5f5dc', - bisque: '#ffe4c4', - black: '#000000', - blanchedalmond: '#ffebcd', - blue: '#0000ff', - blueviolet: '#8a2be2', - brown: '#a52a2a', - burlywood: '#deb887', - cadetblue: '#5f9ea0', - chartreuse: '#7fff00', - chocolate: '#d2691e', - coral: '#ff7f50', - cornflowerblue: '#6495ed', - cornsilk: '#fff8dc', - crimson: '#dc143c', - cyan: '#00ffff', - darkblue: '#00008b', - darkcyan: '#008b8b', - darkgoldenrod: '#b8860b', - darkgray: '#a9a9a9', - darkgreen: '#006400', - darkgrey: '#a9a9a9', - darkkhaki: '#bdb76b', - darkmagenta: '#8b008b', - darkolivegreen: '#556b2f', - darkorange: '#ff8c00', - darkorchid: '#9932cc', - darkred: '#8b0000', - darksalmon: '#e9967a', - darkseagreen: '#8fbc8f', - darkslateblue: '#483d8b', - darkslategray: '#2f4f4f', - darkslategrey: '#2f4f4f', - darkturquoise: '#00ced1', - darkviolet: '#9400d3', - deeppink: '#ff1493', - deepskyblue: '#00bfff', - dimgray: '#696969', - dimgrey: '#696969', - dodgerblue: '#1e90ff', - firebrick: '#b22222', - floralwhite: '#fffaf0', - forestgreen: '#228b22', - fuchsia: '#ff00ff', - gainsboro: '#dcdcdc', - ghostwhite: '#f8f8ff', - gold: '#ffd700', - goldenrod: '#daa520', - gray: '#808080', - green: '#008000', - greenyellow: '#adff2f', - grey: '#808080', - honeydew: '#f0fff0', - hotpink: '#ff69b4', - indianred: '#cd5c5c', - indigo: '#4b0082', - ivory: '#fffff0', - khaki: '#f0e68c', - lavender: '#e6e6fa', - lavenderblush: '#fff0f5', - lawngreen: '#7cfc00', - lemonchiffon: '#fffacd', - lightblue: '#add8e6', - lightcoral: '#f08080', - lightcyan: '#e0ffff', - lightgoldenrodyellow: '#fafad2', - lightgray: '#d3d3d3', - lightgreen: '#90ee90', - lightgrey: '#d3d3d3', - lightpink: '#ffb6c1', - lightsalmon: '#ffa07a', - lightseagreen: '#20b2aa', - lightskyblue: '#87cefa', - lightslategray: '#778899', - lightslategrey: '#778899', - lightsteelblue: '#b0c4de', - lightyellow: '#ffffe0', - lime: '#00ff00', - limegreen: '#32cd32', - linen: '#faf0e6', - magenta: '#ff00ff', - maroon: '#800000', - mediumaquamarine: '#66cdaa', - mediumblue: '#0000cd', - mediumorchid: '#ba55d3', - mediumpurple: '#9370db', - mediumseagreen: '#3cb371', - mediumslateblue: '#7b68ee', - mediumspringgreen: '#00fa9a', - mediumturquoise: '#48d1cc', - mediumvioletred: '#c71585', - midnightblue: '#191970', - mintcream: '#f5fffa', - mistyrose: '#ffe4e1', - moccasin: '#ffe4b5', - navajowhite: '#ffdead', - navy: '#000080', - oldlace: '#fdf5e6', - olive: '#808000', - olivedrab: '#6b8e23', - orange: '#ffa500', - orangered: '#ff4500', - orchid: '#da70d6', - palegoldenrod: '#eee8aa', - palegreen: '#98fb98', - paleturquoise: '#afeeee', - palevioletred: '#db7093', - papayawhip: '#ffefd5', - peachpuff: '#ffdab9', - peru: '#cd853f', - pink: '#ffc0cb', - plum: '#dda0dd', - powderblue: '#b0e0e6', - purple: '#800080', - red: '#ff0000', - rosybrown: '#bc8f8f', - royalblue: '#4169e1', - saddlebrown: '#8b4513', - salmon: '#fa8072', - sandybrown: '#f4a460', - seagreen: '#2e8b57', - seashell: '#fff5ee', - sienna: '#a0522d', - silver: '#c0c0c0', - skyblue: '#87ceeb', - slateblue: '#6a5acd', - slategray: '#708090', - slategrey: '#708090', - snow: '#fffafa', - springgreen: '#00ff7f', - steelblue: '#4682b4', - tan: '#d2b48c', - teal: '#008080', - thistle: '#d8bfd8', - tomato: '#ff6347', - turquoise: '#40e0d0', - violet: '#ee82ee', - wheat: '#f5deb3', - white: '#ffffff', - whitesmoke: '#f5f5f5', - yellow: '#ffff00', - yellowgreen: '#9acd32' - }; - - /** - * These regular expressions are used to build up the patterns for matching - * viable CSS color strings: fragmenting the regexes in this way increases the - * legibility and comprehensibility of the code. - * - * Note that RGB values of .9 are not parsed by IE, but are supported here for - * color string consistency. - */ - var WHITESPACE = /\s*/; // Match zero or more whitespace characters. - var INTEGER = /(\d{1,3})/; // Match integers: 79, 255, etc. - var DECIMAL = /((?:\d+(?:\.\d+)?)|(?:\.\d+))/; // Match 129.6, 79, .9, etc. - var PERCENT = new RegExp(DECIMAL.source + '%'); // Match 12.9%, 79%, .9%, etc. - - /** - * Full color string patterns. The capture groups are necessary. - */ - var colorPatterns = { - // Match colors in format #XXX, e.g. #416. - HEX3: /^#([a-f0-9])([a-f0-9])([a-f0-9])$/i, - - // Match colors in format #XXXX, e.g. #5123. - HEX4: /^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i, - - // Match colors in format #XXXXXX, e.g. #b4d455. - HEX6: /^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i, - - // Match colors in format #XXXXXXXX, e.g. #b4d45535. - HEX8: /^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i, - - // Match colors in format rgb(R, G, B), e.g. rgb(255, 0, 128). - RGB: new RegExp( - [ - '^rgb\\(', - INTEGER.source, - ',', - INTEGER.source, - ',', - INTEGER.source, - '\\)$' - ].join(WHITESPACE.source), - 'i' - ), - - // Match colors in format rgb(R%, G%, B%), e.g. rgb(100%, 0%, 28.9%). - RGB_PERCENT: new RegExp( - [ - '^rgb\\(', - PERCENT.source, - ',', - PERCENT.source, - ',', - PERCENT.source, - '\\)$' - ].join(WHITESPACE.source), - 'i' - ), - - // Match colors in format rgb(R, G, B, A), e.g. rgb(255, 0, 128, 0.25). - RGBA: new RegExp( - [ - '^rgba\\(', - INTEGER.source, - ',', - INTEGER.source, - ',', - INTEGER.source, - ',', - DECIMAL.source, - '\\)$' - ].join(WHITESPACE.source), - 'i' - ), - - // Match colors in format rgb(R%, G%, B%, A), e.g. rgb(100%, 0%, 28.9%, 0.5). - RGBA_PERCENT: new RegExp( - [ - '^rgba\\(', - PERCENT.source, - ',', - PERCENT.source, - ',', - PERCENT.source, - ',', - DECIMAL.source, - '\\)$' - ].join(WHITESPACE.source), - 'i' - ), - - // Match colors in format hsla(H, S%, L%), e.g. hsl(100, 40%, 28.9%). - HSL: new RegExp( - [ - '^hsl\\(', - INTEGER.source, - ',', - PERCENT.source, - ',', - PERCENT.source, - '\\)$' - ].join(WHITESPACE.source), - 'i' - ), - - // Match colors in format hsla(H, S%, L%, A), e.g. hsla(100, 40%, 28.9%, 0.5). - HSLA: new RegExp( - [ - '^hsla\\(', - INTEGER.source, - ',', - PERCENT.source, - ',', - PERCENT.source, - ',', - DECIMAL.source, - '\\)$' - ].join(WHITESPACE.source), - 'i' - ), - - // Match colors in format hsb(H, S%, B%), e.g. hsb(100, 40%, 28.9%). - HSB: new RegExp( - [ - '^hsb\\(', - INTEGER.source, - ',', - PERCENT.source, - ',', - PERCENT.source, - '\\)$' - ].join(WHITESPACE.source), - 'i' - ), - - // Match colors in format hsba(H, S%, B%, A), e.g. hsba(100, 40%, 28.9%, 0.5). - HSBA: new RegExp( - [ - '^hsba\\(', - INTEGER.source, - ',', - PERCENT.source, - ',', - PERCENT.source, - ',', - DECIMAL.source, - '\\)$' - ].join(WHITESPACE.source), - 'i' - ) - }; - - /** - * For a number of different inputs, returns a color formatted as [r, g, b, a] - * arrays, with each component normalized between 0 and 1. - * - * @private - * @param {Array} [...args] An 'array-like' object that represents a list of - * arguments - * @return {Number[]} a color formatted as [r, g, b, a] - * Example: - * input ==> output - * g ==> [g, g, g, 255] - * g,a ==> [g, g, g, a] - * r, g, b ==> [r, g, b, 255] - * r, g, b, a ==> [r, g, b, a] - * [g] ==> [g, g, g, 255] - * [g, a] ==> [g, g, g, a] - * [r, g, b] ==> [r, g, b, 255] - * [r, g, b, a] ==> [r, g, b, a] - * @example - *
- * - * // todo - * - *
- * - * @alt - * //todo - * - */ - p5.Color._parseInputs = function(r, g, b, a) { - var numArgs = arguments.length; - var mode = this.mode; - var maxes = this.maxes[mode]; - var results = []; - var i; - - if (numArgs >= 3) { - // Argument is a list of component values. - - results[0] = r / maxes[0]; - results[1] = g / maxes[1]; - results[2] = b / maxes[2]; - - // Alpha may be undefined, so default it to 100%. - if (typeof a === 'number') { - results[3] = a / maxes[3]; - } else { - results[3] = 1; - } - - // Constrain components to the range [0,1]. - // (loop backwards for performance) - for (i = results.length - 1; i >= 0; --i) { - var result = results[i]; - if (result < 0) { - results[i] = 0; - } else if (result > 1) { - results[i] = 1; - } - } - - // Convert to RGBA and return. - if (mode === constants.HSL) { - return color_conversion._hslaToRGBA(results); - } else if (mode === constants.HSB) { - return color_conversion._hsbaToRGBA(results); - } else { - return results; - } - } else if (numArgs === 1 && typeof r === 'string') { - var str = r.trim().toLowerCase(); - - // Return if string is a named colour. - if (namedColors[str]) { - return p5.Color._parseInputs.call(this, namedColors[str]); - } - - // Try RGBA pattern matching. - if (colorPatterns.HEX3.test(str)) { - // #rgb - results = colorPatterns.HEX3.exec(str) - .slice(1) - .map(function(color) { - return parseInt(color + color, 16) / 255; - }); - results[3] = 1; - return results; - } else if (colorPatterns.HEX6.test(str)) { - // #rrggbb - results = colorPatterns.HEX6.exec(str) - .slice(1) - .map(function(color) { - return parseInt(color, 16) / 255; - }); - results[3] = 1; - return results; - } else if (colorPatterns.HEX4.test(str)) { - // #rgba - results = colorPatterns.HEX4.exec(str) - .slice(1) - .map(function(color) { - return parseInt(color + color, 16) / 255; - }); - return results; - } else if (colorPatterns.HEX8.test(str)) { - // #rrggbbaa - results = colorPatterns.HEX8.exec(str) - .slice(1) - .map(function(color) { - return parseInt(color, 16) / 255; - }); - return results; - } else if (colorPatterns.RGB.test(str)) { - // rgb(R,G,B) - results = colorPatterns.RGB.exec(str) - .slice(1) - .map(function(color) { - return color / 255; - }); - results[3] = 1; - return results; - } else if (colorPatterns.RGB_PERCENT.test(str)) { - // rgb(R%,G%,B%) - results = colorPatterns.RGB_PERCENT.exec(str) - .slice(1) - .map(function(color) { - return parseFloat(color) / 100; - }); - results[3] = 1; - return results; - } else if (colorPatterns.RGBA.test(str)) { - // rgba(R,G,B,A) - results = colorPatterns.RGBA.exec(str) - .slice(1) - .map(function(color, idx) { - if (idx === 3) { - return parseFloat(color); - } - return color / 255; - }); - return results; - } else if (colorPatterns.RGBA_PERCENT.test(str)) { - // rgba(R%,G%,B%,A%) - results = colorPatterns.RGBA_PERCENT.exec(str) - .slice(1) - .map(function(color, idx) { - if (idx === 3) { - return parseFloat(color); - } - return parseFloat(color) / 100; - }); - return results; - } - - // Try HSLA pattern matching. - if (colorPatterns.HSL.test(str)) { - // hsl(H,S,L) - results = colorPatterns.HSL.exec(str) - .slice(1) - .map(function(color, idx) { - if (idx === 0) { - return parseInt(color, 10) / 360; - } - return parseInt(color, 10) / 100; - }); - results[3] = 1; - } else if (colorPatterns.HSLA.test(str)) { - // hsla(H,S,L,A) - results = colorPatterns.HSLA.exec(str) - .slice(1) - .map(function(color, idx) { - if (idx === 0) { - return parseInt(color, 10) / 360; - } else if (idx === 3) { - return parseFloat(color); - } - return parseInt(color, 10) / 100; - }); - } - results = results.map(function(value) { - return Math.max(Math.min(value, 1), 0); - }); - if (results.length) { - return color_conversion._hslaToRGBA(results); - } - - // Try HSBA pattern matching. - if (colorPatterns.HSB.test(str)) { - // hsb(H,S,B) - results = colorPatterns.HSB.exec(str) - .slice(1) - .map(function(color, idx) { - if (idx === 0) { - return parseInt(color, 10) / 360; - } - return parseInt(color, 10) / 100; - }); - results[3] = 1; - } else if (colorPatterns.HSBA.test(str)) { - // hsba(H,S,B,A) - results = colorPatterns.HSBA.exec(str) - .slice(1) - .map(function(color, idx) { - if (idx === 0) { - return parseInt(color, 10) / 360; - } else if (idx === 3) { - return parseFloat(color); - } - return parseInt(color, 10) / 100; - }); - } - - if (results.length) { - // (loop backwards for performance) - for (i = results.length - 1; i >= 0; --i) { - results[i] = Math.max(Math.min(results[i], 1), 0); - } - - return color_conversion._hsbaToRGBA(results); - } - - // Input did not match any CSS color pattern: default to white. - results = [1, 1, 1, 1]; - } else if ((numArgs === 1 || numArgs === 2) && typeof r === 'number') { - // 'Grayscale' mode. - - /** - * For HSB and HSL, interpret the gray level as a brightness/lightness - * value (they are equivalent when chroma is zero). For RGB, normalize the - * gray level according to the blue maximum. - */ - results[0] = r / maxes[2]; - results[1] = r / maxes[2]; - results[2] = r / maxes[2]; - - // Alpha may be undefined, so default it to 100%. - if (typeof g === 'number') { - results[3] = g / maxes[3]; - } else { - results[3] = 1; - } - - // Constrain components to the range [0,1]. - results = results.map(function(value) { - return Math.max(Math.min(value, 1), 0); - }); - } else { - throw new Error(arguments + 'is not a valid color representation.'); - } - - return results; - }; - - module.exports = p5.Color; - }, - { '../core/constants': 18, '../core/main': 24, './color_conversion': 14 } - ], - 17: [ - function(_dereq_, module, exports) { - /** - * @module Color - * @submodule Setting - * @for p5 - * @requires core - * @requires constants - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - var constants = _dereq_('../core/constants'); - _dereq_('./p5.Color'); - - /** - * The background() function sets the color used for the background of the - * p5.js canvas. The default background is transparent. This function is - * typically used within draw() to clear the display window at the beginning - * of each frame, but it can be used inside setup() to set the background on - * the first frame of animation or if the background need only be set once. - *

- * The color is either specified in terms of the RGB, HSB, or HSL color - * depending on the current colorMode. (The default color space is RGB, with - * each value in the range from 0 to 255). The alpha range by default is also 0 to 255. - *

- * If a single string argument is provided, RGB, RGBA and Hex CSS color strings - * and all named color strings are supported. In this case, an alpha number - * value as a second argument is not supported, the RGBA form should be used. - *

- * A p5.Color object can also be provided to set the background color. - *

- * A p5.Image can also be provided to set the background image. - * - * @method background - * @param {p5.Color} color any value created by the color() function - * @chainable - * - * @example - *
- * - * // Grayscale integer value - * background(51); - * - *
- * - *
- * - * // R, G & B integer values - * background(255, 204, 0); - * - *
- * - *
- * - * // H, S & B integer values - * colorMode(HSB); - * background(255, 204, 100); - * - *
- * - *
- * - * // Named SVG/CSS color string - * background('red'); - * - *
- * - *
- * - * // three-digit hexadecimal RGB notation - * background('#fae'); - * - *
- * - *
- * - * // six-digit hexadecimal RGB notation - * background('#222222'); - * - *
- * - *
- * - * // integer RGB notation - * background('rgb(0,255,0)'); - * - *
- * - *
- * - * // integer RGBA notation - * background('rgba(0,255,0, 0.25)'); - * - *
- * - *
- * - * // percentage RGB notation - * background('rgb(100%,0%,10%)'); - * - *
- * - *
- * - * // percentage RGBA notation - * background('rgba(100%,0%,100%,0.5)'); - * - *
- * - *
- * - * // p5 Color object - * background(color(0, 0, 255)); - * - *
- * - * @alt - * canvas with darkest charcoal grey background. - * canvas with yellow background. - * canvas with royal blue background. - * canvas with red background. - * canvas with pink background. - * canvas with black background. - * canvas with bright green background. - * canvas with soft green background. - * canvas with red background. - * canvas with light purple background. - * canvas with blue background. - */ - - /** - * @method background - * @param {String} colorstring color string, possible formats include: integer - * rgb() or rgba(), percentage rgb() or rgba(), - * 3-digit hex, 6-digit hex - * @param {Number} [a] opacity of the background relative to current - * color range (default is 0-255) - * @chainable - */ - - /** - * @method background - * @param {Number} gray specifies a value between white and black - * @param {Number} [a] - * @chainable - */ - - /** - * @method background - * @param {Number} v1 red or hue value (depending on the current color - * mode) - * @param {Number} v2 green or saturation value (depending on the current - * color mode) - * @param {Number} v3 blue or brightness value (depending on the current - * color mode) - * @param {Number} [a] - * @chainable - */ - - /** - * @method background - * @param {Number[]} values an array containing the red, green, blue - * and alpha components of the color - * @chainable - */ - - /** - * @method background - * @param {p5.Image} image image created with loadImage() or createImage(), - * to set as background - * (must be same size as the sketch window) - * @param {Number} [a] - * @chainable - */ - - p5.prototype.background = function() { - this._renderer.background.apply(this._renderer, arguments); - return this; - }; - - /** - * Clears the pixels within a buffer. This function only clears the canvas. - * It will not clear objects created by createX() methods such as - * createVideo() or createDiv(). - * Unlike the main graphics context, pixels in additional graphics areas created - * with createGraphics() can be entirely - * or partially transparent. This function clears everything to make all of - * the pixels 100% transparent. - * - * @method clear - * @chainable - * @example - *
- * - * // Clear the screen on mouse press. - * function setup() { - * createCanvas(100, 100); - * } - * - * function draw() { - * ellipse(mouseX, mouseY, 20, 20); - * } - * - * function mousePressed() { - * clear(); - * } - * - *
- * - * @alt - * 20x20 white ellipses are continually drawn at mouse x and y coordinates. - * - */ - - p5.prototype.clear = function() { - this._renderer.clear(); - return this; - }; - - /** - * colorMode() changes the way p5.js interprets color data. By default, the - * parameters for fill(), stroke(), background(), and color() are defined by - * values between 0 and 255 using the RGB color model. This is equivalent to - * setting colorMode(RGB, 255). Setting colorMode(HSB) lets you use the HSB - * system instead. By default, this is colorMode(HSB, 360, 100, 100, 1). You - * can also use HSL. - *

- * Note: existing color objects remember the mode that they were created in, - * so you can change modes as you like without affecting their appearance. - * - * - * @method colorMode - * @param {Constant} mode either RGB, HSB or HSL, corresponding to - * Red/Green/Blue and Hue/Saturation/Brightness - * (or Lightness) - * @param {Number} [max] range for all values - * @chainable - * - * @example - *
- * - * noStroke(); - * colorMode(RGB, 100); - * for (let i = 0; i < 100; i++) { - * for (let j = 0; j < 100; j++) { - * stroke(i, j, 0); - * point(i, j); - * } - * } - * - *
- * - *
- * - * noStroke(); - * colorMode(HSB, 100); - * for (let i = 0; i < 100; i++) { - * for (let j = 0; j < 100; j++) { - * stroke(i, j, 100); - * point(i, j); - * } - * } - * - *
- * - *
- * - * colorMode(RGB, 255); - * let c = color(127, 255, 0); - * - * colorMode(RGB, 1); - * let myColor = c._getRed(); - * text(myColor, 10, 10, 80, 80); - * - *
- * - *
- * - * noFill(); - * colorMode(RGB, 255, 255, 255, 1); - * background(255); - * - * strokeWeight(4); - * stroke(255, 0, 10, 0.3); - * ellipse(40, 40, 50, 50); - * ellipse(50, 50, 40, 40); - * - *
- * - * @alt - *Green to red gradient from bottom L to top R. shading originates from top left. - *Rainbow gradient from left to right. Brightness increasing to white at top. - *unknown image. - *50x50 ellipse at middle L & 40x40 ellipse at center. Translucent pink outlines. - * - */ - /** - * @method colorMode - * @param {Constant} mode - * @param {Number} max1 range for the red or hue depending on the - * current color mode - * @param {Number} max2 range for the green or saturation depending - * on the current color mode - * @param {Number} max3 range for the blue or brightness/lightness - * depending on the current color mode - * @param {Number} [maxA] range for the alpha - * @chainable - */ - p5.prototype.colorMode = function(mode, max1, max2, max3, maxA) { - p5._validateParameters('colorMode', arguments); - if ( - mode === constants.RGB || - mode === constants.HSB || - mode === constants.HSL - ) { - // Set color mode. - this._colorMode = mode; - - // Set color maxes. - var maxes = this._colorMaxes[mode]; - if (arguments.length === 2) { - maxes[0] = max1; // Red - maxes[1] = max1; // Green - maxes[2] = max1; // Blue - maxes[3] = max1; // Alpha - } else if (arguments.length === 4) { - maxes[0] = max1; // Red - maxes[1] = max2; // Green - maxes[2] = max3; // Blue - } else if (arguments.length === 5) { - maxes[0] = max1; // Red - maxes[1] = max2; // Green - maxes[2] = max3; // Blue - maxes[3] = maxA; // Alpha - } - } - - return this; - }; - - /** - * Sets the color used to fill shapes. For example, if you run - * fill(204, 102, 0), all shapes drawn after the fill command will be filled with the color orange. This - * color is either specified in terms of the RGB or HSB color depending on - * the current colorMode(). (The default color space is RGB, with each value - * in the range from 0 to 255). The alpha range by default is also 0 to 255. - *

- * If a single string argument is provided, RGB, RGBA and Hex CSS color strings - * and all named color strings are supported. In this case, an alpha number - * value as a second argument is not supported, the RGBA form should be used. - *

- * A p5 Color object can also be provided to set the fill color. - * - * @method fill - * @param {Number} v1 red or hue value relative to - * the current color range - * @param {Number} v2 green or saturation value - * relative to the current color range - * @param {Number} v3 blue or brightness value - * relative to the current color range - * @param {Number} [alpha] - * @chainable - * @example - *
- * - * // Grayscale integer value - * fill(51); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // R, G & B integer values - * fill(255, 204, 0); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // H, S & B integer values - * colorMode(HSB); - * fill(255, 204, 100); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // Named SVG/CSS color string - * fill('red'); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // three-digit hexadecimal RGB notation - * fill('#fae'); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // six-digit hexadecimal RGB notation - * fill('#222222'); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // integer RGB notation - * fill('rgb(0,255,0)'); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // integer RGBA notation - * fill('rgba(0,255,0, 0.25)'); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // percentage RGB notation - * fill('rgb(100%,0%,10%)'); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // percentage RGBA notation - * fill('rgba(100%,0%,100%,0.5)'); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // p5 Color object - * fill(color(0, 0, 255)); - * rect(20, 20, 60, 60); - * - *
- * @alt - * 60x60 dark charcoal grey rect with black outline in center of canvas. - * 60x60 yellow rect with black outline in center of canvas. - * 60x60 royal blue rect with black outline in center of canvas. - * 60x60 red rect with black outline in center of canvas. - * 60x60 pink rect with black outline in center of canvas. - * 60x60 black rect with black outline in center of canvas. - * 60x60 light green rect with black outline in center of canvas. - * 60x60 soft green rect with black outline in center of canvas. - * 60x60 red rect with black outline in center of canvas. - * 60x60 dark fuchsia rect with black outline in center of canvas. - * 60x60 blue rect with black outline in center of canvas. - */ - - /** - * @method fill - * @param {String} value a color string - * @chainable - */ - - /** - * @method fill - * @param {Number} gray a gray value - * @param {Number} [alpha] - * @chainable - */ - - /** - * @method fill - * @param {Number[]} values an array containing the red,green,blue & - * and alpha components of the color - * @chainable - */ - - /** - * @method fill - * @param {p5.Color} color the fill color - * @chainable - */ - p5.prototype.fill = function() { - this._renderer._setProperty('_fillSet', true); - this._renderer._setProperty('_doFill', true); - this._renderer.fill.apply(this._renderer, arguments); - return this; - }; - - /** - * Disables filling geometry. If both noStroke() and noFill() are called, - * nothing will be drawn to the screen. - * - * @method noFill - * @chainable - * @example - *
- * - * rect(15, 10, 55, 55); - * noFill(); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(0); - * noFill(); - * stroke(100, 100, 240); - * rotateX(frameCount * 0.01); - * rotateY(frameCount * 0.01); - * box(45, 45, 45); - * } - * - *
- * - * @alt - * white rect top middle and noFill rect center. Both 60x60 with black outlines. - * black canvas with purple cube wireframe spinning - */ - p5.prototype.noFill = function() { - this._renderer._setProperty('_doFill', false); - return this; - }; - - /** - * Disables drawing the stroke (outline). If both noStroke() and noFill() - * are called, nothing will be drawn to the screen. - * - * @method noStroke - * @chainable - * @example - *
- * - * noStroke(); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(0); - * noStroke(); - * fill(240, 150, 150); - * rotateX(frameCount * 0.01); - * rotateY(frameCount * 0.01); - * box(45, 45, 45); - * } - * - *
- * - * @alt - * 60x60 white rect at center. no outline. - * black canvas with pink cube spinning - */ - p5.prototype.noStroke = function() { - this._renderer._setProperty('_doStroke', false); - return this; - }; - - /** - * Sets the color used to draw lines and borders around shapes. This color - * is either specified in terms of the RGB or HSB color depending on the - * current colorMode() (the default color space is RGB, with each value in - * the range from 0 to 255). The alpha range by default is also 0 to 255. - *

- * If a single string argument is provided, RGB, RGBA and Hex CSS color - * strings and all named color strings are supported. In this case, an alpha - * number value as a second argument is not supported, the RGBA form should be - * used. - *

- * A p5 Color object can also be provided to set the stroke color. - * - * - * @method stroke - * @param {Number} v1 red or hue value relative to - * the current color range - * @param {Number} v2 green or saturation value - * relative to the current color range - * @param {Number} v3 blue or brightness value - * relative to the current color range - * @param {Number} [alpha] - * @chainable - * - * @example - *
- * - * // Grayscale integer value - * strokeWeight(4); - * stroke(51); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // R, G & B integer values - * stroke(255, 204, 0); - * strokeWeight(4); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // H, S & B integer values - * colorMode(HSB); - * strokeWeight(4); - * stroke(255, 204, 100); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // Named SVG/CSS color string - * stroke('red'); - * strokeWeight(4); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // three-digit hexadecimal RGB notation - * stroke('#fae'); - * strokeWeight(4); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // six-digit hexadecimal RGB notation - * stroke('#222222'); - * strokeWeight(4); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // integer RGB notation - * stroke('rgb(0,255,0)'); - * strokeWeight(4); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // integer RGBA notation - * stroke('rgba(0,255,0,0.25)'); - * strokeWeight(4); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // percentage RGB notation - * stroke('rgb(100%,0%,10%)'); - * strokeWeight(4); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // percentage RGBA notation - * stroke('rgba(100%,0%,100%,0.5)'); - * strokeWeight(4); - * rect(20, 20, 60, 60); - * - *
- * - *
- * - * // p5 Color object - * stroke(color(0, 0, 255)); - * strokeWeight(4); - * rect(20, 20, 60, 60); - * - *
- * - * @alt - * 60x60 white rect at center. Dark charcoal grey outline. - * 60x60 white rect at center. Yellow outline. - * 60x60 white rect at center. Royal blue outline. - * 60x60 white rect at center. Red outline. - * 60x60 white rect at center. Pink outline. - * 60x60 white rect at center. Black outline. - * 60x60 white rect at center. Bright green outline. - * 60x60 white rect at center. Soft green outline. - * 60x60 white rect at center. Red outline. - * 60x60 white rect at center. Dark fuchsia outline. - * 60x60 white rect at center. Blue outline. - */ - - /** - * @method stroke - * @param {String} value a color string - * @chainable - */ - - /** - * @method stroke - * @param {Number} gray a gray value - * @param {Number} [alpha] - * @chainable - */ - - /** - * @method stroke - * @param {Number[]} values an array containing the red,green,blue & - * and alpha components of the color - * @chainable - */ - - /** - * @method stroke - * @param {p5.Color} color the stroke color - * @chainable - */ - - p5.prototype.stroke = function() { - this._renderer._setProperty('_strokeSet', true); - this._renderer._setProperty('_doStroke', true); - this._renderer.stroke.apply(this._renderer, arguments); - return this; - }; - - module.exports = p5; - }, - { '../core/constants': 18, '../core/main': 24, './p5.Color': 16 } - ], - 18: [ - function(_dereq_, module, exports) { - /** - * @module Constants - * @submodule Constants - * @for p5 - */ - - 'use strict'; - - var PI = Math.PI; - - module.exports = { - // GRAPHICS RENDERER - /** - * The default, two-dimensional renderer. - * @property {String} P2D - * @final - */ - P2D: 'p2d', - /** - * One of the two render modes in p5.js: P2D (default renderer) and WEBGL - * Enables 3D render by introducing the third dimension: Z - * @property {String} WEBGL - * @final - */ - WEBGL: 'webgl', - - // ENVIRONMENT - /** - * @property {String} ARROW - * @final - */ - ARROW: 'default', - /** - * @property {String} CROSS - * @final - */ - CROSS: 'crosshair', - /** - * @property {String} HAND - * @final - */ - HAND: 'pointer', - /** - * @property {String} MOVE - * @final - */ - MOVE: 'move', - /** - * @property {String} TEXT - * @final - */ - TEXT: 'text', - /** - * @property {String} WAIT - * @final - */ - WAIT: 'wait', - - // TRIGONOMETRY - - /** - * HALF_PI is a mathematical constant with the value - * 1.57079632679489661923. It is half the ratio of the - * circumference of a circle to its diameter. It is useful in - * combination with the trigonometric functions sin() and cos(). - * - * @property {Number} HALF_PI - * @final - * - * @example - *
- * arc(50, 50, 80, 80, 0, HALF_PI); - *
- * - * @alt - * 80x80 white quarter-circle with curve toward bottom right of canvas. - * - */ - HALF_PI: PI / 2, - /** - * PI is a mathematical constant with the value - * 3.14159265358979323846. It is the ratio of the circumference - * of a circle to its diameter. It is useful in combination with - * the trigonometric functions sin() and cos(). - * - * @property {Number} PI - * @final - * - * @example - *
- * arc(50, 50, 80, 80, 0, PI); - *
- * - * @alt - * white half-circle with curve toward bottom of canvas. - * - */ - PI: PI, - /** - * QUARTER_PI is a mathematical constant with the value 0.7853982. - * It is one quarter the ratio of the circumference of a circle to - * its diameter. It is useful in combination with the trigonometric - * functions sin() and cos(). - * - * @property {Number} QUARTER_PI - * @final - * - * @example - *
- * arc(50, 50, 80, 80, 0, QUARTER_PI); - *
- * - * @alt - * white eighth-circle rotated about 40 degrees with curve bottom right canvas. - * - */ - QUARTER_PI: PI / 4, - /** - * TAU is an alias for TWO_PI, a mathematical constant with the - * value 6.28318530717958647693. It is twice the ratio of the - * circumference of a circle to its diameter. It is useful in - * combination with the trigonometric functions sin() and cos(). - * - * @property {Number} TAU - * @final - * - * @example - *
- * arc(50, 50, 80, 80, 0, TAU); - *
- * - * @alt - * 80x80 white ellipse shape in center of canvas. - * - */ - TAU: PI * 2, - /** - * TWO_PI is a mathematical constant with the value - * 6.28318530717958647693. It is twice the ratio of the - * circumference of a circle to its diameter. It is useful in - * combination with the trigonometric functions sin() and cos(). - * - * @property {Number} TWO_PI - * @final - * - * @example - *
- * arc(50, 50, 80, 80, 0, TWO_PI); - *
- * - * @alt - * 80x80 white ellipse shape in center of canvas. - * - */ - TWO_PI: PI * 2, - /** - * Constant to be used with angleMode() function, to set the mode which - * p5.js interprates and calculates angles (either DEGREES or RADIANS). - * @property {String} DEGREES - * @final - * - * @example - *
- * function setup() { - * angleMode(DEGREES); - * } - *
- */ - DEGREES: 'degrees', - /** - * Constant to be used with angleMode() function, to set the mode which - * p5.js interprates and calculates angles (either RADIANS or DEGREES). - * @property {String} RADIANS - * @final - * - * @example - *
- * function setup() { - * angleMode(RADIANS); - * } - *
- */ - RADIANS: 'radians', - DEG_TO_RAD: PI / 180.0, - RAD_TO_DEG: 180.0 / PI, - - // SHAPE - /** - * @property {String} CORNER - * @final - */ - CORNER: 'corner', - /** - * @property {String} CORNERS - * @final - */ - CORNERS: 'corners', - /** - * @property {String} RADIUS - * @final - */ - RADIUS: 'radius', - /** - * @property {String} RIGHT - * @final - */ - RIGHT: 'right', - /** - * @property {String} LEFT - * @final - */ - LEFT: 'left', - /** - * @property {String} CENTER - * @final - */ - CENTER: 'center', - /** - * @property {String} TOP - * @final - */ - TOP: 'top', - /** - * @property {String} BOTTOM - * @final - */ - BOTTOM: 'bottom', - /** - * @property {String} BASELINE - * @final - * @default alphabetic - */ - BASELINE: 'alphabetic', - /** - * @property {Number} POINTS - * @final - * @default 0x0000 - */ - POINTS: 0x0000, - /** - * @property {Number} LINES - * @final - * @default 0x0001 - */ - LINES: 0x0001, - /** - * @property {Number} LINE_STRIP - * @final - * @default 0x0003 - */ - LINE_STRIP: 0x0003, - /** - * @property {Number} LINE_LOOP - * @final - * @default 0x0002 - */ - LINE_LOOP: 0x0002, - /** - * @property {Number} TRIANGLES - * @final - * @default 0x0004 - */ - TRIANGLES: 0x0004, - /** - * @property {Number} TRIANGLE_FAN - * @final - * @default 0x0006 - */ - TRIANGLE_FAN: 0x0006, - /** - * @property {Number} TRIANGLE_STRIP - * @final - * @default 0x0005 - */ - TRIANGLE_STRIP: 0x0005, - /** - * @property {String} QUADS - * @final - */ - QUADS: 'quads', - /** - * @property {String} QUAD_STRIP - * @final - * @default quad_strip - */ - QUAD_STRIP: 'quad_strip', - /** - * @property {String} CLOSE - * @final - */ - CLOSE: 'close', - /** - * @property {String} OPEN - * @final - */ - OPEN: 'open', - /** - * @property {String} CHORD - * @final - */ - CHORD: 'chord', - /** - * @property {String} PIE - * @final - */ - PIE: 'pie', - /** - * @property {String} PROJECT - * @final - * @default square - */ - PROJECT: 'square', // PEND: careful this is counterintuitive - /** - * @property {String} SQUARE - * @final - * @default butt - */ - SQUARE: 'butt', - /** - * @property {String} ROUND - * @final - */ - ROUND: 'round', - /** - * @property {String} BEVEL - * @final - */ - BEVEL: 'bevel', - /** - * @property {String} MITER - * @final - */ - MITER: 'miter', - - // COLOR - /** - * @property {String} RGB - * @final - */ - RGB: 'rgb', - /** - * @property {String} HSB - * @final - */ - HSB: 'hsb', - /** - * @property {String} HSL - * @final - */ - HSL: 'hsl', - - // DOM EXTENSION - /** - * AUTO allows us to automatically set the width or height of an element (but not both), - * based on the current height and width of the element. Only one parameter can - * be passed to the size function as AUTO, at a time. - * - * @property {String} AUTO - * @final - */ - AUTO: 'auto', - - // INPUT - ALT: 18, - BACKSPACE: 8, - CONTROL: 17, - DELETE: 46, - DOWN_ARROW: 40, - ENTER: 13, - ESCAPE: 27, - LEFT_ARROW: 37, - OPTION: 18, - RETURN: 13, - RIGHT_ARROW: 39, - SHIFT: 16, - TAB: 9, - UP_ARROW: 38, - - // RENDERING - /** - * @property {String} BLEND - * @final - * @default source-over - */ - BLEND: 'source-over', - /** - * @property {String} ADD - * @final - * @default lighter - */ - ADD: 'lighter', - //ADD: 'add', // - //SUBTRACT: 'subtract', // - /** - * @property {String} DARKEST - * @final - */ - DARKEST: 'darken', - /** - * @property {String} LIGHTEST - * @final - * @default lighten - */ - LIGHTEST: 'lighten', - /** - * @property {String} DIFFERENCE - * @final - */ - DIFFERENCE: 'difference', - /** - * @property {String} SUBTRACT - * @final - */ - SUBTRACT: 'subtract', - /** - * @property {String} EXCLUSION - * @final - */ - EXCLUSION: 'exclusion', - /** - * @property {String} MULTIPLY - * @final - */ - MULTIPLY: 'multiply', - /** - * @property {String} SCREEN - * @final - */ - SCREEN: 'screen', - /** - * @property {String} REPLACE - * @final - * @default copy - */ - REPLACE: 'copy', - /** - * @property {String} OVERLAY - * @final - */ - OVERLAY: 'overlay', - /** - * @property {String} HARD_LIGHT - * @final - */ - HARD_LIGHT: 'hard-light', - /** - * @property {String} SOFT_LIGHT - * @final - */ - SOFT_LIGHT: 'soft-light', - /** - * @property {String} DODGE - * @final - * @default color-dodge - */ - DODGE: 'color-dodge', - /** - * @property {String} BURN - * @final - * @default color-burn - */ - BURN: 'color-burn', - - // FILTERS - /** - * @property {String} THRESHOLD - * @final - */ - THRESHOLD: 'threshold', - /** - * @property {String} GRAY - * @final - */ - GRAY: 'gray', - /** - * @property {String} OPAQUE - * @final - */ - OPAQUE: 'opaque', - /** - * @property {String} INVERT - * @final - */ - INVERT: 'invert', - /** - * @property {String} POSTERIZE - * @final - */ - POSTERIZE: 'posterize', - /** - * @property {String} DILATE - * @final - */ - DILATE: 'dilate', - /** - * @property {String} ERODE - * @final - */ - ERODE: 'erode', - /** - * @property {String} BLUR - * @final - */ - BLUR: 'blur', - - // TYPOGRAPHY - /** - * @property {String} NORMAL - * @final - */ - NORMAL: 'normal', - /** - * @property {String} ITALIC - * @final - */ - ITALIC: 'italic', - /** - * @property {String} BOLD - * @final - */ - BOLD: 'bold', - /** - * @property {String} BOLDITALIC - * @final - */ - BOLDITALIC: 'bold italic', - - // TYPOGRAPHY-INTERNAL - _DEFAULT_TEXT_FILL: '#000000', - _DEFAULT_LEADMULT: 1.25, - _CTX_MIDDLE: 'middle', - - // VERTICES - LINEAR: 'linear', - QUADRATIC: 'quadratic', - BEZIER: 'bezier', - CURVE: 'curve', - - // WEBGL DRAWMODES - STROKE: 'stroke', - FILL: 'fill', - TEXTURE: 'texture', - IMMEDIATE: 'immediate', - - // WEBGL TEXTURE MODE - // NORMAL already exists for typography - /** - * @property {String} IMAGE - * @final - */ - IMAGE: 'image', - - // WEBGL TEXTURE WRAP AND FILTERING - // LINEAR already exists above - NEAREST: 'nearest', - REPEAT: 'repeat', - CLAMP: 'clamp', - MIRROR: 'mirror', - - // DEVICE-ORIENTATION - /** - * @property {String} LANDSCAPE - * @final - */ - LANDSCAPE: 'landscape', - /** - * @property {String} PORTRAIT - * @final - */ - PORTRAIT: 'portrait', - - // DEFAULTS - _DEFAULT_STROKE: '#000000', - _DEFAULT_FILL: '#FFFFFF', - - /** - * @property {String} GRID - * @final - */ - GRID: 'grid', - - /** - * @property {String} AXES - * @final - */ - AXES: 'axes' - }; - }, - {} - ], - 19: [ - function(_dereq_, module, exports) { - /** - * @module Environment - * @submodule Environment - * @for p5 - * @requires core - * @requires constants - */ - - 'use strict'; - - var p5 = _dereq_('./main'); - var C = _dereq_('./constants'); - - var standardCursors = [C.ARROW, C.CROSS, C.HAND, C.MOVE, C.TEXT, C.WAIT]; - - p5.prototype._frameRate = 0; - p5.prototype._lastFrameTime = window.performance.now(); - p5.prototype._targetFrameRate = 60; - - var _windowPrint = window.print; - - /** - * The print() function writes to the console area of your browser. - * This function is often helpful for looking at the data a program is - * producing. This function creates a new line of text for each call to - * the function. Individual elements can be - * separated with quotes ("") and joined with the addition operator (+). - * - * Note that calling print() without any arguments invokes the window.print() - * function which opens the browser's print dialog. To print a blank line - * to console you can write print('\n'). - * - * @method print - * @param {Any} contents any combination of Number, String, Object, Boolean, - * Array to print - * @example - *
- * let x = 10; - * print('The value of x is ' + x); - * // prints "The value of x is 10" - *
- * @alt - * default grey canvas - */ - p5.prototype.print = function() { - if (!arguments.length) { - _windowPrint(); - } else { - console.log.apply(console, arguments); - } - }; - - /** - * The system variable frameCount contains the number of frames that have - * been displayed since the program started. Inside setup() the value is 0, - * after the first iteration of draw it is 1, etc. - * - * @property {Integer} frameCount - * @readOnly - * @example - *
- * function setup() { - * frameRate(30); - * textSize(30); - * textAlign(CENTER); - * } - * - * function draw() { - * background(200); - * text(frameCount, width / 2, height / 2); - * } -
- * - * @alt - * numbers rapidly counting upward with frame count set to 30. - * - */ - p5.prototype.frameCount = 0; - - /** - * The system variable deltaTime contains the time - * difference between the beginning of the previous frame and the beginning - * of the current frame in milliseconds. - *

- * This variable is useful for creating time sensitive animation or physics - * calculation that should stay constant regardless of frame rate. - * - * @property {Integer} deltaTime - * @readOnly - * @example - *
- * let rectX = 0; - * let fr = 30; //starting FPS - * let clr; - * - * function setup() { - * background(200); - * frameRate(fr); // Attempt to refresh at starting FPS - * clr = color(255, 0, 0); - * } - * - * function draw() { - * background(200); - * rectX = rectX + 1 * (deltaTime / 50); // Move Rectangle in relation to deltaTime - * - * if (rectX >= width) { - * // If you go off screen. - * if (fr === 30) { - * clr = color(0, 0, 255); - * fr = 10; - * frameRate(fr); // make frameRate 10 FPS - * } else { - * clr = color(255, 0, 0); - * fr = 30; - * frameRate(fr); // make frameRate 30 FPS - * } - * rectX = 0; - * } - * fill(clr); - * rect(rectX, 40, 20, 20); - * } - *
- * - * @alt - * red rect moves left to right, followed by blue rect moving at the same speed - * with a lower frame rate. Loops. - * - */ - p5.prototype.deltaTime = 0; - - /** - * Confirms if the window a p5.js program is in is "focused," meaning that - * the sketch will accept mouse or keyboard input. This variable is - * "true" if the window is focused and "false" if not. - * - * @property {Boolean} focused - * @readOnly - * @example - *
- * // To demonstrate, put two windows side by side. - * // Click on the window that the p5 sketch isn't in! - * function draw() { - * background(200); - * noStroke(); - * fill(0, 200, 0); - * ellipse(25, 25, 50, 50); - * - * if (!focused) { - // or "if (focused === false)" - * stroke(200, 0, 0); - * line(0, 0, 100, 100); - * line(100, 0, 0, 100); - * } - * } - *
- * - * @alt - * green 50x50 ellipse at top left. Red X covers canvas when page focus changes - * - */ - p5.prototype.focused = document.hasFocus(); - - /** - * Sets the cursor to a predefined symbol or an image, or makes it visible - * if already hidden. If you are trying to set an image as the cursor, the - * recommended size is 16x16 or 32x32 pixels. The values for parameters x and y - * must be less than the dimensions of the image. - * - * @method cursor - * @param {String|Constant} type Built-In: either ARROW, CROSS, HAND, MOVE, TEXT and WAIT - * Native CSS properties: 'grab', 'progress', 'cell' etc. - * External: path for cursor's images - * (Allowed File extensions: .cur, .gif, .jpg, .jpeg, .png) - * For more information on Native CSS cursors and url visit: - * https://developer.mozilla.org/en-US/docs/Web/CSS/cursor - * @param {Number} [x] the horizontal active spot of the cursor (must be less than 32) - * @param {Number} [y] the vertical active spot of the cursor (must be less than 32) - * @example - *
- * // Move the mouse across the quadrants - * // to see the cursor change - * function draw() { - * line(width / 2, 0, width / 2, height); - * line(0, height / 2, width, height / 2); - * if (mouseX < 50 && mouseY < 50) { - * cursor(CROSS); - * } else if (mouseX > 50 && mouseY < 50) { - * cursor('progress'); - * } else if (mouseX > 50 && mouseY > 50) { - * cursor('https://s3.amazonaws.com/mupublicdata/cursor.cur'); - * } else { - * cursor('grab'); - * } - * } - *
- * - * @alt - * canvas is divided into four quadrants. cursor on first is a cross, second is a progress, - * third is a custom cursor using path to the cursor and fourth is a grab. - * - */ - p5.prototype.cursor = function(type, x, y) { - var cursor = 'auto'; - var canvas = this._curElement.elt; - if (standardCursors.indexOf(type) > -1) { - // Standard css cursor - cursor = type; - } else if (typeof type === 'string') { - var coords = ''; - if (x && y && typeof x === 'number' && typeof y === 'number') { - // Note that x and y values must be unit-less positive integers < 32 - // https://developer.mozilla.org/en-US/docs/Web/CSS/cursor - coords = x + ' ' + y; - } - if ( - type.substring(0, 7) === 'http://' || - type.substring(0, 8) === 'https://' - ) { - // Image (absolute url) - cursor = 'url(' + type + ') ' + coords + ', auto'; - } else if (/\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(type)) { - // Image file (relative path) - Separated for performance reasons - cursor = 'url(' + type + ') ' + coords + ', auto'; - } else { - // Any valid string for the css cursor property - cursor = type; - } - } - canvas.style.cursor = cursor; - }; - - /** - * Specifies the number of frames to be displayed every second. For example, - * the function call frameRate(30) will attempt to refresh 30 times a second. - * If the processor is not fast enough to maintain the specified rate, the - * frame rate will not be achieved. Setting the frame rate within setup() is - * recommended. The default frame rate is based on the frame rate of the display - * (here also called "refresh rate"), which is set to 60 frames per second on most - * computers. A frame rate of 24 frames per second (usual for movies) or above - * will be enough for smooth animations - * This is the same as setFrameRate(val). - *

- * Calling frameRate() with no arguments returns the current framerate. The - * draw function must run at least once before it will return a value. This - * is the same as getFrameRate(). - *

- * Calling frameRate() with arguments that are not of the type numbers - * or are non positive also returns current framerate. - * - * @method frameRate - * @param {Number} fps number of frames to be displayed every second - * @chainable - * - * @example - * - *
- * let rectX = 0; - * let fr = 30; //starting FPS - * let clr; - * - * function setup() { - * background(200); - * frameRate(fr); // Attempt to refresh at starting FPS - * clr = color(255, 0, 0); - * } - * - * function draw() { - * background(200); - * rectX = rectX += 1; // Move Rectangle - * - * if (rectX >= width) { - // If you go off screen. - * if (fr === 30) { - * clr = color(0, 0, 255); - * fr = 10; - * frameRate(fr); // make frameRate 10 FPS - * } else { - * clr = color(255, 0, 0); - * fr = 30; - * frameRate(fr); // make frameRate 30 FPS - * } - * rectX = 0; - * } - * fill(clr); - * rect(rectX, 40, 20, 20); - * } - *
- * - * @alt - * blue rect moves left to right, followed by red rect moving faster. Loops. - * - */ - /** - * @method frameRate - * @return {Number} current frameRate - */ - p5.prototype.frameRate = function(fps) { - p5._validateParameters('frameRate', arguments); - if (typeof fps !== 'number' || fps < 0) { - return this._frameRate; - } else { - this._setProperty('_targetFrameRate', fps); - return this; - } - }; - /** - * Returns the current framerate. - * - * @private - * @return {Number} current frameRate - */ - p5.prototype.getFrameRate = function() { - return this.frameRate(); - }; - - /** - * Specifies the number of frames to be displayed every second. For example, - * the function call frameRate(30) will attempt to refresh 30 times a second. - * If the processor is not fast enough to maintain the specified rate, the - * frame rate will not be achieved. Setting the frame rate within setup() is - * recommended. The default rate is 60 frames per second. - * - * Calling frameRate() with no arguments returns the current framerate. - * - * @private - * @param {Number} [fps] number of frames to be displayed every second - */ - p5.prototype.setFrameRate = function(fps) { - return this.frameRate(fps); - }; - - /** - * Hides the cursor from view. - * - * @method noCursor - * @example - *
- * function setup() { - * noCursor(); - * } - * - * function draw() { - * background(200); - * ellipse(mouseX, mouseY, 10, 10); - * } - *
- * - * - * @alt - * cursor becomes 10x 10 white ellipse the moves with mouse x and y. - * - */ - p5.prototype.noCursor = function() { - this._curElement.elt.style.cursor = 'none'; - }; - - /** - * System variable that stores the width of the screen display according to The - * default pixelDensity. This is used to run a - * full-screen program on any display size. To return actual screen size, - * multiply this by pixelDensity. - * - * @property {Number} displayWidth - * @readOnly - * @example - *
- * createCanvas(displayWidth, displayHeight); - *
- * - * @alt - * cursor becomes 10x 10 white ellipse the moves with mouse x and y. - * - */ - p5.prototype.displayWidth = screen.width; - - /** - * System variable that stores the height of the screen display according to The - * default pixelDensity. This is used to run a - * full-screen program on any display size. To return actual screen size, - * multiply this by pixelDensity. - * - * @property {Number} displayHeight - * @readOnly - * @example - *
- * createCanvas(displayWidth, displayHeight); - *
- * - * @alt - * no display. - * - */ - p5.prototype.displayHeight = screen.height; - - /** - * System variable that stores the width of the inner window, it maps to - * window.innerWidth. - * - * @property {Number} windowWidth - * @readOnly - * @example - *
- * createCanvas(windowWidth, windowHeight); - *
- * - * @alt - * no display. - * - */ - p5.prototype.windowWidth = getWindowWidth(); - /** - * System variable that stores the height of the inner window, it maps to - * window.innerHeight. - * - * @property {Number} windowHeight - * @readOnly - * @example - *
- * createCanvas(windowWidth, windowHeight); - *
- *@alt - * no display. - * - */ - p5.prototype.windowHeight = getWindowHeight(); - - /** - * The windowResized() function is called once every time the browser window - * is resized. This is a good place to resize the canvas or do any other - * adjustments to accommodate the new window size. - * - * @method windowResized - * @example - *
- * function setup() { - * createCanvas(windowWidth, windowHeight); - * } - * - * function draw() { - * background(0, 100, 200); - * } - * - * function windowResized() { - * resizeCanvas(windowWidth, windowHeight); - * } - *
- * @alt - * no display. - */ - p5.prototype._onresize = function(e) { - this._setProperty('windowWidth', getWindowWidth()); - this._setProperty('windowHeight', getWindowHeight()); - var context = this._isGlobal ? window : this; - var executeDefault; - if (typeof context.windowResized === 'function') { - executeDefault = context.windowResized(e); - if (executeDefault !== undefined && !executeDefault) { - e.preventDefault(); - } - } - }; - - function getWindowWidth() { - return ( - window.innerWidth || - (document.documentElement && document.documentElement.clientWidth) || - (document.body && document.body.clientWidth) || - 0 - ); - } - - function getWindowHeight() { - return ( - window.innerHeight || - (document.documentElement && document.documentElement.clientHeight) || - (document.body && document.body.clientHeight) || - 0 - ); - } - - /** - * System variable that stores the width of the drawing canvas. This value - * is set by the first parameter of the createCanvas() function. - * For example, the function call createCanvas(320, 240) sets the width - * variable to the value 320. The value of width defaults to 100 if - * createCanvas() is not used in a program. - * - * @property {Number} width - * @readOnly - */ - p5.prototype.width = 0; - - /** - * System variable that stores the height of the drawing canvas. This value - * is set by the second parameter of the createCanvas() function. For - * example, the function call createCanvas(320, 240) sets the height - * variable to the value 240. The value of height defaults to 100 if - * createCanvas() is not used in a program. - * - * @property {Number} height - * @readOnly - */ - p5.prototype.height = 0; - - /** - * If argument is given, sets the sketch to fullscreen or not based on the - * value of the argument. If no argument is given, returns the current - * fullscreen state. Note that due to browser restrictions this can only - * be called on user input, for example, on mouse press like the example - * below. - * - * @method fullscreen - * @param {Boolean} [val] whether the sketch should be in fullscreen mode - * or not - * @return {Boolean} current fullscreen state - * @example - *
- * - * // Clicking in the box toggles fullscreen on and off. - * function setup() { - * background(200); - * } - * function mousePressed() { - * if (mouseX > 0 && mouseX < 100 && mouseY > 0 && mouseY < 100) { - * let fs = fullscreen(); - * fullscreen(!fs); - * } - * } - * - *
- * - * @alt - * no display. - * - */ - p5.prototype.fullscreen = function(val) { - p5._validateParameters('fullscreen', arguments); - // no arguments, return fullscreen or not - if (typeof val === 'undefined') { - return ( - document.fullscreenElement || - document.webkitFullscreenElement || - document.mozFullScreenElement || - document.msFullscreenElement - ); - } else { - // otherwise set to fullscreen or not - if (val) { - launchFullscreen(document.documentElement); - } else { - exitFullscreen(); - } - } - }; - - /** - * Sets the pixel scaling for high pixel density displays. By default - * pixel density is set to match display density, call pixelDensity(1) - * to turn this off. Calling pixelDensity() with no arguments returns - * the current pixel density of the sketch. - * - * @method pixelDensity - * @param {Number} val whether or how much the sketch should scale - * @chainable - * @example - *
- * - * function setup() { - * pixelDensity(1); - * createCanvas(100, 100); - * background(200); - * ellipse(width / 2, height / 2, 50, 50); - * } - * - *
- *
- * - * function setup() { - * pixelDensity(3.0); - * createCanvas(100, 100); - * background(200); - * ellipse(width / 2, height / 2, 50, 50); - * } - * - *
- * - * @alt - * fuzzy 50x50 white ellipse with black outline in center of canvas. - * sharp 50x50 white ellipse with black outline in center of canvas. - */ - /** - * @method pixelDensity - * @returns {Number} current pixel density of the sketch - */ - p5.prototype.pixelDensity = function(val) { - p5._validateParameters('pixelDensity', arguments); - var returnValue; - if (typeof val === 'number') { - if (val !== this._pixelDensity) { - this._pixelDensity = val; - this._pixelsDirty = true; - } - returnValue = this; - this.resizeCanvas(this.width, this.height, true); // as a side effect, it will clear the canvas - } else { - returnValue = this._pixelDensity; - } - return returnValue; - }; - - /** - * Returns the pixel density of the current display the sketch is running on. - * - * @method displayDensity - * @returns {Number} current pixel density of the display - * @example - *
- * - * function setup() { - * let density = displayDensity(); - * pixelDensity(density); - * createCanvas(100, 100); - * background(200); - * ellipse(width / 2, height / 2, 50, 50); - * } - * - *
- * - * @alt - * 50x50 white ellipse with black outline in center of canvas. - */ - p5.prototype.displayDensity = function() { - return window.devicePixelRatio; - }; - - function launchFullscreen(element) { - var enabled = - document.fullscreenEnabled || - document.webkitFullscreenEnabled || - document.mozFullScreenEnabled || - document.msFullscreenEnabled; - if (!enabled) { - throw new Error('Fullscreen not enabled in this browser.'); - } - if (element.requestFullscreen) { - element.requestFullscreen(); - } else if (element.mozRequestFullScreen) { - element.mozRequestFullScreen(); - } else if (element.webkitRequestFullscreen) { - element.webkitRequestFullscreen(); - } else if (element.msRequestFullscreen) { - element.msRequestFullscreen(); - } - } - - function exitFullscreen() { - if (document.exitFullscreen) { - document.exitFullscreen(); - } else if (document.mozCancelFullScreen) { - document.mozCancelFullScreen(); - } else if (document.webkitExitFullscreen) { - document.webkitExitFullscreen(); - } else if (document.msExitFullscreen) { - document.msExitFullscreen(); - } - } - - /** - * Gets the current URL. - * @method getURL - * @return {String} url - * @example - *
- * - * let url; - * let x = 100; - * - * function setup() { - * fill(0); - * noStroke(); - * url = getURL(); - * } - * - * function draw() { - * background(200); - * text(url, x, height / 2); - * x--; - * } - * - *
- * - * @alt - * current url (http://p5js.org/reference/#/p5/getURL) moves right to left. - * - */ - p5.prototype.getURL = function() { - return location.href; - }; - /** - * Gets the current URL path as an array. - * @method getURLPath - * @return {String[]} path components - * @example - *
- * function setup() { - * let urlPath = getURLPath(); - * for (let i = 0; i < urlPath.length; i++) { - * text(urlPath[i], 10, i * 20 + 20); - * } - * } - *
- * - * @alt - *no display - * - */ - p5.prototype.getURLPath = function() { - return location.pathname.split('/').filter(function(v) { - return v !== ''; - }); - }; - /** - * Gets the current URL params as an Object. - * @method getURLParams - * @return {Object} URL params - * @example - *
- * - * // Example: http://p5js.org?year=2014&month=May&day=15 - * - * function setup() { - * let params = getURLParams(); - * text(params.day, 10, 20); - * text(params.month, 10, 40); - * text(params.year, 10, 60); - * } - * - *
- * @alt - * no display. - * - */ - p5.prototype.getURLParams = function() { - var re = /[?&]([^&=]+)(?:[&=])([^&=]+)/gim; - var m; - var v = {}; - while ((m = re.exec(location.search)) != null) { - if (m.index === re.lastIndex) { - re.lastIndex++; - } - v[m[1]] = m[2]; - } - return v; - }; - - module.exports = p5; - }, - { './constants': 18, './main': 24 } - ], - 20: [ - function(_dereq_, module, exports) { - /** - * @for p5 - * @requires core - */ - - 'use strict'; - function _typeof(obj) { - if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && - typeof Symbol === 'function' && - obj.constructor === Symbol && - obj !== Symbol.prototype - ? 'symbol' - : typeof obj; - }; - } - return _typeof(obj); - } - - var p5 = _dereq_('./main'); - var constants = _dereq_('./constants'); - - // p5.js blue, p5.js orange, auto dark green; fallback p5.js darkened magenta - // See testColors below for all the color codes and names - var typeColors = ['#2D7BB6', '#EE9900', '#4DB200', '#C83C00']; - - if (typeof IS_MINIFIED !== 'undefined') { - p5._validateParameters = p5._friendlyFileLoadError = p5._friendlyError = function() {}; - } else { - var doFriendlyWelcome = false; // TEMP until we get it all working LM - // for parameter validation - var dataDoc = _dereq_('../../docs/reference/data.json'); - var arrDoc = JSON.parse(JSON.stringify(dataDoc)); - - // -- Borrowed from jQuery 1.11.3 -- - var class2type = {}; - var toString = class2type.toString; - var names = [ - 'Boolean', - 'Number', - 'String', - 'Function', - 'Array', - 'Date', - 'RegExp', - 'Object', - 'Error' - ]; - - for (var n = 0; n < names.length; n++) { - class2type['[object ' + names[n] + ']'] = names[n].toLowerCase(); - } - var getType = function getType(obj) { - if (obj == null) { - return obj + ''; - } - return _typeof(obj) === 'object' || typeof obj === 'function' - ? class2type[toString.call(obj)] || 'object' - : _typeof(obj); - }; - - // -- End borrow -- - - var friendlyWelcome = function friendlyWelcome() { - // p5.js brand - magenta: #ED225D - //var astrixBgColor = 'transparent'; - //var astrixTxtColor = '#ED225D'; - //var welcomeBgColor = '#ED225D'; - //var welcomeTextColor = 'white'; - console.log( - ' _ \n' + - ' /\\| |/\\ \n' + - " \\ ` ' / \n" + - ' / , . \\ \n' + - ' \\/|_|\\/ ' + - '\n\n> p5.js says: Welcome! ' + - 'This is your friendly debugger. ' + - 'To turn me off switch to using โ€œp5.min.jsโ€.' - ); - }; - - /** - * Prints out a fancy, colorful message to the console log - * - * @method report - * @private - * @param {String} message the words to be said - * @param {String} func the name of the function to link - * @param {Number|String} color CSS color string or error type - * - * @return console logs - */ - var report = function report(message, func, color) { - if (doFriendlyWelcome) { - friendlyWelcome(); - doFriendlyWelcome = false; - } - if ('undefined' === getType(color)) { - color = '#B40033'; // dark magenta - } else if (getType(color) === 'number') { - // Type to color - color = typeColors[color]; - } - if (func === 'loadX') { - console.log('> p5.js says: ' + message); - } else if (func.substring(0, 4) === 'load') { - console.log( - '> p5.js says: ' + - message + - '[https://github.com/processing/p5.js/wiki/Local-server]' - ); - } else { - console.log( - '> p5.js says: ' + - message + - ' [http://p5js.org/reference/#p5/' + - func + - ']' - ); - } - }; - - var errorCases = { - '0': { - fileType: 'image', - method: 'loadImage', - message: ' hosting the image online,' - }, - - '1': { - fileType: 'XML file', - method: 'loadXML' - }, - - '2': { - fileType: 'table file', - method: 'loadTable' - }, - - '3': { - fileType: 'text file', - method: 'loadStrings' - }, - - '4': { - fileType: 'font', - method: 'loadFont', - message: ' hosting the font online,' - }, - - '5': { - fileType: 'json', - method: 'loadJSON' - }, - - '6': { - fileType: 'file', - method: 'loadBytes' - }, - - '7': { - method: 'loadX', - message: - "In case your large file isn't fetched successfully," + - 'we recommend splitting the file into smaller segments and fetching those.' - } - }; - - /** - * This is called internally if there is a error during file loading. - * - * @method _friendlyFileLoadError - * @private - * @param {Number} errorType - * @param {String} filePath - */ - p5._friendlyFileLoadError = function(errorType, filePath) { - var errorInfo = errorCases[errorType]; - var message; - if (errorType === 7) { - message = errorInfo.message; - } else { - message = - 'It looks like there was a problem' + - ' loading your ' + - errorInfo.fileType + - '.' + - ' Try checking if the file path [' + - filePath + - '] is correct,' + - (errorInfo.message || '') + - ' or running a local server.'; - } - report(message, errorInfo.method, 3); - }; - - /** - * This is a generic method that can be called from anywhere in the p5 - * library to alert users to a common error. - * - * @method _friendlyError - * @private - * @param {Number} message message to be printed - * @param {String} method name of method - */ - p5._friendlyError = function(message, method) { - report(message, method); - }; - - var docCache = {}; - var builtinTypes = [ - 'null', - 'number', - 'string', - 'boolean', - 'constant', - 'function', - 'any', - 'integer' - ]; - - // validateParameters() helper functions: - // lookupParamDoc() for querying data.json - var lookupParamDoc = function lookupParamDoc(func) { - // look for the docs in the `data.json` datastructure - - var ichDot = func.lastIndexOf('.'); - var funcName = func.substr(ichDot + 1); - var funcClass = func.substr(0, ichDot) || 'p5'; - - var queryResult; - var classitems = arrDoc.classitems; - for (var ici = 0; ici < classitems.length; ici++) { - var x = classitems[ici]; - if (x.name === funcName && x.class === funcClass) { - queryResult = x; - break; - } - } - - // different JSON structure for funct with multi-format - var overloads = []; - if (queryResult.hasOwnProperty('overloads')) { - // add all the overloads - for (var i = 0; i < queryResult.overloads.length; i++) { - overloads.push({ formats: queryResult.overloads[i].params }); - } - } else { - // no overloads, just add the main method definition - overloads.push({ formats: queryResult.params || [] }); - } - - // parse the parameter types for each overload - var mapConstants = {}; - var maxParams = 0; - overloads.forEach(function(overload) { - var formats = overload.formats; - - // keep a record of the maximum number of arguments - // this method requires. - if (maxParams < formats.length) { - maxParams = formats.length; - } - - // calculate the minimum number of arguments - // this overload requires. - var minParams = formats.length; - while (minParams > 0 && formats[minParams - 1].optional) { - minParams--; - } - overload.minParams = minParams; - - // loop through each parameter position, and parse its types - formats.forEach(function(format) { - // split this parameter's types - format.types = format.type.split('|').map(function ct(type) { - // array - if (type.substr(type.length - 2, 2) === '[]') { - return { - name: type, - array: ct(type.substr(0, type.length - 2)) - }; - } - - var lowerType = type.toLowerCase(); - - // contant - if (lowerType === 'constant') { - var constant; - if (mapConstants.hasOwnProperty(format.name)) { - constant = mapConstants[format.name]; - } else { - // parse possible constant values from description - var myRe = /either\s+(?:[A-Z0-9_]+\s*,?\s*(?:or)?\s*)+/g; - var values = {}; - var names = []; - - constant = mapConstants[format.name] = { - values: values, - names: names - }; - - var myArray = myRe.exec(format.description); - if (func === 'endShape' && format.name === 'mode') { - values[constants.CLOSE] = true; - names.push('CLOSE'); - } else { - var match = myArray[0]; - var reConst = /[A-Z0-9_]+/g; - var matchConst; - while ((matchConst = reConst.exec(match)) !== null) { - var name = matchConst[0]; - if (constants.hasOwnProperty(name)) { - values[constants[name]] = true; - names.push(name); - } - } - } - } - return { - name: type, - builtin: lowerType, - names: constant.names, - values: constant.values - }; - } - - // function - if (lowerType.substr(0, 'function'.length) === 'function') { - lowerType = 'function'; - } - // builtin - if (builtinTypes.indexOf(lowerType) >= 0) { - return { name: type, builtin: lowerType }; - } - - // find type's prototype - var t = window; - var typeParts = type.split('.'); - - // special-case 'p5' since it may be non-global - if (typeParts[0] === 'p5') { - t = p5; - typeParts.shift(); - } - - typeParts.forEach(function(p) { - t = t && t[p]; - }); - if (t) { - return { name: type, prototype: t }; - } - - return { name: type, type: lowerType }; - }); - }); - }); - return { - overloads: overloads, - maxParams: maxParams - }; - }; - - var isNumber = function isNumber(param) { - switch (_typeof(param)) { - case 'number': - return true; - case 'string': - return !isNaN(param); - default: - return false; - } - }; - - var testParamType = function testParamType(param, type) { - var isArray = param instanceof Array; - var matches = true; - if (type.array && isArray) { - for (var i = 0; i < param.length; i++) { - var error = testParamType(param[i], type.array); - if (error) return error / 2; // half error for elements - } - } else if (type.prototype) { - matches = param instanceof type.prototype; - } else if (type.builtin) { - switch (type.builtin) { - case 'number': - matches = isNumber(param); - break; - case 'integer': - matches = isNumber(param) && Number(param) === Math.floor(param); - break; - case 'boolean': - case 'any': - matches = true; - break; - case 'array': - matches = isArray; - break; - case 'string': - matches = /*typeof param === 'number' ||*/ typeof param === 'string'; - break; - case 'constant': - matches = type.values.hasOwnProperty(param); - break; - case 'function': - matches = param instanceof Function; - break; - case 'null': - matches = param === null; - break; - } - } else { - matches = _typeof(param) === type.t; - } - return matches ? 0 : 1; - }; - - // testType() for non-object type parameter validation - var testParamTypes = function testParamTypes(param, types) { - var minScore = 9999; - for (var i = 0; minScore > 0 && i < types.length; i++) { - var score = testParamType(param, types[i]); - if (minScore > score) minScore = score; - } - return minScore; - }; - - // generate a score (higher is worse) for applying these args to - // this overload. - var scoreOverload = function scoreOverload(args, argCount, overload, minScore) { - var score = 0; - var formats = overload.formats; - var minParams = overload.minParams; - - // check for too few/many args - // the score is double number of extra/missing args - if (argCount < minParams) { - score = (minParams - argCount) * 2; - } else if (argCount > formats.length) { - score = (argCount - formats.length) * 2; - } - - // loop through the formats, adding up the error score for each arg. - // quit early if the score gets higher than the previous best overload. - for (var p = 0; score <= minScore && p < formats.length; p++) { - var arg = args[p]; - var format = formats[p]; - // '== null' checks for 'null' and typeof 'undefined' - if (arg == null) { - // handle non-optional and non-trailing undefined args - if (!format.optional || p < minParams || p < argCount) { - score += 1; - } - } else { - score += testParamTypes(arg, format.types); - } - } - return score; - }; - - // gets a list of errors for this overload - var getOverloadErrors = function getOverloadErrors(args, argCount, overload) { - var formats = overload.formats; - var minParams = overload.minParams; - - // check for too few/many args - if (argCount < minParams) { - return [ - { - type: 'TOO_FEW_ARGUMENTS', - argCount: argCount, - minParams: minParams - } - ]; - } else if (argCount > formats.length) { - return [ - { - type: 'TOO_MANY_ARGUMENTS', - argCount: argCount, - maxParams: formats.length - } - ]; - } - - var errorArray = []; - for (var p = 0; p < formats.length; p++) { - var arg = args[p]; - var format = formats[p]; - // '== null' checks for 'null' and typeof 'undefined' - if (arg == null) { - // handle non-optional and non-trailing undefined args - if (!format.optional || p < minParams || p < argCount) { - errorArray.push({ - type: 'EMPTY_VAR', - position: p, - format: format - }); - } - } else if (testParamTypes(arg, format.types) > 0) { - errorArray.push({ - type: 'WRONG_TYPE', - position: p, - format: format, - arg: arg - }); - } - } - - return errorArray; - }; - - // a custom error type, used by the mocha - // tests when expecting validation errors - p5.ValidationError = (function(name) { - var err = function err(message, func) { - this.message = message; - this.func = func; - if ('captureStackTrace' in Error) Error.captureStackTrace(this, err); - else this.stack = new Error().stack; - }; - err.prototype = Object.create(Error.prototype); - err.prototype.name = name; - err.prototype.constructor = err; - return err; - })('ValidationError'); - - // function for generating console.log() msg - p5._friendlyParamError = function(errorObj, func) { - var message; - - function formatType() { - var format = errorObj.format; - return format.types - .map(function(type) { - return type.names ? type.names.join('|') : type.name; - }) - .join('|'); - } - - switch (errorObj.type) { - case 'EMPTY_VAR': - message = - func + - '() was expecting ' + - formatType() + - ' for parameter #' + - errorObj.position + - ' (zero-based index), received an empty variable instead.' + - ' If not intentional, this is often a problem with scope:' + - ' [https://p5js.org/examples/data-variable-scope.html]'; - break; - case 'WRONG_TYPE': - var arg = errorObj.arg; - var argType = - arg instanceof Array - ? 'array' - : arg === null ? 'null' : arg.name || _typeof(arg); - message = - func + - '() was expecting ' + - formatType() + - ' for parameter #' + - errorObj.position + - ' (zero-based index), received ' + - argType + - ' instead'; - break; - case 'TOO_FEW_ARGUMENTS': - message = - func + - '() was expecting at least ' + - errorObj.minParams + - ' arguments, but received only ' + - errorObj.argCount; - break; - case 'TOO_MANY_ARGUMENTS': - message = - func + - '() was expecting no more than ' + - errorObj.maxParams + - ' arguments, but received ' + - errorObj.argCount; - break; - } - - if (message) { - if (p5._throwValidationErrors) { - throw new p5.ValidationError(message); - } - - try { - var re = /Function\.validateParameters.*[\r\n].*[\r\n].*\(([^)]*)/; - var location = re.exec(new Error().stack)[1]; - if (location) { - message += ' at ' + location; - } - } catch (err) {} - - report(message + '.', func, 3); - } - }; - - /** - * Validates parameters - * param {String} func the name of the function - * param {Array} args user input arguments - * - * example: - * var a; - * ellipse(10,10,a,5); - * console ouput: - * "It looks like ellipse received an empty variable in spot #2." - * - * example: - * ellipse(10,"foo",5,5); - * console output: - * "ellipse was expecting a number for parameter #1, - * received "foo" instead." - */ - p5._validateParameters = function validateParameters(func, args) { - if (p5.disableFriendlyErrors) { - return; // skip FES - } - - // lookup the docs in the 'data.json' file - var docs = docCache[func] || (docCache[func] = lookupParamDoc(func)); - var overloads = docs.overloads; - - // ignore any trailing `undefined` arguments - var argCount = args.length; - // '== null' checks for 'null' and typeof 'undefined' - while (argCount > 0 && args[argCount - 1] == null) { - argCount--; - } - - // find the overload with the best score - var minScore = 99999; - var minOverload; - for (var i = 0; i < overloads.length; i++) { - var score = scoreOverload(args, argCount, overloads[i], minScore); - if (score === 0) { - return; // done! - } else if (minScore > score) { - // this score is better that what we have so far... - minScore = score; - minOverload = i; - } - } - - // this should _always_ be true here... - if (minScore > 0) { - // get the errors for the best overload - var errorArray = getOverloadErrors(args, argCount, overloads[minOverload]); - - // generate err msg - for (var n = 0; n < errorArray.length; n++) { - p5._friendlyParamError(errorArray[n], func); - } - } - }; - - /** - * Prints out all the colors in the color pallete with white text. - * For color blindness testing. - */ - /* function testColors() { - var str = 'A box of biscuits, a box of mixed biscuits and a biscuit mixer'; - report(str, 'print', '#ED225D'); // p5.js magenta - report(str, 'print', '#2D7BB6'); // p5.js blue - report(str, 'print', '#EE9900'); // p5.js orange - report(str, 'print', '#A67F59'); // p5.js light brown - report(str, 'print', '#704F21'); // p5.js gold - report(str, 'print', '#1CC581'); // auto cyan - report(str, 'print', '#FF6625'); // auto orange - report(str, 'print', '#79EB22'); // auto green - report(str, 'print', '#B40033'); // p5.js darkened magenta - report(str, 'print', '#084B7F'); // p5.js darkened blue - report(str, 'print', '#945F00'); // p5.js darkened orange - report(str, 'print', '#6B441D'); // p5.js darkened brown - report(str, 'print', '#2E1B00'); // p5.js darkened gold - report(str, 'print', '#008851'); // auto dark cyan - report(str, 'print', '#C83C00'); // auto dark orange - report(str, 'print', '#4DB200'); // auto dark green - } */ - - p5.prototype._validateParameters = p5.validateParameters; - } - - // This is a lazily-defined list of p5 symbols that may be - // misused by beginners at top-level code, outside of setup/draw. We'd like - // to detect these errors and help the user by suggesting they move them - // into setup/draw. - // - // For more details, see https://github.com/processing/p5.js/issues/1121. - var misusedAtTopLevelCode = null; - var FAQ_URL = - 'https://github.com/processing/p5.js/wiki/p5.js-overview' + - '#why-cant-i-assign-variables-using-p5-functions-and-' + - 'variables-before-setup'; - - var defineMisusedAtTopLevelCode = function defineMisusedAtTopLevelCode() { - var uniqueNamesFound = {}; - - var getSymbols = function getSymbols(obj) { - return Object.getOwnPropertyNames(obj) - .filter(function(name) { - if (name[0] === '_') { - return false; - } - if (name in uniqueNamesFound) { - return false; - } - - uniqueNamesFound[name] = true; - - return true; - }) - .map(function(name) { - var type; - - if (typeof obj[name] === 'function') { - type = 'function'; - } else if (name === name.toUpperCase()) { - type = 'constant'; - } else { - type = 'variable'; - } - - return { name: name, type: type }; - }); - }; - - misusedAtTopLevelCode = [].concat( - getSymbols(p5.prototype), - // At present, p5 only adds its constants to p5.prototype during - // construction, which may not have happened at the time a - // ReferenceError is thrown, so we'll manually add them to our list. - getSymbols(_dereq_('./constants')) - ); - - // This will ultimately ensure that we report the most specific error - // possible to the user, e.g. advising them about HALF_PI instead of PI - // when their code misuses the former. - misusedAtTopLevelCode.sort(function(a, b) { - return b.name.length - a.name.length; - }); - }; - - var helpForMisusedAtTopLevelCode = function helpForMisusedAtTopLevelCode(e, log) { - if (!log) { - log = console.log.bind(console); - } - - if (!misusedAtTopLevelCode) { - defineMisusedAtTopLevelCode(); - } - - // If we find that we're logging lots of false positives, we can - // uncomment the following code to avoid displaying anything if the - // user's code isn't likely to be using p5's global mode. (Note that - // setup/draw are more likely to be defined due to JS function hoisting.) - // - //if (!('setup' in window || 'draw' in window)) { - // return; - //} - - misusedAtTopLevelCode.some(function(symbol) { - // Note that while just checking for the occurrence of the - // symbol name in the error message could result in false positives, - // a more rigorous test is difficult because different browsers - // log different messages, and the format of those messages may - // change over time. - // - // For example, if the user uses 'PI' in their code, it may result - // in any one of the following messages: - // - // * 'PI' is undefined (Microsoft Edge) - // * ReferenceError: PI is undefined (Firefox) - // * Uncaught ReferenceError: PI is not defined (Chrome) - - if (e.message && e.message.match('\\W?' + symbol.name + '\\W') !== null) { - log( - "Did you just try to use p5.js's " + - symbol.name + - (symbol.type === 'function' ? '() ' : ' ') + - symbol.type + - '? If so, you may want to ' + - "move it into your sketch's setup() function.\n\n" + - 'For more details, see: ' + - FAQ_URL - ); - - return true; - } - }); - }; - - // Exposing this primarily for unit testing. - p5.prototype._helpForMisusedAtTopLevelCode = helpForMisusedAtTopLevelCode; - - if (document.readyState !== 'complete') { - window.addEventListener('error', helpForMisusedAtTopLevelCode, false); - - // Our job is only to catch ReferenceErrors that are thrown when - // global (non-instance mode) p5 APIs are used at the top-level - // scope of a file, so we'll unbind our error listener now to make - // sure we don't log false positives later. - window.addEventListener('load', function() { - window.removeEventListener('error', helpForMisusedAtTopLevelCode, false); - }); - } - - module.exports = p5; - }, - { '../../docs/reference/data.json': 1, './constants': 18, './main': 24 } - ], - 21: [ - function(_dereq_, module, exports) { - /** - * @requires constants - */ - - 'use strict'; - - var constants = _dereq_('./constants'); - - module.exports = { - modeAdjust: function modeAdjust(a, b, c, d, mode) { - if (mode === constants.CORNER) { - return { x: a, y: b, w: c, h: d }; - } else if (mode === constants.CORNERS) { - return { x: a, y: b, w: c - a, h: d - b }; - } else if (mode === constants.RADIUS) { - return { x: a - c, y: b - d, w: 2 * c, h: 2 * d }; - } else if (mode === constants.CENTER) { - return { x: a - c * 0.5, y: b - d * 0.5, w: c, h: d }; - } - } - }; - }, - { './constants': 18 } - ], - 22: [ - function(_dereq_, module, exports) { - 'use strict'; - - var p5 = _dereq_('../core/main'); - - /** - * _globalInit - * - * TODO: ??? - * if sketch is on window - * assume "global" mode - * and instantiate p5 automatically - * otherwise do nothing - * - * @private - * @return {Undefined} - */ - var _globalInit = function _globalInit() { - if (!window.mocha) { - // If there is a setup or draw function on the window - // then instantiate p5 in "global" mode - if ( - ((window.setup && typeof window.setup === 'function') || - (window.draw && typeof window.draw === 'function')) && - !p5.instance - ) { - new p5(); - } - } - }; - - // TODO: ??? - - // if the page is ready, initialize p5 immediately - if (document.readyState === 'complete') { - _globalInit(); - // if the page is still loading, add an event listener - // and initialize p5 as soon as it finishes loading - } else { - window.addEventListener('load', _globalInit, false); - } - }, - { '../core/main': 24 } - ], - 23: [ - function(_dereq_, module, exports) { - /** - * @for p5 - * @requires core - * These are functions that are part of the Processing API but are not part of - * the p5.js API. In some cases they have a new name, in others, they are - * removed completely. Not all unsupported Processing functions are listed here - * but we try to include ones that a user coming from Processing might likely - * call. - */ - - 'use strict'; - - var p5 = _dereq_('./main'); - - p5.prototype.pushStyle = function() { - throw new Error('pushStyle() not used, see push()'); - }; - - p5.prototype.popStyle = function() { - throw new Error('popStyle() not used, see pop()'); - }; - - p5.prototype.popMatrix = function() { - throw new Error('popMatrix() not used, see pop()'); - }; - - p5.prototype.printMatrix = function() { - throw new Error( - 'printMatrix() is not implemented in p5.js, ' + - 'refer to [https://simonsarris.com/a-transformation-class-for-canvas-to-keep-track-of-the-transformation-matrix/] ' + - 'to add your own implementation.' - ); - }; - - p5.prototype.pushMatrix = function() { - throw new Error('pushMatrix() not used, see push()'); - }; - - module.exports = p5; - }, - { './main': 24 } - ], - 24: [ - function(_dereq_, module, exports) { - /** - * @module Structure - * @submodule Structure - * @for p5 - * @requires constants - */ - - 'use strict'; - - _dereq_('./shim'); - - // Core needs the PVariables object - var constants = _dereq_('./constants'); - - /** - * This is the p5 instance constructor. - * - * A p5 instance holds all the properties and methods related to - * a p5 sketch. It expects an incoming sketch closure and it can also - * take an optional node parameter for attaching the generated p5 canvas - * to a node. The sketch closure takes the newly created p5 instance as - * its sole argument and may optionally set preload(), setup(), and/or - * draw() properties on it for running a sketch. - * - * A p5 sketch can run in "global" or "instance" mode: - * "global" - all properties and methods are attached to the window - * "instance" - all properties and methods are bound to this p5 object - * - * @class p5 - * @constructor - * @param {function} sketch a closure that can set optional preload(), - * setup(), and/or draw() properties on the - * given p5 instance - * @param {HTMLElement} [node] element to attach canvas to - * @return {p5} a p5 instance - */ - var p5 = function p5(sketch, node, sync) { - ////////////////////////////////////////////// - // PUBLIC p5 PROPERTIES AND METHODS - ////////////////////////////////////////////// - - /** - * Called directly before setup(), the preload() function is used to handle - * asynchronous loading of external files in a blocking way. If a preload - * function is defined, setup() will wait until any load calls within have - * finished. Nothing besides load calls (loadImage, loadJSON, loadFont, - * loadStrings, etc.) should be inside the preload function. If asynchronous - * loading is preferred, the load methods can instead be called in setup() - * or anywhere else with the use of a callback parameter. - *

- * By default the text "loading..." will be displayed. To make your own - * loading page, include an HTML element with id "p5_loading" in your - * page. More information here. - * - * @method preload - * @example - *
- * let img; - * let c; - * function preload() { - * // preload() runs once - * img = loadImage('assets/laDefense.jpg'); - * } - * - * function setup() { - * // setup() waits until preload() is done - * img.loadPixels(); - * // get color of middle pixel - * c = img.get(img.width / 2, img.height / 2); - * } - * - * function draw() { - * background(c); - * image(img, 25, 25, 50, 50); - * } - *
- * - * @alt - * nothing displayed - * - */ - - /** - * The setup() function is called once when the program starts. It's used to - * define initial environment properties such as screen size and background - * color and to load media such as images and fonts as the program starts. - * There can only be one setup() function for each program and it shouldn't - * be called again after its initial execution. - *

- * Note: Variables declared within setup() are not accessible within other - * functions, including draw(). - * - * @method setup - * @example - *
- * let a = 0; - * - * function setup() { - * background(0); - * noStroke(); - * fill(102); - * } - * - * function draw() { - * rect(a++ % width, 10, 2, 80); - * } - *
- * - * @alt - * nothing displayed - * - */ - - /** - * Called directly after setup(), the draw() function continuously executes - * the lines of code contained inside its block until the program is stopped - * or noLoop() is called. Note if noLoop() is called in setup(), draw() will - * still be executed once before stopping. draw() is called automatically and - * should never be called explicitly. - *

- * It should always be controlled with noLoop(), redraw() and loop(). After - * noLoop() stops the code in draw() from executing, redraw() causes the - * code inside draw() to execute once, and loop() will cause the code - * inside draw() to resume executing continuously. - *

- * The number of times draw() executes in each second may be controlled with - * the frameRate() function. - *

- * There can only be one draw() function for each sketch, and draw() must - * exist if you want the code to run continuously, or to process events such - * as mousePressed(). Sometimes, you might have an empty call to draw() in - * your program, as shown in the above example. - *

- * It is important to note that the drawing coordinate system will be reset - * at the beginning of each draw() call. If any transformations are performed - * within draw() (ex: scale, rotate, translate), their effects will be - * undone at the beginning of draw(), so transformations will not accumulate - * over time. On the other hand, styling applied (ex: fill, stroke, etc) will - * remain in effect. - * - * @method draw - * @example - *
- * let yPos = 0; - * function setup() { - * // setup() runs once - * frameRate(30); - * } - * function draw() { - * // draw() loops forever, until stopped - * background(204); - * yPos = yPos - 1; - * if (yPos < 0) { - * yPos = height; - * } - * line(0, yPos, width, yPos); - * } - *
- * - * @alt - * nothing displayed - * - */ - - ////////////////////////////////////////////// - // PRIVATE p5 PROPERTIES AND METHODS - ////////////////////////////////////////////// - - this._setupDone = false; - // for handling hidpi - this._pixelDensity = Math.ceil(window.devicePixelRatio) || 1; - this._userNode = node; - this._curElement = null; - this._elements = []; - this._glAttributes = null; - this._requestAnimId = 0; - this._preloadCount = 0; - this._isGlobal = false; - this._loop = true; - this._initializeInstanceVariables(); - this._defaultCanvasSize = { - width: 100, - height: 100 - }; - - this._events = { - // keep track of user-events for unregistering later - mousemove: null, - mousedown: null, - mouseup: null, - dragend: null, - dragover: null, - click: null, - dblclick: null, - mouseover: null, - mouseout: null, - keydown: null, - keyup: null, - keypress: null, - touchstart: null, - touchmove: null, - touchend: null, - resize: null, - blur: null - }; - - this._events.wheel = null; - this._loadingScreenId = 'p5_loading'; - - // Allows methods to be registered on an instance that - // are instance-specific. - this._registeredMethods = {}; - var methods = Object.getOwnPropertyNames(p5.prototype._registeredMethods); - for (var i = 0; i < methods.length; i++) { - var prop = methods[i]; - this._registeredMethods[prop] = p5.prototype._registeredMethods[prop].slice(); - } - - if (window.DeviceOrientationEvent) { - this._events.deviceorientation = null; - } - if (window.DeviceMotionEvent && !window._isNodeWebkit) { - this._events.devicemotion = null; - } - - this._start = function() { - // Find node if id given - if (this._userNode) { - if (typeof this._userNode === 'string') { - this._userNode = document.getElementById(this._userNode); - } - } - - var context = this._isGlobal ? window : this; - var userPreload = context.preload; - if (userPreload) { - // Setup loading screen - // Set loading screen into dom if not present - // Otherwise displays and removes user provided loading screen - var loadingScreen = document.getElementById(this._loadingScreenId); - if (!loadingScreen) { - loadingScreen = document.createElement('div'); - loadingScreen.innerHTML = 'Loading...'; - loadingScreen.style.position = 'absolute'; - loadingScreen.id = this._loadingScreenId; - var node = this._userNode || document.body; - node.appendChild(loadingScreen); - } - var methods = this._preloadMethods; - for (var method in methods) { - // default to p5 if no object defined - methods[method] = methods[method] || p5; - var obj = methods[method]; - //it's p5, check if it's global or instance - if (obj === p5.prototype || obj === p5) { - if (this._isGlobal) { - window[method] = this._wrapPreload(this, method); - } - obj = this; - } - this._registeredPreloadMethods[method] = obj[method]; - obj[method] = this._wrapPreload(obj, method); - } - - userPreload(); - this._runIfPreloadsAreDone(); - } else { - this._setup(); - this._draw(); - } - }.bind(this); - - this._runIfPreloadsAreDone = function() { - var context = this._isGlobal ? window : this; - if (context._preloadCount === 0) { - var loadingScreen = document.getElementById(context._loadingScreenId); - if (loadingScreen) { - loadingScreen.parentNode.removeChild(loadingScreen); - } - context._setup(); - context._draw(); - } - }; - - this._decrementPreload = function() { - var context = this._isGlobal ? window : this; - if (typeof context.preload === 'function') { - context._setProperty('_preloadCount', context._preloadCount - 1); - context._runIfPreloadsAreDone(); - } - }; - - this._wrapPreload = function(obj, fnName) { - return function() { - //increment counter - this._incrementPreload(); - //call original function - return this._registeredPreloadMethods[fnName].apply(obj, arguments); - }.bind(this); - }; - - this._incrementPreload = function() { - var context = this._isGlobal ? window : this; - context._setProperty('_preloadCount', context._preloadCount + 1); - }; - - this._setup = function() { - // Always create a default canvas. - // Later on if the user calls createCanvas, this default one - // will be replaced - this.createCanvas( - this._defaultCanvasSize.width, - this._defaultCanvasSize.height, - 'p2d' - ); - - // return preload functions to their normal vals if switched by preload - var context = this._isGlobal ? window : this; - if (typeof context.preload === 'function') { - for (var f in this._preloadMethods) { - context[f] = this._preloadMethods[f][f]; - if (context[f] && this) { - context[f] = context[f].bind(this); - } - } - } - - // Short-circuit on this, in case someone used the library in "global" - // mode earlier - if (typeof context.setup === 'function') { - context.setup(); - } - - // unhide any hidden canvases that were created - var canvases = document.getElementsByTagName('canvas'); - for (var i = 0; i < canvases.length; i++) { - var k = canvases[i]; - if (k.dataset.hidden === 'true') { - k.style.visibility = ''; - delete k.dataset.hidden; - } - } - this._setupDone = true; - }.bind(this); - - this._draw = function() { - var now = window.performance.now(); - var time_since_last = now - this._lastFrameTime; - var target_time_between_frames = 1000 / this._targetFrameRate; - - // only draw if we really need to; don't overextend the browser. - // draw if we're within 5ms of when our next frame should paint - // (this will prevent us from giving up opportunities to draw - // again when it's really about time for us to do so). fixes an - // issue where the frameRate is too low if our refresh loop isn't - // in sync with the browser. note that we have to draw once even - // if looping is off, so we bypass the time delay if that - // is the case. - var epsilon = 5; - if (!this._loop || time_since_last >= target_time_between_frames - epsilon) { - //mandatory update values(matrixs and stack) - - this.redraw(); - this._frameRate = 1000.0 / (now - this._lastFrameTime); - this.deltaTime = now - this._lastFrameTime; - this._setProperty('deltaTime', this.deltaTime); - this._lastFrameTime = now; - - // If the user is actually using mouse module, then update - // coordinates, otherwise skip. We can test this by simply - // checking if any of the mouse functions are available or not. - // NOTE : This reflects only in complete build or modular build. - if (typeof this._updateMouseCoords !== 'undefined') { - this._updateMouseCoords(); - } - } - - // get notified the next time the browser gives us - // an opportunity to draw. - if (this._loop) { - this._requestAnimId = window.requestAnimationFrame(this._draw); - } - }.bind(this); - - this._setProperty = function(prop, value) { - this[prop] = value; - if (this._isGlobal) { - window[prop] = value; - } - }.bind(this); - - /** - * Removes the entire p5 sketch. This will remove the canvas and any - * elements created by p5.js. It will also stop the draw loop and unbind - * any properties or methods from the window global scope. It will - * leave a variable p5 in case you wanted to create a new p5 sketch. - * If you like, you can set p5 = null to erase it. While all functions and - * variables and objects created by the p5 library will be removed, any - * other global variables created by your code will remain. - * - * @method remove - * @example - *
- * function draw() { - * ellipse(50, 50, 10, 10); - * } - * - * function mousePressed() { - * remove(); // remove whole sketch on mouse press - * } - *
- * - * @alt - * nothing displayed - * - */ - this.remove = function() { - var loadingScreen = document.getElementById(this._loadingScreenId); - if (loadingScreen) { - loadingScreen.parentNode.removeChild(loadingScreen); - // Add 1 to preload counter to prevent the sketch ever executing setup() - this._incrementPreload(); - } - if (this._curElement) { - // stop draw - this._loop = false; - if (this._requestAnimId) { - window.cancelAnimationFrame(this._requestAnimId); - } - - // unregister events sketch-wide - for (var ev in this._events) { - window.removeEventListener(ev, this._events[ev]); - } - - // remove DOM elements created by p5, and listeners - for (var i = 0; i < this._elements.length; i++) { - var e = this._elements[i]; - if (e.elt.parentNode) { - e.elt.parentNode.removeChild(e.elt); - } - for (var elt_ev in e._events) { - e.elt.removeEventListener(elt_ev, e._events[elt_ev]); - } - } - - // call any registered remove functions - var self = this; - this._registeredMethods.remove.forEach(function(f) { - if (typeof f !== 'undefined') { - f.call(self); - } - }); - } - // remove window bound properties and methods - if (this._isGlobal) { - for (var p in p5.prototype) { - try { - delete window[p]; - } catch (x) { - window[p] = undefined; - } - } - for (var p2 in this) { - if (this.hasOwnProperty(p2)) { - try { - delete window[p2]; - } catch (x) { - window[p2] = undefined; - } - } - } - p5.instance = null; - } - }.bind(this); - - // call any registered init functions - this._registeredMethods.init.forEach(function(f) { - if (typeof f !== 'undefined') { - f.call(this); - } - }, this); - - var friendlyBindGlobal = this._createFriendlyGlobalFunctionBinder(); - - // If the user has created a global setup or draw function, - // assume "global" mode and make everything global (i.e. on the window) - if (!sketch) { - this._isGlobal = true; - p5.instance = this; - // Loop through methods on the prototype and attach them to the window - for (var p in p5.prototype) { - if (typeof p5.prototype[p] === 'function') { - var ev = p.substring(2); - if (!this._events.hasOwnProperty(ev)) { - if (Math.hasOwnProperty(p) && Math[p] === p5.prototype[p]) { - // Multiple p5 methods are just native Math functions. These can be - // called without any binding. - friendlyBindGlobal(p, p5.prototype[p]); - } else { - friendlyBindGlobal(p, p5.prototype[p].bind(this)); - } - } - } else { - friendlyBindGlobal(p, p5.prototype[p]); - } - } - // Attach its properties to the window - for (var p2 in this) { - if (this.hasOwnProperty(p2)) { - friendlyBindGlobal(p2, this[p2]); - } - } - } else { - // Else, the user has passed in a sketch closure that may set - // user-provided 'setup', 'draw', etc. properties on this instance of p5 - sketch(this); - } - - // Bind events to window (not using container div bc key events don't work) - - for (var e in this._events) { - var f = this['_on' + e]; - if (f) { - var m = f.bind(this); - window.addEventListener(e, m, { passive: false }); - this._events[e] = m; - } - } - - var focusHandler = function() { - this._setProperty('focused', true); - }.bind(this); - var blurHandler = function() { - this._setProperty('focused', false); - }.bind(this); - window.addEventListener('focus', focusHandler); - window.addEventListener('blur', blurHandler); - this.registerMethod('remove', function() { - window.removeEventListener('focus', focusHandler); - window.removeEventListener('blur', blurHandler); - }); - - if (document.readyState === 'complete') { - this._start(); - } else { - window.addEventListener('load', this._start.bind(this), false); - } - }; - - p5.prototype._initializeInstanceVariables = function() { - this._styles = []; - - this._bezierDetail = 20; - this._curveDetail = 20; - - this._colorMode = constants.RGB; - this._colorMaxes = { - rgb: [255, 255, 255, 255], - hsb: [360, 100, 100, 1], - hsl: [360, 100, 100, 1] - }; - - this._pixelsDirty = true; - - this._downKeys = {}; //Holds the key codes of currently pressed keys - }; - - // This is a pointer to our global mode p5 instance, if we're in - // global mode. - p5.instance = null; - - /** - * Allows for the friendly error system (FES) to be turned off when creating a sketch, - * which can give a significant boost to performance when needed. - * See - * disabling the friendly error system. - * - * @property {Boolean} disableFriendlyErrors - * @example - *
- * p5.disableFriendlyErrors = true; - * - * function setup() { - * createCanvas(100, 50); - * } - *
- */ - p5.disableFriendlyErrors = false; - - // attach constants to p5 prototype - for (var k in constants) { - p5.prototype[k] = constants[k]; - } - - // functions that cause preload to wait - // more can be added by using registerPreloadMethod(func) - p5.prototype._preloadMethods = { - loadJSON: p5.prototype, - loadImage: p5.prototype, - loadStrings: p5.prototype, - loadXML: p5.prototype, - loadBytes: p5.prototype, - loadTable: p5.prototype, - loadFont: p5.prototype, - loadModel: p5.prototype, - loadShader: p5.prototype - }; - - p5.prototype._registeredMethods = { init: [], pre: [], post: [], remove: [] }; - - p5.prototype._registeredPreloadMethods = {}; - - p5.prototype.registerPreloadMethod = function(fnString, obj) { - // obj = obj || p5.prototype; - if (!p5.prototype._preloadMethods.hasOwnProperty(fnString)) { - p5.prototype._preloadMethods[fnString] = obj; - } - }; - - p5.prototype.registerMethod = function(name, m) { - var target = this || p5.prototype; - if (!target._registeredMethods.hasOwnProperty(name)) { - target._registeredMethods[name] = []; - } - target._registeredMethods[name].push(m); - }; - - // create a function which provides a standardized process for binding - // globals; this is implemented as a factory primarily so that there's a - // way to redefine what "global" means for the binding function so it - // can be used in scenarios like unit testing where the window object - // might not exist - p5.prototype._createFriendlyGlobalFunctionBinder = function(options) { - options = options || {}; - - var globalObject = options.globalObject || window; - var log = options.log || console.log.bind(console); - var propsToForciblyOverwrite = { - // p5.print actually always overwrites an existing global function, - // albeit one that is very unlikely to be used: - // - // https://developer.mozilla.org/en-US/docs/Web/API/Window/print - print: true - }; - - return function(prop, value) { - if ( - !p5.disableFriendlyErrors && - typeof IS_MINIFIED === 'undefined' && - typeof value === 'function' && - !(prop in p5.prototype._preloadMethods) - ) { - try { - // Because p5 has so many common function names, it's likely - // that users may accidentally overwrite global p5 functions with - // their own variables. Let's allow this but log a warning to - // help users who may be doing this unintentionally. - // - // For more information, see: - // - // https://github.com/processing/p5.js/issues/1317 - - if (prop in globalObject && !(prop in propsToForciblyOverwrite)) { - throw new Error('global "' + prop + '" already exists'); - } - - // It's possible that this might throw an error because there - // are a lot of edge-cases in which `Object.defineProperty` might - // not succeed; since this functionality is only intended to - // help beginners anyways, we'll just catch such an exception - // if it occurs, and fall back to legacy behavior. - Object.defineProperty(globalObject, prop, { - configurable: true, - enumerable: true, - get: function get() { - return value; - }, - set: function set(newValue) { - Object.defineProperty(globalObject, prop, { - configurable: true, - enumerable: true, - value: newValue, - writable: true - }); - - log( - 'You just changed the value of "' + - prop + - '", which was ' + - "a p5 function. This could cause problems later if you're " + - 'not careful.' - ); - } - }); - } catch (e) { - log( - 'p5 had problems creating the global function "' + - prop + - '", ' + - 'possibly because your code is already using that name as ' + - 'a variable. You may want to rename your variable to something ' + - 'else.' - ); - - globalObject[prop] = value; - } - } else { - globalObject[prop] = value; - } - }; - }; - - module.exports = p5; - }, - { './constants': 18, './shim': 34 } - ], - 25: [ - function(_dereq_, module, exports) { - /** - * @module DOM - * @submodule DOM - * @for p5.Element - */ - - 'use strict'; - - var p5 = _dereq_('./main'); - - /** - * Base class for all elements added to a sketch, including canvas, - * graphics buffers, and other HTML elements. Methods in blue are - * included in the core functionality, methods in brown are added - * with the p5.dom - * library. - * It is not called directly, but p5.Element - * objects are created by calling createCanvas, createGraphics, - * or in the p5.dom library, createDiv, createImg, createInput, etc. - * - * @class p5.Element - * @param {String} elt DOM node that is wrapped - * @param {p5} [pInst] pointer to p5 instance - */ - p5.Element = function(elt, pInst) { - /** - * Underlying HTML element. All normal HTML methods can be called on this. - * @example - *
- * - * function setup() { - * let c = createCanvas(50, 50); - * c.elt.style.border = '5px solid red'; - * } - * - * function draw() { - * background(220); - * } - * - *
- * - * @property elt - * @readOnly - */ - this.elt = elt; - this._pInst = this._pixelsState = pInst; - this._events = {}; - this.width = this.elt.offsetWidth; - this.height = this.elt.offsetHeight; - }; - - /** - * - * Attaches the element to the parent specified. A way of setting - * the container for the element. Accepts either a string ID, DOM - * node, or p5.Element. If no arguments given, parent node is returned. - * For more ways to position the canvas, see the - * - * positioning the canvas wiki page. - * - * All above examples except for the first one require the inclusion of - * the p5.dom library in your index.html. See the - * using a library - * section for information on how to include this library. - * - * @method parent - * @param {String|p5.Element|Object} parent the ID, DOM node, or p5.Element - * of desired parent element - * @chainable - * - * @example - *
- * // in the html file: - * // <div id="myContainer"></div> - * - * // in the js file: - * let cnv = createCanvas(100, 100); - * cnv.parent('myContainer'); - *
- *
- * let div0 = createDiv('this is the parent'); - * let div1 = createDiv('this is the child'); - * div1.parent(div0); // use p5.Element - *
- *
- * let div0 = createDiv('this is the parent'); - * div0.id('apples'); - * let div1 = createDiv('this is the child'); - * div1.parent('apples'); // use id - *
- *
- * let elt = document.getElementById('myParentDiv'); - * let div1 = createDiv('this is the child'); - * div1.parent(elt); // use element from page - *
- * - * @alt - * no display. - */ - /** - * @method parent - * @return {p5.Element} - * - */ - p5.Element.prototype.parent = function(p) { - if (typeof p === 'undefined') { - return this.elt.parentNode; - } - - if (typeof p === 'string') { - if (p[0] === '#') { - p = p.substring(1); - } - p = document.getElementById(p); - } else if (p instanceof p5.Element) { - p = p.elt; - } - p.appendChild(this.elt); - return this; - }; - - /** - * - * Sets the ID of the element. If no ID argument is passed in, it instead - * returns the current ID of the element. - * Note that only one element can have a particular id in a page. - * The .class() function can be used - * to identify multiple elements with the same class name. - * - * @method id - * @param {String} id ID of the element - * @chainable - * - * @example - *
- * function setup() { - * let cnv = createCanvas(100, 100); - * // Assigns a CSS selector ID to - * // the canvas element. - * cnv.id('mycanvas'); - * } - *
- * - * @alt - * no display. - */ - /** - * @method id - * @return {String} the id of the element - */ - p5.Element.prototype.id = function(id) { - if (typeof id === 'undefined') { - return this.elt.id; - } - - this.elt.id = id; - this.width = this.elt.offsetWidth; - this.height = this.elt.offsetHeight; - return this; - }; - - /** - * - * Adds given class to the element. If no class argument is passed in, it - * instead returns a string containing the current class(es) of the element. - * - * @method class - * @param {String} class class to add - * @chainable - * - * @example - *
- * function setup() { - * let cnv = createCanvas(100, 100); - * // Assigns a CSS selector class 'small' - * // to the canvas element. - * cnv.class('small'); - * } - *
- * - * @alt - * no display. - */ - /** - * @method class - * @return {String} the class of the element - */ - p5.Element.prototype.class = function(c) { - if (typeof c === 'undefined') { - return this.elt.className; - } - - this.elt.className = c; - return this; - }; - - /** - * The .mousePressed() function is called once after every time a - * mouse button is pressed over the element. - * Some mobile browsers may also trigger this event on a touch screen, - * if the user performs a quick tap. - * This can be used to attach element specific event listeners. - * - * @method mousePressed - * @param {Function|Boolean} fxn function to be fired when mouse is - * pressed over the element. - * if `false` is passed instead, the previously - * firing function will no longer fire. - * @chainable - * @example - *
- * let cnv; - * let d; - * let g; - * function setup() { - * cnv = createCanvas(100, 100); - * cnv.mousePressed(changeGray); // attach listener for - * // canvas click only - * d = 10; - * g = 100; - * } - * - * function draw() { - * background(g); - * ellipse(width / 2, height / 2, d, d); - * } - * - * // this function fires with any click anywhere - * function mousePressed() { - * d = d + 10; - * } - * - * // this function fires only when cnv is clicked - * function changeGray() { - * g = random(0, 255); - * } - *
- * - * @alt - * no display. - * - */ - p5.Element.prototype.mousePressed = function(fxn) { - // Prepend the mouse property setters to the event-listener. - // This is required so that mouseButton is set correctly prior to calling the callback (fxn). - // For details, see https://github.com/processing/p5.js/issues/3087. - var eventPrependedFxn = function eventPrependedFxn(event) { - this._pInst._setProperty('mouseIsPressed', true); - this._pInst._setMouseButton(event); - // Pass along the return-value of the callback: - return fxn.call(this); - }; - // Pass along the event-prepended form of the callback. - p5.Element._adjustListener('mousedown', eventPrependedFxn, this); - return this; - }; - - /** - * The .doubleClicked() function is called once after every time a - * mouse button is pressed twice over the element. This can be used to - * attach element and action specific event listeners. - * - * @method doubleClicked - * @param {Function|Boolean} fxn function to be fired when mouse is - * double clicked over the element. - * if `false` is passed instead, the previously - * firing function will no longer fire. - * @return {p5.Element} - * @example - *
- * let cnv; - * let d; - * let g; - * function setup() { - * cnv = createCanvas(100, 100); - * cnv.doubleClicked(changeGray); // attach listener for - * // canvas double click only - * d = 10; - * g = 100; - * } - * - * function draw() { - * background(g); - * ellipse(width / 2, height / 2, d, d); - * } - * - * // this function fires with any double click anywhere - * function doubleClicked() { - * d = d + 10; - * } - * - * // this function fires only when cnv is double clicked - * function changeGray() { - * g = random(0, 255); - * } - *
- * - * @alt - * no display. - * - */ - p5.Element.prototype.doubleClicked = function(fxn) { - p5.Element._adjustListener('dblclick', fxn, this); - return this; - }; - - /** - * The .mouseWheel() function is called once after every time a - * mouse wheel is scrolled over the element. This can be used to - * attach element specific event listeners. - *

- * The function accepts a callback function as argument which will be executed - * when the `wheel` event is triggered on the element, the callback function is - * passed one argument `event`. The `event.deltaY` property returns negative - * values if the mouse wheel is rotated up or away from the user and positive - * in the other direction. The `event.deltaX` does the same as `event.deltaY` - * except it reads the horizontal wheel scroll of the mouse wheel. - *

- * On OS X with "natural" scrolling enabled, the `event.deltaY` values are - * reversed. - * - * @method mouseWheel - * @param {Function|Boolean} fxn function to be fired when mouse is - * scrolled over the element. - * if `false` is passed instead, the previously - * firing function will no longer fire. - * @chainable - * @example - *
- * let cnv; - * let d; - * let g; - * function setup() { - * cnv = createCanvas(100, 100); - * cnv.mouseWheel(changeSize); // attach listener for - * // activity on canvas only - * d = 10; - * g = 100; - * } - * - * function draw() { - * background(g); - * ellipse(width / 2, height / 2, d, d); - * } - * - * // this function fires with mousewheel movement - * // anywhere on screen - * function mouseWheel() { - * g = g + 10; - * } - * - * // this function fires with mousewheel movement - * // over canvas only - * function changeSize(event) { - * if (event.deltaY > 0) { - * d = d + 10; - * } else { - * d = d - 10; - * } - * } - *
- * - * - * @alt - * no display. - * - */ - p5.Element.prototype.mouseWheel = function(fxn) { - p5.Element._adjustListener('wheel', fxn, this); - return this; - }; - - /** - * The .mouseReleased() function is called once after every time a - * mouse button is released over the element. - * Some mobile browsers may also trigger this event on a touch screen, - * if the user performs a quick tap. - * This can be used to attach element specific event listeners. - * - * @method mouseReleased - * @param {Function|Boolean} fxn function to be fired when mouse is - * released over the element. - * if `false` is passed instead, the previously - * firing function will no longer fire. - * @chainable - * @example - *
- * let cnv; - * let d; - * let g; - * function setup() { - * cnv = createCanvas(100, 100); - * cnv.mouseReleased(changeGray); // attach listener for - * // activity on canvas only - * d = 10; - * g = 100; - * } - * - * function draw() { - * background(g); - * ellipse(width / 2, height / 2, d, d); - * } - * - * // this function fires after the mouse has been - * // released - * function mouseReleased() { - * d = d + 10; - * } - * - * // this function fires after the mouse has been - * // released while on canvas - * function changeGray() { - * g = random(0, 255); - * } - *
- * - * - * @alt - * no display. - * - */ - p5.Element.prototype.mouseReleased = function(fxn) { - p5.Element._adjustListener('mouseup', fxn, this); - return this; - }; - - /** - * The .mouseClicked() function is called once after a mouse button is - * pressed and released over the element. - * Some mobile browsers may also trigger this event on a touch screen, - * if the user performs a quick tap. - * This can be used to attach element specific event listeners. - * - * @method mouseClicked - * @param {Function|Boolean} fxn function to be fired when mouse is - * clicked over the element. - * if `false` is passed instead, the previously - * firing function will no longer fire. - * @chainable - * @example - *
- * - * let cnv; - * let d; - * let g; - * - * function setup() { - * cnv = createCanvas(100, 100); - * cnv.mouseClicked(changeGray); // attach listener for - * // activity on canvas only - * d = 10; - * g = 100; - * } - * - * function draw() { - * background(g); - * ellipse(width / 2, height / 2, d, d); - * } - * - * // this function fires after the mouse has been - * // clicked anywhere - * function mouseClicked() { - * d = d + 10; - * } - * - * // this function fires after the mouse has been - * // clicked on canvas - * function changeGray() { - * g = random(0, 255); - * } - * - *
- * - * @alt - * no display. - * - */ - p5.Element.prototype.mouseClicked = function(fxn) { - p5.Element._adjustListener('click', fxn, this); - return this; - }; - - /** - * The .mouseMoved() function is called once every time a - * mouse moves over the element. This can be used to attach an - * element specific event listener. - * - * @method mouseMoved - * @param {Function|Boolean} fxn function to be fired when a mouse moves - * over the element. - * if `false` is passed instead, the previously - * firing function will no longer fire. - * @chainable - * @example - *
- * let cnv; - * let d = 30; - * let g; - * function setup() { - * cnv = createCanvas(100, 100); - * cnv.mouseMoved(changeSize); // attach listener for - * // activity on canvas only - * d = 10; - * g = 100; - * } - * - * function draw() { - * background(g); - * fill(200); - * ellipse(width / 2, height / 2, d, d); - * } - * - * // this function fires when mouse moves anywhere on - * // page - * function mouseMoved() { - * g = g + 5; - * if (g > 255) { - * g = 0; - * } - * } - * - * // this function fires when mouse moves over canvas - * function changeSize() { - * d = d + 2; - * if (d > 100) { - * d = 0; - * } - * } - *
- * - * - * @alt - * no display. - * - */ - p5.Element.prototype.mouseMoved = function(fxn) { - p5.Element._adjustListener('mousemove', fxn, this); - return this; - }; - - /** - * The .mouseOver() function is called once after every time a - * mouse moves onto the element. This can be used to attach an - * element specific event listener. - * - * @method mouseOver - * @param {Function|Boolean} fxn function to be fired when a mouse moves - * onto the element. - * if `false` is passed instead, the previously - * firing function will no longer fire. - * @chainable - * @example - *
- * let cnv; - * let d; - * function setup() { - * cnv = createCanvas(100, 100); - * cnv.mouseOver(changeGray); - * d = 10; - * } - * - * function draw() { - * ellipse(width / 2, height / 2, d, d); - * } - * - * function changeGray() { - * d = d + 10; - * if (d > 100) { - * d = 0; - * } - * } - *
- * - * - * @alt - * no display. - * - */ - p5.Element.prototype.mouseOver = function(fxn) { - p5.Element._adjustListener('mouseover', fxn, this); - return this; - }; - - /** - * The .mouseOut() function is called once after every time a - * mouse moves off the element. This can be used to attach an - * element specific event listener. - * - * @method mouseOut - * @param {Function|Boolean} fxn function to be fired when a mouse - * moves off of an element. - * if `false` is passed instead, the previously - * firing function will no longer fire. - * @chainable - * @example - *
- * let cnv; - * let d; - * function setup() { - * cnv = createCanvas(100, 100); - * cnv.mouseOut(changeGray); - * d = 10; - * } - * - * function draw() { - * ellipse(width / 2, height / 2, d, d); - * } - * - * function changeGray() { - * d = d + 10; - * if (d > 100) { - * d = 0; - * } - * } - *
- * - * @alt - * no display. - * - */ - p5.Element.prototype.mouseOut = function(fxn) { - p5.Element._adjustListener('mouseout', fxn, this); - return this; - }; - - /** - * The .touchStarted() function is called once after every time a touch is - * registered. This can be used to attach element specific event listeners. - * - * @method touchStarted - * @param {Function|Boolean} fxn function to be fired when a touch - * starts over the element. - * if `false` is passed instead, the previously - * firing function will no longer fire. - * @chainable - * @example - *
- * let cnv; - * let d; - * let g; - * function setup() { - * cnv = createCanvas(100, 100); - * cnv.touchStarted(changeGray); // attach listener for - * // canvas click only - * d = 10; - * g = 100; - * } - * - * function draw() { - * background(g); - * ellipse(width / 2, height / 2, d, d); - * } - * - * // this function fires with any touch anywhere - * function touchStarted() { - * d = d + 10; - * } - * - * // this function fires only when cnv is clicked - * function changeGray() { - * g = random(0, 255); - * } - *
- * - * @alt - * no display. - * - */ - p5.Element.prototype.touchStarted = function(fxn) { - p5.Element._adjustListener('touchstart', fxn, this); - return this; - }; - - /** - * The .touchMoved() function is called once after every time a touch move is - * registered. This can be used to attach element specific event listeners. - * - * @method touchMoved - * @param {Function|Boolean} fxn function to be fired when a touch moves over - * the element. - * if `false` is passed instead, the previously - * firing function will no longer fire. - * @chainable - * @example - *
- * let cnv; - * let g; - * function setup() { - * cnv = createCanvas(100, 100); - * cnv.touchMoved(changeGray); // attach listener for - * // canvas click only - * g = 100; - * } - * - * function draw() { - * background(g); - * } - * - * // this function fires only when cnv is clicked - * function changeGray() { - * g = random(0, 255); - * } - *
- * - * @alt - * no display. - * - */ - p5.Element.prototype.touchMoved = function(fxn) { - p5.Element._adjustListener('touchmove', fxn, this); - return this; - }; - - /** - * The .touchEnded() function is called once after every time a touch is - * registered. This can be used to attach element specific event listeners. - * - * @method touchEnded - * @param {Function|Boolean} fxn function to be fired when a touch ends - * over the element. - * if `false` is passed instead, the previously - * firing function will no longer fire. - * @chainable - * @example - *
- * let cnv; - * let d; - * let g; - * function setup() { - * cnv = createCanvas(100, 100); - * cnv.touchEnded(changeGray); // attach listener for - * // canvas click only - * d = 10; - * g = 100; - * } - * - * function draw() { - * background(g); - * ellipse(width / 2, height / 2, d, d); - * } - * - * // this function fires with any touch anywhere - * function touchEnded() { - * d = d + 10; - * } - * - * // this function fires only when cnv is clicked - * function changeGray() { - * g = random(0, 255); - * } - *
- * - * - * @alt - * no display. - * - */ - p5.Element.prototype.touchEnded = function(fxn) { - p5.Element._adjustListener('touchend', fxn, this); - return this; - }; - - /** - * The .dragOver() function is called once after every time a - * file is dragged over the element. This can be used to attach an - * element specific event listener. - * - * @method dragOver - * @param {Function|Boolean} fxn function to be fired when a file is - * dragged over the element. - * if `false` is passed instead, the previously - * firing function will no longer fire. - * @chainable - * @example - *
- * // To test this sketch, simply drag a - * // file over the canvas - * function setup() { - * let c = createCanvas(100, 100); - * background(200); - * textAlign(CENTER); - * text('Drag file', width / 2, height / 2); - * c.dragOver(dragOverCallback); - * } - * - * // This function will be called whenever - * // a file is dragged over the canvas - * function dragOverCallback() { - * background(240); - * text('Dragged over', width / 2, height / 2); - * } - *
- * @alt - * nothing displayed - */ - p5.Element.prototype.dragOver = function(fxn) { - p5.Element._adjustListener('dragover', fxn, this); - return this; - }; - - /** - * The .dragLeave() function is called once after every time a - * dragged file leaves the element area. This can be used to attach an - * element specific event listener. - * - * @method dragLeave - * @param {Function|Boolean} fxn function to be fired when a file is - * dragged off the element. - * if `false` is passed instead, the previously - * firing function will no longer fire. - * @chainable - * @example - *
- * // To test this sketch, simply drag a file - * // over and then out of the canvas area - * function setup() { - * let c = createCanvas(100, 100); - * background(200); - * textAlign(CENTER); - * text('Drag file', width / 2, height / 2); - * c.dragLeave(dragLeaveCallback); - * } - * - * // This function will be called whenever - * // a file is dragged out of the canvas - * function dragLeaveCallback() { - * background(240); - * text('Dragged off', width / 2, height / 2); - * } - *
- * @alt - * nothing displayed - */ - p5.Element.prototype.dragLeave = function(fxn) { - p5.Element._adjustListener('dragleave', fxn, this); - return this; - }; - - // General handler for event attaching and detaching - p5.Element._adjustListener = function(ev, fxn, ctx) { - if (fxn === false) { - p5.Element._detachListener(ev, ctx); - } else { - p5.Element._attachListener(ev, fxn, ctx); - } - return this; - }; - - p5.Element._attachListener = function(ev, fxn, ctx) { - // detach the old listener if there was one - if (ctx._events[ev]) { - p5.Element._detachListener(ev, ctx); - } - var f = fxn.bind(ctx); - ctx.elt.addEventListener(ev, f, false); - ctx._events[ev] = f; - }; - - p5.Element._detachListener = function(ev, ctx) { - var f = ctx._events[ev]; - ctx.elt.removeEventListener(ev, f, false); - ctx._events[ev] = null; - }; - - /** - * Helper fxn for sharing pixel methods - * - */ - p5.Element.prototype._setProperty = function(prop, value) { - this[prop] = value; - }; - - module.exports = p5.Element; - }, - { './main': 24 } - ], - 26: [ - function(_dereq_, module, exports) { - /** - * @module Rendering - * @submodule Rendering - * @for p5 - */ - - 'use strict'; - - var p5 = _dereq_('./main'); - var constants = _dereq_('./constants'); - - /** - * Thin wrapper around a renderer, to be used for creating a - * graphics buffer object. Use this class if you need - * to draw into an off-screen graphics buffer. The two parameters define the - * width and height in pixels. The fields and methods for this class are - * extensive, but mirror the normal drawing API for p5. - * - * @class p5.Graphics - * @extends p5.Element - * @param {Number} w width - * @param {Number} h height - * @param {Constant} renderer the renderer to use, either P2D or WEBGL - * @param {p5} [pInst] pointer to p5 instance - */ - p5.Graphics = function(w, h, renderer, pInst) { - var r = renderer || constants.P2D; - - this.canvas = document.createElement('canvas'); - var node = pInst._userNode || document.body; - node.appendChild(this.canvas); - - p5.Element.call(this, this.canvas, pInst); - - // bind methods and props of p5 to the new object - for (var p in p5.prototype) { - if (!this[p]) { - if (typeof p5.prototype[p] === 'function') { - this[p] = p5.prototype[p].bind(this); - } else { - this[p] = p5.prototype[p]; - } - } - } - - p5.prototype._initializeInstanceVariables.apply(this); - this.width = w; - this.height = h; - this._pixelDensity = pInst._pixelDensity; - - if (r === constants.WEBGL) { - this._renderer = new p5.RendererGL(this.canvas, this, false); - } else { - this._renderer = new p5.Renderer2D(this.canvas, this, false); - } - pInst._elements.push(this); - - this._renderer.resize(w, h); - this._renderer._applyDefaults(); - return this; - }; - - p5.Graphics.prototype = Object.create(p5.Element.prototype); - - /** - * Resets certain values such as those modified by functions in the Transform category - * and in the Lights category that are not automatically reset - * with graphics buffer objects. Calling this in draw() will copy the behavior - * of the standard canvas. - * - * @method reset - * @example - * - *
- * let pg; - * function setup() { - * createCanvas(100, 100); - * background(0); - * pg = createGraphics(50, 100); - * pg.fill(0); - * frameRate(5); - * } - * function draw() { - * image(pg, width / 2, 0); - * pg.background(255); - * // p5.Graphics object behave a bit differently in some cases - * // The normal canvas on the left resets the translate - * // with every loop through draw() - * // the graphics object on the right doesn't automatically reset - * // so translate() is additive and it moves down the screen - * rect(0, 0, width / 2, 5); - * pg.rect(0, 0, width / 2, 5); - * translate(0, 5, 0); - * pg.translate(0, 5, 0); - * } - * function mouseClicked() { - * // if you click you will see that - * // reset() resets the translate back to the initial state - * // of the Graphics object - * pg.reset(); - * } - *
- * - * @alt - * A white line on a black background stays still on the top-left half. - * A black line animates from top to bottom on a white background on the right half. - * When clicked, the black line starts back over at the top. - * - */ - p5.Graphics.prototype.reset = function() { - this._renderer.resetMatrix(); - if (this._renderer.isP3D) { - this._renderer._update(); - } - }; - - /** - * Removes a Graphics object from the page and frees any resources - * associated with it. - * - * @method remove - * - * @example - *
- * let bg; - * function setup() { - * bg = createCanvas(100, 100); - * bg.background(0); - * image(bg, 0, 0); - * bg.remove(); - * } - *
- * - *
- * let bg; - * function setup() { - * pixelDensity(1); - * createCanvas(100, 100); - * stroke(255); - * fill(0); - * - * // create and draw the background image - * bg = createGraphics(100, 100); - * bg.background(200); - * bg.ellipse(50, 50, 80, 80); - * } - * function draw() { - * let t = millis() / 1000; - * // draw the background - * if (bg) { - * image(bg, frameCount % 100, 0); - * image(bg, frameCount % 100 - 100, 0); - * } - * // draw the foreground - * let p = p5.Vector.fromAngle(t, 35).add(50, 50); - * ellipse(p.x, p.y, 30); - * } - * function mouseClicked() { - * // remove the background - * if (bg) { - * bg.remove(); - * bg = null; - * } - * } - *
- * - * @alt - * no image - * a multi-colored circle moving back and forth over a scrolling background. - * - */ - p5.Graphics.prototype.remove = function() { - if (this.elt.parentNode) { - this.elt.parentNode.removeChild(this.elt); - } - var idx = this._pInst._elements.indexOf(this); - if (idx !== -1) { - this._pInst._elements.splice(idx, 1); - } - for (var elt_ev in this._events) { - this.elt.removeEventListener(elt_ev, this._events[elt_ev]); - } - }; - - module.exports = p5.Graphics; - }, - { './constants': 18, './main': 24 } - ], - 27: [ - function(_dereq_, module, exports) { - /** - * @module Rendering - * @submodule Rendering - * @for p5 - */ - - 'use strict'; - function _typeof(obj) { - if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && - typeof Symbol === 'function' && - obj.constructor === Symbol && - obj !== Symbol.prototype - ? 'symbol' - : typeof obj; - }; - } - return _typeof(obj); - } - - var p5 = _dereq_('./main'); - var constants = _dereq_('../core/constants'); - - /** - * Main graphics and rendering context, as well as the base API - * implementation for p5.js "core". To be used as the superclass for - * Renderer2D and Renderer3D classes, respecitvely. - * - * @class p5.Renderer - * @constructor - * @extends p5.Element - * @param {String} elt DOM node that is wrapped - * @param {p5} [pInst] pointer to p5 instance - * @param {Boolean} [isMainCanvas] whether we're using it as main canvas - */ - p5.Renderer = function(elt, pInst, isMainCanvas) { - p5.Element.call(this, elt, pInst); - this.canvas = elt; - this._pixelsState = pInst; - if (isMainCanvas) { - this._isMainCanvas = true; - // for pixel method sharing with pimage - this._pInst._setProperty('_curElement', this); - this._pInst._setProperty('canvas', this.canvas); - this._pInst._setProperty('width', this.width); - this._pInst._setProperty('height', this.height); - } else { - // hide if offscreen buffer by default - this.canvas.style.display = 'none'; - this._styles = []; // non-main elt styles stored in p5.Renderer - } - - this._textSize = 12; - this._textLeading = 15; - this._textFont = 'sans-serif'; - this._textStyle = constants.NORMAL; - this._textAscent = null; - this._textDescent = null; - this._textAlign = constants.LEFT; - this._textBaseline = constants.BASELINE; - - this._rectMode = constants.CORNER; - this._ellipseMode = constants.CENTER; - this._curveTightness = 0; - this._imageMode = constants.CORNER; - - this._tint = null; - this._doStroke = true; - this._doFill = true; - this._strokeSet = false; - this._fillSet = false; - }; - - p5.Renderer.prototype = Object.create(p5.Element.prototype); - - // the renderer should return a 'style' object that it wishes to - // store on the push stack. - p5.Renderer.prototype.push = function() { - return { - properties: { - _doStroke: this._doStroke, - _strokeSet: this._strokeSet, - _doFill: this._doFill, - _fillSet: this._fillSet, - _tint: this._tint, - _imageMode: this._imageMode, - _rectMode: this._rectMode, - _ellipseMode: this._ellipseMode, - _textFont: this._textFont, - _textLeading: this._textLeading, - _textSize: this._textSize, - _textAlign: this._textAlign, - _textBaseline: this._textBaseline, - _textStyle: this._textStyle - } - }; - }; - - // a pop() operation is in progress - // the renderer is passed the 'style' object that it returned - // from its push() method. - p5.Renderer.prototype.pop = function(style) { - if (style.properties) { - // copy the style properties back into the renderer - Object.assign(this, style.properties); - } - }; - - /** - * Resize our canvas element. - */ - p5.Renderer.prototype.resize = function(w, h) { - this.width = w; - this.height = h; - this.elt.width = w * this._pInst._pixelDensity; - this.elt.height = h * this._pInst._pixelDensity; - this.elt.style.width = w + 'px'; - this.elt.style.height = h + 'px'; - if (this._isMainCanvas) { - this._pInst._setProperty('width', this.width); - this._pInst._setProperty('height', this.height); - } - }; - - p5.Renderer.prototype.get = function(x, y, w, h) { - var pixelsState = this._pixelsState; - var pd = pixelsState._pixelDensity; - var canvas = this.canvas; - - if (typeof x === 'undefined' && typeof y === 'undefined') { - // get() - x = y = 0; - w = pixelsState.width; - h = pixelsState.height; - } else { - x *= pd; - y *= pd; - - if (typeof w === 'undefined' && typeof h === 'undefined') { - // get(x,y) - if (x < 0 || y < 0 || x >= canvas.width || y >= canvas.height) { - return [0, 0, 0, 0]; - } - - return this._getPixel(x, y); - } - // get(x,y,w,h) - } - - var region = new p5.Image(w, h); - region.canvas - .getContext('2d') - .drawImage(canvas, x, y, w * pd, h * pd, 0, 0, w, h); - - return region; - }; - - p5.Renderer.prototype.textLeading = function(l) { - if (typeof l === 'number') { - this._setProperty('_textLeading', l); - return this._pInst; - } - - return this._textLeading; - }; - - p5.Renderer.prototype.textSize = function(s) { - if (typeof s === 'number') { - this._setProperty('_textSize', s); - this._setProperty('_textLeading', s * constants._DEFAULT_LEADMULT); - return this._applyTextProperties(); - } - - return this._textSize; - }; - - p5.Renderer.prototype.textStyle = function(s) { - if (s) { - if ( - s === constants.NORMAL || - s === constants.ITALIC || - s === constants.BOLD || - s === constants.BOLDITALIC - ) { - this._setProperty('_textStyle', s); - } - - return this._applyTextProperties(); - } - - return this._textStyle; - }; - - p5.Renderer.prototype.textAscent = function() { - if (this._textAscent === null) { - this._updateTextMetrics(); - } - return this._textAscent; - }; - - p5.Renderer.prototype.textDescent = function() { - if (this._textDescent === null) { - this._updateTextMetrics(); - } - return this._textDescent; - }; - - p5.Renderer.prototype.textAlign = function(h, v) { - if (typeof h !== 'undefined') { - this._setProperty('_textAlign', h); - - if (typeof v !== 'undefined') { - this._setProperty('_textBaseline', v); - } - - return this._applyTextProperties(); - } else { - return { - horizontal: this._textAlign, - vertical: this._textBaseline - }; - } - }; - - p5.Renderer.prototype.text = function(str, x, y, maxWidth, maxHeight) { - var p = this._pInst, - cars, - n, - ii, - jj, - line, - testLine, - testWidth, - words, - totalHeight, - finalMaxHeight = Number.MAX_VALUE; - - if (!(this._doFill || this._doStroke)) { - return; - } - - if (typeof str === 'undefined') { - return; - } else if (typeof str !== 'string') { - str = str.toString(); - } - - str = str.replace(/(\t)/g, ' '); - cars = str.split('\n'); - - if (typeof maxWidth !== 'undefined') { - totalHeight = 0; - for (ii = 0; ii < cars.length; ii++) { - line = ''; - words = cars[ii].split(' '); - for (n = 0; n < words.length; n++) { - testLine = line + words[n] + ' '; - testWidth = this.textWidth(testLine); - if (testWidth > maxWidth) { - line = words[n] + ' '; - totalHeight += p.textLeading(); - } else { - line = testLine; - } - } - } - - if (this._rectMode === constants.CENTER) { - x -= maxWidth / 2; - y -= maxHeight / 2; - } - - switch (this._textAlign) { - case constants.CENTER: - x += maxWidth / 2; - break; - case constants.RIGHT: - x += maxWidth; - break; - } - - var baselineHacked = false; - if (typeof maxHeight !== 'undefined') { - switch (this._textBaseline) { - case constants.BOTTOM: - y += maxHeight - totalHeight; - break; - case constants.CENTER: - y += (maxHeight - totalHeight) / 2; - break; - case constants.BASELINE: - baselineHacked = true; - this._textBaseline = constants.TOP; - break; - } - - // remember the max-allowed y-position for any line (fix to #928) - finalMaxHeight = y + maxHeight - p.textAscent(); - } - - for (ii = 0; ii < cars.length; ii++) { - line = ''; - words = cars[ii].split(' '); - for (n = 0; n < words.length; n++) { - testLine = line + words[n] + ' '; - testWidth = this.textWidth(testLine); - if (testWidth > maxWidth && line.length > 0) { - this._renderText(p, line, x, y, finalMaxHeight); - line = words[n] + ' '; - y += p.textLeading(); - } else { - line = testLine; - } - } - - this._renderText(p, line, x, y, finalMaxHeight); - y += p.textLeading(); - - if (baselineHacked) { - this._textBaseline = constants.BASELINE; - } - } - } else { - // Offset to account for vertically centering multiple lines of text - no - // need to adjust anything for vertical align top or baseline - var offset = 0, - vAlign = p.textAlign().vertical; - if (vAlign === constants.CENTER) { - offset = (cars.length - 1) * p.textLeading() / 2; - } else if (vAlign === constants.BOTTOM) { - offset = (cars.length - 1) * p.textLeading(); - } - - for (jj = 0; jj < cars.length; jj++) { - this._renderText(p, cars[jj], x, y - offset, finalMaxHeight); - y += p.textLeading(); - } - } - - return p; - }; - - p5.Renderer.prototype._applyDefaults = function() { - return this; - }; - - /** - * Helper fxn to check font type (system or otf) - */ - p5.Renderer.prototype._isOpenType = function(f) { - f = f || this._textFont; - return _typeof(f) === 'object' && f.font && f.font.supported; - }; - - p5.Renderer.prototype._updateTextMetrics = function() { - if (this._isOpenType()) { - this._setProperty('_textAscent', this._textFont._textAscent()); - this._setProperty('_textDescent', this._textFont._textDescent()); - return this; - } - - // Adapted from http://stackoverflow.com/a/25355178 - var text = document.createElement('span'); - text.style.fontFamily = this._textFont; - text.style.fontSize = this._textSize + 'px'; - text.innerHTML = 'ABCjgq|'; - - var block = document.createElement('div'); - block.style.display = 'inline-block'; - block.style.width = '1px'; - block.style.height = '0px'; - - var container = document.createElement('div'); - container.appendChild(text); - container.appendChild(block); - - container.style.height = '0px'; - container.style.overflow = 'hidden'; - document.body.appendChild(container); - - block.style.verticalAlign = 'baseline'; - var blockOffset = calculateOffset(block); - var textOffset = calculateOffset(text); - var ascent = blockOffset[1] - textOffset[1]; - - block.style.verticalAlign = 'bottom'; - blockOffset = calculateOffset(block); - textOffset = calculateOffset(text); - var height = blockOffset[1] - textOffset[1]; - var descent = height - ascent; - - document.body.removeChild(container); - - this._setProperty('_textAscent', ascent); - this._setProperty('_textDescent', descent); - - return this; - }; - - /** - * Helper fxn to measure ascent and descent. - * Adapted from http://stackoverflow.com/a/25355178 - */ - function calculateOffset(object) { - var currentLeft = 0, - currentTop = 0; - if (object.offsetParent) { - do { - currentLeft += object.offsetLeft; - currentTop += object.offsetTop; - } while ((object = object.offsetParent)); - } else { - currentLeft += object.offsetLeft; - currentTop += object.offsetTop; - } - return [currentLeft, currentTop]; - } - - module.exports = p5.Renderer; - }, - { '../core/constants': 18, './main': 24 } - ], - 28: [ - function(_dereq_, module, exports) { - 'use strict'; - - var p5 = _dereq_('./main'); - var constants = _dereq_('./constants'); - var filters = _dereq_('../image/filters'); - - _dereq_('./p5.Renderer'); - - /** - * p5.Renderer2D - * The 2D graphics canvas renderer class. - * extends p5.Renderer - */ - var styleEmpty = 'rgba(0,0,0,0)'; - // var alphaThreshold = 0.00125; // minimum visible - - p5.Renderer2D = function(elt, pInst, isMainCanvas) { - p5.Renderer.call(this, elt, pInst, isMainCanvas); - this.drawingContext = this.canvas.getContext('2d'); - this._pInst._setProperty('drawingContext', this.drawingContext); - return this; - }; - - p5.Renderer2D.prototype = Object.create(p5.Renderer.prototype); - - p5.Renderer2D.prototype._applyDefaults = function() { - this._cachedFillStyle = this._cachedStrokeStyle = undefined; - this._setFill(constants._DEFAULT_FILL); - this._setStroke(constants._DEFAULT_STROKE); - this.drawingContext.lineCap = constants.ROUND; - this.drawingContext.font = 'normal 12px sans-serif'; - }; - - p5.Renderer2D.prototype.resize = function(w, h) { - p5.Renderer.prototype.resize.call(this, w, h); - this.drawingContext.scale(this._pInst._pixelDensity, this._pInst._pixelDensity); - }; - - ////////////////////////////////////////////// - // COLOR | Setting - ////////////////////////////////////////////// - - p5.Renderer2D.prototype.background = function() { - this.drawingContext.save(); - this.resetMatrix(); - - if (arguments[0] instanceof p5.Image) { - this._pInst.image(arguments[0], 0, 0, this.width, this.height); - } else { - var curFill = this._getFill(); - // create background rect - var color = this._pInst.color.apply(this._pInst, arguments); - var newFill = color.toString(); - this._setFill(newFill); - this.drawingContext.fillRect(0, 0, this.width, this.height); - // reset fill - this._setFill(curFill); - } - this.drawingContext.restore(); - - this._pixelsState._pixelsDirty = true; - }; - - p5.Renderer2D.prototype.clear = function() { - this.drawingContext.save(); - this.resetMatrix(); - this.drawingContext.clearRect(0, 0, this.width, this.height); - this.drawingContext.restore(); - - this._pixelsState._pixelsDirty = true; - }; - - p5.Renderer2D.prototype.fill = function() { - var color = this._pInst.color.apply(this._pInst, arguments); - this._setFill(color.toString()); - }; - - p5.Renderer2D.prototype.stroke = function() { - var color = this._pInst.color.apply(this._pInst, arguments); - this._setStroke(color.toString()); - }; - - ////////////////////////////////////////////// - // IMAGE | Loading & Displaying - ////////////////////////////////////////////// - - p5.Renderer2D.prototype.image = function( - img, - sx, - sy, - sWidth, - sHeight, - dx, - dy, - dWidth, - dHeight - ) { - var cnv; - try { - if (this._tint) { - if (p5.MediaElement && img instanceof p5.MediaElement) { - img.loadPixels(); - } - if (img.canvas) { - cnv = this._getTintedImageCanvas(img); - } - } - if (!cnv) { - cnv = img.canvas || img.elt; - } - var s = 1; - if (img.width && img.width > 0) { - s = cnv.width / img.width; - } - this.drawingContext.drawImage( - cnv, - s * sx, - s * sy, - s * sWidth, - s * sHeight, - dx, - dy, - dWidth, - dHeight - ); - } catch (e) { - if (e.name !== 'NS_ERROR_NOT_AVAILABLE') { - throw e; - } - } - - this._pixelsState._pixelsDirty = true; - }; - - p5.Renderer2D.prototype._getTintedImageCanvas = function(img) { - if (!img.canvas) { - return img; - } - var pixels = filters._toPixels(img.canvas); - var tmpCanvas = document.createElement('canvas'); - tmpCanvas.width = img.canvas.width; - tmpCanvas.height = img.canvas.height; - var tmpCtx = tmpCanvas.getContext('2d'); - var id = tmpCtx.createImageData(img.canvas.width, img.canvas.height); - var newPixels = id.data; - for (var i = 0; i < pixels.length; i += 4) { - var r = pixels[i]; - var g = pixels[i + 1]; - var b = pixels[i + 2]; - var a = pixels[i + 3]; - newPixels[i] = r * this._tint[0] / 255; - newPixels[i + 1] = g * this._tint[1] / 255; - newPixels[i + 2] = b * this._tint[2] / 255; - newPixels[i + 3] = a * this._tint[3] / 255; - } - tmpCtx.putImageData(id, 0, 0); - return tmpCanvas; - }; - - ////////////////////////////////////////////// - // IMAGE | Pixels - ////////////////////////////////////////////// - - p5.Renderer2D.prototype.blendMode = function(mode) { - if (mode === constants.SUBTRACT) { - console.warn('blendMode(SUBTRACT) only works in WEBGL mode.'); - } else if ( - mode === constants.BLEND || - mode === constants.DARKEST || - mode === constants.LIGHTEST || - mode === constants.DIFFERENCE || - mode === constants.MULTIPLY || - mode === constants.EXCLUSION || - mode === constants.SCREEN || - mode === constants.REPLACE || - mode === constants.OVERLAY || - mode === constants.HARD_LIGHT || - mode === constants.SOFT_LIGHT || - mode === constants.DODGE || - mode === constants.BURN || - mode === constants.ADD - ) { - this.drawingContext.globalCompositeOperation = mode; - } else { - throw new Error('Mode ' + mode + ' not recognized.'); - } - }; - - p5.Renderer2D.prototype.blend = function() { - var currBlend = this.drawingContext.globalCompositeOperation; - var blendMode = arguments[arguments.length - 1]; - - var copyArgs = Array.prototype.slice.call(arguments, 0, arguments.length - 1); - - this.drawingContext.globalCompositeOperation = blendMode; - if (this._pInst) { - this._pInst.copy.apply(this._pInst, copyArgs); - } else { - this.copy.apply(this, copyArgs); - } - this.drawingContext.globalCompositeOperation = currBlend; - }; - - p5.Renderer2D.prototype.copy = function() { - var srcImage, sx, sy, sw, sh, dx, dy, dw, dh; - if (arguments.length === 9) { - srcImage = arguments[0]; - sx = arguments[1]; - sy = arguments[2]; - sw = arguments[3]; - sh = arguments[4]; - dx = arguments[5]; - dy = arguments[6]; - dw = arguments[7]; - dh = arguments[8]; - } else if (arguments.length === 8) { - srcImage = this._pInst; - sx = arguments[0]; - sy = arguments[1]; - sw = arguments[2]; - sh = arguments[3]; - dx = arguments[4]; - dy = arguments[5]; - dw = arguments[6]; - dh = arguments[7]; - } else { - throw new Error('Signature not supported'); - } - p5.Renderer2D._copyHelper(this, srcImage, sx, sy, sw, sh, dx, dy, dw, dh); - - this._pixelsState._pixelsDirty = true; - }; - - p5.Renderer2D._copyHelper = function( - dstImage, - srcImage, - sx, - sy, - sw, - sh, - dx, - dy, - dw, - dh - ) { - srcImage.loadPixels(); - var s = srcImage.canvas.width / srcImage.width; - dstImage.drawingContext.drawImage( - srcImage.canvas, - s * sx, - s * sy, - s * sw, - s * sh, - dx, - dy, - dw, - dh - ); - }; - - // p5.Renderer2D.prototype.get = p5.Renderer.prototype.get; - // .get() is not overridden - - // x,y are canvas-relative (pre-scaled by _pixelDensity) - p5.Renderer2D.prototype._getPixel = function(x, y) { - var pixelsState = this._pixelsState; - var imageData, index; - if (pixelsState._pixelsDirty) { - imageData = this.drawingContext.getImageData(x, y, 1, 1).data; - index = 0; - } else { - imageData = pixelsState.pixels; - index = (Math.floor(x) + Math.floor(y) * this.canvas.width) * 4; - } - return [ - imageData[index + 0], - imageData[index + 1], - imageData[index + 2], - imageData[index + 3] - ]; - }; - - p5.Renderer2D.prototype.loadPixels = function() { - var pixelsState = this._pixelsState; // if called by p5.Image - if (!pixelsState._pixelsDirty) return; - pixelsState._pixelsDirty = false; - - var pd = pixelsState._pixelDensity; - var w = this.width * pd; - var h = this.height * pd; - var imageData = this.drawingContext.getImageData(0, 0, w, h); - // @todo this should actually set pixels per object, so diff buffers can - // have diff pixel arrays. - pixelsState._setProperty('imageData', imageData); - pixelsState._setProperty('pixels', imageData.data); - }; - - p5.Renderer2D.prototype.set = function(x, y, imgOrCol) { - // round down to get integer numbers - x = Math.floor(x); - y = Math.floor(y); - var pixelsState = this._pixelsState; - if (imgOrCol instanceof p5.Image) { - this.drawingContext.save(); - this.drawingContext.setTransform(1, 0, 0, 1, 0, 0); - this.drawingContext.scale( - pixelsState._pixelDensity, - pixelsState._pixelDensity - ); - - this.drawingContext.drawImage(imgOrCol.canvas, x, y); - this.drawingContext.restore(); - pixelsState._pixelsDirty = true; - } else { - var r = 0, - g = 0, - b = 0, - a = 0; - var idx = - 4 * - (y * pixelsState._pixelDensity * (this.width * pixelsState._pixelDensity) + - x * pixelsState._pixelDensity); - if (!pixelsState.imageData || pixelsState._pixelsDirty) { - pixelsState.loadPixels.call(pixelsState); - } - if (typeof imgOrCol === 'number') { - if (idx < pixelsState.pixels.length) { - r = imgOrCol; - g = imgOrCol; - b = imgOrCol; - a = 255; - //this.updatePixels.call(this); - } - } else if (imgOrCol instanceof Array) { - if (imgOrCol.length < 4) { - throw new Error('pixel array must be of the form [R, G, B, A]'); - } - if (idx < pixelsState.pixels.length) { - r = imgOrCol[0]; - g = imgOrCol[1]; - b = imgOrCol[2]; - a = imgOrCol[3]; - //this.updatePixels.call(this); - } - } else if (imgOrCol instanceof p5.Color) { - if (idx < pixelsState.pixels.length) { - r = imgOrCol.levels[0]; - g = imgOrCol.levels[1]; - b = imgOrCol.levels[2]; - a = imgOrCol.levels[3]; - //this.updatePixels.call(this); - } - } - // loop over pixelDensity * pixelDensity - for (var i = 0; i < pixelsState._pixelDensity; i++) { - for (var j = 0; j < pixelsState._pixelDensity; j++) { - // loop over - idx = - 4 * - ((y * pixelsState._pixelDensity + j) * - this.width * - pixelsState._pixelDensity + - (x * pixelsState._pixelDensity + i)); - pixelsState.pixels[idx] = r; - pixelsState.pixels[idx + 1] = g; - pixelsState.pixels[idx + 2] = b; - pixelsState.pixels[idx + 3] = a; - } - } - } - }; - - p5.Renderer2D.prototype.updatePixels = function(x, y, w, h) { - var pixelsState = this._pixelsState; - var pd = pixelsState._pixelDensity; - if (x === undefined && y === undefined && w === undefined && h === undefined) { - x = 0; - y = 0; - w = this.width; - h = this.height; - } - x *= pd; - y *= pd; - w *= pd; - h *= pd; - - this.drawingContext.putImageData(pixelsState.imageData, x, y, 0, 0, w, h); - - if (x !== 0 || y !== 0 || w !== this.width || h !== this.height) { - pixelsState._pixelsDirty = true; - } - }; - - ////////////////////////////////////////////// - // SHAPE | 2D Primitives - ////////////////////////////////////////////// - - /** - * Generate a cubic Bezier representing an arc on the unit circle of total - * angle `size` radians, beginning `start` radians above the x-axis. Up to - * four of these curves are combined to make a full arc. - * - * See www.joecridge.me/bezier.pdf for an explanation of the method. - */ - p5.Renderer2D.prototype._acuteArcToBezier = function _acuteArcToBezier( - start, - size - ) { - // Evaluate constants. - var alpha = size / 2.0, - cos_alpha = Math.cos(alpha), - sin_alpha = Math.sin(alpha), - cot_alpha = 1.0 / Math.tan(alpha), - phi = start + alpha, // This is how far the arc needs to be rotated. - cos_phi = Math.cos(phi), - sin_phi = Math.sin(phi), - lambda = (4.0 - cos_alpha) / 3.0, - mu = sin_alpha + (cos_alpha - lambda) * cot_alpha; - - // Return rotated waypoints. - return { - ax: Math.cos(start).toFixed(7), - ay: Math.sin(start).toFixed(7), - bx: (lambda * cos_phi + mu * sin_phi).toFixed(7), - by: (lambda * sin_phi - mu * cos_phi).toFixed(7), - cx: (lambda * cos_phi - mu * sin_phi).toFixed(7), - cy: (lambda * sin_phi + mu * cos_phi).toFixed(7), - dx: Math.cos(start + size).toFixed(7), - dy: Math.sin(start + size).toFixed(7) - }; - }; - - /* - * This function requires that: - * - * 0 <= start < TWO_PI - * - * start <= stop < start + TWO_PI - */ - p5.Renderer2D.prototype.arc = function(x, y, w, h, start, stop, mode) { - var ctx = this.drawingContext; - var rx = w / 2.0; - var ry = h / 2.0; - var epsilon = 0.00001; // Smallest visible angle on displays up to 4K. - var arcToDraw = 0; - var curves = []; - - x += rx; - y += ry; - - // Create curves - while (stop - start >= epsilon) { - arcToDraw = Math.min(stop - start, constants.HALF_PI); - curves.push(this._acuteArcToBezier(start, arcToDraw)); - start += arcToDraw; - } - - // Fill curves - if (this._doFill) { - ctx.beginPath(); - curves.forEach(function(curve, index) { - if (index === 0) { - ctx.moveTo(x + curve.ax * rx, y + curve.ay * ry); - } - // prettier-ignore - ctx.bezierCurveTo(x + curve.bx * rx, y + curve.by * ry, - x + curve.cx * rx, y + curve.cy * ry, - x + curve.dx * rx, y + curve.dy * ry); - }); - if (mode === constants.PIE || mode == null) { - ctx.lineTo(x, y); - } - ctx.closePath(); - ctx.fill(); - this._pixelsState._pixelsDirty = true; - } - - // Stroke curves - if (this._doStroke) { - ctx.beginPath(); - curves.forEach(function(curve, index) { - if (index === 0) { - ctx.moveTo(x + curve.ax * rx, y + curve.ay * ry); - } - // prettier-ignore - ctx.bezierCurveTo(x + curve.bx * rx, y + curve.by * ry, - x + curve.cx * rx, y + curve.cy * ry, - x + curve.dx * rx, y + curve.dy * ry); - }); - if (mode === constants.PIE) { - ctx.lineTo(x, y); - ctx.closePath(); - } else if (mode === constants.CHORD) { - ctx.closePath(); - } - ctx.stroke(); - this._pixelsState._pixelsDirty = true; - } - return this; - }; - - p5.Renderer2D.prototype.ellipse = function(args) { - var ctx = this.drawingContext; - var doFill = this._doFill, - doStroke = this._doStroke; - var x = args[0], - y = args[1], - w = args[2], - h = args[3]; - if (doFill && !doStroke) { - if (this._getFill() === styleEmpty) { - return this; - } - } else if (!doFill && doStroke) { - if (this._getStroke() === styleEmpty) { - return this; - } - } - var kappa = 0.5522847498, - ox = w / 2 * kappa, // control point offset horizontal - oy = h / 2 * kappa, // control point offset vertical - xe = x + w, // x-end - ye = y + h, // y-end - xm = x + w / 2, // x-middle - ym = y + h / 2; // y-middle - ctx.beginPath(); - ctx.moveTo(x, ym); - ctx.bezierCurveTo(x, ym - oy, xm - ox, y, xm, y); - ctx.bezierCurveTo(xm + ox, y, xe, ym - oy, xe, ym); - ctx.bezierCurveTo(xe, ym + oy, xm + ox, ye, xm, ye); - ctx.bezierCurveTo(xm - ox, ye, x, ym + oy, x, ym); - ctx.closePath(); - if (doFill) { - ctx.fill(); - this._pixelsState._pixelsDirty = true; - } - if (doStroke) { - ctx.stroke(); - this._pixelsState._pixelsDirty = true; - } - }; - - p5.Renderer2D.prototype.line = function(x1, y1, x2, y2) { - var ctx = this.drawingContext; - if (!this._doStroke) { - return this; - } else if (this._getStroke() === styleEmpty) { - return this; - } - ctx.beginPath(); - ctx.moveTo(x1, y1); - ctx.lineTo(x2, y2); - ctx.stroke(); - this._pixelsState._pixelsDirty = true; - return this; - }; - - p5.Renderer2D.prototype.point = function(x, y) { - var ctx = this.drawingContext; - if (!this._doStroke) { - return this; - } else if (this._getStroke() === styleEmpty) { - return this; - } - var s = this._getStroke(); - var f = this._getFill(); - x = Math.round(x); - y = Math.round(y); - // swapping fill color to stroke and back after for correct point rendering - this._setFill(s); - if (ctx.lineWidth > 1) { - ctx.beginPath(); - ctx.arc(x, y, ctx.lineWidth / 2, 0, constants.TWO_PI, false); - ctx.fill(); - } else { - ctx.fillRect(x, y, 1, 1); - } - this._setFill(f); - this._pixelsState._pixelsDirty = true; - }; - - p5.Renderer2D.prototype.quad = function(x1, y1, x2, y2, x3, y3, x4, y4) { - var ctx = this.drawingContext; - var doFill = this._doFill, - doStroke = this._doStroke; - if (doFill && !doStroke) { - if (this._getFill() === styleEmpty) { - return this; - } - } else if (!doFill && doStroke) { - if (this._getStroke() === styleEmpty) { - return this; - } - } - ctx.beginPath(); - ctx.moveTo(x1, y1); - ctx.lineTo(x2, y2); - ctx.lineTo(x3, y3); - ctx.lineTo(x4, y4); - ctx.closePath(); - if (doFill) { - ctx.fill(); - } - if (doStroke) { - ctx.stroke(); - } - this._pixelsState._pixelsDirty = true; - return this; - }; - - p5.Renderer2D.prototype.rect = function(args) { - var x = args[0], - y = args[1], - w = args[2], - h = args[3], - tl = args[4], - tr = args[5], - br = args[6], - bl = args[7]; - var ctx = this.drawingContext; - var doFill = this._doFill, - doStroke = this._doStroke; - if (doFill && !doStroke) { - if (this._getFill() === styleEmpty) { - return this; - } - } else if (!doFill && doStroke) { - if (this._getStroke() === styleEmpty) { - return this; - } - } - ctx.beginPath(); - - if (typeof tl === 'undefined') { - // No rounded corners - ctx.rect(x, y, w, h); - } else { - // At least one rounded corner - // Set defaults when not specified - if (typeof tr === 'undefined') { - tr = tl; - } - if (typeof br === 'undefined') { - br = tr; - } - if (typeof bl === 'undefined') { - bl = br; - } - - var hw = w / 2; - var hh = h / 2; - - // Clip radii - if (w < 2 * tl) { - tl = hw; - } - if (h < 2 * tl) { - tl = hh; - } - if (w < 2 * tr) { - tr = hw; - } - if (h < 2 * tr) { - tr = hh; - } - if (w < 2 * br) { - br = hw; - } - if (h < 2 * br) { - br = hh; - } - if (w < 2 * bl) { - bl = hw; - } - if (h < 2 * bl) { - bl = hh; - } - - // Draw shape - ctx.beginPath(); - ctx.moveTo(x + tl, y); - ctx.arcTo(x + w, y, x + w, y + h, tr); - ctx.arcTo(x + w, y + h, x, y + h, br); - ctx.arcTo(x, y + h, x, y, bl); - ctx.arcTo(x, y, x + w, y, tl); - ctx.closePath(); - } - if (this._doFill) { - ctx.fill(); - } - if (this._doStroke) { - ctx.stroke(); - } - this._pixelsState._pixelsDirty = true; - return this; - }; - - p5.Renderer2D.prototype.triangle = function(args) { - var ctx = this.drawingContext; - var doFill = this._doFill, - doStroke = this._doStroke; - var x1 = args[0], - y1 = args[1]; - var x2 = args[2], - y2 = args[3]; - var x3 = args[4], - y3 = args[5]; - if (doFill && !doStroke) { - if (this._getFill() === styleEmpty) { - return this; - } - } else if (!doFill && doStroke) { - if (this._getStroke() === styleEmpty) { - return this; - } - } - ctx.beginPath(); - ctx.moveTo(x1, y1); - ctx.lineTo(x2, y2); - ctx.lineTo(x3, y3); - ctx.closePath(); - if (doFill) { - ctx.fill(); - this._pixelsState._pixelsDirty = true; - } - if (doStroke) { - ctx.stroke(); - this._pixelsState._pixelsDirty = true; - } - }; - - p5.Renderer2D.prototype.endShape = function( - mode, - vertices, - isCurve, - isBezier, - isQuadratic, - isContour, - shapeKind - ) { - if (vertices.length === 0) { - return this; - } - if (!this._doStroke && !this._doFill) { - return this; - } - var closeShape = mode === constants.CLOSE; - var v; - if (closeShape && !isContour) { - vertices.push(vertices[0]); - } - var i, j; - var numVerts = vertices.length; - if (isCurve && (shapeKind === constants.POLYGON || shapeKind === null)) { - if (numVerts > 3) { - var b = [], - s = 1 - this._curveTightness; - this.drawingContext.beginPath(); - this.drawingContext.moveTo(vertices[1][0], vertices[1][1]); - for (i = 1; i + 2 < numVerts; i++) { - v = vertices[i]; - b[0] = [v[0], v[1]]; - b[1] = [ - v[0] + (s * vertices[i + 1][0] - s * vertices[i - 1][0]) / 6, - v[1] + (s * vertices[i + 1][1] - s * vertices[i - 1][1]) / 6 - ]; - - b[2] = [ - vertices[i + 1][0] + (s * vertices[i][0] - s * vertices[i + 2][0]) / 6, - vertices[i + 1][1] + (s * vertices[i][1] - s * vertices[i + 2][1]) / 6 - ]; - - b[3] = [vertices[i + 1][0], vertices[i + 1][1]]; - this.drawingContext.bezierCurveTo( - b[1][0], - b[1][1], - b[2][0], - b[2][1], - b[3][0], - b[3][1] - ); - } - if (closeShape) { - this.drawingContext.lineTo(vertices[i + 1][0], vertices[i + 1][1]); - } - this._doFillStrokeClose(closeShape); - } - } else if ( - isBezier && - (shapeKind === constants.POLYGON || shapeKind === null) - ) { - this.drawingContext.beginPath(); - for (i = 0; i < numVerts; i++) { - if (vertices[i].isVert) { - if (vertices[i].moveTo) { - this.drawingContext.moveTo(vertices[i][0], vertices[i][1]); - } else { - this.drawingContext.lineTo(vertices[i][0], vertices[i][1]); - } - } else { - this.drawingContext.bezierCurveTo( - vertices[i][0], - vertices[i][1], - vertices[i][2], - vertices[i][3], - vertices[i][4], - vertices[i][5] - ); - } - } - this._doFillStrokeClose(closeShape); - } else if ( - isQuadratic && - (shapeKind === constants.POLYGON || shapeKind === null) - ) { - this.drawingContext.beginPath(); - for (i = 0; i < numVerts; i++) { - if (vertices[i].isVert) { - if (vertices[i].moveTo) { - this.drawingContext.moveTo(vertices[i][0], vertices[i][1]); - } else { - this.drawingContext.lineTo(vertices[i][0], vertices[i][1]); - } - } else { - this.drawingContext.quadraticCurveTo( - vertices[i][0], - vertices[i][1], - vertices[i][2], - vertices[i][3] - ); - } - } - this._doFillStrokeClose(closeShape); - } else { - if (shapeKind === constants.POINTS) { - for (i = 0; i < numVerts; i++) { - v = vertices[i]; - if (this._doStroke) { - this._pInst.stroke(v[6]); - } - this._pInst.point(v[0], v[1]); - } - } else if (shapeKind === constants.LINES) { - for (i = 0; i + 1 < numVerts; i += 2) { - v = vertices[i]; - if (this._doStroke) { - this._pInst.stroke(vertices[i + 1][6]); - } - this._pInst.line(v[0], v[1], vertices[i + 1][0], vertices[i + 1][1]); - } - } else if (shapeKind === constants.TRIANGLES) { - for (i = 0; i + 2 < numVerts; i += 3) { - v = vertices[i]; - this.drawingContext.beginPath(); - this.drawingContext.moveTo(v[0], v[1]); - this.drawingContext.lineTo(vertices[i + 1][0], vertices[i + 1][1]); - this.drawingContext.lineTo(vertices[i + 2][0], vertices[i + 2][1]); - this.drawingContext.closePath(); - if (this._doFill) { - this._pInst.fill(vertices[i + 2][5]); - this.drawingContext.fill(); - } - if (this._doStroke) { - this._pInst.stroke(vertices[i + 2][6]); - this.drawingContext.stroke(); - } - } - } else if (shapeKind === constants.TRIANGLE_STRIP) { - for (i = 0; i + 1 < numVerts; i++) { - v = vertices[i]; - this.drawingContext.beginPath(); - this.drawingContext.moveTo(vertices[i + 1][0], vertices[i + 1][1]); - this.drawingContext.lineTo(v[0], v[1]); - if (this._doStroke) { - this._pInst.stroke(vertices[i + 1][6]); - } - if (this._doFill) { - this._pInst.fill(vertices[i + 1][5]); - } - if (i + 2 < numVerts) { - this.drawingContext.lineTo(vertices[i + 2][0], vertices[i + 2][1]); - if (this._doStroke) { - this._pInst.stroke(vertices[i + 2][6]); - } - if (this._doFill) { - this._pInst.fill(vertices[i + 2][5]); - } - } - this._doFillStrokeClose(closeShape); - } - } else if (shapeKind === constants.TRIANGLE_FAN) { - if (numVerts > 2) { - // For performance reasons, try to batch as many of the - // fill and stroke calls as possible. - this.drawingContext.beginPath(); - for (i = 2; i < numVerts; i++) { - v = vertices[i]; - this.drawingContext.moveTo(vertices[0][0], vertices[0][1]); - this.drawingContext.lineTo(vertices[i - 1][0], vertices[i - 1][1]); - this.drawingContext.lineTo(v[0], v[1]); - this.drawingContext.lineTo(vertices[0][0], vertices[0][1]); - // If the next colour is going to be different, stroke / fill now - if (i < numVerts - 1) { - if ( - (this._doFill && v[5] !== vertices[i + 1][5]) || - (this._doStroke && v[6] !== vertices[i + 1][6]) - ) { - if (this._doFill) { - this._pInst.fill(v[5]); - this.drawingContext.fill(); - this._pInst.fill(vertices[i + 1][5]); - } - if (this._doStroke) { - this._pInst.stroke(v[6]); - this.drawingContext.stroke(); - this._pInst.stroke(vertices[i + 1][6]); - } - this.drawingContext.closePath(); - this.drawingContext.beginPath(); // Begin the next one - } - } - } - this._doFillStrokeClose(closeShape); - } - } else if (shapeKind === constants.QUADS) { - for (i = 0; i + 3 < numVerts; i += 4) { - v = vertices[i]; - this.drawingContext.beginPath(); - this.drawingContext.moveTo(v[0], v[1]); - for (j = 1; j < 4; j++) { - this.drawingContext.lineTo(vertices[i + j][0], vertices[i + j][1]); - } - this.drawingContext.lineTo(v[0], v[1]); - if (this._doFill) { - this._pInst.fill(vertices[i + 3][5]); - } - if (this._doStroke) { - this._pInst.stroke(vertices[i + 3][6]); - } - this._doFillStrokeClose(closeShape); - } - } else if (shapeKind === constants.QUAD_STRIP) { - if (numVerts > 3) { - for (i = 0; i + 1 < numVerts; i += 2) { - v = vertices[i]; - this.drawingContext.beginPath(); - if (i + 3 < numVerts) { - this.drawingContext.moveTo(vertices[i + 2][0], vertices[i + 2][1]); - this.drawingContext.lineTo(v[0], v[1]); - this.drawingContext.lineTo(vertices[i + 1][0], vertices[i + 1][1]); - this.drawingContext.lineTo(vertices[i + 3][0], vertices[i + 3][1]); - if (this._doFill) { - this._pInst.fill(vertices[i + 3][5]); - } - if (this._doStroke) { - this._pInst.stroke(vertices[i + 3][6]); - } - } else { - this.drawingContext.moveTo(v[0], v[1]); - this.drawingContext.lineTo(vertices[i + 1][0], vertices[i + 1][1]); - } - this._doFillStrokeClose(closeShape); - } - } - } else { - this.drawingContext.beginPath(); - this.drawingContext.moveTo(vertices[0][0], vertices[0][1]); - for (i = 1; i < numVerts; i++) { - v = vertices[i]; - if (v.isVert) { - if (v.moveTo) { - this.drawingContext.moveTo(v[0], v[1]); - } else { - this.drawingContext.lineTo(v[0], v[1]); - } - } - } - this._doFillStrokeClose(closeShape); - } - } - isCurve = false; - isBezier = false; - isQuadratic = false; - isContour = false; - if (closeShape) { - vertices.pop(); - } - - this._pixelsState._pixelsDirty = true; - return this; - }; - ////////////////////////////////////////////// - // SHAPE | Attributes - ////////////////////////////////////////////// - - p5.Renderer2D.prototype.strokeCap = function(cap) { - if ( - cap === constants.ROUND || - cap === constants.SQUARE || - cap === constants.PROJECT - ) { - this.drawingContext.lineCap = cap; - } - return this; - }; - - p5.Renderer2D.prototype.strokeJoin = function(join) { - if ( - join === constants.ROUND || - join === constants.BEVEL || - join === constants.MITER - ) { - this.drawingContext.lineJoin = join; - } - return this; - }; - - p5.Renderer2D.prototype.strokeWeight = function(w) { - if (typeof w === 'undefined' || w === 0) { - // hack because lineWidth 0 doesn't work - this.drawingContext.lineWidth = 0.0001; - } else { - this.drawingContext.lineWidth = w; - } - return this; - }; - - p5.Renderer2D.prototype._getFill = function() { - if (!this._cachedFillStyle) { - this._cachedFillStyle = this.drawingContext.fillStyle; - } - return this._cachedFillStyle; - }; - - p5.Renderer2D.prototype._setFill = function(fillStyle) { - if (fillStyle !== this._cachedFillStyle) { - this.drawingContext.fillStyle = fillStyle; - this._cachedFillStyle = fillStyle; - } - }; - - p5.Renderer2D.prototype._getStroke = function() { - if (!this._cachedStrokeStyle) { - this._cachedStrokeStyle = this.drawingContext.strokeStyle; - } - return this._cachedStrokeStyle; - }; - - p5.Renderer2D.prototype._setStroke = function(strokeStyle) { - if (strokeStyle !== this._cachedStrokeStyle) { - this.drawingContext.strokeStyle = strokeStyle; - this._cachedStrokeStyle = strokeStyle; - } - }; - - ////////////////////////////////////////////// - // SHAPE | Curves - ////////////////////////////////////////////// - p5.Renderer2D.prototype.bezier = function(x1, y1, x2, y2, x3, y3, x4, y4) { - this._pInst.beginShape(); - this._pInst.vertex(x1, y1); - this._pInst.bezierVertex(x2, y2, x3, y3, x4, y4); - this._pInst.endShape(); - return this; - }; - - p5.Renderer2D.prototype.curve = function(x1, y1, x2, y2, x3, y3, x4, y4) { - this._pInst.beginShape(); - this._pInst.curveVertex(x1, y1); - this._pInst.curveVertex(x2, y2); - this._pInst.curveVertex(x3, y3); - this._pInst.curveVertex(x4, y4); - this._pInst.endShape(); - return this; - }; - - ////////////////////////////////////////////// - // SHAPE | Vertex - ////////////////////////////////////////////// - - p5.Renderer2D.prototype._doFillStrokeClose = function(closeShape) { - if (closeShape) { - this.drawingContext.closePath(); - } - if (this._doFill) { - this.drawingContext.fill(); - } - if (this._doStroke) { - this.drawingContext.stroke(); - } - - this._pixelsState._pixelsDirty = true; - }; - - ////////////////////////////////////////////// - // TRANSFORM - ////////////////////////////////////////////// - - p5.Renderer2D.prototype.applyMatrix = function(a, b, c, d, e, f) { - this.drawingContext.transform(a, b, c, d, e, f); - }; - - p5.Renderer2D.prototype.resetMatrix = function() { - this.drawingContext.setTransform(1, 0, 0, 1, 0, 0); - this.drawingContext.scale(this._pInst._pixelDensity, this._pInst._pixelDensity); - - return this; - }; - - p5.Renderer2D.prototype.rotate = function(rad) { - this.drawingContext.rotate(rad); - }; - - p5.Renderer2D.prototype.scale = function(x, y) { - this.drawingContext.scale(x, y); - return this; - }; - - p5.Renderer2D.prototype.translate = function(x, y) { - // support passing a vector as the 1st parameter - if (x instanceof p5.Vector) { - y = x.y; - x = x.x; - } - this.drawingContext.translate(x, y); - return this; - }; - - ////////////////////////////////////////////// - // TYPOGRAPHY - // - ////////////////////////////////////////////// - - p5.Renderer2D.prototype.text = function(str, x, y, maxWidth, maxHeight) { - var baselineHacked; - - // baselineHacked: (HACK) - // A temporary fix to conform to Processing's implementation - // of BASELINE vertical alignment in a bounding box - - if (typeof maxWidth !== 'undefined') { - if (this.drawingContext.textBaseline === constants.BASELINE) { - baselineHacked = true; - this.drawingContext.textBaseline = constants.TOP; - } - } - - var p = p5.Renderer.prototype.text.apply(this, arguments); - - if (baselineHacked) { - this.drawingContext.textBaseline = constants.BASELINE; - } - - return p; - }; - - p5.Renderer2D.prototype._renderText = function(p, line, x, y, maxY) { - if (y >= maxY) { - return; // don't render lines beyond our maxY position - } - - p.push(); // fix to #803 - - if (!this._isOpenType()) { - // a system/browser font - - // no stroke unless specified by user - if (this._doStroke && this._strokeSet) { - this.drawingContext.strokeText(line, x, y); - } - - if (this._doFill) { - // if fill hasn't been set by user, use default text fill - if (!this._fillSet) { - this._setFill(constants._DEFAULT_TEXT_FILL); - } - - this.drawingContext.fillText(line, x, y); - } - } else { - // an opentype font, let it handle the rendering - - this._textFont._renderPath(line, x, y, { renderer: this }); - } - - p.pop(); - - this._pixelsState._pixelsDirty = true; - return p; - }; - - p5.Renderer2D.prototype.textWidth = function(s) { - if (this._isOpenType()) { - return this._textFont._textWidth(s, this._textSize); - } - - return this.drawingContext.measureText(s).width; - }; - - p5.Renderer2D.prototype._applyTextProperties = function() { - var font, - p = this._pInst; - - this._setProperty('_textAscent', null); - this._setProperty('_textDescent', null); - - font = this._textFont; - - if (this._isOpenType()) { - font = this._textFont.font.familyName; - this._setProperty('_textStyle', this._textFont.font.styleName); - } - - this.drawingContext.font = - (this._textStyle || 'normal') + - ' ' + - (this._textSize || 12) + - 'px ' + - (font || 'sans-serif'); - - this.drawingContext.textAlign = this._textAlign; - if (this._textBaseline === constants.CENTER) { - this.drawingContext.textBaseline = constants._CTX_MIDDLE; - } else { - this.drawingContext.textBaseline = this._textBaseline; - } - - return p; - }; - - ////////////////////////////////////////////// - // STRUCTURE - ////////////////////////////////////////////// - - // a push() operation is in progress. - // the renderer should return a 'style' object that it wishes to - // store on the push stack. - // derived renderers should call the base class' push() method - // to fetch the base style object. - p5.Renderer2D.prototype.push = function() { - this.drawingContext.save(); - - // get the base renderer style - return p5.Renderer.prototype.push.apply(this); - }; - - // a pop() operation is in progress - // the renderer is passed the 'style' object that it returned - // from its push() method. - // derived renderers should pass this object to their base - // class' pop method - p5.Renderer2D.prototype.pop = function(style) { - this.drawingContext.restore(); - // Re-cache the fill / stroke state - this._cachedFillStyle = this.drawingContext.fillStyle; - this._cachedStrokeStyle = this.drawingContext.strokeStyle; - - p5.Renderer.prototype.pop.call(this, style); - }; - - module.exports = p5.Renderer2D; - }, - { '../image/filters': 43, './constants': 18, './main': 24, './p5.Renderer': 27 } - ], - 29: [ - function(_dereq_, module, exports) { - /** - * @module Rendering - * @submodule Rendering - * @for p5 - */ - - 'use strict'; - function _typeof(obj) { - if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && - typeof Symbol === 'function' && - obj.constructor === Symbol && - obj !== Symbol.prototype - ? 'symbol' - : typeof obj; - }; - } - return _typeof(obj); - } - - var p5 = _dereq_('./main'); - var constants = _dereq_('./constants'); - _dereq_('./p5.Graphics'); - _dereq_('./p5.Renderer2D'); - _dereq_('../webgl/p5.RendererGL'); - var defaultId = 'defaultCanvas0'; // this gets set again in createCanvas - var defaultClass = 'p5Canvas'; - - /** - * Creates a canvas element in the document, and sets the dimensions of it - * in pixels. This method should be called only once at the start of setup. - * Calling createCanvas more than once in a sketch will result in very - * unpredictable behavior. If you want more than one drawing canvas - * you could use createGraphics (hidden by default but it can be shown). - *

- * The system variables width and height are set by the parameters passed - * to this function. If createCanvas() is not used, the window will be - * given a default size of 100x100 pixels. - *

- * For more ways to position the canvas, see the - * - * positioning the canvas wiki page. - * - * @method createCanvas - * @param {Number} w width of the canvas - * @param {Number} h height of the canvas - * @param {Constant} [renderer] either P2D or WEBGL - * @return {p5.Renderer} - * @example - *
- * - * function setup() { - * createCanvas(100, 50); - * background(153); - * line(0, 0, width, height); - * } - * - *
- * - * @alt - * Black line extending from top-left of canvas to bottom right. - * - */ - - p5.prototype.createCanvas = function(w, h, renderer) { - p5._validateParameters('createCanvas', arguments); - //optional: renderer, otherwise defaults to p2d - var r = renderer || constants.P2D; - var c; - - if (r === constants.WEBGL) { - c = document.getElementById(defaultId); - if (c) { - //if defaultCanvas already exists - c.parentNode.removeChild(c); //replace the existing defaultCanvas - var thisRenderer = this._renderer; - this._elements = this._elements.filter(function(e) { - return e !== thisRenderer; - }); - } - c = document.createElement('canvas'); - c.id = defaultId; - c.classList.add(defaultClass); - } else { - if (!this._defaultGraphicsCreated) { - c = document.createElement('canvas'); - var i = 0; - while (document.getElementById('defaultCanvas' + i)) { - i++; - } - defaultId = 'defaultCanvas' + i; - c.id = defaultId; - c.classList.add(defaultClass); - } else { - // resize the default canvas if new one is created - c = this.canvas; - } - } - - // set to invisible if still in setup (to prevent flashing with manipulate) - if (!this._setupDone) { - c.dataset.hidden = true; // tag to show later - c.style.visibility = 'hidden'; - } - - if (this._userNode) { - // user input node case - this._userNode.appendChild(c); - } else { - document.body.appendChild(c); - } - - // Init our graphics renderer - //webgl mode - if (r === constants.WEBGL) { - this._setProperty('_renderer', new p5.RendererGL(c, this, true)); - this._elements.push(this._renderer); - } else { - //P2D mode - if (!this._defaultGraphicsCreated) { - this._setProperty('_renderer', new p5.Renderer2D(c, this, true)); - this._defaultGraphicsCreated = true; - this._elements.push(this._renderer); - } - } - this._renderer.resize(w, h); - this._renderer._applyDefaults(); - return this._renderer; - }; - - /** - * Resizes the canvas to given width and height. The canvas will be cleared - * and draw will be called immediately, allowing the sketch to re-render itself - * in the resized canvas. - * @method resizeCanvas - * @param {Number} w width of the canvas - * @param {Number} h height of the canvas - * @param {Boolean} [noRedraw] don't redraw the canvas immediately - * @example - *
- * function setup() { - * createCanvas(windowWidth, windowHeight); - * } - * - * function draw() { - * background(0, 100, 200); - * } - * - * function windowResized() { - * resizeCanvas(windowWidth, windowHeight); - * } - *
- * - * @alt - * No image displayed. - * - */ - p5.prototype.resizeCanvas = function(w, h, noRedraw) { - p5._validateParameters('resizeCanvas', arguments); - if (this._renderer) { - // save canvas properties - var props = {}; - for (var key in this.drawingContext) { - var val = this.drawingContext[key]; - if (_typeof(val) !== 'object' && typeof val !== 'function') { - props[key] = val; - } - } - this._renderer.resize(w, h); - this.width = w; - this.height = h; - // reset canvas properties - for (var savedKey in props) { - try { - this.drawingContext[savedKey] = props[savedKey]; - } catch (err) { - // ignore read-only property errors - } - } - if (!noRedraw) { - this.redraw(); - } - } - }; - - /** - * Removes the default canvas for a p5 sketch that doesn't - * require a canvas - * @method noCanvas - * @example - *
- * - * function setup() { - * noCanvas(); - * } - * - *
- * - * @alt - * no image displayed - * - */ - p5.prototype.noCanvas = function() { - if (this.canvas) { - this.canvas.parentNode.removeChild(this.canvas); - } - }; - - /** - * Creates and returns a new p5.Renderer object. Use this class if you need - * to draw into an off-screen graphics buffer. The two parameters define the - * width and height in pixels. - * - * @method createGraphics - * @param {Number} w width of the offscreen graphics buffer - * @param {Number} h height of the offscreen graphics buffer - * @param {Constant} [renderer] either P2D or WEBGL - * undefined defaults to p2d - * @return {p5.Graphics} offscreen graphics buffer - * @example - *
- * - * let pg; - * function setup() { - * createCanvas(100, 100); - * pg = createGraphics(100, 100); - * } - * function draw() { - * background(200); - * pg.background(100); - * pg.noStroke(); - * pg.ellipse(pg.width / 2, pg.height / 2, 50, 50); - * image(pg, 50, 50); - * image(pg, 0, 0, 50, 50); - * } - * - *
- * - * @alt - * 4 grey squares alternating light and dark grey. White quarter circle mid-left. - * - */ - p5.prototype.createGraphics = function(w, h, renderer) { - p5._validateParameters('createGraphics', arguments); - return new p5.Graphics(w, h, renderer, this); - }; - - /** - * Blends the pixels in the display window according to the defined mode. - * There is a choice of the following modes to blend the source pixels (A) - * with the ones of pixels already in the display window (B): - *
    - *
  • BLEND - linear interpolation of colours: C = - * A\*factor + B. This is the default blending mode.
  • - *
  • ADD - sum of A and B
  • - *
  • DARKEST - only the darkest colour succeeds: C = - * min(A\*factor, B).
  • - *
  • LIGHTEST - only the lightest colour succeeds: C = - * max(A\*factor, B).
  • - *
  • DIFFERENCE - subtract colors from underlying image.
  • - *
  • EXCLUSION - similar to DIFFERENCE, but less - * extreme.
  • - *
  • MULTIPLY - multiply the colors, result will always be - * darker.
  • - *
  • SCREEN - opposite multiply, uses inverse values of the - * colors.
  • - *
  • REPLACE - the pixels entirely replace the others and - * don't utilize alpha (transparency) values.
  • - *
  • OVERLAY - mix of MULTIPLY and SCREEN - * . Multiplies dark values, and screens light values. (2D)
  • - *
  • HARD_LIGHT - SCREEN when greater than 50% - * gray, MULTIPLY when lower. (2D)
  • - *
  • SOFT_LIGHT - mix of DARKEST and - * LIGHTEST. Works like OVERLAY, but not as harsh. (2D) - *
  • - *
  • DODGE - lightens light tones and increases contrast, - * ignores darks. (2D)
  • - *
  • BURN - darker areas are applied, increasing contrast, - * ignores lights. (2D)
  • - *
  • SUBTRACT - remainder of A and B (3D)
  • - *
- *

- * (2D) indicates that this blend mode only works in the 2D renderer.
- * (3D) indicates that this blend mode only works in the WEBGL renderer. - * - * - * @method blendMode - * @param {Constant} mode blend mode to set for canvas. - * either BLEND, DARKEST, LIGHTEST, DIFFERENCE, MULTIPLY, - * EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT, - * SOFT_LIGHT, DODGE, BURN, ADD, or SUBTRACT - * @example - *
- * - * blendMode(LIGHTEST); - * strokeWeight(30); - * stroke(80, 150, 255); - * line(25, 25, 75, 75); - * stroke(255, 50, 50); - * line(75, 25, 25, 75); - * - *
- *
- * - * blendMode(MULTIPLY); - * strokeWeight(30); - * stroke(80, 150, 255); - * line(25, 25, 75, 75); - * stroke(255, 50, 50); - * line(75, 25, 25, 75); - * - *
- * @alt - * translucent image thick red & blue diagonal rounded lines intersecting center - * Thick red & blue diagonal rounded lines intersecting center. dark at overlap - * - */ - p5.prototype.blendMode = function(mode) { - p5._validateParameters('blendMode', arguments); - if (mode === constants.NORMAL) { - // Warning added 3/26/19, can be deleted in future (1.0 release?) - console.warn( - 'NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.' - ); - - mode = constants.BLEND; - } - this._renderer.blendMode(mode); - }; - - module.exports = p5; - }, - { - '../webgl/p5.RendererGL': 75, - './constants': 18, - './main': 24, - './p5.Graphics': 26, - './p5.Renderer2D': 28 - } - ], - 30: [ - function(_dereq_, module, exports) { - /** - * @module Shape - * @submodule 2D Primitives - * @for p5 - * @requires core - * @requires constants - */ - - 'use strict'; - - var p5 = _dereq_('../main'); - var constants = _dereq_('../constants'); - var canvas = _dereq_('../helpers'); - _dereq_('../error_helpers'); - - /** - * This function does 3 things: - * - * 1. Bounds the desired start/stop angles for an arc (in radians) so that: - * - * 0 <= start < TWO_PI ; start <= stop < start + TWO_PI - * - * This means that the arc rendering functions don't have to be concerned - * with what happens if stop is smaller than start, or if the arc 'goes - * round more than once', etc.: they can just start at start and increase - * until stop and the correct arc will be drawn. - * - * 2. Optionally adjusts the angles within each quadrant to counter the naive - * scaling of the underlying ellipse up from the unit circle. Without - * this, the angles become arbitrary when width != height: 45 degrees - * might be drawn at 5 degrees on a 'wide' ellipse, or at 85 degrees on - * a 'tall' ellipse. - * - * 3. Flags up when start and stop correspond to the same place on the - * underlying ellipse. This is useful if you want to do something special - * there (like rendering a whole ellipse instead). - */ - p5.prototype._normalizeArcAngles = function( - start, - stop, - width, - height, - correctForScaling - ) { - var epsilon = 0.00001; // Smallest visible angle on displays up to 4K. - var separation; - - // The order of the steps is important here: each one builds upon the - // adjustments made in the steps that precede it. - - // Constrain both start and stop to [0,TWO_PI). - start = start - constants.TWO_PI * Math.floor(start / constants.TWO_PI); - stop = stop - constants.TWO_PI * Math.floor(stop / constants.TWO_PI); - - // Get the angular separation between the requested start and stop points. - // - // Technically this separation only matches what gets drawn if - // correctForScaling is enabled. We could add a more complicated calculation - // for when the scaling is uncorrected (in which case the drawn points could - // end up pushed together or pulled apart quite dramatically relative to what - // was requested), but it would make things more opaque for little practical - // benefit. - // - // (If you do disable correctForScaling and find that correspondToSamePoint - // is set too aggressively, the easiest thing to do is probably to just make - // epsilon smaller...) - separation = Math.min( - Math.abs(start - stop), - constants.TWO_PI - Math.abs(start - stop) - ); - - // Optionally adjust the angles to counter linear scaling. - if (correctForScaling) { - if (start <= constants.HALF_PI) { - start = Math.atan(width / height * Math.tan(start)); - } else if (start > constants.HALF_PI && start <= 3 * constants.HALF_PI) { - start = Math.atan(width / height * Math.tan(start)) + constants.PI; - } else { - start = Math.atan(width / height * Math.tan(start)) + constants.TWO_PI; - } - if (stop <= constants.HALF_PI) { - stop = Math.atan(width / height * Math.tan(stop)); - } else if (stop > constants.HALF_PI && stop <= 3 * constants.HALF_PI) { - stop = Math.atan(width / height * Math.tan(stop)) + constants.PI; - } else { - stop = Math.atan(width / height * Math.tan(stop)) + constants.TWO_PI; - } - } - - // Ensure that start <= stop < start + TWO_PI. - if (start > stop) { - stop += constants.TWO_PI; - } - - return { - start: start, - stop: stop, - correspondToSamePoint: separation < epsilon - }; - }; - - /** - * Draw an arc to the screen. If called with only x, y, w, h, start, and - * stop, the arc will be drawn and filled as an open pie segment. If a mode parameter is provided, the arc - * will be filled like an open semi-circle (OPEN) , a closed semi-circle (CHORD), or as a closed pie segment (PIE). The - * origin may be changed with the ellipseMode() function.

- * The arc is always drawn clockwise from wherever start falls to wherever stop falls on the ellipse. - * Adding or subtracting TWO_PI to either angle does not change where they fall. - * If both start and stop fall at the same place, a full ellipse will be drawn. Be aware that the the - * y-axis increases in the downward direction therefore the values of PI is counter clockwise. - * @method arc - * @param {Number} x x-coordinate of the arc's ellipse - * @param {Number} y y-coordinate of the arc's ellipse - * @param {Number} w width of the arc's ellipse by default - * @param {Number} h height of the arc's ellipse by default - * @param {Number} start angle to start the arc, specified in radians - * @param {Number} stop angle to stop the arc, specified in radians - * @param {Constant} [mode] optional parameter to determine the way of drawing - * the arc. either CHORD, PIE or OPEN - * @param {Number} [detail] optional parameter for WebGL mode only. This is to - * specify the number of vertices that makes up the - * perimeter of the arc. Default value is 25. - * - * @chainable - * @example - *
- * - * arc(50, 55, 50, 50, 0, HALF_PI); - * noFill(); - * arc(50, 55, 60, 60, HALF_PI, PI); - * arc(50, 55, 70, 70, PI, PI + QUARTER_PI); - * arc(50, 55, 80, 80, PI + QUARTER_PI, TWO_PI); - * - *
- * - *
- * - * arc(50, 50, 80, 80, 0, PI + QUARTER_PI); - * - *
- * - *
- * - * arc(50, 50, 80, 80, 0, PI + QUARTER_PI, OPEN); - * - *
- * - *
- * - * arc(50, 50, 80, 80, 0, PI + QUARTER_PI, CHORD); - * - *
- * - *
- * - * arc(50, 50, 80, 80, 0, PI + QUARTER_PI, PIE); - * - *
- * - * @alt - *shattered outline of an ellipse with a quarter of a white circle bottom-right. - *white ellipse with top right quarter missing. - *white ellipse with black outline with top right missing. - *white ellipse with top right missing with black outline around shape. - *white ellipse with top right quarter missing with black outline around the shape. - * - */ - p5.prototype.arc = function(x, y, w, h, start, stop, mode, detail) { - p5._validateParameters('arc', arguments); - - // if the current stroke and fill settings wouldn't result in something - // visible, exit immediately - if (!this._renderer._doStroke && !this._renderer._doFill) { - return this; - } - - start = this._toRadians(start); - stop = this._toRadians(stop); - - // p5 supports negative width and heights for ellipses - w = Math.abs(w); - h = Math.abs(h); - - var vals = canvas.modeAdjust(x, y, w, h, this._renderer._ellipseMode); - var angles = this._normalizeArcAngles(start, stop, vals.w, vals.h, true); - - if (angles.correspondToSamePoint) { - // If the arc starts and ends at (near enough) the same place, we choose to - // draw an ellipse instead. This is preferable to faking an ellipse (by - // making stop ever-so-slightly less than start + TWO_PI) because the ends - // join up to each other rather than at a vertex at the centre (leaving - // an unwanted spike in the stroke/fill). - this._renderer.ellipse([vals.x, vals.y, vals.w, vals.h, detail]); - } else { - this._renderer.arc( - vals.x, - vals.y, - vals.w, - vals.h, - angles.start, // [0, TWO_PI) - angles.stop, // [start, start + TWO_PI) - mode, - detail - ); - } - - return this; - }; - - /** - * Draws an ellipse (oval) to the screen. An ellipse with equal width and - * height is a circle. By default, the first two parameters set the location, - * and the third and fourth parameters set the shape's width and height. If - * no height is specified, the value of width is used for both the width and - * height. If a negative height or width is specified, the absolute value is taken. - * The origin may be changed with the ellipseMode() function. - * - * @method ellipse - * @param {Number} x x-coordinate of the ellipse. - * @param {Number} y y-coordinate of the ellipse. - * @param {Number} w width of the ellipse. - * @param {Number} [h] height of the ellipse. - * @chainable - * @example - *
- * - * ellipse(56, 46, 55, 55); - * - *
- * - * @alt - *white ellipse with black outline in middle-right of canvas that is 55x55. - * - */ - /** - * @method ellipse - * @param {Number} x - * @param {Number} y - * @param {Number} w - * @param {Number} h - * @param {Integer} detail number of radial sectors to draw (for WebGL mode) - */ - p5.prototype.ellipse = function(x, y, w, h, detailX) { - p5._validateParameters('ellipse', arguments); - - // if the current stroke and fill settings wouldn't result in something - // visible, exit immediately - if (!this._renderer._doStroke && !this._renderer._doFill) { - return this; - } - - // p5 supports negative width and heights for rects - if (w < 0) { - w = Math.abs(w); - } - - if (typeof h === 'undefined') { - // Duplicate 3rd argument if only 3 given. - h = w; - } else if (h < 0) { - h = Math.abs(h); - } - - var vals = canvas.modeAdjust(x, y, w, h, this._renderer._ellipseMode); - this._renderer.ellipse([vals.x, vals.y, vals.w, vals.h, detailX]); - - return this; - }; - - /** - * Draws a circle to the screen. A circle is a simple closed shape. - * It is the set of all points in a plane that are at a given distance from a given point, the centre. - * This function is a special case of the ellipse() function, where the width and height of the ellipse are the same. - * Height and width of the ellipse correspond to the diameter of the circle. - * By default, the first two parameters set the location of the centre of the circle, the third sets the diameter of the circle. - * - * @method circle - * @param {Number} x x-coordinate of the centre of the circle. - * @param {Number} y y-coordinate of the centre of the circle. - * @param {Number} d diameter of the circle. - * @chainable - * @example - *
- * - * // Draw a circle at location (30, 30) with a diameter of 20. - * circle(30, 30, 20); - * - *
- * - * @alt - * white circle with black outline in mid of canvas that is 55x55. - */ - p5.prototype.circle = function() { - var args = Array.prototype.slice.call(arguments, 0, 2); - args.push(arguments[2]); - args.push(arguments[2]); - return this.ellipse.apply(this, args); - }; - - /** - * Draws a line (a direct path between two points) to the screen. The version - * of line() with four parameters draws the line in 2D. To color a line, use - * the stroke() function. A line cannot be filled, therefore the fill() - * function will not affect the color of a line. 2D lines are drawn with a - * width of one pixel by default, but this can be changed with the - * strokeWeight() function. - * - * @method line - * @param {Number} x1 the x-coordinate of the first point - * @param {Number} y1 the y-coordinate of the first point - * @param {Number} x2 the x-coordinate of the second point - * @param {Number} y2 the y-coordinate of the second point - * @chainable - * @example - *
- * - * line(30, 20, 85, 75); - * - *
- * - *
- * - * line(30, 20, 85, 20); - * stroke(126); - * line(85, 20, 85, 75); - * stroke(255); - * line(85, 75, 30, 75); - * - *
- * - * @alt - *line 78 pixels long running from mid-top to bottom-right of canvas. - *3 lines of various stroke sizes. Form top, bottom and right sides of a square. - * - */ - /** - * @method line - * @param {Number} x1 - * @param {Number} y1 - * @param {Number} z1 the z-coordinate of the first point - * @param {Number} x2 - * @param {Number} y2 - * @param {Number} z2 the z-coordinate of the second point - * @chainable - */ - p5.prototype.line = function() { - p5._validateParameters('line', arguments); - - if (this._renderer._doStroke) { - this._renderer.line.apply(this._renderer, arguments); - } - - return this; - }; - - /** - * Draws a point, a coordinate in space at the dimension of one pixel. - * The first parameter is the horizontal value for the point, the second - * value is the vertical value for the point. The color of the point is - * determined by the current stroke. - * - * @method point - * @param {Number} x the x-coordinate - * @param {Number} y the y-coordinate - * @param {Number} [z] the z-coordinate (for WebGL mode) - * @chainable - * @example - *
- * - * point(30, 20); - * point(85, 20); - * point(85, 75); - * point(30, 75); - * - *
- * - * @alt - *4 points centered in the middle-right of the canvas. - * - */ - p5.prototype.point = function() { - p5._validateParameters('point', arguments); - - if (this._renderer._doStroke) { - this._renderer.point.apply(this._renderer, arguments); - } - - return this; - }; - - /** - * Draw a quad. A quad is a quadrilateral, a four sided polygon. It is - * similar to a rectangle, but the angles between its edges are not - * constrained to ninety degrees. The first pair of parameters (x1,y1) - * sets the first vertex and the subsequent pairs should proceed - * clockwise or counter-clockwise around the defined shape. - * z-arguments only work when quad() is used in WEBGL mode. - * - * - * @method quad - * @param {Number} x1 the x-coordinate of the first point - * @param {Number} y1 the y-coordinate of the first point - * @param {Number} x2 the x-coordinate of the second point - * @param {Number} y2 the y-coordinate of the second point - * @param {Number} x3 the x-coordinate of the third point - * @param {Number} y3 the y-coordinate of the third point - * @param {Number} x4 the x-coordinate of the fourth point - * @param {Number} y4 the y-coordinate of the fourth point - * @chainable - * @example - *
- * - * quad(38, 31, 86, 20, 69, 63, 30, 76); - * - *
- * - * @alt - *irregular white quadrilateral shape with black outline mid-right of canvas. - * - */ - /** - * @method quad - * @param {Number} x1 - * @param {Number} y1 - * @param {Number} z1 the z-coordinate of the first point - * @param {Number} x2 - * @param {Number} y2 - * @param {Number} z2 the z-coordinate of the second point - * @param {Number} x3 - * @param {Number} y3 - * @param {Number} z3 the z-coordinate of the third point - * @param {Number} x4 - * @param {Number} y4 - * @param {Number} z4 the z-coordinate of the fourth point - * @chainable - */ - p5.prototype.quad = function() { - p5._validateParameters('quad', arguments); - - if (this._renderer._doStroke || this._renderer._doFill) { - if (this._renderer.isP3D && arguments.length !== 12) { - // if 3D and we weren't passed 12 args, assume Z is 0 - // prettier-ignore - this._renderer.quad.call( - this._renderer, - arguments[0], arguments[1], 0, - arguments[2], arguments[3], 0, - arguments[4], arguments[5], 0, - arguments[6], arguments[7], 0); - } else { - this._renderer.quad.apply(this._renderer, arguments); - } - } - - return this; - }; - - /** - * Draws a rectangle to the screen. A rectangle is a four-sided shape with - * every angle at ninety degrees. By default, the first two parameters set - * the location of the upper-left corner, the third sets the width, and the - * fourth sets the height. The way these parameters are interpreted, however, - * may be changed with the rectMode() function. - *

- * The fifth, sixth, seventh and eighth parameters, if specified, - * determine corner radius for the top-left, top-right, lower-right and - * lower-left corners, respectively. An omitted corner radius parameter is set - * to the value of the previously specified radius value in the parameter list. - * - * @method rect - * @param {Number} x x-coordinate of the rectangle. - * @param {Number} y y-coordinate of the rectangle. - * @param {Number} w width of the rectangle. - * @param {Number} h height of the rectangle. - * @param {Number} [tl] optional radius of top-left corner. - * @param {Number} [tr] optional radius of top-right corner. - * @param {Number} [br] optional radius of bottom-right corner. - * @param {Number} [bl] optional radius of bottom-left corner. - * @chainable - * @example - *
- * - * // Draw a rectangle at location (30, 20) with a width and height of 55. - * rect(30, 20, 55, 55); - * - *
- * - *
- * - * // Draw a rectangle with rounded corners, each having a radius of 20. - * rect(30, 20, 55, 55, 20); - * - *
- * - *
- * - * // Draw a rectangle with rounded corners having the following radii: - * // top-left = 20, top-right = 15, bottom-right = 10, bottom-left = 5. - * rect(30, 20, 55, 55, 20, 15, 10, 5); - * - *
- * - * @alt - * 55x55 white rect with black outline in mid-right of canvas. - * 55x55 white rect with black outline and rounded edges in mid-right of canvas. - * 55x55 white rect with black outline and rounded edges of different radii. - */ - /** - * @method rect - * @param {Number} x - * @param {Number} y - * @param {Number} w - * @param {Number} h - * @param {Integer} [detailX] number of segments in the x-direction (for WebGL mode) - * @param {Integer} [detailY] number of segments in the y-direction (for WebGL mode) - * @chainable - */ - p5.prototype.rect = function() { - p5._validateParameters('rect', arguments); - - if (this._renderer._doStroke || this._renderer._doFill) { - var vals = canvas.modeAdjust( - arguments[0], - arguments[1], - arguments[2], - arguments[3], - this._renderer._rectMode - ); - - var args = [vals.x, vals.y, vals.w, vals.h]; - // append the additional arguments (either cornder radii, or - // segment details) to the argument list - for (var i = 4; i < arguments.length; i++) { - args[i] = arguments[i]; - } - this._renderer.rect(args); - } - - return this; - }; - - /** - * Draws a square to the screen. A square is a four-sided shape with - * every angle at ninety degrees, and equal side size. - * This function is a special case of the rect() function, where the width and height are the same, and the parameter is called "s" for side size. - * By default, the first two parameters set the location of the upper-left corner, the third sets the side size of the square. - * The way these parameters are interpreted, however, - * may be changed with the rectMode() function. - *

- * The fourth, fifth, sixth and seventh parameters, if specified, - * determine corner radius for the top-left, top-right, lower-right and - * lower-left corners, respectively. An omitted corner radius parameter is set - * to the value of the previously specified radius value in the parameter list. - * - * @method square - * @param {Number} x x-coordinate of the square. - * @param {Number} y y-coordinate of the square. - * @param {Number} s side size of the square. - * @param {Number} [tl] optional radius of top-left corner. - * @param {Number} [tr] optional radius of top-right corner. - * @param {Number} [br] optional radius of bottom-right corner. - * @param {Number} [bl] optional radius of bottom-left corner. - * @chainable - * @example - *
- * - * // Draw a square at location (30, 20) with a side size of 55. - * square(30, 20, 55); - * - *
- * - *
- * - * // Draw a square with rounded corners, each having a radius of 20. - * square(30, 20, 55, 20); - * - *
- * - *
- * - * // Draw a square with rounded corners having the following radii: - * // top-left = 20, top-right = 15, bottom-right = 10, bottom-left = 5. - * square(30, 20, 55, 20, 15, 10, 5); - * - *
- * - * @alt - * 55x55 white square with black outline in mid-right of canvas. - * 55x55 white square with black outline and rounded edges in mid-right of canvas. - * 55x55 white square with black outline and rounded edges of different radii. - */ - p5.prototype.square = function(x, y, s, tl, tr, br, bl) { - return this.rect(x, y, s, s, tl, tr, br, bl); - }; - - /** - * A triangle is a plane created by connecting three points. The first two - * arguments specify the first point, the middle two arguments specify the - * second point, and the last two arguments specify the third point. - * - * @method triangle - * @param {Number} x1 x-coordinate of the first point - * @param {Number} y1 y-coordinate of the first point - * @param {Number} x2 x-coordinate of the second point - * @param {Number} y2 y-coordinate of the second point - * @param {Number} x3 x-coordinate of the third point - * @param {Number} y3 y-coordinate of the third point - * @chainable - * @example - *
- * - * triangle(30, 75, 58, 20, 86, 75); - * - *
- * - *@alt - * white triangle with black outline in mid-right of canvas. - * - */ - p5.prototype.triangle = function() { - p5._validateParameters('triangle', arguments); - - if (this._renderer._doStroke || this._renderer._doFill) { - this._renderer.triangle(arguments); - } - - return this; - }; - - module.exports = p5; - }, - { '../constants': 18, '../error_helpers': 20, '../helpers': 21, '../main': 24 } - ], - 31: [ - function(_dereq_, module, exports) { - /** - * @module Shape - * @submodule Attributes - * @for p5 - * @requires core - * @requires constants - */ - - 'use strict'; - - var p5 = _dereq_('../main'); - var constants = _dereq_('../constants'); - - /** - * Modifies the location from which ellipses are drawn by changing the way - * in which parameters given to ellipse() are interpreted. - *

- * The default mode is ellipseMode(CENTER), which interprets the first two - * parameters of ellipse() as the shape's center point, while the third and - * fourth parameters are its width and height. - *

- * ellipseMode(RADIUS) also uses the first two parameters of ellipse() as - * the shape's center point, but uses the third and fourth parameters to - * specify half of the shapes's width and height. - *

- * ellipseMode(CORNER) interprets the first two parameters of ellipse() as - * the upper-left corner of the shape, while the third and fourth parameters - * are its width and height. - *

- * ellipseMode(CORNERS) interprets the first two parameters of ellipse() as - * the location of one corner of the ellipse's bounding box, and the third - * and fourth parameters as the location of the opposite corner. - *

- * The parameter must be written in ALL CAPS because Javascript is a - * case-sensitive language. - * - * @method ellipseMode - * @param {Constant} mode either CENTER, RADIUS, CORNER, or CORNERS - * @chainable - * @example - *
- * - * ellipseMode(RADIUS); // Set ellipseMode to RADIUS - * fill(255); // Set fill to white - * ellipse(50, 50, 30, 30); // Draw white ellipse using RADIUS mode - * - * ellipseMode(CENTER); // Set ellipseMode to CENTER - * fill(100); // Set fill to gray - * ellipse(50, 50, 30, 30); // Draw gray ellipse using CENTER mode - * - *
- * - *
- * - * ellipseMode(CORNER); // Set ellipseMode is CORNER - * fill(255); // Set fill to white - * ellipse(25, 25, 50, 50); // Draw white ellipse using CORNER mode - * - * ellipseMode(CORNERS); // Set ellipseMode to CORNERS - * fill(100); // Set fill to gray - * ellipse(25, 25, 50, 50); // Draw gray ellipse using CORNERS mode - * - *
- * - * @alt - * 60x60 white ellipse and 30x30 grey ellipse with black outlines at center. - * 60x60 white ellipse @center and 30x30 grey ellipse top-right, black outlines. - * - */ - p5.prototype.ellipseMode = function(m) { - p5._validateParameters('ellipseMode', arguments); - if ( - m === constants.CORNER || - m === constants.CORNERS || - m === constants.RADIUS || - m === constants.CENTER - ) { - this._renderer._ellipseMode = m; - } - return this; - }; - - /** - * Draws all geometry with jagged (aliased) edges. Note that smooth() is - * active by default in 2D mode, so it is necessary to call noSmooth() to disable - * smoothing of geometry, images, and fonts. In 3D mode, noSmooth() is enabled - * by default, so it is necessary to call smooth() if you would like - * smooth (antialiased) edges on your geometry. - * - * @method noSmooth - * @chainable - * @example - *
- * - * background(0); - * noStroke(); - * smooth(); - * ellipse(30, 48, 36, 36); - * noSmooth(); - * ellipse(70, 48, 36, 36); - * - *
- * - * @alt - * 2 pixelated 36x36 white ellipses to left & right of center, black background - * - */ - p5.prototype.noSmooth = function() { - this.setAttributes('antialias', false); - if ('imageSmoothingEnabled' in this.drawingContext) { - this.drawingContext.imageSmoothingEnabled = false; - } - return this; - }; - - /** - * Modifies the location from which rectangles are drawn by changing the way - * in which parameters given to rect() are interpreted. - *

- * The default mode is rectMode(CORNER), which interprets the first two - * parameters of rect() as the upper-left corner of the shape, while the - * third and fourth parameters are its width and height. - *

- * rectMode(CORNERS) interprets the first two parameters of rect() as the - * location of one corner, and the third and fourth parameters as the - * location of the opposite corner. - *

- * rectMode(CENTER) interprets the first two parameters of rect() as the - * shape's center point, while the third and fourth parameters are its - * width and height. - *

- * rectMode(RADIUS) also uses the first two parameters of rect() as the - * shape's center point, but uses the third and fourth parameters to specify - * half of the shapes's width and height. - *

- * The parameter must be written in ALL CAPS because Javascript is a - * case-sensitive language. - * - * @method rectMode - * @param {Constant} mode either CORNER, CORNERS, CENTER, or RADIUS - * @chainable - * @example - *
- * - * rectMode(CORNER); // Default rectMode is CORNER - * fill(255); // Set fill to white - * rect(25, 25, 50, 50); // Draw white rect using CORNER mode - * - * rectMode(CORNERS); // Set rectMode to CORNERS - * fill(100); // Set fill to gray - * rect(25, 25, 50, 50); // Draw gray rect using CORNERS mode - * - *
- * - *
- * - * rectMode(RADIUS); // Set rectMode to RADIUS - * fill(255); // Set fill to white - * rect(50, 50, 30, 30); // Draw white rect using RADIUS mode - * - * rectMode(CENTER); // Set rectMode to CENTER - * fill(100); // Set fill to gray - * rect(50, 50, 30, 30); // Draw gray rect using CENTER mode - * - *
- * - * @alt - * 50x50 white rect at center and 25x25 grey rect in the top left of the other. - * 50x50 white rect at center and 25x25 grey rect in the center of the other. - * - */ - p5.prototype.rectMode = function(m) { - p5._validateParameters('rectMode', arguments); - if ( - m === constants.CORNER || - m === constants.CORNERS || - m === constants.RADIUS || - m === constants.CENTER - ) { - this._renderer._rectMode = m; - } - return this; - }; - - /** - * Draws all geometry with smooth (anti-aliased) edges. smooth() will also - * improve image quality of resized images. Note that smooth() is active by - * default in 2D mode; noSmooth() can be used to disable smoothing of geometry, - * images, and fonts. In 3D mode, noSmooth() is enabled - * by default, so it is necessary to call smooth() if you would like - * smooth (antialiased) edges on your geometry. - * - * @method smooth - * @chainable - * @example - *
- * - * background(0); - * noStroke(); - * smooth(); - * ellipse(30, 48, 36, 36); - * noSmooth(); - * ellipse(70, 48, 36, 36); - * - *
- * - * @alt - * 2 pixelated 36x36 white ellipses one left one right of center. On black. - * - */ - p5.prototype.smooth = function() { - this.setAttributes('antialias', true); - if ('imageSmoothingEnabled' in this.drawingContext) { - this.drawingContext.imageSmoothingEnabled = true; - } - return this; - }; - - /** - * Sets the style for rendering line endings. These ends are either squared, - * extended, or rounded, each of which specified with the corresponding - * parameters: SQUARE, PROJECT, and ROUND. The default cap is ROUND. - * - * @method strokeCap - * @param {Constant} cap either SQUARE, PROJECT, or ROUND - * @chainable - * @example - *
- * - * strokeWeight(12.0); - * strokeCap(ROUND); - * line(20, 30, 80, 30); - * strokeCap(SQUARE); - * line(20, 50, 80, 50); - * strokeCap(PROJECT); - * line(20, 70, 80, 70); - * - *
- * - * @alt - * 3 lines. Top line: rounded ends, mid: squared, bottom:longer squared ends. - * - */ - p5.prototype.strokeCap = function(cap) { - p5._validateParameters('strokeCap', arguments); - if ( - cap === constants.ROUND || - cap === constants.SQUARE || - cap === constants.PROJECT - ) { - this._renderer.strokeCap(cap); - } - return this; - }; - - /** - * Sets the style of the joints which connect line segments. These joints - * are either mitered, beveled, or rounded and specified with the - * corresponding parameters MITER, BEVEL, and ROUND. The default joint is - * MITER. - * - * @method strokeJoin - * @param {Constant} join either MITER, BEVEL, ROUND - * @chainable - * @example - *
- * - * noFill(); - * strokeWeight(10.0); - * strokeJoin(MITER); - * beginShape(); - * vertex(35, 20); - * vertex(65, 50); - * vertex(35, 80); - * endShape(); - * - *
- * - *
- * - * noFill(); - * strokeWeight(10.0); - * strokeJoin(BEVEL); - * beginShape(); - * vertex(35, 20); - * vertex(65, 50); - * vertex(35, 80); - * endShape(); - * - *
- * - *
- * - * noFill(); - * strokeWeight(10.0); - * strokeJoin(ROUND); - * beginShape(); - * vertex(35, 20); - * vertex(65, 50); - * vertex(35, 80); - * endShape(); - * - *
- * - * @alt - * Right-facing arrowhead shape with pointed tip in center of canvas. - * Right-facing arrowhead shape with flat tip in center of canvas. - * Right-facing arrowhead shape with rounded tip in center of canvas. - * - */ - p5.prototype.strokeJoin = function(join) { - p5._validateParameters('strokeJoin', arguments); - if ( - join === constants.ROUND || - join === constants.BEVEL || - join === constants.MITER - ) { - this._renderer.strokeJoin(join); - } - return this; - }; - - /** - * Sets the width of the stroke used for lines, points, and the border - * around shapes. All widths are set in units of pixels. - * - * @method strokeWeight - * @param {Number} weight the weight (in pixels) of the stroke - * @chainable - * @example - *
- * - * strokeWeight(1); // Default - * line(20, 20, 80, 20); - * strokeWeight(4); // Thicker - * line(20, 40, 80, 40); - * strokeWeight(10); // Beastly - * line(20, 70, 80, 70); - * - *
- * - * @alt - * 3 horizontal black lines. Top line: thin, mid: medium, bottom:thick. - * - */ - p5.prototype.strokeWeight = function(w) { - p5._validateParameters('strokeWeight', arguments); - this._renderer.strokeWeight(w); - return this; - }; - - module.exports = p5; - }, - { '../constants': 18, '../main': 24 } - ], - 32: [ - function(_dereq_, module, exports) { - /** - * @module Shape - * @submodule Curves - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../main'); - _dereq_('../error_helpers'); - - /** - * Draws a cubic Bezier curve on the screen. These curves are defined by a - * series of anchor and control points. The first two parameters specify - * the first anchor point and the last two parameters specify the other - * anchor point, which become the first and last points on the curve. The - * middle parameters specify the two control points which define the shape - * of the curve. Approximately speaking, control points "pull" the curve - * towards them.

Bezier curves were developed by French - * automotive engineer Pierre Bezier, and are commonly used in computer - * graphics to define gently sloping curves. See also curve(). - * - * @method bezier - * @param {Number} x1 x-coordinate for the first anchor point - * @param {Number} y1 y-coordinate for the first anchor point - * @param {Number} x2 x-coordinate for the first control point - * @param {Number} y2 y-coordinate for the first control point - * @param {Number} x3 x-coordinate for the second control point - * @param {Number} y3 y-coordinate for the second control point - * @param {Number} x4 x-coordinate for the second anchor point - * @param {Number} y4 y-coordinate for the second anchor point - * @chainable - * @example - *
- * - * noFill(); - * stroke(255, 102, 0); - * line(85, 20, 10, 10); - * line(90, 90, 15, 80); - * stroke(0, 0, 0); - * bezier(85, 20, 10, 10, 90, 90, 15, 80); - * - *
- * - *
- * - * background(0, 0, 0); - * noFill(); - * stroke(255); - * bezier(250, 250, 0, 100, 100, 0, 100, 0, 0, 0, 100, 0); - * - *
- * - * @alt - * stretched black s-shape in center with orange lines extending from end points. - * stretched black s-shape with 10 5x5 white ellipses along the shape. - * stretched black s-shape with 7 5x5 ellipses and orange lines along the shape. - * stretched black s-shape with 17 small orange lines extending from under shape. - * horseshoe shape with orange ends facing left and black curved center. - * horseshoe shape with orange ends facing left and black curved center. - * Line shaped like right-facing arrow,points move with mouse-x and warp shape. - * horizontal line that hooks downward on the right and 13 5x5 ellipses along it. - * right curving line mid-right of canvas with 7 short lines radiating from it. - */ - /** - * @method bezier - * @param {Number} x1 - * @param {Number} y1 - * @param {Number} z1 z-coordinate for the first anchor point - * @param {Number} x2 - * @param {Number} y2 - * @param {Number} z2 z-coordinate for the first control point - * @param {Number} x3 - * @param {Number} y3 - * @param {Number} z3 z-coordinate for the second control point - * @param {Number} x4 - * @param {Number} y4 - * @param {Number} z4 z-coordinate for the second anchor point - * @chainable - */ - p5.prototype.bezier = function() { - p5._validateParameters('bezier', arguments); - - // if the current stroke and fill settings wouldn't result in something - // visible, exit immediately - if (!this._renderer._doStroke && !this._renderer._doFill) { - return this; - } - - this._renderer.bezier.apply(this._renderer, arguments); - - return this; - }; - - /** - * Sets the resolution at which Beziers display. - * - * The default value is 20. - * - * This function is only useful when using the WEBGL renderer - * as the default canvas renderer does not use this information. - * - * @method bezierDetail - * @param {Number} detail resolution of the curves - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * noFill(); - * - * bezierDetail(5); - * } - * - * function draw() { - * background(200); - * - * // prettier-ignore - * bezier(-40, -40, 0, - * 90, -40, 0, - * -90, 40, 0, - * 40, 40, 0); - * } - * - *
- * - * @alt - * stretched black s-shape with a low level of bezier detail - * - */ - p5.prototype.bezierDetail = function(d) { - p5._validateParameters('bezierDetail', arguments); - this._bezierDetail = d; - return this; - }; - - /** - * Evaluates the Bezier at position t for points a, b, c, d. - * The parameters a and d are the first and last points - * on the curve, and b and c are the control points. - * The final parameter t varies between 0 and 1. - * This can be done once with the x coordinates and a second time - * with the y coordinates to get the location of a bezier curve at t. - * - * @method bezierPoint - * @param {Number} a coordinate of first point on the curve - * @param {Number} b coordinate of first control point - * @param {Number} c coordinate of second control point - * @param {Number} d coordinate of second point on the curve - * @param {Number} t value between 0 and 1 - * @return {Number} the value of the Bezier at position t - * @example - *
- * - * noFill(); - * let x1 = 85, - x2 = 10, - x3 = 90, - x4 = 15; - * let y1 = 20, - y2 = 10, - y3 = 90, - y4 = 80; - * bezier(x1, y1, x2, y2, x3, y3, x4, y4); - * fill(255); - * let steps = 10; - * for (let i = 0; i <= steps; i++) { - * let t = i / steps; - * let x = bezierPoint(x1, x2, x3, x4, t); - * let y = bezierPoint(y1, y2, y3, y4, t); - * ellipse(x, y, 5, 5); - * } - * - *
- * - * @alt - * stretched black s-shape with 17 small orange lines extending from under shape. - * - */ - p5.prototype.bezierPoint = function(a, b, c, d, t) { - p5._validateParameters('bezierPoint', arguments); - - var adjustedT = 1 - t; - return ( - Math.pow(adjustedT, 3) * a + - 3 * Math.pow(adjustedT, 2) * t * b + - 3 * adjustedT * Math.pow(t, 2) * c + - Math.pow(t, 3) * d - ); - }; - - /** - * Evaluates the tangent to the Bezier at position t for points a, b, c, d. - * The parameters a and d are the first and last points - * on the curve, and b and c are the control points. - * The final parameter t varies between 0 and 1. - * - * @method bezierTangent - * @param {Number} a coordinate of first point on the curve - * @param {Number} b coordinate of first control point - * @param {Number} c coordinate of second control point - * @param {Number} d coordinate of second point on the curve - * @param {Number} t value between 0 and 1 - * @return {Number} the tangent at position t - * @example - *
- * - * noFill(); - * bezier(85, 20, 10, 10, 90, 90, 15, 80); - * let steps = 6; - * fill(255); - * for (let i = 0; i <= steps; i++) { - * let t = i / steps; - * // Get the location of the point - * let x = bezierPoint(85, 10, 90, 15, t); - * let y = bezierPoint(20, 10, 90, 80, t); - * // Get the tangent points - * let tx = bezierTangent(85, 10, 90, 15, t); - * let ty = bezierTangent(20, 10, 90, 80, t); - * // Calculate an angle from the tangent points - * let a = atan2(ty, tx); - * a += PI; - * stroke(255, 102, 0); - * line(x, y, cos(a) * 30 + x, sin(a) * 30 + y); - * // The following line of code makes a line - * // inverse of the above line - * //line(x, y, cos(a)*-30 + x, sin(a)*-30 + y); - * stroke(0); - * ellipse(x, y, 5, 5); - * } - * - *
- * - *
- * - * noFill(); - * bezier(85, 20, 10, 10, 90, 90, 15, 80); - * stroke(255, 102, 0); - * let steps = 16; - * for (let i = 0; i <= steps; i++) { - * let t = i / steps; - * let x = bezierPoint(85, 10, 90, 15, t); - * let y = bezierPoint(20, 10, 90, 80, t); - * let tx = bezierTangent(85, 10, 90, 15, t); - * let ty = bezierTangent(20, 10, 90, 80, t); - * let a = atan2(ty, tx); - * a -= HALF_PI; - * line(x, y, cos(a) * 8 + x, sin(a) * 8 + y); - * } - * - *
- * - * @alt - * s-shaped line with 17 short orange lines extending from underside of shape - * - */ - p5.prototype.bezierTangent = function(a, b, c, d, t) { - p5._validateParameters('bezierTangent', arguments); - - var adjustedT = 1 - t; - return ( - 3 * d * Math.pow(t, 2) - - 3 * c * Math.pow(t, 2) + - 6 * c * adjustedT * t - - 6 * b * adjustedT * t + - 3 * b * Math.pow(adjustedT, 2) - - 3 * a * Math.pow(adjustedT, 2) - ); - }; - - /** - * Draws a curved line on the screen between two points, given as the - * middle four parameters. The first two parameters are a control point, as - * if the curve came from this point even though it's not drawn. The last - * two parameters similarly describe the other control point.

- * Longer curves can be created by putting a series of curve() functions - * together or using curveVertex(). An additional function called - * curveTightness() provides control for the visual quality of the curve. - * The curve() function is an implementation of Catmull-Rom splines. - * - * @method curve - * @param {Number} x1 x-coordinate for the beginning control point - * @param {Number} y1 y-coordinate for the beginning control point - * @param {Number} x2 x-coordinate for the first point - * @param {Number} y2 y-coordinate for the first point - * @param {Number} x3 x-coordinate for the second point - * @param {Number} y3 y-coordinate for the second point - * @param {Number} x4 x-coordinate for the ending control point - * @param {Number} y4 y-coordinate for the ending control point - * @chainable - * @example - *
- * - * noFill(); - * stroke(255, 102, 0); - * curve(5, 26, 5, 26, 73, 24, 73, 61); - * stroke(0); - * curve(5, 26, 73, 24, 73, 61, 15, 65); - * stroke(255, 102, 0); - * curve(73, 24, 73, 61, 15, 65, 15, 65); - * - *
- *
- * - * // Define the curve points as JavaScript objects - * let p1 = { x: 5, y: 26 }, - p2 = { x: 73, y: 24 }; - * let p3 = { x: 73, y: 61 }, - p4 = { x: 15, y: 65 }; - * noFill(); - * stroke(255, 102, 0); - * curve(p1.x, p1.y, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y); - * stroke(0); - * curve(p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y); - * stroke(255, 102, 0); - * curve(p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, p4.x, p4.y); - * - *
- *
- * - * noFill(); - * stroke(255, 102, 0); - * curve(5, 26, 0, 5, 26, 0, 73, 24, 0, 73, 61, 0); - * stroke(0); - * curve(5, 26, 0, 73, 24, 0, 73, 61, 0, 15, 65, 0); - * stroke(255, 102, 0); - * curve(73, 24, 0, 73, 61, 0, 15, 65, 0, 15, 65, 0); - * - *
- * - * @alt - * horseshoe shape with orange ends facing left and black curved center. - * horseshoe shape with orange ends facing left and black curved center. - * curving black and orange lines. - */ - /** - * @method curve - * @param {Number} x1 - * @param {Number} y1 - * @param {Number} z1 z-coordinate for the beginning control point - * @param {Number} x2 - * @param {Number} y2 - * @param {Number} z2 z-coordinate for the first point - * @param {Number} x3 - * @param {Number} y3 - * @param {Number} z3 z-coordinate for the second point - * @param {Number} x4 - * @param {Number} y4 - * @param {Number} z4 z-coordinate for the ending control point - * @chainable - */ - p5.prototype.curve = function() { - p5._validateParameters('curve', arguments); - - if (this._renderer._doStroke) { - this._renderer.curve.apply(this._renderer, arguments); - } - - return this; - }; - - /** - * Sets the resolution at which curves display. - * - * The default value is 20 while the minimum value is 3. - * - * This function is only useful when using the WEBGL renderer - * as the default canvas renderer does not use this - * information. - * - * @method curveDetail - * @param {Number} resolution resolution of the curves - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * - * curveDetail(5); - * } - * function draw() { - * background(200); - * - * curve(250, 600, 0, -30, 40, 0, 30, 30, 0, -250, 600, 0); - * } - * - *
- * - * @alt - * white arch shape with a low level of curve detail. - * - */ - p5.prototype.curveDetail = function(d) { - p5._validateParameters('curveDetail', arguments); - if (d < 3) { - this._curveDetail = 3; - } else { - this._curveDetail = d; - } - return this; - }; - - /** - * Modifies the quality of forms created with curve() and curveVertex(). - * The parameter tightness determines how the curve fits to the vertex - * points. The value 0.0 is the default value for tightness (this value - * defines the curves to be Catmull-Rom splines) and the value 1.0 connects - * all the points with straight lines. Values within the range -5.0 and 5.0 - * will deform the curves but will leave them recognizable and as values - * increase in magnitude, they will continue to deform. - * - * @method curveTightness - * @param {Number} amount amount of deformation from the original vertices - * @chainable - * @example - *
- * - * // Move the mouse left and right to see the curve change - * - * function setup() { - * createCanvas(100, 100); - * noFill(); - * } - * - * function draw() { - * background(204); - * let t = map(mouseX, 0, width, -5, 5); - * curveTightness(t); - * beginShape(); - * curveVertex(10, 26); - * curveVertex(10, 26); - * curveVertex(83, 24); - * curveVertex(83, 61); - * curveVertex(25, 65); - * curveVertex(25, 65); - * endShape(); - * } - * - *
- * - * @alt - * Line shaped like right-facing arrow,points move with mouse-x and warp shape. - */ - p5.prototype.curveTightness = function(t) { - p5._validateParameters('curveTightness', arguments); - this._renderer._curveTightness = t; - return this; - }; - - /** - * Evaluates the curve at position t for points a, b, c, d. - * The parameter t varies between 0 and 1, a and d are control points - * of the curve, and b and c are the start and end points of the curve. - * This can be done once with the x coordinates and a second time - * with the y coordinates to get the location of a curve at t. - * - * @method curvePoint - * @param {Number} a coordinate of first control point of the curve - * @param {Number} b coordinate of first point - * @param {Number} c coordinate of second point - * @param {Number} d coordinate of second control point - * @param {Number} t value between 0 and 1 - * @return {Number} bezier value at position t - * @example - *
- * - * noFill(); - * curve(5, 26, 5, 26, 73, 24, 73, 61); - * curve(5, 26, 73, 24, 73, 61, 15, 65); - * fill(255); - * ellipseMode(CENTER); - * let steps = 6; - * for (let i = 0; i <= steps; i++) { - * let t = i / steps; - * let x = curvePoint(5, 5, 73, 73, t); - * let y = curvePoint(26, 26, 24, 61, t); - * ellipse(x, y, 5, 5); - * x = curvePoint(5, 73, 73, 15, t); - * y = curvePoint(26, 24, 61, 65, t); - * ellipse(x, y, 5, 5); - * } - * - *
- * - *line hooking down to right-bottom with 13 5x5 white ellipse points - */ - p5.prototype.curvePoint = function(a, b, c, d, t) { - p5._validateParameters('curvePoint', arguments); - - var t3 = t * t * t, - t2 = t * t, - f1 = -0.5 * t3 + t2 - 0.5 * t, - f2 = 1.5 * t3 - 2.5 * t2 + 1.0, - f3 = -1.5 * t3 + 2.0 * t2 + 0.5 * t, - f4 = 0.5 * t3 - 0.5 * t2; - return a * f1 + b * f2 + c * f3 + d * f4; - }; - - /** - * Evaluates the tangent to the curve at position t for points a, b, c, d. - * The parameter t varies between 0 and 1, a and d are points on the curve, - * and b and c are the control points. - * - * @method curveTangent - * @param {Number} a coordinate of first point on the curve - * @param {Number} b coordinate of first control point - * @param {Number} c coordinate of second control point - * @param {Number} d coordinate of second point on the curve - * @param {Number} t value between 0 and 1 - * @return {Number} the tangent at position t - * @example - *
- * - * noFill(); - * curve(5, 26, 73, 24, 73, 61, 15, 65); - * let steps = 6; - * for (let i = 0; i <= steps; i++) { - * let t = i / steps; - * let x = curvePoint(5, 73, 73, 15, t); - * let y = curvePoint(26, 24, 61, 65, t); - * //ellipse(x, y, 5, 5); - * let tx = curveTangent(5, 73, 73, 15, t); - * let ty = curveTangent(26, 24, 61, 65, t); - * let a = atan2(ty, tx); - * a -= PI / 2.0; - * line(x, y, cos(a) * 8 + x, sin(a) * 8 + y); - * } - * - *
- * - * @alt - *right curving line mid-right of canvas with 7 short lines radiating from it. - */ - p5.prototype.curveTangent = function(a, b, c, d, t) { - p5._validateParameters('curveTangent', arguments); - - var t2 = t * t, - f1 = -3 * t2 / 2 + 2 * t - 0.5, - f2 = 9 * t2 / 2 - 5 * t, - f3 = -9 * t2 / 2 + 4 * t + 0.5, - f4 = 3 * t2 / 2 - t; - return a * f1 + b * f2 + c * f3 + d * f4; - }; - - module.exports = p5; - }, - { '../error_helpers': 20, '../main': 24 } - ], - 33: [ - function(_dereq_, module, exports) { - /** - * @module Shape - * @submodule Vertex - * @for p5 - * @requires core - * @requires constants - */ - - 'use strict'; - - var p5 = _dereq_('../main'); - var constants = _dereq_('../constants'); - var shapeKind = null; - var vertices = []; - var contourVertices = []; - var isBezier = false; - var isCurve = false; - var isQuadratic = false; - var isContour = false; - var isFirstContour = true; - - /** - * Use the beginContour() and endContour() functions to create negative - * shapes within shapes such as the center of the letter 'O'. beginContour() - * begins recording vertices for the shape and endContour() stops recording. - * The vertices that define a negative shape must "wind" in the opposite - * direction from the exterior shape. First draw vertices for the exterior - * clockwise order, then for internal shapes, draw vertices - * shape in counter-clockwise. - *

- * These functions can only be used within a beginShape()/endShape() pair and - * transformations such as translate(), rotate(), and scale() do not work - * within a beginContour()/endContour() pair. It is also not possible to use - * other shapes, such as ellipse() or rect() within. - * - * @method beginContour - * @chainable - * @example - *
- * - * translate(50, 50); - * stroke(255, 0, 0); - * beginShape(); - * // Exterior part of shape, clockwise winding - * vertex(-40, -40); - * vertex(40, -40); - * vertex(40, 40); - * vertex(-40, 40); - * // Interior part of shape, counter-clockwise winding - * beginContour(); - * vertex(-20, -20); - * vertex(-20, 20); - * vertex(20, 20); - * vertex(20, -20); - * endContour(); - * endShape(CLOSE); - * - *
- * - * @alt - * white rect and smaller grey rect with red outlines in center of canvas. - * - */ - p5.prototype.beginContour = function() { - contourVertices = []; - isContour = true; - return this; - }; - - /** - * Using the beginShape() and endShape() functions allow creating more - * complex forms. beginShape() begins recording vertices for a shape and - * endShape() stops recording. The value of the kind parameter tells it which - * types of shapes to create from the provided vertices. With no mode - * specified, the shape can be any irregular polygon. - *

- * The parameters available for beginShape() are POINTS, LINES, TRIANGLES, - * TRIANGLE_FAN, TRIANGLE_STRIP, QUADS, and QUAD_STRIP. After calling the - * beginShape() function, a series of vertex() commands must follow. To stop - * drawing the shape, call endShape(). Each shape will be outlined with the - * current stroke color and filled with the fill color. - *

- * Transformations such as translate(), rotate(), and scale() do not work - * within beginShape(). It is also not possible to use other shapes, such as - * ellipse() or rect() within beginShape(). - * - * @method beginShape - * @param {Constant} [kind] either POINTS, LINES, TRIANGLES, TRIANGLE_FAN - * TRIANGLE_STRIP, QUADS, or QUAD_STRIP - * @chainable - * @example - *
- * - * beginShape(); - * vertex(30, 20); - * vertex(85, 20); - * vertex(85, 75); - * vertex(30, 75); - * endShape(CLOSE); - * - *
- * - *
- * - * beginShape(POINTS); - * vertex(30, 20); - * vertex(85, 20); - * vertex(85, 75); - * vertex(30, 75); - * endShape(); - * - *
- * - *
- * - * beginShape(LINES); - * vertex(30, 20); - * vertex(85, 20); - * vertex(85, 75); - * vertex(30, 75); - * endShape(); - * - *
- * - *
- * - * noFill(); - * beginShape(); - * vertex(30, 20); - * vertex(85, 20); - * vertex(85, 75); - * vertex(30, 75); - * endShape(); - * - *
- * - *
- * - * noFill(); - * beginShape(); - * vertex(30, 20); - * vertex(85, 20); - * vertex(85, 75); - * vertex(30, 75); - * endShape(CLOSE); - * - *
- * - *
- * - * beginShape(TRIANGLES); - * vertex(30, 75); - * vertex(40, 20); - * vertex(50, 75); - * vertex(60, 20); - * vertex(70, 75); - * vertex(80, 20); - * endShape(); - * - *
- * - *
- * - * beginShape(TRIANGLE_STRIP); - * vertex(30, 75); - * vertex(40, 20); - * vertex(50, 75); - * vertex(60, 20); - * vertex(70, 75); - * vertex(80, 20); - * vertex(90, 75); - * endShape(); - * - *
- * - *
- * - * beginShape(TRIANGLE_FAN); - * vertex(57.5, 50); - * vertex(57.5, 15); - * vertex(92, 50); - * vertex(57.5, 85); - * vertex(22, 50); - * vertex(57.5, 15); - * endShape(); - * - *
- * - *
- * - * beginShape(QUADS); - * vertex(30, 20); - * vertex(30, 75); - * vertex(50, 75); - * vertex(50, 20); - * vertex(65, 20); - * vertex(65, 75); - * vertex(85, 75); - * vertex(85, 20); - * endShape(); - * - *
- * - *
- * - * beginShape(QUAD_STRIP); - * vertex(30, 20); - * vertex(30, 75); - * vertex(50, 20); - * vertex(50, 75); - * vertex(65, 20); - * vertex(65, 75); - * vertex(85, 20); - * vertex(85, 75); - * endShape(); - * - *
- * - *
- * - * beginShape(); - * vertex(20, 20); - * vertex(40, 20); - * vertex(40, 40); - * vertex(60, 40); - * vertex(60, 60); - * vertex(20, 60); - * endShape(CLOSE); - * - *
- * @alt - * white square-shape with black outline in middle-right of canvas. - * 4 black points in a square shape in middle-right of canvas. - * 2 horizontal black lines. In the top-right and bottom-right of canvas. - * 3 line shape with horizontal on top, vertical in middle and horizontal bottom. - * square line shape in middle-right of canvas. - * 2 white triangle shapes mid-right canvas. left one pointing up and right down. - * 5 horizontal interlocking and alternating white triangles in mid-right canvas. - * 4 interlocking white triangles in 45 degree rotated square-shape. - * 2 white rectangle shapes in mid-right canvas. Both 20x55. - * 3 side-by-side white rectangles center rect is smaller in mid-right canvas. - * Thick white l-shape with black outline mid-top-left of canvas. - * - */ - p5.prototype.beginShape = function(kind) { - p5._validateParameters('beginShape', arguments); - if (this._renderer.isP3D) { - this._renderer.beginShape.apply(this._renderer, arguments); - } else { - if ( - kind === constants.POINTS || - kind === constants.LINES || - kind === constants.TRIANGLES || - kind === constants.TRIANGLE_FAN || - kind === constants.TRIANGLE_STRIP || - kind === constants.QUADS || - kind === constants.QUAD_STRIP - ) { - shapeKind = kind; - } else { - shapeKind = null; - } - - vertices = []; - contourVertices = []; - } - return this; - }; - - /** - * Specifies vertex coordinates for Bezier curves. Each call to - * bezierVertex() defines the position of two control points and - * one anchor point of a Bezier curve, adding a new segment to a - * line or shape. For WebGL mode bezierVertex() can be used in 2D - * as well as 3D mode. 2D mode expects 6 parameters, while 3D mode - * expects 9 parameters (including z coordinates). - *

- * The first time bezierVertex() is used within a beginShape() - * call, it must be prefaced with a call to vertex() to set the first anchor - * point. This function must be used between beginShape() and endShape() - * and only when there is no MODE or POINTS parameter specified to - * beginShape(). - * - * @method bezierVertex - * @param {Number} x2 x-coordinate for the first control point - * @param {Number} y2 y-coordinate for the first control point - * @param {Number} x3 x-coordinate for the second control point - * @param {Number} y3 y-coordinate for the second control point - * @param {Number} x4 x-coordinate for the anchor point - * @param {Number} y4 y-coordinate for the anchor point - * @chainable - * - * @example - *
- * - * noFill(); - * beginShape(); - * vertex(30, 20); - * bezierVertex(80, 0, 80, 75, 30, 75); - * endShape(); - * - *
- * - * @alt - * crescent-shaped line in middle of canvas. Points facing left. - * - * @example - *
- * - * beginShape(); - * vertex(30, 20); - * bezierVertex(80, 0, 80, 75, 30, 75); - * bezierVertex(50, 80, 60, 25, 30, 20); - * endShape(); - * - *
- * - * @alt - * white crescent shape in middle of canvas. Points facing left. - * - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * setAttributes('antialias', true); - * } - * function draw() { - * orbitControl(); - * background(50); - * strokeWeight(4); - * stroke(255); - * point(-25, 30); - * point(25, 30); - * point(25, -30); - * point(-25, -30); - * - * strokeWeight(1); - * noFill(); - * - * beginShape(); - * vertex(-25, 30); - * bezierVertex(25, 30, 25, -30, -25, -30); - * endShape(); - * - * beginShape(); - * vertex(-25, 30, 20); - * bezierVertex(25, 30, 20, 25, -30, 20, -25, -30, 20); - * endShape(); - * } - * - *
- * - * @alt - * crescent shape in middle of canvas with another crescent shape on positive z-axis. - */ - - /** - * @method bezierVertex - * @param {Number} x2 - * @param {Number} y2 - * @param {Number} z2 z-coordinate for the first control point (for WebGL mode) - * @param {Number} x3 - * @param {Number} y3 - * @param {Number} z3 z-coordinate for the second control point (for WebGL mode) - * @param {Number} x4 - * @param {Number} y4 - * @param {Number} z4 z-coordinate for the anchor point (for WebGL mode) - * @chainable - */ - p5.prototype.bezierVertex = function() { - p5._validateParameters('bezierVertex', arguments); - if (this._renderer.isP3D) { - this._renderer.bezierVertex.apply(this._renderer, arguments); - } else { - if (vertices.length === 0) { - p5._friendlyError( - 'vertex() must be used once before calling bezierVertex()', - 'bezierVertex' - ); - } else { - isBezier = true; - var vert = []; - for (var i = 0; i < arguments.length; i++) { - vert[i] = arguments[i]; - } - vert.isVert = false; - if (isContour) { - contourVertices.push(vert); - } else { - vertices.push(vert); - } - } - } - return this; - }; - - /** - * Specifies vertex coordinates for curves. This function may only - * be used between beginShape() and endShape() and only when there - * is no MODE parameter specified to beginShape(). - * For WebGL mode curveVertex() can be used in 2D as well as 3D mode. - * 2D mode expects 2 parameters, while 3D mode expects 3 parameters. - *

- * The first and last points in a series of curveVertex() lines will be used to - * guide the beginning and end of a the curve. A minimum of four - * points is required to draw a tiny curve between the second and - * third points. Adding a fifth point with curveVertex() will draw - * the curve between the second, third, and fourth points. The - * curveVertex() function is an implementation of Catmull-Rom - * splines. - * - * @method curveVertex - * @param {Number} x x-coordinate of the vertex - * @param {Number} y y-coordinate of the vertex - * @chainable - * @example - *
- * - * strokeWeight(5); - * point(84, 91); - * point(68, 19); - * point(21, 17); - * point(32, 91); - * strokeWeight(1); - * - * noFill(); - * beginShape(); - * curveVertex(84, 91); - * curveVertex(84, 91); - * curveVertex(68, 19); - * curveVertex(21, 17); - * curveVertex(32, 91); - * curveVertex(32, 91); - * endShape(); - * - *
- * - * - * @alt - * Upside-down u-shape line, mid canvas. left point extends beyond canvas view. - */ - /** - * @method curveVertex - * @param {Number} x - * @param {Number} y - * @param {Number} [z] z-coordinate of the vertex (for WebGL mode) - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * setAttributes('antialias', true); - * } - * function draw() { - * orbitControl(); - * background(50); - * strokeWeight(4); - * stroke(255); - * - * point(-25, 25); - * point(-25, 25); - * point(-25, -25); - * point(25, -25); - * point(25, 25); - * point(25, 25); - * - * strokeWeight(1); - * noFill(); - * - * beginShape(); - * curveVertex(-25, 25); - * curveVertex(-25, 25); - * curveVertex(-25, -25); - * curveVertex(25, -25); - * curveVertex(25, 25); - * curveVertex(25, 25); - * endShape(); - * - * beginShape(); - * curveVertex(-25, 25, 20); - * curveVertex(-25, 25, 20); - * curveVertex(-25, -25, 20); - * curveVertex(25, -25, 20); - * curveVertex(25, 25, 20); - * curveVertex(25, 25, 20); - * endShape(); - * } - * - *
- * - * @alt - * Upside-down u-shape line, mid canvas with the same shape in positive z-axis. - * - */ - p5.prototype.curveVertex = function() { - p5._validateParameters('curveVertex', arguments); - if (this._renderer.isP3D) { - this._renderer.curveVertex.apply(this._renderer, arguments); - } else { - isCurve = true; - this.vertex(arguments[0], arguments[1]); - } - return this; - }; - - /** - * Use the beginContour() and endContour() functions to create negative - * shapes within shapes such as the center of the letter 'O'. beginContour() - * begins recording vertices for the shape and endContour() stops recording. - * The vertices that define a negative shape must "wind" in the opposite - * direction from the exterior shape. First draw vertices for the exterior - * clockwise order, then for internal shapes, draw vertices - * shape in counter-clockwise. - *

- * These functions can only be used within a beginShape()/endShape() pair and - * transformations such as translate(), rotate(), and scale() do not work - * within a beginContour()/endContour() pair. It is also not possible to use - * other shapes, such as ellipse() or rect() within. - * - * @method endContour - * @chainable - * @example - *
- * - * translate(50, 50); - * stroke(255, 0, 0); - * beginShape(); - * // Exterior part of shape, clockwise winding - * vertex(-40, -40); - * vertex(40, -40); - * vertex(40, 40); - * vertex(-40, 40); - * // Interior part of shape, counter-clockwise winding - * beginContour(); - * vertex(-20, -20); - * vertex(-20, 20); - * vertex(20, 20); - * vertex(20, -20); - * endContour(); - * endShape(CLOSE); - * - *
- * - * @alt - * white rect and smaller grey rect with red outlines in center of canvas. - * - */ - p5.prototype.endContour = function() { - var vert = contourVertices[0].slice(); // copy all data - vert.isVert = contourVertices[0].isVert; - vert.moveTo = false; - contourVertices.push(vert); - - // prevent stray lines with multiple contours - if (isFirstContour) { - vertices.push(vertices[0]); - isFirstContour = false; - } - - for (var i = 0; i < contourVertices.length; i++) { - vertices.push(contourVertices[i]); - } - return this; - }; - - /** - * The endShape() function is the companion to beginShape() and may only be - * called after beginShape(). When endshape() is called, all of image data - * defined since the previous call to beginShape() is written into the image - * buffer. The constant CLOSE as the value for the MODE parameter to close - * the shape (to connect the beginning and the end). - * - * @method endShape - * @param {Constant} [mode] use CLOSE to close the shape - * @chainable - * @example - *
- * - * noFill(); - * - * beginShape(); - * vertex(20, 20); - * vertex(45, 20); - * vertex(45, 80); - * endShape(CLOSE); - * - * beginShape(); - * vertex(50, 20); - * vertex(75, 20); - * vertex(75, 80); - * endShape(); - * - *
- * - * @alt - * Triangle line shape with smallest interior angle on bottom and upside-down L. - * - */ - p5.prototype.endShape = function(mode) { - p5._validateParameters('endShape', arguments); - if (this._renderer.isP3D) { - this._renderer.endShape( - mode, - isCurve, - isBezier, - isQuadratic, - isContour, - shapeKind - ); - } else { - if (vertices.length === 0) { - return this; - } - if (!this._renderer._doStroke && !this._renderer._doFill) { - return this; - } - - var closeShape = mode === constants.CLOSE; - - // if the shape is closed, the first element is also the last element - if (closeShape && !isContour) { - vertices.push(vertices[0]); - } - - this._renderer.endShape( - mode, - vertices, - isCurve, - isBezier, - isQuadratic, - isContour, - shapeKind - ); - - // Reset some settings - isCurve = false; - isBezier = false; - isQuadratic = false; - isContour = false; - isFirstContour = true; - - // If the shape is closed, the first element was added as last element. - // We must remove it again to prevent the list of vertices from growing - // over successive calls to endShape(CLOSE) - if (closeShape) { - vertices.pop(); - } - } - return this; - }; - - /** - * Specifies vertex coordinates for quadratic Bezier curves. Each call to - * quadraticVertex() defines the position of one control points and one - * anchor point of a Bezier curve, adding a new segment to a line or shape. - * The first time quadraticVertex() is used within a beginShape() call, it - * must be prefaced with a call to vertex() to set the first anchor point. - * For WebGL mode quadraticVertex() can be used in 2D as well as 3D mode. - * 2D mode expects 4 parameters, while 3D mode expects 6 parameters - * (including z coordinates). - *

- * This function must be used between beginShape() and endShape() - * and only when there is no MODE or POINTS parameter specified to - * beginShape(). - * - * @method quadraticVertex - * @param {Number} cx x-coordinate for the control point - * @param {Number} cy y-coordinate for the control point - * @param {Number} x3 x-coordinate for the anchor point - * @param {Number} y3 y-coordinate for the anchor point - * @chainable - * - * @example - *
- * - * strokeWeight(5); - * point(20, 20); - * point(80, 20); - * point(50, 50); - * - * noFill(); - * strokeWeight(1); - * beginShape(); - * vertex(20, 20); - * quadraticVertex(80, 20, 50, 50); - * endShape(); - * - *
- * - *
- * - * strokeWeight(5); - * point(20, 20); - * point(80, 20); - * point(50, 50); - * - * point(20, 80); - * point(80, 80); - * point(80, 60); - * - * noFill(); - * strokeWeight(1); - * beginShape(); - * vertex(20, 20); - * quadraticVertex(80, 20, 50, 50); - * quadraticVertex(20, 80, 80, 80); - * vertex(80, 60); - * endShape(); - * - *
- * - * @alt - * arched-shaped black line with 4 pixel thick stroke weight. - * backwards s-shaped black line with 4 pixel thick stroke weight. - * - */ - - /** - * @method quadraticVertex - * @param {Number} cx - * @param {Number} cy - * @param {Number} cz z-coordinate for the control point (for WebGL mode) - * @param {Number} x3 - * @param {Number} y3 - * @param {Number} z3 z-coordinate for the anchor point (for WebGL mode) - * @chainable - * - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * setAttributes('antialias', true); - * } - * function draw() { - * orbitControl(); - * background(50); - * strokeWeight(4); - * stroke(255); - * - * point(-35, -35); - * point(35, -35); - * point(0, 0); - * point(-35, 35); - * point(35, 35); - * point(35, 10); - * - * strokeWeight(1); - * noFill(); - * - * beginShape(); - * vertex(-35, -35); - * quadraticVertex(35, -35, 0, 0); - * quadraticVertex(-35, 35, 35, 35); - * vertex(35, 10); - * endShape(); - * - * beginShape(); - * vertex(-35, -35, 20); - * quadraticVertex(35, -35, 20, 0, 0, 20); - * quadraticVertex(-35, 35, 20, 35, 35, 20); - * vertex(35, 10, 20); - * endShape(); - * } - * - *
- * - * @alt - * backwards s-shaped black line with the same s-shaped line in postive z-axis. - */ - p5.prototype.quadraticVertex = function() { - p5._validateParameters('quadraticVertex', arguments); - if (this._renderer.isP3D) { - this._renderer.quadraticVertex.apply(this._renderer, arguments); - } else { - //if we're drawing a contour, put the points into an - // array for inside drawing - if (this._contourInited) { - var pt = {}; - pt.x = arguments[0]; - pt.y = arguments[1]; - pt.x3 = arguments[2]; - pt.y3 = arguments[3]; - pt.type = constants.QUADRATIC; - this._contourVertices.push(pt); - - return this; - } - if (vertices.length > 0) { - isQuadratic = true; - var vert = []; - for (var i = 0; i < arguments.length; i++) { - vert[i] = arguments[i]; - } - vert.isVert = false; - if (isContour) { - contourVertices.push(vert); - } else { - vertices.push(vert); - } - } else { - p5._friendlyError( - 'vertex() must be used once before calling quadraticVertex()', - 'quadraticVertex' - ); - } - } - return this; - }; - - /** - * All shapes are constructed by connecting a series of vertices. vertex() - * is used to specify the vertex coordinates for points, lines, triangles, - * quads, and polygons. It is used exclusively within the beginShape() and - * endShape() functions. - * - * @method vertex - * @param {Number} x x-coordinate of the vertex - * @param {Number} y y-coordinate of the vertex - * @chainable - * @example - *
- * - * strokeWeight(3); - * beginShape(POINTS); - * vertex(30, 20); - * vertex(85, 20); - * vertex(85, 75); - * vertex(30, 75); - * endShape(); - * - *
- * - *
- * - * createCanvas(100, 100, WEBGL); - * background(240, 240, 240); - * fill(237, 34, 93); - * noStroke(); - * beginShape(); - * vertex(0, 35); - * vertex(35, 0); - * vertex(0, -35); - * vertex(-35, 0); - * endShape(); - * - *
- * - *
- * - * createCanvas(100, 100, WEBGL); - * background(240, 240, 240); - * fill(237, 34, 93); - * noStroke(); - * beginShape(); - * vertex(-10, 10); - * vertex(0, 35); - * vertex(10, 10); - * vertex(35, 0); - * vertex(10, -8); - * vertex(0, -35); - * vertex(-10, -8); - * vertex(-35, 0); - * endShape(); - * - *
- * - *
- * - * strokeWeight(3); - * stroke(237, 34, 93); - * beginShape(LINES); - * vertex(10, 35); - * vertex(90, 35); - * vertex(10, 65); - * vertex(90, 65); - * vertex(35, 10); - * vertex(35, 90); - * vertex(65, 10); - * vertex(65, 90); - * endShape(); - * - *
- * - *
- * - * // Click to change the number of sides. - * // In WebGL mode, custom shapes will only - * // display hollow fill sections when - * // all calls to vertex() use the same z-value. - * - * let sides = 3; - * let angle, px, py; - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * setAttributes('antialias', true); - * fill(237, 34, 93); - * strokeWeight(3); - * } - * - * function draw() { - * background(200); - * rotateX(frameCount * 0.01); - * rotateZ(frameCount * 0.01); - * ngon(sides, 0, 0, 80); - * } - * - * function mouseClicked() { - * if (sides > 6) { - * sides = 3; - * } else { - * sides++; - * } - * } - * - * function ngon(n, x, y, d) { - * beginShape(); - * for (var i = 0; i < n + 1; i++) { - * angle = TWO_PI / n * i; - * px = x + sin(angle) * d / 2; - * py = y - cos(angle) * d / 2; - * vertex(px, py, 0); - * } - * for (i = 0; i < n + 1; i++) { - * angle = TWO_PI / n * i; - * px = x + sin(angle) * d / 4; - * py = y - cos(angle) * d / 4; - * vertex(px, py, 0); - * } - * endShape(); - * } - * - *
- * @alt - * 4 black points in a square shape in middle-right of canvas. - * 4 points making a diamond shape. - * 8 points making a star. - * 8 points making 4 lines. - * A rotating 3D shape with a hollow section in the middle. - * - */ - /** - * @method vertex - * @param {Number} x - * @param {Number} y - * @param {Number} z z-coordinate of the vertex - * @param {Number} [u] the vertex's texture u-coordinate - * @param {Number} [v] the vertex's texture v-coordinate - * @chainable - */ - p5.prototype.vertex = function(x, y, moveTo, u, v) { - if (this._renderer.isP3D) { - this._renderer.vertex.apply(this._renderer, arguments); - } else { - var vert = []; - vert.isVert = true; - vert[0] = x; - vert[1] = y; - vert[2] = 0; - vert[3] = 0; - vert[4] = 0; - vert[5] = this._renderer._getFill(); - vert[6] = this._renderer._getStroke(); - - if (moveTo) { - vert.moveTo = moveTo; - } - if (isContour) { - if (contourVertices.length === 0) { - vert.moveTo = true; - } - contourVertices.push(vert); - } else { - vertices.push(vert); - } - } - return this; - }; - - module.exports = p5; - }, - { '../constants': 18, '../main': 24 } - ], - 34: [ - function(_dereq_, module, exports) { - 'use strict'; - - // requestAnim shim layer by Paul Irish - // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ - // http://my.opera.com/emoller/blog/2011/12/20/ - // requestanimationframe-for-smart-er-animating - // requestAnimationFrame polyfill by Erik Mรถller - // fixes from Paul Irish and Tino Zijdel - function _typeof(obj) { - if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && - typeof Symbol === 'function' && - obj.constructor === Symbol && - obj !== Symbol.prototype - ? 'symbol' - : typeof obj; - }; - } - return _typeof(obj); - } - window.requestAnimationFrame = (function() { - return ( - window.requestAnimationFrame || - window.webkitRequestAnimationFrame || - window.mozRequestAnimationFrame || - window.oRequestAnimationFrame || - window.msRequestAnimationFrame || - function(callback, element) { - // should '60' here be framerate? - window.setTimeout(callback, 1000 / 60); - } - ); - })(); - - /** - * shim for Uint8ClampedArray.slice - * (allows arrayCopy to work with pixels[]) - * with thanks to http://halfpapstudios.com/blog/tag/html5-canvas/ - * Enumerable set to false to protect for...in from - * Uint8ClampedArray.prototype pollution. - */ - (function() { - 'use strict'; - if ( - typeof Uint8ClampedArray !== 'undefined' && - !Uint8ClampedArray.prototype.slice - ) { - Object.defineProperty(Uint8ClampedArray.prototype, 'slice', { - value: Array.prototype.slice, - writable: true, - configurable: true, - enumerable: false - }); - } - })(); - - /** - * this is implementation of Object.assign() which is unavailable in - * IE11 and (non-Chrome) Android browsers. - * The assign() method is used to copy the values of all enumerable - * own properties from one or more source objects to a target object. - * It will return the target object. - * Modified from https://github.com/ljharb/object.assign - */ - (function() { - 'use strict'; - if (!Object.assign) { - var keys = Object.keys; - var defineProperty = Object.defineProperty; - var canBeObject = function canBeObject(obj) { - return typeof obj !== 'undefined' && obj !== null; - }; - var hasSymbols = - typeof Symbol === 'function' && _typeof(Symbol()) === 'symbol'; - var propIsEnumerable = Object.prototype.propertyIsEnumerable; - var isEnumerableOn = function isEnumerableOn(obj) { - return function isEnumerable(prop) { - return propIsEnumerable.call(obj, prop); - }; - }; - - // per ES6 spec, this function has to have a length of 2 - var assignShim = function assign(target, source1) { - if (!canBeObject(target)) { - throw new TypeError('target must be an object'); - } - var objTarget = Object(target); - var s, source, i, props; - for (s = 1; s < arguments.length; ++s) { - source = Object(arguments[s]); - props = keys(source); - if (hasSymbols && Object.getOwnPropertySymbols) { - props.push.apply( - props, - Object.getOwnPropertySymbols(source).filter(isEnumerableOn(source)) - ); - } - for (i = 0; i < props.length; ++i) { - objTarget[props[i]] = source[props[i]]; - } - } - return objTarget; - }; - - defineProperty(Object, 'assign', { - value: assignShim, - configurable: true, - enumerable: false, - writable: true - }); - } - })(); - }, - {} - ], - 35: [ - function(_dereq_, module, exports) { - /** - * @module Structure - * @submodule Structure - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('./main'); - - /** - * Stops p5.js from continuously executing the code within draw(). - * If loop() is called, the code in draw() begins to run continuously again. - * If using noLoop() in setup(), it should be the last line inside the block. - *

- * When noLoop() is used, it's not possible to manipulate or access the - * screen inside event handling functions such as mousePressed() or - * keyPressed(). Instead, use those functions to call redraw() or loop(), - * which will run draw(), which can update the screen properly. This means - * that when noLoop() has been called, no drawing can happen, and functions - * like saveFrame() or loadPixels() may not be used. - *

- * Note that if the sketch is resized, redraw() will be called to update - * the sketch, even after noLoop() has been specified. Otherwise, the sketch - * would enter an odd state until loop() was called. - * - * @method noLoop - * @example - *
- * function setup() { - * createCanvas(100, 100); - * background(200); - * noLoop(); - * } - - * function draw() { - * line(10, 10, 90, 90); - * } - *
- * - *
- * let x = 0; - * function setup() { - * createCanvas(100, 100); - * } - * - * function draw() { - * background(204); - * x = x + 0.1; - * if (x > width) { - * x = 0; - * } - * line(x, 0, x, height); - * } - * - * function mousePressed() { - * noLoop(); - * } - * - * function mouseReleased() { - * loop(); - * } - *
- * - * @alt - * 113 pixel long line extending from top-left to bottom right of canvas. - * horizontal line moves slowly from left. Loops but stops on mouse press. - * - */ - p5.prototype.noLoop = function() { - this._loop = false; - }; - /** - * By default, p5.js loops through draw() continuously, executing the code - * within it. However, the draw() loop may be stopped by calling noLoop(). - * In that case, the draw() loop can be resumed with loop(). - * - * Avoid calling loop() from inside setup(). - * - * @method loop - * @example - *
- * let x = 0; - * function setup() { - * createCanvas(100, 100); - * noLoop(); - * } - * - * function draw() { - * background(204); - * x = x + 0.1; - * if (x > width) { - * x = 0; - * } - * line(x, 0, x, height); - * } - * - * function mousePressed() { - * loop(); - * } - * - * function mouseReleased() { - * noLoop(); - * } - *
- * - * @alt - * horizontal line moves slowly from left. Loops but stops on mouse press. - * - */ - - p5.prototype.loop = function() { - if (!this._loop) { - this._loop = true; - if (this._setupDone) { - this._draw(); - } - } - }; - - /** - * The push() function saves the current drawing style settings and - * transformations, while pop() restores these settings. Note that these - * functions are always used together. They allow you to change the style - * and transformation settings and later return to what you had. When a new - * state is started with push(), it builds on the current style and transform - * information. The push() and pop() functions can be embedded to provide - * more control. (See the second example for a demonstration.) - *

- * push() stores information related to the current transformation state - * and style settings controlled by the following functions: fill(), - * stroke(), tint(), strokeWeight(), strokeCap(), strokeJoin(), - * imageMode(), rectMode(), ellipseMode(), colorMode(), textAlign(), - * textFont(), textSize(), textLeading(). - *

- * In WEBGL mode additional style settings are stored. These are controlled by the following functions: setCamera(), ambientLight(), directionalLight(), - * pointLight(), texture(), specularMaterial(), shininess(), normalMaterial() - * and shader(). - * - * @method push - * @example - *
- * - * ellipse(0, 50, 33, 33); // Left circle - * - * push(); // Start a new drawing state - * strokeWeight(10); - * fill(204, 153, 0); - * translate(50, 0); - * ellipse(0, 50, 33, 33); // Middle circle - * pop(); // Restore original state - * - * ellipse(100, 50, 33, 33); // Right circle - * - *
- *
- * - * ellipse(0, 50, 33, 33); // Left circle - * - * push(); // Start a new drawing state - * strokeWeight(10); - * fill(204, 153, 0); - * ellipse(33, 50, 33, 33); // Left-middle circle - * - * push(); // Start another new drawing state - * stroke(0, 102, 153); - * ellipse(66, 50, 33, 33); // Right-middle circle - * pop(); // Restore previous state - * - * pop(); // Restore original state - * - * ellipse(100, 50, 33, 33); // Right circle - * - *
- * - * @alt - * Gold ellipse + thick black outline @center 2 white ellipses on left and right. - * 2 Gold ellipses left black right blue stroke. 2 white ellipses on left+right. - * - */ - p5.prototype.push = function() { - this._styles.push({ - props: { - _colorMode: this._colorMode - }, - - renderer: this._renderer.push() - }); - }; - - /** - * The push() function saves the current drawing style settings and - * transformations, while pop() restores these settings. Note that these - * functions are always used together. They allow you to change the style - * and transformation settings and later return to what you had. When a new - * state is started with push(), it builds on the current style and transform - * information. The push() and pop() functions can be embedded to provide - * more control. (See the second example for a demonstration.) - *

- * push() stores information related to the current transformation state - * and style settings controlled by the following functions: fill(), - * stroke(), tint(), strokeWeight(), strokeCap(), strokeJoin(), - * imageMode(), rectMode(), ellipseMode(), colorMode(), textAlign(), - * textFont(), textSize(), textLeading(). - *

- * In WEBGL mode additional style settings are stored. These are controlled by the following functions: setCamera(), ambientLight(), directionalLight(), - * pointLight(), texture(), specularMaterial(), shininess(), normalMaterial() - * and shader(). - * - * @method pop - * @example - *
- * - * ellipse(0, 50, 33, 33); // Left circle - * - * push(); // Start a new drawing state - * translate(50, 0); - * strokeWeight(10); - * fill(204, 153, 0); - * ellipse(0, 50, 33, 33); // Middle circle - * pop(); // Restore original state - * - * ellipse(100, 50, 33, 33); // Right circle - * - *
- *
- * - * ellipse(0, 50, 33, 33); // Left circle - * - * push(); // Start a new drawing state - * strokeWeight(10); - * fill(204, 153, 0); - * ellipse(33, 50, 33, 33); // Left-middle circle - * - * push(); // Start another new drawing state - * stroke(0, 102, 153); - * ellipse(66, 50, 33, 33); // Right-middle circle - * pop(); // Restore previous state - * - * pop(); // Restore original state - * - * ellipse(100, 50, 33, 33); // Right circle - * - *
- * - * @alt - * Gold ellipse + thick black outline @center 2 white ellipses on left and right. - * 2 Gold ellipses left black right blue stroke. 2 white ellipses on left+right. - * - */ - p5.prototype.pop = function() { - var style = this._styles.pop(); - if (style) { - this._renderer.pop(style.renderer); - Object.assign(this, style.props); - } else { - console.warn('pop() was called without matching push()'); - } - }; - - /** - * - * Executes the code within draw() one time. This functions allows the - * program to update the display window only when necessary, for example - * when an event registered by mousePressed() or keyPressed() occurs. - *

- * In structuring a program, it only makes sense to call redraw() within - * events such as mousePressed(). This is because redraw() does not run - * draw() immediately (it only sets a flag that indicates an update is - * needed). - *

- * The redraw() function does not work properly when called inside draw(). - * To enable/disable animations, use loop() and noLoop(). - *

- * In addition you can set the number of redraws per method call. Just - * add an integer as single parameter for the number of redraws. - * - * @method redraw - * @param {Integer} [n] Redraw for n-times. The default value is 1. - * @example - *
- * let x = 0; - * - * function setup() { - * createCanvas(100, 100); - * noLoop(); - * } - * - * function draw() { - * background(204); - * line(x, 0, x, height); - * } - * - * function mousePressed() { - * x += 1; - * redraw(); - * } - *
- * - *
- * let x = 0; - * - * function setup() { - * createCanvas(100, 100); - * noLoop(); - * } - * - * function draw() { - * background(204); - * x += 1; - * line(x, 0, x, height); - * } - * - * function mousePressed() { - * redraw(5); - * } - *
- * - * @alt - * black line on far left of canvas - * black line on far left of canvas - * - */ - p5.prototype.redraw = function(n) { - if (this._inUserDraw || !this._setupDone) { - return; - } - - var numberOfRedraws = parseInt(n); - if (isNaN(numberOfRedraws) || numberOfRedraws < 1) { - numberOfRedraws = 1; - } - - var context = this._isGlobal ? window : this; - var userSetup = context.setup; - var userDraw = context.draw; - if (typeof userDraw === 'function') { - if (typeof userSetup === 'undefined') { - context.scale(context._pixelDensity, context._pixelDensity); - } - var callMethod = function callMethod(f) { - f.call(context); - }; - for (var idxRedraw = 0; idxRedraw < numberOfRedraws; idxRedraw++) { - context.resetMatrix(); - if (context._renderer.isP3D) { - context._renderer._update(); - } - context._setProperty('frameCount', context.frameCount + 1); - context._registeredMethods.pre.forEach(callMethod); - this._inUserDraw = true; - try { - userDraw(); - } finally { - this._inUserDraw = false; - } - context._registeredMethods.post.forEach(callMethod); - } - } - }; - - module.exports = p5; - }, - { './main': 24 } - ], - 36: [ - function(_dereq_, module, exports) { - /** - * @module Transform - * @submodule Transform - * @for p5 - * @requires core - * @requires constants - */ - - 'use strict'; - - var p5 = _dereq_('./main'); - - /** - * Multiplies the current matrix by the one specified through the parameters. - * This is a powerful operation that can perform the equivalent of translate, - * scale, shear and rotate all at once. You can learn more about transformation - * matrices on - * Wikipedia. - * - * The naming of the arguments here follows the naming of the - * WHATWG specification and corresponds to a - * transformation matrix of the - * form: - * - * > The transformation matrix used when applyMatrix is called - * - * @method applyMatrix - * @param {Number} a numbers which define the 2x3 matrix to be multiplied - * @param {Number} b numbers which define the 2x3 matrix to be multiplied - * @param {Number} c numbers which define the 2x3 matrix to be multiplied - * @param {Number} d numbers which define the 2x3 matrix to be multiplied - * @param {Number} e numbers which define the 2x3 matrix to be multiplied - * @param {Number} f numbers which define the 2x3 matrix to be multiplied - * @chainable - * @example - *
- * - * function setup() { - * frameRate(10); - * rectMode(CENTER); - * } - * - * function draw() { - * var step = frameCount % 20; - * background(200); - * // Equivalent to translate(x, y); - * applyMatrix(1, 0, 0, 1, 40 + step, 50); - * rect(0, 0, 50, 50); - * } - * - *
- *
- * - * function setup() { - * frameRate(10); - * rectMode(CENTER); - * } - * - * function draw() { - * var step = frameCount % 20; - * background(200); - * translate(50, 50); - * // Equivalent to scale(x, y); - * applyMatrix(1 / step, 0, 0, 1 / step, 0, 0); - * rect(0, 0, 50, 50); - * } - * - *
- *
- * - * function setup() { - * frameRate(10); - * rectMode(CENTER); - * } - * - * function draw() { - * var step = frameCount % 20; - * var angle = map(step, 0, 20, 0, TWO_PI); - * var cos_a = cos(angle); - * var sin_a = sin(angle); - * background(200); - * translate(50, 50); - * // Equivalent to rotate(angle); - * applyMatrix(cos_a, sin_a, -sin_a, cos_a, 0, 0); - * rect(0, 0, 50, 50); - * } - * - *
- *
- * - * function setup() { - * frameRate(10); - * rectMode(CENTER); - * } - * - * function draw() { - * var step = frameCount % 20; - * var angle = map(step, 0, 20, -PI / 4, PI / 4); - * background(200); - * translate(50, 50); - * // equivalent to shearX(angle); - * var shear_factor = 1 / tan(PI / 2 - angle); - * applyMatrix(1, 0, shear_factor, 1, 0, 0); - * rect(0, 0, 50, 50); - * } - * - *
- *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * noFill(); - * } - * - * function draw() { - * background(200); - * rotateY(PI / 6); - * stroke(153); - * box(35); - * var rad = millis() / 1000; - * // Set rotation angles - * var ct = cos(rad); - * var st = sin(rad); - * // Matrix for rotation around the Y axis - * // prettier-ignore - * applyMatrix( ct, 0.0, st, 0.0, - * 0.0, 1.0, 0.0, 0.0, - * -st, 0.0, ct, 0.0, - * 0.0, 0.0, 0.0, 1.0); - * stroke(255); - * box(50); - * } - * - *
- * - * @alt - * A rectangle translating to the right - * A rectangle shrinking to the center - * A rectangle rotating clockwise about the center - * A rectangle shearing - * - */ - p5.prototype.applyMatrix = function(a, b, c, d, e, f) { - this._renderer.applyMatrix.apply(this._renderer, arguments); - return this; - }; - - /** - * Replaces the current matrix with the identity matrix. - * - * @method resetMatrix - * @chainable - * @example - *
- * - * translate(50, 50); - * applyMatrix(0.5, 0.5, -0.5, 0.5, 0, 0); - * rect(0, 0, 20, 20); - * // Note that the translate is also reset. - * resetMatrix(); - * rect(0, 0, 20, 20); - * - *
- * - * @alt - * A rotated retangle in the center with another at the top left corner - * - */ - p5.prototype.resetMatrix = function() { - this._renderer.resetMatrix(); - return this; - }; - - /** - * Rotates a shape the amount specified by the angle parameter. This - * function accounts for angleMode, so angles can be entered in either - * RADIANS or DEGREES. - *

- * Objects are always rotated around their relative position to the - * origin and positive numbers rotate objects in a clockwise direction. - * Transformations apply to everything that happens after and subsequent - * calls to the function accumulates the effect. For example, calling - * rotate(HALF_PI) and then rotate(HALF_PI) is the same as rotate(PI). - * All tranformations are reset when draw() begins again. - *

- * Technically, rotate() multiplies the current transformation matrix - * by a rotation matrix. This function can be further controlled by - * the push() and pop(). - * - * @method rotate - * @param {Number} angle the angle of rotation, specified in radians - * or degrees, depending on current angleMode - * @param {p5.Vector|Number[]} [axis] (in 3d) the axis to rotate around - * @chainable - * @example - *
- * - * translate(width / 2, height / 2); - * rotate(PI / 3.0); - * rect(-26, -26, 52, 52); - * - *
- * - * @alt - * white 52x52 rect with black outline at center rotated counter 45 degrees - * - */ - p5.prototype.rotate = function(angle, axis) { - p5._validateParameters('rotate', arguments); - this._renderer.rotate(this._toRadians(angle), axis); - return this; - }; - - /** - * Rotates around X axis. - * @method rotateX - * @param {Number} angle the angle of rotation, specified in radians - * or degrees, depending on current angleMode - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * function draw() { - * background(255); - * rotateX(millis() / 1000); - * box(); - * } - * - *
- * - * @alt - * 3d box rotating around the x axis. - */ - p5.prototype.rotateX = function(angle) { - this._assert3d('rotateX'); - p5._validateParameters('rotateX', arguments); - this._renderer.rotateX(this._toRadians(angle)); - return this; - }; - - /** - * Rotates around Y axis. - * @method rotateY - * @param {Number} angle the angle of rotation, specified in radians - * or degrees, depending on current angleMode - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * function draw() { - * background(255); - * rotateY(millis() / 1000); - * box(); - * } - * - *
- * - * @alt - * 3d box rotating around the y axis. - */ - p5.prototype.rotateY = function(angle) { - this._assert3d('rotateY'); - p5._validateParameters('rotateY', arguments); - this._renderer.rotateY(this._toRadians(angle)); - return this; - }; - - /** - * Rotates around Z axis. Webgl mode only. - * @method rotateZ - * @param {Number} angle the angle of rotation, specified in radians - * or degrees, depending on current angleMode - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * function draw() { - * background(255); - * rotateZ(millis() / 1000); - * box(); - * } - * - *
- * - * @alt - * 3d box rotating around the z axis. - */ - p5.prototype.rotateZ = function(angle) { - this._assert3d('rotateZ'); - p5._validateParameters('rotateZ', arguments); - this._renderer.rotateZ(this._toRadians(angle)); - return this; - }; - - /** - * Increases or decreases the size of a shape by expanding and contracting - * vertices. Objects always scale from their relative origin to the - * coordinate system. Scale values are specified as decimal percentages. - * For example, the function call scale(2.0) increases the dimension of a - * shape by 200%. - *

- * Transformations apply to everything that happens after and subsequent - * calls to the function multiply the effect. For example, calling scale(2.0) - * and then scale(1.5) is the same as scale(3.0). If scale() is called - * within draw(), the transformation is reset when the loop begins again. - *

- * Using this function with the z parameter is only available in WEBGL mode. - * This function can be further controlled with push() and pop(). - * - * @method scale - * @param {Number|p5.Vector|Number[]} s - * percent to scale the object, or percentage to - * scale the object in the x-axis if multiple arguments - * are given - * @param {Number} [y] percent to scale the object in the y-axis - * @param {Number} [z] percent to scale the object in the z-axis (webgl only) - * @chainable - * @example - *
- * - * rect(30, 20, 50, 50); - * scale(0.5); - * rect(30, 20, 50, 50); - * - *
- * - *
- * - * rect(30, 20, 50, 50); - * scale(0.5, 1.3); - * rect(30, 20, 50, 50); - * - *
- * - * @alt - * white 52x52 rect with black outline at center rotated counter 45 degrees - * 2 white rects with black outline- 1 50x50 at center. other 25x65 bottom left - * - */ - /** - * @method scale - * @param {p5.Vector|Number[]} scales per-axis percents to scale the object - * @chainable - */ - p5.prototype.scale = function(x, y, z) { - p5._validateParameters('scale', arguments); - // Only check for Vector argument type if Vector is available - if (x instanceof p5.Vector) { - var v = x; - x = v.x; - y = v.y; - z = v.z; - } else if (x instanceof Array) { - var rg = x; - x = rg[0]; - y = rg[1]; - z = rg[2] || 1; - } - if (isNaN(y)) { - y = z = x; - } else if (isNaN(z)) { - z = 1; - } - - this._renderer.scale.call(this._renderer, x, y, z); - - return this; - }; - - /** - * Shears a shape around the x-axis the amount specified by the angle - * parameter. Angles should be specified in the current angleMode. - * Objects are always sheared around their relative position to the origin - * and positive numbers shear objects in a clockwise direction. - *

- * Transformations apply to everything that happens after and subsequent - * calls to the function accumulates the effect. For example, calling - * shearX(PI/2) and then shearX(PI/2) is the same as shearX(PI). - * If shearX() is called within the draw(), the transformation is reset when - * the loop begins again. - *

- * Technically, shearX() multiplies the current transformation matrix by a - * rotation matrix. This function can be further controlled by the - * push() and pop() functions. - * - * @method shearX - * @param {Number} angle angle of shear specified in radians or degrees, - * depending on current angleMode - * @chainable - * @example - *
- * - * translate(width / 4, height / 4); - * shearX(PI / 4.0); - * rect(0, 0, 30, 30); - * - *
- * - * @alt - * white irregular quadrilateral with black outline at top middle. - * - */ - p5.prototype.shearX = function(angle) { - p5._validateParameters('shearX', arguments); - var rad = this._toRadians(angle); - this._renderer.applyMatrix(1, 0, Math.tan(rad), 1, 0, 0); - return this; - }; - - /** - * Shears a shape around the y-axis the amount specified by the angle - * parameter. Angles should be specified in the current angleMode. Objects - * are always sheared around their relative position to the origin and - * positive numbers shear objects in a clockwise direction. - *

- * Transformations apply to everything that happens after and subsequent - * calls to the function accumulates the effect. For example, calling - * shearY(PI/2) and then shearY(PI/2) is the same as shearY(PI). If - * shearY() is called within the draw(), the transformation is reset when - * the loop begins again. - *

- * Technically, shearY() multiplies the current transformation matrix by a - * rotation matrix. This function can be further controlled by the - * push() and pop() functions. - * - * @method shearY - * @param {Number} angle angle of shear specified in radians or degrees, - * depending on current angleMode - * @chainable - * @example - *
- * - * translate(width / 4, height / 4); - * shearY(PI / 4.0); - * rect(0, 0, 30, 30); - * - *
- * - * @alt - * white irregular quadrilateral with black outline at middle bottom. - * - */ - p5.prototype.shearY = function(angle) { - p5._validateParameters('shearY', arguments); - var rad = this._toRadians(angle); - this._renderer.applyMatrix(1, Math.tan(rad), 0, 1, 0, 0); - return this; - }; - - /** - * Specifies an amount to displace objects within the display window. - * The x parameter specifies left/right translation, the y parameter - * specifies up/down translation. - *

- * Transformations are cumulative and apply to everything that happens after - * and subsequent calls to the function accumulates the effect. For example, - * calling translate(50, 0) and then translate(20, 0) is the same as - * translate(70, 0). If translate() is called within draw(), the - * transformation is reset when the loop begins again. This function can be - * further controlled by using push() and pop(). - * - * @method translate - * @param {Number} x left/right translation - * @param {Number} y up/down translation - * @param {Number} [z] forward/backward translation (webgl only) - * @chainable - * @example - *
- * - * translate(30, 20); - * rect(0, 0, 55, 55); - * - *
- * - *
- * - * rect(0, 0, 55, 55); // Draw rect at original 0,0 - * translate(30, 20); - * rect(0, 0, 55, 55); // Draw rect at new 0,0 - * translate(14, 14); - * rect(0, 0, 55, 55); // Draw rect at new 0,0 - * - *
- * - - *
- * - * function draw() { - * background(200); - * rectMode(CENTER); - * translate(width / 2, height / 2); - * translate(p5.Vector.fromAngle(millis() / 1000, 40)); - * rect(0, 0, 20, 20); - * } - * - *
- * - * @alt - * white 55x55 rect with black outline at center right. - * 3 white 55x55 rects with black outlines at top-l, center-r and bottom-r. - * a 20x20 white rect moving in a circle around the canvas - * - */ - /** - * @method translate - * @param {p5.Vector} vector the vector to translate by - * @chainable - */ - p5.prototype.translate = function(x, y, z) { - p5._validateParameters('translate', arguments); - if (this._renderer.isP3D) { - this._renderer.translate(x, y, z); - } else { - this._renderer.translate(x, y); - } - return this; - }; - - module.exports = p5; - }, - { './main': 24 } - ], - 37: [ - function(_dereq_, module, exports) { - /** - * @module Data - * @submodule LocalStorage - * @requires core - * - * This module defines the p5 methods for working with local storage - */ - - 'use strict'; - function _typeof(obj) { - if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && - typeof Symbol === 'function' && - obj.constructor === Symbol && - obj !== Symbol.prototype - ? 'symbol' - : typeof obj; - }; - } - return _typeof(obj); - } - var p5 = _dereq_('../core/main'); - /** - * - * Stores a value in local storage under the key name. - * Local storage is saved in the browser and persists - * between browsing sessions and page reloads. - * The key can be the name of the variable but doesn't - * have to be. To retrieve stored items - * see getItem. - *

- * Sensitive data such as passwords or personal information - * should not be stored in local storage. - * - * @method storeItem - * @for p5 - * @param {String} key - * @param {String|Number|Object|Boolean|p5.Color} value - * - * @example - *
- * // Type to change the letter in the - * // center of the canvas. - * // If you reload the page, it will - * // still display the last key you entered - * - * let myText; - * - * function setup() { - * createCanvas(100, 100); - * myText = getItem('myText'); - * if (myText === null) { - * myText = ''; - * } - * } - * - * function draw() { - * textSize(40); - * background(255); - * text(myText, width / 2, height / 2); - * } - * - * function keyPressed() { - * myText = key; - * storeItem('myText', myText); - * } - *
- * - * @alt - * When you type the key name is displayed as black text on white background. - * If you reload the page, the last letter typed is still displaying. - * - */ - p5.prototype.storeItem = function(key, value) { - if (typeof value === 'undefined') { - console.log('You cannot store undefined variables using storeItem()'); - } - var type = _typeof(value); - switch (type) { - case 'number': - case 'boolean': - value = value.toString(); - break; - case 'object': - if (value instanceof p5.Color) { - type = 'p5.Color'; - } - value = JSON.stringify(value); - break; - case 'string': - default: - break; - } - - localStorage.setItem(key, value); - var typeKey = key + 'p5TypeID'; - localStorage.setItem(typeKey, type); - }; - - /** - * - * Returns the value of an item that was stored in local storage - * using storeItem() - * - * @method getItem - * @for p5 - * @param {String} key name that you wish to use to store in local storage - * @return {Number|Object|String|Boolean|p5.Color} Value of stored item - * - * @example - *
- * // Click the mouse to change - * // the color of the background - * // Once you have changed the color - * // it will stay changed even when you - * // reload the page. - * - * let myColor; - * - * function setup() { - * createCanvas(100, 100); - * myColor = getItem('myColor'); - * } - * - * function draw() { - * if (myColor !== null) { - * background(myColor); - * } - * } - * - * function mousePressed() { - * myColor = color(random(255), random(255), random(255)); - * storeItem('myColor', myColor); - * } - *
- * - * @alt - * If you click, the canvas changes to a random color. - * If you reload the page, the canvas is still the color it - * was when the page was previously loaded. - * - */ - p5.prototype.getItem = function(key) { - var value = localStorage.getItem(key); - var type = localStorage.getItem(key + 'p5TypeID'); - if (typeof type === 'undefined') { - console.log( - 'Unable to determine type of item stored under ' + - key + - 'in local storage. Did you save the item with something other than setItem()?' - ); - } else if (value !== null) { - switch (type) { - case 'number': - value = parseInt(value); - break; - case 'boolean': - value = value === 'true'; - break; - case 'object': - value = JSON.parse(value); - break; - case 'p5.Color': - value = JSON.parse(value); - value = this.color.apply(this, value.levels); - break; - case 'string': - default: - break; - } - } - return value; - }; - - /** - * - * Clears all local storage items set with storeItem() - * for the current domain. - * - * @method clearStorage - * @for p5 - * - * @example - *
- * - * function setup() { - * let myNum = 10; - * let myBool = false; - * storeItem('myNum', myNum); - * storeItem('myBool', myBool); - * print(getItem('myNum')); // logs 10 to the console - * print(getItem('myBool')); // logs false to the console - * clearStorage(); - * print(getItem('myNum')); // logs null to the console - * print(getItem('myBool')); // logs null to the console - * } - *
- */ - p5.prototype.clearStorage = function() { - localStorage.clear(); - }; - - /** - * - * Removes an item that was stored with storeItem() - * - * @method removeItem - * @param {String} key - * @for p5 - * - * @example - *
- * - * function setup() { - * let myVar = 10; - * storeItem('myVar', myVar); - * print(getItem('myVar')); // logs 10 to the console - * removeItem('myVar'); - * print(getItem('myVar')); // logs null to the console - * } - *
- */ - p5.prototype.removeItem = function(key) { - if (typeof key !== 'string') { - console.log( - 'The argument that you passed to removeItem() - ' + - key + - ' is not a string.' - ); - } - localStorage.removeItem(key); - localStorage.removeItem(key + 'p5TypeID'); - }; - }, - { '../core/main': 24 } - ], - 38: [ - function(_dereq_, module, exports) { - /** - * @module Data - * @submodule Dictionary - * @for p5.TypedDict - * @requires core - * - * This module defines the p5 methods for the p5 Dictionary classes. - * The classes StringDict and NumberDict are for storing and working - * with key-value pairs. - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - /** - * - * Creates a new instance of p5.StringDict using the key-value pair - * or the object you provide. - * - * @method createStringDict - * @for p5 - * @param {String} key - * @param {String} value - * @return {p5.StringDict} - * - * @example - *
- * - * function setup() { - * let myDictionary = createStringDict('p5', 'js'); - * print(myDictionary.hasKey('p5')); // logs true to console - * - * let anotherDictionary = createStringDict({ happy: 'coding' }); - * print(anotherDictionary.hasKey('happy')); // logs true to console - * } - *
- */ - /** - * @method createStringDict - * @param {Object} object object - * @return {p5.StringDict} - */ - - p5.prototype.createStringDict = function(key, value) { - p5._validateParameters('createStringDict', arguments); - return new p5.StringDict(key, value); - }; - - /** - * - * Creates a new instance of p5.NumberDict using the key-value pair - * or object you provide. - * - * @method createNumberDict - * @for p5 - * @param {Number} key - * @param {Number} value - * @return {p5.NumberDict} - * - * @example - *
- * - * function setup() { - * let myDictionary = createNumberDict(100, 42); - * print(myDictionary.hasKey(100)); // logs true to console - * - * let anotherDictionary = createNumberDict({ 200: 84 }); - * print(anotherDictionary.hasKey(200)); // logs true to console - * } - *
- */ - /** - * @method createNumberDict - * @param {Object} object object - * @return {p5.NumberDict} - */ - - p5.prototype.createNumberDict = function(key, value) { - p5._validateParameters('createNumberDict', arguments); - return new p5.NumberDict(key, value); - }; - - /** - * - * Base class for all p5.Dictionary types. Specifically - * typed Dictionary classes inherit from this class. - * - * @class p5.TypedDict - * - */ - - p5.TypedDict = function(key, value) { - if (key instanceof Object) { - this.data = key; - } else { - this.data = {}; - this.data[key] = value; - } - return this; - }; - - /** - * Returns the number of key-value pairs currently stored in the Dictionary. - * - * @method size - * @return {Integer} the number of key-value pairs in the Dictionary - * - * @example - *
- * - * function setup() { - * let myDictionary = createNumberDict(1, 10); - * myDictionary.create(2, 20); - * myDictionary.create(3, 30); - * print(myDictionary.size()); // logs 3 to the console - * } - *
- * - */ - p5.TypedDict.prototype.size = function() { - return Object.keys(this.data).length; - }; - - /** - * Returns true if the given key exists in the Dictionary, - * otherwise returns false. - * - * @method hasKey - * @param {Number|String} key that you want to look up - * @return {Boolean} whether that key exists in Dictionary - * - * @example - *
- * - * function setup() { - * let myDictionary = createStringDict('p5', 'js'); - * print(myDictionary.hasKey('p5')); // logs true to console - * } - *
- * - */ - - p5.TypedDict.prototype.hasKey = function(key) { - return this.data.hasOwnProperty(key); - }; - - /** - * Returns the value stored at the given key. - * - * @method get - * @param {Number|String} the key you want to access - * @return {Number|String} the value stored at that key - * - * @example - *
- * - * function setup() { - * let myDictionary = createStringDict('p5', 'js'); - * let myValue = myDictionary.get('p5'); - * print(myValue === 'js'); // logs true to console - * } - *
- * - */ - - p5.TypedDict.prototype.get = function(key) { - if (this.data.hasOwnProperty(key)) { - return this.data[key]; - } else { - console.log(key + ' does not exist in this Dictionary'); - } - }; - - /** - * Updates the value associated with the given key in case it already exists - * in the Dictionary. Otherwise a new key-value pair is added. - * - * @method set - * @param {Number|String} key - * @param {Number|String} value - * - * @example - *
- * - * function setup() { - * let myDictionary = createStringDict('p5', 'js'); - * myDictionary.set('p5', 'JS'); - * myDictionary.print(); // logs "key: p5 - value: JS" to console - * } - *
- * - */ - - p5.TypedDict.prototype.set = function(key, value) { - if (this._validate(value)) { - this.data[key] = value; - } else { - console.log('Those values dont work for this dictionary type.'); - } - }; - - /** - * private helper function to handle the user passing in objects - * during construction or calls to create() - */ - - p5.TypedDict.prototype._addObj = function(obj) { - for (var key in obj) { - this.set(key, obj[key]); - } - }; - - /** - * Creates a new key-value pair in the Dictionary. - * - * @method create - * @param {Number|String} key - * @param {Number|String} value - * - * @example - *
- * - * function setup() { - * let myDictionary = createStringDict('p5', 'js'); - * myDictionary.create('happy', 'coding'); - * myDictionary.print(); - * // above logs "key: p5 - value: js, key: happy - value: coding" to console - * } - *
- */ - /** - * @method create - * @param {Object} obj key/value pair - */ - - p5.TypedDict.prototype.create = function(key, value) { - if (key instanceof Object && typeof value === 'undefined') { - this._addObj(key); - } else if (typeof key !== 'undefined') { - this.set(key, value); - } else { - console.log( - 'In order to create a new Dictionary entry you must pass ' + - 'an object or a key, value pair' - ); - } - }; - - /** - * Removes all previously stored key-value pairs from the Dictionary. - * - * @method clear - * @example - *
- * - * function setup() { - * let myDictionary = createStringDict('p5', 'js'); - * print(myDictionary.hasKey('p5')); // prints 'true' - * myDictionary.clear(); - * print(myDictionary.hasKey('p5')); // prints 'false' - * } - * - *
- */ - - p5.TypedDict.prototype.clear = function() { - this.data = {}; - }; - - /** - * Removes the key-value pair stored at the given key from the Dictionary. - * - * @method remove - * @param {Number|String} key for the pair to remove - * - * @example - *
- * - * function setup() { - * let myDictionary = createStringDict('p5', 'js'); - * myDictionary.create('happy', 'coding'); - * myDictionary.print(); - * // above logs "key: p5 - value: js, key: happy - value: coding" to console - * myDictionary.remove('p5'); - * myDictionary.print(); - * // above logs "key: happy value: coding" to console - * } - *
- * - */ - - p5.TypedDict.prototype.remove = function(key) { - if (this.data.hasOwnProperty(key)) { - delete this.data[key]; - } else { - throw new Error(key + ' does not exist in this Dictionary'); - } - }; - - /** - * Logs the set of items currently stored in the Dictionary to the console. - * - * @method print - * - * @example - *
- * - * function setup() { - * let myDictionary = createStringDict('p5', 'js'); - * myDictionary.create('happy', 'coding'); - * myDictionary.print(); - * // above logs "key: p5 - value: js, key: happy - value: coding" to console - * } - * - *
- */ - - p5.TypedDict.prototype.print = function() { - for (var item in this.data) { - console.log('key:' + item + ' value:' + this.data[item]); - } - }; - - /** - * Converts the Dictionary into a CSV file for local download. - * - * @method saveTable - * @example - *
- * - * function setup() { - * createCanvas(100, 100); - * background(200); - * text('click here to save', 10, 10, 70, 80); - * } - * - * function mousePressed() { - * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { - * createStringDict({ - * john: 1940, - * paul: 1942, - * george: 1943, - * ringo: 1940 - * }).saveTable('beatles'); - * } - * } - * - *
- */ - - p5.TypedDict.prototype.saveTable = function(filename) { - var output = ''; - - for (var key in this.data) { - output += key + ',' + this.data[key] + '\n'; - } - - var blob = new Blob([output], { type: 'text/csv' }); - p5.prototype.downloadFile(blob, filename || 'mycsv', 'csv'); - }; - - /** - * Converts the Dictionary into a JSON file for local download. - * - * @method saveJSON - * @example - *
- * - * function setup() { - * createCanvas(100, 100); - * background(200); - * text('click here to save', 10, 10, 70, 80); - * } - * - * function mousePressed() { - * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { - * createStringDict({ - * john: 1940, - * paul: 1942, - * george: 1943, - * ringo: 1940 - * }).saveJSON('beatles'); - * } - * } - * - *
- */ - - p5.TypedDict.prototype.saveJSON = function(filename, opt) { - p5.prototype.saveJSON(this.data, filename, opt); - }; - - /** - * private helper function to ensure that the user passed in valid - * values for the Dictionary type - */ - - p5.TypedDict.prototype._validate = function(value) { - return true; - }; - - /** - * - * A simple Dictionary class for Strings. - * - * @class p5.StringDict - * @extends p5.TypedDict - * - */ - - p5.StringDict = function() { - p5.TypedDict.apply(this, arguments); - }; - - p5.StringDict.prototype = Object.create(p5.TypedDict.prototype); - - p5.StringDict.prototype._validate = function(value) { - return typeof value === 'string'; - }; - - /** - * - * A simple Dictionary class for Numbers. - * - * @class p5.NumberDict - * @extends p5.TypedDict - * - */ - - p5.NumberDict = function() { - p5.TypedDict.apply(this, arguments); - }; - - p5.NumberDict.prototype = Object.create(p5.TypedDict.prototype); - - /** - * private helper function to ensure that the user passed in valid - * values for the Dictionary type - */ - - p5.NumberDict.prototype._validate = function(value) { - return typeof value === 'number'; - }; - - /** - * Add the given number to the value currently stored at the given key. - * The sum then replaces the value previously stored in the Dictionary. - * - * @method add - * @param {Number} Key for the value you wish to add to - * @param {Number} Number to add to the value - * @example - *
- * - * function setup() { - * let myDictionary = createNumberDict(2, 5); - * myDictionary.add(2, 2); - * print(myDictionary.get(2)); // logs 7 to console. - * } - *
- * - * - */ - - p5.NumberDict.prototype.add = function(key, amount) { - if (this.data.hasOwnProperty(key)) { - this.data[key] += amount; - } else { - console.log('The key - ' + key + ' does not exist in this dictionary.'); - } - }; - - /** - * Subtract the given number from the value currently stored at the given key. - * The difference then replaces the value previously stored in the Dictionary. - * - * @method sub - * @param {Number} Key for the value you wish to subtract from - * @param {Number} Number to subtract from the value - * @example - *
- * - * function setup() { - * let myDictionary = createNumberDict(2, 5); - * myDictionary.sub(2, 2); - * print(myDictionary.get(2)); // logs 3 to console. - * } - *
- * - * - */ - - p5.NumberDict.prototype.sub = function(key, amount) { - this.add(key, -amount); - }; - - /** - * Multiply the given number with the value currently stored at the given key. - * The product then replaces the value previously stored in the Dictionary. - * - * @method mult - * @param {Number} Key for value you wish to multiply - * @param {Number} Amount to multiply the value by - * @example - *
- * - * function setup() { - * let myDictionary = createNumberDict(2, 4); - * myDictionary.mult(2, 2); - * print(myDictionary.get(2)); // logs 8 to console. - * } - *
- * - * - */ - - p5.NumberDict.prototype.mult = function(key, amount) { - if (this.data.hasOwnProperty(key)) { - this.data[key] *= amount; - } else { - console.log('The key - ' + key + ' does not exist in this dictionary.'); - } - }; - - /** - * Divide the given number with the value currently stored at the given key. - * The quotient then replaces the value previously stored in the Dictionary. - * - * @method div - * @param {Number} Key for value you wish to divide - * @param {Number} Amount to divide the value by - * @example - *
- * - * function setup() { - * let myDictionary = createNumberDict(2, 8); - * myDictionary.div(2, 2); - * print(myDictionary.get(2)); // logs 4 to console. - * } - *
- * - * - */ - - p5.NumberDict.prototype.div = function(key, amount) { - if (this.data.hasOwnProperty(key)) { - this.data[key] /= amount; - } else { - console.log('The key - ' + key + ' does not exist in this dictionary.'); - } - }; - - /** - * private helper function for finding lowest or highest value - * the argument 'flip' is used to flip the comparison arrow - * from 'less than' to 'greater than' - * - */ - - p5.NumberDict.prototype._valueTest = function(flip) { - if (Object.keys(this.data).length === 0) { - throw new Error( - 'Unable to search for a minimum or maximum value on an empty NumberDict' - ); - } else if (Object.keys(this.data).length === 1) { - return this.data[Object.keys(this.data)[0]]; - } else { - var result = this.data[Object.keys(this.data)[0]]; - for (var key in this.data) { - if (this.data[key] * flip < result * flip) { - result = this.data[key]; - } - } - return result; - } - }; - - /** - * Return the lowest number currently stored in the Dictionary. - * - * @method minValue - * @return {Number} - * @example - *
- * - * function setup() { - * let myDictionary = createNumberDict({ 2: -10, 4: 0.65, 1.2: 3 }); - * let lowestValue = myDictionary.minValue(); // value is -10 - * print(lowestValue); - * } - *
- * - */ - - p5.NumberDict.prototype.minValue = function() { - return this._valueTest(1); - }; - - /** - * Return the highest number currently stored in the Dictionary. - * - * @method maxValue - * @return {Number} - * @example - *
- * - * function setup() { - * let myDictionary = createNumberDict({ 2: -10, 4: 0.65, 1.2: 3 }); - * let highestValue = myDictionary.maxValue(); // value is 3 - * print(highestValue); - * } - *
- * - */ - - p5.NumberDict.prototype.maxValue = function() { - return this._valueTest(-1); - }; - - /** - * private helper function for finding lowest or highest key - * the argument 'flip' is used to flip the comparison arrow - * from 'less than' to 'greater than' - * - */ - - p5.NumberDict.prototype._keyTest = function(flip) { - if (Object.keys(this.data).length === 0) { - throw new Error('Unable to use minValue on an empty NumberDict'); - } else if (Object.keys(this.data).length === 1) { - return Object.keys(this.data)[0]; - } else { - var result = Object.keys(this.data)[0]; - for (var i = 1; i < Object.keys(this.data).length; i++) { - if (Object.keys(this.data)[i] * flip < result * flip) { - result = Object.keys(this.data)[i]; - } - } - return result; - } - }; - - /** - * Return the lowest key currently used in the Dictionary. - * - * @method minKey - * @return {Number} - * @example - *
- * - * function setup() { - * let myDictionary = createNumberDict({ 2: 4, 4: 6, 1.2: 3 }); - * let lowestKey = myDictionary.minKey(); // value is 1.2 - * print(lowestKey); - * } - *
- * - */ - - p5.NumberDict.prototype.minKey = function() { - return this._keyTest(1); - }; - - /** - * Return the highest key currently used in the Dictionary. - * - * @method maxKey - * @return {Number} - * @example - *
- * - * function setup() { - * let myDictionary = createNumberDict({ 2: 4, 4: 6, 1.2: 3 }); - * let highestKey = myDictionary.maxKey(); // value is 4 - * print(highestKey); - * } - *
- * - */ - - p5.NumberDict.prototype.maxKey = function() { - return this._keyTest(-1); - }; - - module.exports = p5.TypedDict; - }, - { '../core/main': 24 } - ], - 39: [ - function(_dereq_, module, exports) { - /** - * @module Events - * @submodule Acceleration - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - /** - * The system variable deviceOrientation always contains the orientation of - * the device. The value of this variable will either be set 'landscape' - * or 'portrait'. If no data is available it will be set to 'undefined'. - * either LANDSCAPE or PORTRAIT. - * - * @property {Constant} deviceOrientation - * @readOnly - */ - p5.prototype.deviceOrientation = undefined; - - /** - * The system variable accelerationX always contains the acceleration of the - * device along the x axis. Value is represented as meters per second squared. - * - * @property {Number} accelerationX - * @readOnly - * @example - *
- * - * // Move a touchscreen device to register - * // acceleration changes. - * function draw() { - * background(220, 50); - * fill('magenta'); - * ellipse(width / 2, height / 2, accelerationX); - * } - * - *
- * @alt - * Magnitude of device acceleration is displayed as ellipse size - */ - p5.prototype.accelerationX = 0; - - /** - * The system variable accelerationY always contains the acceleration of the - * device along the y axis. Value is represented as meters per second squared. - * - * @property {Number} accelerationY - * @readOnly - * @example - *
- * - * // Move a touchscreen device to register - * // acceleration changes. - * function draw() { - * background(220, 50); - * fill('magenta'); - * ellipse(width / 2, height / 2, accelerationY); - * } - * - *
- * @alt - * Magnitude of device acceleration is displayed as ellipse size - */ - p5.prototype.accelerationY = 0; - - /** - * The system variable accelerationZ always contains the acceleration of the - * device along the z axis. Value is represented as meters per second squared. - * - * @property {Number} accelerationZ - * @readOnly - * - * @example - *
- * - * // Move a touchscreen device to register - * // acceleration changes. - * function draw() { - * background(220, 50); - * fill('magenta'); - * ellipse(width / 2, height / 2, accelerationZ); - * } - * - *
- * - * @alt - * Magnitude of device acceleration is displayed as ellipse size - */ - p5.prototype.accelerationZ = 0; - - /** - * The system variable pAccelerationX always contains the acceleration of the - * device along the x axis in the frame previous to the current frame. Value - * is represented as meters per second squared. - * - * @property {Number} pAccelerationX - * @readOnly - */ - p5.prototype.pAccelerationX = 0; - - /** - * The system variable pAccelerationY always contains the acceleration of the - * device along the y axis in the frame previous to the current frame. Value - * is represented as meters per second squared. - * - * @property {Number} pAccelerationY - * @readOnly - */ - p5.prototype.pAccelerationY = 0; - - /** - * The system variable pAccelerationZ always contains the acceleration of the - * device along the z axis in the frame previous to the current frame. Value - * is represented as meters per second squared. - * - * @property {Number} pAccelerationZ - * @readOnly - */ - p5.prototype.pAccelerationZ = 0; - - /** - * _updatePAccelerations updates the pAcceleration values - * - * @private - */ - p5.prototype._updatePAccelerations = function() { - this._setProperty('pAccelerationX', this.accelerationX); - this._setProperty('pAccelerationY', this.accelerationY); - this._setProperty('pAccelerationZ', this.accelerationZ); - }; - - /** - * The system variable rotationX always contains the rotation of the - * device along the x axis. Value is represented as 0 to +/-180 degrees. - *

- * Note: The order the rotations are called is important, ie. if used - * together, it must be called in the order Z-X-Y or there might be - * unexpected behaviour. - * - * @property {Number} rotationX - * @readOnly - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(200); - * //rotateZ(radians(rotationZ)); - * rotateX(radians(rotationX)); - * //rotateY(radians(rotationY)); - * box(200, 200, 200); - * } - * - *
- * @alt - * red horizontal line right, green vertical line bottom. black background. - */ - p5.prototype.rotationX = 0; - - /** - * The system variable rotationY always contains the rotation of the - * device along the y axis. Value is represented as 0 to +/-90 degrees. - *

- * Note: The order the rotations are called is important, ie. if used - * together, it must be called in the order Z-X-Y or there might be - * unexpected behaviour. - * - * @property {Number} rotationY - * @readOnly - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(200); - * //rotateZ(radians(rotationZ)); - * //rotateX(radians(rotationX)); - * rotateY(radians(rotationY)); - * box(200, 200, 200); - * } - * - *
- * @alt - * red horizontal line right, green vertical line bottom. black background. - */ - p5.prototype.rotationY = 0; - - /** - * The system variable rotationZ always contains the rotation of the - * device along the z axis. Value is represented as 0 to 359 degrees. - *

- * Unlike rotationX and rotationY, this variable is available for devices - * with a built-in compass only. - *

- * Note: The order the rotations are called is important, ie. if used - * together, it must be called in the order Z-X-Y or there might be - * unexpected behaviour. - * - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(200); - * rotateZ(radians(rotationZ)); - * //rotateX(radians(rotationX)); - * //rotateY(radians(rotationY)); - * box(200, 200, 200); - * } - * - *
- * - * @property {Number} rotationZ - * @readOnly - * - * @alt - * red horizontal line right, green vertical line bottom. black background. - */ - p5.prototype.rotationZ = 0; - - /** - * The system variable pRotationX always contains the rotation of the - * device along the x axis in the frame previous to the current frame. Value - * is represented as 0 to +/-180 degrees. - *

- * pRotationX can also be used with rotationX to determine the rotate - * direction of the device along the X-axis. - * @example - *
- * - * // A simple if statement looking at whether - * // rotationX - pRotationX < 0 is true or not will be - * // sufficient for determining the rotate direction - * // in most cases. - * - * // Some extra logic is needed to account for cases where - * // the angles wrap around. - * let rotateDirection = 'clockwise'; - * - * // Simple range conversion to make things simpler. - * // This is not absolutely necessary but the logic - * // will be different in that case. - * - * let rX = rotationX + 180; - * let pRX = pRotationX + 180; - * - * if ((rX - pRX > 0 && rX - pRX < 270) || rX - pRX < -270) { - * rotateDirection = 'clockwise'; - * } else if (rX - pRX < 0 || rX - pRX > 270) { - * rotateDirection = 'counter-clockwise'; - * } - * - * print(rotateDirection); - * - *
- * - * @alt - * no image to display. - * - * - * @property {Number} pRotationX - * @readOnly - */ - p5.prototype.pRotationX = 0; - - /** - * The system variable pRotationY always contains the rotation of the - * device along the y axis in the frame previous to the current frame. Value - * is represented as 0 to +/-90 degrees. - *

- * pRotationY can also be used with rotationY to determine the rotate - * direction of the device along the Y-axis. - * @example - *
- * - * // A simple if statement looking at whether - * // rotationY - pRotationY < 0 is true or not will be - * // sufficient for determining the rotate direction - * // in most cases. - * - * // Some extra logic is needed to account for cases where - * // the angles wrap around. - * let rotateDirection = 'clockwise'; - * - * // Simple range conversion to make things simpler. - * // This is not absolutely necessary but the logic - * // will be different in that case. - * - * let rY = rotationY + 180; - * let pRY = pRotationY + 180; - * - * if ((rY - pRY > 0 && rY - pRY < 270) || rY - pRY < -270) { - * rotateDirection = 'clockwise'; - * } else if (rY - pRY < 0 || rY - pRY > 270) { - * rotateDirection = 'counter-clockwise'; - * } - * print(rotateDirection); - * - *
- * - * @alt - * no image to display. - * - * - * @property {Number} pRotationY - * @readOnly - */ - p5.prototype.pRotationY = 0; - - /** - * The system variable pRotationZ always contains the rotation of the - * device along the z axis in the frame previous to the current frame. Value - * is represented as 0 to 359 degrees. - *

- * pRotationZ can also be used with rotationZ to determine the rotate - * direction of the device along the Z-axis. - * @example - *
- * - * // A simple if statement looking at whether - * // rotationZ - pRotationZ < 0 is true or not will be - * // sufficient for determining the rotate direction - * // in most cases. - * - * // Some extra logic is needed to account for cases where - * // the angles wrap around. - * let rotateDirection = 'clockwise'; - * - * if ( - * (rotationZ - pRotationZ > 0 && rotationZ - pRotationZ < 270) || - * rotationZ - pRotationZ < -270 - * ) { - * rotateDirection = 'clockwise'; - * } else if (rotationZ - pRotationZ < 0 || rotationZ - pRotationZ > 270) { - * rotateDirection = 'counter-clockwise'; - * } - * print(rotateDirection); - * - *
- * - * @alt - * no image to display. - * - * - * @property {Number} pRotationZ - * @readOnly - */ - p5.prototype.pRotationZ = 0; - - var startAngleX = 0; - var startAngleY = 0; - var startAngleZ = 0; - - var rotateDirectionX = 'clockwise'; - var rotateDirectionY = 'clockwise'; - var rotateDirectionZ = 'clockwise'; - - var pRotateDirectionX; - var pRotateDirectionY; - var pRotateDirectionZ; - - p5.prototype._updatePRotations = function() { - this._setProperty('pRotationX', this.rotationX); - this._setProperty('pRotationY', this.rotationY); - this._setProperty('pRotationZ', this.rotationZ); - }; - - /** - * When a device is rotated, the axis that triggers the deviceTurned() - * method is stored in the turnAxis variable. The turnAxis variable is only defined within - * the scope of deviceTurned(). - * @property {String} turnAxis - * @readOnly - * @example - *
- * - * // Run this example on a mobile device - * // Rotate the device by 90 degrees in the - * // X-axis to change the value. - * - * var value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function deviceTurned() { - * if (turnAxis === 'X') { - * if (value === 0) { - * value = 255; - * } else if (value === 255) { - * value = 0; - * } - * } - * } - * - *
- * - * @alt - * 50x50 black rect in center of canvas. turns white on mobile when device turns - * 50x50 black rect in center of canvas. turns white on mobile when x-axis turns - */ - p5.prototype.turnAxis = undefined; - - var move_threshold = 0.5; - var shake_threshold = 30; - - /** - * The setMoveThreshold() function is used to set the movement threshold for - * the deviceMoved() function. The default threshold is set to 0.5. - * - * @method setMoveThreshold - * @param {number} value The threshold value - * @example - *
- * - * // Run this example on a mobile device - * // You will need to move the device incrementally further - * // the closer the square's color gets to white in order to change the value. - * - * let value = 0; - * let threshold = 0.5; - * function setup() { - * setMoveThreshold(threshold); - * } - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function deviceMoved() { - * value = value + 5; - * threshold = threshold + 0.1; - * if (value > 255) { - * value = 0; - * threshold = 30; - * } - * setMoveThreshold(threshold); - * } - * - *
- * - * @alt - * 50x50 black rect in center of canvas. turns white on mobile when device moves - */ - - p5.prototype.setMoveThreshold = function(val) { - p5._validateParameters('setMoveThreshold', arguments); - move_threshold = val; - }; - - /** - * The setShakeThreshold() function is used to set the movement threshold for - * the deviceShaken() function. The default threshold is set to 30. - * - * @method setShakeThreshold - * @param {number} value The threshold value - * @example - *
- * - * // Run this example on a mobile device - * // You will need to shake the device more firmly - * // the closer the box's fill gets to white in order to change the value. - * - * let value = 0; - * let threshold = 30; - * function setup() { - * setShakeThreshold(threshold); - * } - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function deviceMoved() { - * value = value + 5; - * threshold = threshold + 5; - * if (value > 255) { - * value = 0; - * threshold = 30; - * } - * setShakeThreshold(threshold); - * } - * - *
- * - * @alt - * 50x50 black rect in center of canvas. turns white on mobile when device - * is being shaked - */ - - p5.prototype.setShakeThreshold = function(val) { - p5._validateParameters('setShakeThreshold', arguments); - shake_threshold = val; - }; - - /** - * The deviceMoved() function is called when the device is moved by more than - * the threshold value along X, Y or Z axis. The default threshold is set to 0.5. - * The threshold value can be changed using setMoveThreshold(). - * - * @method deviceMoved - * @example - *
- * - * // Run this example on a mobile device - * // Move the device around - * // to change the value. - * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function deviceMoved() { - * value = value + 5; - * if (value > 255) { - * value = 0; - * } - * } - * - *
- * - * @alt - * 50x50 black rect in center of canvas. turns white on mobile when device moves - * - */ - - /** - * The deviceTurned() function is called when the device rotates by - * more than 90 degrees continuously. - *

- * The axis that triggers the deviceTurned() method is stored in the turnAxis - * variable. The deviceTurned() method can be locked to trigger on any axis: - * X, Y or Z by comparing the turnAxis variable to 'X', 'Y' or 'Z'. - * - * @method deviceTurned - * @example - *
- * - * // Run this example on a mobile device - * // Rotate the device by 90 degrees - * // to change the value. - * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function deviceTurned() { - * if (value === 0) { - * value = 255; - * } else if (value === 255) { - * value = 0; - * } - * } - * - *
- *
- * - * // Run this example on a mobile device - * // Rotate the device by 90 degrees in the - * // X-axis to change the value. - * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function deviceTurned() { - * if (turnAxis === 'X') { - * if (value === 0) { - * value = 255; - * } else if (value === 255) { - * value = 0; - * } - * } - * } - * - *
- * - * @alt - * 50x50 black rect in center of canvas. turns white on mobile when device turns - * 50x50 black rect in center of canvas. turns white on mobile when x-axis turns - * - */ - - /** - * The deviceShaken() function is called when the device total acceleration - * changes of accelerationX and accelerationY values is more than - * the threshold value. The default threshold is set to 30. - * The threshold value can be changed using setShakeThreshold(). - * - * @method deviceShaken - * @example - *
- * - * // Run this example on a mobile device - * // Shake the device to change the value. - * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function deviceShaken() { - * value = value + 5; - * if (value > 255) { - * value = 0; - * } - * } - * - *
- * - * @alt - * 50x50 black rect in center of canvas. turns white on mobile when device shakes - * - */ - - p5.prototype._ondeviceorientation = function(e) { - this._updatePRotations(); - this._setProperty('rotationX', e.beta); - this._setProperty('rotationY', e.gamma); - this._setProperty('rotationZ', e.alpha); - this._handleMotion(); - }; - p5.prototype._ondevicemotion = function(e) { - this._updatePAccelerations(); - this._setProperty('accelerationX', e.acceleration.x * 2); - this._setProperty('accelerationY', e.acceleration.y * 2); - this._setProperty('accelerationZ', e.acceleration.z * 2); - this._handleMotion(); - }; - p5.prototype._handleMotion = function() { - if (window.orientation === 90 || window.orientation === -90) { - this._setProperty('deviceOrientation', 'landscape'); - } else if (window.orientation === 0) { - this._setProperty('deviceOrientation', 'portrait'); - } else if (window.orientation === undefined) { - this._setProperty('deviceOrientation', 'undefined'); - } - var deviceMoved = this.deviceMoved || window.deviceMoved; - if (typeof deviceMoved === 'function') { - if ( - Math.abs(this.accelerationX - this.pAccelerationX) > move_threshold || - Math.abs(this.accelerationY - this.pAccelerationY) > move_threshold || - Math.abs(this.accelerationZ - this.pAccelerationZ) > move_threshold - ) { - deviceMoved(); - } - } - var deviceTurned = this.deviceTurned || window.deviceTurned; - if (typeof deviceTurned === 'function') { - // The angles given by rotationX etc is from range -180 to 180. - // The following will convert them to 0 to 360 for ease of calculation - // of cases when the angles wrapped around. - // _startAngleX will be converted back at the end and updated. - var wRX = this.rotationX + 180; - var wPRX = this.pRotationX + 180; - var wSAX = startAngleX + 180; - if ((wRX - wPRX > 0 && wRX - wPRX < 270) || wRX - wPRX < -270) { - rotateDirectionX = 'clockwise'; - } else if (wRX - wPRX < 0 || wRX - wPRX > 270) { - rotateDirectionX = 'counter-clockwise'; - } - if (rotateDirectionX !== pRotateDirectionX) { - wSAX = wRX; - } - if (Math.abs(wRX - wSAX) > 90 && Math.abs(wRX - wSAX) < 270) { - wSAX = wRX; - this._setProperty('turnAxis', 'X'); - deviceTurned(); - } - pRotateDirectionX = rotateDirectionX; - startAngleX = wSAX - 180; - - // Y-axis is identical to X-axis except for changing some names. - var wRY = this.rotationY + 180; - var wPRY = this.pRotationY + 180; - var wSAY = startAngleY + 180; - if ((wRY - wPRY > 0 && wRY - wPRY < 270) || wRY - wPRY < -270) { - rotateDirectionY = 'clockwise'; - } else if (wRY - wPRY < 0 || wRY - this.pRotationY > 270) { - rotateDirectionY = 'counter-clockwise'; - } - if (rotateDirectionY !== pRotateDirectionY) { - wSAY = wRY; - } - if (Math.abs(wRY - wSAY) > 90 && Math.abs(wRY - wSAY) < 270) { - wSAY = wRY; - this._setProperty('turnAxis', 'Y'); - deviceTurned(); - } - pRotateDirectionY = rotateDirectionY; - startAngleY = wSAY - 180; - - // Z-axis is already in the range 0 to 360 - // so no conversion is needed. - if ( - (this.rotationZ - this.pRotationZ > 0 && - this.rotationZ - this.pRotationZ < 270) || - this.rotationZ - this.pRotationZ < -270 - ) { - rotateDirectionZ = 'clockwise'; - } else if ( - this.rotationZ - this.pRotationZ < 0 || - this.rotationZ - this.pRotationZ > 270 - ) { - rotateDirectionZ = 'counter-clockwise'; - } - if (rotateDirectionZ !== pRotateDirectionZ) { - startAngleZ = this.rotationZ; - } - if ( - Math.abs(this.rotationZ - startAngleZ) > 90 && - Math.abs(this.rotationZ - startAngleZ) < 270 - ) { - startAngleZ = this.rotationZ; - this._setProperty('turnAxis', 'Z'); - deviceTurned(); - } - pRotateDirectionZ = rotateDirectionZ; - this._setProperty('turnAxis', undefined); - } - var deviceShaken = this.deviceShaken || window.deviceShaken; - if (typeof deviceShaken === 'function') { - var accelerationChangeX; - var accelerationChangeY; - // Add accelerationChangeZ if acceleration change on Z is needed - if (this.pAccelerationX !== null) { - accelerationChangeX = Math.abs(this.accelerationX - this.pAccelerationX); - accelerationChangeY = Math.abs(this.accelerationY - this.pAccelerationY); - } - if (accelerationChangeX + accelerationChangeY > shake_threshold) { - deviceShaken(); - } - } - }; - - module.exports = p5; - }, - { '../core/main': 24 } - ], - 40: [ - function(_dereq_, module, exports) { - /** - * @module Events - * @submodule Keyboard - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - /** - * The boolean system variable keyIsPressed is true if any key is pressed - * and false if no keys are pressed. - * - * @property {Boolean} keyIsPressed - * @readOnly - * @example - *
- * - * function draw() { - * if (keyIsPressed === true) { - * fill(0); - * } else { - * fill(255); - * } - * rect(25, 25, 50, 50); - * } - * - *
- * - * @alt - * 50x50 white rect that turns black on keypress. - * - */ - p5.prototype.isKeyPressed = false; - p5.prototype.keyIsPressed = false; // khan - - /** - * The system variable key always contains the value of the most recent - * key on the keyboard that was typed. To get the proper capitalization, it - * is best to use it within keyTyped(). For non-ASCII keys, use the keyCode - * variable. - * - * @property {String} key - * @readOnly - * @example - *
- * // Click any key to display it! - * // (Not Guaranteed to be Case Sensitive) - * function setup() { - * fill(245, 123, 158); - * textSize(50); - * } - * - * function draw() { - * background(200); - * text(key, 33, 65); // Display last key pressed. - * } - *
- * - * @alt - * canvas displays any key value that is pressed in pink font. - * - */ - p5.prototype.key = ''; - - /** - * The variable keyCode is used to detect special keys such as BACKSPACE, - * DELETE, ENTER, RETURN, TAB, ESCAPE, SHIFT, CONTROL, OPTION, ALT, UP_ARROW, - * DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW. - * You can also check for custom keys by looking up the keyCode of any key - * on a site like this: keycode.info. - * - * @property {Integer} keyCode - * @readOnly - * @example - *
- * let fillVal = 126; - * function draw() { - * fill(fillVal); - * rect(25, 25, 50, 50); - * } - * - * function keyPressed() { - * if (keyCode === UP_ARROW) { - * fillVal = 255; - * } else if (keyCode === DOWN_ARROW) { - * fillVal = 0; - * } - * return false; // prevent default - * } - *
- *
- * function draw() {} - * function keyPressed() { - * background('yellow'); - * text(`${key} ${keyCode}`, 10, 40); - * print(key, ' ', keyCode); - * return false; // prevent default - * } - *
- * @alt - * Grey rect center. turns white when up arrow pressed and black when down - * Display key pressed and its keyCode in a yellow box - */ - p5.prototype.keyCode = 0; - - /** - * The keyPressed() function is called once every time a key is pressed. The - * keyCode for the key that was pressed is stored in the keyCode variable. - *

- * For non-ASCII keys, use the keyCode variable. You can check if the keyCode - * equals BACKSPACE, DELETE, ENTER, RETURN, TAB, ESCAPE, SHIFT, CONTROL, - * OPTION, ALT, UP_ARROW, DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW. - *

- * For ASCII keys, the key that was pressed is stored in the key variable. However, it - * does not distinguish between uppercase and lowercase. For this reason, it - * is recommended to use keyTyped() to read the key variable, in which the - * case of the variable will be distinguished. - *

- * Because of how operating systems handle key repeats, holding down a key - * may cause multiple calls to keyTyped() (and keyReleased() as well). The - * rate of repeat is set by the operating system and how each computer is - * configured.

- * Browsers may have different default - * behaviors attached to various key events. To prevent any default - * behavior for this event, add "return false" to the end of the method. - * - * @method keyPressed - * @example - *
- * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function keyPressed() { - * if (value === 0) { - * value = 255; - * } else { - * value = 0; - * } - * } - * - *
- *
- * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function keyPressed() { - * if (keyCode === LEFT_ARROW) { - * value = 255; - * } else if (keyCode === RIGHT_ARROW) { - * value = 0; - * } - * } - * - *
- *
- * - * function keyPressed() { - * // Do something - * return false; // prevent any default behaviour - * } - * - *
- * - * @alt - * black rect center. turns white when key pressed and black when released - * black rect center. turns white when left arrow pressed and black when right. - * - */ - p5.prototype._onkeydown = function(e) { - if (this._downKeys[e.which]) { - // prevent multiple firings - return; - } - this._setProperty('isKeyPressed', true); - this._setProperty('keyIsPressed', true); - this._setProperty('keyCode', e.which); - this._downKeys[e.which] = true; - this._setProperty('key', e.key || String.fromCharCode(e.which) || e.which); - var keyPressed = this.keyPressed || window.keyPressed; - if (typeof keyPressed === 'function' && !e.charCode) { - var executeDefault = keyPressed(e); - if (executeDefault === false) { - e.preventDefault(); - } - } - }; - /** - * The keyReleased() function is called once every time a key is released. - * See key and keyCode for more information.

- * Browsers may have different default - * behaviors attached to various key events. To prevent any default - * behavior for this event, add "return false" to the end of the method. - * - * @method keyReleased - * @example - *
- * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function keyReleased() { - * if (value === 0) { - * value = 255; - * } else { - * value = 0; - * } - * return false; // prevent any default behavior - * } - * - *
- * - * @alt - * black rect center. turns white when key pressed and black when pressed again - * - */ - p5.prototype._onkeyup = function(e) { - var keyReleased = this.keyReleased || window.keyReleased; - this._downKeys[e.which] = false; - - if (!this._areDownKeys()) { - this._setProperty('isKeyPressed', false); - this._setProperty('keyIsPressed', false); - } - - this._setProperty('_lastKeyCodeTyped', null); - - this._setProperty('key', e.key || String.fromCharCode(e.which) || e.which); - this._setProperty('keyCode', e.which); - if (typeof keyReleased === 'function') { - var executeDefault = keyReleased(e); - if (executeDefault === false) { - e.preventDefault(); - } - } - }; - - /** - * The keyTyped() function is called once every time a key is pressed, but - * action keys such as Backspace, Delete, Ctrl, Shift, and Alt are ignored. If you are trying to detect - * a keyCode for one of these keys, use the keyPressed() function instead. - * The most recent key typed will be stored in the key variable. - *

- * Because of how operating systems handle key repeats, holding down a key - * will cause multiple calls to keyTyped() (and keyReleased() as well). The - * rate of repeat is set by the operating system and how each computer is - * configured.

- * Browsers may have different default behaviors attached to various key - * events. To prevent any default behavior for this event, add "return false" - * to the end of the method. - * - * @method keyTyped - * @example - *
- * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function keyTyped() { - * if (key === 'a') { - * value = 255; - * } else if (key === 'b') { - * value = 0; - * } - * // uncomment to prevent any default behavior - * // return false; - * } - * - *
- * - * @alt - * black rect center. turns white when 'a' key typed and black when 'b' pressed - * - */ - p5.prototype._onkeypress = function(e) { - if (e.which === this._lastKeyCodeTyped) { - // prevent multiple firings - return; - } - this._setProperty('_lastKeyCodeTyped', e.which); // track last keyCode - this._setProperty('key', String.fromCharCode(e.which)); - var keyTyped = this.keyTyped || window.keyTyped; - if (typeof keyTyped === 'function') { - var executeDefault = keyTyped(e); - if (executeDefault === false) { - e.preventDefault(); - } - } - }; - /** - * The onblur function is called when the user is no longer focused - * on the p5 element. Because the keyup events will not fire if the user is - * not focused on the element we must assume all keys currently down have - * been released. - */ - p5.prototype._onblur = function(e) { - this._downKeys = {}; - }; - - /** - * The keyIsDown() function checks if the key is currently down, i.e. pressed. - * It can be used if you have an object that moves, and you want several keys - * to be able to affect its behaviour simultaneously, such as moving a - * sprite diagonally. You can put in any number representing the keyCode of - * the key, or use any of the variable keyCode names listed - * here. - * - * @method keyIsDown - * @param {Number} code The key to check for. - * @return {Boolean} whether key is down or not - * @example - *
- * let x = 100; - * let y = 100; - * - * function setup() { - * createCanvas(512, 512); - * fill(255, 0, 0); - * } - * - * function draw() { - * if (keyIsDown(LEFT_ARROW)) { - * x -= 5; - * } - * - * if (keyIsDown(RIGHT_ARROW)) { - * x += 5; - * } - * - * if (keyIsDown(UP_ARROW)) { - * y -= 5; - * } - * - * if (keyIsDown(DOWN_ARROW)) { - * y += 5; - * } - * - * clear(); - * ellipse(x, y, 50, 50); - * } - *
- * - *
- * let diameter = 50; - * - * function setup() { - * createCanvas(512, 512); - * } - * - * function draw() { - * // 107 and 187 are keyCodes for "+" - * if (keyIsDown(107) || keyIsDown(187)) { - * diameter += 1; - * } - * - * // 109 and 189 are keyCodes for "-" - * if (keyIsDown(109) || keyIsDown(189)) { - * diameter -= 1; - * } - * - * clear(); - * fill(255, 0, 0); - * ellipse(50, 50, diameter, diameter); - * } - *
- * - * @alt - * 50x50 red ellipse moves left, right, up and down with arrow presses. - * 50x50 red ellipse gets bigger or smaller when + or - are pressed. - * - */ - p5.prototype.keyIsDown = function(code) { - p5._validateParameters('keyIsDown', arguments); - return this._downKeys[code] || false; - }; - - /** - * The _areDownKeys function returns a boolean true if any keys pressed - * and a false if no keys are currently pressed. - - * Helps avoid instances where multiple keys are pressed simultaneously and - * releasing a single key will then switch the - * keyIsPressed property to true. - * @private - **/ - p5.prototype._areDownKeys = function() { - for (var key in this._downKeys) { - if (this._downKeys.hasOwnProperty(key) && this._downKeys[key] === true) { - return true; - } - } - return false; - }; - - module.exports = p5; - }, - { '../core/main': 24 } - ], - 41: [ - function(_dereq_, module, exports) { - /** - * @module Events - * @submodule Mouse - * @for p5 - * @requires core - * @requires constants - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - var constants = _dereq_('../core/constants'); - - /* - * This is a flag which is false until the first time - * we receive a mouse event. The pmouseX and pmouseY - * values will match the mouseX and mouseY values until - * this interaction takes place. - */ - p5.prototype._hasMouseInteracted = false; - - /** - * The system variable mouseX always contains the current horizontal - * position of the mouse, relative to (0, 0) of the canvas. The value at - * the top-left corner is (0, 0) for 2-D and (-width/2, -height/2) for WebGL. - * If touch is used instead of mouse input, mouseX will hold the x value - * of the most recent touch point. - * - * @property {Number} mouseX - * @readOnly - * - * @example - *
- * - * // Move the mouse across the canvas - * function draw() { - * background(244, 248, 252); - * line(mouseX, 0, mouseX, 100); - * } - * - *
- * - * @alt - * horizontal black line moves left and right with mouse x-position - * - */ - p5.prototype.mouseX = 0; - - /** - * The system variable mouseY always contains the current vertical - * position of the mouse, relative to (0, 0) of the canvas. The value at - * the top-left corner is (0, 0) for 2-D and (-width/2, -height/2) for WebGL. - * If touch is used instead of mouse input, mouseY will hold the y value - * of the most recent touch point. - * - * @property {Number} mouseY - * @readOnly - * - * @example - *
- * - * // Move the mouse across the canvas - * function draw() { - * background(244, 248, 252); - * line(0, mouseY, 100, mouseY); - * } - * - *
- * - * @alt - * vertical black line moves up and down with mouse y-position - * - */ - p5.prototype.mouseY = 0; - - /** - * The system variable pmouseX always contains the horizontal position of - * the mouse or finger in the frame previous to the current frame, relative to - * (0, 0) of the canvas. The value at the top-left corner is (0, 0) for 2-D and - * (-width/2, -height/2) for WebGL. Note: pmouseX will be reset to the current mouseX - * value at the start of each touch event. - * - * @property {Number} pmouseX - * @readOnly - * - * @example - *
- * - * // Move the mouse across the canvas to leave a trail - * function setup() { - * //slow down the frameRate to make it more visible - * frameRate(10); - * } - * - * function draw() { - * background(244, 248, 252); - * line(mouseX, mouseY, pmouseX, pmouseY); - * print(pmouseX + ' -> ' + mouseX); - * } - * - *
- * - * @alt - * line trail is created from cursor movements. faster movement make longer line. - * - */ - p5.prototype.pmouseX = 0; - - /** - * The system variable pmouseY always contains the vertical position of - * the mouse or finger in the frame previous to the current frame, relative to - * (0, 0) of the canvas. The value at the top-left corner is (0, 0) for 2-D and - * (-width/2, -height/2) for WebGL. Note: pmouseY will be reset to the current mouseY - * value at the start of each touch event. - * - * @property {Number} pmouseY - * @readOnly - * - * @example - *
- * - * function draw() { - * background(237, 34, 93); - * fill(0); - * //draw a square only if the mouse is not moving - * if (mouseY === pmouseY && mouseX === pmouseX) { - * rect(20, 20, 60, 60); - * } - * - * print(pmouseY + ' -> ' + mouseY); - * } - * - *
- * - * @alt - * 60x60 black rect center, fuchsia background. rect flickers on mouse movement - * - */ - p5.prototype.pmouseY = 0; - - /** - * The system variable winMouseX always contains the current horizontal - * position of the mouse, relative to (0, 0) of the window. - * - * @property {Number} winMouseX - * @readOnly - * - * @example - *
- * - * let myCanvas; - * - * function setup() { - * //use a variable to store a pointer to the canvas - * myCanvas = createCanvas(100, 100); - * const body = document.getElementsByTagName('body')[0]; - * myCanvas.parent(body); - * } - * - * function draw() { - * background(237, 34, 93); - * fill(0); - * - * //move the canvas to the horizontal mouse position - * //relative to the window - * myCanvas.position(winMouseX + 1, windowHeight / 2); - * - * //the y of the square is relative to the canvas - * rect(20, mouseY, 60, 60); - * } - * - *
- * - * @alt - * 60x60 black rect y moves with mouse y and fuchsia canvas moves with mouse x - * - */ - p5.prototype.winMouseX = 0; - - /** - * The system variable winMouseY always contains the current vertical - * position of the mouse, relative to (0, 0) of the window. - * - * @property {Number} winMouseY - * @readOnly - * - * @example - *
- * - * let myCanvas; - * - * function setup() { - * //use a variable to store a pointer to the canvas - * myCanvas = createCanvas(100, 100); - * const body = document.getElementsByTagName('body')[0]; - * myCanvas.parent(body); - * } - * - * function draw() { - * background(237, 34, 93); - * fill(0); - * - * //move the canvas to the vertical mouse position - * //relative to the window - * myCanvas.position(windowWidth / 2, winMouseY + 1); - * - * //the x of the square is relative to the canvas - * rect(mouseX, 20, 60, 60); - * } - * - *
- * - * @alt - * 60x60 black rect x moves with mouse x and fuchsia canvas y moves with mouse y - * - */ - p5.prototype.winMouseY = 0; - - /** - * The system variable pwinMouseX always contains the horizontal position - * of the mouse in the frame previous to the current frame, relative to - * (0, 0) of the window. Note: pwinMouseX will be reset to the current winMouseX - * value at the start of each touch event. - * - * @property {Number} pwinMouseX - * @readOnly - * - * @example - *
- * - * let myCanvas; - * - * function setup() { - * //use a variable to store a pointer to the canvas - * myCanvas = createCanvas(100, 100); - * noStroke(); - * fill(237, 34, 93); - * } - * - * function draw() { - * clear(); - * //the difference between previous and - * //current x position is the horizontal mouse speed - * let speed = abs(winMouseX - pwinMouseX); - * //change the size of the circle - * //according to the horizontal speed - * ellipse(50, 50, 10 + speed * 5, 10 + speed * 5); - * //move the canvas to the mouse position - * myCanvas.position(winMouseX + 1, winMouseY + 1); - * } - * - *
- * - * @alt - * fuchsia ellipse moves with mouse x and y. Grows and shrinks with mouse speed - * - */ - p5.prototype.pwinMouseX = 0; - - /** - * The system variable pwinMouseY always contains the vertical position of - * the mouse in the frame previous to the current frame, relative to (0, 0) - * of the window. Note: pwinMouseY will be reset to the current winMouseY - * value at the start of each touch event. - * - * @property {Number} pwinMouseY - * @readOnly - * - * - * @example - *
- * - * let myCanvas; - * - * function setup() { - * //use a variable to store a pointer to the canvas - * myCanvas = createCanvas(100, 100); - * noStroke(); - * fill(237, 34, 93); - * } - * - * function draw() { - * clear(); - * //the difference between previous and - * //current y position is the vertical mouse speed - * let speed = abs(winMouseY - pwinMouseY); - * //change the size of the circle - * //according to the vertical speed - * ellipse(50, 50, 10 + speed * 5, 10 + speed * 5); - * //move the canvas to the mouse position - * myCanvas.position(winMouseX + 1, winMouseY + 1); - * } - * - *
- * - * @alt - * fuchsia ellipse moves with mouse x and y. Grows and shrinks with mouse speed - * - */ - p5.prototype.pwinMouseY = 0; - - /** - * Processing automatically tracks if the mouse button is pressed and which - * button is pressed. The value of the system variable mouseButton is either - * LEFT, RIGHT, or CENTER depending on which button was pressed last. - * Warning: different browsers may track mouseButton differently. - * - * @property {Constant} mouseButton - * @readOnly - * - * @example - *
- * - * function draw() { - * background(237, 34, 93); - * fill(0); - * - * if (mouseIsPressed) { - * if (mouseButton === LEFT) { - * ellipse(50, 50, 50, 50); - * } - * if (mouseButton === RIGHT) { - * rect(25, 25, 50, 50); - * } - * if (mouseButton === CENTER) { - * triangle(23, 75, 50, 20, 78, 75); - * } - * } - * - * print(mouseButton); - * } - * - *
- * - * @alt - * 50x50 black ellipse appears on center of fuchsia canvas on mouse click/press. - * - */ - p5.prototype.mouseButton = 0; - - /** - * The boolean system variable mouseIsPressed is true if the mouse is pressed - * and false if not. - * - * @property {Boolean} mouseIsPressed - * @readOnly - * - * @example - *
- * - * function draw() { - * background(237, 34, 93); - * fill(0); - * - * if (mouseIsPressed) { - * ellipse(50, 50, 50, 50); - * } else { - * rect(25, 25, 50, 50); - * } - * - * print(mouseIsPressed); - * } - * - *
- * - * @alt - * black 50x50 rect becomes ellipse with mouse click/press. fuchsia background. - * - */ - p5.prototype.mouseIsPressed = false; - - p5.prototype._updateNextMouseCoords = function(e) { - if (this._curElement !== null && (!e.touches || e.touches.length > 0)) { - var mousePos = getMousePos(this._curElement.elt, this.width, this.height, e); - - this._setProperty('mouseX', mousePos.x); - this._setProperty('mouseY', mousePos.y); - this._setProperty('winMouseX', mousePos.winX); - this._setProperty('winMouseY', mousePos.winY); - } - if (!this._hasMouseInteracted) { - // For first draw, make previous and next equal - this._updateMouseCoords(); - this._setProperty('_hasMouseInteracted', true); - } - }; - - p5.prototype._updateMouseCoords = function() { - this._setProperty('pmouseX', this.mouseX); - this._setProperty('pmouseY', this.mouseY); - this._setProperty('pwinMouseX', this.winMouseX); - this._setProperty('pwinMouseY', this.winMouseY); - - this._setProperty('_pmouseWheelDeltaY', this._mouseWheelDeltaY); - }; - - function getMousePos(canvas, w, h, evt) { - if (evt && !evt.clientX) { - // use touches if touch and not mouse - if (evt.touches) { - evt = evt.touches[0]; - } else if (evt.changedTouches) { - evt = evt.changedTouches[0]; - } - } - var rect = canvas.getBoundingClientRect(); - var sx = canvas.scrollWidth / w || 1; - var sy = canvas.scrollHeight / h || 1; - return { - x: (evt.clientX - rect.left) / sx, - y: (evt.clientY - rect.top) / sy, - winX: evt.clientX, - winY: evt.clientY, - id: evt.identifier - }; - } - - p5.prototype._setMouseButton = function(e) { - if (e.button === 1) { - this._setProperty('mouseButton', constants.CENTER); - } else if (e.button === 2) { - this._setProperty('mouseButton', constants.RIGHT); - } else { - this._setProperty('mouseButton', constants.LEFT); - } - }; - - /** - * The mouseMoved() function is called every time the mouse moves and a mouse - * button is not pressed.

- * Browsers may have different default - * behaviors attached to various mouse events. To prevent any default - * behavior for this event, add "return false" to the end of the method. - * - * @method mouseMoved - * @param {Object} [event] optional MouseEvent callback argument. - * @example - *
- * - * // Move the mouse across the page - * // to change its value - * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function mouseMoved() { - * value = value + 5; - * if (value > 255) { - * value = 0; - * } - * } - * - *
- * - *
- * - * function mouseMoved() { - * ellipse(mouseX, mouseY, 5, 5); - * // prevent default - * return false; - * } - * - *
- * - *
- * - * // returns a MouseEvent object - * // as a callback argument - * function mouseMoved(event) { - * console.log(event); - * } - * - *
- * - * @alt - * black 50x50 rect becomes lighter with mouse movements until white then resets - * no image displayed - * - */ - - /** - * The mouseDragged() function is called once every time the mouse moves and - * a mouse button is pressed. If no mouseDragged() function is defined, the - * touchMoved() function will be called instead if it is defined.

- * Browsers may have different default - * behaviors attached to various mouse events. To prevent any default - * behavior for this event, add "return false" to the end of the method. - * - * @method mouseDragged - * @param {Object} [event] optional MouseEvent callback argument. - * @example - *
- * - * // Drag the mouse across the page - * // to change its value - * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function mouseDragged() { - * value = value + 5; - * if (value > 255) { - * value = 0; - * } - * } - * - *
- * - *
- * - * function mouseDragged() { - * ellipse(mouseX, mouseY, 5, 5); - * // prevent default - * return false; - * } - * - *
- * - *
- * - * // returns a MouseEvent object - * // as a callback argument - * function mouseDragged(event) { - * console.log(event); - * } - * - *
- * - * @alt - * black 50x50 rect turns lighter with mouse click and drag until white, resets - * no image displayed - * - */ - p5.prototype._onmousemove = function(e) { - var context = this._isGlobal ? window : this; - var executeDefault; - this._updateNextMouseCoords(e); - if (!this.mouseIsPressed) { - if (typeof context.mouseMoved === 'function') { - executeDefault = context.mouseMoved(e); - if (executeDefault === false) { - e.preventDefault(); - } - } - } else { - if (typeof context.mouseDragged === 'function') { - executeDefault = context.mouseDragged(e); - if (executeDefault === false) { - e.preventDefault(); - } - } else if (typeof context.touchMoved === 'function') { - executeDefault = context.touchMoved(e); - if (executeDefault === false) { - e.preventDefault(); - } - } - } - }; - - /** - * The mousePressed() function is called once after every time a mouse button - * is pressed. The mouseButton variable (see the related reference entry) - * can be used to determine which button has been pressed. If no - * mousePressed() function is defined, the touchStarted() function will be - * called instead if it is defined.

- * Browsers may have different default - * behaviors attached to various mouse events. To prevent any default - * behavior for this event, add "return false" to the end of the method. - * - * @method mousePressed - * @param {Object} [event] optional MouseEvent callback argument. - * @example - *
- * - * // Click within the image to change - * // the value of the rectangle - * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function mousePressed() { - * if (value === 0) { - * value = 255; - * } else { - * value = 0; - * } - * } - * - *
- * - *
- * - * function mousePressed() { - * ellipse(mouseX, mouseY, 5, 5); - * // prevent default - * return false; - * } - * - *
- * - *
- * - * // returns a MouseEvent object - * // as a callback argument - * function mousePressed(event) { - * console.log(event); - * } - * - *
- * - * @alt - * black 50x50 rect turns white with mouse click/press. - * no image displayed - * - */ - p5.prototype._onmousedown = function(e) { - var context = this._isGlobal ? window : this; - var executeDefault; - this._setProperty('mouseIsPressed', true); - this._setMouseButton(e); - this._updateNextMouseCoords(e); - - if (typeof context.mousePressed === 'function') { - executeDefault = context.mousePressed(e); - if (executeDefault === false) { - e.preventDefault(); - } - // only safari needs this manual fallback for consistency - } else if ( - navigator.userAgent.toLowerCase().includes('safari') && - typeof context.touchStarted === 'function' - ) { - executeDefault = context.touchStarted(e); - if (executeDefault === false) { - e.preventDefault(); - } - } - }; - - /** - * The mouseReleased() function is called every time a mouse button is - * released. If no mouseReleased() function is defined, the touchEnded() - * function will be called instead if it is defined.

- * Browsers may have different default - * behaviors attached to various mouse events. To prevent any default - * behavior for this event, add "return false" to the end of the method. - * - * - * @method mouseReleased - * @param {Object} [event] optional MouseEvent callback argument. - * @example - *
- * - * // Click within the image to change - * // the value of the rectangle - * // after the mouse has been clicked - * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function mouseReleased() { - * if (value === 0) { - * value = 255; - * } else { - * value = 0; - * } - * } - * - *
- * - *
- * - * function mouseReleased() { - * ellipse(mouseX, mouseY, 5, 5); - * // prevent default - * return false; - * } - * - *
- * - *
- * - * // returns a MouseEvent object - * // as a callback argument - * function mouseReleased(event) { - * console.log(event); - * } - * - *
- * - * @alt - * black 50x50 rect turns white with mouse click/press. - * no image displayed - * - */ - p5.prototype._onmouseup = function(e) { - var context = this._isGlobal ? window : this; - var executeDefault; - this._setProperty('mouseIsPressed', false); - if (typeof context.mouseReleased === 'function') { - executeDefault = context.mouseReleased(e); - if (executeDefault === false) { - e.preventDefault(); - } - } else if (typeof context.touchEnded === 'function') { - executeDefault = context.touchEnded(e); - if (executeDefault === false) { - e.preventDefault(); - } - } - }; - - p5.prototype._ondragend = p5.prototype._onmouseup; - p5.prototype._ondragover = p5.prototype._onmousemove; - - /** - * The mouseClicked() function is called once after a mouse button has been - * pressed and then released.

- * Browsers handle clicks differently, so this function is only guaranteed to be - * run when the left mouse button is clicked. To handle other mouse buttons - * being pressed or released, see mousePressed() or mouseReleased().

- * Browsers may have different default - * behaviors attached to various mouse events. To prevent any default - * behavior for this event, add "return false" to the end of the method. - * - * @method mouseClicked - * @param {Object} [event] optional MouseEvent callback argument. - * @example - *
- * - * // Click within the image to change - * // the value of the rectangle - * // after the mouse has been clicked - * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * - * function mouseClicked() { - * if (value === 0) { - * value = 255; - * } else { - * value = 0; - * } - * } - * - *
- * - *
- * - * function mouseClicked() { - * ellipse(mouseX, mouseY, 5, 5); - * // prevent default - * return false; - * } - * - *
- * - *
- * - * // returns a MouseEvent object - * // as a callback argument - * function mouseClicked(event) { - * console.log(event); - * } - * - *
- * - * @alt - * black 50x50 rect turns white with mouse click/press. - * no image displayed - * - */ - p5.prototype._onclick = function(e) { - var context = this._isGlobal ? window : this; - if (typeof context.mouseClicked === 'function') { - var executeDefault = context.mouseClicked(e); - if (executeDefault === false) { - e.preventDefault(); - } - } - }; - - /** - * The doubleClicked() function is executed every time a event - * listener has detected a dblclick event which is a part of the - * DOM L3 specification. The doubleClicked event is fired when a - * pointing device button (usually a mouse's primary button) - * is clicked twice on a single element. For more info on the - * dblclick event refer to mozilla's documentation here: - * https://developer.mozilla.org/en-US/docs/Web/Events/dblclick - * - * @method doubleClicked - * @param {Object} [event] optional MouseEvent callback argument. - * @example - *
- * - * // Click within the image to change - * // the value of the rectangle - * // after the mouse has been double clicked - * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * - * function doubleClicked() { - * if (value === 0) { - * value = 255; - * } else { - * value = 0; - * } - * } - * - *
- * - *
- * - * function doubleClicked() { - * ellipse(mouseX, mouseY, 5, 5); - * // prevent default - * return false; - * } - * - *
- * - *
- * - * // returns a MouseEvent object - * // as a callback argument - * function doubleClicked(event) { - * console.log(event); - * } - * - *
- * - * @alt - * black 50x50 rect turns white with mouse doubleClick/press. - * no image displayed - */ - - p5.prototype._ondblclick = function(e) { - var context = this._isGlobal ? window : this; - if (typeof context.doubleClicked === 'function') { - var executeDefault = context.doubleClicked(e); - if (executeDefault === false) { - e.preventDefault(); - } - } - }; - - /** - * For use with WebGL orbitControl. - * @property {Number} _mouseWheelDeltaY - * @readOnly - * @private - */ - p5.prototype._mouseWheelDeltaY = 0; - - /** - * For use with WebGL orbitControl. - * @property {Number} _pmouseWheelDeltaY - * @readOnly - * @private - */ - p5.prototype._pmouseWheelDeltaY = 0; - - /** - * The function mouseWheel() is executed every time a vertical mouse wheel - * event is detected either triggered by an actual mouse wheel or by a - * touchpad.

- * The event.delta property returns the amount the mouse wheel - * have scrolled. The values can be positive or negative depending on the - * scroll direction (on OS X with "natural" scrolling enabled, the signs - * are inverted).

- * Browsers may have different default behaviors attached to various - * mouse events. To prevent any default behavior for this event, add - * "return false" to the end of the method.

- * Due to the current support of the "wheel" event on Safari, the function - * may only work as expected if "return false" is included while using Safari. - * - * @method mouseWheel - * @param {Object} [event] optional WheelEvent callback argument. - * - * @example - *
- * - * let pos = 25; - * - * function draw() { - * background(237, 34, 93); - * fill(0); - * rect(25, pos, 50, 50); - * } - * - * function mouseWheel(event) { - * print(event.delta); - * //move the square according to the vertical scroll amount - * pos += event.delta; - * //uncomment to block page scrolling - * //return false; - * } - * - *
- * - * @alt - * black 50x50 rect moves up and down with vertical scroll. fuchsia background - * - */ - p5.prototype._onwheel = function(e) { - var context = this._isGlobal ? window : this; - this._setProperty('_mouseWheelDeltaY', e.deltaY); - if (typeof context.mouseWheel === 'function') { - e.delta = e.deltaY; - var executeDefault = context.mouseWheel(e); - if (executeDefault === false) { - e.preventDefault(); - } - } - }; - - module.exports = p5; - }, - { '../core/constants': 18, '../core/main': 24 } - ], - 42: [ - function(_dereq_, module, exports) { - /** - * @module Events - * @submodule Touch - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - /** - * The system variable touches[] contains an array of the positions of all - * current touch points, relative to (0, 0) of the canvas, and IDs identifying a - * unique touch as it moves. Each element in the array is an object with x, y, - * and id properties. - * - * The touches[] array is not supported on Safari and IE on touch-based - * desktops (laptops). - * - * @property {Object[]} touches - * @readOnly - * - * @example - *
- * - * // On a touchscreen device, touch - * // the canvas using one or more fingers - * // at the same time - * function draw() { - * clear(); - * let display = touches.length + ' touches'; - * text(display, 5, 10); - * } - * - *
- * - * @alt - * Number of touches currently registered are displayed on the canvas - */ - p5.prototype.touches = []; - - p5.prototype._updateTouchCoords = function(e) { - if (this._curElement !== null) { - var touches = []; - for (var i = 0; i < e.touches.length; i++) { - touches[i] = getTouchInfo( - this._curElement.elt, - this.width, - this.height, - e, - i - ); - } - this._setProperty('touches', touches); - } - }; - - function getTouchInfo(canvas, w, h, e, i) { - i = i || 0; - var rect = canvas.getBoundingClientRect(); - var sx = canvas.scrollWidth / w || 1; - var sy = canvas.scrollHeight / h || 1; - var touch = e.touches[i] || e.changedTouches[i]; - return { - x: (touch.clientX - rect.left) / sx, - y: (touch.clientY - rect.top) / sy, - winX: touch.clientX, - winY: touch.clientY, - id: touch.identifier - }; - } - - /** - * The touchStarted() function is called once after every time a touch is - * registered. If no touchStarted() function is defined, the mousePressed() - * function will be called instead if it is defined.

- * Browsers may have different default behaviors attached to various touch - * events. To prevent any default behavior for this event, add "return false" - * to the end of the method. - * - * @method touchStarted - * @param {Object} [event] optional TouchEvent callback argument. - * @example - *
- * - * // Touch within the image to change - * // the value of the rectangle - * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function touchStarted() { - * if (value === 0) { - * value = 255; - * } else { - * value = 0; - * } - * } - * - *
- * - *
- * - * function touchStarted() { - * ellipse(mouseX, mouseY, 5, 5); - * // prevent default - * return false; - * } - * - *
- * - *
- * - * // returns a TouchEvent object - * // as a callback argument - * function touchStarted(event) { - * console.log(event); - * } - * - *
- * - * @alt - * 50x50 black rect turns white with touch event. - * no image displayed - */ - p5.prototype._ontouchstart = function(e) { - var context = this._isGlobal ? window : this; - var executeDefault; - this._setProperty('mouseIsPressed', true); - this._updateTouchCoords(e); - this._updateNextMouseCoords(e); - this._updateMouseCoords(); // reset pmouseXY at the start of each touch event - - if (typeof context.touchStarted === 'function') { - executeDefault = context.touchStarted(e); - if (executeDefault === false) { - e.preventDefault(); - } - // only safari needs this manual fallback for consistency - } else if ( - navigator.userAgent.toLowerCase().includes('safari') && - typeof context.touchStarted === 'function' - ) { - executeDefault = context.mousePressed(e); - if (executeDefault === false) { - e.preventDefault(); - } - } - }; - - /** - * The touchMoved() function is called every time a touch move is registered. - * If no touchMoved() function is defined, the mouseDragged() function will - * be called instead if it is defined.

- * Browsers may have different default behaviors attached to various touch - * events. To prevent any default behavior for this event, add "return false" - * to the end of the method. - * - * @method touchMoved - * @param {Object} [event] optional TouchEvent callback argument. - * @example - *
- * - * // Move your finger across the page - * // to change its value - * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function touchMoved() { - * value = value + 5; - * if (value > 255) { - * value = 0; - * } - * } - * - *
- * - *
- * - * function touchMoved() { - * ellipse(mouseX, mouseY, 5, 5); - * // prevent default - * return false; - * } - * - *
- * - *
- * - * // returns a TouchEvent object - * // as a callback argument - * function touchMoved(event) { - * console.log(event); - * } - * - *
- * - * @alt - * 50x50 black rect turns lighter with touch until white. resets - * no image displayed - * - */ - p5.prototype._ontouchmove = function(e) { - var context = this._isGlobal ? window : this; - var executeDefault; - this._updateTouchCoords(e); - this._updateNextMouseCoords(e); - if (typeof context.touchMoved === 'function') { - executeDefault = context.touchMoved(e); - if (executeDefault === false) { - e.preventDefault(); - } - } else if (typeof context.mouseDragged === 'function') { - executeDefault = context.mouseDragged(e); - if (executeDefault === false) { - e.preventDefault(); - } - } - }; - - /** - * The touchEnded() function is called every time a touch ends. If no - * touchEnded() function is defined, the mouseReleased() function will be - * called instead if it is defined.

- * Browsers may have different default behaviors attached to various touch - * events. To prevent any default behavior for this event, add "return false" - * to the end of the method. - * - * @method touchEnded - * @param {Object} [event] optional TouchEvent callback argument. - * @example - *
- * - * // Release touch within the image to - * // change the value of the rectangle - * - * let value = 0; - * function draw() { - * fill(value); - * rect(25, 25, 50, 50); - * } - * function touchEnded() { - * if (value === 0) { - * value = 255; - * } else { - * value = 0; - * } - * } - * - *
- * - *
- * - * function touchEnded() { - * ellipse(mouseX, mouseY, 5, 5); - * // prevent default - * return false; - * } - * - *
- * - *
- * - * // returns a TouchEvent object - * // as a callback argument - * function touchEnded(event) { - * console.log(event); - * } - * - *
- * - * @alt - * 50x50 black rect turns white with touch. - * no image displayed - * - */ - p5.prototype._ontouchend = function(e) { - this._setProperty('mouseIsPressed', false); - this._updateTouchCoords(e); - this._updateNextMouseCoords(e); - var context = this._isGlobal ? window : this; - var executeDefault; - if (typeof context.touchEnded === 'function') { - executeDefault = context.touchEnded(e); - if (executeDefault === false) { - e.preventDefault(); - } - } else if (typeof context.mouseReleased === 'function') { - executeDefault = context.mouseReleased(e); - if (executeDefault === false) { - e.preventDefault(); - } - } - }; - - module.exports = p5; - }, - { '../core/main': 24 } - ], - 43: [ - function(_dereq_, module, exports) { - /*global ImageData:false */ - - /** - * This module defines the filters for use with image buffers. - * - * This module is basically a collection of functions stored in an object - * as opposed to modules. The functions are destructive, modifying - * the passed in canvas rather than creating a copy. - * - * Generally speaking users of this module will use the Filters.apply method - * on a canvas to create an effect. - * - * A number of functions are borrowed/adapted from - * http://www.html5rocks.com/en/tutorials/canvas/imagefilters/ - * or the java processing implementation. - */ - - 'use strict'; - - var Filters = {}; - - /* - * Helper functions - */ - - /** - * Returns the pixel buffer for a canvas - * - * @private - * - * @param {Canvas|ImageData} canvas the canvas to get pixels from - * @return {Uint8ClampedArray} a one-dimensional array containing - * the data in thc RGBA order, with integer - * values between 0 and 255 - */ - Filters._toPixels = function(canvas) { - if (canvas instanceof ImageData) { - return canvas.data; - } else { - return canvas.getContext('2d').getImageData(0, 0, canvas.width, canvas.height) - .data; - } - }; - - /** - * Returns a 32 bit number containing ARGB data at ith pixel in the - * 1D array containing pixels data. - * - * @private - * - * @param {Uint8ClampedArray} data array returned by _toPixels() - * @param {Integer} i index of a 1D Image Array - * @return {Integer} 32 bit integer value representing - * ARGB value. - */ - Filters._getARGB = function(data, i) { - var offset = i * 4; - return ( - ((data[offset + 3] << 24) & 0xff000000) | - ((data[offset] << 16) & 0x00ff0000) | - ((data[offset + 1] << 8) & 0x0000ff00) | - (data[offset + 2] & 0x000000ff) - ); - }; - - /** - * Modifies pixels RGBA values to values contained in the data object. - * - * @private - * - * @param {Uint8ClampedArray} pixels array returned by _toPixels() - * @param {Int32Array} data source 1D array where each value - * represents ARGB values - */ - Filters._setPixels = function(pixels, data) { - var offset = 0; - for (var i = 0, al = pixels.length; i < al; i++) { - offset = i * 4; - pixels[offset + 0] = (data[i] & 0x00ff0000) >>> 16; - pixels[offset + 1] = (data[i] & 0x0000ff00) >>> 8; - pixels[offset + 2] = data[i] & 0x000000ff; - pixels[offset + 3] = (data[i] & 0xff000000) >>> 24; - } - }; - - /** - * Returns the ImageData object for a canvas - * https://developer.mozilla.org/en-US/docs/Web/API/ImageData - * - * @private - * - * @param {Canvas|ImageData} canvas canvas to get image data from - * @return {ImageData} Holder of pixel data (and width and - * height) for a canvas - */ - Filters._toImageData = function(canvas) { - if (canvas instanceof ImageData) { - return canvas; - } else { - return canvas - .getContext('2d') - .getImageData(0, 0, canvas.width, canvas.height); - } - }; - - /** - * Returns a blank ImageData object. - * - * @private - * - * @param {Integer} width - * @param {Integer} height - * @return {ImageData} - */ - Filters._createImageData = function(width, height) { - Filters._tmpCanvas = document.createElement('canvas'); - Filters._tmpCtx = Filters._tmpCanvas.getContext('2d'); - return this._tmpCtx.createImageData(width, height); - }; - - /** - * Applys a filter function to a canvas. - * - * The difference between this and the actual filter functions defined below - * is that the filter functions generally modify the pixel buffer but do - * not actually put that data back to the canvas (where it would actually - * update what is visible). By contrast this method does make the changes - * actually visible in the canvas. - * - * The apply method is the method that callers of this module would generally - * use. It has been separated from the actual filters to support an advanced - * use case of creating a filter chain that executes without actually updating - * the canvas in between everystep. - * - * @private - * @param {HTMLCanvasElement} canvas [description] - * @param {function(ImageData,Object)} func [description] - * @param {Object} filterParam [description] - */ - Filters.apply = function(canvas, func, filterParam) { - var pixelsState = canvas.getContext('2d'); - var imageData = pixelsState.getImageData(0, 0, canvas.width, canvas.height); - - //Filters can either return a new ImageData object, or just modify - //the one they received. - var newImageData = func(imageData, filterParam); - if (newImageData instanceof ImageData) { - pixelsState.putImageData( - newImageData, - 0, - 0, - 0, - 0, - canvas.width, - canvas.height - ); - } else { - pixelsState.putImageData(imageData, 0, 0, 0, 0, canvas.width, canvas.height); - } - }; - - /* - * Filters - */ - - /** - * Converts the image to black and white pixels depending if they are above or - * below the threshold defined by the level parameter. The parameter must be - * between 0.0 (black) and 1.0 (white). If no level is specified, 0.5 is used. - * - * Borrowed from http://www.html5rocks.com/en/tutorials/canvas/imagefilters/ - * - * @private - * @param {Canvas} canvas - * @param {Float} level - */ - Filters.threshold = function(canvas, level) { - var pixels = Filters._toPixels(canvas); - - if (level === undefined) { - level = 0.5; - } - var thresh = Math.floor(level * 255); - - for (var i = 0; i < pixels.length; i += 4) { - var r = pixels[i]; - var g = pixels[i + 1]; - var b = pixels[i + 2]; - var gray = 0.2126 * r + 0.7152 * g + 0.0722 * b; - var val; - if (gray >= thresh) { - val = 255; - } else { - val = 0; - } - pixels[i] = pixels[i + 1] = pixels[i + 2] = val; - } - }; - - /** - * Converts any colors in the image to grayscale equivalents. - * No parameter is used. - * - * Borrowed from http://www.html5rocks.com/en/tutorials/canvas/imagefilters/ - * - * @private - * @param {Canvas} canvas - */ - Filters.gray = function(canvas) { - var pixels = Filters._toPixels(canvas); - - for (var i = 0; i < pixels.length; i += 4) { - var r = pixels[i]; - var g = pixels[i + 1]; - var b = pixels[i + 2]; - - // CIE luminance for RGB - var gray = 0.2126 * r + 0.7152 * g + 0.0722 * b; - pixels[i] = pixels[i + 1] = pixels[i + 2] = gray; - } - }; - - /** - * Sets the alpha channel to entirely opaque. No parameter is used. - * - * @private - * @param {Canvas} canvas - */ - Filters.opaque = function(canvas) { - var pixels = Filters._toPixels(canvas); - - for (var i = 0; i < pixels.length; i += 4) { - pixels[i + 3] = 255; - } - - return pixels; - }; - - /** - * Sets each pixel to its inverse value. No parameter is used. - * @private - * @param {Canvas} canvas - */ - Filters.invert = function(canvas) { - var pixels = Filters._toPixels(canvas); - - for (var i = 0; i < pixels.length; i += 4) { - pixels[i] = 255 - pixels[i]; - pixels[i + 1] = 255 - pixels[i + 1]; - pixels[i + 2] = 255 - pixels[i + 2]; - } - }; - - /** - * Limits each channel of the image to the number of colors specified as - * the parameter. The parameter can be set to values between 2 and 255, but - * results are most noticeable in the lower ranges. - * - * Adapted from java based processing implementation - * - * @private - * @param {Canvas} canvas - * @param {Integer} level - */ - Filters.posterize = function(canvas, level) { - var pixels = Filters._toPixels(canvas); - - if (level < 2 || level > 255) { - throw new Error( - 'Level must be greater than 2 and less than 255 for posterize' - ); - } - - var levels1 = level - 1; - for (var i = 0; i < pixels.length; i += 4) { - var rlevel = pixels[i]; - var glevel = pixels[i + 1]; - var blevel = pixels[i + 2]; - - pixels[i] = ((rlevel * level) >> 8) * 255 / levels1; - pixels[i + 1] = ((glevel * level) >> 8) * 255 / levels1; - pixels[i + 2] = ((blevel * level) >> 8) * 255 / levels1; - } - }; - - /** - * reduces the bright areas in an image - * @private - * @param {Canvas} canvas - * - */ - Filters.dilate = function(canvas) { - var pixels = Filters._toPixels(canvas); - var currIdx = 0; - var maxIdx = pixels.length ? pixels.length / 4 : 0; - var out = new Int32Array(maxIdx); - var currRowIdx, maxRowIdx, colOrig, colOut, currLum; - - var idxRight, idxLeft, idxUp, idxDown; - var colRight, colLeft, colUp, colDown; - var lumRight, lumLeft, lumUp, lumDown; - - while (currIdx < maxIdx) { - currRowIdx = currIdx; - maxRowIdx = currIdx + canvas.width; - while (currIdx < maxRowIdx) { - colOrig = colOut = Filters._getARGB(pixels, currIdx); - idxLeft = currIdx - 1; - idxRight = currIdx + 1; - idxUp = currIdx - canvas.width; - idxDown = currIdx + canvas.width; - - if (idxLeft < currRowIdx) { - idxLeft = currIdx; - } - if (idxRight >= maxRowIdx) { - idxRight = currIdx; - } - if (idxUp < 0) { - idxUp = 0; - } - if (idxDown >= maxIdx) { - idxDown = currIdx; - } - colUp = Filters._getARGB(pixels, idxUp); - colLeft = Filters._getARGB(pixels, idxLeft); - colDown = Filters._getARGB(pixels, idxDown); - colRight = Filters._getARGB(pixels, idxRight); - - //compute luminance - currLum = - 77 * ((colOrig >> 16) & 0xff) + - 151 * ((colOrig >> 8) & 0xff) + - 28 * (colOrig & 0xff); - lumLeft = - 77 * ((colLeft >> 16) & 0xff) + - 151 * ((colLeft >> 8) & 0xff) + - 28 * (colLeft & 0xff); - lumRight = - 77 * ((colRight >> 16) & 0xff) + - 151 * ((colRight >> 8) & 0xff) + - 28 * (colRight & 0xff); - lumUp = - 77 * ((colUp >> 16) & 0xff) + - 151 * ((colUp >> 8) & 0xff) + - 28 * (colUp & 0xff); - lumDown = - 77 * ((colDown >> 16) & 0xff) + - 151 * ((colDown >> 8) & 0xff) + - 28 * (colDown & 0xff); - - if (lumLeft > currLum) { - colOut = colLeft; - currLum = lumLeft; - } - if (lumRight > currLum) { - colOut = colRight; - currLum = lumRight; - } - if (lumUp > currLum) { - colOut = colUp; - currLum = lumUp; - } - if (lumDown > currLum) { - colOut = colDown; - currLum = lumDown; - } - out[currIdx++] = colOut; - } - } - Filters._setPixels(pixels, out); - }; - - /** - * increases the bright areas in an image - * @private - * @param {Canvas} canvas - * - */ - Filters.erode = function(canvas) { - var pixels = Filters._toPixels(canvas); - var currIdx = 0; - var maxIdx = pixels.length ? pixels.length / 4 : 0; - var out = new Int32Array(maxIdx); - var currRowIdx, maxRowIdx, colOrig, colOut, currLum; - var idxRight, idxLeft, idxUp, idxDown; - var colRight, colLeft, colUp, colDown; - var lumRight, lumLeft, lumUp, lumDown; - - while (currIdx < maxIdx) { - currRowIdx = currIdx; - maxRowIdx = currIdx + canvas.width; - while (currIdx < maxRowIdx) { - colOrig = colOut = Filters._getARGB(pixels, currIdx); - idxLeft = currIdx - 1; - idxRight = currIdx + 1; - idxUp = currIdx - canvas.width; - idxDown = currIdx + canvas.width; - - if (idxLeft < currRowIdx) { - idxLeft = currIdx; - } - if (idxRight >= maxRowIdx) { - idxRight = currIdx; - } - if (idxUp < 0) { - idxUp = 0; - } - if (idxDown >= maxIdx) { - idxDown = currIdx; - } - colUp = Filters._getARGB(pixels, idxUp); - colLeft = Filters._getARGB(pixels, idxLeft); - colDown = Filters._getARGB(pixels, idxDown); - colRight = Filters._getARGB(pixels, idxRight); - - //compute luminance - currLum = - 77 * ((colOrig >> 16) & 0xff) + - 151 * ((colOrig >> 8) & 0xff) + - 28 * (colOrig & 0xff); - lumLeft = - 77 * ((colLeft >> 16) & 0xff) + - 151 * ((colLeft >> 8) & 0xff) + - 28 * (colLeft & 0xff); - lumRight = - 77 * ((colRight >> 16) & 0xff) + - 151 * ((colRight >> 8) & 0xff) + - 28 * (colRight & 0xff); - lumUp = - 77 * ((colUp >> 16) & 0xff) + - 151 * ((colUp >> 8) & 0xff) + - 28 * (colUp & 0xff); - lumDown = - 77 * ((colDown >> 16) & 0xff) + - 151 * ((colDown >> 8) & 0xff) + - 28 * (colDown & 0xff); - - if (lumLeft < currLum) { - colOut = colLeft; - currLum = lumLeft; - } - if (lumRight < currLum) { - colOut = colRight; - currLum = lumRight; - } - if (lumUp < currLum) { - colOut = colUp; - currLum = lumUp; - } - if (lumDown < currLum) { - colOut = colDown; - currLum = lumDown; - } - - out[currIdx++] = colOut; - } - } - Filters._setPixels(pixels, out); - }; - - // BLUR - - // internal kernel stuff for the gaussian blur filter - var blurRadius; - var blurKernelSize; - var blurKernel; - var blurMult; - - /* - * Port of https://github.com/processing/processing/blob/ - * master/core/src/processing/core/PImage.java#L1250 - * - * Optimized code for building the blur kernel. - * further optimized blur code (approx. 15% for radius=20) - * bigger speed gains for larger radii (~30%) - * added support for various image types (ALPHA, RGB, ARGB) - * [toxi 050728] - */ - function buildBlurKernel(r) { - var radius = (r * 3.5) | 0; - radius = radius < 1 ? 1 : radius < 248 ? radius : 248; - - if (blurRadius !== radius) { - blurRadius = radius; - blurKernelSize = (1 + blurRadius) << 1; - blurKernel = new Int32Array(blurKernelSize); - blurMult = new Array(blurKernelSize); - for (var l = 0; l < blurKernelSize; l++) { - blurMult[l] = new Int32Array(256); - } - - var bk, bki; - var bm, bmi; - - for (var i = 1, radiusi = radius - 1; i < radius; i++) { - blurKernel[radius + i] = blurKernel[radiusi] = bki = radiusi * radiusi; - bm = blurMult[radius + i]; - bmi = blurMult[radiusi--]; - for (var j = 0; j < 256; j++) { - bm[j] = bmi[j] = bki * j; - } - } - bk = blurKernel[radius] = radius * radius; - bm = blurMult[radius]; - - for (var k = 0; k < 256; k++) { - bm[k] = bk * k; - } - } - } - - // Port of https://github.com/processing/processing/blob/ - // master/core/src/processing/core/PImage.java#L1433 - function blurARGB(canvas, radius) { - var pixels = Filters._toPixels(canvas); - var width = canvas.width; - var height = canvas.height; - var numPackedPixels = width * height; - var argb = new Int32Array(numPackedPixels); - for (var j = 0; j < numPackedPixels; j++) { - argb[j] = Filters._getARGB(pixels, j); - } - var sum, cr, cg, cb, ca; - var read, ri, ym, ymi, bk0; - var a2 = new Int32Array(numPackedPixels); - var r2 = new Int32Array(numPackedPixels); - var g2 = new Int32Array(numPackedPixels); - var b2 = new Int32Array(numPackedPixels); - var yi = 0; - buildBlurKernel(radius); - var x, y, i; - var bm; - for (y = 0; y < height; y++) { - for (x = 0; x < width; x++) { - cb = cg = cr = ca = sum = 0; - read = x - blurRadius; - if (read < 0) { - bk0 = -read; - read = 0; - } else { - if (read >= width) { - break; - } - bk0 = 0; - } - for (i = bk0; i < blurKernelSize; i++) { - if (read >= width) { - break; - } - var c = argb[read + yi]; - bm = blurMult[i]; - ca += bm[(c & -16777216) >>> 24]; - cr += bm[(c & 16711680) >> 16]; - cg += bm[(c & 65280) >> 8]; - cb += bm[c & 255]; - sum += blurKernel[i]; - read++; - } - ri = yi + x; - a2[ri] = ca / sum; - r2[ri] = cr / sum; - g2[ri] = cg / sum; - b2[ri] = cb / sum; - } - yi += width; - } - yi = 0; - ym = -blurRadius; - ymi = ym * width; - for (y = 0; y < height; y++) { - for (x = 0; x < width; x++) { - cb = cg = cr = ca = sum = 0; - if (ym < 0) { - bk0 = ri = -ym; - read = x; - } else { - if (ym >= height) { - break; - } - bk0 = 0; - ri = ym; - read = x + ymi; - } - for (i = bk0; i < blurKernelSize; i++) { - if (ri >= height) { - break; - } - bm = blurMult[i]; - ca += bm[a2[read]]; - cr += bm[r2[read]]; - cg += bm[g2[read]]; - cb += bm[b2[read]]; - sum += blurKernel[i]; - ri++; - read += width; - } - argb[x + yi] = - ((ca / sum) << 24) | ((cr / sum) << 16) | ((cg / sum) << 8) | (cb / sum); - } - yi += width; - ymi += width; - ym++; - } - Filters._setPixels(pixels, argb); - } - - Filters.blur = function(canvas, radius) { - blurARGB(canvas, radius); - }; - - module.exports = Filters; - }, - {} - ], - 44: [ - function(_dereq_, module, exports) { - /** - * @module Image - * @submodule Image - * @for p5 - * @requires core - */ - - /** - * This module defines the p5 methods for the p5.Image class - * for drawing images to the main display canvas. - */ - 'use strict'; - - var p5 = _dereq_('../core/main'); - // This is not global, but ESLint is not aware that - // this module is implicitly enclosed with Browserify: this overrides the - // redefined-global error and permits using the name "frames" for the array - // of saved animation frames. - - /* global frames:true */ var frames = []; - - /** - * Creates a new p5.Image (the datatype for storing images). This provides a - * fresh buffer of pixels to play with. Set the size of the buffer with the - * width and height parameters. - *

- * .pixels gives access to an array containing the values for all the pixels - * in the display window. - * These values are numbers. This array is the size (including an appropriate - * factor for the pixelDensity) of the display window x4, - * representing the R, G, B, A values in order for each pixel, moving from - * left to right across each row, then down each column. See .pixels for - * more info. It may also be simpler to use set() or get(). - *

- * Before accessing the pixels of an image, the data must loaded with the - * loadPixels() function. After the array data has been modified, the - * updatePixels() function must be run to update the changes. - * - * @method createImage - * @param {Integer} width width in pixels - * @param {Integer} height height in pixels - * @return {p5.Image} the p5.Image object - * @example - *
- * - * let img = createImage(66, 66); - * img.loadPixels(); - * for (let i = 0; i < img.width; i++) { - * for (let j = 0; j < img.height; j++) { - * img.set(i, j, color(0, 90, 102)); - * } - * } - * img.updatePixels(); - * image(img, 17, 17); - * - *
- * - *
- * - * let img = createImage(66, 66); - * img.loadPixels(); - * for (let i = 0; i < img.width; i++) { - * for (let j = 0; j < img.height; j++) { - * img.set(i, j, color(0, 90, 102, (i % img.width) * 2)); - * } - * } - * img.updatePixels(); - * image(img, 17, 17); - * image(img, 34, 34); - * - *
- * - *
- * - * let pink = color(255, 102, 204); - * let img = createImage(66, 66); - * img.loadPixels(); - * let d = pixelDensity(); - * let halfImage = 4 * (img.width * d) * (img.height / 2 * d); - * for (let i = 0; i < halfImage; i += 4) { - * img.pixels[i] = red(pink); - * img.pixels[i + 1] = green(pink); - * img.pixels[i + 2] = blue(pink); - * img.pixels[i + 3] = alpha(pink); - * } - * img.updatePixels(); - * image(img, 17, 17); - * - *
- * - * @alt - * 66x66 dark turquoise rect in center of canvas. - * 2 gradated dark turquoise rects fade left. 1 center 1 bottom right of canvas - * no image displayed - * - */ - p5.prototype.createImage = function(width, height) { - p5._validateParameters('createImage', arguments); - return new p5.Image(width, height); - }; - - /** - * Save the current canvas as an image. The browser will either save the - * file immediately, or prompt the user with a dialogue window. - * - * @method saveCanvas - * @param {p5.Element|HTMLCanvasElement} selectedCanvas a variable - * representing a specific html5 canvas (optional) - * @param {String} [filename] - * @param {String} [extension] 'jpg' or 'png' - * - * @example - *
- * function setup() { - * let c = createCanvas(100, 100); - * background(255, 0, 0); - * saveCanvas(c, 'myCanvas', 'jpg'); - * } - *
- *
- * // note that this example has the same result as above - * // if no canvas is specified, defaults to main canvas - * function setup() { - * let c = createCanvas(100, 100); - * background(255, 0, 0); - * saveCanvas('myCanvas', 'jpg'); - * - * // all of the following are valid - * saveCanvas(c, 'myCanvas', 'jpg'); - * saveCanvas(c, 'myCanvas.jpg'); - * saveCanvas(c, 'myCanvas'); - * saveCanvas(c); - * saveCanvas('myCanvas', 'png'); - * saveCanvas('myCanvas'); - * saveCanvas(); - * } - *
- * - * @alt - * no image displayed - * no image displayed - * no image displayed - */ - /** - * @method saveCanvas - * @param {String} [filename] - * @param {String} [extension] - */ - p5.prototype.saveCanvas = function() { - p5._validateParameters('saveCanvas', arguments); - - // copy arguments to array - var args = [].slice.call(arguments); - var htmlCanvas, filename, extension; - - if (arguments[0] instanceof HTMLCanvasElement) { - htmlCanvas = arguments[0]; - args.shift(); - } else if (arguments[0] instanceof p5.Element) { - htmlCanvas = arguments[0].elt; - args.shift(); - } else { - htmlCanvas = this._curElement && this._curElement.elt; - } - - if (args.length >= 1) { - filename = args[0]; - } - if (args.length >= 2) { - extension = args[1]; - } - - extension = - extension || - p5.prototype._checkFileExtension(filename, extension)[1] || - 'png'; - - var mimeType; - switch (extension) { - default: - //case 'png': - mimeType = 'image/png'; - break; - case 'jpeg': - case 'jpg': - mimeType = 'image/jpeg'; - break; - } - - htmlCanvas.toBlob(function(blob) { - p5.prototype.downloadFile(blob, filename, extension); - }, mimeType); - }; - - /** - * Capture a sequence of frames that can be used to create a movie. - * Accepts a callback. For example, you may wish to send the frames - * to a server where they can be stored or converted into a movie. - * If no callback is provided, the browser will pop up save dialogues in an - * attempt to download all of the images that have just been created. With the - * callback provided the image data isn't saved by default but instead passed - * as an argument to the callback function as an array of objects, with the - * size of array equal to the total number of frames. - * - * Note that saveFrames() will only save the first 15 frames of an animation. - * To export longer animations, you might look into a library like - * ccapture.js. - * - * @method saveFrames - * @param {String} filename - * @param {String} extension 'jpg' or 'png' - * @param {Number} duration Duration in seconds to save the frames for. - * @param {Number} framerate Framerate to save the frames in. - * @param {function(Array)} [callback] A callback function that will be executed - to handle the image data. This function - should accept an array as argument. The - array will contain the specified number of - frames of objects. Each object has three - properties: imageData - an - image/octet-stream, filename and extension. - * @example - *
- * function draw() { - * background(mouseX); - * } - * - * function mousePressed() { - * saveFrames('out', 'png', 1, 25, data => { - * print(data); - * }); - * } -
- * - * @alt - * canvas background goes from light to dark with mouse x. - * - */ - p5.prototype.saveFrames = function(fName, ext, _duration, _fps, callback) { - p5._validateParameters('saveFrames', arguments); - var duration = _duration || 3; - duration = p5.prototype.constrain(duration, 0, 15); - duration = duration * 1000; - var fps = _fps || 15; - fps = p5.prototype.constrain(fps, 0, 22); - var count = 0; - - var makeFrame = p5.prototype._makeFrame; - var cnv = this._curElement.elt; - var frameFactory = setInterval(function() { - makeFrame(fName + count, ext, cnv); - count++; - }, 1000 / fps); - - setTimeout(function() { - clearInterval(frameFactory); - if (callback) { - callback(frames); - } else { - for (var i = 0; i < frames.length; i++) { - var f = frames[i]; - p5.prototype.downloadFile(f.imageData, f.filename, f.ext); - } - } - frames = []; // clear frames - }, duration + 0.01); - }; - - p5.prototype._makeFrame = function(filename, extension, _cnv) { - var cnv; - if (this) { - cnv = this._curElement.elt; - } else { - cnv = _cnv; - } - var mimeType; - if (!extension) { - extension = 'png'; - mimeType = 'image/png'; - } else { - switch (extension.toLowerCase()) { - case 'png': - mimeType = 'image/png'; - break; - case 'jpeg': - mimeType = 'image/jpeg'; - break; - case 'jpg': - mimeType = 'image/jpeg'; - break; - default: - mimeType = 'image/png'; - break; - } - } - var downloadMime = 'image/octet-stream'; - var imageData = cnv.toDataURL(mimeType); - imageData = imageData.replace(mimeType, downloadMime); - - var thisFrame = {}; - thisFrame.imageData = imageData; - thisFrame.filename = filename; - thisFrame.ext = extension; - frames.push(thisFrame); - }; - - module.exports = p5; - }, - { '../core/main': 24 } - ], - 45: [ - function(_dereq_, module, exports) { - /** - * @module Image - * @submodule Loading & Displaying - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - var Filters = _dereq_('./filters'); - var canvas = _dereq_('../core/helpers'); - var constants = _dereq_('../core/constants'); - - _dereq_('../core/error_helpers'); - - /** - * Loads an image from a path and creates a p5.Image from it. - *

- * The image may not be immediately available for rendering - * If you want to ensure that the image is ready before doing - * anything with it, place the loadImage() call in preload(). - * You may also supply a callback function to handle the image when it's ready. - *

- * The path to the image should be relative to the HTML file - * that links in your sketch. Loading an image from a URL or other - * remote location may be blocked due to your browser's built-in - * security. - * - * @method loadImage - * @param {String} path Path of the image to be loaded - * @param {function(p5.Image)} [successCallback] Function to be called once - * the image is loaded. Will be passed the - * p5.Image. - * @param {function(Event)} [failureCallback] called with event error if - * the image fails to load. - * @return {p5.Image} the p5.Image object - * @example - *
- * - * let img; - * function preload() { - * img = loadImage('assets/laDefense.jpg'); - * } - * function setup() { - * image(img, 0, 0); - * } - * - *
- *
- * - * function setup() { - * // here we use a callback to display the image after loading - * loadImage('assets/laDefense.jpg', img => { - * image(img, 0, 0); - * }); - * } - * - *
- * - * @alt - * image of the underside of a white umbrella and grided ceililng above - * image of the underside of a white umbrella and grided ceililng above - * - */ - p5.prototype.loadImage = function(path, successCallback, failureCallback) { - p5._validateParameters('loadImage', arguments); - var img = new Image(); - var pImg = new p5.Image(1, 1, this); - - var self = this; - img.onload = function() { - pImg.width = pImg.canvas.width = img.width; - pImg.height = pImg.canvas.height = img.height; - - // Draw the image into the backing canvas of the p5.Image - pImg.drawingContext.drawImage(img, 0, 0); - pImg.modified = true; - - if (typeof successCallback === 'function') { - successCallback(pImg); - } - - self._decrementPreload(); - }; - img.onerror = function(e) { - p5._friendlyFileLoadError(0, img.src); - if (typeof failureCallback === 'function') { - failureCallback(e); - } else { - console.error(e); - } - }; - - // Set crossOrigin in case image is served with CORS headers. - // This will let us draw to the canvas without tainting it. - // See https://developer.mozilla.org/en-US/docs/HTML/CORS_Enabled_Image - // When using data-uris the file will be loaded locally - // so we don't need to worry about crossOrigin with base64 file types. - if (path.indexOf('data:image/') !== 0) { - img.crossOrigin = 'Anonymous'; - } - - // start loading the image - img.src = path; - - return pImg; - }; - - /** - * Validates clipping params. Per drawImage spec sWidth and sHight cannot be - * negative or greater than image intrinsic width and height - * @private - * @param {Number} sVal - * @param {Number} iVal - * @returns {Number} - * @private - */ - function _sAssign(sVal, iVal) { - if (sVal > 0 && sVal < iVal) { - return sVal; - } else { - return iVal; - } - } - - /** - * Draw an image to the p5.js canvas. - * - * This function can be used with different numbers of parameters. The - * simplest use requires only three parameters: img, x, and yโ€”where (x, y) is - * the position of the image. Two more parameters can optionally be added to - * specify the width and height of the image. - * - * This function can also be used with all eight Number parameters. To - * differentiate between all these parameters, p5.js uses the language of - * "destination rectangle" (which corresponds to "dx", "dy", etc.) and "source - * image" (which corresponds to "sx", "sy", etc.) below. Specifying the - * "source image" dimensions can be useful when you want to display a - * subsection of the source image instead of the whole thing. Here's a diagram - * to explain further: - * - * - * @method image - * @param {p5.Image|p5.Element} img the image to display - * @param {Number} x the x-coordinate of the top-left corner of the image - * @param {Number} y the y-coordinate of the top-left corner of the image - * @param {Number} [width] the width to draw the image - * @param {Number} [height] the height to draw the image - * @example - *
- * - * let img; - * function preload() { - * img = loadImage('assets/laDefense.jpg'); - * } - * function setup() { - * // Top-left corner of the img is at (0, 0) - * // Width and height are the img's original width and height - * image(img, 0, 0); - * } - * - *
- *
- * - * let img; - * function preload() { - * img = loadImage('assets/laDefense.jpg'); - * } - * function setup() { - * background(50); - * // Top-left corner of the img is at (10, 10) - * // Width and height are 50 x 50 - * image(img, 10, 10, 50, 50); - * } - * - *
- *
- * - * function setup() { - * // Here, we use a callback to display the image after loading - * loadImage('assets/laDefense.jpg', img => { - * image(img, 0, 0); - * }); - * } - * - *
- *
- * - * let img; - * function preload() { - * img = loadImage('assets/gradient.png'); - * } - * function setup() { - * // 1. Background image - * // Top-left corner of the img is at (0, 0) - * // Width and height are the img's original width and height, 100 x 100 - * image(img, 0, 0); - * // 2. Top right image - * // Top-left corner of destination rectangle is at (50, 0) - * // Destination rectangle width and height are 40 x 20 - * // The next parameters are relative to the source image: - * // - Starting at position (50, 50) on the source image, capture a 50 x 50 - * // subsection - * // - Draw this subsection to fill the dimensions of the destination rectangle - * image(img, 50, 0, 40, 20, 50, 50, 50, 50); - * } - * - *
- * @alt - * image of the underside of a white umbrella and gridded ceiling above - * image of the underside of a white umbrella and gridded ceiling above - * - */ - /** - * @method image - * @param {p5.Image|p5.Element} img - * @param {Number} dx the x-coordinate of the destination - * rectangle in which to draw the source image - * @param {Number} dy the y-coordinate of the destination - * rectangle in which to draw the source image - * @param {Number} dWidth the width of the destination rectangle - * @param {Number} dHeight the height of the destination rectangle - * @param {Number} sx the x-coordinate of the subsection of the source - * image to draw into the destination rectangle - * @param {Number} sy the y-coordinate of the subsection of the source - * image to draw into the destination rectangle - * @param {Number} [sWidth] the width of the subsection of the - * source image to draw into the destination - * rectangle - * @param {Number} [sHeight] the height of the subsection of the - * source image to draw into the destination rectangle - */ - p5.prototype.image = function( - img, - dx, - dy, - dWidth, - dHeight, - sx, - sy, - sWidth, - sHeight - ) { - // set defaults per spec: https://goo.gl/3ykfOq - - p5._validateParameters('image', arguments); - - var defW = img.width; - var defH = img.height; - - if (img.elt && img.elt.videoWidth && !img.canvas) { - // video no canvas - defW = img.elt.videoWidth; - defH = img.elt.videoHeight; - } - - var _dx = dx; - var _dy = dy; - var _dw = dWidth || defW; - var _dh = dHeight || defH; - var _sx = sx || 0; - var _sy = sy || 0; - var _sw = sWidth || defW; - var _sh = sHeight || defH; - - _sw = _sAssign(_sw, defW); - _sh = _sAssign(_sh, defH); - - // This part needs cleanup and unit tests - // see issues https://github.com/processing/p5.js/issues/1741 - // and https://github.com/processing/p5.js/issues/1673 - var pd = 1; - - if (img.elt && !img.canvas && img.elt.style.width) { - //if img is video and img.elt.size() has been used and - //no width passed to image() - if (img.elt.videoWidth && !dWidth) { - pd = img.elt.videoWidth; - } else { - //all other cases - pd = img.elt.width; - } - pd /= parseInt(img.elt.style.width, 10); - } - - _sx *= pd; - _sy *= pd; - _sh *= pd; - _sw *= pd; - - var vals = canvas.modeAdjust(_dx, _dy, _dw, _dh, this._renderer._imageMode); - - // tint the image if there is a tint - this._renderer.image(img, _sx, _sy, _sw, _sh, vals.x, vals.y, vals.w, vals.h); - }; - - /** - * Sets the fill value for displaying images. Images can be tinted to - * specified colors or made transparent by including an alpha value. - *

- * To apply transparency to an image without affecting its color, use - * white as the tint color and specify an alpha value. For instance, - * tint(255, 128) will make an image 50% transparent (assuming the default - * alpha range of 0-255, which can be changed with colorMode()). - *

- * The value for the gray parameter must be less than or equal to the current - * maximum value as specified by colorMode(). The default maximum value is - * 255. - * - * - * @method tint - * @param {Number} v1 red or hue value relative to - * the current color range - * @param {Number} v2 green or saturation value - * relative to the current color range - * @param {Number} v3 blue or brightness value - * relative to the current color range - * @param {Number} [alpha] - * - * @example - *
- * - * let img; - * function preload() { - * img = loadImage('assets/laDefense.jpg'); - * } - * function setup() { - * image(img, 0, 0); - * tint(0, 153, 204); // Tint blue - * image(img, 50, 0); - * } - * - *
- * - *
- * - * let img; - * function preload() { - * img = loadImage('assets/laDefense.jpg'); - * } - * function setup() { - * image(img, 0, 0); - * tint(0, 153, 204, 126); // Tint blue and set transparency - * image(img, 50, 0); - * } - * - *
- * - *
- * - * let img; - * function preload() { - * img = loadImage('assets/laDefense.jpg'); - * } - * function setup() { - * image(img, 0, 0); - * tint(255, 126); // Apply transparency without changing color - * image(img, 50, 0); - * } - * - *
- * - * @alt - * 2 side by side images of umbrella and ceiling, one image with blue tint - * Images of umbrella and ceiling, one half of image with blue tint - * 2 side by side images of umbrella and ceiling, one image translucent - * - */ - - /** - * @method tint - * @param {String} value a color string - */ - - /** - * @method tint - * @param {Number} gray a gray value - * @param {Number} [alpha] - */ - - /** - * @method tint - * @param {Number[]} values an array containing the red,green,blue & - * and alpha components of the color - */ - - /** - * @method tint - * @param {p5.Color} color the tint color - */ - p5.prototype.tint = function() { - p5._validateParameters('tint', arguments); - var c = this.color.apply(this, arguments); - this._renderer._tint = c.levels; - }; - - /** - * Removes the current fill value for displaying images and reverts to - * displaying images with their original hues. - * - * @method noTint - * @example - *
- * - * let img; - * function preload() { - * img = loadImage('assets/bricks.jpg'); - * } - * function setup() { - * tint(0, 153, 204); // Tint blue - * image(img, 0, 0); - * noTint(); // Disable tint - * image(img, 50, 0); - * } - * - *
- * - * @alt - * 2 side by side images of bricks, left image with blue tint - * - */ - p5.prototype.noTint = function() { - this._renderer._tint = null; - }; - - /** - * Apply the current tint color to the input image, return the resulting - * canvas. - * - * @private - * @param {p5.Image} The image to be tinted - * @return {canvas} The resulting tinted canvas - * - */ - p5.prototype._getTintedImageCanvas = function(img) { - if (!img.canvas) { - return img; - } - var pixels = Filters._toPixels(img.canvas); - var tmpCanvas = document.createElement('canvas'); - tmpCanvas.width = img.canvas.width; - tmpCanvas.height = img.canvas.height; - var tmpCtx = tmpCanvas.getContext('2d'); - var id = tmpCtx.createImageData(img.canvas.width, img.canvas.height); - var newPixels = id.data; - - for (var i = 0; i < pixels.length; i += 4) { - var r = pixels[i]; - var g = pixels[i + 1]; - var b = pixels[i + 2]; - var a = pixels[i + 3]; - - newPixels[i] = r * this._renderer._tint[0] / 255; - newPixels[i + 1] = g * this._renderer._tint[1] / 255; - newPixels[i + 2] = b * this._renderer._tint[2] / 255; - newPixels[i + 3] = a * this._renderer._tint[3] / 255; - } - - tmpCtx.putImageData(id, 0, 0); - return tmpCanvas; - }; - - /** - * Set image mode. Modifies the location from which images are drawn by - * changing the way in which parameters given to image() are interpreted. - * The default mode is imageMode(CORNER), which interprets the second and - * third parameters of image() as the upper-left corner of the image. If - * two additional parameters are specified, they are used to set the image's - * width and height. - *

- * imageMode(CORNERS) interprets the second and third parameters of image() - * as the location of one corner, and the fourth and fifth parameters as the - * opposite corner. - *

- * imageMode(CENTER) interprets the second and third parameters of image() - * as the image's center point. If two additional parameters are specified, - * they are used to set the image's width and height. - * - * @method imageMode - * @param {Constant} mode either CORNER, CORNERS, or CENTER - * @example - * - *
- * - * let img; - * function preload() { - * img = loadImage('assets/bricks.jpg'); - * } - * function setup() { - * imageMode(CORNER); - * image(img, 10, 10, 50, 50); - * } - * - *
- * - *
- * - * let img; - * function preload() { - * img = loadImage('assets/bricks.jpg'); - * } - * function setup() { - * imageMode(CORNERS); - * image(img, 10, 10, 90, 40); - * } - * - *
- * - *
- * - * let img; - * function preload() { - * img = loadImage('assets/bricks.jpg'); - * } - * function setup() { - * imageMode(CENTER); - * image(img, 50, 50, 80, 80); - * } - * - *
- * - * @alt - * small square image of bricks - * horizontal rectangle image of bricks - * large square image of bricks - * - */ - p5.prototype.imageMode = function(m) { - p5._validateParameters('imageMode', arguments); - if ( - m === constants.CORNER || - m === constants.CORNERS || - m === constants.CENTER - ) { - this._renderer._imageMode = m; - } - }; - - module.exports = p5; - }, - { - '../core/constants': 18, - '../core/error_helpers': 20, - '../core/helpers': 21, - '../core/main': 24, - './filters': 43 - } - ], - 46: [ - function(_dereq_, module, exports) { - /** - * @module Image - * @submodule Image - * @requires core - * @requires constants - * @requires filters - */ - - /** - * This module defines the p5.Image class and P5 methods for - * drawing images to the main display canvas. - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - var Filters = _dereq_('./filters'); - - /* - * Class methods - */ - - /** - * Creates a new p5.Image. A p5.Image is a canvas backed representation of an - * image. - *

- * p5 can display .gif, .jpg and .png images. Images may be displayed - * in 2D and 3D space. Before an image is used, it must be loaded with the - * loadImage() function. The p5.Image class contains fields for the width and - * height of the image, as well as an array called pixels[] that contains the - * values for every pixel in the image. - *

- * The methods described below allow easy access to the image's pixels and - * alpha channel and simplify the process of compositing. - *

- * Before using the pixels[] array, be sure to use the loadPixels() method on - * the image to make sure that the pixel data is properly loaded. - * @example - *
- * function setup() { - * let img = createImage(100, 100); // same as new p5.Image(100, 100); - * img.loadPixels(); - * createCanvas(100, 100); - * background(0); - * - * // helper for writing color to array - * function writeColor(image, x, y, red, green, blue, alpha) { - * let index = (x + y * width) * 4; - * image.pixels[index] = red; - * image.pixels[index + 1] = green; - * image.pixels[index + 2] = blue; - * image.pixels[index + 3] = alpha; - * } - * - * let x, y; - * // fill with random colors - * for (y = 0; y < img.height; y++) { - * for (x = 0; x < img.width; x++) { - * let red = random(255); - * let green = random(255); - * let blue = random(255); - * let alpha = 255; - * writeColor(img, x, y, red, green, blue, alpha); - * } - * } - * - * // draw a red line - * y = 0; - * for (x = 0; x < img.width; x++) { - * writeColor(img, x, y, 255, 0, 0, 255); - * } - * - * // draw a green line - * y = img.height - 1; - * for (x = 0; x < img.width; x++) { - * writeColor(img, x, y, 0, 255, 0, 255); - * } - * - * img.updatePixels(); - * image(img, 0, 0); - * } - *
- * - * - * @class p5.Image - * @param {Number} width - * @param {Number} height - */ - p5.Image = function(width, height) { - /** - * Image width. - * @property {Number} width - * @readOnly - * @example - *
- * let img; - * function preload() { - * img = loadImage('assets/rockies.jpg'); - * } - * - * function setup() { - * createCanvas(100, 100); - * image(img, 0, 0); - * for (let i = 0; i < img.width; i++) { - * let c = img.get(i, img.height / 2); - * stroke(c); - * line(i, height / 2, i, height); - * } - * } - *
- * - * @alt - * rocky mountains in top and horizontal lines in corresponding colors in bottom. - * - */ - this.width = width; - /** - * Image height. - * @property {Number} height - * @readOnly - * @example - *
- * let img; - * function preload() { - * img = loadImage('assets/rockies.jpg'); - * } - * - * function setup() { - * createCanvas(100, 100); - * image(img, 0, 0); - * for (let i = 0; i < img.height; i++) { - * let c = img.get(img.width / 2, i); - * stroke(c); - * line(0, i, width / 2, i); - * } - * } - *
- * - * @alt - * rocky mountains on right and vertical lines in corresponding colors on left. - * - */ - this.height = height; - this.canvas = document.createElement('canvas'); - this.canvas.width = this.width; - this.canvas.height = this.height; - this.drawingContext = this.canvas.getContext('2d'); - this._pixelsState = this; - this._pixelDensity = 1; - this._pixelsDirty = true; - //For WebGL Texturing only: used to determine whether to reupload texture to GPU - this._modified = false; - /** - * Array containing the values for all the pixels in the display window. - * These values are numbers. This array is the size (include an appropriate - * factor for pixelDensity) of the display window x4, - * representing the R, G, B, A values in order for each pixel, moving from - * left to right across each row, then down each column. Retina and other - * high denisty displays may have more pixels (by a factor of - * pixelDensity^2). - * For example, if the image is 100x100 pixels, there will be 40,000. With - * pixelDensity = 2, there will be 160,000. The first four values - * (indices 0-3) in the array will be the R, G, B, A values of the pixel at - * (0, 0). The second four values (indices 4-7) will contain the R, G, B, A - * values of the pixel at (1, 0). More generally, to set values for a pixel - * at (x, y): - * ```javascript - * let d = pixelDensity(); - * for (let i = 0; i < d; i++) { - * for (let j = 0; j < d; j++) { - * // loop over - * index = 4 * ((y * d + j) * width * d + (x * d + i)); - * pixels[index] = r; - * pixels[index+1] = g; - * pixels[index+2] = b; - * pixels[index+3] = a; - * } - * } - * ``` - *

- * Before accessing this array, the data must loaded with the loadPixels() - * function. After the array data has been modified, the updatePixels() - * function must be run to update the changes. - * @property {Number[]} pixels - * @example - *
- * - * let img = createImage(66, 66); - * img.loadPixels(); - * for (let i = 0; i < img.width; i++) { - * for (let j = 0; j < img.height; j++) { - * img.set(i, j, color(0, 90, 102)); - * } - * } - * img.updatePixels(); - * image(img, 17, 17); - * - *
- *
- * - * let pink = color(255, 102, 204); - * let img = createImage(66, 66); - * img.loadPixels(); - * for (let i = 0; i < 4 * (width * height / 2); i += 4) { - * img.pixels[i] = red(pink); - * img.pixels[i + 1] = green(pink); - * img.pixels[i + 2] = blue(pink); - * img.pixels[i + 3] = alpha(pink); - * } - * img.updatePixels(); - * image(img, 17, 17); - * - *
- * - * @alt - * 66x66 turquoise rect in center of canvas - * 66x66 pink rect in center of canvas - * - */ - this.pixels = []; - }; - - /** - * Helper fxn for sharing pixel methods - * - */ - p5.Image.prototype._setProperty = function(prop, value) { - this[prop] = value; - this.setModified(true); - }; - - /** - * Loads the pixels data for this image into the [pixels] attribute. - * - * @method loadPixels - * @example - *
- * let myImage; - * let halfImage; - * - * function preload() { - * myImage = loadImage('assets/rockies.jpg'); - * } - * - * function setup() { - * myImage.loadPixels(); - * halfImage = 4 * myImage.width * myImage.height / 2; - * for (let i = 0; i < halfImage; i++) { - * myImage.pixels[i + halfImage] = myImage.pixels[i]; - * } - * myImage.updatePixels(); - * } - * - * function draw() { - * image(myImage, 0, 0, width, height); - * } - *
- * - * @alt - * 2 images of rocky mountains vertically stacked - * - */ - p5.Image.prototype.loadPixels = function() { - p5.Renderer2D.prototype.loadPixels.call(this); - this.setModified(true); - }; - - /** - * Updates the backing canvas for this image with the contents of - * the [pixels] array. - * - * @method updatePixels - * @param {Integer} x x-offset of the target update area for the - * underlying canvas - * @param {Integer} y y-offset of the target update area for the - * underlying canvas - * @param {Integer} w height of the target update area for the - * underlying canvas - * @param {Integer} h height of the target update area for the - * underlying canvas - * @example - *
- * let myImage; - * let halfImage; - * - * function preload() { - * myImage = loadImage('assets/rockies.jpg'); - * } - * - * function setup() { - * myImage.loadPixels(); - * halfImage = 4 * myImage.width * myImage.height / 2; - * for (let i = 0; i < halfImage; i++) { - * myImage.pixels[i + halfImage] = myImage.pixels[i]; - * } - * myImage.updatePixels(); - * } - * - * function draw() { - * image(myImage, 0, 0, width, height); - * } - *
- * - * @alt - * 2 images of rocky mountains vertically stacked - * - */ - /** - * @method updatePixels - */ - p5.Image.prototype.updatePixels = function(x, y, w, h) { - p5.Renderer2D.prototype.updatePixels.call(this, x, y, w, h); - this.setModified(true); - }; - - /** - * Get a region of pixels from an image. - * - * If no params are passed, the whole image is returned. - * If x and y are the only params passed a single pixel is extracted. - * If all params are passed a rectangle region is extracted and a p5.Image - * is returned. - * - * @method get - * @param {Number} x x-coordinate of the pixel - * @param {Number} y y-coordinate of the pixel - * @param {Number} w width - * @param {Number} h height - * @return {p5.Image} the rectangle p5.Image - * @example - *
- * let myImage; - * let c; - * - * function preload() { - * myImage = loadImage('assets/rockies.jpg'); - * } - * - * function setup() { - * background(myImage); - * noStroke(); - * c = myImage.get(60, 90); - * fill(c); - * rect(25, 25, 50, 50); - * } - * - * //get() returns color here - *
- * - * @alt - * image of rocky mountains with 50x50 green rect in front - * - */ - /** - * @method get - * @return {p5.Image} the whole p5.Image - */ - /** - * @method get - * @param {Number} x - * @param {Number} y - * @return {Number[]} color of pixel at x,y in array format [R, G, B, A] - */ - p5.Image.prototype.get = function(x, y, w, h) { - p5._validateParameters('p5.Image.get', arguments); - return p5.Renderer2D.prototype.get.apply(this, arguments); - }; - - p5.Image.prototype._getPixel = p5.Renderer2D.prototype._getPixel; - - /** - * Set the color of a single pixel or write an image into - * this p5.Image. - * - * Note that for a large number of pixels this will - * be slower than directly manipulating the pixels array - * and then calling updatePixels(). - * - * @method set - * @param {Number} x x-coordinate of the pixel - * @param {Number} y y-coordinate of the pixel - * @param {Number|Number[]|Object} a grayscale value | pixel array | - * a p5.Color | image to copy - * @example - *
- * - * let img = createImage(66, 66); - * img.loadPixels(); - * for (let i = 0; i < img.width; i++) { - * for (let j = 0; j < img.height; j++) { - * img.set(i, j, color(0, 90, 102, (i % img.width) * 2)); - * } - * } - * img.updatePixels(); - * image(img, 17, 17); - * image(img, 34, 34); - * - *
- * - * @alt - * 2 gradated dark turquoise rects fade left. 1 center 1 bottom right of canvas - * - */ - p5.Image.prototype.set = function(x, y, imgOrCol) { - p5.Renderer2D.prototype.set.call(this, x, y, imgOrCol); - this.setModified(true); - }; - - /** - * Resize the image to a new width and height. To make the image scale - * proportionally, use 0 as the value for the wide or high parameter. - * For instance, to make the width of an image 150 pixels, and change - * the height using the same proportion, use resize(150, 0). - * - * @method resize - * @param {Number} width the resized image width - * @param {Number} height the resized image height - * @example - *
- * let img; - * - * function preload() { - * img = loadImage('assets/rockies.jpg'); - * } - - * function draw() { - * image(img, 0, 0); - * } - * - * function mousePressed() { - * img.resize(50, 100); - * } - *
- * - * @alt - * image of rocky mountains. zoomed in - * - */ - p5.Image.prototype.resize = function(width, height) { - // Copy contents to a temporary canvas, resize the original - // and then copy back. - // - // There is a faster approach that involves just one copy and swapping the - // this.canvas reference. We could switch to that approach if (as i think - // is the case) there an expectation that the user would not hold a - // reference to the backing canvas of a p5.Image. But since we do not - // enforce that at the moment, I am leaving in the slower, but safer - // implementation. - - // auto-resize - if (width === 0 && height === 0) { - width = this.canvas.width; - height = this.canvas.height; - } else if (width === 0) { - width = this.canvas.width * height / this.canvas.height; - } else if (height === 0) { - height = this.canvas.height * width / this.canvas.width; - } - - width = Math.floor(width); - height = Math.floor(height); - - var tempCanvas = document.createElement('canvas'); - tempCanvas.width = width; - tempCanvas.height = height; - // prettier-ignore - tempCanvas.getContext('2d').drawImage( - this.canvas, - 0, 0, this.canvas.width, this.canvas.height, - 0, 0, tempCanvas.width, tempCanvas.height); - - // Resize the original canvas, which will clear its contents - this.canvas.width = this.width = width; - this.canvas.height = this.height = height; - - //Copy the image back - - // prettier-ignore - this.drawingContext.drawImage( - tempCanvas, - 0, 0, width, height, - 0, 0, width, height); - - if (this.pixels.length > 0) { - this.loadPixels(); - } - - this.setModified(true); - this._pixelsDirty = true; - }; - - /** - * Copies a region of pixels from one image to another. If no - * srcImage is specified this is used as the source. If the source - * and destination regions aren't the same size, it will - * automatically resize source pixels to fit the specified - * target region. - * - * @method copy - * @param {p5.Image|p5.Element} srcImage source image - * @param {Integer} sx X coordinate of the source's upper left corner - * @param {Integer} sy Y coordinate of the source's upper left corner - * @param {Integer} sw source image width - * @param {Integer} sh source image height - * @param {Integer} dx X coordinate of the destination's upper left corner - * @param {Integer} dy Y coordinate of the destination's upper left corner - * @param {Integer} dw destination image width - * @param {Integer} dh destination image height - * @example - *
- * let photo; - * let bricks; - * let x; - * let y; - * - * function preload() { - * photo = loadImage('assets/rockies.jpg'); - * bricks = loadImage('assets/bricks.jpg'); - * } - * - * function setup() { - * x = bricks.width / 2; - * y = bricks.height / 2; - * photo.copy(bricks, 0, 0, x, y, 0, 0, x, y); - * image(photo, 0, 0); - * } - *
- * - * @alt - * image of rocky mountains and smaller image on top of bricks at top left - * - */ - /** - * @method copy - * @param {Integer} sx - * @param {Integer} sy - * @param {Integer} sw - * @param {Integer} sh - * @param {Integer} dx - * @param {Integer} dy - * @param {Integer} dw - * @param {Integer} dh - */ - p5.Image.prototype.copy = function() { - var srcImage, sx, sy, sw, sh, dx, dy, dw, dh; - if (arguments.length === 9) { - srcImage = arguments[0]; - sx = arguments[1]; - sy = arguments[2]; - sw = arguments[3]; - sh = arguments[4]; - dx = arguments[5]; - dy = arguments[6]; - dw = arguments[7]; - dh = arguments[8]; - } else if (arguments.length === 8) { - srcImage = this; - sx = arguments[0]; - sy = arguments[1]; - sw = arguments[2]; - sh = arguments[3]; - dx = arguments[4]; - dy = arguments[5]; - dw = arguments[6]; - dh = arguments[7]; - } else { - throw new Error('Signature not supported'); - } - p5.Renderer2D._copyHelper(this, srcImage, sx, sy, sw, sh, dx, dy, dw, dh); - this._pixelsDirty = true; - }; - - /** - * Masks part of an image from displaying by loading another - * image and using it's alpha channel as an alpha channel for - * this image. - * - * @method mask - * @param {p5.Image} srcImage source image - * @example - *
- * let photo, maskImage; - * function preload() { - * photo = loadImage('assets/rockies.jpg'); - * maskImage = loadImage('assets/mask2.png'); - * } - * - * function setup() { - * createCanvas(100, 100); - * photo.mask(maskImage); - * image(photo, 0, 0); - * } - *
- * - * @alt - * image of rocky mountains with white at right - * - * - * http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/ - * - */ - // TODO: - Accept an array of alpha values. - // - Use other channels of an image. p5 uses the - // blue channel (which feels kind of arbitrary). Note: at the - // moment this method does not match native processings original - // functionality exactly. - p5.Image.prototype.mask = function(p5Image) { - if (p5Image === undefined) { - p5Image = this; - } - var currBlend = this.drawingContext.globalCompositeOperation; - - var scaleFactor = 1; - if (p5Image instanceof p5.Renderer) { - scaleFactor = p5Image._pInst._pixelDensity; - } - - var copyArgs = [ - p5Image, - 0, - 0, - scaleFactor * p5Image.width, - scaleFactor * p5Image.height, - 0, - 0, - this.width, - this.height - ]; - - this.drawingContext.globalCompositeOperation = 'destination-in'; - p5.Image.prototype.copy.apply(this, copyArgs); - this.drawingContext.globalCompositeOperation = currBlend; - this.setModified(true); - }; - - /** - * Applies an image filter to a p5.Image - * - * @method filter - * @param {Constant} filterType either THRESHOLD, GRAY, OPAQUE, INVERT, - * POSTERIZE, BLUR, ERODE, DILATE or BLUR. - * See Filters.js for docs on - * each available filter - * @param {Number} [filterParam] an optional parameter unique - * to each filter, see above - * @example - *
- * let photo1; - * let photo2; - * - * function preload() { - * photo1 = loadImage('assets/rockies.jpg'); - * photo2 = loadImage('assets/rockies.jpg'); - * } - * - * function setup() { - * photo2.filter(GRAY); - * image(photo1, 0, 0); - * image(photo2, width / 2, 0); - * } - *
- * - * @alt - * 2 images of rocky mountains left one in color, right in black and white - * - */ - p5.Image.prototype.filter = function(operation, value) { - Filters.apply(this.canvas, Filters[operation], value); - this.setModified(true); - }; - - /** - * Copies a region of pixels from one image to another, using a specified - * blend mode to do the operation. - * - * @method blend - * @param {p5.Image} srcImage source image - * @param {Integer} sx X coordinate of the source's upper left corner - * @param {Integer} sy Y coordinate of the source's upper left corner - * @param {Integer} sw source image width - * @param {Integer} sh source image height - * @param {Integer} dx X coordinate of the destination's upper left corner - * @param {Integer} dy Y coordinate of the destination's upper left corner - * @param {Integer} dw destination image width - * @param {Integer} dh destination image height - * @param {Constant} blendMode the blend mode. either - * BLEND, DARKEST, LIGHTEST, DIFFERENCE, - * MULTIPLY, EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT, - * SOFT_LIGHT, DODGE, BURN, ADD or NORMAL. - * - * Available blend modes are: normal | multiply | screen | overlay | - * darken | lighten | color-dodge | color-burn | hard-light | - * soft-light | difference | exclusion | hue | saturation | - * color | luminosity - * - * - * http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/ - * @example - *
- * let mountains; - * let bricks; - * - * function preload() { - * mountains = loadImage('assets/rockies.jpg'); - * bricks = loadImage('assets/bricks_third.jpg'); - * } - * - * function setup() { - * mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, ADD); - * image(mountains, 0, 0); - * image(bricks, 0, 0); - * } - *
- *
- * let mountains; - * let bricks; - * - * function preload() { - * mountains = loadImage('assets/rockies.jpg'); - * bricks = loadImage('assets/bricks_third.jpg'); - * } - * - * function setup() { - * mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, DARKEST); - * image(mountains, 0, 0); - * image(bricks, 0, 0); - * } - *
- *
- * let mountains; - * let bricks; - * - * function preload() { - * mountains = loadImage('assets/rockies.jpg'); - * bricks = loadImage('assets/bricks_third.jpg'); - * } - * - * function setup() { - * mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, LIGHTEST); - * image(mountains, 0, 0); - * image(bricks, 0, 0); - * } - *
- * - * @alt - * image of rocky mountains. Brick images on left and right. Right overexposed - * image of rockies. Brickwall images on left and right. Right mortar transparent - * image of rockies. Brickwall images on left and right. Right translucent - * - */ - /** - * @method blend - * @param {Integer} sx - * @param {Integer} sy - * @param {Integer} sw - * @param {Integer} sh - * @param {Integer} dx - * @param {Integer} dy - * @param {Integer} dw - * @param {Integer} dh - * @param {Constant} blendMode - */ - p5.Image.prototype.blend = function() { - p5.prototype.blend.apply(this, arguments); - this.setModified(true); - }; - - /** - * helper method for web GL mode to indicate that an image has been - * changed or unchanged since last upload. gl texture upload will - * set this value to false after uploading the texture. - * @method setModified - * @param {boolean} val sets whether or not the image has been - * modified. - * @private - */ - p5.Image.prototype.setModified = function(val) { - this._modified = val; //enforce boolean? - }; - - /** - * helper method for web GL mode to figure out if the image - * has been modified and might need to be re-uploaded to texture - * memory between frames. - * @method isModified - * @private - * @return {boolean} a boolean indicating whether or not the - * image has been updated or modified since last texture upload. - */ - p5.Image.prototype.isModified = function() { - return this._modified; - }; - - /** - * Saves the image to a file and force the browser to download it. - * Accepts two strings for filename and file extension - * Supports png (default) and jpg. - * - * @method save - * @param {String} filename give your file a name - * @param {String} extension 'png' or 'jpg' - * @example - *
- * let photo; - * - * function preload() { - * photo = loadImage('assets/rockies.jpg'); - * } - * - * function draw() { - * image(photo, 0, 0); - * } - * - * function keyTyped() { - * if (key === 's') { - * photo.save('photo', 'png'); - * } - * } - *
- * - * @alt - * image of rocky mountains. - * - */ - p5.Image.prototype.save = function(filename, extension) { - p5.prototype.saveCanvas(this.canvas, filename, extension); - }; - - module.exports = p5.Image; - }, - { '../core/main': 24, './filters': 43 } - ], - 47: [ - function(_dereq_, module, exports) { - /** - * @module Image - * @submodule Pixels - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - var Filters = _dereq_('./filters'); - _dereq_('../color/p5.Color'); - - /** - * Uint8ClampedArray - * containing the values for all the pixels in the display window. - * These values are numbers. This array is the size (include an appropriate - * factor for pixelDensity) of the display window x4, - * representing the R, G, B, A values in order for each pixel, moving from - * left to right across each row, then down each column. Retina and other - * high density displays will have more pixels[] (by a factor of - * pixelDensity^2). - * For example, if the image is 100x100 pixels, there will be 40,000. On a - * retina display, there will be 160,000. - *

- * The first four values (indices 0-3) in the array will be the R, G, B, A - * values of the pixel at (0, 0). The second four values (indices 4-7) will - * contain the R, G, B, A values of the pixel at (1, 0). More generally, to - * set values for a pixel at (x, y): - * ```javascript - * let d = pixelDensity(); - * for (let i = 0; i < d; i++) { - * for (let j = 0; j < d; j++) { - * // loop over - * index = 4 * ((y * d + j) * width * d + (x * d + i)); - * pixels[index] = r; - * pixels[index+1] = g; - * pixels[index+2] = b; - * pixels[index+3] = a; - * } - * } - * ``` - *

While the above method is complex, it is flexible enough to work with - * any pixelDensity. Note that set() will automatically take care of - * setting all the appropriate values in pixels[] for a given (x, y) at - * any pixelDensity, but the performance may not be as fast when lots of - * modifications are made to the pixel array. - *

- * Before accessing this array, the data must loaded with the loadPixels() - * function. After the array data has been modified, the updatePixels() - * function must be run to update the changes. - *

- * Note that this is not a standard javascript array. This means that - * standard javascript functions such as slice() or - * arrayCopy() do not - * work.

- * - * @property {Number[]} pixels - * @example - *
- * - * let pink = color(255, 102, 204); - * loadPixels(); - * let d = pixelDensity(); - * let halfImage = 4 * (width * d) * (height / 2 * d); - * for (let i = 0; i < halfImage; i += 4) { - * pixels[i] = red(pink); - * pixels[i + 1] = green(pink); - * pixels[i + 2] = blue(pink); - * pixels[i + 3] = alpha(pink); - * } - * updatePixels(); - * - *
- * - * @alt - * top half of canvas pink, bottom grey - * - */ - p5.prototype.pixels = []; - - /** - * Copies a region of pixels from one image to another, using a specified - * blend mode to do the operation. - * - * @method blend - * @param {p5.Image} srcImage source image - * @param {Integer} sx X coordinate of the source's upper left corner - * @param {Integer} sy Y coordinate of the source's upper left corner - * @param {Integer} sw source image width - * @param {Integer} sh source image height - * @param {Integer} dx X coordinate of the destination's upper left corner - * @param {Integer} dy Y coordinate of the destination's upper left corner - * @param {Integer} dw destination image width - * @param {Integer} dh destination image height - * @param {Constant} blendMode the blend mode. either - * BLEND, DARKEST, LIGHTEST, DIFFERENCE, - * MULTIPLY, EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT, - * SOFT_LIGHT, DODGE, BURN, ADD or NORMAL. - * - * @example - *
- * let img0; - * let img1; - * - * function preload() { - * img0 = loadImage('assets/rockies.jpg'); - * img1 = loadImage('assets/bricks_third.jpg'); - * } - * - * function setup() { - * background(img0); - * image(img1, 0, 0); - * blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, LIGHTEST); - * } - *
- *
- * let img0; - * let img1; - * - * function preload() { - * img0 = loadImage('assets/rockies.jpg'); - * img1 = loadImage('assets/bricks_third.jpg'); - * } - * - * function setup() { - * background(img0); - * image(img1, 0, 0); - * blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, DARKEST); - * } - *
- *
- * let img0; - * let img1; - * - * function preload() { - * img0 = loadImage('assets/rockies.jpg'); - * img1 = loadImage('assets/bricks_third.jpg'); - * } - * - * function setup() { - * background(img0); - * image(img1, 0, 0); - * blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, ADD); - * } - *
- * - * @alt - * image of rocky mountains. Brick images on left and right. Right overexposed - * image of rockies. Brickwall images on left and right. Right mortar transparent - * image of rockies. Brickwall images on left and right. Right translucent - * - * - */ - /** - * @method blend - * @param {Integer} sx - * @param {Integer} sy - * @param {Integer} sw - * @param {Integer} sh - * @param {Integer} dx - * @param {Integer} dy - * @param {Integer} dw - * @param {Integer} dh - * @param {Constant} blendMode - */ - p5.prototype.blend = function() { - p5._validateParameters('blend', arguments); - if (this._renderer) { - this._renderer.blend.apply(this._renderer, arguments); - } else { - p5.Renderer2D.prototype.blend.apply(this, arguments); - } - }; - - /** - * Copies a region of the canvas to another region of the canvas - * and copies a region of pixels from an image used as the srcImg parameter - * into the canvas srcImage is specified this is used as the source. If - * the source and destination regions aren't the same size, it will - * automatically resize source pixels to fit the specified - * target region. - * - * @method copy - * @param {p5.Image|p5.Element} srcImage source image - * @param {Integer} sx X coordinate of the source's upper left corner - * @param {Integer} sy Y coordinate of the source's upper left corner - * @param {Integer} sw source image width - * @param {Integer} sh source image height - * @param {Integer} dx X coordinate of the destination's upper left corner - * @param {Integer} dy Y coordinate of the destination's upper left corner - * @param {Integer} dw destination image width - * @param {Integer} dh destination image height - * - * @example - *
- * let img; - * - * function preload() { - * img = loadImage('assets/rockies.jpg'); - * } - * - * function setup() { - * background(img); - * copy(img, 7, 22, 10, 10, 35, 25, 50, 50); - * stroke(255); - * noFill(); - * // Rectangle shows area being copied - * rect(7, 22, 10, 10); - * } - *
- * - * @alt - * image of rocky mountains. Brick images on left and right. Right overexposed - * image of rockies. Brickwall images on left and right. Right mortar transparent - * image of rockies. Brickwall images on left and right. Right translucent - * - */ - /** - * @method copy - * @param {Integer} sx - * @param {Integer} sy - * @param {Integer} sw - * @param {Integer} sh - * @param {Integer} dx - * @param {Integer} dy - * @param {Integer} dw - * @param {Integer} dh - */ - p5.prototype.copy = function() { - p5._validateParameters('copy', arguments); - p5.Renderer2D.prototype.copy.apply(this._renderer, arguments); - }; - - /** - * Applies a filter to the canvas. - *

- * - * The presets options are: - *

- * - * THRESHOLD - * Converts the image to black and white pixels depending if they are above or - * below the threshold defined by the level parameter. The parameter must be - * between 0.0 (black) and 1.0 (white). If no level is specified, 0.5 is used. - *

- * - * GRAY - * Converts any colors in the image to grayscale equivalents. No parameter - * is used. - *

- * - * OPAQUE - * Sets the alpha channel to entirely opaque. No parameter is used. - *

- * - * INVERT - * Sets each pixel to its inverse value. No parameter is used. - *

- * - * POSTERIZE - * Limits each channel of the image to the number of colors specified as the - * parameter. The parameter can be set to values between 2 and 255, but - * results are most noticeable in the lower ranges. - *

- * - * BLUR - * Executes a Gaussian blur with the level parameter specifying the extent - * of the blurring. If no parameter is used, the blur is equivalent to - * Gaussian blur of radius 1. Larger values increase the blur. - *

- * - * ERODE - * Reduces the light areas. No parameter is used. - *

- * - * DILATE - * Increases the light areas. No parameter is used. - * - * @method filter - * @param {Constant} filterType either THRESHOLD, GRAY, OPAQUE, INVERT, - * POSTERIZE, BLUR, ERODE, DILATE or BLUR. - * See Filters.js for docs on - * each available filter - * @param {Number} [filterParam] an optional parameter unique - * to each filter, see above - * - * @example - *
- * - * let img; - * function preload() { - * img = loadImage('assets/bricks.jpg'); - * } - * function setup() { - * image(img, 0, 0); - * filter(THRESHOLD); - * } - * - *
- * - *
- * - * let img; - * function preload() { - * img = loadImage('assets/bricks.jpg'); - * } - * function setup() { - * image(img, 0, 0); - * filter(GRAY); - * } - * - *
- * - *
- * - * let img; - * function preload() { - * img = loadImage('assets/bricks.jpg'); - * } - * function setup() { - * image(img, 0, 0); - * filter(OPAQUE); - * } - * - *
- * - *
- * - * let img; - * function preload() { - * img = loadImage('assets/bricks.jpg'); - * } - * function setup() { - * image(img, 0, 0); - * filter(INVERT); - * } - * - *
- * - *
- * - * let img; - * function preload() { - * img = loadImage('assets/bricks.jpg'); - * } - * function setup() { - * image(img, 0, 0); - * filter(POSTERIZE, 3); - * } - * - *
- * - *
- * - * let img; - * function preload() { - * img = loadImage('assets/bricks.jpg'); - * } - * function setup() { - * image(img, 0, 0); - * filter(DILATE); - * } - * - *
- * - *
- * - * let img; - * function preload() { - * img = loadImage('assets/bricks.jpg'); - * } - * function setup() { - * image(img, 0, 0); - * filter(BLUR, 3); - * } - * - *
- * - *
- * - * let img; - * function preload() { - * img = loadImage('assets/bricks.jpg'); - * } - * function setup() { - * image(img, 0, 0); - * filter(ERODE); - * } - * - *
- * - * @alt - * black and white image of a brick wall. - * greyscale image of a brickwall - * image of a brickwall - * jade colored image of a brickwall - * red and pink image of a brickwall - * image of a brickwall - * blurry image of a brickwall - * image of a brickwall - * image of a brickwall with less detail - * - */ - p5.prototype.filter = function(operation, value) { - p5._validateParameters('filter', arguments); - if (this.canvas !== undefined) { - Filters.apply(this.canvas, Filters[operation], value); - } else { - Filters.apply(this.elt, Filters[operation], value); - } - }; - - /** - * Get a region of pixels, or a single pixel, from the canvas. - * - * Returns an array of [R,G,B,A] values for any pixel or grabs a section of - * an image. If no parameters are specified, the entire image is returned. - * Use the x and y parameters to get the value of one pixel. Get a section of - * the display window by specifying additional w and h parameters. When - * getting an image, the x and y parameters define the coordinates for the - * upper-left corner of the image, regardless of the current imageMode(). - *

- * Getting the color of a single pixel with get(x, y) is easy, but not as fast - * as grabbing the data directly from pixels[]. The equivalent statement to - * get(x, y) using pixels[] with pixel density d is - * ```javascript - * let x, y, d; // set these to the coordinates - * let off = (y * width + x) * d * 4; - * let components = [ - * pixels[off], - * pixels[off + 1], - * pixels[off + 2], - * pixels[off + 3] - * ]; - * print(components); - * ``` - *

- * - * See the reference for pixels[] for more information. - * - * If you want to extract an array of colors or a subimage from an p5.Image object, - * take a look at p5.Image.get() - * - * @method get - * @param {Number} x x-coordinate of the pixel - * @param {Number} y y-coordinate of the pixel - * @param {Number} w width - * @param {Number} h height - * @return {p5.Image} the rectangle p5.Image - * @example - *
- * - * let img; - * function preload() { - * img = loadImage('assets/rockies.jpg'); - * } - * function setup() { - * image(img, 0, 0); - * let c = get(); - * image(c, width / 2, 0); - * } - * - *
- * - *
- * - * let img; - * function preload() { - * img = loadImage('assets/rockies.jpg'); - * } - * function setup() { - * image(img, 0, 0); - * let c = get(50, 90); - * fill(c); - * noStroke(); - * rect(25, 25, 50, 50); - * } - * - *
- * - * @alt - * 2 images of the rocky mountains, side-by-side - * Image of the rocky mountains with 50x50 green rect in center of canvas - * - */ - /** - * @method get - * @return {p5.Image} the whole p5.Image - */ - /** - * @method get - * @param {Number} x - * @param {Number} y - * @return {Number[]} color of pixel at x,y in array format [R, G, B, A] - */ - p5.prototype.get = function(x, y, w, h) { - p5._validateParameters('get', arguments); - return this._renderer.get.apply(this._renderer, arguments); - }; - - /** - * Loads the pixel data for the display window into the pixels[] array. This - * function must always be called before reading from or writing to pixels[]. - * Note that only changes made with set() or direct manipulation of pixels[] - * will occur. - * - * @method loadPixels - * @example - *
- * - * let img; - * function preload() { - * img = loadImage('assets/rockies.jpg'); - * } - * - * function setup() { - * image(img, 0, 0, width, height); - * let d = pixelDensity(); - * let halfImage = 4 * (width * d) * (height * d / 2); - * loadPixels(); - * for (let i = 0; i < halfImage; i++) { - * pixels[i + halfImage] = pixels[i]; - * } - * updatePixels(); - * } - * - *
- * - * @alt - * two images of the rocky mountains. one on top, one on bottom of canvas. - * - */ - p5.prototype.loadPixels = function() { - p5._validateParameters('loadPixels', arguments); - this._renderer.loadPixels(); - }; - - /** - *

Changes the color of any pixel, or writes an image directly to the - * display window.

- *

The x and y parameters specify the pixel to change and the c parameter - * specifies the color value. This can be a p5.Color object, or [R, G, B, A] - * pixel array. It can also be a single grayscale value. - * When setting an image, the x and y parameters define the coordinates for - * the upper-left corner of the image, regardless of the current imageMode(). - *

- *

- * After using set(), you must call updatePixels() for your changes to appear. - * This should be called once all pixels have been set, and must be called before - * calling .get() or drawing the image. - *

- *

Setting the color of a single pixel with set(x, y) is easy, but not as - * fast as putting the data directly into pixels[]. Setting the pixels[] - * values directly may be complicated when working with a retina display, - * but will perform better when lots of pixels need to be set directly on - * every loop.

- *

See the reference for pixels[] for more information.

- * - * @method set - * @param {Number} x x-coordinate of the pixel - * @param {Number} y y-coordinate of the pixel - * @param {Number|Number[]|Object} c insert a grayscale value | a pixel array | - * a p5.Color object | a p5.Image to copy - * @example - *
- * - * let black = color(0); - * set(30, 20, black); - * set(85, 20, black); - * set(85, 75, black); - * set(30, 75, black); - * updatePixels(); - * - *
- * - *
- * - * for (let i = 30; i < width - 15; i++) { - * for (let j = 20; j < height - 25; j++) { - * let c = color(204 - j, 153 - i, 0); - * set(i, j, c); - * } - * } - * updatePixels(); - * - *
- * - *
- * - * let img; - * function preload() { - * img = loadImage('assets/rockies.jpg'); - * } - * - * function setup() { - * set(0, 0, img); - * updatePixels(); - * line(0, 0, width, height); - * line(0, height, width, 0); - * } - * - *
- * - * @alt - * 4 black points in the shape of a square middle-right of canvas. - * square with orangey-brown gradient lightening at bottom right. - * image of the rocky mountains. with lines like an 'x' through the center. - */ - p5.prototype.set = function(x, y, imgOrCol) { - this._renderer.set(x, y, imgOrCol); - }; - /** - * Updates the display window with the data in the pixels[] array. - * Use in conjunction with loadPixels(). If you're only reading pixels from - * the array, there's no need to call updatePixels() โ€” updating is only - * necessary to apply changes. updatePixels() should be called anytime the - * pixels array is manipulated or set() is called, and only changes made with - * set() or direct changes to pixels[] will occur. - * - * @method updatePixels - * @param {Number} [x] x-coordinate of the upper-left corner of region - * to update - * @param {Number} [y] y-coordinate of the upper-left corner of region - * to update - * @param {Number} [w] width of region to update - * @param {Number} [h] height of region to update - * @example - *
- * - * let img; - * function preload() { - * img = loadImage('assets/rockies.jpg'); - * } - * - * function setup() { - * image(img, 0, 0, width, height); - * let d = pixelDensity(); - * let halfImage = 4 * (width * d) * (height * d / 2); - * loadPixels(); - * for (let i = 0; i < halfImage; i++) { - * pixels[i + halfImage] = pixels[i]; - * } - * updatePixels(); - * } - * - *
- * @alt - * two images of the rocky mountains. one on top, one on bottom of canvas. - */ - p5.prototype.updatePixels = function(x, y, w, h) { - p5._validateParameters('updatePixels', arguments); - // graceful fail - if loadPixels() or set() has not been called, pixel - // array will be empty, ignore call to updatePixels() - if (this.pixels.length === 0) { - return; - } - this._renderer.updatePixels(x, y, w, h); - }; - - module.exports = p5; - }, - { '../color/p5.Color': 16, '../core/main': 24, './filters': 43 } - ], - 48: [ - function(_dereq_, module, exports) { - /** - * @module IO - * @submodule Input - * @for p5 - * @requires core - */ - - /* globals Request: false */ - /* globals Headers: false */ - - 'use strict'; - function _typeof(obj) { - if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && - typeof Symbol === 'function' && - obj.constructor === Symbol && - obj !== Symbol.prototype - ? 'symbol' - : typeof obj; - }; - } - return _typeof(obj); - } - - var p5 = _dereq_('../core/main'); - _dereq_('whatwg-fetch'); - _dereq_('es6-promise').polyfill(); - var fetchJsonp = _dereq_('fetch-jsonp'); - _dereq_('../core/error_helpers'); - - /** - * Loads a JSON file from a file or a URL, and returns an Object. - * Note that even if the JSON file contains an Array, an Object will be - * returned with index numbers as keys. - * - * This method is asynchronous, meaning it may not finish before the next - * line in your sketch is executed. JSONP is supported via a polyfill and you - * can pass in as the second argument an object with definitions of the json - * callback following the syntax specified here. - * - * This method is suitable for fetching files up to size of 64MB. - * @method loadJSON - * @param {String} path name of the file or url to load - * @param {Object} [jsonpOptions] options object for jsonp related settings - * @param {String} [datatype] "json" or "jsonp" - * @param {function} [callback] function to be executed after - * loadJSON() completes, data is passed - * in as first argument - * @param {function} [errorCallback] function to be executed if - * there is an error, response is passed - * in as first argument - * @return {Object|Array} JSON data - * @example - * - *

Calling loadJSON() inside preload() guarantees to complete the - * operation before setup() and draw() are called.

- * - *
- * // Examples use USGS Earthquake API: - * // https://earthquake.usgs.gov/fdsnws/event/1/#methods - * let earthquakes; - * function preload() { - * // Get the most recent earthquake in the database - * let url = - 'https://earthquake.usgs.gov/earthquakes/feed/v1.0/' + - * 'summary/all_day.geojson'; - * earthquakes = loadJSON(url); - * } - * - * function setup() { - * noLoop(); - * } - * - * function draw() { - * background(200); - * // Get the magnitude and name of the earthquake out of the loaded JSON - * let earthquakeMag = earthquakes.features[0].properties.mag; - * let earthquakeName = earthquakes.features[0].properties.place; - * ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10); - * textAlign(CENTER); - * text(earthquakeName, 0, height - 30, width, 30); - * } - *
- * - * - *

Outside of preload(), you may supply a callback function to handle the - * object:

- *
- * function setup() { - * noLoop(); - * let url = - 'https://earthquake.usgs.gov/earthquakes/feed/v1.0/' + - * 'summary/all_day.geojson'; - * loadJSON(url, drawEarthquake); - * } - * - * function draw() { - * background(200); - * } - * - * function drawEarthquake(earthquakes) { - * // Get the magnitude and name of the earthquake out of the loaded JSON - * let earthquakeMag = earthquakes.features[0].properties.mag; - * let earthquakeName = earthquakes.features[0].properties.place; - * ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10); - * textAlign(CENTER); - * text(earthquakeName, 0, height - 30, width, 30); - * } - *
- * - * @alt - * 50x50 ellipse that changes from black to white depending on the current humidity - * 50x50 ellipse that changes from black to white depending on the current humidity - * - */ - /** - * @method loadJSON - * @param {String} path - * @param {String} datatype - * @param {function} [callback] - * @param {function} [errorCallback] - * @return {Object|Array} - */ - /** - * @method loadJSON - * @param {String} path - * @param {function} callback - * @param {function} [errorCallback] - * @return {Object|Array} - */ - p5.prototype.loadJSON = function() { - p5._validateParameters('loadJSON', arguments); - var path = arguments[0]; - var callback; - var errorCallback; - var options; - - var ret = {}; // object needed for preload - var t = 'json'; - - // check for explicit data type argument - for (var i = 1; i < arguments.length; i++) { - var arg = arguments[i]; - if (typeof arg === 'string') { - if (arg === 'jsonp' || arg === 'json') { - t = arg; - } - } else if (typeof arg === 'function') { - if (!callback) { - callback = arg; - } else { - errorCallback = arg; - } - } else if ( - _typeof(arg) === 'object' && - (arg.hasOwnProperty('jsonpCallback') || - arg.hasOwnProperty('jsonpCallbackFunction')) - ) { - t = 'jsonp'; - options = arg; - } - } - - var self = this; - this.httpDo( - path, - 'GET', - options, - t, - function(resp) { - for (var k in resp) { - ret[k] = resp[k]; - } - if (typeof callback !== 'undefined') { - callback(resp); - } - - self._decrementPreload(); - }, - function(err) { - // Error handling - p5._friendlyFileLoadError(5, path); - - if (errorCallback) { - errorCallback(err); - } else { - throw err; - } - } - ); - - return ret; - }; - - /** - * Reads the contents of a file and creates a String array of its individual - * lines. If the name of the file is used as the parameter, as in the above - * example, the file must be located in the sketch directory/folder. - *

- * Alternatively, the file maybe be loaded from anywhere on the local - * computer using an absolute path (something that starts with / on Unix and - * Linux, or a drive letter on Windows), or the filename parameter can be a - * URL for a file found on a network. - *

- * This method is asynchronous, meaning it may not finish before the next - * line in your sketch is executed. - * - * This method is suitable for fetching files up to size of 64MB. - * @method loadStrings - * @param {String} filename name of the file or url to load - * @param {function} [callback] function to be executed after loadStrings() - * completes, Array is passed in as first - * argument - * @param {function} [errorCallback] function to be executed if - * there is an error, response is passed - * in as first argument - * @return {String[]} Array of Strings - * @example - * - *

Calling loadStrings() inside preload() guarantees to complete the - * operation before setup() and draw() are called.

- * - *
- * let result; - * function preload() { - * result = loadStrings('assets/test.txt'); - * } - - * function setup() { - * background(200); - * let ind = floor(random(result.length)); - * text(result[ind], 10, 10, 80, 80); - * } - *
- * - *

Outside of preload(), you may supply a callback function to handle the - * object:

- * - *
- * function setup() { - * loadStrings('assets/test.txt', pickString); - * } - * - * function pickString(result) { - * background(200); - * let ind = floor(random(result.length)); - * text(result[ind], 10, 10, 80, 80); - * } - *
- * - * @alt - * randomly generated text from a file, for example "i smell like butter" - * randomly generated text from a file, for example "i have three feet" - * - */ - p5.prototype.loadStrings = function() { - p5._validateParameters('loadStrings', arguments); - - var ret = []; - var callback, errorCallback; - - for (var i = 1; i < arguments.length; i++) { - var arg = arguments[i]; - if (typeof arg === 'function') { - if (typeof callback === 'undefined') { - callback = arg; - } else if (typeof errorCallback === 'undefined') { - errorCallback = arg; - } - } - } - - var self = this; - p5.prototype.httpDo.call( - this, - arguments[0], - 'GET', - 'text', - function(data) { - // split lines handling mac/windows/linux endings - var lines = data - .replace(/\r\n/g, '\r') - .replace(/\n/g, '\r') - .split(/\r/); - Array.prototype.push.apply(ret, lines); - - if (typeof callback !== 'undefined') { - callback(ret); - } - - self._decrementPreload(); - }, - function(err) { - // Error handling - p5._friendlyFileLoadError(3, arguments[0]); - - if (errorCallback) { - errorCallback(err); - } else { - throw err; - } - } - ); - - return ret; - }; - - /** - *

Reads the contents of a file or URL and creates a p5.Table object with - * its values. If a file is specified, it must be located in the sketch's - * "data" folder. The filename parameter can also be a URL to a file found - * online. By default, the file is assumed to be comma-separated (in CSV - * format). Table only looks for a header row if the 'header' option is - * included.

- * - *

Possible options include: - *

    - *
  • csv - parse the table as comma-separated values
  • - *
  • tsv - parse the table as tab-separated values
  • - *
  • header - this table has a header (title) row
  • - *
- *

- * - *

When passing in multiple options, pass them in as separate parameters, - * seperated by commas. For example: - *

- * - * loadTable('my_csv_file.csv', 'csv', 'header'); - * - *

- * - *

All files loaded and saved use UTF-8 encoding.

- * - *

This method is asynchronous, meaning it may not finish before the next - * line in your sketch is executed. Calling loadTable() inside preload() - * guarantees to complete the operation before setup() and draw() are called. - *

Outside of preload(), you may supply a callback function to handle the - * object:

- *

- * - * This method is suitable for fetching files up to size of 64MB. - * @method loadTable - * @param {String} filename name of the file or URL to load - * @param {String} options "header" "csv" "tsv" - * @param {function} [callback] function to be executed after - * loadTable() completes. On success, the - * Table object is passed in as the - * first argument. - * @param {function} [errorCallback] function to be executed if - * there is an error, response is passed - * in as first argument - * @return {Object} Table object containing data - * - * @example - *
- * - * // Given the following CSV file called "mammals.csv" - * // located in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * //the file can be remote - * //table = loadTable("http://p5js.org/reference/assets/mammals.csv", - * // "csv", "header"); - * } - * - * function setup() { - * //count the columns - * print(table.getRowCount() + ' total rows in table'); - * print(table.getColumnCount() + ' total columns in table'); - * - * print(table.getColumn('name')); - * //["Goat", "Leopard", "Zebra"] - * - * //cycle through the table - * for (let r = 0; r < table.getRowCount(); r++) - * for (let c = 0; c < table.getColumnCount(); c++) { - * print(table.getString(r, c)); - * } - * } - * - *
- * - * @alt - * randomly generated text from a file, for example "i smell like butter" - * randomly generated text from a file, for example "i have three feet" - * - */ - /** - * @method loadTable - * @param {String} filename - * @param {function} [callback] - * @param {function} [errorCallback] - * @return {Object} - */ - p5.prototype.loadTable = function(path) { - var callback; - var errorCallback; - var options = []; - var header = false; - var ext = path.substring(path.lastIndexOf('.') + 1, path.length); - var sep = ','; - var separatorSet = false; - - if (ext === 'tsv') { - //Only need to check extension is tsv because csv is default - sep = '\t'; - } - - for (var i = 1; i < arguments.length; i++) { - if (typeof arguments[i] === 'function') { - if (typeof callback === 'undefined') { - callback = arguments[i]; - } else if (typeof errorCallback === 'undefined') { - errorCallback = arguments[i]; - } - } else if (typeof arguments[i] === 'string') { - options.push(arguments[i]); - if (arguments[i] === 'header') { - header = true; - } - if (arguments[i] === 'csv') { - if (separatorSet) { - throw new Error('Cannot set multiple separator types.'); - } else { - sep = ','; - separatorSet = true; - } - } else if (arguments[i] === 'tsv') { - if (separatorSet) { - throw new Error('Cannot set multiple separator types.'); - } else { - sep = '\t'; - separatorSet = true; - } - } - } - } - - var t = new p5.Table(); - - var self = this; - this.httpDo( - path, - 'GET', - 'table', - function(resp) { - var state = {}; - - // define constants - var PRE_TOKEN = 0, - MID_TOKEN = 1, - POST_TOKEN = 2, - POST_RECORD = 4; - - var QUOTE = '"', - CR = '\r', - LF = '\n'; - - var records = []; - var offset = 0; - var currentRecord = null; - var currentChar; - - var tokenBegin = function tokenBegin() { - state.currentState = PRE_TOKEN; - state.token = ''; - }; - - var tokenEnd = function tokenEnd() { - currentRecord.push(state.token); - tokenBegin(); - }; - - var recordBegin = function recordBegin() { - state.escaped = false; - currentRecord = []; - tokenBegin(); - }; - - var recordEnd = function recordEnd() { - state.currentState = POST_RECORD; - records.push(currentRecord); - currentRecord = null; - }; - - for (;;) { - currentChar = resp[offset++]; - - // EOF - if (currentChar == null) { - if (state.escaped) { - throw new Error('Unclosed quote in file.'); - } - if (currentRecord) { - tokenEnd(); - recordEnd(); - break; - } - } - if (currentRecord === null) { - recordBegin(); - } - - // Handle opening quote - if (state.currentState === PRE_TOKEN) { - if (currentChar === QUOTE) { - state.escaped = true; - state.currentState = MID_TOKEN; - continue; - } - state.currentState = MID_TOKEN; - } - - // mid-token and escaped, look for sequences and end quote - if (state.currentState === MID_TOKEN && state.escaped) { - if (currentChar === QUOTE) { - if (resp[offset] === QUOTE) { - state.token += QUOTE; - offset++; - } else { - state.escaped = false; - state.currentState = POST_TOKEN; - } - } else if (currentChar === CR) { - continue; - } else { - state.token += currentChar; - } - continue; - } - - // fall-through: mid-token or post-token, not escaped - if (currentChar === CR) { - if (resp[offset] === LF) { - offset++; - } - tokenEnd(); - recordEnd(); - } else if (currentChar === LF) { - tokenEnd(); - recordEnd(); - } else if (currentChar === sep) { - tokenEnd(); - } else if (state.currentState === MID_TOKEN) { - state.token += currentChar; - } - } - - // set up column names - if (header) { - t.columns = records.shift(); - } else { - for (i = 0; i < records[0].length; i++) { - t.columns[i] = 'null'; - } - } - var row; - for (i = 0; i < records.length; i++) { - //Handles row of 'undefined' at end of some CSVs - if (records[i].length === 1) { - if (records[i][0] === 'undefined' || records[i][0] === '') { - continue; - } - } - row = new p5.TableRow(); - row.arr = records[i]; - row.obj = makeObject(records[i], t.columns); - t.addRow(row); - } - if (typeof callback === 'function') { - callback(t); - } - - self._decrementPreload(); - }, - function(err) { - // Error handling - p5._friendlyFileLoadError(2, path); - - if (errorCallback) { - errorCallback(err); - } else { - console.error(err); - } - } - ); - - return t; - }; - - // helper function to turn a row into a JSON object - function makeObject(row, headers) { - var ret = {}; - headers = headers || []; - if (typeof headers === 'undefined') { - for (var j = 0; j < row.length; j++) { - headers[j.toString()] = j; - } - } - for (var i = 0; i < headers.length; i++) { - var key = headers[i]; - var val = row[i]; - ret[key] = val; - } - return ret; - } - - /** - * Reads the contents of a file and creates an XML object with its values. - * If the name of the file is used as the parameter, as in the above example, - * the file must be located in the sketch directory/folder. - * - * Alternatively, the file maybe be loaded from anywhere on the local - * computer using an absolute path (something that starts with / on Unix and - * Linux, or a drive letter on Windows), or the filename parameter can be a - * URL for a file found on a network. - * - * This method is asynchronous, meaning it may not finish before the next - * line in your sketch is executed. Calling loadXML() inside preload() - * guarantees to complete the operation before setup() and draw() are called. - * - * Outside of preload(), you may supply a callback function to handle the - * object. - * - * This method is suitable for fetching files up to size of 64MB. - * @method loadXML - * @param {String} filename name of the file or URL to load - * @param {function} [callback] function to be executed after loadXML() - * completes, XML object is passed in as - * first argument - * @param {function} [errorCallback] function to be executed if - * there is an error, response is passed - * in as first argument - * @return {Object} XML object containing data - * @example - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * let children = xml.getChildren('animal'); - * - * for (let i = 0; i < children.length; i++) { - * let id = children[i].getNum('id'); - * let coloring = children[i].getString('species'); - * let name = children[i].getContent(); - * print(id + ', ' + coloring + ', ' + name); - * } - * } - * - * // Sketch prints: - * // 0, Capra hircus, Goat - * // 1, Panthera pardus, Leopard - * // 2, Equus zebra, Zebra - *
- * - * @alt - * no image displayed - * - */ - p5.prototype.loadXML = function() { - var ret = new p5.XML(); - var callback, errorCallback; - - for (var i = 1; i < arguments.length; i++) { - var arg = arguments[i]; - if (typeof arg === 'function') { - if (typeof callback === 'undefined') { - callback = arg; - } else if (typeof errorCallback === 'undefined') { - errorCallback = arg; - } - } - } - - var self = this; - this.httpDo( - arguments[0], - 'GET', - 'xml', - function(xml) { - for (var key in xml) { - ret[key] = xml[key]; - } - if (typeof callback !== 'undefined') { - callback(ret); - } - - self._decrementPreload(); - }, - function(err) { - // Error handling - p5._friendlyFileLoadError(1, arguments[0]); - - if (errorCallback) { - errorCallback(err); - } else { - throw err; - } - } - ); - - return ret; - }; - - /** - * This method is suitable for fetching files up to size of 64MB. - * @method loadBytes - * @param {string} file name of the file or URL to load - * @param {function} [callback] function to be executed after loadBytes() - * completes - * @param {function} [errorCallback] function to be executed if there - * is an error - * @returns {Object} an object whose 'bytes' property will be the loaded buffer - * - * @example - *
- * let data; - * - * function preload() { - * data = loadBytes('assets/mammals.xml'); - * } - * - * function setup() { - * for (let i = 0; i < 5; i++) { - * console.log(data.bytes[i].toString(16)); - * } - * } - *
- * - * @alt - * no image displayed - * - */ - p5.prototype.loadBytes = function(file, callback, errorCallback) { - var ret = {}; - - var self = this; - this.httpDo( - file, - 'GET', - 'arrayBuffer', - function(arrayBuffer) { - ret.bytes = new Uint8Array(arrayBuffer); - - if (typeof callback === 'function') { - callback(ret); - } - - self._decrementPreload(); - }, - function(err) { - // Error handling - p5._friendlyFileLoadError(6, file); - - if (errorCallback) { - errorCallback(err); - } else { - throw err; - } - } - ); - - return ret; - }; - - /** - * Method for executing an HTTP GET request. If data type is not specified, - * p5 will try to guess based on the URL, defaulting to text. This is equivalent to - * calling httpDo(path, 'GET'). The 'binary' datatype will return - * a Blob object, and the 'arrayBuffer' datatype will return an ArrayBuffer - * which can be used to initialize typed arrays (such as Uint8Array). - * - * @method httpGet - * @param {String} path name of the file or url to load - * @param {String} [datatype] "json", "jsonp", "binary", "arrayBuffer", - * "xml", or "text" - * @param {Object|Boolean} [data] param data passed sent with request - * @param {function} [callback] function to be executed after - * httpGet() completes, data is passed in - * as first argument - * @param {function} [errorCallback] function to be executed if - * there is an error, response is passed - * in as first argument - * @return {Promise} A promise that resolves with the data when the operation - * completes successfully or rejects with the error after - * one occurs. - * @example - *
- * // Examples use USGS Earthquake API: - * // https://earthquake.usgs.gov/fdsnws/event/1/#methods - * let earthquakes; - * function preload() { - * // Get the most recent earthquake in the database - * let url = - 'https://earthquake.usgs.gov/fdsnws/event/1/query?' + - * 'format=geojson&limit=1&orderby=time'; - * httpGet(url, 'jsonp', false, function(response) { - * // when the HTTP request completes, populate the variable that holds the - * // earthquake data used in the visualization. - * earthquakes = response; - * }); - * } - * - * function draw() { - * if (!earthquakes) { - * // Wait until the earthquake data has loaded before drawing. - * return; - * } - * background(200); - * // Get the magnitude and name of the earthquake out of the loaded JSON - * let earthquakeMag = earthquakes.features[0].properties.mag; - * let earthquakeName = earthquakes.features[0].properties.place; - * ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10); - * textAlign(CENTER); - * text(earthquakeName, 0, height - 30, width, 30); - * noLoop(); - * } - *
- */ - /** - * @method httpGet - * @param {String} path - * @param {Object|Boolean} data - * @param {function} [callback] - * @param {function} [errorCallback] - * @return {Promise} - */ - /** - * @method httpGet - * @param {String} path - * @param {function} callback - * @param {function} [errorCallback] - * @return {Promise} - */ - p5.prototype.httpGet = function() { - p5._validateParameters('httpGet', arguments); - - var args = Array.prototype.slice.call(arguments); - args.splice(1, 0, 'GET'); - return p5.prototype.httpDo.apply(this, args); - }; - - /** - * Method for executing an HTTP POST request. If data type is not specified, - * p5 will try to guess based on the URL, defaulting to text. This is equivalent to - * calling httpDo(path, 'POST'). - * - * @method httpPost - * @param {String} path name of the file or url to load - * @param {String} [datatype] "json", "jsonp", "xml", or "text". - * If omitted, httpPost() will guess. - * @param {Object|Boolean} [data] param data passed sent with request - * @param {function} [callback] function to be executed after - * httpPost() completes, data is passed in - * as first argument - * @param {function} [errorCallback] function to be executed if - * there is an error, response is passed - * in as first argument - * @return {Promise} A promise that resolves with the data when the operation - * completes successfully or rejects with the error after - * one occurs. - * - * @example - *
- * - * // Examples use jsonplaceholder.typicode.com for a Mock Data API - * - * let url = 'https://jsonplaceholder.typicode.com/posts'; - * let postData = { userId: 1, title: 'p5 Clicked!', body: 'p5.js is way cool.' }; - * - * function setup() { - * createCanvas(800, 800); - * } - * - * function mousePressed() { - * // Pick new random color values - * let r = random(255); - * let g = random(255); - * let b = random(255); - * - * httpPost(url, 'json', postData, function(result) { - * strokeWeight(2); - * stroke(r, g, b); - * fill(r, g, b, 127); - * ellipse(mouseX, mouseY, 200, 200); - * text(result.body, mouseX, mouseY); - * }); - * } - * - *
- * - * - *
- * let url = 'https://invalidURL'; // A bad URL that will cause errors - * let postData = { title: 'p5 Clicked!', body: 'p5.js is way cool.' }; - * - * function setup() { - * createCanvas(800, 800); - * } - * - * function mousePressed() { - * // Pick new random color values - * let r = random(255); - * let g = random(255); - * let b = random(255); - * - * httpPost( - * url, - * 'json', - * postData, - * function(result) { - * // ... won't be called - * }, - * function(error) { - * strokeWeight(2); - * stroke(r, g, b); - * fill(r, g, b, 127); - * text(error.toString(), mouseX, mouseY); - * } - * ); - * } - *
- * - */ - /** - * @method httpPost - * @param {String} path - * @param {Object|Boolean} data - * @param {function} [callback] - * @param {function} [errorCallback] - * @return {Promise} - */ - /** - * @method httpPost - * @param {String} path - * @param {function} callback - * @param {function} [errorCallback] - * @return {Promise} - */ - p5.prototype.httpPost = function() { - p5._validateParameters('httpPost', arguments); - - var args = Array.prototype.slice.call(arguments); - args.splice(1, 0, 'POST'); - return p5.prototype.httpDo.apply(this, args); - }; - - /** - * Method for executing an HTTP request. If data type is not specified, - * p5 will try to guess based on the URL, defaulting to text.

- * For more advanced use, you may also pass in the path as the first argument - * and a object as the second argument, the signature follows the one specified - * in the Fetch API specification. - * This method is suitable for fetching files up to size of 64MB when "GET" is used. - * - * @method httpDo - * @param {String} path name of the file or url to load - * @param {String} [method] either "GET", "POST", or "PUT", - * defaults to "GET" - * @param {String} [datatype] "json", "jsonp", "xml", or "text" - * @param {Object} [data] param data passed sent with request - * @param {function} [callback] function to be executed after - * httpGet() completes, data is passed in - * as first argument - * @param {function} [errorCallback] function to be executed if - * there is an error, response is passed - * in as first argument - * @return {Promise} A promise that resolves with the data when the operation - * completes successfully or rejects with the error after - * one occurs. - * - * @example - *
- * - * // Examples use USGS Earthquake API: - * // https://earthquake.usgs.gov/fdsnws/event/1/#methods - * - * // displays an animation of all USGS earthquakes - * let earthquakes; - * let eqFeatureIndex = 0; - * - * function preload() { - * let url = 'https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson'; - * httpDo( - * url, - * { - * method: 'GET', - * // Other Request options, like special headers for apis - * headers: { authorization: 'Bearer secretKey' } - * }, - * function(res) { - * earthquakes = res; - * } - * ); - * } - * - * function draw() { - * // wait until the data is loaded - * if (!earthquakes || !earthquakes.features[eqFeatureIndex]) { - * return; - * } - * clear(); - * - * let feature = earthquakes.features[eqFeatureIndex]; - * let mag = feature.properties.mag; - * let rad = mag / 11 * ((width + height) / 2); - * fill(255, 0, 0, 100); - * ellipse(width / 2 + random(-2, 2), height / 2 + random(-2, 2), rad, rad); - * - * if (eqFeatureIndex >= earthquakes.features.length) { - * eqFeatureIndex = 0; - * } else { - * eqFeatureIndex += 1; - * } - * } - * - *
- */ - /** - * @method httpDo - * @param {String} path - * @param {Object} options Request object options as documented in the - * "fetch" API - * reference - * @param {function} [callback] - * @param {function} [errorCallback] - * @return {Promise} - */ - p5.prototype.httpDo = function() { - var type; - var callback; - var errorCallback; - var request; - var promise; - var jsonpOptions = {}; - var cbCount = 0; - var contentType = 'text/plain'; - // Trim the callbacks off the end to get an idea of how many arguments are passed - for (var i = arguments.length - 1; i > 0; i--) { - if (typeof arguments[i] === 'function') { - cbCount++; - } else { - break; - } - } - // The number of arguments minus callbacks - var argsCount = arguments.length - cbCount; - var path = arguments[0]; - if ( - argsCount === 2 && - typeof path === 'string' && - _typeof(arguments[1]) === 'object' - ) { - // Intended for more advanced use, pass in Request parameters directly - request = new Request(path, arguments[1]); - callback = arguments[2]; - errorCallback = arguments[3]; - } else { - // Provided with arguments - var method = 'GET'; - var data; - - for (var j = 1; j < arguments.length; j++) { - var a = arguments[j]; - if (typeof a === 'string') { - if (a === 'GET' || a === 'POST' || a === 'PUT' || a === 'DELETE') { - method = a; - } else if ( - a === 'json' || - a === 'jsonp' || - a === 'binary' || - a === 'arrayBuffer' || - a === 'xml' || - a === 'text' || - a === 'table' - ) { - type = a; - } else { - data = a; - } - } else if (typeof a === 'number') { - data = a.toString(); - } else if (_typeof(a) === 'object') { - if ( - a.hasOwnProperty('jsonpCallback') || - a.hasOwnProperty('jsonpCallbackFunction') - ) { - for (var attr in a) { - jsonpOptions[attr] = a[attr]; - } - } else if (a instanceof p5.XML) { - data = a.serialize(); - contentType = 'application/xml'; - } else { - data = JSON.stringify(a); - contentType = 'application/json'; - } - } else if (typeof a === 'function') { - if (!callback) { - callback = a; - } else { - errorCallback = a; - } - } - } - - request = new Request(path, { - method: method, - mode: 'cors', - body: data, - headers: new Headers({ - 'Content-Type': contentType - }) - }); - } - // do some sort of smart type checking - if (!type) { - if (path.indexOf('json') !== -1) { - type = 'json'; - } else if (path.indexOf('xml') !== -1) { - type = 'xml'; - } else { - type = 'text'; - } - } - - if (type === 'jsonp') { - promise = fetchJsonp(path, jsonpOptions); - } else { - promise = fetch(request); - } - promise = promise.then(function(res) { - if (!res.ok) { - var err = new Error(res.body); - err.status = res.status; - err.ok = false; - throw err; - } else { - var fileSize = 0; - if (type !== 'jsonp') { - fileSize = res.headers.get('content-length'); - } - if (fileSize && fileSize > 64000000) { - p5._friendlyFileLoadError(7, path); - } - switch (type) { - case 'json': - case 'jsonp': - return res.json(); - case 'binary': - return res.blob(); - case 'arrayBuffer': - return res.arrayBuffer(); - case 'xml': - return res.text().then(function(text) { - var parser = new DOMParser(); - var xml = parser.parseFromString(text, 'text/xml'); - return new p5.XML(xml.documentElement); - }); - default: - return res.text(); - } - } - }); - promise.then(callback || function() {}); - promise.catch(errorCallback || console.error); - return promise; - }; - - /** - * @module IO - * @submodule Output - * @for p5 - */ - - window.URL = window.URL || window.webkitURL; - - // private array of p5.PrintWriter objects - p5.prototype._pWriters = []; - - /** - * @method createWriter - * @param {String} name name of the file to be created - * @param {String} [extension] - * @return {p5.PrintWriter} - * @example - *
- * - * function setup() { - * createCanvas(100, 100); - * background(200); - * text('click here to save', 10, 10, 70, 80); - * } - * - * function mousePressed() { - * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { - * var writer = createWriter('squares.txt'); - * for (let i = 0; i < 10; i++) { - * writer.print(i * i); - * } - * writer.close(); - * writer.clear(); - * } - * } - * - *
- */ - p5.prototype.createWriter = function(name, extension) { - var newPW; - // check that it doesn't already exist - for (var i in p5.prototype._pWriters) { - if (p5.prototype._pWriters[i].name === name) { - // if a p5.PrintWriter w/ this name already exists... - // return p5.prototype._pWriters[i]; // return it w/ contents intact. - // or, could return a new, empty one with a unique name: - newPW = new p5.PrintWriter(name + this.millis(), extension); - p5.prototype._pWriters.push(newPW); - return newPW; - } - } - newPW = new p5.PrintWriter(name, extension); - p5.prototype._pWriters.push(newPW); - return newPW; - }; - - /** - * @class p5.PrintWriter - * @param {String} filename - * @param {String} [extension] - */ - p5.PrintWriter = function(filename, extension) { - var self = this; - this.name = filename; - this.content = ''; - //Changed to write because it was being overloaded by function below. - /** - * Writes data to the PrintWriter stream - * @method write - * @param {Array} data all data to be written by the PrintWriter - * @example - *
- * - * // creates a file called 'newFile.txt' - * let writer = createWriter('newFile.txt'); - * // write 'Hello world!'' to the file - * writer.write(['Hello world!']); - * // close the PrintWriter and save the file - * writer.close(); - * - *
- *
- * - * // creates a file called 'newFile2.txt' - * let writer = createWriter('newFile2.txt'); - * // write 'apples,bananas,123' to the file - * writer.write(['apples', 'bananas', 123]); - * // close the PrintWriter and save the file - * writer.close(); - * - *
- *
- * - * // creates a file called 'newFile3.txt' - * let writer = createWriter('newFile3.txt'); - * // write 'My name is: Teddy' to the file - * writer.write('My name is:'); - * writer.write(' Teddy'); - * // close the PrintWriter and save the file - * writer.close(); - * - *
- */ - this.write = function(data) { - this.content += data; - }; - /** - * Writes data to the PrintWriter stream, and adds a new line at the end - * @method print - * @param {Array} data all data to be printed by the PrintWriter - * @example - *
- * - * // creates a file called 'newFile.txt' - * let writer = createWriter('newFile.txt'); - * // creates a file containing - * // My name is: - * // Teddy - * writer.print('My name is:'); - * writer.print('Teddy'); - * // close the PrintWriter and save the file - * writer.close(); - * - *
- *
- * - * let writer; - * - * function setup() { - * createCanvas(400, 400); - * // create a PrintWriter - * writer = createWriter('newFile.txt'); - * } - * - * function draw() { - * // print all mouseX and mouseY coordinates to the stream - * writer.print([mouseX, mouseY]); - * } - * - * function mouseClicked() { - * // close the PrintWriter and save the file - * writer.close(); - * } - * - *
- */ - this.print = function(data) { - this.content += data + '\n'; - }; - /** - * Clears the data already written to the PrintWriter object - * @method clear - * @example - *
- * // create writer object - * let writer = createWriter('newFile.txt'); - * writer.write(['clear me']); - * // clear writer object here - * writer.clear(); - * // close writer - * writer.close(); - *
- * - */ - this.clear = function() { - this.content = ''; - }; - /** - * Closes the PrintWriter - * @method close - * @example - *
- * - * // create a file called 'newFile.txt' - * let writer = createWriter('newFile.txt'); - * // close the PrintWriter and save the file - * writer.close(); - * - *
- *
- * - * // create a file called 'newFile2.txt' - * let writer = createWriter('newFile2.txt'); - * // write some data to the file - * writer.write([100, 101, 102]); - * // close the PrintWriter and save the file - * writer.close(); - * - *
- */ - this.close = function() { - // convert String to Array for the writeFile Blob - var arr = []; - arr.push(this.content); - p5.prototype.writeFile(arr, filename, extension); - // remove from _pWriters array and delete self - for (var i in p5.prototype._pWriters) { - if (p5.prototype._pWriters[i].name === this.name) { - // remove from _pWriters array - p5.prototype._pWriters.splice(i, 1); - } - } - self.clear(); - self = {}; - }; - }; - - /** - * @module IO - * @submodule Output - * @for p5 - */ - - // object, filename, options --> saveJSON, saveStrings, - // filename, [extension] [canvas] --> saveImage - - /** - *

Save an image, text, json, csv, wav, or html. Prompts download to - * the client's computer. Note that it is not recommended to call save() - * within draw if it's looping, as the save() function will open a new save - * dialog every frame.

- *

The default behavior is to save the canvas as an image. You can - * optionally specify a filename. - * For example:

- *

-           * save();
-           * save('myCanvas.jpg'); // save a specific canvas with a filename
-           * 
- * - *

Alternately, the first parameter can be a pointer to a canvas - * p5.Element, an Array of Strings, - * an Array of JSON, a JSON object, a p5.Table, a p5.Image, or a - * p5.SoundFile (requires p5.sound). The second parameter is a filename - * (including extension). The third parameter is for options specific - * to this type of object. This method will save a file that fits the - * given parameters. For example:

- * - *

-           * // Saves canvas as an image
-           * save('myCanvas.jpg');
-           *
-           * // Saves pImage as a png image
-           * let img = createImage(10, 10);
-           * save(img, 'my.png');
-           *
-           * // Saves canvas as an image
-           * let cnv = createCanvas(100, 100);
-           * save(cnv, 'myCanvas.jpg');
-           *
-           * // Saves p5.Renderer object as an image
-           * let gb = createGraphics(100, 100);
-           * save(gb, 'myGraphics.jpg');
-           *
-           * let myTable = new p5.Table();
-           *
-           * // Saves table as html file
-           * save(myTable, 'myTable.html');
-           *
-           * // Comma Separated Values
-           * save(myTable, 'myTable.csv');
-           *
-           * // Tab Separated Values
-           * save(myTable, 'myTable.tsv');
-           *
-           * let myJSON = { a: 1, b: true };
-           *
-           * // Saves pretty JSON
-           * save(myJSON, 'my.json');
-           *
-           * // Optimizes JSON filesize
-           * save(myJSON, 'my.json', true);
-           *
-           * // Saves array of strings to a text file with line breaks after each item
-           * let arrayOfStrings = ['a', 'b'];
-           * save(arrayOfStrings, 'my.txt');
-           * 
- * - * @method save - * @param {Object|String} [objectOrFilename] If filename is provided, will - * save canvas as an image with - * either png or jpg extension - * depending on the filename. - * If object is provided, will - * save depending on the object - * and filename (see examples - * above). - * @param {String} [filename] If an object is provided as the first - * parameter, then the second parameter - * indicates the filename, - * and should include an appropriate - * file extension (see examples above). - * @param {Boolean|String} [options] Additional options depend on - * filetype. For example, when saving JSON, - * true indicates that the - * output will be optimized for filesize, - * rather than readability. - */ - p5.prototype.save = function(object, _filename, _options) { - // parse the arguments and figure out which things we are saving - var args = arguments; - // ================================================= - // OPTION 1: saveCanvas... - - // if no arguments are provided, save canvas - var cnv = this._curElement ? this._curElement.elt : this.elt; - if (args.length === 0) { - p5.prototype.saveCanvas(cnv); - return; - } else if (args[0] instanceof p5.Renderer || args[0] instanceof p5.Graphics) { - // otherwise, parse the arguments - - // if first param is a p5Graphics, then saveCanvas - p5.prototype.saveCanvas(args[0].elt, args[1], args[2]); - return; - } else if (args.length === 1 && typeof args[0] === 'string') { - // if 1st param is String and only one arg, assume it is canvas filename - p5.prototype.saveCanvas(cnv, args[0]); - } else { - // ================================================= - // OPTION 2: extension clarifies saveStrings vs. saveJSON - var extension = _checkFileExtension(args[1], args[2])[1]; - switch (extension) { - case 'json': - p5.prototype.saveJSON(args[0], args[1], args[2]); - return; - case 'txt': - p5.prototype.saveStrings(args[0], args[1], args[2]); - return; - // ================================================= - // OPTION 3: decide based on object... - default: - if (args[0] instanceof Array) { - p5.prototype.saveStrings(args[0], args[1], args[2]); - } else if (args[0] instanceof p5.Table) { - p5.prototype.saveTable(args[0], args[1], args[2]); - } else if (args[0] instanceof p5.Image) { - p5.prototype.saveCanvas(args[0].canvas, args[1]); - } else if (args[0] instanceof p5.SoundFile) { - p5.prototype.saveSound(args[0], args[1], args[2], args[3]); - } - } - } - }; - - /** - * Writes the contents of an Array or a JSON object to a .json file. - * The file saving process and location of the saved file will - * vary between web browsers. - * - * @method saveJSON - * @param {Array|Object} json - * @param {String} filename - * @param {Boolean} [optimize] If true, removes line breaks - * and spaces from the output - * file to optimize filesize - * (but not readability). - * @example - *
- * let json = {}; // new JSON Object - * - * json.id = 0; - * json.species = 'Panthera leo'; - * json.name = 'Lion'; - * - * function setup() { - * createCanvas(100, 100); - * background(200); - * text('click here to save', 10, 10, 70, 80); - * } - * - * function mousePressed() { - * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { - * saveJSON(json, 'lion.json'); - * } - * } - * - * // saves the following to a file called "lion.json": - * // { - * // "id": 0, - * // "species": "Panthera leo", - * // "name": "Lion" - * // } - *
- * - * @alt - * no image displayed - * - */ - p5.prototype.saveJSON = function(json, filename, opt) { - p5._validateParameters('saveJSON', arguments); - var stringify; - if (opt) { - stringify = JSON.stringify(json); - } else { - stringify = JSON.stringify(json, undefined, 2); - } - this.saveStrings(stringify.split('\n'), filename, 'json'); - }; - - p5.prototype.saveJSONObject = p5.prototype.saveJSON; - p5.prototype.saveJSONArray = p5.prototype.saveJSON; - - /** - * Writes an array of Strings to a text file, one line per String. - * The file saving process and location of the saved file will - * vary between web browsers. - * - * @method saveStrings - * @param {String[]} list string array to be written - * @param {String} filename filename for output - * @param {String} [extension] the filename's extension - * @example - *
- * let words = 'apple bear cat dog'; - * - * // .split() outputs an Array - * let list = split(words, ' '); - * - * function setup() { - * createCanvas(100, 100); - * background(200); - * text('click here to save', 10, 10, 70, 80); - * } - * - * function mousePressed() { - * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { - * saveStrings(list, 'nouns.txt'); - * } - * } - * - * // Saves the following to a file called 'nouns.txt': - * // - * // apple - * // bear - * // cat - * // dog - *
- * - * @alt - * no image displayed - * - */ - p5.prototype.saveStrings = function(list, filename, extension) { - p5._validateParameters('saveStrings', arguments); - var ext = extension || 'txt'; - var pWriter = this.createWriter(filename, ext); - for (var i = 0; i < list.length; i++) { - if (i < list.length - 1) { - pWriter.print(list[i]); - } else { - pWriter.print(list[i]); - } - } - pWriter.close(); - pWriter.clear(); - }; - - // ======= - // HELPERS - // ======= - - function escapeHelper(content) { - return content - .replace(/&/g, '&') - .replace(//g, '>') - .replace(/"/g, '"') - .replace(/'/g, '''); - } - - /** - * Writes the contents of a Table object to a file. Defaults to a - * text file with comma-separated-values ('csv') but can also - * use tab separation ('tsv'), or generate an HTML table ('html'). - * The file saving process and location of the saved file will - * vary between web browsers. - * - * @method saveTable - * @param {p5.Table} Table the Table object to save to a file - * @param {String} filename the filename to which the Table should be saved - * @param {String} [options] can be one of "tsv", "csv", or "html" - * @example - *
- * let table; - * - * function setup() { - * table = new p5.Table(); - * - * table.addColumn('id'); - * table.addColumn('species'); - * table.addColumn('name'); - * - * let newRow = table.addRow(); - * newRow.setNum('id', table.getRowCount() - 1); - * newRow.setString('species', 'Panthera leo'); - * newRow.setString('name', 'Lion'); - * - * // To save, un-comment next line then click 'run' - * // saveTable(table, 'new.csv'); - * } - * - * // Saves the following to a file called 'new.csv': - * // id,species,name - * // 0,Panthera leo,Lion - *
- * - * @alt - * no image displayed - * - */ - p5.prototype.saveTable = function(table, filename, options) { - p5._validateParameters('saveTable', arguments); - var ext; - if (options === undefined) { - ext = filename.substring(filename.lastIndexOf('.') + 1, filename.length); - } else { - ext = options; - } - var pWriter = this.createWriter(filename, ext); - - var header = table.columns; - - var sep = ','; // default to CSV - if (ext === 'tsv') { - sep = '\t'; - } - if (ext !== 'html') { - // make header if it has values - if (header[0] !== '0') { - for (var h = 0; h < header.length; h++) { - if (h < header.length - 1) { - pWriter.write(header[h] + sep); - } else { - pWriter.write(header[h]); - } - } - pWriter.write('\n'); - } - - // make rows - for (var i = 0; i < table.rows.length; i++) { - var j; - for (j = 0; j < table.rows[i].arr.length; j++) { - if (j < table.rows[i].arr.length - 1) { - pWriter.write(table.rows[i].arr[j] + sep); - } else if (i < table.rows.length - 1) { - pWriter.write(table.rows[i].arr[j]); - } else { - pWriter.write(table.rows[i].arr[j]); - } - } - pWriter.write('\n'); - } - } else { - // otherwise, make HTML - pWriter.print(''); - pWriter.print(''); - var str = ' '); - - pWriter.print(''); - pWriter.print(' '); - - // make header if it has values - if (header[0] !== '0') { - pWriter.print(' '); - for (var k = 0; k < header.length; k++) { - var e = escapeHelper(header[k]); - pWriter.print(' '); - } - pWriter.print(' '); - } - - // make rows - for (var row = 0; row < table.rows.length; row++) { - pWriter.print(' '); - for (var col = 0; col < table.columns.length; col++) { - var entry = table.rows[row].getString(col); - var htmlEntry = escapeHelper(entry); - pWriter.print(' '); - } - pWriter.print(' '); - } - pWriter.print('
' + e); - pWriter.print('
' + htmlEntry); - pWriter.print('
'); - pWriter.print(''); - pWriter.print(''); - } - // close and clear the pWriter - pWriter.close(); - pWriter.clear(); - }; // end saveTable() - - /** - * Generate a blob of file data as a url to prepare for download. - * Accepts an array of data, a filename, and an extension (optional). - * This is a private function because it does not do any formatting, - * but it is used by saveStrings, saveJSON, saveTable etc. - * - * @param {Array} dataToDownload - * @param {String} filename - * @param {String} [extension] - * @private - */ - p5.prototype.writeFile = function(dataToDownload, filename, extension) { - var type = 'application/octet-stream'; - if (p5.prototype._isSafari()) { - type = 'text/plain'; - } - var blob = new Blob(dataToDownload, { - type: type - }); - - p5.prototype.downloadFile(blob, filename, extension); - }; - - /** - * Forces download. Accepts a url to filedata/blob, a filename, - * and an extension (optional). - * This is a private function because it does not do any formatting, - * but it is used by saveStrings, saveJSON, saveTable etc. - * - * @method downloadFile - * @private - * @param {String|Blob} data either an href generated by createObjectURL, - * or a Blob object containing the data - * @param {String} [filename] - * @param {String} [extension] - */ - p5.prototype.downloadFile = function(data, fName, extension) { - var fx = _checkFileExtension(fName, extension); - var filename = fx[0]; - - if (data instanceof Blob) { - var fileSaver = _dereq_('file-saver'); - fileSaver.saveAs(data, filename); - return; - } - - var a = document.createElement('a'); - a.href = data; - a.download = filename; - - // Firefox requires the link to be added to the DOM before click() - a.onclick = function(e) { - destroyClickedElement(e); - e.stopPropagation(); - }; - - a.style.display = 'none'; - document.body.appendChild(a); - - // Safari will open this file in the same page as a confusing Blob. - if (p5.prototype._isSafari()) { - var aText = 'Hello, Safari user! To download this file...\n'; - aText += '1. Go to File --> Save As.\n'; - aText += '2. Choose "Page Source" as the Format.\n'; - aText += '3. Name it with this extension: ."' + fx[1] + '"'; - alert(aText); - } - a.click(); - }; - - /** - * Returns a file extension, or another string - * if the provided parameter has no extension. - * - * @param {String} filename - * @param {String} [extension] - * @return {String[]} [fileName, fileExtension] - * - * @private - */ - function _checkFileExtension(filename, extension) { - if (!extension || extension === true || extension === 'true') { - extension = ''; - } - if (!filename) { - filename = 'untitled'; - } - var ext = ''; - // make sure the file will have a name, see if filename needs extension - if (filename && filename.indexOf('.') > -1) { - ext = filename.split('.').pop(); - } - // append extension if it doesn't exist - if (extension) { - if (ext !== extension) { - ext = extension; - filename = filename + '.' + ext; - } - } - return [filename, ext]; - } - p5.prototype._checkFileExtension = _checkFileExtension; - - /** - * Returns true if the browser is Safari, false if not. - * Safari makes trouble for downloading files. - * - * @return {Boolean} [description] - * @private - */ - p5.prototype._isSafari = function() { - var x = Object.prototype.toString.call(window.HTMLElement); - return x.indexOf('Constructor') > 0; - }; - - /** - * Helper function, a callback for download that deletes - * an invisible anchor element from the DOM once the file - * has been automatically downloaded. - * - * @private - */ - function destroyClickedElement(event) { - document.body.removeChild(event.target); - } - - module.exports = p5; - }, - { - '../core/error_helpers': 20, - '../core/main': 24, - 'es6-promise': 5, - 'fetch-jsonp': 6, - 'file-saver': 7, - 'whatwg-fetch': 12 - } - ], - 49: [ - function(_dereq_, module, exports) { - /** - * @module IO - * @submodule Table - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - /** - * Table Options - *

Generic class for handling tabular data, typically from a - * CSV, TSV, or other sort of spreadsheet file.

- *

CSV files are - * - * comma separated values, often with the data in quotes. TSV - * files use tabs as separators, and usually don't bother with the - * quotes.

- *

File names should end with .csv if they're comma separated.

- *

A rough "spec" for CSV can be found - * here.

- *

To load files, use the loadTable method.

- *

To save tables to your computer, use the save method - * or the saveTable method.

- * - * Possible options include: - *
    - *
  • csv - parse the table as comma-separated values - *
  • tsv - parse the table as tab-separated values - *
  • header - this table has a header (title) row - *
- */ - - /** - * Table objects store data with multiple rows and columns, much - * like in a traditional spreadsheet. Tables can be generated from - * scratch, dynamically, or using data from an existing file. - * - * @class p5.Table - * @constructor - * @param {p5.TableRow[]} [rows] An array of p5.TableRow objects - */ - p5.Table = function(rows) { - /** - * @property columns {String[]} - */ - this.columns = []; - - /** - * @property rows {p5.TableRow[]} - */ - this.rows = []; - }; - - /** - * Use addRow() to add a new row of data to a p5.Table object. By default, - * an empty row is created. Typically, you would store a reference to - * the new row in a TableRow object (see newRow in the example above), - * and then set individual values using set(). - * - * If a p5.TableRow object is included as a parameter, then that row is - * duplicated and added to the table. - * - * @method addRow - * @param {p5.TableRow} [row] row to be added to the table - * @return {p5.TableRow} the row that was added - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * //add a row - * let newRow = table.addRow(); - * newRow.setString('id', table.getRowCount() - 1); - * newRow.setString('species', 'Canis Lupus'); - * newRow.setString('name', 'Wolf'); - * - * //print the results - * for (let r = 0; r < table.getRowCount(); r++) - * for (let c = 0; c < table.getColumnCount(); c++) - * print(table.getString(r, c)); - * } - * - *
- * - * @alt - * no image displayed - * - */ - p5.Table.prototype.addRow = function(row) { - // make sure it is a valid TableRow - var r = row || new p5.TableRow(); - - if (typeof r.arr === 'undefined' || typeof r.obj === 'undefined') { - //r = new p5.prototype.TableRow(r); - throw new Error('invalid TableRow: ' + r); - } - r.table = this; - this.rows.push(r); - return r; - }; - - /** - * Removes a row from the table object. - * - * @method removeRow - * @param {Integer} id ID number of the row to remove - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * //remove the first row - * table.removeRow(0); - * - * //print the results - * for (let r = 0; r < table.getRowCount(); r++) - * for (let c = 0; c < table.getColumnCount(); c++) - * print(table.getString(r, c)); - * } - * - *
- * - * @alt - * no image displayed - * - */ - p5.Table.prototype.removeRow = function(id) { - this.rows[id].table = null; // remove reference to table - var chunk = this.rows.splice(id + 1, this.rows.length); - this.rows.pop(); - this.rows = this.rows.concat(chunk); - }; - - /** - * Returns a reference to the specified p5.TableRow. The reference - * can then be used to get and set values of the selected row. - * - * @method getRow - * @param {Integer} rowID ID number of the row to get - * @return {p5.TableRow} p5.TableRow object - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * let row = table.getRow(1); - * //print it column by column - * //note: a row is an object, not an array - * for (let c = 0; c < table.getColumnCount(); c++) { - * print(row.getString(c)); - * } - * } - * - *
- * - *@alt - * no image displayed - * - */ - p5.Table.prototype.getRow = function(r) { - return this.rows[r]; - }; - - /** - * Gets all rows from the table. Returns an array of p5.TableRows. - * - * @method getRows - * @return {p5.TableRow[]} Array of p5.TableRows - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * let rows = table.getRows(); - * - * //warning: rows is an array of objects - * for (let r = 0; r < rows.length; r++) { - * rows[r].set('name', 'Unicorn'); - * } - * - * //print the results - * for (let r = 0; r < table.getRowCount(); r++) - * for (let c = 0; c < table.getColumnCount(); c++) - * print(table.getString(r, c)); - * } - * - *
- * - * @alt - * no image displayed - * - */ - p5.Table.prototype.getRows = function() { - return this.rows; - }; - - /** - * Finds the first row in the Table that contains the value - * provided, and returns a reference to that row. Even if - * multiple rows are possible matches, only the first matching - * row is returned. The column to search may be specified by - * either its ID or title. - * - * @method findRow - * @param {String} value The value to match - * @param {Integer|String} column ID number or title of the - * column to search - * @return {p5.TableRow} - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * //find the animal named zebra - * let row = table.findRow('Zebra', 'name'); - * //find the corresponding species - * print(row.getString('species')); - * } - * - *
- * - * @alt - * no image displayed - * - */ - p5.Table.prototype.findRow = function(value, column) { - // try the Object - if (typeof column === 'string') { - for (var i = 0; i < this.rows.length; i++) { - if (this.rows[i].obj[column] === value) { - return this.rows[i]; - } - } - } else { - // try the Array - for (var j = 0; j < this.rows.length; j++) { - if (this.rows[j].arr[column] === value) { - return this.rows[j]; - } - } - } - // otherwise... - return null; - }; - - /** - * Finds the rows in the Table that contain the value - * provided, and returns references to those rows. Returns an - * Array, so for must be used to iterate through all the rows, - * as shown in the example above. The column to search may be - * specified by either its ID or title. - * - * @method findRows - * @param {String} value The value to match - * @param {Integer|String} column ID number or title of the - * column to search - * @return {p5.TableRow[]} An Array of TableRow objects - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * //add another goat - * let newRow = table.addRow(); - * newRow.setString('id', table.getRowCount() - 1); - * newRow.setString('species', 'Scape Goat'); - * newRow.setString('name', 'Goat'); - * - * //find the rows containing animals named Goat - * let rows = table.findRows('Goat', 'name'); - * print(rows.length + ' Goats found'); - * } - * - *
- * - *@alt - * no image displayed - * - */ - p5.Table.prototype.findRows = function(value, column) { - var ret = []; - if (typeof column === 'string') { - for (var i = 0; i < this.rows.length; i++) { - if (this.rows[i].obj[column] === value) { - ret.push(this.rows[i]); - } - } - } else { - // try the Array - for (var j = 0; j < this.rows.length; j++) { - if (this.rows[j].arr[column] === value) { - ret.push(this.rows[j]); - } - } - } - return ret; - }; - - /** - * Finds the first row in the Table that matches the regular - * expression provided, and returns a reference to that row. - * Even if multiple rows are possible matches, only the first - * matching row is returned. The column to search may be - * specified by either its ID or title. - * - * @method matchRow - * @param {String|RegExp} regexp The regular expression to match - * @param {String|Integer} column The column ID (number) or - * title (string) - * @return {p5.TableRow} TableRow object - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * //Search using specified regex on a given column, return TableRow object - * let mammal = table.matchRow(new RegExp('ant'), 1); - * print(mammal.getString(1)); - * //Output "Panthera pardus" - * } - * - *
- * - */ - p5.Table.prototype.matchRow = function(regexp, column) { - if (typeof column === 'number') { - for (var j = 0; j < this.rows.length; j++) { - if (this.rows[j].arr[column].match(regexp)) { - return this.rows[j]; - } - } - } else { - for (var i = 0; i < this.rows.length; i++) { - if (this.rows[i].obj[column].match(regexp)) { - return this.rows[i]; - } - } - } - return null; - }; - - /** - * Finds the rows in the Table that match the regular expression provided, - * and returns references to those rows. Returns an array, so for must be - * used to iterate through all the rows, as shown in the example. The - * column to search may be specified by either its ID or title. - * - * @method matchRows - * @param {String} regexp The regular expression to match - * @param {String|Integer} [column] The column ID (number) or - * title (string) - * @return {p5.TableRow[]} An Array of TableRow objects - * @example - *
- * - * let table; - * - * function setup() { - * table = new p5.Table(); - * - * table.addColumn('name'); - * table.addColumn('type'); - * - * let newRow = table.addRow(); - * newRow.setString('name', 'Lion'); - * newRow.setString('type', 'Mammal'); - * - * newRow = table.addRow(); - * newRow.setString('name', 'Snake'); - * newRow.setString('type', 'Reptile'); - * - * newRow = table.addRow(); - * newRow.setString('name', 'Mosquito'); - * newRow.setString('type', 'Insect'); - * - * newRow = table.addRow(); - * newRow.setString('name', 'Lizard'); - * newRow.setString('type', 'Reptile'); - * - * let rows = table.matchRows('R.*', 'type'); - * for (let i = 0; i < rows.length; i++) { - * print(rows[i].getString('name') + ': ' + rows[i].getString('type')); - * } - * } - * // Sketch prints: - * // Snake: Reptile - * // Lizard: Reptile - * - *
- */ - p5.Table.prototype.matchRows = function(regexp, column) { - var ret = []; - if (typeof column === 'number') { - for (var j = 0; j < this.rows.length; j++) { - if (this.rows[j].arr[column].match(regexp)) { - ret.push(this.rows[j]); - } - } - } else { - for (var i = 0; i < this.rows.length; i++) { - if (this.rows[i].obj[column].match(regexp)) { - ret.push(this.rows[i]); - } - } - } - return ret; - }; - - /** - * Retrieves all values in the specified column, and returns them - * as an array. The column may be specified by either its ID or title. - * - * @method getColumn - * @param {String|Number} column String or Number of the column to return - * @return {Array} Array of column values - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * //getColumn returns an array that can be printed directly - * print(table.getColumn('species')); - * //outputs ["Capra hircus", "Panthera pardus", "Equus zebra"] - * } - * - *
- * - *@alt - * no image displayed - * - */ - p5.Table.prototype.getColumn = function(value) { - var ret = []; - if (typeof value === 'string') { - for (var i = 0; i < this.rows.length; i++) { - ret.push(this.rows[i].obj[value]); - } - } else { - for (var j = 0; j < this.rows.length; j++) { - ret.push(this.rows[j].arr[value]); - } - } - return ret; - }; - - /** - * Removes all rows from a Table. While all rows are removed, - * columns and column titles are maintained. - * - * @method clearRows - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * table.clearRows(); - * print(table.getRowCount() + ' total rows in table'); - * print(table.getColumnCount() + ' total columns in table'); - * } - * - *
- * - *@alt - * no image displayed - * - */ - p5.Table.prototype.clearRows = function() { - delete this.rows; - this.rows = []; - }; - - /** - * Use addColumn() to add a new column to a Table object. - * Typically, you will want to specify a title, so the column - * may be easily referenced later by name. (If no title is - * specified, the new column's title will be null.) - * - * @method addColumn - * @param {String} [title] title of the given column - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * table.addColumn('carnivore'); - * table.set(0, 'carnivore', 'no'); - * table.set(1, 'carnivore', 'yes'); - * table.set(2, 'carnivore', 'no'); - * - * //print the results - * for (let r = 0; r < table.getRowCount(); r++) - * for (let c = 0; c < table.getColumnCount(); c++) - * print(table.getString(r, c)); - * } - * - *
- * - *@alt - * no image displayed - * - */ - p5.Table.prototype.addColumn = function(title) { - var t = title || null; - this.columns.push(t); - }; - - /** - * Returns the total number of columns in a Table. - * - * @method getColumnCount - * @return {Integer} Number of columns in this table - * @example - *
- * - * // given the cvs file "blobs.csv" in /assets directory - * // ID, Name, Flavor, Shape, Color - * // Blob1, Blobby, Sweet, Blob, Pink - * // Blob2, Saddy, Savory, Blob, Blue - * - * let table; - * - * function preload() { - * table = loadTable('assets/blobs.csv'); - * } - * - * function setup() { - * createCanvas(200, 100); - * textAlign(CENTER); - * background(255); - * } - * - * function draw() { - * let numOfColumn = table.getColumnCount(); - * text('There are ' + numOfColumn + ' columns in the table.', 100, 50); - * } - * - *
- */ - p5.Table.prototype.getColumnCount = function() { - return this.columns.length; - }; - - /** - * Returns the total number of rows in a Table. - * - * @method getRowCount - * @return {Integer} Number of rows in this table - * @example - *
- * - * // given the cvs file "blobs.csv" in /assets directory - * // - * // ID, Name, Flavor, Shape, Color - * // Blob1, Blobby, Sweet, Blob, Pink - * // Blob2, Saddy, Savory, Blob, Blue - * - * let table; - * - * function preload() { - * table = loadTable('assets/blobs.csv'); - * } - * - * function setup() { - * createCanvas(200, 100); - * textAlign(CENTER); - * background(255); - * } - * - * function draw() { - * text('There are ' + table.getRowCount() + ' rows in the table.', 100, 50); - * } - * - *
- */ - p5.Table.prototype.getRowCount = function() { - return this.rows.length; - }; - - /** - *

Removes any of the specified characters (or "tokens").

- * - *

If no column is specified, then the values in all columns and - * rows are processed. A specific column may be referenced by - * either its ID or title.

- * - * @method removeTokens - * @param {String} chars String listing characters to be removed - * @param {String|Integer} [column] Column ID (number) - * or name (string) - * - * @example - *
- * function setup() { - * let table = new p5.Table(); - * - * table.addColumn('name'); - * table.addColumn('type'); - * - * let newRow = table.addRow(); - * newRow.setString('name', ' $Lion ,'); - * newRow.setString('type', ',,,Mammal'); - * - * newRow = table.addRow(); - * newRow.setString('name', '$Snake '); - * newRow.setString('type', ',,,Reptile'); - * - * table.removeTokens(',$ '); - * print(table.getArray()); - * } - * - * // prints: - * // 0 "Lion" "Mamal" - * // 1 "Snake" "Reptile" - *
- */ - p5.Table.prototype.removeTokens = function(chars, column) { - var escape = function escape(s) { - return s.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'); - }; - var charArray = []; - for (var i = 0; i < chars.length; i++) { - charArray.push(escape(chars.charAt(i))); - } - var regex = new RegExp(charArray.join('|'), 'g'); - - if (typeof column === 'undefined') { - for (var c = 0; c < this.columns.length; c++) { - for (var d = 0; d < this.rows.length; d++) { - var s = this.rows[d].arr[c]; - s = s.replace(regex, ''); - this.rows[d].arr[c] = s; - this.rows[d].obj[this.columns[c]] = s; - } - } - } else if (typeof column === 'string') { - for (var j = 0; j < this.rows.length; j++) { - var val = this.rows[j].obj[column]; - val = val.replace(regex, ''); - this.rows[j].obj[column] = val; - var pos = this.columns.indexOf(column); - this.rows[j].arr[pos] = val; - } - } else { - for (var k = 0; k < this.rows.length; k++) { - var str = this.rows[k].arr[column]; - str = str.replace(regex, ''); - this.rows[k].arr[column] = str; - this.rows[k].obj[this.columns[column]] = str; - } - } - }; - - /** - * Trims leading and trailing whitespace, such as spaces and tabs, - * from String table values. If no column is specified, then the - * values in all columns and rows are trimmed. A specific column - * may be referenced by either its ID or title. - * - * @method trim - * @param {String|Integer} [column] Column ID (number) - * or name (string) - * @example - *
- * function setup() { - * let table = new p5.Table(); - * - * table.addColumn('name'); - * table.addColumn('type'); - * - * let newRow = table.addRow(); - * newRow.setString('name', ' Lion ,'); - * newRow.setString('type', ' Mammal '); - * - * newRow = table.addRow(); - * newRow.setString('name', ' Snake '); - * newRow.setString('type', ' Reptile '); - * - * table.trim(); - * print(table.getArray()); - * } - * - * // prints: - * // 0 "Lion" "Mamal" - * // 1 "Snake" "Reptile" - *
- */ - p5.Table.prototype.trim = function(column) { - var regex = new RegExp(' ', 'g'); - - if (typeof column === 'undefined') { - for (var c = 0; c < this.columns.length; c++) { - for (var d = 0; d < this.rows.length; d++) { - var s = this.rows[d].arr[c]; - s = s.replace(regex, ''); - this.rows[d].arr[c] = s; - this.rows[d].obj[this.columns[c]] = s; - } - } - } else if (typeof column === 'string') { - for (var j = 0; j < this.rows.length; j++) { - var val = this.rows[j].obj[column]; - val = val.replace(regex, ''); - this.rows[j].obj[column] = val; - var pos = this.columns.indexOf(column); - this.rows[j].arr[pos] = val; - } - } else { - for (var k = 0; k < this.rows.length; k++) { - var str = this.rows[k].arr[column]; - str = str.replace(regex, ''); - this.rows[k].arr[column] = str; - this.rows[k].obj[this.columns[column]] = str; - } - } - }; - - /** - * Use removeColumn() to remove an existing column from a Table - * object. The column to be removed may be identified by either - * its title (a String) or its index value (an int). - * removeColumn(0) would remove the first column, removeColumn(1) - * would remove the second column, and so on. - * - * @method removeColumn - * @param {String|Integer} column columnName (string) or ID (number) - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * table.removeColumn('id'); - * print(table.getColumnCount()); - * } - * - *
- * - *@alt - * no image displayed - * - */ - p5.Table.prototype.removeColumn = function(c) { - var cString; - var cNumber; - if (typeof c === 'string') { - // find the position of c in the columns - cString = c; - cNumber = this.columns.indexOf(c); - } else { - cNumber = c; - cString = this.columns[c]; - } - - var chunk = this.columns.splice(cNumber + 1, this.columns.length); - this.columns.pop(); - this.columns = this.columns.concat(chunk); - - for (var i = 0; i < this.rows.length; i++) { - var tempR = this.rows[i].arr; - var chip = tempR.splice(cNumber + 1, tempR.length); - tempR.pop(); - this.rows[i].arr = tempR.concat(chip); - delete this.rows[i].obj[cString]; - } - }; - - /** - * Stores a value in the Table's specified row and column. - * The row is specified by its ID, while the column may be specified - * by either its ID or title. - * - * @method set - * @param {Integer} row row ID - * @param {String|Integer} column column ID (Number) - * or title (String) - * @param {String|Number} value value to assign - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * table.set(0, 'species', 'Canis Lupus'); - * table.set(0, 'name', 'Wolf'); - * - * //print the results - * for (let r = 0; r < table.getRowCount(); r++) - * for (let c = 0; c < table.getColumnCount(); c++) - * print(table.getString(r, c)); - * } - * - *
- * - *@alt - * no image displayed - * - */ - p5.Table.prototype.set = function(row, column, value) { - this.rows[row].set(column, value); - }; - - /** - * Stores a Float value in the Table's specified row and column. - * The row is specified by its ID, while the column may be specified - * by either its ID or title. - * - * @method setNum - * @param {Integer} row row ID - * @param {String|Integer} column column ID (Number) - * or title (String) - * @param {Number} value value to assign - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * table.setNum(1, 'id', 1); - * - * print(table.getColumn(0)); - * //["0", 1, "2"] - * } - * - *
- * - *@alt - * no image displayed - */ - p5.Table.prototype.setNum = function(row, column, value) { - this.rows[row].setNum(column, value); - }; - - /** - * Stores a String value in the Table's specified row and column. - * The row is specified by its ID, while the column may be specified - * by either its ID or title. - * - * @method setString - * @param {Integer} row row ID - * @param {String|Integer} column column ID (Number) - * or title (String) - * @param {String} value value to assign - * @example - *
- * // Given the CSV file "mammals.csv" in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * //add a row - * let newRow = table.addRow(); - * newRow.setString('id', table.getRowCount() - 1); - * newRow.setString('species', 'Canis Lupus'); - * newRow.setString('name', 'Wolf'); - * - * print(table.getArray()); - * } - *
- * - * @alt - * no image displayed - */ - p5.Table.prototype.setString = function(row, column, value) { - this.rows[row].setString(column, value); - }; - - /** - * Retrieves a value from the Table's specified row and column. - * The row is specified by its ID, while the column may be specified by - * either its ID or title. - * - * @method get - * @param {Integer} row row ID - * @param {String|Integer} column columnName (string) or - * ID (number) - * @return {String|Number} - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * print(table.get(0, 1)); - * //Capra hircus - * print(table.get(0, 'species')); - * //Capra hircus - * } - * - *
- * - *@alt - * no image displayed - * - */ - p5.Table.prototype.get = function(row, column) { - return this.rows[row].get(column); - }; - - /** - * Retrieves a Float value from the Table's specified row and column. - * The row is specified by its ID, while the column may be specified by - * either its ID or title. - * - * @method getNum - * @param {Integer} row row ID - * @param {String|Integer} column columnName (string) or - * ID (number) - * @return {Number} - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * print(table.getNum(1, 0) + 100); - * //id 1 + 100 = 101 - * } - * - *
- * - *@alt - * no image displayed - * - */ - p5.Table.prototype.getNum = function(row, column) { - return this.rows[row].getNum(column); - }; - - /** - * Retrieves a String value from the Table's specified row and column. - * The row is specified by its ID, while the column may be specified by - * either its ID or title. - * - * @method getString - * @param {Integer} row row ID - * @param {String|Integer} column columnName (string) or - * ID (number) - * @return {String} - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * // table is comma separated value "CSV" - * // and has specifiying header for column labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * print(table.getString(0, 0)); // 0 - * print(table.getString(0, 1)); // Capra hircus - * print(table.getString(0, 2)); // Goat - * print(table.getString(1, 0)); // 1 - * print(table.getString(1, 1)); // Panthera pardus - * print(table.getString(1, 2)); // Leopard - * print(table.getString(2, 0)); // 2 - * print(table.getString(2, 1)); // Equus zebra - * print(table.getString(2, 2)); // Zebra - * } - * - *
- * - *@alt - * no image displayed - * - */ - - p5.Table.prototype.getString = function(row, column) { - return this.rows[row].getString(column); - }; - - /** - * Retrieves all table data and returns as an object. If a column name is - * passed in, each row object will be stored with that attribute as its - * title. - * - * @method getObject - * @param {String} [headerColumn] Name of the column which should be used to - * title each row object (optional) - * @return {Object} - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * let tableObject = table.getObject(); - * - * print(tableObject); - * //outputs an object - * } - * - *
- * - *@alt - * no image displayed - * - */ - p5.Table.prototype.getObject = function(headerColumn) { - var tableObject = {}; - var obj, cPos, index; - - for (var i = 0; i < this.rows.length; i++) { - obj = this.rows[i].obj; - - if (typeof headerColumn === 'string') { - cPos = this.columns.indexOf(headerColumn); // index of columnID - if (cPos >= 0) { - index = obj[headerColumn]; - tableObject[index] = obj; - } else { - throw new Error('This table has no column named "' + headerColumn + '"'); - } - } else { - tableObject[i] = this.rows[i].obj; - } - } - return tableObject; - }; - - /** - * Retrieves all table data and returns it as a multidimensional array. - * - * @method getArray - * @return {Array} - * - * @example - *
- * - * // Given the CSV file "mammals.csv" - * // in the project's "assets" folder - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leoperd - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * // table is comma separated value "CSV" - * // and has specifiying header for column labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * let tableArray = table.getArray(); - * for (let i = 0; i < tableArray.length; i++) { - * print(tableArray[i]); - * } - * } - * - *
- * - *@alt - * no image displayed - * - */ - p5.Table.prototype.getArray = function() { - var tableArray = []; - for (var i = 0; i < this.rows.length; i++) { - tableArray.push(this.rows[i].arr); - } - return tableArray; - }; - - module.exports = p5; - }, - { '../core/main': 24 } - ], - 50: [ - function(_dereq_, module, exports) { - /** - * @module IO - * @submodule Table - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - /** - * A TableRow object represents a single row of data values, - * stored in columns, from a table. - * - * A Table Row contains both an ordered array, and an unordered - * JSON object. - * - * @class p5.TableRow - * @constructor - * @param {String} [str] optional: populate the row with a - * string of values, separated by the - * separator - * @param {String} [separator] comma separated values (csv) by default - */ - p5.TableRow = function(str, separator) { - var arr = []; - var obj = {}; - if (str) { - separator = separator || ','; - arr = str.split(separator); - } - for (var i = 0; i < arr.length; i++) { - var key = i; - var val = arr[i]; - obj[key] = val; - } - this.arr = arr; - this.obj = obj; - this.table = null; - }; - - /** - * Stores a value in the TableRow's specified column. - * The column may be specified by either its ID or title. - * - * @method set - * @param {String|Integer} column Column ID (Number) - * or Title (String) - * @param {String|Number} value The value to be stored - * - * @example - *
- * // Given the CSV file "mammals.csv" in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * let rows = table.getRows(); - * for (let r = 0; r < rows.length; r++) { - * rows[r].set('name', 'Unicorn'); - * } - * - * //print the results - * print(table.getArray()); - * } - *
- * - * @alt - * no image displayed - */ - p5.TableRow.prototype.set = function(column, value) { - // if typeof column is string, use .obj - if (typeof column === 'string') { - var cPos = this.table.columns.indexOf(column); // index of columnID - if (cPos >= 0) { - this.obj[column] = value; - this.arr[cPos] = value; - } else { - throw new Error('This table has no column named "' + column + '"'); - } - } else { - // if typeof column is number, use .arr - if (column < this.table.columns.length) { - this.arr[column] = value; - var cTitle = this.table.columns[column]; - this.obj[cTitle] = value; - } else { - throw new Error('Column #' + column + ' is out of the range of this table'); - } - } - }; - - /** - * Stores a Float value in the TableRow's specified column. - * The column may be specified by either its ID or title. - * - * @method setNum - * @param {String|Integer} column Column ID (Number) - * or Title (String) - * @param {Number|String} value The value to be stored - * as a Float - * @example - *
- * // Given the CSV file "mammals.csv" in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * let rows = table.getRows(); - * for (let r = 0; r < rows.length; r++) { - * rows[r].setNum('id', r + 10); - * } - * - * print(table.getArray()); - * } - *
- * - * @alt - * no image displayed - */ - p5.TableRow.prototype.setNum = function(column, value) { - var floatVal = parseFloat(value); - this.set(column, floatVal); - }; - - /** - * Stores a String value in the TableRow's specified column. - * The column may be specified by either its ID or title. - * - * @method setString - * @param {String|Integer} column Column ID (Number) - * or Title (String) - * @param {String|Number|Boolean|Object} value The value to be stored - * as a String - * @example - *
- * // Given the CSV file "mammals.csv" in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * let rows = table.getRows(); - * for (let r = 0; r < rows.length; r++) { - * let name = rows[r].getString('name'); - * rows[r].setString('name', 'A ' + name + ' named George'); - * } - * - * print(table.getArray()); - * } - *
- * - * @alt - * no image displayed - */ - p5.TableRow.prototype.setString = function(column, value) { - var stringVal = value.toString(); - this.set(column, stringVal); - }; - - /** - * Retrieves a value from the TableRow's specified column. - * The column may be specified by either its ID or title. - * - * @method get - * @param {String|Integer} column columnName (string) or - * ID (number) - * @return {String|Number} - * - * @example - *
- * // Given the CSV file "mammals.csv" in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * let names = []; - * let rows = table.getRows(); - * for (let r = 0; r < rows.length; r++) { - * names.push(rows[r].get('name')); - * } - * - * print(names); - * } - *
- * - * @alt - * no image displayed - */ - p5.TableRow.prototype.get = function(column) { - if (typeof column === 'string') { - return this.obj[column]; - } else { - return this.arr[column]; - } - }; - - /** - * Retrieves a Float value from the TableRow's specified - * column. The column may be specified by either its ID or - * title. - * - * @method getNum - * @param {String|Integer} column columnName (string) or - * ID (number) - * @return {Number} Float Floating point number - * @example - *
- * // Given the CSV file "mammals.csv" in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * let rows = table.getRows(); - * let minId = Infinity; - * let maxId = -Infinity; - * for (let r = 0; r < rows.length; r++) { - * let id = rows[r].getNum('id'); - * minId = min(minId, id); - * maxId = min(maxId, id); - * } - * print('minimum id = ' + minId + ', maximum id = ' + maxId); - * } - *
- * - * @alt - * no image displayed - */ - p5.TableRow.prototype.getNum = function(column) { - var ret; - if (typeof column === 'string') { - ret = parseFloat(this.obj[column]); - } else { - ret = parseFloat(this.arr[column]); - } - - if (ret.toString() === 'NaN') { - throw 'Error: ' + this.obj[column] + ' is NaN (Not a Number)'; - } - return ret; - }; - - /** - * Retrieves an String value from the TableRow's specified - * column. The column may be specified by either its ID or - * title. - * - * @method getString - * @param {String|Integer} column columnName (string) or - * ID (number) - * @return {String} String - * @example - *
- * // Given the CSV file "mammals.csv" in the project's "assets" folder: - * // - * // id,species,name - * // 0,Capra hircus,Goat - * // 1,Panthera pardus,Leopard - * // 2,Equus zebra,Zebra - * - * let table; - * - * function preload() { - * //my table is comma separated value "csv" - * //and has a header specifying the columns labels - * table = loadTable('assets/mammals.csv', 'csv', 'header'); - * } - * - * function setup() { - * let rows = table.getRows(); - * let longest = ''; - * for (let r = 0; r < rows.length; r++) { - * let species = rows[r].getString('species'); - * if (longest.length < species.length) { - * longest = species; - * } - * } - * - * print('longest: ' + longest); - * } - *
- * - * @alt - * no image displayed - */ - p5.TableRow.prototype.getString = function(column) { - if (typeof column === 'string') { - return this.obj[column].toString(); - } else { - return this.arr[column].toString(); - } - }; - - module.exports = p5; - }, - { '../core/main': 24 } - ], - 51: [ - function(_dereq_, module, exports) { - /** - * @module IO - * @submodule XML - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - /** - * XML is a representation of an XML object, able to parse XML code. Use - * loadXML() to load external XML files and create XML objects. - * - * @class p5.XML - * @constructor - * @example - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * let children = xml.getChildren('animal'); - * - * for (let i = 0; i < children.length; i++) { - * let id = children[i].getNum('id'); - * let coloring = children[i].getString('species'); - * let name = children[i].getContent(); - * print(id + ', ' + coloring + ', ' + name); - * } - * } - * - * // Sketch prints: - * // 0, Capra hircus, Goat - * // 1, Panthera pardus, Leopard - * // 2, Equus zebra, Zebra - *
- * - * @alt - * no image displayed - * - */ - p5.XML = function(DOM) { - if (!DOM) { - var xmlDoc = document.implementation.createDocument(null, 'doc'); - this.DOM = xmlDoc.createElement('root'); - } else { - this.DOM = DOM; - } - }; - - /** - * Gets a copy of the element's parent. Returns the parent as another - * p5.XML object. - * - * @method getParent - * @return {p5.XML} element parent - * @example - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * let children = xml.getChildren('animal'); - * let parent = children[1].getParent(); - * print(parent.getName()); - * } - * - * // Sketch prints: - * // mammals - *
- */ - p5.XML.prototype.getParent = function() { - return new p5.XML(this.DOM.parentElement); - }; - - /** - * Gets the element's full name, which is returned as a String. - * - * @method getName - * @return {String} the name of the node - * @example<animal - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * print(xml.getName()); - * } - * - * // Sketch prints: - * // mammals - *
- */ - p5.XML.prototype.getName = function() { - return this.DOM.tagName; - }; - - /** - * Sets the element's name, which is specified as a String. - * - * @method setName - * @param {String} the new name of the node - * @example<animal - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * print(xml.getName()); - * xml.setName('fish'); - * print(xml.getName()); - * } - * - * // Sketch prints: - * // mammals - * // fish - *
- */ - p5.XML.prototype.setName = function(name) { - var content = this.DOM.innerHTML; - var attributes = this.DOM.attributes; - var xmlDoc = document.implementation.createDocument(null, 'default'); - var newDOM = xmlDoc.createElement(name); - newDOM.innerHTML = content; - for (var i = 0; i < attributes.length; i++) { - newDOM.setAttribute(attributes[i].nodeName, attributes.nodeValue); - } - this.DOM = newDOM; - }; - - /** - * Checks whether or not the element has any children, and returns the result - * as a boolean. - * - * @method hasChildren - * @return {boolean} - * @example<animal - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * print(xml.hasChildren()); - * } - * - * // Sketch prints: - * // true - *
- */ - p5.XML.prototype.hasChildren = function() { - return this.DOM.children.length > 0; - }; - - /** - * Get the names of all of the element's children, and returns the names as an - * array of Strings. This is the same as looping through and calling getName() - * on each child element individually. - * - * @method listChildren - * @return {String[]} names of the children of the element - * @example<animal - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * print(xml.listChildren()); - * } - * - * // Sketch prints: - * // ["animal", "animal", "animal"] - *
- */ - p5.XML.prototype.listChildren = function() { - var arr = []; - for (var i = 0; i < this.DOM.childNodes.length; i++) { - arr.push(this.DOM.childNodes[i].nodeName); - } - return arr; - }; - - /** - * Returns all of the element's children as an array of p5.XML objects. When - * the name parameter is specified, then it will return all children that match - * that name. - * - * @method getChildren - * @param {String} [name] element name - * @return {p5.XML[]} children of the element - * @example<animal - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * let animals = xml.getChildren('animal'); - * - * for (let i = 0; i < animals.length; i++) { - * print(animals[i].getContent()); - * } - * } - * - * // Sketch prints: - * // "Goat" - * // "Leopard" - * // "Zebra" - *
- */ - p5.XML.prototype.getChildren = function(param) { - if (param) { - return elementsToP5XML(this.DOM.getElementsByTagName(param)); - } else { - return elementsToP5XML(this.DOM.children); - } - }; - - function elementsToP5XML(elements) { - var arr = []; - for (var i = 0; i < elements.length; i++) { - arr.push(new p5.XML(elements[i])); - } - return arr; - } - - /** - * Returns the first of the element's children that matches the name parameter - * or the child of the given index.It returns undefined if no matching - * child is found. - * - * @method getChild - * @param {String|Integer} name element name or index - * @return {p5.XML} - * @example<animal - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * let firstChild = xml.getChild('animal'); - * print(firstChild.getContent()); - * } - * - * // Sketch prints: - * // "Goat" - *
- *
- * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * let secondChild = xml.getChild(1); - * print(secondChild.getContent()); - * } - * - * // Sketch prints: - * // "Leopard" - *
- */ - p5.XML.prototype.getChild = function(param) { - if (typeof param === 'string') { - for (var i = 0; i < this.DOM.children.length; i++) { - var child = this.DOM.children[i]; - if (child.tagName === param) return new p5.XML(child); - } - } else { - return new p5.XML(this.DOM.children[param]); - } - }; - - /** - * Appends a new child to the element. The child can be specified with - * either a String, which will be used as the new tag's name, or as a - * reference to an existing p5.XML object. - * A reference to the newly created child is returned as an p5.XML object. - * - * @method addChild - * @param {p5.XML} node a p5.XML Object which will be the child to be added - * @example - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * let child = new p5.XML(); - * child.setName('animal'); - * child.setAttribute('id', '3'); - * child.setAttribute('species', 'Ornithorhynchus anatinus'); - * child.setContent('Platypus'); - * xml.addChild(child); - * - * let animals = xml.getChildren('animal'); - * print(animals[animals.length - 1].getContent()); - * } - * - * // Sketch prints: - * // "Goat" - * // "Leopard" - * // "Zebra" - *
- */ - p5.XML.prototype.addChild = function(node) { - if (node instanceof p5.XML) { - this.DOM.appendChild(node.DOM); - } else { - // PEND - } - }; - - /** - * Removes the element specified by name or index. - * - * @method removeChild - * @param {String|Integer} name element name or index - * @example - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * xml.removeChild('animal'); - * let children = xml.getChildren(); - * for (let i = 0; i < children.length; i++) { - * print(children[i].getContent()); - * } - * } - * - * // Sketch prints: - * // "Leopard" - * // "Zebra" - *
- *
- * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * xml.removeChild(1); - * let children = xml.getChildren(); - * for (let i = 0; i < children.length; i++) { - * print(children[i].getContent()); - * } - * } - * - * // Sketch prints: - * // "Goat" - * // "Zebra" - *
- */ - p5.XML.prototype.removeChild = function(param) { - var ind = -1; - if (typeof param === 'string') { - for (var i = 0; i < this.DOM.children.length; i++) { - if (this.DOM.children[i].tagName === param) { - ind = i; - break; - } - } - } else { - ind = param; - } - if (ind !== -1) { - this.DOM.removeChild(this.DOM.children[ind]); - } - }; - - /** - * Counts the specified element's number of attributes, returned as an Number. - * - * @method getAttributeCount - * @return {Integer} - * @example - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * let firstChild = xml.getChild('animal'); - * print(firstChild.getAttributeCount()); - * } - * - * // Sketch prints: - * // 2 - *
- */ - p5.XML.prototype.getAttributeCount = function() { - return this.DOM.attributes.length; - }; - - /** - * Gets all of the specified element's attributes, and returns them as an - * array of Strings. - * - * @method listAttributes - * @return {String[]} an array of strings containing the names of attributes - * @example - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * let firstChild = xml.getChild('animal'); - * print(firstChild.listAttributes()); - * } - * - * // Sketch prints: - * // ["id", "species"] - *
- */ - p5.XML.prototype.listAttributes = function() { - var arr = []; - for (var i = 0; i < this.DOM.attributes.length; i++) { - var attribute = this.DOM.attributes[i]; - arr.push(attribute.nodeName); - } - return arr; - }; - - /** - * Checks whether or not an element has the specified attribute. - * - * @method hasAttribute - * @param {String} the attribute to be checked - * @return {boolean} true if attribute found else false - * @example - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * let firstChild = xml.getChild('animal'); - * print(firstChild.hasAttribute('species')); - * print(firstChild.hasAttribute('color')); - * } - * - * // Sketch prints: - * // true - * // false - *
- */ - p5.XML.prototype.hasAttribute = function(name) { - var obj = {}; - for (var i = 0; i < this.DOM.attributes.length; i++) { - var attribute = this.DOM.attributes[i]; - obj[attribute.nodeName] = attribute.nodeValue; - } - return obj[name] ? true : false; - }; - - /** - * Returns an attribute value of the element as an Number. If the defaultValue - * parameter is specified and the attribute doesn't exist, then defaultValue - * is returned. If no defaultValue is specified and the attribute doesn't - * exist, the value 0 is returned. - * - * @method getNum - * @param {String} name the non-null full name of the attribute - * @param {Number} [defaultValue] the default value of the attribute - * @return {Number} - * @example - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * let firstChild = xml.getChild('animal'); - * print(firstChild.getNum('id')); - * } - * - * // Sketch prints: - * // 0 - *
- */ - p5.XML.prototype.getNum = function(name, defaultValue) { - var obj = {}; - for (var i = 0; i < this.DOM.attributes.length; i++) { - var attribute = this.DOM.attributes[i]; - obj[attribute.nodeName] = attribute.nodeValue; - } - return Number(obj[name]) || defaultValue || 0; - }; - - /** - * Returns an attribute value of the element as an String. If the defaultValue - * parameter is specified and the attribute doesn't exist, then defaultValue - * is returned. If no defaultValue is specified and the attribute doesn't - * exist, null is returned. - * - * @method getString - * @param {String} name the non-null full name of the attribute - * @param {Number} [defaultValue] the default value of the attribute - * @return {String} - * @example - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * let firstChild = xml.getChild('animal'); - * print(firstChild.getString('species')); - * } - * - * // Sketch prints: - * // "Capra hircus" - *
- */ - p5.XML.prototype.getString = function(name, defaultValue) { - var obj = {}; - for (var i = 0; i < this.DOM.attributes.length; i++) { - var attribute = this.DOM.attributes[i]; - obj[attribute.nodeName] = attribute.nodeValue; - } - return obj[name] ? String(obj[name]) : defaultValue || null; - }; - - /** - * Sets the content of an element's attribute. The first parameter specifies - * the attribute name, while the second specifies the new content. - * - * @method setAttribute - * @param {String} name the full name of the attribute - * @param {Number|String|Boolean} value the value of the attribute - * @example - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * let firstChild = xml.getChild('animal'); - * print(firstChild.getString('species')); - * firstChild.setAttribute('species', 'Jamides zebra'); - * print(firstChild.getString('species')); - * } - * - * // Sketch prints: - * // "Capra hircus" - * // "Jamides zebra" - *
- */ - p5.XML.prototype.setAttribute = function(name, value) { - this.DOM.setAttribute(name, value); - }; - - /** - * Returns the content of an element. If there is no such content, - * defaultValue is returned if specified, otherwise null is returned. - * - * @method getContent - * @param {String} [defaultValue] value returned if no content is found - * @return {String} - * @example - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * let firstChild = xml.getChild('animal'); - * print(firstChild.getContent()); - * } - * - * // Sketch prints: - * // "Goat" - *
- */ - p5.XML.prototype.getContent = function(defaultValue) { - var str; - str = this.DOM.textContent; - str = str.replace(/\s\s+/g, ','); - return str || defaultValue || null; - }; - - /** - * Sets the element's content. - * - * @method setContent - * @param {String} text the new content - * @example - *
- * // The following short XML file called "mammals.xml" is parsed - * // in the code below. - * // - * // - * // <mammals> - * // <animal id="0" species="Capra hircus">Goat</animal> - * // <animal id="1" species="Panthera pardus">Leopard</animal> - * // <animal id="2" species="Equus zebra">Zebra</animal> - * // </mammals> - * - * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * let firstChild = xml.getChild('animal'); - * print(firstChild.getContent()); - * firstChild.setContent('Mountain Goat'); - * print(firstChild.getContent()); - * } - * - * // Sketch prints: - * // "Goat" - * // "Mountain Goat" - *
- */ - p5.XML.prototype.setContent = function(content) { - if (!this.DOM.children.length) { - this.DOM.textContent = content; - } - }; - - /** - * Serializes the element into a string. This function is useful for preparing - * the content to be sent over a http request or saved to file. - * - * @method serialize - * @return {String} Serialized string of the element - * @example - *
- * let xml; - * - * function preload() { - * xml = loadXML('assets/mammals.xml'); - * } - * - * function setup() { - * print(xml.serialize()); - * } - * - * // Sketch prints: - * // - * // Goat - * // Leopard - * // Zebra - * // - *
- */ - p5.XML.prototype.serialize = function() { - var xmlSerializer = new XMLSerializer(); - return xmlSerializer.serializeToString(this.DOM); - }; - - module.exports = p5; - }, - { '../core/main': 24 } - ], - 52: [ - function(_dereq_, module, exports) { - /** - * @module Math - * @submodule Calculation - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - /** - * Calculates the absolute value (magnitude) of a number. Maps to Math.abs(). - * The absolute value of a number is always positive. - * - * @method abs - * @param {Number} n number to compute - * @return {Number} absolute value of given number - * @example - *
- * function setup() { - * let x = -3; - * let y = abs(x); - * - * print(x); // -3 - * print(y); // 3 - * } - *
- * - * @alt - * no image displayed - * - */ - p5.prototype.abs = Math.abs; - - /** - * Calculates the closest int value that is greater than or equal to the - * value of the parameter. Maps to Math.ceil(). For example, ceil(9.03) - * returns the value 10. - * - * @method ceil - * @param {Number} n number to round up - * @return {Integer} rounded up number - * @example - *
- * function draw() { - * background(200); - * // map, mouseX between 0 and 5. - * let ax = map(mouseX, 0, 100, 0, 5); - * let ay = 66; - * - * //Get the ceiling of the mapped number. - * let bx = ceil(map(mouseX, 0, 100, 0, 5)); - * let by = 33; - * - * // Multiply the mapped numbers by 20 to more easily - * // see the changes. - * stroke(0); - * fill(0); - * line(0, ay, ax * 20, ay); - * line(0, by, bx * 20, by); - * - * // Reformat the float returned by map and draw it. - * noStroke(); - * text(nfc(ax, 2), ax, ay - 5); - * text(nfc(bx, 1), bx, by - 5); - * } - *
- * - * @alt - * 2 horizontal lines & number sets. increase with mouse x. bottom to 2 decimals - * - */ - p5.prototype.ceil = Math.ceil; - - /** - * Constrains a value between a minimum and maximum value. - * - * @method constrain - * @param {Number} n number to constrain - * @param {Number} low minimum limit - * @param {Number} high maximum limit - * @return {Number} constrained number - * @example - *
- * function draw() { - * background(200); - * - * let leftWall = 25; - * let rightWall = 75; - * - * // xm is just the mouseX, while - * // xc is the mouseX, but constrained - * // between the leftWall and rightWall! - * let xm = mouseX; - * let xc = constrain(mouseX, leftWall, rightWall); - * - * // Draw the walls. - * stroke(150); - * line(leftWall, 0, leftWall, height); - * line(rightWall, 0, rightWall, height); - * - * // Draw xm and xc as circles. - * noStroke(); - * fill(150); - * ellipse(xm, 33, 9, 9); // Not Constrained - * fill(0); - * ellipse(xc, 66, 9, 9); // Constrained - * } - *
- * - * @alt - * 2 vertical lines. 2 ellipses move with mouse X 1 does not move passed lines - * - */ - p5.prototype.constrain = function(n, low, high) { - p5._validateParameters('constrain', arguments); - return Math.max(Math.min(n, high), low); - }; - - /** - * Calculates the distance between two points, in either two or three dimensions. - * - * @method dist - * @param {Number} x1 x-coordinate of the first point - * @param {Number} y1 y-coordinate of the first point - * @param {Number} x2 x-coordinate of the second point - * @param {Number} y2 y-coordinate of the second point - * @return {Number} distance between the two points - * - * @example - *
- * // Move your mouse inside the canvas to see the - * // change in distance between two points! - * function draw() { - * background(200); - * fill(0); - * - * let x1 = 10; - * let y1 = 90; - * let x2 = mouseX; - * let y2 = mouseY; - * - * line(x1, y1, x2, y2); - * ellipse(x1, y1, 7, 7); - * ellipse(x2, y2, 7, 7); - * - * // d is the length of the line - * // the distance from point 1 to point 2. - * let d = int(dist(x1, y1, x2, y2)); - * - * // Let's write d along the line we are drawing! - * push(); - * translate((x1 + x2) / 2, (y1 + y2) / 2); - * rotate(atan2(y2 - y1, x2 - x1)); - * text(nfc(d, 1), 0, -5); - * pop(); - * // Fancy! - * } - *
- * - * @alt - * 2 ellipses joined by line. 1 ellipse moves with mouse X&Y. Distance displayed. - */ - /** - * @method dist - * @param {Number} x1 - * @param {Number} y1 - * @param {Number} z1 z-coordinate of the first point - * @param {Number} x2 - * @param {Number} y2 - * @param {Number} z2 z-coordinate of the second point - * @return {Number} distance between the two points - */ - p5.prototype.dist = function() { - p5._validateParameters('dist', arguments); - if (arguments.length === 4) { - //2D - return hypot(arguments[2] - arguments[0], arguments[3] - arguments[1]); - } else if (arguments.length === 6) { - //3D - return hypot( - arguments[3] - arguments[0], - arguments[4] - arguments[1], - arguments[5] - arguments[2] - ); - } - }; - - /** - * Returns Euler's number e (2.71828...) raised to the power of the n - * parameter. Maps to Math.exp(). - * - * @method exp - * @param {Number} n exponent to raise - * @return {Number} e^n - * @example - *
- * function draw() { - * background(200); - * - * // Compute the exp() function with a value between 0 and 2 - * let xValue = map(mouseX, 0, width, 0, 2); - * let yValue = exp(xValue); - * - * let y = map(yValue, 0, 8, height, 0); - * - * let legend = 'exp (' + nfc(xValue, 3) + ')\n= ' + nf(yValue, 1, 4); - * stroke(150); - * line(mouseX, y, mouseX, height); - * fill(0); - * text(legend, 5, 15); - * noStroke(); - * ellipse(mouseX, y, 7, 7); - * - * // Draw the exp(x) curve, - * // over the domain of x from 0 to 2 - * noFill(); - * stroke(0); - * beginShape(); - * for (let x = 0; x < width; x++) { - * xValue = map(x, 0, width, 0, 2); - * yValue = exp(xValue); - * y = map(yValue, 0, 8, height, 0); - * vertex(x, y); - * } - * - * endShape(); - * line(0, 0, 0, height); - * line(0, height - 1, width, height - 1); - * } - *
- * - * @alt - * ellipse moves along a curve with mouse x. e^n displayed. - * - */ - p5.prototype.exp = Math.exp; - - /** - * Calculates the closest int value that is less than or equal to the - * value of the parameter. Maps to Math.floor(). - * - * @method floor - * @param {Number} n number to round down - * @return {Integer} rounded down number - * @example - *
- * function draw() { - * background(200); - * //map, mouseX between 0 and 5. - * let ax = map(mouseX, 0, 100, 0, 5); - * let ay = 66; - * - * //Get the floor of the mapped number. - * let bx = floor(map(mouseX, 0, 100, 0, 5)); - * let by = 33; - * - * // Multiply the mapped numbers by 20 to more easily - * // see the changes. - * stroke(0); - * fill(0); - * line(0, ay, ax * 20, ay); - * line(0, by, bx * 20, by); - * - * // Reformat the float returned by map and draw it. - * noStroke(); - * text(nfc(ax, 2), ax, ay - 5); - * text(nfc(bx, 1), bx, by - 5); - * } - *
- * - * @alt - * 2 horizontal lines & number sets. increase with mouse x. bottom to 2 decimals - * - */ - p5.prototype.floor = Math.floor; - - /** - * Calculates a number between two numbers at a specific increment. The amt - * parameter is the amount to interpolate between the two values where 0.0 - * equal to the first point, 0.1 is very near the first point, 0.5 is - * half-way in between, and 1.0 is equal to the second point. If the - * value of amt is more than 1.0 or less than 0.0, the number will be - * calculated accordingly in the ratio of the two given numbers. The lerp - * function is convenient for creating motion along a straight - * path and for drawing dotted lines. - * - * @method lerp - * @param {Number} start first value - * @param {Number} stop second value - * @param {Number} amt number - * @return {Number} lerped value - * @example - *
- * function setup() { - * background(200); - * let a = 20; - * let b = 80; - * let c = lerp(a, b, 0.2); - * let d = lerp(a, b, 0.5); - * let e = lerp(a, b, 0.8); - * - * let y = 50; - * - * strokeWeight(5); - * stroke(0); // Draw the original points in black - * point(a, y); - * point(b, y); - * - * stroke(100); // Draw the lerp points in gray - * point(c, y); - * point(d, y); - * point(e, y); - * } - *
- * - * @alt - * 5 points horizontally staggered mid-canvas. mid 3 are grey, outer black - * - */ - p5.prototype.lerp = function(start, stop, amt) { - p5._validateParameters('lerp', arguments); - return amt * (stop - start) + start; - }; - - /** - * Calculates the natural logarithm (the base-e logarithm) of a number. This - * function expects the n parameter to be a value greater than 0.0. Maps to - * Math.log(). - * - * @method log - * @param {Number} n number greater than 0 - * @return {Number} natural logarithm of n - * @example - *
- * function draw() { - * background(200); - * let maxX = 2.8; - * let maxY = 1.5; - * - * // Compute the natural log of a value between 0 and maxX - * let xValue = map(mouseX, 0, width, 0, maxX); - * let yValue, y; - * if (xValue > 0) { - // Cannot take the log of a negative number. - * yValue = log(xValue); - * y = map(yValue, -maxY, maxY, height, 0); - * - * // Display the calculation occurring. - * let legend = 'log(' + nf(xValue, 1, 2) + ')\n= ' + nf(yValue, 1, 3); - * stroke(150); - * line(mouseX, y, mouseX, height); - * fill(0); - * text(legend, 5, 15); - * noStroke(); - * ellipse(mouseX, y, 7, 7); - * } - * - * // Draw the log(x) curve, - * // over the domain of x from 0 to maxX - * noFill(); - * stroke(0); - * beginShape(); - * for (let x = 0; x < width; x++) { - * xValue = map(x, 0, width, 0, maxX); - * yValue = log(xValue); - * y = map(yValue, -maxY, maxY, height, 0); - * vertex(x, y); - * } - * endShape(); - * line(0, 0, 0, height); - * line(0, height / 2, width, height / 2); - * } - *
- * - * @alt - * ellipse moves along a curve with mouse x. natural logarithm of n displayed. - * - */ - p5.prototype.log = Math.log; - - /** - * Calculates the magnitude (or length) of a vector. A vector is a direction - * in space commonly used in computer graphics and linear algebra. Because it - * has no "start" position, the magnitude of a vector can be thought of as - * the distance from the coordinate 0,0 to its x,y value. Therefore, mag() is - * a shortcut for writing dist(0, 0, x, y). - * - * @method mag - * @param {Number} a first value - * @param {Number} b second value - * @return {Number} magnitude of vector from (0,0) to (a,b) - * @example - *
- * function setup() { - * let x1 = 20; - * let x2 = 80; - * let y1 = 30; - * let y2 = 70; - * - * line(0, 0, x1, y1); - * print(mag(x1, y1)); // Prints "36.05551275463989" - * line(0, 0, x2, y1); - * print(mag(x2, y1)); // Prints "85.44003745317531" - * line(0, 0, x1, y2); - * print(mag(x1, y2)); // Prints "72.80109889280519" - * line(0, 0, x2, y2); - * print(mag(x2, y2)); // Prints "106.3014581273465" - * } - *
- * - * @alt - * 4 lines of different length radiate from top left of canvas. - * - */ - p5.prototype.mag = function(x, y) { - p5._validateParameters('mag', arguments); - return hypot(x, y); - }; - - /** - * Re-maps a number from one range to another. - *

- * In the first example above, the number 25 is converted from a value in the - * range of 0 to 100 into a value that ranges from the left edge of the - * window (0) to the right edge (width). - * - * @method map - * @param {Number} value the incoming value to be converted - * @param {Number} start1 lower bound of the value's current range - * @param {Number} stop1 upper bound of the value's current range - * @param {Number} start2 lower bound of the value's target range - * @param {Number} stop2 upper bound of the value's target range - * @param {Boolean} [withinBounds] constrain the value to the newly mapped range - * @return {Number} remapped number - * @example - *
- * let value = 25; - * let m = map(value, 0, 100, 0, width); - * ellipse(m, 50, 10, 10); -
- * - *
- * function setup() { - * noStroke(); - * } - * - * function draw() { - * background(204); - * let x1 = map(mouseX, 0, width, 25, 75); - * ellipse(x1, 25, 25, 25); - * //This ellipse is constrained to the 0-100 range - * //after setting withinBounds to true - * let x2 = map(mouseX, 0, width, 0, 100, true); - * ellipse(x2, 75, 25, 25); - * } -
- * - * @alt - * 10 by 10 white ellipse with in mid left canvas - * 2 25 by 25 white ellipses move with mouse x. Bottom has more range from X - * - */ - p5.prototype.map = function(n, start1, stop1, start2, stop2, withinBounds) { - p5._validateParameters('map', arguments); - var newval = (n - start1) / (stop1 - start1) * (stop2 - start2) + start2; - if (!withinBounds) { - return newval; - } - if (start2 < stop2) { - return this.constrain(newval, start2, stop2); - } else { - return this.constrain(newval, stop2, start2); - } - }; - - /** - * Determines the largest value in a sequence of numbers, and then returns - * that value. max() accepts any number of Number parameters, or an Array - * of any length. - * - * @method max - * @param {Number} n0 Number to compare - * @param {Number} n1 Number to compare - * @return {Number} maximum Number - * @example - *
- * function setup() { - * // Change the elements in the array and run the sketch - * // to show how max() works! - * let numArray = [2, 1, 5, 4, 8, 9]; - * fill(0); - * noStroke(); - * text('Array Elements', 0, 10); - * // Draw all numbers in the array - * let spacing = 15; - * let elemsY = 25; - * for (let i = 0; i < numArray.length; i++) { - * text(numArray[i], i * spacing, elemsY); - * } - * let maxX = 33; - * let maxY = 80; - * // Draw the Maximum value in the array. - * textSize(32); - * text(max(numArray), maxX, maxY); - * } - *
- * - * @alt - * Small text at top reads: Array Elements 2 1 5 4 8 9. Large text at center: 9 - * - */ - /** - * @method max - * @param {Number[]} nums Numbers to compare - * @return {Number} - */ - p5.prototype.max = function() { - p5._validateParameters('max', arguments); - if (arguments[0] instanceof Array) { - return Math.max.apply(null, arguments[0]); - } else { - return Math.max.apply(null, arguments); - } - }; - - /** - * Determines the smallest value in a sequence of numbers, and then returns - * that value. min() accepts any number of Number parameters, or an Array - * of any length. - * - * @method min - * @param {Number} n0 Number to compare - * @param {Number} n1 Number to compare - * @return {Number} minimum Number - * @example - *
- * function setup() { - * // Change the elements in the array and run the sketch - * // to show how min() works! - * let numArray = [2, 1, 5, 4, 8, 9]; - * fill(0); - * noStroke(); - * text('Array Elements', 0, 10); - * // Draw all numbers in the array - * let spacing = 15; - * let elemsY = 25; - * for (let i = 0; i < numArray.length; i++) { - * text(numArray[i], i * spacing, elemsY); - * } - * let maxX = 33; - * let maxY = 80; - * // Draw the Minimum value in the array. - * textSize(32); - * text(min(numArray), maxX, maxY); - * } - *
- * - * @alt - * Small text at top reads: Array Elements 2 1 5 4 8 9. Large text at center: 1 - * - */ - /** - * @method min - * @param {Number[]} nums Numbers to compare - * @return {Number} - */ - p5.prototype.min = function() { - p5._validateParameters('min', arguments); - if (arguments[0] instanceof Array) { - return Math.min.apply(null, arguments[0]); - } else { - return Math.min.apply(null, arguments); - } - }; - - /** - * Normalizes a number from another range into a value between 0 and 1. - * Identical to map(value, low, high, 0, 1). - * Numbers outside of the range are not clamped to 0 and 1, because - * out-of-range values are often intentional and useful. (See the example above.) - * - * @method norm - * @param {Number} value incoming value to be normalized - * @param {Number} start lower bound of the value's current range - * @param {Number} stop upper bound of the value's current range - * @return {Number} normalized number - * @example - *
- * function draw() { - * background(200); - * let currentNum = mouseX; - * let lowerBound = 0; - * let upperBound = width; //100; - * let normalized = norm(currentNum, lowerBound, upperBound); - * let lineY = 70; - * stroke(3); - * line(0, lineY, width, lineY); - * //Draw an ellipse mapped to the non-normalized value. - * noStroke(); - * fill(50); - * let s = 7; // ellipse size - * ellipse(currentNum, lineY, s, s); - * - * // Draw the guide - * let guideY = lineY + 15; - * text('0', 0, guideY); - * textAlign(RIGHT); - * text('100', width, guideY); - * - * // Draw the normalized value - * textAlign(LEFT); - * fill(0); - * textSize(32); - * let normalY = 40; - * let normalX = 20; - * text(normalized, normalX, normalY); - * } - *
- * - * @alt - * ellipse moves with mouse. 0 shown left & 100 right and updating values center - * - */ - p5.prototype.norm = function(n, start, stop) { - p5._validateParameters('norm', arguments); - return this.map(n, start, stop, 0, 1); - }; - - /** - * Facilitates exponential expressions. The pow() function is an efficient - * way of multiplying numbers by themselves (or their reciprocals) in large - * quantities. For example, pow(3, 5) is equivalent to the expression - * 3*3*3*3*3 and pow(3, -5) is equivalent to 1 / 3*3*3*3*3. Maps to - * Math.pow(). - * - * @method pow - * @param {Number} n base of the exponential expression - * @param {Number} e power by which to raise the base - * @return {Number} n^e - * @example - *
- * function setup() { - * //Exponentially increase the size of an ellipse. - * let eSize = 3; // Original Size - * let eLoc = 10; // Original Location - * - * ellipse(eLoc, eLoc, eSize, eSize); - * - * ellipse(eLoc * 2, eLoc * 2, pow(eSize, 2), pow(eSize, 2)); - * - * ellipse(eLoc * 4, eLoc * 4, pow(eSize, 3), pow(eSize, 3)); - * - * ellipse(eLoc * 8, eLoc * 8, pow(eSize, 4), pow(eSize, 4)); - * } - *
- * - * @alt - * small to large ellipses radiating from top left of canvas - * - */ - p5.prototype.pow = Math.pow; - - /** - * Calculates the integer closest to the n parameter. For example, - * round(133.8) returns the value 134. Maps to Math.round(). - * - * @method round - * @param {Number} n number to round - * @return {Integer} rounded number - * @example - *
- * function draw() { - * background(200); - * //map, mouseX between 0 and 5. - * let ax = map(mouseX, 0, 100, 0, 5); - * let ay = 66; - * - * // Round the mapped number. - * let bx = round(map(mouseX, 0, 100, 0, 5)); - * let by = 33; - * - * // Multiply the mapped numbers by 20 to more easily - * // see the changes. - * stroke(0); - * fill(0); - * line(0, ay, ax * 20, ay); - * line(0, by, bx * 20, by); - * - * // Reformat the float returned by map and draw it. - * noStroke(); - * text(nfc(ax, 2), ax, ay - 5); - * text(nfc(bx, 1), bx, by - 5); - * } - *
- * - * @alt - * horizontal center line squared values displayed on top and regular on bottom. - * - */ - p5.prototype.round = Math.round; - - /** - * Squares a number (multiplies a number by itself). The result is always a - * positive number, as multiplying two negative numbers always yields a - * positive result. For example, -1 * -1 = 1. - * - * @method sq - * @param {Number} n number to square - * @return {Number} squared number - * @example - *
- * function draw() { - * background(200); - * let eSize = 7; - * let x1 = map(mouseX, 0, width, 0, 10); - * let y1 = 80; - * let x2 = sq(x1); - * let y2 = 20; - * - * // Draw the non-squared. - * line(0, y1, width, y1); - * ellipse(x1, y1, eSize, eSize); - * - * // Draw the squared. - * line(0, y2, width, y2); - * ellipse(x2, y2, eSize, eSize); - * - * // Draw dividing line. - * stroke(100); - * line(0, height / 2, width, height / 2); - * - * // Draw text. - * let spacing = 15; - * noStroke(); - * fill(0); - * text('x = ' + x1, 0, y1 + spacing); - * text('sq(x) = ' + x2, 0, y2 + spacing); - * } - *
- * - * @alt - * horizontal center line squared values displayed on top and regular on bottom. - * - */ - p5.prototype.sq = function(n) { - return n * n; - }; - - /** - * Calculates the square root of a number. The square root of a number is - * always positive, even though there may be a valid negative root. The - * square root s of number a is such that s*s = a. It is the opposite of - * squaring. Maps to Math.sqrt(). - * - * @method sqrt - * @param {Number} n non-negative number to square root - * @return {Number} square root of number - * @example - *
- * function draw() { - * background(200); - * let eSize = 7; - * let x1 = mouseX; - * let y1 = 80; - * let x2 = sqrt(x1); - * let y2 = 20; - * - * // Draw the non-squared. - * line(0, y1, width, y1); - * ellipse(x1, y1, eSize, eSize); - * - * // Draw the squared. - * line(0, y2, width, y2); - * ellipse(x2, y2, eSize, eSize); - * - * // Draw dividing line. - * stroke(100); - * line(0, height / 2, width, height / 2); - * - * // Draw text. - * noStroke(); - * fill(0); - * let spacing = 15; - * text('x = ' + x1, 0, y1 + spacing); - * text('sqrt(x) = ' + x2, 0, y2 + spacing); - * } - *
- * - * @alt - * horizontal center line squareroot values displayed on top and regular on bottom. - * - */ - p5.prototype.sqrt = Math.sqrt; - - // Calculate the length of the hypotenuse of a right triangle - // This won't under- or overflow in intermediate steps - // https://en.wikipedia.org/wiki/Hypot - function hypot(x, y, z) { - // Use the native implementation if it's available - if (typeof Math.hypot === 'function') { - return Math.hypot.apply(null, arguments); - } - - // Otherwise use the V8 implementation - // https://github.com/v8/v8/blob/8cd3cf297287e581a49e487067f5cbd991b27123/src/js/math.js#L217 - var length = arguments.length; - var args = []; - var max = 0; - for (var i = 0; i < length; i++) { - var n = arguments[i]; - n = +n; - if (n === Infinity || n === -Infinity) { - return Infinity; - } - n = Math.abs(n); - if (n > max) { - max = n; - } - args[i] = n; - } - - if (max === 0) { - max = 1; - } - var sum = 0; - var compensation = 0; - for (var j = 0; j < length; j++) { - var m = args[j] / max; - var summand = m * m - compensation; - var preliminary = sum + summand; - compensation = preliminary - sum - summand; - sum = preliminary; - } - return Math.sqrt(sum) * max; - } - - module.exports = p5; - }, - { '../core/main': 24 } - ], - 53: [ - function(_dereq_, module, exports) { - /** - * @module Math - * @submodule Math - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - /** - * Creates a new p5.Vector (the datatype for storing vectors). This provides a - * two or three dimensional vector, specifically a Euclidean (also known as - * geometric) vector. A vector is an entity that has both magnitude and - * direction. - * - * @method createVector - * @param {Number} [x] x component of the vector - * @param {Number} [y] y component of the vector - * @param {Number} [z] z component of the vector - * @return {p5.Vector} - * @example - *
- * function setup() { - * createCanvas(100, 100, WEBGL); - * noStroke(); - * fill(255, 102, 204); - * } - * - * function draw() { - * background(255); - * pointLight(color(255), createVector(sin(millis() / 1000) * 20, -40, -10)); - * scale(0.75); - * sphere(); - * } - *
- * - * @alt - * a purple sphere lit by a point light oscillating horizontally - */ - p5.prototype.createVector = function(x, y, z) { - if (this instanceof p5) { - return new p5.Vector(this, arguments); - } else { - return new p5.Vector(x, y, z); - } - }; - - module.exports = p5; - }, - { '../core/main': 24 } - ], - 54: [ - function(_dereq_, module, exports) { - ////////////////////////////////////////////////////////////// - - // http://mrl.nyu.edu/~perlin/noise/ - // Adapting from PApplet.java - // which was adapted from toxi - // which was adapted from the german demo group farbrausch - // as used in their demo "art": http://www.farb-rausch.de/fr010src.zip - - // someday we might consider using "improved noise" - // http://mrl.nyu.edu/~perlin/paper445.pdf - // See: https://github.com/shiffman/The-Nature-of-Code-Examples-p5.js/ - // blob/master/introduction/Noise1D/noise.js - - /** - * @module Math - * @submodule Noise - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - var PERLIN_YWRAPB = 4; - var PERLIN_YWRAP = 1 << PERLIN_YWRAPB; - var PERLIN_ZWRAPB = 8; - var PERLIN_ZWRAP = 1 << PERLIN_ZWRAPB; - var PERLIN_SIZE = 4095; - - var perlin_octaves = 4; // default to medium smooth - var perlin_amp_falloff = 0.5; // 50% reduction/octave - - var scaled_cosine = function scaled_cosine(i) { - return 0.5 * (1.0 - Math.cos(i * Math.PI)); - }; - - var perlin; // will be initialized lazily by noise() or noiseSeed() - - /** - * Returns the Perlin noise value at specified coordinates. Perlin noise is - * a random sequence generator producing a more natural ordered, harmonic - * succession of numbers compared to the standard random() function. - * It was invented by Ken Perlin in the 1980s and been used since in - * graphical applications to produce procedural textures, natural motion, - * shapes, terrains etc.

The main difference to the - * random() function is that Perlin noise is defined in an infinite - * n-dimensional space where each pair of coordinates corresponds to a - * fixed semi-random value (fixed only for the lifespan of the program; see - * the noiseSeed() function). p5.js can compute 1D, 2D and 3D noise, - * depending on the number of coordinates given. The resulting value will - * always be between 0.0 and 1.0. The noise value can be animated by moving - * through the noise space as demonstrated in the example above. The 2nd - * and 3rd dimension can also be interpreted as time.

The actual - * noise is structured similar to an audio signal, in respect to the - * function's use of frequencies. Similar to the concept of harmonics in - * physics, perlin noise is computed over several octaves which are added - * together for the final result.

Another way to adjust the - * character of the resulting sequence is the scale of the input - * coordinates. As the function works within an infinite space the value of - * the coordinates doesn't matter as such, only the distance between - * successive coordinates does (eg. when using noise() within a - * loop). As a general rule the smaller the difference between coordinates, - * the smoother the resulting noise sequence will be. Steps of 0.005-0.03 - * work best for most applications, but this will differ depending on use. - * - * - * @method noise - * @param {Number} x x-coordinate in noise space - * @param {Number} [y] y-coordinate in noise space - * @param {Number} [z] z-coordinate in noise space - * @return {Number} Perlin noise value (between 0 and 1) at specified - * coordinates - * @example - *
- * - * let xoff = 0.0; - * - * function draw() { - * background(204); - * xoff = xoff + 0.01; - * let n = noise(xoff) * width; - * line(n, 0, n, height); - * } - * - *
- *
- * let noiseScale=0.02; - * - * function draw() { - * background(0); - * for (let x=0; x < width; x++) { - * let noiseVal = noise((mouseX+x)*noiseScale, mouseY*noiseScale); - * stroke(noiseVal*255); - * line(x, mouseY+noiseVal*80, x, height); - * } - * } - * - *
- * - * @alt - * vertical line moves left to right with updating noise values. - * horizontal wave pattern effected by mouse x-position & updating noise values. - * - */ - - p5.prototype.noise = function(x, y, z) { - y = y || 0; - z = z || 0; - - if (perlin == null) { - perlin = new Array(PERLIN_SIZE + 1); - for (var i = 0; i < PERLIN_SIZE + 1; i++) { - perlin[i] = Math.random(); - } - } - - if (x < 0) { - x = -x; - } - if (y < 0) { - y = -y; - } - if (z < 0) { - z = -z; - } - - var xi = Math.floor(x), - yi = Math.floor(y), - zi = Math.floor(z); - var xf = x - xi; - var yf = y - yi; - var zf = z - zi; - var rxf, ryf; - - var r = 0; - var ampl = 0.5; - - var n1, n2, n3; - - for (var o = 0; o < perlin_octaves; o++) { - var of = xi + (yi << PERLIN_YWRAPB) + (zi << PERLIN_ZWRAPB); - - rxf = scaled_cosine(xf); - ryf = scaled_cosine(yf); - - n1 = perlin[of & PERLIN_SIZE]; - n1 += rxf * (perlin[(of + 1) & PERLIN_SIZE] - n1); - n2 = perlin[(of + PERLIN_YWRAP) & PERLIN_SIZE]; - n2 += rxf * (perlin[(of + PERLIN_YWRAP + 1) & PERLIN_SIZE] - n2); - n1 += ryf * (n2 - n1); - - of += PERLIN_ZWRAP; - n2 = perlin[of & PERLIN_SIZE]; - n2 += rxf * (perlin[(of + 1) & PERLIN_SIZE] - n2); - n3 = perlin[(of + PERLIN_YWRAP) & PERLIN_SIZE]; - n3 += rxf * (perlin[(of + PERLIN_YWRAP + 1) & PERLIN_SIZE] - n3); - n2 += ryf * (n3 - n2); - - n1 += scaled_cosine(zf) * (n2 - n1); - - r += n1 * ampl; - ampl *= perlin_amp_falloff; - xi <<= 1; - xf *= 2; - yi <<= 1; - yf *= 2; - zi <<= 1; - zf *= 2; - - if (xf >= 1.0) { - xi++; - xf--; - } - if (yf >= 1.0) { - yi++; - yf--; - } - if (zf >= 1.0) { - zi++; - zf--; - } - } - return r; - }; - - /** - * - * Adjusts the character and level of detail produced by the Perlin noise - * function. Similar to harmonics in physics, noise is computed over - * several octaves. Lower octaves contribute more to the output signal and - * as such define the overall intensity of the noise, whereas higher octaves - * create finer grained details in the noise sequence. - *

- * By default, noise is computed over 4 octaves with each octave contributing - * exactly half than its predecessor, starting at 50% strength for the 1st - * octave. This falloff amount can be changed by adding an additional function - * parameter. Eg. a falloff factor of 0.75 means each octave will now have - * 75% impact (25% less) of the previous lower octave. Any value between - * 0.0 and 1.0 is valid, however note that values greater than 0.5 might - * result in greater than 1.0 values returned by noise(). - *

- * By changing these parameters, the signal created by the noise() - * function can be adapted to fit very specific needs and characteristics. - * - * @method noiseDetail - * @param {Number} lod number of octaves to be used by the noise - * @param {Number} falloff falloff factor for each octave - * @example - *
- * - * let noiseVal; - * let noiseScale = 0.02; - * - * function setup() { - * createCanvas(100, 100); - * } - * - * function draw() { - * background(0); - * for (let y = 0; y < height; y++) { - * for (let x = 0; x < width / 2; x++) { - * noiseDetail(2, 0.2); - * noiseVal = noise((mouseX + x) * noiseScale, (mouseY + y) * noiseScale); - * stroke(noiseVal * 255); - * point(x, y); - * noiseDetail(8, 0.65); - * noiseVal = noise( - * (mouseX + x + width / 2) * noiseScale, - * (mouseY + y) * noiseScale - * ); - * stroke(noiseVal * 255); - * point(x + width / 2, y); - * } - * } - * } - * - *
- * - * @alt - * 2 vertical grey smokey patterns affected my mouse x-position and noise. - * - */ - p5.prototype.noiseDetail = function(lod, falloff) { - if (lod > 0) { - perlin_octaves = lod; - } - if (falloff > 0) { - perlin_amp_falloff = falloff; - } - }; - - /** - * Sets the seed value for noise(). By default, noise() - * produces different results each time the program is run. Set the - * value parameter to a constant to return the same pseudo-random - * numbers each time the software is run. - * - * @method noiseSeed - * @param {Number} seed the seed value - * @example - *
- * let xoff = 0.0; - * - * function setup() { - * noiseSeed(99); - * stroke(0, 10); - * } - * - * function draw() { - * xoff = xoff + .01; - * let n = noise(xoff) * width; - * line(n, 0, n, height); - * } - * - *
- * - * @alt - * vertical grey lines drawing in pattern affected by noise. - * - */ - p5.prototype.noiseSeed = function(seed) { - // Linear Congruential Generator - // Variant of a Lehman Generator - var lcg = (function() { - // Set to values from http://en.wikipedia.org/wiki/Numerical_Recipes - // m is basically chosen to be large (as it is the max period) - // and for its relationships to a and c - var m = 4294967296; - // a - 1 should be divisible by m's prime factors - var a = 1664525; - // c and m should be co-prime - var c = 1013904223; - var seed, z; - return { - setSeed: function setSeed(val) { - // pick a random seed if val is undefined or null - // the >>> 0 casts the seed to an unsigned 32-bit integer - z = seed = (val == null ? Math.random() * m : val) >>> 0; - }, - getSeed: function getSeed() { - return seed; - }, - rand: function rand() { - // define the recurrence relationship - z = (a * z + c) % m; - // return a float in [0, 1) - // if z = m then z / m = 0 therefore (z % m) / m < 1 always - return z / m; - } - }; - })(); - - lcg.setSeed(seed); - perlin = new Array(PERLIN_SIZE + 1); - for (var i = 0; i < PERLIN_SIZE + 1; i++) { - perlin[i] = lcg.rand(); - } - }; - - module.exports = p5; - }, - { '../core/main': 24 } - ], - 55: [ - function(_dereq_, module, exports) { - /** - * @module Math - * @submodule Math - * @requires constants - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - var constants = _dereq_('../core/constants'); - - /** - * A class to describe a two or three dimensional vector, specifically - * a Euclidean (also known as geometric) vector. A vector is an entity - * that has both magnitude and direction. The datatype, however, stores - * the components of the vector (x, y for 2D, and x, y, z for 3D). The magnitude - * and direction can be accessed via the methods mag() and heading(). - *

- * In many of the p5.js examples, you will see p5.Vector used to describe a - * position, velocity, or acceleration. For example, if you consider a rectangle - * moving across the screen, at any given instant it has a position (a vector - * that points from the origin to its location), a velocity (the rate at which - * the object's position changes per time unit, expressed as a vector), and - * acceleration (the rate at which the object's velocity changes per time - * unit, expressed as a vector). - *

- * Since vectors represent groupings of values, we cannot simply use - * traditional addition/multiplication/etc. Instead, we'll need to do some - * "vector" math, which is made easy by the methods inside the p5.Vector class. - * - * @class p5.Vector - * @param {Number} [x] x component of the vector - * @param {Number} [y] y component of the vector - * @param {Number} [z] z component of the vector - * @example - *
- * - * let v1 = createVector(40, 50); - * let v2 = createVector(40, 50); - * - * ellipse(v1.x, v1.y, 50, 50); - * ellipse(v2.x, v2.y, 50, 50); - * v1.add(v2); - * ellipse(v1.x, v1.y, 50, 50); - * - *
- * - * @alt - * 2 white ellipses. One center-left the other bottom right and off canvas - * - */ - p5.Vector = function Vector() { - var x, y, z; - // This is how it comes in with createVector() - if (arguments[0] instanceof p5) { - // save reference to p5 if passed in - this.p5 = arguments[0]; - x = arguments[1][0] || 0; - y = arguments[1][1] || 0; - z = arguments[1][2] || 0; - // This is what we'll get with new p5.Vector() - } else { - x = arguments[0] || 0; - y = arguments[1] || 0; - z = arguments[2] || 0; - } - /** - * The x component of the vector - * @property x {Number} - */ - this.x = x; - /** - * The y component of the vector - * @property y {Number} - */ - this.y = y; - /** - * The z component of the vector - * @property z {Number} - */ - this.z = z; - }; - - /** - * Returns a string representation of a vector v by calling String(v) - * or v.toString(). This method is useful for logging vectors in the - * console. - * @method toString - * @return {String} - * @example - *
- * - * function setup() { - * let v = createVector(20, 30); - * print(String(v)); // prints "p5.Vector Object : [20, 30, 0]" - * } - * - *
- * - *
- * - * function draw() { - * background(240); - * - * let v0 = createVector(0, 0); - * let v1 = createVector(mouseX, mouseY); - * drawArrow(v0, v1, 'black'); - * - * noStroke(); - * text(v1.toString(), 10, 25, 90, 75); - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- */ - p5.Vector.prototype.toString = function p5VectorToString() { - return 'p5.Vector Object : [' + this.x + ', ' + this.y + ', ' + this.z + ']'; - }; - - /** - * Sets the x, y, and z component of the vector using two or three separate - * variables, the data from a p5.Vector, or the values from a float array. - * @method set - * @param {Number} [x] the x component of the vector - * @param {Number} [y] the y component of the vector - * @param {Number} [z] the z component of the vector - * @chainable - * @example - *
- * - * function setup() { - * let v = createVector(1, 2, 3); - * v.set(4, 5, 6); // Sets vector to [4, 5, 6] - * - * let v1 = createVector(0, 0, 0); - * let arr = [1, 2, 3]; - * v1.set(arr); // Sets vector to [1, 2, 3] - * } - * - *
- * - *
- * - * let v0, v1; - * function setup() { - * createCanvas(100, 100); - * - * v0 = createVector(0, 0); - * v1 = createVector(50, 50); - * } - * - * function draw() { - * background(240); - * - * drawArrow(v0, v1, 'black'); - * v1.set(v1.x + random(-1, 1), v1.y + random(-1, 1)); - * - * noStroke(); - * text('x: ' + round(v1.x) + ' y: ' + round(v1.y), 20, 90); - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- */ - /** - * @method set - * @param {p5.Vector|Number[]} value the vector to set - * @chainable - */ - p5.Vector.prototype.set = function set(x, y, z) { - if (x instanceof p5.Vector) { - this.x = x.x || 0; - this.y = x.y || 0; - this.z = x.z || 0; - return this; - } - if (x instanceof Array) { - this.x = x[0] || 0; - this.y = x[1] || 0; - this.z = x[2] || 0; - return this; - } - this.x = x || 0; - this.y = y || 0; - this.z = z || 0; - return this; - }; - - /** - * Gets a copy of the vector, returns a p5.Vector object. - * - * @method copy - * @return {p5.Vector} the copy of the p5.Vector object - * @example - *
- * - * let v1 = createVector(1, 2, 3); - * let v2 = v1.copy(); - * print(v1.x === v2.x && v1.y === v2.y && v1.z === v2.z); - * // Prints "true" - * - *
- */ - p5.Vector.prototype.copy = function copy() { - if (this.p5) { - return new p5.Vector(this.p5, [this.x, this.y, this.z]); - } else { - return new p5.Vector(this.x, this.y, this.z); - } - }; - - /** - * Adds x, y, and z components to a vector, adds one vector to another, or - * adds two independent vectors together. The version of the method that adds - * two vectors together is a static method and returns a p5.Vector, the others - * acts directly on the vector. See the examples for more context. - * - * @method add - * @param {Number} x the x component of the vector to be added - * @param {Number} [y] the y component of the vector to be added - * @param {Number} [z] the z component of the vector to be added - * @chainable - * @example - *
- * - * let v = createVector(1, 2, 3); - * v.add(4, 5, 6); - * // v's components are set to [5, 7, 9] - * - *
- * - *
- * - * // Static method - * let v1 = createVector(1, 2, 3); - * let v2 = createVector(2, 3, 4); - * - * let v3 = p5.Vector.add(v1, v2); - * // v3 has components [3, 5, 7] - * print(v3); - * - *
- * - *
- * - * // red vector + blue vector = purple vector - * function draw() { - * background(240); - * - * let v0 = createVector(0, 0); - * let v1 = createVector(mouseX, mouseY); - * drawArrow(v0, v1, 'red'); - * - * let v2 = createVector(-30, 20); - * drawArrow(v1, v2, 'blue'); - * - * let v3 = p5.Vector.add(v1, v2); - * drawArrow(v0, v3, 'purple'); - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- */ - /** - * @method add - * @param {p5.Vector|Number[]} value the vector to add - * @chainable - */ - p5.Vector.prototype.add = function add(x, y, z) { - if (x instanceof p5.Vector) { - this.x += x.x || 0; - this.y += x.y || 0; - this.z += x.z || 0; - return this; - } - if (x instanceof Array) { - this.x += x[0] || 0; - this.y += x[1] || 0; - this.z += x[2] || 0; - return this; - } - this.x += x || 0; - this.y += y || 0; - this.z += z || 0; - return this; - }; - - /** - * Subtracts x, y, and z components from a vector, subtracts one vector from - * another, or subtracts two independent vectors. The version of the method - * that subtracts two vectors is a static method and returns a p5.Vector, the - * other acts directly on the vector. See the examples for more context. - * - * @method sub - * @param {Number} x the x component of the vector to subtract - * @param {Number} [y] the y component of the vector to subtract - * @param {Number} [z] the z component of the vector to subtract - * @chainable - * @example - *
- * - * let v = createVector(4, 5, 6); - * v.sub(1, 1, 1); - * // v's components are set to [3, 4, 5] - * - *
- * - *
- * - * // Static method - * let v1 = createVector(2, 3, 4); - * let v2 = createVector(1, 2, 3); - * - * let v3 = p5.Vector.sub(v1, v2); - * // v3 has components [1, 1, 1] - * print(v3); - * - *
- * - *
- * - * // red vector - blue vector = purple vector - * function draw() { - * background(240); - * - * let v0 = createVector(0, 0); - * let v1 = createVector(70, 50); - * drawArrow(v0, v1, 'red'); - * - * let v2 = createVector(mouseX, mouseY); - * drawArrow(v0, v2, 'blue'); - * - * let v3 = p5.Vector.sub(v1, v2); - * drawArrow(v2, v3, 'purple'); - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- */ - /** - * @method sub - * @param {p5.Vector|Number[]} value the vector to subtract - * @chainable - */ - p5.Vector.prototype.sub = function sub(x, y, z) { - if (x instanceof p5.Vector) { - this.x -= x.x || 0; - this.y -= x.y || 0; - this.z -= x.z || 0; - return this; - } - if (x instanceof Array) { - this.x -= x[0] || 0; - this.y -= x[1] || 0; - this.z -= x[2] || 0; - return this; - } - this.x -= x || 0; - this.y -= y || 0; - this.z -= z || 0; - return this; - }; - - /** - * Multiply the vector by a scalar. The static version of this method - * creates a new p5.Vector while the non static version acts on the vector - * directly. See the examples for more context. - * - * @method mult - * @param {Number} n the number to multiply with the vector - * @chainable - * @example - *
- * - * let v = createVector(1, 2, 3); - * v.mult(2); - * // v's components are set to [2, 4, 6] - * - *
- * - *
- * - * // Static method - * let v1 = createVector(1, 2, 3); - * let v2 = p5.Vector.mult(v1, 2); - * // v2 has components [2, 4, 6] - * print(v2); - * - *
- * - *
- * - * function draw() { - * background(240); - * - * let v0 = createVector(50, 50); - * let v1 = createVector(25, -25); - * drawArrow(v0, v1, 'red'); - * - * let num = map(mouseX, 0, width, -2, 2, true); - * let v2 = p5.Vector.mult(v1, num); - * drawArrow(v0, v2, 'blue'); - * - * noStroke(); - * text('multiplied by ' + num.toFixed(2), 5, 90); - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- */ - p5.Vector.prototype.mult = function mult(n) { - if (!(typeof n === 'number' && isFinite(n))) { - console.warn( - 'p5.Vector.prototype.mult:', - 'n is undefined or not a finite number' - ); - - return this; - } - this.x *= n; - this.y *= n; - this.z *= n; - return this; - }; - - /** - * Divide the vector by a scalar. The static version of this method creates a - * new p5.Vector while the non static version acts on the vector directly. - * See the examples for more context. - * - * @method div - * @param {number} n the number to divide the vector by - * @chainable - * @example - *
- * - * let v = createVector(6, 4, 2); - * v.div(2); //v's components are set to [3, 2, 1] - * - *
- * - *
- * - * // Static method - * let v1 = createVector(6, 4, 2); - * let v2 = p5.Vector.div(v1, 2); - * // v2 has components [3, 2, 1] - * print(v2); - * - *
- * - *
- * - * function draw() { - * background(240); - * - * let v0 = createVector(0, 100); - * let v1 = createVector(50, -50); - * drawArrow(v0, v1, 'red'); - * - * let num = map(mouseX, 0, width, 10, 0.5, true); - * let v2 = p5.Vector.div(v1, num); - * drawArrow(v0, v2, 'blue'); - * - * noStroke(); - * text('divided by ' + num.toFixed(2), 10, 90); - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- */ - p5.Vector.prototype.div = function div(n) { - if (!(typeof n === 'number' && isFinite(n))) { - console.warn( - 'p5.Vector.prototype.div:', - 'n is undefined or not a finite number' - ); - - return this; - } - if (n === 0) { - console.warn('p5.Vector.prototype.div:', 'divide by 0'); - return this; - } - this.x /= n; - this.y /= n; - this.z /= n; - return this; - }; - - /** - * Calculates the magnitude (length) of the vector and returns the result as - * a float (this is simply the equation sqrt(x*x + y*y + z*z).) - * - * @method mag - * @return {Number} magnitude of the vector - * @example - *
- * - * function draw() { - * background(240); - * - * let v0 = createVector(0, 0); - * let v1 = createVector(mouseX, mouseY); - * drawArrow(v0, v1, 'black'); - * - * noStroke(); - * text('vector length: ' + v1.mag().toFixed(2), 10, 70, 90, 30); - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- *
- * - * let v = createVector(20.0, 30.0, 40.0); - * let m = v.mag(); - * print(m); // Prints "53.85164807134504" - * - *
- */ - p5.Vector.prototype.mag = function mag() { - return Math.sqrt(this.magSq()); - }; - - /** - * Calculates the squared magnitude of the vector and returns the result - * as a float (this is simply the equation (x*x + y*y + z*z).) - * Faster if the real length is not required in the - * case of comparing vectors, etc. - * - * @method magSq - * @return {number} squared magnitude of the vector - * @example - *
- * - * // Static method - * let v1 = createVector(6, 4, 2); - * print(v1.magSq()); // Prints "56" - * - *
- * - *
- * - * function draw() { - * background(240); - * - * let v0 = createVector(0, 0); - * let v1 = createVector(mouseX, mouseY); - * drawArrow(v0, v1, 'black'); - * - * noStroke(); - * text('vector length squared: ' + v1.magSq().toFixed(2), 10, 45, 90, 55); - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- */ - p5.Vector.prototype.magSq = function magSq() { - var x = this.x; - var y = this.y; - var z = this.z; - return x * x + y * y + z * z; - }; - - /** - * Calculates the dot product of two vectors. The version of the method - * that computes the dot product of two independent vectors is a static - * method. See the examples for more context. - * - * - * @method dot - * @param {Number} x x component of the vector - * @param {Number} [y] y component of the vector - * @param {Number} [z] z component of the vector - * @return {Number} the dot product - * - * @example - *
- * - * let v1 = createVector(1, 2, 3); - * let v2 = createVector(2, 3, 4); - * - * print(v1.dot(v2)); // Prints "20" - * - *
- * - *
- * - * //Static method - * let v1 = createVector(1, 2, 3); - * let v2 = createVector(3, 2, 1); - * print(p5.Vector.dot(v1, v2)); // Prints "10" - * - *
- */ - /** - * @method dot - * @param {p5.Vector} value value component of the vector or a p5.Vector - * @return {Number} - */ - p5.Vector.prototype.dot = function dot(x, y, z) { - if (x instanceof p5.Vector) { - return this.dot(x.x, x.y, x.z); - } - return this.x * (x || 0) + this.y * (y || 0) + this.z * (z || 0); - }; - - /** - * Calculates and returns a vector composed of the cross product between - * two vectors. Both the static and non static methods return a new p5.Vector. - * See the examples for more context. - * - * @method cross - * @param {p5.Vector} v p5.Vector to be crossed - * @return {p5.Vector} p5.Vector composed of cross product - * @example - *
- * - * let v1 = createVector(1, 2, 3); - * let v2 = createVector(1, 2, 3); - * - * v1.cross(v2); // v's components are [0, 0, 0] - * - *
- * - *
- * - * // Static method - * let v1 = createVector(1, 0, 0); - * let v2 = createVector(0, 1, 0); - * - * let crossProduct = p5.Vector.cross(v1, v2); - * // crossProduct has components [0, 0, 1] - * print(crossProduct); - * - *
- */ - p5.Vector.prototype.cross = function cross(v) { - var x = this.y * v.z - this.z * v.y; - var y = this.z * v.x - this.x * v.z; - var z = this.x * v.y - this.y * v.x; - if (this.p5) { - return new p5.Vector(this.p5, [x, y, z]); - } else { - return new p5.Vector(x, y, z); - } - }; - - /** - * Calculates the Euclidean distance between two points (considering a - * point as a vector object). - * - * @method dist - * @param {p5.Vector} v the x, y, and z coordinates of a p5.Vector - * @return {Number} the distance - * @example - *
- * - * let v1 = createVector(1, 0, 0); - * let v2 = createVector(0, 1, 0); - * - * let distance = v1.dist(v2); // distance is 1.4142... - * print(distance); - * - *
- * - *
- * - * // Static method - * let v1 = createVector(1, 0, 0); - * let v2 = createVector(0, 1, 0); - * - * let distance = p5.Vector.dist(v1, v2); - * // distance is 1.4142... - * print(distance); - * - *
- * - *
- * - * function draw() { - * background(240); - * - * let v0 = createVector(0, 0); - * - * let v1 = createVector(70, 50); - * drawArrow(v0, v1, 'red'); - * - * let v2 = createVector(mouseX, mouseY); - * drawArrow(v0, v2, 'blue'); - * - * noStroke(); - * text('distance between vectors: ' + v2.dist(v1).toFixed(2), 5, 50, 95, 50); - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- */ - p5.Vector.prototype.dist = function dist(v) { - return v - .copy() - .sub(this) - .mag(); - }; - - /** - * Normalize the vector to length 1 (make it a unit vector). - * - * @method normalize - * @return {p5.Vector} normalized p5.Vector - * @example - *
- * - * let v = createVector(10, 20, 2); - * // v has components [10.0, 20.0, 2.0] - * v.normalize(); - * // v's components are set to - * // [0.4454354, 0.8908708, 0.089087084] - * - *
- *
- * - * function draw() { - * background(240); - * - * let v0 = createVector(50, 50); - * let v1 = createVector(mouseX - 50, mouseY - 50); - * - * drawArrow(v0, v1, 'red'); - * v1.normalize(); - * drawArrow(v0, v1.mult(35), 'blue'); - * - * noFill(); - * ellipse(50, 50, 35 * 2); - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- */ - p5.Vector.prototype.normalize = function normalize() { - var len = this.mag(); - // here we multiply by the reciprocal instead of calling 'div()' - // since div duplicates this zero check. - if (len !== 0) this.mult(1 / len); - return this; - }; - - /** - * Limit the magnitude of this vector to the value used for the max - * parameter. - * - * @method limit - * @param {Number} max the maximum magnitude for the vector - * @chainable - * @example - *
- * - * let v = createVector(10, 20, 2); - * // v has components [10.0, 20.0, 2.0] - * v.limit(5); - * // v's components are set to - * // [2.2271771, 4.4543543, 0.4454354] - * - *
- *
- * - * function draw() { - * background(240); - * - * let v0 = createVector(50, 50); - * let v1 = createVector(mouseX - 50, mouseY - 50); - * - * drawArrow(v0, v1, 'red'); - * drawArrow(v0, v1.limit(35), 'blue'); - * - * noFill(); - * ellipse(50, 50, 35 * 2); - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- */ - p5.Vector.prototype.limit = function limit(max) { - var mSq = this.magSq(); - if (mSq > max * max) { - this.div(Math.sqrt(mSq)) //normalize it - .mult(max); - } - return this; - }; - - /** - * Set the magnitude of this vector to the value used for the len - * parameter. - * - * @method setMag - * @param {number} len the new length for this vector - * @chainable - * @example - *
- * - * let v = createVector(10, 20, 2); - * // v has components [10.0, 20.0, 2.0] - * v.setMag(10); - * // v's components are set to [6.0, 8.0, 0.0] - * - *
- * - *
- * - * function draw() { - * background(240); - * - * let v0 = createVector(0, 0); - * let v1 = createVector(50, 50); - * - * drawArrow(v0, v1, 'red'); - * - * let length = map(mouseX, 0, width, 0, 141, true); - * v1.setMag(length); - * drawArrow(v0, v1, 'blue'); - * - * noStroke(); - * text('magnitude set to: ' + length.toFixed(2), 10, 70, 90, 30); - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- */ - p5.Vector.prototype.setMag = function setMag(n) { - return this.normalize().mult(n); - }; - - /** - * Calculate the angle of rotation for this vector (only 2D vectors) - * - * @method heading - * @return {Number} the angle of rotation - * @example - *
- * - * function setup() { - * let v1 = createVector(30, 50); - * print(v1.heading()); // 1.0303768265243125 - * - * v1 = createVector(40, 50); - * print(v1.heading()); // 0.8960553845713439 - * - * v1 = createVector(30, 70); - * print(v1.heading()); // 1.1659045405098132 - * } - * - *
- * - *
- * - * function draw() { - * background(240); - * - * let v0 = createVector(50, 50); - * let v1 = createVector(mouseX - 50, mouseY - 50); - * - * drawArrow(v0, v1, 'black'); - * - * let myHeading = v1.heading(); - * noStroke(); - * text( - * 'vector heading: ' + - * myHeading.toFixed(2) + - * ' radians or ' + - * degrees(myHeading).toFixed(2) + - * ' degrees', - * 10, - * 50, - * 90, - * 50 - * ); - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- */ - p5.Vector.prototype.heading = function heading() { - var h = Math.atan2(this.y, this.x); - if (this.p5) return this.p5._fromRadians(h); - return h; - }; - - /** - * Rotate the vector by an angle (only 2D vectors), magnitude remains the - * same - * - * @method rotate - * @param {number} angle the angle of rotation - * @chainable - * @example - *
- * - * let v = createVector(10.0, 20.0); - * // v has components [10.0, 20.0, 0.0] - * v.rotate(HALF_PI); - * // v's components are set to [-20.0, 9.999999, 0.0] - * - *
- * - *
- * - * let angle = 0; - * function draw() { - * background(240); - * - * let v0 = createVector(50, 50); - * let v1 = createVector(50, 0); - * - * drawArrow(v0, v1.rotate(angle), 'black'); - * angle += 0.01; - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- */ - p5.Vector.prototype.rotate = function rotate(a) { - var newHeading = this.heading() + a; - if (this.p5) newHeading = this.p5._toRadians(newHeading); - var mag = this.mag(); - this.x = Math.cos(newHeading) * mag; - this.y = Math.sin(newHeading) * mag; - return this; - }; - - /** - * Calculates and returns the angle (in radians) between two vectors. - * @method angleBetween - * @param {p5.Vector} value the x, y, and z components of a p5.Vector - * @return {Number} the angle between (in radians) - * @example - *
- * - * let v1 = createVector(1, 0, 0); - * let v2 = createVector(0, 1, 0); - * - * let angle = v1.angleBetween(v2); - * // angle is PI/2 - * print(angle); - * - *
- * - *
- * - * function draw() { - * background(240); - * let v0 = createVector(50, 50); - * - * let v1 = createVector(50, 0); - * drawArrow(v0, v1, 'red'); - * - * let v2 = createVector(mouseX - 50, mouseY - 50); - * drawArrow(v0, v2, 'blue'); - * - * let angleBetween = v1.angleBetween(v2); - * noStroke(); - * text( - * 'angle between: ' + - * angleBetween.toFixed(2) + - * ' radians or ' + - * degrees(angleBetween).toFixed(2) + - * ' degrees', - * 10, - * 50, - * 90, - * 50 - * ); - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- */ - p5.Vector.prototype.angleBetween = function angleBetween(v) { - var dotmagmag = this.dot(v) / (this.mag() * v.mag()); - // Mathematically speaking: the dotmagmag variable will be between -1 and 1 - // inclusive. Practically though it could be slightly outside this range due - // to floating-point rounding issues. This can make Math.acos return NaN. - // - // Solution: we'll clamp the value to the -1,1 range - var angle = Math.acos(Math.min(1, Math.max(-1, dotmagmag))); - if (this.p5) return this.p5._fromRadians(angle); - return angle; - }; - - /** - * Linear interpolate the vector to another vector - * - * @method lerp - * @param {Number} x the x component - * @param {Number} y the y component - * @param {Number} z the z component - * @param {Number} amt the amount of interpolation; some value between 0.0 - * (old vector) and 1.0 (new vector). 0.9 is very near - * the new vector. 0.5 is halfway in between. - * @chainable - * - * @example - *
- * - * let v = createVector(1, 1, 0); - * - * v.lerp(3, 3, 0, 0.5); // v now has components [2,2,0] - * - *
- * - *
- * - * let v1 = createVector(0, 0, 0); - * let v2 = createVector(100, 100, 0); - * - * let v3 = p5.Vector.lerp(v1, v2, 0.5); - * // v3 has components [50,50,0] - * print(v3); - * - *
- * - *
- * - * let step = 0.01; - * let amount = 0; - * - * function draw() { - * background(240); - * let v0 = createVector(0, 0); - * - * let v1 = createVector(mouseX, mouseY); - * drawArrow(v0, v1, 'red'); - * - * let v2 = createVector(90, 90); - * drawArrow(v0, v2, 'blue'); - * - * if (amount > 1 || amount < 0) { - * step *= -1; - * } - * amount += step; - * let v3 = p5.Vector.lerp(v1, v2, amount); - * - * drawArrow(v0, v3, 'purple'); - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- */ - /** - * @method lerp - * @param {p5.Vector} v the p5.Vector to lerp to - * @param {Number} amt - * @chainable - */ - p5.Vector.prototype.lerp = function lerp(x, y, z, amt) { - if (x instanceof p5.Vector) { - return this.lerp(x.x, x.y, x.z, y); - } - this.x += (x - this.x) * amt || 0; - this.y += (y - this.y) * amt || 0; - this.z += (z - this.z) * amt || 0; - return this; - }; - - /** - * Return a representation of this vector as a float array. This is only - * for temporary use. If used in any other fashion, the contents should be - * copied by using the p5.Vector.copy() method to copy into your own - * array. - * - * @method array - * @return {Number[]} an Array with the 3 values - * @example - *
- * - * function setup() { - * let v = createVector(20, 30); - * print(v.array()); // Prints : Array [20, 30, 0] - * } - * - *
- * - *
- * - * let v = createVector(10.0, 20.0, 30.0); - * let f = v.array(); - * print(f[0]); // Prints "10.0" - * print(f[1]); // Prints "20.0" - * print(f[2]); // Prints "30.0" - * - *
- */ - p5.Vector.prototype.array = function array() { - return [this.x || 0, this.y || 0, this.z || 0]; - }; - - /** - * Equality check against a p5.Vector - * - * @method equals - * @param {Number} [x] the x component of the vector - * @param {Number} [y] the y component of the vector - * @param {Number} [z] the z component of the vector - * @return {Boolean} whether the vectors are equals - * @example - *
- * - * let v1 = createVector(5, 10, 20); - * let v2 = createVector(5, 10, 20); - * let v3 = createVector(13, 10, 19); - * - * print(v1.equals(v2.x, v2.y, v2.z)); // true - * print(v1.equals(v3.x, v3.y, v3.z)); // false - * - *
- * - *
- * - * let v1 = createVector(10.0, 20.0, 30.0); - * let v2 = createVector(10.0, 20.0, 30.0); - * let v3 = createVector(0.0, 0.0, 0.0); - * print(v1.equals(v2)); // true - * print(v1.equals(v3)); // false - * - *
- */ - /** - * @method equals - * @param {p5.Vector|Array} value the vector to compare - * @return {Boolean} - */ - p5.Vector.prototype.equals = function equals(x, y, z) { - var a, b, c; - if (x instanceof p5.Vector) { - a = x.x || 0; - b = x.y || 0; - c = x.z || 0; - } else if (x instanceof Array) { - a = x[0] || 0; - b = x[1] || 0; - c = x[2] || 0; - } else { - a = x || 0; - b = y || 0; - c = z || 0; - } - return this.x === a && this.y === b && this.z === c; - }; - - // Static Methods - - /** - * Make a new 2D vector from an angle - * - * @method fromAngle - * @static - * @param {Number} angle the desired angle, in radians (unaffected by angleMode) - * @param {Number} [length] the length of the new vector (defaults to 1) - * @return {p5.Vector} the new p5.Vector object - * @example - *
- * - * function draw() { - * background(200); - * - * // Create a variable, proportional to the mouseX, - * // varying from 0-360, to represent an angle in degrees. - * let myDegrees = map(mouseX, 0, width, 0, 360); - * - * // Display that variable in an onscreen text. - * // (Note the nfc() function to truncate additional decimal places, - * // and the "\xB0" character for the degree symbol.) - * let readout = 'angle = ' + nfc(myDegrees, 1) + '\xB0'; - * noStroke(); - * fill(0); - * text(readout, 5, 15); - * - * // Create a p5.Vector using the fromAngle function, - * // and extract its x and y components. - * let v = p5.Vector.fromAngle(radians(myDegrees), 30); - * let vx = v.x; - * let vy = v.y; - * - * push(); - * translate(width / 2, height / 2); - * noFill(); - * stroke(150); - * line(0, 0, 30, 0); - * stroke(0); - * line(0, 0, vx, vy); - * pop(); - * } - * - *
- */ - p5.Vector.fromAngle = function fromAngle(angle, length) { - if (typeof length === 'undefined') { - length = 1; - } - return new p5.Vector(length * Math.cos(angle), length * Math.sin(angle), 0); - }; - - /** - * Make a new 3D vector from a pair of ISO spherical angles - * - * @method fromAngles - * @static - * @param {Number} theta the polar angle, in radians (zero is up) - * @param {Number} phi the azimuthal angle, in radians - * (zero is out of the screen) - * @param {Number} [length] the length of the new vector (defaults to 1) - * @return {p5.Vector} the new p5.Vector object - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * fill(255); - * noStroke(); - * } - * function draw() { - * background(255); - * - * let t = millis() / 1000; - * - * // add three point lights - * pointLight(color('#f00'), p5.Vector.fromAngles(t * 1.0, t * 1.3, 100)); - * pointLight(color('#0f0'), p5.Vector.fromAngles(t * 1.1, t * 1.2, 100)); - * pointLight(color('#00f'), p5.Vector.fromAngles(t * 1.2, t * 1.1, 100)); - * - * sphere(35); - * } - * - *
- */ - p5.Vector.fromAngles = function(theta, phi, length) { - if (typeof length === 'undefined') { - length = 1; - } - var cosPhi = Math.cos(phi); - var sinPhi = Math.sin(phi); - var cosTheta = Math.cos(theta); - var sinTheta = Math.sin(theta); - - return new p5.Vector( - length * sinTheta * sinPhi, - -length * cosTheta, - length * sinTheta * cosPhi - ); - }; - - /** - * Make a new 2D unit vector from a random angle - * - * @method random2D - * @static - * @return {p5.Vector} the new p5.Vector object - * @example - *
- * - * let v = p5.Vector.random2D(); - * // May make v's attributes something like: - * // [0.61554617, -0.51195765, 0.0] or - * // [-0.4695841, -0.14366731, 0.0] or - * // [0.6091097, -0.22805278, 0.0] - * print(v); - * - *
- * - *
- * - * function setup() { - * frameRate(1); - * } - * - * function draw() { - * background(240); - * - * let v0 = createVector(50, 50); - * let v1 = p5.Vector.random2D(); - * drawArrow(v0, v1.mult(50), 'black'); - * } - * - * // draw an arrow for a vector at a given base position - * function drawArrow(base, vec, myColor) { - * push(); - * stroke(myColor); - * strokeWeight(3); - * fill(myColor); - * translate(base.x, base.y); - * line(0, 0, vec.x, vec.y); - * rotate(vec.heading()); - * let arrowSize = 7; - * translate(vec.mag() - arrowSize, 0); - * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); - * pop(); - * } - * - *
- */ - p5.Vector.random2D = function random2D() { - return this.fromAngle(Math.random() * constants.TWO_PI); - }; - - /** - * Make a new random 3D unit vector. - * - * @method random3D - * @static - * @return {p5.Vector} the new p5.Vector object - * @example - *
- * - * let v = p5.Vector.random3D(); - * // May make v's attributes something like: - * // [0.61554617, -0.51195765, 0.599168] or - * // [-0.4695841, -0.14366731, -0.8711202] or - * // [0.6091097, -0.22805278, -0.7595902] - * print(v); - * - *
- */ - p5.Vector.random3D = function random3D() { - var angle = Math.random() * constants.TWO_PI; - var vz = Math.random() * 2 - 1; - var vzBase = Math.sqrt(1 - vz * vz); - var vx = vzBase * Math.cos(angle); - var vy = vzBase * Math.sin(angle); - return new p5.Vector(vx, vy, vz); - }; - - // Adds two vectors together and returns a new one. - /** - * @method add - * @static - * @param {p5.Vector} v1 a p5.Vector to add - * @param {p5.Vector} v2 a p5.Vector to add - * @param {p5.Vector} target the vector to receive the result - */ - /** - * @method add - * @static - * @param {p5.Vector} v1 - * @param {p5.Vector} v2 - * @return {p5.Vector} the resulting p5.Vector - * - */ - - p5.Vector.add = function add(v1, v2, target) { - if (!target) { - target = v1.copy(); - } else { - target.set(v1); - } - target.add(v2); - return target; - }; - - /* - * Subtracts one p5.Vector from another and returns a new one. The second - * vector (v2) is subtracted from the first (v1), resulting in v1-v2. - */ - /** - * @method sub - * @static - * @param {p5.Vector} v1 a p5.Vector to subtract from - * @param {p5.Vector} v2 a p5.Vector to subtract - * @param {p5.Vector} target if undefined a new vector will be created - */ - /** - * @method sub - * @static - * @param {p5.Vector} v1 - * @param {p5.Vector} v2 - * @return {p5.Vector} the resulting p5.Vector - */ - - p5.Vector.sub = function sub(v1, v2, target) { - if (!target) { - target = v1.copy(); - } else { - target.set(v1); - } - target.sub(v2); - return target; - }; - - /** - * Multiplies a vector by a scalar and returns a new vector. - */ - /** - * @method mult - * @static - * @param {p5.Vector} v the vector to multiply - * @param {Number} n - * @param {p5.Vector} target if undefined a new vector will be created - */ - /** - * @method mult - * @static - * @param {p5.Vector} v - * @param {Number} n - * @return {p5.Vector} the resulting new p5.Vector - */ - p5.Vector.mult = function mult(v, n, target) { - if (!target) { - target = v.copy(); - } else { - target.set(v); - } - target.mult(n); - return target; - }; - - /** - * Divides a vector by a scalar and returns a new vector. - */ - /** - * @method div - * @static - * @param {p5.Vector} v the vector to divide - * @param {Number} n - * @param {p5.Vector} target if undefined a new vector will be created - */ - /** - * @method div - * @static - * @param {p5.Vector} v - * @param {Number} n - * @return {p5.Vector} the resulting new p5.Vector - */ - p5.Vector.div = function div(v, n, target) { - if (!target) { - target = v.copy(); - } else { - target.set(v); - } - target.div(n); - return target; - }; - - /** - * Calculates the dot product of two vectors. - */ - /** - * @method dot - * @static - * @param {p5.Vector} v1 the first p5.Vector - * @param {p5.Vector} v2 the second p5.Vector - * @return {Number} the dot product - */ - p5.Vector.dot = function dot(v1, v2) { - return v1.dot(v2); - }; - - /** - * Calculates the cross product of two vectors. - */ - /** - * @method cross - * @static - * @param {p5.Vector} v1 the first p5.Vector - * @param {p5.Vector} v2 the second p5.Vector - * @return {Number} the cross product - */ - p5.Vector.cross = function cross(v1, v2) { - return v1.cross(v2); - }; - - /** - * Calculates the Euclidean distance between two points (considering a - * point as a vector object). - */ - /** - * @method dist - * @static - * @param {p5.Vector} v1 the first p5.Vector - * @param {p5.Vector} v2 the second p5.Vector - * @return {Number} the distance - */ - p5.Vector.dist = function dist(v1, v2) { - return v1.dist(v2); - }; - - /** - * Linear interpolate a vector to another vector and return the result as a - * new vector. - */ - /** - * @method lerp - * @static - * @param {p5.Vector} v1 - * @param {p5.Vector} v2 - * @param {Number} amt - * @param {p5.Vector} target if undefined a new vector will be created - */ - /** - * @method lerp - * @static - * @param {p5.Vector} v1 - * @param {p5.Vector} v2 - * @param {Number} amt - * @return {Number} the lerped value - */ - p5.Vector.lerp = function lerp(v1, v2, amt, target) { - if (!target) { - target = v1.copy(); - } else { - target.set(v1); - } - target.lerp(v2, amt); - return target; - }; - - /** - * @method mag - * @param {p5.Vector} vecT the vector to return the magnitude of - * @return {Number} the magnitude of vecT - * @static - */ - p5.Vector.mag = function mag(vecT) { - var x = vecT.x, - y = vecT.y, - z = vecT.z; - var magSq = x * x + y * y + z * z; - return Math.sqrt(magSq); - }; - - module.exports = p5.Vector; - }, - { '../core/constants': 18, '../core/main': 24 } - ], - 56: [ - function(_dereq_, module, exports) { - /** - * @module Math - * @submodule Random - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - var seeded = false; - var previous = false; - var y2 = 0; - - // Linear Congruential Generator - // Variant of a Lehman Generator - var lcg = (function() { - // Set to values from glibc(useb by GCC) (https://en.wikipedia.org/wiki/Linear_congruential_generator#Parameters_in_common_use) - // m is basically chosen to be large (as it is the max period) - // and for its relationships to a and c - var m = 2147483647, - // a - 1 should be divisible by m's prime factors - a = 1103515245, - // c and m should be co-prime - c = 12345, - seed, - z; - return { - setSeed: function setSeed(val) { - // pick a random seed if val is undefined or null - // the >>> 0 casts the seed to an unsigned 32-bit integer - z = seed = (val == null ? Math.random() * m : val) >>> 0; - }, - getSeed: function getSeed() { - return seed; - }, - rand: function rand() { - // define the recurrence relationship - z = (a * z + c) % m; - // return a float in [0, 1) - // if z = m then z / m = 0 therefore (z % m) / m < 1 always - return z / m; - } - }; - })(); - - /** - * Sets the seed value for random(). - * - * By default, random() produces different results each time the program - * is run. Set the seed parameter to a constant to return the same - * pseudo-random numbers each time the software is run. - * - * @method randomSeed - * @param {Number} seed the seed value - * @example - *
- * - * randomSeed(99); - * for (let i = 0; i < 100; i++) { - * let r = random(0, 255); - * stroke(r); - * line(i, 0, i, 100); - * } - * - *
- * - * @alt - * many vertical lines drawn in white, black or grey. - * - */ - p5.prototype.randomSeed = function(seed) { - lcg.setSeed(seed); - seeded = true; - previous = false; - }; - - /** - * Return a random floating-point number. - * - * Takes either 0, 1 or 2 arguments. - * - * If no argument is given, returns a random number from 0 - * up to (but not including) 1. - * - * If one argument is given and it is a number, returns a random number from 0 - * up to (but not including) the number. - * - * If one argument is given and it is an array, returns a random element from - * that array. - * - * If two arguments are given, returns a random number from the - * first argument up to (but not including) the second argument. - * - * @method random - * @param {Number} [min] the lower bound (inclusive) - * @param {Number} [max] the upper bound (exclusive) - * @return {Number} the random number - * @example - *
- * - * for (let i = 0; i < 100; i++) { - * let r = random(50); - * stroke(r * 5); - * line(50, i, 50 + r, i); - * } - * - *
- *
- * - * for (let i = 0; i < 100; i++) { - * let r = random(-50, 50); - * line(50, i, 50 + r, i); - * } - * - *
- *
- * - * // Get a random element from an array using the random(Array) syntax - * let words = ['apple', 'bear', 'cat', 'dog']; - * let word = random(words); // select random word - * text(word, 10, 50); // draw the word - * - *
- * - * @alt - * 100 horizontal lines from center canvas to right. size+fill change each time - * 100 horizontal lines from center of canvas. height & side change each render - * word displayed at random. Either apple, bear, cat, or dog - * - */ - /** - * @method random - * @param {Array} choices the array to choose from - * @return {*} the random element from the array - * @example - */ - p5.prototype.random = function(min, max) { - var rand; - - if (seeded) { - rand = lcg.rand(); - } else { - rand = Math.random(); - } - if (typeof min === 'undefined') { - return rand; - } else if (typeof max === 'undefined') { - if (min instanceof Array) { - return min[Math.floor(rand * min.length)]; - } else { - return rand * min; - } - } else { - if (min > max) { - var tmp = min; - min = max; - max = tmp; - } - - return rand * (max - min) + min; - } - }; - - /** - * - * Returns a random number fitting a Gaussian, or - * normal, distribution. There is theoretically no minimum or maximum - * value that randomGaussian() might return. Rather, there is - * just a very low probability that values far from the mean will be - * returned; and a higher probability that numbers near the mean will - * be returned. - *

- * Takes either 0, 1 or 2 arguments.
- * If no args, returns a mean of 0 and standard deviation of 1.
- * If one arg, that arg is the mean (standard deviation is 1).
- * If two args, first is mean, second is standard deviation. - * - * @method randomGaussian - * @param {Number} mean the mean - * @param {Number} sd the standard deviation - * @return {Number} the random number - * @example - *
- * - * for (let y = 0; y < 100; y++) { - * let x = randomGaussian(50, 15); - * line(50, y, x, y); - * } - * - *
- *
- * - * let distribution = new Array(360); - * - * function setup() { - * createCanvas(100, 100); - * for (let i = 0; i < distribution.length; i++) { - * distribution[i] = floor(randomGaussian(0, 15)); - * } - * } - * - * function draw() { - * background(204); - * - * translate(width / 2, width / 2); - * - * for (let i = 0; i < distribution.length; i++) { - * rotate(TWO_PI / distribution.length); - * stroke(0); - * let dist = abs(distribution[i]); - * line(0, 0, dist, 0); - * } - * } - * - *
- * @alt - * 100 horizontal lines from center of canvas. height & side change each render - * black lines radiate from center of canvas. size determined each render - */ - p5.prototype.randomGaussian = function(mean, sd) { - var y1, x1, x2, w; - if (previous) { - y1 = y2; - previous = false; - } else { - do { - x1 = this.random(2) - 1; - x2 = this.random(2) - 1; - w = x1 * x1 + x2 * x2; - } while (w >= 1); - w = Math.sqrt(-2 * Math.log(w) / w); - y1 = x1 * w; - y2 = x2 * w; - previous = true; - } - - var m = mean || 0; - var s = sd || 1; - return y1 * s + m; - }; - - module.exports = p5; - }, - { '../core/main': 24 } - ], - 57: [ - function(_dereq_, module, exports) { - /** - * @module Math - * @submodule Trigonometry - * @for p5 - * @requires core - * @requires constants - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - var constants = _dereq_('../core/constants'); - - /* - * all DEGREES/RADIANS conversion should be done in the p5 instance - * if possible, using the p5._toRadians(), p5._fromRadians() methods. - */ - p5.prototype._angleMode = constants.RADIANS; - - /** - * The inverse of cos(), returns the arc cosine of a value. This function - * expects the values in the range of -1 to 1 and values are returned in - * the range 0 to PI (3.1415927). - * - * @method acos - * @param {Number} value the value whose arc cosine is to be returned - * @return {Number} the arc cosine of the given value - * - * @example - *
- * - * let a = PI; - * let c = cos(a); - * let ac = acos(c); - * // Prints: "3.1415927 : -1.0 : 3.1415927" - * print(a + ' : ' + c + ' : ' + ac); - * - *
- * - *
- * - * let a = PI + PI / 4.0; - * let c = cos(a); - * let ac = acos(c); - * // Prints: "3.926991 : -0.70710665 : 2.3561943" - * print(a + ' : ' + c + ' : ' + ac); - * - *
- */ - p5.prototype.acos = function(ratio) { - return this._fromRadians(Math.acos(ratio)); - }; - - /** - * The inverse of sin(), returns the arc sine of a value. This function - * expects the values in the range of -1 to 1 and values are returned - * in the range -PI/2 to PI/2. - * - * @method asin - * @param {Number} value the value whose arc sine is to be returned - * @return {Number} the arc sine of the given value - * - * @example - *
- * - * let a = PI + PI / 3; - * let s = sin(a); - * let as = asin(s); - * // Prints: "1.0471976 : 0.86602545 : 1.0471976" - * print(a + ' : ' + s + ' : ' + as); - * - *
- * - *
- * - * let a = PI + PI / 3.0; - * let s = sin(a); - * let as = asin(s); - * // Prints: "4.1887903 : -0.86602545 : -1.0471976" - * print(a + ' : ' + s + ' : ' + as); - * - *
- * - */ - p5.prototype.asin = function(ratio) { - return this._fromRadians(Math.asin(ratio)); - }; - - /** - * The inverse of tan(), returns the arc tangent of a value. This function - * expects the values in the range of -Infinity to Infinity (exclusive) and - * values are returned in the range -PI/2 to PI/2. - * - * @method atan - * @param {Number} value the value whose arc tangent is to be returned - * @return {Number} the arc tangent of the given value - * - * @example - *
- * - * let a = PI + PI / 3; - * let t = tan(a); - * let at = atan(t); - * // Prints: "1.0471976 : 1.7320509 : 1.0471976" - * print(a + ' : ' + t + ' : ' + at); - * - *
- * - *
- * - * let a = PI + PI / 3.0; - * let t = tan(a); - * let at = atan(t); - * // Prints: "4.1887903 : 1.7320513 : 1.0471977" - * print(a + ' : ' + t + ' : ' + at); - * - *
- * - */ - p5.prototype.atan = function(ratio) { - return this._fromRadians(Math.atan(ratio)); - }; - - /** - * Calculates the angle (in radians) from a specified point to the coordinate - * origin as measured from the positive x-axis. Values are returned as a - * float in the range from PI to -PI. The atan2() function is most often used - * for orienting geometry to the position of the cursor. - *

- * Note: The y-coordinate of the point is the first parameter, and the - * x-coordinate is the second parameter, due the the structure of calculating - * the tangent. - * - * @method atan2 - * @param {Number} y y-coordinate of the point - * @param {Number} x x-coordinate of the point - * @return {Number} the arc tangent of the given point - * - * @example - *
- * - * function draw() { - * background(204); - * translate(width / 2, height / 2); - * let a = atan2(mouseY - height / 2, mouseX - width / 2); - * rotate(a); - * rect(-30, -5, 60, 10); - * } - * - *
- * - * @alt - * 60 by 10 rect at center of canvas rotates with mouse movements - * - */ - p5.prototype.atan2 = function(y, x) { - return this._fromRadians(Math.atan2(y, x)); - }; - - /** - * Calculates the cosine of an angle. This function takes into account the - * current angleMode. Values are returned in the range -1 to 1. - * - * @method cos - * @param {Number} angle the angle - * @return {Number} the cosine of the angle - * - * @example - *
- * - * let a = 0.0; - * let inc = TWO_PI / 25.0; - * for (let i = 0; i < 25; i++) { - * line(i * 4, 50, i * 4, 50 + cos(a) * 40.0); - * a = a + inc; - * } - * - *
- * - * @alt - * vertical black lines form wave patterns, extend-down on left and right side - * - */ - p5.prototype.cos = function(angle) { - return Math.cos(this._toRadians(angle)); - }; - - /** - * Calculates the sine of an angle. This function takes into account the - * current angleMode. Values are returned in the range -1 to 1. - * - * @method sin - * @param {Number} angle the angle - * @return {Number} the sine of the angle - * - * @example - *
- * - * let a = 0.0; - * let inc = TWO_PI / 25.0; - * for (let i = 0; i < 25; i++) { - * line(i * 4, 50, i * 4, 50 + sin(a) * 40.0); - * a = a + inc; - * } - * - *
- * - * @alt - * vertical black lines extend down and up from center to form wave pattern - * - */ - p5.prototype.sin = function(angle) { - return Math.sin(this._toRadians(angle)); - }; - - /** - * Calculates the tangent of an angle. This function takes into account - * the current angleMode. Values are returned in the range -1 to 1. - * - * @method tan - * @param {Number} angle the angle - * @return {Number} the tangent of the angle - * - * @example - *
- * - * let a = 0.0; - * let inc = TWO_PI / 50.0; - * for (let i = 0; i < 100; i = i + 2) { - * line(i, 50, i, 50 + tan(a) * 2.0); - * a = a + inc; - * } - * - * - * - * @alt - * vertical black lines end down and up from center to form spike pattern - * - */ - p5.prototype.tan = function(angle) { - return Math.tan(this._toRadians(angle)); - }; - - /** - * Converts a radian measurement to its corresponding value in degrees. - * Radians and degrees are two ways of measuring the same thing. There are - * 360 degrees in a circle and 2*PI radians in a circle. For example, - * 90ยฐ = PI/2 = 1.5707964. This function does not take into account the - * current angleMode. - * - * @method degrees - * @param {Number} radians the radians value to convert to degrees - * @return {Number} the converted angle - * - * - * @example - *
- * - * let rad = PI / 4; - * let deg = degrees(rad); - * print(rad + ' radians is ' + deg + ' degrees'); - * // Prints: 0.7853981633974483 radians is 45 degrees - * - *
- * - */ - p5.prototype.degrees = function(angle) { - return angle * constants.RAD_TO_DEG; - }; - - /** - * Converts a degree measurement to its corresponding value in radians. - * Radians and degrees are two ways of measuring the same thing. There are - * 360 degrees in a circle and 2*PI radians in a circle. For example, - * 90ยฐ = PI/2 = 1.5707964. This function does not take into account the - * current angleMode. - * - * @method radians - * @param {Number} degrees the degree value to convert to radians - * @return {Number} the converted angle - * - * @example - *
- * - * let deg = 45.0; - * let rad = radians(deg); - * print(deg + ' degrees is ' + rad + ' radians'); - * // Prints: 45 degrees is 0.7853981633974483 radians - * - *
- */ - p5.prototype.radians = function(angle) { - return angle * constants.DEG_TO_RAD; - }; - - /** - * Sets the current mode of p5 to given mode. Default mode is RADIANS. - * - * @method angleMode - * @param {Constant} mode either RADIANS or DEGREES - * - * @example - *
- * - * function draw() { - * background(204); - * angleMode(DEGREES); // Change the mode to DEGREES - * let a = atan2(mouseY - height / 2, mouseX - width / 2); - * translate(width / 2, height / 2); - * push(); - * rotate(a); - * rect(-20, -5, 40, 10); // Larger rectangle is rotating in degrees - * pop(); - * angleMode(RADIANS); // Change the mode to RADIANS - * rotate(a); // variable a stays the same - * rect(-40, -5, 20, 10); // Smaller rectangle is rotating in radians - * } - * - *
- * - * @alt - * 40 by 10 rect in center rotates with mouse moves. 20 by 10 rect moves faster. - * - * - */ - p5.prototype.angleMode = function(mode) { - if (mode === constants.DEGREES || mode === constants.RADIANS) { - this._angleMode = mode; - } - }; - - /** - * converts angles from the current angleMode to RADIANS - * - * @method _toRadians - * @private - * @param {Number} angle - * @returns {Number} - */ - p5.prototype._toRadians = function(angle) { - if (this._angleMode === constants.DEGREES) { - return angle * constants.DEG_TO_RAD; - } - return angle; - }; - - /** - * converts angles from the current angleMode to DEGREES - * - * @method _toDegrees - * @private - * @param {Number} angle - * @returns {Number} - */ - p5.prototype._toDegrees = function(angle) { - if (this._angleMode === constants.RADIANS) { - return angle * constants.RAD_TO_DEG; - } - return angle; - }; - - /** - * converts angles from RADIANS into the current angleMode - * - * @method _fromRadians - * @private - * @param {Number} angle - * @returns {Number} - */ - p5.prototype._fromRadians = function(angle) { - if (this._angleMode === constants.DEGREES) { - return angle * constants.RAD_TO_DEG; - } - return angle; - }; - - module.exports = p5; - }, - { '../core/constants': 18, '../core/main': 24 } - ], - 58: [ - function(_dereq_, module, exports) { - /** - * @module Typography - * @submodule Attributes - * @for p5 - * @requires core - * @requires constants - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - /** - * Sets the current alignment for drawing text. Accepts two - * arguments: horizAlign (LEFT, CENTER, or RIGHT) and - * vertAlign (TOP, BOTTOM, CENTER, or BASELINE). - * - * The horizAlign parameter is in reference to the x value - * of the text() function, while the vertAlign parameter is - * in reference to the y value. - * - * So if you write textAlign(LEFT), you are aligning the left - * edge of your text to the x value you give in text(). If you - * write textAlign(RIGHT, TOP), you are aligning the right edge - * of your text to the x value and the top of edge of the text - * to the y value. - * - * @method textAlign - * @param {Constant} horizAlign horizontal alignment, either LEFT, - * CENTER, or RIGHT - * @param {Constant} [vertAlign] vertical alignment, either TOP, - * BOTTOM, CENTER, or BASELINE - * @chainable - * @example - *
- * - * textSize(16); - * textAlign(RIGHT); - * text('ABCD', 50, 30); - * textAlign(CENTER); - * text('EFGH', 50, 50); - * textAlign(LEFT); - * text('IJKL', 50, 70); - * - *
- * - *
- * - * textSize(16); - * strokeWeight(0.5); - * - * line(0, 12, width, 12); - * textAlign(CENTER, TOP); - * text('TOP', 0, 12, width); - * - * line(0, 37, width, 37); - * textAlign(CENTER, CENTER); - * text('CENTER', 0, 37, width); - * - * line(0, 62, width, 62); - * textAlign(CENTER, BASELINE); - * text('BASELINE', 0, 62, width); - * - * line(0, 87, width, 87); - * textAlign(CENTER, BOTTOM); - * text('BOTTOM', 0, 87, width); - * - *
- * - * @alt - *Letters ABCD displayed at top right, EFGH at center and IJKL at bottom left. - * The names of the four vertical alignments rendered each showing that alignment's placement relative to a horizontal line. - * - */ - /** - * @method textAlign - * @return {Object} - */ - p5.prototype.textAlign = function(horizAlign, vertAlign) { - p5._validateParameters('textAlign', arguments); - return this._renderer.textAlign.apply(this._renderer, arguments); - }; - - /** - * Sets/gets the spacing, in pixels, between lines of text. This - * setting will be used in all subsequent calls to the text() function. - * - * @method textLeading - * @param {Number} leading the size in pixels for spacing between lines - * @chainable - * - * @example - *
- * - * // Text to display. The "\n" is a "new line" character - * let lines = 'L1\nL2\nL3'; - * textSize(12); - * - * textLeading(10); // Set leading to 10 - * text(lines, 10, 25); - * - * textLeading(20); // Set leading to 20 - * text(lines, 40, 25); - * - * textLeading(30); // Set leading to 30 - * text(lines, 70, 25); - * - *
- * - * @alt - *set L1 L2 & L3 displayed vertically 3 times. spacing increases for each set - */ - /** - * @method textLeading - * @return {Number} - */ - p5.prototype.textLeading = function(theLeading) { - p5._validateParameters('textLeading', arguments); - return this._renderer.textLeading.apply(this._renderer, arguments); - }; - - /** - * Sets/gets the current font size. This size will be used in all subsequent - * calls to the text() function. Font size is measured in pixels. - * - * @method textSize - * @param {Number} theSize the size of the letters in units of pixels - * @chainable - * - * @example - *
- * - * textSize(12); - * text('Font Size 12', 10, 30); - * textSize(14); - * text('Font Size 14', 10, 60); - * textSize(16); - * text('Font Size 16', 10, 90); - * - *
- * - * @alt - *Font Size 12 displayed small, Font Size 14 medium & Font Size 16 large - */ - /** - * @method textSize - * @return {Number} - */ - p5.prototype.textSize = function(theSize) { - p5._validateParameters('textSize', arguments); - return this._renderer.textSize.apply(this._renderer, arguments); - }; - - /** - * Sets/gets the style of the text for system fonts to NORMAL, ITALIC, BOLD or BOLDITALIC. - * Note: this may be is overridden by CSS styling. For non-system fonts - * (opentype, truetype, etc.) please load styled fonts instead. - * - * @method textStyle - * @param {Constant} theStyle styling for text, either NORMAL, - * ITALIC, BOLD or BOLDITALIC - * @chainable - * @example - *
- * - * strokeWeight(0); - * textSize(12); - * textStyle(NORMAL); - * text('Font Style Normal', 10, 15); - * textStyle(ITALIC); - * text('Font Style Italic', 10, 40); - * textStyle(BOLD); - * text('Font Style Bold', 10, 65); - * textStyle(BOLDITALIC); - * text('Font Style Bold Italic', 10, 90); - * - *
- * - * @alt - *words Font Style Normal displayed normally, Italic in italic, bold in bold and bold italic in bold italics. - */ - /** - * @method textStyle - * @return {String} - */ - p5.prototype.textStyle = function(theStyle) { - p5._validateParameters('textStyle', arguments); - return this._renderer.textStyle.apply(this._renderer, arguments); - }; - - /** - * Calculates and returns the width of any character or text string. - * - * @method textWidth - * @param {String} theText the String of characters to measure - * @return {Number} - * @example - *
- * - * textSize(28); - * - * let aChar = 'P'; - * let cWidth = textWidth(aChar); - * text(aChar, 0, 40); - * line(cWidth, 0, cWidth, 50); - * - * let aString = 'p5.js'; - * let sWidth = textWidth(aString); - * text(aString, 0, 85); - * line(sWidth, 50, sWidth, 100); - * - *
- * - * @alt - *Letter P and p5.js are displayed with vertical lines at end. P is wide - * - */ - p5.prototype.textWidth = function(theText) { - p5._validateParameters('textWidth', arguments); - if (theText.length === 0) { - return 0; - } - return this._renderer.textWidth.apply(this._renderer, arguments); - }; - - /** - * Returns the ascent of the current font at its current size. The ascent - * represents the distance, in pixels, of the tallest character above - * the baseline. - * @method textAscent - * @return {Number} - * @example - *
- * - * let base = height * 0.75; - * let scalar = 0.8; // Different for each font - * - * textSize(32); // Set initial text size - * let asc = textAscent() * scalar; // Calc ascent - * line(0, base - asc, width, base - asc); - * text('dp', 0, base); // Draw text on baseline - * - * textSize(64); // Increase text size - * asc = textAscent() * scalar; // Recalc ascent - * line(40, base - asc, width, base - asc); - * text('dp', 40, base); // Draw text on baseline - * - *
- */ - p5.prototype.textAscent = function() { - p5._validateParameters('textAscent', arguments); - return this._renderer.textAscent(); - }; - - /** - * Returns the descent of the current font at its current size. The descent - * represents the distance, in pixels, of the character with the longest - * descender below the baseline. - * @method textDescent - * @return {Number} - * @example - *
- * - * let base = height * 0.75; - * let scalar = 0.8; // Different for each font - * - * textSize(32); // Set initial text size - * let desc = textDescent() * scalar; // Calc ascent - * line(0, base + desc, width, base + desc); - * text('dp', 0, base); // Draw text on baseline - * - * textSize(64); // Increase text size - * desc = textDescent() * scalar; // Recalc ascent - * line(40, base + desc, width, base + desc); - * text('dp', 40, base); // Draw text on baseline - * - *
- */ - p5.prototype.textDescent = function() { - p5._validateParameters('textDescent', arguments); - return this._renderer.textDescent(); - }; - - /** - * Helper function to measure ascent and descent. - */ - p5.prototype._updateTextMetrics = function() { - return this._renderer._updateTextMetrics(); - }; - - module.exports = p5; - }, - { '../core/main': 24 } - ], - 59: [ - function(_dereq_, module, exports) { - /** - * @module Typography - * @submodule Loading & Displaying - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - var constants = _dereq_('../core/constants'); - var opentype = _dereq_('opentype.js'); - - _dereq_('../core/error_helpers'); - - /** - * Loads an opentype font file (.otf, .ttf) from a file or a URL, - * and returns a PFont Object. This method is asynchronous, - * meaning it may not finish before the next line in your sketch - * is executed. - *

- * The path to the font should be relative to the HTML file - * that links in your sketch. Loading fonts from a URL or other - * remote location may be blocked due to your browser's built-in - * security. - * - * @method loadFont - * @param {String} path name of the file or url to load - * @param {Function} [callback] function to be executed after - * loadFont() completes - * @param {Function} [onError] function to be executed if - * an error occurs - * @return {p5.Font} p5.Font object - * @example - * - *

Calling loadFont() inside preload() guarantees that the load - * operation will have completed before setup() and draw() are called.

- * - *
- * let myFont; - * function preload() { - * myFont = loadFont('assets/inconsolata.otf'); - * } - * - * function setup() { - * fill('#ED225D'); - * textFont(myFont); - * textSize(36); - * text('p5*js', 10, 50); - * } - *
- * - * Outside of preload(), you may supply a callback function to handle the - * object: - * - *
- * function setup() { - * loadFont('assets/inconsolata.otf', drawText); - * } - * - * function drawText(font) { - * fill('#ED225D'); - * textFont(font, 36); - * text('p5*js', 10, 50); - * } - *
- * - *

You can also use the font filename string (without the file extension) to style other HTML - * elements.

- * - *
- * function preload() { - * loadFont('assets/inconsolata.otf'); - * } - * - * function setup() { - * let myDiv = createDiv('hello there'); - * myDiv.style('font-family', 'Inconsolata'); - * } - *
- * - * @alt - * p5*js in p5's theme dark pink - * p5*js in p5's theme dark pink - * - */ - p5.prototype.loadFont = function(path, onSuccess, onError) { - p5._validateParameters('loadFont', arguments); - var p5Font = new p5.Font(this); - - var self = this; - opentype.load(path, function(err, font) { - if (err) { - p5._friendlyFileLoadError(4, path); - if (typeof onError !== 'undefined') { - return onError(err); - } - console.error(err, path); - return; - } - - p5Font.font = font; - - if (typeof onSuccess !== 'undefined') { - onSuccess(p5Font); - } - - self._decrementPreload(); - - // check that we have an acceptable font type - var validFontTypes = ['ttf', 'otf', 'woff', 'woff2'], - fileNoPath = path - .split('\\') - .pop() - .split('/') - .pop(), - lastDotIdx = fileNoPath.lastIndexOf('.'), - fontFamily, - newStyle, - fileExt = lastDotIdx < 1 ? null : fileNoPath.substr(lastDotIdx + 1); - - // if so, add it to the DOM (name-only) for use with p5.dom - if (validFontTypes.indexOf(fileExt) > -1) { - fontFamily = fileNoPath.substr(0, lastDotIdx); - newStyle = document.createElement('style'); - newStyle.appendChild( - document.createTextNode( - '\n@font-face {' + - '\nfont-family: ' + - fontFamily + - ';\nsrc: url(' + - path + - ');\n}\n' - ) - ); - - document.head.appendChild(newStyle); - } - }); - - return p5Font; - }; - - /** - * Draws text to the screen. Displays the information specified in the first - * parameter on the screen in the position specified by the additional - * parameters. A default font will be used unless a font is set with the - * textFont() function and a default size will be used unless a font is set - * with textSize(). Change the color of the text with the fill() function. - * Change the outline of the text with the stroke() and strokeWeight() - * functions. - *

- * The text displays in relation to the textAlign() function, which gives the - * option to draw to the left, right, and center of the coordinates. - *

- * The x2 and y2 parameters define a rectangular area to display within and - * may only be used with string data. When these parameters are specified, - * they are interpreted based on the current rectMode() setting. Text that - * does not fit completely within the rectangle specified will not be drawn - * to the screen. If x2 and y2 are not specified, the baseline alignment is the - * default, which means that the text will be drawn upwards from x and y. - *

- * WEBGL: Only opentype/truetype fonts are supported. You must load a font using the - * loadFont() method (see the example above). - * stroke() currently has no effect in webgl mode. - * - * @method text - * @param {String|Object|Array|Number|Boolean} str the alphanumeric - * symbols to be displayed - * @param {Number} x x-coordinate of text - * @param {Number} y y-coordinate of text - * @param {Number} [x2] by default, the width of the text box, - * see rectMode() for more info - * @param {Number} [y2] by default, the height of the text box, - * see rectMode() for more info - * @chainable - * @example - *
- * - * textSize(32); - * text('word', 10, 30); - * fill(0, 102, 153); - * text('word', 10, 60); - * fill(0, 102, 153, 51); - * text('word', 10, 90); - * - *
- *
- * - * let s = 'The quick brown fox jumped over the lazy dog.'; - * fill(50); - * text(s, 10, 10, 70, 80); // Text wraps within text box - * - *
- * - *
- * - * let inconsolata; - * function preload() { - * inconsolata = loadFont('assets/inconsolata.otf'); - * } - * function setup() { - * createCanvas(100, 100, WEBGL); - * textFont(inconsolata); - * textSize(width / 3); - * textAlign(CENTER, CENTER); - * } - * function draw() { - * background(0); - * let time = millis(); - * rotateX(time / 1000); - * rotateZ(time / 1234); - * text('p5.js', 0, 0); - * } - * - *
- * - * @alt - *'word' displayed 3 times going from black, blue to translucent blue - * The quick brown fox jumped over the lazy dog. - * the text 'p5.js' spinning in 3d - * - */ - p5.prototype.text = function(str, x, y, maxWidth, maxHeight) { - p5._validateParameters('text', arguments); - return !(this._renderer._doFill || this._renderer._doStroke) - ? this - : this._renderer.text.apply(this._renderer, arguments); - }; - - /** - * Sets the current font that will be drawn with the text() function. - *

- * WEBGL: Only fonts loaded via loadFont() are supported. - * - * @method textFont - * @return {Object} the current font - * - * @example - *
- * - * fill(0); - * textSize(12); - * textFont('Georgia'); - * text('Georgia', 12, 30); - * textFont('Helvetica'); - * text('Helvetica', 12, 60); - * - *
- *
- * - * let fontRegular, fontItalic, fontBold; - * function preload() { - * fontRegular = loadFont('assets/Regular.otf'); - * fontItalic = loadFont('assets/Italic.ttf'); - * fontBold = loadFont('assets/Bold.ttf'); - * } - * function setup() { - * background(210); - * fill(0) - .strokeWeight(0) - .textSize(10); - * textFont(fontRegular); - * text('Font Style Normal', 10, 30); - * textFont(fontItalic); - * text('Font Style Italic', 10, 50); - * textFont(fontBold); - * text('Font Style Bold', 10, 70); - * } - * - *
- * - * @alt - *words Font Style Normal displayed normally, Italic in italic and bold in bold - */ - /** - * @method textFont - * @param {Object|String} font a font loaded via loadFont(), or a String - * representing a web safe font (a font - * that is generally available across all systems) - * @param {Number} [size] the font size to use - * @chainable - */ - p5.prototype.textFont = function(theFont, theSize) { - p5._validateParameters('textFont', arguments); - if (arguments.length) { - if (!theFont) { - throw new Error('null font passed to textFont'); - } - - this._renderer._setProperty('_textFont', theFont); - - if (theSize) { - this._renderer._setProperty('_textSize', theSize); - this._renderer._setProperty( - '_textLeading', - theSize * constants._DEFAULT_LEADMULT - ); - } - - return this._renderer._applyTextProperties(); - } - - return this._renderer._textFont; - }; - - module.exports = p5; - }, - { - '../core/constants': 18, - '../core/error_helpers': 20, - '../core/main': 24, - 'opentype.js': 10 - } - ], - 60: [ - function(_dereq_, module, exports) { - /** - * This module defines the p5.Font class and functions for - * drawing text to the display canvas. - * @module Typography - * @submodule Font - * @requires core - * @requires constants - */ - - 'use strict'; - function _typeof(obj) { - if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') { - _typeof = function _typeof(obj) { - return typeof obj; - }; - } else { - _typeof = function _typeof(obj) { - return obj && - typeof Symbol === 'function' && - obj.constructor === Symbol && - obj !== Symbol.prototype - ? 'symbol' - : typeof obj; - }; - } - return _typeof(obj); - } - - var p5 = _dereq_('../core/main'); - var constants = _dereq_('../core/constants'); - - /** - * Base class for font handling - * @class p5.Font - * @param {p5} [pInst] pointer to p5 instance - */ - p5.Font = function(p) { - this.parent = p; - - this.cache = {}; - - /** - * Underlying opentype font implementation - * @property font - */ - this.font = undefined; - }; - - /** - * Returns a tight bounding box for the given text string using this - * font (currently only supports single lines) - * - * @method textBounds - * @param {String} line a line of text - * @param {Number} x x-position - * @param {Number} y y-position - * @param {Number} [fontSize] font size to use (optional) Default is 12. - * @param {Object} [options] opentype options (optional) - * opentype fonts contains alignment and baseline options. - * Default is 'LEFT' and 'alphabetic' - * - * - * @return {Object} a rectangle object with properties: x, y, w, h - * - * @example - *
- * - * let font; - * let textString = 'Lorem ipsum dolor sit amet.'; - * function preload() { - * font = loadFont('./assets/Regular.otf'); - * } - * function setup() { - * background(210); - * - * let bbox = font.textBounds(textString, 10, 30, 12); - * fill(255); - * stroke(0); - * rect(bbox.x, bbox.y, bbox.w, bbox.h); - * fill(0); - * noStroke(); - * - * textFont(font); - * textSize(12); - * text(textString, 10, 30); - * } - * - *
- * - * @alt - *words Lorem ipsum dol go off canvas and contained by white bounding box - * - */ - p5.Font.prototype.textBounds = function(str, x, y, fontSize, opts) { - x = x !== undefined ? x : 0; - y = y !== undefined ? y : 0; - - // Check cache for existing bounds. Take into consideration the text alignment - // settings. Default alignment should match opentype's origin: left-aligned & - // alphabetic baseline. - var p = (opts && opts.renderer && opts.renderer._pInst) || this.parent, - ctx = p._renderer.drawingContext, - alignment = ctx.textAlign || constants.LEFT, - baseline = ctx.textBaseline || constants.BASELINE, - cacheResults = false, - result, - key; - - fontSize = fontSize || p._renderer._textSize; - - // NOTE: cache disabled for now pending further discussion of #3436 - if (cacheResults) { - key = cacheKey('textBounds', str, x, y, fontSize, alignment, baseline); - result = this.cache[key]; - } - - if (!result) { - var minX, - minY, - maxX, - maxY, - pos, - xCoords = [], - yCoords = [], - scale = this._scale(fontSize); - - this.font.forEachGlyph(str, x, y, fontSize, opts, function( - glyph, - gX, - gY, - gFontSize - ) { - var gm = glyph.getMetrics(); - xCoords.push(gX + gm.xMin * scale); - xCoords.push(gX + gm.xMax * scale); - yCoords.push(gY + -gm.yMin * scale); - yCoords.push(gY + -gm.yMax * scale); - }); - - minX = Math.min.apply(null, xCoords); - minY = Math.min.apply(null, yCoords); - maxX = Math.max.apply(null, xCoords); - maxY = Math.max.apply(null, yCoords); - - result = { - x: minX, - y: minY, - h: maxY - minY, - w: maxX - minX, - advance: minX - x - }; - - // Bounds are now calculated, so shift the x & y to match alignment settings - pos = this._handleAlignment( - p._renderer, - str, - result.x, - result.y, - result.w + result.advance - ); - - result.x = pos.x; - result.y = pos.y; - - if (cacheResults) { - this.cache[key] = result; - } - } - - return result; - }; - - /** - * Computes an array of points following the path for specified text - * - * @method textToPoints - * @param {String} txt a line of text - * @param {Number} x x-position - * @param {Number} y y-position - * @param {Number} fontSize font size to use (optional) - * @param {Object} [options] an (optional) object that can contain: - * - *
sampleFactor - the ratio of path-length to number of samples - * (default=.1); higher values yield more points and are therefore - * more precise - * - *
simplifyThreshold - if set to a non-zero value, collinear points will be - * be removed from the polygon; the value represents the threshold angle to use - * when determining whether two edges are collinear - * - * @return {Array} an array of points, each with x, y, alpha (the path angle) - * @example - *
- * - * let font; - * function preload() { - * font = loadFont('assets/inconsolata.otf'); - * } - * - * let points; - * let bounds; - * function setup() { - * createCanvas(100, 100); - * stroke(0); - * fill(255, 104, 204); - * - * points = font.textToPoints('p5', 0, 0, 10, { - * sampleFactor: 5, - * simplifyThreshold: 0 - * }); - * bounds = font.textBounds(' p5 ', 0, 0, 10); - * } - * - * function draw() { - * background(255); - * beginShape(); - * translate(-bounds.x * width / bounds.w, -bounds.y * height / bounds.h); - * for (let i = 0; i < points.length; i++) { - * let p = points[i]; - * vertex( - * p.x * width / bounds.w + - * sin(20 * p.y / bounds.h + millis() / 1000) * width / 30, - * p.y * height / bounds.h - * ); - * } - * endShape(CLOSE); - * } - * - *
- * - */ - p5.Font.prototype.textToPoints = function(txt, x, y, fontSize, options) { - var xoff = 0, - result = [], - glyphs = this._getGlyphs(txt); - - function isSpace(i) { - return ( - (glyphs[i].name && glyphs[i].name === 'space') || - (txt.length === glyphs.length && txt[i] === ' ') || - (glyphs[i].index && glyphs[i].index === 3) - ); - } - - fontSize = fontSize || this.parent._renderer._textSize; - - for (var i = 0; i < glyphs.length; i++) { - if (!isSpace(i)) { - // fix to #1817, #2069 - - var gpath = glyphs[i].getPath(x, y, fontSize), - paths = splitPaths(gpath.commands); - - for (var j = 0; j < paths.length; j++) { - var pts = pathToPoints(paths[j], options); - - for (var k = 0; k < pts.length; k++) { - pts[k].x += xoff; - result.push(pts[k]); - } - } - } - - xoff += glyphs[i].advanceWidth * this._scale(fontSize); - } - - return result; - }; - - // ----------------------------- End API ------------------------------ - - /** - * Returns the set of opentype glyphs for the supplied string. - * - * Note that there is not a strict one-to-one mapping between characters - * and glyphs, so the list of returned glyphs can be larger or smaller - * than the length of the given string. - * - * @private - * @param {String} str the string to be converted - * @return {Array} the opentype glyphs - */ - p5.Font.prototype._getGlyphs = function(str) { - return this.font.stringToGlyphs(str); - }; - - /** - * Returns an opentype path for the supplied string and position. - * - * @private - * @param {String} line a line of text - * @param {Number} x x-position - * @param {Number} y y-position - * @param {Object} options opentype options (optional) - * @return {Object} the opentype path - */ - p5.Font.prototype._getPath = function(line, x, y, options) { - var p = (options && options.renderer && options.renderer._pInst) || this.parent, - renderer = p._renderer, - pos = this._handleAlignment(renderer, line, x, y); - - return this.font.getPath(line, pos.x, pos.y, renderer._textSize, options); - }; - - /* - * Creates an SVG-formatted path-data string - * (See http://www.w3.org/TR/SVG/paths.html#PathData) - * from the given opentype path or string/position - * - * @param {Object} path an opentype path, OR the following: - * - * @param {String} line a line of text - * @param {Number} x x-position - * @param {Number} y y-position - * @param {Object} options opentype options (optional), set options.decimals - * to set the decimal precision of the path-data - * - * @return {Object} this p5.Font object - */ - p5.Font.prototype._getPathData = function(line, x, y, options) { - var decimals = 3; - - // create path from string/position - if (typeof line === 'string' && arguments.length > 2) { - line = this._getPath(line, x, y, options); - } else if (_typeof(x) === 'object') { - // handle options specified in 2nd arg - options = x; - } - - // handle svg arguments - if (options && typeof options.decimals === 'number') { - decimals = options.decimals; - } - - return line.toPathData(decimals); - }; - - /* - * Creates an SVG element, as a string, - * from the given opentype path or string/position - * - * @param {Object} path an opentype path, OR the following: - * - * @param {String} line a line of text - * @param {Number} x x-position - * @param {Number} y y-position - * @param {Object} options opentype options (optional), set options.decimals - * to set the decimal precision of the path-data in the element, - * options.fill to set the fill color for the element, - * options.stroke to set the stroke color for the element, - * options.strokeWidth to set the strokeWidth for the element. - * - * @return {Object} this p5.Font object - */ - p5.Font.prototype._getSVG = function(line, x, y, options) { - var decimals = 3; - - // create path from string/position - if (typeof line === 'string' && arguments.length > 2) { - line = this._getPath(line, x, y, options); - } else if (_typeof(x) === 'object') { - // handle options specified in 2nd arg - options = x; - } - - // handle svg arguments - if (options) { - if (typeof options.decimals === 'number') { - decimals = options.decimals; - } - if (typeof options.strokeWidth === 'number') { - line.strokeWidth = options.strokeWidth; - } - if (typeof options.fill !== 'undefined') { - line.fill = options.fill; - } - if (typeof options.stroke !== 'undefined') { - line.stroke = options.stroke; - } - } - - return line.toSVG(decimals); - }; - - /* - * Renders an opentype path or string/position - * to the current graphics context - * - * @param {Object} path an opentype path, OR the following: - * - * @param {String} line a line of text - * @param {Number} x x-position - * @param {Number} y y-position - * @param {Object} options opentype options (optional) - * - * @return {p5.Font} this p5.Font object - */ - p5.Font.prototype._renderPath = function(line, x, y, options) { - var pdata, - pg = (options && options.renderer) || this.parent._renderer, - ctx = pg.drawingContext; - - if (_typeof(line) === 'object' && line.commands) { - pdata = line.commands; - } else { - //pos = handleAlignment(p, ctx, line, x, y); - pdata = this._getPath(line, x, y, options).commands; - } - - ctx.beginPath(); - for (var i = 0; i < pdata.length; i += 1) { - var cmd = pdata[i]; - if (cmd.type === 'M') { - ctx.moveTo(cmd.x, cmd.y); - } else if (cmd.type === 'L') { - ctx.lineTo(cmd.x, cmd.y); - } else if (cmd.type === 'C') { - ctx.bezierCurveTo(cmd.x1, cmd.y1, cmd.x2, cmd.y2, cmd.x, cmd.y); - } else if (cmd.type === 'Q') { - ctx.quadraticCurveTo(cmd.x1, cmd.y1, cmd.x, cmd.y); - } else if (cmd.type === 'Z') { - ctx.closePath(); - } - } - - // only draw stroke if manually set by user - if (pg._doStroke && pg._strokeSet) { - ctx.stroke(); - } - - if (pg._doFill) { - // if fill hasn't been set by user, use default-text-fill - if (!pg._fillSet) { - pg._setFill(constants._DEFAULT_TEXT_FILL); - } - ctx.fill(); - } - - return this; - }; - - p5.Font.prototype._textWidth = function(str, fontSize) { - return this.font.getAdvanceWidth(str, fontSize); - }; - - p5.Font.prototype._textAscent = function(fontSize) { - return this.font.ascender * this._scale(fontSize); - }; - - p5.Font.prototype._textDescent = function(fontSize) { - return -this.font.descender * this._scale(fontSize); - }; - - p5.Font.prototype._scale = function(fontSize) { - return 1 / this.font.unitsPerEm * (fontSize || this.parent._renderer._textSize); - }; - - p5.Font.prototype._handleAlignment = function(renderer, line, x, y, textWidth) { - var fontSize = renderer._textSize; - - if (typeof textWidth === 'undefined') { - textWidth = this._textWidth(line, fontSize); - } - - switch (renderer._textAlign) { - case constants.CENTER: - x -= textWidth / 2; - break; - case constants.RIGHT: - x -= textWidth; - break; - } - - switch (renderer._textBaseline) { - case constants.TOP: - y += this._textAscent(fontSize); - break; - case constants.CENTER: - y += this._textAscent(fontSize) / 2; - break; - case constants.BOTTOM: - y -= this._textDescent(fontSize); - break; - } - - return { x: x, y: y }; - }; - - // path-utils - - function pathToPoints(cmds, options) { - var opts = parseOpts(options, { - sampleFactor: 0.1, - simplifyThreshold: 0 - }); - - var len = pointAtLength(cmds, 0, 1), // total-length - t = len / (len * opts.sampleFactor), - pts = []; - - for (var i = 0; i < len; i += t) { - pts.push(pointAtLength(cmds, i)); - } - - if (opts.simplifyThreshold) { - simplify(pts, opts.simplifyThreshold); - } - - return pts; - } - - function simplify(pts, angle) { - angle = typeof angle === 'undefined' ? 0 : angle; - - var num = 0; - for (var i = pts.length - 1; pts.length > 3 && i >= 0; --i) { - if (collinear(at(pts, i - 1), at(pts, i), at(pts, i + 1), angle)) { - // Remove the middle point - pts.splice(i % pts.length, 1); - num++; - } - } - return num; - } - - function splitPaths(cmds) { - var paths = [], - current; - for (var i = 0; i < cmds.length; i++) { - if (cmds[i].type === 'M') { - if (current) { - paths.push(current); - } - current = []; - } - current.push(cmdToArr(cmds[i])); - } - paths.push(current); - - return paths; - } - - function cmdToArr(cmd) { - var arr = [cmd.type]; - if (cmd.type === 'M' || cmd.type === 'L') { - // moveto or lineto - arr.push(cmd.x, cmd.y); - } else if (cmd.type === 'C') { - arr.push(cmd.x1, cmd.y1, cmd.x2, cmd.y2, cmd.x, cmd.y); - } else if (cmd.type === 'Q') { - arr.push(cmd.x1, cmd.y1, cmd.x, cmd.y); - } - // else if (cmd.type === 'Z') { /* no-op */ } - return arr; - } - - function parseOpts(options, defaults) { - if (_typeof(options) !== 'object') { - options = defaults; - } else { - for (var key in defaults) { - if (typeof options[key] === 'undefined') { - options[key] = defaults[key]; - } - } - } - return options; - } - - //////////////////////// Helpers //////////////////////////// - - function at(v, i) { - var s = v.length; - return v[i < 0 ? i % s + s : i % s]; - } - - function collinear(a, b, c, thresholdAngle) { - if (!thresholdAngle) { - return areaTriangle(a, b, c) === 0; - } - - if (typeof collinear.tmpPoint1 === 'undefined') { - collinear.tmpPoint1 = []; - collinear.tmpPoint2 = []; - } - - var ab = collinear.tmpPoint1, - bc = collinear.tmpPoint2; - ab.x = b.x - a.x; - ab.y = b.y - a.y; - bc.x = c.x - b.x; - bc.y = c.y - b.y; - - var dot = ab.x * bc.x + ab.y * bc.y, - magA = Math.sqrt(ab.x * ab.x + ab.y * ab.y), - magB = Math.sqrt(bc.x * bc.x + bc.y * bc.y), - angle = Math.acos(dot / (magA * magB)); - - return angle < thresholdAngle; - } - - function areaTriangle(a, b, c) { - return (b[0] - a[0]) * (c[1] - a[1]) - (c[0] - a[0]) * (b[1] - a[1]); - } - - // Portions of below code copyright 2008 Dmitry Baranovskiy (via MIT license) - - function findDotsAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) { - var t1 = 1 - t, - t13 = Math.pow(t1, 3), - t12 = Math.pow(t1, 2), - t2 = t * t, - t3 = t2 * t, - x = t13 * p1x + t12 * 3 * t * c1x + t1 * 3 * t * t * c2x + t3 * p2x, - y = t13 * p1y + t12 * 3 * t * c1y + t1 * 3 * t * t * c2y + t3 * p2y, - mx = p1x + 2 * t * (c1x - p1x) + t2 * (c2x - 2 * c1x + p1x), - my = p1y + 2 * t * (c1y - p1y) + t2 * (c2y - 2 * c1y + p1y), - nx = c1x + 2 * t * (c2x - c1x) + t2 * (p2x - 2 * c2x + c1x), - ny = c1y + 2 * t * (c2y - c1y) + t2 * (p2y - 2 * c2y + c1y), - ax = t1 * p1x + t * c1x, - ay = t1 * p1y + t * c1y, - cx = t1 * c2x + t * p2x, - cy = t1 * c2y + t * p2y, - alpha = 90 - Math.atan2(mx - nx, my - ny) * 180 / Math.PI; - - if (mx > nx || my < ny) { - alpha += 180; - } - - return { - x: x, - y: y, - m: { x: mx, y: my }, - n: { x: nx, y: ny }, - start: { x: ax, y: ay }, - end: { x: cx, y: cy }, - alpha: alpha - }; - } - - function getPointAtSegmentLength(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, length) { - return length == null - ? bezlen(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) - : findDotsAtSegment( - p1x, - p1y, - c1x, - c1y, - c2x, - c2y, - p2x, - p2y, - getTatLen(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, length) - ); - } - - function pointAtLength(path, length, istotal) { - path = path2curve(path); - var x, - y, - p, - l, - sp = '', - subpaths = {}, - point, - len = 0; - for (var i = 0, ii = path.length; i < ii; i++) { - p = path[i]; - if (p[0] === 'M') { - x = +p[1]; - y = +p[2]; - } else { - l = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6]); - if (len + l > length) { - if (!istotal) { - point = getPointAtSegmentLength( - x, - y, - p[1], - p[2], - p[3], - p[4], - p[5], - p[6], - length - len - ); - - return { x: point.x, y: point.y, alpha: point.alpha }; - } - } - len += l; - x = +p[5]; - y = +p[6]; - } - sp += p.shift() + p; - } - subpaths.end = sp; - - point = istotal - ? len - : findDotsAtSegment(x, y, p[0], p[1], p[2], p[3], p[4], p[5], 1); - - if (point.alpha) { - point = { x: point.x, y: point.y, alpha: point.alpha }; - } - - return point; - } - - function pathToAbsolute(pathArray) { - var res = [], - x = 0, - y = 0, - mx = 0, - my = 0, - start = 0; - if (!pathArray) { - // console.warn("Unexpected state: undefined pathArray"); // shouldn't happen - return res; - } - if (pathArray[0][0] === 'M') { - x = +pathArray[0][1]; - y = +pathArray[0][2]; - mx = x; - my = y; - start++; - res[0] = ['M', x, y]; - } - - var dots, - crz = - pathArray.length === 3 && - pathArray[0][0] === 'M' && - pathArray[1][0].toUpperCase() === 'R' && - pathArray[2][0].toUpperCase() === 'Z'; - - for (var r, pa, i = start, ii = pathArray.length; i < ii; i++) { - res.push((r = [])); - pa = pathArray[i]; - if (pa[0] !== String.prototype.toUpperCase.call(pa[0])) { - r[0] = String.prototype.toUpperCase.call(pa[0]); - switch (r[0]) { - case 'A': - r[1] = pa[1]; - r[2] = pa[2]; - r[3] = pa[3]; - r[4] = pa[4]; - r[5] = pa[5]; - r[6] = +(pa[6] + x); - r[7] = +(pa[7] + y); - break; - case 'V': - r[1] = +pa[1] + y; - break; - case 'H': - r[1] = +pa[1] + x; - break; - case 'R': - dots = [x, y].concat(pa.slice(1)); - for (var j = 2, jj = dots.length; j < jj; j++) { - dots[j] = +dots[j] + x; - dots[++j] = +dots[j] + y; - } - res.pop(); - res = res.concat(catmullRom2bezier(dots, crz)); - break; - case 'M': - mx = +pa[1] + x; - my = +pa[2] + y; - break; - default: - for (j = 1, jj = pa.length; j < jj; j++) { - r[j] = +pa[j] + (j % 2 ? x : y); - } - } - } else if (pa[0] === 'R') { - dots = [x, y].concat(pa.slice(1)); - res.pop(); - res = res.concat(catmullRom2bezier(dots, crz)); - r = ['R'].concat(pa.slice(-2)); - } else { - for (var k = 0, kk = pa.length; k < kk; k++) { - r[k] = pa[k]; - } - } - switch (r[0]) { - case 'Z': - x = mx; - y = my; - break; - case 'H': - x = r[1]; - break; - case 'V': - y = r[1]; - break; - case 'M': - mx = r[r.length - 2]; - my = r[r.length - 1]; - break; - default: - x = r[r.length - 2]; - y = r[r.length - 1]; - } - } - return res; - } - - function path2curve(path, path2) { - var p = pathToAbsolute(path), - p2 = path2 && pathToAbsolute(path2); - var attrs = { x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null }; - var attrs2 = { x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null }; - var pcoms1 = []; // path commands of original path p - var pcoms2 = []; // path commands of original path p2 - var ii; - - var processPath = function processPath(path, d, pcom) { - var nx, - ny, - tq = { T: 1, Q: 1 }; - if (!path) { - return ['C', d.x, d.y, d.x, d.y, d.x, d.y]; - } - if (!(path[0] in tq)) { - d.qx = d.qy = null; - } - switch (path[0]) { - case 'M': - d.X = path[1]; - d.Y = path[2]; - break; - case 'A': - path = ['C'].concat(a2c.apply(0, [d.x, d.y].concat(path.slice(1)))); - break; - case 'S': - if (pcom === 'C' || pcom === 'S') { - nx = d.x * 2 - d.bx; - ny = d.y * 2 - d.by; - } else { - nx = d.x; - ny = d.y; - } - path = ['C', nx, ny].concat(path.slice(1)); - break; - case 'T': - if (pcom === 'Q' || pcom === 'T') { - d.qx = d.x * 2 - d.qx; - d.qy = d.y * 2 - d.qy; - } else { - d.qx = d.x; - d.qy = d.y; - } - path = ['C'].concat(q2c(d.x, d.y, d.qx, d.qy, path[1], path[2])); - break; - case 'Q': - d.qx = path[1]; - d.qy = path[2]; - path = ['C'].concat(q2c(d.x, d.y, path[1], path[2], path[3], path[4])); - - break; - case 'L': - path = ['C'].concat(l2c(d.x, d.y, path[1], path[2])); - break; - case 'H': - path = ['C'].concat(l2c(d.x, d.y, path[1], d.y)); - break; - case 'V': - path = ['C'].concat(l2c(d.x, d.y, d.x, path[1])); - break; - case 'Z': - path = ['C'].concat(l2c(d.x, d.y, d.X, d.Y)); - break; - } - - return path; - }, - fixArc = function fixArc(pp, i) { - if (pp[i].length > 7) { - pp[i].shift(); - var pi = pp[i]; - while (pi.length) { - pcoms1[i] = 'A'; - if (p2) { - pcoms2[i] = 'A'; - } - pp.splice(i++, 0, ['C'].concat(pi.splice(0, 6))); - } - pp.splice(i, 1); - ii = Math.max(p.length, (p2 && p2.length) || 0); - } - }, - fixM = function fixM(path1, path2, a1, a2, i) { - if (path1 && path2 && path1[i][0] === 'M' && path2[i][0] !== 'M') { - path2.splice(i, 0, ['M', a2.x, a2.y]); - a1.bx = 0; - a1.by = 0; - a1.x = path1[i][1]; - a1.y = path1[i][2]; - ii = Math.max(p.length, (p2 && p2.length) || 0); - } - }; - - var pfirst = ''; // temporary holder for original path command - var pcom = ''; // holder for previous path command of original path - - ii = Math.max(p.length, (p2 && p2.length) || 0); - for (var i = 0; i < ii; i++) { - if (p[i]) { - pfirst = p[i][0]; - } // save current path command - - if (pfirst !== 'C') { - pcoms1[i] = pfirst; // Save current path command - if (i) { - pcom = pcoms1[i - 1]; - } // Get previous path command pcom - } - p[i] = processPath(p[i], attrs, pcom); - - if (pcoms1[i] !== 'A' && pfirst === 'C') { - pcoms1[i] = 'C'; - } - - fixArc(p, i); // fixArc adds also the right amount of A:s to pcoms1 - - if (p2) { - // the same procedures is done to p2 - if (p2[i]) { - pfirst = p2[i][0]; - } - if (pfirst !== 'C') { - pcoms2[i] = pfirst; - if (i) { - pcom = pcoms2[i - 1]; - } - } - p2[i] = processPath(p2[i], attrs2, pcom); - - if (pcoms2[i] !== 'A' && pfirst === 'C') { - pcoms2[i] = 'C'; - } - - fixArc(p2, i); - } - fixM(p, p2, attrs, attrs2, i); - fixM(p2, p, attrs2, attrs, i); - var seg = p[i], - seg2 = p2 && p2[i], - seglen = seg.length, - seg2len = p2 && seg2.length; - attrs.x = seg[seglen - 2]; - attrs.y = seg[seglen - 1]; - attrs.bx = parseFloat(seg[seglen - 4]) || attrs.x; - attrs.by = parseFloat(seg[seglen - 3]) || attrs.y; - attrs2.bx = p2 && (parseFloat(seg2[seg2len - 4]) || attrs2.x); - attrs2.by = p2 && (parseFloat(seg2[seg2len - 3]) || attrs2.y); - attrs2.x = p2 && seg2[seg2len - 2]; - attrs2.y = p2 && seg2[seg2len - 1]; - } - - return p2 ? [p, p2] : p; - } - - function a2c(x1, y1, rx, ry, angle, lac, sweep_flag, x2, y2, recursive) { - // for more information of where this Math came from visit: - // http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes - var PI = Math.PI, - _120 = PI * 120 / 180, - f1, - f2, - cx, - cy, - rad = PI / 180 * (+angle || 0), - res = [], - xy, - rotate = function rotate(x, y, rad) { - var X = x * Math.cos(rad) - y * Math.sin(rad), - Y = x * Math.sin(rad) + y * Math.cos(rad); - return { x: X, y: Y }; - }; - if (!recursive) { - xy = rotate(x1, y1, -rad); - x1 = xy.x; - y1 = xy.y; - xy = rotate(x2, y2, -rad); - x2 = xy.x; - y2 = xy.y; - var x = (x1 - x2) / 2, - y = (y1 - y2) / 2, - h = x * x / (rx * rx) + y * y / (ry * ry); - if (h > 1) { - h = Math.sqrt(h); - rx = h * rx; - ry = h * ry; - } - var rx2 = rx * rx, - ry2 = ry * ry; - var k = - (lac === sweep_flag ? -1 : 1) * - Math.sqrt( - Math.abs( - (rx2 * ry2 - rx2 * y * y - ry2 * x * x) / (rx2 * y * y + ry2 * x * x) - ) - ); - - cx = k * rx * y / ry + (x1 + x2) / 2; - cy = k * -ry * x / rx + (y1 + y2) / 2; - f1 = Math.asin(((y1 - cy) / ry).toFixed(9)); - f2 = Math.asin(((y2 - cy) / ry).toFixed(9)); - - f1 = x1 < cx ? PI - f1 : f1; - f2 = x2 < cx ? PI - f2 : f2; - - if (f1 < 0) { - f1 = PI * 2 + f1; - } - if (f2 < 0) { - f2 = PI * 2 + f2; - } - - if (sweep_flag && f1 > f2) { - f1 = f1 - PI * 2; - } - if (!sweep_flag && f2 > f1) { - f2 = f2 - PI * 2; - } - } else { - f1 = recursive[0]; - f2 = recursive[1]; - cx = recursive[2]; - cy = recursive[3]; - } - var df = f2 - f1; - if (Math.abs(df) > _120) { - var f2old = f2, - x2old = x2, - y2old = y2; - f2 = f1 + _120 * (sweep_flag && f2 > f1 ? 1 : -1); - x2 = cx + rx * Math.cos(f2); - y2 = cy + ry * Math.sin(f2); - res = a2c(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [ - f2, - f2old, - cx, - cy - ]); - } - df = f2 - f1; - var c1 = Math.cos(f1), - s1 = Math.sin(f1), - c2 = Math.cos(f2), - s2 = Math.sin(f2), - t = Math.tan(df / 4), - hx = 4 / 3 * rx * t, - hy = 4 / 3 * ry * t, - m1 = [x1, y1], - m2 = [x1 + hx * s1, y1 - hy * c1], - m3 = [x2 + hx * s2, y2 - hy * c2], - m4 = [x2, y2]; - m2[0] = 2 * m1[0] - m2[0]; - m2[1] = 2 * m1[1] - m2[1]; - if (recursive) { - return [m2, m3, m4].concat(res); - } else { - res = [m2, m3, m4] - .concat(res) - .join() - .split(','); - var newres = []; - for (var i = 0, ii = res.length; i < ii; i++) { - newres[i] = - i % 2 - ? rotate(res[i - 1], res[i], rad).y - : rotate(res[i], res[i + 1], rad).x; - } - return newres; - } - } - - // http://schepers.cc/getting-to-the-point - function catmullRom2bezier(crp, z) { - var d = []; - for (var i = 0, iLen = crp.length; iLen - 2 * !z > i; i += 2) { - var p = [ - { - x: +crp[i - 2], - y: +crp[i - 1] - }, - - { - x: +crp[i], - y: +crp[i + 1] - }, - - { - x: +crp[i + 2], - y: +crp[i + 3] - }, - - { - x: +crp[i + 4], - y: +crp[i + 5] - } - ]; - - if (z) { - if (!i) { - p[0] = { - x: +crp[iLen - 2], - y: +crp[iLen - 1] - }; - } else if (iLen - 4 === i) { - p[3] = { - x: +crp[0], - y: +crp[1] - }; - } else if (iLen - 2 === i) { - p[2] = { - x: +crp[0], - y: +crp[1] - }; - - p[3] = { - x: +crp[2], - y: +crp[3] - }; - } - } else { - if (iLen - 4 === i) { - p[3] = p[2]; - } else if (!i) { - p[0] = { - x: +crp[i], - y: +crp[i + 1] - }; - } - } - d.push([ - 'C', - (-p[0].x + 6 * p[1].x + p[2].x) / 6, - (-p[0].y + 6 * p[1].y + p[2].y) / 6, - (p[1].x + 6 * p[2].x - p[3].x) / 6, - (p[1].y + 6 * p[2].y - p[3].y) / 6, - p[2].x, - p[2].y - ]); - } - - return d; - } - - function l2c(x1, y1, x2, y2) { - return [x1, y1, x2, y2, x2, y2]; - } - - function q2c(x1, y1, ax, ay, x2, y2) { - var _13 = 1 / 3, - _23 = 2 / 3; - return [ - _13 * x1 + _23 * ax, - _13 * y1 + _23 * ay, - _13 * x2 + _23 * ax, - _13 * y2 + _23 * ay, - x2, - y2 - ]; - } - - function bezlen(x1, y1, x2, y2, x3, y3, x4, y4, z) { - if (z == null) { - z = 1; - } - z = z > 1 ? 1 : z < 0 ? 0 : z; - var z2 = z / 2; - var n = 12; - var Tvalues = [ - -0.1252, - 0.1252, - -0.3678, - 0.3678, - -0.5873, - 0.5873, - -0.7699, - 0.7699, - -0.9041, - 0.9041, - -0.9816, - 0.9816 - ]; - - var sum = 0; - var Cvalues = [ - 0.2491, - 0.2491, - 0.2335, - 0.2335, - 0.2032, - 0.2032, - 0.1601, - 0.1601, - 0.1069, - 0.1069, - 0.0472, - 0.0472 - ]; - - for (var i = 0; i < n; i++) { - var ct = z2 * Tvalues[i] + z2, - xbase = base3(ct, x1, x2, x3, x4), - ybase = base3(ct, y1, y2, y3, y4), - comb = xbase * xbase + ybase * ybase; - sum += Cvalues[i] * Math.sqrt(comb); - } - return z2 * sum; - } - - function getTatLen(x1, y1, x2, y2, x3, y3, x4, y4, ll) { - if (ll < 0 || bezlen(x1, y1, x2, y2, x3, y3, x4, y4) < ll) { - return; - } - var t = 1, - step = t / 2, - t2 = t - step, - l, - e = 0.01; - l = bezlen(x1, y1, x2, y2, x3, y3, x4, y4, t2); - while (Math.abs(l - ll) > e) { - step /= 2; - t2 += (l < ll ? 1 : -1) * step; - l = bezlen(x1, y1, x2, y2, x3, y3, x4, y4, t2); - } - return t2; - } - - function base3(t, p1, p2, p3, p4) { - var t1 = -3 * p1 + 9 * p2 - 9 * p3 + 3 * p4, - t2 = t * t1 + 6 * p1 - 12 * p2 + 6 * p3; - return t * t2 - 3 * p1 + 3 * p2; - } - - function cacheKey() { - var hash = ''; - for (var i = arguments.length - 1; i >= 0; --i) { - hash += '๏ผŸ' + arguments[i]; - } - return hash; - } - - module.exports = p5; - }, - { '../core/constants': 18, '../core/main': 24 } - ], - 61: [ - function(_dereq_, module, exports) { - /** - * @module Data - * @submodule Array Functions - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - /** - * Adds a value to the end of an array. Extends the length of - * the array by one. Maps to Array.push(). - * - * @method append - * @deprecated Use array.push(value) instead. - * @param {Array} array Array to append - * @param {any} value to be added to the Array - * @return {Array} the array that was appended to - * @example - *
- * function setup() { - * var myArray = ['Mango', 'Apple', 'Papaya']; - * print(myArray); // ['Mango', 'Apple', 'Papaya'] - * - * append(myArray, 'Peach'); - * print(myArray); // ['Mango', 'Apple', 'Papaya', 'Peach'] - * } - *
- */ - p5.prototype.append = function(array, value) { - array.push(value); - return array; - }; - - /** - * Copies an array (or part of an array) to another array. The src array is - * copied to the dst array, beginning at the position specified by - * srcPosition and into the position specified by dstPosition. The number of - * elements to copy is determined by length. Note that copying values - * overwrites existing values in the destination array. To append values - * instead of overwriting them, use concat(). - *

- * The simplified version with only two arguments, arrayCopy(src, dst), - * copies an entire array to another of the same size. It is equivalent to - * arrayCopy(src, 0, dst, 0, src.length). - *

- * Using this function is far more efficient for copying array data than - * iterating through a for() loop and copying each element individually. - * - * @method arrayCopy - * @deprecated - * @param {Array} src the source Array - * @param {Integer} srcPosition starting position in the source Array - * @param {Array} dst the destination Array - * @param {Integer} dstPosition starting position in the destination Array - * @param {Integer} length number of Array elements to be copied - * - * @example - *
- * var src = ['A', 'B', 'C']; - * var dst = [1, 2, 3]; - * var srcPosition = 1; - * var dstPosition = 0; - * var length = 2; - * - * print(src); // ['A', 'B', 'C'] - * print(dst); // [ 1 , 2 , 3 ] - * - * arrayCopy(src, srcPosition, dst, dstPosition, length); - * print(dst); // ['B', 'C', 3] - *
- */ - /** - * @method arrayCopy - * @deprecated Use arr1.copyWithin(arr2) instead. - * @param {Array} src - * @param {Array} dst - * @param {Integer} [length] - */ - p5.prototype.arrayCopy = function(src, srcPosition, dst, dstPosition, length) { - // the index to begin splicing from dst array - var start; - var end; - - if (typeof length !== 'undefined') { - end = Math.min(length, src.length); - start = dstPosition; - src = src.slice(srcPosition, end + srcPosition); - } else { - if (typeof dst !== 'undefined') { - // src, dst, length - // rename so we don't get confused - end = dst; - end = Math.min(end, src.length); - } else { - // src, dst - end = src.length; - } - - start = 0; - // rename so we don't get confused - dst = srcPosition; - src = src.slice(0, end); - } - - // Since we are not returning the array and JavaScript is pass by reference - // we must modify the actual values of the array - // instead of reassigning arrays - Array.prototype.splice.apply(dst, [start, end].concat(src)); - }; - - /** - * Concatenates two arrays, maps to Array.concat(). Does not modify the - * input arrays. - * - * @method concat - * @deprecated Use arr1.concat(arr2) instead. - * @param {Array} a first Array to concatenate - * @param {Array} b second Array to concatenate - * @return {Array} concatenated array - * - * @example - *
- * function setup() { - * var arr1 = ['A', 'B', 'C']; - * var arr2 = [1, 2, 3]; - * - * print(arr1); // ['A','B','C'] - * print(arr2); // [1,2,3] - * - * var arr3 = concat(arr1, arr2); - * - * print(arr1); // ['A','B','C'] - * print(arr2); // [1, 2, 3] - * print(arr3); // ['A','B','C', 1, 2, 3] - * } - *
- */ - p5.prototype.concat = function(list0, list1) { - return list0.concat(list1); - }; - - /** - * Reverses the order of an array, maps to Array.reverse() - * - * @method reverse - * @deprecated Use array.reverse() instead. - * @param {Array} list Array to reverse - * @return {Array} the reversed list - * @example - *
- * function setup() { - * var myArray = ['A', 'B', 'C']; - * print(myArray); // ['A','B','C'] - * - * reverse(myArray); - * print(myArray); // ['C','B','A'] - * } - *
- */ - p5.prototype.reverse = function(list) { - return list.reverse(); - }; - - /** - * Decreases an array by one element and returns the shortened array, - * maps to Array.pop(). - * - * @method shorten - * @deprecated Use array.pop() instead. - * @param {Array} list Array to shorten - * @return {Array} shortened Array - * @example - *
- * function setup() { - * var myArray = ['A', 'B', 'C']; - * print(myArray); // ['A', 'B', 'C'] - * var newArray = shorten(myArray); - * print(myArray); // ['A','B','C'] - * print(newArray); // ['A','B'] - * } - *
- */ - p5.prototype.shorten = function(list) { - list.pop(); - return list; - }; - - /** - * Randomizes the order of the elements of an array. Implements - * - * Fisher-Yates Shuffle Algorithm. - * - * @method shuffle - * @param {Array} array Array to shuffle - * @param {Boolean} [bool] modify passed array - * @return {Array} shuffled Array - * @example - *
- * function setup() { - * var regularArr = ['ABC', 'def', createVector(), TAU, Math.E]; - * print(regularArr); - * shuffle(regularArr, true); // force modifications to passed array - * print(regularArr); - * - * // By default shuffle() returns a shuffled cloned array: - * var newArr = shuffle(regularArr); - * print(regularArr); - * print(newArr); - * } - *
- */ - p5.prototype.shuffle = function(arr, bool) { - var isView = ArrayBuffer && ArrayBuffer.isView && ArrayBuffer.isView(arr); - arr = bool || isView ? arr : arr.slice(); - - var rnd, - tmp, - idx = arr.length; - while (idx > 1) { - rnd = (Math.random() * idx) | 0; - - tmp = arr[--idx]; - arr[idx] = arr[rnd]; - arr[rnd] = tmp; - } - - return arr; - }; - - /** - * Sorts an array of numbers from smallest to largest, or puts an array of - * words in alphabetical order. The original array is not modified; a - * re-ordered array is returned. The count parameter states the number of - * elements to sort. For example, if there are 12 elements in an array and - * count is set to 5, only the first 5 elements in the array will be sorted. - * - * @method sort - * @deprecated Use array.sort() instead. - * @param {Array} list Array to sort - * @param {Integer} [count] number of elements to sort, starting from 0 - * @return {Array} the sorted list - * - * @example - *
- * function setup() { - * var words = ['banana', 'apple', 'pear', 'lime']; - * print(words); // ['banana', 'apple', 'pear', 'lime'] - * var count = 4; // length of array - * - * words = sort(words, count); - * print(words); // ['apple', 'banana', 'lime', 'pear'] - * } - *
- *
- * function setup() { - * var numbers = [2, 6, 1, 5, 14, 9, 8, 12]; - * print(numbers); // [2, 6, 1, 5, 14, 9, 8, 12] - * var count = 5; // Less than the length of the array - * - * numbers = sort(numbers, count); - * print(numbers); // [1,2,5,6,14,9,8,12] - * } - *
- */ - p5.prototype.sort = function(list, count) { - var arr = count ? list.slice(0, Math.min(count, list.length)) : list; - var rest = count ? list.slice(Math.min(count, list.length)) : []; - if (typeof arr[0] === 'string') { - arr = arr.sort(); - } else { - arr = arr.sort(function(a, b) { - return a - b; - }); - } - return arr.concat(rest); - }; - - /** - * Inserts a value or an array of values into an existing array. The first - * parameter specifies the initial array to be modified, and the second - * parameter defines the data to be inserted. The third parameter is an index - * value which specifies the array position from which to insert data. - * (Remember that array index numbering starts at zero, so the first position - * is 0, the second position is 1, and so on.) - * - * @method splice - * @deprecated Use array.splice() instead. - * @param {Array} list Array to splice into - * @param {any} value value to be spliced in - * @param {Integer} position in the array from which to insert data - * @return {Array} the list - * - * @example - *
- * function setup() { - * var myArray = [0, 1, 2, 3, 4]; - * var insArray = ['A', 'B', 'C']; - * print(myArray); // [0, 1, 2, 3, 4] - * print(insArray); // ['A','B','C'] - * - * splice(myArray, insArray, 3); - * print(myArray); // [0,1,2,'A','B','C',3,4] - * } - *
- */ - p5.prototype.splice = function(list, value, index) { - // note that splice returns spliced elements and not an array - Array.prototype.splice.apply(list, [index, 0].concat(value)); - - return list; - }; - - /** - * Extracts an array of elements from an existing array. The list parameter - * defines the array from which the elements will be copied, and the start - * and count parameters specify which elements to extract. If no count is - * given, elements will be extracted from the start to the end of the array. - * When specifying the start, remember that the first array element is 0. - * This function does not change the source array. - * - * @method subset - * @deprecated Use array.slice() instead. - * @param {Array} list Array to extract from - * @param {Integer} start position to begin - * @param {Integer} [count] number of values to extract - * @return {Array} Array of extracted elements - * - * @example - *
- * function setup() { - * var myArray = [1, 2, 3, 4, 5]; - * print(myArray); // [1, 2, 3, 4, 5] - * - * var sub1 = subset(myArray, 0, 3); - * var sub2 = subset(myArray, 2, 2); - * print(sub1); // [1,2,3] - * print(sub2); // [3,4] - * } - *
- */ - p5.prototype.subset = function(list, start, count) { - if (typeof count !== 'undefined') { - return list.slice(start, start + count); - } else { - return list.slice(start, list.length); - } - }; - - module.exports = p5; - }, - { '../core/main': 24 } - ], - 62: [ - function(_dereq_, module, exports) { - /** - * @module Data - * @submodule Conversion - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - /** - * Converts a string to its floating point representation. The contents of a - * string must resemble a number, or NaN (not a number) will be returned. - * For example, float("1234.56") evaluates to 1234.56, but float("giraffe") - * will return NaN. - * - * When an array of values is passed in, then an array of floats of the same - * length is returned. - * - * @method float - * @param {String} str float string to parse - * @return {Number} floating point representation of string - * @example - *
- * var str = '20'; - * var diameter = float(str); - * ellipse(width / 2, height / 2, diameter, diameter); - *
- *
- * print(float('10.31')); // 10.31 - * print(float('Infinity')); // Infinity - * print(float('-Infinity')); // -Infinity - *
- * - * @alt - * 20 by 20 white ellipse in the center of the canvas - * - */ - p5.prototype.float = function(str) { - if (str instanceof Array) { - return str.map(parseFloat); - } - return parseFloat(str); - }; - - /** - * Converts a boolean, string, or float to its integer representation. - * When an array of values is passed in, then an int array of the same length - * is returned. - * - * @method int - * @param {String|Boolean|Number} n value to parse - * @param {Integer} [radix] the radix to convert to (default: 10) - * @return {Number} integer representation of value - * - * @example - *
- * print(int('10')); // 10 - * print(int(10.31)); // 10 - * print(int(-10)); // -10 - * print(int(true)); // 1 - * print(int(false)); // 0 - * print(int([false, true, '10.3', 9.8])); // [0, 1, 10, 9] - * print(int(Infinity)); // Infinity - * print(int('-Infinity')); // -Infinity - *
- */ - /** - * @method int - * @param {Array} ns values to parse - * @return {Number[]} integer representation of values - */ - p5.prototype.int = function(n, radix) { - radix = radix || 10; - if (n === Infinity || n === 'Infinity') { - return Infinity; - } else if (n === -Infinity || n === '-Infinity') { - return -Infinity; - } else if (typeof n === 'string') { - return parseInt(n, radix); - } else if (typeof n === 'number') { - return n | 0; - } else if (typeof n === 'boolean') { - return n ? 1 : 0; - } else if (n instanceof Array) { - return n.map(function(n) { - return p5.prototype.int(n, radix); - }); - } - }; - - /** - * Converts a boolean, string or number to its string representation. - * When an array of values is passed in, then an array of strings of the same - * length is returned. - * - * @method str - * @param {String|Boolean|Number|Array} n value to parse - * @return {String} string representation of value - * @example - *
- * print(str('10')); // "10" - * print(str(10.31)); // "10.31" - * print(str(-10)); // "-10" - * print(str(true)); // "true" - * print(str(false)); // "false" - * print(str([true, '10.3', 9.8])); // [ "true", "10.3", "9.8" ] - *
- */ - p5.prototype.str = function(n) { - if (n instanceof Array) { - return n.map(p5.prototype.str); - } else { - return String(n); - } - }; - - /** - * Converts a number or string to its boolean representation. - * For a number, any non-zero value (positive or negative) evaluates to true, - * while zero evaluates to false. For a string, the value "true" evaluates to - * true, while any other value evaluates to false. When an array of number or - * string values is passed in, then a array of booleans of the same length is - * returned. - * - * @method boolean - * @param {String|Boolean|Number|Array} n value to parse - * @return {Boolean} boolean representation of value - * @example - *
- * print(boolean(0)); // false - * print(boolean(1)); // true - * print(boolean('true')); // true - * print(boolean('abcd')); // false - * print(boolean([0, 12, 'true'])); // [false, true, true] - *
- */ - p5.prototype.boolean = function(n) { - if (typeof n === 'number') { - return n !== 0; - } else if (typeof n === 'string') { - return n.toLowerCase() === 'true'; - } else if (typeof n === 'boolean') { - return n; - } else if (n instanceof Array) { - return n.map(p5.prototype.boolean); - } - }; - - /** - * Converts a number, string representation of a number, or boolean to its byte - * representation. A byte can be only a whole number between -128 and 127, so - * when a value outside of this range is converted, it wraps around to the - * corresponding byte representation. When an array of number, string or boolean - * values is passed in, then an array of bytes the same length is returned. - * - * @method byte - * @param {String|Boolean|Number} n value to parse - * @return {Number} byte representation of value - * - * @example - *
- * print(byte(127)); // 127 - * print(byte(128)); // -128 - * print(byte(23.4)); // 23 - * print(byte('23.4')); // 23 - * print(byte('hello')); // NaN - * print(byte(true)); // 1 - * print(byte([0, 255, '100'])); // [0, -1, 100] - *
- */ - /** - * @method byte - * @param {Array} ns values to parse - * @return {Number[]} array of byte representation of values - */ - p5.prototype.byte = function(n) { - var nn = p5.prototype.int(n, 10); - if (typeof nn === 'number') { - return (nn + 128) % 256 - 128; - } else if (nn instanceof Array) { - return nn.map(p5.prototype.byte); - } - }; - - /** - * Converts a number or string to its corresponding single-character - * string representation. If a string parameter is provided, it is first - * parsed as an integer and then translated into a single-character string. - * When an array of number or string values is passed in, then an array of - * single-character strings of the same length is returned. - * - * @method char - * @param {String|Number} n value to parse - * @return {String} string representation of value - * - * @example - *
- * print(char(65)); // "A" - * print(char('65')); // "A" - * print(char([65, 66, 67])); // [ "A", "B", "C" ] - * print(join(char([65, 66, 67]), '')); // "ABC" - *
- */ - /** - * @method char - * @param {Array} ns values to parse - * @return {String[]} array of string representation of values - */ - p5.prototype.char = function(n) { - if (typeof n === 'number' && !isNaN(n)) { - return String.fromCharCode(n); - } else if (n instanceof Array) { - return n.map(p5.prototype.char); - } else if (typeof n === 'string') { - return p5.prototype.char(parseInt(n, 10)); - } - }; - - /** - * Converts a single-character string to its corresponding integer - * representation. When an array of single-character string values is passed - * in, then an array of integers of the same length is returned. - * - * @method unchar - * @param {String} n value to parse - * @return {Number} integer representation of value - * - * @example - *
- * print(unchar('A')); // 65 - * print(unchar(['A', 'B', 'C'])); // [ 65, 66, 67 ] - * print(unchar(split('ABC', ''))); // [ 65, 66, 67 ] - *
- */ - /** - * @method unchar - * @param {Array} ns values to parse - * @return {Number[]} integer representation of values - */ - p5.prototype.unchar = function(n) { - if (typeof n === 'string' && n.length === 1) { - return n.charCodeAt(0); - } else if (n instanceof Array) { - return n.map(p5.prototype.unchar); - } - }; - - /** - * Converts a number to a string in its equivalent hexadecimal notation. If a - * second parameter is passed, it is used to set the number of characters to - * generate in the hexadecimal notation. When an array is passed in, an - * array of strings in hexadecimal notation of the same length is returned. - * - * @method hex - * @param {Number} n value to parse - * @param {Number} [digits] - * @return {String} hexadecimal string representation of value - * - * @example - *
- * print(hex(255)); // "000000FF" - * print(hex(255, 6)); // "0000FF" - * print(hex([0, 127, 255], 6)); // [ "000000", "00007F", "0000FF" ] - * print(Infinity); // "FFFFFFFF" - * print(-Infinity); // "00000000" - *
- */ - /** - * @method hex - * @param {Number[]} ns array of values to parse - * @param {Number} [digits] - * @return {String[]} hexadecimal string representation of values - */ - p5.prototype.hex = function(n, digits) { - digits = digits === undefined || digits === null ? (digits = 8) : digits; - if (n instanceof Array) { - return n.map(function(n) { - return p5.prototype.hex(n, digits); - }); - } else if (n === Infinity || n === -Infinity) { - var c = n === Infinity ? 'F' : '0'; - return c.repeat(digits); - } else if (typeof n === 'number') { - if (n < 0) { - n = 0xffffffff + n + 1; - } - var hex = Number(n) - .toString(16) - .toUpperCase(); - while (hex.length < digits) { - hex = '0' + hex; - } - if (hex.length >= digits) { - hex = hex.substring(hex.length - digits, hex.length); - } - return hex; - } - }; - - /** - * Converts a string representation of a hexadecimal number to its equivalent - * integer value. When an array of strings in hexadecimal notation is passed - * in, an array of integers of the same length is returned. - * - * @method unhex - * @param {String} n value to parse - * @return {Number} integer representation of hexadecimal value - * - * @example - *
- * print(unhex('A')); // 10 - * print(unhex('FF')); // 255 - * print(unhex(['FF', 'AA', '00'])); // [ 255, 170, 0 ] - *
- */ - /** - * @method unhex - * @param {Array} ns values to parse - * @return {Number[]} integer representations of hexadecimal value - */ - p5.prototype.unhex = function(n) { - if (n instanceof Array) { - return n.map(p5.prototype.unhex); - } else { - return parseInt('0x' + n, 16); - } - }; - - module.exports = p5; - }, - { '../core/main': 24 } - ], - 63: [ - function(_dereq_, module, exports) { - /** - * @module Data - * @submodule String Functions - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - _dereq_('../core/error_helpers'); - - //return p5; //LM is this a mistake? - - /** - * Combines an array of Strings into one String, each separated by the - * character(s) used for the separator parameter. To join arrays of ints or - * floats, it's necessary to first convert them to Strings using nf() or - * nfs(). - * - * @method join - * @param {Array} list array of Strings to be joined - * @param {String} separator String to be placed between each item - * @return {String} joined String - * @example - *
- * - * var array = ['Hello', 'world!']; - * var separator = ' '; - * var message = join(array, separator); - * text(message, 5, 50); - * - *
- * - * @alt - * "hello world!" displayed middle left of canvas. - * - */ - p5.prototype.join = function(list, separator) { - p5._validateParameters('join', arguments); - return list.join(separator); - }; - - /** - * This function is used to apply a regular expression to a piece of text, - * and return matching groups (elements found inside parentheses) as a - * String array. If there are no matches, a null value will be returned. - * If no groups are specified in the regular expression, but the sequence - * matches, an array of length 1 (with the matched text as the first element - * of the array) will be returned. - *

- * To use the function, first check to see if the result is null. If the - * result is null, then the sequence did not match at all. If the sequence - * did match, an array is returned. - *

- * If there are groups (specified by sets of parentheses) in the regular - * expression, then the contents of each will be returned in the array. - * Element [0] of a regular expression match returns the entire matching - * string, and the match groups start at element [1] (the first group is [1], - * the second [2], and so on). - * - * @method match - * @param {String} str the String to be searched - * @param {String} regexp the regexp to be used for matching - * @return {String[]} Array of Strings found - * @example - *
- * - * var string = 'Hello p5js*!'; - * var regexp = 'p5js\\*'; - * var m = match(string, regexp); - * text(m, 5, 50); - * - *
- * - * @alt - * "p5js*" displayed middle left of canvas. - * - */ - p5.prototype.match = function(str, reg) { - p5._validateParameters('match', arguments); - return str.match(reg); - }; - - /** - * This function is used to apply a regular expression to a piece of text, - * and return a list of matching groups (elements found inside parentheses) - * as a two-dimensional String array. If there are no matches, a null value - * will be returned. If no groups are specified in the regular expression, - * but the sequence matches, a two dimensional array is still returned, but - * the second dimension is only of length one. - *

- * To use the function, first check to see if the result is null. If the - * result is null, then the sequence did not match at all. If the sequence - * did match, a 2D array is returned. - *

- * If there are groups (specified by sets of parentheses) in the regular - * expression, then the contents of each will be returned in the array. - * Assuming a loop with counter variable i, element [i][0] of a regular - * expression match returns the entire matching string, and the match groups - * start at element [i][1] (the first group is [i][1], the second [i][2], - * and so on). - * - * @method matchAll - * @param {String} str the String to be searched - * @param {String} regexp the regexp to be used for matching - * @return {String[]} 2d Array of Strings found - * @example - *
- * - * var string = 'Hello p5js*! Hello world!'; - * var regexp = 'Hello'; - * matchAll(string, regexp); - * - *
- */ - p5.prototype.matchAll = function(str, reg) { - p5._validateParameters('matchAll', arguments); - var re = new RegExp(reg, 'g'); - var match = re.exec(str); - var matches = []; - while (match !== null) { - matches.push(match); - // matched text: match[0] - // match start: match.index - // capturing group n: match[n] - match = re.exec(str); - } - return matches; - }; - - /** - * Utility function for formatting numbers into strings. There are two - * versions: one for formatting floats, and one for formatting ints. - * The values for the digits, left, and right parameters should always - * be positive integers. - * (NOTE): Be cautious when using left and right parameters as it prepends numbers of 0's if the parameter - * if greater than the current length of the number. - * For example if number is 123.2 and left parameter passed is 4 which is greater than length of 123 - * (integer part) i.e 3 than result will be 0123.2. Same case for right parameter i.e. if right is 3 than - * the result will be 123.200. - * - * @method nf - * @param {Number|String} num the Number to format - * @param {Integer|String} [left] number of digits to the left of the - * decimal point - * @param {Integer|String} [right] number of digits to the right of the - * decimal point - * @return {String} formatted String - * - * @example - *
- * - * var myFont; - * function preload() { - * myFont = loadFont('assets/fonts/inconsolata.ttf'); - * } - * function setup() { - * background(200); - * var num1 = 321; - * var num2 = -1321; - * - * noStroke(); - * fill(0); - * textFont(myFont); - * textSize(22); - * - * text(nf(num1, 4, 2), 10, 30); - * text(nf(num2, 4, 2), 10, 80); - * // Draw dividing line - * stroke(120); - * line(0, 50, width, 50); - * } - * - *
- * - * @alt - * "0321.00" middle top, -1321.00" middle bottom canvas - */ - /** - * @method nf - * @param {Array} nums the Numbers to format - * @param {Integer|String} [left] - * @param {Integer|String} [right] - * @return {String[]} formatted Strings - */ - p5.prototype.nf = function(nums, left, right) { - p5._validateParameters('nf', arguments); - if (nums instanceof Array) { - return nums.map(function(x) { - return doNf(x, left, right); - }); - } else { - var typeOfFirst = Object.prototype.toString.call(nums); - if (typeOfFirst === '[object Arguments]') { - if (nums.length === 3) { - return this.nf(nums[0], nums[1], nums[2]); - } else if (nums.length === 2) { - return this.nf(nums[0], nums[1]); - } else { - return this.nf(nums[0]); - } - } else { - return doNf(nums, left, right); - } - } - }; - - function doNf(num, left, right) { - var neg = num < 0; - var n = neg ? num.toString().substring(1) : num.toString(); - var decimalInd = n.indexOf('.'); - var intPart = decimalInd !== -1 ? n.substring(0, decimalInd) : n; - var decPart = decimalInd !== -1 ? n.substring(decimalInd + 1) : ''; - var str = neg ? '-' : ''; - if (typeof right !== 'undefined') { - var decimal = ''; - if (decimalInd !== -1 || right - decPart.length > 0) { - decimal = '.'; - } - if (decPart.length > right) { - decPart = decPart.substring(0, right); - } - for (var i = 0; i < left - intPart.length; i++) { - str += '0'; - } - str += intPart; - str += decimal; - str += decPart; - for (var j = 0; j < right - decPart.length; j++) { - str += '0'; - } - return str; - } else { - for (var k = 0; k < Math.max(left - intPart.length, 0); k++) { - str += '0'; - } - str += n; - return str; - } - } - - /** - * Utility function for formatting numbers into strings and placing - * appropriate commas to mark units of 1000. There are two versions: one - * for formatting ints, and one for formatting an array of ints. The value - * for the right parameter should always be a positive integer. - * - * @method nfc - * @param {Number|String} num the Number to format - * @param {Integer|String} [right] number of digits to the right of the - * decimal point - * @return {String} formatted String - * - * @example - *
- * - * function setup() { - * background(200); - * var num = 11253106.115; - * var numArr = [1, 1, 2]; - * - * noStroke(); - * fill(0); - * textSize(12); - * - * // Draw formatted numbers - * text(nfc(num, 4), 10, 30); - * text(nfc(numArr, 2), 10, 80); - * - * // Draw dividing line - * stroke(120); - * line(0, 50, width, 50); - * } - * - *
- * - * @alt - * "11,253,106.115" top middle and "1.00,1.00,2.00" displayed bottom mid - */ - /** - * @method nfc - * @param {Array} nums the Numbers to format - * @param {Integer|String} [right] - * @return {String[]} formatted Strings - */ - p5.prototype.nfc = function(num, right) { - p5._validateParameters('nfc', arguments); - if (num instanceof Array) { - return num.map(function(x) { - return doNfc(x, right); - }); - } else { - return doNfc(num, right); - } - }; - function doNfc(num, right) { - num = num.toString(); - var dec = num.indexOf('.'); - var rem = dec !== -1 ? num.substring(dec) : ''; - var n = dec !== -1 ? num.substring(0, dec) : num; - n = n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); - if (right === 0) { - rem = ''; - } else if (typeof right !== 'undefined') { - if (right > rem.length) { - rem += dec === -1 ? '.' : ''; - var len = right - rem.length + 1; - for (var i = 0; i < len; i++) { - rem += '0'; - } - } else { - rem = rem.substring(0, right + 1); - } - } - return n + rem; - } - - /** - * Utility function for formatting numbers into strings. Similar to nf() but - * puts a "+" in front of positive numbers and a "-" in front of negative - * numbers. There are two versions: one for formatting floats, and one for - * formatting ints. The values for left, and right parameters - * should always be positive integers. - * - * @method nfp - * @param {Number} num the Number to format - * @param {Integer} [left] number of digits to the left of the decimal - * point - * @param {Integer} [right] number of digits to the right of the - * decimal point - * @return {String} formatted String - * - * @example - *
- * - * function setup() { - * background(200); - * var num1 = 11253106.115; - * var num2 = -11253106.115; - * - * noStroke(); - * fill(0); - * textSize(12); - * - * // Draw formatted numbers - * text(nfp(num1, 4, 2), 10, 30); - * text(nfp(num2, 4, 2), 10, 80); - * - * // Draw dividing line - * stroke(120); - * line(0, 50, width, 50); - * } - * - *
- * - * @alt - * "+11253106.11" top middle and "-11253106.11" displayed bottom middle - */ - /** - * @method nfp - * @param {Number[]} nums the Numbers to format - * @param {Integer} [left] - * @param {Integer} [right] - * @return {String[]} formatted Strings - */ - p5.prototype.nfp = function() { - p5._validateParameters('nfp', arguments); - var nfRes = p5.prototype.nf.apply(this, arguments); - if (nfRes instanceof Array) { - return nfRes.map(addNfp); - } else { - return addNfp(nfRes); - } - }; - - function addNfp(num) { - return parseFloat(num) > 0 ? '+' + num.toString() : num.toString(); - } - - /** - * Utility function for formatting numbers into strings. Similar to nf() but - * puts an additional "_" (space) in front of positive numbers just in case to align it with negative - * numbers which includes "-" (minus) sign. - * The main usecase of nfs() can be seen when one wants to align the digits (place values) of a non-negative - * number with some negative number (See the example to get a clear picture). - * There are two versions: one for formatting float, and one for formatting int. - * The values for the digits, left, and right parameters should always be positive integers. - * (IMP): The result on the canvas basically the expected alignment can vary based on the typeface you are using. - * (NOTE): Be cautious when using left and right parameters as it prepends numbers of 0's if the parameter - * if greater than the current length of the number. - * For example if number is 123.2 and left parameter passed is 4 which is greater than length of 123 - * (integer part) i.e 3 than result will be 0123.2. Same case for right parameter i.e. if right is 3 than - * the result will be 123.200. - * - * @method nfs - * @param {Number} num the Number to format - * @param {Integer} [left] number of digits to the left of the decimal - * point - * @param {Integer} [right] number of digits to the right of the - * decimal point - * @return {String} formatted String - * - * @example - *
- * - * var myFont; - * function preload() { - * myFont = loadFont('assets/fonts/inconsolata.ttf'); - * } - * function setup() { - * background(200); - * var num1 = 321; - * var num2 = -1321; - * - * noStroke(); - * fill(0); - * textFont(myFont); - * textSize(22); - * - * // nfs() aligns num1 (positive number) with num2 (negative number) by - * // adding a blank space in front of the num1 (positive number) - * // [left = 4] in num1 add one 0 in front, to align the digits with num2 - * // [right = 2] in num1 and num2 adds two 0's after both numbers - * // To see the differences check the example of nf() too. - * text(nfs(num1, 4, 2), 10, 30); - * text(nfs(num2, 4, 2), 10, 80); - * // Draw dividing line - * stroke(120); - * line(0, 50, width, 50); - * } - * - *
- * - * @alt - * "0321.00" top middle and "-1321.00" displayed bottom middle - */ - /** - * @method nfs - * @param {Array} nums the Numbers to format - * @param {Integer} [left] - * @param {Integer} [right] - * @return {String[]} formatted Strings - */ - p5.prototype.nfs = function() { - p5._validateParameters('nfs', arguments); - var nfRes = p5.prototype.nf.apply(this, arguments); - if (nfRes instanceof Array) { - return nfRes.map(addNfs); - } else { - return addNfs(nfRes); - } - }; - - function addNfs(num) { - return parseFloat(num) >= 0 ? ' ' + num.toString() : num.toString(); - } - - /** - * The split() function maps to String.split(), it breaks a String into - * pieces using a character or string as the delimiter. The delim parameter - * specifies the character or characters that mark the boundaries between - * each piece. A String[] array is returned that contains each of the pieces. - * - * The splitTokens() function works in a similar fashion, except that it - * splits using a range of characters instead of a specific character or - * sequence. - * - * @method split - * @param {String} value the String to be split - * @param {String} delim the String used to separate the data - * @return {String[]} Array of Strings - * @example - *
- * - * var names = 'Pat,Xio,Alex'; - * var splitString = split(names, ','); - * text(splitString[0], 5, 30); - * text(splitString[1], 5, 50); - * text(splitString[2], 5, 70); - * - *
- * - * @alt - * "pat" top left, "Xio" mid left and "Alex" displayed bottom left - * - */ - p5.prototype.split = function(str, delim) { - p5._validateParameters('split', arguments); - return str.split(delim); - }; - - /** - * The splitTokens() function splits a String at one or many character - * delimiters or "tokens." The delim parameter specifies the character or - * characters to be used as a boundary. - *

- * If no delim characters are specified, any whitespace character is used to - * split. Whitespace characters include tab (\t), line feed (\n), carriage - * return (\r), form feed (\f), and space. - * - * @method splitTokens - * @param {String} value the String to be split - * @param {String} [delim] list of individual Strings that will be used as - * separators - * @return {String[]} Array of Strings - * @example - *
- * - * function setup() { - * var myStr = 'Mango, Banana, Lime'; - * var myStrArr = splitTokens(myStr, ','); - * - * print(myStrArr); // prints : ["Mango"," Banana"," Lime"] - * } - * - *
- */ - p5.prototype.splitTokens = function(value, delims) { - p5._validateParameters('splitTokens', arguments); - var d; - if (typeof delims !== 'undefined') { - var str = delims; - var sqc = /\]/g.exec(str); - var sqo = /\[/g.exec(str); - if (sqo && sqc) { - str = str.slice(0, sqc.index) + str.slice(sqc.index + 1); - sqo = /\[/g.exec(str); - str = str.slice(0, sqo.index) + str.slice(sqo.index + 1); - d = new RegExp('[\\[' + str + '\\]]', 'g'); - } else if (sqc) { - str = str.slice(0, sqc.index) + str.slice(sqc.index + 1); - d = new RegExp('[' + str + '\\]]', 'g'); - } else if (sqo) { - str = str.slice(0, sqo.index) + str.slice(sqo.index + 1); - d = new RegExp('[' + str + '\\[]', 'g'); - } else { - d = new RegExp('[' + str + ']', 'g'); - } - } else { - d = /\s/g; - } - return value.split(d).filter(function(n) { - return n; - }); - }; - - /** - * Removes whitespace characters from the beginning and end of a String. In - * addition to standard whitespace characters such as space, carriage return, - * and tab, this function also removes the Unicode "nbsp" character. - * - * @method trim - * @param {String} str a String to be trimmed - * @return {String} a trimmed String - * - * @example - *
- * - * var string = trim(' No new lines\n '); - * text(string + ' here', 2, 50); - * - *
- * - * @alt - * "No new lines here" displayed center canvas - */ - /** - * @method trim - * @param {Array} strs an Array of Strings to be trimmed - * @return {String[]} an Array of trimmed Strings - */ - p5.prototype.trim = function(str) { - p5._validateParameters('trim', arguments); - if (str instanceof Array) { - return str.map(this.trim); - } else { - return str.trim(); - } - }; - - module.exports = p5; - }, - { '../core/error_helpers': 20, '../core/main': 24 } - ], - 64: [ - function(_dereq_, module, exports) { - /** - * @module IO - * @submodule Time & Date - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - /** - * p5.js communicates with the clock on your computer. The day() function - * returns the current day as a value from 1 - 31. - * - * @method day - * @return {Integer} the current day - * @example - *
- * - * var d = day(); - * text('Current day: \n' + d, 5, 50); - * - *
- * - * @alt - * Current day is displayed - * - */ - p5.prototype.day = function() { - return new Date().getDate(); - }; - - /** - * p5.js communicates with the clock on your computer. The hour() function - * returns the current hour as a value from 0 - 23. - * - * @method hour - * @return {Integer} the current hour - * @example - *
- * - * var h = hour(); - * text('Current hour:\n' + h, 5, 50); - * - *
- * - * @alt - * Current hour is displayed - * - */ - p5.prototype.hour = function() { - return new Date().getHours(); - }; - - /** - * p5.js communicates with the clock on your computer. The minute() function - * returns the current minute as a value from 0 - 59. - * - * @method minute - * @return {Integer} the current minute - * @example - *
- * - * var m = minute(); - * text('Current minute: \n' + m, 5, 50); - * - *
- * - * @alt - * Current minute is displayed - * - */ - p5.prototype.minute = function() { - return new Date().getMinutes(); - }; - - /** - * Returns the number of milliseconds (thousandths of a second) since - * starting the program. This information is often used for timing events and - * animation sequences. - * - * @method millis - * @return {Number} the number of milliseconds since starting the program - * @example - *
- * - * var millisecond = millis(); - * text('Milliseconds \nrunning: \n' + millisecond, 5, 40); - * - *
- * - * @alt - * number of milliseconds since program has started displayed - * - */ - p5.prototype.millis = function() { - return window.performance.now(); - }; - - /** - * p5.js communicates with the clock on your computer. The month() function - * returns the current month as a value from 1 - 12. - * - * @method month - * @return {Integer} the current month - * @example - *
- * - * var m = month(); - * text('Current month: \n' + m, 5, 50); - * - *
- * - * @alt - * Current month is displayed - * - */ - p5.prototype.month = function() { - return new Date().getMonth() + 1; //January is 0! - }; - - /** - * p5.js communicates with the clock on your computer. The second() function - * returns the current second as a value from 0 - 59. - * - * @method second - * @return {Integer} the current second - * @example - *
- * - * var s = second(); - * text('Current second: \n' + s, 5, 50); - * - *
- * - * @alt - * Current second is displayed - * - */ - p5.prototype.second = function() { - return new Date().getSeconds(); - }; - - /** - * p5.js communicates with the clock on your computer. The year() function - * returns the current year as an integer (2014, 2015, 2016, etc). - * - * @method year - * @return {Integer} the current year - * @example - *
- * - * var y = year(); - * text('Current year: \n' + y, 5, 50); - * - *
- * - * @alt - * Current year is displayed - * - */ - p5.prototype.year = function() { - return new Date().getFullYear(); - }; - - module.exports = p5; - }, - { '../core/main': 24 } - ], - 65: [ - function(_dereq_, module, exports) { - /** - * @module Shape - * @submodule 3D Primitives - * @for p5 - * @requires core - * @requires p5.Geometry - */ - - 'use strict'; - var p5 = _dereq_('../core/main'); - _dereq_('./p5.Geometry'); - var constants = _dereq_('../core/constants'); - - /** - * Draw a plane with given a width and height - * @method plane - * @param {Number} [width] width of the plane - * @param {Number} [height] height of the plane - * @param {Integer} [detailX] Optional number of triangle - * subdivisions in x-dimension - * @param {Integer} [detailY] Optional number of triangle - * subdivisions in y-dimension - * @chainable - * @example - *
- * - * // draw a plane - * // with width 50 and height 50 - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(200); - * plane(50, 50); - * } - * - *
- * - * @alt - * Nothing displayed on canvas - * Rotating interior view of a box with sides that change color. - * 3d red and green gradient. - * Rotating interior view of a cylinder with sides that change color. - * Rotating view of a cylinder with sides that change color. - * 3d red and green gradient. - * rotating view of a multi-colored cylinder with concave sides. - */ - p5.prototype.plane = function(width, height, detailX, detailY) { - this._assert3d('plane'); - p5._validateParameters('plane', arguments); - if (typeof width === 'undefined') { - width = 50; - } - if (typeof height === 'undefined') { - height = width; - } - - if (typeof detailX === 'undefined') { - detailX = 1; - } - if (typeof detailY === 'undefined') { - detailY = 1; - } - - var gId = 'plane|' + detailX + '|' + detailY; - - if (!this._renderer.geometryInHash(gId)) { - var _plane = function _plane() { - var u, v, p; - for (var i = 0; i <= this.detailY; i++) { - v = i / this.detailY; - for (var j = 0; j <= this.detailX; j++) { - u = j / this.detailX; - p = new p5.Vector(u - 0.5, v - 0.5, 0); - this.vertices.push(p); - this.uvs.push(u, v); - } - } - }; - var planeGeom = new p5.Geometry(detailX, detailY, _plane); - planeGeom.computeFaces().computeNormals(); - if (detailX <= 1 && detailY <= 1) { - planeGeom._makeTriangleEdges()._edgesToVertices(); - } else { - console.log( - 'Cannot draw stroke on plane objects with more' + - ' than 1 detailX or 1 detailY' - ); - } - this._renderer.createBuffers(gId, planeGeom); - } - - this._renderer.drawBuffersScaled(gId, width, height, 1); - return this; - }; - - /** - * Draw a box with given width, height and depth - * @method box - * @param {Number} [width] width of the box - * @param {Number} [Height] height of the box - * @param {Number} [depth] depth of the box - * @param {Integer} [detailX] Optional number of triangle - * subdivisions in x-dimension - * @param {Integer} [detailY] Optional number of triangle - * subdivisions in y-dimension - * @chainable - * @example - *
- * - * // draw a spinning box - * // with width, height and depth of 50 - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(200); - * rotateX(frameCount * 0.01); - * rotateY(frameCount * 0.01); - * box(50); - * } - * - *
- */ - p5.prototype.box = function(width, height, depth, detailX, detailY) { - this._assert3d('box'); - p5._validateParameters('box', arguments); - if (typeof width === 'undefined') { - width = 50; - } - if (typeof height === 'undefined') { - height = width; - } - if (typeof depth === 'undefined') { - depth = height; - } - - var perPixelLighting = - this._renderer.attributes && this._renderer.attributes.perPixelLighting; - if (typeof detailX === 'undefined') { - detailX = perPixelLighting ? 1 : 4; - } - if (typeof detailY === 'undefined') { - detailY = perPixelLighting ? 1 : 4; - } - - var gId = 'box|' + detailX + '|' + detailY; - if (!this._renderer.geometryInHash(gId)) { - var _box = function _box() { - var cubeIndices = [ - [0, 4, 2, 6], // -1, 0, 0],// -x - [1, 3, 5, 7], // +1, 0, 0],// +x - [0, 1, 4, 5], // 0, -1, 0],// -y - [2, 6, 3, 7], // 0, +1, 0],// +y - [0, 2, 1, 3], // 0, 0, -1],// -z - [4, 5, 6, 7] // 0, 0, +1] // +z - ]; - //using strokeIndices instead of faces for strokes - //to avoid diagonal stroke lines across face of box - this.strokeIndices = [ - [0, 1], - [1, 3], - [3, 2], - [6, 7], - [8, 9], - [9, 11], - [14, 15], - [16, 17], - [17, 19], - [18, 19], - [20, 21], - [22, 23] - ]; - - for (var i = 0; i < cubeIndices.length; i++) { - var cubeIndex = cubeIndices[i]; - var v = i * 4; - for (var j = 0; j < 4; j++) { - var d = cubeIndex[j]; - //inspired by lightgl: - //https://github.com/evanw/lightgl.js - //octants:https://en.wikipedia.org/wiki/Octant_(solid_geometry) - var octant = new p5.Vector( - ((d & 1) * 2 - 1) / 2, - ((d & 2) - 1) / 2, - ((d & 4) / 2 - 1) / 2 - ); - - this.vertices.push(octant); - this.uvs.push(j & 1, (j & 2) / 2); - } - this.faces.push([v, v + 1, v + 2]); - this.faces.push([v + 2, v + 1, v + 3]); - } - }; - var boxGeom = new p5.Geometry(detailX, detailY, _box); - boxGeom.computeNormals(); - if (detailX <= 4 && detailY <= 4) { - boxGeom._makeTriangleEdges()._edgesToVertices(); - } else { - console.log( - 'Cannot draw stroke on box objects with more' + - ' than 4 detailX or 4 detailY' - ); - } - //initialize our geometry buffer with - //the key val pair: - //geometry Id, Geom object - this._renderer.createBuffers(gId, boxGeom); - } - this._renderer.drawBuffersScaled(gId, width, height, depth); - - return this; - }; - - /** - * Draw a sphere with given radius - * @method sphere - * @param {Number} [radius] radius of circle - * @param {Integer} [detailX] number of segments, - * the more segments the smoother geometry - * default is 24 - * @param {Integer} [detailY] number of segments, - * the more segments the smoother geometry - * default is 16 - * @chainable - * @example - *
- * - * // draw a sphere with radius 40 - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(200); - * sphere(40); - * } - * - *
- */ - p5.prototype.sphere = function(radius, detailX, detailY) { - this._assert3d('sphere'); - p5._validateParameters('sphere', arguments); - if (typeof radius === 'undefined') { - radius = 50; - } - if (typeof detailX === 'undefined') { - detailX = 24; - } - if (typeof detailY === 'undefined') { - detailY = 16; - } - - this.ellipsoid(radius, radius, radius, detailX, detailY); - - return this; - }; - - /** - * @private - * Helper function for creating both cones and cyllinders - * Will only generate well-defined geometry when bottomRadius, height > 0 - * and topRadius >= 0 - * If topRadius == 0, topCap should be false - */ - var _truncatedCone = function _truncatedCone( - bottomRadius, - topRadius, - height, - detailX, - detailY, - bottomCap, - topCap - ) { - bottomRadius = bottomRadius <= 0 ? 1 : bottomRadius; - topRadius = topRadius < 0 ? 0 : topRadius; - height = height <= 0 ? bottomRadius : height; - detailX = detailX < 3 ? 3 : detailX; - detailY = detailY < 1 ? 1 : detailY; - bottomCap = bottomCap === undefined ? true : bottomCap; - topCap = topCap === undefined ? topRadius !== 0 : topCap; - var start = bottomCap ? -2 : 0; - var end = detailY + (topCap ? 2 : 0); - //ensure constant slant for interior vertex normals - var slant = Math.atan2(bottomRadius - topRadius, height); - var sinSlant = Math.sin(slant); - var cosSlant = Math.cos(slant); - var yy, ii, jj; - for (yy = start; yy <= end; ++yy) { - var v = yy / detailY; - var y = height * v; - var ringRadius; - if (yy < 0) { - //for the bottomCap edge - y = 0; - v = 0; - ringRadius = bottomRadius; - } else if (yy > detailY) { - //for the topCap edge - y = height; - v = 1; - ringRadius = topRadius; - } else { - //for the middle - ringRadius = bottomRadius + (topRadius - bottomRadius) * v; - } - if (yy === -2 || yy === detailY + 2) { - //center of bottom or top caps - ringRadius = 0; - } - - y -= height / 2; //shift coordiate origin to the center of object - for (ii = 0; ii < detailX; ++ii) { - var u = ii / detailX; - var ur = 2 * Math.PI * u; - var sur = Math.sin(ur); - var cur = Math.cos(ur); - - //VERTICES - this.vertices.push(new p5.Vector(sur * ringRadius, y, cur * ringRadius)); - - //VERTEX NORMALS - var vertexNormal; - if (yy < 0) { - vertexNormal = new p5.Vector(0, -1, 0); - } else if (yy > detailY && topRadius) { - vertexNormal = new p5.Vector(0, 1, 0); - } else { - vertexNormal = new p5.Vector(sur * cosSlant, sinSlant, cur * cosSlant); - } - this.vertexNormals.push(vertexNormal); - //UVs - this.uvs.push(u, v); - } - } - - var startIndex = 0; - if (bottomCap) { - for (jj = 0; jj < detailX; ++jj) { - var nextjj = (jj + 1) % detailX; - this.faces.push([ - startIndex + jj, - startIndex + detailX + nextjj, - startIndex + detailX + jj - ]); - } - startIndex += detailX * 2; - } - for (yy = 0; yy < detailY; ++yy) { - for (ii = 0; ii < detailX; ++ii) { - var nextii = (ii + 1) % detailX; - this.faces.push([ - startIndex + ii, - startIndex + nextii, - startIndex + detailX + nextii - ]); - - this.faces.push([ - startIndex + ii, - startIndex + detailX + nextii, - startIndex + detailX + ii - ]); - } - startIndex += detailX; - } - if (topCap) { - startIndex += detailX; - for (ii = 0; ii < detailX; ++ii) { - this.faces.push([ - startIndex + ii, - startIndex + (ii + 1) % detailX, - startIndex + detailX - ]); - } - } - }; - - /** - * Draw a cylinder with given radius and height - * @method cylinder - * @param {Number} [radius] radius of the surface - * @param {Number} [height] height of the cylinder - * @param {Integer} [detailX] number of segments, - * the more segments the smoother geometry - * default is 24 - * @param {Integer} [detailY] number of segments in y-dimension, - * the more segments the smoother geometry - * default is 1 - * @param {Boolean} [bottomCap] whether to draw the bottom of the cylinder - * @param {Boolean} [topCap] whether to draw the top of the cylinder - * @chainable - * @example - *
- * - * // draw a spinning cylinder - * // with radius 20 and height 50 - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(200); - * rotateX(frameCount * 0.01); - * rotateZ(frameCount * 0.01); - * cylinder(20, 50); - * } - * - *
- */ - p5.prototype.cylinder = function( - radius, - height, - detailX, - detailY, - bottomCap, - topCap - ) { - this._assert3d('cylinder'); - p5._validateParameters('cylinder', arguments); - if (typeof radius === 'undefined') { - radius = 50; - } - if (typeof height === 'undefined') { - height = radius; - } - if (typeof detailX === 'undefined') { - detailX = 24; - } - if (typeof detailY === 'undefined') { - detailY = 1; - } - if (typeof topCap === 'undefined') { - topCap = true; - } - if (typeof bottomCap === 'undefined') { - bottomCap = true; - } - - var gId = - 'cylinder|' + detailX + '|' + detailY + '|' + bottomCap + '|' + topCap; - if (!this._renderer.geometryInHash(gId)) { - var cylinderGeom = new p5.Geometry(detailX, detailY); - _truncatedCone.call( - cylinderGeom, - 1, - 1, - 1, - detailX, - detailY, - bottomCap, - topCap - ); - - // normals are computed in call to _truncatedCone - if (detailX <= 24 && detailY <= 16) { - cylinderGeom._makeTriangleEdges()._edgesToVertices(); - } else { - console.log( - 'Cannot draw stroke on cylinder objects with more' + - ' than 24 detailX or 16 detailY' - ); - } - this._renderer.createBuffers(gId, cylinderGeom); - } - - this._renderer.drawBuffersScaled(gId, radius, height, radius); - - return this; - }; - - /** - * Draw a cone with given radius and height - * @method cone - * @param {Number} [radius] radius of the bottom surface - * @param {Number} [height] height of the cone - * @param {Integer} [detailX] number of segments, - * the more segments the smoother geometry - * default is 24 - * @param {Integer} [detailY] number of segments, - * the more segments the smoother geometry - * default is 1 - * @param {Boolean} [cap] whether to draw the base of the cone - * @chainable - * @example - *
- * - * // draw a spinning cone - * // with radius 40 and height 70 - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(200); - * rotateX(frameCount * 0.01); - * rotateZ(frameCount * 0.01); - * cone(40, 70); - * } - * - *
- */ - p5.prototype.cone = function(radius, height, detailX, detailY, cap) { - this._assert3d('cone'); - p5._validateParameters('cone', arguments); - if (typeof radius === 'undefined') { - radius = 50; - } - if (typeof height === 'undefined') { - height = radius; - } - if (typeof detailX === 'undefined') { - detailX = 24; - } - if (typeof detailY === 'undefined') { - detailY = 1; - } - if (typeof cap === 'undefined') { - cap = true; - } - - var gId = 'cone|' + detailX + '|' + detailY + '|' + cap; - if (!this._renderer.geometryInHash(gId)) { - var coneGeom = new p5.Geometry(detailX, detailY); - _truncatedCone.call(coneGeom, 1, 0, 1, detailX, detailY, cap, false); - if (detailX <= 24 && detailY <= 16) { - coneGeom._makeTriangleEdges()._edgesToVertices(); - } else { - console.log( - 'Cannot draw stroke on cone objects with more' + - ' than 24 detailX or 16 detailY' - ); - } - this._renderer.createBuffers(gId, coneGeom); - } - - this._renderer.drawBuffersScaled(gId, radius, height, radius); - - return this; - }; - - /** - * Draw an ellipsoid with given radius - * @method ellipsoid - * @param {Number} [radiusx] x-radius of ellipsoid - * @param {Number} [radiusy] y-radius of ellipsoid - * @param {Number} [radiusz] z-radius of ellipsoid - * @param {Integer} [detailX] number of segments, - * the more segments the smoother geometry - * default is 24. Avoid detail number above - * 150, it may crash the browser. - * @param {Integer} [detailY] number of segments, - * the more segments the smoother geometry - * default is 16. Avoid detail number above - * 150, it may crash the browser. - * @chainable - * @example - *
- * - * // draw an ellipsoid - * // with radius 30, 40 and 40. - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(200); - * ellipsoid(30, 40, 40); - * } - * - *
- */ - p5.prototype.ellipsoid = function(radiusX, radiusY, radiusZ, detailX, detailY) { - this._assert3d('ellipsoid'); - p5._validateParameters('ellipsoid', arguments); - if (typeof radiusX === 'undefined') { - radiusX = 50; - } - if (typeof radiusY === 'undefined') { - radiusY = radiusX; - } - if (typeof radiusZ === 'undefined') { - radiusZ = radiusX; - } - - if (typeof detailX === 'undefined') { - detailX = 24; - } - if (typeof detailY === 'undefined') { - detailY = 16; - } - - var gId = 'ellipsoid|' + detailX + '|' + detailY; - - if (!this._renderer.geometryInHash(gId)) { - var _ellipsoid = function _ellipsoid() { - for (var i = 0; i <= this.detailY; i++) { - var v = i / this.detailY; - var phi = Math.PI * v - Math.PI / 2; - var cosPhi = Math.cos(phi); - var sinPhi = Math.sin(phi); - - for (var j = 0; j <= this.detailX; j++) { - var u = j / this.detailX; - var theta = 2 * Math.PI * u; - var cosTheta = Math.cos(theta); - var sinTheta = Math.sin(theta); - var p = new p5.Vector(cosPhi * sinTheta, sinPhi, cosPhi * cosTheta); - this.vertices.push(p); - this.vertexNormals.push(p); - this.uvs.push(u, v); - } - } - }; - var ellipsoidGeom = new p5.Geometry(detailX, detailY, _ellipsoid); - ellipsoidGeom.computeFaces(); - if (detailX <= 24 && detailY <= 24) { - ellipsoidGeom._makeTriangleEdges()._edgesToVertices(); - } else { - console.log( - 'Cannot draw stroke on ellipsoids with more' + - ' than 24 detailX or 24 detailY' - ); - } - this._renderer.createBuffers(gId, ellipsoidGeom); - } - - this._renderer.drawBuffersScaled(gId, radiusX, radiusY, radiusZ); - - return this; - }; - - /** - * Draw a torus with given radius and tube radius - * @method torus - * @param {Number} [radius] radius of the whole ring - * @param {Number} [tubeRadius] radius of the tube - * @param {Integer} [detailX] number of segments in x-dimension, - * the more segments the smoother geometry - * default is 24 - * @param {Integer} [detailY] number of segments in y-dimension, - * the more segments the smoother geometry - * default is 16 - * @chainable - * @example - *
- * - * // draw a spinning torus - * // with ring radius 30 and tube radius 15 - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(200); - * rotateX(frameCount * 0.01); - * rotateY(frameCount * 0.01); - * torus(30, 15); - * } - * - *
- */ - p5.prototype.torus = function(radius, tubeRadius, detailX, detailY) { - this._assert3d('torus'); - p5._validateParameters('torus', arguments); - if (typeof radius === 'undefined') { - radius = 50; - } else if (!radius) { - return; // nothing to draw - } - - if (typeof tubeRadius === 'undefined') { - tubeRadius = 10; - } else if (!tubeRadius) { - return; // nothing to draw - } - - if (typeof detailX === 'undefined') { - detailX = 24; - } - if (typeof detailY === 'undefined') { - detailY = 16; - } - - var tubeRatio = (tubeRadius / radius).toPrecision(4); - var gId = 'torus|' + tubeRatio + '|' + detailX + '|' + detailY; - - if (!this._renderer.geometryInHash(gId)) { - var _torus = function _torus() { - for (var i = 0; i <= this.detailY; i++) { - var v = i / this.detailY; - var phi = 2 * Math.PI * v; - var cosPhi = Math.cos(phi); - var sinPhi = Math.sin(phi); - var r = 1 + tubeRatio * cosPhi; - - for (var j = 0; j <= this.detailX; j++) { - var u = j / this.detailX; - var theta = 2 * Math.PI * u; - var cosTheta = Math.cos(theta); - var sinTheta = Math.sin(theta); - - var p = new p5.Vector(r * cosTheta, r * sinTheta, tubeRatio * sinPhi); - - var n = new p5.Vector(cosPhi * cosTheta, cosPhi * sinTheta, sinPhi); - - this.vertices.push(p); - this.vertexNormals.push(n); - this.uvs.push(u, v); - } - } - }; - var torusGeom = new p5.Geometry(detailX, detailY, _torus); - torusGeom.computeFaces(); - if (detailX <= 24 && detailY <= 16) { - torusGeom._makeTriangleEdges()._edgesToVertices(); - } else { - console.log( - 'Cannot draw strokes on torus object with more' + - ' than 24 detailX or 16 detailY' - ); - } - this._renderer.createBuffers(gId, torusGeom); - } - this._renderer.drawBuffersScaled(gId, radius, radius, radius); - - return this; - }; - - /////////////////////// - /// 2D primitives - ///////////////////////// - - /** - * Draws a point, a coordinate in space at the dimension of one pixel, - * given x, y and z coordinates. The color of the point is determined - * by the current stroke, while the point size is determined by current - * stroke weight. - * @private - * @param {Number} x x-coordinate of point - * @param {Number} y y-coordinate of point - * @param {Number} z z-coordinate of point - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(50); - * stroke(255); - * strokeWeight(4); - * point(25, 0); - * strokeWeight(3); - * point(-25, 0); - * strokeWeight(2); - * point(0, 25); - * strokeWeight(1); - * point(0, -25); - * } - * - *
- */ - p5.RendererGL.prototype.point = function(x, y, z) { - if (typeof z === 'undefined') { - z = 0; - } - - var _vertex = []; - _vertex.push(new p5.Vector(x, y, z)); - this._drawPoints(_vertex, this._pointVertexBuffer); - - return this; - }; - - p5.RendererGL.prototype.triangle = function(args) { - var x1 = args[0], - y1 = args[1]; - var x2 = args[2], - y2 = args[3]; - var x3 = args[4], - y3 = args[5]; - - var gId = 'tri'; - if (!this.geometryInHash(gId)) { - var _triangle = function _triangle() { - var vertices = []; - vertices.push(new p5.Vector(0, 0, 0)); - vertices.push(new p5.Vector(0, 1, 0)); - vertices.push(new p5.Vector(1, 0, 0)); - this.strokeIndices = [[0, 1], [1, 2], [2, 0]]; - this.vertices = vertices; - this.faces = [[0, 1, 2]]; - this.uvs = [0, 0, 0, 1, 1, 1]; - }; - var triGeom = new p5.Geometry(1, 1, _triangle); - triGeom._makeTriangleEdges()._edgesToVertices(); - triGeom.computeNormals(); - this.createBuffers(gId, triGeom); - } - - // only one triangle is cached, one point is at the origin, and the - // two adjacent sides are tne unit vectors along the X & Y axes. - // - // this matrix multiplication transforms those two unit vectors - // onto the required vector prior to rendering, and moves the - // origin appropriately. - var uMVMatrix = this.uMVMatrix.copy(); - try { - // prettier-ignore - var mult = new p5.Matrix([ - x2 - x1, y2 - y1, 0, 0, // the resulting unit X-axis - x3 - x1, y3 - y1, 0, 0, // the resulting unit Y-axis - 0, 0, 1, 0, // the resulting unit Z-axis (unchanged) - x1, y1, 0, 1 // the resulting origin - ]).mult(this.uMVMatrix); - - this.uMVMatrix = mult; - - this.drawBuffers(gId); - } finally { - this.uMVMatrix = uMVMatrix; - } - - return this; - }; - - p5.RendererGL.prototype.ellipse = function(args) { - this.arc( - args[0], - args[1], - args[2], - args[3], - 0, - constants.TWO_PI, - constants.OPEN, - args[4] - ); - }; - - p5.RendererGL.prototype.arc = function(args) { - var x = arguments[0]; - var y = arguments[1]; - var width = arguments[2]; - var height = arguments[3]; - var start = arguments[4]; - var stop = arguments[5]; - var mode = arguments[6]; - var detail = arguments[7] || 25; - - var shape; - var gId; - - // check if it is an ellipse or an arc - if (Math.abs(stop - start) >= constants.TWO_PI) { - shape = 'ellipse'; - gId = shape + '|' + detail + '|'; - } else { - shape = 'arc'; - gId = shape + '|' + start + '|' + stop + '|' + mode + '|' + detail + '|'; - } - - if (!this.geometryInHash(gId)) { - var _arc = function _arc() { - this.strokeIndices = []; - - // if the start and stop angles are not the same, push vertices to the array - if (start.toFixed(10) !== stop.toFixed(10)) { - // if the mode specified is PIE or null, push the mid point of the arc in vertices - if (mode === constants.PIE || typeof mode === 'undefined') { - this.vertices.push(new p5.Vector(0.5, 0.5, 0)); - this.uvs.push([0.5, 0.5]); - } - - // vertices for the perimeter of the circle - for (var i = 0; i <= detail; i++) { - var u = i / detail; - var theta = (stop - start) * u + start; - - var _x = 0.5 + Math.cos(theta) / 2; - var _y = 0.5 + Math.sin(theta) / 2; - - this.vertices.push(new p5.Vector(_x, _y, 0)); - this.uvs.push([_x, _y]); - - if (i < detail - 1) { - this.faces.push([0, i + 1, i + 2]); - this.strokeIndices.push([i + 1, i + 2]); - } - } - - // check the mode specified in order to push vertices and faces, different for each mode - switch (mode) { - case constants.PIE: - this.faces.push([ - 0, - this.vertices.length - 2, - this.vertices.length - 1 - ]); - - this.strokeIndices.push([0, 1]); - this.strokeIndices.push([ - this.vertices.length - 2, - this.vertices.length - 1 - ]); - - this.strokeIndices.push([0, this.vertices.length - 1]); - break; - - case constants.CHORD: - this.strokeIndices.push([0, 1]); - this.strokeIndices.push([0, this.vertices.length - 1]); - break; - - case constants.OPEN: - this.strokeIndices.push([0, 1]); - break; - - default: - this.faces.push([ - 0, - this.vertices.length - 2, - this.vertices.length - 1 - ]); - - this.strokeIndices.push([ - this.vertices.length - 2, - this.vertices.length - 1 - ]); - } - } - }; - - var arcGeom = new p5.Geometry(detail, 1, _arc); - arcGeom.computeNormals(); - - if (detail <= 50) { - arcGeom._makeTriangleEdges()._edgesToVertices(arcGeom); - } else { - console.log('Cannot stroke ' + shape + ' with more than 50 detail'); - } - - this.createBuffers(gId, arcGeom); - } - - var uMVMatrix = this.uMVMatrix.copy(); - - try { - this.uMVMatrix.translate([x, y, 0]); - this.uMVMatrix.scale(width, height, 1); - - this.drawBuffers(gId); - } finally { - this.uMVMatrix = uMVMatrix; - } - - return this; - }; - - p5.RendererGL.prototype.rect = function(args) { - var perPixelLighting = this._pInst._glAttributes.perPixelLighting; - var x = args[0]; - var y = args[1]; - var width = args[2]; - var height = args[3]; - var detailX = args[4] || (perPixelLighting ? 1 : 24); - var detailY = args[5] || (perPixelLighting ? 1 : 16); - var gId = 'rect|' + detailX + '|' + detailY; - if (!this.geometryInHash(gId)) { - var _rect = function _rect() { - for (var i = 0; i <= this.detailY; i++) { - var v = i / this.detailY; - for (var j = 0; j <= this.detailX; j++) { - var u = j / this.detailX; - var p = new p5.Vector(u, v, 0); - this.vertices.push(p); - this.uvs.push(u, v); - } - } - // using stroke indices to avoid stroke over face(s) of rectangle - if (detailX > 0 && detailY > 0) { - this.strokeIndices = [ - [0, detailX], - [detailX, (detailX + 1) * (detailY + 1) - 1], - [(detailX + 1) * (detailY + 1) - 1, (detailX + 1) * detailY], - [(detailX + 1) * detailY, 0] - ]; - } - }; - var rectGeom = new p5.Geometry(detailX, detailY, _rect); - rectGeom - .computeFaces() - .computeNormals() - ._makeTriangleEdges() - ._edgesToVertices(); - this.createBuffers(gId, rectGeom); - } - - // only a single rectangle (of a given detail) is cached: a square with - // opposite corners at (0,0) & (1,1). - // - // before rendering, this square is scaled & moved to the required location. - var uMVMatrix = this.uMVMatrix.copy(); - try { - this.uMVMatrix.translate([x, y, 0]); - this.uMVMatrix.scale(width, height, 1); - - this.drawBuffers(gId); - } finally { - this.uMVMatrix = uMVMatrix; - } - return this; - }; - - // prettier-ignore - p5.RendererGL.prototype.quad = function (x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4) { - var gId = - 'quad|' + - x1 + - '|' + - y1 + - '|' + - z1 + - '|' + - x2 + - '|' + - y2 + - '|' + - z2 + - '|' + - x3 + - '|' + - y3 + - '|' + - z3 + - '|' + - x4 + - '|' + - y4 + - '|' + - z4; - if (!this.geometryInHash(gId)) { - var _quad = function _quad() { - this.vertices.push(new p5.Vector(x1, y1, z1)); - this.vertices.push(new p5.Vector(x2, y2, z2)); - this.vertices.push(new p5.Vector(x3, y3, z3)); - this.vertices.push(new p5.Vector(x4, y4, z4)); - this.uvs.push(0, 0, 1, 0, 1, 1, 0, 1); - this.strokeIndices = [[0, 1], [1, 2], [2, 3], [3, 0]]; - }; - var quadGeom = new p5.Geometry(2, 2, _quad); - quadGeom. - computeNormals(). - _makeTriangleEdges(). - _edgesToVertices(); - quadGeom.faces = [[0, 1, 2], [2, 3, 0]]; - this.createBuffers(gId, quadGeom); - } - this.drawBuffers(gId); - return this; -}; - - //this implementation of bezier curve - //is based on Bernstein polynomial - // pretier-ignore - p5.RendererGL.prototype.bezier = function( - x1, - y1, - z1, // x2 - x2, // y2 - y2, // x3 - z2, // y3 - x3, // x4 - y3, // y4 - z3, - x4, - y4, - z4 - ) { - if (arguments.length === 8) { - y4 = y3; - x4 = x3; - y3 = z2; - x3 = y2; - y2 = x2; - x2 = z1; - z1 = z2 = z3 = z4 = 0; - } - var bezierDetail = this._pInst._bezierDetail || 20; //value of Bezier detail - this.beginShape(); - for (var i = 0; i <= bezierDetail; i++) { - var c1 = Math.pow(1 - i / bezierDetail, 3); - var c2 = 3 * (i / bezierDetail) * Math.pow(1 - i / bezierDetail, 2); - var c3 = 3 * Math.pow(i / bezierDetail, 2) * (1 - i / bezierDetail); - var c4 = Math.pow(i / bezierDetail, 3); - this.vertex( - x1 * c1 + x2 * c2 + x3 * c3 + x4 * c4, - y1 * c1 + y2 * c2 + y3 * c3 + y4 * c4, - z1 * c1 + z2 * c2 + z3 * c3 + z4 * c4 - ); - } - this.endShape(); - return this; - }; - - // pretier-ignore - p5.RendererGL.prototype.curve = function( - x1, - y1, - z1, // x2 - x2, // y2 - y2, // x3 - z2, // y3 - x3, // x4 - y3, // y4 - z3, - x4, - y4, - z4 - ) { - if (arguments.length === 8) { - x4 = x3; - y4 = y3; - x3 = y2; - y3 = x2; - x2 = z1; - y2 = x2; - z1 = z2 = z3 = z4 = 0; - } - var curveDetail = this._pInst._curveDetail; - this.beginShape(); - for (var i = 0; i <= curveDetail; i++) { - var c1 = Math.pow(i / curveDetail, 3) * 0.5; - var c2 = Math.pow(i / curveDetail, 2) * 0.5; - var c3 = i / curveDetail * 0.5; - var c4 = 0.5; - var vx = - c1 * (-x1 + 3 * x2 - 3 * x3 + x4) + - c2 * (2 * x1 - 5 * x2 + 4 * x3 - x4) + - c3 * (-x1 + x3) + - c4 * (2 * x2); - var vy = - c1 * (-y1 + 3 * y2 - 3 * y3 + y4) + - c2 * (2 * y1 - 5 * y2 + 4 * y3 - y4) + - c3 * (-y1 + y3) + - c4 * (2 * y2); - var vz = - c1 * (-z1 + 3 * z2 - 3 * z3 + z4) + - c2 * (2 * z1 - 5 * z2 + 4 * z3 - z4) + - c3 * (-z1 + z3) + - c4 * (2 * z2); - this.vertex(vx, vy, vz); - } - this.endShape(); - return this; - }; - - /** - * Draw a line given two points - * @private - * @param {Number} x0 x-coordinate of first vertex - * @param {Number} y0 y-coordinate of first vertex - * @param {Number} z0 z-coordinate of first vertex - * @param {Number} x1 x-coordinate of second vertex - * @param {Number} y1 y-coordinate of second vertex - * @param {Number} z1 z-coordinate of second vertex - * @chainable - * @example - *
- * - * //draw a line - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(200); - * rotateX(frameCount * 0.01); - * rotateY(frameCount * 0.01); - * // Use fill instead of stroke to change the color of shape. - * fill(255, 0, 0); - * line(10, 10, 0, 60, 60, 20); - * } - * - *
- */ - p5.RendererGL.prototype.line = function() { - if (arguments.length === 6) { - this.beginShape(); - this.vertex(arguments[0], arguments[1], arguments[2]); - this.vertex(arguments[3], arguments[4], arguments[5]); - this.endShape(); - } else if (arguments.length === 4) { - this.beginShape(); - this.vertex(arguments[0], arguments[1], 0); - this.vertex(arguments[2], arguments[3], 0); - this.endShape(); - } - return this; - }; - - p5.RendererGL.prototype.bezierVertex = function() { - if (this.immediateMode._bezierVertex.length === 0) { - throw Error('vertex() must be used once before calling bezierVertex()'); - } else { - var w_x = []; - var w_y = []; - var w_z = []; - var t, _x, _y, _z, i; - var argLength = arguments.length; - - t = 0; - - if ( - this._lookUpTableBezier.length === 0 || - this._lutBezierDetail !== this._pInst._curveDetail - ) { - this._lookUpTableBezier = []; - this._lutBezierDetail = this._pInst._curveDetail; - var step = 1 / this._lutBezierDetail; - var start = 0; - var end = 1; - var j = 0; - while (start < 1) { - t = parseFloat(start.toFixed(6)); - this._lookUpTableBezier[j] = this._bezierCoefficients(t); - if (end.toFixed(6) === step.toFixed(6)) { - t = parseFloat(end.toFixed(6)) + parseFloat(start.toFixed(6)); - ++j; - this._lookUpTableBezier[j] = this._bezierCoefficients(t); - break; - } - start += step; - end -= step; - ++j; - } - } - - var LUTLength = this._lookUpTableBezier.length; - - if (argLength === 6) { - this.isBezier = true; - - w_x = [ - this.immediateMode._bezierVertex[0], - arguments[0], - arguments[2], - arguments[4] - ]; - - w_y = [ - this.immediateMode._bezierVertex[1], - arguments[1], - arguments[3], - arguments[5] - ]; - - for (i = 0; i < LUTLength; i++) { - _x = - w_x[0] * this._lookUpTableBezier[i][0] + - w_x[1] * this._lookUpTableBezier[i][1] + - w_x[2] * this._lookUpTableBezier[i][2] + - w_x[3] * this._lookUpTableBezier[i][3]; - _y = - w_y[0] * this._lookUpTableBezier[i][0] + - w_y[1] * this._lookUpTableBezier[i][1] + - w_y[2] * this._lookUpTableBezier[i][2] + - w_y[3] * this._lookUpTableBezier[i][3]; - this.vertex(_x, _y); - } - this.immediateMode._bezierVertex[0] = arguments[4]; - this.immediateMode._bezierVertex[1] = arguments[5]; - } else if (argLength === 9) { - this.isBezier = true; - - w_x = [ - this.immediateMode._bezierVertex[0], - arguments[0], - arguments[3], - arguments[6] - ]; - - w_y = [ - this.immediateMode._bezierVertex[1], - arguments[1], - arguments[4], - arguments[7] - ]; - - w_z = [ - this.immediateMode._bezierVertex[2], - arguments[2], - arguments[5], - arguments[8] - ]; - - for (i = 0; i < LUTLength; i++) { - _x = - w_x[0] * this._lookUpTableBezier[i][0] + - w_x[1] * this._lookUpTableBezier[i][1] + - w_x[2] * this._lookUpTableBezier[i][2] + - w_x[3] * this._lookUpTableBezier[i][3]; - _y = - w_y[0] * this._lookUpTableBezier[i][0] + - w_y[1] * this._lookUpTableBezier[i][1] + - w_y[2] * this._lookUpTableBezier[i][2] + - w_y[3] * this._lookUpTableBezier[i][3]; - _z = - w_z[0] * this._lookUpTableBezier[i][0] + - w_z[1] * this._lookUpTableBezier[i][1] + - w_z[2] * this._lookUpTableBezier[i][2] + - w_z[3] * this._lookUpTableBezier[i][3]; - this.vertex(_x, _y, _z); - } - this.immediateMode._bezierVertex[0] = arguments[6]; - this.immediateMode._bezierVertex[1] = arguments[7]; - this.immediateMode._bezierVertex[2] = arguments[8]; - } - } - }; - - p5.RendererGL.prototype.quadraticVertex = function() { - if (this.immediateMode._quadraticVertex.length === 0) { - throw Error('vertex() must be used once before calling quadraticVertex()'); - } else { - var w_x = []; - var w_y = []; - var w_z = []; - var t, _x, _y, _z, i; - var argLength = arguments.length; - - t = 0; - - if ( - this._lookUpTableQuadratic.length === 0 || - this._lutQuadraticDetail !== this._pInst._curveDetail - ) { - this._lookUpTableQuadratic = []; - this._lutQuadraticDetail = this._pInst._curveDetail; - var step = 1 / this._lutQuadraticDetail; - var start = 0; - var end = 1; - var j = 0; - while (start < 1) { - t = parseFloat(start.toFixed(6)); - this._lookUpTableQuadratic[j] = this._quadraticCoefficients(t); - if (end.toFixed(6) === step.toFixed(6)) { - t = parseFloat(end.toFixed(6)) + parseFloat(start.toFixed(6)); - ++j; - this._lookUpTableQuadratic[j] = this._quadraticCoefficients(t); - break; - } - start += step; - end -= step; - ++j; - } - } - - var LUTLength = this._lookUpTableQuadratic.length; - - if (argLength === 4) { - this.isQuadratic = true; - - w_x = [this.immediateMode._quadraticVertex[0], arguments[0], arguments[2]]; - - w_y = [this.immediateMode._quadraticVertex[1], arguments[1], arguments[3]]; - - for (i = 0; i < LUTLength; i++) { - _x = - w_x[0] * this._lookUpTableQuadratic[i][0] + - w_x[1] * this._lookUpTableQuadratic[i][1] + - w_x[2] * this._lookUpTableQuadratic[i][2]; - _y = - w_y[0] * this._lookUpTableQuadratic[i][0] + - w_y[1] * this._lookUpTableQuadratic[i][1] + - w_y[2] * this._lookUpTableQuadratic[i][2]; - this.vertex(_x, _y); - } - - this.immediateMode._quadraticVertex[0] = arguments[2]; - this.immediateMode._quadraticVertex[1] = arguments[3]; - } else if (argLength === 6) { - this.isQuadratic = true; - - w_x = [this.immediateMode._quadraticVertex[0], arguments[0], arguments[3]]; - - w_y = [this.immediateMode._quadraticVertex[1], arguments[1], arguments[4]]; - - w_z = [this.immediateMode._quadraticVertex[2], arguments[2], arguments[5]]; - - for (i = 0; i < LUTLength; i++) { - _x = - w_x[0] * this._lookUpTableQuadratic[i][0] + - w_x[1] * this._lookUpTableQuadratic[i][1] + - w_x[2] * this._lookUpTableQuadratic[i][2]; - _y = - w_y[0] * this._lookUpTableQuadratic[i][0] + - w_y[1] * this._lookUpTableQuadratic[i][1] + - w_y[2] * this._lookUpTableQuadratic[i][2]; - _z = - w_z[0] * this._lookUpTableQuadratic[i][0] + - w_z[1] * this._lookUpTableQuadratic[i][1] + - w_z[2] * this._lookUpTableQuadratic[i][2]; - this.vertex(_x, _y, _z); - } - - this.immediateMode._quadraticVertex[0] = arguments[3]; - this.immediateMode._quadraticVertex[1] = arguments[4]; - this.immediateMode._quadraticVertex[2] = arguments[5]; - } - } - }; - - p5.RendererGL.prototype.curveVertex = function() { - var w_x = []; - var w_y = []; - var w_z = []; - var t, _x, _y, _z, i; - t = 0; - var argLength = arguments.length; - - if ( - this._lookUpTableBezier.length === 0 || - this._lutBezierDetail !== this._pInst._curveDetail - ) { - this._lookUpTableBezier = []; - this._lutBezierDetail = this._pInst._curveDetail; - var step = 1 / this._lutBezierDetail; - var start = 0; - var end = 1; - var j = 0; - while (start < 1) { - t = parseFloat(start.toFixed(6)); - this._lookUpTableBezier[j] = this._bezierCoefficients(t); - if (end.toFixed(6) === step.toFixed(6)) { - t = parseFloat(end.toFixed(6)) + parseFloat(start.toFixed(6)); - ++j; - this._lookUpTableBezier[j] = this._bezierCoefficients(t); - break; - } - start += step; - end -= step; - ++j; - } - } - - var LUTLength = this._lookUpTableBezier.length; - - if (argLength === 2) { - this.immediateMode._curveVertex.push(arguments[0]); - this.immediateMode._curveVertex.push(arguments[1]); - if (this.immediateMode._curveVertex.length === 8) { - this.isCurve = true; - w_x = this._bezierToCatmull([ - this.immediateMode._curveVertex[0], - this.immediateMode._curveVertex[2], - this.immediateMode._curveVertex[4], - this.immediateMode._curveVertex[6] - ]); - - w_y = this._bezierToCatmull([ - this.immediateMode._curveVertex[1], - this.immediateMode._curveVertex[3], - this.immediateMode._curveVertex[5], - this.immediateMode._curveVertex[7] - ]); - - for (i = 0; i < LUTLength; i++) { - _x = - w_x[0] * this._lookUpTableBezier[i][0] + - w_x[1] * this._lookUpTableBezier[i][1] + - w_x[2] * this._lookUpTableBezier[i][2] + - w_x[3] * this._lookUpTableBezier[i][3]; - _y = - w_y[0] * this._lookUpTableBezier[i][0] + - w_y[1] * this._lookUpTableBezier[i][1] + - w_y[2] * this._lookUpTableBezier[i][2] + - w_y[3] * this._lookUpTableBezier[i][3]; - this.vertex(_x, _y); - } - for (i = 0; i < argLength; i++) { - this.immediateMode._curveVertex.shift(); - } - } - } else if (argLength === 3) { - this.immediateMode._curveVertex.push(arguments[0]); - this.immediateMode._curveVertex.push(arguments[1]); - this.immediateMode._curveVertex.push(arguments[2]); - if (this.immediateMode._curveVertex.length === 12) { - this.isCurve = true; - w_x = this._bezierToCatmull([ - this.immediateMode._curveVertex[0], - this.immediateMode._curveVertex[3], - this.immediateMode._curveVertex[6], - this.immediateMode._curveVertex[9] - ]); - - w_y = this._bezierToCatmull([ - this.immediateMode._curveVertex[1], - this.immediateMode._curveVertex[4], - this.immediateMode._curveVertex[7], - this.immediateMode._curveVertex[10] - ]); - - w_z = this._bezierToCatmull([ - this.immediateMode._curveVertex[2], - this.immediateMode._curveVertex[5], - this.immediateMode._curveVertex[8], - this.immediateMode._curveVertex[11] - ]); - - for (i = 0; i < LUTLength; i++) { - _x = - w_x[0] * this._lookUpTableBezier[i][0] + - w_x[1] * this._lookUpTableBezier[i][1] + - w_x[2] * this._lookUpTableBezier[i][2] + - w_x[3] * this._lookUpTableBezier[i][3]; - _y = - w_y[0] * this._lookUpTableBezier[i][0] + - w_y[1] * this._lookUpTableBezier[i][1] + - w_y[2] * this._lookUpTableBezier[i][2] + - w_y[3] * this._lookUpTableBezier[i][3]; - _z = - w_z[0] * this._lookUpTableBezier[i][0] + - w_z[1] * this._lookUpTableBezier[i][1] + - w_z[2] * this._lookUpTableBezier[i][2] + - w_z[3] * this._lookUpTableBezier[i][3]; - this.vertex(_x, _y, _z); - } - for (i = 0; i < argLength; i++) { - this.immediateMode._curveVertex.shift(); - } - } - } - }; - - p5.RendererGL.prototype.image = function( - img, - sx, - sy, - sWidth, - sHeight, - dx, - dy, - dWidth, - dHeight - ) { - this._pInst.push(); - - this._pInst.texture(img); - this._pInst.textureMode(constants.NORMAL); - - var u0 = 0; - if (sx <= img.width) { - u0 = sx / img.width; - } - - var u1 = 1; - if (sx + sWidth <= img.width) { - u1 = (sx + sWidth) / img.width; - } - - var v0 = 0; - if (sy <= img.height) { - v0 = sy / img.height; - } - - var v1 = 1; - if (sy + sHeight <= img.height) { - v1 = (sy + sHeight) / img.height; - } - - this.beginShape(); - this.vertex(dx, dy, 0, u0, v0); - this.vertex(dx + dWidth, dy, 0, u1, v0); - this.vertex(dx + dWidth, dy + dHeight, 0, u1, v1); - this.vertex(dx, dy + dHeight, 0, u0, v1); - this.endShape(constants.CLOSE); - - this._pInst.pop(); - }; - - module.exports = p5; - }, - { '../core/constants': 18, '../core/main': 24, './p5.Geometry': 71 } - ], - 66: [ - function(_dereq_, module, exports) { - /** - * @module Lights, Camera - * @submodule Interaction - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - var constants = _dereq_('../core/constants'); - - /** - * Allows movement around a 3D sketch using a mouse or trackpad. Left-clicking - * and dragging will rotate the camera position about the center of the sketch, - * right-clicking and dragging will pan the camera position without rotation, - * and using the mouse wheel (scrolling) will move the camera closer or further - * from the center of the sketch. This function can be called with parameters - * dictating sensitivity to mouse movement along the X and Y axes. Calling - * this function without parameters is equivalent to calling orbitControl(1,1). - * To reverse direction of movement in either axis, enter a negative number - * for sensitivity. - * @method orbitControl - * @for p5 - * @param {Number} [sensitivityX] sensitivity to mouse movement along X axis - * @param {Number} [sensitivityY] sensitivity to mouse movement along Y axis - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * normalMaterial(); - * } - * function draw() { - * background(200); - * orbitControl(); - * rotateY(0.5); - * box(30, 50); - * } - * - *
- * - * @alt - * Camera orbits around a box when mouse is hold-clicked & then moved. - */ - - // implementation based on three.js 'orbitControls': - // https://github.com/mrdoob/three.js/blob/dev/examples/js/controls/OrbitControls.js - p5.prototype.orbitControl = function(sensitivityX, sensitivityY) { - this._assert3d('orbitControl'); - p5._validateParameters('orbitControl', arguments); - - // If the mouse is not in bounds of the canvas, disable all behaviors: - var mouseInCanvas = - this.mouseX < this.width && - this.mouseX > 0 && - this.mouseY < this.height && - this.mouseY > 0; - if (!mouseInCanvas) return; - - var cam = this._renderer._curCamera; - - if (typeof sensitivityX === 'undefined') { - sensitivityX = 1; - } - if (typeof sensitivityY === 'undefined') { - sensitivityY = sensitivityX; - } - - // default right-mouse and mouse-wheel behaviors (context menu and scrolling, - // respectively) are disabled here to allow use of those events for panning and - // zooming - - // disable context menu for canvas element and add 'contextMenuDisabled' - // flag to p5 instance - if (this.contextMenuDisabled !== true) { - this.canvas.oncontextmenu = function() { - return false; - }; - this._setProperty('contextMenuDisabled', true); - } - - // disable default scrolling behavior on the canvas element and add - // 'wheelDefaultDisabled' flag to p5 instance - if (this.wheelDefaultDisabled !== true) { - this.canvas.onwheel = function() { - return false; - }; - this._setProperty('wheelDefaultDisabled', true); - } - - var scaleFactor = this.height < this.width ? this.height : this.width; - - // ZOOM if there is a change in mouseWheelDelta - if (this._mouseWheelDeltaY !== this._pmouseWheelDeltaY) { - // zoom according to direction of mouseWheelDeltaY rather than value - if (this._mouseWheelDeltaY > 0) { - this._renderer._curCamera._orbit(0, 0, 0.5 * scaleFactor); - } else { - this._renderer._curCamera._orbit(0, 0, -0.5 * scaleFactor); - } - } - - if (this.mouseIsPressed) { - // ORBIT BEHAVIOR - if (this.mouseButton === this.LEFT) { - var deltaTheta = -sensitivityX * (this.mouseX - this.pmouseX) / scaleFactor; - var deltaPhi = sensitivityY * (this.mouseY - this.pmouseY) / scaleFactor; - this._renderer._curCamera._orbit(deltaTheta, deltaPhi, 0); - } else if (this.mouseButton === this.RIGHT) { - // PANNING BEHAVIOR along X/Z camera axes and restricted to X/Z plane - // in world space - var local = cam._getLocalAxes(); - - // normalize portions along X/Z axes - var xmag = Math.sqrt(local.x[0] * local.x[0] + local.x[2] * local.x[2]); - if (xmag !== 0) { - local.x[0] /= xmag; - local.x[2] /= xmag; - } - - // normalize portions along X/Z axes - var ymag = Math.sqrt(local.y[0] * local.y[0] + local.y[2] * local.y[2]); - if (ymag !== 0) { - local.y[0] /= ymag; - local.y[2] /= ymag; - } - - // move along those vectors by amount controlled by mouseX, pmouseY - var dx = -1 * sensitivityX * (this.mouseX - this.pmouseX); - var dz = -1 * sensitivityY * (this.mouseY - this.pmouseY); - - // restrict movement to XZ plane in world space - cam.setPosition( - cam.eyeX + dx * local.x[0] + dz * local.z[0], - cam.eyeY, - cam.eyeZ + dx * local.x[2] + dz * local.z[2] - ); - } - } - return this; - }; - - /** - * debugMode() helps visualize 3D space by adding a grid to indicate where the - * โ€˜groundโ€™ is in a sketch and an axes icon which indicates the +X, +Y, and +Z - * directions. This function can be called without parameters to create a - * default grid and axes icon, or it can be called according to the examples - * above to customize the size and position of the grid and/or axes icon. The - * grid is drawn using the most recently set stroke color and weight. To - * specify these parameters, add a call to stroke() and strokeWeight() - * just before the end of the draw() loop. - * - * By default, the grid will run through the origin (0,0,0) of the sketch - * along the XZ plane - * and the axes icon will be offset from the origin. Both the grid and axes - * icon will be sized according to the current canvas size. Note that because the - * grid runs parallel to the default camera view, it is often helpful to use - * debugMode along with orbitControl to allow full view of the grid. - * @method debugMode - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * camera(0, -30, 100, 0, 0, 0, 0, 1, 0); - * normalMaterial(); - * debugMode(); - * } - * - * function draw() { - * background(200); - * orbitControl(); - * box(15, 30); - * // Press the spacebar to turn debugMode off! - * if (keyIsDown(32)) { - * noDebugMode(); - * } - * } - * - *
- * @alt - * a 3D box is centered on a grid in a 3D sketch. an icon - * indicates the direction of each axis: a red line points +X, - * a green line +Y, and a blue line +Z. the grid and icon disappear when the - * spacebar is pressed. - * - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * camera(0, -30, 100, 0, 0, 0, 0, 1, 0); - * normalMaterial(); - * debugMode(GRID); - * } - * - * function draw() { - * background(200); - * orbitControl(); - * box(15, 30); - * } - * - *
- * @alt - * a 3D box is centered on a grid in a 3D sketch. - * - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * camera(0, -30, 100, 0, 0, 0, 0, 1, 0); - * normalMaterial(); - * debugMode(AXES); - * } - * - * function draw() { - * background(200); - * orbitControl(); - * box(15, 30); - * } - * - *
- * @alt - * a 3D box is centered in a 3D sketch. an icon - * indicates the direction of each axis: a red line points +X, - * a green line +Y, and a blue line +Z. - * - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * camera(0, -30, 100, 0, 0, 0, 0, 1, 0); - * normalMaterial(); - * debugMode(GRID, 100, 10, 0, 0, 0); - * } - * - * function draw() { - * background(200); - * orbitControl(); - * box(15, 30); - * } - * - *
- * @alt - * a 3D box is centered on a grid in a 3D sketch - * - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * camera(0, -30, 100, 0, 0, 0, 0, 1, 0); - * normalMaterial(); - * debugMode(100, 10, 0, 0, 0, 20, 0, -40, 0); - * } - * - * function draw() { - * noStroke(); - * background(200); - * orbitControl(); - * box(15, 30); - * // set the stroke color and weight for the grid! - * stroke(255, 0, 150); - * strokeWeight(0.8); - * } - * - *
- * @alt - * a 3D box is centered on a grid in a 3D sketch. an icon - * indicates the direction of each axis: a red line points +X, - * a green line +Y, and a blue line +Z. - */ - - /** - * @method debugMode - * @param {Constant} mode either GRID or AXES - */ - - /** - * @method debugMode - * @param {Constant} mode - * @param {Number} [gridSize] size of one side of the grid - * @param {Number} [gridDivisions] number of divisions in the grid - * @param {Number} [xOff] X axis offset from origin (0,0,0) - * @param {Number} [yOff] Y axis offset from origin (0,0,0) - * @param {Number} [zOff] Z axis offset from origin (0,0,0) - */ - - /** - * @method debugMode - * @param {Constant} mode - * @param {Number} [axesSize] size of axes icon - * @param {Number} [xOff] - * @param {Number} [yOff] - * @param {Number} [zOff] - */ - - /** - * @method debugMode - * @param {Number} [gridSize] - * @param {Number} [gridDivisions] - * @param {Number} [gridXOff] - * @param {Number} [gridYOff] - * @param {Number} [gridZOff] - * @param {Number} [axesSize] - * @param {Number} [axesXOff] - * @param {Number} [axesYOff] - * @param {Number} [axesZOff] - */ - - p5.prototype.debugMode = function() { - this._assert3d('debugMode'); - p5._validateParameters('debugMode', arguments); - - // start by removing existing 'post' registered debug methods - for (var i = this._registeredMethods.post.length - 1; i >= 0; i--) { - // test for equality... - if ( - this._registeredMethods.post[i].toString() === this._grid().toString() || - this._registeredMethods.post[i].toString() === this._axesIcon().toString() - ) { - this._registeredMethods.post.splice(i, 1); - } - } - - // then add new debugMode functions according to the argument list - if (arguments[0] === constants.GRID) { - this.registerMethod( - 'post', - this._grid.call( - this, - arguments[1], - arguments[2], - arguments[3], - arguments[4], - arguments[5] - ) - ); - } else if (arguments[0] === constants.AXES) { - this.registerMethod( - 'post', - this._axesIcon.call( - this, - arguments[1], - arguments[2], - arguments[3], - arguments[4] - ) - ); - } else { - this.registerMethod( - 'post', - this._grid.call( - this, - arguments[0], - arguments[1], - arguments[2], - arguments[3], - arguments[4] - ) - ); - - this.registerMethod( - 'post', - this._axesIcon.call( - this, - arguments[5], - arguments[6], - arguments[7], - arguments[8] - ) - ); - } - }; - - /** - * Turns off debugMode() in a 3D sketch. - * @method noDebugMode - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * camera(0, -30, 100, 0, 0, 0, 0, 1, 0); - * normalMaterial(); - * debugMode(); - * } - * - * function draw() { - * background(200); - * orbitControl(); - * box(15, 30); - * // Press the spacebar to turn debugMode off! - * if (keyIsDown(32)) { - * noDebugMode(); - * } - * } - * - *
- * @alt - * a 3D box is centered on a grid in a 3D sketch. an icon - * indicates the direction of each axis: a red line points +X, - * a green line +Y, and a blue line +Z. the grid and icon disappear when the - * spacebar is pressed. - */ - p5.prototype.noDebugMode = function() { - this._assert3d('noDebugMode'); - - // start by removing existing 'post' registered debug methods - for (var i = this._registeredMethods.post.length - 1; i >= 0; i--) { - // test for equality... - if ( - this._registeredMethods.post[i].toString() === this._grid().toString() || - this._registeredMethods.post[i].toString() === this._axesIcon().toString() - ) { - this._registeredMethods.post.splice(i, 1); - } - } - }; - - /** - * For use with debugMode - * @private - * @method _grid - * @param {Number} [size] size of grid sides - * @param {Number} [div] number of grid divisions - * @param {Number} [xOff] offset of grid center from origin in X axis - * @param {Number} [yOff] offset of grid center from origin in Y axis - * @param {Number} [zOff] offset of grid center from origin in Z axis - */ - p5.prototype._grid = function(size, numDivs, xOff, yOff, zOff) { - if (typeof size === 'undefined') { - size = this.width / 2; - } - if (typeof numDivs === 'undefined') { - // ensure at least 2 divisions - numDivs = Math.round(size / 30) < 4 ? 4 : Math.round(size / 30); - } - if (typeof xOff === 'undefined') { - xOff = 0; - } - if (typeof yOff === 'undefined') { - yOff = 0; - } - if (typeof zOff === 'undefined') { - zOff = 0; - } - - var spacing = size / numDivs; - var halfSize = size / 2; - - return function() { - this.push(); - this.stroke( - this._renderer.curStrokeColor[0] * 255, - this._renderer.curStrokeColor[1] * 255, - this._renderer.curStrokeColor[2] * 255 - ); - - this._renderer.uMVMatrix.set( - this._renderer._curCamera.cameraMatrix.mat4[0], - this._renderer._curCamera.cameraMatrix.mat4[1], - this._renderer._curCamera.cameraMatrix.mat4[2], - this._renderer._curCamera.cameraMatrix.mat4[3], - this._renderer._curCamera.cameraMatrix.mat4[4], - this._renderer._curCamera.cameraMatrix.mat4[5], - this._renderer._curCamera.cameraMatrix.mat4[6], - this._renderer._curCamera.cameraMatrix.mat4[7], - this._renderer._curCamera.cameraMatrix.mat4[8], - this._renderer._curCamera.cameraMatrix.mat4[9], - this._renderer._curCamera.cameraMatrix.mat4[10], - this._renderer._curCamera.cameraMatrix.mat4[11], - this._renderer._curCamera.cameraMatrix.mat4[12], - this._renderer._curCamera.cameraMatrix.mat4[13], - this._renderer._curCamera.cameraMatrix.mat4[14], - this._renderer._curCamera.cameraMatrix.mat4[15] - ); - - // Lines along X axis - for (var q = 0; q <= numDivs; q++) { - this.beginShape(this.LINES); - this.vertex(-halfSize + xOff, yOff, q * spacing - halfSize + zOff); - this.vertex(+halfSize + xOff, yOff, q * spacing - halfSize + zOff); - this.endShape(); - } - - // Lines along Z axis - for (var i = 0; i <= numDivs; i++) { - this.beginShape(this.LINES); - this.vertex(i * spacing - halfSize + xOff, yOff, -halfSize + zOff); - this.vertex(i * spacing - halfSize + xOff, yOff, +halfSize + zOff); - this.endShape(); - } - - this.pop(); - }; - }; - - /** - * For use with debugMode - * @private - * @method _axesIcon - * @param {Number} [size] size of axes icon lines - * @param {Number} [xOff] offset of icon from origin in X axis - * @param {Number} [yOff] offset of icon from origin in Y axis - * @param {Number} [zOff] offset of icon from origin in Z axis - */ - p5.prototype._axesIcon = function(size, xOff, yOff, zOff) { - if (typeof size === 'undefined') { - size = this.width / 20 > 40 ? this.width / 20 : 40; - } - if (typeof xOff === 'undefined') { - xOff = -this.width / 4; - } - if (typeof yOff === 'undefined') { - yOff = xOff; - } - if (typeof zOff === 'undefined') { - zOff = xOff; - } - - return function() { - this.push(); - this._renderer.uMVMatrix.set( - this._renderer._curCamera.cameraMatrix.mat4[0], - this._renderer._curCamera.cameraMatrix.mat4[1], - this._renderer._curCamera.cameraMatrix.mat4[2], - this._renderer._curCamera.cameraMatrix.mat4[3], - this._renderer._curCamera.cameraMatrix.mat4[4], - this._renderer._curCamera.cameraMatrix.mat4[5], - this._renderer._curCamera.cameraMatrix.mat4[6], - this._renderer._curCamera.cameraMatrix.mat4[7], - this._renderer._curCamera.cameraMatrix.mat4[8], - this._renderer._curCamera.cameraMatrix.mat4[9], - this._renderer._curCamera.cameraMatrix.mat4[10], - this._renderer._curCamera.cameraMatrix.mat4[11], - this._renderer._curCamera.cameraMatrix.mat4[12], - this._renderer._curCamera.cameraMatrix.mat4[13], - this._renderer._curCamera.cameraMatrix.mat4[14], - this._renderer._curCamera.cameraMatrix.mat4[15] - ); - - // X axis - this.strokeWeight(2); - this.stroke(255, 0, 0); - this.beginShape(this.LINES); - this.vertex(xOff, yOff, zOff); - this.vertex(xOff + size, yOff, zOff); - this.endShape(); - // Y axis - this.stroke(0, 255, 0); - this.beginShape(this.LINES); - this.vertex(xOff, yOff, zOff); - this.vertex(xOff, yOff + size, zOff); - this.endShape(); - // Z axis - this.stroke(0, 0, 255); - this.beginShape(this.LINES); - this.vertex(xOff, yOff, zOff); - this.vertex(xOff, yOff, zOff + size); - this.endShape(); - this.pop(); - }; - }; - - module.exports = p5; - }, - { '../core/constants': 18, '../core/main': 24 } - ], - 67: [ - function(_dereq_, module, exports) { - /** - * @module Lights, Camera - * @submodule Lights - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - /** - * Creates an ambient light with a color - * - * @method ambientLight - * @param {Number} v1 red or hue value relative to - * the current color range - * @param {Number} v2 green or saturation value - * relative to the current color range - * @param {Number} v3 blue or brightness value - * relative to the current color range - * @param {Number} [alpha] the alpha value - * @chainable - * - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * function draw() { - * background(0); - * ambientLight(150); - * ambientMaterial(250); - * noStroke(); - * sphere(40); - * } - * - *
- * - * @alt - * evenly distributed light across a sphere - * - */ - - /** - * @method ambientLight - * @param {String} value a color string - * @chainable - */ - - /** - * @method ambientLight - * @param {Number} gray a gray value - * @param {Number} [alpha] - * @chainable - */ - - /** - * @method ambientLight - * @param {Number[]} values an array containing the red,green,blue & - * and alpha components of the color - * @chainable - */ - - /** - * @method ambientLight - * @param {p5.Color} color the ambient light color - * @chainable - */ - p5.prototype.ambientLight = function(v1, v2, v3, a) { - this._assert3d('ambientLight'); - p5._validateParameters('ambientLight', arguments); - var color = this.color.apply(this, arguments); - - this._renderer.ambientLightColors.push( - color._array[0], - color._array[1], - color._array[2] - ); - - this._renderer._enableLighting = true; - - return this; - }; - - /** - * Creates a directional light with a color and a direction - * @method directionalLight - * @param {Number} v1 red or hue value (depending on the current - * color mode), - * @param {Number} v2 green or saturation value - * @param {Number} v3 blue or brightness value - * @param {p5.Vector} position the direction of the light - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * function draw() { - * background(0); - * //move your mouse to change light direction - * let dirX = (mouseX / width - 0.5) * 2; - * let dirY = (mouseY / height - 0.5) * 2; - * directionalLight(250, 250, 250, -dirX, -dirY, -1); - * noStroke(); - * sphere(40); - * } - * - *
- * - * @alt - * light source on canvas changeable with mouse position - * - */ - - /** - * @method directionalLight - * @param {Number[]|String|p5.Color} color color Array, CSS color string, - * or p5.Color value - * @param {Number} x x axis direction - * @param {Number} y y axis direction - * @param {Number} z z axis direction - * @chainable - */ - - /** - * @method directionalLight - * @param {Number[]|String|p5.Color} color - * @param {p5.Vector} position - * @chainable - */ - - /** - * @method directionalLight - * @param {Number} v1 - * @param {Number} v2 - * @param {Number} v3 - * @param {Number} x - * @param {Number} y - * @param {Number} z - * @chainable - */ - p5.prototype.directionalLight = function(v1, v2, v3, x, y, z) { - this._assert3d('directionalLight'); - p5._validateParameters('directionalLight', arguments); - - //@TODO: check parameters number - var color; - if (v1 instanceof p5.Color) { - color = v1; - } else { - color = this.color(v1, v2, v3); - } - - var _x, _y, _z; - var v = arguments[arguments.length - 1]; - if (typeof v === 'number') { - _x = arguments[arguments.length - 3]; - _y = arguments[arguments.length - 2]; - _z = arguments[arguments.length - 1]; - } else { - _x = v.x; - _y = v.y; - _z = v.z; - } - - // normalize direction - var l = Math.sqrt(_x * _x + _y * _y + _z * _z); - this._renderer.directionalLightDirections.push(_x / l, _y / l, _z / l); - - this._renderer.directionalLightColors.push( - color._array[0], - color._array[1], - color._array[2] - ); - - this._renderer._enableLighting = true; - - return this; - }; - - /** - * Creates a point light with a color and a light position - * @method pointLight - * @param {Number} v1 red or hue value (depending on the current - * color mode), - * @param {Number} v2 green or saturation value - * @param {Number} v3 blue or brightness value - * @param {Number} x x axis position - * @param {Number} y y axis position - * @param {Number} z z axis position - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * function draw() { - * background(0); - * //move your mouse to change light position - * let locX = mouseX - width / 2; - * let locY = mouseY - height / 2; - * // to set the light position, - * // think of the world's coordinate as: - * // -width/2,-height/2 -------- width/2,-height/2 - * // | | - * // | 0,0 | - * // | | - * // -width/2,height/2--------width/2,height/2 - * pointLight(250, 250, 250, locX, locY, 50); - * noStroke(); - * sphere(40); - * } - * - *
- * - * @alt - * spot light on canvas changes position with mouse - * - */ - - /** - * @method pointLight - * @param {Number} v1 - * @param {Number} v2 - * @param {Number} v3 - * @param {p5.Vector} position the position of the light - * @chainable - */ - - /** - * @method pointLight - * @param {Number[]|String|p5.Color} color color Array, CSS color string, - * or p5.Color value - * @param {Number} x - * @param {Number} y - * @param {Number} z - * @chainable - */ - - /** - * @method pointLight - * @param {Number[]|String|p5.Color} color - * @param {p5.Vector} position - * @chainable - */ - p5.prototype.pointLight = function(v1, v2, v3, x, y, z) { - this._assert3d('pointLight'); - p5._validateParameters('pointLight', arguments); - - //@TODO: check parameters number - var color; - if (v1 instanceof p5.Color) { - color = v1; - } else { - color = this.color(v1, v2, v3); - } - - var _x, _y, _z; - var v = arguments[arguments.length - 1]; - if (typeof v === 'number') { - _x = arguments[arguments.length - 3]; - _y = arguments[arguments.length - 2]; - _z = arguments[arguments.length - 1]; - } else { - _x = v.x; - _y = v.y; - _z = v.z; - } - - this._renderer.pointLightPositions.push(_x, _y, _z); - this._renderer.pointLightColors.push( - color._array[0], - color._array[1], - color._array[2] - ); - - this._renderer._enableLighting = true; - - return this; - }; - - /** - * Sets the default ambient and directional light. The defaults are ambientLight(128, 128, 128) and directionalLight(128, 128, 128, 0, 0, -1). Lights need to be included in the draw() to remain persistent in a looping program. Placing them in the setup() of a looping program will cause them to only have an effect the first time through the loop. - * @method lights - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * function draw() { - * background(0); - * lights(); - * rotateX(millis() / 1000); - * rotateY(millis() / 1000); - * rotateZ(millis() / 1000); - * box(); - * } - * - *
- * - * @alt - * the light is partially ambient and partially directional - */ - p5.prototype.lights = function() { - this._assert3d('lights'); - this.ambientLight(128, 128, 128); - this.directionalLight(128, 128, 128, 0, 0, -1); - return this; - }; - - /** - * Sets the falloff rates for point lights. It affects only the elements which are created after it in the code. - * The default value is lightFalloff(1.0, 0.0, 0.0), and the parameters are used to calculate the falloff with the following equation: - * - * d = distance from light position to vertex position - * - * falloff = 1 / (CONSTANT + d \* LINEAR + ( d \* d ) \* QUADRATIC) - * - * @method lightFalloff - * @param {Number} constant constant value for determining falloff - * @param {Number} linear linear value for determining falloff - * @param {Number} quadratic quadratic value for determining falloff - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * noStroke(); - * } - * function draw() { - * background(0); - * let locX = mouseX - width / 2; - * let locY = mouseY - height / 2; - * translate(-25, 0, 0); - * lightFalloff(1, 0, 0); - * pointLight(250, 250, 250, locX, locY, 50); - * sphere(20); - * translate(50, 0, 0); - * lightFalloff(0.9, 0.01, 0); - * pointLight(250, 250, 250, locX, locY, 50); - * sphere(20); - * } - * - *
- * - * @alt - * Two spheres with different falloff values show different intensity of light - * - */ - p5.prototype.lightFalloff = function( - constantAttenuation, - linearAttenuation, - quadraticAttenuation - ) { - this._assert3d('lightFalloff'); - p5._validateParameters('lightFalloff', arguments); - - if (constantAttenuation < 0) { - constantAttenuation = 0; - console.warn( - 'Value of constant argument in lightFalloff() should be never be negative. Set to 0.' - ); - } - - if (linearAttenuation < 0) { - linearAttenuation = 0; - console.warn( - 'Value of linear argument in lightFalloff() should be never be negative. Set to 0.' - ); - } - - if (quadraticAttenuation < 0) { - quadraticAttenuation = 0; - console.warn( - 'Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.' - ); - } - - if ( - constantAttenuation === 0 && - linearAttenuation === 0 && - quadraticAttenuation === 0 - ) { - constantAttenuation = 1; - console.warn( - 'Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.' - ); - } - - this._renderer.constantAttenuation = constantAttenuation; - this._renderer.linearAttenuation = linearAttenuation; - this._renderer.quadraticAttenuation = quadraticAttenuation; - - return this; - }; - - module.exports = p5; - }, - { '../core/main': 24 } - ], - 68: [ - function(_dereq_, module, exports) { - /** - * @module Shape - * @submodule 3D Models - * @for p5 - * @requires core - * @requires p5.Geometry - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - _dereq_('./p5.Geometry'); - - /** - * Load a 3d model from an OBJ or STL file. - *

- * One of the limitations of the OBJ and STL format is that it doesn't have a built-in - * sense of scale. This means that models exported from different programs might - * be very different sizes. If your model isn't displaying, try calling - * loadModel() with the normalized parameter set to true. This will resize the - * model to a scale appropriate for p5. You can also make additional changes to - * the final size of your model with the scale() function. - * - * Also, the support for colored STL files is not present. STL files with color will be - * rendered without color properties. - * - * @method loadModel - * @param {String} path Path of the model to be loaded - * @param {Boolean} normalize If true, scale the model to a - * standardized size when loading - * @param {function(p5.Geometry)} [successCallback] Function to be called - * once the model is loaded. Will be passed - * the 3D model object. - * @param {function(Event)} [failureCallback] called with event error if - * the model fails to load. - * @return {p5.Geometry} the p5.Geometry object - * - * @example - *
- * - * //draw a spinning octahedron - * let octahedron; - * - * function preload() { - * octahedron = loadModel('assets/octahedron.obj'); - * } - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(200); - * rotateX(frameCount * 0.01); - * rotateY(frameCount * 0.01); - * model(octahedron); - * } - * - *
- * - * @alt - * Vertically rotating 3-d octahedron. - * - * @example - *
- * - * //draw a spinning teapot - * let teapot; - * - * function preload() { - * // Load model with normalise parameter set to true - * teapot = loadModel('assets/teapot.obj', true); - * } - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(200); - * scale(0.4); // Scaled to make model fit into canvas - * rotateX(frameCount * 0.01); - * rotateY(frameCount * 0.01); - * normalMaterial(); // For effect - * model(teapot); - * } - * - *
- * - * @alt - * Vertically rotating 3-d teapot with red, green and blue gradient. - */ - /** - * @method loadModel - * @param {String} path - * @param {function(p5.Geometry)} [successCallback] - * @param {function(Event)} [failureCallback] - * @return {p5.Geometry} the p5.Geometry object - */ - p5.prototype.loadModel = function(path) { - p5._validateParameters('loadModel', arguments); - var normalize; - var successCallback; - var failureCallback; - if (typeof arguments[1] === 'boolean') { - normalize = arguments[1]; - successCallback = arguments[2]; - failureCallback = arguments[3]; - } else { - normalize = false; - successCallback = arguments[1]; - failureCallback = arguments[2]; - } - - var fileType = path.slice(-4); - var model = new p5.Geometry(); - model.gid = path + '|' + normalize; - var self = this; - - if (fileType === '.stl') { - this.httpDo( - path, - 'GET', - 'arrayBuffer', - function(arrayBuffer) { - parseSTL(model, arrayBuffer); - - if (normalize) { - model.normalize(); - } - self._decrementPreload(); - if (typeof successCallback === 'function') { - successCallback(model); - } - }.bind(this), - failureCallback - ); - } else if (fileType === '.obj') { - this.loadStrings( - path, - function(strings) { - parseObj(model, strings); - - if (normalize) { - model.normalize(); - } - - self._decrementPreload(); - if (typeof successCallback === 'function') { - successCallback(model); - } - }.bind(this), - failureCallback - ); - } else { - p5._friendlyFileLoadError(3, path); - - if (failureCallback) { - failureCallback(); - } else { - console.error( - 'Sorry, the file type is invalid. Only OBJ and STL files are supported.' - ); - } - } - return model; - }; - - /** - * Parse OBJ lines into model. For reference, this is what a simple model of a - * square might look like: - * - * v -0.5 -0.5 0.5 - * v -0.5 -0.5 -0.5 - * v -0.5 0.5 -0.5 - * v -0.5 0.5 0.5 - * - * f 4 3 2 1 - */ - function parseObj(model, lines) { - // OBJ allows a face to specify an index for a vertex (in the above example), - // but it also allows you to specify a custom combination of vertex, UV - // coordinate, and vertex normal. So, "3/4/3" would mean, "use vertex 3 with - // UV coordinate 4 and vertex normal 3". In WebGL, every vertex with different - // parameters must be a different vertex, so loadedVerts is used to - // temporarily store the parsed vertices, normals, etc., and indexedVerts is - // used to map a specific combination (keyed on, for example, the string - // "3/4/3"), to the actual index of the newly created vertex in the final - // object. - var loadedVerts = { - v: [], - vt: [], - vn: [] - }; - - var indexedVerts = {}; - - for (var line = 0; line < lines.length; ++line) { - // Each line is a separate object (vertex, face, vertex normal, etc) - // For each line, split it into tokens on whitespace. The first token - // describes the type. - var tokens = lines[line].trim().split(/\b\s+/); - - if (tokens.length > 0) { - if (tokens[0] === 'v' || tokens[0] === 'vn') { - // Check if this line describes a vertex or vertex normal. - // It will have three numeric parameters. - var vertex = new p5.Vector( - parseFloat(tokens[1]), - parseFloat(tokens[2]), - parseFloat(tokens[3]) - ); - - loadedVerts[tokens[0]].push(vertex); - } else if (tokens[0] === 'vt') { - // Check if this line describes a texture coordinate. - // It will have two numeric parameters. - var texVertex = [parseFloat(tokens[1]), parseFloat(tokens[2])]; - loadedVerts[tokens[0]].push(texVertex); - } else if (tokens[0] === 'f') { - // Check if this line describes a face. - // OBJ faces can have more than three points. Triangulate points. - for (var tri = 3; tri < tokens.length; ++tri) { - var face = []; - - var vertexTokens = [1, tri - 1, tri]; - - for (var tokenInd = 0; tokenInd < vertexTokens.length; ++tokenInd) { - // Now, convert the given token into an index - var vertString = tokens[vertexTokens[tokenInd]]; - var vertIndex = 0; - - // TODO: Faces can technically use negative numbers to refer to the - // previous nth vertex. I haven't seen this used in practice, but - // it might be good to implement this in the future. - - if (indexedVerts[vertString] !== undefined) { - vertIndex = indexedVerts[vertString]; - } else { - var vertParts = vertString.split('/'); - for (var i = 0; i < vertParts.length; i++) { - vertParts[i] = parseInt(vertParts[i]) - 1; - } - - vertIndex = indexedVerts[vertString] = model.vertices.length; - model.vertices.push(loadedVerts.v[vertParts[0]].copy()); - if (loadedVerts.vt[vertParts[1]]) { - model.uvs.push(loadedVerts.vt[vertParts[1]].slice()); - } else { - model.uvs.push([0, 0]); - } - - if (loadedVerts.vn[vertParts[2]]) { - model.vertexNormals.push(loadedVerts.vn[vertParts[2]].copy()); - } - } - - face.push(vertIndex); - } - - if (face[0] !== face[1] && face[0] !== face[2] && face[1] !== face[2]) { - model.faces.push(face); - } - } - } - } - } - // If the model doesn't have normals, compute the normals - if (model.vertexNormals.length === 0) { - model.computeNormals(); - } - - return model; - } - - /** - * STL files can be of two types, ASCII and Binary, - * - * We need to convert the arrayBuffer to an array of strings, - * to parse it as an ASCII file. - */ - function parseSTL(model, buffer) { - if (isBinary(buffer)) { - parseBinarySTL(model, buffer); - } else { - var reader = new DataView(buffer); - - if (!('TextDecoder' in window)) { - console.warn( - 'Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)' - ); - - return model; - } - - var decoder = new TextDecoder('utf-8'); - var lines = decoder.decode(reader); - var lineArray = lines.split('\n'); - parseASCIISTL(model, lineArray); - } - return model; - } - - /** - * This function checks if the file is in ASCII format or in Binary format - * - * It is done by searching keyword `solid` at the start of the file. - * - * An ASCII STL data must begin with `solid` as the first six bytes. - * However, ASCII STLs lacking the SPACE after the `d` are known to be - * plentiful. So, check the first 5 bytes for `solid`. - * - * Several encodings, such as UTF-8, precede the text with up to 5 bytes: - * https://en.wikipedia.org/wiki/Byte_order_mark#Byte_order_marks_by_encoding - * Search for `solid` to start anywhere after those prefixes. - */ - function isBinary(data) { - var reader = new DataView(data); - - // US-ASCII ordinal values for `s`, `o`, `l`, `i`, `d` - var solid = [115, 111, 108, 105, 100]; - for (var off = 0; off < 5; off++) { - // If "solid" text is matched to the current offset, declare it to be an ASCII STL. - if (matchDataViewAt(solid, reader, off)) return false; - } - - // Couldn't find "solid" text at the beginning; it is binary STL. - return true; - } - - /** - * This function matches the `query` at the provided `offset` - */ - function matchDataViewAt(query, reader, offset) { - // Check if each byte in query matches the corresponding byte from the current offset - for (var i = 0, il = query.length; i < il; i++) { - if (query[i] !== reader.getUint8(offset + i, false)) return false; - } - - return true; - } - - /** - * This function parses the Binary STL files. - * https://en.wikipedia.org/wiki/STL_%28file_format%29#Binary_STL - * - * Currently there is no support for the colors provided in STL files. - */ - function parseBinarySTL(model, buffer) { - var reader = new DataView(buffer); - - // Number of faces is present following the header - var faces = reader.getUint32(80, true); - var r, - g, - b, - hasColors = false, - colors; - var defaultR, defaultG, defaultB; - - // Binary files contain 80-byte header, which is generally ignored. - for (var index = 0; index < 80 - 10; index++) { - // Check for `COLOR=` - if ( - reader.getUint32(index, false) === 0x434f4c4f /*COLO*/ && - reader.getUint8(index + 4) === 0x52 /*'R'*/ && - reader.getUint8(index + 5) === 0x3d /*'='*/ - ) { - hasColors = true; - colors = []; - - defaultR = reader.getUint8(index + 6) / 255; - defaultG = reader.getUint8(index + 7) / 255; - defaultB = reader.getUint8(index + 8) / 255; - // To be used when color support is added - // alpha = reader.getUint8(index + 9) / 255; - } - } - var dataOffset = 84; - var faceLength = 12 * 4 + 2; - - // Iterate the faces - for (var face = 0; face < faces; face++) { - var start = dataOffset + face * faceLength; - var normalX = reader.getFloat32(start, true); - var normalY = reader.getFloat32(start + 4, true); - var normalZ = reader.getFloat32(start + 8, true); - - if (hasColors) { - var packedColor = reader.getUint16(start + 48, true); - - if ((packedColor & 0x8000) === 0) { - // facet has its own unique color - r = (packedColor & 0x1f) / 31; - g = ((packedColor >> 5) & 0x1f) / 31; - b = ((packedColor >> 10) & 0x1f) / 31; - } else { - r = defaultR; - g = defaultG; - b = defaultB; - } - } - - for (var i = 1; i <= 3; i++) { - var vertexstart = start + i * 12; - - var newVertex = new p5.Vector( - reader.getFloat32(vertexstart, true), - reader.getFloat32(vertexstart + 8, true), - reader.getFloat32(vertexstart + 4, true) - ); - - model.vertices.push(newVertex); - - if (hasColors) { - colors.push(r, g, b); - } - } - - var newNormal = new p5.Vector(normalX, normalY, normalZ); - - model.vertexNormals.push(newNormal, newNormal, newNormal); - - model.faces.push([3 * face, 3 * face + 1, 3 * face + 2]); - } - if (hasColors) { - // add support for colors here. - } - return model; - } - - /** - * ASCII STL file starts with `solid 'nameOfFile'` - * Then contain the normal of the face, starting with `facet normal` - * Next contain a keyword indicating the start of face vertex, `outer loop` - * Next comes the three vertex, starting with `vertex x y z` - * Vertices ends with `endloop` - * Face ends with `endfacet` - * Next face starts with `facet normal` - * The end of the file is indicated by `endsolid` - */ - function parseASCIISTL(model, lines) { - var state = ''; - var curVertexIndex = []; - var newNormal, newVertex; - - for (var iterator = 0; iterator < lines.length; ++iterator) { - var line = lines[iterator].trim(); - var parts = line.split(' '); - - for (var partsiterator = 0; partsiterator < parts.length; ++partsiterator) { - if (parts[partsiterator] === '') { - // Ignoring multiple whitespaces - parts.splice(partsiterator, 1); - } - } - - if (parts.length === 0) { - // Remove newline - continue; - } - - switch (state) { - case '': // First run - if (parts[0] !== 'solid') { - // Invalid state - console.error(line); - console.error('Invalid state "' + parts[0] + '", should be "solid"'); - return; - } else { - state = 'solid'; - } - break; - - case 'solid': // First face - if (parts[0] !== 'facet' || parts[1] !== 'normal') { - // Invalid state - console.error(line); - console.error( - 'Invalid state "' + parts[0] + '", should be "facet normal"' - ); - - return; - } else { - // Push normal for first face - newNormal = new p5.Vector( - parseFloat(parts[2]), - parseFloat(parts[3]), - parseFloat(parts[4]) - ); - - model.vertexNormals.push(newNormal, newNormal, newNormal); - state = 'facet normal'; - } - break; - - case 'facet normal': // After normal is defined - if (parts[0] !== 'outer' || parts[1] !== 'loop') { - // Invalid State - console.error(line); - console.error( - 'Invalid state "' + parts[0] + '", should be "outer loop"' - ); - - return; - } else { - // Next should be vertices - state = 'vertex'; - } - break; - - case 'vertex': - if (parts[0] === 'vertex') { - //Vertex of triangle - newVertex = new p5.Vector( - parseFloat(parts[1]), - parseFloat(parts[2]), - parseFloat(parts[3]) - ); - - model.vertices.push(newVertex); - curVertexIndex.push(model.vertices.indexOf(newVertex)); - } else if (parts[0] === 'endloop') { - // End of vertices - model.faces.push(curVertexIndex); - curVertexIndex = []; - state = 'endloop'; - } else { - // Invalid State - console.error(line); - console.error( - 'Invalid state "' + parts[0] + '", should be "vertex" or "endloop"' - ); - - return; - } - break; - - case 'endloop': - if (parts[0] !== 'endfacet') { - // End of face - console.error(line); - console.error('Invalid state "' + parts[0] + '", should be "endfacet"'); - - return; - } else { - state = 'endfacet'; - } - break; - - case 'endfacet': - if (parts[0] === 'endsolid') { - // End of solid - } else if (parts[0] === 'facet' && parts[1] === 'normal') { - // Next face - newNormal = new p5.Vector( - parseFloat(parts[2]), - parseFloat(parts[3]), - parseFloat(parts[4]) - ); - - model.vertexNormals.push(newNormal, newNormal, newNormal); - state = 'facet normal'; - } else { - // Invalid State - console.error(line); - console.error( - 'Invalid state "' + - parts[0] + - '", should be "endsolid" or "facet normal"' - ); - - return; - } - break; - - default: - console.error('Invalid state "' + state + '"'); - break; - } - } - return model; - } - - /** - * Render a 3d model to the screen. - * - * @method model - * @param {p5.Geometry} model Loaded 3d model to be rendered - * @example - *
- * - * //draw a spinning octahedron - * let octahedron; - * - * function preload() { - * octahedron = loadModel('assets/octahedron.obj'); - * } - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(200); - * rotateX(frameCount * 0.01); - * rotateY(frameCount * 0.01); - * model(octahedron); - * } - * - *
- * - * @alt - * Vertically rotating 3-d octahedron. - * - */ - p5.prototype.model = function(model) { - this._assert3d('model'); - p5._validateParameters('model', arguments); - if (model.vertices.length > 0) { - if (!this._renderer.geometryInHash(model.gid)) { - model._makeTriangleEdges()._edgesToVertices(); - this._renderer.createBuffers(model.gid, model); - } - - this._renderer.drawBuffers(model.gid); - } - }; - - module.exports = p5; - }, - { '../core/main': 24, './p5.Geometry': 71 } - ], - 69: [ - function(_dereq_, module, exports) { - /** - * @module Lights, Camera - * @submodule Material - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - var constants = _dereq_('../core/constants'); - _dereq_('./p5.Texture'); - - /** - * Loads a custom shader from the provided vertex and fragment - * shader paths. The shader files are loaded asynchronously in the - * background, so this method should be used in preload(). - * - * For now, there are three main types of shaders. p5 will automatically - * supply appropriate vertices, normals, colors, and lighting attributes - * if the parameters defined in the shader match the names. - * - * @method loadShader - * @param {String} vertFilename path to file containing vertex shader - * source code - * @param {String} fragFilename path to file containing fragment shader - * source code - * @param {function} [callback] callback to be executed after loadShader - * completes. On success, the Shader object is passed as the first argument. - * @param {function} [errorCallback] callback to be executed when an error - * occurs inside loadShader. On error, the error is passed as the first - * argument. - * @return {p5.Shader} a shader object created from the provided - * vertex and fragment shader files. - * - * @example - *
- * - * let mandel; - * function preload() { - * // load the shader definitions from files - * mandel = loadShader('assets/shader.vert', 'assets/shader.frag'); - * } - * function setup() { - * createCanvas(100, 100, WEBGL); - * // use the shader - * shader(mandel); - * noStroke(); - * mandel.setUniform('p', [-0.74364388703, 0.13182590421]); - * } - * - * function draw() { - * mandel.setUniform('r', 1.5 * exp(-6.5 * (1 + sin(millis() / 2000)))); - * quad(-1, -1, 1, -1, 1, 1, -1, 1); - * } - * - *
- * - * @alt - * zooming Mandelbrot set. a colorful, infinitely detailed fractal. - */ - p5.prototype.loadShader = function( - vertFilename, - fragFilename, - callback, - errorCallback - ) { - p5._validateParameters('loadShader', arguments); - if (!errorCallback) { - errorCallback = console.error; - } - - var loadedShader = new p5.Shader(); - - var self = this; - var loadedFrag = false; - var loadedVert = false; - - var onLoad = function onLoad() { - self._decrementPreload(); - if (callback) { - callback(loadedShader); - } - }; - - this.loadStrings( - vertFilename, - function(result) { - loadedShader._vertSrc = result.join('\n'); - loadedVert = true; - if (loadedFrag) { - onLoad(); - } - }, - errorCallback - ); - - this.loadStrings( - fragFilename, - function(result) { - loadedShader._fragSrc = result.join('\n'); - loadedFrag = true; - if (loadedVert) { - onLoad(); - } - }, - errorCallback - ); - - return loadedShader; - }; - - /** - * @method createShader - * @param {String} vertSrc source code for the vertex shader - * @param {String} fragSrc source code for the fragment shader - * @returns {p5.Shader} a shader object created from the provided - * vertex and fragment shaders. - * - * @example - *
- * - * // the 'varying's are shared between both vertex & fragment shaders - * let varying = 'precision highp float; varying vec2 vPos;'; - * - * // the vertex shader is called for each vertex - * let vs = - * varying + - * 'attribute vec3 aPosition;' + - * 'void main() { vPos = (gl_Position = vec4(aPosition,1.0)).xy; }'; - * - * // the fragment shader is called for each pixel - * let fs = - * varying + - * 'uniform vec2 p;' + - * 'uniform float r;' + - * 'const int I = 500;' + - * 'void main() {' + - * ' vec2 c = p + vPos * r, z = c;' + - * ' float n = 0.0;' + - * ' for (int i = I; i > 0; i --) {' + - * ' if(z.x*z.x+z.y*z.y > 4.0) {' + - * ' n = float(i)/float(I);' + - * ' break;' + - * ' }' + - * ' z = vec2(z.x*z.x-z.y*z.y, 2.0*z.x*z.y) + c;' + - * ' }' + - * ' gl_FragColor = vec4(0.5-cos(n*17.0)/2.0,0.5-cos(n*13.0)/2.0,0.5-cos(n*23.0)/2.0,1.0);' + - * '}'; - * - * let mandel; - * function setup() { - * createCanvas(100, 100, WEBGL); - * - * // create and initialize the shader - * mandel = createShader(vs, fs); - * shader(mandel); - * noStroke(); - * - * // 'p' is the center point of the Mandelbrot image - * mandel.setUniform('p', [-0.74364388703, 0.13182590421]); - * } - * - * function draw() { - * // 'r' is the size of the image in Mandelbrot-space - * mandel.setUniform('r', 1.5 * exp(-6.5 * (1 + sin(millis() / 2000)))); - * quad(-1, -1, 1, -1, 1, 1, -1, 1); - * } - * - *
- * - * @alt - * zooming Mandelbrot set. a colorful, infinitely detailed fractal. - */ - p5.prototype.createShader = function(vertSrc, fragSrc) { - this._assert3d('createShader'); - p5._validateParameters('createShader', arguments); - return new p5.Shader(this._renderer, vertSrc, fragSrc); - }; - - /** - * The shader() function lets the user provide a custom shader - * to fill in shapes in WEBGL mode. Users can create their - * own shaders by loading vertex and fragment shaders with - * loadShader(). - * - * @method shader - * @chainable - * @param {p5.Shader} [s] the desired p5.Shader to use for rendering - * shapes. - * - * @example - *
- * - * // Click within the image to toggle - * // the shader used by the quad shape - * // Note: for an alternative approach to the same example, - * // involving changing uniforms please refer to: - * // https://p5js.org/reference/#/p5.Shader/setUniform - * - * let redGreen; - * let orangeBlue; - * let showRedGreen = false; - * - * function preload() { - * // note that we are using two instances - * // of the same vertex and fragment shaders - * redGreen = loadShader('assets/shader.vert', 'assets/shader-gradient.frag'); - * orangeBlue = loadShader('assets/shader.vert', 'assets/shader-gradient.frag'); - * } - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * - * // initialize the colors for redGreen shader - * shader(redGreen); - * redGreen.setUniform('colorCenter', [1.0, 0.0, 0.0]); - * redGreen.setUniform('colorBackground', [0.0, 1.0, 0.0]); - * - * // initialize the colors for orangeBlue shader - * shader(orangeBlue); - * orangeBlue.setUniform('colorCenter', [1.0, 0.5, 0.0]); - * orangeBlue.setUniform('colorBackground', [0.226, 0.0, 0.615]); - * - * noStroke(); - * } - * - * function draw() { - * // update the offset values for each shader, - * // moving orangeBlue in vertical and redGreen - * // in horizontal direction - * orangeBlue.setUniform('offset', [0, sin(millis() / 2000) + 1]); - * redGreen.setUniform('offset', [sin(millis() / 2000), 1]); - * - * if (showRedGreen === true) { - * shader(redGreen); - * } else { - * shader(orangeBlue); - * } - * quad(-1, -1, 1, -1, 1, 1, -1, 1); - * } - * - * function mouseClicked() { - * showRedGreen = !showRedGreen; - * } - * - *
- * - * @alt - * canvas toggles between a circular gradient of orange and blue vertically. and a circular gradient of red and green moving horizontally when mouse is clicked/pressed. - */ - p5.prototype.shader = function(s) { - this._assert3d('shader'); - p5._validateParameters('shader', arguments); - - if (s._renderer === undefined) { - s._renderer = this._renderer; - } - - if (s.isStrokeShader()) { - this._renderer.userStrokeShader = s; - } else { - this._renderer.userFillShader = s; - this._renderer._useNormalMaterial = false; - } - - s.init(); - - return this; - }; - - /** - * This function restores the default shaders in WEBGL mode. Code that runs - * after resetShader() will not be affected by previously defined - * shaders. Should be run after shader(). - * - * @method resetShader - * @chainable - */ - p5.prototype.resetShader = function() { - this._renderer.userFillShader = this._renderer.userStrokeShader = null; - return this; - }; - - /** - * Normal material for geometry. You can view all - * possible materials in this - * example. - * @method normalMaterial - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(200); - * normalMaterial(); - * sphere(40); - * } - * - *
- * - * @alt - * Red, green and blue gradient. - * - */ - p5.prototype.normalMaterial = function() { - this._assert3d('normalMaterial'); - p5._validateParameters('normalMaterial', arguments); - this._renderer.drawMode = constants.FILL; - this._renderer._useSpecularMaterial = false; - this._renderer._useNormalMaterial = true; - this._renderer.curFillColor = [1, 1, 1, 1]; - this._renderer._setProperty('_doFill', true); - this.noStroke(); - return this; - }; - - /** - * Texture for geometry. You can view other possible materials in this - * example. - * @method texture - * @param {p5.Image|p5.MediaElement|p5.Graphics} tex 2-dimensional graphics - * to render as texture - * @chainable - * @example - *
- * - * let img; - * function preload() { - * img = loadImage('assets/laDefense.jpg'); - * } - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(0); - * rotateZ(frameCount * 0.01); - * rotateX(frameCount * 0.01); - * rotateY(frameCount * 0.01); - * //pass image as texture - * texture(img); - * box(200, 200, 200); - * } - * - *
- * - *
- * - * let pg; - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * pg = createGraphics(200, 200); - * pg.textSize(75); - * } - * - * function draw() { - * background(0); - * pg.background(255); - * pg.text('hello!', 0, 100); - * //pass image as texture - * texture(pg); - * rotateX(0.5); - * noStroke(); - * plane(50); - * } - * - *
- * - *
- * - * let vid; - * function preload() { - * vid = createVideo('assets/fingers.mov'); - * vid.hide(); - * } - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(0); - * //pass video frame as texture - * texture(vid); - * rect(-40, -40, 80, 80); - * } - * - * function mousePressed() { - * vid.loop(); - * } - * - *
- * - * @alt - * Rotating view of many images umbrella and grid roof on a 3d plane - * black canvas - * black canvas - * - */ - p5.prototype.texture = function(tex) { - this._assert3d('texture'); - p5._validateParameters('texture', arguments); - - this._renderer.drawMode = constants.TEXTURE; - this._renderer._useSpecularMaterial = false; - this._renderer._useNormalMaterial = false; - this._renderer._tex = tex; - this._renderer._setProperty('_doFill', true); - - return this; - }; - - /** - * Sets the coordinate space for texture mapping. The default mode is IMAGE - * which refers to the actual coordinates of the image. - * NORMAL refers to a normalized space of values ranging from 0 to 1. - * This function only works in WEBGL mode. - * - * With IMAGE, if an image is 100 x 200 pixels, mapping the image onto the entire - * size of a quad would require the points (0,0) (100, 0) (100,200) (0,200). - * The same mapping in NORMAL is (0,0) (1,0) (1,1) (0,1). - * @method textureMode - * @param {Constant} mode either IMAGE or NORMAL - * @example - *
- * - * let img; - * - * function preload() { - * img = loadImage('assets/laDefense.jpg'); - * } - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * texture(img); - * textureMode(NORMAL); - * beginShape(); - * vertex(-50, -50, 0, 0); - * vertex(50, -50, 1, 0); - * vertex(50, 50, 1, 1); - * vertex(-50, 50, 0, 1); - * endShape(); - * } - * - *
- * - * @alt - * the underside of a white umbrella and gridded ceiling above - * - *
- * - * let img; - * - * function preload() { - * img = loadImage('assets/laDefense.jpg'); - * } - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * texture(img); - * textureMode(NORMAL); - * beginShape(); - * vertex(-50, -50, 0, 0); - * vertex(50, -50, img.width, 0); - * vertex(50, 50, img.width, img.height); - * vertex(-50, 50, 0, img.height); - * endShape(); - * } - * - *
- * - * @alt - * the underside of a white umbrella and gridded ceiling above - * - */ - p5.prototype.textureMode = function(mode) { - if (mode !== constants.IMAGE && mode !== constants.NORMAL) { - console.warn( - 'You tried to set ' + mode + ' textureMode only supports IMAGE & NORMAL ' - ); - } else { - this._renderer.textureMode = mode; - } - }; - - /** - * Sets the global texture wrapping mode. This controls how textures behave - * when their uv's go outside of the 0 - 1 range. There are three options: - * CLAMP, REPEAT, and MIRROR. - * - * CLAMP causes the pixels at the edge of the texture to extend to the bounds - * REPEAT causes the texture to tile repeatedly until reaching the bounds - * MIRROR works similarly to REPEAT but it flips the texture with every new tile - * - * REPEAT & MIRROR are only available if the texture - * is a power of two size (128, 256, 512, 1024, etc.). - * - * This method will affect all textures in your sketch until a subsequent - * textureWrap call is made. - * - * If only one argument is provided, it will be applied to both the - * horizontal and vertical axes. - * @method textureWrap - * @param {Constant} wrapX either CLAMP, REPEAT, or MIRROR - * @param {Constant} [wrapY] either CLAMP, REPEAT, or MIRROR - * @example - *
- * - * let img; - * function preload() { - * img = loadImage('assets/rockies128.jpg'); - * } - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * textureWrap(MIRROR); - * } - * - * function draw() { - * background(0); - * - * let dX = mouseX; - * let dY = mouseY; - * - * let u = lerp(1.0, 2.0, dX); - * let v = lerp(1.0, 2.0, dY); - * - * scale(width / 2); - * - * texture(img); - * - * beginShape(TRIANGLES); - * vertex(-1, -1, 0, 0, 0); - * vertex(1, -1, 0, u, 0); - * vertex(1, 1, 0, u, v); - * - * vertex(1, 1, 0, u, v); - * vertex(-1, 1, 0, 0, v); - * vertex(-1, -1, 0, 0, 0); - * endShape(); - * } - * - *
- * - * @alt - * an image of the rocky mountains repeated in mirrored tiles - * - */ - p5.prototype.textureWrap = function(wrapX, wrapY) { - wrapY = wrapY || wrapX; - - this._renderer.textureWrapX = wrapX; - this._renderer.textureWrapY = wrapY; - - var textures = this._renderer.textures; - for (var i = 0; i < textures.length; i++) { - textures[i].setWrapMode(wrapX, wrapY); - } - }; - - /** - * Ambient material for geometry with a given color. You can view all - * possible materials in this - * example. - * @method ambientMaterial - * @param {Number} v1 gray value, red or hue value - * (depending on the current color mode), - * @param {Number} [v2] green or saturation value - * @param {Number} [v3] blue or brightness value - * @param {Number} [a] opacity - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * function draw() { - * background(0); - * noStroke(); - * ambientLight(200); - * ambientMaterial(70, 130, 230); - * sphere(40); - * } - * - *
- * - * @alt - * radiating light source from top right of canvas - * - */ - /** - * @method ambientMaterial - * @param {Number[]|String|p5.Color} color color, color Array, or CSS color string - * @chainable - */ - p5.prototype.ambientMaterial = function(v1, v2, v3, a) { - this._assert3d('ambientMaterial'); - p5._validateParameters('ambientMaterial', arguments); - - var color = p5.prototype.color.apply(this, arguments); - this._renderer.curFillColor = color._array; - this._renderer._useSpecularMaterial = false; - this._renderer._useNormalMaterial = false; - this._renderer._enableLighting = true; - this._renderer._tex = null; - - return this; - }; - - /** - * Specular material for geometry with a given color. You can view all - * possible materials in this - * example. - * @method specularMaterial - * @param {Number} v1 gray value, red or hue value - * (depending on the current color mode), - * @param {Number} [v2] green or saturation value - * @param {Number} [v3] blue or brightness value - * @param {Number} [a] opacity - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * function draw() { - * background(0); - * noStroke(); - * ambientLight(50); - * pointLight(250, 250, 250, 100, 100, 30); - * specularMaterial(250); - * sphere(40); - * } - * - *
- * - * @alt - * diffused radiating light source from top right of canvas - * - */ - /** - * @method specularMaterial - * @param {Number[]|String|p5.Color} color color Array, or CSS color string - * @chainable - */ - p5.prototype.specularMaterial = function(v1, v2, v3, a) { - this._assert3d('specularMaterial'); - p5._validateParameters('specularMaterial', arguments); - - var color = p5.prototype.color.apply(this, arguments); - this._renderer.curFillColor = color._array; - this._renderer._useSpecularMaterial = true; - this._renderer._useNormalMaterial = false; - this._renderer._enableLighting = true; - this._renderer._tex = null; - - return this; - }; - - /** - * Sets the amount of gloss in the surface of shapes. - * Used in combination with specularMaterial() in setting - * the material properties of shapes. The default and minimum value is 1. - * @method shininess - * @param {Number} shine Degree of Shininess. - * Defaults to 1. - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * function draw() { - * background(0); - * noStroke(); - * let locX = mouseX - width / 2; - * let locY = mouseY - height / 2; - * ambientLight(60, 60, 60); - * pointLight(255, 255, 255, locX, locY, 50); - * specularMaterial(250); - * translate(-25, 0, 0); - * shininess(1); - * sphere(20); - * translate(50, 0, 0); - * shininess(20); - * sphere(20); - * } - * - *
- * @alt - * Shininess on Camera changes position with mouse - */ - p5.prototype.shininess = function(shine) { - this._assert3d('shininess'); - p5._validateParameters('shininess', arguments); - - if (shine < 1) { - shine = 1; - } - this._renderer._useShininess = shine; - return this; - }; - - /** - * @private blends colors according to color components. - * If alpha value is less than 1, we need to enable blending - * on our gl context. Otherwise opaque objects need to a depthMask. - * @param {Number[]} color [description] - * @return {Number[]]} Normalized numbers array - */ - p5.RendererGL.prototype._applyColorBlend = function(colors) { - var gl = this.GL; - - var isTexture = this.drawMode === constants.TEXTURE; - if (isTexture || colors[colors.length - 1] < 1.0) { - gl.depthMask(isTexture); - gl.enable(gl.BLEND); - this._applyBlendMode(); - } else { - gl.depthMask(true); - gl.disable(gl.BLEND); - } - return colors; - }; - - /** - * @private sets blending in gl context to curBlendMode - * @param {Number[]} color [description] - * @return {Number[]]} Normalized numbers array - */ - p5.RendererGL.prototype._applyBlendMode = function() { - var gl = this.GL; - switch (this.curBlendMode) { - case constants.BLEND: - case constants.ADD: - gl.blendEquation(gl.FUNC_ADD); - gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA); - break; - case constants.MULTIPLY: - gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_ADD); - gl.blendFuncSeparate(gl.ZERO, gl.SRC_COLOR, gl.ONE, gl.ONE); - break; - case constants.SCREEN: - gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_ADD); - gl.blendFuncSeparate(gl.ONE_MINUS_DST_COLOR, gl.ONE, gl.ONE, gl.ONE); - break; - case constants.EXCLUSION: - gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_ADD); - gl.blendFuncSeparate( - gl.ONE_MINUS_DST_COLOR, - gl.ONE_MINUS_SRC_COLOR, - gl.ONE, - gl.ONE - ); - - break; - case constants.REPLACE: - gl.blendEquation(gl.FUNC_ADD); - gl.blendFunc(gl.ONE, gl.ZERO); - break; - case constants.SUBTRACT: - gl.blendEquationSeparate(gl.FUNC_REVERSE_SUBTRACT, gl.FUNC_ADD); - gl.blendFuncSeparate(gl.SRC_ALPHA, gl.ONE, gl.ONE, gl.ONE); - break; - case constants.DARKEST: - if (this.blendExt) { - gl.blendEquationSeparate(this.blendExt.MIN_EXT, gl.FUNC_ADD); - gl.blendFuncSeparate(gl.ONE, gl.ONE, gl.ONE, gl.ONE); - } else { - console.warn( - 'blendMode(DARKEST) does not work in your browser in WEBGL mode.' - ); - } - break; - case constants.LIGHTEST: - if (this.blendExt) { - gl.blendEquationSeparate(this.blendExt.MAX_EXT, gl.FUNC_ADD); - gl.blendFuncSeparate(gl.ONE, gl.ONE, gl.ONE, gl.ONE); - } else { - console.warn( - 'blendMode(LIGHTEST) does not work in your browser in WEBGL mode.' - ); - } - break; - default: - console.error( - 'Oops! Somehow RendererGL set curBlendMode to an unsupported mode.' - ); - - break; - } - }; - - module.exports = p5; - }, - { '../core/constants': 18, '../core/main': 24, './p5.Texture': 77 } - ], - 70: [ - function(_dereq_, module, exports) { - /** - * @module Lights, Camera - * @submodule Camera - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - //////////////////////////////////////////////////////////////////////////////// - // p5.Prototype Methods - //////////////////////////////////////////////////////////////////////////////// - - /** - * Sets the camera position for a 3D sketch. Parameters for this function define - * the position for the camera, the center of the sketch (where the camera is - * pointing), and an up direction (the orientation of the camera). - * - * When called with no arguments, this function creates a default camera - * equivalent to - * camera(0, 0, (height/2.0) / tan(PI*30.0 / 180.0), 0, 0, 0, 0, 1, 0); - * @method camera - * @for p5 - * @param {Number} [x] camera position value on x axis - * @param {Number} [y] camera position value on y axis - * @param {Number} [z] camera position value on z axis - * @param {Number} [centerX] x coordinate representing center of the sketch - * @param {Number} [centerY] y coordinate representing center of the sketch - * @param {Number} [centerZ] z coordinate representing center of the sketch - * @param {Number} [upX] x component of direction 'up' from camera - * @param {Number} [upY] y component of direction 'up' from camera - * @param {Number} [upZ] z component of direction 'up' from camera - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * function draw() { - * background(204); - * //move the camera away from the plane by a sin wave - * camera(0, 0, 20 + sin(frameCount * 0.01) * 10, 0, 0, 0, 0, 1, 0); - * plane(10, 10); - * } - * - *
- * - * @alt - * White square repeatedly grows to fill canvas and then shrinks. - * - */ - p5.prototype.camera = function() { - this._assert3d('camera'); - p5._validateParameters('camera', arguments); - this._renderer._curCamera.camera.apply(this._renderer._curCamera, arguments); - return this; - }; - - /** - * Sets a perspective projection for the camera in a 3D sketch. This projection - * represents depth through foreshortening: objects that are close to the camera - * appear their actual size while those that are further away from the camera - * appear smaller. The parameters to this function define the viewing frustum - * (the truncated pyramid within which objects are seen by the camera) through - * vertical field of view, aspect ratio (usually width/height), and near and far - * clipping planes. - * - * When called with no arguments, the defaults - * provided are equivalent to - * perspective(PI/3.0, width/height, eyeZ/10.0, eyeZ*10.0), where eyeZ - * is equal to ((height/2.0) / tan(PI*60.0/360.0)); - * @method perspective - * @for p5 - * @param {Number} [fovy] camera frustum vertical field of view, - * from bottom to top of view, in angleMode units - * @param {Number} [aspect] camera frustum aspect ratio - * @param {Number} [near] frustum near plane length - * @param {Number} [far] frustum far plane length - * @chainable - * @example - *
- * - * //drag the mouse to look around! - * //you will see there's a vanishing point - * function setup() { - * createCanvas(100, 100, WEBGL); - * perspective(PI / 3.0, width / height, 0.1, 500); - * } - * function draw() { - * background(200); - * orbitControl(); - * normalMaterial(); - * - * rotateX(-0.3); - * rotateY(-0.2); - * translate(0, 0, -50); - * - * push(); - * translate(-15, 0, sin(frameCount / 30) * 95); - * box(30); - * pop(); - * push(); - * translate(15, 0, sin(frameCount / 30 + PI) * 95); - * box(30); - * pop(); - * } - * - *
- * - * @alt - * two colored 3D boxes move back and forth, rotating as mouse is dragged. - * - */ - p5.prototype.perspective = function() { - this._assert3d('perspective'); - p5._validateParameters('perspective', arguments); - this._renderer._curCamera.perspective.apply( - this._renderer._curCamera, - arguments - ); - - return this; - }; - - /** - * Sets an orthographic projection for the camera in a 3D sketch and defines a - * box-shaped viewing frustum within which objects are seen. In this projection, - * all objects with the same dimension appear the same size, regardless of - * whether they are near or far from the camera. The parameters to this - * function specify the viewing frustum where left and right are the minimum and - * maximum x values, top and bottom are the minimum and maximum y values, and near - * and far are the minimum and maximum z values. If no parameters are given, the - * default is used: ortho(-width/2, width/2, -height/2, height/2). - * @method ortho - * @for p5 - * @param {Number} [left] camera frustum left plane - * @param {Number} [right] camera frustum right plane - * @param {Number} [bottom] camera frustum bottom plane - * @param {Number} [top] camera frustum top plane - * @param {Number} [near] camera frustum near plane - * @param {Number} [far] camera frustum far plane - * @chainable - * @example - *
- * - * //drag the mouse to look around! - * //there's no vanishing point - * function setup() { - * createCanvas(100, 100, WEBGL); - * ortho(-width / 2, width / 2, height / 2, -height / 2, 0, 500); - * } - * function draw() { - * background(200); - * orbitControl(); - * normalMaterial(); - * - * rotateX(0.2); - * rotateY(-0.2); - * push(); - * translate(-15, 0, sin(frameCount / 30) * 65); - * box(30); - * pop(); - * push(); - * translate(15, 0, sin(frameCount / 30 + PI) * 65); - * box(30); - * pop(); - * } - * - *
- * - * @alt - * two 3D boxes move back and forth along same plane, rotating as mouse is dragged. - * - */ - p5.prototype.ortho = function() { - this._assert3d('ortho'); - p5._validateParameters('ortho', arguments); - this._renderer._curCamera.ortho.apply(this._renderer._curCamera, arguments); - return this; - }; - - //////////////////////////////////////////////////////////////////////////////// - // p5.Camera - //////////////////////////////////////////////////////////////////////////////// - - /** - * Creates a new p5.Camera object and tells the - * renderer to use that camera. - * Returns the p5.Camera object. - * @method createCamera - * @return {p5.Camera} The newly created camera object. - * @for p5 - */ - p5.prototype.createCamera = function() { - this._assert3d('createCamera'); - var _cam = new p5.Camera(this._renderer); - - // compute default camera settings, then set a default camera - _cam._computeCameraDefaultSettings(); - _cam._setDefaultCamera(); - - // set renderer current camera to the new camera - this._renderer._curCamera = _cam; - - return _cam; - }; - - /** - * This class describes a camera for use in p5's - * - * WebGL mode. It contains camera position, orientation, and projection - * information necessary for rendering a 3D scene. - * - * New p5.Camera objects can be made through the - * createCamera() function and controlled through - * the methods described below. A camera created in this way will use a default - * position in the scene and a default perspective projection until these - * properties are changed through the various methods available. It is possible - * to create multiple cameras, in which case the current camera - * can be set through the setCamera() method. - * - * - * Note: - * The methods below operate in two coordinate systems: the 'world' coordinate - * system describe positions in terms of their relationship to the origin along - * the X, Y and Z axes whereas the camera's 'local' coordinate system - * describes positions from the camera's point of view: left-right, up-down, - * and forward-backward. The move() method, - * for instance, moves the camera along its own axes, whereas the - * setPosition() - * method sets the camera's position in world-space. - * - * - * @class p5.Camera - * @param {rendererGL} rendererGL instance of WebGL renderer - * @example - *
- * - * let cam; - * let delta = 0.01; - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * normalMaterial(); - * cam = createCamera(); - * // set initial pan angle - * cam.pan(-0.8); - * } - * - * function draw() { - * background(200); - * - * // pan camera according to angle 'delta' - * cam.pan(delta); - * - * // every 160 frames, switch direction - * if (frameCount % 160 === 0) { - * delta *= -1; - * } - * - * rotateX(frameCount * 0.01); - * translate(-100, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * } - * - *
- * - * @alt - * camera view pans left and right across a series of rotating 3D boxes. - * - */ - p5.Camera = function(renderer) { - this._renderer = renderer; - - this.cameraType = 'default'; - - this.cameraMatrix = new p5.Matrix(); - this.projMatrix = new p5.Matrix(); - }; - - //////////////////////////////////////////////////////////////////////////////// - // Camera Projection Methods - //////////////////////////////////////////////////////////////////////////////// - - /** - * Sets a perspective projection for a p5.Camera object and sets parameters - * for that projection according to perspective() - * syntax. - * @method perspective - * @for p5.Camera - */ - p5.Camera.prototype.perspective = function(fovy, aspect, near, far) { - if (typeof fovy === 'undefined') { - fovy = this.defaultCameraFOV; - // this avoids issue where setting angleMode(DEGREES) before calling - // perspective leads to a smaller than expected FOV (because - // _computeCameraDefaultSettings computes in radians) - this.cameraFOV = fovy; - } else { - this.cameraFOV = this._renderer._pInst._toRadians(fovy); - } - if (typeof aspect === 'undefined') { - aspect = this.defaultAspectRatio; - } - if (typeof near === 'undefined') { - near = this.defaultCameraNear; - } - if (typeof far === 'undefined') { - far = this.defaultCameraFar; - } - - if (near <= 0.0001) { - near = 0.01; - console.log( - 'Avoid perspective near plane values close to or below 0. ' + - 'Setting value to 0.01.' - ); - } - - if (far < near) { - console.log( - 'Perspective far plane value is less than near plane value. ' + - 'Nothing will be shown.' - ); - } - - this.aspectRatio = aspect; - this.cameraNear = near; - this.cameraFar = far; - - this.projMatrix = p5.Matrix.identity(); - - var f = 1.0 / Math.tan(this.cameraFOV / 2); - var nf = 1.0 / (this.cameraNear - this.cameraFar); - - // prettier-ignore - this.projMatrix.set(f / aspect, 0, 0, 0, - 0, -f, 0, 0, - 0, 0, (far + near) * nf, -1, - 0, 0, 2 * far * near * nf, 0); - - if (this._isActive()) { - this._renderer.uPMatrix.set( - this.projMatrix.mat4[0], - this.projMatrix.mat4[1], - this.projMatrix.mat4[2], - this.projMatrix.mat4[3], - this.projMatrix.mat4[4], - this.projMatrix.mat4[5], - this.projMatrix.mat4[6], - this.projMatrix.mat4[7], - this.projMatrix.mat4[8], - this.projMatrix.mat4[9], - this.projMatrix.mat4[10], - this.projMatrix.mat4[11], - this.projMatrix.mat4[12], - this.projMatrix.mat4[13], - this.projMatrix.mat4[14], - this.projMatrix.mat4[15] - ); - } - - this.cameraType = 'custom'; - }; - - /** - * Sets an orthographic projection for a p5.Camera object and sets parameters - * for that projection according to ortho() syntax. - * @method ortho - * @for p5.Camera - */ - p5.Camera.prototype.ortho = function(left, right, bottom, top, near, far) { - if (left === undefined) left = -this._renderer.width / 2; - if (right === undefined) right = +this._renderer.width / 2; - if (bottom === undefined) bottom = -this._renderer.height / 2; - if (top === undefined) top = +this._renderer.height / 2; - if (near === undefined) near = 0; - if (far === undefined) - far = Math.max(this._renderer.width, this._renderer.height); - - var w = right - left; - var h = top - bottom; - var d = far - near; - - var x = +2.0 / w; - var y = +2.0 / h; - var z = -2.0 / d; - - var tx = -(right + left) / w; - var ty = -(top + bottom) / h; - var tz = -(far + near) / d; - - this.projMatrix = p5.Matrix.identity(); - - // prettier-ignore - this.projMatrix.set(x, 0, 0, 0, - 0, -y, 0, 0, - 0, 0, z, 0, - tx, ty, tz, 1); - - if (this._isActive()) { - this._renderer.uPMatrix.set( - this.projMatrix.mat4[0], - this.projMatrix.mat4[1], - this.projMatrix.mat4[2], - this.projMatrix.mat4[3], - this.projMatrix.mat4[4], - this.projMatrix.mat4[5], - this.projMatrix.mat4[6], - this.projMatrix.mat4[7], - this.projMatrix.mat4[8], - this.projMatrix.mat4[9], - this.projMatrix.mat4[10], - this.projMatrix.mat4[11], - this.projMatrix.mat4[12], - this.projMatrix.mat4[13], - this.projMatrix.mat4[14], - this.projMatrix.mat4[15] - ); - } - - this.cameraType = 'custom'; - }; - - //////////////////////////////////////////////////////////////////////////////// - // Camera Orientation Methods - //////////////////////////////////////////////////////////////////////////////// - - /** - * Rotate camera view about arbitrary axis defined by x,y,z - * based on http://learnwebgl.brown37.net/07_cameras/camera_rotating_motion.html - * @method _rotateView - * @private - */ - p5.Camera.prototype._rotateView = function(a, x, y, z) { - var centerX = this.centerX; - var centerY = this.centerY; - var centerZ = this.centerZ; - - // move center by eye position such that rotation happens around eye position - centerX -= this.eyeX; - centerY -= this.eyeY; - centerZ -= this.eyeZ; - - var rotation = p5.Matrix.identity(this._renderer._pInst); - rotation.rotate(this._renderer._pInst._toRadians(a), x, y, z); - - // prettier-ignore - var rotatedCenter = [ - centerX * rotation.mat4[0] + centerY * rotation.mat4[4] + centerZ * rotation.mat4[8], - centerX * rotation.mat4[1] + centerY * rotation.mat4[5] + centerZ * rotation.mat4[9], - centerX * rotation.mat4[2] + centerY * rotation.mat4[6] + centerZ * rotation.mat4[10]]; - - // add eye position back into center - rotatedCenter[0] += this.eyeX; - rotatedCenter[1] += this.eyeY; - rotatedCenter[2] += this.eyeZ; - - this.camera( - this.eyeX, - this.eyeY, - this.eyeZ, - rotatedCenter[0], - rotatedCenter[1], - rotatedCenter[2], - this.upX, - this.upY, - this.upZ - ); - }; - - /** - * Panning rotates the camera view to the left and right. - * @method pan - * @param {Number} angle amount to rotate camera in current - * angleMode units. - * Greater than 0 values rotate counterclockwise (to the left). - * @example - *
- * - * let cam; - * let delta = 0.01; - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * normalMaterial(); - * cam = createCamera(); - * // set initial pan angle - * cam.pan(-0.8); - * } - * - * function draw() { - * background(200); - * - * // pan camera according to angle 'delta' - * cam.pan(delta); - * - * // every 160 frames, switch direction - * if (frameCount % 160 === 0) { - * delta *= -1; - * } - * - * rotateX(frameCount * 0.01); - * translate(-100, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * } - * - *
- * - * @alt - * camera view pans left and right across a series of rotating 3D boxes. - * - */ - p5.Camera.prototype.pan = function(amount) { - var local = this._getLocalAxes(); - this._rotateView(amount, local.y[0], local.y[1], local.y[2]); - }; - - /** - * Tilting rotates the camera view up and down. - * @method tilt - * @param {Number} angle amount to rotate camera in current - * angleMode units. - * Greater than 0 values rotate counterclockwise (to the left). - * @example - *
- * - * let cam; - * let delta = 0.01; - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * normalMaterial(); - * cam = createCamera(); - * // set initial tilt - * cam.tilt(-0.8); - * } - * - * function draw() { - * background(200); - * - * // pan camera according to angle 'delta' - * cam.tilt(delta); - * - * // every 160 frames, switch direction - * if (frameCount % 160 === 0) { - * delta *= -1; - * } - * - * rotateY(frameCount * 0.01); - * translate(0, -100, 0); - * box(20); - * translate(0, 35, 0); - * box(20); - * translate(0, 35, 0); - * box(20); - * translate(0, 35, 0); - * box(20); - * translate(0, 35, 0); - * box(20); - * translate(0, 35, 0); - * box(20); - * translate(0, 35, 0); - * box(20); - * } - * - *
- * - * @alt - * camera view tilts up and down across a series of rotating 3D boxes. - */ - p5.Camera.prototype.tilt = function(amount) { - var local = this._getLocalAxes(); - this._rotateView(amount, local.x[0], local.x[1], local.x[2]); - }; - - /** - * Reorients the camera to look at a position in world space. - * @method lookAt - * @for p5.Camera - * @param {Number} x x position of a point in world space - * @param {Number} y y position of a point in world space - * @param {Number} z z position of a point in world space - * @example - *
- * - * let cam; - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * normalMaterial(); - * cam = createCamera(); - * } - * - * function draw() { - * background(200); - * - * // look at a new random point every 60 frames - * if (frameCount % 60 === 0) { - * cam.lookAt(random(-100, 100), random(-50, 50), 0); - * } - * - * rotateX(frameCount * 0.01); - * translate(-100, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * } - * - *
- * - * @alt - * camera view of rotating 3D cubes changes to look at a new random - * point every second . - */ - p5.Camera.prototype.lookAt = function(x, y, z) { - this.camera( - this.eyeX, - this.eyeY, - this.eyeZ, - x, - y, - z, - this.upX, - this.upY, - this.upZ - ); - }; - - //////////////////////////////////////////////////////////////////////////////// - // Camera Position Methods - //////////////////////////////////////////////////////////////////////////////// - - /** - * Sets a camera's position and orientation. This is equivalent to calling - * camera() on a p5.Camera object. - * @method camera - * @for p5.Camera - */ - p5.Camera.prototype.camera = function( - eyeX, - eyeY, - eyeZ, - centerX, - centerY, - centerZ, - upX, - upY, - upZ - ) { - if (typeof eyeX === 'undefined') { - eyeX = this.defaultEyeX; - eyeY = this.defaultEyeY; - eyeZ = this.defaultEyeZ; - centerX = eyeX; - centerY = eyeY; - centerZ = 0; - upX = 0; - upY = 1; - upZ = 0; - } - - this.eyeX = eyeX; - this.eyeY = eyeY; - this.eyeZ = eyeZ; - - this.centerX = centerX; - this.centerY = centerY; - this.centerZ = centerZ; - - this.upX = upX; - this.upY = upY; - this.upZ = upZ; - - var local = this._getLocalAxes(); - - // the camera affects the model view matrix, insofar as it - // inverse translates the world to the eye position of the camera - // and rotates it. - // prettier-ignore - this.cameraMatrix.set(local.x[0], local.y[0], local.z[0], 0, - local.x[1], local.y[1], local.z[1], 0, - local.x[2], local.y[2], local.z[2], 0, - 0, 0, 0, 1); - - var tx = -eyeX; - var ty = -eyeY; - var tz = -eyeZ; - - this.cameraMatrix.translate([tx, ty, tz]); - - if (this._isActive()) { - this._renderer.uMVMatrix.set( - this.cameraMatrix.mat4[0], - this.cameraMatrix.mat4[1], - this.cameraMatrix.mat4[2], - this.cameraMatrix.mat4[3], - this.cameraMatrix.mat4[4], - this.cameraMatrix.mat4[5], - this.cameraMatrix.mat4[6], - this.cameraMatrix.mat4[7], - this.cameraMatrix.mat4[8], - this.cameraMatrix.mat4[9], - this.cameraMatrix.mat4[10], - this.cameraMatrix.mat4[11], - this.cameraMatrix.mat4[12], - this.cameraMatrix.mat4[13], - this.cameraMatrix.mat4[14], - this.cameraMatrix.mat4[15] - ); - } - return this; - }; - - /** - * Move camera along its local axes while maintaining current camera orientation. - * @method move - * @param {Number} x amount to move along camera's left-right axis - * @param {Number} y amount to move along camera's up-down axis - * @param {Number} z amount to move along camera's forward-backward axis - * @example - *
- * - * // see the camera move along its own axes while maintaining its orientation - * let cam; - * let delta = 0.5; - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * normalMaterial(); - * cam = createCamera(); - * } - * - * function draw() { - * background(200); - * - * // move the camera along its local axes - * cam.move(delta, delta, 0); - * - * // every 100 frames, switch direction - * if (frameCount % 150 === 0) { - * delta *= -1; - * } - * - * translate(-10, -10, 0); - * box(50, 8, 50); - * translate(15, 15, 0); - * box(50, 8, 50); - * translate(15, 15, 0); - * box(50, 8, 50); - * translate(15, 15, 0); - * box(50, 8, 50); - * translate(15, 15, 0); - * box(50, 8, 50); - * translate(15, 15, 0); - * box(50, 8, 50); - * } - * - *
- * - * @alt - * camera view moves along a series of 3D boxes, maintaining the same - * orientation throughout the move - */ - p5.Camera.prototype.move = function(x, y, z) { - var local = this._getLocalAxes(); - - // scale local axes by movement amounts - // based on http://learnwebgl.brown37.net/07_cameras/camera_linear_motion.html - var dx = [local.x[0] * x, local.x[1] * x, local.x[2] * x]; - var dy = [local.y[0] * y, local.y[1] * y, local.y[2] * y]; - var dz = [local.z[0] * z, local.z[1] * z, local.z[2] * z]; - - this.camera( - this.eyeX + dx[0] + dy[0] + dz[0], - this.eyeY + dx[1] + dy[1] + dz[1], - this.eyeZ + dx[2] + dy[2] + dz[2], - this.centerX + dx[0] + dy[0] + dz[0], - this.centerY + dx[1] + dy[1] + dz[1], - this.centerZ + dx[2] + dy[2] + dz[2], - 0, - 1, - 0 - ); - }; - - /** - * Set camera position in world-space while maintaining current camera - * orientation. - * @method setPosition - * @param {Number} x x position of a point in world space - * @param {Number} y y position of a point in world space - * @param {Number} z z position of a point in world space - * @example - *
- * - * // press '1' '2' or '3' keys to set camera position - * - * let cam; - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * normalMaterial(); - * cam = createCamera(); - * } - * - * function draw() { - * background(200); - * - * // '1' key - * if (keyIsDown(49)) { - * cam.setPosition(30, 0, 80); - * } - * // '2' key - * if (keyIsDown(50)) { - * cam.setPosition(0, 0, 80); - * } - * // '3' key - * if (keyIsDown(51)) { - * cam.setPosition(-30, 0, 80); - * } - * - * box(20); - * } - * - *
- * - * @alt - * camera position changes as the user presses keys, altering view of a 3D box - */ - p5.Camera.prototype.setPosition = function(x, y, z) { - var diffX = x - this.eyeX; - var diffY = y - this.eyeY; - var diffZ = z - this.eyeZ; - - this.camera( - x, - y, - z, - this.centerX + diffX, - this.centerY + diffY, - this.centerZ + diffZ, - 0, - 1, - 0 - ); - }; - - //////////////////////////////////////////////////////////////////////////////// - // Camera Helper Methods - //////////////////////////////////////////////////////////////////////////////// - - // @TODO: combine this function with _setDefaultCamera to compute these values - // as-needed - p5.Camera.prototype._computeCameraDefaultSettings = function() { - this.defaultCameraFOV = 60 / 180 * Math.PI; - this.defaultAspectRatio = this._renderer.width / this._renderer.height; - this.defaultEyeX = 0; - this.defaultEyeY = 0; - this.defaultEyeZ = - this._renderer.height / 2.0 / Math.tan(this.defaultCameraFOV / 2.0); - this.defaultCenterX = 0; - this.defaultCenterY = 0; - this.defaultCenterZ = 0; - this.defaultCameraNear = this.defaultEyeZ * 0.1; - this.defaultCameraFar = this.defaultEyeZ * 10; - }; - - //detect if user didn't set the camera - //then call this function below - p5.Camera.prototype._setDefaultCamera = function() { - this.cameraFOV = this.defaultCameraFOV; - this.aspectRatio = this.defaultAspectRatio; - this.eyeX = this.defaultEyeX; - this.eyeY = this.defaultEyeY; - this.eyeZ = this.defaultEyeZ; - this.centerX = this.defaultCenterX; - this.centerY = this.defaultCenterY; - this.centerZ = this.defaultCenterZ; - this.upX = 0; - this.upY = 1; - this.upZ = 0; - this.cameraNear = this.defaultCameraNear; - this.cameraFar = this.defaultCameraFar; - - this.perspective(); - this.camera(); - - this.cameraType = 'default'; - }; - - p5.Camera.prototype._resize = function() { - // If we're using the default camera, update the aspect ratio - if (this.cameraType === 'default') { - this._computeCameraDefaultSettings(); - this._setDefaultCamera(); - } else { - this.perspective( - this.cameraFOV, - this._renderer.width / this._renderer.height - ); - } - }; - - /** - * Returns a copy of a camera. - * @method copy - * @private - */ - p5.Camera.prototype.copy = function() { - var _cam = new p5.Camera(this._renderer); - _cam.cameraFOV = this.cameraFOV; - _cam.aspectRatio = this.aspectRatio; - _cam.eyeX = this.eyeX; - _cam.eyeY = this.eyeY; - _cam.eyeZ = this.eyeZ; - _cam.centerX = this.centerX; - _cam.centerY = this.centerY; - _cam.centerZ = this.centerZ; - _cam.cameraNear = this.cameraNear; - _cam.cameraFar = this.cameraFar; - - _cam.cameraType = this.cameraType; - - _cam.cameraMatrix = this.cameraMatrix.copy(); - _cam.projMatrix = this.projMatrix.copy(); - - return _cam; - }; - - /** - * Returns a camera's local axes: left-right, up-down, and forward-backward, - * as defined by vectors in world-space. - * @method _getLocalAxes - * @private - */ - p5.Camera.prototype._getLocalAxes = function() { - // calculate camera local Z vector - var z0 = this.eyeX - this.centerX; - var z1 = this.eyeY - this.centerY; - var z2 = this.eyeZ - this.centerZ; - - // normalize camera local Z vector - var eyeDist = Math.sqrt(z0 * z0 + z1 * z1 + z2 * z2); - if (eyeDist !== 0) { - z0 /= eyeDist; - z1 /= eyeDist; - z2 /= eyeDist; - } - - // calculate camera Y vector - var y0 = this.upX; - var y1 = this.upY; - var y2 = this.upZ; - - // compute camera local X vector as up vector (local Y) cross local Z - var x0 = y1 * z2 - y2 * z1; - var x1 = -y0 * z2 + y2 * z0; - var x2 = y0 * z1 - y1 * z0; - - // recompute y = z cross x - y0 = z1 * x2 - z2 * x1; - y1 = -z0 * x2 + z2 * x0; - y2 = z0 * x1 - z1 * x0; - - // cross product gives area of parallelogram, which is < 1.0 for - // non-perpendicular unit-length vectors; so normalize x, y here: - var xmag = Math.sqrt(x0 * x0 + x1 * x1 + x2 * x2); - if (xmag !== 0) { - x0 /= xmag; - x1 /= xmag; - x2 /= xmag; - } - - var ymag = Math.sqrt(y0 * y0 + y1 * y1 + y2 * y2); - if (ymag !== 0) { - y0 /= ymag; - y1 /= ymag; - y2 /= ymag; - } - - return { - x: [x0, x1, x2], - y: [y0, y1, y2], - z: [z0, z1, z2] - }; - }; - - /** - * Orbits the camera about center point. For use with orbitControl(). - * @method _orbit - * @private - * @param {Number} dTheta change in spherical coordinate theta - * @param {Number} dPhi change in spherical coordinate phi - * @param {Number} dRadius change in radius - */ - p5.Camera.prototype._orbit = function(dTheta, dPhi, dRadius) { - var diffX = this.eyeX - this.centerX; - var diffY = this.eyeY - this.centerY; - var diffZ = this.eyeZ - this.centerZ; - - // get spherical coorinates for current camera position about origin - var camRadius = Math.sqrt(diffX * diffX + diffY * diffY + diffZ * diffZ); - // from https://github.com/mrdoob/three.js/blob/dev/src/math/Spherical.js#L72-L73 - var camTheta = Math.atan2(diffX, diffZ); // equatorial angle - var camPhi = Math.acos(Math.max(-1, Math.min(1, diffY / camRadius))); // polar angle - - // add change - camTheta += dTheta; - camPhi += dPhi; - camRadius += dRadius; - - // prevent zooming through the center: - if (camRadius < 0) { - camRadius = 0.1; - } - - // prevent rotation over the zenith / under bottom - if (camPhi > Math.PI) { - camPhi = Math.PI; - } else if (camPhi <= 0) { - camPhi = 0.001; - } - - // from https://github.com/mrdoob/three.js/blob/dev/src/math/Vector3.js#L628-L632 - var _x = Math.sin(camPhi) * camRadius * Math.sin(camTheta); - var _y = Math.cos(camPhi) * camRadius; - var _z = Math.sin(camPhi) * camRadius * Math.cos(camTheta); - - this.camera( - _x + this.centerX, - _y + this.centerY, - _z + this.centerZ, - this.centerX, - this.centerY, - this.centerZ, - 0, - 1, - 0 - ); - }; - - /** - * Returns true if camera is currently attached to renderer. - * @method _isActive - * @private - */ - p5.Camera.prototype._isActive = function() { - return this === this._renderer._curCamera; - }; - - /** - * Sets rendererGL's current camera to a p5.Camera object. Allows switching - * between multiple cameras. - * @method setCamera - * @param {p5.Camera} cam p5.Camera object - * @for p5 - * @example - *
- * - * let cam1, cam2; - * let currentCamera; - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * normalMaterial(); - * - * cam1 = createCamera(); - * cam2 = createCamera(); - * cam2.setPosition(30, 0, 50); - * cam2.lookAt(0, 0, 0); - * cam2.ortho(); - * - * // set variable for previously active camera: - * currentCamera = 1; - * } - * - * function draw() { - * background(200); - * - * // camera 1: - * cam1.lookAt(0, 0, 0); - * cam1.setPosition(sin(frameCount / 60) * 200, 0, 100); - * - * // every 100 frames, switch between the two cameras - * if (frameCount % 100 === 0) { - * if (currentCamera === 1) { - * setCamera(cam1); - * currentCamera = 0; - * } else { - * setCamera(cam2); - * currentCamera = 1; - * } - * } - * - * drawBoxes(); - * } - * - * function drawBoxes() { - * rotateX(frameCount * 0.01); - * translate(-100, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * translate(35, 0, 0); - * box(20); - * } - * - *
- * - * @alt - * Canvas switches between two camera views, each showing a series of spinning - * 3D boxes. - */ - p5.prototype.setCamera = function(cam) { - this._renderer._curCamera = cam; - - // set the projection matrix (which is not normally updated each frame) - this._renderer.uPMatrix.set( - cam.projMatrix.mat4[0], - cam.projMatrix.mat4[1], - cam.projMatrix.mat4[2], - cam.projMatrix.mat4[3], - cam.projMatrix.mat4[4], - cam.projMatrix.mat4[5], - cam.projMatrix.mat4[6], - cam.projMatrix.mat4[7], - cam.projMatrix.mat4[8], - cam.projMatrix.mat4[9], - cam.projMatrix.mat4[10], - cam.projMatrix.mat4[11], - cam.projMatrix.mat4[12], - cam.projMatrix.mat4[13], - cam.projMatrix.mat4[14], - cam.projMatrix.mat4[15] - ); - }; - - module.exports = p5.Camera; - }, - { '../core/main': 24 } - ], - 71: [ - function(_dereq_, module, exports) { - //some of the functions are adjusted from Three.js(http://threejs.org) - - 'use strict'; - - var p5 = _dereq_('../core/main'); - /** - * p5 Geometry class - * @class p5.Geometry - * @constructor - * @param {Integer} [detailX] number of vertices on horizontal surface - * @param {Integer} [detailY] number of vertices on horizontal surface - * @param {function} [callback] function to call upon object instantiation. - * - */ - p5.Geometry = function(detailX, detailY, callback) { - //an array containing every vertex - //@type [p5.Vector] - this.vertices = []; - - //an array containing every vertex for stroke drawing - this.lineVertices = []; - - //an array 1 normal per lineVertex with - //final position representing which direction to - //displace for strokeWeight - //[[0,0,-1,1], [0,1,0,-1] ...]; - this.lineNormals = []; - - //an array containing 1 normal per vertex - //@type [p5.Vector] - //[p5.Vector, p5.Vector, p5.Vector,p5.Vector, p5.Vector, p5.Vector,...] - this.vertexNormals = []; - //an array containing each three vertex indices that form a face - //[[0, 1, 2], [2, 1, 3], ...] - this.faces = []; - //a 2D array containing uvs for every vertex - //[[0.0,0.0],[1.0,0.0], ...] - this.uvs = []; - // a 2D array containing edge connectivity pattern for create line vertices - //based on faces for most objects; - this.edges = []; - this.detailX = detailX !== undefined ? detailX : 1; - this.detailY = detailY !== undefined ? detailY : 1; - - this.dirtyFlags = {}; - - if (callback instanceof Function) { - callback.call(this); - } - return this; // TODO: is this a constructor? - }; - - p5.Geometry.prototype.reset = function() { - this.lineVertices.length = 0; - this.lineNormals.length = 0; - - this.vertices.length = 0; - this.edges.length = 0; - this.vertexColors.length = 0; - this.vertexNormals.length = 0; - this.uvs.length = 0; - - this.dirtyFlags = {}; - }; - - /** - * @method computeFaces - * @chainable - */ - p5.Geometry.prototype.computeFaces = function() { - this.faces.length = 0; - var sliceCount = this.detailX + 1; - var a, b, c, d; - for (var i = 0; i < this.detailY; i++) { - for (var j = 0; j < this.detailX; j++) { - a = i * sliceCount + j; // + offset; - b = i * sliceCount + j + 1; // + offset; - c = (i + 1) * sliceCount + j + 1; // + offset; - d = (i + 1) * sliceCount + j; // + offset; - this.faces.push([a, b, d]); - this.faces.push([d, b, c]); - } - } - return this; - }; - - p5.Geometry.prototype._getFaceNormal = function(faceId) { - //This assumes that vA->vB->vC is a counter-clockwise ordering - var face = this.faces[faceId]; - var vA = this.vertices[face[0]]; - var vB = this.vertices[face[1]]; - var vC = this.vertices[face[2]]; - var ab = p5.Vector.sub(vB, vA); - var ac = p5.Vector.sub(vC, vA); - var n = p5.Vector.cross(ab, ac); - var ln = p5.Vector.mag(n); - var sinAlpha = ln / (p5.Vector.mag(ab) * p5.Vector.mag(ac)); - if (sinAlpha === 0 || isNaN(sinAlpha)) { - console.warn( - 'p5.Geometry.prototype._getFaceNormal:', - 'face has colinear sides or a repeated vertex' - ); - - return n; - } - if (sinAlpha > 1) sinAlpha = 1; // handle float rounding error - return n.mult(Math.asin(sinAlpha) / ln); - }; - /** - * computes smooth normals per vertex as an average of each - * face. - * @method computeNormals - * @chainable - */ - p5.Geometry.prototype.computeNormals = function() { - var vertexNormals = this.vertexNormals; - var vertices = this.vertices; - var faces = this.faces; - var iv; - - // initialize the vertexNormals array with empty vectors - vertexNormals.length = 0; - for (iv = 0; iv < vertices.length; ++iv) { - vertexNormals.push(new p5.Vector()); - } - - // loop through all the faces adding its normal to the normal - // of each of its vertices - for (var f = 0; f < faces.length; ++f) { - var face = faces[f]; - var faceNormal = this._getFaceNormal(f); - - // all three vertices get the normal added - for (var fv = 0; fv < 3; ++fv) { - var vertexIndex = face[fv]; - vertexNormals[vertexIndex].add(faceNormal); - } - } - - // normalize the normals - for (iv = 0; iv < vertices.length; ++iv) { - vertexNormals[iv].normalize(); - } - - return this; - }; - - /** - * Averages the vertex normals. Used in curved - * surfaces - * @method averageNormals - * @chainable - */ - p5.Geometry.prototype.averageNormals = function() { - for (var i = 0; i <= this.detailY; i++) { - var offset = this.detailX + 1; - var temp = p5.Vector.add( - this.vertexNormals[i * offset], - this.vertexNormals[i * offset + this.detailX] - ); - - temp = p5.Vector.div(temp, 2); - this.vertexNormals[i * offset] = temp; - this.vertexNormals[i * offset + this.detailX] = temp; - } - return this; - }; - - /** - * Averages pole normals. Used in spherical primitives - * @method averagePoleNormals - * @chainable - */ - p5.Geometry.prototype.averagePoleNormals = function() { - //average the north pole - var sum = new p5.Vector(0, 0, 0); - for (var i = 0; i < this.detailX; i++) { - sum.add(this.vertexNormals[i]); - } - sum = p5.Vector.div(sum, this.detailX); - - for (i = 0; i < this.detailX; i++) { - this.vertexNormals[i] = sum; - } - - //average the south pole - sum = new p5.Vector(0, 0, 0); - for ( - i = this.vertices.length - 1; - i > this.vertices.length - 1 - this.detailX; - i-- - ) { - sum.add(this.vertexNormals[i]); - } - sum = p5.Vector.div(sum, this.detailX); - - for ( - i = this.vertices.length - 1; - i > this.vertices.length - 1 - this.detailX; - i-- - ) { - this.vertexNormals[i] = sum; - } - return this; - }; - - /** - * Create a 2D array for establishing stroke connections - * @private - * @chainable - */ - p5.Geometry.prototype._makeTriangleEdges = function() { - this.edges.length = 0; - if (Array.isArray(this.strokeIndices)) { - for (var i = 0, max = this.strokeIndices.length; i < max; i++) { - this.edges.push(this.strokeIndices[i]); - } - } else { - for (var j = 0; j < this.faces.length; j++) { - this.edges.push([this.faces[j][0], this.faces[j][1]]); - this.edges.push([this.faces[j][1], this.faces[j][2]]); - this.edges.push([this.faces[j][2], this.faces[j][0]]); - } - } - return this; - }; - - /** - * Create 4 vertices for each stroke line, two at the beginning position - * and two at the end position. These vertices are displaced relative to - * that line's normal on the GPU - * @private - * @chainable - */ - p5.Geometry.prototype._edgesToVertices = function() { - this.lineVertices.length = 0; - this.lineNormals.length = 0; - - for (var i = 0; i < this.edges.length; i++) { - var begin = this.vertices[this.edges[i][0]]; - var end = this.vertices[this.edges[i][1]]; - var dir = end - .copy() - .sub(begin) - .normalize(); - var a = begin.array(); - var b = begin.array(); - var c = end.array(); - var d = end.array(); - var dirAdd = dir.array(); - var dirSub = dir.array(); - // below is used to displace the pair of vertices at beginning and end - // in opposite directions - dirAdd.push(1); - dirSub.push(-1); - this.lineNormals.push(dirAdd, dirSub, dirAdd, dirAdd, dirSub, dirSub); - this.lineVertices.push(a, b, c, c, b, d); - } - return this; - }; - - /** - * Modifies all vertices to be centered within the range -100 to 100. - * @method normalize - * @chainable - */ - p5.Geometry.prototype.normalize = function() { - if (this.vertices.length > 0) { - // Find the corners of our bounding box - var maxPosition = this.vertices[0].copy(); - var minPosition = this.vertices[0].copy(); - - for (var i = 0; i < this.vertices.length; i++) { - maxPosition.x = Math.max(maxPosition.x, this.vertices[i].x); - minPosition.x = Math.min(minPosition.x, this.vertices[i].x); - maxPosition.y = Math.max(maxPosition.y, this.vertices[i].y); - minPosition.y = Math.min(minPosition.y, this.vertices[i].y); - maxPosition.z = Math.max(maxPosition.z, this.vertices[i].z); - minPosition.z = Math.min(minPosition.z, this.vertices[i].z); - } - - var center = p5.Vector.lerp(maxPosition, minPosition, 0.5); - var dist = p5.Vector.sub(maxPosition, minPosition); - var longestDist = Math.max(Math.max(dist.x, dist.y), dist.z); - var scale = 200 / longestDist; - - for (i = 0; i < this.vertices.length; i++) { - this.vertices[i].sub(center); - this.vertices[i].mult(scale); - } - } - return this; - }; - - module.exports = p5.Geometry; - }, - { '../core/main': 24 } - ], - 72: [ - function(_dereq_, module, exports) { - /** - * @requires constants - * @todo see methods below needing further implementation. - * future consideration: implement SIMD optimizations - * when browser compatibility becomes available - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/ - * Reference/Global_Objects/SIMD - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - var GLMAT_ARRAY_TYPE = Array; - var isMatrixArray = function isMatrixArray(x) { - return x instanceof Array; - }; - if (typeof Float32Array !== 'undefined') { - GLMAT_ARRAY_TYPE = Float32Array; - isMatrixArray = function isMatrixArray(x) { - return x instanceof Array || x instanceof Float32Array; - }; - } - - /** - * A class to describe a 4x4 matrix - * for model and view matrix manipulation in the p5js webgl renderer. - * @class p5.Matrix - * @private - * @constructor - * @param {Array} [mat4] array literal of our 4x4 matrix - */ - p5.Matrix = function() { - var args = new Array(arguments.length); - for (var i = 0; i < args.length; ++i) { - args[i] = arguments[i]; - } - - // This is default behavior when object - // instantiated using createMatrix() - // @todo implement createMatrix() in core/math.js - if (args.length && args[args.length - 1] instanceof p5) { - this.p5 = args[args.length - 1]; - } - - if (args[0] === 'mat3') { - this.mat3 = Array.isArray(args[1]) - ? args[1] - : new GLMAT_ARRAY_TYPE([1, 0, 0, 0, 1, 0, 0, 0, 1]); - } else { - this.mat4 = Array.isArray(args[0]) - ? args[0] - : new GLMAT_ARRAY_TYPE([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]); - } - return this; - }; - - /** - * Sets the x, y, and z component of the vector using two or three separate - * variables, the data from a p5.Matrix, or the values from a float array. - * - * @method set - * @param {p5.Matrix|Float32Array|Number[]} [inMatrix] the input p5.Matrix or - * an Array of length 16 - * @chainable - */ - /** - * @method set - * @param {Number[]} elements 16 numbers passed by value to avoid - * array copying. - * @chainable - */ - p5.Matrix.prototype.set = function(inMatrix) { - if (inMatrix instanceof p5.Matrix) { - this.mat4 = inMatrix.mat4; - return this; - } else if (isMatrixArray(inMatrix)) { - this.mat4 = inMatrix; - return this; - } else if (arguments.length === 16) { - this.mat4[0] = arguments[0]; - this.mat4[1] = arguments[1]; - this.mat4[2] = arguments[2]; - this.mat4[3] = arguments[3]; - this.mat4[4] = arguments[4]; - this.mat4[5] = arguments[5]; - this.mat4[6] = arguments[6]; - this.mat4[7] = arguments[7]; - this.mat4[8] = arguments[8]; - this.mat4[9] = arguments[9]; - this.mat4[10] = arguments[10]; - this.mat4[11] = arguments[11]; - this.mat4[12] = arguments[12]; - this.mat4[13] = arguments[13]; - this.mat4[14] = arguments[14]; - this.mat4[15] = arguments[15]; - } - return this; - }; - - /** - * Gets a copy of the vector, returns a p5.Matrix object. - * - * @method get - * @return {p5.Matrix} the copy of the p5.Matrix object - */ - p5.Matrix.prototype.get = function() { - return new p5.Matrix(this.mat4, this.p5); - }; - - /** - * return a copy of a matrix - * @method copy - * @return {p5.Matrix} the result matrix - */ - p5.Matrix.prototype.copy = function() { - var copied = new p5.Matrix(this.p5); - copied.mat4[0] = this.mat4[0]; - copied.mat4[1] = this.mat4[1]; - copied.mat4[2] = this.mat4[2]; - copied.mat4[3] = this.mat4[3]; - copied.mat4[4] = this.mat4[4]; - copied.mat4[5] = this.mat4[5]; - copied.mat4[6] = this.mat4[6]; - copied.mat4[7] = this.mat4[7]; - copied.mat4[8] = this.mat4[8]; - copied.mat4[9] = this.mat4[9]; - copied.mat4[10] = this.mat4[10]; - copied.mat4[11] = this.mat4[11]; - copied.mat4[12] = this.mat4[12]; - copied.mat4[13] = this.mat4[13]; - copied.mat4[14] = this.mat4[14]; - copied.mat4[15] = this.mat4[15]; - return copied; - }; - - /** - * return an identity matrix - * @method identity - * @return {p5.Matrix} the result matrix - */ - p5.Matrix.identity = function(pInst) { - return new p5.Matrix(pInst); - }; - - /** - * transpose according to a given matrix - * @method transpose - * @param {p5.Matrix|Float32Array|Number[]} a the matrix to be - * based on to transpose - * @chainable - */ - p5.Matrix.prototype.transpose = function(a) { - var a01, a02, a03, a12, a13, a23; - if (a instanceof p5.Matrix) { - a01 = a.mat4[1]; - a02 = a.mat4[2]; - a03 = a.mat4[3]; - a12 = a.mat4[6]; - a13 = a.mat4[7]; - a23 = a.mat4[11]; - - this.mat4[0] = a.mat4[0]; - this.mat4[1] = a.mat4[4]; - this.mat4[2] = a.mat4[8]; - this.mat4[3] = a.mat4[12]; - this.mat4[4] = a01; - this.mat4[5] = a.mat4[5]; - this.mat4[6] = a.mat4[9]; - this.mat4[7] = a.mat4[13]; - this.mat4[8] = a02; - this.mat4[9] = a12; - this.mat4[10] = a.mat4[10]; - this.mat4[11] = a.mat4[14]; - this.mat4[12] = a03; - this.mat4[13] = a13; - this.mat4[14] = a23; - this.mat4[15] = a.mat4[15]; - } else if (isMatrixArray(a)) { - a01 = a[1]; - a02 = a[2]; - a03 = a[3]; - a12 = a[6]; - a13 = a[7]; - a23 = a[11]; - - this.mat4[0] = a[0]; - this.mat4[1] = a[4]; - this.mat4[2] = a[8]; - this.mat4[3] = a[12]; - this.mat4[4] = a01; - this.mat4[5] = a[5]; - this.mat4[6] = a[9]; - this.mat4[7] = a[13]; - this.mat4[8] = a02; - this.mat4[9] = a12; - this.mat4[10] = a[10]; - this.mat4[11] = a[14]; - this.mat4[12] = a03; - this.mat4[13] = a13; - this.mat4[14] = a23; - this.mat4[15] = a[15]; - } - return this; - }; - - /** - * invert matrix according to a give matrix - * @method invert - * @param {p5.Matrix|Float32Array|Number[]} a the matrix to be - * based on to invert - * @chainable - */ - p5.Matrix.prototype.invert = function(a) { - var a00, a01, a02, a03, a10, a11, a12, a13; - var a20, a21, a22, a23, a30, a31, a32, a33; - if (a instanceof p5.Matrix) { - a00 = a.mat4[0]; - a01 = a.mat4[1]; - a02 = a.mat4[2]; - a03 = a.mat4[3]; - a10 = a.mat4[4]; - a11 = a.mat4[5]; - a12 = a.mat4[6]; - a13 = a.mat4[7]; - a20 = a.mat4[8]; - a21 = a.mat4[9]; - a22 = a.mat4[10]; - a23 = a.mat4[11]; - a30 = a.mat4[12]; - a31 = a.mat4[13]; - a32 = a.mat4[14]; - a33 = a.mat4[15]; - } else if (isMatrixArray(a)) { - a00 = a[0]; - a01 = a[1]; - a02 = a[2]; - a03 = a[3]; - a10 = a[4]; - a11 = a[5]; - a12 = a[6]; - a13 = a[7]; - a20 = a[8]; - a21 = a[9]; - a22 = a[10]; - a23 = a[11]; - a30 = a[12]; - a31 = a[13]; - a32 = a[14]; - a33 = a[15]; - } - var b00 = a00 * a11 - a01 * a10; - var b01 = a00 * a12 - a02 * a10; - var b02 = a00 * a13 - a03 * a10; - var b03 = a01 * a12 - a02 * a11; - var b04 = a01 * a13 - a03 * a11; - var b05 = a02 * a13 - a03 * a12; - var b06 = a20 * a31 - a21 * a30; - var b07 = a20 * a32 - a22 * a30; - var b08 = a20 * a33 - a23 * a30; - var b09 = a21 * a32 - a22 * a31; - var b10 = a21 * a33 - a23 * a31; - var b11 = a22 * a33 - a23 * a32; - - // Calculate the determinant - var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; - - if (!det) { - return null; - } - det = 1.0 / det; - - this.mat4[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det; - this.mat4[1] = (a02 * b10 - a01 * b11 - a03 * b09) * det; - this.mat4[2] = (a31 * b05 - a32 * b04 + a33 * b03) * det; - this.mat4[3] = (a22 * b04 - a21 * b05 - a23 * b03) * det; - this.mat4[4] = (a12 * b08 - a10 * b11 - a13 * b07) * det; - this.mat4[5] = (a00 * b11 - a02 * b08 + a03 * b07) * det; - this.mat4[6] = (a32 * b02 - a30 * b05 - a33 * b01) * det; - this.mat4[7] = (a20 * b05 - a22 * b02 + a23 * b01) * det; - this.mat4[8] = (a10 * b10 - a11 * b08 + a13 * b06) * det; - this.mat4[9] = (a01 * b08 - a00 * b10 - a03 * b06) * det; - this.mat4[10] = (a30 * b04 - a31 * b02 + a33 * b00) * det; - this.mat4[11] = (a21 * b02 - a20 * b04 - a23 * b00) * det; - this.mat4[12] = (a11 * b07 - a10 * b09 - a12 * b06) * det; - this.mat4[13] = (a00 * b09 - a01 * b07 + a02 * b06) * det; - this.mat4[14] = (a31 * b01 - a30 * b03 - a32 * b00) * det; - this.mat4[15] = (a20 * b03 - a21 * b01 + a22 * b00) * det; - - return this; - }; - - /** - * Inverts a 3x3 matrix - * @method invert3x3 - * @chainable - */ - p5.Matrix.prototype.invert3x3 = function() { - var a00 = this.mat3[0]; - var a01 = this.mat3[1]; - var a02 = this.mat3[2]; - var a10 = this.mat3[3]; - var a11 = this.mat3[4]; - var a12 = this.mat3[5]; - var a20 = this.mat3[6]; - var a21 = this.mat3[7]; - var a22 = this.mat3[8]; - var b01 = a22 * a11 - a12 * a21; - var b11 = -a22 * a10 + a12 * a20; - var b21 = a21 * a10 - a11 * a20; - - // Calculate the determinant - var det = a00 * b01 + a01 * b11 + a02 * b21; - if (!det) { - return null; - } - det = 1.0 / det; - this.mat3[0] = b01 * det; - this.mat3[1] = (-a22 * a01 + a02 * a21) * det; - this.mat3[2] = (a12 * a01 - a02 * a11) * det; - this.mat3[3] = b11 * det; - this.mat3[4] = (a22 * a00 - a02 * a20) * det; - this.mat3[5] = (-a12 * a00 + a02 * a10) * det; - this.mat3[6] = b21 * det; - this.mat3[7] = (-a21 * a00 + a01 * a20) * det; - this.mat3[8] = (a11 * a00 - a01 * a10) * det; - return this; - }; - - /** - * transposes a 3x3 p5.Matrix by a mat3 - * @method transpose3x3 - * @param {Number[]} mat3 1-dimensional array - * @chainable - */ - p5.Matrix.prototype.transpose3x3 = function(mat3) { - var a01 = mat3[1], - a02 = mat3[2], - a12 = mat3[5]; - this.mat3[1] = mat3[3]; - this.mat3[2] = mat3[6]; - this.mat3[3] = a01; - this.mat3[5] = mat3[7]; - this.mat3[6] = a02; - this.mat3[7] = a12; - return this; - }; - - /** - * converts a 4x4 matrix to its 3x3 inverse transform - * commonly used in MVMatrix to NMatrix conversions. - * @method invertTranspose - * @param {p5.Matrix} mat4 the matrix to be based on to invert - * @chainable - * @todo finish implementation - */ - p5.Matrix.prototype.inverseTranspose = function(matrix) { - if (this.mat3 === undefined) { - console.error('sorry, this function only works with mat3'); - } else { - //convert mat4 -> mat3 - this.mat3[0] = matrix.mat4[0]; - this.mat3[1] = matrix.mat4[1]; - this.mat3[2] = matrix.mat4[2]; - this.mat3[3] = matrix.mat4[4]; - this.mat3[4] = matrix.mat4[5]; - this.mat3[5] = matrix.mat4[6]; - this.mat3[6] = matrix.mat4[8]; - this.mat3[7] = matrix.mat4[9]; - this.mat3[8] = matrix.mat4[10]; - } - - var inverse = this.invert3x3(); - // check inverse succeeded - if (inverse) { - inverse.transpose3x3(this.mat3); - } else { - // in case of singularity, just zero the matrix - for (var i = 0; i < 9; i++) { - this.mat3[i] = 0; - } - } - return this; - }; - - /** - * inspired by Toji's mat4 determinant - * @method determinant - * @return {Number} Determinant of our 4x4 matrix - */ - p5.Matrix.prototype.determinant = function() { - var d00 = this.mat4[0] * this.mat4[5] - this.mat4[1] * this.mat4[4], - d01 = this.mat4[0] * this.mat4[6] - this.mat4[2] * this.mat4[4], - d02 = this.mat4[0] * this.mat4[7] - this.mat4[3] * this.mat4[4], - d03 = this.mat4[1] * this.mat4[6] - this.mat4[2] * this.mat4[5], - d04 = this.mat4[1] * this.mat4[7] - this.mat4[3] * this.mat4[5], - d05 = this.mat4[2] * this.mat4[7] - this.mat4[3] * this.mat4[6], - d06 = this.mat4[8] * this.mat4[13] - this.mat4[9] * this.mat4[12], - d07 = this.mat4[8] * this.mat4[14] - this.mat4[10] * this.mat4[12], - d08 = this.mat4[8] * this.mat4[15] - this.mat4[11] * this.mat4[12], - d09 = this.mat4[9] * this.mat4[14] - this.mat4[10] * this.mat4[13], - d10 = this.mat4[9] * this.mat4[15] - this.mat4[11] * this.mat4[13], - d11 = this.mat4[10] * this.mat4[15] - this.mat4[11] * this.mat4[14]; - - // Calculate the determinant - return d00 * d11 - d01 * d10 + d02 * d09 + d03 * d08 - d04 * d07 + d05 * d06; - }; - - /** - * multiply two mat4s - * @method mult - * @param {p5.Matrix|Float32Array|Number[]} multMatrix The matrix - * we want to multiply by - * @chainable - */ - p5.Matrix.prototype.mult = function(multMatrix) { - var _src; - - if (multMatrix === this || multMatrix === this.mat4) { - _src = this.copy().mat4; // only need to allocate in this rare case - } else if (multMatrix instanceof p5.Matrix) { - _src = multMatrix.mat4; - } else if (isMatrixArray(multMatrix)) { - _src = multMatrix; - } else if (arguments.length === 16) { - _src = arguments; - } else { - return; // nothing to do. - } - - // each row is used for the multiplier - var b0 = this.mat4[0], - b1 = this.mat4[1], - b2 = this.mat4[2], - b3 = this.mat4[3]; - this.mat4[0] = b0 * _src[0] + b1 * _src[4] + b2 * _src[8] + b3 * _src[12]; - this.mat4[1] = b0 * _src[1] + b1 * _src[5] + b2 * _src[9] + b3 * _src[13]; - this.mat4[2] = b0 * _src[2] + b1 * _src[6] + b2 * _src[10] + b3 * _src[14]; - this.mat4[3] = b0 * _src[3] + b1 * _src[7] + b2 * _src[11] + b3 * _src[15]; - - b0 = this.mat4[4]; - b1 = this.mat4[5]; - b2 = this.mat4[6]; - b3 = this.mat4[7]; - this.mat4[4] = b0 * _src[0] + b1 * _src[4] + b2 * _src[8] + b3 * _src[12]; - this.mat4[5] = b0 * _src[1] + b1 * _src[5] + b2 * _src[9] + b3 * _src[13]; - this.mat4[6] = b0 * _src[2] + b1 * _src[6] + b2 * _src[10] + b3 * _src[14]; - this.mat4[7] = b0 * _src[3] + b1 * _src[7] + b2 * _src[11] + b3 * _src[15]; - - b0 = this.mat4[8]; - b1 = this.mat4[9]; - b2 = this.mat4[10]; - b3 = this.mat4[11]; - this.mat4[8] = b0 * _src[0] + b1 * _src[4] + b2 * _src[8] + b3 * _src[12]; - this.mat4[9] = b0 * _src[1] + b1 * _src[5] + b2 * _src[9] + b3 * _src[13]; - this.mat4[10] = b0 * _src[2] + b1 * _src[6] + b2 * _src[10] + b3 * _src[14]; - this.mat4[11] = b0 * _src[3] + b1 * _src[7] + b2 * _src[11] + b3 * _src[15]; - - b0 = this.mat4[12]; - b1 = this.mat4[13]; - b2 = this.mat4[14]; - b3 = this.mat4[15]; - this.mat4[12] = b0 * _src[0] + b1 * _src[4] + b2 * _src[8] + b3 * _src[12]; - this.mat4[13] = b0 * _src[1] + b1 * _src[5] + b2 * _src[9] + b3 * _src[13]; - this.mat4[14] = b0 * _src[2] + b1 * _src[6] + b2 * _src[10] + b3 * _src[14]; - this.mat4[15] = b0 * _src[3] + b1 * _src[7] + b2 * _src[11] + b3 * _src[15]; - - return this; - }; - - p5.Matrix.prototype.apply = function(multMatrix) { - var _src; - - if (multMatrix === this || multMatrix === this.mat4) { - _src = this.copy().mat4; // only need to allocate in this rare case - } else if (multMatrix instanceof p5.Matrix) { - _src = multMatrix.mat4; - } else if (isMatrixArray(multMatrix)) { - _src = multMatrix; - } else if (arguments.length === 16) { - _src = arguments; - } else { - return; // nothing to do. - } - - var mat4 = this.mat4; - - // each row is used for the multiplier - var m0 = mat4[0]; - var m4 = mat4[4]; - var m8 = mat4[8]; - var m12 = mat4[12]; - mat4[0] = _src[0] * m0 + _src[1] * m4 + _src[2] * m8 + _src[3] * m12; - mat4[4] = _src[4] * m0 + _src[5] * m4 + _src[6] * m8 + _src[7] * m12; - mat4[8] = _src[8] * m0 + _src[9] * m4 + _src[10] * m8 + _src[11] * m12; - mat4[12] = _src[12] * m0 + _src[13] * m4 + _src[14] * m8 + _src[15] * m12; - - var m1 = mat4[1]; - var m5 = mat4[5]; - var m9 = mat4[9]; - var m13 = mat4[13]; - mat4[1] = _src[0] * m1 + _src[1] * m5 + _src[2] * m9 + _src[3] * m13; - mat4[5] = _src[4] * m1 + _src[5] * m5 + _src[6] * m9 + _src[7] * m13; - mat4[9] = _src[8] * m1 + _src[9] * m5 + _src[10] * m9 + _src[11] * m13; - mat4[13] = _src[12] * m1 + _src[13] * m5 + _src[14] * m9 + _src[15] * m13; - - var m2 = mat4[2]; - var m6 = mat4[6]; - var m10 = mat4[10]; - var m14 = mat4[14]; - mat4[2] = _src[0] * m2 + _src[1] * m6 + _src[2] * m10 + _src[3] * m14; - mat4[6] = _src[4] * m2 + _src[5] * m6 + _src[6] * m10 + _src[7] * m14; - mat4[10] = _src[8] * m2 + _src[9] * m6 + _src[10] * m10 + _src[11] * m14; - mat4[14] = _src[12] * m2 + _src[13] * m6 + _src[14] * m10 + _src[15] * m14; - - var m3 = mat4[3]; - var m7 = mat4[7]; - var m11 = mat4[11]; - var m15 = mat4[15]; - mat4[3] = _src[0] * m3 + _src[1] * m7 + _src[2] * m11 + _src[3] * m15; - mat4[7] = _src[4] * m3 + _src[5] * m7 + _src[6] * m11 + _src[7] * m15; - mat4[11] = _src[8] * m3 + _src[9] * m7 + _src[10] * m11 + _src[11] * m15; - mat4[15] = _src[12] * m3 + _src[13] * m7 + _src[14] * m11 + _src[15] * m15; - - return this; - }; - - /** - * scales a p5.Matrix by scalars or a vector - * @method scale - * @param {p5.Vector|Float32Array|Number[]} s vector to scale by - * @chainable - */ - p5.Matrix.prototype.scale = function(x, y, z) { - if (x instanceof p5.Vector) { - // x is a vector, extract the components from it. - y = x.y; - z = x.z; - x = x.x; // must be last - } else if (x instanceof Array) { - // x is an array, extract the components from it. - y = x[1]; - z = x[2]; - x = x[0]; // must be last - } - - this.mat4[0] *= x; - this.mat4[1] *= x; - this.mat4[2] *= x; - this.mat4[3] *= x; - this.mat4[4] *= y; - this.mat4[5] *= y; - this.mat4[6] *= y; - this.mat4[7] *= y; - this.mat4[8] *= z; - this.mat4[9] *= z; - this.mat4[10] *= z; - this.mat4[11] *= z; - - return this; - }; - - /** - * rotate our Matrix around an axis by the given angle. - * @method rotate - * @param {Number} a The angle of rotation in radians - * @param {p5.Vector|Number[]} axis the axis(es) to rotate around - * @chainable - * inspired by Toji's gl-matrix lib, mat4 rotation - */ - p5.Matrix.prototype.rotate = function(a, x, y, z) { - if (x instanceof p5.Vector) { - // x is a vector, extract the components from it. - y = x.y; - z = x.z; - x = x.x; //must be last - } else if (x instanceof Array) { - // x is an array, extract the components from it. - y = x[1]; - z = x[2]; - x = x[0]; //must be last - } - - var len = Math.sqrt(x * x + y * y + z * z); - x *= 1 / len; - y *= 1 / len; - z *= 1 / len; - - var a00 = this.mat4[0]; - var a01 = this.mat4[1]; - var a02 = this.mat4[2]; - var a03 = this.mat4[3]; - var a10 = this.mat4[4]; - var a11 = this.mat4[5]; - var a12 = this.mat4[6]; - var a13 = this.mat4[7]; - var a20 = this.mat4[8]; - var a21 = this.mat4[9]; - var a22 = this.mat4[10]; - var a23 = this.mat4[11]; - - //sin,cos, and tan of respective angle - var sA = Math.sin(a); - var cA = Math.cos(a); - var tA = 1 - cA; - // Construct the elements of the rotation matrix - var b00 = x * x * tA + cA; - var b01 = y * x * tA + z * sA; - var b02 = z * x * tA - y * sA; - var b10 = x * y * tA - z * sA; - var b11 = y * y * tA + cA; - var b12 = z * y * tA + x * sA; - var b20 = x * z * tA + y * sA; - var b21 = y * z * tA - x * sA; - var b22 = z * z * tA + cA; - - // rotation-specific matrix multiplication - this.mat4[0] = a00 * b00 + a10 * b01 + a20 * b02; - this.mat4[1] = a01 * b00 + a11 * b01 + a21 * b02; - this.mat4[2] = a02 * b00 + a12 * b01 + a22 * b02; - this.mat4[3] = a03 * b00 + a13 * b01 + a23 * b02; - this.mat4[4] = a00 * b10 + a10 * b11 + a20 * b12; - this.mat4[5] = a01 * b10 + a11 * b11 + a21 * b12; - this.mat4[6] = a02 * b10 + a12 * b11 + a22 * b12; - this.mat4[7] = a03 * b10 + a13 * b11 + a23 * b12; - this.mat4[8] = a00 * b20 + a10 * b21 + a20 * b22; - this.mat4[9] = a01 * b20 + a11 * b21 + a21 * b22; - this.mat4[10] = a02 * b20 + a12 * b21 + a22 * b22; - this.mat4[11] = a03 * b20 + a13 * b21 + a23 * b22; - - return this; - }; - - /** - * @todo finish implementing this method! - * translates - * @method translate - * @param {Number[]} v vector to translate by - * @chainable - */ - p5.Matrix.prototype.translate = function(v) { - var x = v[0], - y = v[1], - z = v[2] || 0; - this.mat4[12] += this.mat4[0] * x + this.mat4[4] * y + this.mat4[8] * z; - this.mat4[13] += this.mat4[1] * x + this.mat4[5] * y + this.mat4[9] * z; - this.mat4[14] += this.mat4[2] * x + this.mat4[6] * y + this.mat4[10] * z; - this.mat4[15] += this.mat4[3] * x + this.mat4[7] * y + this.mat4[11] * z; - }; - - p5.Matrix.prototype.rotateX = function(a) { - this.rotate(a, 1, 0, 0); - }; - p5.Matrix.prototype.rotateY = function(a) { - this.rotate(a, 0, 1, 0); - }; - p5.Matrix.prototype.rotateZ = function(a) { - this.rotate(a, 0, 0, 1); - }; - - /** - * sets the perspective matrix - * @method perspective - * @param {Number} fovy [description] - * @param {Number} aspect [description] - * @param {Number} near near clipping plane - * @param {Number} far far clipping plane - * @chainable - */ - p5.Matrix.prototype.perspective = function(fovy, aspect, near, far) { - var f = 1.0 / Math.tan(fovy / 2), - nf = 1 / (near - far); - - this.mat4[0] = f / aspect; - this.mat4[1] = 0; - this.mat4[2] = 0; - this.mat4[3] = 0; - this.mat4[4] = 0; - this.mat4[5] = f; - this.mat4[6] = 0; - this.mat4[7] = 0; - this.mat4[8] = 0; - this.mat4[9] = 0; - this.mat4[10] = (far + near) * nf; - this.mat4[11] = -1; - this.mat4[12] = 0; - this.mat4[13] = 0; - this.mat4[14] = 2 * far * near * nf; - this.mat4[15] = 0; - - return this; - }; - - /** - * sets the ortho matrix - * @method ortho - * @param {Number} left [description] - * @param {Number} right [description] - * @param {Number} bottom [description] - * @param {Number} top [description] - * @param {Number} near near clipping plane - * @param {Number} far far clipping plane - * @chainable - */ - p5.Matrix.prototype.ortho = function(left, right, bottom, top, near, far) { - var lr = 1 / (left - right), - bt = 1 / (bottom - top), - nf = 1 / (near - far); - this.mat4[0] = -2 * lr; - this.mat4[1] = 0; - this.mat4[2] = 0; - this.mat4[3] = 0; - this.mat4[4] = 0; - this.mat4[5] = -2 * bt; - this.mat4[6] = 0; - this.mat4[7] = 0; - this.mat4[8] = 0; - this.mat4[9] = 0; - this.mat4[10] = 2 * nf; - this.mat4[11] = 0; - this.mat4[12] = (left + right) * lr; - this.mat4[13] = (top + bottom) * bt; - this.mat4[14] = (far + near) * nf; - this.mat4[15] = 1; - - return this; - }; - - /** - * PRIVATE - */ - // matrix methods adapted from: - // https://developer.mozilla.org/en-US/docs/Web/WebGL/ - // gluPerspective - // - // function _makePerspective(fovy, aspect, znear, zfar){ - // var ymax = znear * Math.tan(fovy * Math.PI / 360.0); - // var ymin = -ymax; - // var xmin = ymin * aspect; - // var xmax = ymax * aspect; - // return _makeFrustum(xmin, xmax, ymin, ymax, znear, zfar); - // } - - //// - //// glFrustum - //// - //function _makeFrustum(left, right, bottom, top, znear, zfar){ - // var X = 2*znear/(right-left); - // var Y = 2*znear/(top-bottom); - // var A = (right+left)/(right-left); - // var B = (top+bottom)/(top-bottom); - // var C = -(zfar+znear)/(zfar-znear); - // var D = -2*zfar*znear/(zfar-znear); - // var frustrumMatrix =[ - // X, 0, A, 0, - // 0, Y, B, 0, - // 0, 0, C, D, - // 0, 0, -1, 0 - //]; - //return frustrumMatrix; - // } - - // function _setMVPMatrices(){ - ////an identity matrix - ////@TODO use the p5.Matrix class to abstract away our MV matrices and - ///other math - //var _mvMatrix = - //[ - // 1.0,0.0,0.0,0.0, - // 0.0,1.0,0.0,0.0, - // 0.0,0.0,1.0,0.0, - // 0.0,0.0,0.0,1.0 - //]; - - module.exports = p5.Matrix; - }, - { '../core/main': 24 } - ], - 73: [ - function(_dereq_, module, exports) { - /** - * Welcome to RendererGL Immediate Mode. - * Immediate mode is used for drawing custom shapes - * from a set of vertices. Immediate Mode is activated - * when you call beginShape() & de-activated when you call endShape(). - * Immediate mode is a style of programming borrowed - * from OpenGL's (now-deprecated) immediate mode. - * It differs from p5.js' default, Retained Mode, which caches - * geometries and buffers on the CPU to reduce the number of webgl - * draw calls. Retained mode is more efficient & performative, - * however, Immediate Mode is useful for sketching quick - * geometric ideas. - */ - 'use strict'; - - var p5 = _dereq_('../core/main'); - var constants = _dereq_('../core/constants'); - - /** - * Begin shape drawing. This is a helpful way of generating - * custom shapes quickly. However in WEBGL mode, application - * performance will likely drop as a result of too many calls to - * beginShape() / endShape(). As a high performance alternative, - * please use p5.js geometry primitives. - * @private - * @method beginShape - * @param {Number} mode webgl primitives mode. beginShape supports the - * following modes: - * POINTS,LINES,LINE_STRIP,LINE_LOOP,TRIANGLES, - * TRIANGLE_STRIP,and TRIANGLE_FAN. - * @chainable - */ - p5.RendererGL.prototype.beginShape = function(mode) { - //default shape mode is line_strip - this.immediateMode.shapeMode = mode !== undefined ? mode : constants.LINE_STRIP; - //if we haven't yet initialized our - //immediateMode vertices & buffers, create them now! - if (this.immediateMode.vertices === undefined) { - this.immediateMode.vertices = []; - this.immediateMode.edges = []; - this.immediateMode.lineVertices = []; - this.immediateMode.vertexColors = []; - this.immediateMode.lineNormals = []; - this.immediateMode.uvCoords = []; - this.immediateMode.vertexBuffer = this.GL.createBuffer(); - this.immediateMode.colorBuffer = this.GL.createBuffer(); - this.immediateMode.uvBuffer = this.GL.createBuffer(); - this.immediateMode.lineVertexBuffer = this.GL.createBuffer(); - this.immediateMode.lineNormalBuffer = this.GL.createBuffer(); - this.immediateMode.pointVertexBuffer = this.GL.createBuffer(); - this.immediateMode._bezierVertex = []; - this.immediateMode._quadraticVertex = []; - this.immediateMode._curveVertex = []; - this.immediateMode._isCoplanar = true; - this.immediateMode._testIfCoplanar = null; - } else { - this.immediateMode.vertices.length = 0; - this.immediateMode.edges.length = 0; - this.immediateMode.lineVertices.length = 0; - this.immediateMode.lineNormals.length = 0; - this.immediateMode.vertexColors.length = 0; - this.immediateMode.uvCoords.length = 0; - } - this.isImmediateDrawing = true; - return this; - }; - /** - * adds a vertex to be drawn in a custom Shape. - * @private - * @method vertex - * @param {Number} x x-coordinate of vertex - * @param {Number} y y-coordinate of vertex - * @param {Number} z z-coordinate of vertex - * @chainable - * @TODO implement handling of p5.Vector args - */ - p5.RendererGL.prototype.vertex = function(x, y) { - var z, u, v; - - // default to (x, y) mode: all other arugments assumed to be 0. - z = u = v = 0; - - if (arguments.length === 3) { - // (x, y, z) mode: (u, v) assumed to be 0. - z = arguments[2]; - } else if (arguments.length === 4) { - // (x, y, u, v) mode: z assumed to be 0. - u = arguments[2]; - v = arguments[3]; - } else if (arguments.length === 5) { - // (x, y, z, u, v) mode - z = arguments[2]; - u = arguments[3]; - v = arguments[4]; - } - if (this.immediateMode._testIfCoplanar == null) { - this.immediateMode._testIfCoplanar = z; - } else if (this.immediateMode._testIfCoplanar !== z) { - this.immediateMode._isCoplanar = false; - } - var vert = new p5.Vector(x, y, z); - this.immediateMode.vertices.push(vert); - var vertexColor = this.curFillColor || [0.5, 0.5, 0.5, 1.0]; - this.immediateMode.vertexColors.push( - vertexColor[0], - vertexColor[1], - vertexColor[2], - vertexColor[3] - ); - - if (this.textureMode === constants.IMAGE) { - if (this._tex !== null) { - if (this._tex.width > 0 && this._tex.height > 0) { - u /= this._tex.width; - v /= this._tex.height; - } - } else if (this._tex === null && arguments.length >= 4) { - // Only throw this warning if custom uv's have been provided - console.warn( - 'You must first call texture() before using' + - ' vertex() with image based u and v coordinates' - ); - } - } - - this.immediateMode.uvCoords.push(u, v); - - this.immediateMode._bezierVertex[0] = x; - this.immediateMode._bezierVertex[1] = y; - this.immediateMode._bezierVertex[2] = z; - - this.immediateMode._quadraticVertex[0] = x; - this.immediateMode._quadraticVertex[1] = y; - this.immediateMode._quadraticVertex[2] = z; - - return this; - }; - - /** - * End shape drawing and render vertices to screen. - * @chainable - */ - p5.RendererGL.prototype.endShape = function( - mode, - isCurve, - isBezier, - isQuadratic, - isContour, - shapeKind - ) { - if (this.immediateMode.shapeMode === constants.POINTS) { - this._drawPoints( - this.immediateMode.vertices, - this.immediateMode.pointVertexBuffer - ); - } else if (this.immediateMode.vertices.length > 1) { - if (this._doStroke && this.drawMode !== constants.TEXTURE) { - if (this.immediateMode.shapeMode === constants.TRIANGLE_STRIP) { - var i; - for (i = 0; i < this.immediateMode.vertices.length - 2; i++) { - this.immediateMode.edges.push([i, i + 1]); - this.immediateMode.edges.push([i, i + 2]); - } - this.immediateMode.edges.push([i, i + 1]); - } else if (this.immediateMode.shapeMode === constants.TRIANGLES) { - for (i = 0; i < this.immediateMode.vertices.length - 2; i = i + 3) { - this.immediateMode.edges.push([i, i + 1]); - this.immediateMode.edges.push([i + 1, i + 2]); - this.immediateMode.edges.push([i + 2, i]); - } - } else if (this.immediateMode.shapeMode === constants.LINES) { - for (i = 0; i < this.immediateMode.vertices.length - 1; i = i + 2) { - this.immediateMode.edges.push([i, i + 1]); - } - } else { - for (i = 0; i < this.immediateMode.vertices.length - 1; i++) { - this.immediateMode.edges.push([i, i + 1]); - } - } - if (mode === constants.CLOSE) { - this.immediateMode.edges.push([ - this.immediateMode.vertices.length - 1, - 0 - ]); - } - - p5.Geometry.prototype._edgesToVertices.call(this.immediateMode); - this._drawStrokeImmediateMode(); - } - - if (this._doFill && this.immediateMode.shapeMode !== constants.LINES) { - if ( - this.isBezier || - this.isQuadratic || - this.isCurve || - (this.immediateMode.shapeMode === constants.LINE_STRIP && - this.drawMode === constants.FILL && - this.immediateMode._isCoplanar === true) - ) { - this.immediateMode.shapeMode = constants.TRIANGLES; - var contours = [ - new Float32Array(this._vToNArray(this.immediateMode.vertices)) - ]; - - var polyTriangles = this._triangulate(contours); - this.immediateMode.vertices = []; - for ( - var j = 0, polyTriLength = polyTriangles.length; - j < polyTriLength; - j = j + 3 - ) { - this.vertex( - polyTriangles[j], - polyTriangles[j + 1], - polyTriangles[j + 2] - ); - } - } - if (this.immediateMode.vertices.length > 0) { - this._drawFillImmediateMode( - mode, - isCurve, - isBezier, - isQuadratic, - isContour, - shapeKind - ); - } - } - } - //clear out our vertexPositions & colors arrays - //after rendering - this.immediateMode.vertices.length = 0; - this.immediateMode.vertexColors.length = 0; - this.immediateMode.uvCoords.length = 0; - this.isImmediateDrawing = false; - this.isBezier = false; - this.isQuadratic = false; - this.isCurve = false; - this.immediateMode._bezierVertex.length = 0; - this.immediateMode._quadraticVertex.length = 0; - this.immediateMode._curveVertex.length = 0; - this.immediateMode._isCoplanar = true; - this.immediateMode._testIfCoplanar = null; - - return this; - }; - - p5.RendererGL.prototype._drawFillImmediateMode = function( - mode, - isCurve, - isBezier, - isQuadratic, - isContour, - shapeKind - ) { - var gl = this.GL; - var shader = this._getImmediateFillShader(); - this._setFillUniforms(shader); - - // initialize the fill shader's 'aPosition' buffer - if (shader.attributes.aPosition) { - //vertex position Attribute - this._bindBuffer( - this.immediateMode.vertexBuffer, - gl.ARRAY_BUFFER, - this._vToNArray(this.immediateMode.vertices), - Float32Array, - gl.DYNAMIC_DRAW - ); - - shader.enableAttrib(shader.attributes.aPosition, 3); - } - - // initialize the fill shader's 'aVertexColor' buffer - if (this.drawMode === constants.FILL && shader.attributes.aVertexColor) { - this._bindBuffer( - this.immediateMode.colorBuffer, - gl.ARRAY_BUFFER, - this.immediateMode.vertexColors, - Float32Array, - gl.DYNAMIC_DRAW - ); - - shader.enableAttrib(shader.attributes.aVertexColor, 4); - } - - // initialize the fill shader's 'aTexCoord' buffer - if (this.drawMode === constants.TEXTURE && shader.attributes.aTexCoord) { - //texture coordinate Attribute - this._bindBuffer( - this.immediateMode.uvBuffer, - gl.ARRAY_BUFFER, - this.immediateMode.uvCoords, - Float32Array, - gl.DYNAMIC_DRAW - ); - - shader.enableAttrib(shader.attributes.aTexCoord, 2); - } - - //if (true || mode) { - if (this.drawMode === constants.FILL || this.drawMode === constants.TEXTURE) { - switch (this.immediateMode.shapeMode) { - case constants.LINE_STRIP: - case constants.LINES: - this.immediateMode.shapeMode = constants.TRIANGLE_FAN; - break; - } - } else { - switch (this.immediateMode.shapeMode) { - case constants.LINE_STRIP: - case constants.LINES: - this.immediateMode.shapeMode = constants.LINE_LOOP; - break; - } - } - //} - //QUADS & QUAD_STRIP are not supported primitives modes - //in webgl. - if ( - this.immediateMode.shapeMode === constants.QUADS || - this.immediateMode.shapeMode === constants.QUAD_STRIP - ) { - throw new Error( - 'sorry, ' + - this.immediateMode.shapeMode + - ' not yet implemented in webgl mode.' - ); - } else { - this._applyColorBlend(this.curFillColor); - gl.enable(gl.BLEND); - gl.drawArrays( - this.immediateMode.shapeMode, - 0, - this.immediateMode.vertices.length - ); - - this._pixelsState._pixelsDirty = true; - } - // todo / optimizations? leave bound until another shader is set? - shader.unbindShader(); - }; - - p5.RendererGL.prototype._drawStrokeImmediateMode = function() { - var gl = this.GL; - var shader = this._getImmediateStrokeShader(); - this._setStrokeUniforms(shader); - - // initialize the stroke shader's 'aPosition' buffer - if (shader.attributes.aPosition) { - this._bindBuffer( - this.immediateMode.lineVertexBuffer, - gl.ARRAY_BUFFER, - this._flatten(this.immediateMode.lineVertices), - Float32Array, - gl.STATIC_DRAW - ); - - shader.enableAttrib(shader.attributes.aPosition, 3); - } - - // initialize the stroke shader's 'aDirection' buffer - if (shader.attributes.aDirection) { - this._bindBuffer( - this.immediateMode.lineNormalBuffer, - gl.ARRAY_BUFFER, - this._flatten(this.immediateMode.lineNormals), - Float32Array, - gl.STATIC_DRAW - ); - - shader.enableAttrib(shader.attributes.aDirection, 4); - } - - this._applyColorBlend(this.curStrokeColor); - gl.drawArrays(gl.TRIANGLES, 0, this.immediateMode.lineVertices.length); - - this._pixelsState._pixelsDirty = true; - - shader.unbindShader(); - }; - - module.exports = p5.RendererGL; - }, - { '../core/constants': 18, '../core/main': 24 } - ], - 74: [ - function(_dereq_, module, exports) { - //Retained Mode. The default mode for rendering 3D primitives - //in WEBGL. - 'use strict'; - - var p5 = _dereq_('../core/main'); - _dereq_('./p5.RendererGL'); - - // a render buffer definition - function BufferDef(size, src, dst, attr, map) { - this.size = size; // the number of FLOATs in each vertex - this.src = src; // the name of the model's source array - this.dst = dst; // the name of the geometry's buffer - this.attr = attr; // the name of the vertex attribute - this.map = map; // optional, a transformation function to apply to src - } - - var _flatten = p5.RendererGL.prototype._flatten; - var _vToNArray = p5.RendererGL.prototype._vToNArray; - - var strokeBuffers = [ - new BufferDef(3, 'lineVertices', 'lineVertexBuffer', 'aPosition', _flatten), - new BufferDef(4, 'lineNormals', 'lineNormalBuffer', 'aDirection', _flatten) - ]; - - var fillBuffers = [ - new BufferDef(3, 'vertices', 'vertexBuffer', 'aPosition', _vToNArray), - new BufferDef(3, 'vertexNormals', 'normalBuffer', 'aNormal', _vToNArray), - new BufferDef(4, 'vertexColors', 'colorBuffer', 'aMaterialColor'), - new BufferDef(3, 'vertexAmbients', 'ambientBuffer', 'aAmbientColor'), - //new BufferDef(3, 'vertexSpeculars', 'specularBuffer', 'aSpecularColor'), - new BufferDef(2, 'uvs', 'uvBuffer', 'aTexCoord', _flatten) - ]; - - p5.RendererGL._textBuffers = [ - new BufferDef(3, 'vertices', 'vertexBuffer', 'aPosition', _vToNArray), - new BufferDef(2, 'uvs', 'uvBuffer', 'aTexCoord', _flatten) - ]; - - var hashCount = 0; - /** - * _initBufferDefaults - * @private - * @description initializes buffer defaults. runs each time a new geometry is - * registered - * @param {String} gId key of the geometry object - * @returns {Object} a new buffer object - */ - p5.RendererGL.prototype._initBufferDefaults = function(gId) { - this._freeBuffers(gId); - - //@TODO remove this limit on hashes in gHash - hashCount++; - if (hashCount > 1000) { - var key = Object.keys(this.gHash)[0]; - delete this.gHash[key]; - hashCount--; - } - - //create a new entry in our gHash - return (this.gHash[gId] = {}); - }; - - p5.RendererGL.prototype._freeBuffers = function(gId) { - var buffers = this.gHash[gId]; - if (!buffers) { - return; - } - - delete this.gHash[gId]; - hashCount--; - - var gl = this.GL; - if (buffers.indexBuffer) { - gl.deleteBuffer(buffers.indexBuffer); - } - - function freeBuffers(defs) { - for (var i = 0; i < defs.length; i++) { - var def = defs[i]; - if (buffers[def.dst]) { - gl.deleteBuffer(buffers[def.dst]); - buffers[def.dst] = null; - } - } - } - - // free all the buffers - freeBuffers(strokeBuffers); - freeBuffers(fillBuffers); - }; - - p5.RendererGL.prototype._prepareBuffers = function(buffers, shader, defs) { - var model = buffers.model; - var attributes = shader.attributes; - var gl = this.GL; - - // loop through each of the buffer definitions - for (var i = 0; i < defs.length; i++) { - var def = defs[i]; - - var attr = attributes[def.attr]; - if (!attr) continue; - - var buffer = buffers[def.dst]; - - // check if the model has the appropriate source array - var src = model[def.src]; - if (src) { - // check if we need to create the GL buffer - var createBuffer = !buffer; - if (createBuffer) { - // create and remember the buffer - buffers[def.dst] = buffer = gl.createBuffer(); - } - // bind the buffer - gl.bindBuffer(gl.ARRAY_BUFFER, buffer); - - // check if we need to fill the buffer with data - if (createBuffer || model.dirtyFlags[def.src] !== false) { - var map = def.map; - // get the values from the model, possibly transformed - var values = map ? map(src) : src; - - // fill the buffer with the values - this._bindBuffer(buffer, gl.ARRAY_BUFFER, values); - - // mark the model's source array as clean - model.dirtyFlags[def.src] = false; - } - // enable the attribute - shader.enableAttrib(attr, def.size); - } else { - if (buffer) { - // remove the unused buffer - gl.deleteBuffer(buffer); - buffers[def.dst] = null; - } - // disable the vertex - gl.disableVertexAttribArray(attr.index); - } - } - }; - - /** - * creates a buffers object that holds the WebGL render buffers - * for a geometry. - * @private - * @param {String} gId key of the geometry object - * @param {p5.Geometry} model contains geometry data - */ - p5.RendererGL.prototype.createBuffers = function(gId, model) { - var gl = this.GL; - //initialize the gl buffers for our geom groups - var buffers = this._initBufferDefaults(gId); - buffers.model = model; - - var indexBuffer = buffers.indexBuffer; - - if (model.faces.length) { - // allocate space for faces - if (!indexBuffer) indexBuffer = buffers.indexBuffer = gl.createBuffer(); - var vals = p5.RendererGL.prototype._flatten(model.faces); - this._bindBuffer(indexBuffer, gl.ELEMENT_ARRAY_BUFFER, vals, Uint16Array); - - // the vertex count is based on the number of faces - buffers.vertexCount = model.faces.length * 3; - } else { - // the index buffer is unused, remove it - if (indexBuffer) { - gl.deleteBuffer(indexBuffer); - buffers.indexBuffer = null; - } - // the vertex count comes directly from the model - buffers.vertexCount = model.vertices ? model.vertices.length : 0; - } - - buffers.lineVertexCount = model.lineVertices ? model.lineVertices.length : 0; - - return buffers; - }; - - /** - * Draws buffers given a geometry key ID - * @private - * @param {String} gId ID in our geom hash - * @chainable - */ - p5.RendererGL.prototype.drawBuffers = function(gId) { - var gl = this.GL; - var buffers = this.gHash[gId]; - - if (this._doStroke && buffers.lineVertexCount > 0) { - var strokeShader = this._getRetainedStrokeShader(); - this._setStrokeUniforms(strokeShader); - this._prepareBuffers(buffers, strokeShader, strokeBuffers); - this._applyColorBlend(this.curStrokeColor); - this._drawArrays(gl.TRIANGLES, gId); - strokeShader.unbindShader(); - } - - if (this._doFill) { - var fillShader = this._getRetainedFillShader(); - this._setFillUniforms(fillShader); - this._prepareBuffers(buffers, fillShader, fillBuffers); - if (buffers.indexBuffer) { - //vertex index buffer - this._bindBuffer(buffers.indexBuffer, gl.ELEMENT_ARRAY_BUFFER); - } - this._applyColorBlend(this.curFillColor); - this._drawElements(gl.TRIANGLES, gId); - fillShader.unbindShader(); - } - return this; - }; - - /** - * Calls drawBuffers() with a scaled model/view matrix. - * - * This is used by various 3d primitive methods (in primitives.js, eg. plane, - * box, torus, etc...) to allow caching of un-scaled geometries. Those - * geometries are generally created with unit-length dimensions, cached as - * such, and then scaled appropriately in this method prior to rendering. - * - * @private - * @method drawBuffersScaled - * @param {String} gId ID in our geom hash - * @param {Number} scaleX the amount to scale in the X direction - * @param {Number} scaleY the amount to scale in the Y direction - * @param {Number} scaleZ the amount to scale in the Z direction - */ - p5.RendererGL.prototype.drawBuffersScaled = function( - gId, - scaleX, - scaleY, - scaleZ - ) { - var uMVMatrix = this.uMVMatrix.copy(); - try { - this.uMVMatrix.scale(scaleX, scaleY, scaleZ); - this.drawBuffers(gId); - } finally { - this.uMVMatrix = uMVMatrix; - } - }; - - p5.RendererGL.prototype._drawArrays = function(drawMode, gId) { - this.GL.drawArrays(drawMode, 0, this.gHash[gId].lineVertexCount); - this._pixelsState._pixelsDirty = true; - return this; - }; - - p5.RendererGL.prototype._drawElements = function(drawMode, gId) { - var buffers = this.gHash[gId]; - var gl = this.GL; - // render the fill - if (buffers.indexBuffer) { - // we're drawing faces - gl.drawElements(gl.TRIANGLES, buffers.vertexCount, gl.UNSIGNED_SHORT, 0); - } else { - // drawing vertices - gl.drawArrays(drawMode || gl.TRIANGLES, 0, buffers.vertexCount); - } - this._pixelsState._pixelsDirty = true; - }; - - p5.RendererGL.prototype._drawPoints = function(vertices, vertexBuffer) { - var gl = this.GL; - var pointShader = this._getImmediatePointShader(); - this._setPointUniforms(pointShader); - - this._bindBuffer( - vertexBuffer, - gl.ARRAY_BUFFER, - this._vToNArray(vertices), - Float32Array, - gl.STATIC_DRAW - ); - - pointShader.enableAttrib(pointShader.attributes.aPosition, 3); - - gl.drawArrays(gl.Points, 0, vertices.length); - - pointShader.unbindShader(); - this._pixelsState._pixelsDirty = true; - }; - - module.exports = p5.RendererGL; - }, - { '../core/main': 24, './p5.RendererGL': 75 } - ], - 75: [ - function(_dereq_, module, exports) { - 'use strict'; - - var p5 = _dereq_('../core/main'); - var constants = _dereq_('../core/constants'); - var libtess = _dereq_('libtess'); - _dereq_('./p5.Shader'); - _dereq_('./p5.Camera'); - _dereq_('../core/p5.Renderer'); - _dereq_('./p5.Matrix'); - - var lightingShader = - 'precision mediump float;\n\nuniform mat4 uViewMatrix;\n\nuniform bool uUseLighting;\n\nuniform int uAmbientLightCount;\nuniform vec3 uAmbientColor[8];\n\nuniform int uDirectionalLightCount;\nuniform vec3 uLightingDirection[8];\nuniform vec3 uDirectionalColor[8];\n\nuniform int uPointLightCount;\nuniform vec3 uPointLightLocation[8];\nuniform vec3 uPointLightColor[8];\n\nuniform bool uSpecular;\nuniform float uShininess;\n\nuniform float uConstantAttenuation;\nuniform float uLinearAttenuation;\nuniform float uQuadraticAttenuation;\n\nconst float specularFactor = 2.0;\nconst float diffuseFactor = 0.73;\n\nstruct LightResult {\n float specular;\n float diffuse;\n};\n\nfloat _phongSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float shininess) {\n\n vec3 R = reflect(lightDirection, surfaceNormal);\n return pow(max(0.0, dot(R, viewDirection)), shininess);\n}\n\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\n return max(0.0, dot(-lightDirection, surfaceNormal));\n}\n\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\n\n vec3 lightDir = normalize(lightVector);\n\n //compute our diffuse & specular terms\n LightResult lr;\n if (uSpecular)\n lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\n lr.diffuse = _lambertDiffuse(lightDir, normal);\n return lr;\n}\n\nvoid totalLight(\n vec3 modelPosition,\n vec3 normal,\n out vec3 totalDiffuse,\n out vec3 totalSpecular\n) {\n\n totalSpecular = vec3(0.0);\n\n if (!uUseLighting) {\n totalDiffuse = vec3(1.0);\n return;\n }\n\n totalDiffuse = vec3(0.0);\n\n vec3 viewDirection = normalize(-modelPosition);\n\n for (int j = 0; j < 8; j++) {\n if (j < uDirectionalLightCount) {\n vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\n vec3 lightColor = uDirectionalColor[j];\n LightResult result = _light(viewDirection, normal, lightVector);\n totalDiffuse += result.diffuse * lightColor;\n totalSpecular += result.specular * lightColor;\n }\n\n if (j < uPointLightCount) {\n vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\n vec3 lightVector = modelPosition - lightPosition;\n \n //calculate attenuation\n float lightDistance = length(lightVector);\n float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\n vec3 lightColor = lightFalloff * uPointLightColor[j];\n\n LightResult result = _light(viewDirection, normal, lightVector);\n totalDiffuse += result.diffuse * lightColor;\n totalSpecular += result.specular * lightColor;\n }\n }\n\n totalDiffuse *= diffuseFactor;\n totalSpecular *= specularFactor;\n}\n'; - - var defaultShaders = { - immediateVert: - 'attribute vec3 aPosition;\nattribute vec4 aVertexColor;\n\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nuniform float uResolution;\nuniform float uPointSize;\n\nvarying vec4 vColor;\nvoid main(void) {\n vec4 positionVec4 = vec4(aPosition, 1.0);\n gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\n vColor = aVertexColor;\n gl_PointSize = uPointSize;\n}\n', - vertexColorVert: - 'attribute vec3 aPosition;\nattribute vec4 aVertexColor;\n\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\n\nvarying vec4 vColor;\n\nvoid main(void) {\n vec4 positionVec4 = vec4(aPosition, 1.0);\n gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\n vColor = aVertexColor;\n}\n', - vertexColorFrag: - 'precision mediump float;\nvarying vec4 vColor;\nvoid main(void) {\n gl_FragColor = vColor;\n}', - normalVert: - 'attribute vec3 aPosition;\nattribute vec3 aNormal;\nattribute vec2 aTexCoord;\n\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nuniform mat3 uNormalMatrix;\n\nvarying vec3 vVertexNormal;\nvarying highp vec2 vVertTexCoord;\n\nvoid main(void) {\n vec4 positionVec4 = vec4(aPosition, 1.0);\n gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\n vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\n vVertTexCoord = aTexCoord;\n}\n', - normalFrag: - 'precision mediump float;\nvarying vec3 vVertexNormal;\nvoid main(void) {\n gl_FragColor = vec4(vVertexNormal, 1.0);\n}', - basicFrag: - 'precision mediump float;\nuniform vec4 uMaterialColor;\nvoid main(void) {\n gl_FragColor = uMaterialColor;\n}', - lightVert: - lightingShader + - '// include lighting.glgl\n\nattribute vec3 aPosition;\nattribute vec3 aNormal;\nattribute vec2 aTexCoord;\n\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nuniform mat3 uNormalMatrix;\n\nvarying highp vec2 vVertTexCoord;\nvarying vec3 vDiffuseColor;\nvarying vec3 vSpecularColor;\n\nvoid main(void) {\n\n vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\n gl_Position = uProjectionMatrix * viewModelPosition;\n\n vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\n vVertTexCoord = aTexCoord;\n\n totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\n\n for (int i = 0; i < 8; i++) {\n if (i < uAmbientLightCount) {\n vDiffuseColor += uAmbientColor[i];\n }\n }\n}\n', - lightTextureFrag: - 'precision mediump float;\n\nuniform vec4 uMaterialColor;\nuniform vec4 uTint;\nuniform sampler2D uSampler;\nuniform bool isTexture;\n\nvarying highp vec2 vVertTexCoord;\nvarying vec3 vDiffuseColor;\nvarying vec3 vSpecularColor;\n\nvoid main(void) {\n gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\n gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\n}', - phongVert: - 'precision mediump float;\nprecision mediump int;\n\nattribute vec3 aPosition;\nattribute vec3 aNormal;\nattribute vec2 aTexCoord;\n\nuniform vec3 uAmbientColor[8];\n\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nuniform mat3 uNormalMatrix;\nuniform int uAmbientLightCount;\n\nvarying vec3 vNormal;\nvarying vec2 vTexCoord;\nvarying vec3 vViewPosition;\nvarying vec3 vAmbientColor;\n\nvoid main(void) {\n\n vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\n\n // Pass varyings to fragment shader\n vViewPosition = viewModelPosition.xyz;\n gl_Position = uProjectionMatrix * viewModelPosition; \n\n vNormal = uNormalMatrix * aNormal;\n vTexCoord = aTexCoord;\n\n // TODO: this should be a uniform\n vAmbientColor = vec3(0.0);\n for (int i = 0; i < 8; i++) {\n if (i < uAmbientLightCount) {\n vAmbientColor += uAmbientColor[i];\n }\n }\n}\n', - phongFrag: - lightingShader + - '// include lighting.glgl\n\nuniform vec4 uMaterialColor;\nuniform sampler2D uSampler;\nuniform bool isTexture;\n\nvarying vec3 vNormal;\nvarying vec2 vTexCoord;\nvarying vec3 vViewPosition;\nvarying vec3 vAmbientColor;\n\nvoid main(void) {\n\n vec3 diffuse;\n vec3 specular;\n totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\n\n gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\n gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\n}', - fontVert: - "precision mediump float;\n\nattribute vec3 aPosition;\nattribute vec2 aTexCoord;\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\n\nuniform vec4 uGlyphRect;\nuniform float uGlyphOffset;\n\nvarying vec2 vTexCoord;\nvarying float w;\n\nvoid main() {\n vec4 positionVec4 = vec4(aPosition, 1.0);\n\n // scale by the size of the glyph's rectangle\n positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\n\n // move to the corner of the glyph\n positionVec4.xy += uGlyphRect.xy;\n\n // move to the letter's line offset\n positionVec4.x += uGlyphOffset;\n \n gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\n vTexCoord = aTexCoord;\n w = gl_Position.w;\n}\n", - fontFrag: - "#extension GL_OES_standard_derivatives : enable\nprecision mediump float;\n\n#if 0\n // simulate integer math using floats\n\t#define int float\n\t#define ivec2 vec2\n\t#define INT(x) float(x)\n\n\tint ifloor(float v) { return floor(v); }\n\tivec2 ifloor(vec2 v) { return floor(v); }\n\n#else\n // use native integer math\n\tprecision highp int;\n\t#define INT(x) x\n\n\tint ifloor(float v) { return int(v); }\n\tint ifloor(int v) { return v; }\n\tivec2 ifloor(vec2 v) { return ivec2(v); }\n\n#endif\n\nuniform sampler2D uSamplerStrokes;\nuniform sampler2D uSamplerRowStrokes;\nuniform sampler2D uSamplerRows;\nuniform sampler2D uSamplerColStrokes;\nuniform sampler2D uSamplerCols;\n\nuniform ivec2 uStrokeImageSize;\nuniform ivec2 uCellsImageSize;\nuniform ivec2 uGridImageSize;\n\nuniform ivec2 uGridOffset;\nuniform ivec2 uGridSize;\nuniform vec4 uMaterialColor;\n\nvarying vec2 vTexCoord;\n\n// some helper functions\nint round(float v) { return ifloor(v + 0.5); }\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\n\nint mul(float v1, int v2) {\n return ifloor(v1 * float(v2));\n}\n\nivec2 mul(vec2 v1, ivec2 v2) {\n return ifloor(v1 * vec2(v2) + 0.5);\n}\n\n// unpack a 16-bit integer from a float vec2\nint getInt16(vec2 v) {\n ivec2 iv = round(v * 255.0);\n return iv.x * INT(128) + iv.y;\n}\n\nvec2 pixelScale;\nvec2 coverage = vec2(0.0);\nvec2 weight = vec2(0.5);\nconst float minDistance = 1.0/8192.0;\nconst float hardness = 1.05; // amount of antialias\n\n// the maximum number of curves in a glyph\nconst int N = INT(250);\n\n// retrieves an indexed pixel from a sampler\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\n int width = size.x;\n int y = ifloor(pos / width);\n int x = pos - y * width; // pos % width\n\n return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\n}\n\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\n\n // get the coefficients of the quadratic in t\n vec2 a = p0 - p1 * 2.0 + p2;\n vec2 b = p0 - p1;\n vec2 c = p0 - vTexCoord;\n\n // found out which values of 't' it crosses the axes\n vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\n vec2 t1 = ((b - surd) / a).yx;\n vec2 t2 = ((b + surd) / a).yx;\n\n // approximate straight lines to avoid rounding errors\n if (abs(a.y) < 0.001)\n t1.x = t2.x = c.y / (2.0 * b.y);\n\n if (abs(a.x) < 0.001)\n t1.y = t2.y = c.x / (2.0 * b.x);\n\n // plug into quadratic formula to find the corrdinates of the crossings\n C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\n C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\n}\n\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\n\n vec2 C1, C2;\n calulateCrossings(p0, p1, p2, C1, C2);\n\n // determine on which side of the x-axis the points lie\n bool y0 = p0.y > vTexCoord.y;\n bool y1 = p1.y > vTexCoord.y;\n bool y2 = p2.y > vTexCoord.y;\n\n // could web be under the curve (after t1)?\n if (y1 ? !y2 : y0) {\n // add the coverage for t1\n coverage.x += saturate(C1.x + 0.5);\n // calculate the anti-aliasing for t1\n weight.x = min(weight.x, abs(C1.x));\n }\n\n // are we outside the curve (after t2)?\n if (y1 ? !y0 : y2) {\n // subtract the coverage for t2\n coverage.x -= saturate(C2.x + 0.5);\n // calculate the anti-aliasing for t2\n weight.x = min(weight.x, abs(C2.x));\n }\n}\n\n// this is essentially the same as coverageX, but with the axes swapped\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\n\n vec2 C1, C2;\n calulateCrossings(p0, p1, p2, C1, C2);\n\n bool x0 = p0.x > vTexCoord.x;\n bool x1 = p1.x > vTexCoord.x;\n bool x2 = p2.x > vTexCoord.x;\n\n if (x1 ? !x2 : x0) {\n coverage.y -= saturate(C1.y + 0.5);\n weight.y = min(weight.y, abs(C1.y));\n }\n\n if (x1 ? !x0 : x2) {\n coverage.y += saturate(C2.y + 0.5);\n weight.y = min(weight.y, abs(C2.y));\n }\n}\n\nvoid main() {\n\n // calculate the pixel scale based on screen-coordinates\n pixelScale = hardness / fwidth(vTexCoord);\n\n // which grid cell is this pixel in?\n ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\n\n // intersect curves in this row\n {\n // the index into the row info bitmap\n int rowIndex = gridCoord.y + uGridOffset.y;\n // fetch the info texel\n vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\n // unpack the rowInfo\n int rowStrokeIndex = getInt16(rowInfo.xy);\n int rowStrokeCount = getInt16(rowInfo.zw);\n\n for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\n if (iRowStroke >= rowStrokeCount)\n break;\n\n // each stroke is made up of 3 points: the start and control point\n // and the start of the next curve.\n // fetch the indices of this pair of strokes:\n vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\n\n // unpack the stroke index\n int strokePos = getInt16(strokeIndices.xy);\n\n // fetch the two strokes\n vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\n vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\n\n // calculate the coverage\n coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\n }\n }\n\n // intersect curves in this column\n {\n int colIndex = gridCoord.x + uGridOffset.x;\n vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\n int colStrokeIndex = getInt16(colInfo.xy);\n int colStrokeCount = getInt16(colInfo.zw);\n \n for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\n if (iColStroke >= colStrokeCount)\n break;\n\n vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\n\n int strokePos = getInt16(strokeIndices.xy);\n vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\n vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\n coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\n }\n }\n\n weight = saturate(1.0 - weight * 2.0);\n float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\n float antialias = abs(dot(coverage, weight) / distance);\n float cover = min(abs(coverage.x), abs(coverage.y));\n gl_FragColor = uMaterialColor;\n gl_FragColor.a *= saturate(max(antialias, cover));\n}", - lineVert: - "/*\n Part of the Processing project - http://processing.org\n Copyright (c) 2012-15 The Processing Foundation\n Copyright (c) 2004-12 Ben Fry and Casey Reas\n Copyright (c) 2001-04 Massachusetts Institute of Technology\n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation, version 2.1.\n This library is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n You should have received a copy of the GNU Lesser General\n Public License along with this library; if not, write to the\n Free Software Foundation, Inc., 59 Temple Place, Suite 330,\n Boston, MA 02111-1307 USA\n*/\n\n#define PROCESSING_LINE_SHADER\n\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nuniform float uStrokeWeight;\n\nuniform vec4 uViewport;\n\nattribute vec4 aPosition;\nattribute vec4 aDirection;\n \nvoid main() {\n // using a scale <1 moves the lines towards the camera\n // in order to prevent popping effects due to half of\n // the line disappearing behind the geometry faces.\n vec3 scale = vec3(0.9995);\n\n vec4 posp = uModelViewMatrix * aPosition;\n vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\n\n // Moving vertices slightly toward the camera\n // to avoid depth-fighting with the fill triangles.\n // Discussed here:\n // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848 \n posp.xyz = posp.xyz * scale;\n posq.xyz = posq.xyz * scale;\n\n vec4 p = uProjectionMatrix * posp;\n vec4 q = uProjectionMatrix * posq;\n\n // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\n // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\n\n // prevent division by W by transforming the tangent formula (div by 0 causes\n // the line to disappear, see https://github.com/processing/processing/issues/5183)\n // t = screen_q - screen_p\n //\n // tangent is normalized and we don't care which aDirection it points to (+-)\n // t = +- normalize( screen_q - screen_p )\n // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\n //\n // extract common factor, <1,1> - <1,1> cancels out\n // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\n //\n // convert to common divisor\n // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\n //\n // remove the common scalar divisor/factor, not needed due to normalize and +-\n // (keep uViewport - can't remove because it has different components for x and y\n // and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\n // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\n\n vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\n\n // flip tangent to normal (it's already normalized)\n vec2 normal = vec2(-tangent.y, tangent.x);\n\n float thickness = aDirection.w * uStrokeWeight;\n vec2 offset = normal * thickness / 2.0;\n\n // Perspective ---\n // convert from world to clip by multiplying with projection scaling factor\n // to get the right thickness (see https://github.com/processing/processing/issues/5182)\n // invert Y, projections in Processing invert Y\n vec2 perspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\n\n // No Perspective ---\n // multiply by W (to cancel out division by W later in the pipeline) and\n // convert from screen to clip (derived from clip to screen above)\n vec2 noPerspScale = p.w / (0.5 * uViewport.zw);\n\n //gl_Position.xy = p.xy + offset.xy * mix(noPerspScale, perspScale, float(perspective > 0));\n gl_Position.xy = p.xy + offset.xy * perspScale;\n gl_Position.zw = p.zw;\n}\n", - lineFrag: - 'precision mediump float;\nprecision mediump int;\n\nuniform vec4 uMaterialColor;\n\nvoid main() {\n gl_FragColor = uMaterialColor;\n}', - pointVert: - 'attribute vec3 aPosition;\nuniform float uPointSize;\nvarying float vStrokeWeight;\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nvoid main() {\n\tvec4 positionVec4 = vec4(aPosition, 1.0);\n\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\n\tgl_PointSize = uPointSize;\n\tvStrokeWeight = uPointSize;\n}', - pointFrag: - 'precision mediump float;\nprecision mediump int;\nuniform vec4 uMaterialColor;\nvarying float vStrokeWeight;\n\nvoid main(){\n\tfloat mask = 0.0;\n\n\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\n // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\n\n\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\n\n\t// if strokeWeight is 1 or less lets just draw a square\n\t// this prevents weird artifacting from carving circles when our points are really small\n\t// if strokeWeight is larger than 1, we just use it as is\n\n\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\n\n\t// throw away the borders of the mask\n // otherwise we get weird alpha blending issues\n\n\tif(mask > 0.98){\n discard;\n \t}\n\n \tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\n}' - }; - - /** - * 3D graphics class - * @private - * @class p5.RendererGL - * @constructor - * @extends p5.Renderer - * @todo extend class to include public method for offscreen - * rendering (FBO). - * - */ - p5.RendererGL = function(elt, pInst, isMainCanvas, attr) { - p5.Renderer.call(this, elt, pInst, isMainCanvas); - this._setAttributeDefaults(pInst); - this._initContext(); - this.isP3D = true; //lets us know we're in 3d mode - this.GL = this.drawingContext; - - // lights - this._enableLighting = false; - - this.ambientLightColors = []; - this.directionalLightDirections = []; - this.directionalLightColors = []; - - this.pointLightPositions = []; - this.pointLightColors = []; - - this.drawMode = constants.FILL; - this.curFillColor = [1, 1, 1, 1]; - this.curStrokeColor = [0, 0, 0, 1]; - this.curBlendMode = constants.BLEND; - this.blendExt = this.GL.getExtension('EXT_blend_minmax'); - - this._useSpecularMaterial = false; - this._useNormalMaterial = false; - this._useShininess = 1; - - this._tint = [255, 255, 255, 255]; - - // lightFalloff variables - this.constantAttenuation = 1; - this.linearAttenuation = 0; - this.quadraticAttenuation = 0; - - /** - * model view, projection, & normal - * matrices - */ - this.uMVMatrix = new p5.Matrix(); - this.uPMatrix = new p5.Matrix(); - this.uNMatrix = new p5.Matrix('mat3'); - - // Camera - this._curCamera = new p5.Camera(this); - this._curCamera._computeCameraDefaultSettings(); - this._curCamera._setDefaultCamera(); - - //Geometry & Material hashes - this.gHash = {}; - - this._defaultLightShader = undefined; - this._defaultImmediateModeShader = undefined; - this._defaultNormalShader = undefined; - this._defaultColorShader = undefined; - this._defaultPointShader = undefined; - - this._pointVertexBuffer = this.GL.createBuffer(); - - this.userFillShader = undefined; - this.userStrokeShader = undefined; - this.userPointShader = undefined; - - //Imediate Mode - //default drawing is done in Retained Mode - this.isImmediateDrawing = false; - this.immediateMode = {}; - - this.pointSize = 5.0; //default point size - this.curStrokeWeight = 1; - - // array of textures created in this gl context via this.getTexture(src) - this.textures = []; - - this.textureMode = constants.IMAGE; - // default wrap settings - this.textureWrapX = constants.CLAMP; - this.textureWrapY = constants.CLAMP; - this._tex = null; - this._curveTightness = 6; - - // lookUpTable for coefficients needed to be calculated for bezierVertex, same are used for curveVertex - this._lookUpTableBezier = []; - // lookUpTable for coefficients needed to be calculated for quadraticVertex - this._lookUpTableQuadratic = []; - - // current curveDetail in the Bezier lookUpTable - this._lutBezierDetail = 0; - // current curveDetail in the Quadratic lookUpTable - this._lutQuadraticDetail = 0; - - this._tessy = this._initTessy(); - - this.fontInfos = {}; - - return this; - }; - - p5.RendererGL.prototype = Object.create(p5.Renderer.prototype); - - ////////////////////////////////////////////// - // Setting - ////////////////////////////////////////////// - - p5.RendererGL.prototype._setAttributeDefaults = function(pInst) { - var defaults = { - alpha: true, - depth: true, - stencil: true, - antialias: false, - premultipliedAlpha: false, - preserveDrawingBuffer: true, - perPixelLighting: false - }; - - if (pInst._glAttributes === null) { - pInst._glAttributes = defaults; - } else { - pInst._glAttributes = Object.assign(defaults, pInst._glAttributes); - } - return; - }; - - p5.RendererGL.prototype._initContext = function() { - try { - this.drawingContext = - this.canvas.getContext('webgl', this._pInst._glAttributes) || - this.canvas.getContext('experimental-webgl', this._pInst._glAttributes); - if (this.drawingContext === null) { - throw new Error('Error creating webgl context'); - } else { - var gl = this.drawingContext; - gl.enable(gl.DEPTH_TEST); - gl.depthFunc(gl.LEQUAL); - gl.viewport(0, 0, gl.drawingBufferWidth, gl.drawingBufferHeight); - this._viewport = this.drawingContext.getParameter( - this.drawingContext.VIEWPORT - ); - } - } catch (er) { - throw er; - } - }; - - //This is helper function to reset the context anytime the attributes - //are changed with setAttributes() - - p5.RendererGL.prototype._resetContext = function(options, callback) { - var w = this.width; - var h = this.height; - var defaultId = this.canvas.id; - var isPGraphics = this._pInst instanceof p5.Graphics; - - if (isPGraphics) { - var pg = this._pInst; - pg.canvas.parentNode.removeChild(pg.canvas); - pg.canvas = document.createElement('canvas'); - var node = pg._pInst._userNode || document.body; - node.appendChild(pg.canvas); - p5.Element.call(pg, pg.canvas, pg._pInst); - pg.width = w; - pg.height = h; - } else { - var c = this.canvas; - if (c) { - c.parentNode.removeChild(c); - } - c = document.createElement('canvas'); - c.id = defaultId; - if (this._pInst._userNode) { - this._pInst._userNode.appendChild(c); - } else { - document.body.appendChild(c); - } - this._pInst.canvas = c; - } - - var renderer = new p5.RendererGL(this._pInst.canvas, this._pInst, !isPGraphics); - - this._pInst._setProperty('_renderer', renderer); - renderer.resize(w, h); - renderer._applyDefaults(); - - if (!isPGraphics) { - this._pInst._elements.push(renderer); - } - - if (typeof callback === 'function') { - //setTimeout with 0 forces the task to the back of the queue, this ensures that - //we finish switching out the renderer - setTimeout(function() { - callback.apply(window._renderer, options); - }, 0); - } - }; - /** - * @module Rendering - * @submodule Rendering - * @for p5 - */ - /** - * Set attributes for the WebGL Drawing context. - * This is a way of adjusting how the WebGL - * renderer works to fine-tune the display and performance. - *

- * Note that this will reinitialize the drawing context - * if called after the WebGL canvas is made. - *

- * If an object is passed as the parameter, all attributes - * not declared in the object will be set to defaults. - *

- * The available attributes are: - *
- * alpha - indicates if the canvas contains an alpha buffer - * default is true - *

- * depth - indicates whether the drawing buffer has a depth buffer - * of at least 16 bits - default is true - *

- * stencil - indicates whether the drawing buffer has a stencil buffer - * of at least 8 bits - *

- * antialias - indicates whether or not to perform anti-aliasing - * default is false - *

- * premultipliedAlpha - indicates that the page compositor will assume - * the drawing buffer contains colors with pre-multiplied alpha - * default is false - *

- * preserveDrawingBuffer - if true the buffers will not be cleared and - * and will preserve their values until cleared or overwritten by author - * (note that p5 clears automatically on draw loop) - * default is true - *

- * perPixelLighting - if true, per-pixel lighting will be used in the - * lighting shader. - * default is false - *

- * @method setAttributes - * @for p5 - * @param {String} key Name of attribute - * @param {Boolean} value New value of named attribute - * @example - *
- * - * function setup() { - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(255); - * push(); - * rotateZ(frameCount * 0.02); - * rotateX(frameCount * 0.02); - * rotateY(frameCount * 0.02); - * fill(0, 0, 0); - * box(50); - * pop(); - * } - * - *
- *
- * Now with the antialias attribute set to true. - *
- *
- * - * function setup() { - * setAttributes('antialias', true); - * createCanvas(100, 100, WEBGL); - * } - * - * function draw() { - * background(255); - * push(); - * rotateZ(frameCount * 0.02); - * rotateX(frameCount * 0.02); - * rotateY(frameCount * 0.02); - * fill(0, 0, 0); - * box(50); - * pop(); - * } - * - *
- * - *
- * - * // press the mouse button to enable perPixelLighting - * function setup() { - * createCanvas(100, 100, WEBGL); - * noStroke(); - * fill(255); - * } - * - * var lights = [ - * { c: '#f00', t: 1.12, p: 1.91, r: 0.2 }, - * { c: '#0f0', t: 1.21, p: 1.31, r: 0.2 }, - * { c: '#00f', t: 1.37, p: 1.57, r: 0.2 }, - * { c: '#ff0', t: 1.12, p: 1.91, r: 0.7 }, - * { c: '#0ff', t: 1.21, p: 1.31, r: 0.7 }, - * { c: '#f0f', t: 1.37, p: 1.57, r: 0.7 } - * ]; - * - * function draw() { - * var t = millis() / 1000 + 1000; - * background(0); - * directionalLight(color('#222'), 1, 1, 1); - * - * for (var i = 0; i < lights.length; i++) { - * var light = lights[i]; - * pointLight( - * color(light.c), - * p5.Vector.fromAngles(t * light.t, t * light.p, width * light.r) - * ); - * } - * - * specularMaterial(255); - * sphere(width * 0.1); - * - * rotateX(t * 0.77); - * rotateY(t * 0.83); - * rotateZ(t * 0.91); - * torus(width * 0.3, width * 0.07, 24, 10); - * } - * - * function mousePressed() { - * setAttributes('perPixelLighting', true); - * noStroke(); - * fill(255); - * } - * function mouseReleased() { - * setAttributes('perPixelLighting', false); - * noStroke(); - * fill(255); - * } - * - *
- * - * @alt a rotating cube with smoother edges - */ - /** - * @method setAttributes - * @for p5 - * @param {Object} obj object with key-value pairs - */ - - p5.prototype.setAttributes = function(key, value) { - if (typeof this._glAttributes === 'undefined') { - console.log( - 'You are trying to use setAttributes on a p5.Graphics object ' + - 'that does not use a WEBGL renderer.' - ); - - return; - } - var unchanged = true; - if (typeof value !== 'undefined') { - //first time modifying the attributes - if (this._glAttributes === null) { - this._glAttributes = {}; - } - if (this._glAttributes[key] !== value) { - //changing value of previously altered attribute - this._glAttributes[key] = value; - unchanged = false; - } - //setting all attributes with some change - } else if (key instanceof Object) { - if (this._glAttributes !== key) { - this._glAttributes = key; - unchanged = false; - } - } - //@todo_FES - if (!this._renderer.isP3D || unchanged) { - return; - } - - if (!this._setupDone) { - for (var x in this._renderer.gHash) { - if (this._renderer.gHash.hasOwnProperty(x)) { - console.error( - 'Sorry, Could not set the attributes, you need to call setAttributes() ' + - 'before calling the other drawing methods in setup()' - ); - - return; - } - } - } - - this.push(); - this._renderer._resetContext(); - this.pop(); - - if (this._renderer._curCamera) { - this._renderer._curCamera._renderer = this._renderer; - } - }; - - /** - * @class p5.RendererGL - */ - - p5.RendererGL.prototype._update = function() { - // reset model view and apply initial camera transform - // (containing only look at info; no projection). - this.uMVMatrix.set( - this._curCamera.cameraMatrix.mat4[0], - this._curCamera.cameraMatrix.mat4[1], - this._curCamera.cameraMatrix.mat4[2], - this._curCamera.cameraMatrix.mat4[3], - this._curCamera.cameraMatrix.mat4[4], - this._curCamera.cameraMatrix.mat4[5], - this._curCamera.cameraMatrix.mat4[6], - this._curCamera.cameraMatrix.mat4[7], - this._curCamera.cameraMatrix.mat4[8], - this._curCamera.cameraMatrix.mat4[9], - this._curCamera.cameraMatrix.mat4[10], - this._curCamera.cameraMatrix.mat4[11], - this._curCamera.cameraMatrix.mat4[12], - this._curCamera.cameraMatrix.mat4[13], - this._curCamera.cameraMatrix.mat4[14], - this._curCamera.cameraMatrix.mat4[15] - ); - - // reset light data for new frame. - - this.ambientLightColors.length = 0; - this.directionalLightDirections.length = 0; - this.directionalLightColors.length = 0; - - this.pointLightPositions.length = 0; - this.pointLightColors.length = 0; - - this._enableLighting = false; - - //reset tint value for new frame - this._tint = [255, 255, 255, 255]; - }; - - /** - * [background description] - */ - p5.RendererGL.prototype.background = function() { - var _col = this._pInst.color.apply(this._pInst, arguments); - var _r = _col.levels[0] / 255; - var _g = _col.levels[1] / 255; - var _b = _col.levels[2] / 255; - var _a = _col.levels[3] / 255; - this.GL.clearColor(_r, _g, _b, _a); - this.GL.depthMask(true); - this.GL.clear(this.GL.COLOR_BUFFER_BIT | this.GL.DEPTH_BUFFER_BIT); - this._pixelsState._pixelsDirty = true; - }; - - ////////////////////////////////////////////// - // COLOR - ////////////////////////////////////////////// - /** - * Basic fill material for geometry with a given color - * @method fill - * @class p5.RendererGL - * @param {Number|Number[]|String|p5.Color} v1 gray value, - * red or hue value (depending on the current color mode), - * or color Array, or CSS color string - * @param {Number} [v2] green or saturation value - * @param {Number} [v3] blue or brightness value - * @param {Number} [a] opacity - * @chainable - * @example - *
- * - * function setup() { - * createCanvas(200, 200, WEBGL); - * } - * - * function draw() { - * background(0); - * noStroke(); - * fill(100, 100, 240); - * rotateX(frameCount * 0.01); - * rotateY(frameCount * 0.01); - * box(75, 75, 75); - * } - * - *
- * - * @alt - * black canvas with purple cube spinning - * - */ - p5.RendererGL.prototype.fill = function(v1, v2, v3, a) { - //see material.js for more info on color blending in webgl - var color = p5.prototype.color.apply(this._pInst, arguments); - this.curFillColor = color._array; - this.drawMode = constants.FILL; - this._useNormalMaterial = false; - this._tex = null; - }; - - /** - * Basic stroke material for geometry with a given color - * @method stroke - * @param {Number|Number[]|String|p5.Color} v1 gray value, - * red or hue value (depending on the current color mode), - * or color Array, or CSS color string - * @param {Number} [v2] green or saturation value - * @param {Number} [v3] blue or brightness value - * @param {Number} [a] opacity - * @example - *
- * - * function setup() { - * createCanvas(200, 200, WEBGL); - * } - * - * function draw() { - * background(0); - * stroke(240, 150, 150); - * fill(100, 100, 240); - * rotateX(frameCount * 0.01); - * rotateY(frameCount * 0.01); - * box(75, 75, 75); - * } - * - *
- * - * @alt - * black canvas with purple cube with pink outline spinning - * - */ - p5.RendererGL.prototype.stroke = function(r, g, b, a) { - //@todo allow transparency in stroking currently doesn't have - //any impact and causes problems with specularMaterial - arguments[3] = 255; - var color = p5.prototype.color.apply(this._pInst, arguments); - this.curStrokeColor = color._array; - }; - - p5.RendererGL.prototype.strokeCap = function(cap) { - // @TODO : to be implemented - console.error('Sorry, strokeCap() is not yet implemented in WEBGL mode'); - }; - - p5.RendererGL.prototype.blendMode = function(mode) { - if ( - mode === constants.DARKEST || - mode === constants.LIGHTEST || - mode === constants.ADD || - mode === constants.BLEND || - mode === constants.SUBTRACT || - mode === constants.SCREEN || - mode === constants.EXCLUSION || - mode === constants.REPLACE || - mode === constants.MULTIPLY - ) - this.curBlendMode = mode; - else if ( - mode === constants.BURN || - mode === constants.OVERLAY || - mode === constants.HARD_LIGHT || - mode === constants.SOFT_LIGHT || - mode === constants.DODGE - ) { - console.warn( - 'BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.' - ); - } - }; - - /** - * Change weight of stroke - * @method strokeWeight - * @param {Number} stroke weight to be used for drawing - * @example - *
- * - * function setup() { - * createCanvas(200, 400, WEBGL); - * setAttributes('antialias', true); - * } - * - * function draw() { - * background(0); - * noStroke(); - * translate(0, -100, 0); - * stroke(240, 150, 150); - * fill(100, 100, 240); - * push(); - * strokeWeight(8); - * rotateX(frameCount * 0.01); - * rotateY(frameCount * 0.01); - * sphere(75); - * pop(); - * push(); - * translate(0, 200, 0); - * strokeWeight(1); - * rotateX(frameCount * 0.01); - * rotateY(frameCount * 0.01); - * sphere(75); - * pop(); - * } - * - *
- * - * @alt - * black canvas with two purple rotating spheres with pink - * outlines the sphere on top has much heavier outlines, - * - */ - p5.RendererGL.prototype.strokeWeight = function(w) { - if (this.curStrokeWeight !== w) { - this.pointSize = w; - this.curStrokeWeight = w; - } - }; - - // x,y are canvas-relative (pre-scaled by _pixelDensity) - p5.RendererGL.prototype._getPixel = function(x, y) { - var pixelsState = this._pixelsState; - var imageData, index; - if (pixelsState._pixelsDirty) { - imageData = new Uint8Array(4); - // prettier-ignore - this.drawingContext.readPixels( - x, y, 1, 1, - this.drawingContext.RGBA, this.drawingContext.UNSIGNED_BYTE, - imageData); - - index = 0; - } else { - imageData = pixelsState.pixels; - index = (Math.floor(x) + Math.floor(y) * this.canvas.width) * 4; - } - return [ - imageData[index + 0], - imageData[index + 1], - imageData[index + 2], - imageData[index + 3] - ]; - }; - - /** - * Loads the pixels data for this canvas into the pixels[] attribute. - * Note that updatePixels() and set() do not work. - * Any pixel manipulation must be done directly to the pixels[] array. - * - * @private - * @method loadPixels - * - */ - - p5.RendererGL.prototype.loadPixels = function() { - var pixelsState = this._pixelsState; - if (!pixelsState._pixelsDirty) return; - pixelsState._pixelsDirty = false; - - //@todo_FES - if (this._pInst._glAttributes.preserveDrawingBuffer !== true) { - console.log( - 'loadPixels only works in WebGL when preserveDrawingBuffer ' + 'is true.' - ); - - return; - } - - //if there isn't a renderer-level temporary pixels buffer - //make a new one - var pixels = pixelsState.pixels; - var len = this.GL.drawingBufferWidth * this.GL.drawingBufferHeight * 4; - if (!(pixels instanceof Uint8Array) || pixels.length !== len) { - pixels = new Uint8Array(len); - this._pixelsState._setProperty('pixels', pixels); - } - - var pd = this._pInst._pixelDensity; - // prettier-ignore - this.GL.readPixels( - 0, 0, this.width * pd, this.height * pd, - this.GL.RGBA, this.GL.UNSIGNED_BYTE, - pixels); - }; - - ////////////////////////////////////////////// - // HASH | for geometry - ////////////////////////////////////////////// - - p5.RendererGL.prototype.geometryInHash = function(gId) { - return this.gHash[gId] !== undefined; - }; - - /** - * [resize description] - * @private - * @param {Number} w [description] - * @param {Number} h [description] - */ - p5.RendererGL.prototype.resize = function(w, h) { - p5.Renderer.prototype.resize.call(this, w, h); - this.GL.viewport(0, 0, this.GL.drawingBufferWidth, this.GL.drawingBufferHeight); - - this._viewport = this.GL.getParameter(this.GL.VIEWPORT); - - this._curCamera._resize(); - - //resize pixels buffer - var pixelsState = this._pixelsState; - pixelsState._pixelsDirty = true; - if (typeof pixelsState.pixels !== 'undefined') { - pixelsState._setProperty( - 'pixels', - new Uint8Array(this.GL.drawingBufferWidth * this.GL.drawingBufferHeight * 4) - ); - } - }; - - /** - * clears color and depth buffers - * with r,g,b,a - * @private - * @param {Number} r normalized red val. - * @param {Number} g normalized green val. - * @param {Number} b normalized blue val. - * @param {Number} a normalized alpha val. - */ - p5.RendererGL.prototype.clear = function() { - var _r = arguments[0] || 0; - var _g = arguments[1] || 0; - var _b = arguments[2] || 0; - var _a = arguments[3] || 0; - this.GL.clearColor(_r, _g, _b, _a); - this.GL.clear(this.GL.COLOR_BUFFER_BIT | this.GL.DEPTH_BUFFER_BIT); - this._pixelsState._pixelsDirty = true; - }; - - p5.RendererGL.prototype.applyMatrix = function(a, b, c, d, e, f) { - if (arguments.length === 16) { - p5.Matrix.prototype.apply.apply(this.uMVMatrix, arguments); - } else { - // prettier-ignore - this.uMVMatrix.apply([ - a, b, 0, 0, - c, d, 0, 0, - 0, 0, 1, 0, - e, f, 0, 1]); - } - }; - - /** - * [translate description] - * @private - * @param {Number} x [description] - * @param {Number} y [description] - * @param {Number} z [description] - * @chainable - * @todo implement handle for components or vector as args - */ - p5.RendererGL.prototype.translate = function(x, y, z) { - if (x instanceof p5.Vector) { - z = x.z; - y = x.y; - x = x.x; - } - this.uMVMatrix.translate([x, y, z]); - return this; - }; - - /** - * Scales the Model View Matrix by a vector - * @private - * @param {Number | p5.Vector | Array} x [description] - * @param {Number} [y] y-axis scalar - * @param {Number} [z] z-axis scalar - * @chainable - */ - p5.RendererGL.prototype.scale = function(x, y, z) { - this.uMVMatrix.scale(x, y, z); - return this; - }; - - p5.RendererGL.prototype.rotate = function(rad, axis) { - if (typeof axis === 'undefined') { - return this.rotateZ(rad); - } - p5.Matrix.prototype.rotate.apply(this.uMVMatrix, arguments); - return this; - }; - - p5.RendererGL.prototype.rotateX = function(rad) { - this.rotate(rad, 1, 0, 0); - return this; - }; - - p5.RendererGL.prototype.rotateY = function(rad) { - this.rotate(rad, 0, 1, 0); - return this; - }; - - p5.RendererGL.prototype.rotateZ = function(rad) { - this.rotate(rad, 0, 0, 1); - return this; - }; - - p5.RendererGL.prototype.push = function() { - // get the base renderer style - var style = p5.Renderer.prototype.push.apply(this); - - // add webgl-specific style properties - var properties = style.properties; - - properties.uMVMatrix = this.uMVMatrix.copy(); - properties.uPMatrix = this.uPMatrix.copy(); - properties._curCamera = this._curCamera; - - // make a copy of the current camera for the push state - // this preserves any references stored using 'createCamera' - this._curCamera = this._curCamera.copy(); - - properties.ambientLightColors = this.ambientLightColors.slice(); - - properties.directionalLightDirections = this.directionalLightDirections.slice(); - properties.directionalLightColors = this.directionalLightColors.slice(); - - properties.pointLightPositions = this.pointLightPositions.slice(); - properties.pointLightColors = this.pointLightColors.slice(); - - properties.userFillShader = this.userFillShader; - properties.userStrokeShader = this.userStrokeShader; - properties.userPointShader = this.userPointShader; - - properties.pointSize = this.pointSize; - properties.curStrokeWeight = this.curStrokeWeight; - properties.curStrokeColor = this.curStrokeColor; - properties.curFillColor = this.curFillColor; - - properties._useSpecularMaterial = this._useSpecularMaterial; - properties._useShininess = this._useShininess; - - properties.constantAttenuation = this.constantAttenuation; - properties.linearAttenuation = this.linearAttenuation; - properties.quadraticAttenuation = this.quadraticAttenuation; - - properties._enableLighting = this._enableLighting; - properties._useNormalMaterial = this._useNormalMaterial; - properties._tex = this._tex; - properties.drawMode = this.drawMode; - - return style; - }; - - p5.RendererGL.prototype.resetMatrix = function() { - this.uMVMatrix = p5.Matrix.identity(this._pInst); - return this; - }; - - ////////////////////////////////////////////// - // SHADER - ////////////////////////////////////////////// - - /* - * shaders are created and cached on a per-renderer basis, - * on the grounds that each renderer will have its own gl context - * and the shader must be valid in that context. - */ - - p5.RendererGL.prototype._getImmediateStrokeShader = function() { - // select the stroke shader to use - var stroke = this.userStrokeShader; - if (!stroke || !stroke.isStrokeShader()) { - return this._getLineShader(); - } - return stroke; - }; - - p5.RendererGL.prototype._getRetainedStrokeShader = - p5.RendererGL.prototype._getImmediateStrokeShader; - - /* - * selects which fill shader should be used based on renderer state, - * for use with begin/endShape and immediate vertex mode. - */ - p5.RendererGL.prototype._getImmediateFillShader = function() { - if (this._useNormalMaterial) { - console.log( - 'Sorry, normalMaterial() does not currently work with custom WebGL geometry' + - ' created with beginShape(). Falling back to standard fill material.' - ); - - return this._getImmediateModeShader(); - } - - var fill = this.userFillShader; - if (this._enableLighting) { - if (!fill || !fill.isLightShader()) { - return this._getLightShader(); - } - } else if (this._tex) { - if (!fill || !fill.isTextureShader()) { - return this._getLightShader(); - } - } else if (!fill /*|| !fill.isColorShader()*/) { - return this._getImmediateModeShader(); - } - return fill; - }; - - /* - * selects which fill shader should be used based on renderer state - * for retained mode. - */ - p5.RendererGL.prototype._getRetainedFillShader = function() { - if (this._useNormalMaterial) { - return this._getNormalShader(); - } - - var fill = this.userFillShader; - if (this._enableLighting) { - if (!fill || !fill.isLightShader()) { - return this._getLightShader(); - } - } else if (this._tex) { - if (!fill || !fill.isTextureShader()) { - return this._getLightShader(); - } - } else if (!fill /* || !fill.isColorShader()*/) { - return this._getColorShader(); - } - return fill; - }; - - p5.RendererGL.prototype._getImmediatePointShader = function() { - // select the point shader to use - var point = this.userPointShader; - if (!point || !point.isPointShader()) { - return this._getPointShader(); - } - return point; - }; - - p5.RendererGL.prototype._getRetainedLineShader = - p5.RendererGL.prototype._getImmediateLineShader; - - p5.RendererGL.prototype._getLightShader = function() { - if (!this._defaultLightShader) { - if (this._pInst._glAttributes.perPixelLighting) { - this._defaultLightShader = new p5.Shader( - this, - defaultShaders.phongVert, - defaultShaders.phongFrag - ); - } else { - this._defaultLightShader = new p5.Shader( - this, - defaultShaders.lightVert, - defaultShaders.lightTextureFrag - ); - } - } - - return this._defaultLightShader; - }; - - p5.RendererGL.prototype._getImmediateModeShader = function() { - if (!this._defaultImmediateModeShader) { - this._defaultImmediateModeShader = new p5.Shader( - this, - defaultShaders.immediateVert, - defaultShaders.vertexColorFrag - ); - } - - return this._defaultImmediateModeShader; - }; - - p5.RendererGL.prototype._getNormalShader = function() { - if (!this._defaultNormalShader) { - this._defaultNormalShader = new p5.Shader( - this, - defaultShaders.normalVert, - defaultShaders.normalFrag - ); - } - - return this._defaultNormalShader; - }; - - p5.RendererGL.prototype._getColorShader = function() { - if (!this._defaultColorShader) { - this._defaultColorShader = new p5.Shader( - this, - defaultShaders.normalVert, - defaultShaders.basicFrag - ); - } - - return this._defaultColorShader; - }; - - p5.RendererGL.prototype._getPointShader = function() { - if (!this._defaultPointShader) { - this._defaultPointShader = new p5.Shader( - this, - defaultShaders.pointVert, - defaultShaders.pointFrag - ); - } - return this._defaultPointShader; - }; - - p5.RendererGL.prototype._getLineShader = function() { - if (!this._defaultLineShader) { - this._defaultLineShader = new p5.Shader( - this, - defaultShaders.lineVert, - defaultShaders.lineFrag - ); - } - - return this._defaultLineShader; - }; - - p5.RendererGL.prototype._getFontShader = function() { - if (!this._defaultFontShader) { - this.GL.getExtension('OES_standard_derivatives'); - this._defaultFontShader = new p5.Shader( - this, - defaultShaders.fontVert, - defaultShaders.fontFrag - ); - } - return this._defaultFontShader; - }; - - p5.RendererGL.prototype._getEmptyTexture = function() { - if (!this._emptyTexture) { - // a plain white texture RGBA, full alpha, single pixel. - var im = new p5.Image(1, 1); - im.set(0, 0, 255); - this._emptyTexture = new p5.Texture(this, im); - } - return this._emptyTexture; - }; - - p5.RendererGL.prototype.getTexture = function(img) { - var textures = this.textures; - for (var it = 0; it < textures.length; ++it) { - var texture = textures[it]; - if (texture.src === img) return texture; - } - - var tex = new p5.Texture(this, img); - textures.push(tex); - return tex; - }; - - p5.RendererGL.prototype._setStrokeUniforms = function(strokeShader) { - strokeShader.bindShader(); - - // set the uniform values - strokeShader.setUniform('uMaterialColor', this.curStrokeColor); - strokeShader.setUniform('uStrokeWeight', this.curStrokeWeight); - }; - - p5.RendererGL.prototype._setFillUniforms = function(fillShader) { - fillShader.bindShader(); - - // TODO: optimize - fillShader.setUniform('uMaterialColor', this.curFillColor); - fillShader.setUniform('isTexture', !!this._tex); - if (this._tex) { - fillShader.setUniform('uSampler', this._tex); - } - fillShader.setUniform('uTint', this._tint); - - fillShader.setUniform('uSpecular', this._useSpecularMaterial); - fillShader.setUniform('uShininess', this._useShininess); - - fillShader.setUniform('uUseLighting', this._enableLighting); - - var pointLightCount = this.pointLightColors.length / 3; - fillShader.setUniform('uPointLightCount', pointLightCount); - fillShader.setUniform('uPointLightLocation', this.pointLightPositions); - fillShader.setUniform('uPointLightColor', this.pointLightColors); - - var directionalLightCount = this.directionalLightColors.length / 3; - fillShader.setUniform('uDirectionalLightCount', directionalLightCount); - fillShader.setUniform('uLightingDirection', this.directionalLightDirections); - fillShader.setUniform('uDirectionalColor', this.directionalLightColors); - - // TODO: sum these here... - var ambientLightCount = this.ambientLightColors.length / 3; - fillShader.setUniform('uAmbientLightCount', ambientLightCount); - fillShader.setUniform('uAmbientColor', this.ambientLightColors); - - fillShader.setUniform('uConstantAttenuation', this.constantAttenuation); - fillShader.setUniform('uLinearAttenuation', this.linearAttenuation); - fillShader.setUniform('uQuadraticAttenuation', this.quadraticAttenuation); - - fillShader.bindTextures(); - }; - - p5.RendererGL.prototype._setPointUniforms = function(pointShader) { - pointShader.bindShader(); - - // set the uniform values - pointShader.setUniform('uMaterialColor', this.curStrokeColor); - // @todo is there an instance where this isn't stroke weight? - // should be they be same var? - pointShader.setUniform('uPointSize', this.pointSize); - }; - - /* Binds a buffer to the drawing context - * when passed more than two arguments it also updates or initializes - * the data associated with the buffer - */ - p5.RendererGL.prototype._bindBuffer = function( - buffer, - target, - values, - type, - usage - ) { - if (!target) target = this.GL.ARRAY_BUFFER; - this.GL.bindBuffer(target, buffer); - if (values !== undefined) { - var data = new (type || Float32Array)(values); - this.GL.bufferData(target, data, usage || this.GL.STATIC_DRAW); - } - }; - - /////////////////////////////// - //// UTILITY FUNCTIONS - ////////////////////////////// - /** - * turn a two dimensional array into one dimensional array - * @private - * @param {Array} arr 2-dimensional array - * @return {Array} 1-dimensional array - * [[1, 2, 3],[4, 5, 6]] -> [1, 2, 3, 4, 5, 6] - */ - p5.RendererGL.prototype._flatten = function(arr) { - //when empty, return empty - if (arr.length === 0) { - return []; - } else if (arr.length > 20000) { - //big models , load slower to avoid stack overflow - //faster non-recursive flatten via axelduch - //stackoverflow.com/questions/27266550/how-to-flatten-nested-array-in-javascript - var toString = Object.prototype.toString; - var arrayTypeStr = '[object Array]'; - var result = []; - var nodes = arr.slice(); - var node; - node = nodes.pop(); - do { - if (toString.call(node) === arrayTypeStr) { - nodes.push.apply(nodes, node); - } else { - result.push(node); - } - } while (nodes.length && (node = nodes.pop()) !== undefined); - result.reverse(); // we reverse result to restore the original order - return result; - } else { - //otherwise if model within limits for browser - //use faster recursive loading - return [].concat.apply([], arr); - } - }; - - /** - * turn a p5.Vector Array into a one dimensional number array - * @private - * @param {p5.Vector[]} arr an array of p5.Vector - * @return {Number[]} a one dimensional array of numbers - * [p5.Vector(1, 2, 3), p5.Vector(4, 5, 6)] -> - * [1, 2, 3, 4, 5, 6] - */ - p5.RendererGL.prototype._vToNArray = function(arr) { - var ret = []; - for (var i = 0; i < arr.length; i++) { - var item = arr[i]; - ret.push(item.x, item.y, item.z); - } - return ret; - }; - - /** - * ensures that p5 is using a 3d renderer. throws an error if not. - */ - p5.prototype._assert3d = function(name) { - if (!this._renderer.isP3D) - throw new Error( - name + - "() is only supported in WEBGL mode. If you'd like to use 3D graphics" + - ' and WebGL, see https://p5js.org/examples/form-3d-primitives.html' + - ' for more information.' - ); - }; - - // function to initialize GLU Tesselator - - p5.RendererGL.prototype._initTessy = function initTesselator() { - // function called for each vertex of tesselator output - function vertexCallback(data, polyVertArray) { - polyVertArray[polyVertArray.length] = data[0]; - polyVertArray[polyVertArray.length] = data[1]; - polyVertArray[polyVertArray.length] = data[2]; - } - - function begincallback(type) { - if (type !== libtess.primitiveType.GL_TRIANGLES) { - console.log('expected TRIANGLES but got type: ' + type); - } - } - - function errorcallback(errno) { - console.log('error callback'); - console.log('error number: ' + errno); - } - // callback for when segments intersect and must be split - function combinecallback(coords, data, weight) { - return [coords[0], coords[1], coords[2]]; - } - - function edgeCallback(flag) { - // don't really care about the flag, but need no-strip/no-fan behavior - } - - var tessy = new libtess.GluTesselator(); - tessy.gluTessCallback(libtess.gluEnum.GLU_TESS_VERTEX_DATA, vertexCallback); - tessy.gluTessCallback(libtess.gluEnum.GLU_TESS_BEGIN, begincallback); - tessy.gluTessCallback(libtess.gluEnum.GLU_TESS_ERROR, errorcallback); - tessy.gluTessCallback(libtess.gluEnum.GLU_TESS_COMBINE, combinecallback); - tessy.gluTessCallback(libtess.gluEnum.GLU_TESS_EDGE_FLAG, edgeCallback); - - return tessy; - }; - - p5.RendererGL.prototype._triangulate = function(contours) { - // libtess will take 3d verts and flatten to a plane for tesselation - // since only doing 2d tesselation here, provide z=1 normal to skip - // iterating over verts only to get the same answer. - // comment out to test normal-generation code - this._tessy.gluTessNormal(0, 0, 1); - - var triangleVerts = []; - this._tessy.gluTessBeginPolygon(triangleVerts); - - for (var i = 0; i < contours.length; i++) { - this._tessy.gluTessBeginContour(); - var contour = contours[i]; - for (var j = 0; j < contour.length; j += 3) { - var coords = [contour[j], contour[j + 1], contour[j + 2]]; - this._tessy.gluTessVertex(coords, coords); - } - this._tessy.gluTessEndContour(); - } - - // finish polygon - this._tessy.gluTessEndPolygon(); - - return triangleVerts; - }; - - // function to calculate BezierVertex Coefficients - p5.RendererGL.prototype._bezierCoefficients = function(t) { - var t2 = t * t; - var t3 = t2 * t; - var mt = 1 - t; - var mt2 = mt * mt; - var mt3 = mt2 * mt; - return [mt3, 3 * mt2 * t, 3 * mt * t2, t3]; - }; - - // function to calculate QuadraticVertex Coefficients - p5.RendererGL.prototype._quadraticCoefficients = function(t) { - var t2 = t * t; - var mt = 1 - t; - var mt2 = mt * mt; - return [mt2, 2 * mt * t, t2]; - }; - - // function to convert Bezier coordinates to Catmull Rom Splines - p5.RendererGL.prototype._bezierToCatmull = function(w) { - var p1 = w[1]; - var p2 = w[1] + (w[2] - w[0]) / this._curveTightness; - var p3 = w[2] - (w[3] - w[1]) / this._curveTightness; - var p4 = w[2]; - var p = [p1, p2, p3, p4]; - return p; - }; - - module.exports = p5.RendererGL; - }, - { - '../core/constants': 18, - '../core/main': 24, - '../core/p5.Renderer': 27, - './p5.Camera': 70, - './p5.Matrix': 72, - './p5.Shader': 76, - libtess: 9 - } - ], - 76: [ - function(_dereq_, module, exports) { - /** - * This module defines the p5.Shader class - * @module Lights, Camera - * @submodule Shaders - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - - /** - * Shader class for WEBGL Mode - * @class p5.Shader - * @param {p5.RendererGL} renderer an instance of p5.RendererGL that - * will provide the GL context for this new p5.Shader - * @param {String} vertSrc source code for the vertex shader (as a string) - * @param {String} fragSrc source code for the fragment shader (as a string) - */ - p5.Shader = function(renderer, vertSrc, fragSrc) { - // TODO: adapt this to not take ids, but rather, - // to take the source for a vertex and fragment shader - // to enable custom shaders at some later date - this._renderer = renderer; - this._vertSrc = vertSrc; - this._fragSrc = fragSrc; - this._vertShader = -1; - this._fragShader = -1; - this._glProgram = 0; - this._loadedAttributes = false; - this.attributes = {}; - this._loadedUniforms = false; - this.uniforms = {}; - this._bound = false; - this.samplers = []; - }; - - /** - * Creates, compiles, and links the shader based on its - * sources for the vertex and fragment shaders (provided - * to the constructor). Populates known attributes and - * uniforms from the shader. - * @method init - * @chainable - * @private - */ - p5.Shader.prototype.init = function() { - if (this._glProgram === 0 /* or context is stale? */) { - var gl = this._renderer.GL; - - // @todo: once custom shading is allowed, - // friendly error messages should be used here to share - // compiler and linker errors. - - //set up the shader by - // 1. creating and getting a gl id for the shader program, - // 2. compliling its vertex & fragment sources, - // 3. linking the vertex and fragment shaders - this._vertShader = gl.createShader(gl.VERTEX_SHADER); - //load in our default vertex shader - gl.shaderSource(this._vertShader, this._vertSrc); - gl.compileShader(this._vertShader); - // if our vertex shader failed compilation? - if (!gl.getShaderParameter(this._vertShader, gl.COMPILE_STATUS)) { - console.error( - 'Yikes! An error occurred compiling the vertex shader:' + - gl.getShaderInfoLog(this._vertShader) - ); - - return null; - } - - this._fragShader = gl.createShader(gl.FRAGMENT_SHADER); - //load in our material frag shader - gl.shaderSource(this._fragShader, this._fragSrc); - gl.compileShader(this._fragShader); - // if our frag shader failed compilation? - if (!gl.getShaderParameter(this._fragShader, gl.COMPILE_STATUS)) { - console.error( - 'Darn! An error occurred compiling the fragment shader:' + - gl.getShaderInfoLog(this._fragShader) - ); - - return null; - } - - this._glProgram = gl.createProgram(); - gl.attachShader(this._glProgram, this._vertShader); - gl.attachShader(this._glProgram, this._fragShader); - gl.linkProgram(this._glProgram); - if (!gl.getProgramParameter(this._glProgram, gl.LINK_STATUS)) { - console.error( - 'Snap! Error linking shader program: ' + - gl.getProgramInfoLog(this._glProgram) - ); - } - - this._loadAttributes(); - this._loadUniforms(); - } - return this; - }; - - /** - * Queries the active attributes for this shader and loads - * their names and locations into the attributes array. - * @method _loadAttributes - * @private - */ - p5.Shader.prototype._loadAttributes = function() { - if (this._loadedAttributes) { - return; - } - - this.attributes = {}; - - var gl = this._renderer.GL; - - var numAttributes = gl.getProgramParameter( - this._glProgram, - gl.ACTIVE_ATTRIBUTES - ); - - for (var i = 0; i < numAttributes; ++i) { - var attributeInfo = gl.getActiveAttrib(this._glProgram, i); - var name = attributeInfo.name; - var location = gl.getAttribLocation(this._glProgram, name); - var attribute = {}; - attribute.name = name; - attribute.location = location; - attribute.index = i; - attribute.type = attributeInfo.type; - attribute.size = attributeInfo.size; - this.attributes[name] = attribute; - } - - this._loadedAttributes = true; - }; - - /** - * Queries the active uniforms for this shader and loads - * their names and locations into the uniforms array. - * @method _loadUniforms - * @private - */ - p5.Shader.prototype._loadUniforms = function() { - if (this._loadedUniforms) { - return; - } - - var gl = this._renderer.GL; - - // Inspect shader and cache uniform info - var numUniforms = gl.getProgramParameter(this._glProgram, gl.ACTIVE_UNIFORMS); - - var samplerIndex = 0; - for (var i = 0; i < numUniforms; ++i) { - var uniformInfo = gl.getActiveUniform(this._glProgram, i); - var uniform = {}; - uniform.location = gl.getUniformLocation(this._glProgram, uniformInfo.name); - uniform.size = uniformInfo.size; - var uniformName = uniformInfo.name; - //uniforms thats are arrays have their name returned as - //someUniform[0] which is a bit silly so we trim it - //off here. The size property tells us that its an array - //so we dont lose any information by doing this - if (uniformInfo.size > 1) { - uniformName = uniformName.substring(0, uniformName.indexOf('[0]')); - } - uniform.name = uniformName; - uniform.type = uniformInfo.type; - if (uniform.type === gl.SAMPLER_2D) { - uniform.samplerIndex = samplerIndex; - samplerIndex++; - this.samplers.push(uniform); - } - this.uniforms[uniformName] = uniform; - } - this._loadedUniforms = true; - }; - - p5.Shader.prototype.compile = function() { - // TODO - }; - - /** - * initializes (if needed) and binds the shader program. - * @method bindShader - * @private - */ - p5.Shader.prototype.bindShader = function() { - this.init(); - if (!this._bound) { - this.useProgram(); - this._bound = true; - - this._setMatrixUniforms(); - - this.setUniform('uViewport', this._renderer._viewport); - } - }; - - /** - * @method unbindShader - * @chainable - * @private - */ - p5.Shader.prototype.unbindShader = function() { - if (this._bound) { - this.unbindTextures(); - //this._renderer.GL.useProgram(0); ?? - this._bound = false; - } - return this; - }; - - p5.Shader.prototype.bindTextures = function() { - var gl = this._renderer.GL; - for (var i = 0; i < this.samplers.length; i++) { - var uniform = this.samplers[i]; - var tex = uniform.texture; - if (tex === undefined) { - // user hasn't yet supplied a texture for this slot. - // (or there may not be one--maybe just lighting), - // so we supply a default texture instead. - tex = this._renderer._getEmptyTexture(); - } - gl.activeTexture(gl.TEXTURE0 + uniform.samplerIndex); - tex.bindTexture(); - tex.update(); - gl.uniform1i(uniform.location, uniform.samplerIndex); - } - }; - - p5.Shader.prototype.updateTextures = function() { - for (var i = 0; i < this.samplers.length; i++) { - var uniform = this.samplers[i]; - var tex = uniform.texture; - if (tex) { - tex.update(); - } - } - }; - - p5.Shader.prototype.unbindTextures = function() { - // TODO: migrate stuff from material.js here - // - OR - have material.js define this function - }; - - p5.Shader.prototype._setMatrixUniforms = function() { - this.setUniform('uProjectionMatrix', this._renderer.uPMatrix.mat4); - this.setUniform('uModelViewMatrix', this._renderer.uMVMatrix.mat4); - this.setUniform('uViewMatrix', this._renderer._curCamera.cameraMatrix.mat4); - if (this.uniforms.uNormalMatrix) { - this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix); - this.setUniform('uNormalMatrix', this._renderer.uNMatrix.mat3); - } - }; - - /** - * @method useProgram - * @chainable - * @private - */ - p5.Shader.prototype.useProgram = function() { - var gl = this._renderer.GL; - gl.useProgram(this._glProgram); - return this; - }; - - /** - * Wrapper around gl.uniform functions. - * As we store uniform info in the shader we can use that - * to do type checking on the supplied data and call - * the appropriate function. - * @method setUniform - * @chainable - * @param {String} uniformName the name of the uniform in the - * shader program - * @param {Object|Number|Boolean|Number[]} data the data to be associated - * with that uniform; type varies (could be a single numerical value, array, - * matrix, or texture / sampler reference) - * - * @example - *
- * - * // Click within the image to toggle the value of uniforms - * // Note: for an alternative approach to the same example, - * // involving toggling between shaders please refer to: - * // https://p5js.org/reference/#/p5/shader - * - * let grad; - * let showRedGreen = false; - * - * function preload() { - * // note that we are using two instances - * // of the same vertex and fragment shaders - * grad = loadShader('assets/shader.vert', 'assets/shader-gradient.frag'); - * } - * - * function setup() { - * createCanvas(100, 100, WEBGL); - * shader(grad); - * noStroke(); - * } - * - * function draw() { - * // update the offset values for each scenario, - * // moving the "grad" shader in either vertical or - * // horizontal direction each with differing colors - * - * if (showRedGreen === true) { - * grad.setUniform('colorCenter', [1, 0, 0]); - * grad.setUniform('colorBackground', [0, 1, 0]); - * grad.setUniform('offset', [sin(millis() / 2000), 1]); - * } else { - * grad.setUniform('colorCenter', [1, 0.5, 0]); - * grad.setUniform('colorBackground', [0.226, 0, 0.615]); - * grad.setUniform('offset', [0, sin(millis() / 2000) + 1]); - * } - * quad(-1, -1, 1, -1, 1, 1, -1, 1); - * } - * - * function mouseClicked() { - * showRedGreen = !showRedGreen; - * } - * - *
- * - * @alt - * canvas toggles between a circular gradient of orange and blue vertically. and a circular gradient of red and green moving horizontally when mouse is clicked/pressed. - */ - p5.Shader.prototype.setUniform = function(uniformName, data) { - //@todo update all current gl.uniformXX calls - - var uniform = this.uniforms[uniformName]; - if (!uniform) { - return; - } - - var location = uniform.location; - - var gl = this._renderer.GL; - this.useProgram(); - - switch (uniform.type) { - case gl.BOOL: - if (data === true) { - gl.uniform1i(location, 1); - } else { - gl.uniform1i(location, 0); - } - break; - case gl.INT: - if (uniform.size > 1) { - data.length && gl.uniform1iv(location, data); - } else { - gl.uniform1i(location, data); - } - break; - case gl.FLOAT: - if (uniform.size > 1) { - data.length && gl.uniform1fv(location, data); - } else { - gl.uniform1f(location, data); - } - break; - case gl.FLOAT_MAT3: - gl.uniformMatrix3fv(location, false, data); - break; - case gl.FLOAT_MAT4: - gl.uniformMatrix4fv(location, false, data); - break; - case gl.FLOAT_VEC2: - if (uniform.size > 1) { - data.length && gl.uniform2fv(location, data); - } else { - gl.uniform2f(location, data[0], data[1]); - } - break; - case gl.FLOAT_VEC3: - if (uniform.size > 1) { - data.length && gl.uniform3fv(location, data); - } else { - gl.uniform3f(location, data[0], data[1], data[2]); - } - break; - case gl.FLOAT_VEC4: - if (uniform.size > 1) { - data.length && gl.uniform4fv(location, data); - } else { - gl.uniform4f(location, data[0], data[1], data[2], data[3]); - } - break; - case gl.INT_VEC2: - if (uniform.size > 1) { - data.length && gl.uniform2iv(location, data); - } else { - gl.uniform2i(location, data[0], data[1]); - } - break; - case gl.INT_VEC3: - if (uniform.size > 1) { - data.length && gl.uniform3iv(location, data); - } else { - gl.uniform3i(location, data[0], data[1], data[2]); - } - break; - case gl.INT_VEC4: - if (uniform.size > 1) { - data.length && gl.uniform4iv(location, data); - } else { - gl.uniform4i(location, data[0], data[1], data[2], data[3]); - } - break; - case gl.SAMPLER_2D: - gl.activeTexture(gl.TEXTURE0 + uniform.samplerIndex); - uniform.texture = this._renderer.getTexture(data); - gl.uniform1i(uniform.location, uniform.samplerIndex); - break; - //@todo complete all types - } - return this; - }; - - /* NONE OF THIS IS FAST OR EFFICIENT BUT BEAR WITH ME - * - * these shader "type" query methods are used by various - * facilities of the renderer to determine if changing - * the shader type for the required action (for example, - * do we need to load the default lighting shader if the - * current shader cannot handle lighting?) - * - **/ - - p5.Shader.prototype.isLightShader = function() { - return ( - this.attributes.aNormal !== undefined || - this.uniforms.uUseLighting !== undefined || - this.uniforms.uAmbientLightCount !== undefined || - this.uniforms.uDirectionalLightCount !== undefined || - this.uniforms.uPointLightCount !== undefined || - this.uniforms.uAmbientColor !== undefined || - this.uniforms.uDirectionalColor !== undefined || - this.uniforms.uPointLightLocation !== undefined || - this.uniforms.uPointLightColor !== undefined || - this.uniforms.uLightingDirection !== undefined || - this.uniforms.uSpecular !== undefined - ); - }; - - p5.Shader.prototype.isTextureShader = function() { - return this.samplerIndex > 0; - }; - - p5.Shader.prototype.isColorShader = function() { - return ( - this.attributes.aVertexColor !== undefined || - this.uniforms.uMaterialColor !== undefined - ); - }; - - p5.Shader.prototype.isTexLightShader = function() { - return this.isLightShader() && this.isTextureShader(); - }; - - p5.Shader.prototype.isStrokeShader = function() { - return this.uniforms.uStrokeWeight !== undefined; - }; - - /** - * @method enableAttrib - * @chainable - * @private - */ - p5.Shader.prototype.enableAttrib = function( - attr, - size, - type, - normalized, - stride, - offset - ) { - if (attr) { - if ( - typeof IS_MINIFIED === 'undefined' && - this.attributes[attr.name] !== attr - ) { - console.warn( - 'The attribute "' + - attr.name + - '"passed to enableAttrib does not belong to this shader.' - ); - } - var loc = attr.location; - if (loc !== -1) { - var gl = this._renderer.GL; - gl.enableVertexAttribArray(loc); - gl.vertexAttribPointer( - loc, - size, - type || gl.FLOAT, - normalized || false, - stride || 0, - offset || 0 - ); - } - } - return this; - }; - - module.exports = p5.Shader; - }, - { '../core/main': 24 } - ], - 77: [ - function(_dereq_, module, exports) { - /** - * This module defines the p5.Texture class - * @module Lights, Camera - * @submodule Material - * @for p5 - * @requires core - */ - - 'use strict'; - - var p5 = _dereq_('../core/main'); - var constants = _dereq_('../core/constants'); - - /** - * Texture class for WEBGL Mode - * @private - * @class p5.Texture - * @param {p5.RendererGL} renderer an instance of p5.RendererGL that - * will provide the GL context for this new p5.Texture - * @param {p5.Image|p5.Graphics|p5.Element|p5.MediaElement|ImageData} [obj] the - * object containing the image data to store in the texture. - */ - p5.Texture = function(renderer, obj) { - this._renderer = renderer; - - var gl = this._renderer.GL; - - this.src = obj; - this.glTex = undefined; - this.glTarget = gl.TEXTURE_2D; - this.glFormat = gl.RGBA; - this.mipmaps = false; - this.glMinFilter = gl.LINEAR; - this.glMagFilter = gl.LINEAR; - this.glWrapS = gl.CLAMP_TO_EDGE; - this.glWrapT = gl.CLAMP_TO_EDGE; - - // used to determine if this texture might need constant updating - // because it is a video or gif. - this.isSrcMediaElement = - typeof p5.MediaElement !== 'undefined' && obj instanceof p5.MediaElement; - this._videoPrevUpdateTime = 0; - this.isSrcHTMLElement = - typeof p5.Element !== 'undefined' && - obj instanceof p5.Element && - !(obj instanceof p5.Graphics); - this.isSrcP5Image = obj instanceof p5.Image; - this.isSrcP5Graphics = obj instanceof p5.Graphics; - this.isImageData = typeof ImageData !== 'undefined' && obj instanceof ImageData; - - var textureData = this._getTextureDataFromSource(); - this.width = textureData.width; - this.height = textureData.height; - - this.init(textureData); - return this; - }; - - p5.Texture.prototype._getTextureDataFromSource = function() { - var textureData; - if (this.isSrcP5Image) { - // param is a p5.Image - textureData = this.src.canvas; - } else if ( - this.isSrcMediaElement || - this.isSrcP5Graphics || - this.isSrcHTMLElement - ) { - // if param is a video HTML element - textureData = this.src.elt; - } else if (this.isImageData) { - textureData = this.src; - } - return textureData; - }; - - /** - * Initializes common texture parameters, creates a gl texture, - * tries to upload the texture for the first time if data is - * already available. - * @private - * @method init - */ - p5.Texture.prototype.init = function(data) { - var gl = this._renderer.GL; - this.glTex = gl.createTexture(); - - this.glWrapS = this._renderer.textureWrapX; - this.glWrapT = this._renderer.textureWrapY; - - this.setWrapMode(this.glWrapS, this.glWrapT); - this.bindTexture(); - - //gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, this.glMagFilter); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, this.glMinFilter); - - if ( - this.width === 0 || - this.height === 0 || - (this.isSrcMediaElement && !this.src.loadedmetadata) - ) { - // assign a 1x1 empty texture initially, because data is not yet ready, - // so that no errors occur in gl console! - var tmpdata = new Uint8Array([1, 1, 1, 1]); - gl.texImage2D( - this.glTarget, - 0, - gl.RGBA, - 1, - 1, - 0, - this.glFormat, - gl.UNSIGNED_BYTE, - tmpdata - ); - } else { - // data is ready: just push the texture! - gl.texImage2D( - this.glTarget, - 0, - this.glFormat, - this.glFormat, - gl.UNSIGNED_BYTE, - data - ); - } - }; - - /** - * Checks if the source data for this texture has changed (if it's - * easy to do so) and reuploads the texture if necessary. If it's not - * possible or to expensive to do a calculation to determine wheter or - * not the data has occurred, this method simply re-uploads the texture. - * @method update - */ - p5.Texture.prototype.update = function() { - var data = this.src; - if (data.width === 0 || data.height === 0) { - return false; // nothing to do! - } - - var textureData = this._getTextureDataFromSource(); - var updated = false; - - var gl = this._renderer.GL; - // pull texture from data, make sure width & height are appropriate - if (textureData.width !== this.width || textureData.height !== this.height) { - updated = true; - - // make sure that if the width and height of this.src have changed - // for some reason, we update our metadata and upload the texture again - this.width = textureData.width; - this.height = textureData.height; - - if (this.isSrcP5Image) { - data.setModified(false); - } else if (this.isSrcMediaElement || this.isSrcHTMLElement) { - // on the first frame the metadata comes in, the size will be changed - // from 0 to actual size, but pixels may not be available. - // flag for update in a future frame. - // if we don't do this, a paused video, for example, may not - // send the first frame to texture memory. - data.setModified(true); - } - } else if (this.isSrcP5Image) { - // for an image, we only update if the modified field has been set, - // for example, by a call to p5.Image.set - if (data.isModified()) { - updated = true; - data.setModified(false); - } - } else if (this.isSrcMediaElement) { - // for a media element (video), we'll check if the current time in - // the video frame matches the last time. if it doesn't match, the - // video has advanced or otherwise been taken to a new frame, - // and we need to upload it. - if (data.isModified()) { - // p5.MediaElement may have also had set/updatePixels, etc. called - // on it and should be updated, or may have been set for the first - // time! - updated = true; - data.setModified(false); - } else if (data.loadedmetadata) { - // if the meta data has been loaded, we can ask the video - // what it's current position (in time) is. - if (this._videoPrevUpdateTime !== data.time()) { - // update the texture in gpu mem only if the current - // video timestamp does not match the timestamp of the last - // time we uploaded this texture (and update the time we - // last uploaded, too) - this._videoPrevUpdateTime = data.time(); - updated = true; - } - } - } else if (this.isImageData) { - if (data._dirty) { - data._dirty = false; - updated = true; - } - } else { - /* data instanceof p5.Graphics, probably */ - // there is not enough information to tell if the texture can be - // conditionally updated; so to be safe, we just go ahead and upload it. - updated = true; - } - - if (updated) { - this.bindTexture(); - gl.texImage2D( - this.glTarget, - 0, - this.glFormat, - this.glFormat, - gl.UNSIGNED_BYTE, - textureData - ); - } - - return updated; - }; - - /** - * Binds the texture to the appropriate GL target. - * @method bindTexture - */ - p5.Texture.prototype.bindTexture = function() { - // bind texture using gl context + glTarget and - // generated gl texture object - var gl = this._renderer.GL; - gl.bindTexture(this.glTarget, this.glTex); - - return this; - }; - - /** - * Unbinds the texture from the appropriate GL target. - * @method unbindTexture - */ - p5.Texture.prototype.unbindTexture = function() { - // unbind per above, disable texturing on glTarget - var gl = this._renderer.GL; - gl.bindTexture(this.glTarget, null); - }; - - /** - * Sets how a texture is be interpolated when upscaled or downscaled. - * Nearest filtering uses nearest neighbor scaling when interpolating - * Linear filtering uses WebGL's linear scaling when interpolating - * @method setInterpolation - * @param {String} downScale Specifies the texture filtering when - * textures are shrunk. Options are LINEAR or NEAREST - * @param {String} upScale Specifies the texture filtering when - * textures are magnified. Options are LINEAR or NEAREST - * @todo implement mipmapping filters - */ - p5.Texture.prototype.setInterpolation = function(downScale, upScale) { - var gl = this._renderer.GL; - - if (downScale === constants.NEAREST) { - this.glMinFilter = gl.NEAREST; - } else { - this.glMinFilter = gl.LINEAR; - } - - if (upScale === constants.NEAREST) { - this.glMagFilter = gl.NEAREST; - } else { - this.glMagFilter = gl.LINEAR; - } - - this.bindTexture(); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, this.glMinFilter); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, this.glMagFilter); - this.unbindTexture(); - }; - - /** - * Sets the texture wrapping mode. This controls how textures behave - * when their uv's go outside of the 0 - 1 range. There are three options: - * CLAMP, REPEAT, and MIRROR. REPEAT & MIRROR are only available if the texture - * is a power of two size (128, 256, 512, 1024, etc.). - * @method setWrapMode - * @param {String} wrapX Controls the horizontal texture wrapping behavior - * @param {String} wrapY Controls the vertical texture wrapping behavior - */ - p5.Texture.prototype.setWrapMode = function(wrapX, wrapY) { - var gl = this._renderer.GL; - - // for webgl 1 we need to check if the texture is power of two - // if it isn't we will set the wrap mode to CLAMP - // webgl2 will support npot REPEAT and MIRROR but we don't check for it yet - var isPowerOfTwo = function isPowerOfTwo(x) { - return (x & (x - 1)) === 0; - }; - - var widthPowerOfTwo = isPowerOfTwo(this.width); - var heightPowerOfTwo = isPowerOfTwo(this.height); - - if (wrapX === constants.REPEAT) { - if (widthPowerOfTwo && heightPowerOfTwo) { - this.glWrapS = gl.REPEAT; - } else { - console.warn( - 'You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead' - ); - - this.glWrapS = gl.CLAMP_TO_EDGE; - } - } else if (wrapX === constants.MIRROR) { - if (widthPowerOfTwo && heightPowerOfTwo) { - this.glWrapS = gl.MIRRORED_REPEAT; - } else { - console.warn( - 'You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead' - ); - - this.glWrapS = gl.CLAMP_TO_EDGE; - } - } else { - // falling back to default if didn't get a proper mode - this.glWrapS = gl.CLAMP_TO_EDGE; - } - - if (wrapY === constants.REPEAT) { - if (widthPowerOfTwo && heightPowerOfTwo) { - this.glWrapT = gl.REPEAT; - } else { - console.warn( - 'You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead' - ); - - this.glWrapT = gl.CLAMP_TO_EDGE; - } - } else if (wrapY === constants.MIRROR) { - if (widthPowerOfTwo && heightPowerOfTwo) { - this.glWrapT = gl.MIRRORED_REPEAT; - } else { - console.warn( - 'You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead' - ); - - this.glWrapT = gl.CLAMP_TO_EDGE; - } - } else { - // falling back to default if didn't get a proper mode - this.glWrapT = gl.CLAMP_TO_EDGE; - } - - this.bindTexture(); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, this.glWrapS); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, this.glWrapT); - this.unbindTexture(); - }; - - module.exports = p5.Texture; - }, - { '../core/constants': 18, '../core/main': 24 } - ], - 78: [ - function(_dereq_, module, exports) { - 'use strict'; - - var p5 = _dereq_('../core/main'); - var constants = _dereq_('../core/constants'); - _dereq_('./p5.Shader'); - _dereq_('./p5.RendererGL.Retained'); - - // Text/Typography - // @TODO: - p5.RendererGL.prototype._applyTextProperties = function() { - //@TODO finish implementation - //console.error('text commands not yet implemented in webgl'); - }; - - p5.RendererGL.prototype.textWidth = function(s) { - if (this._isOpenType()) { - return this._textFont._textWidth(s, this._textSize); - } - - return 0; // TODO: error - }; - - // rendering constants - - // the number of rows/columns dividing each glyph - var charGridWidth = 9; - var charGridHeight = charGridWidth; - - // size of the image holding the bezier stroke info - var strokeImageWidth = 64; - var strokeImageHeight = 64; - - // size of the image holding the stroke indices for each row/col - var gridImageWidth = 64; - var gridImageHeight = 64; - - // size of the image holding the offset/length of each row/col stripe - var cellImageWidth = 64; - var cellImageHeight = 64; - - /** - * @private - * @class ImageInfos - * @param {Integer} width - * @param {Integer} height - * - * the ImageInfos class holds a list of ImageDatas of a given size. - */ - function ImageInfos(width, height) { - this.width = width; - this.height = height; - this.infos = []; // the list of images - - /** - * - * @method findImage - * @param {Integer} space - * @return {Object} contains the ImageData, and pixel index into that - * ImageData where the free space was allocated. - * - * finds free space of a given size in the ImageData list - */ - this.findImage = function(space) { - var imageSize = this.width * this.height; - if (space > imageSize) throw new Error('font is too complex to render in 3D'); - - // search through the list of images, looking for one with - // anough unused space. - var imageInfo, imageData; - for (var ii = this.infos.length - 1; ii >= 0; --ii) { - var imageInfoTest = this.infos[ii]; - if (imageInfoTest.index + space < imageSize) { - // found one - imageInfo = imageInfoTest; - imageData = imageInfoTest.imageData; - break; - } - } - - if (!imageInfo) { - try { - // create a new image - imageData = new ImageData(this.width, this.height); - } catch (err) { - // for browsers that don't support ImageData constructors (ie IE11) - // create an ImageData using the old method - var canvas = document.getElementsByTagName('canvas')[0]; - var created = !canvas; - if (!canvas) { - // create a temporary canvas - canvas = document.createElement('canvas'); - canvas.style.display = 'none'; - document.body.appendChild(canvas); - } - var ctx = canvas.getContext('2d'); - if (ctx) { - imageData = ctx.createImageData(this.width, this.height); - } - if (created) { - // distroy the temporary canvas, if necessary - document.body.removeChild(canvas); - } - } - // construct & dd the new image info - imageInfo = { index: 0, imageData: imageData }; - this.infos.push(imageInfo); - } - - var index = imageInfo.index; - imageInfo.index += space; // move to the start of the next image - imageData._dirty = true; - return { imageData: imageData, index: index }; - }; - } - - /** - * @function setPixel - * @param {Object} imageInfo - * @param {Number} r - * @param {Number} g - * @param {Number} b - * @param {Number} a - * - * writes the next pixel into an indexed ImageData - */ - function setPixel(imageInfo, r, g, b, a) { - var imageData = imageInfo.imageData; - var pixels = imageData.data; - var index = imageInfo.index++ * 4; - pixels[index++] = r; - pixels[index++] = g; - pixels[index++] = b; - pixels[index++] = a; - } - - var SQRT3 = Math.sqrt(3); - - /** - * @private - * @class FontInfo - * @param {Object} font an opentype.js font object - * - * contains cached images and glyph information for an opentype font - */ - var FontInfo = function FontInfo(font) { - this.font = font; - // the bezier curve coordinates - this.strokeImageInfos = new ImageInfos(strokeImageWidth, strokeImageHeight); - // lists of curve indices for each row/column slice - this.colDimImageInfos = new ImageInfos(gridImageWidth, gridImageHeight); - this.rowDimImageInfos = new ImageInfos(gridImageWidth, gridImageHeight); - // the offset & length of each row/col slice in the glyph - this.colCellImageInfos = new ImageInfos(cellImageWidth, cellImageHeight); - this.rowCellImageInfos = new ImageInfos(cellImageWidth, cellImageHeight); - - // the cached information for each glyph - this.glyphInfos = {}; - - /** - * @method getGlyphInfo - * @param {Glyph} glyph the x positions of points in the curve - * @returns {Object} the glyphInfo for that glyph - * - * calculates rendering info for a glyph, including the curve information, - * row & column stripes compiled into textures. - */ - - this.getGlyphInfo = function(glyph) { - // check the cache - var gi = this.glyphInfos[glyph.index]; - if (gi) return gi; - - // get the bounding box of the glyph from opentype.js - var bb = glyph.getBoundingBox(); - var xMin = bb.x1; - var yMin = bb.y1; - var gWidth = bb.x2 - xMin; - var gHeight = bb.y2 - yMin; - var cmds = glyph.path.commands; - // don't bother rendering invisible glyphs - if (gWidth === 0 || gHeight === 0 || !cmds.length) { - return (this.glyphInfos[glyph.index] = {}); - } - - var i; - var strokes = []; // the strokes in this glyph - var rows = []; // the indices of strokes in each row - var cols = []; // the indices of strokes in each column - for (i = charGridWidth - 1; i >= 0; --i) { - cols.push([]); - } - for (i = charGridHeight - 1; i >= 0; --i) { - rows.push([]); - } - - /** - * @function push - * @param {Number[]} xs the x positions of points in the curve - * @param {Number[]} ys the y positions of points in the curve - * @param {Object} v the curve information - * - * adds a curve to the rows & columns that it intersects with - */ - function push(xs, ys, v) { - var index = strokes.length; // the index of this stroke - strokes.push(v); // add this stroke to the list - - /** - * @function minMax - * @param {Number[]} rg the list of values to compare - * @param {Number} min the initial minimum value - * @param {Number} max the initial maximum value - * - * find the minimum & maximum value in a list of values - */ - function minMax(rg, min, max) { - for (var i = rg.length; i-- > 0; ) { - var v = rg[i]; - if (min > v) min = v; - if (max < v) max = v; - } - return { min: min, max: max }; - } - - // loop through the rows & columns that the curve intersects - // adding the curve to those slices - var mmX = minMax(xs, 1, 0); - var ixMin = Math.max(Math.floor(mmX.min * charGridWidth), 0); - var ixMax = Math.min(Math.ceil(mmX.max * charGridWidth), charGridWidth); - for (var iCol = ixMin; iCol < ixMax; ++iCol) { - cols[iCol].push(index); - } - - var mmY = minMax(ys, 1, 0); - var iyMin = Math.max(Math.floor(mmY.min * charGridHeight), 0); - var iyMax = Math.min(Math.ceil(mmY.max * charGridHeight), charGridHeight); - for (var iRow = iyMin; iRow < iyMax; ++iRow) { - rows[iRow].push(index); - } - } - - /** - * @function clamp - * @param {Number} v the value to clamp - * @param {Number} min the minimum value - * @param {Number} max the maxmimum value - * - * clamps a value between a minimum & maximum value - */ - function clamp(v, min, max) { - if (v < min) return min; - if (v > max) return max; - return v; - } - - /** - * @function byte - * @param {Number} v the value to scale - * - * converts a floating-point number in the range 0-1 to a byte 0-255 - */ - function byte(v) { - return clamp(255 * v, 0, 255); - } - - /** - * @private - * @class Cubic - * @param {Number} p0 the start point of the curve - * @param {Number} c0 the first control point - * @param {Number} c1 the second control point - * @param {Number} p1 the end point - * - * a cubic curve - */ - function Cubic(p0, c0, c1, p1) { - this.p0 = p0; - this.c0 = c0; - this.c1 = c1; - this.p1 = p1; - - /** - * @method toQuadratic - * @return {Object} the quadratic approximation - * - * converts the cubic to a quadtratic approximation by - * picking an appropriate quadratic control point - */ - this.toQuadratic = function() { - return { - x: this.p0.x, - y: this.p0.y, - x1: this.p1.x, - y1: this.p1.y, - cx: ((this.c0.x + this.c1.x) * 3 - (this.p0.x + this.p1.x)) / 4, - cy: ((this.c0.y + this.c1.y) * 3 - (this.p0.y + this.p1.y)) / 4 - }; - }; - - /** - * @method quadError - * @return {Number} the error - * - * calculates the magnitude of error of this curve's - * quadratic approximation. - */ - this.quadError = function() { - return ( - p5.Vector.sub( - p5.Vector.sub(this.p1, this.p0), - p5.Vector.mult(p5.Vector.sub(this.c1, this.c0), 3) - ).mag() / 2 - ); - }; - - /** - * @method split - * @param {Number} t the value (0-1) at which to split - * @return {Cubic} the second part of the curve - * - * splits the cubic into two parts at a point 't' along the curve. - * this cubic keeps its start point and its end point becomes the - * point at 't'. the 'end half is returned. - */ - this.split = function(t) { - var m1 = p5.Vector.lerp(this.p0, this.c0, t); - var m2 = p5.Vector.lerp(this.c0, this.c1, t); - var mm1 = p5.Vector.lerp(m1, m2, t); - - this.c1 = p5.Vector.lerp(this.c1, this.p1, t); - this.c0 = p5.Vector.lerp(m2, this.c1, t); - var pt = p5.Vector.lerp(mm1, this.c0, t); - var part1 = new Cubic(this.p0, m1, mm1, pt); - this.p0 = pt; - return part1; - }; - - /** - * @method splitInflections - * @return {Cubic[]} the non-inflecting pieces of this cubic - * - * returns an array containing 0, 1 or 2 cubics split resulting - * from splitting this cubic at its inflection points. - * this cubic is (potentially) altered and returned in the list. - */ - this.splitInflections = function() { - var a = p5.Vector.sub(this.c0, this.p0); - var b = p5.Vector.sub(p5.Vector.sub(this.c1, this.c0), a); - var c = p5.Vector.sub( - p5.Vector.sub(p5.Vector.sub(this.p1, this.c1), a), - p5.Vector.mult(b, 2) - ); - - var cubics = []; - - // find the derivative coefficients - var A = b.x * c.y - b.y * c.x; - if (A !== 0) { - var B = a.x * c.y - a.y * c.x; - var C = a.x * b.y - a.y * b.x; - var disc = B * B - 4 * A * C; - if (disc >= 0) { - if (A < 0) { - A = -A; - B = -B; - C = -C; - } - - var Q = Math.sqrt(disc); - var t0 = (-B - Q) / (2 * A); // the first inflection point - var t1 = (-B + Q) / (2 * A); // the second inflection point - - // test if the first inflection point lies on the curve - if (t0 > 0 && t0 < 1) { - // split at the first inflection point - cubics.push(this.split(t0)); - // scale t2 into the second part - t1 = 1 - (1 - t1) / (1 - t0); - } - - // test if the second inflection point lies on the curve - if (t1 > 0 && t1 < 1) { - // split at the second inflection point - cubics.push(this.split(t1)); - } - } - } - - cubics.push(this); - return cubics; - }; - } - - /** - * @function cubicToQuadratics - * @param {Number} x0 - * @param {Number} y0 - * @param {Number} cx0 - * @param {Number} cy0 - * @param {Number} cx1 - * @param {Number} cy1 - * @param {Number} x1 - * @param {Number} y1 - * @returns {Cubic[]} an array of cubics whose quadratic approximations - * closely match the civen cubic. - * - * converts a cubic curve to a list of quadratics. - */ - function cubicToQuadratics(x0, y0, cx0, cy0, cx1, cy1, x1, y1) { - // create the Cubic object and split it at its inflections - var cubics = new Cubic( - new p5.Vector(x0, y0), - new p5.Vector(cx0, cy0), - new p5.Vector(cx1, cy1), - new p5.Vector(x1, y1) - ).splitInflections(); - - var qs = []; // the final list of quadratics - var precision = 30 / SQRT3; - - // for each of the non-inflected pieces of the original cubic - for (var i = 0; i < cubics.length; i++) { - var cubic = cubics[i]; - - // the cubic is iteratively split in 3 pieces: - // the first piece is accumulated in 'qs', the result. - // the last piece is accumulated in 'tail', temporarily. - // the middle piece is repeatedly split again, while necessary. - var tail = []; - - var t3; - for (;;) { - // calculate this cubic's precision - t3 = precision / cubic.quadError(); - if (t3 >= 0.5 * 0.5 * 0.5) { - break; // not too bad, we're done - } - - // find a split point based on the error - var t = Math.pow(t3, 1.0 / 3.0); - // split the cubic in 3 - var start = cubic.split(t); - var middle = cubic.split(1 - t / (1 - t)); - - qs.push(start); // the first part - tail.push(cubic); // the last part - cubic = middle; // iterate on the middle piece - } - - if (t3 < 1) { - // a little excess error, split the middle in two - qs.push(cubic.split(0.5)); - } - // add the middle piece to the result - qs.push(cubic); - - // finally add the tail, reversed, onto the result - Array.prototype.push.apply(qs, tail.reverse()); - } - - return qs; - } - - /** - * @function pushLine - * @param {Number} x0 - * @param {Number} y0 - * @param {Number} x1 - * @param {Number} y1 - * - * add a straight line to the row/col grid of a glyph - */ - function pushLine(x0, y0, x1, y1) { - var mx = (x0 + x1) / 2; - var my = (y0 + y1) / 2; - push([x0, x1], [y0, y1], { x: x0, y: y0, cx: mx, cy: my }); - } - - /** - * @function samePoint - * @param {Number} x0 - * @param {Number} y0 - * @param {Number} x1 - * @param {Number} y1 - * @return {Boolean} true if the two points are sufficiently close - * - * tests if two points are close enough to be considered the same - */ - function samePoint(x0, y0, x1, y1) { - return Math.abs(x1 - x0) < 0.00001 && Math.abs(y1 - y0) < 0.00001; - } - - var x0, y0, xs, ys; - for (var iCmd = 0; iCmd < cmds.length; ++iCmd) { - var cmd = cmds[iCmd]; - // scale the coordinates to the range 0-1 - var x1 = (cmd.x - xMin) / gWidth; - var y1 = (cmd.y - yMin) / gHeight; - - // don't bother if this point is the same as the last - if (samePoint(x0, y0, x1, y1)) continue; - - switch (cmd.type) { - case 'M': // move - xs = x1; - ys = y1; - break; - case 'L': // line - pushLine(x0, y0, x1, y1); - break; - case 'Q': // quadratic - var cx = (cmd.x1 - xMin) / gWidth; - var cy = (cmd.y1 - yMin) / gHeight; - push([x0, x1, cx], [y0, y1, cy], { x: x0, y: y0, cx: cx, cy: cy }); - break; - case 'Z': // end - if (!samePoint(x0, y0, xs, ys)) { - // add an extra line closing the loop, if necessary - pushLine(x0, y0, xs, ys); - strokes.push({ x: xs, y: ys }); - } else { - strokes.push({ x: x0, y: y0 }); - } - break; - case 'C': // cubic - var cx1 = (cmd.x1 - xMin) / gWidth; - var cy1 = (cmd.y1 - yMin) / gHeight; - var cx2 = (cmd.x2 - xMin) / gWidth; - var cy2 = (cmd.y2 - yMin) / gHeight; - var qs = cubicToQuadratics(x0, y0, cx1, cy1, cx2, cy2, x1, y1); - for (var iq = 0; iq < qs.length; iq++) { - var q = qs[iq].toQuadratic(); - push([q.x, q.x1, q.cx], [q.y, q.y1, q.cy], q); - } - break; - default: - throw new Error('unknown command type: ' + cmd.type); - } - - x0 = x1; - y0 = y1; - } - - // allocate space for the strokes - var strokeCount = strokes.length; - var strokeImageInfo = this.strokeImageInfos.findImage(strokeCount); - var strokeOffset = strokeImageInfo.index; - - // fill the stroke image - for (var il = 0; il < strokeCount; ++il) { - var s = strokes[il]; - setPixel(strokeImageInfo, byte(s.x), byte(s.y), byte(s.cx), byte(s.cy)); - } - - /** - * @function layout - * @param {Number[][]} dim - * @param {ImageInfo[]} dimImageInfos - * @param {ImageInfo[]} cellImageInfos - * @return {Object} - * - * lays out the curves in a dimension (row or col) into two - * images, one for the indices of the curves themselves, and - * one containing the offset and length of those index spans. - */ - function layout(dim, dimImageInfos, cellImageInfos) { - var dimLength = dim.length; // the number of slices in this dimension - var dimImageInfo = dimImageInfos.findImage(dimLength); - var dimOffset = dimImageInfo.index; - // calculate the total number of stroke indices in this dimension - var totalStrokes = 0; - for (var id = 0; id < dimLength; ++id) { - totalStrokes += dim[id].length; - } - - // allocate space for the stroke indices - var cellImageInfo = cellImageInfos.findImage(totalStrokes); - - // for each slice in the glyph - for (var i = 0; i < dimLength; ++i) { - var strokeIndices = dim[i]; - var strokeCount = strokeIndices.length; - var cellLineIndex = cellImageInfo.index; - - // write the offset and count into the glyph slice image - setPixel( - dimImageInfo, - cellLineIndex >> 7, - cellLineIndex & 0x7f, - strokeCount >> 7, - strokeCount & 0x7f - ); - - // for each stroke index in that slice - for (var iil = 0; iil < strokeCount; ++iil) { - // write the stroke index into the slice's image - var strokeIndex = strokeIndices[iil] + strokeOffset; - setPixel(cellImageInfo, strokeIndex >> 7, strokeIndex & 0x7f, 0, 0); - } - } - - return { - cellImageInfo: cellImageInfo, - dimOffset: dimOffset, - dimImageInfo: dimImageInfo - }; - } - - // initialize the info for this glyph - gi = this.glyphInfos[glyph.index] = { - glyph: glyph, - uGlyphRect: [bb.x1, -bb.y1, bb.x2, -bb.y2], - strokeImageInfo: strokeImageInfo, - strokes: strokes, - colInfo: layout(cols, this.colDimImageInfos, this.colCellImageInfos), - rowInfo: layout(rows, this.rowDimImageInfos, this.rowCellImageInfos) - }; - - gi.uGridOffset = [gi.colInfo.dimOffset, gi.rowInfo.dimOffset]; - return gi; - }; - }; - - p5.RendererGL.prototype._renderText = function(p, line, x, y, maxY) { - if (!this._textFont || typeof this._textFont === 'string') { - console.log( - 'WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.' - ); - - return; - } - if (y >= maxY || !this._doFill) { - return; // don't render lines beyond our maxY position - } - - if (!this._isOpenType()) { - console.log('WEBGL: only opentype fonts are supported'); - return p; - } - - p.push(); // fix to #803 - - // remember this state, so it can be restored later - var doStroke = this._doStroke; - var drawMode = this.drawMode; - - this._doStroke = false; - this.drawMode = constants.TEXTURE; - - // get the cached FontInfo object - var font = this._textFont.font; - var fontInfo = this._textFont._fontInfo; - if (!fontInfo) { - fontInfo = this._textFont._fontInfo = new FontInfo(font); - } - - // calculate the alignment and move/scale the view accordingly - var pos = this._textFont._handleAlignment(this, line, x, y); - var fontSize = this._textSize; - var scale = fontSize / font.unitsPerEm; - this.translate(pos.x, pos.y, 0); - this.scale(scale, scale, 1); - - // initialize the font shader - var gl = this.GL; - var initializeShader = !this._defaultFontShader; - var sh = this._getFontShader(); - sh.init(); - sh.bindShader(); // first time around, bind the shader fully - - if (initializeShader) { - // these are constants, really. just initialize them one-time. - sh.setUniform('uGridImageSize', [gridImageWidth, gridImageHeight]); - sh.setUniform('uCellsImageSize', [cellImageWidth, cellImageHeight]); - sh.setUniform('uStrokeImageSize', [strokeImageWidth, strokeImageHeight]); - sh.setUniform('uGridSize', [charGridWidth, charGridHeight]); - } - this._applyColorBlend(this.curFillColor); - - var g = this.gHash['glyph']; - if (!g) { - // create the geometry for rendering a quad - var geom = (this._textGeom = new p5.Geometry(1, 1, function() { - for (var i = 0; i <= 1; i++) { - for (var j = 0; j <= 1; j++) { - this.vertices.push(new p5.Vector(j, i, 0)); - this.uvs.push(j, i); - } - } - })); - geom.computeFaces().computeNormals(); - g = this.createBuffers('glyph', geom); - } - - // bind the shader buffers - this._prepareBuffers(g, sh, p5.RendererGL._textBuffers); - this._bindBuffer(g.indexBuffer, gl.ELEMENT_ARRAY_BUFFER); - - // this will have to do for now... - sh.setUniform('uMaterialColor', this.curFillColor); - - try { - var dx = 0; // the x position in the line - var glyphPrev = null; // the previous glyph, used for kerning - // fetch the glyphs in the line of text - var glyphs = font.stringToGlyphs(line); - for (var ig = 0; ig < glyphs.length; ++ig) { - var glyph = glyphs[ig]; - // kern - if (glyphPrev) dx += font.getKerningValue(glyphPrev, glyph); - - var gi = fontInfo.getGlyphInfo(glyph); - if (gi.uGlyphRect) { - var rowInfo = gi.rowInfo; - var colInfo = gi.colInfo; - sh.setUniform('uSamplerStrokes', gi.strokeImageInfo.imageData); - sh.setUniform('uSamplerRowStrokes', rowInfo.cellImageInfo.imageData); - sh.setUniform('uSamplerRows', rowInfo.dimImageInfo.imageData); - sh.setUniform('uSamplerColStrokes', colInfo.cellImageInfo.imageData); - sh.setUniform('uSamplerCols', colInfo.dimImageInfo.imageData); - sh.setUniform('uGridOffset', gi.uGridOffset); - sh.setUniform('uGlyphRect', gi.uGlyphRect); - sh.setUniform('uGlyphOffset', dx); - - sh.bindTextures(); // afterwards, only textures need updating - - // draw it - gl.drawElements(gl.TRIANGLES, 6, this.GL.UNSIGNED_SHORT, 0); - } - dx += glyph.advanceWidth; - glyphPrev = glyph; - } - } finally { - // clean up - sh.unbindShader(); - - this._doStroke = doStroke; - this.drawMode = drawMode; - - p.pop(); - } - - this._pixelsState._pixelsDirty = true; - return p; - }; - }, - { - '../core/constants': 18, - '../core/main': 24, - './p5.RendererGL.Retained': 74, - './p5.Shader': 76 - } - ] - }, - {}, - [13] - )(13); -}); +/*! p5.js v0.9.0 July 01, 2019 */ +(function(f) { + if (typeof exports === 'object' && typeof module !== 'undefined') { + module.exports = f(); + } else if (typeof define === 'function' && define.amd) { + define([], f); + } else { + var g; + if (typeof window !== 'undefined') { + g = window; + } else if (typeof global !== 'undefined') { + g = global; + } else if (typeof self !== 'undefined') { + g = self; + } else { + g = this; + } + g.p5 = f(); + } +})(function() { + var define, module, exports; + return (function() { + function r(e, n, t) { + function o(i, f) { + if (!n[i]) { + if (!e[i]) { + var c = 'function' == typeof require && require; + if (!f && c) return c(i, !0); + if (u) return u(i, !0); + var a = new Error("Cannot find module '" + i + "'"); + throw ((a.code = 'MODULE_NOT_FOUND'), a); + } + var p = (n[i] = { exports: {} }); + e[i][0].call( + p.exports, + function(r) { + var n = e[i][1][r]; + return o(n || r); + }, + p, + p.exports, + r, + e, + n, + t + ); + } + return n[i].exports; + } + for (var u = 'function' == typeof require && require, i = 0; i < t.length; i++) + o(t[i]); + return o; + } + return r; + })()( + { + 1: [ + function(_dereq_, module, exports) { + module.exports = { + project: { + name: 'p5', + description: + '[![Build Status](https://travis-ci.org/processing/p5.js.svg?branch=master)](https://travis-ci.org/processing/p5.js) [![npm version](https://badge.fury.io/js/p5.svg)](https://www.npmjs.com/package/p5)', + version: '0.9.0', + url: 'https://github.com/processing/p5.js#readme' + }, + files: { + 'src/color/color_conversion.js': { + name: 'src/color/color_conversion.js', + modules: { + 'Color Conversion': 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/color/creating_reading.js': { + name: 'src/color/creating_reading.js', + modules: { + 'Creating & Reading': 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/color/p5.Color.js': { + name: 'src/color/p5.Color.js', + modules: {}, + classes: { + 'p5.Color': 1 + }, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/color/setting.js': { + name: 'src/color/setting.js', + modules: { + Setting: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/core/shape/2d_primitives.js': { + name: 'src/core/shape/2d_primitives.js', + modules: { + '2D Primitives': 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/core/shape/attributes.js': { + name: 'src/core/shape/attributes.js', + modules: { + Attributes: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/core/shape/curves.js': { + name: 'src/core/shape/curves.js', + modules: { + Curves: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/core/shape/vertex.js': { + name: 'src/core/shape/vertex.js', + modules: { + Vertex: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/core/constants.js': { + name: 'src/core/constants.js', + modules: { + Constants: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/core/environment.js': { + name: 'src/core/environment.js', + modules: { + Environment: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/core/error_helpers.js': { + name: 'src/core/error_helpers.js', + modules: {}, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/core/helpers.js': { + name: 'src/core/helpers.js', + modules: {}, + classes: {}, + fors: {}, + namespaces: {} + }, + 'src/core/init.js': { + name: 'src/core/init.js', + modules: {}, + classes: {}, + fors: {}, + namespaces: {} + }, + 'src/core/legacy.js': { + name: 'src/core/legacy.js', + modules: {}, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/core/main.js': { + name: 'src/core/main.js', + modules: { + Structure: 1 + }, + classes: { + p5: 1 + }, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/core/p5.Element.js': { + name: 'src/core/p5.Element.js', + modules: { + DOM: 1 + }, + classes: { + 'p5.Element': 1 + }, + fors: { + 'p5.Element': 1 + }, + namespaces: {} + }, + 'src/core/p5.Graphics.js': { + name: 'src/core/p5.Graphics.js', + modules: { + Rendering: 1 + }, + classes: { + 'p5.Graphics': 1 + }, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/core/p5.Renderer.js': { + name: 'src/core/p5.Renderer.js', + modules: {}, + classes: { + 'p5.Renderer': 1 + }, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/core/p5.Renderer2D.js': { + name: 'src/core/p5.Renderer2D.js', + modules: {}, + classes: {}, + fors: {}, + namespaces: {} + }, + 'src/core/rendering.js': { + name: 'src/core/rendering.js', + modules: {}, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/core/shim.js': { + name: 'src/core/shim.js', + modules: {}, + classes: {}, + fors: {}, + namespaces: {} + }, + 'src/core/structure.js': { + name: 'src/core/structure.js', + modules: {}, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/core/transform.js': { + name: 'src/core/transform.js', + modules: { + Transform: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/data/local_storage.js': { + name: 'src/data/local_storage.js', + modules: { + LocalStorage: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/data/p5.TypedDict.js': { + name: 'src/data/p5.TypedDict.js', + modules: { + Dictionary: 1 + }, + classes: { + 'p5.TypedDict': 1, + 'p5.StringDict': 1, + 'p5.NumberDict': 1 + }, + fors: { + 'p5.TypedDict': 1, + p5: 1 + }, + namespaces: {} + }, + 'src/events/acceleration.js': { + name: 'src/events/acceleration.js', + modules: { + Acceleration: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/events/keyboard.js': { + name: 'src/events/keyboard.js', + modules: { + Keyboard: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/events/mouse.js': { + name: 'src/events/mouse.js', + modules: { + Mouse: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/events/touch.js': { + name: 'src/events/touch.js', + modules: { + Touch: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/image/filters.js': { + name: 'src/image/filters.js', + modules: {}, + classes: {}, + fors: {}, + namespaces: {} + }, + 'src/image/image.js': { + name: 'src/image/image.js', + modules: { + Image: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/image/loading_displaying.js': { + name: 'src/image/loading_displaying.js', + modules: { + 'Loading & Displaying': 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/image/p5.Image.js': { + name: 'src/image/p5.Image.js', + modules: {}, + classes: { + 'p5.Image': 1 + }, + fors: {}, + namespaces: {} + }, + 'src/image/pixels.js': { + name: 'src/image/pixels.js', + modules: { + Pixels: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/io/files.js': { + name: 'src/io/files.js', + modules: { + Input: 1, + Output: 1 + }, + classes: { + 'p5.PrintWriter': 1 + }, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/io/p5.Table.js': { + name: 'src/io/p5.Table.js', + modules: { + Table: 1 + }, + classes: { + 'p5.Table': 1 + }, + fors: {}, + namespaces: {} + }, + 'src/io/p5.TableRow.js': { + name: 'src/io/p5.TableRow.js', + modules: {}, + classes: { + 'p5.TableRow': 1 + }, + fors: {}, + namespaces: {} + }, + 'src/io/p5.XML.js': { + name: 'src/io/p5.XML.js', + modules: { + XML: 1 + }, + classes: { + 'p5.XML': 1 + }, + fors: {}, + namespaces: {} + }, + 'src/math/calculation.js': { + name: 'src/math/calculation.js', + modules: { + Calculation: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/math/math.js': { + name: 'src/math/math.js', + modules: { + Math: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/math/noise.js': { + name: 'src/math/noise.js', + modules: { + Noise: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/math/p5.Vector.js': { + name: 'src/math/p5.Vector.js', + modules: {}, + classes: { + 'p5.Vector': 1 + }, + fors: {}, + namespaces: {} + }, + 'src/math/random.js': { + name: 'src/math/random.js', + modules: { + Random: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/math/trigonometry.js': { + name: 'src/math/trigonometry.js', + modules: { + Trigonometry: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/typography/attributes.js': { + name: 'src/typography/attributes.js', + modules: {}, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/typography/loading_displaying.js': { + name: 'src/typography/loading_displaying.js', + modules: {}, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/typography/p5.Font.js': { + name: 'src/typography/p5.Font.js', + modules: { + Font: 1 + }, + classes: { + 'p5.Font': 1 + }, + fors: {}, + namespaces: {} + }, + 'src/utilities/array_functions.js': { + name: 'src/utilities/array_functions.js', + modules: { + 'Array Functions': 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/utilities/conversion.js': { + name: 'src/utilities/conversion.js', + modules: { + Conversion: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/utilities/string_functions.js': { + name: 'src/utilities/string_functions.js', + modules: { + 'String Functions': 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/utilities/time_date.js': { + name: 'src/utilities/time_date.js', + modules: { + 'Time & Date': 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/webgl/3d_primitives.js': { + name: 'src/webgl/3d_primitives.js', + modules: { + '3D Primitives': 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/webgl/interaction.js': { + name: 'src/webgl/interaction.js', + modules: { + Interaction: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/webgl/light.js': { + name: 'src/webgl/light.js', + modules: { + Lights: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/webgl/loading.js': { + name: 'src/webgl/loading.js', + modules: { + '3D Models': 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/webgl/material.js': { + name: 'src/webgl/material.js', + modules: { + Material: 1 + }, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/webgl/p5.Camera.js': { + name: 'src/webgl/p5.Camera.js', + modules: { + Camera: 1 + }, + classes: { + 'p5.Camera': 1 + }, + fors: { + p5: 1, + 'p5.Camera': 1 + }, + namespaces: {} + }, + 'src/webgl/p5.Geometry.js': { + name: 'src/webgl/p5.Geometry.js', + modules: {}, + classes: { + 'p5.Geometry': 1 + }, + fors: {}, + namespaces: {} + }, + 'src/webgl/p5.Matrix.js': { + name: 'src/webgl/p5.Matrix.js', + modules: {}, + classes: { + 'p5.Matrix': 1 + }, + fors: {}, + namespaces: {} + }, + 'src/webgl/p5.RendererGL.Immediate.js': { + name: 'src/webgl/p5.RendererGL.Immediate.js', + modules: {}, + classes: {}, + fors: {}, + namespaces: {} + }, + 'src/webgl/p5.RendererGL.Retained.js': { + name: 'src/webgl/p5.RendererGL.Retained.js', + modules: {}, + classes: {}, + fors: {}, + namespaces: {} + }, + 'src/webgl/p5.RendererGL.js': { + name: 'src/webgl/p5.RendererGL.js', + modules: {}, + classes: { + 'p5.RendererGL': 1 + }, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/webgl/p5.Shader.js': { + name: 'src/webgl/p5.Shader.js', + modules: { + Shaders: 1 + }, + classes: { + 'p5.Shader': 1 + }, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/webgl/p5.Texture.js': { + name: 'src/webgl/p5.Texture.js', + modules: {}, + classes: { + 'p5.Texture': 1 + }, + fors: { + p5: 1 + }, + namespaces: {} + }, + 'src/webgl/text.js': { + name: 'src/webgl/text.js', + modules: {}, + classes: { + ImageInfos: 1, + FontInfo: 1, + Cubic: 1 + }, + fors: {}, + namespaces: {} + }, + 'lib/addons/p5.dom.js': { + name: 'lib/addons/p5.dom.js', + modules: { + 'p5.dom': 1 + }, + classes: { + 'p5.MediaElement': 1, + 'p5.File': 1 + }, + fors: { + p5: 1, + 'p5.Element': 1 + }, + namespaces: {} + }, + 'lib/addons/p5.sound.js': { + name: 'lib/addons/p5.sound.js', + modules: { + 'p5.sound': 1 + }, + classes: { + 'p5.SoundFile': 1, + 'p5.Amplitude': 1, + 'p5.FFT': 1, + 'p5.Signal': 1, + 'p5.Oscillator': 1, + 'p5.SinOsc': 1, + 'p5.TriOsc': 1, + 'p5.SawOsc': 1, + 'p5.SqrOsc': 1, + 'p5.Envelope': 1, + 'p5.Pulse': 1, + 'p5.Noise': 1, + 'p5.AudioIn': 1, + 'p5.Effect': 1, + 'p5.Filter': 1, + 'p5.LowPass': 1, + 'p5.HighPass': 1, + 'p5.BandPass': 1, + 'p5.EQ': 1, + 'p5.Panner3D': 1, + 'p5.Delay': 1, + 'p5.Reverb': 1, + 'p5.Convolver': 1, + 'p5.Phrase': 1, + 'p5.Part': 1, + 'p5.Score': 1, + 'p5.SoundLoop': 1, + 'p5.Compressor': 1, + 'p5.SoundRecorder': 1, + 'p5.PeakDetect': 1, + 'p5.Gain': 1, + 'p5.AudioVoice': 1, + 'p5.MonoSynth': 1, + 'p5.PolySynth': 1, + 'p5.Distortion': 1 + }, + fors: { + 'p5.sound': 1, + p5: 1 + }, + namespaces: {} + }, + 'lib/addons/p5.sound.min.js': { + name: 'lib/addons/p5.sound.min.js', + modules: {}, + classes: {}, + fors: {}, + namespaces: {} + } + }, + modules: { + Color: { + name: 'Color', + submodules: { + 'Color Conversion': 1, + 'Creating & Reading': 1, + Setting: 1 + }, + elements: {}, + classes: { + 'p5.Color': 1 + }, + fors: { + p5: 1 + }, + namespaces: {}, + file: 'src/color/p5.Color.js', + line: 16 + }, + 'Color Conversion': { + name: 'Color Conversion', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Color', + namespace: '', + file: 'src/color/color_conversion.js', + line: 1, + requires: ['core'] + }, + 'Creating & Reading': { + name: 'Creating & Reading', + submodules: {}, + elements: {}, + classes: { + 'p5.Color': 1 + }, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Color', + namespace: '', + file: 'src/color/p5.Color.js', + line: 16, + requires: ['core', 'constants'], + description: + '

Each color stores the color mode and level maxes that applied at the\ntime of its construction. These are used to interpret the input arguments\n(at construction and later for that instance of color) and to format the\noutput e.g. when saturation() is requested.

\n

Internally we store an array representing the ideal RGBA values in floating\npoint form, normalized from 0 to 1. From this we calculate the closest\nscreen color (RGBA levels from 0 to 255) and expose this to the renderer.

\n

We also cache normalized, floating point components of the color in various\nrepresentations as they are calculated. This is done to prevent repeating a\nconversion that has already been performed.

\n' + }, + Setting: { + name: 'Setting', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Color', + namespace: '', + file: 'src/color/setting.js', + line: 1, + requires: ['core', 'constants'] + }, + Shape: { + name: 'Shape', + submodules: { + '2D Primitives': 1, + Curves: 1, + Vertex: 1, + '3D Primitives': 1, + '3D Models': 1 + }, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + '2D Primitives': { + name: '2D Primitives', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Shape', + namespace: '', + file: 'src/core/shape/2d_primitives.js', + line: 1, + requires: ['core', 'constants'] + }, + Attributes: { + name: 'Attributes', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Typography', + namespace: '', + file: 'src/core/shape/attributes.js', + line: 1, + requires: ['core', 'constants'] + }, + Curves: { + name: 'Curves', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Shape', + namespace: '', + file: 'src/core/shape/curves.js', + line: 1, + requires: ['core'] + }, + Vertex: { + name: 'Vertex', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Shape', + namespace: '', + file: 'src/core/shape/vertex.js', + line: 1, + requires: ['core', 'constants'] + }, + Constants: { + name: 'Constants', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {}, + module: 'Constants', + file: 'src/core/constants.js', + line: 1 + }, + Environment: { + name: 'Environment', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {}, + module: 'Environment', + file: 'src/core/environment.js', + line: 1, + requires: ['core', 'constants'] + }, + Structure: { + name: 'Structure', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {}, + module: 'IO', + file: 'src/core/main.js', + line: 1, + requires: ['constants'] + }, + DOM: { + name: 'DOM', + submodules: {}, + elements: {}, + classes: { + 'p5.Element': 1 + }, + fors: { + 'p5.Element': 1 + }, + namespaces: {}, + module: 'DOM', + file: 'src/core/p5.Element.js', + line: 11, + description: + '

Base class for all elements added to a sketch, including canvas,\ngraphics buffers, and other HTML elements. Methods in blue are\nincluded in the core functionality, methods in brown are added\nwith the p5.dom\nlibrary.\nIt is not called directly, but p5.Element\nobjects are created by calling createCanvas, createGraphics,\nor in the p5.dom library, createDiv, createImg, createInput, etc.

\n' + }, + Rendering: { + name: 'Rendering', + submodules: { + undefined: 1 + }, + elements: {}, + classes: { + 'p5.RendererGL': 1, + 'p5.Graphics': 1, + 'p5.Renderer': 1 + }, + fors: { + p5: 1 + }, + namespaces: {}, + module: 'Rendering', + file: 'src/webgl/p5.RendererGL.js', + line: 519, + description: + '

Thin wrapper around a renderer, to be used for creating a\ngraphics buffer object. Use this class if you need\nto draw into an off-screen graphics buffer. The two parameters define the\nwidth and height in pixels. The fields and methods for this class are\nextensive, but mirror the normal drawing API for p5.

\n' + }, + Transform: { + name: 'Transform', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {}, + module: 'Transform', + file: 'src/core/transform.js', + line: 1, + requires: ['core', 'constants'] + }, + Data: { + name: 'Data', + submodules: { + LocalStorage: 1, + Dictionary: 1, + 'Array Functions': 1, + Conversion: 1, + 'String Functions': 1 + }, + elements: {}, + classes: { + 'p5.TypedDict': 1, + 'p5.StringDict': 1, + 'p5.NumberDict': 1 + }, + fors: { + p5: 1, + 'p5.TypedDict': 1 + }, + namespaces: {}, + file: 'src/data/p5.TypedDict.js', + line: 422 + }, + LocalStorage: { + name: 'LocalStorage', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Data', + namespace: '', + file: 'src/data/local_storage.js', + line: 1, + requires: [ + 'core\n\nThis module defines the p5 methods for working with local storage' + ] + }, + Dictionary: { + name: 'Dictionary', + submodules: {}, + elements: {}, + classes: { + 'p5.TypedDict': 1, + 'p5.StringDict': 1, + 'p5.NumberDict': 1 + }, + fors: { + 'p5.TypedDict': 1, + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Data', + namespace: '', + file: 'src/data/p5.TypedDict.js', + line: 422, + requires: [ + 'core\n\nThis module defines the p5 methods for the p5 Dictionary classes.\nThe classes StringDict and NumberDict are for storing and working\nwith key-value pairs.' + ], + description: + '

Base class for all p5.Dictionary types. Specifically\n typed Dictionary classes inherit from this class.

\n' + }, + Events: { + name: 'Events', + submodules: { + Acceleration: 1, + Keyboard: 1, + Mouse: 1, + Touch: 1 + }, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + namespaces: {} + }, + Acceleration: { + name: 'Acceleration', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Events', + namespace: '', + file: 'src/events/acceleration.js', + line: 1, + requires: ['core'] + }, + Keyboard: { + name: 'Keyboard', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Events', + namespace: '', + file: 'src/events/keyboard.js', + line: 1, + requires: ['core'] + }, + Mouse: { + name: 'Mouse', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Events', + namespace: '', + file: 'src/events/mouse.js', + line: 1, + requires: ['core', 'constants'] + }, + Touch: { + name: 'Touch', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Events', + namespace: '', + file: 'src/events/touch.js', + line: 1, + requires: ['core'] + }, + Image: { + name: 'Image', + submodules: { + Pixels: 1 + }, + elements: {}, + classes: { + 'p5.Image': 1 + }, + fors: { + p5: 1 + }, + namespaces: {}, + module: 'Image', + file: 'src/image/p5.Image.js', + line: 23, + requires: ['core'], + description: + '

Creates a new p5.Image. A p5.Image is a canvas backed representation of an\nimage.\n

\np5 can display .gif, .jpg and .png images. Images may be displayed\nin 2D and 3D space. Before an image is used, it must be loaded with the\nloadImage() function. The p5.Image class contains fields for the width and\nheight of the image, as well as an array called pixels[] that contains the\nvalues for every pixel in the image.\n

\nThe methods described below allow easy access to the image's pixels and\nalpha channel and simplify the process of compositing.\n

\nBefore using the pixels[] array, be sure to use the loadPixels() method on\nthe image to make sure that the pixel data is properly loaded.

\n' + }, + 'Loading & Displaying': { + name: 'Loading & Displaying', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Typography', + namespace: '', + file: 'src/image/loading_displaying.js', + line: 1, + requires: ['core'] + }, + Pixels: { + name: 'Pixels', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Image', + namespace: '', + file: 'src/image/pixels.js', + line: 1, + requires: ['core'] + }, + IO: { + name: 'IO', + submodules: { + Structure: 1, + Input: 1, + Output: 1, + Table: 1, + XML: 1, + 'Time & Date': 1 + }, + elements: {}, + classes: { + p5: 1, + 'p5.PrintWriter': 1, + 'p5.Table': 1, + 'p5.TableRow': 1, + 'p5.XML': 1 + }, + fors: { + p5: 1 + }, + namespaces: {}, + file: 'src/io/p5.XML.js', + line: 11 + }, + Input: { + name: 'Input', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'IO', + namespace: '', + file: 'src/io/files.js', + line: 1, + requires: ['core'] + }, + Output: { + name: 'Output', + submodules: {}, + elements: {}, + classes: { + p5: 1, + 'p5.PrintWriter': 1 + }, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'IO', + namespace: '', + file: 'src/io/files.js', + line: 1238, + description: + '

This is the p5 instance constructor.

\n

A p5 instance holds all the properties and methods related to\na p5 sketch. It expects an incoming sketch closure and it can also\ntake an optional node parameter for attaching the generated p5 canvas\nto a node. The sketch closure takes the newly created p5 instance as\nits sole argument and may optionally set preload(), setup(), and/or\ndraw() properties on it for running a sketch.

\n

A p5 sketch can run in "global" or "instance" mode:\n"global" - all properties and methods are attached to the window\n"instance" - all properties and methods are bound to this p5 object

\n' + }, + Table: { + name: 'Table', + submodules: {}, + elements: {}, + classes: { + 'p5.Table': 1, + 'p5.TableRow': 1 + }, + fors: {}, + is_submodule: 1, + namespaces: {}, + module: 'IO', + namespace: '', + file: 'src/io/p5.TableRow.js', + line: 11, + requires: ['core'], + description: + '

Table objects store data with multiple rows and columns, much\nlike in a traditional spreadsheet. Tables can be generated from\nscratch, dynamically, or using data from an existing file.

\n' + }, + XML: { + name: 'XML', + submodules: {}, + elements: {}, + classes: { + 'p5.XML': 1 + }, + fors: {}, + is_submodule: 1, + namespaces: {}, + module: 'IO', + namespace: '', + file: 'src/io/p5.XML.js', + line: 11, + requires: ['core'], + description: + '

XML is a representation of an XML object, able to parse XML code. Use\nloadXML() to load external XML files and create XML objects.

\n' + }, + Math: { + name: 'Math', + submodules: { + Calculation: 1, + Noise: 1, + Random: 1, + Trigonometry: 1 + }, + elements: {}, + classes: { + 'p5.Vector': 1 + }, + fors: { + p5: 1 + }, + namespaces: {}, + module: 'Math', + file: 'src/math/p5.Vector.js', + line: 12, + requires: ['core'], + description: + '

A class to describe a two or three dimensional vector, specifically\na Euclidean (also known as geometric) vector. A vector is an entity\nthat has both magnitude and direction. The datatype, however, stores\nthe components of the vector (x, y for 2D, and x, y, z for 3D). The magnitude\nand direction can be accessed via the methods mag() and heading().\n

\nIn many of the p5.js examples, you will see p5.Vector used to describe a\nposition, velocity, or acceleration. For example, if you consider a rectangle\nmoving across the screen, at any given instant it has a position (a vector\nthat points from the origin to its location), a velocity (the rate at which\nthe object's position changes per time unit, expressed as a vector), and\nacceleration (the rate at which the object's velocity changes per time\nunit, expressed as a vector).\n

\nSince vectors represent groupings of values, we cannot simply use\ntraditional addition/multiplication/etc. Instead, we'll need to do some\n"vector" math, which is made easy by the methods inside the p5.Vector class.

\n' + }, + Calculation: { + name: 'Calculation', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Math', + namespace: '', + file: 'src/math/calculation.js', + line: 1, + requires: ['core'] + }, + Noise: { + name: 'Noise', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Math', + namespace: '', + file: 'src/math/noise.js', + line: 14, + requires: ['core'] + }, + Random: { + name: 'Random', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Math', + namespace: '', + file: 'src/math/random.js', + line: 1, + requires: ['core'] + }, + Trigonometry: { + name: 'Trigonometry', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Math', + namespace: '', + file: 'src/math/trigonometry.js', + line: 1, + requires: ['core', 'constants'] + }, + Typography: { + name: 'Typography', + submodules: { + Attributes: 1, + 'Loading & Displaying': 1, + Font: 1 + }, + elements: {}, + classes: { + 'p5.Font': 1 + }, + fors: { + p5: 1 + }, + namespaces: {}, + file: 'src/typography/p5.Font.js', + line: 15 + }, + Font: { + name: 'Font', + submodules: {}, + elements: {}, + classes: { + 'p5.Font': 1 + }, + fors: {}, + is_submodule: 1, + namespaces: {}, + module: 'Typography', + namespace: '', + file: 'src/typography/p5.Font.js', + line: 15, + description: + '

This module defines the p5.Font class and functions for\ndrawing text to the display canvas.

\n', + requires: ['core', 'constants'] + }, + 'Array Functions': { + name: 'Array Functions', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Data', + namespace: '', + file: 'src/utilities/array_functions.js', + line: 1, + requires: ['core'] + }, + Conversion: { + name: 'Conversion', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Data', + namespace: '', + file: 'src/utilities/conversion.js', + line: 1, + requires: ['core'] + }, + 'String Functions': { + name: 'String Functions', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Data', + namespace: '', + file: 'src/utilities/string_functions.js', + line: 1, + requires: ['core'] + }, + 'Time & Date': { + name: 'Time & Date', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'IO', + namespace: '', + file: 'src/utilities/time_date.js', + line: 1, + requires: ['core'] + }, + '3D Primitives': { + name: '3D Primitives', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Shape', + namespace: '', + file: 'src/webgl/3d_primitives.js', + line: 1, + requires: ['core', 'p5.Geometry'] + }, + 'Lights, Camera': { + name: 'Lights, Camera', + submodules: { + Interaction: 1, + Lights: 1, + Material: 1, + Camera: 1, + Shaders: 1 + }, + elements: {}, + classes: { + 'p5.Camera': 1, + 'p5.Geometry': 1, + 'p5.Matrix': 1, + 'p5.Shader': 1, + 'p5.Texture': 1, + ImageInfos: 1, + FontInfo: 1, + Cubic: 1 + }, + fors: { + p5: 1, + 'p5.Camera': 1 + }, + namespaces: {}, + file: 'src/webgl/text.js', + line: 259 + }, + Interaction: { + name: 'Interaction', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Lights, Camera', + namespace: '', + file: 'src/webgl/interaction.js', + line: 1, + requires: ['core'] + }, + Lights: { + name: 'Lights', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Lights, Camera', + namespace: '', + file: 'src/webgl/light.js', + line: 1, + requires: ['core'] + }, + '3D Models': { + name: '3D Models', + submodules: {}, + elements: {}, + classes: {}, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Shape', + namespace: '', + file: 'src/webgl/loading.js', + line: 1, + requires: ['core', 'p5.Geometry'] + }, + Material: { + name: 'Material', + submodules: {}, + elements: {}, + classes: { + 'p5.Texture': 1 + }, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Lights, Camera', + namespace: '', + file: 'src/webgl/p5.Texture.js', + line: 14, + requires: ['core'], + description: '

This module defines the p5.Texture class

\n' + }, + Camera: { + name: 'Camera', + submodules: {}, + elements: {}, + classes: { + 'p5.Camera': 1 + }, + fors: { + p5: 1, + 'p5.Camera': 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Lights, Camera', + namespace: '', + file: 'src/webgl/p5.Camera.js', + line: 209, + requires: ['core'], + description: + '

This class describes a camera for use in p5's\n\nWebGL mode. It contains camera position, orientation, and projection\ninformation necessary for rendering a 3D scene.

\n

New p5.Camera objects can be made through the\ncreateCamera() function and controlled through\nthe methods described below. A camera created in this way will use a default\nposition in the scene and a default perspective projection until these\nproperties are changed through the various methods available. It is possible\nto create multiple cameras, in which case the current camera\ncan be set through the setCamera() method.

\n

Note:\nThe methods below operate in two coordinate systems: the 'world' coordinate\nsystem describe positions in terms of their relationship to the origin along\nthe X, Y and Z axes whereas the camera's 'local' coordinate system\ndescribes positions from the camera's point of view: left-right, up-down,\nand forward-backward. The move() method,\nfor instance, moves the camera along its own axes, whereas the\nsetPosition()\nmethod sets the camera's position in world-space.

\n' + }, + Shaders: { + name: 'Shaders', + submodules: {}, + elements: {}, + classes: { + 'p5.Shader': 1 + }, + fors: { + p5: 1 + }, + is_submodule: 1, + namespaces: {}, + module: 'Lights, Camera', + namespace: '', + file: 'src/webgl/p5.Shader.js', + line: 13, + description: '

This module defines the p5.Shader class

\n', + requires: ['core'] + }, + 'p5.dom': { + name: 'p5.dom', + submodules: {}, + elements: {}, + classes: { + 'p5.MediaElement': 1, + 'p5.File': 1 + }, + fors: { + p5: 1, + 'p5.Element': 1 + }, + namespaces: {}, + module: 'p5.dom', + file: 'lib/addons/p5.dom.js', + line: 3323, + description: + "

The web is much more than just canvas and p5.dom makes it easy to interact\nwith other HTML5 objects, including text, hyperlink, image, input, video,\naudio, and webcam.

\n

There is a set of creation methods, DOM manipulation methods, and\nan extended p5.Element that supports a range of HTML elements. See the\n\nbeyond the canvas tutorial for a full overview of how this addon works.

\n

Methods and properties shown in black are part of the p5.js core, items in\nblue are part of the p5.dom library. You will need to include an extra file\nin order to access the blue functions. See the\nusing a library\nsection for information on how to include this library. p5.dom comes with\np5 complete or you can download the single file\n\nhere.

\n

See tutorial: beyond the canvas\nfor more info on how to use this library.

\n", + tag: 'main', + itemtype: 'main' + }, + 'p5.sound': { + name: 'p5.sound', + submodules: {}, + elements: {}, + classes: { + 'p5.sound': 1, + 'p5.SoundFile': 1, + 'p5.Amplitude': 1, + 'p5.FFT': 1, + 'p5.Signal': 1, + 'p5.Oscillator': 1, + 'p5.SinOsc': 1, + 'p5.TriOsc': 1, + 'p5.SawOsc': 1, + 'p5.SqrOsc': 1, + 'p5.Envelope': 1, + 'p5.Pulse': 1, + 'p5.Noise': 1, + 'p5.AudioIn': 1, + 'p5.Effect': 1, + 'p5.Filter': 1, + 'p5.LowPass': 1, + 'p5.HighPass': 1, + 'p5.BandPass': 1, + 'p5.EQ': 1, + 'p5.Panner3D': 1, + 'p5.Delay': 1, + 'p5.Reverb': 1, + 'p5.Convolver': 1, + 'p5.Phrase': 1, + 'p5.Part': 1, + 'p5.Score': 1, + 'p5.SoundLoop': 1, + 'p5.Compressor': 1, + 'p5.SoundRecorder': 1, + 'p5.PeakDetect': 1, + 'p5.Gain': 1, + 'p5.AudioVoice': 1, + 'p5.MonoSynth': 1, + 'p5.PolySynth': 1, + 'p5.Distortion': 1 + }, + fors: { + 'p5.sound': 1, + p5: 1 + }, + namespaces: {}, + module: 'p5.sound', + file: 'lib/addons/p5.sound.js', + line: 12767, + description: + '

p5.sound extends p5 with Web Audio functionality including audio input,\nplayback, analysis and synthesis.\n

\np5.SoundFile: Load and play sound files.
\np5.Amplitude: Get the current volume of a sound.
\np5.AudioIn: Get sound from an input source, typically\n a computer microphone.
\np5.FFT: Analyze the frequency of sound. Returns\n results from the frequency spectrum or time domain (waveform).
\np5.Oscillator: Generate Sine,\n Triangle, Square and Sawtooth waveforms. Base class of\n p5.Noise and p5.Pulse.\n
\np5.Envelope: An Envelope is a series\n of fades over time. Often used to control an object's\n output gain level as an "ADSR Envelope" (Attack, Decay,\n Sustain, Release). Can also modulate other parameters.
\np5.Delay: A delay effect with\n parameters for feedback, delayTime, and lowpass filter.
\np5.Filter: Filter the frequency range of a\n sound.\n
\np5.Reverb: Add reverb to a sound by specifying\n duration and decay.
\np5.Convolver: Extends\np5.Reverb to simulate the sound of real\n physical spaces through convolution.
\np5.SoundRecorder: Record sound for playback\n / save the .wav file.\np5.Phrase, p5.Part and\np5.Score: Compose musical sequences.\n

\np5.sound is on GitHub.\nDownload the latest version\nhere.

\n', + tag: 'main', + itemtype: 'main' + } + }, + classes: { + p5: { + name: 'p5', + shortname: 'p5', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'IO', + submodule: 'Output', + namespace: '', + file: 'src/core/main.js', + line: 15, + description: + '

This is the p5 instance constructor.

\n

A p5 instance holds all the properties and methods related to\na p5 sketch. It expects an incoming sketch closure and it can also\ntake an optional node parameter for attaching the generated p5 canvas\nto a node. The sketch closure takes the newly created p5 instance as\nits sole argument and may optionally set preload(), setup(), and/or\ndraw() properties on it for running a sketch.

\n

A p5 sketch can run in "global" or "instance" mode:\n"global" - all properties and methods are attached to the window\n"instance" - all properties and methods are bound to this p5 object

\n', + is_constructor: 1, + params: [ + { + name: 'sketch', + description: + '

a closure that can set optional preload(),\n setup(), and/or draw() properties on the\n given p5 instance

\n', + type: 'Function' + }, + { + name: 'node', + description: '

element to attach canvas to

\n', + type: 'HTMLElement', + optional: true + } + ], + return: { + description: 'a p5 instance', + type: 'P5' + } + }, + 'p5.Color': { + name: 'p5.Color', + shortname: 'p5.Color', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'Color', + submodule: 'Creating & Reading', + namespace: '', + file: 'src/color/p5.Color.js', + line: 16, + description: + '

Each color stores the color mode and level maxes that applied at the\ntime of its construction. These are used to interpret the input arguments\n(at construction and later for that instance of color) and to format the\noutput e.g. when saturation() is requested.

\n

Internally we store an array representing the ideal RGBA values in floating\npoint form, normalized from 0 to 1. From this we calculate the closest\nscreen color (RGBA levels from 0 to 255) and expose this to the renderer.

\n

We also cache normalized, floating point components of the color in various\nrepresentations as they are calculated. This is done to prevent repeating a\nconversion that has already been performed.

\n' + }, + 'p5.Element': { + name: 'p5.Element', + shortname: 'p5.Element', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'DOM', + submodule: 'DOM', + namespace: '', + file: 'src/core/p5.Element.js', + line: 11, + description: + '

Base class for all elements added to a sketch, including canvas,\ngraphics buffers, and other HTML elements. Methods in blue are\nincluded in the core functionality, methods in brown are added\nwith the p5.dom\nlibrary.\nIt is not called directly, but p5.Element\nobjects are created by calling createCanvas, createGraphics,\nor in the p5.dom library, createDiv, createImg, createInput, etc.

\n', + params: [ + { + name: 'elt', + description: '

DOM node that is wrapped

\n', + type: 'String' + }, + { + name: 'pInst', + description: '

pointer to p5 instance

\n', + type: 'P5', + optional: true + } + ] + }, + 'p5.Graphics': { + name: 'p5.Graphics', + shortname: 'p5.Graphics', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'Rendering', + submodule: 'Rendering', + namespace: '', + file: 'src/core/p5.Graphics.js', + line: 12, + description: + '

Thin wrapper around a renderer, to be used for creating a\ngraphics buffer object. Use this class if you need\nto draw into an off-screen graphics buffer. The two parameters define the\nwidth and height in pixels. The fields and methods for this class are\nextensive, but mirror the normal drawing API for p5.

\n', + extends: 'p5.Element', + params: [ + { + name: 'w', + description: '

width

\n', + type: 'Number' + }, + { + name: 'h', + description: '

height

\n', + type: 'Number' + }, + { + name: 'renderer', + description: '

the renderer to use, either P2D or WEBGL

\n', + type: 'Constant' + }, + { + name: 'pInst', + description: '

pointer to p5 instance

\n', + type: 'P5', + optional: true + } + ] + }, + 'p5.Renderer': { + name: 'p5.Renderer', + shortname: 'p5.Renderer', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'Rendering', + submodule: 'Rendering', + namespace: '', + file: 'src/core/p5.Renderer.js', + line: 12, + description: + '

Main graphics and rendering context, as well as the base API\nimplementation for p5.js "core". To be used as the superclass for\nRenderer2D and Renderer3D classes, respecitvely.

\n', + is_constructor: 1, + extends: 'p5.Element', + params: [ + { + name: 'elt', + description: '

DOM node that is wrapped

\n', + type: 'String' + }, + { + name: 'pInst', + description: '

pointer to p5 instance

\n', + type: 'P5', + optional: true + }, + { + name: 'isMainCanvas', + description: '

whether we're using it as main canvas

\n', + type: 'Boolean', + optional: true + } + ] + }, + 'p5.TypedDict': { + name: 'p5.TypedDict', + shortname: 'p5.TypedDict', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'Data', + submodule: 'Dictionary', + namespace: '', + file: 'src/data/p5.TypedDict.js', + line: 84, + description: + '

Base class for all p5.Dictionary types. Specifically\n typed Dictionary classes inherit from this class.

\n' + }, + 'p5.StringDict': { + name: 'p5.StringDict', + shortname: 'p5.StringDict', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'Data', + submodule: 'Dictionary', + namespace: '', + file: 'src/data/p5.TypedDict.js', + line: 403, + description: '

A simple Dictionary class for Strings.

\n', + extends: 'p5.TypedDict' + }, + 'p5.NumberDict': { + name: 'p5.NumberDict', + shortname: 'p5.NumberDict', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'Data', + submodule: 'Dictionary', + namespace: '', + file: 'src/data/p5.TypedDict.js', + line: 422, + description: '

A simple Dictionary class for Numbers.

\n', + extends: 'p5.TypedDict' + }, + 'p5.Image': { + name: 'p5.Image', + shortname: 'p5.Image', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'Image', + submodule: 'Image', + namespace: '', + file: 'src/image/p5.Image.js', + line: 23, + description: + '

Creates a new p5.Image. A p5.Image is a canvas backed representation of an\nimage.\n

\np5 can display .gif, .jpg and .png images. Images may be displayed\nin 2D and 3D space. Before an image is used, it must be loaded with the\nloadImage() function. The p5.Image class contains fields for the width and\nheight of the image, as well as an array called pixels[] that contains the\nvalues for every pixel in the image.\n

\nThe methods described below allow easy access to the image's pixels and\nalpha channel and simplify the process of compositing.\n

\nBefore using the pixels[] array, be sure to use the loadPixels() method on\nthe image to make sure that the pixel data is properly loaded.

\n', + example: [ + '\n
\nfunction setup() {\n let img = createImage(100, 100); // same as new p5.Image(100, 100);\n img.loadPixels();\n createCanvas(100, 100);\n background(0);\n\n // helper for writing color to array\n function writeColor(image, x, y, red, green, blue, alpha) {\n let index = (x + y * width) * 4;\n image.pixels[index] = red;\n image.pixels[index + 1] = green;\n image.pixels[index + 2] = blue;\n image.pixels[index + 3] = alpha;\n }\n\n let x, y;\n // fill with random colors\n for (y = 0; y < img.height; y++) {\n for (x = 0; x < img.width; x++) {\n let red = random(255);\n let green = random(255);\n let blue = random(255);\n let alpha = 255;\n writeColor(img, x, y, red, green, blue, alpha);\n }\n }\n\n // draw a red line\n y = 0;\n for (x = 0; x < img.width; x++) {\n writeColor(img, x, y, 255, 0, 0, 255);\n }\n\n // draw a green line\n y = img.height - 1;\n for (x = 0; x < img.width; x++) {\n writeColor(img, x, y, 0, 255, 0, 255);\n }\n\n img.updatePixels();\n image(img, 0, 0);\n}\n
' + ], + params: [ + { + name: 'width', + description: '', + type: 'Number' + }, + { + name: 'height', + description: '', + type: 'Number' + } + ] + }, + 'p5.PrintWriter': { + name: 'p5.PrintWriter', + shortname: 'p5.PrintWriter', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'IO', + submodule: 'Output', + namespace: '', + file: 'src/io/files.js', + line: 1238, + params: [ + { + name: 'filename', + description: '', + type: 'String' + }, + { + name: 'extension', + description: '', + type: 'String', + optional: true + } + ] + }, + 'p5.Table': { + name: 'p5.Table', + shortname: 'p5.Table', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'IO', + submodule: 'Table', + namespace: '', + file: 'src/io/p5.Table.js', + line: 35, + description: + '

Table objects store data with multiple rows and columns, much\nlike in a traditional spreadsheet. Tables can be generated from\nscratch, dynamically, or using data from an existing file.

\n', + is_constructor: 1, + params: [ + { + name: 'rows', + description: '

An array of p5.TableRow objects

\n', + type: 'p5.TableRow[]', + optional: true + } + ] + }, + 'p5.TableRow': { + name: 'p5.TableRow', + shortname: 'p5.TableRow', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'IO', + submodule: 'Table', + namespace: '', + file: 'src/io/p5.TableRow.js', + line: 11, + description: + '

A TableRow object represents a single row of data values,\nstored in columns, from a table.

\n

A Table Row contains both an ordered array, and an unordered\nJSON object.

\n', + is_constructor: 1, + params: [ + { + name: 'str', + description: + '

optional: populate the row with a\n string of values, separated by the\n separator

\n', + type: 'String', + optional: true + }, + { + name: 'separator', + description: '

comma separated values (csv) by default

\n', + type: 'String', + optional: true + } + ] + }, + 'p5.XML': { + name: 'p5.XML', + shortname: 'p5.XML', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'IO', + submodule: 'XML', + namespace: '', + file: 'src/io/p5.XML.js', + line: 11, + description: + '

XML is a representation of an XML object, able to parse XML code. Use\nloadXML() to load external XML files and create XML objects.

\n', + is_constructor: 1, + example: [ + '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let children = xml.getChildren(\'animal\');\n\n for (let i = 0; i < children.length; i++) {\n let id = children[i].getNum(\'id\');\n let coloring = children[i].getString(\'species\');\n let name = children[i].getContent();\n print(id + \', \' + coloring + \', \' + name);\n }\n}\n\n// Sketch prints:\n// 0, Capra hircus, Goat\n// 1, Panthera pardus, Leopard\n// 2, Equus zebra, Zebra\n
' + ], + alt: 'no image displayed' + }, + 'p5.Vector': { + name: 'p5.Vector', + shortname: 'p5.Vector', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'Math', + submodule: 'Math', + namespace: '', + file: 'src/math/p5.Vector.js', + line: 12, + description: + '

A class to describe a two or three dimensional vector, specifically\na Euclidean (also known as geometric) vector. A vector is an entity\nthat has both magnitude and direction. The datatype, however, stores\nthe components of the vector (x, y for 2D, and x, y, z for 3D). The magnitude\nand direction can be accessed via the methods mag() and heading().\n

\nIn many of the p5.js examples, you will see p5.Vector used to describe a\nposition, velocity, or acceleration. For example, if you consider a rectangle\nmoving across the screen, at any given instant it has a position (a vector\nthat points from the origin to its location), a velocity (the rate at which\nthe object's position changes per time unit, expressed as a vector), and\nacceleration (the rate at which the object's velocity changes per time\nunit, expressed as a vector).\n

\nSince vectors represent groupings of values, we cannot simply use\ntraditional addition/multiplication/etc. Instead, we'll need to do some\n"vector" math, which is made easy by the methods inside the p5.Vector class.

\n', + params: [ + { + name: 'x', + description: '

x component of the vector

\n', + type: 'Number', + optional: true + }, + { + name: 'y', + description: '

y component of the vector

\n', + type: 'Number', + optional: true + }, + { + name: 'z', + description: '

z component of the vector

\n', + type: 'Number', + optional: true + } + ], + example: [ + '\n
\n\nlet v1 = createVector(40, 50);\nlet v2 = createVector(40, 50);\n\nellipse(v1.x, v1.y, 50, 50);\nellipse(v2.x, v2.y, 50, 50);\nv1.add(v2);\nellipse(v1.x, v1.y, 50, 50);\n\n
' + ], + alt: + '2 white ellipses. One center-left the other bottom right and off canvas' + }, + 'p5.Font': { + name: 'p5.Font', + shortname: 'p5.Font', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'Typography', + submodule: 'Font', + namespace: '', + file: 'src/typography/p5.Font.js', + line: 15, + description: '

Base class for font handling

\n', + params: [ + { + name: 'pInst', + description: '

pointer to p5 instance

\n', + type: 'P5', + optional: true + } + ] + }, + 'p5.Camera': { + name: 'p5.Camera', + shortname: 'p5.Camera', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'Lights, Camera', + submodule: 'Camera', + namespace: '', + file: 'src/webgl/p5.Camera.js', + line: 209, + description: + '

This class describes a camera for use in p5's\n\nWebGL mode. It contains camera position, orientation, and projection\ninformation necessary for rendering a 3D scene.

\n

New p5.Camera objects can be made through the\ncreateCamera() function and controlled through\nthe methods described below. A camera created in this way will use a default\nposition in the scene and a default perspective projection until these\nproperties are changed through the various methods available. It is possible\nto create multiple cameras, in which case the current camera\ncan be set through the setCamera() method.

\n

Note:\nThe methods below operate in two coordinate systems: the 'world' coordinate\nsystem describe positions in terms of their relationship to the origin along\nthe X, Y and Z axes whereas the camera's 'local' coordinate system\ndescribes positions from the camera's point of view: left-right, up-down,\nand forward-backward. The move() method,\nfor instance, moves the camera along its own axes, whereas the\nsetPosition()\nmethod sets the camera's position in world-space.

\n', + params: [ + { + name: 'rendererGL', + description: '

instance of WebGL renderer

\n', + type: 'RendererGL' + } + ], + example: [ + "\n
\n\nlet cam;\nlet delta = 0.01;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n normalMaterial();\n cam = createCamera();\n // set initial pan angle\n cam.pan(-0.8);\n}\n\nfunction draw() {\n background(200);\n\n // pan camera according to angle 'delta'\n cam.pan(delta);\n\n // every 160 frames, switch direction\n if (frameCount % 160 === 0) {\n delta *= -1;\n }\n\n rotateX(frameCount * 0.01);\n translate(-100, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n}\n\n
" + ], + alt: 'camera view pans left and right across a series of rotating 3D boxes.' + }, + 'p5.Geometry': { + name: 'p5.Geometry', + shortname: 'p5.Geometry', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'Lights, Camera', + namespace: '', + file: 'src/webgl/p5.Geometry.js', + line: 6, + description: '

p5 Geometry class

\n', + is_constructor: 1, + params: [ + { + name: 'detailX', + description: '

number of vertices on horizontal surface

\n', + type: 'Integer', + optional: true + }, + { + name: 'detailY', + description: '

number of vertices on horizontal surface

\n', + type: 'Integer', + optional: true + }, + { + name: 'callback', + description: '

function to call upon object instantiation.

\n', + type: 'Function', + optional: true + } + ] + }, + 'p5.Shader': { + name: 'p5.Shader', + shortname: 'p5.Shader', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'Lights, Camera', + submodule: 'Shaders', + namespace: '', + file: 'src/webgl/p5.Shader.js', + line: 13, + description: '

Shader class for WEBGL Mode

\n', + params: [ + { + name: 'renderer', + description: + '

an instance of p5.RendererGL that\nwill provide the GL context for this new p5.Shader

\n', + type: 'p5.RendererGL' + }, + { + name: 'vertSrc', + description: '

source code for the vertex shader (as a string)

\n', + type: 'String' + }, + { + name: 'fragSrc', + description: + '

source code for the fragment shader (as a string)

\n', + type: 'String' + } + ] + }, + 'p5.MediaElement': { + name: 'p5.MediaElement', + shortname: 'p5.MediaElement', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.dom', + submodule: 'p5.dom', + namespace: '', + file: 'lib/addons/p5.dom.js', + line: 2228, + description: + '

Extends p5.Element to handle audio and video. In addition to the methods\nof p5.Element, it also contains methods for controlling media. It is not\ncalled directly, but p5.MediaElements are created by calling createVideo,\ncreateAudio, and createCapture.

\n', + is_constructor: 1, + params: [ + { + name: 'elt', + description: '

DOM node that is wrapped

\n', + type: 'String' + } + ] + }, + 'p5.File': { + name: 'p5.File', + shortname: 'p5.File', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.dom', + submodule: 'p5.dom', + namespace: '', + file: 'lib/addons/p5.dom.js', + line: 3323, + description: + '

Base class for a file.\nUsed for Element.drop and createFileInput.

\n', + is_constructor: 1, + params: [ + { + name: 'file', + description: '

File that is wrapped

\n', + type: 'File' + } + ] + }, + 'p5.sound': { + name: 'p5.sound', + shortname: 'p5.sound', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '' + }, + 'p5.SoundFile': { + name: 'p5.SoundFile', + shortname: 'p5.SoundFile', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 1645, + description: + '

SoundFile object with a path to a file.

\n\n

The p5.SoundFile may not be available immediately because\nit loads the file information asynchronously.

\n\n

To do something with the sound as soon as it loads\npass the name of a function as the second parameter.

\n\n

Only one file path is required. However, audio file formats\n(i.e. mp3, ogg, wav and m4a/aac) are not supported by all\nweb browsers. If you want to ensure compatability, instead of a single\nfile path, you may include an Array of filepaths, and the browser will\nchoose a format that works.

', + is_constructor: 1, + params: [ + { + name: 'path', + description: + '

path to a sound file (String). Optionally,\n you may include multiple file formats in\n an array. Alternately, accepts an object\n from the HTML5 File API, or a p5.File.

\n', + type: 'String|Array' + }, + { + name: 'successCallback', + description: '

Name of a function to call once file loads

\n', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: + '

Name of a function to call if file fails to\n load. This function will receive an error or\n XMLHttpRequest object with information\n about what went wrong.

\n', + type: 'Function', + optional: true + }, + { + name: 'whileLoadingCallback', + description: + '

Name of a function to call while file\n is loading. That function will\n receive progress of the request to\n load the sound file\n (between 0 and 1) as its first\n parameter. This progress\n does not account for the additional\n time needed to decode the audio data.

\n', + type: 'Function', + optional: true + } + ], + example: [ + "\n
\n\nfunction preload() {\n soundFormats('mp3', 'ogg');\n mySound = loadSound('assets/doorbell.mp3');\n}\n\nfunction setup() {\n mySound.setVolume(0.1);\n mySound.play();\n}\n\n
" + ] + }, + 'p5.Amplitude': { + name: 'p5.Amplitude', + shortname: 'p5.Amplitude', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 3179, + description: + '

Amplitude measures volume between 0.0 and 1.0.\nListens to all p5sound by default, or use setInput()\nto listen to a specific sound source. Accepts an optional\nsmoothing value, which defaults to 0.

\n', + is_constructor: 1, + params: [ + { + name: 'smoothing', + description: + '

between 0.0 and .999 to smooth\n amplitude readings (defaults to 0)

\n', + type: 'Number', + optional: true + } + ], + example: [ + "\n
\nvar sound, amplitude, cnv;\n\nfunction preload(){\n sound = loadSound('assets/beat.mp3');\n}\nfunction setup() {\n cnv = createCanvas(100,100);\n amplitude = new p5.Amplitude();\n\n // start / stop the sound when canvas is clicked\n cnv.mouseClicked(function() {\n if (sound.isPlaying() ){\n sound.stop();\n } else {\n sound.play();\n }\n });\n}\nfunction draw() {\n background(0);\n fill(255);\n var level = amplitude.getLevel();\n var size = map(level, 0, 1, 0, 200);\n ellipse(width/2, height/2, size, size);\n}\n\n
" + ] + }, + 'p5.FFT': { + name: 'p5.FFT', + shortname: 'p5.FFT', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 3458, + description: + '

FFT (Fast Fourier Transform) is an analysis algorithm that\nisolates individual\n\naudio frequencies within a waveform.

\n\n

Once instantiated, a p5.FFT object can return an array based on\ntwo types of analyses:
โ€ข FFT.waveform() computes\namplitude values along the time domain. The array indices correspond\nto samples across a brief moment in time. Each value represents\namplitude of the waveform at that sample of time.
\nโ€ข FFT.analyze() computes amplitude values along the\nfrequency domain. The array indices correspond to frequencies (i.e.\npitches), from the lowest to the highest that humans can hear. Each\nvalue represents amplitude at that slice of the frequency spectrum.\nUse with getEnergy() to measure amplitude at specific\nfrequencies, or within a range of frequencies.

\n\n

FFT analyzes a very short snapshot of sound called a sample\nbuffer. It returns an array of amplitude measurements, referred\nto as bins. The array is 1024 bins long by default.\nYou can change the bin array length, but it must be a power of 2\nbetween 16 and 1024 in order for the FFT algorithm to function\ncorrectly. The actual size of the FFT buffer is twice the\nnumber of bins, so given a standard sample rate, the buffer is\n2048/44100 seconds long.

', + is_constructor: 1, + params: [ + { + name: 'smoothing', + description: + '

Smooth results of Freq Spectrum.\n 0.0 < smoothing < 1.0.\n Defaults to 0.8.

\n', + type: 'Number', + optional: true + }, + { + name: 'bins', + description: + '

Length of resulting array.\n Must be a power of two between\n 16 and 1024. Defaults to 1024.

\n', + type: 'Number', + optional: true + } + ], + example: [ + "\n
\nfunction preload(){\n sound = loadSound('assets/Damscray_DancingTiger.mp3');\n}\n\nfunction setup(){\n var cnv = createCanvas(100,100);\n cnv.mouseClicked(togglePlay);\n fft = new p5.FFT();\n sound.amp(0.2);\n}\n\nfunction draw(){\n background(0);\n\n var spectrum = fft.analyze();\n noStroke();\n fill(0,255,0); // spectrum is green\n for (var i = 0; i< spectrum.length; i++){\n var x = map(i, 0, spectrum.length, 0, width);\n var h = -height + map(spectrum[i], 0, 255, height, 0);\n rect(x, height, width / spectrum.length, h )\n }\n\n var waveform = fft.waveform();\n noFill();\n beginShape();\n stroke(255,0,0); // waveform is red\n strokeWeight(1);\n for (var i = 0; i< waveform.length; i++){\n var x = map(i, 0, waveform.length, 0, width);\n var y = map( waveform[i], -1, 1, 0, height);\n vertex(x,y);\n }\n endShape();\n\n text('click to play/pause', 4, 10);\n}\n\n// fade sound if mouse is over canvas\nfunction togglePlay() {\n if (sound.isPlaying()) {\n sound.pause();\n } else {\n sound.loop();\n }\n}\n
" + ] + }, + 'p5.Signal': { + name: 'p5.Signal', + shortname: 'p5.Signal', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 5223, + description: + "

p5.Signal is a constant audio-rate signal used by p5.Oscillator\nand p5.Envelope for modulation math.

\n\n

This is necessary because Web Audio is processed on a seprate clock.\nFor example, the p5 draw loop runs about 60 times per second. But\nthe audio clock must process samples 44100 times per second. If we\nwant to add a value to each of those samples, we can't do it in the\ndraw loop, but we can do it by adding a constant-rate audio signal.</p.\n\n

This class mostly functions behind the scenes in p5.sound, and returns\na Tone.Signal from the Tone.js library by Yotam Mann.\nIf you want to work directly with audio signals for modular\nsynthesis, check out\ntone.js.

", + is_constructor: 1, + return: { + description: 'A Signal object from the Tone.js library', + type: 'Tone.Signal' + }, + example: [ + "\n
\nfunction setup() {\n carrier = new p5.Oscillator('sine');\n carrier.amp(1); // set amplitude\n carrier.freq(220); // set frequency\n carrier.start(); // start oscillating\n\n modulator = new p5.Oscillator('sawtooth');\n modulator.disconnect();\n modulator.amp(1);\n modulator.freq(4);\n modulator.start();\n\n // Modulator's default amplitude range is -1 to 1.\n // Multiply it by -200, so the range is -200 to 200\n // then add 220 so the range is 20 to 420\n carrier.freq( modulator.mult(-200).add(220) );\n}\n
" + ] + }, + 'p5.Oscillator': { + name: 'p5.Oscillator', + shortname: 'p5.Oscillator', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 5369, + description: + '

Creates a signal that oscillates between -1.0 and 1.0.\nBy default, the oscillation takes the form of a sinusoidal\nshape ('sine'). Additional types include 'triangle',\n'sawtooth' and 'square'. The frequency defaults to\n440 oscillations per second (440Hz, equal to the pitch of an\n'A' note).

\n\n

Set the type of oscillation with setType(), or by instantiating a\nspecific oscillator: p5.SinOsc, p5.TriOsc, p5.SqrOsc, or p5.SawOsc.\n

', + is_constructor: 1, + params: [ + { + name: 'freq', + description: '

frequency defaults to 440Hz

\n', + type: 'Number', + optional: true + }, + { + name: 'type', + description: + '

type of oscillator. Options:\n 'sine' (default), 'triangle',\n 'sawtooth', 'square'

\n', + type: 'String', + optional: true + } + ], + example: [ + "\n
\nvar osc;\nvar playing = false;\n\nfunction setup() {\n backgroundColor = color(255,0,255);\n textAlign(CENTER);\n\n osc = new p5.Oscillator();\n osc.setType('sine');\n osc.freq(240);\n osc.amp(0);\n osc.start();\n}\n\nfunction draw() {\n background(backgroundColor)\n text('click to play', width/2, height/2);\n}\n\nfunction mouseClicked() {\n if (mouseX > 0 && mouseX < width && mouseY < height && mouseY > 0) {\n if (!playing) {\n // ramp amplitude to 0.5 over 0.05 seconds\n osc.amp(0.5, 0.05);\n playing = true;\n backgroundColor = color(0,255,255);\n } else {\n // ramp amplitude to 0 over 0.5 seconds\n osc.amp(0, 0.5);\n playing = false;\n backgroundColor = color(255,0,255);\n }\n }\n}\n
" + ] + }, + 'p5.SinOsc': { + name: 'p5.SinOsc', + shortname: 'p5.SinOsc', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 5810, + description: + '

Constructor: new p5.SinOsc().\nThis creates a Sine Wave Oscillator and is\nequivalent to new p5.Oscillator('sine')\n or creating a p5.Oscillator and then calling\nits method setType('sine').\nSee p5.Oscillator for methods.

\n', + is_constructor: 1, + extends: 'p5.Oscillator', + params: [ + { + name: 'freq', + description: '

Set the frequency

\n', + type: 'Number', + optional: true + } + ] + }, + 'p5.TriOsc': { + name: 'p5.TriOsc', + shortname: 'p5.TriOsc', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 5827, + description: + '

Constructor: new p5.TriOsc().\nThis creates a Triangle Wave Oscillator and is\nequivalent to new p5.Oscillator('triangle')\n or creating a p5.Oscillator and then calling\nits method setType('triangle').\nSee p5.Oscillator for methods.

\n', + is_constructor: 1, + extends: 'p5.Oscillator', + params: [ + { + name: 'freq', + description: '

Set the frequency

\n', + type: 'Number', + optional: true + } + ] + }, + 'p5.SawOsc': { + name: 'p5.SawOsc', + shortname: 'p5.SawOsc', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 5844, + description: + '

Constructor: new p5.SawOsc().\nThis creates a SawTooth Wave Oscillator and is\nequivalent to new p5.Oscillator('sawtooth')\n or creating a p5.Oscillator and then calling\nits method setType('sawtooth').\nSee p5.Oscillator for methods.

\n', + is_constructor: 1, + extends: 'p5.Oscillator', + params: [ + { + name: 'freq', + description: '

Set the frequency

\n', + type: 'Number', + optional: true + } + ] + }, + 'p5.SqrOsc': { + name: 'p5.SqrOsc', + shortname: 'p5.SqrOsc', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 5861, + description: + '

Constructor: new p5.SqrOsc().\nThis creates a Square Wave Oscillator and is\nequivalent to new p5.Oscillator('square')\n or creating a p5.Oscillator and then calling\nits method setType('square').\nSee p5.Oscillator for methods.

\n', + is_constructor: 1, + extends: 'p5.Oscillator', + params: [ + { + name: 'freq', + description: '

Set the frequency

\n', + type: 'Number', + optional: true + } + ] + }, + 'p5.Envelope': { + name: 'p5.Envelope', + shortname: 'p5.Envelope', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 6316, + description: + '

Envelopes are pre-defined amplitude distribution over time.\nTypically, envelopes are used to control the output volume\nof an object, a series of fades referred to as Attack, Decay,\nSustain and Release (\nADSR\n). Envelopes can also control other Web Audio Parametersโ€”for example, a p5.Envelope can\ncontrol an Oscillator's frequency like this: osc.freq(env).

\n

Use setRange to change the attack/release level.\nUse setADSR to change attackTime, decayTime, sustainPercent and releaseTime.

\n

Use the play method to play the entire envelope,\nthe ramp method for a pingable trigger,\nor triggerAttack/\ntriggerRelease to trigger noteOn/noteOff.

', + is_constructor: 1, + example: [ + "\n
\nvar attackLevel = 1.0;\nvar releaseLevel = 0;\n\nvar attackTime = 0.001;\nvar decayTime = 0.2;\nvar susPercent = 0.2;\nvar releaseTime = 0.5;\n\nvar env, triOsc;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n\n textAlign(CENTER);\n text('click to play', width/2, height/2);\n\n env = new p5.Envelope();\n env.setADSR(attackTime, decayTime, susPercent, releaseTime);\n env.setRange(attackLevel, releaseLevel);\n\n triOsc = new p5.Oscillator('triangle');\n triOsc.amp(env);\n triOsc.start();\n triOsc.freq(220);\n\n cnv.mousePressed(playEnv);\n}\n\nfunction playEnv() {\n env.play();\n}\n
" + ] + }, + 'p5.Pulse': { + name: 'p5.Pulse', + shortname: 'p5.Pulse', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 7114, + description: + '

Creates a Pulse object, an oscillator that implements\nPulse Width Modulation.\nThe pulse is created with two oscillators.\nAccepts a parameter for frequency, and to set the\nwidth between the pulses. See \np5.Oscillator for a full list of methods.

\n', + extends: 'p5.Oscillator', + is_constructor: 1, + params: [ + { + name: 'freq', + description: '

Frequency in oscillations per second (Hz)

\n', + type: 'Number', + optional: true + }, + { + name: 'w', + description: + '

Width between the pulses (0 to 1.0,\n defaults to 0)

\n', + type: 'Number', + optional: true + } + ], + example: [ + '\n
\nvar pulse;\nfunction setup() {\n background(0);\n\n // Create and start the pulse wave oscillator\n pulse = new p5.Pulse();\n pulse.amp(0.5);\n pulse.freq(220);\n pulse.start();\n}\n\nfunction draw() {\n var w = map(mouseX, 0, width, 0, 1);\n w = constrain(w, 0, 1);\n pulse.width(w)\n}\n
' + ] + }, + 'p5.Noise': { + name: 'p5.Noise', + shortname: 'p5.Noise', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 7293, + description: + '

Noise is a type of oscillator that generates a buffer with random values.

\n', + extends: 'p5.Oscillator', + is_constructor: 1, + params: [ + { + name: 'type', + description: + '

Type of noise can be 'white' (default),\n 'brown' or 'pink'.

\n', + type: 'String' + } + ] + }, + 'p5.AudioIn': { + name: 'p5.AudioIn', + shortname: 'p5.AudioIn', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 7441, + description: + '

Get audio from an input, i.e. your computer's microphone.

\n\n

Turn the mic on/off with the start() and stop() methods. When the mic\nis on, its volume can be measured with getLevel or by connecting an\nFFT object.

\n\n

If you want to hear the AudioIn, use the .connect() method.\nAudioIn does not connect to p5.sound output by default to prevent\nfeedback.

\n\n

Note: This uses the getUserMedia/\nStream API, which is not supported by certain browsers. Access in Chrome browser\nis limited to localhost and https, but access over http may be limited.

', + is_constructor: 1, + params: [ + { + name: 'errorCallback', + description: + '

A function to call if there is an error\n accessing the AudioIn. For example,\n Safari and iOS devices do not\n currently allow microphone access.

\n', + type: 'Function', + optional: true + } + ], + example: [ + '\n
\nvar mic;\nfunction setup(){\n mic = new p5.AudioIn()\n mic.start();\n}\nfunction draw(){\n background(0);\n micLevel = mic.getLevel();\n ellipse(width/2, constrain(height-micLevel*height*5, 0, height), 10, 10);\n}\n
' + ] + }, + 'p5.Effect': { + name: 'p5.Effect', + shortname: 'p5.Effect', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 8357, + description: + '

Effect is a base class for audio effects in p5.
\nThis module handles the nodes and methods that are \ncommon and useful for current and future effects.

\n

This class is extended by p5.Distortion, \np5.Compressor,\np5.Delay, \np5.Filter, \np5.Reverb.

\n', + is_constructor: 1, + params: [ + { + name: 'ac', + description: '

Reference to the audio context of the p5 object

\n', + type: 'Object', + optional: true + }, + { + name: 'input', + description: '

Gain Node effect wrapper

\n', + type: 'AudioNode', + optional: true + }, + { + name: 'output', + description: '

Gain Node effect wrapper

\n', + type: 'AudioNode', + optional: true + }, + { + name: '_drywet', + description: '

Tone.JS CrossFade node (defaults to value: 1)

\n', + type: 'Object', + optional: true + }, + { + name: 'wet', + description: + '

Effects that extend this class should connect\n to the wet signal to this gain node, so that dry and wet \n signals are mixed properly.

\n', + type: 'AudioNode', + optional: true + } + ] + }, + 'p5.Filter': { + name: 'p5.Filter', + shortname: 'p5.Filter', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 8499, + description: + '

A p5.Filter uses a Web Audio Biquad Filter to filter\nthe frequency response of an input source. Subclasses\ninclude:

\n
    \n
  • p5.LowPass:\nAllows frequencies below the cutoff frequency to pass through,\nand attenuates frequencies above the cutoff.
  • \n
  • p5.HighPass:\nThe opposite of a lowpass filter.
  • \n
  • p5.BandPass:\nAllows a range of frequencies to pass through and attenuates\nthe frequencies below and above this frequency range.
  • \n
\n

The .res() method controls either width of the\nbandpass, or resonance of the low/highpass cutoff frequency.

\n

This class extends p5.Effect.
Methods amp(), chain(), \ndrywet(), connect(), and \ndisconnect() are available.

\n', + extends: 'p5.Effect', + is_constructor: 1, + params: [ + { + name: 'type', + description: + '

'lowpass' (default), 'highpass', 'bandpass'

\n', + type: 'String', + optional: true + } + ], + example: [ + '\n
\nvar fft, noise, filter;\n\nfunction setup() {\n fill(255, 40, 255);\n\n filter = new p5.BandPass();\n\n noise = new p5.Noise();\n // disconnect unfiltered noise,\n // and connect to filter\n noise.disconnect();\n noise.connect(filter);\n noise.start();\n\n fft = new p5.FFT();\n}\n\nfunction draw() {\n background(30);\n\n // set the BandPass frequency based on mouseX\n var freq = map(mouseX, 0, width, 20, 10000);\n filter.freq(freq);\n // give the filter a narrow band (lower res = wider bandpass)\n filter.res(50);\n\n // draw filtered spectrum\n var spectrum = fft.analyze();\n noStroke();\n for (var i = 0; i < spectrum.length; i++) {\n var x = map(i, 0, spectrum.length, 0, width);\n var h = -height + map(spectrum[i], 0, 255, height, 0);\n rect(x, height, width/spectrum.length, h);\n }\n\n isMouseOverCanvas();\n}\n\nfunction isMouseOverCanvas() {\n var mX = mouseX, mY = mouseY;\n if (mX > 0 && mX < width && mY < height && mY > 0) {\n noise.amp(0.5, 0.2);\n } else {\n noise.amp(0, 0.2);\n }\n}\n
' + ] + }, + 'p5.LowPass': { + name: 'p5.LowPass', + shortname: 'p5.LowPass', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 8730, + description: + '

Constructor: new p5.LowPass() Filter.\nThis is the same as creating a p5.Filter and then calling\nits method setType('lowpass').\nSee p5.Filter for methods.

\n', + is_constructor: 1, + extends: 'p5.Filter' + }, + 'p5.HighPass': { + name: 'p5.HighPass', + shortname: 'p5.HighPass', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 8744, + description: + '

Constructor: new p5.HighPass() Filter.\nThis is the same as creating a p5.Filter and then calling\nits method setType('highpass').\nSee p5.Filter for methods.

\n', + is_constructor: 1, + extends: 'p5.Filter' + }, + 'p5.BandPass': { + name: 'p5.BandPass', + shortname: 'p5.BandPass', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 8758, + description: + '

Constructor: new p5.BandPass() Filter.\nThis is the same as creating a p5.Filter and then calling\nits method setType('bandpass').\nSee p5.Filter for methods.

\n', + is_constructor: 1, + extends: 'p5.Filter' + }, + 'p5.EQ': { + name: 'p5.EQ', + shortname: 'p5.EQ', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 8829, + description: + '

p5.EQ is an audio effect that performs the function of a multiband\naudio equalizer. Equalization is used to adjust the balance of\nfrequency compoenents of an audio signal. This process is commonly used\nin sound production and recording to change the waveform before it reaches\na sound output device. EQ can also be used as an audio effect to create\ninteresting distortions by filtering out parts of the spectrum. p5.EQ is\nbuilt using a chain of Web Audio Biquad Filter Nodes and can be\ninstantiated with 3 or 8 bands. Bands can be added or removed from\nthe EQ by directly modifying p5.EQ.bands (the array that stores filters).

\n

This class extends p5.Effect.\nMethods amp(), chain(),\ndrywet(), connect(), and\ndisconnect() are available.

\n', + is_constructor: 1, + extends: 'p5.Effect', + params: [ + { + name: '_eqsize', + description: '

Constructor will accept 3 or 8, defaults to 3

\n', + type: 'Number', + optional: true + } + ], + return: { + description: 'p5.EQ object', + type: 'Object' + }, + example: [ + "\n
\nvar eq;\nvar band_names;\nvar band_index;\n\nvar soundFile, play;\n\nfunction preload() {\n soundFormats('mp3', 'ogg');\n soundFile = loadSound('assets/beat');\n}\n\nfunction setup() {\n eq = new p5.EQ(3);\n soundFile.disconnect();\n eq.process(soundFile);\n\n band_names = ['lows','mids','highs'];\n band_index = 0;\n play = false;\n textAlign(CENTER);\n}\n\nfunction draw() {\n background(30);\n noStroke();\n fill(255);\n text('click to kill',50,25);\n\n fill(255, 40, 255);\n textSize(26);\n text(band_names[band_index],50,55);\n\n fill(255);\n textSize(9);\n text('space = play/pause',50,80);\n}\n\n//If mouse is over canvas, cycle to the next band and kill the frequency\nfunction mouseClicked() {\n for (var i = 0; i < eq.bands.length; i++) {\n eq.bands[i].gain(0);\n }\n eq.bands[band_index].gain(-40);\n if (mouseX > 0 && mouseX < width && mouseY < height && mouseY > 0) {\n band_index === 2 ? band_index = 0 : band_index++;\n }\n}\n\n//use space bar to trigger play / pause\nfunction keyPressed() {\n if (key===' ') {\n play = !play\n play ? soundFile.loop() : soundFile.pause();\n }\n}\n
" + ] + }, + 'p5.Panner3D': { + name: 'p5.Panner3D', + shortname: 'p5.Panner3D', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 9021, + description: + '

Panner3D is based on the \nWeb Audio Spatial Panner Node.\nThis panner is a spatial processing node that allows audio to be positioned\nand oriented in 3D space.

\n

The position is relative to an \nAudio Context Listener, which can be accessed\nby p5.soundOut.audiocontext.listener

\n', + is_constructor: 1 + }, + 'p5.Delay': { + name: 'p5.Delay', + shortname: 'p5.Delay', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 9472, + description: + '

Delay is an echo effect. It processes an existing sound source,\nand outputs a delayed version of that sound. The p5.Delay can\nproduce different effects depending on the delayTime, feedback,\nfilter, and type. In the example below, a feedback of 0.5 (the\ndefaul value) will produce a looping delay that decreases in\nvolume by 50% each repeat. A filter will cut out the high\nfrequencies so that the delay does not sound as piercing as the\noriginal source.

\n

This class extends p5.Effect.
Methods amp(), chain(), \ndrywet(), connect(), and \ndisconnect() are available.

\n', + extends: 'p5.Effect', + is_constructor: 1, + example: [ + "\n
\nvar noise, env, delay;\n\nfunction setup() {\n background(0);\n noStroke();\n fill(255);\n textAlign(CENTER);\n text('click to play', width/2, height/2);\n\n noise = new p5.Noise('brown');\n noise.amp(0);\n noise.start();\n\n delay = new p5.Delay();\n\n // delay.process() accepts 4 parameters:\n // source, delayTime, feedback, filter frequency\n // play with these numbers!!\n delay.process(noise, .12, .7, 2300);\n\n // play the noise with an envelope,\n // a series of fades ( time / value pairs )\n env = new p5.Envelope(.01, 0.2, .2, .1);\n}\n\n// mouseClick triggers envelope\nfunction mouseClicked() {\n // is mouse over canvas?\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n env.play(noise);\n }\n}\n
" + ] + }, + 'p5.Reverb': { + name: 'p5.Reverb', + shortname: 'p5.Reverb', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 9749, + description: + '

Reverb adds depth to a sound through a large number of decaying\nechoes. It creates the perception that sound is occurring in a\nphysical space. The p5.Reverb has paramters for Time (how long does the\nreverb last) and decayRate (how much the sound decays with each echo)\nthat can be set with the .set() or .process() methods. The p5.Convolver\nextends p5.Reverb allowing you to recreate the sound of actual physical\nspaces through convolution.

\n

This class extends p5.Effect.\nMethods amp(), chain(),\ndrywet(), connect(), and\ndisconnect() are available.

\n', + extends: 'p5.Effect', + is_constructor: 1, + example: [ + "\n
\nvar soundFile, reverb;\nfunction preload() {\n soundFile = loadSound('assets/Damscray_DancingTiger.mp3');\n}\n\nfunction setup() {\n reverb = new p5.Reverb();\n soundFile.disconnect(); // so we'll only hear reverb...\n\n // connect soundFile to reverb, process w/\n // 3 second reverbTime, decayRate of 2%\n reverb.process(soundFile, 3, 2);\n soundFile.play();\n}\n
" + ] + }, + 'p5.Convolver': { + name: 'p5.Convolver', + shortname: 'p5.Convolver', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 9920, + description: + '

p5.Convolver extends p5.Reverb. It can emulate the sound of real\nphysical spaces through a process called \nconvolution.

\n\n

Convolution multiplies any audio input by an "impulse response"\nto simulate the dispersion of sound over time. The impulse response is\ngenerated from an audio file that you provide. One way to\ngenerate an impulse response is to pop a balloon in a reverberant space\nand record the echo. Convolution can also be used to experiment with\nsound.

\n\n

Use the method createConvolution(path) to instantiate a\np5.Convolver with a path to your impulse response audio file.

', + extends: 'p5.Effect', + is_constructor: 1, + params: [ + { + name: 'path', + description: '

path to a sound file

\n', + type: 'String' + }, + { + name: 'callback', + description: '

function to call when loading succeeds

\n', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: + '

function to call if loading fails.\n This function will receive an error or\n XMLHttpRequest object with information\n about what went wrong.

\n', + type: 'Function', + optional: true + } + ], + example: [ + "\n
\nvar cVerb, sound;\nfunction preload() {\n // We have both MP3 and OGG versions of all sound assets\n soundFormats('ogg', 'mp3');\n\n // Try replacing 'bx-spring' with other soundfiles like\n // 'concrete-tunnel' 'small-plate' 'drum' 'beatbox'\n cVerb = createConvolver('assets/bx-spring.mp3');\n\n // Try replacing 'Damscray_DancingTiger' with\n // 'beat', 'doorbell', lucky_dragons_-_power_melody'\n sound = loadSound('assets/Damscray_DancingTiger.mp3');\n}\n\nfunction setup() {\n // disconnect from master output...\n sound.disconnect();\n\n // ...and process with cVerb\n // so that we only hear the convolution\n cVerb.process(sound);\n\n sound.play();\n}\n
" + ] + }, + 'p5.Phrase': { + name: 'p5.Phrase', + shortname: 'p5.Phrase', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 10476, + description: + '

A phrase is a pattern of musical events over time, i.e.\na series of notes and rests.

\n\n

Phrases must be added to a p5.Part for playback, and\neach part can play multiple phrases at the same time.\nFor example, one Phrase might be a kick drum, another\ncould be a snare, and another could be the bassline.

\n\n

The first parameter is a name so that the phrase can be\nmodified or deleted later. The callback is a a function that\nthis phrase will call at every stepโ€”for example it might be\ncalled playNote(value){}. The array determines\nwhich value is passed into the callback at each step of the\nphrase. It can be numbers, an object with multiple numbers,\nor a zero (0) indicates a rest so the callback won't be called).

', + is_constructor: 1, + params: [ + { + name: 'name', + description: '

Name so that you can access the Phrase.

\n', + type: 'String' + }, + { + name: 'callback', + description: + '

The name of a function that this phrase\n will call. Typically it will play a sound,\n and accept two parameters: a time at which\n to play the sound (in seconds from now),\n and a value from the sequence array. The\n time should be passed into the play() or\n start() method to ensure precision.

\n', + type: 'Function' + }, + { + name: 'sequence', + description: + '

Array of values to pass into the callback\n at each step of the phrase.

\n', + type: 'Array' + } + ], + example: [ + "\n
\nvar mySound, myPhrase, myPart;\nvar pattern = [1,0,0,2,0,2,0,0];\nvar msg = 'click to play';\n\nfunction preload() {\n mySound = loadSound('assets/beatbox.mp3');\n}\n\nfunction setup() {\n noStroke();\n fill(255);\n textAlign(CENTER);\n masterVolume(0.1);\n\n myPhrase = new p5.Phrase('bbox', makeSound, pattern);\n myPart = new p5.Part();\n myPart.addPhrase(myPhrase);\n myPart.setBPM(60);\n}\n\nfunction draw() {\n background(0);\n text(msg, width/2, height/2);\n}\n\nfunction makeSound(time, playbackRate) {\n mySound.rate(playbackRate);\n mySound.play(time);\n}\n\nfunction mouseClicked() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n myPart.start();\n msg = 'playing pattern';\n }\n}\n\n
" + ] + }, + 'p5.Part': { + name: 'p5.Part', + shortname: 'p5.Part', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 10561, + description: + '

A p5.Part plays back one or more p5.Phrases. Instantiate a part\nwith steps and tatums. By default, each step represents a 1/16th note.

\n\n

See p5.Phrase for more about musical timing.

', + is_constructor: 1, + params: [ + { + name: 'steps', + description: '

Steps in the part

\n', + type: 'Number', + optional: true + }, + { + name: 'tatums', + description: + '

Divisions of a beat, e.g. use 1/4, or 0.25 for a quater note (default is 1/16, a sixteenth note)

\n', + type: 'Number', + optional: true + } + ], + example: [ + "\n
\nvar box, drum, myPart;\nvar boxPat = [1,0,0,2,0,2,0,0];\nvar drumPat = [0,1,1,0,2,0,1,0];\nvar msg = 'click to play';\n\nfunction preload() {\n box = loadSound('assets/beatbox.mp3');\n drum = loadSound('assets/drum.mp3');\n}\n\nfunction setup() {\n noStroke();\n fill(255);\n textAlign(CENTER);\n masterVolume(0.1);\n\n var boxPhrase = new p5.Phrase('box', playBox, boxPat);\n var drumPhrase = new p5.Phrase('drum', playDrum, drumPat);\n myPart = new p5.Part();\n myPart.addPhrase(boxPhrase);\n myPart.addPhrase(drumPhrase);\n myPart.setBPM(60);\n masterVolume(0.1);\n}\n\nfunction draw() {\n background(0);\n text(msg, width/2, height/2);\n}\n\nfunction playBox(time, playbackRate) {\n box.rate(playbackRate);\n box.play(time);\n}\n\nfunction playDrum(time, playbackRate) {\n drum.rate(playbackRate);\n drum.play(time);\n}\n\nfunction mouseClicked() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n myPart.start();\n msg = 'playing part';\n }\n}\n
" + ] + }, + 'p5.Score': { + name: 'p5.Score', + shortname: 'p5.Score', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 10814, + description: + '

A Score consists of a series of Parts. The parts will\nbe played back in order. For example, you could have an\nA part, a B part, and a C part, and play them back in this order\nnew p5.Score(a, a, b, a, c)

\n', + is_constructor: 1, + params: [ + { + name: 'parts', + description: + '

One or multiple parts, to be played in sequence.

\n', + type: 'p5.Part', + optional: true, + multiple: true + } + ] + }, + 'p5.SoundLoop': { + name: 'p5.SoundLoop', + shortname: 'p5.SoundLoop', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 10945, + description: '

SoundLoop

\n', + is_constructor: 1, + params: [ + { + name: 'callback', + description: + '

this function will be called on each iteration of theloop

\n', + type: 'Function' + }, + { + name: 'interval', + description: + '

amount of time or beats for each iteration of the loop\n defaults to 1

\n', + type: 'Number|String', + optional: true + } + ], + example: [ + "\n
\nvar click;\nvar looper1;\n\nfunction preload() {\n click = loadSound('assets/drum.mp3');\n}\n\nfunction setup() {\n //the looper's callback is passed the timeFromNow\n //this value should be used as a reference point from \n //which to schedule sounds \n looper1 = new p5.SoundLoop(function(timeFromNow){\n click.play(timeFromNow);\n background(255 * (looper1.iterations % 2));\n }, 2);\n\n //stop after 10 iteratios;\n looper1.maxIterations = 10;\n //start the loop\n looper1.start();\n}\n
" + ] + }, + 'p5.Compressor': { + name: 'p5.Compressor', + shortname: 'p5.Compressor', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 11205, + description: + '

Compressor is an audio effect class that performs dynamics compression\non an audio input source. This is a very commonly used technique in music\nand sound production. Compression creates an overall louder, richer, \nand fuller sound by lowering the volume of louds and raising that of softs.\nCompression can be used to avoid clipping (sound distortion due to \npeaks in volume) and is especially useful when many sounds are played \nat once. Compression can be used on indivudal sound sources in addition\nto the master output.

\n

This class extends p5.Effect.
Methods amp(), chain(), \ndrywet(), connect(), and \ndisconnect() are available.

\n', + is_constructor: 1, + extends: 'p5.Effect' + }, + 'p5.SoundRecorder': { + name: 'p5.SoundRecorder', + shortname: 'p5.SoundRecorder', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 11417, + description: + '

Record sounds for playback and/or to save as a .wav file.\nThe p5.SoundRecorder records all sound output from your sketch,\nor can be assigned a specific source with setInput().

\n

The record() method accepts a p5.SoundFile as a parameter.\nWhen playback is stopped (either after the given amount of time,\nor with the stop() method), the p5.SoundRecorder will send its\nrecording to that p5.SoundFile for playback.

', + is_constructor: 1, + example: [ + "\n
\nvar mic, recorder, soundFile;\nvar state = 0;\n\nfunction setup() {\n background(200);\n // create an audio in\n mic = new p5.AudioIn();\n\n // prompts user to enable their browser mic\n mic.start();\n\n // create a sound recorder\n recorder = new p5.SoundRecorder();\n\n // connect the mic to the recorder\n recorder.setInput(mic);\n\n // this sound file will be used to\n // playback & save the recording\n soundFile = new p5.SoundFile();\n\n text('keyPress to record', 20, 20);\n}\n\nfunction keyPressed() {\n // make sure user enabled the mic\n if (state === 0 && mic.enabled) {\n\n // record to our p5.SoundFile\n recorder.record(soundFile);\n\n background(255,0,0);\n text('Recording!', 20, 20);\n state++;\n }\n else if (state === 1) {\n background(0,255,0);\n\n // stop recorder and\n // send result to soundFile\n recorder.stop();\n\n text('Stopped', 20, 20);\n state++;\n }\n\n else if (state === 2) {\n soundFile.play(); // play the result!\n save(soundFile, 'mySound.wav');\n state++;\n }\n}\n
" + ] + }, + 'p5.PeakDetect': { + name: 'p5.PeakDetect', + shortname: 'p5.PeakDetect', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 11655, + description: + '

PeakDetect works in conjunction with p5.FFT to\nlook for onsets in some or all of the frequency spectrum.\n

\n

\nTo use p5.PeakDetect, call update in the draw loop\nand pass in a p5.FFT object.\n

\n

\nYou can listen for a specific part of the frequency spectrum by\nsetting the range between freq1 and freq2.\n

\n\n

threshold is the threshold for detecting a peak,\nscaled between 0 and 1. It is logarithmic, so 0.1 is half as loud\nas 1.0.

\n\n

\nThe update method is meant to be run in the draw loop, and\nframes determines how many loops must pass before\nanother peak can be detected.\nFor example, if the frameRate() = 60, you could detect the beat of a\n120 beat-per-minute song with this equation:\n framesPerPeak = 60 / (estimatedBPM / 60 );\n

\n\n

\nBased on example contribtued by @b2renger, and a simple beat detection\nexplanation by Felix Turner.\n

', + is_constructor: 1, + params: [ + { + name: 'freq1', + description: '

lowFrequency - defaults to 20Hz

\n', + type: 'Number', + optional: true + }, + { + name: 'freq2', + description: '

highFrequency - defaults to 20000 Hz

\n', + type: 'Number', + optional: true + }, + { + name: 'threshold', + description: + '

Threshold for detecting a beat between 0 and 1\n scaled logarithmically where 0.1 is 1/2 the loudness\n of 1.0. Defaults to 0.35.

\n', + type: 'Number', + optional: true + }, + { + name: 'framesPerPeak', + description: '

Defaults to 20.

\n', + type: 'Number', + optional: true + } + ], + example: [ + "\n
\n\nvar cnv, soundFile, fft, peakDetect;\nvar ellipseWidth = 10;\n\nfunction preload() {\n soundFile = loadSound('assets/beat.mp3');\n}\n\nfunction setup() {\n background(0);\n noStroke();\n fill(255);\n textAlign(CENTER);\n\n // p5.PeakDetect requires a p5.FFT\n fft = new p5.FFT();\n peakDetect = new p5.PeakDetect();\n}\n\nfunction draw() {\n background(0);\n text('click to play/pause', width/2, height/2);\n\n // peakDetect accepts an fft post-analysis\n fft.analyze();\n peakDetect.update(fft);\n\n if ( peakDetect.isDetected ) {\n ellipseWidth = 50;\n } else {\n ellipseWidth *= 0.95;\n }\n\n ellipse(width/2, height/2, ellipseWidth, ellipseWidth);\n}\n\n// toggle play/stop when canvas is clicked\nfunction mouseClicked() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n if (soundFile.isPlaying() ) {\n soundFile.stop();\n } else {\n soundFile.play();\n }\n }\n}\n
" + ] + }, + 'p5.Gain': { + name: 'p5.Gain', + shortname: 'p5.Gain', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 11879, + description: + '

A gain node is usefull to set the relative volume of sound.\nIt's typically used to build mixers.

\n', + is_constructor: 1, + example: [ + "\n
\n\n // load two soundfile and crossfade beetween them\n var sound1,sound2;\n var gain1, gain2, gain3;\n\n function preload(){\n soundFormats('ogg', 'mp3');\n sound1 = loadSound('assets/Damscray_-_Dancing_Tiger_01');\n sound2 = loadSound('assets/beat.mp3');\n }\n\n function setup() {\n createCanvas(400,200);\n\n // create a 'master' gain to which we will connect both soundfiles\n gain3 = new p5.Gain();\n gain3.connect();\n\n // setup first sound for playing\n sound1.rate(1);\n sound1.loop();\n sound1.disconnect(); // diconnect from p5 output\n\n gain1 = new p5.Gain(); // setup a gain node\n gain1.setInput(sound1); // connect the first sound to its input\n gain1.connect(gain3); // connect its output to the 'master'\n\n sound2.rate(1);\n sound2.disconnect();\n sound2.loop();\n\n gain2 = new p5.Gain();\n gain2.setInput(sound2);\n gain2.connect(gain3);\n\n }\n\n function draw(){\n background(180);\n\n // calculate the horizontal distance beetween the mouse and the right of the screen\n var d = dist(mouseX,0,width,0);\n\n // map the horizontal position of the mouse to values useable for volume control of sound1\n var vol1 = map(mouseX,0,width,0,1);\n var vol2 = 1-vol1; // when sound1 is loud, sound2 is quiet and vice versa\n\n gain1.amp(vol1,0.5,0);\n gain2.amp(vol2,0.5,0);\n\n // map the vertical position of the mouse to values useable for 'master volume control'\n var vol3 = map(mouseY,0,height,0,1);\n gain3.amp(vol3,0.5,0);\n }\n
\n" + ] + }, + 'p5.AudioVoice': { + name: 'p5.AudioVoice', + shortname: 'p5.AudioVoice', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 12020, + description: + '

Base class for monophonic synthesizers. Any extensions of this class\nshould follow the API and implement the methods below in order to \nremain compatible with p5.PolySynth();

\n', + is_constructor: 1 + }, + 'p5.MonoSynth': { + name: 'p5.MonoSynth', + shortname: 'p5.MonoSynth', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 12073, + description: + '

A MonoSynth is used as a single voice for sound synthesis.\nThis is a class to be used in conjunction with the PolySynth\nclass. Custom synthetisers should be built inheriting from\nthis class.

\n', + is_constructor: 1, + example: [ + '\n
\nvar monoSynth;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n cnv.mousePressed(playSynth);\n\n monoSynth = new p5.MonoSynth();\n\n textAlign(CENTER);\n text(\'click to play\', width/2, height/2);\n}\n\nfunction playSynth() {\n // time from now (in seconds)\n var time = 0;\n // note duration (in seconds)\n var dur = 0.25;\n // velocity (volume, from 0 to 1)\n var v = 0.2;\n\n monoSynth.play("G3", v, time, dur);\n monoSynth.play("C4", v, time += dur, dur);\n\n background(random(255), random(255), 255);\n text(\'click to play\', width/2, height/2);\n}\n
' + ] + }, + 'p5.PolySynth': { + name: 'p5.PolySynth', + shortname: 'p5.PolySynth', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 12362, + description: + '

An AudioVoice is used as a single voice for sound synthesis.\nThe PolySynth class holds an array of AudioVoice, and deals\nwith voices allocations, with setting notes to be played, and\nparameters to be set.

\n', + is_constructor: 1, + params: [ + { + name: 'synthVoice', + description: + '

A monophonic synth voice inheriting\n the AudioVoice class. Defaults to p5.MonoSynth

\n', + type: 'Number', + optional: true + }, + { + name: 'maxVoices', + description: '

Number of voices, defaults to 8;

\n', + type: 'Number', + optional: true + } + ], + example: [ + '\n
\nvar polySynth;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n cnv.mousePressed(playSynth);\n\n polySynth = new p5.PolySynth();\n\n textAlign(CENTER);\n text(\'click to play\', width/2, height/2);\n}\n\nfunction playSynth() {\n // note duration (in seconds)\n var dur = 1.5;\n\n // time from now (in seconds)\n var time = 0;\n\n // velocity (volume, from 0 to 1)\n var vel = 0.1;\n\n // notes can overlap with each other\n polySynth.play("G2", vel, 0, dur);\n polySynth.play("C3", vel, time += 1/3, dur);\n polySynth.play("G3", vel, time += 1/3, dur);\n\n background(random(255), random(255), 255);\n text(\'click to play\', width/2, height/2);\n}\n
' + ] + }, + 'p5.Distortion': { + name: 'p5.Distortion', + shortname: 'p5.Distortion', + classitems: [], + plugins: [], + extensions: [], + plugin_for: [], + extension_for: [], + module: 'p5.sound', + submodule: 'p5.sound', + namespace: '', + file: 'lib/addons/p5.sound.js', + line: 12767, + description: + '

A Distortion effect created with a Waveshaper Node,\nwith an approach adapted from\nKevin Ennis

\n

This class extends p5.Effect.
Methods amp(), chain(), \ndrywet(), connect(), and \ndisconnect() are available.

\n', + extends: 'p5.Effect', + is_constructor: 1, + params: [ + { + name: 'amount', + description: + '

Unbounded distortion amount.\n Normal values range from 0-1.

\n', + type: 'Number', + optional: true, + optdefault: '0.25' + }, + { + name: 'oversample', + description: '

'none', '2x', or '4x'.

\n', + type: 'String', + optional: true, + optdefault: "'none'" + } + ] + } + }, + elements: {}, + classitems: [ + { + file: 'src/color/color_conversion.js', + line: 10, + description: + '

Conversions adapted from http://www.easyrgb.com/en/math.php.

\n

In these functions, hue is always in the range [0, 1], just like all other\ncomponents are in the range [0, 1]. 'Brightness' and 'value' are used\ninterchangeably.

\n', + class: 'p5', + module: 'Color', + submodule: 'Color Conversion' + }, + { + file: 'src/color/color_conversion.js', + line: 21, + description: '

Convert an HSBA array to HSLA.

\n', + class: 'p5', + module: 'Color', + submodule: 'Color Conversion' + }, + { + file: 'src/color/color_conversion.js', + line: 47, + description: '

Convert an HSBA array to RGBA.

\n', + class: 'p5', + module: 'Color', + submodule: 'Color Conversion' + }, + { + file: 'src/color/color_conversion.js', + line: 102, + description: '

Convert an HSLA array to HSBA.

\n', + class: 'p5', + module: 'Color', + submodule: 'Color Conversion' + }, + { + file: 'src/color/color_conversion.js', + line: 125, + description: + '

Convert an HSLA array to RGBA.

\n

We need to change basis from HSLA to something that can be more easily be\nprojected onto RGBA. We will choose hue and brightness as our first two\ncomponents, and pick a convenient third one ('zest') so that we don't need\nto calculate formal HSBA saturation.

\n', + class: 'p5', + module: 'Color', + submodule: 'Color Conversion' + }, + { + file: 'src/color/color_conversion.js', + line: 189, + description: '

Convert an RGBA array to HSBA.

\n', + class: 'p5', + module: 'Color', + submodule: 'Color Conversion' + }, + { + file: 'src/color/color_conversion.js', + line: 228, + description: '

Convert an RGBA array to HSLA.

\n', + class: 'p5', + module: 'Color', + submodule: 'Color Conversion' + }, + { + file: 'src/color/creating_reading.js', + line: 16, + description: + '

Extracts the alpha value from a color or pixel array.

\n', + itemtype: 'method', + name: 'alpha', + params: [ + { + name: 'color', + description: + '

p5.Color object, color components,\n or CSS color

\n', + type: 'p5.Color|Number[]|String' + } + ], + return: { + description: 'the alpha value', + type: 'Number' + }, + example: [ + "\n
\n\nnoStroke();\nlet c = color(0, 126, 255, 102);\nfill(c);\nrect(15, 15, 35, 70);\nlet value = alpha(c); // Sets 'value' to 102\nfill(value);\nrect(50, 15, 35, 70);\n\n
" + ], + alt: + 'Left half of canvas light blue and right half light charcoal grey.\nLeft half of canvas light purple and right half a royal blue.\nLeft half of canvas salmon pink and the right half white.\nYellow rect in middle right of canvas, with 55 pixel width and height.\nYellow ellipse in top left canvas, black ellipse in bottom right,both 80x80.\nBright fuchsia rect in middle of canvas, 60 pixel width and height.\nTwo bright green rects on opposite sides of the canvas, both 45x80.\nFour blue rects in each corner of the canvas, each are 35x35.\nBright sea green rect on left and darker rect on right of canvas, both 45x80.\nDark green rect on left and light green rect on right of canvas, both 45x80.\nDark blue rect on left and light teal rect on right of canvas, both 45x80.\nblue rect on left and green on right, both with black outlines & 35x60.\nsalmon pink rect on left and black on right, both 35x60.\n4 rects, tan, brown, brownish purple and purple, with white outlines & 20x60.\nlight pastel green rect on left and dark grey rect on right, both 35x60.\nyellow rect on left and red rect on right, both with black outlines & 35x60.\ngrey canvas\ndeep pink rect on left and grey rect on right, both 35x60.', + class: 'p5', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/creating_reading.js', + line: 61, + description: + '

Extracts the blue value from a color or pixel array.

\n', + itemtype: 'method', + name: 'blue', + params: [ + { + name: 'color', + description: + '

p5.Color object, color components,\n or CSS color

\n', + type: 'p5.Color|Number[]|String' + } + ], + return: { + description: 'the blue value', + type: 'Number' + }, + example: [ + "\n
\n\nlet c = color(175, 100, 220); // Define color 'c'\nfill(c); // Use color variable 'c' as fill color\nrect(15, 20, 35, 60); // Draw left rectangle\n\nlet blueValue = blue(c); // Get blue in 'c'\nprint(blueValue); // Prints \"220.0\"\nfill(0, 0, blueValue); // Use 'blueValue' in new fill\nrect(50, 20, 35, 60); // Draw right rectangle\n\n
" + ], + alt: 'Left half of canvas light purple and right half a royal blue.', + class: 'p5', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/creating_reading.js', + line: 91, + description: + '

Extracts the HSB brightness value from a color or pixel array.

\n', + itemtype: 'method', + name: 'brightness', + params: [ + { + name: 'color', + description: + '

p5.Color object, color components,\n or CSS color

\n', + type: 'p5.Color|Number[]|String' + } + ], + return: { + description: 'the brightness value', + type: 'Number' + }, + example: [ + "\n
\n\nnoStroke();\ncolorMode(HSB, 255);\nlet c = color(0, 126, 255);\nfill(c);\nrect(15, 20, 35, 60);\nlet value = brightness(c); // Sets 'value' to 255\nfill(value);\nrect(50, 20, 35, 60);\n\n
\n
\n\nnoStroke();\ncolorMode(HSB, 255);\nlet c = color('hsb(60, 100%, 50%)');\nfill(c);\nrect(15, 20, 35, 60);\nlet value = brightness(c); // A 'value' of 50% is 127.5\nfill(value);\nrect(50, 20, 35, 60);\n\n
" + ], + alt: + 'Left half of canvas salmon pink and the right half white.\nLeft half of canvas yellow at half brightness and the right gray .', + class: 'p5', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/creating_reading.js', + line: 134, + description: + '

Creates colors for storing in variables of the color datatype. The\nparameters are interpreted as RGB or HSB values depending on the\ncurrent colorMode(). The default mode is RGB values from 0 to 255\nand, therefore, the function call color(255, 204, 0) will return a\nbright yellow color.\n

\nNote that if only one value is provided to color(), it will be interpreted\nas a grayscale value. Add a second value, and it will be used for alpha\ntransparency. When three values are specified, they are interpreted as\neither RGB or HSB values. Adding a fourth value applies alpha\ntransparency.\n

\nIf a single string argument is provided, RGB, RGBA and Hex CSS color\nstrings and all named color strings are supported. In this case, an alpha\nnumber value as a second argument is not supported, the RGBA form should be\nused.

\n', + itemtype: 'method', + name: 'color', + return: { + description: 'resulting color', + type: 'p5.Color' + }, + example: [ + "\n
\n\nlet c = color(255, 204, 0); // Define color 'c'\nfill(c); // Use color variable 'c' as fill color\nnoStroke(); // Don't draw a stroke around shapes\nrect(30, 20, 55, 55); // Draw rectangle\n\n
\n\n
\n\nlet c = color(255, 204, 0); // Define color 'c'\nfill(c); // Use color variable 'c' as fill color\nnoStroke(); // Don't draw a stroke around shapes\nellipse(25, 25, 80, 80); // Draw left circle\n\n// Using only one value with color()\n// generates a grayscale value.\nc = color(65); // Update 'c' with grayscale value\nfill(c); // Use updated 'c' as fill color\nellipse(75, 75, 80, 80); // Draw right circle\n\n
\n\n
\n\n// Named SVG & CSS colors may be used,\nlet c = color('magenta');\nfill(c); // Use 'c' as fill color\nnoStroke(); // Don't draw a stroke around shapes\nrect(20, 20, 60, 60); // Draw rectangle\n\n
\n\n
\n\n// as can hex color codes:\nnoStroke(); // Don't draw a stroke around shapes\nlet c = color('#0f0');\nfill(c); // Use 'c' as fill color\nrect(0, 10, 45, 80); // Draw rectangle\n\nc = color('#00ff00');\nfill(c); // Use updated 'c' as fill color\nrect(55, 10, 45, 80); // Draw rectangle\n\n
\n\n
\n\n// RGB and RGBA color strings are also supported:\n// these all set to the same color (solid blue)\nlet c;\nnoStroke(); // Don't draw a stroke around shapes\nc = color('rgb(0,0,255)');\nfill(c); // Use 'c' as fill color\nrect(10, 10, 35, 35); // Draw rectangle\n\nc = color('rgb(0%, 0%, 100%)');\nfill(c); // Use updated 'c' as fill color\nrect(55, 10, 35, 35); // Draw rectangle\n\nc = color('rgba(0, 0, 255, 1)');\nfill(c); // Use updated 'c' as fill color\nrect(10, 55, 35, 35); // Draw rectangle\n\nc = color('rgba(0%, 0%, 100%, 1)');\nfill(c); // Use updated 'c' as fill color\nrect(55, 55, 35, 35); // Draw rectangle\n\n
\n\n
\n\n// HSL color is also supported and can be specified\n// by value\nlet c;\nnoStroke(); // Don't draw a stroke around shapes\nc = color('hsl(160, 100%, 50%)');\nfill(c); // Use 'c' as fill color\nrect(0, 10, 45, 80); // Draw rectangle\n\nc = color('hsla(160, 100%, 50%, 0.5)');\nfill(c); // Use updated 'c' as fill color\nrect(55, 10, 45, 80); // Draw rectangle\n\n
\n\n
\n\n// HSB color is also supported and can be specified\n// by value\nlet c;\nnoStroke(); // Don't draw a stroke around shapes\nc = color('hsb(160, 100%, 50%)');\nfill(c); // Use 'c' as fill color\nrect(0, 10, 45, 80); // Draw rectangle\n\nc = color('hsba(160, 100%, 50%, 0.5)');\nfill(c); // Use updated 'c' as fill color\nrect(55, 10, 45, 80); // Draw rectangle\n\n
\n\n
\n\nlet c; // Declare color 'c'\nnoStroke(); // Don't draw a stroke around shapes\n\n// If no colorMode is specified, then the\n// default of RGB with scale of 0-255 is used.\nc = color(50, 55, 100); // Create a color for 'c'\nfill(c); // Use color variable 'c' as fill color\nrect(0, 10, 45, 80); // Draw left rect\n\ncolorMode(HSB, 100); // Use HSB with scale of 0-100\nc = color(50, 55, 100); // Update 'c' with new color\nfill(c); // Use updated 'c' as fill color\nrect(55, 10, 45, 80); // Draw right rect\n\n
" + ], + alt: + 'Yellow rect in middle right of canvas, with 55 pixel width and height.\nYellow ellipse in top left of canvas, black ellipse in bottom right,both 80x80.\nBright fuchsia rect in middle of canvas, 60 pixel width and height.\nTwo bright green rects on opposite sides of the canvas, both 45x80.\nFour blue rects in each corner of the canvas, each are 35x35.\nBright sea green rect on left and darker rect on right of canvas, both 45x80.\nDark green rect on left and lighter green rect on right of canvas, both 45x80.\nDark blue rect on left and light teal rect on right of canvas, both 45x80.', + class: 'p5', + module: 'Color', + submodule: 'Creating & Reading', + overloads: [ + { + line: 134, + params: [ + { + name: 'gray', + description: + '

number specifying value between white\n and black.

\n', + type: 'Number' + }, + { + name: 'alpha', + description: + '

alpha value relative to current color range\n (default is 0-255)

\n', + type: 'Number', + optional: true + } + ], + return: { + description: 'resulting color', + type: 'p5.Color' + } + }, + { + line: 293, + params: [ + { + name: 'v1', + description: + '

red or hue value relative to\n the current color range

\n', + type: 'Number' + }, + { + name: 'v2', + description: + '

green or saturation value\n relative to the current color range

\n', + type: 'Number' + }, + { + name: 'v3', + description: + '

blue or brightness value\n relative to the current color range

\n', + type: 'Number' + }, + { + name: 'alpha', + description: '', + type: 'Number', + optional: true + } + ], + return: { + description: '', + type: 'p5.Color' + } + }, + { + line: 305, + params: [ + { + name: 'value', + description: '

a color string

\n', + type: 'String' + } + ], + return: { + description: '', + type: 'p5.Color' + } + }, + { + line: 310, + params: [ + { + name: 'values', + description: + '

an array containing the red,green,blue &\n and alpha components of the color

\n', + type: 'Number[]' + } + ], + return: { + description: '', + type: 'p5.Color' + } + }, + { + line: 316, + params: [ + { + name: 'color', + description: '', + type: 'p5.Color' + } + ], + return: { + description: '', + type: 'p5.Color' + } + } + ] + }, + { + file: 'src/color/creating_reading.js', + line: 332, + description: + '

Extracts the green value from a color or pixel array.

\n', + itemtype: 'method', + name: 'green', + params: [ + { + name: 'color', + description: + '

p5.Color object, color components,\n or CSS color

\n', + type: 'p5.Color|Number[]|String' + } + ], + return: { + description: 'the green value', + type: 'Number' + }, + example: [ + "\n
\n\nlet c = color(20, 75, 200); // Define color 'c'\nfill(c); // Use color variable 'c' as fill color\nrect(15, 20, 35, 60); // Draw left rectangle\n\nlet greenValue = green(c); // Get green in 'c'\nprint(greenValue); // Print \"75.0\"\nfill(0, greenValue, 0); // Use 'greenValue' in new fill\nrect(50, 20, 35, 60); // Draw right rectangle\n\n
" + ], + alt: + 'blue rect on left and green on right, both with black outlines & 35x60.', + class: 'p5', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/creating_reading.js', + line: 363, + description: + '

Extracts the hue value from a color or pixel array.

\n

Hue exists in both HSB and HSL. This function will return the\nHSB-normalized hue when supplied with an HSB color object (or when supplied\nwith a pixel array while the color mode is HSB), but will default to the\nHSL-normalized hue otherwise. (The values will only be different if the\nmaximum hue setting for each system is different.)

\n', + itemtype: 'method', + name: 'hue', + params: [ + { + name: 'color', + description: + '

p5.Color object, color components,\n or CSS color

\n', + type: 'p5.Color|Number[]|String' + } + ], + return: { + description: 'the hue', + type: 'Number' + }, + example: [ + '\n
\n\nnoStroke();\ncolorMode(HSB, 255);\nlet c = color(0, 126, 255);\nfill(c);\nrect(15, 20, 35, 60);\nlet value = hue(c); // Sets \'value\' to "0"\nfill(value);\nrect(50, 20, 35, 60);\n\n
' + ], + alt: 'salmon pink rect on left and black on right, both 35x60.', + class: 'p5', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/creating_reading.js', + line: 400, + description: + '

Blends two colors to find a third color somewhere between them. The amt\nparameter is the amount to interpolate between the two values where 0.0\nequal to the first color, 0.1 is very near the first color, 0.5 is halfway\nin between, etc. An amount below 0 will be treated as 0. Likewise, amounts\nabove 1 will be capped at 1. This is different from the behavior of lerp(),\nbut necessary because otherwise numbers outside the range will produce\nstrange and unexpected colors.\n

\nThe way that colours are interpolated depends on the current color mode.

\n', + itemtype: 'method', + name: 'lerpColor', + params: [ + { + name: 'c1', + description: '

interpolate from this color

\n', + type: 'p5.Color' + }, + { + name: 'c2', + description: '

interpolate to this color

\n', + type: 'p5.Color' + }, + { + name: 'amt', + description: '

number between 0 and 1

\n', + type: 'Number' + } + ], + return: { + description: 'interpolated color', + type: 'p5.Color' + }, + example: [ + '\n
\n\ncolorMode(RGB);\nstroke(255);\nbackground(51);\nlet from = color(218, 165, 32);\nlet to = color(72, 61, 139);\ncolorMode(RGB); // Try changing to HSB.\nlet interA = lerpColor(from, to, 0.33);\nlet interB = lerpColor(from, to, 0.66);\nfill(from);\nrect(10, 20, 20, 60);\nfill(interA);\nrect(30, 20, 20, 60);\nfill(interB);\nrect(50, 20, 20, 60);\nfill(to);\nrect(70, 20, 20, 60);\n\n
' + ], + alt: + '4 rects one tan, brown, brownish purple, purple, with white outlines & 20x60', + class: 'p5', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/creating_reading.js', + line: 497, + description: + '

Extracts the HSL lightness value from a color or pixel array.

\n', + itemtype: 'method', + name: 'lightness', + params: [ + { + name: 'color', + description: + '

p5.Color object, color components,\n or CSS color

\n', + type: 'p5.Color|Number[]|String' + } + ], + return: { + description: 'the lightness', + type: 'Number' + }, + example: [ + "\n
\n\nnoStroke();\ncolorMode(HSL);\nlet c = color(156, 100, 50, 1);\nfill(c);\nrect(15, 20, 35, 60);\nlet value = lightness(c); // Sets 'value' to 50\nfill(value);\nrect(50, 20, 35, 60);\n\n
" + ], + alt: + 'light pastel green rect on left and dark grey rect on right, both 35x60.', + class: 'p5', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/creating_reading.js', + line: 527, + description: '

Extracts the red value from a color or pixel array.

\n', + itemtype: 'method', + name: 'red', + params: [ + { + name: 'color', + description: + '

p5.Color object, color components,\n or CSS color

\n', + type: 'p5.Color|Number[]|String' + } + ], + return: { + description: 'the red value', + type: 'Number' + }, + example: [ + "\n
\n\nlet c = color(255, 204, 0); // Define color 'c'\nfill(c); // Use color variable 'c' as fill color\nrect(15, 20, 35, 60); // Draw left rectangle\n\nlet redValue = red(c); // Get red in 'c'\nprint(redValue); // Print \"255.0\"\nfill(redValue, 0, 0); // Use 'redValue' in new fill\nrect(50, 20, 35, 60); // Draw right rectangle\n\n
\n\n
\n\ncolorMode(RGB, 255); // Sets the range for red, green, and blue to 255\nlet c = color(127, 255, 0);\ncolorMode(RGB, 1); // Sets the range for red, green, and blue to 1\nlet myColor = red(c);\nprint(myColor); // 0.4980392156862745\n\n
" + ], + alt: + 'yellow rect on left and red rect on right, both with black outlines and 35x60.\ngrey canvas', + class: 'p5', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/creating_reading.js', + line: 567, + description: + '

Extracts the saturation value from a color or pixel array.

\n

Saturation is scaled differently in HSB and HSL. This function will return\nthe HSB saturation when supplied with an HSB color object (or when supplied\nwith a pixel array while the color mode is HSB), but will default to the\nHSL saturation otherwise.

\n', + itemtype: 'method', + name: 'saturation', + params: [ + { + name: 'color', + description: + '

p5.Color object, color components,\n or CSS color

\n', + type: 'p5.Color|Number[]|String' + } + ], + return: { + description: 'the saturation value', + type: 'Number' + }, + example: [ + "\n
\n\nnoStroke();\ncolorMode(HSB, 255);\nlet c = color(0, 126, 255);\nfill(c);\nrect(15, 20, 35, 60);\nlet value = saturation(c); // Sets 'value' to 126\nfill(value);\nrect(50, 20, 35, 60);\n\n
" + ], + alt: 'deep pink rect on left and grey rect on right, both 35x60.', + class: 'p5', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/p5.Color.js', + line: 52, + description: + '

This function returns the color formatted as a string. This can be useful\nfor debugging, or for using p5.js with other libraries.

\n', + itemtype: 'method', + name: 'toString', + params: [ + { + name: 'format', + description: + '

How the color string will be formatted.\nLeaving this empty formats the string as rgba(r, g, b, a).\n'#rgb' '#rgba' '#rrggbb' and '#rrggbbaa' format as hexadecimal color codes.\n'rgb' 'hsb' and 'hsl' return the color formatted in the specified color mode.\n'rgba' 'hsba' and 'hsla' are the same as above but with alpha channels.\n'rgb%' 'hsb%' 'hsl%' 'rgba%' 'hsba%' and 'hsla%' format as percentages.

\n', + type: 'String', + optional: true + } + ], + return: { + description: 'the formatted string', + type: 'String' + }, + example: [ + "\n
\n\nlet myColor;\nfunction setup() {\n createCanvas(200, 200);\n stroke(255);\n myColor = color(100, 100, 250);\n fill(myColor);\n}\n\nfunction draw() {\n rotate(HALF_PI);\n text(myColor.toString(), 0, -5);\n text(myColor.toString('#rrggbb'), 0, -30);\n text(myColor.toString('rgba%'), 0, -55);\n}\n\n
" + ], + alt: 'canvas with text representation of color', + class: 'p5.Color', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/p5.Color.js', + line: 253, + itemtype: 'method', + name: 'setRed', + params: [ + { + name: 'red', + description: '

the new red value

\n', + type: 'Number' + } + ], + example: [ + '\n
\n\nlet backgroundColor;\n\nfunction setup() {\n backgroundColor = color(100, 50, 150);\n}\n\nfunction draw() {\n backgroundColor.setRed(128 + 128 * sin(millis() / 1000));\n background(backgroundColor);\n}\n\n
' + ], + alt: 'canvas with gradually changing background color', + class: 'p5.Color', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/p5.Color.js', + line: 280, + itemtype: 'method', + name: 'setGreen', + params: [ + { + name: 'green', + description: '

the new green value

\n', + type: 'Number' + } + ], + example: [ + '\n
\n\nlet backgroundColor;\n\nfunction setup() {\n backgroundColor = color(100, 50, 150);\n}\n\nfunction draw() {\n backgroundColor.setGreen(128 + 128 * sin(millis() / 1000));\n background(backgroundColor);\n}\n\n
' + ], + alt: 'canvas with gradually changing background color', + class: 'p5.Color', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/p5.Color.js', + line: 307, + itemtype: 'method', + name: 'setBlue', + params: [ + { + name: 'blue', + description: '

the new blue value

\n', + type: 'Number' + } + ], + example: [ + '\n
\n\nlet backgroundColor;\n\nfunction setup() {\n backgroundColor = color(100, 50, 150);\n}\n\nfunction draw() {\n backgroundColor.setBlue(128 + 128 * sin(millis() / 1000));\n background(backgroundColor);\n}\n\n
' + ], + alt: 'canvas with gradually changing background color', + class: 'p5.Color', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/p5.Color.js', + line: 334, + itemtype: 'method', + name: 'setAlpha', + params: [ + { + name: 'alpha', + description: '

the new alpha value

\n', + type: 'Number' + } + ], + example: [ + '\n
\n\nlet squareColor;\n\nfunction setup() {\n ellipseMode(CORNERS);\n strokeWeight(4);\n squareColor = color(100, 50, 150);\n}\n\nfunction draw() {\n background(255);\n\n noFill();\n stroke(0);\n ellipse(10, 10, width - 10, height - 10);\n\n squareColor.setAlpha(128 + 128 * sin(millis() / 1000));\n fill(squareColor);\n noStroke();\n rect(13, 13, width - 26, height - 26);\n}\n\n
' + ], + alt: 'circle behind a square with gradually changing opacity', + class: 'p5.Color', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/p5.Color.js', + line: 415, + description: + '

Hue is the same in HSB and HSL, but the maximum value may be different.\nThis function will return the HSB-normalized saturation when supplied with\nan HSB color object, but will default to the HSL-normalized saturation\notherwise.

\n', + class: 'p5.Color', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/p5.Color.js', + line: 446, + description: + '

Saturation is scaled differently in HSB and HSL. This function will return\nthe HSB saturation when supplied with an HSB color object, but will default\nto the HSL saturation otherwise.

\n', + class: 'p5.Color', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/p5.Color.js', + line: 465, + description: '

CSS named colors.

\n', + class: 'p5.Color', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/p5.Color.js', + line: 618, + description: + '

These regular expressions are used to build up the patterns for matching\nviable CSS color strings: fragmenting the regexes in this way increases the\nlegibility and comprehensibility of the code.

\n

Note that RGB values of .9 are not parsed by IE, but are supported here for\ncolor string consistency.

\n', + class: 'p5.Color', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/p5.Color.js', + line: 631, + description: + '

Full color string patterns. The capture groups are necessary.

\n', + class: 'p5.Color', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/p5.Color.js', + line: 994, + description: + '

For HSB and HSL, interpret the gray level as a brightness/lightness\nvalue (they are equivalent when chroma is zero). For RGB, normalize the\ngray level according to the blue maximum.

\n', + class: 'p5.Color', + module: 'Color', + submodule: 'Creating & Reading' + }, + { + file: 'src/color/setting.js', + line: 15, + description: + '

The background() function sets the color used for the background of the\np5.js canvas. The default background is transparent. This function is\ntypically used within draw() to clear the display window at the beginning\nof each frame, but it can be used inside setup() to set the background on\nthe first frame of animation or if the background need only be set once.\n

\nThe color is either specified in terms of the RGB, HSB, or HSL color\ndepending on the current colorMode. (The default color space is RGB, with\neach value in the range from 0 to 255). The alpha range by default is also 0 to 255.\n

\nIf a single string argument is provided, RGB, RGBA and Hex CSS color strings\nand all named color strings are supported. In this case, an alpha number\nvalue as a second argument is not supported, the RGBA form should be used.\n

\nA p5.Color object can also be provided to set the background color.\n

\nA p5.Image can also be provided to set the background image.

\n', + itemtype: 'method', + name: 'background', + chainable: 1, + example: [ + "\n
\n\n// Grayscale integer value\nbackground(51);\n\n
\n\n
\n\n// R, G & B integer values\nbackground(255, 204, 0);\n\n
\n\n
\n\n// H, S & B integer values\ncolorMode(HSB);\nbackground(255, 204, 100);\n\n
\n\n
\n\n// Named SVG/CSS color string\nbackground('red');\n\n
\n\n
\n\n// three-digit hexadecimal RGB notation\nbackground('#fae');\n\n
\n\n
\n\n// six-digit hexadecimal RGB notation\nbackground('#222222');\n\n
\n\n
\n\n// integer RGB notation\nbackground('rgb(0,255,0)');\n\n
\n\n
\n\n// integer RGBA notation\nbackground('rgba(0,255,0, 0.25)');\n\n
\n\n
\n\n// percentage RGB notation\nbackground('rgb(100%,0%,10%)');\n\n
\n\n
\n\n// percentage RGBA notation\nbackground('rgba(100%,0%,100%,0.5)');\n\n
\n\n
\n\n// p5 Color object\nbackground(color(0, 0, 255));\n\n
" + ], + alt: + 'canvas with darkest charcoal grey background.\ncanvas with yellow background.\ncanvas with royal blue background.\ncanvas with red background.\ncanvas with pink background.\ncanvas with black background.\ncanvas with bright green background.\ncanvas with soft green background.\ncanvas with red background.\ncanvas with light purple background.\ncanvas with blue background.', + class: 'p5', + module: 'Color', + submodule: 'Setting', + overloads: [ + { + line: 15, + params: [ + { + name: 'color', + description: + '

any value created by the color() function

\n', + type: 'p5.Color' + } + ], + chainable: 1 + }, + { + line: 131, + params: [ + { + name: 'colorstring', + description: + '

color string, possible formats include: integer\n rgb() or rgba(), percentage rgb() or rgba(),\n 3-digit hex, 6-digit hex

\n', + type: 'String' + }, + { + name: 'a', + description: + '

opacity of the background relative to current\n color range (default is 0-255)

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 141, + params: [ + { + name: 'gray', + description: '

specifies a value between white and black

\n', + type: 'Number' + }, + { + name: 'a', + description: '', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 148, + params: [ + { + name: 'v1', + description: + '

red or hue value (depending on the current color\n mode)

\n', + type: 'Number' + }, + { + name: 'v2', + description: + '

green or saturation value (depending on the current\n color mode)

\n', + type: 'Number' + }, + { + name: 'v3', + description: + '

blue or brightness value (depending on the current\n color mode)

\n', + type: 'Number' + }, + { + name: 'a', + description: '', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 160, + params: [ + { + name: 'values', + description: + '

an array containing the red, green, blue\n and alpha components of the color

\n', + type: 'Number[]' + } + ], + chainable: 1 + }, + { + line: 167, + params: [ + { + name: 'image', + description: + '

image created with loadImage() or createImage(),\n to set as background\n (must be same size as the sketch window)

\n', + type: 'p5.Image' + }, + { + name: 'a', + description: '', + type: 'Number', + optional: true + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/color/setting.js', + line: 181, + description: + '

Clears the pixels within a buffer. This function only clears the canvas.\nIt will not clear objects created by createX() methods such as\ncreateVideo() or createDiv().\nUnlike the main graphics context, pixels in additional graphics areas created\nwith createGraphics() can be entirely\nor partially transparent. This function clears everything to make all of\nthe pixels 100% transparent.

\n', + itemtype: 'method', + name: 'clear', + chainable: 1, + example: [ + '\n
\n\n// Clear the screen on mouse press.\nfunction setup() {\n createCanvas(100, 100);\n}\n\nfunction draw() {\n ellipse(mouseX, mouseY, 20, 20);\n}\n\nfunction mousePressed() {\n clear();\n}\n\n
' + ], + alt: + '20x20 white ellipses are continually drawn at mouse x and y coordinates.', + class: 'p5', + module: 'Color', + submodule: 'Setting' + }, + { + file: 'src/color/setting.js', + line: 220, + description: + '

colorMode() changes the way p5.js interprets color data. By default, the\nparameters for fill(), stroke(), background(), and color() are defined by\nvalues between 0 and 255 using the RGB color model. This is equivalent to\nsetting colorMode(RGB, 255). Setting colorMode(HSB) lets you use the HSB\nsystem instead. By default, this is colorMode(HSB, 360, 100, 100, 1). You\ncan also use HSL.\n

\nNote: existing color objects remember the mode that they were created in,\nso you can change modes as you like without affecting their appearance.

\n', + itemtype: 'method', + name: 'colorMode', + chainable: 1, + example: [ + '\n
\n\nnoStroke();\ncolorMode(RGB, 100);\nfor (let i = 0; i < 100; i++) {\n for (let j = 0; j < 100; j++) {\n stroke(i, j, 0);\n point(i, j);\n }\n}\n\n
\n\n
\n\nnoStroke();\ncolorMode(HSB, 100);\nfor (let i = 0; i < 100; i++) {\n for (let j = 0; j < 100; j++) {\n stroke(i, j, 100);\n point(i, j);\n }\n}\n\n
\n\n
\n\ncolorMode(RGB, 255);\nlet c = color(127, 255, 0);\n\ncolorMode(RGB, 1);\nlet myColor = c._getRed();\ntext(myColor, 10, 10, 80, 80);\n\n
\n\n
\n\nnoFill();\ncolorMode(RGB, 255, 255, 255, 1);\nbackground(255);\n\nstrokeWeight(4);\nstroke(255, 0, 10, 0.3);\nellipse(40, 40, 50, 50);\nellipse(50, 50, 40, 40);\n\n
' + ], + alt: + 'Green to red gradient from bottom L to top R. shading originates from top left.\nRainbow gradient from left to right. Brightness increasing to white at top.\nunknown image.\n50x50 ellipse at middle L & 40x40 ellipse at center. Translucent pink outlines.', + class: 'p5', + module: 'Color', + submodule: 'Setting', + overloads: [ + { + line: 220, + params: [ + { + name: 'mode', + description: + '

either RGB, HSB or HSL, corresponding to\n Red/Green/Blue and Hue/Saturation/Brightness\n (or Lightness)

\n', + type: 'Constant' + }, + { + name: 'max', + description: '

range for all values

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 297, + params: [ + { + name: 'mode', + description: '', + type: 'Constant' + }, + { + name: 'max1', + description: + '

range for the red or hue depending on the\n current color mode

\n', + type: 'Number' + }, + { + name: 'max2', + description: + '

range for the green or saturation depending\n on the current color mode

\n', + type: 'Number' + }, + { + name: 'max3', + description: + '

range for the blue or brightness/lightness\n depending on the current color mode

\n', + type: 'Number' + }, + { + name: 'maxA', + description: '

range for the alpha

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/color/setting.js', + line: 341, + description: + '

Sets the color used to fill shapes. For example, if you run\nfill(204, 102, 0), all shapes drawn after the fill command will be filled with the color orange. This\ncolor is either specified in terms of the RGB or HSB color depending on\nthe current colorMode(). (The default color space is RGB, with each value\nin the range from 0 to 255). The alpha range by default is also 0 to 255.\n

\nIf a single string argument is provided, RGB, RGBA and Hex CSS color strings\nand all named color strings are supported. In this case, an alpha number\nvalue as a second argument is not supported, the RGBA form should be used.\n

\nA p5 Color object can also be provided to set the fill color.

\n', + itemtype: 'method', + name: 'fill', + chainable: 1, + example: [ + "\n
\n\n// Grayscale integer value\nfill(51);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// R, G & B integer values\nfill(255, 204, 0);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// H, S & B integer values\ncolorMode(HSB);\nfill(255, 204, 100);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// Named SVG/CSS color string\nfill('red');\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// three-digit hexadecimal RGB notation\nfill('#fae');\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// six-digit hexadecimal RGB notation\nfill('#222222');\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// integer RGB notation\nfill('rgb(0,255,0)');\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// integer RGBA notation\nfill('rgba(0,255,0, 0.25)');\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// percentage RGB notation\nfill('rgb(100%,0%,10%)');\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// percentage RGBA notation\nfill('rgba(100%,0%,100%,0.5)');\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// p5 Color object\nfill(color(0, 0, 255));\nrect(20, 20, 60, 60);\n\n
" + ], + alt: + '60x60 dark charcoal grey rect with black outline in center of canvas.\n60x60 yellow rect with black outline in center of canvas.\n60x60 royal blue rect with black outline in center of canvas.\n60x60 red rect with black outline in center of canvas.\n60x60 pink rect with black outline in center of canvas.\n60x60 black rect with black outline in center of canvas.\n60x60 light green rect with black outline in center of canvas.\n60x60 soft green rect with black outline in center of canvas.\n60x60 red rect with black outline in center of canvas.\n60x60 dark fuchsia rect with black outline in center of canvas.\n60x60 blue rect with black outline in center of canvas.', + class: 'p5', + module: 'Color', + submodule: 'Setting', + overloads: [ + { + line: 341, + params: [ + { + name: 'v1', + description: + '

red or hue value relative to\n the current color range

\n', + type: 'Number' + }, + { + name: 'v2', + description: + '

green or saturation value\n relative to the current color range

\n', + type: 'Number' + }, + { + name: 'v3', + description: + '

blue or brightness value\n relative to the current color range

\n', + type: 'Number' + }, + { + name: 'alpha', + description: '', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 466, + params: [ + { + name: 'value', + description: '

a color string

\n', + type: 'String' + } + ], + chainable: 1 + }, + { + line: 472, + params: [ + { + name: 'gray', + description: '

a gray value

\n', + type: 'Number' + }, + { + name: 'alpha', + description: '', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 479, + params: [ + { + name: 'values', + description: + '

an array containing the red,green,blue &\n and alpha components of the color

\n', + type: 'Number[]' + } + ], + chainable: 1 + }, + { + line: 486, + params: [ + { + name: 'color', + description: '

the fill color

\n', + type: 'p5.Color' + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/color/setting.js', + line: 498, + description: + '

Disables filling geometry. If both noStroke() and noFill() are called,\nnothing will be drawn to the screen.

\n', + itemtype: 'method', + name: 'noFill', + chainable: 1, + example: [ + "\n
\n\nrect(15, 10, 55, 55);\nnoFill();\nrect(20, 20, 60, 60);\n\n
\n\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(0);\n noFill();\n stroke(100, 100, 240);\n rotateX(frameCount * 0.01);\n rotateY(frameCount * 0.01);\n box(45, 45, 45);\n}\n\n
" + ], + alt: + 'white rect top middle and noFill rect center. Both 60x60 with black outlines.\nblack canvas with purple cube wireframe spinning', + class: 'p5', + module: 'Color', + submodule: 'Setting' + }, + { + file: 'src/color/setting.js', + line: 539, + description: + '

Disables drawing the stroke (outline). If both noStroke() and noFill()\nare called, nothing will be drawn to the screen.

\n', + itemtype: 'method', + name: 'noStroke', + chainable: 1, + example: [ + "\n
\n\nnoStroke();\nrect(20, 20, 60, 60);\n\n
\n\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(0);\n noStroke();\n fill(240, 150, 150);\n rotateX(frameCount * 0.01);\n rotateY(frameCount * 0.01);\n box(45, 45, 45);\n}\n\n
" + ], + alt: + '60x60 white rect at center. no outline.\nblack canvas with pink cube spinning', + class: 'p5', + module: 'Color', + submodule: 'Setting' + }, + { + file: 'src/color/setting.js', + line: 579, + description: + '

Sets the color used to draw lines and borders around shapes. This color\nis either specified in terms of the RGB or HSB color depending on the\ncurrent colorMode() (the default color space is RGB, with each value in\nthe range from 0 to 255). The alpha range by default is also 0 to 255.\n

\nIf a single string argument is provided, RGB, RGBA and Hex CSS color\nstrings and all named color strings are supported. In this case, an alpha\nnumber value as a second argument is not supported, the RGBA form should be\nused.\n

\nA p5 Color object can also be provided to set the stroke color.

\n', + itemtype: 'method', + name: 'stroke', + chainable: 1, + example: [ + "\n
\n\n// Grayscale integer value\nstrokeWeight(4);\nstroke(51);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// R, G & B integer values\nstroke(255, 204, 0);\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// H, S & B integer values\ncolorMode(HSB);\nstrokeWeight(4);\nstroke(255, 204, 100);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// Named SVG/CSS color string\nstroke('red');\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// three-digit hexadecimal RGB notation\nstroke('#fae');\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// six-digit hexadecimal RGB notation\nstroke('#222222');\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// integer RGB notation\nstroke('rgb(0,255,0)');\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// integer RGBA notation\nstroke('rgba(0,255,0,0.25)');\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// percentage RGB notation\nstroke('rgb(100%,0%,10%)');\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// percentage RGBA notation\nstroke('rgba(100%,0%,100%,0.5)');\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
\n\n
\n\n// p5 Color object\nstroke(color(0, 0, 255));\nstrokeWeight(4);\nrect(20, 20, 60, 60);\n\n
" + ], + alt: + '60x60 white rect at center. Dark charcoal grey outline.\n60x60 white rect at center. Yellow outline.\n60x60 white rect at center. Royal blue outline.\n60x60 white rect at center. Red outline.\n60x60 white rect at center. Pink outline.\n60x60 white rect at center. Black outline.\n60x60 white rect at center. Bright green outline.\n60x60 white rect at center. Soft green outline.\n60x60 white rect at center. Red outline.\n60x60 white rect at center. Dark fuchsia outline.\n60x60 white rect at center. Blue outline.', + class: 'p5', + module: 'Color', + submodule: 'Setting', + overloads: [ + { + line: 579, + params: [ + { + name: 'v1', + description: + '

red or hue value relative to\n the current color range

\n', + type: 'Number' + }, + { + name: 'v2', + description: + '

green or saturation value\n relative to the current color range

\n', + type: 'Number' + }, + { + name: 'v3', + description: + '

blue or brightness value\n relative to the current color range

\n', + type: 'Number' + }, + { + name: 'alpha', + description: '', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 718, + params: [ + { + name: 'value', + description: '

a color string

\n', + type: 'String' + } + ], + chainable: 1 + }, + { + line: 724, + params: [ + { + name: 'gray', + description: '

a gray value

\n', + type: 'Number' + }, + { + name: 'alpha', + description: '', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 731, + params: [ + { + name: 'values', + description: + '

an array containing the red,green,blue &\n and alpha components of the color

\n', + type: 'Number[]' + } + ], + chainable: 1 + }, + { + line: 738, + params: [ + { + name: 'color', + description: '

the stroke color

\n', + type: 'p5.Color' + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/core/shape/2d_primitives.js', + line: 16, + description: + '

This function does 3 things:

\n
    \n
  1. Bounds the desired start/stop angles for an arc (in radians) so that:

    \n
    0 <= start < TWO_PI ;    start <= stop < start + TWO_PI\n

    This means that the arc rendering functions don't have to be concerned\nwith what happens if stop is smaller than start, or if the arc 'goes\nround more than once', etc.: they can just start at start and increase\nuntil stop and the correct arc will be drawn.

    \n
  2. \n
  3. Optionally adjusts the angles within each quadrant to counter the naive\nscaling of the underlying ellipse up from the unit circle. Without\nthis, the angles become arbitrary when width != height: 45 degrees\nmight be drawn at 5 degrees on a 'wide' ellipse, or at 85 degrees on\na 'tall' ellipse.

    \n
  4. \n
  5. Flags up when start and stop correspond to the same place on the\nunderlying ellipse. This is useful if you want to do something special\nthere (like rendering a whole ellipse instead).

    \n
  6. \n
\n', + class: 'p5', + module: 'Shape', + submodule: '2D Primitives' + }, + { + file: 'src/core/shape/2d_primitives.js', + line: 102, + description: + '

Draw an arc to the screen. If called with only x, y, w, h, start, and\nstop, the arc will be drawn and filled as an open pie segment. If a mode parameter is provided, the arc\nwill be filled like an open semi-circle (OPEN) , a closed semi-circle (CHORD), or as a closed pie segment (PIE). The\norigin may be changed with the ellipseMode() function.

\nThe arc is always drawn clockwise from wherever start falls to wherever stop falls on the ellipse.\nAdding or subtracting TWO_PI to either angle does not change where they fall.\nIf both start and stop fall at the same place, a full ellipse will be drawn. Be aware that the the\ny-axis increases in the downward direction therefore the values of PI is counter clockwise.

\n', + itemtype: 'method', + name: 'arc', + params: [ + { + name: 'x', + description: '

x-coordinate of the arc's ellipse

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y-coordinate of the arc's ellipse

\n', + type: 'Number' + }, + { + name: 'w', + description: '

width of the arc's ellipse by default

\n', + type: 'Number' + }, + { + name: 'h', + description: '

height of the arc's ellipse by default

\n', + type: 'Number' + }, + { + name: 'start', + description: '

angle to start the arc, specified in radians

\n', + type: 'Number' + }, + { + name: 'stop', + description: '

angle to stop the arc, specified in radians

\n', + type: 'Number' + }, + { + name: 'mode', + description: + '

optional parameter to determine the way of drawing\n the arc. either CHORD, PIE or OPEN

\n', + type: 'Constant', + optional: true + }, + { + name: 'detail', + description: + '

optional parameter for WebGL mode only. This is to\n specify the number of vertices that makes up the\n perimeter of the arc. Default value is 25.

\n', + type: 'Number', + optional: true + } + ], + chainable: 1, + example: [ + '\n
\n\narc(50, 55, 50, 50, 0, HALF_PI);\nnoFill();\narc(50, 55, 60, 60, HALF_PI, PI);\narc(50, 55, 70, 70, PI, PI + QUARTER_PI);\narc(50, 55, 80, 80, PI + QUARTER_PI, TWO_PI);\n\n
\n\n
\n\narc(50, 50, 80, 80, 0, PI + QUARTER_PI);\n\n
\n\n
\n\narc(50, 50, 80, 80, 0, PI + QUARTER_PI, OPEN);\n\n
\n\n
\n\narc(50, 50, 80, 80, 0, PI + QUARTER_PI, CHORD);\n\n
\n\n
\n\narc(50, 50, 80, 80, 0, PI + QUARTER_PI, PIE);\n\n
' + ], + alt: + 'shattered outline of an ellipse with a quarter of a white circle bottom-right.\nwhite ellipse with top right quarter missing.\nwhite ellipse with black outline with top right missing.\nwhite ellipse with top right missing with black outline around shape.\nwhite ellipse with top right quarter missing with black outline around the shape.', + class: 'p5', + module: 'Shape', + submodule: '2D Primitives' + }, + { + file: 'src/core/shape/2d_primitives.js', + line: 210, + description: + '

Draws an ellipse (oval) to the screen. An ellipse with equal width and\nheight is a circle. By default, the first two parameters set the location,\nand the third and fourth parameters set the shape's width and height. If\nno height is specified, the value of width is used for both the width and\nheight. If a negative height or width is specified, the absolute value is taken.\nThe origin may be changed with the ellipseMode() function.

\n', + itemtype: 'method', + name: 'ellipse', + chainable: 1, + example: ['\n
\n\nellipse(56, 46, 55, 55);\n\n
'], + alt: + 'white ellipse with black outline in middle-right of canvas that is 55x55.', + class: 'p5', + module: 'Shape', + submodule: '2D Primitives', + overloads: [ + { + line: 210, + params: [ + { + name: 'x', + description: '

x-coordinate of the ellipse.

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y-coordinate of the ellipse.

\n', + type: 'Number' + }, + { + name: 'w', + description: '

width of the ellipse.

\n', + type: 'Number' + }, + { + name: 'h', + description: '

height of the ellipse.

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 235, + params: [ + { + name: 'x', + description: '', + type: 'Number' + }, + { + name: 'y', + description: '', + type: 'Number' + }, + { + name: 'w', + description: '', + type: 'Number' + }, + { + name: 'h', + description: '', + type: 'Number' + }, + { + name: 'detail', + description: + '

number of radial sectors to draw (for WebGL mode)

\n', + type: 'Integer' + } + ] + } + ] + }, + { + file: 'src/core/shape/2d_primitives.js', + line: 270, + description: + '

Draws a circle to the screen. A circle is a simple closed shape.\nIt is the set of all points in a plane that are at a given distance from a given point, the centre.\nThis function is a special case of the ellipse() function, where the width and height of the ellipse are the same.\nHeight and width of the ellipse correspond to the diameter of the circle.\nBy default, the first two parameters set the location of the centre of the circle, the third sets the diameter of the circle.

\n', + itemtype: 'method', + name: 'circle', + params: [ + { + name: 'x', + description: '

x-coordinate of the centre of the circle.

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y-coordinate of the centre of the circle.

\n', + type: 'Number' + }, + { + name: 'd', + description: '

diameter of the circle.

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + '\n
\n\n// Draw a circle at location (30, 30) with a diameter of 20.\ncircle(30, 30, 20);\n\n
' + ], + alt: 'white circle with black outline in mid of canvas that is 55x55.', + class: 'p5', + module: 'Shape', + submodule: '2D Primitives' + }, + { + file: 'src/core/shape/2d_primitives.js', + line: 300, + description: + '

Draws a line (a direct path between two points) to the screen. The version\nof line() with four parameters draws the line in 2D. To color a line, use\nthe stroke() function. A line cannot be filled, therefore the fill()\nfunction will not affect the color of a line. 2D lines are drawn with a\nwidth of one pixel by default, but this can be changed with the\nstrokeWeight() function.

\n', + itemtype: 'method', + name: 'line', + chainable: 1, + example: [ + '\n
\n\nline(30, 20, 85, 75);\n\n
\n\n
\n\nline(30, 20, 85, 20);\nstroke(126);\nline(85, 20, 85, 75);\nstroke(255);\nline(85, 75, 30, 75);\n\n
' + ], + alt: + 'line 78 pixels long running from mid-top to bottom-right of canvas.\n3 lines of various stroke sizes. Form top, bottom and right sides of a square.', + class: 'p5', + module: 'Shape', + submodule: '2D Primitives', + overloads: [ + { + line: 300, + params: [ + { + name: 'x1', + description: '

the x-coordinate of the first point

\n', + type: 'Number' + }, + { + name: 'y1', + description: '

the y-coordinate of the first point

\n', + type: 'Number' + }, + { + name: 'x2', + description: '

the x-coordinate of the second point

\n', + type: 'Number' + }, + { + name: 'y2', + description: '

the y-coordinate of the second point

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 336, + params: [ + { + name: 'x1', + description: '', + type: 'Number' + }, + { + name: 'y1', + description: '', + type: 'Number' + }, + { + name: 'z1', + description: '

the z-coordinate of the first point

\n', + type: 'Number' + }, + { + name: 'x2', + description: '', + type: 'Number' + }, + { + name: 'y2', + description: '', + type: 'Number' + }, + { + name: 'z2', + description: '

the z-coordinate of the second point

\n', + type: 'Number' + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/core/shape/2d_primitives.js', + line: 356, + description: + '

Draws a point, a coordinate in space at the dimension of one pixel.\nThe first parameter is the horizontal value for the point, the second\nvalue is the vertical value for the point. The color of the point is\ndetermined by the current stroke.

\n', + itemtype: 'method', + name: 'point', + params: [ + { + name: 'x', + description: '

the x-coordinate

\n', + type: 'Number' + }, + { + name: 'y', + description: '

the y-coordinate

\n', + type: 'Number' + }, + { + name: 'z', + description: '

the z-coordinate (for WebGL mode)

\n', + type: 'Number', + optional: true + } + ], + chainable: 1, + example: [ + '\n
\n\npoint(30, 20);\npoint(85, 20);\npoint(85, 75);\npoint(30, 75);\n\n
' + ], + alt: '4 points centered in the middle-right of the canvas.', + class: 'p5', + module: 'Shape', + submodule: '2D Primitives' + }, + { + file: 'src/core/shape/2d_primitives.js', + line: 391, + description: + '

Draw a quad. A quad is a quadrilateral, a four sided polygon. It is\nsimilar to a rectangle, but the angles between its edges are not\nconstrained to ninety degrees. The first pair of parameters (x1,y1)\nsets the first vertex and the subsequent pairs should proceed\nclockwise or counter-clockwise around the defined shape.\nz-arguments only work when quad() is used in WEBGL mode.

\n', + itemtype: 'method', + name: 'quad', + chainable: 1, + example: [ + '\n
\n\nquad(38, 31, 86, 20, 69, 63, 30, 76);\n\n
' + ], + alt: + 'irregular white quadrilateral shape with black outline mid-right of canvas.', + class: 'p5', + module: 'Shape', + submodule: '2D Primitives', + overloads: [ + { + line: 391, + params: [ + { + name: 'x1', + description: '

the x-coordinate of the first point

\n', + type: 'Number' + }, + { + name: 'y1', + description: '

the y-coordinate of the first point

\n', + type: 'Number' + }, + { + name: 'x2', + description: '

the x-coordinate of the second point

\n', + type: 'Number' + }, + { + name: 'y2', + description: '

the y-coordinate of the second point

\n', + type: 'Number' + }, + { + name: 'x3', + description: '

the x-coordinate of the third point

\n', + type: 'Number' + }, + { + name: 'y3', + description: '

the y-coordinate of the third point

\n', + type: 'Number' + }, + { + name: 'x4', + description: '

the x-coordinate of the fourth point

\n', + type: 'Number' + }, + { + name: 'y4', + description: '

the y-coordinate of the fourth point

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 421, + params: [ + { + name: 'x1', + description: '', + type: 'Number' + }, + { + name: 'y1', + description: '', + type: 'Number' + }, + { + name: 'z1', + description: '

the z-coordinate of the first point

\n', + type: 'Number' + }, + { + name: 'x2', + description: '', + type: 'Number' + }, + { + name: 'y2', + description: '', + type: 'Number' + }, + { + name: 'z2', + description: '

the z-coordinate of the second point

\n', + type: 'Number' + }, + { + name: 'x3', + description: '', + type: 'Number' + }, + { + name: 'y3', + description: '', + type: 'Number' + }, + { + name: 'z3', + description: '

the z-coordinate of the third point

\n', + type: 'Number' + }, + { + name: 'x4', + description: '', + type: 'Number' + }, + { + name: 'y4', + description: '', + type: 'Number' + }, + { + name: 'z4', + description: '

the z-coordinate of the fourth point

\n', + type: 'Number' + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/core/shape/2d_primitives.js', + line: 458, + description: + '

Draws a rectangle to the screen. A rectangle is a four-sided shape with\nevery angle at ninety degrees. By default, the first two parameters set\nthe location of the upper-left corner, the third sets the width, and the\nfourth sets the height. The way these parameters are interpreted, however,\nmay be changed with the rectMode() function.\n

\nThe fifth, sixth, seventh and eighth parameters, if specified,\ndetermine corner radius for the top-left, top-right, lower-right and\nlower-left corners, respectively. An omitted corner radius parameter is set\nto the value of the previously specified radius value in the parameter list.

\n', + itemtype: 'method', + name: 'rect', + chainable: 1, + example: [ + '\n
\n\n// Draw a rectangle at location (30, 20) with a width and height of 55.\nrect(30, 20, 55, 55);\n\n
\n\n
\n\n// Draw a rectangle with rounded corners, each having a radius of 20.\nrect(30, 20, 55, 55, 20);\n\n
\n\n
\n\n// Draw a rectangle with rounded corners having the following radii:\n// top-left = 20, top-right = 15, bottom-right = 10, bottom-left = 5.\nrect(30, 20, 55, 55, 20, 15, 10, 5);\n\n
' + ], + alt: + '55x55 white rect with black outline in mid-right of canvas.\n55x55 white rect with black outline and rounded edges in mid-right of canvas.\n55x55 white rect with black outline and rounded edges of different radii.', + class: 'p5', + module: 'Shape', + submodule: '2D Primitives', + overloads: [ + { + line: 458, + params: [ + { + name: 'x', + description: '

x-coordinate of the rectangle.

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y-coordinate of the rectangle.

\n', + type: 'Number' + }, + { + name: 'w', + description: '

width of the rectangle.

\n', + type: 'Number' + }, + { + name: 'h', + description: '

height of the rectangle.

\n', + type: 'Number' + }, + { + name: 'tl', + description: '

optional radius of top-left corner.

\n', + type: 'Number', + optional: true + }, + { + name: 'tr', + description: '

optional radius of top-right corner.

\n', + type: 'Number', + optional: true + }, + { + name: 'br', + description: '

optional radius of bottom-right corner.

\n', + type: 'Number', + optional: true + }, + { + name: 'bl', + description: '

optional radius of bottom-left corner.

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 508, + params: [ + { + name: 'x', + description: '', + type: 'Number' + }, + { + name: 'y', + description: '', + type: 'Number' + }, + { + name: 'w', + description: '', + type: 'Number' + }, + { + name: 'h', + description: '', + type: 'Number' + }, + { + name: 'detailX', + description: + '

number of segments in the x-direction (for WebGL mode)

\n', + type: 'Integer', + optional: true + }, + { + name: 'detailY', + description: + '

number of segments in the y-direction (for WebGL mode)

\n', + type: 'Integer', + optional: true + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/core/shape/2d_primitives.js', + line: 541, + description: + '

Draws a square to the screen. A square is a four-sided shape with\nevery angle at ninety degrees, and equal side size.\nThis function is a special case of the rect() function, where the width and height are the same, and the parameter is called "s" for side size.\nBy default, the first two parameters set the location of the upper-left corner, the third sets the side size of the square.\nThe way these parameters are interpreted, however,\nmay be changed with the rectMode() function.\n

\nThe fourth, fifth, sixth and seventh parameters, if specified,\ndetermine corner radius for the top-left, top-right, lower-right and\nlower-left corners, respectively. An omitted corner radius parameter is set\nto the value of the previously specified radius value in the parameter list.

\n', + itemtype: 'method', + name: 'square', + params: [ + { + name: 'x', + description: '

x-coordinate of the square.

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y-coordinate of the square.

\n', + type: 'Number' + }, + { + name: 's', + description: '

side size of the square.

\n', + type: 'Number' + }, + { + name: 'tl', + description: '

optional radius of top-left corner.

\n', + type: 'Number', + optional: true + }, + { + name: 'tr', + description: '

optional radius of top-right corner.

\n', + type: 'Number', + optional: true + }, + { + name: 'br', + description: '

optional radius of bottom-right corner.

\n', + type: 'Number', + optional: true + }, + { + name: 'bl', + description: '

optional radius of bottom-left corner.

\n', + type: 'Number', + optional: true + } + ], + chainable: 1, + example: [ + '\n
\n\n// Draw a square at location (30, 20) with a side size of 55.\nsquare(30, 20, 55);\n\n
\n\n
\n\n// Draw a square with rounded corners, each having a radius of 20.\nsquare(30, 20, 55, 20);\n\n
\n\n
\n\n// Draw a square with rounded corners having the following radii:\n// top-left = 20, top-right = 15, bottom-right = 10, bottom-left = 5.\nsquare(30, 20, 55, 20, 15, 10, 5);\n\n
' + ], + alt: + '55x55 white square with black outline in mid-right of canvas.\n55x55 white square with black outline and rounded edges in mid-right of canvas.\n55x55 white square with black outline and rounded edges of different radii.', + class: 'p5', + module: 'Shape', + submodule: '2D Primitives' + }, + { + file: 'src/core/shape/2d_primitives.js', + line: 595, + description: + '

A triangle is a plane created by connecting three points. The first two\narguments specify the first point, the middle two arguments specify the\nsecond point, and the last two arguments specify the third point.

\n', + itemtype: 'method', + name: 'triangle', + params: [ + { + name: 'x1', + description: '

x-coordinate of the first point

\n', + type: 'Number' + }, + { + name: 'y1', + description: '

y-coordinate of the first point

\n', + type: 'Number' + }, + { + name: 'x2', + description: '

x-coordinate of the second point

\n', + type: 'Number' + }, + { + name: 'y2', + description: '

y-coordinate of the second point

\n', + type: 'Number' + }, + { + name: 'x3', + description: '

x-coordinate of the third point

\n', + type: 'Number' + }, + { + name: 'y3', + description: '

y-coordinate of the third point

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + '\n
\n\ntriangle(30, 75, 58, 20, 86, 75);\n\n
' + ], + alt: 'white triangle with black outline in mid-right of canvas.', + class: 'p5', + module: 'Shape', + submodule: '2D Primitives' + }, + { + file: 'src/core/shape/attributes.js', + line: 14, + description: + '

Modifies the location from which ellipses are drawn by changing the way\nin which parameters given to ellipse() are interpreted.\n

\nThe default mode is ellipseMode(CENTER), which interprets the first two\nparameters of ellipse() as the shape's center point, while the third and\nfourth parameters are its width and height.\n

\nellipseMode(RADIUS) also uses the first two parameters of ellipse() as\nthe shape's center point, but uses the third and fourth parameters to\nspecify half of the shapes's width and height.\n

\nellipseMode(CORNER) interprets the first two parameters of ellipse() as\nthe upper-left corner of the shape, while the third and fourth parameters\nare its width and height.\n

\nellipseMode(CORNERS) interprets the first two parameters of ellipse() as\nthe location of one corner of the ellipse's bounding box, and the third\nand fourth parameters as the location of the opposite corner.\n

\nThe parameter must be written in ALL CAPS because Javascript is a\ncase-sensitive language.

\n', + itemtype: 'method', + name: 'ellipseMode', + params: [ + { + name: 'mode', + description: '

either CENTER, RADIUS, CORNER, or CORNERS

\n', + type: 'Constant' + } + ], + chainable: 1, + example: [ + '\n
\n\nellipseMode(RADIUS); // Set ellipseMode to RADIUS\nfill(255); // Set fill to white\nellipse(50, 50, 30, 30); // Draw white ellipse using RADIUS mode\n\nellipseMode(CENTER); // Set ellipseMode to CENTER\nfill(100); // Set fill to gray\nellipse(50, 50, 30, 30); // Draw gray ellipse using CENTER mode\n\n
\n\n
\n\nellipseMode(CORNER); // Set ellipseMode is CORNER\nfill(255); // Set fill to white\nellipse(25, 25, 50, 50); // Draw white ellipse using CORNER mode\n\nellipseMode(CORNERS); // Set ellipseMode to CORNERS\nfill(100); // Set fill to gray\nellipse(25, 25, 50, 50); // Draw gray ellipse using CORNERS mode\n\n
' + ], + alt: + '60x60 white ellipse and 30x30 grey ellipse with black outlines at center.\n60x60 white ellipse @center and 30x30 grey ellipse top-right, black outlines.', + class: 'p5', + module: 'Shape', + submodule: 'Attributes' + }, + { + file: 'src/core/shape/attributes.js', + line: 83, + description: + '

Draws all geometry with jagged (aliased) edges. Note that smooth() is\nactive by default in 2D mode, so it is necessary to call noSmooth() to disable\nsmoothing of geometry, images, and fonts. In 3D mode, noSmooth() is enabled\nby default, so it is necessary to call smooth() if you would like\nsmooth (antialiased) edges on your geometry.

\n', + itemtype: 'method', + name: 'noSmooth', + chainable: 1, + example: [ + '\n
\n\nbackground(0);\nnoStroke();\nsmooth();\nellipse(30, 48, 36, 36);\nnoSmooth();\nellipse(70, 48, 36, 36);\n\n
' + ], + alt: + '2 pixelated 36x36 white ellipses to left & right of center, black background', + class: 'p5', + module: 'Shape', + submodule: 'Attributes' + }, + { + file: 'src/core/shape/attributes.js', + line: 116, + description: + '

Modifies the location from which rectangles are drawn by changing the way\nin which parameters given to rect() are interpreted.\n

\nThe default mode is rectMode(CORNER), which interprets the first two\nparameters of rect() as the upper-left corner of the shape, while the\nthird and fourth parameters are its width and height.\n

\nrectMode(CORNERS) interprets the first two parameters of rect() as the\nlocation of one corner, and the third and fourth parameters as the\nlocation of the opposite corner.\n

\nrectMode(CENTER) interprets the first two parameters of rect() as the\nshape's center point, while the third and fourth parameters are its\nwidth and height.\n

\nrectMode(RADIUS) also uses the first two parameters of rect() as the\nshape's center point, but uses the third and fourth parameters to specify\nhalf of the shapes's width and height.\n

\nThe parameter must be written in ALL CAPS because Javascript is a\ncase-sensitive language.

\n', + itemtype: 'method', + name: 'rectMode', + params: [ + { + name: 'mode', + description: '

either CORNER, CORNERS, CENTER, or RADIUS

\n', + type: 'Constant' + } + ], + chainable: 1, + example: [ + '\n
\n\nrectMode(CORNER); // Default rectMode is CORNER\nfill(255); // Set fill to white\nrect(25, 25, 50, 50); // Draw white rect using CORNER mode\n\nrectMode(CORNERS); // Set rectMode to CORNERS\nfill(100); // Set fill to gray\nrect(25, 25, 50, 50); // Draw gray rect using CORNERS mode\n\n
\n\n
\n\nrectMode(RADIUS); // Set rectMode to RADIUS\nfill(255); // Set fill to white\nrect(50, 50, 30, 30); // Draw white rect using RADIUS mode\n\nrectMode(CENTER); // Set rectMode to CENTER\nfill(100); // Set fill to gray\nrect(50, 50, 30, 30); // Draw gray rect using CENTER mode\n\n
' + ], + alt: + '50x50 white rect at center and 25x25 grey rect in the top left of the other.\n50x50 white rect at center and 25x25 grey rect in the center of the other.', + class: 'p5', + module: 'Shape', + submodule: 'Attributes' + }, + { + file: 'src/core/shape/attributes.js', + line: 185, + description: + '

Draws all geometry with smooth (anti-aliased) edges. smooth() will also\nimprove image quality of resized images. Note that smooth() is active by\ndefault in 2D mode; noSmooth() can be used to disable smoothing of geometry,\nimages, and fonts. In 3D mode, noSmooth() is enabled\nby default, so it is necessary to call smooth() if you would like\nsmooth (antialiased) edges on your geometry.

\n', + itemtype: 'method', + name: 'smooth', + chainable: 1, + example: [ + '\n
\n\nbackground(0);\nnoStroke();\nsmooth();\nellipse(30, 48, 36, 36);\nnoSmooth();\nellipse(70, 48, 36, 36);\n\n
' + ], + alt: + '2 pixelated 36x36 white ellipses one left one right of center. On black.', + class: 'p5', + module: 'Shape', + submodule: 'Attributes' + }, + { + file: 'src/core/shape/attributes.js', + line: 219, + description: + '

Sets the style for rendering line endings. These ends are either squared,\nextended, or rounded, each of which specified with the corresponding\nparameters: SQUARE, PROJECT, and ROUND. The default cap is ROUND.

\n', + itemtype: 'method', + name: 'strokeCap', + params: [ + { + name: 'cap', + description: '

either SQUARE, PROJECT, or ROUND

\n', + type: 'Constant' + } + ], + chainable: 1, + example: [ + '\n
\n\nstrokeWeight(12.0);\nstrokeCap(ROUND);\nline(20, 30, 80, 30);\nstrokeCap(SQUARE);\nline(20, 50, 80, 50);\nstrokeCap(PROJECT);\nline(20, 70, 80, 70);\n\n
' + ], + alt: + '3 lines. Top line: rounded ends, mid: squared, bottom:longer squared ends.', + class: 'p5', + module: 'Shape', + submodule: 'Attributes' + }, + { + file: 'src/core/shape/attributes.js', + line: 256, + description: + '

Sets the style of the joints which connect line segments. These joints\nare either mitered, beveled, or rounded and specified with the\ncorresponding parameters MITER, BEVEL, and ROUND. The default joint is\nMITER.

\n', + itemtype: 'method', + name: 'strokeJoin', + params: [ + { + name: 'join', + description: '

either MITER, BEVEL, ROUND

\n', + type: 'Constant' + } + ], + chainable: 1, + example: [ + '\n
\n\nnoFill();\nstrokeWeight(10.0);\nstrokeJoin(MITER);\nbeginShape();\nvertex(35, 20);\nvertex(65, 50);\nvertex(35, 80);\nendShape();\n\n
\n\n
\n\nnoFill();\nstrokeWeight(10.0);\nstrokeJoin(BEVEL);\nbeginShape();\nvertex(35, 20);\nvertex(65, 50);\nvertex(35, 80);\nendShape();\n\n
\n\n
\n\nnoFill();\nstrokeWeight(10.0);\nstrokeJoin(ROUND);\nbeginShape();\nvertex(35, 20);\nvertex(65, 50);\nvertex(35, 80);\nendShape();\n\n
' + ], + alt: + 'Right-facing arrowhead shape with pointed tip in center of canvas.\nRight-facing arrowhead shape with flat tip in center of canvas.\nRight-facing arrowhead shape with rounded tip in center of canvas.', + class: 'p5', + module: 'Shape', + submodule: 'Attributes' + }, + { + file: 'src/core/shape/attributes.js', + line: 323, + description: + '

Sets the width of the stroke used for lines, points, and the border\naround shapes. All widths are set in units of pixels.

\n', + itemtype: 'method', + name: 'strokeWeight', + params: [ + { + name: 'weight', + description: '

the weight (in pixels) of the stroke

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + '\n
\n\nstrokeWeight(1); // Default\nline(20, 20, 80, 20);\nstrokeWeight(4); // Thicker\nline(20, 40, 80, 40);\nstrokeWeight(10); // Beastly\nline(20, 70, 80, 70);\n\n
' + ], + alt: '3 horizontal black lines. Top line: thin, mid: medium, bottom:thick.', + class: 'p5', + module: 'Shape', + submodule: 'Attributes' + }, + { + file: 'src/core/shape/curves.js', + line: 13, + description: + '

Draws a cubic Bezier curve on the screen. These curves are defined by a\nseries of anchor and control points. The first two parameters specify\nthe first anchor point and the last two parameters specify the other\nanchor point, which become the first and last points on the curve. The\nmiddle parameters specify the two control points which define the shape\nof the curve. Approximately speaking, control points "pull" the curve\ntowards them.

Bezier curves were developed by French\nautomotive engineer Pierre Bezier, and are commonly used in computer\ngraphics to define gently sloping curves. See also curve().

\n', + itemtype: 'method', + name: 'bezier', + chainable: 1, + example: [ + '\n
\n\nnoFill();\nstroke(255, 102, 0);\nline(85, 20, 10, 10);\nline(90, 90, 15, 80);\nstroke(0, 0, 0);\nbezier(85, 20, 10, 10, 90, 90, 15, 80);\n\n
\n\n
\n\nbackground(0, 0, 0);\nnoFill();\nstroke(255);\nbezier(250, 250, 0, 100, 100, 0, 100, 0, 0, 0, 100, 0);\n\n
' + ], + alt: + 'stretched black s-shape in center with orange lines extending from end points.\nstretched black s-shape with 10 5x5 white ellipses along the shape.\nstretched black s-shape with 7 5x5 ellipses and orange lines along the shape.\nstretched black s-shape with 17 small orange lines extending from under shape.\nhorseshoe shape with orange ends facing left and black curved center.\nhorseshoe shape with orange ends facing left and black curved center.\nLine shaped like right-facing arrow,points move with mouse-x and warp shape.\nhorizontal line that hooks downward on the right and 13 5x5 ellipses along it.\nright curving line mid-right of canvas with 7 short lines radiating from it.', + class: 'p5', + module: 'Shape', + submodule: 'Curves', + overloads: [ + { + line: 13, + params: [ + { + name: 'x1', + description: '

x-coordinate for the first anchor point

\n', + type: 'Number' + }, + { + name: 'y1', + description: '

y-coordinate for the first anchor point

\n', + type: 'Number' + }, + { + name: 'x2', + description: '

x-coordinate for the first control point

\n', + type: 'Number' + }, + { + name: 'y2', + description: '

y-coordinate for the first control point

\n', + type: 'Number' + }, + { + name: 'x3', + description: '

x-coordinate for the second control point

\n', + type: 'Number' + }, + { + name: 'y3', + description: '

y-coordinate for the second control point

\n', + type: 'Number' + }, + { + name: 'x4', + description: '

x-coordinate for the second anchor point

\n', + type: 'Number' + }, + { + name: 'y4', + description: '

y-coordinate for the second anchor point

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 66, + params: [ + { + name: 'x1', + description: '', + type: 'Number' + }, + { + name: 'y1', + description: '', + type: 'Number' + }, + { + name: 'z1', + description: '

z-coordinate for the first anchor point

\n', + type: 'Number' + }, + { + name: 'x2', + description: '', + type: 'Number' + }, + { + name: 'y2', + description: '', + type: 'Number' + }, + { + name: 'z2', + description: '

z-coordinate for the first control point

\n', + type: 'Number' + }, + { + name: 'x3', + description: '', + type: 'Number' + }, + { + name: 'y3', + description: '', + type: 'Number' + }, + { + name: 'z3', + description: '

z-coordinate for the second control point

\n', + type: 'Number' + }, + { + name: 'x4', + description: '', + type: 'Number' + }, + { + name: 'y4', + description: '', + type: 'Number' + }, + { + name: 'z4', + description: '

z-coordinate for the second anchor point

\n', + type: 'Number' + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/core/shape/curves.js', + line: 96, + description: + '

Sets the resolution at which Beziers display.

\n

The default value is 20.

\n

This function is only useful when using the WEBGL renderer\nas the default canvas renderer does not use this information.

\n', + itemtype: 'method', + name: 'bezierDetail', + params: [ + { + name: 'detail', + description: '

resolution of the curves

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n noFill();\n\n bezierDetail(5);\n}\n\nfunction draw() {\n background(200);\n\n bezier(-40, -40, 0,\n 90, -40, 0,\n -90, 40, 0,\n 40, 40, 0);\n}\n\n
" + ], + alt: 'stretched black s-shape with a low level of bezier detail', + class: 'p5', + module: 'Shape', + submodule: 'Curves' + }, + { + file: 'src/core/shape/curves.js', + line: 139, + description: + '

Evaluates the Bezier at position t for points a, b, c, d.\nThe parameters a and d are the first and last points\non the curve, and b and c are the control points.\nThe final parameter t varies between 0 and 1.\nThis can be done once with the x coordinates and a second time\nwith the y coordinates to get the location of a bezier curve at t.

\n', + itemtype: 'method', + name: 'bezierPoint', + params: [ + { + name: 'a', + description: '

coordinate of first point on the curve

\n', + type: 'Number' + }, + { + name: 'b', + description: '

coordinate of first control point

\n', + type: 'Number' + }, + { + name: 'c', + description: '

coordinate of second control point

\n', + type: 'Number' + }, + { + name: 'd', + description: '

coordinate of second point on the curve

\n', + type: 'Number' + }, + { + name: 't', + description: '

value between 0 and 1

\n', + type: 'Number' + } + ], + return: { + description: 'the value of the Bezier at position t', + type: 'Number' + }, + example: [ + '\n
\n\nnoFill();\nlet x1 = 85,\n x2 = 10,\n x3 = 90,\n x4 = 15;\nlet y1 = 20,\n y2 = 10,\n y3 = 90,\n y4 = 80;\nbezier(x1, y1, x2, y2, x3, y3, x4, y4);\nfill(255);\nlet steps = 10;\nfor (let i = 0; i <= steps; i++) {\n let t = i / steps;\n let x = bezierPoint(x1, x2, x3, x4, t);\n let y = bezierPoint(y1, y2, y3, y4, t);\n ellipse(x, y, 5, 5);\n}\n\n
' + ], + alt: + 'stretched black s-shape with 17 small orange lines extending from under shape.', + class: 'p5', + module: 'Shape', + submodule: 'Curves' + }, + { + file: 'src/core/shape/curves.js', + line: 194, + description: + '

Evaluates the tangent to the Bezier at position t for points a, b, c, d.\nThe parameters a and d are the first and last points\non the curve, and b and c are the control points.\nThe final parameter t varies between 0 and 1.

\n', + itemtype: 'method', + name: 'bezierTangent', + params: [ + { + name: 'a', + description: '

coordinate of first point on the curve

\n', + type: 'Number' + }, + { + name: 'b', + description: '

coordinate of first control point

\n', + type: 'Number' + }, + { + name: 'c', + description: '

coordinate of second control point

\n', + type: 'Number' + }, + { + name: 'd', + description: '

coordinate of second point on the curve

\n', + type: 'Number' + }, + { + name: 't', + description: '

value between 0 and 1

\n', + type: 'Number' + } + ], + return: { + description: 'the tangent at position t', + type: 'Number' + }, + example: [ + '\n
\n\nnoFill();\nbezier(85, 20, 10, 10, 90, 90, 15, 80);\nlet steps = 6;\nfill(255);\nfor (let i = 0; i <= steps; i++) {\n let t = i / steps;\n // Get the location of the point\n let x = bezierPoint(85, 10, 90, 15, t);\n let y = bezierPoint(20, 10, 90, 80, t);\n // Get the tangent points\n let tx = bezierTangent(85, 10, 90, 15, t);\n let ty = bezierTangent(20, 10, 90, 80, t);\n // Calculate an angle from the tangent points\n let a = atan2(ty, tx);\n a += PI;\n stroke(255, 102, 0);\n line(x, y, cos(a) * 30 + x, sin(a) * 30 + y);\n // The following line of code makes a line\n // inverse of the above line\n //line(x, y, cos(a)*-30 + x, sin(a)*-30 + y);\n stroke(0);\n ellipse(x, y, 5, 5);\n}\n\n
\n\n
\n\nnoFill();\nbezier(85, 20, 10, 10, 90, 90, 15, 80);\nstroke(255, 102, 0);\nlet steps = 16;\nfor (let i = 0; i <= steps; i++) {\n let t = i / steps;\n let x = bezierPoint(85, 10, 90, 15, t);\n let y = bezierPoint(20, 10, 90, 80, t);\n let tx = bezierTangent(85, 10, 90, 15, t);\n let ty = bezierTangent(20, 10, 90, 80, t);\n let a = atan2(ty, tx);\n a -= HALF_PI;\n line(x, y, cos(a) * 8 + x, sin(a) * 8 + y);\n}\n\n
' + ], + alt: + 's-shaped line with 17 short orange lines extending from underside of shape', + class: 'p5', + module: 'Shape', + submodule: 'Curves' + }, + { + file: 'src/core/shape/curves.js', + line: 273, + description: + '

Draws a curved line on the screen between two points, given as the\nmiddle four parameters. The first two parameters are a control point, as\nif the curve came from this point even though it's not drawn. The last\ntwo parameters similarly describe the other control point.

\nLonger curves can be created by putting a series of curve() functions\ntogether or using curveVertex(). An additional function called\ncurveTightness() provides control for the visual quality of the curve.\nThe curve() function is an implementation of Catmull-Rom splines.

\n', + itemtype: 'method', + name: 'curve', + chainable: 1, + example: [ + '\n
\n\nnoFill();\nstroke(255, 102, 0);\ncurve(5, 26, 5, 26, 73, 24, 73, 61);\nstroke(0);\ncurve(5, 26, 73, 24, 73, 61, 15, 65);\nstroke(255, 102, 0);\ncurve(73, 24, 73, 61, 15, 65, 15, 65);\n\n
\n
\n\n// Define the curve points as JavaScript objects\nlet p1 = { x: 5, y: 26 },\n p2 = { x: 73, y: 24 };\nlet p3 = { x: 73, y: 61 },\n p4 = { x: 15, y: 65 };\nnoFill();\nstroke(255, 102, 0);\ncurve(p1.x, p1.y, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y);\nstroke(0);\ncurve(p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y);\nstroke(255, 102, 0);\ncurve(p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, p4.x, p4.y);\n\n
\n
\n\nnoFill();\nstroke(255, 102, 0);\ncurve(5, 26, 0, 5, 26, 0, 73, 24, 0, 73, 61, 0);\nstroke(0);\ncurve(5, 26, 0, 73, 24, 0, 73, 61, 0, 15, 65, 0);\nstroke(255, 102, 0);\ncurve(73, 24, 0, 73, 61, 0, 15, 65, 0, 15, 65, 0);\n\n
' + ], + alt: + 'horseshoe shape with orange ends facing left and black curved center.\nhorseshoe shape with orange ends facing left and black curved center.\ncurving black and orange lines.', + class: 'p5', + module: 'Shape', + submodule: 'Curves', + overloads: [ + { + line: 273, + params: [ + { + name: 'x1', + description: + '

x-coordinate for the beginning control point

\n', + type: 'Number' + }, + { + name: 'y1', + description: + '

y-coordinate for the beginning control point

\n', + type: 'Number' + }, + { + name: 'x2', + description: '

x-coordinate for the first point

\n', + type: 'Number' + }, + { + name: 'y2', + description: '

y-coordinate for the first point

\n', + type: 'Number' + }, + { + name: 'x3', + description: '

x-coordinate for the second point

\n', + type: 'Number' + }, + { + name: 'y3', + description: '

y-coordinate for the second point

\n', + type: 'Number' + }, + { + name: 'x4', + description: '

x-coordinate for the ending control point

\n', + type: 'Number' + }, + { + name: 'y4', + description: '

y-coordinate for the ending control point

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 338, + params: [ + { + name: 'x1', + description: '', + type: 'Number' + }, + { + name: 'y1', + description: '', + type: 'Number' + }, + { + name: 'z1', + description: + '

z-coordinate for the beginning control point

\n', + type: 'Number' + }, + { + name: 'x2', + description: '', + type: 'Number' + }, + { + name: 'y2', + description: '', + type: 'Number' + }, + { + name: 'z2', + description: '

z-coordinate for the first point

\n', + type: 'Number' + }, + { + name: 'x3', + description: '', + type: 'Number' + }, + { + name: 'y3', + description: '', + type: 'Number' + }, + { + name: 'z3', + description: '

z-coordinate for the second point

\n', + type: 'Number' + }, + { + name: 'x4', + description: '', + type: 'Number' + }, + { + name: 'y4', + description: '', + type: 'Number' + }, + { + name: 'z4', + description: '

z-coordinate for the ending control point

\n', + type: 'Number' + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/core/shape/curves.js', + line: 364, + description: + '

Sets the resolution at which curves display.

\n

The default value is 20 while the minimum value is 3.

\n

This function is only useful when using the WEBGL renderer\nas the default canvas renderer does not use this\ninformation.

\n', + itemtype: 'method', + name: 'curveDetail', + params: [ + { + name: 'resolution', + description: '

resolution of the curves

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n\n curveDetail(5);\n}\nfunction draw() {\n background(200);\n\n curve(250, 600, 0, -30, 40, 0, 30, 30, 0, -250, 600, 0);\n}\n\n
" + ], + alt: 'white arch shape with a low level of curve detail.', + class: 'p5', + module: 'Shape', + submodule: 'Curves' + }, + { + file: 'src/core/shape/curves.js', + line: 406, + description: + '

Modifies the quality of forms created with curve() and curveVertex().\nThe parameter tightness determines how the curve fits to the vertex\npoints. The value 0.0 is the default value for tightness (this value\ndefines the curves to be Catmull-Rom splines) and the value 1.0 connects\nall the points with straight lines. Values within the range -5.0 and 5.0\nwill deform the curves but will leave them recognizable and as values\nincrease in magnitude, they will continue to deform.

\n', + itemtype: 'method', + name: 'curveTightness', + params: [ + { + name: 'amount', + description: + '

amount of deformation from the original vertices

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + '\n
\n\n// Move the mouse left and right to see the curve change\n\nfunction setup() {\n createCanvas(100, 100);\n noFill();\n}\n\nfunction draw() {\n background(204);\n let t = map(mouseX, 0, width, -5, 5);\n curveTightness(t);\n beginShape();\n curveVertex(10, 26);\n curveVertex(10, 26);\n curveVertex(83, 24);\n curveVertex(83, 61);\n curveVertex(25, 65);\n curveVertex(25, 65);\n endShape();\n}\n\n
' + ], + alt: + 'Line shaped like right-facing arrow,points move with mouse-x and warp shape.', + class: 'p5', + module: 'Shape', + submodule: 'Curves' + }, + { + file: 'src/core/shape/curves.js', + line: 453, + description: + '

Evaluates the curve at position t for points a, b, c, d.\nThe parameter t varies between 0 and 1, a and d are control points\nof the curve, and b and c are the start and end points of the curve.\nThis can be done once with the x coordinates and a second time\nwith the y coordinates to get the location of a curve at t.

\n', + itemtype: 'method', + name: 'curvePoint', + params: [ + { + name: 'a', + description: '

coordinate of first control point of the curve

\n', + type: 'Number' + }, + { + name: 'b', + description: '

coordinate of first point

\n', + type: 'Number' + }, + { + name: 'c', + description: '

coordinate of second point

\n', + type: 'Number' + }, + { + name: 'd', + description: '

coordinate of second control point

\n', + type: 'Number' + }, + { + name: 't', + description: '

value between 0 and 1

\n', + type: 'Number' + } + ], + return: { + description: 'bezier value at position t', + type: 'Number' + }, + example: [ + '\n
\n\nnoFill();\ncurve(5, 26, 5, 26, 73, 24, 73, 61);\ncurve(5, 26, 73, 24, 73, 61, 15, 65);\nfill(255);\nellipseMode(CENTER);\nlet steps = 6;\nfor (let i = 0; i <= steps; i++) {\n let t = i / steps;\n let x = curvePoint(5, 5, 73, 73, t);\n let y = curvePoint(26, 26, 24, 61, t);\n ellipse(x, y, 5, 5);\n x = curvePoint(5, 73, 73, 15, t);\n y = curvePoint(26, 24, 61, 65, t);\n ellipse(x, y, 5, 5);\n}\n\n
\n\nline hooking down to right-bottom with 13 5x5 white ellipse points' + ], + class: 'p5', + module: 'Shape', + submodule: 'Curves' + }, + { + file: 'src/core/shape/curves.js', + line: 502, + description: + '

Evaluates the tangent to the curve at position t for points a, b, c, d.\nThe parameter t varies between 0 and 1, a and d are points on the curve,\nand b and c are the control points.

\n', + itemtype: 'method', + name: 'curveTangent', + params: [ + { + name: 'a', + description: '

coordinate of first point on the curve

\n', + type: 'Number' + }, + { + name: 'b', + description: '

coordinate of first control point

\n', + type: 'Number' + }, + { + name: 'c', + description: '

coordinate of second control point

\n', + type: 'Number' + }, + { + name: 'd', + description: '

coordinate of second point on the curve

\n', + type: 'Number' + }, + { + name: 't', + description: '

value between 0 and 1

\n', + type: 'Number' + } + ], + return: { + description: 'the tangent at position t', + type: 'Number' + }, + example: [ + '\n
\n\nnoFill();\ncurve(5, 26, 73, 24, 73, 61, 15, 65);\nlet steps = 6;\nfor (let i = 0; i <= steps; i++) {\n let t = i / steps;\n let x = curvePoint(5, 73, 73, 15, t);\n let y = curvePoint(26, 24, 61, 65, t);\n //ellipse(x, y, 5, 5);\n let tx = curveTangent(5, 73, 73, 15, t);\n let ty = curveTangent(26, 24, 61, 65, t);\n let a = atan2(ty, tx);\n a -= PI / 2.0;\n line(x, y, cos(a) * 8 + x, sin(a) * 8 + y);\n}\n\n
' + ], + alt: + 'right curving line mid-right of canvas with 7 short lines radiating from it.', + class: 'p5', + module: 'Shape', + submodule: 'Curves' + }, + { + file: 'src/core/shape/vertex.js', + line: 22, + description: + '

Use the beginContour() and endContour() functions to create negative\nshapes within shapes such as the center of the letter 'O'. beginContour()\nbegins recording vertices for the shape and endContour() stops recording.\nThe vertices that define a negative shape must "wind" in the opposite\ndirection from the exterior shape. First draw vertices for the exterior\nclockwise order, then for internal shapes, draw vertices\nshape in counter-clockwise.\n

\nThese functions can only be used within a beginShape()/endShape() pair and\ntransformations such as translate(), rotate(), and scale() do not work\nwithin a beginContour()/endContour() pair. It is also not possible to use\nother shapes, such as ellipse() or rect() within.

\n', + itemtype: 'method', + name: 'beginContour', + chainable: 1, + example: [ + '\n
\n\ntranslate(50, 50);\nstroke(255, 0, 0);\nbeginShape();\n// Exterior part of shape, clockwise winding\nvertex(-40, -40);\nvertex(40, -40);\nvertex(40, 40);\nvertex(-40, 40);\n// Interior part of shape, counter-clockwise winding\nbeginContour();\nvertex(-20, -20);\nvertex(-20, 20);\nvertex(20, 20);\nvertex(20, -20);\nendContour();\nendShape(CLOSE);\n\n
' + ], + alt: + 'white rect and smaller grey rect with red outlines in center of canvas.', + class: 'p5', + module: 'Shape', + submodule: 'Vertex' + }, + { + file: 'src/core/shape/vertex.js', + line: 70, + description: + '

Using the beginShape() and endShape() functions allow creating more\ncomplex forms. beginShape() begins recording vertices for a shape and\nendShape() stops recording. The value of the kind parameter tells it which\ntypes of shapes to create from the provided vertices. With no mode\nspecified, the shape can be any irregular polygon.\n

\nThe parameters available for beginShape() are POINTS, LINES, TRIANGLES,\nTRIANGLE_FAN, TRIANGLE_STRIP, QUADS, and QUAD_STRIP. After calling the\nbeginShape() function, a series of vertex() commands must follow. To stop\ndrawing the shape, call endShape(). Each shape will be outlined with the\ncurrent stroke color and filled with the fill color.\n

\nTransformations such as translate(), rotate(), and scale() do not work\nwithin beginShape(). It is also not possible to use other shapes, such as\nellipse() or rect() within beginShape().

\n', + itemtype: 'method', + name: 'beginShape', + params: [ + { + name: 'kind', + description: + '

either POINTS, LINES, TRIANGLES, TRIANGLE_FAN\n TRIANGLE_STRIP, QUADS, or QUAD_STRIP

\n', + type: 'Constant', + optional: true + } + ], + chainable: 1, + example: [ + '\n
\n\nbeginShape();\nvertex(30, 20);\nvertex(85, 20);\nvertex(85, 75);\nvertex(30, 75);\nendShape(CLOSE);\n\n
\n\n
\n\nbeginShape(POINTS);\nvertex(30, 20);\nvertex(85, 20);\nvertex(85, 75);\nvertex(30, 75);\nendShape();\n\n
\n\n
\n\nbeginShape(LINES);\nvertex(30, 20);\nvertex(85, 20);\nvertex(85, 75);\nvertex(30, 75);\nendShape();\n\n
\n\n
\n\nnoFill();\nbeginShape();\nvertex(30, 20);\nvertex(85, 20);\nvertex(85, 75);\nvertex(30, 75);\nendShape();\n\n
\n\n
\n\nnoFill();\nbeginShape();\nvertex(30, 20);\nvertex(85, 20);\nvertex(85, 75);\nvertex(30, 75);\nendShape(CLOSE);\n\n
\n\n
\n\nbeginShape(TRIANGLES);\nvertex(30, 75);\nvertex(40, 20);\nvertex(50, 75);\nvertex(60, 20);\nvertex(70, 75);\nvertex(80, 20);\nendShape();\n\n
\n\n
\n\nbeginShape(TRIANGLE_STRIP);\nvertex(30, 75);\nvertex(40, 20);\nvertex(50, 75);\nvertex(60, 20);\nvertex(70, 75);\nvertex(80, 20);\nvertex(90, 75);\nendShape();\n\n
\n\n
\n\nbeginShape(TRIANGLE_FAN);\nvertex(57.5, 50);\nvertex(57.5, 15);\nvertex(92, 50);\nvertex(57.5, 85);\nvertex(22, 50);\nvertex(57.5, 15);\nendShape();\n\n
\n\n
\n\nbeginShape(QUADS);\nvertex(30, 20);\nvertex(30, 75);\nvertex(50, 75);\nvertex(50, 20);\nvertex(65, 20);\nvertex(65, 75);\nvertex(85, 75);\nvertex(85, 20);\nendShape();\n\n
\n\n
\n\nbeginShape(QUAD_STRIP);\nvertex(30, 20);\nvertex(30, 75);\nvertex(50, 20);\nvertex(50, 75);\nvertex(65, 20);\nvertex(65, 75);\nvertex(85, 20);\nvertex(85, 75);\nendShape();\n\n
\n\n
\n\nbeginShape();\nvertex(20, 20);\nvertex(40, 20);\nvertex(40, 40);\nvertex(60, 40);\nvertex(60, 60);\nvertex(20, 60);\nendShape(CLOSE);\n\n
' + ], + alt: + 'white square-shape with black outline in middle-right of canvas.\n4 black points in a square shape in middle-right of canvas.\n2 horizontal black lines. In the top-right and bottom-right of canvas.\n3 line shape with horizontal on top, vertical in middle and horizontal bottom.\nsquare line shape in middle-right of canvas.\n2 white triangle shapes mid-right canvas. left one pointing up and right down.\n5 horizontal interlocking and alternating white triangles in mid-right canvas.\n4 interlocking white triangles in 45 degree rotated square-shape.\n2 white rectangle shapes in mid-right canvas. Both 20x55.\n3 side-by-side white rectangles center rect is smaller in mid-right canvas.\nThick white l-shape with black outline mid-top-left of canvas.', + class: 'p5', + module: 'Shape', + submodule: 'Vertex' + }, + { + file: 'src/core/shape/vertex.js', + line: 270, + description: + '

Specifies vertex coordinates for Bezier curves. Each call to\nbezierVertex() defines the position of two control points and\none anchor point of a Bezier curve, adding a new segment to a\nline or shape. For WebGL mode bezierVertex() can be used in 2D\nas well as 3D mode. 2D mode expects 6 parameters, while 3D mode\nexpects 9 parameters (including z coordinates).\n

\nThe first time bezierVertex() is used within a beginShape()\ncall, it must be prefaced with a call to vertex() to set the first anchor\npoint. This function must be used between beginShape() and endShape()\nand only when there is no MODE or POINTS parameter specified to\nbeginShape().

\n', + itemtype: 'method', + name: 'bezierVertex', + chainable: 1, + example: [ + '\n
\n\nnoFill();\nbeginShape();\nvertex(30, 20);\nbezierVertex(80, 0, 80, 75, 30, 75);\nendShape();\n\n
', + '\n
\n\nbeginShape();\nvertex(30, 20);\nbezierVertex(80, 0, 80, 75, 30, 75);\nbezierVertex(50, 80, 60, 25, 30, 20);\nendShape();\n\n
', + "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n setAttributes('antialias', true);\n}\nfunction draw() {\n orbitControl();\n background(50);\n strokeWeight(4);\n stroke(255);\n point(-25, 30);\n point(25, 30);\n point(25, -30);\n point(-25, -30);\n\n strokeWeight(1);\n noFill();\n\n beginShape();\n vertex(-25, 30);\n bezierVertex(25, 30, 25, -30, -25, -30);\n endShape();\n\n beginShape();\n vertex(-25, 30, 20);\n bezierVertex(25, 30, 20, 25, -30, 20, -25, -30, 20);\n endShape();\n}\n\n
" + ], + alt: + 'crescent shape in middle of canvas with another crescent shape on positive z-axis.', + class: 'p5', + module: 'Shape', + submodule: 'Vertex', + overloads: [ + { + line: 270, + params: [ + { + name: 'x2', + description: '

x-coordinate for the first control point

\n', + type: 'Number' + }, + { + name: 'y2', + description: '

y-coordinate for the first control point

\n', + type: 'Number' + }, + { + name: 'x3', + description: '

x-coordinate for the second control point

\n', + type: 'Number' + }, + { + name: 'y3', + description: '

y-coordinate for the second control point

\n', + type: 'Number' + }, + { + name: 'x4', + description: '

x-coordinate for the anchor point

\n', + type: 'Number' + }, + { + name: 'y4', + description: '

y-coordinate for the anchor point

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 358, + params: [ + { + name: 'x2', + description: '', + type: 'Number' + }, + { + name: 'y2', + description: '', + type: 'Number' + }, + { + name: 'z2', + description: + '

z-coordinate for the first control point (for WebGL mode)

\n', + type: 'Number' + }, + { + name: 'x3', + description: '', + type: 'Number' + }, + { + name: 'y3', + description: '', + type: 'Number' + }, + { + name: 'z3', + description: + '

z-coordinate for the second control point (for WebGL mode)

\n', + type: 'Number' + }, + { + name: 'x4', + description: '', + type: 'Number' + }, + { + name: 'y4', + description: '', + type: 'Number' + }, + { + name: 'z4', + description: + '

z-coordinate for the anchor point (for WebGL mode)

\n', + type: 'Number' + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/core/shape/vertex.js', + line: 398, + description: + '

Specifies vertex coordinates for curves. This function may only\nbe used between beginShape() and endShape() and only when there\nis no MODE parameter specified to beginShape().\nFor WebGL mode curveVertex() can be used in 2D as well as 3D mode.\n2D mode expects 2 parameters, while 3D mode expects 3 parameters.\n

\nThe first and last points in a series of curveVertex() lines will be used to\nguide the beginning and end of a the curve. A minimum of four\npoints is required to draw a tiny curve between the second and\nthird points. Adding a fifth point with curveVertex() will draw\nthe curve between the second, third, and fourth points. The\ncurveVertex() function is an implementation of Catmull-Rom\nsplines.

\n', + itemtype: 'method', + name: 'curveVertex', + chainable: 1, + example: [ + '\n
\n\nstrokeWeight(5);\npoint(84, 91);\npoint(68, 19);\npoint(21, 17);\npoint(32, 91);\nstrokeWeight(1);\n\nnoFill();\nbeginShape();\ncurveVertex(84, 91);\ncurveVertex(84, 91);\ncurveVertex(68, 19);\ncurveVertex(21, 17);\ncurveVertex(32, 91);\ncurveVertex(32, 91);\nendShape();\n\n
' + ], + alt: + 'Upside-down u-shape line, mid canvas. left point extends beyond canvas view.', + class: 'p5', + module: 'Shape', + submodule: 'Vertex', + overloads: [ + { + line: 398, + params: [ + { + name: 'x', + description: '

x-coordinate of the vertex

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y-coordinate of the vertex

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 443, + params: [ + { + name: 'x', + description: '', + type: 'Number' + }, + { + name: 'y', + description: '', + type: 'Number' + }, + { + name: 'z', + description: '

z-coordinate of the vertex (for WebGL mode)

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/core/shape/vertex.js', + line: 508, + description: + '

Use the beginContour() and endContour() functions to create negative\nshapes within shapes such as the center of the letter 'O'. beginContour()\nbegins recording vertices for the shape and endContour() stops recording.\nThe vertices that define a negative shape must "wind" in the opposite\ndirection from the exterior shape. First draw vertices for the exterior\nclockwise order, then for internal shapes, draw vertices\nshape in counter-clockwise.\n

\nThese functions can only be used within a beginShape()/endShape() pair and\ntransformations such as translate(), rotate(), and scale() do not work\nwithin a beginContour()/endContour() pair. It is also not possible to use\nother shapes, such as ellipse() or rect() within.

\n', + itemtype: 'method', + name: 'endContour', + chainable: 1, + example: [ + '\n
\n\ntranslate(50, 50);\nstroke(255, 0, 0);\nbeginShape();\n// Exterior part of shape, clockwise winding\nvertex(-40, -40);\nvertex(40, -40);\nvertex(40, 40);\nvertex(-40, 40);\n// Interior part of shape, counter-clockwise winding\nbeginContour();\nvertex(-20, -20);\nvertex(-20, 20);\nvertex(20, 20);\nvertex(20, -20);\nendContour();\nendShape(CLOSE);\n\n
' + ], + alt: + 'white rect and smaller grey rect with red outlines in center of canvas.', + class: 'p5', + module: 'Shape', + submodule: 'Vertex' + }, + { + file: 'src/core/shape/vertex.js', + line: 568, + description: + '

The endShape() function is the companion to beginShape() and may only be\ncalled after beginShape(). When endshape() is called, all of image data\ndefined since the previous call to beginShape() is written into the image\nbuffer. The constant CLOSE as the value for the MODE parameter to close\nthe shape (to connect the beginning and the end).

\n', + itemtype: 'method', + name: 'endShape', + params: [ + { + name: 'mode', + description: '

use CLOSE to close the shape

\n', + type: 'Constant', + optional: true + } + ], + chainable: 1, + example: [ + '\n
\n\nnoFill();\n\nbeginShape();\nvertex(20, 20);\nvertex(45, 20);\nvertex(45, 80);\nendShape(CLOSE);\n\nbeginShape();\nvertex(50, 20);\nvertex(75, 20);\nvertex(75, 80);\nendShape();\n\n
' + ], + alt: + 'Triangle line shape with smallest interior angle on bottom and upside-down L.', + class: 'p5', + module: 'Shape', + submodule: 'Vertex' + }, + { + file: 'src/core/shape/vertex.js', + line: 654, + description: + '

Specifies vertex coordinates for quadratic Bezier curves. Each call to\nquadraticVertex() defines the position of one control points and one\nanchor point of a Bezier curve, adding a new segment to a line or shape.\nThe first time quadraticVertex() is used within a beginShape() call, it\nmust be prefaced with a call to vertex() to set the first anchor point.\nFor WebGL mode quadraticVertex() can be used in 2D as well as 3D mode.\n2D mode expects 4 parameters, while 3D mode expects 6 parameters\n(including z coordinates).\n

\nThis function must be used between beginShape() and endShape()\nand only when there is no MODE or POINTS parameter specified to\nbeginShape().

\n', + itemtype: 'method', + name: 'quadraticVertex', + chainable: 1, + example: [ + '\n
\n\nstrokeWeight(5);\npoint(20, 20);\npoint(80, 20);\npoint(50, 50);\n\nnoFill();\nstrokeWeight(1);\nbeginShape();\nvertex(20, 20);\nquadraticVertex(80, 20, 50, 50);\nendShape();\n\n
\n\n
\n\nstrokeWeight(5);\npoint(20, 20);\npoint(80, 20);\npoint(50, 50);\n\npoint(20, 80);\npoint(80, 80);\npoint(80, 60);\n\nnoFill();\nstrokeWeight(1);\nbeginShape();\nvertex(20, 20);\nquadraticVertex(80, 20, 50, 50);\nquadraticVertex(20, 80, 80, 80);\nvertex(80, 60);\nendShape();\n\n
' + ], + alt: + 'arched-shaped black line with 4 pixel thick stroke weight.\nbackwards s-shaped black line with 4 pixel thick stroke weight.', + class: 'p5', + module: 'Shape', + submodule: 'Vertex', + overloads: [ + { + line: 654, + params: [ + { + name: 'cx', + description: '

x-coordinate for the control point

\n', + type: 'Number' + }, + { + name: 'cy', + description: '

y-coordinate for the control point

\n', + type: 'Number' + }, + { + name: 'x3', + description: '

x-coordinate for the anchor point

\n', + type: 'Number' + }, + { + name: 'y3', + description: '

y-coordinate for the anchor point

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 720, + params: [ + { + name: 'cx', + description: '', + type: 'Number' + }, + { + name: 'cy', + description: '', + type: 'Number' + }, + { + name: 'cz', + description: + '

z-coordinate for the control point (for WebGL mode)

\n', + type: 'Number' + }, + { + name: 'x3', + description: '', + type: 'Number' + }, + { + name: 'y3', + description: '', + type: 'Number' + }, + { + name: 'z3', + description: + '

z-coordinate for the anchor point (for WebGL mode)

\n', + type: 'Number' + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/core/shape/vertex.js', + line: 813, + description: + '

All shapes are constructed by connecting a series of vertices. vertex()\nis used to specify the vertex coordinates for points, lines, triangles,\nquads, and polygons. It is used exclusively within the beginShape() and\nendShape() functions.

\n', + itemtype: 'method', + name: 'vertex', + chainable: 1, + example: [ + "\n
\n\nstrokeWeight(3);\nbeginShape(POINTS);\nvertex(30, 20);\nvertex(85, 20);\nvertex(85, 75);\nvertex(30, 75);\nendShape();\n\n
\n\n
\n\ncreateCanvas(100, 100, WEBGL);\nbackground(240, 240, 240);\nfill(237, 34, 93);\nnoStroke();\nbeginShape();\nvertex(0, 35);\nvertex(35, 0);\nvertex(0, -35);\nvertex(-35, 0);\nendShape();\n\n
\n\n
\n\ncreateCanvas(100, 100, WEBGL);\nbackground(240, 240, 240);\nfill(237, 34, 93);\nnoStroke();\nbeginShape();\nvertex(-10, 10);\nvertex(0, 35);\nvertex(10, 10);\nvertex(35, 0);\nvertex(10, -8);\nvertex(0, -35);\nvertex(-10, -8);\nvertex(-35, 0);\nendShape();\n\n
\n\n
\n\nstrokeWeight(3);\nstroke(237, 34, 93);\nbeginShape(LINES);\nvertex(10, 35);\nvertex(90, 35);\nvertex(10, 65);\nvertex(90, 65);\nvertex(35, 10);\nvertex(35, 90);\nvertex(65, 10);\nvertex(65, 90);\nendShape();\n\n
\n\n
\n\n// Click to change the number of sides.\n// In WebGL mode, custom shapes will only\n// display hollow fill sections when\n// all calls to vertex() use the same z-value.\n\nlet sides = 3;\nlet angle, px, py;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n setAttributes('antialias', true);\n fill(237, 34, 93);\n strokeWeight(3);\n}\n\nfunction draw() {\n background(200);\n rotateX(frameCount * 0.01);\n rotateZ(frameCount * 0.01);\n ngon(sides, 0, 0, 80);\n}\n\nfunction mouseClicked() {\n if (sides > 6) {\n sides = 3;\n } else {\n sides++;\n }\n}\n\nfunction ngon(n, x, y, d) {\n beginShape();\n for (var i = 0; i < n + 1; i++) {\n angle = TWO_PI / n * i;\n px = x + sin(angle) * d / 2;\n py = y - cos(angle) * d / 2;\n vertex(px, py, 0);\n }\n for (i = 0; i < n + 1; i++) {\n angle = TWO_PI / n * i;\n px = x + sin(angle) * d / 4;\n py = y - cos(angle) * d / 4;\n vertex(px, py, 0);\n }\n endShape();\n}\n\n
" + ], + alt: + '4 black points in a square shape in middle-right of canvas.\n4 points making a diamond shape.\n8 points making a star.\n8 points making 4 lines.\nA rotating 3D shape with a hollow section in the middle.', + class: 'p5', + module: 'Shape', + submodule: 'Vertex', + overloads: [ + { + line: 813, + params: [ + { + name: 'x', + description: '

x-coordinate of the vertex

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y-coordinate of the vertex

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 945, + params: [ + { + name: 'x', + description: '', + type: 'Number' + }, + { + name: 'y', + description: '', + type: 'Number' + }, + { + name: 'z', + description: '

z-coordinate of the vertex

\n', + type: 'Number' + }, + { + name: 'u', + description: '

the vertex's texture u-coordinate

\n', + type: 'Number', + optional: true + }, + { + name: 'v', + description: '

the vertex's texture v-coordinate

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/core/constants.js', + line: 13, + description: '

The default, two-dimensional renderer.

\n', + itemtype: 'property', + name: 'P2D', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 19, + description: + '

One of the two render modes in p5.js: P2D (default renderer) and WEBGL\nEnables 3D render by introducing the third dimension: Z

\n', + itemtype: 'property', + name: 'WEBGL', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 28, + itemtype: 'property', + name: 'ARROW', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 33, + itemtype: 'property', + name: 'CROSS', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 38, + itemtype: 'property', + name: 'HAND', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 43, + itemtype: 'property', + name: 'MOVE', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 48, + itemtype: 'property', + name: 'TEXT', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 53, + itemtype: 'property', + name: 'WAIT', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 61, + description: + '

HALF_PI is a mathematical constant with the value\n1.57079632679489661923. It is half the ratio of the\ncircumference of a circle to its diameter. It is useful in\ncombination with the trigonometric functions sin() and cos().

\n', + itemtype: 'property', + name: 'HALF_PI', + type: 'Number', + final: 1, + example: ['\n
\narc(50, 50, 80, 80, 0, HALF_PI);\n
'], + alt: '80x80 white quarter-circle with curve toward bottom right of canvas.', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 80, + description: + '

PI is a mathematical constant with the value\n3.14159265358979323846. It is the ratio of the circumference\nof a circle to its diameter. It is useful in combination with\nthe trigonometric functions sin() and cos().

\n', + itemtype: 'property', + name: 'PI', + type: 'Number', + final: 1, + example: ['\n
\narc(50, 50, 80, 80, 0, PI);\n
'], + alt: 'white half-circle with curve toward bottom of canvas.', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 99, + description: + '

QUARTER_PI is a mathematical constant with the value 0.7853982.\nIt is one quarter the ratio of the circumference of a circle to\nits diameter. It is useful in combination with the trigonometric\nfunctions sin() and cos().

\n', + itemtype: 'property', + name: 'QUARTER_PI', + type: 'Number', + final: 1, + example: [ + '\n
\narc(50, 50, 80, 80, 0, QUARTER_PI);\n
' + ], + alt: + 'white eighth-circle rotated about 40 degrees with curve bottom right canvas.', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 118, + description: + '

TAU is an alias for TWO_PI, a mathematical constant with the\nvalue 6.28318530717958647693. It is twice the ratio of the\ncircumference of a circle to its diameter. It is useful in\ncombination with the trigonometric functions sin() and cos().

\n', + itemtype: 'property', + name: 'TAU', + type: 'Number', + final: 1, + example: ['\n
\narc(50, 50, 80, 80, 0, TAU);\n
'], + alt: '80x80 white ellipse shape in center of canvas.', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 137, + description: + '

TWO_PI is a mathematical constant with the value\n6.28318530717958647693. It is twice the ratio of the\ncircumference of a circle to its diameter. It is useful in\ncombination with the trigonometric functions sin() and cos().

\n', + itemtype: 'property', + name: 'TWO_PI', + type: 'Number', + final: 1, + example: ['\n
\narc(50, 50, 80, 80, 0, TWO_PI);\n
'], + alt: '80x80 white ellipse shape in center of canvas.', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 156, + description: + '

Constant to be used with angleMode() function, to set the mode which\np5.js interprates and calculates angles (either DEGREES or RADIANS).

\n', + itemtype: 'property', + name: 'DEGREES', + type: 'String', + final: 1, + example: [ + "\n
\nfunction setup() {\n angleMode(DEGREES);\n}\n
" + ], + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 170, + description: + '

Constant to be used with angleMode() function, to set the mode which\np5.js interprates and calculates angles (either RADIANS or DEGREES).

\n', + itemtype: 'property', + name: 'RADIANS', + type: 'String', + final: 1, + example: [ + "\n
\nfunction setup() {\n angleMode(RADIANS);\n}\n
" + ], + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 188, + itemtype: 'property', + name: 'CORNER', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 193, + itemtype: 'property', + name: 'CORNERS', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 198, + itemtype: 'property', + name: 'RADIUS', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 203, + itemtype: 'property', + name: 'RIGHT', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 208, + itemtype: 'property', + name: 'LEFT', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 213, + itemtype: 'property', + name: 'CENTER', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 218, + itemtype: 'property', + name: 'TOP', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 223, + itemtype: 'property', + name: 'BOTTOM', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 228, + itemtype: 'property', + name: 'BASELINE', + type: 'String', + final: 1, + default: 'alphabetic', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 234, + itemtype: 'property', + name: 'POINTS', + type: 'Number', + final: 1, + default: '0x0000', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 240, + itemtype: 'property', + name: 'LINES', + type: 'Number', + final: 1, + default: '0x0001', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 246, + itemtype: 'property', + name: 'LINE_STRIP', + type: 'Number', + final: 1, + default: '0x0003', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 252, + itemtype: 'property', + name: 'LINE_LOOP', + type: 'Number', + final: 1, + default: '0x0002', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 258, + itemtype: 'property', + name: 'TRIANGLES', + type: 'Number', + final: 1, + default: '0x0004', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 264, + itemtype: 'property', + name: 'TRIANGLE_FAN', + type: 'Number', + final: 1, + default: '0x0006', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 270, + itemtype: 'property', + name: 'TRIANGLE_STRIP', + type: 'Number', + final: 1, + default: '0x0005', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 276, + itemtype: 'property', + name: 'QUADS', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 281, + itemtype: 'property', + name: 'QUAD_STRIP', + type: 'String', + final: 1, + default: 'quad_strip', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 287, + itemtype: 'property', + name: 'CLOSE', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 292, + itemtype: 'property', + name: 'OPEN', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 297, + itemtype: 'property', + name: 'CHORD', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 302, + itemtype: 'property', + name: 'PIE', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 307, + itemtype: 'property', + name: 'PROJECT', + type: 'String', + final: 1, + default: 'square', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 313, + itemtype: 'property', + name: 'SQUARE', + type: 'String', + final: 1, + default: 'butt', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 319, + itemtype: 'property', + name: 'ROUND', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 324, + itemtype: 'property', + name: 'BEVEL', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 329, + itemtype: 'property', + name: 'MITER', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 336, + itemtype: 'property', + name: 'RGB', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 341, + itemtype: 'property', + name: 'HSB', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 346, + itemtype: 'property', + name: 'HSL', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 353, + description: + '

AUTO allows us to automatically set the width or height of an element (but not both),\nbased on the current height and width of the element. Only one parameter can\nbe passed to the size function as AUTO, at a time.

\n', + itemtype: 'property', + name: 'AUTO', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 380, + itemtype: 'property', + name: 'BLEND', + type: 'String', + final: 1, + default: 'source-over', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 386, + itemtype: 'property', + name: 'ADD', + type: 'String', + final: 1, + default: 'lighter', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 394, + itemtype: 'property', + name: 'DARKEST', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 399, + itemtype: 'property', + name: 'LIGHTEST', + type: 'String', + final: 1, + default: 'lighten', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 405, + itemtype: 'property', + name: 'DIFFERENCE', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 410, + itemtype: 'property', + name: 'SUBTRACT', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 415, + itemtype: 'property', + name: 'EXCLUSION', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 420, + itemtype: 'property', + name: 'MULTIPLY', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 425, + itemtype: 'property', + name: 'SCREEN', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 430, + itemtype: 'property', + name: 'REPLACE', + type: 'String', + final: 1, + default: 'copy', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 436, + itemtype: 'property', + name: 'OVERLAY', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 441, + itemtype: 'property', + name: 'HARD_LIGHT', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 446, + itemtype: 'property', + name: 'SOFT_LIGHT', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 451, + itemtype: 'property', + name: 'DODGE', + type: 'String', + final: 1, + default: 'color-dodge', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 457, + itemtype: 'property', + name: 'BURN', + type: 'String', + final: 1, + default: 'color-burn', + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 465, + itemtype: 'property', + name: 'THRESHOLD', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 470, + itemtype: 'property', + name: 'GRAY', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 475, + itemtype: 'property', + name: 'OPAQUE', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 480, + itemtype: 'property', + name: 'INVERT', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 485, + itemtype: 'property', + name: 'POSTERIZE', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 490, + itemtype: 'property', + name: 'DILATE', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 495, + itemtype: 'property', + name: 'ERODE', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 500, + itemtype: 'property', + name: 'BLUR', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 507, + itemtype: 'property', + name: 'NORMAL', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 512, + itemtype: 'property', + name: 'ITALIC', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 517, + itemtype: 'property', + name: 'BOLD', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 522, + itemtype: 'property', + name: 'BOLDITALIC', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 547, + itemtype: 'property', + name: 'IMAGE', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 561, + itemtype: 'property', + name: 'LANDSCAPE', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 566, + itemtype: 'property', + name: 'PORTRAIT', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 576, + itemtype: 'property', + name: 'GRID', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/constants.js', + line: 582, + itemtype: 'property', + name: 'AXES', + type: 'String', + final: 1, + class: 'p5', + module: 'Constants', + submodule: 'Constants' + }, + { + file: 'src/core/environment.js', + line: 22, + description: + '

The print() function writes to the console area of your browser.\nThis function is often helpful for looking at the data a program is\nproducing. This function creates a new line of text for each call to\nthe function. Individual elements can be\nseparated with quotes ("") and joined with the addition operator (+).

\n

Note that calling print() without any arguments invokes the window.print()\nfunction which opens the browser's print dialog. To print a blank line\nto console you can write print('\\n').

\n', + itemtype: 'method', + name: 'print', + params: [ + { + name: 'contents', + description: + '

any combination of Number, String, Object, Boolean,\n Array to print

\n', + type: 'Any' + } + ], + example: [ + "\n
\nlet x = 10;\nprint('The value of x is ' + x);\n// prints \"The value of x is 10\"\n
" + ], + alt: 'default grey canvas', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 53, + description: + '

The system variable frameCount contains the number of frames that have\nbeen displayed since the program started. Inside setup() the value is 0,\nafter the first iteration of draw it is 1, etc.

\n', + itemtype: 'property', + name: 'frameCount', + type: 'Integer', + readonly: '', + example: [ + '\n
\nfunction setup() {\n frameRate(30);\n textSize(30);\n textAlign(CENTER);\n}\n\nfunction draw() {\n background(200);\n text(frameCount, width / 2, height / 2);\n}\n
' + ], + alt: 'numbers rapidly counting upward with frame count set to 30.', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 80, + description: + '

The system variable deltaTime contains the time\ndifference between the beginning of the previous frame and the beginning\nof the current frame in milliseconds.\n

\nThis variable is useful for creating time sensitive animation or physics\ncalculation that should stay constant regardless of frame rate.

\n', + itemtype: 'property', + name: 'deltaTime', + type: 'Integer', + readonly: '', + example: [ + '\n
\nlet rectX = 0;\nlet fr = 30; //starting FPS\nlet clr;\n\nfunction setup() {\n background(200);\n frameRate(fr); // Attempt to refresh at starting FPS\n clr = color(255, 0, 0);\n}\n\nfunction draw() {\n background(200);\n rectX = rectX + 1 * (deltaTime / 50); // Move Rectangle in relation to deltaTime\n\n if (rectX >= width) {\n // If you go off screen.\n if (fr === 30) {\n clr = color(0, 0, 255);\n fr = 10;\n frameRate(fr); // make frameRate 10 FPS\n } else {\n clr = color(255, 0, 0);\n fr = 30;\n frameRate(fr); // make frameRate 30 FPS\n }\n rectX = 0;\n }\n fill(clr);\n rect(rectX, 40, 20, 20);\n}\n
' + ], + alt: + 'red rect moves left to right, followed by blue rect moving at the same speed\nwith a lower frame rate. Loops.', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 131, + description: + '

Confirms if the window a p5.js program is in is "focused," meaning that\nthe sketch will accept mouse or keyboard input. This variable is\n"true" if the window is focused and "false" if not.

\n', + itemtype: 'property', + name: 'focused', + type: 'Boolean', + readonly: '', + example: [ + '\n
\n// To demonstrate, put two windows side by side.\n// Click on the window that the p5 sketch isn\'t in!\nfunction draw() {\n background(200);\n noStroke();\n fill(0, 200, 0);\n ellipse(25, 25, 50, 50);\n\n if (!focused) {\n // or "if (focused === false)"\n stroke(200, 0, 0);\n line(0, 0, 100, 100);\n line(100, 0, 0, 100);\n }\n}\n
' + ], + alt: + 'green 50x50 ellipse at top left. Red X covers canvas when page focus changes', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 163, + description: + '

Sets the cursor to a predefined symbol or an image, or makes it visible\nif already hidden. If you are trying to set an image as the cursor, the\nrecommended size is 16x16 or 32x32 pixels. The values for parameters x and y\nmust be less than the dimensions of the image.

\n', + itemtype: 'method', + name: 'cursor', + params: [ + { + name: 'type', + description: + '

Built-In: either ARROW, CROSS, HAND, MOVE, TEXT and WAIT\n Native CSS properties: 'grab', 'progress', 'cell' etc.\n External: path for cursor's images\n (Allowed File extensions: .cur, .gif, .jpg, .jpeg, .png)\n For more information on Native CSS cursors and url visit:\n https://developer.mozilla.org/en-US/docs/Web/CSS/cursor

\n', + type: 'String|Constant' + }, + { + name: 'x', + description: + '

the horizontal active spot of the cursor (must be less than 32)

\n', + type: 'Number', + optional: true + }, + { + name: 'y', + description: + '

the vertical active spot of the cursor (must be less than 32)

\n', + type: 'Number', + optional: true + } + ], + example: [ + "\n
\n// Move the mouse across the quadrants\n// to see the cursor change\nfunction draw() {\n line(width / 2, 0, width / 2, height);\n line(0, height / 2, width, height / 2);\n if (mouseX < 50 && mouseY < 50) {\n cursor(CROSS);\n } else if (mouseX > 50 && mouseY < 50) {\n cursor('progress');\n } else if (mouseX > 50 && mouseY > 50) {\n cursor('https://s3.amazonaws.com/mupublicdata/cursor.cur');\n } else {\n cursor('grab');\n }\n}\n
" + ], + alt: + 'canvas is divided into four quadrants. cursor on first is a cross, second is a progress,\nthird is a custom cursor using path to the cursor and fourth is a grab.', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 232, + description: + '

Specifies the number of frames to be displayed every second. For example,\nthe function call frameRate(30) will attempt to refresh 30 times a second.\nIf the processor is not fast enough to maintain the specified rate, the\nframe rate will not be achieved. Setting the frame rate within setup() is\nrecommended. The default frame rate is based on the frame rate of the display\n(here also called "refresh rate"), which is set to 60 frames per second on most\ncomputers. A frame rate of 24 frames per second (usual for movies) or above\nwill be enough for smooth animations\nThis is the same as setFrameRate(val).\n

\nCalling frameRate() with no arguments returns the current framerate. The\ndraw function must run at least once before it will return a value. This\nis the same as getFrameRate().\n

\nCalling frameRate() with arguments that are not of the type numbers\nor are non positive also returns current framerate.

\n', + itemtype: 'method', + name: 'frameRate', + chainable: 1, + example: [ + '\n\n
\nlet rectX = 0;\nlet fr = 30; //starting FPS\nlet clr;\n\nfunction setup() {\n background(200);\n frameRate(fr); // Attempt to refresh at starting FPS\n clr = color(255, 0, 0);\n}\n\nfunction draw() {\n background(200);\n rectX = rectX += 1; // Move Rectangle\n\n if (rectX >= width) {\n // If you go off screen.\n if (fr === 30) {\n clr = color(0, 0, 255);\n fr = 10;\n frameRate(fr); // make frameRate 10 FPS\n } else {\n clr = color(255, 0, 0);\n fr = 30;\n frameRate(fr); // make frameRate 30 FPS\n }\n rectX = 0;\n }\n fill(clr);\n rect(rectX, 40, 20, 20);\n}\n
' + ], + alt: + 'blue rect moves left to right, followed by red rect moving faster. Loops.', + class: 'p5', + module: 'Environment', + submodule: 'Environment', + overloads: [ + { + line: 232, + params: [ + { + name: 'fps', + description: + '

number of frames to be displayed every second

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 293, + params: [], + return: { + description: 'current frameRate', + type: 'Number' + } + } + ] + }, + { + file: 'src/core/environment.js', + line: 332, + description: '

Hides the cursor from view.

\n', + itemtype: 'method', + name: 'noCursor', + example: [ + '\n
\nfunction setup() {\n noCursor();\n}\n\nfunction draw() {\n background(200);\n ellipse(mouseX, mouseY, 10, 10);\n}\n
' + ], + alt: 'cursor becomes 10x 10 white ellipse the moves with mouse x and y.', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 357, + description: + '

System variable that stores the width of the screen display according to The\ndefault pixelDensity. This is used to run a\nfull-screen program on any display size. To return actual screen size,\nmultiply this by pixelDensity.

\n', + itemtype: 'property', + name: 'displayWidth', + type: 'Number', + readonly: '', + example: [ + '\n
\ncreateCanvas(displayWidth, displayHeight);\n
' + ], + alt: 'cursor becomes 10x 10 white ellipse the moves with mouse x and y.', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 376, + description: + '

System variable that stores the height of the screen display according to The\ndefault pixelDensity. This is used to run a\nfull-screen program on any display size. To return actual screen size,\nmultiply this by pixelDensity.

\n', + itemtype: 'property', + name: 'displayHeight', + type: 'Number', + readonly: '', + example: [ + '\n
\ncreateCanvas(displayWidth, displayHeight);\n
' + ], + alt: 'no display.', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 395, + description: + '

System variable that stores the width of the inner window, it maps to\nwindow.innerWidth.

\n', + itemtype: 'property', + name: 'windowWidth', + type: 'Number', + readonly: '', + example: [ + '\n
\ncreateCanvas(windowWidth, windowHeight);\n
' + ], + alt: 'no display.', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 411, + description: + '

System variable that stores the height of the inner window, it maps to\nwindow.innerHeight.

\n', + itemtype: 'property', + name: 'windowHeight', + type: 'Number', + readonly: '', + example: [ + '\n
\ncreateCanvas(windowWidth, windowHeight);\n
' + ], + alt: 'no display.', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 427, + description: + '

The windowResized() function is called once every time the browser window\nis resized. This is a good place to resize the canvas or do any other\nadjustments to accommodate the new window size.

\n', + itemtype: 'method', + name: 'windowResized', + example: [ + '\n
\nfunction setup() {\n createCanvas(windowWidth, windowHeight);\n}\n\nfunction draw() {\n background(0, 100, 200);\n}\n\nfunction windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}\n
' + ], + alt: 'no display.', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 481, + description: + '

System variable that stores the width of the drawing canvas. This value\nis set by the first parameter of the createCanvas() function.\nFor example, the function call createCanvas(320, 240) sets the width\nvariable to the value 320. The value of width defaults to 100 if\ncreateCanvas() is not used in a program.

\n', + itemtype: 'property', + name: 'width', + type: 'Number', + readonly: '', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 493, + description: + '

System variable that stores the height of the drawing canvas. This value\nis set by the second parameter of the createCanvas() function. For\nexample, the function call createCanvas(320, 240) sets the height\nvariable to the value 240. The value of height defaults to 100 if\ncreateCanvas() is not used in a program.

\n', + itemtype: 'property', + name: 'height', + type: 'Number', + readonly: '', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 505, + description: + '

If argument is given, sets the sketch to fullscreen or not based on the\nvalue of the argument. If no argument is given, returns the current\nfullscreen state. Note that due to browser restrictions this can only\nbe called on user input, for example, on mouse press like the example\nbelow.

\n', + itemtype: 'method', + name: 'fullscreen', + params: [ + { + name: 'val', + description: + '

whether the sketch should be in fullscreen mode\nor not

\n', + type: 'Boolean', + optional: true + } + ], + return: { + description: 'current fullscreen state', + type: 'Boolean' + }, + example: [ + '\n
\n\n// Clicking in the box toggles fullscreen on and off.\nfunction setup() {\n background(200);\n}\nfunction mousePressed() {\n if (mouseX > 0 && mouseX < 100 && mouseY > 0 && mouseY < 100) {\n let fs = fullscreen();\n fullscreen(!fs);\n }\n}\n\n
' + ], + alt: 'no display.', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 556, + description: + '

Sets the pixel scaling for high pixel density displays. By default\npixel density is set to match display density, call pixelDensity(1)\nto turn this off. Calling pixelDensity() with no arguments returns\nthe current pixel density of the sketch.

\n', + itemtype: 'method', + name: 'pixelDensity', + chainable: 1, + example: [ + '\n
\n\nfunction setup() {\n pixelDensity(1);\n createCanvas(100, 100);\n background(200);\n ellipse(width / 2, height / 2, 50, 50);\n}\n\n
\n
\n\nfunction setup() {\n pixelDensity(3.0);\n createCanvas(100, 100);\n background(200);\n ellipse(width / 2, height / 2, 50, 50);\n}\n\n
' + ], + alt: + 'fuzzy 50x50 white ellipse with black outline in center of canvas.\nsharp 50x50 white ellipse with black outline in center of canvas.', + class: 'p5', + module: 'Environment', + submodule: 'Environment', + overloads: [ + { + line: 556, + params: [ + { + name: 'val', + description: '

whether or how much the sketch should scale

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 591, + params: [], + return: { + description: 'current pixel density of the sketch', + type: 'Number' + } + } + ] + }, + { + file: 'src/core/environment.js', + line: 611, + description: + '

Returns the pixel density of the current display the sketch is running on.

\n', + itemtype: 'method', + name: 'displayDensity', + return: { + description: 'current pixel density of the display', + type: 'Number' + }, + example: [ + '\n
\n\nfunction setup() {\n let density = displayDensity();\n pixelDensity(density);\n createCanvas(100, 100);\n background(200);\n ellipse(width / 2, height / 2, 50, 50);\n}\n\n
' + ], + alt: '50x50 white ellipse with black outline in center of canvas.', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 668, + description: '

Gets the current URL.

\n', + itemtype: 'method', + name: 'getURL', + return: { + description: 'url', + type: 'String' + }, + example: [ + '\n
\n\nlet url;\nlet x = 100;\n\nfunction setup() {\n fill(0);\n noStroke();\n url = getURL();\n}\n\nfunction draw() {\n background(200);\n text(url, x, height / 2);\n x--;\n}\n\n
' + ], + alt: + 'current url (http://p5js.org/reference/#/p5/getURL) moves right to left.', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 699, + description: '

Gets the current URL path as an array.

\n', + itemtype: 'method', + name: 'getURLPath', + return: { + description: 'path components', + type: 'String[]' + }, + example: [ + "\n
\nfunction setup() {\n let urlPath = getURLPath();\n for (let i = 0; i < urlPath.length; i++) {\n text(urlPath[i], 10, i * 20 + 20);\n }\n}\n
" + ], + alt: 'no display', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/environment.js', + line: 722, + description: '

Gets the current URL params as an Object.

\n', + itemtype: 'method', + name: 'getURLParams', + return: { + description: 'URL params', + type: 'Object' + }, + example: [ + "\n
\n\n// Example: http://p5js.org?year=2014&month=May&day=15\n\nfunction setup() {\n let params = getURLParams();\n text(params.day, 10, 20);\n text(params.month, 10, 40);\n text(params.year, 10, 60);\n}\n\n
" + ], + alt: 'no display.', + class: 'p5', + module: 'Environment', + submodule: 'Environment' + }, + { + file: 'src/core/error_helpers.js', + line: 1, + requires: ['core'], + class: 'p5', + module: 'Environment' + }, + { + file: 'src/core/error_helpers.js', + line: 584, + description: + '

Validates parameters\nparam {String} func the name of the function\nparam {Array} args user input arguments

\n

example:\n var a;\n ellipse(10,10,a,5);\nconsole ouput:\n "It looks like ellipse received an empty variable in spot #2."

\n

example:\n ellipse(10,"foo",5,5);\nconsole output:\n "ellipse was expecting a number for parameter #1,\n received "foo" instead."

\n', + class: 'p5', + module: 'Environment' + }, + { + file: 'src/core/error_helpers.js', + line: 645, + description: + '

Prints out all the colors in the color pallete with white text.\nFor color blindness testing.

\n', + class: 'p5', + module: 'Environment' + }, + { + file: 'src/core/helpers.js', + line: 1, + requires: ['constants'], + class: 'p5', + module: 'Environment' + }, + { + file: 'src/core/legacy.js', + line: 1, + requires: [ + 'core\nThese are functions that are part of the Processing API but are not part of\nthe p5.js API. In some cases they have a new name', + 'in others', + 'they are\nremoved completely. Not all unsupported Processing functions are listed here\nbut we try to include ones that a user coming from Processing might likely\ncall.' + ], + class: 'p5', + module: 'Environment' + }, + { + file: 'src/core/main.js', + line: 42, + description: + '

Called directly before setup(), the preload() function is used to handle\nasynchronous loading of external files in a blocking way. If a preload\nfunction is defined, setup() will wait until any load calls within have\nfinished. Nothing besides load calls (loadImage, loadJSON, loadFont,\nloadStrings, etc.) should be inside the preload function. If asynchronous\nloading is preferred, the load methods can instead be called in setup()\nor anywhere else with the use of a callback parameter.\n

\nBy default the text "loading..." will be displayed. To make your own\nloading page, include an HTML element with id "p5_loading" in your\npage. More information here.

\n', + itemtype: 'method', + name: 'preload', + example: [ + "\n
\nlet img;\nlet c;\nfunction preload() {\n // preload() runs once\n img = loadImage('assets/laDefense.jpg');\n}\n\nfunction setup() {\n // setup() waits until preload() is done\n img.loadPixels();\n // get color of middle pixel\n c = img.get(img.width / 2, img.height / 2);\n}\n\nfunction draw() {\n background(c);\n image(img, 25, 25, 50, 50);\n}\n
" + ], + alt: 'nothing displayed', + class: 'p5', + module: 'Structure', + submodule: 'Structure' + }, + { + file: 'src/core/main.js', + line: 83, + description: + '

The setup() function is called once when the program starts. It's used to\ndefine initial environment properties such as screen size and background\ncolor and to load media such as images and fonts as the program starts.\nThere can only be one setup() function for each program and it shouldn't\nbe called again after its initial execution.\n

\nNote: Variables declared within setup() are not accessible within other\nfunctions, including draw().

\n', + itemtype: 'method', + name: 'setup', + example: [ + '\n
\nlet a = 0;\n\nfunction setup() {\n background(0);\n noStroke();\n fill(102);\n}\n\nfunction draw() {\n rect(a++ % width, 10, 2, 80);\n}\n
' + ], + alt: 'nothing displayed', + class: 'p5', + module: 'Structure', + submodule: 'Structure' + }, + { + file: 'src/core/main.js', + line: 114, + description: + '

Called directly after setup(), the draw() function continuously executes\nthe lines of code contained inside its block until the program is stopped\nor noLoop() is called. Note if noLoop() is called in setup(), draw() will\nstill be executed once before stopping. draw() is called automatically and\nshould never be called explicitly.\n

\nIt should always be controlled with noLoop(), redraw() and loop(). After\nnoLoop() stops the code in draw() from executing, redraw() causes the\ncode inside draw() to execute once, and loop() will cause the code\ninside draw() to resume executing continuously.\n

\nThe number of times draw() executes in each second may be controlled with\nthe frameRate() function.\n

\nThere can only be one draw() function for each sketch, and draw() must\nexist if you want the code to run continuously, or to process events such\nas mousePressed(). Sometimes, you might have an empty call to draw() in\nyour program, as shown in the above example.\n

\nIt is important to note that the drawing coordinate system will be reset\nat the beginning of each draw() call. If any transformations are performed\nwithin draw() (ex: scale, rotate, translate), their effects will be\nundone at the beginning of draw(), so transformations will not accumulate\nover time. On the other hand, styling applied (ex: fill, stroke, etc) will\nremain in effect.

\n', + itemtype: 'method', + name: 'draw', + example: [ + '\n
\nlet yPos = 0;\nfunction setup() {\n // setup() runs once\n frameRate(30);\n}\nfunction draw() {\n // draw() loops forever, until stopped\n background(204);\n yPos = yPos - 1;\n if (yPos < 0) {\n yPos = height;\n }\n line(0, yPos, width, yPos);\n}\n
' + ], + alt: 'nothing displayed', + class: 'p5', + module: 'Structure', + submodule: 'Structure' + }, + { + file: 'src/core/main.js', + line: 396, + description: + '

Removes the entire p5 sketch. This will remove the canvas and any\nelements created by p5.js. It will also stop the draw loop and unbind\nany properties or methods from the window global scope. It will\nleave a variable p5 in case you wanted to create a new p5 sketch.\nIf you like, you can set p5 = null to erase it. While all functions and\nvariables and objects created by the p5 library will be removed, any\nother global variables created by your code will remain.

\n', + itemtype: 'method', + name: 'remove', + example: [ + "\n
\nfunction draw() {\n ellipse(50, 50, 10, 10);\n}\n\nfunction mousePressed() {\n remove(); // remove whole sketch on mouse press\n}\n
" + ], + alt: 'nothing displayed', + class: 'p5', + module: 'Structure', + submodule: 'Structure' + }, + { + file: 'src/core/main.js', + line: 577, + description: + "

Allows for the friendly error system (FES) to be turned off when creating a sketch,\nwhich can give a significant boost to performance when needed.\nSee \ndisabling the friendly error system.

\n", + itemtype: 'property', + name: 'disableFriendlyErrors', + type: 'Boolean', + example: [ + '\n
\np5.disableFriendlyErrors = true;\n\nfunction setup() {\n createCanvas(100, 50);\n}\n
' + ], + class: 'p5', + module: 'Structure', + submodule: 'Structure' + }, + { + file: 'src/core/p5.Element.js', + line: 26, + description: + '

Underlying HTML element. All normal HTML methods can be called on this.

\n', + example: [ + "\n
\n\nfunction setup() {\n let c = createCanvas(50, 50);\n c.elt.style.border = '5px solid red';\n}\n\nfunction draw() {\n background(220);\n}\n\n
" + ], + itemtype: 'property', + name: 'elt', + readonly: '', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM' + }, + { + file: 'src/core/p5.Element.js', + line: 52, + description: + "

Attaches the element to the parent specified. A way of setting\n the container for the element. Accepts either a string ID, DOM\n node, or p5.Element. If no arguments given, parent node is returned.\n For more ways to position the canvas, see the\n \n positioning the canvas wiki page.\nAll above examples except for the first one require the inclusion of\n the p5.dom library in your index.html. See the\n using a library\n section for information on how to include this library.

\n", + itemtype: 'method', + name: 'parent', + chainable: 1, + example: [ + "\n
\n // in the html file:\n // <div id=\"myContainer\"></div>\n// in the js file:\n let cnv = createCanvas(100, 100);\n cnv.parent('myContainer');\n
\n
\n let div0 = createDiv('this is the parent');\n let div1 = createDiv('this is the child');\n div1.parent(div0); // use p5.Element\n
\n
\n let div0 = createDiv('this is the parent');\n div0.id('apples');\n let div1 = createDiv('this is the child');\n div1.parent('apples'); // use id\n
\n
\n let elt = document.getElementById('myParentDiv');\n let div1 = createDiv('this is the child');\n div1.parent(elt); // use element from page\n
" + ], + alt: 'no display.', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM', + overloads: [ + { + line: 52, + params: [ + { + name: 'parent', + description: + '

the ID, DOM node, or p5.Element\n of desired parent element

\n', + type: 'String|p5.Element|Object' + } + ], + chainable: 1 + }, + { + line: 100, + params: [], + return: { + description: '', + type: 'p5.Element' + } + } + ] + }, + { + file: 'src/core/p5.Element.js', + line: 122, + description: + '

Sets the ID of the element. If no ID argument is passed in, it instead\n returns the current ID of the element.\n Note that only one element can have a particular id in a page.\n The .class() function can be used\n to identify multiple elements with the same class name.

\n', + itemtype: 'method', + name: 'id', + chainable: 1, + example: [ + "\n
\n function setup() {\n let cnv = createCanvas(100, 100);\n // Assigns a CSS selector ID to\n // the canvas element.\n cnv.id('mycanvas');\n }\n
" + ], + alt: 'no display.', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM', + overloads: [ + { + line: 122, + params: [ + { + name: 'id', + description: '

ID of the element

\n', + type: 'String' + } + ], + chainable: 1 + }, + { + line: 147, + params: [], + return: { + description: 'the id of the element', + type: 'String' + } + } + ] + }, + { + file: 'src/core/p5.Element.js', + line: 162, + description: + '

Adds given class to the element. If no class argument is passed in, it\n instead returns a string containing the current class(es) of the element.

\n', + itemtype: 'method', + name: 'class', + chainable: 1, + example: [ + "\n
\n function setup() {\n let cnv = createCanvas(100, 100);\n // Assigns a CSS selector class 'small'\n // to the canvas element.\n cnv.class('small');\n }\n
" + ], + alt: 'no display.', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM', + overloads: [ + { + line: 162, + params: [ + { + name: 'class', + description: '

class to add

\n', + type: 'String' + } + ], + chainable: 1 + }, + { + line: 184, + params: [], + return: { + description: 'the class of the element', + type: 'String' + } + } + ] + }, + { + file: 'src/core/p5.Element.js', + line: 197, + description: + '

The .mousePressed() function is called once after every time a\nmouse button is pressed over the element.\nSome mobile browsers may also trigger this event on a touch screen,\nif the user performs a quick tap.\nThis can be used to attach element specific event listeners.

\n', + itemtype: 'method', + name: 'mousePressed', + params: [ + { + name: 'fxn', + description: + '

function to be fired when mouse is\n pressed over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', + type: 'Function|Boolean' + } + ], + chainable: 1, + example: [ + "\n
\nlet cnv;\nlet d;\nlet g;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.mousePressed(changeGray); // attach listener for\n // canvas click only\n d = 10;\n g = 100;\n}\n\nfunction draw() {\n background(g);\n ellipse(width / 2, height / 2, d, d);\n}\n\n// this function fires with any click anywhere\nfunction mousePressed() {\n d = d + 10;\n}\n\n// this function fires only when cnv is clicked\nfunction changeGray() {\n g = random(0, 255);\n}\n
" + ], + alt: 'no display.', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM' + }, + { + file: 'src/core/p5.Element.js', + line: 258, + description: + '

The .doubleClicked() function is called once after every time a\nmouse button is pressed twice over the element. This can be used to\nattach element and action specific event listeners.

\n', + itemtype: 'method', + name: 'doubleClicked', + params: [ + { + name: 'fxn', + description: + '

function to be fired when mouse is\n double clicked over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', + type: 'Function|Boolean' + } + ], + return: { + description: '', + type: 'p5.Element' + }, + example: [ + "\n
\nlet cnv;\nlet d;\nlet g;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.doubleClicked(changeGray); // attach listener for\n // canvas double click only\n d = 10;\n g = 100;\n}\n\nfunction draw() {\n background(g);\n ellipse(width / 2, height / 2, d, d);\n}\n\n// this function fires with any double click anywhere\nfunction doubleClicked() {\n d = d + 10;\n}\n\n// this function fires only when cnv is double clicked\nfunction changeGray() {\n g = random(0, 255);\n}\n
" + ], + alt: 'no display.', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM' + }, + { + file: 'src/core/p5.Element.js', + line: 307, + description: + '

The .mouseWheel() function is called once after every time a\nmouse wheel is scrolled over the element. This can be used to\nattach element specific event listeners.\n

\nThe function accepts a callback function as argument which will be executed\nwhen the wheel event is triggered on the element, the callback function is\npassed one argument event. The event.deltaY property returns negative\nvalues if the mouse wheel is rotated up or away from the user and positive\nin the other direction. The event.deltaX does the same as event.deltaY\nexcept it reads the horizontal wheel scroll of the mouse wheel.\n

\nOn OS X with "natural" scrolling enabled, the event.deltaY values are\nreversed.

\n', + itemtype: 'method', + name: 'mouseWheel', + params: [ + { + name: 'fxn', + description: + '

function to be fired when mouse is\n scrolled over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', + type: 'Function|Boolean' + } + ], + chainable: 1, + example: [ + "\n
\nlet cnv;\nlet d;\nlet g;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.mouseWheel(changeSize); // attach listener for\n // activity on canvas only\n d = 10;\n g = 100;\n}\n\nfunction draw() {\n background(g);\n ellipse(width / 2, height / 2, d, d);\n}\n\n// this function fires with mousewheel movement\n// anywhere on screen\nfunction mouseWheel() {\n g = g + 10;\n}\n\n// this function fires with mousewheel movement\n// over canvas only\nfunction changeSize(event) {\n if (event.deltaY > 0) {\n d = d + 10;\n } else {\n d = d - 10;\n }\n}\n
" + ], + alt: 'no display.', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM' + }, + { + file: 'src/core/p5.Element.js', + line: 373, + description: + '

The .mouseReleased() function is called once after every time a\nmouse button is released over the element.\nSome mobile browsers may also trigger this event on a touch screen,\nif the user performs a quick tap.\nThis can be used to attach element specific event listeners.

\n', + itemtype: 'method', + name: 'mouseReleased', + params: [ + { + name: 'fxn', + description: + '

function to be fired when mouse is\n released over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', + type: 'Function|Boolean' + } + ], + chainable: 1, + example: [ + "\n
\nlet cnv;\nlet d;\nlet g;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.mouseReleased(changeGray); // attach listener for\n // activity on canvas only\n d = 10;\n g = 100;\n}\n\nfunction draw() {\n background(g);\n ellipse(width / 2, height / 2, d, d);\n}\n\n// this function fires after the mouse has been\n// released\nfunction mouseReleased() {\n d = d + 10;\n}\n\n// this function fires after the mouse has been\n// released while on canvas\nfunction changeGray() {\n g = random(0, 255);\n}\n
" + ], + alt: 'no display.', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM' + }, + { + file: 'src/core/p5.Element.js', + line: 427, + description: + '

The .mouseClicked() function is called once after a mouse button is\npressed and released over the element.\nSome mobile browsers may also trigger this event on a touch screen,\nif the user performs a quick tap.\nThis can be used to attach element specific event listeners.

\n', + itemtype: 'method', + name: 'mouseClicked', + params: [ + { + name: 'fxn', + description: + '

function to be fired when mouse is\n clicked over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', + type: 'Function|Boolean' + } + ], + chainable: 1, + example: [ + '\n
\n\nlet cnv;\nlet d;\nlet g;\n\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.mouseClicked(changeGray); // attach listener for\n // activity on canvas only\n d = 10;\n g = 100;\n}\n\nfunction draw() {\n background(g);\n ellipse(width / 2, height / 2, d, d);\n}\n\n// this function fires after the mouse has been\n// clicked anywhere\nfunction mouseClicked() {\n d = d + 10;\n}\n\n// this function fires after the mouse has been\n// clicked on canvas\nfunction changeGray() {\n g = random(0, 255);\n}\n\n
' + ], + alt: 'no display.', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM' + }, + { + file: 'src/core/p5.Element.js', + line: 483, + description: + '

The .mouseMoved() function is called once every time a\nmouse moves over the element. This can be used to attach an\nelement specific event listener.

\n', + itemtype: 'method', + name: 'mouseMoved', + params: [ + { + name: 'fxn', + description: + '

function to be fired when a mouse moves\n over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', + type: 'Function|Boolean' + } + ], + chainable: 1, + example: [ + "\n
\nlet cnv;\nlet d = 30;\nlet g;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.mouseMoved(changeSize); // attach listener for\n // activity on canvas only\n d = 10;\n g = 100;\n}\n\nfunction draw() {\n background(g);\n fill(200);\n ellipse(width / 2, height / 2, d, d);\n}\n\n// this function fires when mouse moves anywhere on\n// page\nfunction mouseMoved() {\n g = g + 5;\n if (g > 255) {\n g = 0;\n }\n}\n\n// this function fires when mouse moves over canvas\nfunction changeSize() {\n d = d + 2;\n if (d > 100) {\n d = 0;\n }\n}\n
" + ], + alt: 'no display.', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM' + }, + { + file: 'src/core/p5.Element.js', + line: 541, + description: + '

The .mouseOver() function is called once after every time a\nmouse moves onto the element. This can be used to attach an\nelement specific event listener.

\n', + itemtype: 'method', + name: 'mouseOver', + params: [ + { + name: 'fxn', + description: + '

function to be fired when a mouse moves\n onto the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', + type: 'Function|Boolean' + } + ], + chainable: 1, + example: [ + "\n
\nlet cnv;\nlet d;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.mouseOver(changeGray);\n d = 10;\n}\n\nfunction draw() {\n ellipse(width / 2, height / 2, d, d);\n}\n\nfunction changeGray() {\n d = d + 10;\n if (d > 100) {\n d = 0;\n }\n}\n
" + ], + alt: 'no display.', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM' + }, + { + file: 'src/core/p5.Element.js', + line: 584, + description: + '

The .mouseOut() function is called once after every time a\nmouse moves off the element. This can be used to attach an\nelement specific event listener.

\n', + itemtype: 'method', + name: 'mouseOut', + params: [ + { + name: 'fxn', + description: + '

function to be fired when a mouse\n moves off of an element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', + type: 'Function|Boolean' + } + ], + chainable: 1, + example: [ + "\n
\nlet cnv;\nlet d;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.mouseOut(changeGray);\n d = 10;\n}\n\nfunction draw() {\n ellipse(width / 2, height / 2, d, d);\n}\n\nfunction changeGray() {\n d = d + 10;\n if (d > 100) {\n d = 0;\n }\n}\n
" + ], + alt: 'no display.', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM' + }, + { + file: 'src/core/p5.Element.js', + line: 626, + description: + '

The .touchStarted() function is called once after every time a touch is\nregistered. This can be used to attach element specific event listeners.

\n', + itemtype: 'method', + name: 'touchStarted', + params: [ + { + name: 'fxn', + description: + '

function to be fired when a touch\n starts over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', + type: 'Function|Boolean' + } + ], + chainable: 1, + example: [ + "\n
\nlet cnv;\nlet d;\nlet g;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.touchStarted(changeGray); // attach listener for\n // canvas click only\n d = 10;\n g = 100;\n}\n\nfunction draw() {\n background(g);\n ellipse(width / 2, height / 2, d, d);\n}\n\n// this function fires with any touch anywhere\nfunction touchStarted() {\n d = d + 10;\n}\n\n// this function fires only when cnv is clicked\nfunction changeGray() {\n g = random(0, 255);\n}\n
" + ], + alt: 'no display.', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM' + }, + { + file: 'src/core/p5.Element.js', + line: 674, + description: + '

The .touchMoved() function is called once after every time a touch move is\nregistered. This can be used to attach element specific event listeners.

\n', + itemtype: 'method', + name: 'touchMoved', + params: [ + { + name: 'fxn', + description: + '

function to be fired when a touch moves over\n the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', + type: 'Function|Boolean' + } + ], + chainable: 1, + example: [ + "\n
\nlet cnv;\nlet g;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.touchMoved(changeGray); // attach listener for\n // canvas click only\n g = 100;\n}\n\nfunction draw() {\n background(g);\n}\n\n// this function fires only when cnv is clicked\nfunction changeGray() {\n g = random(0, 255);\n}\n
" + ], + alt: 'no display.', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM' + }, + { + file: 'src/core/p5.Element.js', + line: 714, + description: + '

The .touchEnded() function is called once after every time a touch is\nregistered. This can be used to attach element specific event listeners.

\n', + itemtype: 'method', + name: 'touchEnded', + params: [ + { + name: 'fxn', + description: + '

function to be fired when a touch ends\n over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', + type: 'Function|Boolean' + } + ], + chainable: 1, + example: [ + "\n
\nlet cnv;\nlet d;\nlet g;\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.touchEnded(changeGray); // attach listener for\n // canvas click only\n d = 10;\n g = 100;\n}\n\nfunction draw() {\n background(g);\n ellipse(width / 2, height / 2, d, d);\n}\n\n// this function fires with any touch anywhere\nfunction touchEnded() {\n d = d + 10;\n}\n\n// this function fires only when cnv is clicked\nfunction changeGray() {\n g = random(0, 255);\n}\n
" + ], + alt: 'no display.', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM' + }, + { + file: 'src/core/p5.Element.js', + line: 763, + description: + '

The .dragOver() function is called once after every time a\nfile is dragged over the element. This can be used to attach an\nelement specific event listener.

\n', + itemtype: 'method', + name: 'dragOver', + params: [ + { + name: 'fxn', + description: + '

function to be fired when a file is\n dragged over the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', + type: 'Function|Boolean' + } + ], + chainable: 1, + example: [ + "\n
\n// To test this sketch, simply drag a\n// file over the canvas\nfunction setup() {\n let c = createCanvas(100, 100);\n background(200);\n textAlign(CENTER);\n text('Drag file', width / 2, height / 2);\n c.dragOver(dragOverCallback);\n}\n\n// This function will be called whenever\n// a file is dragged over the canvas\nfunction dragOverCallback() {\n background(240);\n text('Dragged over', width / 2, height / 2);\n}\n
" + ], + alt: 'nothing displayed', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM' + }, + { + file: 'src/core/p5.Element.js', + line: 801, + description: + '

The .dragLeave() function is called once after every time a\ndragged file leaves the element area. This can be used to attach an\nelement specific event listener.

\n', + itemtype: 'method', + name: 'dragLeave', + params: [ + { + name: 'fxn', + description: + '

function to be fired when a file is\n dragged off the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', + type: 'Function|Boolean' + } + ], + chainable: 1, + example: [ + "\n
\n// To test this sketch, simply drag a file\n// over and then out of the canvas area\nfunction setup() {\n let c = createCanvas(100, 100);\n background(200);\n textAlign(CENTER);\n text('Drag file', width / 2, height / 2);\n c.dragLeave(dragLeaveCallback);\n}\n\n// This function will be called whenever\n// a file is dragged out of the canvas\nfunction dragLeaveCallback() {\n background(240);\n text('Dragged off', width / 2, height / 2);\n}\n
" + ], + alt: 'nothing displayed', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM' + }, + { + file: 'src/core/p5.Element.js', + line: 865, + description: '

Helper fxn for sharing pixel methods

\n', + class: 'p5.Element', + module: 'DOM', + submodule: 'DOM' + }, + { + file: 'src/core/p5.Graphics.js', + line: 65, + description: + "

Resets certain values such as those modified by functions in the Transform category\nand in the Lights category that are not automatically reset\nwith graphics buffer objects. Calling this in draw() will copy the behavior\nof the standard canvas.

\n", + itemtype: 'method', + name: 'reset', + example: [ + "\n\n
\nlet pg;\nfunction setup() {\n createCanvas(100, 100);\n background(0);\n pg = createGraphics(50, 100);\n pg.fill(0);\n frameRate(5);\n}\nfunction draw() {\n image(pg, width / 2, 0);\n pg.background(255);\n // p5.Graphics object behave a bit differently in some cases\n // The normal canvas on the left resets the translate\n // with every loop through draw()\n // the graphics object on the right doesn't automatically reset\n // so translate() is additive and it moves down the screen\n rect(0, 0, width / 2, 5);\n pg.rect(0, 0, width / 2, 5);\n translate(0, 5, 0);\n pg.translate(0, 5, 0);\n}\nfunction mouseClicked() {\n // if you click you will see that\n // reset() resets the translate back to the initial state\n // of the Graphics object\n pg.reset();\n}\n
" + ], + alt: + 'A white line on a black background stays still on the top-left half.\nA black line animates from top to bottom on a white background on the right half.\nWhen clicked, the black line starts back over at the top.', + class: 'p5.Graphics', + module: 'Rendering', + submodule: 'Rendering' + }, + { + file: 'src/core/p5.Graphics.js', + line: 117, + description: + '

Removes a Graphics object from the page and frees any resources\nassociated with it.

\n', + itemtype: 'method', + name: 'remove', + example: [ + "\n
\nlet bg;\nfunction setup() {\n bg = createCanvas(100, 100);\n bg.background(0);\n image(bg, 0, 0);\n bg.remove();\n}\n
\n\n
\nlet bg;\nfunction setup() {\n pixelDensity(1);\n createCanvas(100, 100);\n stroke(255);\n fill(0);\n\n // create and draw the background image\n bg = createGraphics(100, 100);\n bg.background(200);\n bg.ellipse(50, 50, 80, 80);\n}\nfunction draw() {\n let t = millis() / 1000;\n // draw the background\n if (bg) {\n image(bg, frameCount % 100, 0);\n image(bg, frameCount % 100 - 100, 0);\n }\n // draw the foreground\n let p = p5.Vector.fromAngle(t, 35).add(50, 50);\n ellipse(p.x, p.y, 30);\n}\nfunction mouseClicked() {\n // remove the background\n if (bg) {\n bg.remove();\n bg = null;\n }\n}\n
" + ], + alt: + 'no image\na multi-colored circle moving back and forth over a scrolling background.', + class: 'p5.Graphics', + module: 'Rendering', + submodule: 'Rendering' + }, + { + file: 'src/core/p5.Renderer.js', + line: 97, + description: '

Resize our canvas element.

\n', + class: 'p5.Renderer', + module: 'Rendering', + submodule: 'Rendering' + }, + { + file: 'src/core/p5.Renderer.js', + line: 335, + description: '

Helper fxn to check font type (system or otf)

\n', + class: 'p5.Renderer', + module: 'Rendering', + submodule: 'Rendering' + }, + { + file: 'src/core/p5.Renderer.js', + line: 388, + description: + '

Helper fxn to measure ascent and descent.\nAdapted from http://stackoverflow.com/a/25355178

\n', + class: 'p5.Renderer', + module: 'Rendering', + submodule: 'Rendering' + }, + { + file: 'src/core/p5.Renderer2D.js', + line: 9, + description: + '

p5.Renderer2D\nThe 2D graphics canvas renderer class.\nextends p5.Renderer

\n', + class: 'p5', + module: 'Rendering' + }, + { + file: 'src/core/p5.Renderer2D.js', + line: 407, + description: + '

Generate a cubic Bezier representing an arc on the unit circle of total\nangle size radians, beginning start radians above the x-axis. Up to\nfour of these curves are combined to make a full arc.

\n

See www.joecridge.me/bezier.pdf for an explanation of the method.

\n', + class: 'p5', + module: 'Rendering' + }, + { + file: 'src/core/rendering.js', + line: 17, + description: + '

Creates a canvas element in the document, and sets the dimensions of it\nin pixels. This method should be called only once at the start of setup.\nCalling createCanvas more than once in a sketch will result in very\nunpredictable behavior. If you want more than one drawing canvas\nyou could use createGraphics (hidden by default but it can be shown).\n

\nThe system variables width and height are set by the parameters passed\nto this function. If createCanvas() is not used, the window will be\ngiven a default size of 100x100 pixels.\n

\nFor more ways to position the canvas, see the\n\npositioning the canvas wiki page.

\n', + itemtype: 'method', + name: 'createCanvas', + params: [ + { + name: 'w', + description: '

width of the canvas

\n', + type: 'Number' + }, + { + name: 'h', + description: '

height of the canvas

\n', + type: 'Number' + }, + { + name: 'renderer', + description: '

either P2D or WEBGL

\n', + type: 'Constant', + optional: true + } + ], + return: { + description: '', + type: 'p5.Renderer' + }, + example: [ + '\n
\n\nfunction setup() {\n createCanvas(100, 50);\n background(153);\n line(0, 0, width, height);\n}\n\n
' + ], + alt: 'Black line extending from top-left of canvas to bottom right.', + class: 'p5', + module: 'Rendering', + submodule: 'Rendering' + }, + { + file: 'src/core/rendering.js', + line: 119, + description: + '

Resizes the canvas to given width and height. The canvas will be cleared\nand draw will be called immediately, allowing the sketch to re-render itself\nin the resized canvas.

\n', + itemtype: 'method', + name: 'resizeCanvas', + params: [ + { + name: 'w', + description: '

width of the canvas

\n', + type: 'Number' + }, + { + name: 'h', + description: '

height of the canvas

\n', + type: 'Number' + }, + { + name: 'noRedraw', + description: '

don't redraw the canvas immediately

\n', + type: 'Boolean', + optional: true + } + ], + example: [ + '\n
\nfunction setup() {\n createCanvas(windowWidth, windowHeight);\n}\n\nfunction draw() {\n background(0, 100, 200);\n}\n\nfunction windowResized() {\n resizeCanvas(windowWidth, windowHeight);\n}\n
' + ], + alt: 'No image displayed.', + class: 'p5', + module: 'Rendering', + submodule: 'Rendering' + }, + { + file: 'src/core/rendering.js', + line: 174, + description: + '

Removes the default canvas for a p5 sketch that doesn't\nrequire a canvas

\n', + itemtype: 'method', + name: 'noCanvas', + example: [ + '\n
\n\nfunction setup() {\n noCanvas();\n}\n\n
' + ], + alt: 'no image displayed', + class: 'p5', + module: 'Rendering', + submodule: 'Rendering' + }, + { + file: 'src/core/rendering.js', + line: 197, + description: + '

Creates and returns a new p5.Renderer object. Use this class if you need\nto draw into an off-screen graphics buffer. The two parameters define the\nwidth and height in pixels.

\n', + itemtype: 'method', + name: 'createGraphics', + params: [ + { + name: 'w', + description: '

width of the offscreen graphics buffer

\n', + type: 'Number' + }, + { + name: 'h', + description: '

height of the offscreen graphics buffer

\n', + type: 'Number' + }, + { + name: 'renderer', + description: '

either P2D or WEBGL\nundefined defaults to p2d

\n', + type: 'Constant', + optional: true + } + ], + return: { + description: 'offscreen graphics buffer', + type: 'p5.Graphics' + }, + example: [ + '\n
\n\nlet pg;\nfunction setup() {\n createCanvas(100, 100);\n pg = createGraphics(100, 100);\n}\nfunction draw() {\n background(200);\n pg.background(100);\n pg.noStroke();\n pg.ellipse(pg.width / 2, pg.height / 2, 50, 50);\n image(pg, 50, 50);\n image(pg, 0, 0, 50, 50);\n}\n\n
' + ], + alt: + '4 grey squares alternating light and dark grey. White quarter circle mid-left.', + class: 'p5', + module: 'Rendering', + submodule: 'Rendering' + }, + { + file: 'src/core/rendering.js', + line: 236, + description: + '

Blends the pixels in the display window according to the defined mode.\nThere is a choice of the following modes to blend the source pixels (A)\nwith the ones of pixels already in the display window (B):

\n

    \n

  • BLEND - linear interpolation of colours: C =\nA*factor + B. This is the default blending mode.
  • \n

  • ADD - sum of A and B
  • \n

  • DARKEST - only the darkest colour succeeds: C =\nmin(A*factor, B).
  • \n

  • LIGHTEST - only the lightest colour succeeds: C =\nmax(A*factor, B).
  • \n

  • DIFFERENCE - subtract colors from underlying image.
  • \n

  • EXCLUSION - similar to DIFFERENCE, but less\nextreme.
  • \n

  • MULTIPLY - multiply the colors, result will always be\ndarker.
  • \n

  • SCREEN - opposite multiply, uses inverse values of the\ncolors.
  • \n

  • REPLACE - the pixels entirely replace the others and\ndon't utilize alpha (transparency) values.
  • \n

  • OVERLAY - mix of MULTIPLY and SCREEN\n. Multiplies dark values, and screens light values. (2D)
  • \n

  • HARD_LIGHT - SCREEN when greater than 50%\ngray, MULTIPLY when lower. (2D)
  • \n

  • SOFT_LIGHT - mix of DARKEST and\nLIGHTEST. Works like OVERLAY, but not as harsh. (2D)\n
  • \n

  • DODGE - lightens light tones and increases contrast,\nignores darks. (2D)
  • \n

  • BURN - darker areas are applied, increasing contrast,\nignores lights. (2D)
  • \n

  • SUBTRACT - remainder of A and B (3D)
  • \n
\n

\n(2D) indicates that this blend mode only works in the 2D renderer.
\n(3D) indicates that this blend mode only works in the WEBGL renderer.

\n', + itemtype: 'method', + name: 'blendMode', + params: [ + { + name: 'mode', + description: + '

blend mode to set for canvas.\n either BLEND, DARKEST, LIGHTEST, DIFFERENCE, MULTIPLY,\n EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT,\n SOFT_LIGHT, DODGE, BURN, ADD, or SUBTRACT

\n', + type: 'Constant' + } + ], + example: [ + '\n
\n\nblendMode(LIGHTEST);\nstrokeWeight(30);\nstroke(80, 150, 255);\nline(25, 25, 75, 75);\nstroke(255, 50, 50);\nline(75, 25, 25, 75);\n\n
\n
\n\nblendMode(MULTIPLY);\nstrokeWeight(30);\nstroke(80, 150, 255);\nline(25, 25, 75, 75);\nstroke(255, 50, 50);\nline(75, 25, 25, 75);\n\n
' + ], + alt: + 'translucent image thick red & blue diagonal rounded lines intersecting center\nThick red & blue diagonal rounded lines intersecting center. dark at overlap', + class: 'p5', + module: 'Rendering', + submodule: 'Rendering' + }, + { + file: 'src/core/shim.js', + line: 23, + description: + '

shim for Uint8ClampedArray.slice\n(allows arrayCopy to work with pixels[])\nwith thanks to http://halfpapstudios.com/blog/tag/html5-canvas/\nEnumerable set to false to protect for...in from\nUint8ClampedArray.prototype pollution.

\n', + class: 'p5', + module: 'Rendering' + }, + { + file: 'src/core/shim.js', + line: 45, + description: + '

this is implementation of Object.assign() which is unavailable in\nIE11 and (non-Chrome) Android browsers.\nThe assign() method is used to copy the values of all enumerable\nown properties from one or more source objects to a target object.\nIt will return the target object.\nModified from https://github.com/ljharb/object.assign

\n', + class: 'p5', + module: 'Rendering' + }, + { + file: 'src/core/structure.js', + line: 12, + description: + '

Stops p5.js from continuously executing the code within draw().\nIf loop() is called, the code in draw() begins to run continuously again.\nIf using noLoop() in setup(), it should be the last line inside the block.\n

\nWhen noLoop() is used, it's not possible to manipulate or access the\nscreen inside event handling functions such as mousePressed() or\nkeyPressed(). Instead, use those functions to call redraw() or loop(),\nwhich will run draw(), which can update the screen properly. This means\nthat when noLoop() has been called, no drawing can happen, and functions\nlike saveFrame() or loadPixels() may not be used.\n

\nNote that if the sketch is resized, redraw() will be called to update\nthe sketch, even after noLoop() has been specified. Otherwise, the sketch\nwould enter an odd state until loop() was called.

\n', + itemtype: 'method', + name: 'noLoop', + example: [ + '\n
\nfunction setup() {\n createCanvas(100, 100);\n background(200);\n noLoop();\n}\n\nfunction draw() {\n line(10, 10, 90, 90);\n}\n
\n\n
\nlet x = 0;\nfunction setup() {\n createCanvas(100, 100);\n}\n\nfunction draw() {\n background(204);\n x = x + 0.1;\n if (x > width) {\n x = 0;\n }\n line(x, 0, x, height);\n}\n\nfunction mousePressed() {\n noLoop();\n}\n\nfunction mouseReleased() {\n loop();\n}\n
' + ], + alt: + '113 pixel long line extending from top-left to bottom right of canvas.\nhorizontal line moves slowly from left. Loops but stops on mouse press.', + class: 'p5', + module: 'Structure', + submodule: 'Structure' + }, + { + file: 'src/core/structure.js', + line: 74, + description: + '

By default, p5.js loops through draw() continuously, executing the code\nwithin it. However, the draw() loop may be stopped by calling noLoop().\nIn that case, the draw() loop can be resumed with loop().

\n

Avoid calling loop() from inside setup().

\n', + itemtype: 'method', + name: 'loop', + example: [ + '\n
\nlet x = 0;\nfunction setup() {\n createCanvas(100, 100);\n noLoop();\n}\n\nfunction draw() {\n background(204);\n x = x + 0.1;\n if (x > width) {\n x = 0;\n }\n line(x, 0, x, height);\n}\n\nfunction mousePressed() {\n loop();\n}\n\nfunction mouseReleased() {\n noLoop();\n}\n
' + ], + alt: + 'horizontal line moves slowly from left. Loops but stops on mouse press.', + class: 'p5', + module: 'Structure', + submodule: 'Structure' + }, + { + file: 'src/core/structure.js', + line: 122, + description: + '

The push() function saves the current drawing style settings and\ntransformations, while pop() restores these settings. Note that these\nfunctions are always used together. They allow you to change the style\nand transformation settings and later return to what you had. When a new\nstate is started with push(), it builds on the current style and transform\ninformation. The push() and pop() functions can be embedded to provide\nmore control. (See the second example for a demonstration.)\n

\npush() stores information related to the current transformation state\nand style settings controlled by the following functions: fill(),\nstroke(), tint(), strokeWeight(), strokeCap(), strokeJoin(),\nimageMode(), rectMode(), ellipseMode(), colorMode(), textAlign(),\ntextFont(), textSize(), textLeading().\n

\nIn WEBGL mode additional style settings are stored. These are controlled by the following functions: setCamera(), ambientLight(), directionalLight(),\npointLight(), texture(), specularMaterial(), shininess(), normalMaterial()\nand shader().

\n', + itemtype: 'method', + name: 'push', + example: [ + '\n
\n\nellipse(0, 50, 33, 33); // Left circle\n\npush(); // Start a new drawing state\nstrokeWeight(10);\nfill(204, 153, 0);\ntranslate(50, 0);\nellipse(0, 50, 33, 33); // Middle circle\npop(); // Restore original state\n\nellipse(100, 50, 33, 33); // Right circle\n\n
\n
\n\nellipse(0, 50, 33, 33); // Left circle\n\npush(); // Start a new drawing state\nstrokeWeight(10);\nfill(204, 153, 0);\nellipse(33, 50, 33, 33); // Left-middle circle\n\npush(); // Start another new drawing state\nstroke(0, 102, 153);\nellipse(66, 50, 33, 33); // Right-middle circle\npop(); // Restore previous state\n\npop(); // Restore original state\n\nellipse(100, 50, 33, 33); // Right circle\n\n
' + ], + alt: + 'Gold ellipse + thick black outline @center 2 white ellipses on left and right.\n2 Gold ellipses left black right blue stroke. 2 white ellipses on left+right.', + class: 'p5', + module: 'Structure', + submodule: 'Structure' + }, + { + file: 'src/core/structure.js', + line: 191, + description: + '

The push() function saves the current drawing style settings and\ntransformations, while pop() restores these settings. Note that these\nfunctions are always used together. They allow you to change the style\nand transformation settings and later return to what you had. When a new\nstate is started with push(), it builds on the current style and transform\ninformation. The push() and pop() functions can be embedded to provide\nmore control. (See the second example for a demonstration.)\n

\npush() stores information related to the current transformation state\nand style settings controlled by the following functions: fill(),\nstroke(), tint(), strokeWeight(), strokeCap(), strokeJoin(),\nimageMode(), rectMode(), ellipseMode(), colorMode(), textAlign(),\ntextFont(), textSize(), textLeading().\n

\nIn WEBGL mode additional style settings are stored. These are controlled by the following functions: setCamera(), ambientLight(), directionalLight(),\npointLight(), texture(), specularMaterial(), shininess(), normalMaterial()\nand shader().

\n', + itemtype: 'method', + name: 'pop', + example: [ + '\n
\n\nellipse(0, 50, 33, 33); // Left circle\n\npush(); // Start a new drawing state\ntranslate(50, 0);\nstrokeWeight(10);\nfill(204, 153, 0);\nellipse(0, 50, 33, 33); // Middle circle\npop(); // Restore original state\n\nellipse(100, 50, 33, 33); // Right circle\n\n
\n
\n\nellipse(0, 50, 33, 33); // Left circle\n\npush(); // Start a new drawing state\nstrokeWeight(10);\nfill(204, 153, 0);\nellipse(33, 50, 33, 33); // Left-middle circle\n\npush(); // Start another new drawing state\nstroke(0, 102, 153);\nellipse(66, 50, 33, 33); // Right-middle circle\npop(); // Restore previous state\n\npop(); // Restore original state\n\nellipse(100, 50, 33, 33); // Right circle\n\n
' + ], + alt: + 'Gold ellipse + thick black outline @center 2 white ellipses on left and right.\n2 Gold ellipses left black right blue stroke. 2 white ellipses on left+right.', + class: 'p5', + module: 'Structure', + submodule: 'Structure' + }, + { + file: 'src/core/structure.js', + line: 261, + description: + '

Executes the code within draw() one time. This functions allows the\n program to update the display window only when necessary, for example\n when an event registered by mousePressed() or keyPressed() occurs.\n

\n In structuring a program, it only makes sense to call redraw() within\n events such as mousePressed(). This is because redraw() does not run\n draw() immediately (it only sets a flag that indicates an update is\n needed).\n

\n The redraw() function does not work properly when called inside draw().\n To enable/disable animations, use loop() and noLoop().\n

\n In addition you can set the number of redraws per method call. Just\n add an integer as single parameter for the number of redraws.

\n', + itemtype: 'method', + name: 'redraw', + params: [ + { + name: 'n', + description: '

Redraw for n-times. The default value is 1.

\n', + type: 'Integer', + optional: true + } + ], + example: [ + "\n
\n let x = 0;\nfunction setup() {\n createCanvas(100, 100);\n noLoop();\n }\nfunction draw() {\n background(204);\n line(x, 0, x, height);\n }\nfunction mousePressed() {\n x += 1;\n redraw();\n }\n
\n
\n let x = 0;\nfunction setup() {\n createCanvas(100, 100);\n noLoop();\n }\nfunction draw() {\n background(204);\n x += 1;\n line(x, 0, x, height);\n }\nfunction mousePressed() {\n redraw(5);\n }\n
" + ], + alt: 'black line on far left of canvas\n black line on far left of canvas', + class: 'p5', + module: 'Structure', + submodule: 'Structure' + }, + { + file: 'src/core/transform.js', + line: 13, + description: + '

Multiplies the current matrix by the one specified through the parameters.\nThis is a powerful operation that can perform the equivalent of translate,\nscale, shear and rotate all at once. You can learn more about transformation\nmatrices on \nWikipedia.

\n

The naming of the arguments here follows the naming of the \nWHATWG specification and corresponds to a\ntransformation matrix of the\nform:

\n
\n

\n
\n', + itemtype: 'method', + name: 'applyMatrix', + params: [ + { + name: 'a', + description: + '

numbers which define the 2x3 matrix to be multiplied

\n', + type: 'Number' + }, + { + name: 'b', + description: + '

numbers which define the 2x3 matrix to be multiplied

\n', + type: 'Number' + }, + { + name: 'c', + description: + '

numbers which define the 2x3 matrix to be multiplied

\n', + type: 'Number' + }, + { + name: 'd', + description: + '

numbers which define the 2x3 matrix to be multiplied

\n', + type: 'Number' + }, + { + name: 'e', + description: + '

numbers which define the 2x3 matrix to be multiplied

\n', + type: 'Number' + }, + { + name: 'f', + description: + '

numbers which define the 2x3 matrix to be multiplied

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + "\n
\n\nfunction setup() {\n frameRate(10);\n rectMode(CENTER);\n}\n\nfunction draw() {\n var step = frameCount % 20;\n background(200);\n // Equivalent to translate(x, y);\n applyMatrix(1, 0, 0, 1, 40 + step, 50);\n rect(0, 0, 50, 50);\n}\n\n
\n
\n\nfunction setup() {\n frameRate(10);\n rectMode(CENTER);\n}\n\nfunction draw() {\n var step = frameCount % 20;\n background(200);\n translate(50, 50);\n // Equivalent to scale(x, y);\n applyMatrix(1 / step, 0, 0, 1 / step, 0, 0);\n rect(0, 0, 50, 50);\n}\n\n
\n
\n\nfunction setup() {\n frameRate(10);\n rectMode(CENTER);\n}\n\nfunction draw() {\n var step = frameCount % 20;\n var angle = map(step, 0, 20, 0, TWO_PI);\n var cos_a = cos(angle);\n var sin_a = sin(angle);\n background(200);\n translate(50, 50);\n // Equivalent to rotate(angle);\n applyMatrix(cos_a, sin_a, -sin_a, cos_a, 0, 0);\n rect(0, 0, 50, 50);\n}\n\n
\n
\n\nfunction setup() {\n frameRate(10);\n rectMode(CENTER);\n}\n\nfunction draw() {\n var step = frameCount % 20;\n var angle = map(step, 0, 20, -PI / 4, PI / 4);\n background(200);\n translate(50, 50);\n // equivalent to shearX(angle);\n var shear_factor = 1 / tan(PI / 2 - angle);\n applyMatrix(1, 0, shear_factor, 1, 0, 0);\n rect(0, 0, 50, 50);\n}\n\n
\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n noFill();\n}\n\nfunction draw() {\n background(200);\n rotateY(PI / 6);\n stroke(153);\n box(35);\n var rad = millis() / 1000;\n // Set rotation angles\n var ct = cos(rad);\n var st = sin(rad);\n // Matrix for rotation around the Y axis\n applyMatrix( ct, 0.0, st, 0.0,\n 0.0, 1.0, 0.0, 0.0,\n -st, 0.0, ct, 0.0,\n 0.0, 0.0, 0.0, 1.0);\n stroke(255);\n box(50);\n}\n\n
" + ], + alt: + 'A rectangle translating to the right\nA rectangle shrinking to the center\nA rectangle rotating clockwise about the center\nA rectangle shearing', + class: 'p5', + module: 'Transform', + submodule: 'Transform' + }, + { + file: 'src/core/transform.js', + line: 150, + description: + '

Replaces the current matrix with the identity matrix.

\n', + itemtype: 'method', + name: 'resetMatrix', + chainable: 1, + example: [ + '\n
\n\ntranslate(50, 50);\napplyMatrix(0.5, 0.5, -0.5, 0.5, 0, 0);\nrect(0, 0, 20, 20);\n// Note that the translate is also reset.\nresetMatrix();\nrect(0, 0, 20, 20);\n\n
' + ], + alt: 'A rotated retangle in the center with another at the top left corner', + class: 'p5', + module: 'Transform', + submodule: 'Transform' + }, + { + file: 'src/core/transform.js', + line: 176, + description: + '

Rotates a shape the amount specified by the angle parameter. This\nfunction accounts for angleMode, so angles can be entered in either\nRADIANS or DEGREES.\n

\nObjects are always rotated around their relative position to the\norigin and positive numbers rotate objects in a clockwise direction.\nTransformations apply to everything that happens after and subsequent\ncalls to the function accumulates the effect. For example, calling\nrotate(HALF_PI) and then rotate(HALF_PI) is the same as rotate(PI).\nAll tranformations are reset when draw() begins again.\n

\nTechnically, rotate() multiplies the current transformation matrix\nby a rotation matrix. This function can be further controlled by\nthe push() and pop().

\n', + itemtype: 'method', + name: 'rotate', + params: [ + { + name: 'angle', + description: + '

the angle of rotation, specified in radians\n or degrees, depending on current angleMode

\n', + type: 'Number' + }, + { + name: 'axis', + description: '

(in 3d) the axis to rotate around

\n', + type: 'p5.Vector|Number[]', + optional: true + } + ], + chainable: 1, + example: [ + '\n
\n\ntranslate(width / 2, height / 2);\nrotate(PI / 3.0);\nrect(-26, -26, 52, 52);\n\n
' + ], + alt: + 'white 52x52 rect with black outline at center rotated counter 45 degrees', + class: 'p5', + module: 'Transform', + submodule: 'Transform' + }, + { + file: 'src/core/transform.js', + line: 216, + description: '

Rotates around X axis.

\n', + itemtype: 'method', + name: 'rotateX', + params: [ + { + name: 'angle', + description: + '

the angle of rotation, specified in radians\n or degrees, depending on current angleMode

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(255);\n rotateX(millis() / 1000);\n box();\n}\n\n
" + ], + alt: '3d box rotating around the x axis.', + class: 'p5', + module: 'Transform', + submodule: 'Transform' + }, + { + file: 'src/core/transform.js', + line: 246, + description: '

Rotates around Y axis.

\n', + itemtype: 'method', + name: 'rotateY', + params: [ + { + name: 'angle', + description: + '

the angle of rotation, specified in radians\n or degrees, depending on current angleMode

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(255);\n rotateY(millis() / 1000);\n box();\n}\n\n
" + ], + alt: '3d box rotating around the y axis.', + class: 'p5', + module: 'Transform', + submodule: 'Transform' + }, + { + file: 'src/core/transform.js', + line: 276, + description: '

Rotates around Z axis. Webgl mode only.

\n', + itemtype: 'method', + name: 'rotateZ', + params: [ + { + name: 'angle', + description: + '

the angle of rotation, specified in radians\n or degrees, depending on current angleMode

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(255);\n rotateZ(millis() / 1000);\n box();\n}\n\n
" + ], + alt: '3d box rotating around the z axis.', + class: 'p5', + module: 'Transform', + submodule: 'Transform' + }, + { + file: 'src/core/transform.js', + line: 306, + description: + '

Increases or decreases the size of a shape by expanding and contracting\nvertices. Objects always scale from their relative origin to the\ncoordinate system. Scale values are specified as decimal percentages.\nFor example, the function call scale(2.0) increases the dimension of a\nshape by 200%.\n

\nTransformations apply to everything that happens after and subsequent\ncalls to the function multiply the effect. For example, calling scale(2.0)\nand then scale(1.5) is the same as scale(3.0). If scale() is called\nwithin draw(), the transformation is reset when the loop begins again.\n

\nUsing this function with the z parameter is only available in WEBGL mode.\nThis function can be further controlled with push() and pop().

\n', + itemtype: 'method', + name: 'scale', + chainable: 1, + example: [ + '\n
\n\nrect(30, 20, 50, 50);\nscale(0.5);\nrect(30, 20, 50, 50);\n\n
\n\n
\n\nrect(30, 20, 50, 50);\nscale(0.5, 1.3);\nrect(30, 20, 50, 50);\n\n
' + ], + alt: + 'white 52x52 rect with black outline at center rotated counter 45 degrees\n2 white rects with black outline- 1 50x50 at center. other 25x65 bottom left', + class: 'p5', + module: 'Transform', + submodule: 'Transform', + overloads: [ + { + line: 306, + params: [ + { + name: 's', + description: + '

percent to scale the object, or percentage to\n scale the object in the x-axis if multiple arguments\n are given

\n', + type: 'Number|p5.Vector|Number[]' + }, + { + name: 'y', + description: '

percent to scale the object in the y-axis

\n', + type: 'Number', + optional: true + }, + { + name: 'z', + description: + '

percent to scale the object in the z-axis (webgl only)

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 351, + params: [ + { + name: 'scales', + description: '

per-axis percents to scale the object

\n', + type: 'p5.Vector|Number[]' + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/core/transform.js', + line: 381, + description: + '

Shears a shape around the x-axis the amount specified by the angle\nparameter. Angles should be specified in the current angleMode.\nObjects are always sheared around their relative position to the origin\nand positive numbers shear objects in a clockwise direction.\n

\nTransformations apply to everything that happens after and subsequent\ncalls to the function accumulates the effect. For example, calling\nshearX(PI/2) and then shearX(PI/2) is the same as shearX(PI).\nIf shearX() is called within the draw(), the transformation is reset when\nthe loop begins again.\n

\nTechnically, shearX() multiplies the current transformation matrix by a\nrotation matrix. This function can be further controlled by the\npush() and pop() functions.

\n', + itemtype: 'method', + name: 'shearX', + params: [ + { + name: 'angle', + description: + '

angle of shear specified in radians or degrees,\n depending on current angleMode

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + '\n
\n\ntranslate(width / 4, height / 4);\nshearX(PI / 4.0);\nrect(0, 0, 30, 30);\n\n
' + ], + alt: 'white irregular quadrilateral with black outline at top middle.', + class: 'p5', + module: 'Transform', + submodule: 'Transform' + }, + { + file: 'src/core/transform.js', + line: 421, + description: + '

Shears a shape around the y-axis the amount specified by the angle\nparameter. Angles should be specified in the current angleMode. Objects\nare always sheared around their relative position to the origin and\npositive numbers shear objects in a clockwise direction.\n

\nTransformations apply to everything that happens after and subsequent\ncalls to the function accumulates the effect. For example, calling\nshearY(PI/2) and then shearY(PI/2) is the same as shearY(PI). If\nshearY() is called within the draw(), the transformation is reset when\nthe loop begins again.\n

\nTechnically, shearY() multiplies the current transformation matrix by a\nrotation matrix. This function can be further controlled by the\npush() and pop() functions.

\n', + itemtype: 'method', + name: 'shearY', + params: [ + { + name: 'angle', + description: + '

angle of shear specified in radians or degrees,\n depending on current angleMode

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + '\n
\n\ntranslate(width / 4, height / 4);\nshearY(PI / 4.0);\nrect(0, 0, 30, 30);\n\n
' + ], + alt: 'white irregular quadrilateral with black outline at middle bottom.', + class: 'p5', + module: 'Transform', + submodule: 'Transform' + }, + { + file: 'src/core/transform.js', + line: 461, + description: + '

Specifies an amount to displace objects within the display window.\nThe x parameter specifies left/right translation, the y parameter\nspecifies up/down translation.\n

\nTransformations are cumulative and apply to everything that happens after\nand subsequent calls to the function accumulates the effect. For example,\ncalling translate(50, 0) and then translate(20, 0) is the same as\ntranslate(70, 0). If translate() is called within draw(), the\ntransformation is reset when the loop begins again. This function can be\nfurther controlled by using push() and pop().

\n', + itemtype: 'method', + name: 'translate', + chainable: 1, + example: [ + '\n
\n\ntranslate(30, 20);\nrect(0, 0, 55, 55);\n\n
\n\n
\n\nrect(0, 0, 55, 55); // Draw rect at original 0,0\ntranslate(30, 20);\nrect(0, 0, 55, 55); // Draw rect at new 0,0\ntranslate(14, 14);\nrect(0, 0, 55, 55); // Draw rect at new 0,0\n\n
\n\n\n
\n\nfunction draw() {\n background(200);\n rectMode(CENTER);\n translate(width / 2, height / 2);\n translate(p5.Vector.fromAngle(millis() / 1000, 40));\n rect(0, 0, 20, 20);\n}\n\n
' + ], + alt: + 'white 55x55 rect with black outline at center right.\n3 white 55x55 rects with black outlines at top-l, center-r and bottom-r.\na 20x20 white rect moving in a circle around the canvas', + class: 'p5', + module: 'Transform', + submodule: 'Transform', + overloads: [ + { + line: 461, + params: [ + { + name: 'x', + description: '

left/right translation

\n', + type: 'Number' + }, + { + name: 'y', + description: '

up/down translation

\n', + type: 'Number' + }, + { + name: 'z', + description: '

forward/backward translation (webgl only)

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 515, + params: [ + { + name: 'vector', + description: '

the vector to translate by

\n', + type: 'p5.Vector' + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/data/local_storage.js', + line: 11, + description: + '

Stores a value in local storage under the key name.\n Local storage is saved in the browser and persists\n between browsing sessions and page reloads.\n The key can be the name of the variable but doesn't\n have to be. To retrieve stored items\n see getItem.\n

\n Sensitive data such as passwords or personal information\n should not be stored in local storage.

\n', + itemtype: 'method', + name: 'storeItem', + params: [ + { + name: 'key', + description: '', + type: 'String' + }, + { + name: 'value', + description: '', + type: 'String|Number|Object|Boolean|p5.Color' + } + ], + example: [ + "\n
\n // Type to change the letter in the\n // center of the canvas.\n // If you reload the page, it will\n // still display the last key you entered\nlet myText;\nfunction setup() {\n createCanvas(100, 100);\n myText = getItem('myText');\n if (myText === null) {\n myText = '';\n }\n }\nfunction draw() {\n textSize(40);\n background(255);\n text(myText, width / 2, height / 2);\n }\nfunction keyPressed() {\n myText = key;\n storeItem('myText', myText);\n }\n
" + ], + alt: + 'When you type the key name is displayed as black text on white background.\n If you reload the page, the last letter typed is still displaying.', + class: 'p5', + module: 'Data', + submodule: 'LocalStorage' + }, + { + file: 'src/data/local_storage.js', + line: 88, + description: + '

Returns the value of an item that was stored in local storage\n using storeItem()

\n', + itemtype: 'method', + name: 'getItem', + params: [ + { + name: 'key', + description: + '

name that you wish to use to store in local storage

\n', + type: 'String' + } + ], + return: { + description: 'Value of stored item', + type: 'Number|Object|String|Boolean|p5.Color' + }, + example: [ + "\n
\n // Click the mouse to change\n // the color of the background\n // Once you have changed the color\n // it will stay changed even when you\n // reload the page.\nlet myColor;\nfunction setup() {\n createCanvas(100, 100);\n myColor = getItem('myColor');\n }\nfunction draw() {\n if (myColor !== null) {\n background(myColor);\n }\n }\nfunction mousePressed() {\n myColor = color(random(255), random(255), random(255));\n storeItem('myColor', myColor);\n }\n
" + ], + alt: + 'If you click, the canvas changes to a random color.\n If you reload the page, the canvas is still the color it\n was when the page was previously loaded.', + class: 'p5', + module: 'Data', + submodule: 'LocalStorage' + }, + { + file: 'src/data/local_storage.js', + line: 163, + description: + '

Clears all local storage items set with storeItem()\n for the current domain.

\n', + itemtype: 'method', + name: 'clearStorage', + example: [ + "\n
\n \n function setup() {\n let myNum = 10;\n let myBool = false;\n storeItem('myNum', myNum);\n storeItem('myBool', myBool);\n print(getItem('myNum')); // logs 10 to the console\n print(getItem('myBool')); // logs false to the console\n clearStorage();\n print(getItem('myNum')); // logs null to the console\n print(getItem('myBool')); // logs null to the console\n }\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'LocalStorage' + }, + { + file: 'src/data/local_storage.js', + line: 191, + description: '

Removes an item that was stored with storeItem()

\n', + itemtype: 'method', + name: 'removeItem', + params: [ + { + name: 'key', + description: '', + type: 'String' + } + ], + example: [ + "\n
\n \n function setup() {\n let myVar = 10;\n storeItem('myVar', myVar);\n print(getItem('myVar')); // logs 10 to the console\n removeItem('myVar');\n print(getItem('myVar')); // logs null to the console\n }\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'LocalStorage' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 16, + description: + '

Creates a new instance of p5.StringDict using the key-value pair\n or the object you provide.

\n', + itemtype: 'method', + name: 'createStringDict', + return: { + description: '', + type: 'p5.StringDict' + }, + example: [ + "\n
\n \n function setup() {\n let myDictionary = createStringDict('p5', 'js');\n print(myDictionary.hasKey('p5')); // logs true to console\n let anotherDictionary = createStringDict({ happy: 'coding' });\n print(anotherDictionary.hasKey('happy')); // logs true to console\n }\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'Dictionary', + overloads: [ + { + line: 16, + params: [ + { + name: 'key', + description: '', + type: 'String' + }, + { + name: 'value', + description: '', + type: 'String' + } + ], + return: { + description: '', + type: 'p5.StringDict' + } + }, + { + line: 39, + params: [ + { + name: 'object', + description: '

object

\n', + type: 'Object' + } + ], + return: { + description: '', + type: 'p5.StringDict' + } + } + ] + }, + { + file: 'src/data/p5.TypedDict.js', + line: 50, + description: + '

Creates a new instance of p5.NumberDict using the key-value pair\n or object you provide.

\n', + itemtype: 'method', + name: 'createNumberDict', + return: { + description: '', + type: 'p5.NumberDict' + }, + example: [ + '\n
\n \n function setup() {\n let myDictionary = createNumberDict(100, 42);\n print(myDictionary.hasKey(100)); // logs true to console\n let anotherDictionary = createNumberDict({ 200: 84 });\n print(anotherDictionary.hasKey(200)); // logs true to console\n }\n
' + ], + class: 'p5', + module: 'Data', + submodule: 'Dictionary', + overloads: [ + { + line: 50, + params: [ + { + name: 'key', + description: '', + type: 'Number' + }, + { + name: 'value', + description: '', + type: 'Number' + } + ], + return: { + description: '', + type: 'p5.NumberDict' + } + }, + { + line: 73, + params: [ + { + name: 'object', + description: '

object

\n', + type: 'Object' + } + ], + return: { + description: '', + type: 'p5.NumberDict' + } + } + ] + }, + { + file: 'src/data/p5.TypedDict.js', + line: 103, + description: + '

Returns the number of key-value pairs currently stored in the Dictionary.

\n', + itemtype: 'method', + name: 'size', + return: { + description: 'the number of key-value pairs in the Dictionary', + type: 'Integer' + }, + example: [ + '\n
\n\nfunction setup() {\n let myDictionary = createNumberDict(1, 10);\n myDictionary.create(2, 20);\n myDictionary.create(3, 30);\n print(myDictionary.size()); // logs 3 to the console\n}\n
\n' + ], + class: 'p5.TypedDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 125, + description: + '

Returns true if the given key exists in the Dictionary,\notherwise returns false.

\n', + itemtype: 'method', + name: 'hasKey', + params: [ + { + name: 'key', + description: '

that you want to look up

\n', + type: 'Number|String' + } + ], + return: { + description: 'whether that key exists in Dictionary', + type: 'Boolean' + }, + example: [ + "\n
\n\nfunction setup() {\n let myDictionary = createStringDict('p5', 'js');\n print(myDictionary.hasKey('p5')); // logs true to console\n}\n
\n" + ], + class: 'p5.TypedDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 148, + description: '

Returns the value stored at the given key.

\n', + itemtype: 'method', + name: 'get', + params: [ + { + name: 'the', + description: '

key you want to access

\n', + type: 'Number|String' + } + ], + return: { + description: 'the value stored at that key', + type: 'Number|String' + }, + example: [ + "\n
\n\nfunction setup() {\n let myDictionary = createStringDict('p5', 'js');\n let myValue = myDictionary.get('p5');\n print(myValue === 'js'); // logs true to console\n}\n
\n" + ], + class: 'p5.TypedDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 175, + description: + '

Updates the value associated with the given key in case it already exists\nin the Dictionary. Otherwise a new key-value pair is added.

\n', + itemtype: 'method', + name: 'set', + params: [ + { + name: 'key', + description: '', + type: 'Number|String' + }, + { + name: 'value', + description: '', + type: 'Number|String' + } + ], + example: [ + "\n
\n\nfunction setup() {\n let myDictionary = createStringDict('p5', 'js');\n myDictionary.set('p5', 'JS');\n myDictionary.print(); // logs \"key: p5 - value: JS\" to console\n}\n
\n" + ], + class: 'p5.TypedDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 203, + description: + '

private helper function to handle the user passing in objects\nduring construction or calls to create()

\n', + class: 'p5.TypedDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 214, + description: '

Creates a new key-value pair in the Dictionary.

\n', + itemtype: 'method', + name: 'create', + example: [ + "\n
\n\nfunction setup() {\n let myDictionary = createStringDict('p5', 'js');\n myDictionary.create('happy', 'coding');\n myDictionary.print();\n // above logs \"key: p5 - value: js, key: happy - value: coding\" to console\n}\n
" + ], + class: 'p5.TypedDict', + module: 'Data', + submodule: 'Dictionary', + overloads: [ + { + line: 214, + params: [ + { + name: 'key', + description: '', + type: 'Number|String' + }, + { + name: 'value', + description: '', + type: 'Number|String' + } + ] + }, + { + line: 232, + params: [ + { + name: 'obj', + description: '

key/value pair

\n', + type: 'Object' + } + ] + } + ] + }, + { + file: 'src/data/p5.TypedDict.js', + line: 250, + description: + '

Removes all previously stored key-value pairs from the Dictionary.

\n', + itemtype: 'method', + name: 'clear', + example: [ + "\n
\n\nfunction setup() {\n let myDictionary = createStringDict('p5', 'js');\n print(myDictionary.hasKey('p5')); // prints 'true'\n myDictionary.clear();\n print(myDictionary.hasKey('p5')); // prints 'false'\n}\n\n
" + ], + class: 'p5.TypedDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 271, + description: + '

Removes the key-value pair stored at the given key from the Dictionary.

\n', + itemtype: 'method', + name: 'remove', + params: [ + { + name: 'key', + description: '

for the pair to remove

\n', + type: 'Number|String' + } + ], + example: [ + "\n
\n\nfunction setup() {\n let myDictionary = createStringDict('p5', 'js');\n myDictionary.create('happy', 'coding');\n myDictionary.print();\n // above logs \"key: p5 - value: js, key: happy - value: coding\" to console\n myDictionary.remove('p5');\n myDictionary.print();\n // above logs \"key: happy value: coding\" to console\n}\n
\n" + ], + class: 'p5.TypedDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 301, + description: + '

Logs the set of items currently stored in the Dictionary to the console.

\n', + itemtype: 'method', + name: 'print', + example: [ + "\n
\n\nfunction setup() {\n let myDictionary = createStringDict('p5', 'js');\n myDictionary.create('happy', 'coding');\n myDictionary.print();\n // above logs \"key: p5 - value: js, key: happy - value: coding\" to console\n}\n\n
" + ], + class: 'p5.TypedDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 325, + description: + '

Converts the Dictionary into a CSV file for local download.

\n', + itemtype: 'method', + name: 'saveTable', + example: [ + "\n
\n\nfunction setup() {\n createCanvas(100, 100);\n background(200);\n text('click here to save', 10, 10, 70, 80);\n}\n\nfunction mousePressed() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n createStringDict({\n john: 1940,\n paul: 1942,\n george: 1943,\n ringo: 1940\n }).saveTable('beatles');\n }\n}\n\n
" + ], + class: 'p5.TypedDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 363, + description: + '

Converts the Dictionary into a JSON file for local download.

\n', + itemtype: 'method', + name: 'saveJSON', + example: [ + "\n
\n\nfunction setup() {\n createCanvas(100, 100);\n background(200);\n text('click here to save', 10, 10, 70, 80);\n}\n\nfunction mousePressed() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n createStringDict({\n john: 1940,\n paul: 1942,\n george: 1943,\n ringo: 1940\n }).saveJSON('beatles');\n }\n}\n\n
" + ], + class: 'p5.TypedDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 394, + description: + '

private helper function to ensure that the user passed in valid\nvalues for the Dictionary type

\n', + class: 'p5.TypedDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 437, + description: + '

private helper function to ensure that the user passed in valid\nvalues for the Dictionary type

\n', + class: 'p5.NumberDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 446, + description: + '

Add the given number to the value currently stored at the given key.\nThe sum then replaces the value previously stored in the Dictionary.

\n', + itemtype: 'method', + name: 'add', + params: [ + { + name: 'Key', + description: '

for the value you wish to add to

\n', + type: 'Number' + }, + { + name: 'Number', + description: '

to add to the value

\n', + type: 'Number' + } + ], + example: [ + "\n
\n\nfunction setup() {\n let myDictionary = createNumberDict(2, 5);\n myDictionary.add(2, 2);\n print(myDictionary.get(2)); // logs 7 to console.\n}\n
\n\n" + ], + class: 'p5.NumberDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 474, + description: + '

Subtract the given number from the value currently stored at the given key.\nThe difference then replaces the value previously stored in the Dictionary.

\n', + itemtype: 'method', + name: 'sub', + params: [ + { + name: 'Key', + description: '

for the value you wish to subtract from

\n', + type: 'Number' + }, + { + name: 'Number', + description: '

to subtract from the value

\n', + type: 'Number' + } + ], + example: [ + "\n
\n\nfunction setup() {\n let myDictionary = createNumberDict(2, 5);\n myDictionary.sub(2, 2);\n print(myDictionary.get(2)); // logs 3 to console.\n}\n
\n\n" + ], + class: 'p5.NumberDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 498, + description: + '

Multiply the given number with the value currently stored at the given key.\nThe product then replaces the value previously stored in the Dictionary.

\n', + itemtype: 'method', + name: 'mult', + params: [ + { + name: 'Key', + description: '

for value you wish to multiply

\n', + type: 'Number' + }, + { + name: 'Amount', + description: '

to multiply the value by

\n', + type: 'Number' + } + ], + example: [ + "\n
\n\nfunction setup() {\n let myDictionary = createNumberDict(2, 4);\n myDictionary.mult(2, 2);\n print(myDictionary.get(2)); // logs 8 to console.\n}\n
\n\n" + ], + class: 'p5.NumberDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 526, + description: + '

Divide the given number with the value currently stored at the given key.\nThe quotient then replaces the value previously stored in the Dictionary.

\n', + itemtype: 'method', + name: 'div', + params: [ + { + name: 'Key', + description: '

for value you wish to divide

\n', + type: 'Number' + }, + { + name: 'Amount', + description: '

to divide the value by

\n', + type: 'Number' + } + ], + example: [ + "\n
\n\nfunction setup() {\n let myDictionary = createNumberDict(2, 8);\n myDictionary.div(2, 2);\n print(myDictionary.get(2)); // logs 4 to console.\n}\n
\n\n" + ], + class: 'p5.NumberDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 554, + description: + '

private helper function for finding lowest or highest value\nthe argument 'flip' is used to flip the comparison arrow\nfrom 'less than' to 'greater than'

\n', + class: 'p5.NumberDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 579, + description: + '

Return the lowest number currently stored in the Dictionary.

\n', + itemtype: 'method', + name: 'minValue', + return: { + description: '', + type: 'Number' + }, + example: [ + "\n
\n\nfunction setup() {\n let myDictionary = createNumberDict({ 2: -10, 4: 0.65, 1.2: 3 });\n let lowestValue = myDictionary.minValue(); // value is -10\n print(lowestValue);\n}\n
\n" + ], + class: 'p5.NumberDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 600, + description: + '

Return the highest number currently stored in the Dictionary.

\n', + itemtype: 'method', + name: 'maxValue', + return: { + description: '', + type: 'Number' + }, + example: [ + "\n
\n\nfunction setup() {\n let myDictionary = createNumberDict({ 2: -10, 4: 0.65, 1.2: 3 });\n let highestValue = myDictionary.maxValue(); // value is 3\n print(highestValue);\n}\n
\n" + ], + class: 'p5.NumberDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 621, + description: + '

private helper function for finding lowest or highest key\nthe argument 'flip' is used to flip the comparison arrow\nfrom 'less than' to 'greater than'

\n', + class: 'p5.NumberDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 644, + description: + '

Return the lowest key currently used in the Dictionary.

\n', + itemtype: 'method', + name: 'minKey', + return: { + description: '', + type: 'Number' + }, + example: [ + "\n
\n\nfunction setup() {\n let myDictionary = createNumberDict({ 2: 4, 4: 6, 1.2: 3 });\n let lowestKey = myDictionary.minKey(); // value is 1.2\n print(lowestKey);\n}\n
\n" + ], + class: 'p5.NumberDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/data/p5.TypedDict.js', + line: 665, + description: + '

Return the highest key currently used in the Dictionary.

\n', + itemtype: 'method', + name: 'maxKey', + return: { + description: '', + type: 'Number' + }, + example: [ + "\n
\n\nfunction setup() {\n let myDictionary = createNumberDict({ 2: 4, 4: 6, 1.2: 3 });\n let highestKey = myDictionary.maxKey(); // value is 4\n print(highestKey);\n}\n
\n" + ], + class: 'p5.NumberDict', + module: 'Data', + submodule: 'Dictionary' + }, + { + file: 'src/events/acceleration.js', + line: 12, + description: + '

The system variable deviceOrientation always contains the orientation of\nthe device. The value of this variable will either be set 'landscape'\nor 'portrait'. If no data is available it will be set to 'undefined'.\neither LANDSCAPE or PORTRAIT.

\n', + itemtype: 'property', + name: 'deviceOrientation', + type: 'Constant', + readonly: '', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 23, + description: + '

The system variable accelerationX always contains the acceleration of the\ndevice along the x axis. Value is represented as meters per second squared.

\n', + itemtype: 'property', + name: 'accelerationX', + type: 'Number', + readonly: '', + example: [ + "\n
\n\n// Move a touchscreen device to register\n// acceleration changes.\nfunction draw() {\n background(220, 50);\n fill('magenta');\n ellipse(width / 2, height / 2, accelerationX);\n}\n\n
" + ], + alt: 'Magnitude of device acceleration is displayed as ellipse size', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 46, + description: + '

The system variable accelerationY always contains the acceleration of the\ndevice along the y axis. Value is represented as meters per second squared.

\n', + itemtype: 'property', + name: 'accelerationY', + type: 'Number', + readonly: '', + example: [ + "\n
\n\n// Move a touchscreen device to register\n// acceleration changes.\nfunction draw() {\n background(220, 50);\n fill('magenta');\n ellipse(width / 2, height / 2, accelerationY);\n}\n\n
" + ], + alt: 'Magnitude of device acceleration is displayed as ellipse size', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 69, + description: + '

The system variable accelerationZ always contains the acceleration of the\ndevice along the z axis. Value is represented as meters per second squared.

\n', + itemtype: 'property', + name: 'accelerationZ', + type: 'Number', + readonly: '', + example: [ + "\n
\n\n// Move a touchscreen device to register\n// acceleration changes.\nfunction draw() {\n background(220, 50);\n fill('magenta');\n ellipse(width / 2, height / 2, accelerationZ);\n}\n\n
" + ], + alt: 'Magnitude of device acceleration is displayed as ellipse size', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 94, + description: + '

The system variable pAccelerationX always contains the acceleration of the\ndevice along the x axis in the frame previous to the current frame. Value\nis represented as meters per second squared.

\n', + itemtype: 'property', + name: 'pAccelerationX', + type: 'Number', + readonly: '', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 104, + description: + '

The system variable pAccelerationY always contains the acceleration of the\ndevice along the y axis in the frame previous to the current frame. Value\nis represented as meters per second squared.

\n', + itemtype: 'property', + name: 'pAccelerationY', + type: 'Number', + readonly: '', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 114, + description: + '

The system variable pAccelerationZ always contains the acceleration of the\ndevice along the z axis in the frame previous to the current frame. Value\nis represented as meters per second squared.

\n', + itemtype: 'property', + name: 'pAccelerationZ', + type: 'Number', + readonly: '', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 135, + description: + '

The system variable rotationX always contains the rotation of the\ndevice along the x axis. Value is represented as 0 to +/-180 degrees.\n

\nNote: The order the rotations are called is important, ie. if used\ntogether, it must be called in the order Z-X-Y or there might be\nunexpected behaviour.

\n', + itemtype: 'property', + name: 'rotationX', + type: 'Number', + readonly: '', + example: [ + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n //rotateZ(radians(rotationZ));\n rotateX(radians(rotationX));\n //rotateY(radians(rotationY));\n box(200, 200, 200);\n}\n\n
' + ], + alt: + 'red horizontal line right, green vertical line bottom. black background.', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 166, + description: + '

The system variable rotationY always contains the rotation of the\ndevice along the y axis. Value is represented as 0 to +/-90 degrees.\n

\nNote: The order the rotations are called is important, ie. if used\ntogether, it must be called in the order Z-X-Y or there might be\nunexpected behaviour.

\n', + itemtype: 'property', + name: 'rotationY', + type: 'Number', + readonly: '', + example: [ + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n //rotateZ(radians(rotationZ));\n //rotateX(radians(rotationX));\n rotateY(radians(rotationY));\n box(200, 200, 200);\n}\n\n
' + ], + alt: + 'red horizontal line right, green vertical line bottom. black background.', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 197, + description: + '

The system variable rotationZ always contains the rotation of the\ndevice along the z axis. Value is represented as 0 to 359 degrees.\n

\nUnlike rotationX and rotationY, this variable is available for devices\nwith a built-in compass only.\n

\nNote: The order the rotations are called is important, ie. if used\ntogether, it must be called in the order Z-X-Y or there might be\nunexpected behaviour.

\n', + example: [ + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n rotateZ(radians(rotationZ));\n //rotateX(radians(rotationX));\n //rotateY(radians(rotationY));\n box(200, 200, 200);\n}\n\n
' + ], + itemtype: 'property', + name: 'rotationZ', + type: 'Number', + readonly: '', + alt: + 'red horizontal line right, green vertical line bottom. black background.', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 233, + description: + '

The system variable pRotationX always contains the rotation of the\ndevice along the x axis in the frame previous to the current frame. Value\nis represented as 0 to +/-180 degrees.\n

\npRotationX can also be used with rotationX to determine the rotate\ndirection of the device along the X-axis.

\n', + example: [ + "\n
\n\n// A simple if statement looking at whether\n// rotationX - pRotationX < 0 is true or not will be\n// sufficient for determining the rotate direction\n// in most cases.\n\n// Some extra logic is needed to account for cases where\n// the angles wrap around.\nlet rotateDirection = 'clockwise';\n\n// Simple range conversion to make things simpler.\n// This is not absolutely necessary but the logic\n// will be different in that case.\n\nlet rX = rotationX + 180;\nlet pRX = pRotationX + 180;\n\nif ((rX - pRX > 0 && rX - pRX < 270) || rX - pRX < -270) {\n rotateDirection = 'clockwise';\n} else if (rX - pRX < 0 || rX - pRX > 270) {\n rotateDirection = 'counter-clockwise';\n}\n\nprint(rotateDirection);\n\n
" + ], + alt: 'no image to display.', + itemtype: 'property', + name: 'pRotationX', + type: 'Number', + readonly: '', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 278, + description: + '

The system variable pRotationY always contains the rotation of the\ndevice along the y axis in the frame previous to the current frame. Value\nis represented as 0 to +/-90 degrees.\n

\npRotationY can also be used with rotationY to determine the rotate\ndirection of the device along the Y-axis.

\n', + example: [ + "\n
\n\n// A simple if statement looking at whether\n// rotationY - pRotationY < 0 is true or not will be\n// sufficient for determining the rotate direction\n// in most cases.\n\n// Some extra logic is needed to account for cases where\n// the angles wrap around.\nlet rotateDirection = 'clockwise';\n\n// Simple range conversion to make things simpler.\n// This is not absolutely necessary but the logic\n// will be different in that case.\n\nlet rY = rotationY + 180;\nlet pRY = pRotationY + 180;\n\nif ((rY - pRY > 0 && rY - pRY < 270) || rY - pRY < -270) {\n rotateDirection = 'clockwise';\n} else if (rY - pRY < 0 || rY - pRY > 270) {\n rotateDirection = 'counter-clockwise';\n}\nprint(rotateDirection);\n\n
" + ], + alt: 'no image to display.', + itemtype: 'property', + name: 'pRotationY', + type: 'Number', + readonly: '', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 322, + description: + '

The system variable pRotationZ always contains the rotation of the\ndevice along the z axis in the frame previous to the current frame. Value\nis represented as 0 to 359 degrees.\n

\npRotationZ can also be used with rotationZ to determine the rotate\ndirection of the device along the Z-axis.

\n', + example: [ + "\n
\n\n// A simple if statement looking at whether\n// rotationZ - pRotationZ < 0 is true or not will be\n// sufficient for determining the rotate direction\n// in most cases.\n\n// Some extra logic is needed to account for cases where\n// the angles wrap around.\nlet rotateDirection = 'clockwise';\n\nif (\n (rotationZ - pRotationZ > 0 && rotationZ - pRotationZ < 270) ||\n rotationZ - pRotationZ < -270\n) {\n rotateDirection = 'clockwise';\n} else if (rotationZ - pRotationZ < 0 || rotationZ - pRotationZ > 270) {\n rotateDirection = 'counter-clockwise';\n}\nprint(rotateDirection);\n\n
" + ], + alt: 'no image to display.', + itemtype: 'property', + name: 'pRotationZ', + type: 'Number', + readonly: '', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 380, + description: + '

When a device is rotated, the axis that triggers the deviceTurned()\nmethod is stored in the turnAxis variable. The turnAxis variable is only defined within\nthe scope of deviceTurned().

\n', + itemtype: 'property', + name: 'turnAxis', + type: 'String', + readonly: '', + example: [ + "\n
\n\n// Run this example on a mobile device\n// Rotate the device by 90 degrees in the\n// X-axis to change the value.\n\nvar value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction deviceTurned() {\n if (turnAxis === 'X') {\n if (value === 0) {\n value = 255;\n } else if (value === 255) {\n value = 0;\n }\n }\n}\n\n
" + ], + alt: + '50x50 black rect in center of canvas. turns white on mobile when device turns\n50x50 black rect in center of canvas. turns white on mobile when x-axis turns', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 419, + description: + '

The setMoveThreshold() function is used to set the movement threshold for\nthe deviceMoved() function. The default threshold is set to 0.5.

\n', + itemtype: 'method', + name: 'setMoveThreshold', + params: [ + { + name: 'value', + description: '

The threshold value

\n', + type: 'Number' + } + ], + example: [ + '\n
\n\n// Run this example on a mobile device\n// You will need to move the device incrementally further\n// the closer the square\'s color gets to white in order to change the value.\n\nlet value = 0;\nlet threshold = 0.5;\nfunction setup() {\n setMoveThreshold(threshold);\n}\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction deviceMoved() {\n value = value + 5;\n threshold = threshold + 0.1;\n if (value > 255) {\n value = 0;\n threshold = 30;\n }\n setMoveThreshold(threshold);\n}\n\n
' + ], + alt: + '50x50 black rect in center of canvas. turns white on mobile when device moves', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 462, + description: + '

The setShakeThreshold() function is used to set the movement threshold for\nthe deviceShaken() function. The default threshold is set to 30.

\n', + itemtype: 'method', + name: 'setShakeThreshold', + params: [ + { + name: 'value', + description: '

The threshold value

\n', + type: 'Number' + } + ], + example: [ + '\n
\n\n// Run this example on a mobile device\n// You will need to shake the device more firmly\n// the closer the box\'s fill gets to white in order to change the value.\n\nlet value = 0;\nlet threshold = 30;\nfunction setup() {\n setShakeThreshold(threshold);\n}\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction deviceMoved() {\n value = value + 5;\n threshold = threshold + 5;\n if (value > 255) {\n value = 0;\n threshold = 30;\n }\n setShakeThreshold(threshold);\n}\n\n
' + ], + alt: + '50x50 black rect in center of canvas. turns white on mobile when device\nis being shaked', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 506, + description: + '

The deviceMoved() function is called when the device is moved by more than\nthe threshold value along X, Y or Z axis. The default threshold is set to 0.5.\nThe threshold value can be changed using setMoveThreshold().

\n', + itemtype: 'method', + name: 'deviceMoved', + example: [ + '\n
\n\n// Run this example on a mobile device\n// Move the device around\n// to change the value.\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction deviceMoved() {\n value = value + 5;\n if (value > 255) {\n value = 0;\n }\n}\n\n
' + ], + alt: + '50x50 black rect in center of canvas. turns white on mobile when device moves', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 538, + description: + '

The deviceTurned() function is called when the device rotates by\nmore than 90 degrees continuously.\n

\nThe axis that triggers the deviceTurned() method is stored in the turnAxis\nvariable. The deviceTurned() method can be locked to trigger on any axis:\nX, Y or Z by comparing the turnAxis variable to 'X', 'Y' or 'Z'.

\n', + itemtype: 'method', + name: 'deviceTurned', + example: [ + '\n
\n\n// Run this example on a mobile device\n// Rotate the device by 90 degrees\n// to change the value.\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction deviceTurned() {\n if (value === 0) {\n value = 255;\n } else if (value === 255) {\n value = 0;\n }\n}\n\n
\n
\n\n// Run this example on a mobile device\n// Rotate the device by 90 degrees in the\n// X-axis to change the value.\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction deviceTurned() {\n if (turnAxis === \'X\') {\n if (value === 0) {\n value = 255;\n } else if (value === 255) {\n value = 0;\n }\n }\n}\n\n
' + ], + alt: + '50x50 black rect in center of canvas. turns white on mobile when device turns\n50x50 black rect in center of canvas. turns white on mobile when x-axis turns', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/acceleration.js', + line: 597, + description: + '

The deviceShaken() function is called when the device total acceleration\nchanges of accelerationX and accelerationY values is more than\nthe threshold value. The default threshold is set to 30.\nThe threshold value can be changed using setShakeThreshold().

\n', + itemtype: 'method', + name: 'deviceShaken', + example: [ + '\n
\n\n// Run this example on a mobile device\n// Shake the device to change the value.\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction deviceShaken() {\n value = value + 5;\n if (value > 255) {\n value = 0;\n }\n}\n\n
' + ], + alt: + '50x50 black rect in center of canvas. turns white on mobile when device shakes', + class: 'p5', + module: 'Events', + submodule: 'Acceleration' + }, + { + file: 'src/events/keyboard.js', + line: 12, + description: + '

The boolean system variable keyIsPressed is true if any key is pressed\nand false if no keys are pressed.

\n', + itemtype: 'property', + name: 'keyIsPressed', + type: 'Boolean', + readonly: '', + example: [ + '\n
\n\nfunction draw() {\n if (keyIsPressed === true) {\n fill(0);\n } else {\n fill(255);\n }\n rect(25, 25, 50, 50);\n}\n\n
' + ], + alt: '50x50 white rect that turns black on keypress.', + class: 'p5', + module: 'Events', + submodule: 'Keyboard' + }, + { + file: 'src/events/keyboard.js', + line: 39, + description: + '

The system variable key always contains the value of the most recent\nkey on the keyboard that was typed. To get the proper capitalization, it\nis best to use it within keyTyped(). For non-ASCII keys, use the keyCode\nvariable.

\n', + itemtype: 'property', + name: 'key', + type: 'String', + readonly: '', + example: [ + '\n
\n// Click any key to display it!\n// (Not Guaranteed to be Case Sensitive)\nfunction setup() {\n fill(245, 123, 158);\n textSize(50);\n}\n\nfunction draw() {\n background(200);\n text(key, 33, 65); // Display last key pressed.\n}\n
' + ], + alt: 'canvas displays any key value that is pressed in pink font.', + class: 'p5', + module: 'Events', + submodule: 'Keyboard' + }, + { + file: 'src/events/keyboard.js', + line: 68, + description: + '

The variable keyCode is used to detect special keys such as BACKSPACE,\nDELETE, ENTER, RETURN, TAB, ESCAPE, SHIFT, CONTROL, OPTION, ALT, UP_ARROW,\nDOWN_ARROW, LEFT_ARROW, RIGHT_ARROW.\nYou can also check for custom keys by looking up the keyCode of any key\non a site like this: keycode.info.

\n', + itemtype: 'property', + name: 'keyCode', + type: 'Integer', + readonly: '', + example: [ + "\n
\nlet fillVal = 126;\nfunction draw() {\n fill(fillVal);\n rect(25, 25, 50, 50);\n}\n\nfunction keyPressed() {\n if (keyCode === UP_ARROW) {\n fillVal = 255;\n } else if (keyCode === DOWN_ARROW) {\n fillVal = 0;\n }\n return false; // prevent default\n}\n
\n
\nfunction draw() {}\nfunction keyPressed() {\n background('yellow');\n text(`${key} ${keyCode}`, 10, 40);\n print(key, ' ', keyCode);\n return false; // prevent default\n}\n
" + ], + alt: + 'Grey rect center. turns white when up arrow pressed and black when down\nDisplay key pressed and its keyCode in a yellow box', + class: 'p5', + module: 'Events', + submodule: 'Keyboard' + }, + { + file: 'src/events/keyboard.js', + line: 109, + description: + '

The keyPressed() function is called once every time a key is pressed. The\nkeyCode for the key that was pressed is stored in the keyCode variable.\n

\nFor non-ASCII keys, use the keyCode variable. You can check if the keyCode\nequals BACKSPACE, DELETE, ENTER, RETURN, TAB, ESCAPE, SHIFT, CONTROL,\nOPTION, ALT, UP_ARROW, DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW.\n

\nFor ASCII keys, the key that was pressed is stored in the key variable. However, it\ndoes not distinguish between uppercase and lowercase. For this reason, it\nis recommended to use keyTyped() to read the key variable, in which the\ncase of the variable will be distinguished.\n

\nBecause of how operating systems handle key repeats, holding down a key\nmay cause multiple calls to keyTyped() (and keyReleased() as well). The\nrate of repeat is set by the operating system and how each computer is\nconfigured.

\nBrowsers may have different default\nbehaviors attached to various key events. To prevent any default\nbehavior for this event, add "return false" to the end of the method.

\n', + itemtype: 'method', + name: 'keyPressed', + example: [ + '\n
\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction keyPressed() {\n if (value === 0) {\n value = 255;\n } else {\n value = 0;\n }\n}\n\n
\n
\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction keyPressed() {\n if (keyCode === LEFT_ARROW) {\n value = 255;\n } else if (keyCode === RIGHT_ARROW) {\n value = 0;\n }\n}\n\n
\n
\n\nfunction keyPressed() {\n // Do something\n return false; // prevent any default behaviour\n}\n\n
' + ], + alt: + 'black rect center. turns white when key pressed and black when released\nblack rect center. turns white when left arrow pressed and black when right.', + class: 'p5', + module: 'Events', + submodule: 'Keyboard' + }, + { + file: 'src/events/keyboard.js', + line: 196, + description: + '

The keyReleased() function is called once every time a key is released.\nSee key and keyCode for more information.

\nBrowsers may have different default\nbehaviors attached to various key events. To prevent any default\nbehavior for this event, add "return false" to the end of the method.

\n', + itemtype: 'method', + name: 'keyReleased', + example: [ + '\n
\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction keyReleased() {\n if (value === 0) {\n value = 255;\n } else {\n value = 0;\n }\n return false; // prevent any default behavior\n}\n\n
' + ], + alt: + 'black rect center. turns white when key pressed and black when pressed again', + class: 'p5', + module: 'Events', + submodule: 'Keyboard' + }, + { + file: 'src/events/keyboard.js', + line: 248, + description: + '

The keyTyped() function is called once every time a key is pressed, but\naction keys such as Backspace, Delete, Ctrl, Shift, and Alt are ignored. If you are trying to detect\na keyCode for one of these keys, use the keyPressed() function instead.\nThe most recent key typed will be stored in the key variable.\n

\nBecause of how operating systems handle key repeats, holding down a key\nwill cause multiple calls to keyTyped() (and keyReleased() as well). The\nrate of repeat is set by the operating system and how each computer is\nconfigured.

\nBrowsers may have different default behaviors attached to various key\nevents. To prevent any default behavior for this event, add "return false"\nto the end of the method.

\n', + itemtype: 'method', + name: 'keyTyped', + example: [ + "\n
\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction keyTyped() {\n if (key === 'a') {\n value = 255;\n } else if (key === 'b') {\n value = 0;\n }\n // uncomment to prevent any default behavior\n // return false;\n}\n\n
" + ], + alt: + "black rect center. turns white when 'a' key typed and black when 'b' pressed", + class: 'p5', + module: 'Events', + submodule: 'Keyboard' + }, + { + file: 'src/events/keyboard.js', + line: 302, + description: + '

The onblur function is called when the user is no longer focused\non the p5 element. Because the keyup events will not fire if the user is\nnot focused on the element we must assume all keys currently down have\nbeen released.

\n', + class: 'p5', + module: 'Events', + submodule: 'Keyboard' + }, + { + file: 'src/events/keyboard.js', + line: 312, + description: + '

The keyIsDown() function checks if the key is currently down, i.e. pressed.\nIt can be used if you have an object that moves, and you want several keys\nto be able to affect its behaviour simultaneously, such as moving a\nsprite diagonally. You can put in any number representing the keyCode of\nthe key, or use any of the variable keyCode names listed\nhere.

\n', + itemtype: 'method', + name: 'keyIsDown', + params: [ + { + name: 'code', + description: '

The key to check for.

\n', + type: 'Number' + } + ], + return: { + description: 'whether key is down or not', + type: 'Boolean' + }, + example: [ + '\n
\nlet x = 100;\nlet y = 100;\n\nfunction setup() {\n createCanvas(512, 512);\n fill(255, 0, 0);\n}\n\nfunction draw() {\n if (keyIsDown(LEFT_ARROW)) {\n x -= 5;\n }\n\n if (keyIsDown(RIGHT_ARROW)) {\n x += 5;\n }\n\n if (keyIsDown(UP_ARROW)) {\n y -= 5;\n }\n\n if (keyIsDown(DOWN_ARROW)) {\n y += 5;\n }\n\n clear();\n ellipse(x, y, 50, 50);\n}\n
\n\n
\nlet diameter = 50;\n\nfunction setup() {\n createCanvas(512, 512);\n}\n\nfunction draw() {\n // 107 and 187 are keyCodes for "+"\n if (keyIsDown(107) || keyIsDown(187)) {\n diameter += 1;\n }\n\n // 109 and 189 are keyCodes for "-"\n if (keyIsDown(109) || keyIsDown(189)) {\n diameter -= 1;\n }\n\n clear();\n fill(255, 0, 0);\n ellipse(50, 50, diameter, diameter);\n}\n
' + ], + alt: + '50x50 red ellipse moves left, right, up and down with arrow presses.\n50x50 red ellipse gets bigger or smaller when + or - are pressed.', + class: 'p5', + module: 'Events', + submodule: 'Keyboard' + }, + { + file: 'src/events/mouse.js', + line: 22, + description: + '

The system variable mouseX always contains the current horizontal\nposition of the mouse, relative to (0, 0) of the canvas. The value at\nthe top-left corner is (0, 0) for 2-D and (-width/2, -height/2) for WebGL.\nIf touch is used instead of mouse input, mouseX will hold the x value\nof the most recent touch point.

\n', + itemtype: 'property', + name: 'mouseX', + type: 'Number', + readonly: '', + example: [ + '\n
\n\n// Move the mouse across the canvas\nfunction draw() {\n background(244, 248, 252);\n line(mouseX, 0, mouseX, 100);\n}\n\n
' + ], + alt: 'horizontal black line moves left and right with mouse x-position', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/mouse.js', + line: 49, + description: + '

The system variable mouseY always contains the current vertical\nposition of the mouse, relative to (0, 0) of the canvas. The value at\nthe top-left corner is (0, 0) for 2-D and (-width/2, -height/2) for WebGL.\nIf touch is used instead of mouse input, mouseY will hold the y value\nof the most recent touch point.

\n', + itemtype: 'property', + name: 'mouseY', + type: 'Number', + readonly: '', + example: [ + '\n
\n\n// Move the mouse across the canvas\nfunction draw() {\n background(244, 248, 252);\n line(0, mouseY, 100, mouseY);\n}\n\n
' + ], + alt: 'vertical black line moves up and down with mouse y-position', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/mouse.js', + line: 76, + description: + '

The system variable pmouseX always contains the horizontal position of\nthe mouse or finger in the frame previous to the current frame, relative to\n(0, 0) of the canvas. The value at the top-left corner is (0, 0) for 2-D and\n(-width/2, -height/2) for WebGL. Note: pmouseX will be reset to the current mouseX\nvalue at the start of each touch event.

\n', + itemtype: 'property', + name: 'pmouseX', + type: 'Number', + readonly: '', + example: [ + "\n
\n\n// Move the mouse across the canvas to leave a trail\nfunction setup() {\n //slow down the frameRate to make it more visible\n frameRate(10);\n}\n\nfunction draw() {\n background(244, 248, 252);\n line(mouseX, mouseY, pmouseX, pmouseY);\n print(pmouseX + ' -> ' + mouseX);\n}\n\n
" + ], + alt: + 'line trail is created from cursor movements. faster movement make longer line.', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/mouse.js', + line: 109, + description: + '

The system variable pmouseY always contains the vertical position of\nthe mouse or finger in the frame previous to the current frame, relative to\n(0, 0) of the canvas. The value at the top-left corner is (0, 0) for 2-D and\n(-width/2, -height/2) for WebGL. Note: pmouseY will be reset to the current mouseY\nvalue at the start of each touch event.

\n', + itemtype: 'property', + name: 'pmouseY', + type: 'Number', + readonly: '', + example: [ + "\n
\n\nfunction draw() {\n background(237, 34, 93);\n fill(0);\n //draw a square only if the mouse is not moving\n if (mouseY === pmouseY && mouseX === pmouseX) {\n rect(20, 20, 60, 60);\n }\n\n print(pmouseY + ' -> ' + mouseY);\n}\n\n
" + ], + alt: + '60x60 black rect center, fuchsia background. rect flickers on mouse movement', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/mouse.js', + line: 141, + description: + '

The system variable winMouseX always contains the current horizontal\nposition of the mouse, relative to (0, 0) of the window.

\n', + itemtype: 'property', + name: 'winMouseX', + type: 'Number', + readonly: '', + example: [ + "\n
\n\nlet myCanvas;\n\nfunction setup() {\n //use a variable to store a pointer to the canvas\n myCanvas = createCanvas(100, 100);\n const body = document.getElementsByTagName('body')[0];\n myCanvas.parent(body);\n}\n\nfunction draw() {\n background(237, 34, 93);\n fill(0);\n\n //move the canvas to the horizontal mouse position\n //relative to the window\n myCanvas.position(winMouseX + 1, windowHeight / 2);\n\n //the y of the square is relative to the canvas\n rect(20, mouseY, 60, 60);\n}\n\n
" + ], + alt: + '60x60 black rect y moves with mouse y and fuchsia canvas moves with mouse x', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/mouse.js', + line: 180, + description: + '

The system variable winMouseY always contains the current vertical\nposition of the mouse, relative to (0, 0) of the window.

\n', + itemtype: 'property', + name: 'winMouseY', + type: 'Number', + readonly: '', + example: [ + "\n
\n\nlet myCanvas;\n\nfunction setup() {\n //use a variable to store a pointer to the canvas\n myCanvas = createCanvas(100, 100);\n const body = document.getElementsByTagName('body')[0];\n myCanvas.parent(body);\n}\n\nfunction draw() {\n background(237, 34, 93);\n fill(0);\n\n //move the canvas to the vertical mouse position\n //relative to the window\n myCanvas.position(windowWidth / 2, winMouseY + 1);\n\n //the x of the square is relative to the canvas\n rect(mouseX, 20, 60, 60);\n}\n\n
" + ], + alt: + '60x60 black rect x moves with mouse x and fuchsia canvas y moves with mouse y', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/mouse.js', + line: 219, + description: + '

The system variable pwinMouseX always contains the horizontal position\nof the mouse in the frame previous to the current frame, relative to\n(0, 0) of the window. Note: pwinMouseX will be reset to the current winMouseX\nvalue at the start of each touch event.

\n', + itemtype: 'property', + name: 'pwinMouseX', + type: 'Number', + readonly: '', + example: [ + '\n
\n\nlet myCanvas;\n\nfunction setup() {\n //use a variable to store a pointer to the canvas\n myCanvas = createCanvas(100, 100);\n noStroke();\n fill(237, 34, 93);\n}\n\nfunction draw() {\n clear();\n //the difference between previous and\n //current x position is the horizontal mouse speed\n let speed = abs(winMouseX - pwinMouseX);\n //change the size of the circle\n //according to the horizontal speed\n ellipse(50, 50, 10 + speed * 5, 10 + speed * 5);\n //move the canvas to the mouse position\n myCanvas.position(winMouseX + 1, winMouseY + 1);\n}\n\n
' + ], + alt: + 'fuchsia ellipse moves with mouse x and y. Grows and shrinks with mouse speed', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/mouse.js', + line: 260, + description: + '

The system variable pwinMouseY always contains the vertical position of\nthe mouse in the frame previous to the current frame, relative to (0, 0)\nof the window. Note: pwinMouseY will be reset to the current winMouseY\nvalue at the start of each touch event.

\n', + itemtype: 'property', + name: 'pwinMouseY', + type: 'Number', + readonly: '', + example: [ + '\n
\n\nlet myCanvas;\n\nfunction setup() {\n //use a variable to store a pointer to the canvas\n myCanvas = createCanvas(100, 100);\n noStroke();\n fill(237, 34, 93);\n}\n\nfunction draw() {\n clear();\n //the difference between previous and\n //current y position is the vertical mouse speed\n let speed = abs(winMouseY - pwinMouseY);\n //change the size of the circle\n //according to the vertical speed\n ellipse(50, 50, 10 + speed * 5, 10 + speed * 5);\n //move the canvas to the mouse position\n myCanvas.position(winMouseX + 1, winMouseY + 1);\n}\n\n
' + ], + alt: + 'fuchsia ellipse moves with mouse x and y. Grows and shrinks with mouse speed', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/mouse.js', + line: 302, + description: + '

Processing automatically tracks if the mouse button is pressed and which\nbutton is pressed. The value of the system variable mouseButton is either\nLEFT, RIGHT, or CENTER depending on which button was pressed last.\nWarning: different browsers may track mouseButton differently.

\n', + itemtype: 'property', + name: 'mouseButton', + type: 'Constant', + readonly: '', + example: [ + '\n
\n\nfunction draw() {\n background(237, 34, 93);\n fill(0);\n\n if (mouseIsPressed) {\n if (mouseButton === LEFT) {\n ellipse(50, 50, 50, 50);\n }\n if (mouseButton === RIGHT) {\n rect(25, 25, 50, 50);\n }\n if (mouseButton === CENTER) {\n triangle(23, 75, 50, 20, 78, 75);\n }\n }\n\n print(mouseButton);\n}\n\n
' + ], + alt: + '50x50 black ellipse appears on center of fuchsia canvas on mouse click/press.', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/mouse.js', + line: 341, + description: + '

The boolean system variable mouseIsPressed is true if the mouse is pressed\nand false if not.

\n', + itemtype: 'property', + name: 'mouseIsPressed', + type: 'Boolean', + readonly: '', + example: [ + '\n
\n\nfunction draw() {\n background(237, 34, 93);\n fill(0);\n\n if (mouseIsPressed) {\n ellipse(50, 50, 50, 50);\n } else {\n rect(25, 25, 50, 50);\n }\n\n print(mouseIsPressed);\n}\n\n
' + ], + alt: + 'black 50x50 rect becomes ellipse with mouse click/press. fuchsia background.', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/mouse.js', + line: 432, + description: + '

The mouseMoved() function is called every time the mouse moves and a mouse\nbutton is not pressed.

\nBrowsers may have different default\nbehaviors attached to various mouse events. To prevent any default\nbehavior for this event, add "return false" to the end of the method.

\n', + itemtype: 'method', + name: 'mouseMoved', + params: [ + { + name: 'event', + description: '

optional MouseEvent callback argument.

\n', + type: 'Object', + optional: true + } + ], + example: [ + '\n
\n\n// Move the mouse across the page\n// to change its value\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction mouseMoved() {\n value = value + 5;\n if (value > 255) {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction mouseMoved() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a MouseEvent object\n// as a callback argument\nfunction mouseMoved(event) {\n console.log(event);\n}\n\n
' + ], + alt: + 'black 50x50 rect becomes lighter with mouse movements until white then resets\nno image displayed', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/mouse.js', + line: 487, + description: + '

The mouseDragged() function is called once every time the mouse moves and\na mouse button is pressed. If no mouseDragged() function is defined, the\ntouchMoved() function will be called instead if it is defined.

\nBrowsers may have different default\nbehaviors attached to various mouse events. To prevent any default\nbehavior for this event, add "return false" to the end of the method.

\n', + itemtype: 'method', + name: 'mouseDragged', + params: [ + { + name: 'event', + description: '

optional MouseEvent callback argument.

\n', + type: 'Object', + optional: true + } + ], + example: [ + '\n
\n\n// Drag the mouse across the page\n// to change its value\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction mouseDragged() {\n value = value + 5;\n if (value > 255) {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction mouseDragged() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a MouseEvent object\n// as a callback argument\nfunction mouseDragged(event) {\n console.log(event);\n}\n\n
' + ], + alt: + 'black 50x50 rect turns lighter with mouse click and drag until white, resets\nno image displayed', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/mouse.js', + line: 568, + description: + '

The mousePressed() function is called once after every time a mouse button\nis pressed. The mouseButton variable (see the related reference entry)\ncan be used to determine which button has been pressed. If no\nmousePressed() function is defined, the touchStarted() function will be\ncalled instead if it is defined.

\nBrowsers may have different default\nbehaviors attached to various mouse events. To prevent any default\nbehavior for this event, add "return false" to the end of the method.

\n', + itemtype: 'method', + name: 'mousePressed', + params: [ + { + name: 'event', + description: '

optional MouseEvent callback argument.

\n', + type: 'Object', + optional: true + } + ], + example: [ + '\n
\n\n// Click within the image to change\n// the value of the rectangle\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction mousePressed() {\n if (value === 0) {\n value = 255;\n } else {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction mousePressed() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a MouseEvent object\n// as a callback argument\nfunction mousePressed(event) {\n console.log(event);\n}\n\n
' + ], + alt: + 'black 50x50 rect turns white with mouse click/press.\nno image displayed', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/mouse.js', + line: 650, + description: + '

The mouseReleased() function is called every time a mouse button is\nreleased. If no mouseReleased() function is defined, the touchEnded()\nfunction will be called instead if it is defined.

\nBrowsers may have different default\nbehaviors attached to various mouse events. To prevent any default\nbehavior for this event, add "return false" to the end of the method.

\n', + itemtype: 'method', + name: 'mouseReleased', + params: [ + { + name: 'event', + description: '

optional MouseEvent callback argument.

\n', + type: 'Object', + optional: true + } + ], + example: [ + '\n
\n\n// Click within the image to change\n// the value of the rectangle\n// after the mouse has been clicked\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction mouseReleased() {\n if (value === 0) {\n value = 255;\n } else {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction mouseReleased() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a MouseEvent object\n// as a callback argument\nfunction mouseReleased(event) {\n console.log(event);\n}\n\n
' + ], + alt: + 'black 50x50 rect turns white with mouse click/press.\nno image displayed', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/mouse.js', + line: 728, + description: + '

The mouseClicked() function is called once after a mouse button has been\npressed and then released.

\nBrowsers handle clicks differently, so this function is only guaranteed to be\nrun when the left mouse button is clicked. To handle other mouse buttons\nbeing pressed or released, see mousePressed() or mouseReleased().

\nBrowsers may have different default\nbehaviors attached to various mouse events. To prevent any default\nbehavior for this event, add "return false" to the end of the method.

\n', + itemtype: 'method', + name: 'mouseClicked', + params: [ + { + name: 'event', + description: '

optional MouseEvent callback argument.

\n', + type: 'Object', + optional: true + } + ], + example: [ + '\n
\n\n// Click within the image to change\n// the value of the rectangle\n// after the mouse has been clicked\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\n\nfunction mouseClicked() {\n if (value === 0) {\n value = 255;\n } else {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction mouseClicked() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a MouseEvent object\n// as a callback argument\nfunction mouseClicked(event) {\n console.log(event);\n}\n\n
' + ], + alt: + 'black 50x50 rect turns white with mouse click/press.\nno image displayed', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/mouse.js', + line: 798, + description: + '

The doubleClicked() function is executed every time a event\nlistener has detected a dblclick event which is a part of the\nDOM L3 specification. The doubleClicked event is fired when a\npointing device button (usually a mouse's primary button)\nis clicked twice on a single element. For more info on the\ndblclick event refer to mozilla's documentation here:\nhttps://developer.mozilla.org/en-US/docs/Web/Events/dblclick

\n', + itemtype: 'method', + name: 'doubleClicked', + params: [ + { + name: 'event', + description: '

optional MouseEvent callback argument.

\n', + type: 'Object', + optional: true + } + ], + example: [ + '\n
\n\n// Click within the image to change\n// the value of the rectangle\n// after the mouse has been double clicked\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\n\nfunction doubleClicked() {\n if (value === 0) {\n value = 255;\n } else {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction doubleClicked() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a MouseEvent object\n// as a callback argument\nfunction doubleClicked(event) {\n console.log(event);\n}\n\n
' + ], + alt: + 'black 50x50 rect turns white with mouse doubleClick/press.\nno image displayed', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/mouse.js', + line: 883, + description: + '

The function mouseWheel() is executed every time a vertical mouse wheel\nevent is detected either triggered by an actual mouse wheel or by a\ntouchpad.

\nThe event.delta property returns the amount the mouse wheel\nhave scrolled. The values can be positive or negative depending on the\nscroll direction (on OS X with "natural" scrolling enabled, the signs\nare inverted).

\nBrowsers may have different default behaviors attached to various\nmouse events. To prevent any default behavior for this event, add\n"return false" to the end of the method.

\nDue to the current support of the "wheel" event on Safari, the function\nmay only work as expected if "return false" is included while using Safari.

\n', + itemtype: 'method', + name: 'mouseWheel', + params: [ + { + name: 'event', + description: '

optional WheelEvent callback argument.

\n', + type: 'Object', + optional: true + } + ], + example: [ + '\n
\n\nlet pos = 25;\n\nfunction draw() {\n background(237, 34, 93);\n fill(0);\n rect(25, pos, 50, 50);\n}\n\nfunction mouseWheel(event) {\n print(event.delta);\n //move the square according to the vertical scroll amount\n pos += event.delta;\n //uncomment to block page scrolling\n //return false;\n}\n\n
' + ], + alt: + 'black 50x50 rect moves up and down with vertical scroll. fuchsia background', + class: 'p5', + module: 'Events', + submodule: 'Mouse' + }, + { + file: 'src/events/touch.js', + line: 12, + description: + '

The system variable touches[] contains an array of the positions of all\ncurrent touch points, relative to (0, 0) of the canvas, and IDs identifying a\nunique touch as it moves. Each element in the array is an object with x, y,\nand id properties.

\n

The touches[] array is not supported on Safari and IE on touch-based\ndesktops (laptops).

\n', + itemtype: 'property', + name: 'touches', + type: 'Object[]', + readonly: '', + example: [ + "\n
\n\n// On a touchscreen device, touch\n// the canvas using one or more fingers\n// at the same time\nfunction draw() {\n clear();\n let display = touches.length + ' touches';\n text(display, 5, 10);\n}\n\n
" + ], + alt: 'Number of touches currently registered are displayed on the canvas', + class: 'p5', + module: 'Events', + submodule: 'Touch' + }, + { + file: 'src/events/touch.js', + line: 74, + description: + '

The touchStarted() function is called once after every time a touch is\nregistered. If no touchStarted() function is defined, the mousePressed()\nfunction will be called instead if it is defined.

\nBrowsers may have different default behaviors attached to various touch\nevents. To prevent any default behavior for this event, add "return false"\nto the end of the method.

\n', + itemtype: 'method', + name: 'touchStarted', + params: [ + { + name: 'event', + description: '

optional TouchEvent callback argument.

\n', + type: 'Object', + optional: true + } + ], + example: [ + '\n
\n\n// Touch within the image to change\n// the value of the rectangle\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction touchStarted() {\n if (value === 0) {\n value = 255;\n } else {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction touchStarted() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a TouchEvent object\n// as a callback argument\nfunction touchStarted(event) {\n console.log(event);\n}\n\n
' + ], + alt: '50x50 black rect turns white with touch event.\nno image displayed', + class: 'p5', + module: 'Events', + submodule: 'Touch' + }, + { + file: 'src/events/touch.js', + line: 154, + description: + '

The touchMoved() function is called every time a touch move is registered.\nIf no touchMoved() function is defined, the mouseDragged() function will\nbe called instead if it is defined.

\nBrowsers may have different default behaviors attached to various touch\nevents. To prevent any default behavior for this event, add "return false"\nto the end of the method.

\n', + itemtype: 'method', + name: 'touchMoved', + params: [ + { + name: 'event', + description: '

optional TouchEvent callback argument.

\n', + type: 'Object', + optional: true + } + ], + example: [ + '\n
\n\n// Move your finger across the page\n// to change its value\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction touchMoved() {\n value = value + 5;\n if (value > 255) {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction touchMoved() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a TouchEvent object\n// as a callback argument\nfunction touchMoved(event) {\n console.log(event);\n}\n\n
' + ], + alt: + '50x50 black rect turns lighter with touch until white. resets\nno image displayed', + class: 'p5', + module: 'Events', + submodule: 'Touch' + }, + { + file: 'src/events/touch.js', + line: 227, + description: + '

The touchEnded() function is called every time a touch ends. If no\ntouchEnded() function is defined, the mouseReleased() function will be\ncalled instead if it is defined.

\nBrowsers may have different default behaviors attached to various touch\nevents. To prevent any default behavior for this event, add "return false"\nto the end of the method.

\n', + itemtype: 'method', + name: 'touchEnded', + params: [ + { + name: 'event', + description: '

optional TouchEvent callback argument.

\n', + type: 'Object', + optional: true + } + ], + example: [ + '\n
\n\n// Release touch within the image to\n// change the value of the rectangle\n\nlet value = 0;\nfunction draw() {\n fill(value);\n rect(25, 25, 50, 50);\n}\nfunction touchEnded() {\n if (value === 0) {\n value = 255;\n } else {\n value = 0;\n }\n}\n\n
\n\n
\n\nfunction touchEnded() {\n ellipse(mouseX, mouseY, 5, 5);\n // prevent default\n return false;\n}\n\n
\n\n
\n\n// returns a TouchEvent object\n// as a callback argument\nfunction touchEnded(event) {\n console.log(event);\n}\n\n
' + ], + alt: '50x50 black rect turns white with touch.\nno image displayed', + class: 'p5', + module: 'Events', + submodule: 'Touch' + }, + { + file: 'src/image/filters.js', + line: 3, + description: + '

This module defines the filters for use with image buffers.

\n

This module is basically a collection of functions stored in an object\nas opposed to modules. The functions are destructive, modifying\nthe passed in canvas rather than creating a copy.

\n

Generally speaking users of this module will use the Filters.apply method\non a canvas to create an effect.

\n

A number of functions are borrowed/adapted from\nhttp://www.html5rocks.com/en/tutorials/canvas/imagefilters/\nor the java processing implementation.

\n', + class: 'p5', + module: 'Events' + }, + { + file: 'src/image/image.js', + line: 8, + description: + '

This module defines the p5 methods for the p5.Image class\nfor drawing images to the main display canvas.

\n', + class: 'p5', + module: 'Image', + submodule: 'Image' + }, + { + file: 'src/image/image.js', + line: 22, + description: + '

Creates a new p5.Image (the datatype for storing images). This provides a\nfresh buffer of pixels to play with. Set the size of the buffer with the\nwidth and height parameters.\n

\n.pixels gives access to an array containing the values for all the pixels\nin the display window.\nThese values are numbers. This array is the size (including an appropriate\nfactor for the pixelDensity) of the display window x4,\nrepresenting the R, G, B, A values in order for each pixel, moving from\nleft to right across each row, then down each column. See .pixels for\nmore info. It may also be simpler to use set() or get().\n

\nBefore accessing the pixels of an image, the data must loaded with the\nloadPixels() function. After the array data has been modified, the\nupdatePixels() function must be run to update the changes.

\n', + itemtype: 'method', + name: 'createImage', + params: [ + { + name: 'width', + description: '

width in pixels

\n', + type: 'Integer' + }, + { + name: 'height', + description: '

height in pixels

\n', + type: 'Integer' + } + ], + return: { + description: 'the p5.Image object', + type: 'p5.Image' + }, + example: [ + '\n
\n\nlet img = createImage(66, 66);\nimg.loadPixels();\nfor (let i = 0; i < img.width; i++) {\n for (let j = 0; j < img.height; j++) {\n img.set(i, j, color(0, 90, 102));\n }\n}\nimg.updatePixels();\nimage(img, 17, 17);\n\n
\n\n
\n\nlet img = createImage(66, 66);\nimg.loadPixels();\nfor (let i = 0; i < img.width; i++) {\n for (let j = 0; j < img.height; j++) {\n img.set(i, j, color(0, 90, 102, (i % img.width) * 2));\n }\n}\nimg.updatePixels();\nimage(img, 17, 17);\nimage(img, 34, 34);\n\n
\n\n
\n\nlet pink = color(255, 102, 204);\nlet img = createImage(66, 66);\nimg.loadPixels();\nlet d = pixelDensity();\nlet halfImage = 4 * (img.width * d) * (img.height / 2 * d);\nfor (let i = 0; i < halfImage; i += 4) {\n img.pixels[i] = red(pink);\n img.pixels[i + 1] = green(pink);\n img.pixels[i + 2] = blue(pink);\n img.pixels[i + 3] = alpha(pink);\n}\nimg.updatePixels();\nimage(img, 17, 17);\n\n
' + ], + alt: + '66x66 dark turquoise rect in center of canvas.\n2 gradated dark turquoise rects fade left. 1 center 1 bottom right of canvas\nno image displayed', + class: 'p5', + module: 'Image', + submodule: 'Image' + }, + { + file: 'src/image/image.js', + line: 102, + description: + '

Save the current canvas as an image. The browser will either save the\nfile immediately, or prompt the user with a dialogue window.

\n', + itemtype: 'method', + name: 'saveCanvas', + example: [ + "\n
\n function setup() {\n let c = createCanvas(100, 100);\n background(255, 0, 0);\n saveCanvas(c, 'myCanvas', 'jpg');\n }\n
\n
\n // note that this example has the same result as above\n // if no canvas is specified, defaults to main canvas\n function setup() {\n let c = createCanvas(100, 100);\n background(255, 0, 0);\n saveCanvas('myCanvas', 'jpg');\n\n // all of the following are valid\n saveCanvas(c, 'myCanvas', 'jpg');\n saveCanvas(c, 'myCanvas.jpg');\n saveCanvas(c, 'myCanvas');\n saveCanvas(c);\n saveCanvas('myCanvas', 'png');\n saveCanvas('myCanvas');\n saveCanvas();\n }\n
" + ], + alt: 'no image displayed\n no image displayed\n no image displayed', + class: 'p5', + module: 'Image', + submodule: 'Image', + overloads: [ + { + line: 102, + params: [ + { + name: 'selectedCanvas', + description: + '

a variable\n representing a specific html5 canvas (optional)

\n', + type: 'p5.Element|HTMLCanvasElement' + }, + { + name: 'filename', + description: '', + type: 'String', + optional: true + }, + { + name: 'extension', + description: '

'jpg' or 'png'

\n', + type: 'String', + optional: true + } + ] + }, + { + line: 144, + params: [ + { + name: 'filename', + description: '', + type: 'String', + optional: true + }, + { + name: 'extension', + description: '', + type: 'String', + optional: true + } + ] + } + ] + }, + { + file: 'src/image/image.js', + line: 195, + description: + '

Capture a sequence of frames that can be used to create a movie.\nAccepts a callback. For example, you may wish to send the frames\nto a server where they can be stored or converted into a movie.\nIf no callback is provided, the browser will pop up save dialogues in an\nattempt to download all of the images that have just been created. With the\ncallback provided the image data isn't saved by default but instead passed\nas an argument to the callback function as an array of objects, with the\nsize of array equal to the total number of frames.

\n

Note that saveFrames() will only save the first 15 frames of an animation.\nTo export longer animations, you might look into a library like\nccapture.js.

\n', + itemtype: 'method', + name: 'saveFrames', + params: [ + { + name: 'filename', + description: '', + type: 'String' + }, + { + name: 'extension', + description: '

'jpg' or 'png'

\n', + type: 'String' + }, + { + name: 'duration', + description: '

Duration in seconds to save the frames for.

\n', + type: 'Number' + }, + { + name: 'framerate', + description: '

Framerate to save the frames in.

\n', + type: 'Number' + }, + { + name: 'callback', + description: + '

A callback function that will be executed\n to handle the image data. This function\n should accept an array as argument. The\n array will contain the specified number of\n frames of objects. Each object has three\n properties: imageData - an\n image/octet-stream, filename and extension.

\n', + type: 'Function(Array)', + optional: true + } + ], + example: [ + "\n
\n function draw() {\n background(mouseX);\n }\n\n function mousePressed() {\n saveFrames('out', 'png', 1, 25, data => {\n print(data);\n });\n }\n
" + ], + alt: 'canvas background goes from light to dark with mouse x.', + class: 'p5', + module: 'Image', + submodule: 'Image' + }, + { + file: 'src/image/loading_displaying.js', + line: 17, + description: + '

Loads an image from a path and creates a p5.Image from it.\n

\nThe image may not be immediately available for rendering\nIf you want to ensure that the image is ready before doing\nanything with it, place the loadImage() call in preload().\nYou may also supply a callback function to handle the image when it's ready.\n

\nThe path to the image should be relative to the HTML file\nthat links in your sketch. Loading an image from a URL or other\nremote location may be blocked due to your browser's built-in\nsecurity.

\n', + itemtype: 'method', + name: 'loadImage', + params: [ + { + name: 'path', + description: '

Path of the image to be loaded

\n', + type: 'String' + }, + { + name: 'successCallback', + description: + '

Function to be called once\n the image is loaded. Will be passed the\n p5.Image.

\n', + type: 'function(p5.Image)', + optional: true + }, + { + name: 'failureCallback', + description: + '

called with event error if\n the image fails to load.

\n', + type: 'Function(Event)', + optional: true + } + ], + return: { + description: 'the p5.Image object', + type: 'p5.Image' + }, + example: [ + "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/laDefense.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n}\n\n
\n
\n\nfunction setup() {\n // here we use a callback to display the image after loading\n loadImage('assets/laDefense.jpg', img => {\n image(img, 0, 0);\n });\n}\n\n
" + ], + alt: + 'image of the underside of a white umbrella and grided ceililng above\nimage of the underside of a white umbrella and grided ceililng above', + class: 'p5', + module: 'Image', + submodule: 'Loading & Displaying' + }, + { + file: 'src/image/loading_displaying.js', + line: 127, + description: + '

Draw an image to the p5.js canvas.

\n

This function can be used with different numbers of parameters. The\nsimplest use requires only three parameters: img, x, and yโ€”where (x, y) is\nthe position of the image. Two more parameters can optionally be added to\nspecify the width and height of the image.

\n

This function can also be used with all eight Number parameters. To\ndifferentiate between all these parameters, p5.js uses the language of\n"destination rectangle" (which corresponds to "dx", "dy", etc.) and "source\nimage" (which corresponds to "sx", "sy", etc.) below. Specifying the\n"source image" dimensions can be useful when you want to display a\nsubsection of the source image instead of the whole thing. Here's a diagram\nto explain further:\n

\n', + itemtype: 'method', + name: 'image', + example: [ + "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/laDefense.jpg');\n}\nfunction setup() {\n // Top-left corner of the img is at (0, 0)\n // Width and height are the img's original width and height\n image(img, 0, 0);\n}\n\n
\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/laDefense.jpg');\n}\nfunction setup() {\n background(50);\n // Top-left corner of the img is at (10, 10)\n // Width and height are 50 x 50\n image(img, 10, 10, 50, 50);\n}\n\n
\n
\n\nfunction setup() {\n // Here, we use a callback to display the image after loading\n loadImage('assets/laDefense.jpg', img => {\n image(img, 0, 0);\n });\n}\n\n
\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/gradient.png');\n}\nfunction setup() {\n // 1. Background image\n // Top-left corner of the img is at (0, 0)\n // Width and height are the img's original width and height, 100 x 100\n image(img, 0, 0);\n // 2. Top right image\n // Top-left corner of destination rectangle is at (50, 0)\n // Destination rectangle width and height are 40 x 20\n // The next parameters are relative to the source image:\n // - Starting at position (50, 50) on the source image, capture a 50 x 50\n // subsection\n // - Draw this subsection to fill the dimensions of the destination rectangle\n image(img, 50, 0, 40, 20, 50, 50, 50, 50);\n}\n\n
" + ], + alt: + 'image of the underside of a white umbrella and gridded ceiling above\nimage of the underside of a white umbrella and gridded ceiling above', + class: 'p5', + module: 'Image', + submodule: 'Loading & Displaying', + overloads: [ + { + line: 127, + params: [ + { + name: 'img', + description: '

the image to display

\n', + type: 'p5.Image|p5.Element' + }, + { + name: 'x', + description: + '

the x-coordinate of the top-left corner of the image

\n', + type: 'Number' + }, + { + name: 'y', + description: + '

the y-coordinate of the top-left corner of the image

\n', + type: 'Number' + }, + { + name: 'width', + description: '

the width to draw the image

\n', + type: 'Number', + optional: true + }, + { + name: 'height', + description: '

the height to draw the image

\n', + type: 'Number', + optional: true + } + ] + }, + { + line: 215, + params: [ + { + name: 'img', + description: '', + type: 'p5.Image|p5.Element' + }, + { + name: 'dx', + description: + '

the x-coordinate of the destination\n rectangle in which to draw the source image

\n', + type: 'Number' + }, + { + name: 'dy', + description: + '

the y-coordinate of the destination\n rectangle in which to draw the source image

\n', + type: 'Number' + }, + { + name: 'dWidth', + description: '

the width of the destination rectangle

\n', + type: 'Number' + }, + { + name: 'dHeight', + description: '

the height of the destination rectangle

\n', + type: 'Number' + }, + { + name: 'sx', + description: + '

the x-coordinate of the subsection of the source\nimage to draw into the destination rectangle

\n', + type: 'Number' + }, + { + name: 'sy', + description: + '

the y-coordinate of the subsection of the source\nimage to draw into the destination rectangle

\n', + type: 'Number' + }, + { + name: 'sWidth', + description: + '

the width of the subsection of the\n source image to draw into the destination\n rectangle

\n', + type: 'Number', + optional: true + }, + { + name: 'sHeight', + description: + '

the height of the subsection of the\n source image to draw into the destination rectangle

\n', + type: 'Number', + optional: true + } + ] + } + ] + }, + { + file: 'src/image/loading_displaying.js', + line: 298, + description: + '

Sets the fill value for displaying images. Images can be tinted to\nspecified colors or made transparent by including an alpha value.\n

\nTo apply transparency to an image without affecting its color, use\nwhite as the tint color and specify an alpha value. For instance,\ntint(255, 128) will make an image 50% transparent (assuming the default\nalpha range of 0-255, which can be changed with colorMode()).\n

\nThe value for the gray parameter must be less than or equal to the current\nmaximum value as specified by colorMode(). The default maximum value is\n255.

\n', + itemtype: 'method', + name: 'tint', + example: [ + "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/laDefense.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n tint(0, 153, 204); // Tint blue\n image(img, 50, 0);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/laDefense.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n tint(0, 153, 204, 126); // Tint blue and set transparency\n image(img, 50, 0);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/laDefense.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n tint(255, 126); // Apply transparency without changing color\n image(img, 50, 0);\n}\n\n
" + ], + alt: + '2 side by side images of umbrella and ceiling, one image with blue tint\nImages of umbrella and ceiling, one half of image with blue tint\n2 side by side images of umbrella and ceiling, one image translucent', + class: 'p5', + module: 'Image', + submodule: 'Loading & Displaying', + overloads: [ + { + line: 298, + params: [ + { + name: 'v1', + description: + '

red or hue value relative to\n the current color range

\n', + type: 'Number' + }, + { + name: 'v2', + description: + '

green or saturation value\n relative to the current color range

\n', + type: 'Number' + }, + { + name: 'v3', + description: + '

blue or brightness value\n relative to the current color range

\n', + type: 'Number' + }, + { + name: 'alpha', + description: '', + type: 'Number', + optional: true + } + ] + }, + { + line: 371, + params: [ + { + name: 'value', + description: '

a color string

\n', + type: 'String' + } + ] + }, + { + line: 376, + params: [ + { + name: 'gray', + description: '

a gray value

\n', + type: 'Number' + }, + { + name: 'alpha', + description: '', + type: 'Number', + optional: true + } + ] + }, + { + line: 382, + params: [ + { + name: 'values', + description: + '

an array containing the red,green,blue &\n and alpha components of the color

\n', + type: 'Number[]' + } + ] + }, + { + line: 388, + params: [ + { + name: 'color', + description: '

the tint color

\n', + type: 'p5.Color' + } + ] + } + ] + }, + { + file: 'src/image/loading_displaying.js', + line: 398, + description: + '

Removes the current fill value for displaying images and reverts to\ndisplaying images with their original hues.

\n', + itemtype: 'method', + name: 'noTint', + example: [ + "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n tint(0, 153, 204); // Tint blue\n image(img, 0, 0);\n noTint(); // Disable tint\n image(img, 50, 0);\n}\n\n
" + ], + alt: '2 side by side images of bricks, left image with blue tint', + class: 'p5', + module: 'Image', + submodule: 'Loading & Displaying' + }, + { + file: 'src/image/loading_displaying.js', + line: 464, + description: + '

Set image mode. Modifies the location from which images are drawn by\nchanging the way in which parameters given to image() are interpreted.\nThe default mode is imageMode(CORNER), which interprets the second and\nthird parameters of image() as the upper-left corner of the image. If\ntwo additional parameters are specified, they are used to set the image's\nwidth and height.\n

\nimageMode(CORNERS) interprets the second and third parameters of image()\nas the location of one corner, and the fourth and fifth parameters as the\nopposite corner.\n

\nimageMode(CENTER) interprets the second and third parameters of image()\nas the image's center point. If two additional parameters are specified,\nthey are used to set the image's width and height.

\n', + itemtype: 'method', + name: 'imageMode', + params: [ + { + name: 'mode', + description: '

either CORNER, CORNERS, or CENTER

\n', + type: 'Constant' + } + ], + example: [ + "\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n imageMode(CORNER);\n image(img, 10, 10, 50, 50);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n imageMode(CORNERS);\n image(img, 10, 10, 90, 40);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n imageMode(CENTER);\n image(img, 50, 50, 80, 80);\n}\n\n
" + ], + alt: + 'small square image of bricks\nhorizontal rectangle image of bricks\nlarge square image of bricks', + class: 'p5', + module: 'Image', + submodule: 'Loading & Displaying' + }, + { + file: 'src/image/p5.Image.js', + line: 9, + description: + '

This module defines the p5.Image class and P5 methods for\ndrawing images to the main display canvas.

\n', + class: 'p5.Image', + module: 'Image', + submodule: 'Image' + }, + { + file: 'src/image/p5.Image.js', + line: 90, + description: '

Image width.

\n', + itemtype: 'property', + name: 'width', + type: 'Number', + readonly: '', + example: [ + "\n
\nlet img;\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n createCanvas(100, 100);\n image(img, 0, 0);\n for (let i = 0; i < img.width; i++) {\n let c = img.get(i, img.height / 2);\n stroke(c);\n line(i, height / 2, i, height);\n }\n}\n
" + ], + alt: + 'rocky mountains in top and horizontal lines in corresponding colors in bottom.', + class: 'p5.Image', + module: 'Image', + submodule: 'Image' + }, + { + file: 'src/image/p5.Image.js', + line: 117, + description: '

Image height.

\n', + itemtype: 'property', + name: 'height', + type: 'Number', + readonly: '', + example: [ + "\n
\nlet img;\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n createCanvas(100, 100);\n image(img, 0, 0);\n for (let i = 0; i < img.height; i++) {\n let c = img.get(img.width / 2, i);\n stroke(c);\n line(0, i, width / 2, i);\n }\n}\n
" + ], + alt: + 'rocky mountains on right and vertical lines in corresponding colors on left.', + class: 'p5.Image', + module: 'Image', + submodule: 'Image' + }, + { + file: 'src/image/p5.Image.js', + line: 153, + description: + '

Array containing the values for all the pixels in the display window.\nThese values are numbers. This array is the size (include an appropriate\nfactor for pixelDensity) of the display window x4,\nrepresenting the R, G, B, A values in order for each pixel, moving from\nleft to right across each row, then down each column. Retina and other\nhigh denisty displays may have more pixels (by a factor of\npixelDensity^2).\nFor example, if the image is 100x100 pixels, there will be 40,000. With\npixelDensity = 2, there will be 160,000. The first four values\n(indices 0-3) in the array will be the R, G, B, A values of the pixel at\n(0, 0). The second four values (indices 4-7) will contain the R, G, B, A\nvalues of the pixel at (1, 0). More generally, to set values for a pixel\nat (x, y):

\n
let d = pixelDensity();\nfor (let i = 0; i < d; i++) {\n  for (let j = 0; j < d; j++) {\n    // loop over\n    index = 4 * ((y * d + j) * width * d + (x * d + i));\n    pixels[index] = r;\n    pixels[index+1] = g;\n    pixels[index+2] = b;\n    pixels[index+3] = a;\n  }\n}\n
\n



\nBefore accessing this array, the data must loaded with the loadPixels()\nfunction. After the array data has been modified, the updatePixels()\nfunction must be run to update the changes.

\n', + itemtype: 'property', + name: 'pixels', + type: 'Number[]', + example: [ + '\n
\n\nlet img = createImage(66, 66);\nimg.loadPixels();\nfor (let i = 0; i < img.width; i++) {\n for (let j = 0; j < img.height; j++) {\n img.set(i, j, color(0, 90, 102));\n }\n}\nimg.updatePixels();\nimage(img, 17, 17);\n\n
\n
\n\nlet pink = color(255, 102, 204);\nlet img = createImage(66, 66);\nimg.loadPixels();\nfor (let i = 0; i < 4 * (width * height / 2); i += 4) {\n img.pixels[i] = red(pink);\n img.pixels[i + 1] = green(pink);\n img.pixels[i + 2] = blue(pink);\n img.pixels[i + 3] = alpha(pink);\n}\nimg.updatePixels();\nimage(img, 17, 17);\n\n
' + ], + alt: + '66x66 turquoise rect in center of canvas\n66x66 pink rect in center of canvas', + class: 'p5.Image', + module: 'Image', + submodule: 'Image' + }, + { + file: 'src/image/p5.Image.js', + line: 223, + description: '

Helper fxn for sharing pixel methods

\n', + class: 'p5.Image', + module: 'Image', + submodule: 'Image' + }, + { + file: 'src/image/p5.Image.js', + line: 232, + description: + '

Loads the pixels data for this image into the [pixels] attribute.

\n', + itemtype: 'method', + name: 'loadPixels', + example: [ + "\n
\nlet myImage;\nlet halfImage;\n\nfunction preload() {\n myImage = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n myImage.loadPixels();\n halfImage = 4 * myImage.width * myImage.height / 2;\n for (let i = 0; i < halfImage; i++) {\n myImage.pixels[i + halfImage] = myImage.pixels[i];\n }\n myImage.updatePixels();\n}\n\nfunction draw() {\n image(myImage, 0, 0, width, height);\n}\n
" + ], + alt: '2 images of rocky mountains vertically stacked', + class: 'p5.Image', + module: 'Image', + submodule: 'Image' + }, + { + file: 'src/image/p5.Image.js', + line: 268, + description: + '

Updates the backing canvas for this image with the contents of\nthe [pixels] array.

\n', + itemtype: 'method', + name: 'updatePixels', + example: [ + "\n
\nlet myImage;\nlet halfImage;\n\nfunction preload() {\n myImage = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n myImage.loadPixels();\n halfImage = 4 * myImage.width * myImage.height / 2;\n for (let i = 0; i < halfImage; i++) {\n myImage.pixels[i + halfImage] = myImage.pixels[i];\n }\n myImage.updatePixels();\n}\n\nfunction draw() {\n image(myImage, 0, 0, width, height);\n}\n
" + ], + alt: '2 images of rocky mountains vertically stacked', + class: 'p5.Image', + module: 'Image', + submodule: 'Image', + overloads: [ + { + line: 268, + params: [ + { + name: 'x', + description: + '

x-offset of the target update area for the\n underlying canvas

\n', + type: 'Integer' + }, + { + name: 'y', + description: + '

y-offset of the target update area for the\n underlying canvas

\n', + type: 'Integer' + }, + { + name: 'w', + description: + '

height of the target update area for the\n underlying canvas

\n', + type: 'Integer' + }, + { + name: 'h', + description: + '

height of the target update area for the\n underlying canvas

\n', + type: 'Integer' + } + ] + }, + { + line: 308, + params: [] + } + ] + }, + { + file: 'src/image/p5.Image.js', + line: 316, + description: + '

Get a region of pixels from an image.

\n

If no params are passed, the whole image is returned.\nIf x and y are the only params passed a single pixel is extracted.\nIf all params are passed a rectangle region is extracted and a p5.Image\nis returned.

\n', + itemtype: 'method', + name: 'get', + return: { + description: 'the rectangle p5.Image', + type: 'p5.Image' + }, + example: [ + "\n
\nlet myImage;\nlet c;\n\nfunction preload() {\n myImage = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n background(myImage);\n noStroke();\n c = myImage.get(60, 90);\n fill(c);\n rect(25, 25, 50, 50);\n}\n\n//get() returns color here\n
" + ], + alt: 'image of rocky mountains with 50x50 green rect in front', + class: 'p5.Image', + module: 'Image', + submodule: 'Image', + overloads: [ + { + line: 316, + params: [ + { + name: 'x', + description: '

x-coordinate of the pixel

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y-coordinate of the pixel

\n', + type: 'Number' + }, + { + name: 'w', + description: '

width

\n', + type: 'Number' + }, + { + name: 'h', + description: '

height

\n', + type: 'Number' + } + ], + return: { + description: 'the rectangle p5.Image', + type: 'p5.Image' + } + }, + { + line: 354, + params: [], + return: { + description: 'the whole p5.Image', + type: 'p5.Image' + } + }, + { + line: 358, + params: [ + { + name: 'x', + description: '', + type: 'Number' + }, + { + name: 'y', + description: '', + type: 'Number' + } + ], + return: { + description: 'color of pixel at x,y in array format [R, G, B, A]', + type: 'Number[]' + } + } + ] + }, + { + file: 'src/image/p5.Image.js', + line: 371, + description: + '

Set the color of a single pixel or write an image into\nthis p5.Image.

\n

Note that for a large number of pixels this will\nbe slower than directly manipulating the pixels array\nand then calling updatePixels().

\n', + itemtype: 'method', + name: 'set', + params: [ + { + name: 'x', + description: '

x-coordinate of the pixel

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y-coordinate of the pixel

\n', + type: 'Number' + }, + { + name: 'a', + description: + '

grayscale value | pixel array |\n a p5.Color | image to copy

\n', + type: 'Number|Number[]|Object' + } + ], + example: [ + '\n
\n\nlet img = createImage(66, 66);\nimg.loadPixels();\nfor (let i = 0; i < img.width; i++) {\n for (let j = 0; j < img.height; j++) {\n img.set(i, j, color(0, 90, 102, (i % img.width) * 2));\n }\n}\nimg.updatePixels();\nimage(img, 17, 17);\nimage(img, 34, 34);\n\n
' + ], + alt: + '2 gradated dark turquoise rects fade left. 1 center 1 bottom right of canvas', + class: 'p5.Image', + module: 'Image', + submodule: 'Image' + }, + { + file: 'src/image/p5.Image.js', + line: 409, + description: + '

Resize the image to a new width and height. To make the image scale\nproportionally, use 0 as the value for the wide or high parameter.\nFor instance, to make the width of an image 150 pixels, and change\nthe height using the same proportion, use resize(150, 0).

\n', + itemtype: 'method', + name: 'resize', + params: [ + { + name: 'width', + description: '

the resized image width

\n', + type: 'Number' + }, + { + name: 'height', + description: '

the resized image height

\n', + type: 'Number' + } + ], + example: [ + "\n
\nlet img;\n\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\n\nfunction draw() {\n image(img, 0, 0);\n}\n\nfunction mousePressed() {\n img.resize(50, 100);\n}\n
" + ], + alt: 'image of rocky mountains. zoomed in', + class: 'p5.Image', + module: 'Image', + submodule: 'Image' + }, + { + file: 'src/image/p5.Image.js', + line: 494, + description: + '

Copies a region of pixels from one image to another. If no\nsrcImage is specified this is used as the source. If the source\nand destination regions aren't the same size, it will\nautomatically resize source pixels to fit the specified\ntarget region.

\n', + itemtype: 'method', + name: 'copy', + example: [ + "\n
\nlet photo;\nlet bricks;\nlet x;\nlet y;\n\nfunction preload() {\n photo = loadImage('assets/rockies.jpg');\n bricks = loadImage('assets/bricks.jpg');\n}\n\nfunction setup() {\n x = bricks.width / 2;\n y = bricks.height / 2;\n photo.copy(bricks, 0, 0, x, y, 0, 0, x, y);\n image(photo, 0, 0);\n}\n
" + ], + alt: + 'image of rocky mountains and smaller image on top of bricks at top left', + class: 'p5.Image', + module: 'Image', + submodule: 'Image', + overloads: [ + { + line: 494, + params: [ + { + name: 'srcImage', + description: '

source image

\n', + type: 'p5.Image|p5.Element' + }, + { + name: 'sx', + description: + '

X coordinate of the source's upper left corner

\n', + type: 'Integer' + }, + { + name: 'sy', + description: + '

Y coordinate of the source's upper left corner

\n', + type: 'Integer' + }, + { + name: 'sw', + description: '

source image width

\n', + type: 'Integer' + }, + { + name: 'sh', + description: '

source image height

\n', + type: 'Integer' + }, + { + name: 'dx', + description: + '

X coordinate of the destination's upper left corner

\n', + type: 'Integer' + }, + { + name: 'dy', + description: + '

Y coordinate of the destination's upper left corner

\n', + type: 'Integer' + }, + { + name: 'dw', + description: '

destination image width

\n', + type: 'Integer' + }, + { + name: 'dh', + description: '

destination image height

\n', + type: 'Integer' + } + ] + }, + { + line: 535, + params: [ + { + name: 'sx', + description: '', + type: 'Integer' + }, + { + name: 'sy', + description: '', + type: 'Integer' + }, + { + name: 'sw', + description: '', + type: 'Integer' + }, + { + name: 'sh', + description: '', + type: 'Integer' + }, + { + name: 'dx', + description: '', + type: 'Integer' + }, + { + name: 'dy', + description: '', + type: 'Integer' + }, + { + name: 'dw', + description: '', + type: 'Integer' + }, + { + name: 'dh', + description: '', + type: 'Integer' + } + ] + } + ] + }, + { + file: 'src/image/p5.Image.js', + line: 575, + description: + '

Masks part of an image from displaying by loading another\nimage and using it's alpha channel as an alpha channel for\nthis image.

\n', + itemtype: 'method', + name: 'mask', + params: [ + { + name: 'srcImage', + description: '

source image

\n', + type: 'p5.Image' + } + ], + example: [ + "\n
\nlet photo, maskImage;\nfunction preload() {\n photo = loadImage('assets/rockies.jpg');\n maskImage = loadImage('assets/mask2.png');\n}\n\nfunction setup() {\n createCanvas(100, 100);\n photo.mask(maskImage);\n image(photo, 0, 0);\n}\n
" + ], + alt: + 'image of rocky mountains with white at right\n\n\nhttp://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/', + class: 'p5.Image', + module: 'Image', + submodule: 'Image' + }, + { + file: 'src/image/p5.Image.js', + line: 638, + description: + '

Applies an image filter to a p5.Image

\n', + itemtype: 'method', + name: 'filter', + params: [ + { + name: 'filterType', + description: + '

either THRESHOLD, GRAY, OPAQUE, INVERT,\n POSTERIZE, BLUR, ERODE, DILATE or BLUR.\n See Filters.js for docs on\n each available filter

\n', + type: 'Constant' + }, + { + name: 'filterParam', + description: + '

an optional parameter unique\n to each filter, see above

\n', + type: 'Number', + optional: true + } + ], + example: [ + "\n
\nlet photo1;\nlet photo2;\n\nfunction preload() {\n photo1 = loadImage('assets/rockies.jpg');\n photo2 = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n photo2.filter(GRAY);\n image(photo1, 0, 0);\n image(photo2, width / 2, 0);\n}\n
" + ], + alt: + '2 images of rocky mountains left one in color, right in black and white', + class: 'p5.Image', + module: 'Image', + submodule: 'Image' + }, + { + file: 'src/image/p5.Image.js', + line: 674, + description: + '

Copies a region of pixels from one image to another, using a specified\nblend mode to do the operation.

\n', + itemtype: 'method', + name: 'blend', + example: [ + "\n
\nlet mountains;\nlet bricks;\n\nfunction preload() {\n mountains = loadImage('assets/rockies.jpg');\n bricks = loadImage('assets/bricks_third.jpg');\n}\n\nfunction setup() {\n mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, ADD);\n image(mountains, 0, 0);\n image(bricks, 0, 0);\n}\n
\n
\nlet mountains;\nlet bricks;\n\nfunction preload() {\n mountains = loadImage('assets/rockies.jpg');\n bricks = loadImage('assets/bricks_third.jpg');\n}\n\nfunction setup() {\n mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, DARKEST);\n image(mountains, 0, 0);\n image(bricks, 0, 0);\n}\n
\n
\nlet mountains;\nlet bricks;\n\nfunction preload() {\n mountains = loadImage('assets/rockies.jpg');\n bricks = loadImage('assets/bricks_third.jpg');\n}\n\nfunction setup() {\n mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, LIGHTEST);\n image(mountains, 0, 0);\n image(bricks, 0, 0);\n}\n
" + ], + alt: + 'image of rocky mountains. Brick images on left and right. Right overexposed\nimage of rockies. Brickwall images on left and right. Right mortar transparent\nimage of rockies. Brickwall images on left and right. Right translucent', + class: 'p5.Image', + module: 'Image', + submodule: 'Image', + overloads: [ + { + line: 674, + params: [ + { + name: 'srcImage', + description: '

source image

\n', + type: 'p5.Image' + }, + { + name: 'sx', + description: + '

X coordinate of the source's upper left corner

\n', + type: 'Integer' + }, + { + name: 'sy', + description: + '

Y coordinate of the source's upper left corner

\n', + type: 'Integer' + }, + { + name: 'sw', + description: '

source image width

\n', + type: 'Integer' + }, + { + name: 'sh', + description: '

source image height

\n', + type: 'Integer' + }, + { + name: 'dx', + description: + '

X coordinate of the destination's upper left corner

\n', + type: 'Integer' + }, + { + name: 'dy', + description: + '

Y coordinate of the destination's upper left corner

\n', + type: 'Integer' + }, + { + name: 'dw', + description: '

destination image width

\n', + type: 'Integer' + }, + { + name: 'dh', + description: '

destination image height

\n', + type: 'Integer' + }, + { + name: 'blendMode', + description: + '

the blend mode. either\n BLEND, DARKEST, LIGHTEST, DIFFERENCE,\n MULTIPLY, EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT,\n SOFT_LIGHT, DODGE, BURN, ADD or NORMAL.

\n

Available blend modes are: normal | multiply | screen | overlay |\n darken | lighten | color-dodge | color-burn | hard-light |\n soft-light | difference | exclusion | hue | saturation |\n color | luminosity

\n

http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/

\n', + type: 'Constant' + } + ] + }, + { + line: 753, + params: [ + { + name: 'sx', + description: '', + type: 'Integer' + }, + { + name: 'sy', + description: '', + type: 'Integer' + }, + { + name: 'sw', + description: '', + type: 'Integer' + }, + { + name: 'sh', + description: '', + type: 'Integer' + }, + { + name: 'dx', + description: '', + type: 'Integer' + }, + { + name: 'dy', + description: '', + type: 'Integer' + }, + { + name: 'dw', + description: '', + type: 'Integer' + }, + { + name: 'dh', + description: '', + type: 'Integer' + }, + { + name: 'blendMode', + description: '', + type: 'Constant' + } + ] + } + ] + }, + { + file: 'src/image/p5.Image.js', + line: 796, + description: + '

Saves the image to a file and force the browser to download it.\nAccepts two strings for filename and file extension\nSupports png (default) and jpg.

\n', + itemtype: 'method', + name: 'save', + params: [ + { + name: 'filename', + description: '

give your file a name

\n', + type: 'String' + }, + { + name: 'extension', + description: '

'png' or 'jpg'

\n', + type: 'String' + } + ], + example: [ + "\n
\nlet photo;\n\nfunction preload() {\n photo = loadImage('assets/rockies.jpg');\n}\n\nfunction draw() {\n image(photo, 0, 0);\n}\n\nfunction keyTyped() {\n if (key === 's') {\n photo.save('photo', 'png');\n }\n}\n
" + ], + alt: 'image of rocky mountains.', + class: 'p5.Image', + module: 'Image', + submodule: 'Image' + }, + { + file: 'src/image/pixels.js', + line: 14, + description: + '

Uint8ClampedArray\ncontaining the values for all the pixels in the display window.\nThese values are numbers. This array is the size (include an appropriate\nfactor for pixelDensity) of the display window x4,\nrepresenting the R, G, B, A values in order for each pixel, moving from\nleft to right across each row, then down each column. Retina and other\nhigh density displays will have more pixels[] (by a factor of\npixelDensity^2).\nFor example, if the image is 100x100 pixels, there will be 40,000. On a\nretina display, there will be 160,000.\n

\nThe first four values (indices 0-3) in the array will be the R, G, B, A\nvalues of the pixel at (0, 0). The second four values (indices 4-7) will\ncontain the R, G, B, A values of the pixel at (1, 0). More generally, to\nset values for a pixel at (x, y):

\n
let d = pixelDensity();\nfor (let i = 0; i < d; i++) {\n  for (let j = 0; j < d; j++) {\n    // loop over\n    index = 4 * ((y * d + j) * width * d + (x * d + i));\n    pixels[index] = r;\n    pixels[index+1] = g;\n    pixels[index+2] = b;\n    pixels[index+3] = a;\n  }\n}\n
\n

While the above method is complex, it is flexible enough to work with\nany pixelDensity. Note that set() will automatically take care of\nsetting all the appropriate values in pixels[] for a given (x, y) at\nany pixelDensity, but the performance may not be as fast when lots of\nmodifications are made to the pixel array.\n

\nBefore accessing this array, the data must loaded with the loadPixels()\nfunction. After the array data has been modified, the updatePixels()\nfunction must be run to update the changes.\n

\nNote that this is not a standard javascript array. This means that\nstandard javascript functions such as slice() or\narrayCopy() do not\nwork.

', + itemtype: 'property', + name: 'pixels', + type: 'Number[]', + example: [ + '\n
\n\nlet pink = color(255, 102, 204);\nloadPixels();\nlet d = pixelDensity();\nlet halfImage = 4 * (width * d) * (height / 2 * d);\nfor (let i = 0; i < halfImage; i += 4) {\n pixels[i] = red(pink);\n pixels[i + 1] = green(pink);\n pixels[i + 2] = blue(pink);\n pixels[i + 3] = alpha(pink);\n}\nupdatePixels();\n\n
' + ], + alt: 'top half of canvas pink, bottom grey', + class: 'p5', + module: 'Image', + submodule: 'Pixels' + }, + { + file: 'src/image/pixels.js', + line: 83, + description: + '

Copies a region of pixels from one image to another, using a specified\nblend mode to do the operation.

\n', + itemtype: 'method', + name: 'blend', + example: [ + "\n
\nlet img0;\nlet img1;\n\nfunction preload() {\n img0 = loadImage('assets/rockies.jpg');\n img1 = loadImage('assets/bricks_third.jpg');\n}\n\nfunction setup() {\n background(img0);\n image(img1, 0, 0);\n blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, LIGHTEST);\n}\n
\n
\nlet img0;\nlet img1;\n\nfunction preload() {\n img0 = loadImage('assets/rockies.jpg');\n img1 = loadImage('assets/bricks_third.jpg');\n}\n\nfunction setup() {\n background(img0);\n image(img1, 0, 0);\n blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, DARKEST);\n}\n
\n
\nlet img0;\nlet img1;\n\nfunction preload() {\n img0 = loadImage('assets/rockies.jpg');\n img1 = loadImage('assets/bricks_third.jpg');\n}\n\nfunction setup() {\n background(img0);\n image(img1, 0, 0);\n blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, ADD);\n}\n
" + ], + alt: + 'image of rocky mountains. Brick images on left and right. Right overexposed\nimage of rockies. Brickwall images on left and right. Right mortar transparent\nimage of rockies. Brickwall images on left and right. Right translucent', + class: 'p5', + module: 'Image', + submodule: 'Pixels', + overloads: [ + { + line: 83, + params: [ + { + name: 'srcImage', + description: '

source image

\n', + type: 'p5.Image' + }, + { + name: 'sx', + description: + '

X coordinate of the source's upper left corner

\n', + type: 'Integer' + }, + { + name: 'sy', + description: + '

Y coordinate of the source's upper left corner

\n', + type: 'Integer' + }, + { + name: 'sw', + description: '

source image width

\n', + type: 'Integer' + }, + { + name: 'sh', + description: '

source image height

\n', + type: 'Integer' + }, + { + name: 'dx', + description: + '

X coordinate of the destination's upper left corner

\n', + type: 'Integer' + }, + { + name: 'dy', + description: + '

Y coordinate of the destination's upper left corner

\n', + type: 'Integer' + }, + { + name: 'dw', + description: '

destination image width

\n', + type: 'Integer' + }, + { + name: 'dh', + description: '

destination image height

\n', + type: 'Integer' + }, + { + name: 'blendMode', + description: + '

the blend mode. either\n BLEND, DARKEST, LIGHTEST, DIFFERENCE,\n MULTIPLY, EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT,\n SOFT_LIGHT, DODGE, BURN, ADD or NORMAL.

\n', + type: 'Constant' + } + ] + }, + { + line: 156, + params: [ + { + name: 'sx', + description: '', + type: 'Integer' + }, + { + name: 'sy', + description: '', + type: 'Integer' + }, + { + name: 'sw', + description: '', + type: 'Integer' + }, + { + name: 'sh', + description: '', + type: 'Integer' + }, + { + name: 'dx', + description: '', + type: 'Integer' + }, + { + name: 'dy', + description: '', + type: 'Integer' + }, + { + name: 'dw', + description: '', + type: 'Integer' + }, + { + name: 'dh', + description: '', + type: 'Integer' + }, + { + name: 'blendMode', + description: '', + type: 'Constant' + } + ] + } + ] + }, + { + file: 'src/image/pixels.js', + line: 177, + description: + '

Copies a region of the canvas to another region of the canvas\nand copies a region of pixels from an image used as the srcImg parameter\ninto the canvas srcImage is specified this is used as the source. If\nthe source and destination regions aren't the same size, it will\nautomatically resize source pixels to fit the specified\ntarget region.

\n', + itemtype: 'method', + name: 'copy', + example: [ + "\n
\nlet img;\n\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n background(img);\n copy(img, 7, 22, 10, 10, 35, 25, 50, 50);\n stroke(255);\n noFill();\n // Rectangle shows area being copied\n rect(7, 22, 10, 10);\n}\n
" + ], + alt: + 'image of rocky mountains. Brick images on left and right. Right overexposed\nimage of rockies. Brickwall images on left and right. Right mortar transparent\nimage of rockies. Brickwall images on left and right. Right translucent', + class: 'p5', + module: 'Image', + submodule: 'Pixels', + overloads: [ + { + line: 177, + params: [ + { + name: 'srcImage', + description: '

source image

\n', + type: 'p5.Image|p5.Element' + }, + { + name: 'sx', + description: + '

X coordinate of the source's upper left corner

\n', + type: 'Integer' + }, + { + name: 'sy', + description: + '

Y coordinate of the source's upper left corner

\n', + type: 'Integer' + }, + { + name: 'sw', + description: '

source image width

\n', + type: 'Integer' + }, + { + name: 'sh', + description: '

source image height

\n', + type: 'Integer' + }, + { + name: 'dx', + description: + '

X coordinate of the destination's upper left corner

\n', + type: 'Integer' + }, + { + name: 'dy', + description: + '

Y coordinate of the destination's upper left corner

\n', + type: 'Integer' + }, + { + name: 'dw', + description: '

destination image width

\n', + type: 'Integer' + }, + { + name: 'dh', + description: '

destination image height

\n', + type: 'Integer' + } + ] + }, + { + line: 220, + params: [ + { + name: 'sx', + description: '', + type: 'Integer' + }, + { + name: 'sy', + description: '', + type: 'Integer' + }, + { + name: 'sw', + description: '', + type: 'Integer' + }, + { + name: 'sh', + description: '', + type: 'Integer' + }, + { + name: 'dx', + description: '', + type: 'Integer' + }, + { + name: 'dy', + description: '', + type: 'Integer' + }, + { + name: 'dw', + description: '', + type: 'Integer' + }, + { + name: 'dh', + description: '', + type: 'Integer' + } + ] + } + ] + }, + { + file: 'src/image/pixels.js', + line: 236, + description: + '

Applies a filter to the canvas.\n

\n

The presets options are:\n

\n

THRESHOLD\nConverts the image to black and white pixels depending if they are above or\nbelow the threshold defined by the level parameter. The parameter must be\nbetween 0.0 (black) and 1.0 (white). If no level is specified, 0.5 is used.\n

\n

GRAY\nConverts any colors in the image to grayscale equivalents. No parameter\nis used.\n

\n

OPAQUE\nSets the alpha channel to entirely opaque. No parameter is used.\n

\n

INVERT\nSets each pixel to its inverse value. No parameter is used.\n

\n

POSTERIZE\nLimits each channel of the image to the number of colors specified as the\nparameter. The parameter can be set to values between 2 and 255, but\nresults are most noticeable in the lower ranges.\n

\n

BLUR\nExecutes a Gaussian blur with the level parameter specifying the extent\nof the blurring. If no parameter is used, the blur is equivalent to\nGaussian blur of radius 1. Larger values increase the blur.\n

\n

ERODE\nReduces the light areas. No parameter is used.\n

\n

DILATE\nIncreases the light areas. No parameter is used.

\n', + itemtype: 'method', + name: 'filter', + params: [ + { + name: 'filterType', + description: + '

either THRESHOLD, GRAY, OPAQUE, INVERT,\n POSTERIZE, BLUR, ERODE, DILATE or BLUR.\n See Filters.js for docs on\n each available filter

\n', + type: 'Constant' + }, + { + name: 'filterParam', + description: + '

an optional parameter unique\n to each filter, see above

\n', + type: 'Number', + optional: true + } + ], + example: [ + "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n filter(THRESHOLD);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n filter(GRAY);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n filter(OPAQUE);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n filter(INVERT);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n filter(POSTERIZE, 3);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n filter(DILATE);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n filter(BLUR, 3);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/bricks.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n filter(ERODE);\n}\n\n
" + ], + alt: + 'black and white image of a brick wall.\ngreyscale image of a brickwall\nimage of a brickwall\njade colored image of a brickwall\nred and pink image of a brickwall\nimage of a brickwall\nblurry image of a brickwall\nimage of a brickwall\nimage of a brickwall with less detail', + class: 'p5', + module: 'Image', + submodule: 'Pixels' + }, + { + file: 'src/image/pixels.js', + line: 415, + description: + '

Get a region of pixels, or a single pixel, from the canvas.

\n

Returns an array of [R,G,B,A] values for any pixel or grabs a section of\nan image. If no parameters are specified, the entire image is returned.\nUse the x and y parameters to get the value of one pixel. Get a section of\nthe display window by specifying additional w and h parameters. When\ngetting an image, the x and y parameters define the coordinates for the\nupper-left corner of the image, regardless of the current imageMode().\n

\nGetting the color of a single pixel with get(x, y) is easy, but not as fast\nas grabbing the data directly from pixels[]. The equivalent statement to\nget(x, y) using pixels[] with pixel density d is

\n
let x, y, d; // set these to the coordinates\nlet off = (y * width + x) * d * 4;\nlet components = [\n  pixels[off],\n  pixels[off + 1],\n  pixels[off + 2],\n  pixels[off + 3]\n];\nprint(components);\n
\n



\n

See the reference for pixels[] for more information.

\n

If you want to extract an array of colors or a subimage from an p5.Image object,\ntake a look at p5.Image.get()

\n', + itemtype: 'method', + name: 'get', + return: { + description: 'the rectangle p5.Image', + type: 'p5.Image' + }, + example: [ + "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n let c = get();\n image(c, width / 2, 0);\n}\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\nfunction setup() {\n image(img, 0, 0);\n let c = get(50, 90);\n fill(c);\n noStroke();\n rect(25, 25, 50, 50);\n}\n\n
" + ], + alt: + '2 images of the rocky mountains, side-by-side\nImage of the rocky mountains with 50x50 green rect in center of canvas', + class: 'p5', + module: 'Image', + submodule: 'Pixels', + overloads: [ + { + line: 415, + params: [ + { + name: 'x', + description: '

x-coordinate of the pixel

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y-coordinate of the pixel

\n', + type: 'Number' + }, + { + name: 'w', + description: '

width

\n', + type: 'Number' + }, + { + name: 'h', + description: '

height

\n', + type: 'Number' + } + ], + return: { + description: 'the rectangle p5.Image', + type: 'p5.Image' + } + }, + { + line: 488, + params: [], + return: { + description: 'the whole p5.Image', + type: 'p5.Image' + } + }, + { + line: 492, + params: [ + { + name: 'x', + description: '', + type: 'Number' + }, + { + name: 'y', + description: '', + type: 'Number' + } + ], + return: { + description: 'color of pixel at x,y in array format [R, G, B, A]', + type: 'Number[]' + } + } + ] + }, + { + file: 'src/image/pixels.js', + line: 503, + description: + '

Loads the pixel data for the display window into the pixels[] array. This\nfunction must always be called before reading from or writing to pixels[].\nNote that only changes made with set() or direct manipulation of pixels[]\nwill occur.

\n', + itemtype: 'method', + name: 'loadPixels', + example: [ + "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n image(img, 0, 0, width, height);\n let d = pixelDensity();\n let halfImage = 4 * (width * d) * (height * d / 2);\n loadPixels();\n for (let i = 0; i < halfImage; i++) {\n pixels[i + halfImage] = pixels[i];\n }\n updatePixels();\n}\n\n
" + ], + alt: + 'two images of the rocky mountains. one on top, one on bottom of canvas.', + class: 'p5', + module: 'Image', + submodule: 'Pixels' + }, + { + file: 'src/image/pixels.js', + line: 540, + description: + '

Changes the color of any pixel, or writes an image directly to the\ndisplay window.

\n

The x and y parameters specify the pixel to change and the c parameter\nspecifies the color value. This can be a p5.Color object, or [R, G, B, A]\npixel array. It can also be a single grayscale value.\nWhen setting an image, the x and y parameters define the coordinates for\nthe upper-left corner of the image, regardless of the current imageMode().\n

\n

\nAfter using set(), you must call updatePixels() for your changes to appear.\nThis should be called once all pixels have been set, and must be called before\ncalling .get() or drawing the image.\n

\n

Setting the color of a single pixel with set(x, y) is easy, but not as\nfast as putting the data directly into pixels[]. Setting the pixels[]\nvalues directly may be complicated when working with a retina display,\nbut will perform better when lots of pixels need to be set directly on\nevery loop.

\n

See the reference for pixels[] for more information.

', + itemtype: 'method', + name: 'set', + params: [ + { + name: 'x', + description: '

x-coordinate of the pixel

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y-coordinate of the pixel

\n', + type: 'Number' + }, + { + name: 'c', + description: + '

insert a grayscale value | a pixel array |\n a p5.Color object | a p5.Image to copy

\n', + type: 'Number|Number[]|Object' + } + ], + example: [ + "\n
\n\nlet black = color(0);\nset(30, 20, black);\nset(85, 20, black);\nset(85, 75, black);\nset(30, 75, black);\nupdatePixels();\n\n
\n\n
\n\nfor (let i = 30; i < width - 15; i++) {\n for (let j = 20; j < height - 25; j++) {\n let c = color(204 - j, 153 - i, 0);\n set(i, j, c);\n }\n}\nupdatePixels();\n\n
\n\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n set(0, 0, img);\n updatePixels();\n line(0, 0, width, height);\n line(0, height, width, 0);\n}\n\n
" + ], + alt: + "4 black points in the shape of a square middle-right of canvas.\nsquare with orangey-brown gradient lightening at bottom right.\nimage of the rocky mountains. with lines like an 'x' through the center.", + class: 'p5', + module: 'Image', + submodule: 'Pixels' + }, + { + file: 'src/image/pixels.js', + line: 614, + description: + '

Updates the display window with the data in the pixels[] array.\nUse in conjunction with loadPixels(). If you're only reading pixels from\nthe array, there's no need to call updatePixels() โ€” updating is only\nnecessary to apply changes. updatePixels() should be called anytime the\npixels array is manipulated or set() is called, and only changes made with\nset() or direct changes to pixels[] will occur.

\n', + itemtype: 'method', + name: 'updatePixels', + params: [ + { + name: 'x', + description: + '

x-coordinate of the upper-left corner of region\n to update

\n', + type: 'Number', + optional: true + }, + { + name: 'y', + description: + '

y-coordinate of the upper-left corner of region\n to update

\n', + type: 'Number', + optional: true + }, + { + name: 'w', + description: '

width of region to update

\n', + type: 'Number', + optional: true + }, + { + name: 'h', + description: '

height of region to update

\n', + type: 'Number', + optional: true + } + ], + example: [ + "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/rockies.jpg');\n}\n\nfunction setup() {\n image(img, 0, 0, width, height);\n let d = pixelDensity();\n let halfImage = 4 * (width * d) * (height * d / 2);\n loadPixels();\n for (let i = 0; i < halfImage; i++) {\n pixels[i + halfImage] = pixels[i];\n }\n updatePixels();\n}\n\n
" + ], + alt: + 'two images of the rocky mountains. one on top, one on bottom of canvas.', + class: 'p5', + module: 'Image', + submodule: 'Pixels' + }, + { + file: 'src/io/files.js', + line: 19, + description: + '

Loads a JSON file from a file or a URL, and returns an Object.\nNote that even if the JSON file contains an Array, an Object will be\nreturned with index numbers as keys.

\n

This method is asynchronous, meaning it may not finish before the next\nline in your sketch is executed. JSONP is supported via a polyfill and you\ncan pass in as the second argument an object with definitions of the json\ncallback following the syntax specified here.

\n

This method is suitable for fetching files up to size of 64MB.

\n', + itemtype: 'method', + name: 'loadJSON', + return: { + description: 'JSON data', + type: 'Object|Array' + }, + example: [ + '\n\n

Calling loadJSON() inside preload() guarantees to complete the\noperation before setup() and draw() are called.

\n\n
\n// Examples use USGS Earthquake API:\n// https://earthquake.usgs.gov/fdsnws/event/1/#methods\nlet earthquakes;\nfunction preload() {\n // Get the most recent earthquake in the database\n let url =\n \'https://earthquake.usgs.gov/earthquakes/feed/v1.0/\' +\n \'summary/all_day.geojson\';\n earthquakes = loadJSON(url);\n}\n\nfunction setup() {\n noLoop();\n}\n\nfunction draw() {\n background(200);\n // Get the magnitude and name of the earthquake out of the loaded JSON\n let earthquakeMag = earthquakes.features[0].properties.mag;\n let earthquakeName = earthquakes.features[0].properties.place;\n ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10);\n textAlign(CENTER);\n text(earthquakeName, 0, height - 30, width, 30);\n}\n
\n\n\n

Outside of preload(), you may supply a callback function to handle the\nobject:

\n
\nfunction setup() {\n noLoop();\n let url =\n \'https://earthquake.usgs.gov/earthquakes/feed/v1.0/\' +\n \'summary/all_day.geojson\';\n loadJSON(url, drawEarthquake);\n}\n\nfunction draw() {\n background(200);\n}\n\nfunction drawEarthquake(earthquakes) {\n // Get the magnitude and name of the earthquake out of the loaded JSON\n let earthquakeMag = earthquakes.features[0].properties.mag;\n let earthquakeName = earthquakes.features[0].properties.place;\n ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10);\n textAlign(CENTER);\n text(earthquakeName, 0, height - 30, width, 30);\n}\n
' + ], + alt: + '50x50 ellipse that changes from black to white depending on the current humidity\n50x50 ellipse that changes from black to white depending on the current humidity', + class: 'p5', + module: 'IO', + submodule: 'Input', + overloads: [ + { + line: 19, + params: [ + { + name: 'path', + description: '

name of the file or url to load

\n', + type: 'String' + }, + { + name: 'jsonpOptions', + description: '

options object for jsonp related settings

\n', + type: 'Object', + optional: true + }, + { + name: 'datatype', + description: '

"json" or "jsonp"

\n', + type: 'String', + optional: true + }, + { + name: 'callback', + description: + '

function to be executed after\n loadJSON() completes, data is passed\n in as first argument

\n', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: + '

function to be executed if\n there is an error, response is passed\n in as first argument

\n', + type: 'Function', + optional: true + } + ], + return: { + description: 'JSON data', + type: 'Object|Array' + } + }, + { + line: 105, + params: [ + { + name: 'path', + description: '', + type: 'String' + }, + { + name: 'datatype', + description: '', + type: 'String' + }, + { + name: 'callback', + description: '', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: '', + type: 'Function', + optional: true + } + ], + return: { + description: '', + type: 'Object|Array' + } + }, + { + line: 113, + params: [ + { + name: 'path', + description: '', + type: 'String' + }, + { + name: 'callback', + description: '', + type: 'Function' + }, + { + name: 'errorCallback', + description: '', + type: 'Function', + optional: true + } + ], + return: { + description: '', + type: 'Object|Array' + } + } + ] + }, + { + file: 'src/io/files.js', + line: 184, + description: + '

Reads the contents of a file and creates a String array of its individual\nlines. If the name of the file is used as the parameter, as in the above\nexample, the file must be located in the sketch directory/folder.\n

\nAlternatively, the file maybe be loaded from anywhere on the local\ncomputer using an absolute path (something that starts with / on Unix and\nLinux, or a drive letter on Windows), or the filename parameter can be a\nURL for a file found on a network.\n

\nThis method is asynchronous, meaning it may not finish before the next\nline in your sketch is executed.

\n

This method is suitable for fetching files up to size of 64MB.

\n', + itemtype: 'method', + name: 'loadStrings', + params: [ + { + name: 'filename', + description: '

name of the file or url to load

\n', + type: 'String' + }, + { + name: 'callback', + description: + '

function to be executed after loadStrings()\n completes, Array is passed in as first\n argument

\n', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: + '

function to be executed if\n there is an error, response is passed\n in as first argument

\n', + type: 'Function', + optional: true + } + ], + return: { + description: 'Array of Strings', + type: 'String[]' + }, + example: [ + '\n\n

Calling loadStrings() inside preload() guarantees to complete the\noperation before setup() and draw() are called.

\n\n
\nlet result;\nfunction preload() {\n result = loadStrings(\'assets/test.txt\');\n}\n\nfunction setup() {\n background(200);\n let ind = floor(random(result.length));\n text(result[ind], 10, 10, 80, 80);\n}\n
\n\n

Outside of preload(), you may supply a callback function to handle the\nobject:

\n\n
\nfunction setup() {\n loadStrings(\'assets/test.txt\', pickString);\n}\n\nfunction pickString(result) {\n background(200);\n let ind = floor(random(result.length));\n text(result[ind], 10, 10, 80, 80);\n}\n
' + ], + alt: + 'randomly generated text from a file, for example "i smell like butter"\nrandomly generated text from a file, for example "i have three feet"', + class: 'p5', + module: 'IO', + submodule: 'Input' + }, + { + file: 'src/io/files.js', + line: 297, + description: + '

Reads the contents of a file or URL and creates a p5.Table object with\nits values. If a file is specified, it must be located in the sketch's\n"data" folder. The filename parameter can also be a URL to a file found\nonline. By default, the file is assumed to be comma-separated (in CSV\nformat). Table only looks for a header row if the 'header' option is\nincluded.

\n\n

Possible options include:\n

    \n
  • csv - parse the table as comma-separated values
  • \n
  • tsv - parse the table as tab-separated values
  • \n
  • header - this table has a header (title) row
  • \n
\n

\n\n

When passing in multiple options, pass them in as separate parameters,\nseperated by commas. For example:\n

\n\nloadTable('my_csv_file.csv', 'csv', 'header');\n\n

\n\n

All files loaded and saved use UTF-8 encoding.

\n\n

This method is asynchronous, meaning it may not finish before the next\nline in your sketch is executed. Calling loadTable() inside preload()\nguarantees to complete the operation before setup() and draw() are called.\n

Outside of preload(), you may supply a callback function to handle the\nobject:

\n

\n\n

This method is suitable for fetching files up to size of 64MB.

\n', + itemtype: 'method', + name: 'loadTable', + return: { + description: 'Table object containing data', + type: 'Object' + }, + example: [ + '\n
\n\n// Given the following CSV file called "mammals.csv"\n// located in the project\'s "assets" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value "csv"\n //and has a header specifying the columns labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n //the file can be remote\n //table = loadTable("http://p5js.org/reference/assets/mammals.csv",\n // "csv", "header");\n}\n\nfunction setup() {\n //count the columns\n print(table.getRowCount() + \' total rows in table\');\n print(table.getColumnCount() + \' total columns in table\');\n\n print(table.getColumn(\'name\'));\n //["Goat", "Leopard", "Zebra"]\n\n //cycle through the table\n for (let r = 0; r < table.getRowCount(); r++)\n for (let c = 0; c < table.getColumnCount(); c++) {\n print(table.getString(r, c));\n }\n}\n\n
' + ], + alt: + 'randomly generated text from a file, for example "i smell like butter"\nrandomly generated text from a file, for example "i have three feet"', + class: 'p5', + module: 'IO', + submodule: 'Input', + overloads: [ + { + line: 297, + params: [ + { + name: 'filename', + description: '

name of the file or URL to load

\n', + type: 'String' + }, + { + name: 'options', + description: + '

"header" "csv" "tsv"

\n', + type: 'String' + }, + { + name: 'callback', + description: + '

function to be executed after\n loadTable() completes. On success, the\n Table object is passed in as the\n first argument.

\n', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: + '

function to be executed if\n there is an error, response is passed\n in as first argument

\n', + type: 'Function', + optional: true + } + ], + return: { + description: 'Table object containing data', + type: 'Object' + } + }, + { + line: 387, + params: [ + { + name: 'filename', + description: '', + type: 'String' + }, + { + name: 'callback', + description: '', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: '', + type: 'Function', + optional: true + } + ], + return: { + description: '', + type: 'Object' + } + } + ] + }, + { + file: 'src/io/files.js', + line: 607, + description: + '

Reads the contents of a file and creates an XML object with its values.\nIf the name of the file is used as the parameter, as in the above example,\nthe file must be located in the sketch directory/folder.

\n

Alternatively, the file maybe be loaded from anywhere on the local\ncomputer using an absolute path (something that starts with / on Unix and\nLinux, or a drive letter on Windows), or the filename parameter can be a\nURL for a file found on a network.

\n

This method is asynchronous, meaning it may not finish before the next\nline in your sketch is executed. Calling loadXML() inside preload()\nguarantees to complete the operation before setup() and draw() are called.

\n

Outside of preload(), you may supply a callback function to handle the\nobject.

\n

This method is suitable for fetching files up to size of 64MB.

\n', + itemtype: 'method', + name: 'loadXML', + params: [ + { + name: 'filename', + description: '

name of the file or URL to load

\n', + type: 'String' + }, + { + name: 'callback', + description: + '

function to be executed after loadXML()\n completes, XML object is passed in as\n first argument

\n', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: + '

function to be executed if\n there is an error, response is passed\n in as first argument

\n', + type: 'Function', + optional: true + } + ], + return: { + description: 'XML object containing data', + type: 'Object' + }, + example: [ + '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let children = xml.getChildren(\'animal\');\n\n for (let i = 0; i < children.length; i++) {\n let id = children[i].getNum(\'id\');\n let coloring = children[i].getString(\'species\');\n let name = children[i].getContent();\n print(id + \', \' + coloring + \', \' + name);\n }\n}\n\n// Sketch prints:\n// 0, Capra hircus, Goat\n// 1, Panthera pardus, Leopard\n// 2, Equus zebra, Zebra\n
' + ], + alt: 'no image displayed', + class: 'p5', + module: 'IO', + submodule: 'Input' + }, + { + file: 'src/io/files.js', + line: 718, + description: + '

This method is suitable for fetching files up to size of 64MB.

\n', + itemtype: 'method', + name: 'loadBytes', + params: [ + { + name: 'file', + description: '

name of the file or URL to load

\n', + type: 'String' + }, + { + name: 'callback', + description: + '

function to be executed after loadBytes()\n completes

\n', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: + '

function to be executed if there\n is an error

\n', + type: 'Function', + optional: true + } + ], + return: { + description: "an object whose 'bytes' property will be the loaded buffer", + type: 'Object' + }, + example: [ + "\n
\nlet data;\n\nfunction preload() {\n data = loadBytes('assets/mammals.xml');\n}\n\nfunction setup() {\n for (let i = 0; i < 5; i++) {\n console.log(data.bytes[i].toString(16));\n }\n}\n
" + ], + alt: 'no image displayed', + class: 'p5', + module: 'IO', + submodule: 'Input' + }, + { + file: 'src/io/files.js', + line: 778, + description: + '

Method for executing an HTTP GET request. If data type is not specified,\np5 will try to guess based on the URL, defaulting to text. This is equivalent to\ncalling httpDo(path, 'GET'). The 'binary' datatype will return\na Blob object, and the 'arrayBuffer' datatype will return an ArrayBuffer\nwhich can be used to initialize typed arrays (such as Uint8Array).

\n', + itemtype: 'method', + name: 'httpGet', + return: { + description: + 'A promise that resolves with the data when the operation\n completes successfully or rejects with the error after\n one occurs.', + type: 'Promise' + }, + example: [ + "\n
\n// Examples use USGS Earthquake API:\n// https://earthquake.usgs.gov/fdsnws/event/1/#methods\nlet earthquakes;\nfunction preload() {\n // Get the most recent earthquake in the database\n let url =\n 'https://earthquake.usgs.gov/fdsnws/event/1/query?' +\n 'format=geojson&limit=1&orderby=time';\n httpGet(url, 'jsonp', false, function(response) {\n // when the HTTP request completes, populate the variable that holds the\n // earthquake data used in the visualization.\n earthquakes = response;\n });\n}\n\nfunction draw() {\n if (!earthquakes) {\n // Wait until the earthquake data has loaded before drawing.\n return;\n }\n background(200);\n // Get the magnitude and name of the earthquake out of the loaded JSON\n let earthquakeMag = earthquakes.features[0].properties.mag;\n let earthquakeName = earthquakes.features[0].properties.place;\n ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10);\n textAlign(CENTER);\n text(earthquakeName, 0, height - 30, width, 30);\n noLoop();\n}\n
" + ], + class: 'p5', + module: 'IO', + submodule: 'Input', + overloads: [ + { + line: 778, + params: [ + { + name: 'path', + description: '

name of the file or url to load

\n', + type: 'String' + }, + { + name: 'datatype', + description: + '

"json", "jsonp", "binary", "arrayBuffer",\n "xml", or "text"

\n', + type: 'String', + optional: true + }, + { + name: 'data', + description: '

param data passed sent with request

\n', + type: 'Object|Boolean', + optional: true + }, + { + name: 'callback', + description: + '

function to be executed after\n httpGet() completes, data is passed in\n as first argument

\n', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: + '

function to be executed if\n there is an error, response is passed\n in as first argument

\n', + type: 'Function', + optional: true + } + ], + return: { + description: + 'A promise that resolves with the data when the operation\n completes successfully or rejects with the error after\n one occurs.', + type: 'Promise' + } + }, + { + line: 832, + params: [ + { + name: 'path', + description: '', + type: 'String' + }, + { + name: 'data', + description: '', + type: 'Object|Boolean' + }, + { + name: 'callback', + description: '', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: '', + type: 'Function', + optional: true + } + ], + return: { + description: '', + type: 'Promise' + } + }, + { + line: 840, + params: [ + { + name: 'path', + description: '', + type: 'String' + }, + { + name: 'callback', + description: '', + type: 'Function' + }, + { + name: 'errorCallback', + description: '', + type: 'Function', + optional: true + } + ], + return: { + description: '', + type: 'Promise' + } + } + ] + }, + { + file: 'src/io/files.js', + line: 855, + description: + '

Method for executing an HTTP POST request. If data type is not specified,\np5 will try to guess based on the URL, defaulting to text. This is equivalent to\ncalling httpDo(path, 'POST').

\n', + itemtype: 'method', + name: 'httpPost', + return: { + description: + 'A promise that resolves with the data when the operation\n completes successfully or rejects with the error after\n one occurs.', + type: 'Promise' + }, + example: [ + "\n
\n\n// Examples use jsonplaceholder.typicode.com for a Mock Data API\n\nlet url = 'https://jsonplaceholder.typicode.com/posts';\nlet postData = { userId: 1, title: 'p5 Clicked!', body: 'p5.js is way cool.' };\n\nfunction setup() {\n createCanvas(800, 800);\n}\n\nfunction mousePressed() {\n // Pick new random color values\n let r = random(255);\n let g = random(255);\n let b = random(255);\n\n httpPost(url, 'json', postData, function(result) {\n strokeWeight(2);\n stroke(r, g, b);\n fill(r, g, b, 127);\n ellipse(mouseX, mouseY, 200, 200);\n text(result.body, mouseX, mouseY);\n });\n}\n\n
\n\n\n
\nlet url = 'https://invalidURL'; // A bad URL that will cause errors\nlet postData = { title: 'p5 Clicked!', body: 'p5.js is way cool.' };\n\nfunction setup() {\n createCanvas(800, 800);\n}\n\nfunction mousePressed() {\n // Pick new random color values\n let r = random(255);\n let g = random(255);\n let b = random(255);\n\n httpPost(\n url,\n 'json',\n postData,\n function(result) {\n // ... won't be called\n },\n function(error) {\n strokeWeight(2);\n stroke(r, g, b);\n fill(r, g, b, 127);\n text(error.toString(), mouseX, mouseY);\n }\n );\n}\n
\n" + ], + class: 'p5', + module: 'IO', + submodule: 'Input', + overloads: [ + { + line: 855, + params: [ + { + name: 'path', + description: '

name of the file or url to load

\n', + type: 'String' + }, + { + name: 'datatype', + description: + '

"json", "jsonp", "xml", or "text".\n If omitted, httpPost() will guess.

\n', + type: 'String', + optional: true + }, + { + name: 'data', + description: '

param data passed sent with request

\n', + type: 'Object|Boolean', + optional: true + }, + { + name: 'callback', + description: + '

function to be executed after\n httpPost() completes, data is passed in\n as first argument

\n', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: + '

function to be executed if\n there is an error, response is passed\n in as first argument

\n', + type: 'Function', + optional: true + } + ], + return: { + description: + 'A promise that resolves with the data when the operation\n completes successfully or rejects with the error after\n one occurs.', + type: 'Promise' + } + }, + { + line: 937, + params: [ + { + name: 'path', + description: '', + type: 'String' + }, + { + name: 'data', + description: '', + type: 'Object|Boolean' + }, + { + name: 'callback', + description: '', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: '', + type: 'Function', + optional: true + } + ], + return: { + description: '', + type: 'Promise' + } + }, + { + line: 945, + params: [ + { + name: 'path', + description: '', + type: 'String' + }, + { + name: 'callback', + description: '', + type: 'Function' + }, + { + name: 'errorCallback', + description: '', + type: 'Function', + optional: true + } + ], + return: { + description: '', + type: 'Promise' + } + } + ] + }, + { + file: 'src/io/files.js', + line: 960, + description: + '

Method for executing an HTTP request. If data type is not specified,\np5 will try to guess based on the URL, defaulting to text.

\nFor more advanced use, you may also pass in the path as the first argument\nand a object as the second argument, the signature follows the one specified\nin the Fetch API specification.\nThis method is suitable for fetching files up to size of 64MB when "GET" is used.

\n', + itemtype: 'method', + name: 'httpDo', + return: { + description: + 'A promise that resolves with the data when the operation\n completes successfully or rejects with the error after\n one occurs.', + type: 'Promise' + }, + example: [ + "\n
\n\n// Examples use USGS Earthquake API:\n// https://earthquake.usgs.gov/fdsnws/event/1/#methods\n\n// displays an animation of all USGS earthquakes\nlet earthquakes;\nlet eqFeatureIndex = 0;\n\nfunction preload() {\n let url = 'https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson';\n httpDo(\n url,\n {\n method: 'GET',\n // Other Request options, like special headers for apis\n headers: { authorization: 'Bearer secretKey' }\n },\n function(res) {\n earthquakes = res;\n }\n );\n}\n\nfunction draw() {\n // wait until the data is loaded\n if (!earthquakes || !earthquakes.features[eqFeatureIndex]) {\n return;\n }\n clear();\n\n let feature = earthquakes.features[eqFeatureIndex];\n let mag = feature.properties.mag;\n let rad = mag / 11 * ((width + height) / 2);\n fill(255, 0, 0, 100);\n ellipse(width / 2 + random(-2, 2), height / 2 + random(-2, 2), rad, rad);\n\n if (eqFeatureIndex >= earthquakes.features.length) {\n eqFeatureIndex = 0;\n } else {\n eqFeatureIndex += 1;\n }\n}\n\n
" + ], + class: 'p5', + module: 'IO', + submodule: 'Input', + overloads: [ + { + line: 960, + params: [ + { + name: 'path', + description: '

name of the file or url to load

\n', + type: 'String' + }, + { + name: 'method', + description: + '

either "GET", "POST", or "PUT",\n defaults to "GET"

\n', + type: 'String', + optional: true + }, + { + name: 'datatype', + description: + '

"json", "jsonp", "xml", or "text"

\n', + type: 'String', + optional: true + }, + { + name: 'data', + description: '

param data passed sent with request

\n', + type: 'Object', + optional: true + }, + { + name: 'callback', + description: + '

function to be executed after\n httpGet() completes, data is passed in\n as first argument

\n', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: + '

function to be executed if\n there is an error, response is passed\n in as first argument

\n', + type: 'Function', + optional: true + } + ], + return: { + description: + 'A promise that resolves with the data when the operation\n completes successfully or rejects with the error after\n one occurs.', + type: 'Promise' + } + }, + { + line: 1031, + params: [ + { + name: 'path', + description: '', + type: 'String' + }, + { + name: 'options', + description: + '

Request object options as documented in the\n "fetch" API\nreference

\n', + type: 'Object' + }, + { + name: 'callback', + description: '', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: '', + type: 'Function', + optional: true + } + ], + return: { + description: '', + type: 'Promise' + } + } + ] + }, + { + file: 'src/io/files.js', + line: 1193, + itemtype: 'method', + name: 'createWriter', + params: [ + { + name: 'name', + description: '

name of the file to be created

\n', + type: 'String' + }, + { + name: 'extension', + description: '', + type: 'String', + optional: true + } + ], + return: { + description: '', + type: 'p5.PrintWriter' + }, + example: [ + "\n
\n\nfunction setup() {\n createCanvas(100, 100);\n background(200);\n text('click here to save', 10, 10, 70, 80);\n}\n\nfunction mousePressed() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n var writer = createWriter('squares.txt');\n for (let i = 0; i < 10; i++) {\n writer.print(i * i);\n }\n writer.close();\n writer.clear();\n }\n}\n\n
" + ], + class: 'p5', + module: 'IO', + submodule: 'Output' + }, + { + file: 'src/io/files.js', + line: 1248, + description: '

Writes data to the PrintWriter stream

\n', + itemtype: 'method', + name: 'write', + params: [ + { + name: 'data', + description: '

all data to be written by the PrintWriter

\n', + type: 'Array' + } + ], + example: [ + "\n
\n\n// creates a file called 'newFile.txt'\nlet writer = createWriter('newFile.txt');\n// write 'Hello world!'' to the file\nwriter.write(['Hello world!']);\n// close the PrintWriter and save the file\nwriter.close();\n\n
\n
\n\n// creates a file called 'newFile2.txt'\nlet writer = createWriter('newFile2.txt');\n// write 'apples,bananas,123' to the file\nwriter.write(['apples', 'bananas', 123]);\n// close the PrintWriter and save the file\nwriter.close();\n\n
\n
\n\n// creates a file called 'newFile3.txt'\nlet writer = createWriter('newFile3.txt');\n// write 'My name is: Teddy' to the file\nwriter.write('My name is:');\nwriter.write(' Teddy');\n// close the PrintWriter and save the file\nwriter.close();\n\n
" + ], + class: 'p5.PrintWriter', + module: 'IO', + submodule: 'Output' + }, + { + file: 'src/io/files.js', + line: 1288, + description: + '

Writes data to the PrintWriter stream, and adds a new line at the end

\n', + itemtype: 'method', + name: 'print', + params: [ + { + name: 'data', + description: '

all data to be printed by the PrintWriter

\n', + type: 'Array' + } + ], + example: [ + "\n
\n\n// creates a file called 'newFile.txt'\nlet writer = createWriter('newFile.txt');\n// creates a file containing\n// My name is:\n// Teddy\nwriter.print('My name is:');\nwriter.print('Teddy');\n// close the PrintWriter and save the file\nwriter.close();\n\n
\n
\n\nlet writer;\n\nfunction setup() {\n createCanvas(400, 400);\n // create a PrintWriter\n writer = createWriter('newFile.txt');\n}\n\nfunction draw() {\n // print all mouseX and mouseY coordinates to the stream\n writer.print([mouseX, mouseY]);\n}\n\nfunction mouseClicked() {\n // close the PrintWriter and save the file\n writer.close();\n}\n\n
" + ], + class: 'p5.PrintWriter', + module: 'IO', + submodule: 'Output' + }, + { + file: 'src/io/files.js', + line: 1331, + description: + '

Clears the data already written to the PrintWriter object

\n', + itemtype: 'method', + name: 'clear', + example: [ + "\n
\n// create writer object\nlet writer = createWriter('newFile.txt');\nwriter.write(['clear me']);\n// clear writer object here\nwriter.clear();\n// close writer\nwriter.close();\n
\n" + ], + class: 'p5.PrintWriter', + module: 'IO', + submodule: 'Output' + }, + { + file: 'src/io/files.js', + line: 1349, + description: '

Closes the PrintWriter

\n', + itemtype: 'method', + name: 'close', + example: [ + "\n
\n\n// create a file called 'newFile.txt'\nlet writer = createWriter('newFile.txt');\n// close the PrintWriter and save the file\nwriter.close();\n\n
\n
\n\n// create a file called 'newFile2.txt'\nlet writer = createWriter('newFile2.txt');\n// write some data to the file\nwriter.write([100, 101, 102]);\n// close the PrintWriter and save the file\nwriter.close();\n\n
" + ], + class: 'p5.PrintWriter', + module: 'IO', + submodule: 'Output' + }, + { + file: 'src/io/files.js', + line: 1398, + description: + "

Save an image, text, json, csv, wav, or html. Prompts download to\nthe client's computer. Note that it is not recommended to call save()\nwithin draw if it's looping, as the save() function will open a new save\ndialog every frame.

\n

The default behavior is to save the canvas as an image. You can\noptionally specify a filename.\nFor example:

\n
\n save();\n save('myCanvas.jpg'); // save a specific canvas with a filename\n 
\n\n

Alternately, the first parameter can be a pointer to a canvas\np5.Element, an Array of Strings,\nan Array of JSON, a JSON object, a p5.Table, a p5.Image, or a\np5.SoundFile (requires p5.sound). The second parameter is a filename\n(including extension). The third parameter is for options specific\nto this type of object. This method will save a file that fits the\ngiven parameters. For example:

\n\n
\n // Saves canvas as an image\n save('myCanvas.jpg');\n\n // Saves pImage as a png image\n let img = createImage(10, 10);\n save(img, 'my.png');\n\n // Saves canvas as an image\n let cnv = createCanvas(100, 100);\n save(cnv, 'myCanvas.jpg');\n\n // Saves p5.Renderer object as an image\n let gb = createGraphics(100, 100);\n save(gb, 'myGraphics.jpg');\n\n let myTable = new p5.Table();\n\n // Saves table as html file\n save(myTable, 'myTable.html');\n\n // Comma Separated Values\n save(myTable, 'myTable.csv');\n\n // Tab Separated Values\n save(myTable, 'myTable.tsv');\n\n let myJSON = { a: 1, b: true };\n\n // Saves pretty JSON\n save(myJSON, 'my.json');\n\n // Optimizes JSON filesize\n save(myJSON, 'my.json', true);\n\n // Saves array of strings to a text file with line breaks after each item\n let arrayOfStrings = ['a', 'b'];\n save(arrayOfStrings, 'my.txt');\n 
", + itemtype: 'method', + name: 'save', + params: [ + { + name: 'objectOrFilename', + description: + '

If filename is provided, will\n save canvas as an image with\n either png or jpg extension\n depending on the filename.\n If object is provided, will\n save depending on the object\n and filename (see examples\n above).

\n', + type: 'Object|String', + optional: true + }, + { + name: 'filename', + description: + '

If an object is provided as the first\n parameter, then the second parameter\n indicates the filename,\n and should include an appropriate\n file extension (see examples above).

\n', + type: 'String', + optional: true + }, + { + name: 'options', + description: + '

Additional options depend on\n filetype. For example, when saving JSON,\n true indicates that the\n output will be optimized for filesize,\n rather than readability.

\n', + type: 'Boolean|String', + optional: true + } + ], + class: 'p5', + module: 'IO', + submodule: 'Output' + }, + { + file: 'src/io/files.js', + line: 1526, + description: + '

Writes the contents of an Array or a JSON object to a .json file.\nThe file saving process and location of the saved file will\nvary between web browsers.

\n', + itemtype: 'method', + name: 'saveJSON', + params: [ + { + name: 'json', + description: '', + type: 'Array|Object' + }, + { + name: 'filename', + description: '', + type: 'String' + }, + { + name: 'optimize', + description: + '

If true, removes line breaks\n and spaces from the output\n file to optimize filesize\n (but not readability).

\n', + type: 'Boolean', + optional: true + } + ], + example: [ + '\n
\n let json = {}; // new JSON Object\n\n json.id = 0;\n json.species = \'Panthera leo\';\n json.name = \'Lion\';\n\n function setup() {\n createCanvas(100, 100);\n background(200);\n text(\'click here to save\', 10, 10, 70, 80);\n }\n\n function mousePressed() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n saveJSON(json, \'lion.json\');\n }\n }\n\n // saves the following to a file called "lion.json":\n // {\n // "id": 0,\n // "species": "Panthera leo",\n // "name": "Lion"\n // }\n
' + ], + alt: 'no image displayed', + class: 'p5', + module: 'IO', + submodule: 'Output' + }, + { + file: 'src/io/files.js', + line: 1584, + description: + '

Writes an array of Strings to a text file, one line per String.\nThe file saving process and location of the saved file will\nvary between web browsers.

\n', + itemtype: 'method', + name: 'saveStrings', + params: [ + { + name: 'list', + description: '

string array to be written

\n', + type: 'String[]' + }, + { + name: 'filename', + description: '

filename for output

\n', + type: 'String' + }, + { + name: 'extension', + description: '

the filename's extension

\n', + type: 'String', + optional: true + } + ], + example: [ + "\n
\n let words = 'apple bear cat dog';\n\n // .split() outputs an Array\n let list = split(words, ' ');\n\n function setup() {\n createCanvas(100, 100);\n background(200);\n text('click here to save', 10, 10, 70, 80);\n }\n\n function mousePressed() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n saveStrings(list, 'nouns.txt');\n }\n }\n\n // Saves the following to a file called 'nouns.txt':\n //\n // apple\n // bear\n // cat\n // dog\n
" + ], + alt: 'no image displayed', + class: 'p5', + module: 'IO', + submodule: 'Output' + }, + { + file: 'src/io/files.js', + line: 1652, + description: + '

Writes the contents of a Table object to a file. Defaults to a\ntext file with comma-separated-values ('csv') but can also\nuse tab separation ('tsv'), or generate an HTML table ('html').\nThe file saving process and location of the saved file will\nvary between web browsers.

\n', + itemtype: 'method', + name: 'saveTable', + params: [ + { + name: 'Table', + description: + '

the Table object to save to a file

\n', + type: 'p5.Table' + }, + { + name: 'filename', + description: '

the filename to which the Table should be saved

\n', + type: 'String' + }, + { + name: 'options', + description: + '

can be one of "tsv", "csv", or "html"

\n', + type: 'String', + optional: true + } + ], + example: [ + "\n
\n let table;\n\n function setup() {\n table = new p5.Table();\n\n table.addColumn('id');\n table.addColumn('species');\n table.addColumn('name');\n\n let newRow = table.addRow();\n newRow.setNum('id', table.getRowCount() - 1);\n newRow.setString('species', 'Panthera leo');\n newRow.setString('name', 'Lion');\n\n // To save, un-comment next line then click 'run'\n // saveTable(table, 'new.csv');\n }\n\n // Saves the following to a file called 'new.csv':\n // id,species,name\n // 0,Panthera leo,Lion\n
" + ], + alt: 'no image displayed', + class: 'p5', + module: 'IO', + submodule: 'Output' + }, + { + file: 'src/io/p5.Table.js', + line: 11, + description: + '

Table Options

\n

Generic class for handling tabular data, typically from a\nCSV, TSV, or other sort of spreadsheet file.

\n

CSV files are\n\ncomma separated values, often with the data in quotes. TSV\nfiles use tabs as separators, and usually don't bother with the\nquotes.

\n

File names should end with .csv if they're comma separated.

\n

A rough "spec" for CSV can be found\nhere.

\n

To load files, use the loadTable method.

\n

To save tables to your computer, use the save method\n or the saveTable method.

\n\n

Possible options include:

\n
    \n
  • csv - parse the table as comma-separated values\n
  • tsv - parse the table as tab-separated values\n
  • header - this table has a header (title) row\n
', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 45, + itemtype: 'property', + name: 'columns', + type: 'String[]', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 50, + itemtype: 'property', + name: 'rows', + type: 'p5.TableRow[]', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 56, + description: + '

Use addRow() to add a new row of data to a p5.Table object. By default,\nan empty row is created. Typically, you would store a reference to\nthe new row in a TableRow object (see newRow in the example above),\nand then set individual values using set().

\n

If a p5.TableRow object is included as a parameter, then that row is\nduplicated and added to the table.

\n', + itemtype: 'method', + name: 'addRow', + params: [ + { + name: 'row', + description: '

row to be added to the table

\n', + type: 'p5.TableRow', + optional: true + } + ], + return: { + description: 'the row that was added', + type: 'p5.TableRow' + }, + example: [ + "\n
\n \n // Given the CSV file \"mammals.csv\"\n // in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n //add a row\n let newRow = table.addRow();\n newRow.setString('id', table.getRowCount() - 1);\n newRow.setString('species', 'Canis Lupus');\n newRow.setString('name', 'Wolf');\n\n //print the results\n for (let r = 0; r < table.getRowCount(); r++)\n for (let c = 0; c < table.getColumnCount(); c++)\n print(table.getString(r, c));\n }\n \n
" + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 120, + description: '

Removes a row from the table object.

\n', + itemtype: 'method', + name: 'removeRow', + params: [ + { + name: 'id', + description: '

ID number of the row to remove

\n', + type: 'Integer' + } + ], + example: [ + '\n
\n\n// Given the CSV file "mammals.csv"\n// in the project\'s "assets" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value "csv"\n //and has a header specifying the columns labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n}\n\nfunction setup() {\n //remove the first row\n table.removeRow(0);\n\n //print the results\n for (let r = 0; r < table.getRowCount(); r++)\n for (let c = 0; c < table.getColumnCount(); c++)\n print(table.getString(r, c));\n}\n\n
' + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 168, + description: + '

Returns a reference to the specified p5.TableRow. The reference\ncan then be used to get and set values of the selected row.

\n', + itemtype: 'method', + name: 'getRow', + params: [ + { + name: 'rowID', + description: '

ID number of the row to get

\n', + type: 'Integer' + } + ], + return: { + description: 'p5.TableRow object', + type: 'p5.TableRow' + }, + example: [ + '\n
\n\n// Given the CSV file "mammals.csv"\n// in the project\'s "assets" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value "csv"\n //and has a header specifying the columns labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n}\n\nfunction setup() {\n let row = table.getRow(1);\n //print it column by column\n //note: a row is an object, not an array\n for (let c = 0; c < table.getColumnCount(); c++) {\n print(row.getString(c));\n }\n}\n\n
' + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 214, + description: + '

Gets all rows from the table. Returns an array of p5.TableRows.

\n', + itemtype: 'method', + name: 'getRows', + return: { + description: 'Array of p5.TableRows', + type: 'p5.TableRow[]' + }, + example: [ + "\n
\n \n // Given the CSV file \"mammals.csv\"\n // in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n let rows = table.getRows();\n\n //warning: rows is an array of objects\n for (let r = 0; r < rows.length; r++) {\n rows[r].set('name', 'Unicorn');\n }\n\n //print the results\n for (let r = 0; r < table.getRowCount(); r++)\n for (let c = 0; c < table.getColumnCount(); c++)\n print(table.getString(r, c));\n }\n \n
" + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 263, + description: + '

Finds the first row in the Table that contains the value\nprovided, and returns a reference to that row. Even if\nmultiple rows are possible matches, only the first matching\nrow is returned. The column to search may be specified by\neither its ID or title.

\n', + itemtype: 'method', + name: 'findRow', + params: [ + { + name: 'value', + description: '

The value to match

\n', + type: 'String' + }, + { + name: 'column', + description: + '

ID number or title of the\n column to search

\n', + type: 'Integer|String' + } + ], + return: { + description: '', + type: 'p5.TableRow' + }, + example: [ + "\n
\n \n // Given the CSV file \"mammals.csv\"\n // in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n //find the animal named zebra\n let row = table.findRow('Zebra', 'name');\n //find the corresponding species\n print(row.getString('species'));\n }\n \n
" + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 328, + description: + '

Finds the rows in the Table that contain the value\nprovided, and returns references to those rows. Returns an\nArray, so for must be used to iterate through all the rows,\nas shown in the example above. The column to search may be\nspecified by either its ID or title.

\n', + itemtype: 'method', + name: 'findRows', + params: [ + { + name: 'value', + description: '

The value to match

\n', + type: 'String' + }, + { + name: 'column', + description: + '

ID number or title of the\n column to search

\n', + type: 'Integer|String' + } + ], + return: { + description: 'An Array of TableRow objects', + type: 'p5.TableRow[]' + }, + example: [ + "\n
\n \n // Given the CSV file \"mammals.csv\"\n // in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n //add another goat\n let newRow = table.addRow();\n newRow.setString('id', table.getRowCount() - 1);\n newRow.setString('species', 'Scape Goat');\n newRow.setString('name', 'Goat');\n\n //find the rows containing animals named Goat\n let rows = table.findRows('Goat', 'name');\n print(rows.length + ' Goats found');\n }\n \n
" + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 397, + description: + '

Finds the first row in the Table that matches the regular\nexpression provided, and returns a reference to that row.\nEven if multiple rows are possible matches, only the first\nmatching row is returned. The column to search may be\nspecified by either its ID or title.

\n', + itemtype: 'method', + name: 'matchRow', + params: [ + { + name: 'regexp', + description: '

The regular expression to match

\n', + type: 'String|RegExp' + }, + { + name: 'column', + description: + '

The column ID (number) or\n title (string)

\n', + type: 'String|Integer' + } + ], + return: { + description: 'TableRow object', + type: 'p5.TableRow' + }, + example: [ + '\n
\n\n// Given the CSV file "mammals.csv"\n// in the project\'s "assets" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value "csv"\n //and has a header specifying the columns labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n}\n\nfunction setup() {\n //Search using specified regex on a given column, return TableRow object\n let mammal = table.matchRow(new RegExp(\'ant\'), 1);\n print(mammal.getString(1));\n //Output "Panthera pardus"\n}\n\n
\n' + ], + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 456, + description: + '

Finds the rows in the Table that match the regular expression provided,\nand returns references to those rows. Returns an array, so for must be\nused to iterate through all the rows, as shown in the example. The\ncolumn to search may be specified by either its ID or title.

\n', + itemtype: 'method', + name: 'matchRows', + params: [ + { + name: 'regexp', + description: '

The regular expression to match

\n', + type: 'String' + }, + { + name: 'column', + description: + '

The column ID (number) or\n title (string)

\n', + type: 'String|Integer', + optional: true + } + ], + return: { + description: 'An Array of TableRow objects', + type: 'p5.TableRow[]' + }, + example: [ + "\n
\n\nlet table;\n\nfunction setup() {\n table = new p5.Table();\n\n table.addColumn('name');\n table.addColumn('type');\n\n let newRow = table.addRow();\n newRow.setString('name', 'Lion');\n newRow.setString('type', 'Mammal');\n\n newRow = table.addRow();\n newRow.setString('name', 'Snake');\n newRow.setString('type', 'Reptile');\n\n newRow = table.addRow();\n newRow.setString('name', 'Mosquito');\n newRow.setString('type', 'Insect');\n\n newRow = table.addRow();\n newRow.setString('name', 'Lizard');\n newRow.setString('type', 'Reptile');\n\n let rows = table.matchRows('R.*', 'type');\n for (let i = 0; i < rows.length; i++) {\n print(rows[i].getString('name') + ': ' + rows[i].getString('type'));\n }\n}\n// Sketch prints:\n// Snake: Reptile\n// Lizard: Reptile\n\n
" + ], + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 523, + description: + '

Retrieves all values in the specified column, and returns them\nas an array. The column may be specified by either its ID or title.

\n', + itemtype: 'method', + name: 'getColumn', + params: [ + { + name: 'column', + description: '

String or Number of the column to return

\n', + type: 'String|Number' + } + ], + return: { + description: 'Array of column values', + type: 'Array' + }, + example: [ + '\n
\n \n // Given the CSV file "mammals.csv"\n // in the project\'s "assets" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value "csv"\n //and has a header specifying the columns labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n }\n\n function setup() {\n //getColumn returns an array that can be printed directly\n print(table.getColumn(\'species\'));\n //outputs ["Capra hircus", "Panthera pardus", "Equus zebra"]\n }\n \n
' + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 576, + description: + '

Removes all rows from a Table. While all rows are removed,\ncolumns and column titles are maintained.

\n', + itemtype: 'method', + name: 'clearRows', + example: [ + "\n
\n \n // Given the CSV file \"mammals.csv\"\n // in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n table.clearRows();\n print(table.getRowCount() + ' total rows in table');\n print(table.getColumnCount() + ' total columns in table');\n }\n \n
" + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 618, + description: + '

Use addColumn() to add a new column to a Table object.\nTypically, you will want to specify a title, so the column\nmay be easily referenced later by name. (If no title is\nspecified, the new column's title will be null.)

\n', + itemtype: 'method', + name: 'addColumn', + params: [ + { + name: 'title', + description: '

title of the given column

\n', + type: 'String', + optional: true + } + ], + example: [ + "\n
\n \n // Given the CSV file \"mammals.csv\"\n // in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n table.addColumn('carnivore');\n table.set(0, 'carnivore', 'no');\n table.set(1, 'carnivore', 'yes');\n table.set(2, 'carnivore', 'no');\n\n //print the results\n for (let r = 0; r < table.getRowCount(); r++)\n for (let c = 0; c < table.getColumnCount(); c++)\n print(table.getString(r, c));\n }\n \n
" + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 669, + description: '

Returns the total number of columns in a Table.

\n', + itemtype: 'method', + name: 'getColumnCount', + return: { + description: 'Number of columns in this table', + type: 'Integer' + }, + example: [ + "\n
\n \n // given the cvs file \"blobs.csv\" in /assets directory\n // ID, Name, Flavor, Shape, Color\n // Blob1, Blobby, Sweet, Blob, Pink\n // Blob2, Saddy, Savory, Blob, Blue\n\n let table;\n\n function preload() {\n table = loadTable('assets/blobs.csv');\n }\n\n function setup() {\n createCanvas(200, 100);\n textAlign(CENTER);\n background(255);\n }\n\n function draw() {\n let numOfColumn = table.getColumnCount();\n text('There are ' + numOfColumn + ' columns in the table.', 100, 50);\n }\n \n
" + ], + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 705, + description: '

Returns the total number of rows in a Table.

\n', + itemtype: 'method', + name: 'getRowCount', + return: { + description: 'Number of rows in this table', + type: 'Integer' + }, + example: [ + "\n
\n \n // given the cvs file \"blobs.csv\" in /assets directory\n //\n // ID, Name, Flavor, Shape, Color\n // Blob1, Blobby, Sweet, Blob, Pink\n // Blob2, Saddy, Savory, Blob, Blue\n\n let table;\n\n function preload() {\n table = loadTable('assets/blobs.csv');\n }\n\n function setup() {\n createCanvas(200, 100);\n textAlign(CENTER);\n background(255);\n }\n\n function draw() {\n text('There are ' + table.getRowCount() + ' rows in the table.', 100, 50);\n }\n \n
" + ], + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 741, + description: + '

Removes any of the specified characters (or "tokens").

\n\n

If no column is specified, then the values in all columns and\nrows are processed. A specific column may be referenced by\neither its ID or title.

', + itemtype: 'method', + name: 'removeTokens', + params: [ + { + name: 'chars', + description: '

String listing characters to be removed

\n', + type: 'String' + }, + { + name: 'column', + description: + '

Column ID (number)\n or name (string)

\n', + type: 'String|Integer', + optional: true + } + ], + example: [ + "\n
\n function setup() {\n let table = new p5.Table();\n\n table.addColumn('name');\n table.addColumn('type');\n\n let newRow = table.addRow();\n newRow.setString('name', ' $Lion ,');\n newRow.setString('type', ',,,Mammal');\n\n newRow = table.addRow();\n newRow.setString('name', '$Snake ');\n newRow.setString('type', ',,,Reptile');\n\n table.removeTokens(',$ ');\n print(table.getArray());\n }\n\n // prints:\n // 0 \"Lion\" \"Mamal\"\n // 1 \"Snake\" \"Reptile\"\n
" + ], + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 815, + description: + '

Trims leading and trailing whitespace, such as spaces and tabs,\nfrom String table values. If no column is specified, then the\nvalues in all columns and rows are trimmed. A specific column\nmay be referenced by either its ID or title.

\n', + itemtype: 'method', + name: 'trim', + params: [ + { + name: 'column', + description: + '

Column ID (number)\n or name (string)

\n', + type: 'String|Integer', + optional: true + } + ], + example: [ + "\n
\n function setup() {\n let table = new p5.Table();\n\n table.addColumn('name');\n table.addColumn('type');\n\n let newRow = table.addRow();\n newRow.setString('name', ' Lion ,');\n newRow.setString('type', ' Mammal ');\n\n newRow = table.addRow();\n newRow.setString('name', ' Snake ');\n newRow.setString('type', ' Reptile ');\n\n table.trim();\n print(table.getArray());\n }\n\n // prints:\n // 0 \"Lion\" \"Mamal\"\n // 1 \"Snake\" \"Reptile\"\n
" + ], + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 879, + description: + '

Use removeColumn() to remove an existing column from a Table\nobject. The column to be removed may be identified by either\nits title (a String) or its index value (an int).\nremoveColumn(0) would remove the first column, removeColumn(1)\nwould remove the second column, and so on.

\n', + itemtype: 'method', + name: 'removeColumn', + params: [ + { + name: 'column', + description: '

columnName (string) or ID (number)

\n', + type: 'String|Integer' + } + ], + example: [ + "\n
\n \n // Given the CSV file \"mammals.csv\"\n // in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n table.removeColumn('id');\n print(table.getColumnCount());\n }\n \n
" + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 944, + description: + '

Stores a value in the Table's specified row and column.\nThe row is specified by its ID, while the column may be specified\nby either its ID or title.

\n', + itemtype: 'method', + name: 'set', + params: [ + { + name: 'row', + description: '

row ID

\n', + type: 'Integer' + }, + { + name: 'column', + description: + '

column ID (Number)\n or title (String)

\n', + type: 'String|Integer' + }, + { + name: 'value', + description: '

value to assign

\n', + type: 'String|Number' + } + ], + example: [ + "\n
\n\n// Given the CSV file \"mammals.csv\"\n// in the project's \"assets\" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n}\n\nfunction setup() {\n table.set(0, 'species', 'Canis Lupus');\n table.set(0, 'name', 'Wolf');\n\n //print the results\n for (let r = 0; r < table.getRowCount(); r++)\n for (let c = 0; c < table.getColumnCount(); c++)\n print(table.getString(r, c));\n}\n\n
" + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 994, + description: + '

Stores a Float value in the Table's specified row and column.\nThe row is specified by its ID, while the column may be specified\nby either its ID or title.

\n', + itemtype: 'method', + name: 'setNum', + params: [ + { + name: 'row', + description: '

row ID

\n', + type: 'Integer' + }, + { + name: 'column', + description: + '

column ID (Number)\n or title (String)

\n', + type: 'String|Integer' + }, + { + name: 'value', + description: '

value to assign

\n', + type: 'Number' + } + ], + example: [ + '\n
\n\n// Given the CSV file "mammals.csv"\n// in the project\'s "assets" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value "csv"\n //and has a header specifying the columns labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n}\n\nfunction setup() {\n table.setNum(1, \'id\', 1);\n\n print(table.getColumn(0));\n //["0", 1, "2"]\n}\n\n
' + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 1040, + description: + '

Stores a String value in the Table's specified row and column.\nThe row is specified by its ID, while the column may be specified\nby either its ID or title.

\n', + itemtype: 'method', + name: 'setString', + params: [ + { + name: 'row', + description: '

row ID

\n', + type: 'Integer' + }, + { + name: 'column', + description: + '

column ID (Number)\n or title (String)

\n', + type: 'String|Integer' + }, + { + name: 'value', + description: '

value to assign

\n', + type: 'String' + } + ], + example: [ + "\n
\n// Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n}\n\nfunction setup() {\n //add a row\n let newRow = table.addRow();\n newRow.setString('id', table.getRowCount() - 1);\n newRow.setString('species', 'Canis Lupus');\n newRow.setString('name', 'Wolf');\n\n print(table.getArray());\n}\n
" + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 1085, + description: + '

Retrieves a value from the Table's specified row and column.\nThe row is specified by its ID, while the column may be specified by\neither its ID or title.

\n', + itemtype: 'method', + name: 'get', + params: [ + { + name: 'row', + description: '

row ID

\n', + type: 'Integer' + }, + { + name: 'column', + description: + '

columnName (string) or\n ID (number)

\n', + type: 'String|Integer' + } + ], + return: { + description: '', + type: 'String|Number' + }, + example: [ + "\n
\n\n// Given the CSV file \"mammals.csv\"\n// in the project's \"assets\" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n}\n\nfunction setup() {\n print(table.get(0, 1));\n //Capra hircus\n print(table.get(0, 'species'));\n //Capra hircus\n}\n\n
" + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 1132, + description: + '

Retrieves a Float value from the Table's specified row and column.\nThe row is specified by its ID, while the column may be specified by\neither its ID or title.

\n', + itemtype: 'method', + name: 'getNum', + params: [ + { + name: 'row', + description: '

row ID

\n', + type: 'Integer' + }, + { + name: 'column', + description: + '

columnName (string) or\n ID (number)

\n', + type: 'String|Integer' + } + ], + return: { + description: '', + type: 'Number' + }, + example: [ + '\n
\n\n// Given the CSV file "mammals.csv"\n// in the project\'s "assets" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value "csv"\n //and has a header specifying the columns labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n}\n\nfunction setup() {\n print(table.getNum(1, 0) + 100);\n //id 1 + 100 = 101\n}\n\n
' + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 1177, + description: + '

Retrieves a String value from the Table's specified row and column.\nThe row is specified by its ID, while the column may be specified by\neither its ID or title.

\n', + itemtype: 'method', + name: 'getString', + params: [ + { + name: 'row', + description: '

row ID

\n', + type: 'Integer' + }, + { + name: 'column', + description: + '

columnName (string) or\n ID (number)

\n', + type: 'String|Integer' + } + ], + return: { + description: '', + type: 'String' + }, + example: [ + '\n
\n\n// Given the CSV file "mammals.csv"\n// in the project\'s "assets" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n // table is comma separated value "CSV"\n // and has specifiying header for column labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n}\n\nfunction setup() {\n print(table.getString(0, 0)); // 0\n print(table.getString(0, 1)); // Capra hircus\n print(table.getString(0, 2)); // Goat\n print(table.getString(1, 0)); // 1\n print(table.getString(1, 1)); // Panthera pardus\n print(table.getString(1, 2)); // Leopard\n print(table.getString(2, 0)); // 2\n print(table.getString(2, 1)); // Equus zebra\n print(table.getString(2, 2)); // Zebra\n}\n\n
' + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 1230, + description: + '

Retrieves all table data and returns as an object. If a column name is\npassed in, each row object will be stored with that attribute as its\ntitle.

\n', + itemtype: 'method', + name: 'getObject', + params: [ + { + name: 'headerColumn', + description: + '

Name of the column which should be used to\n title each row object (optional)

\n', + type: 'String', + optional: true + } + ], + return: { + description: '', + type: 'Object' + }, + example: [ + '\n
\n\n// Given the CSV file "mammals.csv"\n// in the project\'s "assets" folder:\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leopard\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n //my table is comma separated value "csv"\n //and has a header specifying the columns labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n}\n\nfunction setup() {\n let tableObject = table.getObject();\n\n print(tableObject);\n //outputs an object\n}\n\n
' + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.Table.js', + line: 1296, + description: + '

Retrieves all table data and returns it as a multidimensional array.

\n', + itemtype: 'method', + name: 'getArray', + return: { + description: '', + type: 'Array' + }, + example: [ + '\n
\n\n// Given the CSV file "mammals.csv"\n// in the project\'s "assets" folder\n//\n// id,species,name\n// 0,Capra hircus,Goat\n// 1,Panthera pardus,Leoperd\n// 2,Equus zebra,Zebra\n\nlet table;\n\nfunction preload() {\n // table is comma separated value "CSV"\n // and has specifiying header for column labels\n table = loadTable(\'assets/mammals.csv\', \'csv\', \'header\');\n}\n\nfunction setup() {\n let tableArray = table.getArray();\n for (let i = 0; i < tableArray.length; i++) {\n print(tableArray[i]);\n }\n}\n\n
' + ], + alt: 'no image displayed', + class: 'p5.Table', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.TableRow.js', + line: 42, + description: + '

Stores a value in the TableRow's specified column.\nThe column may be specified by either its ID or title.

\n', + itemtype: 'method', + name: 'set', + params: [ + { + name: 'column', + description: + '

Column ID (Number)\n or Title (String)

\n', + type: 'String|Integer' + }, + { + name: 'value', + description: '

The value to be stored

\n', + type: 'String|Number' + } + ], + example: [ + "\n
\n // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n let rows = table.getRows();\n for (let r = 0; r < rows.length; r++) {\n rows[r].set('name', 'Unicorn');\n }\n\n //print the results\n print(table.getArray());\n }\n
" + ], + alt: 'no image displayed', + class: 'p5.TableRow', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.TableRow.js', + line: 106, + description: + '

Stores a Float value in the TableRow's specified column.\nThe column may be specified by either its ID or title.

\n', + itemtype: 'method', + name: 'setNum', + params: [ + { + name: 'column', + description: + '

Column ID (Number)\n or Title (String)

\n', + type: 'String|Integer' + }, + { + name: 'value', + description: + '

The value to be stored\n as a Float

\n', + type: 'Number|String' + } + ], + example: [ + "\n
\n // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n let rows = table.getRows();\n for (let r = 0; r < rows.length; r++) {\n rows[r].setNum('id', r + 10);\n }\n\n print(table.getArray());\n }\n
" + ], + alt: 'no image displayed', + class: 'p5.TableRow', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.TableRow.js', + line: 150, + description: + '

Stores a String value in the TableRow's specified column.\nThe column may be specified by either its ID or title.

\n', + itemtype: 'method', + name: 'setString', + params: [ + { + name: 'column', + description: + '

Column ID (Number)\n or Title (String)

\n', + type: 'String|Integer' + }, + { + name: 'value', + description: + '

The value to be stored\n as a String

\n', + type: 'String|Number|Boolean|Object' + } + ], + example: [ + "\n
\n // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n let rows = table.getRows();\n for (let r = 0; r < rows.length; r++) {\n let name = rows[r].getString('name');\n rows[r].setString('name', 'A ' + name + ' named George');\n }\n\n print(table.getArray());\n }\n
" + ], + alt: 'no image displayed', + class: 'p5.TableRow', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.TableRow.js', + line: 195, + description: + '

Retrieves a value from the TableRow's specified column.\nThe column may be specified by either its ID or title.

\n', + itemtype: 'method', + name: 'get', + params: [ + { + name: 'column', + description: + '

columnName (string) or\n ID (number)

\n', + type: 'String|Integer' + } + ], + return: { + description: '', + type: 'String|Number' + }, + example: [ + "\n
\n // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n let names = [];\n let rows = table.getRows();\n for (let r = 0; r < rows.length; r++) {\n names.push(rows[r].get('name'));\n }\n\n print(names);\n }\n
" + ], + alt: 'no image displayed', + class: 'p5.TableRow', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.TableRow.js', + line: 243, + description: + '

Retrieves a Float value from the TableRow's specified\ncolumn. The column may be specified by either its ID or\ntitle.

\n', + itemtype: 'method', + name: 'getNum', + params: [ + { + name: 'column', + description: + '

columnName (string) or\n ID (number)

\n', + type: 'String|Integer' + } + ], + return: { + description: 'Float Floating point number', + type: 'Number' + }, + example: [ + "\n
\n // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n let rows = table.getRows();\n let minId = Infinity;\n let maxId = -Infinity;\n for (let r = 0; r < rows.length; r++) {\n let id = rows[r].getNum('id');\n minId = min(minId, id);\n maxId = min(maxId, id);\n }\n print('minimum id = ' + minId + ', maximum id = ' + maxId);\n }\n
" + ], + alt: 'no image displayed', + class: 'p5.TableRow', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.TableRow.js', + line: 299, + description: + '

Retrieves an String value from the TableRow's specified\ncolumn. The column may be specified by either its ID or\ntitle.

\n', + itemtype: 'method', + name: 'getString', + params: [ + { + name: 'column', + description: + '

columnName (string) or\n ID (number)

\n', + type: 'String|Integer' + } + ], + return: { + description: 'String', + type: 'String' + }, + example: [ + "\n
\n // Given the CSV file \"mammals.csv\" in the project's \"assets\" folder:\n //\n // id,species,name\n // 0,Capra hircus,Goat\n // 1,Panthera pardus,Leopard\n // 2,Equus zebra,Zebra\n\n let table;\n\n function preload() {\n //my table is comma separated value \"csv\"\n //and has a header specifying the columns labels\n table = loadTable('assets/mammals.csv', 'csv', 'header');\n }\n\n function setup() {\n let rows = table.getRows();\n let longest = '';\n for (let r = 0; r < rows.length; r++) {\n let species = rows[r].getString('species');\n if (longest.length < species.length) {\n longest = species;\n }\n }\n\n print('longest: ' + longest);\n }\n
" + ], + alt: 'no image displayed', + class: 'p5.TableRow', + module: 'IO', + submodule: 'Table' + }, + { + file: 'src/io/p5.XML.js', + line: 65, + description: + '

Gets a copy of the element's parent. Returns the parent as another\np5.XML object.

\n', + itemtype: 'method', + name: 'getParent', + return: { + description: 'element parent', + type: 'p5.XML' + }, + example: [ + '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let children = xml.getChildren(\'animal\');\n let parent = children[1].getParent();\n print(parent.getName());\n}\n\n// Sketch prints:\n// mammals\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 103, + description: + '

Gets the element's full name, which is returned as a String.

\n', + itemtype: 'method', + name: 'getName', + return: { + description: 'the name of the node', + type: 'String' + }, + example: [ + '<animal\n
\n // The following short XML file called "mammals.xml" is parsed\n // in the code below.\n //\n // \n // <mammals>\n // <animal id="0" species="Capra hircus">Goat</animal>\n // <animal id="1" species="Panthera pardus">Leopard</animal>\n // <animal id="2" species="Equus zebra">Zebra</animal>\n // </mammals>\n\n let xml;\n\n function preload() {\n xml = loadXML(\'assets/mammals.xml\');\n }\n\n function setup() {\n print(xml.getName());\n }\n\n // Sketch prints:\n // mammals\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 138, + description: + '

Sets the element's name, which is specified as a String.

\n', + itemtype: 'method', + name: 'setName', + params: [ + { + name: 'the', + description: '

new name of the node

\n', + type: 'String' + } + ], + example: [ + '<animal\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n print(xml.getName());\n xml.setName(\'fish\');\n print(xml.getName());\n}\n\n// Sketch prints:\n// mammals\n// fish\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 184, + description: + '

Checks whether or not the element has any children, and returns the result\nas a boolean.

\n', + itemtype: 'method', + name: 'hasChildren', + return: { + description: '', + type: 'Boolean' + }, + example: [ + '<animal\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n print(xml.hasChildren());\n}\n\n// Sketch prints:\n// true\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 220, + description: + '

Get the names of all of the element's children, and returns the names as an\narray of Strings. This is the same as looping through and calling getName()\non each child element individually.

\n', + itemtype: 'method', + name: 'listChildren', + return: { + description: 'names of the children of the element', + type: 'String[]' + }, + example: [ + '<animal\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n print(xml.listChildren());\n}\n\n// Sketch prints:\n// ["animal", "animal", "animal"]\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 261, + description: + '

Returns all of the element's children as an array of p5.XML objects. When\nthe name parameter is specified, then it will return all children that match\nthat name.

\n', + itemtype: 'method', + name: 'getChildren', + params: [ + { + name: 'name', + description: '

element name

\n', + type: 'String', + optional: true + } + ], + return: { + description: 'children of the element', + type: 'p5.XML[]' + }, + example: [ + '<animal\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let animals = xml.getChildren(\'animal\');\n\n for (let i = 0; i < animals.length; i++) {\n print(animals[i].getContent());\n }\n}\n\n// Sketch prints:\n// "Goat"\n// "Leopard"\n// "Zebra"\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 317, + description: + '

Returns the first of the element's children that matches the name parameter\nor the child of the given index.It returns undefined if no matching\nchild is found.

\n', + itemtype: 'method', + name: 'getChild', + params: [ + { + name: 'name', + description: '

element name or index

\n', + type: 'String|Integer' + } + ], + return: { + description: '', + type: 'p5.XML' + }, + example: [ + '<animal\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.getContent());\n}\n\n// Sketch prints:\n// "Goat"\n
\n
\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let secondChild = xml.getChild(1);\n print(secondChild.getContent());\n}\n\n// Sketch prints:\n// "Leopard"\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 378, + description: + '

Appends a new child to the element. The child can be specified with\neither a String, which will be used as the new tag's name, or as a\nreference to an existing p5.XML object.\nA reference to the newly created child is returned as an p5.XML object.

\n', + itemtype: 'method', + name: 'addChild', + params: [ + { + name: 'node', + description: + '

a p5.XML Object which will be the child to be added

\n', + type: 'p5.XML' + } + ], + example: [ + '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let child = new p5.XML();\n child.setName(\'animal\');\n child.setAttribute(\'id\', \'3\');\n child.setAttribute(\'species\', \'Ornithorhynchus anatinus\');\n child.setContent(\'Platypus\');\n xml.addChild(child);\n\n let animals = xml.getChildren(\'animal\');\n print(animals[animals.length - 1].getContent());\n}\n\n// Sketch prints:\n// "Goat"\n// "Leopard"\n// "Zebra"\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 430, + description: '

Removes the element specified by name or index.

\n', + itemtype: 'method', + name: 'removeChild', + params: [ + { + name: 'name', + description: '

element name or index

\n', + type: 'String|Integer' + } + ], + example: [ + '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n xml.removeChild(\'animal\');\n let children = xml.getChildren();\n for (let i = 0; i < children.length; i++) {\n print(children[i].getContent());\n }\n}\n\n// Sketch prints:\n// "Leopard"\n// "Zebra"\n
\n
\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n xml.removeChild(1);\n let children = xml.getChildren();\n for (let i = 0; i < children.length; i++) {\n print(children[i].getContent());\n }\n}\n\n// Sketch prints:\n// "Goat"\n// "Zebra"\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 502, + description: + '

Counts the specified element's number of attributes, returned as an Number.

\n', + itemtype: 'method', + name: 'getAttributeCount', + return: { + description: '', + type: 'Integer' + }, + example: [ + '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.getAttributeCount());\n}\n\n// Sketch prints:\n// 2\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 538, + description: + '

Gets all of the specified element's attributes, and returns them as an\narray of Strings.

\n', + itemtype: 'method', + name: 'listAttributes', + return: { + description: 'an array of strings containing the names of attributes', + type: 'String[]' + }, + example: [ + '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.listAttributes());\n}\n\n// Sketch prints:\n// ["id", "species"]\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 580, + description: + '

Checks whether or not an element has the specified attribute.

\n', + itemtype: 'method', + name: 'hasAttribute', + params: [ + { + name: 'the', + description: '

attribute to be checked

\n', + type: 'String' + } + ], + return: { + description: 'true if attribute found else false', + type: 'Boolean' + }, + example: [ + '\n
\n // The following short XML file called "mammals.xml" is parsed\n // in the code below.\n //\n // \n // <mammals>\n // <animal id="0" species="Capra hircus">Goat</animal>\n // <animal id="1" species="Panthera pardus">Leopard</animal>\n // <animal id="2" species="Equus zebra">Zebra</animal>\n // </mammals>\n\n let xml;\n\n function preload() {\n xml = loadXML(\'assets/mammals.xml\');\n }\n\n function setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.hasAttribute(\'species\'));\n print(firstChild.hasAttribute(\'color\'));\n }\n\n // Sketch prints:\n // true\n // false\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 624, + description: + '

Returns an attribute value of the element as an Number. If the defaultValue\nparameter is specified and the attribute doesn't exist, then defaultValue\nis returned. If no defaultValue is specified and the attribute doesn't\nexist, the value 0 is returned.

\n', + itemtype: 'method', + name: 'getNum', + params: [ + { + name: 'name', + description: '

the non-null full name of the attribute

\n', + type: 'String' + }, + { + name: 'defaultValue', + description: '

the default value of the attribute

\n', + type: 'Number', + optional: true + } + ], + return: { + description: '', + type: 'Number' + }, + example: [ + '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.getNum(\'id\'));\n}\n\n// Sketch prints:\n// 0\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 670, + description: + '

Returns an attribute value of the element as an String. If the defaultValue\nparameter is specified and the attribute doesn't exist, then defaultValue\nis returned. If no defaultValue is specified and the attribute doesn't\nexist, null is returned.

\n', + itemtype: 'method', + name: 'getString', + params: [ + { + name: 'name', + description: '

the non-null full name of the attribute

\n', + type: 'String' + }, + { + name: 'defaultValue', + description: '

the default value of the attribute

\n', + type: 'Number', + optional: true + } + ], + return: { + description: '', + type: 'String' + }, + example: [ + '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.getString(\'species\'));\n}\n\n// Sketch prints:\n// "Capra hircus"\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 716, + description: + '

Sets the content of an element's attribute. The first parameter specifies\nthe attribute name, while the second specifies the new content.

\n', + itemtype: 'method', + name: 'setAttribute', + params: [ + { + name: 'name', + description: '

the full name of the attribute

\n', + type: 'String' + }, + { + name: 'value', + description: '

the value of the attribute

\n', + type: 'Number|String|Boolean' + } + ], + example: [ + '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.getString(\'species\'));\n firstChild.setAttribute(\'species\', \'Jamides zebra\');\n print(firstChild.getString(\'species\'));\n}\n\n// Sketch prints:\n// "Capra hircus"\n// "Jamides zebra"\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 757, + description: + '

Returns the content of an element. If there is no such content,\ndefaultValue is returned if specified, otherwise null is returned.

\n', + itemtype: 'method', + name: 'getContent', + params: [ + { + name: 'defaultValue', + description: '

value returned if no content is found

\n', + type: 'String', + optional: true + } + ], + return: { + description: '', + type: 'String' + }, + example: [ + '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.getContent());\n}\n\n// Sketch prints:\n// "Goat"\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 798, + description: '

Sets the element's content.

\n', + itemtype: 'method', + name: 'setContent', + params: [ + { + name: 'text', + description: '

the new content

\n', + type: 'String' + } + ], + example: [ + '\n
\n// The following short XML file called "mammals.xml" is parsed\n// in the code below.\n//\n// \n// <mammals>\n// <animal id="0" species="Capra hircus">Goat</animal>\n// <animal id="1" species="Panthera pardus">Leopard</animal>\n// <animal id="2" species="Equus zebra">Zebra</animal>\n// </mammals>\n\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n let firstChild = xml.getChild(\'animal\');\n print(firstChild.getContent());\n firstChild.setContent(\'Mountain Goat\');\n print(firstChild.getContent());\n}\n\n// Sketch prints:\n// "Goat"\n// "Mountain Goat"\n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/io/p5.XML.js', + line: 839, + description: + '

Serializes the element into a string. This function is useful for preparing\nthe content to be sent over a http request or saved to file.

\n', + itemtype: 'method', + name: 'serialize', + return: { + description: 'Serialized string of the element', + type: 'String' + }, + example: [ + '\n
\nlet xml;\n\nfunction preload() {\n xml = loadXML(\'assets/mammals.xml\');\n}\n\nfunction setup() {\n print(xml.serialize());\n}\n\n// Sketch prints:\n// \n// Goat\n// Leopard\n// Zebra\n// \n
' + ], + class: 'p5.XML', + module: 'IO', + submodule: 'XML' + }, + { + file: 'src/math/calculation.js', + line: 12, + description: + '

Calculates the absolute value (magnitude) of a number. Maps to Math.abs().\nThe absolute value of a number is always positive.

\n', + itemtype: 'method', + name: 'abs', + params: [ + { + name: 'n', + description: '

number to compute

\n', + type: 'Number' + } + ], + return: { + description: 'absolute value of given number', + type: 'Number' + }, + example: [ + '\n
\nfunction setup() {\n let x = -3;\n let y = abs(x);\n\n print(x); // -3\n print(y); // 3\n}\n
' + ], + alt: 'no image displayed', + class: 'p5', + module: 'Math', + submodule: 'Calculation' + }, + { + file: 'src/math/calculation.js', + line: 36, + description: + '

Calculates the closest int value that is greater than or equal to the\nvalue of the parameter. Maps to Math.ceil(). For example, ceil(9.03)\nreturns the value 10.

\n', + itemtype: 'method', + name: 'ceil', + params: [ + { + name: 'n', + description: '

number to round up

\n', + type: 'Number' + } + ], + return: { + description: 'rounded up number', + type: 'Integer' + }, + example: [ + '\n
\nfunction draw() {\n background(200);\n // map, mouseX between 0 and 5.\n let ax = map(mouseX, 0, 100, 0, 5);\n let ay = 66;\n\n //Get the ceiling of the mapped number.\n let bx = ceil(map(mouseX, 0, 100, 0, 5));\n let by = 33;\n\n // Multiply the mapped numbers by 20 to more easily\n // see the changes.\n stroke(0);\n fill(0);\n line(0, ay, ax * 20, ay);\n line(0, by, bx * 20, by);\n\n // Reformat the float returned by map and draw it.\n noStroke();\n text(nfc(ax, 2), ax, ay - 5);\n text(nfc(bx, 1), bx, by - 5);\n}\n
' + ], + alt: + '2 horizontal lines & number sets. increase with mouse x. bottom to 2 decimals', + class: 'p5', + module: 'Math', + submodule: 'Calculation' + }, + { + file: 'src/math/calculation.js', + line: 76, + description: + '

Constrains a value between a minimum and maximum value.

\n', + itemtype: 'method', + name: 'constrain', + params: [ + { + name: 'n', + description: '

number to constrain

\n', + type: 'Number' + }, + { + name: 'low', + description: '

minimum limit

\n', + type: 'Number' + }, + { + name: 'high', + description: '

maximum limit

\n', + type: 'Number' + } + ], + return: { + description: 'constrained number', + type: 'Number' + }, + example: [ + '\n
\nfunction draw() {\n background(200);\n\n let leftWall = 25;\n let rightWall = 75;\n\n // xm is just the mouseX, while\n // xc is the mouseX, but constrained\n // between the leftWall and rightWall!\n let xm = mouseX;\n let xc = constrain(mouseX, leftWall, rightWall);\n\n // Draw the walls.\n stroke(150);\n line(leftWall, 0, leftWall, height);\n line(rightWall, 0, rightWall, height);\n\n // Draw xm and xc as circles.\n noStroke();\n fill(150);\n ellipse(xm, 33, 9, 9); // Not Constrained\n fill(0);\n ellipse(xc, 66, 9, 9); // Constrained\n}\n
' + ], + alt: + '2 vertical lines. 2 ellipses move with mouse X 1 does not move passed lines', + class: 'p5', + module: 'Math', + submodule: 'Calculation' + }, + { + file: 'src/math/calculation.js', + line: 121, + description: + '

Calculates the distance between two points, in either two or three dimensions.

\n', + itemtype: 'method', + name: 'dist', + return: { + description: 'distance between the two points', + type: 'Number' + }, + example: [ + "\n
\n// Move your mouse inside the canvas to see the\n// change in distance between two points!\nfunction draw() {\n background(200);\n fill(0);\n\n let x1 = 10;\n let y1 = 90;\n let x2 = mouseX;\n let y2 = mouseY;\n\n line(x1, y1, x2, y2);\n ellipse(x1, y1, 7, 7);\n ellipse(x2, y2, 7, 7);\n\n // d is the length of the line\n // the distance from point 1 to point 2.\n let d = int(dist(x1, y1, x2, y2));\n\n // Let's write d along the line we are drawing!\n push();\n translate((x1 + x2) / 2, (y1 + y2) / 2);\n rotate(atan2(y2 - y1, x2 - x1));\n text(nfc(d, 1), 0, -5);\n pop();\n // Fancy!\n}\n
" + ], + alt: + '2 ellipses joined by line. 1 ellipse moves with mouse X&Y. Distance displayed.', + class: 'p5', + module: 'Math', + submodule: 'Calculation', + overloads: [ + { + line: 121, + params: [ + { + name: 'x1', + description: '

x-coordinate of the first point

\n', + type: 'Number' + }, + { + name: 'y1', + description: '

y-coordinate of the first point

\n', + type: 'Number' + }, + { + name: 'x2', + description: '

x-coordinate of the second point

\n', + type: 'Number' + }, + { + name: 'y2', + description: '

y-coordinate of the second point

\n', + type: 'Number' + } + ], + return: { + description: 'distance between the two points', + type: 'Number' + } + }, + { + line: 165, + params: [ + { + name: 'x1', + description: '', + type: 'Number' + }, + { + name: 'y1', + description: '', + type: 'Number' + }, + { + name: 'z1', + description: '

z-coordinate of the first point

\n', + type: 'Number' + }, + { + name: 'x2', + description: '', + type: 'Number' + }, + { + name: 'y2', + description: '', + type: 'Number' + }, + { + name: 'z2', + description: '

z-coordinate of the second point

\n', + type: 'Number' + } + ], + return: { + description: 'distance between the two points', + type: 'Number' + } + } + ] + }, + { + file: 'src/math/calculation.js', + line: 190, + description: + '

Returns Euler's number e (2.71828...) raised to the power of the n\nparameter. Maps to Math.exp().

\n', + itemtype: 'method', + name: 'exp', + params: [ + { + name: 'n', + description: '

exponent to raise

\n', + type: 'Number' + } + ], + return: { + description: 'e^n', + type: 'Number' + }, + example: [ + "\n
\nfunction draw() {\n background(200);\n\n // Compute the exp() function with a value between 0 and 2\n let xValue = map(mouseX, 0, width, 0, 2);\n let yValue = exp(xValue);\n\n let y = map(yValue, 0, 8, height, 0);\n\n let legend = 'exp (' + nfc(xValue, 3) + ')\\n= ' + nf(yValue, 1, 4);\n stroke(150);\n line(mouseX, y, mouseX, height);\n fill(0);\n text(legend, 5, 15);\n noStroke();\n ellipse(mouseX, y, 7, 7);\n\n // Draw the exp(x) curve,\n // over the domain of x from 0 to 2\n noFill();\n stroke(0);\n beginShape();\n for (let x = 0; x < width; x++) {\n xValue = map(x, 0, width, 0, 2);\n yValue = exp(xValue);\n y = map(yValue, 0, 8, height, 0);\n vertex(x, y);\n }\n\n endShape();\n line(0, 0, 0, height);\n line(0, height - 1, width, height - 1);\n}\n
" + ], + alt: 'ellipse moves along a curve with mouse x. e^n displayed.', + class: 'p5', + module: 'Math', + submodule: 'Calculation' + }, + { + file: 'src/math/calculation.js', + line: 240, + description: + '

Calculates the closest int value that is less than or equal to the\nvalue of the parameter. Maps to Math.floor().

\n', + itemtype: 'method', + name: 'floor', + params: [ + { + name: 'n', + description: '

number to round down

\n', + type: 'Number' + } + ], + return: { + description: 'rounded down number', + type: 'Integer' + }, + example: [ + '\n
\nfunction draw() {\n background(200);\n //map, mouseX between 0 and 5.\n let ax = map(mouseX, 0, 100, 0, 5);\n let ay = 66;\n\n //Get the floor of the mapped number.\n let bx = floor(map(mouseX, 0, 100, 0, 5));\n let by = 33;\n\n // Multiply the mapped numbers by 20 to more easily\n // see the changes.\n stroke(0);\n fill(0);\n line(0, ay, ax * 20, ay);\n line(0, by, bx * 20, by);\n\n // Reformat the float returned by map and draw it.\n noStroke();\n text(nfc(ax, 2), ax, ay - 5);\n text(nfc(bx, 1), bx, by - 5);\n}\n
' + ], + alt: + '2 horizontal lines & number sets. increase with mouse x. bottom to 2 decimals', + class: 'p5', + module: 'Math', + submodule: 'Calculation' + }, + { + file: 'src/math/calculation.js', + line: 279, + description: + '

Calculates a number between two numbers at a specific increment. The amt\nparameter is the amount to interpolate between the two values where 0.0\nequal to the first point, 0.1 is very near the first point, 0.5 is\nhalf-way in between, and 1.0 is equal to the second point. If the\nvalue of amt is more than 1.0 or less than 0.0, the number will be\ncalculated accordingly in the ratio of the two given numbers. The lerp\nfunction is convenient for creating motion along a straight\npath and for drawing dotted lines.

\n', + itemtype: 'method', + name: 'lerp', + params: [ + { + name: 'start', + description: '

first value

\n', + type: 'Number' + }, + { + name: 'stop', + description: '

second value

\n', + type: 'Number' + }, + { + name: 'amt', + description: '

number

\n', + type: 'Number' + } + ], + return: { + description: 'lerped value', + type: 'Number' + }, + example: [ + '\n
\nfunction setup() {\n background(200);\n let a = 20;\n let b = 80;\n let c = lerp(a, b, 0.2);\n let d = lerp(a, b, 0.5);\n let e = lerp(a, b, 0.8);\n\n let y = 50;\n\n strokeWeight(5);\n stroke(0); // Draw the original points in black\n point(a, y);\n point(b, y);\n\n stroke(100); // Draw the lerp points in gray\n point(c, y);\n point(d, y);\n point(e, y);\n}\n
' + ], + alt: + '5 points horizontally staggered mid-canvas. mid 3 are grey, outer black', + class: 'p5', + module: 'Math', + submodule: 'Calculation' + }, + { + file: 'src/math/calculation.js', + line: 327, + description: + '

Calculates the natural logarithm (the base-e logarithm) of a number. This\nfunction expects the n parameter to be a value greater than 0.0. Maps to\nMath.log().

\n', + itemtype: 'method', + name: 'log', + params: [ + { + name: 'n', + description: '

number greater than 0

\n', + type: 'Number' + } + ], + return: { + description: 'natural logarithm of n', + type: 'Number' + }, + example: [ + "\n
\nfunction draw() {\n background(200);\n let maxX = 2.8;\n let maxY = 1.5;\n\n // Compute the natural log of a value between 0 and maxX\n let xValue = map(mouseX, 0, width, 0, maxX);\n let yValue, y;\n if (xValue > 0) {\n // Cannot take the log of a negative number.\n yValue = log(xValue);\n y = map(yValue, -maxY, maxY, height, 0);\n\n // Display the calculation occurring.\n let legend = 'log(' + nf(xValue, 1, 2) + ')\\n= ' + nf(yValue, 1, 3);\n stroke(150);\n line(mouseX, y, mouseX, height);\n fill(0);\n text(legend, 5, 15);\n noStroke();\n ellipse(mouseX, y, 7, 7);\n }\n\n // Draw the log(x) curve,\n // over the domain of x from 0 to maxX\n noFill();\n stroke(0);\n beginShape();\n for (let x = 0; x < width; x++) {\n xValue = map(x, 0, width, 0, maxX);\n yValue = log(xValue);\n y = map(yValue, -maxY, maxY, height, 0);\n vertex(x, y);\n }\n endShape();\n line(0, 0, 0, height);\n line(0, height / 2, width, height / 2);\n}\n
" + ], + alt: + 'ellipse moves along a curve with mouse x. natural logarithm of n displayed.', + class: 'p5', + module: 'Math', + submodule: 'Calculation' + }, + { + file: 'src/math/calculation.js', + line: 383, + description: + '

Calculates the magnitude (or length) of a vector. A vector is a direction\nin space commonly used in computer graphics and linear algebra. Because it\nhas no "start" position, the magnitude of a vector can be thought of as\nthe distance from the coordinate 0,0 to its x,y value. Therefore, mag() is\na shortcut for writing dist(0, 0, x, y).

\n', + itemtype: 'method', + name: 'mag', + params: [ + { + name: 'a', + description: '

first value

\n', + type: 'Number' + }, + { + name: 'b', + description: '

second value

\n', + type: 'Number' + } + ], + return: { + description: 'magnitude of vector from (0,0) to (a,b)', + type: 'Number' + }, + example: [ + '\n
\nfunction setup() {\n let x1 = 20;\n let x2 = 80;\n let y1 = 30;\n let y2 = 70;\n\n line(0, 0, x1, y1);\n print(mag(x1, y1)); // Prints "36.05551275463989"\n line(0, 0, x2, y1);\n print(mag(x2, y1)); // Prints "85.44003745317531"\n line(0, 0, x1, y2);\n print(mag(x1, y2)); // Prints "72.80109889280519"\n line(0, 0, x2, y2);\n print(mag(x2, y2)); // Prints "106.3014581273465"\n}\n
' + ], + alt: '4 lines of different length radiate from top left of canvas.', + class: 'p5', + module: 'Math', + submodule: 'Calculation' + }, + { + file: 'src/math/calculation.js', + line: 422, + description: + '

Re-maps a number from one range to another.\n

\nIn the first example above, the number 25 is converted from a value in the\nrange of 0 to 100 into a value that ranges from the left edge of the\nwindow (0) to the right edge (width).

\n', + itemtype: 'method', + name: 'map', + params: [ + { + name: 'value', + description: '

the incoming value to be converted

\n', + type: 'Number' + }, + { + name: 'start1', + description: '

lower bound of the value's current range

\n', + type: 'Number' + }, + { + name: 'stop1', + description: '

upper bound of the value's current range

\n', + type: 'Number' + }, + { + name: 'start2', + description: '

lower bound of the value's target range

\n', + type: 'Number' + }, + { + name: 'stop2', + description: '

upper bound of the value's target range

\n', + type: 'Number' + }, + { + name: 'withinBounds', + description: '

constrain the value to the newly mapped range

\n', + type: 'Boolean', + optional: true + } + ], + return: { + description: 'remapped number', + type: 'Number' + }, + example: [ + '\n
\nlet value = 25;\nlet m = map(value, 0, 100, 0, width);\nellipse(m, 50, 10, 10);\n
\n\n
\nfunction setup() {\n noStroke();\n}\n\nfunction draw() {\n background(204);\n let x1 = map(mouseX, 0, width, 25, 75);\n ellipse(x1, 25, 25, 25);\n //This ellipse is constrained to the 0-100 range\n //after setting withinBounds to true\n let x2 = map(mouseX, 0, width, 0, 100, true);\n ellipse(x2, 75, 25, 25);\n}\n
' + ], + alt: + '10 by 10 white ellipse with in mid left canvas\n2 25 by 25 white ellipses move with mouse x. Bottom has more range from X', + class: 'p5', + module: 'Math', + submodule: 'Calculation' + }, + { + file: 'src/math/calculation.js', + line: 478, + description: + '

Determines the largest value in a sequence of numbers, and then returns\nthat value. max() accepts any number of Number parameters, or an Array\nof any length.

\n', + itemtype: 'method', + name: 'max', + return: { + description: 'maximum Number', + type: 'Number' + }, + example: [ + "\n
\nfunction setup() {\n // Change the elements in the array and run the sketch\n // to show how max() works!\n let numArray = [2, 1, 5, 4, 8, 9];\n fill(0);\n noStroke();\n text('Array Elements', 0, 10);\n // Draw all numbers in the array\n let spacing = 15;\n let elemsY = 25;\n for (let i = 0; i < numArray.length; i++) {\n text(numArray[i], i * spacing, elemsY);\n }\n let maxX = 33;\n let maxY = 80;\n // Draw the Maximum value in the array.\n textSize(32);\n text(max(numArray), maxX, maxY);\n}\n
" + ], + alt: + 'Small text at top reads: Array Elements 2 1 5 4 8 9. Large text at center: 9', + class: 'p5', + module: 'Math', + submodule: 'Calculation', + overloads: [ + { + line: 478, + params: [ + { + name: 'n0', + description: '

Number to compare

\n', + type: 'Number' + }, + { + name: 'n1', + description: '

Number to compare

\n', + type: 'Number' + } + ], + return: { + description: 'maximum Number', + type: 'Number' + } + }, + { + line: 514, + params: [ + { + name: 'nums', + description: '

Numbers to compare

\n', + type: 'Number[]' + } + ], + return: { + description: '', + type: 'Number' + } + } + ] + }, + { + file: 'src/math/calculation.js', + line: 528, + description: + '

Determines the smallest value in a sequence of numbers, and then returns\nthat value. min() accepts any number of Number parameters, or an Array\nof any length.

\n', + itemtype: 'method', + name: 'min', + return: { + description: 'minimum Number', + type: 'Number' + }, + example: [ + "\n
\nfunction setup() {\n // Change the elements in the array and run the sketch\n // to show how min() works!\n let numArray = [2, 1, 5, 4, 8, 9];\n fill(0);\n noStroke();\n text('Array Elements', 0, 10);\n // Draw all numbers in the array\n let spacing = 15;\n let elemsY = 25;\n for (let i = 0; i < numArray.length; i++) {\n text(numArray[i], i * spacing, elemsY);\n }\n let maxX = 33;\n let maxY = 80;\n // Draw the Minimum value in the array.\n textSize(32);\n text(min(numArray), maxX, maxY);\n}\n
" + ], + alt: + 'Small text at top reads: Array Elements 2 1 5 4 8 9. Large text at center: 1', + class: 'p5', + module: 'Math', + submodule: 'Calculation', + overloads: [ + { + line: 528, + params: [ + { + name: 'n0', + description: '

Number to compare

\n', + type: 'Number' + }, + { + name: 'n1', + description: '

Number to compare

\n', + type: 'Number' + } + ], + return: { + description: 'minimum Number', + type: 'Number' + } + }, + { + line: 564, + params: [ + { + name: 'nums', + description: '

Numbers to compare

\n', + type: 'Number[]' + } + ], + return: { + description: '', + type: 'Number' + } + } + ] + }, + { + file: 'src/math/calculation.js', + line: 578, + description: + '

Normalizes a number from another range into a value between 0 and 1.\nIdentical to map(value, low, high, 0, 1).\nNumbers outside of the range are not clamped to 0 and 1, because\nout-of-range values are often intentional and useful. (See the example above.)

\n', + itemtype: 'method', + name: 'norm', + params: [ + { + name: 'value', + description: '

incoming value to be normalized

\n', + type: 'Number' + }, + { + name: 'start', + description: '

lower bound of the value's current range

\n', + type: 'Number' + }, + { + name: 'stop', + description: '

upper bound of the value's current range

\n', + type: 'Number' + } + ], + return: { + description: 'normalized number', + type: 'Number' + }, + example: [ + "\n
\nfunction draw() {\n background(200);\n let currentNum = mouseX;\n let lowerBound = 0;\n let upperBound = width; //100;\n let normalized = norm(currentNum, lowerBound, upperBound);\n let lineY = 70;\n stroke(3);\n line(0, lineY, width, lineY);\n //Draw an ellipse mapped to the non-normalized value.\n noStroke();\n fill(50);\n let s = 7; // ellipse size\n ellipse(currentNum, lineY, s, s);\n\n // Draw the guide\n let guideY = lineY + 15;\n text('0', 0, guideY);\n textAlign(RIGHT);\n text('100', width, guideY);\n\n // Draw the normalized value\n textAlign(LEFT);\n fill(0);\n textSize(32);\n let normalY = 40;\n let normalX = 20;\n text(normalized, normalX, normalY);\n}\n
" + ], + alt: + 'ellipse moves with mouse. 0 shown left & 100 right and updating values center', + class: 'p5', + module: 'Math', + submodule: 'Calculation' + }, + { + file: 'src/math/calculation.js', + line: 631, + description: + '

Facilitates exponential expressions. The pow() function is an efficient\nway of multiplying numbers by themselves (or their reciprocals) in large\nquantities. For example, pow(3, 5) is equivalent to the expression\n33333 and pow(3, -5) is equivalent to 1 / 33333. Maps to\nMath.pow().

\n', + itemtype: 'method', + name: 'pow', + params: [ + { + name: 'n', + description: '

base of the exponential expression

\n', + type: 'Number' + }, + { + name: 'e', + description: '

power by which to raise the base

\n', + type: 'Number' + } + ], + return: { + description: 'n^e', + type: 'Number' + }, + example: [ + '\n
\nfunction setup() {\n //Exponentially increase the size of an ellipse.\n let eSize = 3; // Original Size\n let eLoc = 10; // Original Location\n\n ellipse(eLoc, eLoc, eSize, eSize);\n\n ellipse(eLoc * 2, eLoc * 2, pow(eSize, 2), pow(eSize, 2));\n\n ellipse(eLoc * 4, eLoc * 4, pow(eSize, 3), pow(eSize, 3));\n\n ellipse(eLoc * 8, eLoc * 8, pow(eSize, 4), pow(eSize, 4));\n}\n
' + ], + alt: 'small to large ellipses radiating from top left of canvas', + class: 'p5', + module: 'Math', + submodule: 'Calculation' + }, + { + file: 'src/math/calculation.js', + line: 665, + description: + '

Calculates the integer closest to the n parameter. For example,\nround(133.8) returns the value 134. Maps to Math.round().

\n', + itemtype: 'method', + name: 'round', + params: [ + { + name: 'n', + description: '

number to round

\n', + type: 'Number' + } + ], + return: { + description: 'rounded number', + type: 'Integer' + }, + example: [ + '\n
\nfunction draw() {\n background(200);\n //map, mouseX between 0 and 5.\n let ax = map(mouseX, 0, 100, 0, 5);\n let ay = 66;\n\n // Round the mapped number.\n let bx = round(map(mouseX, 0, 100, 0, 5));\n let by = 33;\n\n // Multiply the mapped numbers by 20 to more easily\n // see the changes.\n stroke(0);\n fill(0);\n line(0, ay, ax * 20, ay);\n line(0, by, bx * 20, by);\n\n // Reformat the float returned by map and draw it.\n noStroke();\n text(nfc(ax, 2), ax, ay - 5);\n text(nfc(bx, 1), bx, by - 5);\n}\n
' + ], + alt: + 'horizontal center line squared values displayed on top and regular on bottom.', + class: 'p5', + module: 'Math', + submodule: 'Calculation' + }, + { + file: 'src/math/calculation.js', + line: 704, + description: + '

Squares a number (multiplies a number by itself). The result is always a\npositive number, as multiplying two negative numbers always yields a\npositive result. For example, -1 * -1 = 1.

\n', + itemtype: 'method', + name: 'sq', + params: [ + { + name: 'n', + description: '

number to square

\n', + type: 'Number' + } + ], + return: { + description: 'squared number', + type: 'Number' + }, + example: [ + "\n
\nfunction draw() {\n background(200);\n let eSize = 7;\n let x1 = map(mouseX, 0, width, 0, 10);\n let y1 = 80;\n let x2 = sq(x1);\n let y2 = 20;\n\n // Draw the non-squared.\n line(0, y1, width, y1);\n ellipse(x1, y1, eSize, eSize);\n\n // Draw the squared.\n line(0, y2, width, y2);\n ellipse(x2, y2, eSize, eSize);\n\n // Draw dividing line.\n stroke(100);\n line(0, height / 2, width, height / 2);\n\n // Draw text.\n let spacing = 15;\n noStroke();\n fill(0);\n text('x = ' + x1, 0, y1 + spacing);\n text('sq(x) = ' + x2, 0, y2 + spacing);\n}\n
" + ], + alt: + 'horizontal center line squared values displayed on top and regular on bottom.', + class: 'p5', + module: 'Math', + submodule: 'Calculation' + }, + { + file: 'src/math/calculation.js', + line: 751, + description: + '

Calculates the square root of a number. The square root of a number is\nalways positive, even though there may be a valid negative root. The\nsquare root s of number a is such that s*s = a. It is the opposite of\nsquaring. Maps to Math.sqrt().

\n', + itemtype: 'method', + name: 'sqrt', + params: [ + { + name: 'n', + description: '

non-negative number to square root

\n', + type: 'Number' + } + ], + return: { + description: 'square root of number', + type: 'Number' + }, + example: [ + "\n
\nfunction draw() {\n background(200);\n let eSize = 7;\n let x1 = mouseX;\n let y1 = 80;\n let x2 = sqrt(x1);\n let y2 = 20;\n\n // Draw the non-squared.\n line(0, y1, width, y1);\n ellipse(x1, y1, eSize, eSize);\n\n // Draw the squared.\n line(0, y2, width, y2);\n ellipse(x2, y2, eSize, eSize);\n\n // Draw dividing line.\n stroke(100);\n line(0, height / 2, width, height / 2);\n\n // Draw text.\n noStroke();\n fill(0);\n let spacing = 15;\n text('x = ' + x1, 0, y1 + spacing);\n text('sqrt(x) = ' + x2, 0, y2 + spacing);\n}\n
" + ], + alt: + 'horizontal center line squareroot values displayed on top and regular on bottom.', + class: 'p5', + module: 'Math', + submodule: 'Calculation' + }, + { + file: 'src/math/math.js', + line: 12, + description: + '

Creates a new p5.Vector (the datatype for storing vectors). This provides a\ntwo or three dimensional vector, specifically a Euclidean (also known as\ngeometric) vector. A vector is an entity that has both magnitude and\ndirection.

\n', + itemtype: 'method', + name: 'createVector', + params: [ + { + name: 'x', + description: '

x component of the vector

\n', + type: 'Number', + optional: true + }, + { + name: 'y', + description: '

y component of the vector

\n', + type: 'Number', + optional: true + }, + { + name: 'z', + description: '

z component of the vector

\n', + type: 'Number', + optional: true + } + ], + return: { + description: '', + type: 'p5.Vector' + }, + example: [ + "\n
\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n noStroke();\n fill(255, 102, 204);\n}\n\nfunction draw() {\n background(255);\n pointLight(color(255), createVector(sin(millis() / 1000) * 20, -40, -10));\n scale(0.75);\n sphere();\n}\n
" + ], + alt: 'a purple sphere lit by a point light oscillating horizontally', + class: 'p5', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/noise.js', + line: 40, + description: + '

Returns the Perlin noise value at specified coordinates. Perlin noise is\na random sequence generator producing a more natural ordered, harmonic\nsuccession of numbers compared to the standard random() function.\nIt was invented by Ken Perlin in the 1980s and been used since in\ngraphical applications to produce procedural textures, natural motion,\nshapes, terrains etc.

The main difference to the\nrandom() function is that Perlin noise is defined in an infinite\nn-dimensional space where each pair of coordinates corresponds to a\nfixed semi-random value (fixed only for the lifespan of the program; see\nthe noiseSeed() function). p5.js can compute 1D, 2D and 3D noise,\ndepending on the number of coordinates given. The resulting value will\nalways be between 0.0 and 1.0. The noise value can be animated by moving\nthrough the noise space as demonstrated in the example above. The 2nd\nand 3rd dimension can also be interpreted as time.

The actual\nnoise is structured similar to an audio signal, in respect to the\nfunction's use of frequencies. Similar to the concept of harmonics in\nphysics, perlin noise is computed over several octaves which are added\ntogether for the final result.

Another way to adjust the\ncharacter of the resulting sequence is the scale of the input\ncoordinates. As the function works within an infinite space the value of\nthe coordinates doesn't matter as such, only the distance between\nsuccessive coordinates does (eg. when using noise() within a\nloop). As a general rule the smaller the difference between coordinates,\nthe smoother the resulting noise sequence will be. Steps of 0.005-0.03\nwork best for most applications, but this will differ depending on use.

\n', + itemtype: 'method', + name: 'noise', + params: [ + { + name: 'x', + description: '

x-coordinate in noise space

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y-coordinate in noise space

\n', + type: 'Number', + optional: true + }, + { + name: 'z', + description: '

z-coordinate in noise space

\n', + type: 'Number', + optional: true + } + ], + return: { + description: + 'Perlin noise value (between 0 and 1) at specified\n coordinates', + type: 'Number' + }, + example: [ + '\n
\n\nlet xoff = 0.0;\n\nfunction draw() {\n background(204);\n xoff = xoff + 0.01;\n let n = noise(xoff) * width;\n line(n, 0, n, height);\n}\n\n
\n
\nlet noiseScale=0.02;\n\nfunction draw() {\n background(0);\n for (let x=0; x < width; x++) {\n let noiseVal = noise((mouseX+x)*noiseScale, mouseY*noiseScale);\n stroke(noiseVal*255);\n line(x, mouseY+noiseVal*80, x, height);\n }\n}\n\n
' + ], + alt: + 'vertical line moves left to right with updating noise values.\nhorizontal wave pattern effected by mouse x-position & updating noise values.', + class: 'p5', + module: 'Math', + submodule: 'Noise' + }, + { + file: 'src/math/noise.js', + line: 187, + description: + '

Adjusts the character and level of detail produced by the Perlin noise\n function. Similar to harmonics in physics, noise is computed over\n several octaves. Lower octaves contribute more to the output signal and\n as such define the overall intensity of the noise, whereas higher octaves\n create finer grained details in the noise sequence.\n

\n By default, noise is computed over 4 octaves with each octave contributing\n exactly half than its predecessor, starting at 50% strength for the 1st\n octave. This falloff amount can be changed by adding an additional function\n parameter. Eg. a falloff factor of 0.75 means each octave will now have\n 75% impact (25% less) of the previous lower octave. Any value between\n 0.0 and 1.0 is valid, however note that values greater than 0.5 might\n result in greater than 1.0 values returned by noise().\n

\n By changing these parameters, the signal created by the noise()\n function can be adapted to fit very specific needs and characteristics.

\n', + itemtype: 'method', + name: 'noiseDetail', + params: [ + { + name: 'lod', + description: '

number of octaves to be used by the noise

\n', + type: 'Number' + }, + { + name: 'falloff', + description: '

falloff factor for each octave

\n', + type: 'Number' + } + ], + example: [ + '\n
\n \n let noiseVal;\n let noiseScale = 0.02;\nfunction setup() {\n createCanvas(100, 100);\n }\nfunction draw() {\n background(0);\n for (let y = 0; y < height; y++) {\n for (let x = 0; x < width / 2; x++) {\n noiseDetail(2, 0.2);\n noiseVal = noise((mouseX + x) * noiseScale, (mouseY + y) * noiseScale);\n stroke(noiseVal * 255);\n point(x, y);\n noiseDetail(8, 0.65);\n noiseVal = noise(\n (mouseX + x + width / 2) * noiseScale,\n (mouseY + y) * noiseScale\n );\n stroke(noiseVal * 255);\n point(x + width / 2, y);\n }\n }\n }\n \n
' + ], + alt: + '2 vertical grey smokey patterns affected my mouse x-position and noise.', + class: 'p5', + module: 'Math', + submodule: 'Noise' + }, + { + file: 'src/math/noise.js', + line: 253, + description: + '

Sets the seed value for noise(). By default, noise()\nproduces different results each time the program is run. Set the\nvalue parameter to a constant to return the same pseudo-random\nnumbers each time the software is run.

\n', + itemtype: 'method', + name: 'noiseSeed', + params: [ + { + name: 'seed', + description: '

the seed value

\n', + type: 'Number' + } + ], + example: [ + '\n
\nlet xoff = 0.0;\n\nfunction setup() {\n noiseSeed(99);\n stroke(0, 10);\n}\n\nfunction draw() {\n xoff = xoff + .01;\n let n = noise(xoff) * width;\n line(n, 0, n, height);\n}\n\n
' + ], + alt: 'vertical grey lines drawing in pattern affected by noise.', + class: 'p5', + module: 'Math', + submodule: 'Noise' + }, + { + file: 'src/math/p5.Vector.js', + line: 67, + description: '

The x component of the vector

\n', + itemtype: 'property', + name: 'x', + type: 'Number', + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 72, + description: '

The y component of the vector

\n', + itemtype: 'property', + name: 'y', + type: 'Number', + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 77, + description: '

The z component of the vector

\n', + itemtype: 'property', + name: 'z', + type: 'Number', + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 84, + description: + '

Returns a string representation of a vector v by calling String(v)\nor v.toString(). This method is useful for logging vectors in the\nconsole.

\n', + itemtype: 'method', + name: 'toString', + return: { + description: '', + type: 'String' + }, + example: [ + '\n
\n\nfunction setup() {\n let v = createVector(20, 30);\n print(String(v)); // prints "p5.Vector Object : [20, 30, 0]"\n}\n\n
\n\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(0, 0);\n let v1 = createVector(mouseX, mouseY);\n drawArrow(v0, v1, \'black\');\n\n noStroke();\n text(v1.toString(), 10, 25, 90, 75);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
' + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 134, + description: + '

Sets the x, y, and z component of the vector using two or three separate\nvariables, the data from a p5.Vector, or the values from a float array.

\n', + itemtype: 'method', + name: 'set', + chainable: 1, + example: [ + "\n
\n\nfunction setup() {\n let v = createVector(1, 2, 3);\n v.set(4, 5, 6); // Sets vector to [4, 5, 6]\n\n let v1 = createVector(0, 0, 0);\n let arr = [1, 2, 3];\n v1.set(arr); // Sets vector to [1, 2, 3]\n}\n\n
\n\n
\n\nlet v0, v1;\nfunction setup() {\n createCanvas(100, 100);\n\n v0 = createVector(0, 0);\n v1 = createVector(50, 50);\n}\n\nfunction draw() {\n background(240);\n\n drawArrow(v0, v1, 'black');\n v1.set(v1.x + random(-1, 1), v1.y + random(-1, 1));\n\n noStroke();\n text('x: ' + round(v1.x) + ' y: ' + round(v1.y), 20, 90);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math', + overloads: [ + { + line: 134, + params: [ + { + name: 'x', + description: '

the x component of the vector

\n', + type: 'Number', + optional: true + }, + { + name: 'y', + description: '

the y component of the vector

\n', + type: 'Number', + optional: true + }, + { + name: 'z', + description: '

the z component of the vector

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 193, + params: [ + { + name: 'value', + description: '

the vector to set

\n', + type: 'p5.Vector|Number[]' + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/math/p5.Vector.js', + line: 217, + description: + '

Gets a copy of the vector, returns a p5.Vector object.

\n', + itemtype: 'method', + name: 'copy', + return: { + description: 'the copy of the p5.Vector object', + type: 'p5.Vector' + }, + example: [ + '\n
\n\nlet v1 = createVector(1, 2, 3);\nlet v2 = v1.copy();\nprint(v1.x === v2.x && v1.y === v2.y && v1.z === v2.z);\n// Prints "true"\n\n
' + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 240, + description: + '

Adds x, y, and z components to a vector, adds one vector to another, or\nadds two independent vectors together. The version of the method that adds\ntwo vectors together is a static method and returns a p5.Vector, the others\nacts directly on the vector. See the examples for more context.

\n', + itemtype: 'method', + name: 'add', + chainable: 1, + example: [ + "\n
\n\nlet v = createVector(1, 2, 3);\nv.add(4, 5, 6);\n// v's components are set to [5, 7, 9]\n\n
\n\n
\n\n// Static method\nlet v1 = createVector(1, 2, 3);\nlet v2 = createVector(2, 3, 4);\n\nlet v3 = p5.Vector.add(v1, v2);\n// v3 has components [3, 5, 7]\nprint(v3);\n\n
\n\n
\n\n// red vector + blue vector = purple vector\nfunction draw() {\n background(240);\n\n let v0 = createVector(0, 0);\n let v1 = createVector(mouseX, mouseY);\n drawArrow(v0, v1, 'red');\n\n let v2 = createVector(-30, 20);\n drawArrow(v1, v2, 'blue');\n\n let v3 = p5.Vector.add(v1, v2);\n drawArrow(v0, v3, 'purple');\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math', + overloads: [ + { + line: 240, + params: [ + { + name: 'x', + description: '

the x component of the vector to be added

\n', + type: 'Number' + }, + { + name: 'y', + description: '

the y component of the vector to be added

\n', + type: 'Number', + optional: true + }, + { + name: 'z', + description: '

the z component of the vector to be added

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 306, + params: [ + { + name: 'value', + description: '

the vector to add

\n', + type: 'p5.Vector|Number[]' + } + ], + chainable: 1 + }, + { + line: 1555, + params: [ + { + name: 'v1', + description: + '

a p5.Vector to add

\n', + type: 'p5.Vector' + }, + { + name: 'v2', + description: + '

a p5.Vector to add

\n', + type: 'p5.Vector' + }, + { + name: 'target', + description: '

the vector to receive the result

\n', + type: 'p5.Vector' + } + ], + static: 1 + }, + { + line: 1562, + params: [ + { + name: 'v1', + description: '', + type: 'p5.Vector' + }, + { + name: 'v2', + description: '', + type: 'p5.Vector' + } + ], + static: 1, + return: { + description: 'the resulting p5.Vector', + type: 'p5.Vector' + } + } + ] + }, + { + file: 'src/math/p5.Vector.js', + line: 330, + description: + '

Subtracts x, y, and z components from a vector, subtracts one vector from\nanother, or subtracts two independent vectors. The version of the method\nthat subtracts two vectors is a static method and returns a p5.Vector, the\nother acts directly on the vector. See the examples for more context.

\n', + itemtype: 'method', + name: 'sub', + chainable: 1, + example: [ + "\n
\n\nlet v = createVector(4, 5, 6);\nv.sub(1, 1, 1);\n// v's components are set to [3, 4, 5]\n\n
\n\n
\n\n// Static method\nlet v1 = createVector(2, 3, 4);\nlet v2 = createVector(1, 2, 3);\n\nlet v3 = p5.Vector.sub(v1, v2);\n// v3 has components [1, 1, 1]\nprint(v3);\n\n
\n\n
\n\n// red vector - blue vector = purple vector\nfunction draw() {\n background(240);\n\n let v0 = createVector(0, 0);\n let v1 = createVector(70, 50);\n drawArrow(v0, v1, 'red');\n\n let v2 = createVector(mouseX, mouseY);\n drawArrow(v0, v2, 'blue');\n\n let v3 = p5.Vector.sub(v1, v2);\n drawArrow(v2, v3, 'purple');\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math', + overloads: [ + { + line: 330, + params: [ + { + name: 'x', + description: '

the x component of the vector to subtract

\n', + type: 'Number' + }, + { + name: 'y', + description: '

the y component of the vector to subtract

\n', + type: 'Number', + optional: true + }, + { + name: 'z', + description: '

the z component of the vector to subtract

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 396, + params: [ + { + name: 'value', + description: '

the vector to subtract

\n', + type: 'p5.Vector|Number[]' + } + ], + chainable: 1 + }, + { + line: 1585, + params: [ + { + name: 'v1', + description: + '

a p5.Vector to subtract from

\n', + type: 'p5.Vector' + }, + { + name: 'v2', + description: + '

a p5.Vector to subtract

\n', + type: 'p5.Vector' + }, + { + name: 'target', + description: '

if undefined a new vector will be created

\n', + type: 'p5.Vector' + } + ], + static: 1 + }, + { + line: 1592, + params: [ + { + name: 'v1', + description: '', + type: 'p5.Vector' + }, + { + name: 'v2', + description: '', + type: 'p5.Vector' + } + ], + static: 1, + return: { + description: 'the resulting p5.Vector', + type: 'p5.Vector' + } + } + ] + }, + { + file: 'src/math/p5.Vector.js', + line: 420, + description: + '

Multiply the vector by a scalar. The static version of this method\ncreates a new p5.Vector while the non static version acts on the vector\ndirectly. See the examples for more context.

\n', + itemtype: 'method', + name: 'mult', + chainable: 1, + example: [ + "\n
\n\nlet v = createVector(1, 2, 3);\nv.mult(2);\n// v's components are set to [2, 4, 6]\n\n
\n\n
\n\n// Static method\nlet v1 = createVector(1, 2, 3);\nlet v2 = p5.Vector.mult(v1, 2);\n// v2 has components [2, 4, 6]\nprint(v2);\n\n
\n\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(50, 50);\n let v1 = createVector(25, -25);\n drawArrow(v0, v1, 'red');\n\n let num = map(mouseX, 0, width, -2, 2, true);\n let v2 = p5.Vector.mult(v1, num);\n drawArrow(v0, v2, 'blue');\n\n noStroke();\n text('multiplied by ' + num.toFixed(2), 5, 90);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math', + overloads: [ + { + line: 420, + params: [ + { + name: 'n', + description: '

the number to multiply with the vector

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 1613, + params: [ + { + name: 'v', + description: '

the vector to multiply

\n', + type: 'p5.Vector' + }, + { + name: 'n', + description: '', + type: 'Number' + }, + { + name: 'target', + description: '

if undefined a new vector will be created

\n', + type: 'p5.Vector' + } + ], + static: 1 + }, + { + line: 1620, + params: [ + { + name: 'v', + description: '', + type: 'p5.Vector' + }, + { + name: 'n', + description: '', + type: 'Number' + } + ], + static: 1, + return: { + description: 'the resulting new p5.Vector', + type: 'p5.Vector' + } + } + ] + }, + { + file: 'src/math/p5.Vector.js', + line: 495, + description: + '

Divide the vector by a scalar. The static version of this method creates a\nnew p5.Vector while the non static version acts on the vector directly.\nSee the examples for more context.

\n', + itemtype: 'method', + name: 'div', + chainable: 1, + example: [ + "\n
\n\nlet v = createVector(6, 4, 2);\nv.div(2); //v's components are set to [3, 2, 1]\n\n
\n\n
\n\n// Static method\nlet v1 = createVector(6, 4, 2);\nlet v2 = p5.Vector.div(v1, 2);\n// v2 has components [3, 2, 1]\nprint(v2);\n\n
\n\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(0, 100);\n let v1 = createVector(50, -50);\n drawArrow(v0, v1, 'red');\n\n let num = map(mouseX, 0, width, 10, 0.5, true);\n let v2 = p5.Vector.div(v1, num);\n drawArrow(v0, v2, 'blue');\n\n noStroke();\n text('divided by ' + num.toFixed(2), 10, 90);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math', + overloads: [ + { + line: 495, + params: [ + { + name: 'n', + description: '

the number to divide the vector by

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 1640, + params: [ + { + name: 'v', + description: '

the vector to divide

\n', + type: 'p5.Vector' + }, + { + name: 'n', + description: '', + type: 'Number' + }, + { + name: 'target', + description: '

if undefined a new vector will be created

\n', + type: 'p5.Vector' + } + ], + static: 1 + }, + { + line: 1647, + params: [ + { + name: 'v', + description: '', + type: 'p5.Vector' + }, + { + name: 'n', + description: '', + type: 'Number' + } + ], + static: 1, + return: { + description: 'the resulting new p5.Vector', + type: 'p5.Vector' + } + } + ] + }, + { + file: 'src/math/p5.Vector.js', + line: 573, + description: + '

Calculates the magnitude (length) of the vector and returns the result as\na float (this is simply the equation sqrt(xx + yy + z*z).)

\n', + itemtype: 'method', + name: 'mag', + return: { + description: 'magnitude of the vector', + type: 'Number' + }, + example: [ + '\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(0, 0);\n let v1 = createVector(mouseX, mouseY);\n drawArrow(v0, v1, \'black\');\n\n noStroke();\n text(\'vector length: \' + v1.mag().toFixed(2), 10, 70, 90, 30);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
\n
\n\nlet v = createVector(20.0, 30.0, 40.0);\nlet m = v.mag();\nprint(m); // Prints "53.85164807134504"\n\n
' + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math', + overloads: [ + { + line: 573, + params: [], + return: { + description: 'magnitude of the vector', + type: 'Number' + } + }, + { + line: 1737, + params: [ + { + name: 'vecT', + description: '

the vector to return the magnitude of

\n', + type: 'p5.Vector' + } + ], + static: 1, + return: { + description: 'the magnitude of vecT', + type: 'Number' + } + } + ] + }, + { + file: 'src/math/p5.Vector.js', + line: 621, + description: + '

Calculates the squared magnitude of the vector and returns the result\nas a float (this is simply the equation (xx + yy + z*z).)\nFaster if the real length is not required in the\ncase of comparing vectors, etc.

\n', + itemtype: 'method', + name: 'magSq', + return: { + description: 'squared magnitude of the vector', + type: 'Number' + }, + example: [ + '\n
\n\n// Static method\nlet v1 = createVector(6, 4, 2);\nprint(v1.magSq()); // Prints "56"\n\n
\n\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(0, 0);\n let v1 = createVector(mouseX, mouseY);\n drawArrow(v0, v1, \'black\');\n\n noStroke();\n text(\'vector length squared: \' + v1.magSq().toFixed(2), 10, 45, 90, 55);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
' + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 675, + description: + '

Calculates the dot product of two vectors. The version of the method\nthat computes the dot product of two independent vectors is a static\nmethod. See the examples for more context.

\n', + itemtype: 'method', + name: 'dot', + return: { + description: 'the dot product', + type: 'Number' + }, + example: [ + '\n
\n\nlet v1 = createVector(1, 2, 3);\nlet v2 = createVector(2, 3, 4);\n\nprint(v1.dot(v2)); // Prints "20"\n\n
\n\n
\n\n//Static method\nlet v1 = createVector(1, 2, 3);\nlet v2 = createVector(3, 2, 1);\nprint(p5.Vector.dot(v1, v2)); // Prints "10"\n\n
' + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math', + overloads: [ + { + line: 675, + params: [ + { + name: 'x', + description: '

x component of the vector

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y component of the vector

\n', + type: 'Number', + optional: true + }, + { + name: 'z', + description: '

z component of the vector

\n', + type: 'Number', + optional: true + } + ], + return: { + description: 'the dot product', + type: 'Number' + } + }, + { + line: 706, + params: [ + { + name: 'value', + description: + '

value component of the vector or a p5.Vector

\n', + type: 'p5.Vector' + } + ], + return: { + description: '', + type: 'Number' + } + }, + { + line: 1667, + params: [ + { + name: 'v1', + description: + '

the first p5.Vector

\n', + type: 'p5.Vector' + }, + { + name: 'v2', + description: + '

the second p5.Vector

\n', + type: 'p5.Vector' + } + ], + static: 1, + return: { + description: 'the dot product', + type: 'Number' + } + } + ] + }, + { + file: 'src/math/p5.Vector.js', + line: 718, + description: + '

Calculates and returns a vector composed of the cross product between\ntwo vectors. Both the static and non static methods return a new p5.Vector.\nSee the examples for more context.

\n', + itemtype: 'method', + name: 'cross', + return: { + description: + 'p5.Vector composed of cross product', + type: 'p5.Vector' + }, + example: [ + '\n
\n\nlet v1 = createVector(1, 2, 3);\nlet v2 = createVector(1, 2, 3);\n\nv1.cross(v2); // v\'s components are [0, 0, 0]\n\n
\n\n
\n\n// Static method\nlet v1 = createVector(1, 0, 0);\nlet v2 = createVector(0, 1, 0);\n\nlet crossProduct = p5.Vector.cross(v1, v2);\n// crossProduct has components [0, 0, 1]\nprint(crossProduct);\n\n
' + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math', + overloads: [ + { + line: 718, + params: [ + { + name: 'v', + description: + '

p5.Vector to be crossed

\n', + type: 'p5.Vector' + } + ], + return: { + description: + 'p5.Vector composed of cross product', + type: 'p5.Vector' + } + }, + { + line: 1681, + params: [ + { + name: 'v1', + description: + '

the first p5.Vector

\n', + type: 'p5.Vector' + }, + { + name: 'v2', + description: + '

the second p5.Vector

\n', + type: 'p5.Vector' + } + ], + static: 1, + return: { + description: 'the cross product', + type: 'Number' + } + } + ] + }, + { + file: 'src/math/p5.Vector.js', + line: 759, + description: + '

Calculates the Euclidean distance between two points (considering a\npoint as a vector object).

\n', + itemtype: 'method', + name: 'dist', + return: { + description: 'the distance', + type: 'Number' + }, + example: [ + "\n
\n\nlet v1 = createVector(1, 0, 0);\nlet v2 = createVector(0, 1, 0);\n\nlet distance = v1.dist(v2); // distance is 1.4142...\nprint(distance);\n\n
\n\n
\n\n// Static method\nlet v1 = createVector(1, 0, 0);\nlet v2 = createVector(0, 1, 0);\n\nlet distance = p5.Vector.dist(v1, v2);\n// distance is 1.4142...\nprint(distance);\n\n
\n\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(0, 0);\n\n let v1 = createVector(70, 50);\n drawArrow(v0, v1, 'red');\n\n let v2 = createVector(mouseX, mouseY);\n drawArrow(v0, v2, 'blue');\n\n noStroke();\n text('distance between vectors: ' + v2.dist(v1).toFixed(2), 5, 50, 95, 50);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math', + overloads: [ + { + line: 759, + params: [ + { + name: 'v', + description: + '

the x, y, and z coordinates of a p5.Vector

\n', + type: 'p5.Vector' + } + ], + return: { + description: 'the distance', + type: 'Number' + } + }, + { + line: 1696, + params: [ + { + name: 'v1', + description: + '

the first p5.Vector

\n', + type: 'p5.Vector' + }, + { + name: 'v2', + description: + '

the second p5.Vector

\n', + type: 'p5.Vector' + } + ], + static: 1, + return: { + description: 'the distance', + type: 'Number' + } + } + ] + }, + { + file: 'src/math/p5.Vector.js', + line: 830, + description: + '

Normalize the vector to length 1 (make it a unit vector).

\n', + itemtype: 'method', + name: 'normalize', + return: { + description: 'normalized p5.Vector', + type: 'p5.Vector' + }, + example: [ + "\n
\n\nlet v = createVector(10, 20, 2);\n// v has components [10.0, 20.0, 2.0]\nv.normalize();\n// v's components are set to\n// [0.4454354, 0.8908708, 0.089087084]\n\n
\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(50, 50);\n let v1 = createVector(mouseX - 50, mouseY - 50);\n\n drawArrow(v0, v1, 'red');\n v1.normalize();\n drawArrow(v0, v1.mult(35), 'blue');\n\n noFill();\n ellipse(50, 50, 35 * 2);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 886, + description: + '

Limit the magnitude of this vector to the value used for the max\nparameter.

\n', + itemtype: 'method', + name: 'limit', + params: [ + { + name: 'max', + description: '

the maximum magnitude for the vector

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + "\n
\n\nlet v = createVector(10, 20, 2);\n// v has components [10.0, 20.0, 2.0]\nv.limit(5);\n// v's components are set to\n// [2.2271771, 4.4543543, 0.4454354]\n\n
\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(50, 50);\n let v1 = createVector(mouseX - 50, mouseY - 50);\n\n drawArrow(v0, v1, 'red');\n drawArrow(v0, v1.limit(35), 'blue');\n\n noFill();\n ellipse(50, 50, 35 * 2);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 944, + description: + '

Set the magnitude of this vector to the value used for the len\nparameter.

\n', + itemtype: 'method', + name: 'setMag', + params: [ + { + name: 'len', + description: '

the new length for this vector

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + "\n
\n\nlet v = createVector(10, 20, 2);\n// v has components [10.0, 20.0, 2.0]\nv.setMag(10);\n// v's components are set to [6.0, 8.0, 0.0]\n\n
\n\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(0, 0);\n let v1 = createVector(50, 50);\n\n drawArrow(v0, v1, 'red');\n\n let length = map(mouseX, 0, width, 0, 141, true);\n v1.setMag(length);\n drawArrow(v0, v1, 'blue');\n\n noStroke();\n text('magnitude set to: ' + length.toFixed(2), 10, 70, 90, 30);\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 1000, + description: + '

Calculate the angle of rotation for this vector (only 2D vectors)

\n', + itemtype: 'method', + name: 'heading', + return: { + description: 'the angle of rotation', + type: 'Number' + }, + example: [ + "\n
\n\nfunction setup() {\n let v1 = createVector(30, 50);\n print(v1.heading()); // 1.0303768265243125\n\n v1 = createVector(40, 50);\n print(v1.heading()); // 0.8960553845713439\n\n v1 = createVector(30, 70);\n print(v1.heading()); // 1.1659045405098132\n}\n\n
\n\n
\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(50, 50);\n let v1 = createVector(mouseX - 50, mouseY - 50);\n\n drawArrow(v0, v1, 'black');\n\n let myHeading = v1.heading();\n noStroke();\n text(\n 'vector heading: ' +\n myHeading.toFixed(2) +\n ' radians or ' +\n degrees(myHeading).toFixed(2) +\n ' degrees',\n 10,\n 50,\n 90,\n 50\n );\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 1069, + description: + '

Rotate the vector by an angle (only 2D vectors), magnitude remains the\nsame

\n', + itemtype: 'method', + name: 'rotate', + params: [ + { + name: 'angle', + description: '

the angle of rotation

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + "\n
\n\nlet v = createVector(10.0, 20.0);\n// v has components [10.0, 20.0, 0.0]\nv.rotate(HALF_PI);\n// v's components are set to [-20.0, 9.999999, 0.0]\n\n
\n\n
\n\nlet angle = 0;\nfunction draw() {\n background(240);\n\n let v0 = createVector(50, 50);\n let v1 = createVector(50, 0);\n\n drawArrow(v0, v1.rotate(angle), 'black');\n angle += 0.01;\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 1125, + description: + '

Calculates and returns the angle (in radians) between two vectors.

\n', + itemtype: 'method', + name: 'angleBetween', + params: [ + { + name: 'value', + description: + '

the x, y, and z components of a p5.Vector

\n', + type: 'p5.Vector' + } + ], + return: { + description: 'the angle between (in radians)', + type: 'Number' + }, + example: [ + "\n
\n\nlet v1 = createVector(1, 0, 0);\nlet v2 = createVector(0, 1, 0);\n\nlet angle = v1.angleBetween(v2);\n// angle is PI/2\nprint(angle);\n\n
\n\n
\n\nfunction draw() {\n background(240);\n let v0 = createVector(50, 50);\n\n let v1 = createVector(50, 0);\n drawArrow(v0, v1, 'red');\n\n let v2 = createVector(mouseX - 50, mouseY - 50);\n drawArrow(v0, v2, 'blue');\n\n let angleBetween = v1.angleBetween(v2);\n noStroke();\n text(\n 'angle between: ' +\n angleBetween.toFixed(2) +\n ' radians or ' +\n degrees(angleBetween).toFixed(2) +\n ' degrees',\n 10,\n 50,\n 90,\n 50\n );\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 1198, + description: '

Linear interpolate the vector to another vector

\n', + itemtype: 'method', + name: 'lerp', + chainable: 1, + example: [ + "\n
\n\nlet v = createVector(1, 1, 0);\n\nv.lerp(3, 3, 0, 0.5); // v now has components [2,2,0]\n\n
\n\n
\n\nlet v1 = createVector(0, 0, 0);\nlet v2 = createVector(100, 100, 0);\n\nlet v3 = p5.Vector.lerp(v1, v2, 0.5);\n// v3 has components [50,50,0]\nprint(v3);\n\n
\n\n
\n\nlet step = 0.01;\nlet amount = 0;\n\nfunction draw() {\n background(240);\n let v0 = createVector(0, 0);\n\n let v1 = createVector(mouseX, mouseY);\n drawArrow(v0, v1, 'red');\n\n let v2 = createVector(90, 90);\n drawArrow(v0, v2, 'blue');\n\n if (amount > 1 || amount < 0) {\n step *= -1;\n }\n amount += step;\n let v3 = p5.Vector.lerp(v1, v2, amount);\n\n drawArrow(v0, v3, 'purple');\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math', + overloads: [ + { + line: 1198, + params: [ + { + name: 'x', + description: '

the x component

\n', + type: 'Number' + }, + { + name: 'y', + description: '

the y component

\n', + type: 'Number' + }, + { + name: 'z', + description: '

the z component

\n', + type: 'Number' + }, + { + name: 'amt', + description: + '

the amount of interpolation; some value between 0.0\n (old vector) and 1.0 (new vector). 0.9 is very near\n the new vector. 0.5 is halfway in between.

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 1271, + params: [ + { + name: 'v', + description: + '

the p5.Vector to lerp to

\n', + type: 'p5.Vector' + }, + { + name: 'amt', + description: '', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 1711, + params: [ + { + name: 'v1', + description: '', + type: 'p5.Vector' + }, + { + name: 'v2', + description: '', + type: 'p5.Vector' + }, + { + name: 'amt', + description: '', + type: 'Number' + }, + { + name: 'target', + description: '

if undefined a new vector will be created

\n', + type: 'p5.Vector' + } + ], + static: 1 + }, + { + line: 1719, + params: [ + { + name: 'v1', + description: '', + type: 'p5.Vector' + }, + { + name: 'v2', + description: '', + type: 'p5.Vector' + }, + { + name: 'amt', + description: '', + type: 'Number' + } + ], + static: 1, + return: { + description: 'the lerped value', + type: 'Number' + } + } + ] + }, + { + file: 'src/math/p5.Vector.js', + line: 1287, + description: + '

Return a representation of this vector as a float array. This is only\nfor temporary use. If used in any other fashion, the contents should be\ncopied by using the p5.Vector.copy() method to copy into your own\narray.

\n', + itemtype: 'method', + name: 'array', + return: { + description: 'an Array with the 3 values', + type: 'Number[]' + }, + example: [ + '\n
\n\nfunction setup() {\n let v = createVector(20, 30);\n print(v.array()); // Prints : Array [20, 30, 0]\n}\n\n
\n\n
\n\nlet v = createVector(10.0, 20.0, 30.0);\nlet f = v.array();\nprint(f[0]); // Prints "10.0"\nprint(f[1]); // Prints "20.0"\nprint(f[2]); // Prints "30.0"\n\n
' + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 1319, + description: + '

Equality check against a p5.Vector

\n', + itemtype: 'method', + name: 'equals', + return: { + description: 'whether the vectors are equals', + type: 'Boolean' + }, + example: [ + '\n
\n\nlet v1 = createVector(5, 10, 20);\nlet v2 = createVector(5, 10, 20);\nlet v3 = createVector(13, 10, 19);\n\nprint(v1.equals(v2.x, v2.y, v2.z)); // true\nprint(v1.equals(v3.x, v3.y, v3.z)); // false\n\n
\n\n
\n\nlet v1 = createVector(10.0, 20.0, 30.0);\nlet v2 = createVector(10.0, 20.0, 30.0);\nlet v3 = createVector(0.0, 0.0, 0.0);\nprint(v1.equals(v2)); // true\nprint(v1.equals(v3)); // false\n\n
' + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math', + overloads: [ + { + line: 1319, + params: [ + { + name: 'x', + description: '

the x component of the vector

\n', + type: 'Number', + optional: true + }, + { + name: 'y', + description: '

the y component of the vector

\n', + type: 'Number', + optional: true + }, + { + name: 'z', + description: '

the z component of the vector

\n', + type: 'Number', + optional: true + } + ], + return: { + description: 'whether the vectors are equals', + type: 'Boolean' + } + }, + { + line: 1349, + params: [ + { + name: 'value', + description: '

the vector to compare

\n', + type: 'p5.Vector|Array' + } + ], + return: { + description: '', + type: 'Boolean' + } + } + ] + }, + { + file: 'src/math/p5.Vector.js', + line: 1374, + description: '

Make a new 2D vector from an angle

\n', + itemtype: 'method', + name: 'fromAngle', + static: 1, + params: [ + { + name: 'angle', + description: + '

the desired angle, in radians (unaffected by angleMode)

\n', + type: 'Number' + }, + { + name: 'length', + description: '

the length of the new vector (defaults to 1)

\n', + type: 'Number', + optional: true + } + ], + return: { + description: 'the new p5.Vector object', + type: 'p5.Vector' + }, + example: [ + "\n
\n\nfunction draw() {\n background(200);\n\n // Create a variable, proportional to the mouseX,\n // varying from 0-360, to represent an angle in degrees.\n let myDegrees = map(mouseX, 0, width, 0, 360);\n\n // Display that variable in an onscreen text.\n // (Note the nfc() function to truncate additional decimal places,\n // and the \"\\xB0\" character for the degree symbol.)\n let readout = 'angle = ' + nfc(myDegrees, 1) + '\\xB0';\n noStroke();\n fill(0);\n text(readout, 5, 15);\n\n // Create a p5.Vector using the fromAngle function,\n // and extract its x and y components.\n let v = p5.Vector.fromAngle(radians(myDegrees), 30);\n let vx = v.x;\n let vy = v.y;\n\n push();\n translate(width / 2, height / 2);\n noFill();\n stroke(150);\n line(0, 0, 30, 0);\n stroke(0);\n line(0, 0, vx, vy);\n pop();\n}\n\n
" + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 1425, + description: + '

Make a new 3D vector from a pair of ISO spherical angles

\n', + itemtype: 'method', + name: 'fromAngles', + static: 1, + params: [ + { + name: 'theta', + description: '

the polar angle, in radians (zero is up)

\n', + type: 'Number' + }, + { + name: 'phi', + description: + '

the azimuthal angle, in radians\n (zero is out of the screen)

\n', + type: 'Number' + }, + { + name: 'length', + description: '

the length of the new vector (defaults to 1)

\n', + type: 'Number', + optional: true + } + ], + return: { + description: 'the new p5.Vector object', + type: 'p5.Vector' + }, + example: [ + "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n fill(255);\n noStroke();\n}\nfunction draw() {\n background(255);\n\n let t = millis() / 1000;\n\n // add three point lights\n pointLight(color('#f00'), p5.Vector.fromAngles(t * 1.0, t * 1.3, 100));\n pointLight(color('#0f0'), p5.Vector.fromAngles(t * 1.1, t * 1.2, 100));\n pointLight(color('#00f'), p5.Vector.fromAngles(t * 1.2, t * 1.1, 100));\n\n sphere(35);\n}\n\n
" + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 1474, + description: '

Make a new 2D unit vector from a random angle

\n', + itemtype: 'method', + name: 'random2D', + static: 1, + return: { + description: 'the new p5.Vector object', + type: 'p5.Vector' + }, + example: [ + "\n
\n\nlet v = p5.Vector.random2D();\n// May make v's attributes something like:\n// [0.61554617, -0.51195765, 0.0] or\n// [-0.4695841, -0.14366731, 0.0] or\n// [0.6091097, -0.22805278, 0.0]\nprint(v);\n\n
\n\n
\n\nfunction setup() {\n frameRate(1);\n}\n\nfunction draw() {\n background(240);\n\n let v0 = createVector(50, 50);\n let v1 = p5.Vector.random2D();\n drawArrow(v0, v1.mult(50), 'black');\n}\n\n// draw an arrow for a vector at a given base position\nfunction drawArrow(base, vec, myColor) {\n push();\n stroke(myColor);\n strokeWeight(3);\n fill(myColor);\n translate(base.x, base.y);\n line(0, 0, vec.x, vec.y);\n rotate(vec.heading());\n let arrowSize = 7;\n translate(vec.mag() - arrowSize, 0);\n triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0);\n pop();\n}\n\n
" + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 1527, + description: '

Make a new random 3D unit vector.

\n', + itemtype: 'method', + name: 'random3D', + static: 1, + return: { + description: 'the new p5.Vector object', + type: 'p5.Vector' + }, + example: [ + '\n
\n\nlet v = p5.Vector.random3D();\n// May make v\'s attributes something like:\n// [0.61554617, -0.51195765, 0.599168] or\n// [-0.4695841, -0.14366731, -0.8711202] or\n// [0.6091097, -0.22805278, -0.7595902]\nprint(v);\n\n
' + ], + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 1610, + description: + '

Multiplies a vector by a scalar and returns a new vector.

\n', + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 1637, + description: + '

Divides a vector by a scalar and returns a new vector.

\n', + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 1664, + description: '

Calculates the dot product of two vectors.

\n', + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 1678, + description: '

Calculates the cross product of two vectors.

\n', + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 1692, + description: + '

Calculates the Euclidean distance between two points (considering a\npoint as a vector object).

\n', + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/p5.Vector.js', + line: 1707, + description: + '

Linear interpolate a vector to another vector and return the result as a\nnew vector.

\n', + class: 'p5.Vector', + module: 'Math', + submodule: 'Math' + }, + { + file: 'src/math/random.js', + line: 48, + description: + '

Sets the seed value for random().

\n

By default, random() produces different results each time the program\nis run. Set the seed parameter to a constant to return the same\npseudo-random numbers each time the software is run.

\n', + itemtype: 'method', + name: 'randomSeed', + params: [ + { + name: 'seed', + description: '

the seed value

\n', + type: 'Number' + } + ], + example: [ + '\n
\n\nrandomSeed(99);\nfor (let i = 0; i < 100; i++) {\n let r = random(0, 255);\n stroke(r);\n line(i, 0, i, 100);\n}\n\n
' + ], + alt: 'many vertical lines drawn in white, black or grey.', + class: 'p5', + module: 'Math', + submodule: 'Random' + }, + { + file: 'src/math/random.js', + line: 79, + description: + '

Return a random floating-point number.

\n

Takes either 0, 1 or 2 arguments.

\n

If no argument is given, returns a random number from 0\nup to (but not including) 1.

\n

If one argument is given and it is a number, returns a random number from 0\nup to (but not including) the number.

\n

If one argument is given and it is an array, returns a random element from\nthat array.

\n

If two arguments are given, returns a random number from the\nfirst argument up to (but not including) the second argument.

\n', + itemtype: 'method', + name: 'random', + return: { + description: 'the random number', + type: 'Number' + }, + example: [ + "\n
\n\nfor (let i = 0; i < 100; i++) {\n let r = random(50);\n stroke(r * 5);\n line(50, i, 50 + r, i);\n}\n\n
\n
\n\nfor (let i = 0; i < 100; i++) {\n let r = random(-50, 50);\n line(50, i, 50 + r, i);\n}\n\n
\n
\n\n// Get a random element from an array using the random(Array) syntax\nlet words = ['apple', 'bear', 'cat', 'dog'];\nlet word = random(words); // select random word\ntext(word, 10, 50); // draw the word\n\n
" + ], + alt: + '100 horizontal lines from center canvas to right. size+fill change each time\n100 horizontal lines from center of canvas. height & side change each render\nword displayed at random. Either apple, bear, cat, or dog', + class: 'p5', + module: 'Math', + submodule: 'Random', + overloads: [ + { + line: 79, + params: [ + { + name: 'min', + description: '

the lower bound (inclusive)

\n', + type: 'Number', + optional: true + }, + { + name: 'max', + description: '

the upper bound (exclusive)

\n', + type: 'Number', + optional: true + } + ], + return: { + description: 'the random number', + type: 'Number' + } + }, + { + line: 133, + params: [ + { + name: 'choices', + description: '

the array to choose from

\n', + type: 'Array' + } + ], + return: { + description: 'the random element from the array', + type: '*' + } + } + ] + }, + { + file: 'src/math/random.js', + line: 166, + description: + '

Returns a random number fitting a Gaussian, or\n normal, distribution. There is theoretically no minimum or maximum\n value that randomGaussian() might return. Rather, there is\n just a very low probability that values far from the mean will be\n returned; and a higher probability that numbers near the mean will\n be returned.\n

\n Takes either 0, 1 or 2 arguments.
\n If no args, returns a mean of 0 and standard deviation of 1.
\n If one arg, that arg is the mean (standard deviation is 1).
\n If two args, first is mean, second is standard deviation.

\n', + itemtype: 'method', + name: 'randomGaussian', + params: [ + { + name: 'mean', + description: '

the mean

\n', + type: 'Number' + }, + { + name: 'sd', + description: '

the standard deviation

\n', + type: 'Number' + } + ], + return: { + description: 'the random number', + type: 'Number' + }, + example: [ + '\n
\n \n for (let y = 0; y < 100; y++) {\n let x = randomGaussian(50, 15);\n line(50, y, x, y);\n }\n \n
\n
\n \n let distribution = new Array(360);\nfunction setup() {\n createCanvas(100, 100);\n for (let i = 0; i < distribution.length; i++) {\n distribution[i] = floor(randomGaussian(0, 15));\n }\n }\nfunction draw() {\n background(204);\n translate(width / 2, width / 2);\n for (let i = 0; i < distribution.length; i++) {\n rotate(TWO_PI / distribution.length);\n stroke(0);\n let dist = abs(distribution[i]);\n line(0, 0, dist, 0);\n }\n }\n \n
' + ], + alt: + '100 horizontal lines from center of canvas. height & side change each render\n black lines radiate from center of canvas. size determined each render', + class: 'p5', + module: 'Math', + submodule: 'Random' + }, + { + file: 'src/math/trigonometry.js', + line: 20, + description: + '

The inverse of cos(), returns the arc cosine of a value. This function\nexpects the values in the range of -1 to 1 and values are returned in\nthe range 0 to PI (3.1415927).

\n', + itemtype: 'method', + name: 'acos', + params: [ + { + name: 'value', + description: '

the value whose arc cosine is to be returned

\n', + type: 'Number' + } + ], + return: { + description: 'the arc cosine of the given value', + type: 'Number' + }, + example: [ + "\n
\n\nlet a = PI;\nlet c = cos(a);\nlet ac = acos(c);\n// Prints: \"3.1415927 : -1.0 : 3.1415927\"\nprint(a + ' : ' + c + ' : ' + ac);\n\n
\n\n
\n\nlet a = PI + PI / 4.0;\nlet c = cos(a);\nlet ac = acos(c);\n// Prints: \"3.926991 : -0.70710665 : 2.3561943\"\nprint(a + ' : ' + c + ' : ' + ac);\n\n
" + ], + class: 'p5', + module: 'Math', + submodule: 'Trigonometry' + }, + { + file: 'src/math/trigonometry.js', + line: 54, + description: + '

The inverse of sin(), returns the arc sine of a value. This function\nexpects the values in the range of -1 to 1 and values are returned\nin the range -PI/2 to PI/2.

\n', + itemtype: 'method', + name: 'asin', + params: [ + { + name: 'value', + description: '

the value whose arc sine is to be returned

\n', + type: 'Number' + } + ], + return: { + description: 'the arc sine of the given value', + type: 'Number' + }, + example: [ + "\n
\n\nlet a = PI + PI / 3;\nlet s = sin(a);\nlet as = asin(s);\n// Prints: \"1.0471976 : 0.86602545 : 1.0471976\"\nprint(a + ' : ' + s + ' : ' + as);\n\n
\n\n
\n\nlet a = PI + PI / 3.0;\nlet s = sin(a);\nlet as = asin(s);\n// Prints: \"4.1887903 : -0.86602545 : -1.0471976\"\nprint(a + ' : ' + s + ' : ' + as);\n\n
\n" + ], + class: 'p5', + module: 'Math', + submodule: 'Trigonometry' + }, + { + file: 'src/math/trigonometry.js', + line: 89, + description: + '

The inverse of tan(), returns the arc tangent of a value. This function\nexpects the values in the range of -Infinity to Infinity (exclusive) and\nvalues are returned in the range -PI/2 to PI/2.

\n', + itemtype: 'method', + name: 'atan', + params: [ + { + name: 'value', + description: '

the value whose arc tangent is to be returned

\n', + type: 'Number' + } + ], + return: { + description: 'the arc tangent of the given value', + type: 'Number' + }, + example: [ + "\n
\n\nlet a = PI + PI / 3;\nlet t = tan(a);\nlet at = atan(t);\n// Prints: \"1.0471976 : 1.7320509 : 1.0471976\"\nprint(a + ' : ' + t + ' : ' + at);\n\n
\n\n
\n\nlet a = PI + PI / 3.0;\nlet t = tan(a);\nlet at = atan(t);\n// Prints: \"4.1887903 : 1.7320513 : 1.0471977\"\nprint(a + ' : ' + t + ' : ' + at);\n\n
\n" + ], + class: 'p5', + module: 'Math', + submodule: 'Trigonometry' + }, + { + file: 'src/math/trigonometry.js', + line: 124, + description: + '

Calculates the angle (in radians) from a specified point to the coordinate\norigin as measured from the positive x-axis. Values are returned as a\nfloat in the range from PI to -PI. The atan2() function is most often used\nfor orienting geometry to the position of the cursor.\n

\nNote: The y-coordinate of the point is the first parameter, and the\nx-coordinate is the second parameter, due the the structure of calculating\nthe tangent.

\n', + itemtype: 'method', + name: 'atan2', + params: [ + { + name: 'y', + description: '

y-coordinate of the point

\n', + type: 'Number' + }, + { + name: 'x', + description: '

x-coordinate of the point

\n', + type: 'Number' + } + ], + return: { + description: 'the arc tangent of the given point', + type: 'Number' + }, + example: [ + '\n
\n\nfunction draw() {\n background(204);\n translate(width / 2, height / 2);\n let a = atan2(mouseY - height / 2, mouseX - width / 2);\n rotate(a);\n rect(-30, -5, 60, 10);\n}\n\n
' + ], + alt: '60 by 10 rect at center of canvas rotates with mouse movements', + class: 'p5', + module: 'Math', + submodule: 'Trigonometry' + }, + { + file: 'src/math/trigonometry.js', + line: 160, + description: + '

Calculates the cosine of an angle. This function takes into account the\ncurrent angleMode. Values are returned in the range -1 to 1.

\n', + itemtype: 'method', + name: 'cos', + params: [ + { + name: 'angle', + description: '

the angle

\n', + type: 'Number' + } + ], + return: { + description: 'the cosine of the angle', + type: 'Number' + }, + example: [ + '\n
\n\nlet a = 0.0;\nlet inc = TWO_PI / 25.0;\nfor (let i = 0; i < 25; i++) {\n line(i * 4, 50, i * 4, 50 + cos(a) * 40.0);\n a = a + inc;\n}\n\n
' + ], + alt: + 'vertical black lines form wave patterns, extend-down on left and right side', + class: 'p5', + module: 'Math', + submodule: 'Trigonometry' + }, + { + file: 'src/math/trigonometry.js', + line: 188, + description: + '

Calculates the sine of an angle. This function takes into account the\ncurrent angleMode. Values are returned in the range -1 to 1.

\n', + itemtype: 'method', + name: 'sin', + params: [ + { + name: 'angle', + description: '

the angle

\n', + type: 'Number' + } + ], + return: { + description: 'the sine of the angle', + type: 'Number' + }, + example: [ + '\n
\n\nlet a = 0.0;\nlet inc = TWO_PI / 25.0;\nfor (let i = 0; i < 25; i++) {\n line(i * 4, 50, i * 4, 50 + sin(a) * 40.0);\n a = a + inc;\n}\n\n
' + ], + alt: + 'vertical black lines extend down and up from center to form wave pattern', + class: 'p5', + module: 'Math', + submodule: 'Trigonometry' + }, + { + file: 'src/math/trigonometry.js', + line: 216, + description: + '

Calculates the tangent of an angle. This function takes into account\nthe current angleMode. Values are returned in the range -1 to 1.

\n', + itemtype: 'method', + name: 'tan', + params: [ + { + name: 'angle', + description: '

the angle

\n', + type: 'Number' + } + ], + return: { + description: 'the tangent of the angle', + type: 'Number' + }, + example: [ + '\n
\n\nlet a = 0.0;\nlet inc = TWO_PI / 50.0;\nfor (let i = 0; i < 100; i = i + 2) {\n line(i, 50, i, 50 + tan(a) * 2.0);\n a = a + inc;\n}\n' + ], + alt: + 'vertical black lines end down and up from center to form spike pattern', + class: 'p5', + module: 'Math', + submodule: 'Trigonometry' + }, + { + file: 'src/math/trigonometry.js', + line: 244, + description: + '

Converts a radian measurement to its corresponding value in degrees.\nRadians and degrees are two ways of measuring the same thing. There are\n360 degrees in a circle and 2*PI radians in a circle. For example,\n90ยฐ = PI/2 = 1.5707964. This function does not take into account the\ncurrent angleMode.

\n', + itemtype: 'method', + name: 'degrees', + params: [ + { + name: 'radians', + description: '

the radians value to convert to degrees

\n', + type: 'Number' + } + ], + return: { + description: 'the converted angle', + type: 'Number' + }, + example: [ + "\n
\n\nlet rad = PI / 4;\nlet deg = degrees(rad);\nprint(rad + ' radians is ' + deg + ' degrees');\n// Prints: 0.7853981633974483 radians is 45 degrees\n\n
\n" + ], + class: 'p5', + module: 'Math', + submodule: 'Trigonometry' + }, + { + file: 'src/math/trigonometry.js', + line: 271, + description: + '

Converts a degree measurement to its corresponding value in radians.\nRadians and degrees are two ways of measuring the same thing. There are\n360 degrees in a circle and 2*PI radians in a circle. For example,\n90ยฐ = PI/2 = 1.5707964. This function does not take into account the\ncurrent angleMode.

\n', + itemtype: 'method', + name: 'radians', + params: [ + { + name: 'degrees', + description: '

the degree value to convert to radians

\n', + type: 'Number' + } + ], + return: { + description: 'the converted angle', + type: 'Number' + }, + example: [ + "\n
\n\nlet deg = 45.0;\nlet rad = radians(deg);\nprint(deg + ' degrees is ' + rad + ' radians');\n// Prints: 45 degrees is 0.7853981633974483 radians\n\n
" + ], + class: 'p5', + module: 'Math', + submodule: 'Trigonometry' + }, + { + file: 'src/math/trigonometry.js', + line: 296, + description: + '

Sets the current mode of p5 to given mode. Default mode is RADIANS.

\n', + itemtype: 'method', + name: 'angleMode', + params: [ + { + name: 'mode', + description: '

either RADIANS or DEGREES

\n', + type: 'Constant' + } + ], + example: [ + '\n
\n\nfunction draw() {\n background(204);\n angleMode(DEGREES); // Change the mode to DEGREES\n let a = atan2(mouseY - height / 2, mouseX - width / 2);\n translate(width / 2, height / 2);\n push();\n rotate(a);\n rect(-20, -5, 40, 10); // Larger rectangle is rotating in degrees\n pop();\n angleMode(RADIANS); // Change the mode to RADIANS\n rotate(a); // variable a stays the same\n rect(-40, -5, 20, 10); // Smaller rectangle is rotating in radians\n}\n\n
' + ], + alt: + '40 by 10 rect in center rotates with mouse moves. 20 by 10 rect moves faster.', + class: 'p5', + module: 'Math', + submodule: 'Trigonometry' + }, + { + file: 'src/typography/attributes.js', + line: 13, + description: + '

Sets the current alignment for drawing text. Accepts two\narguments: horizAlign (LEFT, CENTER, or RIGHT) and\nvertAlign (TOP, BOTTOM, CENTER, or BASELINE).

\n

The horizAlign parameter is in reference to the x value\nof the text() function, while the vertAlign parameter is\nin reference to the y value.

\n

So if you write textAlign(LEFT), you are aligning the left\nedge of your text to the x value you give in text(). If you\nwrite textAlign(RIGHT, TOP), you are aligning the right edge\nof your text to the x value and the top of edge of the text\nto the y value.

\n', + itemtype: 'method', + name: 'textAlign', + chainable: 1, + example: [ + "\n
\n\ntextSize(16);\ntextAlign(RIGHT);\ntext('ABCD', 50, 30);\ntextAlign(CENTER);\ntext('EFGH', 50, 50);\ntextAlign(LEFT);\ntext('IJKL', 50, 70);\n\n
\n\n
\n\ntextSize(16);\nstrokeWeight(0.5);\n\nline(0, 12, width, 12);\ntextAlign(CENTER, TOP);\ntext('TOP', 0, 12, width);\n\nline(0, 37, width, 37);\ntextAlign(CENTER, CENTER);\ntext('CENTER', 0, 37, width);\n\nline(0, 62, width, 62);\ntextAlign(CENTER, BASELINE);\ntext('BASELINE', 0, 62, width);\n\nline(0, 87, width, 87);\ntextAlign(CENTER, BOTTOM);\ntext('BOTTOM', 0, 87, width);\n\n
" + ], + alt: + "Letters ABCD displayed at top right, EFGH at center and IJKL at bottom left.\nThe names of the four vertical alignments rendered each showing that alignment's placement relative to a horizontal line.", + class: 'p5', + module: 'Typography', + submodule: 'Attributes', + overloads: [ + { + line: 13, + params: [ + { + name: 'horizAlign', + description: + '

horizontal alignment, either LEFT,\n CENTER, or RIGHT

\n', + type: 'Constant' + }, + { + name: 'vertAlign', + description: + '

vertical alignment, either TOP,\n BOTTOM, CENTER, or BASELINE

\n', + type: 'Constant', + optional: true + } + ], + chainable: 1 + }, + { + line: 75, + params: [], + return: { + description: '', + type: 'Object' + } + } + ] + }, + { + file: 'src/typography/attributes.js', + line: 84, + description: + '

Sets/gets the spacing, in pixels, between lines of text. This\nsetting will be used in all subsequent calls to the text() function.

\n', + itemtype: 'method', + name: 'textLeading', + chainable: 1, + example: [ + '\n
\n\n// Text to display. The "\\n" is a "new line" character\nlet lines = \'L1\\nL2\\nL3\';\ntextSize(12);\n\ntextLeading(10); // Set leading to 10\ntext(lines, 10, 25);\n\ntextLeading(20); // Set leading to 20\ntext(lines, 40, 25);\n\ntextLeading(30); // Set leading to 30\ntext(lines, 70, 25);\n\n
' + ], + alt: + 'set L1 L2 & L3 displayed vertically 3 times. spacing increases for each set', + class: 'p5', + module: 'Typography', + submodule: 'Attributes', + overloads: [ + { + line: 84, + params: [ + { + name: 'leading', + description: + '

the size in pixels for spacing between lines

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 113, + params: [], + return: { + description: '', + type: 'Number' + } + } + ] + }, + { + file: 'src/typography/attributes.js', + line: 122, + description: + '

Sets/gets the current font size. This size will be used in all subsequent\ncalls to the text() function. Font size is measured in pixels.

\n', + itemtype: 'method', + name: 'textSize', + chainable: 1, + example: [ + "\n
\n\ntextSize(12);\ntext('Font Size 12', 10, 30);\ntextSize(14);\ntext('Font Size 14', 10, 60);\ntextSize(16);\ntext('Font Size 16', 10, 90);\n\n
" + ], + alt: + 'Font Size 12 displayed small, Font Size 14 medium & Font Size 16 large', + class: 'p5', + module: 'Typography', + submodule: 'Attributes', + overloads: [ + { + line: 122, + params: [ + { + name: 'theSize', + description: '

the size of the letters in units of pixels

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 145, + params: [], + return: { + description: '', + type: 'Number' + } + } + ] + }, + { + file: 'src/typography/attributes.js', + line: 154, + description: + '

Sets/gets the style of the text for system fonts to NORMAL, ITALIC, BOLD or BOLDITALIC.\nNote: this may be is overridden by CSS styling. For non-system fonts\n(opentype, truetype, etc.) please load styled fonts instead.

\n', + itemtype: 'method', + name: 'textStyle', + chainable: 1, + example: [ + "\n
\n\nstrokeWeight(0);\ntextSize(12);\ntextStyle(NORMAL);\ntext('Font Style Normal', 10, 15);\ntextStyle(ITALIC);\ntext('Font Style Italic', 10, 40);\ntextStyle(BOLD);\ntext('Font Style Bold', 10, 65);\ntextStyle(BOLDITALIC);\ntext('Font Style Bold Italic', 10, 90);\n\n
" + ], + alt: + 'words Font Style Normal displayed normally, Italic in italic, bold in bold and bold italic in bold italics.', + class: 'p5', + module: 'Typography', + submodule: 'Attributes', + overloads: [ + { + line: 154, + params: [ + { + name: 'theStyle', + description: + '

styling for text, either NORMAL,\n ITALIC, BOLD or BOLDITALIC

\n', + type: 'Constant' + } + ], + chainable: 1 + }, + { + line: 182, + params: [], + return: { + description: '', + type: 'String' + } + } + ] + }, + { + file: 'src/typography/attributes.js', + line: 191, + description: + '

Calculates and returns the width of any character or text string.

\n', + itemtype: 'method', + name: 'textWidth', + params: [ + { + name: 'theText', + description: '

the String of characters to measure

\n', + type: 'String' + } + ], + return: { + description: '', + type: 'Number' + }, + example: [ + "\n
\n\ntextSize(28);\n\nlet aChar = 'P';\nlet cWidth = textWidth(aChar);\ntext(aChar, 0, 40);\nline(cWidth, 0, cWidth, 50);\n\nlet aString = 'p5.js';\nlet sWidth = textWidth(aString);\ntext(aString, 0, 85);\nline(sWidth, 50, sWidth, 100);\n\n
" + ], + alt: + 'Letter P and p5.js are displayed with vertical lines at end. P is wide', + class: 'p5', + module: 'Typography', + submodule: 'Attributes' + }, + { + file: 'src/typography/attributes.js', + line: 226, + description: + '

Returns the ascent of the current font at its current size. The ascent\nrepresents the distance, in pixels, of the tallest character above\nthe baseline.

\n', + itemtype: 'method', + name: 'textAscent', + return: { + description: '', + type: 'Number' + }, + example: [ + "\n
\n\nlet base = height * 0.75;\nlet scalar = 0.8; // Different for each font\n\ntextSize(32); // Set initial text size\nlet asc = textAscent() * scalar; // Calc ascent\nline(0, base - asc, width, base - asc);\ntext('dp', 0, base); // Draw text on baseline\n\ntextSize(64); // Increase text size\nasc = textAscent() * scalar; // Recalc ascent\nline(40, base - asc, width, base - asc);\ntext('dp', 40, base); // Draw text on baseline\n\n
" + ], + class: 'p5', + module: 'Typography', + submodule: 'Attributes' + }, + { + file: 'src/typography/attributes.js', + line: 255, + description: + '

Returns the descent of the current font at its current size. The descent\nrepresents the distance, in pixels, of the character with the longest\ndescender below the baseline.

\n', + itemtype: 'method', + name: 'textDescent', + return: { + description: '', + type: 'Number' + }, + example: [ + "\n
\n\nlet base = height * 0.75;\nlet scalar = 0.8; // Different for each font\n\ntextSize(32); // Set initial text size\nlet desc = textDescent() * scalar; // Calc ascent\nline(0, base + desc, width, base + desc);\ntext('dp', 0, base); // Draw text on baseline\n\ntextSize(64); // Increase text size\ndesc = textDescent() * scalar; // Recalc ascent\nline(40, base + desc, width, base + desc);\ntext('dp', 40, base); // Draw text on baseline\n\n
" + ], + class: 'p5', + module: 'Typography', + submodule: 'Attributes' + }, + { + file: 'src/typography/attributes.js', + line: 284, + description: '

Helper function to measure ascent and descent.

\n', + class: 'p5', + module: 'Typography', + submodule: 'Attributes' + }, + { + file: 'src/typography/loading_displaying.js', + line: 16, + description: + '

Loads an opentype font file (.otf, .ttf) from a file or a URL,\nand returns a PFont Object. This method is asynchronous,\nmeaning it may not finish before the next line in your sketch\nis executed.\n

\nThe path to the font should be relative to the HTML file\nthat links in your sketch. Loading fonts from a URL or other\nremote location may be blocked due to your browser's built-in\nsecurity.

\n', + itemtype: 'method', + name: 'loadFont', + params: [ + { + name: 'path', + description: '

name of the file or url to load

\n', + type: 'String' + }, + { + name: 'callback', + description: + '

function to be executed after\n loadFont() completes

\n', + type: 'Function', + optional: true + }, + { + name: 'onError', + description: + '

function to be executed if\n an error occurs

\n', + type: 'Function', + optional: true + } + ], + return: { + description: 'p5.Font object', + type: 'p5.Font' + }, + example: [ + "\n\n

Calling loadFont() inside preload() guarantees that the load\noperation will have completed before setup() and draw() are called.

\n\n
\nlet myFont;\nfunction preload() {\n myFont = loadFont('assets/inconsolata.otf');\n}\n\nfunction setup() {\n fill('#ED225D');\n textFont(myFont);\n textSize(36);\n text('p5*js', 10, 50);\n}\n
\n\nOutside of preload(), you may supply a callback function to handle the\nobject:\n\n
\nfunction setup() {\n loadFont('assets/inconsolata.otf', drawText);\n}\n\nfunction drawText(font) {\n fill('#ED225D');\n textFont(font, 36);\n text('p5*js', 10, 50);\n}\n
\n\n

You can also use the font filename string (without the file extension) to style other HTML\nelements.

\n\n
\nfunction preload() {\n loadFont('assets/inconsolata.otf');\n}\n\nfunction setup() {\n let myDiv = createDiv('hello there');\n myDiv.style('font-family', 'Inconsolata');\n}\n
" + ], + alt: "p5*js in p5's theme dark pink\np5*js in p5's theme dark pink", + class: 'p5', + module: 'Typography', + submodule: 'Loading & Displaying' + }, + { + file: 'src/typography/loading_displaying.js', + line: 143, + description: + '

Draws text to the screen. Displays the information specified in the first\nparameter on the screen in the position specified by the additional\nparameters. A default font will be used unless a font is set with the\ntextFont() function and a default size will be used unless a font is set\nwith textSize(). Change the color of the text with the fill() function.\nChange the outline of the text with the stroke() and strokeWeight()\nfunctions.\n

\nThe text displays in relation to the textAlign() function, which gives the\noption to draw to the left, right, and center of the coordinates.\n

\nThe x2 and y2 parameters define a rectangular area to display within and\nmay only be used with string data. When these parameters are specified,\nthey are interpreted based on the current rectMode() setting. Text that\ndoes not fit completely within the rectangle specified will not be drawn\nto the screen. If x2 and y2 are not specified, the baseline alignment is the\ndefault, which means that the text will be drawn upwards from x and y.\n

\nWEBGL: Only opentype/truetype fonts are supported. You must load a font using the\nloadFont() method (see the example above).\nstroke() currently has no effect in webgl mode.

\n', + itemtype: 'method', + name: 'text', + params: [ + { + name: 'str', + description: + '

the alphanumeric\n symbols to be displayed

\n', + type: 'String|Object|Array|Number|Boolean' + }, + { + name: 'x', + description: '

x-coordinate of text

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y-coordinate of text

\n', + type: 'Number' + }, + { + name: 'x2', + description: + '

by default, the width of the text box,\n see rectMode() for more info

\n', + type: 'Number', + optional: true + }, + { + name: 'y2', + description: + '

by default, the height of the text box,\n see rectMode() for more info

\n', + type: 'Number', + optional: true + } + ], + chainable: 1, + example: [ + "\n
\n\ntextSize(32);\ntext('word', 10, 30);\nfill(0, 102, 153);\ntext('word', 10, 60);\nfill(0, 102, 153, 51);\ntext('word', 10, 90);\n\n
\n
\n\nlet s = 'The quick brown fox jumped over the lazy dog.';\nfill(50);\ntext(s, 10, 10, 70, 80); // Text wraps within text box\n\n
\n\n
\n\nlet inconsolata;\nfunction preload() {\n inconsolata = loadFont('assets/inconsolata.otf');\n}\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n textFont(inconsolata);\n textSize(width / 3);\n textAlign(CENTER, CENTER);\n}\nfunction draw() {\n background(0);\n let time = millis();\n rotateX(time / 1000);\n rotateZ(time / 1234);\n text('p5.js', 0, 0);\n}\n\n
" + ], + alt: + "'word' displayed 3 times going from black, blue to translucent blue\nThe quick brown fox jumped over the lazy dog.\nthe text 'p5.js' spinning in 3d", + class: 'p5', + module: 'Typography', + submodule: 'Loading & Displaying' + }, + { + file: 'src/typography/loading_displaying.js', + line: 230, + description: + '

Sets the current font that will be drawn with the text() function.\n

\nWEBGL: Only fonts loaded via loadFont() are supported.

\n', + itemtype: 'method', + name: 'textFont', + return: { + description: 'the current font', + type: 'Object' + }, + example: [ + "\n
\n\nfill(0);\ntextSize(12);\ntextFont('Georgia');\ntext('Georgia', 12, 30);\ntextFont('Helvetica');\ntext('Helvetica', 12, 60);\n\n
\n
\n\nlet fontRegular, fontItalic, fontBold;\nfunction preload() {\n fontRegular = loadFont('assets/Regular.otf');\n fontItalic = loadFont('assets/Italic.ttf');\n fontBold = loadFont('assets/Bold.ttf');\n}\nfunction setup() {\n background(210);\n fill(0)\n .strokeWeight(0)\n .textSize(10);\n textFont(fontRegular);\n text('Font Style Normal', 10, 30);\n textFont(fontItalic);\n text('Font Style Italic', 10, 50);\n textFont(fontBold);\n text('Font Style Bold', 10, 70);\n}\n\n
" + ], + alt: + 'words Font Style Normal displayed normally, Italic in italic and bold in bold', + class: 'p5', + module: 'Typography', + submodule: 'Loading & Displaying', + overloads: [ + { + line: 230, + params: [], + return: { + description: 'the current font', + type: 'Object' + } + }, + { + line: 275, + params: [ + { + name: 'font', + description: + '

a font loaded via loadFont(), or a String\nrepresenting a web safe font (a font\nthat is generally available across all systems)

\n', + type: 'Object|String' + }, + { + name: 'size', + description: '

the font size to use

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/typography/p5.Font.js', + line: 25, + description: '

Underlying opentype font implementation

\n', + itemtype: 'property', + name: 'font', + class: 'p5.Font', + module: 'Typography', + submodule: 'Font' + }, + { + file: 'src/typography/p5.Font.js', + line: 32, + description: + '

Returns a tight bounding box for the given text string using this\nfont (currently only supports single lines)

\n', + itemtype: 'method', + name: 'textBounds', + params: [ + { + name: 'line', + description: '

a line of text

\n', + type: 'String' + }, + { + name: 'x', + description: '

x-position

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y-position

\n', + type: 'Number' + }, + { + name: 'fontSize', + description: '

font size to use (optional) Default is 12.

\n', + type: 'Number', + optional: true + }, + { + name: 'options', + description: + '

opentype options (optional)\n opentype fonts contains alignment and baseline options.\n Default is 'LEFT' and 'alphabetic'

\n', + type: 'Object', + optional: true + } + ], + return: { + description: 'a rectangle object with properties: x, y, w, h', + type: 'Object' + }, + example: [ + "\n
\n\nlet font;\nlet textString = 'Lorem ipsum dolor sit amet.';\nfunction preload() {\n font = loadFont('./assets/Regular.otf');\n}\nfunction setup() {\n background(210);\n\n let bbox = font.textBounds(textString, 10, 30, 12);\n fill(255);\n stroke(0);\n rect(bbox.x, bbox.y, bbox.w, bbox.h);\n fill(0);\n noStroke();\n\n textFont(font);\n textSize(12);\n text(textString, 10, 30);\n}\n\n
" + ], + alt: + 'words Lorem ipsum dol go off canvas and contained by white bounding box', + class: 'p5.Font', + module: 'Typography', + submodule: 'Font' + }, + { + file: 'src/typography/p5.Font.js', + line: 156, + description: + '

Computes an array of points following the path for specified text

\n', + itemtype: 'method', + name: 'textToPoints', + params: [ + { + name: 'txt', + description: '

a line of text

\n', + type: 'String' + }, + { + name: 'x', + description: '

x-position

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y-position

\n', + type: 'Number' + }, + { + name: 'fontSize', + description: '

font size to use (optional)

\n', + type: 'Number' + }, + { + name: 'options', + description: + '

an (optional) object that can contain:

\n


sampleFactor - the ratio of path-length to number of samples\n(default=.1); higher values yield more points and are therefore\nmore precise

\n


simplifyThreshold - if set to a non-zero value, collinear points will be\nbe removed from the polygon; the value represents the threshold angle to use\nwhen determining whether two edges are collinear

\n', + type: 'Object', + optional: true + } + ], + return: { + description: 'an array of points, each with x, y, alpha (the path angle)', + type: 'Array' + }, + example: [ + "\n
\n\nlet font;\nfunction preload() {\n font = loadFont('assets/inconsolata.otf');\n}\n\nlet points;\nlet bounds;\nfunction setup() {\n createCanvas(100, 100);\n stroke(0);\n fill(255, 104, 204);\n\n points = font.textToPoints('p5', 0, 0, 10, {\n sampleFactor: 5,\n simplifyThreshold: 0\n });\n bounds = font.textBounds(' p5 ', 0, 0, 10);\n}\n\nfunction draw() {\n background(255);\n beginShape();\n translate(-bounds.x * width / bounds.w, -bounds.y * height / bounds.h);\n for (let i = 0; i < points.length; i++) {\n let p = points[i];\n vertex(\n p.x * width / bounds.w +\n sin(20 * p.y / bounds.h + millis() / 1000) * width / 30,\n p.y * height / bounds.h\n );\n }\n endShape(CLOSE);\n}\n\n
\n" + ], + class: 'p5.Font', + module: 'Typography', + submodule: 'Font' + }, + { + file: 'src/utilities/array_functions.js', + line: 12, + description: + '

Adds a value to the end of an array. Extends the length of\nthe array by one. Maps to Array.push().

\n', + itemtype: 'method', + name: 'append', + deprecated: true, + deprecationMessage: + 'Use array.push(value) instead.', + params: [ + { + name: 'array', + description: '

Array to append

\n', + type: 'Array' + }, + { + name: 'value', + description: '

to be added to the Array

\n', + type: 'Any' + } + ], + return: { + description: 'the array that was appended to', + type: 'Array' + }, + example: [ + "\n
\nfunction setup() {\n var myArray = ['Mango', 'Apple', 'Papaya'];\n print(myArray); // ['Mango', 'Apple', 'Papaya']\n\n append(myArray, 'Peach');\n print(myArray); // ['Mango', 'Apple', 'Papaya', 'Peach']\n}\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'Array Functions' + }, + { + file: 'src/utilities/array_functions.js', + line: 37, + description: + '

Copies an array (or part of an array) to another array. The src array is\ncopied to the dst array, beginning at the position specified by\nsrcPosition and into the position specified by dstPosition. The number of\nelements to copy is determined by length. Note that copying values\noverwrites existing values in the destination array. To append values\ninstead of overwriting them, use concat().\n

\nThe simplified version with only two arguments, arrayCopy(src, dst),\ncopies an entire array to another of the same size. It is equivalent to\narrayCopy(src, 0, dst, 0, src.length).\n

\nUsing this function is far more efficient for copying array data than\niterating through a for() loop and copying each element individually.

\n', + itemtype: 'method', + name: 'arrayCopy', + deprecated: true, + example: [ + "\n
\nvar src = ['A', 'B', 'C'];\nvar dst = [1, 2, 3];\nvar srcPosition = 1;\nvar dstPosition = 0;\nvar length = 2;\n\nprint(src); // ['A', 'B', 'C']\nprint(dst); // [ 1 , 2 , 3 ]\n\narrayCopy(src, srcPosition, dst, dstPosition, length);\nprint(dst); // ['B', 'C', 3]\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'Array Functions', + overloads: [ + { + line: 37, + params: [ + { + name: 'src', + description: '

the source Array

\n', + type: 'Array' + }, + { + name: 'srcPosition', + description: '

starting position in the source Array

\n', + type: 'Integer' + }, + { + name: 'dst', + description: '

the destination Array

\n', + type: 'Array' + }, + { + name: 'dstPosition', + description: '

starting position in the destination Array

\n', + type: 'Integer' + }, + { + name: 'length', + description: '

number of Array elements to be copied

\n', + type: 'Integer' + } + ] + }, + { + line: 75, + params: [ + { + name: 'src', + description: '', + type: 'Array' + }, + { + name: 'dst', + description: '', + type: 'Array' + }, + { + name: 'length', + description: '', + type: 'Integer', + optional: true + } + ] + } + ] + }, + { + file: 'src/utilities/array_functions.js', + line: 114, + description: + '

Concatenates two arrays, maps to Array.concat(). Does not modify the\ninput arrays.

\n', + itemtype: 'method', + name: 'concat', + deprecated: true, + deprecationMessage: + 'Use arr1.concat(arr2) instead.', + params: [ + { + name: 'a', + description: '

first Array to concatenate

\n', + type: 'Array' + }, + { + name: 'b', + description: '

second Array to concatenate

\n', + type: 'Array' + } + ], + return: { + description: 'concatenated array', + type: 'Array' + }, + example: [ + "\n
\nfunction setup() {\n var arr1 = ['A', 'B', 'C'];\n var arr2 = [1, 2, 3];\n\n print(arr1); // ['A','B','C']\n print(arr2); // [1,2,3]\n\n var arr3 = concat(arr1, arr2);\n\n print(arr1); // ['A','B','C']\n print(arr2); // [1, 2, 3]\n print(arr3); // ['A','B','C', 1, 2, 3]\n}\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'Array Functions' + }, + { + file: 'src/utilities/array_functions.js', + line: 145, + description: + '

Reverses the order of an array, maps to Array.reverse()

\n', + itemtype: 'method', + name: 'reverse', + deprecated: true, + deprecationMessage: + 'Use array.reverse() instead.', + params: [ + { + name: 'list', + description: '

Array to reverse

\n', + type: 'Array' + } + ], + return: { + description: 'the reversed list', + type: 'Array' + }, + example: [ + "\n
\nfunction setup() {\n var myArray = ['A', 'B', 'C'];\n print(myArray); // ['A','B','C']\n\n reverse(myArray);\n print(myArray); // ['C','B','A']\n}\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'Array Functions' + }, + { + file: 'src/utilities/array_functions.js', + line: 167, + description: + '

Decreases an array by one element and returns the shortened array,\nmaps to Array.pop().

\n', + itemtype: 'method', + name: 'shorten', + deprecated: true, + deprecationMessage: + 'Use array.pop() instead.', + params: [ + { + name: 'list', + description: '

Array to shorten

\n', + type: 'Array' + } + ], + return: { + description: 'shortened Array', + type: 'Array' + }, + example: [ + "\n
\nfunction setup() {\n var myArray = ['A', 'B', 'C'];\n print(myArray); // ['A', 'B', 'C']\n var newArray = shorten(myArray);\n print(myArray); // ['A','B','C']\n print(newArray); // ['A','B']\n}\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'Array Functions' + }, + { + file: 'src/utilities/array_functions.js', + line: 191, + description: + "

Randomizes the order of the elements of an array. Implements\n\nFisher-Yates Shuffle Algorithm.

\n", + itemtype: 'method', + name: 'shuffle', + params: [ + { + name: 'array', + description: '

Array to shuffle

\n', + type: 'Array' + }, + { + name: 'bool', + description: '

modify passed array

\n', + type: 'Boolean', + optional: true + } + ], + return: { + description: 'shuffled Array', + type: 'Array' + }, + example: [ + "\n
\nfunction setup() {\n var regularArr = ['ABC', 'def', createVector(), TAU, Math.E];\n print(regularArr);\n shuffle(regularArr, true); // force modifications to passed array\n print(regularArr);\n\n // By default shuffle() returns a shuffled cloned array:\n var newArr = shuffle(regularArr);\n print(regularArr);\n print(newArr);\n}\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'Array Functions' + }, + { + file: 'src/utilities/array_functions.js', + line: 233, + description: + '

Sorts an array of numbers from smallest to largest, or puts an array of\nwords in alphabetical order. The original array is not modified; a\nre-ordered array is returned. The count parameter states the number of\nelements to sort. For example, if there are 12 elements in an array and\ncount is set to 5, only the first 5 elements in the array will be sorted.

\n', + itemtype: 'method', + name: 'sort', + deprecated: true, + deprecationMessage: + 'Use array.sort() instead.', + params: [ + { + name: 'list', + description: '

Array to sort

\n', + type: 'Array' + }, + { + name: 'count', + description: '

number of elements to sort, starting from 0

\n', + type: 'Integer', + optional: true + } + ], + return: { + description: 'the sorted list', + type: 'Array' + }, + example: [ + "\n
\nfunction setup() {\n var words = ['banana', 'apple', 'pear', 'lime'];\n print(words); // ['banana', 'apple', 'pear', 'lime']\n var count = 4; // length of array\n\n words = sort(words, count);\n print(words); // ['apple', 'banana', 'lime', 'pear']\n}\n
\n
\nfunction setup() {\n var numbers = [2, 6, 1, 5, 14, 9, 8, 12];\n print(numbers); // [2, 6, 1, 5, 14, 9, 8, 12]\n var count = 5; // Less than the length of the array\n\n numbers = sort(numbers, count);\n print(numbers); // [1,2,5,6,14,9,8,12]\n}\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'Array Functions' + }, + { + file: 'src/utilities/array_functions.js', + line: 281, + description: + '

Inserts a value or an array of values into an existing array. The first\nparameter specifies the initial array to be modified, and the second\nparameter defines the data to be inserted. The third parameter is an index\nvalue which specifies the array position from which to insert data.\n(Remember that array index numbering starts at zero, so the first position\nis 0, the second position is 1, and so on.)

\n', + itemtype: 'method', + name: 'splice', + deprecated: true, + deprecationMessage: + 'Use array.splice() instead.', + params: [ + { + name: 'list', + description: '

Array to splice into

\n', + type: 'Array' + }, + { + name: 'value', + description: '

value to be spliced in

\n', + type: 'Any' + }, + { + name: 'position', + description: '

in the array from which to insert data

\n', + type: 'Integer' + } + ], + return: { + description: 'the list', + type: 'Array' + }, + example: [ + "\n
\nfunction setup() {\n var myArray = [0, 1, 2, 3, 4];\n var insArray = ['A', 'B', 'C'];\n print(myArray); // [0, 1, 2, 3, 4]\n print(insArray); // ['A','B','C']\n\n splice(myArray, insArray, 3);\n print(myArray); // [0,1,2,'A','B','C',3,4]\n}\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'Array Functions' + }, + { + file: 'src/utilities/array_functions.js', + line: 316, + description: + '

Extracts an array of elements from an existing array. The list parameter\ndefines the array from which the elements will be copied, and the start\nand count parameters specify which elements to extract. If no count is\ngiven, elements will be extracted from the start to the end of the array.\nWhen specifying the start, remember that the first array element is 0.\nThis function does not change the source array.

\n', + itemtype: 'method', + name: 'subset', + deprecated: true, + deprecationMessage: + 'Use array.slice() instead.', + params: [ + { + name: 'list', + description: '

Array to extract from

\n', + type: 'Array' + }, + { + name: 'start', + description: '

position to begin

\n', + type: 'Integer' + }, + { + name: 'count', + description: '

number of values to extract

\n', + type: 'Integer', + optional: true + } + ], + return: { + description: 'Array of extracted elements', + type: 'Array' + }, + example: [ + "\n
\nfunction setup() {\n var myArray = [1, 2, 3, 4, 5];\n print(myArray); // [1, 2, 3, 4, 5]\n\n var sub1 = subset(myArray, 0, 3);\n var sub2 = subset(myArray, 2, 2);\n print(sub1); // [1,2,3]\n print(sub2); // [3,4]\n}\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'Array Functions' + }, + { + file: 'src/utilities/conversion.js', + line: 12, + description: + '

Converts a string to its floating point representation. The contents of a\nstring must resemble a number, or NaN (not a number) will be returned.\nFor example, float("1234.56") evaluates to 1234.56, but float("giraffe")\nwill return NaN.

\n

When an array of values is passed in, then an array of floats of the same\nlength is returned.

\n', + itemtype: 'method', + name: 'float', + params: [ + { + name: 'str', + description: '

float string to parse

\n', + type: 'String' + } + ], + return: { + description: 'floating point representation of string', + type: 'Number' + }, + example: [ + "\n
\nvar str = '20';\nvar diameter = float(str);\nellipse(width / 2, height / 2, diameter, diameter);\n
\n
\nprint(float('10.31')); // 10.31\nprint(float('Infinity')); // Infinity\nprint(float('-Infinity')); // -Infinity\n
" + ], + alt: '20 by 20 white ellipse in the center of the canvas', + class: 'p5', + module: 'Data', + submodule: 'Conversion' + }, + { + file: 'src/utilities/conversion.js', + line: 47, + description: + '

Converts a boolean, string, or float to its integer representation.\nWhen an array of values is passed in, then an int array of the same length\nis returned.

\n', + itemtype: 'method', + name: 'int', + return: { + description: 'integer representation of value', + type: 'Number' + }, + example: [ + "\n
\nprint(int('10')); // 10\nprint(int(10.31)); // 10\nprint(int(-10)); // -10\nprint(int(true)); // 1\nprint(int(false)); // 0\nprint(int([false, true, '10.3', 9.8])); // [0, 1, 10, 9]\nprint(int(Infinity)); // Infinity\nprint(int('-Infinity')); // -Infinity\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'Conversion', + overloads: [ + { + line: 47, + params: [ + { + name: 'n', + description: '

value to parse

\n', + type: 'String|Boolean|Number' + }, + { + name: 'radix', + description: '

the radix to convert to (default: 10)

\n', + type: 'Integer', + optional: true + } + ], + return: { + description: 'integer representation of value', + type: 'Number' + } + }, + { + line: 69, + params: [ + { + name: 'ns', + description: '

values to parse

\n', + type: 'Array' + } + ], + return: { + description: 'integer representation of values', + type: 'Number[]' + } + } + ] + }, + { + file: 'src/utilities/conversion.js', + line: 93, + description: + '

Converts a boolean, string or number to its string representation.\nWhen an array of values is passed in, then an array of strings of the same\nlength is returned.

\n', + itemtype: 'method', + name: 'str', + params: [ + { + name: 'n', + description: '

value to parse

\n', + type: 'String|Boolean|Number|Array' + } + ], + return: { + description: 'string representation of value', + type: 'String' + }, + example: [ + '\n
\nprint(str(\'10\')); // "10"\nprint(str(10.31)); // "10.31"\nprint(str(-10)); // "-10"\nprint(str(true)); // "true"\nprint(str(false)); // "false"\nprint(str([true, \'10.3\', 9.8])); // [ "true", "10.3", "9.8" ]\n
' + ], + class: 'p5', + module: 'Data', + submodule: 'Conversion' + }, + { + file: 'src/utilities/conversion.js', + line: 119, + description: + '

Converts a number or string to its boolean representation.\nFor a number, any non-zero value (positive or negative) evaluates to true,\nwhile zero evaluates to false. For a string, the value "true" evaluates to\ntrue, while any other value evaluates to false. When an array of number or\nstring values is passed in, then a array of booleans of the same length is\nreturned.

\n', + itemtype: 'method', + name: 'boolean', + params: [ + { + name: 'n', + description: '

value to parse

\n', + type: 'String|Boolean|Number|Array' + } + ], + return: { + description: 'boolean representation of value', + type: 'Boolean' + }, + example: [ + "\n
\nprint(boolean(0)); // false\nprint(boolean(1)); // true\nprint(boolean('true')); // true\nprint(boolean('abcd')); // false\nprint(boolean([0, 12, 'true'])); // [false, true, true]\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'Conversion' + }, + { + file: 'src/utilities/conversion.js', + line: 151, + description: + '

Converts a number, string representation of a number, or boolean to its byte\nrepresentation. A byte can be only a whole number between -128 and 127, so\nwhen a value outside of this range is converted, it wraps around to the\ncorresponding byte representation. When an array of number, string or boolean\nvalues is passed in, then an array of bytes the same length is returned.

\n', + itemtype: 'method', + name: 'byte', + return: { + description: 'byte representation of value', + type: 'Number' + }, + example: [ + "\n
\nprint(byte(127)); // 127\nprint(byte(128)); // -128\nprint(byte(23.4)); // 23\nprint(byte('23.4')); // 23\nprint(byte('hello')); // NaN\nprint(byte(true)); // 1\nprint(byte([0, 255, '100'])); // [0, -1, 100]\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'Conversion', + overloads: [ + { + line: 151, + params: [ + { + name: 'n', + description: '

value to parse

\n', + type: 'String|Boolean|Number' + } + ], + return: { + description: 'byte representation of value', + type: 'Number' + } + }, + { + line: 173, + params: [ + { + name: 'ns', + description: '

values to parse

\n', + type: 'Array' + } + ], + return: { + description: 'array of byte representation of values', + type: 'Number[]' + } + } + ] + }, + { + file: 'src/utilities/conversion.js', + line: 187, + description: + '

Converts a number or string to its corresponding single-character\nstring representation. If a string parameter is provided, it is first\nparsed as an integer and then translated into a single-character string.\nWhen an array of number or string values is passed in, then an array of\nsingle-character strings of the same length is returned.

\n', + itemtype: 'method', + name: 'char', + return: { + description: 'string representation of value', + type: 'String' + }, + example: [ + '\n
\nprint(char(65)); // "A"\nprint(char(\'65\')); // "A"\nprint(char([65, 66, 67])); // [ "A", "B", "C" ]\nprint(join(char([65, 66, 67]), \'\')); // "ABC"\n
' + ], + class: 'p5', + module: 'Data', + submodule: 'Conversion', + overloads: [ + { + line: 187, + params: [ + { + name: 'n', + description: '

value to parse

\n', + type: 'String|Number' + } + ], + return: { + description: 'string representation of value', + type: 'String' + } + }, + { + line: 206, + params: [ + { + name: 'ns', + description: '

values to parse

\n', + type: 'Array' + } + ], + return: { + description: 'array of string representation of values', + type: 'String[]' + } + } + ] + }, + { + file: 'src/utilities/conversion.js', + line: 221, + description: + '

Converts a single-character string to its corresponding integer\nrepresentation. When an array of single-character string values is passed\nin, then an array of integers of the same length is returned.

\n', + itemtype: 'method', + name: 'unchar', + return: { + description: 'integer representation of value', + type: 'Number' + }, + example: [ + "\n
\nprint(unchar('A')); // 65\nprint(unchar(['A', 'B', 'C'])); // [ 65, 66, 67 ]\nprint(unchar(split('ABC', ''))); // [ 65, 66, 67 ]\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'Conversion', + overloads: [ + { + line: 221, + params: [ + { + name: 'n', + description: '

value to parse

\n', + type: 'String' + } + ], + return: { + description: 'integer representation of value', + type: 'Number' + } + }, + { + line: 237, + params: [ + { + name: 'ns', + description: '

values to parse

\n', + type: 'Array' + } + ], + return: { + description: 'integer representation of values', + type: 'Number[]' + } + } + ] + }, + { + file: 'src/utilities/conversion.js', + line: 250, + description: + '

Converts a number to a string in its equivalent hexadecimal notation. If a\nsecond parameter is passed, it is used to set the number of characters to\ngenerate in the hexadecimal notation. When an array is passed in, an\narray of strings in hexadecimal notation of the same length is returned.

\n', + itemtype: 'method', + name: 'hex', + return: { + description: 'hexadecimal string representation of value', + type: 'String' + }, + example: [ + '\n
\nprint(hex(255)); // "000000FF"\nprint(hex(255, 6)); // "0000FF"\nprint(hex([0, 127, 255], 6)); // [ "000000", "00007F", "0000FF" ]\nprint(Infinity); // "FFFFFFFF"\nprint(-Infinity); // "00000000"\n
' + ], + class: 'p5', + module: 'Data', + submodule: 'Conversion', + overloads: [ + { + line: 250, + params: [ + { + name: 'n', + description: '

value to parse

\n', + type: 'Number' + }, + { + name: 'digits', + description: '', + type: 'Number', + optional: true + } + ], + return: { + description: 'hexadecimal string representation of value', + type: 'String' + } + }, + { + line: 270, + params: [ + { + name: 'ns', + description: '

array of values to parse

\n', + type: 'Number[]' + }, + { + name: 'digits', + description: '', + type: 'Number', + optional: true + } + ], + return: { + description: 'hexadecimal string representation of values', + type: 'String[]' + } + } + ] + }, + { + file: 'src/utilities/conversion.js', + line: 302, + description: + '

Converts a string representation of a hexadecimal number to its equivalent\ninteger value. When an array of strings in hexadecimal notation is passed\nin, an array of integers of the same length is returned.

\n', + itemtype: 'method', + name: 'unhex', + return: { + description: 'integer representation of hexadecimal value', + type: 'Number' + }, + example: [ + "\n
\nprint(unhex('A')); // 10\nprint(unhex('FF')); // 255\nprint(unhex(['FF', 'AA', '00'])); // [ 255, 170, 0 ]\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'Conversion', + overloads: [ + { + line: 302, + params: [ + { + name: 'n', + description: '

value to parse

\n', + type: 'String' + } + ], + return: { + description: 'integer representation of hexadecimal value', + type: 'Number' + } + }, + { + line: 318, + params: [ + { + name: 'ns', + description: '

values to parse

\n', + type: 'Array' + } + ], + return: { + description: 'integer representations of hexadecimal value', + type: 'Number[]' + } + } + ] + }, + { + file: 'src/utilities/string_functions.js', + line: 15, + description: + '

Combines an array of Strings into one String, each separated by the\ncharacter(s) used for the separator parameter. To join arrays of ints or\nfloats, it's necessary to first convert them to Strings using nf() or\nnfs().

\n', + itemtype: 'method', + name: 'join', + params: [ + { + name: 'list', + description: '

array of Strings to be joined

\n', + type: 'Array' + }, + { + name: 'separator', + description: '

String to be placed between each item

\n', + type: 'String' + } + ], + return: { + description: 'joined String', + type: 'String' + }, + example: [ + "\n
\n\nvar array = ['Hello', 'world!'];\nvar separator = ' ';\nvar message = join(array, separator);\ntext(message, 5, 50);\n\n
" + ], + alt: '"hello world!" displayed middle left of canvas.', + class: 'p5', + module: 'Data', + submodule: 'String Functions' + }, + { + file: 'src/utilities/string_functions.js', + line: 44, + description: + '

This function is used to apply a regular expression to a piece of text,\nand return matching groups (elements found inside parentheses) as a\nString array. If there are no matches, a null value will be returned.\nIf no groups are specified in the regular expression, but the sequence\nmatches, an array of length 1 (with the matched text as the first element\nof the array) will be returned.\n

\nTo use the function, first check to see if the result is null. If the\nresult is null, then the sequence did not match at all. If the sequence\ndid match, an array is returned.\n

\nIf there are groups (specified by sets of parentheses) in the regular\nexpression, then the contents of each will be returned in the array.\nElement [0] of a regular expression match returns the entire matching\nstring, and the match groups start at element [1] (the first group is [1],\nthe second [2], and so on).

\n', + itemtype: 'method', + name: 'match', + params: [ + { + name: 'str', + description: '

the String to be searched

\n', + type: 'String' + }, + { + name: 'regexp', + description: '

the regexp to be used for matching

\n', + type: 'String' + } + ], + return: { + description: 'Array of Strings found', + type: 'String[]' + }, + example: [ + "\n
\n\nvar string = 'Hello p5js*!';\nvar regexp = 'p5js\\\\*';\nvar m = match(string, regexp);\ntext(m, 5, 50);\n\n
" + ], + alt: '"p5js*" displayed middle left of canvas.', + class: 'p5', + module: 'Data', + submodule: 'String Functions' + }, + { + file: 'src/utilities/string_functions.js', + line: 85, + description: + '

This function is used to apply a regular expression to a piece of text,\nand return a list of matching groups (elements found inside parentheses)\nas a two-dimensional String array. If there are no matches, a null value\nwill be returned. If no groups are specified in the regular expression,\nbut the sequence matches, a two dimensional array is still returned, but\nthe second dimension is only of length one.\n

\nTo use the function, first check to see if the result is null. If the\nresult is null, then the sequence did not match at all. If the sequence\ndid match, a 2D array is returned.\n

\nIf there are groups (specified by sets of parentheses) in the regular\nexpression, then the contents of each will be returned in the array.\nAssuming a loop with counter variable i, element [i][0] of a regular\nexpression match returns the entire matching string, and the match groups\nstart at element [i][1] (the first group is [i][1], the second [i][2],\nand so on).

\n', + itemtype: 'method', + name: 'matchAll', + params: [ + { + name: 'str', + description: '

the String to be searched

\n', + type: 'String' + }, + { + name: 'regexp', + description: '

the regexp to be used for matching

\n', + type: 'String' + } + ], + return: { + description: '2d Array of Strings found', + type: 'String[]' + }, + example: [ + "\n
\n\nvar string = 'Hello p5js*! Hello world!';\nvar regexp = 'Hello';\nmatchAll(string, regexp);\n\n
" + ], + class: 'p5', + module: 'Data', + submodule: 'String Functions' + }, + { + file: 'src/utilities/string_functions.js', + line: 132, + description: + '

Utility function for formatting numbers into strings. There are two\nversions: one for formatting floats, and one for formatting ints.\nThe values for the digits, left, and right parameters should always\nbe positive integers.\n(NOTE): Be cautious when using left and right parameters as it prepends numbers of 0's if the parameter\nif greater than the current length of the number.\nFor example if number is 123.2 and left parameter passed is 4 which is greater than length of 123\n(integer part) i.e 3 than result will be 0123.2. Same case for right parameter i.e. if right is 3 than\nthe result will be 123.200.

\n', + itemtype: 'method', + name: 'nf', + return: { + description: 'formatted String', + type: 'String' + }, + example: [ + "\n
\n\nvar myFont;\nfunction preload() {\n myFont = loadFont('assets/fonts/inconsolata.ttf');\n}\nfunction setup() {\n background(200);\n var num1 = 321;\n var num2 = -1321;\n\n noStroke();\n fill(0);\n textFont(myFont);\n textSize(22);\n\n text(nf(num1, 4, 2), 10, 30);\n text(nf(num2, 4, 2), 10, 80);\n // Draw dividing line\n stroke(120);\n line(0, 50, width, 50);\n}\n\n
" + ], + alt: '"0321.00" middle top, -1321.00" middle bottom canvas', + class: 'p5', + module: 'Data', + submodule: 'String Functions', + overloads: [ + { + line: 132, + params: [ + { + name: 'num', + description: '

the Number to format

\n', + type: 'Number|String' + }, + { + name: 'left', + description: + '

number of digits to the left of the\n decimal point

\n', + type: 'Integer|String', + optional: true + }, + { + name: 'right', + description: + '

number of digits to the right of the\n decimal point

\n', + type: 'Integer|String', + optional: true + } + ], + return: { + description: 'formatted String', + type: 'String' + } + }, + { + line: 180, + params: [ + { + name: 'nums', + description: '

the Numbers to format

\n', + type: 'Array' + }, + { + name: 'left', + description: '', + type: 'Integer|String', + optional: true + }, + { + name: 'right', + description: '', + type: 'Integer|String', + optional: true + } + ], + return: { + description: 'formatted Strings', + type: 'String[]' + } + } + ] + }, + { + file: 'src/utilities/string_functions.js', + line: 243, + description: + '

Utility function for formatting numbers into strings and placing\nappropriate commas to mark units of 1000. There are two versions: one\nfor formatting ints, and one for formatting an array of ints. The value\nfor the right parameter should always be a positive integer.

\n', + itemtype: 'method', + name: 'nfc', + return: { + description: 'formatted String', + type: 'String' + }, + example: [ + '\n
\n\nfunction setup() {\n background(200);\n var num = 11253106.115;\n var numArr = [1, 1, 2];\n\n noStroke();\n fill(0);\n textSize(12);\n\n // Draw formatted numbers\n text(nfc(num, 4), 10, 30);\n text(nfc(numArr, 2), 10, 80);\n\n // Draw dividing line\n stroke(120);\n line(0, 50, width, 50);\n}\n\n
' + ], + alt: + '"11,253,106.115" top middle and "1.00,1.00,2.00" displayed bottom mid', + class: 'p5', + module: 'Data', + submodule: 'String Functions', + overloads: [ + { + line: 243, + params: [ + { + name: 'num', + description: '

the Number to format

\n', + type: 'Number|String' + }, + { + name: 'right', + description: + '

number of digits to the right of the\n decimal point

\n', + type: 'Integer|String', + optional: true + } + ], + return: { + description: 'formatted String', + type: 'String' + } + }, + { + line: 281, + params: [ + { + name: 'nums', + description: '

the Numbers to format

\n', + type: 'Array' + }, + { + name: 'right', + description: '', + type: 'Integer|String', + optional: true + } + ], + return: { + description: 'formatted Strings', + type: 'String[]' + } + } + ] + }, + { + file: 'src/utilities/string_functions.js', + line: 319, + description: + '

Utility function for formatting numbers into strings. Similar to nf() but\nputs a "+" in front of positive numbers and a "-" in front of negative\nnumbers. There are two versions: one for formatting floats, and one for\nformatting ints. The values for left, and right parameters\nshould always be positive integers.

\n', + itemtype: 'method', + name: 'nfp', + return: { + description: 'formatted String', + type: 'String' + }, + example: [ + '\n
\n\nfunction setup() {\n background(200);\n var num1 = 11253106.115;\n var num2 = -11253106.115;\n\n noStroke();\n fill(0);\n textSize(12);\n\n // Draw formatted numbers\n text(nfp(num1, 4, 2), 10, 30);\n text(nfp(num2, 4, 2), 10, 80);\n\n // Draw dividing line\n stroke(120);\n line(0, 50, width, 50);\n}\n\n
' + ], + alt: '"+11253106.11" top middle and "-11253106.11" displayed bottom middle', + class: 'p5', + module: 'Data', + submodule: 'String Functions', + overloads: [ + { + line: 319, + params: [ + { + name: 'num', + description: '

the Number to format

\n', + type: 'Number' + }, + { + name: 'left', + description: + '

number of digits to the left of the decimal\n point

\n', + type: 'Integer', + optional: true + }, + { + name: 'right', + description: + '

number of digits to the right of the\n decimal point

\n', + type: 'Integer', + optional: true + } + ], + return: { + description: 'formatted String', + type: 'String' + } + }, + { + line: 360, + params: [ + { + name: 'nums', + description: '

the Numbers to format

\n', + type: 'Number[]' + }, + { + name: 'left', + description: '', + type: 'Integer', + optional: true + }, + { + name: 'right', + description: '', + type: 'Integer', + optional: true + } + ], + return: { + description: 'formatted Strings', + type: 'String[]' + } + } + ] + }, + { + file: 'src/utilities/string_functions.js', + line: 381, + description: + '

Utility function for formatting numbers into strings. Similar to nf() but\nputs an additional "_" (space) in front of positive numbers just in case to align it with negative\nnumbers which includes "-" (minus) sign.\nThe main usecase of nfs() can be seen when one wants to align the digits (place values) of a non-negative\nnumber with some negative number (See the example to get a clear picture).\nThere are two versions: one for formatting float, and one for formatting int.\nThe values for the digits, left, and right parameters should always be positive integers.\n(IMP): The result on the canvas basically the expected alignment can vary based on the typeface you are using.\n(NOTE): Be cautious when using left and right parameters as it prepends numbers of 0's if the parameter\nif greater than the current length of the number.\nFor example if number is 123.2 and left parameter passed is 4 which is greater than length of 123\n(integer part) i.e 3 than result will be 0123.2. Same case for right parameter i.e. if right is 3 than\nthe result will be 123.200.

\n', + itemtype: 'method', + name: 'nfs', + return: { + description: 'formatted String', + type: 'String' + }, + example: [ + "\n
\n\nvar myFont;\nfunction preload() {\n myFont = loadFont('assets/fonts/inconsolata.ttf');\n}\nfunction setup() {\n background(200);\n var num1 = 321;\n var num2 = -1321;\n\n noStroke();\n fill(0);\n textFont(myFont);\n textSize(22);\n\n // nfs() aligns num1 (positive number) with num2 (negative number) by\n // adding a blank space in front of the num1 (positive number)\n // [left = 4] in num1 add one 0 in front, to align the digits with num2\n // [right = 2] in num1 and num2 adds two 0's after both numbers\n // To see the differences check the example of nf() too.\n text(nfs(num1, 4, 2), 10, 30);\n text(nfs(num2, 4, 2), 10, 80);\n // Draw dividing line\n stroke(120);\n line(0, 50, width, 50);\n}\n\n
" + ], + alt: '"0321.00" top middle and "-1321.00" displayed bottom middle', + class: 'p5', + module: 'Data', + submodule: 'String Functions', + overloads: [ + { + line: 381, + params: [ + { + name: 'num', + description: '

the Number to format

\n', + type: 'Number' + }, + { + name: 'left', + description: + '

number of digits to the left of the decimal\n point

\n', + type: 'Integer', + optional: true + }, + { + name: 'right', + description: + '

number of digits to the right of the\n decimal point

\n', + type: 'Integer', + optional: true + } + ], + return: { + description: 'formatted String', + type: 'String' + } + }, + { + line: 438, + params: [ + { + name: 'nums', + description: '

the Numbers to format

\n', + type: 'Array' + }, + { + name: 'left', + description: '', + type: 'Integer', + optional: true + }, + { + name: 'right', + description: '', + type: 'Integer', + optional: true + } + ], + return: { + description: 'formatted Strings', + type: 'String[]' + } + } + ] + }, + { + file: 'src/utilities/string_functions.js', + line: 459, + description: + '

The split() function maps to String.split(), it breaks a String into\npieces using a character or string as the delimiter. The delim parameter\nspecifies the character or characters that mark the boundaries between\neach piece. A String[] array is returned that contains each of the pieces.

\n

The splitTokens() function works in a similar fashion, except that it\nsplits using a range of characters instead of a specific character or\nsequence.

\n', + itemtype: 'method', + name: 'split', + params: [ + { + name: 'value', + description: '

the String to be split

\n', + type: 'String' + }, + { + name: 'delim', + description: '

the String used to separate the data

\n', + type: 'String' + } + ], + return: { + description: 'Array of Strings', + type: 'String[]' + }, + example: [ + "\n
\n\nvar names = 'Pat,Xio,Alex';\nvar splitString = split(names, ',');\ntext(splitString[0], 5, 30);\ntext(splitString[1], 5, 50);\ntext(splitString[2], 5, 70);\n\n
" + ], + alt: '"pat" top left, "Xio" mid left and "Alex" displayed bottom left', + class: 'p5', + module: 'Data', + submodule: 'String Functions' + }, + { + file: 'src/utilities/string_functions.js', + line: 493, + description: + '

The splitTokens() function splits a String at one or many character\ndelimiters or "tokens." The delim parameter specifies the character or\ncharacters to be used as a boundary.\n

\nIf no delim characters are specified, any whitespace character is used to\nsplit. Whitespace characters include tab (\\t), line feed (\\n), carriage\nreturn (\\r), form feed (\\f), and space.

\n', + itemtype: 'method', + name: 'splitTokens', + params: [ + { + name: 'value', + description: '

the String to be split

\n', + type: 'String' + }, + { + name: 'delim', + description: + '

list of individual Strings that will be used as\n separators

\n', + type: 'String', + optional: true + } + ], + return: { + description: 'Array of Strings', + type: 'String[]' + }, + example: [ + '\n
\n\nfunction setup() {\n var myStr = \'Mango, Banana, Lime\';\n var myStrArr = splitTokens(myStr, \',\');\n\n print(myStrArr); // prints : ["Mango"," Banana"," Lime"]\n}\n\n
' + ], + class: 'p5', + module: 'Data', + submodule: 'String Functions' + }, + { + file: 'src/utilities/string_functions.js', + line: 548, + description: + '

Removes whitespace characters from the beginning and end of a String. In\naddition to standard whitespace characters such as space, carriage return,\nand tab, this function also removes the Unicode "nbsp" character.

\n', + itemtype: 'method', + name: 'trim', + return: { + description: 'a trimmed String', + type: 'String' + }, + example: [ + "\n
\n\nvar string = trim(' No new lines\\n ');\ntext(string + ' here', 2, 50);\n\n
" + ], + alt: '"No new lines here" displayed center canvas', + class: 'p5', + module: 'Data', + submodule: 'String Functions', + overloads: [ + { + line: 548, + params: [ + { + name: 'str', + description: '

a String to be trimmed

\n', + type: 'String' + } + ], + return: { + description: 'a trimmed String', + type: 'String' + } + }, + { + line: 568, + params: [ + { + name: 'strs', + description: '

an Array of Strings to be trimmed

\n', + type: 'Array' + } + ], + return: { + description: 'an Array of trimmed Strings', + type: 'String[]' + } + } + ] + }, + { + file: 'src/utilities/time_date.js', + line: 12, + description: + '

p5.js communicates with the clock on your computer. The day() function\nreturns the current day as a value from 1 - 31.

\n', + itemtype: 'method', + name: 'day', + return: { + description: 'the current day', + type: 'Integer' + }, + example: [ + "\n
\n\nvar d = day();\ntext('Current day: \\n' + d, 5, 50);\n\n
" + ], + alt: 'Current day is displayed', + class: 'p5', + module: 'IO', + submodule: 'Time & Date' + }, + { + file: 'src/utilities/time_date.js', + line: 34, + description: + '

p5.js communicates with the clock on your computer. The hour() function\nreturns the current hour as a value from 0 - 23.

\n', + itemtype: 'method', + name: 'hour', + return: { + description: 'the current hour', + type: 'Integer' + }, + example: [ + "\n
\n\nvar h = hour();\ntext('Current hour:\\n' + h, 5, 50);\n\n
" + ], + alt: 'Current hour is displayed', + class: 'p5', + module: 'IO', + submodule: 'Time & Date' + }, + { + file: 'src/utilities/time_date.js', + line: 56, + description: + '

p5.js communicates with the clock on your computer. The minute() function\nreturns the current minute as a value from 0 - 59.

\n', + itemtype: 'method', + name: 'minute', + return: { + description: 'the current minute', + type: 'Integer' + }, + example: [ + "\n
\n\nvar m = minute();\ntext('Current minute: \\n' + m, 5, 50);\n\n
" + ], + alt: 'Current minute is displayed', + class: 'p5', + module: 'IO', + submodule: 'Time & Date' + }, + { + file: 'src/utilities/time_date.js', + line: 78, + description: + '

Returns the number of milliseconds (thousandths of a second) since\nstarting the program. This information is often used for timing events and\nanimation sequences.

\n', + itemtype: 'method', + name: 'millis', + return: { + description: 'the number of milliseconds since starting the program', + type: 'Number' + }, + example: [ + "\n
\n\nvar millisecond = millis();\ntext('Milliseconds \\nrunning: \\n' + millisecond, 5, 40);\n\n
" + ], + alt: 'number of milliseconds since program has started displayed', + class: 'p5', + module: 'IO', + submodule: 'Time & Date' + }, + { + file: 'src/utilities/time_date.js', + line: 101, + description: + '

p5.js communicates with the clock on your computer. The month() function\nreturns the current month as a value from 1 - 12.

\n', + itemtype: 'method', + name: 'month', + return: { + description: 'the current month', + type: 'Integer' + }, + example: [ + "\n
\n\nvar m = month();\ntext('Current month: \\n' + m, 5, 50);\n\n
" + ], + alt: 'Current month is displayed', + class: 'p5', + module: 'IO', + submodule: 'Time & Date' + }, + { + file: 'src/utilities/time_date.js', + line: 123, + description: + '

p5.js communicates with the clock on your computer. The second() function\nreturns the current second as a value from 0 - 59.

\n', + itemtype: 'method', + name: 'second', + return: { + description: 'the current second', + type: 'Integer' + }, + example: [ + "\n
\n\nvar s = second();\ntext('Current second: \\n' + s, 5, 50);\n\n
" + ], + alt: 'Current second is displayed', + class: 'p5', + module: 'IO', + submodule: 'Time & Date' + }, + { + file: 'src/utilities/time_date.js', + line: 145, + description: + '

p5.js communicates with the clock on your computer. The year() function\nreturns the current year as an integer (2014, 2015, 2016, etc).

\n', + itemtype: 'method', + name: 'year', + return: { + description: 'the current year', + type: 'Integer' + }, + example: [ + "\n
\n\nvar y = year();\ntext('Current year: \\n' + y, 5, 50);\n\n
" + ], + alt: 'Current year is displayed', + class: 'p5', + module: 'IO', + submodule: 'Time & Date' + }, + { + file: 'src/webgl/3d_primitives.js', + line: 14, + description: '

Draw a plane with given a width and height

\n', + itemtype: 'method', + name: 'plane', + params: [ + { + name: 'width', + description: '

width of the plane

\n', + type: 'Number', + optional: true + }, + { + name: 'height', + description: '

height of the plane

\n', + type: 'Number', + optional: true + }, + { + name: 'detailX', + description: + '

Optional number of triangle\n subdivisions in x-dimension

\n', + type: 'Integer', + optional: true + }, + { + name: 'detailY', + description: + '

Optional number of triangle\n subdivisions in y-dimension

\n', + type: 'Integer', + optional: true + } + ], + chainable: 1, + example: [ + '\n
\n\n// draw a plane\n// with width 50 and height 50\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n plane(50, 50);\n}\n\n
' + ], + alt: + 'Nothing displayed on canvas\nRotating interior view of a box with sides that change color.\n3d red and green gradient.\nRotating interior view of a cylinder with sides that change color.\nRotating view of a cylinder with sides that change color.\n3d red and green gradient.\nrotating view of a multi-colored cylinder with concave sides.', + class: 'p5', + module: 'Shape', + submodule: '3D Primitives' + }, + { + file: 'src/webgl/3d_primitives.js', + line: 98, + description: '

Draw a box with given width, height and depth

\n', + itemtype: 'method', + name: 'box', + params: [ + { + name: 'width', + description: '

width of the box

\n', + type: 'Number', + optional: true + }, + { + name: 'Height', + description: '

height of the box

\n', + type: 'Number', + optional: true + }, + { + name: 'depth', + description: '

depth of the box

\n', + type: 'Number', + optional: true + }, + { + name: 'detailX', + description: + '

Optional number of triangle\n subdivisions in x-dimension

\n', + type: 'Integer', + optional: true + }, + { + name: 'detailY', + description: + '

Optional number of triangle\n subdivisions in y-dimension

\n', + type: 'Integer', + optional: true + } + ], + chainable: 1, + example: [ + '\n
\n\n// draw a spinning box\n// with width, height and depth of 50\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n rotateX(frameCount * 0.01);\n rotateY(frameCount * 0.01);\n box(50);\n}\n\n
' + ], + class: 'p5', + module: 'Shape', + submodule: '3D Primitives' + }, + { + file: 'src/webgl/3d_primitives.js', + line: 216, + description: '

Draw a sphere with given radius

\n', + itemtype: 'method', + name: 'sphere', + params: [ + { + name: 'radius', + description: '

radius of circle

\n', + type: 'Number', + optional: true + }, + { + name: 'detailX', + description: + '

number of segments,\n the more segments the smoother geometry\n default is 24

\n', + type: 'Integer', + optional: true + }, + { + name: 'detailY', + description: + '

number of segments,\n the more segments the smoother geometry\n default is 16

\n', + type: 'Integer', + optional: true + } + ], + chainable: 1, + example: [ + '\n
\n\n// draw a sphere with radius 40\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n sphere(40);\n}\n\n
' + ], + class: 'p5', + module: 'Shape', + submodule: '3D Primitives' + }, + { + file: 'src/webgl/3d_primitives.js', + line: 378, + description: '

Draw a cylinder with given radius and height

\n', + itemtype: 'method', + name: 'cylinder', + params: [ + { + name: 'radius', + description: '

radius of the surface

\n', + type: 'Number', + optional: true + }, + { + name: 'height', + description: '

height of the cylinder

\n', + type: 'Number', + optional: true + }, + { + name: 'detailX', + description: + '

number of segments,\n the more segments the smoother geometry\n default is 24

\n', + type: 'Integer', + optional: true + }, + { + name: 'detailY', + description: + '

number of segments in y-dimension,\n the more segments the smoother geometry\n default is 1

\n', + type: 'Integer', + optional: true + }, + { + name: 'bottomCap', + description: '

whether to draw the bottom of the cylinder

\n', + type: 'Boolean', + optional: true + }, + { + name: 'topCap', + description: '

whether to draw the top of the cylinder

\n', + type: 'Boolean', + optional: true + } + ], + chainable: 1, + example: [ + '\n
\n\n// draw a spinning cylinder\n// with radius 20 and height 50\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n rotateX(frameCount * 0.01);\n rotateZ(frameCount * 0.01);\n cylinder(20, 50);\n}\n\n
' + ], + class: 'p5', + module: 'Shape', + submodule: '3D Primitives' + }, + { + file: 'src/webgl/3d_primitives.js', + line: 470, + description: '

Draw a cone with given radius and height

\n', + itemtype: 'method', + name: 'cone', + params: [ + { + name: 'radius', + description: '

radius of the bottom surface

\n', + type: 'Number', + optional: true + }, + { + name: 'height', + description: '

height of the cone

\n', + type: 'Number', + optional: true + }, + { + name: 'detailX', + description: + '

number of segments,\n the more segments the smoother geometry\n default is 24

\n', + type: 'Integer', + optional: true + }, + { + name: 'detailY', + description: + '

number of segments,\n the more segments the smoother geometry\n default is 1

\n', + type: 'Integer', + optional: true + }, + { + name: 'cap', + description: '

whether to draw the base of the cone

\n', + type: 'Boolean', + optional: true + } + ], + chainable: 1, + example: [ + '\n
\n\n// draw a spinning cone\n// with radius 40 and height 70\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n rotateX(frameCount * 0.01);\n rotateZ(frameCount * 0.01);\n cone(40, 70);\n}\n\n
' + ], + class: 'p5', + module: 'Shape', + submodule: '3D Primitives' + }, + { + file: 'src/webgl/3d_primitives.js', + line: 540, + description: '

Draw an ellipsoid with given radius

\n', + itemtype: 'method', + name: 'ellipsoid', + params: [ + { + name: 'radiusx', + description: '

x-radius of ellipsoid

\n', + type: 'Number', + optional: true + }, + { + name: 'radiusy', + description: '

y-radius of ellipsoid

\n', + type: 'Number', + optional: true + }, + { + name: 'radiusz', + description: '

z-radius of ellipsoid

\n', + type: 'Number', + optional: true + }, + { + name: 'detailX', + description: + '

number of segments,\n the more segments the smoother geometry\n default is 24. Avoid detail number above\n 150, it may crash the browser.

\n', + type: 'Integer', + optional: true + }, + { + name: 'detailY', + description: + '

number of segments,\n the more segments the smoother geometry\n default is 16. Avoid detail number above\n 150, it may crash the browser.

\n', + type: 'Integer', + optional: true + } + ], + chainable: 1, + example: [ + '\n
\n\n// draw an ellipsoid\n// with radius 30, 40 and 40.\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n ellipsoid(30, 40, 40);\n}\n\n
' + ], + class: 'p5', + module: 'Shape', + submodule: '3D Primitives' + }, + { + file: 'src/webgl/3d_primitives.js', + line: 631, + description: '

Draw a torus with given radius and tube radius

\n', + itemtype: 'method', + name: 'torus', + params: [ + { + name: 'radius', + description: '

radius of the whole ring

\n', + type: 'Number', + optional: true + }, + { + name: 'tubeRadius', + description: '

radius of the tube

\n', + type: 'Number', + optional: true + }, + { + name: 'detailX', + description: + '

number of segments in x-dimension,\n the more segments the smoother geometry\n default is 24

\n', + type: 'Integer', + optional: true + }, + { + name: 'detailY', + description: + '

number of segments in y-dimension,\n the more segments the smoother geometry\n default is 16

\n', + type: 'Integer', + optional: true + } + ], + chainable: 1, + example: [ + '\n
\n\n// draw a spinning torus\n// with ring radius 30 and tube radius 15\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n rotateX(frameCount * 0.01);\n rotateY(frameCount * 0.01);\n torus(30, 15);\n}\n\n
' + ], + class: 'p5', + module: 'Shape', + submodule: '3D Primitives' + }, + { + file: 'src/webgl/interaction.js', + line: 13, + description: + '

Allows movement around a 3D sketch using a mouse or trackpad. Left-clicking\nand dragging will rotate the camera position about the center of the sketch,\nright-clicking and dragging will pan the camera position without rotation,\nand using the mouse wheel (scrolling) will move the camera closer or further\nfrom the center of the sketch. This function can be called with parameters\ndictating sensitivity to mouse movement along the X and Y axes. Calling\nthis function without parameters is equivalent to calling orbitControl(1,1).\nTo reverse direction of movement in either axis, enter a negative number\nfor sensitivity.

\n', + itemtype: 'method', + name: 'orbitControl', + params: [ + { + name: 'sensitivityX', + description: '

sensitivity to mouse movement along X axis

\n', + type: 'Number', + optional: true + }, + { + name: 'sensitivityY', + description: '

sensitivity to mouse movement along Y axis

\n', + type: 'Number', + optional: true + } + ], + chainable: 1, + example: [ + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n normalMaterial();\n}\nfunction draw() {\n background(200);\n orbitControl();\n rotateY(0.5);\n box(30, 50);\n}\n\n
' + ], + alt: 'Camera orbits around a box when mouse is hold-clicked & then moved.', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Interaction' + }, + { + file: 'src/webgl/interaction.js', + line: 146, + description: + '

debugMode() helps visualize 3D space by adding a grid to indicate where the\nโ€˜groundโ€™ is in a sketch and an axes icon which indicates the +X, +Y, and +Z\ndirections. This function can be called without parameters to create a\ndefault grid and axes icon, or it can be called according to the examples\nabove to customize the size and position of the grid and/or axes icon. The\ngrid is drawn using the most recently set stroke color and weight. To\nspecify these parameters, add a call to stroke() and strokeWeight()\njust before the end of the draw() loop.

\n

By default, the grid will run through the origin (0,0,0) of the sketch\nalong the XZ plane\nand the axes icon will be offset from the origin. Both the grid and axes\nicon will be sized according to the current canvas size. Note that because the\ngrid runs parallel to the default camera view, it is often helpful to use\ndebugMode along with orbitControl to allow full view of the grid.

\n', + itemtype: 'method', + name: 'debugMode', + example: [ + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n normalMaterial();\n debugMode();\n}\n\nfunction draw() {\n background(200);\n orbitControl();\n box(15, 30);\n // Press the spacebar to turn debugMode off!\n if (keyIsDown(32)) {\n noDebugMode();\n }\n}\n\n
', + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n normalMaterial();\n debugMode(GRID);\n}\n\nfunction draw() {\n background(200);\n orbitControl();\n box(15, 30);\n}\n\n
', + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n normalMaterial();\n debugMode(AXES);\n}\n\nfunction draw() {\n background(200);\n orbitControl();\n box(15, 30);\n}\n\n
', + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n normalMaterial();\n debugMode(GRID, 100, 10, 0, 0, 0);\n}\n\nfunction draw() {\n background(200);\n orbitControl();\n box(15, 30);\n}\n\n
', + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n normalMaterial();\n debugMode(100, 10, 0, 0, 0, 20, 0, -40, 0);\n}\n\nfunction draw() {\n noStroke();\n background(200);\n orbitControl();\n box(15, 30);\n // set the stroke color and weight for the grid!\n stroke(255, 0, 150);\n strokeWeight(0.8);\n}\n\n
' + ], + alt: + 'a 3D box is centered on a grid in a 3D sketch. an icon\nindicates the direction of each axis: a red line points +X,\na green line +Y, and a blue line +Z.', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Interaction', + overloads: [ + { + line: 146, + params: [] + }, + { + line: 279, + params: [ + { + name: 'mode', + description: '

either GRID or AXES

\n', + type: 'Constant' + } + ] + }, + { + line: 284, + params: [ + { + name: 'mode', + description: '', + type: 'Constant' + }, + { + name: 'gridSize', + description: '

size of one side of the grid

\n', + type: 'Number', + optional: true + }, + { + name: 'gridDivisions', + description: '

number of divisions in the grid

\n', + type: 'Number', + optional: true + }, + { + name: 'xOff', + description: '

X axis offset from origin (0,0,0)

\n', + type: 'Number', + optional: true + }, + { + name: 'yOff', + description: '

Y axis offset from origin (0,0,0)

\n', + type: 'Number', + optional: true + }, + { + name: 'zOff', + description: '

Z axis offset from origin (0,0,0)

\n', + type: 'Number', + optional: true + } + ] + }, + { + line: 294, + params: [ + { + name: 'mode', + description: '', + type: 'Constant' + }, + { + name: 'axesSize', + description: '

size of axes icon

\n', + type: 'Number', + optional: true + }, + { + name: 'xOff', + description: '', + type: 'Number', + optional: true + }, + { + name: 'yOff', + description: '', + type: 'Number', + optional: true + }, + { + name: 'zOff', + description: '', + type: 'Number', + optional: true + } + ] + }, + { + line: 303, + params: [ + { + name: 'gridSize', + description: '', + type: 'Number', + optional: true + }, + { + name: 'gridDivisions', + description: '', + type: 'Number', + optional: true + }, + { + name: 'gridXOff', + description: '', + type: 'Number', + optional: true + }, + { + name: 'gridYOff', + description: '', + type: 'Number', + optional: true + }, + { + name: 'gridZOff', + description: '', + type: 'Number', + optional: true + }, + { + name: 'axesSize', + description: '', + type: 'Number', + optional: true + }, + { + name: 'axesXOff', + description: '', + type: 'Number', + optional: true + }, + { + name: 'axesYOff', + description: '', + type: 'Number', + optional: true + }, + { + name: 'axesZOff', + description: '', + type: 'Number', + optional: true + } + ] + } + ] + }, + { + file: 'src/webgl/interaction.js', + line: 380, + description: '

Turns off debugMode() in a 3D sketch.

\n', + itemtype: 'method', + name: 'noDebugMode', + example: [ + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n camera(0, -30, 100, 0, 0, 0, 0, 1, 0);\n normalMaterial();\n debugMode();\n}\n\nfunction draw() {\n background(200);\n orbitControl();\n box(15, 30);\n // Press the spacebar to turn debugMode off!\n if (keyIsDown(32)) {\n noDebugMode();\n }\n}\n\n
' + ], + alt: + 'a 3D box is centered on a grid in a 3D sketch. an icon\nindicates the direction of each axis: a red line points +X,\na green line +Y, and a blue line +Z. the grid and icon disappear when the\nspacebar is pressed.', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Interaction' + }, + { + file: 'src/webgl/light.js', + line: 12, + description: '

Creates an ambient light with a color

\n', + itemtype: 'method', + name: 'ambientLight', + chainable: 1, + example: [ + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(0);\n ambientLight(150);\n ambientMaterial(250);\n noStroke();\n sphere(40);\n}\n\n
' + ], + alt: 'evenly distributed light across a sphere', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Lights', + overloads: [ + { + line: 12, + params: [ + { + name: 'v1', + description: + '

red or hue value relative to\n the current color range

\n', + type: 'Number' + }, + { + name: 'v2', + description: + '

green or saturation value\n relative to the current color range

\n', + type: 'Number' + }, + { + name: 'v3', + description: + '

blue or brightness value\n relative to the current color range

\n', + type: 'Number' + }, + { + name: 'alpha', + description: '

the alpha value

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 46, + params: [ + { + name: 'value', + description: '

a color string

\n', + type: 'String' + } + ], + chainable: 1 + }, + { + line: 52, + params: [ + { + name: 'gray', + description: '

a gray value

\n', + type: 'Number' + }, + { + name: 'alpha', + description: '', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 59, + params: [ + { + name: 'values', + description: + '

an array containing the red,green,blue &\n and alpha components of the color

\n', + type: 'Number[]' + } + ], + chainable: 1 + }, + { + line: 66, + params: [ + { + name: 'color', + description: '

the ambient light color

\n', + type: 'p5.Color' + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/webgl/light.js', + line: 87, + description: + '

Creates a directional light with a color and a direction

\n', + itemtype: 'method', + name: 'directionalLight', + chainable: 1, + example: [ + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(0);\n //move your mouse to change light direction\n let dirX = (mouseX / width - 0.5) * 2;\n let dirY = (mouseY / height - 0.5) * 2;\n directionalLight(250, 250, 250, -dirX, -dirY, -1);\n noStroke();\n sphere(40);\n}\n\n
' + ], + alt: 'light source on canvas changeable with mouse position', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Lights', + overloads: [ + { + line: 87, + params: [ + { + name: 'v1', + description: + '

red or hue value (depending on the current\ncolor mode),

\n', + type: 'Number' + }, + { + name: 'v2', + description: '

green or saturation value

\n', + type: 'Number' + }, + { + name: 'v3', + description: '

blue or brightness value

\n', + type: 'Number' + }, + { + name: 'position', + description: '

the direction of the light

\n', + type: 'p5.Vector' + } + ], + chainable: 1 + }, + { + line: 119, + params: [ + { + name: 'color', + description: + '

color Array, CSS color string,\n or p5.Color value

\n', + type: 'Number[]|String|p5.Color' + }, + { + name: 'x', + description: '

x axis direction

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y axis direction

\n', + type: 'Number' + }, + { + name: 'z', + description: '

z axis direction

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 129, + params: [ + { + name: 'color', + description: '', + type: 'Number[]|String|p5.Color' + }, + { + name: 'position', + description: '', + type: 'p5.Vector' + } + ], + chainable: 1 + }, + { + line: 136, + params: [ + { + name: 'v1', + description: '', + type: 'Number' + }, + { + name: 'v2', + description: '', + type: 'Number' + }, + { + name: 'v3', + description: '', + type: 'Number' + }, + { + name: 'x', + description: '', + type: 'Number' + }, + { + name: 'y', + description: '', + type: 'Number' + }, + { + name: 'z', + description: '', + type: 'Number' + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/webgl/light.js', + line: 185, + description: + '

Creates a point light with a color and a light position

\n', + itemtype: 'method', + name: 'pointLight', + chainable: 1, + example: [ + "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(0);\n //move your mouse to change light position\n let locX = mouseX - width / 2;\n let locY = mouseY - height / 2;\n // to set the light position,\n // think of the world's coordinate as:\n // -width/2,-height/2 -------- width/2,-height/2\n // | |\n // | 0,0 |\n // | |\n // -width/2,height/2--------width/2,height/2\n pointLight(250, 250, 250, locX, locY, 50);\n noStroke();\n sphere(40);\n}\n\n
" + ], + alt: 'spot light on canvas changes position with mouse', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Lights', + overloads: [ + { + line: 185, + params: [ + { + name: 'v1', + description: + '

red or hue value (depending on the current\ncolor mode),

\n', + type: 'Number' + }, + { + name: 'v2', + description: '

green or saturation value

\n', + type: 'Number' + }, + { + name: 'v3', + description: '

blue or brightness value

\n', + type: 'Number' + }, + { + name: 'x', + description: '

x axis position

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y axis position

\n', + type: 'Number' + }, + { + name: 'z', + description: '

z axis position

\n', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 226, + params: [ + { + name: 'v1', + description: '', + type: 'Number' + }, + { + name: 'v2', + description: '', + type: 'Number' + }, + { + name: 'v3', + description: '', + type: 'Number' + }, + { + name: 'position', + description: '

the position of the light

\n', + type: 'p5.Vector' + } + ], + chainable: 1 + }, + { + line: 235, + params: [ + { + name: 'color', + description: + '

color Array, CSS color string,\nor p5.Color value

\n', + type: 'Number[]|String|p5.Color' + }, + { + name: 'x', + description: '', + type: 'Number' + }, + { + name: 'y', + description: '', + type: 'Number' + }, + { + name: 'z', + description: '', + type: 'Number' + } + ], + chainable: 1 + }, + { + line: 245, + params: [ + { + name: 'color', + description: '', + type: 'Number[]|String|p5.Color' + }, + { + name: 'position', + description: '', + type: 'p5.Vector' + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/webgl/light.js', + line: 287, + description: + '

Sets the default ambient and directional light. The defaults are ambientLight(128, 128, 128) and directionalLight(128, 128, 128, 0, 0, -1). Lights need to be included in the draw() to remain persistent in a looping program. Placing them in the setup() of a looping program will cause them to only have an effect the first time through the loop.

\n', + itemtype: 'method', + name: 'lights', + chainable: 1, + example: [ + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(0);\n lights();\n rotateX(millis() / 1000);\n rotateY(millis() / 1000);\n rotateZ(millis() / 1000);\n box();\n}\n\n
' + ], + alt: 'the light is partially ambient and partially directional', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Lights' + }, + { + file: 'src/webgl/light.js', + line: 318, + description: + '

Sets the falloff rates for point lights. It affects only the elements which are created after it in the code.\nThe default value is lightFalloff(1.0, 0.0, 0.0), and the parameters are used to calculate the falloff with the following equation:

\n

d = distance from light position to vertex position

\n

falloff = 1 / (CONSTANT + d * LINEAR + ( d * d ) * QUADRATIC)

\n', + itemtype: 'method', + name: 'lightFalloff', + params: [ + { + name: 'constant', + description: '

constant value for determining falloff

\n', + type: 'Number' + }, + { + name: 'linear', + description: '

linear value for determining falloff

\n', + type: 'Number' + }, + { + name: 'quadratic', + description: '

quadratic value for determining falloff

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n noStroke();\n}\nfunction draw() {\n background(0);\n let locX = mouseX - width / 2;\n let locY = mouseY - height / 2;\n translate(-25, 0, 0);\n lightFalloff(1, 0, 0);\n pointLight(250, 250, 250, locX, locY, 50);\n sphere(20);\n translate(50, 0, 0);\n lightFalloff(0.9, 0.01, 0);\n pointLight(250, 250, 250, locX, locY, 50);\n sphere(20);\n}\n\n
' + ], + alt: + 'Two spheres with different falloff values show different intensity of light', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Lights' + }, + { + file: 'src/webgl/loading.js', + line: 14, + description: + '

Load a 3d model from an OBJ or STL file.\n

\nOne of the limitations of the OBJ and STL format is that it doesn't have a built-in\nsense of scale. This means that models exported from different programs might\nbe very different sizes. If your model isn't displaying, try calling\nloadModel() with the normalized parameter set to true. This will resize the\nmodel to a scale appropriate for p5. You can also make additional changes to\nthe final size of your model with the scale() function.

\n

Also, the support for colored STL files is not present. STL files with color will be\nrendered without color properties.

\n', + itemtype: 'method', + name: 'loadModel', + return: { + description: 'the p5.Geometry object', + type: 'p5.Geometry' + }, + example: [ + "\n
\n\n//draw a spinning octahedron\nlet octahedron;\n\nfunction preload() {\n octahedron = loadModel('assets/octahedron.obj');\n}\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n rotateX(frameCount * 0.01);\n rotateY(frameCount * 0.01);\n model(octahedron);\n}\n\n
", + "\n
\n\n//draw a spinning teapot\nlet teapot;\n\nfunction preload() {\n // Load model with normalise parameter set to true\n teapot = loadModel('assets/teapot.obj', true);\n}\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n scale(0.4); // Scaled to make model fit into canvas\n rotateX(frameCount * 0.01);\n rotateY(frameCount * 0.01);\n normalMaterial(); // For effect\n model(teapot);\n}\n\n
" + ], + alt: 'Vertically rotating 3-d teapot with red, green and blue gradient.', + class: 'p5', + module: 'Shape', + submodule: '3D Models', + overloads: [ + { + line: 14, + params: [ + { + name: 'path', + description: '

Path of the model to be loaded

\n', + type: 'String' + }, + { + name: 'normalize', + description: + '

If true, scale the model to a\n standardized size when loading

\n', + type: 'Boolean' + }, + { + name: 'successCallback', + description: + '

Function to be called\n once the model is loaded. Will be passed\n the 3D model object.

\n', + type: 'function(p5.Geometry)', + optional: true + }, + { + name: 'failureCallback', + description: + '

called with event error if\n the model fails to load.

\n', + type: 'Function(Event)', + optional: true + } + ], + return: { + description: 'the p5.Geometry object', + type: 'p5.Geometry' + } + }, + { + line: 93, + params: [ + { + name: 'path', + description: '', + type: 'String' + }, + { + name: 'successCallback', + description: '', + type: 'function(p5.Geometry)', + optional: true + }, + { + name: 'failureCallback', + description: '', + type: 'Function(Event)', + optional: true + } + ], + return: { + description: 'the p5.Geometry object', + type: 'p5.Geometry' + } + } + ] + }, + { + file: 'src/webgl/loading.js', + line: 169, + description: + '

Parse OBJ lines into model. For reference, this is what a simple model of a\nsquare might look like:

\n

v -0.5 -0.5 0.5\nv -0.5 -0.5 -0.5\nv -0.5 0.5 -0.5\nv -0.5 0.5 0.5

\n

f 4 3 2 1

\n', + class: 'p5', + module: 'Shape', + submodule: '3D Models' + }, + { + file: 'src/webgl/loading.js', + line: 278, + description: + '

STL files can be of two types, ASCII and Binary,

\n

We need to convert the arrayBuffer to an array of strings,\nto parse it as an ASCII file.

\n', + class: 'p5', + module: 'Shape', + submodule: '3D Models' + }, + { + file: 'src/webgl/loading.js', + line: 305, + description: + '

This function checks if the file is in ASCII format or in Binary format

\n

It is done by searching keyword solid at the start of the file.

\n

An ASCII STL data must begin with solid as the first six bytes.\nHowever, ASCII STLs lacking the SPACE after the d are known to be\nplentiful. So, check the first 5 bytes for solid.

\n

Several encodings, such as UTF-8, precede the text with up to 5 bytes:\nhttps://en.wikipedia.org/wiki/Byte_order_mark#Byte_order_marks_by_encoding\nSearch for solid to start anywhere after those prefixes.

\n', + class: 'p5', + module: 'Shape', + submodule: '3D Models' + }, + { + file: 'src/webgl/loading.js', + line: 332, + description: + '

This function matches the query at the provided offset

\n', + class: 'p5', + module: 'Shape', + submodule: '3D Models' + }, + { + file: 'src/webgl/loading.js', + line: 344, + description: + '

This function parses the Binary STL files.\nhttps://en.wikipedia.org/wiki/STL_%28file_format%29#Binary_STL

\n

Currently there is no support for the colors provided in STL files.

\n', + class: 'p5', + module: 'Shape', + submodule: '3D Models' + }, + { + file: 'src/webgl/loading.js', + line: 433, + description: + '

ASCII STL file starts with solid 'nameOfFile'\nThen contain the normal of the face, starting with facet normal\nNext contain a keyword indicating the start of face vertex, outer loop\nNext comes the three vertex, starting with vertex x y z\nVertices ends with endloop\nFace ends with endfacet\nNext face starts with facet normal\nThe end of the file is indicated by endsolid

\n', + class: 'p5', + module: 'Shape', + submodule: '3D Models' + }, + { + file: 'src/webgl/loading.js', + line: 580, + description: '

Render a 3d model to the screen.

\n', + itemtype: 'method', + name: 'model', + params: [ + { + name: 'model', + description: '

Loaded 3d model to be rendered

\n', + type: 'p5.Geometry' + } + ], + example: [ + "\n
\n\n//draw a spinning octahedron\nlet octahedron;\n\nfunction preload() {\n octahedron = loadModel('assets/octahedron.obj');\n}\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n rotateX(frameCount * 0.01);\n rotateY(frameCount * 0.01);\n model(octahedron);\n}\n\n
" + ], + alt: 'Vertically rotating 3-d octahedron.', + class: 'p5', + module: 'Shape', + submodule: '3D Models' + }, + { + file: 'src/webgl/material.js', + line: 14, + description: + '

Loads a custom shader from the provided vertex and fragment\nshader paths. The shader files are loaded asynchronously in the\nbackground, so this method should be used in preload().

\n

For now, there are three main types of shaders. p5 will automatically\nsupply appropriate vertices, normals, colors, and lighting attributes\nif the parameters defined in the shader match the names.

\n', + itemtype: 'method', + name: 'loadShader', + params: [ + { + name: 'vertFilename', + description: + '

path to file containing vertex shader\nsource code

\n', + type: 'String' + }, + { + name: 'fragFilename', + description: + '

path to file containing fragment shader\nsource code

\n', + type: 'String' + }, + { + name: 'callback', + description: + '

callback to be executed after loadShader\ncompletes. On success, the Shader object is passed as the first argument.

\n', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: + '

callback to be executed when an error\noccurs inside loadShader. On error, the error is passed as the first\nargument.

\n', + type: 'Function', + optional: true + } + ], + return: { + description: + 'a shader object created from the provided\nvertex and fragment shader files.', + type: 'p5.Shader' + }, + example: [ + "\n
\n\nlet mandel;\nfunction preload() {\n // load the shader definitions from files\n mandel = loadShader('assets/shader.vert', 'assets/shader.frag');\n}\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n // use the shader\n shader(mandel);\n noStroke();\n mandel.setUniform('p', [-0.74364388703, 0.13182590421]);\n}\n\nfunction draw() {\n mandel.setUniform('r', 1.5 * exp(-6.5 * (1 + sin(millis() / 2000))));\n quad(-1, -1, 1, -1, 1, 1, -1, 1);\n}\n\n
" + ], + alt: 'zooming Mandelbrot set. a colorful, infinitely detailed fractal.', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Material' + }, + { + file: 'src/webgl/material.js', + line: 113, + itemtype: 'method', + name: 'createShader', + params: [ + { + name: 'vertSrc', + description: '

source code for the vertex shader

\n', + type: 'String' + }, + { + name: 'fragSrc', + description: '

source code for the fragment shader

\n', + type: 'String' + } + ], + return: { + description: + 'a shader object created from the provided\nvertex and fragment shaders.', + type: 'p5.Shader' + }, + example: [ + "\n
\n\n// the 'varying's are shared between both vertex & fragment shaders\nlet varying = 'precision highp float; varying vec2 vPos;';\n\n// the vertex shader is called for each vertex\nlet vs =\n varying +\n 'attribute vec3 aPosition;' +\n 'void main() { vPos = (gl_Position = vec4(aPosition,1.0)).xy; }';\n\n// the fragment shader is called for each pixel\nlet fs =\n varying +\n 'uniform vec2 p;' +\n 'uniform float r;' +\n 'const int I = 500;' +\n 'void main() {' +\n ' vec2 c = p + vPos * r, z = c;' +\n ' float n = 0.0;' +\n ' for (int i = I; i > 0; i --) {' +\n ' if(z.x*z.x+z.y*z.y > 4.0) {' +\n ' n = float(i)/float(I);' +\n ' break;' +\n ' }' +\n ' z = vec2(z.x*z.x-z.y*z.y, 2.0*z.x*z.y) + c;' +\n ' }' +\n ' gl_FragColor = vec4(0.5-cos(n*17.0)/2.0,0.5-cos(n*13.0)/2.0,0.5-cos(n*23.0)/2.0,1.0);' +\n '}';\n\nlet mandel;\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n\n // create and initialize the shader\n mandel = createShader(vs, fs);\n shader(mandel);\n noStroke();\n\n // 'p' is the center point of the Mandelbrot image\n mandel.setUniform('p', [-0.74364388703, 0.13182590421]);\n}\n\nfunction draw() {\n // 'r' is the size of the image in Mandelbrot-space\n mandel.setUniform('r', 1.5 * exp(-6.5 * (1 + sin(millis() / 2000))));\n quad(-1, -1, 1, -1, 1, 1, -1, 1);\n}\n\n
" + ], + alt: 'zooming Mandelbrot set. a colorful, infinitely detailed fractal.', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Material' + }, + { + file: 'src/webgl/material.js', + line: 181, + description: + '

The shader() function lets the user provide a custom shader\nto fill in shapes in WEBGL mode. Users can create their\nown shaders by loading vertex and fragment shaders with\nloadShader().

\n', + itemtype: 'method', + name: 'shader', + chainable: 1, + params: [ + { + name: 's', + description: + '

the desired p5.Shader to use for rendering\nshapes.

\n', + type: 'p5.Shader', + optional: true + } + ], + example: [ + "\n
\n\n// Click within the image to toggle\n// the shader used by the quad shape\n// Note: for an alternative approach to the same example,\n// involving changing uniforms please refer to:\n// https://p5js.org/reference/#/p5.Shader/setUniform\n\nlet redGreen;\nlet orangeBlue;\nlet showRedGreen = false;\n\nfunction preload() {\n // note that we are using two instances\n // of the same vertex and fragment shaders\n redGreen = loadShader('assets/shader.vert', 'assets/shader-gradient.frag');\n orangeBlue = loadShader('assets/shader.vert', 'assets/shader-gradient.frag');\n}\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n\n // initialize the colors for redGreen shader\n shader(redGreen);\n redGreen.setUniform('colorCenter', [1.0, 0.0, 0.0]);\n redGreen.setUniform('colorBackground', [0.0, 1.0, 0.0]);\n\n // initialize the colors for orangeBlue shader\n shader(orangeBlue);\n orangeBlue.setUniform('colorCenter', [1.0, 0.5, 0.0]);\n orangeBlue.setUniform('colorBackground', [0.226, 0.0, 0.615]);\n\n noStroke();\n}\n\nfunction draw() {\n // update the offset values for each shader,\n // moving orangeBlue in vertical and redGreen\n // in horizontal direction\n orangeBlue.setUniform('offset', [0, sin(millis() / 2000) + 1]);\n redGreen.setUniform('offset', [sin(millis() / 2000), 1]);\n\n if (showRedGreen === true) {\n shader(redGreen);\n } else {\n shader(orangeBlue);\n }\n quad(-1, -1, 1, -1, 1, 1, -1, 1);\n}\n\nfunction mouseClicked() {\n showRedGreen = !showRedGreen;\n}\n\n
" + ], + alt: + 'canvas toggles between a circular gradient of orange and blue vertically. and a circular gradient of red and green moving horizontally when mouse is clicked/pressed.', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Material' + }, + { + file: 'src/webgl/material.js', + line: 272, + description: + '

This function restores the default shaders in WEBGL mode. Code that runs\nafter resetShader() will not be affected by previously defined\nshaders. Should be run after shader().

\n', + itemtype: 'method', + name: 'resetShader', + chainable: 1, + class: 'p5', + module: 'Lights, Camera', + submodule: 'Material' + }, + { + file: 'src/webgl/material.js', + line: 285, + description: + '

Normal material for geometry. You can view all\npossible materials in this\nexample.

\n', + itemtype: 'method', + name: 'normalMaterial', + chainable: 1, + example: [ + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(200);\n normalMaterial();\n sphere(40);\n}\n\n
' + ], + alt: 'Red, green and blue gradient.', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Material' + }, + { + file: 'src/webgl/material.js', + line: 322, + description: + '

Texture for geometry. You can view other possible materials in this\nexample.

\n', + itemtype: 'method', + name: 'texture', + params: [ + { + name: 'tex', + description: + '

2-dimensional graphics\n to render as texture

\n', + type: 'p5.Image|p5.MediaElement|p5.Graphics' + } + ], + chainable: 1, + example: [ + "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/laDefense.jpg');\n}\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(0);\n rotateZ(frameCount * 0.01);\n rotateX(frameCount * 0.01);\n rotateY(frameCount * 0.01);\n //pass image as texture\n texture(img);\n box(200, 200, 200);\n}\n\n
\n\n
\n\nlet pg;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n pg = createGraphics(200, 200);\n pg.textSize(75);\n}\n\nfunction draw() {\n background(0);\n pg.background(255);\n pg.text('hello!', 0, 100);\n //pass image as texture\n texture(pg);\n rotateX(0.5);\n noStroke();\n plane(50);\n}\n\n
\n\n
\n\nlet vid;\nfunction preload() {\n vid = createVideo('assets/fingers.mov');\n vid.hide();\n}\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(0);\n //pass video frame as texture\n texture(vid);\n rect(-40, -40, 80, 80);\n}\n\nfunction mousePressed() {\n vid.loop();\n}\n\n
" + ], + alt: + 'Rotating view of many images umbrella and grid roof on a 3d plane\nblack canvas\nblack canvas', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Material' + }, + { + file: 'src/webgl/material.js', + line: 419, + description: + '

Sets the coordinate space for texture mapping. The default mode is IMAGE\nwhich refers to the actual coordinates of the image.\nNORMAL refers to a normalized space of values ranging from 0 to 1.\nThis function only works in WEBGL mode.

\n

With IMAGE, if an image is 100 x 200 pixels, mapping the image onto the entire\nsize of a quad would require the points (0,0) (100, 0) (100,200) (0,200).\nThe same mapping in NORMAL is (0,0) (1,0) (1,1) (0,1).

\n', + itemtype: 'method', + name: 'textureMode', + params: [ + { + name: 'mode', + description: '

either IMAGE or NORMAL

\n', + type: 'Constant' + } + ], + example: [ + "\n
\n\nlet img;\n\nfunction preload() {\n img = loadImage('assets/laDefense.jpg');\n}\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n texture(img);\n textureMode(NORMAL);\n beginShape();\n vertex(-50, -50, 0, 0);\n vertex(50, -50, 1, 0);\n vertex(50, 50, 1, 1);\n vertex(-50, 50, 0, 1);\n endShape();\n}\n\n
" + ], + alt: 'the underside of a white umbrella and gridded ceiling above', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Material' + }, + { + file: 'src/webgl/material.js', + line: 498, + description: + '

Sets the global texture wrapping mode. This controls how textures behave\nwhen their uv's go outside of the 0 - 1 range. There are three options:\nCLAMP, REPEAT, and MIRROR.

\n

CLAMP causes the pixels at the edge of the texture to extend to the bounds\nREPEAT causes the texture to tile repeatedly until reaching the bounds\nMIRROR works similarly to REPEAT but it flips the texture with every new tile

\n

REPEAT & MIRROR are only available if the texture\nis a power of two size (128, 256, 512, 1024, etc.).

\n

This method will affect all textures in your sketch until a subsequent\ntextureWrap call is made.

\n

If only one argument is provided, it will be applied to both the\nhorizontal and vertical axes.

\n', + itemtype: 'method', + name: 'textureWrap', + params: [ + { + name: 'wrapX', + description: '

either CLAMP, REPEAT, or MIRROR

\n', + type: 'Constant' + }, + { + name: 'wrapY', + description: '

either CLAMP, REPEAT, or MIRROR

\n', + type: 'Constant', + optional: true + } + ], + example: [ + "\n
\n\nlet img;\nfunction preload() {\n img = loadImage('assets/rockies128.jpg');\n}\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n textureWrap(MIRROR);\n}\n\nfunction draw() {\n background(0);\n\n let dX = mouseX;\n let dY = mouseY;\n\n let u = lerp(1.0, 2.0, dX);\n let v = lerp(1.0, 2.0, dY);\n\n scale(width / 2);\n\n texture(img);\n\n beginShape(TRIANGLES);\n vertex(-1, -1, 0, 0, 0);\n vertex(1, -1, 0, u, 0);\n vertex(1, 1, 0, u, v);\n\n vertex(1, 1, 0, u, v);\n vertex(-1, 1, 0, 0, v);\n vertex(-1, -1, 0, 0, 0);\n endShape();\n}\n\n
" + ], + alt: 'an image of the rocky mountains repeated in mirrored tiles', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Material' + }, + { + file: 'src/webgl/material.js', + line: 573, + description: + '

Ambient material for geometry with a given color. You can view all\npossible materials in this\nexample.

\n', + itemtype: 'method', + name: 'ambientMaterial', + chainable: 1, + example: [ + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(0);\n noStroke();\n ambientLight(200);\n ambientMaterial(70, 130, 230);\n sphere(40);\n}\n\n
' + ], + alt: 'radiating light source from top right of canvas', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Material', + overloads: [ + { + line: 573, + params: [ + { + name: 'v1', + description: + '

gray value, red or hue value\n (depending on the current color mode),

\n', + type: 'Number' + }, + { + name: 'v2', + description: '

green or saturation value

\n', + type: 'Number', + optional: true + }, + { + name: 'v3', + description: '

blue or brightness value

\n', + type: 'Number', + optional: true + }, + { + name: 'a', + description: '

opacity

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 604, + params: [ + { + name: 'color', + description: '

color, color Array, or CSS color string

\n', + type: 'Number[]|String|p5.Color' + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/webgl/material.js', + line: 623, + description: + '

Specular material for geometry with a given color. You can view all\npossible materials in this\nexample.

\n', + itemtype: 'method', + name: 'specularMaterial', + chainable: 1, + example: [ + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(0);\n noStroke();\n ambientLight(50);\n pointLight(250, 250, 250, 100, 100, 30);\n specularMaterial(250);\n sphere(40);\n}\n\n
' + ], + alt: 'diffused radiating light source from top right of canvas', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Material', + overloads: [ + { + line: 623, + params: [ + { + name: 'v1', + description: + '

gray value, red or hue value\n (depending on the current color mode),

\n', + type: 'Number' + }, + { + name: 'v2', + description: '

green or saturation value

\n', + type: 'Number', + optional: true + }, + { + name: 'v3', + description: '

blue or brightness value

\n', + type: 'Number', + optional: true + }, + { + name: 'a', + description: '

opacity

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + }, + { + line: 655, + params: [ + { + name: 'color', + description: '

color Array, or CSS color string

\n', + type: 'Number[]|String|p5.Color' + } + ], + chainable: 1 + } + ] + }, + { + file: 'src/webgl/material.js', + line: 674, + description: + '

Sets the amount of gloss in the surface of shapes.\nUsed in combination with specularMaterial() in setting\nthe material properties of shapes. The default and minimum value is 1.

\n', + itemtype: 'method', + name: 'shininess', + params: [ + { + name: 'shine', + description: + '

Degree of Shininess.\n Defaults to 1.

\n', + type: 'Number' + } + ], + chainable: 1, + example: [ + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(0);\n noStroke();\n let locX = mouseX - width / 2;\n let locY = mouseY - height / 2;\n ambientLight(60, 60, 60);\n pointLight(255, 255, 255, locX, locY, 50);\n specularMaterial(250);\n translate(-25, 0, 0);\n shininess(1);\n sphere(20);\n translate(50, 0, 0);\n shininess(20);\n sphere(20);\n}\n\n
' + ], + alt: 'Shininess on Camera changes position with mouse', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Material' + }, + { + file: 'src/webgl/p5.Camera.js', + line: 15, + description: + '

Sets the camera position for a 3D sketch. Parameters for this function define\nthe position for the camera, the center of the sketch (where the camera is\npointing), and an up direction (the orientation of the camera).

\n

When called with no arguments, this function creates a default camera\nequivalent to\ncamera(0, 0, (height/2.0) / tan(PI*30.0 / 180.0), 0, 0, 0, 0, 1, 0);

\n', + itemtype: 'method', + name: 'camera', + params: [ + { + name: 'x', + description: '

camera position value on x axis

\n', + type: 'Number', + optional: true + }, + { + name: 'y', + description: '

camera position value on y axis

\n', + type: 'Number', + optional: true + }, + { + name: 'z', + description: '

camera position value on z axis

\n', + type: 'Number', + optional: true + }, + { + name: 'centerX', + description: '

x coordinate representing center of the sketch

\n', + type: 'Number', + optional: true + }, + { + name: 'centerY', + description: '

y coordinate representing center of the sketch

\n', + type: 'Number', + optional: true + }, + { + name: 'centerZ', + description: '

z coordinate representing center of the sketch

\n', + type: 'Number', + optional: true + }, + { + name: 'upX', + description: + '

x component of direction 'up' from camera

\n', + type: 'Number', + optional: true + }, + { + name: 'upY', + description: + '

y component of direction 'up' from camera

\n', + type: 'Number', + optional: true + }, + { + name: 'upZ', + description: + '

z component of direction 'up' from camera

\n', + type: 'Number', + optional: true + } + ], + chainable: 1, + example: [ + '\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\nfunction draw() {\n background(204);\n //move the camera away from the plane by a sin wave\n camera(0, 0, 20 + sin(frameCount * 0.01) * 10, 0, 0, 0, 0, 1, 0);\n plane(10, 10);\n}\n\n
' + ], + alt: 'White square repeatedly grows to fill canvas and then shrinks.', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Camera' + }, + { + file: 'src/webgl/p5.Camera.js', + line: 61, + description: + '

Sets a perspective projection for the camera in a 3D sketch. This projection\nrepresents depth through foreshortening: objects that are close to the camera\nappear their actual size while those that are further away from the camera\nappear smaller. The parameters to this function define the viewing frustum\n(the truncated pyramid within which objects are seen by the camera) through\nvertical field of view, aspect ratio (usually width/height), and near and far\nclipping planes.

\n

When called with no arguments, the defaults\nprovided are equivalent to\nperspective(PI/3.0, width/height, eyeZ/10.0, eyeZ10.0), where eyeZ\nis equal to ((height/2.0) / tan(PI60.0/360.0));

\n', + itemtype: 'method', + name: 'perspective', + params: [ + { + name: 'fovy', + description: + '

camera frustum vertical field of view,\n from bottom to top of view, in angleMode units

\n', + type: 'Number', + optional: true + }, + { + name: 'aspect', + description: '

camera frustum aspect ratio

\n', + type: 'Number', + optional: true + }, + { + name: 'near', + description: '

frustum near plane length

\n', + type: 'Number', + optional: true + }, + { + name: 'far', + description: '

frustum far plane length

\n', + type: 'Number', + optional: true + } + ], + chainable: 1, + example: [ + "\n
\n\n//drag the mouse to look around!\n//you will see there's a vanishing point\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n perspective(PI / 3.0, width / height, 0.1, 500);\n}\nfunction draw() {\n background(200);\n orbitControl();\n normalMaterial();\n\n rotateX(-0.3);\n rotateY(-0.2);\n translate(0, 0, -50);\n\n push();\n translate(-15, 0, sin(frameCount / 30) * 95);\n box(30);\n pop();\n push();\n translate(15, 0, sin(frameCount / 30 + PI) * 95);\n box(30);\n pop();\n}\n\n
" + ], + alt: + 'two colored 3D boxes move back and forth, rotating as mouse is dragged.', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Camera' + }, + { + file: 'src/webgl/p5.Camera.js', + line: 126, + description: + '

Sets an orthographic projection for the camera in a 3D sketch and defines a\nbox-shaped viewing frustum within which objects are seen. In this projection,\nall objects with the same dimension appear the same size, regardless of\nwhether they are near or far from the camera. The parameters to this\nfunction specify the viewing frustum where left and right are the minimum and\nmaximum x values, top and bottom are the minimum and maximum y values, and near\nand far are the minimum and maximum z values. If no parameters are given, the\ndefault is used: ortho(-width/2, width/2, -height/2, height/2).

\n', + itemtype: 'method', + name: 'ortho', + params: [ + { + name: 'left', + description: '

camera frustum left plane

\n', + type: 'Number', + optional: true + }, + { + name: 'right', + description: '

camera frustum right plane

\n', + type: 'Number', + optional: true + }, + { + name: 'bottom', + description: '

camera frustum bottom plane

\n', + type: 'Number', + optional: true + }, + { + name: 'top', + description: '

camera frustum top plane

\n', + type: 'Number', + optional: true + }, + { + name: 'near', + description: '

camera frustum near plane

\n', + type: 'Number', + optional: true + }, + { + name: 'far', + description: '

camera frustum far plane

\n', + type: 'Number', + optional: true + } + ], + chainable: 1, + example: [ + "\n
\n\n//drag the mouse to look around!\n//there's no vanishing point\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n ortho(-width / 2, width / 2, height / 2, -height / 2, 0, 500);\n}\nfunction draw() {\n background(200);\n orbitControl();\n normalMaterial();\n\n rotateX(0.2);\n rotateY(-0.2);\n push();\n translate(-15, 0, sin(frameCount / 30) * 65);\n box(30);\n pop();\n push();\n translate(15, 0, sin(frameCount / 30 + PI) * 65);\n box(30);\n pop();\n}\n\n
" + ], + alt: + 'two 3D boxes move back and forth along same plane, rotating as mouse is dragged.', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Camera' + }, + { + file: 'src/webgl/p5.Camera.js', + line: 187, + description: + '

Creates a new p5.Camera object and tells the\nrenderer to use that camera.\nReturns the p5.Camera object.

\n', + itemtype: 'method', + name: 'createCamera', + return: { + description: 'The newly created camera object.', + type: 'p5.Camera' + }, + class: 'p5', + module: 'Lights, Camera', + submodule: 'Camera' + }, + { + file: 'src/webgl/p5.Camera.js', + line: 298, + description: + '

Sets a perspective projection for a p5.Camera object and sets parameters\nfor that projection according to perspective()\nsyntax.

\n', + itemtype: 'method', + name: 'perspective', + class: 'p5.Camera', + module: 'Lights, Camera', + submodule: 'Camera' + }, + { + file: 'src/webgl/p5.Camera.js', + line: 379, + description: + '

Sets an orthographic projection for a p5.Camera object and sets parameters\nfor that projection according to ortho() syntax.

\n', + itemtype: 'method', + name: 'ortho', + class: 'p5.Camera', + module: 'Lights, Camera', + submodule: 'Camera' + }, + { + file: 'src/webgl/p5.Camera.js', + line: 486, + description: + '

Panning rotates the camera view to the left and right.

\n', + itemtype: 'method', + name: 'pan', + params: [ + { + name: 'angle', + description: + '

amount to rotate camera in current\nangleMode units.\nGreater than 0 values rotate counterclockwise (to the left).

\n', + type: 'Number' + } + ], + example: [ + "\n
\n\nlet cam;\nlet delta = 0.01;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n normalMaterial();\n cam = createCamera();\n // set initial pan angle\n cam.pan(-0.8);\n}\n\nfunction draw() {\n background(200);\n\n // pan camera according to angle 'delta'\n cam.pan(delta);\n\n // every 160 frames, switch direction\n if (frameCount % 160 === 0) {\n delta *= -1;\n }\n\n rotateX(frameCount * 0.01);\n translate(-100, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n}\n\n
" + ], + alt: + 'camera view pans left and right across a series of rotating 3D boxes.', + class: 'p5.Camera', + module: 'Lights, Camera', + submodule: 'Camera' + }, + { + file: 'src/webgl/p5.Camera.js', + line: 545, + description: '

Tilting rotates the camera view up and down.

\n', + itemtype: 'method', + name: 'tilt', + params: [ + { + name: 'angle', + description: + '

amount to rotate camera in current\nangleMode units.\nGreater than 0 values rotate counterclockwise (to the left).

\n', + type: 'Number' + } + ], + example: [ + "\n
\n\nlet cam;\nlet delta = 0.01;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n normalMaterial();\n cam = createCamera();\n // set initial tilt\n cam.tilt(-0.8);\n}\n\nfunction draw() {\n background(200);\n\n // pan camera according to angle 'delta'\n cam.tilt(delta);\n\n // every 160 frames, switch direction\n if (frameCount % 160 === 0) {\n delta *= -1;\n }\n\n rotateY(frameCount * 0.01);\n translate(0, -100, 0);\n box(20);\n translate(0, 35, 0);\n box(20);\n translate(0, 35, 0);\n box(20);\n translate(0, 35, 0);\n box(20);\n translate(0, 35, 0);\n box(20);\n translate(0, 35, 0);\n box(20);\n translate(0, 35, 0);\n box(20);\n}\n\n
" + ], + alt: 'camera view tilts up and down across a series of rotating 3D boxes.', + class: 'p5.Camera', + module: 'Lights, Camera', + submodule: 'Camera' + }, + { + file: 'src/webgl/p5.Camera.js', + line: 603, + description: + '

Reorients the camera to look at a position in world space.

\n', + itemtype: 'method', + name: 'lookAt', + params: [ + { + name: 'x', + description: '

x position of a point in world space

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y position of a point in world space

\n', + type: 'Number' + }, + { + name: 'z', + description: '

z position of a point in world space

\n', + type: 'Number' + } + ], + example: [ + '\n
\n\nlet cam;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n normalMaterial();\n cam = createCamera();\n}\n\nfunction draw() {\n background(200);\n\n // look at a new random point every 60 frames\n if (frameCount % 60 === 0) {\n cam.lookAt(random(-100, 100), random(-50, 50), 0);\n }\n\n rotateX(frameCount * 0.01);\n translate(-100, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n}\n\n
' + ], + alt: + 'camera view of rotating 3D cubes changes to look at a new random\npoint every second .', + class: 'p5.Camera', + module: 'Lights, Camera', + submodule: 'Camera' + }, + { + file: 'src/webgl/p5.Camera.js', + line: 670, + description: + '

Sets a camera's position and orientation. This is equivalent to calling\ncamera() on a p5.Camera object.

\n', + itemtype: 'method', + name: 'camera', + class: 'p5.Camera', + module: 'Lights, Camera', + submodule: 'Camera' + }, + { + file: 'src/webgl/p5.Camera.js', + line: 751, + description: + '

Move camera along its local axes while maintaining current camera orientation.

\n', + itemtype: 'method', + name: 'move', + params: [ + { + name: 'x', + description: + '

amount to move along camera's left-right axis

\n', + type: 'Number' + }, + { + name: 'y', + description: '

amount to move along camera's up-down axis

\n', + type: 'Number' + }, + { + name: 'z', + description: + '

amount to move along camera's forward-backward axis

\n', + type: 'Number' + } + ], + example: [ + '\n
\n\n// see the camera move along its own axes while maintaining its orientation\nlet cam;\nlet delta = 0.5;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n normalMaterial();\n cam = createCamera();\n}\n\nfunction draw() {\n background(200);\n\n // move the camera along its local axes\n cam.move(delta, delta, 0);\n\n // every 100 frames, switch direction\n if (frameCount % 150 === 0) {\n delta *= -1;\n }\n\n translate(-10, -10, 0);\n box(50, 8, 50);\n translate(15, 15, 0);\n box(50, 8, 50);\n translate(15, 15, 0);\n box(50, 8, 50);\n translate(15, 15, 0);\n box(50, 8, 50);\n translate(15, 15, 0);\n box(50, 8, 50);\n translate(15, 15, 0);\n box(50, 8, 50);\n}\n\n
' + ], + alt: + 'camera view moves along a series of 3D boxes, maintaining the same\norientation throughout the move', + class: 'p5.Camera', + module: 'Lights, Camera', + submodule: 'Camera' + }, + { + file: 'src/webgl/p5.Camera.js', + line: 823, + description: + '

Set camera position in world-space while maintaining current camera\norientation.

\n', + itemtype: 'method', + name: 'setPosition', + params: [ + { + name: 'x', + description: '

x position of a point in world space

\n', + type: 'Number' + }, + { + name: 'y', + description: '

y position of a point in world space

\n', + type: 'Number' + }, + { + name: 'z', + description: '

z position of a point in world space

\n', + type: 'Number' + } + ], + example: [ + "\n
\n\n// press '1' '2' or '3' keys to set camera position\n\nlet cam;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n normalMaterial();\n cam = createCamera();\n}\n\nfunction draw() {\n background(200);\n\n // '1' key\n if (keyIsDown(49)) {\n cam.setPosition(30, 0, 80);\n }\n // '2' key\n if (keyIsDown(50)) {\n cam.setPosition(0, 0, 80);\n }\n // '3' key\n if (keyIsDown(51)) {\n cam.setPosition(-30, 0, 80);\n }\n\n box(20);\n}\n\n
" + ], + alt: + 'camera position changes as the user presses keys, altering view of a 3D box', + class: 'p5.Camera', + module: 'Lights, Camera', + submodule: 'Camera' + }, + { + file: 'src/webgl/p5.Camera.js', + line: 1088, + description: + '

Sets rendererGL's current camera to a p5.Camera object. Allows switching\nbetween multiple cameras.

\n', + itemtype: 'method', + name: 'setCamera', + params: [ + { + name: 'cam', + description: '

p5.Camera object

\n', + type: 'p5.Camera' + } + ], + example: [ + '\n
\n\nlet cam1, cam2;\nlet currentCamera;\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n normalMaterial();\n\n cam1 = createCamera();\n cam2 = createCamera();\n cam2.setPosition(30, 0, 50);\n cam2.lookAt(0, 0, 0);\n cam2.ortho();\n\n // set variable for previously active camera:\n currentCamera = 1;\n}\n\nfunction draw() {\n background(200);\n\n // camera 1:\n cam1.lookAt(0, 0, 0);\n cam1.setPosition(sin(frameCount / 60) * 200, 0, 100);\n\n // every 100 frames, switch between the two cameras\n if (frameCount % 100 === 0) {\n if (currentCamera === 1) {\n setCamera(cam1);\n currentCamera = 0;\n } else {\n setCamera(cam2);\n currentCamera = 1;\n }\n }\n\n drawBoxes();\n}\n\nfunction drawBoxes() {\n rotateX(frameCount * 0.01);\n translate(-100, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n translate(35, 0, 0);\n box(20);\n}\n\n
' + ], + alt: + 'Canvas switches between two camera views, each showing a series of spinning\n3D boxes.', + class: 'p5', + module: 'Lights, Camera', + submodule: 'Camera' + }, + { + file: 'src/webgl/p5.Geometry.js', + line: 66, + itemtype: 'method', + name: 'computeFaces', + chainable: 1, + class: 'p5.Geometry', + module: 'Lights, Camera' + }, + { + file: 'src/webgl/p5.Geometry.js', + line: 108, + description: + '

computes smooth normals per vertex as an average of each\nface.

\n', + itemtype: 'method', + name: 'computeNormals', + chainable: 1, + class: 'p5.Geometry', + module: 'Lights, Camera' + }, + { + file: 'src/webgl/p5.Geometry.js', + line: 147, + description: + '

Averages the vertex normals. Used in curved\nsurfaces

\n', + itemtype: 'method', + name: 'averageNormals', + chainable: 1, + class: 'p5.Geometry', + module: 'Lights, Camera' + }, + { + file: 'src/webgl/p5.Geometry.js', + line: 168, + description: + '

Averages pole normals. Used in spherical primitives

\n', + itemtype: 'method', + name: 'averagePoleNormals', + chainable: 1, + class: 'p5.Geometry', + module: 'Lights, Camera' + }, + { + file: 'src/webgl/p5.Geometry.js', + line: 261, + description: + '

Modifies all vertices to be centered within the range -100 to 100.

\n', + itemtype: 'method', + name: 'normalize', + chainable: 1, + class: 'p5.Geometry', + module: 'Lights, Camera' + }, + { + file: 'src/webgl/p5.RendererGL.js', + line: 263, + description: + '

Set attributes for the WebGL Drawing context.\nThis is a way of adjusting how the WebGL\nrenderer works to fine-tune the display and performance.\n

\nNote that this will reinitialize the drawing context\nif called after the WebGL canvas is made.\n

\nIf an object is passed as the parameter, all attributes\nnot declared in the object will be set to defaults.\n

\nThe available attributes are:\n
\nalpha - indicates if the canvas contains an alpha buffer\ndefault is true\n

\ndepth - indicates whether the drawing buffer has a depth buffer\nof at least 16 bits - default is true\n

\nstencil - indicates whether the drawing buffer has a stencil buffer\nof at least 8 bits\n

\nantialias - indicates whether or not to perform anti-aliasing\ndefault is false\n

\npremultipliedAlpha - indicates that the page compositor will assume\nthe drawing buffer contains colors with pre-multiplied alpha\ndefault is false\n

\npreserveDrawingBuffer - if true the buffers will not be cleared and\nand will preserve their values until cleared or overwritten by author\n(note that p5 clears automatically on draw loop)\ndefault is true\n

\nperPixelLighting - if true, per-pixel lighting will be used in the\nlighting shader.\ndefault is false\n

\n', + itemtype: 'method', + name: 'setAttributes', + example: [ + "\n
\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(255);\n push();\n rotateZ(frameCount * 0.02);\n rotateX(frameCount * 0.02);\n rotateY(frameCount * 0.02);\n fill(0, 0, 0);\n box(50);\n pop();\n}\n\n
\n
\nNow with the antialias attribute set to true.\n
\n
\n\nfunction setup() {\n setAttributes('antialias', true);\n createCanvas(100, 100, WEBGL);\n}\n\nfunction draw() {\n background(255);\n push();\n rotateZ(frameCount * 0.02);\n rotateX(frameCount * 0.02);\n rotateY(frameCount * 0.02);\n fill(0, 0, 0);\n box(50);\n pop();\n}\n\n
\n\n
\n\n// press the mouse button to enable perPixelLighting\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n noStroke();\n fill(255);\n}\n\nvar lights = [\n { c: '#f00', t: 1.12, p: 1.91, r: 0.2 },\n { c: '#0f0', t: 1.21, p: 1.31, r: 0.2 },\n { c: '#00f', t: 1.37, p: 1.57, r: 0.2 },\n { c: '#ff0', t: 1.12, p: 1.91, r: 0.7 },\n { c: '#0ff', t: 1.21, p: 1.31, r: 0.7 },\n { c: '#f0f', t: 1.37, p: 1.57, r: 0.7 }\n];\n\nfunction draw() {\n var t = millis() / 1000 + 1000;\n background(0);\n directionalLight(color('#222'), 1, 1, 1);\n\n for (var i = 0; i < lights.length; i++) {\n var light = lights[i];\n pointLight(\n color(light.c),\n p5.Vector.fromAngles(t * light.t, t * light.p, width * light.r)\n );\n }\n\n specularMaterial(255);\n sphere(width * 0.1);\n\n rotateX(t * 0.77);\n rotateY(t * 0.83);\n rotateZ(t * 0.91);\n torus(width * 0.3, width * 0.07, 24, 10);\n}\n\nfunction mousePressed() {\n setAttributes('perPixelLighting', true);\n noStroke();\n fill(255);\n}\nfunction mouseReleased() {\n setAttributes('perPixelLighting', false);\n noStroke();\n fill(255);\n}\n\n
" + ], + alt: 'a rotating cube with smoother edges', + class: 'p5', + module: 'Rendering', + submodule: 'Rendering', + overloads: [ + { + line: 263, + params: [ + { + name: 'key', + description: '

Name of attribute

\n', + type: 'String' + }, + { + name: 'value', + description: '

New value of named attribute

\n', + type: 'Boolean' + } + ] + }, + { + line: 402, + params: [ + { + name: 'obj', + description: '

object with key-value pairs

\n', + type: 'Object' + } + ] + } + ] + }, + { + file: 'src/webgl/p5.Shader.js', + line: 269, + description: + '

Wrapper around gl.uniform functions.\nAs we store uniform info in the shader we can use that\nto do type checking on the supplied data and call\nthe appropriate function.

\n', + itemtype: 'method', + name: 'setUniform', + chainable: 1, + params: [ + { + name: 'uniformName', + description: '

the name of the uniform in the\nshader program

\n', + type: 'String' + }, + { + name: 'data', + description: + '

the data to be associated\nwith that uniform; type varies (could be a single numerical value, array,\nmatrix, or texture / sampler reference)

\n', + type: 'Object|Number|Boolean|Number[]' + } + ], + example: [ + "\n
\n\n// Click within the image to toggle the value of uniforms\n// Note: for an alternative approach to the same example,\n// involving toggling between shaders please refer to:\n// https://p5js.org/reference/#/p5/shader\n\nlet grad;\nlet showRedGreen = false;\n\nfunction preload() {\n // note that we are using two instances\n // of the same vertex and fragment shaders\n grad = loadShader('assets/shader.vert', 'assets/shader-gradient.frag');\n}\n\nfunction setup() {\n createCanvas(100, 100, WEBGL);\n shader(grad);\n noStroke();\n}\n\nfunction draw() {\n // update the offset values for each scenario,\n // moving the \"grad\" shader in either vertical or\n // horizontal direction each with differing colors\n\n if (showRedGreen === true) {\n grad.setUniform('colorCenter', [1, 0, 0]);\n grad.setUniform('colorBackground', [0, 1, 0]);\n grad.setUniform('offset', [sin(millis() / 2000), 1]);\n } else {\n grad.setUniform('colorCenter', [1, 0.5, 0]);\n grad.setUniform('colorBackground', [0.226, 0, 0.615]);\n grad.setUniform('offset', [0, sin(millis() / 2000) + 1]);\n }\n quad(-1, -1, 1, -1, 1, 1, -1, 1);\n}\n\nfunction mouseClicked() {\n showRedGreen = !showRedGreen;\n}\n\n
" + ], + alt: + 'canvas toggles between a circular gradient of orange and blue vertically. and a circular gradient of red and green moving horizontally when mouse is clicked/pressed.', + class: 'p5.Shader', + module: 'Lights, Camera', + submodule: 'Shaders' + }, + { + file: 'lib/addons/p5.dom.js', + line: 40, + description: + '

Searches the page for an element with the given ID, class, or tag name (using the '#' or '.'\nprefixes to specify an ID or class respectively, and none for a tag) and returns it as\na p5.Element. If a class or tag name is given with more than 1 element,\nonly the first element will be returned.\nThe DOM node itself can be accessed with .elt.\nReturns null if none found. You can also specify a container to search within.

\n', + itemtype: 'method', + name: 'select', + params: [ + { + name: 'name', + description: '

id, class, or tag name of element to search for

\n', + type: 'String' + }, + { + name: 'container', + description: + '

id, p5.Element, or\n HTML element to search within

\n', + type: 'String|p5.Element|HTMLElement', + optional: true + } + ], + return: { + description: + 'p5.Element containing node found', + type: 'p5.Element|null' + }, + example: [ + "\n
\nfunction setup() {\n createCanvas(100, 100);\n //translates canvas 50px down\n select('canvas').position(100, 100);\n}\n
\n
\n// these are all valid calls to select()\nvar a = select('#moo');\nvar b = select('#blah', '#myContainer');\nvar c, e;\nif (b) {\n c = select('#foo', b);\n}\nvar d = document.getElementById('beep');\nif (d) {\n e = select('p', d);\n}\n[a, b, c, d, e]; // unused\n
\n" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 107, + description: + '

Searches the page for elements with the given class or tag name (using the '.' prefix\nto specify a class and no prefix for a tag) and returns them as p5.Elements\nin an array.\nThe DOM node itself can be accessed with .elt.\nReturns an empty array if none found.\nYou can also specify a container to search within.

\n', + itemtype: 'method', + name: 'selectAll', + params: [ + { + name: 'name', + description: '

class or tag name of elements to search for

\n', + type: 'String' + }, + { + name: 'container', + description: + '

id, p5.Element, or HTML element to search within

\n', + type: 'String', + optional: true + } + ], + return: { + description: + 'Array of p5.Elements containing nodes found', + type: 'p5.Element[]' + }, + example: [ + "\n
\nfunction setup() {\n createButton('btn');\n createButton('2nd btn');\n createButton('3rd btn');\n var buttons = selectAll('button');\n\n for (var i = 0; i < buttons.length; i++) {\n buttons[i].size(100, 100);\n }\n}\n
\n
\n// these are all valid calls to selectAll()\nvar a = selectAll('.moo');\na = selectAll('div');\na = selectAll('button', '#myContainer');\n\nvar d = select('#container');\na = selectAll('p', d);\n\nvar f = document.getElementById('beep');\na = select('.blah', f);\n\na; // unused\n
\n" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 168, + description: '

Helper function for select and selectAll

\n', + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 184, + description: '

Helper function for getElement and getElements.

\n', + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 218, + description: + '

Removes all elements created by p5, except any canvas / graphics\nelements created by createCanvas or createGraphics.\nEvent handlers are removed, and element is removed from the DOM.

\n', + itemtype: 'method', + name: 'removeElements', + example: [ + "\n
\nfunction setup() {\n createCanvas(100, 100);\n createDiv('this is some text');\n createP('this is a paragraph');\n}\nfunction mousePressed() {\n removeElements(); // this will remove the div and p, not canvas\n}\n
\n" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 245, + description: + '

The .changed() function is called when the value of an\nelement changes.\nThis can be used to attach an element specific event listener.

\n', + itemtype: 'method', + name: 'changed', + params: [ + { + name: 'fxn', + description: + '

function to be fired when the value of\n an element changes.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', + type: 'Function|Boolean' + } + ], + chainable: 1, + example: [ + "\n
\nvar sel;\n\nfunction setup() {\n textAlign(CENTER);\n background(200);\n sel = createSelect();\n sel.position(10, 10);\n sel.option('pear');\n sel.option('kiwi');\n sel.option('grape');\n sel.changed(mySelectEvent);\n}\n\nfunction mySelectEvent() {\n var item = sel.value();\n background(200);\n text(\"it's a \" + item + '!', 50, 50);\n}\n
\n\n
\nvar checkbox;\nvar cnv;\n\nfunction setup() {\n checkbox = createCheckbox(' fill');\n checkbox.changed(changeFill);\n cnv = createCanvas(100, 100);\n cnv.position(0, 30);\n noFill();\n}\n\nfunction draw() {\n background(200);\n ellipse(50, 50, 50, 50);\n}\n\nfunction changeFill() {\n if (checkbox.checked()) {\n fill(0);\n } else {\n noFill();\n }\n}\n
" + ], + alt: + 'dropdown: pear, kiwi, grape. When selected text "its a" + selection shown.', + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 313, + description: + '

The .input() function is called when any user input is\ndetected with an element. The input event is often used\nto detect keystrokes in a input element, or changes on a\nslider element. This can be used to attach an element specific\nevent listener.

\n', + itemtype: 'method', + name: 'input', + params: [ + { + name: 'fxn', + description: + '

function to be fired when any user input is\n detected within the element.\n if false is passed instead, the previously\n firing function will no longer fire.

\n', + type: 'Function|Boolean' + } + ], + chainable: 1, + example: [ + "\n
\n// Open your console to see the output\nfunction setup() {\n var inp = createInput('');\n inp.input(myInputEvent);\n}\n\nfunction myInputEvent() {\n console.log('you are typing: ', this.value());\n}\n
" + ], + alt: 'no display.', + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 348, + description: '

Helpers for create methods.

\n', + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 361, + description: + '

Creates a <div></div> element in the DOM with given inner HTML.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', + itemtype: 'method', + name: 'createDiv', + params: [ + { + name: 'html', + description: '

inner HTML for element created

\n', + type: 'String', + optional: true + } + ], + return: { + description: + 'pointer to p5.Element holding created node', + type: 'p5.Element' + }, + example: [ + "\n
\ncreateDiv('this is some text');\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 375, + description: + '

Creates a <p></p> element in the DOM with given inner HTML. Used\nfor paragraph length text.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', + itemtype: 'method', + name: 'createP', + params: [ + { + name: 'html', + description: '

inner HTML for element created

\n', + type: 'String', + optional: true + } + ], + return: { + description: + 'pointer to p5.Element holding created node', + type: 'p5.Element' + }, + example: [ + "\n
\ncreateP('this is some text');\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 390, + description: + '

Creates a <span></span> element in the DOM with given inner HTML.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', + itemtype: 'method', + name: 'createSpan', + params: [ + { + name: 'html', + description: '

inner HTML for element created

\n', + type: 'String', + optional: true + } + ], + return: { + description: + 'pointer to p5.Element holding created node', + type: 'p5.Element' + }, + example: [ + "\n
\ncreateSpan('this is some text');\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 413, + description: + '

Creates an <img> element in the DOM with given src and\nalternate text.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', + itemtype: 'method', + name: 'createImg', + return: { + description: + 'pointer to p5.Element holding created node', + type: 'p5.Element' + }, + example: [ + "\n
\ncreateImg('http://p5js.org/img/asterisk-01.png');\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom', + overloads: [ + { + line: 413, + params: [ + { + name: 'src', + description: '

src path or url for image

\n', + type: 'String' + }, + { + name: 'alt', + description: + '

alternate text to be used if image does not load

\n', + type: 'String', + optional: true + }, + { + name: 'successCallback', + description: + '

callback to be called once image data is loaded

\n', + type: 'Function', + optional: true + } + ], + return: { + description: + 'pointer to p5.Element holding created node', + type: 'p5.Element' + } + }, + { + line: 429, + params: [ + { + name: 'src', + description: '', + type: 'String' + }, + { + name: 'successCallback', + description: '', + type: 'Function' + } + ], + return: { + description: '', + type: 'Object|p5.Element' + } + } + ] + }, + { + file: 'lib/addons/p5.dom.js', + line: 463, + description: + '

Creates an <a></a> element in the DOM for including a hyperlink.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', + itemtype: 'method', + name: 'createA', + params: [ + { + name: 'href', + description: '

url of page to link to

\n', + type: 'String' + }, + { + name: 'html', + description: '

inner html of link element to display

\n', + type: 'String' + }, + { + name: 'target', + description: + '

target where new link should open,\n could be _blank, _self, _parent, _top.

\n', + type: 'String', + optional: true + } + ], + return: { + description: + 'pointer to p5.Element holding created node', + type: 'p5.Element' + }, + example: [ + "\n
\ncreateA('http://p5js.org/', 'this is a link');\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 488, + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 490, + description: + '

Creates a slider <input></input> element in the DOM.\nUse .size() to set the display length of the slider.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', + itemtype: 'method', + name: 'createSlider', + params: [ + { + name: 'min', + description: '

minimum value of the slider

\n', + type: 'Number' + }, + { + name: 'max', + description: '

maximum value of the slider

\n', + type: 'Number' + }, + { + name: 'value', + description: '

default value of the slider

\n', + type: 'Number', + optional: true + }, + { + name: 'step', + description: + '

step size for each tick of the slider (if step is set to 0, the slider will move continuously from the minimum to the maximum value)

\n', + type: 'Number', + optional: true + } + ], + return: { + description: + 'pointer to p5.Element holding created node', + type: 'p5.Element' + }, + example: [ + "\n
\nvar slider;\nfunction setup() {\n slider = createSlider(0, 255, 100);\n slider.position(10, 10);\n slider.style('width', '80px');\n}\n\nfunction draw() {\n var val = slider.value();\n background(val);\n}\n
\n\n
\nvar slider;\nfunction setup() {\n colorMode(HSB);\n slider = createSlider(0, 360, 60, 40);\n slider.position(10, 10);\n slider.style('width', '80px');\n}\n\nfunction draw() {\n var val = slider.value();\n background(val, 100, 100, 1);\n}\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 547, + description: + '

Creates a <button></button> element in the DOM.\nUse .size() to set the display size of the button.\nUse .mousePressed() to specify behavior on press.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', + itemtype: 'method', + name: 'createButton', + params: [ + { + name: 'label', + description: '

label displayed on the button

\n', + type: 'String' + }, + { + name: 'value', + description: '

value of the button

\n', + type: 'String', + optional: true + } + ], + return: { + description: + 'pointer to p5.Element holding created node', + type: 'p5.Element' + }, + example: [ + "\n
\nvar button;\nfunction setup() {\n createCanvas(100, 100);\n background(0);\n button = createButton('click me');\n button.position(19, 19);\n button.mousePressed(changeBG);\n}\n\nfunction changeBG() {\n var val = random(255);\n background(val);\n}\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 583, + description: + '

Creates a checkbox <input></input> element in the DOM.\nCalling .checked() on a checkbox returns if it is checked or not

\n', + itemtype: 'method', + name: 'createCheckbox', + params: [ + { + name: 'label', + description: '

label displayed after checkbox

\n', + type: 'String', + optional: true + }, + { + name: 'value', + description: + '

value of the checkbox; checked is true, unchecked is false

\n', + type: 'Boolean', + optional: true + } + ], + return: { + description: + 'pointer to p5.Element holding created node', + type: 'p5.Element' + }, + example: [ + "\n
\nvar checkbox;\n\nfunction setup() {\n checkbox = createCheckbox('label', false);\n checkbox.changed(myCheckedEvent);\n}\n\nfunction myCheckedEvent() {\n if (this.checked()) {\n console.log('Checking!');\n } else {\n console.log('Unchecking!');\n }\n}\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 651, + description: + '

Creates a dropdown menu <select></select> element in the DOM.\nIt also helps to assign select-box methods to p5.Element when selecting existing select box

\n', + itemtype: 'method', + name: 'createSelect', + return: { + description: '', + type: 'p5.Element' + }, + example: [ + "\n
\nvar sel;\n\nfunction setup() {\n textAlign(CENTER);\n background(200);\n sel = createSelect();\n sel.position(10, 10);\n sel.option('pear');\n sel.option('kiwi');\n sel.option('grape');\n sel.changed(mySelectEvent);\n}\n\nfunction mySelectEvent() {\n var item = sel.value();\n background(200);\n text('It is a ' + item + '!', 50, 50);\n}\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom', + overloads: [ + { + line: 651, + params: [ + { + name: 'multiple', + description: + '

true if dropdown should support multiple selections

\n', + type: 'Boolean', + optional: true + } + ], + return: { + description: '', + type: 'p5.Element' + } + }, + { + line: 679, + params: [ + { + name: 'existing', + description: '

DOM select element

\n', + type: 'Object' + } + ], + return: { + description: '', + type: 'p5.Element' + } + } + ] + }, + { + file: 'lib/addons/p5.dom.js', + line: 755, + description: + '

Creates a radio button <input></input> element in the DOM.\nThe .option() method can be used to set options for the radio after it is\ncreated. The .value() method will return the currently selected option.

\n', + itemtype: 'method', + name: 'createRadio', + params: [ + { + name: 'divId', + description: + '

the id and name of the created div and input field respectively

\n', + type: 'String', + optional: true + } + ], + return: { + description: + 'pointer to p5.Element holding created node', + type: 'p5.Element' + }, + example: [ + "\n
\nvar radio;\n\nfunction setup() {\n radio = createRadio();\n radio.option('black');\n radio.option('white');\n radio.option('gray');\n radio.style('width', '60px');\n textAlign(CENTER);\n fill(255, 0, 0);\n}\n\nfunction draw() {\n var val = radio.value();\n background(val);\n text(val, width / 2, height / 2);\n}\n
\n
\nvar radio;\n\nfunction setup() {\n radio = createRadio();\n radio.option('apple', 1);\n radio.option('bread', 2);\n radio.option('juice', 3);\n radio.style('width', '60px');\n textAlign(CENTER);\n}\n\nfunction draw() {\n background(200);\n var val = radio.value();\n if (val) {\n text('item cost is $' + val, width / 2, height / 2);\n }\n}\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 893, + description: + '

Creates a colorPicker element in the DOM for color input.\nThe .value() method will return a hex string (#rrggbb) of the color.\nThe .color() method will return a p5.Color object with the current chosen color.

\n', + itemtype: 'method', + name: 'createColorPicker', + params: [ + { + name: 'value', + description: '

default color of element

\n', + type: 'String|p5.Color', + optional: true + } + ], + return: { + description: + 'pointer to p5.Element holding created node', + type: 'p5.Element' + }, + example: [ + "\n
\n\nvar inp1, inp2;\nfunction setup() {\n createCanvas(100, 100);\n background('grey');\n inp1 = createColorPicker('#ff0000');\n inp2 = createColorPicker(color('yellow'));\n inp1.input(setShade1);\n inp2.input(setShade2);\n setMidShade();\n}\n\nfunction setMidShade() {\n // Finding a shade between the two\n var commonShade = lerpColor(inp1.color(), inp2.color(), 0.5);\n fill(commonShade);\n rect(20, 20, 60, 60);\n}\n\nfunction setShade1() {\n setMidShade();\n console.log('You are choosing shade 1 to be : ', this.value());\n}\nfunction setShade2() {\n setMidShade();\n console.log('You are choosing shade 2 to be : ', this.value());\n}\n\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 967, + description: + '

Creates an <input></input> element in the DOM for text input.\nUse .size() to set the display length of the box.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', + itemtype: 'method', + name: 'createInput', + params: [ + { + name: 'value', + description: '

default value of the input box

\n', + type: 'String', + optional: true + }, + { + name: 'type', + description: + '

type of text, ie text, password etc. Defaults to text

\n', + type: 'String', + optional: true + } + ], + return: { + description: + 'pointer to p5.Element holding created node', + type: 'p5.Element' + }, + example: [ + "\n
\nfunction setup() {\n var inp = createInput('');\n inp.input(myInputEvent);\n}\n\nfunction myInputEvent() {\n console.log('you are typing: ', this.value());\n}\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 997, + description: + '

Creates an <input></input> element in the DOM of type 'file'.\nThis allows users to select local files for use in a sketch.

\n', + itemtype: 'method', + name: 'createFileInput', + params: [ + { + name: 'callback', + description: '

callback function for when a file loaded

\n', + type: 'Function', + optional: true + }, + { + name: 'multiple', + description: '

optional to allow multiple files selected

\n', + type: 'String', + optional: true + } + ], + return: { + description: + 'pointer to p5.Element holding created DOM element', + type: 'p5.Element' + }, + example: [ + "\n
\nlet input;\nlet img;\n\nfunction setup() {\n input = createFileInput(handleFile);\n input.position(0, 0);\n}\n\nfunction draw() {\n background(255);\n if (img) {\n image(img, 0, 0, width, height);\n }\n}\n\nfunction handleFile(file) {\n print(file);\n if (file.type === 'image') {\n img = createImg(file.data);\n img.hide();\n } else {\n img = null;\n }\n}\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 1070, + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 1112, + description: + '

Creates an HTML5 <video> element in the DOM for simple playback\nof audio/video. Shown by default, can be hidden with .hide()\nand drawn into canvas using video(). Appends to the container\nnode if one is specified, otherwise appends to body. The first parameter\ncan be either a single string path to a video file, or an array of string\npaths to different formats of the same video. This is useful for ensuring\nthat your video can play across different browsers, as each supports\ndifferent formats. See this\npage for further information about supported formats.

\n', + itemtype: 'method', + name: 'createVideo', + params: [ + { + name: 'src', + description: + '

path to a video file, or array of paths for\n supporting different browsers

\n', + type: 'String|String[]' + }, + { + name: 'callback', + description: + '

callback function to be called upon\n 'canplaythrough' event fire, that is, when the\n browser can play the media, and estimates that\n enough data has been loaded to play the media\n up to its end without having to stop for\n further buffering of content

\n', + type: 'Function', + optional: true + } + ], + return: { + description: 'pointer to video p5.Element', + type: 'p5.MediaElement' + }, + example: [ + "\n
\nvar vid;\nfunction setup() {\n noCanvas();\n\n vid = createVideo(\n ['assets/small.mp4', 'assets/small.ogv', 'assets/small.webm'],\n vidLoad\n );\n\n vid.size(100, 100);\n}\n\n// This function is called when the video loads\nfunction vidLoad() {\n vid.loop();\n vid.volume(0);\n}\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 1159, + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 1161, + description: + "

Creates a hidden HTML5 <audio> element in the DOM for simple audio\nplayback. Appends to the container node if one is specified,\notherwise appends to body. The first parameter\ncan be either a single string path to a audio file, or an array of string\npaths to different formats of the same audio. This is useful for ensuring\nthat your audio can play across different browsers, as each supports\ndifferent formats. See this\npage for further information about supported formats.

\n", + itemtype: 'method', + name: 'createAudio', + params: [ + { + name: 'src', + description: + '

path to an audio file, or array of paths\n for supporting different browsers

\n', + type: 'String|String[]', + optional: true + }, + { + name: 'callback', + description: + '

callback function to be called upon\n 'canplaythrough' event fire, that is, when the\n browser can play the media, and estimates that\n enough data has been loaded to play the media\n up to its end without having to stop for\n further buffering of content

\n', + type: 'Function', + optional: true + } + ], + return: { + description: 'pointer to audio p5.Element', + type: 'p5.MediaElement' + }, + example: [ + "\n
\nvar ele;\nfunction setup() {\n ele = createAudio('assets/beat.mp3');\n\n // here we set the element to autoplay\n // The element will play as soon\n // as it is able to do so.\n ele.autoplay(true);\n}\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 1199, + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 1201, + itemtype: 'property', + name: 'VIDEO', + type: 'String', + final: 1, + category: ['Constants'], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 1207, + itemtype: 'property', + name: 'AUDIO', + type: 'String', + final: 1, + category: ['Constants'], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 1244, + description: + '

Creates a new HTML5 <video> element that contains the audio/video\nfeed from a webcam. The element is separate from the canvas and is\ndisplayed by default. The element can be hidden using .hide(). The feed\ncan be drawn onto the canvas using image(). The loadedmetadata property can\nbe used to detect when the element has fully loaded (see second example).

\n

More specific properties of the feed can be passing in a Constraints object.\nSee the\n W3C\nspec for possible properties. Note that not all of these are supported\nby all browsers.

\n

Security note: A new browser security specification requires that getUserMedia,\nwhich is behind createCapture(), only works when you're running the code locally,\nor on HTTPS. Learn more here\nand here.

', + itemtype: 'method', + name: 'createCapture', + params: [ + { + name: 'type', + description: + '

type of capture, either VIDEO or\n AUDIO if none specified, default both,\n or a Constraints object

\n', + type: 'String|Constant|Object' + }, + { + name: 'callback', + description: + '

function to be called once\n stream has loaded

\n', + type: 'Function', + optional: true + } + ], + return: { + description: 'capture video p5.Element', + type: 'p5.Element' + }, + example: [ + "\n
\nvar capture;\n\nfunction setup() {\n createCanvas(480, 480);\n capture = createCapture(VIDEO);\n capture.hide();\n}\n\nfunction draw() {\n image(capture, 0, 0, width, width * capture.height / capture.width);\n filter(INVERT);\n}\n
\n
\nfunction setup() {\n createCanvas(480, 120);\n var constraints = {\n video: {\n mandatory: {\n minWidth: 1280,\n minHeight: 720\n },\n optional: [{ maxFrameRate: 10 }]\n },\n audio: true\n };\n createCapture(constraints, function(stream) {\n console.log(stream);\n });\n}\n
\n
\nvar capture;\n\nfunction setup() {\n createCanvas(640, 480);\n capture = createCapture(VIDEO);\n}\nfunction draw() {\n background(0);\n if (capture.loadedmetadata) {\n var c = capture.get(0, 0, 100, 100);\n image(c, 0, 0);\n }\n}\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 1381, + description: + '

Creates element with given tag in the DOM with given content.\nAppends to the container node if one is specified, otherwise\nappends to body.

\n', + itemtype: 'method', + name: 'createElement', + params: [ + { + name: 'tag', + description: '

tag for the new element

\n', + type: 'String' + }, + { + name: 'content', + description: '

html content to be inserted into the element

\n', + type: 'String', + optional: true + } + ], + return: { + description: + 'pointer to p5.Element holding created node', + type: 'p5.Element' + }, + example: [ + "\n
\ncreateElement('h2', 'im an h2 p5.element!');\n
" + ], + class: 'p5', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 1407, + description: '

Adds specified class to the element.

\n', + itemtype: 'method', + name: 'addClass', + params: [ + { + name: 'class', + description: '

name of class to add

\n', + type: 'String' + } + ], + chainable: 1, + example: [ + "\n
\n var div = createDiv('div');\n div.addClass('myClass');\n
" + ], + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 1432, + description: '

Removes specified class from the element.

\n', + itemtype: 'method', + name: 'removeClass', + params: [ + { + name: 'class', + description: '

name of class to remove

\n', + type: 'String' + } + ], + chainable: 1, + example: [ + "\n
\n // In this example, a class is set when the div is created\n // and removed when mouse is pressed. This could link up\n // with a CSS style rule to toggle style properties.\nvar div;\nfunction setup() {\n div = createDiv('div');\n div.addClass('myClass');\n }\nfunction mousePressed() {\n div.removeClass('myClass');\n }\n
" + ], + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 1463, + description: '

Checks if specified class already set to element

\n', + itemtype: 'method', + name: 'hasClass', + return: { + description: 'a boolean value if element has specified class', + type: 'Boolean' + }, + params: [ + { + name: 'c', + description: '

class name of class to check

\n', + type: 'String' + } + ], + example: [ + "\n
\n var div;\nfunction setup() {\n div = createDiv('div');\n div.addClass('show');\n }\nfunction mousePressed() {\n if (div.hasClass('show')) {\n div.addClass('show');\n } else {\n div.removeClass('show');\n }\n }\n
" + ], + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 1492, + description: '

Toggles element class

\n', + itemtype: 'method', + name: 'toggleClass', + params: [ + { + name: 'c', + description: '

class name to toggle

\n', + type: 'String' + } + ], + chainable: 1, + example: [ + "\n
\n var div;\nfunction setup() {\n div = createDiv('div');\n div.addClass('show');\n }\nfunction mousePressed() {\n div.toggleClass('show');\n }\n
" + ], + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 1525, + description: + '

Attaches the element as a child to the parent specified.\n Accepts either a string ID, DOM node, or p5.Element.\n If no argument is specified, an array of children DOM nodes is returned.

\n', + itemtype: 'method', + name: 'child', + return: { + description: 'an array of child nodes', + type: 'Node[]' + }, + example: [ + "\n
\n var div0 = createDiv('this is the parent');\n var div1 = createDiv('this is the child');\n div0.child(div1); // use p5.Element\n
\n
\n var div0 = createDiv('this is the parent');\n var div1 = createDiv('this is the child');\n div1.id('apples');\n div0.child('apples'); // use id\n
\n
\n // this example assumes there is a div already on the page\n // with id \"myChildDiv\"\n var div0 = createDiv('this is the parent');\n var elt = document.getElementById('myChildDiv');\n div0.child(elt); // use element from page\n
" + ], + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom', + overloads: [ + { + line: 1525, + params: [], + return: { + description: 'an array of child nodes', + type: 'Node[]' + } + }, + { + line: 1553, + params: [ + { + name: 'child', + description: + '

the ID, DOM node, or p5.Element\n to add to the current element

\n', + type: 'String|p5.Element', + optional: true + } + ], + chainable: 1 + } + ] + }, + { + file: 'lib/addons/p5.dom.js', + line: 1575, + description: + '

Centers a p5 Element either vertically, horizontally,\nor both, relative to its parent or according to\nthe body if the Element has no parent. If no argument is passed\nthe Element is aligned both vertically and horizontally.

\n', + itemtype: 'method', + name: 'center', + params: [ + { + name: 'align', + description: + '

passing 'vertical', 'horizontal' aligns element accordingly

\n', + type: 'String', + optional: true + } + ], + chainable: 1, + example: [ + "\n
\nfunction setup() {\n var div = createDiv('').size(10, 10);\n div.style('background-color', 'orange');\n div.center();\n}\n
" + ], + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 1629, + description: + '

If an argument is given, sets the inner HTML of the element,\n replacing any existing html. If true is included as a second\n argument, html is appended instead of replacing existing html.\n If no arguments are given, returns\n the inner HTML of the element.

\n', + itemtype: 'method', + name: 'html', + return: { + description: 'the inner HTML of the element', + type: 'String' + }, + example: [ + "\n
\n var div = createDiv('').size(100, 100);\n div.html('hi');\n
\n
\n var div = createDiv('Hello ').size(100, 100);\n div.html('World', true);\n
" + ], + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom', + overloads: [ + { + line: 1629, + params: [], + return: { + description: 'the inner HTML of the element', + type: 'String' + } + }, + { + line: 1650, + params: [ + { + name: 'html', + description: '

the HTML to be placed inside the element

\n', + type: 'String', + optional: true + }, + { + name: 'append', + description: '

whether to append HTML to existing

\n', + type: 'Boolean', + optional: true + } + ], + chainable: 1 + } + ] + }, + { + file: 'lib/addons/p5.dom.js', + line: 1668, + description: + '

Sets the position of the element relative to (0, 0) of the\n window. Essentially, sets position:absolute and left and top\n properties of style. If no arguments given returns the x and y position\n of the element in an object.

\n', + itemtype: 'method', + name: 'position', + return: { + description: 'the x and y position of the element in an object', + type: 'Object' + }, + example: [ + "\n
\n function setup() {\n var cnv = createCanvas(100, 100);\n // positions canvas 50px to the right and 100px\n // below upper left corner of the window\n cnv.position(50, 100);\n }\n
" + ], + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom', + overloads: [ + { + line: 1668, + params: [], + return: { + description: 'the x and y position of the element in an object', + type: 'Object' + } + }, + { + line: 1687, + params: [ + { + name: 'x', + description: '

x-position relative to upper left of window

\n', + type: 'Number', + optional: true + }, + { + name: 'y', + description: '

y-position relative to upper left of window

\n', + type: 'Number', + optional: true + } + ], + chainable: 1 + } + ] + }, + { + file: 'lib/addons/p5.dom.js', + line: 1762, + description: + '

Sets the given style (css) property (1st arg) of the element with the\ngiven value (2nd arg). If a single argument is given, .style()\nreturns the value of the given property; however, if the single argument\nis given in css syntax ('text-align:center'), .style() sets the css\nappropriately.

\n', + itemtype: 'method', + name: 'style', + return: { + description: 'value of property', + type: 'String' + }, + example: [ + "\n
\nvar myDiv = createDiv('I like pandas.');\nmyDiv.style('font-size', '18px');\nmyDiv.style('color', '#ff0000');\n
\n
\nvar col = color(25, 23, 200, 50);\nvar button = createButton('button');\nbutton.style('background-color', col);\nbutton.position(10, 10);\n
\n
\nvar myDiv;\nfunction setup() {\n background(200);\n myDiv = createDiv('I like gray.');\n myDiv.position(20, 20);\n}\n\nfunction draw() {\n myDiv.style('font-size', mouseX + 'px');\n}\n
" + ], + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom', + overloads: [ + { + line: 1762, + params: [ + { + name: 'property', + description: '

property to be set

\n', + type: 'String' + } + ], + return: { + description: 'value of property', + type: 'String' + } + }, + { + line: 1797, + params: [ + { + name: 'property', + description: '', + type: 'String' + }, + { + name: 'value', + description: '

value to assign to property

\n', + type: 'String|Number|p5.Color' + } + ], + chainable: 1, + return: { + description: + 'current value of property, if no value is given as second argument', + type: 'String' + } + } + ] + }, + { + file: 'lib/addons/p5.dom.js', + line: 1851, + description: + '

Adds a new attribute or changes the value of an existing attribute\n on the specified element. If no value is specified, returns the\n value of the given attribute, or null if attribute is not set.

\n', + itemtype: 'method', + name: 'attribute', + return: { + description: 'value of attribute', + type: 'String' + }, + example: [ + "\n
\n var myDiv = createDiv('I like pandas.');\n myDiv.attribute('align', 'center');\n
" + ], + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom', + overloads: [ + { + line: 1851, + params: [], + return: { + description: 'value of attribute', + type: 'String' + } + }, + { + line: 1866, + params: [ + { + name: 'attr', + description: '

attribute to set

\n', + type: 'String' + }, + { + name: 'value', + description: '

value to assign to attribute

\n', + type: 'String' + } + ], + chainable: 1 + } + ] + }, + { + file: 'lib/addons/p5.dom.js', + line: 1895, + description: '

Removes an attribute on the specified element.

\n', + itemtype: 'method', + name: 'removeAttribute', + params: [ + { + name: 'attr', + description: '

attribute to remove

\n', + type: 'String' + } + ], + chainable: 1, + example: [ + "\n
\n var button;\n var checkbox;\nfunction setup() {\n checkbox = createCheckbox('enable', true);\n checkbox.changed(enableButton);\n button = createButton('button');\n button.position(10, 10);\n }\nfunction enableButton() {\n if (this.checked()) {\n // Re-enable the button\n button.removeAttribute('disabled');\n } else {\n // Disable the button\n button.attribute('disabled', '');\n }\n }\n
" + ], + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 1940, + description: + '

Either returns the value of the element if no arguments\ngiven, or sets the value of the element.

\n', + itemtype: 'method', + name: 'value', + return: { + description: 'value of the element', + type: 'String|Number' + }, + example: [ + "\n
\n// gets the value\nvar inp;\nfunction setup() {\n inp = createInput('');\n}\n\nfunction mousePressed() {\n print(inp.value());\n}\n
\n
\n// sets the value\nvar inp;\nfunction setup() {\n inp = createInput('myValue');\n}\n\nfunction mousePressed() {\n inp.value('myValue');\n}\n
" + ], + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom', + overloads: [ + { + line: 1940, + params: [], + return: { + description: 'value of the element', + type: 'String|Number' + } + }, + { + line: 1970, + params: [ + { + name: 'value', + description: '', + type: 'String|Number' + } + ], + chainable: 1 + } + ] + }, + { + file: 'lib/addons/p5.dom.js', + line: 1986, + description: + '

Shows the current element. Essentially, setting display:block for the style.

\n', + itemtype: 'method', + name: 'show', + chainable: 1, + example: [ + "\n
\n var div = createDiv('div');\n div.style('display', 'none');\n div.show(); // turns display to block\n
" + ], + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 2004, + description: + '

Hides the current element. Essentially, setting display:none for the style.

\n', + itemtype: 'method', + name: 'hide', + chainable: 1, + example: [ + "\n
\nvar div = createDiv('this is a div');\ndiv.hide();\n
" + ], + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 2020, + description: + '

Sets the width and height of the element. AUTO can be used to\n only adjust one dimension at a time. If no arguments are given, it\n returns the width and height of the element in an object. In case of\n elements which need to be loaded, such as images, it is recommended\n to call the function after the element has finished loading.

\n', + itemtype: 'method', + name: 'size', + return: { + description: 'the width and height of the element in an object', + type: 'Object' + }, + example: [ + "\n
\n let div = createDiv('this is a div');\n div.size(100, 100);\n let img = createImg('assets/laDefense.jpg', () => {\n img.size(10, AUTO);\n });\n
" + ], + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom', + overloads: [ + { + line: 2020, + params: [], + return: { + description: 'the width and height of the element in an object', + type: 'Object' + } + }, + { + line: 2039, + params: [ + { + name: 'w', + description: + '

width of the element, either AUTO, or a number

\n', + type: 'Number|Constant' + }, + { + name: 'h', + description: + '

height of the element, either AUTO, or a number

\n', + type: 'Number|Constant', + optional: true + } + ], + chainable: 1 + } + ] + }, + { + file: 'lib/addons/p5.dom.js', + line: 2099, + description: '

Removes the element and deregisters all listeners.

\n', + itemtype: 'method', + name: 'remove', + example: [ + "\n
\nvar myDiv = createDiv('this is some text');\nmyDiv.remove();\n
" + ], + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 2119, + description: + '

Registers a callback that gets called every time a file that is\ndropped on the element has been loaded.\np5 will load every dropped file into memory and pass it as a p5.File object to the callback.\nMultiple files dropped at the same time will result in multiple calls to the callback.

\n

You can optionally pass a second callback which will be registered to the raw\ndrop event.\nThe callback will thus be provided the original\nDragEvent.\nDropping multiple files at the same time will trigger the second callback once per drop,\nwhereas the first callback will trigger for each loaded file.

\n', + itemtype: 'method', + name: 'drop', + params: [ + { + name: 'callback', + description: + '

callback to receive loaded file, called for each file dropped.

\n', + type: 'Function' + }, + { + name: 'fxn', + description: + '

callback triggered once when files are dropped with the drop event.

\n', + type: 'Function', + optional: true + } + ], + chainable: 1, + example: [ + "\n
\nfunction setup() {\n var c = createCanvas(100, 100);\n background(200);\n textAlign(CENTER);\n text('drop file', width / 2, height / 2);\n c.drop(gotFile);\n}\n\nfunction gotFile(file) {\n background(200);\n text('received file:', width / 2, height / 2);\n text(file.name, width / 2, height / 2 + 50);\n}\n
\n\n
\nvar img;\n\nfunction setup() {\n var c = createCanvas(100, 100);\n background(200);\n textAlign(CENTER);\n text('drop image', width / 2, height / 2);\n c.drop(gotFile);\n}\n\nfunction draw() {\n if (img) {\n image(img, 0, 0, width, height);\n }\n}\n\nfunction gotFile(file) {\n img = createImg(file.data).hide();\n}\n
" + ], + alt: 'Canvas turns into whatever image is dragged/dropped onto it.', + class: 'p5.Element', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 2253, + description: '

Path to the media element source.

\n', + itemtype: 'property', + name: 'src', + return: { + description: 'src', + type: 'String' + }, + example: [ + "\n
\nvar ele;\n\nfunction setup() {\n background(250);\n\n //p5.MediaElement objects are usually created\n //by calling the createAudio(), createVideo(),\n //and createCapture() functions.\n\n //In this example we create\n //a new p5.MediaElement via createAudio().\n ele = createAudio('assets/beat.mp3');\n\n //We'll set up our example so that\n //when you click on the text,\n //an alert box displays the MediaElement's\n //src field.\n textAlign(CENTER);\n text('Click Me!', width / 2, height / 2);\n}\n\nfunction mouseClicked() {\n //here we test if the mouse is over the\n //canvas element when it's clicked\n if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n //Show our p5.MediaElement's src field\n alert(ele.src);\n }\n}\n
" + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 2319, + description: '

Play an HTML5 media element.

\n', + itemtype: 'method', + name: 'play', + chainable: 1, + example: [ + "\n
\nvar ele;\n\nfunction setup() {\n //p5.MediaElement objects are usually created\n //by calling the createAudio(), createVideo(),\n //and createCapture() functions.\n\n //In this example we create\n //a new p5.MediaElement via createAudio().\n ele = createAudio('assets/beat.mp3');\n\n background(250);\n textAlign(CENTER);\n text('Click to Play!', width / 2, height / 2);\n}\n\nfunction mouseClicked() {\n //here we test if the mouse is over the\n //canvas element when it's clicked\n if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n //Here we call the play() function on\n //the p5.MediaElement we created above.\n //This will start the audio sample.\n ele.play();\n\n background(200);\n text('You clicked Play!', width / 2, height / 2);\n }\n}\n
" + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 2380, + description: + '

Stops an HTML5 media element (sets current time to zero).

\n', + itemtype: 'method', + name: 'stop', + chainable: 1, + example: [ + "\n
\n//This example both starts\n//and stops a sound sample\n//when the user clicks the canvas\n\n//We will store the p5.MediaElement\n//object in here\nvar ele;\n\n//while our audio is playing,\n//this will be set to true\nvar sampleIsPlaying = false;\n\nfunction setup() {\n //Here we create a p5.MediaElement object\n //using the createAudio() function.\n ele = createAudio('assets/beat.mp3');\n background(200);\n textAlign(CENTER);\n text('Click to play!', width / 2, height / 2);\n}\n\nfunction mouseClicked() {\n //here we test if the mouse is over the\n //canvas element when it's clicked\n if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n background(200);\n\n if (sampleIsPlaying) {\n //if the sample is currently playing\n //calling the stop() function on\n //our p5.MediaElement will stop\n //it and reset its current\n //time to 0 (i.e. it will start\n //at the beginning the next time\n //you play it)\n ele.stop();\n\n sampleIsPlaying = false;\n text('Click to play!', width / 2, height / 2);\n } else {\n //loop our sound element until we\n //call ele.stop() on it.\n ele.loop();\n\n sampleIsPlaying = true;\n text('Click to stop!', width / 2, height / 2);\n }\n }\n}\n
" + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 2444, + description: '

Pauses an HTML5 media element.

\n', + itemtype: 'method', + name: 'pause', + chainable: 1, + example: [ + "\n
\n//This example both starts\n//and pauses a sound sample\n//when the user clicks the canvas\n\n//We will store the p5.MediaElement\n//object in here\nvar ele;\n\n//while our audio is playing,\n//this will be set to true\nvar sampleIsPlaying = false;\n\nfunction setup() {\n //Here we create a p5.MediaElement object\n //using the createAudio() function.\n ele = createAudio('assets/lucky_dragons.mp3');\n background(200);\n textAlign(CENTER);\n text('Click to play!', width / 2, height / 2);\n}\n\nfunction mouseClicked() {\n //here we test if the mouse is over the\n //canvas element when it's clicked\n if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n background(200);\n\n if (sampleIsPlaying) {\n //Calling pause() on our\n //p5.MediaElement will stop it\n //playing, but when we call the\n //loop() or play() functions\n //the sample will start from\n //where we paused it.\n ele.pause();\n\n sampleIsPlaying = false;\n text('Click to resume!', width / 2, height / 2);\n } else {\n //loop our sound element until we\n //call ele.pause() on it.\n ele.loop();\n\n sampleIsPlaying = true;\n text('Click to pause!', width / 2, height / 2);\n }\n }\n}\n
" + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 2506, + description: + '

Set 'loop' to true for an HTML5 media element, and starts playing.

\n', + itemtype: 'method', + name: 'loop', + chainable: 1, + example: [ + "\n
\n//Clicking the canvas will loop\n//the audio sample until the user\n//clicks again to stop it\n\n//We will store the p5.MediaElement\n//object in here\nvar ele;\n\n//while our audio is playing,\n//this will be set to true\nvar sampleIsLooping = false;\n\nfunction setup() {\n //Here we create a p5.MediaElement object\n //using the createAudio() function.\n ele = createAudio('assets/lucky_dragons.mp3');\n background(200);\n textAlign(CENTER);\n text('Click to loop!', width / 2, height / 2);\n}\n\nfunction mouseClicked() {\n //here we test if the mouse is over the\n //canvas element when it's clicked\n if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n background(200);\n\n if (!sampleIsLooping) {\n //loop our sound element until we\n //call ele.stop() on it.\n ele.loop();\n\n sampleIsLooping = true;\n text('Click to stop!', width / 2, height / 2);\n } else {\n ele.stop();\n\n sampleIsLooping = false;\n text('Click to loop!', width / 2, height / 2);\n }\n }\n}\n
" + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 2562, + description: + '

Set 'loop' to false for an HTML5 media element. Element will stop\nwhen it reaches the end.

\n', + itemtype: 'method', + name: 'noLoop', + chainable: 1, + example: [ + "\n
\n//This example both starts\n//and stops loop of sound sample\n//when the user clicks the canvas\n\n//We will store the p5.MediaElement\n//object in here\nvar ele;\n//while our audio is playing,\n//this will be set to true\nvar sampleIsPlaying = false;\n\nfunction setup() {\n //Here we create a p5.MediaElement object\n //using the createAudio() function.\n ele = createAudio('assets/beat.mp3');\n background(200);\n textAlign(CENTER);\n text('Click to play!', width / 2, height / 2);\n}\n\nfunction mouseClicked() {\n //here we test if the mouse is over the\n //canvas element when it's clicked\n if (mouseX >= 0 && mouseX <= width && mouseY >= 0 && mouseY <= height) {\n background(200);\n\n if (sampleIsPlaying) {\n ele.noLoop();\n text('No more Loops!', width / 2, height / 2);\n } else {\n ele.loop();\n sampleIsPlaying = true;\n text('Click to stop looping!', width / 2, height / 2);\n }\n }\n}\n
\n" + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 2614, + description: '

Set HTML5 media element to autoplay or not.

\n', + itemtype: 'method', + name: 'autoplay', + params: [ + { + name: 'autoplay', + description: '

whether the element should autoplay

\n', + type: 'Boolean' + } + ], + chainable: 1, + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 2626, + description: + '

Sets volume for this HTML5 media element. If no argument is given,\nreturns the current volume.

\n', + itemtype: 'method', + name: 'volume', + return: { + description: 'current volume', + type: 'Number' + }, + example: [ + "\n
\nvar ele;\nfunction setup() {\n // p5.MediaElement objects are usually created\n // by calling the createAudio(), createVideo(),\n // and createCapture() functions.\n // In this example we create\n // a new p5.MediaElement via createAudio().\n ele = createAudio('assets/lucky_dragons.mp3');\n background(250);\n textAlign(CENTER);\n text('Click to Play!', width / 2, height / 2);\n}\nfunction mouseClicked() {\n // Here we call the volume() function\n // on the sound element to set its volume\n // Volume must be between 0.0 and 1.0\n ele.volume(0.2);\n ele.play();\n background(200);\n text('You clicked Play!', width / 2, height / 2);\n}\n
\n
\nvar audio;\nvar counter = 0;\n\nfunction loaded() {\n audio.play();\n}\n\nfunction setup() {\n audio = createAudio('assets/lucky_dragons.mp3', loaded);\n textAlign(CENTER);\n}\n\nfunction draw() {\n if (counter === 0) {\n background(0, 255, 0);\n text('volume(0.9)', width / 2, height / 2);\n } else if (counter === 1) {\n background(255, 255, 0);\n text('volume(0.5)', width / 2, height / 2);\n } else if (counter === 2) {\n background(255, 0, 0);\n text('volume(0.1)', width / 2, height / 2);\n }\n}\n\nfunction mousePressed() {\n counter++;\n if (counter === 0) {\n audio.volume(0.9);\n } else if (counter === 1) {\n audio.volume(0.5);\n } else if (counter === 2) {\n audio.volume(0.1);\n } else {\n counter = 0;\n audio.volume(0.9);\n }\n}\n\n
" + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom', + overloads: [ + { + line: 2626, + params: [], + return: { + description: 'current volume', + type: 'Number' + } + }, + { + line: 2699, + params: [ + { + name: 'val', + description: '

volume between 0.0 and 1.0

\n', + type: 'Number' + } + ], + chainable: 1 + } + ] + }, + { + file: 'lib/addons/p5.dom.js', + line: 2712, + description: + '

If no arguments are given, returns the current playback speed of the\nelement. The speed parameter sets the speed where 2.0 will play the\nelement twice as fast, 0.5 will play at half the speed, and -1 will play\nthe element in normal speed in reverse.(Note that not all browsers support\nbackward playback and even if they do, playback might not be smooth.)

\n', + itemtype: 'method', + name: 'speed', + return: { + description: 'current playback speed of the element', + type: 'Number' + }, + example: [ + "\n
\n//Clicking the canvas will loop\n//the audio sample until the user\n//clicks again to stop it\n\n//We will store the p5.MediaElement\n//object in here\nvar ele;\nvar button;\n\nfunction setup() {\n createCanvas(710, 400);\n //Here we create a p5.MediaElement object\n //using the createAudio() function.\n ele = createAudio('assets/beat.mp3');\n ele.loop();\n background(200);\n\n button = createButton('2x speed');\n button.position(100, 68);\n button.mousePressed(twice_speed);\n\n button = createButton('half speed');\n button.position(200, 68);\n button.mousePressed(half_speed);\n\n button = createButton('reverse play');\n button.position(300, 68);\n button.mousePressed(reverse_speed);\n\n button = createButton('STOP');\n button.position(400, 68);\n button.mousePressed(stop_song);\n\n button = createButton('PLAY!');\n button.position(500, 68);\n button.mousePressed(play_speed);\n}\n\nfunction twice_speed() {\n ele.speed(2);\n}\n\nfunction half_speed() {\n ele.speed(0.5);\n}\n\nfunction reverse_speed() {\n ele.speed(-1);\n}\n\nfunction stop_song() {\n ele.stop();\n}\n\nfunction play_speed() {\n ele.play();\n}\n
" + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom', + overloads: [ + { + line: 2712, + params: [], + return: { + description: 'current playback speed of the element', + type: 'Number' + } + }, + { + line: 2783, + params: [ + { + name: 'speed', + description: '

speed multiplier for element playback

\n', + type: 'Number' + } + ], + chainable: 1 + } + ] + }, + { + file: 'lib/addons/p5.dom.js', + line: 2800, + description: + '

If no arguments are given, returns the current time of the element.\nIf an argument is given the current time of the element is set to it.

\n', + itemtype: 'method', + name: 'time', + return: { + description: 'current time (in seconds)', + type: 'Number' + }, + example: [ + "\n
\nvar ele;\nvar beginning = true;\nfunction setup() {\n //p5.MediaElement objects are usually created\n //by calling the createAudio(), createVideo(),\n //and createCapture() functions.\n\n //In this example we create\n //a new p5.MediaElement via createAudio().\n ele = createAudio('assets/lucky_dragons.mp3');\n background(250);\n textAlign(CENTER);\n text('start at beginning', width / 2, height / 2);\n}\n\n// this function fires with click anywhere\nfunction mousePressed() {\n if (beginning === true) {\n // here we start the sound at the beginning\n // time(0) is not necessary here\n // as this produces the same result as\n // play()\n ele.play().time(0);\n background(200);\n text('jump 2 sec in', width / 2, height / 2);\n beginning = false;\n } else {\n // here we jump 2 seconds into the sound\n ele.play().time(2);\n background(250);\n text('start at beginning', width / 2, height / 2);\n beginning = true;\n }\n}\n
" + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom', + overloads: [ + { + line: 2800, + params: [], + return: { + description: 'current time (in seconds)', + type: 'Number' + } + }, + { + line: 2845, + params: [ + { + name: 'time', + description: '

time to jump to (in seconds)

\n', + type: 'Number' + } + ], + chainable: 1 + } + ] + }, + { + file: 'lib/addons/p5.dom.js', + line: 2859, + description: '

Returns the duration of the HTML5 media element.

\n', + itemtype: 'method', + name: 'duration', + return: { + description: 'duration', + type: 'Number' + }, + example: [ + "\n
\nvar ele;\nfunction setup() {\n //p5.MediaElement objects are usually created\n //by calling the createAudio(), createVideo(),\n //and createCapture() functions.\n //In this example we create\n //a new p5.MediaElement via createAudio().\n ele = createAudio('assets/doorbell.mp3');\n background(250);\n textAlign(CENTER);\n text('Click to know the duration!', 10, 25, 70, 80);\n}\nfunction mouseClicked() {\n ele.play();\n background(200);\n //ele.duration dislpays the duration\n text(ele.duration() + ' seconds', width / 2, height / 2);\n}\n
" + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 2990, + description: + '

Schedule an event to be called when the audio or video\nelement reaches the end. If the element is looping,\nthis will not be called. The element is passed in\nas the argument to the onended callback.

\n', + itemtype: 'method', + name: 'onended', + params: [ + { + name: 'callback', + description: + '

function to call when the\n soundfile has ended. The\n media element will be passed\n in as the argument to the\n callback.

\n', + type: 'Function' + } + ], + chainable: 1, + example: [ + "\n
\nfunction setup() {\n var audioEl = createAudio('assets/beat.mp3');\n audioEl.showControls();\n audioEl.onended(sayDone);\n}\n\nfunction sayDone(elt) {\n alert('done playing ' + elt.src);\n}\n
" + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 3021, + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 3023, + description: + '

Send the audio output of this element to a specified audioNode or\np5.sound object. If no element is provided, connects to p5's master\noutput. That connection is established when this method is first called.\nAll connections are removed by the .disconnect() method.

\n

This method is meant to be used with the p5.sound.js addon library.

\n', + itemtype: 'method', + name: 'connect', + params: [ + { + name: 'audioNode', + description: + '

AudioNode from the Web Audio API,\nor an object from the p5.sound library

\n', + type: 'AudioNode|Object' + } + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 3072, + description: + '

Disconnect all Web Audio routing, including to master output.\nThis is useful if you want to re-route the output through\naudio effects, for example.

\n', + itemtype: 'method', + name: 'disconnect', + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 3087, + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 3089, + description: + '

Show the default MediaElement controls, as determined by the web browser.

\n', + itemtype: 'method', + name: 'showControls', + example: [ + "\n
\nvar ele;\nfunction setup() {\n //p5.MediaElement objects are usually created\n //by calling the createAudio(), createVideo(),\n //and createCapture() functions.\n //In this example we create\n //a new p5.MediaElement via createAudio()\n ele = createAudio('assets/lucky_dragons.mp3');\n background(200);\n textAlign(CENTER);\n text('Click to Show Controls!', 10, 25, 70, 80);\n}\nfunction mousePressed() {\n ele.showControls();\n background(200);\n text('Controls Shown', width / 2, height / 2);\n}\n
" + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 3120, + description: '

Hide the default mediaElement controls.

\n', + itemtype: 'method', + name: 'hideControls', + example: [ + "\n
\nvar ele;\nfunction setup() {\n //p5.MediaElement objects are usually created\n //by calling the createAudio(), createVideo(),\n //and createCapture() functions.\n //In this example we create\n //a new p5.MediaElement via createAudio()\n ele = createAudio('assets/lucky_dragons.mp3');\n ele.showControls();\n background(200);\n textAlign(CENTER);\n text('Click to hide Controls!', 10, 25, 70, 80);\n}\nfunction mousePressed() {\n ele.hideControls();\n background(200);\n text('Controls hidden', width / 2, height / 2);\n}\n
" + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 3149, + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 3160, + description: + '

Schedule events to trigger every time a MediaElement\n(audio/video) reaches a playback cue point.

\n

Accepts a callback function, a time (in seconds) at which to trigger\nthe callback, and an optional parameter for the callback.

\n

Time will be passed as the first parameter to the callback function,\nand param will be the second parameter.

\n', + itemtype: 'method', + name: 'addCue', + params: [ + { + name: 'time', + description: + '

Time in seconds, relative to this media\n element's playback. For example, to trigger\n an event every time playback reaches two\n seconds, pass in the number 2. This will be\n passed as the first parameter to\n the callback function.

\n', + type: 'Number' + }, + { + name: 'callback', + description: + '

Name of a function that will be\n called at the given time. The callback will\n receive time and (optionally) param as its\n two parameters.

\n', + type: 'Function' + }, + { + name: 'value', + description: + '

An object to be passed as the\n second parameter to the\n callback function.

\n', + type: 'Object', + optional: true + } + ], + return: { + description: + 'id ID of this cue,\n useful for removeCue(id)', + type: 'Number' + }, + example: [ + "\n
\n//\n//\nfunction setup() {\n noCanvas();\n\n var audioEl = createAudio('assets/beat.mp3');\n audioEl.showControls();\n\n // schedule three calls to changeBackground\n audioEl.addCue(0.5, changeBackground, color(255, 0, 0));\n audioEl.addCue(1.0, changeBackground, color(0, 255, 0));\n audioEl.addCue(2.5, changeBackground, color(0, 0, 255));\n audioEl.addCue(3.0, changeBackground, color(0, 255, 255));\n audioEl.addCue(4.2, changeBackground, color(255, 255, 0));\n audioEl.addCue(5.0, changeBackground, color(255, 255, 0));\n}\n\nfunction changeBackground(val) {\n background(val);\n}\n
" + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 3224, + description: + '

Remove a callback based on its ID. The ID is returned by the\naddCue method.

\n', + itemtype: 'method', + name: 'removeCue', + params: [ + { + name: 'id', + description: '

ID of the cue, as returned by addCue

\n', + type: 'Number' + } + ], + example: [ + "\n
\nvar audioEl, id1, id2;\nfunction setup() {\n background(255, 255, 255);\n audioEl = createAudio('assets/beat.mp3');\n audioEl.showControls();\n // schedule five calls to changeBackground\n id1 = audioEl.addCue(0.5, changeBackground, color(255, 0, 0));\n audioEl.addCue(1.0, changeBackground, color(0, 255, 0));\n audioEl.addCue(2.5, changeBackground, color(0, 0, 255));\n audioEl.addCue(3.0, changeBackground, color(0, 255, 255));\n id2 = audioEl.addCue(4.2, changeBackground, color(255, 255, 0));\n text('Click to remove first and last Cue!', 10, 25, 70, 80);\n}\nfunction mousePressed() {\n audioEl.removeCue(id1);\n audioEl.removeCue(id2);\n}\nfunction changeBackground(val) {\n background(val);\n}\n
" + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 3266, + description: + '

Remove all of the callbacks that had originally been scheduled\nvia the addCue method.

\n', + itemtype: 'method', + name: 'clearCues', + params: [ + { + name: 'id', + description: '

ID of the cue, as returned by addCue

\n', + type: 'Number' + } + ], + example: [ + "\n
\nvar audioEl;\nfunction setup() {\n background(255, 255, 255);\n audioEl = createAudio('assets/beat.mp3');\n //Show the default MediaElement controls, as determined by the web browser\n audioEl.showControls();\n // schedule calls to changeBackground\n background(200);\n text('Click to change Cue!', 10, 25, 70, 80);\n audioEl.addCue(0.5, changeBackground, color(255, 0, 0));\n audioEl.addCue(1.0, changeBackground, color(0, 255, 0));\n audioEl.addCue(2.5, changeBackground, color(0, 0, 255));\n audioEl.addCue(3.0, changeBackground, color(0, 255, 255));\n audioEl.addCue(4.2, changeBackground, color(255, 255, 0));\n}\nfunction mousePressed() {\n // here we clear the scheduled callbacks\n audioEl.clearCues();\n // then we add some more callbacks\n audioEl.addCue(1, changeBackground, color(2, 2, 2));\n audioEl.addCue(3, changeBackground, color(255, 255, 0));\n}\nfunction changeBackground(val) {\n background(val);\n}\n
" + ], + class: 'p5.MediaElement', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 3332, + description: + '

Underlying File object. All normal File methods can be called on this.

\n', + itemtype: 'property', + name: 'file', + class: 'p5.File', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 3344, + description: '

File type (image, text, etc.)

\n', + itemtype: 'property', + name: 'type', + class: 'p5.File', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 3350, + description: + '

File subtype (usually the file extension jpg, png, xml, etc.)

\n', + itemtype: 'property', + name: 'subtype', + class: 'p5.File', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 3356, + description: '

File name

\n', + itemtype: 'property', + name: 'name', + class: 'p5.File', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 3362, + description: '

File size

\n', + itemtype: 'property', + name: 'size', + class: 'p5.File', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.dom.js', + line: 3369, + description: '

URL string containing image data.

\n', + itemtype: 'property', + name: 'data', + class: 'p5.File', + module: 'p5.dom', + submodule: 'p5.dom' + }, + { + file: 'lib/addons/p5.sound.js', + line: 46, + description: + '

p5.sound \nhttps://p5js.org/reference/#/libraries/p5.sound

\n

From the Processing Foundation and contributors\nhttps://github.com/processing/p5.js-sound/graphs/contributors

\n

MIT License (MIT)\nhttps://github.com/processing/p5.js-sound/blob/master/LICENSE

\n

Some of the many audio libraries & resources that inspire p5.sound:

\n\n', + class: 'p5.sound', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 214, + description: + '

Determine which filetypes are supported (inspired by buzz.js)\nThe audio element (el) will only be used to test browser support for various audio formats

\n', + class: 'p5.sound', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 363, + class: 'p5.sound', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 740, + class: 'p5.sound', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 810, + class: 'p5.sound', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 1005, + description: + "

Returns the Audio Context for this sketch. Useful for users\nwho would like to dig deeper into the Web Audio API\n.

\n\n

Some browsers require users to startAudioContext\nwith a user gesture, such as touchStarted in the example below.

", + itemtype: 'method', + name: 'getAudioContext', + return: { + description: 'AudioContext for this sketch', + type: 'Object' + }, + example: [ + "\n
\n function draw() {\n background(255);\n textAlign(CENTER);\n\n if (getAudioContext().state !== 'running') {\n text('click to start audio', width/2, height/2);\n } else {\n text('audio is enabled', width/2, height/2);\n }\n }\n\n function touchStarted() {\n if (getAudioContext().state !== 'running') {\n getAudioContext().resume();\n }\n var synth = new p5.MonoSynth();\n synth.play('A4', 0.5, 0, 0.2);\n }\n\n
" + ], + class: 'p5.sound', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 1042, + description: + '

It is a good practice to give users control over starting audio playback.\nThis practice is enforced by Google Chrome's autoplay policy as of r70\n(info), iOS Safari, and other browsers.\n

\n\n

\nuserStartAudio() starts the Audio Context on a user gesture. It utilizes\nthe StartAudioContext library by\nYotam Mann (MIT Licence, 2016). Read more at https://github.com/tambien/StartAudioContext.\n

\n\n

Starting the audio context on a user gesture can be as simple as userStartAudio().\nOptional parameters let you decide on a specific element that will start the audio context,\nand/or call a function once the audio context is started.

', + params: [ + { + name: 'element(s)', + description: + '

This argument can be an Element,\n Selector String, NodeList, p5.Element,\n jQuery Element, or an Array of any of those.

\n', + type: 'Element|Array', + optional: true + }, + { + name: 'callback', + description: + '

Callback to invoke when the AudioContext has started

\n', + type: 'Function', + optional: true + } + ], + return: { + description: + "Returns a Promise which is resolved when\n the AudioContext state is 'running'", + type: 'Promise' + }, + itemtype: 'method', + name: 'userStartAudio', + example: [ + "\n
\nfunction setup() {\n var myDiv = createDiv('click to start audio');\n myDiv.position(0, 0);\n\n var mySynth = new p5.MonoSynth();\n\n // This won't play until the context has started\n mySynth.play('A6');\n\n // Start the audio context on a click/touch event\n userStartAudio().then(function() {\n myDiv.remove();\n });\n}\n
" + ], + class: 'p5.sound', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 1099, + description: + '

Master contains AudioContext and the master sound output.

\n', + class: 'p5.sound', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 1132, + description: + '

Returns a number representing the master amplitude (volume) for sound\nin this sketch.

\n', + itemtype: 'method', + name: 'getMasterVolume', + return: { + description: + 'Master amplitude (volume) for sound in this sketch.\n Should be between 0.0 (silence) and 1.0.', + type: 'Number' + }, + class: 'p5.sound', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 1143, + description: + '

Scale the output of all sound in this sketch

\nScaled between 0.0 (silence) and 1.0 (full volume).\n1.0 is the maximum amplitude of a digital sound, so multiplying\nby greater than 1.0 may cause digital distortion. To\nfade, provide a rampTime parameter. For more\ncomplex fades, see the Envelope class.\n\nAlternately, you can pass in a signal source such as an\noscillator to modulate the amplitude with an audio signal.\n\n

How This Works: When you load the p5.sound module, it\ncreates a single instance of p5sound. All sound objects in this\nmodule output to p5sound before reaching your computer's output.\nSo if you change the amplitude of p5sound, it impacts all of the\nsound in this module.

\n\n

If no value is provided, returns a Web Audio API Gain Node

', + itemtype: 'method', + name: 'masterVolume', + params: [ + { + name: 'volume', + description: + '

Volume (amplitude) between 0.0\n and 1.0 or modulating signal/oscillator

\n', + type: 'Number|Object' + }, + { + name: 'rampTime', + description: '

Fade for t seconds

\n', + type: 'Number', + optional: true + }, + { + name: 'timeFromNow', + description: + '

Schedule this event to happen at\n t seconds in the future

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.sound', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 1185, + description: + '

p5.soundOut is the p5.sound master output. It sends output to\nthe destination of this window's web audio context. It contains\nWeb Audio API nodes including a dyanmicsCompressor (.limiter),\nand Gain Nodes for .input and .output.

\n', + itemtype: 'property', + name: 'soundOut', + type: 'Object', + class: 'p5.sound', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 1210, + class: 'p5', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 1213, + description: + '

Returns a number representing the sample rate, in samples per second,\nof all sound objects in this audio context. It is determined by the\nsampling rate of your operating system's sound card, and it is not\ncurrently possile to change.\nIt is often 44100, or twice the range of human hearing.

\n', + itemtype: 'method', + name: 'sampleRate', + return: { + description: 'samplerate samples per second', + type: 'Number' + }, + class: 'p5', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 1226, + description: + '

Returns the closest MIDI note value for\na given frequency.

\n', + itemtype: 'method', + name: 'freqToMidi', + params: [ + { + name: 'frequency', + description: + '

A freqeuncy, for example, the "A"\n above Middle C is 440Hz

\n', + type: 'Number' + } + ], + return: { + description: 'MIDI note value', + type: 'Number' + }, + class: 'p5', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 1240, + description: + '

Returns the frequency value of a MIDI note value.\nGeneral MIDI treats notes as integers where middle C\nis 60, C# is 61, D is 62 etc. Useful for generating\nmusical frequencies with oscillators.

\n', + itemtype: 'method', + name: 'midiToFreq', + params: [ + { + name: 'midiNote', + description: '

The number of a MIDI note

\n', + type: 'Number' + } + ], + return: { + description: 'Frequency value of the given MIDI note', + type: 'Number' + }, + example: [ + "\n
\nvar notes = [60, 64, 67, 72];\nvar i = 0;\n\nfunction setup() {\n osc = new p5.Oscillator('Triangle');\n osc.start();\n frameRate(1);\n}\n\nfunction draw() {\n var freq = midiToFreq(notes[i]);\n osc.freq(freq);\n i++;\n if (i >= notes.length){\n i = 0;\n }\n}\n
" + ], + class: 'p5', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 1302, + description: + '

List the SoundFile formats that you will include. LoadSound\nwill search your directory for these extensions, and will pick\na format that is compatable with the client's web browser.\nHere is a free online file\nconverter.

\n', + itemtype: 'method', + name: 'soundFormats', + params: [ + { + name: 'formats', + description: + '

i.e. 'mp3', 'wav', 'ogg'

\n', + type: 'String', + optional: true, + multiple: true + } + ], + example: [ + "\n
\nfunction preload() {\n // set the global sound formats\n soundFormats('mp3', 'ogg');\n\n // load either beatbox.mp3, or .ogg, depending on browser\n mySound = loadSound('assets/beatbox.mp3');\n}\n\nfunction setup() {\n mySound.play();\n}\n
" + ], + class: 'p5', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 1415, + description: '

Used by Osc and Envelope to chain signal math

\n', + class: 'p5', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 1763, + description: + '

loadSound() returns a new p5.SoundFile from a specified\npath. If called during preload(), the p5.SoundFile will be ready\nto play in time for setup() and draw(). If called outside of\npreload, the p5.SoundFile will not be ready immediately, so\nloadSound accepts a callback as the second parameter. Using a\n\nlocal server is recommended when loading external files.

\n', + itemtype: 'method', + name: 'loadSound', + params: [ + { + name: 'path', + description: + '

Path to the sound file, or an array with\n paths to soundfiles in multiple formats\n i.e. ['sound.ogg', 'sound.mp3'].\n Alternately, accepts an object: either\n from the HTML5 File API, or a p5.File.

\n', + type: 'String|Array' + }, + { + name: 'successCallback', + description: '

Name of a function to call once file loads

\n', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: + '

Name of a function to call if there is\n an error loading the file.

\n', + type: 'Function', + optional: true + }, + { + name: 'whileLoading', + description: + '

Name of a function to call while file is loading.\n This function will receive the percentage loaded\n so far, from 0.0 to 1.0.

\n', + type: 'Function', + optional: true + } + ], + return: { + description: 'Returns a p5.SoundFile', + type: 'SoundFile' + }, + example: [ + "\n
\nfunction preload() {\n mySound = loadSound('assets/doorbell.mp3');\n}\n\nfunction setup() {\n mySound.setVolume(0.1);\n mySound.play();\n}\n
" + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 1919, + description: + '

Returns true if the sound file finished loading successfully.

\n', + itemtype: 'method', + name: 'isLoaded', + return: { + description: '', + type: 'Boolean' + }, + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 1932, + description: '

Play the p5.SoundFile

\n', + itemtype: 'method', + name: 'play', + params: [ + { + name: 'startTime', + description: + '

(optional) schedule playback to start (in seconds from now).

\n', + type: 'Number', + optional: true + }, + { + name: 'rate', + description: '

(optional) playback rate

\n', + type: 'Number', + optional: true + }, + { + name: 'amp', + description: + '

(optional) amplitude (volume)\n of playback

\n', + type: 'Number', + optional: true + }, + { + name: 'cueStart', + description: '

(optional) cue start time in seconds

\n', + type: 'Number', + optional: true + }, + { + name: 'duration', + description: '

(optional) duration of playback in seconds

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2022, + description: + '

p5.SoundFile has two play modes: restart and\nsustain. Play Mode determines what happens to a\np5.SoundFile if it is triggered while in the middle of playback.\nIn sustain mode, playback will continue simultaneous to the\nnew playback. In restart mode, play() will stop playback\nand start over. With untilDone, a sound will play only if it's\nnot already playing. Sustain is the default mode.

\n', + itemtype: 'method', + name: 'playMode', + params: [ + { + name: 'str', + description: + '

'restart' or 'sustain' or 'untilDone'

\n', + type: 'String' + } + ], + example: [ + "\n
\nvar mySound;\nfunction preload(){\n mySound = loadSound('assets/Damscray_DancingTiger.mp3');\n}\nfunction mouseClicked() {\n mySound.playMode('sustain');\n mySound.play();\n}\nfunction keyPressed() {\n mySound.playMode('restart');\n mySound.play();\n}\n\n
" + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2066, + description: + '

Pauses a file that is currently playing. If the file is not\nplaying, then nothing will happen.

\n

After pausing, .play() will resume from the paused\nposition.\nIf p5.SoundFile had been set to loop before it was paused,\nit will continue to loop after it is unpaused with .play().

\n', + itemtype: 'method', + name: 'pause', + params: [ + { + name: 'startTime', + description: + '

(optional) schedule event to occur\n seconds from now

\n', + type: 'Number', + optional: true + } + ], + example: [ + "\n
\nvar soundFile;\n\nfunction preload() {\n soundFormats('ogg', 'mp3');\n soundFile = loadSound('assets/Damscray_-_Dancing_Tiger_02.mp3');\n}\nfunction setup() {\n background(0, 255, 0);\n soundFile.setVolume(0.1);\n soundFile.loop();\n}\nfunction keyTyped() {\n if (key == 'p') {\n soundFile.pause();\n background(255, 0, 0);\n }\n}\n\nfunction keyReleased() {\n if (key == 'p') {\n soundFile.play();\n background(0, 255, 0);\n }\n}\n\n
" + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2122, + description: + '

Loop the p5.SoundFile. Accepts optional parameters to set the\nplayback rate, playback volume, loopStart, loopEnd.

\n', + itemtype: 'method', + name: 'loop', + params: [ + { + name: 'startTime', + description: + '

(optional) schedule event to occur\n seconds from now

\n', + type: 'Number', + optional: true + }, + { + name: 'rate', + description: '

(optional) playback rate

\n', + type: 'Number', + optional: true + }, + { + name: 'amp', + description: '

(optional) playback volume

\n', + type: 'Number', + optional: true + }, + { + name: 'cueLoopStart', + description: '

(optional) startTime in seconds

\n', + type: 'Number', + optional: true + }, + { + name: 'duration', + description: '

(optional) loop duration in seconds

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2138, + description: + '

Set a p5.SoundFile's looping flag to true or false. If the sound\nis currently playing, this change will take effect when it\nreaches the end of the current playback.

\n', + itemtype: 'method', + name: 'setLoop', + params: [ + { + name: 'Boolean', + description: '

set looping to true or false

\n', + type: 'Boolean' + } + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2159, + description: + '

Returns 'true' if a p5.SoundFile is currently looping and playing, 'false' if not.

\n', + itemtype: 'method', + name: 'isLooping', + return: { + description: '', + type: 'Boolean' + }, + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2174, + description: + '

Returns true if a p5.SoundFile is playing, false if not (i.e.\npaused or stopped).

\n', + itemtype: 'method', + name: 'isPlaying', + return: { + description: '', + type: 'Boolean' + }, + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2184, + description: + '

Returns true if a p5.SoundFile is paused, false if not (i.e.\nplaying or stopped).

\n', + itemtype: 'method', + name: 'isPaused', + return: { + description: '', + type: 'Boolean' + }, + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2194, + description: '

Stop soundfile playback.

\n', + itemtype: 'method', + name: 'stop', + params: [ + { + name: 'startTime', + description: + '

(optional) schedule event to occur\n in seconds from now

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2239, + description: + '

Multiply the output volume (amplitude) of a sound file\nbetween 0.0 (silence) and 1.0 (full volume).\n1.0 is the maximum amplitude of a digital sound, so multiplying\nby greater than 1.0 may cause digital distortion. To\nfade, provide a rampTime parameter. For more\ncomplex fades, see the Envelope class.

\n

Alternately, you can pass in a signal source such as an\noscillator to modulate the amplitude with an audio signal.

\n', + itemtype: 'method', + name: 'setVolume', + params: [ + { + name: 'volume', + description: + '

Volume (amplitude) between 0.0\n and 1.0 or modulating signal/oscillator

\n', + type: 'Number|Object' + }, + { + name: 'rampTime', + description: '

Fade for t seconds

\n', + type: 'Number', + optional: true + }, + { + name: 'timeFromNow', + description: + '

Schedule this event to happen at\n t seconds in the future

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2280, + description: + '

Set the stereo panning of a p5.sound object to\na floating point number between -1.0 (left) and 1.0 (right).\nDefault is 0.0 (center).

\n', + itemtype: 'method', + name: 'pan', + params: [ + { + name: 'panValue', + description: '

Set the stereo panner

\n', + type: 'Number', + optional: true + }, + { + name: 'timeFromNow', + description: + '

schedule this event to happen\n seconds from now

\n', + type: 'Number', + optional: true + } + ], + example: [ + "\n
\n\n var ball = {};\n var soundFile;\n\n function preload() {\n soundFormats('ogg', 'mp3');\n soundFile = loadSound('assets/beatbox.mp3');\n }\n\n function draw() {\n background(0);\n ball.x = constrain(mouseX, 0, width);\n ellipse(ball.x, height/2, 20, 20)\n }\n\n function mousePressed(){\n // map the ball's x location to a panning degree\n // between -1.0 (left) and 1.0 (right)\n var panning = map(ball.x, 0., width,-1.0, 1.0);\n soundFile.pan(panning);\n soundFile.play();\n }\n
" + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2319, + description: + '

Returns the current stereo pan position (-1.0 to 1.0)

\n', + itemtype: 'method', + name: 'getPan', + return: { + description: + 'Returns the stereo pan setting of the Oscillator\n as a number between -1.0 (left) and 1.0 (right).\n 0.0 is center and default.', + type: 'Number' + }, + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2330, + description: + '

Set the playback rate of a sound file. Will change the speed and the pitch.\nValues less than zero will reverse the audio buffer.

\n', + itemtype: 'method', + name: 'rate', + params: [ + { + name: 'playbackRate', + description: + '

Set the playback rate. 1.0 is normal,\n .5 is half-speed, 2.0 is twice as fast.\n Values less than zero play backwards.

\n', + type: 'Number', + optional: true + } + ], + example: [ + "\n
\nvar song;\n\nfunction preload() {\n song = loadSound('assets/Damscray_DancingTiger.mp3');\n}\n\nfunction setup() {\n song.loop();\n}\n\nfunction draw() {\n background(200);\n\n // Set the rate to a range between 0.1 and 4\n // Changing the rate also alters the pitch\n var speed = map(mouseY, 0.1, height, 0, 2);\n speed = constrain(speed, 0.01, 4);\n song.rate(speed);\n\n // Draw a circle to show what is going on\n stroke(0);\n fill(51, 100);\n ellipse(mouseX, 100, 48, 48);\n}\n\n \n
\n" + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2403, + description: '

Returns the duration of a sound file in seconds.

\n', + itemtype: 'method', + name: 'duration', + return: { + description: 'The duration of the soundFile in seconds.', + type: 'Number' + }, + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2417, + description: + '

Return the current position of the p5.SoundFile playhead, in seconds.\nTime is relative to the normal buffer direction, so if reverseBuffer\nhas been called, currentTime will count backwards.

\n', + itemtype: 'method', + name: 'currentTime', + return: { + description: 'currentTime of the soundFile in seconds.', + type: 'Number' + }, + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2428, + description: + '

Move the playhead of the song to a position, in seconds. Start timing\nand playback duration. If none are given, will reset the file to play\nentire duration from start to finish.

\n', + itemtype: 'method', + name: 'jump', + params: [ + { + name: 'cueTime', + description: '

cueTime of the soundFile in seconds.

\n', + type: 'Number' + }, + { + name: 'duration', + description: '

duration in seconds.

\n', + type: 'Number' + } + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2451, + description: + '

Return the number of channels in a sound file.\nFor example, Mono = 1, Stereo = 2.

\n', + itemtype: 'method', + name: 'channels', + return: { + description: '[channels]', + type: 'Number' + }, + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2461, + description: '

Return the sample rate of the sound file.

\n', + itemtype: 'method', + name: 'sampleRate', + return: { + description: '[sampleRate]', + type: 'Number' + }, + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2470, + description: + '

Return the number of samples in a sound file.\nEqual to sampleRate * duration.

\n', + itemtype: 'method', + name: 'frames', + return: { + description: '[sampleCount]', + type: 'Number' + }, + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2480, + description: + '

Returns an array of amplitude peaks in a p5.SoundFile that can be\nused to draw a static waveform. Scans through the p5.SoundFile's\naudio buffer to find the greatest amplitudes. Accepts one\nparameter, 'length', which determines size of the array.\nLarger arrays result in more precise waveform visualizations.

\n

Inspired by Wavesurfer.js.

\n', + itemtype: 'method', + name: 'getPeaks', + params: [ + { + name: 'length', + description: + '

length is the size of the returned array.\n Larger length results in more precision.\n Defaults to 5*width of the browser window.

\n', + type: 'Number', + optional: true + } + ], + return: { + description: 'Array of peaks.', + type: 'Float32Array' + }, + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2532, + description: + '

Reverses the p5.SoundFile's buffer source.\nPlayback must be handled separately (see example).

\n', + itemtype: 'method', + name: 'reverseBuffer', + example: [ + "\n
\nvar drum;\n\nfunction preload() {\n drum = loadSound('assets/drum.mp3');\n}\n\nfunction setup() {\n drum.reverseBuffer();\n drum.play();\n}\n\n \n
" + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2572, + description: + '

Schedule an event to be called when the soundfile\nreaches the end of a buffer. If the soundfile is\nplaying through once, this will be called when it\nends. If it is looping, it will be called when\nstop is called.

\n', + itemtype: 'method', + name: 'onended', + params: [ + { + name: 'callback', + description: + '

function to call when the\n soundfile has ended.

\n', + type: 'Function' + } + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2625, + description: + '

Connects the output of a p5sound object to input of another\np5.sound object. For example, you may connect a p5.SoundFile to an\nFFT or an Effect. If no parameter is given, it will connect to\nthe master output. Most p5sound objects connect to the master\noutput when they are created.

\n', + itemtype: 'method', + name: 'connect', + params: [ + { + name: 'object', + description: '

Audio object that accepts an input

\n', + type: 'Object', + optional: true + } + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2646, + description: '

Disconnects the output of this p5sound object.

\n', + itemtype: 'method', + name: 'disconnect', + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2656, + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2661, + description: + '

Reset the source for this SoundFile to a\nnew path (URL).

\n', + itemtype: 'method', + name: 'setPath', + params: [ + { + name: 'path', + description: '

path to audio file

\n', + type: 'String' + }, + { + name: 'callback', + description: '

Callback

\n', + type: 'Function' + } + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2674, + description: '

Replace the current Audio Buffer with a new Buffer.

\n', + itemtype: 'method', + name: 'setBuffer', + params: [ + { + name: 'buf', + description: + '

Array of Float32 Array(s). 2 Float32 Arrays\n will create a stereo source. 1 will create\n a mono source.

\n', + type: 'Array' + } + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2741, + description: + '

processPeaks returns an array of timestamps where it thinks there is a beat.

\n

This is an asynchronous function that processes the soundfile in an offline audio context,\nand sends the results to your callback function.

\n

The process involves running the soundfile through a lowpass filter, and finding all of the\npeaks above the initial threshold. If the total number of peaks are below the minimum number of peaks,\nit decreases the threshold and re-runs the analysis until either minPeaks or minThreshold are reached.

\n', + itemtype: 'method', + name: 'processPeaks', + params: [ + { + name: 'callback', + description: '

a function to call once this data is returned

\n', + type: 'Function' + }, + { + name: 'initThreshold', + description: '

initial threshold defaults to 0.9

\n', + type: 'Number', + optional: true + }, + { + name: 'minThreshold', + description: '

minimum threshold defaults to 0.22

\n', + type: 'Number', + optional: true + }, + { + name: 'minPeaks', + description: '

minimum number of peaks defaults to 200

\n', + type: 'Number', + optional: true + } + ], + return: { + description: 'Array of timestamped peaks', + type: 'Array' + }, + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2934, + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 2943, + description: + '

Schedule events to trigger every time a MediaElement\n(audio/video) reaches a playback cue point.

\n

Accepts a callback function, a time (in seconds) at which to trigger\nthe callback, and an optional parameter for the callback.

\n

Time will be passed as the first parameter to the callback function,\nand param will be the second parameter.

\n', + itemtype: 'method', + name: 'addCue', + params: [ + { + name: 'time', + description: + '

Time in seconds, relative to this media\n element's playback. For example, to trigger\n an event every time playback reaches two\n seconds, pass in the number 2. This will be\n passed as the first parameter to\n the callback function.

\n', + type: 'Number' + }, + { + name: 'callback', + description: + '

Name of a function that will be\n called at the given time. The callback will\n receive time and (optionally) param as its\n two parameters.

\n', + type: 'Function' + }, + { + name: 'value', + description: + '

An object to be passed as the\n second parameter to the\n callback function.

\n', + type: 'Object', + optional: true + } + ], + return: { + description: + 'id ID of this cue,\n useful for removeCue(id)', + type: 'Number' + }, + example: [ + '\n
\nvar mySound;\nfunction preload() {\n mySound = loadSound(\'assets/beat.mp3\');\n}\n\nfunction setup() {\n background(0);\n noStroke();\n fill(255);\n textAlign(CENTER);\n text(\'click to play\', width/2, height/2);\n\n // schedule calls to changeText\n mySound.addCue(0.50, changeText, "hello" );\n mySound.addCue(1.00, changeText, "p5" );\n mySound.addCue(1.50, changeText, "what" );\n mySound.addCue(2.00, changeText, "do" );\n mySound.addCue(2.50, changeText, "you" );\n mySound.addCue(3.00, changeText, "want" );\n mySound.addCue(4.00, changeText, "to" );\n mySound.addCue(5.00, changeText, "make" );\n mySound.addCue(6.00, changeText, "?" );\n}\n\nfunction changeText(val) {\n background(0);\n text(val, width/2, height/2);\n}\n\nfunction mouseClicked() {\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n if (mySound.isPlaying() ) {\n mySound.stop();\n } else {\n mySound.play();\n }\n }\n}\n
' + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3021, + description: + '

Remove a callback based on its ID. The ID is returned by the\naddCue method.

\n', + itemtype: 'method', + name: 'removeCue', + params: [ + { + name: 'id', + description: '

ID of the cue, as returned by addCue

\n', + type: 'Number' + } + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3040, + description: + '

Remove all of the callbacks that had originally been scheduled\nvia the addCue method.

\n', + itemtype: 'method', + name: 'clearCues', + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3065, + description: + '

Save a p5.SoundFile as a .wav file. The browser will prompt the user\nto download the file to their device. To upload a file to a server, see\ngetBlob

\n', + itemtype: 'method', + name: 'save', + params: [ + { + name: 'fileName', + description: '

name of the resulting .wav file.

\n', + type: 'String', + optional: true + } + ], + example: [ + "\n
\n var inp, button, mySound;\n var fileName = 'cool';\n function preload() {\n mySound = loadSound('assets/doorbell.mp3');\n }\n function setup() {\n btn = createButton('click to save file');\n btn.position(0, 0);\n btn.mouseClicked(handleMouseClick);\n }\n\n function handleMouseClick() {\n mySound.save(fileName);\n }\n
" + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3094, + description: + '

This method is useful for sending a SoundFile to a server. It returns the\n.wav-encoded audio data as a "Blob".\nA Blob is a file-like data object that can be uploaded to a server\nwith an http request. We'll\nuse the httpDo options object to send a POST request with some\nspecific options: we encode the request as multipart/form-data,\nand attach the blob as one of the form values using FormData.

\n', + itemtype: 'method', + name: 'getBlob', + return: { + description: 'A file-like data object', + type: 'Blob' + }, + example: [ + "\n
\n\n function preload() {\n mySound = loadSound('assets/doorbell.mp3');\n }\n\n function setup() {\n noCanvas();\n var soundBlob = mySound.getBlob();\n\n // Now we can send the blob to a server...\n var serverUrl = 'https://jsonplaceholder.typicode.com/posts';\n var httpRequestOptions = {\n method: 'POST',\n body: new FormData().append('soundBlob', soundBlob),\n headers: new Headers({\n 'Content-Type': 'multipart/form-data'\n })\n };\n httpDo(serverUrl, httpRequestOptions);\n\n // We can also create an `ObjectURL` pointing to the Blob\n var blobUrl = URL.createObjectURL(soundBlob);\n\n // The `
" + ], + class: 'p5.SoundFile', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3257, + description: + '

Connects to the p5sound instance (master output) by default.\nOptionally, you can pass in a specific source (i.e. a soundfile).

\n', + itemtype: 'method', + name: 'setInput', + params: [ + { + name: 'snd', + description: + '

set the sound source\n (optional, defaults to\n master output)

\n', + type: 'SoundObject|undefined', + optional: true + }, + { + name: 'smoothing', + description: + '

a range between 0.0 and 1.0\n to smooth amplitude readings

\n', + type: 'Number|undefined', + optional: true + } + ], + example: [ + "\n
\nfunction preload(){\n sound1 = loadSound('assets/beat.mp3');\n sound2 = loadSound('assets/drum.mp3');\n}\nfunction setup(){\n amplitude = new p5.Amplitude();\n sound1.play();\n sound2.play();\n amplitude.setInput(sound2);\n}\nfunction draw() {\n background(0);\n fill(255);\n var level = amplitude.getLevel();\n var size = map(level, 0, 1, 0, 200);\n ellipse(width/2, height/2, size, size);\n}\nfunction mouseClicked(){\n sound1.stop();\n sound2.stop();\n}\n
" + ], + class: 'p5.Amplitude', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3364, + description: + '

Returns a single Amplitude reading at the moment it is called.\nFor continuous readings, run in the draw loop.

\n', + itemtype: 'method', + name: 'getLevel', + params: [ + { + name: 'channel', + description: + '

Optionally return only channel 0 (left) or 1 (right)

\n', + type: 'Number', + optional: true + } + ], + return: { + description: 'Amplitude as a number between 0.0 and 1.0', + type: 'Number' + }, + example: [ + "\n
\nfunction preload(){\n sound = loadSound('assets/beat.mp3');\n}\nfunction setup() {\n amplitude = new p5.Amplitude();\n sound.play();\n}\nfunction draw() {\n background(0);\n fill(255);\n var level = amplitude.getLevel();\n var size = map(level, 0, 1, 0, 200);\n ellipse(width/2, height/2, size, size);\n}\nfunction mouseClicked(){\n sound.stop();\n}\n
" + ], + class: 'p5.Amplitude', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3405, + description: + '

Determines whether the results of Amplitude.process() will be\nNormalized. To normalize, Amplitude finds the difference the\nloudest reading it has processed and the maximum amplitude of\n1.0. Amplitude adds this difference to all values to produce\nresults that will reliably map between 0.0 and 1.0. However,\nif a louder moment occurs, the amount that Normalize adds to\nall the values will change. Accepts an optional boolean parameter\n(true or false). Normalizing is off by default.

\n', + itemtype: 'method', + name: 'toggleNormalize', + params: [ + { + name: 'boolean', + description: '

set normalize to true (1) or false (0)

\n', + type: 'Boolean', + optional: true + } + ], + class: 'p5.Amplitude', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3425, + description: + '

Smooth Amplitude analysis by averaging with the last analysis\nframe. Off by default.

\n', + itemtype: 'method', + name: 'smooth', + params: [ + { + name: 'set', + description: '

smoothing from 0.0 <= 1

\n', + type: 'Number' + } + ], + class: 'p5.Amplitude', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3599, + description: + '

Set the input source for the FFT analysis. If no source is\nprovided, FFT will analyze all sound in the sketch.

\n', + itemtype: 'method', + name: 'setInput', + params: [ + { + name: 'source', + description: '

p5.sound object (or web audio API source node)

\n', + type: 'Object', + optional: true + } + ], + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3618, + description: + '

Returns an array of amplitude values (between -1.0 and +1.0) that represent\na snapshot of amplitude readings in a single buffer. Length will be\nequal to bins (defaults to 1024). Can be used to draw the waveform\nof a sound.

\n', + itemtype: 'method', + name: 'waveform', + params: [ + { + name: 'bins', + description: + '

Must be a power of two between\n 16 and 1024. Defaults to 1024.

\n', + type: 'Number', + optional: true + }, + { + name: 'precision', + description: + '

If any value is provided, will return results\n in a Float32 Array which is more precise\n than a regular array.

\n', + type: 'String', + optional: true + } + ], + return: { + description: + 'Array Array of amplitude values (-1 to 1)\n over time. Array length = bins.', + type: 'Array' + }, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3661, + description: + '

Returns an array of amplitude values (between 0 and 255)\nacross the frequency spectrum. Length is equal to FFT bins\n(1024 by default). The array indices correspond to frequencies\n(i.e. pitches), from the lowest to the highest that humans can\nhear. Each value represents amplitude at that slice of the\nfrequency spectrum. Must be called prior to using\ngetEnergy().

\n', + itemtype: 'method', + name: 'analyze', + params: [ + { + name: 'bins', + description: + '

Must be a power of two between\n 16 and 1024. Defaults to 1024.

\n', + type: 'Number', + optional: true + }, + { + name: 'scale', + description: + '

If "dB," returns decibel\n float measurements between\n -140 and 0 (max).\n Otherwise returns integers from 0-255.

\n', + type: 'Number', + optional: true + } + ], + return: { + description: + 'spectrum Array of energy (amplitude/volume)\n values across the frequency spectrum.\n Lowest energy (silence) = 0, highest\n possible is 255.', + type: 'Array' + }, + example: [ + "\n
\nvar osc;\nvar fft;\n\nfunction setup(){\n createCanvas(100,100);\n osc = new p5.Oscillator();\n osc.amp(0);\n osc.start();\n fft = new p5.FFT();\n}\n\nfunction draw(){\n background(0);\n\n var freq = map(mouseX, 0, 800, 20, 15000);\n freq = constrain(freq, 1, 20000);\n osc.freq(freq);\n\n var spectrum = fft.analyze();\n noStroke();\n fill(0,255,0); // spectrum is green\n for (var i = 0; i< spectrum.length; i++){\n var x = map(i, 0, spectrum.length, 0, width);\n var h = -height + map(spectrum[i], 0, 255, height, 0);\n rect(x, height, width / spectrum.length, h );\n }\n\n stroke(255);\n text('Freq: ' + round(freq)+'Hz', 10, 10);\n\n isMouseOverCanvas();\n}\n\n// only play sound when mouse is over canvas\nfunction isMouseOverCanvas() {\n var mX = mouseX, mY = mouseY;\n if (mX > 0 && mX < width && mY < height && mY > 0) {\n osc.amp(0.5, 0.2);\n } else {\n osc.amp(0, 0.2);\n }\n}\n
\n\n" + ], + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3753, + description: + '

Returns the amount of energy (volume) at a specific\n\nfrequency, or the average amount of energy between two\nfrequencies. Accepts Number(s) corresponding\nto frequency (in Hz), or a String corresponding to predefined\nfrequency ranges ("bass", "lowMid", "mid", "highMid", "treble").\nReturns a range between 0 (no energy/volume at that frequency) and\n255 (maximum energy).\nNOTE: analyze() must be called prior to getEnergy(). Analyze()\ntells the FFT to analyze frequency data, and getEnergy() uses\nthe results determine the value at a specific frequency or\nrange of frequencies.

\n', + itemtype: 'method', + name: 'getEnergy', + params: [ + { + name: 'frequency1', + description: + '

Will return a value representing\n energy at this frequency. Alternately,\n the strings "bass", "lowMid" "mid",\n "highMid", and "treble" will return\n predefined frequency ranges.

\n', + type: 'Number|String' + }, + { + name: 'frequency2', + description: + '

If a second frequency is given,\n will return average amount of\n energy that exists between the\n two frequencies.

\n', + type: 'Number', + optional: true + } + ], + return: { + description: + 'Energy Energy (volume/amplitude) from\n 0 and 255.', + type: 'Number' + }, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3835, + description: + '

Returns the\n\nspectral centroid of the input signal.\nNOTE: analyze() must be called prior to getCentroid(). Analyze()\ntells the FFT to analyze frequency data, and getCentroid() uses\nthe results determine the spectral centroid.

\n', + itemtype: 'method', + name: 'getCentroid', + return: { + description: + 'Spectral Centroid Frequency Frequency of the spectral centroid in Hz.', + type: 'Number' + }, + example: [ + '\n
\n\n\nfunction setup(){\ncnv = createCanvas(100,100);\nsound = new p5.AudioIn();\nsound.start();\nfft = new p5.FFT();\nsound.connect(fft);\n}\n\n\nfunction draw(){\n\nvar centroidplot = 0.0;\nvar spectralCentroid = 0;\n\n\nbackground(0);\nstroke(0,255,0);\nvar spectrum = fft.analyze();\nfill(0,255,0); // spectrum is green\n\n//draw the spectrum\nfor (var i = 0; i< spectrum.length; i++){\n var x = map(log(i), 0, log(spectrum.length), 0, width);\n var h = map(spectrum[i], 0, 255, 0, height);\n var rectangle_width = (log(i+1)-log(i))*(width/log(spectrum.length));\n rect(x, height, rectangle_width, -h )\n}\n\nvar nyquist = 22050;\n\n// get the centroid\nspectralCentroid = fft.getCentroid();\n\n// the mean_freq_index calculation is for the display.\nvar mean_freq_index = spectralCentroid/(nyquist/spectrum.length);\n\ncentroidplot = map(log(mean_freq_index), 0, log(spectrum.length), 0, width);\n\n\nstroke(255,0,0); // the line showing where the centroid is will be red\n\nrect(centroidplot, 0, width / spectrum.length, height)\nnoStroke();\nfill(255,255,255); // text is white\ntext("centroid: ", 10, 20);\ntext(round(spectralCentroid)+" Hz", 10, 40);\n}\n
' + ], + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3915, + description: + '

Smooth FFT analysis by averaging with the last analysis frame.

\n', + itemtype: 'method', + name: 'smooth', + params: [ + { + name: 'smoothing', + description: + '

0.0 < smoothing < 1.0.\n Defaults to 0.8.

\n', + type: 'Number' + } + ], + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3937, + description: + '

Returns an array of average amplitude values for a given number\nof frequency bands split equally. N defaults to 16.\nNOTE: analyze() must be called prior to linAverages(). Analyze()\ntells the FFT to analyze frequency data, and linAverages() uses\nthe results to group them into a smaller set of averages.

\n', + itemtype: 'method', + name: 'linAverages', + params: [ + { + name: 'N', + description: '

Number of returned frequency groups

\n', + type: 'Number' + } + ], + return: { + description: + 'linearAverages Array of average amplitude values for each group', + type: 'Array' + }, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3967, + description: + '

Returns an array of average amplitude values of the spectrum, for a given\nset of \nOctave Bands\nNOTE: analyze() must be called prior to logAverages(). Analyze()\ntells the FFT to analyze frequency data, and logAverages() uses\nthe results to group them into a smaller set of averages.

\n', + itemtype: 'method', + name: 'logAverages', + params: [ + { + name: 'octaveBands', + description: '

Array of Octave Bands objects for grouping

\n', + type: 'Array' + } + ], + return: { + description: + 'logAverages Array of average amplitude values for each group', + type: 'Array' + }, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 3997, + description: + '

Calculates and Returns the 1/N\nOctave Bands\nN defaults to 3 and minimum central frequency to 15.625Hz.\n(1/3 Octave Bands ~= 31 Frequency Bands)\nSetting fCtr0 to a central value of a higher octave will ignore the lower bands\nand produce less frequency groups.

\n', + itemtype: 'method', + name: 'getOctaveBands', + params: [ + { + name: 'N', + description: + '

Specifies the 1/N type of generated octave bands

\n', + type: 'Number' + }, + { + name: 'fCtr0', + description: '

Minimum central frequency for the lowest band

\n', + type: 'Number' + } + ], + return: { + description: + 'octaveBands Array of octave band objects with their bounds', + type: 'Array' + }, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 4055, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 4076, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 4135, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 4453, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 4625, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 4783, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 4824, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 4881, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5049, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5097, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5128, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5149, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5169, + class: 'p5.FFT', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5268, + description: '

Fade to value, for smooth transitions

\n', + itemtype: 'method', + name: 'fade', + params: [ + { + name: 'value', + description: '

Value to set this signal

\n', + type: 'Number' + }, + { + name: 'secondsFromNow', + description: '

Length of fade, in seconds from now

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Signal', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5279, + description: + '

Connect a p5.sound object or Web Audio node to this\np5.Signal so that its amplitude values can be scaled.

\n', + itemtype: 'method', + name: 'setInput', + params: [ + { + name: 'input', + description: '', + type: 'Object' + } + ], + class: 'p5.Signal', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5293, + description: + '

Add a constant value to this audio signal,\nand return the resulting audio signal. Does\nnot change the value of the original signal,\ninstead it returns a new p5.SignalAdd.

\n', + itemtype: 'method', + name: 'add', + params: [ + { + name: 'number', + description: '', + type: 'Number' + } + ], + return: { + description: 'object', + type: 'p5.Signal' + }, + class: 'p5.Signal', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5312, + description: + '

Multiply this signal by a constant value,\nand return the resulting audio signal. Does\nnot change the value of the original signal,\ninstead it returns a new p5.SignalMult.

\n', + itemtype: 'method', + name: 'mult', + params: [ + { + name: 'number', + description: '

to multiply

\n', + type: 'Number' + } + ], + return: { + description: 'object', + type: 'p5.Signal' + }, + class: 'p5.Signal', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5331, + description: + '

Scale this signal value to a given range,\nand return the result as an audio signal. Does\nnot change the value of the original signal,\ninstead it returns a new p5.SignalScale.

\n', + itemtype: 'method', + name: 'scale', + params: [ + { + name: 'number', + description: '

to multiply

\n', + type: 'Number' + }, + { + name: 'inMin', + description: '

input range minumum

\n', + type: 'Number' + }, + { + name: 'inMax', + description: '

input range maximum

\n', + type: 'Number' + }, + { + name: 'outMin', + description: '

input range minumum

\n', + type: 'Number' + }, + { + name: 'outMax', + description: '

input range maximum

\n', + type: 'Number' + } + ], + return: { + description: 'object', + type: 'p5.Signal' + }, + class: 'p5.Signal', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5465, + description: + '

Start an oscillator. Accepts an optional parameter to\ndetermine how long (in seconds from now) until the\noscillator starts.

\n', + itemtype: 'method', + name: 'start', + params: [ + { + name: 'time', + description: '

startTime in seconds from now.

\n', + type: 'Number', + optional: true + }, + { + name: 'frequency', + description: '

frequency in Hz.

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Oscillator', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5505, + description: + '

Stop an oscillator. Accepts an optional parameter\nto determine how long (in seconds from now) until the\noscillator stops.

\n', + itemtype: 'method', + name: 'stop', + params: [ + { + name: 'secondsFromNow', + description: '

Time, in seconds from now.

\n', + type: 'Number' + } + ], + class: 'p5.Oscillator', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5521, + description: + '

Set the amplitude between 0 and 1.0. Or, pass in an object\nsuch as an oscillator to modulate amplitude with an audio signal.

\n', + itemtype: 'method', + name: 'amp', + params: [ + { + name: 'vol', + description: + '

between 0 and 1.0\n or a modulating signal/oscillator

\n', + type: 'Number|Object' + }, + { + name: 'rampTime', + description: '

create a fade that lasts rampTime

\n', + type: 'Number', + optional: true + }, + { + name: 'timeFromNow', + description: + '

schedule this event to happen\n seconds from now

\n', + type: 'Number', + optional: true + } + ], + return: { + description: + "gain If no value is provided,\n returns the Web Audio API\n AudioParam that controls\n this oscillator's\n gain/amplitude/volume)", + type: 'AudioParam' + }, + class: 'p5.Oscillator', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5556, + description: + '

Set frequency of an oscillator to a value. Or, pass in an object\nsuch as an oscillator to modulate the frequency with an audio signal.

\n', + itemtype: 'method', + name: 'freq', + params: [ + { + name: 'Frequency', + description: + '

Frequency in Hz\n or modulating signal/oscillator

\n', + type: 'Number|Object' + }, + { + name: 'rampTime', + description: '

Ramp time (in seconds)

\n', + type: 'Number', + optional: true + }, + { + name: 'timeFromNow', + description: + '

Schedule this event to happen\n at x seconds from now

\n', + type: 'Number', + optional: true + } + ], + return: { + description: + "Frequency If no value is provided,\n returns the Web Audio API\n AudioParam that controls\n this oscillator's frequency", + type: 'AudioParam' + }, + example: [ + '\n
\nvar osc = new p5.Oscillator(300);\nosc.start();\nosc.freq(40, 10);\n
' + ], + class: 'p5.Oscillator', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5615, + description: + '

Set type to 'sine', 'triangle', 'sawtooth' or 'square'.

\n', + itemtype: 'method', + name: 'setType', + params: [ + { + name: 'type', + description: + '

'sine', 'triangle', 'sawtooth' or 'square'.

\n', + type: 'String' + } + ], + class: 'p5.Oscillator', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5627, + description: '

Connect to a p5.sound / Web Audio object.

\n', + itemtype: 'method', + name: 'connect', + params: [ + { + name: 'unit', + description: '

A p5.sound or Web Audio object

\n', + type: 'Object' + } + ], + class: 'p5.Oscillator', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5644, + description: '

Disconnect all outputs

\n', + itemtype: 'method', + name: 'disconnect', + class: 'p5.Oscillator', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5661, + description: '

Pan between Left (-1) and Right (1)

\n', + itemtype: 'method', + name: 'pan', + params: [ + { + name: 'panning', + description: '

Number between -1 and 1

\n', + type: 'Number' + }, + { + name: 'timeFromNow', + description: + '

schedule this event to happen\n seconds from now

\n', + type: 'Number' + } + ], + class: 'p5.Oscillator', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5693, + description: + '

Set the phase of an oscillator between 0.0 and 1.0.\nIn this implementation, phase is a delay time\nbased on the oscillator's current frequency.

\n', + itemtype: 'method', + name: 'phase', + params: [ + { + name: 'phase', + description: '

float between 0.0 and 1.0

\n', + type: 'Number' + } + ], + class: 'p5.Oscillator', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5747, + description: + '

Add a value to the p5.Oscillator's output amplitude,\nand return the oscillator. Calling this method again\nwill override the initial add() with a new value.

\n', + itemtype: 'method', + name: 'add', + params: [ + { + name: 'number', + description: '

Constant number to add

\n', + type: 'Number' + } + ], + return: { + description: + 'Oscillator Returns this oscillator\n with scaled output', + type: 'p5.Oscillator' + }, + class: 'p5.Oscillator', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5764, + description: + '

Multiply the p5.Oscillator's output amplitude\nby a fixed value (i.e. turn it up!). Calling this method\nagain will override the initial mult() with a new value.

\n', + itemtype: 'method', + name: 'mult', + params: [ + { + name: 'number', + description: '

Constant number to multiply

\n', + type: 'Number' + } + ], + return: { + description: + 'Oscillator Returns this oscillator\n with multiplied output', + type: 'p5.Oscillator' + }, + class: 'p5.Oscillator', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5780, + description: + '

Scale this oscillator's amplitude values to a given\nrange, and return the oscillator. Calling this method\nagain will override the initial scale() with new values.

\n', + itemtype: 'method', + name: 'scale', + params: [ + { + name: 'inMin', + description: '

input range minumum

\n', + type: 'Number' + }, + { + name: 'inMax', + description: '

input range maximum

\n', + type: 'Number' + }, + { + name: 'outMin', + description: '

input range minumum

\n', + type: 'Number' + }, + { + name: 'outMax', + description: '

input range maximum

\n', + type: 'Number' + } + ], + return: { + description: + 'Oscillator Returns this oscillator\n with scaled output', + type: 'p5.Oscillator' + }, + class: 'p5.Oscillator', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 5879, + class: 'p5.SqrOsc', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 6082, + class: 'p5.SqrOsc', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 6369, + description: '

Time until envelope reaches attackLevel

\n', + itemtype: 'property', + name: 'attackTime', + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 6374, + description: '

Level once attack is complete.

\n', + itemtype: 'property', + name: 'attackLevel', + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 6379, + description: '

Time until envelope reaches decayLevel.

\n', + itemtype: 'property', + name: 'decayTime', + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 6384, + description: + '

Level after decay. The envelope will sustain here until it is released.

\n', + itemtype: 'property', + name: 'decayLevel', + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 6389, + description: '

Duration of the release portion of the envelope.

\n', + itemtype: 'property', + name: 'releaseTime', + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 6394, + description: '

Level at the end of the release.

\n', + itemtype: 'property', + name: 'releaseLevel', + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 6430, + description: + '

Reset the envelope with a series of time/value pairs.

\n', + itemtype: 'method', + name: 'set', + params: [ + { + name: 'attackTime', + description: + '

Time (in seconds) before level\n reaches attackLevel

\n', + type: 'Number' + }, + { + name: 'attackLevel', + description: + '

Typically an amplitude between\n 0.0 and 1.0

\n', + type: 'Number' + }, + { + name: 'decayTime', + description: '

Time

\n', + type: 'Number' + }, + { + name: 'decayLevel', + description: + '

Amplitude (In a standard ADSR envelope,\n decayLevel = sustainLevel)

\n', + type: 'Number' + }, + { + name: 'releaseTime', + description: '

Release Time (in seconds)

\n', + type: 'Number' + }, + { + name: 'releaseLevel', + description: '

Amplitude

\n', + type: 'Number' + } + ], + example: [ + "\n
\nvar t1 = 0.1; // attack time in seconds\nvar l1 = 0.7; // attack level 0.0 to 1.0\nvar t2 = 0.3; // decay time in seconds\nvar l2 = 0.1; // decay level 0.0 to 1.0\nvar t3 = 0.2; // sustain time in seconds\nvar l3 = 0.5; // sustain level 0.0 to 1.0\n// release level defaults to zero\n\nvar env;\nvar triOsc;\n\nfunction setup() {\n background(0);\n noStroke();\n fill(255);\n textAlign(CENTER);\n text('click to play', width/2, height/2);\n\n env = new p5.Envelope(t1, l1, t2, l2, t3, l3);\n triOsc = new p5.Oscillator('triangle');\n triOsc.amp(env); // give the env control of the triOsc's amp\n triOsc.start();\n}\n\n// mouseClick triggers envelope if over canvas\nfunction mouseClicked() {\n // is mouse over canvas?\n if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) {\n env.play(triOsc);\n }\n}\n
\n" + ], + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 6489, + description: + '

Set values like a traditional\n\nADSR envelope\n.

\n', + itemtype: 'method', + name: 'setADSR', + params: [ + { + name: 'attackTime', + description: + '

Time (in seconds before envelope\n reaches Attack Level

\n', + type: 'Number' + }, + { + name: 'decayTime', + description: + '

Time (in seconds) before envelope\n reaches Decay/Sustain Level

\n', + type: 'Number', + optional: true + }, + { + name: 'susRatio', + description: + '

Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\n where 1.0 = attackLevel, 0.0 = releaseLevel.\n The susRatio determines the decayLevel and the level at which the\n sustain portion of the envelope will sustain.\n For example, if attackLevel is 0.4, releaseLevel is 0,\n and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\n increased to 1.0 (using setRange),\n then decayLevel would increase proportionally, to become 0.5.

\n', + type: 'Number', + optional: true + }, + { + name: 'releaseTime', + description: '

Time in seconds from now (defaults to 0)

\n', + type: 'Number', + optional: true + } + ], + example: [ + "\n
\nvar attackLevel = 1.0;\nvar releaseLevel = 0;\n\nvar attackTime = 0.001;\nvar decayTime = 0.2;\nvar susPercent = 0.2;\nvar releaseTime = 0.5;\n\nvar env, triOsc;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n\n textAlign(CENTER);\n text('click to play', width/2, height/2);\n\n env = new p5.Envelope();\n env.setADSR(attackTime, decayTime, susPercent, releaseTime);\n env.setRange(attackLevel, releaseLevel);\n\n triOsc = new p5.Oscillator('triangle');\n triOsc.amp(env);\n triOsc.start();\n triOsc.freq(220);\n\n cnv.mousePressed(playEnv);\n}\n\nfunction playEnv() {\n env.play();\n}\n
" + ], + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 6554, + description: + '

Set max (attackLevel) and min (releaseLevel) of envelope.

\n', + itemtype: 'method', + name: 'setRange', + params: [ + { + name: 'aLevel', + description: '

attack level (defaults to 1)

\n', + type: 'Number' + }, + { + name: 'rLevel', + description: '

release level (defaults to 0)

\n', + type: 'Number' + } + ], + example: [ + "\n
\nvar attackLevel = 1.0;\nvar releaseLevel = 0;\n\nvar attackTime = 0.001;\nvar decayTime = 0.2;\nvar susPercent = 0.2;\nvar releaseTime = 0.5;\n\nvar env, triOsc;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n\n textAlign(CENTER);\n text('click to play', width/2, height/2);\n\n env = new p5.Envelope();\n env.setADSR(attackTime, decayTime, susPercent, releaseTime);\n env.setRange(attackLevel, releaseLevel);\n\n triOsc = new p5.Oscillator('triangle');\n triOsc.amp(env);\n triOsc.start();\n triOsc.freq(220);\n\n cnv.mousePressed(playEnv);\n}\n\nfunction playEnv() {\n env.play();\n}\n
" + ], + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 6633, + description: + '

Assign a parameter to be controlled by this envelope.\nIf a p5.Sound object is given, then the p5.Envelope will control its\noutput gain. If multiple inputs are provided, the env will\ncontrol all of them.

\n', + itemtype: 'method', + name: 'setInput', + params: [ + { + name: 'inputs', + description: + '

A p5.sound object or\n Web Audio Param.

\n', + type: 'Object', + optional: true, + multiple: true + } + ], + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 6648, + description: + '

Set whether the envelope ramp is linear (default) or exponential.\nExponential ramps can be useful because we perceive amplitude\nand frequency logarithmically.

\n', + itemtype: 'method', + name: 'setExp', + params: [ + { + name: 'isExp', + description: '

true is exponential, false is linear

\n', + type: 'Boolean' + } + ], + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 6666, + description: + '

Play tells the envelope to start acting on a given input.\nIf the input is a p5.sound object (i.e. AudioIn, Oscillator,\nSoundFile), then Envelope will control its output volume.\nEnvelopes can also be used to control any \nWeb Audio Audio Param.

\n', + itemtype: 'method', + name: 'play', + params: [ + { + name: 'unit', + description: + '

A p5.sound object or\n Web Audio Param.

\n', + type: 'Object' + }, + { + name: 'startTime', + description: '

time from now (in seconds) at which to play

\n', + type: 'Number', + optional: true + }, + { + name: 'sustainTime', + description: '

time to sustain before releasing the envelope

\n', + type: 'Number', + optional: true + } + ], + example: [ + "\n
\nvar attackLevel = 1.0;\nvar releaseLevel = 0;\n\nvar attackTime = 0.001;\nvar decayTime = 0.2;\nvar susPercent = 0.2;\nvar releaseTime = 0.5;\n\nvar env, triOsc;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n\n textAlign(CENTER);\n text('click to play', width/2, height/2);\n\n env = new p5.Envelope();\n env.setADSR(attackTime, decayTime, susPercent, releaseTime);\n env.setRange(attackLevel, releaseLevel);\n\n triOsc = new p5.Oscillator('triangle');\n triOsc.amp(env);\n triOsc.start();\n triOsc.freq(220);\n\n cnv.mousePressed(playEnv);\n}\n\nfunction playEnv() {\n // trigger env on triOsc, 0 seconds from now\n // After decay, sustain for 0.2 seconds before release\n env.play(triOsc, 0, 0.2);\n}\n
" + ], + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 6727, + description: + '

Trigger the Attack, and Decay portion of the Envelope.\nSimilar to holding down a key on a piano, but it will\nhold the sustain level until you let go. Input can be\nany p5.sound object, or a \nWeb Audio Param.

\n', + itemtype: 'method', + name: 'triggerAttack', + params: [ + { + name: 'unit', + description: '

p5.sound Object or Web Audio Param

\n', + type: 'Object' + }, + { + name: 'secondsFromNow', + description: '

time from now (in seconds)

\n', + type: 'Number' + } + ], + example: [ + "\n
\n\nvar attackLevel = 1.0;\nvar releaseLevel = 0;\n\nvar attackTime = 0.001;\nvar decayTime = 0.3;\nvar susPercent = 0.4;\nvar releaseTime = 0.5;\n\nvar env, triOsc;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n background(200);\n textAlign(CENTER);\n text('click to play', width/2, height/2);\n\n env = new p5.Envelope();\n env.setADSR(attackTime, decayTime, susPercent, releaseTime);\n env.setRange(attackLevel, releaseLevel);\n\n triOsc = new p5.Oscillator('triangle');\n triOsc.amp(env);\n triOsc.start();\n triOsc.freq(220);\n\n cnv.mousePressed(envAttack);\n}\n\nfunction envAttack() {\n console.log('trigger attack');\n env.triggerAttack();\n\n background(0,255,0);\n text('attack!', width/2, height/2);\n}\n\nfunction mouseReleased() {\n env.triggerRelease();\n\n background(200);\n text('click to play', width/2, height/2);\n}\n
" + ], + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 6834, + description: + '

Trigger the Release of the Envelope. This is similar to releasing\nthe key on a piano and letting the sound fade according to the\nrelease level and release time.

\n', + itemtype: 'method', + name: 'triggerRelease', + params: [ + { + name: 'unit', + description: '

p5.sound Object or Web Audio Param

\n', + type: 'Object' + }, + { + name: 'secondsFromNow', + description: '

time to trigger the release

\n', + type: 'Number' + } + ], + example: [ + "\n
\n\nvar attackLevel = 1.0;\nvar releaseLevel = 0;\n\nvar attackTime = 0.001;\nvar decayTime = 0.3;\nvar susPercent = 0.4;\nvar releaseTime = 0.5;\n\nvar env, triOsc;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n background(200);\n textAlign(CENTER);\n text('click to play', width/2, height/2);\n\n env = new p5.Envelope();\n env.setADSR(attackTime, decayTime, susPercent, releaseTime);\n env.setRange(attackLevel, releaseLevel);\n\n triOsc = new p5.Oscillator('triangle');\n triOsc.amp(env);\n triOsc.start();\n triOsc.freq(220);\n\n cnv.mousePressed(envAttack);\n}\n\nfunction envAttack() {\n console.log('trigger attack');\n env.triggerAttack();\n\n background(0,255,0);\n text('attack!', width/2, height/2);\n}\n\nfunction mouseReleased() {\n env.triggerRelease();\n\n background(200);\n text('click to play', width/2, height/2);\n}\n
" + ], + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 6931, + description: + '

Exponentially ramp to a value using the first two\nvalues from setADSR(attackTime, decayTime)\nas \ntime constants for simple exponential ramps.\nIf the value is higher than current value, it uses attackTime,\nwhile a decrease uses decayTime.

\n', + itemtype: 'method', + name: 'ramp', + params: [ + { + name: 'unit', + description: '

p5.sound Object or Web Audio Param

\n', + type: 'Object' + }, + { + name: 'secondsFromNow', + description: '

When to trigger the ramp

\n', + type: 'Number' + }, + { + name: 'v', + description: '

Target value

\n', + type: 'Number' + }, + { + name: 'v2', + description: '

Second target value (optional)

\n', + type: 'Number', + optional: true + } + ], + example: [ + "\n
\nvar env, osc, amp, cnv;\n\nvar attackTime = 0.001;\nvar decayTime = 0.2;\nvar attackLevel = 1;\nvar decayLevel = 0;\n\nfunction setup() {\n cnv = createCanvas(100, 100);\n fill(0,255,0);\n noStroke();\n\n env = new p5.Envelope();\n env.setADSR(attackTime, decayTime);\n\n osc = new p5.Oscillator();\n osc.amp(env);\n osc.start();\n\n amp = new p5.Amplitude();\n\n cnv.mousePressed(triggerRamp);\n}\n\nfunction triggerRamp() {\n env.ramp(osc, 0, attackLevel, decayLevel);\n}\n\nfunction draw() {\n background(20,20,20);\n text('click me', 10, 20);\n var h = map(amp.getLevel(), 0, 0.4, 0, height);;\n\n rect(0, height, width, -h);\n}\n
" + ], + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7038, + description: + '

Add a value to the p5.Oscillator's output amplitude,\nand return the oscillator. Calling this method\nagain will override the initial add() with new values.

\n', + itemtype: 'method', + name: 'add', + params: [ + { + name: 'number', + description: '

Constant number to add

\n', + type: 'Number' + } + ], + return: { + description: + 'Envelope Returns this envelope\n with scaled output', + type: 'p5.Envelope' + }, + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7054, + description: + '

Multiply the p5.Envelope's output amplitude\nby a fixed value. Calling this method\nagain will override the initial mult() with new values.

\n', + itemtype: 'method', + name: 'mult', + params: [ + { + name: 'number', + description: '

Constant number to multiply

\n', + type: 'Number' + } + ], + return: { + description: + 'Envelope Returns this envelope\n with scaled output', + type: 'p5.Envelope' + }, + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7070, + description: + '

Scale this envelope's amplitude values to a given\nrange, and return the envelope. Calling this method\nagain will override the initial scale() with new values.

\n', + itemtype: 'method', + name: 'scale', + params: [ + { + name: 'inMin', + description: '

input range minumum

\n', + type: 'Number' + }, + { + name: 'inMax', + description: '

input range maximum

\n', + type: 'Number' + }, + { + name: 'outMin', + description: '

input range minumum

\n', + type: 'Number' + }, + { + name: 'outMax', + description: '

input range maximum

\n', + type: 'Number' + } + ], + return: { + description: + 'Envelope Returns this envelope\n with scaled output', + type: 'p5.Envelope' + }, + class: 'p5.Envelope', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7178, + description: + '

Set the width of a Pulse object (an oscillator that implements\nPulse Width Modulation).

\n', + itemtype: 'method', + name: 'width', + params: [ + { + name: 'width', + description: + '

Width between the pulses (0 to 1.0,\n defaults to 0)

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Pulse', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7365, + description: + '

Set type of noise to 'white', 'pink' or 'brown'.\nWhite is the default.

\n', + itemtype: 'method', + name: 'setType', + params: [ + { + name: 'type', + description: + '

'white', 'pink' or 'brown'

\n', + type: 'String', + optional: true + } + ], + class: 'p5.Noise', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7478, + itemtype: 'property', + name: 'input', + type: 'GainNode', + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7482, + itemtype: 'property', + name: 'output', + type: 'GainNode', + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7486, + itemtype: 'property', + name: 'stream', + type: 'MediaStream|null', + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7490, + itemtype: 'property', + name: 'mediaStream', + type: 'MediaStreamAudioSourceNode|null', + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7494, + itemtype: 'property', + name: 'currentSource', + type: 'Number|null', + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7498, + description: + '

Client must allow browser to access their microphone / audioin source.\nDefault: false. Will become true when the client enables acces.

\n', + itemtype: 'property', + name: 'enabled', + type: 'Boolean', + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7505, + description: + '

Input amplitude, connect to it by default but not to master out

\n', + itemtype: 'property', + name: 'amplitude', + type: 'p5.Amplitude', + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7518, + description: + '

Start processing audio input. This enables the use of other\nAudioIn methods like getLevel(). Note that by default, AudioIn\nis not connected to p5.sound's output. So you won't hear\nanything unless you use the connect() method.

\n

Certain browsers limit access to the user's microphone. For example,\nChrome only allows access from localhost and over https. For this reason,\nyou may want to include an errorCallbackโ€”a function that is called in case\nthe browser won't provide mic access.

\n', + itemtype: 'method', + name: 'start', + params: [ + { + name: 'successCallback', + description: + '

Name of a function to call on\n success.

\n', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: + '

Name of a function to call if\n there was an error. For example,\n some browsers do not support\n getUserMedia.

\n', + type: 'Function', + optional: true + } + ], + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7571, + description: + '

Turn the AudioIn off. If the AudioIn is stopped, it cannot getLevel().\nIf re-starting, the user may be prompted for permission access.

\n', + itemtype: 'method', + name: 'stop', + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7587, + description: + '

Connect to an audio unit. If no parameter is provided, will\nconnect to the master output (i.e. your speakers).

\n', + itemtype: 'method', + name: 'connect', + params: [ + { + name: 'unit', + description: + '

An object that accepts audio input,\n such as an FFT

\n', + type: 'Object', + optional: true + } + ], + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7608, + description: + '

Disconnect the AudioIn from all audio units. For example, if\nconnect() had been called, disconnect() will stop sending\nsignal to your speakers.

\n', + itemtype: 'method', + name: 'disconnect', + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7622, + description: + '

Read the Amplitude (volume level) of an AudioIn. The AudioIn\nclass contains its own instance of the Amplitude class to help\nmake it easy to get a microphone's volume level. Accepts an\noptional smoothing value (0.0 < 1.0). NOTE: AudioIn must\n.start() before using .getLevel().

\n', + itemtype: 'method', + name: 'getLevel', + params: [ + { + name: 'smoothing', + description: + '

Smoothing is 0.0 by default.\n Smooths values based on previous values.

\n', + type: 'Number', + optional: true + } + ], + return: { + description: 'Volume level (between 0.0 and 1.0)', + type: 'Number' + }, + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7640, + description: + '

Set amplitude (volume) of a mic input between 0 and 1.0.

\n', + itemtype: 'method', + name: 'amp', + params: [ + { + name: 'vol', + description: '

between 0 and 1.0

\n', + type: 'Number' + }, + { + name: 'time', + description: '

ramp time (optional)

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7659, + description: + '

Returns a list of available input sources. This is a wrapper\nfor <a title="MediaDevices.enumerateDevices() - Web APIs | MDN" target="_blank" href=\n "https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices"

\n
\n

and it returns a Promise.

\n
\n', + itemtype: 'method', + name: 'getSources', + params: [ + { + name: 'successCallback', + description: + '

This callback function handles the sources when they\n have been enumerated. The callback function\n receives the deviceList array as its only argument

\n', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: + '

This optional callback receives the error\n message as its argument.

\n', + type: 'Function', + optional: true + } + ], + return: { + description: + 'Returns a Promise that can be used in place of the callbacks, similar\n to the enumerateDevices() method', + type: 'Promise' + }, + example: [ + '\n
\n var audiograb;\n\n function setup(){\n //new audioIn\n audioGrab = new p5.AudioIn();\n\n audioGrab.getSources(function(deviceList) {\n //print out the array of available sources\n console.log(deviceList);\n //set the source to the first item in the deviceList array\n audioGrab.setSource(0);\n });\n }\n
' + ], + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7710, + description: + '

Set the input source. Accepts a number representing a\nposition in the array returned by getSources().\nThis is only available in browsers that support\n<a title="MediaDevices.enumerateDevices() - Web APIs | MDN" target="_blank" href=\n"https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices"

\n
\n

navigator.mediaDevices.enumerateDevices().

\n
\n', + itemtype: 'method', + name: 'setSource', + params: [ + { + name: 'num', + description: '

position of input source in the array

\n', + type: 'Number' + } + ], + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7750, + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7766, + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7790, + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7816, + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7838, + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7860, + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7906, + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7937, + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 7955, + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8292, + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8314, + class: 'p5.AudioIn', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8390, + description: + '

In classes that extend\np5.Effect, connect effect nodes\nto the wet parameter

\n', + class: 'p5.Effect', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8403, + description: '

Set the output volume of the filter.

\n', + itemtype: 'method', + name: 'amp', + params: [ + { + name: 'vol', + description: '

amplitude between 0 and 1.0

\n', + type: 'Number', + optional: true + }, + { + name: 'rampTime', + description: '

create a fade that lasts until rampTime

\n', + type: 'Number', + optional: true + }, + { + name: 'tFromNow', + description: + '

schedule this event to happen in tFromNow seconds

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Effect', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8420, + description: + '

Link effects together in a chain
Example usage: filter.chain(reverb, delay, panner);\nMay be used with an open-ended number of arguments

\n', + itemtype: 'method', + name: 'chain', + params: [ + { + name: 'arguments', + description: '

Chain together multiple sound objects

\n', + type: 'Object', + optional: true + } + ], + class: 'p5.Effect', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8437, + description: '

Adjust the dry/wet value.

\n', + itemtype: 'method', + name: 'drywet', + params: [ + { + name: 'fade', + description: '

The desired drywet value (0 - 1.0)

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Effect', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8449, + description: + '

Send output to a p5.js-sound, Web Audio Node, or use signal to\ncontrol an AudioParam

\n', + itemtype: 'method', + name: 'connect', + params: [ + { + name: 'unit', + description: '', + type: 'Object' + } + ], + class: 'p5.Effect', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8460, + description: '

Disconnect all output.

\n', + itemtype: 'method', + name: 'disconnect', + class: 'p5.Effect', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8578, + description: + '

The p5.Filter is built with a\n\nWeb Audio BiquadFilter Node.

\n', + itemtype: 'property', + name: 'biquadFilter', + type: 'DelayNode', + class: 'p5.Filter', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8596, + description: + '

Filter an audio signal according to a set\nof filter parameters.

\n', + itemtype: 'method', + name: 'process', + params: [ + { + name: 'Signal', + description: '

An object that outputs audio

\n', + type: 'Object' + }, + { + name: 'freq', + description: '

Frequency in Hz, from 10 to 22050

\n', + type: 'Number', + optional: true + }, + { + name: 'res', + description: + '

Resonance/Width of the filter frequency\n from 0.001 to 1000

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Filter', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8610, + description: '

Set the frequency and the resonance of the filter.

\n', + itemtype: 'method', + name: 'set', + params: [ + { + name: 'freq', + description: '

Frequency in Hz, from 10 to 22050

\n', + type: 'Number', + optional: true + }, + { + name: 'res', + description: '

Resonance (Q) from 0.001 to 1000

\n', + type: 'Number', + optional: true + }, + { + name: 'timeFromNow', + description: + '

schedule this event to happen\n seconds from now

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Filter', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8627, + description: + '

Set the filter frequency, in Hz, from 10 to 22050 (the range of\nhuman hearing, although in reality most people hear in a narrower\nrange).

\n', + itemtype: 'method', + name: 'freq', + params: [ + { + name: 'freq', + description: '

Filter Frequency

\n', + type: 'Number' + }, + { + name: 'timeFromNow', + description: + '

schedule this event to happen\n seconds from now

\n', + type: 'Number', + optional: true + } + ], + return: { + description: 'value Returns the current frequency value', + type: 'Number' + }, + class: 'p5.Filter', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8651, + description: + '

Controls either width of a bandpass frequency,\nor the resonance of a low/highpass cutoff frequency.

\n', + itemtype: 'method', + name: 'res', + params: [ + { + name: 'res', + description: + '

Resonance/Width of filter freq\n from 0.001 to 1000

\n', + type: 'Number' + }, + { + name: 'timeFromNow', + description: + '

schedule this event to happen\n seconds from now

\n', + type: 'Number', + optional: true + } + ], + return: { + description: 'value Returns the current res value', + type: 'Number' + }, + class: 'p5.Filter', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8673, + description: + '

Controls the gain attribute of a Biquad Filter.\nThis is distinctly different from .amp() which is inherited from p5.Effect\n.amp() controls the volume via the output gain node\np5.Filter.gain() controls the gain parameter of a Biquad Filter node.

\n', + itemtype: 'method', + name: 'gain', + params: [ + { + name: 'gain', + description: '', + type: 'Number' + } + ], + return: { + description: 'Returns the current or updated gain value', + type: 'Number' + }, + class: 'p5.Filter', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8694, + description: + '

Toggle function. Switches between the specified type and allpass

\n', + itemtype: 'method', + name: 'toggle', + return: { + description: '[Toggle value]', + type: 'Boolean' + }, + class: 'p5.Filter', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8709, + description: + '

Set the type of a p5.Filter. Possible types include:\n"lowpass" (default), "highpass", "bandpass",\n"lowshelf", "highshelf", "peaking", "notch",\n"allpass".

\n', + itemtype: 'method', + name: 'setType', + params: [ + { + name: 't', + description: '', + type: 'String' + } + ], + class: 'p5.Filter', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8916, + description: + '

The p5.EQ is built with abstracted p5.Filter objects.\nTo modify any bands, use methods of the \np5.Filter API, especially gain and freq.\nBands are stored in an array, with indices 0 - 3, or 0 - 7

\n', + itemtype: 'property', + name: 'bands', + type: 'Array', + class: 'p5.EQ', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 8951, + description: '

Process an input by connecting it to the EQ

\n', + itemtype: 'method', + name: 'process', + params: [ + { + name: 'src', + description: '

Audio source

\n', + type: 'Object' + } + ], + class: 'p5.EQ', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9039, + description: + '

\nWeb Audio Spatial Panner Node

\n

Properties include

\n\n', + itemtype: 'property', + name: 'panner', + type: 'AudioNode', + class: 'p5.Panner3D', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9062, + description: '

Connect an audio sorce

\n', + itemtype: 'method', + name: 'process', + params: [ + { + name: 'src', + description: '

Input source

\n', + type: 'Object' + } + ], + class: 'p5.Panner3D', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9071, + description: '

Set the X,Y,Z position of the Panner

\n', + itemtype: 'method', + name: 'set', + params: [ + { + name: 'xVal', + description: '', + type: 'Number' + }, + { + name: 'yVal', + description: '', + type: 'Number' + }, + { + name: 'zVal', + description: '', + type: 'Number' + }, + { + name: 'time', + description: '', + type: 'Number' + } + ], + return: { + description: 'Updated x, y, z values as an array', + type: 'Array' + }, + class: 'p5.Panner3D', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9090, + description: '

Getter and setter methods for position coordinates

\n', + itemtype: 'method', + name: 'positionX', + return: { + description: 'updated coordinate value', + type: 'Number' + }, + class: 'p5.Panner3D', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9095, + description: '

Getter and setter methods for position coordinates

\n', + itemtype: 'method', + name: 'positionY', + return: { + description: 'updated coordinate value', + type: 'Number' + }, + class: 'p5.Panner3D', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9100, + description: '

Getter and setter methods for position coordinates

\n', + itemtype: 'method', + name: 'positionZ', + return: { + description: 'updated coordinate value', + type: 'Number' + }, + class: 'p5.Panner3D', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9138, + description: '

Set the X,Y,Z position of the Panner

\n', + itemtype: 'method', + name: 'orient', + params: [ + { + name: 'xVal', + description: '', + type: 'Number' + }, + { + name: 'yVal', + description: '', + type: 'Number' + }, + { + name: 'zVal', + description: '', + type: 'Number' + }, + { + name: 'time', + description: '', + type: 'Number' + } + ], + return: { + description: 'Updated x, y, z values as an array', + type: 'Array' + }, + class: 'p5.Panner3D', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9157, + description: '

Getter and setter methods for orient coordinates

\n', + itemtype: 'method', + name: 'orientX', + return: { + description: 'updated coordinate value', + type: 'Number' + }, + class: 'p5.Panner3D', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9162, + description: '

Getter and setter methods for orient coordinates

\n', + itemtype: 'method', + name: 'orientY', + return: { + description: 'updated coordinate value', + type: 'Number' + }, + class: 'p5.Panner3D', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9167, + description: '

Getter and setter methods for orient coordinates

\n', + itemtype: 'method', + name: 'orientZ', + return: { + description: 'updated coordinate value', + type: 'Number' + }, + class: 'p5.Panner3D', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9205, + description: '

Set the rolloff factor and max distance

\n', + itemtype: 'method', + name: 'setFalloff', + params: [ + { + name: 'maxDistance', + description: '', + type: 'Number', + optional: true + }, + { + name: 'rolloffFactor', + description: '', + type: 'Number', + optional: true + } + ], + class: 'p5.Panner3D', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9215, + description: '

Maxium distance between the source and the listener

\n', + itemtype: 'method', + name: 'maxDist', + params: [ + { + name: 'maxDistance', + description: '', + type: 'Number' + } + ], + return: { + description: 'updated value', + type: 'Number' + }, + class: 'p5.Panner3D', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9227, + description: + '

How quickly the volume is reduced as the source moves away from the listener

\n', + itemtype: 'method', + name: 'rollof', + params: [ + { + name: 'rolloffFactor', + description: '', + type: 'Number' + } + ], + return: { + description: 'updated value', + type: 'Number' + }, + class: 'p5.Panner3D', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9532, + description: + '

The p5.Delay is built with two\n\nWeb Audio Delay Nodes, one for each stereo channel.

\n', + itemtype: 'property', + name: 'leftDelay', + type: 'DelayNode', + class: 'p5.Delay', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9540, + description: + '

The p5.Delay is built with two\n\nWeb Audio Delay Nodes, one for each stereo channel.

\n', + itemtype: 'property', + name: 'rightDelay', + type: 'DelayNode', + class: 'p5.Delay', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9572, + description: + '

Add delay to an audio signal according to a set\nof delay parameters.

\n', + itemtype: 'method', + name: 'process', + params: [ + { + name: 'Signal', + description: '

An object that outputs audio

\n', + type: 'Object' + }, + { + name: 'delayTime', + description: + '

Time (in seconds) of the delay/echo.\n Some browsers limit delayTime to\n 1 second.

\n', + type: 'Number', + optional: true + }, + { + name: 'feedback', + description: + '

sends the delay back through itself\n in a loop that decreases in volume\n each time.

\n', + type: 'Number', + optional: true + }, + { + name: 'lowPass', + description: + '

Cutoff frequency. Only frequencies\n below the lowPass will be part of the\n delay.

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Delay', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9607, + description: + '

Set the delay (echo) time, in seconds. Usually this value will be\na floating point number between 0.0 and 1.0.

\n', + itemtype: 'method', + name: 'delayTime', + params: [ + { + name: 'delayTime', + description: '

Time (in seconds) of the delay

\n', + type: 'Number' + } + ], + class: 'p5.Delay', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9626, + description: + '

Feedback occurs when Delay sends its signal back through its input\nin a loop. The feedback amount determines how much signal to send each\ntime through the loop. A feedback greater than 1.0 is not desirable because\nit will increase the overall output each time through the loop,\ncreating an infinite feedback loop. The default value is 0.5

\n', + itemtype: 'method', + name: 'feedback', + params: [ + { + name: 'feedback', + description: + '

0.0 to 1.0, or an object such as an\n Oscillator that can be used to\n modulate this param

\n', + type: 'Number|Object' + } + ], + return: { + description: 'Feedback value', + type: 'Number' + }, + class: 'p5.Delay', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9654, + description: + '

Set a lowpass filter frequency for the delay. A lowpass filter\nwill cut off any frequencies higher than the filter frequency.

\n', + itemtype: 'method', + name: 'filter', + params: [ + { + name: 'cutoffFreq', + description: + '

A lowpass filter will cut off any\n frequencies higher than the filter frequency.

\n', + type: 'Number|Object' + }, + { + name: 'res', + description: + '

Resonance of the filter frequency\n cutoff, or an object (i.e. a p5.Oscillator)\n that can be used to modulate this parameter.\n High numbers (i.e. 15) will produce a resonance,\n low numbers (i.e. .2) will produce a slope.

\n', + type: 'Number|Object' + } + ], + class: 'p5.Delay', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9671, + description: + '

Choose a preset type of delay. 'pingPong' bounces the signal\nfrom the left to the right channel to produce a stereo effect.\nAny other parameter will revert to the default delay setting.

\n', + itemtype: 'method', + name: 'setType', + params: [ + { + name: 'type', + description: '

'pingPong' (1) or 'default' (0)

\n', + type: 'String|Number' + } + ], + class: 'p5.Delay', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9704, + description: '

Set the output level of the delay effect.

\n', + itemtype: 'method', + name: 'amp', + params: [ + { + name: 'volume', + description: '

amplitude between 0 and 1.0

\n', + type: 'Number' + }, + { + name: 'rampTime', + description: '

create a fade that lasts rampTime

\n', + type: 'Number', + optional: true + }, + { + name: 'timeFromNow', + description: + '

schedule this event to happen\n seconds from now

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Delay', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9713, + description: '

Send output to a p5.sound or web audio object

\n', + itemtype: 'method', + name: 'connect', + params: [ + { + name: 'unit', + description: '', + type: 'Object' + } + ], + class: 'p5.Delay', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9719, + description: '

Disconnect all output.

\n', + itemtype: 'method', + name: 'disconnect', + class: 'p5.Delay', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9812, + description: + '

Connect a source to the reverb, and assign reverb parameters.

\n', + itemtype: 'method', + name: 'process', + params: [ + { + name: 'src', + description: + '

p5.sound / Web Audio object with a sound\n output.

\n', + type: 'Object' + }, + { + name: 'seconds', + description: + '

Duration of the reverb, in seconds.\n Min: 0, Max: 10. Defaults to 3.

\n', + type: 'Number', + optional: true + }, + { + name: 'decayRate', + description: + '

Percentage of decay with each echo.\n Min: 0, Max: 100. Defaults to 2.

\n', + type: 'Number', + optional: true + }, + { + name: 'reverse', + description: '

Play the reverb backwards or forwards.

\n', + type: 'Boolean', + optional: true + } + ], + class: 'p5.Reverb', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9841, + description: + '

Set the reverb settings. Similar to .process(), but without\nassigning a new input.

\n', + itemtype: 'method', + name: 'set', + params: [ + { + name: 'seconds', + description: + '

Duration of the reverb, in seconds.\n Min: 0, Max: 10. Defaults to 3.

\n', + type: 'Number', + optional: true + }, + { + name: 'decayRate', + description: + '

Percentage of decay with each echo.\n Min: 0, Max: 100. Defaults to 2.

\n', + type: 'Number', + optional: true + }, + { + name: 'reverse', + description: '

Play the reverb backwards or forwards.

\n', + type: 'Boolean', + optional: true + } + ], + class: 'p5.Reverb', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9869, + description: '

Set the output level of the reverb effect.

\n', + itemtype: 'method', + name: 'amp', + params: [ + { + name: 'volume', + description: '

amplitude between 0 and 1.0

\n', + type: 'Number' + }, + { + name: 'rampTime', + description: '

create a fade that lasts rampTime

\n', + type: 'Number', + optional: true + }, + { + name: 'timeFromNow', + description: + '

schedule this event to happen\n seconds from now

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Reverb', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9878, + description: '

Send output to a p5.sound or web audio object

\n', + itemtype: 'method', + name: 'connect', + params: [ + { + name: 'unit', + description: '', + type: 'Object' + } + ], + class: 'p5.Reverb', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9884, + description: '

Disconnect all output.

\n', + itemtype: 'method', + name: 'disconnect', + class: 'p5.Reverb', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9975, + description: + '

Internally, the p5.Convolver uses the a\n\nWeb Audio Convolver Node.

\n', + itemtype: 'property', + name: 'convolverNode', + type: 'ConvolverNode', + class: 'p5.Convolver', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 9998, + description: + '

Create a p5.Convolver. Accepts a path to a soundfile\nthat will be used to generate an impulse response.

\n', + itemtype: 'method', + name: 'createConvolver', + params: [ + { + name: 'path', + description: '

path to a sound file

\n', + type: 'String' + }, + { + name: 'callback', + description: + '

function to call if loading is successful.\n The object will be passed in as the argument\n to the callback function.

\n', + type: 'Function', + optional: true + }, + { + name: 'errorCallback', + description: + '

function to call if loading is not successful.\n A custom error will be passed in as the argument\n to the callback function.

\n', + type: 'Function', + optional: true + } + ], + return: { + description: '', + type: 'p5.Convolver' + }, + example: [ + "\n
\nvar cVerb, sound;\nfunction preload() {\n // We have both MP3 and OGG versions of all sound assets\n soundFormats('ogg', 'mp3');\n\n // Try replacing 'bx-spring' with other soundfiles like\n // 'concrete-tunnel' 'small-plate' 'drum' 'beatbox'\n cVerb = createConvolver('assets/bx-spring.mp3');\n\n // Try replacing 'Damscray_DancingTiger' with\n // 'beat', 'doorbell', lucky_dragons_-_power_melody'\n sound = loadSound('assets/Damscray_DancingTiger.mp3');\n}\n\nfunction setup() {\n // disconnect from master output...\n sound.disconnect();\n\n // ...and process with cVerb\n // so that we only hear the convolution\n cVerb.process(sound);\n\n sound.play();\n}\n
" + ], + class: 'p5.Convolver', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10122, + description: + '

Connect a source to the reverb, and assign reverb parameters.

\n', + itemtype: 'method', + name: 'process', + params: [ + { + name: 'src', + description: + '

p5.sound / Web Audio object with a sound\n output.

\n', + type: 'Object' + } + ], + example: [ + "\n
\nvar cVerb, sound;\nfunction preload() {\n soundFormats('ogg', 'mp3');\n\n cVerb = createConvolver('assets/concrete-tunnel.mp3');\n\n sound = loadSound('assets/beat.mp3');\n}\n\nfunction setup() {\n // disconnect from master output...\n sound.disconnect();\n\n // ...and process with (i.e. connect to) cVerb\n // so that we only hear the convolution\n cVerb.process(sound);\n\n sound.play();\n}\n
" + ], + class: 'p5.Convolver', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10154, + description: + '

If you load multiple impulse files using the .addImpulse method,\nthey will be stored as Objects in this Array. Toggle between them\nwith the toggleImpulse(id) method.

\n', + itemtype: 'property', + name: 'impulses', + type: 'Array', + class: 'p5.Convolver', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10162, + description: + '

Load and assign a new Impulse Response to the p5.Convolver.\nThe impulse is added to the .impulses array. Previous\nimpulses can be accessed with the .toggleImpulse(id)\nmethod.

\n', + itemtype: 'method', + name: 'addImpulse', + params: [ + { + name: 'path', + description: '

path to a sound file

\n', + type: 'String' + }, + { + name: 'callback', + description: '

function (optional)

\n', + type: 'Function' + }, + { + name: 'errorCallback', + description: '

function (optional)

\n', + type: 'Function' + } + ], + class: 'p5.Convolver', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10180, + description: + '

Similar to .addImpulse, except that the .impulses\nArray is reset to save memory. A new .impulses\narray is created with this impulse as the only item.

\n', + itemtype: 'method', + name: 'resetImpulse', + params: [ + { + name: 'path', + description: '

path to a sound file

\n', + type: 'String' + }, + { + name: 'callback', + description: '

function (optional)

\n', + type: 'Function' + }, + { + name: 'errorCallback', + description: '

function (optional)

\n', + type: 'Function' + } + ], + class: 'p5.Convolver', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10198, + description: + '

If you have used .addImpulse() to add multiple impulses\nto a p5.Convolver, then you can use this method to toggle between\nthe items in the .impulses Array. Accepts a parameter\nto identify which impulse you wish to use, identified either by its\noriginal filename (String) or by its position in the .impulses\n Array (Number).
\nYou can access the objects in the .impulses Array directly. Each\nObject has two attributes: an .audioBuffer (type:\nWeb Audio \nAudioBuffer) and a .name, a String that corresponds\nwith the original filename.

\n', + itemtype: 'method', + name: 'toggleImpulse', + params: [ + { + name: 'id', + description: + '

Identify the impulse by its original filename\n (String), or by its position in the\n .impulses Array (Number).

\n', + type: 'String|Number' + } + ], + class: 'p5.Convolver', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10240, + class: 'p5.Convolver', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10265, + class: 'p5.Convolver', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10460, + description: + '

Set the global tempo, in beats per minute, for all\np5.Parts. This method will impact all active p5.Parts.

\n', + itemtype: 'method', + name: 'setBPM', + params: [ + { + name: 'BPM', + description: '

Beats Per Minute

\n', + type: 'Number' + }, + { + name: 'rampTime', + description: '

Seconds from now

\n', + type: 'Number' + } + ], + class: 'p5.Convolver', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10550, + description: + '

Array of values to pass into the callback\nat each step of the phrase. Depending on the callback\nfunction's requirements, these values may be numbers,\nstrings, or an object with multiple parameters.\nZero (0) indicates a rest.

\n', + itemtype: 'property', + name: 'sequence', + type: 'Array', + class: 'p5.Phrase', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10638, + description: '

Set the tempo of this part, in Beats Per Minute.

\n', + itemtype: 'method', + name: 'setBPM', + params: [ + { + name: 'BPM', + description: '

Beats Per Minute

\n', + type: 'Number' + }, + { + name: 'rampTime', + description: '

Seconds from now

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Part', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10648, + description: + '

Returns the tempo, in Beats Per Minute, of this part.

\n', + itemtype: 'method', + name: 'getBPM', + return: { + description: '', + type: 'Number' + }, + class: 'p5.Part', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10657, + description: + '

Start playback of this part. It will play\nthrough all of its phrases at a speed\ndetermined by setBPM.

\n', + itemtype: 'method', + name: 'start', + params: [ + { + name: 'time', + description: '

seconds from now

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Part', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10673, + description: + '

Loop playback of this part. It will begin\nlooping through all of its phrases at a speed\ndetermined by setBPM.

\n', + itemtype: 'method', + name: 'loop', + params: [ + { + name: 'time', + description: '

seconds from now

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Part', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10690, + description: '

Tell the part to stop looping.

\n', + itemtype: 'method', + name: 'noLoop', + class: 'p5.Part', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10702, + description: + '

Stop the part and cue it to step 0. Playback will resume from the begining of the Part when it is played again.

\n', + itemtype: 'method', + name: 'stop', + params: [ + { + name: 'time', + description: '

seconds from now

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Part', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10712, + description: + '

Pause the part. Playback will resume\nfrom the current step.

\n', + itemtype: 'method', + name: 'pause', + params: [ + { + name: 'time', + description: '

seconds from now

\n', + type: 'Number' + } + ], + class: 'p5.Part', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10724, + description: '

Add a p5.Phrase to this Part.

\n', + itemtype: 'method', + name: 'addPhrase', + params: [ + { + name: 'phrase', + description: '

reference to a p5.Phrase

\n', + type: 'p5.Phrase' + } + ], + class: 'p5.Part', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10745, + description: + '

Remove a phrase from this part, based on the name it was\ngiven when it was created.

\n', + itemtype: 'method', + name: 'removePhrase', + params: [ + { + name: 'phraseName', + description: '', + type: 'String' + } + ], + class: 'p5.Part', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10759, + description: + '

Get a phrase from this part, based on the name it was\ngiven when it was created. Now you can modify its array.

\n', + itemtype: 'method', + name: 'getPhrase', + params: [ + { + name: 'phraseName', + description: '', + type: 'String' + } + ], + class: 'p5.Part', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10773, + description: + '

Find all sequences with the specified name, and replace their patterns with the specified array.

\n', + itemtype: 'method', + name: 'replaceSequence', + params: [ + { + name: 'phraseName', + description: '', + type: 'String' + }, + { + name: 'sequence', + description: + '

Array of values to pass into the callback\n at each step of the phrase.

\n', + type: 'Array' + } + ], + class: 'p5.Part', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10800, + description: + '

Set the function that will be called at every step. This will clear the previous function.

\n', + itemtype: 'method', + name: 'onStep', + params: [ + { + name: 'callback', + description: + '

The name of the callback\n you want to fire\n on every beat/tatum.

\n', + type: 'Function' + } + ], + class: 'p5.Part', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10853, + description: '

Start playback of the score.

\n', + itemtype: 'method', + name: 'start', + class: 'p5.Score', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10862, + description: '

Stop playback of the score.

\n', + itemtype: 'method', + name: 'stop', + class: 'p5.Score', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10872, + description: '

Pause playback of the score.

\n', + itemtype: 'method', + name: 'pause', + class: 'p5.Score', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10880, + description: '

Loop playback of the score.

\n', + itemtype: 'method', + name: 'loop', + class: 'p5.Score', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10889, + description: + '

Stop looping playback of the score. If it\nis currently playing, this will go into effect\nafter the current round of playback completes.

\n', + itemtype: 'method', + name: 'noLoop', + class: 'p5.Score', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10914, + description: '

Set the tempo for all parts in the score

\n', + itemtype: 'method', + name: 'setBPM', + params: [ + { + name: 'BPM', + description: '

Beats Per Minute

\n', + type: 'Number' + }, + { + name: 'rampTime', + description: '

Seconds from now

\n', + type: 'Number' + } + ], + class: 'p5.Score', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10982, + description: + '

musicalTimeMode uses Tone.Time convention\ntrue if string, false if number

\n', + itemtype: 'property', + name: 'musicalTimeMode', + type: 'Boolean', + class: 'p5.SoundLoop', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10989, + description: + '

musicalTimeMode variables\nmodify these only when the interval is specified in musicalTime format as a string

\n', + class: 'p5.SoundLoop', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 10996, + description: + '

Set a limit to the number of loops to play. defaults to Infinity

\n', + itemtype: 'property', + name: 'maxIterations', + type: 'Number', + class: 'p5.SoundLoop', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11005, + description: + '

Do not initiate the callback if timeFromNow is < 0\nThis ususually occurs for a few milliseconds when the page\nis not fully loaded

\n

The callback should only be called until maxIterations is reached

\n', + class: 'p5.SoundLoop', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11019, + description: '

Start the loop

\n', + itemtype: 'method', + name: 'start', + params: [ + { + name: 'timeFromNow', + description: '

schedule a starting time

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.SoundLoop', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11032, + description: '

Stop the loop

\n', + itemtype: 'method', + name: 'stop', + params: [ + { + name: 'timeFromNow', + description: '

schedule a stopping time

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.SoundLoop', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11045, + description: '

Pause the loop

\n', + itemtype: 'method', + name: 'pause', + params: [ + { + name: 'timeFromNow', + description: '

schedule a pausing time

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.SoundLoop', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11058, + description: + '

Synchronize loops. Use this method to start two more more loops in synchronization\nor to start a loop in synchronization with a loop that is already playing\nThis method will schedule the implicit loop in sync with the explicit master loop\ni.e. loopToStart.syncedStart(loopToSyncWith)

\n', + itemtype: 'method', + name: 'syncedStart', + params: [ + { + name: 'otherLoop', + description: '

a p5.SoundLoop to sync with

\n', + type: 'Object' + }, + { + name: 'timeFromNow', + description: + '

Start the loops in sync after timeFromNow seconds

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.SoundLoop', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11139, + description: + '

Getters and Setters, setting any paramter will result in a change in the clock's\nfrequency, that will be reflected after the next callback\nbeats per minute (defaults to 60)

\n', + itemtype: 'property', + name: 'bpm', + type: 'Number', + class: 'p5.SoundLoop', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11157, + description: + '

number of quarter notes in a measure (defaults to 4)

\n', + itemtype: 'property', + name: 'timeSignature', + type: 'Number', + class: 'p5.SoundLoop', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11173, + description: '

length of the loops interval

\n', + itemtype: 'property', + name: 'interval', + type: 'Number|String', + class: 'p5.SoundLoop', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11187, + description: '

how many times the callback has been called so far

\n', + itemtype: 'property', + name: 'iterations', + type: 'Number', + readonly: '', + class: 'p5.SoundLoop', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11228, + description: + '

The p5.Compressor is built with a Web Audio Dynamics Compressor Node\n

\n', + itemtype: 'property', + name: 'compressor', + type: 'AudioNode', + class: 'p5.Compressor', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11239, + description: + '

Performs the same function as .connect, but also accepts\noptional parameters to set compressor's audioParams

\n', + itemtype: 'method', + name: 'process', + params: [ + { + name: 'src', + description: '

Sound source to be connected

\n', + type: 'Object' + }, + { + name: 'attack', + description: + '

The amount of time (in seconds) to reduce the gain by 10dB,\n default = .003, range 0 - 1

\n', + type: 'Number', + optional: true + }, + { + name: 'knee', + description: + '

A decibel value representing the range above the \n threshold where the curve smoothly transitions to the "ratio" portion.\n default = 30, range 0 - 40

\n', + type: 'Number', + optional: true + }, + { + name: 'ratio', + description: + '

The amount of dB change in input for a 1 dB change in output\n default = 12, range 1 - 20

\n', + type: 'Number', + optional: true + }, + { + name: 'threshold', + description: + '

The decibel value above which the compression will start taking effect\n default = -24, range -100 - 0

\n', + type: 'Number', + optional: true + }, + { + name: 'release', + description: + '

The amount of time (in seconds) to increase the gain by 10dB\n default = .25, range 0 - 1

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Compressor', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11262, + description: '

Set the paramters of a compressor.

\n', + itemtype: 'method', + name: 'set', + params: [ + { + name: 'attack', + description: + '

The amount of time (in seconds) to reduce the gain by 10dB,\n default = .003, range 0 - 1

\n', + type: 'Number' + }, + { + name: 'knee', + description: + '

A decibel value representing the range above the \n threshold where the curve smoothly transitions to the "ratio" portion.\n default = 30, range 0 - 40

\n', + type: 'Number' + }, + { + name: 'ratio', + description: + '

The amount of dB change in input for a 1 dB change in output\n default = 12, range 1 - 20

\n', + type: 'Number' + }, + { + name: 'threshold', + description: + '

The decibel value above which the compression will start taking effect\n default = -24, range -100 - 0

\n', + type: 'Number' + }, + { + name: 'release', + description: + '

The amount of time (in seconds) to increase the gain by 10dB\n default = .25, range 0 - 1

\n', + type: 'Number' + } + ], + class: 'p5.Compressor', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11294, + description: '

Get current attack or set value w/ time ramp

\n', + itemtype: 'method', + name: 'attack', + params: [ + { + name: 'attack', + description: + '

Attack is the amount of time (in seconds) to reduce the gain by 10dB,\n default = .003, range 0 - 1

\n', + type: 'Number', + optional: true + }, + { + name: 'time', + description: + '

Assign time value to schedule the change in value

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Compressor', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11314, + description: '

Get current knee or set value w/ time ramp

\n', + itemtype: 'method', + name: 'knee', + params: [ + { + name: 'knee', + description: + '

A decibel value representing the range above the \n threshold where the curve smoothly transitions to the "ratio" portion.\n default = 30, range 0 - 40

\n', + type: 'Number', + optional: true + }, + { + name: 'time', + description: + '

Assign time value to schedule the change in value

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Compressor', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11334, + description: '

Get current ratio or set value w/ time ramp

\n', + itemtype: 'method', + name: 'ratio', + params: [ + { + name: 'ratio', + description: + '

The amount of dB change in input for a 1 dB change in output\n default = 12, range 1 - 20

\n', + type: 'Number', + optional: true + }, + { + name: 'time', + description: + '

Assign time value to schedule the change in value

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Compressor', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11353, + description: '

Get current threshold or set value w/ time ramp

\n', + itemtype: 'method', + name: 'threshold', + params: [ + { + name: 'threshold', + description: + '

The decibel value above which the compression will start taking effect\n default = -24, range -100 - 0

\n', + type: 'Number' + }, + { + name: 'time', + description: + '

Assign time value to schedule the change in value

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Compressor', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11372, + description: '

Get current release or set value w/ time ramp

\n', + itemtype: 'method', + name: 'release', + params: [ + { + name: 'release', + description: + '

The amount of time (in seconds) to increase the gain by 10dB\n default = .25, range 0 - 1

\n', + type: 'Number' + }, + { + name: 'time', + description: + '

Assign time value to schedule the change in value

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Compressor', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11392, + description: '

Return the current reduction value

\n', + itemtype: 'method', + name: 'reduction', + return: { + description: + 'Value of the amount of gain reduction that is applied to the signal', + type: 'Number' + }, + class: 'p5.Compressor', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11508, + description: + '

Connect a specific device to the p5.SoundRecorder.\nIf no parameter is given, p5.SoundRecorer will record\nall audible p5.sound from your sketch.

\n', + itemtype: 'method', + name: 'setInput', + params: [ + { + name: 'unit', + description: + '

p5.sound object or a web audio unit\n that outputs sound

\n', + type: 'Object', + optional: true + } + ], + class: 'p5.SoundRecorder', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11529, + description: + '

Start recording. To access the recording, provide\na p5.SoundFile as the first parameter. The p5.SoundRecorder\nwill send its recording to that p5.SoundFile for playback once\nrecording is complete. Optional parameters include duration\n(in seconds) of the recording, and a callback function that\nwill be called once the complete recording has been\ntransfered to the p5.SoundFile.

\n', + itemtype: 'method', + name: 'record', + params: [ + { + name: 'soundFile', + description: '

p5.SoundFile

\n', + type: 'p5.SoundFile' + }, + { + name: 'duration', + description: '

Time (in seconds)

\n', + type: 'Number', + optional: true + }, + { + name: 'callback', + description: + '

The name of a function that will be\n called once the recording completes

\n', + type: 'Function', + optional: true + } + ], + class: 'p5.SoundRecorder', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11562, + description: + '

Stop the recording. Once the recording is stopped,\nthe results will be sent to the p5.SoundFile that\nwas given on .record(), and if a callback function\nwas provided on record, that function will be called.

\n', + itemtype: 'method', + name: 'stop', + class: 'p5.SoundRecorder', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11635, + description: + '

Save a p5.SoundFile as a .wav file. The browser will prompt the user\nto download the file to their device.\nFor uploading audio to a server, use\np5.SoundFile.saveBlob.

\n', + itemtype: 'method', + name: 'saveSound', + params: [ + { + name: 'soundFile', + description: '

p5.SoundFile that you wish to save

\n', + type: 'p5.SoundFile' + }, + { + name: 'fileName', + description: '

name of the resulting .wav file.

\n', + type: 'String' + } + ], + class: 'p5', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11761, + description: '

isDetected is set to true when a peak is detected.

\n', + itemtype: 'attribute', + name: 'isDetected', + type: 'Boolean', + default: 'false', + class: 'p5.PeakDetect', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11774, + description: + '

The update method is run in the draw loop.

\n

Accepts an FFT object. You must call .analyze()\non the FFT object prior to updating the peakDetect\nbecause it relies on a completed FFT analysis.

\n', + itemtype: 'method', + name: 'update', + params: [ + { + name: 'fftObject', + description: '

A p5.FFT object

\n', + type: 'p5.FFT' + } + ], + class: 'p5.PeakDetect', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11805, + description: + '

onPeak accepts two arguments: a function to call when\na peak is detected. The value of the peak,\nbetween 0.0 and 1.0, is passed to the callback.

\n', + itemtype: 'method', + name: 'onPeak', + params: [ + { + name: 'callback', + description: + '

Name of a function that will\n be called when a peak is\n detected.

\n', + type: 'Function' + }, + { + name: 'val', + description: + '

Optional value to pass\n into the function when\n a peak is detected.

\n', + type: 'Object', + optional: true + } + ], + example: [ + "\n
\nvar cnv, soundFile, fft, peakDetect;\nvar ellipseWidth = 0;\n\nfunction preload() {\n soundFile = loadSound('assets/beat.mp3');\n}\n\nfunction setup() {\n cnv = createCanvas(100,100);\n textAlign(CENTER);\n\n fft = new p5.FFT();\n peakDetect = new p5.PeakDetect();\n\n setupSound();\n\n // when a beat is detected, call triggerBeat()\n peakDetect.onPeak(triggerBeat);\n}\n\nfunction draw() {\n background(0);\n fill(255);\n text('click to play', width/2, height/2);\n\n fft.analyze();\n peakDetect.update(fft);\n\n ellipseWidth *= 0.95;\n ellipse(width/2, height/2, ellipseWidth, ellipseWidth);\n}\n\n// this function is called by peakDetect.onPeak\nfunction triggerBeat() {\n ellipseWidth = 50;\n}\n\n// mouseclick starts/stops sound\nfunction setupSound() {\n cnv.mouseClicked( function() {\n if (soundFile.isPlaying() ) {\n soundFile.stop();\n } else {\n soundFile.play();\n }\n });\n}\n
" + ], + class: 'p5.PeakDetect', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11954, + description: '

Connect a source to the gain node.

\n', + itemtype: 'method', + name: 'setInput', + params: [ + { + name: 'src', + description: + '

p5.sound / Web Audio object with a sound\n output.

\n', + type: 'Object' + } + ], + class: 'p5.Gain', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11964, + description: '

Send output to a p5.sound or web audio object

\n', + itemtype: 'method', + name: 'connect', + params: [ + { + name: 'unit', + description: '', + type: 'Object' + } + ], + class: 'p5.Gain', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11974, + description: '

Disconnect all output.

\n', + itemtype: 'method', + name: 'disconnect', + class: 'p5.Gain', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 11984, + description: '

Set the output level of the gain node.

\n', + itemtype: 'method', + name: 'amp', + params: [ + { + name: 'volume', + description: '

amplitude between 0 and 1.0

\n', + type: 'Number' + }, + { + name: 'rampTime', + description: '

create a fade that lasts rampTime

\n', + type: 'Number', + optional: true + }, + { + name: 'timeFromNow', + description: + '

schedule this event to happen\n seconds from now

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.Gain', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12042, + description: '

Connect to p5 objects or Web Audio Nodes

\n', + itemtype: 'method', + name: 'connect', + params: [ + { + name: 'unit', + description: '', + type: 'Object' + } + ], + class: 'p5.AudioVoice', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12051, + description: '

Disconnect from soundOut

\n', + itemtype: 'method', + name: 'disconnect', + class: 'p5.AudioVoice', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12131, + description: + '

Play tells the MonoSynth to start playing a note. This method schedules\nthe calling of .triggerAttack and .triggerRelease.

\n', + itemtype: 'method', + name: 'play', + params: [ + { + name: 'note', + description: + '

the note you want to play, specified as a\n frequency in Hertz (Number) or as a midi\n value in Note/Octave format ("C4", "Eb3"...etc")\n See \n Tone. Defaults to 440 hz.

\n', + type: 'String | Number' + }, + { + name: 'velocity', + description: + '

velocity of the note to play (ranging from 0 to 1)

\n', + type: 'Number', + optional: true + }, + { + name: 'secondsFromNow', + description: '

time from now (in seconds) at which to play

\n', + type: 'Number', + optional: true + }, + { + name: 'sustainTime', + description: '

time to sustain before releasing the envelope

\n', + type: 'Number', + optional: true + } + ], + example: [ + '\n
\nvar monoSynth;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n cnv.mousePressed(playSynth);\n\n monoSynth = new p5.MonoSynth();\n\n textAlign(CENTER);\n text(\'click to play\', width/2, height/2);\n}\n\nfunction playSynth() {\n // time from now (in seconds)\n var time = 0;\n // note duration (in seconds)\n var dur = 1/6;\n // note velocity (volume, from 0 to 1)\n var v = random();\n\n monoSynth.play("Fb3", v, 0, dur);\n monoSynth.play("Gb3", v, time += dur, dur);\n\n background(random(255), random(255), 255);\n text(\'click to play\', width/2, height/2);\n}\n
\n' + ], + class: 'p5.MonoSynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12179, + description: + '

Trigger the Attack, and Decay portion of the Envelope.\nSimilar to holding down a key on a piano, but it will\nhold the sustain level until you let go.

\n', + params: [ + { + name: 'note', + description: + '

the note you want to play, specified as a\n frequency in Hertz (Number) or as a midi\n value in Note/Octave format ("C4", "Eb3"...etc")\n See \n Tone. Defaults to 440 hz

\n', + type: 'String | Number' + }, + { + name: 'velocity', + description: + '

velocity of the note to play (ranging from 0 to 1)

\n', + type: 'Number', + optional: true + }, + { + name: 'secondsFromNow', + description: '

time from now (in seconds) at which to play

\n', + type: 'Number', + optional: true + } + ], + itemtype: 'method', + name: 'triggerAttack', + example: [ + '\n
\nvar monoSynth = new p5.MonoSynth();\n\nfunction mousePressed() {\n monoSynth.triggerAttack("E3");\n}\n\nfunction mouseReleased() {\n monoSynth.triggerRelease();\n}\n
' + ], + class: 'p5.MonoSynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12212, + description: + '

Trigger the release of the Envelope. This is similar to releasing\nthe key on a piano and letting the sound fade according to the\nrelease level and release time.

\n', + params: [ + { + name: 'secondsFromNow', + description: '

time to trigger the release

\n', + type: 'Number' + } + ], + itemtype: 'method', + name: 'triggerRelease', + example: [ + '\n
\nvar monoSynth = new p5.MonoSynth();\n\nfunction mousePressed() {\n monoSynth.triggerAttack("E3");\n}\n\nfunction mouseReleased() {\n monoSynth.triggerRelease();\n}\n
' + ], + class: 'p5.MonoSynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12236, + description: + '

Set values like a traditional\n\nADSR envelope\n.

\n', + itemtype: 'method', + name: 'setADSR', + params: [ + { + name: 'attackTime', + description: + '

Time (in seconds before envelope\n reaches Attack Level

\n', + type: 'Number' + }, + { + name: 'decayTime', + description: + '

Time (in seconds) before envelope\n reaches Decay/Sustain Level

\n', + type: 'Number', + optional: true + }, + { + name: 'susRatio', + description: + '

Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\n where 1.0 = attackLevel, 0.0 = releaseLevel.\n The susRatio determines the decayLevel and the level at which the\n sustain portion of the envelope will sustain.\n For example, if attackLevel is 0.4, releaseLevel is 0,\n and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\n increased to 1.0 (using setRange),\n then decayLevel would increase proportionally, to become 0.5.

\n', + type: 'Number', + optional: true + }, + { + name: 'releaseTime', + description: '

Time in seconds from now (defaults to 0)

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.MonoSynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12260, + description: '

Getters and Setters

\n', + itemtype: 'property', + name: 'attack', + type: 'Number', + class: 'p5.MonoSynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12264, + itemtype: 'property', + name: 'decay', + type: 'Number', + class: 'p5.MonoSynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12267, + itemtype: 'property', + name: 'sustain', + type: 'Number', + class: 'p5.MonoSynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12270, + itemtype: 'property', + name: 'release', + type: 'Number', + class: 'p5.MonoSynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12307, + description: '

MonoSynth amp

\n', + itemtype: 'method', + name: 'amp', + params: [ + { + name: 'vol', + description: '

desired volume

\n', + type: 'Number' + }, + { + name: 'rampTime', + description: '

Time to reach new volume

\n', + type: 'Number', + optional: true + } + ], + return: { + description: 'new volume value', + type: 'Number' + }, + class: 'p5.MonoSynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12321, + description: '

Connect to a p5.sound / Web Audio object.

\n', + itemtype: 'method', + name: 'connect', + params: [ + { + name: 'unit', + description: '

A p5.sound or Web Audio object

\n', + type: 'Object' + } + ], + class: 'p5.MonoSynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12331, + description: '

Disconnect all outputs

\n', + itemtype: 'method', + name: 'disconnect', + class: 'p5.MonoSynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12341, + description: + '

Get rid of the MonoSynth and free up its resources / memory.

\n', + itemtype: 'method', + name: 'dispose', + class: 'p5.MonoSynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12411, + description: + '

An object that holds information about which notes have been played and\nwhich notes are currently being played. New notes are added as keys\non the fly. While a note has been attacked, but not released, the value of the\nkey is the audiovoice which is generating that note. When notes are released,\nthe value of the key becomes undefined.

\n', + itemtype: 'property', + name: 'notes', + class: 'p5.PolySynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12423, + description: + '

A PolySynth must have at least 1 voice, defaults to 8

\n', + itemtype: 'property', + name: 'polyvalue', + class: 'p5.PolySynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12428, + description: + '

Monosynth that generates the sound for each note that is triggered. The\np5.PolySynth defaults to using the p5.MonoSynth as its voice.

\n', + itemtype: 'property', + name: 'AudioVoice', + class: 'p5.PolySynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12459, + description: + '

Play a note by triggering noteAttack and noteRelease with sustain time

\n', + itemtype: 'method', + name: 'play', + params: [ + { + name: 'note', + description: + '

midi note to play (ranging from 0 to 127 - 60 being a middle C)

\n', + type: 'Number', + optional: true + }, + { + name: 'velocity', + description: + '

velocity of the note to play (ranging from 0 to 1)

\n', + type: 'Number', + optional: true + }, + { + name: 'secondsFromNow', + description: '

time from now (in seconds) at which to play

\n', + type: 'Number', + optional: true + }, + { + name: 'sustainTime', + description: '

time to sustain before releasing the envelope

\n', + type: 'Number', + optional: true + } + ], + example: [ + '\n
\nvar polySynth;\n\nfunction setup() {\n var cnv = createCanvas(100, 100);\n cnv.mousePressed(playSynth);\n\n polySynth = new p5.PolySynth();\n\n textAlign(CENTER);\n text(\'click to play\', width/2, height/2);\n}\n\nfunction playSynth() {\n // note duration (in seconds)\n var dur = 0.1;\n\n // time from now (in seconds)\n var time = 0;\n\n // velocity (volume, from 0 to 1)\n var vel = 0.1;\n\n polySynth.play("G2", vel, 0, dur);\n polySynth.play("C3", vel, 0, dur);\n polySynth.play("G3", vel, 0, dur);\n\n background(random(255), random(255), 255);\n text(\'click to play\', width/2, height/2);\n}\n
' + ], + class: 'p5.PolySynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12505, + description: + '

noteADSR sets the envelope for a specific note that has just been triggered.\nUsing this method modifies the envelope of whichever audiovoice is being used\nto play the desired note. The envelope should be reset before noteRelease is called\nin order to prevent the modified envelope from being used on other notes.

\n', + itemtype: 'method', + name: 'noteADSR', + params: [ + { + name: 'note', + description: '

Midi note on which ADSR should be set.

\n', + type: 'Number', + optional: true + }, + { + name: 'attackTime', + description: + '

Time (in seconds before envelope\n reaches Attack Level

\n', + type: 'Number', + optional: true + }, + { + name: 'decayTime', + description: + '

Time (in seconds) before envelope\n reaches Decay/Sustain Level

\n', + type: 'Number', + optional: true + }, + { + name: 'susRatio', + description: + '

Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\n where 1.0 = attackLevel, 0.0 = releaseLevel.\n The susRatio determines the decayLevel and the level at which the\n sustain portion of the envelope will sustain.\n For example, if attackLevel is 0.4, releaseLevel is 0,\n and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\n increased to 1.0 (using setRange),\n then decayLevel would increase proportionally, to become 0.5.

\n', + type: 'Number', + optional: true + }, + { + name: 'releaseTime', + description: '

Time in seconds from now (defaults to 0)

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.PolySynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12533, + description: + '

Set the PolySynths global envelope. This method modifies the envelopes of each\nmonosynth so that all notes are played with this envelope.

\n', + itemtype: 'method', + name: 'setADSR', + params: [ + { + name: 'attackTime', + description: + '

Time (in seconds before envelope\n reaches Attack Level

\n', + type: 'Number', + optional: true + }, + { + name: 'decayTime', + description: + '

Time (in seconds) before envelope\n reaches Decay/Sustain Level

\n', + type: 'Number', + optional: true + }, + { + name: 'susRatio', + description: + '

Ratio between attackLevel and releaseLevel, on a scale from 0 to 1,\n where 1.0 = attackLevel, 0.0 = releaseLevel.\n The susRatio determines the decayLevel and the level at which the\n sustain portion of the envelope will sustain.\n For example, if attackLevel is 0.4, releaseLevel is 0,\n and susAmt is 0.5, the decayLevel would be 0.2. If attackLevel is\n increased to 1.0 (using setRange),\n then decayLevel would increase proportionally, to become 0.5.

\n', + type: 'Number', + optional: true + }, + { + name: 'releaseTime', + description: '

Time in seconds from now (defaults to 0)

\n', + type: 'Number', + optional: true + } + ], + class: 'p5.PolySynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12557, + description: + '

Trigger the Attack, and Decay portion of a MonoSynth.\nSimilar to holding down a key on a piano, but it will\nhold the sustain level until you let go.

\n', + itemtype: 'method', + name: 'noteAttack', + params: [ + { + name: 'note', + description: '

midi note on which attack should be triggered.

\n', + type: 'Number', + optional: true + }, + { + name: 'velocity', + description: + '

velocity of the note to play (ranging from 0 to 1)/

\n', + type: 'Number', + optional: true + }, + { + name: 'secondsFromNow', + description: '

time from now (in seconds)

\n', + type: 'Number', + optional: true + } + ], + example: [ + '\n
\nvar polySynth = new p5.PolySynth();\nvar pitches = ["G", "D", "G", "C"];\nvar octaves = [2, 3, 4];\n\nfunction mousePressed() {\n // play a chord: multiple notes at the same time\n for (var i = 0; i < 4; i++) {\n var note = random(pitches) + random(octaves);\n polySynth.noteAttack(note, 0.1);\n }\n}\n\nfunction mouseReleased() {\n // release all voices\n polySynth.noteRelease();\n}\n
' + ], + class: 'p5.PolySynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12647, + description: + '

Trigger the Release of an AudioVoice note. This is similar to releasing\nthe key on a piano and letting the sound fade according to the\nrelease level and release time.

\n', + itemtype: 'method', + name: 'noteRelease', + params: [ + { + name: 'note', + description: + '

midi note on which attack should be triggered.\n If no value is provided, all notes will be released.

\n', + type: 'Number', + optional: true + }, + { + name: 'secondsFromNow', + description: '

time to trigger the release

\n', + type: 'Number', + optional: true + } + ], + example: [ + '\n
\nvar pitches = ["G", "D", "G", "C"];\nvar octaves = [2, 3, 4];\nvar polySynth = new p5.PolySynth();\n\nfunction mousePressed() {\n // play a chord: multiple notes at the same time\n for (var i = 0; i < 4; i++) {\n var note = random(pitches) + random(octaves);\n polySynth.noteAttack(note, 0.1);\n }\n}\n\nfunction mouseReleased() {\n // release all voices\n polySynth.noteRelease();\n}\n
\n' + ], + class: 'p5.PolySynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12712, + description: '

Connect to a p5.sound / Web Audio object.

\n', + itemtype: 'method', + name: 'connect', + params: [ + { + name: 'unit', + description: '

A p5.sound or Web Audio object

\n', + type: 'Object' + } + ], + class: 'p5.PolySynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12722, + description: '

Disconnect all outputs

\n', + itemtype: 'method', + name: 'disconnect', + class: 'p5.PolySynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12732, + description: + '

Get rid of the MonoSynth and free up its resources / memory.

\n', + itemtype: 'method', + name: 'dispose', + class: 'p5.PolySynth', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12800, + description: + '

The p5.Distortion is built with a\n\nWeb Audio WaveShaper Node.

\n', + itemtype: 'property', + name: 'WaveShaperNode', + type: 'AudioNode', + class: 'p5.Distortion', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12815, + description: + '

Process a sound source, optionally specify amount and oversample values.

\n', + itemtype: 'method', + name: 'process', + params: [ + { + name: 'amount', + description: + '

Unbounded distortion amount.\n Normal values range from 0-1.

\n', + type: 'Number', + optional: true, + optdefault: '0.25' + }, + { + name: 'oversample', + description: '

'none', '2x', or '4x'.

\n', + type: 'String', + optional: true, + optdefault: "'none'" + } + ], + class: 'p5.Distortion', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12827, + description: + '

Set the amount and oversample of the waveshaper distortion.

\n', + itemtype: 'method', + name: 'set', + params: [ + { + name: 'amount', + description: + '

Unbounded distortion amount.\n Normal values range from 0-1.

\n', + type: 'Number', + optional: true, + optdefault: '0.25' + }, + { + name: 'oversample', + description: '

'none', '2x', or '4x'.

\n', + type: 'String', + optional: true, + optdefault: "'none'" + } + ], + class: 'p5.Distortion', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12845, + description: + '

Return the distortion amount, typically between 0-1.

\n', + itemtype: 'method', + name: 'getAmount', + return: { + description: + 'Unbounded distortion amount.\n Normal values range from 0-1.', + type: 'Number' + }, + class: 'p5.Distortion', + module: 'p5.sound', + submodule: 'p5.sound' + }, + { + file: 'lib/addons/p5.sound.js', + line: 12855, + description: '

Return the oversampling.

\n', + itemtype: 'method', + name: 'getOversample', + return: { + description: "Oversample can either be 'none', '2x', or '4x'.", + type: 'String' + }, + class: 'p5.Distortion', + module: 'p5.sound', + submodule: 'p5.sound' + } + ], + warnings: [ + { + message: 'unknown tag: alt', + line: ' src/color/creating_reading.js:16' + }, + { + message: 'unknown tag: alt', + line: ' src/color/creating_reading.js:61' + }, + { + message: 'unknown tag: alt', + line: ' src/color/creating_reading.js:91' + }, + { + message: 'unknown tag: alt', + line: ' src/color/creating_reading.js:134' + }, + { + message: 'unknown tag: alt', + line: ' src/color/creating_reading.js:332' + }, + { + message: 'unknown tag: alt', + line: ' src/color/creating_reading.js:363' + }, + { + message: 'unknown tag: alt', + line: ' src/color/creating_reading.js:400' + }, + { + message: 'unknown tag: alt', + line: ' src/color/creating_reading.js:497' + }, + { + message: 'unknown tag: alt', + line: ' src/color/creating_reading.js:527' + }, + { + message: 'unknown tag: alt', + line: ' src/color/creating_reading.js:567' + }, + { + message: 'unknown tag: alt', + line: ' src/color/p5.Color.js:52' + }, + { + message: 'unknown tag: alt', + line: ' src/color/p5.Color.js:253' + }, + { + message: 'unknown tag: alt', + line: ' src/color/p5.Color.js:280' + }, + { + message: 'unknown tag: alt', + line: ' src/color/p5.Color.js:307' + }, + { + message: 'unknown tag: alt', + line: ' src/color/p5.Color.js:334' + }, + { + message: 'unknown tag: alt', + line: ' src/color/p5.Color.js:768' + }, + { + message: 'unknown tag: alt', + line: ' src/color/setting.js:15' + }, + { + message: 'unknown tag: alt', + line: ' src/color/setting.js:181' + }, + { + message: 'unknown tag: alt', + line: ' src/color/setting.js:220' + }, + { + message: 'unknown tag: alt', + line: ' src/color/setting.js:341' + }, + { + message: 'unknown tag: alt', + line: ' src/color/setting.js:498' + }, + { + message: 'unknown tag: alt', + line: ' src/color/setting.js:539' + }, + { + message: 'unknown tag: alt', + line: ' src/color/setting.js:579' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/2d_primitives.js:102' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/2d_primitives.js:210' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/2d_primitives.js:270' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/2d_primitives.js:300' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/2d_primitives.js:356' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/2d_primitives.js:391' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/2d_primitives.js:458' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/2d_primitives.js:541' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/2d_primitives.js:595' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/attributes.js:14' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/attributes.js:83' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/attributes.js:116' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/attributes.js:185' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/attributes.js:219' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/attributes.js:256' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/attributes.js:323' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/curves.js:13' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/curves.js:96' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/curves.js:139' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/curves.js:194' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/curves.js:273' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/curves.js:364' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/curves.js:406' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/curves.js:502' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/vertex.js:22' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/vertex.js:70' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/vertex.js:270' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/vertex.js:270' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/vertex.js:270' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/vertex.js:398' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/vertex.js:443' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/vertex.js:508' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/vertex.js:568' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/vertex.js:654' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/vertex.js:720' + }, + { + message: 'unknown tag: alt', + line: ' src/core/shape/vertex.js:813' + }, + { + message: 'unknown tag: alt', + line: ' src/core/constants.js:61' + }, + { + message: 'unknown tag: alt', + line: ' src/core/constants.js:80' + }, + { + message: 'unknown tag: alt', + line: ' src/core/constants.js:99' + }, + { + message: 'unknown tag: alt', + line: ' src/core/constants.js:118' + }, + { + message: 'unknown tag: alt', + line: ' src/core/constants.js:137' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:22' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:53' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:80' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:131' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:163' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:232' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:332' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:357' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:376' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:395' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:411' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:427' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:505' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:556' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' src/core/environment.js:591' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' src/core/environment.js:611' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:611' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:668' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:699' + }, + { + message: 'unknown tag: alt', + line: ' src/core/environment.js:722' + }, + { + message: 'unknown tag: alt', + line: ' src/core/main.js:42' + }, + { + message: 'unknown tag: alt', + line: ' src/core/main.js:83' + }, + { + message: 'unknown tag: alt', + line: ' src/core/main.js:114' + }, + { + message: 'unknown tag: alt', + line: ' src/core/main.js:396' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Element.js:52' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Element.js:122' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Element.js:162' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Element.js:197' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Element.js:258' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Element.js:307' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Element.js:373' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Element.js:427' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Element.js:483' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Element.js:541' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Element.js:584' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Element.js:626' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Element.js:674' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Element.js:714' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Element.js:763' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Element.js:801' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Graphics.js:65' + }, + { + message: 'unknown tag: alt', + line: ' src/core/p5.Graphics.js:117' + }, + { + message: 'unknown tag: alt', + line: ' src/core/rendering.js:17' + }, + { + message: 'unknown tag: alt', + line: ' src/core/rendering.js:119' + }, + { + message: 'unknown tag: alt', + line: ' src/core/rendering.js:174' + }, + { + message: 'unknown tag: alt', + line: ' src/core/rendering.js:197' + }, + { + message: 'unknown tag: alt', + line: ' src/core/rendering.js:236' + }, + { + message: 'unknown tag: alt', + line: ' src/core/structure.js:12' + }, + { + message: 'unknown tag: alt', + line: ' src/core/structure.js:74' + }, + { + message: 'unknown tag: alt', + line: ' src/core/structure.js:122' + }, + { + message: 'unknown tag: alt', + line: ' src/core/structure.js:191' + }, + { + message: 'unknown tag: alt', + line: ' src/core/structure.js:261' + }, + { + message: 'unknown tag: alt', + line: ' src/core/transform.js:13' + }, + { + message: 'unknown tag: alt', + line: ' src/core/transform.js:150' + }, + { + message: 'unknown tag: alt', + line: ' src/core/transform.js:176' + }, + { + message: 'unknown tag: alt', + line: ' src/core/transform.js:216' + }, + { + message: 'unknown tag: alt', + line: ' src/core/transform.js:246' + }, + { + message: 'unknown tag: alt', + line: ' src/core/transform.js:276' + }, + { + message: 'unknown tag: alt', + line: ' src/core/transform.js:306' + }, + { + message: 'unknown tag: alt', + line: ' src/core/transform.js:381' + }, + { + message: 'unknown tag: alt', + line: ' src/core/transform.js:421' + }, + { + message: 'unknown tag: alt', + line: ' src/core/transform.js:461' + }, + { + message: 'unknown tag: alt', + line: ' src/data/local_storage.js:11' + }, + { + message: 'unknown tag: alt', + line: ' src/data/local_storage.js:88' + }, + { + message: 'unknown tag: alt', + line: ' src/events/acceleration.js:23' + }, + { + message: 'unknown tag: alt', + line: ' src/events/acceleration.js:46' + }, + { + message: 'unknown tag: alt', + line: ' src/events/acceleration.js:69' + }, + { + message: 'unknown tag: alt', + line: ' src/events/acceleration.js:135' + }, + { + message: 'unknown tag: alt', + line: ' src/events/acceleration.js:166' + }, + { + message: 'unknown tag: alt', + line: ' src/events/acceleration.js:197' + }, + { + message: 'unknown tag: alt', + line: ' src/events/acceleration.js:233' + }, + { + message: 'unknown tag: alt', + line: ' src/events/acceleration.js:278' + }, + { + message: 'unknown tag: alt', + line: ' src/events/acceleration.js:322' + }, + { + message: 'unknown tag: alt', + line: ' src/events/acceleration.js:380' + }, + { + message: 'unknown tag: alt', + line: ' src/events/acceleration.js:419' + }, + { + message: 'unknown tag: alt', + line: ' src/events/acceleration.js:462' + }, + { + message: 'unknown tag: alt', + line: ' src/events/acceleration.js:506' + }, + { + message: 'unknown tag: alt', + line: ' src/events/acceleration.js:538' + }, + { + message: 'unknown tag: alt', + line: ' src/events/acceleration.js:597' + }, + { + message: 'unknown tag: alt', + line: ' src/events/keyboard.js:12' + }, + { + message: 'unknown tag: alt', + line: ' src/events/keyboard.js:39' + }, + { + message: 'unknown tag: alt', + line: ' src/events/keyboard.js:68' + }, + { + message: 'unknown tag: alt', + line: ' src/events/keyboard.js:109' + }, + { + message: 'unknown tag: alt', + line: ' src/events/keyboard.js:196' + }, + { + message: 'unknown tag: alt', + line: ' src/events/keyboard.js:248' + }, + { + message: 'unknown tag: alt', + line: ' src/events/keyboard.js:312' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:22' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:49' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:76' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:109' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:141' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:180' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:219' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:260' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:302' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:341' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:432' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:487' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:568' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:650' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:728' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:798' + }, + { + message: 'unknown tag: alt', + line: ' src/events/mouse.js:883' + }, + { + message: 'unknown tag: alt', + line: ' src/events/touch.js:12' + }, + { + message: 'unknown tag: alt', + line: ' src/events/touch.js:74' + }, + { + message: 'unknown tag: alt', + line: ' src/events/touch.js:154' + }, + { + message: 'unknown tag: alt', + line: ' src/events/touch.js:227' + }, + { + message: 'unknown tag: alt', + line: ' src/image/image.js:22' + }, + { + message: 'unknown tag: alt', + line: ' src/image/image.js:102' + }, + { + message: 'unknown tag: alt', + line: ' src/image/image.js:195' + }, + { + message: 'unknown tag: alt', + line: ' src/image/loading_displaying.js:17' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' src/image/loading_displaying.js:110' + }, + { + message: 'unknown tag: alt', + line: ' src/image/loading_displaying.js:127' + }, + { + message: 'unknown tag: alt', + line: ' src/image/loading_displaying.js:298' + }, + { + message: 'unknown tag: alt', + line: ' src/image/loading_displaying.js:398' + }, + { + message: 'unknown tag: alt', + line: ' src/image/loading_displaying.js:464' + }, + { + message: 'unknown tag: alt', + line: ' src/image/p5.Image.js:90' + }, + { + message: 'unknown tag: alt', + line: ' src/image/p5.Image.js:117' + }, + { + message: 'unknown tag: alt', + line: ' src/image/p5.Image.js:153' + }, + { + message: 'unknown tag: alt', + line: ' src/image/p5.Image.js:232' + }, + { + message: 'unknown tag: alt', + line: ' src/image/p5.Image.js:268' + }, + { + message: 'unknown tag: alt', + line: ' src/image/p5.Image.js:316' + }, + { + message: 'unknown tag: alt', + line: ' src/image/p5.Image.js:371' + }, + { + message: 'unknown tag: alt', + line: ' src/image/p5.Image.js:409' + }, + { + message: 'unknown tag: alt', + line: ' src/image/p5.Image.js:494' + }, + { + message: 'unknown tag: alt', + line: ' src/image/p5.Image.js:575' + }, + { + message: 'unknown tag: alt', + line: ' src/image/p5.Image.js:638' + }, + { + message: 'unknown tag: alt', + line: ' src/image/p5.Image.js:674' + }, + { + message: 'unknown tag: alt', + line: ' src/image/p5.Image.js:796' + }, + { + message: 'unknown tag: alt', + line: ' src/image/pixels.js:14' + }, + { + message: 'unknown tag: alt', + line: ' src/image/pixels.js:83' + }, + { + message: 'unknown tag: alt', + line: ' src/image/pixels.js:177' + }, + { + message: 'unknown tag: alt', + line: ' src/image/pixels.js:236' + }, + { + message: 'unknown tag: alt', + line: ' src/image/pixels.js:415' + }, + { + message: 'unknown tag: alt', + line: ' src/image/pixels.js:503' + }, + { + message: 'unknown tag: alt', + line: ' src/image/pixels.js:540' + }, + { + message: 'unknown tag: alt', + line: ' src/image/pixels.js:614' + }, + { + message: 'unknown tag: alt', + line: ' src/io/files.js:19' + }, + { + message: 'unknown tag: alt', + line: ' src/io/files.js:184' + }, + { + message: 'unknown tag: alt', + line: ' src/io/files.js:297' + }, + { + message: 'unknown tag: alt', + line: ' src/io/files.js:607' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' src/io/files.js:718' + }, + { + message: 'unknown tag: alt', + line: ' src/io/files.js:718' + }, + { + message: 'unknown tag: alt', + line: ' src/io/files.js:1526' + }, + { + message: 'unknown tag: alt', + line: ' src/io/files.js:1584' + }, + { + message: 'unknown tag: alt', + line: ' src/io/files.js:1652' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:56' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:120' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:168' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:214' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:263' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:328' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:523' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:576' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:618' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:879' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:944' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:994' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:1040' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:1085' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:1132' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:1177' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:1230' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.Table.js:1296' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.TableRow.js:42' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.TableRow.js:106' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.TableRow.js:150' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.TableRow.js:195' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.TableRow.js:243' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.TableRow.js:299' + }, + { + message: 'unknown tag: alt', + line: ' src/io/p5.XML.js:11' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:12' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:36' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:76' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:121' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:190' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:240' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:279' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:327' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:383' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:422' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:478' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:528' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:578' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:631' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:665' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:704' + }, + { + message: 'unknown tag: alt', + line: ' src/math/calculation.js:751' + }, + { + message: 'unknown tag: alt', + line: ' src/math/math.js:12' + }, + { + message: 'unknown tag: alt', + line: ' src/math/noise.js:40' + }, + { + message: 'unknown tag: alt', + line: ' src/math/noise.js:187' + }, + { + message: 'unknown tag: alt', + line: ' src/math/noise.js:253' + }, + { + message: 'unknown tag: alt', + line: ' src/math/p5.Vector.js:12' + }, + { + message: 'unknown tag: alt', + line: ' src/math/random.js:48' + }, + { + message: 'unknown tag: alt', + line: ' src/math/random.js:79' + }, + { + message: 'unknown tag: alt', + line: ' src/math/random.js:166' + }, + { + message: 'unknown tag: alt', + line: ' src/math/trigonometry.js:124' + }, + { + message: 'unknown tag: alt', + line: ' src/math/trigonometry.js:160' + }, + { + message: 'unknown tag: alt', + line: ' src/math/trigonometry.js:188' + }, + { + message: 'unknown tag: alt', + line: ' src/math/trigonometry.js:216' + }, + { + message: 'unknown tag: alt', + line: ' src/math/trigonometry.js:296' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' src/math/trigonometry.js:332' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' src/math/trigonometry.js:347' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' src/math/trigonometry.js:362' + }, + { + message: 'unknown tag: alt', + line: ' src/typography/attributes.js:13' + }, + { + message: 'unknown tag: alt', + line: ' src/typography/attributes.js:84' + }, + { + message: 'unknown tag: alt', + line: ' src/typography/attributes.js:122' + }, + { + message: 'unknown tag: alt', + line: ' src/typography/attributes.js:154' + }, + { + message: 'unknown tag: alt', + line: ' src/typography/attributes.js:191' + }, + { + message: 'unknown tag: alt', + line: ' src/typography/loading_displaying.js:16' + }, + { + message: 'unknown tag: alt', + line: ' src/typography/loading_displaying.js:143' + }, + { + message: 'unknown tag: alt', + line: ' src/typography/loading_displaying.js:230' + }, + { + message: 'unknown tag: alt', + line: ' src/typography/p5.Font.js:32' + }, + { + message: 'unknown tag: alt', + line: ' src/utilities/conversion.js:12' + }, + { + message: 'unknown tag: alt', + line: ' src/utilities/string_functions.js:15' + }, + { + message: 'unknown tag: alt', + line: ' src/utilities/string_functions.js:44' + }, + { + message: 'unknown tag: alt', + line: ' src/utilities/string_functions.js:132' + }, + { + message: 'unknown tag: alt', + line: ' src/utilities/string_functions.js:243' + }, + { + message: 'unknown tag: alt', + line: ' src/utilities/string_functions.js:319' + }, + { + message: 'unknown tag: alt', + line: ' src/utilities/string_functions.js:381' + }, + { + message: 'unknown tag: alt', + line: ' src/utilities/string_functions.js:459' + }, + { + message: 'unknown tag: alt', + line: ' src/utilities/string_functions.js:548' + }, + { + message: 'unknown tag: alt', + line: ' src/utilities/time_date.js:12' + }, + { + message: 'unknown tag: alt', + line: ' src/utilities/time_date.js:34' + }, + { + message: 'unknown tag: alt', + line: ' src/utilities/time_date.js:56' + }, + { + message: 'unknown tag: alt', + line: ' src/utilities/time_date.js:78' + }, + { + message: 'unknown tag: alt', + line: ' src/utilities/time_date.js:101' + }, + { + message: 'unknown tag: alt', + line: ' src/utilities/time_date.js:123' + }, + { + message: 'unknown tag: alt', + line: ' src/utilities/time_date.js:145' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/3d_primitives.js:14' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/interaction.js:13' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/interaction.js:146' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/interaction.js:146' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/interaction.js:146' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/interaction.js:146' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/interaction.js:146' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/interaction.js:380' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/light.js:12' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/light.js:87' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/light.js:185' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/light.js:287' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/light.js:318' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/loading.js:14' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/loading.js:14' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/loading.js:580' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/material.js:14' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' src/webgl/material.js:113' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/material.js:113' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/material.js:181' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/material.js:285' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/material.js:322' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/material.js:419' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/material.js:419' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/material.js:498' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/material.js:573' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/material.js:623' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/material.js:674' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/p5.Camera.js:15' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/p5.Camera.js:61' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/p5.Camera.js:126' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/p5.Camera.js:209' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/p5.Camera.js:486' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/p5.Camera.js:545' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/p5.Camera.js:603' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/p5.Camera.js:751' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/p5.Camera.js:823' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/p5.Camera.js:1088' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' src/webgl/p5.RendererGL.Retained.js:40' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/p5.RendererGL.js:263' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/p5.RendererGL.js:519' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/p5.RendererGL.js:561' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/p5.RendererGL.js:631' + }, + { + message: 'unknown tag: alt', + line: ' src/webgl/p5.Shader.js:269' + }, + { + message: 'replacing incorrect tag: function with method', + line: ' src/webgl/text.js:117' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' src/webgl/text.js:160' + }, + { + message: 'replacing incorrect tag: function with method', + line: ' src/webgl/text.js:193' + }, + { + message: 'replacing incorrect tag: function with method', + line: ' src/webgl/text.js:205' + }, + { + message: 'replacing incorrect tag: function with method', + line: ' src/webgl/text.js:235' + }, + { + message: 'replacing incorrect tag: function with method', + line: ' src/webgl/text.js:249' + }, + { + message: 'replacing incorrect tag: function with method', + line: ' src/webgl/text.js:387' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' src/webgl/text.js:387' + }, + { + message: 'replacing incorrect tag: function with method', + line: ' src/webgl/text.js:457' + }, + { + message: 'replacing incorrect tag: function with method', + line: ' src/webgl/text.js:472' + }, + { + message: 'replacing incorrect tag: function with method', + line: ' src/webgl/text.js:547' + }, + { + message: 'unknown tag: alt', + line: ' lib/addons/p5.dom.js:245' + }, + { + message: 'unknown tag: alt', + line: ' lib/addons/p5.dom.js:313' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' lib/addons/p5.dom.js:1463' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' lib/addons/p5.dom.js:1525' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' lib/addons/p5.dom.js:1629' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' lib/addons/p5.dom.js:1668' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' lib/addons/p5.dom.js:1762' + }, + { + message: 'unknown tag: alt', + line: ' lib/addons/p5.dom.js:2119' + }, + { + message: 'replacing incorrect tag: params with param', + line: ' lib/addons/p5.sound.js:2480' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' lib/addons/p5.sound.js:2480' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' lib/addons/p5.sound.js:3094' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' lib/addons/p5.sound.js:7659' + }, + { + message: 'replacing incorrect tag: returns with return', + line: ' lib/addons/p5.sound.js:9626' + }, + { + message: + "Missing item type\nConversions adapted from .\n\nIn these functions, hue is always in the range [0, 1], just like all other\ncomponents are in the range [0, 1]. 'Brightness' and 'value' are used\ninterchangeably.", + line: ' src/color/color_conversion.js:10' + }, + { + message: 'Missing item type\nConvert an HSBA array to HSLA.', + line: ' src/color/color_conversion.js:21' + }, + { + message: 'Missing item type\nConvert an HSBA array to RGBA.', + line: ' src/color/color_conversion.js:47' + }, + { + message: 'Missing item type\nConvert an HSLA array to HSBA.', + line: ' src/color/color_conversion.js:102' + }, + { + message: + "Missing item type\nConvert an HSLA array to RGBA.\n\nWe need to change basis from HSLA to something that can be more easily be\nprojected onto RGBA. We will choose hue and brightness as our first two\ncomponents, and pick a convenient third one ('zest') so that we don't need\nto calculate formal HSBA saturation.", + line: ' src/color/color_conversion.js:125' + }, + { + message: 'Missing item type\nConvert an RGBA array to HSBA.', + line: ' src/color/color_conversion.js:189' + }, + { + message: 'Missing item type\nConvert an RGBA array to HSLA.', + line: ' src/color/color_conversion.js:228' + }, + { + message: + 'Missing item type\nHue is the same in HSB and HSL, but the maximum value may be different.\nThis function will return the HSB-normalized saturation when supplied with\nan HSB color object, but will default to the HSL-normalized saturation\notherwise.', + line: ' src/color/p5.Color.js:415' + }, + { + message: + 'Missing item type\nSaturation is scaled differently in HSB and HSL. This function will return\nthe HSB saturation when supplied with an HSB color object, but will default\nto the HSL saturation otherwise.', + line: ' src/color/p5.Color.js:446' + }, + { + message: 'Missing item type\nCSS named colors.', + line: ' src/color/p5.Color.js:465' + }, + { + message: + 'Missing item type\nThese regular expressions are used to build up the patterns for matching\nviable CSS color strings: fragmenting the regexes in this way increases the\nlegibility and comprehensibility of the code.\n\nNote that RGB values of .9 are not parsed by IE, but are supported here for\ncolor string consistency.', + line: ' src/color/p5.Color.js:618' + }, + { + message: + 'Missing item type\nFull color string patterns. The capture groups are necessary.', + line: ' src/color/p5.Color.js:631' + }, + { + message: + 'Missing item type\nFor a number of different inputs, returns a color formatted as [r, g, b, a]\narrays, with each component normalized between 0 and 1.', + line: ' src/color/p5.Color.js:768' + }, + { + message: + 'Missing item type\nFor HSB and HSL, interpret the gray level as a brightness/lightness\nvalue (they are equivalent when chroma is zero). For RGB, normalize the\ngray level according to the blue maximum.', + line: ' src/color/p5.Color.js:994' + }, + { + message: + "Missing item type\nThis function does 3 things:\n\n 1. Bounds the desired start/stop angles for an arc (in radians) so that:\n\n 0 <= start < TWO_PI ; start <= stop < start + TWO_PI\n\n This means that the arc rendering functions don't have to be concerned\n with what happens if stop is smaller than start, or if the arc 'goes\n round more than once', etc.: they can just start at start and increase\n until stop and the correct arc will be drawn.\n\n 2. Optionally adjusts the angles within each quadrant to counter the naive\n scaling of the underlying ellipse up from the unit circle. Without\n this, the angles become arbitrary when width != height: 45 degrees\n might be drawn at 5 degrees on a 'wide' ellipse, or at 85 degrees on\n a 'tall' ellipse.\n\n 3. Flags up when start and stop correspond to the same place on the\n underlying ellipse. This is useful if you want to do something special\n there (like rendering a whole ellipse instead).", + line: ' src/core/shape/2d_primitives.js:16' + }, + { + message: 'Missing item type\nReturns the current framerate.', + line: ' src/core/environment.js:306' + }, + { + message: + 'Missing item type\nSpecifies the number of frames to be displayed every second. For example,\nthe function call frameRate(30) will attempt to refresh 30 times a second.\nIf the processor is not fast enough to maintain the specified rate, the\nframe rate will not be achieved. Setting the frame rate within setup() is\nrecommended. The default rate is 60 frames per second.\n\nCalling frameRate() with no arguments returns the current framerate.', + line: ' src/core/environment.js:316' + }, + { + message: 'Missing item type', + line: ' src/core/error_helpers.js:1' + }, + { + message: + 'Missing item type\nValidates parameters\nparam {String} func the name of the function\nparam {Array} args user input arguments\n\nexample:\n var a;\n ellipse(10,10,a,5);\nconsole ouput:\n "It looks like ellipse received an empty variable in spot #2."\n\nexample:\n ellipse(10,"foo",5,5);\nconsole output:\n "ellipse was expecting a number for parameter #1,\n received "foo" instead."', + line: ' src/core/error_helpers.js:584' + }, + { + message: + 'Missing item type\nPrints out all the colors in the color pallete with white text.\nFor color blindness testing.', + line: ' src/core/error_helpers.js:645' + }, + { + message: 'Missing item type', + line: ' src/core/helpers.js:1' + }, + { + message: + 'Missing item type\n_globalInit\n\nTODO: ???\nif sketch is on window\nassume "global" mode\nand instantiate p5 automatically\notherwise do nothing', + line: ' src/core/init.js:5' + }, + { + message: 'Missing item type', + line: ' src/core/legacy.js:1' + }, + { + message: 'Missing item type\nHelper fxn for sharing pixel methods', + line: ' src/core/p5.Element.js:865' + }, + { + message: 'Missing item type\nResize our canvas element.', + line: ' src/core/p5.Renderer.js:97' + }, + { + message: 'Missing item type\nHelper fxn to check font type (system or otf)', + line: ' src/core/p5.Renderer.js:335' + }, + { + message: + 'Missing item type\nHelper fxn to measure ascent and descent.\nAdapted from http://stackoverflow.com/a/25355178', + line: ' src/core/p5.Renderer.js:388' + }, + { + message: + 'Missing item type\np5.Renderer2D\nThe 2D graphics canvas renderer class.\nextends p5.Renderer', + line: ' src/core/p5.Renderer2D.js:9' + }, + { + message: + 'Missing item type\nGenerate a cubic Bezier representing an arc on the unit circle of total\nangle `size` radians, beginning `start` radians above the x-axis. Up to\nfour of these curves are combined to make a full arc.\n\nSee www.joecridge.me/bezier.pdf for an explanation of the method.', + line: ' src/core/p5.Renderer2D.js:407' + }, + { + message: + 'Missing item type\nshim for Uint8ClampedArray.slice\n(allows arrayCopy to work with pixels[])\nwith thanks to http://halfpapstudios.com/blog/tag/html5-canvas/\nEnumerable set to false to protect for...in from\nUint8ClampedArray.prototype pollution.', + line: ' src/core/shim.js:23' + }, + { + message: + 'Missing item type\nthis is implementation of Object.assign() which is unavailable in\nIE11 and (non-Chrome) Android browsers.\nThe assign() method is used to copy the values of all enumerable\nown properties from one or more source objects to a target object.\nIt will return the target object.\nModified from https://github.com/ljharb/object.assign', + line: ' src/core/shim.js:45' + }, + { + message: + 'Missing item type\nprivate helper function to handle the user passing in objects\nduring construction or calls to create()', + line: ' src/data/p5.TypedDict.js:203' + }, + { + message: + 'Missing item type\nprivate helper function to ensure that the user passed in valid\nvalues for the Dictionary type', + line: ' src/data/p5.TypedDict.js:394' + }, + { + message: + 'Missing item type\nprivate helper function to ensure that the user passed in valid\nvalues for the Dictionary type', + line: ' src/data/p5.TypedDict.js:437' + }, + { + message: + "Missing item type\nprivate helper function for finding lowest or highest value\nthe argument 'flip' is used to flip the comparison arrow\nfrom 'less than' to 'greater than'", + line: ' src/data/p5.TypedDict.js:554' + }, + { + message: + "Missing item type\nprivate helper function for finding lowest or highest key\nthe argument 'flip' is used to flip the comparison arrow\nfrom 'less than' to 'greater than'", + line: ' src/data/p5.TypedDict.js:621' + }, + { + message: + 'Missing item type\n_updatePAccelerations updates the pAcceleration values', + line: ' src/events/acceleration.js:124' + }, + { + message: + 'Missing item type\nThe onblur function is called when the user is no longer focused\non the p5 element. Because the keyup events will not fire if the user is\nnot focused on the element we must assume all keys currently down have\nbeen released.', + line: ' src/events/keyboard.js:302' + }, + { + message: + 'Missing item type\nThe _areDownKeys function returns a boolean true if any keys pressed\nand a false if no keys are currently pressed.\n\nHelps avoid instances where multiple keys are pressed simultaneously and\nreleasing a single key will then switch the\nkeyIsPressed property to true.', + line: ' src/events/keyboard.js:389' + }, + { + message: + 'Missing item type\nThis module defines the filters for use with image buffers.\n\nThis module is basically a collection of functions stored in an object\nas opposed to modules. The functions are destructive, modifying\nthe passed in canvas rather than creating a copy.\n\nGenerally speaking users of this module will use the Filters.apply method\non a canvas to create an effect.\n\nA number of functions are borrowed/adapted from\nhttp://www.html5rocks.com/en/tutorials/canvas/imagefilters/\nor the java processing implementation.', + line: ' src/image/filters.js:3' + }, + { + message: 'Missing item type\nReturns the pixel buffer for a canvas', + line: ' src/image/filters.js:26' + }, + { + message: + 'Missing item type\nReturns a 32 bit number containing ARGB data at ith pixel in the\n1D array containing pixels data.', + line: ' src/image/filters.js:46' + }, + { + message: + 'Missing item type\nModifies pixels RGBA values to values contained in the data object.', + line: ' src/image/filters.js:67' + }, + { + message: + 'Missing item type\nReturns the ImageData object for a canvas\nhttps://developer.mozilla.org/en-US/docs/Web/API/ImageData', + line: ' src/image/filters.js:87' + }, + { + message: 'Missing item type\nReturns a blank ImageData object.', + line: ' src/image/filters.js:107' + }, + { + message: + 'Missing item type\nApplys a filter function to a canvas.\n\nThe difference between this and the actual filter functions defined below\nis that the filter functions generally modify the pixel buffer but do\nnot actually put that data back to the canvas (where it would actually\nupdate what is visible). By contrast this method does make the changes\nactually visible in the canvas.\n\nThe apply method is the method that callers of this module would generally\nuse. It has been separated from the actual filters to support an advanced\nuse case of creating a filter chain that executes without actually updating\nthe canvas in between everystep.', + line: ' src/image/filters.js:122' + }, + { + message: + 'Missing item type\nConverts the image to black and white pixels depending if they are above or\nbelow the threshold defined by the level parameter. The parameter must be\nbetween 0.0 (black) and 1.0 (white). If no level is specified, 0.5 is used.\n\nBorrowed from http://www.html5rocks.com/en/tutorials/canvas/imagefilters/', + line: ' src/image/filters.js:175' + }, + { + message: + 'Missing item type\nConverts any colors in the image to grayscale equivalents.\nNo parameter is used.\n\nBorrowed from http://www.html5rocks.com/en/tutorials/canvas/imagefilters/', + line: ' src/image/filters.js:209' + }, + { + message: + 'Missing item type\nSets the alpha channel to entirely opaque. No parameter is used.', + line: ' src/image/filters.js:232' + }, + { + message: + 'Missing item type\nSets each pixel to its inverse value. No parameter is used.', + line: ' src/image/filters.js:248' + }, + { + message: + 'Missing item type\nLimits each channel of the image to the number of colors specified as\nthe parameter. The parameter can be set to values between 2 and 255, but\nresults are most noticeable in the lower ranges.\n\nAdapted from java based processing implementation', + line: ' src/image/filters.js:263' + }, + { + message: 'Missing item type\nreduces the bright areas in an image', + line: ' src/image/filters.js:295' + }, + { + message: 'Missing item type\nincreases the bright areas in an image', + line: ' src/image/filters.js:383' + }, + { + message: + 'Missing item type\nThis module defines the p5 methods for the p5.Image class\nfor drawing images to the main display canvas.', + line: ' src/image/image.js:8' + }, + { + message: + 'Missing item type\nValidates clipping params. Per drawImage spec sWidth and sHight cannot be\nnegative or greater than image intrinsic width and height', + line: ' src/image/loading_displaying.js:110' + }, + { + message: + 'Missing item type\nApply the current tint color to the input image, return the resulting\ncanvas.', + line: ' src/image/loading_displaying.js:427' + }, + { + message: + 'Missing item type\nThis module defines the p5.Image class and P5 methods for\ndrawing images to the main display canvas.', + line: ' src/image/p5.Image.js:9' + }, + { + message: 'Missing item type\nHelper fxn for sharing pixel methods', + line: ' src/image/p5.Image.js:223' + }, + { + message: + 'Missing item type\nGenerate a blob of file data as a url to prepare for download.\nAccepts an array of data, a filename, and an extension (optional).\nThis is a private function because it does not do any formatting,\nbut it is used by saveStrings, saveJSON, saveTable etc.', + line: ' src/io/files.js:1778' + }, + { + message: + 'Missing item type\nReturns a file extension, or another string\nif the provided parameter has no extension.', + line: ' src/io/files.js:1847' + }, + { + message: + 'Missing item type\nReturns true if the browser is Safari, false if not.\nSafari makes trouble for downloading files.', + line: ' src/io/files.js:1880' + }, + { + message: + 'Missing item type\nHelper function, a callback for download that deletes\nan invisible anchor element from the DOM once the file\nhas been automatically downloaded.', + line: ' src/io/files.js:1892' + }, + { + message: + 'Missing item type\nTable Options\n

Generic class for handling tabular data, typically from a\nCSV, TSV, or other sort of spreadsheet file.

\n

CSV files are\n\ncomma separated values, often with the data in quotes. TSV\nfiles use tabs as separators, and usually don\'t bother with the\nquotes.

\n

File names should end with .csv if they\'re comma separated.

\n

A rough "spec" for CSV can be found\nhere.

\n

To load files, use the loadTable method.

\n

To save tables to your computer, use the save method\n or the saveTable method.

\n\nPossible options include:\n
    \n
  • csv - parse the table as comma-separated values\n
  • tsv - parse the table as tab-separated values\n
  • header - this table has a header (title) row\n
', + line: ' src/io/p5.Table.js:11' + }, + { + message: + 'Missing item type\nMultiplies a vector by a scalar and returns a new vector.', + line: ' src/math/p5.Vector.js:1610' + }, + { + message: + 'Missing item type\nDivides a vector by a scalar and returns a new vector.', + line: ' src/math/p5.Vector.js:1637' + }, + { + message: 'Missing item type\nCalculates the dot product of two vectors.', + line: ' src/math/p5.Vector.js:1664' + }, + { + message: 'Missing item type\nCalculates the cross product of two vectors.', + line: ' src/math/p5.Vector.js:1678' + }, + { + message: + 'Missing item type\nCalculates the Euclidean distance between two points (considering a\npoint as a vector object).', + line: ' src/math/p5.Vector.js:1692' + }, + { + message: + 'Missing item type\nLinear interpolate a vector to another vector and return the result as a\nnew vector.', + line: ' src/math/p5.Vector.js:1707' + }, + { + message: + 'Missing item type\nHelper function to measure ascent and descent.', + line: ' src/typography/attributes.js:284' + }, + { + message: + 'Missing item type\nReturns the set of opentype glyphs for the supplied string.\n\nNote that there is not a strict one-to-one mapping between characters\nand glyphs, so the list of returned glyphs can be larger or smaller\n than the length of the given string.', + line: ' src/typography/p5.Font.js:255' + }, + { + message: + 'Missing item type\nReturns an opentype path for the supplied string and position.', + line: ' src/typography/p5.Font.js:270' + }, + { + message: 'Missing item type', + line: ' src/webgl/3d_primitives.js:260' + }, + { + message: + 'Missing item type\nDraws a point, a coordinate in space at the dimension of one pixel,\ngiven x, y and z coordinates. The color of the point is determined\nby the current stroke, while the point size is determined by current\nstroke weight.', + line: ' src/webgl/3d_primitives.js:732' + }, + { + message: 'Missing item type\nDraw a line given two points', + line: ' src/webgl/3d_primitives.js:1155' + }, + { + message: + 'Missing item type\nParse OBJ lines into model. For reference, this is what a simple model of a\nsquare might look like:\n\nv -0.5 -0.5 0.5\nv -0.5 -0.5 -0.5\nv -0.5 0.5 -0.5\nv -0.5 0.5 0.5\n\nf 4 3 2 1', + line: ' src/webgl/loading.js:169' + }, + { + message: + 'Missing item type\nSTL files can be of two types, ASCII and Binary,\n\nWe need to convert the arrayBuffer to an array of strings,\nto parse it as an ASCII file.', + line: ' src/webgl/loading.js:278' + }, + { + message: + 'Missing item type\nThis function checks if the file is in ASCII format or in Binary format\n\nIt is done by searching keyword `solid` at the start of the file.\n\nAn ASCII STL data must begin with `solid` as the first six bytes.\nHowever, ASCII STLs lacking the SPACE after the `d` are known to be\nplentiful. So, check the first 5 bytes for `solid`.\n\nSeveral encodings, such as UTF-8, precede the text with up to 5 bytes:\nhttps://en.wikipedia.org/wiki/Byte_order_mark#Byte_order_marks_by_encoding\nSearch for `solid` to start anywhere after those prefixes.', + line: ' src/webgl/loading.js:305' + }, + { + message: + 'Missing item type\nThis function matches the `query` at the provided `offset`', + line: ' src/webgl/loading.js:332' + }, + { + message: + 'Missing item type\nThis function parses the Binary STL files.\nhttps://en.wikipedia.org/wiki/STL_%28file_format%29#Binary_STL\n\nCurrently there is no support for the colors provided in STL files.', + line: ' src/webgl/loading.js:344' + }, + { + message: + "Missing item type\nASCII STL file starts with `solid 'nameOfFile'`\nThen contain the normal of the face, starting with `facet normal`\nNext contain a keyword indicating the start of face vertex, `outer loop`\nNext comes the three vertex, starting with `vertex x y z`\nVertices ends with `endloop`\nFace ends with `endfacet`\nNext face starts with `facet normal`\nThe end of the file is indicated by `endsolid`", + line: ' src/webgl/loading.js:433' + }, + { + message: 'Missing item type', + line: ' src/webgl/material.js:719' + }, + { + message: 'Missing item type', + line: ' src/webgl/material.js:741' + }, + { + message: + 'Missing item type\nCreate a 2D array for establishing stroke connections', + line: ' src/webgl/p5.Geometry.js:206' + }, + { + message: + "Missing item type\nCreate 4 vertices for each stroke line, two at the beginning position\nand two at the end position. These vertices are displaced relative to\nthat line's normal on the GPU", + line: ' src/webgl/p5.Geometry.js:227' + }, + { + message: 'Missing item type', + line: ' src/webgl/p5.Matrix.js:1' + }, + { + message: 'Missing item type\nPRIVATE', + line: ' src/webgl/p5.Matrix.js:730' + }, + { + message: + 'Missing item type\nWelcome to RendererGL Immediate Mode.\nImmediate mode is used for drawing custom shapes\nfrom a set of vertices. Immediate Mode is activated\nwhen you call beginShape() & de-activated when you call endShape().\nImmediate mode is a style of programming borrowed\nfrom OpenGL\'s (now-deprecated) immediate mode.\nIt differs from p5.js\' default, Retained Mode, which caches\ngeometries and buffers on the CPU to reduce the number of webgl\ndraw calls. Retained mode is more efficient & performative,\nhowever, Immediate Mode is useful for sketching quick\ngeometric ideas.', + line: ' src/webgl/p5.RendererGL.Immediate.js:1' + }, + { + message: + 'Missing item type\nEnd shape drawing and render vertices to screen.', + line: ' src/webgl/p5.RendererGL.Immediate.js:140' + }, + { + message: + 'Missing item type\ninitializes buffer defaults. runs each time a new geometry is\nregistered', + line: ' src/webgl/p5.RendererGL.Retained.js:40' + }, + { + message: + 'Missing item type\ncreates a buffers object that holds the WebGL render buffers\nfor a geometry.', + line: ' src/webgl/p5.RendererGL.Retained.js:144' + }, + { + message: 'Missing item type\nDraws buffers given a geometry key ID', + line: ' src/webgl/p5.RendererGL.Retained.js:182' + }, + { + message: 'Missing item type\nmodel view, projection, & normal\nmatrices', + line: ' src/webgl/p5.RendererGL.js:96' + }, + { + message: 'Missing item type\n[background description]', + line: ' src/webgl/p5.RendererGL.js:501' + }, + { + message: 'Missing item type\n[resize description]', + line: ' src/webgl/p5.RendererGL.js:752' + }, + { + message: 'Missing item type\nclears color and depth buffers\nwith r,g,b,a', + line: ' src/webgl/p5.RendererGL.js:783' + }, + { + message: 'Missing item type\n[translate description]', + line: ' src/webgl/p5.RendererGL.js:816' + }, + { + message: 'Missing item type\nScales the Model View Matrix by a vector', + line: ' src/webgl/p5.RendererGL.js:835' + }, + { + message: + 'Missing item type\nturn a two dimensional array into one dimensional array', + line: ' src/webgl/p5.RendererGL.js:1200' + }, + { + message: + 'Missing item type\nturn a p5.Vector Array into a one dimensional number array', + line: ' src/webgl/p5.RendererGL.js:1237' + }, + { + message: + 'Missing item type\nensures that p5 is using a 3d renderer. throws an error if not.', + line: ' src/webgl/p5.RendererGL.js:1254' + }, + { + message: 'Missing item type\nHelper function for select and selectAll', + line: ' lib/addons/p5.dom.js:168' + }, + { + message: + 'Missing item type\nHelper function for getElement and getElements.', + line: ' lib/addons/p5.dom.js:184' + }, + { + message: 'Missing item type\nHelpers for create methods.', + line: ' lib/addons/p5.dom.js:348' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.dom.js:488' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.dom.js:1070' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.dom.js:1159' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.dom.js:1199' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.dom.js:3021' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.dom.js:3087' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.dom.js:3149' + }, + { + message: + "Missing item type\np5.sound \nhttps://p5js.org/reference/#/libraries/p5.sound\n\nFrom the Processing Foundation and contributors\nhttps://github.com/processing/p5.js-sound/graphs/contributors\n\nMIT License (MIT)\nhttps://github.com/processing/p5.js-sound/blob/master/LICENSE\n\nSome of the many audio libraries & resources that inspire p5.sound:\n - TONE.js (c) Yotam Mann. Licensed under The MIT License (MIT). https://github.com/TONEnoTONE/Tone.js\n - buzz.js (c) Jay Salvat. Licensed under The MIT License (MIT). http://buzz.jaysalvat.com/\n - Boris Smus Web Audio API book, 2013. Licensed under the Apache License http://www.apache.org/licenses/LICENSE-2.0\n - wavesurfer.js https://github.com/katspaugh/wavesurfer.js\n - Web Audio Components by Jordan Santell https://github.com/web-audio-components\n - Wilm Thoben's Sound library for Processing https://github.com/processing/processing/tree/master/java/libraries/sound\n\n Web Audio API: http://w3.org/TR/webaudio/", + line: ' lib/addons/p5.sound.js:46' + }, + { + message: + 'Missing item type\nDetermine which filetypes are supported (inspired by buzz.js)\nThe audio element (el) will only be used to test browser support for various audio formats', + line: ' lib/addons/p5.sound.js:214' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:363' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:740' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:810' + }, + { + message: + 'Missing item type\nMaster contains AudioContext and the master sound output.', + line: ' lib/addons/p5.sound.js:1099' + }, + { + message: + 'Missing item type\na silent connection to the DesinationNode\nwhich will ensure that anything connected to it\nwill not be garbage collected', + line: ' lib/addons/p5.sound.js:1194' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:1210' + }, + { + message: 'Missing item type\nUsed by Osc and Envelope to chain signal math', + line: ' lib/addons/p5.sound.js:1415' + }, + { + message: + 'Missing item type\nThis is a helper function that the p5.SoundFile calls to load\nitself. Accepts a callback (the name of another function)\nas an optional parameter.', + line: ' lib/addons/p5.sound.js:1813' + }, + { + message: + "Missing item type\nStop playback on all of this soundfile's sources.", + line: ' lib/addons/p5.sound.js:2218' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:2656' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:2934' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:4055' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:4076' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:4135' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:4453' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:4625' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:4783' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:4824' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:4881' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:5049' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:5097' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:5128' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:5149' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:5169' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:5879' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:6082' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:7750' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:7766' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:7790' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:7816' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:7838' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:7860' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:7906' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:7937' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:7955' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:8292' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:8314' + }, + { + message: + 'Missing item type\nThe p5.Effect class is built\n \tusing Tone.js CrossFade', + line: ' lib/addons/p5.sound.js:8384' + }, + { + message: + 'Missing item type\nIn classes that extend\np5.Effect, connect effect nodes\nto the wet parameter', + line: ' lib/addons/p5.sound.js:8390' + }, + { + message: + 'Missing item type\nEQFilter extends p5.Filter with constraints\nnecessary for the p5.EQ', + line: ' lib/addons/p5.sound.js:8779' + }, + { + message: + 'Missing item type\nInspired by Simple Reverb by Jordan Santell\nhttps://github.com/web-audio-components/simple-reverb/blob/master/index.js\n\nUtility function for building an impulse response\nbased on the module parameters.', + line: ' lib/addons/p5.sound.js:9889' + }, + { + message: + 'Missing item type\nPrivate method to load a buffer as an Impulse Response,\nassign it to the convolverNode, and add to the Array of .impulses.', + line: ' lib/addons/p5.sound.js:10056' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:10240' + }, + { + message: 'Missing item type', + line: ' lib/addons/p5.sound.js:10265' + }, + { + message: + 'Missing item type\nmusicalTimeMode variables\nmodify these only when the interval is specified in musicalTime format as a string', + line: ' lib/addons/p5.sound.js:10989' + }, + { + message: + 'Missing item type\nDo not initiate the callback if timeFromNow is < 0\nThis ususually occurs for a few milliseconds when the page\nis not fully loaded\n\nThe callback should only be called until maxIterations is reached', + line: ' lib/addons/p5.sound.js:11005' + }, + { + message: 'Missing item type\ncallback invoked when the recording is over', + line: ' lib/addons/p5.sound.js:11495' + }, + { + message: 'Missing item type\ninternal method called on audio process', + line: ' lib/addons/p5.sound.js:11581' + }, + { + message: + 'Missing item type\nPrivate method to ensure accurate values of this._voicesInUse\nAny time a new value is scheduled, it is necessary to increment all subsequent\nscheduledValues after attack, and decrement all subsequent\nscheduledValues after release', + line: ' lib/addons/p5.sound.js:12627' + }, + { + message: + "Missing item type\np5.sound \nhttps://p5js.org/reference/#/libraries/p5.sound\n\nFrom the Processing Foundation and contributors\nhttps://github.com/processing/p5.js-sound/graphs/contributors\n\nMIT License (MIT)\nhttps://github.com/processing/p5.js-sound/blob/master/LICENSE\n\nSome of the many audio libraries & resources that inspire p5.sound:\n - TONE.js (c) Yotam Mann. Licensed under The MIT License (MIT). https://github.com/TONEnoTONE/Tone.js\n - buzz.js (c) Jay Salvat. Licensed under The MIT License (MIT). http://buzz.jaysalvat.com/\n - Boris Smus Web Audio API book, 2013. Licensed under the Apache License http://www.apache.org/licenses/LICENSE-2.0\n - wavesurfer.js https://github.com/katspaugh/wavesurfer.js\n - Web Audio Components by Jordan Santell https://github.com/web-audio-components\n - Wilm Thoben's Sound library for Processing https://github.com/processing/processing/tree/master/java/libraries/sound\n\n Web Audio API: http://w3.org/TR/webaudio/", + line: ' lib/addons/p5.sound.min.js:3' + } + ], + consts: { + RGB: ['p5.colorMode'], + HSB: ['p5.colorMode'], + HSL: ['p5.colorMode'], + CHORD: ['p5.arc'], + PIE: ['p5.arc'], + OPEN: ['p5.arc'], + CENTER: ['p5.ellipseMode', 'p5.rectMode', 'p5.imageMode', 'p5.textAlign'], + RADIUS: ['p5.ellipseMode', 'p5.rectMode'], + CORNER: ['p5.ellipseMode', 'p5.rectMode', 'p5.imageMode'], + CORNERS: ['p5.ellipseMode', 'p5.rectMode', 'p5.imageMode'], + SQUARE: ['p5.strokeCap'], + PROJECT: ['p5.strokeCap'], + ROUND: ['p5.strokeCap', 'p5.strokeJoin'], + MITER: ['p5.strokeJoin'], + BEVEL: ['p5.strokeJoin'], + POINTS: ['p5.beginShape'], + LINES: ['p5.beginShape'], + TRIANGLES: ['p5.beginShape'], + TRIANGLE_FAN: ['p5.beginShape'], + TRIANGLE_STRIP: ['p5.beginShape'], + QUADS: ['p5.beginShape'], + QUAD_STRIP: ['p5.beginShape'], + CLOSE: ['p5.endShape'], + ARROW: ['p5.cursor'], + CROSS: ['p5.cursor'], + HAND: ['p5.cursor'], + MOVE: ['p5.cursor'], + TEXT: ['p5.cursor'], + P2D: ['p5.createCanvas', 'p5.createGraphics'], + WEBGL: ['p5.createCanvas', 'p5.createGraphics'], + BLEND: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], + DARKEST: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], + LIGHTEST: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], + DIFFERENCE: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], + MULTIPLY: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], + EXCLUSION: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], + SCREEN: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], + REPLACE: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], + OVERLAY: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], + HARD_LIGHT: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], + SOFT_LIGHT: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], + DODGE: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], + BURN: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], + ADD: ['p5.blendMode', 'p5.Image.blend', 'p5.blend'], + SUBTRACT: ['p5.blendMode'], + THRESHOLD: ['p5.Image.filter', 'p5.filter'], + GRAY: ['p5.Image.filter', 'p5.filter'], + OPAQUE: ['p5.Image.filter', 'p5.filter'], + INVERT: ['p5.Image.filter', 'p5.filter'], + POSTERIZE: ['p5.Image.filter', 'p5.filter'], + BLUR: ['p5.Image.filter', 'p5.filter'], + ERODE: ['p5.Image.filter', 'p5.filter'], + DILATE: ['p5.Image.filter', 'p5.filter'], + NORMAL: ['p5.Image.blend', 'p5.blend', 'p5.textStyle', 'p5.textureMode'], + RADIANS: ['p5.angleMode'], + DEGREES: ['p5.angleMode'], + LEFT: ['p5.textAlign'], + RIGHT: ['p5.textAlign'], + TOP: ['p5.textAlign'], + BOTTOM: ['p5.textAlign'], + BASELINE: ['p5.textAlign'], + ITALIC: ['p5.textStyle'], + BOLD: ['p5.textStyle'], + BOLDITALIC: ['p5.textStyle'], + IMAGE: ['p5.textureMode'], + CLAMP: ['p5.textureWrap'], + REPEAT: ['p5.textureWrap'], + MIRROR: ['p5.textureWrap'], + VIDEO: ['p5.createCapture'], + AUDIO: ['p5.createCapture'] + } + }; + }, + {} + ], + 2: [ + function(_dereq_, module, exports) { + 'use strict'; + + exports.byteLength = byteLength; + exports.toByteArray = toByteArray; + exports.fromByteArray = fromByteArray; + + var lookup = []; + var revLookup = []; + var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array; + + var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; + for (var i = 0, len = code.length; i < len; ++i) { + lookup[i] = code[i]; + revLookup[code.charCodeAt(i)] = i; + } + + // Support decoding URL-safe base64 strings, as Node.js does. + // See: https://en.wikipedia.org/wiki/Base64#URL_applications + revLookup['-'.charCodeAt(0)] = 62; + revLookup['_'.charCodeAt(0)] = 63; + + function getLens(b64) { + var len = b64.length; + + if (len % 4 > 0) { + throw new Error('Invalid string. Length must be a multiple of 4'); + } + + // Trim off extra bytes after placeholder bytes are found + // See: https://github.com/beatgammit/base64-js/issues/42 + var validLen = b64.indexOf('='); + if (validLen === -1) validLen = len; + + var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4; + + return [validLen, placeHoldersLen]; + } + + // base64 is 4/3 + up to two characters of the original data + function byteLength(b64) { + var lens = getLens(b64); + var validLen = lens[0]; + var placeHoldersLen = lens[1]; + return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; + } + + function _byteLength(b64, validLen, placeHoldersLen) { + return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen; + } + + function toByteArray(b64) { + var tmp; + var lens = getLens(b64); + var validLen = lens[0]; + var placeHoldersLen = lens[1]; + + var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)); + + var curByte = 0; + + // if there are placeholders, only get up to the last complete 4 chars + var len = placeHoldersLen > 0 ? validLen - 4 : validLen; + + for (var i = 0; i < len; i += 4) { + tmp = + (revLookup[b64.charCodeAt(i)] << 18) | + (revLookup[b64.charCodeAt(i + 1)] << 12) | + (revLookup[b64.charCodeAt(i + 2)] << 6) | + revLookup[b64.charCodeAt(i + 3)]; + arr[curByte++] = (tmp >> 16) & 0xff; + arr[curByte++] = (tmp >> 8) & 0xff; + arr[curByte++] = tmp & 0xff; + } + + if (placeHoldersLen === 2) { + tmp = + (revLookup[b64.charCodeAt(i)] << 2) | + (revLookup[b64.charCodeAt(i + 1)] >> 4); + arr[curByte++] = tmp & 0xff; + } + + if (placeHoldersLen === 1) { + tmp = + (revLookup[b64.charCodeAt(i)] << 10) | + (revLookup[b64.charCodeAt(i + 1)] << 4) | + (revLookup[b64.charCodeAt(i + 2)] >> 2); + arr[curByte++] = (tmp >> 8) & 0xff; + arr[curByte++] = tmp & 0xff; + } + + return arr; + } + + function tripletToBase64(num) { + return ( + lookup[(num >> 18) & 0x3f] + + lookup[(num >> 12) & 0x3f] + + lookup[(num >> 6) & 0x3f] + + lookup[num & 0x3f] + ); + } + + function encodeChunk(uint8, start, end) { + var tmp; + var output = []; + for (var i = start; i < end; i += 3) { + tmp = + ((uint8[i] << 16) & 0xff0000) + + ((uint8[i + 1] << 8) & 0xff00) + + (uint8[i + 2] & 0xff); + output.push(tripletToBase64(tmp)); + } + return output.join(''); + } + + function fromByteArray(uint8) { + var tmp; + var len = uint8.length; + var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes + var parts = []; + var maxChunkLength = 16383; // must be multiple of 3 + + // go through the array every three bytes, we'll deal with trailing stuff later + for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { + parts.push( + encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength) + ); + } + + // pad the end with zeros, but make sure to not forget the extra bytes + if (extraBytes === 1) { + tmp = uint8[len - 1]; + parts.push(lookup[tmp >> 2] + lookup[(tmp << 4) & 0x3f] + '=='); + } else if (extraBytes === 2) { + tmp = (uint8[len - 2] << 8) + uint8[len - 1]; + parts.push( + lookup[tmp >> 10] + + lookup[(tmp >> 4) & 0x3f] + + lookup[(tmp << 2) & 0x3f] + + '=' + ); + } + + return parts.join(''); + } + }, + {} + ], + 3: [function(_dereq_, module, exports) {}, {}], + 4: [ + function(_dereq_, module, exports) { + /*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ + /* eslint-disable no-proto */ + + 'use strict'; + + var base64 = _dereq_('base64-js'); + var ieee754 = _dereq_('ieee754'); + + exports.Buffer = Buffer; + exports.SlowBuffer = SlowBuffer; + exports.INSPECT_MAX_BYTES = 50; + + var K_MAX_LENGTH = 0x7fffffff; + exports.kMaxLength = K_MAX_LENGTH; + + /** + * If `Buffer.TYPED_ARRAY_SUPPORT`: + * === true Use Uint8Array implementation (fastest) + * === false Print warning and recommend using `buffer` v4.x which has an Object + * implementation (most compatible, even IE6) + * + * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+, + * Opera 11.6+, iOS 4.2+. + * + * We report that the browser does not support typed arrays if the are not subclassable + * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array` + * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support + * for __proto__ and has a buggy typed array implementation. + */ + Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport(); + + if ( + !Buffer.TYPED_ARRAY_SUPPORT && + typeof console !== 'undefined' && + typeof console.error === 'function' + ) { + console.error( + 'This browser lacks typed array (Uint8Array) support which is required by ' + + '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.' + ); + } + + function typedArraySupport() { + // Can typed array instances can be augmented? + try { + var arr = new Uint8Array(1); + arr.__proto__ = { + __proto__: Uint8Array.prototype, + foo: function() { + return 42; + } + }; + return arr.foo() === 42; + } catch (e) { + return false; + } + } + + Object.defineProperty(Buffer.prototype, 'parent', { + enumerable: true, + get: function() { + if (!Buffer.isBuffer(this)) return undefined; + return this.buffer; + } + }); + + Object.defineProperty(Buffer.prototype, 'offset', { + enumerable: true, + get: function() { + if (!Buffer.isBuffer(this)) return undefined; + return this.byteOffset; + } + }); + + function createBuffer(length) { + if (length > K_MAX_LENGTH) { + throw new RangeError( + 'The value "' + length + '" is invalid for option "size"' + ); + } + // Return an augmented `Uint8Array` instance + var buf = new Uint8Array(length); + buf.__proto__ = Buffer.prototype; + return buf; + } + + /** + * The Buffer constructor returns instances of `Uint8Array` that have their + * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of + * `Uint8Array`, so the returned instances will have all the node `Buffer` methods + * and the `Uint8Array` methods. Square bracket notation works as expected -- it + * returns a single octet. + * + * The `Uint8Array` prototype remains unmodified. + */ + + function Buffer(arg, encodingOrOffset, length) { + // Common case. + if (typeof arg === 'number') { + if (typeof encodingOrOffset === 'string') { + throw new TypeError( + 'The "string" argument must be of type string. Received type number' + ); + } + return allocUnsafe(arg); + } + return from(arg, encodingOrOffset, length); + } + + // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97 + if ( + typeof Symbol !== 'undefined' && + Symbol.species != null && + Buffer[Symbol.species] === Buffer + ) { + Object.defineProperty(Buffer, Symbol.species, { + value: null, + configurable: true, + enumerable: false, + writable: false + }); + } + + Buffer.poolSize = 8192; // not used by this implementation + + function from(value, encodingOrOffset, length) { + if (typeof value === 'string') { + return fromString(value, encodingOrOffset); + } + + if (ArrayBuffer.isView(value)) { + return fromArrayLike(value); + } + + if (value == null) { + throw TypeError( + 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + + 'or Array-like Object. Received type ' + + typeof value + ); + } + + if ( + isInstance(value, ArrayBuffer) || + (value && isInstance(value.buffer, ArrayBuffer)) + ) { + return fromArrayBuffer(value, encodingOrOffset, length); + } + + if (typeof value === 'number') { + throw new TypeError( + 'The "value" argument must not be of type number. Received type number' + ); + } + + var valueOf = value.valueOf && value.valueOf(); + if (valueOf != null && valueOf !== value) { + return Buffer.from(valueOf, encodingOrOffset, length); + } + + var b = fromObject(value); + if (b) return b; + + if ( + typeof Symbol !== 'undefined' && + Symbol.toPrimitive != null && + typeof value[Symbol.toPrimitive] === 'function' + ) { + return Buffer.from( + value[Symbol.toPrimitive]('string'), + encodingOrOffset, + length + ); + } + + throw new TypeError( + 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + + 'or Array-like Object. Received type ' + + typeof value + ); + } + + /** + * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError + * if value is a number. + * Buffer.from(str[, encoding]) + * Buffer.from(array) + * Buffer.from(buffer) + * Buffer.from(arrayBuffer[, byteOffset[, length]]) + **/ + Buffer.from = function(value, encodingOrOffset, length) { + return from(value, encodingOrOffset, length); + }; + + // Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug: + // https://github.com/feross/buffer/pull/148 + Buffer.prototype.__proto__ = Uint8Array.prototype; + Buffer.__proto__ = Uint8Array; + + function assertSize(size) { + if (typeof size !== 'number') { + throw new TypeError('"size" argument must be of type number'); + } else if (size < 0) { + throw new RangeError('The value "' + size + '" is invalid for option "size"'); + } + } + + function alloc(size, fill, encoding) { + assertSize(size); + if (size <= 0) { + return createBuffer(size); + } + if (fill !== undefined) { + // Only pay attention to encoding if it's a string. This + // prevents accidentally sending in a number that would + // be interpretted as a start offset. + return typeof encoding === 'string' + ? createBuffer(size).fill(fill, encoding) + : createBuffer(size).fill(fill); + } + return createBuffer(size); + } + + /** + * Creates a new filled Buffer instance. + * alloc(size[, fill[, encoding]]) + **/ + Buffer.alloc = function(size, fill, encoding) { + return alloc(size, fill, encoding); + }; + + function allocUnsafe(size) { + assertSize(size); + return createBuffer(size < 0 ? 0 : checked(size) | 0); + } + + /** + * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance. + * */ + Buffer.allocUnsafe = function(size) { + return allocUnsafe(size); + }; + /** + * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance. + */ + Buffer.allocUnsafeSlow = function(size) { + return allocUnsafe(size); + }; + + function fromString(string, encoding) { + if (typeof encoding !== 'string' || encoding === '') { + encoding = 'utf8'; + } + + if (!Buffer.isEncoding(encoding)) { + throw new TypeError('Unknown encoding: ' + encoding); + } + + var length = byteLength(string, encoding) | 0; + var buf = createBuffer(length); + + var actual = buf.write(string, encoding); + + if (actual !== length) { + // Writing a hex string, for example, that contains invalid characters will + // cause everything after the first invalid character to be ignored. (e.g. + // 'abxxcd' will be treated as 'ab') + buf = buf.slice(0, actual); + } + + return buf; + } + + function fromArrayLike(array) { + var length = array.length < 0 ? 0 : checked(array.length) | 0; + var buf = createBuffer(length); + for (var i = 0; i < length; i += 1) { + buf[i] = array[i] & 255; + } + return buf; + } + + function fromArrayBuffer(array, byteOffset, length) { + if (byteOffset < 0 || array.byteLength < byteOffset) { + throw new RangeError('"offset" is outside of buffer bounds'); + } + + if (array.byteLength < byteOffset + (length || 0)) { + throw new RangeError('"length" is outside of buffer bounds'); + } + + var buf; + if (byteOffset === undefined && length === undefined) { + buf = new Uint8Array(array); + } else if (length === undefined) { + buf = new Uint8Array(array, byteOffset); + } else { + buf = new Uint8Array(array, byteOffset, length); + } + + // Return an augmented `Uint8Array` instance + buf.__proto__ = Buffer.prototype; + return buf; + } + + function fromObject(obj) { + if (Buffer.isBuffer(obj)) { + var len = checked(obj.length) | 0; + var buf = createBuffer(len); + + if (buf.length === 0) { + return buf; + } + + obj.copy(buf, 0, 0, len); + return buf; + } + + if (obj.length !== undefined) { + if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) { + return createBuffer(0); + } + return fromArrayLike(obj); + } + + if (obj.type === 'Buffer' && Array.isArray(obj.data)) { + return fromArrayLike(obj.data); + } + } + + function checked(length) { + // Note: cannot use `length < K_MAX_LENGTH` here because that fails when + // length is NaN (which is otherwise coerced to zero.) + if (length >= K_MAX_LENGTH) { + throw new RangeError( + 'Attempt to allocate Buffer larger than maximum ' + + 'size: 0x' + + K_MAX_LENGTH.toString(16) + + ' bytes' + ); + } + return length | 0; + } + + function SlowBuffer(length) { + if (+length != length) { + // eslint-disable-line eqeqeq + length = 0; + } + return Buffer.alloc(+length); + } + + Buffer.isBuffer = function isBuffer(b) { + return b != null && b._isBuffer === true && b !== Buffer.prototype; // so Buffer.isBuffer(Buffer.prototype) will be false + }; + + Buffer.compare = function compare(a, b) { + if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength); + if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength); + if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { + throw new TypeError( + 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' + ); + } + + if (a === b) return 0; + + var x = a.length; + var y = b.length; + + for (var i = 0, len = Math.min(x, y); i < len; ++i) { + if (a[i] !== b[i]) { + x = a[i]; + y = b[i]; + break; + } + } + + if (x < y) return -1; + if (y < x) return 1; + return 0; + }; + + Buffer.isEncoding = function isEncoding(encoding) { + switch (String(encoding).toLowerCase()) { + case 'hex': + case 'utf8': + case 'utf-8': + case 'ascii': + case 'latin1': + case 'binary': + case 'base64': + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return true; + default: + return false; + } + }; + + Buffer.concat = function concat(list, length) { + if (!Array.isArray(list)) { + throw new TypeError('"list" argument must be an Array of Buffers'); + } + + if (list.length === 0) { + return Buffer.alloc(0); + } + + var i; + if (length === undefined) { + length = 0; + for (i = 0; i < list.length; ++i) { + length += list[i].length; + } + } + + var buffer = Buffer.allocUnsafe(length); + var pos = 0; + for (i = 0; i < list.length; ++i) { + var buf = list[i]; + if (isInstance(buf, Uint8Array)) { + buf = Buffer.from(buf); + } + if (!Buffer.isBuffer(buf)) { + throw new TypeError('"list" argument must be an Array of Buffers'); + } + buf.copy(buffer, pos); + pos += buf.length; + } + return buffer; + }; + + function byteLength(string, encoding) { + if (Buffer.isBuffer(string)) { + return string.length; + } + if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) { + return string.byteLength; + } + if (typeof string !== 'string') { + throw new TypeError( + 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' + + 'Received type ' + + typeof string + ); + } + + var len = string.length; + var mustMatch = arguments.length > 2 && arguments[2] === true; + if (!mustMatch && len === 0) return 0; + + // Use a for loop to avoid recursion + var loweredCase = false; + for (;;) { + switch (encoding) { + case 'ascii': + case 'latin1': + case 'binary': + return len; + case 'utf8': + case 'utf-8': + return utf8ToBytes(string).length; + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return len * 2; + case 'hex': + return len >>> 1; + case 'base64': + return base64ToBytes(string).length; + default: + if (loweredCase) { + return mustMatch ? -1 : utf8ToBytes(string).length; // assume utf8 + } + encoding = ('' + encoding).toLowerCase(); + loweredCase = true; + } + } + } + Buffer.byteLength = byteLength; + + function slowToString(encoding, start, end) { + var loweredCase = false; + + // No need to verify that "this.length <= MAX_UINT32" since it's a read-only + // property of a typed array. + + // This behaves neither like String nor Uint8Array in that we set start/end + // to their upper/lower bounds if the value passed is out of range. + // undefined is handled specially as per ECMA-262 6th Edition, + // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization. + if (start === undefined || start < 0) { + start = 0; + } + // Return early if start > this.length. Done here to prevent potential uint32 + // coercion fail below. + if (start > this.length) { + return ''; + } + + if (end === undefined || end > this.length) { + end = this.length; + } + + if (end <= 0) { + return ''; + } + + // Force coersion to uint32. This will also coerce falsey/NaN values to 0. + end >>>= 0; + start >>>= 0; + + if (end <= start) { + return ''; + } + + if (!encoding) encoding = 'utf8'; + + while (true) { + switch (encoding) { + case 'hex': + return hexSlice(this, start, end); + + case 'utf8': + case 'utf-8': + return utf8Slice(this, start, end); + + case 'ascii': + return asciiSlice(this, start, end); + + case 'latin1': + case 'binary': + return latin1Slice(this, start, end); + + case 'base64': + return base64Slice(this, start, end); + + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return utf16leSlice(this, start, end); + + default: + if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding); + encoding = (encoding + '').toLowerCase(); + loweredCase = true; + } + } + } + + // This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package) + // to detect a Buffer instance. It's not possible to use `instanceof Buffer` + // reliably in a browserify context because there could be multiple different + // copies of the 'buffer' package in use. This method works even for Buffer + // instances that were created from another copy of the `buffer` package. + // See: https://github.com/feross/buffer/issues/154 + Buffer.prototype._isBuffer = true; + + function swap(b, n, m) { + var i = b[n]; + b[n] = b[m]; + b[m] = i; + } + + Buffer.prototype.swap16 = function swap16() { + var len = this.length; + if (len % 2 !== 0) { + throw new RangeError('Buffer size must be a multiple of 16-bits'); + } + for (var i = 0; i < len; i += 2) { + swap(this, i, i + 1); + } + return this; + }; + + Buffer.prototype.swap32 = function swap32() { + var len = this.length; + if (len % 4 !== 0) { + throw new RangeError('Buffer size must be a multiple of 32-bits'); + } + for (var i = 0; i < len; i += 4) { + swap(this, i, i + 3); + swap(this, i + 1, i + 2); + } + return this; + }; + + Buffer.prototype.swap64 = function swap64() { + var len = this.length; + if (len % 8 !== 0) { + throw new RangeError('Buffer size must be a multiple of 64-bits'); + } + for (var i = 0; i < len; i += 8) { + swap(this, i, i + 7); + swap(this, i + 1, i + 6); + swap(this, i + 2, i + 5); + swap(this, i + 3, i + 4); + } + return this; + }; + + Buffer.prototype.toString = function toString() { + var length = this.length; + if (length === 0) return ''; + if (arguments.length === 0) return utf8Slice(this, 0, length); + return slowToString.apply(this, arguments); + }; + + Buffer.prototype.toLocaleString = Buffer.prototype.toString; + + Buffer.prototype.equals = function equals(b) { + if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer'); + if (this === b) return true; + return Buffer.compare(this, b) === 0; + }; + + Buffer.prototype.inspect = function inspect() { + var str = ''; + var max = exports.INSPECT_MAX_BYTES; + str = this.toString('hex', 0, max) + .replace(/(.{2})/g, '$1 ') + .trim(); + if (this.length > max) str += ' ... '; + return ''; + }; + + Buffer.prototype.compare = function compare( + target, + start, + end, + thisStart, + thisEnd + ) { + if (isInstance(target, Uint8Array)) { + target = Buffer.from(target, target.offset, target.byteLength); + } + if (!Buffer.isBuffer(target)) { + throw new TypeError( + 'The "target" argument must be one of type Buffer or Uint8Array. ' + + 'Received type ' + + typeof target + ); + } + + if (start === undefined) { + start = 0; + } + if (end === undefined) { + end = target ? target.length : 0; + } + if (thisStart === undefined) { + thisStart = 0; + } + if (thisEnd === undefined) { + thisEnd = this.length; + } + + if ( + start < 0 || + end > target.length || + thisStart < 0 || + thisEnd > this.length + ) { + throw new RangeError('out of range index'); + } + + if (thisStart >= thisEnd && start >= end) { + return 0; + } + if (thisStart >= thisEnd) { + return -1; + } + if (start >= end) { + return 1; + } + + start >>>= 0; + end >>>= 0; + thisStart >>>= 0; + thisEnd >>>= 0; + + if (this === target) return 0; + + var x = thisEnd - thisStart; + var y = end - start; + var len = Math.min(x, y); + + var thisCopy = this.slice(thisStart, thisEnd); + var targetCopy = target.slice(start, end); + + for (var i = 0; i < len; ++i) { + if (thisCopy[i] !== targetCopy[i]) { + x = thisCopy[i]; + y = targetCopy[i]; + break; + } + } + + if (x < y) return -1; + if (y < x) return 1; + return 0; + }; + + // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`, + // OR the last index of `val` in `buffer` at offset <= `byteOffset`. + // + // Arguments: + // - buffer - a Buffer to search + // - val - a string, Buffer, or number + // - byteOffset - an index into `buffer`; will be clamped to an int32 + // - encoding - an optional encoding, relevant is val is a string + // - dir - true for indexOf, false for lastIndexOf + function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) { + // Empty buffer means no match + if (buffer.length === 0) return -1; + + // Normalize byteOffset + if (typeof byteOffset === 'string') { + encoding = byteOffset; + byteOffset = 0; + } else if (byteOffset > 0x7fffffff) { + byteOffset = 0x7fffffff; + } else if (byteOffset < -0x80000000) { + byteOffset = -0x80000000; + } + byteOffset = +byteOffset; // Coerce to Number. + if (numberIsNaN(byteOffset)) { + // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer + byteOffset = dir ? 0 : buffer.length - 1; + } + + // Normalize byteOffset: negative offsets start from the end of the buffer + if (byteOffset < 0) byteOffset = buffer.length + byteOffset; + if (byteOffset >= buffer.length) { + if (dir) return -1; + else byteOffset = buffer.length - 1; + } else if (byteOffset < 0) { + if (dir) byteOffset = 0; + else return -1; + } + + // Normalize val + if (typeof val === 'string') { + val = Buffer.from(val, encoding); + } + + // Finally, search either indexOf (if dir is true) or lastIndexOf + if (Buffer.isBuffer(val)) { + // Special case: looking for empty string/buffer always fails + if (val.length === 0) { + return -1; + } + return arrayIndexOf(buffer, val, byteOffset, encoding, dir); + } else if (typeof val === 'number') { + val = val & 0xff; // Search for a byte value [0-255] + if (typeof Uint8Array.prototype.indexOf === 'function') { + if (dir) { + return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset); + } else { + return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset); + } + } + return arrayIndexOf(buffer, [val], byteOffset, encoding, dir); + } + + throw new TypeError('val must be string, number or Buffer'); + } + + function arrayIndexOf(arr, val, byteOffset, encoding, dir) { + var indexSize = 1; + var arrLength = arr.length; + var valLength = val.length; + + if (encoding !== undefined) { + encoding = String(encoding).toLowerCase(); + if ( + encoding === 'ucs2' || + encoding === 'ucs-2' || + encoding === 'utf16le' || + encoding === 'utf-16le' + ) { + if (arr.length < 2 || val.length < 2) { + return -1; + } + indexSize = 2; + arrLength /= 2; + valLength /= 2; + byteOffset /= 2; + } + } + + function read(buf, i) { + if (indexSize === 1) { + return buf[i]; + } else { + return buf.readUInt16BE(i * indexSize); + } + } + + var i; + if (dir) { + var foundIndex = -1; + for (i = byteOffset; i < arrLength; i++) { + if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) { + if (foundIndex === -1) foundIndex = i; + if (i - foundIndex + 1 === valLength) return foundIndex * indexSize; + } else { + if (foundIndex !== -1) i -= i - foundIndex; + foundIndex = -1; + } + } + } else { + if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength; + for (i = byteOffset; i >= 0; i--) { + var found = true; + for (var j = 0; j < valLength; j++) { + if (read(arr, i + j) !== read(val, j)) { + found = false; + break; + } + } + if (found) return i; + } + } + + return -1; + } + + Buffer.prototype.includes = function includes(val, byteOffset, encoding) { + return this.indexOf(val, byteOffset, encoding) !== -1; + }; + + Buffer.prototype.indexOf = function indexOf(val, byteOffset, encoding) { + return bidirectionalIndexOf(this, val, byteOffset, encoding, true); + }; + + Buffer.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) { + return bidirectionalIndexOf(this, val, byteOffset, encoding, false); + }; + + function hexWrite(buf, string, offset, length) { + offset = Number(offset) || 0; + var remaining = buf.length - offset; + if (!length) { + length = remaining; + } else { + length = Number(length); + if (length > remaining) { + length = remaining; + } + } + + var strLen = string.length; + + if (length > strLen / 2) { + length = strLen / 2; + } + for (var i = 0; i < length; ++i) { + var parsed = parseInt(string.substr(i * 2, 2), 16); + if (numberIsNaN(parsed)) return i; + buf[offset + i] = parsed; + } + return i; + } + + function utf8Write(buf, string, offset, length) { + return blitBuffer( + utf8ToBytes(string, buf.length - offset), + buf, + offset, + length + ); + } + + function asciiWrite(buf, string, offset, length) { + return blitBuffer(asciiToBytes(string), buf, offset, length); + } + + function latin1Write(buf, string, offset, length) { + return asciiWrite(buf, string, offset, length); + } + + function base64Write(buf, string, offset, length) { + return blitBuffer(base64ToBytes(string), buf, offset, length); + } + + function ucs2Write(buf, string, offset, length) { + return blitBuffer( + utf16leToBytes(string, buf.length - offset), + buf, + offset, + length + ); + } + + Buffer.prototype.write = function write(string, offset, length, encoding) { + // Buffer#write(string) + if (offset === undefined) { + encoding = 'utf8'; + length = this.length; + offset = 0; + // Buffer#write(string, encoding) + } else if (length === undefined && typeof offset === 'string') { + encoding = offset; + length = this.length; + offset = 0; + // Buffer#write(string, offset[, length][, encoding]) + } else if (isFinite(offset)) { + offset = offset >>> 0; + if (isFinite(length)) { + length = length >>> 0; + if (encoding === undefined) encoding = 'utf8'; + } else { + encoding = length; + length = undefined; + } + } else { + throw new Error( + 'Buffer.write(string, encoding, offset[, length]) is no longer supported' + ); + } + + var remaining = this.length - offset; + if (length === undefined || length > remaining) length = remaining; + + if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) { + throw new RangeError('Attempt to write outside buffer bounds'); + } + + if (!encoding) encoding = 'utf8'; + + var loweredCase = false; + for (;;) { + switch (encoding) { + case 'hex': + return hexWrite(this, string, offset, length); + + case 'utf8': + case 'utf-8': + return utf8Write(this, string, offset, length); + + case 'ascii': + return asciiWrite(this, string, offset, length); + + case 'latin1': + case 'binary': + return latin1Write(this, string, offset, length); + + case 'base64': + // Warning: maxLength not taken into account in base64Write + return base64Write(this, string, offset, length); + + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return ucs2Write(this, string, offset, length); + + default: + if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding); + encoding = ('' + encoding).toLowerCase(); + loweredCase = true; + } + } + }; + + Buffer.prototype.toJSON = function toJSON() { + return { + type: 'Buffer', + data: Array.prototype.slice.call(this._arr || this, 0) + }; + }; + + function base64Slice(buf, start, end) { + if (start === 0 && end === buf.length) { + return base64.fromByteArray(buf); + } else { + return base64.fromByteArray(buf.slice(start, end)); + } + } + + function utf8Slice(buf, start, end) { + end = Math.min(buf.length, end); + var res = []; + + var i = start; + while (i < end) { + var firstByte = buf[i]; + var codePoint = null; + var bytesPerSequence = + firstByte > 0xef ? 4 : firstByte > 0xdf ? 3 : firstByte > 0xbf ? 2 : 1; + + if (i + bytesPerSequence <= end) { + var secondByte, thirdByte, fourthByte, tempCodePoint; + + switch (bytesPerSequence) { + case 1: + if (firstByte < 0x80) { + codePoint = firstByte; + } + break; + case 2: + secondByte = buf[i + 1]; + if ((secondByte & 0xc0) === 0x80) { + tempCodePoint = ((firstByte & 0x1f) << 0x6) | (secondByte & 0x3f); + if (tempCodePoint > 0x7f) { + codePoint = tempCodePoint; + } + } + break; + case 3: + secondByte = buf[i + 1]; + thirdByte = buf[i + 2]; + if ((secondByte & 0xc0) === 0x80 && (thirdByte & 0xc0) === 0x80) { + tempCodePoint = + ((firstByte & 0xf) << 0xc) | + ((secondByte & 0x3f) << 0x6) | + (thirdByte & 0x3f); + if ( + tempCodePoint > 0x7ff && + (tempCodePoint < 0xd800 || tempCodePoint > 0xdfff) + ) { + codePoint = tempCodePoint; + } + } + break; + case 4: + secondByte = buf[i + 1]; + thirdByte = buf[i + 2]; + fourthByte = buf[i + 3]; + if ( + (secondByte & 0xc0) === 0x80 && + (thirdByte & 0xc0) === 0x80 && + (fourthByte & 0xc0) === 0x80 + ) { + tempCodePoint = + ((firstByte & 0xf) << 0x12) | + ((secondByte & 0x3f) << 0xc) | + ((thirdByte & 0x3f) << 0x6) | + (fourthByte & 0x3f); + if (tempCodePoint > 0xffff && tempCodePoint < 0x110000) { + codePoint = tempCodePoint; + } + } + } + } + + if (codePoint === null) { + // we did not generate a valid codePoint so insert a + // replacement char (U+FFFD) and advance only 1 byte + codePoint = 0xfffd; + bytesPerSequence = 1; + } else if (codePoint > 0xffff) { + // encode to utf16 (surrogate pair dance) + codePoint -= 0x10000; + res.push(((codePoint >>> 10) & 0x3ff) | 0xd800); + codePoint = 0xdc00 | (codePoint & 0x3ff); + } + + res.push(codePoint); + i += bytesPerSequence; + } + + return decodeCodePointsArray(res); + } + + // Based on http://stackoverflow.com/a/22747272/680742, the browser with + // the lowest limit is Chrome, with 0x10000 args. + // We go 1 magnitude less, for safety + var MAX_ARGUMENTS_LENGTH = 0x1000; + + function decodeCodePointsArray(codePoints) { + var len = codePoints.length; + if (len <= MAX_ARGUMENTS_LENGTH) { + return String.fromCharCode.apply(String, codePoints); // avoid extra slice() + } + + // Decode in chunks to avoid "call stack size exceeded". + var res = ''; + var i = 0; + while (i < len) { + res += String.fromCharCode.apply( + String, + codePoints.slice(i, (i += MAX_ARGUMENTS_LENGTH)) + ); + } + return res; + } + + function asciiSlice(buf, start, end) { + var ret = ''; + end = Math.min(buf.length, end); + + for (var i = start; i < end; ++i) { + ret += String.fromCharCode(buf[i] & 0x7f); + } + return ret; + } + + function latin1Slice(buf, start, end) { + var ret = ''; + end = Math.min(buf.length, end); + + for (var i = start; i < end; ++i) { + ret += String.fromCharCode(buf[i]); + } + return ret; + } + + function hexSlice(buf, start, end) { + var len = buf.length; + + if (!start || start < 0) start = 0; + if (!end || end < 0 || end > len) end = len; + + var out = ''; + for (var i = start; i < end; ++i) { + out += toHex(buf[i]); + } + return out; + } + + function utf16leSlice(buf, start, end) { + var bytes = buf.slice(start, end); + var res = ''; + for (var i = 0; i < bytes.length; i += 2) { + res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256); + } + return res; + } + + Buffer.prototype.slice = function slice(start, end) { + var len = this.length; + start = ~~start; + end = end === undefined ? len : ~~end; + + if (start < 0) { + start += len; + if (start < 0) start = 0; + } else if (start > len) { + start = len; + } + + if (end < 0) { + end += len; + if (end < 0) end = 0; + } else if (end > len) { + end = len; + } + + if (end < start) end = start; + + var newBuf = this.subarray(start, end); + // Return an augmented `Uint8Array` instance + newBuf.__proto__ = Buffer.prototype; + return newBuf; + }; + + /* + * Need to make sure that buffer isn't trying to write out of bounds. + */ + function checkOffset(offset, ext, length) { + if (offset % 1 !== 0 || offset < 0) throw new RangeError('offset is not uint'); + if (offset + ext > length) + throw new RangeError('Trying to access beyond buffer length'); + } + + Buffer.prototype.readUIntLE = function readUIntLE(offset, byteLength, noAssert) { + offset = offset >>> 0; + byteLength = byteLength >>> 0; + if (!noAssert) checkOffset(offset, byteLength, this.length); + + var val = this[offset]; + var mul = 1; + var i = 0; + while (++i < byteLength && (mul *= 0x100)) { + val += this[offset + i] * mul; + } + + return val; + }; + + Buffer.prototype.readUIntBE = function readUIntBE(offset, byteLength, noAssert) { + offset = offset >>> 0; + byteLength = byteLength >>> 0; + if (!noAssert) { + checkOffset(offset, byteLength, this.length); + } + + var val = this[offset + --byteLength]; + var mul = 1; + while (byteLength > 0 && (mul *= 0x100)) { + val += this[offset + --byteLength] * mul; + } + + return val; + }; + + Buffer.prototype.readUInt8 = function readUInt8(offset, noAssert) { + offset = offset >>> 0; + if (!noAssert) checkOffset(offset, 1, this.length); + return this[offset]; + }; + + Buffer.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) { + offset = offset >>> 0; + if (!noAssert) checkOffset(offset, 2, this.length); + return this[offset] | (this[offset + 1] << 8); + }; + + Buffer.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) { + offset = offset >>> 0; + if (!noAssert) checkOffset(offset, 2, this.length); + return (this[offset] << 8) | this[offset + 1]; + }; + + Buffer.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) { + offset = offset >>> 0; + if (!noAssert) checkOffset(offset, 4, this.length); + + return ( + (this[offset] | (this[offset + 1] << 8) | (this[offset + 2] << 16)) + + this[offset + 3] * 0x1000000 + ); + }; + + Buffer.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) { + offset = offset >>> 0; + if (!noAssert) checkOffset(offset, 4, this.length); + + return ( + this[offset] * 0x1000000 + + ((this[offset + 1] << 16) | (this[offset + 2] << 8) | this[offset + 3]) + ); + }; + + Buffer.prototype.readIntLE = function readIntLE(offset, byteLength, noAssert) { + offset = offset >>> 0; + byteLength = byteLength >>> 0; + if (!noAssert) checkOffset(offset, byteLength, this.length); + + var val = this[offset]; + var mul = 1; + var i = 0; + while (++i < byteLength && (mul *= 0x100)) { + val += this[offset + i] * mul; + } + mul *= 0x80; + + if (val >= mul) val -= Math.pow(2, 8 * byteLength); + + return val; + }; + + Buffer.prototype.readIntBE = function readIntBE(offset, byteLength, noAssert) { + offset = offset >>> 0; + byteLength = byteLength >>> 0; + if (!noAssert) checkOffset(offset, byteLength, this.length); + + var i = byteLength; + var mul = 1; + var val = this[offset + --i]; + while (i > 0 && (mul *= 0x100)) { + val += this[offset + --i] * mul; + } + mul *= 0x80; + + if (val >= mul) val -= Math.pow(2, 8 * byteLength); + + return val; + }; + + Buffer.prototype.readInt8 = function readInt8(offset, noAssert) { + offset = offset >>> 0; + if (!noAssert) checkOffset(offset, 1, this.length); + if (!(this[offset] & 0x80)) return this[offset]; + return (0xff - this[offset] + 1) * -1; + }; + + Buffer.prototype.readInt16LE = function readInt16LE(offset, noAssert) { + offset = offset >>> 0; + if (!noAssert) checkOffset(offset, 2, this.length); + var val = this[offset] | (this[offset + 1] << 8); + return val & 0x8000 ? val | 0xffff0000 : val; + }; + + Buffer.prototype.readInt16BE = function readInt16BE(offset, noAssert) { + offset = offset >>> 0; + if (!noAssert) checkOffset(offset, 2, this.length); + var val = this[offset + 1] | (this[offset] << 8); + return val & 0x8000 ? val | 0xffff0000 : val; + }; + + Buffer.prototype.readInt32LE = function readInt32LE(offset, noAssert) { + offset = offset >>> 0; + if (!noAssert) checkOffset(offset, 4, this.length); + + return ( + this[offset] | + (this[offset + 1] << 8) | + (this[offset + 2] << 16) | + (this[offset + 3] << 24) + ); + }; + + Buffer.prototype.readInt32BE = function readInt32BE(offset, noAssert) { + offset = offset >>> 0; + if (!noAssert) checkOffset(offset, 4, this.length); + + return ( + (this[offset] << 24) | + (this[offset + 1] << 16) | + (this[offset + 2] << 8) | + this[offset + 3] + ); + }; + + Buffer.prototype.readFloatLE = function readFloatLE(offset, noAssert) { + offset = offset >>> 0; + if (!noAssert) checkOffset(offset, 4, this.length); + return ieee754.read(this, offset, true, 23, 4); + }; + + Buffer.prototype.readFloatBE = function readFloatBE(offset, noAssert) { + offset = offset >>> 0; + if (!noAssert) checkOffset(offset, 4, this.length); + return ieee754.read(this, offset, false, 23, 4); + }; + + Buffer.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) { + offset = offset >>> 0; + if (!noAssert) checkOffset(offset, 8, this.length); + return ieee754.read(this, offset, true, 52, 8); + }; + + Buffer.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) { + offset = offset >>> 0; + if (!noAssert) checkOffset(offset, 8, this.length); + return ieee754.read(this, offset, false, 52, 8); + }; + + function checkInt(buf, value, offset, ext, max, min) { + if (!Buffer.isBuffer(buf)) + throw new TypeError('"buffer" argument must be a Buffer instance'); + if (value > max || value < min) + throw new RangeError('"value" argument is out of bounds'); + if (offset + ext > buf.length) throw new RangeError('Index out of range'); + } + + Buffer.prototype.writeUIntLE = function writeUIntLE( + value, + offset, + byteLength, + noAssert + ) { + value = +value; + offset = offset >>> 0; + byteLength = byteLength >>> 0; + if (!noAssert) { + var maxBytes = Math.pow(2, 8 * byteLength) - 1; + checkInt(this, value, offset, byteLength, maxBytes, 0); + } + + var mul = 1; + var i = 0; + this[offset] = value & 0xff; + while (++i < byteLength && (mul *= 0x100)) { + this[offset + i] = (value / mul) & 0xff; + } + + return offset + byteLength; + }; + + Buffer.prototype.writeUIntBE = function writeUIntBE( + value, + offset, + byteLength, + noAssert + ) { + value = +value; + offset = offset >>> 0; + byteLength = byteLength >>> 0; + if (!noAssert) { + var maxBytes = Math.pow(2, 8 * byteLength) - 1; + checkInt(this, value, offset, byteLength, maxBytes, 0); + } + + var i = byteLength - 1; + var mul = 1; + this[offset + i] = value & 0xff; + while (--i >= 0 && (mul *= 0x100)) { + this[offset + i] = (value / mul) & 0xff; + } + + return offset + byteLength; + }; + + Buffer.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) { + value = +value; + offset = offset >>> 0; + if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0); + this[offset] = value & 0xff; + return offset + 1; + }; + + Buffer.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) { + value = +value; + offset = offset >>> 0; + if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0); + this[offset] = value & 0xff; + this[offset + 1] = value >>> 8; + return offset + 2; + }; + + Buffer.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) { + value = +value; + offset = offset >>> 0; + if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0); + this[offset] = value >>> 8; + this[offset + 1] = value & 0xff; + return offset + 2; + }; + + Buffer.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) { + value = +value; + offset = offset >>> 0; + if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0); + this[offset + 3] = value >>> 24; + this[offset + 2] = value >>> 16; + this[offset + 1] = value >>> 8; + this[offset] = value & 0xff; + return offset + 4; + }; + + Buffer.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) { + value = +value; + offset = offset >>> 0; + if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0); + this[offset] = value >>> 24; + this[offset + 1] = value >>> 16; + this[offset + 2] = value >>> 8; + this[offset + 3] = value & 0xff; + return offset + 4; + }; + + Buffer.prototype.writeIntLE = function writeIntLE( + value, + offset, + byteLength, + noAssert + ) { + value = +value; + offset = offset >>> 0; + if (!noAssert) { + var limit = Math.pow(2, 8 * byteLength - 1); + + checkInt(this, value, offset, byteLength, limit - 1, -limit); + } + + var i = 0; + var mul = 1; + var sub = 0; + this[offset] = value & 0xff; + while (++i < byteLength && (mul *= 0x100)) { + if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) { + sub = 1; + } + this[offset + i] = (((value / mul) >> 0) - sub) & 0xff; + } + + return offset + byteLength; + }; + + Buffer.prototype.writeIntBE = function writeIntBE( + value, + offset, + byteLength, + noAssert + ) { + value = +value; + offset = offset >>> 0; + if (!noAssert) { + var limit = Math.pow(2, 8 * byteLength - 1); + + checkInt(this, value, offset, byteLength, limit - 1, -limit); + } + + var i = byteLength - 1; + var mul = 1; + var sub = 0; + this[offset + i] = value & 0xff; + while (--i >= 0 && (mul *= 0x100)) { + if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) { + sub = 1; + } + this[offset + i] = (((value / mul) >> 0) - sub) & 0xff; + } + + return offset + byteLength; + }; + + Buffer.prototype.writeInt8 = function writeInt8(value, offset, noAssert) { + value = +value; + offset = offset >>> 0; + if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80); + if (value < 0) value = 0xff + value + 1; + this[offset] = value & 0xff; + return offset + 1; + }; + + Buffer.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) { + value = +value; + offset = offset >>> 0; + if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000); + this[offset] = value & 0xff; + this[offset + 1] = value >>> 8; + return offset + 2; + }; + + Buffer.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) { + value = +value; + offset = offset >>> 0; + if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000); + this[offset] = value >>> 8; + this[offset + 1] = value & 0xff; + return offset + 2; + }; + + Buffer.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) { + value = +value; + offset = offset >>> 0; + if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000); + this[offset] = value & 0xff; + this[offset + 1] = value >>> 8; + this[offset + 2] = value >>> 16; + this[offset + 3] = value >>> 24; + return offset + 4; + }; + + Buffer.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) { + value = +value; + offset = offset >>> 0; + if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000); + if (value < 0) value = 0xffffffff + value + 1; + this[offset] = value >>> 24; + this[offset + 1] = value >>> 16; + this[offset + 2] = value >>> 8; + this[offset + 3] = value & 0xff; + return offset + 4; + }; + + function checkIEEE754(buf, value, offset, ext, max, min) { + if (offset + ext > buf.length) throw new RangeError('Index out of range'); + if (offset < 0) throw new RangeError('Index out of range'); + } + + function writeFloat(buf, value, offset, littleEndian, noAssert) { + value = +value; + offset = offset >>> 0; + if (!noAssert) { + checkIEEE754( + buf, + value, + offset, + 4, + 3.4028234663852886e38, + -3.4028234663852886e38 + ); + } + ieee754.write(buf, value, offset, littleEndian, 23, 4); + return offset + 4; + } + + Buffer.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) { + return writeFloat(this, value, offset, true, noAssert); + }; + + Buffer.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) { + return writeFloat(this, value, offset, false, noAssert); + }; + + function writeDouble(buf, value, offset, littleEndian, noAssert) { + value = +value; + offset = offset >>> 0; + if (!noAssert) { + checkIEEE754( + buf, + value, + offset, + 8, + 1.7976931348623157e308, + -1.7976931348623157e308 + ); + } + ieee754.write(buf, value, offset, littleEndian, 52, 8); + return offset + 8; + } + + Buffer.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) { + return writeDouble(this, value, offset, true, noAssert); + }; + + Buffer.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) { + return writeDouble(this, value, offset, false, noAssert); + }; + + // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length) + Buffer.prototype.copy = function copy(target, targetStart, start, end) { + if (!Buffer.isBuffer(target)) + throw new TypeError('argument should be a Buffer'); + if (!start) start = 0; + if (!end && end !== 0) end = this.length; + if (targetStart >= target.length) targetStart = target.length; + if (!targetStart) targetStart = 0; + if (end > 0 && end < start) end = start; + + // Copy 0 bytes; we're done + if (end === start) return 0; + if (target.length === 0 || this.length === 0) return 0; + + // Fatal error conditions + if (targetStart < 0) { + throw new RangeError('targetStart out of bounds'); + } + if (start < 0 || start >= this.length) + throw new RangeError('Index out of range'); + if (end < 0) throw new RangeError('sourceEnd out of bounds'); + + // Are we oob? + if (end > this.length) end = this.length; + if (target.length - targetStart < end - start) { + end = target.length - targetStart + start; + } + + var len = end - start; + + if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') { + // Use built-in when available, missing from IE11 + this.copyWithin(targetStart, start, end); + } else if (this === target && start < targetStart && targetStart < end) { + // descending copy from end + for (var i = len - 1; i >= 0; --i) { + target[i + targetStart] = this[i + start]; + } + } else { + Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart); + } + + return len; + }; + + // Usage: + // buffer.fill(number[, offset[, end]]) + // buffer.fill(buffer[, offset[, end]]) + // buffer.fill(string[, offset[, end]][, encoding]) + Buffer.prototype.fill = function fill(val, start, end, encoding) { + // Handle string cases: + if (typeof val === 'string') { + if (typeof start === 'string') { + encoding = start; + start = 0; + end = this.length; + } else if (typeof end === 'string') { + encoding = end; + end = this.length; + } + if (encoding !== undefined && typeof encoding !== 'string') { + throw new TypeError('encoding must be a string'); + } + if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) { + throw new TypeError('Unknown encoding: ' + encoding); + } + if (val.length === 1) { + var code = val.charCodeAt(0); + if ((encoding === 'utf8' && code < 128) || encoding === 'latin1') { + // Fast path: If `val` fits into a single byte, use that numeric value. + val = code; + } + } + } else if (typeof val === 'number') { + val = val & 255; + } + + // Invalid ranges are not set to a default, so can range check early. + if (start < 0 || this.length < start || this.length < end) { + throw new RangeError('Out of range index'); + } + + if (end <= start) { + return this; + } + + start = start >>> 0; + end = end === undefined ? this.length : end >>> 0; + + if (!val) val = 0; + + var i; + if (typeof val === 'number') { + for (i = start; i < end; ++i) { + this[i] = val; + } + } else { + var bytes = Buffer.isBuffer(val) ? val : Buffer.from(val, encoding); + var len = bytes.length; + if (len === 0) { + throw new TypeError( + 'The value "' + val + '" is invalid for argument "value"' + ); + } + for (i = 0; i < end - start; ++i) { + this[i + start] = bytes[i % len]; + } + } + + return this; + }; + + // HELPER FUNCTIONS + // ================ + + var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g; + + function base64clean(str) { + // Node takes equal signs as end of the Base64 encoding + str = str.split('=')[0]; + // Node strips out invalid characters like \n and \t from the string, base64-js does not + str = str.trim().replace(INVALID_BASE64_RE, ''); + // Node converts strings with length < 2 to '' + if (str.length < 2) return ''; + // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not + while (str.length % 4 !== 0) { + str = str + '='; + } + return str; + } + + function toHex(n) { + if (n < 16) return '0' + n.toString(16); + return n.toString(16); + } + + function utf8ToBytes(string, units) { + units = units || Infinity; + var codePoint; + var length = string.length; + var leadSurrogate = null; + var bytes = []; + + for (var i = 0; i < length; ++i) { + codePoint = string.charCodeAt(i); + + // is surrogate component + if (codePoint > 0xd7ff && codePoint < 0xe000) { + // last char was a lead + if (!leadSurrogate) { + // no lead yet + if (codePoint > 0xdbff) { + // unexpected trail + if ((units -= 3) > -1) bytes.push(0xef, 0xbf, 0xbd); + continue; + } else if (i + 1 === length) { + // unpaired lead + if ((units -= 3) > -1) bytes.push(0xef, 0xbf, 0xbd); + continue; + } + + // valid lead + leadSurrogate = codePoint; + + continue; + } + + // 2 leads in a row + if (codePoint < 0xdc00) { + if ((units -= 3) > -1) bytes.push(0xef, 0xbf, 0xbd); + leadSurrogate = codePoint; + continue; + } + + // valid surrogate pair + codePoint = + (((leadSurrogate - 0xd800) << 10) | (codePoint - 0xdc00)) + 0x10000; + } else if (leadSurrogate) { + // valid bmp char, but last char was a lead + if ((units -= 3) > -1) bytes.push(0xef, 0xbf, 0xbd); + } + + leadSurrogate = null; + + // encode utf8 + if (codePoint < 0x80) { + if ((units -= 1) < 0) break; + bytes.push(codePoint); + } else if (codePoint < 0x800) { + if ((units -= 2) < 0) break; + bytes.push((codePoint >> 0x6) | 0xc0, (codePoint & 0x3f) | 0x80); + } else if (codePoint < 0x10000) { + if ((units -= 3) < 0) break; + bytes.push( + (codePoint >> 0xc) | 0xe0, + ((codePoint >> 0x6) & 0x3f) | 0x80, + (codePoint & 0x3f) | 0x80 + ); + } else if (codePoint < 0x110000) { + if ((units -= 4) < 0) break; + bytes.push( + (codePoint >> 0x12) | 0xf0, + ((codePoint >> 0xc) & 0x3f) | 0x80, + ((codePoint >> 0x6) & 0x3f) | 0x80, + (codePoint & 0x3f) | 0x80 + ); + } else { + throw new Error('Invalid code point'); + } + } + + return bytes; + } + + function asciiToBytes(str) { + var byteArray = []; + for (var i = 0; i < str.length; ++i) { + // Node's code seems to be doing this and not & 0x7F.. + byteArray.push(str.charCodeAt(i) & 0xff); + } + return byteArray; + } + + function utf16leToBytes(str, units) { + var c, hi, lo; + var byteArray = []; + for (var i = 0; i < str.length; ++i) { + if ((units -= 2) < 0) break; + + c = str.charCodeAt(i); + hi = c >> 8; + lo = c % 256; + byteArray.push(lo); + byteArray.push(hi); + } + + return byteArray; + } + + function base64ToBytes(str) { + return base64.toByteArray(base64clean(str)); + } + + function blitBuffer(src, dst, offset, length) { + for (var i = 0; i < length; ++i) { + if (i + offset >= dst.length || i >= src.length) break; + dst[i + offset] = src[i]; + } + return i; + } + + // ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass + // the `instanceof` check but they should be treated as of that type. + // See: https://github.com/feross/buffer/issues/166 + function isInstance(obj, type) { + return ( + obj instanceof type || + (obj != null && + obj.constructor != null && + obj.constructor.name != null && + obj.constructor.name === type.name) + ); + } + function numberIsNaN(obj) { + // For IE11 support + return obj !== obj; // eslint-disable-line no-self-compare + } + }, + { 'base64-js': 2, ieee754: 8 } + ], + 5: [ + function(_dereq_, module, exports) { + (function(process, global) { + /*! + * @overview es6-promise - a tiny implementation of Promises/A+. + * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) + * @license Licensed under MIT license + * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE + * @version v4.2.6+9869a4bc + */ + + (function(global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' + ? (module.exports = factory()) + : typeof define === 'function' && define.amd + ? define(factory) + : (global.ES6Promise = factory()); + })(this, function() { + 'use strict'; + + function objectOrFunction(x) { + var type = typeof x; + return x !== null && (type === 'object' || type === 'function'); + } + + function isFunction(x) { + return typeof x === 'function'; + } + + var _isArray = void 0; + if (Array.isArray) { + _isArray = Array.isArray; + } else { + _isArray = function(x) { + return Object.prototype.toString.call(x) === '[object Array]'; + }; + } + + var isArray = _isArray; + + var len = 0; + var vertxNext = void 0; + var customSchedulerFn = void 0; + + var asap = function asap(callback, arg) { + queue[len] = callback; + queue[len + 1] = arg; + len += 2; + if (len === 2) { + // If len is 2, that means that we need to schedule an async flush. + // If additional callbacks are queued before the queue is flushed, they + // will be processed by this flush that we are scheduling. + if (customSchedulerFn) { + customSchedulerFn(flush); + } else { + scheduleFlush(); + } + } + }; + + function setScheduler(scheduleFn) { + customSchedulerFn = scheduleFn; + } + + function setAsap(asapFn) { + asap = asapFn; + } + + var browserWindow = typeof window !== 'undefined' ? window : undefined; + var browserGlobal = browserWindow || {}; + var BrowserMutationObserver = + browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver; + var isNode = + typeof self === 'undefined' && + typeof process !== 'undefined' && + {}.toString.call(process) === '[object process]'; + + // test for web worker but not in IE10 + var isWorker = + typeof Uint8ClampedArray !== 'undefined' && + typeof importScripts !== 'undefined' && + typeof MessageChannel !== 'undefined'; + + // node + function useNextTick() { + // node version 0.10.x displays a deprecation warning when nextTick is used recursively + // see https://github.com/cujojs/when/issues/410 for details + return function() { + return process.nextTick(flush); + }; + } + + // vertx + function useVertxTimer() { + if (typeof vertxNext !== 'undefined') { + return function() { + vertxNext(flush); + }; + } + + return useSetTimeout(); + } + + function useMutationObserver() { + var iterations = 0; + var observer = new BrowserMutationObserver(flush); + var node = document.createTextNode(''); + observer.observe(node, { characterData: true }); + + return function() { + node.data = iterations = ++iterations % 2; + }; + } + + // web worker + function useMessageChannel() { + var channel = new MessageChannel(); + channel.port1.onmessage = flush; + return function() { + return channel.port2.postMessage(0); + }; + } + + function useSetTimeout() { + // Store setTimeout reference so es6-promise will be unaffected by + // other code modifying setTimeout (like sinon.useFakeTimers()) + var globalSetTimeout = setTimeout; + return function() { + return globalSetTimeout(flush, 1); + }; + } + + var queue = new Array(1000); + function flush() { + for (var i = 0; i < len; i += 2) { + var callback = queue[i]; + var arg = queue[i + 1]; + + callback(arg); + + queue[i] = undefined; + queue[i + 1] = undefined; + } + + len = 0; + } + + function attemptVertx() { + try { + var vertx = Function('return this')().require('vertx'); + vertxNext = vertx.runOnLoop || vertx.runOnContext; + return useVertxTimer(); + } catch (e) { + return useSetTimeout(); + } + } + + var scheduleFlush = void 0; + // Decide what async method to use to triggering processing of queued callbacks: + if (isNode) { + scheduleFlush = useNextTick(); + } else if (BrowserMutationObserver) { + scheduleFlush = useMutationObserver(); + } else if (isWorker) { + scheduleFlush = useMessageChannel(); + } else if (browserWindow === undefined && typeof _dereq_ === 'function') { + scheduleFlush = attemptVertx(); + } else { + scheduleFlush = useSetTimeout(); + } + + function then(onFulfillment, onRejection) { + var parent = this; + + var child = new this.constructor(noop); + + if (child[PROMISE_ID] === undefined) { + makePromise(child); + } + + var _state = parent._state; + + if (_state) { + var callback = arguments[_state - 1]; + asap(function() { + return invokeCallback(_state, child, callback, parent._result); + }); + } else { + subscribe(parent, child, onFulfillment, onRejection); + } + + return child; + } + + /** + `Promise.resolve` returns a promise that will become resolved with the + passed `value`. It is shorthand for the following: + + ```javascript + let promise = new Promise(function(resolve, reject){ + resolve(1); + }); + + promise.then(function(value){ + // value === 1 + }); + ``` + + Instead of writing the above, your code now simply becomes the following: + + ```javascript + let promise = Promise.resolve(1); + + promise.then(function(value){ + // value === 1 + }); + ``` + + @method resolve + @static + @param {Any} value value that the returned promise will be resolved with + Useful for tooling. + @return {Promise} a promise that will become fulfilled with the given + `value` +*/ + function resolve$1(object) { + /*jshint validthis:true */ + var Constructor = this; + + if ( + object && + typeof object === 'object' && + object.constructor === Constructor + ) { + return object; + } + + var promise = new Constructor(noop); + resolve(promise, object); + return promise; + } + + var PROMISE_ID = Math.random() + .toString(36) + .substring(2); + + function noop() {} + + var PENDING = void 0; + var FULFILLED = 1; + var REJECTED = 2; + + var TRY_CATCH_ERROR = { error: null }; + + function selfFulfillment() { + return new TypeError('You cannot resolve a promise with itself'); + } + + function cannotReturnOwn() { + return new TypeError( + 'A promises callback cannot return that same promise.' + ); + } + + function getThen(promise) { + try { + return promise.then; + } catch (error) { + TRY_CATCH_ERROR.error = error; + return TRY_CATCH_ERROR; + } + } + + function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) { + try { + then$$1.call(value, fulfillmentHandler, rejectionHandler); + } catch (e) { + return e; + } + } + + function handleForeignThenable(promise, thenable, then$$1) { + asap(function(promise) { + var sealed = false; + var error = tryThen( + then$$1, + thenable, + function(value) { + if (sealed) { + return; + } + sealed = true; + if (thenable !== value) { + resolve(promise, value); + } else { + fulfill(promise, value); + } + }, + function(reason) { + if (sealed) { + return; + } + sealed = true; + + reject(promise, reason); + }, + 'Settle: ' + (promise._label || ' unknown promise') + ); + + if (!sealed && error) { + sealed = true; + reject(promise, error); + } + }, promise); + } + + function handleOwnThenable(promise, thenable) { + if (thenable._state === FULFILLED) { + fulfill(promise, thenable._result); + } else if (thenable._state === REJECTED) { + reject(promise, thenable._result); + } else { + subscribe( + thenable, + undefined, + function(value) { + return resolve(promise, value); + }, + function(reason) { + return reject(promise, reason); + } + ); + } + } + + function handleMaybeThenable(promise, maybeThenable, then$$1) { + if ( + maybeThenable.constructor === promise.constructor && + then$$1 === then && + maybeThenable.constructor.resolve === resolve$1 + ) { + handleOwnThenable(promise, maybeThenable); + } else { + if (then$$1 === TRY_CATCH_ERROR) { + reject(promise, TRY_CATCH_ERROR.error); + TRY_CATCH_ERROR.error = null; + } else if (then$$1 === undefined) { + fulfill(promise, maybeThenable); + } else if (isFunction(then$$1)) { + handleForeignThenable(promise, maybeThenable, then$$1); + } else { + fulfill(promise, maybeThenable); + } + } + } + + function resolve(promise, value) { + if (promise === value) { + reject(promise, selfFulfillment()); + } else if (objectOrFunction(value)) { + handleMaybeThenable(promise, value, getThen(value)); + } else { + fulfill(promise, value); + } + } + + function publishRejection(promise) { + if (promise._onerror) { + promise._onerror(promise._result); + } + + publish(promise); + } + + function fulfill(promise, value) { + if (promise._state !== PENDING) { + return; + } + + promise._result = value; + promise._state = FULFILLED; + + if (promise._subscribers.length !== 0) { + asap(publish, promise); + } + } + + function reject(promise, reason) { + if (promise._state !== PENDING) { + return; + } + promise._state = REJECTED; + promise._result = reason; + + asap(publishRejection, promise); + } + + function subscribe(parent, child, onFulfillment, onRejection) { + var _subscribers = parent._subscribers; + var length = _subscribers.length; + + parent._onerror = null; + + _subscribers[length] = child; + _subscribers[length + FULFILLED] = onFulfillment; + _subscribers[length + REJECTED] = onRejection; + + if (length === 0 && parent._state) { + asap(publish, parent); + } + } + + function publish(promise) { + var subscribers = promise._subscribers; + var settled = promise._state; + + if (subscribers.length === 0) { + return; + } + + var child = void 0, + callback = void 0, + detail = promise._result; + + for (var i = 0; i < subscribers.length; i += 3) { + child = subscribers[i]; + callback = subscribers[i + settled]; + + if (child) { + invokeCallback(settled, child, callback, detail); + } else { + callback(detail); + } + } + + promise._subscribers.length = 0; + } + + function tryCatch(callback, detail) { + try { + return callback(detail); + } catch (e) { + TRY_CATCH_ERROR.error = e; + return TRY_CATCH_ERROR; + } + } + + function invokeCallback(settled, promise, callback, detail) { + var hasCallback = isFunction(callback), + value = void 0, + error = void 0, + succeeded = void 0, + failed = void 0; + + if (hasCallback) { + value = tryCatch(callback, detail); + + if (value === TRY_CATCH_ERROR) { + failed = true; + error = value.error; + value.error = null; + } else { + succeeded = true; + } + + if (promise === value) { + reject(promise, cannotReturnOwn()); + return; + } + } else { + value = detail; + succeeded = true; + } + + if (promise._state !== PENDING) { + // noop + } else if (hasCallback && succeeded) { + resolve(promise, value); + } else if (failed) { + reject(promise, error); + } else if (settled === FULFILLED) { + fulfill(promise, value); + } else if (settled === REJECTED) { + reject(promise, value); + } + } + + function initializePromise(promise, resolver) { + try { + resolver( + function resolvePromise(value) { + resolve(promise, value); + }, + function rejectPromise(reason) { + reject(promise, reason); + } + ); + } catch (e) { + reject(promise, e); + } + } + + var id = 0; + function nextId() { + return id++; + } + + function makePromise(promise) { + promise[PROMISE_ID] = id++; + promise._state = undefined; + promise._result = undefined; + promise._subscribers = []; + } + + function validationError() { + return new Error('Array Methods must be provided an Array'); + } + + var Enumerator = (function() { + function Enumerator(Constructor, input) { + this._instanceConstructor = Constructor; + this.promise = new Constructor(noop); + + if (!this.promise[PROMISE_ID]) { + makePromise(this.promise); + } + + if (isArray(input)) { + this.length = input.length; + this._remaining = input.length; + + this._result = new Array(this.length); + + if (this.length === 0) { + fulfill(this.promise, this._result); + } else { + this.length = this.length || 0; + this._enumerate(input); + if (this._remaining === 0) { + fulfill(this.promise, this._result); + } + } + } else { + reject(this.promise, validationError()); + } + } + + Enumerator.prototype._enumerate = function _enumerate(input) { + for (var i = 0; this._state === PENDING && i < input.length; i++) { + this._eachEntry(input[i], i); + } + }; + + Enumerator.prototype._eachEntry = function _eachEntry(entry, i) { + var c = this._instanceConstructor; + var resolve$$1 = c.resolve; + + if (resolve$$1 === resolve$1) { + var _then = getThen(entry); + + if (_then === then && entry._state !== PENDING) { + this._settledAt(entry._state, i, entry._result); + } else if (typeof _then !== 'function') { + this._remaining--; + this._result[i] = entry; + } else if (c === Promise$1) { + var promise = new c(noop); + handleMaybeThenable(promise, entry, _then); + this._willSettleAt(promise, i); + } else { + this._willSettleAt( + new c(function(resolve$$1) { + return resolve$$1(entry); + }), + i + ); + } + } else { + this._willSettleAt(resolve$$1(entry), i); + } + }; + + Enumerator.prototype._settledAt = function _settledAt(state, i, value) { + var promise = this.promise; + + if (promise._state === PENDING) { + this._remaining--; + + if (state === REJECTED) { + reject(promise, value); + } else { + this._result[i] = value; + } + } + + if (this._remaining === 0) { + fulfill(promise, this._result); + } + }; + + Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) { + var enumerator = this; + + subscribe( + promise, + undefined, + function(value) { + return enumerator._settledAt(FULFILLED, i, value); + }, + function(reason) { + return enumerator._settledAt(REJECTED, i, reason); + } + ); + }; + + return Enumerator; + })(); + + /** + `Promise.all` accepts an array of promises, and returns a new promise which + is fulfilled with an array of fulfillment values for the passed promises, or + rejected with the reason of the first passed promise to be rejected. It casts all + elements of the passed iterable to promises as it runs this algorithm. + + Example: + + ```javascript + let promise1 = resolve(1); + let promise2 = resolve(2); + let promise3 = resolve(3); + let promises = [ promise1, promise2, promise3 ]; + + Promise.all(promises).then(function(array){ + // The array here would be [ 1, 2, 3 ]; + }); + ``` + + If any of the `promises` given to `all` are rejected, the first promise + that is rejected will be given as an argument to the returned promises's + rejection handler. For example: + + Example: + + ```javascript + let promise1 = resolve(1); + let promise2 = reject(new Error("2")); + let promise3 = reject(new Error("3")); + let promises = [ promise1, promise2, promise3 ]; + + Promise.all(promises).then(function(array){ + // Code here never runs because there are rejected promises! + }, function(error) { + // error.message === "2" + }); + ``` + + @method all + @static + @param {Array} entries array of promises + @param {String} label optional string for labeling the promise. + Useful for tooling. + @return {Promise} promise that is fulfilled when all `promises` have been + fulfilled, or rejected if any of them become rejected. + @static +*/ + function all(entries) { + return new Enumerator(this, entries).promise; + } + + /** + `Promise.race` returns a new promise which is settled in the same way as the + first passed promise to settle. + + Example: + + ```javascript + let promise1 = new Promise(function(resolve, reject){ + setTimeout(function(){ + resolve('promise 1'); + }, 200); + }); + + let promise2 = new Promise(function(resolve, reject){ + setTimeout(function(){ + resolve('promise 2'); + }, 100); + }); + + Promise.race([promise1, promise2]).then(function(result){ + // result === 'promise 2' because it was resolved before promise1 + // was resolved. + }); + ``` + + `Promise.race` is deterministic in that only the state of the first + settled promise matters. For example, even if other promises given to the + `promises` array argument are resolved, but the first settled promise has + become rejected before the other promises became fulfilled, the returned + promise will become rejected: + + ```javascript + let promise1 = new Promise(function(resolve, reject){ + setTimeout(function(){ + resolve('promise 1'); + }, 200); + }); + + let promise2 = new Promise(function(resolve, reject){ + setTimeout(function(){ + reject(new Error('promise 2')); + }, 100); + }); + + Promise.race([promise1, promise2]).then(function(result){ + // Code here never runs + }, function(reason){ + // reason.message === 'promise 2' because promise 2 became rejected before + // promise 1 became fulfilled + }); + ``` + + An example real-world use case is implementing timeouts: + + ```javascript + Promise.race([ajax('foo.json'), timeout(5000)]) + ``` + + @method race + @static + @param {Array} promises array of promises to observe + Useful for tooling. + @return {Promise} a promise which settles in the same way as the first passed + promise to settle. +*/ + function race(entries) { + /*jshint validthis:true */ + var Constructor = this; + + if (!isArray(entries)) { + return new Constructor(function(_, reject) { + return reject(new TypeError('You must pass an array to race.')); + }); + } else { + return new Constructor(function(resolve, reject) { + var length = entries.length; + for (var i = 0; i < length; i++) { + Constructor.resolve(entries[i]).then(resolve, reject); + } + }); + } + } + + /** + `Promise.reject` returns a promise rejected with the passed `reason`. + It is shorthand for the following: + + ```javascript + let promise = new Promise(function(resolve, reject){ + reject(new Error('WHOOPS')); + }); + + promise.then(function(value){ + // Code here doesn't run because the promise is rejected! + }, function(reason){ + // reason.message === 'WHOOPS' + }); + ``` + + Instead of writing the above, your code now simply becomes the following: + + ```javascript + let promise = Promise.reject(new Error('WHOOPS')); + + promise.then(function(value){ + // Code here doesn't run because the promise is rejected! + }, function(reason){ + // reason.message === 'WHOOPS' + }); + ``` + + @method reject + @static + @param {Any} reason value that the returned promise will be rejected with. + Useful for tooling. + @return {Promise} a promise rejected with the given `reason`. +*/ + function reject$1(reason) { + /*jshint validthis:true */ + var Constructor = this; + var promise = new Constructor(noop); + reject(promise, reason); + return promise; + } + + function needsResolver() { + throw new TypeError( + 'You must pass a resolver function as the first argument to the promise constructor' + ); + } + + function needsNew() { + throw new TypeError( + "Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function." + ); + } + + /** + Promise objects represent the eventual result of an asynchronous operation. The + primary way of interacting with a promise is through its `then` method, which + registers callbacks to receive either a promise's eventual value or the reason + why the promise cannot be fulfilled. + + Terminology + ----------- + + - `promise` is an object or function with a `then` method whose behavior conforms to this specification. + - `thenable` is an object or function that defines a `then` method. + - `value` is any legal JavaScript value (including undefined, a thenable, or a promise). + - `exception` is a value that is thrown using the throw statement. + - `reason` is a value that indicates why a promise was rejected. + - `settled` the final resting state of a promise, fulfilled or rejected. + + A promise can be in one of three states: pending, fulfilled, or rejected. + + Promises that are fulfilled have a fulfillment value and are in the fulfilled + state. Promises that are rejected have a rejection reason and are in the + rejected state. A fulfillment value is never a thenable. + + Promises can also be said to *resolve* a value. If this value is also a + promise, then the original promise's settled state will match the value's + settled state. So a promise that *resolves* a promise that rejects will + itself reject, and a promise that *resolves* a promise that fulfills will + itself fulfill. + + + Basic Usage: + ------------ + + ```js + let promise = new Promise(function(resolve, reject) { + // on success + resolve(value); + + // on failure + reject(reason); + }); + + promise.then(function(value) { + // on fulfillment + }, function(reason) { + // on rejection + }); + ``` + + Advanced Usage: + --------------- + + Promises shine when abstracting away asynchronous interactions such as + `XMLHttpRequest`s. + + ```js + function getJSON(url) { + return new Promise(function(resolve, reject){ + let xhr = new XMLHttpRequest(); + + xhr.open('GET', url); + xhr.onreadystatechange = handler; + xhr.responseType = 'json'; + xhr.setRequestHeader('Accept', 'application/json'); + xhr.send(); + + function handler() { + if (this.readyState === this.DONE) { + if (this.status === 200) { + resolve(this.response); + } else { + reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']')); + } + } + }; + }); + } + + getJSON('/posts.json').then(function(json) { + // on fulfillment + }, function(reason) { + // on rejection + }); + ``` + + Unlike callbacks, promises are great composable primitives. + + ```js + Promise.all([ + getJSON('/posts'), + getJSON('/comments') + ]).then(function(values){ + values[0] // => postsJSON + values[1] // => commentsJSON + + return values; + }); + ``` + + @class Promise + @param {Function} resolver + Useful for tooling. + @constructor +*/ + + var Promise$1 = (function() { + function Promise(resolver) { + this[PROMISE_ID] = nextId(); + this._result = this._state = undefined; + this._subscribers = []; + + if (noop !== resolver) { + typeof resolver !== 'function' && needsResolver(); + this instanceof Promise + ? initializePromise(this, resolver) + : needsNew(); + } + } + + /** + The primary way of interacting with a promise is through its `then` method, + which registers callbacks to receive either a promise's eventual value or the + reason why the promise cannot be fulfilled. + ```js + findUser().then(function(user){ + // user is available + }, function(reason){ + // user is unavailable, and you are given the reason why + }); + ``` + Chaining + -------- + The return value of `then` is itself a promise. This second, 'downstream' + promise is resolved with the return value of the first promise's fulfillment + or rejection handler, or rejected if the handler throws an exception. + ```js + findUser().then(function (user) { + return user.name; + }, function (reason) { + return 'default name'; + }).then(function (userName) { + // If `findUser` fulfilled, `userName` will be the user's name, otherwise it + // will be `'default name'` + }); + findUser().then(function (user) { + throw new Error('Found user, but still unhappy'); + }, function (reason) { + throw new Error('`findUser` rejected and we're unhappy'); + }).then(function (value) { + // never reached + }, function (reason) { + // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'. + // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'. + }); + ``` + If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream. + ```js + findUser().then(function (user) { + throw new PedagogicalException('Upstream error'); + }).then(function (value) { + // never reached + }).then(function (value) { + // never reached + }, function (reason) { + // The `PedgagocialException` is propagated all the way down to here + }); + ``` + Assimilation + ------------ + Sometimes the value you want to propagate to a downstream promise can only be + retrieved asynchronously. This can be achieved by returning a promise in the + fulfillment or rejection handler. The downstream promise will then be pending + until the returned promise is settled. This is called *assimilation*. + ```js + findUser().then(function (user) { + return findCommentsByAuthor(user); + }).then(function (comments) { + // The user's comments are now available + }); + ``` + If the assimliated promise rejects, then the downstream promise will also reject. + ```js + findUser().then(function (user) { + return findCommentsByAuthor(user); + }).then(function (comments) { + // If `findCommentsByAuthor` fulfills, we'll have the value here + }, function (reason) { + // If `findCommentsByAuthor` rejects, we'll have the reason here + }); + ``` + Simple Example + -------------- + Synchronous Example + ```javascript + let result; + try { + result = findResult(); + // success + } catch(reason) { + // failure + } + ``` + Errback Example + ```js + findResult(function(result, err){ + if (err) { + // failure + } else { + // success + } + }); + ``` + Promise Example; + ```javascript + findResult().then(function(result){ + // success + }, function(reason){ + // failure + }); + ``` + Advanced Example + -------------- + Synchronous Example + ```javascript + let author, books; + try { + author = findAuthor(); + books = findBooksByAuthor(author); + // success + } catch(reason) { + // failure + } + ``` + Errback Example + ```js + function foundBooks(books) { + } + function failure(reason) { + } + findAuthor(function(author, err){ + if (err) { + failure(err); + // failure + } else { + try { + findBoooksByAuthor(author, function(books, err) { + if (err) { + failure(err); + } else { + try { + foundBooks(books); + } catch(reason) { + failure(reason); + } + } + }); + } catch(error) { + failure(err); + } + // success + } + }); + ``` + Promise Example; + ```javascript + findAuthor(). + then(findBooksByAuthor). + then(function(books){ + // found books + }).catch(function(reason){ + // something went wrong + }); + ``` + @method then + @param {Function} onFulfilled + @param {Function} onRejected + Useful for tooling. + @return {Promise} + */ + + /** + `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same + as the catch block of a try/catch statement. + ```js + function findAuthor(){ + throw new Error('couldn't find that author'); + } + // synchronous + try { + findAuthor(); + } catch(reason) { + // something went wrong + } + // async with promises + findAuthor().catch(function(reason){ + // something went wrong + }); + ``` + @method catch + @param {Function} onRejection + Useful for tooling. + @return {Promise} + */ + + Promise.prototype.catch = function _catch(onRejection) { + return this.then(null, onRejection); + }; + + /** + `finally` will be invoked regardless of the promise's fate just as native + try/catch/finally behaves + + Synchronous example: + + ```js + findAuthor() { + if (Math.random() > 0.5) { + throw new Error(); + } + return new Author(); + } + + try { + return findAuthor(); // succeed or fail + } catch(error) { + return findOtherAuther(); + } finally { + // always runs + // doesn't affect the return value + } + ``` + + Asynchronous example: + + ```js + findAuthor().catch(function(reason){ + return findOtherAuther(); + }).finally(function(){ + // author was either found, or not + }); + ``` + + @method finally + @param {Function} callback + @return {Promise} + */ + + Promise.prototype.finally = function _finally(callback) { + var promise = this; + var constructor = promise.constructor; + + if (isFunction(callback)) { + return promise.then( + function(value) { + return constructor.resolve(callback()).then(function() { + return value; + }); + }, + function(reason) { + return constructor.resolve(callback()).then(function() { + throw reason; + }); + } + ); + } + + return promise.then(callback, callback); + }; + + return Promise; + })(); + + Promise$1.prototype.then = then; + Promise$1.all = all; + Promise$1.race = race; + Promise$1.resolve = resolve$1; + Promise$1.reject = reject$1; + Promise$1._setScheduler = setScheduler; + Promise$1._setAsap = setAsap; + Promise$1._asap = asap; + + /*global self*/ + function polyfill() { + var local = void 0; + + if (typeof global !== 'undefined') { + local = global; + } else if (typeof self !== 'undefined') { + local = self; + } else { + try { + local = Function('return this')(); + } catch (e) { + throw new Error( + 'polyfill failed because global object is unavailable in this environment' + ); + } + } + + var P = local.Promise; + + if (P) { + var promiseToString = null; + try { + promiseToString = Object.prototype.toString.call(P.resolve()); + } catch (e) { + // silently ignored + } + + if (promiseToString === '[object Promise]' && !P.cast) { + return; + } + } + + local.Promise = Promise$1; + } + + // Strange compat.. + Promise$1.polyfill = polyfill; + Promise$1.Promise = Promise$1; + + return Promise$1; + }); + }.call( + this, + _dereq_('_process'), + typeof global !== 'undefined' + ? global + : typeof self !== 'undefined' + ? self + : typeof window !== 'undefined' ? window : {} + )); + }, + { _process: 11 } + ], + 6: [ + function(_dereq_, module, exports) { + (function(global, factory) { + if (typeof define === 'function' && define.amd) { + define(['exports', 'module'], factory); + } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') { + factory(exports, module); + } else { + var mod = { + exports: {} + }; + factory(mod.exports, mod); + global.fetchJsonp = mod.exports; + } + })(this, function(exports, module) { + 'use strict'; + + var defaultOptions = { + timeout: 5000, + jsonpCallback: 'callback', + jsonpCallbackFunction: null + }; + + function generateCallbackFunction() { + return 'jsonp_' + Date.now() + '_' + Math.ceil(Math.random() * 100000); + } + + function clearFunction(functionName) { + // IE8 throws an exception when you try to delete a property on window + // http://stackoverflow.com/a/1824228/751089 + try { + delete window[functionName]; + } catch (e) { + window[functionName] = undefined; + } + } + + function removeScript(scriptId) { + var script = document.getElementById(scriptId); + if (script) { + document.getElementsByTagName('head')[0].removeChild(script); + } + } + + function fetchJsonp(_url) { + var options = + arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; + + // to avoid param reassign + var url = _url; + var timeout = options.timeout || defaultOptions.timeout; + var jsonpCallback = options.jsonpCallback || defaultOptions.jsonpCallback; + + var timeoutId = undefined; + + return new Promise(function(resolve, reject) { + var callbackFunction = + options.jsonpCallbackFunction || generateCallbackFunction(); + var scriptId = jsonpCallback + '_' + callbackFunction; + + window[callbackFunction] = function(response) { + resolve({ + ok: true, + // keep consistent with fetch API + json: function json() { + return Promise.resolve(response); + } + }); + + if (timeoutId) clearTimeout(timeoutId); + + removeScript(scriptId); + + clearFunction(callbackFunction); + }; + + // Check if the user set their own params, and if not add a ? to start a list of params + url += url.indexOf('?') === -1 ? '?' : '&'; + + var jsonpScript = document.createElement('script'); + jsonpScript.setAttribute( + 'src', + '' + url + jsonpCallback + '=' + callbackFunction + ); + if (options.charset) { + jsonpScript.setAttribute('charset', options.charset); + } + jsonpScript.id = scriptId; + document.getElementsByTagName('head')[0].appendChild(jsonpScript); + + timeoutId = setTimeout(function() { + reject(new Error('JSONP request to ' + _url + ' timed out')); + + clearFunction(callbackFunction); + removeScript(scriptId); + window[callbackFunction] = function() { + clearFunction(callbackFunction); + }; + }, timeout); + + // Caught if got 404/500 + jsonpScript.onerror = function() { + reject(new Error('JSONP request to ' + _url + ' failed')); + + clearFunction(callbackFunction); + removeScript(scriptId); + if (timeoutId) clearTimeout(timeoutId); + }; + }); + } + + // export as global function + /* + let local; + if (typeof global !== 'undefined') { + local = global; + } else if (typeof self !== 'undefined') { + local = self; + } else { + try { + local = Function('return this')(); + } catch (e) { + throw new Error('polyfill failed because global object is unavailable in this environment'); + } + } + local.fetchJsonp = fetchJsonp; + */ + + module.exports = fetchJsonp; + }); + }, + {} + ], + 7: [ + function(_dereq_, module, exports) { + /* FileSaver.js + * A saveAs() FileSaver implementation. + * 1.3.2 + * 2016-06-16 18:25:19 + * + * By Eli Grey, http://eligrey.com + * License: MIT + * See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md + */ + + /*global self */ + /*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */ + + /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */ + + var saveAs = + saveAs || + (function(view) { + 'use strict'; + // IE <10 is explicitly unsupported + if ( + typeof view === 'undefined' || + (typeof navigator !== 'undefined' && + /MSIE [1-9]\./.test(navigator.userAgent)) + ) { + return; + } + var doc = view.document, + // only get URL when necessary in case Blob.js hasn't overridden it yet + get_URL = function() { + return view.URL || view.webkitURL || view; + }, + save_link = doc.createElementNS('http://www.w3.org/1999/xhtml', 'a'), + can_use_save_link = 'download' in save_link, + click = function(node) { + var event = new MouseEvent('click'); + node.dispatchEvent(event); + }, + is_safari = /constructor/i.test(view.HTMLElement) || view.safari, + is_chrome_ios = /CriOS\/[\d]+/.test(navigator.userAgent), + throw_outside = function(ex) { + (view.setImmediate || view.setTimeout)(function() { + throw ex; + }, 0); + }, + force_saveable_type = 'application/octet-stream', + // the Blob API is fundamentally broken as there is no "downloadfinished" event to subscribe to + arbitrary_revoke_timeout = 1000 * 40, // in ms + revoke = function(file) { + var revoker = function() { + if (typeof file === 'string') { + // file is an object URL + get_URL().revokeObjectURL(file); + } else { + // file is a File + file.remove(); + } + }; + setTimeout(revoker, arbitrary_revoke_timeout); + }, + dispatch = function(filesaver, event_types, event) { + event_types = [].concat(event_types); + var i = event_types.length; + while (i--) { + var listener = filesaver['on' + event_types[i]]; + if (typeof listener === 'function') { + try { + listener.call(filesaver, event || filesaver); + } catch (ex) { + throw_outside(ex); + } + } + } + }, + auto_bom = function(blob) { + // prepend BOM for UTF-8 XML and text/* types (including HTML) + // note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF + if ( + /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test( + blob.type + ) + ) { + return new Blob([String.fromCharCode(0xfeff), blob], { + type: blob.type + }); + } + return blob; + }, + FileSaver = function(blob, name, no_auto_bom) { + if (!no_auto_bom) { + blob = auto_bom(blob); + } + // First try a.download, then web filesystem, then object URLs + var filesaver = this, + type = blob.type, + force = type === force_saveable_type, + object_url, + dispatch_all = function() { + dispatch(filesaver, 'writestart progress write writeend'.split(' ')); + }, + // on any filesys errors revert to saving with object URLs + fs_error = function() { + if ((is_chrome_ios || (force && is_safari)) && view.FileReader) { + // Safari doesn't allow downloading of blob urls + var reader = new FileReader(); + reader.onloadend = function() { + var url = is_chrome_ios + ? reader.result + : reader.result.replace( + /^data:[^;]*;/, + 'data:attachment/file;' + ); + var popup = view.open(url, '_blank'); + if (!popup) view.location.href = url; + url = undefined; // release reference before dispatching + filesaver.readyState = filesaver.DONE; + dispatch_all(); + }; + reader.readAsDataURL(blob); + filesaver.readyState = filesaver.INIT; + return; + } + // don't create more object URLs than needed + if (!object_url) { + object_url = get_URL().createObjectURL(blob); + } + if (force) { + view.location.href = object_url; + } else { + var opened = view.open(object_url, '_blank'); + if (!opened) { + // Apple does not allow window.open, see https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/WorkingwithWindowsandTabs/WorkingwithWindowsandTabs.html + view.location.href = object_url; + } + } + filesaver.readyState = filesaver.DONE; + dispatch_all(); + revoke(object_url); + }; + filesaver.readyState = filesaver.INIT; + + if (can_use_save_link) { + object_url = get_URL().createObjectURL(blob); + setTimeout(function() { + save_link.href = object_url; + save_link.download = name; + click(save_link); + dispatch_all(); + revoke(object_url); + filesaver.readyState = filesaver.DONE; + }); + return; + } + + fs_error(); + }, + FS_proto = FileSaver.prototype, + saveAs = function(blob, name, no_auto_bom) { + return new FileSaver(blob, name || blob.name || 'download', no_auto_bom); + }; + // IE 10+ (native saveAs) + if (typeof navigator !== 'undefined' && navigator.msSaveOrOpenBlob) { + return function(blob, name, no_auto_bom) { + name = name || blob.name || 'download'; + + if (!no_auto_bom) { + blob = auto_bom(blob); + } + return navigator.msSaveOrOpenBlob(blob, name); + }; + } + + FS_proto.abort = function() {}; + FS_proto.readyState = FS_proto.INIT = 0; + FS_proto.WRITING = 1; + FS_proto.DONE = 2; + + FS_proto.error = FS_proto.onwritestart = FS_proto.onprogress = FS_proto.onwrite = FS_proto.onabort = FS_proto.onerror = FS_proto.onwriteend = null; + + return saveAs; + })( + (typeof self !== 'undefined' && self) || + (typeof window !== 'undefined' && window) || + this.content + ); + // `self` is undefined in Firefox for Android content script context + // while `this` is nsIContentFrameMessageManager + // with an attribute `content` that corresponds to the window + + if (typeof module !== 'undefined' && module.exports) { + module.exports.saveAs = saveAs; + } else if ( + typeof define !== 'undefined' && + define !== null && + define.amd !== null + ) { + define('FileSaver.js', function() { + return saveAs; + }); + } + }, + {} + ], + 8: [ + function(_dereq_, module, exports) { + exports.read = function(buffer, offset, isLE, mLen, nBytes) { + var e, m; + var eLen = nBytes * 8 - mLen - 1; + var eMax = (1 << eLen) - 1; + var eBias = eMax >> 1; + var nBits = -7; + var i = isLE ? nBytes - 1 : 0; + var d = isLE ? -1 : 1; + var s = buffer[offset + i]; + + i += d; + + e = s & ((1 << -nBits) - 1); + s >>= -nBits; + nBits += eLen; + for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {} + + m = e & ((1 << -nBits) - 1); + e >>= -nBits; + nBits += mLen; + for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {} + + if (e === 0) { + e = 1 - eBias; + } else if (e === eMax) { + return m ? NaN : (s ? -1 : 1) * Infinity; + } else { + m = m + Math.pow(2, mLen); + e = e - eBias; + } + return (s ? -1 : 1) * m * Math.pow(2, e - mLen); + }; + + exports.write = function(buffer, value, offset, isLE, mLen, nBytes) { + var e, m, c; + var eLen = nBytes * 8 - mLen - 1; + var eMax = (1 << eLen) - 1; + var eBias = eMax >> 1; + var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0; + var i = isLE ? 0 : nBytes - 1; + var d = isLE ? 1 : -1; + var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0; + + value = Math.abs(value); + + if (isNaN(value) || value === Infinity) { + m = isNaN(value) ? 1 : 0; + e = eMax; + } else { + e = Math.floor(Math.log(value) / Math.LN2); + if (value * (c = Math.pow(2, -e)) < 1) { + e--; + c *= 2; + } + if (e + eBias >= 1) { + value += rt / c; + } else { + value += rt * Math.pow(2, 1 - eBias); + } + if (value * c >= 2) { + e++; + c /= 2; + } + + if (e + eBias >= eMax) { + m = 0; + e = eMax; + } else if (e + eBias >= 1) { + m = (value * c - 1) * Math.pow(2, mLen); + e = e + eBias; + } else { + m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen); + e = 0; + } + } + + for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {} + + e = (e << mLen) | m; + eLen += mLen; + for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {} + + buffer[offset + i - d] |= s * 128; + }; + }, + {} + ], + 9: [ + function(_dereq_, module, exports) { + /* + + Copyright 2000, Silicon Graphics, Inc. All Rights Reserved. + Copyright 2015, Google Inc. All Rights Reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice including the dates of first publication and + either this permission notice or a reference to http://oss.sgi.com/projects/FreeB/ + shall be included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR + IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + Original Code. The Original Code is: OpenGL Sample Implementation, + Version 1.2.1, released January 26, 2000, developed by Silicon Graphics, + Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc. + Copyright in any portions created by third parties is as indicated + elsewhere herein. All Rights Reserved. +*/ + 'use strict'; + var n; + function t(a, b) { + return a.b === b.b && a.a === b.a; + } + function u(a, b) { + return a.b < b.b || (a.b === b.b && a.a <= b.a); + } + function v(a, b, c) { + var d = b.b - a.b, + e = c.b - b.b; + return 0 < d + e + ? d < e + ? b.a - a.a + d / (d + e) * (a.a - c.a) + : b.a - c.a + e / (d + e) * (c.a - a.a) + : 0; + } + function x(a, b, c) { + var d = b.b - a.b, + e = c.b - b.b; + return 0 < d + e ? (b.a - c.a) * d + (b.a - a.a) * e : 0; + } + function z(a, b) { + return a.a < b.a || (a.a === b.a && a.b <= b.b); + } + function aa(a, b, c) { + var d = b.a - a.a, + e = c.a - b.a; + return 0 < d + e + ? d < e + ? b.b - a.b + d / (d + e) * (a.b - c.b) + : b.b - c.b + e / (d + e) * (c.b - a.b) + : 0; + } + function ba(a, b, c) { + var d = b.a - a.a, + e = c.a - b.a; + return 0 < d + e ? (b.b - c.b) * d + (b.b - a.b) * e : 0; + } + function ca(a) { + return u(a.b.a, a.a); + } + function da(a) { + return u(a.a, a.b.a); + } + function A(a, b, c, d) { + a = 0 > a ? 0 : a; + c = 0 > c ? 0 : c; + return a <= c + ? 0 === c ? (b + d) / 2 : b + a / (a + c) * (d - b) + : d + c / (a + c) * (b - d); + } + function ea(a) { + var b = B(a.b); + C(b, a.c); + C(b.b, a.c); + D(b, a.a); + return b; + } + function E(a, b) { + var c = !1, + d = !1; + a !== b && + (b.a !== a.a && ((d = !0), F(b.a, a.a)), + b.d !== a.d && ((c = !0), G(b.d, a.d)), + H(b, a), + d || (C(b, a.a), (a.a.c = a)), + c || (D(b, a.d), (a.d.a = a))); + } + function I(a) { + var b = a.b, + c = !1; + a.d !== a.b.d && ((c = !0), G(a.d, a.b.d)); + a.c === a + ? F(a.a, null) + : ((a.b.d.a = J(a)), (a.a.c = a.c), H(a, J(a)), c || D(a, a.d)); + b.c === b + ? (F(b.a, null), G(b.d, null)) + : ((a.d.a = J(b)), (b.a.c = b.c), H(b, J(b))); + fa(a); + } + function K(a) { + var b = B(a), + c = b.b; + H(b, a.e); + b.a = a.b.a; + C(c, b.a); + b.d = c.d = a.d; + b = b.b; + H(a.b, J(a.b)); + H(a.b, b); + a.b.a = b.a; + b.b.a.c = b.b; + b.b.d = a.b.d; + b.f = a.f; + b.b.f = a.b.f; + return b; + } + function L(a, b) { + var c = !1, + d = B(a), + e = d.b; + b.d !== a.d && ((c = !0), G(b.d, a.d)); + H(d, a.e); + H(e, b); + d.a = a.b.a; + e.a = b.a; + d.d = e.d = a.d; + a.d.a = e; + c || D(d, a.d); + return d; + } + function B(a) { + var b = new M(), + c = new M(), + d = a.b.h; + c.h = d; + d.b.h = b; + b.h = a; + a.b.h = c; + b.b = c; + b.c = b; + b.e = c; + c.b = b; + c.c = c; + return (c.e = b); + } + function H(a, b) { + var c = a.c, + d = b.c; + c.b.e = b; + d.b.e = a; + a.c = d; + b.c = c; + } + function C(a, b) { + var c = b.f, + d = new N(b, c); + c.e = d; + b.f = d; + c = d.c = a; + do (c.a = d), (c = c.c); + while (c !== a); + } + function D(a, b) { + var c = b.d, + d = new ga(b, c); + c.b = d; + b.d = d; + d.a = a; + d.c = b.c; + c = a; + do (c.d = d), (c = c.e); + while (c !== a); + } + function fa(a) { + var b = a.h; + a = a.b.h; + b.b.h = a; + a.b.h = b; + } + function F(a, b) { + var c = a.c, + d = c; + do (d.a = b), (d = d.c); + while (d !== c); + c = a.f; + d = a.e; + d.f = c; + c.e = d; + } + function G(a, b) { + var c = a.a, + d = c; + do (d.d = b), (d = d.e); + while (d !== c); + c = a.d; + d = a.b; + d.d = c; + c.b = d; + } + function ha(a) { + var b = 0; + Math.abs(a[1]) > Math.abs(a[0]) && (b = 1); + Math.abs(a[2]) > Math.abs(a[b]) && (b = 2); + return b; + } + var O = 4 * 1e150; + function P(a, b) { + a.f += b.f; + a.b.f += b.b.f; + } + function ia(a, b, c) { + a = a.a; + b = b.a; + c = c.a; + if (b.b.a === a) + return c.b.a === a + ? u(b.a, c.a) ? 0 >= x(c.b.a, b.a, c.a) : 0 <= x(b.b.a, c.a, b.a) + : 0 >= x(c.b.a, a, c.a); + if (c.b.a === a) return 0 <= x(b.b.a, a, b.a); + b = v(b.b.a, a, b.a); + a = v(c.b.a, a, c.a); + return b >= a; + } + function Q(a) { + a.a.i = null; + var b = a.e; + b.a.c = b.c; + b.c.a = b.a; + a.e = null; + } + function ja(a, b) { + I(a.a); + a.c = !1; + a.a = b; + b.i = a; + } + function ka(a) { + var b = a.a.a; + do a = R(a); + while (a.a.a === b); + a.c && ((b = L(S(a).a.b, a.a.e)), ja(a, b), (a = R(a))); + return a; + } + function la(a, b, c) { + var d = new ma(); + d.a = c; + d.e = na(a.f, b.e, d); + return (c.i = d); + } + function oa(a, b) { + switch (a.s) { + case 100130: + return 0 !== (b & 1); + case 100131: + return 0 !== b; + case 100132: + return 0 < b; + case 100133: + return 0 > b; + case 100134: + return 2 <= b || -2 >= b; + } + return !1; + } + function pa(a) { + var b = a.a, + c = b.d; + c.c = a.d; + c.a = b; + Q(a); + } + function T(a, b, c) { + a = b; + for (b = b.a; a !== c; ) { + a.c = !1; + var d = S(a), + e = d.a; + if (e.a !== b.a) { + if (!d.c) { + pa(a); + break; + } + e = L(b.c.b, e.b); + ja(d, e); + } + b.c !== e && (E(J(e), e), E(b, e)); + pa(a); + b = d.a; + a = d; + } + return b; + } + function U(a, b, c, d, e, f) { + var g = !0; + do la(a, b, c.b), (c = c.c); + while (c !== d); + for (null === e && (e = S(b).a.b.c); ; ) { + d = S(b); + c = d.a.b; + if (c.a !== e.a) break; + c.c !== e && (E(J(c), c), E(J(e), c)); + d.f = b.f - c.f; + d.d = oa(a, d.f); + b.b = !0; + !g && qa(a, b) && (P(c, e), Q(b), I(e)); + g = !1; + b = d; + e = c; + } + b.b = !0; + f && ra(a, b); + } + function sa(a, b, c, d, e) { + var f = [b.g[0], b.g[1], b.g[2]]; + b.d = null; + b.d = a.o ? a.o(f, c, d, a.c) || null : null; + null === b.d && (e ? a.n || (V(a, 100156), (a.n = !0)) : (b.d = c[0])); + } + function ta(a, b, c) { + var d = [null, null, null, null]; + d[0] = b.a.d; + d[1] = c.a.d; + sa(a, b.a, d, [0.5, 0.5, 0, 0], !1); + E(b, c); + } + function ua(a, b, c, d, e) { + var f = Math.abs(b.b - a.b) + Math.abs(b.a - a.a), + g = Math.abs(c.b - a.b) + Math.abs(c.a - a.a), + h = e + 1; + d[e] = 0.5 * g / (f + g); + d[h] = 0.5 * f / (f + g); + a.g[0] += d[e] * b.g[0] + d[h] * c.g[0]; + a.g[1] += d[e] * b.g[1] + d[h] * c.g[1]; + a.g[2] += d[e] * b.g[2] + d[h] * c.g[2]; + } + function qa(a, b) { + var c = S(b), + d = b.a, + e = c.a; + if (u(d.a, e.a)) { + if (0 < x(e.b.a, d.a, e.a)) return !1; + if (!t(d.a, e.a)) K(e.b), E(d, J(e)), (b.b = c.b = !0); + else if (d.a !== e.a) { + var c = a.e, + f = d.a.h; + if (0 <= f) { + var c = c.b, + g = c.d, + h = c.e, + k = c.c, + l = k[f]; + g[l] = g[c.a]; + k[g[l]] = l; + l <= --c.a && + (1 >= l ? W(c, l) : u(h[g[l >> 1]], h[g[l]]) ? W(c, l) : va(c, l)); + h[f] = null; + k[f] = c.b; + c.b = f; + } else + for (c.c[-(f + 1)] = null; 0 < c.a && null === c.c[c.d[c.a - 1]]; ) --c.a; + ta(a, J(e), d); + } + } else { + if (0 > x(d.b.a, e.a, d.a)) return !1; + R(b).b = b.b = !0; + K(d.b); + E(J(e), d); + } + return !0; + } + function wa(a, b) { + var c = S(b), + d = b.a, + e = c.a, + f = d.a, + g = e.a, + h = d.b.a, + k = e.b.a, + l = new N(); + x(h, a.a, f); + x(k, a.a, g); + if (f === g || Math.min(f.a, h.a) > Math.max(g.a, k.a)) return !1; + if (u(f, g)) { + if (0 < x(k, f, g)) return !1; + } else if (0 > x(h, g, f)) return !1; + var r = h, + p = f, + q = k, + y = g, + m, + w; + u(r, p) || ((m = r), (r = p), (p = m)); + u(q, y) || ((m = q), (q = y), (y = m)); + u(r, q) || ((m = r), (r = q), (q = m), (m = p), (p = y), (y = m)); + u(q, p) + ? u(p, y) + ? ((m = v(r, q, p)), + (w = v(q, p, y)), + 0 > m + w && ((m = -m), (w = -w)), + (l.b = A(m, q.b, w, p.b))) + : ((m = x(r, q, p)), + (w = -x(r, y, p)), + 0 > m + w && ((m = -m), (w = -w)), + (l.b = A(m, q.b, w, y.b))) + : (l.b = (q.b + p.b) / 2); + z(r, p) || ((m = r), (r = p), (p = m)); + z(q, y) || ((m = q), (q = y), (y = m)); + z(r, q) || ((m = r), (r = q), (q = m), (m = p), (p = y), (y = m)); + z(q, p) + ? z(p, y) + ? ((m = aa(r, q, p)), + (w = aa(q, p, y)), + 0 > m + w && ((m = -m), (w = -w)), + (l.a = A(m, q.a, w, p.a))) + : ((m = ba(r, q, p)), + (w = -ba(r, y, p)), + 0 > m + w && ((m = -m), (w = -w)), + (l.a = A(m, q.a, w, y.a))) + : (l.a = (q.a + p.a) / 2); + u(l, a.a) && ((l.b = a.a.b), (l.a = a.a.a)); + r = u(f, g) ? f : g; + u(r, l) && ((l.b = r.b), (l.a = r.a)); + if (t(l, f) || t(l, g)) return qa(a, b), !1; + if ((!t(h, a.a) && 0 <= x(h, a.a, l)) || (!t(k, a.a) && 0 >= x(k, a.a, l))) { + if (k === a.a) + return ( + K(d.b), + E(e.b, d), + (b = ka(b)), + (d = S(b).a), + T(a, S(b), c), + U(a, b, J(d), d, d, !0), + !0 + ); + if (h === a.a) { + K(e.b); + E(d.e, J(e)); + f = c = b; + g = f.a.b.a; + do f = R(f); + while (f.a.b.a === g); + b = f; + f = S(b).a.b.c; + c.a = J(e); + e = T(a, c, null); + U(a, b, e.c, d.b.c, f, !0); + return !0; + } + 0 <= x(h, a.a, l) && + ((R(b).b = b.b = !0), K(d.b), (d.a.b = a.a.b), (d.a.a = a.a.a)); + 0 >= x(k, a.a, l) && + ((b.b = c.b = !0), K(e.b), (e.a.b = a.a.b), (e.a.a = a.a.a)); + return !1; + } + K(d.b); + K(e.b); + E(J(e), d); + d.a.b = l.b; + d.a.a = l.a; + d.a.h = xa(a.e, d.a); + d = d.a; + e = [0, 0, 0, 0]; + l = [f.d, h.d, g.d, k.d]; + d.g[0] = d.g[1] = d.g[2] = 0; + ua(d, f, h, e, 0); + ua(d, g, k, e, 2); + sa(a, d, l, e, !0); + R(b).b = b.b = c.b = !0; + return !1; + } + function ra(a, b) { + for (var c = S(b); ; ) { + for (; c.b; ) (b = c), (c = S(c)); + if (!b.b && ((c = b), (b = R(b)), null === b || !b.b)) break; + b.b = !1; + var d = b.a, + e = c.a, + f; + if ((f = d.b.a !== e.b.a)) + a: { + f = b; + var g = S(f), + h = f.a, + k = g.a, + l = void 0; + if (u(h.b.a, k.b.a)) { + if (0 > x(h.b.a, k.b.a, h.a)) { + f = !1; + break a; + } + R(f).b = f.b = !0; + l = K(h); + E(k.b, l); + l.d.c = f.d; + } else { + if (0 < x(k.b.a, h.b.a, k.a)) { + f = !1; + break a; + } + f.b = g.b = !0; + l = K(k); + E(h.e, k.b); + l.b.d.c = f.d; + } + f = !0; + } + f && + (c.c + ? (Q(c), I(e), (c = S(b)), (e = c.a)) + : b.c && (Q(b), I(d), (b = R(c)), (d = b.a))); + if (d.a !== e.a) + if (d.b.a === e.b.a || b.c || c.c || (d.b.a !== a.a && e.b.a !== a.a)) + qa(a, b); + else if (wa(a, b)) break; + d.a === e.a && d.b.a === e.b.a && (P(e, d), Q(b), I(d), (b = R(c))); + } + } + function ya(a, b) { + a.a = b; + for (var c = b.c; null === c.i; ) + if (((c = c.c), c === b.c)) { + var c = a, + d = b, + e = new ma(); + e.a = d.c.b; + var f = c.f, + g = f.a; + do g = g.a; + while (null !== g.b && !f.c(f.b, e, g.b)); + var f = g.b, + h = S(f), + e = f.a, + g = h.a; + if (0 === x(e.b.a, d, e.a)) + (e = f.a), + t(e.a, d) || + t(e.b.a, d) || + (K(e.b), f.c && (I(e.c), (f.c = !1)), E(d.c, e), ya(c, d)); + else { + var k = u(g.b.a, e.b.a) ? f : h, + h = void 0; + f.d || k.c + ? (k === f ? (h = L(d.c.b, e.e)) : (h = L(g.b.c.b, d.c).b), + k.c + ? ja(k, h) + : ((e = c), + (f = la(c, f, h)), + (f.f = R(f).f + f.a.f), + (f.d = oa(e, f.f))), + ya(c, d)) + : U(c, f, d.c, d.c, null, !0); + } + return; + } + c = ka(c.i); + e = S(c); + f = e.a; + e = T(a, e, null); + if (e.c === f) { + var f = e, + e = f.c, + g = S(c), + h = c.a, + k = g.a, + l = !1; + h.b.a !== k.b.a && wa(a, c); + t(h.a, a.a) && + (E(J(e), h), (c = ka(c)), (e = S(c).a), T(a, S(c), g), (l = !0)); + t(k.a, a.a) && (E(f, J(k)), (f = T(a, g, null)), (l = !0)); + l + ? U(a, c, f.c, e, e, !0) + : (u(k.a, h.a) ? (d = J(k)) : (d = h), + (d = L(f.c.b, d)), + U(a, c, d, d.c, d.c, !1), + (d.b.i.c = !0), + ra(a, c)); + } else U(a, c, e.c, f, f, !0); + } + function za(a, b) { + var c = new ma(), + d = ea(a.b); + d.a.b = O; + d.a.a = b; + d.b.a.b = -O; + d.b.a.a = b; + a.a = d.b.a; + c.a = d; + c.f = 0; + c.d = !1; + c.c = !1; + c.h = !0; + c.b = !1; + d = a.f; + d = na(d, d.a, c); + c.e = d; + } + function Aa(a) { + this.a = new Ba(); + this.b = a; + this.c = ia; + } + function na(a, b, c) { + do b = b.c; + while (null !== b.b && !a.c(a.b, b.b, c)); + a = new Ba(c, b.a, b); + b.a.c = a; + return (b.a = a); + } + function Ba(a, b, c) { + this.b = a || null; + this.a = b || this; + this.c = c || this; + } + function X() { + this.d = Y; + this.p = this.b = this.q = null; + this.j = [0, 0, 0]; + this.s = 100130; + this.n = !1; + this.o = this.a = this.e = this.f = null; + this.m = !1; + this.c = this.r = this.i = this.k = this.l = this.h = null; + } + var Y = 0; + n = X.prototype; + n.x = function() { + Z(this, Y); + }; + n.B = function(a, b) { + switch (a) { + case 100142: + return; + case 100140: + switch (b) { + case 100130: + case 100131: + case 100132: + case 100133: + case 100134: + this.s = b; + return; + } + break; + case 100141: + this.m = !!b; + return; + default: + V(this, 100900); + return; + } + V(this, 100901); + }; + n.y = function(a) { + switch (a) { + case 100142: + return 0; + case 100140: + return this.s; + case 100141: + return this.m; + default: + V(this, 100900); + } + return !1; + }; + n.A = function(a, b, c) { + this.j[0] = a; + this.j[1] = b; + this.j[2] = c; + }; + n.z = function(a, b) { + var c = b ? b : null; + switch (a) { + case 100100: + case 100106: + this.h = c; + break; + case 100104: + case 100110: + this.l = c; + break; + case 100101: + case 100107: + this.k = c; + break; + case 100102: + case 100108: + this.i = c; + break; + case 100103: + case 100109: + this.p = c; + break; + case 100105: + case 100111: + this.o = c; + break; + case 100112: + this.r = c; + break; + default: + V(this, 100900); + } + }; + n.C = function(a, b) { + var c = !1, + d = [0, 0, 0]; + Z(this, 2); + for (var e = 0; 3 > e; ++e) { + var f = a[e]; + -1e150 > f && ((f = -1e150), (c = !0)); + 1e150 < f && ((f = 1e150), (c = !0)); + d[e] = f; + } + c && V(this, 100155); + c = this.q; + null === c ? ((c = ea(this.b)), E(c, c.b)) : (K(c), (c = c.e)); + c.a.d = b; + c.a.g[0] = d[0]; + c.a.g[1] = d[1]; + c.a.g[2] = d[2]; + c.f = 1; + c.b.f = -1; + this.q = c; + }; + n.u = function(a) { + Z(this, Y); + this.d = 1; + this.b = new Ca(); + this.c = a; + }; + n.t = function() { + Z(this, 1); + this.d = 2; + this.q = null; + }; + n.v = function() { + Z(this, 2); + this.d = 1; + }; + n.w = function() { + Z(this, 1); + this.d = Y; + var a = this.j[0], + b = this.j[1], + c = this.j[2], + d = !1, + e = [a, b, c]; + if (0 === a && 0 === b && 0 === c) { + for ( + var b = [-2 * 1e150, -2 * 1e150, -2 * 1e150], + f = [2 * 1e150, 2 * 1e150, 2 * 1e150], + c = [], + g = [], + d = this.b.c, + a = d.e; + a !== d; + a = a.e + ) + for (var h = 0; 3 > h; ++h) { + var k = a.g[h]; + k < f[h] && ((f[h] = k), (g[h] = a)); + k > b[h] && ((b[h] = k), (c[h] = a)); + } + a = 0; + b[1] - f[1] > b[0] - f[0] && (a = 1); + b[2] - f[2] > b[a] - f[a] && (a = 2); + if (f[a] >= b[a]) (e[0] = 0), (e[1] = 0), (e[2] = 1); + else { + b = 0; + f = g[a]; + c = c[a]; + g = [0, 0, 0]; + f = [f.g[0] - c.g[0], f.g[1] - c.g[1], f.g[2] - c.g[2]]; + h = [0, 0, 0]; + for (a = d.e; a !== d; a = a.e) + (h[0] = a.g[0] - c.g[0]), + (h[1] = a.g[1] - c.g[1]), + (h[2] = a.g[2] - c.g[2]), + (g[0] = f[1] * h[2] - f[2] * h[1]), + (g[1] = f[2] * h[0] - f[0] * h[2]), + (g[2] = f[0] * h[1] - f[1] * h[0]), + (k = g[0] * g[0] + g[1] * g[1] + g[2] * g[2]), + k > b && ((b = k), (e[0] = g[0]), (e[1] = g[1]), (e[2] = g[2])); + 0 >= b && ((e[0] = e[1] = e[2] = 0), (e[ha(f)] = 1)); + } + d = !0; + } + g = ha(e); + a = this.b.c; + b = (g + 1) % 3; + c = (g + 2) % 3; + g = 0 < e[g] ? 1 : -1; + for (e = a.e; e !== a; e = e.e) (e.b = e.g[b]), (e.a = g * e.g[c]); + if (d) { + e = 0; + d = this.b.a; + for (a = d.b; a !== d; a = a.b) + if (((b = a.a), !(0 >= b.f))) { + do (e += (b.a.b - b.b.a.b) * (b.a.a + b.b.a.a)), (b = b.e); + while (b !== a.a); + } + if (0 > e) for (e = this.b.c, d = e.e; d !== e; d = d.e) d.a = -d.a; + } + this.n = !1; + e = this.b.b; + for (a = e.h; a !== e; a = d) + if ( + ((d = a.h), + (b = a.e), + t(a.a, a.b.a) && a.e.e !== a && (ta(this, b, a), I(a), (a = b), (b = a.e)), + b.e === a) + ) { + if (b !== a) { + if (b === d || b === d.b) d = d.h; + I(b); + } + if (a === d || a === d.b) d = d.h; + I(a); + } + this.e = e = new Da(); + d = this.b.c; + for (a = d.e; a !== d; a = a.e) a.h = xa(e, a); + Ea(e); + this.f = new Aa(this); + za(this, -O); + for (za(this, O); null !== (e = Fa(this.e)); ) { + for (;;) { + a: if (((a = this.e), 0 === a.a)) d = Ga(a.b); + else if ( + ((d = a.c[a.d[a.a - 1]]), 0 !== a.b.a && ((a = Ga(a.b)), u(a, d))) + ) { + d = a; + break a; + } + if (null === d || !t(d, e)) break; + d = Fa(this.e); + ta(this, e.c, d.c); + } + ya(this, e); + } + this.a = this.f.a.a.b.a.a; + for (e = 0; null !== (d = this.f.a.a.b); ) d.h || ++e, Q(d); + this.f = null; + e = this.e; + e.b = null; + e.d = null; + this.e = e.c = null; + e = this.b; + for (a = e.a.b; a !== e.a; a = d) + (d = a.b), (a = a.a), a.e.e === a && (P(a.c, a), I(a)); + if (!this.n) { + e = this.b; + if (this.m) + for (a = e.b.h; a !== e.b; a = d) + (d = a.h), a.b.d.c !== a.d.c ? (a.f = a.d.c ? 1 : -1) : I(a); + else + for (a = e.a.b; a !== e.a; a = d) + if (((d = a.b), a.c)) { + for (a = a.a; u(a.b.a, a.a); a = a.c.b); + for (; u(a.a, a.b.a); a = a.e); + b = a.c.b; + for (c = void 0; a.e !== b; ) + if (u(a.b.a, b.a)) { + for (; b.e !== a && (ca(b.e) || 0 >= x(b.a, b.b.a, b.e.b.a)); ) + (c = L(b.e, b)), (b = c.b); + b = b.c.b; + } else { + for (; b.e !== a && (da(a.c.b) || 0 <= x(a.b.a, a.a, a.c.b.a)); ) + (c = L(a, a.c.b)), (a = c.b); + a = a.e; + } + for (; b.e.e !== a; ) (c = L(b.e, b)), (b = c.b); + } + if (this.h || this.i || this.k || this.l) + if (this.m) + for (e = this.b, d = e.a.b; d !== e.a; d = d.b) { + if (d.c) { + this.h && this.h(2, this.c); + a = d.a; + do this.k && this.k(a.a.d, this.c), (a = a.e); + while (a !== d.a); + this.i && this.i(this.c); + } + } + else { + e = this.b; + d = !!this.l; + a = !1; + b = -1; + for (c = e.a.d; c !== e.a; c = c.d) + if (c.c) { + a || (this.h && this.h(4, this.c), (a = !0)); + g = c.a; + do + d && + ((f = g.b.d.c ? 0 : 1), + b !== f && ((b = f), this.l && this.l(!!b, this.c))), + this.k && this.k(g.a.d, this.c), + (g = g.e); + while (g !== c.a); + } + a && this.i && this.i(this.c); + } + if (this.r) { + e = this.b; + for (a = e.a.b; a !== e.a; a = d) + if (((d = a.b), !a.c)) { + b = a.a; + c = b.e; + g = void 0; + do + (g = c), + (c = g.e), + (g.d = null), + null === g.b.d && + (g.c === g ? F(g.a, null) : ((g.a.c = g.c), H(g, J(g))), + (f = g.b), + f.c === f ? F(f.a, null) : ((f.a.c = f.c), H(f, J(f))), + fa(g)); + while (g !== b); + b = a.d; + a = a.b; + a.d = b; + b.b = a; + } + this.r(this.b); + this.c = this.b = null; + return; + } + } + this.b = this.c = null; + }; + function Z(a, b) { + if (a.d !== b) + for (; a.d !== b; ) + if (a.d < b) + switch (a.d) { + case Y: + V(a, 100151); + a.u(null); + break; + case 1: + V(a, 100152), a.t(); + } + else + switch (a.d) { + case 2: + V(a, 100154); + a.v(); + break; + case 1: + V(a, 100153), a.w(); + } + } + function V(a, b) { + a.p && a.p(b, a.c); + } + function ga(a, b) { + this.b = a || this; + this.d = b || this; + this.a = null; + this.c = !1; + } + function M() { + this.h = this; + this.i = this.d = this.a = this.e = this.c = this.b = null; + this.f = 0; + } + function J(a) { + return a.b.e; + } + function Ca() { + this.c = new N(); + this.a = new ga(); + this.b = new M(); + this.d = new M(); + this.b.b = this.d; + this.d.b = this.b; + } + function N(a, b) { + this.e = a || this; + this.f = b || this; + this.d = this.c = null; + this.g = [0, 0, 0]; + this.h = this.a = this.b = 0; + } + function Da() { + this.c = []; + this.d = null; + this.a = 0; + this.e = !1; + this.b = new Ha(); + } + function Ea(a) { + a.d = []; + for (var b = 0; b < a.a; b++) a.d[b] = b; + a.d.sort( + (function(a) { + return function(b, e) { + return u(a[b], a[e]) ? 1 : -1; + }; + })(a.c) + ); + a.e = !0; + Ia(a.b); + } + function xa(a, b) { + if (a.e) { + var c = a.b, + d = ++c.a; + 2 * d > c.f && ((c.f *= 2), (c.c = Ja(c.c, c.f + 1))); + var e; + 0 === c.b ? (e = d) : ((e = c.b), (c.b = c.c[c.b])); + c.e[e] = b; + c.c[e] = d; + c.d[d] = e; + c.h && va(c, d); + return e; + } + c = a.a++; + a.c[c] = b; + return -(c + 1); + } + function Fa(a) { + if (0 === a.a) return Ka(a.b); + var b = a.c[a.d[a.a - 1]]; + if (0 !== a.b.a && u(Ga(a.b), b)) return Ka(a.b); + do --a.a; + while (0 < a.a && null === a.c[a.d[a.a - 1]]); + return b; + } + function Ha() { + this.d = Ja([0], 33); + this.e = [null, null]; + this.c = [0, 0]; + this.a = 0; + this.f = 32; + this.b = 0; + this.h = !1; + this.d[1] = 1; + } + function Ja(a, b) { + for (var c = Array(b), d = 0; d < a.length; d++) c[d] = a[d]; + for (; d < b; d++) c[d] = 0; + return c; + } + function Ia(a) { + for (var b = a.a; 1 <= b; --b) W(a, b); + a.h = !0; + } + function Ga(a) { + return a.e[a.d[1]]; + } + function Ka(a) { + var b = a.d, + c = a.e, + d = a.c, + e = b[1], + f = c[e]; + 0 < a.a && + ((b[1] = b[a.a]), + (d[b[1]] = 1), + (c[e] = null), + (d[e] = a.b), + (a.b = e), + 0 < --a.a && W(a, 1)); + return f; + } + function W(a, b) { + for (var c = a.d, d = a.e, e = a.c, f = b, g = c[f]; ; ) { + var h = f << 1; + h < a.a && u(d[c[h + 1]], d[c[h]]) && (h += 1); + var k = c[h]; + if (h > a.a || u(d[g], d[k])) { + c[f] = g; + e[g] = f; + break; + } + c[f] = k; + e[k] = f; + f = h; + } + } + function va(a, b) { + for (var c = a.d, d = a.e, e = a.c, f = b, g = c[f]; ; ) { + var h = f >> 1, + k = c[h]; + if (0 === h || u(d[k], d[g])) { + c[f] = g; + e[g] = f; + break; + } + c[f] = k; + e[k] = f; + f = h; + } + } + function ma() { + this.e = this.a = null; + this.f = 0; + this.c = this.b = this.h = this.d = !1; + } + function S(a) { + return a.e.c.b; + } + function R(a) { + return a.e.a.b; + } + this.libtess = { + GluTesselator: X, + windingRule: { + GLU_TESS_WINDING_ODD: 100130, + GLU_TESS_WINDING_NONZERO: 100131, + GLU_TESS_WINDING_POSITIVE: 100132, + GLU_TESS_WINDING_NEGATIVE: 100133, + GLU_TESS_WINDING_ABS_GEQ_TWO: 100134 + }, + primitiveType: { + GL_LINE_LOOP: 2, + GL_TRIANGLES: 4, + GL_TRIANGLE_STRIP: 5, + GL_TRIANGLE_FAN: 6 + }, + errorType: { + GLU_TESS_MISSING_BEGIN_POLYGON: 100151, + GLU_TESS_MISSING_END_POLYGON: 100153, + GLU_TESS_MISSING_BEGIN_CONTOUR: 100152, + GLU_TESS_MISSING_END_CONTOUR: 100154, + GLU_TESS_COORD_TOO_LARGE: 100155, + GLU_TESS_NEED_COMBINE_CALLBACK: 100156 + }, + gluEnum: { + GLU_TESS_MESH: 100112, + GLU_TESS_TOLERANCE: 100142, + GLU_TESS_WINDING_RULE: 100140, + GLU_TESS_BOUNDARY_ONLY: 100141, + GLU_INVALID_ENUM: 100900, + GLU_INVALID_VALUE: 100901, + GLU_TESS_BEGIN: 100100, + GLU_TESS_VERTEX: 100101, + GLU_TESS_END: 100102, + GLU_TESS_ERROR: 100103, + GLU_TESS_EDGE_FLAG: 100104, + GLU_TESS_COMBINE: 100105, + GLU_TESS_BEGIN_DATA: 100106, + GLU_TESS_VERTEX_DATA: 100107, + GLU_TESS_END_DATA: 100108, + GLU_TESS_ERROR_DATA: 100109, + GLU_TESS_EDGE_FLAG_DATA: 100110, + GLU_TESS_COMBINE_DATA: 100111 + } + }; + X.prototype.gluDeleteTess = X.prototype.x; + X.prototype.gluTessProperty = X.prototype.B; + X.prototype.gluGetTessProperty = X.prototype.y; + X.prototype.gluTessNormal = X.prototype.A; + X.prototype.gluTessCallback = X.prototype.z; + X.prototype.gluTessVertex = X.prototype.C; + X.prototype.gluTessBeginPolygon = X.prototype.u; + X.prototype.gluTessBeginContour = X.prototype.t; + X.prototype.gluTessEndContour = X.prototype.v; + X.prototype.gluTessEndPolygon = X.prototype.w; + if (typeof module !== 'undefined') { + module.exports = this.libtess; + } + }, + {} + ], + 10: [ + function(_dereq_, module, exports) { + (function(Buffer) { + /** + * https://opentype.js.org v0.9.0 | (c) Frederik De Bleser and other contributors | MIT License | Uses tiny-inflate by Devon Govett and string.prototype.codepointat polyfill by Mathias Bynens + */ + + (function(global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' + ? factory(exports) + : typeof define === 'function' && define.amd + ? define(['exports'], factory) + : factory((global.opentype = {})); + })(this, function(exports) { + 'use strict'; + + /*! https://mths.be/codepointat v0.2.0 by @mathias */ + if (!String.prototype.codePointAt) { + (function() { + var defineProperty = (function() { + // IE 8 only supports `Object.defineProperty` on DOM elements + try { + var object = {}; + var $defineProperty = Object.defineProperty; + var result = + $defineProperty(object, object, object) && $defineProperty; + } catch (error) {} + return result; + })(); + var codePointAt = function(position) { + if (this == null) { + throw TypeError(); + } + var string = String(this); + var size = string.length; + // `ToInteger` + var index = position ? Number(position) : 0; + if (index != index) { + // better `isNaN` + index = 0; + } + // Account for out-of-bounds indices: + if (index < 0 || index >= size) { + return undefined; + } + // Get the first code unit + var first = string.charCodeAt(index); + var second; + if ( + // check if itโ€™s the start of a surrogate pair + first >= 0xd800 && + first <= 0xdbff && // high surrogate + size > index + 1 // there is a next code unit + ) { + second = string.charCodeAt(index + 1); + if (second >= 0xdc00 && second <= 0xdfff) { + // low surrogate + // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae + return (first - 0xd800) * 0x400 + second - 0xdc00 + 0x10000; + } + } + return first; + }; + if (defineProperty) { + defineProperty(String.prototype, 'codePointAt', { + value: codePointAt, + configurable: true, + writable: true + }); + } else { + String.prototype.codePointAt = codePointAt; + } + })(); + } + + var TINF_OK = 0; + var TINF_DATA_ERROR = -3; + + function Tree() { + this.table = new Uint16Array(16); /* table of code length counts */ + this.trans = new Uint16Array(288); /* code -> symbol translation table */ + } + + function Data(source, dest) { + this.source = source; + this.sourceIndex = 0; + this.tag = 0; + this.bitcount = 0; + + this.dest = dest; + this.destLen = 0; + + this.ltree = new Tree(); /* dynamic length/symbol tree */ + this.dtree = new Tree(); /* dynamic distance tree */ + } + + /* --------------------------------------------------- * + * -- uninitialized global data (static structures) -- * + * --------------------------------------------------- */ + + var sltree = new Tree(); + var sdtree = new Tree(); + + /* extra bits and base tables for length codes */ + var length_bits = new Uint8Array(30); + var length_base = new Uint16Array(30); + + /* extra bits and base tables for distance codes */ + var dist_bits = new Uint8Array(30); + var dist_base = new Uint16Array(30); + + /* special ordering of code length codes */ + var clcidx = new Uint8Array([ + 16, + 17, + 18, + 0, + 8, + 7, + 9, + 6, + 10, + 5, + 11, + 4, + 12, + 3, + 13, + 2, + 14, + 1, + 15 + ]); + + /* used by tinf_decode_trees, avoids allocations every call */ + var code_tree = new Tree(); + var lengths = new Uint8Array(288 + 32); + + /* ----------------------- * + * -- utility functions -- * + * ----------------------- */ + + /* build extra bits and base tables */ + function tinf_build_bits_base(bits, base, delta, first) { + var i, sum; + + /* build bits table */ + for (i = 0; i < delta; ++i) { + bits[i] = 0; + } + for (i = 0; i < 30 - delta; ++i) { + bits[i + delta] = (i / delta) | 0; + } + + /* build base table */ + for (sum = first, i = 0; i < 30; ++i) { + base[i] = sum; + sum += 1 << bits[i]; + } + } + + /* build the fixed huffman trees */ + function tinf_build_fixed_trees(lt, dt) { + var i; + + /* build fixed length tree */ + for (i = 0; i < 7; ++i) { + lt.table[i] = 0; + } + + lt.table[7] = 24; + lt.table[8] = 152; + lt.table[9] = 112; + + for (i = 0; i < 24; ++i) { + lt.trans[i] = 256 + i; + } + for (i = 0; i < 144; ++i) { + lt.trans[24 + i] = i; + } + for (i = 0; i < 8; ++i) { + lt.trans[24 + 144 + i] = 280 + i; + } + for (i = 0; i < 112; ++i) { + lt.trans[24 + 144 + 8 + i] = 144 + i; + } + + /* build fixed distance tree */ + for (i = 0; i < 5; ++i) { + dt.table[i] = 0; + } + + dt.table[5] = 32; + + for (i = 0; i < 32; ++i) { + dt.trans[i] = i; + } + } + + /* given an array of code lengths, build a tree */ + var offs = new Uint16Array(16); + + function tinf_build_tree(t, lengths, off, num) { + var i, sum; + + /* clear code length count table */ + for (i = 0; i < 16; ++i) { + t.table[i] = 0; + } + + /* scan symbol lengths, and sum code length counts */ + for (i = 0; i < num; ++i) { + t.table[lengths[off + i]]++; + } + + t.table[0] = 0; + + /* compute offset table for distribution sort */ + for (sum = 0, i = 0; i < 16; ++i) { + offs[i] = sum; + sum += t.table[i]; + } + + /* create code->symbol translation table (symbols sorted by code) */ + for (i = 0; i < num; ++i) { + if (lengths[off + i]) { + t.trans[offs[lengths[off + i]]++] = i; + } + } + } + + /* ---------------------- * + * -- decode functions -- * + * ---------------------- */ + + /* get one bit from source stream */ + function tinf_getbit(d) { + /* check if tag is empty */ + if (!d.bitcount--) { + /* load next tag */ + d.tag = d.source[d.sourceIndex++]; + d.bitcount = 7; + } + + /* shift bit out of tag */ + var bit = d.tag & 1; + d.tag >>>= 1; + + return bit; + } + + /* read a num bit value from a stream and add base */ + function tinf_read_bits(d, num, base) { + if (!num) { + return base; + } + + while (d.bitcount < 24) { + d.tag |= d.source[d.sourceIndex++] << d.bitcount; + d.bitcount += 8; + } + + var val = d.tag & (0xffff >>> (16 - num)); + d.tag >>>= num; + d.bitcount -= num; + return val + base; + } + + /* given a data stream and a tree, decode a symbol */ + function tinf_decode_symbol(d, t) { + while (d.bitcount < 24) { + d.tag |= d.source[d.sourceIndex++] << d.bitcount; + d.bitcount += 8; + } + + var sum = 0, + cur = 0, + len = 0; + var tag = d.tag; + + /* get more bits while code value is above sum */ + do { + cur = 2 * cur + (tag & 1); + tag >>>= 1; + ++len; + + sum += t.table[len]; + cur -= t.table[len]; + } while (cur >= 0); + + d.tag = tag; + d.bitcount -= len; + + return t.trans[sum + cur]; + } + + /* given a data stream, decode dynamic trees from it */ + function tinf_decode_trees(d, lt, dt) { + var hlit, hdist, hclen; + var i, num, length; + + /* get 5 bits HLIT (257-286) */ + hlit = tinf_read_bits(d, 5, 257); + + /* get 5 bits HDIST (1-32) */ + hdist = tinf_read_bits(d, 5, 1); + + /* get 4 bits HCLEN (4-19) */ + hclen = tinf_read_bits(d, 4, 4); + + for (i = 0; i < 19; ++i) { + lengths[i] = 0; + } + + /* read code lengths for code length alphabet */ + for (i = 0; i < hclen; ++i) { + /* get 3 bits code length (0-7) */ + var clen = tinf_read_bits(d, 3, 0); + lengths[clcidx[i]] = clen; + } + + /* build code length tree */ + tinf_build_tree(code_tree, lengths, 0, 19); + + /* decode code lengths for the dynamic trees */ + for (num = 0; num < hlit + hdist; ) { + var sym = tinf_decode_symbol(d, code_tree); + + switch (sym) { + case 16: + /* copy previous code length 3-6 times (read 2 bits) */ + var prev = lengths[num - 1]; + for (length = tinf_read_bits(d, 2, 3); length; --length) { + lengths[num++] = prev; + } + break; + case 17: + /* repeat code length 0 for 3-10 times (read 3 bits) */ + for (length = tinf_read_bits(d, 3, 3); length; --length) { + lengths[num++] = 0; + } + break; + case 18: + /* repeat code length 0 for 11-138 times (read 7 bits) */ + for (length = tinf_read_bits(d, 7, 11); length; --length) { + lengths[num++] = 0; + } + break; + default: + /* values 0-15 represent the actual code lengths */ + lengths[num++] = sym; + break; + } + } + + /* build dynamic trees */ + tinf_build_tree(lt, lengths, 0, hlit); + tinf_build_tree(dt, lengths, hlit, hdist); + } + + /* ----------------------------- * + * -- block inflate functions -- * + * ----------------------------- */ + + /* given a stream and two trees, inflate a block of data */ + function tinf_inflate_block_data(d, lt, dt) { + while (1) { + var sym = tinf_decode_symbol(d, lt); + + /* check for end of block */ + if (sym === 256) { + return TINF_OK; + } + + if (sym < 256) { + d.dest[d.destLen++] = sym; + } else { + var length, dist, offs; + var i; + + sym -= 257; + + /* possibly get more bits from length code */ + length = tinf_read_bits(d, length_bits[sym], length_base[sym]); + + dist = tinf_decode_symbol(d, dt); + + /* possibly get more bits from distance code */ + offs = d.destLen - tinf_read_bits(d, dist_bits[dist], dist_base[dist]); + + /* copy match */ + for (i = offs; i < offs + length; ++i) { + d.dest[d.destLen++] = d.dest[i]; + } + } + } + } + + /* inflate an uncompressed block of data */ + function tinf_inflate_uncompressed_block(d) { + var length, invlength; + var i; + + /* unread from bitbuffer */ + while (d.bitcount > 8) { + d.sourceIndex--; + d.bitcount -= 8; + } + + /* get length */ + length = d.source[d.sourceIndex + 1]; + length = 256 * length + d.source[d.sourceIndex]; + + /* get one's complement of length */ + invlength = d.source[d.sourceIndex + 3]; + invlength = 256 * invlength + d.source[d.sourceIndex + 2]; + + /* check length */ + if (length !== (~invlength & 0x0000ffff)) { + return TINF_DATA_ERROR; + } + + d.sourceIndex += 4; + + /* copy block */ + for (i = length; i; --i) { + d.dest[d.destLen++] = d.source[d.sourceIndex++]; + } + + /* make sure we start next block on a byte boundary */ + d.bitcount = 0; + + return TINF_OK; + } + + /* inflate stream from source to dest */ + function tinf_uncompress(source, dest) { + var d = new Data(source, dest); + var bfinal, btype, res; + + do { + /* read final block flag */ + bfinal = tinf_getbit(d); + + /* read block type (2 bits) */ + btype = tinf_read_bits(d, 2, 0); + + /* decompress block */ + switch (btype) { + case 0: + /* decompress uncompressed block */ + res = tinf_inflate_uncompressed_block(d); + break; + case 1: + /* decompress block with fixed huffman trees */ + res = tinf_inflate_block_data(d, sltree, sdtree); + break; + case 2: + /* decompress block with dynamic huffman trees */ + tinf_decode_trees(d, d.ltree, d.dtree); + res = tinf_inflate_block_data(d, d.ltree, d.dtree); + break; + default: + res = TINF_DATA_ERROR; + } + + if (res !== TINF_OK) { + throw new Error('Data error'); + } + } while (!bfinal); + + if (d.destLen < d.dest.length) { + if (typeof d.dest.slice === 'function') { + return d.dest.slice(0, d.destLen); + } else { + return d.dest.subarray(0, d.destLen); + } + } + + return d.dest; + } + + /* -------------------- * + * -- initialization -- * + * -------------------- */ + + /* build fixed huffman trees */ + tinf_build_fixed_trees(sltree, sdtree); + + /* build extra bits and base tables */ + tinf_build_bits_base(length_bits, length_base, 4, 3); + tinf_build_bits_base(dist_bits, dist_base, 2, 1); + + /* fix a special case */ + length_bits[28] = 0; + length_base[28] = 258; + + var tinyInflate = tinf_uncompress; + + // The Bounding Box object + + function derive(v0, v1, v2, v3, t) { + return ( + Math.pow(1 - t, 3) * v0 + + 3 * Math.pow(1 - t, 2) * t * v1 + + 3 * (1 - t) * Math.pow(t, 2) * v2 + + Math.pow(t, 3) * v3 + ); + } + /** + * A bounding box is an enclosing box that describes the smallest measure within which all the points lie. + * It is used to calculate the bounding box of a glyph or text path. + * + * On initialization, x1/y1/x2/y2 will be NaN. Check if the bounding box is empty using `isEmpty()`. + * + * @exports opentype.BoundingBox + * @class + * @constructor + */ + function BoundingBox() { + this.x1 = Number.NaN; + this.y1 = Number.NaN; + this.x2 = Number.NaN; + this.y2 = Number.NaN; + } + + /** + * Returns true if the bounding box is empty, that is, no points have been added to the box yet. + */ + BoundingBox.prototype.isEmpty = function() { + return isNaN(this.x1) || isNaN(this.y1) || isNaN(this.x2) || isNaN(this.y2); + }; + + /** + * Add the point to the bounding box. + * The x1/y1/x2/y2 coordinates of the bounding box will now encompass the given point. + * @param {number} x - The X coordinate of the point. + * @param {number} y - The Y coordinate of the point. + */ + BoundingBox.prototype.addPoint = function(x, y) { + if (typeof x === 'number') { + if (isNaN(this.x1) || isNaN(this.x2)) { + this.x1 = x; + this.x2 = x; + } + if (x < this.x1) { + this.x1 = x; + } + if (x > this.x2) { + this.x2 = x; + } + } + if (typeof y === 'number') { + if (isNaN(this.y1) || isNaN(this.y2)) { + this.y1 = y; + this.y2 = y; + } + if (y < this.y1) { + this.y1 = y; + } + if (y > this.y2) { + this.y2 = y; + } + } + }; + + /** + * Add a X coordinate to the bounding box. + * This extends the bounding box to include the X coordinate. + * This function is used internally inside of addBezier. + * @param {number} x - The X coordinate of the point. + */ + BoundingBox.prototype.addX = function(x) { + this.addPoint(x, null); + }; + + /** + * Add a Y coordinate to the bounding box. + * This extends the bounding box to include the Y coordinate. + * This function is used internally inside of addBezier. + * @param {number} y - The Y coordinate of the point. + */ + BoundingBox.prototype.addY = function(y) { + this.addPoint(null, y); + }; + + /** + * Add a Bรฉzier curve to the bounding box. + * This extends the bounding box to include the entire Bรฉzier. + * @param {number} x0 - The starting X coordinate. + * @param {number} y0 - The starting Y coordinate. + * @param {number} x1 - The X coordinate of the first control point. + * @param {number} y1 - The Y coordinate of the first control point. + * @param {number} x2 - The X coordinate of the second control point. + * @param {number} y2 - The Y coordinate of the second control point. + * @param {number} x - The ending X coordinate. + * @param {number} y - The ending Y coordinate. + */ + BoundingBox.prototype.addBezier = function(x0, y0, x1, y1, x2, y2, x, y) { + var this$1 = this; + + // This code is based on http://nishiohirokazu.blogspot.com/2009/06/how-to-calculate-bezier-curves-bounding.html + // and https://github.com/icons8/svg-path-bounding-box + + var p0 = [x0, y0]; + var p1 = [x1, y1]; + var p2 = [x2, y2]; + var p3 = [x, y]; + + this.addPoint(x0, y0); + this.addPoint(x, y); + + for (var i = 0; i <= 1; i++) { + var b = 6 * p0[i] - 12 * p1[i] + 6 * p2[i]; + var a = -3 * p0[i] + 9 * p1[i] - 9 * p2[i] + 3 * p3[i]; + var c = 3 * p1[i] - 3 * p0[i]; + + if (a === 0) { + if (b === 0) { + continue; + } + var t = -c / b; + if (0 < t && t < 1) { + if (i === 0) { + this$1.addX(derive(p0[i], p1[i], p2[i], p3[i], t)); + } + if (i === 1) { + this$1.addY(derive(p0[i], p1[i], p2[i], p3[i], t)); + } + } + continue; + } + + var b2ac = Math.pow(b, 2) - 4 * c * a; + if (b2ac < 0) { + continue; + } + var t1 = (-b + Math.sqrt(b2ac)) / (2 * a); + if (0 < t1 && t1 < 1) { + if (i === 0) { + this$1.addX(derive(p0[i], p1[i], p2[i], p3[i], t1)); + } + if (i === 1) { + this$1.addY(derive(p0[i], p1[i], p2[i], p3[i], t1)); + } + } + var t2 = (-b - Math.sqrt(b2ac)) / (2 * a); + if (0 < t2 && t2 < 1) { + if (i === 0) { + this$1.addX(derive(p0[i], p1[i], p2[i], p3[i], t2)); + } + if (i === 1) { + this$1.addY(derive(p0[i], p1[i], p2[i], p3[i], t2)); + } + } + } + }; + + /** + * Add a quadratic curve to the bounding box. + * This extends the bounding box to include the entire quadratic curve. + * @param {number} x0 - The starting X coordinate. + * @param {number} y0 - The starting Y coordinate. + * @param {number} x1 - The X coordinate of the control point. + * @param {number} y1 - The Y coordinate of the control point. + * @param {number} x - The ending X coordinate. + * @param {number} y - The ending Y coordinate. + */ + BoundingBox.prototype.addQuad = function(x0, y0, x1, y1, x, y) { + var cp1x = x0 + 2 / 3 * (x1 - x0); + var cp1y = y0 + 2 / 3 * (y1 - y0); + var cp2x = cp1x + 1 / 3 * (x - x0); + var cp2y = cp1y + 1 / 3 * (y - y0); + this.addBezier(x0, y0, cp1x, cp1y, cp2x, cp2y, x, y); + }; + + // Geometric objects + + /** + * A bรฉzier path containing a set of path commands similar to a SVG path. + * Paths can be drawn on a context using `draw`. + * @exports opentype.Path + * @class + * @constructor + */ + function Path() { + this.commands = []; + this.fill = 'black'; + this.stroke = null; + this.strokeWidth = 1; + } + + /** + * @param {number} x + * @param {number} y + */ + Path.prototype.moveTo = function(x, y) { + this.commands.push({ + type: 'M', + x: x, + y: y + }); + }; + + /** + * @param {number} x + * @param {number} y + */ + Path.prototype.lineTo = function(x, y) { + this.commands.push({ + type: 'L', + x: x, + y: y + }); + }; + + /** + * Draws cubic curve + * @function + * curveTo + * @memberof opentype.Path.prototype + * @param {number} x1 - x of control 1 + * @param {number} y1 - y of control 1 + * @param {number} x2 - x of control 2 + * @param {number} y2 - y of control 2 + * @param {number} x - x of path point + * @param {number} y - y of path point + */ + + /** + * Draws cubic curve + * @function + * bezierCurveTo + * @memberof opentype.Path.prototype + * @param {number} x1 - x of control 1 + * @param {number} y1 - y of control 1 + * @param {number} x2 - x of control 2 + * @param {number} y2 - y of control 2 + * @param {number} x - x of path point + * @param {number} y - y of path point + * @see curveTo + */ + Path.prototype.curveTo = Path.prototype.bezierCurveTo = function( + x1, + y1, + x2, + y2, + x, + y + ) { + this.commands.push({ + type: 'C', + x1: x1, + y1: y1, + x2: x2, + y2: y2, + x: x, + y: y + }); + }; + + /** + * Draws quadratic curve + * @function + * quadraticCurveTo + * @memberof opentype.Path.prototype + * @param {number} x1 - x of control + * @param {number} y1 - y of control + * @param {number} x - x of path point + * @param {number} y - y of path point + */ + + /** + * Draws quadratic curve + * @function + * quadTo + * @memberof opentype.Path.prototype + * @param {number} x1 - x of control + * @param {number} y1 - y of control + * @param {number} x - x of path point + * @param {number} y - y of path point + */ + Path.prototype.quadTo = Path.prototype.quadraticCurveTo = function( + x1, + y1, + x, + y + ) { + this.commands.push({ + type: 'Q', + x1: x1, + y1: y1, + x: x, + y: y + }); + }; + + /** + * Closes the path + * @function closePath + * @memberof opentype.Path.prototype + */ + + /** + * Close the path + * @function close + * @memberof opentype.Path.prototype + */ + Path.prototype.close = Path.prototype.closePath = function() { + this.commands.push({ + type: 'Z' + }); + }; + + /** + * Add the given path or list of commands to the commands of this path. + * @param {Array} pathOrCommands - another opentype.Path, an opentype.BoundingBox, or an array of commands. + */ + Path.prototype.extend = function(pathOrCommands) { + if (pathOrCommands.commands) { + pathOrCommands = pathOrCommands.commands; + } else if (pathOrCommands instanceof BoundingBox) { + var box = pathOrCommands; + this.moveTo(box.x1, box.y1); + this.lineTo(box.x2, box.y1); + this.lineTo(box.x2, box.y2); + this.lineTo(box.x1, box.y2); + this.close(); + return; + } + + Array.prototype.push.apply(this.commands, pathOrCommands); + }; + + /** + * Calculate the bounding box of the path. + * @returns {opentype.BoundingBox} + */ + Path.prototype.getBoundingBox = function() { + var this$1 = this; + + var box = new BoundingBox(); + + var startX = 0; + var startY = 0; + var prevX = 0; + var prevY = 0; + for (var i = 0; i < this.commands.length; i++) { + var cmd = this$1.commands[i]; + switch (cmd.type) { + case 'M': + box.addPoint(cmd.x, cmd.y); + startX = prevX = cmd.x; + startY = prevY = cmd.y; + break; + case 'L': + box.addPoint(cmd.x, cmd.y); + prevX = cmd.x; + prevY = cmd.y; + break; + case 'Q': + box.addQuad(prevX, prevY, cmd.x1, cmd.y1, cmd.x, cmd.y); + prevX = cmd.x; + prevY = cmd.y; + break; + case 'C': + box.addBezier( + prevX, + prevY, + cmd.x1, + cmd.y1, + cmd.x2, + cmd.y2, + cmd.x, + cmd.y + ); + prevX = cmd.x; + prevY = cmd.y; + break; + case 'Z': + prevX = startX; + prevY = startY; + break; + default: + throw new Error('Unexpected path command ' + cmd.type); + } + } + if (box.isEmpty()) { + box.addPoint(0, 0); + } + return box; + }; + + /** + * Draw the path to a 2D context. + * @param {CanvasRenderingContext2D} ctx - A 2D drawing context. + */ + Path.prototype.draw = function(ctx) { + var this$1 = this; + + ctx.beginPath(); + for (var i = 0; i < this.commands.length; i += 1) { + var cmd = this$1.commands[i]; + if (cmd.type === 'M') { + ctx.moveTo(cmd.x, cmd.y); + } else if (cmd.type === 'L') { + ctx.lineTo(cmd.x, cmd.y); + } else if (cmd.type === 'C') { + ctx.bezierCurveTo(cmd.x1, cmd.y1, cmd.x2, cmd.y2, cmd.x, cmd.y); + } else if (cmd.type === 'Q') { + ctx.quadraticCurveTo(cmd.x1, cmd.y1, cmd.x, cmd.y); + } else if (cmd.type === 'Z') { + ctx.closePath(); + } + } + + if (this.fill) { + ctx.fillStyle = this.fill; + ctx.fill(); + } + + if (this.stroke) { + ctx.strokeStyle = this.stroke; + ctx.lineWidth = this.strokeWidth; + ctx.stroke(); + } + }; + + /** + * Convert the Path to a string of path data instructions + * See http://www.w3.org/TR/SVG/paths.html#PathData + * @param {number} [decimalPlaces=2] - The amount of decimal places for floating-point values + * @return {string} + */ + Path.prototype.toPathData = function(decimalPlaces) { + var this$1 = this; + + decimalPlaces = decimalPlaces !== undefined ? decimalPlaces : 2; + + function floatToString(v) { + if (Math.round(v) === v) { + return '' + Math.round(v); + } else { + return v.toFixed(decimalPlaces); + } + } + + function packValues() { + var arguments$1 = arguments; + + var s = ''; + for (var i = 0; i < arguments.length; i += 1) { + var v = arguments$1[i]; + if (v >= 0 && i > 0) { + s += ' '; + } + + s += floatToString(v); + } + + return s; + } + + var d = ''; + for (var i = 0; i < this.commands.length; i += 1) { + var cmd = this$1.commands[i]; + if (cmd.type === 'M') { + d += 'M' + packValues(cmd.x, cmd.y); + } else if (cmd.type === 'L') { + d += 'L' + packValues(cmd.x, cmd.y); + } else if (cmd.type === 'C') { + d += 'C' + packValues(cmd.x1, cmd.y1, cmd.x2, cmd.y2, cmd.x, cmd.y); + } else if (cmd.type === 'Q') { + d += 'Q' + packValues(cmd.x1, cmd.y1, cmd.x, cmd.y); + } else if (cmd.type === 'Z') { + d += 'Z'; + } + } + + return d; + }; + + /** + * Convert the path to an SVG element, as a string. + * @param {number} [decimalPlaces=2] - The amount of decimal places for floating-point values + * @return {string} + */ + Path.prototype.toSVG = function(decimalPlaces) { + var svg = '= 0 && v <= 255, + 'Byte value should be between 0 and 255.' + ); + return [v]; + }; + /** + * @constant + * @type {number} + */ + sizeOf.BYTE = constant(1); + + /** + * Convert a 8-bit signed integer to a list of 1 byte. + * @param {string} + * @returns {Array} + */ + encode.CHAR = function(v) { + return [v.charCodeAt(0)]; + }; + + /** + * @constant + * @type {number} + */ + sizeOf.CHAR = constant(1); + + /** + * Convert an ASCII string to a list of bytes. + * @param {string} + * @returns {Array} + */ + encode.CHARARRAY = function(v) { + var b = []; + for (var i = 0; i < v.length; i += 1) { + b[i] = v.charCodeAt(i); + } + + return b; + }; + + /** + * @param {Array} + * @returns {number} + */ + sizeOf.CHARARRAY = function(v) { + return v.length; + }; + + /** + * Convert a 16-bit unsigned integer to a list of 2 bytes. + * @param {number} + * @returns {Array} + */ + encode.USHORT = function(v) { + return [(v >> 8) & 0xff, v & 0xff]; + }; + + /** + * @constant + * @type {number} + */ + sizeOf.USHORT = constant(2); + + /** + * Convert a 16-bit signed integer to a list of 2 bytes. + * @param {number} + * @returns {Array} + */ + encode.SHORT = function(v) { + // Two's complement + if (v >= LIMIT16) { + v = -(2 * LIMIT16 - v); + } + + return [(v >> 8) & 0xff, v & 0xff]; + }; + + /** + * @constant + * @type {number} + */ + sizeOf.SHORT = constant(2); + + /** + * Convert a 24-bit unsigned integer to a list of 3 bytes. + * @param {number} + * @returns {Array} + */ + encode.UINT24 = function(v) { + return [(v >> 16) & 0xff, (v >> 8) & 0xff, v & 0xff]; + }; + + /** + * @constant + * @type {number} + */ + sizeOf.UINT24 = constant(3); + + /** + * Convert a 32-bit unsigned integer to a list of 4 bytes. + * @param {number} + * @returns {Array} + */ + encode.ULONG = function(v) { + return [(v >> 24) & 0xff, (v >> 16) & 0xff, (v >> 8) & 0xff, v & 0xff]; + }; + + /** + * @constant + * @type {number} + */ + sizeOf.ULONG = constant(4); + + /** + * Convert a 32-bit unsigned integer to a list of 4 bytes. + * @param {number} + * @returns {Array} + */ + encode.LONG = function(v) { + // Two's complement + if (v >= LIMIT32) { + v = -(2 * LIMIT32 - v); + } + + return [(v >> 24) & 0xff, (v >> 16) & 0xff, (v >> 8) & 0xff, v & 0xff]; + }; + + /** + * @constant + * @type {number} + */ + sizeOf.LONG = constant(4); + + encode.FIXED = encode.ULONG; + sizeOf.FIXED = sizeOf.ULONG; + + encode.FWORD = encode.SHORT; + sizeOf.FWORD = sizeOf.SHORT; + + encode.UFWORD = encode.USHORT; + sizeOf.UFWORD = sizeOf.USHORT; + + /** + * Convert a 32-bit Apple Mac timestamp integer to a list of 8 bytes, 64-bit timestamp. + * @param {number} + * @returns {Array} + */ + encode.LONGDATETIME = function(v) { + return [ + 0, + 0, + 0, + 0, + (v >> 24) & 0xff, + (v >> 16) & 0xff, + (v >> 8) & 0xff, + v & 0xff + ]; + }; + + /** + * @constant + * @type {number} + */ + sizeOf.LONGDATETIME = constant(8); + + /** + * Convert a 4-char tag to a list of 4 bytes. + * @param {string} + * @returns {Array} + */ + encode.TAG = function(v) { + check.argument(v.length === 4, 'Tag should be exactly 4 ASCII characters.'); + return [v.charCodeAt(0), v.charCodeAt(1), v.charCodeAt(2), v.charCodeAt(3)]; + }; + + /** + * @constant + * @type {number} + */ + sizeOf.TAG = constant(4); + + // CFF data types /////////////////////////////////////////////////////////// + + encode.Card8 = encode.BYTE; + sizeOf.Card8 = sizeOf.BYTE; + + encode.Card16 = encode.USHORT; + sizeOf.Card16 = sizeOf.USHORT; + + encode.OffSize = encode.BYTE; + sizeOf.OffSize = sizeOf.BYTE; + + encode.SID = encode.USHORT; + sizeOf.SID = sizeOf.USHORT; + + // Convert a numeric operand or charstring number to a variable-size list of bytes. + /** + * Convert a numeric operand or charstring number to a variable-size list of bytes. + * @param {number} + * @returns {Array} + */ + encode.NUMBER = function(v) { + if (v >= -107 && v <= 107) { + return [v + 139]; + } else if (v >= 108 && v <= 1131) { + v = v - 108; + return [(v >> 8) + 247, v & 0xff]; + } else if (v >= -1131 && v <= -108) { + v = -v - 108; + return [(v >> 8) + 251, v & 0xff]; + } else if (v >= -32768 && v <= 32767) { + return encode.NUMBER16(v); + } else { + return encode.NUMBER32(v); + } + }; + + /** + * @param {number} + * @returns {number} + */ + sizeOf.NUMBER = function(v) { + return encode.NUMBER(v).length; + }; + + /** + * Convert a signed number between -32768 and +32767 to a three-byte value. + * This ensures we always use three bytes, but is not the most compact format. + * @param {number} + * @returns {Array} + */ + encode.NUMBER16 = function(v) { + return [28, (v >> 8) & 0xff, v & 0xff]; + }; + + /** + * @constant + * @type {number} + */ + sizeOf.NUMBER16 = constant(3); + + /** + * Convert a signed number between -(2^31) and +(2^31-1) to a five-byte value. + * This is useful if you want to be sure you always use four bytes, + * at the expense of wasting a few bytes for smaller numbers. + * @param {number} + * @returns {Array} + */ + encode.NUMBER32 = function(v) { + return [29, (v >> 24) & 0xff, (v >> 16) & 0xff, (v >> 8) & 0xff, v & 0xff]; + }; + + /** + * @constant + * @type {number} + */ + sizeOf.NUMBER32 = constant(5); + + /** + * @param {number} + * @returns {Array} + */ + encode.REAL = function(v) { + var value = v.toString(); + + // Some numbers use an epsilon to encode the value. (e.g. JavaScript will store 0.0000001 as 1e-7) + // This code converts it back to a number without the epsilon. + var m = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(value); + if (m) { + var epsilon = parseFloat('1e' + ((m[2] ? +m[2] : 0) + m[1].length)); + value = (Math.round(v * epsilon) / epsilon).toString(); + } + + var nibbles = ''; + for (var i = 0, ii = value.length; i < ii; i += 1) { + var c = value[i]; + if (c === 'e') { + nibbles += value[++i] === '-' ? 'c' : 'b'; + } else if (c === '.') { + nibbles += 'a'; + } else if (c === '-') { + nibbles += 'e'; + } else { + nibbles += c; + } + } + + nibbles += nibbles.length & 1 ? 'f' : 'ff'; + var out = [30]; + for (var i$1 = 0, ii$1 = nibbles.length; i$1 < ii$1; i$1 += 2) { + out.push(parseInt(nibbles.substr(i$1, 2), 16)); + } + + return out; + }; + + /** + * @param {number} + * @returns {number} + */ + sizeOf.REAL = function(v) { + return encode.REAL(v).length; + }; + + encode.NAME = encode.CHARARRAY; + sizeOf.NAME = sizeOf.CHARARRAY; + + encode.STRING = encode.CHARARRAY; + sizeOf.STRING = sizeOf.CHARARRAY; + + /** + * @param {DataView} data + * @param {number} offset + * @param {number} numBytes + * @returns {string} + */ + decode.UTF8 = function(data, offset, numBytes) { + var codePoints = []; + var numChars = numBytes; + for (var j = 0; j < numChars; j++, offset += 1) { + codePoints[j] = data.getUint8(offset); + } + + return String.fromCharCode.apply(null, codePoints); + }; + + /** + * @param {DataView} data + * @param {number} offset + * @param {number} numBytes + * @returns {string} + */ + decode.UTF16 = function(data, offset, numBytes) { + var codePoints = []; + var numChars = numBytes / 2; + for (var j = 0; j < numChars; j++, offset += 2) { + codePoints[j] = data.getUint16(offset); + } + + return String.fromCharCode.apply(null, codePoints); + }; + + /** + * Convert a JavaScript string to UTF16-BE. + * @param {string} + * @returns {Array} + */ + encode.UTF16 = function(v) { + var b = []; + for (var i = 0; i < v.length; i += 1) { + var codepoint = v.charCodeAt(i); + b[b.length] = (codepoint >> 8) & 0xff; + b[b.length] = codepoint & 0xff; + } + + return b; + }; + + /** + * @param {string} + * @returns {number} + */ + sizeOf.UTF16 = function(v) { + return v.length * 2; + }; + + // Data for converting old eight-bit Macintosh encodings to Unicode. + // This representation is optimized for decoding; encoding is slower + // and needs more memory. The assumption is that all opentype.js users + // want to open fonts, but saving a font will be comparatively rare + // so it can be more expensive. Keyed by IANA character set name. + // + // Python script for generating these strings: + // + // s = u''.join([chr(c).decode('mac_greek') for c in range(128, 256)]) + // print(s.encode('utf-8')) + /** + * @private + */ + var eightBitMacEncodings = { + // Python: 'mac_croatian' + 'x-mac-croatian': + 'ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผโ€ ยฐยขยฃยงโ€ขยถรŸยฎล โ„ขยดยจโ‰ ลฝร˜โˆžยฑโ‰คโ‰ฅโˆ†ยตโˆ‚โˆ‘โˆลกโˆซยชยบฮฉลพรธ' + + 'ยฟยกยฌโˆšฦ’โ‰ˆฤ†ยซฤŒโ€ฆย ร€รƒร•ล’ล“ฤโ€”โ€œโ€โ€˜โ€™รทโ—Š๏ฃฟยฉโ„โ‚ฌโ€นโ€บร†ยปโ€“ยทโ€šโ€žโ€ฐร‚ฤ‡รฤรˆรรŽรรŒร“ร”ฤ‘ร’รšร›ร™ฤฑห†หœยฏฯ€ร‹หšยธรŠรฆห‡', + // Python: 'mac_cyrillic' + 'x-mac-cyrillic': + 'ะะ‘ะ’ะ“ะ”ะ•ะ–ะ—ะ˜ะ™ะšะ›ะœะะžะŸะ ะกะขะฃะคะฅะฆะงะจะฉะชะซะฌะญะฎะฏโ€ ยฐายฃยงโ€ขยถะ†ยฎยฉโ„ขะ‚ั’โ‰ ะƒั“โˆžยฑโ‰คโ‰ฅั–ยตา‘ะˆะ„ั”ะ‡ั—ะ‰ั™ะŠัš' + + 'ั˜ะ…ยฌโˆšฦ’โ‰ˆโˆ†ยซยปโ€ฆย ะ‹ั›ะŒัœั•โ€“โ€”โ€œโ€โ€˜โ€™รทโ€žะŽัžะัŸโ„–ะั‘ัะฐะฑะฒะณะดะตะถะทะธะนะบะปะผะฝะพะฟั€ัั‚ัƒั„ั…ั†ั‡ัˆั‰ัŠั‹ัŒััŽ', + // http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/GAELIC.TXT + 'x-mac-gaelic': + 'ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผโ€ ยฐยขยฃยงโ€ขยถรŸยฎยฉโ„ขยดยจโ‰ ร†ร˜แธ‚ยฑโ‰คโ‰ฅแธƒฤŠฤ‹แธŠแธ‹แธžแธŸฤ ฤกแน€รฆรธ' + + 'แนแน–แน—ษผฦ’ลฟแน ยซยปโ€ฆย ร€รƒร•ล’ล“โ€“โ€”โ€œโ€โ€˜โ€™แนกแบ›รฟลธแนชโ‚ฌโ€นโ€บลถลทแนซยทแปฒแปณโŠร‚รŠรร‹รˆรรŽรรŒร“ร”โ™ฃร’รšร›ร™ฤฑรรฝลดลตแบ„แบ…แบ€แบแบ‚แบƒ', + // Python: 'mac_greek' + 'x-mac-greek': + 'ร„ยนยฒร‰ยณร–รœฮ…ร รขรคฮ„ยจรงรฉรจรชรซยฃโ„ขรฎรฏโ€ขยฝโ€ฐรดรถยฆโ‚ฌรนรปรผโ€ ฮ“ฮ”ฮ˜ฮ›ฮžฮ รŸยฎยฉฮฃฮชยงโ‰ ยฐยทฮ‘ยฑโ‰คโ‰ฅยฅฮ’ฮ•ฮ–ฮ—ฮ™ฮšฮœฮฆฮซฮจฮฉ' + + 'ฮฌฮยฌฮŸฮกโ‰ˆฮคยซยปโ€ฆย ฮฅฮงฮ†ฮˆล“โ€“โ€•โ€œโ€โ€˜โ€™รทฮ‰ฮŠฮŒฮŽฮญฮฎฮฏฯŒฮฯฮฑฮฒฯˆฮดฮตฯ†ฮณฮทฮนฮพฮบฮปฮผฮฝฮฟฯ€ฯŽฯฯƒฯ„ฮธฯ‰ฯ‚ฯ‡ฯ…ฮถฯŠฯ‹ฮฮฐ\u00AD', + // Python: 'mac_iceland' + 'x-mac-icelandic': + 'ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผรยฐยขยฃยงโ€ขยถรŸยฎยฉโ„ขยดยจโ‰ ร†ร˜โˆžยฑโ‰คโ‰ฅยฅยตโˆ‚โˆ‘โˆฯ€โˆซยชยบฮฉรฆรธ' + + 'ยฟยกยฌโˆšฦ’โ‰ˆโˆ†ยซยปโ€ฆย ร€รƒร•ล’ล“โ€“โ€”โ€œโ€โ€˜โ€™รทโ—Šรฟลธโ„โ‚ฌรรฐรžรพรฝยทโ€šโ€žโ€ฐร‚รŠรร‹รˆรรŽรรŒร“ร”๏ฃฟร’รšร›ร™ฤฑห†หœยฏห˜ห™หšยธหห›ห‡', + // http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/INUIT.TXT + 'x-mac-inuit': + 'แƒแ„แ…แ†แŠแ‹แฑแฒแณแดแธแนแ‘‰แ‘Žแ‘แ‘แ‘‘แ‘•แ‘–แ‘ฆแ‘ญแ‘ฎแ‘ฏแ‘ฐแ‘ฒแ‘ณแ’ƒแ’‹แ’Œแ’แ’Žแ’แ’‘ยฐแ’กแ’ฅแ’ฆโ€ขยถแ’งยฎยฉโ„ขแ’จแ’ชแ’ซแ’ปแ“‚แ“ƒแ“„แ“…แ“‡แ“ˆแ“แ“ฏแ“ฐแ“ฑแ“ฒแ“ดแ“ตแ”…แ“•แ“–แ“—' + + 'แ“˜แ“šแ“›แ“ชแ”จแ”ฉแ”ชแ”ซแ”ญโ€ฆย แ”ฎแ”พแ••แ•–แ•—โ€“โ€”โ€œโ€โ€˜โ€™แ•˜แ•™แ•šแ•แ•†แ•‡แ•ˆแ•‰แ•‹แ•Œแ•แ•ฟแ–€แ–แ–‚แ–ƒแ–„แ–…แ–แ–แ–‘แ–’แ–“แ–”แ–•แ™ฑแ™ฒแ™ณแ™ดแ™ตแ™ถแ––แ– แ–กแ–ขแ–ฃแ–คแ–ฅแ–ฆแ•ผลล‚', + // Python: 'mac_latin2' + 'x-mac-ce': + 'ร„ฤ€ฤร‰ฤ„ร–รœรกฤ…ฤŒรคฤฤ†ฤ‡รฉลนลบฤŽรญฤฤ’ฤ“ฤ–รณฤ—รดรถรตรบฤšฤ›รผโ€ ยฐฤ˜ยฃยงโ€ขยถรŸยฎยฉโ„ขฤ™ยจโ‰ ฤฃฤฎฤฏฤชโ‰คโ‰ฅฤซฤถโˆ‚โˆ‘ล‚ฤปฤผฤฝฤพฤนฤบล…' + + 'ล†ลƒยฌโˆšล„ล‡โˆ†ยซยปโ€ฆย ลˆลร•ล‘ลŒโ€“โ€”โ€œโ€โ€˜โ€™รทโ—Šลล”ล•ล˜โ€นโ€บล™ล–ล—ล โ€šโ€žลกลšล›รลคลฅรลฝลพลชร“ร”ลซลฎรšลฏลฐลฑลฒลณรรฝฤทลปลลผฤขห‡', + // Python: 'mac_roman' + macintosh: + 'ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผโ€ ยฐยขยฃยงโ€ขยถรŸยฎยฉโ„ขยดยจโ‰ ร†ร˜โˆžยฑโ‰คโ‰ฅยฅยตโˆ‚โˆ‘โˆฯ€โˆซยชยบฮฉรฆรธ' + + 'ยฟยกยฌโˆšฦ’โ‰ˆโˆ†ยซยปโ€ฆย ร€รƒร•ล’ล“โ€“โ€”โ€œโ€โ€˜โ€™รทโ—Šรฟลธโ„โ‚ฌโ€นโ€บ๏ฌ๏ฌ‚โ€กยทโ€šโ€žโ€ฐร‚รŠรร‹รˆรรŽรรŒร“ร”๏ฃฟร’รšร›ร™ฤฑห†หœยฏห˜ห™หšยธหห›ห‡', + // Python: 'mac_romanian' + 'x-mac-romanian': + 'ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผโ€ ยฐยขยฃยงโ€ขยถรŸยฎยฉโ„ขยดยจโ‰ ฤ‚ศ˜โˆžยฑโ‰คโ‰ฅยฅยตโˆ‚โˆ‘โˆฯ€โˆซยชยบฮฉฤƒศ™' + + 'ยฟยกยฌโˆšฦ’โ‰ˆโˆ†ยซยปโ€ฆย ร€รƒร•ล’ล“โ€“โ€”โ€œโ€โ€˜โ€™รทโ—Šรฟลธโ„โ‚ฌโ€นโ€บศšศ›โ€กยทโ€šโ€žโ€ฐร‚รŠรร‹รˆรรŽรรŒร“ร”๏ฃฟร’รšร›ร™ฤฑห†หœยฏห˜ห™หšยธหห›ห‡', + // Python: 'mac_turkish' + 'x-mac-turkish': + 'ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผโ€ ยฐยขยฃยงโ€ขยถรŸยฎยฉโ„ขยดยจโ‰ ร†ร˜โˆžยฑโ‰คโ‰ฅยฅยตโˆ‚โˆ‘โˆฯ€โˆซยชยบฮฉรฆรธ' + + 'ยฟยกยฌโˆšฦ’โ‰ˆโˆ†ยซยปโ€ฆย ร€รƒร•ล’ล“โ€“โ€”โ€œโ€โ€˜โ€™รทโ—ŠรฟลธฤžฤŸฤฐฤฑลžลŸโ€กยทโ€šโ€žโ€ฐร‚รŠรร‹รˆรรŽรรŒร“ร”๏ฃฟร’รšร›ร™๏ข ห†หœยฏห˜ห™หšยธหห›ห‡' + }; + + /** + * Decodes an old-style Macintosh string. Returns either a Unicode JavaScript + * string, or 'undefined' if the encoding is unsupported. For example, we do + * not support Chinese, Japanese or Korean because these would need large + * mapping tables. + * @param {DataView} dataView + * @param {number} offset + * @param {number} dataLength + * @param {string} encoding + * @returns {string} + */ + decode.MACSTRING = function(dataView, offset, dataLength, encoding) { + var table = eightBitMacEncodings[encoding]; + if (table === undefined) { + return undefined; + } + + var result = ''; + for (var i = 0; i < dataLength; i++) { + var c = dataView.getUint8(offset + i); + // In all eight-bit Mac encodings, the characters 0x00..0x7F are + // mapped to U+0000..U+007F; we only need to look up the others. + if (c <= 0x7f) { + result += String.fromCharCode(c); + } else { + result += table[c & 0x7f]; + } + } + + return result; + }; + + // Helper function for encode.MACSTRING. Returns a dictionary for mapping + // Unicode character codes to their 8-bit MacOS equivalent. This table + // is not exactly a super cheap data structure, but we do not care because + // encoding Macintosh strings is only rarely needed in typical applications. + var macEncodingTableCache = typeof WeakMap === 'function' && new WeakMap(); + var macEncodingCacheKeys; + var getMacEncodingTable = function(encoding) { + // Since we use encoding as a cache key for WeakMap, it has to be + // a String object and not a literal. And at least on NodeJS 2.10.1, + // WeakMap requires that the same String instance is passed for cache hits. + if (!macEncodingCacheKeys) { + macEncodingCacheKeys = {}; + for (var e in eightBitMacEncodings) { + /*jshint -W053 */ // Suppress "Do not use String as a constructor." + macEncodingCacheKeys[e] = new String(e); + } + } + + var cacheKey = macEncodingCacheKeys[encoding]; + if (cacheKey === undefined) { + return undefined; + } + + // We can't do "if (cache.has(key)) {return cache.get(key)}" here: + // since garbage collection may run at any time, it could also kick in + // between the calls to cache.has() and cache.get(). In that case, + // we would return 'undefined' even though we do support the encoding. + if (macEncodingTableCache) { + var cachedTable = macEncodingTableCache.get(cacheKey); + if (cachedTable !== undefined) { + return cachedTable; + } + } + + var decodingTable = eightBitMacEncodings[encoding]; + if (decodingTable === undefined) { + return undefined; + } + + var encodingTable = {}; + for (var i = 0; i < decodingTable.length; i++) { + encodingTable[decodingTable.charCodeAt(i)] = i + 0x80; + } + + if (macEncodingTableCache) { + macEncodingTableCache.set(cacheKey, encodingTable); + } + + return encodingTable; + }; + + /** + * Encodes an old-style Macintosh string. Returns a byte array upon success. + * If the requested encoding is unsupported, or if the input string contains + * a character that cannot be expressed in the encoding, the function returns + * 'undefined'. + * @param {string} str + * @param {string} encoding + * @returns {Array} + */ + encode.MACSTRING = function(str, encoding) { + var table = getMacEncodingTable(encoding); + if (table === undefined) { + return undefined; + } + + var result = []; + for (var i = 0; i < str.length; i++) { + var c = str.charCodeAt(i); + + // In all eight-bit Mac encodings, the characters 0x00..0x7F are + // mapped to U+0000..U+007F; we only need to look up the others. + if (c >= 0x80) { + c = table[c]; + if (c === undefined) { + // str contains a Unicode character that cannot be encoded + // in the requested encoding. + return undefined; + } + } + result[i] = c; + // result.push(c); + } + + return result; + }; + + /** + * @param {string} str + * @param {string} encoding + * @returns {number} + */ + sizeOf.MACSTRING = function(str, encoding) { + var b = encode.MACSTRING(str, encoding); + if (b !== undefined) { + return b.length; + } else { + return 0; + } + }; + + // Helper for encode.VARDELTAS + function isByteEncodable(value) { + return value >= -128 && value <= 127; + } + + // Helper for encode.VARDELTAS + function encodeVarDeltaRunAsZeroes(deltas, pos, result) { + var runLength = 0; + var numDeltas = deltas.length; + while (pos < numDeltas && runLength < 64 && deltas[pos] === 0) { + ++pos; + ++runLength; + } + result.push(0x80 | (runLength - 1)); + return pos; + } + + // Helper for encode.VARDELTAS + function encodeVarDeltaRunAsBytes(deltas, offset, result) { + var runLength = 0; + var numDeltas = deltas.length; + var pos = offset; + while (pos < numDeltas && runLength < 64) { + var value = deltas[pos]; + if (!isByteEncodable(value)) { + break; + } + + // Within a byte-encoded run of deltas, a single zero is best + // stored literally as 0x00 value. However, if we have two or + // more zeroes in a sequence, it is better to start a new run. + // Fore example, the sequence of deltas [15, 15, 0, 15, 15] + // becomes 6 bytes (04 0F 0F 00 0F 0F) when storing the zero + // within the current run, but 7 bytes (01 0F 0F 80 01 0F 0F) + // when starting a new run. + if (value === 0 && pos + 1 < numDeltas && deltas[pos + 1] === 0) { + break; + } + + ++pos; + ++runLength; + } + result.push(runLength - 1); + for (var i = offset; i < pos; ++i) { + result.push((deltas[i] + 256) & 0xff); + } + return pos; + } + + // Helper for encode.VARDELTAS + function encodeVarDeltaRunAsWords(deltas, offset, result) { + var runLength = 0; + var numDeltas = deltas.length; + var pos = offset; + while (pos < numDeltas && runLength < 64) { + var value = deltas[pos]; + + // Within a word-encoded run of deltas, it is easiest to start + // a new run (with a different encoding) whenever we encounter + // a zero value. For example, the sequence [0x6666, 0, 0x7777] + // needs 7 bytes when storing the zero inside the current run + // (42 66 66 00 00 77 77), and equally 7 bytes when starting a + // new run (40 66 66 80 40 77 77). + if (value === 0) { + break; + } + + // Within a word-encoded run of deltas, a single value in the + // range (-128..127) should be encoded within the current run + // because it is more compact. For example, the sequence + // [0x6666, 2, 0x7777] becomes 7 bytes when storing the value + // literally (42 66 66 00 02 77 77), but 8 bytes when starting + // a new run (40 66 66 00 02 40 77 77). + if ( + isByteEncodable(value) && + pos + 1 < numDeltas && + isByteEncodable(deltas[pos + 1]) + ) { + break; + } + + ++pos; + ++runLength; + } + result.push(0x40 | (runLength - 1)); + for (var i = offset; i < pos; ++i) { + var val = deltas[i]; + result.push(((val + 0x10000) >> 8) & 0xff, (val + 0x100) & 0xff); + } + return pos; + } + + /** + * Encode a list of variation adjustment deltas. + * + * Variation adjustment deltas are used in โ€˜gvarโ€™ and โ€˜cvarโ€™ tables. + * They indicate how points (in โ€˜gvarโ€™) or values (in โ€˜cvarโ€™) get adjusted + * when generating instances of variation fonts. + * + * @see https://www.microsoft.com/typography/otspec/gvar.htm + * @see https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6gvar.html + * @param {Array} + * @return {Array} + */ + encode.VARDELTAS = function(deltas) { + var pos = 0; + var result = []; + while (pos < deltas.length) { + var value = deltas[pos]; + if (value === 0) { + pos = encodeVarDeltaRunAsZeroes(deltas, pos, result); + } else if (value >= -128 && value <= 127) { + pos = encodeVarDeltaRunAsBytes(deltas, pos, result); + } else { + pos = encodeVarDeltaRunAsWords(deltas, pos, result); + } + } + return result; + }; + + // Convert a list of values to a CFF INDEX structure. + // The values should be objects containing name / type / value. + /** + * @param {Array} l + * @returns {Array} + */ + encode.INDEX = function(l) { + //var offset, offsets, offsetEncoder, encodedOffsets, encodedOffset, data, + // i, v; + // Because we have to know which data type to use to encode the offsets, + // we have to go through the values twice: once to encode the data and + // calculate the offsets, then again to encode the offsets using the fitting data type. + var offset = 1; // First offset is always 1. + var offsets = [offset]; + var data = []; + for (var i = 0; i < l.length; i += 1) { + var v = encode.OBJECT(l[i]); + Array.prototype.push.apply(data, v); + offset += v.length; + offsets.push(offset); + } + + if (data.length === 0) { + return [0, 0]; + } + + var encodedOffsets = []; + var offSize = (1 + Math.floor(Math.log(offset) / Math.log(2)) / 8) | 0; + var offsetEncoder = [ + undefined, + encode.BYTE, + encode.USHORT, + encode.UINT24, + encode.ULONG + ][offSize]; + for (var i$1 = 0; i$1 < offsets.length; i$1 += 1) { + var encodedOffset = offsetEncoder(offsets[i$1]); + Array.prototype.push.apply(encodedOffsets, encodedOffset); + } + + return Array.prototype.concat( + encode.Card16(l.length), + encode.OffSize(offSize), + encodedOffsets, + data + ); + }; + + /** + * @param {Array} + * @returns {number} + */ + sizeOf.INDEX = function(v) { + return encode.INDEX(v).length; + }; + + /** + * Convert an object to a CFF DICT structure. + * The keys should be numeric. + * The values should be objects containing name / type / value. + * @param {Object} m + * @returns {Array} + */ + encode.DICT = function(m) { + var d = []; + var keys = Object.keys(m); + var length = keys.length; + + for (var i = 0; i < length; i += 1) { + // Object.keys() return string keys, but our keys are always numeric. + var k = parseInt(keys[i], 0); + var v = m[k]; + // Value comes before the key. + d = d.concat(encode.OPERAND(v.value, v.type)); + d = d.concat(encode.OPERATOR(k)); + } + + return d; + }; + + /** + * @param {Object} + * @returns {number} + */ + sizeOf.DICT = function(m) { + return encode.DICT(m).length; + }; + + /** + * @param {number} + * @returns {Array} + */ + encode.OPERATOR = function(v) { + if (v < 1200) { + return [v]; + } else { + return [12, v - 1200]; + } + }; + + /** + * @param {Array} v + * @param {string} + * @returns {Array} + */ + encode.OPERAND = function(v, type) { + var d = []; + if (Array.isArray(type)) { + for (var i = 0; i < type.length; i += 1) { + check.argument( + v.length === type.length, + 'Not enough arguments given for type' + type + ); + d = d.concat(encode.OPERAND(v[i], type[i])); + } + } else { + if (type === 'SID') { + d = d.concat(encode.NUMBER(v)); + } else if (type === 'offset') { + // We make it easy for ourselves and always encode offsets as + // 4 bytes. This makes offset calculation for the top dict easier. + d = d.concat(encode.NUMBER32(v)); + } else if (type === 'number') { + d = d.concat(encode.NUMBER(v)); + } else if (type === 'real') { + d = d.concat(encode.REAL(v)); + } else { + throw new Error('Unknown operand type ' + type); + // FIXME Add support for booleans + } + } + + return d; + }; + + encode.OP = encode.BYTE; + sizeOf.OP = sizeOf.BYTE; + + // memoize charstring encoding using WeakMap if available + var wmm = typeof WeakMap === 'function' && new WeakMap(); + + /** + * Convert a list of CharString operations to bytes. + * @param {Array} + * @returns {Array} + */ + encode.CHARSTRING = function(ops) { + // See encode.MACSTRING for why we don't do "if (wmm && wmm.has(ops))". + if (wmm) { + var cachedValue = wmm.get(ops); + if (cachedValue !== undefined) { + return cachedValue; + } + } + + var d = []; + var length = ops.length; + + for (var i = 0; i < length; i += 1) { + var op = ops[i]; + d = d.concat(encode[op.type](op.value)); + } + + if (wmm) { + wmm.set(ops, d); + } + + return d; + }; + + /** + * @param {Array} + * @returns {number} + */ + sizeOf.CHARSTRING = function(ops) { + return encode.CHARSTRING(ops).length; + }; + + // Utility functions //////////////////////////////////////////////////////// + + /** + * Convert an object containing name / type / value to bytes. + * @param {Object} + * @returns {Array} + */ + encode.OBJECT = function(v) { + var encodingFunction = encode[v.type]; + check.argument( + encodingFunction !== undefined, + 'No encoding function for type ' + v.type + ); + return encodingFunction(v.value); + }; + + /** + * @param {Object} + * @returns {number} + */ + sizeOf.OBJECT = function(v) { + var sizeOfFunction = sizeOf[v.type]; + check.argument( + sizeOfFunction !== undefined, + 'No sizeOf function for type ' + v.type + ); + return sizeOfFunction(v.value); + }; + + /** + * Convert a table object to bytes. + * A table contains a list of fields containing the metadata (name, type and default value). + * The table itself has the field values set as attributes. + * @param {opentype.Table} + * @returns {Array} + */ + encode.TABLE = function(table) { + var d = []; + var length = table.fields.length; + var subtables = []; + var subtableOffsets = []; + + for (var i = 0; i < length; i += 1) { + var field = table.fields[i]; + var encodingFunction = encode[field.type]; + check.argument( + encodingFunction !== undefined, + 'No encoding function for field type ' + + field.type + + ' (' + + field.name + + ')' + ); + var value = table[field.name]; + if (value === undefined) { + value = field.value; + } + + var bytes = encodingFunction(value); + + if (field.type === 'TABLE') { + subtableOffsets.push(d.length); + d = d.concat([0, 0]); + subtables.push(bytes); + } else { + d = d.concat(bytes); + } + } + + for (var i$1 = 0; i$1 < subtables.length; i$1 += 1) { + var o = subtableOffsets[i$1]; + var offset = d.length; + check.argument(offset < 65536, 'Table ' + table.tableName + ' too big.'); + d[o] = offset >> 8; + d[o + 1] = offset & 0xff; + d = d.concat(subtables[i$1]); + } + + return d; + }; + + /** + * @param {opentype.Table} + * @returns {number} + */ + sizeOf.TABLE = function(table) { + var numBytes = 0; + var length = table.fields.length; + + for (var i = 0; i < length; i += 1) { + var field = table.fields[i]; + var sizeOfFunction = sizeOf[field.type]; + check.argument( + sizeOfFunction !== undefined, + 'No sizeOf function for field type ' + + field.type + + ' (' + + field.name + + ')' + ); + var value = table[field.name]; + if (value === undefined) { + value = field.value; + } + + numBytes += sizeOfFunction(value); + + // Subtables take 2 more bytes for offsets. + if (field.type === 'TABLE') { + numBytes += 2; + } + } + + return numBytes; + }; + + encode.RECORD = encode.TABLE; + sizeOf.RECORD = sizeOf.TABLE; + + // Merge in a list of bytes. + encode.LITERAL = function(v) { + return v; + }; + + sizeOf.LITERAL = function(v) { + return v.length; + }; + + // Table metadata + + /** + * @exports opentype.Table + * @class + * @param {string} tableName + * @param {Array} fields + * @param {Object} options + * @constructor + */ + function Table(tableName, fields, options) { + var this$1 = this; + + for (var i = 0; i < fields.length; i += 1) { + var field = fields[i]; + this$1[field.name] = field.value; + } + + this.tableName = tableName; + this.fields = fields; + if (options) { + var optionKeys = Object.keys(options); + for (var i$1 = 0; i$1 < optionKeys.length; i$1 += 1) { + var k = optionKeys[i$1]; + var v = options[k]; + if (this$1[k] !== undefined) { + this$1[k] = v; + } + } + } + } + + /** + * Encodes the table and returns an array of bytes + * @return {Array} + */ + Table.prototype.encode = function() { + return encode.TABLE(this); + }; + + /** + * Get the size of the table. + * @return {number} + */ + Table.prototype.sizeOf = function() { + return sizeOf.TABLE(this); + }; + + /** + * @private + */ + function ushortList(itemName, list, count) { + if (count === undefined) { + count = list.length; + } + var fields = new Array(list.length + 1); + fields[0] = { name: itemName + 'Count', type: 'USHORT', value: count }; + for (var i = 0; i < list.length; i++) { + fields[i + 1] = { name: itemName + i, type: 'USHORT', value: list[i] }; + } + return fields; + } + + /** + * @private + */ + function tableList(itemName, records, itemCallback) { + var count = records.length; + var fields = new Array(count + 1); + fields[0] = { name: itemName + 'Count', type: 'USHORT', value: count }; + for (var i = 0; i < count; i++) { + fields[i + 1] = { + name: itemName + i, + type: 'TABLE', + value: itemCallback(records[i], i) + }; + } + return fields; + } + + /** + * @private + */ + function recordList(itemName, records, itemCallback) { + var count = records.length; + var fields = []; + fields[0] = { name: itemName + 'Count', type: 'USHORT', value: count }; + for (var i = 0; i < count; i++) { + fields = fields.concat(itemCallback(records[i], i)); + } + return fields; + } + + // Common Layout Tables + + /** + * @exports opentype.Coverage + * @class + * @param {opentype.Table} + * @constructor + * @extends opentype.Table + */ + function Coverage(coverageTable) { + if (coverageTable.format === 1) { + Table.call( + this, + 'coverageTable', + [{ name: 'coverageFormat', type: 'USHORT', value: 1 }].concat( + ushortList('glyph', coverageTable.glyphs) + ) + ); + } else { + check.assert(false, "Can't create coverage table format 2 yet."); + } + } + Coverage.prototype = Object.create(Table.prototype); + Coverage.prototype.constructor = Coverage; + + function ScriptList(scriptListTable) { + Table.call( + this, + 'scriptListTable', + recordList('scriptRecord', scriptListTable, function(scriptRecord, i) { + var script = scriptRecord.script; + var defaultLangSys = script.defaultLangSys; + check.assert( + !!defaultLangSys, + 'Unable to write GSUB: script ' + + scriptRecord.tag + + ' has no default language system.' + ); + return [ + { name: 'scriptTag' + i, type: 'TAG', value: scriptRecord.tag }, + { + name: 'script' + i, + type: 'TABLE', + value: new Table( + 'scriptTable', + [ + { + name: 'defaultLangSys', + type: 'TABLE', + value: new Table( + 'defaultLangSys', + [ + { name: 'lookupOrder', type: 'USHORT', value: 0 }, + { + name: 'reqFeatureIndex', + type: 'USHORT', + value: defaultLangSys.reqFeatureIndex + } + ].concat( + ushortList('featureIndex', defaultLangSys.featureIndexes) + ) + ) + } + ].concat( + recordList('langSys', script.langSysRecords, function( + langSysRecord, + i + ) { + var langSys = langSysRecord.langSys; + return [ + { + name: 'langSysTag' + i, + type: 'TAG', + value: langSysRecord.tag + }, + { + name: 'langSys' + i, + type: 'TABLE', + value: new Table( + 'langSys', + [ + { name: 'lookupOrder', type: 'USHORT', value: 0 }, + { + name: 'reqFeatureIndex', + type: 'USHORT', + value: langSys.reqFeatureIndex + } + ].concat( + ushortList('featureIndex', langSys.featureIndexes) + ) + ) + } + ]; + }) + ) + ) + } + ]; + }) + ); + } + ScriptList.prototype = Object.create(Table.prototype); + ScriptList.prototype.constructor = ScriptList; + + /** + * @exports opentype.FeatureList + * @class + * @param {opentype.Table} + * @constructor + * @extends opentype.Table + */ + function FeatureList(featureListTable) { + Table.call( + this, + 'featureListTable', + recordList('featureRecord', featureListTable, function(featureRecord, i) { + var feature = featureRecord.feature; + return [ + { name: 'featureTag' + i, type: 'TAG', value: featureRecord.tag }, + { + name: 'feature' + i, + type: 'TABLE', + value: new Table( + 'featureTable', + [ + { + name: 'featureParams', + type: 'USHORT', + value: feature.featureParams + } + ].concat(ushortList('lookupListIndex', feature.lookupListIndexes)) + ) + } + ]; + }) + ); + } + FeatureList.prototype = Object.create(Table.prototype); + FeatureList.prototype.constructor = FeatureList; + + /** + * @exports opentype.LookupList + * @class + * @param {opentype.Table} + * @param {Object} + * @constructor + * @extends opentype.Table + */ + function LookupList(lookupListTable, subtableMakers) { + Table.call( + this, + 'lookupListTable', + tableList('lookup', lookupListTable, function(lookupTable) { + var subtableCallback = subtableMakers[lookupTable.lookupType]; + check.assert( + !!subtableCallback, + 'Unable to write GSUB lookup type ' + + lookupTable.lookupType + + ' tables.' + ); + return new Table( + 'lookupTable', + [ + { + name: 'lookupType', + type: 'USHORT', + value: lookupTable.lookupType + }, + { + name: 'lookupFlag', + type: 'USHORT', + value: lookupTable.lookupFlag + } + ].concat( + tableList('subtable', lookupTable.subtables, subtableCallback) + ) + ); + }) + ); + } + LookupList.prototype = Object.create(Table.prototype); + LookupList.prototype.constructor = LookupList; + + // Record = same as Table, but inlined (a Table has an offset and its data is further in the stream) + // Don't use offsets inside Records (probable bug), only in Tables. + var table = { + Table: Table, + Record: Table, + Coverage: Coverage, + ScriptList: ScriptList, + FeatureList: FeatureList, + LookupList: LookupList, + ushortList: ushortList, + tableList: tableList, + recordList: recordList + }; + + // Parsing utility functions + + // Retrieve an unsigned byte from the DataView. + function getByte(dataView, offset) { + return dataView.getUint8(offset); + } + + // Retrieve an unsigned 16-bit short from the DataView. + // The value is stored in big endian. + function getUShort(dataView, offset) { + return dataView.getUint16(offset, false); + } + + // Retrieve a signed 16-bit short from the DataView. + // The value is stored in big endian. + function getShort(dataView, offset) { + return dataView.getInt16(offset, false); + } + + // Retrieve an unsigned 32-bit long from the DataView. + // The value is stored in big endian. + function getULong(dataView, offset) { + return dataView.getUint32(offset, false); + } + + // Retrieve a 32-bit signed fixed-point number (16.16) from the DataView. + // The value is stored in big endian. + function getFixed(dataView, offset) { + var decimal = dataView.getInt16(offset, false); + var fraction = dataView.getUint16(offset + 2, false); + return decimal + fraction / 65535; + } + + // Retrieve a 4-character tag from the DataView. + // Tags are used to identify tables. + function getTag(dataView, offset) { + var tag = ''; + for (var i = offset; i < offset + 4; i += 1) { + tag += String.fromCharCode(dataView.getInt8(i)); + } + + return tag; + } + + // Retrieve an offset from the DataView. + // Offsets are 1 to 4 bytes in length, depending on the offSize argument. + function getOffset(dataView, offset, offSize) { + var v = 0; + for (var i = 0; i < offSize; i += 1) { + v <<= 8; + v += dataView.getUint8(offset + i); + } + + return v; + } + + // Retrieve a number of bytes from start offset to the end offset from the DataView. + function getBytes(dataView, startOffset, endOffset) { + var bytes = []; + for (var i = startOffset; i < endOffset; i += 1) { + bytes.push(dataView.getUint8(i)); + } + + return bytes; + } + + // Convert the list of bytes to a string. + function bytesToString(bytes) { + var s = ''; + for (var i = 0; i < bytes.length; i += 1) { + s += String.fromCharCode(bytes[i]); + } + + return s; + } + + var typeOffsets = { + byte: 1, + uShort: 2, + short: 2, + uLong: 4, + fixed: 4, + longDateTime: 8, + tag: 4 + }; + + // A stateful parser that changes the offset whenever a value is retrieved. + // The data is a DataView. + function Parser(data, offset) { + this.data = data; + this.offset = offset; + this.relativeOffset = 0; + } + + Parser.prototype.parseByte = function() { + var v = this.data.getUint8(this.offset + this.relativeOffset); + this.relativeOffset += 1; + return v; + }; + + Parser.prototype.parseChar = function() { + var v = this.data.getInt8(this.offset + this.relativeOffset); + this.relativeOffset += 1; + return v; + }; + + Parser.prototype.parseCard8 = Parser.prototype.parseByte; + + Parser.prototype.parseUShort = function() { + var v = this.data.getUint16(this.offset + this.relativeOffset); + this.relativeOffset += 2; + return v; + }; + + Parser.prototype.parseCard16 = Parser.prototype.parseUShort; + Parser.prototype.parseSID = Parser.prototype.parseUShort; + Parser.prototype.parseOffset16 = Parser.prototype.parseUShort; + + Parser.prototype.parseShort = function() { + var v = this.data.getInt16(this.offset + this.relativeOffset); + this.relativeOffset += 2; + return v; + }; + + Parser.prototype.parseF2Dot14 = function() { + var v = this.data.getInt16(this.offset + this.relativeOffset) / 16384; + this.relativeOffset += 2; + return v; + }; + + Parser.prototype.parseULong = function() { + var v = getULong(this.data, this.offset + this.relativeOffset); + this.relativeOffset += 4; + return v; + }; + + Parser.prototype.parseOffset32 = Parser.prototype.parseULong; + + Parser.prototype.parseFixed = function() { + var v = getFixed(this.data, this.offset + this.relativeOffset); + this.relativeOffset += 4; + return v; + }; + + Parser.prototype.parseString = function(length) { + var dataView = this.data; + var offset = this.offset + this.relativeOffset; + var string = ''; + this.relativeOffset += length; + for (var i = 0; i < length; i++) { + string += String.fromCharCode(dataView.getUint8(offset + i)); + } + + return string; + }; + + Parser.prototype.parseTag = function() { + return this.parseString(4); + }; + + // LONGDATETIME is a 64-bit integer. + // JavaScript and unix timestamps traditionally use 32 bits, so we + // only take the last 32 bits. + // + Since until 2038 those bits will be filled by zeros we can ignore them. + Parser.prototype.parseLongDateTime = function() { + var v = getULong(this.data, this.offset + this.relativeOffset + 4); + // Subtract seconds between 01/01/1904 and 01/01/1970 + // to convert Apple Mac timestamp to Standard Unix timestamp + v -= 2082844800; + this.relativeOffset += 8; + return v; + }; + + Parser.prototype.parseVersion = function(minorBase) { + var major = getUShort(this.data, this.offset + this.relativeOffset); + + // How to interpret the minor version is very vague in the spec. 0x5000 is 5, 0x1000 is 1 + // Default returns the correct number if minor = 0xN000 where N is 0-9 + // Set minorBase to 1 for tables that use minor = N where N is 0-9 + var minor = getUShort(this.data, this.offset + this.relativeOffset + 2); + this.relativeOffset += 4; + if (minorBase === undefined) { + minorBase = 0x1000; + } + return major + minor / minorBase / 10; + }; + + Parser.prototype.skip = function(type, amount) { + if (amount === undefined) { + amount = 1; + } + + this.relativeOffset += typeOffsets[type] * amount; + }; + + ///// Parsing lists and records /////////////////////////////// + + // Parse a list of 32 bit unsigned integers. + Parser.prototype.parseULongList = function(count) { + if (count === undefined) { + count = this.parseULong(); + } + var offsets = new Array(count); + var dataView = this.data; + var offset = this.offset + this.relativeOffset; + for (var i = 0; i < count; i++) { + offsets[i] = dataView.getUint32(offset); + offset += 4; + } + + this.relativeOffset += count * 4; + return offsets; + }; + + // Parse a list of 16 bit unsigned integers. The length of the list can be read on the stream + // or provided as an argument. + Parser.prototype.parseOffset16List = Parser.prototype.parseUShortList = function( + count + ) { + if (count === undefined) { + count = this.parseUShort(); + } + var offsets = new Array(count); + var dataView = this.data; + var offset = this.offset + this.relativeOffset; + for (var i = 0; i < count; i++) { + offsets[i] = dataView.getUint16(offset); + offset += 2; + } + + this.relativeOffset += count * 2; + return offsets; + }; + + // Parses a list of 16 bit signed integers. + Parser.prototype.parseShortList = function(count) { + var list = new Array(count); + var dataView = this.data; + var offset = this.offset + this.relativeOffset; + for (var i = 0; i < count; i++) { + list[i] = dataView.getInt16(offset); + offset += 2; + } + + this.relativeOffset += count * 2; + return list; + }; + + // Parses a list of bytes. + Parser.prototype.parseByteList = function(count) { + var list = new Array(count); + var dataView = this.data; + var offset = this.offset + this.relativeOffset; + for (var i = 0; i < count; i++) { + list[i] = dataView.getUint8(offset++); + } + + this.relativeOffset += count; + return list; + }; + + /** + * Parse a list of items. + * Record count is optional, if omitted it is read from the stream. + * itemCallback is one of the Parser methods. + */ + Parser.prototype.parseList = function(count, itemCallback) { + var this$1 = this; + + if (!itemCallback) { + itemCallback = count; + count = this.parseUShort(); + } + var list = new Array(count); + for (var i = 0; i < count; i++) { + list[i] = itemCallback.call(this$1); + } + return list; + }; + + Parser.prototype.parseList32 = function(count, itemCallback) { + var this$1 = this; + + if (!itemCallback) { + itemCallback = count; + count = this.parseULong(); + } + var list = new Array(count); + for (var i = 0; i < count; i++) { + list[i] = itemCallback.call(this$1); + } + return list; + }; + + /** + * Parse a list of records. + * Record count is optional, if omitted it is read from the stream. + * Example of recordDescription: { sequenceIndex: Parser.uShort, lookupListIndex: Parser.uShort } + */ + Parser.prototype.parseRecordList = function(count, recordDescription) { + var this$1 = this; + + // If the count argument is absent, read it in the stream. + if (!recordDescription) { + recordDescription = count; + count = this.parseUShort(); + } + var records = new Array(count); + var fields = Object.keys(recordDescription); + for (var i = 0; i < count; i++) { + var rec = {}; + for (var j = 0; j < fields.length; j++) { + var fieldName = fields[j]; + var fieldType = recordDescription[fieldName]; + rec[fieldName] = fieldType.call(this$1); + } + records[i] = rec; + } + return records; + }; + + Parser.prototype.parseRecordList32 = function(count, recordDescription) { + var this$1 = this; + + // If the count argument is absent, read it in the stream. + if (!recordDescription) { + recordDescription = count; + count = this.parseULong(); + } + var records = new Array(count); + var fields = Object.keys(recordDescription); + for (var i = 0; i < count; i++) { + var rec = {}; + for (var j = 0; j < fields.length; j++) { + var fieldName = fields[j]; + var fieldType = recordDescription[fieldName]; + rec[fieldName] = fieldType.call(this$1); + } + records[i] = rec; + } + return records; + }; + + // Parse a data structure into an object + // Example of description: { sequenceIndex: Parser.uShort, lookupListIndex: Parser.uShort } + Parser.prototype.parseStruct = function(description) { + var this$1 = this; + + if (typeof description === 'function') { + return description.call(this); + } else { + var fields = Object.keys(description); + var struct = {}; + for (var j = 0; j < fields.length; j++) { + var fieldName = fields[j]; + var fieldType = description[fieldName]; + struct[fieldName] = fieldType.call(this$1); + } + return struct; + } + }; + + /** + * Parse a GPOS valueRecord + * https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#value-record + * valueFormat is optional, if omitted it is read from the stream. + */ + Parser.prototype.parseValueRecord = function(valueFormat) { + if (valueFormat === undefined) { + valueFormat = this.parseUShort(); + } + if (valueFormat === 0) { + // valueFormat2 in kerning pairs is most often 0 + // in this case return undefined instead of an empty object, to save space + return; + } + var valueRecord = {}; + + if (valueFormat & 0x0001) { + valueRecord.xPlacement = this.parseShort(); + } + if (valueFormat & 0x0002) { + valueRecord.yPlacement = this.parseShort(); + } + if (valueFormat & 0x0004) { + valueRecord.xAdvance = this.parseShort(); + } + if (valueFormat & 0x0008) { + valueRecord.yAdvance = this.parseShort(); + } + + // Device table (non-variable font) / VariationIndex table (variable font) not supported + // https://docs.microsoft.com/fr-fr/typography/opentype/spec/chapter2#devVarIdxTbls + if (valueFormat & 0x0010) { + valueRecord.xPlaDevice = undefined; + this.parseShort(); + } + if (valueFormat & 0x0020) { + valueRecord.yPlaDevice = undefined; + this.parseShort(); + } + if (valueFormat & 0x0040) { + valueRecord.xAdvDevice = undefined; + this.parseShort(); + } + if (valueFormat & 0x0080) { + valueRecord.yAdvDevice = undefined; + this.parseShort(); + } + + return valueRecord; + }; + + /** + * Parse a list of GPOS valueRecords + * https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#value-record + * valueFormat and valueCount are read from the stream. + */ + Parser.prototype.parseValueRecordList = function() { + var this$1 = this; + + var valueFormat = this.parseUShort(); + var valueCount = this.parseUShort(); + var values = new Array(valueCount); + for (var i = 0; i < valueCount; i++) { + values[i] = this$1.parseValueRecord(valueFormat); + } + return values; + }; + + Parser.prototype.parsePointer = function(description) { + var structOffset = this.parseOffset16(); + if (structOffset > 0) { + // NULL offset => return undefined + return new Parser(this.data, this.offset + structOffset).parseStruct( + description + ); + } + return undefined; + }; + + Parser.prototype.parsePointer32 = function(description) { + var structOffset = this.parseOffset32(); + if (structOffset > 0) { + // NULL offset => return undefined + return new Parser(this.data, this.offset + structOffset).parseStruct( + description + ); + } + return undefined; + }; + + /** + * Parse a list of offsets to lists of 16-bit integers, + * or a list of offsets to lists of offsets to any kind of items. + * If itemCallback is not provided, a list of list of UShort is assumed. + * If provided, itemCallback is called on each item and must parse the item. + * See examples in tables/gsub.js + */ + Parser.prototype.parseListOfLists = function(itemCallback) { + var this$1 = this; + + var offsets = this.parseOffset16List(); + var count = offsets.length; + var relativeOffset = this.relativeOffset; + var list = new Array(count); + for (var i = 0; i < count; i++) { + var start = offsets[i]; + if (start === 0) { + // NULL offset + // Add i as owned property to list. Convenient with assert. + list[i] = undefined; + continue; + } + this$1.relativeOffset = start; + if (itemCallback) { + var subOffsets = this$1.parseOffset16List(); + var subList = new Array(subOffsets.length); + for (var j = 0; j < subOffsets.length; j++) { + this$1.relativeOffset = start + subOffsets[j]; + subList[j] = itemCallback.call(this$1); + } + list[i] = subList; + } else { + list[i] = this$1.parseUShortList(); + } + } + this.relativeOffset = relativeOffset; + return list; + }; + + ///// Complex tables parsing ////////////////////////////////// + + // Parse a coverage table in a GSUB, GPOS or GDEF table. + // https://www.microsoft.com/typography/OTSPEC/chapter2.htm + // parser.offset must point to the start of the table containing the coverage. + Parser.prototype.parseCoverage = function() { + var this$1 = this; + + var startOffset = this.offset + this.relativeOffset; + var format = this.parseUShort(); + var count = this.parseUShort(); + if (format === 1) { + return { + format: 1, + glyphs: this.parseUShortList(count) + }; + } else if (format === 2) { + var ranges = new Array(count); + for (var i = 0; i < count; i++) { + ranges[i] = { + start: this$1.parseUShort(), + end: this$1.parseUShort(), + index: this$1.parseUShort() + }; + } + return { + format: 2, + ranges: ranges + }; + } + throw new Error( + '0x' + startOffset.toString(16) + ': Coverage format must be 1 or 2.' + ); + }; + + // Parse a Class Definition Table in a GSUB, GPOS or GDEF table. + // https://www.microsoft.com/typography/OTSPEC/chapter2.htm + Parser.prototype.parseClassDef = function() { + var startOffset = this.offset + this.relativeOffset; + var format = this.parseUShort(); + if (format === 1) { + return { + format: 1, + startGlyph: this.parseUShort(), + classes: this.parseUShortList() + }; + } else if (format === 2) { + return { + format: 2, + ranges: this.parseRecordList({ + start: Parser.uShort, + end: Parser.uShort, + classId: Parser.uShort + }) + }; + } + throw new Error( + '0x' + startOffset.toString(16) + ': ClassDef format must be 1 or 2.' + ); + }; + + ///// Static methods /////////////////////////////////// + // These convenience methods can be used as callbacks and should be called with "this" context set to a Parser instance. + + Parser.list = function(count, itemCallback) { + return function() { + return this.parseList(count, itemCallback); + }; + }; + + Parser.list32 = function(count, itemCallback) { + return function() { + return this.parseList32(count, itemCallback); + }; + }; + + Parser.recordList = function(count, recordDescription) { + return function() { + return this.parseRecordList(count, recordDescription); + }; + }; + + Parser.recordList32 = function(count, recordDescription) { + return function() { + return this.parseRecordList32(count, recordDescription); + }; + }; + + Parser.pointer = function(description) { + return function() { + return this.parsePointer(description); + }; + }; + + Parser.pointer32 = function(description) { + return function() { + return this.parsePointer32(description); + }; + }; + + Parser.tag = Parser.prototype.parseTag; + Parser.byte = Parser.prototype.parseByte; + Parser.uShort = Parser.offset16 = Parser.prototype.parseUShort; + Parser.uShortList = Parser.prototype.parseUShortList; + Parser.uLong = Parser.offset32 = Parser.prototype.parseULong; + Parser.uLongList = Parser.prototype.parseULongList; + Parser.struct = Parser.prototype.parseStruct; + Parser.coverage = Parser.prototype.parseCoverage; + Parser.classDef = Parser.prototype.parseClassDef; + + ///// Script, Feature, Lookup lists /////////////////////////////////////////////// + // https://www.microsoft.com/typography/OTSPEC/chapter2.htm + + var langSysTable = { + reserved: Parser.uShort, + reqFeatureIndex: Parser.uShort, + featureIndexes: Parser.uShortList + }; + + Parser.prototype.parseScriptList = function() { + return ( + this.parsePointer( + Parser.recordList({ + tag: Parser.tag, + script: Parser.pointer({ + defaultLangSys: Parser.pointer(langSysTable), + langSysRecords: Parser.recordList({ + tag: Parser.tag, + langSys: Parser.pointer(langSysTable) + }) + }) + }) + ) || [] + ); + }; + + Parser.prototype.parseFeatureList = function() { + return ( + this.parsePointer( + Parser.recordList({ + tag: Parser.tag, + feature: Parser.pointer({ + featureParams: Parser.offset16, + lookupListIndexes: Parser.uShortList + }) + }) + ) || [] + ); + }; + + Parser.prototype.parseLookupList = function(lookupTableParsers) { + return ( + this.parsePointer( + Parser.list( + Parser.pointer(function() { + var lookupType = this.parseUShort(); + check.argument( + 1 <= lookupType && lookupType <= 9, + 'GPOS/GSUB lookup type ' + lookupType + ' unknown.' + ); + var lookupFlag = this.parseUShort(); + var useMarkFilteringSet = lookupFlag & 0x10; + return { + lookupType: lookupType, + lookupFlag: lookupFlag, + subtables: this.parseList( + Parser.pointer(lookupTableParsers[lookupType]) + ), + markFilteringSet: useMarkFilteringSet + ? this.parseUShort() + : undefined + }; + }) + ) + ) || [] + ); + }; + + Parser.prototype.parseFeatureVariationsList = function() { + return ( + this.parsePointer32(function() { + var majorVersion = this.parseUShort(); + var minorVersion = this.parseUShort(); + check.argument( + majorVersion === 1 && minorVersion < 1, + 'GPOS/GSUB feature variations table unknown.' + ); + var featureVariations = this.parseRecordList32({ + conditionSetOffset: Parser.offset32, + featureTableSubstitutionOffset: Parser.offset32 + }); + return featureVariations; + }) || [] + ); + }; + + var parse = { + getByte: getByte, + getCard8: getByte, + getUShort: getUShort, + getCard16: getUShort, + getShort: getShort, + getULong: getULong, + getFixed: getFixed, + getTag: getTag, + getOffset: getOffset, + getBytes: getBytes, + bytesToString: bytesToString, + Parser: Parser + }; + + // The `cmap` table stores the mappings from characters to glyphs. + + function parseCmapTableFormat12(cmap, p) { + //Skip reserved. + p.parseUShort(); + + // Length in bytes of the sub-tables. + cmap.length = p.parseULong(); + cmap.language = p.parseULong(); + + var groupCount; + cmap.groupCount = groupCount = p.parseULong(); + cmap.glyphIndexMap = {}; + + for (var i = 0; i < groupCount; i += 1) { + var startCharCode = p.parseULong(); + var endCharCode = p.parseULong(); + var startGlyphId = p.parseULong(); + + for (var c = startCharCode; c <= endCharCode; c += 1) { + cmap.glyphIndexMap[c] = startGlyphId; + startGlyphId++; + } + } + } + + function parseCmapTableFormat4(cmap, p, data, start, offset) { + // Length in bytes of the sub-tables. + cmap.length = p.parseUShort(); + cmap.language = p.parseUShort(); + + // segCount is stored x 2. + var segCount; + cmap.segCount = segCount = p.parseUShort() >> 1; + + // Skip searchRange, entrySelector, rangeShift. + p.skip('uShort', 3); + + // The "unrolled" mapping from character codes to glyph indices. + cmap.glyphIndexMap = {}; + var endCountParser = new parse.Parser(data, start + offset + 14); + var startCountParser = new parse.Parser( + data, + start + offset + 16 + segCount * 2 + ); + var idDeltaParser = new parse.Parser( + data, + start + offset + 16 + segCount * 4 + ); + var idRangeOffsetParser = new parse.Parser( + data, + start + offset + 16 + segCount * 6 + ); + var glyphIndexOffset = start + offset + 16 + segCount * 8; + for (var i = 0; i < segCount - 1; i += 1) { + var glyphIndex = void 0; + var endCount = endCountParser.parseUShort(); + var startCount = startCountParser.parseUShort(); + var idDelta = idDeltaParser.parseShort(); + var idRangeOffset = idRangeOffsetParser.parseUShort(); + for (var c = startCount; c <= endCount; c += 1) { + if (idRangeOffset !== 0) { + // The idRangeOffset is relative to the current position in the idRangeOffset array. + // Take the current offset in the idRangeOffset array. + glyphIndexOffset = + idRangeOffsetParser.offset + idRangeOffsetParser.relativeOffset - 2; + + // Add the value of the idRangeOffset, which will move us into the glyphIndex array. + glyphIndexOffset += idRangeOffset; + + // Then add the character index of the current segment, multiplied by 2 for USHORTs. + glyphIndexOffset += (c - startCount) * 2; + glyphIndex = parse.getUShort(data, glyphIndexOffset); + if (glyphIndex !== 0) { + glyphIndex = (glyphIndex + idDelta) & 0xffff; + } + } else { + glyphIndex = (c + idDelta) & 0xffff; + } + + cmap.glyphIndexMap[c] = glyphIndex; + } + } + } + + // Parse the `cmap` table. This table stores the mappings from characters to glyphs. + // There are many available formats, but we only support the Windows format 4 and 12. + // This function returns a `CmapEncoding` object or null if no supported format could be found. + function parseCmapTable(data, start) { + var cmap = {}; + cmap.version = parse.getUShort(data, start); + check.argument(cmap.version === 0, 'cmap table version should be 0.'); + + // The cmap table can contain many sub-tables, each with their own format. + // We're only interested in a "platform 0" (Unicode format) and "platform 3" (Windows format) table. + cmap.numTables = parse.getUShort(data, start + 2); + var offset = -1; + for (var i = cmap.numTables - 1; i >= 0; i -= 1) { + var platformId = parse.getUShort(data, start + 4 + i * 8); + var encodingId = parse.getUShort(data, start + 4 + i * 8 + 2); + if ( + (platformId === 3 && + (encodingId === 0 || encodingId === 1 || encodingId === 10)) || + (platformId === 0 && + (encodingId === 0 || + encodingId === 1 || + encodingId === 2 || + encodingId === 3 || + encodingId === 4)) + ) { + offset = parse.getULong(data, start + 4 + i * 8 + 4); + break; + } + } + + if (offset === -1) { + // There is no cmap table in the font that we support. + throw new Error('No valid cmap sub-tables found.'); + } + + var p = new parse.Parser(data, start + offset); + cmap.format = p.parseUShort(); + + if (cmap.format === 12) { + parseCmapTableFormat12(cmap, p); + } else if (cmap.format === 4) { + parseCmapTableFormat4(cmap, p, data, start, offset); + } else { + throw new Error( + 'Only format 4 and 12 cmap tables are supported (found format ' + + cmap.format + + ').' + ); + } + + return cmap; + } + + function addSegment(t, code, glyphIndex) { + t.segments.push({ + end: code, + start: code, + delta: -(code - glyphIndex), + offset: 0, + glyphIndex: glyphIndex + }); + } + + function addTerminatorSegment(t) { + t.segments.push({ + end: 0xffff, + start: 0xffff, + delta: 1, + offset: 0 + }); + } + + // Make cmap table, format 4 by default, 12 if needed only + function makeCmapTable(glyphs) { + // Plan 0 is the base Unicode Plan but emojis, for example are on another plan, and needs cmap 12 format (with 32bit) + var isPlan0Only = true; + var i; + + // Check if we need to add cmap format 12 or if format 4 only is fine + for (i = glyphs.length - 1; i > 0; i -= 1) { + var g = glyphs.get(i); + if (g.unicode > 65535) { + isPlan0Only = false; + break; + } + } + + var cmapTable = [ + { name: 'version', type: 'USHORT', value: 0 }, + { name: 'numTables', type: 'USHORT', value: isPlan0Only ? 1 : 2 }, + + // CMAP 4 header + { name: 'platformID', type: 'USHORT', value: 3 }, + { name: 'encodingID', type: 'USHORT', value: 1 }, + { name: 'offset', type: 'ULONG', value: isPlan0Only ? 12 : 12 + 8 } + ]; + + if (!isPlan0Only) { + cmapTable = cmapTable.concat([ + // CMAP 12 header + { name: 'cmap12PlatformID', type: 'USHORT', value: 3 }, // We encode only for PlatformID = 3 (Windows) because it is supported everywhere + { name: 'cmap12EncodingID', type: 'USHORT', value: 10 }, + { name: 'cmap12Offset', type: 'ULONG', value: 0 } + ]); + } + + cmapTable = cmapTable.concat([ + // CMAP 4 Subtable + { name: 'format', type: 'USHORT', value: 4 }, + { name: 'cmap4Length', type: 'USHORT', value: 0 }, + { name: 'language', type: 'USHORT', value: 0 }, + { name: 'segCountX2', type: 'USHORT', value: 0 }, + { name: 'searchRange', type: 'USHORT', value: 0 }, + { name: 'entrySelector', type: 'USHORT', value: 0 }, + { name: 'rangeShift', type: 'USHORT', value: 0 } + ]); + + var t = new table.Table('cmap', cmapTable); + + t.segments = []; + for (i = 0; i < glyphs.length; i += 1) { + var glyph = glyphs.get(i); + for (var j = 0; j < glyph.unicodes.length; j += 1) { + addSegment(t, glyph.unicodes[j], i); + } + + t.segments = t.segments.sort(function(a, b) { + return a.start - b.start; + }); + } + + addTerminatorSegment(t); + + var segCount = t.segments.length; + var segCountToRemove = 0; + + // CMAP 4 + // Set up parallel segment arrays. + var endCounts = []; + var startCounts = []; + var idDeltas = []; + var idRangeOffsets = []; + var glyphIds = []; + + // CMAP 12 + var cmap12Groups = []; + + // Reminder this loop is not following the specification at 100% + // The specification -> find suites of characters and make a group + // Here we're doing one group for each letter + // Doing as the spec can save 8 times (or more) space + for (i = 0; i < segCount; i += 1) { + var segment = t.segments[i]; + + // CMAP 4 + if (segment.end <= 65535 && segment.start <= 65535) { + endCounts = endCounts.concat({ + name: 'end_' + i, + type: 'USHORT', + value: segment.end + }); + startCounts = startCounts.concat({ + name: 'start_' + i, + type: 'USHORT', + value: segment.start + }); + idDeltas = idDeltas.concat({ + name: 'idDelta_' + i, + type: 'SHORT', + value: segment.delta + }); + idRangeOffsets = idRangeOffsets.concat({ + name: 'idRangeOffset_' + i, + type: 'USHORT', + value: segment.offset + }); + if (segment.glyphId !== undefined) { + glyphIds = glyphIds.concat({ + name: 'glyph_' + i, + type: 'USHORT', + value: segment.glyphId + }); + } + } else { + // Skip Unicode > 65535 (16bit unsigned max) for CMAP 4, will be added in CMAP 12 + segCountToRemove += 1; + } + + // CMAP 12 + // Skip Terminator Segment + if (!isPlan0Only && segment.glyphIndex !== undefined) { + cmap12Groups = cmap12Groups.concat({ + name: 'cmap12Start_' + i, + type: 'ULONG', + value: segment.start + }); + cmap12Groups = cmap12Groups.concat({ + name: 'cmap12End_' + i, + type: 'ULONG', + value: segment.end + }); + cmap12Groups = cmap12Groups.concat({ + name: 'cmap12Glyph_' + i, + type: 'ULONG', + value: segment.glyphIndex + }); + } + } + + // CMAP 4 Subtable + t.segCountX2 = (segCount - segCountToRemove) * 2; + t.searchRange = + Math.pow( + 2, + Math.floor(Math.log(segCount - segCountToRemove) / Math.log(2)) + ) * 2; + t.entrySelector = Math.log(t.searchRange / 2) / Math.log(2); + t.rangeShift = t.segCountX2 - t.searchRange; + + t.fields = t.fields.concat(endCounts); + t.fields.push({ name: 'reservedPad', type: 'USHORT', value: 0 }); + t.fields = t.fields.concat(startCounts); + t.fields = t.fields.concat(idDeltas); + t.fields = t.fields.concat(idRangeOffsets); + t.fields = t.fields.concat(glyphIds); + + t.cmap4Length = + 14 + // Subtable header + endCounts.length * 2 + + 2 + // reservedPad + startCounts.length * 2 + + idDeltas.length * 2 + + idRangeOffsets.length * 2 + + glyphIds.length * 2; + + if (!isPlan0Only) { + // CMAP 12 Subtable + var cmap12Length = + 16 + // Subtable header + cmap12Groups.length * 4; + + t.cmap12Offset = 12 + 2 * 2 + 4 + t.cmap4Length; + t.fields = t.fields.concat([ + { name: 'cmap12Format', type: 'USHORT', value: 12 }, + { name: 'cmap12Reserved', type: 'USHORT', value: 0 }, + { name: 'cmap12Length', type: 'ULONG', value: cmap12Length }, + { name: 'cmap12Language', type: 'ULONG', value: 0 }, + { name: 'cmap12nGroups', type: 'ULONG', value: cmap12Groups.length / 3 } + ]); + + t.fields = t.fields.concat(cmap12Groups); + } + + return t; + } + + var cmap = { parse: parseCmapTable, make: makeCmapTable }; + + // Glyph encoding + + var cffStandardStrings = [ + '.notdef', + 'space', + 'exclam', + 'quotedbl', + 'numbersign', + 'dollar', + 'percent', + 'ampersand', + 'quoteright', + 'parenleft', + 'parenright', + 'asterisk', + 'plus', + 'comma', + 'hyphen', + 'period', + 'slash', + 'zero', + 'one', + 'two', + 'three', + 'four', + 'five', + 'six', + 'seven', + 'eight', + 'nine', + 'colon', + 'semicolon', + 'less', + 'equal', + 'greater', + 'question', + 'at', + 'A', + 'B', + 'C', + 'D', + 'E', + 'F', + 'G', + 'H', + 'I', + 'J', + 'K', + 'L', + 'M', + 'N', + 'O', + 'P', + 'Q', + 'R', + 'S', + 'T', + 'U', + 'V', + 'W', + 'X', + 'Y', + 'Z', + 'bracketleft', + 'backslash', + 'bracketright', + 'asciicircum', + 'underscore', + 'quoteleft', + 'a', + 'b', + 'c', + 'd', + 'e', + 'f', + 'g', + 'h', + 'i', + 'j', + 'k', + 'l', + 'm', + 'n', + 'o', + 'p', + 'q', + 'r', + 's', + 't', + 'u', + 'v', + 'w', + 'x', + 'y', + 'z', + 'braceleft', + 'bar', + 'braceright', + 'asciitilde', + 'exclamdown', + 'cent', + 'sterling', + 'fraction', + 'yen', + 'florin', + 'section', + 'currency', + 'quotesingle', + 'quotedblleft', + 'guillemotleft', + 'guilsinglleft', + 'guilsinglright', + 'fi', + 'fl', + 'endash', + 'dagger', + 'daggerdbl', + 'periodcentered', + 'paragraph', + 'bullet', + 'quotesinglbase', + 'quotedblbase', + 'quotedblright', + 'guillemotright', + 'ellipsis', + 'perthousand', + 'questiondown', + 'grave', + 'acute', + 'circumflex', + 'tilde', + 'macron', + 'breve', + 'dotaccent', + 'dieresis', + 'ring', + 'cedilla', + 'hungarumlaut', + 'ogonek', + 'caron', + 'emdash', + 'AE', + 'ordfeminine', + 'Lslash', + 'Oslash', + 'OE', + 'ordmasculine', + 'ae', + 'dotlessi', + 'lslash', + 'oslash', + 'oe', + 'germandbls', + 'onesuperior', + 'logicalnot', + 'mu', + 'trademark', + 'Eth', + 'onehalf', + 'plusminus', + 'Thorn', + 'onequarter', + 'divide', + 'brokenbar', + 'degree', + 'thorn', + 'threequarters', + 'twosuperior', + 'registered', + 'minus', + 'eth', + 'multiply', + 'threesuperior', + 'copyright', + 'Aacute', + 'Acircumflex', + 'Adieresis', + 'Agrave', + 'Aring', + 'Atilde', + 'Ccedilla', + 'Eacute', + 'Ecircumflex', + 'Edieresis', + 'Egrave', + 'Iacute', + 'Icircumflex', + 'Idieresis', + 'Igrave', + 'Ntilde', + 'Oacute', + 'Ocircumflex', + 'Odieresis', + 'Ograve', + 'Otilde', + 'Scaron', + 'Uacute', + 'Ucircumflex', + 'Udieresis', + 'Ugrave', + 'Yacute', + 'Ydieresis', + 'Zcaron', + 'aacute', + 'acircumflex', + 'adieresis', + 'agrave', + 'aring', + 'atilde', + 'ccedilla', + 'eacute', + 'ecircumflex', + 'edieresis', + 'egrave', + 'iacute', + 'icircumflex', + 'idieresis', + 'igrave', + 'ntilde', + 'oacute', + 'ocircumflex', + 'odieresis', + 'ograve', + 'otilde', + 'scaron', + 'uacute', + 'ucircumflex', + 'udieresis', + 'ugrave', + 'yacute', + 'ydieresis', + 'zcaron', + 'exclamsmall', + 'Hungarumlautsmall', + 'dollaroldstyle', + 'dollarsuperior', + 'ampersandsmall', + 'Acutesmall', + 'parenleftsuperior', + 'parenrightsuperior', + '266 ff', + 'onedotenleader', + 'zerooldstyle', + 'oneoldstyle', + 'twooldstyle', + 'threeoldstyle', + 'fouroldstyle', + 'fiveoldstyle', + 'sixoldstyle', + 'sevenoldstyle', + 'eightoldstyle', + 'nineoldstyle', + 'commasuperior', + 'threequartersemdash', + 'periodsuperior', + 'questionsmall', + 'asuperior', + 'bsuperior', + 'centsuperior', + 'dsuperior', + 'esuperior', + 'isuperior', + 'lsuperior', + 'msuperior', + 'nsuperior', + 'osuperior', + 'rsuperior', + 'ssuperior', + 'tsuperior', + 'ff', + 'ffi', + 'ffl', + 'parenleftinferior', + 'parenrightinferior', + 'Circumflexsmall', + 'hyphensuperior', + 'Gravesmall', + 'Asmall', + 'Bsmall', + 'Csmall', + 'Dsmall', + 'Esmall', + 'Fsmall', + 'Gsmall', + 'Hsmall', + 'Ismall', + 'Jsmall', + 'Ksmall', + 'Lsmall', + 'Msmall', + 'Nsmall', + 'Osmall', + 'Psmall', + 'Qsmall', + 'Rsmall', + 'Ssmall', + 'Tsmall', + 'Usmall', + 'Vsmall', + 'Wsmall', + 'Xsmall', + 'Ysmall', + 'Zsmall', + 'colonmonetary', + 'onefitted', + 'rupiah', + 'Tildesmall', + 'exclamdownsmall', + 'centoldstyle', + 'Lslashsmall', + 'Scaronsmall', + 'Zcaronsmall', + 'Dieresissmall', + 'Brevesmall', + 'Caronsmall', + 'Dotaccentsmall', + 'Macronsmall', + 'figuredash', + 'hypheninferior', + 'Ogoneksmall', + 'Ringsmall', + 'Cedillasmall', + 'questiondownsmall', + 'oneeighth', + 'threeeighths', + 'fiveeighths', + 'seveneighths', + 'onethird', + 'twothirds', + 'zerosuperior', + 'foursuperior', + 'fivesuperior', + 'sixsuperior', + 'sevensuperior', + 'eightsuperior', + 'ninesuperior', + 'zeroinferior', + 'oneinferior', + 'twoinferior', + 'threeinferior', + 'fourinferior', + 'fiveinferior', + 'sixinferior', + 'seveninferior', + 'eightinferior', + 'nineinferior', + 'centinferior', + 'dollarinferior', + 'periodinferior', + 'commainferior', + 'Agravesmall', + 'Aacutesmall', + 'Acircumflexsmall', + 'Atildesmall', + 'Adieresissmall', + 'Aringsmall', + 'AEsmall', + 'Ccedillasmall', + 'Egravesmall', + 'Eacutesmall', + 'Ecircumflexsmall', + 'Edieresissmall', + 'Igravesmall', + 'Iacutesmall', + 'Icircumflexsmall', + 'Idieresissmall', + 'Ethsmall', + 'Ntildesmall', + 'Ogravesmall', + 'Oacutesmall', + 'Ocircumflexsmall', + 'Otildesmall', + 'Odieresissmall', + 'OEsmall', + 'Oslashsmall', + 'Ugravesmall', + 'Uacutesmall', + 'Ucircumflexsmall', + 'Udieresissmall', + 'Yacutesmall', + 'Thornsmall', + 'Ydieresissmall', + '001.000', + '001.001', + '001.002', + '001.003', + 'Black', + 'Bold', + 'Book', + 'Light', + 'Medium', + 'Regular', + 'Roman', + 'Semibold' + ]; + + var cffStandardEncoding = [ + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + 'space', + 'exclam', + 'quotedbl', + 'numbersign', + 'dollar', + 'percent', + 'ampersand', + 'quoteright', + 'parenleft', + 'parenright', + 'asterisk', + 'plus', + 'comma', + 'hyphen', + 'period', + 'slash', + 'zero', + 'one', + 'two', + 'three', + 'four', + 'five', + 'six', + 'seven', + 'eight', + 'nine', + 'colon', + 'semicolon', + 'less', + 'equal', + 'greater', + 'question', + 'at', + 'A', + 'B', + 'C', + 'D', + 'E', + 'F', + 'G', + 'H', + 'I', + 'J', + 'K', + 'L', + 'M', + 'N', + 'O', + 'P', + 'Q', + 'R', + 'S', + 'T', + 'U', + 'V', + 'W', + 'X', + 'Y', + 'Z', + 'bracketleft', + 'backslash', + 'bracketright', + 'asciicircum', + 'underscore', + 'quoteleft', + 'a', + 'b', + 'c', + 'd', + 'e', + 'f', + 'g', + 'h', + 'i', + 'j', + 'k', + 'l', + 'm', + 'n', + 'o', + 'p', + 'q', + 'r', + 's', + 't', + 'u', + 'v', + 'w', + 'x', + 'y', + 'z', + 'braceleft', + 'bar', + 'braceright', + 'asciitilde', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + 'exclamdown', + 'cent', + 'sterling', + 'fraction', + 'yen', + 'florin', + 'section', + 'currency', + 'quotesingle', + 'quotedblleft', + 'guillemotleft', + 'guilsinglleft', + 'guilsinglright', + 'fi', + 'fl', + '', + 'endash', + 'dagger', + 'daggerdbl', + 'periodcentered', + '', + 'paragraph', + 'bullet', + 'quotesinglbase', + 'quotedblbase', + 'quotedblright', + 'guillemotright', + 'ellipsis', + 'perthousand', + '', + 'questiondown', + '', + 'grave', + 'acute', + 'circumflex', + 'tilde', + 'macron', + 'breve', + 'dotaccent', + 'dieresis', + '', + 'ring', + 'cedilla', + '', + 'hungarumlaut', + 'ogonek', + 'caron', + 'emdash', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + 'AE', + '', + 'ordfeminine', + '', + '', + '', + '', + 'Lslash', + 'Oslash', + 'OE', + 'ordmasculine', + '', + '', + '', + '', + '', + 'ae', + '', + '', + '', + 'dotlessi', + '', + '', + 'lslash', + 'oslash', + 'oe', + 'germandbls' + ]; + + var cffExpertEncoding = [ + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + 'space', + 'exclamsmall', + 'Hungarumlautsmall', + '', + 'dollaroldstyle', + 'dollarsuperior', + 'ampersandsmall', + 'Acutesmall', + 'parenleftsuperior', + 'parenrightsuperior', + 'twodotenleader', + 'onedotenleader', + 'comma', + 'hyphen', + 'period', + 'fraction', + 'zerooldstyle', + 'oneoldstyle', + 'twooldstyle', + 'threeoldstyle', + 'fouroldstyle', + 'fiveoldstyle', + 'sixoldstyle', + 'sevenoldstyle', + 'eightoldstyle', + 'nineoldstyle', + 'colon', + 'semicolon', + 'commasuperior', + 'threequartersemdash', + 'periodsuperior', + 'questionsmall', + '', + 'asuperior', + 'bsuperior', + 'centsuperior', + 'dsuperior', + 'esuperior', + '', + '', + 'isuperior', + '', + '', + 'lsuperior', + 'msuperior', + 'nsuperior', + 'osuperior', + '', + '', + 'rsuperior', + 'ssuperior', + 'tsuperior', + '', + 'ff', + 'fi', + 'fl', + 'ffi', + 'ffl', + 'parenleftinferior', + '', + 'parenrightinferior', + 'Circumflexsmall', + 'hyphensuperior', + 'Gravesmall', + 'Asmall', + 'Bsmall', + 'Csmall', + 'Dsmall', + 'Esmall', + 'Fsmall', + 'Gsmall', + 'Hsmall', + 'Ismall', + 'Jsmall', + 'Ksmall', + 'Lsmall', + 'Msmall', + 'Nsmall', + 'Osmall', + 'Psmall', + 'Qsmall', + 'Rsmall', + 'Ssmall', + 'Tsmall', + 'Usmall', + 'Vsmall', + 'Wsmall', + 'Xsmall', + 'Ysmall', + 'Zsmall', + 'colonmonetary', + 'onefitted', + 'rupiah', + 'Tildesmall', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + 'exclamdownsmall', + 'centoldstyle', + 'Lslashsmall', + '', + '', + 'Scaronsmall', + 'Zcaronsmall', + 'Dieresissmall', + 'Brevesmall', + 'Caronsmall', + '', + 'Dotaccentsmall', + '', + '', + 'Macronsmall', + '', + '', + 'figuredash', + 'hypheninferior', + '', + '', + 'Ogoneksmall', + 'Ringsmall', + 'Cedillasmall', + '', + '', + '', + 'onequarter', + 'onehalf', + 'threequarters', + 'questiondownsmall', + 'oneeighth', + 'threeeighths', + 'fiveeighths', + 'seveneighths', + 'onethird', + 'twothirds', + '', + '', + 'zerosuperior', + 'onesuperior', + 'twosuperior', + 'threesuperior', + 'foursuperior', + 'fivesuperior', + 'sixsuperior', + 'sevensuperior', + 'eightsuperior', + 'ninesuperior', + 'zeroinferior', + 'oneinferior', + 'twoinferior', + 'threeinferior', + 'fourinferior', + 'fiveinferior', + 'sixinferior', + 'seveninferior', + 'eightinferior', + 'nineinferior', + 'centinferior', + 'dollarinferior', + 'periodinferior', + 'commainferior', + 'Agravesmall', + 'Aacutesmall', + 'Acircumflexsmall', + 'Atildesmall', + 'Adieresissmall', + 'Aringsmall', + 'AEsmall', + 'Ccedillasmall', + 'Egravesmall', + 'Eacutesmall', + 'Ecircumflexsmall', + 'Edieresissmall', + 'Igravesmall', + 'Iacutesmall', + 'Icircumflexsmall', + 'Idieresissmall', + 'Ethsmall', + 'Ntildesmall', + 'Ogravesmall', + 'Oacutesmall', + 'Ocircumflexsmall', + 'Otildesmall', + 'Odieresissmall', + 'OEsmall', + 'Oslashsmall', + 'Ugravesmall', + 'Uacutesmall', + 'Ucircumflexsmall', + 'Udieresissmall', + 'Yacutesmall', + 'Thornsmall', + 'Ydieresissmall' + ]; + + var standardNames = [ + '.notdef', + '.null', + 'nonmarkingreturn', + 'space', + 'exclam', + 'quotedbl', + 'numbersign', + 'dollar', + 'percent', + 'ampersand', + 'quotesingle', + 'parenleft', + 'parenright', + 'asterisk', + 'plus', + 'comma', + 'hyphen', + 'period', + 'slash', + 'zero', + 'one', + 'two', + 'three', + 'four', + 'five', + 'six', + 'seven', + 'eight', + 'nine', + 'colon', + 'semicolon', + 'less', + 'equal', + 'greater', + 'question', + 'at', + 'A', + 'B', + 'C', + 'D', + 'E', + 'F', + 'G', + 'H', + 'I', + 'J', + 'K', + 'L', + 'M', + 'N', + 'O', + 'P', + 'Q', + 'R', + 'S', + 'T', + 'U', + 'V', + 'W', + 'X', + 'Y', + 'Z', + 'bracketleft', + 'backslash', + 'bracketright', + 'asciicircum', + 'underscore', + 'grave', + 'a', + 'b', + 'c', + 'd', + 'e', + 'f', + 'g', + 'h', + 'i', + 'j', + 'k', + 'l', + 'm', + 'n', + 'o', + 'p', + 'q', + 'r', + 's', + 't', + 'u', + 'v', + 'w', + 'x', + 'y', + 'z', + 'braceleft', + 'bar', + 'braceright', + 'asciitilde', + 'Adieresis', + 'Aring', + 'Ccedilla', + 'Eacute', + 'Ntilde', + 'Odieresis', + 'Udieresis', + 'aacute', + 'agrave', + 'acircumflex', + 'adieresis', + 'atilde', + 'aring', + 'ccedilla', + 'eacute', + 'egrave', + 'ecircumflex', + 'edieresis', + 'iacute', + 'igrave', + 'icircumflex', + 'idieresis', + 'ntilde', + 'oacute', + 'ograve', + 'ocircumflex', + 'odieresis', + 'otilde', + 'uacute', + 'ugrave', + 'ucircumflex', + 'udieresis', + 'dagger', + 'degree', + 'cent', + 'sterling', + 'section', + 'bullet', + 'paragraph', + 'germandbls', + 'registered', + 'copyright', + 'trademark', + 'acute', + 'dieresis', + 'notequal', + 'AE', + 'Oslash', + 'infinity', + 'plusminus', + 'lessequal', + 'greaterequal', + 'yen', + 'mu', + 'partialdiff', + 'summation', + 'product', + 'pi', + 'integral', + 'ordfeminine', + 'ordmasculine', + 'Omega', + 'ae', + 'oslash', + 'questiondown', + 'exclamdown', + 'logicalnot', + 'radical', + 'florin', + 'approxequal', + 'Delta', + 'guillemotleft', + 'guillemotright', + 'ellipsis', + 'nonbreakingspace', + 'Agrave', + 'Atilde', + 'Otilde', + 'OE', + 'oe', + 'endash', + 'emdash', + 'quotedblleft', + 'quotedblright', + 'quoteleft', + 'quoteright', + 'divide', + 'lozenge', + 'ydieresis', + 'Ydieresis', + 'fraction', + 'currency', + 'guilsinglleft', + 'guilsinglright', + 'fi', + 'fl', + 'daggerdbl', + 'periodcentered', + 'quotesinglbase', + 'quotedblbase', + 'perthousand', + 'Acircumflex', + 'Ecircumflex', + 'Aacute', + 'Edieresis', + 'Egrave', + 'Iacute', + 'Icircumflex', + 'Idieresis', + 'Igrave', + 'Oacute', + 'Ocircumflex', + 'apple', + 'Ograve', + 'Uacute', + 'Ucircumflex', + 'Ugrave', + 'dotlessi', + 'circumflex', + 'tilde', + 'macron', + 'breve', + 'dotaccent', + 'ring', + 'cedilla', + 'hungarumlaut', + 'ogonek', + 'caron', + 'Lslash', + 'lslash', + 'Scaron', + 'scaron', + 'Zcaron', + 'zcaron', + 'brokenbar', + 'Eth', + 'eth', + 'Yacute', + 'yacute', + 'Thorn', + 'thorn', + 'minus', + 'multiply', + 'onesuperior', + 'twosuperior', + 'threesuperior', + 'onehalf', + 'onequarter', + 'threequarters', + 'franc', + 'Gbreve', + 'gbreve', + 'Idotaccent', + 'Scedilla', + 'scedilla', + 'Cacute', + 'cacute', + 'Ccaron', + 'ccaron', + 'dcroat' + ]; + + /** + * This is the encoding used for fonts created from scratch. + * It loops through all glyphs and finds the appropriate unicode value. + * Since it's linear time, other encodings will be faster. + * @exports opentype.DefaultEncoding + * @class + * @constructor + * @param {opentype.Font} + */ + function DefaultEncoding(font) { + this.font = font; + } + + DefaultEncoding.prototype.charToGlyphIndex = function(c) { + var code = c.codePointAt(0); + var glyphs = this.font.glyphs; + if (glyphs) { + for (var i = 0; i < glyphs.length; i += 1) { + var glyph = glyphs.get(i); + for (var j = 0; j < glyph.unicodes.length; j += 1) { + if (glyph.unicodes[j] === code) { + return i; + } + } + } + } + return null; + }; + + /** + * @exports opentype.CmapEncoding + * @class + * @constructor + * @param {Object} cmap - a object with the cmap encoded data + */ + function CmapEncoding(cmap) { + this.cmap = cmap; + } + + /** + * @param {string} c - the character + * @return {number} The glyph index. + */ + CmapEncoding.prototype.charToGlyphIndex = function(c) { + return this.cmap.glyphIndexMap[c.codePointAt(0)] || 0; + }; + + /** + * @exports opentype.CffEncoding + * @class + * @constructor + * @param {string} encoding - The encoding + * @param {Array} charset - The character set. + */ + function CffEncoding(encoding, charset) { + this.encoding = encoding; + this.charset = charset; + } + + /** + * @param {string} s - The character + * @return {number} The index. + */ + CffEncoding.prototype.charToGlyphIndex = function(s) { + var code = s.codePointAt(0); + var charName = this.encoding[code]; + return this.charset.indexOf(charName); + }; + + /** + * @exports opentype.GlyphNames + * @class + * @constructor + * @param {Object} post + */ + function GlyphNames(post) { + var this$1 = this; + + switch (post.version) { + case 1: + this.names = standardNames.slice(); + break; + case 2: + this.names = new Array(post.numberOfGlyphs); + for (var i = 0; i < post.numberOfGlyphs; i++) { + if (post.glyphNameIndex[i] < standardNames.length) { + this$1.names[i] = standardNames[post.glyphNameIndex[i]]; + } else { + this$1.names[i] = + post.names[post.glyphNameIndex[i] - standardNames.length]; + } + } + + break; + case 2.5: + this.names = new Array(post.numberOfGlyphs); + for (var i$1 = 0; i$1 < post.numberOfGlyphs; i$1++) { + this$1.names[i$1] = standardNames[i$1 + post.glyphNameIndex[i$1]]; + } + + break; + case 3: + this.names = []; + break; + default: + this.names = []; + break; + } + } + + /** + * Gets the index of a glyph by name. + * @param {string} name - The glyph name + * @return {number} The index + */ + GlyphNames.prototype.nameToGlyphIndex = function(name) { + return this.names.indexOf(name); + }; + + /** + * @param {number} gid + * @return {string} + */ + GlyphNames.prototype.glyphIndexToName = function(gid) { + return this.names[gid]; + }; + + /** + * @alias opentype.addGlyphNames + * @param {opentype.Font} + */ + function addGlyphNames(font) { + var glyph; + var glyphIndexMap = font.tables.cmap.glyphIndexMap; + var charCodes = Object.keys(glyphIndexMap); + + for (var i = 0; i < charCodes.length; i += 1) { + var c = charCodes[i]; + var glyphIndex = glyphIndexMap[c]; + glyph = font.glyphs.get(glyphIndex); + glyph.addUnicode(parseInt(c)); + } + + for (var i$1 = 0; i$1 < font.glyphs.length; i$1 += 1) { + glyph = font.glyphs.get(i$1); + if (font.cffEncoding) { + if (font.isCIDFont) { + glyph.name = 'gid' + i$1; + } else { + glyph.name = font.cffEncoding.charset[i$1]; + } + } else if (font.glyphNames.names) { + glyph.name = font.glyphNames.glyphIndexToName(i$1); + } + } + } + + // Drawing utility functions. + + // Draw a line on the given context from point `x1,y1` to point `x2,y2`. + function line(ctx, x1, y1, x2, y2) { + ctx.beginPath(); + ctx.moveTo(x1, y1); + ctx.lineTo(x2, y2); + ctx.stroke(); + } + + var draw = { line: line }; + + // The Glyph object + // import glyf from './tables/glyf' Can't be imported here, because it's a circular dependency + + function getPathDefinition(glyph, path) { + var _path = path || new Path(); + return { + configurable: true, + + get: function() { + if (typeof _path === 'function') { + _path = _path(); + } + + return _path; + }, + + set: function(p) { + _path = p; + } + }; + } + /** + * @typedef GlyphOptions + * @type Object + * @property {string} [name] - The glyph name + * @property {number} [unicode] + * @property {Array} [unicodes] + * @property {number} [xMin] + * @property {number} [yMin] + * @property {number} [xMax] + * @property {number} [yMax] + * @property {number} [advanceWidth] + */ + + // A Glyph is an individual mark that often corresponds to a character. + // Some glyphs, such as ligatures, are a combination of many characters. + // Glyphs are the basic building blocks of a font. + // + // The `Glyph` class contains utility methods for drawing the path and its points. + /** + * @exports opentype.Glyph + * @class + * @param {GlyphOptions} + * @constructor + */ + function Glyph(options) { + // By putting all the code on a prototype function (which is only declared once) + // we reduce the memory requirements for larger fonts by some 2% + this.bindConstructorValues(options); + } + + /** + * @param {GlyphOptions} + */ + Glyph.prototype.bindConstructorValues = function(options) { + this.index = options.index || 0; + + // These three values cannot be deferred for memory optimization: + this.name = options.name || null; + this.unicode = options.unicode || undefined; + this.unicodes = + options.unicodes || options.unicode !== undefined + ? [options.unicode] + : []; + + // But by binding these values only when necessary, we reduce can + // the memory requirements by almost 3% for larger fonts. + if (options.xMin) { + this.xMin = options.xMin; + } + + if (options.yMin) { + this.yMin = options.yMin; + } + + if (options.xMax) { + this.xMax = options.xMax; + } + + if (options.yMax) { + this.yMax = options.yMax; + } + + if (options.advanceWidth) { + this.advanceWidth = options.advanceWidth; + } + + // The path for a glyph is the most memory intensive, and is bound as a value + // with a getter/setter to ensure we actually do path parsing only once the + // path is actually needed by anything. + Object.defineProperty(this, 'path', getPathDefinition(this, options.path)); + }; + + /** + * @param {number} + */ + Glyph.prototype.addUnicode = function(unicode) { + if (this.unicodes.length === 0) { + this.unicode = unicode; + } + + this.unicodes.push(unicode); + }; + + /** + * Calculate the minimum bounding box for this glyph. + * @return {opentype.BoundingBox} + */ + Glyph.prototype.getBoundingBox = function() { + return this.path.getBoundingBox(); + }; + + /** + * Convert the glyph to a Path we can draw on a drawing context. + * @param {number} [x=0] - Horizontal position of the beginning of the text. + * @param {number} [y=0] - Vertical position of the *baseline* of the text. + * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. + * @param {Object=} options - xScale, yScale to stretch the glyph. + * @param {opentype.Font} if hinting is to be used, the font + * @return {opentype.Path} + */ + Glyph.prototype.getPath = function(x, y, fontSize, options, font) { + x = x !== undefined ? x : 0; + y = y !== undefined ? y : 0; + fontSize = fontSize !== undefined ? fontSize : 72; + var commands; + var hPoints; + if (!options) { + options = {}; + } + var xScale = options.xScale; + var yScale = options.yScale; + + if (options.hinting && font && font.hinting) { + // in case of hinting, the hinting engine takes care + // of scaling the points (not the path) before hinting. + hPoints = this.path && font.hinting.exec(this, fontSize); + // in case the hinting engine failed hPoints is undefined + // and thus reverts to plain rending + } + + if (hPoints) { + // Call font.hinting.getCommands instead of `glyf.getPath(hPoints).commands` to avoid a circular dependency + commands = font.hinting.getCommands(hPoints); + x = Math.round(x); + y = Math.round(y); + // TODO in case of hinting xyScaling is not yet supported + xScale = yScale = 1; + } else { + commands = this.path.commands; + var scale = 1 / this.path.unitsPerEm * fontSize; + if (xScale === undefined) { + xScale = scale; + } + if (yScale === undefined) { + yScale = scale; + } + } + + var p = new Path(); + for (var i = 0; i < commands.length; i += 1) { + var cmd = commands[i]; + if (cmd.type === 'M') { + p.moveTo(x + cmd.x * xScale, y + -cmd.y * yScale); + } else if (cmd.type === 'L') { + p.lineTo(x + cmd.x * xScale, y + -cmd.y * yScale); + } else if (cmd.type === 'Q') { + p.quadraticCurveTo( + x + cmd.x1 * xScale, + y + -cmd.y1 * yScale, + x + cmd.x * xScale, + y + -cmd.y * yScale + ); + } else if (cmd.type === 'C') { + p.curveTo( + x + cmd.x1 * xScale, + y + -cmd.y1 * yScale, + x + cmd.x2 * xScale, + y + -cmd.y2 * yScale, + x + cmd.x * xScale, + y + -cmd.y * yScale + ); + } else if (cmd.type === 'Z') { + p.closePath(); + } + } + + return p; + }; + + /** + * Split the glyph into contours. + * This function is here for backwards compatibility, and to + * provide raw access to the TrueType glyph outlines. + * @return {Array} + */ + Glyph.prototype.getContours = function() { + var this$1 = this; + + if (this.points === undefined) { + return []; + } + + var contours = []; + var currentContour = []; + for (var i = 0; i < this.points.length; i += 1) { + var pt = this$1.points[i]; + currentContour.push(pt); + if (pt.lastPointOfContour) { + contours.push(currentContour); + currentContour = []; + } + } + + check.argument( + currentContour.length === 0, + 'There are still points left in the current contour.' + ); + return contours; + }; + + /** + * Calculate the xMin/yMin/xMax/yMax/lsb/rsb for a Glyph. + * @return {Object} + */ + Glyph.prototype.getMetrics = function() { + var commands = this.path.commands; + var xCoords = []; + var yCoords = []; + for (var i = 0; i < commands.length; i += 1) { + var cmd = commands[i]; + if (cmd.type !== 'Z') { + xCoords.push(cmd.x); + yCoords.push(cmd.y); + } + + if (cmd.type === 'Q' || cmd.type === 'C') { + xCoords.push(cmd.x1); + yCoords.push(cmd.y1); + } + + if (cmd.type === 'C') { + xCoords.push(cmd.x2); + yCoords.push(cmd.y2); + } + } + + var metrics = { + xMin: Math.min.apply(null, xCoords), + yMin: Math.min.apply(null, yCoords), + xMax: Math.max.apply(null, xCoords), + yMax: Math.max.apply(null, yCoords), + leftSideBearing: this.leftSideBearing + }; + + if (!isFinite(metrics.xMin)) { + metrics.xMin = 0; + } + + if (!isFinite(metrics.xMax)) { + metrics.xMax = this.advanceWidth; + } + + if (!isFinite(metrics.yMin)) { + metrics.yMin = 0; + } + + if (!isFinite(metrics.yMax)) { + metrics.yMax = 0; + } + + metrics.rightSideBearing = + this.advanceWidth - + metrics.leftSideBearing - + (metrics.xMax - metrics.xMin); + return metrics; + }; + + /** + * Draw the glyph on the given context. + * @param {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas. + * @param {number} [x=0] - Horizontal position of the beginning of the text. + * @param {number} [y=0] - Vertical position of the *baseline* of the text. + * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. + * @param {Object=} options - xScale, yScale to stretch the glyph. + */ + Glyph.prototype.draw = function(ctx, x, y, fontSize, options) { + this.getPath(x, y, fontSize, options).draw(ctx); + }; + + /** + * Draw the points of the glyph. + * On-curve points will be drawn in blue, off-curve points will be drawn in red. + * @param {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas. + * @param {number} [x=0] - Horizontal position of the beginning of the text. + * @param {number} [y=0] - Vertical position of the *baseline* of the text. + * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. + */ + Glyph.prototype.drawPoints = function(ctx, x, y, fontSize) { + function drawCircles(l, x, y, scale) { + var PI_SQ = Math.PI * 2; + ctx.beginPath(); + for (var j = 0; j < l.length; j += 1) { + ctx.moveTo(x + l[j].x * scale, y + l[j].y * scale); + ctx.arc(x + l[j].x * scale, y + l[j].y * scale, 2, 0, PI_SQ, false); + } + + ctx.closePath(); + ctx.fill(); + } + + x = x !== undefined ? x : 0; + y = y !== undefined ? y : 0; + fontSize = fontSize !== undefined ? fontSize : 24; + var scale = 1 / this.path.unitsPerEm * fontSize; + + var blueCircles = []; + var redCircles = []; + var path = this.path; + for (var i = 0; i < path.commands.length; i += 1) { + var cmd = path.commands[i]; + if (cmd.x !== undefined) { + blueCircles.push({ x: cmd.x, y: -cmd.y }); + } + + if (cmd.x1 !== undefined) { + redCircles.push({ x: cmd.x1, y: -cmd.y1 }); + } + + if (cmd.x2 !== undefined) { + redCircles.push({ x: cmd.x2, y: -cmd.y2 }); + } + } + + ctx.fillStyle = 'blue'; + drawCircles(blueCircles, x, y, scale); + ctx.fillStyle = 'red'; + drawCircles(redCircles, x, y, scale); + }; + + /** + * Draw lines indicating important font measurements. + * Black lines indicate the origin of the coordinate system (point 0,0). + * Blue lines indicate the glyph bounding box. + * Green line indicates the advance width of the glyph. + * @param {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas. + * @param {number} [x=0] - Horizontal position of the beginning of the text. + * @param {number} [y=0] - Vertical position of the *baseline* of the text. + * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. + */ + Glyph.prototype.drawMetrics = function(ctx, x, y, fontSize) { + var scale; + x = x !== undefined ? x : 0; + y = y !== undefined ? y : 0; + fontSize = fontSize !== undefined ? fontSize : 24; + scale = 1 / this.path.unitsPerEm * fontSize; + ctx.lineWidth = 1; + + // Draw the origin + ctx.strokeStyle = 'black'; + draw.line(ctx, x, -10000, x, 10000); + draw.line(ctx, -10000, y, 10000, y); + + // This code is here due to memory optimization: by not using + // defaults in the constructor, we save a notable amount of memory. + var xMin = this.xMin || 0; + var yMin = this.yMin || 0; + var xMax = this.xMax || 0; + var yMax = this.yMax || 0; + var advanceWidth = this.advanceWidth || 0; + + // Draw the glyph box + ctx.strokeStyle = 'blue'; + draw.line(ctx, x + xMin * scale, -10000, x + xMin * scale, 10000); + draw.line(ctx, x + xMax * scale, -10000, x + xMax * scale, 10000); + draw.line(ctx, -10000, y + -yMin * scale, 10000, y + -yMin * scale); + draw.line(ctx, -10000, y + -yMax * scale, 10000, y + -yMax * scale); + + // Draw the advance width + ctx.strokeStyle = 'green'; + draw.line( + ctx, + x + advanceWidth * scale, + -10000, + x + advanceWidth * scale, + 10000 + ); + }; + + // The GlyphSet object + + // Define a property on the glyph that depends on the path being loaded. + function defineDependentProperty(glyph, externalName, internalName) { + Object.defineProperty(glyph, externalName, { + get: function() { + // Request the path property to make sure the path is loaded. + glyph.path; // jshint ignore:line + return glyph[internalName]; + }, + set: function(newValue) { + glyph[internalName] = newValue; + }, + enumerable: true, + configurable: true + }); + } + + /** + * A GlyphSet represents all glyphs available in the font, but modelled using + * a deferred glyph loader, for retrieving glyphs only once they are absolutely + * necessary, to keep the memory footprint down. + * @exports opentype.GlyphSet + * @class + * @param {opentype.Font} + * @param {Array} + */ + function GlyphSet(font, glyphs) { + var this$1 = this; + + this.font = font; + this.glyphs = {}; + if (Array.isArray(glyphs)) { + for (var i = 0; i < glyphs.length; i++) { + this$1.glyphs[i] = glyphs[i]; + } + } + + this.length = (glyphs && glyphs.length) || 0; + } + + /** + * @param {number} index + * @return {opentype.Glyph} + */ + GlyphSet.prototype.get = function(index) { + if (typeof this.glyphs[index] === 'function') { + this.glyphs[index] = this.glyphs[index](); + } + + return this.glyphs[index]; + }; + + /** + * @param {number} index + * @param {Object} + */ + GlyphSet.prototype.push = function(index, loader) { + this.glyphs[index] = loader; + this.length++; + }; + + /** + * @alias opentype.glyphLoader + * @param {opentype.Font} font + * @param {number} index + * @return {opentype.Glyph} + */ + function glyphLoader(font, index) { + return new Glyph({ index: index, font: font }); + } + + /** + * Generate a stub glyph that can be filled with all metadata *except* + * the "points" and "path" properties, which must be loaded only once + * the glyph's path is actually requested for text shaping. + * @alias opentype.ttfGlyphLoader + * @param {opentype.Font} font + * @param {number} index + * @param {Function} parseGlyph + * @param {Object} data + * @param {number} position + * @param {Function} buildPath + * @return {opentype.Glyph} + */ + function ttfGlyphLoader(font, index, parseGlyph, data, position, buildPath) { + return function() { + var glyph = new Glyph({ index: index, font: font }); + + glyph.path = function() { + parseGlyph(glyph, data, position); + var path = buildPath(font.glyphs, glyph); + path.unitsPerEm = font.unitsPerEm; + return path; + }; + + defineDependentProperty(glyph, 'xMin', '_xMin'); + defineDependentProperty(glyph, 'xMax', '_xMax'); + defineDependentProperty(glyph, 'yMin', '_yMin'); + defineDependentProperty(glyph, 'yMax', '_yMax'); + + return glyph; + }; + } + /** + * @alias opentype.cffGlyphLoader + * @param {opentype.Font} font + * @param {number} index + * @param {Function} parseCFFCharstring + * @param {string} charstring + * @return {opentype.Glyph} + */ + function cffGlyphLoader(font, index, parseCFFCharstring, charstring) { + return function() { + var glyph = new Glyph({ index: index, font: font }); + + glyph.path = function() { + var path = parseCFFCharstring(font, glyph, charstring); + path.unitsPerEm = font.unitsPerEm; + return path; + }; + + return glyph; + }; + } + + var glyphset = { + GlyphSet: GlyphSet, + glyphLoader: glyphLoader, + ttfGlyphLoader: ttfGlyphLoader, + cffGlyphLoader: cffGlyphLoader + }; + + // The `CFF` table contains the glyph outlines in PostScript format. + + // Custom equals function that can also check lists. + function equals(a, b) { + if (a === b) { + return true; + } else if (Array.isArray(a) && Array.isArray(b)) { + if (a.length !== b.length) { + return false; + } + + for (var i = 0; i < a.length; i += 1) { + if (!equals(a[i], b[i])) { + return false; + } + } + + return true; + } else { + return false; + } + } + + // Subroutines are encoded using the negative half of the number space. + // See type 2 chapter 4.7 "Subroutine operators". + function calcCFFSubroutineBias(subrs) { + var bias; + if (subrs.length < 1240) { + bias = 107; + } else if (subrs.length < 33900) { + bias = 1131; + } else { + bias = 32768; + } + + return bias; + } + + // Parse a `CFF` INDEX array. + // An index array consists of a list of offsets, then a list of objects at those offsets. + function parseCFFIndex(data, start, conversionFn) { + var offsets = []; + var objects = []; + var count = parse.getCard16(data, start); + var objectOffset; + var endOffset; + if (count !== 0) { + var offsetSize = parse.getByte(data, start + 2); + objectOffset = start + (count + 1) * offsetSize + 2; + var pos = start + 3; + for (var i = 0; i < count + 1; i += 1) { + offsets.push(parse.getOffset(data, pos, offsetSize)); + pos += offsetSize; + } + + // The total size of the index array is 4 header bytes + the value of the last offset. + endOffset = objectOffset + offsets[count]; + } else { + endOffset = start + 2; + } + + for (var i$1 = 0; i$1 < offsets.length - 1; i$1 += 1) { + var value = parse.getBytes( + data, + objectOffset + offsets[i$1], + objectOffset + offsets[i$1 + 1] + ); + if (conversionFn) { + value = conversionFn(value); + } + + objects.push(value); + } + + return { objects: objects, startOffset: start, endOffset: endOffset }; + } + + // Parse a `CFF` DICT real value. + function parseFloatOperand(parser) { + var s = ''; + var eof = 15; + var lookup = [ + '0', + '1', + '2', + '3', + '4', + '5', + '6', + '7', + '8', + '9', + '.', + 'E', + 'E-', + null, + '-' + ]; + while (true) { + var b = parser.parseByte(); + var n1 = b >> 4; + var n2 = b & 15; + + if (n1 === eof) { + break; + } + + s += lookup[n1]; + + if (n2 === eof) { + break; + } + + s += lookup[n2]; + } + + return parseFloat(s); + } + + // Parse a `CFF` DICT operand. + function parseOperand(parser, b0) { + var b1; + var b2; + var b3; + var b4; + if (b0 === 28) { + b1 = parser.parseByte(); + b2 = parser.parseByte(); + return (b1 << 8) | b2; + } + + if (b0 === 29) { + b1 = parser.parseByte(); + b2 = parser.parseByte(); + b3 = parser.parseByte(); + b4 = parser.parseByte(); + return (b1 << 24) | (b2 << 16) | (b3 << 8) | b4; + } + + if (b0 === 30) { + return parseFloatOperand(parser); + } + + if (b0 >= 32 && b0 <= 246) { + return b0 - 139; + } + + if (b0 >= 247 && b0 <= 250) { + b1 = parser.parseByte(); + return (b0 - 247) * 256 + b1 + 108; + } + + if (b0 >= 251 && b0 <= 254) { + b1 = parser.parseByte(); + return -(b0 - 251) * 256 - b1 - 108; + } + + throw new Error('Invalid b0 ' + b0); + } + + // Convert the entries returned by `parseDict` to a proper dictionary. + // If a value is a list of one, it is unpacked. + function entriesToObject(entries) { + var o = {}; + for (var i = 0; i < entries.length; i += 1) { + var key = entries[i][0]; + var values = entries[i][1]; + var value = void 0; + if (values.length === 1) { + value = values[0]; + } else { + value = values; + } + + if (o.hasOwnProperty(key) && !isNaN(o[key])) { + throw new Error('Object ' + o + ' already has key ' + key); + } + + o[key] = value; + } + + return o; + } + + // Parse a `CFF` DICT object. + // A dictionary contains key-value pairs in a compact tokenized format. + function parseCFFDict(data, start, size) { + start = start !== undefined ? start : 0; + var parser = new parse.Parser(data, start); + var entries = []; + var operands = []; + size = size !== undefined ? size : data.length; + + while (parser.relativeOffset < size) { + var op = parser.parseByte(); + + // The first byte for each dict item distinguishes between operator (key) and operand (value). + // Values <= 21 are operators. + if (op <= 21) { + // Two-byte operators have an initial escape byte of 12. + if (op === 12) { + op = 1200 + parser.parseByte(); + } + + entries.push([op, operands]); + operands = []; + } else { + // Since the operands (values) come before the operators (keys), we store all operands in a list + // until we encounter an operator. + operands.push(parseOperand(parser, op)); + } + } + + return entriesToObject(entries); + } + + // Given a String Index (SID), return the value of the string. + // Strings below index 392 are standard CFF strings and are not encoded in the font. + function getCFFString(strings, index) { + if (index <= 390) { + index = cffStandardStrings[index]; + } else { + index = strings[index - 391]; + } + + return index; + } + + // Interpret a dictionary and return a new dictionary with readable keys and values for missing entries. + // This function takes `meta` which is a list of objects containing `operand`, `name` and `default`. + function interpretDict(dict, meta, strings) { + var newDict = {}; + var value; + + // Because we also want to include missing values, we start out from the meta list + // and lookup values in the dict. + for (var i = 0; i < meta.length; i += 1) { + var m = meta[i]; + + if (Array.isArray(m.type)) { + var values = []; + values.length = m.type.length; + for (var j = 0; j < m.type.length; j++) { + value = dict[m.op] !== undefined ? dict[m.op][j] : undefined; + if (value === undefined) { + value = + m.value !== undefined && m.value[j] !== undefined + ? m.value[j] + : null; + } + if (m.type[j] === 'SID') { + value = getCFFString(strings, value); + } + values[j] = value; + } + newDict[m.name] = values; + } else { + value = dict[m.op]; + if (value === undefined) { + value = m.value !== undefined ? m.value : null; + } + + if (m.type === 'SID') { + value = getCFFString(strings, value); + } + newDict[m.name] = value; + } + } + + return newDict; + } + + // Parse the CFF header. + function parseCFFHeader(data, start) { + var header = {}; + header.formatMajor = parse.getCard8(data, start); + header.formatMinor = parse.getCard8(data, start + 1); + header.size = parse.getCard8(data, start + 2); + header.offsetSize = parse.getCard8(data, start + 3); + header.startOffset = start; + header.endOffset = start + 4; + return header; + } + + var TOP_DICT_META = [ + { name: 'version', op: 0, type: 'SID' }, + { name: 'notice', op: 1, type: 'SID' }, + { name: 'copyright', op: 1200, type: 'SID' }, + { name: 'fullName', op: 2, type: 'SID' }, + { name: 'familyName', op: 3, type: 'SID' }, + { name: 'weight', op: 4, type: 'SID' }, + { name: 'isFixedPitch', op: 1201, type: 'number', value: 0 }, + { name: 'italicAngle', op: 1202, type: 'number', value: 0 }, + { name: 'underlinePosition', op: 1203, type: 'number', value: -100 }, + { name: 'underlineThickness', op: 1204, type: 'number', value: 50 }, + { name: 'paintType', op: 1205, type: 'number', value: 0 }, + { name: 'charstringType', op: 1206, type: 'number', value: 2 }, + { + name: 'fontMatrix', + op: 1207, + type: ['real', 'real', 'real', 'real', 'real', 'real'], + value: [0.001, 0, 0, 0.001, 0, 0] + }, + { name: 'uniqueId', op: 13, type: 'number' }, + { + name: 'fontBBox', + op: 5, + type: ['number', 'number', 'number', 'number'], + value: [0, 0, 0, 0] + }, + { name: 'strokeWidth', op: 1208, type: 'number', value: 0 }, + { name: 'xuid', op: 14, type: [], value: null }, + { name: 'charset', op: 15, type: 'offset', value: 0 }, + { name: 'encoding', op: 16, type: 'offset', value: 0 }, + { name: 'charStrings', op: 17, type: 'offset', value: 0 }, + { name: 'private', op: 18, type: ['number', 'offset'], value: [0, 0] }, + { name: 'ros', op: 1230, type: ['SID', 'SID', 'number'] }, + { name: 'cidFontVersion', op: 1231, type: 'number', value: 0 }, + { name: 'cidFontRevision', op: 1232, type: 'number', value: 0 }, + { name: 'cidFontType', op: 1233, type: 'number', value: 0 }, + { name: 'cidCount', op: 1234, type: 'number', value: 8720 }, + { name: 'uidBase', op: 1235, type: 'number' }, + { name: 'fdArray', op: 1236, type: 'offset' }, + { name: 'fdSelect', op: 1237, type: 'offset' }, + { name: 'fontName', op: 1238, type: 'SID' } + ]; + + var PRIVATE_DICT_META = [ + { name: 'subrs', op: 19, type: 'offset', value: 0 }, + { name: 'defaultWidthX', op: 20, type: 'number', value: 0 }, + { name: 'nominalWidthX', op: 21, type: 'number', value: 0 } + ]; + + // Parse the CFF top dictionary. A CFF table can contain multiple fonts, each with their own top dictionary. + // The top dictionary contains the essential metadata for the font, together with the private dictionary. + function parseCFFTopDict(data, strings) { + var dict = parseCFFDict(data, 0, data.byteLength); + return interpretDict(dict, TOP_DICT_META, strings); + } + + // Parse the CFF private dictionary. We don't fully parse out all the values, only the ones we need. + function parseCFFPrivateDict(data, start, size, strings) { + var dict = parseCFFDict(data, start, size); + return interpretDict(dict, PRIVATE_DICT_META, strings); + } + + // Returns a list of "Top DICT"s found using an INDEX list. + // Used to read both the usual high-level Top DICTs and also the FDArray + // discovered inside CID-keyed fonts. When a Top DICT has a reference to + // a Private DICT that is read and saved into the Top DICT. + // + // In addition to the expected/optional values as outlined in TOP_DICT_META + // the following values might be saved into the Top DICT. + // + // _subrs [] array of local CFF subroutines from Private DICT + // _subrsBias bias value computed from number of subroutines + // (see calcCFFSubroutineBias() and parseCFFCharstring()) + // _defaultWidthX default widths for CFF characters + // _nominalWidthX bias added to width embedded within glyph description + // + // _privateDict saved copy of parsed Private DICT from Top DICT + function gatherCFFTopDicts(data, start, cffIndex, strings) { + var topDictArray = []; + for (var iTopDict = 0; iTopDict < cffIndex.length; iTopDict += 1) { + var topDictData = new DataView(new Uint8Array(cffIndex[iTopDict]).buffer); + var topDict = parseCFFTopDict(topDictData, strings); + topDict._subrs = []; + topDict._subrsBias = 0; + var privateSize = topDict.private[0]; + var privateOffset = topDict.private[1]; + if (privateSize !== 0 && privateOffset !== 0) { + var privateDict = parseCFFPrivateDict( + data, + privateOffset + start, + privateSize, + strings + ); + topDict._defaultWidthX = privateDict.defaultWidthX; + topDict._nominalWidthX = privateDict.nominalWidthX; + if (privateDict.subrs !== 0) { + var subrOffset = privateOffset + privateDict.subrs; + var subrIndex = parseCFFIndex(data, subrOffset + start); + topDict._subrs = subrIndex.objects; + topDict._subrsBias = calcCFFSubroutineBias(topDict._subrs); + } + topDict._privateDict = privateDict; + } + topDictArray.push(topDict); + } + return topDictArray; + } + + // Parse the CFF charset table, which contains internal names for all the glyphs. + // This function will return a list of glyph names. + // See Adobe TN #5176 chapter 13, "Charsets". + function parseCFFCharset(data, start, nGlyphs, strings) { + var sid; + var count; + var parser = new parse.Parser(data, start); + + // The .notdef glyph is not included, so subtract 1. + nGlyphs -= 1; + var charset = ['.notdef']; + + var format = parser.parseCard8(); + if (format === 0) { + for (var i = 0; i < nGlyphs; i += 1) { + sid = parser.parseSID(); + charset.push(getCFFString(strings, sid)); + } + } else if (format === 1) { + while (charset.length <= nGlyphs) { + sid = parser.parseSID(); + count = parser.parseCard8(); + for (var i$1 = 0; i$1 <= count; i$1 += 1) { + charset.push(getCFFString(strings, sid)); + sid += 1; + } + } + } else if (format === 2) { + while (charset.length <= nGlyphs) { + sid = parser.parseSID(); + count = parser.parseCard16(); + for (var i$2 = 0; i$2 <= count; i$2 += 1) { + charset.push(getCFFString(strings, sid)); + sid += 1; + } + } + } else { + throw new Error('Unknown charset format ' + format); + } + + return charset; + } + + // Parse the CFF encoding data. Only one encoding can be specified per font. + // See Adobe TN #5176 chapter 12, "Encodings". + function parseCFFEncoding(data, start, charset) { + var code; + var enc = {}; + var parser = new parse.Parser(data, start); + var format = parser.parseCard8(); + if (format === 0) { + var nCodes = parser.parseCard8(); + for (var i = 0; i < nCodes; i += 1) { + code = parser.parseCard8(); + enc[code] = i; + } + } else if (format === 1) { + var nRanges = parser.parseCard8(); + code = 1; + for (var i$1 = 0; i$1 < nRanges; i$1 += 1) { + var first = parser.parseCard8(); + var nLeft = parser.parseCard8(); + for (var j = first; j <= first + nLeft; j += 1) { + enc[j] = code; + code += 1; + } + } + } else { + throw new Error('Unknown encoding format ' + format); + } + + return new CffEncoding(enc, charset); + } + + // Take in charstring code and return a Glyph object. + // The encoding is described in the Type 2 Charstring Format + // https://www.microsoft.com/typography/OTSPEC/charstr2.htm + function parseCFFCharstring(font, glyph, code) { + var c1x; + var c1y; + var c2x; + var c2y; + var p = new Path(); + var stack = []; + var nStems = 0; + var haveWidth = false; + var open = false; + var x = 0; + var y = 0; + var subrs; + var subrsBias; + var defaultWidthX; + var nominalWidthX; + if (font.isCIDFont) { + var fdIndex = font.tables.cff.topDict._fdSelect[glyph.index]; + var fdDict = font.tables.cff.topDict._fdArray[fdIndex]; + subrs = fdDict._subrs; + subrsBias = fdDict._subrsBias; + defaultWidthX = fdDict._defaultWidthX; + nominalWidthX = fdDict._nominalWidthX; + } else { + subrs = font.tables.cff.topDict._subrs; + subrsBias = font.tables.cff.topDict._subrsBias; + defaultWidthX = font.tables.cff.topDict._defaultWidthX; + nominalWidthX = font.tables.cff.topDict._nominalWidthX; + } + var width = defaultWidthX; + + function newContour(x, y) { + if (open) { + p.closePath(); + } + + p.moveTo(x, y); + open = true; + } + + function parseStems() { + var hasWidthArg; + + // The number of stem operators on the stack is always even. + // If the value is uneven, that means a width is specified. + hasWidthArg = stack.length % 2 !== 0; + if (hasWidthArg && !haveWidth) { + width = stack.shift() + nominalWidthX; + } + + nStems += stack.length >> 1; + stack.length = 0; + haveWidth = true; + } + + function parse$$1(code) { + var b1; + var b2; + var b3; + var b4; + var codeIndex; + var subrCode; + var jpx; + var jpy; + var c3x; + var c3y; + var c4x; + var c4y; + + var i = 0; + while (i < code.length) { + var v = code[i]; + i += 1; + switch (v) { + case 1: // hstem + parseStems(); + break; + case 3: // vstem + parseStems(); + break; + case 4: // vmoveto + if (stack.length > 1 && !haveWidth) { + width = stack.shift() + nominalWidthX; + haveWidth = true; + } + + y += stack.pop(); + newContour(x, y); + break; + case 5: // rlineto + while (stack.length > 0) { + x += stack.shift(); + y += stack.shift(); + p.lineTo(x, y); + } + + break; + case 6: // hlineto + while (stack.length > 0) { + x += stack.shift(); + p.lineTo(x, y); + if (stack.length === 0) { + break; + } + + y += stack.shift(); + p.lineTo(x, y); + } + + break; + case 7: // vlineto + while (stack.length > 0) { + y += stack.shift(); + p.lineTo(x, y); + if (stack.length === 0) { + break; + } + + x += stack.shift(); + p.lineTo(x, y); + } + + break; + case 8: // rrcurveto + while (stack.length > 0) { + c1x = x + stack.shift(); + c1y = y + stack.shift(); + c2x = c1x + stack.shift(); + c2y = c1y + stack.shift(); + x = c2x + stack.shift(); + y = c2y + stack.shift(); + p.curveTo(c1x, c1y, c2x, c2y, x, y); + } + + break; + case 10: // callsubr + codeIndex = stack.pop() + subrsBias; + subrCode = subrs[codeIndex]; + if (subrCode) { + parse$$1(subrCode); + } + + break; + case 11: // return + return; + case 12: // flex operators + v = code[i]; + i += 1; + switch (v) { + case 35: // flex + // |- dx1 dy1 dx2 dy2 dx3 dy3 dx4 dy4 dx5 dy5 dx6 dy6 fd flex (12 35) |- + c1x = x + stack.shift(); // dx1 + c1y = y + stack.shift(); // dy1 + c2x = c1x + stack.shift(); // dx2 + c2y = c1y + stack.shift(); // dy2 + jpx = c2x + stack.shift(); // dx3 + jpy = c2y + stack.shift(); // dy3 + c3x = jpx + stack.shift(); // dx4 + c3y = jpy + stack.shift(); // dy4 + c4x = c3x + stack.shift(); // dx5 + c4y = c3y + stack.shift(); // dy5 + x = c4x + stack.shift(); // dx6 + y = c4y + stack.shift(); // dy6 + stack.shift(); // flex depth + p.curveTo(c1x, c1y, c2x, c2y, jpx, jpy); + p.curveTo(c3x, c3y, c4x, c4y, x, y); + break; + case 34: // hflex + // |- dx1 dx2 dy2 dx3 dx4 dx5 dx6 hflex (12 34) |- + c1x = x + stack.shift(); // dx1 + c1y = y; // dy1 + c2x = c1x + stack.shift(); // dx2 + c2y = c1y + stack.shift(); // dy2 + jpx = c2x + stack.shift(); // dx3 + jpy = c2y; // dy3 + c3x = jpx + stack.shift(); // dx4 + c3y = c2y; // dy4 + c4x = c3x + stack.shift(); // dx5 + c4y = y; // dy5 + x = c4x + stack.shift(); // dx6 + p.curveTo(c1x, c1y, c2x, c2y, jpx, jpy); + p.curveTo(c3x, c3y, c4x, c4y, x, y); + break; + case 36: // hflex1 + // |- dx1 dy1 dx2 dy2 dx3 dx4 dx5 dy5 dx6 hflex1 (12 36) |- + c1x = x + stack.shift(); // dx1 + c1y = y + stack.shift(); // dy1 + c2x = c1x + stack.shift(); // dx2 + c2y = c1y + stack.shift(); // dy2 + jpx = c2x + stack.shift(); // dx3 + jpy = c2y; // dy3 + c3x = jpx + stack.shift(); // dx4 + c3y = c2y; // dy4 + c4x = c3x + stack.shift(); // dx5 + c4y = c3y + stack.shift(); // dy5 + x = c4x + stack.shift(); // dx6 + p.curveTo(c1x, c1y, c2x, c2y, jpx, jpy); + p.curveTo(c3x, c3y, c4x, c4y, x, y); + break; + case 37: // flex1 + // |- dx1 dy1 dx2 dy2 dx3 dy3 dx4 dy4 dx5 dy5 d6 flex1 (12 37) |- + c1x = x + stack.shift(); // dx1 + c1y = y + stack.shift(); // dy1 + c2x = c1x + stack.shift(); // dx2 + c2y = c1y + stack.shift(); // dy2 + jpx = c2x + stack.shift(); // dx3 + jpy = c2y + stack.shift(); // dy3 + c3x = jpx + stack.shift(); // dx4 + c3y = jpy + stack.shift(); // dy4 + c4x = c3x + stack.shift(); // dx5 + c4y = c3y + stack.shift(); // dy5 + if (Math.abs(c4x - x) > Math.abs(c4y - y)) { + x = c4x + stack.shift(); + } else { + y = c4y + stack.shift(); + } + + p.curveTo(c1x, c1y, c2x, c2y, jpx, jpy); + p.curveTo(c3x, c3y, c4x, c4y, x, y); + break; + default: + console.log( + 'Glyph ' + glyph.index + ': unknown operator ' + 1200 + v + ); + stack.length = 0; + } + break; + case 14: // endchar + if (stack.length > 0 && !haveWidth) { + width = stack.shift() + nominalWidthX; + haveWidth = true; + } + + if (open) { + p.closePath(); + open = false; + } + + break; + case 18: // hstemhm + parseStems(); + break; + case 19: // hintmask + case 20: // cntrmask + parseStems(); + i += (nStems + 7) >> 3; + break; + case 21: // rmoveto + if (stack.length > 2 && !haveWidth) { + width = stack.shift() + nominalWidthX; + haveWidth = true; + } + + y += stack.pop(); + x += stack.pop(); + newContour(x, y); + break; + case 22: // hmoveto + if (stack.length > 1 && !haveWidth) { + width = stack.shift() + nominalWidthX; + haveWidth = true; + } + + x += stack.pop(); + newContour(x, y); + break; + case 23: // vstemhm + parseStems(); + break; + case 24: // rcurveline + while (stack.length > 2) { + c1x = x + stack.shift(); + c1y = y + stack.shift(); + c2x = c1x + stack.shift(); + c2y = c1y + stack.shift(); + x = c2x + stack.shift(); + y = c2y + stack.shift(); + p.curveTo(c1x, c1y, c2x, c2y, x, y); + } + + x += stack.shift(); + y += stack.shift(); + p.lineTo(x, y); + break; + case 25: // rlinecurve + while (stack.length > 6) { + x += stack.shift(); + y += stack.shift(); + p.lineTo(x, y); + } + + c1x = x + stack.shift(); + c1y = y + stack.shift(); + c2x = c1x + stack.shift(); + c2y = c1y + stack.shift(); + x = c2x + stack.shift(); + y = c2y + stack.shift(); + p.curveTo(c1x, c1y, c2x, c2y, x, y); + break; + case 26: // vvcurveto + if (stack.length % 2) { + x += stack.shift(); + } + + while (stack.length > 0) { + c1x = x; + c1y = y + stack.shift(); + c2x = c1x + stack.shift(); + c2y = c1y + stack.shift(); + x = c2x; + y = c2y + stack.shift(); + p.curveTo(c1x, c1y, c2x, c2y, x, y); + } + + break; + case 27: // hhcurveto + if (stack.length % 2) { + y += stack.shift(); + } + + while (stack.length > 0) { + c1x = x + stack.shift(); + c1y = y; + c2x = c1x + stack.shift(); + c2y = c1y + stack.shift(); + x = c2x + stack.shift(); + y = c2y; + p.curveTo(c1x, c1y, c2x, c2y, x, y); + } + + break; + case 28: // shortint + b1 = code[i]; + b2 = code[i + 1]; + stack.push(((b1 << 24) | (b2 << 16)) >> 16); + i += 2; + break; + case 29: // callgsubr + codeIndex = stack.pop() + font.gsubrsBias; + subrCode = font.gsubrs[codeIndex]; + if (subrCode) { + parse$$1(subrCode); + } + + break; + case 30: // vhcurveto + while (stack.length > 0) { + c1x = x; + c1y = y + stack.shift(); + c2x = c1x + stack.shift(); + c2y = c1y + stack.shift(); + x = c2x + stack.shift(); + y = c2y + (stack.length === 1 ? stack.shift() : 0); + p.curveTo(c1x, c1y, c2x, c2y, x, y); + if (stack.length === 0) { + break; + } + + c1x = x + stack.shift(); + c1y = y; + c2x = c1x + stack.shift(); + c2y = c1y + stack.shift(); + y = c2y + stack.shift(); + x = c2x + (stack.length === 1 ? stack.shift() : 0); + p.curveTo(c1x, c1y, c2x, c2y, x, y); + } + + break; + case 31: // hvcurveto + while (stack.length > 0) { + c1x = x + stack.shift(); + c1y = y; + c2x = c1x + stack.shift(); + c2y = c1y + stack.shift(); + y = c2y + stack.shift(); + x = c2x + (stack.length === 1 ? stack.shift() : 0); + p.curveTo(c1x, c1y, c2x, c2y, x, y); + if (stack.length === 0) { + break; + } + + c1x = x; + c1y = y + stack.shift(); + c2x = c1x + stack.shift(); + c2y = c1y + stack.shift(); + x = c2x + stack.shift(); + y = c2y + (stack.length === 1 ? stack.shift() : 0); + p.curveTo(c1x, c1y, c2x, c2y, x, y); + } + + break; + default: + if (v < 32) { + console.log('Glyph ' + glyph.index + ': unknown operator ' + v); + } else if (v < 247) { + stack.push(v - 139); + } else if (v < 251) { + b1 = code[i]; + i += 1; + stack.push((v - 247) * 256 + b1 + 108); + } else if (v < 255) { + b1 = code[i]; + i += 1; + stack.push(-(v - 251) * 256 - b1 - 108); + } else { + b1 = code[i]; + b2 = code[i + 1]; + b3 = code[i + 2]; + b4 = code[i + 3]; + i += 4; + stack.push(((b1 << 24) | (b2 << 16) | (b3 << 8) | b4) / 65536); + } + } + } + } + + parse$$1(code); + + glyph.advanceWidth = width; + return p; + } + + function parseCFFFDSelect(data, start, nGlyphs, fdArrayCount) { + var fdSelect = []; + var fdIndex; + var parser = new parse.Parser(data, start); + var format = parser.parseCard8(); + if (format === 0) { + // Simple list of nGlyphs elements + for (var iGid = 0; iGid < nGlyphs; iGid++) { + fdIndex = parser.parseCard8(); + if (fdIndex >= fdArrayCount) { + throw new Error( + 'CFF table CID Font FDSelect has bad FD index value ' + + fdIndex + + ' (FD count ' + + fdArrayCount + + ')' + ); + } + fdSelect.push(fdIndex); + } + } else if (format === 3) { + // Ranges + var nRanges = parser.parseCard16(); + var first = parser.parseCard16(); + if (first !== 0) { + throw new Error( + 'CFF Table CID Font FDSelect format 3 range has bad initial GID ' + + first + ); + } + var next; + for (var iRange = 0; iRange < nRanges; iRange++) { + fdIndex = parser.parseCard8(); + next = parser.parseCard16(); + if (fdIndex >= fdArrayCount) { + throw new Error( + 'CFF table CID Font FDSelect has bad FD index value ' + + fdIndex + + ' (FD count ' + + fdArrayCount + + ')' + ); + } + if (next > nGlyphs) { + throw new Error( + 'CFF Table CID Font FDSelect format 3 range has bad GID ' + next + ); + } + for (; first < next; first++) { + fdSelect.push(fdIndex); + } + first = next; + } + if (next !== nGlyphs) { + throw new Error( + 'CFF Table CID Font FDSelect format 3 range has bad final GID ' + next + ); + } + } else { + throw new Error( + 'CFF Table CID Font FDSelect table has unsupported format ' + format + ); + } + return fdSelect; + } + + // Parse the `CFF` table, which contains the glyph outlines in PostScript format. + function parseCFFTable(data, start, font) { + font.tables.cff = {}; + var header = parseCFFHeader(data, start); + var nameIndex = parseCFFIndex(data, header.endOffset, parse.bytesToString); + var topDictIndex = parseCFFIndex(data, nameIndex.endOffset); + var stringIndex = parseCFFIndex( + data, + topDictIndex.endOffset, + parse.bytesToString + ); + var globalSubrIndex = parseCFFIndex(data, stringIndex.endOffset); + font.gsubrs = globalSubrIndex.objects; + font.gsubrsBias = calcCFFSubroutineBias(font.gsubrs); + + var topDictArray = gatherCFFTopDicts( + data, + start, + topDictIndex.objects, + stringIndex.objects + ); + if (topDictArray.length !== 1) { + throw new Error( + "CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = " + + topDictArray.length + ); + } + + var topDict = topDictArray[0]; + font.tables.cff.topDict = topDict; + + if (topDict._privateDict) { + font.defaultWidthX = topDict._privateDict.defaultWidthX; + font.nominalWidthX = topDict._privateDict.nominalWidthX; + } + + if (topDict.ros[0] !== undefined && topDict.ros[1] !== undefined) { + font.isCIDFont = true; + } + + if (font.isCIDFont) { + var fdArrayOffset = topDict.fdArray; + var fdSelectOffset = topDict.fdSelect; + if (fdArrayOffset === 0 || fdSelectOffset === 0) { + throw new Error( + 'Font is marked as a CID font, but FDArray and/or FDSelect information is missing' + ); + } + fdArrayOffset += start; + var fdArrayIndex = parseCFFIndex(data, fdArrayOffset); + var fdArray = gatherCFFTopDicts( + data, + start, + fdArrayIndex.objects, + stringIndex.objects + ); + topDict._fdArray = fdArray; + fdSelectOffset += start; + topDict._fdSelect = parseCFFFDSelect( + data, + fdSelectOffset, + font.numGlyphs, + fdArray.length + ); + } + + var privateDictOffset = start + topDict.private[1]; + var privateDict = parseCFFPrivateDict( + data, + privateDictOffset, + topDict.private[0], + stringIndex.objects + ); + font.defaultWidthX = privateDict.defaultWidthX; + font.nominalWidthX = privateDict.nominalWidthX; + + if (privateDict.subrs !== 0) { + var subrOffset = privateDictOffset + privateDict.subrs; + var subrIndex = parseCFFIndex(data, subrOffset); + font.subrs = subrIndex.objects; + font.subrsBias = calcCFFSubroutineBias(font.subrs); + } else { + font.subrs = []; + font.subrsBias = 0; + } + + // Offsets in the top dict are relative to the beginning of the CFF data, so add the CFF start offset. + var charStringsIndex = parseCFFIndex(data, start + topDict.charStrings); + font.nGlyphs = charStringsIndex.objects.length; + + var charset = parseCFFCharset( + data, + start + topDict.charset, + font.nGlyphs, + stringIndex.objects + ); + if (topDict.encoding === 0) { + // Standard encoding + font.cffEncoding = new CffEncoding(cffStandardEncoding, charset); + } else if (topDict.encoding === 1) { + // Expert encoding + font.cffEncoding = new CffEncoding(cffExpertEncoding, charset); + } else { + font.cffEncoding = parseCFFEncoding( + data, + start + topDict.encoding, + charset + ); + } + + // Prefer the CMAP encoding to the CFF encoding. + font.encoding = font.encoding || font.cffEncoding; + + font.glyphs = new glyphset.GlyphSet(font); + for (var i = 0; i < font.nGlyphs; i += 1) { + var charString = charStringsIndex.objects[i]; + font.glyphs.push( + i, + glyphset.cffGlyphLoader(font, i, parseCFFCharstring, charString) + ); + } + } + + // Convert a string to a String ID (SID). + // The list of strings is modified in place. + function encodeString(s, strings) { + var sid; + + // Is the string in the CFF standard strings? + var i = cffStandardStrings.indexOf(s); + if (i >= 0) { + sid = i; + } + + // Is the string already in the string index? + i = strings.indexOf(s); + if (i >= 0) { + sid = i + cffStandardStrings.length; + } else { + sid = cffStandardStrings.length + strings.length; + strings.push(s); + } + + return sid; + } + + function makeHeader() { + return new table.Record('Header', [ + { name: 'major', type: 'Card8', value: 1 }, + { name: 'minor', type: 'Card8', value: 0 }, + { name: 'hdrSize', type: 'Card8', value: 4 }, + { name: 'major', type: 'Card8', value: 1 } + ]); + } + + function makeNameIndex(fontNames) { + var t = new table.Record('Name INDEX', [ + { name: 'names', type: 'INDEX', value: [] } + ]); + t.names = []; + for (var i = 0; i < fontNames.length; i += 1) { + t.names.push({ name: 'name_' + i, type: 'NAME', value: fontNames[i] }); + } + + return t; + } + + // Given a dictionary's metadata, create a DICT structure. + function makeDict(meta, attrs, strings) { + var m = {}; + for (var i = 0; i < meta.length; i += 1) { + var entry = meta[i]; + var value = attrs[entry.name]; + if (value !== undefined && !equals(value, entry.value)) { + if (entry.type === 'SID') { + value = encodeString(value, strings); + } + + m[entry.op] = { name: entry.name, type: entry.type, value: value }; + } + } + + return m; + } + + // The Top DICT houses the global font attributes. + function makeTopDict(attrs, strings) { + var t = new table.Record('Top DICT', [ + { name: 'dict', type: 'DICT', value: {} } + ]); + t.dict = makeDict(TOP_DICT_META, attrs, strings); + return t; + } + + function makeTopDictIndex(topDict) { + var t = new table.Record('Top DICT INDEX', [ + { name: 'topDicts', type: 'INDEX', value: [] } + ]); + t.topDicts = [{ name: 'topDict_0', type: 'TABLE', value: topDict }]; + return t; + } + + function makeStringIndex(strings) { + var t = new table.Record('String INDEX', [ + { name: 'strings', type: 'INDEX', value: [] } + ]); + t.strings = []; + for (var i = 0; i < strings.length; i += 1) { + t.strings.push({ + name: 'string_' + i, + type: 'STRING', + value: strings[i] + }); + } + + return t; + } + + function makeGlobalSubrIndex() { + // Currently we don't use subroutines. + return new table.Record('Global Subr INDEX', [ + { name: 'subrs', type: 'INDEX', value: [] } + ]); + } + + function makeCharsets(glyphNames, strings) { + var t = new table.Record('Charsets', [ + { name: 'format', type: 'Card8', value: 0 } + ]); + for (var i = 0; i < glyphNames.length; i += 1) { + var glyphName = glyphNames[i]; + var glyphSID = encodeString(glyphName, strings); + t.fields.push({ name: 'glyph_' + i, type: 'SID', value: glyphSID }); + } + + return t; + } + + function glyphToOps(glyph) { + var ops = []; + var path = glyph.path; + ops.push({ name: 'width', type: 'NUMBER', value: glyph.advanceWidth }); + var x = 0; + var y = 0; + for (var i = 0; i < path.commands.length; i += 1) { + var dx = void 0; + var dy = void 0; + var cmd = path.commands[i]; + if (cmd.type === 'Q') { + // CFF only supports bรฉzier curves, so convert the quad to a bรฉzier. + var _13 = 1 / 3; + var _23 = 2 / 3; + + // We're going to create a new command so we don't change the original path. + cmd = { + type: 'C', + x: cmd.x, + y: cmd.y, + x1: _13 * x + _23 * cmd.x1, + y1: _13 * y + _23 * cmd.y1, + x2: _13 * cmd.x + _23 * cmd.x1, + y2: _13 * cmd.y + _23 * cmd.y1 + }; + } + + if (cmd.type === 'M') { + dx = Math.round(cmd.x - x); + dy = Math.round(cmd.y - y); + ops.push({ name: 'dx', type: 'NUMBER', value: dx }); + ops.push({ name: 'dy', type: 'NUMBER', value: dy }); + ops.push({ name: 'rmoveto', type: 'OP', value: 21 }); + x = Math.round(cmd.x); + y = Math.round(cmd.y); + } else if (cmd.type === 'L') { + dx = Math.round(cmd.x - x); + dy = Math.round(cmd.y - y); + ops.push({ name: 'dx', type: 'NUMBER', value: dx }); + ops.push({ name: 'dy', type: 'NUMBER', value: dy }); + ops.push({ name: 'rlineto', type: 'OP', value: 5 }); + x = Math.round(cmd.x); + y = Math.round(cmd.y); + } else if (cmd.type === 'C') { + var dx1 = Math.round(cmd.x1 - x); + var dy1 = Math.round(cmd.y1 - y); + var dx2 = Math.round(cmd.x2 - cmd.x1); + var dy2 = Math.round(cmd.y2 - cmd.y1); + dx = Math.round(cmd.x - cmd.x2); + dy = Math.round(cmd.y - cmd.y2); + ops.push({ name: 'dx1', type: 'NUMBER', value: dx1 }); + ops.push({ name: 'dy1', type: 'NUMBER', value: dy1 }); + ops.push({ name: 'dx2', type: 'NUMBER', value: dx2 }); + ops.push({ name: 'dy2', type: 'NUMBER', value: dy2 }); + ops.push({ name: 'dx', type: 'NUMBER', value: dx }); + ops.push({ name: 'dy', type: 'NUMBER', value: dy }); + ops.push({ name: 'rrcurveto', type: 'OP', value: 8 }); + x = Math.round(cmd.x); + y = Math.round(cmd.y); + } + + // Contours are closed automatically. + } + + ops.push({ name: 'endchar', type: 'OP', value: 14 }); + return ops; + } + + function makeCharStringsIndex(glyphs) { + var t = new table.Record('CharStrings INDEX', [ + { name: 'charStrings', type: 'INDEX', value: [] } + ]); + + for (var i = 0; i < glyphs.length; i += 1) { + var glyph = glyphs.get(i); + var ops = glyphToOps(glyph); + t.charStrings.push({ name: glyph.name, type: 'CHARSTRING', value: ops }); + } + + return t; + } + + function makePrivateDict(attrs, strings) { + var t = new table.Record('Private DICT', [ + { name: 'dict', type: 'DICT', value: {} } + ]); + t.dict = makeDict(PRIVATE_DICT_META, attrs, strings); + return t; + } + + function makeCFFTable(glyphs, options) { + var t = new table.Table('CFF ', [ + { name: 'header', type: 'RECORD' }, + { name: 'nameIndex', type: 'RECORD' }, + { name: 'topDictIndex', type: 'RECORD' }, + { name: 'stringIndex', type: 'RECORD' }, + { name: 'globalSubrIndex', type: 'RECORD' }, + { name: 'charsets', type: 'RECORD' }, + { name: 'charStringsIndex', type: 'RECORD' }, + { name: 'privateDict', type: 'RECORD' } + ]); + + var fontScale = 1 / options.unitsPerEm; + // We use non-zero values for the offsets so that the DICT encodes them. + // This is important because the size of the Top DICT plays a role in offset calculation, + // and the size shouldn't change after we've written correct offsets. + var attrs = { + version: options.version, + fullName: options.fullName, + familyName: options.familyName, + weight: options.weightName, + fontBBox: options.fontBBox || [0, 0, 0, 0], + fontMatrix: [fontScale, 0, 0, fontScale, 0, 0], + charset: 999, + encoding: 0, + charStrings: 999, + private: [0, 999] + }; + + var privateAttrs = {}; + + var glyphNames = []; + var glyph; + + // Skip first glyph (.notdef) + for (var i = 1; i < glyphs.length; i += 1) { + glyph = glyphs.get(i); + glyphNames.push(glyph.name); + } + + var strings = []; + + t.header = makeHeader(); + t.nameIndex = makeNameIndex([options.postScriptName]); + var topDict = makeTopDict(attrs, strings); + t.topDictIndex = makeTopDictIndex(topDict); + t.globalSubrIndex = makeGlobalSubrIndex(); + t.charsets = makeCharsets(glyphNames, strings); + t.charStringsIndex = makeCharStringsIndex(glyphs); + t.privateDict = makePrivateDict(privateAttrs, strings); + + // Needs to come at the end, to encode all custom strings used in the font. + t.stringIndex = makeStringIndex(strings); + + var startOffset = + t.header.sizeOf() + + t.nameIndex.sizeOf() + + t.topDictIndex.sizeOf() + + t.stringIndex.sizeOf() + + t.globalSubrIndex.sizeOf(); + attrs.charset = startOffset; + + // We use the CFF standard encoding; proper encoding will be handled in cmap. + attrs.encoding = 0; + attrs.charStrings = attrs.charset + t.charsets.sizeOf(); + attrs.private[1] = attrs.charStrings + t.charStringsIndex.sizeOf(); + + // Recreate the Top DICT INDEX with the correct offsets. + topDict = makeTopDict(attrs, strings); + t.topDictIndex = makeTopDictIndex(topDict); + + return t; + } + + var cff = { parse: parseCFFTable, make: makeCFFTable }; + + // The `head` table contains global information about the font. + + // Parse the header `head` table + function parseHeadTable(data, start) { + var head = {}; + var p = new parse.Parser(data, start); + head.version = p.parseVersion(); + head.fontRevision = Math.round(p.parseFixed() * 1000) / 1000; + head.checkSumAdjustment = p.parseULong(); + head.magicNumber = p.parseULong(); + check.argument( + head.magicNumber === 0x5f0f3cf5, + 'Font header has wrong magic number.' + ); + head.flags = p.parseUShort(); + head.unitsPerEm = p.parseUShort(); + head.created = p.parseLongDateTime(); + head.modified = p.parseLongDateTime(); + head.xMin = p.parseShort(); + head.yMin = p.parseShort(); + head.xMax = p.parseShort(); + head.yMax = p.parseShort(); + head.macStyle = p.parseUShort(); + head.lowestRecPPEM = p.parseUShort(); + head.fontDirectionHint = p.parseShort(); + head.indexToLocFormat = p.parseShort(); + head.glyphDataFormat = p.parseShort(); + return head; + } + + function makeHeadTable(options) { + // Apple Mac timestamp epoch is 01/01/1904 not 01/01/1970 + var timestamp = Math.round(new Date().getTime() / 1000) + 2082844800; + var createdTimestamp = timestamp; + + if (options.createdTimestamp) { + createdTimestamp = options.createdTimestamp + 2082844800; + } + + return new table.Table( + 'head', + [ + { name: 'version', type: 'FIXED', value: 0x00010000 }, + { name: 'fontRevision', type: 'FIXED', value: 0x00010000 }, + { name: 'checkSumAdjustment', type: 'ULONG', value: 0 }, + { name: 'magicNumber', type: 'ULONG', value: 0x5f0f3cf5 }, + { name: 'flags', type: 'USHORT', value: 0 }, + { name: 'unitsPerEm', type: 'USHORT', value: 1000 }, + { name: 'created', type: 'LONGDATETIME', value: createdTimestamp }, + { name: 'modified', type: 'LONGDATETIME', value: timestamp }, + { name: 'xMin', type: 'SHORT', value: 0 }, + { name: 'yMin', type: 'SHORT', value: 0 }, + { name: 'xMax', type: 'SHORT', value: 0 }, + { name: 'yMax', type: 'SHORT', value: 0 }, + { name: 'macStyle', type: 'USHORT', value: 0 }, + { name: 'lowestRecPPEM', type: 'USHORT', value: 0 }, + { name: 'fontDirectionHint', type: 'SHORT', value: 2 }, + { name: 'indexToLocFormat', type: 'SHORT', value: 0 }, + { name: 'glyphDataFormat', type: 'SHORT', value: 0 } + ], + options + ); + } + + var head = { parse: parseHeadTable, make: makeHeadTable }; + + // The `hhea` table contains information for horizontal layout. + + // Parse the horizontal header `hhea` table + function parseHheaTable(data, start) { + var hhea = {}; + var p = new parse.Parser(data, start); + hhea.version = p.parseVersion(); + hhea.ascender = p.parseShort(); + hhea.descender = p.parseShort(); + hhea.lineGap = p.parseShort(); + hhea.advanceWidthMax = p.parseUShort(); + hhea.minLeftSideBearing = p.parseShort(); + hhea.minRightSideBearing = p.parseShort(); + hhea.xMaxExtent = p.parseShort(); + hhea.caretSlopeRise = p.parseShort(); + hhea.caretSlopeRun = p.parseShort(); + hhea.caretOffset = p.parseShort(); + p.relativeOffset += 8; + hhea.metricDataFormat = p.parseShort(); + hhea.numberOfHMetrics = p.parseUShort(); + return hhea; + } + + function makeHheaTable(options) { + return new table.Table( + 'hhea', + [ + { name: 'version', type: 'FIXED', value: 0x00010000 }, + { name: 'ascender', type: 'FWORD', value: 0 }, + { name: 'descender', type: 'FWORD', value: 0 }, + { name: 'lineGap', type: 'FWORD', value: 0 }, + { name: 'advanceWidthMax', type: 'UFWORD', value: 0 }, + { name: 'minLeftSideBearing', type: 'FWORD', value: 0 }, + { name: 'minRightSideBearing', type: 'FWORD', value: 0 }, + { name: 'xMaxExtent', type: 'FWORD', value: 0 }, + { name: 'caretSlopeRise', type: 'SHORT', value: 1 }, + { name: 'caretSlopeRun', type: 'SHORT', value: 0 }, + { name: 'caretOffset', type: 'SHORT', value: 0 }, + { name: 'reserved1', type: 'SHORT', value: 0 }, + { name: 'reserved2', type: 'SHORT', value: 0 }, + { name: 'reserved3', type: 'SHORT', value: 0 }, + { name: 'reserved4', type: 'SHORT', value: 0 }, + { name: 'metricDataFormat', type: 'SHORT', value: 0 }, + { name: 'numberOfHMetrics', type: 'USHORT', value: 0 } + ], + options + ); + } + + var hhea = { parse: parseHheaTable, make: makeHheaTable }; + + // The `hmtx` table contains the horizontal metrics for all glyphs. + + // Parse the `hmtx` table, which contains the horizontal metrics for all glyphs. + // This function augments the glyph array, adding the advanceWidth and leftSideBearing to each glyph. + function parseHmtxTable(data, start, numMetrics, numGlyphs, glyphs) { + var advanceWidth; + var leftSideBearing; + var p = new parse.Parser(data, start); + for (var i = 0; i < numGlyphs; i += 1) { + // If the font is monospaced, only one entry is needed. This last entry applies to all subsequent glyphs. + if (i < numMetrics) { + advanceWidth = p.parseUShort(); + leftSideBearing = p.parseShort(); + } + + var glyph = glyphs.get(i); + glyph.advanceWidth = advanceWidth; + glyph.leftSideBearing = leftSideBearing; + } + } + + function makeHmtxTable(glyphs) { + var t = new table.Table('hmtx', []); + for (var i = 0; i < glyphs.length; i += 1) { + var glyph = glyphs.get(i); + var advanceWidth = glyph.advanceWidth || 0; + var leftSideBearing = glyph.leftSideBearing || 0; + t.fields.push({ + name: 'advanceWidth_' + i, + type: 'USHORT', + value: advanceWidth + }); + t.fields.push({ + name: 'leftSideBearing_' + i, + type: 'SHORT', + value: leftSideBearing + }); + } + + return t; + } + + var hmtx = { parse: parseHmtxTable, make: makeHmtxTable }; + + // The `ltag` table stores IETF BCP-47 language tags. It allows supporting + + function makeLtagTable(tags) { + var result = new table.Table('ltag', [ + { name: 'version', type: 'ULONG', value: 1 }, + { name: 'flags', type: 'ULONG', value: 0 }, + { name: 'numTags', type: 'ULONG', value: tags.length } + ]); + + var stringPool = ''; + var stringPoolOffset = 12 + tags.length * 4; + for (var i = 0; i < tags.length; ++i) { + var pos = stringPool.indexOf(tags[i]); + if (pos < 0) { + pos = stringPool.length; + stringPool += tags[i]; + } + + result.fields.push({ + name: 'offset ' + i, + type: 'USHORT', + value: stringPoolOffset + pos + }); + result.fields.push({ + name: 'length ' + i, + type: 'USHORT', + value: tags[i].length + }); + } + + result.fields.push({ + name: 'stringPool', + type: 'CHARARRAY', + value: stringPool + }); + return result; + } + + function parseLtagTable(data, start) { + var p = new parse.Parser(data, start); + var tableVersion = p.parseULong(); + check.argument(tableVersion === 1, 'Unsupported ltag table version.'); + // The 'ltag' specification does not define any flags; skip the field. + p.skip('uLong', 1); + var numTags = p.parseULong(); + + var tags = []; + for (var i = 0; i < numTags; i++) { + var tag = ''; + var offset = start + p.parseUShort(); + var length = p.parseUShort(); + for (var j = offset; j < offset + length; ++j) { + tag += String.fromCharCode(data.getInt8(j)); + } + + tags.push(tag); + } + + return tags; + } + + var ltag = { make: makeLtagTable, parse: parseLtagTable }; + + // The `maxp` table establishes the memory requirements for the font. + + // Parse the maximum profile `maxp` table. + function parseMaxpTable(data, start) { + var maxp = {}; + var p = new parse.Parser(data, start); + maxp.version = p.parseVersion(); + maxp.numGlyphs = p.parseUShort(); + if (maxp.version === 1.0) { + maxp.maxPoints = p.parseUShort(); + maxp.maxContours = p.parseUShort(); + maxp.maxCompositePoints = p.parseUShort(); + maxp.maxCompositeContours = p.parseUShort(); + maxp.maxZones = p.parseUShort(); + maxp.maxTwilightPoints = p.parseUShort(); + maxp.maxStorage = p.parseUShort(); + maxp.maxFunctionDefs = p.parseUShort(); + maxp.maxInstructionDefs = p.parseUShort(); + maxp.maxStackElements = p.parseUShort(); + maxp.maxSizeOfInstructions = p.parseUShort(); + maxp.maxComponentElements = p.parseUShort(); + maxp.maxComponentDepth = p.parseUShort(); + } + + return maxp; + } + + function makeMaxpTable(numGlyphs) { + return new table.Table('maxp', [ + { name: 'version', type: 'FIXED', value: 0x00005000 }, + { name: 'numGlyphs', type: 'USHORT', value: numGlyphs } + ]); + } + + var maxp = { parse: parseMaxpTable, make: makeMaxpTable }; + + // The `name` naming table. + + // NameIDs for the name table. + var nameTableNames = [ + 'copyright', // 0 + 'fontFamily', // 1 + 'fontSubfamily', // 2 + 'uniqueID', // 3 + 'fullName', // 4 + 'version', // 5 + 'postScriptName', // 6 + 'trademark', // 7 + 'manufacturer', // 8 + 'designer', // 9 + 'description', // 10 + 'manufacturerURL', // 11 + 'designerURL', // 12 + 'license', // 13 + 'licenseURL', // 14 + 'reserved', // 15 + 'preferredFamily', // 16 + 'preferredSubfamily', // 17 + 'compatibleFullName', // 18 + 'sampleText', // 19 + 'postScriptFindFontName', // 20 + 'wwsFamily', // 21 + 'wwsSubfamily' // 22 + ]; + + var macLanguages = { + 0: 'en', + 1: 'fr', + 2: 'de', + 3: 'it', + 4: 'nl', + 5: 'sv', + 6: 'es', + 7: 'da', + 8: 'pt', + 9: 'no', + 10: 'he', + 11: 'ja', + 12: 'ar', + 13: 'fi', + 14: 'el', + 15: 'is', + 16: 'mt', + 17: 'tr', + 18: 'hr', + 19: 'zh-Hant', + 20: 'ur', + 21: 'hi', + 22: 'th', + 23: 'ko', + 24: 'lt', + 25: 'pl', + 26: 'hu', + 27: 'es', + 28: 'lv', + 29: 'se', + 30: 'fo', + 31: 'fa', + 32: 'ru', + 33: 'zh', + 34: 'nl-BE', + 35: 'ga', + 36: 'sq', + 37: 'ro', + 38: 'cz', + 39: 'sk', + 40: 'si', + 41: 'yi', + 42: 'sr', + 43: 'mk', + 44: 'bg', + 45: 'uk', + 46: 'be', + 47: 'uz', + 48: 'kk', + 49: 'az-Cyrl', + 50: 'az-Arab', + 51: 'hy', + 52: 'ka', + 53: 'mo', + 54: 'ky', + 55: 'tg', + 56: 'tk', + 57: 'mn-CN', + 58: 'mn', + 59: 'ps', + 60: 'ks', + 61: 'ku', + 62: 'sd', + 63: 'bo', + 64: 'ne', + 65: 'sa', + 66: 'mr', + 67: 'bn', + 68: 'as', + 69: 'gu', + 70: 'pa', + 71: 'or', + 72: 'ml', + 73: 'kn', + 74: 'ta', + 75: 'te', + 76: 'si', + 77: 'my', + 78: 'km', + 79: 'lo', + 80: 'vi', + 81: 'id', + 82: 'tl', + 83: 'ms', + 84: 'ms-Arab', + 85: 'am', + 86: 'ti', + 87: 'om', + 88: 'so', + 89: 'sw', + 90: 'rw', + 91: 'rn', + 92: 'ny', + 93: 'mg', + 94: 'eo', + 128: 'cy', + 129: 'eu', + 130: 'ca', + 131: 'la', + 132: 'qu', + 133: 'gn', + 134: 'ay', + 135: 'tt', + 136: 'ug', + 137: 'dz', + 138: 'jv', + 139: 'su', + 140: 'gl', + 141: 'af', + 142: 'br', + 143: 'iu', + 144: 'gd', + 145: 'gv', + 146: 'ga', + 147: 'to', + 148: 'el-polyton', + 149: 'kl', + 150: 'az', + 151: 'nn' + }; + + // MacOS language ID โ†’ MacOS script ID + // + // Note that the script ID is not sufficient to determine what encoding + // to use in TrueType files. For some languages, MacOS used a modification + // of a mainstream script. For example, an Icelandic name would be stored + // with smRoman in the TrueType naming table, but the actual encoding + // is a special Icelandic version of the normal Macintosh Roman encoding. + // As another example, Inuktitut uses an 8-bit encoding for Canadian Aboriginal + // Syllables but MacOS had run out of available script codes, so this was + // done as a (pretty radical) "modification" of Ethiopic. + // + // http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/Readme.txt + var macLanguageToScript = { + 0: 0, // langEnglish โ†’ smRoman + 1: 0, // langFrench โ†’ smRoman + 2: 0, // langGerman โ†’ smRoman + 3: 0, // langItalian โ†’ smRoman + 4: 0, // langDutch โ†’ smRoman + 5: 0, // langSwedish โ†’ smRoman + 6: 0, // langSpanish โ†’ smRoman + 7: 0, // langDanish โ†’ smRoman + 8: 0, // langPortuguese โ†’ smRoman + 9: 0, // langNorwegian โ†’ smRoman + 10: 5, // langHebrew โ†’ smHebrew + 11: 1, // langJapanese โ†’ smJapanese + 12: 4, // langArabic โ†’ smArabic + 13: 0, // langFinnish โ†’ smRoman + 14: 6, // langGreek โ†’ smGreek + 15: 0, // langIcelandic โ†’ smRoman (modified) + 16: 0, // langMaltese โ†’ smRoman + 17: 0, // langTurkish โ†’ smRoman (modified) + 18: 0, // langCroatian โ†’ smRoman (modified) + 19: 2, // langTradChinese โ†’ smTradChinese + 20: 4, // langUrdu โ†’ smArabic + 21: 9, // langHindi โ†’ smDevanagari + 22: 21, // langThai โ†’ smThai + 23: 3, // langKorean โ†’ smKorean + 24: 29, // langLithuanian โ†’ smCentralEuroRoman + 25: 29, // langPolish โ†’ smCentralEuroRoman + 26: 29, // langHungarian โ†’ smCentralEuroRoman + 27: 29, // langEstonian โ†’ smCentralEuroRoman + 28: 29, // langLatvian โ†’ smCentralEuroRoman + 29: 0, // langSami โ†’ smRoman + 30: 0, // langFaroese โ†’ smRoman (modified) + 31: 4, // langFarsi โ†’ smArabic (modified) + 32: 7, // langRussian โ†’ smCyrillic + 33: 25, // langSimpChinese โ†’ smSimpChinese + 34: 0, // langFlemish โ†’ smRoman + 35: 0, // langIrishGaelic โ†’ smRoman (modified) + 36: 0, // langAlbanian โ†’ smRoman + 37: 0, // langRomanian โ†’ smRoman (modified) + 38: 29, // langCzech โ†’ smCentralEuroRoman + 39: 29, // langSlovak โ†’ smCentralEuroRoman + 40: 0, // langSlovenian โ†’ smRoman (modified) + 41: 5, // langYiddish โ†’ smHebrew + 42: 7, // langSerbian โ†’ smCyrillic + 43: 7, // langMacedonian โ†’ smCyrillic + 44: 7, // langBulgarian โ†’ smCyrillic + 45: 7, // langUkrainian โ†’ smCyrillic (modified) + 46: 7, // langByelorussian โ†’ smCyrillic + 47: 7, // langUzbek โ†’ smCyrillic + 48: 7, // langKazakh โ†’ smCyrillic + 49: 7, // langAzerbaijani โ†’ smCyrillic + 50: 4, // langAzerbaijanAr โ†’ smArabic + 51: 24, // langArmenian โ†’ smArmenian + 52: 23, // langGeorgian โ†’ smGeorgian + 53: 7, // langMoldavian โ†’ smCyrillic + 54: 7, // langKirghiz โ†’ smCyrillic + 55: 7, // langTajiki โ†’ smCyrillic + 56: 7, // langTurkmen โ†’ smCyrillic + 57: 27, // langMongolian โ†’ smMongolian + 58: 7, // langMongolianCyr โ†’ smCyrillic + 59: 4, // langPashto โ†’ smArabic + 60: 4, // langKurdish โ†’ smArabic + 61: 4, // langKashmiri โ†’ smArabic + 62: 4, // langSindhi โ†’ smArabic + 63: 26, // langTibetan โ†’ smTibetan + 64: 9, // langNepali โ†’ smDevanagari + 65: 9, // langSanskrit โ†’ smDevanagari + 66: 9, // langMarathi โ†’ smDevanagari + 67: 13, // langBengali โ†’ smBengali + 68: 13, // langAssamese โ†’ smBengali + 69: 11, // langGujarati โ†’ smGujarati + 70: 10, // langPunjabi โ†’ smGurmukhi + 71: 12, // langOriya โ†’ smOriya + 72: 17, // langMalayalam โ†’ smMalayalam + 73: 16, // langKannada โ†’ smKannada + 74: 14, // langTamil โ†’ smTamil + 75: 15, // langTelugu โ†’ smTelugu + 76: 18, // langSinhalese โ†’ smSinhalese + 77: 19, // langBurmese โ†’ smBurmese + 78: 20, // langKhmer โ†’ smKhmer + 79: 22, // langLao โ†’ smLao + 80: 30, // langVietnamese โ†’ smVietnamese + 81: 0, // langIndonesian โ†’ smRoman + 82: 0, // langTagalog โ†’ smRoman + 83: 0, // langMalayRoman โ†’ smRoman + 84: 4, // langMalayArabic โ†’ smArabic + 85: 28, // langAmharic โ†’ smEthiopic + 86: 28, // langTigrinya โ†’ smEthiopic + 87: 28, // langOromo โ†’ smEthiopic + 88: 0, // langSomali โ†’ smRoman + 89: 0, // langSwahili โ†’ smRoman + 90: 0, // langKinyarwanda โ†’ smRoman + 91: 0, // langRundi โ†’ smRoman + 92: 0, // langNyanja โ†’ smRoman + 93: 0, // langMalagasy โ†’ smRoman + 94: 0, // langEsperanto โ†’ smRoman + 128: 0, // langWelsh โ†’ smRoman (modified) + 129: 0, // langBasque โ†’ smRoman + 130: 0, // langCatalan โ†’ smRoman + 131: 0, // langLatin โ†’ smRoman + 132: 0, // langQuechua โ†’ smRoman + 133: 0, // langGuarani โ†’ smRoman + 134: 0, // langAymara โ†’ smRoman + 135: 7, // langTatar โ†’ smCyrillic + 136: 4, // langUighur โ†’ smArabic + 137: 26, // langDzongkha โ†’ smTibetan + 138: 0, // langJavaneseRom โ†’ smRoman + 139: 0, // langSundaneseRom โ†’ smRoman + 140: 0, // langGalician โ†’ smRoman + 141: 0, // langAfrikaans โ†’ smRoman + 142: 0, // langBreton โ†’ smRoman (modified) + 143: 28, // langInuktitut โ†’ smEthiopic (modified) + 144: 0, // langScottishGaelic โ†’ smRoman (modified) + 145: 0, // langManxGaelic โ†’ smRoman (modified) + 146: 0, // langIrishGaelicScript โ†’ smRoman (modified) + 147: 0, // langTongan โ†’ smRoman + 148: 6, // langGreekAncient โ†’ smRoman + 149: 0, // langGreenlandic โ†’ smRoman + 150: 0, // langAzerbaijanRoman โ†’ smRoman + 151: 0 // langNynorsk โ†’ smRoman + }; + + // While Microsoft indicates a region/country for all its language + // IDs, we omit the region code if it's equal to the "most likely + // region subtag" according to Unicode CLDR. For scripts, we omit + // the subtag if it is equal to the Suppress-Script entry in the + // IANA language subtag registry for IETF BCP 47. + // + // For example, Microsoft states that its language code 0x041A is + // Croatian in Croatia. We transform this to the BCP 47 language code 'hr' + // and not 'hr-HR' because Croatia is the default country for Croatian, + // according to Unicode CLDR. As another example, Microsoft states + // that 0x101A is Croatian (Latin) in Bosnia-Herzegovina. We transform + // this to 'hr-BA' and not 'hr-Latn-BA' because Latin is the default script + // for the Croatian language, according to IANA. + // + // http://www.unicode.org/cldr/charts/latest/supplemental/likely_subtags.html + // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry + var windowsLanguages = { + 0x0436: 'af', + 0x041c: 'sq', + 0x0484: 'gsw', + 0x045e: 'am', + 0x1401: 'ar-DZ', + 0x3c01: 'ar-BH', + 0x0c01: 'ar', + 0x0801: 'ar-IQ', + 0x2c01: 'ar-JO', + 0x3401: 'ar-KW', + 0x3001: 'ar-LB', + 0x1001: 'ar-LY', + 0x1801: 'ary', + 0x2001: 'ar-OM', + 0x4001: 'ar-QA', + 0x0401: 'ar-SA', + 0x2801: 'ar-SY', + 0x1c01: 'aeb', + 0x3801: 'ar-AE', + 0x2401: 'ar-YE', + 0x042b: 'hy', + 0x044d: 'as', + 0x082c: 'az-Cyrl', + 0x042c: 'az', + 0x046d: 'ba', + 0x042d: 'eu', + 0x0423: 'be', + 0x0845: 'bn', + 0x0445: 'bn-IN', + 0x201a: 'bs-Cyrl', + 0x141a: 'bs', + 0x047e: 'br', + 0x0402: 'bg', + 0x0403: 'ca', + 0x0c04: 'zh-HK', + 0x1404: 'zh-MO', + 0x0804: 'zh', + 0x1004: 'zh-SG', + 0x0404: 'zh-TW', + 0x0483: 'co', + 0x041a: 'hr', + 0x101a: 'hr-BA', + 0x0405: 'cs', + 0x0406: 'da', + 0x048c: 'prs', + 0x0465: 'dv', + 0x0813: 'nl-BE', + 0x0413: 'nl', + 0x0c09: 'en-AU', + 0x2809: 'en-BZ', + 0x1009: 'en-CA', + 0x2409: 'en-029', + 0x4009: 'en-IN', + 0x1809: 'en-IE', + 0x2009: 'en-JM', + 0x4409: 'en-MY', + 0x1409: 'en-NZ', + 0x3409: 'en-PH', + 0x4809: 'en-SG', + 0x1c09: 'en-ZA', + 0x2c09: 'en-TT', + 0x0809: 'en-GB', + 0x0409: 'en', + 0x3009: 'en-ZW', + 0x0425: 'et', + 0x0438: 'fo', + 0x0464: 'fil', + 0x040b: 'fi', + 0x080c: 'fr-BE', + 0x0c0c: 'fr-CA', + 0x040c: 'fr', + 0x140c: 'fr-LU', + 0x180c: 'fr-MC', + 0x100c: 'fr-CH', + 0x0462: 'fy', + 0x0456: 'gl', + 0x0437: 'ka', + 0x0c07: 'de-AT', + 0x0407: 'de', + 0x1407: 'de-LI', + 0x1007: 'de-LU', + 0x0807: 'de-CH', + 0x0408: 'el', + 0x046f: 'kl', + 0x0447: 'gu', + 0x0468: 'ha', + 0x040d: 'he', + 0x0439: 'hi', + 0x040e: 'hu', + 0x040f: 'is', + 0x0470: 'ig', + 0x0421: 'id', + 0x045d: 'iu', + 0x085d: 'iu-Latn', + 0x083c: 'ga', + 0x0434: 'xh', + 0x0435: 'zu', + 0x0410: 'it', + 0x0810: 'it-CH', + 0x0411: 'ja', + 0x044b: 'kn', + 0x043f: 'kk', + 0x0453: 'km', + 0x0486: 'quc', + 0x0487: 'rw', + 0x0441: 'sw', + 0x0457: 'kok', + 0x0412: 'ko', + 0x0440: 'ky', + 0x0454: 'lo', + 0x0426: 'lv', + 0x0427: 'lt', + 0x082e: 'dsb', + 0x046e: 'lb', + 0x042f: 'mk', + 0x083e: 'ms-BN', + 0x043e: 'ms', + 0x044c: 'ml', + 0x043a: 'mt', + 0x0481: 'mi', + 0x047a: 'arn', + 0x044e: 'mr', + 0x047c: 'moh', + 0x0450: 'mn', + 0x0850: 'mn-CN', + 0x0461: 'ne', + 0x0414: 'nb', + 0x0814: 'nn', + 0x0482: 'oc', + 0x0448: 'or', + 0x0463: 'ps', + 0x0415: 'pl', + 0x0416: 'pt', + 0x0816: 'pt-PT', + 0x0446: 'pa', + 0x046b: 'qu-BO', + 0x086b: 'qu-EC', + 0x0c6b: 'qu', + 0x0418: 'ro', + 0x0417: 'rm', + 0x0419: 'ru', + 0x243b: 'smn', + 0x103b: 'smj-NO', + 0x143b: 'smj', + 0x0c3b: 'se-FI', + 0x043b: 'se', + 0x083b: 'se-SE', + 0x203b: 'sms', + 0x183b: 'sma-NO', + 0x1c3b: 'sms', + 0x044f: 'sa', + 0x1c1a: 'sr-Cyrl-BA', + 0x0c1a: 'sr', + 0x181a: 'sr-Latn-BA', + 0x081a: 'sr-Latn', + 0x046c: 'nso', + 0x0432: 'tn', + 0x045b: 'si', + 0x041b: 'sk', + 0x0424: 'sl', + 0x2c0a: 'es-AR', + 0x400a: 'es-BO', + 0x340a: 'es-CL', + 0x240a: 'es-CO', + 0x140a: 'es-CR', + 0x1c0a: 'es-DO', + 0x300a: 'es-EC', + 0x440a: 'es-SV', + 0x100a: 'es-GT', + 0x480a: 'es-HN', + 0x080a: 'es-MX', + 0x4c0a: 'es-NI', + 0x180a: 'es-PA', + 0x3c0a: 'es-PY', + 0x280a: 'es-PE', + 0x500a: 'es-PR', + + // Microsoft has defined two different language codes for + // โ€œSpanish with modern sortingโ€ and โ€œSpanish with traditional + // sortingโ€. This makes sense for collation APIs, and it would be + // possible to express this in BCP 47 language tags via Unicode + // extensions (eg., es-u-co-trad is Spanish with traditional + // sorting). However, for storing names in fonts, the distinction + // does not make sense, so we give โ€œesโ€ in both cases. + 0x0c0a: 'es', + 0x040a: 'es', + + 0x540a: 'es-US', + 0x380a: 'es-UY', + 0x200a: 'es-VE', + 0x081d: 'sv-FI', + 0x041d: 'sv', + 0x045a: 'syr', + 0x0428: 'tg', + 0x085f: 'tzm', + 0x0449: 'ta', + 0x0444: 'tt', + 0x044a: 'te', + 0x041e: 'th', + 0x0451: 'bo', + 0x041f: 'tr', + 0x0442: 'tk', + 0x0480: 'ug', + 0x0422: 'uk', + 0x042e: 'hsb', + 0x0420: 'ur', + 0x0843: 'uz-Cyrl', + 0x0443: 'uz', + 0x042a: 'vi', + 0x0452: 'cy', + 0x0488: 'wo', + 0x0485: 'sah', + 0x0478: 'ii', + 0x046a: 'yo' + }; + + // Returns a IETF BCP 47 language code, for example 'zh-Hant' + // for 'Chinese in the traditional script'. + function getLanguageCode(platformID, languageID, ltag) { + switch (platformID) { + case 0: // Unicode + if (languageID === 0xffff) { + return 'und'; + } else if (ltag) { + return ltag[languageID]; + } + + break; + + case 1: // Macintosh + return macLanguages[languageID]; + + case 3: // Windows + return windowsLanguages[languageID]; + } + + return undefined; + } + + var utf16 = 'utf-16'; + + // MacOS script ID โ†’ encoding. This table stores the default case, + // which can be overridden by macLanguageEncodings. + var macScriptEncodings = { + 0: 'macintosh', // smRoman + 1: 'x-mac-japanese', // smJapanese + 2: 'x-mac-chinesetrad', // smTradChinese + 3: 'x-mac-korean', // smKorean + 6: 'x-mac-greek', // smGreek + 7: 'x-mac-cyrillic', // smCyrillic + 9: 'x-mac-devanagai', // smDevanagari + 10: 'x-mac-gurmukhi', // smGurmukhi + 11: 'x-mac-gujarati', // smGujarati + 12: 'x-mac-oriya', // smOriya + 13: 'x-mac-bengali', // smBengali + 14: 'x-mac-tamil', // smTamil + 15: 'x-mac-telugu', // smTelugu + 16: 'x-mac-kannada', // smKannada + 17: 'x-mac-malayalam', // smMalayalam + 18: 'x-mac-sinhalese', // smSinhalese + 19: 'x-mac-burmese', // smBurmese + 20: 'x-mac-khmer', // smKhmer + 21: 'x-mac-thai', // smThai + 22: 'x-mac-lao', // smLao + 23: 'x-mac-georgian', // smGeorgian + 24: 'x-mac-armenian', // smArmenian + 25: 'x-mac-chinesesimp', // smSimpChinese + 26: 'x-mac-tibetan', // smTibetan + 27: 'x-mac-mongolian', // smMongolian + 28: 'x-mac-ethiopic', // smEthiopic + 29: 'x-mac-ce', // smCentralEuroRoman + 30: 'x-mac-vietnamese', // smVietnamese + 31: 'x-mac-extarabic' // smExtArabic + }; + + // MacOS language ID โ†’ encoding. This table stores the exceptional + // cases, which override macScriptEncodings. For writing MacOS naming + // tables, we need to emit a MacOS script ID. Therefore, we cannot + // merge macScriptEncodings into macLanguageEncodings. + // + // http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/Readme.txt + var macLanguageEncodings = { + 15: 'x-mac-icelandic', // langIcelandic + 17: 'x-mac-turkish', // langTurkish + 18: 'x-mac-croatian', // langCroatian + 24: 'x-mac-ce', // langLithuanian + 25: 'x-mac-ce', // langPolish + 26: 'x-mac-ce', // langHungarian + 27: 'x-mac-ce', // langEstonian + 28: 'x-mac-ce', // langLatvian + 30: 'x-mac-icelandic', // langFaroese + 37: 'x-mac-romanian', // langRomanian + 38: 'x-mac-ce', // langCzech + 39: 'x-mac-ce', // langSlovak + 40: 'x-mac-ce', // langSlovenian + 143: 'x-mac-inuit', // langInuktitut + 146: 'x-mac-gaelic' // langIrishGaelicScript + }; + + function getEncoding(platformID, encodingID, languageID) { + switch (platformID) { + case 0: // Unicode + return utf16; + + case 1: // Apple Macintosh + return ( + macLanguageEncodings[languageID] || macScriptEncodings[encodingID] + ); + + case 3: // Microsoft Windows + if (encodingID === 1 || encodingID === 10) { + return utf16; + } + + break; + } + + return undefined; + } + + // Parse the naming `name` table. + // FIXME: Format 1 additional fields are not supported yet. + // ltag is the content of the `ltag' table, such as ['en', 'zh-Hans', 'de-CH-1904']. + function parseNameTable(data, start, ltag) { + var name = {}; + var p = new parse.Parser(data, start); + var format = p.parseUShort(); + var count = p.parseUShort(); + var stringOffset = p.offset + p.parseUShort(); + for (var i = 0; i < count; i++) { + var platformID = p.parseUShort(); + var encodingID = p.parseUShort(); + var languageID = p.parseUShort(); + var nameID = p.parseUShort(); + var property = nameTableNames[nameID] || nameID; + var byteLength = p.parseUShort(); + var offset = p.parseUShort(); + var language = getLanguageCode(platformID, languageID, ltag); + var encoding = getEncoding(platformID, encodingID, languageID); + if (encoding !== undefined && language !== undefined) { + var text = void 0; + if (encoding === utf16) { + text = decode.UTF16(data, stringOffset + offset, byteLength); + } else { + text = decode.MACSTRING( + data, + stringOffset + offset, + byteLength, + encoding + ); + } + + if (text) { + var translations = name[property]; + if (translations === undefined) { + translations = name[property] = {}; + } + + translations[language] = text; + } + } + } + + var langTagCount = 0; + if (format === 1) { + // FIXME: Also handle Microsoft's 'name' table 1. + langTagCount = p.parseUShort(); + } + + return name; + } + + // {23: 'foo'} โ†’ {'foo': 23} + // ['bar', 'baz'] โ†’ {'bar': 0, 'baz': 1} + function reverseDict(dict) { + var result = {}; + for (var key in dict) { + result[dict[key]] = parseInt(key); + } + + return result; + } + + function makeNameRecord( + platformID, + encodingID, + languageID, + nameID, + length, + offset + ) { + return new table.Record('NameRecord', [ + { name: 'platformID', type: 'USHORT', value: platformID }, + { name: 'encodingID', type: 'USHORT', value: encodingID }, + { name: 'languageID', type: 'USHORT', value: languageID }, + { name: 'nameID', type: 'USHORT', value: nameID }, + { name: 'length', type: 'USHORT', value: length }, + { name: 'offset', type: 'USHORT', value: offset } + ]); + } + + // Finds the position of needle in haystack, or -1 if not there. + // Like String.indexOf(), but for arrays. + function findSubArray(needle, haystack) { + var needleLength = needle.length; + var limit = haystack.length - needleLength + 1; + + loop: for (var pos = 0; pos < limit; pos++) { + for (; pos < limit; pos++) { + for (var k = 0; k < needleLength; k++) { + if (haystack[pos + k] !== needle[k]) { + continue loop; + } + } + + return pos; + } + } + + return -1; + } + + function addStringToPool(s, pool) { + var offset = findSubArray(s, pool); + if (offset < 0) { + offset = pool.length; + var i = 0; + var len = s.length; + for (; i < len; ++i) { + pool.push(s[i]); + } + } + + return offset; + } + + function makeNameTable(names, ltag) { + var nameID; + var nameIDs = []; + + var namesWithNumericKeys = {}; + var nameTableIds = reverseDict(nameTableNames); + for (var key in names) { + var id = nameTableIds[key]; + if (id === undefined) { + id = key; + } + + nameID = parseInt(id); + + if (isNaN(nameID)) { + throw new Error( + 'Name table entry "' + + key + + '" does not exist, see nameTableNames for complete list.' + ); + } + + namesWithNumericKeys[nameID] = names[key]; + nameIDs.push(nameID); + } + + var macLanguageIds = reverseDict(macLanguages); + var windowsLanguageIds = reverseDict(windowsLanguages); + + var nameRecords = []; + var stringPool = []; + + for (var i = 0; i < nameIDs.length; i++) { + nameID = nameIDs[i]; + var translations = namesWithNumericKeys[nameID]; + for (var lang in translations) { + var text = translations[lang]; + + // For MacOS, we try to emit the name in the form that was introduced + // in the initial version of the TrueType spec (in the late 1980s). + // However, this can fail for various reasons: the requested BCP 47 + // language code might not have an old-style Mac equivalent; + // we might not have a codec for the needed character encoding; + // or the name might contain characters that cannot be expressed + // in the old-style Macintosh encoding. In case of failure, we emit + // the name in a more modern fashion (Unicode encoding with BCP 47 + // language tags) that is recognized by MacOS 10.5, released in 2009. + // If fonts were only read by operating systems, we could simply + // emit all names in the modern form; this would be much easier. + // However, there are many applications and libraries that read + // 'name' tables directly, and these will usually only recognize + // the ancient form (silently skipping the unrecognized names). + var macPlatform = 1; // Macintosh + var macLanguage = macLanguageIds[lang]; + var macScript = macLanguageToScript[macLanguage]; + var macEncoding = getEncoding(macPlatform, macScript, macLanguage); + var macName = encode.MACSTRING(text, macEncoding); + if (macName === undefined) { + macPlatform = 0; // Unicode + macLanguage = ltag.indexOf(lang); + if (macLanguage < 0) { + macLanguage = ltag.length; + ltag.push(lang); + } + + macScript = 4; // Unicode 2.0 and later + macName = encode.UTF16(text); + } + + var macNameOffset = addStringToPool(macName, stringPool); + nameRecords.push( + makeNameRecord( + macPlatform, + macScript, + macLanguage, + nameID, + macName.length, + macNameOffset + ) + ); + + var winLanguage = windowsLanguageIds[lang]; + if (winLanguage !== undefined) { + var winName = encode.UTF16(text); + var winNameOffset = addStringToPool(winName, stringPool); + nameRecords.push( + makeNameRecord( + 3, + 1, + winLanguage, + nameID, + winName.length, + winNameOffset + ) + ); + } + } + } + + nameRecords.sort(function(a, b) { + return ( + a.platformID - b.platformID || + a.encodingID - b.encodingID || + a.languageID - b.languageID || + a.nameID - b.nameID + ); + }); + + var t = new table.Table('name', [ + { name: 'format', type: 'USHORT', value: 0 }, + { name: 'count', type: 'USHORT', value: nameRecords.length }, + { + name: 'stringOffset', + type: 'USHORT', + value: 6 + nameRecords.length * 12 + } + ]); + + for (var r = 0; r < nameRecords.length; r++) { + t.fields.push({ + name: 'record_' + r, + type: 'RECORD', + value: nameRecords[r] + }); + } + + t.fields.push({ name: 'strings', type: 'LITERAL', value: stringPool }); + return t; + } + + var _name = { parse: parseNameTable, make: makeNameTable }; + + // The `OS/2` table contains metrics required in OpenType fonts. + + var unicodeRanges = [ + { begin: 0x0000, end: 0x007f }, // Basic Latin + { begin: 0x0080, end: 0x00ff }, // Latin-1 Supplement + { begin: 0x0100, end: 0x017f }, // Latin Extended-A + { begin: 0x0180, end: 0x024f }, // Latin Extended-B + { begin: 0x0250, end: 0x02af }, // IPA Extensions + { begin: 0x02b0, end: 0x02ff }, // Spacing Modifier Letters + { begin: 0x0300, end: 0x036f }, // Combining Diacritical Marks + { begin: 0x0370, end: 0x03ff }, // Greek and Coptic + { begin: 0x2c80, end: 0x2cff }, // Coptic + { begin: 0x0400, end: 0x04ff }, // Cyrillic + { begin: 0x0530, end: 0x058f }, // Armenian + { begin: 0x0590, end: 0x05ff }, // Hebrew + { begin: 0xa500, end: 0xa63f }, // Vai + { begin: 0x0600, end: 0x06ff }, // Arabic + { begin: 0x07c0, end: 0x07ff }, // NKo + { begin: 0x0900, end: 0x097f }, // Devanagari + { begin: 0x0980, end: 0x09ff }, // Bengali + { begin: 0x0a00, end: 0x0a7f }, // Gurmukhi + { begin: 0x0a80, end: 0x0aff }, // Gujarati + { begin: 0x0b00, end: 0x0b7f }, // Oriya + { begin: 0x0b80, end: 0x0bff }, // Tamil + { begin: 0x0c00, end: 0x0c7f }, // Telugu + { begin: 0x0c80, end: 0x0cff }, // Kannada + { begin: 0x0d00, end: 0x0d7f }, // Malayalam + { begin: 0x0e00, end: 0x0e7f }, // Thai + { begin: 0x0e80, end: 0x0eff }, // Lao + { begin: 0x10a0, end: 0x10ff }, // Georgian + { begin: 0x1b00, end: 0x1b7f }, // Balinese + { begin: 0x1100, end: 0x11ff }, // Hangul Jamo + { begin: 0x1e00, end: 0x1eff }, // Latin Extended Additional + { begin: 0x1f00, end: 0x1fff }, // Greek Extended + { begin: 0x2000, end: 0x206f }, // General Punctuation + { begin: 0x2070, end: 0x209f }, // Superscripts And Subscripts + { begin: 0x20a0, end: 0x20cf }, // Currency Symbol + { begin: 0x20d0, end: 0x20ff }, // Combining Diacritical Marks For Symbols + { begin: 0x2100, end: 0x214f }, // Letterlike Symbols + { begin: 0x2150, end: 0x218f }, // Number Forms + { begin: 0x2190, end: 0x21ff }, // Arrows + { begin: 0x2200, end: 0x22ff }, // Mathematical Operators + { begin: 0x2300, end: 0x23ff }, // Miscellaneous Technical + { begin: 0x2400, end: 0x243f }, // Control Pictures + { begin: 0x2440, end: 0x245f }, // Optical Character Recognition + { begin: 0x2460, end: 0x24ff }, // Enclosed Alphanumerics + { begin: 0x2500, end: 0x257f }, // Box Drawing + { begin: 0x2580, end: 0x259f }, // Block Elements + { begin: 0x25a0, end: 0x25ff }, // Geometric Shapes + { begin: 0x2600, end: 0x26ff }, // Miscellaneous Symbols + { begin: 0x2700, end: 0x27bf }, // Dingbats + { begin: 0x3000, end: 0x303f }, // CJK Symbols And Punctuation + { begin: 0x3040, end: 0x309f }, // Hiragana + { begin: 0x30a0, end: 0x30ff }, // Katakana + { begin: 0x3100, end: 0x312f }, // Bopomofo + { begin: 0x3130, end: 0x318f }, // Hangul Compatibility Jamo + { begin: 0xa840, end: 0xa87f }, // Phags-pa + { begin: 0x3200, end: 0x32ff }, // Enclosed CJK Letters And Months + { begin: 0x3300, end: 0x33ff }, // CJK Compatibility + { begin: 0xac00, end: 0xd7af }, // Hangul Syllables + { begin: 0xd800, end: 0xdfff }, // Non-Plane 0 * + { begin: 0x10900, end: 0x1091f }, // Phoenicia + { begin: 0x4e00, end: 0x9fff }, // CJK Unified Ideographs + { begin: 0xe000, end: 0xf8ff }, // Private Use Area (plane 0) + { begin: 0x31c0, end: 0x31ef }, // CJK Strokes + { begin: 0xfb00, end: 0xfb4f }, // Alphabetic Presentation Forms + { begin: 0xfb50, end: 0xfdff }, // Arabic Presentation Forms-A + { begin: 0xfe20, end: 0xfe2f }, // Combining Half Marks + { begin: 0xfe10, end: 0xfe1f }, // Vertical Forms + { begin: 0xfe50, end: 0xfe6f }, // Small Form Variants + { begin: 0xfe70, end: 0xfeff }, // Arabic Presentation Forms-B + { begin: 0xff00, end: 0xffef }, // Halfwidth And Fullwidth Forms + { begin: 0xfff0, end: 0xffff }, // Specials + { begin: 0x0f00, end: 0x0fff }, // Tibetan + { begin: 0x0700, end: 0x074f }, // Syriac + { begin: 0x0780, end: 0x07bf }, // Thaana + { begin: 0x0d80, end: 0x0dff }, // Sinhala + { begin: 0x1000, end: 0x109f }, // Myanmar + { begin: 0x1200, end: 0x137f }, // Ethiopic + { begin: 0x13a0, end: 0x13ff }, // Cherokee + { begin: 0x1400, end: 0x167f }, // Unified Canadian Aboriginal Syllabics + { begin: 0x1680, end: 0x169f }, // Ogham + { begin: 0x16a0, end: 0x16ff }, // Runic + { begin: 0x1780, end: 0x17ff }, // Khmer + { begin: 0x1800, end: 0x18af }, // Mongolian + { begin: 0x2800, end: 0x28ff }, // Braille Patterns + { begin: 0xa000, end: 0xa48f }, // Yi Syllables + { begin: 0x1700, end: 0x171f }, // Tagalog + { begin: 0x10300, end: 0x1032f }, // Old Italic + { begin: 0x10330, end: 0x1034f }, // Gothic + { begin: 0x10400, end: 0x1044f }, // Deseret + { begin: 0x1d000, end: 0x1d0ff }, // Byzantine Musical Symbols + { begin: 0x1d400, end: 0x1d7ff }, // Mathematical Alphanumeric Symbols + { begin: 0xff000, end: 0xffffd }, // Private Use (plane 15) + { begin: 0xfe00, end: 0xfe0f }, // Variation Selectors + { begin: 0xe0000, end: 0xe007f }, // Tags + { begin: 0x1900, end: 0x194f }, // Limbu + { begin: 0x1950, end: 0x197f }, // Tai Le + { begin: 0x1980, end: 0x19df }, // New Tai Lue + { begin: 0x1a00, end: 0x1a1f }, // Buginese + { begin: 0x2c00, end: 0x2c5f }, // Glagolitic + { begin: 0x2d30, end: 0x2d7f }, // Tifinagh + { begin: 0x4dc0, end: 0x4dff }, // Yijing Hexagram Symbols + { begin: 0xa800, end: 0xa82f }, // Syloti Nagri + { begin: 0x10000, end: 0x1007f }, // Linear B Syllabary + { begin: 0x10140, end: 0x1018f }, // Ancient Greek Numbers + { begin: 0x10380, end: 0x1039f }, // Ugaritic + { begin: 0x103a0, end: 0x103df }, // Old Persian + { begin: 0x10450, end: 0x1047f }, // Shavian + { begin: 0x10480, end: 0x104af }, // Osmanya + { begin: 0x10800, end: 0x1083f }, // Cypriot Syllabary + { begin: 0x10a00, end: 0x10a5f }, // Kharoshthi + { begin: 0x1d300, end: 0x1d35f }, // Tai Xuan Jing Symbols + { begin: 0x12000, end: 0x123ff }, // Cuneiform + { begin: 0x1d360, end: 0x1d37f }, // Counting Rod Numerals + { begin: 0x1b80, end: 0x1bbf }, // Sundanese + { begin: 0x1c00, end: 0x1c4f }, // Lepcha + { begin: 0x1c50, end: 0x1c7f }, // Ol Chiki + { begin: 0xa880, end: 0xa8df }, // Saurashtra + { begin: 0xa900, end: 0xa92f }, // Kayah Li + { begin: 0xa930, end: 0xa95f }, // Rejang + { begin: 0xaa00, end: 0xaa5f }, // Cham + { begin: 0x10190, end: 0x101cf }, // Ancient Symbols + { begin: 0x101d0, end: 0x101ff }, // Phaistos Disc + { begin: 0x102a0, end: 0x102df }, // Carian + { begin: 0x1f030, end: 0x1f09f } // Domino Tiles + ]; + + function getUnicodeRange(unicode) { + for (var i = 0; i < unicodeRanges.length; i += 1) { + var range = unicodeRanges[i]; + if (unicode >= range.begin && unicode < range.end) { + return i; + } + } + + return -1; + } + + // Parse the OS/2 and Windows metrics `OS/2` table + function parseOS2Table(data, start) { + var os2 = {}; + var p = new parse.Parser(data, start); + os2.version = p.parseUShort(); + os2.xAvgCharWidth = p.parseShort(); + os2.usWeightClass = p.parseUShort(); + os2.usWidthClass = p.parseUShort(); + os2.fsType = p.parseUShort(); + os2.ySubscriptXSize = p.parseShort(); + os2.ySubscriptYSize = p.parseShort(); + os2.ySubscriptXOffset = p.parseShort(); + os2.ySubscriptYOffset = p.parseShort(); + os2.ySuperscriptXSize = p.parseShort(); + os2.ySuperscriptYSize = p.parseShort(); + os2.ySuperscriptXOffset = p.parseShort(); + os2.ySuperscriptYOffset = p.parseShort(); + os2.yStrikeoutSize = p.parseShort(); + os2.yStrikeoutPosition = p.parseShort(); + os2.sFamilyClass = p.parseShort(); + os2.panose = []; + for (var i = 0; i < 10; i++) { + os2.panose[i] = p.parseByte(); + } + + os2.ulUnicodeRange1 = p.parseULong(); + os2.ulUnicodeRange2 = p.parseULong(); + os2.ulUnicodeRange3 = p.parseULong(); + os2.ulUnicodeRange4 = p.parseULong(); + os2.achVendID = String.fromCharCode( + p.parseByte(), + p.parseByte(), + p.parseByte(), + p.parseByte() + ); + os2.fsSelection = p.parseUShort(); + os2.usFirstCharIndex = p.parseUShort(); + os2.usLastCharIndex = p.parseUShort(); + os2.sTypoAscender = p.parseShort(); + os2.sTypoDescender = p.parseShort(); + os2.sTypoLineGap = p.parseShort(); + os2.usWinAscent = p.parseUShort(); + os2.usWinDescent = p.parseUShort(); + if (os2.version >= 1) { + os2.ulCodePageRange1 = p.parseULong(); + os2.ulCodePageRange2 = p.parseULong(); + } + + if (os2.version >= 2) { + os2.sxHeight = p.parseShort(); + os2.sCapHeight = p.parseShort(); + os2.usDefaultChar = p.parseUShort(); + os2.usBreakChar = p.parseUShort(); + os2.usMaxContent = p.parseUShort(); + } + + return os2; + } + + function makeOS2Table(options) { + return new table.Table( + 'OS/2', + [ + { name: 'version', type: 'USHORT', value: 0x0003 }, + { name: 'xAvgCharWidth', type: 'SHORT', value: 0 }, + { name: 'usWeightClass', type: 'USHORT', value: 0 }, + { name: 'usWidthClass', type: 'USHORT', value: 0 }, + { name: 'fsType', type: 'USHORT', value: 0 }, + { name: 'ySubscriptXSize', type: 'SHORT', value: 650 }, + { name: 'ySubscriptYSize', type: 'SHORT', value: 699 }, + { name: 'ySubscriptXOffset', type: 'SHORT', value: 0 }, + { name: 'ySubscriptYOffset', type: 'SHORT', value: 140 }, + { name: 'ySuperscriptXSize', type: 'SHORT', value: 650 }, + { name: 'ySuperscriptYSize', type: 'SHORT', value: 699 }, + { name: 'ySuperscriptXOffset', type: 'SHORT', value: 0 }, + { name: 'ySuperscriptYOffset', type: 'SHORT', value: 479 }, + { name: 'yStrikeoutSize', type: 'SHORT', value: 49 }, + { name: 'yStrikeoutPosition', type: 'SHORT', value: 258 }, + { name: 'sFamilyClass', type: 'SHORT', value: 0 }, + { name: 'bFamilyType', type: 'BYTE', value: 0 }, + { name: 'bSerifStyle', type: 'BYTE', value: 0 }, + { name: 'bWeight', type: 'BYTE', value: 0 }, + { name: 'bProportion', type: 'BYTE', value: 0 }, + { name: 'bContrast', type: 'BYTE', value: 0 }, + { name: 'bStrokeVariation', type: 'BYTE', value: 0 }, + { name: 'bArmStyle', type: 'BYTE', value: 0 }, + { name: 'bLetterform', type: 'BYTE', value: 0 }, + { name: 'bMidline', type: 'BYTE', value: 0 }, + { name: 'bXHeight', type: 'BYTE', value: 0 }, + { name: 'ulUnicodeRange1', type: 'ULONG', value: 0 }, + { name: 'ulUnicodeRange2', type: 'ULONG', value: 0 }, + { name: 'ulUnicodeRange3', type: 'ULONG', value: 0 }, + { name: 'ulUnicodeRange4', type: 'ULONG', value: 0 }, + { name: 'achVendID', type: 'CHARARRAY', value: 'XXXX' }, + { name: 'fsSelection', type: 'USHORT', value: 0 }, + { name: 'usFirstCharIndex', type: 'USHORT', value: 0 }, + { name: 'usLastCharIndex', type: 'USHORT', value: 0 }, + { name: 'sTypoAscender', type: 'SHORT', value: 0 }, + { name: 'sTypoDescender', type: 'SHORT', value: 0 }, + { name: 'sTypoLineGap', type: 'SHORT', value: 0 }, + { name: 'usWinAscent', type: 'USHORT', value: 0 }, + { name: 'usWinDescent', type: 'USHORT', value: 0 }, + { name: 'ulCodePageRange1', type: 'ULONG', value: 0 }, + { name: 'ulCodePageRange2', type: 'ULONG', value: 0 }, + { name: 'sxHeight', type: 'SHORT', value: 0 }, + { name: 'sCapHeight', type: 'SHORT', value: 0 }, + { name: 'usDefaultChar', type: 'USHORT', value: 0 }, + { name: 'usBreakChar', type: 'USHORT', value: 0 }, + { name: 'usMaxContext', type: 'USHORT', value: 0 } + ], + options + ); + } + + var os2 = { + parse: parseOS2Table, + make: makeOS2Table, + unicodeRanges: unicodeRanges, + getUnicodeRange: getUnicodeRange + }; + + // The `post` table stores additional PostScript information, such as glyph names. + + // Parse the PostScript `post` table + function parsePostTable(data, start) { + var post = {}; + var p = new parse.Parser(data, start); + post.version = p.parseVersion(); + post.italicAngle = p.parseFixed(); + post.underlinePosition = p.parseShort(); + post.underlineThickness = p.parseShort(); + post.isFixedPitch = p.parseULong(); + post.minMemType42 = p.parseULong(); + post.maxMemType42 = p.parseULong(); + post.minMemType1 = p.parseULong(); + post.maxMemType1 = p.parseULong(); + switch (post.version) { + case 1: + post.names = standardNames.slice(); + break; + case 2: + post.numberOfGlyphs = p.parseUShort(); + post.glyphNameIndex = new Array(post.numberOfGlyphs); + for (var i = 0; i < post.numberOfGlyphs; i++) { + post.glyphNameIndex[i] = p.parseUShort(); + } + + post.names = []; + for (var i$1 = 0; i$1 < post.numberOfGlyphs; i$1++) { + if (post.glyphNameIndex[i$1] >= standardNames.length) { + var nameLength = p.parseChar(); + post.names.push(p.parseString(nameLength)); + } + } + + break; + case 2.5: + post.numberOfGlyphs = p.parseUShort(); + post.offset = new Array(post.numberOfGlyphs); + for (var i$2 = 0; i$2 < post.numberOfGlyphs; i$2++) { + post.offset[i$2] = p.parseChar(); + } + + break; + } + return post; + } + + function makePostTable() { + return new table.Table('post', [ + { name: 'version', type: 'FIXED', value: 0x00030000 }, + { name: 'italicAngle', type: 'FIXED', value: 0 }, + { name: 'underlinePosition', type: 'FWORD', value: 0 }, + { name: 'underlineThickness', type: 'FWORD', value: 0 }, + { name: 'isFixedPitch', type: 'ULONG', value: 0 }, + { name: 'minMemType42', type: 'ULONG', value: 0 }, + { name: 'maxMemType42', type: 'ULONG', value: 0 }, + { name: 'minMemType1', type: 'ULONG', value: 0 }, + { name: 'maxMemType1', type: 'ULONG', value: 0 } + ]); + } + + var post = { parse: parsePostTable, make: makePostTable }; + + // The `GSUB` table contains ligatures, among other things. + + var subtableParsers = new Array(9); // subtableParsers[0] is unused + + // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#SS + subtableParsers[1] = function parseLookup1() { + var start = this.offset + this.relativeOffset; + var substFormat = this.parseUShort(); + if (substFormat === 1) { + return { + substFormat: 1, + coverage: this.parsePointer(Parser.coverage), + deltaGlyphId: this.parseUShort() + }; + } else if (substFormat === 2) { + return { + substFormat: 2, + coverage: this.parsePointer(Parser.coverage), + substitute: this.parseOffset16List() + }; + } + check.assert( + false, + '0x' + start.toString(16) + ': lookup type 1 format must be 1 or 2.' + ); + }; + + // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#MS + subtableParsers[2] = function parseLookup2() { + var substFormat = this.parseUShort(); + check.argument( + substFormat === 1, + 'GSUB Multiple Substitution Subtable identifier-format must be 1' + ); + return { + substFormat: substFormat, + coverage: this.parsePointer(Parser.coverage), + sequences: this.parseListOfLists() + }; + }; + + // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#AS + subtableParsers[3] = function parseLookup3() { + var substFormat = this.parseUShort(); + check.argument( + substFormat === 1, + 'GSUB Alternate Substitution Subtable identifier-format must be 1' + ); + return { + substFormat: substFormat, + coverage: this.parsePointer(Parser.coverage), + alternateSets: this.parseListOfLists() + }; + }; + + // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#LS + subtableParsers[4] = function parseLookup4() { + var substFormat = this.parseUShort(); + check.argument( + substFormat === 1, + 'GSUB ligature table identifier-format must be 1' + ); + return { + substFormat: substFormat, + coverage: this.parsePointer(Parser.coverage), + ligatureSets: this.parseListOfLists(function() { + return { + ligGlyph: this.parseUShort(), + components: this.parseUShortList(this.parseUShort() - 1) + }; + }) + }; + }; + + var lookupRecordDesc = { + sequenceIndex: Parser.uShort, + lookupListIndex: Parser.uShort + }; + + // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#CSF + subtableParsers[5] = function parseLookup5() { + var start = this.offset + this.relativeOffset; + var substFormat = this.parseUShort(); + + if (substFormat === 1) { + return { + substFormat: substFormat, + coverage: this.parsePointer(Parser.coverage), + ruleSets: this.parseListOfLists(function() { + var glyphCount = this.parseUShort(); + var substCount = this.parseUShort(); + return { + input: this.parseUShortList(glyphCount - 1), + lookupRecords: this.parseRecordList(substCount, lookupRecordDesc) + }; + }) + }; + } else if (substFormat === 2) { + return { + substFormat: substFormat, + coverage: this.parsePointer(Parser.coverage), + classDef: this.parsePointer(Parser.classDef), + classSets: this.parseListOfLists(function() { + var glyphCount = this.parseUShort(); + var substCount = this.parseUShort(); + return { + classes: this.parseUShortList(glyphCount - 1), + lookupRecords: this.parseRecordList(substCount, lookupRecordDesc) + }; + }) + }; + } else if (substFormat === 3) { + var glyphCount = this.parseUShort(); + var substCount = this.parseUShort(); + return { + substFormat: substFormat, + coverages: this.parseList(glyphCount, Parser.pointer(Parser.coverage)), + lookupRecords: this.parseRecordList(substCount, lookupRecordDesc) + }; + } + check.assert( + false, + '0x' + start.toString(16) + ': lookup type 5 format must be 1, 2 or 3.' + ); + }; + + // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#CC + subtableParsers[6] = function parseLookup6() { + var start = this.offset + this.relativeOffset; + var substFormat = this.parseUShort(); + if (substFormat === 1) { + return { + substFormat: 1, + coverage: this.parsePointer(Parser.coverage), + chainRuleSets: this.parseListOfLists(function() { + return { + backtrack: this.parseUShortList(), + input: this.parseUShortList(this.parseShort() - 1), + lookahead: this.parseUShortList(), + lookupRecords: this.parseRecordList(lookupRecordDesc) + }; + }) + }; + } else if (substFormat === 2) { + return { + substFormat: 2, + coverage: this.parsePointer(Parser.coverage), + backtrackClassDef: this.parsePointer(Parser.classDef), + inputClassDef: this.parsePointer(Parser.classDef), + lookaheadClassDef: this.parsePointer(Parser.classDef), + chainClassSet: this.parseListOfLists(function() { + return { + backtrack: this.parseUShortList(), + input: this.parseUShortList(this.parseShort() - 1), + lookahead: this.parseUShortList(), + lookupRecords: this.parseRecordList(lookupRecordDesc) + }; + }) + }; + } else if (substFormat === 3) { + return { + substFormat: 3, + backtrackCoverage: this.parseList(Parser.pointer(Parser.coverage)), + inputCoverage: this.parseList(Parser.pointer(Parser.coverage)), + lookaheadCoverage: this.parseList(Parser.pointer(Parser.coverage)), + lookupRecords: this.parseRecordList(lookupRecordDesc) + }; + } + check.assert( + false, + '0x' + start.toString(16) + ': lookup type 6 format must be 1, 2 or 3.' + ); + }; + + // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#ES + subtableParsers[7] = function parseLookup7() { + // Extension Substitution subtable + var substFormat = this.parseUShort(); + check.argument( + substFormat === 1, + 'GSUB Extension Substitution subtable identifier-format must be 1' + ); + var extensionLookupType = this.parseUShort(); + var extensionParser = new Parser( + this.data, + this.offset + this.parseULong() + ); + return { + substFormat: 1, + lookupType: extensionLookupType, + extension: subtableParsers[extensionLookupType].call(extensionParser) + }; + }; + + // https://www.microsoft.com/typography/OTSPEC/GSUB.htm#RCCS + subtableParsers[8] = function parseLookup8() { + var substFormat = this.parseUShort(); + check.argument( + substFormat === 1, + 'GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1' + ); + return { + substFormat: substFormat, + coverage: this.parsePointer(Parser.coverage), + backtrackCoverage: this.parseList(Parser.pointer(Parser.coverage)), + lookaheadCoverage: this.parseList(Parser.pointer(Parser.coverage)), + substitutes: this.parseUShortList() + }; + }; + + // https://www.microsoft.com/typography/OTSPEC/gsub.htm + function parseGsubTable(data, start) { + start = start || 0; + var p = new Parser(data, start); + var tableVersion = p.parseVersion(1); + check.argument( + tableVersion === 1 || tableVersion === 1.1, + 'Unsupported GSUB table version.' + ); + if (tableVersion === 1) { + return { + version: tableVersion, + scripts: p.parseScriptList(), + features: p.parseFeatureList(), + lookups: p.parseLookupList(subtableParsers) + }; + } else { + return { + version: tableVersion, + scripts: p.parseScriptList(), + features: p.parseFeatureList(), + lookups: p.parseLookupList(subtableParsers), + variations: p.parseFeatureVariationsList() + }; + } + } + + // GSUB Writing ////////////////////////////////////////////// + var subtableMakers = new Array(9); + + subtableMakers[1] = function makeLookup1(subtable) { + if (subtable.substFormat === 1) { + return new table.Table('substitutionTable', [ + { name: 'substFormat', type: 'USHORT', value: 1 }, + { + name: 'coverage', + type: 'TABLE', + value: new table.Coverage(subtable.coverage) + }, + { name: 'deltaGlyphID', type: 'USHORT', value: subtable.deltaGlyphId } + ]); + } else { + return new table.Table( + 'substitutionTable', + [ + { name: 'substFormat', type: 'USHORT', value: 2 }, + { + name: 'coverage', + type: 'TABLE', + value: new table.Coverage(subtable.coverage) + } + ].concat(table.ushortList('substitute', subtable.substitute)) + ); + } + check.fail('Lookup type 1 substFormat must be 1 or 2.'); + }; + + subtableMakers[3] = function makeLookup3(subtable) { + check.assert( + subtable.substFormat === 1, + 'Lookup type 3 substFormat must be 1.' + ); + return new table.Table( + 'substitutionTable', + [ + { name: 'substFormat', type: 'USHORT', value: 1 }, + { + name: 'coverage', + type: 'TABLE', + value: new table.Coverage(subtable.coverage) + } + ].concat( + table.tableList('altSet', subtable.alternateSets, function( + alternateSet + ) { + return new table.Table( + 'alternateSetTable', + table.ushortList('alternate', alternateSet) + ); + }) + ) + ); + }; + + subtableMakers[4] = function makeLookup4(subtable) { + check.assert( + subtable.substFormat === 1, + 'Lookup type 4 substFormat must be 1.' + ); + return new table.Table( + 'substitutionTable', + [ + { name: 'substFormat', type: 'USHORT', value: 1 }, + { + name: 'coverage', + type: 'TABLE', + value: new table.Coverage(subtable.coverage) + } + ].concat( + table.tableList('ligSet', subtable.ligatureSets, function(ligatureSet) { + return new table.Table( + 'ligatureSetTable', + table.tableList('ligature', ligatureSet, function(ligature) { + return new table.Table( + 'ligatureTable', + [ + { name: 'ligGlyph', type: 'USHORT', value: ligature.ligGlyph } + ].concat( + table.ushortList( + 'component', + ligature.components, + ligature.components.length + 1 + ) + ) + ); + }) + ); + }) + ) + ); + }; + + function makeGsubTable(gsub) { + return new table.Table('GSUB', [ + { name: 'version', type: 'ULONG', value: 0x10000 }, + { + name: 'scripts', + type: 'TABLE', + value: new table.ScriptList(gsub.scripts) + }, + { + name: 'features', + type: 'TABLE', + value: new table.FeatureList(gsub.features) + }, + { + name: 'lookups', + type: 'TABLE', + value: new table.LookupList(gsub.lookups, subtableMakers) + } + ]); + } + + var gsub = { parse: parseGsubTable, make: makeGsubTable }; + + // The `GPOS` table contains kerning pairs, among other things. + + // Parse the metadata `meta` table. + // https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6meta.html + function parseMetaTable(data, start) { + var p = new parse.Parser(data, start); + var tableVersion = p.parseULong(); + check.argument(tableVersion === 1, 'Unsupported META table version.'); + p.parseULong(); // flags - currently unused and set to 0 + p.parseULong(); // tableOffset + var numDataMaps = p.parseULong(); + + var tags = {}; + for (var i = 0; i < numDataMaps; i++) { + var tag = p.parseTag(); + var dataOffset = p.parseULong(); + var dataLength = p.parseULong(); + var text = decode.UTF8(data, start + dataOffset, dataLength); + + tags[tag] = text; + } + return tags; + } + + function makeMetaTable(tags) { + var numTags = Object.keys(tags).length; + var stringPool = ''; + var stringPoolOffset = 16 + numTags * 12; + + var result = new table.Table('meta', [ + { name: 'version', type: 'ULONG', value: 1 }, + { name: 'flags', type: 'ULONG', value: 0 }, + { name: 'offset', type: 'ULONG', value: stringPoolOffset }, + { name: 'numTags', type: 'ULONG', value: numTags } + ]); + + for (var tag in tags) { + var pos = stringPool.length; + stringPool += tags[tag]; + + result.fields.push({ name: 'tag ' + tag, type: 'TAG', value: tag }); + result.fields.push({ + name: 'offset ' + tag, + type: 'ULONG', + value: stringPoolOffset + pos + }); + result.fields.push({ + name: 'length ' + tag, + type: 'ULONG', + value: tags[tag].length + }); + } + + result.fields.push({ + name: 'stringPool', + type: 'CHARARRAY', + value: stringPool + }); + + return result; + } + + var meta = { parse: parseMetaTable, make: makeMetaTable }; + + // The `sfnt` wrapper provides organization for the tables in the font. + + function log2(v) { + return (Math.log(v) / Math.log(2)) | 0; + } + + function computeCheckSum(bytes) { + while (bytes.length % 4 !== 0) { + bytes.push(0); + } + + var sum = 0; + for (var i = 0; i < bytes.length; i += 4) { + sum += + (bytes[i] << 24) + + (bytes[i + 1] << 16) + + (bytes[i + 2] << 8) + + bytes[i + 3]; + } + + sum %= Math.pow(2, 32); + return sum; + } + + function makeTableRecord(tag, checkSum, offset, length) { + return new table.Record('Table Record', [ + { name: 'tag', type: 'TAG', value: tag !== undefined ? tag : '' }, + { + name: 'checkSum', + type: 'ULONG', + value: checkSum !== undefined ? checkSum : 0 + }, + { + name: 'offset', + type: 'ULONG', + value: offset !== undefined ? offset : 0 + }, + { + name: 'length', + type: 'ULONG', + value: length !== undefined ? length : 0 + } + ]); + } + + function makeSfntTable(tables) { + var sfnt = new table.Table('sfnt', [ + { name: 'version', type: 'TAG', value: 'OTTO' }, + { name: 'numTables', type: 'USHORT', value: 0 }, + { name: 'searchRange', type: 'USHORT', value: 0 }, + { name: 'entrySelector', type: 'USHORT', value: 0 }, + { name: 'rangeShift', type: 'USHORT', value: 0 } + ]); + sfnt.tables = tables; + sfnt.numTables = tables.length; + var highestPowerOf2 = Math.pow(2, log2(sfnt.numTables)); + sfnt.searchRange = 16 * highestPowerOf2; + sfnt.entrySelector = log2(highestPowerOf2); + sfnt.rangeShift = sfnt.numTables * 16 - sfnt.searchRange; + + var recordFields = []; + var tableFields = []; + + var offset = sfnt.sizeOf() + makeTableRecord().sizeOf() * sfnt.numTables; + while (offset % 4 !== 0) { + offset += 1; + tableFields.push({ name: 'padding', type: 'BYTE', value: 0 }); + } + + for (var i = 0; i < tables.length; i += 1) { + var t = tables[i]; + check.argument( + t.tableName.length === 4, + 'Table name' + t.tableName + ' is invalid.' + ); + var tableLength = t.sizeOf(); + var tableRecord = makeTableRecord( + t.tableName, + computeCheckSum(t.encode()), + offset, + tableLength + ); + recordFields.push({ + name: tableRecord.tag + ' Table Record', + type: 'RECORD', + value: tableRecord + }); + tableFields.push({ + name: t.tableName + ' table', + type: 'RECORD', + value: t + }); + offset += tableLength; + check.argument( + !isNaN(offset), + 'Something went wrong calculating the offset.' + ); + while (offset % 4 !== 0) { + offset += 1; + tableFields.push({ name: 'padding', type: 'BYTE', value: 0 }); + } + } + + // Table records need to be sorted alphabetically. + recordFields.sort(function(r1, r2) { + if (r1.value.tag > r2.value.tag) { + return 1; + } else { + return -1; + } + }); + + sfnt.fields = sfnt.fields.concat(recordFields); + sfnt.fields = sfnt.fields.concat(tableFields); + return sfnt; + } + + // Get the metrics for a character. If the string has more than one character + // this function returns metrics for the first available character. + // You can provide optional fallback metrics if no characters are available. + function metricsForChar(font, chars, notFoundMetrics) { + for (var i = 0; i < chars.length; i += 1) { + var glyphIndex = font.charToGlyphIndex(chars[i]); + if (glyphIndex > 0) { + var glyph = font.glyphs.get(glyphIndex); + return glyph.getMetrics(); + } + } + + return notFoundMetrics; + } + + function average(vs) { + var sum = 0; + for (var i = 0; i < vs.length; i += 1) { + sum += vs[i]; + } + + return sum / vs.length; + } + + // Convert the font object to a SFNT data structure. + // This structure contains all the necessary tables and metadata to create a binary OTF file. + function fontToSfntTable(font) { + var xMins = []; + var yMins = []; + var xMaxs = []; + var yMaxs = []; + var advanceWidths = []; + var leftSideBearings = []; + var rightSideBearings = []; + var firstCharIndex; + var lastCharIndex = 0; + var ulUnicodeRange1 = 0; + var ulUnicodeRange2 = 0; + var ulUnicodeRange3 = 0; + var ulUnicodeRange4 = 0; + + for (var i = 0; i < font.glyphs.length; i += 1) { + var glyph = font.glyphs.get(i); + var unicode = glyph.unicode | 0; + + if (isNaN(glyph.advanceWidth)) { + throw new Error( + 'Glyph ' + glyph.name + ' (' + i + '): advanceWidth is not a number.' + ); + } + + if (firstCharIndex > unicode || firstCharIndex === undefined) { + // ignore .notdef char + if (unicode > 0) { + firstCharIndex = unicode; + } + } + + if (lastCharIndex < unicode) { + lastCharIndex = unicode; + } + + var position = os2.getUnicodeRange(unicode); + if (position < 32) { + ulUnicodeRange1 |= 1 << position; + } else if (position < 64) { + ulUnicodeRange2 |= 1 << (position - 32); + } else if (position < 96) { + ulUnicodeRange3 |= 1 << (position - 64); + } else if (position < 123) { + ulUnicodeRange4 |= 1 << (position - 96); + } else { + throw new Error( + 'Unicode ranges bits > 123 are reserved for internal usage' + ); + } + // Skip non-important characters. + if (glyph.name === '.notdef') { + continue; + } + var metrics = glyph.getMetrics(); + xMins.push(metrics.xMin); + yMins.push(metrics.yMin); + xMaxs.push(metrics.xMax); + yMaxs.push(metrics.yMax); + leftSideBearings.push(metrics.leftSideBearing); + rightSideBearings.push(metrics.rightSideBearing); + advanceWidths.push(glyph.advanceWidth); + } + + var globals = { + xMin: Math.min.apply(null, xMins), + yMin: Math.min.apply(null, yMins), + xMax: Math.max.apply(null, xMaxs), + yMax: Math.max.apply(null, yMaxs), + advanceWidthMax: Math.max.apply(null, advanceWidths), + advanceWidthAvg: average(advanceWidths), + minLeftSideBearing: Math.min.apply(null, leftSideBearings), + maxLeftSideBearing: Math.max.apply(null, leftSideBearings), + minRightSideBearing: Math.min.apply(null, rightSideBearings) + }; + globals.ascender = font.ascender; + globals.descender = font.descender; + + var headTable = head.make({ + flags: 3, // 00000011 (baseline for font at y=0; left sidebearing point at x=0) + unitsPerEm: font.unitsPerEm, + xMin: globals.xMin, + yMin: globals.yMin, + xMax: globals.xMax, + yMax: globals.yMax, + lowestRecPPEM: 3, + createdTimestamp: font.createdTimestamp + }); + + var hheaTable = hhea.make({ + ascender: globals.ascender, + descender: globals.descender, + advanceWidthMax: globals.advanceWidthMax, + minLeftSideBearing: globals.minLeftSideBearing, + minRightSideBearing: globals.minRightSideBearing, + xMaxExtent: globals.maxLeftSideBearing + (globals.xMax - globals.xMin), + numberOfHMetrics: font.glyphs.length + }); + + var maxpTable = maxp.make(font.glyphs.length); + + var os2Table = os2.make({ + xAvgCharWidth: Math.round(globals.advanceWidthAvg), + usWeightClass: font.tables.os2.usWeightClass, + usWidthClass: font.tables.os2.usWidthClass, + usFirstCharIndex: firstCharIndex, + usLastCharIndex: lastCharIndex, + ulUnicodeRange1: ulUnicodeRange1, + ulUnicodeRange2: ulUnicodeRange2, + ulUnicodeRange3: ulUnicodeRange3, + ulUnicodeRange4: ulUnicodeRange4, + fsSelection: font.tables.os2.fsSelection, // REGULAR + // See http://typophile.com/node/13081 for more info on vertical metrics. + // We get metrics for typical characters (such as "x" for xHeight). + // We provide some fallback characters if characters are unavailable: their + // ordering was chosen experimentally. + sTypoAscender: globals.ascender, + sTypoDescender: globals.descender, + sTypoLineGap: 0, + usWinAscent: globals.yMax, + usWinDescent: Math.abs(globals.yMin), + ulCodePageRange1: 1, // FIXME: hard-code Latin 1 support for now + sxHeight: metricsForChar(font, 'xyvw', { + yMax: Math.round(globals.ascender / 2) + }).yMax, + sCapHeight: metricsForChar(font, 'HIKLEFJMNTZBDPRAGOQSUVWXY', globals) + .yMax, + usDefaultChar: font.hasChar(' ') ? 32 : 0, // Use space as the default character, if available. + usBreakChar: font.hasChar(' ') ? 32 : 0 // Use space as the break character, if available. + }); + + var hmtxTable = hmtx.make(font.glyphs); + var cmapTable = cmap.make(font.glyphs); + + var englishFamilyName = font.getEnglishName('fontFamily'); + var englishStyleName = font.getEnglishName('fontSubfamily'); + var englishFullName = englishFamilyName + ' ' + englishStyleName; + var postScriptName = font.getEnglishName('postScriptName'); + if (!postScriptName) { + postScriptName = + englishFamilyName.replace(/\s/g, '') + '-' + englishStyleName; + } + + var names = {}; + for (var n in font.names) { + names[n] = font.names[n]; + } + + if (!names.uniqueID) { + names.uniqueID = { + en: font.getEnglishName('manufacturer') + ':' + englishFullName + }; + } + + if (!names.postScriptName) { + names.postScriptName = { en: postScriptName }; + } + + if (!names.preferredFamily) { + names.preferredFamily = font.names.fontFamily; + } + + if (!names.preferredSubfamily) { + names.preferredSubfamily = font.names.fontSubfamily; + } + + var languageTags = []; + var nameTable = _name.make(names, languageTags); + var ltagTable = + languageTags.length > 0 ? ltag.make(languageTags) : undefined; + + var postTable = post.make(); + var cffTable = cff.make(font.glyphs, { + version: font.getEnglishName('version'), + fullName: englishFullName, + familyName: englishFamilyName, + weightName: englishStyleName, + postScriptName: postScriptName, + unitsPerEm: font.unitsPerEm, + fontBBox: [0, globals.yMin, globals.ascender, globals.advanceWidthMax] + }); + + var metaTable = + font.metas && Object.keys(font.metas).length > 0 + ? meta.make(font.metas) + : undefined; + + // The order does not matter because makeSfntTable() will sort them. + var tables = [ + headTable, + hheaTable, + maxpTable, + os2Table, + nameTable, + cmapTable, + postTable, + cffTable, + hmtxTable + ]; + if (ltagTable) { + tables.push(ltagTable); + } + // Optional tables + if (font.tables.gsub) { + tables.push(gsub.make(font.tables.gsub)); + } + if (metaTable) { + tables.push(metaTable); + } + + var sfntTable = makeSfntTable(tables); + + // Compute the font's checkSum and store it in head.checkSumAdjustment. + var bytes = sfntTable.encode(); + var checkSum = computeCheckSum(bytes); + var tableFields = sfntTable.fields; + var checkSumAdjusted = false; + for (var i$1 = 0; i$1 < tableFields.length; i$1 += 1) { + if (tableFields[i$1].name === 'head table') { + tableFields[i$1].value.checkSumAdjustment = 0xb1b0afba - checkSum; + checkSumAdjusted = true; + break; + } + } + + if (!checkSumAdjusted) { + throw new Error('Could not find head table with checkSum to adjust.'); + } + + return sfntTable; + } + + var sfnt = { + make: makeSfntTable, + fontToTable: fontToSfntTable, + computeCheckSum: computeCheckSum + }; + + // The Layout object is the prototype of Substitution objects, and provides + + function searchTag(arr, tag) { + /* jshint bitwise: false */ + var imin = 0; + var imax = arr.length - 1; + while (imin <= imax) { + var imid = (imin + imax) >>> 1; + var val = arr[imid].tag; + if (val === tag) { + return imid; + } else if (val < tag) { + imin = imid + 1; + } else { + imax = imid - 1; + } + } + // Not found: return -1-insertion point + return -imin - 1; + } + + function binSearch(arr, value) { + /* jshint bitwise: false */ + var imin = 0; + var imax = arr.length - 1; + while (imin <= imax) { + var imid = (imin + imax) >>> 1; + var val = arr[imid]; + if (val === value) { + return imid; + } else if (val < value) { + imin = imid + 1; + } else { + imax = imid - 1; + } + } + // Not found: return -1-insertion point + return -imin - 1; + } + + // binary search in a list of ranges (coverage, class definition) + function searchRange(ranges, value) { + // jshint bitwise: false + var range; + var imin = 0; + var imax = ranges.length - 1; + while (imin <= imax) { + var imid = (imin + imax) >>> 1; + range = ranges[imid]; + var start = range.start; + if (start === value) { + return range; + } else if (start < value) { + imin = imid + 1; + } else { + imax = imid - 1; + } + } + if (imin > 0) { + range = ranges[imin - 1]; + if (value > range.end) { + return 0; + } + return range; + } + } + + /** + * @exports opentype.Layout + * @class + */ + function Layout(font, tableName) { + this.font = font; + this.tableName = tableName; + } + + Layout.prototype = { + /** + * Binary search an object by "tag" property + * @instance + * @function searchTag + * @memberof opentype.Layout + * @param {Array} arr + * @param {string} tag + * @return {number} + */ + searchTag: searchTag, + + /** + * Binary search in a list of numbers + * @instance + * @function binSearch + * @memberof opentype.Layout + * @param {Array} arr + * @param {number} value + * @return {number} + */ + binSearch: binSearch, + + /** + * Get or create the Layout table (GSUB, GPOS etc). + * @param {boolean} create - Whether to create a new one. + * @return {Object} The GSUB or GPOS table. + */ + getTable: function(create) { + var layout = this.font.tables[this.tableName]; + if (!layout && create) { + layout = this.font.tables[this.tableName] = this.createDefaultTable(); + } + return layout; + }, + + /** + * Returns all scripts in the substitution table. + * @instance + * @return {Array} + */ + getScriptNames: function() { + var layout = this.getTable(); + if (!layout) { + return []; + } + return layout.scripts.map(function(script) { + return script.tag; + }); + }, + + /** + * Returns the best bet for a script name. + * Returns 'DFLT' if it exists. + * If not, returns 'latn' if it exists. + * If neither exist, returns undefined. + */ + getDefaultScriptName: function() { + var layout = this.getTable(); + if (!layout) { + return; + } + var hasLatn = false; + for (var i = 0; i < layout.scripts.length; i++) { + var name = layout.scripts[i].tag; + if (name === 'DFLT') { + return name; + } + if (name === 'latn') { + hasLatn = true; + } + } + if (hasLatn) { + return 'latn'; + } + }, + + /** + * Returns all LangSysRecords in the given script. + * @instance + * @param {string} [script='DFLT'] + * @param {boolean} create - forces the creation of this script table if it doesn't exist. + * @return {Object} An object with tag and script properties. + */ + getScriptTable: function(script, create) { + var layout = this.getTable(create); + if (layout) { + script = script || 'DFLT'; + var scripts = layout.scripts; + var pos = searchTag(layout.scripts, script); + if (pos >= 0) { + return scripts[pos].script; + } else if (create) { + var scr = { + tag: script, + script: { + defaultLangSys: { + reserved: 0, + reqFeatureIndex: 0xffff, + featureIndexes: [] + }, + langSysRecords: [] + } + }; + scripts.splice(-1 - pos, 0, scr); + return scr.script; + } + } + }, + + /** + * Returns a language system table + * @instance + * @param {string} [script='DFLT'] + * @param {string} [language='dlft'] + * @param {boolean} create - forces the creation of this langSysTable if it doesn't exist. + * @return {Object} + */ + getLangSysTable: function(script, language, create) { + var scriptTable = this.getScriptTable(script, create); + if (scriptTable) { + if (!language || language === 'dflt' || language === 'DFLT') { + return scriptTable.defaultLangSys; + } + var pos = searchTag(scriptTable.langSysRecords, language); + if (pos >= 0) { + return scriptTable.langSysRecords[pos].langSys; + } else if (create) { + var langSysRecord = { + tag: language, + langSys: { + reserved: 0, + reqFeatureIndex: 0xffff, + featureIndexes: [] + } + }; + scriptTable.langSysRecords.splice(-1 - pos, 0, langSysRecord); + return langSysRecord.langSys; + } + } + }, + + /** + * Get a specific feature table. + * @instance + * @param {string} [script='DFLT'] + * @param {string} [language='dlft'] + * @param {string} feature - One of the codes listed at https://www.microsoft.com/typography/OTSPEC/featurelist.htm + * @param {boolean} create - forces the creation of the feature table if it doesn't exist. + * @return {Object} + */ + getFeatureTable: function(script, language, feature, create) { + var langSysTable = this.getLangSysTable(script, language, create); + if (langSysTable) { + var featureRecord; + var featIndexes = langSysTable.featureIndexes; + var allFeatures = this.font.tables[this.tableName].features; + // The FeatureIndex array of indices is in arbitrary order, + // even if allFeatures is sorted alphabetically by feature tag. + for (var i = 0; i < featIndexes.length; i++) { + featureRecord = allFeatures[featIndexes[i]]; + if (featureRecord.tag === feature) { + return featureRecord.feature; + } + } + if (create) { + var index = allFeatures.length; + // Automatic ordering of features would require to shift feature indexes in the script list. + check.assert( + index === 0 || feature >= allFeatures[index - 1].tag, + 'Features must be added in alphabetical order.' + ); + featureRecord = { + tag: feature, + feature: { params: 0, lookupListIndexes: [] } + }; + allFeatures.push(featureRecord); + featIndexes.push(index); + return featureRecord.feature; + } + } + }, + + /** + * Get the lookup tables of a given type for a script/language/feature. + * @instance + * @param {string} [script='DFLT'] + * @param {string} [language='dlft'] + * @param {string} feature - 4-letter feature code + * @param {number} lookupType - 1 to 9 + * @param {boolean} create - forces the creation of the lookup table if it doesn't exist, with no subtables. + * @return {Object[]} + */ + getLookupTables: function(script, language, feature, lookupType, create) { + var featureTable = this.getFeatureTable( + script, + language, + feature, + create + ); + var tables = []; + if (featureTable) { + var lookupTable; + var lookupListIndexes = featureTable.lookupListIndexes; + var allLookups = this.font.tables[this.tableName].lookups; + // lookupListIndexes are in no particular order, so use naive search. + for (var i = 0; i < lookupListIndexes.length; i++) { + lookupTable = allLookups[lookupListIndexes[i]]; + if (lookupTable.lookupType === lookupType) { + tables.push(lookupTable); + } + } + if (tables.length === 0 && create) { + lookupTable = { + lookupType: lookupType, + lookupFlag: 0, + subtables: [], + markFilteringSet: undefined + }; + var index = allLookups.length; + allLookups.push(lookupTable); + lookupListIndexes.push(index); + return [lookupTable]; + } + } + return tables; + }, + + /** + * Find a glyph in a class definition table + * https://docs.microsoft.com/en-us/typography/opentype/spec/chapter2#class-definition-table + * @param {object} classDefTable - an OpenType Layout class definition table + * @param {number} glyphIndex - the index of the glyph to find + * @returns {number} -1 if not found + */ + getGlyphClass: function(classDefTable, glyphIndex) { + switch (classDefTable.format) { + case 1: + if ( + classDefTable.startGlyph <= glyphIndex && + glyphIndex < classDefTable.startGlyph + classDefTable.classes.length + ) { + return classDefTable.classes[glyphIndex - classDefTable.startGlyph]; + } + return 0; + case 2: + var range = searchRange(classDefTable.ranges, glyphIndex); + return range ? range.classId : 0; + } + }, + + /** + * Find a glyph in a coverage table + * https://docs.microsoft.com/en-us/typography/opentype/spec/chapter2#coverage-table + * @param {object} coverageTable - an OpenType Layout coverage table + * @param {number} glyphIndex - the index of the glyph to find + * @returns {number} -1 if not found + */ + getCoverageIndex: function(coverageTable, glyphIndex) { + switch (coverageTable.format) { + case 1: + var index = binSearch(coverageTable.glyphs, glyphIndex); + return index >= 0 ? index : -1; + case 2: + var range = searchRange(coverageTable.ranges, glyphIndex); + return range ? range.index + glyphIndex - range.start : -1; + } + }, + + /** + * Returns the list of glyph indexes of a coverage table. + * Format 1: the list is stored raw + * Format 2: compact list as range records. + * @instance + * @param {Object} coverageTable + * @return {Array} + */ + expandCoverage: function(coverageTable) { + if (coverageTable.format === 1) { + return coverageTable.glyphs; + } else { + var glyphs = []; + var ranges = coverageTable.ranges; + for (var i = 0; i < ranges.length; i++) { + var range = ranges[i]; + var start = range.start; + var end = range.end; + for (var j = start; j <= end; j++) { + glyphs.push(j); + } + } + return glyphs; + } + } + }; + + // The Position object provides utility methods to manipulate + + /** + * @exports opentype.Position + * @class + * @extends opentype.Layout + * @param {opentype.Font} + * @constructor + */ + function Position(font) { + Layout.call(this, font, 'gpos'); + } + + Position.prototype = Layout.prototype; + + /** + * Init some data for faster and easier access later. + */ + Position.prototype.init = function() { + var script = this.getDefaultScriptName(); + this.defaultKerningTables = this.getKerningTables(script); + }; + + /** + * Find a glyph pair in a list of lookup tables of type 2 and retrieve the xAdvance kerning value. + * + * @param {integer} leftIndex - left glyph index + * @param {integer} rightIndex - right glyph index + * @returns {integer} + */ + Position.prototype.getKerningValue = function( + kerningLookups, + leftIndex, + rightIndex + ) { + var this$1 = this; + + for (var i = 0; i < kerningLookups.length; i++) { + var subtables = kerningLookups[i].subtables; + for (var j = 0; j < subtables.length; j++) { + var subtable = subtables[j]; + var covIndex = this$1.getCoverageIndex(subtable.coverage, leftIndex); + if (covIndex < 0) { + continue; + } + switch (subtable.posFormat) { + case 1: + // Search Pair Adjustment Positioning Format 1 + var pairSet = subtable.pairSets[covIndex]; + for (var k = 0; k < pairSet.length; k++) { + var pair = pairSet[k]; + if (pair.secondGlyph === rightIndex) { + return (pair.value1 && pair.value1.xAdvance) || 0; + } + } + break; // left glyph found, not right glyph - try next subtable + case 2: + // Search Pair Adjustment Positioning Format 2 + var class1 = this$1.getGlyphClass(subtable.classDef1, leftIndex); + var class2 = this$1.getGlyphClass(subtable.classDef2, rightIndex); + var pair$1 = subtable.classRecords[class1][class2]; + return (pair$1.value1 && pair$1.value1.xAdvance) || 0; + } + } + } + return 0; + }; + + /** + * List all kerning lookup tables. + * + * @param {string} [script='DFLT'] - use font.position.getDefaultScriptName() for a better default value + * @param {string} [language='dflt'] + * @return {object[]} The list of kerning lookup tables (may be empty), or undefined if there is no GPOS table (and we should use the kern table) + */ + Position.prototype.getKerningTables = function(script, language) { + if (this.font.tables.gpos) { + return this.getLookupTables(script, language, 'kern', 2); + } + }; + + // The Substitution object provides utility methods to manipulate + + /** + * @exports opentype.Substitution + * @class + * @extends opentype.Layout + * @param {opentype.Font} + * @constructor + */ + function Substitution(font) { + Layout.call(this, font, 'gsub'); + } + + // Check if 2 arrays of primitives are equal. + function arraysEqual(ar1, ar2) { + var n = ar1.length; + if (n !== ar2.length) { + return false; + } + for (var i = 0; i < n; i++) { + if (ar1[i] !== ar2[i]) { + return false; + } + } + return true; + } + + // Find the first subtable of a lookup table in a particular format. + function getSubstFormat(lookupTable, format, defaultSubtable) { + var subtables = lookupTable.subtables; + for (var i = 0; i < subtables.length; i++) { + var subtable = subtables[i]; + if (subtable.substFormat === format) { + return subtable; + } + } + if (defaultSubtable) { + subtables.push(defaultSubtable); + return defaultSubtable; + } + return undefined; + } + + Substitution.prototype = Layout.prototype; + + /** + * Create a default GSUB table. + * @return {Object} gsub - The GSUB table. + */ + Substitution.prototype.createDefaultTable = function() { + // Generate a default empty GSUB table with just a DFLT script and dflt lang sys. + return { + version: 1, + scripts: [ + { + tag: 'DFLT', + script: { + defaultLangSys: { + reserved: 0, + reqFeatureIndex: 0xffff, + featureIndexes: [] + }, + langSysRecords: [] + } + } + ], + features: [], + lookups: [] + }; + }; + + /** + * List all single substitutions (lookup type 1) for a given script, language, and feature. + * @param {string} [script='DFLT'] + * @param {string} [language='dflt'] + * @param {string} feature - 4-character feature name ('aalt', 'salt', 'ss01'...) + * @return {Array} substitutions - The list of substitutions. + */ + Substitution.prototype.getSingle = function(feature, script, language) { + var this$1 = this; + + var substitutions = []; + var lookupTables = this.getLookupTables(script, language, feature, 1); + for (var idx = 0; idx < lookupTables.length; idx++) { + var subtables = lookupTables[idx].subtables; + for (var i = 0; i < subtables.length; i++) { + var subtable = subtables[i]; + var glyphs = this$1.expandCoverage(subtable.coverage); + var j = void 0; + if (subtable.substFormat === 1) { + var delta = subtable.deltaGlyphId; + for (j = 0; j < glyphs.length; j++) { + var glyph = glyphs[j]; + substitutions.push({ sub: glyph, by: glyph + delta }); + } + } else { + var substitute = subtable.substitute; + for (j = 0; j < glyphs.length; j++) { + substitutions.push({ sub: glyphs[j], by: substitute[j] }); + } + } + } + } + return substitutions; + }; + + /** + * List all alternates (lookup type 3) for a given script, language, and feature. + * @param {string} [script='DFLT'] + * @param {string} [language='dflt'] + * @param {string} feature - 4-character feature name ('aalt', 'salt'...) + * @return {Array} alternates - The list of alternates + */ + Substitution.prototype.getAlternates = function(feature, script, language) { + var this$1 = this; + + var alternates = []; + var lookupTables = this.getLookupTables(script, language, feature, 3); + for (var idx = 0; idx < lookupTables.length; idx++) { + var subtables = lookupTables[idx].subtables; + for (var i = 0; i < subtables.length; i++) { + var subtable = subtables[i]; + var glyphs = this$1.expandCoverage(subtable.coverage); + var alternateSets = subtable.alternateSets; + for (var j = 0; j < glyphs.length; j++) { + alternates.push({ sub: glyphs[j], by: alternateSets[j] }); + } + } + } + return alternates; + }; + + /** + * List all ligatures (lookup type 4) for a given script, language, and feature. + * The result is an array of ligature objects like { sub: [ids], by: id } + * @param {string} feature - 4-letter feature name ('liga', 'rlig', 'dlig'...) + * @param {string} [script='DFLT'] + * @param {string} [language='dflt'] + * @return {Array} ligatures - The list of ligatures. + */ + Substitution.prototype.getLigatures = function(feature, script, language) { + var this$1 = this; + + var ligatures = []; + var lookupTables = this.getLookupTables(script, language, feature, 4); + for (var idx = 0; idx < lookupTables.length; idx++) { + var subtables = lookupTables[idx].subtables; + for (var i = 0; i < subtables.length; i++) { + var subtable = subtables[i]; + var glyphs = this$1.expandCoverage(subtable.coverage); + var ligatureSets = subtable.ligatureSets; + for (var j = 0; j < glyphs.length; j++) { + var startGlyph = glyphs[j]; + var ligSet = ligatureSets[j]; + for (var k = 0; k < ligSet.length; k++) { + var lig = ligSet[k]; + ligatures.push({ + sub: [startGlyph].concat(lig.components), + by: lig.ligGlyph + }); + } + } + } + } + return ligatures; + }; + + /** + * Add or modify a single substitution (lookup type 1) + * Format 2, more flexible, is always used. + * @param {string} feature - 4-letter feature name ('liga', 'rlig', 'dlig'...) + * @param {Object} substitution - { sub: id, delta: number } for format 1 or { sub: id, by: id } for format 2. + * @param {string} [script='DFLT'] + * @param {string} [language='dflt'] + */ + Substitution.prototype.addSingle = function( + feature, + substitution, + script, + language + ) { + var lookupTable = this.getLookupTables( + script, + language, + feature, + 1, + true + )[0]; + var subtable = getSubstFormat(lookupTable, 2, { + // lookup type 1 subtable, format 2, coverage format 1 + substFormat: 2, + coverage: { format: 1, glyphs: [] }, + substitute: [] + }); + check.assert( + subtable.coverage.format === 1, + 'Ligature: unable to modify coverage table format ' + + subtable.coverage.format + ); + var coverageGlyph = substitution.sub; + var pos = this.binSearch(subtable.coverage.glyphs, coverageGlyph); + if (pos < 0) { + pos = -1 - pos; + subtable.coverage.glyphs.splice(pos, 0, coverageGlyph); + subtable.substitute.splice(pos, 0, 0); + } + subtable.substitute[pos] = substitution.by; + }; + + /** + * Add or modify an alternate substitution (lookup type 1) + * @param {string} feature - 4-letter feature name ('liga', 'rlig', 'dlig'...) + * @param {Object} substitution - { sub: id, by: [ids] } + * @param {string} [script='DFLT'] + * @param {string} [language='dflt'] + */ + Substitution.prototype.addAlternate = function( + feature, + substitution, + script, + language + ) { + var lookupTable = this.getLookupTables( + script, + language, + feature, + 3, + true + )[0]; + var subtable = getSubstFormat(lookupTable, 1, { + // lookup type 3 subtable, format 1, coverage format 1 + substFormat: 1, + coverage: { format: 1, glyphs: [] }, + alternateSets: [] + }); + check.assert( + subtable.coverage.format === 1, + 'Ligature: unable to modify coverage table format ' + + subtable.coverage.format + ); + var coverageGlyph = substitution.sub; + var pos = this.binSearch(subtable.coverage.glyphs, coverageGlyph); + if (pos < 0) { + pos = -1 - pos; + subtable.coverage.glyphs.splice(pos, 0, coverageGlyph); + subtable.alternateSets.splice(pos, 0, 0); + } + subtable.alternateSets[pos] = substitution.by; + }; + + /** + * Add a ligature (lookup type 4) + * Ligatures with more components must be stored ahead of those with fewer components in order to be found + * @param {string} feature - 4-letter feature name ('liga', 'rlig', 'dlig'...) + * @param {Object} ligature - { sub: [ids], by: id } + * @param {string} [script='DFLT'] + * @param {string} [language='dflt'] + */ + Substitution.prototype.addLigature = function( + feature, + ligature, + script, + language + ) { + var lookupTable = this.getLookupTables( + script, + language, + feature, + 4, + true + )[0]; + var subtable = lookupTable.subtables[0]; + if (!subtable) { + subtable = { + // lookup type 4 subtable, format 1, coverage format 1 + substFormat: 1, + coverage: { format: 1, glyphs: [] }, + ligatureSets: [] + }; + lookupTable.subtables[0] = subtable; + } + check.assert( + subtable.coverage.format === 1, + 'Ligature: unable to modify coverage table format ' + + subtable.coverage.format + ); + var coverageGlyph = ligature.sub[0]; + var ligComponents = ligature.sub.slice(1); + var ligatureTable = { + ligGlyph: ligature.by, + components: ligComponents + }; + var pos = this.binSearch(subtable.coverage.glyphs, coverageGlyph); + if (pos >= 0) { + // ligatureSet already exists + var ligatureSet = subtable.ligatureSets[pos]; + for (var i = 0; i < ligatureSet.length; i++) { + // If ligature already exists, return. + if (arraysEqual(ligatureSet[i].components, ligComponents)) { + return; + } + } + // ligature does not exist: add it. + ligatureSet.push(ligatureTable); + } else { + // Create a new ligatureSet and add coverage for the first glyph. + pos = -1 - pos; + subtable.coverage.glyphs.splice(pos, 0, coverageGlyph); + subtable.ligatureSets.splice(pos, 0, [ligatureTable]); + } + }; + + /** + * List all feature data for a given script and language. + * @param {string} feature - 4-letter feature name + * @param {string} [script='DFLT'] + * @param {string} [language='dflt'] + * @return {Array} substitutions - The list of substitutions. + */ + Substitution.prototype.getFeature = function(feature, script, language) { + if (/ss\d\d/.test(feature)) { + // ss01 - ss20 + return this.getSingle(feature, script, language); + } + switch (feature) { + case 'aalt': + case 'salt': + return this.getSingle(feature, script, language).concat( + this.getAlternates(feature, script, language) + ); + case 'dlig': + case 'liga': + case 'rlig': + return this.getLigatures(feature, script, language); + } + return undefined; + }; + + /** + * Add a substitution to a feature for a given script and language. + * @param {string} feature - 4-letter feature name + * @param {Object} sub - the substitution to add (an object like { sub: id or [ids], by: id or [ids] }) + * @param {string} [script='DFLT'] + * @param {string} [language='dflt'] + */ + Substitution.prototype.add = function(feature, sub, script, language) { + if (/ss\d\d/.test(feature)) { + // ss01 - ss20 + return this.addSingle(feature, sub, script, language); + } + switch (feature) { + case 'aalt': + case 'salt': + if (typeof sub.by === 'number') { + return this.addSingle(feature, sub, script, language); + } + return this.addAlternate(feature, sub, script, language); + case 'dlig': + case 'liga': + case 'rlig': + return this.addLigature(feature, sub, script, language); + } + return undefined; + }; + + function isBrowser() { + return typeof window !== 'undefined'; + } + + function nodeBufferToArrayBuffer(buffer) { + var ab = new ArrayBuffer(buffer.length); + var view = new Uint8Array(ab); + for (var i = 0; i < buffer.length; ++i) { + view[i] = buffer[i]; + } + + return ab; + } + + function arrayBufferToNodeBuffer(ab) { + var buffer = new Buffer(ab.byteLength); + var view = new Uint8Array(ab); + for (var i = 0; i < buffer.length; ++i) { + buffer[i] = view[i]; + } + + return buffer; + } + + function checkArgument(expression, message) { + if (!expression) { + throw message; + } + } + + // The `glyf` table describes the glyphs in TrueType outline format. + + // Parse the coordinate data for a glyph. + function parseGlyphCoordinate( + p, + flag, + previousValue, + shortVectorBitMask, + sameBitMask + ) { + var v; + if ((flag & shortVectorBitMask) > 0) { + // The coordinate is 1 byte long. + v = p.parseByte(); + // The `same` bit is re-used for short values to signify the sign of the value. + if ((flag & sameBitMask) === 0) { + v = -v; + } + + v = previousValue + v; + } else { + // The coordinate is 2 bytes long. + // If the `same` bit is set, the coordinate is the same as the previous coordinate. + if ((flag & sameBitMask) > 0) { + v = previousValue; + } else { + // Parse the coordinate as a signed 16-bit delta value. + v = previousValue + p.parseShort(); + } + } + + return v; + } + + // Parse a TrueType glyph. + function parseGlyph(glyph, data, start) { + var p = new parse.Parser(data, start); + glyph.numberOfContours = p.parseShort(); + glyph._xMin = p.parseShort(); + glyph._yMin = p.parseShort(); + glyph._xMax = p.parseShort(); + glyph._yMax = p.parseShort(); + var flags; + var flag; + + if (glyph.numberOfContours > 0) { + // This glyph is not a composite. + var endPointIndices = (glyph.endPointIndices = []); + for (var i = 0; i < glyph.numberOfContours; i += 1) { + endPointIndices.push(p.parseUShort()); + } + + glyph.instructionLength = p.parseUShort(); + glyph.instructions = []; + for (var i$1 = 0; i$1 < glyph.instructionLength; i$1 += 1) { + glyph.instructions.push(p.parseByte()); + } + + var numberOfCoordinates = endPointIndices[endPointIndices.length - 1] + 1; + flags = []; + for (var i$2 = 0; i$2 < numberOfCoordinates; i$2 += 1) { + flag = p.parseByte(); + flags.push(flag); + // If bit 3 is set, we repeat this flag n times, where n is the next byte. + if ((flag & 8) > 0) { + var repeatCount = p.parseByte(); + for (var j = 0; j < repeatCount; j += 1) { + flags.push(flag); + i$2 += 1; + } + } + } + + check.argument(flags.length === numberOfCoordinates, 'Bad flags.'); + + if (endPointIndices.length > 0) { + var points = []; + var point; + // X/Y coordinates are relative to the previous point, except for the first point which is relative to 0,0. + if (numberOfCoordinates > 0) { + for (var i$3 = 0; i$3 < numberOfCoordinates; i$3 += 1) { + flag = flags[i$3]; + point = {}; + point.onCurve = !!(flag & 1); + point.lastPointOfContour = endPointIndices.indexOf(i$3) >= 0; + points.push(point); + } + + var px = 0; + for (var i$4 = 0; i$4 < numberOfCoordinates; i$4 += 1) { + flag = flags[i$4]; + point = points[i$4]; + point.x = parseGlyphCoordinate(p, flag, px, 2, 16); + px = point.x; + } + + var py = 0; + for (var i$5 = 0; i$5 < numberOfCoordinates; i$5 += 1) { + flag = flags[i$5]; + point = points[i$5]; + point.y = parseGlyphCoordinate(p, flag, py, 4, 32); + py = point.y; + } + } + + glyph.points = points; + } else { + glyph.points = []; + } + } else if (glyph.numberOfContours === 0) { + glyph.points = []; + } else { + glyph.isComposite = true; + glyph.points = []; + glyph.components = []; + var moreComponents = true; + while (moreComponents) { + flags = p.parseUShort(); + var component = { + glyphIndex: p.parseUShort(), + xScale: 1, + scale01: 0, + scale10: 0, + yScale: 1, + dx: 0, + dy: 0 + }; + if ((flags & 1) > 0) { + // The arguments are words + if ((flags & 2) > 0) { + // values are offset + component.dx = p.parseShort(); + component.dy = p.parseShort(); + } else { + // values are matched points + component.matchedPoints = [p.parseUShort(), p.parseUShort()]; + } + } else { + // The arguments are bytes + if ((flags & 2) > 0) { + // values are offset + component.dx = p.parseChar(); + component.dy = p.parseChar(); + } else { + // values are matched points + component.matchedPoints = [p.parseByte(), p.parseByte()]; + } + } + + if ((flags & 8) > 0) { + // We have a scale + component.xScale = component.yScale = p.parseF2Dot14(); + } else if ((flags & 64) > 0) { + // We have an X / Y scale + component.xScale = p.parseF2Dot14(); + component.yScale = p.parseF2Dot14(); + } else if ((flags & 128) > 0) { + // We have a 2x2 transformation + component.xScale = p.parseF2Dot14(); + component.scale01 = p.parseF2Dot14(); + component.scale10 = p.parseF2Dot14(); + component.yScale = p.parseF2Dot14(); + } + + glyph.components.push(component); + moreComponents = !!(flags & 32); + } + if (flags & 0x100) { + // We have instructions + glyph.instructionLength = p.parseUShort(); + glyph.instructions = []; + for (var i$6 = 0; i$6 < glyph.instructionLength; i$6 += 1) { + glyph.instructions.push(p.parseByte()); + } + } + } + } + + // Transform an array of points and return a new array. + function transformPoints(points, transform) { + var newPoints = []; + for (var i = 0; i < points.length; i += 1) { + var pt = points[i]; + var newPt = { + x: transform.xScale * pt.x + transform.scale01 * pt.y + transform.dx, + y: transform.scale10 * pt.x + transform.yScale * pt.y + transform.dy, + onCurve: pt.onCurve, + lastPointOfContour: pt.lastPointOfContour + }; + newPoints.push(newPt); + } + + return newPoints; + } + + function getContours(points) { + var contours = []; + var currentContour = []; + for (var i = 0; i < points.length; i += 1) { + var pt = points[i]; + currentContour.push(pt); + if (pt.lastPointOfContour) { + contours.push(currentContour); + currentContour = []; + } + } + + check.argument( + currentContour.length === 0, + 'There are still points left in the current contour.' + ); + return contours; + } + + // Convert the TrueType glyph outline to a Path. + function getPath(points) { + var p = new Path(); + if (!points) { + return p; + } + + var contours = getContours(points); + + for (var contourIndex = 0; contourIndex < contours.length; ++contourIndex) { + var contour = contours[contourIndex]; + + var prev = null; + var curr = contour[contour.length - 1]; + var next = contour[0]; + + if (curr.onCurve) { + p.moveTo(curr.x, curr.y); + } else { + if (next.onCurve) { + p.moveTo(next.x, next.y); + } else { + // If both first and last points are off-curve, start at their middle. + var start = { + x: (curr.x + next.x) * 0.5, + y: (curr.y + next.y) * 0.5 + }; + p.moveTo(start.x, start.y); + } + } + + for (var i = 0; i < contour.length; ++i) { + prev = curr; + curr = next; + next = contour[(i + 1) % contour.length]; + + if (curr.onCurve) { + // This is a straight line. + p.lineTo(curr.x, curr.y); + } else { + var prev2 = prev; + var next2 = next; + + if (!prev.onCurve) { + prev2 = { x: (curr.x + prev.x) * 0.5, y: (curr.y + prev.y) * 0.5 }; + } + + if (!next.onCurve) { + next2 = { x: (curr.x + next.x) * 0.5, y: (curr.y + next.y) * 0.5 }; + } + + p.quadraticCurveTo(curr.x, curr.y, next2.x, next2.y); + } + } + + p.closePath(); + } + return p; + } + + function buildPath(glyphs, glyph) { + if (glyph.isComposite) { + for (var j = 0; j < glyph.components.length; j += 1) { + var component = glyph.components[j]; + var componentGlyph = glyphs.get(component.glyphIndex); + // Force the ttfGlyphLoader to parse the glyph. + componentGlyph.getPath(); + if (componentGlyph.points) { + var transformedPoints = void 0; + if (component.matchedPoints === undefined) { + // component positioned by offset + transformedPoints = transformPoints( + componentGlyph.points, + component + ); + } else { + // component positioned by matched points + if ( + component.matchedPoints[0] > glyph.points.length - 1 || + component.matchedPoints[1] > componentGlyph.points.length - 1 + ) { + throw Error('Matched points out of range in ' + glyph.name); + } + var firstPt = glyph.points[component.matchedPoints[0]]; + var secondPt = componentGlyph.points[component.matchedPoints[1]]; + var transform = { + xScale: component.xScale, + scale01: component.scale01, + scale10: component.scale10, + yScale: component.yScale, + dx: 0, + dy: 0 + }; + secondPt = transformPoints([secondPt], transform)[0]; + transform.dx = firstPt.x - secondPt.x; + transform.dy = firstPt.y - secondPt.y; + transformedPoints = transformPoints( + componentGlyph.points, + transform + ); + } + glyph.points = glyph.points.concat(transformedPoints); + } + } + } + + return getPath(glyph.points); + } + + // Parse all the glyphs according to the offsets from the `loca` table. + function parseGlyfTable(data, start, loca, font) { + var glyphs = new glyphset.GlyphSet(font); + + // The last element of the loca table is invalid. + for (var i = 0; i < loca.length - 1; i += 1) { + var offset = loca[i]; + var nextOffset = loca[i + 1]; + if (offset !== nextOffset) { + glyphs.push( + i, + glyphset.ttfGlyphLoader( + font, + i, + parseGlyph, + data, + start + offset, + buildPath + ) + ); + } else { + glyphs.push(i, glyphset.glyphLoader(font, i)); + } + } + + return glyphs; + } + + var glyf = { getPath: getPath, parse: parseGlyfTable }; + + /* A TrueType font hinting interpreter. + * + * (c) 2017 Axel Kittenberger + * + * This interpreter has been implemented according to this documentation: + * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM05/Chap5.html + * + * According to the documentation F24DOT6 values are used for pixels. + * That means calculation is 1/64 pixel accurate and uses integer operations. + * However, Javascript has floating point operations by default and only + * those are available. One could make a case to simulate the 1/64 accuracy + * exactly by truncating after every division operation + * (for example with << 0) to get pixel exactly results as other TrueType + * implementations. It may make sense since some fonts are pixel optimized + * by hand using DELTAP instructions. The current implementation doesn't + * and rather uses full floating point precision. + * + * xScale, yScale and rotation is currently ignored. + * + * A few non-trivial instructions are missing as I didn't encounter yet + * a font that used them to test a possible implementation. + * + * Some fonts seem to use undocumented features regarding the twilight zone. + * Only some of them are implemented as they were encountered. + * + * The exports.DEBUG statements are removed on the minified distribution file. + */ + + var instructionTable; + var exec; + var execGlyph; + var execComponent; + + /* + * Creates a hinting object. + * + * There ought to be exactly one + * for each truetype font that is used for hinting. + */ + function Hinting(font) { + // the font this hinting object is for + this.font = font; + + this.getCommands = function(hPoints) { + return glyf.getPath(hPoints).commands; + }; + + // cached states + this._fpgmState = this._prepState = undefined; + + // errorState + // 0 ... all okay + // 1 ... had an error in a glyf, + // continue working but stop spamming + // the console + // 2 ... error at prep, stop hinting at this ppem + // 3 ... error at fpeg, stop hinting for this font at all + this._errorState = 0; + } + + /* + * Not rounding. + */ + function roundOff(v) { + return v; + } + + /* + * Rounding to grid. + */ + function roundToGrid(v) { + //Rounding in TT is supposed to "symmetrical around zero" + return Math.sign(v) * Math.round(Math.abs(v)); + } + + /* + * Rounding to double grid. + */ + function roundToDoubleGrid(v) { + return Math.sign(v) * Math.round(Math.abs(v * 2)) / 2; + } + + /* + * Rounding to half grid. + */ + function roundToHalfGrid(v) { + return Math.sign(v) * (Math.round(Math.abs(v) + 0.5) - 0.5); + } + + /* + * Rounding to up to grid. + */ + function roundUpToGrid(v) { + return Math.sign(v) * Math.ceil(Math.abs(v)); + } + + /* + * Rounding to down to grid. + */ + function roundDownToGrid(v) { + return Math.sign(v) * Math.floor(Math.abs(v)); + } + + /* + * Super rounding. + */ + var roundSuper = function(v) { + var period = this.srPeriod; + var phase = this.srPhase; + var threshold = this.srThreshold; + var sign = 1; + + if (v < 0) { + v = -v; + sign = -1; + } + + v += threshold - phase; + + v = Math.trunc(v / period) * period; + + v += phase; + + // according to http://xgridfit.sourceforge.net/round.html + if (v < 0) { + return phase * sign; + } + + return v * sign; + }; + + /* + * Unit vector of x-axis. + */ + var xUnitVector = { + x: 1, + + y: 0, + + axis: 'x', + + // Gets the projected distance between two points. + // o1/o2 ... if true, respective original position is used. + distance: function(p1, p2, o1, o2) { + return (o1 ? p1.xo : p1.x) - (o2 ? p2.xo : p2.x); + }, + + // Moves point p so the moved position has the same relative + // position to the moved positions of rp1 and rp2 than the + // original positions had. + // + // See APPENDIX on INTERPOLATE at the bottom of this file. + interpolate: function(p, rp1, rp2, pv) { + var do1; + var do2; + var doa1; + var doa2; + var dm1; + var dm2; + var dt; + + if (!pv || pv === this) { + do1 = p.xo - rp1.xo; + do2 = p.xo - rp2.xo; + dm1 = rp1.x - rp1.xo; + dm2 = rp2.x - rp2.xo; + doa1 = Math.abs(do1); + doa2 = Math.abs(do2); + dt = doa1 + doa2; + + if (dt === 0) { + p.x = p.xo + (dm1 + dm2) / 2; + return; + } + + p.x = p.xo + (dm1 * doa2 + dm2 * doa1) / dt; + return; + } + + do1 = pv.distance(p, rp1, true, true); + do2 = pv.distance(p, rp2, true, true); + dm1 = pv.distance(rp1, rp1, false, true); + dm2 = pv.distance(rp2, rp2, false, true); + doa1 = Math.abs(do1); + doa2 = Math.abs(do2); + dt = doa1 + doa2; + + if (dt === 0) { + xUnitVector.setRelative(p, p, (dm1 + dm2) / 2, pv, true); + return; + } + + xUnitVector.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt, pv, true); + }, + + // Slope of line normal to this + normalSlope: Number.NEGATIVE_INFINITY, + + // Sets the point 'p' relative to point 'rp' + // by the distance 'd'. + // + // See APPENDIX on SETRELATIVE at the bottom of this file. + // + // p ... point to set + // rp ... reference point + // d ... distance on projection vector + // pv ... projection vector (undefined = this) + // org ... if true, uses the original position of rp as reference. + setRelative: function(p, rp, d, pv, org) { + if (!pv || pv === this) { + p.x = (org ? rp.xo : rp.x) + d; + return; + } + + var rpx = org ? rp.xo : rp.x; + var rpy = org ? rp.yo : rp.y; + var rpdx = rpx + d * pv.x; + var rpdy = rpy + d * pv.y; + + p.x = rpdx + (p.y - rpdy) / pv.normalSlope; + }, + + // Slope of vector line. + slope: 0, + + // Touches the point p. + touch: function(p) { + p.xTouched = true; + }, + + // Tests if a point p is touched. + touched: function(p) { + return p.xTouched; + }, + + // Untouches the point p. + untouch: function(p) { + p.xTouched = false; + } + }; + + /* + * Unit vector of y-axis. + */ + var yUnitVector = { + x: 0, + + y: 1, + + axis: 'y', + + // Gets the projected distance between two points. + // o1/o2 ... if true, respective original position is used. + distance: function(p1, p2, o1, o2) { + return (o1 ? p1.yo : p1.y) - (o2 ? p2.yo : p2.y); + }, + + // Moves point p so the moved position has the same relative + // position to the moved positions of rp1 and rp2 than the + // original positions had. + // + // See APPENDIX on INTERPOLATE at the bottom of this file. + interpolate: function(p, rp1, rp2, pv) { + var do1; + var do2; + var doa1; + var doa2; + var dm1; + var dm2; + var dt; + + if (!pv || pv === this) { + do1 = p.yo - rp1.yo; + do2 = p.yo - rp2.yo; + dm1 = rp1.y - rp1.yo; + dm2 = rp2.y - rp2.yo; + doa1 = Math.abs(do1); + doa2 = Math.abs(do2); + dt = doa1 + doa2; + + if (dt === 0) { + p.y = p.yo + (dm1 + dm2) / 2; + return; + } + + p.y = p.yo + (dm1 * doa2 + dm2 * doa1) / dt; + return; + } + + do1 = pv.distance(p, rp1, true, true); + do2 = pv.distance(p, rp2, true, true); + dm1 = pv.distance(rp1, rp1, false, true); + dm2 = pv.distance(rp2, rp2, false, true); + doa1 = Math.abs(do1); + doa2 = Math.abs(do2); + dt = doa1 + doa2; + + if (dt === 0) { + yUnitVector.setRelative(p, p, (dm1 + dm2) / 2, pv, true); + return; + } + + yUnitVector.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt, pv, true); + }, + + // Slope of line normal to this. + normalSlope: 0, + + // Sets the point 'p' relative to point 'rp' + // by the distance 'd' + // + // See APPENDIX on SETRELATIVE at the bottom of this file. + // + // p ... point to set + // rp ... reference point + // d ... distance on projection vector + // pv ... projection vector (undefined = this) + // org ... if true, uses the original position of rp as reference. + setRelative: function(p, rp, d, pv, org) { + if (!pv || pv === this) { + p.y = (org ? rp.yo : rp.y) + d; + return; + } + + var rpx = org ? rp.xo : rp.x; + var rpy = org ? rp.yo : rp.y; + var rpdx = rpx + d * pv.x; + var rpdy = rpy + d * pv.y; + + p.y = rpdy + pv.normalSlope * (p.x - rpdx); + }, + + // Slope of vector line. + slope: Number.POSITIVE_INFINITY, + + // Touches the point p. + touch: function(p) { + p.yTouched = true; + }, + + // Tests if a point p is touched. + touched: function(p) { + return p.yTouched; + }, + + // Untouches the point p. + untouch: function(p) { + p.yTouched = false; + } + }; + + Object.freeze(xUnitVector); + Object.freeze(yUnitVector); + + /* + * Creates a unit vector that is not x- or y-axis. + */ + function UnitVector(x, y) { + this.x = x; + this.y = y; + this.axis = undefined; + this.slope = y / x; + this.normalSlope = -x / y; + Object.freeze(this); + } + + /* + * Gets the projected distance between two points. + * o1/o2 ... if true, respective original position is used. + */ + UnitVector.prototype.distance = function(p1, p2, o1, o2) { + return ( + this.x * xUnitVector.distance(p1, p2, o1, o2) + + this.y * yUnitVector.distance(p1, p2, o1, o2) + ); + }; + + /* + * Moves point p so the moved position has the same relative + * position to the moved positions of rp1 and rp2 than the + * original positions had. + * + * See APPENDIX on INTERPOLATE at the bottom of this file. + */ + UnitVector.prototype.interpolate = function(p, rp1, rp2, pv) { + var dm1; + var dm2; + var do1; + var do2; + var doa1; + var doa2; + var dt; + + do1 = pv.distance(p, rp1, true, true); + do2 = pv.distance(p, rp2, true, true); + dm1 = pv.distance(rp1, rp1, false, true); + dm2 = pv.distance(rp2, rp2, false, true); + doa1 = Math.abs(do1); + doa2 = Math.abs(do2); + dt = doa1 + doa2; + + if (dt === 0) { + this.setRelative(p, p, (dm1 + dm2) / 2, pv, true); + return; + } + + this.setRelative(p, p, (dm1 * doa2 + dm2 * doa1) / dt, pv, true); + }; + + /* + * Sets the point 'p' relative to point 'rp' + * by the distance 'd' + * + * See APPENDIX on SETRELATIVE at the bottom of this file. + * + * p ... point to set + * rp ... reference point + * d ... distance on projection vector + * pv ... projection vector (undefined = this) + * org ... if true, uses the original position of rp as reference. + */ + UnitVector.prototype.setRelative = function(p, rp, d, pv, org) { + pv = pv || this; + + var rpx = org ? rp.xo : rp.x; + var rpy = org ? rp.yo : rp.y; + var rpdx = rpx + d * pv.x; + var rpdy = rpy + d * pv.y; + + var pvns = pv.normalSlope; + var fvs = this.slope; + + var px = p.x; + var py = p.y; + + p.x = (fvs * px - pvns * rpdx + rpdy - py) / (fvs - pvns); + p.y = fvs * (p.x - px) + py; + }; + + /* + * Touches the point p. + */ + UnitVector.prototype.touch = function(p) { + p.xTouched = true; + p.yTouched = true; + }; + + /* + * Returns a unit vector with x/y coordinates. + */ + function getUnitVector(x, y) { + var d = Math.sqrt(x * x + y * y); + + x /= d; + y /= d; + + if (x === 1 && y === 0) { + return xUnitVector; + } else if (x === 0 && y === 1) { + return yUnitVector; + } else { + return new UnitVector(x, y); + } + } + + /* + * Creates a point in the hinting engine. + */ + function HPoint(x, y, lastPointOfContour, onCurve) { + this.x = this.xo = Math.round(x * 64) / 64; // hinted x value and original x-value + this.y = this.yo = Math.round(y * 64) / 64; // hinted y value and original y-value + + this.lastPointOfContour = lastPointOfContour; + this.onCurve = onCurve; + this.prevPointOnContour = undefined; + this.nextPointOnContour = undefined; + this.xTouched = false; + this.yTouched = false; + + Object.preventExtensions(this); + } + + /* + * Returns the next touched point on the contour. + * + * v ... unit vector to test touch axis. + */ + HPoint.prototype.nextTouched = function(v) { + var p = this.nextPointOnContour; + + while (!v.touched(p) && p !== this) { + p = p.nextPointOnContour; + } + + return p; + }; + + /* + * Returns the previous touched point on the contour + * + * v ... unit vector to test touch axis. + */ + HPoint.prototype.prevTouched = function(v) { + var p = this.prevPointOnContour; + + while (!v.touched(p) && p !== this) { + p = p.prevPointOnContour; + } + + return p; + }; + + /* + * The zero point. + */ + var HPZero = Object.freeze(new HPoint(0, 0)); + + /* + * The default state of the interpreter. + * + * Note: Freezing the defaultState and then deriving from it + * makes the V8 Javascript engine going awkward, + * so this is avoided, albeit the defaultState shouldn't + * ever change. + */ + var defaultState = { + cvCutIn: 17 / 16, // control value cut in + deltaBase: 9, + deltaShift: 0.125, + loop: 1, // loops some instructions + minDis: 1, // minimum distance + autoFlip: true + }; + + /* + * The current state of the interpreter. + * + * env ... 'fpgm' or 'prep' or 'glyf' + * prog ... the program + */ + function State(env, prog) { + this.env = env; + this.stack = []; + this.prog = prog; + + switch (env) { + case 'glyf': + this.zp0 = this.zp1 = this.zp2 = 1; + this.rp0 = this.rp1 = this.rp2 = 0; + /* fall through */ + case 'prep': + this.fv = this.pv = this.dpv = xUnitVector; + this.round = roundToGrid; + } + } + + /* + * Executes a glyph program. + * + * This does the hinting for each glyph. + * + * Returns an array of moved points. + * + * glyph: the glyph to hint + * ppem: the size the glyph is rendered for + */ + Hinting.prototype.exec = function(glyph, ppem) { + if (typeof ppem !== 'number') { + throw new Error('Point size is not a number!'); + } + + // Received a fatal error, don't do any hinting anymore. + if (this._errorState > 2) { + return; + } + + var font = this.font; + var prepState = this._prepState; + + if (!prepState || prepState.ppem !== ppem) { + var fpgmState = this._fpgmState; + + if (!fpgmState) { + // Executes the fpgm state. + // This is used by fonts to define functions. + State.prototype = defaultState; + + fpgmState = this._fpgmState = new State('fpgm', font.tables.fpgm); + + fpgmState.funcs = []; + fpgmState.font = font; + + if (exports.DEBUG) { + console.log('---EXEC FPGM---'); + fpgmState.step = -1; + } + + try { + exec(fpgmState); + } catch (e) { + console.log('Hinting error in FPGM:' + e); + this._errorState = 3; + return; + } + } + + // Executes the prep program for this ppem setting. + // This is used by fonts to set cvt values + // depending on to be rendered font size. + + State.prototype = fpgmState; + prepState = this._prepState = new State('prep', font.tables.prep); + + prepState.ppem = ppem; + + // Creates a copy of the cvt table + // and scales it to the current ppem setting. + var oCvt = font.tables.cvt; + if (oCvt) { + var cvt = (prepState.cvt = new Array(oCvt.length)); + var scale = ppem / font.unitsPerEm; + for (var c = 0; c < oCvt.length; c++) { + cvt[c] = oCvt[c] * scale; + } + } else { + prepState.cvt = []; + } + + if (exports.DEBUG) { + console.log('---EXEC PREP---'); + prepState.step = -1; + } + + try { + exec(prepState); + } catch (e) { + if (this._errorState < 2) { + console.log('Hinting error in PREP:' + e); + } + this._errorState = 2; + } + } + + if (this._errorState > 1) { + return; + } + + try { + return execGlyph(glyph, prepState); + } catch (e) { + if (this._errorState < 1) { + console.log('Hinting error:' + e); + console.log('Note: further hinting errors are silenced'); + } + this._errorState = 1; + return undefined; + } + }; + + /* + * Executes the hinting program for a glyph. + */ + execGlyph = function(glyph, prepState) { + // original point positions + var xScale = prepState.ppem / prepState.font.unitsPerEm; + var yScale = xScale; + var components = glyph.components; + var contours; + var gZone; + var state; + + State.prototype = prepState; + if (!components) { + state = new State('glyf', glyph.instructions); + if (exports.DEBUG) { + console.log('---EXEC GLYPH---'); + state.step = -1; + } + execComponent(glyph, state, xScale, yScale); + gZone = state.gZone; + } else { + var font = prepState.font; + gZone = []; + contours = []; + for (var i = 0; i < components.length; i++) { + var c = components[i]; + var cg = font.glyphs.get(c.glyphIndex); + + state = new State('glyf', cg.instructions); + + if (exports.DEBUG) { + console.log('---EXEC COMP ' + i + '---'); + state.step = -1; + } + + execComponent(cg, state, xScale, yScale); + // appends the computed points to the result array + // post processes the component points + var dx = Math.round(c.dx * xScale); + var dy = Math.round(c.dy * yScale); + var gz = state.gZone; + var cc = state.contours; + for (var pi = 0; pi < gz.length; pi++) { + var p = gz[pi]; + p.xTouched = p.yTouched = false; + p.xo = p.x = p.x + dx; + p.yo = p.y = p.y + dy; + } + + var gLen = gZone.length; + gZone.push.apply(gZone, gz); + for (var j = 0; j < cc.length; j++) { + contours.push(cc[j] + gLen); + } + } + + if (glyph.instructions && !state.inhibitGridFit) { + // the composite has instructions on its own + state = new State('glyf', glyph.instructions); + + state.gZone = state.z0 = state.z1 = state.z2 = gZone; + + state.contours = contours; + + // note: HPZero cannot be used here, since + // the point might be modified + gZone.push( + new HPoint(0, 0), + new HPoint(Math.round(glyph.advanceWidth * xScale), 0) + ); + + if (exports.DEBUG) { + console.log('---EXEC COMPOSITE---'); + state.step = -1; + } + + exec(state); + + gZone.length -= 2; + } + } + + return gZone; + }; + + /* + * Executes the hinting program for a component of a multi-component glyph + * or of the glyph itself for a non-component glyph. + */ + execComponent = function(glyph, state, xScale, yScale) { + var points = glyph.points || []; + var pLen = points.length; + var gZone = (state.gZone = state.z0 = state.z1 = state.z2 = []); + var contours = (state.contours = []); + + // Scales the original points and + // makes copies for the hinted points. + var cp; // current point + for (var i = 0; i < pLen; i++) { + cp = points[i]; + + gZone[i] = new HPoint( + cp.x * xScale, + cp.y * yScale, + cp.lastPointOfContour, + cp.onCurve + ); + } + + // Chain links the contours. + var sp; // start point + var np; // next point + + for (var i$1 = 0; i$1 < pLen; i$1++) { + cp = gZone[i$1]; + + if (!sp) { + sp = cp; + contours.push(i$1); + } + + if (cp.lastPointOfContour) { + cp.nextPointOnContour = sp; + sp.prevPointOnContour = cp; + sp = undefined; + } else { + np = gZone[i$1 + 1]; + cp.nextPointOnContour = np; + np.prevPointOnContour = cp; + } + } + + if (state.inhibitGridFit) { + return; + } + + if (exports.DEBUG) { + console.log('PROCESSING GLYPH', state.stack); + for (var i$2 = 0; i$2 < pLen; i$2++) { + console.log(i$2, gZone[i$2].x, gZone[i$2].y); + } + } + + gZone.push( + new HPoint(0, 0), + new HPoint(Math.round(glyph.advanceWidth * xScale), 0) + ); + + exec(state); + + // Removes the extra points. + gZone.length -= 2; + + if (exports.DEBUG) { + console.log('FINISHED GLYPH', state.stack); + for (var i$3 = 0; i$3 < pLen; i$3++) { + console.log(i$3, gZone[i$3].x, gZone[i$3].y); + } + } + }; + + /* + * Executes the program loaded in state. + */ + exec = function(state) { + var prog = state.prog; + + if (!prog) { + return; + } + + var pLen = prog.length; + var ins; + + for (state.ip = 0; state.ip < pLen; state.ip++) { + if (exports.DEBUG) { + state.step++; + } + ins = instructionTable[prog[state.ip]]; + + if (!ins) { + throw new Error( + 'unknown instruction: 0x' + Number(prog[state.ip]).toString(16) + ); + } + + ins(state); + + // very extensive debugging for each step + /* + if (exports.DEBUG) { + var da; + if (state.gZone) { + da = []; + for (let i = 0; i < state.gZone.length; i++) + { + da.push(i + ' ' + + state.gZone[i].x * 64 + ' ' + + state.gZone[i].y * 64 + ' ' + + (state.gZone[i].xTouched ? 'x' : '') + + (state.gZone[i].yTouched ? 'y' : '') + ); + } + console.log('GZ', da); + } + + if (state.tZone) { + da = []; + for (let i = 0; i < state.tZone.length; i++) { + da.push(i + ' ' + + state.tZone[i].x * 64 + ' ' + + state.tZone[i].y * 64 + ' ' + + (state.tZone[i].xTouched ? 'x' : '') + + (state.tZone[i].yTouched ? 'y' : '') + ); + } + console.log('TZ', da); + } + + if (state.stack.length > 10) { + console.log( + state.stack.length, + '...', state.stack.slice(state.stack.length - 10) + ); + } else { + console.log(state.stack.length, state.stack); + } + } + */ + } + }; + + /* + * Initializes the twilight zone. + * + * This is only done if a SZPx instruction + * refers to the twilight zone. + */ + function initTZone(state) { + var tZone = (state.tZone = new Array(state.gZone.length)); + + // no idea if this is actually correct... + for (var i = 0; i < tZone.length; i++) { + tZone[i] = new HPoint(0, 0); + } + } + + /* + * Skips the instruction pointer ahead over an IF/ELSE block. + * handleElse .. if true breaks on matching ELSE + */ + function skip(state, handleElse) { + var prog = state.prog; + var ip = state.ip; + var nesting = 1; + var ins; + + do { + ins = prog[++ip]; + if (ins === 0x58) { + // IF + nesting++; + } else if (ins === 0x59) { + // EIF + nesting--; + } else if (ins === 0x40) { + // NPUSHB + ip += prog[ip + 1] + 1; + } else if (ins === 0x41) { + // NPUSHW + ip += 2 * prog[ip + 1] + 1; + } else if (ins >= 0xb0 && ins <= 0xb7) { + // PUSHB + ip += ins - 0xb0 + 1; + } else if (ins >= 0xb8 && ins <= 0xbf) { + // PUSHW + ip += (ins - 0xb8 + 1) * 2; + } else if (handleElse && nesting === 1 && ins === 0x1b) { + // ELSE + break; + } + } while (nesting > 0); + + state.ip = ip; + } + + /*----------------------------------------------------------* + * And then a lot of instructions... * + *----------------------------------------------------------*/ + + // SVTCA[a] Set freedom and projection Vectors To Coordinate Axis + // 0x00-0x01 + function SVTCA(v, state) { + if (exports.DEBUG) { + console.log(state.step, 'SVTCA[' + v.axis + ']'); + } + + state.fv = state.pv = state.dpv = v; + } + + // SPVTCA[a] Set Projection Vector to Coordinate Axis + // 0x02-0x03 + function SPVTCA(v, state) { + if (exports.DEBUG) { + console.log(state.step, 'SPVTCA[' + v.axis + ']'); + } + + state.pv = state.dpv = v; + } + + // SFVTCA[a] Set Freedom Vector to Coordinate Axis + // 0x04-0x05 + function SFVTCA(v, state) { + if (exports.DEBUG) { + console.log(state.step, 'SFVTCA[' + v.axis + ']'); + } + + state.fv = v; + } + + // SPVTL[a] Set Projection Vector To Line + // 0x06-0x07 + function SPVTL(a, state) { + var stack = state.stack; + var p2i = stack.pop(); + var p1i = stack.pop(); + var p2 = state.z2[p2i]; + var p1 = state.z1[p1i]; + + if (exports.DEBUG) { + console.log('SPVTL[' + a + ']', p2i, p1i); + } + + var dx; + var dy; + + if (!a) { + dx = p1.x - p2.x; + dy = p1.y - p2.y; + } else { + dx = p2.y - p1.y; + dy = p1.x - p2.x; + } + + state.pv = state.dpv = getUnitVector(dx, dy); + } + + // SFVTL[a] Set Freedom Vector To Line + // 0x08-0x09 + function SFVTL(a, state) { + var stack = state.stack; + var p2i = stack.pop(); + var p1i = stack.pop(); + var p2 = state.z2[p2i]; + var p1 = state.z1[p1i]; + + if (exports.DEBUG) { + console.log('SFVTL[' + a + ']', p2i, p1i); + } + + var dx; + var dy; + + if (!a) { + dx = p1.x - p2.x; + dy = p1.y - p2.y; + } else { + dx = p2.y - p1.y; + dy = p1.x - p2.x; + } + + state.fv = getUnitVector(dx, dy); + } + + // SPVFS[] Set Projection Vector From Stack + // 0x0A + function SPVFS(state) { + var stack = state.stack; + var y = stack.pop(); + var x = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SPVFS[]', y, x); + } + + state.pv = state.dpv = getUnitVector(x, y); + } + + // SFVFS[] Set Freedom Vector From Stack + // 0x0B + function SFVFS(state) { + var stack = state.stack; + var y = stack.pop(); + var x = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SPVFS[]', y, x); + } + + state.fv = getUnitVector(x, y); + } + + // GPV[] Get Projection Vector + // 0x0C + function GPV(state) { + var stack = state.stack; + var pv = state.pv; + + if (exports.DEBUG) { + console.log(state.step, 'GPV[]'); + } + + stack.push(pv.x * 0x4000); + stack.push(pv.y * 0x4000); + } + + // GFV[] Get Freedom Vector + // 0x0C + function GFV(state) { + var stack = state.stack; + var fv = state.fv; + + if (exports.DEBUG) { + console.log(state.step, 'GFV[]'); + } + + stack.push(fv.x * 0x4000); + stack.push(fv.y * 0x4000); + } + + // SFVTPV[] Set Freedom Vector To Projection Vector + // 0x0E + function SFVTPV(state) { + state.fv = state.pv; + + if (exports.DEBUG) { + console.log(state.step, 'SFVTPV[]'); + } + } + + // ISECT[] moves point p to the InterSECTion of two lines + // 0x0F + function ISECT(state) { + var stack = state.stack; + var pa0i = stack.pop(); + var pa1i = stack.pop(); + var pb0i = stack.pop(); + var pb1i = stack.pop(); + var pi = stack.pop(); + var z0 = state.z0; + var z1 = state.z1; + var pa0 = z0[pa0i]; + var pa1 = z0[pa1i]; + var pb0 = z1[pb0i]; + var pb1 = z1[pb1i]; + var p = state.z2[pi]; + + if (exports.DEBUG) { + console.log('ISECT[], ', pa0i, pa1i, pb0i, pb1i, pi); + } + + // math from + // en.wikipedia.org/wiki/Line%E2%80%93line_intersection#Given_two_points_on_each_line + + var x1 = pa0.x; + var y1 = pa0.y; + var x2 = pa1.x; + var y2 = pa1.y; + var x3 = pb0.x; + var y3 = pb0.y; + var x4 = pb1.x; + var y4 = pb1.y; + + var div = (x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4); + var f1 = x1 * y2 - y1 * x2; + var f2 = x3 * y4 - y3 * x4; + + p.x = (f1 * (x3 - x4) - f2 * (x1 - x2)) / div; + p.y = (f1 * (y3 - y4) - f2 * (y1 - y2)) / div; + } + + // SRP0[] Set Reference Point 0 + // 0x10 + function SRP0(state) { + state.rp0 = state.stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SRP0[]', state.rp0); + } + } + + // SRP1[] Set Reference Point 1 + // 0x11 + function SRP1(state) { + state.rp1 = state.stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SRP1[]', state.rp1); + } + } + + // SRP1[] Set Reference Point 2 + // 0x12 + function SRP2(state) { + state.rp2 = state.stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SRP2[]', state.rp2); + } + } + + // SZP0[] Set Zone Pointer 0 + // 0x13 + function SZP0(state) { + var n = state.stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SZP0[]', n); + } + + state.zp0 = n; + + switch (n) { + case 0: + if (!state.tZone) { + initTZone(state); + } + state.z0 = state.tZone; + break; + case 1: + state.z0 = state.gZone; + break; + default: + throw new Error('Invalid zone pointer'); + } + } + + // SZP1[] Set Zone Pointer 1 + // 0x14 + function SZP1(state) { + var n = state.stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SZP1[]', n); + } + + state.zp1 = n; + + switch (n) { + case 0: + if (!state.tZone) { + initTZone(state); + } + state.z1 = state.tZone; + break; + case 1: + state.z1 = state.gZone; + break; + default: + throw new Error('Invalid zone pointer'); + } + } + + // SZP2[] Set Zone Pointer 2 + // 0x15 + function SZP2(state) { + var n = state.stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SZP2[]', n); + } + + state.zp2 = n; + + switch (n) { + case 0: + if (!state.tZone) { + initTZone(state); + } + state.z2 = state.tZone; + break; + case 1: + state.z2 = state.gZone; + break; + default: + throw new Error('Invalid zone pointer'); + } + } + + // SZPS[] Set Zone PointerS + // 0x16 + function SZPS(state) { + var n = state.stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SZPS[]', n); + } + + state.zp0 = state.zp1 = state.zp2 = n; + + switch (n) { + case 0: + if (!state.tZone) { + initTZone(state); + } + state.z0 = state.z1 = state.z2 = state.tZone; + break; + case 1: + state.z0 = state.z1 = state.z2 = state.gZone; + break; + default: + throw new Error('Invalid zone pointer'); + } + } + + // SLOOP[] Set LOOP variable + // 0x17 + function SLOOP(state) { + state.loop = state.stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SLOOP[]', state.loop); + } + } + + // RTG[] Round To Grid + // 0x18 + function RTG(state) { + if (exports.DEBUG) { + console.log(state.step, 'RTG[]'); + } + + state.round = roundToGrid; + } + + // RTHG[] Round To Half Grid + // 0x19 + function RTHG(state) { + if (exports.DEBUG) { + console.log(state.step, 'RTHG[]'); + } + + state.round = roundToHalfGrid; + } + + // SMD[] Set Minimum Distance + // 0x1A + function SMD(state) { + var d = state.stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SMD[]', d); + } + + state.minDis = d / 0x40; + } + + // ELSE[] ELSE clause + // 0x1B + function ELSE(state) { + // This instruction has been reached by executing a then branch + // so it just skips ahead until matching EIF. + // + // In case the IF was negative the IF[] instruction already + // skipped forward over the ELSE[] + + if (exports.DEBUG) { + console.log(state.step, 'ELSE[]'); + } + + skip(state, false); + } + + // JMPR[] JuMP Relative + // 0x1C + function JMPR(state) { + var o = state.stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'JMPR[]', o); + } + + // A jump by 1 would do nothing. + state.ip += o - 1; + } + + // SCVTCI[] Set Control Value Table Cut-In + // 0x1D + function SCVTCI(state) { + var n = state.stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SCVTCI[]', n); + } + + state.cvCutIn = n / 0x40; + } + + // DUP[] DUPlicate top stack element + // 0x20 + function DUP(state) { + var stack = state.stack; + + if (exports.DEBUG) { + console.log(state.step, 'DUP[]'); + } + + stack.push(stack[stack.length - 1]); + } + + // POP[] POP top stack element + // 0x21 + function POP(state) { + if (exports.DEBUG) { + console.log(state.step, 'POP[]'); + } + + state.stack.pop(); + } + + // CLEAR[] CLEAR the stack + // 0x22 + function CLEAR(state) { + if (exports.DEBUG) { + console.log(state.step, 'CLEAR[]'); + } + + state.stack.length = 0; + } + + // SWAP[] SWAP the top two elements on the stack + // 0x23 + function SWAP(state) { + var stack = state.stack; + + var a = stack.pop(); + var b = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SWAP[]'); + } + + stack.push(a); + stack.push(b); + } + + // DEPTH[] DEPTH of the stack + // 0x24 + function DEPTH(state) { + var stack = state.stack; + + if (exports.DEBUG) { + console.log(state.step, 'DEPTH[]'); + } + + stack.push(stack.length); + } + + // LOOPCALL[] LOOPCALL function + // 0x2A + function LOOPCALL(state) { + var stack = state.stack; + var fn = stack.pop(); + var c = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'LOOPCALL[]', fn, c); + } + + // saves callers program + var cip = state.ip; + var cprog = state.prog; + + state.prog = state.funcs[fn]; + + // executes the function + for (var i = 0; i < c; i++) { + exec(state); + + if (exports.DEBUG) { + console.log( + ++state.step, + i + 1 < c ? 'next loopcall' : 'done loopcall', + i + ); + } + } + + // restores the callers program + state.ip = cip; + state.prog = cprog; + } + + // CALL[] CALL function + // 0x2B + function CALL(state) { + var fn = state.stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'CALL[]', fn); + } + + // saves callers program + var cip = state.ip; + var cprog = state.prog; + + state.prog = state.funcs[fn]; + + // executes the function + exec(state); + + // restores the callers program + state.ip = cip; + state.prog = cprog; + + if (exports.DEBUG) { + console.log(++state.step, 'returning from', fn); + } + } + + // CINDEX[] Copy the INDEXed element to the top of the stack + // 0x25 + function CINDEX(state) { + var stack = state.stack; + var k = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'CINDEX[]', k); + } + + // In case of k == 1, it copies the last element after popping + // thus stack.length - k. + stack.push(stack[stack.length - k]); + } + + // MINDEX[] Move the INDEXed element to the top of the stack + // 0x26 + function MINDEX(state) { + var stack = state.stack; + var k = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'MINDEX[]', k); + } + + stack.push(stack.splice(stack.length - k, 1)[0]); + } + + // FDEF[] Function DEFinition + // 0x2C + function FDEF(state) { + if (state.env !== 'fpgm') { + throw new Error('FDEF not allowed here'); + } + var stack = state.stack; + var prog = state.prog; + var ip = state.ip; + + var fn = stack.pop(); + var ipBegin = ip; + + if (exports.DEBUG) { + console.log(state.step, 'FDEF[]', fn); + } + + while (prog[++ip] !== 0x2d) {} + + state.ip = ip; + state.funcs[fn] = prog.slice(ipBegin + 1, ip); + } + + // MDAP[a] Move Direct Absolute Point + // 0x2E-0x2F + function MDAP(round, state) { + var pi = state.stack.pop(); + var p = state.z0[pi]; + var fv = state.fv; + var pv = state.pv; + + if (exports.DEBUG) { + console.log(state.step, 'MDAP[' + round + ']', pi); + } + + var d = pv.distance(p, HPZero); + + if (round) { + d = state.round(d); + } + + fv.setRelative(p, HPZero, d, pv); + fv.touch(p); + + state.rp0 = state.rp1 = pi; + } + + // IUP[a] Interpolate Untouched Points through the outline + // 0x30 + function IUP(v, state) { + var z2 = state.z2; + var pLen = z2.length - 2; + var cp; + var pp; + var np; + + if (exports.DEBUG) { + console.log(state.step, 'IUP[' + v.axis + ']'); + } + + for (var i = 0; i < pLen; i++) { + cp = z2[i]; // current point + + // if this point has been touched go on + if (v.touched(cp)) { + continue; + } + + pp = cp.prevTouched(v); + + // no point on the contour has been touched? + if (pp === cp) { + continue; + } + + np = cp.nextTouched(v); + + if (pp === np) { + // only one point on the contour has been touched + // so simply moves the point like that + + v.setRelative(cp, cp, v.distance(pp, pp, false, true), v, true); + } + + v.interpolate(cp, pp, np, v); + } + } + + // SHP[] SHift Point using reference point + // 0x32-0x33 + function SHP(a, state) { + var stack = state.stack; + var rpi = a ? state.rp1 : state.rp2; + var rp = (a ? state.z0 : state.z1)[rpi]; + var fv = state.fv; + var pv = state.pv; + var loop = state.loop; + var z2 = state.z2; + + while (loop--) { + var pi = stack.pop(); + var p = z2[pi]; + + var d = pv.distance(rp, rp, false, true); + fv.setRelative(p, p, d, pv); + fv.touch(p); + + if (exports.DEBUG) { + console.log( + state.step, + (state.loop > 1 ? 'loop ' + (state.loop - loop) + ': ' : '') + + 'SHP[' + + (a ? 'rp1' : 'rp2') + + ']', + pi + ); + } + } + + state.loop = 1; + } + + // SHC[] SHift Contour using reference point + // 0x36-0x37 + function SHC(a, state) { + var stack = state.stack; + var rpi = a ? state.rp1 : state.rp2; + var rp = (a ? state.z0 : state.z1)[rpi]; + var fv = state.fv; + var pv = state.pv; + var ci = stack.pop(); + var sp = state.z2[state.contours[ci]]; + var p = sp; + + if (exports.DEBUG) { + console.log(state.step, 'SHC[' + a + ']', ci); + } + + var d = pv.distance(rp, rp, false, true); + + do { + if (p !== rp) { + fv.setRelative(p, p, d, pv); + } + p = p.nextPointOnContour; + } while (p !== sp); + } + + // SHZ[] SHift Zone using reference point + // 0x36-0x37 + function SHZ(a, state) { + var stack = state.stack; + var rpi = a ? state.rp1 : state.rp2; + var rp = (a ? state.z0 : state.z1)[rpi]; + var fv = state.fv; + var pv = state.pv; + + var e = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SHZ[' + a + ']', e); + } + + var z; + switch (e) { + case 0: + z = state.tZone; + break; + case 1: + z = state.gZone; + break; + default: + throw new Error('Invalid zone'); + } + + var p; + var d = pv.distance(rp, rp, false, true); + var pLen = z.length - 2; + for (var i = 0; i < pLen; i++) { + p = z[i]; + fv.setRelative(p, p, d, pv); + //if (p !== rp) fv.setRelative(p, p, d, pv); + } + } + + // SHPIX[] SHift point by a PIXel amount + // 0x38 + function SHPIX(state) { + var stack = state.stack; + var loop = state.loop; + var fv = state.fv; + var d = stack.pop() / 0x40; + var z2 = state.z2; + + while (loop--) { + var pi = stack.pop(); + var p = z2[pi]; + + if (exports.DEBUG) { + console.log( + state.step, + (state.loop > 1 ? 'loop ' + (state.loop - loop) + ': ' : '') + + 'SHPIX[]', + pi, + d + ); + } + + fv.setRelative(p, p, d); + fv.touch(p); + } + + state.loop = 1; + } + + // IP[] Interpolate Point + // 0x39 + function IP(state) { + var stack = state.stack; + var rp1i = state.rp1; + var rp2i = state.rp2; + var loop = state.loop; + var rp1 = state.z0[rp1i]; + var rp2 = state.z1[rp2i]; + var fv = state.fv; + var pv = state.dpv; + var z2 = state.z2; + + while (loop--) { + var pi = stack.pop(); + var p = z2[pi]; + + if (exports.DEBUG) { + console.log( + state.step, + (state.loop > 1 ? 'loop ' + (state.loop - loop) + ': ' : '') + 'IP[]', + pi, + rp1i, + '<->', + rp2i + ); + } + + fv.interpolate(p, rp1, rp2, pv); + + fv.touch(p); + } + + state.loop = 1; + } + + // MSIRP[a] Move Stack Indirect Relative Point + // 0x3A-0x3B + function MSIRP(a, state) { + var stack = state.stack; + var d = stack.pop() / 64; + var pi = stack.pop(); + var p = state.z1[pi]; + var rp0 = state.z0[state.rp0]; + var fv = state.fv; + var pv = state.pv; + + fv.setRelative(p, rp0, d, pv); + fv.touch(p); + + if (exports.DEBUG) { + console.log(state.step, 'MSIRP[' + a + ']', d, pi); + } + + state.rp1 = state.rp0; + state.rp2 = pi; + if (a) { + state.rp0 = pi; + } + } + + // ALIGNRP[] Align to reference point. + // 0x3C + function ALIGNRP(state) { + var stack = state.stack; + var rp0i = state.rp0; + var rp0 = state.z0[rp0i]; + var loop = state.loop; + var fv = state.fv; + var pv = state.pv; + var z1 = state.z1; + + while (loop--) { + var pi = stack.pop(); + var p = z1[pi]; + + if (exports.DEBUG) { + console.log( + state.step, + (state.loop > 1 ? 'loop ' + (state.loop - loop) + ': ' : '') + + 'ALIGNRP[]', + pi + ); + } + + fv.setRelative(p, rp0, 0, pv); + fv.touch(p); + } + + state.loop = 1; + } + + // RTG[] Round To Double Grid + // 0x3D + function RTDG(state) { + if (exports.DEBUG) { + console.log(state.step, 'RTDG[]'); + } + + state.round = roundToDoubleGrid; + } + + // MIAP[a] Move Indirect Absolute Point + // 0x3E-0x3F + function MIAP(round, state) { + var stack = state.stack; + var n = stack.pop(); + var pi = stack.pop(); + var p = state.z0[pi]; + var fv = state.fv; + var pv = state.pv; + var cv = state.cvt[n]; + + if (exports.DEBUG) { + console.log(state.step, 'MIAP[' + round + ']', n, '(', cv, ')', pi); + } + + var d = pv.distance(p, HPZero); + + if (round) { + if (Math.abs(d - cv) < state.cvCutIn) { + d = cv; + } + + d = state.round(d); + } + + fv.setRelative(p, HPZero, d, pv); + + if (state.zp0 === 0) { + p.xo = p.x; + p.yo = p.y; + } + + fv.touch(p); + + state.rp0 = state.rp1 = pi; + } + + // NPUSB[] PUSH N Bytes + // 0x40 + function NPUSHB(state) { + var prog = state.prog; + var ip = state.ip; + var stack = state.stack; + + var n = prog[++ip]; + + if (exports.DEBUG) { + console.log(state.step, 'NPUSHB[]', n); + } + + for (var i = 0; i < n; i++) { + stack.push(prog[++ip]); + } + + state.ip = ip; + } + + // NPUSHW[] PUSH N Words + // 0x41 + function NPUSHW(state) { + var ip = state.ip; + var prog = state.prog; + var stack = state.stack; + var n = prog[++ip]; + + if (exports.DEBUG) { + console.log(state.step, 'NPUSHW[]', n); + } + + for (var i = 0; i < n; i++) { + var w = (prog[++ip] << 8) | prog[++ip]; + if (w & 0x8000) { + w = -((w ^ 0xffff) + 1); + } + stack.push(w); + } + + state.ip = ip; + } + + // WS[] Write Store + // 0x42 + function WS(state) { + var stack = state.stack; + var store = state.store; + + if (!store) { + store = state.store = []; + } + + var v = stack.pop(); + var l = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'WS', v, l); + } + + store[l] = v; + } + + // RS[] Read Store + // 0x43 + function RS(state) { + var stack = state.stack; + var store = state.store; + + var l = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'RS', l); + } + + var v = (store && store[l]) || 0; + + stack.push(v); + } + + // WCVTP[] Write Control Value Table in Pixel units + // 0x44 + function WCVTP(state) { + var stack = state.stack; + + var v = stack.pop(); + var l = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'WCVTP', v, l); + } + + state.cvt[l] = v / 0x40; + } + + // RCVT[] Read Control Value Table entry + // 0x45 + function RCVT(state) { + var stack = state.stack; + var cvte = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'RCVT', cvte); + } + + stack.push(state.cvt[cvte] * 0x40); + } + + // GC[] Get Coordinate projected onto the projection vector + // 0x46-0x47 + function GC(a, state) { + var stack = state.stack; + var pi = stack.pop(); + var p = state.z2[pi]; + + if (exports.DEBUG) { + console.log(state.step, 'GC[' + a + ']', pi); + } + + stack.push(state.dpv.distance(p, HPZero, a, false) * 0x40); + } + + // MD[a] Measure Distance + // 0x49-0x4A + function MD(a, state) { + var stack = state.stack; + var pi2 = stack.pop(); + var pi1 = stack.pop(); + var p2 = state.z1[pi2]; + var p1 = state.z0[pi1]; + var d = state.dpv.distance(p1, p2, a, a); + + if (exports.DEBUG) { + console.log(state.step, 'MD[' + a + ']', pi2, pi1, '->', d); + } + + state.stack.push(Math.round(d * 64)); + } + + // MPPEM[] Measure Pixels Per EM + // 0x4B + function MPPEM(state) { + if (exports.DEBUG) { + console.log(state.step, 'MPPEM[]'); + } + state.stack.push(state.ppem); + } + + // FLIPON[] set the auto FLIP Boolean to ON + // 0x4D + function FLIPON(state) { + if (exports.DEBUG) { + console.log(state.step, 'FLIPON[]'); + } + state.autoFlip = true; + } + + // LT[] Less Than + // 0x50 + function LT(state) { + var stack = state.stack; + var e2 = stack.pop(); + var e1 = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'LT[]', e2, e1); + } + + stack.push(e1 < e2 ? 1 : 0); + } + + // LTEQ[] Less Than or EQual + // 0x53 + function LTEQ(state) { + var stack = state.stack; + var e2 = stack.pop(); + var e1 = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'LTEQ[]', e2, e1); + } + + stack.push(e1 <= e2 ? 1 : 0); + } + + // GTEQ[] Greater Than + // 0x52 + function GT(state) { + var stack = state.stack; + var e2 = stack.pop(); + var e1 = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'GT[]', e2, e1); + } + + stack.push(e1 > e2 ? 1 : 0); + } + + // GTEQ[] Greater Than or EQual + // 0x53 + function GTEQ(state) { + var stack = state.stack; + var e2 = stack.pop(); + var e1 = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'GTEQ[]', e2, e1); + } + + stack.push(e1 >= e2 ? 1 : 0); + } + + // EQ[] EQual + // 0x54 + function EQ(state) { + var stack = state.stack; + var e2 = stack.pop(); + var e1 = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'EQ[]', e2, e1); + } + + stack.push(e2 === e1 ? 1 : 0); + } + + // NEQ[] Not EQual + // 0x55 + function NEQ(state) { + var stack = state.stack; + var e2 = stack.pop(); + var e1 = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'NEQ[]', e2, e1); + } + + stack.push(e2 !== e1 ? 1 : 0); + } + + // ODD[] ODD + // 0x56 + function ODD(state) { + var stack = state.stack; + var n = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'ODD[]', n); + } + + stack.push(Math.trunc(n) % 2 ? 1 : 0); + } + + // EVEN[] EVEN + // 0x57 + function EVEN(state) { + var stack = state.stack; + var n = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'EVEN[]', n); + } + + stack.push(Math.trunc(n) % 2 ? 0 : 1); + } + + // IF[] IF test + // 0x58 + function IF(state) { + var test = state.stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'IF[]', test); + } + + // if test is true it just continues + // if not the ip is skipped until matching ELSE or EIF + if (!test) { + skip(state, true); + + if (exports.DEBUG) { + console.log(state.step, 'EIF[]'); + } + } + } + + // EIF[] End IF + // 0x59 + function EIF(state) { + // this can be reached normally when + // executing an else branch. + // -> just ignore it + + if (exports.DEBUG) { + console.log(state.step, 'EIF[]'); + } + } + + // AND[] logical AND + // 0x5A + function AND(state) { + var stack = state.stack; + var e2 = stack.pop(); + var e1 = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'AND[]', e2, e1); + } + + stack.push(e2 && e1 ? 1 : 0); + } + + // OR[] logical OR + // 0x5B + function OR(state) { + var stack = state.stack; + var e2 = stack.pop(); + var e1 = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'OR[]', e2, e1); + } + + stack.push(e2 || e1 ? 1 : 0); + } + + // NOT[] logical NOT + // 0x5C + function NOT(state) { + var stack = state.stack; + var e = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'NOT[]', e); + } + + stack.push(e ? 0 : 1); + } + + // DELTAP1[] DELTA exception P1 + // DELTAP2[] DELTA exception P2 + // DELTAP3[] DELTA exception P3 + // 0x5D, 0x71, 0x72 + function DELTAP123(b, state) { + var stack = state.stack; + var n = stack.pop(); + var fv = state.fv; + var pv = state.pv; + var ppem = state.ppem; + var base = state.deltaBase + (b - 1) * 16; + var ds = state.deltaShift; + var z0 = state.z0; + + if (exports.DEBUG) { + console.log(state.step, 'DELTAP[' + b + ']', n, stack); + } + + for (var i = 0; i < n; i++) { + var pi = stack.pop(); + var arg = stack.pop(); + var appem = base + ((arg & 0xf0) >> 4); + if (appem !== ppem) { + continue; + } + + var mag = (arg & 0x0f) - 8; + if (mag >= 0) { + mag++; + } + if (exports.DEBUG) { + console.log(state.step, 'DELTAPFIX', pi, 'by', mag * ds); + } + + var p = z0[pi]; + fv.setRelative(p, p, mag * ds, pv); + } + } + + // SDB[] Set Delta Base in the graphics state + // 0x5E + function SDB(state) { + var stack = state.stack; + var n = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SDB[]', n); + } + + state.deltaBase = n; + } + + // SDS[] Set Delta Shift in the graphics state + // 0x5F + function SDS(state) { + var stack = state.stack; + var n = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SDS[]', n); + } + + state.deltaShift = Math.pow(0.5, n); + } + + // ADD[] ADD + // 0x60 + function ADD(state) { + var stack = state.stack; + var n2 = stack.pop(); + var n1 = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'ADD[]', n2, n1); + } + + stack.push(n1 + n2); + } + + // SUB[] SUB + // 0x61 + function SUB(state) { + var stack = state.stack; + var n2 = stack.pop(); + var n1 = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SUB[]', n2, n1); + } + + stack.push(n1 - n2); + } + + // DIV[] DIV + // 0x62 + function DIV(state) { + var stack = state.stack; + var n2 = stack.pop(); + var n1 = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'DIV[]', n2, n1); + } + + stack.push(n1 * 64 / n2); + } + + // MUL[] MUL + // 0x63 + function MUL(state) { + var stack = state.stack; + var n2 = stack.pop(); + var n1 = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'MUL[]', n2, n1); + } + + stack.push(n1 * n2 / 64); + } + + // ABS[] ABSolute value + // 0x64 + function ABS(state) { + var stack = state.stack; + var n = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'ABS[]', n); + } + + stack.push(Math.abs(n)); + } + + // NEG[] NEGate + // 0x65 + function NEG(state) { + var stack = state.stack; + var n = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'NEG[]', n); + } + + stack.push(-n); + } + + // FLOOR[] FLOOR + // 0x66 + function FLOOR(state) { + var stack = state.stack; + var n = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'FLOOR[]', n); + } + + stack.push(Math.floor(n / 0x40) * 0x40); + } + + // CEILING[] CEILING + // 0x67 + function CEILING(state) { + var stack = state.stack; + var n = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'CEILING[]', n); + } + + stack.push(Math.ceil(n / 0x40) * 0x40); + } + + // ROUND[ab] ROUND value + // 0x68-0x6B + function ROUND(dt, state) { + var stack = state.stack; + var n = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'ROUND[]'); + } + + stack.push(state.round(n / 0x40) * 0x40); + } + + // WCVTF[] Write Control Value Table in Funits + // 0x70 + function WCVTF(state) { + var stack = state.stack; + var v = stack.pop(); + var l = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'WCVTF[]', v, l); + } + + state.cvt[l] = v * state.ppem / state.font.unitsPerEm; + } + + // DELTAC1[] DELTA exception C1 + // DELTAC2[] DELTA exception C2 + // DELTAC3[] DELTA exception C3 + // 0x73, 0x74, 0x75 + function DELTAC123(b, state) { + var stack = state.stack; + var n = stack.pop(); + var ppem = state.ppem; + var base = state.deltaBase + (b - 1) * 16; + var ds = state.deltaShift; + + if (exports.DEBUG) { + console.log(state.step, 'DELTAC[' + b + ']', n, stack); + } + + for (var i = 0; i < n; i++) { + var c = stack.pop(); + var arg = stack.pop(); + var appem = base + ((arg & 0xf0) >> 4); + if (appem !== ppem) { + continue; + } + + var mag = (arg & 0x0f) - 8; + if (mag >= 0) { + mag++; + } + + var delta = mag * ds; + + if (exports.DEBUG) { + console.log(state.step, 'DELTACFIX', c, 'by', delta); + } + + state.cvt[c] += delta; + } + } + + // SROUND[] Super ROUND + // 0x76 + function SROUND(state) { + var n = state.stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'SROUND[]', n); + } + + state.round = roundSuper; + + var period; + + switch (n & 0xc0) { + case 0x00: + period = 0.5; + break; + case 0x40: + period = 1; + break; + case 0x80: + period = 2; + break; + default: + throw new Error('invalid SROUND value'); + } + + state.srPeriod = period; + + switch (n & 0x30) { + case 0x00: + state.srPhase = 0; + break; + case 0x10: + state.srPhase = 0.25 * period; + break; + case 0x20: + state.srPhase = 0.5 * period; + break; + case 0x30: + state.srPhase = 0.75 * period; + break; + default: + throw new Error('invalid SROUND value'); + } + + n &= 0x0f; + + if (n === 0) { + state.srThreshold = 0; + } else { + state.srThreshold = (n / 8 - 0.5) * period; + } + } + + // S45ROUND[] Super ROUND 45 degrees + // 0x77 + function S45ROUND(state) { + var n = state.stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'S45ROUND[]', n); + } + + state.round = roundSuper; + + var period; + + switch (n & 0xc0) { + case 0x00: + period = Math.sqrt(2) / 2; + break; + case 0x40: + period = Math.sqrt(2); + break; + case 0x80: + period = 2 * Math.sqrt(2); + break; + default: + throw new Error('invalid S45ROUND value'); + } + + state.srPeriod = period; + + switch (n & 0x30) { + case 0x00: + state.srPhase = 0; + break; + case 0x10: + state.srPhase = 0.25 * period; + break; + case 0x20: + state.srPhase = 0.5 * period; + break; + case 0x30: + state.srPhase = 0.75 * period; + break; + default: + throw new Error('invalid S45ROUND value'); + } + + n &= 0x0f; + + if (n === 0) { + state.srThreshold = 0; + } else { + state.srThreshold = (n / 8 - 0.5) * period; + } + } + + // ROFF[] Round Off + // 0x7A + function ROFF(state) { + if (exports.DEBUG) { + console.log(state.step, 'ROFF[]'); + } + + state.round = roundOff; + } + + // RUTG[] Round Up To Grid + // 0x7C + function RUTG(state) { + if (exports.DEBUG) { + console.log(state.step, 'RUTG[]'); + } + + state.round = roundUpToGrid; + } + + // RDTG[] Round Down To Grid + // 0x7D + function RDTG(state) { + if (exports.DEBUG) { + console.log(state.step, 'RDTG[]'); + } + + state.round = roundDownToGrid; + } + + // SCANCTRL[] SCAN conversion ConTRoL + // 0x85 + function SCANCTRL(state) { + var n = state.stack.pop(); + + // ignored by opentype.js + + if (exports.DEBUG) { + console.log(state.step, 'SCANCTRL[]', n); + } + } + + // SDPVTL[a] Set Dual Projection Vector To Line + // 0x86-0x87 + function SDPVTL(a, state) { + var stack = state.stack; + var p2i = stack.pop(); + var p1i = stack.pop(); + var p2 = state.z2[p2i]; + var p1 = state.z1[p1i]; + + if (exports.DEBUG) { + console.log(state.step, 'SDPVTL[' + a + ']', p2i, p1i); + } + + var dx; + var dy; + + if (!a) { + dx = p1.x - p2.x; + dy = p1.y - p2.y; + } else { + dx = p2.y - p1.y; + dy = p1.x - p2.x; + } + + state.dpv = getUnitVector(dx, dy); + } + + // GETINFO[] GET INFOrmation + // 0x88 + function GETINFO(state) { + var stack = state.stack; + var sel = stack.pop(); + var r = 0; + + if (exports.DEBUG) { + console.log(state.step, 'GETINFO[]', sel); + } + + // v35 as in no subpixel hinting + if (sel & 0x01) { + r = 35; + } + + // TODO rotation and stretch currently not supported + // and thus those GETINFO are always 0. + + // opentype.js is always gray scaling + if (sel & 0x20) { + r |= 0x1000; + } + + stack.push(r); + } + + // ROLL[] ROLL the top three stack elements + // 0x8A + function ROLL(state) { + var stack = state.stack; + var a = stack.pop(); + var b = stack.pop(); + var c = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'ROLL[]'); + } + + stack.push(b); + stack.push(a); + stack.push(c); + } + + // MAX[] MAXimum of top two stack elements + // 0x8B + function MAX(state) { + var stack = state.stack; + var e2 = stack.pop(); + var e1 = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'MAX[]', e2, e1); + } + + stack.push(Math.max(e1, e2)); + } + + // MIN[] MINimum of top two stack elements + // 0x8C + function MIN(state) { + var stack = state.stack; + var e2 = stack.pop(); + var e1 = stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'MIN[]', e2, e1); + } + + stack.push(Math.min(e1, e2)); + } + + // SCANTYPE[] SCANTYPE + // 0x8D + function SCANTYPE(state) { + var n = state.stack.pop(); + // ignored by opentype.js + if (exports.DEBUG) { + console.log(state.step, 'SCANTYPE[]', n); + } + } + + // INSTCTRL[] INSTCTRL + // 0x8D + function INSTCTRL(state) { + var s = state.stack.pop(); + var v = state.stack.pop(); + + if (exports.DEBUG) { + console.log(state.step, 'INSTCTRL[]', s, v); + } + + switch (s) { + case 1: + state.inhibitGridFit = !!v; + return; + case 2: + state.ignoreCvt = !!v; + return; + default: + throw new Error('invalid INSTCTRL[] selector'); + } + } + + // PUSHB[abc] PUSH Bytes + // 0xB0-0xB7 + function PUSHB(n, state) { + var stack = state.stack; + var prog = state.prog; + var ip = state.ip; + + if (exports.DEBUG) { + console.log(state.step, 'PUSHB[' + n + ']'); + } + + for (var i = 0; i < n; i++) { + stack.push(prog[++ip]); + } + + state.ip = ip; + } + + // PUSHW[abc] PUSH Words + // 0xB8-0xBF + function PUSHW(n, state) { + var ip = state.ip; + var prog = state.prog; + var stack = state.stack; + + if (exports.DEBUG) { + console.log(state.ip, 'PUSHW[' + n + ']'); + } + + for (var i = 0; i < n; i++) { + var w = (prog[++ip] << 8) | prog[++ip]; + if (w & 0x8000) { + w = -((w ^ 0xffff) + 1); + } + stack.push(w); + } + + state.ip = ip; + } + + // MDRP[abcde] Move Direct Relative Point + // 0xD0-0xEF + // (if indirect is 0) + // + // and + // + // MIRP[abcde] Move Indirect Relative Point + // 0xE0-0xFF + // (if indirect is 1) + + function MDRP_MIRP(indirect, setRp0, keepD, ro, dt, state) { + var stack = state.stack; + var cvte = indirect && stack.pop(); + var pi = stack.pop(); + var rp0i = state.rp0; + var rp = state.z0[rp0i]; + var p = state.z1[pi]; + + var md = state.minDis; + var fv = state.fv; + var pv = state.dpv; + var od; // original distance + var d; // moving distance + var sign; // sign of distance + var cv; + + d = od = pv.distance(p, rp, true, true); + sign = d >= 0 ? 1 : -1; // Math.sign would be 0 in case of 0 + + // TODO consider autoFlip + d = Math.abs(d); + + if (indirect) { + cv = state.cvt[cvte]; + + if (ro && Math.abs(d - cv) < state.cvCutIn) { + d = cv; + } + } + + if (keepD && d < md) { + d = md; + } + + if (ro) { + d = state.round(d); + } + + fv.setRelative(p, rp, sign * d, pv); + fv.touch(p); + + if (exports.DEBUG) { + console.log( + state.step, + (indirect ? 'MIRP[' : 'MDRP[') + + (setRp0 ? 'M' : 'm') + + (keepD ? '>' : '_') + + (ro ? 'R' : '_') + + (dt === 0 ? 'Gr' : dt === 1 ? 'Bl' : dt === 2 ? 'Wh' : '') + + ']', + indirect ? cvte + '(' + state.cvt[cvte] + ',' + cv + ')' : '', + pi, + '(d =', + od, + '->', + sign * d, + ')' + ); + } + + state.rp1 = state.rp0; + state.rp2 = pi; + if (setRp0) { + state.rp0 = pi; + } + } + + /* + * The instruction table. + */ + instructionTable = [ + /* 0x00 */ SVTCA.bind(undefined, yUnitVector), + /* 0x01 */ SVTCA.bind(undefined, xUnitVector), + /* 0x02 */ SPVTCA.bind(undefined, yUnitVector), + /* 0x03 */ SPVTCA.bind(undefined, xUnitVector), + /* 0x04 */ SFVTCA.bind(undefined, yUnitVector), + /* 0x05 */ SFVTCA.bind(undefined, xUnitVector), + /* 0x06 */ SPVTL.bind(undefined, 0), + /* 0x07 */ SPVTL.bind(undefined, 1), + /* 0x08 */ SFVTL.bind(undefined, 0), + /* 0x09 */ SFVTL.bind(undefined, 1), + /* 0x0A */ SPVFS, + /* 0x0B */ SFVFS, + /* 0x0C */ GPV, + /* 0x0D */ GFV, + /* 0x0E */ SFVTPV, + /* 0x0F */ ISECT, + /* 0x10 */ SRP0, + /* 0x11 */ SRP1, + /* 0x12 */ SRP2, + /* 0x13 */ SZP0, + /* 0x14 */ SZP1, + /* 0x15 */ SZP2, + /* 0x16 */ SZPS, + /* 0x17 */ SLOOP, + /* 0x18 */ RTG, + /* 0x19 */ RTHG, + /* 0x1A */ SMD, + /* 0x1B */ ELSE, + /* 0x1C */ JMPR, + /* 0x1D */ SCVTCI, + /* 0x1E */ undefined, // TODO SSWCI + /* 0x1F */ undefined, // TODO SSW + /* 0x20 */ DUP, + /* 0x21 */ POP, + /* 0x22 */ CLEAR, + /* 0x23 */ SWAP, + /* 0x24 */ DEPTH, + /* 0x25 */ CINDEX, + /* 0x26 */ MINDEX, + /* 0x27 */ undefined, // TODO ALIGNPTS + /* 0x28 */ undefined, + /* 0x29 */ undefined, // TODO UTP + /* 0x2A */ LOOPCALL, + /* 0x2B */ CALL, + /* 0x2C */ FDEF, + /* 0x2D */ undefined, // ENDF (eaten by FDEF) + /* 0x2E */ MDAP.bind(undefined, 0), + /* 0x2F */ MDAP.bind(undefined, 1), + /* 0x30 */ IUP.bind(undefined, yUnitVector), + /* 0x31 */ IUP.bind(undefined, xUnitVector), + /* 0x32 */ SHP.bind(undefined, 0), + /* 0x33 */ SHP.bind(undefined, 1), + /* 0x34 */ SHC.bind(undefined, 0), + /* 0x35 */ SHC.bind(undefined, 1), + /* 0x36 */ SHZ.bind(undefined, 0), + /* 0x37 */ SHZ.bind(undefined, 1), + /* 0x38 */ SHPIX, + /* 0x39 */ IP, + /* 0x3A */ MSIRP.bind(undefined, 0), + /* 0x3B */ MSIRP.bind(undefined, 1), + /* 0x3C */ ALIGNRP, + /* 0x3D */ RTDG, + /* 0x3E */ MIAP.bind(undefined, 0), + /* 0x3F */ MIAP.bind(undefined, 1), + /* 0x40 */ NPUSHB, + /* 0x41 */ NPUSHW, + /* 0x42 */ WS, + /* 0x43 */ RS, + /* 0x44 */ WCVTP, + /* 0x45 */ RCVT, + /* 0x46 */ GC.bind(undefined, 0), + /* 0x47 */ GC.bind(undefined, 1), + /* 0x48 */ undefined, // TODO SCFS + /* 0x49 */ MD.bind(undefined, 0), + /* 0x4A */ MD.bind(undefined, 1), + /* 0x4B */ MPPEM, + /* 0x4C */ undefined, // TODO MPS + /* 0x4D */ FLIPON, + /* 0x4E */ undefined, // TODO FLIPOFF + /* 0x4F */ undefined, // TODO DEBUG + /* 0x50 */ LT, + /* 0x51 */ LTEQ, + /* 0x52 */ GT, + /* 0x53 */ GTEQ, + /* 0x54 */ EQ, + /* 0x55 */ NEQ, + /* 0x56 */ ODD, + /* 0x57 */ EVEN, + /* 0x58 */ IF, + /* 0x59 */ EIF, + /* 0x5A */ AND, + /* 0x5B */ OR, + /* 0x5C */ NOT, + /* 0x5D */ DELTAP123.bind(undefined, 1), + /* 0x5E */ SDB, + /* 0x5F */ SDS, + /* 0x60 */ ADD, + /* 0x61 */ SUB, + /* 0x62 */ DIV, + /* 0x63 */ MUL, + /* 0x64 */ ABS, + /* 0x65 */ NEG, + /* 0x66 */ FLOOR, + /* 0x67 */ CEILING, + /* 0x68 */ ROUND.bind(undefined, 0), + /* 0x69 */ ROUND.bind(undefined, 1), + /* 0x6A */ ROUND.bind(undefined, 2), + /* 0x6B */ ROUND.bind(undefined, 3), + /* 0x6C */ undefined, // TODO NROUND[ab] + /* 0x6D */ undefined, // TODO NROUND[ab] + /* 0x6E */ undefined, // TODO NROUND[ab] + /* 0x6F */ undefined, // TODO NROUND[ab] + /* 0x70 */ WCVTF, + /* 0x71 */ DELTAP123.bind(undefined, 2), + /* 0x72 */ DELTAP123.bind(undefined, 3), + /* 0x73 */ DELTAC123.bind(undefined, 1), + /* 0x74 */ DELTAC123.bind(undefined, 2), + /* 0x75 */ DELTAC123.bind(undefined, 3), + /* 0x76 */ SROUND, + /* 0x77 */ S45ROUND, + /* 0x78 */ undefined, // TODO JROT[] + /* 0x79 */ undefined, // TODO JROF[] + /* 0x7A */ ROFF, + /* 0x7B */ undefined, + /* 0x7C */ RUTG, + /* 0x7D */ RDTG, + /* 0x7E */ POP, // actually SANGW, supposed to do only a pop though + /* 0x7F */ POP, // actually AA, supposed to do only a pop though + /* 0x80 */ undefined, // TODO FLIPPT + /* 0x81 */ undefined, // TODO FLIPRGON + /* 0x82 */ undefined, // TODO FLIPRGOFF + /* 0x83 */ undefined, + /* 0x84 */ undefined, + /* 0x85 */ SCANCTRL, + /* 0x86 */ SDPVTL.bind(undefined, 0), + /* 0x87 */ SDPVTL.bind(undefined, 1), + /* 0x88 */ GETINFO, + /* 0x89 */ undefined, // TODO IDEF + /* 0x8A */ ROLL, + /* 0x8B */ MAX, + /* 0x8C */ MIN, + /* 0x8D */ SCANTYPE, + /* 0x8E */ INSTCTRL, + /* 0x8F */ undefined, + /* 0x90 */ undefined, + /* 0x91 */ undefined, + /* 0x92 */ undefined, + /* 0x93 */ undefined, + /* 0x94 */ undefined, + /* 0x95 */ undefined, + /* 0x96 */ undefined, + /* 0x97 */ undefined, + /* 0x98 */ undefined, + /* 0x99 */ undefined, + /* 0x9A */ undefined, + /* 0x9B */ undefined, + /* 0x9C */ undefined, + /* 0x9D */ undefined, + /* 0x9E */ undefined, + /* 0x9F */ undefined, + /* 0xA0 */ undefined, + /* 0xA1 */ undefined, + /* 0xA2 */ undefined, + /* 0xA3 */ undefined, + /* 0xA4 */ undefined, + /* 0xA5 */ undefined, + /* 0xA6 */ undefined, + /* 0xA7 */ undefined, + /* 0xA8 */ undefined, + /* 0xA9 */ undefined, + /* 0xAA */ undefined, + /* 0xAB */ undefined, + /* 0xAC */ undefined, + /* 0xAD */ undefined, + /* 0xAE */ undefined, + /* 0xAF */ undefined, + /* 0xB0 */ PUSHB.bind(undefined, 1), + /* 0xB1 */ PUSHB.bind(undefined, 2), + /* 0xB2 */ PUSHB.bind(undefined, 3), + /* 0xB3 */ PUSHB.bind(undefined, 4), + /* 0xB4 */ PUSHB.bind(undefined, 5), + /* 0xB5 */ PUSHB.bind(undefined, 6), + /* 0xB6 */ PUSHB.bind(undefined, 7), + /* 0xB7 */ PUSHB.bind(undefined, 8), + /* 0xB8 */ PUSHW.bind(undefined, 1), + /* 0xB9 */ PUSHW.bind(undefined, 2), + /* 0xBA */ PUSHW.bind(undefined, 3), + /* 0xBB */ PUSHW.bind(undefined, 4), + /* 0xBC */ PUSHW.bind(undefined, 5), + /* 0xBD */ PUSHW.bind(undefined, 6), + /* 0xBE */ PUSHW.bind(undefined, 7), + /* 0xBF */ PUSHW.bind(undefined, 8), + /* 0xC0 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 0, 0), + /* 0xC1 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 0, 1), + /* 0xC2 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 0, 2), + /* 0xC3 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 0, 3), + /* 0xC4 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 1, 0), + /* 0xC5 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 1, 1), + /* 0xC6 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 1, 2), + /* 0xC7 */ MDRP_MIRP.bind(undefined, 0, 0, 0, 1, 3), + /* 0xC8 */ MDRP_MIRP.bind(undefined, 0, 0, 1, 0, 0), + /* 0xC9 */ MDRP_MIRP.bind(undefined, 0, 0, 1, 0, 1), + /* 0xCA */ MDRP_MIRP.bind(undefined, 0, 0, 1, 0, 2), + /* 0xCB */ MDRP_MIRP.bind(undefined, 0, 0, 1, 0, 3), + /* 0xCC */ MDRP_MIRP.bind(undefined, 0, 0, 1, 1, 0), + /* 0xCD */ MDRP_MIRP.bind(undefined, 0, 0, 1, 1, 1), + /* 0xCE */ MDRP_MIRP.bind(undefined, 0, 0, 1, 1, 2), + /* 0xCF */ MDRP_MIRP.bind(undefined, 0, 0, 1, 1, 3), + /* 0xD0 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 0, 0), + /* 0xD1 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 0, 1), + /* 0xD2 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 0, 2), + /* 0xD3 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 0, 3), + /* 0xD4 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 1, 0), + /* 0xD5 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 1, 1), + /* 0xD6 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 1, 2), + /* 0xD7 */ MDRP_MIRP.bind(undefined, 0, 1, 0, 1, 3), + /* 0xD8 */ MDRP_MIRP.bind(undefined, 0, 1, 1, 0, 0), + /* 0xD9 */ MDRP_MIRP.bind(undefined, 0, 1, 1, 0, 1), + /* 0xDA */ MDRP_MIRP.bind(undefined, 0, 1, 1, 0, 2), + /* 0xDB */ MDRP_MIRP.bind(undefined, 0, 1, 1, 0, 3), + /* 0xDC */ MDRP_MIRP.bind(undefined, 0, 1, 1, 1, 0), + /* 0xDD */ MDRP_MIRP.bind(undefined, 0, 1, 1, 1, 1), + /* 0xDE */ MDRP_MIRP.bind(undefined, 0, 1, 1, 1, 2), + /* 0xDF */ MDRP_MIRP.bind(undefined, 0, 1, 1, 1, 3), + /* 0xE0 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 0, 0), + /* 0xE1 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 0, 1), + /* 0xE2 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 0, 2), + /* 0xE3 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 0, 3), + /* 0xE4 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 1, 0), + /* 0xE5 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 1, 1), + /* 0xE6 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 1, 2), + /* 0xE7 */ MDRP_MIRP.bind(undefined, 1, 0, 0, 1, 3), + /* 0xE8 */ MDRP_MIRP.bind(undefined, 1, 0, 1, 0, 0), + /* 0xE9 */ MDRP_MIRP.bind(undefined, 1, 0, 1, 0, 1), + /* 0xEA */ MDRP_MIRP.bind(undefined, 1, 0, 1, 0, 2), + /* 0xEB */ MDRP_MIRP.bind(undefined, 1, 0, 1, 0, 3), + /* 0xEC */ MDRP_MIRP.bind(undefined, 1, 0, 1, 1, 0), + /* 0xED */ MDRP_MIRP.bind(undefined, 1, 0, 1, 1, 1), + /* 0xEE */ MDRP_MIRP.bind(undefined, 1, 0, 1, 1, 2), + /* 0xEF */ MDRP_MIRP.bind(undefined, 1, 0, 1, 1, 3), + /* 0xF0 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 0, 0), + /* 0xF1 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 0, 1), + /* 0xF2 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 0, 2), + /* 0xF3 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 0, 3), + /* 0xF4 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 1, 0), + /* 0xF5 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 1, 1), + /* 0xF6 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 1, 2), + /* 0xF7 */ MDRP_MIRP.bind(undefined, 1, 1, 0, 1, 3), + /* 0xF8 */ MDRP_MIRP.bind(undefined, 1, 1, 1, 0, 0), + /* 0xF9 */ MDRP_MIRP.bind(undefined, 1, 1, 1, 0, 1), + /* 0xFA */ MDRP_MIRP.bind(undefined, 1, 1, 1, 0, 2), + /* 0xFB */ MDRP_MIRP.bind(undefined, 1, 1, 1, 0, 3), + /* 0xFC */ MDRP_MIRP.bind(undefined, 1, 1, 1, 1, 0), + /* 0xFD */ MDRP_MIRP.bind(undefined, 1, 1, 1, 1, 1), + /* 0xFE */ MDRP_MIRP.bind(undefined, 1, 1, 1, 1, 2), + /* 0xFF */ MDRP_MIRP.bind(undefined, 1, 1, 1, 1, 3) + ]; + + /***************************** + Mathematical Considerations + ****************************** + + fv ... refers to freedom vector + pv ... refers to projection vector + rp ... refers to reference point + p ... refers to to point being operated on + d ... refers to distance + + SETRELATIVE: + ============ + + case freedom vector == x-axis: + ------------------------------ + + (pv) + .-' + rpd .-' + .-* + d .-'90ยฐ' + .-' ' + .-' ' + *-' ' b + rp ' + ' + ' + p *----------*-------------- (fv) + pm + + rpdx = rpx + d * pv.x + rpdy = rpy + d * pv.y + + equation of line b + + y - rpdy = pvns * (x- rpdx) + + y = p.y + + x = rpdx + ( p.y - rpdy ) / pvns + + + case freedom vector == y-axis: + ------------------------------ + + * pm + |\ + | \ + | \ + | \ + | \ + | \ + | \ + | \ + | \ + | \ b + | \ + | \ + | \ .-' (pv) + | 90ยฐ \.-' + | .-'* rpd + | .-' + * *-' d + p rp + + rpdx = rpx + d * pv.x + rpdy = rpy + d * pv.y + + equation of line b: + pvns ... normal slope to pv + + y - rpdy = pvns * (x - rpdx) + + x = p.x + + y = rpdy + pvns * (p.x - rpdx) + + + + generic case: + ------------- + + + .'(fv) + .' + .* pm + .' ! + .' . + .' ! + .' . b + .' ! + * . + p ! + 90ยฐ . ... (pv) + ...-*-''' + ...---''' rpd + ...---''' d + *--''' + rp + + rpdx = rpx + d * pv.x + rpdy = rpy + d * pv.y + + equation of line b: + pvns... normal slope to pv + + y - rpdy = pvns * (x - rpdx) + + equation of freedom vector line: + fvs ... slope of freedom vector (=fy/fx) + + y - py = fvs * (x - px) + + + on pm both equations are true for same x/y + + y - rpdy = pvns * (x - rpdx) + + y - py = fvs * (x - px) + + form to y and set equal: + + pvns * (x - rpdx) + rpdy = fvs * (x - px) + py + + expand: + + pvns * x - pvns * rpdx + rpdy = fvs * x - fvs * px + py + + switch: + + fvs * x - fvs * px + py = pvns * x - pvns * rpdx + rpdy + + solve for x: + + fvs * x - pvns * x = fvs * px - pvns * rpdx - py + rpdy + + + + fvs * px - pvns * rpdx + rpdy - py + x = ----------------------------------- + fvs - pvns + + and: + + y = fvs * (x - px) + py + + + + INTERPOLATE: + ============ + + Examples of point interpolation. + + The weight of the movement of the reference point gets bigger + the further the other reference point is away, thus the safest + option (that is avoiding 0/0 divisions) is to weight the + original distance of the other point by the sum of both distances. + + If the sum of both distances is 0, then move the point by the + arithmetic average of the movement of both reference points. + + + + + (+6) + rp1o *---->*rp1 + . . (+12) + . . rp2o *---------->* rp2 + . . . . + . . . . + . 10 20 . . + |.........|...................| . + . . . + . . (+8) . + po *------>*p . + . . . + . 12 . 24 . + |...........|.......................| + 36 + + + ------- + + + + (+10) + rp1o *-------->*rp1 + . . (-10) + . . rp2 *<---------* rpo2 + . . . . + . . . . + . 10 . 30 . . + |.........|.............................| + . . + . (+5) . + po *--->* p . + . . . + . . 20 . + |....|..............| + 5 15 + + + ------- + + + (+10) + rp1o *-------->*rp1 + . . + . . + rp2o *-------->*rp2 + + + (+10) + po *-------->* p + + ------- + + + (+10) + rp1o *-------->*rp1 + . . + . .(+30) + rp2o *---------------------------->*rp2 + + + (+25) + po *----------------------->* p + + + + vim: set ts=4 sw=4 expandtab: + *****/ + + // The Font object + + // This code is based on Array.from implementation for strings in https://github.com/mathiasbynens/Array.from + var arrayFromString = + Array.from || + function(s) { + return ( + s.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]?|[^\uD800-\uDFFF]|./g) || [] + ); + }; + + /** + * @typedef FontOptions + * @type Object + * @property {Boolean} empty - whether to create a new empty font + * @property {string} familyName + * @property {string} styleName + * @property {string=} fullName + * @property {string=} postScriptName + * @property {string=} designer + * @property {string=} designerURL + * @property {string=} manufacturer + * @property {string=} manufacturerURL + * @property {string=} license + * @property {string=} licenseURL + * @property {string=} version + * @property {string=} description + * @property {string=} copyright + * @property {string=} trademark + * @property {Number} unitsPerEm + * @property {Number} ascender + * @property {Number} descender + * @property {Number} createdTimestamp + * @property {string=} weightClass + * @property {string=} widthClass + * @property {string=} fsSelection + */ + + /** + * A Font represents a loaded OpenType font file. + * It contains a set of glyphs and methods to draw text on a drawing context, + * or to get a path representing the text. + * @exports opentype.Font + * @class + * @param {FontOptions} + * @constructor + */ + function Font(options) { + options = options || {}; + + if (!options.empty) { + // Check that we've provided the minimum set of names. + checkArgument( + options.familyName, + 'When creating a new Font object, familyName is required.' + ); + checkArgument( + options.styleName, + 'When creating a new Font object, styleName is required.' + ); + checkArgument( + options.unitsPerEm, + 'When creating a new Font object, unitsPerEm is required.' + ); + checkArgument( + options.ascender, + 'When creating a new Font object, ascender is required.' + ); + checkArgument( + options.descender, + 'When creating a new Font object, descender is required.' + ); + checkArgument( + options.descender < 0, + 'Descender should be negative (e.g. -512).' + ); + + // OS X will complain if the names are empty, so we put a single space everywhere by default. + this.names = { + fontFamily: { en: options.familyName || ' ' }, + fontSubfamily: { en: options.styleName || ' ' }, + fullName: { + en: options.fullName || options.familyName + ' ' + options.styleName + }, + // postScriptName may not contain any whitespace + postScriptName: { + en: + options.postScriptName || + (options.familyName + options.styleName).replace(/\s/g, '') + }, + designer: { en: options.designer || ' ' }, + designerURL: { en: options.designerURL || ' ' }, + manufacturer: { en: options.manufacturer || ' ' }, + manufacturerURL: { en: options.manufacturerURL || ' ' }, + license: { en: options.license || ' ' }, + licenseURL: { en: options.licenseURL || ' ' }, + version: { en: options.version || 'Version 0.1' }, + description: { en: options.description || ' ' }, + copyright: { en: options.copyright || ' ' }, + trademark: { en: options.trademark || ' ' } + }; + this.unitsPerEm = options.unitsPerEm || 1000; + this.ascender = options.ascender; + this.descender = options.descender; + this.createdTimestamp = options.createdTimestamp; + this.tables = { + os2: { + usWeightClass: options.weightClass || this.usWeightClasses.MEDIUM, + usWidthClass: options.widthClass || this.usWidthClasses.MEDIUM, + fsSelection: options.fsSelection || this.fsSelectionValues.REGULAR + } + }; + } + + this.supported = true; // Deprecated: parseBuffer will throw an error if font is not supported. + this.glyphs = new glyphset.GlyphSet(this, options.glyphs || []); + this.encoding = new DefaultEncoding(this); + this.position = new Position(this); + this.substitution = new Substitution(this); + this.tables = this.tables || {}; + + Object.defineProperty(this, 'hinting', { + get: function() { + if (this._hinting) { + return this._hinting; + } + if (this.outlinesFormat === 'truetype') { + return (this._hinting = new Hinting(this)); + } + } + }); + } + + /** + * Check if the font has a glyph for the given character. + * @param {string} + * @return {Boolean} + */ + Font.prototype.hasChar = function(c) { + return this.encoding.charToGlyphIndex(c) !== null; + }; + + /** + * Convert the given character to a single glyph index. + * Note that this function assumes that there is a one-to-one mapping between + * the given character and a glyph; for complex scripts this might not be the case. + * @param {string} + * @return {Number} + */ + Font.prototype.charToGlyphIndex = function(s) { + return this.encoding.charToGlyphIndex(s); + }; + + /** + * Convert the given character to a single Glyph object. + * Note that this function assumes that there is a one-to-one mapping between + * the given character and a glyph; for complex scripts this might not be the case. + * @param {string} + * @return {opentype.Glyph} + */ + Font.prototype.charToGlyph = function(c) { + var glyphIndex = this.charToGlyphIndex(c); + var glyph = this.glyphs.get(glyphIndex); + if (!glyph) { + // .notdef + glyph = this.glyphs.get(0); + } + + return glyph; + }; + + /** + * Convert the given text to a list of Glyph objects. + * Note that there is no strict one-to-one mapping between characters and + * glyphs, so the list of returned glyphs can be larger or smaller than the + * length of the given string. + * @param {string} + * @param {GlyphRenderOptions} [options] + * @return {opentype.Glyph[]} + */ + Font.prototype.stringToGlyphs = function(s, options) { + var this$1 = this; + + options = options || this.defaultRenderOptions; + // Get glyph indexes + var chars = arrayFromString(s); + var indexes = []; + for (var i = 0; i < chars.length; i += 1) { + var c = chars[i]; + indexes.push(this$1.charToGlyphIndex(c)); + } + var length = indexes.length; + + // Apply substitutions on glyph indexes + if (options.features) { + var script = options.script || this.substitution.getDefaultScriptName(); + var manyToOne = []; + if (options.features.liga) { + manyToOne = manyToOne.concat( + this.substitution.getFeature('liga', script, options.language) + ); + } + if (options.features.rlig) { + manyToOne = manyToOne.concat( + this.substitution.getFeature('rlig', script, options.language) + ); + } + for (var i$1 = 0; i$1 < length; i$1 += 1) { + for (var j = 0; j < manyToOne.length; j++) { + var ligature = manyToOne[j]; + var components = ligature.sub; + var compCount = components.length; + var k = 0; + while (k < compCount && components[k] === indexes[i$1 + k]) { + k++; + } + if (k === compCount) { + indexes.splice(i$1, compCount, ligature.by); + length = length - compCount + 1; + } + } + } + } + + // convert glyph indexes to glyph objects + var glyphs = new Array(length); + var notdef = this.glyphs.get(0); + for (var i$2 = 0; i$2 < length; i$2 += 1) { + glyphs[i$2] = this$1.glyphs.get(indexes[i$2]) || notdef; + } + return glyphs; + }; + + /** + * @param {string} + * @return {Number} + */ + Font.prototype.nameToGlyphIndex = function(name) { + return this.glyphNames.nameToGlyphIndex(name); + }; + + /** + * @param {string} + * @return {opentype.Glyph} + */ + Font.prototype.nameToGlyph = function(name) { + var glyphIndex = this.nameToGlyphIndex(name); + var glyph = this.glyphs.get(glyphIndex); + if (!glyph) { + // .notdef + glyph = this.glyphs.get(0); + } + + return glyph; + }; + + /** + * @param {Number} + * @return {String} + */ + Font.prototype.glyphIndexToName = function(gid) { + if (!this.glyphNames.glyphIndexToName) { + return ''; + } + + return this.glyphNames.glyphIndexToName(gid); + }; + + /** + * Retrieve the value of the kerning pair between the left glyph (or its index) + * and the right glyph (or its index). If no kerning pair is found, return 0. + * The kerning value gets added to the advance width when calculating the spacing + * between glyphs. + * For GPOS kerning, this method uses the default script and language, which covers + * most use cases. To have greater control, use font.position.getKerningValue . + * @param {opentype.Glyph} leftGlyph + * @param {opentype.Glyph} rightGlyph + * @return {Number} + */ + Font.prototype.getKerningValue = function(leftGlyph, rightGlyph) { + leftGlyph = leftGlyph.index || leftGlyph; + rightGlyph = rightGlyph.index || rightGlyph; + var gposKerning = this.position.defaultKerningTables; + if (gposKerning) { + return this.position.getKerningValue(gposKerning, leftGlyph, rightGlyph); + } + // "kern" table + return this.kerningPairs[leftGlyph + ',' + rightGlyph] || 0; + }; + + /** + * @typedef GlyphRenderOptions + * @type Object + * @property {string} [script] - script used to determine which features to apply. By default, 'DFLT' or 'latn' is used. + * See https://www.microsoft.com/typography/otspec/scripttags.htm + * @property {string} [language='dflt'] - language system used to determine which features to apply. + * See https://www.microsoft.com/typography/developers/opentype/languagetags.aspx + * @property {boolean} [kerning=true] - whether to include kerning values + * @property {object} [features] - OpenType Layout feature tags. Used to enable or disable the features of the given script/language system. + * See https://www.microsoft.com/typography/otspec/featuretags.htm + */ + Font.prototype.defaultRenderOptions = { + kerning: true, + features: { + liga: true, + rlig: true + } + }; + + /** + * Helper function that invokes the given callback for each glyph in the given text. + * The callback gets `(glyph, x, y, fontSize, options)`.* @param {string} text + * @param {string} text - The text to apply. + * @param {number} [x=0] - Horizontal position of the beginning of the text. + * @param {number} [y=0] - Vertical position of the *baseline* of the text. + * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. + * @param {GlyphRenderOptions=} options + * @param {Function} callback + */ + Font.prototype.forEachGlyph = function( + text, + x, + y, + fontSize, + options, + callback + ) { + var this$1 = this; + + x = x !== undefined ? x : 0; + y = y !== undefined ? y : 0; + fontSize = fontSize !== undefined ? fontSize : 72; + options = options || this.defaultRenderOptions; + var fontScale = 1 / this.unitsPerEm * fontSize; + var glyphs = this.stringToGlyphs(text, options); + var kerningLookups; + if (options.kerning) { + var script = options.script || this.position.getDefaultScriptName(); + kerningLookups = this.position.getKerningTables(script, options.language); + } + for (var i = 0; i < glyphs.length; i += 1) { + var glyph = glyphs[i]; + callback.call(this$1, glyph, x, y, fontSize, options); + if (glyph.advanceWidth) { + x += glyph.advanceWidth * fontScale; + } + + if (options.kerning && i < glyphs.length - 1) { + // We should apply position adjustment lookups in a more generic way. + // Here we only use the xAdvance value. + var kerningValue = kerningLookups + ? this$1.position.getKerningValue( + kerningLookups, + glyph.index, + glyphs[i + 1].index + ) + : this$1.getKerningValue(glyph, glyphs[i + 1]); + x += kerningValue * fontScale; + } + + if (options.letterSpacing) { + x += options.letterSpacing * fontSize; + } else if (options.tracking) { + x += options.tracking / 1000 * fontSize; + } + } + return x; + }; + + /** + * Create a Path object that represents the given text. + * @param {string} text - The text to create. + * @param {number} [x=0] - Horizontal position of the beginning of the text. + * @param {number} [y=0] - Vertical position of the *baseline* of the text. + * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. + * @param {GlyphRenderOptions=} options + * @return {opentype.Path} + */ + Font.prototype.getPath = function(text, x, y, fontSize, options) { + var fullPath = new Path(); + this.forEachGlyph(text, x, y, fontSize, options, function( + glyph, + gX, + gY, + gFontSize + ) { + var glyphPath = glyph.getPath(gX, gY, gFontSize, options, this); + fullPath.extend(glyphPath); + }); + return fullPath; + }; + + /** + * Create an array of Path objects that represent the glyphs of a given text. + * @param {string} text - The text to create. + * @param {number} [x=0] - Horizontal position of the beginning of the text. + * @param {number} [y=0] - Vertical position of the *baseline* of the text. + * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. + * @param {GlyphRenderOptions=} options + * @return {opentype.Path[]} + */ + Font.prototype.getPaths = function(text, x, y, fontSize, options) { + var glyphPaths = []; + this.forEachGlyph(text, x, y, fontSize, options, function( + glyph, + gX, + gY, + gFontSize + ) { + var glyphPath = glyph.getPath(gX, gY, gFontSize, options, this); + glyphPaths.push(glyphPath); + }); + + return glyphPaths; + }; + + /** + * Returns the advance width of a text. + * + * This is something different than Path.getBoundingBox() as for example a + * suffixed whitespace increases the advanceWidth but not the bounding box + * or an overhanging letter like a calligraphic 'f' might have a quite larger + * bounding box than its advance width. + * + * This corresponds to canvas2dContext.measureText(text).width + * + * @param {string} text - The text to create. + * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. + * @param {GlyphRenderOptions=} options + * @return advance width + */ + Font.prototype.getAdvanceWidth = function(text, fontSize, options) { + return this.forEachGlyph(text, 0, 0, fontSize, options, function() {}); + }; + + /** + * Draw the text on the given drawing context. + * @param {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas. + * @param {string} text - The text to create. + * @param {number} [x=0] - Horizontal position of the beginning of the text. + * @param {number} [y=0] - Vertical position of the *baseline* of the text. + * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. + * @param {GlyphRenderOptions=} options + */ + Font.prototype.draw = function(ctx, text, x, y, fontSize, options) { + this.getPath(text, x, y, fontSize, options).draw(ctx); + }; + + /** + * Draw the points of all glyphs in the text. + * On-curve points will be drawn in blue, off-curve points will be drawn in red. + * @param {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas. + * @param {string} text - The text to create. + * @param {number} [x=0] - Horizontal position of the beginning of the text. + * @param {number} [y=0] - Vertical position of the *baseline* of the text. + * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. + * @param {GlyphRenderOptions=} options + */ + Font.prototype.drawPoints = function(ctx, text, x, y, fontSize, options) { + this.forEachGlyph(text, x, y, fontSize, options, function( + glyph, + gX, + gY, + gFontSize + ) { + glyph.drawPoints(ctx, gX, gY, gFontSize); + }); + }; + + /** + * Draw lines indicating important font measurements for all glyphs in the text. + * Black lines indicate the origin of the coordinate system (point 0,0). + * Blue lines indicate the glyph bounding box. + * Green line indicates the advance width of the glyph. + * @param {CanvasRenderingContext2D} ctx - A 2D drawing context, like Canvas. + * @param {string} text - The text to create. + * @param {number} [x=0] - Horizontal position of the beginning of the text. + * @param {number} [y=0] - Vertical position of the *baseline* of the text. + * @param {number} [fontSize=72] - Font size in pixels. We scale the glyph units by `1 / unitsPerEm * fontSize`. + * @param {GlyphRenderOptions=} options + */ + Font.prototype.drawMetrics = function(ctx, text, x, y, fontSize, options) { + this.forEachGlyph(text, x, y, fontSize, options, function( + glyph, + gX, + gY, + gFontSize + ) { + glyph.drawMetrics(ctx, gX, gY, gFontSize); + }); + }; + + /** + * @param {string} + * @return {string} + */ + Font.prototype.getEnglishName = function(name) { + var translations = this.names[name]; + if (translations) { + return translations.en; + } + }; + + /** + * Validate + */ + Font.prototype.validate = function() { + var _this = this; + + function assert(predicate, message) {} + + function assertNamePresent(name) { + var englishName = _this.getEnglishName(name); + assert( + englishName && englishName.trim().length > 0, + 'No English ' + name + ' specified.' + ); + } + + // Identification information + assertNamePresent('fontFamily'); + assertNamePresent('weightName'); + assertNamePresent('manufacturer'); + assertNamePresent('copyright'); + assertNamePresent('version'); + + // Dimension information + assert(this.unitsPerEm > 0, 'No unitsPerEm specified.'); + }; + + /** + * Convert the font object to a SFNT data structure. + * This structure contains all the necessary tables and metadata to create a binary OTF file. + * @return {opentype.Table} + */ + Font.prototype.toTables = function() { + return sfnt.fontToTable(this); + }; + /** + * @deprecated Font.toBuffer is deprecated. Use Font.toArrayBuffer instead. + */ + Font.prototype.toBuffer = function() { + console.warn( + 'Font.toBuffer is deprecated. Use Font.toArrayBuffer instead.' + ); + return this.toArrayBuffer(); + }; + /** + * Converts a `opentype.Font` into an `ArrayBuffer` + * @return {ArrayBuffer} + */ + Font.prototype.toArrayBuffer = function() { + var sfntTable = this.toTables(); + var bytes = sfntTable.encode(); + var buffer = new ArrayBuffer(bytes.length); + var intArray = new Uint8Array(buffer); + for (var i = 0; i < bytes.length; i++) { + intArray[i] = bytes[i]; + } + + return buffer; + }; + + /** + * Initiate a download of the OpenType font. + */ + Font.prototype.download = function(fileName) { + var familyName = this.getEnglishName('fontFamily'); + var styleName = this.getEnglishName('fontSubfamily'); + fileName = + fileName || familyName.replace(/\s/g, '') + '-' + styleName + '.otf'; + var arrayBuffer = this.toArrayBuffer(); + + if (isBrowser()) { + window.requestFileSystem = + window.requestFileSystem || window.webkitRequestFileSystem; + window.requestFileSystem( + window.TEMPORARY, + arrayBuffer.byteLength, + function(fs) { + fs.root.getFile(fileName, { create: true }, function(fileEntry) { + fileEntry.createWriter(function(writer) { + var dataView = new DataView(arrayBuffer); + var blob = new Blob([dataView], { type: 'font/opentype' }); + writer.write(blob); + + writer.addEventListener( + 'writeend', + function() { + // Navigating to the file will download it. + location.href = fileEntry.toURL(); + }, + false + ); + }); + }); + }, + function(err) { + throw new Error(err.name + ': ' + err.message); + } + ); + } else { + var fs = _dereq_('fs'); + var buffer = arrayBufferToNodeBuffer(arrayBuffer); + fs.writeFileSync(fileName, buffer); + } + }; + /** + * @private + */ + Font.prototype.fsSelectionValues = { + ITALIC: 0x001, //1 + UNDERSCORE: 0x002, //2 + NEGATIVE: 0x004, //4 + OUTLINED: 0x008, //8 + STRIKEOUT: 0x010, //16 + BOLD: 0x020, //32 + REGULAR: 0x040, //64 + USER_TYPO_METRICS: 0x080, //128 + WWS: 0x100, //256 + OBLIQUE: 0x200 //512 + }; + + /** + * @private + */ + Font.prototype.usWidthClasses = { + ULTRA_CONDENSED: 1, + EXTRA_CONDENSED: 2, + CONDENSED: 3, + SEMI_CONDENSED: 4, + MEDIUM: 5, + SEMI_EXPANDED: 6, + EXPANDED: 7, + EXTRA_EXPANDED: 8, + ULTRA_EXPANDED: 9 + }; + + /** + * @private + */ + Font.prototype.usWeightClasses = { + THIN: 100, + EXTRA_LIGHT: 200, + LIGHT: 300, + NORMAL: 400, + MEDIUM: 500, + SEMI_BOLD: 600, + BOLD: 700, + EXTRA_BOLD: 800, + BLACK: 900 + }; + + // The `fvar` table stores font variation axes and instances. + + function addName(name, names) { + var nameString = JSON.stringify(name); + var nameID = 256; + for (var nameKey in names) { + var n = parseInt(nameKey); + if (!n || n < 256) { + continue; + } + + if (JSON.stringify(names[nameKey]) === nameString) { + return n; + } + + if (nameID <= n) { + nameID = n + 1; + } + } + + names[nameID] = name; + return nameID; + } + + function makeFvarAxis(n, axis, names) { + var nameID = addName(axis.name, names); + return [ + { name: 'tag_' + n, type: 'TAG', value: axis.tag }, + { name: 'minValue_' + n, type: 'FIXED', value: axis.minValue << 16 }, + { + name: 'defaultValue_' + n, + type: 'FIXED', + value: axis.defaultValue << 16 + }, + { name: 'maxValue_' + n, type: 'FIXED', value: axis.maxValue << 16 }, + { name: 'flags_' + n, type: 'USHORT', value: 0 }, + { name: 'nameID_' + n, type: 'USHORT', value: nameID } + ]; + } + + function parseFvarAxis(data, start, names) { + var axis = {}; + var p = new parse.Parser(data, start); + axis.tag = p.parseTag(); + axis.minValue = p.parseFixed(); + axis.defaultValue = p.parseFixed(); + axis.maxValue = p.parseFixed(); + p.skip('uShort', 1); // reserved for flags; no values defined + axis.name = names[p.parseUShort()] || {}; + return axis; + } + + function makeFvarInstance(n, inst, axes, names) { + var nameID = addName(inst.name, names); + var fields = [ + { name: 'nameID_' + n, type: 'USHORT', value: nameID }, + { name: 'flags_' + n, type: 'USHORT', value: 0 } + ]; + + for (var i = 0; i < axes.length; ++i) { + var axisTag = axes[i].tag; + fields.push({ + name: 'axis_' + n + ' ' + axisTag, + type: 'FIXED', + value: inst.coordinates[axisTag] << 16 + }); + } + + return fields; + } + + function parseFvarInstance(data, start, axes, names) { + var inst = {}; + var p = new parse.Parser(data, start); + inst.name = names[p.parseUShort()] || {}; + p.skip('uShort', 1); // reserved for flags; no values defined + + inst.coordinates = {}; + for (var i = 0; i < axes.length; ++i) { + inst.coordinates[axes[i].tag] = p.parseFixed(); + } + + return inst; + } + + function makeFvarTable(fvar, names) { + var result = new table.Table('fvar', [ + { name: 'version', type: 'ULONG', value: 0x10000 }, + { name: 'offsetToData', type: 'USHORT', value: 0 }, + { name: 'countSizePairs', type: 'USHORT', value: 2 }, + { name: 'axisCount', type: 'USHORT', value: fvar.axes.length }, + { name: 'axisSize', type: 'USHORT', value: 20 }, + { name: 'instanceCount', type: 'USHORT', value: fvar.instances.length }, + { name: 'instanceSize', type: 'USHORT', value: 4 + fvar.axes.length * 4 } + ]); + result.offsetToData = result.sizeOf(); + + for (var i = 0; i < fvar.axes.length; i++) { + result.fields = result.fields.concat( + makeFvarAxis(i, fvar.axes[i], names) + ); + } + + for (var j = 0; j < fvar.instances.length; j++) { + result.fields = result.fields.concat( + makeFvarInstance(j, fvar.instances[j], fvar.axes, names) + ); + } + + return result; + } + + function parseFvarTable(data, start, names) { + var p = new parse.Parser(data, start); + var tableVersion = p.parseULong(); + check.argument( + tableVersion === 0x00010000, + 'Unsupported fvar table version.' + ); + var offsetToData = p.parseOffset16(); + // Skip countSizePairs. + p.skip('uShort', 1); + var axisCount = p.parseUShort(); + var axisSize = p.parseUShort(); + var instanceCount = p.parseUShort(); + var instanceSize = p.parseUShort(); + + var axes = []; + for (var i = 0; i < axisCount; i++) { + axes.push( + parseFvarAxis(data, start + offsetToData + i * axisSize, names) + ); + } + + var instances = []; + var instanceStart = start + offsetToData + axisCount * axisSize; + for (var j = 0; j < instanceCount; j++) { + instances.push( + parseFvarInstance(data, instanceStart + j * instanceSize, axes, names) + ); + } + + return { axes: axes, instances: instances }; + } + + var fvar = { make: makeFvarTable, parse: parseFvarTable }; + + // The `GPOS` table contains kerning pairs, among other things. + + var subtableParsers$1 = new Array(10); // subtableParsers[0] is unused + + // https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#lookup-type-1-single-adjustment-positioning-subtable + // this = Parser instance + subtableParsers$1[1] = function parseLookup1() { + var start = this.offset + this.relativeOffset; + var posformat = this.parseUShort(); + if (posformat === 1) { + return { + posFormat: 1, + coverage: this.parsePointer(Parser.coverage), + value: this.parseValueRecord() + }; + } else if (posformat === 2) { + return { + posFormat: 2, + coverage: this.parsePointer(Parser.coverage), + values: this.parseValueRecordList() + }; + } + check.assert( + false, + '0x' + start.toString(16) + ': GPOS lookup type 1 format must be 1 or 2.' + ); + }; + + // https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#lookup-type-2-pair-adjustment-positioning-subtable + subtableParsers$1[2] = function parseLookup2() { + var start = this.offset + this.relativeOffset; + var posFormat = this.parseUShort(); + check.assert( + posFormat === 1 || posFormat === 2, + '0x' + start.toString(16) + ': GPOS lookup type 2 format must be 1 or 2.' + ); + var coverage = this.parsePointer(Parser.coverage); + var valueFormat1 = this.parseUShort(); + var valueFormat2 = this.parseUShort(); + if (posFormat === 1) { + // Adjustments for Glyph Pairs + return { + posFormat: posFormat, + coverage: coverage, + valueFormat1: valueFormat1, + valueFormat2: valueFormat2, + pairSets: this.parseList( + Parser.pointer( + Parser.list(function() { + return { + // pairValueRecord + secondGlyph: this.parseUShort(), + value1: this.parseValueRecord(valueFormat1), + value2: this.parseValueRecord(valueFormat2) + }; + }) + ) + ) + }; + } else if (posFormat === 2) { + var classDef1 = this.parsePointer(Parser.classDef); + var classDef2 = this.parsePointer(Parser.classDef); + var class1Count = this.parseUShort(); + var class2Count = this.parseUShort(); + return { + // Class Pair Adjustment + posFormat: posFormat, + coverage: coverage, + valueFormat1: valueFormat1, + valueFormat2: valueFormat2, + classDef1: classDef1, + classDef2: classDef2, + class1Count: class1Count, + class2Count: class2Count, + classRecords: this.parseList( + class1Count, + Parser.list(class2Count, function() { + return { + value1: this.parseValueRecord(valueFormat1), + value2: this.parseValueRecord(valueFormat2) + }; + }) + ) + }; + } + }; + + subtableParsers$1[3] = function parseLookup3() { + return { error: 'GPOS Lookup 3 not supported' }; + }; + subtableParsers$1[4] = function parseLookup4() { + return { error: 'GPOS Lookup 4 not supported' }; + }; + subtableParsers$1[5] = function parseLookup5() { + return { error: 'GPOS Lookup 5 not supported' }; + }; + subtableParsers$1[6] = function parseLookup6() { + return { error: 'GPOS Lookup 6 not supported' }; + }; + subtableParsers$1[7] = function parseLookup7() { + return { error: 'GPOS Lookup 7 not supported' }; + }; + subtableParsers$1[8] = function parseLookup8() { + return { error: 'GPOS Lookup 8 not supported' }; + }; + subtableParsers$1[9] = function parseLookup9() { + return { error: 'GPOS Lookup 9 not supported' }; + }; + + // https://docs.microsoft.com/en-us/typography/opentype/spec/gpos + function parseGposTable(data, start) { + start = start || 0; + var p = new Parser(data, start); + var tableVersion = p.parseVersion(1); + check.argument( + tableVersion === 1 || tableVersion === 1.1, + 'Unsupported GPOS table version ' + tableVersion + ); + + if (tableVersion === 1) { + return { + version: tableVersion, + scripts: p.parseScriptList(), + features: p.parseFeatureList(), + lookups: p.parseLookupList(subtableParsers$1) + }; + } else { + return { + version: tableVersion, + scripts: p.parseScriptList(), + features: p.parseFeatureList(), + lookups: p.parseLookupList(subtableParsers$1), + variations: p.parseFeatureVariationsList() + }; + } + } + + // GPOS Writing ////////////////////////////////////////////// + // NOT SUPPORTED + var subtableMakers$1 = new Array(10); + + function makeGposTable(gpos) { + return new table.Table('GPOS', [ + { name: 'version', type: 'ULONG', value: 0x10000 }, + { + name: 'scripts', + type: 'TABLE', + value: new table.ScriptList(gpos.scripts) + }, + { + name: 'features', + type: 'TABLE', + value: new table.FeatureList(gpos.features) + }, + { + name: 'lookups', + type: 'TABLE', + value: new table.LookupList(gpos.lookups, subtableMakers$1) + } + ]); + } + + var gpos = { parse: parseGposTable, make: makeGposTable }; + + // The `kern` table contains kerning pairs. + + function parseWindowsKernTable(p) { + var pairs = {}; + // Skip nTables. + p.skip('uShort'); + var subtableVersion = p.parseUShort(); + check.argument( + subtableVersion === 0, + 'Unsupported kern sub-table version.' + ); + // Skip subtableLength, subtableCoverage + p.skip('uShort', 2); + var nPairs = p.parseUShort(); + // Skip searchRange, entrySelector, rangeShift. + p.skip('uShort', 3); + for (var i = 0; i < nPairs; i += 1) { + var leftIndex = p.parseUShort(); + var rightIndex = p.parseUShort(); + var value = p.parseShort(); + pairs[leftIndex + ',' + rightIndex] = value; + } + return pairs; + } + + function parseMacKernTable(p) { + var pairs = {}; + // The Mac kern table stores the version as a fixed (32 bits) but we only loaded the first 16 bits. + // Skip the rest. + p.skip('uShort'); + var nTables = p.parseULong(); + //check.argument(nTables === 1, 'Only 1 subtable is supported (got ' + nTables + ').'); + if (nTables > 1) { + console.warn('Only the first kern subtable is supported.'); + } + p.skip('uLong'); + var coverage = p.parseUShort(); + var subtableVersion = coverage & 0xff; + p.skip('uShort'); + if (subtableVersion === 0) { + var nPairs = p.parseUShort(); + // Skip searchRange, entrySelector, rangeShift. + p.skip('uShort', 3); + for (var i = 0; i < nPairs; i += 1) { + var leftIndex = p.parseUShort(); + var rightIndex = p.parseUShort(); + var value = p.parseShort(); + pairs[leftIndex + ',' + rightIndex] = value; + } + } + return pairs; + } + + // Parse the `kern` table which contains kerning pairs. + function parseKernTable(data, start) { + var p = new parse.Parser(data, start); + var tableVersion = p.parseUShort(); + if (tableVersion === 0) { + return parseWindowsKernTable(p); + } else if (tableVersion === 1) { + return parseMacKernTable(p); + } else { + throw new Error('Unsupported kern table version (' + tableVersion + ').'); + } + } + + var kern = { parse: parseKernTable }; + + // The `loca` table stores the offsets to the locations of the glyphs in the font. + + // Parse the `loca` table. This table stores the offsets to the locations of the glyphs in the font, + // relative to the beginning of the glyphData table. + // The number of glyphs stored in the `loca` table is specified in the `maxp` table (under numGlyphs) + // The loca table has two versions: a short version where offsets are stored as uShorts, and a long + // version where offsets are stored as uLongs. The `head` table specifies which version to use + // (under indexToLocFormat). + function parseLocaTable(data, start, numGlyphs, shortVersion) { + var p = new parse.Parser(data, start); + var parseFn = shortVersion ? p.parseUShort : p.parseULong; + // There is an extra entry after the last index element to compute the length of the last glyph. + // That's why we use numGlyphs + 1. + var glyphOffsets = []; + for (var i = 0; i < numGlyphs + 1; i += 1) { + var glyphOffset = parseFn.call(p); + if (shortVersion) { + // The short table version stores the actual offset divided by 2. + glyphOffset *= 2; + } + + glyphOffsets.push(glyphOffset); + } + + return glyphOffsets; + } + + var loca = { parse: parseLocaTable }; + + // opentype.js + + /** + * The opentype library. + * @namespace opentype + */ + + // File loaders ///////////////////////////////////////////////////////// + /** + * Loads a font from a file. The callback throws an error message as the first parameter if it fails + * and the font as an ArrayBuffer in the second parameter if it succeeds. + * @param {string} path - The path of the file + * @param {Function} callback - The function to call when the font load completes + */ + function loadFromFile(path, callback) { + var fs = _dereq_('fs'); + fs.readFile(path, function(err, buffer) { + if (err) { + return callback(err.message); + } + + callback(null, nodeBufferToArrayBuffer(buffer)); + }); + } + /** + * Loads a font from a URL. The callback throws an error message as the first parameter if it fails + * and the font as an ArrayBuffer in the second parameter if it succeeds. + * @param {string} url - The URL of the font file. + * @param {Function} callback - The function to call when the font load completes + */ + function loadFromUrl(url, callback) { + var request = new XMLHttpRequest(); + request.open('get', url, true); + request.responseType = 'arraybuffer'; + request.onload = function() { + if (request.response) { + return callback(null, request.response); + } else { + return callback('Font could not be loaded: ' + request.statusText); + } + }; + + request.onerror = function() { + callback('Font could not be loaded'); + }; + + request.send(); + } + + // Table Directory Entries ////////////////////////////////////////////// + /** + * Parses OpenType table entries. + * @param {DataView} + * @param {Number} + * @return {Object[]} + */ + function parseOpenTypeTableEntries(data, numTables) { + var tableEntries = []; + var p = 12; + for (var i = 0; i < numTables; i += 1) { + var tag = parse.getTag(data, p); + var checksum = parse.getULong(data, p + 4); + var offset = parse.getULong(data, p + 8); + var length = parse.getULong(data, p + 12); + tableEntries.push({ + tag: tag, + checksum: checksum, + offset: offset, + length: length, + compression: false + }); + p += 16; + } + + return tableEntries; + } + + /** + * Parses WOFF table entries. + * @param {DataView} + * @param {Number} + * @return {Object[]} + */ + function parseWOFFTableEntries(data, numTables) { + var tableEntries = []; + var p = 44; // offset to the first table directory entry. + for (var i = 0; i < numTables; i += 1) { + var tag = parse.getTag(data, p); + var offset = parse.getULong(data, p + 4); + var compLength = parse.getULong(data, p + 8); + var origLength = parse.getULong(data, p + 12); + var compression = void 0; + if (compLength < origLength) { + compression = 'WOFF'; + } else { + compression = false; + } + + tableEntries.push({ + tag: tag, + offset: offset, + compression: compression, + compressedLength: compLength, + length: origLength + }); + p += 20; + } + + return tableEntries; + } + + /** + * @typedef TableData + * @type Object + * @property {DataView} data - The DataView + * @property {number} offset - The data offset. + */ + + /** + * @param {DataView} + * @param {Object} + * @return {TableData} + */ + function uncompressTable(data, tableEntry) { + if (tableEntry.compression === 'WOFF') { + var inBuffer = new Uint8Array( + data.buffer, + tableEntry.offset + 2, + tableEntry.compressedLength - 2 + ); + var outBuffer = new Uint8Array(tableEntry.length); + tinyInflate(inBuffer, outBuffer); + if (outBuffer.byteLength !== tableEntry.length) { + throw new Error( + 'Decompression error: ' + + tableEntry.tag + + " decompressed length doesn't match recorded length" + ); + } + + var view = new DataView(outBuffer.buffer, 0); + return { data: view, offset: 0 }; + } else { + return { data: data, offset: tableEntry.offset }; + } + } + + // Public API /////////////////////////////////////////////////////////// + + /** + * Parse the OpenType file data (as an ArrayBuffer) and return a Font object. + * Throws an error if the font could not be parsed. + * @param {ArrayBuffer} + * @return {opentype.Font} + */ + function parseBuffer(buffer) { + var indexToLocFormat; + var ltagTable; + + // Since the constructor can also be called to create new fonts from scratch, we indicate this + // should be an empty font that we'll fill with our own data. + var font = new Font({ empty: true }); + + // OpenType fonts use big endian byte ordering. + // We can't rely on typed array view types, because they operate with the endianness of the host computer. + // Instead we use DataViews where we can specify endianness. + var data = new DataView(buffer, 0); + var numTables; + var tableEntries = []; + var signature = parse.getTag(data, 0); + if ( + signature === String.fromCharCode(0, 1, 0, 0) || + signature === 'true' || + signature === 'typ1' + ) { + font.outlinesFormat = 'truetype'; + numTables = parse.getUShort(data, 4); + tableEntries = parseOpenTypeTableEntries(data, numTables); + } else if (signature === 'OTTO') { + font.outlinesFormat = 'cff'; + numTables = parse.getUShort(data, 4); + tableEntries = parseOpenTypeTableEntries(data, numTables); + } else if (signature === 'wOFF') { + var flavor = parse.getTag(data, 4); + if (flavor === String.fromCharCode(0, 1, 0, 0)) { + font.outlinesFormat = 'truetype'; + } else if (flavor === 'OTTO') { + font.outlinesFormat = 'cff'; + } else { + throw new Error('Unsupported OpenType flavor ' + signature); + } + + numTables = parse.getUShort(data, 12); + tableEntries = parseWOFFTableEntries(data, numTables); + } else { + throw new Error('Unsupported OpenType signature ' + signature); + } + + var cffTableEntry; + var fvarTableEntry; + var glyfTableEntry; + var gposTableEntry; + var gsubTableEntry; + var hmtxTableEntry; + var kernTableEntry; + var locaTableEntry; + var nameTableEntry; + var metaTableEntry; + var p; + + for (var i = 0; i < numTables; i += 1) { + var tableEntry = tableEntries[i]; + var table = void 0; + switch (tableEntry.tag) { + case 'cmap': + table = uncompressTable(data, tableEntry); + font.tables.cmap = cmap.parse(table.data, table.offset); + font.encoding = new CmapEncoding(font.tables.cmap); + break; + case 'cvt ': + table = uncompressTable(data, tableEntry); + p = new parse.Parser(table.data, table.offset); + font.tables.cvt = p.parseShortList(tableEntry.length / 2); + break; + case 'fvar': + fvarTableEntry = tableEntry; + break; + case 'fpgm': + table = uncompressTable(data, tableEntry); + p = new parse.Parser(table.data, table.offset); + font.tables.fpgm = p.parseByteList(tableEntry.length); + break; + case 'head': + table = uncompressTable(data, tableEntry); + font.tables.head = head.parse(table.data, table.offset); + font.unitsPerEm = font.tables.head.unitsPerEm; + indexToLocFormat = font.tables.head.indexToLocFormat; + break; + case 'hhea': + table = uncompressTable(data, tableEntry); + font.tables.hhea = hhea.parse(table.data, table.offset); + font.ascender = font.tables.hhea.ascender; + font.descender = font.tables.hhea.descender; + font.numberOfHMetrics = font.tables.hhea.numberOfHMetrics; + break; + case 'hmtx': + hmtxTableEntry = tableEntry; + break; + case 'ltag': + table = uncompressTable(data, tableEntry); + ltagTable = ltag.parse(table.data, table.offset); + break; + case 'maxp': + table = uncompressTable(data, tableEntry); + font.tables.maxp = maxp.parse(table.data, table.offset); + font.numGlyphs = font.tables.maxp.numGlyphs; + break; + case 'name': + nameTableEntry = tableEntry; + break; + case 'OS/2': + table = uncompressTable(data, tableEntry); + font.tables.os2 = os2.parse(table.data, table.offset); + break; + case 'post': + table = uncompressTable(data, tableEntry); + font.tables.post = post.parse(table.data, table.offset); + font.glyphNames = new GlyphNames(font.tables.post); + break; + case 'prep': + table = uncompressTable(data, tableEntry); + p = new parse.Parser(table.data, table.offset); + font.tables.prep = p.parseByteList(tableEntry.length); + break; + case 'glyf': + glyfTableEntry = tableEntry; + break; + case 'loca': + locaTableEntry = tableEntry; + break; + case 'CFF ': + cffTableEntry = tableEntry; + break; + case 'kern': + kernTableEntry = tableEntry; + break; + case 'GPOS': + gposTableEntry = tableEntry; + break; + case 'GSUB': + gsubTableEntry = tableEntry; + break; + case 'meta': + metaTableEntry = tableEntry; + break; + } + } + + var nameTable = uncompressTable(data, nameTableEntry); + font.tables.name = _name.parse(nameTable.data, nameTable.offset, ltagTable); + font.names = font.tables.name; + + if (glyfTableEntry && locaTableEntry) { + var shortVersion = indexToLocFormat === 0; + var locaTable = uncompressTable(data, locaTableEntry); + var locaOffsets = loca.parse( + locaTable.data, + locaTable.offset, + font.numGlyphs, + shortVersion + ); + var glyfTable = uncompressTable(data, glyfTableEntry); + font.glyphs = glyf.parse( + glyfTable.data, + glyfTable.offset, + locaOffsets, + font + ); + } else if (cffTableEntry) { + var cffTable = uncompressTable(data, cffTableEntry); + cff.parse(cffTable.data, cffTable.offset, font); + } else { + throw new Error("Font doesn't contain TrueType or CFF outlines."); + } + + var hmtxTable = uncompressTable(data, hmtxTableEntry); + hmtx.parse( + hmtxTable.data, + hmtxTable.offset, + font.numberOfHMetrics, + font.numGlyphs, + font.glyphs + ); + addGlyphNames(font); + + if (kernTableEntry) { + var kernTable = uncompressTable(data, kernTableEntry); + font.kerningPairs = kern.parse(kernTable.data, kernTable.offset); + } else { + font.kerningPairs = {}; + } + + if (gposTableEntry) { + var gposTable = uncompressTable(data, gposTableEntry); + font.tables.gpos = gpos.parse(gposTable.data, gposTable.offset); + font.position.init(); + } + + if (gsubTableEntry) { + var gsubTable = uncompressTable(data, gsubTableEntry); + font.tables.gsub = gsub.parse(gsubTable.data, gsubTable.offset); + } + + if (fvarTableEntry) { + var fvarTable = uncompressTable(data, fvarTableEntry); + font.tables.fvar = fvar.parse( + fvarTable.data, + fvarTable.offset, + font.names + ); + } + + if (metaTableEntry) { + var metaTable = uncompressTable(data, metaTableEntry); + font.tables.meta = meta.parse(metaTable.data, metaTable.offset); + font.metas = font.tables.meta; + } + + return font; + } + + /** + * Asynchronously load the font from a URL or a filesystem. When done, call the callback + * with two arguments `(err, font)`. The `err` will be null on success, + * the `font` is a Font object. + * We use the node.js callback convention so that + * opentype.js can integrate with frameworks like async.js. + * @alias opentype.load + * @param {string} url - The URL of the font to load. + * @param {Function} callback - The callback. + */ + function load(url, callback) { + var isNode$$1 = typeof window === 'undefined'; + var loadFn = isNode$$1 ? loadFromFile : loadFromUrl; + loadFn(url, function(err, arrayBuffer) { + if (err) { + return callback(err); + } + var font; + try { + font = parseBuffer(arrayBuffer); + } catch (e) { + return callback(e, null); + } + return callback(null, font); + }); + } + + /** + * Synchronously load the font from a URL or file. + * When done, returns the font object or throws an error. + * @alias opentype.loadSync + * @param {string} url - The URL of the font to load. + * @return {opentype.Font} + */ + function loadSync(url) { + var fs = _dereq_('fs'); + var buffer = fs.readFileSync(url); + return parseBuffer(nodeBufferToArrayBuffer(buffer)); + } + + exports.Font = Font; + exports.Glyph = Glyph; + exports.Path = Path; + exports.BoundingBox = BoundingBox; + exports._parse = parse; + exports.parse = parseBuffer; + exports.load = load; + exports.loadSync = loadSync; + + Object.defineProperty(exports, '__esModule', { value: true }); + }); + }.call(this, _dereq_('buffer').Buffer)); + }, + { buffer: 4, fs: 3 } + ], + 11: [ + function(_dereq_, module, exports) { + // shim for using process in browser + var process = (module.exports = {}); + + // cached from whatever global is present so that test runners that stub it + // don't break things. But we need to wrap it in a try catch in case it is + // wrapped in strict mode code which doesn't define any globals. It's inside a + // function because try/catches deoptimize in certain engines. + + var cachedSetTimeout; + var cachedClearTimeout; + + function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); + } + function defaultClearTimeout() { + throw new Error('clearTimeout has not been defined'); + } + (function() { + try { + if (typeof setTimeout === 'function') { + cachedSetTimeout = setTimeout; + } else { + cachedSetTimeout = defaultSetTimout; + } + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + if (typeof clearTimeout === 'function') { + cachedClearTimeout = clearTimeout; + } else { + cachedClearTimeout = defaultClearTimeout; + } + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } + })(); + function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) { + //normal enviroments in sane situations + return setTimeout(fun, 0); + } + // if setTimeout wasn't available but was latter defined + if ( + (cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && + setTimeout + ) { + cachedSetTimeout = setTimeout; + return setTimeout(fun, 0); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedSetTimeout(fun, 0); + } catch (e) { + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedSetTimeout.call(null, fun, 0); + } catch (e) { + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error + return cachedSetTimeout.call(this, fun, 0); + } + } + } + function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) { + //normal enviroments in sane situations + return clearTimeout(marker); + } + // if clearTimeout wasn't available but was latter defined + if ( + (cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && + clearTimeout + ) { + cachedClearTimeout = clearTimeout; + return clearTimeout(marker); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedClearTimeout(marker); + } catch (e) { + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedClearTimeout.call(null, marker); + } catch (e) { + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. + // Some versions of I.E. have different rules for clearTimeout vs setTimeout + return cachedClearTimeout.call(this, marker); + } + } + } + var queue = []; + var draining = false; + var currentQueue; + var queueIndex = -1; + + function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); + } else { + queueIndex = -1; + } + if (queue.length) { + drainQueue(); + } + } + + function drainQueue() { + if (draining) { + return; + } + var timeout = runTimeout(cleanUpNextTick); + draining = true; + + var len = queue.length; + while (len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = -1; + len = queue.length; + } + currentQueue = null; + draining = false; + runClearTimeout(timeout); + } + + process.nextTick = function(fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } + }; + + // v8 likes predictible objects + function Item(fun, array) { + this.fun = fun; + this.array = array; + } + Item.prototype.run = function() { + this.fun.apply(null, this.array); + }; + process.title = 'browser'; + process.browser = true; + process.env = {}; + process.argv = []; + process.version = ''; // empty string to avoid regexp issues + process.versions = {}; + + function noop() {} + + process.on = noop; + process.addListener = noop; + process.once = noop; + process.off = noop; + process.removeListener = noop; + process.removeAllListeners = noop; + process.emit = noop; + process.prependListener = noop; + process.prependOnceListener = noop; + + process.listeners = function(name) { + return []; + }; + + process.binding = function(name) { + throw new Error('process.binding is not supported'); + }; + + process.cwd = function() { + return '/'; + }; + process.chdir = function(dir) { + throw new Error('process.chdir is not supported'); + }; + process.umask = function() { + return 0; + }; + }, + {} + ], + 12: [ + function(_dereq_, module, exports) { + (function(self) { + 'use strict'; + + if (self.fetch) { + return; + } + + var support = { + searchParams: 'URLSearchParams' in self, + iterable: 'Symbol' in self && 'iterator' in Symbol, + blob: + 'FileReader' in self && + 'Blob' in self && + (function() { + try { + new Blob(); + return true; + } catch (e) { + return false; + } + })(), + formData: 'FormData' in self, + arrayBuffer: 'ArrayBuffer' in self + }; + + if (support.arrayBuffer) { + var viewClasses = [ + '[object Int8Array]', + '[object Uint8Array]', + '[object Uint8ClampedArray]', + '[object Int16Array]', + '[object Uint16Array]', + '[object Int32Array]', + '[object Uint32Array]', + '[object Float32Array]', + '[object Float64Array]' + ]; + + var isDataView = function(obj) { + return obj && DataView.prototype.isPrototypeOf(obj); + }; + + var isArrayBufferView = + ArrayBuffer.isView || + function(obj) { + return ( + obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1 + ); + }; + } + + function normalizeName(name) { + if (typeof name !== 'string') { + name = String(name); + } + if (/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(name)) { + throw new TypeError('Invalid character in header field name'); + } + return name.toLowerCase(); + } + + function normalizeValue(value) { + if (typeof value !== 'string') { + value = String(value); + } + return value; + } + + // Build a destructive iterator for the value list + function iteratorFor(items) { + var iterator = { + next: function() { + var value = items.shift(); + return { done: value === undefined, value: value }; + } + }; + + if (support.iterable) { + iterator[Symbol.iterator] = function() { + return iterator; + }; + } + + return iterator; + } + + function Headers(headers) { + this.map = {}; + + if (headers instanceof Headers) { + headers.forEach(function(value, name) { + this.append(name, value); + }, this); + } else if (Array.isArray(headers)) { + headers.forEach(function(header) { + this.append(header[0], header[1]); + }, this); + } else if (headers) { + Object.getOwnPropertyNames(headers).forEach(function(name) { + this.append(name, headers[name]); + }, this); + } + } + + Headers.prototype.append = function(name, value) { + name = normalizeName(name); + value = normalizeValue(value); + var oldValue = this.map[name]; + this.map[name] = oldValue ? oldValue + ',' + value : value; + }; + + Headers.prototype['delete'] = function(name) { + delete this.map[normalizeName(name)]; + }; + + Headers.prototype.get = function(name) { + name = normalizeName(name); + return this.has(name) ? this.map[name] : null; + }; + + Headers.prototype.has = function(name) { + return this.map.hasOwnProperty(normalizeName(name)); + }; + + Headers.prototype.set = function(name, value) { + this.map[normalizeName(name)] = normalizeValue(value); + }; + + Headers.prototype.forEach = function(callback, thisArg) { + for (var name in this.map) { + if (this.map.hasOwnProperty(name)) { + callback.call(thisArg, this.map[name], name, this); + } + } + }; + + Headers.prototype.keys = function() { + var items = []; + this.forEach(function(value, name) { + items.push(name); + }); + return iteratorFor(items); + }; + + Headers.prototype.values = function() { + var items = []; + this.forEach(function(value) { + items.push(value); + }); + return iteratorFor(items); + }; + + Headers.prototype.entries = function() { + var items = []; + this.forEach(function(value, name) { + items.push([name, value]); + }); + return iteratorFor(items); + }; + + if (support.iterable) { + Headers.prototype[Symbol.iterator] = Headers.prototype.entries; + } + + function consumed(body) { + if (body.bodyUsed) { + return Promise.reject(new TypeError('Already read')); + } + body.bodyUsed = true; + } + + function fileReaderReady(reader) { + return new Promise(function(resolve, reject) { + reader.onload = function() { + resolve(reader.result); + }; + reader.onerror = function() { + reject(reader.error); + }; + }); + } + + function readBlobAsArrayBuffer(blob) { + var reader = new FileReader(); + var promise = fileReaderReady(reader); + reader.readAsArrayBuffer(blob); + return promise; + } + + function readBlobAsText(blob) { + var reader = new FileReader(); + var promise = fileReaderReady(reader); + reader.readAsText(blob); + return promise; + } + + function readArrayBufferAsText(buf) { + var view = new Uint8Array(buf); + var chars = new Array(view.length); + + for (var i = 0; i < view.length; i++) { + chars[i] = String.fromCharCode(view[i]); + } + return chars.join(''); + } + + function bufferClone(buf) { + if (buf.slice) { + return buf.slice(0); + } else { + var view = new Uint8Array(buf.byteLength); + view.set(new Uint8Array(buf)); + return view.buffer; + } + } + + function Body() { + this.bodyUsed = false; + + this._initBody = function(body) { + this._bodyInit = body; + if (!body) { + this._bodyText = ''; + } else if (typeof body === 'string') { + this._bodyText = body; + } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { + this._bodyBlob = body; + } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { + this._bodyFormData = body; + } else if ( + support.searchParams && + URLSearchParams.prototype.isPrototypeOf(body) + ) { + this._bodyText = body.toString(); + } else if (support.arrayBuffer && support.blob && isDataView(body)) { + this._bodyArrayBuffer = bufferClone(body.buffer); + // IE 10-11 can't handle a DataView body. + this._bodyInit = new Blob([this._bodyArrayBuffer]); + } else if ( + support.arrayBuffer && + (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body)) + ) { + this._bodyArrayBuffer = bufferClone(body); + } else { + throw new Error('unsupported BodyInit type'); + } + + if (!this.headers.get('content-type')) { + if (typeof body === 'string') { + this.headers.set('content-type', 'text/plain;charset=UTF-8'); + } else if (this._bodyBlob && this._bodyBlob.type) { + this.headers.set('content-type', this._bodyBlob.type); + } else if ( + support.searchParams && + URLSearchParams.prototype.isPrototypeOf(body) + ) { + this.headers.set( + 'content-type', + 'application/x-www-form-urlencoded;charset=UTF-8' + ); + } + } + }; + + if (support.blob) { + this.blob = function() { + var rejected = consumed(this); + if (rejected) { + return rejected; + } + + if (this._bodyBlob) { + return Promise.resolve(this._bodyBlob); + } else if (this._bodyArrayBuffer) { + return Promise.resolve(new Blob([this._bodyArrayBuffer])); + } else if (this._bodyFormData) { + throw new Error('could not read FormData body as blob'); + } else { + return Promise.resolve(new Blob([this._bodyText])); + } + }; + + this.arrayBuffer = function() { + if (this._bodyArrayBuffer) { + return consumed(this) || Promise.resolve(this._bodyArrayBuffer); + } else { + return this.blob().then(readBlobAsArrayBuffer); + } + }; + } + + this.text = function() { + var rejected = consumed(this); + if (rejected) { + return rejected; + } + + if (this._bodyBlob) { + return readBlobAsText(this._bodyBlob); + } else if (this._bodyArrayBuffer) { + return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer)); + } else if (this._bodyFormData) { + throw new Error('could not read FormData body as text'); + } else { + return Promise.resolve(this._bodyText); + } + }; + + if (support.formData) { + this.formData = function() { + return this.text().then(decode); + }; + } + + this.json = function() { + return this.text().then(JSON.parse); + }; + + return this; + } + + // HTTP methods whose capitalization should be normalized + var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; + + function normalizeMethod(method) { + var upcased = method.toUpperCase(); + return methods.indexOf(upcased) > -1 ? upcased : method; + } + + function Request(input, options) { + options = options || {}; + var body = options.body; + + if (input instanceof Request) { + if (input.bodyUsed) { + throw new TypeError('Already read'); + } + this.url = input.url; + this.credentials = input.credentials; + if (!options.headers) { + this.headers = new Headers(input.headers); + } + this.method = input.method; + this.mode = input.mode; + if (!body && input._bodyInit != null) { + body = input._bodyInit; + input.bodyUsed = true; + } + } else { + this.url = String(input); + } + + this.credentials = options.credentials || this.credentials || 'omit'; + if (options.headers || !this.headers) { + this.headers = new Headers(options.headers); + } + this.method = normalizeMethod(options.method || this.method || 'GET'); + this.mode = options.mode || this.mode || null; + this.referrer = null; + + if ((this.method === 'GET' || this.method === 'HEAD') && body) { + throw new TypeError('Body not allowed for GET or HEAD requests'); + } + this._initBody(body); + } + + Request.prototype.clone = function() { + return new Request(this, { body: this._bodyInit }); + }; + + function decode(body) { + var form = new FormData(); + body + .trim() + .split('&') + .forEach(function(bytes) { + if (bytes) { + var split = bytes.split('='); + var name = split.shift().replace(/\+/g, ' '); + var value = split.join('=').replace(/\+/g, ' '); + form.append(decodeURIComponent(name), decodeURIComponent(value)); + } + }); + return form; + } + + function parseHeaders(rawHeaders) { + var headers = new Headers(); + // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space + // https://tools.ietf.org/html/rfc7230#section-3.2 + var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' '); + preProcessedHeaders.split(/\r?\n/).forEach(function(line) { + var parts = line.split(':'); + var key = parts.shift().trim(); + if (key) { + var value = parts.join(':').trim(); + headers.append(key, value); + } + }); + return headers; + } + + Body.call(Request.prototype); + + function Response(bodyInit, options) { + if (!options) { + options = {}; + } + + this.type = 'default'; + this.status = options.status === undefined ? 200 : options.status; + this.ok = this.status >= 200 && this.status < 300; + this.statusText = 'statusText' in options ? options.statusText : 'OK'; + this.headers = new Headers(options.headers); + this.url = options.url || ''; + this._initBody(bodyInit); + } + + Body.call(Response.prototype); + + Response.prototype.clone = function() { + return new Response(this._bodyInit, { + status: this.status, + statusText: this.statusText, + headers: new Headers(this.headers), + url: this.url + }); + }; + + Response.error = function() { + var response = new Response(null, { status: 0, statusText: '' }); + response.type = 'error'; + return response; + }; + + var redirectStatuses = [301, 302, 303, 307, 308]; + + Response.redirect = function(url, status) { + if (redirectStatuses.indexOf(status) === -1) { + throw new RangeError('Invalid status code'); + } + + return new Response(null, { status: status, headers: { location: url } }); + }; + + self.Headers = Headers; + self.Request = Request; + self.Response = Response; + + self.fetch = function(input, init) { + return new Promise(function(resolve, reject) { + var request = new Request(input, init); + var xhr = new XMLHttpRequest(); + + xhr.onload = function() { + var options = { + status: xhr.status, + statusText: xhr.statusText, + headers: parseHeaders(xhr.getAllResponseHeaders() || '') + }; + options.url = + 'responseURL' in xhr + ? xhr.responseURL + : options.headers.get('X-Request-URL'); + var body = 'response' in xhr ? xhr.response : xhr.responseText; + resolve(new Response(body, options)); + }; + + xhr.onerror = function() { + reject(new TypeError('Network request failed')); + }; + + xhr.ontimeout = function() { + reject(new TypeError('Network request failed')); + }; + + xhr.open(request.method, request.url, true); + + if (request.credentials === 'include') { + xhr.withCredentials = true; + } else if (request.credentials === 'omit') { + xhr.withCredentials = false; + } + + if ('responseType' in xhr && support.blob) { + xhr.responseType = 'blob'; + } + + request.headers.forEach(function(value, name) { + xhr.setRequestHeader(name, value); + }); + + xhr.send( + typeof request._bodyInit === 'undefined' ? null : request._bodyInit + ); + }); + }; + self.fetch.polyfill = true; + })(typeof self !== 'undefined' ? self : this); + }, + {} + ], + 13: [ + function(_dereq_, module, exports) { + 'use strict'; + + // core + var p5 = _dereq_('./core/main'); + _dereq_('./core/constants'); + _dereq_('./core/environment'); + _dereq_('./core/error_helpers'); + _dereq_('./core/helpers'); + _dereq_('./core/legacy'); + _dereq_('./core/p5.Element'); + _dereq_('./core/p5.Graphics'); + _dereq_('./core/p5.Renderer'); + _dereq_('./core/p5.Renderer2D'); + _dereq_('./core/rendering'); + _dereq_('./core/shim'); + _dereq_('./core/structure'); + _dereq_('./core/transform'); + _dereq_('./core/shape/2d_primitives'); + _dereq_('./core/shape/attributes'); + _dereq_('./core/shape/curves'); + _dereq_('./core/shape/vertex'); + + // color + _dereq_('./color/color_conversion'); + _dereq_('./color/creating_reading'); + _dereq_('./color/p5.Color'); + _dereq_('./color/setting'); + + // data + _dereq_('./data/p5.TypedDict'); + _dereq_('./data/local_storage.js'); + + // events + _dereq_('./events/acceleration'); + _dereq_('./events/keyboard'); + _dereq_('./events/mouse'); + _dereq_('./events/touch'); + + // image + _dereq_('./image/filters'); + _dereq_('./image/image'); + _dereq_('./image/loading_displaying'); + _dereq_('./image/p5.Image'); + _dereq_('./image/pixels'); + + // io + _dereq_('./io/files'); + _dereq_('./io/p5.Table'); + _dereq_('./io/p5.TableRow'); + _dereq_('./io/p5.XML'); + + // math + _dereq_('./math/calculation'); + _dereq_('./math/math'); + _dereq_('./math/noise'); + _dereq_('./math/p5.Vector'); + _dereq_('./math/random'); + _dereq_('./math/trigonometry'); + + // typography + _dereq_('./typography/attributes'); + _dereq_('./typography/loading_displaying'); + _dereq_('./typography/p5.Font'); + + // utilities + _dereq_('./utilities/array_functions'); + _dereq_('./utilities/conversion'); + _dereq_('./utilities/string_functions'); + _dereq_('./utilities/time_date'); + + // webgl + _dereq_('./webgl/3d_primitives'); + _dereq_('./webgl/interaction'); + _dereq_('./webgl/light'); + _dereq_('./webgl/loading'); + _dereq_('./webgl/material'); + _dereq_('./webgl/p5.Camera'); + _dereq_('./webgl/p5.Geometry'); + _dereq_('./webgl/p5.Matrix'); + _dereq_('./webgl/p5.RendererGL.Immediate'); + _dereq_('./webgl/p5.RendererGL'); + _dereq_('./webgl/p5.RendererGL.Retained'); + _dereq_('./webgl/p5.Shader'); + _dereq_('./webgl/p5.Texture'); + _dereq_('./webgl/text'); + + _dereq_('./core/init'); + + module.exports = p5; + }, + { + './color/color_conversion': 14, + './color/creating_reading': 15, + './color/p5.Color': 16, + './color/setting': 17, + './core/constants': 18, + './core/environment': 19, + './core/error_helpers': 20, + './core/helpers': 21, + './core/init': 22, + './core/legacy': 23, + './core/main': 24, + './core/p5.Element': 25, + './core/p5.Graphics': 26, + './core/p5.Renderer': 27, + './core/p5.Renderer2D': 28, + './core/rendering': 29, + './core/shape/2d_primitives': 30, + './core/shape/attributes': 31, + './core/shape/curves': 32, + './core/shape/vertex': 33, + './core/shim': 34, + './core/structure': 35, + './core/transform': 36, + './data/local_storage.js': 37, + './data/p5.TypedDict': 38, + './events/acceleration': 39, + './events/keyboard': 40, + './events/mouse': 41, + './events/touch': 42, + './image/filters': 43, + './image/image': 44, + './image/loading_displaying': 45, + './image/p5.Image': 46, + './image/pixels': 47, + './io/files': 48, + './io/p5.Table': 49, + './io/p5.TableRow': 50, + './io/p5.XML': 51, + './math/calculation': 52, + './math/math': 53, + './math/noise': 54, + './math/p5.Vector': 55, + './math/random': 56, + './math/trigonometry': 57, + './typography/attributes': 58, + './typography/loading_displaying': 59, + './typography/p5.Font': 60, + './utilities/array_functions': 61, + './utilities/conversion': 62, + './utilities/string_functions': 63, + './utilities/time_date': 64, + './webgl/3d_primitives': 65, + './webgl/interaction': 66, + './webgl/light': 67, + './webgl/loading': 68, + './webgl/material': 69, + './webgl/p5.Camera': 70, + './webgl/p5.Geometry': 71, + './webgl/p5.Matrix': 72, + './webgl/p5.RendererGL': 75, + './webgl/p5.RendererGL.Immediate': 73, + './webgl/p5.RendererGL.Retained': 74, + './webgl/p5.Shader': 76, + './webgl/p5.Texture': 77, + './webgl/text': 78 + } + ], + 14: [ + function(_dereq_, module, exports) { + /** + * @module Color + * @submodule Color Conversion + * @for p5 + * @requires core + */ + + 'use strict'; + + /** + * Conversions adapted from . + * + * In these functions, hue is always in the range [0, 1], just like all other + * components are in the range [0, 1]. 'Brightness' and 'value' are used + * interchangeably. + */ + + var p5 = _dereq_('../core/main'); + p5.ColorConversion = {}; + + /** + * Convert an HSBA array to HSLA. + */ + p5.ColorConversion._hsbaToHSLA = function(hsba) { + var hue = hsba[0]; + var sat = hsba[1]; + var val = hsba[2]; + + // Calculate lightness. + var li = (2 - sat) * val / 2; + + // Convert saturation. + if (li !== 0) { + if (li === 1) { + sat = 0; + } else if (li < 0.5) { + sat = sat / (2 - sat); + } else { + sat = sat * val / (2 - li * 2); + } + } + + // Hue and alpha stay the same. + return [hue, sat, li, hsba[3]]; + }; + + /** + * Convert an HSBA array to RGBA. + */ + p5.ColorConversion._hsbaToRGBA = function(hsba) { + var hue = hsba[0] * 6; // We will split hue into 6 sectors. + var sat = hsba[1]; + var val = hsba[2]; + + var RGBA = []; + + if (sat === 0) { + RGBA = [val, val, val, hsba[3]]; // Return early if grayscale. + } else { + var sector = Math.floor(hue); + var tint1 = val * (1 - sat); + var tint2 = val * (1 - sat * (hue - sector)); + var tint3 = val * (1 - sat * (1 + sector - hue)); + var red, green, blue; + if (sector === 1) { + // Yellow to green. + red = tint2; + green = val; + blue = tint1; + } else if (sector === 2) { + // Green to cyan. + red = tint1; + green = val; + blue = tint3; + } else if (sector === 3) { + // Cyan to blue. + red = tint1; + green = tint2; + blue = val; + } else if (sector === 4) { + // Blue to magenta. + red = tint3; + green = tint1; + blue = val; + } else if (sector === 5) { + // Magenta to red. + red = val; + green = tint1; + blue = tint2; + } else { + // Red to yellow (sector could be 0 or 6). + red = val; + green = tint3; + blue = tint1; + } + RGBA = [red, green, blue, hsba[3]]; + } + + return RGBA; + }; + + /** + * Convert an HSLA array to HSBA. + */ + p5.ColorConversion._hslaToHSBA = function(hsla) { + var hue = hsla[0]; + var sat = hsla[1]; + var li = hsla[2]; + + // Calculate brightness. + var val; + if (li < 0.5) { + val = (1 + sat) * li; + } else { + val = li + sat - li * sat; + } + + // Convert saturation. + sat = 2 * (val - li) / val; + + // Hue and alpha stay the same. + return [hue, sat, val, hsla[3]]; + }; + + /** + * Convert an HSLA array to RGBA. + * + * We need to change basis from HSLA to something that can be more easily be + * projected onto RGBA. We will choose hue and brightness as our first two + * components, and pick a convenient third one ('zest') so that we don't need + * to calculate formal HSBA saturation. + */ + p5.ColorConversion._hslaToRGBA = function(hsla) { + var hue = hsla[0] * 6; // We will split hue into 6 sectors. + var sat = hsla[1]; + var li = hsla[2]; + + var RGBA = []; + + if (sat === 0) { + RGBA = [li, li, li, hsla[3]]; // Return early if grayscale. + } else { + // Calculate brightness. + var val; + if (li < 0.5) { + val = (1 + sat) * li; + } else { + val = li + sat - li * sat; + } + + // Define zest. + var zest = 2 * li - val; + + // Implement projection (project onto green by default). + var hzvToRGB = function hzvToRGB(hue, zest, val) { + if (hue < 0) { + // Hue must wrap to allow projection onto red and blue. + hue += 6; + } else if (hue >= 6) { + hue -= 6; + } + if (hue < 1) { + // Red to yellow (increasing green). + return zest + (val - zest) * hue; + } else if (hue < 3) { + // Yellow to cyan (greatest green). + return val; + } else if (hue < 4) { + // Cyan to blue (decreasing green). + return zest + (val - zest) * (4 - hue); + } else { + // Blue to red (least green). + return zest; + } + }; + + // Perform projections, offsetting hue as necessary. + RGBA = [ + hzvToRGB(hue + 2, zest, val), + hzvToRGB(hue, zest, val), + hzvToRGB(hue - 2, zest, val), + hsla[3] + ]; + } + + return RGBA; + }; + + /** + * Convert an RGBA array to HSBA. + */ + p5.ColorConversion._rgbaToHSBA = function(rgba) { + var red = rgba[0]; + var green = rgba[1]; + var blue = rgba[2]; + + var val = Math.max(red, green, blue); + var chroma = val - Math.min(red, green, blue); + + var hue, sat; + if (chroma === 0) { + // Return early if grayscale. + hue = 0; + sat = 0; + } else { + sat = chroma / val; + if (red === val) { + // Magenta to yellow. + hue = (green - blue) / chroma; + } else if (green === val) { + // Yellow to cyan. + hue = 2 + (blue - red) / chroma; + } else if (blue === val) { + // Cyan to magenta. + hue = 4 + (red - green) / chroma; + } + if (hue < 0) { + // Confine hue to the interval [0, 1). + hue += 6; + } else if (hue >= 6) { + hue -= 6; + } + } + + return [hue / 6, sat, val, rgba[3]]; + }; + + /** + * Convert an RGBA array to HSLA. + */ + p5.ColorConversion._rgbaToHSLA = function(rgba) { + var red = rgba[0]; + var green = rgba[1]; + var blue = rgba[2]; + + var val = Math.max(red, green, blue); + var min = Math.min(red, green, blue); + var li = val + min; // We will halve this later. + var chroma = val - min; + + var hue, sat; + if (chroma === 0) { + // Return early if grayscale. + hue = 0; + sat = 0; + } else { + if (li < 1) { + sat = chroma / li; + } else { + sat = chroma / (2 - li); + } + if (red === val) { + // Magenta to yellow. + hue = (green - blue) / chroma; + } else if (green === val) { + // Yellow to cyan. + hue = 2 + (blue - red) / chroma; + } else if (blue === val) { + // Cyan to magenta. + hue = 4 + (red - green) / chroma; + } + if (hue < 0) { + // Confine hue to the interval [0, 1). + hue += 6; + } else if (hue >= 6) { + hue -= 6; + } + } + + return [hue / 6, sat, li / 2, rgba[3]]; + }; + + module.exports = p5.ColorConversion; + }, + { '../core/main': 24 } + ], + 15: [ + function(_dereq_, module, exports) { + /** + * @module Color + * @submodule Creating & Reading + * @for p5 + * @requires core + * @requires constants + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + var constants = _dereq_('../core/constants'); + _dereq_('./p5.Color'); + _dereq_('../core/error_helpers'); + + /** + * Extracts the alpha value from a color or pixel array. + * + * @method alpha + * @param {p5.Color|Number[]|String} color p5.Color object, color components, + * or CSS color + * @return {Number} the alpha value + * @example + *
+ * + * noStroke(); + * let c = color(0, 126, 255, 102); + * fill(c); + * rect(15, 15, 35, 70); + * let value = alpha(c); // Sets 'value' to 102 + * fill(value); + * rect(50, 15, 35, 70); + * + *
+ * + * @alt + * Left half of canvas light blue and right half light charcoal grey. + * Left half of canvas light purple and right half a royal blue. + * Left half of canvas salmon pink and the right half white. + * Yellow rect in middle right of canvas, with 55 pixel width and height. + * Yellow ellipse in top left canvas, black ellipse in bottom right,both 80x80. + * Bright fuchsia rect in middle of canvas, 60 pixel width and height. + * Two bright green rects on opposite sides of the canvas, both 45x80. + * Four blue rects in each corner of the canvas, each are 35x35. + * Bright sea green rect on left and darker rect on right of canvas, both 45x80. + * Dark green rect on left and light green rect on right of canvas, both 45x80. + * Dark blue rect on left and light teal rect on right of canvas, both 45x80. + * blue rect on left and green on right, both with black outlines & 35x60. + * salmon pink rect on left and black on right, both 35x60. + * 4 rects, tan, brown, brownish purple and purple, with white outlines & 20x60. + * light pastel green rect on left and dark grey rect on right, both 35x60. + * yellow rect on left and red rect on right, both with black outlines & 35x60. + * grey canvas + * deep pink rect on left and grey rect on right, both 35x60. + */ + p5.prototype.alpha = function(c) { + p5._validateParameters('alpha', arguments); + return this.color(c)._getAlpha(); + }; + + /** + * Extracts the blue value from a color or pixel array. + * + * @method blue + * @param {p5.Color|Number[]|String} color p5.Color object, color components, + * or CSS color + * @return {Number} the blue value + * @example + *
+ * + * let c = color(175, 100, 220); // Define color 'c' + * fill(c); // Use color variable 'c' as fill color + * rect(15, 20, 35, 60); // Draw left rectangle + * + * let blueValue = blue(c); // Get blue in 'c' + * print(blueValue); // Prints "220.0" + * fill(0, 0, blueValue); // Use 'blueValue' in new fill + * rect(50, 20, 35, 60); // Draw right rectangle + * + *
+ * + * @alt + * Left half of canvas light purple and right half a royal blue. + * + */ + p5.prototype.blue = function(c) { + p5._validateParameters('blue', arguments); + return this.color(c)._getBlue(); + }; + + /** + * Extracts the HSB brightness value from a color or pixel array. + * + * @method brightness + * @param {p5.Color|Number[]|String} color p5.Color object, color components, + * or CSS color + * @return {Number} the brightness value + * @example + *
+ * + * noStroke(); + * colorMode(HSB, 255); + * let c = color(0, 126, 255); + * fill(c); + * rect(15, 20, 35, 60); + * let value = brightness(c); // Sets 'value' to 255 + * fill(value); + * rect(50, 20, 35, 60); + * + *
+ *
+ * + * noStroke(); + * colorMode(HSB, 255); + * let c = color('hsb(60, 100%, 50%)'); + * fill(c); + * rect(15, 20, 35, 60); + * let value = brightness(c); // A 'value' of 50% is 127.5 + * fill(value); + * rect(50, 20, 35, 60); + * + *
+ * + * @alt + * Left half of canvas salmon pink and the right half white. + * Left half of canvas yellow at half brightness and the right gray . + * + */ + p5.prototype.brightness = function(c) { + p5._validateParameters('brightness', arguments); + return this.color(c)._getBrightness(); + }; + + /** + * Creates colors for storing in variables of the color datatype. The + * parameters are interpreted as RGB or HSB values depending on the + * current colorMode(). The default mode is RGB values from 0 to 255 + * and, therefore, the function call color(255, 204, 0) will return a + * bright yellow color. + *

+ * Note that if only one value is provided to color(), it will be interpreted + * as a grayscale value. Add a second value, and it will be used for alpha + * transparency. When three values are specified, they are interpreted as + * either RGB or HSB values. Adding a fourth value applies alpha + * transparency. + *

+ * If a single string argument is provided, RGB, RGBA and Hex CSS color + * strings and all named color strings are supported. In this case, an alpha + * number value as a second argument is not supported, the RGBA form should be + * used. + * + * @method color + * @param {Number} gray number specifying value between white + * and black. + * @param {Number} [alpha] alpha value relative to current color range + * (default is 0-255) + * @return {p5.Color} resulting color + * + * @example + *
+ * + * let c = color(255, 204, 0); // Define color 'c' + * fill(c); // Use color variable 'c' as fill color + * noStroke(); // Don't draw a stroke around shapes + * rect(30, 20, 55, 55); // Draw rectangle + * + *
+ * + *
+ * + * let c = color(255, 204, 0); // Define color 'c' + * fill(c); // Use color variable 'c' as fill color + * noStroke(); // Don't draw a stroke around shapes + * ellipse(25, 25, 80, 80); // Draw left circle + * + * // Using only one value with color() + * // generates a grayscale value. + * c = color(65); // Update 'c' with grayscale value + * fill(c); // Use updated 'c' as fill color + * ellipse(75, 75, 80, 80); // Draw right circle + * + *
+ * + *
+ * + * // Named SVG & CSS colors may be used, + * let c = color('magenta'); + * fill(c); // Use 'c' as fill color + * noStroke(); // Don't draw a stroke around shapes + * rect(20, 20, 60, 60); // Draw rectangle + * + *
+ * + *
+ * + * // as can hex color codes: + * noStroke(); // Don't draw a stroke around shapes + * let c = color('#0f0'); + * fill(c); // Use 'c' as fill color + * rect(0, 10, 45, 80); // Draw rectangle + * + * c = color('#00ff00'); + * fill(c); // Use updated 'c' as fill color + * rect(55, 10, 45, 80); // Draw rectangle + * + *
+ * + *
+ * + * // RGB and RGBA color strings are also supported: + * // these all set to the same color (solid blue) + * let c; + * noStroke(); // Don't draw a stroke around shapes + * c = color('rgb(0,0,255)'); + * fill(c); // Use 'c' as fill color + * rect(10, 10, 35, 35); // Draw rectangle + * + * c = color('rgb(0%, 0%, 100%)'); + * fill(c); // Use updated 'c' as fill color + * rect(55, 10, 35, 35); // Draw rectangle + * + * c = color('rgba(0, 0, 255, 1)'); + * fill(c); // Use updated 'c' as fill color + * rect(10, 55, 35, 35); // Draw rectangle + * + * c = color('rgba(0%, 0%, 100%, 1)'); + * fill(c); // Use updated 'c' as fill color + * rect(55, 55, 35, 35); // Draw rectangle + * + *
+ * + *
+ * + * // HSL color is also supported and can be specified + * // by value + * let c; + * noStroke(); // Don't draw a stroke around shapes + * c = color('hsl(160, 100%, 50%)'); + * fill(c); // Use 'c' as fill color + * rect(0, 10, 45, 80); // Draw rectangle + * + * c = color('hsla(160, 100%, 50%, 0.5)'); + * fill(c); // Use updated 'c' as fill color + * rect(55, 10, 45, 80); // Draw rectangle + * + *
+ * + *
+ * + * // HSB color is also supported and can be specified + * // by value + * let c; + * noStroke(); // Don't draw a stroke around shapes + * c = color('hsb(160, 100%, 50%)'); + * fill(c); // Use 'c' as fill color + * rect(0, 10, 45, 80); // Draw rectangle + * + * c = color('hsba(160, 100%, 50%, 0.5)'); + * fill(c); // Use updated 'c' as fill color + * rect(55, 10, 45, 80); // Draw rectangle + * + *
+ * + *
+ * + * let c; // Declare color 'c' + * noStroke(); // Don't draw a stroke around shapes + * + * // If no colorMode is specified, then the + * // default of RGB with scale of 0-255 is used. + * c = color(50, 55, 100); // Create a color for 'c' + * fill(c); // Use color variable 'c' as fill color + * rect(0, 10, 45, 80); // Draw left rect + * + * colorMode(HSB, 100); // Use HSB with scale of 0-100 + * c = color(50, 55, 100); // Update 'c' with new color + * fill(c); // Use updated 'c' as fill color + * rect(55, 10, 45, 80); // Draw right rect + * + *
+ * + * @alt + * Yellow rect in middle right of canvas, with 55 pixel width and height. + * Yellow ellipse in top left of canvas, black ellipse in bottom right,both 80x80. + * Bright fuchsia rect in middle of canvas, 60 pixel width and height. + * Two bright green rects on opposite sides of the canvas, both 45x80. + * Four blue rects in each corner of the canvas, each are 35x35. + * Bright sea green rect on left and darker rect on right of canvas, both 45x80. + * Dark green rect on left and lighter green rect on right of canvas, both 45x80. + * Dark blue rect on left and light teal rect on right of canvas, both 45x80. + * + */ + /** + * @method color + * @param {Number} v1 red or hue value relative to + * the current color range + * @param {Number} v2 green or saturation value + * relative to the current color range + * @param {Number} v3 blue or brightness value + * relative to the current color range + * @param {Number} [alpha] + * @return {p5.Color} + */ + + /** + * @method color + * @param {String} value a color string + * @return {p5.Color} + */ + /** + * @method color + * @param {Number[]} values an array containing the red,green,blue & + * and alpha components of the color + * @return {p5.Color} + */ + /** + * @method color + * @param {p5.Color} color + * @return {p5.Color} + */ + + p5.prototype.color = function() { + p5._validateParameters('color', arguments); + if (arguments[0] instanceof p5.Color) { + return arguments[0]; // Do nothing if argument is already a color object. + } + + var args = arguments[0] instanceof Array ? arguments[0] : arguments; + return new p5.Color(this, args); + }; + + /** + * Extracts the green value from a color or pixel array. + * + * @method green + * @param {p5.Color|Number[]|String} color p5.Color object, color components, + * or CSS color + * @return {Number} the green value + * @example + *
+ * + * let c = color(20, 75, 200); // Define color 'c' + * fill(c); // Use color variable 'c' as fill color + * rect(15, 20, 35, 60); // Draw left rectangle + * + * let greenValue = green(c); // Get green in 'c' + * print(greenValue); // Print "75.0" + * fill(0, greenValue, 0); // Use 'greenValue' in new fill + * rect(50, 20, 35, 60); // Draw right rectangle + * + *
+ * + * @alt + * blue rect on left and green on right, both with black outlines & 35x60. + * + */ + + p5.prototype.green = function(c) { + p5._validateParameters('green', arguments); + return this.color(c)._getGreen(); + }; + + /** + * Extracts the hue value from a color or pixel array. + * + * Hue exists in both HSB and HSL. This function will return the + * HSB-normalized hue when supplied with an HSB color object (or when supplied + * with a pixel array while the color mode is HSB), but will default to the + * HSL-normalized hue otherwise. (The values will only be different if the + * maximum hue setting for each system is different.) + * + * @method hue + * @param {p5.Color|Number[]|String} color p5.Color object, color components, + * or CSS color + * @return {Number} the hue + * @example + *
+ * + * noStroke(); + * colorMode(HSB, 255); + * let c = color(0, 126, 255); + * fill(c); + * rect(15, 20, 35, 60); + * let value = hue(c); // Sets 'value' to "0" + * fill(value); + * rect(50, 20, 35, 60); + * + *
+ * + * @alt + * salmon pink rect on left and black on right, both 35x60. + * + */ + + p5.prototype.hue = function(c) { + p5._validateParameters('hue', arguments); + return this.color(c)._getHue(); + }; + + /** + * Blends two colors to find a third color somewhere between them. The amt + * parameter is the amount to interpolate between the two values where 0.0 + * equal to the first color, 0.1 is very near the first color, 0.5 is halfway + * in between, etc. An amount below 0 will be treated as 0. Likewise, amounts + * above 1 will be capped at 1. This is different from the behavior of lerp(), + * but necessary because otherwise numbers outside the range will produce + * strange and unexpected colors. + *

+ * The way that colours are interpolated depends on the current color mode. + * + * @method lerpColor + * @param {p5.Color} c1 interpolate from this color + * @param {p5.Color} c2 interpolate to this color + * @param {Number} amt number between 0 and 1 + * @return {p5.Color} interpolated color + * @example + *
+ * + * colorMode(RGB); + * stroke(255); + * background(51); + * let from = color(218, 165, 32); + * let to = color(72, 61, 139); + * colorMode(RGB); // Try changing to HSB. + * let interA = lerpColor(from, to, 0.33); + * let interB = lerpColor(from, to, 0.66); + * fill(from); + * rect(10, 20, 20, 60); + * fill(interA); + * rect(30, 20, 20, 60); + * fill(interB); + * rect(50, 20, 20, 60); + * fill(to); + * rect(70, 20, 20, 60); + * + *
+ * + * @alt + * 4 rects one tan, brown, brownish purple, purple, with white outlines & 20x60 + * + */ + + p5.prototype.lerpColor = function(c1, c2, amt) { + p5._validateParameters('lerpColor', arguments); + var mode = this._colorMode; + var maxes = this._colorMaxes; + var l0, l1, l2, l3; + var fromArray, toArray; + + if (mode === constants.RGB) { + fromArray = c1.levels.map(function(level) { + return level / 255; + }); + toArray = c2.levels.map(function(level) { + return level / 255; + }); + } else if (mode === constants.HSB) { + c1._getBrightness(); // Cache hsba so it definitely exists. + c2._getBrightness(); + fromArray = c1.hsba; + toArray = c2.hsba; + } else if (mode === constants.HSL) { + c1._getLightness(); // Cache hsla so it definitely exists. + c2._getLightness(); + fromArray = c1.hsla; + toArray = c2.hsla; + } else { + throw new Error(mode + 'cannot be used for interpolation.'); + } + + // Prevent extrapolation. + amt = Math.max(Math.min(amt, 1), 0); + + // Define lerp here itself if user isn't using math module. + // Maintains the definition as found in math/calculation.js + if (typeof this.lerp === 'undefined') { + this.lerp = function(start, stop, amt) { + return amt * (stop - start) + start; + }; + } + + // Perform interpolation. + l0 = this.lerp(fromArray[0], toArray[0], amt); + l1 = this.lerp(fromArray[1], toArray[1], amt); + l2 = this.lerp(fromArray[2], toArray[2], amt); + l3 = this.lerp(fromArray[3], toArray[3], amt); + + // Scale components. + l0 *= maxes[mode][0]; + l1 *= maxes[mode][1]; + l2 *= maxes[mode][2]; + l3 *= maxes[mode][3]; + + return this.color(l0, l1, l2, l3); + }; + + /** + * Extracts the HSL lightness value from a color or pixel array. + * + * @method lightness + * @param {p5.Color|Number[]|String} color p5.Color object, color components, + * or CSS color + * @return {Number} the lightness + * @example + *
+ * + * noStroke(); + * colorMode(HSL); + * let c = color(156, 100, 50, 1); + * fill(c); + * rect(15, 20, 35, 60); + * let value = lightness(c); // Sets 'value' to 50 + * fill(value); + * rect(50, 20, 35, 60); + * + *
+ * + * @alt + * light pastel green rect on left and dark grey rect on right, both 35x60. + * + */ + p5.prototype.lightness = function(c) { + p5._validateParameters('lightness', arguments); + return this.color(c)._getLightness(); + }; + + /** + * Extracts the red value from a color or pixel array. + * + * @method red + * @param {p5.Color|Number[]|String} color p5.Color object, color components, + * or CSS color + * @return {Number} the red value + * @example + *
+ * + * let c = color(255, 204, 0); // Define color 'c' + * fill(c); // Use color variable 'c' as fill color + * rect(15, 20, 35, 60); // Draw left rectangle + * + * let redValue = red(c); // Get red in 'c' + * print(redValue); // Print "255.0" + * fill(redValue, 0, 0); // Use 'redValue' in new fill + * rect(50, 20, 35, 60); // Draw right rectangle + * + *
+ * + *
+ * + * colorMode(RGB, 255); // Sets the range for red, green, and blue to 255 + * let c = color(127, 255, 0); + * colorMode(RGB, 1); // Sets the range for red, green, and blue to 1 + * let myColor = red(c); + * print(myColor); // 0.4980392156862745 + * + *
+ * + * @alt + * yellow rect on left and red rect on right, both with black outlines and 35x60. + * grey canvas + */ + p5.prototype.red = function(c) { + p5._validateParameters('red', arguments); + return this.color(c)._getRed(); + }; + + /** + * Extracts the saturation value from a color or pixel array. + * + * Saturation is scaled differently in HSB and HSL. This function will return + * the HSB saturation when supplied with an HSB color object (or when supplied + * with a pixel array while the color mode is HSB), but will default to the + * HSL saturation otherwise. + * + * @method saturation + * @param {p5.Color|Number[]|String} color p5.Color object, color components, + * or CSS color + * @return {Number} the saturation value + * @example + *
+ * + * noStroke(); + * colorMode(HSB, 255); + * let c = color(0, 126, 255); + * fill(c); + * rect(15, 20, 35, 60); + * let value = saturation(c); // Sets 'value' to 126 + * fill(value); + * rect(50, 20, 35, 60); + * + *
+ * + * @alt + *deep pink rect on left and grey rect on right, both 35x60. + * + */ + + p5.prototype.saturation = function(c) { + p5._validateParameters('saturation', arguments); + return this.color(c)._getSaturation(); + }; + + module.exports = p5; + }, + { + '../core/constants': 18, + '../core/error_helpers': 20, + '../core/main': 24, + './p5.Color': 16 + } + ], + 16: [ + function(_dereq_, module, exports) { + /** + * @module Color + * @submodule Creating & Reading + * @for p5 + * @requires core + * @requires constants + * @requires color_conversion + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + var constants = _dereq_('../core/constants'); + var color_conversion = _dereq_('./color_conversion'); + + /** + * Each color stores the color mode and level maxes that applied at the + * time of its construction. These are used to interpret the input arguments + * (at construction and later for that instance of color) and to format the + * output e.g. when saturation() is requested. + * + * Internally we store an array representing the ideal RGBA values in floating + * point form, normalized from 0 to 1. From this we calculate the closest + * screen color (RGBA levels from 0 to 255) and expose this to the renderer. + * + * We also cache normalized, floating point components of the color in various + * representations as they are calculated. This is done to prevent repeating a + * conversion that has already been performed. + * + * @class p5.Color + */ + p5.Color = function(pInst, vals) { + // Record color mode and maxes at time of construction. + this._storeModeAndMaxes(pInst._colorMode, pInst._colorMaxes); + + // Calculate normalized RGBA values. + if ( + this.mode !== constants.RGB && + this.mode !== constants.HSL && + this.mode !== constants.HSB + ) { + throw new Error(this.mode + ' is an invalid colorMode.'); + } else { + this._array = p5.Color._parseInputs.apply(this, vals); + } + + // Expose closest screen color. + this._calculateLevels(); + return this; + }; + + /** + * This function returns the color formatted as a string. This can be useful + * for debugging, or for using p5.js with other libraries. + * @method toString + * @param {String} [format] How the color string will be formatted. + * Leaving this empty formats the string as rgba(r, g, b, a). + * '#rgb' '#rgba' '#rrggbb' and '#rrggbbaa' format as hexadecimal color codes. + * 'rgb' 'hsb' and 'hsl' return the color formatted in the specified color mode. + * 'rgba' 'hsba' and 'hsla' are the same as above but with alpha channels. + * 'rgb%' 'hsb%' 'hsl%' 'rgba%' 'hsba%' and 'hsla%' format as percentages. + * @return {String} the formatted string + * @example + *
+ * + * let myColor; + * function setup() { + * createCanvas(200, 200); + * stroke(255); + * myColor = color(100, 100, 250); + * fill(myColor); + * } + * + * function draw() { + * rotate(HALF_PI); + * text(myColor.toString(), 0, -5); + * text(myColor.toString('#rrggbb'), 0, -30); + * text(myColor.toString('rgba%'), 0, -55); + * } + * + *
+ * + * @alt + * canvas with text representation of color + */ + p5.Color.prototype.toString = function(format) { + var a = this.levels; + var f = this._array; + var alpha = f[3]; // String representation uses normalized alpha + + switch (format) { + case '#rrggbb': + return '#'.concat( + a[0] < 16 ? '0'.concat(a[0].toString(16)) : a[0].toString(16), + a[1] < 16 ? '0'.concat(a[1].toString(16)) : a[1].toString(16), + a[2] < 16 ? '0'.concat(a[2].toString(16)) : a[2].toString(16) + ); + + case '#rrggbbaa': + return '#'.concat( + a[0] < 16 ? '0'.concat(a[0].toString(16)) : a[0].toString(16), + a[1] < 16 ? '0'.concat(a[1].toString(16)) : a[1].toString(16), + a[2] < 16 ? '0'.concat(a[2].toString(16)) : a[2].toString(16), + a[3] < 16 ? '0'.concat(a[2].toString(16)) : a[3].toString(16) + ); + + case '#rgb': + return '#'.concat( + Math.round(f[0] * 15).toString(16), + Math.round(f[1] * 15).toString(16), + Math.round(f[2] * 15).toString(16) + ); + + case '#rgba': + return '#'.concat( + Math.round(f[0] * 15).toString(16), + Math.round(f[1] * 15).toString(16), + Math.round(f[2] * 15).toString(16), + Math.round(f[3] * 15).toString(16) + ); + + case 'rgb': + return 'rgb('.concat(a[0], ', ', a[1], ', ', a[2], ')'); + + case 'rgb%': + return 'rgb('.concat( + (100 * f[0]).toPrecision(3), + '%, ', + (100 * f[1]).toPrecision(3), + '%, ', + (100 * f[2]).toPrecision(3), + '%)' + ); + + case 'rgba%': + return 'rgba('.concat( + (100 * f[0]).toPrecision(3), + '%, ', + (100 * f[1]).toPrecision(3), + '%, ', + (100 * f[2]).toPrecision(3), + '%, ', + (100 * f[3]).toPrecision(3), + '%)' + ); + + case 'hsb': + case 'hsv': + if (!this.hsba) this.hsba = color_conversion._rgbaToHSBA(this._array); + return 'hsb('.concat( + this.hsba[0] * this.maxes[constants.HSB][0], + ', ', + this.hsba[1] * this.maxes[constants.HSB][1], + ', ', + this.hsba[2] * this.maxes[constants.HSB][2], + ')' + ); + + case 'hsb%': + case 'hsv%': + if (!this.hsba) this.hsba = color_conversion._rgbaToHSBA(this._array); + return 'hsb('.concat( + (100 * this.hsba[0]).toPrecision(3), + '%, ', + (100 * this.hsba[1]).toPrecision(3), + '%, ', + (100 * this.hsba[2]).toPrecision(3), + '%)' + ); + + case 'hsba': + case 'hsva': + if (!this.hsba) this.hsba = color_conversion._rgbaToHSBA(this._array); + return 'hsba('.concat( + this.hsba[0] * this.maxes[constants.HSB][0], + ', ', + this.hsba[1] * this.maxes[constants.HSB][1], + ', ', + this.hsba[2] * this.maxes[constants.HSB][2], + ', ', + alpha, + ')' + ); + + case 'hsba%': + case 'hsva%': + if (!this.hsba) this.hsba = color_conversion._rgbaToHSBA(this._array); + return 'hsba('.concat( + (100 * this.hsba[0]).toPrecision(3), + '%, ', + (100 * this.hsba[1]).toPrecision(3), + '%, ', + (100 * this.hsba[2]).toPrecision(3), + '%, ', + (100 * alpha).toPrecision(3), + '%)' + ); + + case 'hsl': + if (!this.hsla) this.hsla = color_conversion._rgbaToHSLA(this._array); + return 'hsl('.concat( + this.hsla[0] * this.maxes[constants.HSL][0], + ', ', + this.hsla[1] * this.maxes[constants.HSL][1], + ', ', + this.hsla[2] * this.maxes[constants.HSL][2], + ')' + ); + + case 'hsl%': + if (!this.hsla) this.hsla = color_conversion._rgbaToHSLA(this._array); + return 'hsl('.concat( + (100 * this.hsla[0]).toPrecision(3), + '%, ', + (100 * this.hsla[1]).toPrecision(3), + '%, ', + (100 * this.hsla[2]).toPrecision(3), + '%)' + ); + + case 'hsla': + if (!this.hsla) this.hsla = color_conversion._rgbaToHSLA(this._array); + return 'hsla('.concat( + this.hsla[0] * this.maxes[constants.HSL][0], + ', ', + this.hsla[1] * this.maxes[constants.HSL][1], + ', ', + this.hsla[2] * this.maxes[constants.HSL][2], + ', ', + alpha, + ')' + ); + + case 'hsla%': + if (!this.hsla) this.hsla = color_conversion._rgbaToHSLA(this._array); + return 'hsl('.concat( + (100 * this.hsla[0]).toPrecision(3), + '%, ', + (100 * this.hsla[1]).toPrecision(3), + '%, ', + (100 * this.hsla[2]).toPrecision(3), + '%, ', + (100 * alpha).toPrecision(3), + '%)' + ); + + case 'rgba': + default: + return 'rgba('.concat(a[0], ',', a[1], ',', a[2], ',', alpha, ')'); + } + }; + + /** + * @method setRed + * @param {Number} red the new red value + * @example + *
+ * + * let backgroundColor; + * + * function setup() { + * backgroundColor = color(100, 50, 150); + * } + * + * function draw() { + * backgroundColor.setRed(128 + 128 * sin(millis() / 1000)); + * background(backgroundColor); + * } + * + *
+ * + * @alt + * canvas with gradually changing background color + */ + p5.Color.prototype.setRed = function(new_red) { + this._array[0] = new_red / this.maxes[constants.RGB][0]; + this._calculateLevels(); + }; + + /** + * @method setGreen + * @param {Number} green the new green value + * @example + *
+ * + * let backgroundColor; + * + * function setup() { + * backgroundColor = color(100, 50, 150); + * } + * + * function draw() { + * backgroundColor.setGreen(128 + 128 * sin(millis() / 1000)); + * background(backgroundColor); + * } + * + *
+ * + * @alt + * canvas with gradually changing background color + **/ + p5.Color.prototype.setGreen = function(new_green) { + this._array[1] = new_green / this.maxes[constants.RGB][1]; + this._calculateLevels(); + }; + + /** + * @method setBlue + * @param {Number} blue the new blue value + * @example + *
+ * + * let backgroundColor; + * + * function setup() { + * backgroundColor = color(100, 50, 150); + * } + * + * function draw() { + * backgroundColor.setBlue(128 + 128 * sin(millis() / 1000)); + * background(backgroundColor); + * } + * + *
+ * + * @alt + * canvas with gradually changing background color + **/ + p5.Color.prototype.setBlue = function(new_blue) { + this._array[2] = new_blue / this.maxes[constants.RGB][2]; + this._calculateLevels(); + }; + + /** + * @method setAlpha + * @param {Number} alpha the new alpha value + * @example + *
+ * + * let squareColor; + * + * function setup() { + * ellipseMode(CORNERS); + * strokeWeight(4); + * squareColor = color(100, 50, 150); + * } + * + * function draw() { + * background(255); + * + * noFill(); + * stroke(0); + * ellipse(10, 10, width - 10, height - 10); + * + * squareColor.setAlpha(128 + 128 * sin(millis() / 1000)); + * fill(squareColor); + * noStroke(); + * rect(13, 13, width - 26, height - 26); + * } + * + *
+ * + * @alt + * circle behind a square with gradually changing opacity + **/ + p5.Color.prototype.setAlpha = function(new_alpha) { + this._array[3] = new_alpha / this.maxes[this.mode][3]; + this._calculateLevels(); + }; + + // calculates and stores the closest screen levels + p5.Color.prototype._calculateLevels = function() { + var array = this._array; + // (loop backwards for performance) + var levels = (this.levels = new Array(array.length)); + for (var i = array.length - 1; i >= 0; --i) { + levels[i] = Math.round(array[i] * 255); + } + }; + + p5.Color.prototype._getAlpha = function() { + return this._array[3] * this.maxes[this.mode][3]; + }; + + // stores the color mode and maxes in this instance of Color + // for later use (by _parseInputs()) + p5.Color.prototype._storeModeAndMaxes = function(new_mode, new_maxes) { + this.mode = new_mode; + this.maxes = new_maxes; + }; + + p5.Color.prototype._getMode = function() { + return this.mode; + }; + + p5.Color.prototype._getMaxes = function() { + return this.maxes; + }; + + p5.Color.prototype._getBlue = function() { + return this._array[2] * this.maxes[constants.RGB][2]; + }; + + p5.Color.prototype._getBrightness = function() { + if (!this.hsba) { + this.hsba = color_conversion._rgbaToHSBA(this._array); + } + return this.hsba[2] * this.maxes[constants.HSB][2]; + }; + + p5.Color.prototype._getGreen = function() { + return this._array[1] * this.maxes[constants.RGB][1]; + }; + + /** + * Hue is the same in HSB and HSL, but the maximum value may be different. + * This function will return the HSB-normalized saturation when supplied with + * an HSB color object, but will default to the HSL-normalized saturation + * otherwise. + */ + p5.Color.prototype._getHue = function() { + if (this.mode === constants.HSB) { + if (!this.hsba) { + this.hsba = color_conversion._rgbaToHSBA(this._array); + } + return this.hsba[0] * this.maxes[constants.HSB][0]; + } else { + if (!this.hsla) { + this.hsla = color_conversion._rgbaToHSLA(this._array); + } + return this.hsla[0] * this.maxes[constants.HSL][0]; + } + }; + + p5.Color.prototype._getLightness = function() { + if (!this.hsla) { + this.hsla = color_conversion._rgbaToHSLA(this._array); + } + return this.hsla[2] * this.maxes[constants.HSL][2]; + }; + + p5.Color.prototype._getRed = function() { + return this._array[0] * this.maxes[constants.RGB][0]; + }; + + /** + * Saturation is scaled differently in HSB and HSL. This function will return + * the HSB saturation when supplied with an HSB color object, but will default + * to the HSL saturation otherwise. + */ + p5.Color.prototype._getSaturation = function() { + if (this.mode === constants.HSB) { + if (!this.hsba) { + this.hsba = color_conversion._rgbaToHSBA(this._array); + } + return this.hsba[1] * this.maxes[constants.HSB][1]; + } else { + if (!this.hsla) { + this.hsla = color_conversion._rgbaToHSLA(this._array); + } + return this.hsla[1] * this.maxes[constants.HSL][1]; + } + }; + + /** + * CSS named colors. + */ + var namedColors = { + aliceblue: '#f0f8ff', + antiquewhite: '#faebd7', + aqua: '#00ffff', + aquamarine: '#7fffd4', + azure: '#f0ffff', + beige: '#f5f5dc', + bisque: '#ffe4c4', + black: '#000000', + blanchedalmond: '#ffebcd', + blue: '#0000ff', + blueviolet: '#8a2be2', + brown: '#a52a2a', + burlywood: '#deb887', + cadetblue: '#5f9ea0', + chartreuse: '#7fff00', + chocolate: '#d2691e', + coral: '#ff7f50', + cornflowerblue: '#6495ed', + cornsilk: '#fff8dc', + crimson: '#dc143c', + cyan: '#00ffff', + darkblue: '#00008b', + darkcyan: '#008b8b', + darkgoldenrod: '#b8860b', + darkgray: '#a9a9a9', + darkgreen: '#006400', + darkgrey: '#a9a9a9', + darkkhaki: '#bdb76b', + darkmagenta: '#8b008b', + darkolivegreen: '#556b2f', + darkorange: '#ff8c00', + darkorchid: '#9932cc', + darkred: '#8b0000', + darksalmon: '#e9967a', + darkseagreen: '#8fbc8f', + darkslateblue: '#483d8b', + darkslategray: '#2f4f4f', + darkslategrey: '#2f4f4f', + darkturquoise: '#00ced1', + darkviolet: '#9400d3', + deeppink: '#ff1493', + deepskyblue: '#00bfff', + dimgray: '#696969', + dimgrey: '#696969', + dodgerblue: '#1e90ff', + firebrick: '#b22222', + floralwhite: '#fffaf0', + forestgreen: '#228b22', + fuchsia: '#ff00ff', + gainsboro: '#dcdcdc', + ghostwhite: '#f8f8ff', + gold: '#ffd700', + goldenrod: '#daa520', + gray: '#808080', + green: '#008000', + greenyellow: '#adff2f', + grey: '#808080', + honeydew: '#f0fff0', + hotpink: '#ff69b4', + indianred: '#cd5c5c', + indigo: '#4b0082', + ivory: '#fffff0', + khaki: '#f0e68c', + lavender: '#e6e6fa', + lavenderblush: '#fff0f5', + lawngreen: '#7cfc00', + lemonchiffon: '#fffacd', + lightblue: '#add8e6', + lightcoral: '#f08080', + lightcyan: '#e0ffff', + lightgoldenrodyellow: '#fafad2', + lightgray: '#d3d3d3', + lightgreen: '#90ee90', + lightgrey: '#d3d3d3', + lightpink: '#ffb6c1', + lightsalmon: '#ffa07a', + lightseagreen: '#20b2aa', + lightskyblue: '#87cefa', + lightslategray: '#778899', + lightslategrey: '#778899', + lightsteelblue: '#b0c4de', + lightyellow: '#ffffe0', + lime: '#00ff00', + limegreen: '#32cd32', + linen: '#faf0e6', + magenta: '#ff00ff', + maroon: '#800000', + mediumaquamarine: '#66cdaa', + mediumblue: '#0000cd', + mediumorchid: '#ba55d3', + mediumpurple: '#9370db', + mediumseagreen: '#3cb371', + mediumslateblue: '#7b68ee', + mediumspringgreen: '#00fa9a', + mediumturquoise: '#48d1cc', + mediumvioletred: '#c71585', + midnightblue: '#191970', + mintcream: '#f5fffa', + mistyrose: '#ffe4e1', + moccasin: '#ffe4b5', + navajowhite: '#ffdead', + navy: '#000080', + oldlace: '#fdf5e6', + olive: '#808000', + olivedrab: '#6b8e23', + orange: '#ffa500', + orangered: '#ff4500', + orchid: '#da70d6', + palegoldenrod: '#eee8aa', + palegreen: '#98fb98', + paleturquoise: '#afeeee', + palevioletred: '#db7093', + papayawhip: '#ffefd5', + peachpuff: '#ffdab9', + peru: '#cd853f', + pink: '#ffc0cb', + plum: '#dda0dd', + powderblue: '#b0e0e6', + purple: '#800080', + red: '#ff0000', + rosybrown: '#bc8f8f', + royalblue: '#4169e1', + saddlebrown: '#8b4513', + salmon: '#fa8072', + sandybrown: '#f4a460', + seagreen: '#2e8b57', + seashell: '#fff5ee', + sienna: '#a0522d', + silver: '#c0c0c0', + skyblue: '#87ceeb', + slateblue: '#6a5acd', + slategray: '#708090', + slategrey: '#708090', + snow: '#fffafa', + springgreen: '#00ff7f', + steelblue: '#4682b4', + tan: '#d2b48c', + teal: '#008080', + thistle: '#d8bfd8', + tomato: '#ff6347', + turquoise: '#40e0d0', + violet: '#ee82ee', + wheat: '#f5deb3', + white: '#ffffff', + whitesmoke: '#f5f5f5', + yellow: '#ffff00', + yellowgreen: '#9acd32' + }; + + /** + * These regular expressions are used to build up the patterns for matching + * viable CSS color strings: fragmenting the regexes in this way increases the + * legibility and comprehensibility of the code. + * + * Note that RGB values of .9 are not parsed by IE, but are supported here for + * color string consistency. + */ + var WHITESPACE = /\s*/; // Match zero or more whitespace characters. + var INTEGER = /(\d{1,3})/; // Match integers: 79, 255, etc. + var DECIMAL = /((?:\d+(?:\.\d+)?)|(?:\.\d+))/; // Match 129.6, 79, .9, etc. + var PERCENT = new RegExp(DECIMAL.source + '%'); // Match 12.9%, 79%, .9%, etc. + + /** + * Full color string patterns. The capture groups are necessary. + */ + var colorPatterns = { + // Match colors in format #XXX, e.g. #416. + HEX3: /^#([a-f0-9])([a-f0-9])([a-f0-9])$/i, + + // Match colors in format #XXXX, e.g. #5123. + HEX4: /^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i, + + // Match colors in format #XXXXXX, e.g. #b4d455. + HEX6: /^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i, + + // Match colors in format #XXXXXXXX, e.g. #b4d45535. + HEX8: /^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i, + + // Match colors in format rgb(R, G, B), e.g. rgb(255, 0, 128). + RGB: new RegExp( + [ + '^rgb\\(', + INTEGER.source, + ',', + INTEGER.source, + ',', + INTEGER.source, + '\\)$' + ].join(WHITESPACE.source), + 'i' + ), + + // Match colors in format rgb(R%, G%, B%), e.g. rgb(100%, 0%, 28.9%). + RGB_PERCENT: new RegExp( + [ + '^rgb\\(', + PERCENT.source, + ',', + PERCENT.source, + ',', + PERCENT.source, + '\\)$' + ].join(WHITESPACE.source), + 'i' + ), + + // Match colors in format rgb(R, G, B, A), e.g. rgb(255, 0, 128, 0.25). + RGBA: new RegExp( + [ + '^rgba\\(', + INTEGER.source, + ',', + INTEGER.source, + ',', + INTEGER.source, + ',', + DECIMAL.source, + '\\)$' + ].join(WHITESPACE.source), + 'i' + ), + + // Match colors in format rgb(R%, G%, B%, A), e.g. rgb(100%, 0%, 28.9%, 0.5). + RGBA_PERCENT: new RegExp( + [ + '^rgba\\(', + PERCENT.source, + ',', + PERCENT.source, + ',', + PERCENT.source, + ',', + DECIMAL.source, + '\\)$' + ].join(WHITESPACE.source), + 'i' + ), + + // Match colors in format hsla(H, S%, L%), e.g. hsl(100, 40%, 28.9%). + HSL: new RegExp( + [ + '^hsl\\(', + INTEGER.source, + ',', + PERCENT.source, + ',', + PERCENT.source, + '\\)$' + ].join(WHITESPACE.source), + 'i' + ), + + // Match colors in format hsla(H, S%, L%, A), e.g. hsla(100, 40%, 28.9%, 0.5). + HSLA: new RegExp( + [ + '^hsla\\(', + INTEGER.source, + ',', + PERCENT.source, + ',', + PERCENT.source, + ',', + DECIMAL.source, + '\\)$' + ].join(WHITESPACE.source), + 'i' + ), + + // Match colors in format hsb(H, S%, B%), e.g. hsb(100, 40%, 28.9%). + HSB: new RegExp( + [ + '^hsb\\(', + INTEGER.source, + ',', + PERCENT.source, + ',', + PERCENT.source, + '\\)$' + ].join(WHITESPACE.source), + 'i' + ), + + // Match colors in format hsba(H, S%, B%, A), e.g. hsba(100, 40%, 28.9%, 0.5). + HSBA: new RegExp( + [ + '^hsba\\(', + INTEGER.source, + ',', + PERCENT.source, + ',', + PERCENT.source, + ',', + DECIMAL.source, + '\\)$' + ].join(WHITESPACE.source), + 'i' + ) + }; + + /** + * For a number of different inputs, returns a color formatted as [r, g, b, a] + * arrays, with each component normalized between 0 and 1. + * + * @private + * @param {Array} [...args] An 'array-like' object that represents a list of + * arguments + * @return {Number[]} a color formatted as [r, g, b, a] + * Example: + * input ==> output + * g ==> [g, g, g, 255] + * g,a ==> [g, g, g, a] + * r, g, b ==> [r, g, b, 255] + * r, g, b, a ==> [r, g, b, a] + * [g] ==> [g, g, g, 255] + * [g, a] ==> [g, g, g, a] + * [r, g, b] ==> [r, g, b, 255] + * [r, g, b, a] ==> [r, g, b, a] + * @example + *
+ * + * // todo + * + *
+ * + * @alt + * //todo + * + */ + p5.Color._parseInputs = function(r, g, b, a) { + var numArgs = arguments.length; + var mode = this.mode; + var maxes = this.maxes[mode]; + var results = []; + var i; + + if (numArgs >= 3) { + // Argument is a list of component values. + + results[0] = r / maxes[0]; + results[1] = g / maxes[1]; + results[2] = b / maxes[2]; + + // Alpha may be undefined, so default it to 100%. + if (typeof a === 'number') { + results[3] = a / maxes[3]; + } else { + results[3] = 1; + } + + // Constrain components to the range [0,1]. + // (loop backwards for performance) + for (i = results.length - 1; i >= 0; --i) { + var result = results[i]; + if (result < 0) { + results[i] = 0; + } else if (result > 1) { + results[i] = 1; + } + } + + // Convert to RGBA and return. + if (mode === constants.HSL) { + return color_conversion._hslaToRGBA(results); + } else if (mode === constants.HSB) { + return color_conversion._hsbaToRGBA(results); + } else { + return results; + } + } else if (numArgs === 1 && typeof r === 'string') { + var str = r.trim().toLowerCase(); + + // Return if string is a named colour. + if (namedColors[str]) { + return p5.Color._parseInputs.call(this, namedColors[str]); + } + + // Try RGBA pattern matching. + if (colorPatterns.HEX3.test(str)) { + // #rgb + results = colorPatterns.HEX3.exec(str) + .slice(1) + .map(function(color) { + return parseInt(color + color, 16) / 255; + }); + results[3] = 1; + return results; + } else if (colorPatterns.HEX6.test(str)) { + // #rrggbb + results = colorPatterns.HEX6.exec(str) + .slice(1) + .map(function(color) { + return parseInt(color, 16) / 255; + }); + results[3] = 1; + return results; + } else if (colorPatterns.HEX4.test(str)) { + // #rgba + results = colorPatterns.HEX4.exec(str) + .slice(1) + .map(function(color) { + return parseInt(color + color, 16) / 255; + }); + return results; + } else if (colorPatterns.HEX8.test(str)) { + // #rrggbbaa + results = colorPatterns.HEX8.exec(str) + .slice(1) + .map(function(color) { + return parseInt(color, 16) / 255; + }); + return results; + } else if (colorPatterns.RGB.test(str)) { + // rgb(R,G,B) + results = colorPatterns.RGB.exec(str) + .slice(1) + .map(function(color) { + return color / 255; + }); + results[3] = 1; + return results; + } else if (colorPatterns.RGB_PERCENT.test(str)) { + // rgb(R%,G%,B%) + results = colorPatterns.RGB_PERCENT.exec(str) + .slice(1) + .map(function(color) { + return parseFloat(color) / 100; + }); + results[3] = 1; + return results; + } else if (colorPatterns.RGBA.test(str)) { + // rgba(R,G,B,A) + results = colorPatterns.RGBA.exec(str) + .slice(1) + .map(function(color, idx) { + if (idx === 3) { + return parseFloat(color); + } + return color / 255; + }); + return results; + } else if (colorPatterns.RGBA_PERCENT.test(str)) { + // rgba(R%,G%,B%,A%) + results = colorPatterns.RGBA_PERCENT.exec(str) + .slice(1) + .map(function(color, idx) { + if (idx === 3) { + return parseFloat(color); + } + return parseFloat(color) / 100; + }); + return results; + } + + // Try HSLA pattern matching. + if (colorPatterns.HSL.test(str)) { + // hsl(H,S,L) + results = colorPatterns.HSL.exec(str) + .slice(1) + .map(function(color, idx) { + if (idx === 0) { + return parseInt(color, 10) / 360; + } + return parseInt(color, 10) / 100; + }); + results[3] = 1; + } else if (colorPatterns.HSLA.test(str)) { + // hsla(H,S,L,A) + results = colorPatterns.HSLA.exec(str) + .slice(1) + .map(function(color, idx) { + if (idx === 0) { + return parseInt(color, 10) / 360; + } else if (idx === 3) { + return parseFloat(color); + } + return parseInt(color, 10) / 100; + }); + } + results = results.map(function(value) { + return Math.max(Math.min(value, 1), 0); + }); + if (results.length) { + return color_conversion._hslaToRGBA(results); + } + + // Try HSBA pattern matching. + if (colorPatterns.HSB.test(str)) { + // hsb(H,S,B) + results = colorPatterns.HSB.exec(str) + .slice(1) + .map(function(color, idx) { + if (idx === 0) { + return parseInt(color, 10) / 360; + } + return parseInt(color, 10) / 100; + }); + results[3] = 1; + } else if (colorPatterns.HSBA.test(str)) { + // hsba(H,S,B,A) + results = colorPatterns.HSBA.exec(str) + .slice(1) + .map(function(color, idx) { + if (idx === 0) { + return parseInt(color, 10) / 360; + } else if (idx === 3) { + return parseFloat(color); + } + return parseInt(color, 10) / 100; + }); + } + + if (results.length) { + // (loop backwards for performance) + for (i = results.length - 1; i >= 0; --i) { + results[i] = Math.max(Math.min(results[i], 1), 0); + } + + return color_conversion._hsbaToRGBA(results); + } + + // Input did not match any CSS color pattern: default to white. + results = [1, 1, 1, 1]; + } else if ((numArgs === 1 || numArgs === 2) && typeof r === 'number') { + // 'Grayscale' mode. + + /** + * For HSB and HSL, interpret the gray level as a brightness/lightness + * value (they are equivalent when chroma is zero). For RGB, normalize the + * gray level according to the blue maximum. + */ + results[0] = r / maxes[2]; + results[1] = r / maxes[2]; + results[2] = r / maxes[2]; + + // Alpha may be undefined, so default it to 100%. + if (typeof g === 'number') { + results[3] = g / maxes[3]; + } else { + results[3] = 1; + } + + // Constrain components to the range [0,1]. + results = results.map(function(value) { + return Math.max(Math.min(value, 1), 0); + }); + } else { + throw new Error(arguments + 'is not a valid color representation.'); + } + + return results; + }; + + module.exports = p5.Color; + }, + { '../core/constants': 18, '../core/main': 24, './color_conversion': 14 } + ], + 17: [ + function(_dereq_, module, exports) { + /** + * @module Color + * @submodule Setting + * @for p5 + * @requires core + * @requires constants + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + var constants = _dereq_('../core/constants'); + _dereq_('./p5.Color'); + + /** + * The background() function sets the color used for the background of the + * p5.js canvas. The default background is transparent. This function is + * typically used within draw() to clear the display window at the beginning + * of each frame, but it can be used inside setup() to set the background on + * the first frame of animation or if the background need only be set once. + *

+ * The color is either specified in terms of the RGB, HSB, or HSL color + * depending on the current colorMode. (The default color space is RGB, with + * each value in the range from 0 to 255). The alpha range by default is also 0 to 255. + *

+ * If a single string argument is provided, RGB, RGBA and Hex CSS color strings + * and all named color strings are supported. In this case, an alpha number + * value as a second argument is not supported, the RGBA form should be used. + *

+ * A p5.Color object can also be provided to set the background color. + *

+ * A p5.Image can also be provided to set the background image. + * + * @method background + * @param {p5.Color} color any value created by the color() function + * @chainable + * + * @example + *
+ * + * // Grayscale integer value + * background(51); + * + *
+ * + *
+ * + * // R, G & B integer values + * background(255, 204, 0); + * + *
+ * + *
+ * + * // H, S & B integer values + * colorMode(HSB); + * background(255, 204, 100); + * + *
+ * + *
+ * + * // Named SVG/CSS color string + * background('red'); + * + *
+ * + *
+ * + * // three-digit hexadecimal RGB notation + * background('#fae'); + * + *
+ * + *
+ * + * // six-digit hexadecimal RGB notation + * background('#222222'); + * + *
+ * + *
+ * + * // integer RGB notation + * background('rgb(0,255,0)'); + * + *
+ * + *
+ * + * // integer RGBA notation + * background('rgba(0,255,0, 0.25)'); + * + *
+ * + *
+ * + * // percentage RGB notation + * background('rgb(100%,0%,10%)'); + * + *
+ * + *
+ * + * // percentage RGBA notation + * background('rgba(100%,0%,100%,0.5)'); + * + *
+ * + *
+ * + * // p5 Color object + * background(color(0, 0, 255)); + * + *
+ * + * @alt + * canvas with darkest charcoal grey background. + * canvas with yellow background. + * canvas with royal blue background. + * canvas with red background. + * canvas with pink background. + * canvas with black background. + * canvas with bright green background. + * canvas with soft green background. + * canvas with red background. + * canvas with light purple background. + * canvas with blue background. + */ + + /** + * @method background + * @param {String} colorstring color string, possible formats include: integer + * rgb() or rgba(), percentage rgb() or rgba(), + * 3-digit hex, 6-digit hex + * @param {Number} [a] opacity of the background relative to current + * color range (default is 0-255) + * @chainable + */ + + /** + * @method background + * @param {Number} gray specifies a value between white and black + * @param {Number} [a] + * @chainable + */ + + /** + * @method background + * @param {Number} v1 red or hue value (depending on the current color + * mode) + * @param {Number} v2 green or saturation value (depending on the current + * color mode) + * @param {Number} v3 blue or brightness value (depending on the current + * color mode) + * @param {Number} [a] + * @chainable + */ + + /** + * @method background + * @param {Number[]} values an array containing the red, green, blue + * and alpha components of the color + * @chainable + */ + + /** + * @method background + * @param {p5.Image} image image created with loadImage() or createImage(), + * to set as background + * (must be same size as the sketch window) + * @param {Number} [a] + * @chainable + */ + + p5.prototype.background = function() { + this._renderer.background.apply(this._renderer, arguments); + return this; + }; + + /** + * Clears the pixels within a buffer. This function only clears the canvas. + * It will not clear objects created by createX() methods such as + * createVideo() or createDiv(). + * Unlike the main graphics context, pixels in additional graphics areas created + * with createGraphics() can be entirely + * or partially transparent. This function clears everything to make all of + * the pixels 100% transparent. + * + * @method clear + * @chainable + * @example + *
+ * + * // Clear the screen on mouse press. + * function setup() { + * createCanvas(100, 100); + * } + * + * function draw() { + * ellipse(mouseX, mouseY, 20, 20); + * } + * + * function mousePressed() { + * clear(); + * } + * + *
+ * + * @alt + * 20x20 white ellipses are continually drawn at mouse x and y coordinates. + * + */ + + p5.prototype.clear = function() { + this._renderer.clear(); + return this; + }; + + /** + * colorMode() changes the way p5.js interprets color data. By default, the + * parameters for fill(), stroke(), background(), and color() are defined by + * values between 0 and 255 using the RGB color model. This is equivalent to + * setting colorMode(RGB, 255). Setting colorMode(HSB) lets you use the HSB + * system instead. By default, this is colorMode(HSB, 360, 100, 100, 1). You + * can also use HSL. + *

+ * Note: existing color objects remember the mode that they were created in, + * so you can change modes as you like without affecting their appearance. + * + * + * @method colorMode + * @param {Constant} mode either RGB, HSB or HSL, corresponding to + * Red/Green/Blue and Hue/Saturation/Brightness + * (or Lightness) + * @param {Number} [max] range for all values + * @chainable + * + * @example + *
+ * + * noStroke(); + * colorMode(RGB, 100); + * for (let i = 0; i < 100; i++) { + * for (let j = 0; j < 100; j++) { + * stroke(i, j, 0); + * point(i, j); + * } + * } + * + *
+ * + *
+ * + * noStroke(); + * colorMode(HSB, 100); + * for (let i = 0; i < 100; i++) { + * for (let j = 0; j < 100; j++) { + * stroke(i, j, 100); + * point(i, j); + * } + * } + * + *
+ * + *
+ * + * colorMode(RGB, 255); + * let c = color(127, 255, 0); + * + * colorMode(RGB, 1); + * let myColor = c._getRed(); + * text(myColor, 10, 10, 80, 80); + * + *
+ * + *
+ * + * noFill(); + * colorMode(RGB, 255, 255, 255, 1); + * background(255); + * + * strokeWeight(4); + * stroke(255, 0, 10, 0.3); + * ellipse(40, 40, 50, 50); + * ellipse(50, 50, 40, 40); + * + *
+ * + * @alt + *Green to red gradient from bottom L to top R. shading originates from top left. + *Rainbow gradient from left to right. Brightness increasing to white at top. + *unknown image. + *50x50 ellipse at middle L & 40x40 ellipse at center. Translucent pink outlines. + * + */ + /** + * @method colorMode + * @param {Constant} mode + * @param {Number} max1 range for the red or hue depending on the + * current color mode + * @param {Number} max2 range for the green or saturation depending + * on the current color mode + * @param {Number} max3 range for the blue or brightness/lightness + * depending on the current color mode + * @param {Number} [maxA] range for the alpha + * @chainable + */ + p5.prototype.colorMode = function(mode, max1, max2, max3, maxA) { + p5._validateParameters('colorMode', arguments); + if ( + mode === constants.RGB || + mode === constants.HSB || + mode === constants.HSL + ) { + // Set color mode. + this._colorMode = mode; + + // Set color maxes. + var maxes = this._colorMaxes[mode]; + if (arguments.length === 2) { + maxes[0] = max1; // Red + maxes[1] = max1; // Green + maxes[2] = max1; // Blue + maxes[3] = max1; // Alpha + } else if (arguments.length === 4) { + maxes[0] = max1; // Red + maxes[1] = max2; // Green + maxes[2] = max3; // Blue + } else if (arguments.length === 5) { + maxes[0] = max1; // Red + maxes[1] = max2; // Green + maxes[2] = max3; // Blue + maxes[3] = maxA; // Alpha + } + } + + return this; + }; + + /** + * Sets the color used to fill shapes. For example, if you run + * fill(204, 102, 0), all shapes drawn after the fill command will be filled with the color orange. This + * color is either specified in terms of the RGB or HSB color depending on + * the current colorMode(). (The default color space is RGB, with each value + * in the range from 0 to 255). The alpha range by default is also 0 to 255. + *

+ * If a single string argument is provided, RGB, RGBA and Hex CSS color strings + * and all named color strings are supported. In this case, an alpha number + * value as a second argument is not supported, the RGBA form should be used. + *

+ * A p5 Color object can also be provided to set the fill color. + * + * @method fill + * @param {Number} v1 red or hue value relative to + * the current color range + * @param {Number} v2 green or saturation value + * relative to the current color range + * @param {Number} v3 blue or brightness value + * relative to the current color range + * @param {Number} [alpha] + * @chainable + * @example + *
+ * + * // Grayscale integer value + * fill(51); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // R, G & B integer values + * fill(255, 204, 0); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // H, S & B integer values + * colorMode(HSB); + * fill(255, 204, 100); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // Named SVG/CSS color string + * fill('red'); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // three-digit hexadecimal RGB notation + * fill('#fae'); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // six-digit hexadecimal RGB notation + * fill('#222222'); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // integer RGB notation + * fill('rgb(0,255,0)'); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // integer RGBA notation + * fill('rgba(0,255,0, 0.25)'); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // percentage RGB notation + * fill('rgb(100%,0%,10%)'); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // percentage RGBA notation + * fill('rgba(100%,0%,100%,0.5)'); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // p5 Color object + * fill(color(0, 0, 255)); + * rect(20, 20, 60, 60); + * + *
+ * @alt + * 60x60 dark charcoal grey rect with black outline in center of canvas. + * 60x60 yellow rect with black outline in center of canvas. + * 60x60 royal blue rect with black outline in center of canvas. + * 60x60 red rect with black outline in center of canvas. + * 60x60 pink rect with black outline in center of canvas. + * 60x60 black rect with black outline in center of canvas. + * 60x60 light green rect with black outline in center of canvas. + * 60x60 soft green rect with black outline in center of canvas. + * 60x60 red rect with black outline in center of canvas. + * 60x60 dark fuchsia rect with black outline in center of canvas. + * 60x60 blue rect with black outline in center of canvas. + */ + + /** + * @method fill + * @param {String} value a color string + * @chainable + */ + + /** + * @method fill + * @param {Number} gray a gray value + * @param {Number} [alpha] + * @chainable + */ + + /** + * @method fill + * @param {Number[]} values an array containing the red,green,blue & + * and alpha components of the color + * @chainable + */ + + /** + * @method fill + * @param {p5.Color} color the fill color + * @chainable + */ + p5.prototype.fill = function() { + this._renderer._setProperty('_fillSet', true); + this._renderer._setProperty('_doFill', true); + this._renderer.fill.apply(this._renderer, arguments); + return this; + }; + + /** + * Disables filling geometry. If both noStroke() and noFill() are called, + * nothing will be drawn to the screen. + * + * @method noFill + * @chainable + * @example + *
+ * + * rect(15, 10, 55, 55); + * noFill(); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(0); + * noFill(); + * stroke(100, 100, 240); + * rotateX(frameCount * 0.01); + * rotateY(frameCount * 0.01); + * box(45, 45, 45); + * } + * + *
+ * + * @alt + * white rect top middle and noFill rect center. Both 60x60 with black outlines. + * black canvas with purple cube wireframe spinning + */ + p5.prototype.noFill = function() { + this._renderer._setProperty('_doFill', false); + return this; + }; + + /** + * Disables drawing the stroke (outline). If both noStroke() and noFill() + * are called, nothing will be drawn to the screen. + * + * @method noStroke + * @chainable + * @example + *
+ * + * noStroke(); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(0); + * noStroke(); + * fill(240, 150, 150); + * rotateX(frameCount * 0.01); + * rotateY(frameCount * 0.01); + * box(45, 45, 45); + * } + * + *
+ * + * @alt + * 60x60 white rect at center. no outline. + * black canvas with pink cube spinning + */ + p5.prototype.noStroke = function() { + this._renderer._setProperty('_doStroke', false); + return this; + }; + + /** + * Sets the color used to draw lines and borders around shapes. This color + * is either specified in terms of the RGB or HSB color depending on the + * current colorMode() (the default color space is RGB, with each value in + * the range from 0 to 255). The alpha range by default is also 0 to 255. + *

+ * If a single string argument is provided, RGB, RGBA and Hex CSS color + * strings and all named color strings are supported. In this case, an alpha + * number value as a second argument is not supported, the RGBA form should be + * used. + *

+ * A p5 Color object can also be provided to set the stroke color. + * + * + * @method stroke + * @param {Number} v1 red or hue value relative to + * the current color range + * @param {Number} v2 green or saturation value + * relative to the current color range + * @param {Number} v3 blue or brightness value + * relative to the current color range + * @param {Number} [alpha] + * @chainable + * + * @example + *
+ * + * // Grayscale integer value + * strokeWeight(4); + * stroke(51); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // R, G & B integer values + * stroke(255, 204, 0); + * strokeWeight(4); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // H, S & B integer values + * colorMode(HSB); + * strokeWeight(4); + * stroke(255, 204, 100); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // Named SVG/CSS color string + * stroke('red'); + * strokeWeight(4); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // three-digit hexadecimal RGB notation + * stroke('#fae'); + * strokeWeight(4); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // six-digit hexadecimal RGB notation + * stroke('#222222'); + * strokeWeight(4); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // integer RGB notation + * stroke('rgb(0,255,0)'); + * strokeWeight(4); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // integer RGBA notation + * stroke('rgba(0,255,0,0.25)'); + * strokeWeight(4); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // percentage RGB notation + * stroke('rgb(100%,0%,10%)'); + * strokeWeight(4); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // percentage RGBA notation + * stroke('rgba(100%,0%,100%,0.5)'); + * strokeWeight(4); + * rect(20, 20, 60, 60); + * + *
+ * + *
+ * + * // p5 Color object + * stroke(color(0, 0, 255)); + * strokeWeight(4); + * rect(20, 20, 60, 60); + * + *
+ * + * @alt + * 60x60 white rect at center. Dark charcoal grey outline. + * 60x60 white rect at center. Yellow outline. + * 60x60 white rect at center. Royal blue outline. + * 60x60 white rect at center. Red outline. + * 60x60 white rect at center. Pink outline. + * 60x60 white rect at center. Black outline. + * 60x60 white rect at center. Bright green outline. + * 60x60 white rect at center. Soft green outline. + * 60x60 white rect at center. Red outline. + * 60x60 white rect at center. Dark fuchsia outline. + * 60x60 white rect at center. Blue outline. + */ + + /** + * @method stroke + * @param {String} value a color string + * @chainable + */ + + /** + * @method stroke + * @param {Number} gray a gray value + * @param {Number} [alpha] + * @chainable + */ + + /** + * @method stroke + * @param {Number[]} values an array containing the red,green,blue & + * and alpha components of the color + * @chainable + */ + + /** + * @method stroke + * @param {p5.Color} color the stroke color + * @chainable + */ + + p5.prototype.stroke = function() { + this._renderer._setProperty('_strokeSet', true); + this._renderer._setProperty('_doStroke', true); + this._renderer.stroke.apply(this._renderer, arguments); + return this; + }; + + module.exports = p5; + }, + { '../core/constants': 18, '../core/main': 24, './p5.Color': 16 } + ], + 18: [ + function(_dereq_, module, exports) { + /** + * @module Constants + * @submodule Constants + * @for p5 + */ + + 'use strict'; + + var PI = Math.PI; + + module.exports = { + // GRAPHICS RENDERER + /** + * The default, two-dimensional renderer. + * @property {String} P2D + * @final + */ + P2D: 'p2d', + /** + * One of the two render modes in p5.js: P2D (default renderer) and WEBGL + * Enables 3D render by introducing the third dimension: Z + * @property {String} WEBGL + * @final + */ + WEBGL: 'webgl', + + // ENVIRONMENT + /** + * @property {String} ARROW + * @final + */ + ARROW: 'default', + /** + * @property {String} CROSS + * @final + */ + CROSS: 'crosshair', + /** + * @property {String} HAND + * @final + */ + HAND: 'pointer', + /** + * @property {String} MOVE + * @final + */ + MOVE: 'move', + /** + * @property {String} TEXT + * @final + */ + TEXT: 'text', + /** + * @property {String} WAIT + * @final + */ + WAIT: 'wait', + + // TRIGONOMETRY + + /** + * HALF_PI is a mathematical constant with the value + * 1.57079632679489661923. It is half the ratio of the + * circumference of a circle to its diameter. It is useful in + * combination with the trigonometric functions sin() and cos(). + * + * @property {Number} HALF_PI + * @final + * + * @example + *
+ * arc(50, 50, 80, 80, 0, HALF_PI); + *
+ * + * @alt + * 80x80 white quarter-circle with curve toward bottom right of canvas. + * + */ + HALF_PI: PI / 2, + /** + * PI is a mathematical constant with the value + * 3.14159265358979323846. It is the ratio of the circumference + * of a circle to its diameter. It is useful in combination with + * the trigonometric functions sin() and cos(). + * + * @property {Number} PI + * @final + * + * @example + *
+ * arc(50, 50, 80, 80, 0, PI); + *
+ * + * @alt + * white half-circle with curve toward bottom of canvas. + * + */ + PI: PI, + /** + * QUARTER_PI is a mathematical constant with the value 0.7853982. + * It is one quarter the ratio of the circumference of a circle to + * its diameter. It is useful in combination with the trigonometric + * functions sin() and cos(). + * + * @property {Number} QUARTER_PI + * @final + * + * @example + *
+ * arc(50, 50, 80, 80, 0, QUARTER_PI); + *
+ * + * @alt + * white eighth-circle rotated about 40 degrees with curve bottom right canvas. + * + */ + QUARTER_PI: PI / 4, + /** + * TAU is an alias for TWO_PI, a mathematical constant with the + * value 6.28318530717958647693. It is twice the ratio of the + * circumference of a circle to its diameter. It is useful in + * combination with the trigonometric functions sin() and cos(). + * + * @property {Number} TAU + * @final + * + * @example + *
+ * arc(50, 50, 80, 80, 0, TAU); + *
+ * + * @alt + * 80x80 white ellipse shape in center of canvas. + * + */ + TAU: PI * 2, + /** + * TWO_PI is a mathematical constant with the value + * 6.28318530717958647693. It is twice the ratio of the + * circumference of a circle to its diameter. It is useful in + * combination with the trigonometric functions sin() and cos(). + * + * @property {Number} TWO_PI + * @final + * + * @example + *
+ * arc(50, 50, 80, 80, 0, TWO_PI); + *
+ * + * @alt + * 80x80 white ellipse shape in center of canvas. + * + */ + TWO_PI: PI * 2, + /** + * Constant to be used with angleMode() function, to set the mode which + * p5.js interprates and calculates angles (either DEGREES or RADIANS). + * @property {String} DEGREES + * @final + * + * @example + *
+ * function setup() { + * angleMode(DEGREES); + * } + *
+ */ + DEGREES: 'degrees', + /** + * Constant to be used with angleMode() function, to set the mode which + * p5.js interprates and calculates angles (either RADIANS or DEGREES). + * @property {String} RADIANS + * @final + * + * @example + *
+ * function setup() { + * angleMode(RADIANS); + * } + *
+ */ + RADIANS: 'radians', + DEG_TO_RAD: PI / 180.0, + RAD_TO_DEG: 180.0 / PI, + + // SHAPE + /** + * @property {String} CORNER + * @final + */ + CORNER: 'corner', + /** + * @property {String} CORNERS + * @final + */ + CORNERS: 'corners', + /** + * @property {String} RADIUS + * @final + */ + RADIUS: 'radius', + /** + * @property {String} RIGHT + * @final + */ + RIGHT: 'right', + /** + * @property {String} LEFT + * @final + */ + LEFT: 'left', + /** + * @property {String} CENTER + * @final + */ + CENTER: 'center', + /** + * @property {String} TOP + * @final + */ + TOP: 'top', + /** + * @property {String} BOTTOM + * @final + */ + BOTTOM: 'bottom', + /** + * @property {String} BASELINE + * @final + * @default alphabetic + */ + BASELINE: 'alphabetic', + /** + * @property {Number} POINTS + * @final + * @default 0x0000 + */ + POINTS: 0x0000, + /** + * @property {Number} LINES + * @final + * @default 0x0001 + */ + LINES: 0x0001, + /** + * @property {Number} LINE_STRIP + * @final + * @default 0x0003 + */ + LINE_STRIP: 0x0003, + /** + * @property {Number} LINE_LOOP + * @final + * @default 0x0002 + */ + LINE_LOOP: 0x0002, + /** + * @property {Number} TRIANGLES + * @final + * @default 0x0004 + */ + TRIANGLES: 0x0004, + /** + * @property {Number} TRIANGLE_FAN + * @final + * @default 0x0006 + */ + TRIANGLE_FAN: 0x0006, + /** + * @property {Number} TRIANGLE_STRIP + * @final + * @default 0x0005 + */ + TRIANGLE_STRIP: 0x0005, + /** + * @property {String} QUADS + * @final + */ + QUADS: 'quads', + /** + * @property {String} QUAD_STRIP + * @final + * @default quad_strip + */ + QUAD_STRIP: 'quad_strip', + /** + * @property {String} CLOSE + * @final + */ + CLOSE: 'close', + /** + * @property {String} OPEN + * @final + */ + OPEN: 'open', + /** + * @property {String} CHORD + * @final + */ + CHORD: 'chord', + /** + * @property {String} PIE + * @final + */ + PIE: 'pie', + /** + * @property {String} PROJECT + * @final + * @default square + */ + PROJECT: 'square', // PEND: careful this is counterintuitive + /** + * @property {String} SQUARE + * @final + * @default butt + */ + SQUARE: 'butt', + /** + * @property {String} ROUND + * @final + */ + ROUND: 'round', + /** + * @property {String} BEVEL + * @final + */ + BEVEL: 'bevel', + /** + * @property {String} MITER + * @final + */ + MITER: 'miter', + + // COLOR + /** + * @property {String} RGB + * @final + */ + RGB: 'rgb', + /** + * @property {String} HSB + * @final + */ + HSB: 'hsb', + /** + * @property {String} HSL + * @final + */ + HSL: 'hsl', + + // DOM EXTENSION + /** + * AUTO allows us to automatically set the width or height of an element (but not both), + * based on the current height and width of the element. Only one parameter can + * be passed to the size function as AUTO, at a time. + * + * @property {String} AUTO + * @final + */ + AUTO: 'auto', + + // INPUT + ALT: 18, + BACKSPACE: 8, + CONTROL: 17, + DELETE: 46, + DOWN_ARROW: 40, + ENTER: 13, + ESCAPE: 27, + LEFT_ARROW: 37, + OPTION: 18, + RETURN: 13, + RIGHT_ARROW: 39, + SHIFT: 16, + TAB: 9, + UP_ARROW: 38, + + // RENDERING + /** + * @property {String} BLEND + * @final + * @default source-over + */ + BLEND: 'source-over', + /** + * @property {String} ADD + * @final + * @default lighter + */ + ADD: 'lighter', + //ADD: 'add', // + //SUBTRACT: 'subtract', // + /** + * @property {String} DARKEST + * @final + */ + DARKEST: 'darken', + /** + * @property {String} LIGHTEST + * @final + * @default lighten + */ + LIGHTEST: 'lighten', + /** + * @property {String} DIFFERENCE + * @final + */ + DIFFERENCE: 'difference', + /** + * @property {String} SUBTRACT + * @final + */ + SUBTRACT: 'subtract', + /** + * @property {String} EXCLUSION + * @final + */ + EXCLUSION: 'exclusion', + /** + * @property {String} MULTIPLY + * @final + */ + MULTIPLY: 'multiply', + /** + * @property {String} SCREEN + * @final + */ + SCREEN: 'screen', + /** + * @property {String} REPLACE + * @final + * @default copy + */ + REPLACE: 'copy', + /** + * @property {String} OVERLAY + * @final + */ + OVERLAY: 'overlay', + /** + * @property {String} HARD_LIGHT + * @final + */ + HARD_LIGHT: 'hard-light', + /** + * @property {String} SOFT_LIGHT + * @final + */ + SOFT_LIGHT: 'soft-light', + /** + * @property {String} DODGE + * @final + * @default color-dodge + */ + DODGE: 'color-dodge', + /** + * @property {String} BURN + * @final + * @default color-burn + */ + BURN: 'color-burn', + + // FILTERS + /** + * @property {String} THRESHOLD + * @final + */ + THRESHOLD: 'threshold', + /** + * @property {String} GRAY + * @final + */ + GRAY: 'gray', + /** + * @property {String} OPAQUE + * @final + */ + OPAQUE: 'opaque', + /** + * @property {String} INVERT + * @final + */ + INVERT: 'invert', + /** + * @property {String} POSTERIZE + * @final + */ + POSTERIZE: 'posterize', + /** + * @property {String} DILATE + * @final + */ + DILATE: 'dilate', + /** + * @property {String} ERODE + * @final + */ + ERODE: 'erode', + /** + * @property {String} BLUR + * @final + */ + BLUR: 'blur', + + // TYPOGRAPHY + /** + * @property {String} NORMAL + * @final + */ + NORMAL: 'normal', + /** + * @property {String} ITALIC + * @final + */ + ITALIC: 'italic', + /** + * @property {String} BOLD + * @final + */ + BOLD: 'bold', + /** + * @property {String} BOLDITALIC + * @final + */ + BOLDITALIC: 'bold italic', + + // TYPOGRAPHY-INTERNAL + _DEFAULT_TEXT_FILL: '#000000', + _DEFAULT_LEADMULT: 1.25, + _CTX_MIDDLE: 'middle', + + // VERTICES + LINEAR: 'linear', + QUADRATIC: 'quadratic', + BEZIER: 'bezier', + CURVE: 'curve', + + // WEBGL DRAWMODES + STROKE: 'stroke', + FILL: 'fill', + TEXTURE: 'texture', + IMMEDIATE: 'immediate', + + // WEBGL TEXTURE MODE + // NORMAL already exists for typography + /** + * @property {String} IMAGE + * @final + */ + IMAGE: 'image', + + // WEBGL TEXTURE WRAP AND FILTERING + // LINEAR already exists above + NEAREST: 'nearest', + REPEAT: 'repeat', + CLAMP: 'clamp', + MIRROR: 'mirror', + + // DEVICE-ORIENTATION + /** + * @property {String} LANDSCAPE + * @final + */ + LANDSCAPE: 'landscape', + /** + * @property {String} PORTRAIT + * @final + */ + PORTRAIT: 'portrait', + + // DEFAULTS + _DEFAULT_STROKE: '#000000', + _DEFAULT_FILL: '#FFFFFF', + + /** + * @property {String} GRID + * @final + */ + GRID: 'grid', + + /** + * @property {String} AXES + * @final + */ + AXES: 'axes' + }; + }, + {} + ], + 19: [ + function(_dereq_, module, exports) { + /** + * @module Environment + * @submodule Environment + * @for p5 + * @requires core + * @requires constants + */ + + 'use strict'; + + var p5 = _dereq_('./main'); + var C = _dereq_('./constants'); + + var standardCursors = [C.ARROW, C.CROSS, C.HAND, C.MOVE, C.TEXT, C.WAIT]; + + p5.prototype._frameRate = 0; + p5.prototype._lastFrameTime = window.performance.now(); + p5.prototype._targetFrameRate = 60; + + var _windowPrint = window.print; + + /** + * The print() function writes to the console area of your browser. + * This function is often helpful for looking at the data a program is + * producing. This function creates a new line of text for each call to + * the function. Individual elements can be + * separated with quotes ("") and joined with the addition operator (+). + * + * Note that calling print() without any arguments invokes the window.print() + * function which opens the browser's print dialog. To print a blank line + * to console you can write print('\n'). + * + * @method print + * @param {Any} contents any combination of Number, String, Object, Boolean, + * Array to print + * @example + *
+ * let x = 10; + * print('The value of x is ' + x); + * // prints "The value of x is 10" + *
+ * @alt + * default grey canvas + */ + p5.prototype.print = function() { + if (!arguments.length) { + _windowPrint(); + } else { + console.log.apply(console, arguments); + } + }; + + /** + * The system variable frameCount contains the number of frames that have + * been displayed since the program started. Inside setup() the value is 0, + * after the first iteration of draw it is 1, etc. + * + * @property {Integer} frameCount + * @readOnly + * @example + *
+ * function setup() { + * frameRate(30); + * textSize(30); + * textAlign(CENTER); + * } + * + * function draw() { + * background(200); + * text(frameCount, width / 2, height / 2); + * } +
+ * + * @alt + * numbers rapidly counting upward with frame count set to 30. + * + */ + p5.prototype.frameCount = 0; + + /** + * The system variable deltaTime contains the time + * difference between the beginning of the previous frame and the beginning + * of the current frame in milliseconds. + *

+ * This variable is useful for creating time sensitive animation or physics + * calculation that should stay constant regardless of frame rate. + * + * @property {Integer} deltaTime + * @readOnly + * @example + *
+ * let rectX = 0; + * let fr = 30; //starting FPS + * let clr; + * + * function setup() { + * background(200); + * frameRate(fr); // Attempt to refresh at starting FPS + * clr = color(255, 0, 0); + * } + * + * function draw() { + * background(200); + * rectX = rectX + 1 * (deltaTime / 50); // Move Rectangle in relation to deltaTime + * + * if (rectX >= width) { + * // If you go off screen. + * if (fr === 30) { + * clr = color(0, 0, 255); + * fr = 10; + * frameRate(fr); // make frameRate 10 FPS + * } else { + * clr = color(255, 0, 0); + * fr = 30; + * frameRate(fr); // make frameRate 30 FPS + * } + * rectX = 0; + * } + * fill(clr); + * rect(rectX, 40, 20, 20); + * } + *
+ * + * @alt + * red rect moves left to right, followed by blue rect moving at the same speed + * with a lower frame rate. Loops. + * + */ + p5.prototype.deltaTime = 0; + + /** + * Confirms if the window a p5.js program is in is "focused," meaning that + * the sketch will accept mouse or keyboard input. This variable is + * "true" if the window is focused and "false" if not. + * + * @property {Boolean} focused + * @readOnly + * @example + *
+ * // To demonstrate, put two windows side by side. + * // Click on the window that the p5 sketch isn't in! + * function draw() { + * background(200); + * noStroke(); + * fill(0, 200, 0); + * ellipse(25, 25, 50, 50); + * + * if (!focused) { + // or "if (focused === false)" + * stroke(200, 0, 0); + * line(0, 0, 100, 100); + * line(100, 0, 0, 100); + * } + * } + *
+ * + * @alt + * green 50x50 ellipse at top left. Red X covers canvas when page focus changes + * + */ + p5.prototype.focused = document.hasFocus(); + + /** + * Sets the cursor to a predefined symbol or an image, or makes it visible + * if already hidden. If you are trying to set an image as the cursor, the + * recommended size is 16x16 or 32x32 pixels. The values for parameters x and y + * must be less than the dimensions of the image. + * + * @method cursor + * @param {String|Constant} type Built-In: either ARROW, CROSS, HAND, MOVE, TEXT and WAIT + * Native CSS properties: 'grab', 'progress', 'cell' etc. + * External: path for cursor's images + * (Allowed File extensions: .cur, .gif, .jpg, .jpeg, .png) + * For more information on Native CSS cursors and url visit: + * https://developer.mozilla.org/en-US/docs/Web/CSS/cursor + * @param {Number} [x] the horizontal active spot of the cursor (must be less than 32) + * @param {Number} [y] the vertical active spot of the cursor (must be less than 32) + * @example + *
+ * // Move the mouse across the quadrants + * // to see the cursor change + * function draw() { + * line(width / 2, 0, width / 2, height); + * line(0, height / 2, width, height / 2); + * if (mouseX < 50 && mouseY < 50) { + * cursor(CROSS); + * } else if (mouseX > 50 && mouseY < 50) { + * cursor('progress'); + * } else if (mouseX > 50 && mouseY > 50) { + * cursor('https://s3.amazonaws.com/mupublicdata/cursor.cur'); + * } else { + * cursor('grab'); + * } + * } + *
+ * + * @alt + * canvas is divided into four quadrants. cursor on first is a cross, second is a progress, + * third is a custom cursor using path to the cursor and fourth is a grab. + * + */ + p5.prototype.cursor = function(type, x, y) { + var cursor = 'auto'; + var canvas = this._curElement.elt; + if (standardCursors.indexOf(type) > -1) { + // Standard css cursor + cursor = type; + } else if (typeof type === 'string') { + var coords = ''; + if (x && y && typeof x === 'number' && typeof y === 'number') { + // Note that x and y values must be unit-less positive integers < 32 + // https://developer.mozilla.org/en-US/docs/Web/CSS/cursor + coords = x + ' ' + y; + } + if ( + type.substring(0, 7) === 'http://' || + type.substring(0, 8) === 'https://' + ) { + // Image (absolute url) + cursor = 'url(' + type + ') ' + coords + ', auto'; + } else if (/\.(cur|jpg|jpeg|gif|png|CUR|JPG|JPEG|GIF|PNG)$/.test(type)) { + // Image file (relative path) - Separated for performance reasons + cursor = 'url(' + type + ') ' + coords + ', auto'; + } else { + // Any valid string for the css cursor property + cursor = type; + } + } + canvas.style.cursor = cursor; + }; + + /** + * Specifies the number of frames to be displayed every second. For example, + * the function call frameRate(30) will attempt to refresh 30 times a second. + * If the processor is not fast enough to maintain the specified rate, the + * frame rate will not be achieved. Setting the frame rate within setup() is + * recommended. The default frame rate is based on the frame rate of the display + * (here also called "refresh rate"), which is set to 60 frames per second on most + * computers. A frame rate of 24 frames per second (usual for movies) or above + * will be enough for smooth animations + * This is the same as setFrameRate(val). + *

+ * Calling frameRate() with no arguments returns the current framerate. The + * draw function must run at least once before it will return a value. This + * is the same as getFrameRate(). + *

+ * Calling frameRate() with arguments that are not of the type numbers + * or are non positive also returns current framerate. + * + * @method frameRate + * @param {Number} fps number of frames to be displayed every second + * @chainable + * + * @example + * + *
+ * let rectX = 0; + * let fr = 30; //starting FPS + * let clr; + * + * function setup() { + * background(200); + * frameRate(fr); // Attempt to refresh at starting FPS + * clr = color(255, 0, 0); + * } + * + * function draw() { + * background(200); + * rectX = rectX += 1; // Move Rectangle + * + * if (rectX >= width) { + // If you go off screen. + * if (fr === 30) { + * clr = color(0, 0, 255); + * fr = 10; + * frameRate(fr); // make frameRate 10 FPS + * } else { + * clr = color(255, 0, 0); + * fr = 30; + * frameRate(fr); // make frameRate 30 FPS + * } + * rectX = 0; + * } + * fill(clr); + * rect(rectX, 40, 20, 20); + * } + *
+ * + * @alt + * blue rect moves left to right, followed by red rect moving faster. Loops. + * + */ + /** + * @method frameRate + * @return {Number} current frameRate + */ + p5.prototype.frameRate = function(fps) { + p5._validateParameters('frameRate', arguments); + if (typeof fps !== 'number' || fps < 0) { + return this._frameRate; + } else { + this._setProperty('_targetFrameRate', fps); + return this; + } + }; + /** + * Returns the current framerate. + * + * @private + * @return {Number} current frameRate + */ + p5.prototype.getFrameRate = function() { + return this.frameRate(); + }; + + /** + * Specifies the number of frames to be displayed every second. For example, + * the function call frameRate(30) will attempt to refresh 30 times a second. + * If the processor is not fast enough to maintain the specified rate, the + * frame rate will not be achieved. Setting the frame rate within setup() is + * recommended. The default rate is 60 frames per second. + * + * Calling frameRate() with no arguments returns the current framerate. + * + * @private + * @param {Number} [fps] number of frames to be displayed every second + */ + p5.prototype.setFrameRate = function(fps) { + return this.frameRate(fps); + }; + + /** + * Hides the cursor from view. + * + * @method noCursor + * @example + *
+ * function setup() { + * noCursor(); + * } + * + * function draw() { + * background(200); + * ellipse(mouseX, mouseY, 10, 10); + * } + *
+ * + * + * @alt + * cursor becomes 10x 10 white ellipse the moves with mouse x and y. + * + */ + p5.prototype.noCursor = function() { + this._curElement.elt.style.cursor = 'none'; + }; + + /** + * System variable that stores the width of the screen display according to The + * default pixelDensity. This is used to run a + * full-screen program on any display size. To return actual screen size, + * multiply this by pixelDensity. + * + * @property {Number} displayWidth + * @readOnly + * @example + *
+ * createCanvas(displayWidth, displayHeight); + *
+ * + * @alt + * cursor becomes 10x 10 white ellipse the moves with mouse x and y. + * + */ + p5.prototype.displayWidth = screen.width; + + /** + * System variable that stores the height of the screen display according to The + * default pixelDensity. This is used to run a + * full-screen program on any display size. To return actual screen size, + * multiply this by pixelDensity. + * + * @property {Number} displayHeight + * @readOnly + * @example + *
+ * createCanvas(displayWidth, displayHeight); + *
+ * + * @alt + * no display. + * + */ + p5.prototype.displayHeight = screen.height; + + /** + * System variable that stores the width of the inner window, it maps to + * window.innerWidth. + * + * @property {Number} windowWidth + * @readOnly + * @example + *
+ * createCanvas(windowWidth, windowHeight); + *
+ * + * @alt + * no display. + * + */ + p5.prototype.windowWidth = getWindowWidth(); + /** + * System variable that stores the height of the inner window, it maps to + * window.innerHeight. + * + * @property {Number} windowHeight + * @readOnly + * @example + *
+ * createCanvas(windowWidth, windowHeight); + *
+ *@alt + * no display. + * + */ + p5.prototype.windowHeight = getWindowHeight(); + + /** + * The windowResized() function is called once every time the browser window + * is resized. This is a good place to resize the canvas or do any other + * adjustments to accommodate the new window size. + * + * @method windowResized + * @example + *
+ * function setup() { + * createCanvas(windowWidth, windowHeight); + * } + * + * function draw() { + * background(0, 100, 200); + * } + * + * function windowResized() { + * resizeCanvas(windowWidth, windowHeight); + * } + *
+ * @alt + * no display. + */ + p5.prototype._onresize = function(e) { + this._setProperty('windowWidth', getWindowWidth()); + this._setProperty('windowHeight', getWindowHeight()); + var context = this._isGlobal ? window : this; + var executeDefault; + if (typeof context.windowResized === 'function') { + executeDefault = context.windowResized(e); + if (executeDefault !== undefined && !executeDefault) { + e.preventDefault(); + } + } + }; + + function getWindowWidth() { + return ( + window.innerWidth || + (document.documentElement && document.documentElement.clientWidth) || + (document.body && document.body.clientWidth) || + 0 + ); + } + + function getWindowHeight() { + return ( + window.innerHeight || + (document.documentElement && document.documentElement.clientHeight) || + (document.body && document.body.clientHeight) || + 0 + ); + } + + /** + * System variable that stores the width of the drawing canvas. This value + * is set by the first parameter of the createCanvas() function. + * For example, the function call createCanvas(320, 240) sets the width + * variable to the value 320. The value of width defaults to 100 if + * createCanvas() is not used in a program. + * + * @property {Number} width + * @readOnly + */ + p5.prototype.width = 0; + + /** + * System variable that stores the height of the drawing canvas. This value + * is set by the second parameter of the createCanvas() function. For + * example, the function call createCanvas(320, 240) sets the height + * variable to the value 240. The value of height defaults to 100 if + * createCanvas() is not used in a program. + * + * @property {Number} height + * @readOnly + */ + p5.prototype.height = 0; + + /** + * If argument is given, sets the sketch to fullscreen or not based on the + * value of the argument. If no argument is given, returns the current + * fullscreen state. Note that due to browser restrictions this can only + * be called on user input, for example, on mouse press like the example + * below. + * + * @method fullscreen + * @param {Boolean} [val] whether the sketch should be in fullscreen mode + * or not + * @return {Boolean} current fullscreen state + * @example + *
+ * + * // Clicking in the box toggles fullscreen on and off. + * function setup() { + * background(200); + * } + * function mousePressed() { + * if (mouseX > 0 && mouseX < 100 && mouseY > 0 && mouseY < 100) { + * let fs = fullscreen(); + * fullscreen(!fs); + * } + * } + * + *
+ * + * @alt + * no display. + * + */ + p5.prototype.fullscreen = function(val) { + p5._validateParameters('fullscreen', arguments); + // no arguments, return fullscreen or not + if (typeof val === 'undefined') { + return ( + document.fullscreenElement || + document.webkitFullscreenElement || + document.mozFullScreenElement || + document.msFullscreenElement + ); + } else { + // otherwise set to fullscreen or not + if (val) { + launchFullscreen(document.documentElement); + } else { + exitFullscreen(); + } + } + }; + + /** + * Sets the pixel scaling for high pixel density displays. By default + * pixel density is set to match display density, call pixelDensity(1) + * to turn this off. Calling pixelDensity() with no arguments returns + * the current pixel density of the sketch. + * + * @method pixelDensity + * @param {Number} val whether or how much the sketch should scale + * @chainable + * @example + *
+ * + * function setup() { + * pixelDensity(1); + * createCanvas(100, 100); + * background(200); + * ellipse(width / 2, height / 2, 50, 50); + * } + * + *
+ *
+ * + * function setup() { + * pixelDensity(3.0); + * createCanvas(100, 100); + * background(200); + * ellipse(width / 2, height / 2, 50, 50); + * } + * + *
+ * + * @alt + * fuzzy 50x50 white ellipse with black outline in center of canvas. + * sharp 50x50 white ellipse with black outline in center of canvas. + */ + /** + * @method pixelDensity + * @returns {Number} current pixel density of the sketch + */ + p5.prototype.pixelDensity = function(val) { + p5._validateParameters('pixelDensity', arguments); + var returnValue; + if (typeof val === 'number') { + if (val !== this._pixelDensity) { + this._pixelDensity = val; + this._pixelsDirty = true; + } + returnValue = this; + this.resizeCanvas(this.width, this.height, true); // as a side effect, it will clear the canvas + } else { + returnValue = this._pixelDensity; + } + return returnValue; + }; + + /** + * Returns the pixel density of the current display the sketch is running on. + * + * @method displayDensity + * @returns {Number} current pixel density of the display + * @example + *
+ * + * function setup() { + * let density = displayDensity(); + * pixelDensity(density); + * createCanvas(100, 100); + * background(200); + * ellipse(width / 2, height / 2, 50, 50); + * } + * + *
+ * + * @alt + * 50x50 white ellipse with black outline in center of canvas. + */ + p5.prototype.displayDensity = function() { + return window.devicePixelRatio; + }; + + function launchFullscreen(element) { + var enabled = + document.fullscreenEnabled || + document.webkitFullscreenEnabled || + document.mozFullScreenEnabled || + document.msFullscreenEnabled; + if (!enabled) { + throw new Error('Fullscreen not enabled in this browser.'); + } + if (element.requestFullscreen) { + element.requestFullscreen(); + } else if (element.mozRequestFullScreen) { + element.mozRequestFullScreen(); + } else if (element.webkitRequestFullscreen) { + element.webkitRequestFullscreen(); + } else if (element.msRequestFullscreen) { + element.msRequestFullscreen(); + } + } + + function exitFullscreen() { + if (document.exitFullscreen) { + document.exitFullscreen(); + } else if (document.mozCancelFullScreen) { + document.mozCancelFullScreen(); + } else if (document.webkitExitFullscreen) { + document.webkitExitFullscreen(); + } else if (document.msExitFullscreen) { + document.msExitFullscreen(); + } + } + + /** + * Gets the current URL. + * @method getURL + * @return {String} url + * @example + *
+ * + * let url; + * let x = 100; + * + * function setup() { + * fill(0); + * noStroke(); + * url = getURL(); + * } + * + * function draw() { + * background(200); + * text(url, x, height / 2); + * x--; + * } + * + *
+ * + * @alt + * current url (http://p5js.org/reference/#/p5/getURL) moves right to left. + * + */ + p5.prototype.getURL = function() { + return location.href; + }; + /** + * Gets the current URL path as an array. + * @method getURLPath + * @return {String[]} path components + * @example + *
+ * function setup() { + * let urlPath = getURLPath(); + * for (let i = 0; i < urlPath.length; i++) { + * text(urlPath[i], 10, i * 20 + 20); + * } + * } + *
+ * + * @alt + *no display + * + */ + p5.prototype.getURLPath = function() { + return location.pathname.split('/').filter(function(v) { + return v !== ''; + }); + }; + /** + * Gets the current URL params as an Object. + * @method getURLParams + * @return {Object} URL params + * @example + *
+ * + * // Example: http://p5js.org?year=2014&month=May&day=15 + * + * function setup() { + * let params = getURLParams(); + * text(params.day, 10, 20); + * text(params.month, 10, 40); + * text(params.year, 10, 60); + * } + * + *
+ * @alt + * no display. + * + */ + p5.prototype.getURLParams = function() { + var re = /[?&]([^&=]+)(?:[&=])([^&=]+)/gim; + var m; + var v = {}; + while ((m = re.exec(location.search)) != null) { + if (m.index === re.lastIndex) { + re.lastIndex++; + } + v[m[1]] = m[2]; + } + return v; + }; + + module.exports = p5; + }, + { './constants': 18, './main': 24 } + ], + 20: [ + function(_dereq_, module, exports) { + /** + * @for p5 + * @requires core + */ + + 'use strict'; + function _typeof(obj) { + if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && + typeof Symbol === 'function' && + obj.constructor === Symbol && + obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }; + } + return _typeof(obj); + } + + var p5 = _dereq_('./main'); + var constants = _dereq_('./constants'); + + // p5.js blue, p5.js orange, auto dark green; fallback p5.js darkened magenta + // See testColors below for all the color codes and names + var typeColors = ['#2D7BB6', '#EE9900', '#4DB200', '#C83C00']; + + if (typeof IS_MINIFIED !== 'undefined') { + p5._validateParameters = p5._friendlyFileLoadError = p5._friendlyError = function() {}; + } else { + var doFriendlyWelcome = false; // TEMP until we get it all working LM + // for parameter validation + var dataDoc = _dereq_('../../docs/reference/data.json'); + var arrDoc = JSON.parse(JSON.stringify(dataDoc)); + + // -- Borrowed from jQuery 1.11.3 -- + var class2type = {}; + var toString = class2type.toString; + var names = [ + 'Boolean', + 'Number', + 'String', + 'Function', + 'Array', + 'Date', + 'RegExp', + 'Object', + 'Error' + ]; + + for (var n = 0; n < names.length; n++) { + class2type['[object ' + names[n] + ']'] = names[n].toLowerCase(); + } + var getType = function getType(obj) { + if (obj == null) { + return obj + ''; + } + return _typeof(obj) === 'object' || typeof obj === 'function' + ? class2type[toString.call(obj)] || 'object' + : _typeof(obj); + }; + + // -- End borrow -- + + var friendlyWelcome = function friendlyWelcome() { + // p5.js brand - magenta: #ED225D + //var astrixBgColor = 'transparent'; + //var astrixTxtColor = '#ED225D'; + //var welcomeBgColor = '#ED225D'; + //var welcomeTextColor = 'white'; + console.log( + ' _ \n' + + ' /\\| |/\\ \n' + + " \\ ` ' / \n" + + ' / , . \\ \n' + + ' \\/|_|\\/ ' + + '\n\n> p5.js says: Welcome! ' + + 'This is your friendly debugger. ' + + 'To turn me off switch to using โ€œp5.min.jsโ€.' + ); + }; + + /** + * Prints out a fancy, colorful message to the console log + * + * @method report + * @private + * @param {String} message the words to be said + * @param {String} func the name of the function to link + * @param {Number|String} color CSS color string or error type + * + * @return console logs + */ + var report = function report(message, func, color) { + if (doFriendlyWelcome) { + friendlyWelcome(); + doFriendlyWelcome = false; + } + if ('undefined' === getType(color)) { + color = '#B40033'; // dark magenta + } else if (getType(color) === 'number') { + // Type to color + color = typeColors[color]; + } + if (func === 'loadX') { + console.log('> p5.js says: ' + message); + } else if (func.substring(0, 4) === 'load') { + console.log( + '> p5.js says: ' + + message + + '[https://github.com/processing/p5.js/wiki/Local-server]' + ); + } else { + console.log( + '> p5.js says: ' + + message + + ' [http://p5js.org/reference/#p5/' + + func + + ']' + ); + } + }; + + var errorCases = { + '0': { + fileType: 'image', + method: 'loadImage', + message: ' hosting the image online,' + }, + + '1': { + fileType: 'XML file', + method: 'loadXML' + }, + + '2': { + fileType: 'table file', + method: 'loadTable' + }, + + '3': { + fileType: 'text file', + method: 'loadStrings' + }, + + '4': { + fileType: 'font', + method: 'loadFont', + message: ' hosting the font online,' + }, + + '5': { + fileType: 'json', + method: 'loadJSON' + }, + + '6': { + fileType: 'file', + method: 'loadBytes' + }, + + '7': { + method: 'loadX', + message: + "In case your large file isn't fetched successfully," + + 'we recommend splitting the file into smaller segments and fetching those.' + } + }; + + /** + * This is called internally if there is a error during file loading. + * + * @method _friendlyFileLoadError + * @private + * @param {Number} errorType + * @param {String} filePath + */ + p5._friendlyFileLoadError = function(errorType, filePath) { + var errorInfo = errorCases[errorType]; + var message; + if (errorType === 7) { + message = errorInfo.message; + } else { + message = + 'It looks like there was a problem' + + ' loading your ' + + errorInfo.fileType + + '.' + + ' Try checking if the file path [' + + filePath + + '] is correct,' + + (errorInfo.message || '') + + ' or running a local server.'; + } + report(message, errorInfo.method, 3); + }; + + /** + * This is a generic method that can be called from anywhere in the p5 + * library to alert users to a common error. + * + * @method _friendlyError + * @private + * @param {Number} message message to be printed + * @param {String} method name of method + */ + p5._friendlyError = function(message, method) { + report(message, method); + }; + + var docCache = {}; + var builtinTypes = [ + 'null', + 'number', + 'string', + 'boolean', + 'constant', + 'function', + 'any', + 'integer' + ]; + + // validateParameters() helper functions: + // lookupParamDoc() for querying data.json + var lookupParamDoc = function lookupParamDoc(func) { + // look for the docs in the `data.json` datastructure + + var ichDot = func.lastIndexOf('.'); + var funcName = func.substr(ichDot + 1); + var funcClass = func.substr(0, ichDot) || 'p5'; + + var queryResult; + var classitems = arrDoc.classitems; + for (var ici = 0; ici < classitems.length; ici++) { + var x = classitems[ici]; + if (x.name === funcName && x.class === funcClass) { + queryResult = x; + break; + } + } + + // different JSON structure for funct with multi-format + var overloads = []; + if (queryResult.hasOwnProperty('overloads')) { + // add all the overloads + for (var i = 0; i < queryResult.overloads.length; i++) { + overloads.push({ formats: queryResult.overloads[i].params }); + } + } else { + // no overloads, just add the main method definition + overloads.push({ formats: queryResult.params || [] }); + } + + // parse the parameter types for each overload + var mapConstants = {}; + var maxParams = 0; + overloads.forEach(function(overload) { + var formats = overload.formats; + + // keep a record of the maximum number of arguments + // this method requires. + if (maxParams < formats.length) { + maxParams = formats.length; + } + + // calculate the minimum number of arguments + // this overload requires. + var minParams = formats.length; + while (minParams > 0 && formats[minParams - 1].optional) { + minParams--; + } + overload.minParams = minParams; + + // loop through each parameter position, and parse its types + formats.forEach(function(format) { + // split this parameter's types + format.types = format.type.split('|').map(function ct(type) { + // array + if (type.substr(type.length - 2, 2) === '[]') { + return { + name: type, + array: ct(type.substr(0, type.length - 2)) + }; + } + + var lowerType = type.toLowerCase(); + + // contant + if (lowerType === 'constant') { + var constant; + if (mapConstants.hasOwnProperty(format.name)) { + constant = mapConstants[format.name]; + } else { + // parse possible constant values from description + var myRe = /either\s+(?:[A-Z0-9_]+\s*,?\s*(?:or)?\s*)+/g; + var values = {}; + var names = []; + + constant = mapConstants[format.name] = { + values: values, + names: names + }; + + var myArray = myRe.exec(format.description); + if (func === 'endShape' && format.name === 'mode') { + values[constants.CLOSE] = true; + names.push('CLOSE'); + } else { + var match = myArray[0]; + var reConst = /[A-Z0-9_]+/g; + var matchConst; + while ((matchConst = reConst.exec(match)) !== null) { + var name = matchConst[0]; + if (constants.hasOwnProperty(name)) { + values[constants[name]] = true; + names.push(name); + } + } + } + } + return { + name: type, + builtin: lowerType, + names: constant.names, + values: constant.values + }; + } + + // function + if (lowerType.substr(0, 'function'.length) === 'function') { + lowerType = 'function'; + } + // builtin + if (builtinTypes.indexOf(lowerType) >= 0) { + return { name: type, builtin: lowerType }; + } + + // find type's prototype + var t = window; + var typeParts = type.split('.'); + + // special-case 'p5' since it may be non-global + if (typeParts[0] === 'p5') { + t = p5; + typeParts.shift(); + } + + typeParts.forEach(function(p) { + t = t && t[p]; + }); + if (t) { + return { name: type, prototype: t }; + } + + return { name: type, type: lowerType }; + }); + }); + }); + return { + overloads: overloads, + maxParams: maxParams + }; + }; + + var isNumber = function isNumber(param) { + switch (_typeof(param)) { + case 'number': + return true; + case 'string': + return !isNaN(param); + default: + return false; + } + }; + + var testParamType = function testParamType(param, type) { + var isArray = param instanceof Array; + var matches = true; + if (type.array && isArray) { + for (var i = 0; i < param.length; i++) { + var error = testParamType(param[i], type.array); + if (error) return error / 2; // half error for elements + } + } else if (type.prototype) { + matches = param instanceof type.prototype; + } else if (type.builtin) { + switch (type.builtin) { + case 'number': + matches = isNumber(param); + break; + case 'integer': + matches = isNumber(param) && Number(param) === Math.floor(param); + break; + case 'boolean': + case 'any': + matches = true; + break; + case 'array': + matches = isArray; + break; + case 'string': + matches = /*typeof param === 'number' ||*/ typeof param === 'string'; + break; + case 'constant': + matches = type.values.hasOwnProperty(param); + break; + case 'function': + matches = param instanceof Function; + break; + case 'null': + matches = param === null; + break; + } + } else { + matches = _typeof(param) === type.t; + } + return matches ? 0 : 1; + }; + + // testType() for non-object type parameter validation + var testParamTypes = function testParamTypes(param, types) { + var minScore = 9999; + for (var i = 0; minScore > 0 && i < types.length; i++) { + var score = testParamType(param, types[i]); + if (minScore > score) minScore = score; + } + return minScore; + }; + + // generate a score (higher is worse) for applying these args to + // this overload. + var scoreOverload = function scoreOverload(args, argCount, overload, minScore) { + var score = 0; + var formats = overload.formats; + var minParams = overload.minParams; + + // check for too few/many args + // the score is double number of extra/missing args + if (argCount < minParams) { + score = (minParams - argCount) * 2; + } else if (argCount > formats.length) { + score = (argCount - formats.length) * 2; + } + + // loop through the formats, adding up the error score for each arg. + // quit early if the score gets higher than the previous best overload. + for (var p = 0; score <= minScore && p < formats.length; p++) { + var arg = args[p]; + var format = formats[p]; + // '== null' checks for 'null' and typeof 'undefined' + if (arg == null) { + // handle non-optional and non-trailing undefined args + if (!format.optional || p < minParams || p < argCount) { + score += 1; + } + } else { + score += testParamTypes(arg, format.types); + } + } + return score; + }; + + // gets a list of errors for this overload + var getOverloadErrors = function getOverloadErrors(args, argCount, overload) { + var formats = overload.formats; + var minParams = overload.minParams; + + // check for too few/many args + if (argCount < minParams) { + return [ + { + type: 'TOO_FEW_ARGUMENTS', + argCount: argCount, + minParams: minParams + } + ]; + } else if (argCount > formats.length) { + return [ + { + type: 'TOO_MANY_ARGUMENTS', + argCount: argCount, + maxParams: formats.length + } + ]; + } + + var errorArray = []; + for (var p = 0; p < formats.length; p++) { + var arg = args[p]; + var format = formats[p]; + // '== null' checks for 'null' and typeof 'undefined' + if (arg == null) { + // handle non-optional and non-trailing undefined args + if (!format.optional || p < minParams || p < argCount) { + errorArray.push({ + type: 'EMPTY_VAR', + position: p, + format: format + }); + } + } else if (testParamTypes(arg, format.types) > 0) { + errorArray.push({ + type: 'WRONG_TYPE', + position: p, + format: format, + arg: arg + }); + } + } + + return errorArray; + }; + + // a custom error type, used by the mocha + // tests when expecting validation errors + p5.ValidationError = (function(name) { + var err = function err(message, func) { + this.message = message; + this.func = func; + if ('captureStackTrace' in Error) Error.captureStackTrace(this, err); + else this.stack = new Error().stack; + }; + err.prototype = Object.create(Error.prototype); + err.prototype.name = name; + err.prototype.constructor = err; + return err; + })('ValidationError'); + + // function for generating console.log() msg + p5._friendlyParamError = function(errorObj, func) { + var message; + + function formatType() { + var format = errorObj.format; + return format.types + .map(function(type) { + return type.names ? type.names.join('|') : type.name; + }) + .join('|'); + } + + switch (errorObj.type) { + case 'EMPTY_VAR': + message = + func + + '() was expecting ' + + formatType() + + ' for parameter #' + + errorObj.position + + ' (zero-based index), received an empty variable instead.' + + ' If not intentional, this is often a problem with scope:' + + ' [https://p5js.org/examples/data-variable-scope.html]'; + break; + case 'WRONG_TYPE': + var arg = errorObj.arg; + var argType = + arg instanceof Array + ? 'array' + : arg === null ? 'null' : arg.name || _typeof(arg); + message = + func + + '() was expecting ' + + formatType() + + ' for parameter #' + + errorObj.position + + ' (zero-based index), received ' + + argType + + ' instead'; + break; + case 'TOO_FEW_ARGUMENTS': + message = + func + + '() was expecting at least ' + + errorObj.minParams + + ' arguments, but received only ' + + errorObj.argCount; + break; + case 'TOO_MANY_ARGUMENTS': + message = + func + + '() was expecting no more than ' + + errorObj.maxParams + + ' arguments, but received ' + + errorObj.argCount; + break; + } + + if (message) { + if (p5._throwValidationErrors) { + throw new p5.ValidationError(message); + } + + try { + var re = /Function\.validateParameters.*[\r\n].*[\r\n].*\(([^)]*)/; + var location = re.exec(new Error().stack)[1]; + if (location) { + message += ' at ' + location; + } + } catch (err) {} + + report(message + '.', func, 3); + } + }; + + /** + * Validates parameters + * param {String} func the name of the function + * param {Array} args user input arguments + * + * example: + * var a; + * ellipse(10,10,a,5); + * console ouput: + * "It looks like ellipse received an empty variable in spot #2." + * + * example: + * ellipse(10,"foo",5,5); + * console output: + * "ellipse was expecting a number for parameter #1, + * received "foo" instead." + */ + p5._validateParameters = function validateParameters(func, args) { + if (p5.disableFriendlyErrors) { + return; // skip FES + } + + // lookup the docs in the 'data.json' file + var docs = docCache[func] || (docCache[func] = lookupParamDoc(func)); + var overloads = docs.overloads; + + // ignore any trailing `undefined` arguments + var argCount = args.length; + // '== null' checks for 'null' and typeof 'undefined' + while (argCount > 0 && args[argCount - 1] == null) { + argCount--; + } + + // find the overload with the best score + var minScore = 99999; + var minOverload; + for (var i = 0; i < overloads.length; i++) { + var score = scoreOverload(args, argCount, overloads[i], minScore); + if (score === 0) { + return; // done! + } else if (minScore > score) { + // this score is better that what we have so far... + minScore = score; + minOverload = i; + } + } + + // this should _always_ be true here... + if (minScore > 0) { + // get the errors for the best overload + var errorArray = getOverloadErrors(args, argCount, overloads[minOverload]); + + // generate err msg + for (var n = 0; n < errorArray.length; n++) { + p5._friendlyParamError(errorArray[n], func); + } + } + }; + + /** + * Prints out all the colors in the color pallete with white text. + * For color blindness testing. + */ + /* function testColors() { + var str = 'A box of biscuits, a box of mixed biscuits and a biscuit mixer'; + report(str, 'print', '#ED225D'); // p5.js magenta + report(str, 'print', '#2D7BB6'); // p5.js blue + report(str, 'print', '#EE9900'); // p5.js orange + report(str, 'print', '#A67F59'); // p5.js light brown + report(str, 'print', '#704F21'); // p5.js gold + report(str, 'print', '#1CC581'); // auto cyan + report(str, 'print', '#FF6625'); // auto orange + report(str, 'print', '#79EB22'); // auto green + report(str, 'print', '#B40033'); // p5.js darkened magenta + report(str, 'print', '#084B7F'); // p5.js darkened blue + report(str, 'print', '#945F00'); // p5.js darkened orange + report(str, 'print', '#6B441D'); // p5.js darkened brown + report(str, 'print', '#2E1B00'); // p5.js darkened gold + report(str, 'print', '#008851'); // auto dark cyan + report(str, 'print', '#C83C00'); // auto dark orange + report(str, 'print', '#4DB200'); // auto dark green + } */ + + p5.prototype._validateParameters = p5.validateParameters; + } + + // This is a lazily-defined list of p5 symbols that may be + // misused by beginners at top-level code, outside of setup/draw. We'd like + // to detect these errors and help the user by suggesting they move them + // into setup/draw. + // + // For more details, see https://github.com/processing/p5.js/issues/1121. + var misusedAtTopLevelCode = null; + var FAQ_URL = + 'https://github.com/processing/p5.js/wiki/p5.js-overview' + + '#why-cant-i-assign-variables-using-p5-functions-and-' + + 'variables-before-setup'; + + var defineMisusedAtTopLevelCode = function defineMisusedAtTopLevelCode() { + var uniqueNamesFound = {}; + + var getSymbols = function getSymbols(obj) { + return Object.getOwnPropertyNames(obj) + .filter(function(name) { + if (name[0] === '_') { + return false; + } + if (name in uniqueNamesFound) { + return false; + } + + uniqueNamesFound[name] = true; + + return true; + }) + .map(function(name) { + var type; + + if (typeof obj[name] === 'function') { + type = 'function'; + } else if (name === name.toUpperCase()) { + type = 'constant'; + } else { + type = 'variable'; + } + + return { name: name, type: type }; + }); + }; + + misusedAtTopLevelCode = [].concat( + getSymbols(p5.prototype), + // At present, p5 only adds its constants to p5.prototype during + // construction, which may not have happened at the time a + // ReferenceError is thrown, so we'll manually add them to our list. + getSymbols(_dereq_('./constants')) + ); + + // This will ultimately ensure that we report the most specific error + // possible to the user, e.g. advising them about HALF_PI instead of PI + // when their code misuses the former. + misusedAtTopLevelCode.sort(function(a, b) { + return b.name.length - a.name.length; + }); + }; + + var helpForMisusedAtTopLevelCode = function helpForMisusedAtTopLevelCode(e, log) { + if (!log) { + log = console.log.bind(console); + } + + if (!misusedAtTopLevelCode) { + defineMisusedAtTopLevelCode(); + } + + // If we find that we're logging lots of false positives, we can + // uncomment the following code to avoid displaying anything if the + // user's code isn't likely to be using p5's global mode. (Note that + // setup/draw are more likely to be defined due to JS function hoisting.) + // + //if (!('setup' in window || 'draw' in window)) { + // return; + //} + + misusedAtTopLevelCode.some(function(symbol) { + // Note that while just checking for the occurrence of the + // symbol name in the error message could result in false positives, + // a more rigorous test is difficult because different browsers + // log different messages, and the format of those messages may + // change over time. + // + // For example, if the user uses 'PI' in their code, it may result + // in any one of the following messages: + // + // * 'PI' is undefined (Microsoft Edge) + // * ReferenceError: PI is undefined (Firefox) + // * Uncaught ReferenceError: PI is not defined (Chrome) + + if (e.message && e.message.match('\\W?' + symbol.name + '\\W') !== null) { + log( + "Did you just try to use p5.js's " + + symbol.name + + (symbol.type === 'function' ? '() ' : ' ') + + symbol.type + + '? If so, you may want to ' + + "move it into your sketch's setup() function.\n\n" + + 'For more details, see: ' + + FAQ_URL + ); + + return true; + } + }); + }; + + // Exposing this primarily for unit testing. + p5.prototype._helpForMisusedAtTopLevelCode = helpForMisusedAtTopLevelCode; + + if (document.readyState !== 'complete') { + window.addEventListener('error', helpForMisusedAtTopLevelCode, false); + + // Our job is only to catch ReferenceErrors that are thrown when + // global (non-instance mode) p5 APIs are used at the top-level + // scope of a file, so we'll unbind our error listener now to make + // sure we don't log false positives later. + window.addEventListener('load', function() { + window.removeEventListener('error', helpForMisusedAtTopLevelCode, false); + }); + } + + module.exports = p5; + }, + { '../../docs/reference/data.json': 1, './constants': 18, './main': 24 } + ], + 21: [ + function(_dereq_, module, exports) { + /** + * @requires constants + */ + + 'use strict'; + + var constants = _dereq_('./constants'); + + module.exports = { + modeAdjust: function modeAdjust(a, b, c, d, mode) { + if (mode === constants.CORNER) { + return { x: a, y: b, w: c, h: d }; + } else if (mode === constants.CORNERS) { + return { x: a, y: b, w: c - a, h: d - b }; + } else if (mode === constants.RADIUS) { + return { x: a - c, y: b - d, w: 2 * c, h: 2 * d }; + } else if (mode === constants.CENTER) { + return { x: a - c * 0.5, y: b - d * 0.5, w: c, h: d }; + } + } + }; + }, + { './constants': 18 } + ], + 22: [ + function(_dereq_, module, exports) { + 'use strict'; + + var p5 = _dereq_('../core/main'); + + /** + * _globalInit + * + * TODO: ??? + * if sketch is on window + * assume "global" mode + * and instantiate p5 automatically + * otherwise do nothing + * + * @private + * @return {Undefined} + */ + var _globalInit = function _globalInit() { + if (!window.mocha) { + // If there is a setup or draw function on the window + // then instantiate p5 in "global" mode + if ( + ((window.setup && typeof window.setup === 'function') || + (window.draw && typeof window.draw === 'function')) && + !p5.instance + ) { + new p5(); + } + } + }; + + // TODO: ??? + + // if the page is ready, initialize p5 immediately + if (document.readyState === 'complete') { + _globalInit(); + // if the page is still loading, add an event listener + // and initialize p5 as soon as it finishes loading + } else { + window.addEventListener('load', _globalInit, false); + } + }, + { '../core/main': 24 } + ], + 23: [ + function(_dereq_, module, exports) { + /** + * @for p5 + * @requires core + * These are functions that are part of the Processing API but are not part of + * the p5.js API. In some cases they have a new name, in others, they are + * removed completely. Not all unsupported Processing functions are listed here + * but we try to include ones that a user coming from Processing might likely + * call. + */ + + 'use strict'; + + var p5 = _dereq_('./main'); + + p5.prototype.pushStyle = function() { + throw new Error('pushStyle() not used, see push()'); + }; + + p5.prototype.popStyle = function() { + throw new Error('popStyle() not used, see pop()'); + }; + + p5.prototype.popMatrix = function() { + throw new Error('popMatrix() not used, see pop()'); + }; + + p5.prototype.printMatrix = function() { + throw new Error( + 'printMatrix() is not implemented in p5.js, ' + + 'refer to [https://simonsarris.com/a-transformation-class-for-canvas-to-keep-track-of-the-transformation-matrix/] ' + + 'to add your own implementation.' + ); + }; + + p5.prototype.pushMatrix = function() { + throw new Error('pushMatrix() not used, see push()'); + }; + + module.exports = p5; + }, + { './main': 24 } + ], + 24: [ + function(_dereq_, module, exports) { + /** + * @module Structure + * @submodule Structure + * @for p5 + * @requires constants + */ + + 'use strict'; + + _dereq_('./shim'); + + // Core needs the PVariables object + var constants = _dereq_('./constants'); + + /** + * This is the p5 instance constructor. + * + * A p5 instance holds all the properties and methods related to + * a p5 sketch. It expects an incoming sketch closure and it can also + * take an optional node parameter for attaching the generated p5 canvas + * to a node. The sketch closure takes the newly created p5 instance as + * its sole argument and may optionally set preload(), setup(), and/or + * draw() properties on it for running a sketch. + * + * A p5 sketch can run in "global" or "instance" mode: + * "global" - all properties and methods are attached to the window + * "instance" - all properties and methods are bound to this p5 object + * + * @class p5 + * @constructor + * @param {function} sketch a closure that can set optional preload(), + * setup(), and/or draw() properties on the + * given p5 instance + * @param {HTMLElement} [node] element to attach canvas to + * @return {p5} a p5 instance + */ + var p5 = function p5(sketch, node, sync) { + ////////////////////////////////////////////// + // PUBLIC p5 PROPERTIES AND METHODS + ////////////////////////////////////////////// + + /** + * Called directly before setup(), the preload() function is used to handle + * asynchronous loading of external files in a blocking way. If a preload + * function is defined, setup() will wait until any load calls within have + * finished. Nothing besides load calls (loadImage, loadJSON, loadFont, + * loadStrings, etc.) should be inside the preload function. If asynchronous + * loading is preferred, the load methods can instead be called in setup() + * or anywhere else with the use of a callback parameter. + *

+ * By default the text "loading..." will be displayed. To make your own + * loading page, include an HTML element with id "p5_loading" in your + * page. More information here. + * + * @method preload + * @example + *
+ * let img; + * let c; + * function preload() { + * // preload() runs once + * img = loadImage('assets/laDefense.jpg'); + * } + * + * function setup() { + * // setup() waits until preload() is done + * img.loadPixels(); + * // get color of middle pixel + * c = img.get(img.width / 2, img.height / 2); + * } + * + * function draw() { + * background(c); + * image(img, 25, 25, 50, 50); + * } + *
+ * + * @alt + * nothing displayed + * + */ + + /** + * The setup() function is called once when the program starts. It's used to + * define initial environment properties such as screen size and background + * color and to load media such as images and fonts as the program starts. + * There can only be one setup() function for each program and it shouldn't + * be called again after its initial execution. + *

+ * Note: Variables declared within setup() are not accessible within other + * functions, including draw(). + * + * @method setup + * @example + *
+ * let a = 0; + * + * function setup() { + * background(0); + * noStroke(); + * fill(102); + * } + * + * function draw() { + * rect(a++ % width, 10, 2, 80); + * } + *
+ * + * @alt + * nothing displayed + * + */ + + /** + * Called directly after setup(), the draw() function continuously executes + * the lines of code contained inside its block until the program is stopped + * or noLoop() is called. Note if noLoop() is called in setup(), draw() will + * still be executed once before stopping. draw() is called automatically and + * should never be called explicitly. + *

+ * It should always be controlled with noLoop(), redraw() and loop(). After + * noLoop() stops the code in draw() from executing, redraw() causes the + * code inside draw() to execute once, and loop() will cause the code + * inside draw() to resume executing continuously. + *

+ * The number of times draw() executes in each second may be controlled with + * the frameRate() function. + *

+ * There can only be one draw() function for each sketch, and draw() must + * exist if you want the code to run continuously, or to process events such + * as mousePressed(). Sometimes, you might have an empty call to draw() in + * your program, as shown in the above example. + *

+ * It is important to note that the drawing coordinate system will be reset + * at the beginning of each draw() call. If any transformations are performed + * within draw() (ex: scale, rotate, translate), their effects will be + * undone at the beginning of draw(), so transformations will not accumulate + * over time. On the other hand, styling applied (ex: fill, stroke, etc) will + * remain in effect. + * + * @method draw + * @example + *
+ * let yPos = 0; + * function setup() { + * // setup() runs once + * frameRate(30); + * } + * function draw() { + * // draw() loops forever, until stopped + * background(204); + * yPos = yPos - 1; + * if (yPos < 0) { + * yPos = height; + * } + * line(0, yPos, width, yPos); + * } + *
+ * + * @alt + * nothing displayed + * + */ + + ////////////////////////////////////////////// + // PRIVATE p5 PROPERTIES AND METHODS + ////////////////////////////////////////////// + + this._setupDone = false; + // for handling hidpi + this._pixelDensity = Math.ceil(window.devicePixelRatio) || 1; + this._userNode = node; + this._curElement = null; + this._elements = []; + this._glAttributes = null; + this._requestAnimId = 0; + this._preloadCount = 0; + this._isGlobal = false; + this._loop = true; + this._initializeInstanceVariables(); + this._defaultCanvasSize = { + width: 100, + height: 100 + }; + + this._events = { + // keep track of user-events for unregistering later + mousemove: null, + mousedown: null, + mouseup: null, + dragend: null, + dragover: null, + click: null, + dblclick: null, + mouseover: null, + mouseout: null, + keydown: null, + keyup: null, + keypress: null, + touchstart: null, + touchmove: null, + touchend: null, + resize: null, + blur: null + }; + + this._events.wheel = null; + this._loadingScreenId = 'p5_loading'; + + // Allows methods to be registered on an instance that + // are instance-specific. + this._registeredMethods = {}; + var methods = Object.getOwnPropertyNames(p5.prototype._registeredMethods); + for (var i = 0; i < methods.length; i++) { + var prop = methods[i]; + this._registeredMethods[prop] = p5.prototype._registeredMethods[prop].slice(); + } + + if (window.DeviceOrientationEvent) { + this._events.deviceorientation = null; + } + if (window.DeviceMotionEvent && !window._isNodeWebkit) { + this._events.devicemotion = null; + } + + this._start = function() { + // Find node if id given + if (this._userNode) { + if (typeof this._userNode === 'string') { + this._userNode = document.getElementById(this._userNode); + } + } + + var context = this._isGlobal ? window : this; + var userPreload = context.preload; + if (userPreload) { + // Setup loading screen + // Set loading screen into dom if not present + // Otherwise displays and removes user provided loading screen + var loadingScreen = document.getElementById(this._loadingScreenId); + if (!loadingScreen) { + loadingScreen = document.createElement('div'); + loadingScreen.innerHTML = 'Loading...'; + loadingScreen.style.position = 'absolute'; + loadingScreen.id = this._loadingScreenId; + var node = this._userNode || document.body; + node.appendChild(loadingScreen); + } + var methods = this._preloadMethods; + for (var method in methods) { + // default to p5 if no object defined + methods[method] = methods[method] || p5; + var obj = methods[method]; + //it's p5, check if it's global or instance + if (obj === p5.prototype || obj === p5) { + if (this._isGlobal) { + window[method] = this._wrapPreload(this, method); + } + obj = this; + } + this._registeredPreloadMethods[method] = obj[method]; + obj[method] = this._wrapPreload(obj, method); + } + + userPreload(); + this._runIfPreloadsAreDone(); + } else { + this._setup(); + this._draw(); + } + }.bind(this); + + this._runIfPreloadsAreDone = function() { + var context = this._isGlobal ? window : this; + if (context._preloadCount === 0) { + var loadingScreen = document.getElementById(context._loadingScreenId); + if (loadingScreen) { + loadingScreen.parentNode.removeChild(loadingScreen); + } + context._setup(); + context._draw(); + } + }; + + this._decrementPreload = function() { + var context = this._isGlobal ? window : this; + if (typeof context.preload === 'function') { + context._setProperty('_preloadCount', context._preloadCount - 1); + context._runIfPreloadsAreDone(); + } + }; + + this._wrapPreload = function(obj, fnName) { + return function() { + //increment counter + this._incrementPreload(); + //call original function + return this._registeredPreloadMethods[fnName].apply(obj, arguments); + }.bind(this); + }; + + this._incrementPreload = function() { + var context = this._isGlobal ? window : this; + context._setProperty('_preloadCount', context._preloadCount + 1); + }; + + this._setup = function() { + // Always create a default canvas. + // Later on if the user calls createCanvas, this default one + // will be replaced + this.createCanvas( + this._defaultCanvasSize.width, + this._defaultCanvasSize.height, + 'p2d' + ); + + // return preload functions to their normal vals if switched by preload + var context = this._isGlobal ? window : this; + if (typeof context.preload === 'function') { + for (var f in this._preloadMethods) { + context[f] = this._preloadMethods[f][f]; + if (context[f] && this) { + context[f] = context[f].bind(this); + } + } + } + + // Short-circuit on this, in case someone used the library in "global" + // mode earlier + if (typeof context.setup === 'function') { + context.setup(); + } + + // unhide any hidden canvases that were created + var canvases = document.getElementsByTagName('canvas'); + for (var i = 0; i < canvases.length; i++) { + var k = canvases[i]; + if (k.dataset.hidden === 'true') { + k.style.visibility = ''; + delete k.dataset.hidden; + } + } + this._setupDone = true; + }.bind(this); + + this._draw = function() { + var now = window.performance.now(); + var time_since_last = now - this._lastFrameTime; + var target_time_between_frames = 1000 / this._targetFrameRate; + + // only draw if we really need to; don't overextend the browser. + // draw if we're within 5ms of when our next frame should paint + // (this will prevent us from giving up opportunities to draw + // again when it's really about time for us to do so). fixes an + // issue where the frameRate is too low if our refresh loop isn't + // in sync with the browser. note that we have to draw once even + // if looping is off, so we bypass the time delay if that + // is the case. + var epsilon = 5; + if (!this._loop || time_since_last >= target_time_between_frames - epsilon) { + //mandatory update values(matrixs and stack) + + this.redraw(); + this._frameRate = 1000.0 / (now - this._lastFrameTime); + this.deltaTime = now - this._lastFrameTime; + this._setProperty('deltaTime', this.deltaTime); + this._lastFrameTime = now; + + // If the user is actually using mouse module, then update + // coordinates, otherwise skip. We can test this by simply + // checking if any of the mouse functions are available or not. + // NOTE : This reflects only in complete build or modular build. + if (typeof this._updateMouseCoords !== 'undefined') { + this._updateMouseCoords(); + } + } + + // get notified the next time the browser gives us + // an opportunity to draw. + if (this._loop) { + this._requestAnimId = window.requestAnimationFrame(this._draw); + } + }.bind(this); + + this._setProperty = function(prop, value) { + this[prop] = value; + if (this._isGlobal) { + window[prop] = value; + } + }.bind(this); + + /** + * Removes the entire p5 sketch. This will remove the canvas and any + * elements created by p5.js. It will also stop the draw loop and unbind + * any properties or methods from the window global scope. It will + * leave a variable p5 in case you wanted to create a new p5 sketch. + * If you like, you can set p5 = null to erase it. While all functions and + * variables and objects created by the p5 library will be removed, any + * other global variables created by your code will remain. + * + * @method remove + * @example + *
+ * function draw() { + * ellipse(50, 50, 10, 10); + * } + * + * function mousePressed() { + * remove(); // remove whole sketch on mouse press + * } + *
+ * + * @alt + * nothing displayed + * + */ + this.remove = function() { + var loadingScreen = document.getElementById(this._loadingScreenId); + if (loadingScreen) { + loadingScreen.parentNode.removeChild(loadingScreen); + // Add 1 to preload counter to prevent the sketch ever executing setup() + this._incrementPreload(); + } + if (this._curElement) { + // stop draw + this._loop = false; + if (this._requestAnimId) { + window.cancelAnimationFrame(this._requestAnimId); + } + + // unregister events sketch-wide + for (var ev in this._events) { + window.removeEventListener(ev, this._events[ev]); + } + + // remove DOM elements created by p5, and listeners + for (var i = 0; i < this._elements.length; i++) { + var e = this._elements[i]; + if (e.elt.parentNode) { + e.elt.parentNode.removeChild(e.elt); + } + for (var elt_ev in e._events) { + e.elt.removeEventListener(elt_ev, e._events[elt_ev]); + } + } + + // call any registered remove functions + var self = this; + this._registeredMethods.remove.forEach(function(f) { + if (typeof f !== 'undefined') { + f.call(self); + } + }); + } + // remove window bound properties and methods + if (this._isGlobal) { + for (var p in p5.prototype) { + try { + delete window[p]; + } catch (x) { + window[p] = undefined; + } + } + for (var p2 in this) { + if (this.hasOwnProperty(p2)) { + try { + delete window[p2]; + } catch (x) { + window[p2] = undefined; + } + } + } + p5.instance = null; + } + }.bind(this); + + // call any registered init functions + this._registeredMethods.init.forEach(function(f) { + if (typeof f !== 'undefined') { + f.call(this); + } + }, this); + + var friendlyBindGlobal = this._createFriendlyGlobalFunctionBinder(); + + // If the user has created a global setup or draw function, + // assume "global" mode and make everything global (i.e. on the window) + if (!sketch) { + this._isGlobal = true; + p5.instance = this; + // Loop through methods on the prototype and attach them to the window + for (var p in p5.prototype) { + if (typeof p5.prototype[p] === 'function') { + var ev = p.substring(2); + if (!this._events.hasOwnProperty(ev)) { + if (Math.hasOwnProperty(p) && Math[p] === p5.prototype[p]) { + // Multiple p5 methods are just native Math functions. These can be + // called without any binding. + friendlyBindGlobal(p, p5.prototype[p]); + } else { + friendlyBindGlobal(p, p5.prototype[p].bind(this)); + } + } + } else { + friendlyBindGlobal(p, p5.prototype[p]); + } + } + // Attach its properties to the window + for (var p2 in this) { + if (this.hasOwnProperty(p2)) { + friendlyBindGlobal(p2, this[p2]); + } + } + } else { + // Else, the user has passed in a sketch closure that may set + // user-provided 'setup', 'draw', etc. properties on this instance of p5 + sketch(this); + } + + // Bind events to window (not using container div bc key events don't work) + + for (var e in this._events) { + var f = this['_on' + e]; + if (f) { + var m = f.bind(this); + window.addEventListener(e, m, { passive: false }); + this._events[e] = m; + } + } + + var focusHandler = function() { + this._setProperty('focused', true); + }.bind(this); + var blurHandler = function() { + this._setProperty('focused', false); + }.bind(this); + window.addEventListener('focus', focusHandler); + window.addEventListener('blur', blurHandler); + this.registerMethod('remove', function() { + window.removeEventListener('focus', focusHandler); + window.removeEventListener('blur', blurHandler); + }); + + if (document.readyState === 'complete') { + this._start(); + } else { + window.addEventListener('load', this._start.bind(this), false); + } + }; + + p5.prototype._initializeInstanceVariables = function() { + this._styles = []; + + this._bezierDetail = 20; + this._curveDetail = 20; + + this._colorMode = constants.RGB; + this._colorMaxes = { + rgb: [255, 255, 255, 255], + hsb: [360, 100, 100, 1], + hsl: [360, 100, 100, 1] + }; + + this._pixelsDirty = true; + + this._downKeys = {}; //Holds the key codes of currently pressed keys + }; + + // This is a pointer to our global mode p5 instance, if we're in + // global mode. + p5.instance = null; + + /** + * Allows for the friendly error system (FES) to be turned off when creating a sketch, + * which can give a significant boost to performance when needed. + * See + * disabling the friendly error system. + * + * @property {Boolean} disableFriendlyErrors + * @example + *
+ * p5.disableFriendlyErrors = true; + * + * function setup() { + * createCanvas(100, 50); + * } + *
+ */ + p5.disableFriendlyErrors = false; + + // attach constants to p5 prototype + for (var k in constants) { + p5.prototype[k] = constants[k]; + } + + // functions that cause preload to wait + // more can be added by using registerPreloadMethod(func) + p5.prototype._preloadMethods = { + loadJSON: p5.prototype, + loadImage: p5.prototype, + loadStrings: p5.prototype, + loadXML: p5.prototype, + loadBytes: p5.prototype, + loadTable: p5.prototype, + loadFont: p5.prototype, + loadModel: p5.prototype, + loadShader: p5.prototype + }; + + p5.prototype._registeredMethods = { init: [], pre: [], post: [], remove: [] }; + + p5.prototype._registeredPreloadMethods = {}; + + p5.prototype.registerPreloadMethod = function(fnString, obj) { + // obj = obj || p5.prototype; + if (!p5.prototype._preloadMethods.hasOwnProperty(fnString)) { + p5.prototype._preloadMethods[fnString] = obj; + } + }; + + p5.prototype.registerMethod = function(name, m) { + var target = this || p5.prototype; + if (!target._registeredMethods.hasOwnProperty(name)) { + target._registeredMethods[name] = []; + } + target._registeredMethods[name].push(m); + }; + + // create a function which provides a standardized process for binding + // globals; this is implemented as a factory primarily so that there's a + // way to redefine what "global" means for the binding function so it + // can be used in scenarios like unit testing where the window object + // might not exist + p5.prototype._createFriendlyGlobalFunctionBinder = function(options) { + options = options || {}; + + var globalObject = options.globalObject || window; + var log = options.log || console.log.bind(console); + var propsToForciblyOverwrite = { + // p5.print actually always overwrites an existing global function, + // albeit one that is very unlikely to be used: + // + // https://developer.mozilla.org/en-US/docs/Web/API/Window/print + print: true + }; + + return function(prop, value) { + if ( + !p5.disableFriendlyErrors && + typeof IS_MINIFIED === 'undefined' && + typeof value === 'function' && + !(prop in p5.prototype._preloadMethods) + ) { + try { + // Because p5 has so many common function names, it's likely + // that users may accidentally overwrite global p5 functions with + // their own variables. Let's allow this but log a warning to + // help users who may be doing this unintentionally. + // + // For more information, see: + // + // https://github.com/processing/p5.js/issues/1317 + + if (prop in globalObject && !(prop in propsToForciblyOverwrite)) { + throw new Error('global "' + prop + '" already exists'); + } + + // It's possible that this might throw an error because there + // are a lot of edge-cases in which `Object.defineProperty` might + // not succeed; since this functionality is only intended to + // help beginners anyways, we'll just catch such an exception + // if it occurs, and fall back to legacy behavior. + Object.defineProperty(globalObject, prop, { + configurable: true, + enumerable: true, + get: function get() { + return value; + }, + set: function set(newValue) { + Object.defineProperty(globalObject, prop, { + configurable: true, + enumerable: true, + value: newValue, + writable: true + }); + + log( + 'You just changed the value of "' + + prop + + '", which was ' + + "a p5 function. This could cause problems later if you're " + + 'not careful.' + ); + } + }); + } catch (e) { + log( + 'p5 had problems creating the global function "' + + prop + + '", ' + + 'possibly because your code is already using that name as ' + + 'a variable. You may want to rename your variable to something ' + + 'else.' + ); + + globalObject[prop] = value; + } + } else { + globalObject[prop] = value; + } + }; + }; + + module.exports = p5; + }, + { './constants': 18, './shim': 34 } + ], + 25: [ + function(_dereq_, module, exports) { + /** + * @module DOM + * @submodule DOM + * @for p5.Element + */ + + 'use strict'; + + var p5 = _dereq_('./main'); + + /** + * Base class for all elements added to a sketch, including canvas, + * graphics buffers, and other HTML elements. Methods in blue are + * included in the core functionality, methods in brown are added + * with the p5.dom + * library. + * It is not called directly, but p5.Element + * objects are created by calling createCanvas, createGraphics, + * or in the p5.dom library, createDiv, createImg, createInput, etc. + * + * @class p5.Element + * @param {String} elt DOM node that is wrapped + * @param {p5} [pInst] pointer to p5 instance + */ + p5.Element = function(elt, pInst) { + /** + * Underlying HTML element. All normal HTML methods can be called on this. + * @example + *
+ * + * function setup() { + * let c = createCanvas(50, 50); + * c.elt.style.border = '5px solid red'; + * } + * + * function draw() { + * background(220); + * } + * + *
+ * + * @property elt + * @readOnly + */ + this.elt = elt; + this._pInst = this._pixelsState = pInst; + this._events = {}; + this.width = this.elt.offsetWidth; + this.height = this.elt.offsetHeight; + }; + + /** + * + * Attaches the element to the parent specified. A way of setting + * the container for the element. Accepts either a string ID, DOM + * node, or p5.Element. If no arguments given, parent node is returned. + * For more ways to position the canvas, see the + * + * positioning the canvas wiki page. + * + * All above examples except for the first one require the inclusion of + * the p5.dom library in your index.html. See the + * using a library + * section for information on how to include this library. + * + * @method parent + * @param {String|p5.Element|Object} parent the ID, DOM node, or p5.Element + * of desired parent element + * @chainable + * + * @example + *
+ * // in the html file: + * // <div id="myContainer"></div> + * + * // in the js file: + * let cnv = createCanvas(100, 100); + * cnv.parent('myContainer'); + *
+ *
+ * let div0 = createDiv('this is the parent'); + * let div1 = createDiv('this is the child'); + * div1.parent(div0); // use p5.Element + *
+ *
+ * let div0 = createDiv('this is the parent'); + * div0.id('apples'); + * let div1 = createDiv('this is the child'); + * div1.parent('apples'); // use id + *
+ *
+ * let elt = document.getElementById('myParentDiv'); + * let div1 = createDiv('this is the child'); + * div1.parent(elt); // use element from page + *
+ * + * @alt + * no display. + */ + /** + * @method parent + * @return {p5.Element} + * + */ + p5.Element.prototype.parent = function(p) { + if (typeof p === 'undefined') { + return this.elt.parentNode; + } + + if (typeof p === 'string') { + if (p[0] === '#') { + p = p.substring(1); + } + p = document.getElementById(p); + } else if (p instanceof p5.Element) { + p = p.elt; + } + p.appendChild(this.elt); + return this; + }; + + /** + * + * Sets the ID of the element. If no ID argument is passed in, it instead + * returns the current ID of the element. + * Note that only one element can have a particular id in a page. + * The .class() function can be used + * to identify multiple elements with the same class name. + * + * @method id + * @param {String} id ID of the element + * @chainable + * + * @example + *
+ * function setup() { + * let cnv = createCanvas(100, 100); + * // Assigns a CSS selector ID to + * // the canvas element. + * cnv.id('mycanvas'); + * } + *
+ * + * @alt + * no display. + */ + /** + * @method id + * @return {String} the id of the element + */ + p5.Element.prototype.id = function(id) { + if (typeof id === 'undefined') { + return this.elt.id; + } + + this.elt.id = id; + this.width = this.elt.offsetWidth; + this.height = this.elt.offsetHeight; + return this; + }; + + /** + * + * Adds given class to the element. If no class argument is passed in, it + * instead returns a string containing the current class(es) of the element. + * + * @method class + * @param {String} class class to add + * @chainable + * + * @example + *
+ * function setup() { + * let cnv = createCanvas(100, 100); + * // Assigns a CSS selector class 'small' + * // to the canvas element. + * cnv.class('small'); + * } + *
+ * + * @alt + * no display. + */ + /** + * @method class + * @return {String} the class of the element + */ + p5.Element.prototype.class = function(c) { + if (typeof c === 'undefined') { + return this.elt.className; + } + + this.elt.className = c; + return this; + }; + + /** + * The .mousePressed() function is called once after every time a + * mouse button is pressed over the element. + * Some mobile browsers may also trigger this event on a touch screen, + * if the user performs a quick tap. + * This can be used to attach element specific event listeners. + * + * @method mousePressed + * @param {Function|Boolean} fxn function to be fired when mouse is + * pressed over the element. + * if `false` is passed instead, the previously + * firing function will no longer fire. + * @chainable + * @example + *
+ * let cnv; + * let d; + * let g; + * function setup() { + * cnv = createCanvas(100, 100); + * cnv.mousePressed(changeGray); // attach listener for + * // canvas click only + * d = 10; + * g = 100; + * } + * + * function draw() { + * background(g); + * ellipse(width / 2, height / 2, d, d); + * } + * + * // this function fires with any click anywhere + * function mousePressed() { + * d = d + 10; + * } + * + * // this function fires only when cnv is clicked + * function changeGray() { + * g = random(0, 255); + * } + *
+ * + * @alt + * no display. + * + */ + p5.Element.prototype.mousePressed = function(fxn) { + // Prepend the mouse property setters to the event-listener. + // This is required so that mouseButton is set correctly prior to calling the callback (fxn). + // For details, see https://github.com/processing/p5.js/issues/3087. + var eventPrependedFxn = function eventPrependedFxn(event) { + this._pInst._setProperty('mouseIsPressed', true); + this._pInst._setMouseButton(event); + // Pass along the return-value of the callback: + return fxn.call(this); + }; + // Pass along the event-prepended form of the callback. + p5.Element._adjustListener('mousedown', eventPrependedFxn, this); + return this; + }; + + /** + * The .doubleClicked() function is called once after every time a + * mouse button is pressed twice over the element. This can be used to + * attach element and action specific event listeners. + * + * @method doubleClicked + * @param {Function|Boolean} fxn function to be fired when mouse is + * double clicked over the element. + * if `false` is passed instead, the previously + * firing function will no longer fire. + * @return {p5.Element} + * @example + *
+ * let cnv; + * let d; + * let g; + * function setup() { + * cnv = createCanvas(100, 100); + * cnv.doubleClicked(changeGray); // attach listener for + * // canvas double click only + * d = 10; + * g = 100; + * } + * + * function draw() { + * background(g); + * ellipse(width / 2, height / 2, d, d); + * } + * + * // this function fires with any double click anywhere + * function doubleClicked() { + * d = d + 10; + * } + * + * // this function fires only when cnv is double clicked + * function changeGray() { + * g = random(0, 255); + * } + *
+ * + * @alt + * no display. + * + */ + p5.Element.prototype.doubleClicked = function(fxn) { + p5.Element._adjustListener('dblclick', fxn, this); + return this; + }; + + /** + * The .mouseWheel() function is called once after every time a + * mouse wheel is scrolled over the element. This can be used to + * attach element specific event listeners. + *

+ * The function accepts a callback function as argument which will be executed + * when the `wheel` event is triggered on the element, the callback function is + * passed one argument `event`. The `event.deltaY` property returns negative + * values if the mouse wheel is rotated up or away from the user and positive + * in the other direction. The `event.deltaX` does the same as `event.deltaY` + * except it reads the horizontal wheel scroll of the mouse wheel. + *

+ * On OS X with "natural" scrolling enabled, the `event.deltaY` values are + * reversed. + * + * @method mouseWheel + * @param {Function|Boolean} fxn function to be fired when mouse is + * scrolled over the element. + * if `false` is passed instead, the previously + * firing function will no longer fire. + * @chainable + * @example + *
+ * let cnv; + * let d; + * let g; + * function setup() { + * cnv = createCanvas(100, 100); + * cnv.mouseWheel(changeSize); // attach listener for + * // activity on canvas only + * d = 10; + * g = 100; + * } + * + * function draw() { + * background(g); + * ellipse(width / 2, height / 2, d, d); + * } + * + * // this function fires with mousewheel movement + * // anywhere on screen + * function mouseWheel() { + * g = g + 10; + * } + * + * // this function fires with mousewheel movement + * // over canvas only + * function changeSize(event) { + * if (event.deltaY > 0) { + * d = d + 10; + * } else { + * d = d - 10; + * } + * } + *
+ * + * + * @alt + * no display. + * + */ + p5.Element.prototype.mouseWheel = function(fxn) { + p5.Element._adjustListener('wheel', fxn, this); + return this; + }; + + /** + * The .mouseReleased() function is called once after every time a + * mouse button is released over the element. + * Some mobile browsers may also trigger this event on a touch screen, + * if the user performs a quick tap. + * This can be used to attach element specific event listeners. + * + * @method mouseReleased + * @param {Function|Boolean} fxn function to be fired when mouse is + * released over the element. + * if `false` is passed instead, the previously + * firing function will no longer fire. + * @chainable + * @example + *
+ * let cnv; + * let d; + * let g; + * function setup() { + * cnv = createCanvas(100, 100); + * cnv.mouseReleased(changeGray); // attach listener for + * // activity on canvas only + * d = 10; + * g = 100; + * } + * + * function draw() { + * background(g); + * ellipse(width / 2, height / 2, d, d); + * } + * + * // this function fires after the mouse has been + * // released + * function mouseReleased() { + * d = d + 10; + * } + * + * // this function fires after the mouse has been + * // released while on canvas + * function changeGray() { + * g = random(0, 255); + * } + *
+ * + * + * @alt + * no display. + * + */ + p5.Element.prototype.mouseReleased = function(fxn) { + p5.Element._adjustListener('mouseup', fxn, this); + return this; + }; + + /** + * The .mouseClicked() function is called once after a mouse button is + * pressed and released over the element. + * Some mobile browsers may also trigger this event on a touch screen, + * if the user performs a quick tap. + * This can be used to attach element specific event listeners. + * + * @method mouseClicked + * @param {Function|Boolean} fxn function to be fired when mouse is + * clicked over the element. + * if `false` is passed instead, the previously + * firing function will no longer fire. + * @chainable + * @example + *
+ * + * let cnv; + * let d; + * let g; + * + * function setup() { + * cnv = createCanvas(100, 100); + * cnv.mouseClicked(changeGray); // attach listener for + * // activity on canvas only + * d = 10; + * g = 100; + * } + * + * function draw() { + * background(g); + * ellipse(width / 2, height / 2, d, d); + * } + * + * // this function fires after the mouse has been + * // clicked anywhere + * function mouseClicked() { + * d = d + 10; + * } + * + * // this function fires after the mouse has been + * // clicked on canvas + * function changeGray() { + * g = random(0, 255); + * } + * + *
+ * + * @alt + * no display. + * + */ + p5.Element.prototype.mouseClicked = function(fxn) { + p5.Element._adjustListener('click', fxn, this); + return this; + }; + + /** + * The .mouseMoved() function is called once every time a + * mouse moves over the element. This can be used to attach an + * element specific event listener. + * + * @method mouseMoved + * @param {Function|Boolean} fxn function to be fired when a mouse moves + * over the element. + * if `false` is passed instead, the previously + * firing function will no longer fire. + * @chainable + * @example + *
+ * let cnv; + * let d = 30; + * let g; + * function setup() { + * cnv = createCanvas(100, 100); + * cnv.mouseMoved(changeSize); // attach listener for + * // activity on canvas only + * d = 10; + * g = 100; + * } + * + * function draw() { + * background(g); + * fill(200); + * ellipse(width / 2, height / 2, d, d); + * } + * + * // this function fires when mouse moves anywhere on + * // page + * function mouseMoved() { + * g = g + 5; + * if (g > 255) { + * g = 0; + * } + * } + * + * // this function fires when mouse moves over canvas + * function changeSize() { + * d = d + 2; + * if (d > 100) { + * d = 0; + * } + * } + *
+ * + * + * @alt + * no display. + * + */ + p5.Element.prototype.mouseMoved = function(fxn) { + p5.Element._adjustListener('mousemove', fxn, this); + return this; + }; + + /** + * The .mouseOver() function is called once after every time a + * mouse moves onto the element. This can be used to attach an + * element specific event listener. + * + * @method mouseOver + * @param {Function|Boolean} fxn function to be fired when a mouse moves + * onto the element. + * if `false` is passed instead, the previously + * firing function will no longer fire. + * @chainable + * @example + *
+ * let cnv; + * let d; + * function setup() { + * cnv = createCanvas(100, 100); + * cnv.mouseOver(changeGray); + * d = 10; + * } + * + * function draw() { + * ellipse(width / 2, height / 2, d, d); + * } + * + * function changeGray() { + * d = d + 10; + * if (d > 100) { + * d = 0; + * } + * } + *
+ * + * + * @alt + * no display. + * + */ + p5.Element.prototype.mouseOver = function(fxn) { + p5.Element._adjustListener('mouseover', fxn, this); + return this; + }; + + /** + * The .mouseOut() function is called once after every time a + * mouse moves off the element. This can be used to attach an + * element specific event listener. + * + * @method mouseOut + * @param {Function|Boolean} fxn function to be fired when a mouse + * moves off of an element. + * if `false` is passed instead, the previously + * firing function will no longer fire. + * @chainable + * @example + *
+ * let cnv; + * let d; + * function setup() { + * cnv = createCanvas(100, 100); + * cnv.mouseOut(changeGray); + * d = 10; + * } + * + * function draw() { + * ellipse(width / 2, height / 2, d, d); + * } + * + * function changeGray() { + * d = d + 10; + * if (d > 100) { + * d = 0; + * } + * } + *
+ * + * @alt + * no display. + * + */ + p5.Element.prototype.mouseOut = function(fxn) { + p5.Element._adjustListener('mouseout', fxn, this); + return this; + }; + + /** + * The .touchStarted() function is called once after every time a touch is + * registered. This can be used to attach element specific event listeners. + * + * @method touchStarted + * @param {Function|Boolean} fxn function to be fired when a touch + * starts over the element. + * if `false` is passed instead, the previously + * firing function will no longer fire. + * @chainable + * @example + *
+ * let cnv; + * let d; + * let g; + * function setup() { + * cnv = createCanvas(100, 100); + * cnv.touchStarted(changeGray); // attach listener for + * // canvas click only + * d = 10; + * g = 100; + * } + * + * function draw() { + * background(g); + * ellipse(width / 2, height / 2, d, d); + * } + * + * // this function fires with any touch anywhere + * function touchStarted() { + * d = d + 10; + * } + * + * // this function fires only when cnv is clicked + * function changeGray() { + * g = random(0, 255); + * } + *
+ * + * @alt + * no display. + * + */ + p5.Element.prototype.touchStarted = function(fxn) { + p5.Element._adjustListener('touchstart', fxn, this); + return this; + }; + + /** + * The .touchMoved() function is called once after every time a touch move is + * registered. This can be used to attach element specific event listeners. + * + * @method touchMoved + * @param {Function|Boolean} fxn function to be fired when a touch moves over + * the element. + * if `false` is passed instead, the previously + * firing function will no longer fire. + * @chainable + * @example + *
+ * let cnv; + * let g; + * function setup() { + * cnv = createCanvas(100, 100); + * cnv.touchMoved(changeGray); // attach listener for + * // canvas click only + * g = 100; + * } + * + * function draw() { + * background(g); + * } + * + * // this function fires only when cnv is clicked + * function changeGray() { + * g = random(0, 255); + * } + *
+ * + * @alt + * no display. + * + */ + p5.Element.prototype.touchMoved = function(fxn) { + p5.Element._adjustListener('touchmove', fxn, this); + return this; + }; + + /** + * The .touchEnded() function is called once after every time a touch is + * registered. This can be used to attach element specific event listeners. + * + * @method touchEnded + * @param {Function|Boolean} fxn function to be fired when a touch ends + * over the element. + * if `false` is passed instead, the previously + * firing function will no longer fire. + * @chainable + * @example + *
+ * let cnv; + * let d; + * let g; + * function setup() { + * cnv = createCanvas(100, 100); + * cnv.touchEnded(changeGray); // attach listener for + * // canvas click only + * d = 10; + * g = 100; + * } + * + * function draw() { + * background(g); + * ellipse(width / 2, height / 2, d, d); + * } + * + * // this function fires with any touch anywhere + * function touchEnded() { + * d = d + 10; + * } + * + * // this function fires only when cnv is clicked + * function changeGray() { + * g = random(0, 255); + * } + *
+ * + * + * @alt + * no display. + * + */ + p5.Element.prototype.touchEnded = function(fxn) { + p5.Element._adjustListener('touchend', fxn, this); + return this; + }; + + /** + * The .dragOver() function is called once after every time a + * file is dragged over the element. This can be used to attach an + * element specific event listener. + * + * @method dragOver + * @param {Function|Boolean} fxn function to be fired when a file is + * dragged over the element. + * if `false` is passed instead, the previously + * firing function will no longer fire. + * @chainable + * @example + *
+ * // To test this sketch, simply drag a + * // file over the canvas + * function setup() { + * let c = createCanvas(100, 100); + * background(200); + * textAlign(CENTER); + * text('Drag file', width / 2, height / 2); + * c.dragOver(dragOverCallback); + * } + * + * // This function will be called whenever + * // a file is dragged over the canvas + * function dragOverCallback() { + * background(240); + * text('Dragged over', width / 2, height / 2); + * } + *
+ * @alt + * nothing displayed + */ + p5.Element.prototype.dragOver = function(fxn) { + p5.Element._adjustListener('dragover', fxn, this); + return this; + }; + + /** + * The .dragLeave() function is called once after every time a + * dragged file leaves the element area. This can be used to attach an + * element specific event listener. + * + * @method dragLeave + * @param {Function|Boolean} fxn function to be fired when a file is + * dragged off the element. + * if `false` is passed instead, the previously + * firing function will no longer fire. + * @chainable + * @example + *
+ * // To test this sketch, simply drag a file + * // over and then out of the canvas area + * function setup() { + * let c = createCanvas(100, 100); + * background(200); + * textAlign(CENTER); + * text('Drag file', width / 2, height / 2); + * c.dragLeave(dragLeaveCallback); + * } + * + * // This function will be called whenever + * // a file is dragged out of the canvas + * function dragLeaveCallback() { + * background(240); + * text('Dragged off', width / 2, height / 2); + * } + *
+ * @alt + * nothing displayed + */ + p5.Element.prototype.dragLeave = function(fxn) { + p5.Element._adjustListener('dragleave', fxn, this); + return this; + }; + + // General handler for event attaching and detaching + p5.Element._adjustListener = function(ev, fxn, ctx) { + if (fxn === false) { + p5.Element._detachListener(ev, ctx); + } else { + p5.Element._attachListener(ev, fxn, ctx); + } + return this; + }; + + p5.Element._attachListener = function(ev, fxn, ctx) { + // detach the old listener if there was one + if (ctx._events[ev]) { + p5.Element._detachListener(ev, ctx); + } + var f = fxn.bind(ctx); + ctx.elt.addEventListener(ev, f, false); + ctx._events[ev] = f; + }; + + p5.Element._detachListener = function(ev, ctx) { + var f = ctx._events[ev]; + ctx.elt.removeEventListener(ev, f, false); + ctx._events[ev] = null; + }; + + /** + * Helper fxn for sharing pixel methods + * + */ + p5.Element.prototype._setProperty = function(prop, value) { + this[prop] = value; + }; + + module.exports = p5.Element; + }, + { './main': 24 } + ], + 26: [ + function(_dereq_, module, exports) { + /** + * @module Rendering + * @submodule Rendering + * @for p5 + */ + + 'use strict'; + + var p5 = _dereq_('./main'); + var constants = _dereq_('./constants'); + + /** + * Thin wrapper around a renderer, to be used for creating a + * graphics buffer object. Use this class if you need + * to draw into an off-screen graphics buffer. The two parameters define the + * width and height in pixels. The fields and methods for this class are + * extensive, but mirror the normal drawing API for p5. + * + * @class p5.Graphics + * @extends p5.Element + * @param {Number} w width + * @param {Number} h height + * @param {Constant} renderer the renderer to use, either P2D or WEBGL + * @param {p5} [pInst] pointer to p5 instance + */ + p5.Graphics = function(w, h, renderer, pInst) { + var r = renderer || constants.P2D; + + this.canvas = document.createElement('canvas'); + var node = pInst._userNode || document.body; + node.appendChild(this.canvas); + + p5.Element.call(this, this.canvas, pInst); + + // bind methods and props of p5 to the new object + for (var p in p5.prototype) { + if (!this[p]) { + if (typeof p5.prototype[p] === 'function') { + this[p] = p5.prototype[p].bind(this); + } else { + this[p] = p5.prototype[p]; + } + } + } + + p5.prototype._initializeInstanceVariables.apply(this); + this.width = w; + this.height = h; + this._pixelDensity = pInst._pixelDensity; + + if (r === constants.WEBGL) { + this._renderer = new p5.RendererGL(this.canvas, this, false); + } else { + this._renderer = new p5.Renderer2D(this.canvas, this, false); + } + pInst._elements.push(this); + + this._renderer.resize(w, h); + this._renderer._applyDefaults(); + return this; + }; + + p5.Graphics.prototype = Object.create(p5.Element.prototype); + + /** + * Resets certain values such as those modified by functions in the Transform category + * and in the Lights category that are not automatically reset + * with graphics buffer objects. Calling this in draw() will copy the behavior + * of the standard canvas. + * + * @method reset + * @example + * + *
+ * let pg; + * function setup() { + * createCanvas(100, 100); + * background(0); + * pg = createGraphics(50, 100); + * pg.fill(0); + * frameRate(5); + * } + * function draw() { + * image(pg, width / 2, 0); + * pg.background(255); + * // p5.Graphics object behave a bit differently in some cases + * // The normal canvas on the left resets the translate + * // with every loop through draw() + * // the graphics object on the right doesn't automatically reset + * // so translate() is additive and it moves down the screen + * rect(0, 0, width / 2, 5); + * pg.rect(0, 0, width / 2, 5); + * translate(0, 5, 0); + * pg.translate(0, 5, 0); + * } + * function mouseClicked() { + * // if you click you will see that + * // reset() resets the translate back to the initial state + * // of the Graphics object + * pg.reset(); + * } + *
+ * + * @alt + * A white line on a black background stays still on the top-left half. + * A black line animates from top to bottom on a white background on the right half. + * When clicked, the black line starts back over at the top. + * + */ + p5.Graphics.prototype.reset = function() { + this._renderer.resetMatrix(); + if (this._renderer.isP3D) { + this._renderer._update(); + } + }; + + /** + * Removes a Graphics object from the page and frees any resources + * associated with it. + * + * @method remove + * + * @example + *
+ * let bg; + * function setup() { + * bg = createCanvas(100, 100); + * bg.background(0); + * image(bg, 0, 0); + * bg.remove(); + * } + *
+ * + *
+ * let bg; + * function setup() { + * pixelDensity(1); + * createCanvas(100, 100); + * stroke(255); + * fill(0); + * + * // create and draw the background image + * bg = createGraphics(100, 100); + * bg.background(200); + * bg.ellipse(50, 50, 80, 80); + * } + * function draw() { + * let t = millis() / 1000; + * // draw the background + * if (bg) { + * image(bg, frameCount % 100, 0); + * image(bg, frameCount % 100 - 100, 0); + * } + * // draw the foreground + * let p = p5.Vector.fromAngle(t, 35).add(50, 50); + * ellipse(p.x, p.y, 30); + * } + * function mouseClicked() { + * // remove the background + * if (bg) { + * bg.remove(); + * bg = null; + * } + * } + *
+ * + * @alt + * no image + * a multi-colored circle moving back and forth over a scrolling background. + * + */ + p5.Graphics.prototype.remove = function() { + if (this.elt.parentNode) { + this.elt.parentNode.removeChild(this.elt); + } + var idx = this._pInst._elements.indexOf(this); + if (idx !== -1) { + this._pInst._elements.splice(idx, 1); + } + for (var elt_ev in this._events) { + this.elt.removeEventListener(elt_ev, this._events[elt_ev]); + } + }; + + module.exports = p5.Graphics; + }, + { './constants': 18, './main': 24 } + ], + 27: [ + function(_dereq_, module, exports) { + /** + * @module Rendering + * @submodule Rendering + * @for p5 + */ + + 'use strict'; + function _typeof(obj) { + if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && + typeof Symbol === 'function' && + obj.constructor === Symbol && + obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }; + } + return _typeof(obj); + } + + var p5 = _dereq_('./main'); + var constants = _dereq_('../core/constants'); + + /** + * Main graphics and rendering context, as well as the base API + * implementation for p5.js "core". To be used as the superclass for + * Renderer2D and Renderer3D classes, respecitvely. + * + * @class p5.Renderer + * @constructor + * @extends p5.Element + * @param {String} elt DOM node that is wrapped + * @param {p5} [pInst] pointer to p5 instance + * @param {Boolean} [isMainCanvas] whether we're using it as main canvas + */ + p5.Renderer = function(elt, pInst, isMainCanvas) { + p5.Element.call(this, elt, pInst); + this.canvas = elt; + this._pixelsState = pInst; + if (isMainCanvas) { + this._isMainCanvas = true; + // for pixel method sharing with pimage + this._pInst._setProperty('_curElement', this); + this._pInst._setProperty('canvas', this.canvas); + this._pInst._setProperty('width', this.width); + this._pInst._setProperty('height', this.height); + } else { + // hide if offscreen buffer by default + this.canvas.style.display = 'none'; + this._styles = []; // non-main elt styles stored in p5.Renderer + } + + this._textSize = 12; + this._textLeading = 15; + this._textFont = 'sans-serif'; + this._textStyle = constants.NORMAL; + this._textAscent = null; + this._textDescent = null; + this._textAlign = constants.LEFT; + this._textBaseline = constants.BASELINE; + + this._rectMode = constants.CORNER; + this._ellipseMode = constants.CENTER; + this._curveTightness = 0; + this._imageMode = constants.CORNER; + + this._tint = null; + this._doStroke = true; + this._doFill = true; + this._strokeSet = false; + this._fillSet = false; + }; + + p5.Renderer.prototype = Object.create(p5.Element.prototype); + + // the renderer should return a 'style' object that it wishes to + // store on the push stack. + p5.Renderer.prototype.push = function() { + return { + properties: { + _doStroke: this._doStroke, + _strokeSet: this._strokeSet, + _doFill: this._doFill, + _fillSet: this._fillSet, + _tint: this._tint, + _imageMode: this._imageMode, + _rectMode: this._rectMode, + _ellipseMode: this._ellipseMode, + _textFont: this._textFont, + _textLeading: this._textLeading, + _textSize: this._textSize, + _textAlign: this._textAlign, + _textBaseline: this._textBaseline, + _textStyle: this._textStyle + } + }; + }; + + // a pop() operation is in progress + // the renderer is passed the 'style' object that it returned + // from its push() method. + p5.Renderer.prototype.pop = function(style) { + if (style.properties) { + // copy the style properties back into the renderer + Object.assign(this, style.properties); + } + }; + + /** + * Resize our canvas element. + */ + p5.Renderer.prototype.resize = function(w, h) { + this.width = w; + this.height = h; + this.elt.width = w * this._pInst._pixelDensity; + this.elt.height = h * this._pInst._pixelDensity; + this.elt.style.width = w + 'px'; + this.elt.style.height = h + 'px'; + if (this._isMainCanvas) { + this._pInst._setProperty('width', this.width); + this._pInst._setProperty('height', this.height); + } + }; + + p5.Renderer.prototype.get = function(x, y, w, h) { + var pixelsState = this._pixelsState; + var pd = pixelsState._pixelDensity; + var canvas = this.canvas; + + if (typeof x === 'undefined' && typeof y === 'undefined') { + // get() + x = y = 0; + w = pixelsState.width; + h = pixelsState.height; + } else { + x *= pd; + y *= pd; + + if (typeof w === 'undefined' && typeof h === 'undefined') { + // get(x,y) + if (x < 0 || y < 0 || x >= canvas.width || y >= canvas.height) { + return [0, 0, 0, 0]; + } + + return this._getPixel(x, y); + } + // get(x,y,w,h) + } + + var region = new p5.Image(w, h); + region.canvas + .getContext('2d') + .drawImage(canvas, x, y, w * pd, h * pd, 0, 0, w, h); + + return region; + }; + + p5.Renderer.prototype.textLeading = function(l) { + if (typeof l === 'number') { + this._setProperty('_textLeading', l); + return this._pInst; + } + + return this._textLeading; + }; + + p5.Renderer.prototype.textSize = function(s) { + if (typeof s === 'number') { + this._setProperty('_textSize', s); + this._setProperty('_textLeading', s * constants._DEFAULT_LEADMULT); + return this._applyTextProperties(); + } + + return this._textSize; + }; + + p5.Renderer.prototype.textStyle = function(s) { + if (s) { + if ( + s === constants.NORMAL || + s === constants.ITALIC || + s === constants.BOLD || + s === constants.BOLDITALIC + ) { + this._setProperty('_textStyle', s); + } + + return this._applyTextProperties(); + } + + return this._textStyle; + }; + + p5.Renderer.prototype.textAscent = function() { + if (this._textAscent === null) { + this._updateTextMetrics(); + } + return this._textAscent; + }; + + p5.Renderer.prototype.textDescent = function() { + if (this._textDescent === null) { + this._updateTextMetrics(); + } + return this._textDescent; + }; + + p5.Renderer.prototype.textAlign = function(h, v) { + if (typeof h !== 'undefined') { + this._setProperty('_textAlign', h); + + if (typeof v !== 'undefined') { + this._setProperty('_textBaseline', v); + } + + return this._applyTextProperties(); + } else { + return { + horizontal: this._textAlign, + vertical: this._textBaseline + }; + } + }; + + p5.Renderer.prototype.text = function(str, x, y, maxWidth, maxHeight) { + var p = this._pInst, + cars, + n, + ii, + jj, + line, + testLine, + testWidth, + words, + totalHeight, + finalMaxHeight = Number.MAX_VALUE; + + if (!(this._doFill || this._doStroke)) { + return; + } + + if (typeof str === 'undefined') { + return; + } else if (typeof str !== 'string') { + str = str.toString(); + } + + str = str.replace(/(\t)/g, ' '); + cars = str.split('\n'); + + if (typeof maxWidth !== 'undefined') { + totalHeight = 0; + for (ii = 0; ii < cars.length; ii++) { + line = ''; + words = cars[ii].split(' '); + for (n = 0; n < words.length; n++) { + testLine = line + words[n] + ' '; + testWidth = this.textWidth(testLine); + if (testWidth > maxWidth) { + line = words[n] + ' '; + totalHeight += p.textLeading(); + } else { + line = testLine; + } + } + } + + if (this._rectMode === constants.CENTER) { + x -= maxWidth / 2; + y -= maxHeight / 2; + } + + switch (this._textAlign) { + case constants.CENTER: + x += maxWidth / 2; + break; + case constants.RIGHT: + x += maxWidth; + break; + } + + var baselineHacked = false; + if (typeof maxHeight !== 'undefined') { + switch (this._textBaseline) { + case constants.BOTTOM: + y += maxHeight - totalHeight; + break; + case constants.CENTER: + y += (maxHeight - totalHeight) / 2; + break; + case constants.BASELINE: + baselineHacked = true; + this._textBaseline = constants.TOP; + break; + } + + // remember the max-allowed y-position for any line (fix to #928) + finalMaxHeight = y + maxHeight - p.textAscent(); + } + + for (ii = 0; ii < cars.length; ii++) { + line = ''; + words = cars[ii].split(' '); + for (n = 0; n < words.length; n++) { + testLine = line + words[n] + ' '; + testWidth = this.textWidth(testLine); + if (testWidth > maxWidth && line.length > 0) { + this._renderText(p, line, x, y, finalMaxHeight); + line = words[n] + ' '; + y += p.textLeading(); + } else { + line = testLine; + } + } + + this._renderText(p, line, x, y, finalMaxHeight); + y += p.textLeading(); + + if (baselineHacked) { + this._textBaseline = constants.BASELINE; + } + } + } else { + // Offset to account for vertically centering multiple lines of text - no + // need to adjust anything for vertical align top or baseline + var offset = 0, + vAlign = p.textAlign().vertical; + if (vAlign === constants.CENTER) { + offset = (cars.length - 1) * p.textLeading() / 2; + } else if (vAlign === constants.BOTTOM) { + offset = (cars.length - 1) * p.textLeading(); + } + + for (jj = 0; jj < cars.length; jj++) { + this._renderText(p, cars[jj], x, y - offset, finalMaxHeight); + y += p.textLeading(); + } + } + + return p; + }; + + p5.Renderer.prototype._applyDefaults = function() { + return this; + }; + + /** + * Helper fxn to check font type (system or otf) + */ + p5.Renderer.prototype._isOpenType = function(f) { + f = f || this._textFont; + return _typeof(f) === 'object' && f.font && f.font.supported; + }; + + p5.Renderer.prototype._updateTextMetrics = function() { + if (this._isOpenType()) { + this._setProperty('_textAscent', this._textFont._textAscent()); + this._setProperty('_textDescent', this._textFont._textDescent()); + return this; + } + + // Adapted from http://stackoverflow.com/a/25355178 + var text = document.createElement('span'); + text.style.fontFamily = this._textFont; + text.style.fontSize = this._textSize + 'px'; + text.innerHTML = 'ABCjgq|'; + + var block = document.createElement('div'); + block.style.display = 'inline-block'; + block.style.width = '1px'; + block.style.height = '0px'; + + var container = document.createElement('div'); + container.appendChild(text); + container.appendChild(block); + + container.style.height = '0px'; + container.style.overflow = 'hidden'; + document.body.appendChild(container); + + block.style.verticalAlign = 'baseline'; + var blockOffset = calculateOffset(block); + var textOffset = calculateOffset(text); + var ascent = blockOffset[1] - textOffset[1]; + + block.style.verticalAlign = 'bottom'; + blockOffset = calculateOffset(block); + textOffset = calculateOffset(text); + var height = blockOffset[1] - textOffset[1]; + var descent = height - ascent; + + document.body.removeChild(container); + + this._setProperty('_textAscent', ascent); + this._setProperty('_textDescent', descent); + + return this; + }; + + /** + * Helper fxn to measure ascent and descent. + * Adapted from http://stackoverflow.com/a/25355178 + */ + function calculateOffset(object) { + var currentLeft = 0, + currentTop = 0; + if (object.offsetParent) { + do { + currentLeft += object.offsetLeft; + currentTop += object.offsetTop; + } while ((object = object.offsetParent)); + } else { + currentLeft += object.offsetLeft; + currentTop += object.offsetTop; + } + return [currentLeft, currentTop]; + } + + module.exports = p5.Renderer; + }, + { '../core/constants': 18, './main': 24 } + ], + 28: [ + function(_dereq_, module, exports) { + 'use strict'; + + var p5 = _dereq_('./main'); + var constants = _dereq_('./constants'); + var filters = _dereq_('../image/filters'); + + _dereq_('./p5.Renderer'); + + /** + * p5.Renderer2D + * The 2D graphics canvas renderer class. + * extends p5.Renderer + */ + var styleEmpty = 'rgba(0,0,0,0)'; + // var alphaThreshold = 0.00125; // minimum visible + + p5.Renderer2D = function(elt, pInst, isMainCanvas) { + p5.Renderer.call(this, elt, pInst, isMainCanvas); + this.drawingContext = this.canvas.getContext('2d'); + this._pInst._setProperty('drawingContext', this.drawingContext); + return this; + }; + + p5.Renderer2D.prototype = Object.create(p5.Renderer.prototype); + + p5.Renderer2D.prototype._applyDefaults = function() { + this._cachedFillStyle = this._cachedStrokeStyle = undefined; + this._setFill(constants._DEFAULT_FILL); + this._setStroke(constants._DEFAULT_STROKE); + this.drawingContext.lineCap = constants.ROUND; + this.drawingContext.font = 'normal 12px sans-serif'; + }; + + p5.Renderer2D.prototype.resize = function(w, h) { + p5.Renderer.prototype.resize.call(this, w, h); + this.drawingContext.scale(this._pInst._pixelDensity, this._pInst._pixelDensity); + }; + + ////////////////////////////////////////////// + // COLOR | Setting + ////////////////////////////////////////////// + + p5.Renderer2D.prototype.background = function() { + this.drawingContext.save(); + this.resetMatrix(); + + if (arguments[0] instanceof p5.Image) { + this._pInst.image(arguments[0], 0, 0, this.width, this.height); + } else { + var curFill = this._getFill(); + // create background rect + var color = this._pInst.color.apply(this._pInst, arguments); + var newFill = color.toString(); + this._setFill(newFill); + this.drawingContext.fillRect(0, 0, this.width, this.height); + // reset fill + this._setFill(curFill); + } + this.drawingContext.restore(); + + this._pixelsState._pixelsDirty = true; + }; + + p5.Renderer2D.prototype.clear = function() { + this.drawingContext.save(); + this.resetMatrix(); + this.drawingContext.clearRect(0, 0, this.width, this.height); + this.drawingContext.restore(); + + this._pixelsState._pixelsDirty = true; + }; + + p5.Renderer2D.prototype.fill = function() { + var color = this._pInst.color.apply(this._pInst, arguments); + this._setFill(color.toString()); + }; + + p5.Renderer2D.prototype.stroke = function() { + var color = this._pInst.color.apply(this._pInst, arguments); + this._setStroke(color.toString()); + }; + + ////////////////////////////////////////////// + // IMAGE | Loading & Displaying + ////////////////////////////////////////////// + + p5.Renderer2D.prototype.image = function( + img, + sx, + sy, + sWidth, + sHeight, + dx, + dy, + dWidth, + dHeight + ) { + var cnv; + try { + if (this._tint) { + if (p5.MediaElement && img instanceof p5.MediaElement) { + img.loadPixels(); + } + if (img.canvas) { + cnv = this._getTintedImageCanvas(img); + } + } + if (!cnv) { + cnv = img.canvas || img.elt; + } + var s = 1; + if (img.width && img.width > 0) { + s = cnv.width / img.width; + } + this.drawingContext.drawImage( + cnv, + s * sx, + s * sy, + s * sWidth, + s * sHeight, + dx, + dy, + dWidth, + dHeight + ); + } catch (e) { + if (e.name !== 'NS_ERROR_NOT_AVAILABLE') { + throw e; + } + } + + this._pixelsState._pixelsDirty = true; + }; + + p5.Renderer2D.prototype._getTintedImageCanvas = function(img) { + if (!img.canvas) { + return img; + } + var pixels = filters._toPixels(img.canvas); + var tmpCanvas = document.createElement('canvas'); + tmpCanvas.width = img.canvas.width; + tmpCanvas.height = img.canvas.height; + var tmpCtx = tmpCanvas.getContext('2d'); + var id = tmpCtx.createImageData(img.canvas.width, img.canvas.height); + var newPixels = id.data; + for (var i = 0; i < pixels.length; i += 4) { + var r = pixels[i]; + var g = pixels[i + 1]; + var b = pixels[i + 2]; + var a = pixels[i + 3]; + newPixels[i] = r * this._tint[0] / 255; + newPixels[i + 1] = g * this._tint[1] / 255; + newPixels[i + 2] = b * this._tint[2] / 255; + newPixels[i + 3] = a * this._tint[3] / 255; + } + tmpCtx.putImageData(id, 0, 0); + return tmpCanvas; + }; + + ////////////////////////////////////////////// + // IMAGE | Pixels + ////////////////////////////////////////////// + + p5.Renderer2D.prototype.blendMode = function(mode) { + if (mode === constants.SUBTRACT) { + console.warn('blendMode(SUBTRACT) only works in WEBGL mode.'); + } else if ( + mode === constants.BLEND || + mode === constants.DARKEST || + mode === constants.LIGHTEST || + mode === constants.DIFFERENCE || + mode === constants.MULTIPLY || + mode === constants.EXCLUSION || + mode === constants.SCREEN || + mode === constants.REPLACE || + mode === constants.OVERLAY || + mode === constants.HARD_LIGHT || + mode === constants.SOFT_LIGHT || + mode === constants.DODGE || + mode === constants.BURN || + mode === constants.ADD + ) { + this.drawingContext.globalCompositeOperation = mode; + } else { + throw new Error('Mode ' + mode + ' not recognized.'); + } + }; + + p5.Renderer2D.prototype.blend = function() { + var currBlend = this.drawingContext.globalCompositeOperation; + var blendMode = arguments[arguments.length - 1]; + + var copyArgs = Array.prototype.slice.call(arguments, 0, arguments.length - 1); + + this.drawingContext.globalCompositeOperation = blendMode; + if (this._pInst) { + this._pInst.copy.apply(this._pInst, copyArgs); + } else { + this.copy.apply(this, copyArgs); + } + this.drawingContext.globalCompositeOperation = currBlend; + }; + + p5.Renderer2D.prototype.copy = function() { + var srcImage, sx, sy, sw, sh, dx, dy, dw, dh; + if (arguments.length === 9) { + srcImage = arguments[0]; + sx = arguments[1]; + sy = arguments[2]; + sw = arguments[3]; + sh = arguments[4]; + dx = arguments[5]; + dy = arguments[6]; + dw = arguments[7]; + dh = arguments[8]; + } else if (arguments.length === 8) { + srcImage = this._pInst; + sx = arguments[0]; + sy = arguments[1]; + sw = arguments[2]; + sh = arguments[3]; + dx = arguments[4]; + dy = arguments[5]; + dw = arguments[6]; + dh = arguments[7]; + } else { + throw new Error('Signature not supported'); + } + p5.Renderer2D._copyHelper(this, srcImage, sx, sy, sw, sh, dx, dy, dw, dh); + + this._pixelsState._pixelsDirty = true; + }; + + p5.Renderer2D._copyHelper = function( + dstImage, + srcImage, + sx, + sy, + sw, + sh, + dx, + dy, + dw, + dh + ) { + srcImage.loadPixels(); + var s = srcImage.canvas.width / srcImage.width; + dstImage.drawingContext.drawImage( + srcImage.canvas, + s * sx, + s * sy, + s * sw, + s * sh, + dx, + dy, + dw, + dh + ); + }; + + // p5.Renderer2D.prototype.get = p5.Renderer.prototype.get; + // .get() is not overridden + + // x,y are canvas-relative (pre-scaled by _pixelDensity) + p5.Renderer2D.prototype._getPixel = function(x, y) { + var pixelsState = this._pixelsState; + var imageData, index; + if (pixelsState._pixelsDirty) { + imageData = this.drawingContext.getImageData(x, y, 1, 1).data; + index = 0; + } else { + imageData = pixelsState.pixels; + index = (Math.floor(x) + Math.floor(y) * this.canvas.width) * 4; + } + return [ + imageData[index + 0], + imageData[index + 1], + imageData[index + 2], + imageData[index + 3] + ]; + }; + + p5.Renderer2D.prototype.loadPixels = function() { + var pixelsState = this._pixelsState; // if called by p5.Image + if (!pixelsState._pixelsDirty) return; + pixelsState._pixelsDirty = false; + + var pd = pixelsState._pixelDensity; + var w = this.width * pd; + var h = this.height * pd; + var imageData = this.drawingContext.getImageData(0, 0, w, h); + // @todo this should actually set pixels per object, so diff buffers can + // have diff pixel arrays. + pixelsState._setProperty('imageData', imageData); + pixelsState._setProperty('pixels', imageData.data); + }; + + p5.Renderer2D.prototype.set = function(x, y, imgOrCol) { + // round down to get integer numbers + x = Math.floor(x); + y = Math.floor(y); + var pixelsState = this._pixelsState; + if (imgOrCol instanceof p5.Image) { + this.drawingContext.save(); + this.drawingContext.setTransform(1, 0, 0, 1, 0, 0); + this.drawingContext.scale( + pixelsState._pixelDensity, + pixelsState._pixelDensity + ); + + this.drawingContext.drawImage(imgOrCol.canvas, x, y); + this.drawingContext.restore(); + pixelsState._pixelsDirty = true; + } else { + var r = 0, + g = 0, + b = 0, + a = 0; + var idx = + 4 * + (y * pixelsState._pixelDensity * (this.width * pixelsState._pixelDensity) + + x * pixelsState._pixelDensity); + if (!pixelsState.imageData || pixelsState._pixelsDirty) { + pixelsState.loadPixels.call(pixelsState); + } + if (typeof imgOrCol === 'number') { + if (idx < pixelsState.pixels.length) { + r = imgOrCol; + g = imgOrCol; + b = imgOrCol; + a = 255; + //this.updatePixels.call(this); + } + } else if (imgOrCol instanceof Array) { + if (imgOrCol.length < 4) { + throw new Error('pixel array must be of the form [R, G, B, A]'); + } + if (idx < pixelsState.pixels.length) { + r = imgOrCol[0]; + g = imgOrCol[1]; + b = imgOrCol[2]; + a = imgOrCol[3]; + //this.updatePixels.call(this); + } + } else if (imgOrCol instanceof p5.Color) { + if (idx < pixelsState.pixels.length) { + r = imgOrCol.levels[0]; + g = imgOrCol.levels[1]; + b = imgOrCol.levels[2]; + a = imgOrCol.levels[3]; + //this.updatePixels.call(this); + } + } + // loop over pixelDensity * pixelDensity + for (var i = 0; i < pixelsState._pixelDensity; i++) { + for (var j = 0; j < pixelsState._pixelDensity; j++) { + // loop over + idx = + 4 * + ((y * pixelsState._pixelDensity + j) * + this.width * + pixelsState._pixelDensity + + (x * pixelsState._pixelDensity + i)); + pixelsState.pixels[idx] = r; + pixelsState.pixels[idx + 1] = g; + pixelsState.pixels[idx + 2] = b; + pixelsState.pixels[idx + 3] = a; + } + } + } + }; + + p5.Renderer2D.prototype.updatePixels = function(x, y, w, h) { + var pixelsState = this._pixelsState; + var pd = pixelsState._pixelDensity; + if (x === undefined && y === undefined && w === undefined && h === undefined) { + x = 0; + y = 0; + w = this.width; + h = this.height; + } + x *= pd; + y *= pd; + w *= pd; + h *= pd; + + this.drawingContext.putImageData(pixelsState.imageData, x, y, 0, 0, w, h); + + if (x !== 0 || y !== 0 || w !== this.width || h !== this.height) { + pixelsState._pixelsDirty = true; + } + }; + + ////////////////////////////////////////////// + // SHAPE | 2D Primitives + ////////////////////////////////////////////// + + /** + * Generate a cubic Bezier representing an arc on the unit circle of total + * angle `size` radians, beginning `start` radians above the x-axis. Up to + * four of these curves are combined to make a full arc. + * + * See www.joecridge.me/bezier.pdf for an explanation of the method. + */ + p5.Renderer2D.prototype._acuteArcToBezier = function _acuteArcToBezier( + start, + size + ) { + // Evaluate constants. + var alpha = size / 2.0, + cos_alpha = Math.cos(alpha), + sin_alpha = Math.sin(alpha), + cot_alpha = 1.0 / Math.tan(alpha), + phi = start + alpha, // This is how far the arc needs to be rotated. + cos_phi = Math.cos(phi), + sin_phi = Math.sin(phi), + lambda = (4.0 - cos_alpha) / 3.0, + mu = sin_alpha + (cos_alpha - lambda) * cot_alpha; + + // Return rotated waypoints. + return { + ax: Math.cos(start).toFixed(7), + ay: Math.sin(start).toFixed(7), + bx: (lambda * cos_phi + mu * sin_phi).toFixed(7), + by: (lambda * sin_phi - mu * cos_phi).toFixed(7), + cx: (lambda * cos_phi - mu * sin_phi).toFixed(7), + cy: (lambda * sin_phi + mu * cos_phi).toFixed(7), + dx: Math.cos(start + size).toFixed(7), + dy: Math.sin(start + size).toFixed(7) + }; + }; + + /* + * This function requires that: + * + * 0 <= start < TWO_PI + * + * start <= stop < start + TWO_PI + */ + p5.Renderer2D.prototype.arc = function(x, y, w, h, start, stop, mode) { + var ctx = this.drawingContext; + var rx = w / 2.0; + var ry = h / 2.0; + var epsilon = 0.00001; // Smallest visible angle on displays up to 4K. + var arcToDraw = 0; + var curves = []; + + x += rx; + y += ry; + + // Create curves + while (stop - start >= epsilon) { + arcToDraw = Math.min(stop - start, constants.HALF_PI); + curves.push(this._acuteArcToBezier(start, arcToDraw)); + start += arcToDraw; + } + + // Fill curves + if (this._doFill) { + ctx.beginPath(); + curves.forEach(function(curve, index) { + if (index === 0) { + ctx.moveTo(x + curve.ax * rx, y + curve.ay * ry); + } + // prettier-ignore + ctx.bezierCurveTo(x + curve.bx * rx, y + curve.by * ry, + x + curve.cx * rx, y + curve.cy * ry, + x + curve.dx * rx, y + curve.dy * ry); + }); + if (mode === constants.PIE || mode == null) { + ctx.lineTo(x, y); + } + ctx.closePath(); + ctx.fill(); + this._pixelsState._pixelsDirty = true; + } + + // Stroke curves + if (this._doStroke) { + ctx.beginPath(); + curves.forEach(function(curve, index) { + if (index === 0) { + ctx.moveTo(x + curve.ax * rx, y + curve.ay * ry); + } + // prettier-ignore + ctx.bezierCurveTo(x + curve.bx * rx, y + curve.by * ry, + x + curve.cx * rx, y + curve.cy * ry, + x + curve.dx * rx, y + curve.dy * ry); + }); + if (mode === constants.PIE) { + ctx.lineTo(x, y); + ctx.closePath(); + } else if (mode === constants.CHORD) { + ctx.closePath(); + } + ctx.stroke(); + this._pixelsState._pixelsDirty = true; + } + return this; + }; + + p5.Renderer2D.prototype.ellipse = function(args) { + var ctx = this.drawingContext; + var doFill = this._doFill, + doStroke = this._doStroke; + var x = args[0], + y = args[1], + w = args[2], + h = args[3]; + if (doFill && !doStroke) { + if (this._getFill() === styleEmpty) { + return this; + } + } else if (!doFill && doStroke) { + if (this._getStroke() === styleEmpty) { + return this; + } + } + var kappa = 0.5522847498, + ox = w / 2 * kappa, // control point offset horizontal + oy = h / 2 * kappa, // control point offset vertical + xe = x + w, // x-end + ye = y + h, // y-end + xm = x + w / 2, // x-middle + ym = y + h / 2; // y-middle + ctx.beginPath(); + ctx.moveTo(x, ym); + ctx.bezierCurveTo(x, ym - oy, xm - ox, y, xm, y); + ctx.bezierCurveTo(xm + ox, y, xe, ym - oy, xe, ym); + ctx.bezierCurveTo(xe, ym + oy, xm + ox, ye, xm, ye); + ctx.bezierCurveTo(xm - ox, ye, x, ym + oy, x, ym); + ctx.closePath(); + if (doFill) { + ctx.fill(); + this._pixelsState._pixelsDirty = true; + } + if (doStroke) { + ctx.stroke(); + this._pixelsState._pixelsDirty = true; + } + }; + + p5.Renderer2D.prototype.line = function(x1, y1, x2, y2) { + var ctx = this.drawingContext; + if (!this._doStroke) { + return this; + } else if (this._getStroke() === styleEmpty) { + return this; + } + ctx.beginPath(); + ctx.moveTo(x1, y1); + ctx.lineTo(x2, y2); + ctx.stroke(); + this._pixelsState._pixelsDirty = true; + return this; + }; + + p5.Renderer2D.prototype.point = function(x, y) { + var ctx = this.drawingContext; + if (!this._doStroke) { + return this; + } else if (this._getStroke() === styleEmpty) { + return this; + } + var s = this._getStroke(); + var f = this._getFill(); + x = Math.round(x); + y = Math.round(y); + // swapping fill color to stroke and back after for correct point rendering + this._setFill(s); + if (ctx.lineWidth > 1) { + ctx.beginPath(); + ctx.arc(x, y, ctx.lineWidth / 2, 0, constants.TWO_PI, false); + ctx.fill(); + } else { + ctx.fillRect(x, y, 1, 1); + } + this._setFill(f); + this._pixelsState._pixelsDirty = true; + }; + + p5.Renderer2D.prototype.quad = function(x1, y1, x2, y2, x3, y3, x4, y4) { + var ctx = this.drawingContext; + var doFill = this._doFill, + doStroke = this._doStroke; + if (doFill && !doStroke) { + if (this._getFill() === styleEmpty) { + return this; + } + } else if (!doFill && doStroke) { + if (this._getStroke() === styleEmpty) { + return this; + } + } + ctx.beginPath(); + ctx.moveTo(x1, y1); + ctx.lineTo(x2, y2); + ctx.lineTo(x3, y3); + ctx.lineTo(x4, y4); + ctx.closePath(); + if (doFill) { + ctx.fill(); + } + if (doStroke) { + ctx.stroke(); + } + this._pixelsState._pixelsDirty = true; + return this; + }; + + p5.Renderer2D.prototype.rect = function(args) { + var x = args[0], + y = args[1], + w = args[2], + h = args[3], + tl = args[4], + tr = args[5], + br = args[6], + bl = args[7]; + var ctx = this.drawingContext; + var doFill = this._doFill, + doStroke = this._doStroke; + if (doFill && !doStroke) { + if (this._getFill() === styleEmpty) { + return this; + } + } else if (!doFill && doStroke) { + if (this._getStroke() === styleEmpty) { + return this; + } + } + ctx.beginPath(); + + if (typeof tl === 'undefined') { + // No rounded corners + ctx.rect(x, y, w, h); + } else { + // At least one rounded corner + // Set defaults when not specified + if (typeof tr === 'undefined') { + tr = tl; + } + if (typeof br === 'undefined') { + br = tr; + } + if (typeof bl === 'undefined') { + bl = br; + } + + var hw = w / 2; + var hh = h / 2; + + // Clip radii + if (w < 2 * tl) { + tl = hw; + } + if (h < 2 * tl) { + tl = hh; + } + if (w < 2 * tr) { + tr = hw; + } + if (h < 2 * tr) { + tr = hh; + } + if (w < 2 * br) { + br = hw; + } + if (h < 2 * br) { + br = hh; + } + if (w < 2 * bl) { + bl = hw; + } + if (h < 2 * bl) { + bl = hh; + } + + // Draw shape + ctx.beginPath(); + ctx.moveTo(x + tl, y); + ctx.arcTo(x + w, y, x + w, y + h, tr); + ctx.arcTo(x + w, y + h, x, y + h, br); + ctx.arcTo(x, y + h, x, y, bl); + ctx.arcTo(x, y, x + w, y, tl); + ctx.closePath(); + } + if (this._doFill) { + ctx.fill(); + } + if (this._doStroke) { + ctx.stroke(); + } + this._pixelsState._pixelsDirty = true; + return this; + }; + + p5.Renderer2D.prototype.triangle = function(args) { + var ctx = this.drawingContext; + var doFill = this._doFill, + doStroke = this._doStroke; + var x1 = args[0], + y1 = args[1]; + var x2 = args[2], + y2 = args[3]; + var x3 = args[4], + y3 = args[5]; + if (doFill && !doStroke) { + if (this._getFill() === styleEmpty) { + return this; + } + } else if (!doFill && doStroke) { + if (this._getStroke() === styleEmpty) { + return this; + } + } + ctx.beginPath(); + ctx.moveTo(x1, y1); + ctx.lineTo(x2, y2); + ctx.lineTo(x3, y3); + ctx.closePath(); + if (doFill) { + ctx.fill(); + this._pixelsState._pixelsDirty = true; + } + if (doStroke) { + ctx.stroke(); + this._pixelsState._pixelsDirty = true; + } + }; + + p5.Renderer2D.prototype.endShape = function( + mode, + vertices, + isCurve, + isBezier, + isQuadratic, + isContour, + shapeKind + ) { + if (vertices.length === 0) { + return this; + } + if (!this._doStroke && !this._doFill) { + return this; + } + var closeShape = mode === constants.CLOSE; + var v; + if (closeShape && !isContour) { + vertices.push(vertices[0]); + } + var i, j; + var numVerts = vertices.length; + if (isCurve && (shapeKind === constants.POLYGON || shapeKind === null)) { + if (numVerts > 3) { + var b = [], + s = 1 - this._curveTightness; + this.drawingContext.beginPath(); + this.drawingContext.moveTo(vertices[1][0], vertices[1][1]); + for (i = 1; i + 2 < numVerts; i++) { + v = vertices[i]; + b[0] = [v[0], v[1]]; + b[1] = [ + v[0] + (s * vertices[i + 1][0] - s * vertices[i - 1][0]) / 6, + v[1] + (s * vertices[i + 1][1] - s * vertices[i - 1][1]) / 6 + ]; + + b[2] = [ + vertices[i + 1][0] + (s * vertices[i][0] - s * vertices[i + 2][0]) / 6, + vertices[i + 1][1] + (s * vertices[i][1] - s * vertices[i + 2][1]) / 6 + ]; + + b[3] = [vertices[i + 1][0], vertices[i + 1][1]]; + this.drawingContext.bezierCurveTo( + b[1][0], + b[1][1], + b[2][0], + b[2][1], + b[3][0], + b[3][1] + ); + } + if (closeShape) { + this.drawingContext.lineTo(vertices[i + 1][0], vertices[i + 1][1]); + } + this._doFillStrokeClose(closeShape); + } + } else if ( + isBezier && + (shapeKind === constants.POLYGON || shapeKind === null) + ) { + this.drawingContext.beginPath(); + for (i = 0; i < numVerts; i++) { + if (vertices[i].isVert) { + if (vertices[i].moveTo) { + this.drawingContext.moveTo(vertices[i][0], vertices[i][1]); + } else { + this.drawingContext.lineTo(vertices[i][0], vertices[i][1]); + } + } else { + this.drawingContext.bezierCurveTo( + vertices[i][0], + vertices[i][1], + vertices[i][2], + vertices[i][3], + vertices[i][4], + vertices[i][5] + ); + } + } + this._doFillStrokeClose(closeShape); + } else if ( + isQuadratic && + (shapeKind === constants.POLYGON || shapeKind === null) + ) { + this.drawingContext.beginPath(); + for (i = 0; i < numVerts; i++) { + if (vertices[i].isVert) { + if (vertices[i].moveTo) { + this.drawingContext.moveTo(vertices[i][0], vertices[i][1]); + } else { + this.drawingContext.lineTo(vertices[i][0], vertices[i][1]); + } + } else { + this.drawingContext.quadraticCurveTo( + vertices[i][0], + vertices[i][1], + vertices[i][2], + vertices[i][3] + ); + } + } + this._doFillStrokeClose(closeShape); + } else { + if (shapeKind === constants.POINTS) { + for (i = 0; i < numVerts; i++) { + v = vertices[i]; + if (this._doStroke) { + this._pInst.stroke(v[6]); + } + this._pInst.point(v[0], v[1]); + } + } else if (shapeKind === constants.LINES) { + for (i = 0; i + 1 < numVerts; i += 2) { + v = vertices[i]; + if (this._doStroke) { + this._pInst.stroke(vertices[i + 1][6]); + } + this._pInst.line(v[0], v[1], vertices[i + 1][0], vertices[i + 1][1]); + } + } else if (shapeKind === constants.TRIANGLES) { + for (i = 0; i + 2 < numVerts; i += 3) { + v = vertices[i]; + this.drawingContext.beginPath(); + this.drawingContext.moveTo(v[0], v[1]); + this.drawingContext.lineTo(vertices[i + 1][0], vertices[i + 1][1]); + this.drawingContext.lineTo(vertices[i + 2][0], vertices[i + 2][1]); + this.drawingContext.closePath(); + if (this._doFill) { + this._pInst.fill(vertices[i + 2][5]); + this.drawingContext.fill(); + } + if (this._doStroke) { + this._pInst.stroke(vertices[i + 2][6]); + this.drawingContext.stroke(); + } + } + } else if (shapeKind === constants.TRIANGLE_STRIP) { + for (i = 0; i + 1 < numVerts; i++) { + v = vertices[i]; + this.drawingContext.beginPath(); + this.drawingContext.moveTo(vertices[i + 1][0], vertices[i + 1][1]); + this.drawingContext.lineTo(v[0], v[1]); + if (this._doStroke) { + this._pInst.stroke(vertices[i + 1][6]); + } + if (this._doFill) { + this._pInst.fill(vertices[i + 1][5]); + } + if (i + 2 < numVerts) { + this.drawingContext.lineTo(vertices[i + 2][0], vertices[i + 2][1]); + if (this._doStroke) { + this._pInst.stroke(vertices[i + 2][6]); + } + if (this._doFill) { + this._pInst.fill(vertices[i + 2][5]); + } + } + this._doFillStrokeClose(closeShape); + } + } else if (shapeKind === constants.TRIANGLE_FAN) { + if (numVerts > 2) { + // For performance reasons, try to batch as many of the + // fill and stroke calls as possible. + this.drawingContext.beginPath(); + for (i = 2; i < numVerts; i++) { + v = vertices[i]; + this.drawingContext.moveTo(vertices[0][0], vertices[0][1]); + this.drawingContext.lineTo(vertices[i - 1][0], vertices[i - 1][1]); + this.drawingContext.lineTo(v[0], v[1]); + this.drawingContext.lineTo(vertices[0][0], vertices[0][1]); + // If the next colour is going to be different, stroke / fill now + if (i < numVerts - 1) { + if ( + (this._doFill && v[5] !== vertices[i + 1][5]) || + (this._doStroke && v[6] !== vertices[i + 1][6]) + ) { + if (this._doFill) { + this._pInst.fill(v[5]); + this.drawingContext.fill(); + this._pInst.fill(vertices[i + 1][5]); + } + if (this._doStroke) { + this._pInst.stroke(v[6]); + this.drawingContext.stroke(); + this._pInst.stroke(vertices[i + 1][6]); + } + this.drawingContext.closePath(); + this.drawingContext.beginPath(); // Begin the next one + } + } + } + this._doFillStrokeClose(closeShape); + } + } else if (shapeKind === constants.QUADS) { + for (i = 0; i + 3 < numVerts; i += 4) { + v = vertices[i]; + this.drawingContext.beginPath(); + this.drawingContext.moveTo(v[0], v[1]); + for (j = 1; j < 4; j++) { + this.drawingContext.lineTo(vertices[i + j][0], vertices[i + j][1]); + } + this.drawingContext.lineTo(v[0], v[1]); + if (this._doFill) { + this._pInst.fill(vertices[i + 3][5]); + } + if (this._doStroke) { + this._pInst.stroke(vertices[i + 3][6]); + } + this._doFillStrokeClose(closeShape); + } + } else if (shapeKind === constants.QUAD_STRIP) { + if (numVerts > 3) { + for (i = 0; i + 1 < numVerts; i += 2) { + v = vertices[i]; + this.drawingContext.beginPath(); + if (i + 3 < numVerts) { + this.drawingContext.moveTo(vertices[i + 2][0], vertices[i + 2][1]); + this.drawingContext.lineTo(v[0], v[1]); + this.drawingContext.lineTo(vertices[i + 1][0], vertices[i + 1][1]); + this.drawingContext.lineTo(vertices[i + 3][0], vertices[i + 3][1]); + if (this._doFill) { + this._pInst.fill(vertices[i + 3][5]); + } + if (this._doStroke) { + this._pInst.stroke(vertices[i + 3][6]); + } + } else { + this.drawingContext.moveTo(v[0], v[1]); + this.drawingContext.lineTo(vertices[i + 1][0], vertices[i + 1][1]); + } + this._doFillStrokeClose(closeShape); + } + } + } else { + this.drawingContext.beginPath(); + this.drawingContext.moveTo(vertices[0][0], vertices[0][1]); + for (i = 1; i < numVerts; i++) { + v = vertices[i]; + if (v.isVert) { + if (v.moveTo) { + this.drawingContext.moveTo(v[0], v[1]); + } else { + this.drawingContext.lineTo(v[0], v[1]); + } + } + } + this._doFillStrokeClose(closeShape); + } + } + isCurve = false; + isBezier = false; + isQuadratic = false; + isContour = false; + if (closeShape) { + vertices.pop(); + } + + this._pixelsState._pixelsDirty = true; + return this; + }; + ////////////////////////////////////////////// + // SHAPE | Attributes + ////////////////////////////////////////////// + + p5.Renderer2D.prototype.strokeCap = function(cap) { + if ( + cap === constants.ROUND || + cap === constants.SQUARE || + cap === constants.PROJECT + ) { + this.drawingContext.lineCap = cap; + } + return this; + }; + + p5.Renderer2D.prototype.strokeJoin = function(join) { + if ( + join === constants.ROUND || + join === constants.BEVEL || + join === constants.MITER + ) { + this.drawingContext.lineJoin = join; + } + return this; + }; + + p5.Renderer2D.prototype.strokeWeight = function(w) { + if (typeof w === 'undefined' || w === 0) { + // hack because lineWidth 0 doesn't work + this.drawingContext.lineWidth = 0.0001; + } else { + this.drawingContext.lineWidth = w; + } + return this; + }; + + p5.Renderer2D.prototype._getFill = function() { + if (!this._cachedFillStyle) { + this._cachedFillStyle = this.drawingContext.fillStyle; + } + return this._cachedFillStyle; + }; + + p5.Renderer2D.prototype._setFill = function(fillStyle) { + if (fillStyle !== this._cachedFillStyle) { + this.drawingContext.fillStyle = fillStyle; + this._cachedFillStyle = fillStyle; + } + }; + + p5.Renderer2D.prototype._getStroke = function() { + if (!this._cachedStrokeStyle) { + this._cachedStrokeStyle = this.drawingContext.strokeStyle; + } + return this._cachedStrokeStyle; + }; + + p5.Renderer2D.prototype._setStroke = function(strokeStyle) { + if (strokeStyle !== this._cachedStrokeStyle) { + this.drawingContext.strokeStyle = strokeStyle; + this._cachedStrokeStyle = strokeStyle; + } + }; + + ////////////////////////////////////////////// + // SHAPE | Curves + ////////////////////////////////////////////// + p5.Renderer2D.prototype.bezier = function(x1, y1, x2, y2, x3, y3, x4, y4) { + this._pInst.beginShape(); + this._pInst.vertex(x1, y1); + this._pInst.bezierVertex(x2, y2, x3, y3, x4, y4); + this._pInst.endShape(); + return this; + }; + + p5.Renderer2D.prototype.curve = function(x1, y1, x2, y2, x3, y3, x4, y4) { + this._pInst.beginShape(); + this._pInst.curveVertex(x1, y1); + this._pInst.curveVertex(x2, y2); + this._pInst.curveVertex(x3, y3); + this._pInst.curveVertex(x4, y4); + this._pInst.endShape(); + return this; + }; + + ////////////////////////////////////////////// + // SHAPE | Vertex + ////////////////////////////////////////////// + + p5.Renderer2D.prototype._doFillStrokeClose = function(closeShape) { + if (closeShape) { + this.drawingContext.closePath(); + } + if (this._doFill) { + this.drawingContext.fill(); + } + if (this._doStroke) { + this.drawingContext.stroke(); + } + + this._pixelsState._pixelsDirty = true; + }; + + ////////////////////////////////////////////// + // TRANSFORM + ////////////////////////////////////////////// + + p5.Renderer2D.prototype.applyMatrix = function(a, b, c, d, e, f) { + this.drawingContext.transform(a, b, c, d, e, f); + }; + + p5.Renderer2D.prototype.resetMatrix = function() { + this.drawingContext.setTransform(1, 0, 0, 1, 0, 0); + this.drawingContext.scale(this._pInst._pixelDensity, this._pInst._pixelDensity); + + return this; + }; + + p5.Renderer2D.prototype.rotate = function(rad) { + this.drawingContext.rotate(rad); + }; + + p5.Renderer2D.prototype.scale = function(x, y) { + this.drawingContext.scale(x, y); + return this; + }; + + p5.Renderer2D.prototype.translate = function(x, y) { + // support passing a vector as the 1st parameter + if (x instanceof p5.Vector) { + y = x.y; + x = x.x; + } + this.drawingContext.translate(x, y); + return this; + }; + + ////////////////////////////////////////////// + // TYPOGRAPHY + // + ////////////////////////////////////////////// + + p5.Renderer2D.prototype.text = function(str, x, y, maxWidth, maxHeight) { + var baselineHacked; + + // baselineHacked: (HACK) + // A temporary fix to conform to Processing's implementation + // of BASELINE vertical alignment in a bounding box + + if (typeof maxWidth !== 'undefined') { + if (this.drawingContext.textBaseline === constants.BASELINE) { + baselineHacked = true; + this.drawingContext.textBaseline = constants.TOP; + } + } + + var p = p5.Renderer.prototype.text.apply(this, arguments); + + if (baselineHacked) { + this.drawingContext.textBaseline = constants.BASELINE; + } + + return p; + }; + + p5.Renderer2D.prototype._renderText = function(p, line, x, y, maxY) { + if (y >= maxY) { + return; // don't render lines beyond our maxY position + } + + p.push(); // fix to #803 + + if (!this._isOpenType()) { + // a system/browser font + + // no stroke unless specified by user + if (this._doStroke && this._strokeSet) { + this.drawingContext.strokeText(line, x, y); + } + + if (this._doFill) { + // if fill hasn't been set by user, use default text fill + if (!this._fillSet) { + this._setFill(constants._DEFAULT_TEXT_FILL); + } + + this.drawingContext.fillText(line, x, y); + } + } else { + // an opentype font, let it handle the rendering + + this._textFont._renderPath(line, x, y, { renderer: this }); + } + + p.pop(); + + this._pixelsState._pixelsDirty = true; + return p; + }; + + p5.Renderer2D.prototype.textWidth = function(s) { + if (this._isOpenType()) { + return this._textFont._textWidth(s, this._textSize); + } + + return this.drawingContext.measureText(s).width; + }; + + p5.Renderer2D.prototype._applyTextProperties = function() { + var font, + p = this._pInst; + + this._setProperty('_textAscent', null); + this._setProperty('_textDescent', null); + + font = this._textFont; + + if (this._isOpenType()) { + font = this._textFont.font.familyName; + this._setProperty('_textStyle', this._textFont.font.styleName); + } + + this.drawingContext.font = + (this._textStyle || 'normal') + + ' ' + + (this._textSize || 12) + + 'px ' + + (font || 'sans-serif'); + + this.drawingContext.textAlign = this._textAlign; + if (this._textBaseline === constants.CENTER) { + this.drawingContext.textBaseline = constants._CTX_MIDDLE; + } else { + this.drawingContext.textBaseline = this._textBaseline; + } + + return p; + }; + + ////////////////////////////////////////////// + // STRUCTURE + ////////////////////////////////////////////// + + // a push() operation is in progress. + // the renderer should return a 'style' object that it wishes to + // store on the push stack. + // derived renderers should call the base class' push() method + // to fetch the base style object. + p5.Renderer2D.prototype.push = function() { + this.drawingContext.save(); + + // get the base renderer style + return p5.Renderer.prototype.push.apply(this); + }; + + // a pop() operation is in progress + // the renderer is passed the 'style' object that it returned + // from its push() method. + // derived renderers should pass this object to their base + // class' pop method + p5.Renderer2D.prototype.pop = function(style) { + this.drawingContext.restore(); + // Re-cache the fill / stroke state + this._cachedFillStyle = this.drawingContext.fillStyle; + this._cachedStrokeStyle = this.drawingContext.strokeStyle; + + p5.Renderer.prototype.pop.call(this, style); + }; + + module.exports = p5.Renderer2D; + }, + { '../image/filters': 43, './constants': 18, './main': 24, './p5.Renderer': 27 } + ], + 29: [ + function(_dereq_, module, exports) { + /** + * @module Rendering + * @submodule Rendering + * @for p5 + */ + + 'use strict'; + function _typeof(obj) { + if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && + typeof Symbol === 'function' && + obj.constructor === Symbol && + obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }; + } + return _typeof(obj); + } + + var p5 = _dereq_('./main'); + var constants = _dereq_('./constants'); + _dereq_('./p5.Graphics'); + _dereq_('./p5.Renderer2D'); + _dereq_('../webgl/p5.RendererGL'); + var defaultId = 'defaultCanvas0'; // this gets set again in createCanvas + var defaultClass = 'p5Canvas'; + + /** + * Creates a canvas element in the document, and sets the dimensions of it + * in pixels. This method should be called only once at the start of setup. + * Calling createCanvas more than once in a sketch will result in very + * unpredictable behavior. If you want more than one drawing canvas + * you could use createGraphics (hidden by default but it can be shown). + *

+ * The system variables width and height are set by the parameters passed + * to this function. If createCanvas() is not used, the window will be + * given a default size of 100x100 pixels. + *

+ * For more ways to position the canvas, see the + * + * positioning the canvas wiki page. + * + * @method createCanvas + * @param {Number} w width of the canvas + * @param {Number} h height of the canvas + * @param {Constant} [renderer] either P2D or WEBGL + * @return {p5.Renderer} + * @example + *
+ * + * function setup() { + * createCanvas(100, 50); + * background(153); + * line(0, 0, width, height); + * } + * + *
+ * + * @alt + * Black line extending from top-left of canvas to bottom right. + * + */ + + p5.prototype.createCanvas = function(w, h, renderer) { + p5._validateParameters('createCanvas', arguments); + //optional: renderer, otherwise defaults to p2d + var r = renderer || constants.P2D; + var c; + + if (r === constants.WEBGL) { + c = document.getElementById(defaultId); + if (c) { + //if defaultCanvas already exists + c.parentNode.removeChild(c); //replace the existing defaultCanvas + var thisRenderer = this._renderer; + this._elements = this._elements.filter(function(e) { + return e !== thisRenderer; + }); + } + c = document.createElement('canvas'); + c.id = defaultId; + c.classList.add(defaultClass); + } else { + if (!this._defaultGraphicsCreated) { + c = document.createElement('canvas'); + var i = 0; + while (document.getElementById('defaultCanvas' + i)) { + i++; + } + defaultId = 'defaultCanvas' + i; + c.id = defaultId; + c.classList.add(defaultClass); + } else { + // resize the default canvas if new one is created + c = this.canvas; + } + } + + // set to invisible if still in setup (to prevent flashing with manipulate) + if (!this._setupDone) { + c.dataset.hidden = true; // tag to show later + c.style.visibility = 'hidden'; + } + + if (this._userNode) { + // user input node case + this._userNode.appendChild(c); + } else { + document.body.appendChild(c); + } + + // Init our graphics renderer + //webgl mode + if (r === constants.WEBGL) { + this._setProperty('_renderer', new p5.RendererGL(c, this, true)); + this._elements.push(this._renderer); + } else { + //P2D mode + if (!this._defaultGraphicsCreated) { + this._setProperty('_renderer', new p5.Renderer2D(c, this, true)); + this._defaultGraphicsCreated = true; + this._elements.push(this._renderer); + } + } + this._renderer.resize(w, h); + this._renderer._applyDefaults(); + return this._renderer; + }; + + /** + * Resizes the canvas to given width and height. The canvas will be cleared + * and draw will be called immediately, allowing the sketch to re-render itself + * in the resized canvas. + * @method resizeCanvas + * @param {Number} w width of the canvas + * @param {Number} h height of the canvas + * @param {Boolean} [noRedraw] don't redraw the canvas immediately + * @example + *
+ * function setup() { + * createCanvas(windowWidth, windowHeight); + * } + * + * function draw() { + * background(0, 100, 200); + * } + * + * function windowResized() { + * resizeCanvas(windowWidth, windowHeight); + * } + *
+ * + * @alt + * No image displayed. + * + */ + p5.prototype.resizeCanvas = function(w, h, noRedraw) { + p5._validateParameters('resizeCanvas', arguments); + if (this._renderer) { + // save canvas properties + var props = {}; + for (var key in this.drawingContext) { + var val = this.drawingContext[key]; + if (_typeof(val) !== 'object' && typeof val !== 'function') { + props[key] = val; + } + } + this._renderer.resize(w, h); + this.width = w; + this.height = h; + // reset canvas properties + for (var savedKey in props) { + try { + this.drawingContext[savedKey] = props[savedKey]; + } catch (err) { + // ignore read-only property errors + } + } + if (!noRedraw) { + this.redraw(); + } + } + }; + + /** + * Removes the default canvas for a p5 sketch that doesn't + * require a canvas + * @method noCanvas + * @example + *
+ * + * function setup() { + * noCanvas(); + * } + * + *
+ * + * @alt + * no image displayed + * + */ + p5.prototype.noCanvas = function() { + if (this.canvas) { + this.canvas.parentNode.removeChild(this.canvas); + } + }; + + /** + * Creates and returns a new p5.Renderer object. Use this class if you need + * to draw into an off-screen graphics buffer. The two parameters define the + * width and height in pixels. + * + * @method createGraphics + * @param {Number} w width of the offscreen graphics buffer + * @param {Number} h height of the offscreen graphics buffer + * @param {Constant} [renderer] either P2D or WEBGL + * undefined defaults to p2d + * @return {p5.Graphics} offscreen graphics buffer + * @example + *
+ * + * let pg; + * function setup() { + * createCanvas(100, 100); + * pg = createGraphics(100, 100); + * } + * function draw() { + * background(200); + * pg.background(100); + * pg.noStroke(); + * pg.ellipse(pg.width / 2, pg.height / 2, 50, 50); + * image(pg, 50, 50); + * image(pg, 0, 0, 50, 50); + * } + * + *
+ * + * @alt + * 4 grey squares alternating light and dark grey. White quarter circle mid-left. + * + */ + p5.prototype.createGraphics = function(w, h, renderer) { + p5._validateParameters('createGraphics', arguments); + return new p5.Graphics(w, h, renderer, this); + }; + + /** + * Blends the pixels in the display window according to the defined mode. + * There is a choice of the following modes to blend the source pixels (A) + * with the ones of pixels already in the display window (B): + *
    + *
  • BLEND - linear interpolation of colours: C = + * A\*factor + B. This is the default blending mode.
  • + *
  • ADD - sum of A and B
  • + *
  • DARKEST - only the darkest colour succeeds: C = + * min(A\*factor, B).
  • + *
  • LIGHTEST - only the lightest colour succeeds: C = + * max(A\*factor, B).
  • + *
  • DIFFERENCE - subtract colors from underlying image.
  • + *
  • EXCLUSION - similar to DIFFERENCE, but less + * extreme.
  • + *
  • MULTIPLY - multiply the colors, result will always be + * darker.
  • + *
  • SCREEN - opposite multiply, uses inverse values of the + * colors.
  • + *
  • REPLACE - the pixels entirely replace the others and + * don't utilize alpha (transparency) values.
  • + *
  • OVERLAY - mix of MULTIPLY and SCREEN + * . Multiplies dark values, and screens light values. (2D)
  • + *
  • HARD_LIGHT - SCREEN when greater than 50% + * gray, MULTIPLY when lower. (2D)
  • + *
  • SOFT_LIGHT - mix of DARKEST and + * LIGHTEST. Works like OVERLAY, but not as harsh. (2D) + *
  • + *
  • DODGE - lightens light tones and increases contrast, + * ignores darks. (2D)
  • + *
  • BURN - darker areas are applied, increasing contrast, + * ignores lights. (2D)
  • + *
  • SUBTRACT - remainder of A and B (3D)
  • + *
+ *

+ * (2D) indicates that this blend mode only works in the 2D renderer.
+ * (3D) indicates that this blend mode only works in the WEBGL renderer. + * + * + * @method blendMode + * @param {Constant} mode blend mode to set for canvas. + * either BLEND, DARKEST, LIGHTEST, DIFFERENCE, MULTIPLY, + * EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT, + * SOFT_LIGHT, DODGE, BURN, ADD, or SUBTRACT + * @example + *
+ * + * blendMode(LIGHTEST); + * strokeWeight(30); + * stroke(80, 150, 255); + * line(25, 25, 75, 75); + * stroke(255, 50, 50); + * line(75, 25, 25, 75); + * + *
+ *
+ * + * blendMode(MULTIPLY); + * strokeWeight(30); + * stroke(80, 150, 255); + * line(25, 25, 75, 75); + * stroke(255, 50, 50); + * line(75, 25, 25, 75); + * + *
+ * @alt + * translucent image thick red & blue diagonal rounded lines intersecting center + * Thick red & blue diagonal rounded lines intersecting center. dark at overlap + * + */ + p5.prototype.blendMode = function(mode) { + p5._validateParameters('blendMode', arguments); + if (mode === constants.NORMAL) { + // Warning added 3/26/19, can be deleted in future (1.0 release?) + console.warn( + 'NORMAL has been deprecated for use in blendMode. defaulting to BLEND instead.' + ); + + mode = constants.BLEND; + } + this._renderer.blendMode(mode); + }; + + module.exports = p5; + }, + { + '../webgl/p5.RendererGL': 75, + './constants': 18, + './main': 24, + './p5.Graphics': 26, + './p5.Renderer2D': 28 + } + ], + 30: [ + function(_dereq_, module, exports) { + /** + * @module Shape + * @submodule 2D Primitives + * @for p5 + * @requires core + * @requires constants + */ + + 'use strict'; + + var p5 = _dereq_('../main'); + var constants = _dereq_('../constants'); + var canvas = _dereq_('../helpers'); + _dereq_('../error_helpers'); + + /** + * This function does 3 things: + * + * 1. Bounds the desired start/stop angles for an arc (in radians) so that: + * + * 0 <= start < TWO_PI ; start <= stop < start + TWO_PI + * + * This means that the arc rendering functions don't have to be concerned + * with what happens if stop is smaller than start, or if the arc 'goes + * round more than once', etc.: they can just start at start and increase + * until stop and the correct arc will be drawn. + * + * 2. Optionally adjusts the angles within each quadrant to counter the naive + * scaling of the underlying ellipse up from the unit circle. Without + * this, the angles become arbitrary when width != height: 45 degrees + * might be drawn at 5 degrees on a 'wide' ellipse, or at 85 degrees on + * a 'tall' ellipse. + * + * 3. Flags up when start and stop correspond to the same place on the + * underlying ellipse. This is useful if you want to do something special + * there (like rendering a whole ellipse instead). + */ + p5.prototype._normalizeArcAngles = function( + start, + stop, + width, + height, + correctForScaling + ) { + var epsilon = 0.00001; // Smallest visible angle on displays up to 4K. + var separation; + + // The order of the steps is important here: each one builds upon the + // adjustments made in the steps that precede it. + + // Constrain both start and stop to [0,TWO_PI). + start = start - constants.TWO_PI * Math.floor(start / constants.TWO_PI); + stop = stop - constants.TWO_PI * Math.floor(stop / constants.TWO_PI); + + // Get the angular separation between the requested start and stop points. + // + // Technically this separation only matches what gets drawn if + // correctForScaling is enabled. We could add a more complicated calculation + // for when the scaling is uncorrected (in which case the drawn points could + // end up pushed together or pulled apart quite dramatically relative to what + // was requested), but it would make things more opaque for little practical + // benefit. + // + // (If you do disable correctForScaling and find that correspondToSamePoint + // is set too aggressively, the easiest thing to do is probably to just make + // epsilon smaller...) + separation = Math.min( + Math.abs(start - stop), + constants.TWO_PI - Math.abs(start - stop) + ); + + // Optionally adjust the angles to counter linear scaling. + if (correctForScaling) { + if (start <= constants.HALF_PI) { + start = Math.atan(width / height * Math.tan(start)); + } else if (start > constants.HALF_PI && start <= 3 * constants.HALF_PI) { + start = Math.atan(width / height * Math.tan(start)) + constants.PI; + } else { + start = Math.atan(width / height * Math.tan(start)) + constants.TWO_PI; + } + if (stop <= constants.HALF_PI) { + stop = Math.atan(width / height * Math.tan(stop)); + } else if (stop > constants.HALF_PI && stop <= 3 * constants.HALF_PI) { + stop = Math.atan(width / height * Math.tan(stop)) + constants.PI; + } else { + stop = Math.atan(width / height * Math.tan(stop)) + constants.TWO_PI; + } + } + + // Ensure that start <= stop < start + TWO_PI. + if (start > stop) { + stop += constants.TWO_PI; + } + + return { + start: start, + stop: stop, + correspondToSamePoint: separation < epsilon + }; + }; + + /** + * Draw an arc to the screen. If called with only x, y, w, h, start, and + * stop, the arc will be drawn and filled as an open pie segment. If a mode parameter is provided, the arc + * will be filled like an open semi-circle (OPEN) , a closed semi-circle (CHORD), or as a closed pie segment (PIE). The + * origin may be changed with the ellipseMode() function.

+ * The arc is always drawn clockwise from wherever start falls to wherever stop falls on the ellipse. + * Adding or subtracting TWO_PI to either angle does not change where they fall. + * If both start and stop fall at the same place, a full ellipse will be drawn. Be aware that the the + * y-axis increases in the downward direction therefore the values of PI is counter clockwise. + * @method arc + * @param {Number} x x-coordinate of the arc's ellipse + * @param {Number} y y-coordinate of the arc's ellipse + * @param {Number} w width of the arc's ellipse by default + * @param {Number} h height of the arc's ellipse by default + * @param {Number} start angle to start the arc, specified in radians + * @param {Number} stop angle to stop the arc, specified in radians + * @param {Constant} [mode] optional parameter to determine the way of drawing + * the arc. either CHORD, PIE or OPEN + * @param {Number} [detail] optional parameter for WebGL mode only. This is to + * specify the number of vertices that makes up the + * perimeter of the arc. Default value is 25. + * + * @chainable + * @example + *
+ * + * arc(50, 55, 50, 50, 0, HALF_PI); + * noFill(); + * arc(50, 55, 60, 60, HALF_PI, PI); + * arc(50, 55, 70, 70, PI, PI + QUARTER_PI); + * arc(50, 55, 80, 80, PI + QUARTER_PI, TWO_PI); + * + *
+ * + *
+ * + * arc(50, 50, 80, 80, 0, PI + QUARTER_PI); + * + *
+ * + *
+ * + * arc(50, 50, 80, 80, 0, PI + QUARTER_PI, OPEN); + * + *
+ * + *
+ * + * arc(50, 50, 80, 80, 0, PI + QUARTER_PI, CHORD); + * + *
+ * + *
+ * + * arc(50, 50, 80, 80, 0, PI + QUARTER_PI, PIE); + * + *
+ * + * @alt + *shattered outline of an ellipse with a quarter of a white circle bottom-right. + *white ellipse with top right quarter missing. + *white ellipse with black outline with top right missing. + *white ellipse with top right missing with black outline around shape. + *white ellipse with top right quarter missing with black outline around the shape. + * + */ + p5.prototype.arc = function(x, y, w, h, start, stop, mode, detail) { + p5._validateParameters('arc', arguments); + + // if the current stroke and fill settings wouldn't result in something + // visible, exit immediately + if (!this._renderer._doStroke && !this._renderer._doFill) { + return this; + } + + start = this._toRadians(start); + stop = this._toRadians(stop); + + // p5 supports negative width and heights for ellipses + w = Math.abs(w); + h = Math.abs(h); + + var vals = canvas.modeAdjust(x, y, w, h, this._renderer._ellipseMode); + var angles = this._normalizeArcAngles(start, stop, vals.w, vals.h, true); + + if (angles.correspondToSamePoint) { + // If the arc starts and ends at (near enough) the same place, we choose to + // draw an ellipse instead. This is preferable to faking an ellipse (by + // making stop ever-so-slightly less than start + TWO_PI) because the ends + // join up to each other rather than at a vertex at the centre (leaving + // an unwanted spike in the stroke/fill). + this._renderer.ellipse([vals.x, vals.y, vals.w, vals.h, detail]); + } else { + this._renderer.arc( + vals.x, + vals.y, + vals.w, + vals.h, + angles.start, // [0, TWO_PI) + angles.stop, // [start, start + TWO_PI) + mode, + detail + ); + } + + return this; + }; + + /** + * Draws an ellipse (oval) to the screen. An ellipse with equal width and + * height is a circle. By default, the first two parameters set the location, + * and the third and fourth parameters set the shape's width and height. If + * no height is specified, the value of width is used for both the width and + * height. If a negative height or width is specified, the absolute value is taken. + * The origin may be changed with the ellipseMode() function. + * + * @method ellipse + * @param {Number} x x-coordinate of the ellipse. + * @param {Number} y y-coordinate of the ellipse. + * @param {Number} w width of the ellipse. + * @param {Number} [h] height of the ellipse. + * @chainable + * @example + *
+ * + * ellipse(56, 46, 55, 55); + * + *
+ * + * @alt + *white ellipse with black outline in middle-right of canvas that is 55x55. + * + */ + /** + * @method ellipse + * @param {Number} x + * @param {Number} y + * @param {Number} w + * @param {Number} h + * @param {Integer} detail number of radial sectors to draw (for WebGL mode) + */ + p5.prototype.ellipse = function(x, y, w, h, detailX) { + p5._validateParameters('ellipse', arguments); + + // if the current stroke and fill settings wouldn't result in something + // visible, exit immediately + if (!this._renderer._doStroke && !this._renderer._doFill) { + return this; + } + + // p5 supports negative width and heights for rects + if (w < 0) { + w = Math.abs(w); + } + + if (typeof h === 'undefined') { + // Duplicate 3rd argument if only 3 given. + h = w; + } else if (h < 0) { + h = Math.abs(h); + } + + var vals = canvas.modeAdjust(x, y, w, h, this._renderer._ellipseMode); + this._renderer.ellipse([vals.x, vals.y, vals.w, vals.h, detailX]); + + return this; + }; + + /** + * Draws a circle to the screen. A circle is a simple closed shape. + * It is the set of all points in a plane that are at a given distance from a given point, the centre. + * This function is a special case of the ellipse() function, where the width and height of the ellipse are the same. + * Height and width of the ellipse correspond to the diameter of the circle. + * By default, the first two parameters set the location of the centre of the circle, the third sets the diameter of the circle. + * + * @method circle + * @param {Number} x x-coordinate of the centre of the circle. + * @param {Number} y y-coordinate of the centre of the circle. + * @param {Number} d diameter of the circle. + * @chainable + * @example + *
+ * + * // Draw a circle at location (30, 30) with a diameter of 20. + * circle(30, 30, 20); + * + *
+ * + * @alt + * white circle with black outline in mid of canvas that is 55x55. + */ + p5.prototype.circle = function() { + var args = Array.prototype.slice.call(arguments, 0, 2); + args.push(arguments[2]); + args.push(arguments[2]); + return this.ellipse.apply(this, args); + }; + + /** + * Draws a line (a direct path between two points) to the screen. The version + * of line() with four parameters draws the line in 2D. To color a line, use + * the stroke() function. A line cannot be filled, therefore the fill() + * function will not affect the color of a line. 2D lines are drawn with a + * width of one pixel by default, but this can be changed with the + * strokeWeight() function. + * + * @method line + * @param {Number} x1 the x-coordinate of the first point + * @param {Number} y1 the y-coordinate of the first point + * @param {Number} x2 the x-coordinate of the second point + * @param {Number} y2 the y-coordinate of the second point + * @chainable + * @example + *
+ * + * line(30, 20, 85, 75); + * + *
+ * + *
+ * + * line(30, 20, 85, 20); + * stroke(126); + * line(85, 20, 85, 75); + * stroke(255); + * line(85, 75, 30, 75); + * + *
+ * + * @alt + *line 78 pixels long running from mid-top to bottom-right of canvas. + *3 lines of various stroke sizes. Form top, bottom and right sides of a square. + * + */ + /** + * @method line + * @param {Number} x1 + * @param {Number} y1 + * @param {Number} z1 the z-coordinate of the first point + * @param {Number} x2 + * @param {Number} y2 + * @param {Number} z2 the z-coordinate of the second point + * @chainable + */ + p5.prototype.line = function() { + p5._validateParameters('line', arguments); + + if (this._renderer._doStroke) { + this._renderer.line.apply(this._renderer, arguments); + } + + return this; + }; + + /** + * Draws a point, a coordinate in space at the dimension of one pixel. + * The first parameter is the horizontal value for the point, the second + * value is the vertical value for the point. The color of the point is + * determined by the current stroke. + * + * @method point + * @param {Number} x the x-coordinate + * @param {Number} y the y-coordinate + * @param {Number} [z] the z-coordinate (for WebGL mode) + * @chainable + * @example + *
+ * + * point(30, 20); + * point(85, 20); + * point(85, 75); + * point(30, 75); + * + *
+ * + * @alt + *4 points centered in the middle-right of the canvas. + * + */ + p5.prototype.point = function() { + p5._validateParameters('point', arguments); + + if (this._renderer._doStroke) { + this._renderer.point.apply(this._renderer, arguments); + } + + return this; + }; + + /** + * Draw a quad. A quad is a quadrilateral, a four sided polygon. It is + * similar to a rectangle, but the angles between its edges are not + * constrained to ninety degrees. The first pair of parameters (x1,y1) + * sets the first vertex and the subsequent pairs should proceed + * clockwise or counter-clockwise around the defined shape. + * z-arguments only work when quad() is used in WEBGL mode. + * + * + * @method quad + * @param {Number} x1 the x-coordinate of the first point + * @param {Number} y1 the y-coordinate of the first point + * @param {Number} x2 the x-coordinate of the second point + * @param {Number} y2 the y-coordinate of the second point + * @param {Number} x3 the x-coordinate of the third point + * @param {Number} y3 the y-coordinate of the third point + * @param {Number} x4 the x-coordinate of the fourth point + * @param {Number} y4 the y-coordinate of the fourth point + * @chainable + * @example + *
+ * + * quad(38, 31, 86, 20, 69, 63, 30, 76); + * + *
+ * + * @alt + *irregular white quadrilateral shape with black outline mid-right of canvas. + * + */ + /** + * @method quad + * @param {Number} x1 + * @param {Number} y1 + * @param {Number} z1 the z-coordinate of the first point + * @param {Number} x2 + * @param {Number} y2 + * @param {Number} z2 the z-coordinate of the second point + * @param {Number} x3 + * @param {Number} y3 + * @param {Number} z3 the z-coordinate of the third point + * @param {Number} x4 + * @param {Number} y4 + * @param {Number} z4 the z-coordinate of the fourth point + * @chainable + */ + p5.prototype.quad = function() { + p5._validateParameters('quad', arguments); + + if (this._renderer._doStroke || this._renderer._doFill) { + if (this._renderer.isP3D && arguments.length !== 12) { + // if 3D and we weren't passed 12 args, assume Z is 0 + // prettier-ignore + this._renderer.quad.call( + this._renderer, + arguments[0], arguments[1], 0, + arguments[2], arguments[3], 0, + arguments[4], arguments[5], 0, + arguments[6], arguments[7], 0); + } else { + this._renderer.quad.apply(this._renderer, arguments); + } + } + + return this; + }; + + /** + * Draws a rectangle to the screen. A rectangle is a four-sided shape with + * every angle at ninety degrees. By default, the first two parameters set + * the location of the upper-left corner, the third sets the width, and the + * fourth sets the height. The way these parameters are interpreted, however, + * may be changed with the rectMode() function. + *

+ * The fifth, sixth, seventh and eighth parameters, if specified, + * determine corner radius for the top-left, top-right, lower-right and + * lower-left corners, respectively. An omitted corner radius parameter is set + * to the value of the previously specified radius value in the parameter list. + * + * @method rect + * @param {Number} x x-coordinate of the rectangle. + * @param {Number} y y-coordinate of the rectangle. + * @param {Number} w width of the rectangle. + * @param {Number} h height of the rectangle. + * @param {Number} [tl] optional radius of top-left corner. + * @param {Number} [tr] optional radius of top-right corner. + * @param {Number} [br] optional radius of bottom-right corner. + * @param {Number} [bl] optional radius of bottom-left corner. + * @chainable + * @example + *
+ * + * // Draw a rectangle at location (30, 20) with a width and height of 55. + * rect(30, 20, 55, 55); + * + *
+ * + *
+ * + * // Draw a rectangle with rounded corners, each having a radius of 20. + * rect(30, 20, 55, 55, 20); + * + *
+ * + *
+ * + * // Draw a rectangle with rounded corners having the following radii: + * // top-left = 20, top-right = 15, bottom-right = 10, bottom-left = 5. + * rect(30, 20, 55, 55, 20, 15, 10, 5); + * + *
+ * + * @alt + * 55x55 white rect with black outline in mid-right of canvas. + * 55x55 white rect with black outline and rounded edges in mid-right of canvas. + * 55x55 white rect with black outline and rounded edges of different radii. + */ + /** + * @method rect + * @param {Number} x + * @param {Number} y + * @param {Number} w + * @param {Number} h + * @param {Integer} [detailX] number of segments in the x-direction (for WebGL mode) + * @param {Integer} [detailY] number of segments in the y-direction (for WebGL mode) + * @chainable + */ + p5.prototype.rect = function() { + p5._validateParameters('rect', arguments); + + if (this._renderer._doStroke || this._renderer._doFill) { + var vals = canvas.modeAdjust( + arguments[0], + arguments[1], + arguments[2], + arguments[3], + this._renderer._rectMode + ); + + var args = [vals.x, vals.y, vals.w, vals.h]; + // append the additional arguments (either cornder radii, or + // segment details) to the argument list + for (var i = 4; i < arguments.length; i++) { + args[i] = arguments[i]; + } + this._renderer.rect(args); + } + + return this; + }; + + /** + * Draws a square to the screen. A square is a four-sided shape with + * every angle at ninety degrees, and equal side size. + * This function is a special case of the rect() function, where the width and height are the same, and the parameter is called "s" for side size. + * By default, the first two parameters set the location of the upper-left corner, the third sets the side size of the square. + * The way these parameters are interpreted, however, + * may be changed with the rectMode() function. + *

+ * The fourth, fifth, sixth and seventh parameters, if specified, + * determine corner radius for the top-left, top-right, lower-right and + * lower-left corners, respectively. An omitted corner radius parameter is set + * to the value of the previously specified radius value in the parameter list. + * + * @method square + * @param {Number} x x-coordinate of the square. + * @param {Number} y y-coordinate of the square. + * @param {Number} s side size of the square. + * @param {Number} [tl] optional radius of top-left corner. + * @param {Number} [tr] optional radius of top-right corner. + * @param {Number} [br] optional radius of bottom-right corner. + * @param {Number} [bl] optional radius of bottom-left corner. + * @chainable + * @example + *
+ * + * // Draw a square at location (30, 20) with a side size of 55. + * square(30, 20, 55); + * + *
+ * + *
+ * + * // Draw a square with rounded corners, each having a radius of 20. + * square(30, 20, 55, 20); + * + *
+ * + *
+ * + * // Draw a square with rounded corners having the following radii: + * // top-left = 20, top-right = 15, bottom-right = 10, bottom-left = 5. + * square(30, 20, 55, 20, 15, 10, 5); + * + *
+ * + * @alt + * 55x55 white square with black outline in mid-right of canvas. + * 55x55 white square with black outline and rounded edges in mid-right of canvas. + * 55x55 white square with black outline and rounded edges of different radii. + */ + p5.prototype.square = function(x, y, s, tl, tr, br, bl) { + return this.rect(x, y, s, s, tl, tr, br, bl); + }; + + /** + * A triangle is a plane created by connecting three points. The first two + * arguments specify the first point, the middle two arguments specify the + * second point, and the last two arguments specify the third point. + * + * @method triangle + * @param {Number} x1 x-coordinate of the first point + * @param {Number} y1 y-coordinate of the first point + * @param {Number} x2 x-coordinate of the second point + * @param {Number} y2 y-coordinate of the second point + * @param {Number} x3 x-coordinate of the third point + * @param {Number} y3 y-coordinate of the third point + * @chainable + * @example + *
+ * + * triangle(30, 75, 58, 20, 86, 75); + * + *
+ * + *@alt + * white triangle with black outline in mid-right of canvas. + * + */ + p5.prototype.triangle = function() { + p5._validateParameters('triangle', arguments); + + if (this._renderer._doStroke || this._renderer._doFill) { + this._renderer.triangle(arguments); + } + + return this; + }; + + module.exports = p5; + }, + { '../constants': 18, '../error_helpers': 20, '../helpers': 21, '../main': 24 } + ], + 31: [ + function(_dereq_, module, exports) { + /** + * @module Shape + * @submodule Attributes + * @for p5 + * @requires core + * @requires constants + */ + + 'use strict'; + + var p5 = _dereq_('../main'); + var constants = _dereq_('../constants'); + + /** + * Modifies the location from which ellipses are drawn by changing the way + * in which parameters given to ellipse() are interpreted. + *

+ * The default mode is ellipseMode(CENTER), which interprets the first two + * parameters of ellipse() as the shape's center point, while the third and + * fourth parameters are its width and height. + *

+ * ellipseMode(RADIUS) also uses the first two parameters of ellipse() as + * the shape's center point, but uses the third and fourth parameters to + * specify half of the shapes's width and height. + *

+ * ellipseMode(CORNER) interprets the first two parameters of ellipse() as + * the upper-left corner of the shape, while the third and fourth parameters + * are its width and height. + *

+ * ellipseMode(CORNERS) interprets the first two parameters of ellipse() as + * the location of one corner of the ellipse's bounding box, and the third + * and fourth parameters as the location of the opposite corner. + *

+ * The parameter must be written in ALL CAPS because Javascript is a + * case-sensitive language. + * + * @method ellipseMode + * @param {Constant} mode either CENTER, RADIUS, CORNER, or CORNERS + * @chainable + * @example + *
+ * + * ellipseMode(RADIUS); // Set ellipseMode to RADIUS + * fill(255); // Set fill to white + * ellipse(50, 50, 30, 30); // Draw white ellipse using RADIUS mode + * + * ellipseMode(CENTER); // Set ellipseMode to CENTER + * fill(100); // Set fill to gray + * ellipse(50, 50, 30, 30); // Draw gray ellipse using CENTER mode + * + *
+ * + *
+ * + * ellipseMode(CORNER); // Set ellipseMode is CORNER + * fill(255); // Set fill to white + * ellipse(25, 25, 50, 50); // Draw white ellipse using CORNER mode + * + * ellipseMode(CORNERS); // Set ellipseMode to CORNERS + * fill(100); // Set fill to gray + * ellipse(25, 25, 50, 50); // Draw gray ellipse using CORNERS mode + * + *
+ * + * @alt + * 60x60 white ellipse and 30x30 grey ellipse with black outlines at center. + * 60x60 white ellipse @center and 30x30 grey ellipse top-right, black outlines. + * + */ + p5.prototype.ellipseMode = function(m) { + p5._validateParameters('ellipseMode', arguments); + if ( + m === constants.CORNER || + m === constants.CORNERS || + m === constants.RADIUS || + m === constants.CENTER + ) { + this._renderer._ellipseMode = m; + } + return this; + }; + + /** + * Draws all geometry with jagged (aliased) edges. Note that smooth() is + * active by default in 2D mode, so it is necessary to call noSmooth() to disable + * smoothing of geometry, images, and fonts. In 3D mode, noSmooth() is enabled + * by default, so it is necessary to call smooth() if you would like + * smooth (antialiased) edges on your geometry. + * + * @method noSmooth + * @chainable + * @example + *
+ * + * background(0); + * noStroke(); + * smooth(); + * ellipse(30, 48, 36, 36); + * noSmooth(); + * ellipse(70, 48, 36, 36); + * + *
+ * + * @alt + * 2 pixelated 36x36 white ellipses to left & right of center, black background + * + */ + p5.prototype.noSmooth = function() { + this.setAttributes('antialias', false); + if ('imageSmoothingEnabled' in this.drawingContext) { + this.drawingContext.imageSmoothingEnabled = false; + } + return this; + }; + + /** + * Modifies the location from which rectangles are drawn by changing the way + * in which parameters given to rect() are interpreted. + *

+ * The default mode is rectMode(CORNER), which interprets the first two + * parameters of rect() as the upper-left corner of the shape, while the + * third and fourth parameters are its width and height. + *

+ * rectMode(CORNERS) interprets the first two parameters of rect() as the + * location of one corner, and the third and fourth parameters as the + * location of the opposite corner. + *

+ * rectMode(CENTER) interprets the first two parameters of rect() as the + * shape's center point, while the third and fourth parameters are its + * width and height. + *

+ * rectMode(RADIUS) also uses the first two parameters of rect() as the + * shape's center point, but uses the third and fourth parameters to specify + * half of the shapes's width and height. + *

+ * The parameter must be written in ALL CAPS because Javascript is a + * case-sensitive language. + * + * @method rectMode + * @param {Constant} mode either CORNER, CORNERS, CENTER, or RADIUS + * @chainable + * @example + *
+ * + * rectMode(CORNER); // Default rectMode is CORNER + * fill(255); // Set fill to white + * rect(25, 25, 50, 50); // Draw white rect using CORNER mode + * + * rectMode(CORNERS); // Set rectMode to CORNERS + * fill(100); // Set fill to gray + * rect(25, 25, 50, 50); // Draw gray rect using CORNERS mode + * + *
+ * + *
+ * + * rectMode(RADIUS); // Set rectMode to RADIUS + * fill(255); // Set fill to white + * rect(50, 50, 30, 30); // Draw white rect using RADIUS mode + * + * rectMode(CENTER); // Set rectMode to CENTER + * fill(100); // Set fill to gray + * rect(50, 50, 30, 30); // Draw gray rect using CENTER mode + * + *
+ * + * @alt + * 50x50 white rect at center and 25x25 grey rect in the top left of the other. + * 50x50 white rect at center and 25x25 grey rect in the center of the other. + * + */ + p5.prototype.rectMode = function(m) { + p5._validateParameters('rectMode', arguments); + if ( + m === constants.CORNER || + m === constants.CORNERS || + m === constants.RADIUS || + m === constants.CENTER + ) { + this._renderer._rectMode = m; + } + return this; + }; + + /** + * Draws all geometry with smooth (anti-aliased) edges. smooth() will also + * improve image quality of resized images. Note that smooth() is active by + * default in 2D mode; noSmooth() can be used to disable smoothing of geometry, + * images, and fonts. In 3D mode, noSmooth() is enabled + * by default, so it is necessary to call smooth() if you would like + * smooth (antialiased) edges on your geometry. + * + * @method smooth + * @chainable + * @example + *
+ * + * background(0); + * noStroke(); + * smooth(); + * ellipse(30, 48, 36, 36); + * noSmooth(); + * ellipse(70, 48, 36, 36); + * + *
+ * + * @alt + * 2 pixelated 36x36 white ellipses one left one right of center. On black. + * + */ + p5.prototype.smooth = function() { + this.setAttributes('antialias', true); + if ('imageSmoothingEnabled' in this.drawingContext) { + this.drawingContext.imageSmoothingEnabled = true; + } + return this; + }; + + /** + * Sets the style for rendering line endings. These ends are either squared, + * extended, or rounded, each of which specified with the corresponding + * parameters: SQUARE, PROJECT, and ROUND. The default cap is ROUND. + * + * @method strokeCap + * @param {Constant} cap either SQUARE, PROJECT, or ROUND + * @chainable + * @example + *
+ * + * strokeWeight(12.0); + * strokeCap(ROUND); + * line(20, 30, 80, 30); + * strokeCap(SQUARE); + * line(20, 50, 80, 50); + * strokeCap(PROJECT); + * line(20, 70, 80, 70); + * + *
+ * + * @alt + * 3 lines. Top line: rounded ends, mid: squared, bottom:longer squared ends. + * + */ + p5.prototype.strokeCap = function(cap) { + p5._validateParameters('strokeCap', arguments); + if ( + cap === constants.ROUND || + cap === constants.SQUARE || + cap === constants.PROJECT + ) { + this._renderer.strokeCap(cap); + } + return this; + }; + + /** + * Sets the style of the joints which connect line segments. These joints + * are either mitered, beveled, or rounded and specified with the + * corresponding parameters MITER, BEVEL, and ROUND. The default joint is + * MITER. + * + * @method strokeJoin + * @param {Constant} join either MITER, BEVEL, ROUND + * @chainable + * @example + *
+ * + * noFill(); + * strokeWeight(10.0); + * strokeJoin(MITER); + * beginShape(); + * vertex(35, 20); + * vertex(65, 50); + * vertex(35, 80); + * endShape(); + * + *
+ * + *
+ * + * noFill(); + * strokeWeight(10.0); + * strokeJoin(BEVEL); + * beginShape(); + * vertex(35, 20); + * vertex(65, 50); + * vertex(35, 80); + * endShape(); + * + *
+ * + *
+ * + * noFill(); + * strokeWeight(10.0); + * strokeJoin(ROUND); + * beginShape(); + * vertex(35, 20); + * vertex(65, 50); + * vertex(35, 80); + * endShape(); + * + *
+ * + * @alt + * Right-facing arrowhead shape with pointed tip in center of canvas. + * Right-facing arrowhead shape with flat tip in center of canvas. + * Right-facing arrowhead shape with rounded tip in center of canvas. + * + */ + p5.prototype.strokeJoin = function(join) { + p5._validateParameters('strokeJoin', arguments); + if ( + join === constants.ROUND || + join === constants.BEVEL || + join === constants.MITER + ) { + this._renderer.strokeJoin(join); + } + return this; + }; + + /** + * Sets the width of the stroke used for lines, points, and the border + * around shapes. All widths are set in units of pixels. + * + * @method strokeWeight + * @param {Number} weight the weight (in pixels) of the stroke + * @chainable + * @example + *
+ * + * strokeWeight(1); // Default + * line(20, 20, 80, 20); + * strokeWeight(4); // Thicker + * line(20, 40, 80, 40); + * strokeWeight(10); // Beastly + * line(20, 70, 80, 70); + * + *
+ * + * @alt + * 3 horizontal black lines. Top line: thin, mid: medium, bottom:thick. + * + */ + p5.prototype.strokeWeight = function(w) { + p5._validateParameters('strokeWeight', arguments); + this._renderer.strokeWeight(w); + return this; + }; + + module.exports = p5; + }, + { '../constants': 18, '../main': 24 } + ], + 32: [ + function(_dereq_, module, exports) { + /** + * @module Shape + * @submodule Curves + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../main'); + _dereq_('../error_helpers'); + + /** + * Draws a cubic Bezier curve on the screen. These curves are defined by a + * series of anchor and control points. The first two parameters specify + * the first anchor point and the last two parameters specify the other + * anchor point, which become the first and last points on the curve. The + * middle parameters specify the two control points which define the shape + * of the curve. Approximately speaking, control points "pull" the curve + * towards them.

Bezier curves were developed by French + * automotive engineer Pierre Bezier, and are commonly used in computer + * graphics to define gently sloping curves. See also curve(). + * + * @method bezier + * @param {Number} x1 x-coordinate for the first anchor point + * @param {Number} y1 y-coordinate for the first anchor point + * @param {Number} x2 x-coordinate for the first control point + * @param {Number} y2 y-coordinate for the first control point + * @param {Number} x3 x-coordinate for the second control point + * @param {Number} y3 y-coordinate for the second control point + * @param {Number} x4 x-coordinate for the second anchor point + * @param {Number} y4 y-coordinate for the second anchor point + * @chainable + * @example + *
+ * + * noFill(); + * stroke(255, 102, 0); + * line(85, 20, 10, 10); + * line(90, 90, 15, 80); + * stroke(0, 0, 0); + * bezier(85, 20, 10, 10, 90, 90, 15, 80); + * + *
+ * + *
+ * + * background(0, 0, 0); + * noFill(); + * stroke(255); + * bezier(250, 250, 0, 100, 100, 0, 100, 0, 0, 0, 100, 0); + * + *
+ * + * @alt + * stretched black s-shape in center with orange lines extending from end points. + * stretched black s-shape with 10 5x5 white ellipses along the shape. + * stretched black s-shape with 7 5x5 ellipses and orange lines along the shape. + * stretched black s-shape with 17 small orange lines extending from under shape. + * horseshoe shape with orange ends facing left and black curved center. + * horseshoe shape with orange ends facing left and black curved center. + * Line shaped like right-facing arrow,points move with mouse-x and warp shape. + * horizontal line that hooks downward on the right and 13 5x5 ellipses along it. + * right curving line mid-right of canvas with 7 short lines radiating from it. + */ + /** + * @method bezier + * @param {Number} x1 + * @param {Number} y1 + * @param {Number} z1 z-coordinate for the first anchor point + * @param {Number} x2 + * @param {Number} y2 + * @param {Number} z2 z-coordinate for the first control point + * @param {Number} x3 + * @param {Number} y3 + * @param {Number} z3 z-coordinate for the second control point + * @param {Number} x4 + * @param {Number} y4 + * @param {Number} z4 z-coordinate for the second anchor point + * @chainable + */ + p5.prototype.bezier = function() { + p5._validateParameters('bezier', arguments); + + // if the current stroke and fill settings wouldn't result in something + // visible, exit immediately + if (!this._renderer._doStroke && !this._renderer._doFill) { + return this; + } + + this._renderer.bezier.apply(this._renderer, arguments); + + return this; + }; + + /** + * Sets the resolution at which Beziers display. + * + * The default value is 20. + * + * This function is only useful when using the WEBGL renderer + * as the default canvas renderer does not use this information. + * + * @method bezierDetail + * @param {Number} detail resolution of the curves + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * noFill(); + * + * bezierDetail(5); + * } + * + * function draw() { + * background(200); + * + * // prettier-ignore + * bezier(-40, -40, 0, + * 90, -40, 0, + * -90, 40, 0, + * 40, 40, 0); + * } + * + *
+ * + * @alt + * stretched black s-shape with a low level of bezier detail + * + */ + p5.prototype.bezierDetail = function(d) { + p5._validateParameters('bezierDetail', arguments); + this._bezierDetail = d; + return this; + }; + + /** + * Evaluates the Bezier at position t for points a, b, c, d. + * The parameters a and d are the first and last points + * on the curve, and b and c are the control points. + * The final parameter t varies between 0 and 1. + * This can be done once with the x coordinates and a second time + * with the y coordinates to get the location of a bezier curve at t. + * + * @method bezierPoint + * @param {Number} a coordinate of first point on the curve + * @param {Number} b coordinate of first control point + * @param {Number} c coordinate of second control point + * @param {Number} d coordinate of second point on the curve + * @param {Number} t value between 0 and 1 + * @return {Number} the value of the Bezier at position t + * @example + *
+ * + * noFill(); + * let x1 = 85, + x2 = 10, + x3 = 90, + x4 = 15; + * let y1 = 20, + y2 = 10, + y3 = 90, + y4 = 80; + * bezier(x1, y1, x2, y2, x3, y3, x4, y4); + * fill(255); + * let steps = 10; + * for (let i = 0; i <= steps; i++) { + * let t = i / steps; + * let x = bezierPoint(x1, x2, x3, x4, t); + * let y = bezierPoint(y1, y2, y3, y4, t); + * ellipse(x, y, 5, 5); + * } + * + *
+ * + * @alt + * stretched black s-shape with 17 small orange lines extending from under shape. + * + */ + p5.prototype.bezierPoint = function(a, b, c, d, t) { + p5._validateParameters('bezierPoint', arguments); + + var adjustedT = 1 - t; + return ( + Math.pow(adjustedT, 3) * a + + 3 * Math.pow(adjustedT, 2) * t * b + + 3 * adjustedT * Math.pow(t, 2) * c + + Math.pow(t, 3) * d + ); + }; + + /** + * Evaluates the tangent to the Bezier at position t for points a, b, c, d. + * The parameters a and d are the first and last points + * on the curve, and b and c are the control points. + * The final parameter t varies between 0 and 1. + * + * @method bezierTangent + * @param {Number} a coordinate of first point on the curve + * @param {Number} b coordinate of first control point + * @param {Number} c coordinate of second control point + * @param {Number} d coordinate of second point on the curve + * @param {Number} t value between 0 and 1 + * @return {Number} the tangent at position t + * @example + *
+ * + * noFill(); + * bezier(85, 20, 10, 10, 90, 90, 15, 80); + * let steps = 6; + * fill(255); + * for (let i = 0; i <= steps; i++) { + * let t = i / steps; + * // Get the location of the point + * let x = bezierPoint(85, 10, 90, 15, t); + * let y = bezierPoint(20, 10, 90, 80, t); + * // Get the tangent points + * let tx = bezierTangent(85, 10, 90, 15, t); + * let ty = bezierTangent(20, 10, 90, 80, t); + * // Calculate an angle from the tangent points + * let a = atan2(ty, tx); + * a += PI; + * stroke(255, 102, 0); + * line(x, y, cos(a) * 30 + x, sin(a) * 30 + y); + * // The following line of code makes a line + * // inverse of the above line + * //line(x, y, cos(a)*-30 + x, sin(a)*-30 + y); + * stroke(0); + * ellipse(x, y, 5, 5); + * } + * + *
+ * + *
+ * + * noFill(); + * bezier(85, 20, 10, 10, 90, 90, 15, 80); + * stroke(255, 102, 0); + * let steps = 16; + * for (let i = 0; i <= steps; i++) { + * let t = i / steps; + * let x = bezierPoint(85, 10, 90, 15, t); + * let y = bezierPoint(20, 10, 90, 80, t); + * let tx = bezierTangent(85, 10, 90, 15, t); + * let ty = bezierTangent(20, 10, 90, 80, t); + * let a = atan2(ty, tx); + * a -= HALF_PI; + * line(x, y, cos(a) * 8 + x, sin(a) * 8 + y); + * } + * + *
+ * + * @alt + * s-shaped line with 17 short orange lines extending from underside of shape + * + */ + p5.prototype.bezierTangent = function(a, b, c, d, t) { + p5._validateParameters('bezierTangent', arguments); + + var adjustedT = 1 - t; + return ( + 3 * d * Math.pow(t, 2) - + 3 * c * Math.pow(t, 2) + + 6 * c * adjustedT * t - + 6 * b * adjustedT * t + + 3 * b * Math.pow(adjustedT, 2) - + 3 * a * Math.pow(adjustedT, 2) + ); + }; + + /** + * Draws a curved line on the screen between two points, given as the + * middle four parameters. The first two parameters are a control point, as + * if the curve came from this point even though it's not drawn. The last + * two parameters similarly describe the other control point.

+ * Longer curves can be created by putting a series of curve() functions + * together or using curveVertex(). An additional function called + * curveTightness() provides control for the visual quality of the curve. + * The curve() function is an implementation of Catmull-Rom splines. + * + * @method curve + * @param {Number} x1 x-coordinate for the beginning control point + * @param {Number} y1 y-coordinate for the beginning control point + * @param {Number} x2 x-coordinate for the first point + * @param {Number} y2 y-coordinate for the first point + * @param {Number} x3 x-coordinate for the second point + * @param {Number} y3 y-coordinate for the second point + * @param {Number} x4 x-coordinate for the ending control point + * @param {Number} y4 y-coordinate for the ending control point + * @chainable + * @example + *
+ * + * noFill(); + * stroke(255, 102, 0); + * curve(5, 26, 5, 26, 73, 24, 73, 61); + * stroke(0); + * curve(5, 26, 73, 24, 73, 61, 15, 65); + * stroke(255, 102, 0); + * curve(73, 24, 73, 61, 15, 65, 15, 65); + * + *
+ *
+ * + * // Define the curve points as JavaScript objects + * let p1 = { x: 5, y: 26 }, + p2 = { x: 73, y: 24 }; + * let p3 = { x: 73, y: 61 }, + p4 = { x: 15, y: 65 }; + * noFill(); + * stroke(255, 102, 0); + * curve(p1.x, p1.y, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y); + * stroke(0); + * curve(p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y); + * stroke(255, 102, 0); + * curve(p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, p4.x, p4.y); + * + *
+ *
+ * + * noFill(); + * stroke(255, 102, 0); + * curve(5, 26, 0, 5, 26, 0, 73, 24, 0, 73, 61, 0); + * stroke(0); + * curve(5, 26, 0, 73, 24, 0, 73, 61, 0, 15, 65, 0); + * stroke(255, 102, 0); + * curve(73, 24, 0, 73, 61, 0, 15, 65, 0, 15, 65, 0); + * + *
+ * + * @alt + * horseshoe shape with orange ends facing left and black curved center. + * horseshoe shape with orange ends facing left and black curved center. + * curving black and orange lines. + */ + /** + * @method curve + * @param {Number} x1 + * @param {Number} y1 + * @param {Number} z1 z-coordinate for the beginning control point + * @param {Number} x2 + * @param {Number} y2 + * @param {Number} z2 z-coordinate for the first point + * @param {Number} x3 + * @param {Number} y3 + * @param {Number} z3 z-coordinate for the second point + * @param {Number} x4 + * @param {Number} y4 + * @param {Number} z4 z-coordinate for the ending control point + * @chainable + */ + p5.prototype.curve = function() { + p5._validateParameters('curve', arguments); + + if (this._renderer._doStroke) { + this._renderer.curve.apply(this._renderer, arguments); + } + + return this; + }; + + /** + * Sets the resolution at which curves display. + * + * The default value is 20 while the minimum value is 3. + * + * This function is only useful when using the WEBGL renderer + * as the default canvas renderer does not use this + * information. + * + * @method curveDetail + * @param {Number} resolution resolution of the curves + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * + * curveDetail(5); + * } + * function draw() { + * background(200); + * + * curve(250, 600, 0, -30, 40, 0, 30, 30, 0, -250, 600, 0); + * } + * + *
+ * + * @alt + * white arch shape with a low level of curve detail. + * + */ + p5.prototype.curveDetail = function(d) { + p5._validateParameters('curveDetail', arguments); + if (d < 3) { + this._curveDetail = 3; + } else { + this._curveDetail = d; + } + return this; + }; + + /** + * Modifies the quality of forms created with curve() and curveVertex(). + * The parameter tightness determines how the curve fits to the vertex + * points. The value 0.0 is the default value for tightness (this value + * defines the curves to be Catmull-Rom splines) and the value 1.0 connects + * all the points with straight lines. Values within the range -5.0 and 5.0 + * will deform the curves but will leave them recognizable and as values + * increase in magnitude, they will continue to deform. + * + * @method curveTightness + * @param {Number} amount amount of deformation from the original vertices + * @chainable + * @example + *
+ * + * // Move the mouse left and right to see the curve change + * + * function setup() { + * createCanvas(100, 100); + * noFill(); + * } + * + * function draw() { + * background(204); + * let t = map(mouseX, 0, width, -5, 5); + * curveTightness(t); + * beginShape(); + * curveVertex(10, 26); + * curveVertex(10, 26); + * curveVertex(83, 24); + * curveVertex(83, 61); + * curveVertex(25, 65); + * curveVertex(25, 65); + * endShape(); + * } + * + *
+ * + * @alt + * Line shaped like right-facing arrow,points move with mouse-x and warp shape. + */ + p5.prototype.curveTightness = function(t) { + p5._validateParameters('curveTightness', arguments); + this._renderer._curveTightness = t; + return this; + }; + + /** + * Evaluates the curve at position t for points a, b, c, d. + * The parameter t varies between 0 and 1, a and d are control points + * of the curve, and b and c are the start and end points of the curve. + * This can be done once with the x coordinates and a second time + * with the y coordinates to get the location of a curve at t. + * + * @method curvePoint + * @param {Number} a coordinate of first control point of the curve + * @param {Number} b coordinate of first point + * @param {Number} c coordinate of second point + * @param {Number} d coordinate of second control point + * @param {Number} t value between 0 and 1 + * @return {Number} bezier value at position t + * @example + *
+ * + * noFill(); + * curve(5, 26, 5, 26, 73, 24, 73, 61); + * curve(5, 26, 73, 24, 73, 61, 15, 65); + * fill(255); + * ellipseMode(CENTER); + * let steps = 6; + * for (let i = 0; i <= steps; i++) { + * let t = i / steps; + * let x = curvePoint(5, 5, 73, 73, t); + * let y = curvePoint(26, 26, 24, 61, t); + * ellipse(x, y, 5, 5); + * x = curvePoint(5, 73, 73, 15, t); + * y = curvePoint(26, 24, 61, 65, t); + * ellipse(x, y, 5, 5); + * } + * + *
+ * + *line hooking down to right-bottom with 13 5x5 white ellipse points + */ + p5.prototype.curvePoint = function(a, b, c, d, t) { + p5._validateParameters('curvePoint', arguments); + + var t3 = t * t * t, + t2 = t * t, + f1 = -0.5 * t3 + t2 - 0.5 * t, + f2 = 1.5 * t3 - 2.5 * t2 + 1.0, + f3 = -1.5 * t3 + 2.0 * t2 + 0.5 * t, + f4 = 0.5 * t3 - 0.5 * t2; + return a * f1 + b * f2 + c * f3 + d * f4; + }; + + /** + * Evaluates the tangent to the curve at position t for points a, b, c, d. + * The parameter t varies between 0 and 1, a and d are points on the curve, + * and b and c are the control points. + * + * @method curveTangent + * @param {Number} a coordinate of first point on the curve + * @param {Number} b coordinate of first control point + * @param {Number} c coordinate of second control point + * @param {Number} d coordinate of second point on the curve + * @param {Number} t value between 0 and 1 + * @return {Number} the tangent at position t + * @example + *
+ * + * noFill(); + * curve(5, 26, 73, 24, 73, 61, 15, 65); + * let steps = 6; + * for (let i = 0; i <= steps; i++) { + * let t = i / steps; + * let x = curvePoint(5, 73, 73, 15, t); + * let y = curvePoint(26, 24, 61, 65, t); + * //ellipse(x, y, 5, 5); + * let tx = curveTangent(5, 73, 73, 15, t); + * let ty = curveTangent(26, 24, 61, 65, t); + * let a = atan2(ty, tx); + * a -= PI / 2.0; + * line(x, y, cos(a) * 8 + x, sin(a) * 8 + y); + * } + * + *
+ * + * @alt + *right curving line mid-right of canvas with 7 short lines radiating from it. + */ + p5.prototype.curveTangent = function(a, b, c, d, t) { + p5._validateParameters('curveTangent', arguments); + + var t2 = t * t, + f1 = -3 * t2 / 2 + 2 * t - 0.5, + f2 = 9 * t2 / 2 - 5 * t, + f3 = -9 * t2 / 2 + 4 * t + 0.5, + f4 = 3 * t2 / 2 - t; + return a * f1 + b * f2 + c * f3 + d * f4; + }; + + module.exports = p5; + }, + { '../error_helpers': 20, '../main': 24 } + ], + 33: [ + function(_dereq_, module, exports) { + /** + * @module Shape + * @submodule Vertex + * @for p5 + * @requires core + * @requires constants + */ + + 'use strict'; + + var p5 = _dereq_('../main'); + var constants = _dereq_('../constants'); + var shapeKind = null; + var vertices = []; + var contourVertices = []; + var isBezier = false; + var isCurve = false; + var isQuadratic = false; + var isContour = false; + var isFirstContour = true; + + /** + * Use the beginContour() and endContour() functions to create negative + * shapes within shapes such as the center of the letter 'O'. beginContour() + * begins recording vertices for the shape and endContour() stops recording. + * The vertices that define a negative shape must "wind" in the opposite + * direction from the exterior shape. First draw vertices for the exterior + * clockwise order, then for internal shapes, draw vertices + * shape in counter-clockwise. + *

+ * These functions can only be used within a beginShape()/endShape() pair and + * transformations such as translate(), rotate(), and scale() do not work + * within a beginContour()/endContour() pair. It is also not possible to use + * other shapes, such as ellipse() or rect() within. + * + * @method beginContour + * @chainable + * @example + *
+ * + * translate(50, 50); + * stroke(255, 0, 0); + * beginShape(); + * // Exterior part of shape, clockwise winding + * vertex(-40, -40); + * vertex(40, -40); + * vertex(40, 40); + * vertex(-40, 40); + * // Interior part of shape, counter-clockwise winding + * beginContour(); + * vertex(-20, -20); + * vertex(-20, 20); + * vertex(20, 20); + * vertex(20, -20); + * endContour(); + * endShape(CLOSE); + * + *
+ * + * @alt + * white rect and smaller grey rect with red outlines in center of canvas. + * + */ + p5.prototype.beginContour = function() { + contourVertices = []; + isContour = true; + return this; + }; + + /** + * Using the beginShape() and endShape() functions allow creating more + * complex forms. beginShape() begins recording vertices for a shape and + * endShape() stops recording. The value of the kind parameter tells it which + * types of shapes to create from the provided vertices. With no mode + * specified, the shape can be any irregular polygon. + *

+ * The parameters available for beginShape() are POINTS, LINES, TRIANGLES, + * TRIANGLE_FAN, TRIANGLE_STRIP, QUADS, and QUAD_STRIP. After calling the + * beginShape() function, a series of vertex() commands must follow. To stop + * drawing the shape, call endShape(). Each shape will be outlined with the + * current stroke color and filled with the fill color. + *

+ * Transformations such as translate(), rotate(), and scale() do not work + * within beginShape(). It is also not possible to use other shapes, such as + * ellipse() or rect() within beginShape(). + * + * @method beginShape + * @param {Constant} [kind] either POINTS, LINES, TRIANGLES, TRIANGLE_FAN + * TRIANGLE_STRIP, QUADS, or QUAD_STRIP + * @chainable + * @example + *
+ * + * beginShape(); + * vertex(30, 20); + * vertex(85, 20); + * vertex(85, 75); + * vertex(30, 75); + * endShape(CLOSE); + * + *
+ * + *
+ * + * beginShape(POINTS); + * vertex(30, 20); + * vertex(85, 20); + * vertex(85, 75); + * vertex(30, 75); + * endShape(); + * + *
+ * + *
+ * + * beginShape(LINES); + * vertex(30, 20); + * vertex(85, 20); + * vertex(85, 75); + * vertex(30, 75); + * endShape(); + * + *
+ * + *
+ * + * noFill(); + * beginShape(); + * vertex(30, 20); + * vertex(85, 20); + * vertex(85, 75); + * vertex(30, 75); + * endShape(); + * + *
+ * + *
+ * + * noFill(); + * beginShape(); + * vertex(30, 20); + * vertex(85, 20); + * vertex(85, 75); + * vertex(30, 75); + * endShape(CLOSE); + * + *
+ * + *
+ * + * beginShape(TRIANGLES); + * vertex(30, 75); + * vertex(40, 20); + * vertex(50, 75); + * vertex(60, 20); + * vertex(70, 75); + * vertex(80, 20); + * endShape(); + * + *
+ * + *
+ * + * beginShape(TRIANGLE_STRIP); + * vertex(30, 75); + * vertex(40, 20); + * vertex(50, 75); + * vertex(60, 20); + * vertex(70, 75); + * vertex(80, 20); + * vertex(90, 75); + * endShape(); + * + *
+ * + *
+ * + * beginShape(TRIANGLE_FAN); + * vertex(57.5, 50); + * vertex(57.5, 15); + * vertex(92, 50); + * vertex(57.5, 85); + * vertex(22, 50); + * vertex(57.5, 15); + * endShape(); + * + *
+ * + *
+ * + * beginShape(QUADS); + * vertex(30, 20); + * vertex(30, 75); + * vertex(50, 75); + * vertex(50, 20); + * vertex(65, 20); + * vertex(65, 75); + * vertex(85, 75); + * vertex(85, 20); + * endShape(); + * + *
+ * + *
+ * + * beginShape(QUAD_STRIP); + * vertex(30, 20); + * vertex(30, 75); + * vertex(50, 20); + * vertex(50, 75); + * vertex(65, 20); + * vertex(65, 75); + * vertex(85, 20); + * vertex(85, 75); + * endShape(); + * + *
+ * + *
+ * + * beginShape(); + * vertex(20, 20); + * vertex(40, 20); + * vertex(40, 40); + * vertex(60, 40); + * vertex(60, 60); + * vertex(20, 60); + * endShape(CLOSE); + * + *
+ * @alt + * white square-shape with black outline in middle-right of canvas. + * 4 black points in a square shape in middle-right of canvas. + * 2 horizontal black lines. In the top-right and bottom-right of canvas. + * 3 line shape with horizontal on top, vertical in middle and horizontal bottom. + * square line shape in middle-right of canvas. + * 2 white triangle shapes mid-right canvas. left one pointing up and right down. + * 5 horizontal interlocking and alternating white triangles in mid-right canvas. + * 4 interlocking white triangles in 45 degree rotated square-shape. + * 2 white rectangle shapes in mid-right canvas. Both 20x55. + * 3 side-by-side white rectangles center rect is smaller in mid-right canvas. + * Thick white l-shape with black outline mid-top-left of canvas. + * + */ + p5.prototype.beginShape = function(kind) { + p5._validateParameters('beginShape', arguments); + if (this._renderer.isP3D) { + this._renderer.beginShape.apply(this._renderer, arguments); + } else { + if ( + kind === constants.POINTS || + kind === constants.LINES || + kind === constants.TRIANGLES || + kind === constants.TRIANGLE_FAN || + kind === constants.TRIANGLE_STRIP || + kind === constants.QUADS || + kind === constants.QUAD_STRIP + ) { + shapeKind = kind; + } else { + shapeKind = null; + } + + vertices = []; + contourVertices = []; + } + return this; + }; + + /** + * Specifies vertex coordinates for Bezier curves. Each call to + * bezierVertex() defines the position of two control points and + * one anchor point of a Bezier curve, adding a new segment to a + * line or shape. For WebGL mode bezierVertex() can be used in 2D + * as well as 3D mode. 2D mode expects 6 parameters, while 3D mode + * expects 9 parameters (including z coordinates). + *

+ * The first time bezierVertex() is used within a beginShape() + * call, it must be prefaced with a call to vertex() to set the first anchor + * point. This function must be used between beginShape() and endShape() + * and only when there is no MODE or POINTS parameter specified to + * beginShape(). + * + * @method bezierVertex + * @param {Number} x2 x-coordinate for the first control point + * @param {Number} y2 y-coordinate for the first control point + * @param {Number} x3 x-coordinate for the second control point + * @param {Number} y3 y-coordinate for the second control point + * @param {Number} x4 x-coordinate for the anchor point + * @param {Number} y4 y-coordinate for the anchor point + * @chainable + * + * @example + *
+ * + * noFill(); + * beginShape(); + * vertex(30, 20); + * bezierVertex(80, 0, 80, 75, 30, 75); + * endShape(); + * + *
+ * + * @alt + * crescent-shaped line in middle of canvas. Points facing left. + * + * @example + *
+ * + * beginShape(); + * vertex(30, 20); + * bezierVertex(80, 0, 80, 75, 30, 75); + * bezierVertex(50, 80, 60, 25, 30, 20); + * endShape(); + * + *
+ * + * @alt + * white crescent shape in middle of canvas. Points facing left. + * + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * setAttributes('antialias', true); + * } + * function draw() { + * orbitControl(); + * background(50); + * strokeWeight(4); + * stroke(255); + * point(-25, 30); + * point(25, 30); + * point(25, -30); + * point(-25, -30); + * + * strokeWeight(1); + * noFill(); + * + * beginShape(); + * vertex(-25, 30); + * bezierVertex(25, 30, 25, -30, -25, -30); + * endShape(); + * + * beginShape(); + * vertex(-25, 30, 20); + * bezierVertex(25, 30, 20, 25, -30, 20, -25, -30, 20); + * endShape(); + * } + * + *
+ * + * @alt + * crescent shape in middle of canvas with another crescent shape on positive z-axis. + */ + + /** + * @method bezierVertex + * @param {Number} x2 + * @param {Number} y2 + * @param {Number} z2 z-coordinate for the first control point (for WebGL mode) + * @param {Number} x3 + * @param {Number} y3 + * @param {Number} z3 z-coordinate for the second control point (for WebGL mode) + * @param {Number} x4 + * @param {Number} y4 + * @param {Number} z4 z-coordinate for the anchor point (for WebGL mode) + * @chainable + */ + p5.prototype.bezierVertex = function() { + p5._validateParameters('bezierVertex', arguments); + if (this._renderer.isP3D) { + this._renderer.bezierVertex.apply(this._renderer, arguments); + } else { + if (vertices.length === 0) { + p5._friendlyError( + 'vertex() must be used once before calling bezierVertex()', + 'bezierVertex' + ); + } else { + isBezier = true; + var vert = []; + for (var i = 0; i < arguments.length; i++) { + vert[i] = arguments[i]; + } + vert.isVert = false; + if (isContour) { + contourVertices.push(vert); + } else { + vertices.push(vert); + } + } + } + return this; + }; + + /** + * Specifies vertex coordinates for curves. This function may only + * be used between beginShape() and endShape() and only when there + * is no MODE parameter specified to beginShape(). + * For WebGL mode curveVertex() can be used in 2D as well as 3D mode. + * 2D mode expects 2 parameters, while 3D mode expects 3 parameters. + *

+ * The first and last points in a series of curveVertex() lines will be used to + * guide the beginning and end of a the curve. A minimum of four + * points is required to draw a tiny curve between the second and + * third points. Adding a fifth point with curveVertex() will draw + * the curve between the second, third, and fourth points. The + * curveVertex() function is an implementation of Catmull-Rom + * splines. + * + * @method curveVertex + * @param {Number} x x-coordinate of the vertex + * @param {Number} y y-coordinate of the vertex + * @chainable + * @example + *
+ * + * strokeWeight(5); + * point(84, 91); + * point(68, 19); + * point(21, 17); + * point(32, 91); + * strokeWeight(1); + * + * noFill(); + * beginShape(); + * curveVertex(84, 91); + * curveVertex(84, 91); + * curveVertex(68, 19); + * curveVertex(21, 17); + * curveVertex(32, 91); + * curveVertex(32, 91); + * endShape(); + * + *
+ * + * + * @alt + * Upside-down u-shape line, mid canvas. left point extends beyond canvas view. + */ + /** + * @method curveVertex + * @param {Number} x + * @param {Number} y + * @param {Number} [z] z-coordinate of the vertex (for WebGL mode) + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * setAttributes('antialias', true); + * } + * function draw() { + * orbitControl(); + * background(50); + * strokeWeight(4); + * stroke(255); + * + * point(-25, 25); + * point(-25, 25); + * point(-25, -25); + * point(25, -25); + * point(25, 25); + * point(25, 25); + * + * strokeWeight(1); + * noFill(); + * + * beginShape(); + * curveVertex(-25, 25); + * curveVertex(-25, 25); + * curveVertex(-25, -25); + * curveVertex(25, -25); + * curveVertex(25, 25); + * curveVertex(25, 25); + * endShape(); + * + * beginShape(); + * curveVertex(-25, 25, 20); + * curveVertex(-25, 25, 20); + * curveVertex(-25, -25, 20); + * curveVertex(25, -25, 20); + * curveVertex(25, 25, 20); + * curveVertex(25, 25, 20); + * endShape(); + * } + * + *
+ * + * @alt + * Upside-down u-shape line, mid canvas with the same shape in positive z-axis. + * + */ + p5.prototype.curveVertex = function() { + p5._validateParameters('curveVertex', arguments); + if (this._renderer.isP3D) { + this._renderer.curveVertex.apply(this._renderer, arguments); + } else { + isCurve = true; + this.vertex(arguments[0], arguments[1]); + } + return this; + }; + + /** + * Use the beginContour() and endContour() functions to create negative + * shapes within shapes such as the center of the letter 'O'. beginContour() + * begins recording vertices for the shape and endContour() stops recording. + * The vertices that define a negative shape must "wind" in the opposite + * direction from the exterior shape. First draw vertices for the exterior + * clockwise order, then for internal shapes, draw vertices + * shape in counter-clockwise. + *

+ * These functions can only be used within a beginShape()/endShape() pair and + * transformations such as translate(), rotate(), and scale() do not work + * within a beginContour()/endContour() pair. It is also not possible to use + * other shapes, such as ellipse() or rect() within. + * + * @method endContour + * @chainable + * @example + *
+ * + * translate(50, 50); + * stroke(255, 0, 0); + * beginShape(); + * // Exterior part of shape, clockwise winding + * vertex(-40, -40); + * vertex(40, -40); + * vertex(40, 40); + * vertex(-40, 40); + * // Interior part of shape, counter-clockwise winding + * beginContour(); + * vertex(-20, -20); + * vertex(-20, 20); + * vertex(20, 20); + * vertex(20, -20); + * endContour(); + * endShape(CLOSE); + * + *
+ * + * @alt + * white rect and smaller grey rect with red outlines in center of canvas. + * + */ + p5.prototype.endContour = function() { + var vert = contourVertices[0].slice(); // copy all data + vert.isVert = contourVertices[0].isVert; + vert.moveTo = false; + contourVertices.push(vert); + + // prevent stray lines with multiple contours + if (isFirstContour) { + vertices.push(vertices[0]); + isFirstContour = false; + } + + for (var i = 0; i < contourVertices.length; i++) { + vertices.push(contourVertices[i]); + } + return this; + }; + + /** + * The endShape() function is the companion to beginShape() and may only be + * called after beginShape(). When endshape() is called, all of image data + * defined since the previous call to beginShape() is written into the image + * buffer. The constant CLOSE as the value for the MODE parameter to close + * the shape (to connect the beginning and the end). + * + * @method endShape + * @param {Constant} [mode] use CLOSE to close the shape + * @chainable + * @example + *
+ * + * noFill(); + * + * beginShape(); + * vertex(20, 20); + * vertex(45, 20); + * vertex(45, 80); + * endShape(CLOSE); + * + * beginShape(); + * vertex(50, 20); + * vertex(75, 20); + * vertex(75, 80); + * endShape(); + * + *
+ * + * @alt + * Triangle line shape with smallest interior angle on bottom and upside-down L. + * + */ + p5.prototype.endShape = function(mode) { + p5._validateParameters('endShape', arguments); + if (this._renderer.isP3D) { + this._renderer.endShape( + mode, + isCurve, + isBezier, + isQuadratic, + isContour, + shapeKind + ); + } else { + if (vertices.length === 0) { + return this; + } + if (!this._renderer._doStroke && !this._renderer._doFill) { + return this; + } + + var closeShape = mode === constants.CLOSE; + + // if the shape is closed, the first element is also the last element + if (closeShape && !isContour) { + vertices.push(vertices[0]); + } + + this._renderer.endShape( + mode, + vertices, + isCurve, + isBezier, + isQuadratic, + isContour, + shapeKind + ); + + // Reset some settings + isCurve = false; + isBezier = false; + isQuadratic = false; + isContour = false; + isFirstContour = true; + + // If the shape is closed, the first element was added as last element. + // We must remove it again to prevent the list of vertices from growing + // over successive calls to endShape(CLOSE) + if (closeShape) { + vertices.pop(); + } + } + return this; + }; + + /** + * Specifies vertex coordinates for quadratic Bezier curves. Each call to + * quadraticVertex() defines the position of one control points and one + * anchor point of a Bezier curve, adding a new segment to a line or shape. + * The first time quadraticVertex() is used within a beginShape() call, it + * must be prefaced with a call to vertex() to set the first anchor point. + * For WebGL mode quadraticVertex() can be used in 2D as well as 3D mode. + * 2D mode expects 4 parameters, while 3D mode expects 6 parameters + * (including z coordinates). + *

+ * This function must be used between beginShape() and endShape() + * and only when there is no MODE or POINTS parameter specified to + * beginShape(). + * + * @method quadraticVertex + * @param {Number} cx x-coordinate for the control point + * @param {Number} cy y-coordinate for the control point + * @param {Number} x3 x-coordinate for the anchor point + * @param {Number} y3 y-coordinate for the anchor point + * @chainable + * + * @example + *
+ * + * strokeWeight(5); + * point(20, 20); + * point(80, 20); + * point(50, 50); + * + * noFill(); + * strokeWeight(1); + * beginShape(); + * vertex(20, 20); + * quadraticVertex(80, 20, 50, 50); + * endShape(); + * + *
+ * + *
+ * + * strokeWeight(5); + * point(20, 20); + * point(80, 20); + * point(50, 50); + * + * point(20, 80); + * point(80, 80); + * point(80, 60); + * + * noFill(); + * strokeWeight(1); + * beginShape(); + * vertex(20, 20); + * quadraticVertex(80, 20, 50, 50); + * quadraticVertex(20, 80, 80, 80); + * vertex(80, 60); + * endShape(); + * + *
+ * + * @alt + * arched-shaped black line with 4 pixel thick stroke weight. + * backwards s-shaped black line with 4 pixel thick stroke weight. + * + */ + + /** + * @method quadraticVertex + * @param {Number} cx + * @param {Number} cy + * @param {Number} cz z-coordinate for the control point (for WebGL mode) + * @param {Number} x3 + * @param {Number} y3 + * @param {Number} z3 z-coordinate for the anchor point (for WebGL mode) + * @chainable + * + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * setAttributes('antialias', true); + * } + * function draw() { + * orbitControl(); + * background(50); + * strokeWeight(4); + * stroke(255); + * + * point(-35, -35); + * point(35, -35); + * point(0, 0); + * point(-35, 35); + * point(35, 35); + * point(35, 10); + * + * strokeWeight(1); + * noFill(); + * + * beginShape(); + * vertex(-35, -35); + * quadraticVertex(35, -35, 0, 0); + * quadraticVertex(-35, 35, 35, 35); + * vertex(35, 10); + * endShape(); + * + * beginShape(); + * vertex(-35, -35, 20); + * quadraticVertex(35, -35, 20, 0, 0, 20); + * quadraticVertex(-35, 35, 20, 35, 35, 20); + * vertex(35, 10, 20); + * endShape(); + * } + * + *
+ * + * @alt + * backwards s-shaped black line with the same s-shaped line in postive z-axis. + */ + p5.prototype.quadraticVertex = function() { + p5._validateParameters('quadraticVertex', arguments); + if (this._renderer.isP3D) { + this._renderer.quadraticVertex.apply(this._renderer, arguments); + } else { + //if we're drawing a contour, put the points into an + // array for inside drawing + if (this._contourInited) { + var pt = {}; + pt.x = arguments[0]; + pt.y = arguments[1]; + pt.x3 = arguments[2]; + pt.y3 = arguments[3]; + pt.type = constants.QUADRATIC; + this._contourVertices.push(pt); + + return this; + } + if (vertices.length > 0) { + isQuadratic = true; + var vert = []; + for (var i = 0; i < arguments.length; i++) { + vert[i] = arguments[i]; + } + vert.isVert = false; + if (isContour) { + contourVertices.push(vert); + } else { + vertices.push(vert); + } + } else { + p5._friendlyError( + 'vertex() must be used once before calling quadraticVertex()', + 'quadraticVertex' + ); + } + } + return this; + }; + + /** + * All shapes are constructed by connecting a series of vertices. vertex() + * is used to specify the vertex coordinates for points, lines, triangles, + * quads, and polygons. It is used exclusively within the beginShape() and + * endShape() functions. + * + * @method vertex + * @param {Number} x x-coordinate of the vertex + * @param {Number} y y-coordinate of the vertex + * @chainable + * @example + *
+ * + * strokeWeight(3); + * beginShape(POINTS); + * vertex(30, 20); + * vertex(85, 20); + * vertex(85, 75); + * vertex(30, 75); + * endShape(); + * + *
+ * + *
+ * + * createCanvas(100, 100, WEBGL); + * background(240, 240, 240); + * fill(237, 34, 93); + * noStroke(); + * beginShape(); + * vertex(0, 35); + * vertex(35, 0); + * vertex(0, -35); + * vertex(-35, 0); + * endShape(); + * + *
+ * + *
+ * + * createCanvas(100, 100, WEBGL); + * background(240, 240, 240); + * fill(237, 34, 93); + * noStroke(); + * beginShape(); + * vertex(-10, 10); + * vertex(0, 35); + * vertex(10, 10); + * vertex(35, 0); + * vertex(10, -8); + * vertex(0, -35); + * vertex(-10, -8); + * vertex(-35, 0); + * endShape(); + * + *
+ * + *
+ * + * strokeWeight(3); + * stroke(237, 34, 93); + * beginShape(LINES); + * vertex(10, 35); + * vertex(90, 35); + * vertex(10, 65); + * vertex(90, 65); + * vertex(35, 10); + * vertex(35, 90); + * vertex(65, 10); + * vertex(65, 90); + * endShape(); + * + *
+ * + *
+ * + * // Click to change the number of sides. + * // In WebGL mode, custom shapes will only + * // display hollow fill sections when + * // all calls to vertex() use the same z-value. + * + * let sides = 3; + * let angle, px, py; + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * setAttributes('antialias', true); + * fill(237, 34, 93); + * strokeWeight(3); + * } + * + * function draw() { + * background(200); + * rotateX(frameCount * 0.01); + * rotateZ(frameCount * 0.01); + * ngon(sides, 0, 0, 80); + * } + * + * function mouseClicked() { + * if (sides > 6) { + * sides = 3; + * } else { + * sides++; + * } + * } + * + * function ngon(n, x, y, d) { + * beginShape(); + * for (var i = 0; i < n + 1; i++) { + * angle = TWO_PI / n * i; + * px = x + sin(angle) * d / 2; + * py = y - cos(angle) * d / 2; + * vertex(px, py, 0); + * } + * for (i = 0; i < n + 1; i++) { + * angle = TWO_PI / n * i; + * px = x + sin(angle) * d / 4; + * py = y - cos(angle) * d / 4; + * vertex(px, py, 0); + * } + * endShape(); + * } + * + *
+ * @alt + * 4 black points in a square shape in middle-right of canvas. + * 4 points making a diamond shape. + * 8 points making a star. + * 8 points making 4 lines. + * A rotating 3D shape with a hollow section in the middle. + * + */ + /** + * @method vertex + * @param {Number} x + * @param {Number} y + * @param {Number} z z-coordinate of the vertex + * @param {Number} [u] the vertex's texture u-coordinate + * @param {Number} [v] the vertex's texture v-coordinate + * @chainable + */ + p5.prototype.vertex = function(x, y, moveTo, u, v) { + if (this._renderer.isP3D) { + this._renderer.vertex.apply(this._renderer, arguments); + } else { + var vert = []; + vert.isVert = true; + vert[0] = x; + vert[1] = y; + vert[2] = 0; + vert[3] = 0; + vert[4] = 0; + vert[5] = this._renderer._getFill(); + vert[6] = this._renderer._getStroke(); + + if (moveTo) { + vert.moveTo = moveTo; + } + if (isContour) { + if (contourVertices.length === 0) { + vert.moveTo = true; + } + contourVertices.push(vert); + } else { + vertices.push(vert); + } + } + return this; + }; + + module.exports = p5; + }, + { '../constants': 18, '../main': 24 } + ], + 34: [ + function(_dereq_, module, exports) { + 'use strict'; + + // requestAnim shim layer by Paul Irish + // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ + // http://my.opera.com/emoller/blog/2011/12/20/ + // requestanimationframe-for-smart-er-animating + // requestAnimationFrame polyfill by Erik Mรถller + // fixes from Paul Irish and Tino Zijdel + function _typeof(obj) { + if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && + typeof Symbol === 'function' && + obj.constructor === Symbol && + obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }; + } + return _typeof(obj); + } + window.requestAnimationFrame = (function() { + return ( + window.requestAnimationFrame || + window.webkitRequestAnimationFrame || + window.mozRequestAnimationFrame || + window.oRequestAnimationFrame || + window.msRequestAnimationFrame || + function(callback, element) { + // should '60' here be framerate? + window.setTimeout(callback, 1000 / 60); + } + ); + })(); + + /** + * shim for Uint8ClampedArray.slice + * (allows arrayCopy to work with pixels[]) + * with thanks to http://halfpapstudios.com/blog/tag/html5-canvas/ + * Enumerable set to false to protect for...in from + * Uint8ClampedArray.prototype pollution. + */ + (function() { + 'use strict'; + if ( + typeof Uint8ClampedArray !== 'undefined' && + !Uint8ClampedArray.prototype.slice + ) { + Object.defineProperty(Uint8ClampedArray.prototype, 'slice', { + value: Array.prototype.slice, + writable: true, + configurable: true, + enumerable: false + }); + } + })(); + + /** + * this is implementation of Object.assign() which is unavailable in + * IE11 and (non-Chrome) Android browsers. + * The assign() method is used to copy the values of all enumerable + * own properties from one or more source objects to a target object. + * It will return the target object. + * Modified from https://github.com/ljharb/object.assign + */ + (function() { + 'use strict'; + if (!Object.assign) { + var keys = Object.keys; + var defineProperty = Object.defineProperty; + var canBeObject = function canBeObject(obj) { + return typeof obj !== 'undefined' && obj !== null; + }; + var hasSymbols = + typeof Symbol === 'function' && _typeof(Symbol()) === 'symbol'; + var propIsEnumerable = Object.prototype.propertyIsEnumerable; + var isEnumerableOn = function isEnumerableOn(obj) { + return function isEnumerable(prop) { + return propIsEnumerable.call(obj, prop); + }; + }; + + // per ES6 spec, this function has to have a length of 2 + var assignShim = function assign(target, source1) { + if (!canBeObject(target)) { + throw new TypeError('target must be an object'); + } + var objTarget = Object(target); + var s, source, i, props; + for (s = 1; s < arguments.length; ++s) { + source = Object(arguments[s]); + props = keys(source); + if (hasSymbols && Object.getOwnPropertySymbols) { + props.push.apply( + props, + Object.getOwnPropertySymbols(source).filter(isEnumerableOn(source)) + ); + } + for (i = 0; i < props.length; ++i) { + objTarget[props[i]] = source[props[i]]; + } + } + return objTarget; + }; + + defineProperty(Object, 'assign', { + value: assignShim, + configurable: true, + enumerable: false, + writable: true + }); + } + })(); + }, + {} + ], + 35: [ + function(_dereq_, module, exports) { + /** + * @module Structure + * @submodule Structure + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('./main'); + + /** + * Stops p5.js from continuously executing the code within draw(). + * If loop() is called, the code in draw() begins to run continuously again. + * If using noLoop() in setup(), it should be the last line inside the block. + *

+ * When noLoop() is used, it's not possible to manipulate or access the + * screen inside event handling functions such as mousePressed() or + * keyPressed(). Instead, use those functions to call redraw() or loop(), + * which will run draw(), which can update the screen properly. This means + * that when noLoop() has been called, no drawing can happen, and functions + * like saveFrame() or loadPixels() may not be used. + *

+ * Note that if the sketch is resized, redraw() will be called to update + * the sketch, even after noLoop() has been specified. Otherwise, the sketch + * would enter an odd state until loop() was called. + * + * @method noLoop + * @example + *
+ * function setup() { + * createCanvas(100, 100); + * background(200); + * noLoop(); + * } + + * function draw() { + * line(10, 10, 90, 90); + * } + *
+ * + *
+ * let x = 0; + * function setup() { + * createCanvas(100, 100); + * } + * + * function draw() { + * background(204); + * x = x + 0.1; + * if (x > width) { + * x = 0; + * } + * line(x, 0, x, height); + * } + * + * function mousePressed() { + * noLoop(); + * } + * + * function mouseReleased() { + * loop(); + * } + *
+ * + * @alt + * 113 pixel long line extending from top-left to bottom right of canvas. + * horizontal line moves slowly from left. Loops but stops on mouse press. + * + */ + p5.prototype.noLoop = function() { + this._loop = false; + }; + /** + * By default, p5.js loops through draw() continuously, executing the code + * within it. However, the draw() loop may be stopped by calling noLoop(). + * In that case, the draw() loop can be resumed with loop(). + * + * Avoid calling loop() from inside setup(). + * + * @method loop + * @example + *
+ * let x = 0; + * function setup() { + * createCanvas(100, 100); + * noLoop(); + * } + * + * function draw() { + * background(204); + * x = x + 0.1; + * if (x > width) { + * x = 0; + * } + * line(x, 0, x, height); + * } + * + * function mousePressed() { + * loop(); + * } + * + * function mouseReleased() { + * noLoop(); + * } + *
+ * + * @alt + * horizontal line moves slowly from left. Loops but stops on mouse press. + * + */ + + p5.prototype.loop = function() { + if (!this._loop) { + this._loop = true; + if (this._setupDone) { + this._draw(); + } + } + }; + + /** + * The push() function saves the current drawing style settings and + * transformations, while pop() restores these settings. Note that these + * functions are always used together. They allow you to change the style + * and transformation settings and later return to what you had. When a new + * state is started with push(), it builds on the current style and transform + * information. The push() and pop() functions can be embedded to provide + * more control. (See the second example for a demonstration.) + *

+ * push() stores information related to the current transformation state + * and style settings controlled by the following functions: fill(), + * stroke(), tint(), strokeWeight(), strokeCap(), strokeJoin(), + * imageMode(), rectMode(), ellipseMode(), colorMode(), textAlign(), + * textFont(), textSize(), textLeading(). + *

+ * In WEBGL mode additional style settings are stored. These are controlled by the following functions: setCamera(), ambientLight(), directionalLight(), + * pointLight(), texture(), specularMaterial(), shininess(), normalMaterial() + * and shader(). + * + * @method push + * @example + *
+ * + * ellipse(0, 50, 33, 33); // Left circle + * + * push(); // Start a new drawing state + * strokeWeight(10); + * fill(204, 153, 0); + * translate(50, 0); + * ellipse(0, 50, 33, 33); // Middle circle + * pop(); // Restore original state + * + * ellipse(100, 50, 33, 33); // Right circle + * + *
+ *
+ * + * ellipse(0, 50, 33, 33); // Left circle + * + * push(); // Start a new drawing state + * strokeWeight(10); + * fill(204, 153, 0); + * ellipse(33, 50, 33, 33); // Left-middle circle + * + * push(); // Start another new drawing state + * stroke(0, 102, 153); + * ellipse(66, 50, 33, 33); // Right-middle circle + * pop(); // Restore previous state + * + * pop(); // Restore original state + * + * ellipse(100, 50, 33, 33); // Right circle + * + *
+ * + * @alt + * Gold ellipse + thick black outline @center 2 white ellipses on left and right. + * 2 Gold ellipses left black right blue stroke. 2 white ellipses on left+right. + * + */ + p5.prototype.push = function() { + this._styles.push({ + props: { + _colorMode: this._colorMode + }, + + renderer: this._renderer.push() + }); + }; + + /** + * The push() function saves the current drawing style settings and + * transformations, while pop() restores these settings. Note that these + * functions are always used together. They allow you to change the style + * and transformation settings and later return to what you had. When a new + * state is started with push(), it builds on the current style and transform + * information. The push() and pop() functions can be embedded to provide + * more control. (See the second example for a demonstration.) + *

+ * push() stores information related to the current transformation state + * and style settings controlled by the following functions: fill(), + * stroke(), tint(), strokeWeight(), strokeCap(), strokeJoin(), + * imageMode(), rectMode(), ellipseMode(), colorMode(), textAlign(), + * textFont(), textSize(), textLeading(). + *

+ * In WEBGL mode additional style settings are stored. These are controlled by the following functions: setCamera(), ambientLight(), directionalLight(), + * pointLight(), texture(), specularMaterial(), shininess(), normalMaterial() + * and shader(). + * + * @method pop + * @example + *
+ * + * ellipse(0, 50, 33, 33); // Left circle + * + * push(); // Start a new drawing state + * translate(50, 0); + * strokeWeight(10); + * fill(204, 153, 0); + * ellipse(0, 50, 33, 33); // Middle circle + * pop(); // Restore original state + * + * ellipse(100, 50, 33, 33); // Right circle + * + *
+ *
+ * + * ellipse(0, 50, 33, 33); // Left circle + * + * push(); // Start a new drawing state + * strokeWeight(10); + * fill(204, 153, 0); + * ellipse(33, 50, 33, 33); // Left-middle circle + * + * push(); // Start another new drawing state + * stroke(0, 102, 153); + * ellipse(66, 50, 33, 33); // Right-middle circle + * pop(); // Restore previous state + * + * pop(); // Restore original state + * + * ellipse(100, 50, 33, 33); // Right circle + * + *
+ * + * @alt + * Gold ellipse + thick black outline @center 2 white ellipses on left and right. + * 2 Gold ellipses left black right blue stroke. 2 white ellipses on left+right. + * + */ + p5.prototype.pop = function() { + var style = this._styles.pop(); + if (style) { + this._renderer.pop(style.renderer); + Object.assign(this, style.props); + } else { + console.warn('pop() was called without matching push()'); + } + }; + + /** + * + * Executes the code within draw() one time. This functions allows the + * program to update the display window only when necessary, for example + * when an event registered by mousePressed() or keyPressed() occurs. + *

+ * In structuring a program, it only makes sense to call redraw() within + * events such as mousePressed(). This is because redraw() does not run + * draw() immediately (it only sets a flag that indicates an update is + * needed). + *

+ * The redraw() function does not work properly when called inside draw(). + * To enable/disable animations, use loop() and noLoop(). + *

+ * In addition you can set the number of redraws per method call. Just + * add an integer as single parameter for the number of redraws. + * + * @method redraw + * @param {Integer} [n] Redraw for n-times. The default value is 1. + * @example + *
+ * let x = 0; + * + * function setup() { + * createCanvas(100, 100); + * noLoop(); + * } + * + * function draw() { + * background(204); + * line(x, 0, x, height); + * } + * + * function mousePressed() { + * x += 1; + * redraw(); + * } + *
+ * + *
+ * let x = 0; + * + * function setup() { + * createCanvas(100, 100); + * noLoop(); + * } + * + * function draw() { + * background(204); + * x += 1; + * line(x, 0, x, height); + * } + * + * function mousePressed() { + * redraw(5); + * } + *
+ * + * @alt + * black line on far left of canvas + * black line on far left of canvas + * + */ + p5.prototype.redraw = function(n) { + if (this._inUserDraw || !this._setupDone) { + return; + } + + var numberOfRedraws = parseInt(n); + if (isNaN(numberOfRedraws) || numberOfRedraws < 1) { + numberOfRedraws = 1; + } + + var context = this._isGlobal ? window : this; + var userSetup = context.setup; + var userDraw = context.draw; + if (typeof userDraw === 'function') { + if (typeof userSetup === 'undefined') { + context.scale(context._pixelDensity, context._pixelDensity); + } + var callMethod = function callMethod(f) { + f.call(context); + }; + for (var idxRedraw = 0; idxRedraw < numberOfRedraws; idxRedraw++) { + context.resetMatrix(); + if (context._renderer.isP3D) { + context._renderer._update(); + } + context._setProperty('frameCount', context.frameCount + 1); + context._registeredMethods.pre.forEach(callMethod); + this._inUserDraw = true; + try { + userDraw(); + } finally { + this._inUserDraw = false; + } + context._registeredMethods.post.forEach(callMethod); + } + } + }; + + module.exports = p5; + }, + { './main': 24 } + ], + 36: [ + function(_dereq_, module, exports) { + /** + * @module Transform + * @submodule Transform + * @for p5 + * @requires core + * @requires constants + */ + + 'use strict'; + + var p5 = _dereq_('./main'); + + /** + * Multiplies the current matrix by the one specified through the parameters. + * This is a powerful operation that can perform the equivalent of translate, + * scale, shear and rotate all at once. You can learn more about transformation + * matrices on + * Wikipedia. + * + * The naming of the arguments here follows the naming of the + * WHATWG specification and corresponds to a + * transformation matrix of the + * form: + * + * > The transformation matrix used when applyMatrix is called + * + * @method applyMatrix + * @param {Number} a numbers which define the 2x3 matrix to be multiplied + * @param {Number} b numbers which define the 2x3 matrix to be multiplied + * @param {Number} c numbers which define the 2x3 matrix to be multiplied + * @param {Number} d numbers which define the 2x3 matrix to be multiplied + * @param {Number} e numbers which define the 2x3 matrix to be multiplied + * @param {Number} f numbers which define the 2x3 matrix to be multiplied + * @chainable + * @example + *
+ * + * function setup() { + * frameRate(10); + * rectMode(CENTER); + * } + * + * function draw() { + * var step = frameCount % 20; + * background(200); + * // Equivalent to translate(x, y); + * applyMatrix(1, 0, 0, 1, 40 + step, 50); + * rect(0, 0, 50, 50); + * } + * + *
+ *
+ * + * function setup() { + * frameRate(10); + * rectMode(CENTER); + * } + * + * function draw() { + * var step = frameCount % 20; + * background(200); + * translate(50, 50); + * // Equivalent to scale(x, y); + * applyMatrix(1 / step, 0, 0, 1 / step, 0, 0); + * rect(0, 0, 50, 50); + * } + * + *
+ *
+ * + * function setup() { + * frameRate(10); + * rectMode(CENTER); + * } + * + * function draw() { + * var step = frameCount % 20; + * var angle = map(step, 0, 20, 0, TWO_PI); + * var cos_a = cos(angle); + * var sin_a = sin(angle); + * background(200); + * translate(50, 50); + * // Equivalent to rotate(angle); + * applyMatrix(cos_a, sin_a, -sin_a, cos_a, 0, 0); + * rect(0, 0, 50, 50); + * } + * + *
+ *
+ * + * function setup() { + * frameRate(10); + * rectMode(CENTER); + * } + * + * function draw() { + * var step = frameCount % 20; + * var angle = map(step, 0, 20, -PI / 4, PI / 4); + * background(200); + * translate(50, 50); + * // equivalent to shearX(angle); + * var shear_factor = 1 / tan(PI / 2 - angle); + * applyMatrix(1, 0, shear_factor, 1, 0, 0); + * rect(0, 0, 50, 50); + * } + * + *
+ *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * noFill(); + * } + * + * function draw() { + * background(200); + * rotateY(PI / 6); + * stroke(153); + * box(35); + * var rad = millis() / 1000; + * // Set rotation angles + * var ct = cos(rad); + * var st = sin(rad); + * // Matrix for rotation around the Y axis + * // prettier-ignore + * applyMatrix( ct, 0.0, st, 0.0, + * 0.0, 1.0, 0.0, 0.0, + * -st, 0.0, ct, 0.0, + * 0.0, 0.0, 0.0, 1.0); + * stroke(255); + * box(50); + * } + * + *
+ * + * @alt + * A rectangle translating to the right + * A rectangle shrinking to the center + * A rectangle rotating clockwise about the center + * A rectangle shearing + * + */ + p5.prototype.applyMatrix = function(a, b, c, d, e, f) { + this._renderer.applyMatrix.apply(this._renderer, arguments); + return this; + }; + + /** + * Replaces the current matrix with the identity matrix. + * + * @method resetMatrix + * @chainable + * @example + *
+ * + * translate(50, 50); + * applyMatrix(0.5, 0.5, -0.5, 0.5, 0, 0); + * rect(0, 0, 20, 20); + * // Note that the translate is also reset. + * resetMatrix(); + * rect(0, 0, 20, 20); + * + *
+ * + * @alt + * A rotated retangle in the center with another at the top left corner + * + */ + p5.prototype.resetMatrix = function() { + this._renderer.resetMatrix(); + return this; + }; + + /** + * Rotates a shape the amount specified by the angle parameter. This + * function accounts for angleMode, so angles can be entered in either + * RADIANS or DEGREES. + *

+ * Objects are always rotated around their relative position to the + * origin and positive numbers rotate objects in a clockwise direction. + * Transformations apply to everything that happens after and subsequent + * calls to the function accumulates the effect. For example, calling + * rotate(HALF_PI) and then rotate(HALF_PI) is the same as rotate(PI). + * All tranformations are reset when draw() begins again. + *

+ * Technically, rotate() multiplies the current transformation matrix + * by a rotation matrix. This function can be further controlled by + * the push() and pop(). + * + * @method rotate + * @param {Number} angle the angle of rotation, specified in radians + * or degrees, depending on current angleMode + * @param {p5.Vector|Number[]} [axis] (in 3d) the axis to rotate around + * @chainable + * @example + *
+ * + * translate(width / 2, height / 2); + * rotate(PI / 3.0); + * rect(-26, -26, 52, 52); + * + *
+ * + * @alt + * white 52x52 rect with black outline at center rotated counter 45 degrees + * + */ + p5.prototype.rotate = function(angle, axis) { + p5._validateParameters('rotate', arguments); + this._renderer.rotate(this._toRadians(angle), axis); + return this; + }; + + /** + * Rotates around X axis. + * @method rotateX + * @param {Number} angle the angle of rotation, specified in radians + * or degrees, depending on current angleMode + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * function draw() { + * background(255); + * rotateX(millis() / 1000); + * box(); + * } + * + *
+ * + * @alt + * 3d box rotating around the x axis. + */ + p5.prototype.rotateX = function(angle) { + this._assert3d('rotateX'); + p5._validateParameters('rotateX', arguments); + this._renderer.rotateX(this._toRadians(angle)); + return this; + }; + + /** + * Rotates around Y axis. + * @method rotateY + * @param {Number} angle the angle of rotation, specified in radians + * or degrees, depending on current angleMode + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * function draw() { + * background(255); + * rotateY(millis() / 1000); + * box(); + * } + * + *
+ * + * @alt + * 3d box rotating around the y axis. + */ + p5.prototype.rotateY = function(angle) { + this._assert3d('rotateY'); + p5._validateParameters('rotateY', arguments); + this._renderer.rotateY(this._toRadians(angle)); + return this; + }; + + /** + * Rotates around Z axis. Webgl mode only. + * @method rotateZ + * @param {Number} angle the angle of rotation, specified in radians + * or degrees, depending on current angleMode + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * function draw() { + * background(255); + * rotateZ(millis() / 1000); + * box(); + * } + * + *
+ * + * @alt + * 3d box rotating around the z axis. + */ + p5.prototype.rotateZ = function(angle) { + this._assert3d('rotateZ'); + p5._validateParameters('rotateZ', arguments); + this._renderer.rotateZ(this._toRadians(angle)); + return this; + }; + + /** + * Increases or decreases the size of a shape by expanding and contracting + * vertices. Objects always scale from their relative origin to the + * coordinate system. Scale values are specified as decimal percentages. + * For example, the function call scale(2.0) increases the dimension of a + * shape by 200%. + *

+ * Transformations apply to everything that happens after and subsequent + * calls to the function multiply the effect. For example, calling scale(2.0) + * and then scale(1.5) is the same as scale(3.0). If scale() is called + * within draw(), the transformation is reset when the loop begins again. + *

+ * Using this function with the z parameter is only available in WEBGL mode. + * This function can be further controlled with push() and pop(). + * + * @method scale + * @param {Number|p5.Vector|Number[]} s + * percent to scale the object, or percentage to + * scale the object in the x-axis if multiple arguments + * are given + * @param {Number} [y] percent to scale the object in the y-axis + * @param {Number} [z] percent to scale the object in the z-axis (webgl only) + * @chainable + * @example + *
+ * + * rect(30, 20, 50, 50); + * scale(0.5); + * rect(30, 20, 50, 50); + * + *
+ * + *
+ * + * rect(30, 20, 50, 50); + * scale(0.5, 1.3); + * rect(30, 20, 50, 50); + * + *
+ * + * @alt + * white 52x52 rect with black outline at center rotated counter 45 degrees + * 2 white rects with black outline- 1 50x50 at center. other 25x65 bottom left + * + */ + /** + * @method scale + * @param {p5.Vector|Number[]} scales per-axis percents to scale the object + * @chainable + */ + p5.prototype.scale = function(x, y, z) { + p5._validateParameters('scale', arguments); + // Only check for Vector argument type if Vector is available + if (x instanceof p5.Vector) { + var v = x; + x = v.x; + y = v.y; + z = v.z; + } else if (x instanceof Array) { + var rg = x; + x = rg[0]; + y = rg[1]; + z = rg[2] || 1; + } + if (isNaN(y)) { + y = z = x; + } else if (isNaN(z)) { + z = 1; + } + + this._renderer.scale.call(this._renderer, x, y, z); + + return this; + }; + + /** + * Shears a shape around the x-axis the amount specified by the angle + * parameter. Angles should be specified in the current angleMode. + * Objects are always sheared around their relative position to the origin + * and positive numbers shear objects in a clockwise direction. + *

+ * Transformations apply to everything that happens after and subsequent + * calls to the function accumulates the effect. For example, calling + * shearX(PI/2) and then shearX(PI/2) is the same as shearX(PI). + * If shearX() is called within the draw(), the transformation is reset when + * the loop begins again. + *

+ * Technically, shearX() multiplies the current transformation matrix by a + * rotation matrix. This function can be further controlled by the + * push() and pop() functions. + * + * @method shearX + * @param {Number} angle angle of shear specified in radians or degrees, + * depending on current angleMode + * @chainable + * @example + *
+ * + * translate(width / 4, height / 4); + * shearX(PI / 4.0); + * rect(0, 0, 30, 30); + * + *
+ * + * @alt + * white irregular quadrilateral with black outline at top middle. + * + */ + p5.prototype.shearX = function(angle) { + p5._validateParameters('shearX', arguments); + var rad = this._toRadians(angle); + this._renderer.applyMatrix(1, 0, Math.tan(rad), 1, 0, 0); + return this; + }; + + /** + * Shears a shape around the y-axis the amount specified by the angle + * parameter. Angles should be specified in the current angleMode. Objects + * are always sheared around their relative position to the origin and + * positive numbers shear objects in a clockwise direction. + *

+ * Transformations apply to everything that happens after and subsequent + * calls to the function accumulates the effect. For example, calling + * shearY(PI/2) and then shearY(PI/2) is the same as shearY(PI). If + * shearY() is called within the draw(), the transformation is reset when + * the loop begins again. + *

+ * Technically, shearY() multiplies the current transformation matrix by a + * rotation matrix. This function can be further controlled by the + * push() and pop() functions. + * + * @method shearY + * @param {Number} angle angle of shear specified in radians or degrees, + * depending on current angleMode + * @chainable + * @example + *
+ * + * translate(width / 4, height / 4); + * shearY(PI / 4.0); + * rect(0, 0, 30, 30); + * + *
+ * + * @alt + * white irregular quadrilateral with black outline at middle bottom. + * + */ + p5.prototype.shearY = function(angle) { + p5._validateParameters('shearY', arguments); + var rad = this._toRadians(angle); + this._renderer.applyMatrix(1, Math.tan(rad), 0, 1, 0, 0); + return this; + }; + + /** + * Specifies an amount to displace objects within the display window. + * The x parameter specifies left/right translation, the y parameter + * specifies up/down translation. + *

+ * Transformations are cumulative and apply to everything that happens after + * and subsequent calls to the function accumulates the effect. For example, + * calling translate(50, 0) and then translate(20, 0) is the same as + * translate(70, 0). If translate() is called within draw(), the + * transformation is reset when the loop begins again. This function can be + * further controlled by using push() and pop(). + * + * @method translate + * @param {Number} x left/right translation + * @param {Number} y up/down translation + * @param {Number} [z] forward/backward translation (webgl only) + * @chainable + * @example + *
+ * + * translate(30, 20); + * rect(0, 0, 55, 55); + * + *
+ * + *
+ * + * rect(0, 0, 55, 55); // Draw rect at original 0,0 + * translate(30, 20); + * rect(0, 0, 55, 55); // Draw rect at new 0,0 + * translate(14, 14); + * rect(0, 0, 55, 55); // Draw rect at new 0,0 + * + *
+ * + + *
+ * + * function draw() { + * background(200); + * rectMode(CENTER); + * translate(width / 2, height / 2); + * translate(p5.Vector.fromAngle(millis() / 1000, 40)); + * rect(0, 0, 20, 20); + * } + * + *
+ * + * @alt + * white 55x55 rect with black outline at center right. + * 3 white 55x55 rects with black outlines at top-l, center-r and bottom-r. + * a 20x20 white rect moving in a circle around the canvas + * + */ + /** + * @method translate + * @param {p5.Vector} vector the vector to translate by + * @chainable + */ + p5.prototype.translate = function(x, y, z) { + p5._validateParameters('translate', arguments); + if (this._renderer.isP3D) { + this._renderer.translate(x, y, z); + } else { + this._renderer.translate(x, y); + } + return this; + }; + + module.exports = p5; + }, + { './main': 24 } + ], + 37: [ + function(_dereq_, module, exports) { + /** + * @module Data + * @submodule LocalStorage + * @requires core + * + * This module defines the p5 methods for working with local storage + */ + + 'use strict'; + function _typeof(obj) { + if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && + typeof Symbol === 'function' && + obj.constructor === Symbol && + obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }; + } + return _typeof(obj); + } + var p5 = _dereq_('../core/main'); + /** + * + * Stores a value in local storage under the key name. + * Local storage is saved in the browser and persists + * between browsing sessions and page reloads. + * The key can be the name of the variable but doesn't + * have to be. To retrieve stored items + * see getItem. + *

+ * Sensitive data such as passwords or personal information + * should not be stored in local storage. + * + * @method storeItem + * @for p5 + * @param {String} key + * @param {String|Number|Object|Boolean|p5.Color} value + * + * @example + *
+ * // Type to change the letter in the + * // center of the canvas. + * // If you reload the page, it will + * // still display the last key you entered + * + * let myText; + * + * function setup() { + * createCanvas(100, 100); + * myText = getItem('myText'); + * if (myText === null) { + * myText = ''; + * } + * } + * + * function draw() { + * textSize(40); + * background(255); + * text(myText, width / 2, height / 2); + * } + * + * function keyPressed() { + * myText = key; + * storeItem('myText', myText); + * } + *
+ * + * @alt + * When you type the key name is displayed as black text on white background. + * If you reload the page, the last letter typed is still displaying. + * + */ + p5.prototype.storeItem = function(key, value) { + if (typeof value === 'undefined') { + console.log('You cannot store undefined variables using storeItem()'); + } + var type = _typeof(value); + switch (type) { + case 'number': + case 'boolean': + value = value.toString(); + break; + case 'object': + if (value instanceof p5.Color) { + type = 'p5.Color'; + } + value = JSON.stringify(value); + break; + case 'string': + default: + break; + } + + localStorage.setItem(key, value); + var typeKey = key + 'p5TypeID'; + localStorage.setItem(typeKey, type); + }; + + /** + * + * Returns the value of an item that was stored in local storage + * using storeItem() + * + * @method getItem + * @for p5 + * @param {String} key name that you wish to use to store in local storage + * @return {Number|Object|String|Boolean|p5.Color} Value of stored item + * + * @example + *
+ * // Click the mouse to change + * // the color of the background + * // Once you have changed the color + * // it will stay changed even when you + * // reload the page. + * + * let myColor; + * + * function setup() { + * createCanvas(100, 100); + * myColor = getItem('myColor'); + * } + * + * function draw() { + * if (myColor !== null) { + * background(myColor); + * } + * } + * + * function mousePressed() { + * myColor = color(random(255), random(255), random(255)); + * storeItem('myColor', myColor); + * } + *
+ * + * @alt + * If you click, the canvas changes to a random color. + * If you reload the page, the canvas is still the color it + * was when the page was previously loaded. + * + */ + p5.prototype.getItem = function(key) { + var value = localStorage.getItem(key); + var type = localStorage.getItem(key + 'p5TypeID'); + if (typeof type === 'undefined') { + console.log( + 'Unable to determine type of item stored under ' + + key + + 'in local storage. Did you save the item with something other than setItem()?' + ); + } else if (value !== null) { + switch (type) { + case 'number': + value = parseInt(value); + break; + case 'boolean': + value = value === 'true'; + break; + case 'object': + value = JSON.parse(value); + break; + case 'p5.Color': + value = JSON.parse(value); + value = this.color.apply(this, value.levels); + break; + case 'string': + default: + break; + } + } + return value; + }; + + /** + * + * Clears all local storage items set with storeItem() + * for the current domain. + * + * @method clearStorage + * @for p5 + * + * @example + *
+ * + * function setup() { + * let myNum = 10; + * let myBool = false; + * storeItem('myNum', myNum); + * storeItem('myBool', myBool); + * print(getItem('myNum')); // logs 10 to the console + * print(getItem('myBool')); // logs false to the console + * clearStorage(); + * print(getItem('myNum')); // logs null to the console + * print(getItem('myBool')); // logs null to the console + * } + *
+ */ + p5.prototype.clearStorage = function() { + localStorage.clear(); + }; + + /** + * + * Removes an item that was stored with storeItem() + * + * @method removeItem + * @param {String} key + * @for p5 + * + * @example + *
+ * + * function setup() { + * let myVar = 10; + * storeItem('myVar', myVar); + * print(getItem('myVar')); // logs 10 to the console + * removeItem('myVar'); + * print(getItem('myVar')); // logs null to the console + * } + *
+ */ + p5.prototype.removeItem = function(key) { + if (typeof key !== 'string') { + console.log( + 'The argument that you passed to removeItem() - ' + + key + + ' is not a string.' + ); + } + localStorage.removeItem(key); + localStorage.removeItem(key + 'p5TypeID'); + }; + }, + { '../core/main': 24 } + ], + 38: [ + function(_dereq_, module, exports) { + /** + * @module Data + * @submodule Dictionary + * @for p5.TypedDict + * @requires core + * + * This module defines the p5 methods for the p5 Dictionary classes. + * The classes StringDict and NumberDict are for storing and working + * with key-value pairs. + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + /** + * + * Creates a new instance of p5.StringDict using the key-value pair + * or the object you provide. + * + * @method createStringDict + * @for p5 + * @param {String} key + * @param {String} value + * @return {p5.StringDict} + * + * @example + *
+ * + * function setup() { + * let myDictionary = createStringDict('p5', 'js'); + * print(myDictionary.hasKey('p5')); // logs true to console + * + * let anotherDictionary = createStringDict({ happy: 'coding' }); + * print(anotherDictionary.hasKey('happy')); // logs true to console + * } + *
+ */ + /** + * @method createStringDict + * @param {Object} object object + * @return {p5.StringDict} + */ + + p5.prototype.createStringDict = function(key, value) { + p5._validateParameters('createStringDict', arguments); + return new p5.StringDict(key, value); + }; + + /** + * + * Creates a new instance of p5.NumberDict using the key-value pair + * or object you provide. + * + * @method createNumberDict + * @for p5 + * @param {Number} key + * @param {Number} value + * @return {p5.NumberDict} + * + * @example + *
+ * + * function setup() { + * let myDictionary = createNumberDict(100, 42); + * print(myDictionary.hasKey(100)); // logs true to console + * + * let anotherDictionary = createNumberDict({ 200: 84 }); + * print(anotherDictionary.hasKey(200)); // logs true to console + * } + *
+ */ + /** + * @method createNumberDict + * @param {Object} object object + * @return {p5.NumberDict} + */ + + p5.prototype.createNumberDict = function(key, value) { + p5._validateParameters('createNumberDict', arguments); + return new p5.NumberDict(key, value); + }; + + /** + * + * Base class for all p5.Dictionary types. Specifically + * typed Dictionary classes inherit from this class. + * + * @class p5.TypedDict + * + */ + + p5.TypedDict = function(key, value) { + if (key instanceof Object) { + this.data = key; + } else { + this.data = {}; + this.data[key] = value; + } + return this; + }; + + /** + * Returns the number of key-value pairs currently stored in the Dictionary. + * + * @method size + * @return {Integer} the number of key-value pairs in the Dictionary + * + * @example + *
+ * + * function setup() { + * let myDictionary = createNumberDict(1, 10); + * myDictionary.create(2, 20); + * myDictionary.create(3, 30); + * print(myDictionary.size()); // logs 3 to the console + * } + *
+ * + */ + p5.TypedDict.prototype.size = function() { + return Object.keys(this.data).length; + }; + + /** + * Returns true if the given key exists in the Dictionary, + * otherwise returns false. + * + * @method hasKey + * @param {Number|String} key that you want to look up + * @return {Boolean} whether that key exists in Dictionary + * + * @example + *
+ * + * function setup() { + * let myDictionary = createStringDict('p5', 'js'); + * print(myDictionary.hasKey('p5')); // logs true to console + * } + *
+ * + */ + + p5.TypedDict.prototype.hasKey = function(key) { + return this.data.hasOwnProperty(key); + }; + + /** + * Returns the value stored at the given key. + * + * @method get + * @param {Number|String} the key you want to access + * @return {Number|String} the value stored at that key + * + * @example + *
+ * + * function setup() { + * let myDictionary = createStringDict('p5', 'js'); + * let myValue = myDictionary.get('p5'); + * print(myValue === 'js'); // logs true to console + * } + *
+ * + */ + + p5.TypedDict.prototype.get = function(key) { + if (this.data.hasOwnProperty(key)) { + return this.data[key]; + } else { + console.log(key + ' does not exist in this Dictionary'); + } + }; + + /** + * Updates the value associated with the given key in case it already exists + * in the Dictionary. Otherwise a new key-value pair is added. + * + * @method set + * @param {Number|String} key + * @param {Number|String} value + * + * @example + *
+ * + * function setup() { + * let myDictionary = createStringDict('p5', 'js'); + * myDictionary.set('p5', 'JS'); + * myDictionary.print(); // logs "key: p5 - value: JS" to console + * } + *
+ * + */ + + p5.TypedDict.prototype.set = function(key, value) { + if (this._validate(value)) { + this.data[key] = value; + } else { + console.log('Those values dont work for this dictionary type.'); + } + }; + + /** + * private helper function to handle the user passing in objects + * during construction or calls to create() + */ + + p5.TypedDict.prototype._addObj = function(obj) { + for (var key in obj) { + this.set(key, obj[key]); + } + }; + + /** + * Creates a new key-value pair in the Dictionary. + * + * @method create + * @param {Number|String} key + * @param {Number|String} value + * + * @example + *
+ * + * function setup() { + * let myDictionary = createStringDict('p5', 'js'); + * myDictionary.create('happy', 'coding'); + * myDictionary.print(); + * // above logs "key: p5 - value: js, key: happy - value: coding" to console + * } + *
+ */ + /** + * @method create + * @param {Object} obj key/value pair + */ + + p5.TypedDict.prototype.create = function(key, value) { + if (key instanceof Object && typeof value === 'undefined') { + this._addObj(key); + } else if (typeof key !== 'undefined') { + this.set(key, value); + } else { + console.log( + 'In order to create a new Dictionary entry you must pass ' + + 'an object or a key, value pair' + ); + } + }; + + /** + * Removes all previously stored key-value pairs from the Dictionary. + * + * @method clear + * @example + *
+ * + * function setup() { + * let myDictionary = createStringDict('p5', 'js'); + * print(myDictionary.hasKey('p5')); // prints 'true' + * myDictionary.clear(); + * print(myDictionary.hasKey('p5')); // prints 'false' + * } + * + *
+ */ + + p5.TypedDict.prototype.clear = function() { + this.data = {}; + }; + + /** + * Removes the key-value pair stored at the given key from the Dictionary. + * + * @method remove + * @param {Number|String} key for the pair to remove + * + * @example + *
+ * + * function setup() { + * let myDictionary = createStringDict('p5', 'js'); + * myDictionary.create('happy', 'coding'); + * myDictionary.print(); + * // above logs "key: p5 - value: js, key: happy - value: coding" to console + * myDictionary.remove('p5'); + * myDictionary.print(); + * // above logs "key: happy value: coding" to console + * } + *
+ * + */ + + p5.TypedDict.prototype.remove = function(key) { + if (this.data.hasOwnProperty(key)) { + delete this.data[key]; + } else { + throw new Error(key + ' does not exist in this Dictionary'); + } + }; + + /** + * Logs the set of items currently stored in the Dictionary to the console. + * + * @method print + * + * @example + *
+ * + * function setup() { + * let myDictionary = createStringDict('p5', 'js'); + * myDictionary.create('happy', 'coding'); + * myDictionary.print(); + * // above logs "key: p5 - value: js, key: happy - value: coding" to console + * } + * + *
+ */ + + p5.TypedDict.prototype.print = function() { + for (var item in this.data) { + console.log('key:' + item + ' value:' + this.data[item]); + } + }; + + /** + * Converts the Dictionary into a CSV file for local download. + * + * @method saveTable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100); + * background(200); + * text('click here to save', 10, 10, 70, 80); + * } + * + * function mousePressed() { + * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { + * createStringDict({ + * john: 1940, + * paul: 1942, + * george: 1943, + * ringo: 1940 + * }).saveTable('beatles'); + * } + * } + * + *
+ */ + + p5.TypedDict.prototype.saveTable = function(filename) { + var output = ''; + + for (var key in this.data) { + output += key + ',' + this.data[key] + '\n'; + } + + var blob = new Blob([output], { type: 'text/csv' }); + p5.prototype.downloadFile(blob, filename || 'mycsv', 'csv'); + }; + + /** + * Converts the Dictionary into a JSON file for local download. + * + * @method saveJSON + * @example + *
+ * + * function setup() { + * createCanvas(100, 100); + * background(200); + * text('click here to save', 10, 10, 70, 80); + * } + * + * function mousePressed() { + * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { + * createStringDict({ + * john: 1940, + * paul: 1942, + * george: 1943, + * ringo: 1940 + * }).saveJSON('beatles'); + * } + * } + * + *
+ */ + + p5.TypedDict.prototype.saveJSON = function(filename, opt) { + p5.prototype.saveJSON(this.data, filename, opt); + }; + + /** + * private helper function to ensure that the user passed in valid + * values for the Dictionary type + */ + + p5.TypedDict.prototype._validate = function(value) { + return true; + }; + + /** + * + * A simple Dictionary class for Strings. + * + * @class p5.StringDict + * @extends p5.TypedDict + * + */ + + p5.StringDict = function() { + p5.TypedDict.apply(this, arguments); + }; + + p5.StringDict.prototype = Object.create(p5.TypedDict.prototype); + + p5.StringDict.prototype._validate = function(value) { + return typeof value === 'string'; + }; + + /** + * + * A simple Dictionary class for Numbers. + * + * @class p5.NumberDict + * @extends p5.TypedDict + * + */ + + p5.NumberDict = function() { + p5.TypedDict.apply(this, arguments); + }; + + p5.NumberDict.prototype = Object.create(p5.TypedDict.prototype); + + /** + * private helper function to ensure that the user passed in valid + * values for the Dictionary type + */ + + p5.NumberDict.prototype._validate = function(value) { + return typeof value === 'number'; + }; + + /** + * Add the given number to the value currently stored at the given key. + * The sum then replaces the value previously stored in the Dictionary. + * + * @method add + * @param {Number} Key for the value you wish to add to + * @param {Number} Number to add to the value + * @example + *
+ * + * function setup() { + * let myDictionary = createNumberDict(2, 5); + * myDictionary.add(2, 2); + * print(myDictionary.get(2)); // logs 7 to console. + * } + *
+ * + * + */ + + p5.NumberDict.prototype.add = function(key, amount) { + if (this.data.hasOwnProperty(key)) { + this.data[key] += amount; + } else { + console.log('The key - ' + key + ' does not exist in this dictionary.'); + } + }; + + /** + * Subtract the given number from the value currently stored at the given key. + * The difference then replaces the value previously stored in the Dictionary. + * + * @method sub + * @param {Number} Key for the value you wish to subtract from + * @param {Number} Number to subtract from the value + * @example + *
+ * + * function setup() { + * let myDictionary = createNumberDict(2, 5); + * myDictionary.sub(2, 2); + * print(myDictionary.get(2)); // logs 3 to console. + * } + *
+ * + * + */ + + p5.NumberDict.prototype.sub = function(key, amount) { + this.add(key, -amount); + }; + + /** + * Multiply the given number with the value currently stored at the given key. + * The product then replaces the value previously stored in the Dictionary. + * + * @method mult + * @param {Number} Key for value you wish to multiply + * @param {Number} Amount to multiply the value by + * @example + *
+ * + * function setup() { + * let myDictionary = createNumberDict(2, 4); + * myDictionary.mult(2, 2); + * print(myDictionary.get(2)); // logs 8 to console. + * } + *
+ * + * + */ + + p5.NumberDict.prototype.mult = function(key, amount) { + if (this.data.hasOwnProperty(key)) { + this.data[key] *= amount; + } else { + console.log('The key - ' + key + ' does not exist in this dictionary.'); + } + }; + + /** + * Divide the given number with the value currently stored at the given key. + * The quotient then replaces the value previously stored in the Dictionary. + * + * @method div + * @param {Number} Key for value you wish to divide + * @param {Number} Amount to divide the value by + * @example + *
+ * + * function setup() { + * let myDictionary = createNumberDict(2, 8); + * myDictionary.div(2, 2); + * print(myDictionary.get(2)); // logs 4 to console. + * } + *
+ * + * + */ + + p5.NumberDict.prototype.div = function(key, amount) { + if (this.data.hasOwnProperty(key)) { + this.data[key] /= amount; + } else { + console.log('The key - ' + key + ' does not exist in this dictionary.'); + } + }; + + /** + * private helper function for finding lowest or highest value + * the argument 'flip' is used to flip the comparison arrow + * from 'less than' to 'greater than' + * + */ + + p5.NumberDict.prototype._valueTest = function(flip) { + if (Object.keys(this.data).length === 0) { + throw new Error( + 'Unable to search for a minimum or maximum value on an empty NumberDict' + ); + } else if (Object.keys(this.data).length === 1) { + return this.data[Object.keys(this.data)[0]]; + } else { + var result = this.data[Object.keys(this.data)[0]]; + for (var key in this.data) { + if (this.data[key] * flip < result * flip) { + result = this.data[key]; + } + } + return result; + } + }; + + /** + * Return the lowest number currently stored in the Dictionary. + * + * @method minValue + * @return {Number} + * @example + *
+ * + * function setup() { + * let myDictionary = createNumberDict({ 2: -10, 4: 0.65, 1.2: 3 }); + * let lowestValue = myDictionary.minValue(); // value is -10 + * print(lowestValue); + * } + *
+ * + */ + + p5.NumberDict.prototype.minValue = function() { + return this._valueTest(1); + }; + + /** + * Return the highest number currently stored in the Dictionary. + * + * @method maxValue + * @return {Number} + * @example + *
+ * + * function setup() { + * let myDictionary = createNumberDict({ 2: -10, 4: 0.65, 1.2: 3 }); + * let highestValue = myDictionary.maxValue(); // value is 3 + * print(highestValue); + * } + *
+ * + */ + + p5.NumberDict.prototype.maxValue = function() { + return this._valueTest(-1); + }; + + /** + * private helper function for finding lowest or highest key + * the argument 'flip' is used to flip the comparison arrow + * from 'less than' to 'greater than' + * + */ + + p5.NumberDict.prototype._keyTest = function(flip) { + if (Object.keys(this.data).length === 0) { + throw new Error('Unable to use minValue on an empty NumberDict'); + } else if (Object.keys(this.data).length === 1) { + return Object.keys(this.data)[0]; + } else { + var result = Object.keys(this.data)[0]; + for (var i = 1; i < Object.keys(this.data).length; i++) { + if (Object.keys(this.data)[i] * flip < result * flip) { + result = Object.keys(this.data)[i]; + } + } + return result; + } + }; + + /** + * Return the lowest key currently used in the Dictionary. + * + * @method minKey + * @return {Number} + * @example + *
+ * + * function setup() { + * let myDictionary = createNumberDict({ 2: 4, 4: 6, 1.2: 3 }); + * let lowestKey = myDictionary.minKey(); // value is 1.2 + * print(lowestKey); + * } + *
+ * + */ + + p5.NumberDict.prototype.minKey = function() { + return this._keyTest(1); + }; + + /** + * Return the highest key currently used in the Dictionary. + * + * @method maxKey + * @return {Number} + * @example + *
+ * + * function setup() { + * let myDictionary = createNumberDict({ 2: 4, 4: 6, 1.2: 3 }); + * let highestKey = myDictionary.maxKey(); // value is 4 + * print(highestKey); + * } + *
+ * + */ + + p5.NumberDict.prototype.maxKey = function() { + return this._keyTest(-1); + }; + + module.exports = p5.TypedDict; + }, + { '../core/main': 24 } + ], + 39: [ + function(_dereq_, module, exports) { + /** + * @module Events + * @submodule Acceleration + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + /** + * The system variable deviceOrientation always contains the orientation of + * the device. The value of this variable will either be set 'landscape' + * or 'portrait'. If no data is available it will be set to 'undefined'. + * either LANDSCAPE or PORTRAIT. + * + * @property {Constant} deviceOrientation + * @readOnly + */ + p5.prototype.deviceOrientation = undefined; + + /** + * The system variable accelerationX always contains the acceleration of the + * device along the x axis. Value is represented as meters per second squared. + * + * @property {Number} accelerationX + * @readOnly + * @example + *
+ * + * // Move a touchscreen device to register + * // acceleration changes. + * function draw() { + * background(220, 50); + * fill('magenta'); + * ellipse(width / 2, height / 2, accelerationX); + * } + * + *
+ * @alt + * Magnitude of device acceleration is displayed as ellipse size + */ + p5.prototype.accelerationX = 0; + + /** + * The system variable accelerationY always contains the acceleration of the + * device along the y axis. Value is represented as meters per second squared. + * + * @property {Number} accelerationY + * @readOnly + * @example + *
+ * + * // Move a touchscreen device to register + * // acceleration changes. + * function draw() { + * background(220, 50); + * fill('magenta'); + * ellipse(width / 2, height / 2, accelerationY); + * } + * + *
+ * @alt + * Magnitude of device acceleration is displayed as ellipse size + */ + p5.prototype.accelerationY = 0; + + /** + * The system variable accelerationZ always contains the acceleration of the + * device along the z axis. Value is represented as meters per second squared. + * + * @property {Number} accelerationZ + * @readOnly + * + * @example + *
+ * + * // Move a touchscreen device to register + * // acceleration changes. + * function draw() { + * background(220, 50); + * fill('magenta'); + * ellipse(width / 2, height / 2, accelerationZ); + * } + * + *
+ * + * @alt + * Magnitude of device acceleration is displayed as ellipse size + */ + p5.prototype.accelerationZ = 0; + + /** + * The system variable pAccelerationX always contains the acceleration of the + * device along the x axis in the frame previous to the current frame. Value + * is represented as meters per second squared. + * + * @property {Number} pAccelerationX + * @readOnly + */ + p5.prototype.pAccelerationX = 0; + + /** + * The system variable pAccelerationY always contains the acceleration of the + * device along the y axis in the frame previous to the current frame. Value + * is represented as meters per second squared. + * + * @property {Number} pAccelerationY + * @readOnly + */ + p5.prototype.pAccelerationY = 0; + + /** + * The system variable pAccelerationZ always contains the acceleration of the + * device along the z axis in the frame previous to the current frame. Value + * is represented as meters per second squared. + * + * @property {Number} pAccelerationZ + * @readOnly + */ + p5.prototype.pAccelerationZ = 0; + + /** + * _updatePAccelerations updates the pAcceleration values + * + * @private + */ + p5.prototype._updatePAccelerations = function() { + this._setProperty('pAccelerationX', this.accelerationX); + this._setProperty('pAccelerationY', this.accelerationY); + this._setProperty('pAccelerationZ', this.accelerationZ); + }; + + /** + * The system variable rotationX always contains the rotation of the + * device along the x axis. Value is represented as 0 to +/-180 degrees. + *

+ * Note: The order the rotations are called is important, ie. if used + * together, it must be called in the order Z-X-Y or there might be + * unexpected behaviour. + * + * @property {Number} rotationX + * @readOnly + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(200); + * //rotateZ(radians(rotationZ)); + * rotateX(radians(rotationX)); + * //rotateY(radians(rotationY)); + * box(200, 200, 200); + * } + * + *
+ * @alt + * red horizontal line right, green vertical line bottom. black background. + */ + p5.prototype.rotationX = 0; + + /** + * The system variable rotationY always contains the rotation of the + * device along the y axis. Value is represented as 0 to +/-90 degrees. + *

+ * Note: The order the rotations are called is important, ie. if used + * together, it must be called in the order Z-X-Y or there might be + * unexpected behaviour. + * + * @property {Number} rotationY + * @readOnly + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(200); + * //rotateZ(radians(rotationZ)); + * //rotateX(radians(rotationX)); + * rotateY(radians(rotationY)); + * box(200, 200, 200); + * } + * + *
+ * @alt + * red horizontal line right, green vertical line bottom. black background. + */ + p5.prototype.rotationY = 0; + + /** + * The system variable rotationZ always contains the rotation of the + * device along the z axis. Value is represented as 0 to 359 degrees. + *

+ * Unlike rotationX and rotationY, this variable is available for devices + * with a built-in compass only. + *

+ * Note: The order the rotations are called is important, ie. if used + * together, it must be called in the order Z-X-Y or there might be + * unexpected behaviour. + * + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(200); + * rotateZ(radians(rotationZ)); + * //rotateX(radians(rotationX)); + * //rotateY(radians(rotationY)); + * box(200, 200, 200); + * } + * + *
+ * + * @property {Number} rotationZ + * @readOnly + * + * @alt + * red horizontal line right, green vertical line bottom. black background. + */ + p5.prototype.rotationZ = 0; + + /** + * The system variable pRotationX always contains the rotation of the + * device along the x axis in the frame previous to the current frame. Value + * is represented as 0 to +/-180 degrees. + *

+ * pRotationX can also be used with rotationX to determine the rotate + * direction of the device along the X-axis. + * @example + *
+ * + * // A simple if statement looking at whether + * // rotationX - pRotationX < 0 is true or not will be + * // sufficient for determining the rotate direction + * // in most cases. + * + * // Some extra logic is needed to account for cases where + * // the angles wrap around. + * let rotateDirection = 'clockwise'; + * + * // Simple range conversion to make things simpler. + * // This is not absolutely necessary but the logic + * // will be different in that case. + * + * let rX = rotationX + 180; + * let pRX = pRotationX + 180; + * + * if ((rX - pRX > 0 && rX - pRX < 270) || rX - pRX < -270) { + * rotateDirection = 'clockwise'; + * } else if (rX - pRX < 0 || rX - pRX > 270) { + * rotateDirection = 'counter-clockwise'; + * } + * + * print(rotateDirection); + * + *
+ * + * @alt + * no image to display. + * + * + * @property {Number} pRotationX + * @readOnly + */ + p5.prototype.pRotationX = 0; + + /** + * The system variable pRotationY always contains the rotation of the + * device along the y axis in the frame previous to the current frame. Value + * is represented as 0 to +/-90 degrees. + *

+ * pRotationY can also be used with rotationY to determine the rotate + * direction of the device along the Y-axis. + * @example + *
+ * + * // A simple if statement looking at whether + * // rotationY - pRotationY < 0 is true or not will be + * // sufficient for determining the rotate direction + * // in most cases. + * + * // Some extra logic is needed to account for cases where + * // the angles wrap around. + * let rotateDirection = 'clockwise'; + * + * // Simple range conversion to make things simpler. + * // This is not absolutely necessary but the logic + * // will be different in that case. + * + * let rY = rotationY + 180; + * let pRY = pRotationY + 180; + * + * if ((rY - pRY > 0 && rY - pRY < 270) || rY - pRY < -270) { + * rotateDirection = 'clockwise'; + * } else if (rY - pRY < 0 || rY - pRY > 270) { + * rotateDirection = 'counter-clockwise'; + * } + * print(rotateDirection); + * + *
+ * + * @alt + * no image to display. + * + * + * @property {Number} pRotationY + * @readOnly + */ + p5.prototype.pRotationY = 0; + + /** + * The system variable pRotationZ always contains the rotation of the + * device along the z axis in the frame previous to the current frame. Value + * is represented as 0 to 359 degrees. + *

+ * pRotationZ can also be used with rotationZ to determine the rotate + * direction of the device along the Z-axis. + * @example + *
+ * + * // A simple if statement looking at whether + * // rotationZ - pRotationZ < 0 is true or not will be + * // sufficient for determining the rotate direction + * // in most cases. + * + * // Some extra logic is needed to account for cases where + * // the angles wrap around. + * let rotateDirection = 'clockwise'; + * + * if ( + * (rotationZ - pRotationZ > 0 && rotationZ - pRotationZ < 270) || + * rotationZ - pRotationZ < -270 + * ) { + * rotateDirection = 'clockwise'; + * } else if (rotationZ - pRotationZ < 0 || rotationZ - pRotationZ > 270) { + * rotateDirection = 'counter-clockwise'; + * } + * print(rotateDirection); + * + *
+ * + * @alt + * no image to display. + * + * + * @property {Number} pRotationZ + * @readOnly + */ + p5.prototype.pRotationZ = 0; + + var startAngleX = 0; + var startAngleY = 0; + var startAngleZ = 0; + + var rotateDirectionX = 'clockwise'; + var rotateDirectionY = 'clockwise'; + var rotateDirectionZ = 'clockwise'; + + var pRotateDirectionX; + var pRotateDirectionY; + var pRotateDirectionZ; + + p5.prototype._updatePRotations = function() { + this._setProperty('pRotationX', this.rotationX); + this._setProperty('pRotationY', this.rotationY); + this._setProperty('pRotationZ', this.rotationZ); + }; + + /** + * When a device is rotated, the axis that triggers the deviceTurned() + * method is stored in the turnAxis variable. The turnAxis variable is only defined within + * the scope of deviceTurned(). + * @property {String} turnAxis + * @readOnly + * @example + *
+ * + * // Run this example on a mobile device + * // Rotate the device by 90 degrees in the + * // X-axis to change the value. + * + * var value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function deviceTurned() { + * if (turnAxis === 'X') { + * if (value === 0) { + * value = 255; + * } else if (value === 255) { + * value = 0; + * } + * } + * } + * + *
+ * + * @alt + * 50x50 black rect in center of canvas. turns white on mobile when device turns + * 50x50 black rect in center of canvas. turns white on mobile when x-axis turns + */ + p5.prototype.turnAxis = undefined; + + var move_threshold = 0.5; + var shake_threshold = 30; + + /** + * The setMoveThreshold() function is used to set the movement threshold for + * the deviceMoved() function. The default threshold is set to 0.5. + * + * @method setMoveThreshold + * @param {number} value The threshold value + * @example + *
+ * + * // Run this example on a mobile device + * // You will need to move the device incrementally further + * // the closer the square's color gets to white in order to change the value. + * + * let value = 0; + * let threshold = 0.5; + * function setup() { + * setMoveThreshold(threshold); + * } + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function deviceMoved() { + * value = value + 5; + * threshold = threshold + 0.1; + * if (value > 255) { + * value = 0; + * threshold = 30; + * } + * setMoveThreshold(threshold); + * } + * + *
+ * + * @alt + * 50x50 black rect in center of canvas. turns white on mobile when device moves + */ + + p5.prototype.setMoveThreshold = function(val) { + p5._validateParameters('setMoveThreshold', arguments); + move_threshold = val; + }; + + /** + * The setShakeThreshold() function is used to set the movement threshold for + * the deviceShaken() function. The default threshold is set to 30. + * + * @method setShakeThreshold + * @param {number} value The threshold value + * @example + *
+ * + * // Run this example on a mobile device + * // You will need to shake the device more firmly + * // the closer the box's fill gets to white in order to change the value. + * + * let value = 0; + * let threshold = 30; + * function setup() { + * setShakeThreshold(threshold); + * } + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function deviceMoved() { + * value = value + 5; + * threshold = threshold + 5; + * if (value > 255) { + * value = 0; + * threshold = 30; + * } + * setShakeThreshold(threshold); + * } + * + *
+ * + * @alt + * 50x50 black rect in center of canvas. turns white on mobile when device + * is being shaked + */ + + p5.prototype.setShakeThreshold = function(val) { + p5._validateParameters('setShakeThreshold', arguments); + shake_threshold = val; + }; + + /** + * The deviceMoved() function is called when the device is moved by more than + * the threshold value along X, Y or Z axis. The default threshold is set to 0.5. + * The threshold value can be changed using setMoveThreshold(). + * + * @method deviceMoved + * @example + *
+ * + * // Run this example on a mobile device + * // Move the device around + * // to change the value. + * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function deviceMoved() { + * value = value + 5; + * if (value > 255) { + * value = 0; + * } + * } + * + *
+ * + * @alt + * 50x50 black rect in center of canvas. turns white on mobile when device moves + * + */ + + /** + * The deviceTurned() function is called when the device rotates by + * more than 90 degrees continuously. + *

+ * The axis that triggers the deviceTurned() method is stored in the turnAxis + * variable. The deviceTurned() method can be locked to trigger on any axis: + * X, Y or Z by comparing the turnAxis variable to 'X', 'Y' or 'Z'. + * + * @method deviceTurned + * @example + *
+ * + * // Run this example on a mobile device + * // Rotate the device by 90 degrees + * // to change the value. + * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function deviceTurned() { + * if (value === 0) { + * value = 255; + * } else if (value === 255) { + * value = 0; + * } + * } + * + *
+ *
+ * + * // Run this example on a mobile device + * // Rotate the device by 90 degrees in the + * // X-axis to change the value. + * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function deviceTurned() { + * if (turnAxis === 'X') { + * if (value === 0) { + * value = 255; + * } else if (value === 255) { + * value = 0; + * } + * } + * } + * + *
+ * + * @alt + * 50x50 black rect in center of canvas. turns white on mobile when device turns + * 50x50 black rect in center of canvas. turns white on mobile when x-axis turns + * + */ + + /** + * The deviceShaken() function is called when the device total acceleration + * changes of accelerationX and accelerationY values is more than + * the threshold value. The default threshold is set to 30. + * The threshold value can be changed using setShakeThreshold(). + * + * @method deviceShaken + * @example + *
+ * + * // Run this example on a mobile device + * // Shake the device to change the value. + * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function deviceShaken() { + * value = value + 5; + * if (value > 255) { + * value = 0; + * } + * } + * + *
+ * + * @alt + * 50x50 black rect in center of canvas. turns white on mobile when device shakes + * + */ + + p5.prototype._ondeviceorientation = function(e) { + this._updatePRotations(); + this._setProperty('rotationX', e.beta); + this._setProperty('rotationY', e.gamma); + this._setProperty('rotationZ', e.alpha); + this._handleMotion(); + }; + p5.prototype._ondevicemotion = function(e) { + this._updatePAccelerations(); + this._setProperty('accelerationX', e.acceleration.x * 2); + this._setProperty('accelerationY', e.acceleration.y * 2); + this._setProperty('accelerationZ', e.acceleration.z * 2); + this._handleMotion(); + }; + p5.prototype._handleMotion = function() { + if (window.orientation === 90 || window.orientation === -90) { + this._setProperty('deviceOrientation', 'landscape'); + } else if (window.orientation === 0) { + this._setProperty('deviceOrientation', 'portrait'); + } else if (window.orientation === undefined) { + this._setProperty('deviceOrientation', 'undefined'); + } + var deviceMoved = this.deviceMoved || window.deviceMoved; + if (typeof deviceMoved === 'function') { + if ( + Math.abs(this.accelerationX - this.pAccelerationX) > move_threshold || + Math.abs(this.accelerationY - this.pAccelerationY) > move_threshold || + Math.abs(this.accelerationZ - this.pAccelerationZ) > move_threshold + ) { + deviceMoved(); + } + } + var deviceTurned = this.deviceTurned || window.deviceTurned; + if (typeof deviceTurned === 'function') { + // The angles given by rotationX etc is from range -180 to 180. + // The following will convert them to 0 to 360 for ease of calculation + // of cases when the angles wrapped around. + // _startAngleX will be converted back at the end and updated. + var wRX = this.rotationX + 180; + var wPRX = this.pRotationX + 180; + var wSAX = startAngleX + 180; + if ((wRX - wPRX > 0 && wRX - wPRX < 270) || wRX - wPRX < -270) { + rotateDirectionX = 'clockwise'; + } else if (wRX - wPRX < 0 || wRX - wPRX > 270) { + rotateDirectionX = 'counter-clockwise'; + } + if (rotateDirectionX !== pRotateDirectionX) { + wSAX = wRX; + } + if (Math.abs(wRX - wSAX) > 90 && Math.abs(wRX - wSAX) < 270) { + wSAX = wRX; + this._setProperty('turnAxis', 'X'); + deviceTurned(); + } + pRotateDirectionX = rotateDirectionX; + startAngleX = wSAX - 180; + + // Y-axis is identical to X-axis except for changing some names. + var wRY = this.rotationY + 180; + var wPRY = this.pRotationY + 180; + var wSAY = startAngleY + 180; + if ((wRY - wPRY > 0 && wRY - wPRY < 270) || wRY - wPRY < -270) { + rotateDirectionY = 'clockwise'; + } else if (wRY - wPRY < 0 || wRY - this.pRotationY > 270) { + rotateDirectionY = 'counter-clockwise'; + } + if (rotateDirectionY !== pRotateDirectionY) { + wSAY = wRY; + } + if (Math.abs(wRY - wSAY) > 90 && Math.abs(wRY - wSAY) < 270) { + wSAY = wRY; + this._setProperty('turnAxis', 'Y'); + deviceTurned(); + } + pRotateDirectionY = rotateDirectionY; + startAngleY = wSAY - 180; + + // Z-axis is already in the range 0 to 360 + // so no conversion is needed. + if ( + (this.rotationZ - this.pRotationZ > 0 && + this.rotationZ - this.pRotationZ < 270) || + this.rotationZ - this.pRotationZ < -270 + ) { + rotateDirectionZ = 'clockwise'; + } else if ( + this.rotationZ - this.pRotationZ < 0 || + this.rotationZ - this.pRotationZ > 270 + ) { + rotateDirectionZ = 'counter-clockwise'; + } + if (rotateDirectionZ !== pRotateDirectionZ) { + startAngleZ = this.rotationZ; + } + if ( + Math.abs(this.rotationZ - startAngleZ) > 90 && + Math.abs(this.rotationZ - startAngleZ) < 270 + ) { + startAngleZ = this.rotationZ; + this._setProperty('turnAxis', 'Z'); + deviceTurned(); + } + pRotateDirectionZ = rotateDirectionZ; + this._setProperty('turnAxis', undefined); + } + var deviceShaken = this.deviceShaken || window.deviceShaken; + if (typeof deviceShaken === 'function') { + var accelerationChangeX; + var accelerationChangeY; + // Add accelerationChangeZ if acceleration change on Z is needed + if (this.pAccelerationX !== null) { + accelerationChangeX = Math.abs(this.accelerationX - this.pAccelerationX); + accelerationChangeY = Math.abs(this.accelerationY - this.pAccelerationY); + } + if (accelerationChangeX + accelerationChangeY > shake_threshold) { + deviceShaken(); + } + } + }; + + module.exports = p5; + }, + { '../core/main': 24 } + ], + 40: [ + function(_dereq_, module, exports) { + /** + * @module Events + * @submodule Keyboard + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + /** + * The boolean system variable keyIsPressed is true if any key is pressed + * and false if no keys are pressed. + * + * @property {Boolean} keyIsPressed + * @readOnly + * @example + *
+ * + * function draw() { + * if (keyIsPressed === true) { + * fill(0); + * } else { + * fill(255); + * } + * rect(25, 25, 50, 50); + * } + * + *
+ * + * @alt + * 50x50 white rect that turns black on keypress. + * + */ + p5.prototype.isKeyPressed = false; + p5.prototype.keyIsPressed = false; // khan + + /** + * The system variable key always contains the value of the most recent + * key on the keyboard that was typed. To get the proper capitalization, it + * is best to use it within keyTyped(). For non-ASCII keys, use the keyCode + * variable. + * + * @property {String} key + * @readOnly + * @example + *
+ * // Click any key to display it! + * // (Not Guaranteed to be Case Sensitive) + * function setup() { + * fill(245, 123, 158); + * textSize(50); + * } + * + * function draw() { + * background(200); + * text(key, 33, 65); // Display last key pressed. + * } + *
+ * + * @alt + * canvas displays any key value that is pressed in pink font. + * + */ + p5.prototype.key = ''; + + /** + * The variable keyCode is used to detect special keys such as BACKSPACE, + * DELETE, ENTER, RETURN, TAB, ESCAPE, SHIFT, CONTROL, OPTION, ALT, UP_ARROW, + * DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW. + * You can also check for custom keys by looking up the keyCode of any key + * on a site like this: keycode.info. + * + * @property {Integer} keyCode + * @readOnly + * @example + *
+ * let fillVal = 126; + * function draw() { + * fill(fillVal); + * rect(25, 25, 50, 50); + * } + * + * function keyPressed() { + * if (keyCode === UP_ARROW) { + * fillVal = 255; + * } else if (keyCode === DOWN_ARROW) { + * fillVal = 0; + * } + * return false; // prevent default + * } + *
+ *
+ * function draw() {} + * function keyPressed() { + * background('yellow'); + * text(`${key} ${keyCode}`, 10, 40); + * print(key, ' ', keyCode); + * return false; // prevent default + * } + *
+ * @alt + * Grey rect center. turns white when up arrow pressed and black when down + * Display key pressed and its keyCode in a yellow box + */ + p5.prototype.keyCode = 0; + + /** + * The keyPressed() function is called once every time a key is pressed. The + * keyCode for the key that was pressed is stored in the keyCode variable. + *

+ * For non-ASCII keys, use the keyCode variable. You can check if the keyCode + * equals BACKSPACE, DELETE, ENTER, RETURN, TAB, ESCAPE, SHIFT, CONTROL, + * OPTION, ALT, UP_ARROW, DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW. + *

+ * For ASCII keys, the key that was pressed is stored in the key variable. However, it + * does not distinguish between uppercase and lowercase. For this reason, it + * is recommended to use keyTyped() to read the key variable, in which the + * case of the variable will be distinguished. + *

+ * Because of how operating systems handle key repeats, holding down a key + * may cause multiple calls to keyTyped() (and keyReleased() as well). The + * rate of repeat is set by the operating system and how each computer is + * configured.

+ * Browsers may have different default + * behaviors attached to various key events. To prevent any default + * behavior for this event, add "return false" to the end of the method. + * + * @method keyPressed + * @example + *
+ * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function keyPressed() { + * if (value === 0) { + * value = 255; + * } else { + * value = 0; + * } + * } + * + *
+ *
+ * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function keyPressed() { + * if (keyCode === LEFT_ARROW) { + * value = 255; + * } else if (keyCode === RIGHT_ARROW) { + * value = 0; + * } + * } + * + *
+ *
+ * + * function keyPressed() { + * // Do something + * return false; // prevent any default behaviour + * } + * + *
+ * + * @alt + * black rect center. turns white when key pressed and black when released + * black rect center. turns white when left arrow pressed and black when right. + * + */ + p5.prototype._onkeydown = function(e) { + if (this._downKeys[e.which]) { + // prevent multiple firings + return; + } + this._setProperty('isKeyPressed', true); + this._setProperty('keyIsPressed', true); + this._setProperty('keyCode', e.which); + this._downKeys[e.which] = true; + this._setProperty('key', e.key || String.fromCharCode(e.which) || e.which); + var keyPressed = this.keyPressed || window.keyPressed; + if (typeof keyPressed === 'function' && !e.charCode) { + var executeDefault = keyPressed(e); + if (executeDefault === false) { + e.preventDefault(); + } + } + }; + /** + * The keyReleased() function is called once every time a key is released. + * See key and keyCode for more information.

+ * Browsers may have different default + * behaviors attached to various key events. To prevent any default + * behavior for this event, add "return false" to the end of the method. + * + * @method keyReleased + * @example + *
+ * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function keyReleased() { + * if (value === 0) { + * value = 255; + * } else { + * value = 0; + * } + * return false; // prevent any default behavior + * } + * + *
+ * + * @alt + * black rect center. turns white when key pressed and black when pressed again + * + */ + p5.prototype._onkeyup = function(e) { + var keyReleased = this.keyReleased || window.keyReleased; + this._downKeys[e.which] = false; + + if (!this._areDownKeys()) { + this._setProperty('isKeyPressed', false); + this._setProperty('keyIsPressed', false); + } + + this._setProperty('_lastKeyCodeTyped', null); + + this._setProperty('key', e.key || String.fromCharCode(e.which) || e.which); + this._setProperty('keyCode', e.which); + if (typeof keyReleased === 'function') { + var executeDefault = keyReleased(e); + if (executeDefault === false) { + e.preventDefault(); + } + } + }; + + /** + * The keyTyped() function is called once every time a key is pressed, but + * action keys such as Backspace, Delete, Ctrl, Shift, and Alt are ignored. If you are trying to detect + * a keyCode for one of these keys, use the keyPressed() function instead. + * The most recent key typed will be stored in the key variable. + *

+ * Because of how operating systems handle key repeats, holding down a key + * will cause multiple calls to keyTyped() (and keyReleased() as well). The + * rate of repeat is set by the operating system and how each computer is + * configured.

+ * Browsers may have different default behaviors attached to various key + * events. To prevent any default behavior for this event, add "return false" + * to the end of the method. + * + * @method keyTyped + * @example + *
+ * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function keyTyped() { + * if (key === 'a') { + * value = 255; + * } else if (key === 'b') { + * value = 0; + * } + * // uncomment to prevent any default behavior + * // return false; + * } + * + *
+ * + * @alt + * black rect center. turns white when 'a' key typed and black when 'b' pressed + * + */ + p5.prototype._onkeypress = function(e) { + if (e.which === this._lastKeyCodeTyped) { + // prevent multiple firings + return; + } + this._setProperty('_lastKeyCodeTyped', e.which); // track last keyCode + this._setProperty('key', String.fromCharCode(e.which)); + var keyTyped = this.keyTyped || window.keyTyped; + if (typeof keyTyped === 'function') { + var executeDefault = keyTyped(e); + if (executeDefault === false) { + e.preventDefault(); + } + } + }; + /** + * The onblur function is called when the user is no longer focused + * on the p5 element. Because the keyup events will not fire if the user is + * not focused on the element we must assume all keys currently down have + * been released. + */ + p5.prototype._onblur = function(e) { + this._downKeys = {}; + }; + + /** + * The keyIsDown() function checks if the key is currently down, i.e. pressed. + * It can be used if you have an object that moves, and you want several keys + * to be able to affect its behaviour simultaneously, such as moving a + * sprite diagonally. You can put in any number representing the keyCode of + * the key, or use any of the variable keyCode names listed + * here. + * + * @method keyIsDown + * @param {Number} code The key to check for. + * @return {Boolean} whether key is down or not + * @example + *
+ * let x = 100; + * let y = 100; + * + * function setup() { + * createCanvas(512, 512); + * fill(255, 0, 0); + * } + * + * function draw() { + * if (keyIsDown(LEFT_ARROW)) { + * x -= 5; + * } + * + * if (keyIsDown(RIGHT_ARROW)) { + * x += 5; + * } + * + * if (keyIsDown(UP_ARROW)) { + * y -= 5; + * } + * + * if (keyIsDown(DOWN_ARROW)) { + * y += 5; + * } + * + * clear(); + * ellipse(x, y, 50, 50); + * } + *
+ * + *
+ * let diameter = 50; + * + * function setup() { + * createCanvas(512, 512); + * } + * + * function draw() { + * // 107 and 187 are keyCodes for "+" + * if (keyIsDown(107) || keyIsDown(187)) { + * diameter += 1; + * } + * + * // 109 and 189 are keyCodes for "-" + * if (keyIsDown(109) || keyIsDown(189)) { + * diameter -= 1; + * } + * + * clear(); + * fill(255, 0, 0); + * ellipse(50, 50, diameter, diameter); + * } + *
+ * + * @alt + * 50x50 red ellipse moves left, right, up and down with arrow presses. + * 50x50 red ellipse gets bigger or smaller when + or - are pressed. + * + */ + p5.prototype.keyIsDown = function(code) { + p5._validateParameters('keyIsDown', arguments); + return this._downKeys[code] || false; + }; + + /** + * The _areDownKeys function returns a boolean true if any keys pressed + * and a false if no keys are currently pressed. + + * Helps avoid instances where multiple keys are pressed simultaneously and + * releasing a single key will then switch the + * keyIsPressed property to true. + * @private + **/ + p5.prototype._areDownKeys = function() { + for (var key in this._downKeys) { + if (this._downKeys.hasOwnProperty(key) && this._downKeys[key] === true) { + return true; + } + } + return false; + }; + + module.exports = p5; + }, + { '../core/main': 24 } + ], + 41: [ + function(_dereq_, module, exports) { + /** + * @module Events + * @submodule Mouse + * @for p5 + * @requires core + * @requires constants + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + var constants = _dereq_('../core/constants'); + + /* + * This is a flag which is false until the first time + * we receive a mouse event. The pmouseX and pmouseY + * values will match the mouseX and mouseY values until + * this interaction takes place. + */ + p5.prototype._hasMouseInteracted = false; + + /** + * The system variable mouseX always contains the current horizontal + * position of the mouse, relative to (0, 0) of the canvas. The value at + * the top-left corner is (0, 0) for 2-D and (-width/2, -height/2) for WebGL. + * If touch is used instead of mouse input, mouseX will hold the x value + * of the most recent touch point. + * + * @property {Number} mouseX + * @readOnly + * + * @example + *
+ * + * // Move the mouse across the canvas + * function draw() { + * background(244, 248, 252); + * line(mouseX, 0, mouseX, 100); + * } + * + *
+ * + * @alt + * horizontal black line moves left and right with mouse x-position + * + */ + p5.prototype.mouseX = 0; + + /** + * The system variable mouseY always contains the current vertical + * position of the mouse, relative to (0, 0) of the canvas. The value at + * the top-left corner is (0, 0) for 2-D and (-width/2, -height/2) for WebGL. + * If touch is used instead of mouse input, mouseY will hold the y value + * of the most recent touch point. + * + * @property {Number} mouseY + * @readOnly + * + * @example + *
+ * + * // Move the mouse across the canvas + * function draw() { + * background(244, 248, 252); + * line(0, mouseY, 100, mouseY); + * } + * + *
+ * + * @alt + * vertical black line moves up and down with mouse y-position + * + */ + p5.prototype.mouseY = 0; + + /** + * The system variable pmouseX always contains the horizontal position of + * the mouse or finger in the frame previous to the current frame, relative to + * (0, 0) of the canvas. The value at the top-left corner is (0, 0) for 2-D and + * (-width/2, -height/2) for WebGL. Note: pmouseX will be reset to the current mouseX + * value at the start of each touch event. + * + * @property {Number} pmouseX + * @readOnly + * + * @example + *
+ * + * // Move the mouse across the canvas to leave a trail + * function setup() { + * //slow down the frameRate to make it more visible + * frameRate(10); + * } + * + * function draw() { + * background(244, 248, 252); + * line(mouseX, mouseY, pmouseX, pmouseY); + * print(pmouseX + ' -> ' + mouseX); + * } + * + *
+ * + * @alt + * line trail is created from cursor movements. faster movement make longer line. + * + */ + p5.prototype.pmouseX = 0; + + /** + * The system variable pmouseY always contains the vertical position of + * the mouse or finger in the frame previous to the current frame, relative to + * (0, 0) of the canvas. The value at the top-left corner is (0, 0) for 2-D and + * (-width/2, -height/2) for WebGL. Note: pmouseY will be reset to the current mouseY + * value at the start of each touch event. + * + * @property {Number} pmouseY + * @readOnly + * + * @example + *
+ * + * function draw() { + * background(237, 34, 93); + * fill(0); + * //draw a square only if the mouse is not moving + * if (mouseY === pmouseY && mouseX === pmouseX) { + * rect(20, 20, 60, 60); + * } + * + * print(pmouseY + ' -> ' + mouseY); + * } + * + *
+ * + * @alt + * 60x60 black rect center, fuchsia background. rect flickers on mouse movement + * + */ + p5.prototype.pmouseY = 0; + + /** + * The system variable winMouseX always contains the current horizontal + * position of the mouse, relative to (0, 0) of the window. + * + * @property {Number} winMouseX + * @readOnly + * + * @example + *
+ * + * let myCanvas; + * + * function setup() { + * //use a variable to store a pointer to the canvas + * myCanvas = createCanvas(100, 100); + * const body = document.getElementsByTagName('body')[0]; + * myCanvas.parent(body); + * } + * + * function draw() { + * background(237, 34, 93); + * fill(0); + * + * //move the canvas to the horizontal mouse position + * //relative to the window + * myCanvas.position(winMouseX + 1, windowHeight / 2); + * + * //the y of the square is relative to the canvas + * rect(20, mouseY, 60, 60); + * } + * + *
+ * + * @alt + * 60x60 black rect y moves with mouse y and fuchsia canvas moves with mouse x + * + */ + p5.prototype.winMouseX = 0; + + /** + * The system variable winMouseY always contains the current vertical + * position of the mouse, relative to (0, 0) of the window. + * + * @property {Number} winMouseY + * @readOnly + * + * @example + *
+ * + * let myCanvas; + * + * function setup() { + * //use a variable to store a pointer to the canvas + * myCanvas = createCanvas(100, 100); + * const body = document.getElementsByTagName('body')[0]; + * myCanvas.parent(body); + * } + * + * function draw() { + * background(237, 34, 93); + * fill(0); + * + * //move the canvas to the vertical mouse position + * //relative to the window + * myCanvas.position(windowWidth / 2, winMouseY + 1); + * + * //the x of the square is relative to the canvas + * rect(mouseX, 20, 60, 60); + * } + * + *
+ * + * @alt + * 60x60 black rect x moves with mouse x and fuchsia canvas y moves with mouse y + * + */ + p5.prototype.winMouseY = 0; + + /** + * The system variable pwinMouseX always contains the horizontal position + * of the mouse in the frame previous to the current frame, relative to + * (0, 0) of the window. Note: pwinMouseX will be reset to the current winMouseX + * value at the start of each touch event. + * + * @property {Number} pwinMouseX + * @readOnly + * + * @example + *
+ * + * let myCanvas; + * + * function setup() { + * //use a variable to store a pointer to the canvas + * myCanvas = createCanvas(100, 100); + * noStroke(); + * fill(237, 34, 93); + * } + * + * function draw() { + * clear(); + * //the difference between previous and + * //current x position is the horizontal mouse speed + * let speed = abs(winMouseX - pwinMouseX); + * //change the size of the circle + * //according to the horizontal speed + * ellipse(50, 50, 10 + speed * 5, 10 + speed * 5); + * //move the canvas to the mouse position + * myCanvas.position(winMouseX + 1, winMouseY + 1); + * } + * + *
+ * + * @alt + * fuchsia ellipse moves with mouse x and y. Grows and shrinks with mouse speed + * + */ + p5.prototype.pwinMouseX = 0; + + /** + * The system variable pwinMouseY always contains the vertical position of + * the mouse in the frame previous to the current frame, relative to (0, 0) + * of the window. Note: pwinMouseY will be reset to the current winMouseY + * value at the start of each touch event. + * + * @property {Number} pwinMouseY + * @readOnly + * + * + * @example + *
+ * + * let myCanvas; + * + * function setup() { + * //use a variable to store a pointer to the canvas + * myCanvas = createCanvas(100, 100); + * noStroke(); + * fill(237, 34, 93); + * } + * + * function draw() { + * clear(); + * //the difference between previous and + * //current y position is the vertical mouse speed + * let speed = abs(winMouseY - pwinMouseY); + * //change the size of the circle + * //according to the vertical speed + * ellipse(50, 50, 10 + speed * 5, 10 + speed * 5); + * //move the canvas to the mouse position + * myCanvas.position(winMouseX + 1, winMouseY + 1); + * } + * + *
+ * + * @alt + * fuchsia ellipse moves with mouse x and y. Grows and shrinks with mouse speed + * + */ + p5.prototype.pwinMouseY = 0; + + /** + * Processing automatically tracks if the mouse button is pressed and which + * button is pressed. The value of the system variable mouseButton is either + * LEFT, RIGHT, or CENTER depending on which button was pressed last. + * Warning: different browsers may track mouseButton differently. + * + * @property {Constant} mouseButton + * @readOnly + * + * @example + *
+ * + * function draw() { + * background(237, 34, 93); + * fill(0); + * + * if (mouseIsPressed) { + * if (mouseButton === LEFT) { + * ellipse(50, 50, 50, 50); + * } + * if (mouseButton === RIGHT) { + * rect(25, 25, 50, 50); + * } + * if (mouseButton === CENTER) { + * triangle(23, 75, 50, 20, 78, 75); + * } + * } + * + * print(mouseButton); + * } + * + *
+ * + * @alt + * 50x50 black ellipse appears on center of fuchsia canvas on mouse click/press. + * + */ + p5.prototype.mouseButton = 0; + + /** + * The boolean system variable mouseIsPressed is true if the mouse is pressed + * and false if not. + * + * @property {Boolean} mouseIsPressed + * @readOnly + * + * @example + *
+ * + * function draw() { + * background(237, 34, 93); + * fill(0); + * + * if (mouseIsPressed) { + * ellipse(50, 50, 50, 50); + * } else { + * rect(25, 25, 50, 50); + * } + * + * print(mouseIsPressed); + * } + * + *
+ * + * @alt + * black 50x50 rect becomes ellipse with mouse click/press. fuchsia background. + * + */ + p5.prototype.mouseIsPressed = false; + + p5.prototype._updateNextMouseCoords = function(e) { + if (this._curElement !== null && (!e.touches || e.touches.length > 0)) { + var mousePos = getMousePos(this._curElement.elt, this.width, this.height, e); + + this._setProperty('mouseX', mousePos.x); + this._setProperty('mouseY', mousePos.y); + this._setProperty('winMouseX', mousePos.winX); + this._setProperty('winMouseY', mousePos.winY); + } + if (!this._hasMouseInteracted) { + // For first draw, make previous and next equal + this._updateMouseCoords(); + this._setProperty('_hasMouseInteracted', true); + } + }; + + p5.prototype._updateMouseCoords = function() { + this._setProperty('pmouseX', this.mouseX); + this._setProperty('pmouseY', this.mouseY); + this._setProperty('pwinMouseX', this.winMouseX); + this._setProperty('pwinMouseY', this.winMouseY); + + this._setProperty('_pmouseWheelDeltaY', this._mouseWheelDeltaY); + }; + + function getMousePos(canvas, w, h, evt) { + if (evt && !evt.clientX) { + // use touches if touch and not mouse + if (evt.touches) { + evt = evt.touches[0]; + } else if (evt.changedTouches) { + evt = evt.changedTouches[0]; + } + } + var rect = canvas.getBoundingClientRect(); + var sx = canvas.scrollWidth / w || 1; + var sy = canvas.scrollHeight / h || 1; + return { + x: (evt.clientX - rect.left) / sx, + y: (evt.clientY - rect.top) / sy, + winX: evt.clientX, + winY: evt.clientY, + id: evt.identifier + }; + } + + p5.prototype._setMouseButton = function(e) { + if (e.button === 1) { + this._setProperty('mouseButton', constants.CENTER); + } else if (e.button === 2) { + this._setProperty('mouseButton', constants.RIGHT); + } else { + this._setProperty('mouseButton', constants.LEFT); + } + }; + + /** + * The mouseMoved() function is called every time the mouse moves and a mouse + * button is not pressed.

+ * Browsers may have different default + * behaviors attached to various mouse events. To prevent any default + * behavior for this event, add "return false" to the end of the method. + * + * @method mouseMoved + * @param {Object} [event] optional MouseEvent callback argument. + * @example + *
+ * + * // Move the mouse across the page + * // to change its value + * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function mouseMoved() { + * value = value + 5; + * if (value > 255) { + * value = 0; + * } + * } + * + *
+ * + *
+ * + * function mouseMoved() { + * ellipse(mouseX, mouseY, 5, 5); + * // prevent default + * return false; + * } + * + *
+ * + *
+ * + * // returns a MouseEvent object + * // as a callback argument + * function mouseMoved(event) { + * console.log(event); + * } + * + *
+ * + * @alt + * black 50x50 rect becomes lighter with mouse movements until white then resets + * no image displayed + * + */ + + /** + * The mouseDragged() function is called once every time the mouse moves and + * a mouse button is pressed. If no mouseDragged() function is defined, the + * touchMoved() function will be called instead if it is defined.

+ * Browsers may have different default + * behaviors attached to various mouse events. To prevent any default + * behavior for this event, add "return false" to the end of the method. + * + * @method mouseDragged + * @param {Object} [event] optional MouseEvent callback argument. + * @example + *
+ * + * // Drag the mouse across the page + * // to change its value + * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function mouseDragged() { + * value = value + 5; + * if (value > 255) { + * value = 0; + * } + * } + * + *
+ * + *
+ * + * function mouseDragged() { + * ellipse(mouseX, mouseY, 5, 5); + * // prevent default + * return false; + * } + * + *
+ * + *
+ * + * // returns a MouseEvent object + * // as a callback argument + * function mouseDragged(event) { + * console.log(event); + * } + * + *
+ * + * @alt + * black 50x50 rect turns lighter with mouse click and drag until white, resets + * no image displayed + * + */ + p5.prototype._onmousemove = function(e) { + var context = this._isGlobal ? window : this; + var executeDefault; + this._updateNextMouseCoords(e); + if (!this.mouseIsPressed) { + if (typeof context.mouseMoved === 'function') { + executeDefault = context.mouseMoved(e); + if (executeDefault === false) { + e.preventDefault(); + } + } + } else { + if (typeof context.mouseDragged === 'function') { + executeDefault = context.mouseDragged(e); + if (executeDefault === false) { + e.preventDefault(); + } + } else if (typeof context.touchMoved === 'function') { + executeDefault = context.touchMoved(e); + if (executeDefault === false) { + e.preventDefault(); + } + } + } + }; + + /** + * The mousePressed() function is called once after every time a mouse button + * is pressed. The mouseButton variable (see the related reference entry) + * can be used to determine which button has been pressed. If no + * mousePressed() function is defined, the touchStarted() function will be + * called instead if it is defined.

+ * Browsers may have different default + * behaviors attached to various mouse events. To prevent any default + * behavior for this event, add "return false" to the end of the method. + * + * @method mousePressed + * @param {Object} [event] optional MouseEvent callback argument. + * @example + *
+ * + * // Click within the image to change + * // the value of the rectangle + * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function mousePressed() { + * if (value === 0) { + * value = 255; + * } else { + * value = 0; + * } + * } + * + *
+ * + *
+ * + * function mousePressed() { + * ellipse(mouseX, mouseY, 5, 5); + * // prevent default + * return false; + * } + * + *
+ * + *
+ * + * // returns a MouseEvent object + * // as a callback argument + * function mousePressed(event) { + * console.log(event); + * } + * + *
+ * + * @alt + * black 50x50 rect turns white with mouse click/press. + * no image displayed + * + */ + p5.prototype._onmousedown = function(e) { + var context = this._isGlobal ? window : this; + var executeDefault; + this._setProperty('mouseIsPressed', true); + this._setMouseButton(e); + this._updateNextMouseCoords(e); + + if (typeof context.mousePressed === 'function') { + executeDefault = context.mousePressed(e); + if (executeDefault === false) { + e.preventDefault(); + } + // only safari needs this manual fallback for consistency + } else if ( + navigator.userAgent.toLowerCase().includes('safari') && + typeof context.touchStarted === 'function' + ) { + executeDefault = context.touchStarted(e); + if (executeDefault === false) { + e.preventDefault(); + } + } + }; + + /** + * The mouseReleased() function is called every time a mouse button is + * released. If no mouseReleased() function is defined, the touchEnded() + * function will be called instead if it is defined.

+ * Browsers may have different default + * behaviors attached to various mouse events. To prevent any default + * behavior for this event, add "return false" to the end of the method. + * + * + * @method mouseReleased + * @param {Object} [event] optional MouseEvent callback argument. + * @example + *
+ * + * // Click within the image to change + * // the value of the rectangle + * // after the mouse has been clicked + * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function mouseReleased() { + * if (value === 0) { + * value = 255; + * } else { + * value = 0; + * } + * } + * + *
+ * + *
+ * + * function mouseReleased() { + * ellipse(mouseX, mouseY, 5, 5); + * // prevent default + * return false; + * } + * + *
+ * + *
+ * + * // returns a MouseEvent object + * // as a callback argument + * function mouseReleased(event) { + * console.log(event); + * } + * + *
+ * + * @alt + * black 50x50 rect turns white with mouse click/press. + * no image displayed + * + */ + p5.prototype._onmouseup = function(e) { + var context = this._isGlobal ? window : this; + var executeDefault; + this._setProperty('mouseIsPressed', false); + if (typeof context.mouseReleased === 'function') { + executeDefault = context.mouseReleased(e); + if (executeDefault === false) { + e.preventDefault(); + } + } else if (typeof context.touchEnded === 'function') { + executeDefault = context.touchEnded(e); + if (executeDefault === false) { + e.preventDefault(); + } + } + }; + + p5.prototype._ondragend = p5.prototype._onmouseup; + p5.prototype._ondragover = p5.prototype._onmousemove; + + /** + * The mouseClicked() function is called once after a mouse button has been + * pressed and then released.

+ * Browsers handle clicks differently, so this function is only guaranteed to be + * run when the left mouse button is clicked. To handle other mouse buttons + * being pressed or released, see mousePressed() or mouseReleased().

+ * Browsers may have different default + * behaviors attached to various mouse events. To prevent any default + * behavior for this event, add "return false" to the end of the method. + * + * @method mouseClicked + * @param {Object} [event] optional MouseEvent callback argument. + * @example + *
+ * + * // Click within the image to change + * // the value of the rectangle + * // after the mouse has been clicked + * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * + * function mouseClicked() { + * if (value === 0) { + * value = 255; + * } else { + * value = 0; + * } + * } + * + *
+ * + *
+ * + * function mouseClicked() { + * ellipse(mouseX, mouseY, 5, 5); + * // prevent default + * return false; + * } + * + *
+ * + *
+ * + * // returns a MouseEvent object + * // as a callback argument + * function mouseClicked(event) { + * console.log(event); + * } + * + *
+ * + * @alt + * black 50x50 rect turns white with mouse click/press. + * no image displayed + * + */ + p5.prototype._onclick = function(e) { + var context = this._isGlobal ? window : this; + if (typeof context.mouseClicked === 'function') { + var executeDefault = context.mouseClicked(e); + if (executeDefault === false) { + e.preventDefault(); + } + } + }; + + /** + * The doubleClicked() function is executed every time a event + * listener has detected a dblclick event which is a part of the + * DOM L3 specification. The doubleClicked event is fired when a + * pointing device button (usually a mouse's primary button) + * is clicked twice on a single element. For more info on the + * dblclick event refer to mozilla's documentation here: + * https://developer.mozilla.org/en-US/docs/Web/Events/dblclick + * + * @method doubleClicked + * @param {Object} [event] optional MouseEvent callback argument. + * @example + *
+ * + * // Click within the image to change + * // the value of the rectangle + * // after the mouse has been double clicked + * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * + * function doubleClicked() { + * if (value === 0) { + * value = 255; + * } else { + * value = 0; + * } + * } + * + *
+ * + *
+ * + * function doubleClicked() { + * ellipse(mouseX, mouseY, 5, 5); + * // prevent default + * return false; + * } + * + *
+ * + *
+ * + * // returns a MouseEvent object + * // as a callback argument + * function doubleClicked(event) { + * console.log(event); + * } + * + *
+ * + * @alt + * black 50x50 rect turns white with mouse doubleClick/press. + * no image displayed + */ + + p5.prototype._ondblclick = function(e) { + var context = this._isGlobal ? window : this; + if (typeof context.doubleClicked === 'function') { + var executeDefault = context.doubleClicked(e); + if (executeDefault === false) { + e.preventDefault(); + } + } + }; + + /** + * For use with WebGL orbitControl. + * @property {Number} _mouseWheelDeltaY + * @readOnly + * @private + */ + p5.prototype._mouseWheelDeltaY = 0; + + /** + * For use with WebGL orbitControl. + * @property {Number} _pmouseWheelDeltaY + * @readOnly + * @private + */ + p5.prototype._pmouseWheelDeltaY = 0; + + /** + * The function mouseWheel() is executed every time a vertical mouse wheel + * event is detected either triggered by an actual mouse wheel or by a + * touchpad.

+ * The event.delta property returns the amount the mouse wheel + * have scrolled. The values can be positive or negative depending on the + * scroll direction (on OS X with "natural" scrolling enabled, the signs + * are inverted).

+ * Browsers may have different default behaviors attached to various + * mouse events. To prevent any default behavior for this event, add + * "return false" to the end of the method.

+ * Due to the current support of the "wheel" event on Safari, the function + * may only work as expected if "return false" is included while using Safari. + * + * @method mouseWheel + * @param {Object} [event] optional WheelEvent callback argument. + * + * @example + *
+ * + * let pos = 25; + * + * function draw() { + * background(237, 34, 93); + * fill(0); + * rect(25, pos, 50, 50); + * } + * + * function mouseWheel(event) { + * print(event.delta); + * //move the square according to the vertical scroll amount + * pos += event.delta; + * //uncomment to block page scrolling + * //return false; + * } + * + *
+ * + * @alt + * black 50x50 rect moves up and down with vertical scroll. fuchsia background + * + */ + p5.prototype._onwheel = function(e) { + var context = this._isGlobal ? window : this; + this._setProperty('_mouseWheelDeltaY', e.deltaY); + if (typeof context.mouseWheel === 'function') { + e.delta = e.deltaY; + var executeDefault = context.mouseWheel(e); + if (executeDefault === false) { + e.preventDefault(); + } + } + }; + + module.exports = p5; + }, + { '../core/constants': 18, '../core/main': 24 } + ], + 42: [ + function(_dereq_, module, exports) { + /** + * @module Events + * @submodule Touch + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + /** + * The system variable touches[] contains an array of the positions of all + * current touch points, relative to (0, 0) of the canvas, and IDs identifying a + * unique touch as it moves. Each element in the array is an object with x, y, + * and id properties. + * + * The touches[] array is not supported on Safari and IE on touch-based + * desktops (laptops). + * + * @property {Object[]} touches + * @readOnly + * + * @example + *
+ * + * // On a touchscreen device, touch + * // the canvas using one or more fingers + * // at the same time + * function draw() { + * clear(); + * let display = touches.length + ' touches'; + * text(display, 5, 10); + * } + * + *
+ * + * @alt + * Number of touches currently registered are displayed on the canvas + */ + p5.prototype.touches = []; + + p5.prototype._updateTouchCoords = function(e) { + if (this._curElement !== null) { + var touches = []; + for (var i = 0; i < e.touches.length; i++) { + touches[i] = getTouchInfo( + this._curElement.elt, + this.width, + this.height, + e, + i + ); + } + this._setProperty('touches', touches); + } + }; + + function getTouchInfo(canvas, w, h, e, i) { + i = i || 0; + var rect = canvas.getBoundingClientRect(); + var sx = canvas.scrollWidth / w || 1; + var sy = canvas.scrollHeight / h || 1; + var touch = e.touches[i] || e.changedTouches[i]; + return { + x: (touch.clientX - rect.left) / sx, + y: (touch.clientY - rect.top) / sy, + winX: touch.clientX, + winY: touch.clientY, + id: touch.identifier + }; + } + + /** + * The touchStarted() function is called once after every time a touch is + * registered. If no touchStarted() function is defined, the mousePressed() + * function will be called instead if it is defined.

+ * Browsers may have different default behaviors attached to various touch + * events. To prevent any default behavior for this event, add "return false" + * to the end of the method. + * + * @method touchStarted + * @param {Object} [event] optional TouchEvent callback argument. + * @example + *
+ * + * // Touch within the image to change + * // the value of the rectangle + * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function touchStarted() { + * if (value === 0) { + * value = 255; + * } else { + * value = 0; + * } + * } + * + *
+ * + *
+ * + * function touchStarted() { + * ellipse(mouseX, mouseY, 5, 5); + * // prevent default + * return false; + * } + * + *
+ * + *
+ * + * // returns a TouchEvent object + * // as a callback argument + * function touchStarted(event) { + * console.log(event); + * } + * + *
+ * + * @alt + * 50x50 black rect turns white with touch event. + * no image displayed + */ + p5.prototype._ontouchstart = function(e) { + var context = this._isGlobal ? window : this; + var executeDefault; + this._setProperty('mouseIsPressed', true); + this._updateTouchCoords(e); + this._updateNextMouseCoords(e); + this._updateMouseCoords(); // reset pmouseXY at the start of each touch event + + if (typeof context.touchStarted === 'function') { + executeDefault = context.touchStarted(e); + if (executeDefault === false) { + e.preventDefault(); + } + // only safari needs this manual fallback for consistency + } else if ( + navigator.userAgent.toLowerCase().includes('safari') && + typeof context.touchStarted === 'function' + ) { + executeDefault = context.mousePressed(e); + if (executeDefault === false) { + e.preventDefault(); + } + } + }; + + /** + * The touchMoved() function is called every time a touch move is registered. + * If no touchMoved() function is defined, the mouseDragged() function will + * be called instead if it is defined.

+ * Browsers may have different default behaviors attached to various touch + * events. To prevent any default behavior for this event, add "return false" + * to the end of the method. + * + * @method touchMoved + * @param {Object} [event] optional TouchEvent callback argument. + * @example + *
+ * + * // Move your finger across the page + * // to change its value + * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function touchMoved() { + * value = value + 5; + * if (value > 255) { + * value = 0; + * } + * } + * + *
+ * + *
+ * + * function touchMoved() { + * ellipse(mouseX, mouseY, 5, 5); + * // prevent default + * return false; + * } + * + *
+ * + *
+ * + * // returns a TouchEvent object + * // as a callback argument + * function touchMoved(event) { + * console.log(event); + * } + * + *
+ * + * @alt + * 50x50 black rect turns lighter with touch until white. resets + * no image displayed + * + */ + p5.prototype._ontouchmove = function(e) { + var context = this._isGlobal ? window : this; + var executeDefault; + this._updateTouchCoords(e); + this._updateNextMouseCoords(e); + if (typeof context.touchMoved === 'function') { + executeDefault = context.touchMoved(e); + if (executeDefault === false) { + e.preventDefault(); + } + } else if (typeof context.mouseDragged === 'function') { + executeDefault = context.mouseDragged(e); + if (executeDefault === false) { + e.preventDefault(); + } + } + }; + + /** + * The touchEnded() function is called every time a touch ends. If no + * touchEnded() function is defined, the mouseReleased() function will be + * called instead if it is defined.

+ * Browsers may have different default behaviors attached to various touch + * events. To prevent any default behavior for this event, add "return false" + * to the end of the method. + * + * @method touchEnded + * @param {Object} [event] optional TouchEvent callback argument. + * @example + *
+ * + * // Release touch within the image to + * // change the value of the rectangle + * + * let value = 0; + * function draw() { + * fill(value); + * rect(25, 25, 50, 50); + * } + * function touchEnded() { + * if (value === 0) { + * value = 255; + * } else { + * value = 0; + * } + * } + * + *
+ * + *
+ * + * function touchEnded() { + * ellipse(mouseX, mouseY, 5, 5); + * // prevent default + * return false; + * } + * + *
+ * + *
+ * + * // returns a TouchEvent object + * // as a callback argument + * function touchEnded(event) { + * console.log(event); + * } + * + *
+ * + * @alt + * 50x50 black rect turns white with touch. + * no image displayed + * + */ + p5.prototype._ontouchend = function(e) { + this._setProperty('mouseIsPressed', false); + this._updateTouchCoords(e); + this._updateNextMouseCoords(e); + var context = this._isGlobal ? window : this; + var executeDefault; + if (typeof context.touchEnded === 'function') { + executeDefault = context.touchEnded(e); + if (executeDefault === false) { + e.preventDefault(); + } + } else if (typeof context.mouseReleased === 'function') { + executeDefault = context.mouseReleased(e); + if (executeDefault === false) { + e.preventDefault(); + } + } + }; + + module.exports = p5; + }, + { '../core/main': 24 } + ], + 43: [ + function(_dereq_, module, exports) { + /*global ImageData:false */ + + /** + * This module defines the filters for use with image buffers. + * + * This module is basically a collection of functions stored in an object + * as opposed to modules. The functions are destructive, modifying + * the passed in canvas rather than creating a copy. + * + * Generally speaking users of this module will use the Filters.apply method + * on a canvas to create an effect. + * + * A number of functions are borrowed/adapted from + * http://www.html5rocks.com/en/tutorials/canvas/imagefilters/ + * or the java processing implementation. + */ + + 'use strict'; + + var Filters = {}; + + /* + * Helper functions + */ + + /** + * Returns the pixel buffer for a canvas + * + * @private + * + * @param {Canvas|ImageData} canvas the canvas to get pixels from + * @return {Uint8ClampedArray} a one-dimensional array containing + * the data in thc RGBA order, with integer + * values between 0 and 255 + */ + Filters._toPixels = function(canvas) { + if (canvas instanceof ImageData) { + return canvas.data; + } else { + return canvas.getContext('2d').getImageData(0, 0, canvas.width, canvas.height) + .data; + } + }; + + /** + * Returns a 32 bit number containing ARGB data at ith pixel in the + * 1D array containing pixels data. + * + * @private + * + * @param {Uint8ClampedArray} data array returned by _toPixels() + * @param {Integer} i index of a 1D Image Array + * @return {Integer} 32 bit integer value representing + * ARGB value. + */ + Filters._getARGB = function(data, i) { + var offset = i * 4; + return ( + ((data[offset + 3] << 24) & 0xff000000) | + ((data[offset] << 16) & 0x00ff0000) | + ((data[offset + 1] << 8) & 0x0000ff00) | + (data[offset + 2] & 0x000000ff) + ); + }; + + /** + * Modifies pixels RGBA values to values contained in the data object. + * + * @private + * + * @param {Uint8ClampedArray} pixels array returned by _toPixels() + * @param {Int32Array} data source 1D array where each value + * represents ARGB values + */ + Filters._setPixels = function(pixels, data) { + var offset = 0; + for (var i = 0, al = pixels.length; i < al; i++) { + offset = i * 4; + pixels[offset + 0] = (data[i] & 0x00ff0000) >>> 16; + pixels[offset + 1] = (data[i] & 0x0000ff00) >>> 8; + pixels[offset + 2] = data[i] & 0x000000ff; + pixels[offset + 3] = (data[i] & 0xff000000) >>> 24; + } + }; + + /** + * Returns the ImageData object for a canvas + * https://developer.mozilla.org/en-US/docs/Web/API/ImageData + * + * @private + * + * @param {Canvas|ImageData} canvas canvas to get image data from + * @return {ImageData} Holder of pixel data (and width and + * height) for a canvas + */ + Filters._toImageData = function(canvas) { + if (canvas instanceof ImageData) { + return canvas; + } else { + return canvas + .getContext('2d') + .getImageData(0, 0, canvas.width, canvas.height); + } + }; + + /** + * Returns a blank ImageData object. + * + * @private + * + * @param {Integer} width + * @param {Integer} height + * @return {ImageData} + */ + Filters._createImageData = function(width, height) { + Filters._tmpCanvas = document.createElement('canvas'); + Filters._tmpCtx = Filters._tmpCanvas.getContext('2d'); + return this._tmpCtx.createImageData(width, height); + }; + + /** + * Applys a filter function to a canvas. + * + * The difference between this and the actual filter functions defined below + * is that the filter functions generally modify the pixel buffer but do + * not actually put that data back to the canvas (where it would actually + * update what is visible). By contrast this method does make the changes + * actually visible in the canvas. + * + * The apply method is the method that callers of this module would generally + * use. It has been separated from the actual filters to support an advanced + * use case of creating a filter chain that executes without actually updating + * the canvas in between everystep. + * + * @private + * @param {HTMLCanvasElement} canvas [description] + * @param {function(ImageData,Object)} func [description] + * @param {Object} filterParam [description] + */ + Filters.apply = function(canvas, func, filterParam) { + var pixelsState = canvas.getContext('2d'); + var imageData = pixelsState.getImageData(0, 0, canvas.width, canvas.height); + + //Filters can either return a new ImageData object, or just modify + //the one they received. + var newImageData = func(imageData, filterParam); + if (newImageData instanceof ImageData) { + pixelsState.putImageData( + newImageData, + 0, + 0, + 0, + 0, + canvas.width, + canvas.height + ); + } else { + pixelsState.putImageData(imageData, 0, 0, 0, 0, canvas.width, canvas.height); + } + }; + + /* + * Filters + */ + + /** + * Converts the image to black and white pixels depending if they are above or + * below the threshold defined by the level parameter. The parameter must be + * between 0.0 (black) and 1.0 (white). If no level is specified, 0.5 is used. + * + * Borrowed from http://www.html5rocks.com/en/tutorials/canvas/imagefilters/ + * + * @private + * @param {Canvas} canvas + * @param {Float} level + */ + Filters.threshold = function(canvas, level) { + var pixels = Filters._toPixels(canvas); + + if (level === undefined) { + level = 0.5; + } + var thresh = Math.floor(level * 255); + + for (var i = 0; i < pixels.length; i += 4) { + var r = pixels[i]; + var g = pixels[i + 1]; + var b = pixels[i + 2]; + var gray = 0.2126 * r + 0.7152 * g + 0.0722 * b; + var val; + if (gray >= thresh) { + val = 255; + } else { + val = 0; + } + pixels[i] = pixels[i + 1] = pixels[i + 2] = val; + } + }; + + /** + * Converts any colors in the image to grayscale equivalents. + * No parameter is used. + * + * Borrowed from http://www.html5rocks.com/en/tutorials/canvas/imagefilters/ + * + * @private + * @param {Canvas} canvas + */ + Filters.gray = function(canvas) { + var pixels = Filters._toPixels(canvas); + + for (var i = 0; i < pixels.length; i += 4) { + var r = pixels[i]; + var g = pixels[i + 1]; + var b = pixels[i + 2]; + + // CIE luminance for RGB + var gray = 0.2126 * r + 0.7152 * g + 0.0722 * b; + pixels[i] = pixels[i + 1] = pixels[i + 2] = gray; + } + }; + + /** + * Sets the alpha channel to entirely opaque. No parameter is used. + * + * @private + * @param {Canvas} canvas + */ + Filters.opaque = function(canvas) { + var pixels = Filters._toPixels(canvas); + + for (var i = 0; i < pixels.length; i += 4) { + pixels[i + 3] = 255; + } + + return pixels; + }; + + /** + * Sets each pixel to its inverse value. No parameter is used. + * @private + * @param {Canvas} canvas + */ + Filters.invert = function(canvas) { + var pixels = Filters._toPixels(canvas); + + for (var i = 0; i < pixels.length; i += 4) { + pixels[i] = 255 - pixels[i]; + pixels[i + 1] = 255 - pixels[i + 1]; + pixels[i + 2] = 255 - pixels[i + 2]; + } + }; + + /** + * Limits each channel of the image to the number of colors specified as + * the parameter. The parameter can be set to values between 2 and 255, but + * results are most noticeable in the lower ranges. + * + * Adapted from java based processing implementation + * + * @private + * @param {Canvas} canvas + * @param {Integer} level + */ + Filters.posterize = function(canvas, level) { + var pixels = Filters._toPixels(canvas); + + if (level < 2 || level > 255) { + throw new Error( + 'Level must be greater than 2 and less than 255 for posterize' + ); + } + + var levels1 = level - 1; + for (var i = 0; i < pixels.length; i += 4) { + var rlevel = pixels[i]; + var glevel = pixels[i + 1]; + var blevel = pixels[i + 2]; + + pixels[i] = ((rlevel * level) >> 8) * 255 / levels1; + pixels[i + 1] = ((glevel * level) >> 8) * 255 / levels1; + pixels[i + 2] = ((blevel * level) >> 8) * 255 / levels1; + } + }; + + /** + * reduces the bright areas in an image + * @private + * @param {Canvas} canvas + * + */ + Filters.dilate = function(canvas) { + var pixels = Filters._toPixels(canvas); + var currIdx = 0; + var maxIdx = pixels.length ? pixels.length / 4 : 0; + var out = new Int32Array(maxIdx); + var currRowIdx, maxRowIdx, colOrig, colOut, currLum; + + var idxRight, idxLeft, idxUp, idxDown; + var colRight, colLeft, colUp, colDown; + var lumRight, lumLeft, lumUp, lumDown; + + while (currIdx < maxIdx) { + currRowIdx = currIdx; + maxRowIdx = currIdx + canvas.width; + while (currIdx < maxRowIdx) { + colOrig = colOut = Filters._getARGB(pixels, currIdx); + idxLeft = currIdx - 1; + idxRight = currIdx + 1; + idxUp = currIdx - canvas.width; + idxDown = currIdx + canvas.width; + + if (idxLeft < currRowIdx) { + idxLeft = currIdx; + } + if (idxRight >= maxRowIdx) { + idxRight = currIdx; + } + if (idxUp < 0) { + idxUp = 0; + } + if (idxDown >= maxIdx) { + idxDown = currIdx; + } + colUp = Filters._getARGB(pixels, idxUp); + colLeft = Filters._getARGB(pixels, idxLeft); + colDown = Filters._getARGB(pixels, idxDown); + colRight = Filters._getARGB(pixels, idxRight); + + //compute luminance + currLum = + 77 * ((colOrig >> 16) & 0xff) + + 151 * ((colOrig >> 8) & 0xff) + + 28 * (colOrig & 0xff); + lumLeft = + 77 * ((colLeft >> 16) & 0xff) + + 151 * ((colLeft >> 8) & 0xff) + + 28 * (colLeft & 0xff); + lumRight = + 77 * ((colRight >> 16) & 0xff) + + 151 * ((colRight >> 8) & 0xff) + + 28 * (colRight & 0xff); + lumUp = + 77 * ((colUp >> 16) & 0xff) + + 151 * ((colUp >> 8) & 0xff) + + 28 * (colUp & 0xff); + lumDown = + 77 * ((colDown >> 16) & 0xff) + + 151 * ((colDown >> 8) & 0xff) + + 28 * (colDown & 0xff); + + if (lumLeft > currLum) { + colOut = colLeft; + currLum = lumLeft; + } + if (lumRight > currLum) { + colOut = colRight; + currLum = lumRight; + } + if (lumUp > currLum) { + colOut = colUp; + currLum = lumUp; + } + if (lumDown > currLum) { + colOut = colDown; + currLum = lumDown; + } + out[currIdx++] = colOut; + } + } + Filters._setPixels(pixels, out); + }; + + /** + * increases the bright areas in an image + * @private + * @param {Canvas} canvas + * + */ + Filters.erode = function(canvas) { + var pixels = Filters._toPixels(canvas); + var currIdx = 0; + var maxIdx = pixels.length ? pixels.length / 4 : 0; + var out = new Int32Array(maxIdx); + var currRowIdx, maxRowIdx, colOrig, colOut, currLum; + var idxRight, idxLeft, idxUp, idxDown; + var colRight, colLeft, colUp, colDown; + var lumRight, lumLeft, lumUp, lumDown; + + while (currIdx < maxIdx) { + currRowIdx = currIdx; + maxRowIdx = currIdx + canvas.width; + while (currIdx < maxRowIdx) { + colOrig = colOut = Filters._getARGB(pixels, currIdx); + idxLeft = currIdx - 1; + idxRight = currIdx + 1; + idxUp = currIdx - canvas.width; + idxDown = currIdx + canvas.width; + + if (idxLeft < currRowIdx) { + idxLeft = currIdx; + } + if (idxRight >= maxRowIdx) { + idxRight = currIdx; + } + if (idxUp < 0) { + idxUp = 0; + } + if (idxDown >= maxIdx) { + idxDown = currIdx; + } + colUp = Filters._getARGB(pixels, idxUp); + colLeft = Filters._getARGB(pixels, idxLeft); + colDown = Filters._getARGB(pixels, idxDown); + colRight = Filters._getARGB(pixels, idxRight); + + //compute luminance + currLum = + 77 * ((colOrig >> 16) & 0xff) + + 151 * ((colOrig >> 8) & 0xff) + + 28 * (colOrig & 0xff); + lumLeft = + 77 * ((colLeft >> 16) & 0xff) + + 151 * ((colLeft >> 8) & 0xff) + + 28 * (colLeft & 0xff); + lumRight = + 77 * ((colRight >> 16) & 0xff) + + 151 * ((colRight >> 8) & 0xff) + + 28 * (colRight & 0xff); + lumUp = + 77 * ((colUp >> 16) & 0xff) + + 151 * ((colUp >> 8) & 0xff) + + 28 * (colUp & 0xff); + lumDown = + 77 * ((colDown >> 16) & 0xff) + + 151 * ((colDown >> 8) & 0xff) + + 28 * (colDown & 0xff); + + if (lumLeft < currLum) { + colOut = colLeft; + currLum = lumLeft; + } + if (lumRight < currLum) { + colOut = colRight; + currLum = lumRight; + } + if (lumUp < currLum) { + colOut = colUp; + currLum = lumUp; + } + if (lumDown < currLum) { + colOut = colDown; + currLum = lumDown; + } + + out[currIdx++] = colOut; + } + } + Filters._setPixels(pixels, out); + }; + + // BLUR + + // internal kernel stuff for the gaussian blur filter + var blurRadius; + var blurKernelSize; + var blurKernel; + var blurMult; + + /* + * Port of https://github.com/processing/processing/blob/ + * master/core/src/processing/core/PImage.java#L1250 + * + * Optimized code for building the blur kernel. + * further optimized blur code (approx. 15% for radius=20) + * bigger speed gains for larger radii (~30%) + * added support for various image types (ALPHA, RGB, ARGB) + * [toxi 050728] + */ + function buildBlurKernel(r) { + var radius = (r * 3.5) | 0; + radius = radius < 1 ? 1 : radius < 248 ? radius : 248; + + if (blurRadius !== radius) { + blurRadius = radius; + blurKernelSize = (1 + blurRadius) << 1; + blurKernel = new Int32Array(blurKernelSize); + blurMult = new Array(blurKernelSize); + for (var l = 0; l < blurKernelSize; l++) { + blurMult[l] = new Int32Array(256); + } + + var bk, bki; + var bm, bmi; + + for (var i = 1, radiusi = radius - 1; i < radius; i++) { + blurKernel[radius + i] = blurKernel[radiusi] = bki = radiusi * radiusi; + bm = blurMult[radius + i]; + bmi = blurMult[radiusi--]; + for (var j = 0; j < 256; j++) { + bm[j] = bmi[j] = bki * j; + } + } + bk = blurKernel[radius] = radius * radius; + bm = blurMult[radius]; + + for (var k = 0; k < 256; k++) { + bm[k] = bk * k; + } + } + } + + // Port of https://github.com/processing/processing/blob/ + // master/core/src/processing/core/PImage.java#L1433 + function blurARGB(canvas, radius) { + var pixels = Filters._toPixels(canvas); + var width = canvas.width; + var height = canvas.height; + var numPackedPixels = width * height; + var argb = new Int32Array(numPackedPixels); + for (var j = 0; j < numPackedPixels; j++) { + argb[j] = Filters._getARGB(pixels, j); + } + var sum, cr, cg, cb, ca; + var read, ri, ym, ymi, bk0; + var a2 = new Int32Array(numPackedPixels); + var r2 = new Int32Array(numPackedPixels); + var g2 = new Int32Array(numPackedPixels); + var b2 = new Int32Array(numPackedPixels); + var yi = 0; + buildBlurKernel(radius); + var x, y, i; + var bm; + for (y = 0; y < height; y++) { + for (x = 0; x < width; x++) { + cb = cg = cr = ca = sum = 0; + read = x - blurRadius; + if (read < 0) { + bk0 = -read; + read = 0; + } else { + if (read >= width) { + break; + } + bk0 = 0; + } + for (i = bk0; i < blurKernelSize; i++) { + if (read >= width) { + break; + } + var c = argb[read + yi]; + bm = blurMult[i]; + ca += bm[(c & -16777216) >>> 24]; + cr += bm[(c & 16711680) >> 16]; + cg += bm[(c & 65280) >> 8]; + cb += bm[c & 255]; + sum += blurKernel[i]; + read++; + } + ri = yi + x; + a2[ri] = ca / sum; + r2[ri] = cr / sum; + g2[ri] = cg / sum; + b2[ri] = cb / sum; + } + yi += width; + } + yi = 0; + ym = -blurRadius; + ymi = ym * width; + for (y = 0; y < height; y++) { + for (x = 0; x < width; x++) { + cb = cg = cr = ca = sum = 0; + if (ym < 0) { + bk0 = ri = -ym; + read = x; + } else { + if (ym >= height) { + break; + } + bk0 = 0; + ri = ym; + read = x + ymi; + } + for (i = bk0; i < blurKernelSize; i++) { + if (ri >= height) { + break; + } + bm = blurMult[i]; + ca += bm[a2[read]]; + cr += bm[r2[read]]; + cg += bm[g2[read]]; + cb += bm[b2[read]]; + sum += blurKernel[i]; + ri++; + read += width; + } + argb[x + yi] = + ((ca / sum) << 24) | ((cr / sum) << 16) | ((cg / sum) << 8) | (cb / sum); + } + yi += width; + ymi += width; + ym++; + } + Filters._setPixels(pixels, argb); + } + + Filters.blur = function(canvas, radius) { + blurARGB(canvas, radius); + }; + + module.exports = Filters; + }, + {} + ], + 44: [ + function(_dereq_, module, exports) { + /** + * @module Image + * @submodule Image + * @for p5 + * @requires core + */ + + /** + * This module defines the p5 methods for the p5.Image class + * for drawing images to the main display canvas. + */ + 'use strict'; + + var p5 = _dereq_('../core/main'); + // This is not global, but ESLint is not aware that + // this module is implicitly enclosed with Browserify: this overrides the + // redefined-global error and permits using the name "frames" for the array + // of saved animation frames. + + /* global frames:true */ var frames = []; + + /** + * Creates a new p5.Image (the datatype for storing images). This provides a + * fresh buffer of pixels to play with. Set the size of the buffer with the + * width and height parameters. + *

+ * .pixels gives access to an array containing the values for all the pixels + * in the display window. + * These values are numbers. This array is the size (including an appropriate + * factor for the pixelDensity) of the display window x4, + * representing the R, G, B, A values in order for each pixel, moving from + * left to right across each row, then down each column. See .pixels for + * more info. It may also be simpler to use set() or get(). + *

+ * Before accessing the pixels of an image, the data must loaded with the + * loadPixels() function. After the array data has been modified, the + * updatePixels() function must be run to update the changes. + * + * @method createImage + * @param {Integer} width width in pixels + * @param {Integer} height height in pixels + * @return {p5.Image} the p5.Image object + * @example + *
+ * + * let img = createImage(66, 66); + * img.loadPixels(); + * for (let i = 0; i < img.width; i++) { + * for (let j = 0; j < img.height; j++) { + * img.set(i, j, color(0, 90, 102)); + * } + * } + * img.updatePixels(); + * image(img, 17, 17); + * + *
+ * + *
+ * + * let img = createImage(66, 66); + * img.loadPixels(); + * for (let i = 0; i < img.width; i++) { + * for (let j = 0; j < img.height; j++) { + * img.set(i, j, color(0, 90, 102, (i % img.width) * 2)); + * } + * } + * img.updatePixels(); + * image(img, 17, 17); + * image(img, 34, 34); + * + *
+ * + *
+ * + * let pink = color(255, 102, 204); + * let img = createImage(66, 66); + * img.loadPixels(); + * let d = pixelDensity(); + * let halfImage = 4 * (img.width * d) * (img.height / 2 * d); + * for (let i = 0; i < halfImage; i += 4) { + * img.pixels[i] = red(pink); + * img.pixels[i + 1] = green(pink); + * img.pixels[i + 2] = blue(pink); + * img.pixels[i + 3] = alpha(pink); + * } + * img.updatePixels(); + * image(img, 17, 17); + * + *
+ * + * @alt + * 66x66 dark turquoise rect in center of canvas. + * 2 gradated dark turquoise rects fade left. 1 center 1 bottom right of canvas + * no image displayed + * + */ + p5.prototype.createImage = function(width, height) { + p5._validateParameters('createImage', arguments); + return new p5.Image(width, height); + }; + + /** + * Save the current canvas as an image. The browser will either save the + * file immediately, or prompt the user with a dialogue window. + * + * @method saveCanvas + * @param {p5.Element|HTMLCanvasElement} selectedCanvas a variable + * representing a specific html5 canvas (optional) + * @param {String} [filename] + * @param {String} [extension] 'jpg' or 'png' + * + * @example + *
+ * function setup() { + * let c = createCanvas(100, 100); + * background(255, 0, 0); + * saveCanvas(c, 'myCanvas', 'jpg'); + * } + *
+ *
+ * // note that this example has the same result as above + * // if no canvas is specified, defaults to main canvas + * function setup() { + * let c = createCanvas(100, 100); + * background(255, 0, 0); + * saveCanvas('myCanvas', 'jpg'); + * + * // all of the following are valid + * saveCanvas(c, 'myCanvas', 'jpg'); + * saveCanvas(c, 'myCanvas.jpg'); + * saveCanvas(c, 'myCanvas'); + * saveCanvas(c); + * saveCanvas('myCanvas', 'png'); + * saveCanvas('myCanvas'); + * saveCanvas(); + * } + *
+ * + * @alt + * no image displayed + * no image displayed + * no image displayed + */ + /** + * @method saveCanvas + * @param {String} [filename] + * @param {String} [extension] + */ + p5.prototype.saveCanvas = function() { + p5._validateParameters('saveCanvas', arguments); + + // copy arguments to array + var args = [].slice.call(arguments); + var htmlCanvas, filename, extension; + + if (arguments[0] instanceof HTMLCanvasElement) { + htmlCanvas = arguments[0]; + args.shift(); + } else if (arguments[0] instanceof p5.Element) { + htmlCanvas = arguments[0].elt; + args.shift(); + } else { + htmlCanvas = this._curElement && this._curElement.elt; + } + + if (args.length >= 1) { + filename = args[0]; + } + if (args.length >= 2) { + extension = args[1]; + } + + extension = + extension || + p5.prototype._checkFileExtension(filename, extension)[1] || + 'png'; + + var mimeType; + switch (extension) { + default: + //case 'png': + mimeType = 'image/png'; + break; + case 'jpeg': + case 'jpg': + mimeType = 'image/jpeg'; + break; + } + + htmlCanvas.toBlob(function(blob) { + p5.prototype.downloadFile(blob, filename, extension); + }, mimeType); + }; + + /** + * Capture a sequence of frames that can be used to create a movie. + * Accepts a callback. For example, you may wish to send the frames + * to a server where they can be stored or converted into a movie. + * If no callback is provided, the browser will pop up save dialogues in an + * attempt to download all of the images that have just been created. With the + * callback provided the image data isn't saved by default but instead passed + * as an argument to the callback function as an array of objects, with the + * size of array equal to the total number of frames. + * + * Note that saveFrames() will only save the first 15 frames of an animation. + * To export longer animations, you might look into a library like + * ccapture.js. + * + * @method saveFrames + * @param {String} filename + * @param {String} extension 'jpg' or 'png' + * @param {Number} duration Duration in seconds to save the frames for. + * @param {Number} framerate Framerate to save the frames in. + * @param {function(Array)} [callback] A callback function that will be executed + to handle the image data. This function + should accept an array as argument. The + array will contain the specified number of + frames of objects. Each object has three + properties: imageData - an + image/octet-stream, filename and extension. + * @example + *
+ * function draw() { + * background(mouseX); + * } + * + * function mousePressed() { + * saveFrames('out', 'png', 1, 25, data => { + * print(data); + * }); + * } +
+ * + * @alt + * canvas background goes from light to dark with mouse x. + * + */ + p5.prototype.saveFrames = function(fName, ext, _duration, _fps, callback) { + p5._validateParameters('saveFrames', arguments); + var duration = _duration || 3; + duration = p5.prototype.constrain(duration, 0, 15); + duration = duration * 1000; + var fps = _fps || 15; + fps = p5.prototype.constrain(fps, 0, 22); + var count = 0; + + var makeFrame = p5.prototype._makeFrame; + var cnv = this._curElement.elt; + var frameFactory = setInterval(function() { + makeFrame(fName + count, ext, cnv); + count++; + }, 1000 / fps); + + setTimeout(function() { + clearInterval(frameFactory); + if (callback) { + callback(frames); + } else { + for (var i = 0; i < frames.length; i++) { + var f = frames[i]; + p5.prototype.downloadFile(f.imageData, f.filename, f.ext); + } + } + frames = []; // clear frames + }, duration + 0.01); + }; + + p5.prototype._makeFrame = function(filename, extension, _cnv) { + var cnv; + if (this) { + cnv = this._curElement.elt; + } else { + cnv = _cnv; + } + var mimeType; + if (!extension) { + extension = 'png'; + mimeType = 'image/png'; + } else { + switch (extension.toLowerCase()) { + case 'png': + mimeType = 'image/png'; + break; + case 'jpeg': + mimeType = 'image/jpeg'; + break; + case 'jpg': + mimeType = 'image/jpeg'; + break; + default: + mimeType = 'image/png'; + break; + } + } + var downloadMime = 'image/octet-stream'; + var imageData = cnv.toDataURL(mimeType); + imageData = imageData.replace(mimeType, downloadMime); + + var thisFrame = {}; + thisFrame.imageData = imageData; + thisFrame.filename = filename; + thisFrame.ext = extension; + frames.push(thisFrame); + }; + + module.exports = p5; + }, + { '../core/main': 24 } + ], + 45: [ + function(_dereq_, module, exports) { + /** + * @module Image + * @submodule Loading & Displaying + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + var Filters = _dereq_('./filters'); + var canvas = _dereq_('../core/helpers'); + var constants = _dereq_('../core/constants'); + + _dereq_('../core/error_helpers'); + + /** + * Loads an image from a path and creates a p5.Image from it. + *

+ * The image may not be immediately available for rendering + * If you want to ensure that the image is ready before doing + * anything with it, place the loadImage() call in preload(). + * You may also supply a callback function to handle the image when it's ready. + *

+ * The path to the image should be relative to the HTML file + * that links in your sketch. Loading an image from a URL or other + * remote location may be blocked due to your browser's built-in + * security. + * + * @method loadImage + * @param {String} path Path of the image to be loaded + * @param {function(p5.Image)} [successCallback] Function to be called once + * the image is loaded. Will be passed the + * p5.Image. + * @param {function(Event)} [failureCallback] called with event error if + * the image fails to load. + * @return {p5.Image} the p5.Image object + * @example + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/laDefense.jpg'); + * } + * function setup() { + * image(img, 0, 0); + * } + * + *
+ *
+ * + * function setup() { + * // here we use a callback to display the image after loading + * loadImage('assets/laDefense.jpg', img => { + * image(img, 0, 0); + * }); + * } + * + *
+ * + * @alt + * image of the underside of a white umbrella and grided ceililng above + * image of the underside of a white umbrella and grided ceililng above + * + */ + p5.prototype.loadImage = function(path, successCallback, failureCallback) { + p5._validateParameters('loadImage', arguments); + var img = new Image(); + var pImg = new p5.Image(1, 1, this); + + var self = this; + img.onload = function() { + pImg.width = pImg.canvas.width = img.width; + pImg.height = pImg.canvas.height = img.height; + + // Draw the image into the backing canvas of the p5.Image + pImg.drawingContext.drawImage(img, 0, 0); + pImg.modified = true; + + if (typeof successCallback === 'function') { + successCallback(pImg); + } + + self._decrementPreload(); + }; + img.onerror = function(e) { + p5._friendlyFileLoadError(0, img.src); + if (typeof failureCallback === 'function') { + failureCallback(e); + } else { + console.error(e); + } + }; + + // Set crossOrigin in case image is served with CORS headers. + // This will let us draw to the canvas without tainting it. + // See https://developer.mozilla.org/en-US/docs/HTML/CORS_Enabled_Image + // When using data-uris the file will be loaded locally + // so we don't need to worry about crossOrigin with base64 file types. + if (path.indexOf('data:image/') !== 0) { + img.crossOrigin = 'Anonymous'; + } + + // start loading the image + img.src = path; + + return pImg; + }; + + /** + * Validates clipping params. Per drawImage spec sWidth and sHight cannot be + * negative or greater than image intrinsic width and height + * @private + * @param {Number} sVal + * @param {Number} iVal + * @returns {Number} + * @private + */ + function _sAssign(sVal, iVal) { + if (sVal > 0 && sVal < iVal) { + return sVal; + } else { + return iVal; + } + } + + /** + * Draw an image to the p5.js canvas. + * + * This function can be used with different numbers of parameters. The + * simplest use requires only three parameters: img, x, and yโ€”where (x, y) is + * the position of the image. Two more parameters can optionally be added to + * specify the width and height of the image. + * + * This function can also be used with all eight Number parameters. To + * differentiate between all these parameters, p5.js uses the language of + * "destination rectangle" (which corresponds to "dx", "dy", etc.) and "source + * image" (which corresponds to "sx", "sy", etc.) below. Specifying the + * "source image" dimensions can be useful when you want to display a + * subsection of the source image instead of the whole thing. Here's a diagram + * to explain further: + * + * + * @method image + * @param {p5.Image|p5.Element} img the image to display + * @param {Number} x the x-coordinate of the top-left corner of the image + * @param {Number} y the y-coordinate of the top-left corner of the image + * @param {Number} [width] the width to draw the image + * @param {Number} [height] the height to draw the image + * @example + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/laDefense.jpg'); + * } + * function setup() { + * // Top-left corner of the img is at (0, 0) + * // Width and height are the img's original width and height + * image(img, 0, 0); + * } + * + *
+ *
+ * + * let img; + * function preload() { + * img = loadImage('assets/laDefense.jpg'); + * } + * function setup() { + * background(50); + * // Top-left corner of the img is at (10, 10) + * // Width and height are 50 x 50 + * image(img, 10, 10, 50, 50); + * } + * + *
+ *
+ * + * function setup() { + * // Here, we use a callback to display the image after loading + * loadImage('assets/laDefense.jpg', img => { + * image(img, 0, 0); + * }); + * } + * + *
+ *
+ * + * let img; + * function preload() { + * img = loadImage('assets/gradient.png'); + * } + * function setup() { + * // 1. Background image + * // Top-left corner of the img is at (0, 0) + * // Width and height are the img's original width and height, 100 x 100 + * image(img, 0, 0); + * // 2. Top right image + * // Top-left corner of destination rectangle is at (50, 0) + * // Destination rectangle width and height are 40 x 20 + * // The next parameters are relative to the source image: + * // - Starting at position (50, 50) on the source image, capture a 50 x 50 + * // subsection + * // - Draw this subsection to fill the dimensions of the destination rectangle + * image(img, 50, 0, 40, 20, 50, 50, 50, 50); + * } + * + *
+ * @alt + * image of the underside of a white umbrella and gridded ceiling above + * image of the underside of a white umbrella and gridded ceiling above + * + */ + /** + * @method image + * @param {p5.Image|p5.Element} img + * @param {Number} dx the x-coordinate of the destination + * rectangle in which to draw the source image + * @param {Number} dy the y-coordinate of the destination + * rectangle in which to draw the source image + * @param {Number} dWidth the width of the destination rectangle + * @param {Number} dHeight the height of the destination rectangle + * @param {Number} sx the x-coordinate of the subsection of the source + * image to draw into the destination rectangle + * @param {Number} sy the y-coordinate of the subsection of the source + * image to draw into the destination rectangle + * @param {Number} [sWidth] the width of the subsection of the + * source image to draw into the destination + * rectangle + * @param {Number} [sHeight] the height of the subsection of the + * source image to draw into the destination rectangle + */ + p5.prototype.image = function( + img, + dx, + dy, + dWidth, + dHeight, + sx, + sy, + sWidth, + sHeight + ) { + // set defaults per spec: https://goo.gl/3ykfOq + + p5._validateParameters('image', arguments); + + var defW = img.width; + var defH = img.height; + + if (img.elt && img.elt.videoWidth && !img.canvas) { + // video no canvas + defW = img.elt.videoWidth; + defH = img.elt.videoHeight; + } + + var _dx = dx; + var _dy = dy; + var _dw = dWidth || defW; + var _dh = dHeight || defH; + var _sx = sx || 0; + var _sy = sy || 0; + var _sw = sWidth || defW; + var _sh = sHeight || defH; + + _sw = _sAssign(_sw, defW); + _sh = _sAssign(_sh, defH); + + // This part needs cleanup and unit tests + // see issues https://github.com/processing/p5.js/issues/1741 + // and https://github.com/processing/p5.js/issues/1673 + var pd = 1; + + if (img.elt && !img.canvas && img.elt.style.width) { + //if img is video and img.elt.size() has been used and + //no width passed to image() + if (img.elt.videoWidth && !dWidth) { + pd = img.elt.videoWidth; + } else { + //all other cases + pd = img.elt.width; + } + pd /= parseInt(img.elt.style.width, 10); + } + + _sx *= pd; + _sy *= pd; + _sh *= pd; + _sw *= pd; + + var vals = canvas.modeAdjust(_dx, _dy, _dw, _dh, this._renderer._imageMode); + + // tint the image if there is a tint + this._renderer.image(img, _sx, _sy, _sw, _sh, vals.x, vals.y, vals.w, vals.h); + }; + + /** + * Sets the fill value for displaying images. Images can be tinted to + * specified colors or made transparent by including an alpha value. + *

+ * To apply transparency to an image without affecting its color, use + * white as the tint color and specify an alpha value. For instance, + * tint(255, 128) will make an image 50% transparent (assuming the default + * alpha range of 0-255, which can be changed with colorMode()). + *

+ * The value for the gray parameter must be less than or equal to the current + * maximum value as specified by colorMode(). The default maximum value is + * 255. + * + * + * @method tint + * @param {Number} v1 red or hue value relative to + * the current color range + * @param {Number} v2 green or saturation value + * relative to the current color range + * @param {Number} v3 blue or brightness value + * relative to the current color range + * @param {Number} [alpha] + * + * @example + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/laDefense.jpg'); + * } + * function setup() { + * image(img, 0, 0); + * tint(0, 153, 204); // Tint blue + * image(img, 50, 0); + * } + * + *
+ * + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/laDefense.jpg'); + * } + * function setup() { + * image(img, 0, 0); + * tint(0, 153, 204, 126); // Tint blue and set transparency + * image(img, 50, 0); + * } + * + *
+ * + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/laDefense.jpg'); + * } + * function setup() { + * image(img, 0, 0); + * tint(255, 126); // Apply transparency without changing color + * image(img, 50, 0); + * } + * + *
+ * + * @alt + * 2 side by side images of umbrella and ceiling, one image with blue tint + * Images of umbrella and ceiling, one half of image with blue tint + * 2 side by side images of umbrella and ceiling, one image translucent + * + */ + + /** + * @method tint + * @param {String} value a color string + */ + + /** + * @method tint + * @param {Number} gray a gray value + * @param {Number} [alpha] + */ + + /** + * @method tint + * @param {Number[]} values an array containing the red,green,blue & + * and alpha components of the color + */ + + /** + * @method tint + * @param {p5.Color} color the tint color + */ + p5.prototype.tint = function() { + p5._validateParameters('tint', arguments); + var c = this.color.apply(this, arguments); + this._renderer._tint = c.levels; + }; + + /** + * Removes the current fill value for displaying images and reverts to + * displaying images with their original hues. + * + * @method noTint + * @example + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/bricks.jpg'); + * } + * function setup() { + * tint(0, 153, 204); // Tint blue + * image(img, 0, 0); + * noTint(); // Disable tint + * image(img, 50, 0); + * } + * + *
+ * + * @alt + * 2 side by side images of bricks, left image with blue tint + * + */ + p5.prototype.noTint = function() { + this._renderer._tint = null; + }; + + /** + * Apply the current tint color to the input image, return the resulting + * canvas. + * + * @private + * @param {p5.Image} The image to be tinted + * @return {canvas} The resulting tinted canvas + * + */ + p5.prototype._getTintedImageCanvas = function(img) { + if (!img.canvas) { + return img; + } + var pixels = Filters._toPixels(img.canvas); + var tmpCanvas = document.createElement('canvas'); + tmpCanvas.width = img.canvas.width; + tmpCanvas.height = img.canvas.height; + var tmpCtx = tmpCanvas.getContext('2d'); + var id = tmpCtx.createImageData(img.canvas.width, img.canvas.height); + var newPixels = id.data; + + for (var i = 0; i < pixels.length; i += 4) { + var r = pixels[i]; + var g = pixels[i + 1]; + var b = pixels[i + 2]; + var a = pixels[i + 3]; + + newPixels[i] = r * this._renderer._tint[0] / 255; + newPixels[i + 1] = g * this._renderer._tint[1] / 255; + newPixels[i + 2] = b * this._renderer._tint[2] / 255; + newPixels[i + 3] = a * this._renderer._tint[3] / 255; + } + + tmpCtx.putImageData(id, 0, 0); + return tmpCanvas; + }; + + /** + * Set image mode. Modifies the location from which images are drawn by + * changing the way in which parameters given to image() are interpreted. + * The default mode is imageMode(CORNER), which interprets the second and + * third parameters of image() as the upper-left corner of the image. If + * two additional parameters are specified, they are used to set the image's + * width and height. + *

+ * imageMode(CORNERS) interprets the second and third parameters of image() + * as the location of one corner, and the fourth and fifth parameters as the + * opposite corner. + *

+ * imageMode(CENTER) interprets the second and third parameters of image() + * as the image's center point. If two additional parameters are specified, + * they are used to set the image's width and height. + * + * @method imageMode + * @param {Constant} mode either CORNER, CORNERS, or CENTER + * @example + * + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/bricks.jpg'); + * } + * function setup() { + * imageMode(CORNER); + * image(img, 10, 10, 50, 50); + * } + * + *
+ * + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/bricks.jpg'); + * } + * function setup() { + * imageMode(CORNERS); + * image(img, 10, 10, 90, 40); + * } + * + *
+ * + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/bricks.jpg'); + * } + * function setup() { + * imageMode(CENTER); + * image(img, 50, 50, 80, 80); + * } + * + *
+ * + * @alt + * small square image of bricks + * horizontal rectangle image of bricks + * large square image of bricks + * + */ + p5.prototype.imageMode = function(m) { + p5._validateParameters('imageMode', arguments); + if ( + m === constants.CORNER || + m === constants.CORNERS || + m === constants.CENTER + ) { + this._renderer._imageMode = m; + } + }; + + module.exports = p5; + }, + { + '../core/constants': 18, + '../core/error_helpers': 20, + '../core/helpers': 21, + '../core/main': 24, + './filters': 43 + } + ], + 46: [ + function(_dereq_, module, exports) { + /** + * @module Image + * @submodule Image + * @requires core + * @requires constants + * @requires filters + */ + + /** + * This module defines the p5.Image class and P5 methods for + * drawing images to the main display canvas. + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + var Filters = _dereq_('./filters'); + + /* + * Class methods + */ + + /** + * Creates a new p5.Image. A p5.Image is a canvas backed representation of an + * image. + *

+ * p5 can display .gif, .jpg and .png images. Images may be displayed + * in 2D and 3D space. Before an image is used, it must be loaded with the + * loadImage() function. The p5.Image class contains fields for the width and + * height of the image, as well as an array called pixels[] that contains the + * values for every pixel in the image. + *

+ * The methods described below allow easy access to the image's pixels and + * alpha channel and simplify the process of compositing. + *

+ * Before using the pixels[] array, be sure to use the loadPixels() method on + * the image to make sure that the pixel data is properly loaded. + * @example + *
+ * function setup() { + * let img = createImage(100, 100); // same as new p5.Image(100, 100); + * img.loadPixels(); + * createCanvas(100, 100); + * background(0); + * + * // helper for writing color to array + * function writeColor(image, x, y, red, green, blue, alpha) { + * let index = (x + y * width) * 4; + * image.pixels[index] = red; + * image.pixels[index + 1] = green; + * image.pixels[index + 2] = blue; + * image.pixels[index + 3] = alpha; + * } + * + * let x, y; + * // fill with random colors + * for (y = 0; y < img.height; y++) { + * for (x = 0; x < img.width; x++) { + * let red = random(255); + * let green = random(255); + * let blue = random(255); + * let alpha = 255; + * writeColor(img, x, y, red, green, blue, alpha); + * } + * } + * + * // draw a red line + * y = 0; + * for (x = 0; x < img.width; x++) { + * writeColor(img, x, y, 255, 0, 0, 255); + * } + * + * // draw a green line + * y = img.height - 1; + * for (x = 0; x < img.width; x++) { + * writeColor(img, x, y, 0, 255, 0, 255); + * } + * + * img.updatePixels(); + * image(img, 0, 0); + * } + *
+ * + * + * @class p5.Image + * @param {Number} width + * @param {Number} height + */ + p5.Image = function(width, height) { + /** + * Image width. + * @property {Number} width + * @readOnly + * @example + *
+ * let img; + * function preload() { + * img = loadImage('assets/rockies.jpg'); + * } + * + * function setup() { + * createCanvas(100, 100); + * image(img, 0, 0); + * for (let i = 0; i < img.width; i++) { + * let c = img.get(i, img.height / 2); + * stroke(c); + * line(i, height / 2, i, height); + * } + * } + *
+ * + * @alt + * rocky mountains in top and horizontal lines in corresponding colors in bottom. + * + */ + this.width = width; + /** + * Image height. + * @property {Number} height + * @readOnly + * @example + *
+ * let img; + * function preload() { + * img = loadImage('assets/rockies.jpg'); + * } + * + * function setup() { + * createCanvas(100, 100); + * image(img, 0, 0); + * for (let i = 0; i < img.height; i++) { + * let c = img.get(img.width / 2, i); + * stroke(c); + * line(0, i, width / 2, i); + * } + * } + *
+ * + * @alt + * rocky mountains on right and vertical lines in corresponding colors on left. + * + */ + this.height = height; + this.canvas = document.createElement('canvas'); + this.canvas.width = this.width; + this.canvas.height = this.height; + this.drawingContext = this.canvas.getContext('2d'); + this._pixelsState = this; + this._pixelDensity = 1; + this._pixelsDirty = true; + //For WebGL Texturing only: used to determine whether to reupload texture to GPU + this._modified = false; + /** + * Array containing the values for all the pixels in the display window. + * These values are numbers. This array is the size (include an appropriate + * factor for pixelDensity) of the display window x4, + * representing the R, G, B, A values in order for each pixel, moving from + * left to right across each row, then down each column. Retina and other + * high denisty displays may have more pixels (by a factor of + * pixelDensity^2). + * For example, if the image is 100x100 pixels, there will be 40,000. With + * pixelDensity = 2, there will be 160,000. The first four values + * (indices 0-3) in the array will be the R, G, B, A values of the pixel at + * (0, 0). The second four values (indices 4-7) will contain the R, G, B, A + * values of the pixel at (1, 0). More generally, to set values for a pixel + * at (x, y): + * ```javascript + * let d = pixelDensity(); + * for (let i = 0; i < d; i++) { + * for (let j = 0; j < d; j++) { + * // loop over + * index = 4 * ((y * d + j) * width * d + (x * d + i)); + * pixels[index] = r; + * pixels[index+1] = g; + * pixels[index+2] = b; + * pixels[index+3] = a; + * } + * } + * ``` + *

+ * Before accessing this array, the data must loaded with the loadPixels() + * function. After the array data has been modified, the updatePixels() + * function must be run to update the changes. + * @property {Number[]} pixels + * @example + *
+ * + * let img = createImage(66, 66); + * img.loadPixels(); + * for (let i = 0; i < img.width; i++) { + * for (let j = 0; j < img.height; j++) { + * img.set(i, j, color(0, 90, 102)); + * } + * } + * img.updatePixels(); + * image(img, 17, 17); + * + *
+ *
+ * + * let pink = color(255, 102, 204); + * let img = createImage(66, 66); + * img.loadPixels(); + * for (let i = 0; i < 4 * (width * height / 2); i += 4) { + * img.pixels[i] = red(pink); + * img.pixels[i + 1] = green(pink); + * img.pixels[i + 2] = blue(pink); + * img.pixels[i + 3] = alpha(pink); + * } + * img.updatePixels(); + * image(img, 17, 17); + * + *
+ * + * @alt + * 66x66 turquoise rect in center of canvas + * 66x66 pink rect in center of canvas + * + */ + this.pixels = []; + }; + + /** + * Helper fxn for sharing pixel methods + * + */ + p5.Image.prototype._setProperty = function(prop, value) { + this[prop] = value; + this.setModified(true); + }; + + /** + * Loads the pixels data for this image into the [pixels] attribute. + * + * @method loadPixels + * @example + *
+ * let myImage; + * let halfImage; + * + * function preload() { + * myImage = loadImage('assets/rockies.jpg'); + * } + * + * function setup() { + * myImage.loadPixels(); + * halfImage = 4 * myImage.width * myImage.height / 2; + * for (let i = 0; i < halfImage; i++) { + * myImage.pixels[i + halfImage] = myImage.pixels[i]; + * } + * myImage.updatePixels(); + * } + * + * function draw() { + * image(myImage, 0, 0, width, height); + * } + *
+ * + * @alt + * 2 images of rocky mountains vertically stacked + * + */ + p5.Image.prototype.loadPixels = function() { + p5.Renderer2D.prototype.loadPixels.call(this); + this.setModified(true); + }; + + /** + * Updates the backing canvas for this image with the contents of + * the [pixels] array. + * + * @method updatePixels + * @param {Integer} x x-offset of the target update area for the + * underlying canvas + * @param {Integer} y y-offset of the target update area for the + * underlying canvas + * @param {Integer} w height of the target update area for the + * underlying canvas + * @param {Integer} h height of the target update area for the + * underlying canvas + * @example + *
+ * let myImage; + * let halfImage; + * + * function preload() { + * myImage = loadImage('assets/rockies.jpg'); + * } + * + * function setup() { + * myImage.loadPixels(); + * halfImage = 4 * myImage.width * myImage.height / 2; + * for (let i = 0; i < halfImage; i++) { + * myImage.pixels[i + halfImage] = myImage.pixels[i]; + * } + * myImage.updatePixels(); + * } + * + * function draw() { + * image(myImage, 0, 0, width, height); + * } + *
+ * + * @alt + * 2 images of rocky mountains vertically stacked + * + */ + /** + * @method updatePixels + */ + p5.Image.prototype.updatePixels = function(x, y, w, h) { + p5.Renderer2D.prototype.updatePixels.call(this, x, y, w, h); + this.setModified(true); + }; + + /** + * Get a region of pixels from an image. + * + * If no params are passed, the whole image is returned. + * If x and y are the only params passed a single pixel is extracted. + * If all params are passed a rectangle region is extracted and a p5.Image + * is returned. + * + * @method get + * @param {Number} x x-coordinate of the pixel + * @param {Number} y y-coordinate of the pixel + * @param {Number} w width + * @param {Number} h height + * @return {p5.Image} the rectangle p5.Image + * @example + *
+ * let myImage; + * let c; + * + * function preload() { + * myImage = loadImage('assets/rockies.jpg'); + * } + * + * function setup() { + * background(myImage); + * noStroke(); + * c = myImage.get(60, 90); + * fill(c); + * rect(25, 25, 50, 50); + * } + * + * //get() returns color here + *
+ * + * @alt + * image of rocky mountains with 50x50 green rect in front + * + */ + /** + * @method get + * @return {p5.Image} the whole p5.Image + */ + /** + * @method get + * @param {Number} x + * @param {Number} y + * @return {Number[]} color of pixel at x,y in array format [R, G, B, A] + */ + p5.Image.prototype.get = function(x, y, w, h) { + p5._validateParameters('p5.Image.get', arguments); + return p5.Renderer2D.prototype.get.apply(this, arguments); + }; + + p5.Image.prototype._getPixel = p5.Renderer2D.prototype._getPixel; + + /** + * Set the color of a single pixel or write an image into + * this p5.Image. + * + * Note that for a large number of pixels this will + * be slower than directly manipulating the pixels array + * and then calling updatePixels(). + * + * @method set + * @param {Number} x x-coordinate of the pixel + * @param {Number} y y-coordinate of the pixel + * @param {Number|Number[]|Object} a grayscale value | pixel array | + * a p5.Color | image to copy + * @example + *
+ * + * let img = createImage(66, 66); + * img.loadPixels(); + * for (let i = 0; i < img.width; i++) { + * for (let j = 0; j < img.height; j++) { + * img.set(i, j, color(0, 90, 102, (i % img.width) * 2)); + * } + * } + * img.updatePixels(); + * image(img, 17, 17); + * image(img, 34, 34); + * + *
+ * + * @alt + * 2 gradated dark turquoise rects fade left. 1 center 1 bottom right of canvas + * + */ + p5.Image.prototype.set = function(x, y, imgOrCol) { + p5.Renderer2D.prototype.set.call(this, x, y, imgOrCol); + this.setModified(true); + }; + + /** + * Resize the image to a new width and height. To make the image scale + * proportionally, use 0 as the value for the wide or high parameter. + * For instance, to make the width of an image 150 pixels, and change + * the height using the same proportion, use resize(150, 0). + * + * @method resize + * @param {Number} width the resized image width + * @param {Number} height the resized image height + * @example + *
+ * let img; + * + * function preload() { + * img = loadImage('assets/rockies.jpg'); + * } + + * function draw() { + * image(img, 0, 0); + * } + * + * function mousePressed() { + * img.resize(50, 100); + * } + *
+ * + * @alt + * image of rocky mountains. zoomed in + * + */ + p5.Image.prototype.resize = function(width, height) { + // Copy contents to a temporary canvas, resize the original + // and then copy back. + // + // There is a faster approach that involves just one copy and swapping the + // this.canvas reference. We could switch to that approach if (as i think + // is the case) there an expectation that the user would not hold a + // reference to the backing canvas of a p5.Image. But since we do not + // enforce that at the moment, I am leaving in the slower, but safer + // implementation. + + // auto-resize + if (width === 0 && height === 0) { + width = this.canvas.width; + height = this.canvas.height; + } else if (width === 0) { + width = this.canvas.width * height / this.canvas.height; + } else if (height === 0) { + height = this.canvas.height * width / this.canvas.width; + } + + width = Math.floor(width); + height = Math.floor(height); + + var tempCanvas = document.createElement('canvas'); + tempCanvas.width = width; + tempCanvas.height = height; + // prettier-ignore + tempCanvas.getContext('2d').drawImage( + this.canvas, + 0, 0, this.canvas.width, this.canvas.height, + 0, 0, tempCanvas.width, tempCanvas.height); + + // Resize the original canvas, which will clear its contents + this.canvas.width = this.width = width; + this.canvas.height = this.height = height; + + //Copy the image back + + // prettier-ignore + this.drawingContext.drawImage( + tempCanvas, + 0, 0, width, height, + 0, 0, width, height); + + if (this.pixels.length > 0) { + this.loadPixels(); + } + + this.setModified(true); + this._pixelsDirty = true; + }; + + /** + * Copies a region of pixels from one image to another. If no + * srcImage is specified this is used as the source. If the source + * and destination regions aren't the same size, it will + * automatically resize source pixels to fit the specified + * target region. + * + * @method copy + * @param {p5.Image|p5.Element} srcImage source image + * @param {Integer} sx X coordinate of the source's upper left corner + * @param {Integer} sy Y coordinate of the source's upper left corner + * @param {Integer} sw source image width + * @param {Integer} sh source image height + * @param {Integer} dx X coordinate of the destination's upper left corner + * @param {Integer} dy Y coordinate of the destination's upper left corner + * @param {Integer} dw destination image width + * @param {Integer} dh destination image height + * @example + *
+ * let photo; + * let bricks; + * let x; + * let y; + * + * function preload() { + * photo = loadImage('assets/rockies.jpg'); + * bricks = loadImage('assets/bricks.jpg'); + * } + * + * function setup() { + * x = bricks.width / 2; + * y = bricks.height / 2; + * photo.copy(bricks, 0, 0, x, y, 0, 0, x, y); + * image(photo, 0, 0); + * } + *
+ * + * @alt + * image of rocky mountains and smaller image on top of bricks at top left + * + */ + /** + * @method copy + * @param {Integer} sx + * @param {Integer} sy + * @param {Integer} sw + * @param {Integer} sh + * @param {Integer} dx + * @param {Integer} dy + * @param {Integer} dw + * @param {Integer} dh + */ + p5.Image.prototype.copy = function() { + var srcImage, sx, sy, sw, sh, dx, dy, dw, dh; + if (arguments.length === 9) { + srcImage = arguments[0]; + sx = arguments[1]; + sy = arguments[2]; + sw = arguments[3]; + sh = arguments[4]; + dx = arguments[5]; + dy = arguments[6]; + dw = arguments[7]; + dh = arguments[8]; + } else if (arguments.length === 8) { + srcImage = this; + sx = arguments[0]; + sy = arguments[1]; + sw = arguments[2]; + sh = arguments[3]; + dx = arguments[4]; + dy = arguments[5]; + dw = arguments[6]; + dh = arguments[7]; + } else { + throw new Error('Signature not supported'); + } + p5.Renderer2D._copyHelper(this, srcImage, sx, sy, sw, sh, dx, dy, dw, dh); + this._pixelsDirty = true; + }; + + /** + * Masks part of an image from displaying by loading another + * image and using it's alpha channel as an alpha channel for + * this image. + * + * @method mask + * @param {p5.Image} srcImage source image + * @example + *
+ * let photo, maskImage; + * function preload() { + * photo = loadImage('assets/rockies.jpg'); + * maskImage = loadImage('assets/mask2.png'); + * } + * + * function setup() { + * createCanvas(100, 100); + * photo.mask(maskImage); + * image(photo, 0, 0); + * } + *
+ * + * @alt + * image of rocky mountains with white at right + * + * + * http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/ + * + */ + // TODO: - Accept an array of alpha values. + // - Use other channels of an image. p5 uses the + // blue channel (which feels kind of arbitrary). Note: at the + // moment this method does not match native processings original + // functionality exactly. + p5.Image.prototype.mask = function(p5Image) { + if (p5Image === undefined) { + p5Image = this; + } + var currBlend = this.drawingContext.globalCompositeOperation; + + var scaleFactor = 1; + if (p5Image instanceof p5.Renderer) { + scaleFactor = p5Image._pInst._pixelDensity; + } + + var copyArgs = [ + p5Image, + 0, + 0, + scaleFactor * p5Image.width, + scaleFactor * p5Image.height, + 0, + 0, + this.width, + this.height + ]; + + this.drawingContext.globalCompositeOperation = 'destination-in'; + p5.Image.prototype.copy.apply(this, copyArgs); + this.drawingContext.globalCompositeOperation = currBlend; + this.setModified(true); + }; + + /** + * Applies an image filter to a p5.Image + * + * @method filter + * @param {Constant} filterType either THRESHOLD, GRAY, OPAQUE, INVERT, + * POSTERIZE, BLUR, ERODE, DILATE or BLUR. + * See Filters.js for docs on + * each available filter + * @param {Number} [filterParam] an optional parameter unique + * to each filter, see above + * @example + *
+ * let photo1; + * let photo2; + * + * function preload() { + * photo1 = loadImage('assets/rockies.jpg'); + * photo2 = loadImage('assets/rockies.jpg'); + * } + * + * function setup() { + * photo2.filter(GRAY); + * image(photo1, 0, 0); + * image(photo2, width / 2, 0); + * } + *
+ * + * @alt + * 2 images of rocky mountains left one in color, right in black and white + * + */ + p5.Image.prototype.filter = function(operation, value) { + Filters.apply(this.canvas, Filters[operation], value); + this.setModified(true); + }; + + /** + * Copies a region of pixels from one image to another, using a specified + * blend mode to do the operation. + * + * @method blend + * @param {p5.Image} srcImage source image + * @param {Integer} sx X coordinate of the source's upper left corner + * @param {Integer} sy Y coordinate of the source's upper left corner + * @param {Integer} sw source image width + * @param {Integer} sh source image height + * @param {Integer} dx X coordinate of the destination's upper left corner + * @param {Integer} dy Y coordinate of the destination's upper left corner + * @param {Integer} dw destination image width + * @param {Integer} dh destination image height + * @param {Constant} blendMode the blend mode. either + * BLEND, DARKEST, LIGHTEST, DIFFERENCE, + * MULTIPLY, EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT, + * SOFT_LIGHT, DODGE, BURN, ADD or NORMAL. + * + * Available blend modes are: normal | multiply | screen | overlay | + * darken | lighten | color-dodge | color-burn | hard-light | + * soft-light | difference | exclusion | hue | saturation | + * color | luminosity + * + * + * http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/ + * @example + *
+ * let mountains; + * let bricks; + * + * function preload() { + * mountains = loadImage('assets/rockies.jpg'); + * bricks = loadImage('assets/bricks_third.jpg'); + * } + * + * function setup() { + * mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, ADD); + * image(mountains, 0, 0); + * image(bricks, 0, 0); + * } + *
+ *
+ * let mountains; + * let bricks; + * + * function preload() { + * mountains = loadImage('assets/rockies.jpg'); + * bricks = loadImage('assets/bricks_third.jpg'); + * } + * + * function setup() { + * mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, DARKEST); + * image(mountains, 0, 0); + * image(bricks, 0, 0); + * } + *
+ *
+ * let mountains; + * let bricks; + * + * function preload() { + * mountains = loadImage('assets/rockies.jpg'); + * bricks = loadImage('assets/bricks_third.jpg'); + * } + * + * function setup() { + * mountains.blend(bricks, 0, 0, 33, 100, 67, 0, 33, 100, LIGHTEST); + * image(mountains, 0, 0); + * image(bricks, 0, 0); + * } + *
+ * + * @alt + * image of rocky mountains. Brick images on left and right. Right overexposed + * image of rockies. Brickwall images on left and right. Right mortar transparent + * image of rockies. Brickwall images on left and right. Right translucent + * + */ + /** + * @method blend + * @param {Integer} sx + * @param {Integer} sy + * @param {Integer} sw + * @param {Integer} sh + * @param {Integer} dx + * @param {Integer} dy + * @param {Integer} dw + * @param {Integer} dh + * @param {Constant} blendMode + */ + p5.Image.prototype.blend = function() { + p5.prototype.blend.apply(this, arguments); + this.setModified(true); + }; + + /** + * helper method for web GL mode to indicate that an image has been + * changed or unchanged since last upload. gl texture upload will + * set this value to false after uploading the texture. + * @method setModified + * @param {boolean} val sets whether or not the image has been + * modified. + * @private + */ + p5.Image.prototype.setModified = function(val) { + this._modified = val; //enforce boolean? + }; + + /** + * helper method for web GL mode to figure out if the image + * has been modified and might need to be re-uploaded to texture + * memory between frames. + * @method isModified + * @private + * @return {boolean} a boolean indicating whether or not the + * image has been updated or modified since last texture upload. + */ + p5.Image.prototype.isModified = function() { + return this._modified; + }; + + /** + * Saves the image to a file and force the browser to download it. + * Accepts two strings for filename and file extension + * Supports png (default) and jpg. + * + * @method save + * @param {String} filename give your file a name + * @param {String} extension 'png' or 'jpg' + * @example + *
+ * let photo; + * + * function preload() { + * photo = loadImage('assets/rockies.jpg'); + * } + * + * function draw() { + * image(photo, 0, 0); + * } + * + * function keyTyped() { + * if (key === 's') { + * photo.save('photo', 'png'); + * } + * } + *
+ * + * @alt + * image of rocky mountains. + * + */ + p5.Image.prototype.save = function(filename, extension) { + p5.prototype.saveCanvas(this.canvas, filename, extension); + }; + + module.exports = p5.Image; + }, + { '../core/main': 24, './filters': 43 } + ], + 47: [ + function(_dereq_, module, exports) { + /** + * @module Image + * @submodule Pixels + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + var Filters = _dereq_('./filters'); + _dereq_('../color/p5.Color'); + + /** + * Uint8ClampedArray + * containing the values for all the pixels in the display window. + * These values are numbers. This array is the size (include an appropriate + * factor for pixelDensity) of the display window x4, + * representing the R, G, B, A values in order for each pixel, moving from + * left to right across each row, then down each column. Retina and other + * high density displays will have more pixels[] (by a factor of + * pixelDensity^2). + * For example, if the image is 100x100 pixels, there will be 40,000. On a + * retina display, there will be 160,000. + *

+ * The first four values (indices 0-3) in the array will be the R, G, B, A + * values of the pixel at (0, 0). The second four values (indices 4-7) will + * contain the R, G, B, A values of the pixel at (1, 0). More generally, to + * set values for a pixel at (x, y): + * ```javascript + * let d = pixelDensity(); + * for (let i = 0; i < d; i++) { + * for (let j = 0; j < d; j++) { + * // loop over + * index = 4 * ((y * d + j) * width * d + (x * d + i)); + * pixels[index] = r; + * pixels[index+1] = g; + * pixels[index+2] = b; + * pixels[index+3] = a; + * } + * } + * ``` + *

While the above method is complex, it is flexible enough to work with + * any pixelDensity. Note that set() will automatically take care of + * setting all the appropriate values in pixels[] for a given (x, y) at + * any pixelDensity, but the performance may not be as fast when lots of + * modifications are made to the pixel array. + *

+ * Before accessing this array, the data must loaded with the loadPixels() + * function. After the array data has been modified, the updatePixels() + * function must be run to update the changes. + *

+ * Note that this is not a standard javascript array. This means that + * standard javascript functions such as slice() or + * arrayCopy() do not + * work.

+ * + * @property {Number[]} pixels + * @example + *
+ * + * let pink = color(255, 102, 204); + * loadPixels(); + * let d = pixelDensity(); + * let halfImage = 4 * (width * d) * (height / 2 * d); + * for (let i = 0; i < halfImage; i += 4) { + * pixels[i] = red(pink); + * pixels[i + 1] = green(pink); + * pixels[i + 2] = blue(pink); + * pixels[i + 3] = alpha(pink); + * } + * updatePixels(); + * + *
+ * + * @alt + * top half of canvas pink, bottom grey + * + */ + p5.prototype.pixels = []; + + /** + * Copies a region of pixels from one image to another, using a specified + * blend mode to do the operation. + * + * @method blend + * @param {p5.Image} srcImage source image + * @param {Integer} sx X coordinate of the source's upper left corner + * @param {Integer} sy Y coordinate of the source's upper left corner + * @param {Integer} sw source image width + * @param {Integer} sh source image height + * @param {Integer} dx X coordinate of the destination's upper left corner + * @param {Integer} dy Y coordinate of the destination's upper left corner + * @param {Integer} dw destination image width + * @param {Integer} dh destination image height + * @param {Constant} blendMode the blend mode. either + * BLEND, DARKEST, LIGHTEST, DIFFERENCE, + * MULTIPLY, EXCLUSION, SCREEN, REPLACE, OVERLAY, HARD_LIGHT, + * SOFT_LIGHT, DODGE, BURN, ADD or NORMAL. + * + * @example + *
+ * let img0; + * let img1; + * + * function preload() { + * img0 = loadImage('assets/rockies.jpg'); + * img1 = loadImage('assets/bricks_third.jpg'); + * } + * + * function setup() { + * background(img0); + * image(img1, 0, 0); + * blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, LIGHTEST); + * } + *
+ *
+ * let img0; + * let img1; + * + * function preload() { + * img0 = loadImage('assets/rockies.jpg'); + * img1 = loadImage('assets/bricks_third.jpg'); + * } + * + * function setup() { + * background(img0); + * image(img1, 0, 0); + * blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, DARKEST); + * } + *
+ *
+ * let img0; + * let img1; + * + * function preload() { + * img0 = loadImage('assets/rockies.jpg'); + * img1 = loadImage('assets/bricks_third.jpg'); + * } + * + * function setup() { + * background(img0); + * image(img1, 0, 0); + * blend(img1, 0, 0, 33, 100, 67, 0, 33, 100, ADD); + * } + *
+ * + * @alt + * image of rocky mountains. Brick images on left and right. Right overexposed + * image of rockies. Brickwall images on left and right. Right mortar transparent + * image of rockies. Brickwall images on left and right. Right translucent + * + * + */ + /** + * @method blend + * @param {Integer} sx + * @param {Integer} sy + * @param {Integer} sw + * @param {Integer} sh + * @param {Integer} dx + * @param {Integer} dy + * @param {Integer} dw + * @param {Integer} dh + * @param {Constant} blendMode + */ + p5.prototype.blend = function() { + p5._validateParameters('blend', arguments); + if (this._renderer) { + this._renderer.blend.apply(this._renderer, arguments); + } else { + p5.Renderer2D.prototype.blend.apply(this, arguments); + } + }; + + /** + * Copies a region of the canvas to another region of the canvas + * and copies a region of pixels from an image used as the srcImg parameter + * into the canvas srcImage is specified this is used as the source. If + * the source and destination regions aren't the same size, it will + * automatically resize source pixels to fit the specified + * target region. + * + * @method copy + * @param {p5.Image|p5.Element} srcImage source image + * @param {Integer} sx X coordinate of the source's upper left corner + * @param {Integer} sy Y coordinate of the source's upper left corner + * @param {Integer} sw source image width + * @param {Integer} sh source image height + * @param {Integer} dx X coordinate of the destination's upper left corner + * @param {Integer} dy Y coordinate of the destination's upper left corner + * @param {Integer} dw destination image width + * @param {Integer} dh destination image height + * + * @example + *
+ * let img; + * + * function preload() { + * img = loadImage('assets/rockies.jpg'); + * } + * + * function setup() { + * background(img); + * copy(img, 7, 22, 10, 10, 35, 25, 50, 50); + * stroke(255); + * noFill(); + * // Rectangle shows area being copied + * rect(7, 22, 10, 10); + * } + *
+ * + * @alt + * image of rocky mountains. Brick images on left and right. Right overexposed + * image of rockies. Brickwall images on left and right. Right mortar transparent + * image of rockies. Brickwall images on left and right. Right translucent + * + */ + /** + * @method copy + * @param {Integer} sx + * @param {Integer} sy + * @param {Integer} sw + * @param {Integer} sh + * @param {Integer} dx + * @param {Integer} dy + * @param {Integer} dw + * @param {Integer} dh + */ + p5.prototype.copy = function() { + p5._validateParameters('copy', arguments); + p5.Renderer2D.prototype.copy.apply(this._renderer, arguments); + }; + + /** + * Applies a filter to the canvas. + *

+ * + * The presets options are: + *

+ * + * THRESHOLD + * Converts the image to black and white pixels depending if they are above or + * below the threshold defined by the level parameter. The parameter must be + * between 0.0 (black) and 1.0 (white). If no level is specified, 0.5 is used. + *

+ * + * GRAY + * Converts any colors in the image to grayscale equivalents. No parameter + * is used. + *

+ * + * OPAQUE + * Sets the alpha channel to entirely opaque. No parameter is used. + *

+ * + * INVERT + * Sets each pixel to its inverse value. No parameter is used. + *

+ * + * POSTERIZE + * Limits each channel of the image to the number of colors specified as the + * parameter. The parameter can be set to values between 2 and 255, but + * results are most noticeable in the lower ranges. + *

+ * + * BLUR + * Executes a Gaussian blur with the level parameter specifying the extent + * of the blurring. If no parameter is used, the blur is equivalent to + * Gaussian blur of radius 1. Larger values increase the blur. + *

+ * + * ERODE + * Reduces the light areas. No parameter is used. + *

+ * + * DILATE + * Increases the light areas. No parameter is used. + * + * @method filter + * @param {Constant} filterType either THRESHOLD, GRAY, OPAQUE, INVERT, + * POSTERIZE, BLUR, ERODE, DILATE or BLUR. + * See Filters.js for docs on + * each available filter + * @param {Number} [filterParam] an optional parameter unique + * to each filter, see above + * + * @example + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/bricks.jpg'); + * } + * function setup() { + * image(img, 0, 0); + * filter(THRESHOLD); + * } + * + *
+ * + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/bricks.jpg'); + * } + * function setup() { + * image(img, 0, 0); + * filter(GRAY); + * } + * + *
+ * + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/bricks.jpg'); + * } + * function setup() { + * image(img, 0, 0); + * filter(OPAQUE); + * } + * + *
+ * + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/bricks.jpg'); + * } + * function setup() { + * image(img, 0, 0); + * filter(INVERT); + * } + * + *
+ * + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/bricks.jpg'); + * } + * function setup() { + * image(img, 0, 0); + * filter(POSTERIZE, 3); + * } + * + *
+ * + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/bricks.jpg'); + * } + * function setup() { + * image(img, 0, 0); + * filter(DILATE); + * } + * + *
+ * + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/bricks.jpg'); + * } + * function setup() { + * image(img, 0, 0); + * filter(BLUR, 3); + * } + * + *
+ * + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/bricks.jpg'); + * } + * function setup() { + * image(img, 0, 0); + * filter(ERODE); + * } + * + *
+ * + * @alt + * black and white image of a brick wall. + * greyscale image of a brickwall + * image of a brickwall + * jade colored image of a brickwall + * red and pink image of a brickwall + * image of a brickwall + * blurry image of a brickwall + * image of a brickwall + * image of a brickwall with less detail + * + */ + p5.prototype.filter = function(operation, value) { + p5._validateParameters('filter', arguments); + if (this.canvas !== undefined) { + Filters.apply(this.canvas, Filters[operation], value); + } else { + Filters.apply(this.elt, Filters[operation], value); + } + }; + + /** + * Get a region of pixels, or a single pixel, from the canvas. + * + * Returns an array of [R,G,B,A] values for any pixel or grabs a section of + * an image. If no parameters are specified, the entire image is returned. + * Use the x and y parameters to get the value of one pixel. Get a section of + * the display window by specifying additional w and h parameters. When + * getting an image, the x and y parameters define the coordinates for the + * upper-left corner of the image, regardless of the current imageMode(). + *

+ * Getting the color of a single pixel with get(x, y) is easy, but not as fast + * as grabbing the data directly from pixels[]. The equivalent statement to + * get(x, y) using pixels[] with pixel density d is + * ```javascript + * let x, y, d; // set these to the coordinates + * let off = (y * width + x) * d * 4; + * let components = [ + * pixels[off], + * pixels[off + 1], + * pixels[off + 2], + * pixels[off + 3] + * ]; + * print(components); + * ``` + *

+ * + * See the reference for pixels[] for more information. + * + * If you want to extract an array of colors or a subimage from an p5.Image object, + * take a look at p5.Image.get() + * + * @method get + * @param {Number} x x-coordinate of the pixel + * @param {Number} y y-coordinate of the pixel + * @param {Number} w width + * @param {Number} h height + * @return {p5.Image} the rectangle p5.Image + * @example + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/rockies.jpg'); + * } + * function setup() { + * image(img, 0, 0); + * let c = get(); + * image(c, width / 2, 0); + * } + * + *
+ * + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/rockies.jpg'); + * } + * function setup() { + * image(img, 0, 0); + * let c = get(50, 90); + * fill(c); + * noStroke(); + * rect(25, 25, 50, 50); + * } + * + *
+ * + * @alt + * 2 images of the rocky mountains, side-by-side + * Image of the rocky mountains with 50x50 green rect in center of canvas + * + */ + /** + * @method get + * @return {p5.Image} the whole p5.Image + */ + /** + * @method get + * @param {Number} x + * @param {Number} y + * @return {Number[]} color of pixel at x,y in array format [R, G, B, A] + */ + p5.prototype.get = function(x, y, w, h) { + p5._validateParameters('get', arguments); + return this._renderer.get.apply(this._renderer, arguments); + }; + + /** + * Loads the pixel data for the display window into the pixels[] array. This + * function must always be called before reading from or writing to pixels[]. + * Note that only changes made with set() or direct manipulation of pixels[] + * will occur. + * + * @method loadPixels + * @example + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/rockies.jpg'); + * } + * + * function setup() { + * image(img, 0, 0, width, height); + * let d = pixelDensity(); + * let halfImage = 4 * (width * d) * (height * d / 2); + * loadPixels(); + * for (let i = 0; i < halfImage; i++) { + * pixels[i + halfImage] = pixels[i]; + * } + * updatePixels(); + * } + * + *
+ * + * @alt + * two images of the rocky mountains. one on top, one on bottom of canvas. + * + */ + p5.prototype.loadPixels = function() { + p5._validateParameters('loadPixels', arguments); + this._renderer.loadPixels(); + }; + + /** + *

Changes the color of any pixel, or writes an image directly to the + * display window.

+ *

The x and y parameters specify the pixel to change and the c parameter + * specifies the color value. This can be a p5.Color object, or [R, G, B, A] + * pixel array. It can also be a single grayscale value. + * When setting an image, the x and y parameters define the coordinates for + * the upper-left corner of the image, regardless of the current imageMode(). + *

+ *

+ * After using set(), you must call updatePixels() for your changes to appear. + * This should be called once all pixels have been set, and must be called before + * calling .get() or drawing the image. + *

+ *

Setting the color of a single pixel with set(x, y) is easy, but not as + * fast as putting the data directly into pixels[]. Setting the pixels[] + * values directly may be complicated when working with a retina display, + * but will perform better when lots of pixels need to be set directly on + * every loop.

+ *

See the reference for pixels[] for more information.

+ * + * @method set + * @param {Number} x x-coordinate of the pixel + * @param {Number} y y-coordinate of the pixel + * @param {Number|Number[]|Object} c insert a grayscale value | a pixel array | + * a p5.Color object | a p5.Image to copy + * @example + *
+ * + * let black = color(0); + * set(30, 20, black); + * set(85, 20, black); + * set(85, 75, black); + * set(30, 75, black); + * updatePixels(); + * + *
+ * + *
+ * + * for (let i = 30; i < width - 15; i++) { + * for (let j = 20; j < height - 25; j++) { + * let c = color(204 - j, 153 - i, 0); + * set(i, j, c); + * } + * } + * updatePixels(); + * + *
+ * + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/rockies.jpg'); + * } + * + * function setup() { + * set(0, 0, img); + * updatePixels(); + * line(0, 0, width, height); + * line(0, height, width, 0); + * } + * + *
+ * + * @alt + * 4 black points in the shape of a square middle-right of canvas. + * square with orangey-brown gradient lightening at bottom right. + * image of the rocky mountains. with lines like an 'x' through the center. + */ + p5.prototype.set = function(x, y, imgOrCol) { + this._renderer.set(x, y, imgOrCol); + }; + /** + * Updates the display window with the data in the pixels[] array. + * Use in conjunction with loadPixels(). If you're only reading pixels from + * the array, there's no need to call updatePixels() โ€” updating is only + * necessary to apply changes. updatePixels() should be called anytime the + * pixels array is manipulated or set() is called, and only changes made with + * set() or direct changes to pixels[] will occur. + * + * @method updatePixels + * @param {Number} [x] x-coordinate of the upper-left corner of region + * to update + * @param {Number} [y] y-coordinate of the upper-left corner of region + * to update + * @param {Number} [w] width of region to update + * @param {Number} [h] height of region to update + * @example + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/rockies.jpg'); + * } + * + * function setup() { + * image(img, 0, 0, width, height); + * let d = pixelDensity(); + * let halfImage = 4 * (width * d) * (height * d / 2); + * loadPixels(); + * for (let i = 0; i < halfImage; i++) { + * pixels[i + halfImage] = pixels[i]; + * } + * updatePixels(); + * } + * + *
+ * @alt + * two images of the rocky mountains. one on top, one on bottom of canvas. + */ + p5.prototype.updatePixels = function(x, y, w, h) { + p5._validateParameters('updatePixels', arguments); + // graceful fail - if loadPixels() or set() has not been called, pixel + // array will be empty, ignore call to updatePixels() + if (this.pixels.length === 0) { + return; + } + this._renderer.updatePixels(x, y, w, h); + }; + + module.exports = p5; + }, + { '../color/p5.Color': 16, '../core/main': 24, './filters': 43 } + ], + 48: [ + function(_dereq_, module, exports) { + /** + * @module IO + * @submodule Input + * @for p5 + * @requires core + */ + + /* globals Request: false */ + /* globals Headers: false */ + + 'use strict'; + function _typeof(obj) { + if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && + typeof Symbol === 'function' && + obj.constructor === Symbol && + obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }; + } + return _typeof(obj); + } + + var p5 = _dereq_('../core/main'); + _dereq_('whatwg-fetch'); + _dereq_('es6-promise').polyfill(); + var fetchJsonp = _dereq_('fetch-jsonp'); + _dereq_('../core/error_helpers'); + + /** + * Loads a JSON file from a file or a URL, and returns an Object. + * Note that even if the JSON file contains an Array, an Object will be + * returned with index numbers as keys. + * + * This method is asynchronous, meaning it may not finish before the next + * line in your sketch is executed. JSONP is supported via a polyfill and you + * can pass in as the second argument an object with definitions of the json + * callback following the syntax specified here. + * + * This method is suitable for fetching files up to size of 64MB. + * @method loadJSON + * @param {String} path name of the file or url to load + * @param {Object} [jsonpOptions] options object for jsonp related settings + * @param {String} [datatype] "json" or "jsonp" + * @param {function} [callback] function to be executed after + * loadJSON() completes, data is passed + * in as first argument + * @param {function} [errorCallback] function to be executed if + * there is an error, response is passed + * in as first argument + * @return {Object|Array} JSON data + * @example + * + *

Calling loadJSON() inside preload() guarantees to complete the + * operation before setup() and draw() are called.

+ * + *
+ * // Examples use USGS Earthquake API: + * // https://earthquake.usgs.gov/fdsnws/event/1/#methods + * let earthquakes; + * function preload() { + * // Get the most recent earthquake in the database + * let url = + 'https://earthquake.usgs.gov/earthquakes/feed/v1.0/' + + * 'summary/all_day.geojson'; + * earthquakes = loadJSON(url); + * } + * + * function setup() { + * noLoop(); + * } + * + * function draw() { + * background(200); + * // Get the magnitude and name of the earthquake out of the loaded JSON + * let earthquakeMag = earthquakes.features[0].properties.mag; + * let earthquakeName = earthquakes.features[0].properties.place; + * ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10); + * textAlign(CENTER); + * text(earthquakeName, 0, height - 30, width, 30); + * } + *
+ * + * + *

Outside of preload(), you may supply a callback function to handle the + * object:

+ *
+ * function setup() { + * noLoop(); + * let url = + 'https://earthquake.usgs.gov/earthquakes/feed/v1.0/' + + * 'summary/all_day.geojson'; + * loadJSON(url, drawEarthquake); + * } + * + * function draw() { + * background(200); + * } + * + * function drawEarthquake(earthquakes) { + * // Get the magnitude and name of the earthquake out of the loaded JSON + * let earthquakeMag = earthquakes.features[0].properties.mag; + * let earthquakeName = earthquakes.features[0].properties.place; + * ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10); + * textAlign(CENTER); + * text(earthquakeName, 0, height - 30, width, 30); + * } + *
+ * + * @alt + * 50x50 ellipse that changes from black to white depending on the current humidity + * 50x50 ellipse that changes from black to white depending on the current humidity + * + */ + /** + * @method loadJSON + * @param {String} path + * @param {String} datatype + * @param {function} [callback] + * @param {function} [errorCallback] + * @return {Object|Array} + */ + /** + * @method loadJSON + * @param {String} path + * @param {function} callback + * @param {function} [errorCallback] + * @return {Object|Array} + */ + p5.prototype.loadJSON = function() { + p5._validateParameters('loadJSON', arguments); + var path = arguments[0]; + var callback; + var errorCallback; + var options; + + var ret = {}; // object needed for preload + var t = 'json'; + + // check for explicit data type argument + for (var i = 1; i < arguments.length; i++) { + var arg = arguments[i]; + if (typeof arg === 'string') { + if (arg === 'jsonp' || arg === 'json') { + t = arg; + } + } else if (typeof arg === 'function') { + if (!callback) { + callback = arg; + } else { + errorCallback = arg; + } + } else if ( + _typeof(arg) === 'object' && + (arg.hasOwnProperty('jsonpCallback') || + arg.hasOwnProperty('jsonpCallbackFunction')) + ) { + t = 'jsonp'; + options = arg; + } + } + + var self = this; + this.httpDo( + path, + 'GET', + options, + t, + function(resp) { + for (var k in resp) { + ret[k] = resp[k]; + } + if (typeof callback !== 'undefined') { + callback(resp); + } + + self._decrementPreload(); + }, + function(err) { + // Error handling + p5._friendlyFileLoadError(5, path); + + if (errorCallback) { + errorCallback(err); + } else { + throw err; + } + } + ); + + return ret; + }; + + /** + * Reads the contents of a file and creates a String array of its individual + * lines. If the name of the file is used as the parameter, as in the above + * example, the file must be located in the sketch directory/folder. + *

+ * Alternatively, the file maybe be loaded from anywhere on the local + * computer using an absolute path (something that starts with / on Unix and + * Linux, or a drive letter on Windows), or the filename parameter can be a + * URL for a file found on a network. + *

+ * This method is asynchronous, meaning it may not finish before the next + * line in your sketch is executed. + * + * This method is suitable for fetching files up to size of 64MB. + * @method loadStrings + * @param {String} filename name of the file or url to load + * @param {function} [callback] function to be executed after loadStrings() + * completes, Array is passed in as first + * argument + * @param {function} [errorCallback] function to be executed if + * there is an error, response is passed + * in as first argument + * @return {String[]} Array of Strings + * @example + * + *

Calling loadStrings() inside preload() guarantees to complete the + * operation before setup() and draw() are called.

+ * + *
+ * let result; + * function preload() { + * result = loadStrings('assets/test.txt'); + * } + + * function setup() { + * background(200); + * let ind = floor(random(result.length)); + * text(result[ind], 10, 10, 80, 80); + * } + *
+ * + *

Outside of preload(), you may supply a callback function to handle the + * object:

+ * + *
+ * function setup() { + * loadStrings('assets/test.txt', pickString); + * } + * + * function pickString(result) { + * background(200); + * let ind = floor(random(result.length)); + * text(result[ind], 10, 10, 80, 80); + * } + *
+ * + * @alt + * randomly generated text from a file, for example "i smell like butter" + * randomly generated text from a file, for example "i have three feet" + * + */ + p5.prototype.loadStrings = function() { + p5._validateParameters('loadStrings', arguments); + + var ret = []; + var callback, errorCallback; + + for (var i = 1; i < arguments.length; i++) { + var arg = arguments[i]; + if (typeof arg === 'function') { + if (typeof callback === 'undefined') { + callback = arg; + } else if (typeof errorCallback === 'undefined') { + errorCallback = arg; + } + } + } + + var self = this; + p5.prototype.httpDo.call( + this, + arguments[0], + 'GET', + 'text', + function(data) { + // split lines handling mac/windows/linux endings + var lines = data + .replace(/\r\n/g, '\r') + .replace(/\n/g, '\r') + .split(/\r/); + Array.prototype.push.apply(ret, lines); + + if (typeof callback !== 'undefined') { + callback(ret); + } + + self._decrementPreload(); + }, + function(err) { + // Error handling + p5._friendlyFileLoadError(3, arguments[0]); + + if (errorCallback) { + errorCallback(err); + } else { + throw err; + } + } + ); + + return ret; + }; + + /** + *

Reads the contents of a file or URL and creates a p5.Table object with + * its values. If a file is specified, it must be located in the sketch's + * "data" folder. The filename parameter can also be a URL to a file found + * online. By default, the file is assumed to be comma-separated (in CSV + * format). Table only looks for a header row if the 'header' option is + * included.

+ * + *

Possible options include: + *

    + *
  • csv - parse the table as comma-separated values
  • + *
  • tsv - parse the table as tab-separated values
  • + *
  • header - this table has a header (title) row
  • + *
+ *

+ * + *

When passing in multiple options, pass them in as separate parameters, + * seperated by commas. For example: + *

+ * + * loadTable('my_csv_file.csv', 'csv', 'header'); + * + *

+ * + *

All files loaded and saved use UTF-8 encoding.

+ * + *

This method is asynchronous, meaning it may not finish before the next + * line in your sketch is executed. Calling loadTable() inside preload() + * guarantees to complete the operation before setup() and draw() are called. + *

Outside of preload(), you may supply a callback function to handle the + * object:

+ *

+ * + * This method is suitable for fetching files up to size of 64MB. + * @method loadTable + * @param {String} filename name of the file or URL to load + * @param {String} options "header" "csv" "tsv" + * @param {function} [callback] function to be executed after + * loadTable() completes. On success, the + * Table object is passed in as the + * first argument. + * @param {function} [errorCallback] function to be executed if + * there is an error, response is passed + * in as first argument + * @return {Object} Table object containing data + * + * @example + *
+ * + * // Given the following CSV file called "mammals.csv" + * // located in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * //the file can be remote + * //table = loadTable("http://p5js.org/reference/assets/mammals.csv", + * // "csv", "header"); + * } + * + * function setup() { + * //count the columns + * print(table.getRowCount() + ' total rows in table'); + * print(table.getColumnCount() + ' total columns in table'); + * + * print(table.getColumn('name')); + * //["Goat", "Leopard", "Zebra"] + * + * //cycle through the table + * for (let r = 0; r < table.getRowCount(); r++) + * for (let c = 0; c < table.getColumnCount(); c++) { + * print(table.getString(r, c)); + * } + * } + * + *
+ * + * @alt + * randomly generated text from a file, for example "i smell like butter" + * randomly generated text from a file, for example "i have three feet" + * + */ + /** + * @method loadTable + * @param {String} filename + * @param {function} [callback] + * @param {function} [errorCallback] + * @return {Object} + */ + p5.prototype.loadTable = function(path) { + var callback; + var errorCallback; + var options = []; + var header = false; + var ext = path.substring(path.lastIndexOf('.') + 1, path.length); + var sep = ','; + var separatorSet = false; + + if (ext === 'tsv') { + //Only need to check extension is tsv because csv is default + sep = '\t'; + } + + for (var i = 1; i < arguments.length; i++) { + if (typeof arguments[i] === 'function') { + if (typeof callback === 'undefined') { + callback = arguments[i]; + } else if (typeof errorCallback === 'undefined') { + errorCallback = arguments[i]; + } + } else if (typeof arguments[i] === 'string') { + options.push(arguments[i]); + if (arguments[i] === 'header') { + header = true; + } + if (arguments[i] === 'csv') { + if (separatorSet) { + throw new Error('Cannot set multiple separator types.'); + } else { + sep = ','; + separatorSet = true; + } + } else if (arguments[i] === 'tsv') { + if (separatorSet) { + throw new Error('Cannot set multiple separator types.'); + } else { + sep = '\t'; + separatorSet = true; + } + } + } + } + + var t = new p5.Table(); + + var self = this; + this.httpDo( + path, + 'GET', + 'table', + function(resp) { + var state = {}; + + // define constants + var PRE_TOKEN = 0, + MID_TOKEN = 1, + POST_TOKEN = 2, + POST_RECORD = 4; + + var QUOTE = '"', + CR = '\r', + LF = '\n'; + + var records = []; + var offset = 0; + var currentRecord = null; + var currentChar; + + var tokenBegin = function tokenBegin() { + state.currentState = PRE_TOKEN; + state.token = ''; + }; + + var tokenEnd = function tokenEnd() { + currentRecord.push(state.token); + tokenBegin(); + }; + + var recordBegin = function recordBegin() { + state.escaped = false; + currentRecord = []; + tokenBegin(); + }; + + var recordEnd = function recordEnd() { + state.currentState = POST_RECORD; + records.push(currentRecord); + currentRecord = null; + }; + + for (;;) { + currentChar = resp[offset++]; + + // EOF + if (currentChar == null) { + if (state.escaped) { + throw new Error('Unclosed quote in file.'); + } + if (currentRecord) { + tokenEnd(); + recordEnd(); + break; + } + } + if (currentRecord === null) { + recordBegin(); + } + + // Handle opening quote + if (state.currentState === PRE_TOKEN) { + if (currentChar === QUOTE) { + state.escaped = true; + state.currentState = MID_TOKEN; + continue; + } + state.currentState = MID_TOKEN; + } + + // mid-token and escaped, look for sequences and end quote + if (state.currentState === MID_TOKEN && state.escaped) { + if (currentChar === QUOTE) { + if (resp[offset] === QUOTE) { + state.token += QUOTE; + offset++; + } else { + state.escaped = false; + state.currentState = POST_TOKEN; + } + } else if (currentChar === CR) { + continue; + } else { + state.token += currentChar; + } + continue; + } + + // fall-through: mid-token or post-token, not escaped + if (currentChar === CR) { + if (resp[offset] === LF) { + offset++; + } + tokenEnd(); + recordEnd(); + } else if (currentChar === LF) { + tokenEnd(); + recordEnd(); + } else if (currentChar === sep) { + tokenEnd(); + } else if (state.currentState === MID_TOKEN) { + state.token += currentChar; + } + } + + // set up column names + if (header) { + t.columns = records.shift(); + } else { + for (i = 0; i < records[0].length; i++) { + t.columns[i] = 'null'; + } + } + var row; + for (i = 0; i < records.length; i++) { + //Handles row of 'undefined' at end of some CSVs + if (records[i].length === 1) { + if (records[i][0] === 'undefined' || records[i][0] === '') { + continue; + } + } + row = new p5.TableRow(); + row.arr = records[i]; + row.obj = makeObject(records[i], t.columns); + t.addRow(row); + } + if (typeof callback === 'function') { + callback(t); + } + + self._decrementPreload(); + }, + function(err) { + // Error handling + p5._friendlyFileLoadError(2, path); + + if (errorCallback) { + errorCallback(err); + } else { + console.error(err); + } + } + ); + + return t; + }; + + // helper function to turn a row into a JSON object + function makeObject(row, headers) { + var ret = {}; + headers = headers || []; + if (typeof headers === 'undefined') { + for (var j = 0; j < row.length; j++) { + headers[j.toString()] = j; + } + } + for (var i = 0; i < headers.length; i++) { + var key = headers[i]; + var val = row[i]; + ret[key] = val; + } + return ret; + } + + /** + * Reads the contents of a file and creates an XML object with its values. + * If the name of the file is used as the parameter, as in the above example, + * the file must be located in the sketch directory/folder. + * + * Alternatively, the file maybe be loaded from anywhere on the local + * computer using an absolute path (something that starts with / on Unix and + * Linux, or a drive letter on Windows), or the filename parameter can be a + * URL for a file found on a network. + * + * This method is asynchronous, meaning it may not finish before the next + * line in your sketch is executed. Calling loadXML() inside preload() + * guarantees to complete the operation before setup() and draw() are called. + * + * Outside of preload(), you may supply a callback function to handle the + * object. + * + * This method is suitable for fetching files up to size of 64MB. + * @method loadXML + * @param {String} filename name of the file or URL to load + * @param {function} [callback] function to be executed after loadXML() + * completes, XML object is passed in as + * first argument + * @param {function} [errorCallback] function to be executed if + * there is an error, response is passed + * in as first argument + * @return {Object} XML object containing data + * @example + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * let children = xml.getChildren('animal'); + * + * for (let i = 0; i < children.length; i++) { + * let id = children[i].getNum('id'); + * let coloring = children[i].getString('species'); + * let name = children[i].getContent(); + * print(id + ', ' + coloring + ', ' + name); + * } + * } + * + * // Sketch prints: + * // 0, Capra hircus, Goat + * // 1, Panthera pardus, Leopard + * // 2, Equus zebra, Zebra + *
+ * + * @alt + * no image displayed + * + */ + p5.prototype.loadXML = function() { + var ret = new p5.XML(); + var callback, errorCallback; + + for (var i = 1; i < arguments.length; i++) { + var arg = arguments[i]; + if (typeof arg === 'function') { + if (typeof callback === 'undefined') { + callback = arg; + } else if (typeof errorCallback === 'undefined') { + errorCallback = arg; + } + } + } + + var self = this; + this.httpDo( + arguments[0], + 'GET', + 'xml', + function(xml) { + for (var key in xml) { + ret[key] = xml[key]; + } + if (typeof callback !== 'undefined') { + callback(ret); + } + + self._decrementPreload(); + }, + function(err) { + // Error handling + p5._friendlyFileLoadError(1, arguments[0]); + + if (errorCallback) { + errorCallback(err); + } else { + throw err; + } + } + ); + + return ret; + }; + + /** + * This method is suitable for fetching files up to size of 64MB. + * @method loadBytes + * @param {string} file name of the file or URL to load + * @param {function} [callback] function to be executed after loadBytes() + * completes + * @param {function} [errorCallback] function to be executed if there + * is an error + * @returns {Object} an object whose 'bytes' property will be the loaded buffer + * + * @example + *
+ * let data; + * + * function preload() { + * data = loadBytes('assets/mammals.xml'); + * } + * + * function setup() { + * for (let i = 0; i < 5; i++) { + * console.log(data.bytes[i].toString(16)); + * } + * } + *
+ * + * @alt + * no image displayed + * + */ + p5.prototype.loadBytes = function(file, callback, errorCallback) { + var ret = {}; + + var self = this; + this.httpDo( + file, + 'GET', + 'arrayBuffer', + function(arrayBuffer) { + ret.bytes = new Uint8Array(arrayBuffer); + + if (typeof callback === 'function') { + callback(ret); + } + + self._decrementPreload(); + }, + function(err) { + // Error handling + p5._friendlyFileLoadError(6, file); + + if (errorCallback) { + errorCallback(err); + } else { + throw err; + } + } + ); + + return ret; + }; + + /** + * Method for executing an HTTP GET request. If data type is not specified, + * p5 will try to guess based on the URL, defaulting to text. This is equivalent to + * calling httpDo(path, 'GET'). The 'binary' datatype will return + * a Blob object, and the 'arrayBuffer' datatype will return an ArrayBuffer + * which can be used to initialize typed arrays (such as Uint8Array). + * + * @method httpGet + * @param {String} path name of the file or url to load + * @param {String} [datatype] "json", "jsonp", "binary", "arrayBuffer", + * "xml", or "text" + * @param {Object|Boolean} [data] param data passed sent with request + * @param {function} [callback] function to be executed after + * httpGet() completes, data is passed in + * as first argument + * @param {function} [errorCallback] function to be executed if + * there is an error, response is passed + * in as first argument + * @return {Promise} A promise that resolves with the data when the operation + * completes successfully or rejects with the error after + * one occurs. + * @example + *
+ * // Examples use USGS Earthquake API: + * // https://earthquake.usgs.gov/fdsnws/event/1/#methods + * let earthquakes; + * function preload() { + * // Get the most recent earthquake in the database + * let url = + 'https://earthquake.usgs.gov/fdsnws/event/1/query?' + + * 'format=geojson&limit=1&orderby=time'; + * httpGet(url, 'jsonp', false, function(response) { + * // when the HTTP request completes, populate the variable that holds the + * // earthquake data used in the visualization. + * earthquakes = response; + * }); + * } + * + * function draw() { + * if (!earthquakes) { + * // Wait until the earthquake data has loaded before drawing. + * return; + * } + * background(200); + * // Get the magnitude and name of the earthquake out of the loaded JSON + * let earthquakeMag = earthquakes.features[0].properties.mag; + * let earthquakeName = earthquakes.features[0].properties.place; + * ellipse(width / 2, height / 2, earthquakeMag * 10, earthquakeMag * 10); + * textAlign(CENTER); + * text(earthquakeName, 0, height - 30, width, 30); + * noLoop(); + * } + *
+ */ + /** + * @method httpGet + * @param {String} path + * @param {Object|Boolean} data + * @param {function} [callback] + * @param {function} [errorCallback] + * @return {Promise} + */ + /** + * @method httpGet + * @param {String} path + * @param {function} callback + * @param {function} [errorCallback] + * @return {Promise} + */ + p5.prototype.httpGet = function() { + p5._validateParameters('httpGet', arguments); + + var args = Array.prototype.slice.call(arguments); + args.splice(1, 0, 'GET'); + return p5.prototype.httpDo.apply(this, args); + }; + + /** + * Method for executing an HTTP POST request. If data type is not specified, + * p5 will try to guess based on the URL, defaulting to text. This is equivalent to + * calling httpDo(path, 'POST'). + * + * @method httpPost + * @param {String} path name of the file or url to load + * @param {String} [datatype] "json", "jsonp", "xml", or "text". + * If omitted, httpPost() will guess. + * @param {Object|Boolean} [data] param data passed sent with request + * @param {function} [callback] function to be executed after + * httpPost() completes, data is passed in + * as first argument + * @param {function} [errorCallback] function to be executed if + * there is an error, response is passed + * in as first argument + * @return {Promise} A promise that resolves with the data when the operation + * completes successfully or rejects with the error after + * one occurs. + * + * @example + *
+ * + * // Examples use jsonplaceholder.typicode.com for a Mock Data API + * + * let url = 'https://jsonplaceholder.typicode.com/posts'; + * let postData = { userId: 1, title: 'p5 Clicked!', body: 'p5.js is way cool.' }; + * + * function setup() { + * createCanvas(800, 800); + * } + * + * function mousePressed() { + * // Pick new random color values + * let r = random(255); + * let g = random(255); + * let b = random(255); + * + * httpPost(url, 'json', postData, function(result) { + * strokeWeight(2); + * stroke(r, g, b); + * fill(r, g, b, 127); + * ellipse(mouseX, mouseY, 200, 200); + * text(result.body, mouseX, mouseY); + * }); + * } + * + *
+ * + * + *
+ * let url = 'https://invalidURL'; // A bad URL that will cause errors + * let postData = { title: 'p5 Clicked!', body: 'p5.js is way cool.' }; + * + * function setup() { + * createCanvas(800, 800); + * } + * + * function mousePressed() { + * // Pick new random color values + * let r = random(255); + * let g = random(255); + * let b = random(255); + * + * httpPost( + * url, + * 'json', + * postData, + * function(result) { + * // ... won't be called + * }, + * function(error) { + * strokeWeight(2); + * stroke(r, g, b); + * fill(r, g, b, 127); + * text(error.toString(), mouseX, mouseY); + * } + * ); + * } + *
+ * + */ + /** + * @method httpPost + * @param {String} path + * @param {Object|Boolean} data + * @param {function} [callback] + * @param {function} [errorCallback] + * @return {Promise} + */ + /** + * @method httpPost + * @param {String} path + * @param {function} callback + * @param {function} [errorCallback] + * @return {Promise} + */ + p5.prototype.httpPost = function() { + p5._validateParameters('httpPost', arguments); + + var args = Array.prototype.slice.call(arguments); + args.splice(1, 0, 'POST'); + return p5.prototype.httpDo.apply(this, args); + }; + + /** + * Method for executing an HTTP request. If data type is not specified, + * p5 will try to guess based on the URL, defaulting to text.

+ * For more advanced use, you may also pass in the path as the first argument + * and a object as the second argument, the signature follows the one specified + * in the Fetch API specification. + * This method is suitable for fetching files up to size of 64MB when "GET" is used. + * + * @method httpDo + * @param {String} path name of the file or url to load + * @param {String} [method] either "GET", "POST", or "PUT", + * defaults to "GET" + * @param {String} [datatype] "json", "jsonp", "xml", or "text" + * @param {Object} [data] param data passed sent with request + * @param {function} [callback] function to be executed after + * httpGet() completes, data is passed in + * as first argument + * @param {function} [errorCallback] function to be executed if + * there is an error, response is passed + * in as first argument + * @return {Promise} A promise that resolves with the data when the operation + * completes successfully or rejects with the error after + * one occurs. + * + * @example + *
+ * + * // Examples use USGS Earthquake API: + * // https://earthquake.usgs.gov/fdsnws/event/1/#methods + * + * // displays an animation of all USGS earthquakes + * let earthquakes; + * let eqFeatureIndex = 0; + * + * function preload() { + * let url = 'https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson'; + * httpDo( + * url, + * { + * method: 'GET', + * // Other Request options, like special headers for apis + * headers: { authorization: 'Bearer secretKey' } + * }, + * function(res) { + * earthquakes = res; + * } + * ); + * } + * + * function draw() { + * // wait until the data is loaded + * if (!earthquakes || !earthquakes.features[eqFeatureIndex]) { + * return; + * } + * clear(); + * + * let feature = earthquakes.features[eqFeatureIndex]; + * let mag = feature.properties.mag; + * let rad = mag / 11 * ((width + height) / 2); + * fill(255, 0, 0, 100); + * ellipse(width / 2 + random(-2, 2), height / 2 + random(-2, 2), rad, rad); + * + * if (eqFeatureIndex >= earthquakes.features.length) { + * eqFeatureIndex = 0; + * } else { + * eqFeatureIndex += 1; + * } + * } + * + *
+ */ + /** + * @method httpDo + * @param {String} path + * @param {Object} options Request object options as documented in the + * "fetch" API + * reference + * @param {function} [callback] + * @param {function} [errorCallback] + * @return {Promise} + */ + p5.prototype.httpDo = function() { + var type; + var callback; + var errorCallback; + var request; + var promise; + var jsonpOptions = {}; + var cbCount = 0; + var contentType = 'text/plain'; + // Trim the callbacks off the end to get an idea of how many arguments are passed + for (var i = arguments.length - 1; i > 0; i--) { + if (typeof arguments[i] === 'function') { + cbCount++; + } else { + break; + } + } + // The number of arguments minus callbacks + var argsCount = arguments.length - cbCount; + var path = arguments[0]; + if ( + argsCount === 2 && + typeof path === 'string' && + _typeof(arguments[1]) === 'object' + ) { + // Intended for more advanced use, pass in Request parameters directly + request = new Request(path, arguments[1]); + callback = arguments[2]; + errorCallback = arguments[3]; + } else { + // Provided with arguments + var method = 'GET'; + var data; + + for (var j = 1; j < arguments.length; j++) { + var a = arguments[j]; + if (typeof a === 'string') { + if (a === 'GET' || a === 'POST' || a === 'PUT' || a === 'DELETE') { + method = a; + } else if ( + a === 'json' || + a === 'jsonp' || + a === 'binary' || + a === 'arrayBuffer' || + a === 'xml' || + a === 'text' || + a === 'table' + ) { + type = a; + } else { + data = a; + } + } else if (typeof a === 'number') { + data = a.toString(); + } else if (_typeof(a) === 'object') { + if ( + a.hasOwnProperty('jsonpCallback') || + a.hasOwnProperty('jsonpCallbackFunction') + ) { + for (var attr in a) { + jsonpOptions[attr] = a[attr]; + } + } else if (a instanceof p5.XML) { + data = a.serialize(); + contentType = 'application/xml'; + } else { + data = JSON.stringify(a); + contentType = 'application/json'; + } + } else if (typeof a === 'function') { + if (!callback) { + callback = a; + } else { + errorCallback = a; + } + } + } + + request = new Request(path, { + method: method, + mode: 'cors', + body: data, + headers: new Headers({ + 'Content-Type': contentType + }) + }); + } + // do some sort of smart type checking + if (!type) { + if (path.indexOf('json') !== -1) { + type = 'json'; + } else if (path.indexOf('xml') !== -1) { + type = 'xml'; + } else { + type = 'text'; + } + } + + if (type === 'jsonp') { + promise = fetchJsonp(path, jsonpOptions); + } else { + promise = fetch(request); + } + promise = promise.then(function(res) { + if (!res.ok) { + var err = new Error(res.body); + err.status = res.status; + err.ok = false; + throw err; + } else { + var fileSize = 0; + if (type !== 'jsonp') { + fileSize = res.headers.get('content-length'); + } + if (fileSize && fileSize > 64000000) { + p5._friendlyFileLoadError(7, path); + } + switch (type) { + case 'json': + case 'jsonp': + return res.json(); + case 'binary': + return res.blob(); + case 'arrayBuffer': + return res.arrayBuffer(); + case 'xml': + return res.text().then(function(text) { + var parser = new DOMParser(); + var xml = parser.parseFromString(text, 'text/xml'); + return new p5.XML(xml.documentElement); + }); + default: + return res.text(); + } + } + }); + promise.then(callback || function() {}); + promise.catch(errorCallback || console.error); + return promise; + }; + + /** + * @module IO + * @submodule Output + * @for p5 + */ + + window.URL = window.URL || window.webkitURL; + + // private array of p5.PrintWriter objects + p5.prototype._pWriters = []; + + /** + * @method createWriter + * @param {String} name name of the file to be created + * @param {String} [extension] + * @return {p5.PrintWriter} + * @example + *
+ * + * function setup() { + * createCanvas(100, 100); + * background(200); + * text('click here to save', 10, 10, 70, 80); + * } + * + * function mousePressed() { + * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { + * var writer = createWriter('squares.txt'); + * for (let i = 0; i < 10; i++) { + * writer.print(i * i); + * } + * writer.close(); + * writer.clear(); + * } + * } + * + *
+ */ + p5.prototype.createWriter = function(name, extension) { + var newPW; + // check that it doesn't already exist + for (var i in p5.prototype._pWriters) { + if (p5.prototype._pWriters[i].name === name) { + // if a p5.PrintWriter w/ this name already exists... + // return p5.prototype._pWriters[i]; // return it w/ contents intact. + // or, could return a new, empty one with a unique name: + newPW = new p5.PrintWriter(name + this.millis(), extension); + p5.prototype._pWriters.push(newPW); + return newPW; + } + } + newPW = new p5.PrintWriter(name, extension); + p5.prototype._pWriters.push(newPW); + return newPW; + }; + + /** + * @class p5.PrintWriter + * @param {String} filename + * @param {String} [extension] + */ + p5.PrintWriter = function(filename, extension) { + var self = this; + this.name = filename; + this.content = ''; + //Changed to write because it was being overloaded by function below. + /** + * Writes data to the PrintWriter stream + * @method write + * @param {Array} data all data to be written by the PrintWriter + * @example + *
+ * + * // creates a file called 'newFile.txt' + * let writer = createWriter('newFile.txt'); + * // write 'Hello world!'' to the file + * writer.write(['Hello world!']); + * // close the PrintWriter and save the file + * writer.close(); + * + *
+ *
+ * + * // creates a file called 'newFile2.txt' + * let writer = createWriter('newFile2.txt'); + * // write 'apples,bananas,123' to the file + * writer.write(['apples', 'bananas', 123]); + * // close the PrintWriter and save the file + * writer.close(); + * + *
+ *
+ * + * // creates a file called 'newFile3.txt' + * let writer = createWriter('newFile3.txt'); + * // write 'My name is: Teddy' to the file + * writer.write('My name is:'); + * writer.write(' Teddy'); + * // close the PrintWriter and save the file + * writer.close(); + * + *
+ */ + this.write = function(data) { + this.content += data; + }; + /** + * Writes data to the PrintWriter stream, and adds a new line at the end + * @method print + * @param {Array} data all data to be printed by the PrintWriter + * @example + *
+ * + * // creates a file called 'newFile.txt' + * let writer = createWriter('newFile.txt'); + * // creates a file containing + * // My name is: + * // Teddy + * writer.print('My name is:'); + * writer.print('Teddy'); + * // close the PrintWriter and save the file + * writer.close(); + * + *
+ *
+ * + * let writer; + * + * function setup() { + * createCanvas(400, 400); + * // create a PrintWriter + * writer = createWriter('newFile.txt'); + * } + * + * function draw() { + * // print all mouseX and mouseY coordinates to the stream + * writer.print([mouseX, mouseY]); + * } + * + * function mouseClicked() { + * // close the PrintWriter and save the file + * writer.close(); + * } + * + *
+ */ + this.print = function(data) { + this.content += data + '\n'; + }; + /** + * Clears the data already written to the PrintWriter object + * @method clear + * @example + *
+ * // create writer object + * let writer = createWriter('newFile.txt'); + * writer.write(['clear me']); + * // clear writer object here + * writer.clear(); + * // close writer + * writer.close(); + *
+ * + */ + this.clear = function() { + this.content = ''; + }; + /** + * Closes the PrintWriter + * @method close + * @example + *
+ * + * // create a file called 'newFile.txt' + * let writer = createWriter('newFile.txt'); + * // close the PrintWriter and save the file + * writer.close(); + * + *
+ *
+ * + * // create a file called 'newFile2.txt' + * let writer = createWriter('newFile2.txt'); + * // write some data to the file + * writer.write([100, 101, 102]); + * // close the PrintWriter and save the file + * writer.close(); + * + *
+ */ + this.close = function() { + // convert String to Array for the writeFile Blob + var arr = []; + arr.push(this.content); + p5.prototype.writeFile(arr, filename, extension); + // remove from _pWriters array and delete self + for (var i in p5.prototype._pWriters) { + if (p5.prototype._pWriters[i].name === this.name) { + // remove from _pWriters array + p5.prototype._pWriters.splice(i, 1); + } + } + self.clear(); + self = {}; + }; + }; + + /** + * @module IO + * @submodule Output + * @for p5 + */ + + // object, filename, options --> saveJSON, saveStrings, + // filename, [extension] [canvas] --> saveImage + + /** + *

Save an image, text, json, csv, wav, or html. Prompts download to + * the client's computer. Note that it is not recommended to call save() + * within draw if it's looping, as the save() function will open a new save + * dialog every frame.

+ *

The default behavior is to save the canvas as an image. You can + * optionally specify a filename. + * For example:

+ *

+           * save();
+           * save('myCanvas.jpg'); // save a specific canvas with a filename
+           * 
+ * + *

Alternately, the first parameter can be a pointer to a canvas + * p5.Element, an Array of Strings, + * an Array of JSON, a JSON object, a p5.Table, a p5.Image, or a + * p5.SoundFile (requires p5.sound). The second parameter is a filename + * (including extension). The third parameter is for options specific + * to this type of object. This method will save a file that fits the + * given parameters. For example:

+ * + *

+           * // Saves canvas as an image
+           * save('myCanvas.jpg');
+           *
+           * // Saves pImage as a png image
+           * let img = createImage(10, 10);
+           * save(img, 'my.png');
+           *
+           * // Saves canvas as an image
+           * let cnv = createCanvas(100, 100);
+           * save(cnv, 'myCanvas.jpg');
+           *
+           * // Saves p5.Renderer object as an image
+           * let gb = createGraphics(100, 100);
+           * save(gb, 'myGraphics.jpg');
+           *
+           * let myTable = new p5.Table();
+           *
+           * // Saves table as html file
+           * save(myTable, 'myTable.html');
+           *
+           * // Comma Separated Values
+           * save(myTable, 'myTable.csv');
+           *
+           * // Tab Separated Values
+           * save(myTable, 'myTable.tsv');
+           *
+           * let myJSON = { a: 1, b: true };
+           *
+           * // Saves pretty JSON
+           * save(myJSON, 'my.json');
+           *
+           * // Optimizes JSON filesize
+           * save(myJSON, 'my.json', true);
+           *
+           * // Saves array of strings to a text file with line breaks after each item
+           * let arrayOfStrings = ['a', 'b'];
+           * save(arrayOfStrings, 'my.txt');
+           * 
+ * + * @method save + * @param {Object|String} [objectOrFilename] If filename is provided, will + * save canvas as an image with + * either png or jpg extension + * depending on the filename. + * If object is provided, will + * save depending on the object + * and filename (see examples + * above). + * @param {String} [filename] If an object is provided as the first + * parameter, then the second parameter + * indicates the filename, + * and should include an appropriate + * file extension (see examples above). + * @param {Boolean|String} [options] Additional options depend on + * filetype. For example, when saving JSON, + * true indicates that the + * output will be optimized for filesize, + * rather than readability. + */ + p5.prototype.save = function(object, _filename, _options) { + // parse the arguments and figure out which things we are saving + var args = arguments; + // ================================================= + // OPTION 1: saveCanvas... + + // if no arguments are provided, save canvas + var cnv = this._curElement ? this._curElement.elt : this.elt; + if (args.length === 0) { + p5.prototype.saveCanvas(cnv); + return; + } else if (args[0] instanceof p5.Renderer || args[0] instanceof p5.Graphics) { + // otherwise, parse the arguments + + // if first param is a p5Graphics, then saveCanvas + p5.prototype.saveCanvas(args[0].elt, args[1], args[2]); + return; + } else if (args.length === 1 && typeof args[0] === 'string') { + // if 1st param is String and only one arg, assume it is canvas filename + p5.prototype.saveCanvas(cnv, args[0]); + } else { + // ================================================= + // OPTION 2: extension clarifies saveStrings vs. saveJSON + var extension = _checkFileExtension(args[1], args[2])[1]; + switch (extension) { + case 'json': + p5.prototype.saveJSON(args[0], args[1], args[2]); + return; + case 'txt': + p5.prototype.saveStrings(args[0], args[1], args[2]); + return; + // ================================================= + // OPTION 3: decide based on object... + default: + if (args[0] instanceof Array) { + p5.prototype.saveStrings(args[0], args[1], args[2]); + } else if (args[0] instanceof p5.Table) { + p5.prototype.saveTable(args[0], args[1], args[2]); + } else if (args[0] instanceof p5.Image) { + p5.prototype.saveCanvas(args[0].canvas, args[1]); + } else if (args[0] instanceof p5.SoundFile) { + p5.prototype.saveSound(args[0], args[1], args[2], args[3]); + } + } + } + }; + + /** + * Writes the contents of an Array or a JSON object to a .json file. + * The file saving process and location of the saved file will + * vary between web browsers. + * + * @method saveJSON + * @param {Array|Object} json + * @param {String} filename + * @param {Boolean} [optimize] If true, removes line breaks + * and spaces from the output + * file to optimize filesize + * (but not readability). + * @example + *
+ * let json = {}; // new JSON Object + * + * json.id = 0; + * json.species = 'Panthera leo'; + * json.name = 'Lion'; + * + * function setup() { + * createCanvas(100, 100); + * background(200); + * text('click here to save', 10, 10, 70, 80); + * } + * + * function mousePressed() { + * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { + * saveJSON(json, 'lion.json'); + * } + * } + * + * // saves the following to a file called "lion.json": + * // { + * // "id": 0, + * // "species": "Panthera leo", + * // "name": "Lion" + * // } + *
+ * + * @alt + * no image displayed + * + */ + p5.prototype.saveJSON = function(json, filename, opt) { + p5._validateParameters('saveJSON', arguments); + var stringify; + if (opt) { + stringify = JSON.stringify(json); + } else { + stringify = JSON.stringify(json, undefined, 2); + } + this.saveStrings(stringify.split('\n'), filename, 'json'); + }; + + p5.prototype.saveJSONObject = p5.prototype.saveJSON; + p5.prototype.saveJSONArray = p5.prototype.saveJSON; + + /** + * Writes an array of Strings to a text file, one line per String. + * The file saving process and location of the saved file will + * vary between web browsers. + * + * @method saveStrings + * @param {String[]} list string array to be written + * @param {String} filename filename for output + * @param {String} [extension] the filename's extension + * @example + *
+ * let words = 'apple bear cat dog'; + * + * // .split() outputs an Array + * let list = split(words, ' '); + * + * function setup() { + * createCanvas(100, 100); + * background(200); + * text('click here to save', 10, 10, 70, 80); + * } + * + * function mousePressed() { + * if (mouseX > 0 && mouseX < width && mouseY > 0 && mouseY < height) { + * saveStrings(list, 'nouns.txt'); + * } + * } + * + * // Saves the following to a file called 'nouns.txt': + * // + * // apple + * // bear + * // cat + * // dog + *
+ * + * @alt + * no image displayed + * + */ + p5.prototype.saveStrings = function(list, filename, extension) { + p5._validateParameters('saveStrings', arguments); + var ext = extension || 'txt'; + var pWriter = this.createWriter(filename, ext); + for (var i = 0; i < list.length; i++) { + if (i < list.length - 1) { + pWriter.print(list[i]); + } else { + pWriter.print(list[i]); + } + } + pWriter.close(); + pWriter.clear(); + }; + + // ======= + // HELPERS + // ======= + + function escapeHelper(content) { + return content + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"') + .replace(/'/g, '''); + } + + /** + * Writes the contents of a Table object to a file. Defaults to a + * text file with comma-separated-values ('csv') but can also + * use tab separation ('tsv'), or generate an HTML table ('html'). + * The file saving process and location of the saved file will + * vary between web browsers. + * + * @method saveTable + * @param {p5.Table} Table the Table object to save to a file + * @param {String} filename the filename to which the Table should be saved + * @param {String} [options] can be one of "tsv", "csv", or "html" + * @example + *
+ * let table; + * + * function setup() { + * table = new p5.Table(); + * + * table.addColumn('id'); + * table.addColumn('species'); + * table.addColumn('name'); + * + * let newRow = table.addRow(); + * newRow.setNum('id', table.getRowCount() - 1); + * newRow.setString('species', 'Panthera leo'); + * newRow.setString('name', 'Lion'); + * + * // To save, un-comment next line then click 'run' + * // saveTable(table, 'new.csv'); + * } + * + * // Saves the following to a file called 'new.csv': + * // id,species,name + * // 0,Panthera leo,Lion + *
+ * + * @alt + * no image displayed + * + */ + p5.prototype.saveTable = function(table, filename, options) { + p5._validateParameters('saveTable', arguments); + var ext; + if (options === undefined) { + ext = filename.substring(filename.lastIndexOf('.') + 1, filename.length); + } else { + ext = options; + } + var pWriter = this.createWriter(filename, ext); + + var header = table.columns; + + var sep = ','; // default to CSV + if (ext === 'tsv') { + sep = '\t'; + } + if (ext !== 'html') { + // make header if it has values + if (header[0] !== '0') { + for (var h = 0; h < header.length; h++) { + if (h < header.length - 1) { + pWriter.write(header[h] + sep); + } else { + pWriter.write(header[h]); + } + } + pWriter.write('\n'); + } + + // make rows + for (var i = 0; i < table.rows.length; i++) { + var j; + for (j = 0; j < table.rows[i].arr.length; j++) { + if (j < table.rows[i].arr.length - 1) { + pWriter.write(table.rows[i].arr[j] + sep); + } else if (i < table.rows.length - 1) { + pWriter.write(table.rows[i].arr[j]); + } else { + pWriter.write(table.rows[i].arr[j]); + } + } + pWriter.write('\n'); + } + } else { + // otherwise, make HTML + pWriter.print(''); + pWriter.print(''); + var str = ' '); + + pWriter.print(''); + pWriter.print(' '); + + // make header if it has values + if (header[0] !== '0') { + pWriter.print(' '); + for (var k = 0; k < header.length; k++) { + var e = escapeHelper(header[k]); + pWriter.print(' '); + } + pWriter.print(' '); + } + + // make rows + for (var row = 0; row < table.rows.length; row++) { + pWriter.print(' '); + for (var col = 0; col < table.columns.length; col++) { + var entry = table.rows[row].getString(col); + var htmlEntry = escapeHelper(entry); + pWriter.print(' '); + } + pWriter.print(' '); + } + pWriter.print('
' + e); + pWriter.print('
' + htmlEntry); + pWriter.print('
'); + pWriter.print(''); + pWriter.print(''); + } + // close and clear the pWriter + pWriter.close(); + pWriter.clear(); + }; // end saveTable() + + /** + * Generate a blob of file data as a url to prepare for download. + * Accepts an array of data, a filename, and an extension (optional). + * This is a private function because it does not do any formatting, + * but it is used by saveStrings, saveJSON, saveTable etc. + * + * @param {Array} dataToDownload + * @param {String} filename + * @param {String} [extension] + * @private + */ + p5.prototype.writeFile = function(dataToDownload, filename, extension) { + var type = 'application/octet-stream'; + if (p5.prototype._isSafari()) { + type = 'text/plain'; + } + var blob = new Blob(dataToDownload, { + type: type + }); + + p5.prototype.downloadFile(blob, filename, extension); + }; + + /** + * Forces download. Accepts a url to filedata/blob, a filename, + * and an extension (optional). + * This is a private function because it does not do any formatting, + * but it is used by saveStrings, saveJSON, saveTable etc. + * + * @method downloadFile + * @private + * @param {String|Blob} data either an href generated by createObjectURL, + * or a Blob object containing the data + * @param {String} [filename] + * @param {String} [extension] + */ + p5.prototype.downloadFile = function(data, fName, extension) { + var fx = _checkFileExtension(fName, extension); + var filename = fx[0]; + + if (data instanceof Blob) { + var fileSaver = _dereq_('file-saver'); + fileSaver.saveAs(data, filename); + return; + } + + var a = document.createElement('a'); + a.href = data; + a.download = filename; + + // Firefox requires the link to be added to the DOM before click() + a.onclick = function(e) { + destroyClickedElement(e); + e.stopPropagation(); + }; + + a.style.display = 'none'; + document.body.appendChild(a); + + // Safari will open this file in the same page as a confusing Blob. + if (p5.prototype._isSafari()) { + var aText = 'Hello, Safari user! To download this file...\n'; + aText += '1. Go to File --> Save As.\n'; + aText += '2. Choose "Page Source" as the Format.\n'; + aText += '3. Name it with this extension: ."' + fx[1] + '"'; + alert(aText); + } + a.click(); + }; + + /** + * Returns a file extension, or another string + * if the provided parameter has no extension. + * + * @param {String} filename + * @param {String} [extension] + * @return {String[]} [fileName, fileExtension] + * + * @private + */ + function _checkFileExtension(filename, extension) { + if (!extension || extension === true || extension === 'true') { + extension = ''; + } + if (!filename) { + filename = 'untitled'; + } + var ext = ''; + // make sure the file will have a name, see if filename needs extension + if (filename && filename.indexOf('.') > -1) { + ext = filename.split('.').pop(); + } + // append extension if it doesn't exist + if (extension) { + if (ext !== extension) { + ext = extension; + filename = filename + '.' + ext; + } + } + return [filename, ext]; + } + p5.prototype._checkFileExtension = _checkFileExtension; + + /** + * Returns true if the browser is Safari, false if not. + * Safari makes trouble for downloading files. + * + * @return {Boolean} [description] + * @private + */ + p5.prototype._isSafari = function() { + var x = Object.prototype.toString.call(window.HTMLElement); + return x.indexOf('Constructor') > 0; + }; + + /** + * Helper function, a callback for download that deletes + * an invisible anchor element from the DOM once the file + * has been automatically downloaded. + * + * @private + */ + function destroyClickedElement(event) { + document.body.removeChild(event.target); + } + + module.exports = p5; + }, + { + '../core/error_helpers': 20, + '../core/main': 24, + 'es6-promise': 5, + 'fetch-jsonp': 6, + 'file-saver': 7, + 'whatwg-fetch': 12 + } + ], + 49: [ + function(_dereq_, module, exports) { + /** + * @module IO + * @submodule Table + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + /** + * Table Options + *

Generic class for handling tabular data, typically from a + * CSV, TSV, or other sort of spreadsheet file.

+ *

CSV files are + * + * comma separated values, often with the data in quotes. TSV + * files use tabs as separators, and usually don't bother with the + * quotes.

+ *

File names should end with .csv if they're comma separated.

+ *

A rough "spec" for CSV can be found + * here.

+ *

To load files, use the loadTable method.

+ *

To save tables to your computer, use the save method + * or the saveTable method.

+ * + * Possible options include: + *
    + *
  • csv - parse the table as comma-separated values + *
  • tsv - parse the table as tab-separated values + *
  • header - this table has a header (title) row + *
+ */ + + /** + * Table objects store data with multiple rows and columns, much + * like in a traditional spreadsheet. Tables can be generated from + * scratch, dynamically, or using data from an existing file. + * + * @class p5.Table + * @constructor + * @param {p5.TableRow[]} [rows] An array of p5.TableRow objects + */ + p5.Table = function(rows) { + /** + * @property columns {String[]} + */ + this.columns = []; + + /** + * @property rows {p5.TableRow[]} + */ + this.rows = []; + }; + + /** + * Use addRow() to add a new row of data to a p5.Table object. By default, + * an empty row is created. Typically, you would store a reference to + * the new row in a TableRow object (see newRow in the example above), + * and then set individual values using set(). + * + * If a p5.TableRow object is included as a parameter, then that row is + * duplicated and added to the table. + * + * @method addRow + * @param {p5.TableRow} [row] row to be added to the table + * @return {p5.TableRow} the row that was added + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * //add a row + * let newRow = table.addRow(); + * newRow.setString('id', table.getRowCount() - 1); + * newRow.setString('species', 'Canis Lupus'); + * newRow.setString('name', 'Wolf'); + * + * //print the results + * for (let r = 0; r < table.getRowCount(); r++) + * for (let c = 0; c < table.getColumnCount(); c++) + * print(table.getString(r, c)); + * } + * + *
+ * + * @alt + * no image displayed + * + */ + p5.Table.prototype.addRow = function(row) { + // make sure it is a valid TableRow + var r = row || new p5.TableRow(); + + if (typeof r.arr === 'undefined' || typeof r.obj === 'undefined') { + //r = new p5.prototype.TableRow(r); + throw new Error('invalid TableRow: ' + r); + } + r.table = this; + this.rows.push(r); + return r; + }; + + /** + * Removes a row from the table object. + * + * @method removeRow + * @param {Integer} id ID number of the row to remove + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * //remove the first row + * table.removeRow(0); + * + * //print the results + * for (let r = 0; r < table.getRowCount(); r++) + * for (let c = 0; c < table.getColumnCount(); c++) + * print(table.getString(r, c)); + * } + * + *
+ * + * @alt + * no image displayed + * + */ + p5.Table.prototype.removeRow = function(id) { + this.rows[id].table = null; // remove reference to table + var chunk = this.rows.splice(id + 1, this.rows.length); + this.rows.pop(); + this.rows = this.rows.concat(chunk); + }; + + /** + * Returns a reference to the specified p5.TableRow. The reference + * can then be used to get and set values of the selected row. + * + * @method getRow + * @param {Integer} rowID ID number of the row to get + * @return {p5.TableRow} p5.TableRow object + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * let row = table.getRow(1); + * //print it column by column + * //note: a row is an object, not an array + * for (let c = 0; c < table.getColumnCount(); c++) { + * print(row.getString(c)); + * } + * } + * + *
+ * + *@alt + * no image displayed + * + */ + p5.Table.prototype.getRow = function(r) { + return this.rows[r]; + }; + + /** + * Gets all rows from the table. Returns an array of p5.TableRows. + * + * @method getRows + * @return {p5.TableRow[]} Array of p5.TableRows + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * let rows = table.getRows(); + * + * //warning: rows is an array of objects + * for (let r = 0; r < rows.length; r++) { + * rows[r].set('name', 'Unicorn'); + * } + * + * //print the results + * for (let r = 0; r < table.getRowCount(); r++) + * for (let c = 0; c < table.getColumnCount(); c++) + * print(table.getString(r, c)); + * } + * + *
+ * + * @alt + * no image displayed + * + */ + p5.Table.prototype.getRows = function() { + return this.rows; + }; + + /** + * Finds the first row in the Table that contains the value + * provided, and returns a reference to that row. Even if + * multiple rows are possible matches, only the first matching + * row is returned. The column to search may be specified by + * either its ID or title. + * + * @method findRow + * @param {String} value The value to match + * @param {Integer|String} column ID number or title of the + * column to search + * @return {p5.TableRow} + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * //find the animal named zebra + * let row = table.findRow('Zebra', 'name'); + * //find the corresponding species + * print(row.getString('species')); + * } + * + *
+ * + * @alt + * no image displayed + * + */ + p5.Table.prototype.findRow = function(value, column) { + // try the Object + if (typeof column === 'string') { + for (var i = 0; i < this.rows.length; i++) { + if (this.rows[i].obj[column] === value) { + return this.rows[i]; + } + } + } else { + // try the Array + for (var j = 0; j < this.rows.length; j++) { + if (this.rows[j].arr[column] === value) { + return this.rows[j]; + } + } + } + // otherwise... + return null; + }; + + /** + * Finds the rows in the Table that contain the value + * provided, and returns references to those rows. Returns an + * Array, so for must be used to iterate through all the rows, + * as shown in the example above. The column to search may be + * specified by either its ID or title. + * + * @method findRows + * @param {String} value The value to match + * @param {Integer|String} column ID number or title of the + * column to search + * @return {p5.TableRow[]} An Array of TableRow objects + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * //add another goat + * let newRow = table.addRow(); + * newRow.setString('id', table.getRowCount() - 1); + * newRow.setString('species', 'Scape Goat'); + * newRow.setString('name', 'Goat'); + * + * //find the rows containing animals named Goat + * let rows = table.findRows('Goat', 'name'); + * print(rows.length + ' Goats found'); + * } + * + *
+ * + *@alt + * no image displayed + * + */ + p5.Table.prototype.findRows = function(value, column) { + var ret = []; + if (typeof column === 'string') { + for (var i = 0; i < this.rows.length; i++) { + if (this.rows[i].obj[column] === value) { + ret.push(this.rows[i]); + } + } + } else { + // try the Array + for (var j = 0; j < this.rows.length; j++) { + if (this.rows[j].arr[column] === value) { + ret.push(this.rows[j]); + } + } + } + return ret; + }; + + /** + * Finds the first row in the Table that matches the regular + * expression provided, and returns a reference to that row. + * Even if multiple rows are possible matches, only the first + * matching row is returned. The column to search may be + * specified by either its ID or title. + * + * @method matchRow + * @param {String|RegExp} regexp The regular expression to match + * @param {String|Integer} column The column ID (number) or + * title (string) + * @return {p5.TableRow} TableRow object + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * //Search using specified regex on a given column, return TableRow object + * let mammal = table.matchRow(new RegExp('ant'), 1); + * print(mammal.getString(1)); + * //Output "Panthera pardus" + * } + * + *
+ * + */ + p5.Table.prototype.matchRow = function(regexp, column) { + if (typeof column === 'number') { + for (var j = 0; j < this.rows.length; j++) { + if (this.rows[j].arr[column].match(regexp)) { + return this.rows[j]; + } + } + } else { + for (var i = 0; i < this.rows.length; i++) { + if (this.rows[i].obj[column].match(regexp)) { + return this.rows[i]; + } + } + } + return null; + }; + + /** + * Finds the rows in the Table that match the regular expression provided, + * and returns references to those rows. Returns an array, so for must be + * used to iterate through all the rows, as shown in the example. The + * column to search may be specified by either its ID or title. + * + * @method matchRows + * @param {String} regexp The regular expression to match + * @param {String|Integer} [column] The column ID (number) or + * title (string) + * @return {p5.TableRow[]} An Array of TableRow objects + * @example + *
+ * + * let table; + * + * function setup() { + * table = new p5.Table(); + * + * table.addColumn('name'); + * table.addColumn('type'); + * + * let newRow = table.addRow(); + * newRow.setString('name', 'Lion'); + * newRow.setString('type', 'Mammal'); + * + * newRow = table.addRow(); + * newRow.setString('name', 'Snake'); + * newRow.setString('type', 'Reptile'); + * + * newRow = table.addRow(); + * newRow.setString('name', 'Mosquito'); + * newRow.setString('type', 'Insect'); + * + * newRow = table.addRow(); + * newRow.setString('name', 'Lizard'); + * newRow.setString('type', 'Reptile'); + * + * let rows = table.matchRows('R.*', 'type'); + * for (let i = 0; i < rows.length; i++) { + * print(rows[i].getString('name') + ': ' + rows[i].getString('type')); + * } + * } + * // Sketch prints: + * // Snake: Reptile + * // Lizard: Reptile + * + *
+ */ + p5.Table.prototype.matchRows = function(regexp, column) { + var ret = []; + if (typeof column === 'number') { + for (var j = 0; j < this.rows.length; j++) { + if (this.rows[j].arr[column].match(regexp)) { + ret.push(this.rows[j]); + } + } + } else { + for (var i = 0; i < this.rows.length; i++) { + if (this.rows[i].obj[column].match(regexp)) { + ret.push(this.rows[i]); + } + } + } + return ret; + }; + + /** + * Retrieves all values in the specified column, and returns them + * as an array. The column may be specified by either its ID or title. + * + * @method getColumn + * @param {String|Number} column String or Number of the column to return + * @return {Array} Array of column values + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * //getColumn returns an array that can be printed directly + * print(table.getColumn('species')); + * //outputs ["Capra hircus", "Panthera pardus", "Equus zebra"] + * } + * + *
+ * + *@alt + * no image displayed + * + */ + p5.Table.prototype.getColumn = function(value) { + var ret = []; + if (typeof value === 'string') { + for (var i = 0; i < this.rows.length; i++) { + ret.push(this.rows[i].obj[value]); + } + } else { + for (var j = 0; j < this.rows.length; j++) { + ret.push(this.rows[j].arr[value]); + } + } + return ret; + }; + + /** + * Removes all rows from a Table. While all rows are removed, + * columns and column titles are maintained. + * + * @method clearRows + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * table.clearRows(); + * print(table.getRowCount() + ' total rows in table'); + * print(table.getColumnCount() + ' total columns in table'); + * } + * + *
+ * + *@alt + * no image displayed + * + */ + p5.Table.prototype.clearRows = function() { + delete this.rows; + this.rows = []; + }; + + /** + * Use addColumn() to add a new column to a Table object. + * Typically, you will want to specify a title, so the column + * may be easily referenced later by name. (If no title is + * specified, the new column's title will be null.) + * + * @method addColumn + * @param {String} [title] title of the given column + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * table.addColumn('carnivore'); + * table.set(0, 'carnivore', 'no'); + * table.set(1, 'carnivore', 'yes'); + * table.set(2, 'carnivore', 'no'); + * + * //print the results + * for (let r = 0; r < table.getRowCount(); r++) + * for (let c = 0; c < table.getColumnCount(); c++) + * print(table.getString(r, c)); + * } + * + *
+ * + *@alt + * no image displayed + * + */ + p5.Table.prototype.addColumn = function(title) { + var t = title || null; + this.columns.push(t); + }; + + /** + * Returns the total number of columns in a Table. + * + * @method getColumnCount + * @return {Integer} Number of columns in this table + * @example + *
+ * + * // given the cvs file "blobs.csv" in /assets directory + * // ID, Name, Flavor, Shape, Color + * // Blob1, Blobby, Sweet, Blob, Pink + * // Blob2, Saddy, Savory, Blob, Blue + * + * let table; + * + * function preload() { + * table = loadTable('assets/blobs.csv'); + * } + * + * function setup() { + * createCanvas(200, 100); + * textAlign(CENTER); + * background(255); + * } + * + * function draw() { + * let numOfColumn = table.getColumnCount(); + * text('There are ' + numOfColumn + ' columns in the table.', 100, 50); + * } + * + *
+ */ + p5.Table.prototype.getColumnCount = function() { + return this.columns.length; + }; + + /** + * Returns the total number of rows in a Table. + * + * @method getRowCount + * @return {Integer} Number of rows in this table + * @example + *
+ * + * // given the cvs file "blobs.csv" in /assets directory + * // + * // ID, Name, Flavor, Shape, Color + * // Blob1, Blobby, Sweet, Blob, Pink + * // Blob2, Saddy, Savory, Blob, Blue + * + * let table; + * + * function preload() { + * table = loadTable('assets/blobs.csv'); + * } + * + * function setup() { + * createCanvas(200, 100); + * textAlign(CENTER); + * background(255); + * } + * + * function draw() { + * text('There are ' + table.getRowCount() + ' rows in the table.', 100, 50); + * } + * + *
+ */ + p5.Table.prototype.getRowCount = function() { + return this.rows.length; + }; + + /** + *

Removes any of the specified characters (or "tokens").

+ * + *

If no column is specified, then the values in all columns and + * rows are processed. A specific column may be referenced by + * either its ID or title.

+ * + * @method removeTokens + * @param {String} chars String listing characters to be removed + * @param {String|Integer} [column] Column ID (number) + * or name (string) + * + * @example + *
+ * function setup() { + * let table = new p5.Table(); + * + * table.addColumn('name'); + * table.addColumn('type'); + * + * let newRow = table.addRow(); + * newRow.setString('name', ' $Lion ,'); + * newRow.setString('type', ',,,Mammal'); + * + * newRow = table.addRow(); + * newRow.setString('name', '$Snake '); + * newRow.setString('type', ',,,Reptile'); + * + * table.removeTokens(',$ '); + * print(table.getArray()); + * } + * + * // prints: + * // 0 "Lion" "Mamal" + * // 1 "Snake" "Reptile" + *
+ */ + p5.Table.prototype.removeTokens = function(chars, column) { + var escape = function escape(s) { + return s.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'); + }; + var charArray = []; + for (var i = 0; i < chars.length; i++) { + charArray.push(escape(chars.charAt(i))); + } + var regex = new RegExp(charArray.join('|'), 'g'); + + if (typeof column === 'undefined') { + for (var c = 0; c < this.columns.length; c++) { + for (var d = 0; d < this.rows.length; d++) { + var s = this.rows[d].arr[c]; + s = s.replace(regex, ''); + this.rows[d].arr[c] = s; + this.rows[d].obj[this.columns[c]] = s; + } + } + } else if (typeof column === 'string') { + for (var j = 0; j < this.rows.length; j++) { + var val = this.rows[j].obj[column]; + val = val.replace(regex, ''); + this.rows[j].obj[column] = val; + var pos = this.columns.indexOf(column); + this.rows[j].arr[pos] = val; + } + } else { + for (var k = 0; k < this.rows.length; k++) { + var str = this.rows[k].arr[column]; + str = str.replace(regex, ''); + this.rows[k].arr[column] = str; + this.rows[k].obj[this.columns[column]] = str; + } + } + }; + + /** + * Trims leading and trailing whitespace, such as spaces and tabs, + * from String table values. If no column is specified, then the + * values in all columns and rows are trimmed. A specific column + * may be referenced by either its ID or title. + * + * @method trim + * @param {String|Integer} [column] Column ID (number) + * or name (string) + * @example + *
+ * function setup() { + * let table = new p5.Table(); + * + * table.addColumn('name'); + * table.addColumn('type'); + * + * let newRow = table.addRow(); + * newRow.setString('name', ' Lion ,'); + * newRow.setString('type', ' Mammal '); + * + * newRow = table.addRow(); + * newRow.setString('name', ' Snake '); + * newRow.setString('type', ' Reptile '); + * + * table.trim(); + * print(table.getArray()); + * } + * + * // prints: + * // 0 "Lion" "Mamal" + * // 1 "Snake" "Reptile" + *
+ */ + p5.Table.prototype.trim = function(column) { + var regex = new RegExp(' ', 'g'); + + if (typeof column === 'undefined') { + for (var c = 0; c < this.columns.length; c++) { + for (var d = 0; d < this.rows.length; d++) { + var s = this.rows[d].arr[c]; + s = s.replace(regex, ''); + this.rows[d].arr[c] = s; + this.rows[d].obj[this.columns[c]] = s; + } + } + } else if (typeof column === 'string') { + for (var j = 0; j < this.rows.length; j++) { + var val = this.rows[j].obj[column]; + val = val.replace(regex, ''); + this.rows[j].obj[column] = val; + var pos = this.columns.indexOf(column); + this.rows[j].arr[pos] = val; + } + } else { + for (var k = 0; k < this.rows.length; k++) { + var str = this.rows[k].arr[column]; + str = str.replace(regex, ''); + this.rows[k].arr[column] = str; + this.rows[k].obj[this.columns[column]] = str; + } + } + }; + + /** + * Use removeColumn() to remove an existing column from a Table + * object. The column to be removed may be identified by either + * its title (a String) or its index value (an int). + * removeColumn(0) would remove the first column, removeColumn(1) + * would remove the second column, and so on. + * + * @method removeColumn + * @param {String|Integer} column columnName (string) or ID (number) + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * table.removeColumn('id'); + * print(table.getColumnCount()); + * } + * + *
+ * + *@alt + * no image displayed + * + */ + p5.Table.prototype.removeColumn = function(c) { + var cString; + var cNumber; + if (typeof c === 'string') { + // find the position of c in the columns + cString = c; + cNumber = this.columns.indexOf(c); + } else { + cNumber = c; + cString = this.columns[c]; + } + + var chunk = this.columns.splice(cNumber + 1, this.columns.length); + this.columns.pop(); + this.columns = this.columns.concat(chunk); + + for (var i = 0; i < this.rows.length; i++) { + var tempR = this.rows[i].arr; + var chip = tempR.splice(cNumber + 1, tempR.length); + tempR.pop(); + this.rows[i].arr = tempR.concat(chip); + delete this.rows[i].obj[cString]; + } + }; + + /** + * Stores a value in the Table's specified row and column. + * The row is specified by its ID, while the column may be specified + * by either its ID or title. + * + * @method set + * @param {Integer} row row ID + * @param {String|Integer} column column ID (Number) + * or title (String) + * @param {String|Number} value value to assign + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * table.set(0, 'species', 'Canis Lupus'); + * table.set(0, 'name', 'Wolf'); + * + * //print the results + * for (let r = 0; r < table.getRowCount(); r++) + * for (let c = 0; c < table.getColumnCount(); c++) + * print(table.getString(r, c)); + * } + * + *
+ * + *@alt + * no image displayed + * + */ + p5.Table.prototype.set = function(row, column, value) { + this.rows[row].set(column, value); + }; + + /** + * Stores a Float value in the Table's specified row and column. + * The row is specified by its ID, while the column may be specified + * by either its ID or title. + * + * @method setNum + * @param {Integer} row row ID + * @param {String|Integer} column column ID (Number) + * or title (String) + * @param {Number} value value to assign + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * table.setNum(1, 'id', 1); + * + * print(table.getColumn(0)); + * //["0", 1, "2"] + * } + * + *
+ * + *@alt + * no image displayed + */ + p5.Table.prototype.setNum = function(row, column, value) { + this.rows[row].setNum(column, value); + }; + + /** + * Stores a String value in the Table's specified row and column. + * The row is specified by its ID, while the column may be specified + * by either its ID or title. + * + * @method setString + * @param {Integer} row row ID + * @param {String|Integer} column column ID (Number) + * or title (String) + * @param {String} value value to assign + * @example + *
+ * // Given the CSV file "mammals.csv" in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * //add a row + * let newRow = table.addRow(); + * newRow.setString('id', table.getRowCount() - 1); + * newRow.setString('species', 'Canis Lupus'); + * newRow.setString('name', 'Wolf'); + * + * print(table.getArray()); + * } + *
+ * + * @alt + * no image displayed + */ + p5.Table.prototype.setString = function(row, column, value) { + this.rows[row].setString(column, value); + }; + + /** + * Retrieves a value from the Table's specified row and column. + * The row is specified by its ID, while the column may be specified by + * either its ID or title. + * + * @method get + * @param {Integer} row row ID + * @param {String|Integer} column columnName (string) or + * ID (number) + * @return {String|Number} + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * print(table.get(0, 1)); + * //Capra hircus + * print(table.get(0, 'species')); + * //Capra hircus + * } + * + *
+ * + *@alt + * no image displayed + * + */ + p5.Table.prototype.get = function(row, column) { + return this.rows[row].get(column); + }; + + /** + * Retrieves a Float value from the Table's specified row and column. + * The row is specified by its ID, while the column may be specified by + * either its ID or title. + * + * @method getNum + * @param {Integer} row row ID + * @param {String|Integer} column columnName (string) or + * ID (number) + * @return {Number} + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * print(table.getNum(1, 0) + 100); + * //id 1 + 100 = 101 + * } + * + *
+ * + *@alt + * no image displayed + * + */ + p5.Table.prototype.getNum = function(row, column) { + return this.rows[row].getNum(column); + }; + + /** + * Retrieves a String value from the Table's specified row and column. + * The row is specified by its ID, while the column may be specified by + * either its ID or title. + * + * @method getString + * @param {Integer} row row ID + * @param {String|Integer} column columnName (string) or + * ID (number) + * @return {String} + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * // table is comma separated value "CSV" + * // and has specifiying header for column labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * print(table.getString(0, 0)); // 0 + * print(table.getString(0, 1)); // Capra hircus + * print(table.getString(0, 2)); // Goat + * print(table.getString(1, 0)); // 1 + * print(table.getString(1, 1)); // Panthera pardus + * print(table.getString(1, 2)); // Leopard + * print(table.getString(2, 0)); // 2 + * print(table.getString(2, 1)); // Equus zebra + * print(table.getString(2, 2)); // Zebra + * } + * + *
+ * + *@alt + * no image displayed + * + */ + + p5.Table.prototype.getString = function(row, column) { + return this.rows[row].getString(column); + }; + + /** + * Retrieves all table data and returns as an object. If a column name is + * passed in, each row object will be stored with that attribute as its + * title. + * + * @method getObject + * @param {String} [headerColumn] Name of the column which should be used to + * title each row object (optional) + * @return {Object} + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * let tableObject = table.getObject(); + * + * print(tableObject); + * //outputs an object + * } + * + *
+ * + *@alt + * no image displayed + * + */ + p5.Table.prototype.getObject = function(headerColumn) { + var tableObject = {}; + var obj, cPos, index; + + for (var i = 0; i < this.rows.length; i++) { + obj = this.rows[i].obj; + + if (typeof headerColumn === 'string') { + cPos = this.columns.indexOf(headerColumn); // index of columnID + if (cPos >= 0) { + index = obj[headerColumn]; + tableObject[index] = obj; + } else { + throw new Error('This table has no column named "' + headerColumn + '"'); + } + } else { + tableObject[i] = this.rows[i].obj; + } + } + return tableObject; + }; + + /** + * Retrieves all table data and returns it as a multidimensional array. + * + * @method getArray + * @return {Array} + * + * @example + *
+ * + * // Given the CSV file "mammals.csv" + * // in the project's "assets" folder + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leoperd + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * // table is comma separated value "CSV" + * // and has specifiying header for column labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * let tableArray = table.getArray(); + * for (let i = 0; i < tableArray.length; i++) { + * print(tableArray[i]); + * } + * } + * + *
+ * + *@alt + * no image displayed + * + */ + p5.Table.prototype.getArray = function() { + var tableArray = []; + for (var i = 0; i < this.rows.length; i++) { + tableArray.push(this.rows[i].arr); + } + return tableArray; + }; + + module.exports = p5; + }, + { '../core/main': 24 } + ], + 50: [ + function(_dereq_, module, exports) { + /** + * @module IO + * @submodule Table + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + /** + * A TableRow object represents a single row of data values, + * stored in columns, from a table. + * + * A Table Row contains both an ordered array, and an unordered + * JSON object. + * + * @class p5.TableRow + * @constructor + * @param {String} [str] optional: populate the row with a + * string of values, separated by the + * separator + * @param {String} [separator] comma separated values (csv) by default + */ + p5.TableRow = function(str, separator) { + var arr = []; + var obj = {}; + if (str) { + separator = separator || ','; + arr = str.split(separator); + } + for (var i = 0; i < arr.length; i++) { + var key = i; + var val = arr[i]; + obj[key] = val; + } + this.arr = arr; + this.obj = obj; + this.table = null; + }; + + /** + * Stores a value in the TableRow's specified column. + * The column may be specified by either its ID or title. + * + * @method set + * @param {String|Integer} column Column ID (Number) + * or Title (String) + * @param {String|Number} value The value to be stored + * + * @example + *
+ * // Given the CSV file "mammals.csv" in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * let rows = table.getRows(); + * for (let r = 0; r < rows.length; r++) { + * rows[r].set('name', 'Unicorn'); + * } + * + * //print the results + * print(table.getArray()); + * } + *
+ * + * @alt + * no image displayed + */ + p5.TableRow.prototype.set = function(column, value) { + // if typeof column is string, use .obj + if (typeof column === 'string') { + var cPos = this.table.columns.indexOf(column); // index of columnID + if (cPos >= 0) { + this.obj[column] = value; + this.arr[cPos] = value; + } else { + throw new Error('This table has no column named "' + column + '"'); + } + } else { + // if typeof column is number, use .arr + if (column < this.table.columns.length) { + this.arr[column] = value; + var cTitle = this.table.columns[column]; + this.obj[cTitle] = value; + } else { + throw new Error('Column #' + column + ' is out of the range of this table'); + } + } + }; + + /** + * Stores a Float value in the TableRow's specified column. + * The column may be specified by either its ID or title. + * + * @method setNum + * @param {String|Integer} column Column ID (Number) + * or Title (String) + * @param {Number|String} value The value to be stored + * as a Float + * @example + *
+ * // Given the CSV file "mammals.csv" in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * let rows = table.getRows(); + * for (let r = 0; r < rows.length; r++) { + * rows[r].setNum('id', r + 10); + * } + * + * print(table.getArray()); + * } + *
+ * + * @alt + * no image displayed + */ + p5.TableRow.prototype.setNum = function(column, value) { + var floatVal = parseFloat(value); + this.set(column, floatVal); + }; + + /** + * Stores a String value in the TableRow's specified column. + * The column may be specified by either its ID or title. + * + * @method setString + * @param {String|Integer} column Column ID (Number) + * or Title (String) + * @param {String|Number|Boolean|Object} value The value to be stored + * as a String + * @example + *
+ * // Given the CSV file "mammals.csv" in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * let rows = table.getRows(); + * for (let r = 0; r < rows.length; r++) { + * let name = rows[r].getString('name'); + * rows[r].setString('name', 'A ' + name + ' named George'); + * } + * + * print(table.getArray()); + * } + *
+ * + * @alt + * no image displayed + */ + p5.TableRow.prototype.setString = function(column, value) { + var stringVal = value.toString(); + this.set(column, stringVal); + }; + + /** + * Retrieves a value from the TableRow's specified column. + * The column may be specified by either its ID or title. + * + * @method get + * @param {String|Integer} column columnName (string) or + * ID (number) + * @return {String|Number} + * + * @example + *
+ * // Given the CSV file "mammals.csv" in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * let names = []; + * let rows = table.getRows(); + * for (let r = 0; r < rows.length; r++) { + * names.push(rows[r].get('name')); + * } + * + * print(names); + * } + *
+ * + * @alt + * no image displayed + */ + p5.TableRow.prototype.get = function(column) { + if (typeof column === 'string') { + return this.obj[column]; + } else { + return this.arr[column]; + } + }; + + /** + * Retrieves a Float value from the TableRow's specified + * column. The column may be specified by either its ID or + * title. + * + * @method getNum + * @param {String|Integer} column columnName (string) or + * ID (number) + * @return {Number} Float Floating point number + * @example + *
+ * // Given the CSV file "mammals.csv" in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * let rows = table.getRows(); + * let minId = Infinity; + * let maxId = -Infinity; + * for (let r = 0; r < rows.length; r++) { + * let id = rows[r].getNum('id'); + * minId = min(minId, id); + * maxId = min(maxId, id); + * } + * print('minimum id = ' + minId + ', maximum id = ' + maxId); + * } + *
+ * + * @alt + * no image displayed + */ + p5.TableRow.prototype.getNum = function(column) { + var ret; + if (typeof column === 'string') { + ret = parseFloat(this.obj[column]); + } else { + ret = parseFloat(this.arr[column]); + } + + if (ret.toString() === 'NaN') { + throw 'Error: ' + this.obj[column] + ' is NaN (Not a Number)'; + } + return ret; + }; + + /** + * Retrieves an String value from the TableRow's specified + * column. The column may be specified by either its ID or + * title. + * + * @method getString + * @param {String|Integer} column columnName (string) or + * ID (number) + * @return {String} String + * @example + *
+ * // Given the CSV file "mammals.csv" in the project's "assets" folder: + * // + * // id,species,name + * // 0,Capra hircus,Goat + * // 1,Panthera pardus,Leopard + * // 2,Equus zebra,Zebra + * + * let table; + * + * function preload() { + * //my table is comma separated value "csv" + * //and has a header specifying the columns labels + * table = loadTable('assets/mammals.csv', 'csv', 'header'); + * } + * + * function setup() { + * let rows = table.getRows(); + * let longest = ''; + * for (let r = 0; r < rows.length; r++) { + * let species = rows[r].getString('species'); + * if (longest.length < species.length) { + * longest = species; + * } + * } + * + * print('longest: ' + longest); + * } + *
+ * + * @alt + * no image displayed + */ + p5.TableRow.prototype.getString = function(column) { + if (typeof column === 'string') { + return this.obj[column].toString(); + } else { + return this.arr[column].toString(); + } + }; + + module.exports = p5; + }, + { '../core/main': 24 } + ], + 51: [ + function(_dereq_, module, exports) { + /** + * @module IO + * @submodule XML + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + /** + * XML is a representation of an XML object, able to parse XML code. Use + * loadXML() to load external XML files and create XML objects. + * + * @class p5.XML + * @constructor + * @example + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * let children = xml.getChildren('animal'); + * + * for (let i = 0; i < children.length; i++) { + * let id = children[i].getNum('id'); + * let coloring = children[i].getString('species'); + * let name = children[i].getContent(); + * print(id + ', ' + coloring + ', ' + name); + * } + * } + * + * // Sketch prints: + * // 0, Capra hircus, Goat + * // 1, Panthera pardus, Leopard + * // 2, Equus zebra, Zebra + *
+ * + * @alt + * no image displayed + * + */ + p5.XML = function(DOM) { + if (!DOM) { + var xmlDoc = document.implementation.createDocument(null, 'doc'); + this.DOM = xmlDoc.createElement('root'); + } else { + this.DOM = DOM; + } + }; + + /** + * Gets a copy of the element's parent. Returns the parent as another + * p5.XML object. + * + * @method getParent + * @return {p5.XML} element parent + * @example + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * let children = xml.getChildren('animal'); + * let parent = children[1].getParent(); + * print(parent.getName()); + * } + * + * // Sketch prints: + * // mammals + *
+ */ + p5.XML.prototype.getParent = function() { + return new p5.XML(this.DOM.parentElement); + }; + + /** + * Gets the element's full name, which is returned as a String. + * + * @method getName + * @return {String} the name of the node + * @example<animal + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * print(xml.getName()); + * } + * + * // Sketch prints: + * // mammals + *
+ */ + p5.XML.prototype.getName = function() { + return this.DOM.tagName; + }; + + /** + * Sets the element's name, which is specified as a String. + * + * @method setName + * @param {String} the new name of the node + * @example<animal + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * print(xml.getName()); + * xml.setName('fish'); + * print(xml.getName()); + * } + * + * // Sketch prints: + * // mammals + * // fish + *
+ */ + p5.XML.prototype.setName = function(name) { + var content = this.DOM.innerHTML; + var attributes = this.DOM.attributes; + var xmlDoc = document.implementation.createDocument(null, 'default'); + var newDOM = xmlDoc.createElement(name); + newDOM.innerHTML = content; + for (var i = 0; i < attributes.length; i++) { + newDOM.setAttribute(attributes[i].nodeName, attributes.nodeValue); + } + this.DOM = newDOM; + }; + + /** + * Checks whether or not the element has any children, and returns the result + * as a boolean. + * + * @method hasChildren + * @return {boolean} + * @example<animal + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * print(xml.hasChildren()); + * } + * + * // Sketch prints: + * // true + *
+ */ + p5.XML.prototype.hasChildren = function() { + return this.DOM.children.length > 0; + }; + + /** + * Get the names of all of the element's children, and returns the names as an + * array of Strings. This is the same as looping through and calling getName() + * on each child element individually. + * + * @method listChildren + * @return {String[]} names of the children of the element + * @example<animal + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * print(xml.listChildren()); + * } + * + * // Sketch prints: + * // ["animal", "animal", "animal"] + *
+ */ + p5.XML.prototype.listChildren = function() { + var arr = []; + for (var i = 0; i < this.DOM.childNodes.length; i++) { + arr.push(this.DOM.childNodes[i].nodeName); + } + return arr; + }; + + /** + * Returns all of the element's children as an array of p5.XML objects. When + * the name parameter is specified, then it will return all children that match + * that name. + * + * @method getChildren + * @param {String} [name] element name + * @return {p5.XML[]} children of the element + * @example<animal + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * let animals = xml.getChildren('animal'); + * + * for (let i = 0; i < animals.length; i++) { + * print(animals[i].getContent()); + * } + * } + * + * // Sketch prints: + * // "Goat" + * // "Leopard" + * // "Zebra" + *
+ */ + p5.XML.prototype.getChildren = function(param) { + if (param) { + return elementsToP5XML(this.DOM.getElementsByTagName(param)); + } else { + return elementsToP5XML(this.DOM.children); + } + }; + + function elementsToP5XML(elements) { + var arr = []; + for (var i = 0; i < elements.length; i++) { + arr.push(new p5.XML(elements[i])); + } + return arr; + } + + /** + * Returns the first of the element's children that matches the name parameter + * or the child of the given index.It returns undefined if no matching + * child is found. + * + * @method getChild + * @param {String|Integer} name element name or index + * @return {p5.XML} + * @example<animal + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * let firstChild = xml.getChild('animal'); + * print(firstChild.getContent()); + * } + * + * // Sketch prints: + * // "Goat" + *
+ *
+ * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * let secondChild = xml.getChild(1); + * print(secondChild.getContent()); + * } + * + * // Sketch prints: + * // "Leopard" + *
+ */ + p5.XML.prototype.getChild = function(param) { + if (typeof param === 'string') { + for (var i = 0; i < this.DOM.children.length; i++) { + var child = this.DOM.children[i]; + if (child.tagName === param) return new p5.XML(child); + } + } else { + return new p5.XML(this.DOM.children[param]); + } + }; + + /** + * Appends a new child to the element. The child can be specified with + * either a String, which will be used as the new tag's name, or as a + * reference to an existing p5.XML object. + * A reference to the newly created child is returned as an p5.XML object. + * + * @method addChild + * @param {p5.XML} node a p5.XML Object which will be the child to be added + * @example + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * let child = new p5.XML(); + * child.setName('animal'); + * child.setAttribute('id', '3'); + * child.setAttribute('species', 'Ornithorhynchus anatinus'); + * child.setContent('Platypus'); + * xml.addChild(child); + * + * let animals = xml.getChildren('animal'); + * print(animals[animals.length - 1].getContent()); + * } + * + * // Sketch prints: + * // "Goat" + * // "Leopard" + * // "Zebra" + *
+ */ + p5.XML.prototype.addChild = function(node) { + if (node instanceof p5.XML) { + this.DOM.appendChild(node.DOM); + } else { + // PEND + } + }; + + /** + * Removes the element specified by name or index. + * + * @method removeChild + * @param {String|Integer} name element name or index + * @example + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * xml.removeChild('animal'); + * let children = xml.getChildren(); + * for (let i = 0; i < children.length; i++) { + * print(children[i].getContent()); + * } + * } + * + * // Sketch prints: + * // "Leopard" + * // "Zebra" + *
+ *
+ * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * xml.removeChild(1); + * let children = xml.getChildren(); + * for (let i = 0; i < children.length; i++) { + * print(children[i].getContent()); + * } + * } + * + * // Sketch prints: + * // "Goat" + * // "Zebra" + *
+ */ + p5.XML.prototype.removeChild = function(param) { + var ind = -1; + if (typeof param === 'string') { + for (var i = 0; i < this.DOM.children.length; i++) { + if (this.DOM.children[i].tagName === param) { + ind = i; + break; + } + } + } else { + ind = param; + } + if (ind !== -1) { + this.DOM.removeChild(this.DOM.children[ind]); + } + }; + + /** + * Counts the specified element's number of attributes, returned as an Number. + * + * @method getAttributeCount + * @return {Integer} + * @example + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * let firstChild = xml.getChild('animal'); + * print(firstChild.getAttributeCount()); + * } + * + * // Sketch prints: + * // 2 + *
+ */ + p5.XML.prototype.getAttributeCount = function() { + return this.DOM.attributes.length; + }; + + /** + * Gets all of the specified element's attributes, and returns them as an + * array of Strings. + * + * @method listAttributes + * @return {String[]} an array of strings containing the names of attributes + * @example + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * let firstChild = xml.getChild('animal'); + * print(firstChild.listAttributes()); + * } + * + * // Sketch prints: + * // ["id", "species"] + *
+ */ + p5.XML.prototype.listAttributes = function() { + var arr = []; + for (var i = 0; i < this.DOM.attributes.length; i++) { + var attribute = this.DOM.attributes[i]; + arr.push(attribute.nodeName); + } + return arr; + }; + + /** + * Checks whether or not an element has the specified attribute. + * + * @method hasAttribute + * @param {String} the attribute to be checked + * @return {boolean} true if attribute found else false + * @example + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * let firstChild = xml.getChild('animal'); + * print(firstChild.hasAttribute('species')); + * print(firstChild.hasAttribute('color')); + * } + * + * // Sketch prints: + * // true + * // false + *
+ */ + p5.XML.prototype.hasAttribute = function(name) { + var obj = {}; + for (var i = 0; i < this.DOM.attributes.length; i++) { + var attribute = this.DOM.attributes[i]; + obj[attribute.nodeName] = attribute.nodeValue; + } + return obj[name] ? true : false; + }; + + /** + * Returns an attribute value of the element as an Number. If the defaultValue + * parameter is specified and the attribute doesn't exist, then defaultValue + * is returned. If no defaultValue is specified and the attribute doesn't + * exist, the value 0 is returned. + * + * @method getNum + * @param {String} name the non-null full name of the attribute + * @param {Number} [defaultValue] the default value of the attribute + * @return {Number} + * @example + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * let firstChild = xml.getChild('animal'); + * print(firstChild.getNum('id')); + * } + * + * // Sketch prints: + * // 0 + *
+ */ + p5.XML.prototype.getNum = function(name, defaultValue) { + var obj = {}; + for (var i = 0; i < this.DOM.attributes.length; i++) { + var attribute = this.DOM.attributes[i]; + obj[attribute.nodeName] = attribute.nodeValue; + } + return Number(obj[name]) || defaultValue || 0; + }; + + /** + * Returns an attribute value of the element as an String. If the defaultValue + * parameter is specified and the attribute doesn't exist, then defaultValue + * is returned. If no defaultValue is specified and the attribute doesn't + * exist, null is returned. + * + * @method getString + * @param {String} name the non-null full name of the attribute + * @param {Number} [defaultValue] the default value of the attribute + * @return {String} + * @example + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * let firstChild = xml.getChild('animal'); + * print(firstChild.getString('species')); + * } + * + * // Sketch prints: + * // "Capra hircus" + *
+ */ + p5.XML.prototype.getString = function(name, defaultValue) { + var obj = {}; + for (var i = 0; i < this.DOM.attributes.length; i++) { + var attribute = this.DOM.attributes[i]; + obj[attribute.nodeName] = attribute.nodeValue; + } + return obj[name] ? String(obj[name]) : defaultValue || null; + }; + + /** + * Sets the content of an element's attribute. The first parameter specifies + * the attribute name, while the second specifies the new content. + * + * @method setAttribute + * @param {String} name the full name of the attribute + * @param {Number|String|Boolean} value the value of the attribute + * @example + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * let firstChild = xml.getChild('animal'); + * print(firstChild.getString('species')); + * firstChild.setAttribute('species', 'Jamides zebra'); + * print(firstChild.getString('species')); + * } + * + * // Sketch prints: + * // "Capra hircus" + * // "Jamides zebra" + *
+ */ + p5.XML.prototype.setAttribute = function(name, value) { + this.DOM.setAttribute(name, value); + }; + + /** + * Returns the content of an element. If there is no such content, + * defaultValue is returned if specified, otherwise null is returned. + * + * @method getContent + * @param {String} [defaultValue] value returned if no content is found + * @return {String} + * @example + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * let firstChild = xml.getChild('animal'); + * print(firstChild.getContent()); + * } + * + * // Sketch prints: + * // "Goat" + *
+ */ + p5.XML.prototype.getContent = function(defaultValue) { + var str; + str = this.DOM.textContent; + str = str.replace(/\s\s+/g, ','); + return str || defaultValue || null; + }; + + /** + * Sets the element's content. + * + * @method setContent + * @param {String} text the new content + * @example + *
+ * // The following short XML file called "mammals.xml" is parsed + * // in the code below. + * // + * // + * // <mammals> + * // <animal id="0" species="Capra hircus">Goat</animal> + * // <animal id="1" species="Panthera pardus">Leopard</animal> + * // <animal id="2" species="Equus zebra">Zebra</animal> + * // </mammals> + * + * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * let firstChild = xml.getChild('animal'); + * print(firstChild.getContent()); + * firstChild.setContent('Mountain Goat'); + * print(firstChild.getContent()); + * } + * + * // Sketch prints: + * // "Goat" + * // "Mountain Goat" + *
+ */ + p5.XML.prototype.setContent = function(content) { + if (!this.DOM.children.length) { + this.DOM.textContent = content; + } + }; + + /** + * Serializes the element into a string. This function is useful for preparing + * the content to be sent over a http request or saved to file. + * + * @method serialize + * @return {String} Serialized string of the element + * @example + *
+ * let xml; + * + * function preload() { + * xml = loadXML('assets/mammals.xml'); + * } + * + * function setup() { + * print(xml.serialize()); + * } + * + * // Sketch prints: + * // + * // Goat + * // Leopard + * // Zebra + * // + *
+ */ + p5.XML.prototype.serialize = function() { + var xmlSerializer = new XMLSerializer(); + return xmlSerializer.serializeToString(this.DOM); + }; + + module.exports = p5; + }, + { '../core/main': 24 } + ], + 52: [ + function(_dereq_, module, exports) { + /** + * @module Math + * @submodule Calculation + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + /** + * Calculates the absolute value (magnitude) of a number. Maps to Math.abs(). + * The absolute value of a number is always positive. + * + * @method abs + * @param {Number} n number to compute + * @return {Number} absolute value of given number + * @example + *
+ * function setup() { + * let x = -3; + * let y = abs(x); + * + * print(x); // -3 + * print(y); // 3 + * } + *
+ * + * @alt + * no image displayed + * + */ + p5.prototype.abs = Math.abs; + + /** + * Calculates the closest int value that is greater than or equal to the + * value of the parameter. Maps to Math.ceil(). For example, ceil(9.03) + * returns the value 10. + * + * @method ceil + * @param {Number} n number to round up + * @return {Integer} rounded up number + * @example + *
+ * function draw() { + * background(200); + * // map, mouseX between 0 and 5. + * let ax = map(mouseX, 0, 100, 0, 5); + * let ay = 66; + * + * //Get the ceiling of the mapped number. + * let bx = ceil(map(mouseX, 0, 100, 0, 5)); + * let by = 33; + * + * // Multiply the mapped numbers by 20 to more easily + * // see the changes. + * stroke(0); + * fill(0); + * line(0, ay, ax * 20, ay); + * line(0, by, bx * 20, by); + * + * // Reformat the float returned by map and draw it. + * noStroke(); + * text(nfc(ax, 2), ax, ay - 5); + * text(nfc(bx, 1), bx, by - 5); + * } + *
+ * + * @alt + * 2 horizontal lines & number sets. increase with mouse x. bottom to 2 decimals + * + */ + p5.prototype.ceil = Math.ceil; + + /** + * Constrains a value between a minimum and maximum value. + * + * @method constrain + * @param {Number} n number to constrain + * @param {Number} low minimum limit + * @param {Number} high maximum limit + * @return {Number} constrained number + * @example + *
+ * function draw() { + * background(200); + * + * let leftWall = 25; + * let rightWall = 75; + * + * // xm is just the mouseX, while + * // xc is the mouseX, but constrained + * // between the leftWall and rightWall! + * let xm = mouseX; + * let xc = constrain(mouseX, leftWall, rightWall); + * + * // Draw the walls. + * stroke(150); + * line(leftWall, 0, leftWall, height); + * line(rightWall, 0, rightWall, height); + * + * // Draw xm and xc as circles. + * noStroke(); + * fill(150); + * ellipse(xm, 33, 9, 9); // Not Constrained + * fill(0); + * ellipse(xc, 66, 9, 9); // Constrained + * } + *
+ * + * @alt + * 2 vertical lines. 2 ellipses move with mouse X 1 does not move passed lines + * + */ + p5.prototype.constrain = function(n, low, high) { + p5._validateParameters('constrain', arguments); + return Math.max(Math.min(n, high), low); + }; + + /** + * Calculates the distance between two points, in either two or three dimensions. + * + * @method dist + * @param {Number} x1 x-coordinate of the first point + * @param {Number} y1 y-coordinate of the first point + * @param {Number} x2 x-coordinate of the second point + * @param {Number} y2 y-coordinate of the second point + * @return {Number} distance between the two points + * + * @example + *
+ * // Move your mouse inside the canvas to see the + * // change in distance between two points! + * function draw() { + * background(200); + * fill(0); + * + * let x1 = 10; + * let y1 = 90; + * let x2 = mouseX; + * let y2 = mouseY; + * + * line(x1, y1, x2, y2); + * ellipse(x1, y1, 7, 7); + * ellipse(x2, y2, 7, 7); + * + * // d is the length of the line + * // the distance from point 1 to point 2. + * let d = int(dist(x1, y1, x2, y2)); + * + * // Let's write d along the line we are drawing! + * push(); + * translate((x1 + x2) / 2, (y1 + y2) / 2); + * rotate(atan2(y2 - y1, x2 - x1)); + * text(nfc(d, 1), 0, -5); + * pop(); + * // Fancy! + * } + *
+ * + * @alt + * 2 ellipses joined by line. 1 ellipse moves with mouse X&Y. Distance displayed. + */ + /** + * @method dist + * @param {Number} x1 + * @param {Number} y1 + * @param {Number} z1 z-coordinate of the first point + * @param {Number} x2 + * @param {Number} y2 + * @param {Number} z2 z-coordinate of the second point + * @return {Number} distance between the two points + */ + p5.prototype.dist = function() { + p5._validateParameters('dist', arguments); + if (arguments.length === 4) { + //2D + return hypot(arguments[2] - arguments[0], arguments[3] - arguments[1]); + } else if (arguments.length === 6) { + //3D + return hypot( + arguments[3] - arguments[0], + arguments[4] - arguments[1], + arguments[5] - arguments[2] + ); + } + }; + + /** + * Returns Euler's number e (2.71828...) raised to the power of the n + * parameter. Maps to Math.exp(). + * + * @method exp + * @param {Number} n exponent to raise + * @return {Number} e^n + * @example + *
+ * function draw() { + * background(200); + * + * // Compute the exp() function with a value between 0 and 2 + * let xValue = map(mouseX, 0, width, 0, 2); + * let yValue = exp(xValue); + * + * let y = map(yValue, 0, 8, height, 0); + * + * let legend = 'exp (' + nfc(xValue, 3) + ')\n= ' + nf(yValue, 1, 4); + * stroke(150); + * line(mouseX, y, mouseX, height); + * fill(0); + * text(legend, 5, 15); + * noStroke(); + * ellipse(mouseX, y, 7, 7); + * + * // Draw the exp(x) curve, + * // over the domain of x from 0 to 2 + * noFill(); + * stroke(0); + * beginShape(); + * for (let x = 0; x < width; x++) { + * xValue = map(x, 0, width, 0, 2); + * yValue = exp(xValue); + * y = map(yValue, 0, 8, height, 0); + * vertex(x, y); + * } + * + * endShape(); + * line(0, 0, 0, height); + * line(0, height - 1, width, height - 1); + * } + *
+ * + * @alt + * ellipse moves along a curve with mouse x. e^n displayed. + * + */ + p5.prototype.exp = Math.exp; + + /** + * Calculates the closest int value that is less than or equal to the + * value of the parameter. Maps to Math.floor(). + * + * @method floor + * @param {Number} n number to round down + * @return {Integer} rounded down number + * @example + *
+ * function draw() { + * background(200); + * //map, mouseX between 0 and 5. + * let ax = map(mouseX, 0, 100, 0, 5); + * let ay = 66; + * + * //Get the floor of the mapped number. + * let bx = floor(map(mouseX, 0, 100, 0, 5)); + * let by = 33; + * + * // Multiply the mapped numbers by 20 to more easily + * // see the changes. + * stroke(0); + * fill(0); + * line(0, ay, ax * 20, ay); + * line(0, by, bx * 20, by); + * + * // Reformat the float returned by map and draw it. + * noStroke(); + * text(nfc(ax, 2), ax, ay - 5); + * text(nfc(bx, 1), bx, by - 5); + * } + *
+ * + * @alt + * 2 horizontal lines & number sets. increase with mouse x. bottom to 2 decimals + * + */ + p5.prototype.floor = Math.floor; + + /** + * Calculates a number between two numbers at a specific increment. The amt + * parameter is the amount to interpolate between the two values where 0.0 + * equal to the first point, 0.1 is very near the first point, 0.5 is + * half-way in between, and 1.0 is equal to the second point. If the + * value of amt is more than 1.0 or less than 0.0, the number will be + * calculated accordingly in the ratio of the two given numbers. The lerp + * function is convenient for creating motion along a straight + * path and for drawing dotted lines. + * + * @method lerp + * @param {Number} start first value + * @param {Number} stop second value + * @param {Number} amt number + * @return {Number} lerped value + * @example + *
+ * function setup() { + * background(200); + * let a = 20; + * let b = 80; + * let c = lerp(a, b, 0.2); + * let d = lerp(a, b, 0.5); + * let e = lerp(a, b, 0.8); + * + * let y = 50; + * + * strokeWeight(5); + * stroke(0); // Draw the original points in black + * point(a, y); + * point(b, y); + * + * stroke(100); // Draw the lerp points in gray + * point(c, y); + * point(d, y); + * point(e, y); + * } + *
+ * + * @alt + * 5 points horizontally staggered mid-canvas. mid 3 are grey, outer black + * + */ + p5.prototype.lerp = function(start, stop, amt) { + p5._validateParameters('lerp', arguments); + return amt * (stop - start) + start; + }; + + /** + * Calculates the natural logarithm (the base-e logarithm) of a number. This + * function expects the n parameter to be a value greater than 0.0. Maps to + * Math.log(). + * + * @method log + * @param {Number} n number greater than 0 + * @return {Number} natural logarithm of n + * @example + *
+ * function draw() { + * background(200); + * let maxX = 2.8; + * let maxY = 1.5; + * + * // Compute the natural log of a value between 0 and maxX + * let xValue = map(mouseX, 0, width, 0, maxX); + * let yValue, y; + * if (xValue > 0) { + // Cannot take the log of a negative number. + * yValue = log(xValue); + * y = map(yValue, -maxY, maxY, height, 0); + * + * // Display the calculation occurring. + * let legend = 'log(' + nf(xValue, 1, 2) + ')\n= ' + nf(yValue, 1, 3); + * stroke(150); + * line(mouseX, y, mouseX, height); + * fill(0); + * text(legend, 5, 15); + * noStroke(); + * ellipse(mouseX, y, 7, 7); + * } + * + * // Draw the log(x) curve, + * // over the domain of x from 0 to maxX + * noFill(); + * stroke(0); + * beginShape(); + * for (let x = 0; x < width; x++) { + * xValue = map(x, 0, width, 0, maxX); + * yValue = log(xValue); + * y = map(yValue, -maxY, maxY, height, 0); + * vertex(x, y); + * } + * endShape(); + * line(0, 0, 0, height); + * line(0, height / 2, width, height / 2); + * } + *
+ * + * @alt + * ellipse moves along a curve with mouse x. natural logarithm of n displayed. + * + */ + p5.prototype.log = Math.log; + + /** + * Calculates the magnitude (or length) of a vector. A vector is a direction + * in space commonly used in computer graphics and linear algebra. Because it + * has no "start" position, the magnitude of a vector can be thought of as + * the distance from the coordinate 0,0 to its x,y value. Therefore, mag() is + * a shortcut for writing dist(0, 0, x, y). + * + * @method mag + * @param {Number} a first value + * @param {Number} b second value + * @return {Number} magnitude of vector from (0,0) to (a,b) + * @example + *
+ * function setup() { + * let x1 = 20; + * let x2 = 80; + * let y1 = 30; + * let y2 = 70; + * + * line(0, 0, x1, y1); + * print(mag(x1, y1)); // Prints "36.05551275463989" + * line(0, 0, x2, y1); + * print(mag(x2, y1)); // Prints "85.44003745317531" + * line(0, 0, x1, y2); + * print(mag(x1, y2)); // Prints "72.80109889280519" + * line(0, 0, x2, y2); + * print(mag(x2, y2)); // Prints "106.3014581273465" + * } + *
+ * + * @alt + * 4 lines of different length radiate from top left of canvas. + * + */ + p5.prototype.mag = function(x, y) { + p5._validateParameters('mag', arguments); + return hypot(x, y); + }; + + /** + * Re-maps a number from one range to another. + *

+ * In the first example above, the number 25 is converted from a value in the + * range of 0 to 100 into a value that ranges from the left edge of the + * window (0) to the right edge (width). + * + * @method map + * @param {Number} value the incoming value to be converted + * @param {Number} start1 lower bound of the value's current range + * @param {Number} stop1 upper bound of the value's current range + * @param {Number} start2 lower bound of the value's target range + * @param {Number} stop2 upper bound of the value's target range + * @param {Boolean} [withinBounds] constrain the value to the newly mapped range + * @return {Number} remapped number + * @example + *
+ * let value = 25; + * let m = map(value, 0, 100, 0, width); + * ellipse(m, 50, 10, 10); +
+ * + *
+ * function setup() { + * noStroke(); + * } + * + * function draw() { + * background(204); + * let x1 = map(mouseX, 0, width, 25, 75); + * ellipse(x1, 25, 25, 25); + * //This ellipse is constrained to the 0-100 range + * //after setting withinBounds to true + * let x2 = map(mouseX, 0, width, 0, 100, true); + * ellipse(x2, 75, 25, 25); + * } +
+ * + * @alt + * 10 by 10 white ellipse with in mid left canvas + * 2 25 by 25 white ellipses move with mouse x. Bottom has more range from X + * + */ + p5.prototype.map = function(n, start1, stop1, start2, stop2, withinBounds) { + p5._validateParameters('map', arguments); + var newval = (n - start1) / (stop1 - start1) * (stop2 - start2) + start2; + if (!withinBounds) { + return newval; + } + if (start2 < stop2) { + return this.constrain(newval, start2, stop2); + } else { + return this.constrain(newval, stop2, start2); + } + }; + + /** + * Determines the largest value in a sequence of numbers, and then returns + * that value. max() accepts any number of Number parameters, or an Array + * of any length. + * + * @method max + * @param {Number} n0 Number to compare + * @param {Number} n1 Number to compare + * @return {Number} maximum Number + * @example + *
+ * function setup() { + * // Change the elements in the array and run the sketch + * // to show how max() works! + * let numArray = [2, 1, 5, 4, 8, 9]; + * fill(0); + * noStroke(); + * text('Array Elements', 0, 10); + * // Draw all numbers in the array + * let spacing = 15; + * let elemsY = 25; + * for (let i = 0; i < numArray.length; i++) { + * text(numArray[i], i * spacing, elemsY); + * } + * let maxX = 33; + * let maxY = 80; + * // Draw the Maximum value in the array. + * textSize(32); + * text(max(numArray), maxX, maxY); + * } + *
+ * + * @alt + * Small text at top reads: Array Elements 2 1 5 4 8 9. Large text at center: 9 + * + */ + /** + * @method max + * @param {Number[]} nums Numbers to compare + * @return {Number} + */ + p5.prototype.max = function() { + p5._validateParameters('max', arguments); + if (arguments[0] instanceof Array) { + return Math.max.apply(null, arguments[0]); + } else { + return Math.max.apply(null, arguments); + } + }; + + /** + * Determines the smallest value in a sequence of numbers, and then returns + * that value. min() accepts any number of Number parameters, or an Array + * of any length. + * + * @method min + * @param {Number} n0 Number to compare + * @param {Number} n1 Number to compare + * @return {Number} minimum Number + * @example + *
+ * function setup() { + * // Change the elements in the array and run the sketch + * // to show how min() works! + * let numArray = [2, 1, 5, 4, 8, 9]; + * fill(0); + * noStroke(); + * text('Array Elements', 0, 10); + * // Draw all numbers in the array + * let spacing = 15; + * let elemsY = 25; + * for (let i = 0; i < numArray.length; i++) { + * text(numArray[i], i * spacing, elemsY); + * } + * let maxX = 33; + * let maxY = 80; + * // Draw the Minimum value in the array. + * textSize(32); + * text(min(numArray), maxX, maxY); + * } + *
+ * + * @alt + * Small text at top reads: Array Elements 2 1 5 4 8 9. Large text at center: 1 + * + */ + /** + * @method min + * @param {Number[]} nums Numbers to compare + * @return {Number} + */ + p5.prototype.min = function() { + p5._validateParameters('min', arguments); + if (arguments[0] instanceof Array) { + return Math.min.apply(null, arguments[0]); + } else { + return Math.min.apply(null, arguments); + } + }; + + /** + * Normalizes a number from another range into a value between 0 and 1. + * Identical to map(value, low, high, 0, 1). + * Numbers outside of the range are not clamped to 0 and 1, because + * out-of-range values are often intentional and useful. (See the example above.) + * + * @method norm + * @param {Number} value incoming value to be normalized + * @param {Number} start lower bound of the value's current range + * @param {Number} stop upper bound of the value's current range + * @return {Number} normalized number + * @example + *
+ * function draw() { + * background(200); + * let currentNum = mouseX; + * let lowerBound = 0; + * let upperBound = width; //100; + * let normalized = norm(currentNum, lowerBound, upperBound); + * let lineY = 70; + * stroke(3); + * line(0, lineY, width, lineY); + * //Draw an ellipse mapped to the non-normalized value. + * noStroke(); + * fill(50); + * let s = 7; // ellipse size + * ellipse(currentNum, lineY, s, s); + * + * // Draw the guide + * let guideY = lineY + 15; + * text('0', 0, guideY); + * textAlign(RIGHT); + * text('100', width, guideY); + * + * // Draw the normalized value + * textAlign(LEFT); + * fill(0); + * textSize(32); + * let normalY = 40; + * let normalX = 20; + * text(normalized, normalX, normalY); + * } + *
+ * + * @alt + * ellipse moves with mouse. 0 shown left & 100 right and updating values center + * + */ + p5.prototype.norm = function(n, start, stop) { + p5._validateParameters('norm', arguments); + return this.map(n, start, stop, 0, 1); + }; + + /** + * Facilitates exponential expressions. The pow() function is an efficient + * way of multiplying numbers by themselves (or their reciprocals) in large + * quantities. For example, pow(3, 5) is equivalent to the expression + * 3*3*3*3*3 and pow(3, -5) is equivalent to 1 / 3*3*3*3*3. Maps to + * Math.pow(). + * + * @method pow + * @param {Number} n base of the exponential expression + * @param {Number} e power by which to raise the base + * @return {Number} n^e + * @example + *
+ * function setup() { + * //Exponentially increase the size of an ellipse. + * let eSize = 3; // Original Size + * let eLoc = 10; // Original Location + * + * ellipse(eLoc, eLoc, eSize, eSize); + * + * ellipse(eLoc * 2, eLoc * 2, pow(eSize, 2), pow(eSize, 2)); + * + * ellipse(eLoc * 4, eLoc * 4, pow(eSize, 3), pow(eSize, 3)); + * + * ellipse(eLoc * 8, eLoc * 8, pow(eSize, 4), pow(eSize, 4)); + * } + *
+ * + * @alt + * small to large ellipses radiating from top left of canvas + * + */ + p5.prototype.pow = Math.pow; + + /** + * Calculates the integer closest to the n parameter. For example, + * round(133.8) returns the value 134. Maps to Math.round(). + * + * @method round + * @param {Number} n number to round + * @return {Integer} rounded number + * @example + *
+ * function draw() { + * background(200); + * //map, mouseX between 0 and 5. + * let ax = map(mouseX, 0, 100, 0, 5); + * let ay = 66; + * + * // Round the mapped number. + * let bx = round(map(mouseX, 0, 100, 0, 5)); + * let by = 33; + * + * // Multiply the mapped numbers by 20 to more easily + * // see the changes. + * stroke(0); + * fill(0); + * line(0, ay, ax * 20, ay); + * line(0, by, bx * 20, by); + * + * // Reformat the float returned by map and draw it. + * noStroke(); + * text(nfc(ax, 2), ax, ay - 5); + * text(nfc(bx, 1), bx, by - 5); + * } + *
+ * + * @alt + * horizontal center line squared values displayed on top and regular on bottom. + * + */ + p5.prototype.round = Math.round; + + /** + * Squares a number (multiplies a number by itself). The result is always a + * positive number, as multiplying two negative numbers always yields a + * positive result. For example, -1 * -1 = 1. + * + * @method sq + * @param {Number} n number to square + * @return {Number} squared number + * @example + *
+ * function draw() { + * background(200); + * let eSize = 7; + * let x1 = map(mouseX, 0, width, 0, 10); + * let y1 = 80; + * let x2 = sq(x1); + * let y2 = 20; + * + * // Draw the non-squared. + * line(0, y1, width, y1); + * ellipse(x1, y1, eSize, eSize); + * + * // Draw the squared. + * line(0, y2, width, y2); + * ellipse(x2, y2, eSize, eSize); + * + * // Draw dividing line. + * stroke(100); + * line(0, height / 2, width, height / 2); + * + * // Draw text. + * let spacing = 15; + * noStroke(); + * fill(0); + * text('x = ' + x1, 0, y1 + spacing); + * text('sq(x) = ' + x2, 0, y2 + spacing); + * } + *
+ * + * @alt + * horizontal center line squared values displayed on top and regular on bottom. + * + */ + p5.prototype.sq = function(n) { + return n * n; + }; + + /** + * Calculates the square root of a number. The square root of a number is + * always positive, even though there may be a valid negative root. The + * square root s of number a is such that s*s = a. It is the opposite of + * squaring. Maps to Math.sqrt(). + * + * @method sqrt + * @param {Number} n non-negative number to square root + * @return {Number} square root of number + * @example + *
+ * function draw() { + * background(200); + * let eSize = 7; + * let x1 = mouseX; + * let y1 = 80; + * let x2 = sqrt(x1); + * let y2 = 20; + * + * // Draw the non-squared. + * line(0, y1, width, y1); + * ellipse(x1, y1, eSize, eSize); + * + * // Draw the squared. + * line(0, y2, width, y2); + * ellipse(x2, y2, eSize, eSize); + * + * // Draw dividing line. + * stroke(100); + * line(0, height / 2, width, height / 2); + * + * // Draw text. + * noStroke(); + * fill(0); + * let spacing = 15; + * text('x = ' + x1, 0, y1 + spacing); + * text('sqrt(x) = ' + x2, 0, y2 + spacing); + * } + *
+ * + * @alt + * horizontal center line squareroot values displayed on top and regular on bottom. + * + */ + p5.prototype.sqrt = Math.sqrt; + + // Calculate the length of the hypotenuse of a right triangle + // This won't under- or overflow in intermediate steps + // https://en.wikipedia.org/wiki/Hypot + function hypot(x, y, z) { + // Use the native implementation if it's available + if (typeof Math.hypot === 'function') { + return Math.hypot.apply(null, arguments); + } + + // Otherwise use the V8 implementation + // https://github.com/v8/v8/blob/8cd3cf297287e581a49e487067f5cbd991b27123/src/js/math.js#L217 + var length = arguments.length; + var args = []; + var max = 0; + for (var i = 0; i < length; i++) { + var n = arguments[i]; + n = +n; + if (n === Infinity || n === -Infinity) { + return Infinity; + } + n = Math.abs(n); + if (n > max) { + max = n; + } + args[i] = n; + } + + if (max === 0) { + max = 1; + } + var sum = 0; + var compensation = 0; + for (var j = 0; j < length; j++) { + var m = args[j] / max; + var summand = m * m - compensation; + var preliminary = sum + summand; + compensation = preliminary - sum - summand; + sum = preliminary; + } + return Math.sqrt(sum) * max; + } + + module.exports = p5; + }, + { '../core/main': 24 } + ], + 53: [ + function(_dereq_, module, exports) { + /** + * @module Math + * @submodule Math + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + /** + * Creates a new p5.Vector (the datatype for storing vectors). This provides a + * two or three dimensional vector, specifically a Euclidean (also known as + * geometric) vector. A vector is an entity that has both magnitude and + * direction. + * + * @method createVector + * @param {Number} [x] x component of the vector + * @param {Number} [y] y component of the vector + * @param {Number} [z] z component of the vector + * @return {p5.Vector} + * @example + *
+ * function setup() { + * createCanvas(100, 100, WEBGL); + * noStroke(); + * fill(255, 102, 204); + * } + * + * function draw() { + * background(255); + * pointLight(color(255), createVector(sin(millis() / 1000) * 20, -40, -10)); + * scale(0.75); + * sphere(); + * } + *
+ * + * @alt + * a purple sphere lit by a point light oscillating horizontally + */ + p5.prototype.createVector = function(x, y, z) { + if (this instanceof p5) { + return new p5.Vector(this, arguments); + } else { + return new p5.Vector(x, y, z); + } + }; + + module.exports = p5; + }, + { '../core/main': 24 } + ], + 54: [ + function(_dereq_, module, exports) { + ////////////////////////////////////////////////////////////// + + // http://mrl.nyu.edu/~perlin/noise/ + // Adapting from PApplet.java + // which was adapted from toxi + // which was adapted from the german demo group farbrausch + // as used in their demo "art": http://www.farb-rausch.de/fr010src.zip + + // someday we might consider using "improved noise" + // http://mrl.nyu.edu/~perlin/paper445.pdf + // See: https://github.com/shiffman/The-Nature-of-Code-Examples-p5.js/ + // blob/master/introduction/Noise1D/noise.js + + /** + * @module Math + * @submodule Noise + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + var PERLIN_YWRAPB = 4; + var PERLIN_YWRAP = 1 << PERLIN_YWRAPB; + var PERLIN_ZWRAPB = 8; + var PERLIN_ZWRAP = 1 << PERLIN_ZWRAPB; + var PERLIN_SIZE = 4095; + + var perlin_octaves = 4; // default to medium smooth + var perlin_amp_falloff = 0.5; // 50% reduction/octave + + var scaled_cosine = function scaled_cosine(i) { + return 0.5 * (1.0 - Math.cos(i * Math.PI)); + }; + + var perlin; // will be initialized lazily by noise() or noiseSeed() + + /** + * Returns the Perlin noise value at specified coordinates. Perlin noise is + * a random sequence generator producing a more natural ordered, harmonic + * succession of numbers compared to the standard random() function. + * It was invented by Ken Perlin in the 1980s and been used since in + * graphical applications to produce procedural textures, natural motion, + * shapes, terrains etc.

The main difference to the + * random() function is that Perlin noise is defined in an infinite + * n-dimensional space where each pair of coordinates corresponds to a + * fixed semi-random value (fixed only for the lifespan of the program; see + * the noiseSeed() function). p5.js can compute 1D, 2D and 3D noise, + * depending on the number of coordinates given. The resulting value will + * always be between 0.0 and 1.0. The noise value can be animated by moving + * through the noise space as demonstrated in the example above. The 2nd + * and 3rd dimension can also be interpreted as time.

The actual + * noise is structured similar to an audio signal, in respect to the + * function's use of frequencies. Similar to the concept of harmonics in + * physics, perlin noise is computed over several octaves which are added + * together for the final result.

Another way to adjust the + * character of the resulting sequence is the scale of the input + * coordinates. As the function works within an infinite space the value of + * the coordinates doesn't matter as such, only the distance between + * successive coordinates does (eg. when using noise() within a + * loop). As a general rule the smaller the difference between coordinates, + * the smoother the resulting noise sequence will be. Steps of 0.005-0.03 + * work best for most applications, but this will differ depending on use. + * + * + * @method noise + * @param {Number} x x-coordinate in noise space + * @param {Number} [y] y-coordinate in noise space + * @param {Number} [z] z-coordinate in noise space + * @return {Number} Perlin noise value (between 0 and 1) at specified + * coordinates + * @example + *
+ * + * let xoff = 0.0; + * + * function draw() { + * background(204); + * xoff = xoff + 0.01; + * let n = noise(xoff) * width; + * line(n, 0, n, height); + * } + * + *
+ *
+ * let noiseScale=0.02; + * + * function draw() { + * background(0); + * for (let x=0; x < width; x++) { + * let noiseVal = noise((mouseX+x)*noiseScale, mouseY*noiseScale); + * stroke(noiseVal*255); + * line(x, mouseY+noiseVal*80, x, height); + * } + * } + * + *
+ * + * @alt + * vertical line moves left to right with updating noise values. + * horizontal wave pattern effected by mouse x-position & updating noise values. + * + */ + + p5.prototype.noise = function(x, y, z) { + y = y || 0; + z = z || 0; + + if (perlin == null) { + perlin = new Array(PERLIN_SIZE + 1); + for (var i = 0; i < PERLIN_SIZE + 1; i++) { + perlin[i] = Math.random(); + } + } + + if (x < 0) { + x = -x; + } + if (y < 0) { + y = -y; + } + if (z < 0) { + z = -z; + } + + var xi = Math.floor(x), + yi = Math.floor(y), + zi = Math.floor(z); + var xf = x - xi; + var yf = y - yi; + var zf = z - zi; + var rxf, ryf; + + var r = 0; + var ampl = 0.5; + + var n1, n2, n3; + + for (var o = 0; o < perlin_octaves; o++) { + var of = xi + (yi << PERLIN_YWRAPB) + (zi << PERLIN_ZWRAPB); + + rxf = scaled_cosine(xf); + ryf = scaled_cosine(yf); + + n1 = perlin[of & PERLIN_SIZE]; + n1 += rxf * (perlin[(of + 1) & PERLIN_SIZE] - n1); + n2 = perlin[(of + PERLIN_YWRAP) & PERLIN_SIZE]; + n2 += rxf * (perlin[(of + PERLIN_YWRAP + 1) & PERLIN_SIZE] - n2); + n1 += ryf * (n2 - n1); + + of += PERLIN_ZWRAP; + n2 = perlin[of & PERLIN_SIZE]; + n2 += rxf * (perlin[(of + 1) & PERLIN_SIZE] - n2); + n3 = perlin[(of + PERLIN_YWRAP) & PERLIN_SIZE]; + n3 += rxf * (perlin[(of + PERLIN_YWRAP + 1) & PERLIN_SIZE] - n3); + n2 += ryf * (n3 - n2); + + n1 += scaled_cosine(zf) * (n2 - n1); + + r += n1 * ampl; + ampl *= perlin_amp_falloff; + xi <<= 1; + xf *= 2; + yi <<= 1; + yf *= 2; + zi <<= 1; + zf *= 2; + + if (xf >= 1.0) { + xi++; + xf--; + } + if (yf >= 1.0) { + yi++; + yf--; + } + if (zf >= 1.0) { + zi++; + zf--; + } + } + return r; + }; + + /** + * + * Adjusts the character and level of detail produced by the Perlin noise + * function. Similar to harmonics in physics, noise is computed over + * several octaves. Lower octaves contribute more to the output signal and + * as such define the overall intensity of the noise, whereas higher octaves + * create finer grained details in the noise sequence. + *

+ * By default, noise is computed over 4 octaves with each octave contributing + * exactly half than its predecessor, starting at 50% strength for the 1st + * octave. This falloff amount can be changed by adding an additional function + * parameter. Eg. a falloff factor of 0.75 means each octave will now have + * 75% impact (25% less) of the previous lower octave. Any value between + * 0.0 and 1.0 is valid, however note that values greater than 0.5 might + * result in greater than 1.0 values returned by noise(). + *

+ * By changing these parameters, the signal created by the noise() + * function can be adapted to fit very specific needs and characteristics. + * + * @method noiseDetail + * @param {Number} lod number of octaves to be used by the noise + * @param {Number} falloff falloff factor for each octave + * @example + *
+ * + * let noiseVal; + * let noiseScale = 0.02; + * + * function setup() { + * createCanvas(100, 100); + * } + * + * function draw() { + * background(0); + * for (let y = 0; y < height; y++) { + * for (let x = 0; x < width / 2; x++) { + * noiseDetail(2, 0.2); + * noiseVal = noise((mouseX + x) * noiseScale, (mouseY + y) * noiseScale); + * stroke(noiseVal * 255); + * point(x, y); + * noiseDetail(8, 0.65); + * noiseVal = noise( + * (mouseX + x + width / 2) * noiseScale, + * (mouseY + y) * noiseScale + * ); + * stroke(noiseVal * 255); + * point(x + width / 2, y); + * } + * } + * } + * + *
+ * + * @alt + * 2 vertical grey smokey patterns affected my mouse x-position and noise. + * + */ + p5.prototype.noiseDetail = function(lod, falloff) { + if (lod > 0) { + perlin_octaves = lod; + } + if (falloff > 0) { + perlin_amp_falloff = falloff; + } + }; + + /** + * Sets the seed value for noise(). By default, noise() + * produces different results each time the program is run. Set the + * value parameter to a constant to return the same pseudo-random + * numbers each time the software is run. + * + * @method noiseSeed + * @param {Number} seed the seed value + * @example + *
+ * let xoff = 0.0; + * + * function setup() { + * noiseSeed(99); + * stroke(0, 10); + * } + * + * function draw() { + * xoff = xoff + .01; + * let n = noise(xoff) * width; + * line(n, 0, n, height); + * } + * + *
+ * + * @alt + * vertical grey lines drawing in pattern affected by noise. + * + */ + p5.prototype.noiseSeed = function(seed) { + // Linear Congruential Generator + // Variant of a Lehman Generator + var lcg = (function() { + // Set to values from http://en.wikipedia.org/wiki/Numerical_Recipes + // m is basically chosen to be large (as it is the max period) + // and for its relationships to a and c + var m = 4294967296; + // a - 1 should be divisible by m's prime factors + var a = 1664525; + // c and m should be co-prime + var c = 1013904223; + var seed, z; + return { + setSeed: function setSeed(val) { + // pick a random seed if val is undefined or null + // the >>> 0 casts the seed to an unsigned 32-bit integer + z = seed = (val == null ? Math.random() * m : val) >>> 0; + }, + getSeed: function getSeed() { + return seed; + }, + rand: function rand() { + // define the recurrence relationship + z = (a * z + c) % m; + // return a float in [0, 1) + // if z = m then z / m = 0 therefore (z % m) / m < 1 always + return z / m; + } + }; + })(); + + lcg.setSeed(seed); + perlin = new Array(PERLIN_SIZE + 1); + for (var i = 0; i < PERLIN_SIZE + 1; i++) { + perlin[i] = lcg.rand(); + } + }; + + module.exports = p5; + }, + { '../core/main': 24 } + ], + 55: [ + function(_dereq_, module, exports) { + /** + * @module Math + * @submodule Math + * @requires constants + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + var constants = _dereq_('../core/constants'); + + /** + * A class to describe a two or three dimensional vector, specifically + * a Euclidean (also known as geometric) vector. A vector is an entity + * that has both magnitude and direction. The datatype, however, stores + * the components of the vector (x, y for 2D, and x, y, z for 3D). The magnitude + * and direction can be accessed via the methods mag() and heading(). + *

+ * In many of the p5.js examples, you will see p5.Vector used to describe a + * position, velocity, or acceleration. For example, if you consider a rectangle + * moving across the screen, at any given instant it has a position (a vector + * that points from the origin to its location), a velocity (the rate at which + * the object's position changes per time unit, expressed as a vector), and + * acceleration (the rate at which the object's velocity changes per time + * unit, expressed as a vector). + *

+ * Since vectors represent groupings of values, we cannot simply use + * traditional addition/multiplication/etc. Instead, we'll need to do some + * "vector" math, which is made easy by the methods inside the p5.Vector class. + * + * @class p5.Vector + * @param {Number} [x] x component of the vector + * @param {Number} [y] y component of the vector + * @param {Number} [z] z component of the vector + * @example + *
+ * + * let v1 = createVector(40, 50); + * let v2 = createVector(40, 50); + * + * ellipse(v1.x, v1.y, 50, 50); + * ellipse(v2.x, v2.y, 50, 50); + * v1.add(v2); + * ellipse(v1.x, v1.y, 50, 50); + * + *
+ * + * @alt + * 2 white ellipses. One center-left the other bottom right and off canvas + * + */ + p5.Vector = function Vector() { + var x, y, z; + // This is how it comes in with createVector() + if (arguments[0] instanceof p5) { + // save reference to p5 if passed in + this.p5 = arguments[0]; + x = arguments[1][0] || 0; + y = arguments[1][1] || 0; + z = arguments[1][2] || 0; + // This is what we'll get with new p5.Vector() + } else { + x = arguments[0] || 0; + y = arguments[1] || 0; + z = arguments[2] || 0; + } + /** + * The x component of the vector + * @property x {Number} + */ + this.x = x; + /** + * The y component of the vector + * @property y {Number} + */ + this.y = y; + /** + * The z component of the vector + * @property z {Number} + */ + this.z = z; + }; + + /** + * Returns a string representation of a vector v by calling String(v) + * or v.toString(). This method is useful for logging vectors in the + * console. + * @method toString + * @return {String} + * @example + *
+ * + * function setup() { + * let v = createVector(20, 30); + * print(String(v)); // prints "p5.Vector Object : [20, 30, 0]" + * } + * + *
+ * + *
+ * + * function draw() { + * background(240); + * + * let v0 = createVector(0, 0); + * let v1 = createVector(mouseX, mouseY); + * drawArrow(v0, v1, 'black'); + * + * noStroke(); + * text(v1.toString(), 10, 25, 90, 75); + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ */ + p5.Vector.prototype.toString = function p5VectorToString() { + return 'p5.Vector Object : [' + this.x + ', ' + this.y + ', ' + this.z + ']'; + }; + + /** + * Sets the x, y, and z component of the vector using two or three separate + * variables, the data from a p5.Vector, or the values from a float array. + * @method set + * @param {Number} [x] the x component of the vector + * @param {Number} [y] the y component of the vector + * @param {Number} [z] the z component of the vector + * @chainable + * @example + *
+ * + * function setup() { + * let v = createVector(1, 2, 3); + * v.set(4, 5, 6); // Sets vector to [4, 5, 6] + * + * let v1 = createVector(0, 0, 0); + * let arr = [1, 2, 3]; + * v1.set(arr); // Sets vector to [1, 2, 3] + * } + * + *
+ * + *
+ * + * let v0, v1; + * function setup() { + * createCanvas(100, 100); + * + * v0 = createVector(0, 0); + * v1 = createVector(50, 50); + * } + * + * function draw() { + * background(240); + * + * drawArrow(v0, v1, 'black'); + * v1.set(v1.x + random(-1, 1), v1.y + random(-1, 1)); + * + * noStroke(); + * text('x: ' + round(v1.x) + ' y: ' + round(v1.y), 20, 90); + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ */ + /** + * @method set + * @param {p5.Vector|Number[]} value the vector to set + * @chainable + */ + p5.Vector.prototype.set = function set(x, y, z) { + if (x instanceof p5.Vector) { + this.x = x.x || 0; + this.y = x.y || 0; + this.z = x.z || 0; + return this; + } + if (x instanceof Array) { + this.x = x[0] || 0; + this.y = x[1] || 0; + this.z = x[2] || 0; + return this; + } + this.x = x || 0; + this.y = y || 0; + this.z = z || 0; + return this; + }; + + /** + * Gets a copy of the vector, returns a p5.Vector object. + * + * @method copy + * @return {p5.Vector} the copy of the p5.Vector object + * @example + *
+ * + * let v1 = createVector(1, 2, 3); + * let v2 = v1.copy(); + * print(v1.x === v2.x && v1.y === v2.y && v1.z === v2.z); + * // Prints "true" + * + *
+ */ + p5.Vector.prototype.copy = function copy() { + if (this.p5) { + return new p5.Vector(this.p5, [this.x, this.y, this.z]); + } else { + return new p5.Vector(this.x, this.y, this.z); + } + }; + + /** + * Adds x, y, and z components to a vector, adds one vector to another, or + * adds two independent vectors together. The version of the method that adds + * two vectors together is a static method and returns a p5.Vector, the others + * acts directly on the vector. See the examples for more context. + * + * @method add + * @param {Number} x the x component of the vector to be added + * @param {Number} [y] the y component of the vector to be added + * @param {Number} [z] the z component of the vector to be added + * @chainable + * @example + *
+ * + * let v = createVector(1, 2, 3); + * v.add(4, 5, 6); + * // v's components are set to [5, 7, 9] + * + *
+ * + *
+ * + * // Static method + * let v1 = createVector(1, 2, 3); + * let v2 = createVector(2, 3, 4); + * + * let v3 = p5.Vector.add(v1, v2); + * // v3 has components [3, 5, 7] + * print(v3); + * + *
+ * + *
+ * + * // red vector + blue vector = purple vector + * function draw() { + * background(240); + * + * let v0 = createVector(0, 0); + * let v1 = createVector(mouseX, mouseY); + * drawArrow(v0, v1, 'red'); + * + * let v2 = createVector(-30, 20); + * drawArrow(v1, v2, 'blue'); + * + * let v3 = p5.Vector.add(v1, v2); + * drawArrow(v0, v3, 'purple'); + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ */ + /** + * @method add + * @param {p5.Vector|Number[]} value the vector to add + * @chainable + */ + p5.Vector.prototype.add = function add(x, y, z) { + if (x instanceof p5.Vector) { + this.x += x.x || 0; + this.y += x.y || 0; + this.z += x.z || 0; + return this; + } + if (x instanceof Array) { + this.x += x[0] || 0; + this.y += x[1] || 0; + this.z += x[2] || 0; + return this; + } + this.x += x || 0; + this.y += y || 0; + this.z += z || 0; + return this; + }; + + /** + * Subtracts x, y, and z components from a vector, subtracts one vector from + * another, or subtracts two independent vectors. The version of the method + * that subtracts two vectors is a static method and returns a p5.Vector, the + * other acts directly on the vector. See the examples for more context. + * + * @method sub + * @param {Number} x the x component of the vector to subtract + * @param {Number} [y] the y component of the vector to subtract + * @param {Number} [z] the z component of the vector to subtract + * @chainable + * @example + *
+ * + * let v = createVector(4, 5, 6); + * v.sub(1, 1, 1); + * // v's components are set to [3, 4, 5] + * + *
+ * + *
+ * + * // Static method + * let v1 = createVector(2, 3, 4); + * let v2 = createVector(1, 2, 3); + * + * let v3 = p5.Vector.sub(v1, v2); + * // v3 has components [1, 1, 1] + * print(v3); + * + *
+ * + *
+ * + * // red vector - blue vector = purple vector + * function draw() { + * background(240); + * + * let v0 = createVector(0, 0); + * let v1 = createVector(70, 50); + * drawArrow(v0, v1, 'red'); + * + * let v2 = createVector(mouseX, mouseY); + * drawArrow(v0, v2, 'blue'); + * + * let v3 = p5.Vector.sub(v1, v2); + * drawArrow(v2, v3, 'purple'); + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ */ + /** + * @method sub + * @param {p5.Vector|Number[]} value the vector to subtract + * @chainable + */ + p5.Vector.prototype.sub = function sub(x, y, z) { + if (x instanceof p5.Vector) { + this.x -= x.x || 0; + this.y -= x.y || 0; + this.z -= x.z || 0; + return this; + } + if (x instanceof Array) { + this.x -= x[0] || 0; + this.y -= x[1] || 0; + this.z -= x[2] || 0; + return this; + } + this.x -= x || 0; + this.y -= y || 0; + this.z -= z || 0; + return this; + }; + + /** + * Multiply the vector by a scalar. The static version of this method + * creates a new p5.Vector while the non static version acts on the vector + * directly. See the examples for more context. + * + * @method mult + * @param {Number} n the number to multiply with the vector + * @chainable + * @example + *
+ * + * let v = createVector(1, 2, 3); + * v.mult(2); + * // v's components are set to [2, 4, 6] + * + *
+ * + *
+ * + * // Static method + * let v1 = createVector(1, 2, 3); + * let v2 = p5.Vector.mult(v1, 2); + * // v2 has components [2, 4, 6] + * print(v2); + * + *
+ * + *
+ * + * function draw() { + * background(240); + * + * let v0 = createVector(50, 50); + * let v1 = createVector(25, -25); + * drawArrow(v0, v1, 'red'); + * + * let num = map(mouseX, 0, width, -2, 2, true); + * let v2 = p5.Vector.mult(v1, num); + * drawArrow(v0, v2, 'blue'); + * + * noStroke(); + * text('multiplied by ' + num.toFixed(2), 5, 90); + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ */ + p5.Vector.prototype.mult = function mult(n) { + if (!(typeof n === 'number' && isFinite(n))) { + console.warn( + 'p5.Vector.prototype.mult:', + 'n is undefined or not a finite number' + ); + + return this; + } + this.x *= n; + this.y *= n; + this.z *= n; + return this; + }; + + /** + * Divide the vector by a scalar. The static version of this method creates a + * new p5.Vector while the non static version acts on the vector directly. + * See the examples for more context. + * + * @method div + * @param {number} n the number to divide the vector by + * @chainable + * @example + *
+ * + * let v = createVector(6, 4, 2); + * v.div(2); //v's components are set to [3, 2, 1] + * + *
+ * + *
+ * + * // Static method + * let v1 = createVector(6, 4, 2); + * let v2 = p5.Vector.div(v1, 2); + * // v2 has components [3, 2, 1] + * print(v2); + * + *
+ * + *
+ * + * function draw() { + * background(240); + * + * let v0 = createVector(0, 100); + * let v1 = createVector(50, -50); + * drawArrow(v0, v1, 'red'); + * + * let num = map(mouseX, 0, width, 10, 0.5, true); + * let v2 = p5.Vector.div(v1, num); + * drawArrow(v0, v2, 'blue'); + * + * noStroke(); + * text('divided by ' + num.toFixed(2), 10, 90); + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ */ + p5.Vector.prototype.div = function div(n) { + if (!(typeof n === 'number' && isFinite(n))) { + console.warn( + 'p5.Vector.prototype.div:', + 'n is undefined or not a finite number' + ); + + return this; + } + if (n === 0) { + console.warn('p5.Vector.prototype.div:', 'divide by 0'); + return this; + } + this.x /= n; + this.y /= n; + this.z /= n; + return this; + }; + + /** + * Calculates the magnitude (length) of the vector and returns the result as + * a float (this is simply the equation sqrt(x*x + y*y + z*z).) + * + * @method mag + * @return {Number} magnitude of the vector + * @example + *
+ * + * function draw() { + * background(240); + * + * let v0 = createVector(0, 0); + * let v1 = createVector(mouseX, mouseY); + * drawArrow(v0, v1, 'black'); + * + * noStroke(); + * text('vector length: ' + v1.mag().toFixed(2), 10, 70, 90, 30); + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ *
+ * + * let v = createVector(20.0, 30.0, 40.0); + * let m = v.mag(); + * print(m); // Prints "53.85164807134504" + * + *
+ */ + p5.Vector.prototype.mag = function mag() { + return Math.sqrt(this.magSq()); + }; + + /** + * Calculates the squared magnitude of the vector and returns the result + * as a float (this is simply the equation (x*x + y*y + z*z).) + * Faster if the real length is not required in the + * case of comparing vectors, etc. + * + * @method magSq + * @return {number} squared magnitude of the vector + * @example + *
+ * + * // Static method + * let v1 = createVector(6, 4, 2); + * print(v1.magSq()); // Prints "56" + * + *
+ * + *
+ * + * function draw() { + * background(240); + * + * let v0 = createVector(0, 0); + * let v1 = createVector(mouseX, mouseY); + * drawArrow(v0, v1, 'black'); + * + * noStroke(); + * text('vector length squared: ' + v1.magSq().toFixed(2), 10, 45, 90, 55); + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ */ + p5.Vector.prototype.magSq = function magSq() { + var x = this.x; + var y = this.y; + var z = this.z; + return x * x + y * y + z * z; + }; + + /** + * Calculates the dot product of two vectors. The version of the method + * that computes the dot product of two independent vectors is a static + * method. See the examples for more context. + * + * + * @method dot + * @param {Number} x x component of the vector + * @param {Number} [y] y component of the vector + * @param {Number} [z] z component of the vector + * @return {Number} the dot product + * + * @example + *
+ * + * let v1 = createVector(1, 2, 3); + * let v2 = createVector(2, 3, 4); + * + * print(v1.dot(v2)); // Prints "20" + * + *
+ * + *
+ * + * //Static method + * let v1 = createVector(1, 2, 3); + * let v2 = createVector(3, 2, 1); + * print(p5.Vector.dot(v1, v2)); // Prints "10" + * + *
+ */ + /** + * @method dot + * @param {p5.Vector} value value component of the vector or a p5.Vector + * @return {Number} + */ + p5.Vector.prototype.dot = function dot(x, y, z) { + if (x instanceof p5.Vector) { + return this.dot(x.x, x.y, x.z); + } + return this.x * (x || 0) + this.y * (y || 0) + this.z * (z || 0); + }; + + /** + * Calculates and returns a vector composed of the cross product between + * two vectors. Both the static and non static methods return a new p5.Vector. + * See the examples for more context. + * + * @method cross + * @param {p5.Vector} v p5.Vector to be crossed + * @return {p5.Vector} p5.Vector composed of cross product + * @example + *
+ * + * let v1 = createVector(1, 2, 3); + * let v2 = createVector(1, 2, 3); + * + * v1.cross(v2); // v's components are [0, 0, 0] + * + *
+ * + *
+ * + * // Static method + * let v1 = createVector(1, 0, 0); + * let v2 = createVector(0, 1, 0); + * + * let crossProduct = p5.Vector.cross(v1, v2); + * // crossProduct has components [0, 0, 1] + * print(crossProduct); + * + *
+ */ + p5.Vector.prototype.cross = function cross(v) { + var x = this.y * v.z - this.z * v.y; + var y = this.z * v.x - this.x * v.z; + var z = this.x * v.y - this.y * v.x; + if (this.p5) { + return new p5.Vector(this.p5, [x, y, z]); + } else { + return new p5.Vector(x, y, z); + } + }; + + /** + * Calculates the Euclidean distance between two points (considering a + * point as a vector object). + * + * @method dist + * @param {p5.Vector} v the x, y, and z coordinates of a p5.Vector + * @return {Number} the distance + * @example + *
+ * + * let v1 = createVector(1, 0, 0); + * let v2 = createVector(0, 1, 0); + * + * let distance = v1.dist(v2); // distance is 1.4142... + * print(distance); + * + *
+ * + *
+ * + * // Static method + * let v1 = createVector(1, 0, 0); + * let v2 = createVector(0, 1, 0); + * + * let distance = p5.Vector.dist(v1, v2); + * // distance is 1.4142... + * print(distance); + * + *
+ * + *
+ * + * function draw() { + * background(240); + * + * let v0 = createVector(0, 0); + * + * let v1 = createVector(70, 50); + * drawArrow(v0, v1, 'red'); + * + * let v2 = createVector(mouseX, mouseY); + * drawArrow(v0, v2, 'blue'); + * + * noStroke(); + * text('distance between vectors: ' + v2.dist(v1).toFixed(2), 5, 50, 95, 50); + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ */ + p5.Vector.prototype.dist = function dist(v) { + return v + .copy() + .sub(this) + .mag(); + }; + + /** + * Normalize the vector to length 1 (make it a unit vector). + * + * @method normalize + * @return {p5.Vector} normalized p5.Vector + * @example + *
+ * + * let v = createVector(10, 20, 2); + * // v has components [10.0, 20.0, 2.0] + * v.normalize(); + * // v's components are set to + * // [0.4454354, 0.8908708, 0.089087084] + * + *
+ *
+ * + * function draw() { + * background(240); + * + * let v0 = createVector(50, 50); + * let v1 = createVector(mouseX - 50, mouseY - 50); + * + * drawArrow(v0, v1, 'red'); + * v1.normalize(); + * drawArrow(v0, v1.mult(35), 'blue'); + * + * noFill(); + * ellipse(50, 50, 35 * 2); + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ */ + p5.Vector.prototype.normalize = function normalize() { + var len = this.mag(); + // here we multiply by the reciprocal instead of calling 'div()' + // since div duplicates this zero check. + if (len !== 0) this.mult(1 / len); + return this; + }; + + /** + * Limit the magnitude of this vector to the value used for the max + * parameter. + * + * @method limit + * @param {Number} max the maximum magnitude for the vector + * @chainable + * @example + *
+ * + * let v = createVector(10, 20, 2); + * // v has components [10.0, 20.0, 2.0] + * v.limit(5); + * // v's components are set to + * // [2.2271771, 4.4543543, 0.4454354] + * + *
+ *
+ * + * function draw() { + * background(240); + * + * let v0 = createVector(50, 50); + * let v1 = createVector(mouseX - 50, mouseY - 50); + * + * drawArrow(v0, v1, 'red'); + * drawArrow(v0, v1.limit(35), 'blue'); + * + * noFill(); + * ellipse(50, 50, 35 * 2); + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ */ + p5.Vector.prototype.limit = function limit(max) { + var mSq = this.magSq(); + if (mSq > max * max) { + this.div(Math.sqrt(mSq)) //normalize it + .mult(max); + } + return this; + }; + + /** + * Set the magnitude of this vector to the value used for the len + * parameter. + * + * @method setMag + * @param {number} len the new length for this vector + * @chainable + * @example + *
+ * + * let v = createVector(10, 20, 2); + * // v has components [10.0, 20.0, 2.0] + * v.setMag(10); + * // v's components are set to [6.0, 8.0, 0.0] + * + *
+ * + *
+ * + * function draw() { + * background(240); + * + * let v0 = createVector(0, 0); + * let v1 = createVector(50, 50); + * + * drawArrow(v0, v1, 'red'); + * + * let length = map(mouseX, 0, width, 0, 141, true); + * v1.setMag(length); + * drawArrow(v0, v1, 'blue'); + * + * noStroke(); + * text('magnitude set to: ' + length.toFixed(2), 10, 70, 90, 30); + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ */ + p5.Vector.prototype.setMag = function setMag(n) { + return this.normalize().mult(n); + }; + + /** + * Calculate the angle of rotation for this vector (only 2D vectors) + * + * @method heading + * @return {Number} the angle of rotation + * @example + *
+ * + * function setup() { + * let v1 = createVector(30, 50); + * print(v1.heading()); // 1.0303768265243125 + * + * v1 = createVector(40, 50); + * print(v1.heading()); // 0.8960553845713439 + * + * v1 = createVector(30, 70); + * print(v1.heading()); // 1.1659045405098132 + * } + * + *
+ * + *
+ * + * function draw() { + * background(240); + * + * let v0 = createVector(50, 50); + * let v1 = createVector(mouseX - 50, mouseY - 50); + * + * drawArrow(v0, v1, 'black'); + * + * let myHeading = v1.heading(); + * noStroke(); + * text( + * 'vector heading: ' + + * myHeading.toFixed(2) + + * ' radians or ' + + * degrees(myHeading).toFixed(2) + + * ' degrees', + * 10, + * 50, + * 90, + * 50 + * ); + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ */ + p5.Vector.prototype.heading = function heading() { + var h = Math.atan2(this.y, this.x); + if (this.p5) return this.p5._fromRadians(h); + return h; + }; + + /** + * Rotate the vector by an angle (only 2D vectors), magnitude remains the + * same + * + * @method rotate + * @param {number} angle the angle of rotation + * @chainable + * @example + *
+ * + * let v = createVector(10.0, 20.0); + * // v has components [10.0, 20.0, 0.0] + * v.rotate(HALF_PI); + * // v's components are set to [-20.0, 9.999999, 0.0] + * + *
+ * + *
+ * + * let angle = 0; + * function draw() { + * background(240); + * + * let v0 = createVector(50, 50); + * let v1 = createVector(50, 0); + * + * drawArrow(v0, v1.rotate(angle), 'black'); + * angle += 0.01; + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ */ + p5.Vector.prototype.rotate = function rotate(a) { + var newHeading = this.heading() + a; + if (this.p5) newHeading = this.p5._toRadians(newHeading); + var mag = this.mag(); + this.x = Math.cos(newHeading) * mag; + this.y = Math.sin(newHeading) * mag; + return this; + }; + + /** + * Calculates and returns the angle (in radians) between two vectors. + * @method angleBetween + * @param {p5.Vector} value the x, y, and z components of a p5.Vector + * @return {Number} the angle between (in radians) + * @example + *
+ * + * let v1 = createVector(1, 0, 0); + * let v2 = createVector(0, 1, 0); + * + * let angle = v1.angleBetween(v2); + * // angle is PI/2 + * print(angle); + * + *
+ * + *
+ * + * function draw() { + * background(240); + * let v0 = createVector(50, 50); + * + * let v1 = createVector(50, 0); + * drawArrow(v0, v1, 'red'); + * + * let v2 = createVector(mouseX - 50, mouseY - 50); + * drawArrow(v0, v2, 'blue'); + * + * let angleBetween = v1.angleBetween(v2); + * noStroke(); + * text( + * 'angle between: ' + + * angleBetween.toFixed(2) + + * ' radians or ' + + * degrees(angleBetween).toFixed(2) + + * ' degrees', + * 10, + * 50, + * 90, + * 50 + * ); + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ */ + p5.Vector.prototype.angleBetween = function angleBetween(v) { + var dotmagmag = this.dot(v) / (this.mag() * v.mag()); + // Mathematically speaking: the dotmagmag variable will be between -1 and 1 + // inclusive. Practically though it could be slightly outside this range due + // to floating-point rounding issues. This can make Math.acos return NaN. + // + // Solution: we'll clamp the value to the -1,1 range + var angle = Math.acos(Math.min(1, Math.max(-1, dotmagmag))); + if (this.p5) return this.p5._fromRadians(angle); + return angle; + }; + + /** + * Linear interpolate the vector to another vector + * + * @method lerp + * @param {Number} x the x component + * @param {Number} y the y component + * @param {Number} z the z component + * @param {Number} amt the amount of interpolation; some value between 0.0 + * (old vector) and 1.0 (new vector). 0.9 is very near + * the new vector. 0.5 is halfway in between. + * @chainable + * + * @example + *
+ * + * let v = createVector(1, 1, 0); + * + * v.lerp(3, 3, 0, 0.5); // v now has components [2,2,0] + * + *
+ * + *
+ * + * let v1 = createVector(0, 0, 0); + * let v2 = createVector(100, 100, 0); + * + * let v3 = p5.Vector.lerp(v1, v2, 0.5); + * // v3 has components [50,50,0] + * print(v3); + * + *
+ * + *
+ * + * let step = 0.01; + * let amount = 0; + * + * function draw() { + * background(240); + * let v0 = createVector(0, 0); + * + * let v1 = createVector(mouseX, mouseY); + * drawArrow(v0, v1, 'red'); + * + * let v2 = createVector(90, 90); + * drawArrow(v0, v2, 'blue'); + * + * if (amount > 1 || amount < 0) { + * step *= -1; + * } + * amount += step; + * let v3 = p5.Vector.lerp(v1, v2, amount); + * + * drawArrow(v0, v3, 'purple'); + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ */ + /** + * @method lerp + * @param {p5.Vector} v the p5.Vector to lerp to + * @param {Number} amt + * @chainable + */ + p5.Vector.prototype.lerp = function lerp(x, y, z, amt) { + if (x instanceof p5.Vector) { + return this.lerp(x.x, x.y, x.z, y); + } + this.x += (x - this.x) * amt || 0; + this.y += (y - this.y) * amt || 0; + this.z += (z - this.z) * amt || 0; + return this; + }; + + /** + * Return a representation of this vector as a float array. This is only + * for temporary use. If used in any other fashion, the contents should be + * copied by using the p5.Vector.copy() method to copy into your own + * array. + * + * @method array + * @return {Number[]} an Array with the 3 values + * @example + *
+ * + * function setup() { + * let v = createVector(20, 30); + * print(v.array()); // Prints : Array [20, 30, 0] + * } + * + *
+ * + *
+ * + * let v = createVector(10.0, 20.0, 30.0); + * let f = v.array(); + * print(f[0]); // Prints "10.0" + * print(f[1]); // Prints "20.0" + * print(f[2]); // Prints "30.0" + * + *
+ */ + p5.Vector.prototype.array = function array() { + return [this.x || 0, this.y || 0, this.z || 0]; + }; + + /** + * Equality check against a p5.Vector + * + * @method equals + * @param {Number} [x] the x component of the vector + * @param {Number} [y] the y component of the vector + * @param {Number} [z] the z component of the vector + * @return {Boolean} whether the vectors are equals + * @example + *
+ * + * let v1 = createVector(5, 10, 20); + * let v2 = createVector(5, 10, 20); + * let v3 = createVector(13, 10, 19); + * + * print(v1.equals(v2.x, v2.y, v2.z)); // true + * print(v1.equals(v3.x, v3.y, v3.z)); // false + * + *
+ * + *
+ * + * let v1 = createVector(10.0, 20.0, 30.0); + * let v2 = createVector(10.0, 20.0, 30.0); + * let v3 = createVector(0.0, 0.0, 0.0); + * print(v1.equals(v2)); // true + * print(v1.equals(v3)); // false + * + *
+ */ + /** + * @method equals + * @param {p5.Vector|Array} value the vector to compare + * @return {Boolean} + */ + p5.Vector.prototype.equals = function equals(x, y, z) { + var a, b, c; + if (x instanceof p5.Vector) { + a = x.x || 0; + b = x.y || 0; + c = x.z || 0; + } else if (x instanceof Array) { + a = x[0] || 0; + b = x[1] || 0; + c = x[2] || 0; + } else { + a = x || 0; + b = y || 0; + c = z || 0; + } + return this.x === a && this.y === b && this.z === c; + }; + + // Static Methods + + /** + * Make a new 2D vector from an angle + * + * @method fromAngle + * @static + * @param {Number} angle the desired angle, in radians (unaffected by angleMode) + * @param {Number} [length] the length of the new vector (defaults to 1) + * @return {p5.Vector} the new p5.Vector object + * @example + *
+ * + * function draw() { + * background(200); + * + * // Create a variable, proportional to the mouseX, + * // varying from 0-360, to represent an angle in degrees. + * let myDegrees = map(mouseX, 0, width, 0, 360); + * + * // Display that variable in an onscreen text. + * // (Note the nfc() function to truncate additional decimal places, + * // and the "\xB0" character for the degree symbol.) + * let readout = 'angle = ' + nfc(myDegrees, 1) + '\xB0'; + * noStroke(); + * fill(0); + * text(readout, 5, 15); + * + * // Create a p5.Vector using the fromAngle function, + * // and extract its x and y components. + * let v = p5.Vector.fromAngle(radians(myDegrees), 30); + * let vx = v.x; + * let vy = v.y; + * + * push(); + * translate(width / 2, height / 2); + * noFill(); + * stroke(150); + * line(0, 0, 30, 0); + * stroke(0); + * line(0, 0, vx, vy); + * pop(); + * } + * + *
+ */ + p5.Vector.fromAngle = function fromAngle(angle, length) { + if (typeof length === 'undefined') { + length = 1; + } + return new p5.Vector(length * Math.cos(angle), length * Math.sin(angle), 0); + }; + + /** + * Make a new 3D vector from a pair of ISO spherical angles + * + * @method fromAngles + * @static + * @param {Number} theta the polar angle, in radians (zero is up) + * @param {Number} phi the azimuthal angle, in radians + * (zero is out of the screen) + * @param {Number} [length] the length of the new vector (defaults to 1) + * @return {p5.Vector} the new p5.Vector object + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * fill(255); + * noStroke(); + * } + * function draw() { + * background(255); + * + * let t = millis() / 1000; + * + * // add three point lights + * pointLight(color('#f00'), p5.Vector.fromAngles(t * 1.0, t * 1.3, 100)); + * pointLight(color('#0f0'), p5.Vector.fromAngles(t * 1.1, t * 1.2, 100)); + * pointLight(color('#00f'), p5.Vector.fromAngles(t * 1.2, t * 1.1, 100)); + * + * sphere(35); + * } + * + *
+ */ + p5.Vector.fromAngles = function(theta, phi, length) { + if (typeof length === 'undefined') { + length = 1; + } + var cosPhi = Math.cos(phi); + var sinPhi = Math.sin(phi); + var cosTheta = Math.cos(theta); + var sinTheta = Math.sin(theta); + + return new p5.Vector( + length * sinTheta * sinPhi, + -length * cosTheta, + length * sinTheta * cosPhi + ); + }; + + /** + * Make a new 2D unit vector from a random angle + * + * @method random2D + * @static + * @return {p5.Vector} the new p5.Vector object + * @example + *
+ * + * let v = p5.Vector.random2D(); + * // May make v's attributes something like: + * // [0.61554617, -0.51195765, 0.0] or + * // [-0.4695841, -0.14366731, 0.0] or + * // [0.6091097, -0.22805278, 0.0] + * print(v); + * + *
+ * + *
+ * + * function setup() { + * frameRate(1); + * } + * + * function draw() { + * background(240); + * + * let v0 = createVector(50, 50); + * let v1 = p5.Vector.random2D(); + * drawArrow(v0, v1.mult(50), 'black'); + * } + * + * // draw an arrow for a vector at a given base position + * function drawArrow(base, vec, myColor) { + * push(); + * stroke(myColor); + * strokeWeight(3); + * fill(myColor); + * translate(base.x, base.y); + * line(0, 0, vec.x, vec.y); + * rotate(vec.heading()); + * let arrowSize = 7; + * translate(vec.mag() - arrowSize, 0); + * triangle(0, arrowSize / 2, 0, -arrowSize / 2, arrowSize, 0); + * pop(); + * } + * + *
+ */ + p5.Vector.random2D = function random2D() { + return this.fromAngle(Math.random() * constants.TWO_PI); + }; + + /** + * Make a new random 3D unit vector. + * + * @method random3D + * @static + * @return {p5.Vector} the new p5.Vector object + * @example + *
+ * + * let v = p5.Vector.random3D(); + * // May make v's attributes something like: + * // [0.61554617, -0.51195765, 0.599168] or + * // [-0.4695841, -0.14366731, -0.8711202] or + * // [0.6091097, -0.22805278, -0.7595902] + * print(v); + * + *
+ */ + p5.Vector.random3D = function random3D() { + var angle = Math.random() * constants.TWO_PI; + var vz = Math.random() * 2 - 1; + var vzBase = Math.sqrt(1 - vz * vz); + var vx = vzBase * Math.cos(angle); + var vy = vzBase * Math.sin(angle); + return new p5.Vector(vx, vy, vz); + }; + + // Adds two vectors together and returns a new one. + /** + * @method add + * @static + * @param {p5.Vector} v1 a p5.Vector to add + * @param {p5.Vector} v2 a p5.Vector to add + * @param {p5.Vector} target the vector to receive the result + */ + /** + * @method add + * @static + * @param {p5.Vector} v1 + * @param {p5.Vector} v2 + * @return {p5.Vector} the resulting p5.Vector + * + */ + + p5.Vector.add = function add(v1, v2, target) { + if (!target) { + target = v1.copy(); + } else { + target.set(v1); + } + target.add(v2); + return target; + }; + + /* + * Subtracts one p5.Vector from another and returns a new one. The second + * vector (v2) is subtracted from the first (v1), resulting in v1-v2. + */ + /** + * @method sub + * @static + * @param {p5.Vector} v1 a p5.Vector to subtract from + * @param {p5.Vector} v2 a p5.Vector to subtract + * @param {p5.Vector} target if undefined a new vector will be created + */ + /** + * @method sub + * @static + * @param {p5.Vector} v1 + * @param {p5.Vector} v2 + * @return {p5.Vector} the resulting p5.Vector + */ + + p5.Vector.sub = function sub(v1, v2, target) { + if (!target) { + target = v1.copy(); + } else { + target.set(v1); + } + target.sub(v2); + return target; + }; + + /** + * Multiplies a vector by a scalar and returns a new vector. + */ + /** + * @method mult + * @static + * @param {p5.Vector} v the vector to multiply + * @param {Number} n + * @param {p5.Vector} target if undefined a new vector will be created + */ + /** + * @method mult + * @static + * @param {p5.Vector} v + * @param {Number} n + * @return {p5.Vector} the resulting new p5.Vector + */ + p5.Vector.mult = function mult(v, n, target) { + if (!target) { + target = v.copy(); + } else { + target.set(v); + } + target.mult(n); + return target; + }; + + /** + * Divides a vector by a scalar and returns a new vector. + */ + /** + * @method div + * @static + * @param {p5.Vector} v the vector to divide + * @param {Number} n + * @param {p5.Vector} target if undefined a new vector will be created + */ + /** + * @method div + * @static + * @param {p5.Vector} v + * @param {Number} n + * @return {p5.Vector} the resulting new p5.Vector + */ + p5.Vector.div = function div(v, n, target) { + if (!target) { + target = v.copy(); + } else { + target.set(v); + } + target.div(n); + return target; + }; + + /** + * Calculates the dot product of two vectors. + */ + /** + * @method dot + * @static + * @param {p5.Vector} v1 the first p5.Vector + * @param {p5.Vector} v2 the second p5.Vector + * @return {Number} the dot product + */ + p5.Vector.dot = function dot(v1, v2) { + return v1.dot(v2); + }; + + /** + * Calculates the cross product of two vectors. + */ + /** + * @method cross + * @static + * @param {p5.Vector} v1 the first p5.Vector + * @param {p5.Vector} v2 the second p5.Vector + * @return {Number} the cross product + */ + p5.Vector.cross = function cross(v1, v2) { + return v1.cross(v2); + }; + + /** + * Calculates the Euclidean distance between two points (considering a + * point as a vector object). + */ + /** + * @method dist + * @static + * @param {p5.Vector} v1 the first p5.Vector + * @param {p5.Vector} v2 the second p5.Vector + * @return {Number} the distance + */ + p5.Vector.dist = function dist(v1, v2) { + return v1.dist(v2); + }; + + /** + * Linear interpolate a vector to another vector and return the result as a + * new vector. + */ + /** + * @method lerp + * @static + * @param {p5.Vector} v1 + * @param {p5.Vector} v2 + * @param {Number} amt + * @param {p5.Vector} target if undefined a new vector will be created + */ + /** + * @method lerp + * @static + * @param {p5.Vector} v1 + * @param {p5.Vector} v2 + * @param {Number} amt + * @return {Number} the lerped value + */ + p5.Vector.lerp = function lerp(v1, v2, amt, target) { + if (!target) { + target = v1.copy(); + } else { + target.set(v1); + } + target.lerp(v2, amt); + return target; + }; + + /** + * @method mag + * @param {p5.Vector} vecT the vector to return the magnitude of + * @return {Number} the magnitude of vecT + * @static + */ + p5.Vector.mag = function mag(vecT) { + var x = vecT.x, + y = vecT.y, + z = vecT.z; + var magSq = x * x + y * y + z * z; + return Math.sqrt(magSq); + }; + + module.exports = p5.Vector; + }, + { '../core/constants': 18, '../core/main': 24 } + ], + 56: [ + function(_dereq_, module, exports) { + /** + * @module Math + * @submodule Random + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + var seeded = false; + var previous = false; + var y2 = 0; + + // Linear Congruential Generator + // Variant of a Lehman Generator + var lcg = (function() { + // Set to values from glibc(useb by GCC) (https://en.wikipedia.org/wiki/Linear_congruential_generator#Parameters_in_common_use) + // m is basically chosen to be large (as it is the max period) + // and for its relationships to a and c + var m = 2147483647, + // a - 1 should be divisible by m's prime factors + a = 1103515245, + // c and m should be co-prime + c = 12345, + seed, + z; + return { + setSeed: function setSeed(val) { + // pick a random seed if val is undefined or null + // the >>> 0 casts the seed to an unsigned 32-bit integer + z = seed = (val == null ? Math.random() * m : val) >>> 0; + }, + getSeed: function getSeed() { + return seed; + }, + rand: function rand() { + // define the recurrence relationship + z = (a * z + c) % m; + // return a float in [0, 1) + // if z = m then z / m = 0 therefore (z % m) / m < 1 always + return z / m; + } + }; + })(); + + /** + * Sets the seed value for random(). + * + * By default, random() produces different results each time the program + * is run. Set the seed parameter to a constant to return the same + * pseudo-random numbers each time the software is run. + * + * @method randomSeed + * @param {Number} seed the seed value + * @example + *
+ * + * randomSeed(99); + * for (let i = 0; i < 100; i++) { + * let r = random(0, 255); + * stroke(r); + * line(i, 0, i, 100); + * } + * + *
+ * + * @alt + * many vertical lines drawn in white, black or grey. + * + */ + p5.prototype.randomSeed = function(seed) { + lcg.setSeed(seed); + seeded = true; + previous = false; + }; + + /** + * Return a random floating-point number. + * + * Takes either 0, 1 or 2 arguments. + * + * If no argument is given, returns a random number from 0 + * up to (but not including) 1. + * + * If one argument is given and it is a number, returns a random number from 0 + * up to (but not including) the number. + * + * If one argument is given and it is an array, returns a random element from + * that array. + * + * If two arguments are given, returns a random number from the + * first argument up to (but not including) the second argument. + * + * @method random + * @param {Number} [min] the lower bound (inclusive) + * @param {Number} [max] the upper bound (exclusive) + * @return {Number} the random number + * @example + *
+ * + * for (let i = 0; i < 100; i++) { + * let r = random(50); + * stroke(r * 5); + * line(50, i, 50 + r, i); + * } + * + *
+ *
+ * + * for (let i = 0; i < 100; i++) { + * let r = random(-50, 50); + * line(50, i, 50 + r, i); + * } + * + *
+ *
+ * + * // Get a random element from an array using the random(Array) syntax + * let words = ['apple', 'bear', 'cat', 'dog']; + * let word = random(words); // select random word + * text(word, 10, 50); // draw the word + * + *
+ * + * @alt + * 100 horizontal lines from center canvas to right. size+fill change each time + * 100 horizontal lines from center of canvas. height & side change each render + * word displayed at random. Either apple, bear, cat, or dog + * + */ + /** + * @method random + * @param {Array} choices the array to choose from + * @return {*} the random element from the array + * @example + */ + p5.prototype.random = function(min, max) { + var rand; + + if (seeded) { + rand = lcg.rand(); + } else { + rand = Math.random(); + } + if (typeof min === 'undefined') { + return rand; + } else if (typeof max === 'undefined') { + if (min instanceof Array) { + return min[Math.floor(rand * min.length)]; + } else { + return rand * min; + } + } else { + if (min > max) { + var tmp = min; + min = max; + max = tmp; + } + + return rand * (max - min) + min; + } + }; + + /** + * + * Returns a random number fitting a Gaussian, or + * normal, distribution. There is theoretically no minimum or maximum + * value that randomGaussian() might return. Rather, there is + * just a very low probability that values far from the mean will be + * returned; and a higher probability that numbers near the mean will + * be returned. + *

+ * Takes either 0, 1 or 2 arguments.
+ * If no args, returns a mean of 0 and standard deviation of 1.
+ * If one arg, that arg is the mean (standard deviation is 1).
+ * If two args, first is mean, second is standard deviation. + * + * @method randomGaussian + * @param {Number} mean the mean + * @param {Number} sd the standard deviation + * @return {Number} the random number + * @example + *
+ * + * for (let y = 0; y < 100; y++) { + * let x = randomGaussian(50, 15); + * line(50, y, x, y); + * } + * + *
+ *
+ * + * let distribution = new Array(360); + * + * function setup() { + * createCanvas(100, 100); + * for (let i = 0; i < distribution.length; i++) { + * distribution[i] = floor(randomGaussian(0, 15)); + * } + * } + * + * function draw() { + * background(204); + * + * translate(width / 2, width / 2); + * + * for (let i = 0; i < distribution.length; i++) { + * rotate(TWO_PI / distribution.length); + * stroke(0); + * let dist = abs(distribution[i]); + * line(0, 0, dist, 0); + * } + * } + * + *
+ * @alt + * 100 horizontal lines from center of canvas. height & side change each render + * black lines radiate from center of canvas. size determined each render + */ + p5.prototype.randomGaussian = function(mean, sd) { + var y1, x1, x2, w; + if (previous) { + y1 = y2; + previous = false; + } else { + do { + x1 = this.random(2) - 1; + x2 = this.random(2) - 1; + w = x1 * x1 + x2 * x2; + } while (w >= 1); + w = Math.sqrt(-2 * Math.log(w) / w); + y1 = x1 * w; + y2 = x2 * w; + previous = true; + } + + var m = mean || 0; + var s = sd || 1; + return y1 * s + m; + }; + + module.exports = p5; + }, + { '../core/main': 24 } + ], + 57: [ + function(_dereq_, module, exports) { + /** + * @module Math + * @submodule Trigonometry + * @for p5 + * @requires core + * @requires constants + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + var constants = _dereq_('../core/constants'); + + /* + * all DEGREES/RADIANS conversion should be done in the p5 instance + * if possible, using the p5._toRadians(), p5._fromRadians() methods. + */ + p5.prototype._angleMode = constants.RADIANS; + + /** + * The inverse of cos(), returns the arc cosine of a value. This function + * expects the values in the range of -1 to 1 and values are returned in + * the range 0 to PI (3.1415927). + * + * @method acos + * @param {Number} value the value whose arc cosine is to be returned + * @return {Number} the arc cosine of the given value + * + * @example + *
+ * + * let a = PI; + * let c = cos(a); + * let ac = acos(c); + * // Prints: "3.1415927 : -1.0 : 3.1415927" + * print(a + ' : ' + c + ' : ' + ac); + * + *
+ * + *
+ * + * let a = PI + PI / 4.0; + * let c = cos(a); + * let ac = acos(c); + * // Prints: "3.926991 : -0.70710665 : 2.3561943" + * print(a + ' : ' + c + ' : ' + ac); + * + *
+ */ + p5.prototype.acos = function(ratio) { + return this._fromRadians(Math.acos(ratio)); + }; + + /** + * The inverse of sin(), returns the arc sine of a value. This function + * expects the values in the range of -1 to 1 and values are returned + * in the range -PI/2 to PI/2. + * + * @method asin + * @param {Number} value the value whose arc sine is to be returned + * @return {Number} the arc sine of the given value + * + * @example + *
+ * + * let a = PI + PI / 3; + * let s = sin(a); + * let as = asin(s); + * // Prints: "1.0471976 : 0.86602545 : 1.0471976" + * print(a + ' : ' + s + ' : ' + as); + * + *
+ * + *
+ * + * let a = PI + PI / 3.0; + * let s = sin(a); + * let as = asin(s); + * // Prints: "4.1887903 : -0.86602545 : -1.0471976" + * print(a + ' : ' + s + ' : ' + as); + * + *
+ * + */ + p5.prototype.asin = function(ratio) { + return this._fromRadians(Math.asin(ratio)); + }; + + /** + * The inverse of tan(), returns the arc tangent of a value. This function + * expects the values in the range of -Infinity to Infinity (exclusive) and + * values are returned in the range -PI/2 to PI/2. + * + * @method atan + * @param {Number} value the value whose arc tangent is to be returned + * @return {Number} the arc tangent of the given value + * + * @example + *
+ * + * let a = PI + PI / 3; + * let t = tan(a); + * let at = atan(t); + * // Prints: "1.0471976 : 1.7320509 : 1.0471976" + * print(a + ' : ' + t + ' : ' + at); + * + *
+ * + *
+ * + * let a = PI + PI / 3.0; + * let t = tan(a); + * let at = atan(t); + * // Prints: "4.1887903 : 1.7320513 : 1.0471977" + * print(a + ' : ' + t + ' : ' + at); + * + *
+ * + */ + p5.prototype.atan = function(ratio) { + return this._fromRadians(Math.atan(ratio)); + }; + + /** + * Calculates the angle (in radians) from a specified point to the coordinate + * origin as measured from the positive x-axis. Values are returned as a + * float in the range from PI to -PI. The atan2() function is most often used + * for orienting geometry to the position of the cursor. + *

+ * Note: The y-coordinate of the point is the first parameter, and the + * x-coordinate is the second parameter, due the the structure of calculating + * the tangent. + * + * @method atan2 + * @param {Number} y y-coordinate of the point + * @param {Number} x x-coordinate of the point + * @return {Number} the arc tangent of the given point + * + * @example + *
+ * + * function draw() { + * background(204); + * translate(width / 2, height / 2); + * let a = atan2(mouseY - height / 2, mouseX - width / 2); + * rotate(a); + * rect(-30, -5, 60, 10); + * } + * + *
+ * + * @alt + * 60 by 10 rect at center of canvas rotates with mouse movements + * + */ + p5.prototype.atan2 = function(y, x) { + return this._fromRadians(Math.atan2(y, x)); + }; + + /** + * Calculates the cosine of an angle. This function takes into account the + * current angleMode. Values are returned in the range -1 to 1. + * + * @method cos + * @param {Number} angle the angle + * @return {Number} the cosine of the angle + * + * @example + *
+ * + * let a = 0.0; + * let inc = TWO_PI / 25.0; + * for (let i = 0; i < 25; i++) { + * line(i * 4, 50, i * 4, 50 + cos(a) * 40.0); + * a = a + inc; + * } + * + *
+ * + * @alt + * vertical black lines form wave patterns, extend-down on left and right side + * + */ + p5.prototype.cos = function(angle) { + return Math.cos(this._toRadians(angle)); + }; + + /** + * Calculates the sine of an angle. This function takes into account the + * current angleMode. Values are returned in the range -1 to 1. + * + * @method sin + * @param {Number} angle the angle + * @return {Number} the sine of the angle + * + * @example + *
+ * + * let a = 0.0; + * let inc = TWO_PI / 25.0; + * for (let i = 0; i < 25; i++) { + * line(i * 4, 50, i * 4, 50 + sin(a) * 40.0); + * a = a + inc; + * } + * + *
+ * + * @alt + * vertical black lines extend down and up from center to form wave pattern + * + */ + p5.prototype.sin = function(angle) { + return Math.sin(this._toRadians(angle)); + }; + + /** + * Calculates the tangent of an angle. This function takes into account + * the current angleMode. Values are returned in the range -1 to 1. + * + * @method tan + * @param {Number} angle the angle + * @return {Number} the tangent of the angle + * + * @example + *
+ * + * let a = 0.0; + * let inc = TWO_PI / 50.0; + * for (let i = 0; i < 100; i = i + 2) { + * line(i, 50, i, 50 + tan(a) * 2.0); + * a = a + inc; + * } + * + * + * + * @alt + * vertical black lines end down and up from center to form spike pattern + * + */ + p5.prototype.tan = function(angle) { + return Math.tan(this._toRadians(angle)); + }; + + /** + * Converts a radian measurement to its corresponding value in degrees. + * Radians and degrees are two ways of measuring the same thing. There are + * 360 degrees in a circle and 2*PI radians in a circle. For example, + * 90ยฐ = PI/2 = 1.5707964. This function does not take into account the + * current angleMode. + * + * @method degrees + * @param {Number} radians the radians value to convert to degrees + * @return {Number} the converted angle + * + * + * @example + *
+ * + * let rad = PI / 4; + * let deg = degrees(rad); + * print(rad + ' radians is ' + deg + ' degrees'); + * // Prints: 0.7853981633974483 radians is 45 degrees + * + *
+ * + */ + p5.prototype.degrees = function(angle) { + return angle * constants.RAD_TO_DEG; + }; + + /** + * Converts a degree measurement to its corresponding value in radians. + * Radians and degrees are two ways of measuring the same thing. There are + * 360 degrees in a circle and 2*PI radians in a circle. For example, + * 90ยฐ = PI/2 = 1.5707964. This function does not take into account the + * current angleMode. + * + * @method radians + * @param {Number} degrees the degree value to convert to radians + * @return {Number} the converted angle + * + * @example + *
+ * + * let deg = 45.0; + * let rad = radians(deg); + * print(deg + ' degrees is ' + rad + ' radians'); + * // Prints: 45 degrees is 0.7853981633974483 radians + * + *
+ */ + p5.prototype.radians = function(angle) { + return angle * constants.DEG_TO_RAD; + }; + + /** + * Sets the current mode of p5 to given mode. Default mode is RADIANS. + * + * @method angleMode + * @param {Constant} mode either RADIANS or DEGREES + * + * @example + *
+ * + * function draw() { + * background(204); + * angleMode(DEGREES); // Change the mode to DEGREES + * let a = atan2(mouseY - height / 2, mouseX - width / 2); + * translate(width / 2, height / 2); + * push(); + * rotate(a); + * rect(-20, -5, 40, 10); // Larger rectangle is rotating in degrees + * pop(); + * angleMode(RADIANS); // Change the mode to RADIANS + * rotate(a); // variable a stays the same + * rect(-40, -5, 20, 10); // Smaller rectangle is rotating in radians + * } + * + *
+ * + * @alt + * 40 by 10 rect in center rotates with mouse moves. 20 by 10 rect moves faster. + * + * + */ + p5.prototype.angleMode = function(mode) { + if (mode === constants.DEGREES || mode === constants.RADIANS) { + this._angleMode = mode; + } + }; + + /** + * converts angles from the current angleMode to RADIANS + * + * @method _toRadians + * @private + * @param {Number} angle + * @returns {Number} + */ + p5.prototype._toRadians = function(angle) { + if (this._angleMode === constants.DEGREES) { + return angle * constants.DEG_TO_RAD; + } + return angle; + }; + + /** + * converts angles from the current angleMode to DEGREES + * + * @method _toDegrees + * @private + * @param {Number} angle + * @returns {Number} + */ + p5.prototype._toDegrees = function(angle) { + if (this._angleMode === constants.RADIANS) { + return angle * constants.RAD_TO_DEG; + } + return angle; + }; + + /** + * converts angles from RADIANS into the current angleMode + * + * @method _fromRadians + * @private + * @param {Number} angle + * @returns {Number} + */ + p5.prototype._fromRadians = function(angle) { + if (this._angleMode === constants.DEGREES) { + return angle * constants.RAD_TO_DEG; + } + return angle; + }; + + module.exports = p5; + }, + { '../core/constants': 18, '../core/main': 24 } + ], + 58: [ + function(_dereq_, module, exports) { + /** + * @module Typography + * @submodule Attributes + * @for p5 + * @requires core + * @requires constants + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + /** + * Sets the current alignment for drawing text. Accepts two + * arguments: horizAlign (LEFT, CENTER, or RIGHT) and + * vertAlign (TOP, BOTTOM, CENTER, or BASELINE). + * + * The horizAlign parameter is in reference to the x value + * of the text() function, while the vertAlign parameter is + * in reference to the y value. + * + * So if you write textAlign(LEFT), you are aligning the left + * edge of your text to the x value you give in text(). If you + * write textAlign(RIGHT, TOP), you are aligning the right edge + * of your text to the x value and the top of edge of the text + * to the y value. + * + * @method textAlign + * @param {Constant} horizAlign horizontal alignment, either LEFT, + * CENTER, or RIGHT + * @param {Constant} [vertAlign] vertical alignment, either TOP, + * BOTTOM, CENTER, or BASELINE + * @chainable + * @example + *
+ * + * textSize(16); + * textAlign(RIGHT); + * text('ABCD', 50, 30); + * textAlign(CENTER); + * text('EFGH', 50, 50); + * textAlign(LEFT); + * text('IJKL', 50, 70); + * + *
+ * + *
+ * + * textSize(16); + * strokeWeight(0.5); + * + * line(0, 12, width, 12); + * textAlign(CENTER, TOP); + * text('TOP', 0, 12, width); + * + * line(0, 37, width, 37); + * textAlign(CENTER, CENTER); + * text('CENTER', 0, 37, width); + * + * line(0, 62, width, 62); + * textAlign(CENTER, BASELINE); + * text('BASELINE', 0, 62, width); + * + * line(0, 87, width, 87); + * textAlign(CENTER, BOTTOM); + * text('BOTTOM', 0, 87, width); + * + *
+ * + * @alt + *Letters ABCD displayed at top right, EFGH at center and IJKL at bottom left. + * The names of the four vertical alignments rendered each showing that alignment's placement relative to a horizontal line. + * + */ + /** + * @method textAlign + * @return {Object} + */ + p5.prototype.textAlign = function(horizAlign, vertAlign) { + p5._validateParameters('textAlign', arguments); + return this._renderer.textAlign.apply(this._renderer, arguments); + }; + + /** + * Sets/gets the spacing, in pixels, between lines of text. This + * setting will be used in all subsequent calls to the text() function. + * + * @method textLeading + * @param {Number} leading the size in pixels for spacing between lines + * @chainable + * + * @example + *
+ * + * // Text to display. The "\n" is a "new line" character + * let lines = 'L1\nL2\nL3'; + * textSize(12); + * + * textLeading(10); // Set leading to 10 + * text(lines, 10, 25); + * + * textLeading(20); // Set leading to 20 + * text(lines, 40, 25); + * + * textLeading(30); // Set leading to 30 + * text(lines, 70, 25); + * + *
+ * + * @alt + *set L1 L2 & L3 displayed vertically 3 times. spacing increases for each set + */ + /** + * @method textLeading + * @return {Number} + */ + p5.prototype.textLeading = function(theLeading) { + p5._validateParameters('textLeading', arguments); + return this._renderer.textLeading.apply(this._renderer, arguments); + }; + + /** + * Sets/gets the current font size. This size will be used in all subsequent + * calls to the text() function. Font size is measured in pixels. + * + * @method textSize + * @param {Number} theSize the size of the letters in units of pixels + * @chainable + * + * @example + *
+ * + * textSize(12); + * text('Font Size 12', 10, 30); + * textSize(14); + * text('Font Size 14', 10, 60); + * textSize(16); + * text('Font Size 16', 10, 90); + * + *
+ * + * @alt + *Font Size 12 displayed small, Font Size 14 medium & Font Size 16 large + */ + /** + * @method textSize + * @return {Number} + */ + p5.prototype.textSize = function(theSize) { + p5._validateParameters('textSize', arguments); + return this._renderer.textSize.apply(this._renderer, arguments); + }; + + /** + * Sets/gets the style of the text for system fonts to NORMAL, ITALIC, BOLD or BOLDITALIC. + * Note: this may be is overridden by CSS styling. For non-system fonts + * (opentype, truetype, etc.) please load styled fonts instead. + * + * @method textStyle + * @param {Constant} theStyle styling for text, either NORMAL, + * ITALIC, BOLD or BOLDITALIC + * @chainable + * @example + *
+ * + * strokeWeight(0); + * textSize(12); + * textStyle(NORMAL); + * text('Font Style Normal', 10, 15); + * textStyle(ITALIC); + * text('Font Style Italic', 10, 40); + * textStyle(BOLD); + * text('Font Style Bold', 10, 65); + * textStyle(BOLDITALIC); + * text('Font Style Bold Italic', 10, 90); + * + *
+ * + * @alt + *words Font Style Normal displayed normally, Italic in italic, bold in bold and bold italic in bold italics. + */ + /** + * @method textStyle + * @return {String} + */ + p5.prototype.textStyle = function(theStyle) { + p5._validateParameters('textStyle', arguments); + return this._renderer.textStyle.apply(this._renderer, arguments); + }; + + /** + * Calculates and returns the width of any character or text string. + * + * @method textWidth + * @param {String} theText the String of characters to measure + * @return {Number} + * @example + *
+ * + * textSize(28); + * + * let aChar = 'P'; + * let cWidth = textWidth(aChar); + * text(aChar, 0, 40); + * line(cWidth, 0, cWidth, 50); + * + * let aString = 'p5.js'; + * let sWidth = textWidth(aString); + * text(aString, 0, 85); + * line(sWidth, 50, sWidth, 100); + * + *
+ * + * @alt + *Letter P and p5.js are displayed with vertical lines at end. P is wide + * + */ + p5.prototype.textWidth = function(theText) { + p5._validateParameters('textWidth', arguments); + if (theText.length === 0) { + return 0; + } + return this._renderer.textWidth.apply(this._renderer, arguments); + }; + + /** + * Returns the ascent of the current font at its current size. The ascent + * represents the distance, in pixels, of the tallest character above + * the baseline. + * @method textAscent + * @return {Number} + * @example + *
+ * + * let base = height * 0.75; + * let scalar = 0.8; // Different for each font + * + * textSize(32); // Set initial text size + * let asc = textAscent() * scalar; // Calc ascent + * line(0, base - asc, width, base - asc); + * text('dp', 0, base); // Draw text on baseline + * + * textSize(64); // Increase text size + * asc = textAscent() * scalar; // Recalc ascent + * line(40, base - asc, width, base - asc); + * text('dp', 40, base); // Draw text on baseline + * + *
+ */ + p5.prototype.textAscent = function() { + p5._validateParameters('textAscent', arguments); + return this._renderer.textAscent(); + }; + + /** + * Returns the descent of the current font at its current size. The descent + * represents the distance, in pixels, of the character with the longest + * descender below the baseline. + * @method textDescent + * @return {Number} + * @example + *
+ * + * let base = height * 0.75; + * let scalar = 0.8; // Different for each font + * + * textSize(32); // Set initial text size + * let desc = textDescent() * scalar; // Calc ascent + * line(0, base + desc, width, base + desc); + * text('dp', 0, base); // Draw text on baseline + * + * textSize(64); // Increase text size + * desc = textDescent() * scalar; // Recalc ascent + * line(40, base + desc, width, base + desc); + * text('dp', 40, base); // Draw text on baseline + * + *
+ */ + p5.prototype.textDescent = function() { + p5._validateParameters('textDescent', arguments); + return this._renderer.textDescent(); + }; + + /** + * Helper function to measure ascent and descent. + */ + p5.prototype._updateTextMetrics = function() { + return this._renderer._updateTextMetrics(); + }; + + module.exports = p5; + }, + { '../core/main': 24 } + ], + 59: [ + function(_dereq_, module, exports) { + /** + * @module Typography + * @submodule Loading & Displaying + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + var constants = _dereq_('../core/constants'); + var opentype = _dereq_('opentype.js'); + + _dereq_('../core/error_helpers'); + + /** + * Loads an opentype font file (.otf, .ttf) from a file or a URL, + * and returns a PFont Object. This method is asynchronous, + * meaning it may not finish before the next line in your sketch + * is executed. + *

+ * The path to the font should be relative to the HTML file + * that links in your sketch. Loading fonts from a URL or other + * remote location may be blocked due to your browser's built-in + * security. + * + * @method loadFont + * @param {String} path name of the file or url to load + * @param {Function} [callback] function to be executed after + * loadFont() completes + * @param {Function} [onError] function to be executed if + * an error occurs + * @return {p5.Font} p5.Font object + * @example + * + *

Calling loadFont() inside preload() guarantees that the load + * operation will have completed before setup() and draw() are called.

+ * + *
+ * let myFont; + * function preload() { + * myFont = loadFont('assets/inconsolata.otf'); + * } + * + * function setup() { + * fill('#ED225D'); + * textFont(myFont); + * textSize(36); + * text('p5*js', 10, 50); + * } + *
+ * + * Outside of preload(), you may supply a callback function to handle the + * object: + * + *
+ * function setup() { + * loadFont('assets/inconsolata.otf', drawText); + * } + * + * function drawText(font) { + * fill('#ED225D'); + * textFont(font, 36); + * text('p5*js', 10, 50); + * } + *
+ * + *

You can also use the font filename string (without the file extension) to style other HTML + * elements.

+ * + *
+ * function preload() { + * loadFont('assets/inconsolata.otf'); + * } + * + * function setup() { + * let myDiv = createDiv('hello there'); + * myDiv.style('font-family', 'Inconsolata'); + * } + *
+ * + * @alt + * p5*js in p5's theme dark pink + * p5*js in p5's theme dark pink + * + */ + p5.prototype.loadFont = function(path, onSuccess, onError) { + p5._validateParameters('loadFont', arguments); + var p5Font = new p5.Font(this); + + var self = this; + opentype.load(path, function(err, font) { + if (err) { + p5._friendlyFileLoadError(4, path); + if (typeof onError !== 'undefined') { + return onError(err); + } + console.error(err, path); + return; + } + + p5Font.font = font; + + if (typeof onSuccess !== 'undefined') { + onSuccess(p5Font); + } + + self._decrementPreload(); + + // check that we have an acceptable font type + var validFontTypes = ['ttf', 'otf', 'woff', 'woff2'], + fileNoPath = path + .split('\\') + .pop() + .split('/') + .pop(), + lastDotIdx = fileNoPath.lastIndexOf('.'), + fontFamily, + newStyle, + fileExt = lastDotIdx < 1 ? null : fileNoPath.substr(lastDotIdx + 1); + + // if so, add it to the DOM (name-only) for use with p5.dom + if (validFontTypes.indexOf(fileExt) > -1) { + fontFamily = fileNoPath.substr(0, lastDotIdx); + newStyle = document.createElement('style'); + newStyle.appendChild( + document.createTextNode( + '\n@font-face {' + + '\nfont-family: ' + + fontFamily + + ';\nsrc: url(' + + path + + ');\n}\n' + ) + ); + + document.head.appendChild(newStyle); + } + }); + + return p5Font; + }; + + /** + * Draws text to the screen. Displays the information specified in the first + * parameter on the screen in the position specified by the additional + * parameters. A default font will be used unless a font is set with the + * textFont() function and a default size will be used unless a font is set + * with textSize(). Change the color of the text with the fill() function. + * Change the outline of the text with the stroke() and strokeWeight() + * functions. + *

+ * The text displays in relation to the textAlign() function, which gives the + * option to draw to the left, right, and center of the coordinates. + *

+ * The x2 and y2 parameters define a rectangular area to display within and + * may only be used with string data. When these parameters are specified, + * they are interpreted based on the current rectMode() setting. Text that + * does not fit completely within the rectangle specified will not be drawn + * to the screen. If x2 and y2 are not specified, the baseline alignment is the + * default, which means that the text will be drawn upwards from x and y. + *

+ * WEBGL: Only opentype/truetype fonts are supported. You must load a font using the + * loadFont() method (see the example above). + * stroke() currently has no effect in webgl mode. + * + * @method text + * @param {String|Object|Array|Number|Boolean} str the alphanumeric + * symbols to be displayed + * @param {Number} x x-coordinate of text + * @param {Number} y y-coordinate of text + * @param {Number} [x2] by default, the width of the text box, + * see rectMode() for more info + * @param {Number} [y2] by default, the height of the text box, + * see rectMode() for more info + * @chainable + * @example + *
+ * + * textSize(32); + * text('word', 10, 30); + * fill(0, 102, 153); + * text('word', 10, 60); + * fill(0, 102, 153, 51); + * text('word', 10, 90); + * + *
+ *
+ * + * let s = 'The quick brown fox jumped over the lazy dog.'; + * fill(50); + * text(s, 10, 10, 70, 80); // Text wraps within text box + * + *
+ * + *
+ * + * let inconsolata; + * function preload() { + * inconsolata = loadFont('assets/inconsolata.otf'); + * } + * function setup() { + * createCanvas(100, 100, WEBGL); + * textFont(inconsolata); + * textSize(width / 3); + * textAlign(CENTER, CENTER); + * } + * function draw() { + * background(0); + * let time = millis(); + * rotateX(time / 1000); + * rotateZ(time / 1234); + * text('p5.js', 0, 0); + * } + * + *
+ * + * @alt + *'word' displayed 3 times going from black, blue to translucent blue + * The quick brown fox jumped over the lazy dog. + * the text 'p5.js' spinning in 3d + * + */ + p5.prototype.text = function(str, x, y, maxWidth, maxHeight) { + p5._validateParameters('text', arguments); + return !(this._renderer._doFill || this._renderer._doStroke) + ? this + : this._renderer.text.apply(this._renderer, arguments); + }; + + /** + * Sets the current font that will be drawn with the text() function. + *

+ * WEBGL: Only fonts loaded via loadFont() are supported. + * + * @method textFont + * @return {Object} the current font + * + * @example + *
+ * + * fill(0); + * textSize(12); + * textFont('Georgia'); + * text('Georgia', 12, 30); + * textFont('Helvetica'); + * text('Helvetica', 12, 60); + * + *
+ *
+ * + * let fontRegular, fontItalic, fontBold; + * function preload() { + * fontRegular = loadFont('assets/Regular.otf'); + * fontItalic = loadFont('assets/Italic.ttf'); + * fontBold = loadFont('assets/Bold.ttf'); + * } + * function setup() { + * background(210); + * fill(0) + .strokeWeight(0) + .textSize(10); + * textFont(fontRegular); + * text('Font Style Normal', 10, 30); + * textFont(fontItalic); + * text('Font Style Italic', 10, 50); + * textFont(fontBold); + * text('Font Style Bold', 10, 70); + * } + * + *
+ * + * @alt + *words Font Style Normal displayed normally, Italic in italic and bold in bold + */ + /** + * @method textFont + * @param {Object|String} font a font loaded via loadFont(), or a String + * representing a web safe font (a font + * that is generally available across all systems) + * @param {Number} [size] the font size to use + * @chainable + */ + p5.prototype.textFont = function(theFont, theSize) { + p5._validateParameters('textFont', arguments); + if (arguments.length) { + if (!theFont) { + throw new Error('null font passed to textFont'); + } + + this._renderer._setProperty('_textFont', theFont); + + if (theSize) { + this._renderer._setProperty('_textSize', theSize); + this._renderer._setProperty( + '_textLeading', + theSize * constants._DEFAULT_LEADMULT + ); + } + + return this._renderer._applyTextProperties(); + } + + return this._renderer._textFont; + }; + + module.exports = p5; + }, + { + '../core/constants': 18, + '../core/error_helpers': 20, + '../core/main': 24, + 'opentype.js': 10 + } + ], + 60: [ + function(_dereq_, module, exports) { + /** + * This module defines the p5.Font class and functions for + * drawing text to the display canvas. + * @module Typography + * @submodule Font + * @requires core + * @requires constants + */ + + 'use strict'; + function _typeof(obj) { + if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') { + _typeof = function _typeof(obj) { + return typeof obj; + }; + } else { + _typeof = function _typeof(obj) { + return obj && + typeof Symbol === 'function' && + obj.constructor === Symbol && + obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }; + } + return _typeof(obj); + } + + var p5 = _dereq_('../core/main'); + var constants = _dereq_('../core/constants'); + + /** + * Base class for font handling + * @class p5.Font + * @param {p5} [pInst] pointer to p5 instance + */ + p5.Font = function(p) { + this.parent = p; + + this.cache = {}; + + /** + * Underlying opentype font implementation + * @property font + */ + this.font = undefined; + }; + + /** + * Returns a tight bounding box for the given text string using this + * font (currently only supports single lines) + * + * @method textBounds + * @param {String} line a line of text + * @param {Number} x x-position + * @param {Number} y y-position + * @param {Number} [fontSize] font size to use (optional) Default is 12. + * @param {Object} [options] opentype options (optional) + * opentype fonts contains alignment and baseline options. + * Default is 'LEFT' and 'alphabetic' + * + * + * @return {Object} a rectangle object with properties: x, y, w, h + * + * @example + *
+ * + * let font; + * let textString = 'Lorem ipsum dolor sit amet.'; + * function preload() { + * font = loadFont('./assets/Regular.otf'); + * } + * function setup() { + * background(210); + * + * let bbox = font.textBounds(textString, 10, 30, 12); + * fill(255); + * stroke(0); + * rect(bbox.x, bbox.y, bbox.w, bbox.h); + * fill(0); + * noStroke(); + * + * textFont(font); + * textSize(12); + * text(textString, 10, 30); + * } + * + *
+ * + * @alt + *words Lorem ipsum dol go off canvas and contained by white bounding box + * + */ + p5.Font.prototype.textBounds = function(str, x, y, fontSize, opts) { + x = x !== undefined ? x : 0; + y = y !== undefined ? y : 0; + + // Check cache for existing bounds. Take into consideration the text alignment + // settings. Default alignment should match opentype's origin: left-aligned & + // alphabetic baseline. + var p = (opts && opts.renderer && opts.renderer._pInst) || this.parent, + ctx = p._renderer.drawingContext, + alignment = ctx.textAlign || constants.LEFT, + baseline = ctx.textBaseline || constants.BASELINE, + cacheResults = false, + result, + key; + + fontSize = fontSize || p._renderer._textSize; + + // NOTE: cache disabled for now pending further discussion of #3436 + if (cacheResults) { + key = cacheKey('textBounds', str, x, y, fontSize, alignment, baseline); + result = this.cache[key]; + } + + if (!result) { + var minX, + minY, + maxX, + maxY, + pos, + xCoords = [], + yCoords = [], + scale = this._scale(fontSize); + + this.font.forEachGlyph(str, x, y, fontSize, opts, function( + glyph, + gX, + gY, + gFontSize + ) { + var gm = glyph.getMetrics(); + xCoords.push(gX + gm.xMin * scale); + xCoords.push(gX + gm.xMax * scale); + yCoords.push(gY + -gm.yMin * scale); + yCoords.push(gY + -gm.yMax * scale); + }); + + minX = Math.min.apply(null, xCoords); + minY = Math.min.apply(null, yCoords); + maxX = Math.max.apply(null, xCoords); + maxY = Math.max.apply(null, yCoords); + + result = { + x: minX, + y: minY, + h: maxY - minY, + w: maxX - minX, + advance: minX - x + }; + + // Bounds are now calculated, so shift the x & y to match alignment settings + pos = this._handleAlignment( + p._renderer, + str, + result.x, + result.y, + result.w + result.advance + ); + + result.x = pos.x; + result.y = pos.y; + + if (cacheResults) { + this.cache[key] = result; + } + } + + return result; + }; + + /** + * Computes an array of points following the path for specified text + * + * @method textToPoints + * @param {String} txt a line of text + * @param {Number} x x-position + * @param {Number} y y-position + * @param {Number} fontSize font size to use (optional) + * @param {Object} [options] an (optional) object that can contain: + * + *
sampleFactor - the ratio of path-length to number of samples + * (default=.1); higher values yield more points and are therefore + * more precise + * + *
simplifyThreshold - if set to a non-zero value, collinear points will be + * be removed from the polygon; the value represents the threshold angle to use + * when determining whether two edges are collinear + * + * @return {Array} an array of points, each with x, y, alpha (the path angle) + * @example + *
+ * + * let font; + * function preload() { + * font = loadFont('assets/inconsolata.otf'); + * } + * + * let points; + * let bounds; + * function setup() { + * createCanvas(100, 100); + * stroke(0); + * fill(255, 104, 204); + * + * points = font.textToPoints('p5', 0, 0, 10, { + * sampleFactor: 5, + * simplifyThreshold: 0 + * }); + * bounds = font.textBounds(' p5 ', 0, 0, 10); + * } + * + * function draw() { + * background(255); + * beginShape(); + * translate(-bounds.x * width / bounds.w, -bounds.y * height / bounds.h); + * for (let i = 0; i < points.length; i++) { + * let p = points[i]; + * vertex( + * p.x * width / bounds.w + + * sin(20 * p.y / bounds.h + millis() / 1000) * width / 30, + * p.y * height / bounds.h + * ); + * } + * endShape(CLOSE); + * } + * + *
+ * + */ + p5.Font.prototype.textToPoints = function(txt, x, y, fontSize, options) { + var xoff = 0, + result = [], + glyphs = this._getGlyphs(txt); + + function isSpace(i) { + return ( + (glyphs[i].name && glyphs[i].name === 'space') || + (txt.length === glyphs.length && txt[i] === ' ') || + (glyphs[i].index && glyphs[i].index === 3) + ); + } + + fontSize = fontSize || this.parent._renderer._textSize; + + for (var i = 0; i < glyphs.length; i++) { + if (!isSpace(i)) { + // fix to #1817, #2069 + + var gpath = glyphs[i].getPath(x, y, fontSize), + paths = splitPaths(gpath.commands); + + for (var j = 0; j < paths.length; j++) { + var pts = pathToPoints(paths[j], options); + + for (var k = 0; k < pts.length; k++) { + pts[k].x += xoff; + result.push(pts[k]); + } + } + } + + xoff += glyphs[i].advanceWidth * this._scale(fontSize); + } + + return result; + }; + + // ----------------------------- End API ------------------------------ + + /** + * Returns the set of opentype glyphs for the supplied string. + * + * Note that there is not a strict one-to-one mapping between characters + * and glyphs, so the list of returned glyphs can be larger or smaller + * than the length of the given string. + * + * @private + * @param {String} str the string to be converted + * @return {Array} the opentype glyphs + */ + p5.Font.prototype._getGlyphs = function(str) { + return this.font.stringToGlyphs(str); + }; + + /** + * Returns an opentype path for the supplied string and position. + * + * @private + * @param {String} line a line of text + * @param {Number} x x-position + * @param {Number} y y-position + * @param {Object} options opentype options (optional) + * @return {Object} the opentype path + */ + p5.Font.prototype._getPath = function(line, x, y, options) { + var p = (options && options.renderer && options.renderer._pInst) || this.parent, + renderer = p._renderer, + pos = this._handleAlignment(renderer, line, x, y); + + return this.font.getPath(line, pos.x, pos.y, renderer._textSize, options); + }; + + /* + * Creates an SVG-formatted path-data string + * (See http://www.w3.org/TR/SVG/paths.html#PathData) + * from the given opentype path or string/position + * + * @param {Object} path an opentype path, OR the following: + * + * @param {String} line a line of text + * @param {Number} x x-position + * @param {Number} y y-position + * @param {Object} options opentype options (optional), set options.decimals + * to set the decimal precision of the path-data + * + * @return {Object} this p5.Font object + */ + p5.Font.prototype._getPathData = function(line, x, y, options) { + var decimals = 3; + + // create path from string/position + if (typeof line === 'string' && arguments.length > 2) { + line = this._getPath(line, x, y, options); + } else if (_typeof(x) === 'object') { + // handle options specified in 2nd arg + options = x; + } + + // handle svg arguments + if (options && typeof options.decimals === 'number') { + decimals = options.decimals; + } + + return line.toPathData(decimals); + }; + + /* + * Creates an SVG element, as a string, + * from the given opentype path or string/position + * + * @param {Object} path an opentype path, OR the following: + * + * @param {String} line a line of text + * @param {Number} x x-position + * @param {Number} y y-position + * @param {Object} options opentype options (optional), set options.decimals + * to set the decimal precision of the path-data in the element, + * options.fill to set the fill color for the element, + * options.stroke to set the stroke color for the element, + * options.strokeWidth to set the strokeWidth for the element. + * + * @return {Object} this p5.Font object + */ + p5.Font.prototype._getSVG = function(line, x, y, options) { + var decimals = 3; + + // create path from string/position + if (typeof line === 'string' && arguments.length > 2) { + line = this._getPath(line, x, y, options); + } else if (_typeof(x) === 'object') { + // handle options specified in 2nd arg + options = x; + } + + // handle svg arguments + if (options) { + if (typeof options.decimals === 'number') { + decimals = options.decimals; + } + if (typeof options.strokeWidth === 'number') { + line.strokeWidth = options.strokeWidth; + } + if (typeof options.fill !== 'undefined') { + line.fill = options.fill; + } + if (typeof options.stroke !== 'undefined') { + line.stroke = options.stroke; + } + } + + return line.toSVG(decimals); + }; + + /* + * Renders an opentype path or string/position + * to the current graphics context + * + * @param {Object} path an opentype path, OR the following: + * + * @param {String} line a line of text + * @param {Number} x x-position + * @param {Number} y y-position + * @param {Object} options opentype options (optional) + * + * @return {p5.Font} this p5.Font object + */ + p5.Font.prototype._renderPath = function(line, x, y, options) { + var pdata, + pg = (options && options.renderer) || this.parent._renderer, + ctx = pg.drawingContext; + + if (_typeof(line) === 'object' && line.commands) { + pdata = line.commands; + } else { + //pos = handleAlignment(p, ctx, line, x, y); + pdata = this._getPath(line, x, y, options).commands; + } + + ctx.beginPath(); + for (var i = 0; i < pdata.length; i += 1) { + var cmd = pdata[i]; + if (cmd.type === 'M') { + ctx.moveTo(cmd.x, cmd.y); + } else if (cmd.type === 'L') { + ctx.lineTo(cmd.x, cmd.y); + } else if (cmd.type === 'C') { + ctx.bezierCurveTo(cmd.x1, cmd.y1, cmd.x2, cmd.y2, cmd.x, cmd.y); + } else if (cmd.type === 'Q') { + ctx.quadraticCurveTo(cmd.x1, cmd.y1, cmd.x, cmd.y); + } else if (cmd.type === 'Z') { + ctx.closePath(); + } + } + + // only draw stroke if manually set by user + if (pg._doStroke && pg._strokeSet) { + ctx.stroke(); + } + + if (pg._doFill) { + // if fill hasn't been set by user, use default-text-fill + if (!pg._fillSet) { + pg._setFill(constants._DEFAULT_TEXT_FILL); + } + ctx.fill(); + } + + return this; + }; + + p5.Font.prototype._textWidth = function(str, fontSize) { + return this.font.getAdvanceWidth(str, fontSize); + }; + + p5.Font.prototype._textAscent = function(fontSize) { + return this.font.ascender * this._scale(fontSize); + }; + + p5.Font.prototype._textDescent = function(fontSize) { + return -this.font.descender * this._scale(fontSize); + }; + + p5.Font.prototype._scale = function(fontSize) { + return 1 / this.font.unitsPerEm * (fontSize || this.parent._renderer._textSize); + }; + + p5.Font.prototype._handleAlignment = function(renderer, line, x, y, textWidth) { + var fontSize = renderer._textSize; + + if (typeof textWidth === 'undefined') { + textWidth = this._textWidth(line, fontSize); + } + + switch (renderer._textAlign) { + case constants.CENTER: + x -= textWidth / 2; + break; + case constants.RIGHT: + x -= textWidth; + break; + } + + switch (renderer._textBaseline) { + case constants.TOP: + y += this._textAscent(fontSize); + break; + case constants.CENTER: + y += this._textAscent(fontSize) / 2; + break; + case constants.BOTTOM: + y -= this._textDescent(fontSize); + break; + } + + return { x: x, y: y }; + }; + + // path-utils + + function pathToPoints(cmds, options) { + var opts = parseOpts(options, { + sampleFactor: 0.1, + simplifyThreshold: 0 + }); + + var len = pointAtLength(cmds, 0, 1), // total-length + t = len / (len * opts.sampleFactor), + pts = []; + + for (var i = 0; i < len; i += t) { + pts.push(pointAtLength(cmds, i)); + } + + if (opts.simplifyThreshold) { + simplify(pts, opts.simplifyThreshold); + } + + return pts; + } + + function simplify(pts, angle) { + angle = typeof angle === 'undefined' ? 0 : angle; + + var num = 0; + for (var i = pts.length - 1; pts.length > 3 && i >= 0; --i) { + if (collinear(at(pts, i - 1), at(pts, i), at(pts, i + 1), angle)) { + // Remove the middle point + pts.splice(i % pts.length, 1); + num++; + } + } + return num; + } + + function splitPaths(cmds) { + var paths = [], + current; + for (var i = 0; i < cmds.length; i++) { + if (cmds[i].type === 'M') { + if (current) { + paths.push(current); + } + current = []; + } + current.push(cmdToArr(cmds[i])); + } + paths.push(current); + + return paths; + } + + function cmdToArr(cmd) { + var arr = [cmd.type]; + if (cmd.type === 'M' || cmd.type === 'L') { + // moveto or lineto + arr.push(cmd.x, cmd.y); + } else if (cmd.type === 'C') { + arr.push(cmd.x1, cmd.y1, cmd.x2, cmd.y2, cmd.x, cmd.y); + } else if (cmd.type === 'Q') { + arr.push(cmd.x1, cmd.y1, cmd.x, cmd.y); + } + // else if (cmd.type === 'Z') { /* no-op */ } + return arr; + } + + function parseOpts(options, defaults) { + if (_typeof(options) !== 'object') { + options = defaults; + } else { + for (var key in defaults) { + if (typeof options[key] === 'undefined') { + options[key] = defaults[key]; + } + } + } + return options; + } + + //////////////////////// Helpers //////////////////////////// + + function at(v, i) { + var s = v.length; + return v[i < 0 ? i % s + s : i % s]; + } + + function collinear(a, b, c, thresholdAngle) { + if (!thresholdAngle) { + return areaTriangle(a, b, c) === 0; + } + + if (typeof collinear.tmpPoint1 === 'undefined') { + collinear.tmpPoint1 = []; + collinear.tmpPoint2 = []; + } + + var ab = collinear.tmpPoint1, + bc = collinear.tmpPoint2; + ab.x = b.x - a.x; + ab.y = b.y - a.y; + bc.x = c.x - b.x; + bc.y = c.y - b.y; + + var dot = ab.x * bc.x + ab.y * bc.y, + magA = Math.sqrt(ab.x * ab.x + ab.y * ab.y), + magB = Math.sqrt(bc.x * bc.x + bc.y * bc.y), + angle = Math.acos(dot / (magA * magB)); + + return angle < thresholdAngle; + } + + function areaTriangle(a, b, c) { + return (b[0] - a[0]) * (c[1] - a[1]) - (c[0] - a[0]) * (b[1] - a[1]); + } + + // Portions of below code copyright 2008 Dmitry Baranovskiy (via MIT license) + + function findDotsAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) { + var t1 = 1 - t, + t13 = Math.pow(t1, 3), + t12 = Math.pow(t1, 2), + t2 = t * t, + t3 = t2 * t, + x = t13 * p1x + t12 * 3 * t * c1x + t1 * 3 * t * t * c2x + t3 * p2x, + y = t13 * p1y + t12 * 3 * t * c1y + t1 * 3 * t * t * c2y + t3 * p2y, + mx = p1x + 2 * t * (c1x - p1x) + t2 * (c2x - 2 * c1x + p1x), + my = p1y + 2 * t * (c1y - p1y) + t2 * (c2y - 2 * c1y + p1y), + nx = c1x + 2 * t * (c2x - c1x) + t2 * (p2x - 2 * c2x + c1x), + ny = c1y + 2 * t * (c2y - c1y) + t2 * (p2y - 2 * c2y + c1y), + ax = t1 * p1x + t * c1x, + ay = t1 * p1y + t * c1y, + cx = t1 * c2x + t * p2x, + cy = t1 * c2y + t * p2y, + alpha = 90 - Math.atan2(mx - nx, my - ny) * 180 / Math.PI; + + if (mx > nx || my < ny) { + alpha += 180; + } + + return { + x: x, + y: y, + m: { x: mx, y: my }, + n: { x: nx, y: ny }, + start: { x: ax, y: ay }, + end: { x: cx, y: cy }, + alpha: alpha + }; + } + + function getPointAtSegmentLength(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, length) { + return length == null + ? bezlen(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) + : findDotsAtSegment( + p1x, + p1y, + c1x, + c1y, + c2x, + c2y, + p2x, + p2y, + getTatLen(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, length) + ); + } + + function pointAtLength(path, length, istotal) { + path = path2curve(path); + var x, + y, + p, + l, + sp = '', + subpaths = {}, + point, + len = 0; + for (var i = 0, ii = path.length; i < ii; i++) { + p = path[i]; + if (p[0] === 'M') { + x = +p[1]; + y = +p[2]; + } else { + l = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6]); + if (len + l > length) { + if (!istotal) { + point = getPointAtSegmentLength( + x, + y, + p[1], + p[2], + p[3], + p[4], + p[5], + p[6], + length - len + ); + + return { x: point.x, y: point.y, alpha: point.alpha }; + } + } + len += l; + x = +p[5]; + y = +p[6]; + } + sp += p.shift() + p; + } + subpaths.end = sp; + + point = istotal + ? len + : findDotsAtSegment(x, y, p[0], p[1], p[2], p[3], p[4], p[5], 1); + + if (point.alpha) { + point = { x: point.x, y: point.y, alpha: point.alpha }; + } + + return point; + } + + function pathToAbsolute(pathArray) { + var res = [], + x = 0, + y = 0, + mx = 0, + my = 0, + start = 0; + if (!pathArray) { + // console.warn("Unexpected state: undefined pathArray"); // shouldn't happen + return res; + } + if (pathArray[0][0] === 'M') { + x = +pathArray[0][1]; + y = +pathArray[0][2]; + mx = x; + my = y; + start++; + res[0] = ['M', x, y]; + } + + var dots, + crz = + pathArray.length === 3 && + pathArray[0][0] === 'M' && + pathArray[1][0].toUpperCase() === 'R' && + pathArray[2][0].toUpperCase() === 'Z'; + + for (var r, pa, i = start, ii = pathArray.length; i < ii; i++) { + res.push((r = [])); + pa = pathArray[i]; + if (pa[0] !== String.prototype.toUpperCase.call(pa[0])) { + r[0] = String.prototype.toUpperCase.call(pa[0]); + switch (r[0]) { + case 'A': + r[1] = pa[1]; + r[2] = pa[2]; + r[3] = pa[3]; + r[4] = pa[4]; + r[5] = pa[5]; + r[6] = +(pa[6] + x); + r[7] = +(pa[7] + y); + break; + case 'V': + r[1] = +pa[1] + y; + break; + case 'H': + r[1] = +pa[1] + x; + break; + case 'R': + dots = [x, y].concat(pa.slice(1)); + for (var j = 2, jj = dots.length; j < jj; j++) { + dots[j] = +dots[j] + x; + dots[++j] = +dots[j] + y; + } + res.pop(); + res = res.concat(catmullRom2bezier(dots, crz)); + break; + case 'M': + mx = +pa[1] + x; + my = +pa[2] + y; + break; + default: + for (j = 1, jj = pa.length; j < jj; j++) { + r[j] = +pa[j] + (j % 2 ? x : y); + } + } + } else if (pa[0] === 'R') { + dots = [x, y].concat(pa.slice(1)); + res.pop(); + res = res.concat(catmullRom2bezier(dots, crz)); + r = ['R'].concat(pa.slice(-2)); + } else { + for (var k = 0, kk = pa.length; k < kk; k++) { + r[k] = pa[k]; + } + } + switch (r[0]) { + case 'Z': + x = mx; + y = my; + break; + case 'H': + x = r[1]; + break; + case 'V': + y = r[1]; + break; + case 'M': + mx = r[r.length - 2]; + my = r[r.length - 1]; + break; + default: + x = r[r.length - 2]; + y = r[r.length - 1]; + } + } + return res; + } + + function path2curve(path, path2) { + var p = pathToAbsolute(path), + p2 = path2 && pathToAbsolute(path2); + var attrs = { x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null }; + var attrs2 = { x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null }; + var pcoms1 = []; // path commands of original path p + var pcoms2 = []; // path commands of original path p2 + var ii; + + var processPath = function processPath(path, d, pcom) { + var nx, + ny, + tq = { T: 1, Q: 1 }; + if (!path) { + return ['C', d.x, d.y, d.x, d.y, d.x, d.y]; + } + if (!(path[0] in tq)) { + d.qx = d.qy = null; + } + switch (path[0]) { + case 'M': + d.X = path[1]; + d.Y = path[2]; + break; + case 'A': + path = ['C'].concat(a2c.apply(0, [d.x, d.y].concat(path.slice(1)))); + break; + case 'S': + if (pcom === 'C' || pcom === 'S') { + nx = d.x * 2 - d.bx; + ny = d.y * 2 - d.by; + } else { + nx = d.x; + ny = d.y; + } + path = ['C', nx, ny].concat(path.slice(1)); + break; + case 'T': + if (pcom === 'Q' || pcom === 'T') { + d.qx = d.x * 2 - d.qx; + d.qy = d.y * 2 - d.qy; + } else { + d.qx = d.x; + d.qy = d.y; + } + path = ['C'].concat(q2c(d.x, d.y, d.qx, d.qy, path[1], path[2])); + break; + case 'Q': + d.qx = path[1]; + d.qy = path[2]; + path = ['C'].concat(q2c(d.x, d.y, path[1], path[2], path[3], path[4])); + + break; + case 'L': + path = ['C'].concat(l2c(d.x, d.y, path[1], path[2])); + break; + case 'H': + path = ['C'].concat(l2c(d.x, d.y, path[1], d.y)); + break; + case 'V': + path = ['C'].concat(l2c(d.x, d.y, d.x, path[1])); + break; + case 'Z': + path = ['C'].concat(l2c(d.x, d.y, d.X, d.Y)); + break; + } + + return path; + }, + fixArc = function fixArc(pp, i) { + if (pp[i].length > 7) { + pp[i].shift(); + var pi = pp[i]; + while (pi.length) { + pcoms1[i] = 'A'; + if (p2) { + pcoms2[i] = 'A'; + } + pp.splice(i++, 0, ['C'].concat(pi.splice(0, 6))); + } + pp.splice(i, 1); + ii = Math.max(p.length, (p2 && p2.length) || 0); + } + }, + fixM = function fixM(path1, path2, a1, a2, i) { + if (path1 && path2 && path1[i][0] === 'M' && path2[i][0] !== 'M') { + path2.splice(i, 0, ['M', a2.x, a2.y]); + a1.bx = 0; + a1.by = 0; + a1.x = path1[i][1]; + a1.y = path1[i][2]; + ii = Math.max(p.length, (p2 && p2.length) || 0); + } + }; + + var pfirst = ''; // temporary holder for original path command + var pcom = ''; // holder for previous path command of original path + + ii = Math.max(p.length, (p2 && p2.length) || 0); + for (var i = 0; i < ii; i++) { + if (p[i]) { + pfirst = p[i][0]; + } // save current path command + + if (pfirst !== 'C') { + pcoms1[i] = pfirst; // Save current path command + if (i) { + pcom = pcoms1[i - 1]; + } // Get previous path command pcom + } + p[i] = processPath(p[i], attrs, pcom); + + if (pcoms1[i] !== 'A' && pfirst === 'C') { + pcoms1[i] = 'C'; + } + + fixArc(p, i); // fixArc adds also the right amount of A:s to pcoms1 + + if (p2) { + // the same procedures is done to p2 + if (p2[i]) { + pfirst = p2[i][0]; + } + if (pfirst !== 'C') { + pcoms2[i] = pfirst; + if (i) { + pcom = pcoms2[i - 1]; + } + } + p2[i] = processPath(p2[i], attrs2, pcom); + + if (pcoms2[i] !== 'A' && pfirst === 'C') { + pcoms2[i] = 'C'; + } + + fixArc(p2, i); + } + fixM(p, p2, attrs, attrs2, i); + fixM(p2, p, attrs2, attrs, i); + var seg = p[i], + seg2 = p2 && p2[i], + seglen = seg.length, + seg2len = p2 && seg2.length; + attrs.x = seg[seglen - 2]; + attrs.y = seg[seglen - 1]; + attrs.bx = parseFloat(seg[seglen - 4]) || attrs.x; + attrs.by = parseFloat(seg[seglen - 3]) || attrs.y; + attrs2.bx = p2 && (parseFloat(seg2[seg2len - 4]) || attrs2.x); + attrs2.by = p2 && (parseFloat(seg2[seg2len - 3]) || attrs2.y); + attrs2.x = p2 && seg2[seg2len - 2]; + attrs2.y = p2 && seg2[seg2len - 1]; + } + + return p2 ? [p, p2] : p; + } + + function a2c(x1, y1, rx, ry, angle, lac, sweep_flag, x2, y2, recursive) { + // for more information of where this Math came from visit: + // http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes + var PI = Math.PI, + _120 = PI * 120 / 180, + f1, + f2, + cx, + cy, + rad = PI / 180 * (+angle || 0), + res = [], + xy, + rotate = function rotate(x, y, rad) { + var X = x * Math.cos(rad) - y * Math.sin(rad), + Y = x * Math.sin(rad) + y * Math.cos(rad); + return { x: X, y: Y }; + }; + if (!recursive) { + xy = rotate(x1, y1, -rad); + x1 = xy.x; + y1 = xy.y; + xy = rotate(x2, y2, -rad); + x2 = xy.x; + y2 = xy.y; + var x = (x1 - x2) / 2, + y = (y1 - y2) / 2, + h = x * x / (rx * rx) + y * y / (ry * ry); + if (h > 1) { + h = Math.sqrt(h); + rx = h * rx; + ry = h * ry; + } + var rx2 = rx * rx, + ry2 = ry * ry; + var k = + (lac === sweep_flag ? -1 : 1) * + Math.sqrt( + Math.abs( + (rx2 * ry2 - rx2 * y * y - ry2 * x * x) / (rx2 * y * y + ry2 * x * x) + ) + ); + + cx = k * rx * y / ry + (x1 + x2) / 2; + cy = k * -ry * x / rx + (y1 + y2) / 2; + f1 = Math.asin(((y1 - cy) / ry).toFixed(9)); + f2 = Math.asin(((y2 - cy) / ry).toFixed(9)); + + f1 = x1 < cx ? PI - f1 : f1; + f2 = x2 < cx ? PI - f2 : f2; + + if (f1 < 0) { + f1 = PI * 2 + f1; + } + if (f2 < 0) { + f2 = PI * 2 + f2; + } + + if (sweep_flag && f1 > f2) { + f1 = f1 - PI * 2; + } + if (!sweep_flag && f2 > f1) { + f2 = f2 - PI * 2; + } + } else { + f1 = recursive[0]; + f2 = recursive[1]; + cx = recursive[2]; + cy = recursive[3]; + } + var df = f2 - f1; + if (Math.abs(df) > _120) { + var f2old = f2, + x2old = x2, + y2old = y2; + f2 = f1 + _120 * (sweep_flag && f2 > f1 ? 1 : -1); + x2 = cx + rx * Math.cos(f2); + y2 = cy + ry * Math.sin(f2); + res = a2c(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [ + f2, + f2old, + cx, + cy + ]); + } + df = f2 - f1; + var c1 = Math.cos(f1), + s1 = Math.sin(f1), + c2 = Math.cos(f2), + s2 = Math.sin(f2), + t = Math.tan(df / 4), + hx = 4 / 3 * rx * t, + hy = 4 / 3 * ry * t, + m1 = [x1, y1], + m2 = [x1 + hx * s1, y1 - hy * c1], + m3 = [x2 + hx * s2, y2 - hy * c2], + m4 = [x2, y2]; + m2[0] = 2 * m1[0] - m2[0]; + m2[1] = 2 * m1[1] - m2[1]; + if (recursive) { + return [m2, m3, m4].concat(res); + } else { + res = [m2, m3, m4] + .concat(res) + .join() + .split(','); + var newres = []; + for (var i = 0, ii = res.length; i < ii; i++) { + newres[i] = + i % 2 + ? rotate(res[i - 1], res[i], rad).y + : rotate(res[i], res[i + 1], rad).x; + } + return newres; + } + } + + // http://schepers.cc/getting-to-the-point + function catmullRom2bezier(crp, z) { + var d = []; + for (var i = 0, iLen = crp.length; iLen - 2 * !z > i; i += 2) { + var p = [ + { + x: +crp[i - 2], + y: +crp[i - 1] + }, + + { + x: +crp[i], + y: +crp[i + 1] + }, + + { + x: +crp[i + 2], + y: +crp[i + 3] + }, + + { + x: +crp[i + 4], + y: +crp[i + 5] + } + ]; + + if (z) { + if (!i) { + p[0] = { + x: +crp[iLen - 2], + y: +crp[iLen - 1] + }; + } else if (iLen - 4 === i) { + p[3] = { + x: +crp[0], + y: +crp[1] + }; + } else if (iLen - 2 === i) { + p[2] = { + x: +crp[0], + y: +crp[1] + }; + + p[3] = { + x: +crp[2], + y: +crp[3] + }; + } + } else { + if (iLen - 4 === i) { + p[3] = p[2]; + } else if (!i) { + p[0] = { + x: +crp[i], + y: +crp[i + 1] + }; + } + } + d.push([ + 'C', + (-p[0].x + 6 * p[1].x + p[2].x) / 6, + (-p[0].y + 6 * p[1].y + p[2].y) / 6, + (p[1].x + 6 * p[2].x - p[3].x) / 6, + (p[1].y + 6 * p[2].y - p[3].y) / 6, + p[2].x, + p[2].y + ]); + } + + return d; + } + + function l2c(x1, y1, x2, y2) { + return [x1, y1, x2, y2, x2, y2]; + } + + function q2c(x1, y1, ax, ay, x2, y2) { + var _13 = 1 / 3, + _23 = 2 / 3; + return [ + _13 * x1 + _23 * ax, + _13 * y1 + _23 * ay, + _13 * x2 + _23 * ax, + _13 * y2 + _23 * ay, + x2, + y2 + ]; + } + + function bezlen(x1, y1, x2, y2, x3, y3, x4, y4, z) { + if (z == null) { + z = 1; + } + z = z > 1 ? 1 : z < 0 ? 0 : z; + var z2 = z / 2; + var n = 12; + var Tvalues = [ + -0.1252, + 0.1252, + -0.3678, + 0.3678, + -0.5873, + 0.5873, + -0.7699, + 0.7699, + -0.9041, + 0.9041, + -0.9816, + 0.9816 + ]; + + var sum = 0; + var Cvalues = [ + 0.2491, + 0.2491, + 0.2335, + 0.2335, + 0.2032, + 0.2032, + 0.1601, + 0.1601, + 0.1069, + 0.1069, + 0.0472, + 0.0472 + ]; + + for (var i = 0; i < n; i++) { + var ct = z2 * Tvalues[i] + z2, + xbase = base3(ct, x1, x2, x3, x4), + ybase = base3(ct, y1, y2, y3, y4), + comb = xbase * xbase + ybase * ybase; + sum += Cvalues[i] * Math.sqrt(comb); + } + return z2 * sum; + } + + function getTatLen(x1, y1, x2, y2, x3, y3, x4, y4, ll) { + if (ll < 0 || bezlen(x1, y1, x2, y2, x3, y3, x4, y4) < ll) { + return; + } + var t = 1, + step = t / 2, + t2 = t - step, + l, + e = 0.01; + l = bezlen(x1, y1, x2, y2, x3, y3, x4, y4, t2); + while (Math.abs(l - ll) > e) { + step /= 2; + t2 += (l < ll ? 1 : -1) * step; + l = bezlen(x1, y1, x2, y2, x3, y3, x4, y4, t2); + } + return t2; + } + + function base3(t, p1, p2, p3, p4) { + var t1 = -3 * p1 + 9 * p2 - 9 * p3 + 3 * p4, + t2 = t * t1 + 6 * p1 - 12 * p2 + 6 * p3; + return t * t2 - 3 * p1 + 3 * p2; + } + + function cacheKey() { + var hash = ''; + for (var i = arguments.length - 1; i >= 0; --i) { + hash += '๏ผŸ' + arguments[i]; + } + return hash; + } + + module.exports = p5; + }, + { '../core/constants': 18, '../core/main': 24 } + ], + 61: [ + function(_dereq_, module, exports) { + /** + * @module Data + * @submodule Array Functions + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + /** + * Adds a value to the end of an array. Extends the length of + * the array by one. Maps to Array.push(). + * + * @method append + * @deprecated Use array.push(value) instead. + * @param {Array} array Array to append + * @param {any} value to be added to the Array + * @return {Array} the array that was appended to + * @example + *
+ * function setup() { + * var myArray = ['Mango', 'Apple', 'Papaya']; + * print(myArray); // ['Mango', 'Apple', 'Papaya'] + * + * append(myArray, 'Peach'); + * print(myArray); // ['Mango', 'Apple', 'Papaya', 'Peach'] + * } + *
+ */ + p5.prototype.append = function(array, value) { + array.push(value); + return array; + }; + + /** + * Copies an array (or part of an array) to another array. The src array is + * copied to the dst array, beginning at the position specified by + * srcPosition and into the position specified by dstPosition. The number of + * elements to copy is determined by length. Note that copying values + * overwrites existing values in the destination array. To append values + * instead of overwriting them, use concat(). + *

+ * The simplified version with only two arguments, arrayCopy(src, dst), + * copies an entire array to another of the same size. It is equivalent to + * arrayCopy(src, 0, dst, 0, src.length). + *

+ * Using this function is far more efficient for copying array data than + * iterating through a for() loop and copying each element individually. + * + * @method arrayCopy + * @deprecated + * @param {Array} src the source Array + * @param {Integer} srcPosition starting position in the source Array + * @param {Array} dst the destination Array + * @param {Integer} dstPosition starting position in the destination Array + * @param {Integer} length number of Array elements to be copied + * + * @example + *
+ * var src = ['A', 'B', 'C']; + * var dst = [1, 2, 3]; + * var srcPosition = 1; + * var dstPosition = 0; + * var length = 2; + * + * print(src); // ['A', 'B', 'C'] + * print(dst); // [ 1 , 2 , 3 ] + * + * arrayCopy(src, srcPosition, dst, dstPosition, length); + * print(dst); // ['B', 'C', 3] + *
+ */ + /** + * @method arrayCopy + * @deprecated Use arr1.copyWithin(arr2) instead. + * @param {Array} src + * @param {Array} dst + * @param {Integer} [length] + */ + p5.prototype.arrayCopy = function(src, srcPosition, dst, dstPosition, length) { + // the index to begin splicing from dst array + var start; + var end; + + if (typeof length !== 'undefined') { + end = Math.min(length, src.length); + start = dstPosition; + src = src.slice(srcPosition, end + srcPosition); + } else { + if (typeof dst !== 'undefined') { + // src, dst, length + // rename so we don't get confused + end = dst; + end = Math.min(end, src.length); + } else { + // src, dst + end = src.length; + } + + start = 0; + // rename so we don't get confused + dst = srcPosition; + src = src.slice(0, end); + } + + // Since we are not returning the array and JavaScript is pass by reference + // we must modify the actual values of the array + // instead of reassigning arrays + Array.prototype.splice.apply(dst, [start, end].concat(src)); + }; + + /** + * Concatenates two arrays, maps to Array.concat(). Does not modify the + * input arrays. + * + * @method concat + * @deprecated Use arr1.concat(arr2) instead. + * @param {Array} a first Array to concatenate + * @param {Array} b second Array to concatenate + * @return {Array} concatenated array + * + * @example + *
+ * function setup() { + * var arr1 = ['A', 'B', 'C']; + * var arr2 = [1, 2, 3]; + * + * print(arr1); // ['A','B','C'] + * print(arr2); // [1,2,3] + * + * var arr3 = concat(arr1, arr2); + * + * print(arr1); // ['A','B','C'] + * print(arr2); // [1, 2, 3] + * print(arr3); // ['A','B','C', 1, 2, 3] + * } + *
+ */ + p5.prototype.concat = function(list0, list1) { + return list0.concat(list1); + }; + + /** + * Reverses the order of an array, maps to Array.reverse() + * + * @method reverse + * @deprecated Use array.reverse() instead. + * @param {Array} list Array to reverse + * @return {Array} the reversed list + * @example + *
+ * function setup() { + * var myArray = ['A', 'B', 'C']; + * print(myArray); // ['A','B','C'] + * + * reverse(myArray); + * print(myArray); // ['C','B','A'] + * } + *
+ */ + p5.prototype.reverse = function(list) { + return list.reverse(); + }; + + /** + * Decreases an array by one element and returns the shortened array, + * maps to Array.pop(). + * + * @method shorten + * @deprecated Use array.pop() instead. + * @param {Array} list Array to shorten + * @return {Array} shortened Array + * @example + *
+ * function setup() { + * var myArray = ['A', 'B', 'C']; + * print(myArray); // ['A', 'B', 'C'] + * var newArray = shorten(myArray); + * print(myArray); // ['A','B','C'] + * print(newArray); // ['A','B'] + * } + *
+ */ + p5.prototype.shorten = function(list) { + list.pop(); + return list; + }; + + /** + * Randomizes the order of the elements of an array. Implements + * + * Fisher-Yates Shuffle Algorithm. + * + * @method shuffle + * @param {Array} array Array to shuffle + * @param {Boolean} [bool] modify passed array + * @return {Array} shuffled Array + * @example + *
+ * function setup() { + * var regularArr = ['ABC', 'def', createVector(), TAU, Math.E]; + * print(regularArr); + * shuffle(regularArr, true); // force modifications to passed array + * print(regularArr); + * + * // By default shuffle() returns a shuffled cloned array: + * var newArr = shuffle(regularArr); + * print(regularArr); + * print(newArr); + * } + *
+ */ + p5.prototype.shuffle = function(arr, bool) { + var isView = ArrayBuffer && ArrayBuffer.isView && ArrayBuffer.isView(arr); + arr = bool || isView ? arr : arr.slice(); + + var rnd, + tmp, + idx = arr.length; + while (idx > 1) { + rnd = (Math.random() * idx) | 0; + + tmp = arr[--idx]; + arr[idx] = arr[rnd]; + arr[rnd] = tmp; + } + + return arr; + }; + + /** + * Sorts an array of numbers from smallest to largest, or puts an array of + * words in alphabetical order. The original array is not modified; a + * re-ordered array is returned. The count parameter states the number of + * elements to sort. For example, if there are 12 elements in an array and + * count is set to 5, only the first 5 elements in the array will be sorted. + * + * @method sort + * @deprecated Use array.sort() instead. + * @param {Array} list Array to sort + * @param {Integer} [count] number of elements to sort, starting from 0 + * @return {Array} the sorted list + * + * @example + *
+ * function setup() { + * var words = ['banana', 'apple', 'pear', 'lime']; + * print(words); // ['banana', 'apple', 'pear', 'lime'] + * var count = 4; // length of array + * + * words = sort(words, count); + * print(words); // ['apple', 'banana', 'lime', 'pear'] + * } + *
+ *
+ * function setup() { + * var numbers = [2, 6, 1, 5, 14, 9, 8, 12]; + * print(numbers); // [2, 6, 1, 5, 14, 9, 8, 12] + * var count = 5; // Less than the length of the array + * + * numbers = sort(numbers, count); + * print(numbers); // [1,2,5,6,14,9,8,12] + * } + *
+ */ + p5.prototype.sort = function(list, count) { + var arr = count ? list.slice(0, Math.min(count, list.length)) : list; + var rest = count ? list.slice(Math.min(count, list.length)) : []; + if (typeof arr[0] === 'string') { + arr = arr.sort(); + } else { + arr = arr.sort(function(a, b) { + return a - b; + }); + } + return arr.concat(rest); + }; + + /** + * Inserts a value or an array of values into an existing array. The first + * parameter specifies the initial array to be modified, and the second + * parameter defines the data to be inserted. The third parameter is an index + * value which specifies the array position from which to insert data. + * (Remember that array index numbering starts at zero, so the first position + * is 0, the second position is 1, and so on.) + * + * @method splice + * @deprecated Use array.splice() instead. + * @param {Array} list Array to splice into + * @param {any} value value to be spliced in + * @param {Integer} position in the array from which to insert data + * @return {Array} the list + * + * @example + *
+ * function setup() { + * var myArray = [0, 1, 2, 3, 4]; + * var insArray = ['A', 'B', 'C']; + * print(myArray); // [0, 1, 2, 3, 4] + * print(insArray); // ['A','B','C'] + * + * splice(myArray, insArray, 3); + * print(myArray); // [0,1,2,'A','B','C',3,4] + * } + *
+ */ + p5.prototype.splice = function(list, value, index) { + // note that splice returns spliced elements and not an array + Array.prototype.splice.apply(list, [index, 0].concat(value)); + + return list; + }; + + /** + * Extracts an array of elements from an existing array. The list parameter + * defines the array from which the elements will be copied, and the start + * and count parameters specify which elements to extract. If no count is + * given, elements will be extracted from the start to the end of the array. + * When specifying the start, remember that the first array element is 0. + * This function does not change the source array. + * + * @method subset + * @deprecated Use array.slice() instead. + * @param {Array} list Array to extract from + * @param {Integer} start position to begin + * @param {Integer} [count] number of values to extract + * @return {Array} Array of extracted elements + * + * @example + *
+ * function setup() { + * var myArray = [1, 2, 3, 4, 5]; + * print(myArray); // [1, 2, 3, 4, 5] + * + * var sub1 = subset(myArray, 0, 3); + * var sub2 = subset(myArray, 2, 2); + * print(sub1); // [1,2,3] + * print(sub2); // [3,4] + * } + *
+ */ + p5.prototype.subset = function(list, start, count) { + if (typeof count !== 'undefined') { + return list.slice(start, start + count); + } else { + return list.slice(start, list.length); + } + }; + + module.exports = p5; + }, + { '../core/main': 24 } + ], + 62: [ + function(_dereq_, module, exports) { + /** + * @module Data + * @submodule Conversion + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + /** + * Converts a string to its floating point representation. The contents of a + * string must resemble a number, or NaN (not a number) will be returned. + * For example, float("1234.56") evaluates to 1234.56, but float("giraffe") + * will return NaN. + * + * When an array of values is passed in, then an array of floats of the same + * length is returned. + * + * @method float + * @param {String} str float string to parse + * @return {Number} floating point representation of string + * @example + *
+ * var str = '20'; + * var diameter = float(str); + * ellipse(width / 2, height / 2, diameter, diameter); + *
+ *
+ * print(float('10.31')); // 10.31 + * print(float('Infinity')); // Infinity + * print(float('-Infinity')); // -Infinity + *
+ * + * @alt + * 20 by 20 white ellipse in the center of the canvas + * + */ + p5.prototype.float = function(str) { + if (str instanceof Array) { + return str.map(parseFloat); + } + return parseFloat(str); + }; + + /** + * Converts a boolean, string, or float to its integer representation. + * When an array of values is passed in, then an int array of the same length + * is returned. + * + * @method int + * @param {String|Boolean|Number} n value to parse + * @param {Integer} [radix] the radix to convert to (default: 10) + * @return {Number} integer representation of value + * + * @example + *
+ * print(int('10')); // 10 + * print(int(10.31)); // 10 + * print(int(-10)); // -10 + * print(int(true)); // 1 + * print(int(false)); // 0 + * print(int([false, true, '10.3', 9.8])); // [0, 1, 10, 9] + * print(int(Infinity)); // Infinity + * print(int('-Infinity')); // -Infinity + *
+ */ + /** + * @method int + * @param {Array} ns values to parse + * @return {Number[]} integer representation of values + */ + p5.prototype.int = function(n, radix) { + radix = radix || 10; + if (n === Infinity || n === 'Infinity') { + return Infinity; + } else if (n === -Infinity || n === '-Infinity') { + return -Infinity; + } else if (typeof n === 'string') { + return parseInt(n, radix); + } else if (typeof n === 'number') { + return n | 0; + } else if (typeof n === 'boolean') { + return n ? 1 : 0; + } else if (n instanceof Array) { + return n.map(function(n) { + return p5.prototype.int(n, radix); + }); + } + }; + + /** + * Converts a boolean, string or number to its string representation. + * When an array of values is passed in, then an array of strings of the same + * length is returned. + * + * @method str + * @param {String|Boolean|Number|Array} n value to parse + * @return {String} string representation of value + * @example + *
+ * print(str('10')); // "10" + * print(str(10.31)); // "10.31" + * print(str(-10)); // "-10" + * print(str(true)); // "true" + * print(str(false)); // "false" + * print(str([true, '10.3', 9.8])); // [ "true", "10.3", "9.8" ] + *
+ */ + p5.prototype.str = function(n) { + if (n instanceof Array) { + return n.map(p5.prototype.str); + } else { + return String(n); + } + }; + + /** + * Converts a number or string to its boolean representation. + * For a number, any non-zero value (positive or negative) evaluates to true, + * while zero evaluates to false. For a string, the value "true" evaluates to + * true, while any other value evaluates to false. When an array of number or + * string values is passed in, then a array of booleans of the same length is + * returned. + * + * @method boolean + * @param {String|Boolean|Number|Array} n value to parse + * @return {Boolean} boolean representation of value + * @example + *
+ * print(boolean(0)); // false + * print(boolean(1)); // true + * print(boolean('true')); // true + * print(boolean('abcd')); // false + * print(boolean([0, 12, 'true'])); // [false, true, true] + *
+ */ + p5.prototype.boolean = function(n) { + if (typeof n === 'number') { + return n !== 0; + } else if (typeof n === 'string') { + return n.toLowerCase() === 'true'; + } else if (typeof n === 'boolean') { + return n; + } else if (n instanceof Array) { + return n.map(p5.prototype.boolean); + } + }; + + /** + * Converts a number, string representation of a number, or boolean to its byte + * representation. A byte can be only a whole number between -128 and 127, so + * when a value outside of this range is converted, it wraps around to the + * corresponding byte representation. When an array of number, string or boolean + * values is passed in, then an array of bytes the same length is returned. + * + * @method byte + * @param {String|Boolean|Number} n value to parse + * @return {Number} byte representation of value + * + * @example + *
+ * print(byte(127)); // 127 + * print(byte(128)); // -128 + * print(byte(23.4)); // 23 + * print(byte('23.4')); // 23 + * print(byte('hello')); // NaN + * print(byte(true)); // 1 + * print(byte([0, 255, '100'])); // [0, -1, 100] + *
+ */ + /** + * @method byte + * @param {Array} ns values to parse + * @return {Number[]} array of byte representation of values + */ + p5.prototype.byte = function(n) { + var nn = p5.prototype.int(n, 10); + if (typeof nn === 'number') { + return (nn + 128) % 256 - 128; + } else if (nn instanceof Array) { + return nn.map(p5.prototype.byte); + } + }; + + /** + * Converts a number or string to its corresponding single-character + * string representation. If a string parameter is provided, it is first + * parsed as an integer and then translated into a single-character string. + * When an array of number or string values is passed in, then an array of + * single-character strings of the same length is returned. + * + * @method char + * @param {String|Number} n value to parse + * @return {String} string representation of value + * + * @example + *
+ * print(char(65)); // "A" + * print(char('65')); // "A" + * print(char([65, 66, 67])); // [ "A", "B", "C" ] + * print(join(char([65, 66, 67]), '')); // "ABC" + *
+ */ + /** + * @method char + * @param {Array} ns values to parse + * @return {String[]} array of string representation of values + */ + p5.prototype.char = function(n) { + if (typeof n === 'number' && !isNaN(n)) { + return String.fromCharCode(n); + } else if (n instanceof Array) { + return n.map(p5.prototype.char); + } else if (typeof n === 'string') { + return p5.prototype.char(parseInt(n, 10)); + } + }; + + /** + * Converts a single-character string to its corresponding integer + * representation. When an array of single-character string values is passed + * in, then an array of integers of the same length is returned. + * + * @method unchar + * @param {String} n value to parse + * @return {Number} integer representation of value + * + * @example + *
+ * print(unchar('A')); // 65 + * print(unchar(['A', 'B', 'C'])); // [ 65, 66, 67 ] + * print(unchar(split('ABC', ''))); // [ 65, 66, 67 ] + *
+ */ + /** + * @method unchar + * @param {Array} ns values to parse + * @return {Number[]} integer representation of values + */ + p5.prototype.unchar = function(n) { + if (typeof n === 'string' && n.length === 1) { + return n.charCodeAt(0); + } else if (n instanceof Array) { + return n.map(p5.prototype.unchar); + } + }; + + /** + * Converts a number to a string in its equivalent hexadecimal notation. If a + * second parameter is passed, it is used to set the number of characters to + * generate in the hexadecimal notation. When an array is passed in, an + * array of strings in hexadecimal notation of the same length is returned. + * + * @method hex + * @param {Number} n value to parse + * @param {Number} [digits] + * @return {String} hexadecimal string representation of value + * + * @example + *
+ * print(hex(255)); // "000000FF" + * print(hex(255, 6)); // "0000FF" + * print(hex([0, 127, 255], 6)); // [ "000000", "00007F", "0000FF" ] + * print(Infinity); // "FFFFFFFF" + * print(-Infinity); // "00000000" + *
+ */ + /** + * @method hex + * @param {Number[]} ns array of values to parse + * @param {Number} [digits] + * @return {String[]} hexadecimal string representation of values + */ + p5.prototype.hex = function(n, digits) { + digits = digits === undefined || digits === null ? (digits = 8) : digits; + if (n instanceof Array) { + return n.map(function(n) { + return p5.prototype.hex(n, digits); + }); + } else if (n === Infinity || n === -Infinity) { + var c = n === Infinity ? 'F' : '0'; + return c.repeat(digits); + } else if (typeof n === 'number') { + if (n < 0) { + n = 0xffffffff + n + 1; + } + var hex = Number(n) + .toString(16) + .toUpperCase(); + while (hex.length < digits) { + hex = '0' + hex; + } + if (hex.length >= digits) { + hex = hex.substring(hex.length - digits, hex.length); + } + return hex; + } + }; + + /** + * Converts a string representation of a hexadecimal number to its equivalent + * integer value. When an array of strings in hexadecimal notation is passed + * in, an array of integers of the same length is returned. + * + * @method unhex + * @param {String} n value to parse + * @return {Number} integer representation of hexadecimal value + * + * @example + *
+ * print(unhex('A')); // 10 + * print(unhex('FF')); // 255 + * print(unhex(['FF', 'AA', '00'])); // [ 255, 170, 0 ] + *
+ */ + /** + * @method unhex + * @param {Array} ns values to parse + * @return {Number[]} integer representations of hexadecimal value + */ + p5.prototype.unhex = function(n) { + if (n instanceof Array) { + return n.map(p5.prototype.unhex); + } else { + return parseInt('0x' + n, 16); + } + }; + + module.exports = p5; + }, + { '../core/main': 24 } + ], + 63: [ + function(_dereq_, module, exports) { + /** + * @module Data + * @submodule String Functions + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + _dereq_('../core/error_helpers'); + + //return p5; //LM is this a mistake? + + /** + * Combines an array of Strings into one String, each separated by the + * character(s) used for the separator parameter. To join arrays of ints or + * floats, it's necessary to first convert them to Strings using nf() or + * nfs(). + * + * @method join + * @param {Array} list array of Strings to be joined + * @param {String} separator String to be placed between each item + * @return {String} joined String + * @example + *
+ * + * var array = ['Hello', 'world!']; + * var separator = ' '; + * var message = join(array, separator); + * text(message, 5, 50); + * + *
+ * + * @alt + * "hello world!" displayed middle left of canvas. + * + */ + p5.prototype.join = function(list, separator) { + p5._validateParameters('join', arguments); + return list.join(separator); + }; + + /** + * This function is used to apply a regular expression to a piece of text, + * and return matching groups (elements found inside parentheses) as a + * String array. If there are no matches, a null value will be returned. + * If no groups are specified in the regular expression, but the sequence + * matches, an array of length 1 (with the matched text as the first element + * of the array) will be returned. + *

+ * To use the function, first check to see if the result is null. If the + * result is null, then the sequence did not match at all. If the sequence + * did match, an array is returned. + *

+ * If there are groups (specified by sets of parentheses) in the regular + * expression, then the contents of each will be returned in the array. + * Element [0] of a regular expression match returns the entire matching + * string, and the match groups start at element [1] (the first group is [1], + * the second [2], and so on). + * + * @method match + * @param {String} str the String to be searched + * @param {String} regexp the regexp to be used for matching + * @return {String[]} Array of Strings found + * @example + *
+ * + * var string = 'Hello p5js*!'; + * var regexp = 'p5js\\*'; + * var m = match(string, regexp); + * text(m, 5, 50); + * + *
+ * + * @alt + * "p5js*" displayed middle left of canvas. + * + */ + p5.prototype.match = function(str, reg) { + p5._validateParameters('match', arguments); + return str.match(reg); + }; + + /** + * This function is used to apply a regular expression to a piece of text, + * and return a list of matching groups (elements found inside parentheses) + * as a two-dimensional String array. If there are no matches, a null value + * will be returned. If no groups are specified in the regular expression, + * but the sequence matches, a two dimensional array is still returned, but + * the second dimension is only of length one. + *

+ * To use the function, first check to see if the result is null. If the + * result is null, then the sequence did not match at all. If the sequence + * did match, a 2D array is returned. + *

+ * If there are groups (specified by sets of parentheses) in the regular + * expression, then the contents of each will be returned in the array. + * Assuming a loop with counter variable i, element [i][0] of a regular + * expression match returns the entire matching string, and the match groups + * start at element [i][1] (the first group is [i][1], the second [i][2], + * and so on). + * + * @method matchAll + * @param {String} str the String to be searched + * @param {String} regexp the regexp to be used for matching + * @return {String[]} 2d Array of Strings found + * @example + *
+ * + * var string = 'Hello p5js*! Hello world!'; + * var regexp = 'Hello'; + * matchAll(string, regexp); + * + *
+ */ + p5.prototype.matchAll = function(str, reg) { + p5._validateParameters('matchAll', arguments); + var re = new RegExp(reg, 'g'); + var match = re.exec(str); + var matches = []; + while (match !== null) { + matches.push(match); + // matched text: match[0] + // match start: match.index + // capturing group n: match[n] + match = re.exec(str); + } + return matches; + }; + + /** + * Utility function for formatting numbers into strings. There are two + * versions: one for formatting floats, and one for formatting ints. + * The values for the digits, left, and right parameters should always + * be positive integers. + * (NOTE): Be cautious when using left and right parameters as it prepends numbers of 0's if the parameter + * if greater than the current length of the number. + * For example if number is 123.2 and left parameter passed is 4 which is greater than length of 123 + * (integer part) i.e 3 than result will be 0123.2. Same case for right parameter i.e. if right is 3 than + * the result will be 123.200. + * + * @method nf + * @param {Number|String} num the Number to format + * @param {Integer|String} [left] number of digits to the left of the + * decimal point + * @param {Integer|String} [right] number of digits to the right of the + * decimal point + * @return {String} formatted String + * + * @example + *
+ * + * var myFont; + * function preload() { + * myFont = loadFont('assets/fonts/inconsolata.ttf'); + * } + * function setup() { + * background(200); + * var num1 = 321; + * var num2 = -1321; + * + * noStroke(); + * fill(0); + * textFont(myFont); + * textSize(22); + * + * text(nf(num1, 4, 2), 10, 30); + * text(nf(num2, 4, 2), 10, 80); + * // Draw dividing line + * stroke(120); + * line(0, 50, width, 50); + * } + * + *
+ * + * @alt + * "0321.00" middle top, -1321.00" middle bottom canvas + */ + /** + * @method nf + * @param {Array} nums the Numbers to format + * @param {Integer|String} [left] + * @param {Integer|String} [right] + * @return {String[]} formatted Strings + */ + p5.prototype.nf = function(nums, left, right) { + p5._validateParameters('nf', arguments); + if (nums instanceof Array) { + return nums.map(function(x) { + return doNf(x, left, right); + }); + } else { + var typeOfFirst = Object.prototype.toString.call(nums); + if (typeOfFirst === '[object Arguments]') { + if (nums.length === 3) { + return this.nf(nums[0], nums[1], nums[2]); + } else if (nums.length === 2) { + return this.nf(nums[0], nums[1]); + } else { + return this.nf(nums[0]); + } + } else { + return doNf(nums, left, right); + } + } + }; + + function doNf(num, left, right) { + var neg = num < 0; + var n = neg ? num.toString().substring(1) : num.toString(); + var decimalInd = n.indexOf('.'); + var intPart = decimalInd !== -1 ? n.substring(0, decimalInd) : n; + var decPart = decimalInd !== -1 ? n.substring(decimalInd + 1) : ''; + var str = neg ? '-' : ''; + if (typeof right !== 'undefined') { + var decimal = ''; + if (decimalInd !== -1 || right - decPart.length > 0) { + decimal = '.'; + } + if (decPart.length > right) { + decPart = decPart.substring(0, right); + } + for (var i = 0; i < left - intPart.length; i++) { + str += '0'; + } + str += intPart; + str += decimal; + str += decPart; + for (var j = 0; j < right - decPart.length; j++) { + str += '0'; + } + return str; + } else { + for (var k = 0; k < Math.max(left - intPart.length, 0); k++) { + str += '0'; + } + str += n; + return str; + } + } + + /** + * Utility function for formatting numbers into strings and placing + * appropriate commas to mark units of 1000. There are two versions: one + * for formatting ints, and one for formatting an array of ints. The value + * for the right parameter should always be a positive integer. + * + * @method nfc + * @param {Number|String} num the Number to format + * @param {Integer|String} [right] number of digits to the right of the + * decimal point + * @return {String} formatted String + * + * @example + *
+ * + * function setup() { + * background(200); + * var num = 11253106.115; + * var numArr = [1, 1, 2]; + * + * noStroke(); + * fill(0); + * textSize(12); + * + * // Draw formatted numbers + * text(nfc(num, 4), 10, 30); + * text(nfc(numArr, 2), 10, 80); + * + * // Draw dividing line + * stroke(120); + * line(0, 50, width, 50); + * } + * + *
+ * + * @alt + * "11,253,106.115" top middle and "1.00,1.00,2.00" displayed bottom mid + */ + /** + * @method nfc + * @param {Array} nums the Numbers to format + * @param {Integer|String} [right] + * @return {String[]} formatted Strings + */ + p5.prototype.nfc = function(num, right) { + p5._validateParameters('nfc', arguments); + if (num instanceof Array) { + return num.map(function(x) { + return doNfc(x, right); + }); + } else { + return doNfc(num, right); + } + }; + function doNfc(num, right) { + num = num.toString(); + var dec = num.indexOf('.'); + var rem = dec !== -1 ? num.substring(dec) : ''; + var n = dec !== -1 ? num.substring(0, dec) : num; + n = n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); + if (right === 0) { + rem = ''; + } else if (typeof right !== 'undefined') { + if (right > rem.length) { + rem += dec === -1 ? '.' : ''; + var len = right - rem.length + 1; + for (var i = 0; i < len; i++) { + rem += '0'; + } + } else { + rem = rem.substring(0, right + 1); + } + } + return n + rem; + } + + /** + * Utility function for formatting numbers into strings. Similar to nf() but + * puts a "+" in front of positive numbers and a "-" in front of negative + * numbers. There are two versions: one for formatting floats, and one for + * formatting ints. The values for left, and right parameters + * should always be positive integers. + * + * @method nfp + * @param {Number} num the Number to format + * @param {Integer} [left] number of digits to the left of the decimal + * point + * @param {Integer} [right] number of digits to the right of the + * decimal point + * @return {String} formatted String + * + * @example + *
+ * + * function setup() { + * background(200); + * var num1 = 11253106.115; + * var num2 = -11253106.115; + * + * noStroke(); + * fill(0); + * textSize(12); + * + * // Draw formatted numbers + * text(nfp(num1, 4, 2), 10, 30); + * text(nfp(num2, 4, 2), 10, 80); + * + * // Draw dividing line + * stroke(120); + * line(0, 50, width, 50); + * } + * + *
+ * + * @alt + * "+11253106.11" top middle and "-11253106.11" displayed bottom middle + */ + /** + * @method nfp + * @param {Number[]} nums the Numbers to format + * @param {Integer} [left] + * @param {Integer} [right] + * @return {String[]} formatted Strings + */ + p5.prototype.nfp = function() { + p5._validateParameters('nfp', arguments); + var nfRes = p5.prototype.nf.apply(this, arguments); + if (nfRes instanceof Array) { + return nfRes.map(addNfp); + } else { + return addNfp(nfRes); + } + }; + + function addNfp(num) { + return parseFloat(num) > 0 ? '+' + num.toString() : num.toString(); + } + + /** + * Utility function for formatting numbers into strings. Similar to nf() but + * puts an additional "_" (space) in front of positive numbers just in case to align it with negative + * numbers which includes "-" (minus) sign. + * The main usecase of nfs() can be seen when one wants to align the digits (place values) of a non-negative + * number with some negative number (See the example to get a clear picture). + * There are two versions: one for formatting float, and one for formatting int. + * The values for the digits, left, and right parameters should always be positive integers. + * (IMP): The result on the canvas basically the expected alignment can vary based on the typeface you are using. + * (NOTE): Be cautious when using left and right parameters as it prepends numbers of 0's if the parameter + * if greater than the current length of the number. + * For example if number is 123.2 and left parameter passed is 4 which is greater than length of 123 + * (integer part) i.e 3 than result will be 0123.2. Same case for right parameter i.e. if right is 3 than + * the result will be 123.200. + * + * @method nfs + * @param {Number} num the Number to format + * @param {Integer} [left] number of digits to the left of the decimal + * point + * @param {Integer} [right] number of digits to the right of the + * decimal point + * @return {String} formatted String + * + * @example + *
+ * + * var myFont; + * function preload() { + * myFont = loadFont('assets/fonts/inconsolata.ttf'); + * } + * function setup() { + * background(200); + * var num1 = 321; + * var num2 = -1321; + * + * noStroke(); + * fill(0); + * textFont(myFont); + * textSize(22); + * + * // nfs() aligns num1 (positive number) with num2 (negative number) by + * // adding a blank space in front of the num1 (positive number) + * // [left = 4] in num1 add one 0 in front, to align the digits with num2 + * // [right = 2] in num1 and num2 adds two 0's after both numbers + * // To see the differences check the example of nf() too. + * text(nfs(num1, 4, 2), 10, 30); + * text(nfs(num2, 4, 2), 10, 80); + * // Draw dividing line + * stroke(120); + * line(0, 50, width, 50); + * } + * + *
+ * + * @alt + * "0321.00" top middle and "-1321.00" displayed bottom middle + */ + /** + * @method nfs + * @param {Array} nums the Numbers to format + * @param {Integer} [left] + * @param {Integer} [right] + * @return {String[]} formatted Strings + */ + p5.prototype.nfs = function() { + p5._validateParameters('nfs', arguments); + var nfRes = p5.prototype.nf.apply(this, arguments); + if (nfRes instanceof Array) { + return nfRes.map(addNfs); + } else { + return addNfs(nfRes); + } + }; + + function addNfs(num) { + return parseFloat(num) >= 0 ? ' ' + num.toString() : num.toString(); + } + + /** + * The split() function maps to String.split(), it breaks a String into + * pieces using a character or string as the delimiter. The delim parameter + * specifies the character or characters that mark the boundaries between + * each piece. A String[] array is returned that contains each of the pieces. + * + * The splitTokens() function works in a similar fashion, except that it + * splits using a range of characters instead of a specific character or + * sequence. + * + * @method split + * @param {String} value the String to be split + * @param {String} delim the String used to separate the data + * @return {String[]} Array of Strings + * @example + *
+ * + * var names = 'Pat,Xio,Alex'; + * var splitString = split(names, ','); + * text(splitString[0], 5, 30); + * text(splitString[1], 5, 50); + * text(splitString[2], 5, 70); + * + *
+ * + * @alt + * "pat" top left, "Xio" mid left and "Alex" displayed bottom left + * + */ + p5.prototype.split = function(str, delim) { + p5._validateParameters('split', arguments); + return str.split(delim); + }; + + /** + * The splitTokens() function splits a String at one or many character + * delimiters or "tokens." The delim parameter specifies the character or + * characters to be used as a boundary. + *

+ * If no delim characters are specified, any whitespace character is used to + * split. Whitespace characters include tab (\t), line feed (\n), carriage + * return (\r), form feed (\f), and space. + * + * @method splitTokens + * @param {String} value the String to be split + * @param {String} [delim] list of individual Strings that will be used as + * separators + * @return {String[]} Array of Strings + * @example + *
+ * + * function setup() { + * var myStr = 'Mango, Banana, Lime'; + * var myStrArr = splitTokens(myStr, ','); + * + * print(myStrArr); // prints : ["Mango"," Banana"," Lime"] + * } + * + *
+ */ + p5.prototype.splitTokens = function(value, delims) { + p5._validateParameters('splitTokens', arguments); + var d; + if (typeof delims !== 'undefined') { + var str = delims; + var sqc = /\]/g.exec(str); + var sqo = /\[/g.exec(str); + if (sqo && sqc) { + str = str.slice(0, sqc.index) + str.slice(sqc.index + 1); + sqo = /\[/g.exec(str); + str = str.slice(0, sqo.index) + str.slice(sqo.index + 1); + d = new RegExp('[\\[' + str + '\\]]', 'g'); + } else if (sqc) { + str = str.slice(0, sqc.index) + str.slice(sqc.index + 1); + d = new RegExp('[' + str + '\\]]', 'g'); + } else if (sqo) { + str = str.slice(0, sqo.index) + str.slice(sqo.index + 1); + d = new RegExp('[' + str + '\\[]', 'g'); + } else { + d = new RegExp('[' + str + ']', 'g'); + } + } else { + d = /\s/g; + } + return value.split(d).filter(function(n) { + return n; + }); + }; + + /** + * Removes whitespace characters from the beginning and end of a String. In + * addition to standard whitespace characters such as space, carriage return, + * and tab, this function also removes the Unicode "nbsp" character. + * + * @method trim + * @param {String} str a String to be trimmed + * @return {String} a trimmed String + * + * @example + *
+ * + * var string = trim(' No new lines\n '); + * text(string + ' here', 2, 50); + * + *
+ * + * @alt + * "No new lines here" displayed center canvas + */ + /** + * @method trim + * @param {Array} strs an Array of Strings to be trimmed + * @return {String[]} an Array of trimmed Strings + */ + p5.prototype.trim = function(str) { + p5._validateParameters('trim', arguments); + if (str instanceof Array) { + return str.map(this.trim); + } else { + return str.trim(); + } + }; + + module.exports = p5; + }, + { '../core/error_helpers': 20, '../core/main': 24 } + ], + 64: [ + function(_dereq_, module, exports) { + /** + * @module IO + * @submodule Time & Date + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + /** + * p5.js communicates with the clock on your computer. The day() function + * returns the current day as a value from 1 - 31. + * + * @method day + * @return {Integer} the current day + * @example + *
+ * + * var d = day(); + * text('Current day: \n' + d, 5, 50); + * + *
+ * + * @alt + * Current day is displayed + * + */ + p5.prototype.day = function() { + return new Date().getDate(); + }; + + /** + * p5.js communicates with the clock on your computer. The hour() function + * returns the current hour as a value from 0 - 23. + * + * @method hour + * @return {Integer} the current hour + * @example + *
+ * + * var h = hour(); + * text('Current hour:\n' + h, 5, 50); + * + *
+ * + * @alt + * Current hour is displayed + * + */ + p5.prototype.hour = function() { + return new Date().getHours(); + }; + + /** + * p5.js communicates with the clock on your computer. The minute() function + * returns the current minute as a value from 0 - 59. + * + * @method minute + * @return {Integer} the current minute + * @example + *
+ * + * var m = minute(); + * text('Current minute: \n' + m, 5, 50); + * + *
+ * + * @alt + * Current minute is displayed + * + */ + p5.prototype.minute = function() { + return new Date().getMinutes(); + }; + + /** + * Returns the number of milliseconds (thousandths of a second) since + * starting the program. This information is often used for timing events and + * animation sequences. + * + * @method millis + * @return {Number} the number of milliseconds since starting the program + * @example + *
+ * + * var millisecond = millis(); + * text('Milliseconds \nrunning: \n' + millisecond, 5, 40); + * + *
+ * + * @alt + * number of milliseconds since program has started displayed + * + */ + p5.prototype.millis = function() { + return window.performance.now(); + }; + + /** + * p5.js communicates with the clock on your computer. The month() function + * returns the current month as a value from 1 - 12. + * + * @method month + * @return {Integer} the current month + * @example + *
+ * + * var m = month(); + * text('Current month: \n' + m, 5, 50); + * + *
+ * + * @alt + * Current month is displayed + * + */ + p5.prototype.month = function() { + return new Date().getMonth() + 1; //January is 0! + }; + + /** + * p5.js communicates with the clock on your computer. The second() function + * returns the current second as a value from 0 - 59. + * + * @method second + * @return {Integer} the current second + * @example + *
+ * + * var s = second(); + * text('Current second: \n' + s, 5, 50); + * + *
+ * + * @alt + * Current second is displayed + * + */ + p5.prototype.second = function() { + return new Date().getSeconds(); + }; + + /** + * p5.js communicates with the clock on your computer. The year() function + * returns the current year as an integer (2014, 2015, 2016, etc). + * + * @method year + * @return {Integer} the current year + * @example + *
+ * + * var y = year(); + * text('Current year: \n' + y, 5, 50); + * + *
+ * + * @alt + * Current year is displayed + * + */ + p5.prototype.year = function() { + return new Date().getFullYear(); + }; + + module.exports = p5; + }, + { '../core/main': 24 } + ], + 65: [ + function(_dereq_, module, exports) { + /** + * @module Shape + * @submodule 3D Primitives + * @for p5 + * @requires core + * @requires p5.Geometry + */ + + 'use strict'; + var p5 = _dereq_('../core/main'); + _dereq_('./p5.Geometry'); + var constants = _dereq_('../core/constants'); + + /** + * Draw a plane with given a width and height + * @method plane + * @param {Number} [width] width of the plane + * @param {Number} [height] height of the plane + * @param {Integer} [detailX] Optional number of triangle + * subdivisions in x-dimension + * @param {Integer} [detailY] Optional number of triangle + * subdivisions in y-dimension + * @chainable + * @example + *
+ * + * // draw a plane + * // with width 50 and height 50 + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(200); + * plane(50, 50); + * } + * + *
+ * + * @alt + * Nothing displayed on canvas + * Rotating interior view of a box with sides that change color. + * 3d red and green gradient. + * Rotating interior view of a cylinder with sides that change color. + * Rotating view of a cylinder with sides that change color. + * 3d red and green gradient. + * rotating view of a multi-colored cylinder with concave sides. + */ + p5.prototype.plane = function(width, height, detailX, detailY) { + this._assert3d('plane'); + p5._validateParameters('plane', arguments); + if (typeof width === 'undefined') { + width = 50; + } + if (typeof height === 'undefined') { + height = width; + } + + if (typeof detailX === 'undefined') { + detailX = 1; + } + if (typeof detailY === 'undefined') { + detailY = 1; + } + + var gId = 'plane|' + detailX + '|' + detailY; + + if (!this._renderer.geometryInHash(gId)) { + var _plane = function _plane() { + var u, v, p; + for (var i = 0; i <= this.detailY; i++) { + v = i / this.detailY; + for (var j = 0; j <= this.detailX; j++) { + u = j / this.detailX; + p = new p5.Vector(u - 0.5, v - 0.5, 0); + this.vertices.push(p); + this.uvs.push(u, v); + } + } + }; + var planeGeom = new p5.Geometry(detailX, detailY, _plane); + planeGeom.computeFaces().computeNormals(); + if (detailX <= 1 && detailY <= 1) { + planeGeom._makeTriangleEdges()._edgesToVertices(); + } else { + console.log( + 'Cannot draw stroke on plane objects with more' + + ' than 1 detailX or 1 detailY' + ); + } + this._renderer.createBuffers(gId, planeGeom); + } + + this._renderer.drawBuffersScaled(gId, width, height, 1); + return this; + }; + + /** + * Draw a box with given width, height and depth + * @method box + * @param {Number} [width] width of the box + * @param {Number} [Height] height of the box + * @param {Number} [depth] depth of the box + * @param {Integer} [detailX] Optional number of triangle + * subdivisions in x-dimension + * @param {Integer} [detailY] Optional number of triangle + * subdivisions in y-dimension + * @chainable + * @example + *
+ * + * // draw a spinning box + * // with width, height and depth of 50 + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(200); + * rotateX(frameCount * 0.01); + * rotateY(frameCount * 0.01); + * box(50); + * } + * + *
+ */ + p5.prototype.box = function(width, height, depth, detailX, detailY) { + this._assert3d('box'); + p5._validateParameters('box', arguments); + if (typeof width === 'undefined') { + width = 50; + } + if (typeof height === 'undefined') { + height = width; + } + if (typeof depth === 'undefined') { + depth = height; + } + + var perPixelLighting = + this._renderer.attributes && this._renderer.attributes.perPixelLighting; + if (typeof detailX === 'undefined') { + detailX = perPixelLighting ? 1 : 4; + } + if (typeof detailY === 'undefined') { + detailY = perPixelLighting ? 1 : 4; + } + + var gId = 'box|' + detailX + '|' + detailY; + if (!this._renderer.geometryInHash(gId)) { + var _box = function _box() { + var cubeIndices = [ + [0, 4, 2, 6], // -1, 0, 0],// -x + [1, 3, 5, 7], // +1, 0, 0],// +x + [0, 1, 4, 5], // 0, -1, 0],// -y + [2, 6, 3, 7], // 0, +1, 0],// +y + [0, 2, 1, 3], // 0, 0, -1],// -z + [4, 5, 6, 7] // 0, 0, +1] // +z + ]; + //using strokeIndices instead of faces for strokes + //to avoid diagonal stroke lines across face of box + this.strokeIndices = [ + [0, 1], + [1, 3], + [3, 2], + [6, 7], + [8, 9], + [9, 11], + [14, 15], + [16, 17], + [17, 19], + [18, 19], + [20, 21], + [22, 23] + ]; + + for (var i = 0; i < cubeIndices.length; i++) { + var cubeIndex = cubeIndices[i]; + var v = i * 4; + for (var j = 0; j < 4; j++) { + var d = cubeIndex[j]; + //inspired by lightgl: + //https://github.com/evanw/lightgl.js + //octants:https://en.wikipedia.org/wiki/Octant_(solid_geometry) + var octant = new p5.Vector( + ((d & 1) * 2 - 1) / 2, + ((d & 2) - 1) / 2, + ((d & 4) / 2 - 1) / 2 + ); + + this.vertices.push(octant); + this.uvs.push(j & 1, (j & 2) / 2); + } + this.faces.push([v, v + 1, v + 2]); + this.faces.push([v + 2, v + 1, v + 3]); + } + }; + var boxGeom = new p5.Geometry(detailX, detailY, _box); + boxGeom.computeNormals(); + if (detailX <= 4 && detailY <= 4) { + boxGeom._makeTriangleEdges()._edgesToVertices(); + } else { + console.log( + 'Cannot draw stroke on box objects with more' + + ' than 4 detailX or 4 detailY' + ); + } + //initialize our geometry buffer with + //the key val pair: + //geometry Id, Geom object + this._renderer.createBuffers(gId, boxGeom); + } + this._renderer.drawBuffersScaled(gId, width, height, depth); + + return this; + }; + + /** + * Draw a sphere with given radius + * @method sphere + * @param {Number} [radius] radius of circle + * @param {Integer} [detailX] number of segments, + * the more segments the smoother geometry + * default is 24 + * @param {Integer} [detailY] number of segments, + * the more segments the smoother geometry + * default is 16 + * @chainable + * @example + *
+ * + * // draw a sphere with radius 40 + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(200); + * sphere(40); + * } + * + *
+ */ + p5.prototype.sphere = function(radius, detailX, detailY) { + this._assert3d('sphere'); + p5._validateParameters('sphere', arguments); + if (typeof radius === 'undefined') { + radius = 50; + } + if (typeof detailX === 'undefined') { + detailX = 24; + } + if (typeof detailY === 'undefined') { + detailY = 16; + } + + this.ellipsoid(radius, radius, radius, detailX, detailY); + + return this; + }; + + /** + * @private + * Helper function for creating both cones and cyllinders + * Will only generate well-defined geometry when bottomRadius, height > 0 + * and topRadius >= 0 + * If topRadius == 0, topCap should be false + */ + var _truncatedCone = function _truncatedCone( + bottomRadius, + topRadius, + height, + detailX, + detailY, + bottomCap, + topCap + ) { + bottomRadius = bottomRadius <= 0 ? 1 : bottomRadius; + topRadius = topRadius < 0 ? 0 : topRadius; + height = height <= 0 ? bottomRadius : height; + detailX = detailX < 3 ? 3 : detailX; + detailY = detailY < 1 ? 1 : detailY; + bottomCap = bottomCap === undefined ? true : bottomCap; + topCap = topCap === undefined ? topRadius !== 0 : topCap; + var start = bottomCap ? -2 : 0; + var end = detailY + (topCap ? 2 : 0); + //ensure constant slant for interior vertex normals + var slant = Math.atan2(bottomRadius - topRadius, height); + var sinSlant = Math.sin(slant); + var cosSlant = Math.cos(slant); + var yy, ii, jj; + for (yy = start; yy <= end; ++yy) { + var v = yy / detailY; + var y = height * v; + var ringRadius; + if (yy < 0) { + //for the bottomCap edge + y = 0; + v = 0; + ringRadius = bottomRadius; + } else if (yy > detailY) { + //for the topCap edge + y = height; + v = 1; + ringRadius = topRadius; + } else { + //for the middle + ringRadius = bottomRadius + (topRadius - bottomRadius) * v; + } + if (yy === -2 || yy === detailY + 2) { + //center of bottom or top caps + ringRadius = 0; + } + + y -= height / 2; //shift coordiate origin to the center of object + for (ii = 0; ii < detailX; ++ii) { + var u = ii / detailX; + var ur = 2 * Math.PI * u; + var sur = Math.sin(ur); + var cur = Math.cos(ur); + + //VERTICES + this.vertices.push(new p5.Vector(sur * ringRadius, y, cur * ringRadius)); + + //VERTEX NORMALS + var vertexNormal; + if (yy < 0) { + vertexNormal = new p5.Vector(0, -1, 0); + } else if (yy > detailY && topRadius) { + vertexNormal = new p5.Vector(0, 1, 0); + } else { + vertexNormal = new p5.Vector(sur * cosSlant, sinSlant, cur * cosSlant); + } + this.vertexNormals.push(vertexNormal); + //UVs + this.uvs.push(u, v); + } + } + + var startIndex = 0; + if (bottomCap) { + for (jj = 0; jj < detailX; ++jj) { + var nextjj = (jj + 1) % detailX; + this.faces.push([ + startIndex + jj, + startIndex + detailX + nextjj, + startIndex + detailX + jj + ]); + } + startIndex += detailX * 2; + } + for (yy = 0; yy < detailY; ++yy) { + for (ii = 0; ii < detailX; ++ii) { + var nextii = (ii + 1) % detailX; + this.faces.push([ + startIndex + ii, + startIndex + nextii, + startIndex + detailX + nextii + ]); + + this.faces.push([ + startIndex + ii, + startIndex + detailX + nextii, + startIndex + detailX + ii + ]); + } + startIndex += detailX; + } + if (topCap) { + startIndex += detailX; + for (ii = 0; ii < detailX; ++ii) { + this.faces.push([ + startIndex + ii, + startIndex + (ii + 1) % detailX, + startIndex + detailX + ]); + } + } + }; + + /** + * Draw a cylinder with given radius and height + * @method cylinder + * @param {Number} [radius] radius of the surface + * @param {Number} [height] height of the cylinder + * @param {Integer} [detailX] number of segments, + * the more segments the smoother geometry + * default is 24 + * @param {Integer} [detailY] number of segments in y-dimension, + * the more segments the smoother geometry + * default is 1 + * @param {Boolean} [bottomCap] whether to draw the bottom of the cylinder + * @param {Boolean} [topCap] whether to draw the top of the cylinder + * @chainable + * @example + *
+ * + * // draw a spinning cylinder + * // with radius 20 and height 50 + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(200); + * rotateX(frameCount * 0.01); + * rotateZ(frameCount * 0.01); + * cylinder(20, 50); + * } + * + *
+ */ + p5.prototype.cylinder = function( + radius, + height, + detailX, + detailY, + bottomCap, + topCap + ) { + this._assert3d('cylinder'); + p5._validateParameters('cylinder', arguments); + if (typeof radius === 'undefined') { + radius = 50; + } + if (typeof height === 'undefined') { + height = radius; + } + if (typeof detailX === 'undefined') { + detailX = 24; + } + if (typeof detailY === 'undefined') { + detailY = 1; + } + if (typeof topCap === 'undefined') { + topCap = true; + } + if (typeof bottomCap === 'undefined') { + bottomCap = true; + } + + var gId = + 'cylinder|' + detailX + '|' + detailY + '|' + bottomCap + '|' + topCap; + if (!this._renderer.geometryInHash(gId)) { + var cylinderGeom = new p5.Geometry(detailX, detailY); + _truncatedCone.call( + cylinderGeom, + 1, + 1, + 1, + detailX, + detailY, + bottomCap, + topCap + ); + + // normals are computed in call to _truncatedCone + if (detailX <= 24 && detailY <= 16) { + cylinderGeom._makeTriangleEdges()._edgesToVertices(); + } else { + console.log( + 'Cannot draw stroke on cylinder objects with more' + + ' than 24 detailX or 16 detailY' + ); + } + this._renderer.createBuffers(gId, cylinderGeom); + } + + this._renderer.drawBuffersScaled(gId, radius, height, radius); + + return this; + }; + + /** + * Draw a cone with given radius and height + * @method cone + * @param {Number} [radius] radius of the bottom surface + * @param {Number} [height] height of the cone + * @param {Integer} [detailX] number of segments, + * the more segments the smoother geometry + * default is 24 + * @param {Integer} [detailY] number of segments, + * the more segments the smoother geometry + * default is 1 + * @param {Boolean} [cap] whether to draw the base of the cone + * @chainable + * @example + *
+ * + * // draw a spinning cone + * // with radius 40 and height 70 + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(200); + * rotateX(frameCount * 0.01); + * rotateZ(frameCount * 0.01); + * cone(40, 70); + * } + * + *
+ */ + p5.prototype.cone = function(radius, height, detailX, detailY, cap) { + this._assert3d('cone'); + p5._validateParameters('cone', arguments); + if (typeof radius === 'undefined') { + radius = 50; + } + if (typeof height === 'undefined') { + height = radius; + } + if (typeof detailX === 'undefined') { + detailX = 24; + } + if (typeof detailY === 'undefined') { + detailY = 1; + } + if (typeof cap === 'undefined') { + cap = true; + } + + var gId = 'cone|' + detailX + '|' + detailY + '|' + cap; + if (!this._renderer.geometryInHash(gId)) { + var coneGeom = new p5.Geometry(detailX, detailY); + _truncatedCone.call(coneGeom, 1, 0, 1, detailX, detailY, cap, false); + if (detailX <= 24 && detailY <= 16) { + coneGeom._makeTriangleEdges()._edgesToVertices(); + } else { + console.log( + 'Cannot draw stroke on cone objects with more' + + ' than 24 detailX or 16 detailY' + ); + } + this._renderer.createBuffers(gId, coneGeom); + } + + this._renderer.drawBuffersScaled(gId, radius, height, radius); + + return this; + }; + + /** + * Draw an ellipsoid with given radius + * @method ellipsoid + * @param {Number} [radiusx] x-radius of ellipsoid + * @param {Number} [radiusy] y-radius of ellipsoid + * @param {Number} [radiusz] z-radius of ellipsoid + * @param {Integer} [detailX] number of segments, + * the more segments the smoother geometry + * default is 24. Avoid detail number above + * 150, it may crash the browser. + * @param {Integer} [detailY] number of segments, + * the more segments the smoother geometry + * default is 16. Avoid detail number above + * 150, it may crash the browser. + * @chainable + * @example + *
+ * + * // draw an ellipsoid + * // with radius 30, 40 and 40. + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(200); + * ellipsoid(30, 40, 40); + * } + * + *
+ */ + p5.prototype.ellipsoid = function(radiusX, radiusY, radiusZ, detailX, detailY) { + this._assert3d('ellipsoid'); + p5._validateParameters('ellipsoid', arguments); + if (typeof radiusX === 'undefined') { + radiusX = 50; + } + if (typeof radiusY === 'undefined') { + radiusY = radiusX; + } + if (typeof radiusZ === 'undefined') { + radiusZ = radiusX; + } + + if (typeof detailX === 'undefined') { + detailX = 24; + } + if (typeof detailY === 'undefined') { + detailY = 16; + } + + var gId = 'ellipsoid|' + detailX + '|' + detailY; + + if (!this._renderer.geometryInHash(gId)) { + var _ellipsoid = function _ellipsoid() { + for (var i = 0; i <= this.detailY; i++) { + var v = i / this.detailY; + var phi = Math.PI * v - Math.PI / 2; + var cosPhi = Math.cos(phi); + var sinPhi = Math.sin(phi); + + for (var j = 0; j <= this.detailX; j++) { + var u = j / this.detailX; + var theta = 2 * Math.PI * u; + var cosTheta = Math.cos(theta); + var sinTheta = Math.sin(theta); + var p = new p5.Vector(cosPhi * sinTheta, sinPhi, cosPhi * cosTheta); + this.vertices.push(p); + this.vertexNormals.push(p); + this.uvs.push(u, v); + } + } + }; + var ellipsoidGeom = new p5.Geometry(detailX, detailY, _ellipsoid); + ellipsoidGeom.computeFaces(); + if (detailX <= 24 && detailY <= 24) { + ellipsoidGeom._makeTriangleEdges()._edgesToVertices(); + } else { + console.log( + 'Cannot draw stroke on ellipsoids with more' + + ' than 24 detailX or 24 detailY' + ); + } + this._renderer.createBuffers(gId, ellipsoidGeom); + } + + this._renderer.drawBuffersScaled(gId, radiusX, radiusY, radiusZ); + + return this; + }; + + /** + * Draw a torus with given radius and tube radius + * @method torus + * @param {Number} [radius] radius of the whole ring + * @param {Number} [tubeRadius] radius of the tube + * @param {Integer} [detailX] number of segments in x-dimension, + * the more segments the smoother geometry + * default is 24 + * @param {Integer} [detailY] number of segments in y-dimension, + * the more segments the smoother geometry + * default is 16 + * @chainable + * @example + *
+ * + * // draw a spinning torus + * // with ring radius 30 and tube radius 15 + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(200); + * rotateX(frameCount * 0.01); + * rotateY(frameCount * 0.01); + * torus(30, 15); + * } + * + *
+ */ + p5.prototype.torus = function(radius, tubeRadius, detailX, detailY) { + this._assert3d('torus'); + p5._validateParameters('torus', arguments); + if (typeof radius === 'undefined') { + radius = 50; + } else if (!radius) { + return; // nothing to draw + } + + if (typeof tubeRadius === 'undefined') { + tubeRadius = 10; + } else if (!tubeRadius) { + return; // nothing to draw + } + + if (typeof detailX === 'undefined') { + detailX = 24; + } + if (typeof detailY === 'undefined') { + detailY = 16; + } + + var tubeRatio = (tubeRadius / radius).toPrecision(4); + var gId = 'torus|' + tubeRatio + '|' + detailX + '|' + detailY; + + if (!this._renderer.geometryInHash(gId)) { + var _torus = function _torus() { + for (var i = 0; i <= this.detailY; i++) { + var v = i / this.detailY; + var phi = 2 * Math.PI * v; + var cosPhi = Math.cos(phi); + var sinPhi = Math.sin(phi); + var r = 1 + tubeRatio * cosPhi; + + for (var j = 0; j <= this.detailX; j++) { + var u = j / this.detailX; + var theta = 2 * Math.PI * u; + var cosTheta = Math.cos(theta); + var sinTheta = Math.sin(theta); + + var p = new p5.Vector(r * cosTheta, r * sinTheta, tubeRatio * sinPhi); + + var n = new p5.Vector(cosPhi * cosTheta, cosPhi * sinTheta, sinPhi); + + this.vertices.push(p); + this.vertexNormals.push(n); + this.uvs.push(u, v); + } + } + }; + var torusGeom = new p5.Geometry(detailX, detailY, _torus); + torusGeom.computeFaces(); + if (detailX <= 24 && detailY <= 16) { + torusGeom._makeTriangleEdges()._edgesToVertices(); + } else { + console.log( + 'Cannot draw strokes on torus object with more' + + ' than 24 detailX or 16 detailY' + ); + } + this._renderer.createBuffers(gId, torusGeom); + } + this._renderer.drawBuffersScaled(gId, radius, radius, radius); + + return this; + }; + + /////////////////////// + /// 2D primitives + ///////////////////////// + + /** + * Draws a point, a coordinate in space at the dimension of one pixel, + * given x, y and z coordinates. The color of the point is determined + * by the current stroke, while the point size is determined by current + * stroke weight. + * @private + * @param {Number} x x-coordinate of point + * @param {Number} y y-coordinate of point + * @param {Number} z z-coordinate of point + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(50); + * stroke(255); + * strokeWeight(4); + * point(25, 0); + * strokeWeight(3); + * point(-25, 0); + * strokeWeight(2); + * point(0, 25); + * strokeWeight(1); + * point(0, -25); + * } + * + *
+ */ + p5.RendererGL.prototype.point = function(x, y, z) { + if (typeof z === 'undefined') { + z = 0; + } + + var _vertex = []; + _vertex.push(new p5.Vector(x, y, z)); + this._drawPoints(_vertex, this._pointVertexBuffer); + + return this; + }; + + p5.RendererGL.prototype.triangle = function(args) { + var x1 = args[0], + y1 = args[1]; + var x2 = args[2], + y2 = args[3]; + var x3 = args[4], + y3 = args[5]; + + var gId = 'tri'; + if (!this.geometryInHash(gId)) { + var _triangle = function _triangle() { + var vertices = []; + vertices.push(new p5.Vector(0, 0, 0)); + vertices.push(new p5.Vector(0, 1, 0)); + vertices.push(new p5.Vector(1, 0, 0)); + this.strokeIndices = [[0, 1], [1, 2], [2, 0]]; + this.vertices = vertices; + this.faces = [[0, 1, 2]]; + this.uvs = [0, 0, 0, 1, 1, 1]; + }; + var triGeom = new p5.Geometry(1, 1, _triangle); + triGeom._makeTriangleEdges()._edgesToVertices(); + triGeom.computeNormals(); + this.createBuffers(gId, triGeom); + } + + // only one triangle is cached, one point is at the origin, and the + // two adjacent sides are tne unit vectors along the X & Y axes. + // + // this matrix multiplication transforms those two unit vectors + // onto the required vector prior to rendering, and moves the + // origin appropriately. + var uMVMatrix = this.uMVMatrix.copy(); + try { + // prettier-ignore + var mult = new p5.Matrix([ + x2 - x1, y2 - y1, 0, 0, // the resulting unit X-axis + x3 - x1, y3 - y1, 0, 0, // the resulting unit Y-axis + 0, 0, 1, 0, // the resulting unit Z-axis (unchanged) + x1, y1, 0, 1 // the resulting origin + ]).mult(this.uMVMatrix); + + this.uMVMatrix = mult; + + this.drawBuffers(gId); + } finally { + this.uMVMatrix = uMVMatrix; + } + + return this; + }; + + p5.RendererGL.prototype.ellipse = function(args) { + this.arc( + args[0], + args[1], + args[2], + args[3], + 0, + constants.TWO_PI, + constants.OPEN, + args[4] + ); + }; + + p5.RendererGL.prototype.arc = function(args) { + var x = arguments[0]; + var y = arguments[1]; + var width = arguments[2]; + var height = arguments[3]; + var start = arguments[4]; + var stop = arguments[5]; + var mode = arguments[6]; + var detail = arguments[7] || 25; + + var shape; + var gId; + + // check if it is an ellipse or an arc + if (Math.abs(stop - start) >= constants.TWO_PI) { + shape = 'ellipse'; + gId = shape + '|' + detail + '|'; + } else { + shape = 'arc'; + gId = shape + '|' + start + '|' + stop + '|' + mode + '|' + detail + '|'; + } + + if (!this.geometryInHash(gId)) { + var _arc = function _arc() { + this.strokeIndices = []; + + // if the start and stop angles are not the same, push vertices to the array + if (start.toFixed(10) !== stop.toFixed(10)) { + // if the mode specified is PIE or null, push the mid point of the arc in vertices + if (mode === constants.PIE || typeof mode === 'undefined') { + this.vertices.push(new p5.Vector(0.5, 0.5, 0)); + this.uvs.push([0.5, 0.5]); + } + + // vertices for the perimeter of the circle + for (var i = 0; i <= detail; i++) { + var u = i / detail; + var theta = (stop - start) * u + start; + + var _x = 0.5 + Math.cos(theta) / 2; + var _y = 0.5 + Math.sin(theta) / 2; + + this.vertices.push(new p5.Vector(_x, _y, 0)); + this.uvs.push([_x, _y]); + + if (i < detail - 1) { + this.faces.push([0, i + 1, i + 2]); + this.strokeIndices.push([i + 1, i + 2]); + } + } + + // check the mode specified in order to push vertices and faces, different for each mode + switch (mode) { + case constants.PIE: + this.faces.push([ + 0, + this.vertices.length - 2, + this.vertices.length - 1 + ]); + + this.strokeIndices.push([0, 1]); + this.strokeIndices.push([ + this.vertices.length - 2, + this.vertices.length - 1 + ]); + + this.strokeIndices.push([0, this.vertices.length - 1]); + break; + + case constants.CHORD: + this.strokeIndices.push([0, 1]); + this.strokeIndices.push([0, this.vertices.length - 1]); + break; + + case constants.OPEN: + this.strokeIndices.push([0, 1]); + break; + + default: + this.faces.push([ + 0, + this.vertices.length - 2, + this.vertices.length - 1 + ]); + + this.strokeIndices.push([ + this.vertices.length - 2, + this.vertices.length - 1 + ]); + } + } + }; + + var arcGeom = new p5.Geometry(detail, 1, _arc); + arcGeom.computeNormals(); + + if (detail <= 50) { + arcGeom._makeTriangleEdges()._edgesToVertices(arcGeom); + } else { + console.log('Cannot stroke ' + shape + ' with more than 50 detail'); + } + + this.createBuffers(gId, arcGeom); + } + + var uMVMatrix = this.uMVMatrix.copy(); + + try { + this.uMVMatrix.translate([x, y, 0]); + this.uMVMatrix.scale(width, height, 1); + + this.drawBuffers(gId); + } finally { + this.uMVMatrix = uMVMatrix; + } + + return this; + }; + + p5.RendererGL.prototype.rect = function(args) { + var perPixelLighting = this._pInst._glAttributes.perPixelLighting; + var x = args[0]; + var y = args[1]; + var width = args[2]; + var height = args[3]; + var detailX = args[4] || (perPixelLighting ? 1 : 24); + var detailY = args[5] || (perPixelLighting ? 1 : 16); + var gId = 'rect|' + detailX + '|' + detailY; + if (!this.geometryInHash(gId)) { + var _rect = function _rect() { + for (var i = 0; i <= this.detailY; i++) { + var v = i / this.detailY; + for (var j = 0; j <= this.detailX; j++) { + var u = j / this.detailX; + var p = new p5.Vector(u, v, 0); + this.vertices.push(p); + this.uvs.push(u, v); + } + } + // using stroke indices to avoid stroke over face(s) of rectangle + if (detailX > 0 && detailY > 0) { + this.strokeIndices = [ + [0, detailX], + [detailX, (detailX + 1) * (detailY + 1) - 1], + [(detailX + 1) * (detailY + 1) - 1, (detailX + 1) * detailY], + [(detailX + 1) * detailY, 0] + ]; + } + }; + var rectGeom = new p5.Geometry(detailX, detailY, _rect); + rectGeom + .computeFaces() + .computeNormals() + ._makeTriangleEdges() + ._edgesToVertices(); + this.createBuffers(gId, rectGeom); + } + + // only a single rectangle (of a given detail) is cached: a square with + // opposite corners at (0,0) & (1,1). + // + // before rendering, this square is scaled & moved to the required location. + var uMVMatrix = this.uMVMatrix.copy(); + try { + this.uMVMatrix.translate([x, y, 0]); + this.uMVMatrix.scale(width, height, 1); + + this.drawBuffers(gId); + } finally { + this.uMVMatrix = uMVMatrix; + } + return this; + }; + + // prettier-ignore + p5.RendererGL.prototype.quad = function (x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4) { + var gId = + 'quad|' + + x1 + + '|' + + y1 + + '|' + + z1 + + '|' + + x2 + + '|' + + y2 + + '|' + + z2 + + '|' + + x3 + + '|' + + y3 + + '|' + + z3 + + '|' + + x4 + + '|' + + y4 + + '|' + + z4; + if (!this.geometryInHash(gId)) { + var _quad = function _quad() { + this.vertices.push(new p5.Vector(x1, y1, z1)); + this.vertices.push(new p5.Vector(x2, y2, z2)); + this.vertices.push(new p5.Vector(x3, y3, z3)); + this.vertices.push(new p5.Vector(x4, y4, z4)); + this.uvs.push(0, 0, 1, 0, 1, 1, 0, 1); + this.strokeIndices = [[0, 1], [1, 2], [2, 3], [3, 0]]; + }; + var quadGeom = new p5.Geometry(2, 2, _quad); + quadGeom. + computeNormals(). + _makeTriangleEdges(). + _edgesToVertices(); + quadGeom.faces = [[0, 1, 2], [2, 3, 0]]; + this.createBuffers(gId, quadGeom); + } + this.drawBuffers(gId); + return this; +}; + + //this implementation of bezier curve + //is based on Bernstein polynomial + // pretier-ignore + p5.RendererGL.prototype.bezier = function( + x1, + y1, + z1, // x2 + x2, // y2 + y2, // x3 + z2, // y3 + x3, // x4 + y3, // y4 + z3, + x4, + y4, + z4 + ) { + if (arguments.length === 8) { + y4 = y3; + x4 = x3; + y3 = z2; + x3 = y2; + y2 = x2; + x2 = z1; + z1 = z2 = z3 = z4 = 0; + } + var bezierDetail = this._pInst._bezierDetail || 20; //value of Bezier detail + this.beginShape(); + for (var i = 0; i <= bezierDetail; i++) { + var c1 = Math.pow(1 - i / bezierDetail, 3); + var c2 = 3 * (i / bezierDetail) * Math.pow(1 - i / bezierDetail, 2); + var c3 = 3 * Math.pow(i / bezierDetail, 2) * (1 - i / bezierDetail); + var c4 = Math.pow(i / bezierDetail, 3); + this.vertex( + x1 * c1 + x2 * c2 + x3 * c3 + x4 * c4, + y1 * c1 + y2 * c2 + y3 * c3 + y4 * c4, + z1 * c1 + z2 * c2 + z3 * c3 + z4 * c4 + ); + } + this.endShape(); + return this; + }; + + // pretier-ignore + p5.RendererGL.prototype.curve = function( + x1, + y1, + z1, // x2 + x2, // y2 + y2, // x3 + z2, // y3 + x3, // x4 + y3, // y4 + z3, + x4, + y4, + z4 + ) { + if (arguments.length === 8) { + x4 = x3; + y4 = y3; + x3 = y2; + y3 = x2; + x2 = z1; + y2 = x2; + z1 = z2 = z3 = z4 = 0; + } + var curveDetail = this._pInst._curveDetail; + this.beginShape(); + for (var i = 0; i <= curveDetail; i++) { + var c1 = Math.pow(i / curveDetail, 3) * 0.5; + var c2 = Math.pow(i / curveDetail, 2) * 0.5; + var c3 = i / curveDetail * 0.5; + var c4 = 0.5; + var vx = + c1 * (-x1 + 3 * x2 - 3 * x3 + x4) + + c2 * (2 * x1 - 5 * x2 + 4 * x3 - x4) + + c3 * (-x1 + x3) + + c4 * (2 * x2); + var vy = + c1 * (-y1 + 3 * y2 - 3 * y3 + y4) + + c2 * (2 * y1 - 5 * y2 + 4 * y3 - y4) + + c3 * (-y1 + y3) + + c4 * (2 * y2); + var vz = + c1 * (-z1 + 3 * z2 - 3 * z3 + z4) + + c2 * (2 * z1 - 5 * z2 + 4 * z3 - z4) + + c3 * (-z1 + z3) + + c4 * (2 * z2); + this.vertex(vx, vy, vz); + } + this.endShape(); + return this; + }; + + /** + * Draw a line given two points + * @private + * @param {Number} x0 x-coordinate of first vertex + * @param {Number} y0 y-coordinate of first vertex + * @param {Number} z0 z-coordinate of first vertex + * @param {Number} x1 x-coordinate of second vertex + * @param {Number} y1 y-coordinate of second vertex + * @param {Number} z1 z-coordinate of second vertex + * @chainable + * @example + *
+ * + * //draw a line + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(200); + * rotateX(frameCount * 0.01); + * rotateY(frameCount * 0.01); + * // Use fill instead of stroke to change the color of shape. + * fill(255, 0, 0); + * line(10, 10, 0, 60, 60, 20); + * } + * + *
+ */ + p5.RendererGL.prototype.line = function() { + if (arguments.length === 6) { + this.beginShape(); + this.vertex(arguments[0], arguments[1], arguments[2]); + this.vertex(arguments[3], arguments[4], arguments[5]); + this.endShape(); + } else if (arguments.length === 4) { + this.beginShape(); + this.vertex(arguments[0], arguments[1], 0); + this.vertex(arguments[2], arguments[3], 0); + this.endShape(); + } + return this; + }; + + p5.RendererGL.prototype.bezierVertex = function() { + if (this.immediateMode._bezierVertex.length === 0) { + throw Error('vertex() must be used once before calling bezierVertex()'); + } else { + var w_x = []; + var w_y = []; + var w_z = []; + var t, _x, _y, _z, i; + var argLength = arguments.length; + + t = 0; + + if ( + this._lookUpTableBezier.length === 0 || + this._lutBezierDetail !== this._pInst._curveDetail + ) { + this._lookUpTableBezier = []; + this._lutBezierDetail = this._pInst._curveDetail; + var step = 1 / this._lutBezierDetail; + var start = 0; + var end = 1; + var j = 0; + while (start < 1) { + t = parseFloat(start.toFixed(6)); + this._lookUpTableBezier[j] = this._bezierCoefficients(t); + if (end.toFixed(6) === step.toFixed(6)) { + t = parseFloat(end.toFixed(6)) + parseFloat(start.toFixed(6)); + ++j; + this._lookUpTableBezier[j] = this._bezierCoefficients(t); + break; + } + start += step; + end -= step; + ++j; + } + } + + var LUTLength = this._lookUpTableBezier.length; + + if (argLength === 6) { + this.isBezier = true; + + w_x = [ + this.immediateMode._bezierVertex[0], + arguments[0], + arguments[2], + arguments[4] + ]; + + w_y = [ + this.immediateMode._bezierVertex[1], + arguments[1], + arguments[3], + arguments[5] + ]; + + for (i = 0; i < LUTLength; i++) { + _x = + w_x[0] * this._lookUpTableBezier[i][0] + + w_x[1] * this._lookUpTableBezier[i][1] + + w_x[2] * this._lookUpTableBezier[i][2] + + w_x[3] * this._lookUpTableBezier[i][3]; + _y = + w_y[0] * this._lookUpTableBezier[i][0] + + w_y[1] * this._lookUpTableBezier[i][1] + + w_y[2] * this._lookUpTableBezier[i][2] + + w_y[3] * this._lookUpTableBezier[i][3]; + this.vertex(_x, _y); + } + this.immediateMode._bezierVertex[0] = arguments[4]; + this.immediateMode._bezierVertex[1] = arguments[5]; + } else if (argLength === 9) { + this.isBezier = true; + + w_x = [ + this.immediateMode._bezierVertex[0], + arguments[0], + arguments[3], + arguments[6] + ]; + + w_y = [ + this.immediateMode._bezierVertex[1], + arguments[1], + arguments[4], + arguments[7] + ]; + + w_z = [ + this.immediateMode._bezierVertex[2], + arguments[2], + arguments[5], + arguments[8] + ]; + + for (i = 0; i < LUTLength; i++) { + _x = + w_x[0] * this._lookUpTableBezier[i][0] + + w_x[1] * this._lookUpTableBezier[i][1] + + w_x[2] * this._lookUpTableBezier[i][2] + + w_x[3] * this._lookUpTableBezier[i][3]; + _y = + w_y[0] * this._lookUpTableBezier[i][0] + + w_y[1] * this._lookUpTableBezier[i][1] + + w_y[2] * this._lookUpTableBezier[i][2] + + w_y[3] * this._lookUpTableBezier[i][3]; + _z = + w_z[0] * this._lookUpTableBezier[i][0] + + w_z[1] * this._lookUpTableBezier[i][1] + + w_z[2] * this._lookUpTableBezier[i][2] + + w_z[3] * this._lookUpTableBezier[i][3]; + this.vertex(_x, _y, _z); + } + this.immediateMode._bezierVertex[0] = arguments[6]; + this.immediateMode._bezierVertex[1] = arguments[7]; + this.immediateMode._bezierVertex[2] = arguments[8]; + } + } + }; + + p5.RendererGL.prototype.quadraticVertex = function() { + if (this.immediateMode._quadraticVertex.length === 0) { + throw Error('vertex() must be used once before calling quadraticVertex()'); + } else { + var w_x = []; + var w_y = []; + var w_z = []; + var t, _x, _y, _z, i; + var argLength = arguments.length; + + t = 0; + + if ( + this._lookUpTableQuadratic.length === 0 || + this._lutQuadraticDetail !== this._pInst._curveDetail + ) { + this._lookUpTableQuadratic = []; + this._lutQuadraticDetail = this._pInst._curveDetail; + var step = 1 / this._lutQuadraticDetail; + var start = 0; + var end = 1; + var j = 0; + while (start < 1) { + t = parseFloat(start.toFixed(6)); + this._lookUpTableQuadratic[j] = this._quadraticCoefficients(t); + if (end.toFixed(6) === step.toFixed(6)) { + t = parseFloat(end.toFixed(6)) + parseFloat(start.toFixed(6)); + ++j; + this._lookUpTableQuadratic[j] = this._quadraticCoefficients(t); + break; + } + start += step; + end -= step; + ++j; + } + } + + var LUTLength = this._lookUpTableQuadratic.length; + + if (argLength === 4) { + this.isQuadratic = true; + + w_x = [this.immediateMode._quadraticVertex[0], arguments[0], arguments[2]]; + + w_y = [this.immediateMode._quadraticVertex[1], arguments[1], arguments[3]]; + + for (i = 0; i < LUTLength; i++) { + _x = + w_x[0] * this._lookUpTableQuadratic[i][0] + + w_x[1] * this._lookUpTableQuadratic[i][1] + + w_x[2] * this._lookUpTableQuadratic[i][2]; + _y = + w_y[0] * this._lookUpTableQuadratic[i][0] + + w_y[1] * this._lookUpTableQuadratic[i][1] + + w_y[2] * this._lookUpTableQuadratic[i][2]; + this.vertex(_x, _y); + } + + this.immediateMode._quadraticVertex[0] = arguments[2]; + this.immediateMode._quadraticVertex[1] = arguments[3]; + } else if (argLength === 6) { + this.isQuadratic = true; + + w_x = [this.immediateMode._quadraticVertex[0], arguments[0], arguments[3]]; + + w_y = [this.immediateMode._quadraticVertex[1], arguments[1], arguments[4]]; + + w_z = [this.immediateMode._quadraticVertex[2], arguments[2], arguments[5]]; + + for (i = 0; i < LUTLength; i++) { + _x = + w_x[0] * this._lookUpTableQuadratic[i][0] + + w_x[1] * this._lookUpTableQuadratic[i][1] + + w_x[2] * this._lookUpTableQuadratic[i][2]; + _y = + w_y[0] * this._lookUpTableQuadratic[i][0] + + w_y[1] * this._lookUpTableQuadratic[i][1] + + w_y[2] * this._lookUpTableQuadratic[i][2]; + _z = + w_z[0] * this._lookUpTableQuadratic[i][0] + + w_z[1] * this._lookUpTableQuadratic[i][1] + + w_z[2] * this._lookUpTableQuadratic[i][2]; + this.vertex(_x, _y, _z); + } + + this.immediateMode._quadraticVertex[0] = arguments[3]; + this.immediateMode._quadraticVertex[1] = arguments[4]; + this.immediateMode._quadraticVertex[2] = arguments[5]; + } + } + }; + + p5.RendererGL.prototype.curveVertex = function() { + var w_x = []; + var w_y = []; + var w_z = []; + var t, _x, _y, _z, i; + t = 0; + var argLength = arguments.length; + + if ( + this._lookUpTableBezier.length === 0 || + this._lutBezierDetail !== this._pInst._curveDetail + ) { + this._lookUpTableBezier = []; + this._lutBezierDetail = this._pInst._curveDetail; + var step = 1 / this._lutBezierDetail; + var start = 0; + var end = 1; + var j = 0; + while (start < 1) { + t = parseFloat(start.toFixed(6)); + this._lookUpTableBezier[j] = this._bezierCoefficients(t); + if (end.toFixed(6) === step.toFixed(6)) { + t = parseFloat(end.toFixed(6)) + parseFloat(start.toFixed(6)); + ++j; + this._lookUpTableBezier[j] = this._bezierCoefficients(t); + break; + } + start += step; + end -= step; + ++j; + } + } + + var LUTLength = this._lookUpTableBezier.length; + + if (argLength === 2) { + this.immediateMode._curveVertex.push(arguments[0]); + this.immediateMode._curveVertex.push(arguments[1]); + if (this.immediateMode._curveVertex.length === 8) { + this.isCurve = true; + w_x = this._bezierToCatmull([ + this.immediateMode._curveVertex[0], + this.immediateMode._curveVertex[2], + this.immediateMode._curveVertex[4], + this.immediateMode._curveVertex[6] + ]); + + w_y = this._bezierToCatmull([ + this.immediateMode._curveVertex[1], + this.immediateMode._curveVertex[3], + this.immediateMode._curveVertex[5], + this.immediateMode._curveVertex[7] + ]); + + for (i = 0; i < LUTLength; i++) { + _x = + w_x[0] * this._lookUpTableBezier[i][0] + + w_x[1] * this._lookUpTableBezier[i][1] + + w_x[2] * this._lookUpTableBezier[i][2] + + w_x[3] * this._lookUpTableBezier[i][3]; + _y = + w_y[0] * this._lookUpTableBezier[i][0] + + w_y[1] * this._lookUpTableBezier[i][1] + + w_y[2] * this._lookUpTableBezier[i][2] + + w_y[3] * this._lookUpTableBezier[i][3]; + this.vertex(_x, _y); + } + for (i = 0; i < argLength; i++) { + this.immediateMode._curveVertex.shift(); + } + } + } else if (argLength === 3) { + this.immediateMode._curveVertex.push(arguments[0]); + this.immediateMode._curveVertex.push(arguments[1]); + this.immediateMode._curveVertex.push(arguments[2]); + if (this.immediateMode._curveVertex.length === 12) { + this.isCurve = true; + w_x = this._bezierToCatmull([ + this.immediateMode._curveVertex[0], + this.immediateMode._curveVertex[3], + this.immediateMode._curveVertex[6], + this.immediateMode._curveVertex[9] + ]); + + w_y = this._bezierToCatmull([ + this.immediateMode._curveVertex[1], + this.immediateMode._curveVertex[4], + this.immediateMode._curveVertex[7], + this.immediateMode._curveVertex[10] + ]); + + w_z = this._bezierToCatmull([ + this.immediateMode._curveVertex[2], + this.immediateMode._curveVertex[5], + this.immediateMode._curveVertex[8], + this.immediateMode._curveVertex[11] + ]); + + for (i = 0; i < LUTLength; i++) { + _x = + w_x[0] * this._lookUpTableBezier[i][0] + + w_x[1] * this._lookUpTableBezier[i][1] + + w_x[2] * this._lookUpTableBezier[i][2] + + w_x[3] * this._lookUpTableBezier[i][3]; + _y = + w_y[0] * this._lookUpTableBezier[i][0] + + w_y[1] * this._lookUpTableBezier[i][1] + + w_y[2] * this._lookUpTableBezier[i][2] + + w_y[3] * this._lookUpTableBezier[i][3]; + _z = + w_z[0] * this._lookUpTableBezier[i][0] + + w_z[1] * this._lookUpTableBezier[i][1] + + w_z[2] * this._lookUpTableBezier[i][2] + + w_z[3] * this._lookUpTableBezier[i][3]; + this.vertex(_x, _y, _z); + } + for (i = 0; i < argLength; i++) { + this.immediateMode._curveVertex.shift(); + } + } + } + }; + + p5.RendererGL.prototype.image = function( + img, + sx, + sy, + sWidth, + sHeight, + dx, + dy, + dWidth, + dHeight + ) { + this._pInst.push(); + + this._pInst.texture(img); + this._pInst.textureMode(constants.NORMAL); + + var u0 = 0; + if (sx <= img.width) { + u0 = sx / img.width; + } + + var u1 = 1; + if (sx + sWidth <= img.width) { + u1 = (sx + sWidth) / img.width; + } + + var v0 = 0; + if (sy <= img.height) { + v0 = sy / img.height; + } + + var v1 = 1; + if (sy + sHeight <= img.height) { + v1 = (sy + sHeight) / img.height; + } + + this.beginShape(); + this.vertex(dx, dy, 0, u0, v0); + this.vertex(dx + dWidth, dy, 0, u1, v0); + this.vertex(dx + dWidth, dy + dHeight, 0, u1, v1); + this.vertex(dx, dy + dHeight, 0, u0, v1); + this.endShape(constants.CLOSE); + + this._pInst.pop(); + }; + + module.exports = p5; + }, + { '../core/constants': 18, '../core/main': 24, './p5.Geometry': 71 } + ], + 66: [ + function(_dereq_, module, exports) { + /** + * @module Lights, Camera + * @submodule Interaction + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + var constants = _dereq_('../core/constants'); + + /** + * Allows movement around a 3D sketch using a mouse or trackpad. Left-clicking + * and dragging will rotate the camera position about the center of the sketch, + * right-clicking and dragging will pan the camera position without rotation, + * and using the mouse wheel (scrolling) will move the camera closer or further + * from the center of the sketch. This function can be called with parameters + * dictating sensitivity to mouse movement along the X and Y axes. Calling + * this function without parameters is equivalent to calling orbitControl(1,1). + * To reverse direction of movement in either axis, enter a negative number + * for sensitivity. + * @method orbitControl + * @for p5 + * @param {Number} [sensitivityX] sensitivity to mouse movement along X axis + * @param {Number} [sensitivityY] sensitivity to mouse movement along Y axis + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * normalMaterial(); + * } + * function draw() { + * background(200); + * orbitControl(); + * rotateY(0.5); + * box(30, 50); + * } + * + *
+ * + * @alt + * Camera orbits around a box when mouse is hold-clicked & then moved. + */ + + // implementation based on three.js 'orbitControls': + // https://github.com/mrdoob/three.js/blob/dev/examples/js/controls/OrbitControls.js + p5.prototype.orbitControl = function(sensitivityX, sensitivityY) { + this._assert3d('orbitControl'); + p5._validateParameters('orbitControl', arguments); + + // If the mouse is not in bounds of the canvas, disable all behaviors: + var mouseInCanvas = + this.mouseX < this.width && + this.mouseX > 0 && + this.mouseY < this.height && + this.mouseY > 0; + if (!mouseInCanvas) return; + + var cam = this._renderer._curCamera; + + if (typeof sensitivityX === 'undefined') { + sensitivityX = 1; + } + if (typeof sensitivityY === 'undefined') { + sensitivityY = sensitivityX; + } + + // default right-mouse and mouse-wheel behaviors (context menu and scrolling, + // respectively) are disabled here to allow use of those events for panning and + // zooming + + // disable context menu for canvas element and add 'contextMenuDisabled' + // flag to p5 instance + if (this.contextMenuDisabled !== true) { + this.canvas.oncontextmenu = function() { + return false; + }; + this._setProperty('contextMenuDisabled', true); + } + + // disable default scrolling behavior on the canvas element and add + // 'wheelDefaultDisabled' flag to p5 instance + if (this.wheelDefaultDisabled !== true) { + this.canvas.onwheel = function() { + return false; + }; + this._setProperty('wheelDefaultDisabled', true); + } + + var scaleFactor = this.height < this.width ? this.height : this.width; + + // ZOOM if there is a change in mouseWheelDelta + if (this._mouseWheelDeltaY !== this._pmouseWheelDeltaY) { + // zoom according to direction of mouseWheelDeltaY rather than value + if (this._mouseWheelDeltaY > 0) { + this._renderer._curCamera._orbit(0, 0, 0.5 * scaleFactor); + } else { + this._renderer._curCamera._orbit(0, 0, -0.5 * scaleFactor); + } + } + + if (this.mouseIsPressed) { + // ORBIT BEHAVIOR + if (this.mouseButton === this.LEFT) { + var deltaTheta = -sensitivityX * (this.mouseX - this.pmouseX) / scaleFactor; + var deltaPhi = sensitivityY * (this.mouseY - this.pmouseY) / scaleFactor; + this._renderer._curCamera._orbit(deltaTheta, deltaPhi, 0); + } else if (this.mouseButton === this.RIGHT) { + // PANNING BEHAVIOR along X/Z camera axes and restricted to X/Z plane + // in world space + var local = cam._getLocalAxes(); + + // normalize portions along X/Z axes + var xmag = Math.sqrt(local.x[0] * local.x[0] + local.x[2] * local.x[2]); + if (xmag !== 0) { + local.x[0] /= xmag; + local.x[2] /= xmag; + } + + // normalize portions along X/Z axes + var ymag = Math.sqrt(local.y[0] * local.y[0] + local.y[2] * local.y[2]); + if (ymag !== 0) { + local.y[0] /= ymag; + local.y[2] /= ymag; + } + + // move along those vectors by amount controlled by mouseX, pmouseY + var dx = -1 * sensitivityX * (this.mouseX - this.pmouseX); + var dz = -1 * sensitivityY * (this.mouseY - this.pmouseY); + + // restrict movement to XZ plane in world space + cam.setPosition( + cam.eyeX + dx * local.x[0] + dz * local.z[0], + cam.eyeY, + cam.eyeZ + dx * local.x[2] + dz * local.z[2] + ); + } + } + return this; + }; + + /** + * debugMode() helps visualize 3D space by adding a grid to indicate where the + * โ€˜groundโ€™ is in a sketch and an axes icon which indicates the +X, +Y, and +Z + * directions. This function can be called without parameters to create a + * default grid and axes icon, or it can be called according to the examples + * above to customize the size and position of the grid and/or axes icon. The + * grid is drawn using the most recently set stroke color and weight. To + * specify these parameters, add a call to stroke() and strokeWeight() + * just before the end of the draw() loop. + * + * By default, the grid will run through the origin (0,0,0) of the sketch + * along the XZ plane + * and the axes icon will be offset from the origin. Both the grid and axes + * icon will be sized according to the current canvas size. Note that because the + * grid runs parallel to the default camera view, it is often helpful to use + * debugMode along with orbitControl to allow full view of the grid. + * @method debugMode + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * camera(0, -30, 100, 0, 0, 0, 0, 1, 0); + * normalMaterial(); + * debugMode(); + * } + * + * function draw() { + * background(200); + * orbitControl(); + * box(15, 30); + * // Press the spacebar to turn debugMode off! + * if (keyIsDown(32)) { + * noDebugMode(); + * } + * } + * + *
+ * @alt + * a 3D box is centered on a grid in a 3D sketch. an icon + * indicates the direction of each axis: a red line points +X, + * a green line +Y, and a blue line +Z. the grid and icon disappear when the + * spacebar is pressed. + * + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * camera(0, -30, 100, 0, 0, 0, 0, 1, 0); + * normalMaterial(); + * debugMode(GRID); + * } + * + * function draw() { + * background(200); + * orbitControl(); + * box(15, 30); + * } + * + *
+ * @alt + * a 3D box is centered on a grid in a 3D sketch. + * + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * camera(0, -30, 100, 0, 0, 0, 0, 1, 0); + * normalMaterial(); + * debugMode(AXES); + * } + * + * function draw() { + * background(200); + * orbitControl(); + * box(15, 30); + * } + * + *
+ * @alt + * a 3D box is centered in a 3D sketch. an icon + * indicates the direction of each axis: a red line points +X, + * a green line +Y, and a blue line +Z. + * + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * camera(0, -30, 100, 0, 0, 0, 0, 1, 0); + * normalMaterial(); + * debugMode(GRID, 100, 10, 0, 0, 0); + * } + * + * function draw() { + * background(200); + * orbitControl(); + * box(15, 30); + * } + * + *
+ * @alt + * a 3D box is centered on a grid in a 3D sketch + * + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * camera(0, -30, 100, 0, 0, 0, 0, 1, 0); + * normalMaterial(); + * debugMode(100, 10, 0, 0, 0, 20, 0, -40, 0); + * } + * + * function draw() { + * noStroke(); + * background(200); + * orbitControl(); + * box(15, 30); + * // set the stroke color and weight for the grid! + * stroke(255, 0, 150); + * strokeWeight(0.8); + * } + * + *
+ * @alt + * a 3D box is centered on a grid in a 3D sketch. an icon + * indicates the direction of each axis: a red line points +X, + * a green line +Y, and a blue line +Z. + */ + + /** + * @method debugMode + * @param {Constant} mode either GRID or AXES + */ + + /** + * @method debugMode + * @param {Constant} mode + * @param {Number} [gridSize] size of one side of the grid + * @param {Number} [gridDivisions] number of divisions in the grid + * @param {Number} [xOff] X axis offset from origin (0,0,0) + * @param {Number} [yOff] Y axis offset from origin (0,0,0) + * @param {Number} [zOff] Z axis offset from origin (0,0,0) + */ + + /** + * @method debugMode + * @param {Constant} mode + * @param {Number} [axesSize] size of axes icon + * @param {Number} [xOff] + * @param {Number} [yOff] + * @param {Number} [zOff] + */ + + /** + * @method debugMode + * @param {Number} [gridSize] + * @param {Number} [gridDivisions] + * @param {Number} [gridXOff] + * @param {Number} [gridYOff] + * @param {Number} [gridZOff] + * @param {Number} [axesSize] + * @param {Number} [axesXOff] + * @param {Number} [axesYOff] + * @param {Number} [axesZOff] + */ + + p5.prototype.debugMode = function() { + this._assert3d('debugMode'); + p5._validateParameters('debugMode', arguments); + + // start by removing existing 'post' registered debug methods + for (var i = this._registeredMethods.post.length - 1; i >= 0; i--) { + // test for equality... + if ( + this._registeredMethods.post[i].toString() === this._grid().toString() || + this._registeredMethods.post[i].toString() === this._axesIcon().toString() + ) { + this._registeredMethods.post.splice(i, 1); + } + } + + // then add new debugMode functions according to the argument list + if (arguments[0] === constants.GRID) { + this.registerMethod( + 'post', + this._grid.call( + this, + arguments[1], + arguments[2], + arguments[3], + arguments[4], + arguments[5] + ) + ); + } else if (arguments[0] === constants.AXES) { + this.registerMethod( + 'post', + this._axesIcon.call( + this, + arguments[1], + arguments[2], + arguments[3], + arguments[4] + ) + ); + } else { + this.registerMethod( + 'post', + this._grid.call( + this, + arguments[0], + arguments[1], + arguments[2], + arguments[3], + arguments[4] + ) + ); + + this.registerMethod( + 'post', + this._axesIcon.call( + this, + arguments[5], + arguments[6], + arguments[7], + arguments[8] + ) + ); + } + }; + + /** + * Turns off debugMode() in a 3D sketch. + * @method noDebugMode + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * camera(0, -30, 100, 0, 0, 0, 0, 1, 0); + * normalMaterial(); + * debugMode(); + * } + * + * function draw() { + * background(200); + * orbitControl(); + * box(15, 30); + * // Press the spacebar to turn debugMode off! + * if (keyIsDown(32)) { + * noDebugMode(); + * } + * } + * + *
+ * @alt + * a 3D box is centered on a grid in a 3D sketch. an icon + * indicates the direction of each axis: a red line points +X, + * a green line +Y, and a blue line +Z. the grid and icon disappear when the + * spacebar is pressed. + */ + p5.prototype.noDebugMode = function() { + this._assert3d('noDebugMode'); + + // start by removing existing 'post' registered debug methods + for (var i = this._registeredMethods.post.length - 1; i >= 0; i--) { + // test for equality... + if ( + this._registeredMethods.post[i].toString() === this._grid().toString() || + this._registeredMethods.post[i].toString() === this._axesIcon().toString() + ) { + this._registeredMethods.post.splice(i, 1); + } + } + }; + + /** + * For use with debugMode + * @private + * @method _grid + * @param {Number} [size] size of grid sides + * @param {Number} [div] number of grid divisions + * @param {Number} [xOff] offset of grid center from origin in X axis + * @param {Number} [yOff] offset of grid center from origin in Y axis + * @param {Number} [zOff] offset of grid center from origin in Z axis + */ + p5.prototype._grid = function(size, numDivs, xOff, yOff, zOff) { + if (typeof size === 'undefined') { + size = this.width / 2; + } + if (typeof numDivs === 'undefined') { + // ensure at least 2 divisions + numDivs = Math.round(size / 30) < 4 ? 4 : Math.round(size / 30); + } + if (typeof xOff === 'undefined') { + xOff = 0; + } + if (typeof yOff === 'undefined') { + yOff = 0; + } + if (typeof zOff === 'undefined') { + zOff = 0; + } + + var spacing = size / numDivs; + var halfSize = size / 2; + + return function() { + this.push(); + this.stroke( + this._renderer.curStrokeColor[0] * 255, + this._renderer.curStrokeColor[1] * 255, + this._renderer.curStrokeColor[2] * 255 + ); + + this._renderer.uMVMatrix.set( + this._renderer._curCamera.cameraMatrix.mat4[0], + this._renderer._curCamera.cameraMatrix.mat4[1], + this._renderer._curCamera.cameraMatrix.mat4[2], + this._renderer._curCamera.cameraMatrix.mat4[3], + this._renderer._curCamera.cameraMatrix.mat4[4], + this._renderer._curCamera.cameraMatrix.mat4[5], + this._renderer._curCamera.cameraMatrix.mat4[6], + this._renderer._curCamera.cameraMatrix.mat4[7], + this._renderer._curCamera.cameraMatrix.mat4[8], + this._renderer._curCamera.cameraMatrix.mat4[9], + this._renderer._curCamera.cameraMatrix.mat4[10], + this._renderer._curCamera.cameraMatrix.mat4[11], + this._renderer._curCamera.cameraMatrix.mat4[12], + this._renderer._curCamera.cameraMatrix.mat4[13], + this._renderer._curCamera.cameraMatrix.mat4[14], + this._renderer._curCamera.cameraMatrix.mat4[15] + ); + + // Lines along X axis + for (var q = 0; q <= numDivs; q++) { + this.beginShape(this.LINES); + this.vertex(-halfSize + xOff, yOff, q * spacing - halfSize + zOff); + this.vertex(+halfSize + xOff, yOff, q * spacing - halfSize + zOff); + this.endShape(); + } + + // Lines along Z axis + for (var i = 0; i <= numDivs; i++) { + this.beginShape(this.LINES); + this.vertex(i * spacing - halfSize + xOff, yOff, -halfSize + zOff); + this.vertex(i * spacing - halfSize + xOff, yOff, +halfSize + zOff); + this.endShape(); + } + + this.pop(); + }; + }; + + /** + * For use with debugMode + * @private + * @method _axesIcon + * @param {Number} [size] size of axes icon lines + * @param {Number} [xOff] offset of icon from origin in X axis + * @param {Number} [yOff] offset of icon from origin in Y axis + * @param {Number} [zOff] offset of icon from origin in Z axis + */ + p5.prototype._axesIcon = function(size, xOff, yOff, zOff) { + if (typeof size === 'undefined') { + size = this.width / 20 > 40 ? this.width / 20 : 40; + } + if (typeof xOff === 'undefined') { + xOff = -this.width / 4; + } + if (typeof yOff === 'undefined') { + yOff = xOff; + } + if (typeof zOff === 'undefined') { + zOff = xOff; + } + + return function() { + this.push(); + this._renderer.uMVMatrix.set( + this._renderer._curCamera.cameraMatrix.mat4[0], + this._renderer._curCamera.cameraMatrix.mat4[1], + this._renderer._curCamera.cameraMatrix.mat4[2], + this._renderer._curCamera.cameraMatrix.mat4[3], + this._renderer._curCamera.cameraMatrix.mat4[4], + this._renderer._curCamera.cameraMatrix.mat4[5], + this._renderer._curCamera.cameraMatrix.mat4[6], + this._renderer._curCamera.cameraMatrix.mat4[7], + this._renderer._curCamera.cameraMatrix.mat4[8], + this._renderer._curCamera.cameraMatrix.mat4[9], + this._renderer._curCamera.cameraMatrix.mat4[10], + this._renderer._curCamera.cameraMatrix.mat4[11], + this._renderer._curCamera.cameraMatrix.mat4[12], + this._renderer._curCamera.cameraMatrix.mat4[13], + this._renderer._curCamera.cameraMatrix.mat4[14], + this._renderer._curCamera.cameraMatrix.mat4[15] + ); + + // X axis + this.strokeWeight(2); + this.stroke(255, 0, 0); + this.beginShape(this.LINES); + this.vertex(xOff, yOff, zOff); + this.vertex(xOff + size, yOff, zOff); + this.endShape(); + // Y axis + this.stroke(0, 255, 0); + this.beginShape(this.LINES); + this.vertex(xOff, yOff, zOff); + this.vertex(xOff, yOff + size, zOff); + this.endShape(); + // Z axis + this.stroke(0, 0, 255); + this.beginShape(this.LINES); + this.vertex(xOff, yOff, zOff); + this.vertex(xOff, yOff, zOff + size); + this.endShape(); + this.pop(); + }; + }; + + module.exports = p5; + }, + { '../core/constants': 18, '../core/main': 24 } + ], + 67: [ + function(_dereq_, module, exports) { + /** + * @module Lights, Camera + * @submodule Lights + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + /** + * Creates an ambient light with a color + * + * @method ambientLight + * @param {Number} v1 red or hue value relative to + * the current color range + * @param {Number} v2 green or saturation value + * relative to the current color range + * @param {Number} v3 blue or brightness value + * relative to the current color range + * @param {Number} [alpha] the alpha value + * @chainable + * + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * function draw() { + * background(0); + * ambientLight(150); + * ambientMaterial(250); + * noStroke(); + * sphere(40); + * } + * + *
+ * + * @alt + * evenly distributed light across a sphere + * + */ + + /** + * @method ambientLight + * @param {String} value a color string + * @chainable + */ + + /** + * @method ambientLight + * @param {Number} gray a gray value + * @param {Number} [alpha] + * @chainable + */ + + /** + * @method ambientLight + * @param {Number[]} values an array containing the red,green,blue & + * and alpha components of the color + * @chainable + */ + + /** + * @method ambientLight + * @param {p5.Color} color the ambient light color + * @chainable + */ + p5.prototype.ambientLight = function(v1, v2, v3, a) { + this._assert3d('ambientLight'); + p5._validateParameters('ambientLight', arguments); + var color = this.color.apply(this, arguments); + + this._renderer.ambientLightColors.push( + color._array[0], + color._array[1], + color._array[2] + ); + + this._renderer._enableLighting = true; + + return this; + }; + + /** + * Creates a directional light with a color and a direction + * @method directionalLight + * @param {Number} v1 red or hue value (depending on the current + * color mode), + * @param {Number} v2 green or saturation value + * @param {Number} v3 blue or brightness value + * @param {p5.Vector} position the direction of the light + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * function draw() { + * background(0); + * //move your mouse to change light direction + * let dirX = (mouseX / width - 0.5) * 2; + * let dirY = (mouseY / height - 0.5) * 2; + * directionalLight(250, 250, 250, -dirX, -dirY, -1); + * noStroke(); + * sphere(40); + * } + * + *
+ * + * @alt + * light source on canvas changeable with mouse position + * + */ + + /** + * @method directionalLight + * @param {Number[]|String|p5.Color} color color Array, CSS color string, + * or p5.Color value + * @param {Number} x x axis direction + * @param {Number} y y axis direction + * @param {Number} z z axis direction + * @chainable + */ + + /** + * @method directionalLight + * @param {Number[]|String|p5.Color} color + * @param {p5.Vector} position + * @chainable + */ + + /** + * @method directionalLight + * @param {Number} v1 + * @param {Number} v2 + * @param {Number} v3 + * @param {Number} x + * @param {Number} y + * @param {Number} z + * @chainable + */ + p5.prototype.directionalLight = function(v1, v2, v3, x, y, z) { + this._assert3d('directionalLight'); + p5._validateParameters('directionalLight', arguments); + + //@TODO: check parameters number + var color; + if (v1 instanceof p5.Color) { + color = v1; + } else { + color = this.color(v1, v2, v3); + } + + var _x, _y, _z; + var v = arguments[arguments.length - 1]; + if (typeof v === 'number') { + _x = arguments[arguments.length - 3]; + _y = arguments[arguments.length - 2]; + _z = arguments[arguments.length - 1]; + } else { + _x = v.x; + _y = v.y; + _z = v.z; + } + + // normalize direction + var l = Math.sqrt(_x * _x + _y * _y + _z * _z); + this._renderer.directionalLightDirections.push(_x / l, _y / l, _z / l); + + this._renderer.directionalLightColors.push( + color._array[0], + color._array[1], + color._array[2] + ); + + this._renderer._enableLighting = true; + + return this; + }; + + /** + * Creates a point light with a color and a light position + * @method pointLight + * @param {Number} v1 red or hue value (depending on the current + * color mode), + * @param {Number} v2 green or saturation value + * @param {Number} v3 blue or brightness value + * @param {Number} x x axis position + * @param {Number} y y axis position + * @param {Number} z z axis position + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * function draw() { + * background(0); + * //move your mouse to change light position + * let locX = mouseX - width / 2; + * let locY = mouseY - height / 2; + * // to set the light position, + * // think of the world's coordinate as: + * // -width/2,-height/2 -------- width/2,-height/2 + * // | | + * // | 0,0 | + * // | | + * // -width/2,height/2--------width/2,height/2 + * pointLight(250, 250, 250, locX, locY, 50); + * noStroke(); + * sphere(40); + * } + * + *
+ * + * @alt + * spot light on canvas changes position with mouse + * + */ + + /** + * @method pointLight + * @param {Number} v1 + * @param {Number} v2 + * @param {Number} v3 + * @param {p5.Vector} position the position of the light + * @chainable + */ + + /** + * @method pointLight + * @param {Number[]|String|p5.Color} color color Array, CSS color string, + * or p5.Color value + * @param {Number} x + * @param {Number} y + * @param {Number} z + * @chainable + */ + + /** + * @method pointLight + * @param {Number[]|String|p5.Color} color + * @param {p5.Vector} position + * @chainable + */ + p5.prototype.pointLight = function(v1, v2, v3, x, y, z) { + this._assert3d('pointLight'); + p5._validateParameters('pointLight', arguments); + + //@TODO: check parameters number + var color; + if (v1 instanceof p5.Color) { + color = v1; + } else { + color = this.color(v1, v2, v3); + } + + var _x, _y, _z; + var v = arguments[arguments.length - 1]; + if (typeof v === 'number') { + _x = arguments[arguments.length - 3]; + _y = arguments[arguments.length - 2]; + _z = arguments[arguments.length - 1]; + } else { + _x = v.x; + _y = v.y; + _z = v.z; + } + + this._renderer.pointLightPositions.push(_x, _y, _z); + this._renderer.pointLightColors.push( + color._array[0], + color._array[1], + color._array[2] + ); + + this._renderer._enableLighting = true; + + return this; + }; + + /** + * Sets the default ambient and directional light. The defaults are ambientLight(128, 128, 128) and directionalLight(128, 128, 128, 0, 0, -1). Lights need to be included in the draw() to remain persistent in a looping program. Placing them in the setup() of a looping program will cause them to only have an effect the first time through the loop. + * @method lights + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * function draw() { + * background(0); + * lights(); + * rotateX(millis() / 1000); + * rotateY(millis() / 1000); + * rotateZ(millis() / 1000); + * box(); + * } + * + *
+ * + * @alt + * the light is partially ambient and partially directional + */ + p5.prototype.lights = function() { + this._assert3d('lights'); + this.ambientLight(128, 128, 128); + this.directionalLight(128, 128, 128, 0, 0, -1); + return this; + }; + + /** + * Sets the falloff rates for point lights. It affects only the elements which are created after it in the code. + * The default value is lightFalloff(1.0, 0.0, 0.0), and the parameters are used to calculate the falloff with the following equation: + * + * d = distance from light position to vertex position + * + * falloff = 1 / (CONSTANT + d \* LINEAR + ( d \* d ) \* QUADRATIC) + * + * @method lightFalloff + * @param {Number} constant constant value for determining falloff + * @param {Number} linear linear value for determining falloff + * @param {Number} quadratic quadratic value for determining falloff + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * noStroke(); + * } + * function draw() { + * background(0); + * let locX = mouseX - width / 2; + * let locY = mouseY - height / 2; + * translate(-25, 0, 0); + * lightFalloff(1, 0, 0); + * pointLight(250, 250, 250, locX, locY, 50); + * sphere(20); + * translate(50, 0, 0); + * lightFalloff(0.9, 0.01, 0); + * pointLight(250, 250, 250, locX, locY, 50); + * sphere(20); + * } + * + *
+ * + * @alt + * Two spheres with different falloff values show different intensity of light + * + */ + p5.prototype.lightFalloff = function( + constantAttenuation, + linearAttenuation, + quadraticAttenuation + ) { + this._assert3d('lightFalloff'); + p5._validateParameters('lightFalloff', arguments); + + if (constantAttenuation < 0) { + constantAttenuation = 0; + console.warn( + 'Value of constant argument in lightFalloff() should be never be negative. Set to 0.' + ); + } + + if (linearAttenuation < 0) { + linearAttenuation = 0; + console.warn( + 'Value of linear argument in lightFalloff() should be never be negative. Set to 0.' + ); + } + + if (quadraticAttenuation < 0) { + quadraticAttenuation = 0; + console.warn( + 'Value of quadratic argument in lightFalloff() should be never be negative. Set to 0.' + ); + } + + if ( + constantAttenuation === 0 && + linearAttenuation === 0 && + quadraticAttenuation === 0 + ) { + constantAttenuation = 1; + console.warn( + 'Either one of the three arguments in lightFalloff() should be greater than zero. Set constant argument to 1.' + ); + } + + this._renderer.constantAttenuation = constantAttenuation; + this._renderer.linearAttenuation = linearAttenuation; + this._renderer.quadraticAttenuation = quadraticAttenuation; + + return this; + }; + + module.exports = p5; + }, + { '../core/main': 24 } + ], + 68: [ + function(_dereq_, module, exports) { + /** + * @module Shape + * @submodule 3D Models + * @for p5 + * @requires core + * @requires p5.Geometry + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + _dereq_('./p5.Geometry'); + + /** + * Load a 3d model from an OBJ or STL file. + *

+ * One of the limitations of the OBJ and STL format is that it doesn't have a built-in + * sense of scale. This means that models exported from different programs might + * be very different sizes. If your model isn't displaying, try calling + * loadModel() with the normalized parameter set to true. This will resize the + * model to a scale appropriate for p5. You can also make additional changes to + * the final size of your model with the scale() function. + * + * Also, the support for colored STL files is not present. STL files with color will be + * rendered without color properties. + * + * @method loadModel + * @param {String} path Path of the model to be loaded + * @param {Boolean} normalize If true, scale the model to a + * standardized size when loading + * @param {function(p5.Geometry)} [successCallback] Function to be called + * once the model is loaded. Will be passed + * the 3D model object. + * @param {function(Event)} [failureCallback] called with event error if + * the model fails to load. + * @return {p5.Geometry} the p5.Geometry object + * + * @example + *
+ * + * //draw a spinning octahedron + * let octahedron; + * + * function preload() { + * octahedron = loadModel('assets/octahedron.obj'); + * } + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(200); + * rotateX(frameCount * 0.01); + * rotateY(frameCount * 0.01); + * model(octahedron); + * } + * + *
+ * + * @alt + * Vertically rotating 3-d octahedron. + * + * @example + *
+ * + * //draw a spinning teapot + * let teapot; + * + * function preload() { + * // Load model with normalise parameter set to true + * teapot = loadModel('assets/teapot.obj', true); + * } + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(200); + * scale(0.4); // Scaled to make model fit into canvas + * rotateX(frameCount * 0.01); + * rotateY(frameCount * 0.01); + * normalMaterial(); // For effect + * model(teapot); + * } + * + *
+ * + * @alt + * Vertically rotating 3-d teapot with red, green and blue gradient. + */ + /** + * @method loadModel + * @param {String} path + * @param {function(p5.Geometry)} [successCallback] + * @param {function(Event)} [failureCallback] + * @return {p5.Geometry} the p5.Geometry object + */ + p5.prototype.loadModel = function(path) { + p5._validateParameters('loadModel', arguments); + var normalize; + var successCallback; + var failureCallback; + if (typeof arguments[1] === 'boolean') { + normalize = arguments[1]; + successCallback = arguments[2]; + failureCallback = arguments[3]; + } else { + normalize = false; + successCallback = arguments[1]; + failureCallback = arguments[2]; + } + + var fileType = path.slice(-4); + var model = new p5.Geometry(); + model.gid = path + '|' + normalize; + var self = this; + + if (fileType === '.stl') { + this.httpDo( + path, + 'GET', + 'arrayBuffer', + function(arrayBuffer) { + parseSTL(model, arrayBuffer); + + if (normalize) { + model.normalize(); + } + self._decrementPreload(); + if (typeof successCallback === 'function') { + successCallback(model); + } + }.bind(this), + failureCallback + ); + } else if (fileType === '.obj') { + this.loadStrings( + path, + function(strings) { + parseObj(model, strings); + + if (normalize) { + model.normalize(); + } + + self._decrementPreload(); + if (typeof successCallback === 'function') { + successCallback(model); + } + }.bind(this), + failureCallback + ); + } else { + p5._friendlyFileLoadError(3, path); + + if (failureCallback) { + failureCallback(); + } else { + console.error( + 'Sorry, the file type is invalid. Only OBJ and STL files are supported.' + ); + } + } + return model; + }; + + /** + * Parse OBJ lines into model. For reference, this is what a simple model of a + * square might look like: + * + * v -0.5 -0.5 0.5 + * v -0.5 -0.5 -0.5 + * v -0.5 0.5 -0.5 + * v -0.5 0.5 0.5 + * + * f 4 3 2 1 + */ + function parseObj(model, lines) { + // OBJ allows a face to specify an index for a vertex (in the above example), + // but it also allows you to specify a custom combination of vertex, UV + // coordinate, and vertex normal. So, "3/4/3" would mean, "use vertex 3 with + // UV coordinate 4 and vertex normal 3". In WebGL, every vertex with different + // parameters must be a different vertex, so loadedVerts is used to + // temporarily store the parsed vertices, normals, etc., and indexedVerts is + // used to map a specific combination (keyed on, for example, the string + // "3/4/3"), to the actual index of the newly created vertex in the final + // object. + var loadedVerts = { + v: [], + vt: [], + vn: [] + }; + + var indexedVerts = {}; + + for (var line = 0; line < lines.length; ++line) { + // Each line is a separate object (vertex, face, vertex normal, etc) + // For each line, split it into tokens on whitespace. The first token + // describes the type. + var tokens = lines[line].trim().split(/\b\s+/); + + if (tokens.length > 0) { + if (tokens[0] === 'v' || tokens[0] === 'vn') { + // Check if this line describes a vertex or vertex normal. + // It will have three numeric parameters. + var vertex = new p5.Vector( + parseFloat(tokens[1]), + parseFloat(tokens[2]), + parseFloat(tokens[3]) + ); + + loadedVerts[tokens[0]].push(vertex); + } else if (tokens[0] === 'vt') { + // Check if this line describes a texture coordinate. + // It will have two numeric parameters. + var texVertex = [parseFloat(tokens[1]), parseFloat(tokens[2])]; + loadedVerts[tokens[0]].push(texVertex); + } else if (tokens[0] === 'f') { + // Check if this line describes a face. + // OBJ faces can have more than three points. Triangulate points. + for (var tri = 3; tri < tokens.length; ++tri) { + var face = []; + + var vertexTokens = [1, tri - 1, tri]; + + for (var tokenInd = 0; tokenInd < vertexTokens.length; ++tokenInd) { + // Now, convert the given token into an index + var vertString = tokens[vertexTokens[tokenInd]]; + var vertIndex = 0; + + // TODO: Faces can technically use negative numbers to refer to the + // previous nth vertex. I haven't seen this used in practice, but + // it might be good to implement this in the future. + + if (indexedVerts[vertString] !== undefined) { + vertIndex = indexedVerts[vertString]; + } else { + var vertParts = vertString.split('/'); + for (var i = 0; i < vertParts.length; i++) { + vertParts[i] = parseInt(vertParts[i]) - 1; + } + + vertIndex = indexedVerts[vertString] = model.vertices.length; + model.vertices.push(loadedVerts.v[vertParts[0]].copy()); + if (loadedVerts.vt[vertParts[1]]) { + model.uvs.push(loadedVerts.vt[vertParts[1]].slice()); + } else { + model.uvs.push([0, 0]); + } + + if (loadedVerts.vn[vertParts[2]]) { + model.vertexNormals.push(loadedVerts.vn[vertParts[2]].copy()); + } + } + + face.push(vertIndex); + } + + if (face[0] !== face[1] && face[0] !== face[2] && face[1] !== face[2]) { + model.faces.push(face); + } + } + } + } + } + // If the model doesn't have normals, compute the normals + if (model.vertexNormals.length === 0) { + model.computeNormals(); + } + + return model; + } + + /** + * STL files can be of two types, ASCII and Binary, + * + * We need to convert the arrayBuffer to an array of strings, + * to parse it as an ASCII file. + */ + function parseSTL(model, buffer) { + if (isBinary(buffer)) { + parseBinarySTL(model, buffer); + } else { + var reader = new DataView(buffer); + + if (!('TextDecoder' in window)) { + console.warn( + 'Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)' + ); + + return model; + } + + var decoder = new TextDecoder('utf-8'); + var lines = decoder.decode(reader); + var lineArray = lines.split('\n'); + parseASCIISTL(model, lineArray); + } + return model; + } + + /** + * This function checks if the file is in ASCII format or in Binary format + * + * It is done by searching keyword `solid` at the start of the file. + * + * An ASCII STL data must begin with `solid` as the first six bytes. + * However, ASCII STLs lacking the SPACE after the `d` are known to be + * plentiful. So, check the first 5 bytes for `solid`. + * + * Several encodings, such as UTF-8, precede the text with up to 5 bytes: + * https://en.wikipedia.org/wiki/Byte_order_mark#Byte_order_marks_by_encoding + * Search for `solid` to start anywhere after those prefixes. + */ + function isBinary(data) { + var reader = new DataView(data); + + // US-ASCII ordinal values for `s`, `o`, `l`, `i`, `d` + var solid = [115, 111, 108, 105, 100]; + for (var off = 0; off < 5; off++) { + // If "solid" text is matched to the current offset, declare it to be an ASCII STL. + if (matchDataViewAt(solid, reader, off)) return false; + } + + // Couldn't find "solid" text at the beginning; it is binary STL. + return true; + } + + /** + * This function matches the `query` at the provided `offset` + */ + function matchDataViewAt(query, reader, offset) { + // Check if each byte in query matches the corresponding byte from the current offset + for (var i = 0, il = query.length; i < il; i++) { + if (query[i] !== reader.getUint8(offset + i, false)) return false; + } + + return true; + } + + /** + * This function parses the Binary STL files. + * https://en.wikipedia.org/wiki/STL_%28file_format%29#Binary_STL + * + * Currently there is no support for the colors provided in STL files. + */ + function parseBinarySTL(model, buffer) { + var reader = new DataView(buffer); + + // Number of faces is present following the header + var faces = reader.getUint32(80, true); + var r, + g, + b, + hasColors = false, + colors; + var defaultR, defaultG, defaultB; + + // Binary files contain 80-byte header, which is generally ignored. + for (var index = 0; index < 80 - 10; index++) { + // Check for `COLOR=` + if ( + reader.getUint32(index, false) === 0x434f4c4f /*COLO*/ && + reader.getUint8(index + 4) === 0x52 /*'R'*/ && + reader.getUint8(index + 5) === 0x3d /*'='*/ + ) { + hasColors = true; + colors = []; + + defaultR = reader.getUint8(index + 6) / 255; + defaultG = reader.getUint8(index + 7) / 255; + defaultB = reader.getUint8(index + 8) / 255; + // To be used when color support is added + // alpha = reader.getUint8(index + 9) / 255; + } + } + var dataOffset = 84; + var faceLength = 12 * 4 + 2; + + // Iterate the faces + for (var face = 0; face < faces; face++) { + var start = dataOffset + face * faceLength; + var normalX = reader.getFloat32(start, true); + var normalY = reader.getFloat32(start + 4, true); + var normalZ = reader.getFloat32(start + 8, true); + + if (hasColors) { + var packedColor = reader.getUint16(start + 48, true); + + if ((packedColor & 0x8000) === 0) { + // facet has its own unique color + r = (packedColor & 0x1f) / 31; + g = ((packedColor >> 5) & 0x1f) / 31; + b = ((packedColor >> 10) & 0x1f) / 31; + } else { + r = defaultR; + g = defaultG; + b = defaultB; + } + } + + for (var i = 1; i <= 3; i++) { + var vertexstart = start + i * 12; + + var newVertex = new p5.Vector( + reader.getFloat32(vertexstart, true), + reader.getFloat32(vertexstart + 8, true), + reader.getFloat32(vertexstart + 4, true) + ); + + model.vertices.push(newVertex); + + if (hasColors) { + colors.push(r, g, b); + } + } + + var newNormal = new p5.Vector(normalX, normalY, normalZ); + + model.vertexNormals.push(newNormal, newNormal, newNormal); + + model.faces.push([3 * face, 3 * face + 1, 3 * face + 2]); + } + if (hasColors) { + // add support for colors here. + } + return model; + } + + /** + * ASCII STL file starts with `solid 'nameOfFile'` + * Then contain the normal of the face, starting with `facet normal` + * Next contain a keyword indicating the start of face vertex, `outer loop` + * Next comes the three vertex, starting with `vertex x y z` + * Vertices ends with `endloop` + * Face ends with `endfacet` + * Next face starts with `facet normal` + * The end of the file is indicated by `endsolid` + */ + function parseASCIISTL(model, lines) { + var state = ''; + var curVertexIndex = []; + var newNormal, newVertex; + + for (var iterator = 0; iterator < lines.length; ++iterator) { + var line = lines[iterator].trim(); + var parts = line.split(' '); + + for (var partsiterator = 0; partsiterator < parts.length; ++partsiterator) { + if (parts[partsiterator] === '') { + // Ignoring multiple whitespaces + parts.splice(partsiterator, 1); + } + } + + if (parts.length === 0) { + // Remove newline + continue; + } + + switch (state) { + case '': // First run + if (parts[0] !== 'solid') { + // Invalid state + console.error(line); + console.error('Invalid state "' + parts[0] + '", should be "solid"'); + return; + } else { + state = 'solid'; + } + break; + + case 'solid': // First face + if (parts[0] !== 'facet' || parts[1] !== 'normal') { + // Invalid state + console.error(line); + console.error( + 'Invalid state "' + parts[0] + '", should be "facet normal"' + ); + + return; + } else { + // Push normal for first face + newNormal = new p5.Vector( + parseFloat(parts[2]), + parseFloat(parts[3]), + parseFloat(parts[4]) + ); + + model.vertexNormals.push(newNormal, newNormal, newNormal); + state = 'facet normal'; + } + break; + + case 'facet normal': // After normal is defined + if (parts[0] !== 'outer' || parts[1] !== 'loop') { + // Invalid State + console.error(line); + console.error( + 'Invalid state "' + parts[0] + '", should be "outer loop"' + ); + + return; + } else { + // Next should be vertices + state = 'vertex'; + } + break; + + case 'vertex': + if (parts[0] === 'vertex') { + //Vertex of triangle + newVertex = new p5.Vector( + parseFloat(parts[1]), + parseFloat(parts[2]), + parseFloat(parts[3]) + ); + + model.vertices.push(newVertex); + curVertexIndex.push(model.vertices.indexOf(newVertex)); + } else if (parts[0] === 'endloop') { + // End of vertices + model.faces.push(curVertexIndex); + curVertexIndex = []; + state = 'endloop'; + } else { + // Invalid State + console.error(line); + console.error( + 'Invalid state "' + parts[0] + '", should be "vertex" or "endloop"' + ); + + return; + } + break; + + case 'endloop': + if (parts[0] !== 'endfacet') { + // End of face + console.error(line); + console.error('Invalid state "' + parts[0] + '", should be "endfacet"'); + + return; + } else { + state = 'endfacet'; + } + break; + + case 'endfacet': + if (parts[0] === 'endsolid') { + // End of solid + } else if (parts[0] === 'facet' && parts[1] === 'normal') { + // Next face + newNormal = new p5.Vector( + parseFloat(parts[2]), + parseFloat(parts[3]), + parseFloat(parts[4]) + ); + + model.vertexNormals.push(newNormal, newNormal, newNormal); + state = 'facet normal'; + } else { + // Invalid State + console.error(line); + console.error( + 'Invalid state "' + + parts[0] + + '", should be "endsolid" or "facet normal"' + ); + + return; + } + break; + + default: + console.error('Invalid state "' + state + '"'); + break; + } + } + return model; + } + + /** + * Render a 3d model to the screen. + * + * @method model + * @param {p5.Geometry} model Loaded 3d model to be rendered + * @example + *
+ * + * //draw a spinning octahedron + * let octahedron; + * + * function preload() { + * octahedron = loadModel('assets/octahedron.obj'); + * } + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(200); + * rotateX(frameCount * 0.01); + * rotateY(frameCount * 0.01); + * model(octahedron); + * } + * + *
+ * + * @alt + * Vertically rotating 3-d octahedron. + * + */ + p5.prototype.model = function(model) { + this._assert3d('model'); + p5._validateParameters('model', arguments); + if (model.vertices.length > 0) { + if (!this._renderer.geometryInHash(model.gid)) { + model._makeTriangleEdges()._edgesToVertices(); + this._renderer.createBuffers(model.gid, model); + } + + this._renderer.drawBuffers(model.gid); + } + }; + + module.exports = p5; + }, + { '../core/main': 24, './p5.Geometry': 71 } + ], + 69: [ + function(_dereq_, module, exports) { + /** + * @module Lights, Camera + * @submodule Material + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + var constants = _dereq_('../core/constants'); + _dereq_('./p5.Texture'); + + /** + * Loads a custom shader from the provided vertex and fragment + * shader paths. The shader files are loaded asynchronously in the + * background, so this method should be used in preload(). + * + * For now, there are three main types of shaders. p5 will automatically + * supply appropriate vertices, normals, colors, and lighting attributes + * if the parameters defined in the shader match the names. + * + * @method loadShader + * @param {String} vertFilename path to file containing vertex shader + * source code + * @param {String} fragFilename path to file containing fragment shader + * source code + * @param {function} [callback] callback to be executed after loadShader + * completes. On success, the Shader object is passed as the first argument. + * @param {function} [errorCallback] callback to be executed when an error + * occurs inside loadShader. On error, the error is passed as the first + * argument. + * @return {p5.Shader} a shader object created from the provided + * vertex and fragment shader files. + * + * @example + *
+ * + * let mandel; + * function preload() { + * // load the shader definitions from files + * mandel = loadShader('assets/shader.vert', 'assets/shader.frag'); + * } + * function setup() { + * createCanvas(100, 100, WEBGL); + * // use the shader + * shader(mandel); + * noStroke(); + * mandel.setUniform('p', [-0.74364388703, 0.13182590421]); + * } + * + * function draw() { + * mandel.setUniform('r', 1.5 * exp(-6.5 * (1 + sin(millis() / 2000)))); + * quad(-1, -1, 1, -1, 1, 1, -1, 1); + * } + * + *
+ * + * @alt + * zooming Mandelbrot set. a colorful, infinitely detailed fractal. + */ + p5.prototype.loadShader = function( + vertFilename, + fragFilename, + callback, + errorCallback + ) { + p5._validateParameters('loadShader', arguments); + if (!errorCallback) { + errorCallback = console.error; + } + + var loadedShader = new p5.Shader(); + + var self = this; + var loadedFrag = false; + var loadedVert = false; + + var onLoad = function onLoad() { + self._decrementPreload(); + if (callback) { + callback(loadedShader); + } + }; + + this.loadStrings( + vertFilename, + function(result) { + loadedShader._vertSrc = result.join('\n'); + loadedVert = true; + if (loadedFrag) { + onLoad(); + } + }, + errorCallback + ); + + this.loadStrings( + fragFilename, + function(result) { + loadedShader._fragSrc = result.join('\n'); + loadedFrag = true; + if (loadedVert) { + onLoad(); + } + }, + errorCallback + ); + + return loadedShader; + }; + + /** + * @method createShader + * @param {String} vertSrc source code for the vertex shader + * @param {String} fragSrc source code for the fragment shader + * @returns {p5.Shader} a shader object created from the provided + * vertex and fragment shaders. + * + * @example + *
+ * + * // the 'varying's are shared between both vertex & fragment shaders + * let varying = 'precision highp float; varying vec2 vPos;'; + * + * // the vertex shader is called for each vertex + * let vs = + * varying + + * 'attribute vec3 aPosition;' + + * 'void main() { vPos = (gl_Position = vec4(aPosition,1.0)).xy; }'; + * + * // the fragment shader is called for each pixel + * let fs = + * varying + + * 'uniform vec2 p;' + + * 'uniform float r;' + + * 'const int I = 500;' + + * 'void main() {' + + * ' vec2 c = p + vPos * r, z = c;' + + * ' float n = 0.0;' + + * ' for (int i = I; i > 0; i --) {' + + * ' if(z.x*z.x+z.y*z.y > 4.0) {' + + * ' n = float(i)/float(I);' + + * ' break;' + + * ' }' + + * ' z = vec2(z.x*z.x-z.y*z.y, 2.0*z.x*z.y) + c;' + + * ' }' + + * ' gl_FragColor = vec4(0.5-cos(n*17.0)/2.0,0.5-cos(n*13.0)/2.0,0.5-cos(n*23.0)/2.0,1.0);' + + * '}'; + * + * let mandel; + * function setup() { + * createCanvas(100, 100, WEBGL); + * + * // create and initialize the shader + * mandel = createShader(vs, fs); + * shader(mandel); + * noStroke(); + * + * // 'p' is the center point of the Mandelbrot image + * mandel.setUniform('p', [-0.74364388703, 0.13182590421]); + * } + * + * function draw() { + * // 'r' is the size of the image in Mandelbrot-space + * mandel.setUniform('r', 1.5 * exp(-6.5 * (1 + sin(millis() / 2000)))); + * quad(-1, -1, 1, -1, 1, 1, -1, 1); + * } + * + *
+ * + * @alt + * zooming Mandelbrot set. a colorful, infinitely detailed fractal. + */ + p5.prototype.createShader = function(vertSrc, fragSrc) { + this._assert3d('createShader'); + p5._validateParameters('createShader', arguments); + return new p5.Shader(this._renderer, vertSrc, fragSrc); + }; + + /** + * The shader() function lets the user provide a custom shader + * to fill in shapes in WEBGL mode. Users can create their + * own shaders by loading vertex and fragment shaders with + * loadShader(). + * + * @method shader + * @chainable + * @param {p5.Shader} [s] the desired p5.Shader to use for rendering + * shapes. + * + * @example + *
+ * + * // Click within the image to toggle + * // the shader used by the quad shape + * // Note: for an alternative approach to the same example, + * // involving changing uniforms please refer to: + * // https://p5js.org/reference/#/p5.Shader/setUniform + * + * let redGreen; + * let orangeBlue; + * let showRedGreen = false; + * + * function preload() { + * // note that we are using two instances + * // of the same vertex and fragment shaders + * redGreen = loadShader('assets/shader.vert', 'assets/shader-gradient.frag'); + * orangeBlue = loadShader('assets/shader.vert', 'assets/shader-gradient.frag'); + * } + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * + * // initialize the colors for redGreen shader + * shader(redGreen); + * redGreen.setUniform('colorCenter', [1.0, 0.0, 0.0]); + * redGreen.setUniform('colorBackground', [0.0, 1.0, 0.0]); + * + * // initialize the colors for orangeBlue shader + * shader(orangeBlue); + * orangeBlue.setUniform('colorCenter', [1.0, 0.5, 0.0]); + * orangeBlue.setUniform('colorBackground', [0.226, 0.0, 0.615]); + * + * noStroke(); + * } + * + * function draw() { + * // update the offset values for each shader, + * // moving orangeBlue in vertical and redGreen + * // in horizontal direction + * orangeBlue.setUniform('offset', [0, sin(millis() / 2000) + 1]); + * redGreen.setUniform('offset', [sin(millis() / 2000), 1]); + * + * if (showRedGreen === true) { + * shader(redGreen); + * } else { + * shader(orangeBlue); + * } + * quad(-1, -1, 1, -1, 1, 1, -1, 1); + * } + * + * function mouseClicked() { + * showRedGreen = !showRedGreen; + * } + * + *
+ * + * @alt + * canvas toggles between a circular gradient of orange and blue vertically. and a circular gradient of red and green moving horizontally when mouse is clicked/pressed. + */ + p5.prototype.shader = function(s) { + this._assert3d('shader'); + p5._validateParameters('shader', arguments); + + if (s._renderer === undefined) { + s._renderer = this._renderer; + } + + if (s.isStrokeShader()) { + this._renderer.userStrokeShader = s; + } else { + this._renderer.userFillShader = s; + this._renderer._useNormalMaterial = false; + } + + s.init(); + + return this; + }; + + /** + * This function restores the default shaders in WEBGL mode. Code that runs + * after resetShader() will not be affected by previously defined + * shaders. Should be run after shader(). + * + * @method resetShader + * @chainable + */ + p5.prototype.resetShader = function() { + this._renderer.userFillShader = this._renderer.userStrokeShader = null; + return this; + }; + + /** + * Normal material for geometry. You can view all + * possible materials in this + * example. + * @method normalMaterial + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(200); + * normalMaterial(); + * sphere(40); + * } + * + *
+ * + * @alt + * Red, green and blue gradient. + * + */ + p5.prototype.normalMaterial = function() { + this._assert3d('normalMaterial'); + p5._validateParameters('normalMaterial', arguments); + this._renderer.drawMode = constants.FILL; + this._renderer._useSpecularMaterial = false; + this._renderer._useNormalMaterial = true; + this._renderer.curFillColor = [1, 1, 1, 1]; + this._renderer._setProperty('_doFill', true); + this.noStroke(); + return this; + }; + + /** + * Texture for geometry. You can view other possible materials in this + * example. + * @method texture + * @param {p5.Image|p5.MediaElement|p5.Graphics} tex 2-dimensional graphics + * to render as texture + * @chainable + * @example + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/laDefense.jpg'); + * } + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(0); + * rotateZ(frameCount * 0.01); + * rotateX(frameCount * 0.01); + * rotateY(frameCount * 0.01); + * //pass image as texture + * texture(img); + * box(200, 200, 200); + * } + * + *
+ * + *
+ * + * let pg; + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * pg = createGraphics(200, 200); + * pg.textSize(75); + * } + * + * function draw() { + * background(0); + * pg.background(255); + * pg.text('hello!', 0, 100); + * //pass image as texture + * texture(pg); + * rotateX(0.5); + * noStroke(); + * plane(50); + * } + * + *
+ * + *
+ * + * let vid; + * function preload() { + * vid = createVideo('assets/fingers.mov'); + * vid.hide(); + * } + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(0); + * //pass video frame as texture + * texture(vid); + * rect(-40, -40, 80, 80); + * } + * + * function mousePressed() { + * vid.loop(); + * } + * + *
+ * + * @alt + * Rotating view of many images umbrella and grid roof on a 3d plane + * black canvas + * black canvas + * + */ + p5.prototype.texture = function(tex) { + this._assert3d('texture'); + p5._validateParameters('texture', arguments); + + this._renderer.drawMode = constants.TEXTURE; + this._renderer._useSpecularMaterial = false; + this._renderer._useNormalMaterial = false; + this._renderer._tex = tex; + this._renderer._setProperty('_doFill', true); + + return this; + }; + + /** + * Sets the coordinate space for texture mapping. The default mode is IMAGE + * which refers to the actual coordinates of the image. + * NORMAL refers to a normalized space of values ranging from 0 to 1. + * This function only works in WEBGL mode. + * + * With IMAGE, if an image is 100 x 200 pixels, mapping the image onto the entire + * size of a quad would require the points (0,0) (100, 0) (100,200) (0,200). + * The same mapping in NORMAL is (0,0) (1,0) (1,1) (0,1). + * @method textureMode + * @param {Constant} mode either IMAGE or NORMAL + * @example + *
+ * + * let img; + * + * function preload() { + * img = loadImage('assets/laDefense.jpg'); + * } + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * texture(img); + * textureMode(NORMAL); + * beginShape(); + * vertex(-50, -50, 0, 0); + * vertex(50, -50, 1, 0); + * vertex(50, 50, 1, 1); + * vertex(-50, 50, 0, 1); + * endShape(); + * } + * + *
+ * + * @alt + * the underside of a white umbrella and gridded ceiling above + * + *
+ * + * let img; + * + * function preload() { + * img = loadImage('assets/laDefense.jpg'); + * } + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * texture(img); + * textureMode(NORMAL); + * beginShape(); + * vertex(-50, -50, 0, 0); + * vertex(50, -50, img.width, 0); + * vertex(50, 50, img.width, img.height); + * vertex(-50, 50, 0, img.height); + * endShape(); + * } + * + *
+ * + * @alt + * the underside of a white umbrella and gridded ceiling above + * + */ + p5.prototype.textureMode = function(mode) { + if (mode !== constants.IMAGE && mode !== constants.NORMAL) { + console.warn( + 'You tried to set ' + mode + ' textureMode only supports IMAGE & NORMAL ' + ); + } else { + this._renderer.textureMode = mode; + } + }; + + /** + * Sets the global texture wrapping mode. This controls how textures behave + * when their uv's go outside of the 0 - 1 range. There are three options: + * CLAMP, REPEAT, and MIRROR. + * + * CLAMP causes the pixels at the edge of the texture to extend to the bounds + * REPEAT causes the texture to tile repeatedly until reaching the bounds + * MIRROR works similarly to REPEAT but it flips the texture with every new tile + * + * REPEAT & MIRROR are only available if the texture + * is a power of two size (128, 256, 512, 1024, etc.). + * + * This method will affect all textures in your sketch until a subsequent + * textureWrap call is made. + * + * If only one argument is provided, it will be applied to both the + * horizontal and vertical axes. + * @method textureWrap + * @param {Constant} wrapX either CLAMP, REPEAT, or MIRROR + * @param {Constant} [wrapY] either CLAMP, REPEAT, or MIRROR + * @example + *
+ * + * let img; + * function preload() { + * img = loadImage('assets/rockies128.jpg'); + * } + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * textureWrap(MIRROR); + * } + * + * function draw() { + * background(0); + * + * let dX = mouseX; + * let dY = mouseY; + * + * let u = lerp(1.0, 2.0, dX); + * let v = lerp(1.0, 2.0, dY); + * + * scale(width / 2); + * + * texture(img); + * + * beginShape(TRIANGLES); + * vertex(-1, -1, 0, 0, 0); + * vertex(1, -1, 0, u, 0); + * vertex(1, 1, 0, u, v); + * + * vertex(1, 1, 0, u, v); + * vertex(-1, 1, 0, 0, v); + * vertex(-1, -1, 0, 0, 0); + * endShape(); + * } + * + *
+ * + * @alt + * an image of the rocky mountains repeated in mirrored tiles + * + */ + p5.prototype.textureWrap = function(wrapX, wrapY) { + wrapY = wrapY || wrapX; + + this._renderer.textureWrapX = wrapX; + this._renderer.textureWrapY = wrapY; + + var textures = this._renderer.textures; + for (var i = 0; i < textures.length; i++) { + textures[i].setWrapMode(wrapX, wrapY); + } + }; + + /** + * Ambient material for geometry with a given color. You can view all + * possible materials in this + * example. + * @method ambientMaterial + * @param {Number} v1 gray value, red or hue value + * (depending on the current color mode), + * @param {Number} [v2] green or saturation value + * @param {Number} [v3] blue or brightness value + * @param {Number} [a] opacity + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * function draw() { + * background(0); + * noStroke(); + * ambientLight(200); + * ambientMaterial(70, 130, 230); + * sphere(40); + * } + * + *
+ * + * @alt + * radiating light source from top right of canvas + * + */ + /** + * @method ambientMaterial + * @param {Number[]|String|p5.Color} color color, color Array, or CSS color string + * @chainable + */ + p5.prototype.ambientMaterial = function(v1, v2, v3, a) { + this._assert3d('ambientMaterial'); + p5._validateParameters('ambientMaterial', arguments); + + var color = p5.prototype.color.apply(this, arguments); + this._renderer.curFillColor = color._array; + this._renderer._useSpecularMaterial = false; + this._renderer._useNormalMaterial = false; + this._renderer._enableLighting = true; + this._renderer._tex = null; + + return this; + }; + + /** + * Specular material for geometry with a given color. You can view all + * possible materials in this + * example. + * @method specularMaterial + * @param {Number} v1 gray value, red or hue value + * (depending on the current color mode), + * @param {Number} [v2] green or saturation value + * @param {Number} [v3] blue or brightness value + * @param {Number} [a] opacity + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * function draw() { + * background(0); + * noStroke(); + * ambientLight(50); + * pointLight(250, 250, 250, 100, 100, 30); + * specularMaterial(250); + * sphere(40); + * } + * + *
+ * + * @alt + * diffused radiating light source from top right of canvas + * + */ + /** + * @method specularMaterial + * @param {Number[]|String|p5.Color} color color Array, or CSS color string + * @chainable + */ + p5.prototype.specularMaterial = function(v1, v2, v3, a) { + this._assert3d('specularMaterial'); + p5._validateParameters('specularMaterial', arguments); + + var color = p5.prototype.color.apply(this, arguments); + this._renderer.curFillColor = color._array; + this._renderer._useSpecularMaterial = true; + this._renderer._useNormalMaterial = false; + this._renderer._enableLighting = true; + this._renderer._tex = null; + + return this; + }; + + /** + * Sets the amount of gloss in the surface of shapes. + * Used in combination with specularMaterial() in setting + * the material properties of shapes. The default and minimum value is 1. + * @method shininess + * @param {Number} shine Degree of Shininess. + * Defaults to 1. + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * function draw() { + * background(0); + * noStroke(); + * let locX = mouseX - width / 2; + * let locY = mouseY - height / 2; + * ambientLight(60, 60, 60); + * pointLight(255, 255, 255, locX, locY, 50); + * specularMaterial(250); + * translate(-25, 0, 0); + * shininess(1); + * sphere(20); + * translate(50, 0, 0); + * shininess(20); + * sphere(20); + * } + * + *
+ * @alt + * Shininess on Camera changes position with mouse + */ + p5.prototype.shininess = function(shine) { + this._assert3d('shininess'); + p5._validateParameters('shininess', arguments); + + if (shine < 1) { + shine = 1; + } + this._renderer._useShininess = shine; + return this; + }; + + /** + * @private blends colors according to color components. + * If alpha value is less than 1, we need to enable blending + * on our gl context. Otherwise opaque objects need to a depthMask. + * @param {Number[]} color [description] + * @return {Number[]]} Normalized numbers array + */ + p5.RendererGL.prototype._applyColorBlend = function(colors) { + var gl = this.GL; + + var isTexture = this.drawMode === constants.TEXTURE; + if (isTexture || colors[colors.length - 1] < 1.0) { + gl.depthMask(isTexture); + gl.enable(gl.BLEND); + this._applyBlendMode(); + } else { + gl.depthMask(true); + gl.disable(gl.BLEND); + } + return colors; + }; + + /** + * @private sets blending in gl context to curBlendMode + * @param {Number[]} color [description] + * @return {Number[]]} Normalized numbers array + */ + p5.RendererGL.prototype._applyBlendMode = function() { + var gl = this.GL; + switch (this.curBlendMode) { + case constants.BLEND: + case constants.ADD: + gl.blendEquation(gl.FUNC_ADD); + gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA); + break; + case constants.MULTIPLY: + gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_ADD); + gl.blendFuncSeparate(gl.ZERO, gl.SRC_COLOR, gl.ONE, gl.ONE); + break; + case constants.SCREEN: + gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_ADD); + gl.blendFuncSeparate(gl.ONE_MINUS_DST_COLOR, gl.ONE, gl.ONE, gl.ONE); + break; + case constants.EXCLUSION: + gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_ADD); + gl.blendFuncSeparate( + gl.ONE_MINUS_DST_COLOR, + gl.ONE_MINUS_SRC_COLOR, + gl.ONE, + gl.ONE + ); + + break; + case constants.REPLACE: + gl.blendEquation(gl.FUNC_ADD); + gl.blendFunc(gl.ONE, gl.ZERO); + break; + case constants.SUBTRACT: + gl.blendEquationSeparate(gl.FUNC_REVERSE_SUBTRACT, gl.FUNC_ADD); + gl.blendFuncSeparate(gl.SRC_ALPHA, gl.ONE, gl.ONE, gl.ONE); + break; + case constants.DARKEST: + if (this.blendExt) { + gl.blendEquationSeparate(this.blendExt.MIN_EXT, gl.FUNC_ADD); + gl.blendFuncSeparate(gl.ONE, gl.ONE, gl.ONE, gl.ONE); + } else { + console.warn( + 'blendMode(DARKEST) does not work in your browser in WEBGL mode.' + ); + } + break; + case constants.LIGHTEST: + if (this.blendExt) { + gl.blendEquationSeparate(this.blendExt.MAX_EXT, gl.FUNC_ADD); + gl.blendFuncSeparate(gl.ONE, gl.ONE, gl.ONE, gl.ONE); + } else { + console.warn( + 'blendMode(LIGHTEST) does not work in your browser in WEBGL mode.' + ); + } + break; + default: + console.error( + 'Oops! Somehow RendererGL set curBlendMode to an unsupported mode.' + ); + + break; + } + }; + + module.exports = p5; + }, + { '../core/constants': 18, '../core/main': 24, './p5.Texture': 77 } + ], + 70: [ + function(_dereq_, module, exports) { + /** + * @module Lights, Camera + * @submodule Camera + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + //////////////////////////////////////////////////////////////////////////////// + // p5.Prototype Methods + //////////////////////////////////////////////////////////////////////////////// + + /** + * Sets the camera position for a 3D sketch. Parameters for this function define + * the position for the camera, the center of the sketch (where the camera is + * pointing), and an up direction (the orientation of the camera). + * + * When called with no arguments, this function creates a default camera + * equivalent to + * camera(0, 0, (height/2.0) / tan(PI*30.0 / 180.0), 0, 0, 0, 0, 1, 0); + * @method camera + * @for p5 + * @param {Number} [x] camera position value on x axis + * @param {Number} [y] camera position value on y axis + * @param {Number} [z] camera position value on z axis + * @param {Number} [centerX] x coordinate representing center of the sketch + * @param {Number} [centerY] y coordinate representing center of the sketch + * @param {Number} [centerZ] z coordinate representing center of the sketch + * @param {Number} [upX] x component of direction 'up' from camera + * @param {Number} [upY] y component of direction 'up' from camera + * @param {Number} [upZ] z component of direction 'up' from camera + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * function draw() { + * background(204); + * //move the camera away from the plane by a sin wave + * camera(0, 0, 20 + sin(frameCount * 0.01) * 10, 0, 0, 0, 0, 1, 0); + * plane(10, 10); + * } + * + *
+ * + * @alt + * White square repeatedly grows to fill canvas and then shrinks. + * + */ + p5.prototype.camera = function() { + this._assert3d('camera'); + p5._validateParameters('camera', arguments); + this._renderer._curCamera.camera.apply(this._renderer._curCamera, arguments); + return this; + }; + + /** + * Sets a perspective projection for the camera in a 3D sketch. This projection + * represents depth through foreshortening: objects that are close to the camera + * appear their actual size while those that are further away from the camera + * appear smaller. The parameters to this function define the viewing frustum + * (the truncated pyramid within which objects are seen by the camera) through + * vertical field of view, aspect ratio (usually width/height), and near and far + * clipping planes. + * + * When called with no arguments, the defaults + * provided are equivalent to + * perspective(PI/3.0, width/height, eyeZ/10.0, eyeZ*10.0), where eyeZ + * is equal to ((height/2.0) / tan(PI*60.0/360.0)); + * @method perspective + * @for p5 + * @param {Number} [fovy] camera frustum vertical field of view, + * from bottom to top of view, in angleMode units + * @param {Number} [aspect] camera frustum aspect ratio + * @param {Number} [near] frustum near plane length + * @param {Number} [far] frustum far plane length + * @chainable + * @example + *
+ * + * //drag the mouse to look around! + * //you will see there's a vanishing point + * function setup() { + * createCanvas(100, 100, WEBGL); + * perspective(PI / 3.0, width / height, 0.1, 500); + * } + * function draw() { + * background(200); + * orbitControl(); + * normalMaterial(); + * + * rotateX(-0.3); + * rotateY(-0.2); + * translate(0, 0, -50); + * + * push(); + * translate(-15, 0, sin(frameCount / 30) * 95); + * box(30); + * pop(); + * push(); + * translate(15, 0, sin(frameCount / 30 + PI) * 95); + * box(30); + * pop(); + * } + * + *
+ * + * @alt + * two colored 3D boxes move back and forth, rotating as mouse is dragged. + * + */ + p5.prototype.perspective = function() { + this._assert3d('perspective'); + p5._validateParameters('perspective', arguments); + this._renderer._curCamera.perspective.apply( + this._renderer._curCamera, + arguments + ); + + return this; + }; + + /** + * Sets an orthographic projection for the camera in a 3D sketch and defines a + * box-shaped viewing frustum within which objects are seen. In this projection, + * all objects with the same dimension appear the same size, regardless of + * whether they are near or far from the camera. The parameters to this + * function specify the viewing frustum where left and right are the minimum and + * maximum x values, top and bottom are the minimum and maximum y values, and near + * and far are the minimum and maximum z values. If no parameters are given, the + * default is used: ortho(-width/2, width/2, -height/2, height/2). + * @method ortho + * @for p5 + * @param {Number} [left] camera frustum left plane + * @param {Number} [right] camera frustum right plane + * @param {Number} [bottom] camera frustum bottom plane + * @param {Number} [top] camera frustum top plane + * @param {Number} [near] camera frustum near plane + * @param {Number} [far] camera frustum far plane + * @chainable + * @example + *
+ * + * //drag the mouse to look around! + * //there's no vanishing point + * function setup() { + * createCanvas(100, 100, WEBGL); + * ortho(-width / 2, width / 2, height / 2, -height / 2, 0, 500); + * } + * function draw() { + * background(200); + * orbitControl(); + * normalMaterial(); + * + * rotateX(0.2); + * rotateY(-0.2); + * push(); + * translate(-15, 0, sin(frameCount / 30) * 65); + * box(30); + * pop(); + * push(); + * translate(15, 0, sin(frameCount / 30 + PI) * 65); + * box(30); + * pop(); + * } + * + *
+ * + * @alt + * two 3D boxes move back and forth along same plane, rotating as mouse is dragged. + * + */ + p5.prototype.ortho = function() { + this._assert3d('ortho'); + p5._validateParameters('ortho', arguments); + this._renderer._curCamera.ortho.apply(this._renderer._curCamera, arguments); + return this; + }; + + //////////////////////////////////////////////////////////////////////////////// + // p5.Camera + //////////////////////////////////////////////////////////////////////////////// + + /** + * Creates a new p5.Camera object and tells the + * renderer to use that camera. + * Returns the p5.Camera object. + * @method createCamera + * @return {p5.Camera} The newly created camera object. + * @for p5 + */ + p5.prototype.createCamera = function() { + this._assert3d('createCamera'); + var _cam = new p5.Camera(this._renderer); + + // compute default camera settings, then set a default camera + _cam._computeCameraDefaultSettings(); + _cam._setDefaultCamera(); + + // set renderer current camera to the new camera + this._renderer._curCamera = _cam; + + return _cam; + }; + + /** + * This class describes a camera for use in p5's + * + * WebGL mode. It contains camera position, orientation, and projection + * information necessary for rendering a 3D scene. + * + * New p5.Camera objects can be made through the + * createCamera() function and controlled through + * the methods described below. A camera created in this way will use a default + * position in the scene and a default perspective projection until these + * properties are changed through the various methods available. It is possible + * to create multiple cameras, in which case the current camera + * can be set through the setCamera() method. + * + * + * Note: + * The methods below operate in two coordinate systems: the 'world' coordinate + * system describe positions in terms of their relationship to the origin along + * the X, Y and Z axes whereas the camera's 'local' coordinate system + * describes positions from the camera's point of view: left-right, up-down, + * and forward-backward. The move() method, + * for instance, moves the camera along its own axes, whereas the + * setPosition() + * method sets the camera's position in world-space. + * + * + * @class p5.Camera + * @param {rendererGL} rendererGL instance of WebGL renderer + * @example + *
+ * + * let cam; + * let delta = 0.01; + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * normalMaterial(); + * cam = createCamera(); + * // set initial pan angle + * cam.pan(-0.8); + * } + * + * function draw() { + * background(200); + * + * // pan camera according to angle 'delta' + * cam.pan(delta); + * + * // every 160 frames, switch direction + * if (frameCount % 160 === 0) { + * delta *= -1; + * } + * + * rotateX(frameCount * 0.01); + * translate(-100, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * } + * + *
+ * + * @alt + * camera view pans left and right across a series of rotating 3D boxes. + * + */ + p5.Camera = function(renderer) { + this._renderer = renderer; + + this.cameraType = 'default'; + + this.cameraMatrix = new p5.Matrix(); + this.projMatrix = new p5.Matrix(); + }; + + //////////////////////////////////////////////////////////////////////////////// + // Camera Projection Methods + //////////////////////////////////////////////////////////////////////////////// + + /** + * Sets a perspective projection for a p5.Camera object and sets parameters + * for that projection according to perspective() + * syntax. + * @method perspective + * @for p5.Camera + */ + p5.Camera.prototype.perspective = function(fovy, aspect, near, far) { + if (typeof fovy === 'undefined') { + fovy = this.defaultCameraFOV; + // this avoids issue where setting angleMode(DEGREES) before calling + // perspective leads to a smaller than expected FOV (because + // _computeCameraDefaultSettings computes in radians) + this.cameraFOV = fovy; + } else { + this.cameraFOV = this._renderer._pInst._toRadians(fovy); + } + if (typeof aspect === 'undefined') { + aspect = this.defaultAspectRatio; + } + if (typeof near === 'undefined') { + near = this.defaultCameraNear; + } + if (typeof far === 'undefined') { + far = this.defaultCameraFar; + } + + if (near <= 0.0001) { + near = 0.01; + console.log( + 'Avoid perspective near plane values close to or below 0. ' + + 'Setting value to 0.01.' + ); + } + + if (far < near) { + console.log( + 'Perspective far plane value is less than near plane value. ' + + 'Nothing will be shown.' + ); + } + + this.aspectRatio = aspect; + this.cameraNear = near; + this.cameraFar = far; + + this.projMatrix = p5.Matrix.identity(); + + var f = 1.0 / Math.tan(this.cameraFOV / 2); + var nf = 1.0 / (this.cameraNear - this.cameraFar); + + // prettier-ignore + this.projMatrix.set(f / aspect, 0, 0, 0, + 0, -f, 0, 0, + 0, 0, (far + near) * nf, -1, + 0, 0, 2 * far * near * nf, 0); + + if (this._isActive()) { + this._renderer.uPMatrix.set( + this.projMatrix.mat4[0], + this.projMatrix.mat4[1], + this.projMatrix.mat4[2], + this.projMatrix.mat4[3], + this.projMatrix.mat4[4], + this.projMatrix.mat4[5], + this.projMatrix.mat4[6], + this.projMatrix.mat4[7], + this.projMatrix.mat4[8], + this.projMatrix.mat4[9], + this.projMatrix.mat4[10], + this.projMatrix.mat4[11], + this.projMatrix.mat4[12], + this.projMatrix.mat4[13], + this.projMatrix.mat4[14], + this.projMatrix.mat4[15] + ); + } + + this.cameraType = 'custom'; + }; + + /** + * Sets an orthographic projection for a p5.Camera object and sets parameters + * for that projection according to ortho() syntax. + * @method ortho + * @for p5.Camera + */ + p5.Camera.prototype.ortho = function(left, right, bottom, top, near, far) { + if (left === undefined) left = -this._renderer.width / 2; + if (right === undefined) right = +this._renderer.width / 2; + if (bottom === undefined) bottom = -this._renderer.height / 2; + if (top === undefined) top = +this._renderer.height / 2; + if (near === undefined) near = 0; + if (far === undefined) + far = Math.max(this._renderer.width, this._renderer.height); + + var w = right - left; + var h = top - bottom; + var d = far - near; + + var x = +2.0 / w; + var y = +2.0 / h; + var z = -2.0 / d; + + var tx = -(right + left) / w; + var ty = -(top + bottom) / h; + var tz = -(far + near) / d; + + this.projMatrix = p5.Matrix.identity(); + + // prettier-ignore + this.projMatrix.set(x, 0, 0, 0, + 0, -y, 0, 0, + 0, 0, z, 0, + tx, ty, tz, 1); + + if (this._isActive()) { + this._renderer.uPMatrix.set( + this.projMatrix.mat4[0], + this.projMatrix.mat4[1], + this.projMatrix.mat4[2], + this.projMatrix.mat4[3], + this.projMatrix.mat4[4], + this.projMatrix.mat4[5], + this.projMatrix.mat4[6], + this.projMatrix.mat4[7], + this.projMatrix.mat4[8], + this.projMatrix.mat4[9], + this.projMatrix.mat4[10], + this.projMatrix.mat4[11], + this.projMatrix.mat4[12], + this.projMatrix.mat4[13], + this.projMatrix.mat4[14], + this.projMatrix.mat4[15] + ); + } + + this.cameraType = 'custom'; + }; + + //////////////////////////////////////////////////////////////////////////////// + // Camera Orientation Methods + //////////////////////////////////////////////////////////////////////////////// + + /** + * Rotate camera view about arbitrary axis defined by x,y,z + * based on http://learnwebgl.brown37.net/07_cameras/camera_rotating_motion.html + * @method _rotateView + * @private + */ + p5.Camera.prototype._rotateView = function(a, x, y, z) { + var centerX = this.centerX; + var centerY = this.centerY; + var centerZ = this.centerZ; + + // move center by eye position such that rotation happens around eye position + centerX -= this.eyeX; + centerY -= this.eyeY; + centerZ -= this.eyeZ; + + var rotation = p5.Matrix.identity(this._renderer._pInst); + rotation.rotate(this._renderer._pInst._toRadians(a), x, y, z); + + // prettier-ignore + var rotatedCenter = [ + centerX * rotation.mat4[0] + centerY * rotation.mat4[4] + centerZ * rotation.mat4[8], + centerX * rotation.mat4[1] + centerY * rotation.mat4[5] + centerZ * rotation.mat4[9], + centerX * rotation.mat4[2] + centerY * rotation.mat4[6] + centerZ * rotation.mat4[10]]; + + // add eye position back into center + rotatedCenter[0] += this.eyeX; + rotatedCenter[1] += this.eyeY; + rotatedCenter[2] += this.eyeZ; + + this.camera( + this.eyeX, + this.eyeY, + this.eyeZ, + rotatedCenter[0], + rotatedCenter[1], + rotatedCenter[2], + this.upX, + this.upY, + this.upZ + ); + }; + + /** + * Panning rotates the camera view to the left and right. + * @method pan + * @param {Number} angle amount to rotate camera in current + * angleMode units. + * Greater than 0 values rotate counterclockwise (to the left). + * @example + *
+ * + * let cam; + * let delta = 0.01; + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * normalMaterial(); + * cam = createCamera(); + * // set initial pan angle + * cam.pan(-0.8); + * } + * + * function draw() { + * background(200); + * + * // pan camera according to angle 'delta' + * cam.pan(delta); + * + * // every 160 frames, switch direction + * if (frameCount % 160 === 0) { + * delta *= -1; + * } + * + * rotateX(frameCount * 0.01); + * translate(-100, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * } + * + *
+ * + * @alt + * camera view pans left and right across a series of rotating 3D boxes. + * + */ + p5.Camera.prototype.pan = function(amount) { + var local = this._getLocalAxes(); + this._rotateView(amount, local.y[0], local.y[1], local.y[2]); + }; + + /** + * Tilting rotates the camera view up and down. + * @method tilt + * @param {Number} angle amount to rotate camera in current + * angleMode units. + * Greater than 0 values rotate counterclockwise (to the left). + * @example + *
+ * + * let cam; + * let delta = 0.01; + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * normalMaterial(); + * cam = createCamera(); + * // set initial tilt + * cam.tilt(-0.8); + * } + * + * function draw() { + * background(200); + * + * // pan camera according to angle 'delta' + * cam.tilt(delta); + * + * // every 160 frames, switch direction + * if (frameCount % 160 === 0) { + * delta *= -1; + * } + * + * rotateY(frameCount * 0.01); + * translate(0, -100, 0); + * box(20); + * translate(0, 35, 0); + * box(20); + * translate(0, 35, 0); + * box(20); + * translate(0, 35, 0); + * box(20); + * translate(0, 35, 0); + * box(20); + * translate(0, 35, 0); + * box(20); + * translate(0, 35, 0); + * box(20); + * } + * + *
+ * + * @alt + * camera view tilts up and down across a series of rotating 3D boxes. + */ + p5.Camera.prototype.tilt = function(amount) { + var local = this._getLocalAxes(); + this._rotateView(amount, local.x[0], local.x[1], local.x[2]); + }; + + /** + * Reorients the camera to look at a position in world space. + * @method lookAt + * @for p5.Camera + * @param {Number} x x position of a point in world space + * @param {Number} y y position of a point in world space + * @param {Number} z z position of a point in world space + * @example + *
+ * + * let cam; + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * normalMaterial(); + * cam = createCamera(); + * } + * + * function draw() { + * background(200); + * + * // look at a new random point every 60 frames + * if (frameCount % 60 === 0) { + * cam.lookAt(random(-100, 100), random(-50, 50), 0); + * } + * + * rotateX(frameCount * 0.01); + * translate(-100, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * } + * + *
+ * + * @alt + * camera view of rotating 3D cubes changes to look at a new random + * point every second . + */ + p5.Camera.prototype.lookAt = function(x, y, z) { + this.camera( + this.eyeX, + this.eyeY, + this.eyeZ, + x, + y, + z, + this.upX, + this.upY, + this.upZ + ); + }; + + //////////////////////////////////////////////////////////////////////////////// + // Camera Position Methods + //////////////////////////////////////////////////////////////////////////////// + + /** + * Sets a camera's position and orientation. This is equivalent to calling + * camera() on a p5.Camera object. + * @method camera + * @for p5.Camera + */ + p5.Camera.prototype.camera = function( + eyeX, + eyeY, + eyeZ, + centerX, + centerY, + centerZ, + upX, + upY, + upZ + ) { + if (typeof eyeX === 'undefined') { + eyeX = this.defaultEyeX; + eyeY = this.defaultEyeY; + eyeZ = this.defaultEyeZ; + centerX = eyeX; + centerY = eyeY; + centerZ = 0; + upX = 0; + upY = 1; + upZ = 0; + } + + this.eyeX = eyeX; + this.eyeY = eyeY; + this.eyeZ = eyeZ; + + this.centerX = centerX; + this.centerY = centerY; + this.centerZ = centerZ; + + this.upX = upX; + this.upY = upY; + this.upZ = upZ; + + var local = this._getLocalAxes(); + + // the camera affects the model view matrix, insofar as it + // inverse translates the world to the eye position of the camera + // and rotates it. + // prettier-ignore + this.cameraMatrix.set(local.x[0], local.y[0], local.z[0], 0, + local.x[1], local.y[1], local.z[1], 0, + local.x[2], local.y[2], local.z[2], 0, + 0, 0, 0, 1); + + var tx = -eyeX; + var ty = -eyeY; + var tz = -eyeZ; + + this.cameraMatrix.translate([tx, ty, tz]); + + if (this._isActive()) { + this._renderer.uMVMatrix.set( + this.cameraMatrix.mat4[0], + this.cameraMatrix.mat4[1], + this.cameraMatrix.mat4[2], + this.cameraMatrix.mat4[3], + this.cameraMatrix.mat4[4], + this.cameraMatrix.mat4[5], + this.cameraMatrix.mat4[6], + this.cameraMatrix.mat4[7], + this.cameraMatrix.mat4[8], + this.cameraMatrix.mat4[9], + this.cameraMatrix.mat4[10], + this.cameraMatrix.mat4[11], + this.cameraMatrix.mat4[12], + this.cameraMatrix.mat4[13], + this.cameraMatrix.mat4[14], + this.cameraMatrix.mat4[15] + ); + } + return this; + }; + + /** + * Move camera along its local axes while maintaining current camera orientation. + * @method move + * @param {Number} x amount to move along camera's left-right axis + * @param {Number} y amount to move along camera's up-down axis + * @param {Number} z amount to move along camera's forward-backward axis + * @example + *
+ * + * // see the camera move along its own axes while maintaining its orientation + * let cam; + * let delta = 0.5; + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * normalMaterial(); + * cam = createCamera(); + * } + * + * function draw() { + * background(200); + * + * // move the camera along its local axes + * cam.move(delta, delta, 0); + * + * // every 100 frames, switch direction + * if (frameCount % 150 === 0) { + * delta *= -1; + * } + * + * translate(-10, -10, 0); + * box(50, 8, 50); + * translate(15, 15, 0); + * box(50, 8, 50); + * translate(15, 15, 0); + * box(50, 8, 50); + * translate(15, 15, 0); + * box(50, 8, 50); + * translate(15, 15, 0); + * box(50, 8, 50); + * translate(15, 15, 0); + * box(50, 8, 50); + * } + * + *
+ * + * @alt + * camera view moves along a series of 3D boxes, maintaining the same + * orientation throughout the move + */ + p5.Camera.prototype.move = function(x, y, z) { + var local = this._getLocalAxes(); + + // scale local axes by movement amounts + // based on http://learnwebgl.brown37.net/07_cameras/camera_linear_motion.html + var dx = [local.x[0] * x, local.x[1] * x, local.x[2] * x]; + var dy = [local.y[0] * y, local.y[1] * y, local.y[2] * y]; + var dz = [local.z[0] * z, local.z[1] * z, local.z[2] * z]; + + this.camera( + this.eyeX + dx[0] + dy[0] + dz[0], + this.eyeY + dx[1] + dy[1] + dz[1], + this.eyeZ + dx[2] + dy[2] + dz[2], + this.centerX + dx[0] + dy[0] + dz[0], + this.centerY + dx[1] + dy[1] + dz[1], + this.centerZ + dx[2] + dy[2] + dz[2], + 0, + 1, + 0 + ); + }; + + /** + * Set camera position in world-space while maintaining current camera + * orientation. + * @method setPosition + * @param {Number} x x position of a point in world space + * @param {Number} y y position of a point in world space + * @param {Number} z z position of a point in world space + * @example + *
+ * + * // press '1' '2' or '3' keys to set camera position + * + * let cam; + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * normalMaterial(); + * cam = createCamera(); + * } + * + * function draw() { + * background(200); + * + * // '1' key + * if (keyIsDown(49)) { + * cam.setPosition(30, 0, 80); + * } + * // '2' key + * if (keyIsDown(50)) { + * cam.setPosition(0, 0, 80); + * } + * // '3' key + * if (keyIsDown(51)) { + * cam.setPosition(-30, 0, 80); + * } + * + * box(20); + * } + * + *
+ * + * @alt + * camera position changes as the user presses keys, altering view of a 3D box + */ + p5.Camera.prototype.setPosition = function(x, y, z) { + var diffX = x - this.eyeX; + var diffY = y - this.eyeY; + var diffZ = z - this.eyeZ; + + this.camera( + x, + y, + z, + this.centerX + diffX, + this.centerY + diffY, + this.centerZ + diffZ, + 0, + 1, + 0 + ); + }; + + //////////////////////////////////////////////////////////////////////////////// + // Camera Helper Methods + //////////////////////////////////////////////////////////////////////////////// + + // @TODO: combine this function with _setDefaultCamera to compute these values + // as-needed + p5.Camera.prototype._computeCameraDefaultSettings = function() { + this.defaultCameraFOV = 60 / 180 * Math.PI; + this.defaultAspectRatio = this._renderer.width / this._renderer.height; + this.defaultEyeX = 0; + this.defaultEyeY = 0; + this.defaultEyeZ = + this._renderer.height / 2.0 / Math.tan(this.defaultCameraFOV / 2.0); + this.defaultCenterX = 0; + this.defaultCenterY = 0; + this.defaultCenterZ = 0; + this.defaultCameraNear = this.defaultEyeZ * 0.1; + this.defaultCameraFar = this.defaultEyeZ * 10; + }; + + //detect if user didn't set the camera + //then call this function below + p5.Camera.prototype._setDefaultCamera = function() { + this.cameraFOV = this.defaultCameraFOV; + this.aspectRatio = this.defaultAspectRatio; + this.eyeX = this.defaultEyeX; + this.eyeY = this.defaultEyeY; + this.eyeZ = this.defaultEyeZ; + this.centerX = this.defaultCenterX; + this.centerY = this.defaultCenterY; + this.centerZ = this.defaultCenterZ; + this.upX = 0; + this.upY = 1; + this.upZ = 0; + this.cameraNear = this.defaultCameraNear; + this.cameraFar = this.defaultCameraFar; + + this.perspective(); + this.camera(); + + this.cameraType = 'default'; + }; + + p5.Camera.prototype._resize = function() { + // If we're using the default camera, update the aspect ratio + if (this.cameraType === 'default') { + this._computeCameraDefaultSettings(); + this._setDefaultCamera(); + } else { + this.perspective( + this.cameraFOV, + this._renderer.width / this._renderer.height + ); + } + }; + + /** + * Returns a copy of a camera. + * @method copy + * @private + */ + p5.Camera.prototype.copy = function() { + var _cam = new p5.Camera(this._renderer); + _cam.cameraFOV = this.cameraFOV; + _cam.aspectRatio = this.aspectRatio; + _cam.eyeX = this.eyeX; + _cam.eyeY = this.eyeY; + _cam.eyeZ = this.eyeZ; + _cam.centerX = this.centerX; + _cam.centerY = this.centerY; + _cam.centerZ = this.centerZ; + _cam.cameraNear = this.cameraNear; + _cam.cameraFar = this.cameraFar; + + _cam.cameraType = this.cameraType; + + _cam.cameraMatrix = this.cameraMatrix.copy(); + _cam.projMatrix = this.projMatrix.copy(); + + return _cam; + }; + + /** + * Returns a camera's local axes: left-right, up-down, and forward-backward, + * as defined by vectors in world-space. + * @method _getLocalAxes + * @private + */ + p5.Camera.prototype._getLocalAxes = function() { + // calculate camera local Z vector + var z0 = this.eyeX - this.centerX; + var z1 = this.eyeY - this.centerY; + var z2 = this.eyeZ - this.centerZ; + + // normalize camera local Z vector + var eyeDist = Math.sqrt(z0 * z0 + z1 * z1 + z2 * z2); + if (eyeDist !== 0) { + z0 /= eyeDist; + z1 /= eyeDist; + z2 /= eyeDist; + } + + // calculate camera Y vector + var y0 = this.upX; + var y1 = this.upY; + var y2 = this.upZ; + + // compute camera local X vector as up vector (local Y) cross local Z + var x0 = y1 * z2 - y2 * z1; + var x1 = -y0 * z2 + y2 * z0; + var x2 = y0 * z1 - y1 * z0; + + // recompute y = z cross x + y0 = z1 * x2 - z2 * x1; + y1 = -z0 * x2 + z2 * x0; + y2 = z0 * x1 - z1 * x0; + + // cross product gives area of parallelogram, which is < 1.0 for + // non-perpendicular unit-length vectors; so normalize x, y here: + var xmag = Math.sqrt(x0 * x0 + x1 * x1 + x2 * x2); + if (xmag !== 0) { + x0 /= xmag; + x1 /= xmag; + x2 /= xmag; + } + + var ymag = Math.sqrt(y0 * y0 + y1 * y1 + y2 * y2); + if (ymag !== 0) { + y0 /= ymag; + y1 /= ymag; + y2 /= ymag; + } + + return { + x: [x0, x1, x2], + y: [y0, y1, y2], + z: [z0, z1, z2] + }; + }; + + /** + * Orbits the camera about center point. For use with orbitControl(). + * @method _orbit + * @private + * @param {Number} dTheta change in spherical coordinate theta + * @param {Number} dPhi change in spherical coordinate phi + * @param {Number} dRadius change in radius + */ + p5.Camera.prototype._orbit = function(dTheta, dPhi, dRadius) { + var diffX = this.eyeX - this.centerX; + var diffY = this.eyeY - this.centerY; + var diffZ = this.eyeZ - this.centerZ; + + // get spherical coorinates for current camera position about origin + var camRadius = Math.sqrt(diffX * diffX + diffY * diffY + diffZ * diffZ); + // from https://github.com/mrdoob/three.js/blob/dev/src/math/Spherical.js#L72-L73 + var camTheta = Math.atan2(diffX, diffZ); // equatorial angle + var camPhi = Math.acos(Math.max(-1, Math.min(1, diffY / camRadius))); // polar angle + + // add change + camTheta += dTheta; + camPhi += dPhi; + camRadius += dRadius; + + // prevent zooming through the center: + if (camRadius < 0) { + camRadius = 0.1; + } + + // prevent rotation over the zenith / under bottom + if (camPhi > Math.PI) { + camPhi = Math.PI; + } else if (camPhi <= 0) { + camPhi = 0.001; + } + + // from https://github.com/mrdoob/three.js/blob/dev/src/math/Vector3.js#L628-L632 + var _x = Math.sin(camPhi) * camRadius * Math.sin(camTheta); + var _y = Math.cos(camPhi) * camRadius; + var _z = Math.sin(camPhi) * camRadius * Math.cos(camTheta); + + this.camera( + _x + this.centerX, + _y + this.centerY, + _z + this.centerZ, + this.centerX, + this.centerY, + this.centerZ, + 0, + 1, + 0 + ); + }; + + /** + * Returns true if camera is currently attached to renderer. + * @method _isActive + * @private + */ + p5.Camera.prototype._isActive = function() { + return this === this._renderer._curCamera; + }; + + /** + * Sets rendererGL's current camera to a p5.Camera object. Allows switching + * between multiple cameras. + * @method setCamera + * @param {p5.Camera} cam p5.Camera object + * @for p5 + * @example + *
+ * + * let cam1, cam2; + * let currentCamera; + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * normalMaterial(); + * + * cam1 = createCamera(); + * cam2 = createCamera(); + * cam2.setPosition(30, 0, 50); + * cam2.lookAt(0, 0, 0); + * cam2.ortho(); + * + * // set variable for previously active camera: + * currentCamera = 1; + * } + * + * function draw() { + * background(200); + * + * // camera 1: + * cam1.lookAt(0, 0, 0); + * cam1.setPosition(sin(frameCount / 60) * 200, 0, 100); + * + * // every 100 frames, switch between the two cameras + * if (frameCount % 100 === 0) { + * if (currentCamera === 1) { + * setCamera(cam1); + * currentCamera = 0; + * } else { + * setCamera(cam2); + * currentCamera = 1; + * } + * } + * + * drawBoxes(); + * } + * + * function drawBoxes() { + * rotateX(frameCount * 0.01); + * translate(-100, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * translate(35, 0, 0); + * box(20); + * } + * + *
+ * + * @alt + * Canvas switches between two camera views, each showing a series of spinning + * 3D boxes. + */ + p5.prototype.setCamera = function(cam) { + this._renderer._curCamera = cam; + + // set the projection matrix (which is not normally updated each frame) + this._renderer.uPMatrix.set( + cam.projMatrix.mat4[0], + cam.projMatrix.mat4[1], + cam.projMatrix.mat4[2], + cam.projMatrix.mat4[3], + cam.projMatrix.mat4[4], + cam.projMatrix.mat4[5], + cam.projMatrix.mat4[6], + cam.projMatrix.mat4[7], + cam.projMatrix.mat4[8], + cam.projMatrix.mat4[9], + cam.projMatrix.mat4[10], + cam.projMatrix.mat4[11], + cam.projMatrix.mat4[12], + cam.projMatrix.mat4[13], + cam.projMatrix.mat4[14], + cam.projMatrix.mat4[15] + ); + }; + + module.exports = p5.Camera; + }, + { '../core/main': 24 } + ], + 71: [ + function(_dereq_, module, exports) { + //some of the functions are adjusted from Three.js(http://threejs.org) + + 'use strict'; + + var p5 = _dereq_('../core/main'); + /** + * p5 Geometry class + * @class p5.Geometry + * @constructor + * @param {Integer} [detailX] number of vertices on horizontal surface + * @param {Integer} [detailY] number of vertices on horizontal surface + * @param {function} [callback] function to call upon object instantiation. + * + */ + p5.Geometry = function(detailX, detailY, callback) { + //an array containing every vertex + //@type [p5.Vector] + this.vertices = []; + + //an array containing every vertex for stroke drawing + this.lineVertices = []; + + //an array 1 normal per lineVertex with + //final position representing which direction to + //displace for strokeWeight + //[[0,0,-1,1], [0,1,0,-1] ...]; + this.lineNormals = []; + + //an array containing 1 normal per vertex + //@type [p5.Vector] + //[p5.Vector, p5.Vector, p5.Vector,p5.Vector, p5.Vector, p5.Vector,...] + this.vertexNormals = []; + //an array containing each three vertex indices that form a face + //[[0, 1, 2], [2, 1, 3], ...] + this.faces = []; + //a 2D array containing uvs for every vertex + //[[0.0,0.0],[1.0,0.0], ...] + this.uvs = []; + // a 2D array containing edge connectivity pattern for create line vertices + //based on faces for most objects; + this.edges = []; + this.detailX = detailX !== undefined ? detailX : 1; + this.detailY = detailY !== undefined ? detailY : 1; + + this.dirtyFlags = {}; + + if (callback instanceof Function) { + callback.call(this); + } + return this; // TODO: is this a constructor? + }; + + p5.Geometry.prototype.reset = function() { + this.lineVertices.length = 0; + this.lineNormals.length = 0; + + this.vertices.length = 0; + this.edges.length = 0; + this.vertexColors.length = 0; + this.vertexNormals.length = 0; + this.uvs.length = 0; + + this.dirtyFlags = {}; + }; + + /** + * @method computeFaces + * @chainable + */ + p5.Geometry.prototype.computeFaces = function() { + this.faces.length = 0; + var sliceCount = this.detailX + 1; + var a, b, c, d; + for (var i = 0; i < this.detailY; i++) { + for (var j = 0; j < this.detailX; j++) { + a = i * sliceCount + j; // + offset; + b = i * sliceCount + j + 1; // + offset; + c = (i + 1) * sliceCount + j + 1; // + offset; + d = (i + 1) * sliceCount + j; // + offset; + this.faces.push([a, b, d]); + this.faces.push([d, b, c]); + } + } + return this; + }; + + p5.Geometry.prototype._getFaceNormal = function(faceId) { + //This assumes that vA->vB->vC is a counter-clockwise ordering + var face = this.faces[faceId]; + var vA = this.vertices[face[0]]; + var vB = this.vertices[face[1]]; + var vC = this.vertices[face[2]]; + var ab = p5.Vector.sub(vB, vA); + var ac = p5.Vector.sub(vC, vA); + var n = p5.Vector.cross(ab, ac); + var ln = p5.Vector.mag(n); + var sinAlpha = ln / (p5.Vector.mag(ab) * p5.Vector.mag(ac)); + if (sinAlpha === 0 || isNaN(sinAlpha)) { + console.warn( + 'p5.Geometry.prototype._getFaceNormal:', + 'face has colinear sides or a repeated vertex' + ); + + return n; + } + if (sinAlpha > 1) sinAlpha = 1; // handle float rounding error + return n.mult(Math.asin(sinAlpha) / ln); + }; + /** + * computes smooth normals per vertex as an average of each + * face. + * @method computeNormals + * @chainable + */ + p5.Geometry.prototype.computeNormals = function() { + var vertexNormals = this.vertexNormals; + var vertices = this.vertices; + var faces = this.faces; + var iv; + + // initialize the vertexNormals array with empty vectors + vertexNormals.length = 0; + for (iv = 0; iv < vertices.length; ++iv) { + vertexNormals.push(new p5.Vector()); + } + + // loop through all the faces adding its normal to the normal + // of each of its vertices + for (var f = 0; f < faces.length; ++f) { + var face = faces[f]; + var faceNormal = this._getFaceNormal(f); + + // all three vertices get the normal added + for (var fv = 0; fv < 3; ++fv) { + var vertexIndex = face[fv]; + vertexNormals[vertexIndex].add(faceNormal); + } + } + + // normalize the normals + for (iv = 0; iv < vertices.length; ++iv) { + vertexNormals[iv].normalize(); + } + + return this; + }; + + /** + * Averages the vertex normals. Used in curved + * surfaces + * @method averageNormals + * @chainable + */ + p5.Geometry.prototype.averageNormals = function() { + for (var i = 0; i <= this.detailY; i++) { + var offset = this.detailX + 1; + var temp = p5.Vector.add( + this.vertexNormals[i * offset], + this.vertexNormals[i * offset + this.detailX] + ); + + temp = p5.Vector.div(temp, 2); + this.vertexNormals[i * offset] = temp; + this.vertexNormals[i * offset + this.detailX] = temp; + } + return this; + }; + + /** + * Averages pole normals. Used in spherical primitives + * @method averagePoleNormals + * @chainable + */ + p5.Geometry.prototype.averagePoleNormals = function() { + //average the north pole + var sum = new p5.Vector(0, 0, 0); + for (var i = 0; i < this.detailX; i++) { + sum.add(this.vertexNormals[i]); + } + sum = p5.Vector.div(sum, this.detailX); + + for (i = 0; i < this.detailX; i++) { + this.vertexNormals[i] = sum; + } + + //average the south pole + sum = new p5.Vector(0, 0, 0); + for ( + i = this.vertices.length - 1; + i > this.vertices.length - 1 - this.detailX; + i-- + ) { + sum.add(this.vertexNormals[i]); + } + sum = p5.Vector.div(sum, this.detailX); + + for ( + i = this.vertices.length - 1; + i > this.vertices.length - 1 - this.detailX; + i-- + ) { + this.vertexNormals[i] = sum; + } + return this; + }; + + /** + * Create a 2D array for establishing stroke connections + * @private + * @chainable + */ + p5.Geometry.prototype._makeTriangleEdges = function() { + this.edges.length = 0; + if (Array.isArray(this.strokeIndices)) { + for (var i = 0, max = this.strokeIndices.length; i < max; i++) { + this.edges.push(this.strokeIndices[i]); + } + } else { + for (var j = 0; j < this.faces.length; j++) { + this.edges.push([this.faces[j][0], this.faces[j][1]]); + this.edges.push([this.faces[j][1], this.faces[j][2]]); + this.edges.push([this.faces[j][2], this.faces[j][0]]); + } + } + return this; + }; + + /** + * Create 4 vertices for each stroke line, two at the beginning position + * and two at the end position. These vertices are displaced relative to + * that line's normal on the GPU + * @private + * @chainable + */ + p5.Geometry.prototype._edgesToVertices = function() { + this.lineVertices.length = 0; + this.lineNormals.length = 0; + + for (var i = 0; i < this.edges.length; i++) { + var begin = this.vertices[this.edges[i][0]]; + var end = this.vertices[this.edges[i][1]]; + var dir = end + .copy() + .sub(begin) + .normalize(); + var a = begin.array(); + var b = begin.array(); + var c = end.array(); + var d = end.array(); + var dirAdd = dir.array(); + var dirSub = dir.array(); + // below is used to displace the pair of vertices at beginning and end + // in opposite directions + dirAdd.push(1); + dirSub.push(-1); + this.lineNormals.push(dirAdd, dirSub, dirAdd, dirAdd, dirSub, dirSub); + this.lineVertices.push(a, b, c, c, b, d); + } + return this; + }; + + /** + * Modifies all vertices to be centered within the range -100 to 100. + * @method normalize + * @chainable + */ + p5.Geometry.prototype.normalize = function() { + if (this.vertices.length > 0) { + // Find the corners of our bounding box + var maxPosition = this.vertices[0].copy(); + var minPosition = this.vertices[0].copy(); + + for (var i = 0; i < this.vertices.length; i++) { + maxPosition.x = Math.max(maxPosition.x, this.vertices[i].x); + minPosition.x = Math.min(minPosition.x, this.vertices[i].x); + maxPosition.y = Math.max(maxPosition.y, this.vertices[i].y); + minPosition.y = Math.min(minPosition.y, this.vertices[i].y); + maxPosition.z = Math.max(maxPosition.z, this.vertices[i].z); + minPosition.z = Math.min(minPosition.z, this.vertices[i].z); + } + + var center = p5.Vector.lerp(maxPosition, minPosition, 0.5); + var dist = p5.Vector.sub(maxPosition, minPosition); + var longestDist = Math.max(Math.max(dist.x, dist.y), dist.z); + var scale = 200 / longestDist; + + for (i = 0; i < this.vertices.length; i++) { + this.vertices[i].sub(center); + this.vertices[i].mult(scale); + } + } + return this; + }; + + module.exports = p5.Geometry; + }, + { '../core/main': 24 } + ], + 72: [ + function(_dereq_, module, exports) { + /** + * @requires constants + * @todo see methods below needing further implementation. + * future consideration: implement SIMD optimizations + * when browser compatibility becomes available + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/ + * Reference/Global_Objects/SIMD + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + var GLMAT_ARRAY_TYPE = Array; + var isMatrixArray = function isMatrixArray(x) { + return x instanceof Array; + }; + if (typeof Float32Array !== 'undefined') { + GLMAT_ARRAY_TYPE = Float32Array; + isMatrixArray = function isMatrixArray(x) { + return x instanceof Array || x instanceof Float32Array; + }; + } + + /** + * A class to describe a 4x4 matrix + * for model and view matrix manipulation in the p5js webgl renderer. + * @class p5.Matrix + * @private + * @constructor + * @param {Array} [mat4] array literal of our 4x4 matrix + */ + p5.Matrix = function() { + var args = new Array(arguments.length); + for (var i = 0; i < args.length; ++i) { + args[i] = arguments[i]; + } + + // This is default behavior when object + // instantiated using createMatrix() + // @todo implement createMatrix() in core/math.js + if (args.length && args[args.length - 1] instanceof p5) { + this.p5 = args[args.length - 1]; + } + + if (args[0] === 'mat3') { + this.mat3 = Array.isArray(args[1]) + ? args[1] + : new GLMAT_ARRAY_TYPE([1, 0, 0, 0, 1, 0, 0, 0, 1]); + } else { + this.mat4 = Array.isArray(args[0]) + ? args[0] + : new GLMAT_ARRAY_TYPE([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]); + } + return this; + }; + + /** + * Sets the x, y, and z component of the vector using two or three separate + * variables, the data from a p5.Matrix, or the values from a float array. + * + * @method set + * @param {p5.Matrix|Float32Array|Number[]} [inMatrix] the input p5.Matrix or + * an Array of length 16 + * @chainable + */ + /** + * @method set + * @param {Number[]} elements 16 numbers passed by value to avoid + * array copying. + * @chainable + */ + p5.Matrix.prototype.set = function(inMatrix) { + if (inMatrix instanceof p5.Matrix) { + this.mat4 = inMatrix.mat4; + return this; + } else if (isMatrixArray(inMatrix)) { + this.mat4 = inMatrix; + return this; + } else if (arguments.length === 16) { + this.mat4[0] = arguments[0]; + this.mat4[1] = arguments[1]; + this.mat4[2] = arguments[2]; + this.mat4[3] = arguments[3]; + this.mat4[4] = arguments[4]; + this.mat4[5] = arguments[5]; + this.mat4[6] = arguments[6]; + this.mat4[7] = arguments[7]; + this.mat4[8] = arguments[8]; + this.mat4[9] = arguments[9]; + this.mat4[10] = arguments[10]; + this.mat4[11] = arguments[11]; + this.mat4[12] = arguments[12]; + this.mat4[13] = arguments[13]; + this.mat4[14] = arguments[14]; + this.mat4[15] = arguments[15]; + } + return this; + }; + + /** + * Gets a copy of the vector, returns a p5.Matrix object. + * + * @method get + * @return {p5.Matrix} the copy of the p5.Matrix object + */ + p5.Matrix.prototype.get = function() { + return new p5.Matrix(this.mat4, this.p5); + }; + + /** + * return a copy of a matrix + * @method copy + * @return {p5.Matrix} the result matrix + */ + p5.Matrix.prototype.copy = function() { + var copied = new p5.Matrix(this.p5); + copied.mat4[0] = this.mat4[0]; + copied.mat4[1] = this.mat4[1]; + copied.mat4[2] = this.mat4[2]; + copied.mat4[3] = this.mat4[3]; + copied.mat4[4] = this.mat4[4]; + copied.mat4[5] = this.mat4[5]; + copied.mat4[6] = this.mat4[6]; + copied.mat4[7] = this.mat4[7]; + copied.mat4[8] = this.mat4[8]; + copied.mat4[9] = this.mat4[9]; + copied.mat4[10] = this.mat4[10]; + copied.mat4[11] = this.mat4[11]; + copied.mat4[12] = this.mat4[12]; + copied.mat4[13] = this.mat4[13]; + copied.mat4[14] = this.mat4[14]; + copied.mat4[15] = this.mat4[15]; + return copied; + }; + + /** + * return an identity matrix + * @method identity + * @return {p5.Matrix} the result matrix + */ + p5.Matrix.identity = function(pInst) { + return new p5.Matrix(pInst); + }; + + /** + * transpose according to a given matrix + * @method transpose + * @param {p5.Matrix|Float32Array|Number[]} a the matrix to be + * based on to transpose + * @chainable + */ + p5.Matrix.prototype.transpose = function(a) { + var a01, a02, a03, a12, a13, a23; + if (a instanceof p5.Matrix) { + a01 = a.mat4[1]; + a02 = a.mat4[2]; + a03 = a.mat4[3]; + a12 = a.mat4[6]; + a13 = a.mat4[7]; + a23 = a.mat4[11]; + + this.mat4[0] = a.mat4[0]; + this.mat4[1] = a.mat4[4]; + this.mat4[2] = a.mat4[8]; + this.mat4[3] = a.mat4[12]; + this.mat4[4] = a01; + this.mat4[5] = a.mat4[5]; + this.mat4[6] = a.mat4[9]; + this.mat4[7] = a.mat4[13]; + this.mat4[8] = a02; + this.mat4[9] = a12; + this.mat4[10] = a.mat4[10]; + this.mat4[11] = a.mat4[14]; + this.mat4[12] = a03; + this.mat4[13] = a13; + this.mat4[14] = a23; + this.mat4[15] = a.mat4[15]; + } else if (isMatrixArray(a)) { + a01 = a[1]; + a02 = a[2]; + a03 = a[3]; + a12 = a[6]; + a13 = a[7]; + a23 = a[11]; + + this.mat4[0] = a[0]; + this.mat4[1] = a[4]; + this.mat4[2] = a[8]; + this.mat4[3] = a[12]; + this.mat4[4] = a01; + this.mat4[5] = a[5]; + this.mat4[6] = a[9]; + this.mat4[7] = a[13]; + this.mat4[8] = a02; + this.mat4[9] = a12; + this.mat4[10] = a[10]; + this.mat4[11] = a[14]; + this.mat4[12] = a03; + this.mat4[13] = a13; + this.mat4[14] = a23; + this.mat4[15] = a[15]; + } + return this; + }; + + /** + * invert matrix according to a give matrix + * @method invert + * @param {p5.Matrix|Float32Array|Number[]} a the matrix to be + * based on to invert + * @chainable + */ + p5.Matrix.prototype.invert = function(a) { + var a00, a01, a02, a03, a10, a11, a12, a13; + var a20, a21, a22, a23, a30, a31, a32, a33; + if (a instanceof p5.Matrix) { + a00 = a.mat4[0]; + a01 = a.mat4[1]; + a02 = a.mat4[2]; + a03 = a.mat4[3]; + a10 = a.mat4[4]; + a11 = a.mat4[5]; + a12 = a.mat4[6]; + a13 = a.mat4[7]; + a20 = a.mat4[8]; + a21 = a.mat4[9]; + a22 = a.mat4[10]; + a23 = a.mat4[11]; + a30 = a.mat4[12]; + a31 = a.mat4[13]; + a32 = a.mat4[14]; + a33 = a.mat4[15]; + } else if (isMatrixArray(a)) { + a00 = a[0]; + a01 = a[1]; + a02 = a[2]; + a03 = a[3]; + a10 = a[4]; + a11 = a[5]; + a12 = a[6]; + a13 = a[7]; + a20 = a[8]; + a21 = a[9]; + a22 = a[10]; + a23 = a[11]; + a30 = a[12]; + a31 = a[13]; + a32 = a[14]; + a33 = a[15]; + } + var b00 = a00 * a11 - a01 * a10; + var b01 = a00 * a12 - a02 * a10; + var b02 = a00 * a13 - a03 * a10; + var b03 = a01 * a12 - a02 * a11; + var b04 = a01 * a13 - a03 * a11; + var b05 = a02 * a13 - a03 * a12; + var b06 = a20 * a31 - a21 * a30; + var b07 = a20 * a32 - a22 * a30; + var b08 = a20 * a33 - a23 * a30; + var b09 = a21 * a32 - a22 * a31; + var b10 = a21 * a33 - a23 * a31; + var b11 = a22 * a33 - a23 * a32; + + // Calculate the determinant + var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; + + if (!det) { + return null; + } + det = 1.0 / det; + + this.mat4[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det; + this.mat4[1] = (a02 * b10 - a01 * b11 - a03 * b09) * det; + this.mat4[2] = (a31 * b05 - a32 * b04 + a33 * b03) * det; + this.mat4[3] = (a22 * b04 - a21 * b05 - a23 * b03) * det; + this.mat4[4] = (a12 * b08 - a10 * b11 - a13 * b07) * det; + this.mat4[5] = (a00 * b11 - a02 * b08 + a03 * b07) * det; + this.mat4[6] = (a32 * b02 - a30 * b05 - a33 * b01) * det; + this.mat4[7] = (a20 * b05 - a22 * b02 + a23 * b01) * det; + this.mat4[8] = (a10 * b10 - a11 * b08 + a13 * b06) * det; + this.mat4[9] = (a01 * b08 - a00 * b10 - a03 * b06) * det; + this.mat4[10] = (a30 * b04 - a31 * b02 + a33 * b00) * det; + this.mat4[11] = (a21 * b02 - a20 * b04 - a23 * b00) * det; + this.mat4[12] = (a11 * b07 - a10 * b09 - a12 * b06) * det; + this.mat4[13] = (a00 * b09 - a01 * b07 + a02 * b06) * det; + this.mat4[14] = (a31 * b01 - a30 * b03 - a32 * b00) * det; + this.mat4[15] = (a20 * b03 - a21 * b01 + a22 * b00) * det; + + return this; + }; + + /** + * Inverts a 3x3 matrix + * @method invert3x3 + * @chainable + */ + p5.Matrix.prototype.invert3x3 = function() { + var a00 = this.mat3[0]; + var a01 = this.mat3[1]; + var a02 = this.mat3[2]; + var a10 = this.mat3[3]; + var a11 = this.mat3[4]; + var a12 = this.mat3[5]; + var a20 = this.mat3[6]; + var a21 = this.mat3[7]; + var a22 = this.mat3[8]; + var b01 = a22 * a11 - a12 * a21; + var b11 = -a22 * a10 + a12 * a20; + var b21 = a21 * a10 - a11 * a20; + + // Calculate the determinant + var det = a00 * b01 + a01 * b11 + a02 * b21; + if (!det) { + return null; + } + det = 1.0 / det; + this.mat3[0] = b01 * det; + this.mat3[1] = (-a22 * a01 + a02 * a21) * det; + this.mat3[2] = (a12 * a01 - a02 * a11) * det; + this.mat3[3] = b11 * det; + this.mat3[4] = (a22 * a00 - a02 * a20) * det; + this.mat3[5] = (-a12 * a00 + a02 * a10) * det; + this.mat3[6] = b21 * det; + this.mat3[7] = (-a21 * a00 + a01 * a20) * det; + this.mat3[8] = (a11 * a00 - a01 * a10) * det; + return this; + }; + + /** + * transposes a 3x3 p5.Matrix by a mat3 + * @method transpose3x3 + * @param {Number[]} mat3 1-dimensional array + * @chainable + */ + p5.Matrix.prototype.transpose3x3 = function(mat3) { + var a01 = mat3[1], + a02 = mat3[2], + a12 = mat3[5]; + this.mat3[1] = mat3[3]; + this.mat3[2] = mat3[6]; + this.mat3[3] = a01; + this.mat3[5] = mat3[7]; + this.mat3[6] = a02; + this.mat3[7] = a12; + return this; + }; + + /** + * converts a 4x4 matrix to its 3x3 inverse transform + * commonly used in MVMatrix to NMatrix conversions. + * @method invertTranspose + * @param {p5.Matrix} mat4 the matrix to be based on to invert + * @chainable + * @todo finish implementation + */ + p5.Matrix.prototype.inverseTranspose = function(matrix) { + if (this.mat3 === undefined) { + console.error('sorry, this function only works with mat3'); + } else { + //convert mat4 -> mat3 + this.mat3[0] = matrix.mat4[0]; + this.mat3[1] = matrix.mat4[1]; + this.mat3[2] = matrix.mat4[2]; + this.mat3[3] = matrix.mat4[4]; + this.mat3[4] = matrix.mat4[5]; + this.mat3[5] = matrix.mat4[6]; + this.mat3[6] = matrix.mat4[8]; + this.mat3[7] = matrix.mat4[9]; + this.mat3[8] = matrix.mat4[10]; + } + + var inverse = this.invert3x3(); + // check inverse succeeded + if (inverse) { + inverse.transpose3x3(this.mat3); + } else { + // in case of singularity, just zero the matrix + for (var i = 0; i < 9; i++) { + this.mat3[i] = 0; + } + } + return this; + }; + + /** + * inspired by Toji's mat4 determinant + * @method determinant + * @return {Number} Determinant of our 4x4 matrix + */ + p5.Matrix.prototype.determinant = function() { + var d00 = this.mat4[0] * this.mat4[5] - this.mat4[1] * this.mat4[4], + d01 = this.mat4[0] * this.mat4[6] - this.mat4[2] * this.mat4[4], + d02 = this.mat4[0] * this.mat4[7] - this.mat4[3] * this.mat4[4], + d03 = this.mat4[1] * this.mat4[6] - this.mat4[2] * this.mat4[5], + d04 = this.mat4[1] * this.mat4[7] - this.mat4[3] * this.mat4[5], + d05 = this.mat4[2] * this.mat4[7] - this.mat4[3] * this.mat4[6], + d06 = this.mat4[8] * this.mat4[13] - this.mat4[9] * this.mat4[12], + d07 = this.mat4[8] * this.mat4[14] - this.mat4[10] * this.mat4[12], + d08 = this.mat4[8] * this.mat4[15] - this.mat4[11] * this.mat4[12], + d09 = this.mat4[9] * this.mat4[14] - this.mat4[10] * this.mat4[13], + d10 = this.mat4[9] * this.mat4[15] - this.mat4[11] * this.mat4[13], + d11 = this.mat4[10] * this.mat4[15] - this.mat4[11] * this.mat4[14]; + + // Calculate the determinant + return d00 * d11 - d01 * d10 + d02 * d09 + d03 * d08 - d04 * d07 + d05 * d06; + }; + + /** + * multiply two mat4s + * @method mult + * @param {p5.Matrix|Float32Array|Number[]} multMatrix The matrix + * we want to multiply by + * @chainable + */ + p5.Matrix.prototype.mult = function(multMatrix) { + var _src; + + if (multMatrix === this || multMatrix === this.mat4) { + _src = this.copy().mat4; // only need to allocate in this rare case + } else if (multMatrix instanceof p5.Matrix) { + _src = multMatrix.mat4; + } else if (isMatrixArray(multMatrix)) { + _src = multMatrix; + } else if (arguments.length === 16) { + _src = arguments; + } else { + return; // nothing to do. + } + + // each row is used for the multiplier + var b0 = this.mat4[0], + b1 = this.mat4[1], + b2 = this.mat4[2], + b3 = this.mat4[3]; + this.mat4[0] = b0 * _src[0] + b1 * _src[4] + b2 * _src[8] + b3 * _src[12]; + this.mat4[1] = b0 * _src[1] + b1 * _src[5] + b2 * _src[9] + b3 * _src[13]; + this.mat4[2] = b0 * _src[2] + b1 * _src[6] + b2 * _src[10] + b3 * _src[14]; + this.mat4[3] = b0 * _src[3] + b1 * _src[7] + b2 * _src[11] + b3 * _src[15]; + + b0 = this.mat4[4]; + b1 = this.mat4[5]; + b2 = this.mat4[6]; + b3 = this.mat4[7]; + this.mat4[4] = b0 * _src[0] + b1 * _src[4] + b2 * _src[8] + b3 * _src[12]; + this.mat4[5] = b0 * _src[1] + b1 * _src[5] + b2 * _src[9] + b3 * _src[13]; + this.mat4[6] = b0 * _src[2] + b1 * _src[6] + b2 * _src[10] + b3 * _src[14]; + this.mat4[7] = b0 * _src[3] + b1 * _src[7] + b2 * _src[11] + b3 * _src[15]; + + b0 = this.mat4[8]; + b1 = this.mat4[9]; + b2 = this.mat4[10]; + b3 = this.mat4[11]; + this.mat4[8] = b0 * _src[0] + b1 * _src[4] + b2 * _src[8] + b3 * _src[12]; + this.mat4[9] = b0 * _src[1] + b1 * _src[5] + b2 * _src[9] + b3 * _src[13]; + this.mat4[10] = b0 * _src[2] + b1 * _src[6] + b2 * _src[10] + b3 * _src[14]; + this.mat4[11] = b0 * _src[3] + b1 * _src[7] + b2 * _src[11] + b3 * _src[15]; + + b0 = this.mat4[12]; + b1 = this.mat4[13]; + b2 = this.mat4[14]; + b3 = this.mat4[15]; + this.mat4[12] = b0 * _src[0] + b1 * _src[4] + b2 * _src[8] + b3 * _src[12]; + this.mat4[13] = b0 * _src[1] + b1 * _src[5] + b2 * _src[9] + b3 * _src[13]; + this.mat4[14] = b0 * _src[2] + b1 * _src[6] + b2 * _src[10] + b3 * _src[14]; + this.mat4[15] = b0 * _src[3] + b1 * _src[7] + b2 * _src[11] + b3 * _src[15]; + + return this; + }; + + p5.Matrix.prototype.apply = function(multMatrix) { + var _src; + + if (multMatrix === this || multMatrix === this.mat4) { + _src = this.copy().mat4; // only need to allocate in this rare case + } else if (multMatrix instanceof p5.Matrix) { + _src = multMatrix.mat4; + } else if (isMatrixArray(multMatrix)) { + _src = multMatrix; + } else if (arguments.length === 16) { + _src = arguments; + } else { + return; // nothing to do. + } + + var mat4 = this.mat4; + + // each row is used for the multiplier + var m0 = mat4[0]; + var m4 = mat4[4]; + var m8 = mat4[8]; + var m12 = mat4[12]; + mat4[0] = _src[0] * m0 + _src[1] * m4 + _src[2] * m8 + _src[3] * m12; + mat4[4] = _src[4] * m0 + _src[5] * m4 + _src[6] * m8 + _src[7] * m12; + mat4[8] = _src[8] * m0 + _src[9] * m4 + _src[10] * m8 + _src[11] * m12; + mat4[12] = _src[12] * m0 + _src[13] * m4 + _src[14] * m8 + _src[15] * m12; + + var m1 = mat4[1]; + var m5 = mat4[5]; + var m9 = mat4[9]; + var m13 = mat4[13]; + mat4[1] = _src[0] * m1 + _src[1] * m5 + _src[2] * m9 + _src[3] * m13; + mat4[5] = _src[4] * m1 + _src[5] * m5 + _src[6] * m9 + _src[7] * m13; + mat4[9] = _src[8] * m1 + _src[9] * m5 + _src[10] * m9 + _src[11] * m13; + mat4[13] = _src[12] * m1 + _src[13] * m5 + _src[14] * m9 + _src[15] * m13; + + var m2 = mat4[2]; + var m6 = mat4[6]; + var m10 = mat4[10]; + var m14 = mat4[14]; + mat4[2] = _src[0] * m2 + _src[1] * m6 + _src[2] * m10 + _src[3] * m14; + mat4[6] = _src[4] * m2 + _src[5] * m6 + _src[6] * m10 + _src[7] * m14; + mat4[10] = _src[8] * m2 + _src[9] * m6 + _src[10] * m10 + _src[11] * m14; + mat4[14] = _src[12] * m2 + _src[13] * m6 + _src[14] * m10 + _src[15] * m14; + + var m3 = mat4[3]; + var m7 = mat4[7]; + var m11 = mat4[11]; + var m15 = mat4[15]; + mat4[3] = _src[0] * m3 + _src[1] * m7 + _src[2] * m11 + _src[3] * m15; + mat4[7] = _src[4] * m3 + _src[5] * m7 + _src[6] * m11 + _src[7] * m15; + mat4[11] = _src[8] * m3 + _src[9] * m7 + _src[10] * m11 + _src[11] * m15; + mat4[15] = _src[12] * m3 + _src[13] * m7 + _src[14] * m11 + _src[15] * m15; + + return this; + }; + + /** + * scales a p5.Matrix by scalars or a vector + * @method scale + * @param {p5.Vector|Float32Array|Number[]} s vector to scale by + * @chainable + */ + p5.Matrix.prototype.scale = function(x, y, z) { + if (x instanceof p5.Vector) { + // x is a vector, extract the components from it. + y = x.y; + z = x.z; + x = x.x; // must be last + } else if (x instanceof Array) { + // x is an array, extract the components from it. + y = x[1]; + z = x[2]; + x = x[0]; // must be last + } + + this.mat4[0] *= x; + this.mat4[1] *= x; + this.mat4[2] *= x; + this.mat4[3] *= x; + this.mat4[4] *= y; + this.mat4[5] *= y; + this.mat4[6] *= y; + this.mat4[7] *= y; + this.mat4[8] *= z; + this.mat4[9] *= z; + this.mat4[10] *= z; + this.mat4[11] *= z; + + return this; + }; + + /** + * rotate our Matrix around an axis by the given angle. + * @method rotate + * @param {Number} a The angle of rotation in radians + * @param {p5.Vector|Number[]} axis the axis(es) to rotate around + * @chainable + * inspired by Toji's gl-matrix lib, mat4 rotation + */ + p5.Matrix.prototype.rotate = function(a, x, y, z) { + if (x instanceof p5.Vector) { + // x is a vector, extract the components from it. + y = x.y; + z = x.z; + x = x.x; //must be last + } else if (x instanceof Array) { + // x is an array, extract the components from it. + y = x[1]; + z = x[2]; + x = x[0]; //must be last + } + + var len = Math.sqrt(x * x + y * y + z * z); + x *= 1 / len; + y *= 1 / len; + z *= 1 / len; + + var a00 = this.mat4[0]; + var a01 = this.mat4[1]; + var a02 = this.mat4[2]; + var a03 = this.mat4[3]; + var a10 = this.mat4[4]; + var a11 = this.mat4[5]; + var a12 = this.mat4[6]; + var a13 = this.mat4[7]; + var a20 = this.mat4[8]; + var a21 = this.mat4[9]; + var a22 = this.mat4[10]; + var a23 = this.mat4[11]; + + //sin,cos, and tan of respective angle + var sA = Math.sin(a); + var cA = Math.cos(a); + var tA = 1 - cA; + // Construct the elements of the rotation matrix + var b00 = x * x * tA + cA; + var b01 = y * x * tA + z * sA; + var b02 = z * x * tA - y * sA; + var b10 = x * y * tA - z * sA; + var b11 = y * y * tA + cA; + var b12 = z * y * tA + x * sA; + var b20 = x * z * tA + y * sA; + var b21 = y * z * tA - x * sA; + var b22 = z * z * tA + cA; + + // rotation-specific matrix multiplication + this.mat4[0] = a00 * b00 + a10 * b01 + a20 * b02; + this.mat4[1] = a01 * b00 + a11 * b01 + a21 * b02; + this.mat4[2] = a02 * b00 + a12 * b01 + a22 * b02; + this.mat4[3] = a03 * b00 + a13 * b01 + a23 * b02; + this.mat4[4] = a00 * b10 + a10 * b11 + a20 * b12; + this.mat4[5] = a01 * b10 + a11 * b11 + a21 * b12; + this.mat4[6] = a02 * b10 + a12 * b11 + a22 * b12; + this.mat4[7] = a03 * b10 + a13 * b11 + a23 * b12; + this.mat4[8] = a00 * b20 + a10 * b21 + a20 * b22; + this.mat4[9] = a01 * b20 + a11 * b21 + a21 * b22; + this.mat4[10] = a02 * b20 + a12 * b21 + a22 * b22; + this.mat4[11] = a03 * b20 + a13 * b21 + a23 * b22; + + return this; + }; + + /** + * @todo finish implementing this method! + * translates + * @method translate + * @param {Number[]} v vector to translate by + * @chainable + */ + p5.Matrix.prototype.translate = function(v) { + var x = v[0], + y = v[1], + z = v[2] || 0; + this.mat4[12] += this.mat4[0] * x + this.mat4[4] * y + this.mat4[8] * z; + this.mat4[13] += this.mat4[1] * x + this.mat4[5] * y + this.mat4[9] * z; + this.mat4[14] += this.mat4[2] * x + this.mat4[6] * y + this.mat4[10] * z; + this.mat4[15] += this.mat4[3] * x + this.mat4[7] * y + this.mat4[11] * z; + }; + + p5.Matrix.prototype.rotateX = function(a) { + this.rotate(a, 1, 0, 0); + }; + p5.Matrix.prototype.rotateY = function(a) { + this.rotate(a, 0, 1, 0); + }; + p5.Matrix.prototype.rotateZ = function(a) { + this.rotate(a, 0, 0, 1); + }; + + /** + * sets the perspective matrix + * @method perspective + * @param {Number} fovy [description] + * @param {Number} aspect [description] + * @param {Number} near near clipping plane + * @param {Number} far far clipping plane + * @chainable + */ + p5.Matrix.prototype.perspective = function(fovy, aspect, near, far) { + var f = 1.0 / Math.tan(fovy / 2), + nf = 1 / (near - far); + + this.mat4[0] = f / aspect; + this.mat4[1] = 0; + this.mat4[2] = 0; + this.mat4[3] = 0; + this.mat4[4] = 0; + this.mat4[5] = f; + this.mat4[6] = 0; + this.mat4[7] = 0; + this.mat4[8] = 0; + this.mat4[9] = 0; + this.mat4[10] = (far + near) * nf; + this.mat4[11] = -1; + this.mat4[12] = 0; + this.mat4[13] = 0; + this.mat4[14] = 2 * far * near * nf; + this.mat4[15] = 0; + + return this; + }; + + /** + * sets the ortho matrix + * @method ortho + * @param {Number} left [description] + * @param {Number} right [description] + * @param {Number} bottom [description] + * @param {Number} top [description] + * @param {Number} near near clipping plane + * @param {Number} far far clipping plane + * @chainable + */ + p5.Matrix.prototype.ortho = function(left, right, bottom, top, near, far) { + var lr = 1 / (left - right), + bt = 1 / (bottom - top), + nf = 1 / (near - far); + this.mat4[0] = -2 * lr; + this.mat4[1] = 0; + this.mat4[2] = 0; + this.mat4[3] = 0; + this.mat4[4] = 0; + this.mat4[5] = -2 * bt; + this.mat4[6] = 0; + this.mat4[7] = 0; + this.mat4[8] = 0; + this.mat4[9] = 0; + this.mat4[10] = 2 * nf; + this.mat4[11] = 0; + this.mat4[12] = (left + right) * lr; + this.mat4[13] = (top + bottom) * bt; + this.mat4[14] = (far + near) * nf; + this.mat4[15] = 1; + + return this; + }; + + /** + * PRIVATE + */ + // matrix methods adapted from: + // https://developer.mozilla.org/en-US/docs/Web/WebGL/ + // gluPerspective + // + // function _makePerspective(fovy, aspect, znear, zfar){ + // var ymax = znear * Math.tan(fovy * Math.PI / 360.0); + // var ymin = -ymax; + // var xmin = ymin * aspect; + // var xmax = ymax * aspect; + // return _makeFrustum(xmin, xmax, ymin, ymax, znear, zfar); + // } + + //// + //// glFrustum + //// + //function _makeFrustum(left, right, bottom, top, znear, zfar){ + // var X = 2*znear/(right-left); + // var Y = 2*znear/(top-bottom); + // var A = (right+left)/(right-left); + // var B = (top+bottom)/(top-bottom); + // var C = -(zfar+znear)/(zfar-znear); + // var D = -2*zfar*znear/(zfar-znear); + // var frustrumMatrix =[ + // X, 0, A, 0, + // 0, Y, B, 0, + // 0, 0, C, D, + // 0, 0, -1, 0 + //]; + //return frustrumMatrix; + // } + + // function _setMVPMatrices(){ + ////an identity matrix + ////@TODO use the p5.Matrix class to abstract away our MV matrices and + ///other math + //var _mvMatrix = + //[ + // 1.0,0.0,0.0,0.0, + // 0.0,1.0,0.0,0.0, + // 0.0,0.0,1.0,0.0, + // 0.0,0.0,0.0,1.0 + //]; + + module.exports = p5.Matrix; + }, + { '../core/main': 24 } + ], + 73: [ + function(_dereq_, module, exports) { + /** + * Welcome to RendererGL Immediate Mode. + * Immediate mode is used for drawing custom shapes + * from a set of vertices. Immediate Mode is activated + * when you call beginShape() & de-activated when you call endShape(). + * Immediate mode is a style of programming borrowed + * from OpenGL's (now-deprecated) immediate mode. + * It differs from p5.js' default, Retained Mode, which caches + * geometries and buffers on the CPU to reduce the number of webgl + * draw calls. Retained mode is more efficient & performative, + * however, Immediate Mode is useful for sketching quick + * geometric ideas. + */ + 'use strict'; + + var p5 = _dereq_('../core/main'); + var constants = _dereq_('../core/constants'); + + /** + * Begin shape drawing. This is a helpful way of generating + * custom shapes quickly. However in WEBGL mode, application + * performance will likely drop as a result of too many calls to + * beginShape() / endShape(). As a high performance alternative, + * please use p5.js geometry primitives. + * @private + * @method beginShape + * @param {Number} mode webgl primitives mode. beginShape supports the + * following modes: + * POINTS,LINES,LINE_STRIP,LINE_LOOP,TRIANGLES, + * TRIANGLE_STRIP,and TRIANGLE_FAN. + * @chainable + */ + p5.RendererGL.prototype.beginShape = function(mode) { + //default shape mode is line_strip + this.immediateMode.shapeMode = mode !== undefined ? mode : constants.LINE_STRIP; + //if we haven't yet initialized our + //immediateMode vertices & buffers, create them now! + if (this.immediateMode.vertices === undefined) { + this.immediateMode.vertices = []; + this.immediateMode.edges = []; + this.immediateMode.lineVertices = []; + this.immediateMode.vertexColors = []; + this.immediateMode.lineNormals = []; + this.immediateMode.uvCoords = []; + this.immediateMode.vertexBuffer = this.GL.createBuffer(); + this.immediateMode.colorBuffer = this.GL.createBuffer(); + this.immediateMode.uvBuffer = this.GL.createBuffer(); + this.immediateMode.lineVertexBuffer = this.GL.createBuffer(); + this.immediateMode.lineNormalBuffer = this.GL.createBuffer(); + this.immediateMode.pointVertexBuffer = this.GL.createBuffer(); + this.immediateMode._bezierVertex = []; + this.immediateMode._quadraticVertex = []; + this.immediateMode._curveVertex = []; + this.immediateMode._isCoplanar = true; + this.immediateMode._testIfCoplanar = null; + } else { + this.immediateMode.vertices.length = 0; + this.immediateMode.edges.length = 0; + this.immediateMode.lineVertices.length = 0; + this.immediateMode.lineNormals.length = 0; + this.immediateMode.vertexColors.length = 0; + this.immediateMode.uvCoords.length = 0; + } + this.isImmediateDrawing = true; + return this; + }; + /** + * adds a vertex to be drawn in a custom Shape. + * @private + * @method vertex + * @param {Number} x x-coordinate of vertex + * @param {Number} y y-coordinate of vertex + * @param {Number} z z-coordinate of vertex + * @chainable + * @TODO implement handling of p5.Vector args + */ + p5.RendererGL.prototype.vertex = function(x, y) { + var z, u, v; + + // default to (x, y) mode: all other arugments assumed to be 0. + z = u = v = 0; + + if (arguments.length === 3) { + // (x, y, z) mode: (u, v) assumed to be 0. + z = arguments[2]; + } else if (arguments.length === 4) { + // (x, y, u, v) mode: z assumed to be 0. + u = arguments[2]; + v = arguments[3]; + } else if (arguments.length === 5) { + // (x, y, z, u, v) mode + z = arguments[2]; + u = arguments[3]; + v = arguments[4]; + } + if (this.immediateMode._testIfCoplanar == null) { + this.immediateMode._testIfCoplanar = z; + } else if (this.immediateMode._testIfCoplanar !== z) { + this.immediateMode._isCoplanar = false; + } + var vert = new p5.Vector(x, y, z); + this.immediateMode.vertices.push(vert); + var vertexColor = this.curFillColor || [0.5, 0.5, 0.5, 1.0]; + this.immediateMode.vertexColors.push( + vertexColor[0], + vertexColor[1], + vertexColor[2], + vertexColor[3] + ); + + if (this.textureMode === constants.IMAGE) { + if (this._tex !== null) { + if (this._tex.width > 0 && this._tex.height > 0) { + u /= this._tex.width; + v /= this._tex.height; + } + } else if (this._tex === null && arguments.length >= 4) { + // Only throw this warning if custom uv's have been provided + console.warn( + 'You must first call texture() before using' + + ' vertex() with image based u and v coordinates' + ); + } + } + + this.immediateMode.uvCoords.push(u, v); + + this.immediateMode._bezierVertex[0] = x; + this.immediateMode._bezierVertex[1] = y; + this.immediateMode._bezierVertex[2] = z; + + this.immediateMode._quadraticVertex[0] = x; + this.immediateMode._quadraticVertex[1] = y; + this.immediateMode._quadraticVertex[2] = z; + + return this; + }; + + /** + * End shape drawing and render vertices to screen. + * @chainable + */ + p5.RendererGL.prototype.endShape = function( + mode, + isCurve, + isBezier, + isQuadratic, + isContour, + shapeKind + ) { + if (this.immediateMode.shapeMode === constants.POINTS) { + this._drawPoints( + this.immediateMode.vertices, + this.immediateMode.pointVertexBuffer + ); + } else if (this.immediateMode.vertices.length > 1) { + if (this._doStroke && this.drawMode !== constants.TEXTURE) { + if (this.immediateMode.shapeMode === constants.TRIANGLE_STRIP) { + var i; + for (i = 0; i < this.immediateMode.vertices.length - 2; i++) { + this.immediateMode.edges.push([i, i + 1]); + this.immediateMode.edges.push([i, i + 2]); + } + this.immediateMode.edges.push([i, i + 1]); + } else if (this.immediateMode.shapeMode === constants.TRIANGLES) { + for (i = 0; i < this.immediateMode.vertices.length - 2; i = i + 3) { + this.immediateMode.edges.push([i, i + 1]); + this.immediateMode.edges.push([i + 1, i + 2]); + this.immediateMode.edges.push([i + 2, i]); + } + } else if (this.immediateMode.shapeMode === constants.LINES) { + for (i = 0; i < this.immediateMode.vertices.length - 1; i = i + 2) { + this.immediateMode.edges.push([i, i + 1]); + } + } else { + for (i = 0; i < this.immediateMode.vertices.length - 1; i++) { + this.immediateMode.edges.push([i, i + 1]); + } + } + if (mode === constants.CLOSE) { + this.immediateMode.edges.push([ + this.immediateMode.vertices.length - 1, + 0 + ]); + } + + p5.Geometry.prototype._edgesToVertices.call(this.immediateMode); + this._drawStrokeImmediateMode(); + } + + if (this._doFill && this.immediateMode.shapeMode !== constants.LINES) { + if ( + this.isBezier || + this.isQuadratic || + this.isCurve || + (this.immediateMode.shapeMode === constants.LINE_STRIP && + this.drawMode === constants.FILL && + this.immediateMode._isCoplanar === true) + ) { + this.immediateMode.shapeMode = constants.TRIANGLES; + var contours = [ + new Float32Array(this._vToNArray(this.immediateMode.vertices)) + ]; + + var polyTriangles = this._triangulate(contours); + this.immediateMode.vertices = []; + for ( + var j = 0, polyTriLength = polyTriangles.length; + j < polyTriLength; + j = j + 3 + ) { + this.vertex( + polyTriangles[j], + polyTriangles[j + 1], + polyTriangles[j + 2] + ); + } + } + if (this.immediateMode.vertices.length > 0) { + this._drawFillImmediateMode( + mode, + isCurve, + isBezier, + isQuadratic, + isContour, + shapeKind + ); + } + } + } + //clear out our vertexPositions & colors arrays + //after rendering + this.immediateMode.vertices.length = 0; + this.immediateMode.vertexColors.length = 0; + this.immediateMode.uvCoords.length = 0; + this.isImmediateDrawing = false; + this.isBezier = false; + this.isQuadratic = false; + this.isCurve = false; + this.immediateMode._bezierVertex.length = 0; + this.immediateMode._quadraticVertex.length = 0; + this.immediateMode._curveVertex.length = 0; + this.immediateMode._isCoplanar = true; + this.immediateMode._testIfCoplanar = null; + + return this; + }; + + p5.RendererGL.prototype._drawFillImmediateMode = function( + mode, + isCurve, + isBezier, + isQuadratic, + isContour, + shapeKind + ) { + var gl = this.GL; + var shader = this._getImmediateFillShader(); + this._setFillUniforms(shader); + + // initialize the fill shader's 'aPosition' buffer + if (shader.attributes.aPosition) { + //vertex position Attribute + this._bindBuffer( + this.immediateMode.vertexBuffer, + gl.ARRAY_BUFFER, + this._vToNArray(this.immediateMode.vertices), + Float32Array, + gl.DYNAMIC_DRAW + ); + + shader.enableAttrib(shader.attributes.aPosition, 3); + } + + // initialize the fill shader's 'aVertexColor' buffer + if (this.drawMode === constants.FILL && shader.attributes.aVertexColor) { + this._bindBuffer( + this.immediateMode.colorBuffer, + gl.ARRAY_BUFFER, + this.immediateMode.vertexColors, + Float32Array, + gl.DYNAMIC_DRAW + ); + + shader.enableAttrib(shader.attributes.aVertexColor, 4); + } + + // initialize the fill shader's 'aTexCoord' buffer + if (this.drawMode === constants.TEXTURE && shader.attributes.aTexCoord) { + //texture coordinate Attribute + this._bindBuffer( + this.immediateMode.uvBuffer, + gl.ARRAY_BUFFER, + this.immediateMode.uvCoords, + Float32Array, + gl.DYNAMIC_DRAW + ); + + shader.enableAttrib(shader.attributes.aTexCoord, 2); + } + + //if (true || mode) { + if (this.drawMode === constants.FILL || this.drawMode === constants.TEXTURE) { + switch (this.immediateMode.shapeMode) { + case constants.LINE_STRIP: + case constants.LINES: + this.immediateMode.shapeMode = constants.TRIANGLE_FAN; + break; + } + } else { + switch (this.immediateMode.shapeMode) { + case constants.LINE_STRIP: + case constants.LINES: + this.immediateMode.shapeMode = constants.LINE_LOOP; + break; + } + } + //} + //QUADS & QUAD_STRIP are not supported primitives modes + //in webgl. + if ( + this.immediateMode.shapeMode === constants.QUADS || + this.immediateMode.shapeMode === constants.QUAD_STRIP + ) { + throw new Error( + 'sorry, ' + + this.immediateMode.shapeMode + + ' not yet implemented in webgl mode.' + ); + } else { + this._applyColorBlend(this.curFillColor); + gl.enable(gl.BLEND); + gl.drawArrays( + this.immediateMode.shapeMode, + 0, + this.immediateMode.vertices.length + ); + + this._pixelsState._pixelsDirty = true; + } + // todo / optimizations? leave bound until another shader is set? + shader.unbindShader(); + }; + + p5.RendererGL.prototype._drawStrokeImmediateMode = function() { + var gl = this.GL; + var shader = this._getImmediateStrokeShader(); + this._setStrokeUniforms(shader); + + // initialize the stroke shader's 'aPosition' buffer + if (shader.attributes.aPosition) { + this._bindBuffer( + this.immediateMode.lineVertexBuffer, + gl.ARRAY_BUFFER, + this._flatten(this.immediateMode.lineVertices), + Float32Array, + gl.STATIC_DRAW + ); + + shader.enableAttrib(shader.attributes.aPosition, 3); + } + + // initialize the stroke shader's 'aDirection' buffer + if (shader.attributes.aDirection) { + this._bindBuffer( + this.immediateMode.lineNormalBuffer, + gl.ARRAY_BUFFER, + this._flatten(this.immediateMode.lineNormals), + Float32Array, + gl.STATIC_DRAW + ); + + shader.enableAttrib(shader.attributes.aDirection, 4); + } + + this._applyColorBlend(this.curStrokeColor); + gl.drawArrays(gl.TRIANGLES, 0, this.immediateMode.lineVertices.length); + + this._pixelsState._pixelsDirty = true; + + shader.unbindShader(); + }; + + module.exports = p5.RendererGL; + }, + { '../core/constants': 18, '../core/main': 24 } + ], + 74: [ + function(_dereq_, module, exports) { + //Retained Mode. The default mode for rendering 3D primitives + //in WEBGL. + 'use strict'; + + var p5 = _dereq_('../core/main'); + _dereq_('./p5.RendererGL'); + + // a render buffer definition + function BufferDef(size, src, dst, attr, map) { + this.size = size; // the number of FLOATs in each vertex + this.src = src; // the name of the model's source array + this.dst = dst; // the name of the geometry's buffer + this.attr = attr; // the name of the vertex attribute + this.map = map; // optional, a transformation function to apply to src + } + + var _flatten = p5.RendererGL.prototype._flatten; + var _vToNArray = p5.RendererGL.prototype._vToNArray; + + var strokeBuffers = [ + new BufferDef(3, 'lineVertices', 'lineVertexBuffer', 'aPosition', _flatten), + new BufferDef(4, 'lineNormals', 'lineNormalBuffer', 'aDirection', _flatten) + ]; + + var fillBuffers = [ + new BufferDef(3, 'vertices', 'vertexBuffer', 'aPosition', _vToNArray), + new BufferDef(3, 'vertexNormals', 'normalBuffer', 'aNormal', _vToNArray), + new BufferDef(4, 'vertexColors', 'colorBuffer', 'aMaterialColor'), + new BufferDef(3, 'vertexAmbients', 'ambientBuffer', 'aAmbientColor'), + //new BufferDef(3, 'vertexSpeculars', 'specularBuffer', 'aSpecularColor'), + new BufferDef(2, 'uvs', 'uvBuffer', 'aTexCoord', _flatten) + ]; + + p5.RendererGL._textBuffers = [ + new BufferDef(3, 'vertices', 'vertexBuffer', 'aPosition', _vToNArray), + new BufferDef(2, 'uvs', 'uvBuffer', 'aTexCoord', _flatten) + ]; + + var hashCount = 0; + /** + * _initBufferDefaults + * @private + * @description initializes buffer defaults. runs each time a new geometry is + * registered + * @param {String} gId key of the geometry object + * @returns {Object} a new buffer object + */ + p5.RendererGL.prototype._initBufferDefaults = function(gId) { + this._freeBuffers(gId); + + //@TODO remove this limit on hashes in gHash + hashCount++; + if (hashCount > 1000) { + var key = Object.keys(this.gHash)[0]; + delete this.gHash[key]; + hashCount--; + } + + //create a new entry in our gHash + return (this.gHash[gId] = {}); + }; + + p5.RendererGL.prototype._freeBuffers = function(gId) { + var buffers = this.gHash[gId]; + if (!buffers) { + return; + } + + delete this.gHash[gId]; + hashCount--; + + var gl = this.GL; + if (buffers.indexBuffer) { + gl.deleteBuffer(buffers.indexBuffer); + } + + function freeBuffers(defs) { + for (var i = 0; i < defs.length; i++) { + var def = defs[i]; + if (buffers[def.dst]) { + gl.deleteBuffer(buffers[def.dst]); + buffers[def.dst] = null; + } + } + } + + // free all the buffers + freeBuffers(strokeBuffers); + freeBuffers(fillBuffers); + }; + + p5.RendererGL.prototype._prepareBuffers = function(buffers, shader, defs) { + var model = buffers.model; + var attributes = shader.attributes; + var gl = this.GL; + + // loop through each of the buffer definitions + for (var i = 0; i < defs.length; i++) { + var def = defs[i]; + + var attr = attributes[def.attr]; + if (!attr) continue; + + var buffer = buffers[def.dst]; + + // check if the model has the appropriate source array + var src = model[def.src]; + if (src) { + // check if we need to create the GL buffer + var createBuffer = !buffer; + if (createBuffer) { + // create and remember the buffer + buffers[def.dst] = buffer = gl.createBuffer(); + } + // bind the buffer + gl.bindBuffer(gl.ARRAY_BUFFER, buffer); + + // check if we need to fill the buffer with data + if (createBuffer || model.dirtyFlags[def.src] !== false) { + var map = def.map; + // get the values from the model, possibly transformed + var values = map ? map(src) : src; + + // fill the buffer with the values + this._bindBuffer(buffer, gl.ARRAY_BUFFER, values); + + // mark the model's source array as clean + model.dirtyFlags[def.src] = false; + } + // enable the attribute + shader.enableAttrib(attr, def.size); + } else { + if (buffer) { + // remove the unused buffer + gl.deleteBuffer(buffer); + buffers[def.dst] = null; + } + // disable the vertex + gl.disableVertexAttribArray(attr.index); + } + } + }; + + /** + * creates a buffers object that holds the WebGL render buffers + * for a geometry. + * @private + * @param {String} gId key of the geometry object + * @param {p5.Geometry} model contains geometry data + */ + p5.RendererGL.prototype.createBuffers = function(gId, model) { + var gl = this.GL; + //initialize the gl buffers for our geom groups + var buffers = this._initBufferDefaults(gId); + buffers.model = model; + + var indexBuffer = buffers.indexBuffer; + + if (model.faces.length) { + // allocate space for faces + if (!indexBuffer) indexBuffer = buffers.indexBuffer = gl.createBuffer(); + var vals = p5.RendererGL.prototype._flatten(model.faces); + this._bindBuffer(indexBuffer, gl.ELEMENT_ARRAY_BUFFER, vals, Uint16Array); + + // the vertex count is based on the number of faces + buffers.vertexCount = model.faces.length * 3; + } else { + // the index buffer is unused, remove it + if (indexBuffer) { + gl.deleteBuffer(indexBuffer); + buffers.indexBuffer = null; + } + // the vertex count comes directly from the model + buffers.vertexCount = model.vertices ? model.vertices.length : 0; + } + + buffers.lineVertexCount = model.lineVertices ? model.lineVertices.length : 0; + + return buffers; + }; + + /** + * Draws buffers given a geometry key ID + * @private + * @param {String} gId ID in our geom hash + * @chainable + */ + p5.RendererGL.prototype.drawBuffers = function(gId) { + var gl = this.GL; + var buffers = this.gHash[gId]; + + if (this._doStroke && buffers.lineVertexCount > 0) { + var strokeShader = this._getRetainedStrokeShader(); + this._setStrokeUniforms(strokeShader); + this._prepareBuffers(buffers, strokeShader, strokeBuffers); + this._applyColorBlend(this.curStrokeColor); + this._drawArrays(gl.TRIANGLES, gId); + strokeShader.unbindShader(); + } + + if (this._doFill) { + var fillShader = this._getRetainedFillShader(); + this._setFillUniforms(fillShader); + this._prepareBuffers(buffers, fillShader, fillBuffers); + if (buffers.indexBuffer) { + //vertex index buffer + this._bindBuffer(buffers.indexBuffer, gl.ELEMENT_ARRAY_BUFFER); + } + this._applyColorBlend(this.curFillColor); + this._drawElements(gl.TRIANGLES, gId); + fillShader.unbindShader(); + } + return this; + }; + + /** + * Calls drawBuffers() with a scaled model/view matrix. + * + * This is used by various 3d primitive methods (in primitives.js, eg. plane, + * box, torus, etc...) to allow caching of un-scaled geometries. Those + * geometries are generally created with unit-length dimensions, cached as + * such, and then scaled appropriately in this method prior to rendering. + * + * @private + * @method drawBuffersScaled + * @param {String} gId ID in our geom hash + * @param {Number} scaleX the amount to scale in the X direction + * @param {Number} scaleY the amount to scale in the Y direction + * @param {Number} scaleZ the amount to scale in the Z direction + */ + p5.RendererGL.prototype.drawBuffersScaled = function( + gId, + scaleX, + scaleY, + scaleZ + ) { + var uMVMatrix = this.uMVMatrix.copy(); + try { + this.uMVMatrix.scale(scaleX, scaleY, scaleZ); + this.drawBuffers(gId); + } finally { + this.uMVMatrix = uMVMatrix; + } + }; + + p5.RendererGL.prototype._drawArrays = function(drawMode, gId) { + this.GL.drawArrays(drawMode, 0, this.gHash[gId].lineVertexCount); + this._pixelsState._pixelsDirty = true; + return this; + }; + + p5.RendererGL.prototype._drawElements = function(drawMode, gId) { + var buffers = this.gHash[gId]; + var gl = this.GL; + // render the fill + if (buffers.indexBuffer) { + // we're drawing faces + gl.drawElements(gl.TRIANGLES, buffers.vertexCount, gl.UNSIGNED_SHORT, 0); + } else { + // drawing vertices + gl.drawArrays(drawMode || gl.TRIANGLES, 0, buffers.vertexCount); + } + this._pixelsState._pixelsDirty = true; + }; + + p5.RendererGL.prototype._drawPoints = function(vertices, vertexBuffer) { + var gl = this.GL; + var pointShader = this._getImmediatePointShader(); + this._setPointUniforms(pointShader); + + this._bindBuffer( + vertexBuffer, + gl.ARRAY_BUFFER, + this._vToNArray(vertices), + Float32Array, + gl.STATIC_DRAW + ); + + pointShader.enableAttrib(pointShader.attributes.aPosition, 3); + + gl.drawArrays(gl.Points, 0, vertices.length); + + pointShader.unbindShader(); + this._pixelsState._pixelsDirty = true; + }; + + module.exports = p5.RendererGL; + }, + { '../core/main': 24, './p5.RendererGL': 75 } + ], + 75: [ + function(_dereq_, module, exports) { + 'use strict'; + + var p5 = _dereq_('../core/main'); + var constants = _dereq_('../core/constants'); + var libtess = _dereq_('libtess'); + _dereq_('./p5.Shader'); + _dereq_('./p5.Camera'); + _dereq_('../core/p5.Renderer'); + _dereq_('./p5.Matrix'); + + var lightingShader = + 'precision mediump float;\n\nuniform mat4 uViewMatrix;\n\nuniform bool uUseLighting;\n\nuniform int uAmbientLightCount;\nuniform vec3 uAmbientColor[8];\n\nuniform int uDirectionalLightCount;\nuniform vec3 uLightingDirection[8];\nuniform vec3 uDirectionalColor[8];\n\nuniform int uPointLightCount;\nuniform vec3 uPointLightLocation[8];\nuniform vec3 uPointLightColor[8];\n\nuniform bool uSpecular;\nuniform float uShininess;\n\nuniform float uConstantAttenuation;\nuniform float uLinearAttenuation;\nuniform float uQuadraticAttenuation;\n\nconst float specularFactor = 2.0;\nconst float diffuseFactor = 0.73;\n\nstruct LightResult {\n float specular;\n float diffuse;\n};\n\nfloat _phongSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float shininess) {\n\n vec3 R = reflect(lightDirection, surfaceNormal);\n return pow(max(0.0, dot(R, viewDirection)), shininess);\n}\n\nfloat _lambertDiffuse(vec3 lightDirection, vec3 surfaceNormal) {\n return max(0.0, dot(-lightDirection, surfaceNormal));\n}\n\nLightResult _light(vec3 viewDirection, vec3 normal, vec3 lightVector) {\n\n vec3 lightDir = normalize(lightVector);\n\n //compute our diffuse & specular terms\n LightResult lr;\n if (uSpecular)\n lr.specular = _phongSpecular(lightDir, viewDirection, normal, uShininess);\n lr.diffuse = _lambertDiffuse(lightDir, normal);\n return lr;\n}\n\nvoid totalLight(\n vec3 modelPosition,\n vec3 normal,\n out vec3 totalDiffuse,\n out vec3 totalSpecular\n) {\n\n totalSpecular = vec3(0.0);\n\n if (!uUseLighting) {\n totalDiffuse = vec3(1.0);\n return;\n }\n\n totalDiffuse = vec3(0.0);\n\n vec3 viewDirection = normalize(-modelPosition);\n\n for (int j = 0; j < 8; j++) {\n if (j < uDirectionalLightCount) {\n vec3 lightVector = (uViewMatrix * vec4(uLightingDirection[j], 0.0)).xyz;\n vec3 lightColor = uDirectionalColor[j];\n LightResult result = _light(viewDirection, normal, lightVector);\n totalDiffuse += result.diffuse * lightColor;\n totalSpecular += result.specular * lightColor;\n }\n\n if (j < uPointLightCount) {\n vec3 lightPosition = (uViewMatrix * vec4(uPointLightLocation[j], 1.0)).xyz;\n vec3 lightVector = modelPosition - lightPosition;\n \n //calculate attenuation\n float lightDistance = length(lightVector);\n float lightFalloff = 1.0 / (uConstantAttenuation + lightDistance * uLinearAttenuation + (lightDistance * lightDistance) * uQuadraticAttenuation);\n vec3 lightColor = lightFalloff * uPointLightColor[j];\n\n LightResult result = _light(viewDirection, normal, lightVector);\n totalDiffuse += result.diffuse * lightColor;\n totalSpecular += result.specular * lightColor;\n }\n }\n\n totalDiffuse *= diffuseFactor;\n totalSpecular *= specularFactor;\n}\n'; + + var defaultShaders = { + immediateVert: + 'attribute vec3 aPosition;\nattribute vec4 aVertexColor;\n\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nuniform float uResolution;\nuniform float uPointSize;\n\nvarying vec4 vColor;\nvoid main(void) {\n vec4 positionVec4 = vec4(aPosition, 1.0);\n gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\n vColor = aVertexColor;\n gl_PointSize = uPointSize;\n}\n', + vertexColorVert: + 'attribute vec3 aPosition;\nattribute vec4 aVertexColor;\n\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\n\nvarying vec4 vColor;\n\nvoid main(void) {\n vec4 positionVec4 = vec4(aPosition, 1.0);\n gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\n vColor = aVertexColor;\n}\n', + vertexColorFrag: + 'precision mediump float;\nvarying vec4 vColor;\nvoid main(void) {\n gl_FragColor = vColor;\n}', + normalVert: + 'attribute vec3 aPosition;\nattribute vec3 aNormal;\nattribute vec2 aTexCoord;\n\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nuniform mat3 uNormalMatrix;\n\nvarying vec3 vVertexNormal;\nvarying highp vec2 vVertTexCoord;\n\nvoid main(void) {\n vec4 positionVec4 = vec4(aPosition, 1.0);\n gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\n vVertexNormal = normalize(vec3( uNormalMatrix * aNormal ));\n vVertTexCoord = aTexCoord;\n}\n', + normalFrag: + 'precision mediump float;\nvarying vec3 vVertexNormal;\nvoid main(void) {\n gl_FragColor = vec4(vVertexNormal, 1.0);\n}', + basicFrag: + 'precision mediump float;\nuniform vec4 uMaterialColor;\nvoid main(void) {\n gl_FragColor = uMaterialColor;\n}', + lightVert: + lightingShader + + '// include lighting.glgl\n\nattribute vec3 aPosition;\nattribute vec3 aNormal;\nattribute vec2 aTexCoord;\n\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nuniform mat3 uNormalMatrix;\n\nvarying highp vec2 vVertTexCoord;\nvarying vec3 vDiffuseColor;\nvarying vec3 vSpecularColor;\n\nvoid main(void) {\n\n vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\n gl_Position = uProjectionMatrix * viewModelPosition;\n\n vec3 vertexNormal = normalize(uNormalMatrix * aNormal);\n vVertTexCoord = aTexCoord;\n\n totalLight(viewModelPosition.xyz, vertexNormal, vDiffuseColor, vSpecularColor);\n\n for (int i = 0; i < 8; i++) {\n if (i < uAmbientLightCount) {\n vDiffuseColor += uAmbientColor[i];\n }\n }\n}\n', + lightTextureFrag: + 'precision mediump float;\n\nuniform vec4 uMaterialColor;\nuniform vec4 uTint;\nuniform sampler2D uSampler;\nuniform bool isTexture;\n\nvarying highp vec2 vVertTexCoord;\nvarying vec3 vDiffuseColor;\nvarying vec3 vSpecularColor;\n\nvoid main(void) {\n gl_FragColor = isTexture ? texture2D(uSampler, vVertTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;\n gl_FragColor.rgb = gl_FragColor.rgb * vDiffuseColor + vSpecularColor;\n}', + phongVert: + 'precision mediump float;\nprecision mediump int;\n\nattribute vec3 aPosition;\nattribute vec3 aNormal;\nattribute vec2 aTexCoord;\n\nuniform vec3 uAmbientColor[8];\n\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nuniform mat3 uNormalMatrix;\nuniform int uAmbientLightCount;\n\nvarying vec3 vNormal;\nvarying vec2 vTexCoord;\nvarying vec3 vViewPosition;\nvarying vec3 vAmbientColor;\n\nvoid main(void) {\n\n vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);\n\n // Pass varyings to fragment shader\n vViewPosition = viewModelPosition.xyz;\n gl_Position = uProjectionMatrix * viewModelPosition; \n\n vNormal = uNormalMatrix * aNormal;\n vTexCoord = aTexCoord;\n\n // TODO: this should be a uniform\n vAmbientColor = vec3(0.0);\n for (int i = 0; i < 8; i++) {\n if (i < uAmbientLightCount) {\n vAmbientColor += uAmbientColor[i];\n }\n }\n}\n', + phongFrag: + lightingShader + + '// include lighting.glgl\n\nuniform vec4 uMaterialColor;\nuniform sampler2D uSampler;\nuniform bool isTexture;\n\nvarying vec3 vNormal;\nvarying vec2 vTexCoord;\nvarying vec3 vViewPosition;\nvarying vec3 vAmbientColor;\n\nvoid main(void) {\n\n vec3 diffuse;\n vec3 specular;\n totalLight(vViewPosition, normalize(vNormal), diffuse, specular);\n\n gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) : uMaterialColor;\n gl_FragColor.rgb = gl_FragColor.rgb * (diffuse + vAmbientColor) + specular;\n}', + fontVert: + "precision mediump float;\n\nattribute vec3 aPosition;\nattribute vec2 aTexCoord;\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\n\nuniform vec4 uGlyphRect;\nuniform float uGlyphOffset;\n\nvarying vec2 vTexCoord;\nvarying float w;\n\nvoid main() {\n vec4 positionVec4 = vec4(aPosition, 1.0);\n\n // scale by the size of the glyph's rectangle\n positionVec4.xy *= uGlyphRect.zw - uGlyphRect.xy;\n\n // move to the corner of the glyph\n positionVec4.xy += uGlyphRect.xy;\n\n // move to the letter's line offset\n positionVec4.x += uGlyphOffset;\n \n gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\n vTexCoord = aTexCoord;\n w = gl_Position.w;\n}\n", + fontFrag: + "#extension GL_OES_standard_derivatives : enable\nprecision mediump float;\n\n#if 0\n // simulate integer math using floats\n\t#define int float\n\t#define ivec2 vec2\n\t#define INT(x) float(x)\n\n\tint ifloor(float v) { return floor(v); }\n\tivec2 ifloor(vec2 v) { return floor(v); }\n\n#else\n // use native integer math\n\tprecision highp int;\n\t#define INT(x) x\n\n\tint ifloor(float v) { return int(v); }\n\tint ifloor(int v) { return v; }\n\tivec2 ifloor(vec2 v) { return ivec2(v); }\n\n#endif\n\nuniform sampler2D uSamplerStrokes;\nuniform sampler2D uSamplerRowStrokes;\nuniform sampler2D uSamplerRows;\nuniform sampler2D uSamplerColStrokes;\nuniform sampler2D uSamplerCols;\n\nuniform ivec2 uStrokeImageSize;\nuniform ivec2 uCellsImageSize;\nuniform ivec2 uGridImageSize;\n\nuniform ivec2 uGridOffset;\nuniform ivec2 uGridSize;\nuniform vec4 uMaterialColor;\n\nvarying vec2 vTexCoord;\n\n// some helper functions\nint round(float v) { return ifloor(v + 0.5); }\nivec2 round(vec2 v) { return ifloor(v + 0.5); }\nfloat saturate(float v) { return clamp(v, 0.0, 1.0); }\nvec2 saturate(vec2 v) { return clamp(v, 0.0, 1.0); }\n\nint mul(float v1, int v2) {\n return ifloor(v1 * float(v2));\n}\n\nivec2 mul(vec2 v1, ivec2 v2) {\n return ifloor(v1 * vec2(v2) + 0.5);\n}\n\n// unpack a 16-bit integer from a float vec2\nint getInt16(vec2 v) {\n ivec2 iv = round(v * 255.0);\n return iv.x * INT(128) + iv.y;\n}\n\nvec2 pixelScale;\nvec2 coverage = vec2(0.0);\nvec2 weight = vec2(0.5);\nconst float minDistance = 1.0/8192.0;\nconst float hardness = 1.05; // amount of antialias\n\n// the maximum number of curves in a glyph\nconst int N = INT(250);\n\n// retrieves an indexed pixel from a sampler\nvec4 getTexel(sampler2D sampler, int pos, ivec2 size) {\n int width = size.x;\n int y = ifloor(pos / width);\n int x = pos - y * width; // pos % width\n\n return texture2D(sampler, (vec2(x, y) + 0.5) / vec2(size));\n}\n\nvoid calulateCrossings(vec2 p0, vec2 p1, vec2 p2, out vec2 C1, out vec2 C2) {\n\n // get the coefficients of the quadratic in t\n vec2 a = p0 - p1 * 2.0 + p2;\n vec2 b = p0 - p1;\n vec2 c = p0 - vTexCoord;\n\n // found out which values of 't' it crosses the axes\n vec2 surd = sqrt(max(vec2(0.0), b * b - a * c));\n vec2 t1 = ((b - surd) / a).yx;\n vec2 t2 = ((b + surd) / a).yx;\n\n // approximate straight lines to avoid rounding errors\n if (abs(a.y) < 0.001)\n t1.x = t2.x = c.y / (2.0 * b.y);\n\n if (abs(a.x) < 0.001)\n t1.y = t2.y = c.x / (2.0 * b.x);\n\n // plug into quadratic formula to find the corrdinates of the crossings\n C1 = ((a * t1 - b * 2.0) * t1 + c) * pixelScale;\n C2 = ((a * t2 - b * 2.0) * t2 + c) * pixelScale;\n}\n\nvoid coverageX(vec2 p0, vec2 p1, vec2 p2) {\n\n vec2 C1, C2;\n calulateCrossings(p0, p1, p2, C1, C2);\n\n // determine on which side of the x-axis the points lie\n bool y0 = p0.y > vTexCoord.y;\n bool y1 = p1.y > vTexCoord.y;\n bool y2 = p2.y > vTexCoord.y;\n\n // could web be under the curve (after t1)?\n if (y1 ? !y2 : y0) {\n // add the coverage for t1\n coverage.x += saturate(C1.x + 0.5);\n // calculate the anti-aliasing for t1\n weight.x = min(weight.x, abs(C1.x));\n }\n\n // are we outside the curve (after t2)?\n if (y1 ? !y0 : y2) {\n // subtract the coverage for t2\n coverage.x -= saturate(C2.x + 0.5);\n // calculate the anti-aliasing for t2\n weight.x = min(weight.x, abs(C2.x));\n }\n}\n\n// this is essentially the same as coverageX, but with the axes swapped\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\n\n vec2 C1, C2;\n calulateCrossings(p0, p1, p2, C1, C2);\n\n bool x0 = p0.x > vTexCoord.x;\n bool x1 = p1.x > vTexCoord.x;\n bool x2 = p2.x > vTexCoord.x;\n\n if (x1 ? !x2 : x0) {\n coverage.y -= saturate(C1.y + 0.5);\n weight.y = min(weight.y, abs(C1.y));\n }\n\n if (x1 ? !x0 : x2) {\n coverage.y += saturate(C2.y + 0.5);\n weight.y = min(weight.y, abs(C2.y));\n }\n}\n\nvoid main() {\n\n // calculate the pixel scale based on screen-coordinates\n pixelScale = hardness / fwidth(vTexCoord);\n\n // which grid cell is this pixel in?\n ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\n\n // intersect curves in this row\n {\n // the index into the row info bitmap\n int rowIndex = gridCoord.y + uGridOffset.y;\n // fetch the info texel\n vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\n // unpack the rowInfo\n int rowStrokeIndex = getInt16(rowInfo.xy);\n int rowStrokeCount = getInt16(rowInfo.zw);\n\n for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\n if (iRowStroke >= rowStrokeCount)\n break;\n\n // each stroke is made up of 3 points: the start and control point\n // and the start of the next curve.\n // fetch the indices of this pair of strokes:\n vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\n\n // unpack the stroke index\n int strokePos = getInt16(strokeIndices.xy);\n\n // fetch the two strokes\n vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\n vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\n\n // calculate the coverage\n coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\n }\n }\n\n // intersect curves in this column\n {\n int colIndex = gridCoord.x + uGridOffset.x;\n vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\n int colStrokeIndex = getInt16(colInfo.xy);\n int colStrokeCount = getInt16(colInfo.zw);\n \n for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\n if (iColStroke >= colStrokeCount)\n break;\n\n vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\n\n int strokePos = getInt16(strokeIndices.xy);\n vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\n vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\n coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\n }\n }\n\n weight = saturate(1.0 - weight * 2.0);\n float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\n float antialias = abs(dot(coverage, weight) / distance);\n float cover = min(abs(coverage.x), abs(coverage.y));\n gl_FragColor = uMaterialColor;\n gl_FragColor.a *= saturate(max(antialias, cover));\n}", + lineVert: + "/*\n Part of the Processing project - http://processing.org\n Copyright (c) 2012-15 The Processing Foundation\n Copyright (c) 2004-12 Ben Fry and Casey Reas\n Copyright (c) 2001-04 Massachusetts Institute of Technology\n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation, version 2.1.\n This library is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n You should have received a copy of the GNU Lesser General\n Public License along with this library; if not, write to the\n Free Software Foundation, Inc., 59 Temple Place, Suite 330,\n Boston, MA 02111-1307 USA\n*/\n\n#define PROCESSING_LINE_SHADER\n\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nuniform float uStrokeWeight;\n\nuniform vec4 uViewport;\n\nattribute vec4 aPosition;\nattribute vec4 aDirection;\n \nvoid main() {\n // using a scale <1 moves the lines towards the camera\n // in order to prevent popping effects due to half of\n // the line disappearing behind the geometry faces.\n vec3 scale = vec3(0.9995);\n\n vec4 posp = uModelViewMatrix * aPosition;\n vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\n\n // Moving vertices slightly toward the camera\n // to avoid depth-fighting with the fill triangles.\n // Discussed here:\n // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848 \n posp.xyz = posp.xyz * scale;\n posq.xyz = posq.xyz * scale;\n\n vec4 p = uProjectionMatrix * posp;\n vec4 q = uProjectionMatrix * posq;\n\n // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\n // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\n\n // prevent division by W by transforming the tangent formula (div by 0 causes\n // the line to disappear, see https://github.com/processing/processing/issues/5183)\n // t = screen_q - screen_p\n //\n // tangent is normalized and we don't care which aDirection it points to (+-)\n // t = +- normalize( screen_q - screen_p )\n // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\n //\n // extract common factor, <1,1> - <1,1> cancels out\n // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\n //\n // convert to common divisor\n // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\n //\n // remove the common scalar divisor/factor, not needed due to normalize and +-\n // (keep uViewport - can't remove because it has different components for x and y\n // and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\n // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\n\n vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\n\n // flip tangent to normal (it's already normalized)\n vec2 normal = vec2(-tangent.y, tangent.x);\n\n float thickness = aDirection.w * uStrokeWeight;\n vec2 offset = normal * thickness / 2.0;\n\n // Perspective ---\n // convert from world to clip by multiplying with projection scaling factor\n // to get the right thickness (see https://github.com/processing/processing/issues/5182)\n // invert Y, projections in Processing invert Y\n vec2 perspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\n\n // No Perspective ---\n // multiply by W (to cancel out division by W later in the pipeline) and\n // convert from screen to clip (derived from clip to screen above)\n vec2 noPerspScale = p.w / (0.5 * uViewport.zw);\n\n //gl_Position.xy = p.xy + offset.xy * mix(noPerspScale, perspScale, float(perspective > 0));\n gl_Position.xy = p.xy + offset.xy * perspScale;\n gl_Position.zw = p.zw;\n}\n", + lineFrag: + 'precision mediump float;\nprecision mediump int;\n\nuniform vec4 uMaterialColor;\n\nvoid main() {\n gl_FragColor = uMaterialColor;\n}', + pointVert: + 'attribute vec3 aPosition;\nuniform float uPointSize;\nvarying float vStrokeWeight;\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nvoid main() {\n\tvec4 positionVec4 = vec4(aPosition, 1.0);\n\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\n\tgl_PointSize = uPointSize;\n\tvStrokeWeight = uPointSize;\n}', + pointFrag: + 'precision mediump float;\nprecision mediump int;\nuniform vec4 uMaterialColor;\nvarying float vStrokeWeight;\n\nvoid main(){\n\tfloat mask = 0.0;\n\n\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\n // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\n\n\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\n\n\t// if strokeWeight is 1 or less lets just draw a square\n\t// this prevents weird artifacting from carving circles when our points are really small\n\t// if strokeWeight is larger than 1, we just use it as is\n\n\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\n\n\t// throw away the borders of the mask\n // otherwise we get weird alpha blending issues\n\n\tif(mask > 0.98){\n discard;\n \t}\n\n \tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\n}' + }; + + /** + * 3D graphics class + * @private + * @class p5.RendererGL + * @constructor + * @extends p5.Renderer + * @todo extend class to include public method for offscreen + * rendering (FBO). + * + */ + p5.RendererGL = function(elt, pInst, isMainCanvas, attr) { + p5.Renderer.call(this, elt, pInst, isMainCanvas); + this._setAttributeDefaults(pInst); + this._initContext(); + this.isP3D = true; //lets us know we're in 3d mode + this.GL = this.drawingContext; + + // lights + this._enableLighting = false; + + this.ambientLightColors = []; + this.directionalLightDirections = []; + this.directionalLightColors = []; + + this.pointLightPositions = []; + this.pointLightColors = []; + + this.drawMode = constants.FILL; + this.curFillColor = [1, 1, 1, 1]; + this.curStrokeColor = [0, 0, 0, 1]; + this.curBlendMode = constants.BLEND; + this.blendExt = this.GL.getExtension('EXT_blend_minmax'); + + this._useSpecularMaterial = false; + this._useNormalMaterial = false; + this._useShininess = 1; + + this._tint = [255, 255, 255, 255]; + + // lightFalloff variables + this.constantAttenuation = 1; + this.linearAttenuation = 0; + this.quadraticAttenuation = 0; + + /** + * model view, projection, & normal + * matrices + */ + this.uMVMatrix = new p5.Matrix(); + this.uPMatrix = new p5.Matrix(); + this.uNMatrix = new p5.Matrix('mat3'); + + // Camera + this._curCamera = new p5.Camera(this); + this._curCamera._computeCameraDefaultSettings(); + this._curCamera._setDefaultCamera(); + + //Geometry & Material hashes + this.gHash = {}; + + this._defaultLightShader = undefined; + this._defaultImmediateModeShader = undefined; + this._defaultNormalShader = undefined; + this._defaultColorShader = undefined; + this._defaultPointShader = undefined; + + this._pointVertexBuffer = this.GL.createBuffer(); + + this.userFillShader = undefined; + this.userStrokeShader = undefined; + this.userPointShader = undefined; + + //Imediate Mode + //default drawing is done in Retained Mode + this.isImmediateDrawing = false; + this.immediateMode = {}; + + this.pointSize = 5.0; //default point size + this.curStrokeWeight = 1; + + // array of textures created in this gl context via this.getTexture(src) + this.textures = []; + + this.textureMode = constants.IMAGE; + // default wrap settings + this.textureWrapX = constants.CLAMP; + this.textureWrapY = constants.CLAMP; + this._tex = null; + this._curveTightness = 6; + + // lookUpTable for coefficients needed to be calculated for bezierVertex, same are used for curveVertex + this._lookUpTableBezier = []; + // lookUpTable for coefficients needed to be calculated for quadraticVertex + this._lookUpTableQuadratic = []; + + // current curveDetail in the Bezier lookUpTable + this._lutBezierDetail = 0; + // current curveDetail in the Quadratic lookUpTable + this._lutQuadraticDetail = 0; + + this._tessy = this._initTessy(); + + this.fontInfos = {}; + + return this; + }; + + p5.RendererGL.prototype = Object.create(p5.Renderer.prototype); + + ////////////////////////////////////////////// + // Setting + ////////////////////////////////////////////// + + p5.RendererGL.prototype._setAttributeDefaults = function(pInst) { + var defaults = { + alpha: true, + depth: true, + stencil: true, + antialias: false, + premultipliedAlpha: false, + preserveDrawingBuffer: true, + perPixelLighting: false + }; + + if (pInst._glAttributes === null) { + pInst._glAttributes = defaults; + } else { + pInst._glAttributes = Object.assign(defaults, pInst._glAttributes); + } + return; + }; + + p5.RendererGL.prototype._initContext = function() { + try { + this.drawingContext = + this.canvas.getContext('webgl', this._pInst._glAttributes) || + this.canvas.getContext('experimental-webgl', this._pInst._glAttributes); + if (this.drawingContext === null) { + throw new Error('Error creating webgl context'); + } else { + var gl = this.drawingContext; + gl.enable(gl.DEPTH_TEST); + gl.depthFunc(gl.LEQUAL); + gl.viewport(0, 0, gl.drawingBufferWidth, gl.drawingBufferHeight); + this._viewport = this.drawingContext.getParameter( + this.drawingContext.VIEWPORT + ); + } + } catch (er) { + throw er; + } + }; + + //This is helper function to reset the context anytime the attributes + //are changed with setAttributes() + + p5.RendererGL.prototype._resetContext = function(options, callback) { + var w = this.width; + var h = this.height; + var defaultId = this.canvas.id; + var isPGraphics = this._pInst instanceof p5.Graphics; + + if (isPGraphics) { + var pg = this._pInst; + pg.canvas.parentNode.removeChild(pg.canvas); + pg.canvas = document.createElement('canvas'); + var node = pg._pInst._userNode || document.body; + node.appendChild(pg.canvas); + p5.Element.call(pg, pg.canvas, pg._pInst); + pg.width = w; + pg.height = h; + } else { + var c = this.canvas; + if (c) { + c.parentNode.removeChild(c); + } + c = document.createElement('canvas'); + c.id = defaultId; + if (this._pInst._userNode) { + this._pInst._userNode.appendChild(c); + } else { + document.body.appendChild(c); + } + this._pInst.canvas = c; + } + + var renderer = new p5.RendererGL(this._pInst.canvas, this._pInst, !isPGraphics); + + this._pInst._setProperty('_renderer', renderer); + renderer.resize(w, h); + renderer._applyDefaults(); + + if (!isPGraphics) { + this._pInst._elements.push(renderer); + } + + if (typeof callback === 'function') { + //setTimeout with 0 forces the task to the back of the queue, this ensures that + //we finish switching out the renderer + setTimeout(function() { + callback.apply(window._renderer, options); + }, 0); + } + }; + /** + * @module Rendering + * @submodule Rendering + * @for p5 + */ + /** + * Set attributes for the WebGL Drawing context. + * This is a way of adjusting how the WebGL + * renderer works to fine-tune the display and performance. + *

+ * Note that this will reinitialize the drawing context + * if called after the WebGL canvas is made. + *

+ * If an object is passed as the parameter, all attributes + * not declared in the object will be set to defaults. + *

+ * The available attributes are: + *
+ * alpha - indicates if the canvas contains an alpha buffer + * default is true + *

+ * depth - indicates whether the drawing buffer has a depth buffer + * of at least 16 bits - default is true + *

+ * stencil - indicates whether the drawing buffer has a stencil buffer + * of at least 8 bits + *

+ * antialias - indicates whether or not to perform anti-aliasing + * default is false + *

+ * premultipliedAlpha - indicates that the page compositor will assume + * the drawing buffer contains colors with pre-multiplied alpha + * default is false + *

+ * preserveDrawingBuffer - if true the buffers will not be cleared and + * and will preserve their values until cleared or overwritten by author + * (note that p5 clears automatically on draw loop) + * default is true + *

+ * perPixelLighting - if true, per-pixel lighting will be used in the + * lighting shader. + * default is false + *

+ * @method setAttributes + * @for p5 + * @param {String} key Name of attribute + * @param {Boolean} value New value of named attribute + * @example + *
+ * + * function setup() { + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(255); + * push(); + * rotateZ(frameCount * 0.02); + * rotateX(frameCount * 0.02); + * rotateY(frameCount * 0.02); + * fill(0, 0, 0); + * box(50); + * pop(); + * } + * + *
+ *
+ * Now with the antialias attribute set to true. + *
+ *
+ * + * function setup() { + * setAttributes('antialias', true); + * createCanvas(100, 100, WEBGL); + * } + * + * function draw() { + * background(255); + * push(); + * rotateZ(frameCount * 0.02); + * rotateX(frameCount * 0.02); + * rotateY(frameCount * 0.02); + * fill(0, 0, 0); + * box(50); + * pop(); + * } + * + *
+ * + *
+ * + * // press the mouse button to enable perPixelLighting + * function setup() { + * createCanvas(100, 100, WEBGL); + * noStroke(); + * fill(255); + * } + * + * var lights = [ + * { c: '#f00', t: 1.12, p: 1.91, r: 0.2 }, + * { c: '#0f0', t: 1.21, p: 1.31, r: 0.2 }, + * { c: '#00f', t: 1.37, p: 1.57, r: 0.2 }, + * { c: '#ff0', t: 1.12, p: 1.91, r: 0.7 }, + * { c: '#0ff', t: 1.21, p: 1.31, r: 0.7 }, + * { c: '#f0f', t: 1.37, p: 1.57, r: 0.7 } + * ]; + * + * function draw() { + * var t = millis() / 1000 + 1000; + * background(0); + * directionalLight(color('#222'), 1, 1, 1); + * + * for (var i = 0; i < lights.length; i++) { + * var light = lights[i]; + * pointLight( + * color(light.c), + * p5.Vector.fromAngles(t * light.t, t * light.p, width * light.r) + * ); + * } + * + * specularMaterial(255); + * sphere(width * 0.1); + * + * rotateX(t * 0.77); + * rotateY(t * 0.83); + * rotateZ(t * 0.91); + * torus(width * 0.3, width * 0.07, 24, 10); + * } + * + * function mousePressed() { + * setAttributes('perPixelLighting', true); + * noStroke(); + * fill(255); + * } + * function mouseReleased() { + * setAttributes('perPixelLighting', false); + * noStroke(); + * fill(255); + * } + * + *
+ * + * @alt a rotating cube with smoother edges + */ + /** + * @method setAttributes + * @for p5 + * @param {Object} obj object with key-value pairs + */ + + p5.prototype.setAttributes = function(key, value) { + if (typeof this._glAttributes === 'undefined') { + console.log( + 'You are trying to use setAttributes on a p5.Graphics object ' + + 'that does not use a WEBGL renderer.' + ); + + return; + } + var unchanged = true; + if (typeof value !== 'undefined') { + //first time modifying the attributes + if (this._glAttributes === null) { + this._glAttributes = {}; + } + if (this._glAttributes[key] !== value) { + //changing value of previously altered attribute + this._glAttributes[key] = value; + unchanged = false; + } + //setting all attributes with some change + } else if (key instanceof Object) { + if (this._glAttributes !== key) { + this._glAttributes = key; + unchanged = false; + } + } + //@todo_FES + if (!this._renderer.isP3D || unchanged) { + return; + } + + if (!this._setupDone) { + for (var x in this._renderer.gHash) { + if (this._renderer.gHash.hasOwnProperty(x)) { + console.error( + 'Sorry, Could not set the attributes, you need to call setAttributes() ' + + 'before calling the other drawing methods in setup()' + ); + + return; + } + } + } + + this.push(); + this._renderer._resetContext(); + this.pop(); + + if (this._renderer._curCamera) { + this._renderer._curCamera._renderer = this._renderer; + } + }; + + /** + * @class p5.RendererGL + */ + + p5.RendererGL.prototype._update = function() { + // reset model view and apply initial camera transform + // (containing only look at info; no projection). + this.uMVMatrix.set( + this._curCamera.cameraMatrix.mat4[0], + this._curCamera.cameraMatrix.mat4[1], + this._curCamera.cameraMatrix.mat4[2], + this._curCamera.cameraMatrix.mat4[3], + this._curCamera.cameraMatrix.mat4[4], + this._curCamera.cameraMatrix.mat4[5], + this._curCamera.cameraMatrix.mat4[6], + this._curCamera.cameraMatrix.mat4[7], + this._curCamera.cameraMatrix.mat4[8], + this._curCamera.cameraMatrix.mat4[9], + this._curCamera.cameraMatrix.mat4[10], + this._curCamera.cameraMatrix.mat4[11], + this._curCamera.cameraMatrix.mat4[12], + this._curCamera.cameraMatrix.mat4[13], + this._curCamera.cameraMatrix.mat4[14], + this._curCamera.cameraMatrix.mat4[15] + ); + + // reset light data for new frame. + + this.ambientLightColors.length = 0; + this.directionalLightDirections.length = 0; + this.directionalLightColors.length = 0; + + this.pointLightPositions.length = 0; + this.pointLightColors.length = 0; + + this._enableLighting = false; + + //reset tint value for new frame + this._tint = [255, 255, 255, 255]; + }; + + /** + * [background description] + */ + p5.RendererGL.prototype.background = function() { + var _col = this._pInst.color.apply(this._pInst, arguments); + var _r = _col.levels[0] / 255; + var _g = _col.levels[1] / 255; + var _b = _col.levels[2] / 255; + var _a = _col.levels[3] / 255; + this.GL.clearColor(_r, _g, _b, _a); + this.GL.depthMask(true); + this.GL.clear(this.GL.COLOR_BUFFER_BIT | this.GL.DEPTH_BUFFER_BIT); + this._pixelsState._pixelsDirty = true; + }; + + ////////////////////////////////////////////// + // COLOR + ////////////////////////////////////////////// + /** + * Basic fill material for geometry with a given color + * @method fill + * @class p5.RendererGL + * @param {Number|Number[]|String|p5.Color} v1 gray value, + * red or hue value (depending on the current color mode), + * or color Array, or CSS color string + * @param {Number} [v2] green or saturation value + * @param {Number} [v3] blue or brightness value + * @param {Number} [a] opacity + * @chainable + * @example + *
+ * + * function setup() { + * createCanvas(200, 200, WEBGL); + * } + * + * function draw() { + * background(0); + * noStroke(); + * fill(100, 100, 240); + * rotateX(frameCount * 0.01); + * rotateY(frameCount * 0.01); + * box(75, 75, 75); + * } + * + *
+ * + * @alt + * black canvas with purple cube spinning + * + */ + p5.RendererGL.prototype.fill = function(v1, v2, v3, a) { + //see material.js for more info on color blending in webgl + var color = p5.prototype.color.apply(this._pInst, arguments); + this.curFillColor = color._array; + this.drawMode = constants.FILL; + this._useNormalMaterial = false; + this._tex = null; + }; + + /** + * Basic stroke material for geometry with a given color + * @method stroke + * @param {Number|Number[]|String|p5.Color} v1 gray value, + * red or hue value (depending on the current color mode), + * or color Array, or CSS color string + * @param {Number} [v2] green or saturation value + * @param {Number} [v3] blue or brightness value + * @param {Number} [a] opacity + * @example + *
+ * + * function setup() { + * createCanvas(200, 200, WEBGL); + * } + * + * function draw() { + * background(0); + * stroke(240, 150, 150); + * fill(100, 100, 240); + * rotateX(frameCount * 0.01); + * rotateY(frameCount * 0.01); + * box(75, 75, 75); + * } + * + *
+ * + * @alt + * black canvas with purple cube with pink outline spinning + * + */ + p5.RendererGL.prototype.stroke = function(r, g, b, a) { + //@todo allow transparency in stroking currently doesn't have + //any impact and causes problems with specularMaterial + arguments[3] = 255; + var color = p5.prototype.color.apply(this._pInst, arguments); + this.curStrokeColor = color._array; + }; + + p5.RendererGL.prototype.strokeCap = function(cap) { + // @TODO : to be implemented + console.error('Sorry, strokeCap() is not yet implemented in WEBGL mode'); + }; + + p5.RendererGL.prototype.blendMode = function(mode) { + if ( + mode === constants.DARKEST || + mode === constants.LIGHTEST || + mode === constants.ADD || + mode === constants.BLEND || + mode === constants.SUBTRACT || + mode === constants.SCREEN || + mode === constants.EXCLUSION || + mode === constants.REPLACE || + mode === constants.MULTIPLY + ) + this.curBlendMode = mode; + else if ( + mode === constants.BURN || + mode === constants.OVERLAY || + mode === constants.HARD_LIGHT || + mode === constants.SOFT_LIGHT || + mode === constants.DODGE + ) { + console.warn( + 'BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.' + ); + } + }; + + /** + * Change weight of stroke + * @method strokeWeight + * @param {Number} stroke weight to be used for drawing + * @example + *
+ * + * function setup() { + * createCanvas(200, 400, WEBGL); + * setAttributes('antialias', true); + * } + * + * function draw() { + * background(0); + * noStroke(); + * translate(0, -100, 0); + * stroke(240, 150, 150); + * fill(100, 100, 240); + * push(); + * strokeWeight(8); + * rotateX(frameCount * 0.01); + * rotateY(frameCount * 0.01); + * sphere(75); + * pop(); + * push(); + * translate(0, 200, 0); + * strokeWeight(1); + * rotateX(frameCount * 0.01); + * rotateY(frameCount * 0.01); + * sphere(75); + * pop(); + * } + * + *
+ * + * @alt + * black canvas with two purple rotating spheres with pink + * outlines the sphere on top has much heavier outlines, + * + */ + p5.RendererGL.prototype.strokeWeight = function(w) { + if (this.curStrokeWeight !== w) { + this.pointSize = w; + this.curStrokeWeight = w; + } + }; + + // x,y are canvas-relative (pre-scaled by _pixelDensity) + p5.RendererGL.prototype._getPixel = function(x, y) { + var pixelsState = this._pixelsState; + var imageData, index; + if (pixelsState._pixelsDirty) { + imageData = new Uint8Array(4); + // prettier-ignore + this.drawingContext.readPixels( + x, y, 1, 1, + this.drawingContext.RGBA, this.drawingContext.UNSIGNED_BYTE, + imageData); + + index = 0; + } else { + imageData = pixelsState.pixels; + index = (Math.floor(x) + Math.floor(y) * this.canvas.width) * 4; + } + return [ + imageData[index + 0], + imageData[index + 1], + imageData[index + 2], + imageData[index + 3] + ]; + }; + + /** + * Loads the pixels data for this canvas into the pixels[] attribute. + * Note that updatePixels() and set() do not work. + * Any pixel manipulation must be done directly to the pixels[] array. + * + * @private + * @method loadPixels + * + */ + + p5.RendererGL.prototype.loadPixels = function() { + var pixelsState = this._pixelsState; + if (!pixelsState._pixelsDirty) return; + pixelsState._pixelsDirty = false; + + //@todo_FES + if (this._pInst._glAttributes.preserveDrawingBuffer !== true) { + console.log( + 'loadPixels only works in WebGL when preserveDrawingBuffer ' + 'is true.' + ); + + return; + } + + //if there isn't a renderer-level temporary pixels buffer + //make a new one + var pixels = pixelsState.pixels; + var len = this.GL.drawingBufferWidth * this.GL.drawingBufferHeight * 4; + if (!(pixels instanceof Uint8Array) || pixels.length !== len) { + pixels = new Uint8Array(len); + this._pixelsState._setProperty('pixels', pixels); + } + + var pd = this._pInst._pixelDensity; + // prettier-ignore + this.GL.readPixels( + 0, 0, this.width * pd, this.height * pd, + this.GL.RGBA, this.GL.UNSIGNED_BYTE, + pixels); + }; + + ////////////////////////////////////////////// + // HASH | for geometry + ////////////////////////////////////////////// + + p5.RendererGL.prototype.geometryInHash = function(gId) { + return this.gHash[gId] !== undefined; + }; + + /** + * [resize description] + * @private + * @param {Number} w [description] + * @param {Number} h [description] + */ + p5.RendererGL.prototype.resize = function(w, h) { + p5.Renderer.prototype.resize.call(this, w, h); + this.GL.viewport(0, 0, this.GL.drawingBufferWidth, this.GL.drawingBufferHeight); + + this._viewport = this.GL.getParameter(this.GL.VIEWPORT); + + this._curCamera._resize(); + + //resize pixels buffer + var pixelsState = this._pixelsState; + pixelsState._pixelsDirty = true; + if (typeof pixelsState.pixels !== 'undefined') { + pixelsState._setProperty( + 'pixels', + new Uint8Array(this.GL.drawingBufferWidth * this.GL.drawingBufferHeight * 4) + ); + } + }; + + /** + * clears color and depth buffers + * with r,g,b,a + * @private + * @param {Number} r normalized red val. + * @param {Number} g normalized green val. + * @param {Number} b normalized blue val. + * @param {Number} a normalized alpha val. + */ + p5.RendererGL.prototype.clear = function() { + var _r = arguments[0] || 0; + var _g = arguments[1] || 0; + var _b = arguments[2] || 0; + var _a = arguments[3] || 0; + this.GL.clearColor(_r, _g, _b, _a); + this.GL.clear(this.GL.COLOR_BUFFER_BIT | this.GL.DEPTH_BUFFER_BIT); + this._pixelsState._pixelsDirty = true; + }; + + p5.RendererGL.prototype.applyMatrix = function(a, b, c, d, e, f) { + if (arguments.length === 16) { + p5.Matrix.prototype.apply.apply(this.uMVMatrix, arguments); + } else { + // prettier-ignore + this.uMVMatrix.apply([ + a, b, 0, 0, + c, d, 0, 0, + 0, 0, 1, 0, + e, f, 0, 1]); + } + }; + + /** + * [translate description] + * @private + * @param {Number} x [description] + * @param {Number} y [description] + * @param {Number} z [description] + * @chainable + * @todo implement handle for components or vector as args + */ + p5.RendererGL.prototype.translate = function(x, y, z) { + if (x instanceof p5.Vector) { + z = x.z; + y = x.y; + x = x.x; + } + this.uMVMatrix.translate([x, y, z]); + return this; + }; + + /** + * Scales the Model View Matrix by a vector + * @private + * @param {Number | p5.Vector | Array} x [description] + * @param {Number} [y] y-axis scalar + * @param {Number} [z] z-axis scalar + * @chainable + */ + p5.RendererGL.prototype.scale = function(x, y, z) { + this.uMVMatrix.scale(x, y, z); + return this; + }; + + p5.RendererGL.prototype.rotate = function(rad, axis) { + if (typeof axis === 'undefined') { + return this.rotateZ(rad); + } + p5.Matrix.prototype.rotate.apply(this.uMVMatrix, arguments); + return this; + }; + + p5.RendererGL.prototype.rotateX = function(rad) { + this.rotate(rad, 1, 0, 0); + return this; + }; + + p5.RendererGL.prototype.rotateY = function(rad) { + this.rotate(rad, 0, 1, 0); + return this; + }; + + p5.RendererGL.prototype.rotateZ = function(rad) { + this.rotate(rad, 0, 0, 1); + return this; + }; + + p5.RendererGL.prototype.push = function() { + // get the base renderer style + var style = p5.Renderer.prototype.push.apply(this); + + // add webgl-specific style properties + var properties = style.properties; + + properties.uMVMatrix = this.uMVMatrix.copy(); + properties.uPMatrix = this.uPMatrix.copy(); + properties._curCamera = this._curCamera; + + // make a copy of the current camera for the push state + // this preserves any references stored using 'createCamera' + this._curCamera = this._curCamera.copy(); + + properties.ambientLightColors = this.ambientLightColors.slice(); + + properties.directionalLightDirections = this.directionalLightDirections.slice(); + properties.directionalLightColors = this.directionalLightColors.slice(); + + properties.pointLightPositions = this.pointLightPositions.slice(); + properties.pointLightColors = this.pointLightColors.slice(); + + properties.userFillShader = this.userFillShader; + properties.userStrokeShader = this.userStrokeShader; + properties.userPointShader = this.userPointShader; + + properties.pointSize = this.pointSize; + properties.curStrokeWeight = this.curStrokeWeight; + properties.curStrokeColor = this.curStrokeColor; + properties.curFillColor = this.curFillColor; + + properties._useSpecularMaterial = this._useSpecularMaterial; + properties._useShininess = this._useShininess; + + properties.constantAttenuation = this.constantAttenuation; + properties.linearAttenuation = this.linearAttenuation; + properties.quadraticAttenuation = this.quadraticAttenuation; + + properties._enableLighting = this._enableLighting; + properties._useNormalMaterial = this._useNormalMaterial; + properties._tex = this._tex; + properties.drawMode = this.drawMode; + + return style; + }; + + p5.RendererGL.prototype.resetMatrix = function() { + this.uMVMatrix = p5.Matrix.identity(this._pInst); + return this; + }; + + ////////////////////////////////////////////// + // SHADER + ////////////////////////////////////////////// + + /* + * shaders are created and cached on a per-renderer basis, + * on the grounds that each renderer will have its own gl context + * and the shader must be valid in that context. + */ + + p5.RendererGL.prototype._getImmediateStrokeShader = function() { + // select the stroke shader to use + var stroke = this.userStrokeShader; + if (!stroke || !stroke.isStrokeShader()) { + return this._getLineShader(); + } + return stroke; + }; + + p5.RendererGL.prototype._getRetainedStrokeShader = + p5.RendererGL.prototype._getImmediateStrokeShader; + + /* + * selects which fill shader should be used based on renderer state, + * for use with begin/endShape and immediate vertex mode. + */ + p5.RendererGL.prototype._getImmediateFillShader = function() { + if (this._useNormalMaterial) { + console.log( + 'Sorry, normalMaterial() does not currently work with custom WebGL geometry' + + ' created with beginShape(). Falling back to standard fill material.' + ); + + return this._getImmediateModeShader(); + } + + var fill = this.userFillShader; + if (this._enableLighting) { + if (!fill || !fill.isLightShader()) { + return this._getLightShader(); + } + } else if (this._tex) { + if (!fill || !fill.isTextureShader()) { + return this._getLightShader(); + } + } else if (!fill /*|| !fill.isColorShader()*/) { + return this._getImmediateModeShader(); + } + return fill; + }; + + /* + * selects which fill shader should be used based on renderer state + * for retained mode. + */ + p5.RendererGL.prototype._getRetainedFillShader = function() { + if (this._useNormalMaterial) { + return this._getNormalShader(); + } + + var fill = this.userFillShader; + if (this._enableLighting) { + if (!fill || !fill.isLightShader()) { + return this._getLightShader(); + } + } else if (this._tex) { + if (!fill || !fill.isTextureShader()) { + return this._getLightShader(); + } + } else if (!fill /* || !fill.isColorShader()*/) { + return this._getColorShader(); + } + return fill; + }; + + p5.RendererGL.prototype._getImmediatePointShader = function() { + // select the point shader to use + var point = this.userPointShader; + if (!point || !point.isPointShader()) { + return this._getPointShader(); + } + return point; + }; + + p5.RendererGL.prototype._getRetainedLineShader = + p5.RendererGL.prototype._getImmediateLineShader; + + p5.RendererGL.prototype._getLightShader = function() { + if (!this._defaultLightShader) { + if (this._pInst._glAttributes.perPixelLighting) { + this._defaultLightShader = new p5.Shader( + this, + defaultShaders.phongVert, + defaultShaders.phongFrag + ); + } else { + this._defaultLightShader = new p5.Shader( + this, + defaultShaders.lightVert, + defaultShaders.lightTextureFrag + ); + } + } + + return this._defaultLightShader; + }; + + p5.RendererGL.prototype._getImmediateModeShader = function() { + if (!this._defaultImmediateModeShader) { + this._defaultImmediateModeShader = new p5.Shader( + this, + defaultShaders.immediateVert, + defaultShaders.vertexColorFrag + ); + } + + return this._defaultImmediateModeShader; + }; + + p5.RendererGL.prototype._getNormalShader = function() { + if (!this._defaultNormalShader) { + this._defaultNormalShader = new p5.Shader( + this, + defaultShaders.normalVert, + defaultShaders.normalFrag + ); + } + + return this._defaultNormalShader; + }; + + p5.RendererGL.prototype._getColorShader = function() { + if (!this._defaultColorShader) { + this._defaultColorShader = new p5.Shader( + this, + defaultShaders.normalVert, + defaultShaders.basicFrag + ); + } + + return this._defaultColorShader; + }; + + p5.RendererGL.prototype._getPointShader = function() { + if (!this._defaultPointShader) { + this._defaultPointShader = new p5.Shader( + this, + defaultShaders.pointVert, + defaultShaders.pointFrag + ); + } + return this._defaultPointShader; + }; + + p5.RendererGL.prototype._getLineShader = function() { + if (!this._defaultLineShader) { + this._defaultLineShader = new p5.Shader( + this, + defaultShaders.lineVert, + defaultShaders.lineFrag + ); + } + + return this._defaultLineShader; + }; + + p5.RendererGL.prototype._getFontShader = function() { + if (!this._defaultFontShader) { + this.GL.getExtension('OES_standard_derivatives'); + this._defaultFontShader = new p5.Shader( + this, + defaultShaders.fontVert, + defaultShaders.fontFrag + ); + } + return this._defaultFontShader; + }; + + p5.RendererGL.prototype._getEmptyTexture = function() { + if (!this._emptyTexture) { + // a plain white texture RGBA, full alpha, single pixel. + var im = new p5.Image(1, 1); + im.set(0, 0, 255); + this._emptyTexture = new p5.Texture(this, im); + } + return this._emptyTexture; + }; + + p5.RendererGL.prototype.getTexture = function(img) { + var textures = this.textures; + for (var it = 0; it < textures.length; ++it) { + var texture = textures[it]; + if (texture.src === img) return texture; + } + + var tex = new p5.Texture(this, img); + textures.push(tex); + return tex; + }; + + p5.RendererGL.prototype._setStrokeUniforms = function(strokeShader) { + strokeShader.bindShader(); + + // set the uniform values + strokeShader.setUniform('uMaterialColor', this.curStrokeColor); + strokeShader.setUniform('uStrokeWeight', this.curStrokeWeight); + }; + + p5.RendererGL.prototype._setFillUniforms = function(fillShader) { + fillShader.bindShader(); + + // TODO: optimize + fillShader.setUniform('uMaterialColor', this.curFillColor); + fillShader.setUniform('isTexture', !!this._tex); + if (this._tex) { + fillShader.setUniform('uSampler', this._tex); + } + fillShader.setUniform('uTint', this._tint); + + fillShader.setUniform('uSpecular', this._useSpecularMaterial); + fillShader.setUniform('uShininess', this._useShininess); + + fillShader.setUniform('uUseLighting', this._enableLighting); + + var pointLightCount = this.pointLightColors.length / 3; + fillShader.setUniform('uPointLightCount', pointLightCount); + fillShader.setUniform('uPointLightLocation', this.pointLightPositions); + fillShader.setUniform('uPointLightColor', this.pointLightColors); + + var directionalLightCount = this.directionalLightColors.length / 3; + fillShader.setUniform('uDirectionalLightCount', directionalLightCount); + fillShader.setUniform('uLightingDirection', this.directionalLightDirections); + fillShader.setUniform('uDirectionalColor', this.directionalLightColors); + + // TODO: sum these here... + var ambientLightCount = this.ambientLightColors.length / 3; + fillShader.setUniform('uAmbientLightCount', ambientLightCount); + fillShader.setUniform('uAmbientColor', this.ambientLightColors); + + fillShader.setUniform('uConstantAttenuation', this.constantAttenuation); + fillShader.setUniform('uLinearAttenuation', this.linearAttenuation); + fillShader.setUniform('uQuadraticAttenuation', this.quadraticAttenuation); + + fillShader.bindTextures(); + }; + + p5.RendererGL.prototype._setPointUniforms = function(pointShader) { + pointShader.bindShader(); + + // set the uniform values + pointShader.setUniform('uMaterialColor', this.curStrokeColor); + // @todo is there an instance where this isn't stroke weight? + // should be they be same var? + pointShader.setUniform('uPointSize', this.pointSize); + }; + + /* Binds a buffer to the drawing context + * when passed more than two arguments it also updates or initializes + * the data associated with the buffer + */ + p5.RendererGL.prototype._bindBuffer = function( + buffer, + target, + values, + type, + usage + ) { + if (!target) target = this.GL.ARRAY_BUFFER; + this.GL.bindBuffer(target, buffer); + if (values !== undefined) { + var data = new (type || Float32Array)(values); + this.GL.bufferData(target, data, usage || this.GL.STATIC_DRAW); + } + }; + + /////////////////////////////// + //// UTILITY FUNCTIONS + ////////////////////////////// + /** + * turn a two dimensional array into one dimensional array + * @private + * @param {Array} arr 2-dimensional array + * @return {Array} 1-dimensional array + * [[1, 2, 3],[4, 5, 6]] -> [1, 2, 3, 4, 5, 6] + */ + p5.RendererGL.prototype._flatten = function(arr) { + //when empty, return empty + if (arr.length === 0) { + return []; + } else if (arr.length > 20000) { + //big models , load slower to avoid stack overflow + //faster non-recursive flatten via axelduch + //stackoverflow.com/questions/27266550/how-to-flatten-nested-array-in-javascript + var toString = Object.prototype.toString; + var arrayTypeStr = '[object Array]'; + var result = []; + var nodes = arr.slice(); + var node; + node = nodes.pop(); + do { + if (toString.call(node) === arrayTypeStr) { + nodes.push.apply(nodes, node); + } else { + result.push(node); + } + } while (nodes.length && (node = nodes.pop()) !== undefined); + result.reverse(); // we reverse result to restore the original order + return result; + } else { + //otherwise if model within limits for browser + //use faster recursive loading + return [].concat.apply([], arr); + } + }; + + /** + * turn a p5.Vector Array into a one dimensional number array + * @private + * @param {p5.Vector[]} arr an array of p5.Vector + * @return {Number[]} a one dimensional array of numbers + * [p5.Vector(1, 2, 3), p5.Vector(4, 5, 6)] -> + * [1, 2, 3, 4, 5, 6] + */ + p5.RendererGL.prototype._vToNArray = function(arr) { + var ret = []; + for (var i = 0; i < arr.length; i++) { + var item = arr[i]; + ret.push(item.x, item.y, item.z); + } + return ret; + }; + + /** + * ensures that p5 is using a 3d renderer. throws an error if not. + */ + p5.prototype._assert3d = function(name) { + if (!this._renderer.isP3D) + throw new Error( + name + + "() is only supported in WEBGL mode. If you'd like to use 3D graphics" + + ' and WebGL, see https://p5js.org/examples/form-3d-primitives.html' + + ' for more information.' + ); + }; + + // function to initialize GLU Tesselator + + p5.RendererGL.prototype._initTessy = function initTesselator() { + // function called for each vertex of tesselator output + function vertexCallback(data, polyVertArray) { + polyVertArray[polyVertArray.length] = data[0]; + polyVertArray[polyVertArray.length] = data[1]; + polyVertArray[polyVertArray.length] = data[2]; + } + + function begincallback(type) { + if (type !== libtess.primitiveType.GL_TRIANGLES) { + console.log('expected TRIANGLES but got type: ' + type); + } + } + + function errorcallback(errno) { + console.log('error callback'); + console.log('error number: ' + errno); + } + // callback for when segments intersect and must be split + function combinecallback(coords, data, weight) { + return [coords[0], coords[1], coords[2]]; + } + + function edgeCallback(flag) { + // don't really care about the flag, but need no-strip/no-fan behavior + } + + var tessy = new libtess.GluTesselator(); + tessy.gluTessCallback(libtess.gluEnum.GLU_TESS_VERTEX_DATA, vertexCallback); + tessy.gluTessCallback(libtess.gluEnum.GLU_TESS_BEGIN, begincallback); + tessy.gluTessCallback(libtess.gluEnum.GLU_TESS_ERROR, errorcallback); + tessy.gluTessCallback(libtess.gluEnum.GLU_TESS_COMBINE, combinecallback); + tessy.gluTessCallback(libtess.gluEnum.GLU_TESS_EDGE_FLAG, edgeCallback); + + return tessy; + }; + + p5.RendererGL.prototype._triangulate = function(contours) { + // libtess will take 3d verts and flatten to a plane for tesselation + // since only doing 2d tesselation here, provide z=1 normal to skip + // iterating over verts only to get the same answer. + // comment out to test normal-generation code + this._tessy.gluTessNormal(0, 0, 1); + + var triangleVerts = []; + this._tessy.gluTessBeginPolygon(triangleVerts); + + for (var i = 0; i < contours.length; i++) { + this._tessy.gluTessBeginContour(); + var contour = contours[i]; + for (var j = 0; j < contour.length; j += 3) { + var coords = [contour[j], contour[j + 1], contour[j + 2]]; + this._tessy.gluTessVertex(coords, coords); + } + this._tessy.gluTessEndContour(); + } + + // finish polygon + this._tessy.gluTessEndPolygon(); + + return triangleVerts; + }; + + // function to calculate BezierVertex Coefficients + p5.RendererGL.prototype._bezierCoefficients = function(t) { + var t2 = t * t; + var t3 = t2 * t; + var mt = 1 - t; + var mt2 = mt * mt; + var mt3 = mt2 * mt; + return [mt3, 3 * mt2 * t, 3 * mt * t2, t3]; + }; + + // function to calculate QuadraticVertex Coefficients + p5.RendererGL.prototype._quadraticCoefficients = function(t) { + var t2 = t * t; + var mt = 1 - t; + var mt2 = mt * mt; + return [mt2, 2 * mt * t, t2]; + }; + + // function to convert Bezier coordinates to Catmull Rom Splines + p5.RendererGL.prototype._bezierToCatmull = function(w) { + var p1 = w[1]; + var p2 = w[1] + (w[2] - w[0]) / this._curveTightness; + var p3 = w[2] - (w[3] - w[1]) / this._curveTightness; + var p4 = w[2]; + var p = [p1, p2, p3, p4]; + return p; + }; + + module.exports = p5.RendererGL; + }, + { + '../core/constants': 18, + '../core/main': 24, + '../core/p5.Renderer': 27, + './p5.Camera': 70, + './p5.Matrix': 72, + './p5.Shader': 76, + libtess: 9 + } + ], + 76: [ + function(_dereq_, module, exports) { + /** + * This module defines the p5.Shader class + * @module Lights, Camera + * @submodule Shaders + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + + /** + * Shader class for WEBGL Mode + * @class p5.Shader + * @param {p5.RendererGL} renderer an instance of p5.RendererGL that + * will provide the GL context for this new p5.Shader + * @param {String} vertSrc source code for the vertex shader (as a string) + * @param {String} fragSrc source code for the fragment shader (as a string) + */ + p5.Shader = function(renderer, vertSrc, fragSrc) { + // TODO: adapt this to not take ids, but rather, + // to take the source for a vertex and fragment shader + // to enable custom shaders at some later date + this._renderer = renderer; + this._vertSrc = vertSrc; + this._fragSrc = fragSrc; + this._vertShader = -1; + this._fragShader = -1; + this._glProgram = 0; + this._loadedAttributes = false; + this.attributes = {}; + this._loadedUniforms = false; + this.uniforms = {}; + this._bound = false; + this.samplers = []; + }; + + /** + * Creates, compiles, and links the shader based on its + * sources for the vertex and fragment shaders (provided + * to the constructor). Populates known attributes and + * uniforms from the shader. + * @method init + * @chainable + * @private + */ + p5.Shader.prototype.init = function() { + if (this._glProgram === 0 /* or context is stale? */) { + var gl = this._renderer.GL; + + // @todo: once custom shading is allowed, + // friendly error messages should be used here to share + // compiler and linker errors. + + //set up the shader by + // 1. creating and getting a gl id for the shader program, + // 2. compliling its vertex & fragment sources, + // 3. linking the vertex and fragment shaders + this._vertShader = gl.createShader(gl.VERTEX_SHADER); + //load in our default vertex shader + gl.shaderSource(this._vertShader, this._vertSrc); + gl.compileShader(this._vertShader); + // if our vertex shader failed compilation? + if (!gl.getShaderParameter(this._vertShader, gl.COMPILE_STATUS)) { + console.error( + 'Yikes! An error occurred compiling the vertex shader:' + + gl.getShaderInfoLog(this._vertShader) + ); + + return null; + } + + this._fragShader = gl.createShader(gl.FRAGMENT_SHADER); + //load in our material frag shader + gl.shaderSource(this._fragShader, this._fragSrc); + gl.compileShader(this._fragShader); + // if our frag shader failed compilation? + if (!gl.getShaderParameter(this._fragShader, gl.COMPILE_STATUS)) { + console.error( + 'Darn! An error occurred compiling the fragment shader:' + + gl.getShaderInfoLog(this._fragShader) + ); + + return null; + } + + this._glProgram = gl.createProgram(); + gl.attachShader(this._glProgram, this._vertShader); + gl.attachShader(this._glProgram, this._fragShader); + gl.linkProgram(this._glProgram); + if (!gl.getProgramParameter(this._glProgram, gl.LINK_STATUS)) { + console.error( + 'Snap! Error linking shader program: ' + + gl.getProgramInfoLog(this._glProgram) + ); + } + + this._loadAttributes(); + this._loadUniforms(); + } + return this; + }; + + /** + * Queries the active attributes for this shader and loads + * their names and locations into the attributes array. + * @method _loadAttributes + * @private + */ + p5.Shader.prototype._loadAttributes = function() { + if (this._loadedAttributes) { + return; + } + + this.attributes = {}; + + var gl = this._renderer.GL; + + var numAttributes = gl.getProgramParameter( + this._glProgram, + gl.ACTIVE_ATTRIBUTES + ); + + for (var i = 0; i < numAttributes; ++i) { + var attributeInfo = gl.getActiveAttrib(this._glProgram, i); + var name = attributeInfo.name; + var location = gl.getAttribLocation(this._glProgram, name); + var attribute = {}; + attribute.name = name; + attribute.location = location; + attribute.index = i; + attribute.type = attributeInfo.type; + attribute.size = attributeInfo.size; + this.attributes[name] = attribute; + } + + this._loadedAttributes = true; + }; + + /** + * Queries the active uniforms for this shader and loads + * their names and locations into the uniforms array. + * @method _loadUniforms + * @private + */ + p5.Shader.prototype._loadUniforms = function() { + if (this._loadedUniforms) { + return; + } + + var gl = this._renderer.GL; + + // Inspect shader and cache uniform info + var numUniforms = gl.getProgramParameter(this._glProgram, gl.ACTIVE_UNIFORMS); + + var samplerIndex = 0; + for (var i = 0; i < numUniforms; ++i) { + var uniformInfo = gl.getActiveUniform(this._glProgram, i); + var uniform = {}; + uniform.location = gl.getUniformLocation(this._glProgram, uniformInfo.name); + uniform.size = uniformInfo.size; + var uniformName = uniformInfo.name; + //uniforms thats are arrays have their name returned as + //someUniform[0] which is a bit silly so we trim it + //off here. The size property tells us that its an array + //so we dont lose any information by doing this + if (uniformInfo.size > 1) { + uniformName = uniformName.substring(0, uniformName.indexOf('[0]')); + } + uniform.name = uniformName; + uniform.type = uniformInfo.type; + if (uniform.type === gl.SAMPLER_2D) { + uniform.samplerIndex = samplerIndex; + samplerIndex++; + this.samplers.push(uniform); + } + this.uniforms[uniformName] = uniform; + } + this._loadedUniforms = true; + }; + + p5.Shader.prototype.compile = function() { + // TODO + }; + + /** + * initializes (if needed) and binds the shader program. + * @method bindShader + * @private + */ + p5.Shader.prototype.bindShader = function() { + this.init(); + if (!this._bound) { + this.useProgram(); + this._bound = true; + + this._setMatrixUniforms(); + + this.setUniform('uViewport', this._renderer._viewport); + } + }; + + /** + * @method unbindShader + * @chainable + * @private + */ + p5.Shader.prototype.unbindShader = function() { + if (this._bound) { + this.unbindTextures(); + //this._renderer.GL.useProgram(0); ?? + this._bound = false; + } + return this; + }; + + p5.Shader.prototype.bindTextures = function() { + var gl = this._renderer.GL; + for (var i = 0; i < this.samplers.length; i++) { + var uniform = this.samplers[i]; + var tex = uniform.texture; + if (tex === undefined) { + // user hasn't yet supplied a texture for this slot. + // (or there may not be one--maybe just lighting), + // so we supply a default texture instead. + tex = this._renderer._getEmptyTexture(); + } + gl.activeTexture(gl.TEXTURE0 + uniform.samplerIndex); + tex.bindTexture(); + tex.update(); + gl.uniform1i(uniform.location, uniform.samplerIndex); + } + }; + + p5.Shader.prototype.updateTextures = function() { + for (var i = 0; i < this.samplers.length; i++) { + var uniform = this.samplers[i]; + var tex = uniform.texture; + if (tex) { + tex.update(); + } + } + }; + + p5.Shader.prototype.unbindTextures = function() { + // TODO: migrate stuff from material.js here + // - OR - have material.js define this function + }; + + p5.Shader.prototype._setMatrixUniforms = function() { + this.setUniform('uProjectionMatrix', this._renderer.uPMatrix.mat4); + this.setUniform('uModelViewMatrix', this._renderer.uMVMatrix.mat4); + this.setUniform('uViewMatrix', this._renderer._curCamera.cameraMatrix.mat4); + if (this.uniforms.uNormalMatrix) { + this._renderer.uNMatrix.inverseTranspose(this._renderer.uMVMatrix); + this.setUniform('uNormalMatrix', this._renderer.uNMatrix.mat3); + } + }; + + /** + * @method useProgram + * @chainable + * @private + */ + p5.Shader.prototype.useProgram = function() { + var gl = this._renderer.GL; + gl.useProgram(this._glProgram); + return this; + }; + + /** + * Wrapper around gl.uniform functions. + * As we store uniform info in the shader we can use that + * to do type checking on the supplied data and call + * the appropriate function. + * @method setUniform + * @chainable + * @param {String} uniformName the name of the uniform in the + * shader program + * @param {Object|Number|Boolean|Number[]} data the data to be associated + * with that uniform; type varies (could be a single numerical value, array, + * matrix, or texture / sampler reference) + * + * @example + *
+ * + * // Click within the image to toggle the value of uniforms + * // Note: for an alternative approach to the same example, + * // involving toggling between shaders please refer to: + * // https://p5js.org/reference/#/p5/shader + * + * let grad; + * let showRedGreen = false; + * + * function preload() { + * // note that we are using two instances + * // of the same vertex and fragment shaders + * grad = loadShader('assets/shader.vert', 'assets/shader-gradient.frag'); + * } + * + * function setup() { + * createCanvas(100, 100, WEBGL); + * shader(grad); + * noStroke(); + * } + * + * function draw() { + * // update the offset values for each scenario, + * // moving the "grad" shader in either vertical or + * // horizontal direction each with differing colors + * + * if (showRedGreen === true) { + * grad.setUniform('colorCenter', [1, 0, 0]); + * grad.setUniform('colorBackground', [0, 1, 0]); + * grad.setUniform('offset', [sin(millis() / 2000), 1]); + * } else { + * grad.setUniform('colorCenter', [1, 0.5, 0]); + * grad.setUniform('colorBackground', [0.226, 0, 0.615]); + * grad.setUniform('offset', [0, sin(millis() / 2000) + 1]); + * } + * quad(-1, -1, 1, -1, 1, 1, -1, 1); + * } + * + * function mouseClicked() { + * showRedGreen = !showRedGreen; + * } + * + *
+ * + * @alt + * canvas toggles between a circular gradient of orange and blue vertically. and a circular gradient of red and green moving horizontally when mouse is clicked/pressed. + */ + p5.Shader.prototype.setUniform = function(uniformName, data) { + //@todo update all current gl.uniformXX calls + + var uniform = this.uniforms[uniformName]; + if (!uniform) { + return; + } + + var location = uniform.location; + + var gl = this._renderer.GL; + this.useProgram(); + + switch (uniform.type) { + case gl.BOOL: + if (data === true) { + gl.uniform1i(location, 1); + } else { + gl.uniform1i(location, 0); + } + break; + case gl.INT: + if (uniform.size > 1) { + data.length && gl.uniform1iv(location, data); + } else { + gl.uniform1i(location, data); + } + break; + case gl.FLOAT: + if (uniform.size > 1) { + data.length && gl.uniform1fv(location, data); + } else { + gl.uniform1f(location, data); + } + break; + case gl.FLOAT_MAT3: + gl.uniformMatrix3fv(location, false, data); + break; + case gl.FLOAT_MAT4: + gl.uniformMatrix4fv(location, false, data); + break; + case gl.FLOAT_VEC2: + if (uniform.size > 1) { + data.length && gl.uniform2fv(location, data); + } else { + gl.uniform2f(location, data[0], data[1]); + } + break; + case gl.FLOAT_VEC3: + if (uniform.size > 1) { + data.length && gl.uniform3fv(location, data); + } else { + gl.uniform3f(location, data[0], data[1], data[2]); + } + break; + case gl.FLOAT_VEC4: + if (uniform.size > 1) { + data.length && gl.uniform4fv(location, data); + } else { + gl.uniform4f(location, data[0], data[1], data[2], data[3]); + } + break; + case gl.INT_VEC2: + if (uniform.size > 1) { + data.length && gl.uniform2iv(location, data); + } else { + gl.uniform2i(location, data[0], data[1]); + } + break; + case gl.INT_VEC3: + if (uniform.size > 1) { + data.length && gl.uniform3iv(location, data); + } else { + gl.uniform3i(location, data[0], data[1], data[2]); + } + break; + case gl.INT_VEC4: + if (uniform.size > 1) { + data.length && gl.uniform4iv(location, data); + } else { + gl.uniform4i(location, data[0], data[1], data[2], data[3]); + } + break; + case gl.SAMPLER_2D: + gl.activeTexture(gl.TEXTURE0 + uniform.samplerIndex); + uniform.texture = this._renderer.getTexture(data); + gl.uniform1i(uniform.location, uniform.samplerIndex); + break; + //@todo complete all types + } + return this; + }; + + /* NONE OF THIS IS FAST OR EFFICIENT BUT BEAR WITH ME + * + * these shader "type" query methods are used by various + * facilities of the renderer to determine if changing + * the shader type for the required action (for example, + * do we need to load the default lighting shader if the + * current shader cannot handle lighting?) + * + **/ + + p5.Shader.prototype.isLightShader = function() { + return ( + this.attributes.aNormal !== undefined || + this.uniforms.uUseLighting !== undefined || + this.uniforms.uAmbientLightCount !== undefined || + this.uniforms.uDirectionalLightCount !== undefined || + this.uniforms.uPointLightCount !== undefined || + this.uniforms.uAmbientColor !== undefined || + this.uniforms.uDirectionalColor !== undefined || + this.uniforms.uPointLightLocation !== undefined || + this.uniforms.uPointLightColor !== undefined || + this.uniforms.uLightingDirection !== undefined || + this.uniforms.uSpecular !== undefined + ); + }; + + p5.Shader.prototype.isTextureShader = function() { + return this.samplerIndex > 0; + }; + + p5.Shader.prototype.isColorShader = function() { + return ( + this.attributes.aVertexColor !== undefined || + this.uniforms.uMaterialColor !== undefined + ); + }; + + p5.Shader.prototype.isTexLightShader = function() { + return this.isLightShader() && this.isTextureShader(); + }; + + p5.Shader.prototype.isStrokeShader = function() { + return this.uniforms.uStrokeWeight !== undefined; + }; + + /** + * @method enableAttrib + * @chainable + * @private + */ + p5.Shader.prototype.enableAttrib = function( + attr, + size, + type, + normalized, + stride, + offset + ) { + if (attr) { + if ( + typeof IS_MINIFIED === 'undefined' && + this.attributes[attr.name] !== attr + ) { + console.warn( + 'The attribute "' + + attr.name + + '"passed to enableAttrib does not belong to this shader.' + ); + } + var loc = attr.location; + if (loc !== -1) { + var gl = this._renderer.GL; + gl.enableVertexAttribArray(loc); + gl.vertexAttribPointer( + loc, + size, + type || gl.FLOAT, + normalized || false, + stride || 0, + offset || 0 + ); + } + } + return this; + }; + + module.exports = p5.Shader; + }, + { '../core/main': 24 } + ], + 77: [ + function(_dereq_, module, exports) { + /** + * This module defines the p5.Texture class + * @module Lights, Camera + * @submodule Material + * @for p5 + * @requires core + */ + + 'use strict'; + + var p5 = _dereq_('../core/main'); + var constants = _dereq_('../core/constants'); + + /** + * Texture class for WEBGL Mode + * @private + * @class p5.Texture + * @param {p5.RendererGL} renderer an instance of p5.RendererGL that + * will provide the GL context for this new p5.Texture + * @param {p5.Image|p5.Graphics|p5.Element|p5.MediaElement|ImageData} [obj] the + * object containing the image data to store in the texture. + */ + p5.Texture = function(renderer, obj) { + this._renderer = renderer; + + var gl = this._renderer.GL; + + this.src = obj; + this.glTex = undefined; + this.glTarget = gl.TEXTURE_2D; + this.glFormat = gl.RGBA; + this.mipmaps = false; + this.glMinFilter = gl.LINEAR; + this.glMagFilter = gl.LINEAR; + this.glWrapS = gl.CLAMP_TO_EDGE; + this.glWrapT = gl.CLAMP_TO_EDGE; + + // used to determine if this texture might need constant updating + // because it is a video or gif. + this.isSrcMediaElement = + typeof p5.MediaElement !== 'undefined' && obj instanceof p5.MediaElement; + this._videoPrevUpdateTime = 0; + this.isSrcHTMLElement = + typeof p5.Element !== 'undefined' && + obj instanceof p5.Element && + !(obj instanceof p5.Graphics); + this.isSrcP5Image = obj instanceof p5.Image; + this.isSrcP5Graphics = obj instanceof p5.Graphics; + this.isImageData = typeof ImageData !== 'undefined' && obj instanceof ImageData; + + var textureData = this._getTextureDataFromSource(); + this.width = textureData.width; + this.height = textureData.height; + + this.init(textureData); + return this; + }; + + p5.Texture.prototype._getTextureDataFromSource = function() { + var textureData; + if (this.isSrcP5Image) { + // param is a p5.Image + textureData = this.src.canvas; + } else if ( + this.isSrcMediaElement || + this.isSrcP5Graphics || + this.isSrcHTMLElement + ) { + // if param is a video HTML element + textureData = this.src.elt; + } else if (this.isImageData) { + textureData = this.src; + } + return textureData; + }; + + /** + * Initializes common texture parameters, creates a gl texture, + * tries to upload the texture for the first time if data is + * already available. + * @private + * @method init + */ + p5.Texture.prototype.init = function(data) { + var gl = this._renderer.GL; + this.glTex = gl.createTexture(); + + this.glWrapS = this._renderer.textureWrapX; + this.glWrapT = this._renderer.textureWrapY; + + this.setWrapMode(this.glWrapS, this.glWrapT); + this.bindTexture(); + + //gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, this.glMagFilter); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, this.glMinFilter); + + if ( + this.width === 0 || + this.height === 0 || + (this.isSrcMediaElement && !this.src.loadedmetadata) + ) { + // assign a 1x1 empty texture initially, because data is not yet ready, + // so that no errors occur in gl console! + var tmpdata = new Uint8Array([1, 1, 1, 1]); + gl.texImage2D( + this.glTarget, + 0, + gl.RGBA, + 1, + 1, + 0, + this.glFormat, + gl.UNSIGNED_BYTE, + tmpdata + ); + } else { + // data is ready: just push the texture! + gl.texImage2D( + this.glTarget, + 0, + this.glFormat, + this.glFormat, + gl.UNSIGNED_BYTE, + data + ); + } + }; + + /** + * Checks if the source data for this texture has changed (if it's + * easy to do so) and reuploads the texture if necessary. If it's not + * possible or to expensive to do a calculation to determine wheter or + * not the data has occurred, this method simply re-uploads the texture. + * @method update + */ + p5.Texture.prototype.update = function() { + var data = this.src; + if (data.width === 0 || data.height === 0) { + return false; // nothing to do! + } + + var textureData = this._getTextureDataFromSource(); + var updated = false; + + var gl = this._renderer.GL; + // pull texture from data, make sure width & height are appropriate + if (textureData.width !== this.width || textureData.height !== this.height) { + updated = true; + + // make sure that if the width and height of this.src have changed + // for some reason, we update our metadata and upload the texture again + this.width = textureData.width; + this.height = textureData.height; + + if (this.isSrcP5Image) { + data.setModified(false); + } else if (this.isSrcMediaElement || this.isSrcHTMLElement) { + // on the first frame the metadata comes in, the size will be changed + // from 0 to actual size, but pixels may not be available. + // flag for update in a future frame. + // if we don't do this, a paused video, for example, may not + // send the first frame to texture memory. + data.setModified(true); + } + } else if (this.isSrcP5Image) { + // for an image, we only update if the modified field has been set, + // for example, by a call to p5.Image.set + if (data.isModified()) { + updated = true; + data.setModified(false); + } + } else if (this.isSrcMediaElement) { + // for a media element (video), we'll check if the current time in + // the video frame matches the last time. if it doesn't match, the + // video has advanced or otherwise been taken to a new frame, + // and we need to upload it. + if (data.isModified()) { + // p5.MediaElement may have also had set/updatePixels, etc. called + // on it and should be updated, or may have been set for the first + // time! + updated = true; + data.setModified(false); + } else if (data.loadedmetadata) { + // if the meta data has been loaded, we can ask the video + // what it's current position (in time) is. + if (this._videoPrevUpdateTime !== data.time()) { + // update the texture in gpu mem only if the current + // video timestamp does not match the timestamp of the last + // time we uploaded this texture (and update the time we + // last uploaded, too) + this._videoPrevUpdateTime = data.time(); + updated = true; + } + } + } else if (this.isImageData) { + if (data._dirty) { + data._dirty = false; + updated = true; + } + } else { + /* data instanceof p5.Graphics, probably */ + // there is not enough information to tell if the texture can be + // conditionally updated; so to be safe, we just go ahead and upload it. + updated = true; + } + + if (updated) { + this.bindTexture(); + gl.texImage2D( + this.glTarget, + 0, + this.glFormat, + this.glFormat, + gl.UNSIGNED_BYTE, + textureData + ); + } + + return updated; + }; + + /** + * Binds the texture to the appropriate GL target. + * @method bindTexture + */ + p5.Texture.prototype.bindTexture = function() { + // bind texture using gl context + glTarget and + // generated gl texture object + var gl = this._renderer.GL; + gl.bindTexture(this.glTarget, this.glTex); + + return this; + }; + + /** + * Unbinds the texture from the appropriate GL target. + * @method unbindTexture + */ + p5.Texture.prototype.unbindTexture = function() { + // unbind per above, disable texturing on glTarget + var gl = this._renderer.GL; + gl.bindTexture(this.glTarget, null); + }; + + /** + * Sets how a texture is be interpolated when upscaled or downscaled. + * Nearest filtering uses nearest neighbor scaling when interpolating + * Linear filtering uses WebGL's linear scaling when interpolating + * @method setInterpolation + * @param {String} downScale Specifies the texture filtering when + * textures are shrunk. Options are LINEAR or NEAREST + * @param {String} upScale Specifies the texture filtering when + * textures are magnified. Options are LINEAR or NEAREST + * @todo implement mipmapping filters + */ + p5.Texture.prototype.setInterpolation = function(downScale, upScale) { + var gl = this._renderer.GL; + + if (downScale === constants.NEAREST) { + this.glMinFilter = gl.NEAREST; + } else { + this.glMinFilter = gl.LINEAR; + } + + if (upScale === constants.NEAREST) { + this.glMagFilter = gl.NEAREST; + } else { + this.glMagFilter = gl.LINEAR; + } + + this.bindTexture(); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, this.glMinFilter); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, this.glMagFilter); + this.unbindTexture(); + }; + + /** + * Sets the texture wrapping mode. This controls how textures behave + * when their uv's go outside of the 0 - 1 range. There are three options: + * CLAMP, REPEAT, and MIRROR. REPEAT & MIRROR are only available if the texture + * is a power of two size (128, 256, 512, 1024, etc.). + * @method setWrapMode + * @param {String} wrapX Controls the horizontal texture wrapping behavior + * @param {String} wrapY Controls the vertical texture wrapping behavior + */ + p5.Texture.prototype.setWrapMode = function(wrapX, wrapY) { + var gl = this._renderer.GL; + + // for webgl 1 we need to check if the texture is power of two + // if it isn't we will set the wrap mode to CLAMP + // webgl2 will support npot REPEAT and MIRROR but we don't check for it yet + var isPowerOfTwo = function isPowerOfTwo(x) { + return (x & (x - 1)) === 0; + }; + + var widthPowerOfTwo = isPowerOfTwo(this.width); + var heightPowerOfTwo = isPowerOfTwo(this.height); + + if (wrapX === constants.REPEAT) { + if (widthPowerOfTwo && heightPowerOfTwo) { + this.glWrapS = gl.REPEAT; + } else { + console.warn( + 'You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead' + ); + + this.glWrapS = gl.CLAMP_TO_EDGE; + } + } else if (wrapX === constants.MIRROR) { + if (widthPowerOfTwo && heightPowerOfTwo) { + this.glWrapS = gl.MIRRORED_REPEAT; + } else { + console.warn( + 'You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead' + ); + + this.glWrapS = gl.CLAMP_TO_EDGE; + } + } else { + // falling back to default if didn't get a proper mode + this.glWrapS = gl.CLAMP_TO_EDGE; + } + + if (wrapY === constants.REPEAT) { + if (widthPowerOfTwo && heightPowerOfTwo) { + this.glWrapT = gl.REPEAT; + } else { + console.warn( + 'You tried to set the wrap mode to REPEAT but the texture size is not a power of two. Setting to CLAMP instead' + ); + + this.glWrapT = gl.CLAMP_TO_EDGE; + } + } else if (wrapY === constants.MIRROR) { + if (widthPowerOfTwo && heightPowerOfTwo) { + this.glWrapT = gl.MIRRORED_REPEAT; + } else { + console.warn( + 'You tried to set the wrap mode to MIRROR but the texture size is not a power of two. Setting to CLAMP instead' + ); + + this.glWrapT = gl.CLAMP_TO_EDGE; + } + } else { + // falling back to default if didn't get a proper mode + this.glWrapT = gl.CLAMP_TO_EDGE; + } + + this.bindTexture(); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, this.glWrapS); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, this.glWrapT); + this.unbindTexture(); + }; + + module.exports = p5.Texture; + }, + { '../core/constants': 18, '../core/main': 24 } + ], + 78: [ + function(_dereq_, module, exports) { + 'use strict'; + + var p5 = _dereq_('../core/main'); + var constants = _dereq_('../core/constants'); + _dereq_('./p5.Shader'); + _dereq_('./p5.RendererGL.Retained'); + + // Text/Typography + // @TODO: + p5.RendererGL.prototype._applyTextProperties = function() { + //@TODO finish implementation + //console.error('text commands not yet implemented in webgl'); + }; + + p5.RendererGL.prototype.textWidth = function(s) { + if (this._isOpenType()) { + return this._textFont._textWidth(s, this._textSize); + } + + return 0; // TODO: error + }; + + // rendering constants + + // the number of rows/columns dividing each glyph + var charGridWidth = 9; + var charGridHeight = charGridWidth; + + // size of the image holding the bezier stroke info + var strokeImageWidth = 64; + var strokeImageHeight = 64; + + // size of the image holding the stroke indices for each row/col + var gridImageWidth = 64; + var gridImageHeight = 64; + + // size of the image holding the offset/length of each row/col stripe + var cellImageWidth = 64; + var cellImageHeight = 64; + + /** + * @private + * @class ImageInfos + * @param {Integer} width + * @param {Integer} height + * + * the ImageInfos class holds a list of ImageDatas of a given size. + */ + function ImageInfos(width, height) { + this.width = width; + this.height = height; + this.infos = []; // the list of images + + /** + * + * @method findImage + * @param {Integer} space + * @return {Object} contains the ImageData, and pixel index into that + * ImageData where the free space was allocated. + * + * finds free space of a given size in the ImageData list + */ + this.findImage = function(space) { + var imageSize = this.width * this.height; + if (space > imageSize) throw new Error('font is too complex to render in 3D'); + + // search through the list of images, looking for one with + // anough unused space. + var imageInfo, imageData; + for (var ii = this.infos.length - 1; ii >= 0; --ii) { + var imageInfoTest = this.infos[ii]; + if (imageInfoTest.index + space < imageSize) { + // found one + imageInfo = imageInfoTest; + imageData = imageInfoTest.imageData; + break; + } + } + + if (!imageInfo) { + try { + // create a new image + imageData = new ImageData(this.width, this.height); + } catch (err) { + // for browsers that don't support ImageData constructors (ie IE11) + // create an ImageData using the old method + var canvas = document.getElementsByTagName('canvas')[0]; + var created = !canvas; + if (!canvas) { + // create a temporary canvas + canvas = document.createElement('canvas'); + canvas.style.display = 'none'; + document.body.appendChild(canvas); + } + var ctx = canvas.getContext('2d'); + if (ctx) { + imageData = ctx.createImageData(this.width, this.height); + } + if (created) { + // distroy the temporary canvas, if necessary + document.body.removeChild(canvas); + } + } + // construct & dd the new image info + imageInfo = { index: 0, imageData: imageData }; + this.infos.push(imageInfo); + } + + var index = imageInfo.index; + imageInfo.index += space; // move to the start of the next image + imageData._dirty = true; + return { imageData: imageData, index: index }; + }; + } + + /** + * @function setPixel + * @param {Object} imageInfo + * @param {Number} r + * @param {Number} g + * @param {Number} b + * @param {Number} a + * + * writes the next pixel into an indexed ImageData + */ + function setPixel(imageInfo, r, g, b, a) { + var imageData = imageInfo.imageData; + var pixels = imageData.data; + var index = imageInfo.index++ * 4; + pixels[index++] = r; + pixels[index++] = g; + pixels[index++] = b; + pixels[index++] = a; + } + + var SQRT3 = Math.sqrt(3); + + /** + * @private + * @class FontInfo + * @param {Object} font an opentype.js font object + * + * contains cached images and glyph information for an opentype font + */ + var FontInfo = function FontInfo(font) { + this.font = font; + // the bezier curve coordinates + this.strokeImageInfos = new ImageInfos(strokeImageWidth, strokeImageHeight); + // lists of curve indices for each row/column slice + this.colDimImageInfos = new ImageInfos(gridImageWidth, gridImageHeight); + this.rowDimImageInfos = new ImageInfos(gridImageWidth, gridImageHeight); + // the offset & length of each row/col slice in the glyph + this.colCellImageInfos = new ImageInfos(cellImageWidth, cellImageHeight); + this.rowCellImageInfos = new ImageInfos(cellImageWidth, cellImageHeight); + + // the cached information for each glyph + this.glyphInfos = {}; + + /** + * @method getGlyphInfo + * @param {Glyph} glyph the x positions of points in the curve + * @returns {Object} the glyphInfo for that glyph + * + * calculates rendering info for a glyph, including the curve information, + * row & column stripes compiled into textures. + */ + + this.getGlyphInfo = function(glyph) { + // check the cache + var gi = this.glyphInfos[glyph.index]; + if (gi) return gi; + + // get the bounding box of the glyph from opentype.js + var bb = glyph.getBoundingBox(); + var xMin = bb.x1; + var yMin = bb.y1; + var gWidth = bb.x2 - xMin; + var gHeight = bb.y2 - yMin; + var cmds = glyph.path.commands; + // don't bother rendering invisible glyphs + if (gWidth === 0 || gHeight === 0 || !cmds.length) { + return (this.glyphInfos[glyph.index] = {}); + } + + var i; + var strokes = []; // the strokes in this glyph + var rows = []; // the indices of strokes in each row + var cols = []; // the indices of strokes in each column + for (i = charGridWidth - 1; i >= 0; --i) { + cols.push([]); + } + for (i = charGridHeight - 1; i >= 0; --i) { + rows.push([]); + } + + /** + * @function push + * @param {Number[]} xs the x positions of points in the curve + * @param {Number[]} ys the y positions of points in the curve + * @param {Object} v the curve information + * + * adds a curve to the rows & columns that it intersects with + */ + function push(xs, ys, v) { + var index = strokes.length; // the index of this stroke + strokes.push(v); // add this stroke to the list + + /** + * @function minMax + * @param {Number[]} rg the list of values to compare + * @param {Number} min the initial minimum value + * @param {Number} max the initial maximum value + * + * find the minimum & maximum value in a list of values + */ + function minMax(rg, min, max) { + for (var i = rg.length; i-- > 0; ) { + var v = rg[i]; + if (min > v) min = v; + if (max < v) max = v; + } + return { min: min, max: max }; + } + + // loop through the rows & columns that the curve intersects + // adding the curve to those slices + var mmX = minMax(xs, 1, 0); + var ixMin = Math.max(Math.floor(mmX.min * charGridWidth), 0); + var ixMax = Math.min(Math.ceil(mmX.max * charGridWidth), charGridWidth); + for (var iCol = ixMin; iCol < ixMax; ++iCol) { + cols[iCol].push(index); + } + + var mmY = minMax(ys, 1, 0); + var iyMin = Math.max(Math.floor(mmY.min * charGridHeight), 0); + var iyMax = Math.min(Math.ceil(mmY.max * charGridHeight), charGridHeight); + for (var iRow = iyMin; iRow < iyMax; ++iRow) { + rows[iRow].push(index); + } + } + + /** + * @function clamp + * @param {Number} v the value to clamp + * @param {Number} min the minimum value + * @param {Number} max the maxmimum value + * + * clamps a value between a minimum & maximum value + */ + function clamp(v, min, max) { + if (v < min) return min; + if (v > max) return max; + return v; + } + + /** + * @function byte + * @param {Number} v the value to scale + * + * converts a floating-point number in the range 0-1 to a byte 0-255 + */ + function byte(v) { + return clamp(255 * v, 0, 255); + } + + /** + * @private + * @class Cubic + * @param {Number} p0 the start point of the curve + * @param {Number} c0 the first control point + * @param {Number} c1 the second control point + * @param {Number} p1 the end point + * + * a cubic curve + */ + function Cubic(p0, c0, c1, p1) { + this.p0 = p0; + this.c0 = c0; + this.c1 = c1; + this.p1 = p1; + + /** + * @method toQuadratic + * @return {Object} the quadratic approximation + * + * converts the cubic to a quadtratic approximation by + * picking an appropriate quadratic control point + */ + this.toQuadratic = function() { + return { + x: this.p0.x, + y: this.p0.y, + x1: this.p1.x, + y1: this.p1.y, + cx: ((this.c0.x + this.c1.x) * 3 - (this.p0.x + this.p1.x)) / 4, + cy: ((this.c0.y + this.c1.y) * 3 - (this.p0.y + this.p1.y)) / 4 + }; + }; + + /** + * @method quadError + * @return {Number} the error + * + * calculates the magnitude of error of this curve's + * quadratic approximation. + */ + this.quadError = function() { + return ( + p5.Vector.sub( + p5.Vector.sub(this.p1, this.p0), + p5.Vector.mult(p5.Vector.sub(this.c1, this.c0), 3) + ).mag() / 2 + ); + }; + + /** + * @method split + * @param {Number} t the value (0-1) at which to split + * @return {Cubic} the second part of the curve + * + * splits the cubic into two parts at a point 't' along the curve. + * this cubic keeps its start point and its end point becomes the + * point at 't'. the 'end half is returned. + */ + this.split = function(t) { + var m1 = p5.Vector.lerp(this.p0, this.c0, t); + var m2 = p5.Vector.lerp(this.c0, this.c1, t); + var mm1 = p5.Vector.lerp(m1, m2, t); + + this.c1 = p5.Vector.lerp(this.c1, this.p1, t); + this.c0 = p5.Vector.lerp(m2, this.c1, t); + var pt = p5.Vector.lerp(mm1, this.c0, t); + var part1 = new Cubic(this.p0, m1, mm1, pt); + this.p0 = pt; + return part1; + }; + + /** + * @method splitInflections + * @return {Cubic[]} the non-inflecting pieces of this cubic + * + * returns an array containing 0, 1 or 2 cubics split resulting + * from splitting this cubic at its inflection points. + * this cubic is (potentially) altered and returned in the list. + */ + this.splitInflections = function() { + var a = p5.Vector.sub(this.c0, this.p0); + var b = p5.Vector.sub(p5.Vector.sub(this.c1, this.c0), a); + var c = p5.Vector.sub( + p5.Vector.sub(p5.Vector.sub(this.p1, this.c1), a), + p5.Vector.mult(b, 2) + ); + + var cubics = []; + + // find the derivative coefficients + var A = b.x * c.y - b.y * c.x; + if (A !== 0) { + var B = a.x * c.y - a.y * c.x; + var C = a.x * b.y - a.y * b.x; + var disc = B * B - 4 * A * C; + if (disc >= 0) { + if (A < 0) { + A = -A; + B = -B; + C = -C; + } + + var Q = Math.sqrt(disc); + var t0 = (-B - Q) / (2 * A); // the first inflection point + var t1 = (-B + Q) / (2 * A); // the second inflection point + + // test if the first inflection point lies on the curve + if (t0 > 0 && t0 < 1) { + // split at the first inflection point + cubics.push(this.split(t0)); + // scale t2 into the second part + t1 = 1 - (1 - t1) / (1 - t0); + } + + // test if the second inflection point lies on the curve + if (t1 > 0 && t1 < 1) { + // split at the second inflection point + cubics.push(this.split(t1)); + } + } + } + + cubics.push(this); + return cubics; + }; + } + + /** + * @function cubicToQuadratics + * @param {Number} x0 + * @param {Number} y0 + * @param {Number} cx0 + * @param {Number} cy0 + * @param {Number} cx1 + * @param {Number} cy1 + * @param {Number} x1 + * @param {Number} y1 + * @returns {Cubic[]} an array of cubics whose quadratic approximations + * closely match the civen cubic. + * + * converts a cubic curve to a list of quadratics. + */ + function cubicToQuadratics(x0, y0, cx0, cy0, cx1, cy1, x1, y1) { + // create the Cubic object and split it at its inflections + var cubics = new Cubic( + new p5.Vector(x0, y0), + new p5.Vector(cx0, cy0), + new p5.Vector(cx1, cy1), + new p5.Vector(x1, y1) + ).splitInflections(); + + var qs = []; // the final list of quadratics + var precision = 30 / SQRT3; + + // for each of the non-inflected pieces of the original cubic + for (var i = 0; i < cubics.length; i++) { + var cubic = cubics[i]; + + // the cubic is iteratively split in 3 pieces: + // the first piece is accumulated in 'qs', the result. + // the last piece is accumulated in 'tail', temporarily. + // the middle piece is repeatedly split again, while necessary. + var tail = []; + + var t3; + for (;;) { + // calculate this cubic's precision + t3 = precision / cubic.quadError(); + if (t3 >= 0.5 * 0.5 * 0.5) { + break; // not too bad, we're done + } + + // find a split point based on the error + var t = Math.pow(t3, 1.0 / 3.0); + // split the cubic in 3 + var start = cubic.split(t); + var middle = cubic.split(1 - t / (1 - t)); + + qs.push(start); // the first part + tail.push(cubic); // the last part + cubic = middle; // iterate on the middle piece + } + + if (t3 < 1) { + // a little excess error, split the middle in two + qs.push(cubic.split(0.5)); + } + // add the middle piece to the result + qs.push(cubic); + + // finally add the tail, reversed, onto the result + Array.prototype.push.apply(qs, tail.reverse()); + } + + return qs; + } + + /** + * @function pushLine + * @param {Number} x0 + * @param {Number} y0 + * @param {Number} x1 + * @param {Number} y1 + * + * add a straight line to the row/col grid of a glyph + */ + function pushLine(x0, y0, x1, y1) { + var mx = (x0 + x1) / 2; + var my = (y0 + y1) / 2; + push([x0, x1], [y0, y1], { x: x0, y: y0, cx: mx, cy: my }); + } + + /** + * @function samePoint + * @param {Number} x0 + * @param {Number} y0 + * @param {Number} x1 + * @param {Number} y1 + * @return {Boolean} true if the two points are sufficiently close + * + * tests if two points are close enough to be considered the same + */ + function samePoint(x0, y0, x1, y1) { + return Math.abs(x1 - x0) < 0.00001 && Math.abs(y1 - y0) < 0.00001; + } + + var x0, y0, xs, ys; + for (var iCmd = 0; iCmd < cmds.length; ++iCmd) { + var cmd = cmds[iCmd]; + // scale the coordinates to the range 0-1 + var x1 = (cmd.x - xMin) / gWidth; + var y1 = (cmd.y - yMin) / gHeight; + + // don't bother if this point is the same as the last + if (samePoint(x0, y0, x1, y1)) continue; + + switch (cmd.type) { + case 'M': // move + xs = x1; + ys = y1; + break; + case 'L': // line + pushLine(x0, y0, x1, y1); + break; + case 'Q': // quadratic + var cx = (cmd.x1 - xMin) / gWidth; + var cy = (cmd.y1 - yMin) / gHeight; + push([x0, x1, cx], [y0, y1, cy], { x: x0, y: y0, cx: cx, cy: cy }); + break; + case 'Z': // end + if (!samePoint(x0, y0, xs, ys)) { + // add an extra line closing the loop, if necessary + pushLine(x0, y0, xs, ys); + strokes.push({ x: xs, y: ys }); + } else { + strokes.push({ x: x0, y: y0 }); + } + break; + case 'C': // cubic + var cx1 = (cmd.x1 - xMin) / gWidth; + var cy1 = (cmd.y1 - yMin) / gHeight; + var cx2 = (cmd.x2 - xMin) / gWidth; + var cy2 = (cmd.y2 - yMin) / gHeight; + var qs = cubicToQuadratics(x0, y0, cx1, cy1, cx2, cy2, x1, y1); + for (var iq = 0; iq < qs.length; iq++) { + var q = qs[iq].toQuadratic(); + push([q.x, q.x1, q.cx], [q.y, q.y1, q.cy], q); + } + break; + default: + throw new Error('unknown command type: ' + cmd.type); + } + + x0 = x1; + y0 = y1; + } + + // allocate space for the strokes + var strokeCount = strokes.length; + var strokeImageInfo = this.strokeImageInfos.findImage(strokeCount); + var strokeOffset = strokeImageInfo.index; + + // fill the stroke image + for (var il = 0; il < strokeCount; ++il) { + var s = strokes[il]; + setPixel(strokeImageInfo, byte(s.x), byte(s.y), byte(s.cx), byte(s.cy)); + } + + /** + * @function layout + * @param {Number[][]} dim + * @param {ImageInfo[]} dimImageInfos + * @param {ImageInfo[]} cellImageInfos + * @return {Object} + * + * lays out the curves in a dimension (row or col) into two + * images, one for the indices of the curves themselves, and + * one containing the offset and length of those index spans. + */ + function layout(dim, dimImageInfos, cellImageInfos) { + var dimLength = dim.length; // the number of slices in this dimension + var dimImageInfo = dimImageInfos.findImage(dimLength); + var dimOffset = dimImageInfo.index; + // calculate the total number of stroke indices in this dimension + var totalStrokes = 0; + for (var id = 0; id < dimLength; ++id) { + totalStrokes += dim[id].length; + } + + // allocate space for the stroke indices + var cellImageInfo = cellImageInfos.findImage(totalStrokes); + + // for each slice in the glyph + for (var i = 0; i < dimLength; ++i) { + var strokeIndices = dim[i]; + var strokeCount = strokeIndices.length; + var cellLineIndex = cellImageInfo.index; + + // write the offset and count into the glyph slice image + setPixel( + dimImageInfo, + cellLineIndex >> 7, + cellLineIndex & 0x7f, + strokeCount >> 7, + strokeCount & 0x7f + ); + + // for each stroke index in that slice + for (var iil = 0; iil < strokeCount; ++iil) { + // write the stroke index into the slice's image + var strokeIndex = strokeIndices[iil] + strokeOffset; + setPixel(cellImageInfo, strokeIndex >> 7, strokeIndex & 0x7f, 0, 0); + } + } + + return { + cellImageInfo: cellImageInfo, + dimOffset: dimOffset, + dimImageInfo: dimImageInfo + }; + } + + // initialize the info for this glyph + gi = this.glyphInfos[glyph.index] = { + glyph: glyph, + uGlyphRect: [bb.x1, -bb.y1, bb.x2, -bb.y2], + strokeImageInfo: strokeImageInfo, + strokes: strokes, + colInfo: layout(cols, this.colDimImageInfos, this.colCellImageInfos), + rowInfo: layout(rows, this.rowDimImageInfos, this.rowCellImageInfos) + }; + + gi.uGridOffset = [gi.colInfo.dimOffset, gi.rowInfo.dimOffset]; + return gi; + }; + }; + + p5.RendererGL.prototype._renderText = function(p, line, x, y, maxY) { + if (!this._textFont || typeof this._textFont === 'string') { + console.log( + 'WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.' + ); + + return; + } + if (y >= maxY || !this._doFill) { + return; // don't render lines beyond our maxY position + } + + if (!this._isOpenType()) { + console.log('WEBGL: only opentype fonts are supported'); + return p; + } + + p.push(); // fix to #803 + + // remember this state, so it can be restored later + var doStroke = this._doStroke; + var drawMode = this.drawMode; + + this._doStroke = false; + this.drawMode = constants.TEXTURE; + + // get the cached FontInfo object + var font = this._textFont.font; + var fontInfo = this._textFont._fontInfo; + if (!fontInfo) { + fontInfo = this._textFont._fontInfo = new FontInfo(font); + } + + // calculate the alignment and move/scale the view accordingly + var pos = this._textFont._handleAlignment(this, line, x, y); + var fontSize = this._textSize; + var scale = fontSize / font.unitsPerEm; + this.translate(pos.x, pos.y, 0); + this.scale(scale, scale, 1); + + // initialize the font shader + var gl = this.GL; + var initializeShader = !this._defaultFontShader; + var sh = this._getFontShader(); + sh.init(); + sh.bindShader(); // first time around, bind the shader fully + + if (initializeShader) { + // these are constants, really. just initialize them one-time. + sh.setUniform('uGridImageSize', [gridImageWidth, gridImageHeight]); + sh.setUniform('uCellsImageSize', [cellImageWidth, cellImageHeight]); + sh.setUniform('uStrokeImageSize', [strokeImageWidth, strokeImageHeight]); + sh.setUniform('uGridSize', [charGridWidth, charGridHeight]); + } + this._applyColorBlend(this.curFillColor); + + var g = this.gHash['glyph']; + if (!g) { + // create the geometry for rendering a quad + var geom = (this._textGeom = new p5.Geometry(1, 1, function() { + for (var i = 0; i <= 1; i++) { + for (var j = 0; j <= 1; j++) { + this.vertices.push(new p5.Vector(j, i, 0)); + this.uvs.push(j, i); + } + } + })); + geom.computeFaces().computeNormals(); + g = this.createBuffers('glyph', geom); + } + + // bind the shader buffers + this._prepareBuffers(g, sh, p5.RendererGL._textBuffers); + this._bindBuffer(g.indexBuffer, gl.ELEMENT_ARRAY_BUFFER); + + // this will have to do for now... + sh.setUniform('uMaterialColor', this.curFillColor); + + try { + var dx = 0; // the x position in the line + var glyphPrev = null; // the previous glyph, used for kerning + // fetch the glyphs in the line of text + var glyphs = font.stringToGlyphs(line); + for (var ig = 0; ig < glyphs.length; ++ig) { + var glyph = glyphs[ig]; + // kern + if (glyphPrev) dx += font.getKerningValue(glyphPrev, glyph); + + var gi = fontInfo.getGlyphInfo(glyph); + if (gi.uGlyphRect) { + var rowInfo = gi.rowInfo; + var colInfo = gi.colInfo; + sh.setUniform('uSamplerStrokes', gi.strokeImageInfo.imageData); + sh.setUniform('uSamplerRowStrokes', rowInfo.cellImageInfo.imageData); + sh.setUniform('uSamplerRows', rowInfo.dimImageInfo.imageData); + sh.setUniform('uSamplerColStrokes', colInfo.cellImageInfo.imageData); + sh.setUniform('uSamplerCols', colInfo.dimImageInfo.imageData); + sh.setUniform('uGridOffset', gi.uGridOffset); + sh.setUniform('uGlyphRect', gi.uGlyphRect); + sh.setUniform('uGlyphOffset', dx); + + sh.bindTextures(); // afterwards, only textures need updating + + // draw it + gl.drawElements(gl.TRIANGLES, 6, this.GL.UNSIGNED_SHORT, 0); + } + dx += glyph.advanceWidth; + glyphPrev = glyph; + } + } finally { + // clean up + sh.unbindShader(); + + this._doStroke = doStroke; + this.drawMode = drawMode; + + p.pop(); + } + + this._pixelsState._pixelsDirty = true; + return p; + }; + }, + { + '../core/constants': 18, + '../core/main': 24, + './p5.RendererGL.Retained': 74, + './p5.Shader': 76 + } + ] + }, + {}, + [13] + )(13); +}); diff --git a/Games/Fruit_Ninja/p5/p5.min.js b/Games/Fruit_Ninja/p5/p5.min.js index 464714368f..e9e4b45b50 100644 --- a/Games/Fruit_Ninja/p5/p5.min.js +++ b/Games/Fruit_Ninja/p5/p5.min.js @@ -1,3 +1,3 @@ -/*! p5.js v0.9.0 July 01, 2019 */ - +/*! p5.js v0.9.0 July 01, 2019 */ + !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).p5=e()}}(function(){return function o(a,s,h){function l(t,e){if(!s[t]){if(!a[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(u)return u(t,!0);var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}var n=s[t]={exports:{}};a[t][0].call(n.exports,function(e){return l(a[t][1][e]||e)},n,n.exports,o,a,s,h)}return s[t].exports}for(var u="function"==typeof require&&require,e=0;e>16&255,o[a++]=t>>8&255,o[a++]=255&t;var l,u;2===n&&(t=c[e.charCodeAt(h)]<<2|c[e.charCodeAt(h+1)]>>4,o[a++]=255&t);1===n&&(t=c[e.charCodeAt(h)]<<10|c[e.charCodeAt(h+1)]<<4|c[e.charCodeAt(h+2)]>>2,o[a++]=t>>8&255,o[a++]=255&t);return o},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,n=[],o=0,a=r-i;o>2]+s[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"="));return n.join("")};for(var s=[],c=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=i.length;n>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return o.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},{}],2:[function(e,t,r){},{}],3:[function(e,t,r){"use strict";var i=e("base64-js"),o=e("ieee754");r.Buffer=c,r.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},r.INSPECT_MAX_BYTES=50;var n=2147483647;function a(e){if(n>>1;case"base64":return A(e).length;default:if(n)return i?-1:k(e).length;t=(""+t).toLowerCase(),n=!0}}function f(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function m(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):2147483647=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:v(e,t,r,i,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,i,n){var o,a=1,s=e.length,h=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,h/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var u=-1;for(o=r;o>>10&1023|55296),u=56320|1023&u),i.push(u),n+=c}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r="",i=0;for(;ithis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return w(this,t,r);case"latin1":case"binary":return S(this,t,r);case"base64":return b(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),""},c.prototype.compare=function(e,t,r,i,n){if(O(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(i>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),h=this.slice(i,n),l=e.slice(t,r),u=0;u>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||nthis.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o,a,s,h,l,u,c,p,d,f=!1;;)switch(i){case"hex":return g(this,e,t,r);case"utf8":case"utf-8":return p=t,d=r,U(k(e,(c=this).length-p),c,p,d);case"ascii":return y(this,e,t,r);case"latin1":case"binary":return y(this,e,t,r);case"base64":return h=this,l=t,u=r,U(A(e),h,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=t,s=r,U(function(e,t){for(var r,i,n,o=[],a=0;a>8,n=r%256,o.push(n),o.push(i);return o}(e,(o=this).length-a),o,a,s);default:if(f)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),f=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;ne.length)throw new RangeError("Index out of range")}function R(e,t,r,i,n,o){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(e,t,r,i,n){return t=+t,r>>>=0,n||R(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function D(e,t,r,i,n){return t=+t,r>>>=0,n||R(e,0,r,8),o.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r>>=0,t>>>=0,r||E(e,t,this.length);for(var i=this[e],n=1,o=0;++o>>=0,t>>>=0,r||E(e,t,this.length);for(var i=this[e+--t],n=1;0>>=0,t||E(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var i=this[e],n=1,o=0;++o>>=0,t>>>=0,r||E(e,t,this.length);for(var i=t,n=1,o=this[e+--i];0>>=0,t||E(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||E(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||E(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||E(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||E(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||E(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||E(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){(e=+e,t>>>=0,r>>>=0,i)||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,i)||C(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[t+n]=255&e;0<=--n&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),0=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function A(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(P,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,r,i){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function O(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function B(e){return e!=e}},{"base64-js":1,ieee754:7}],4:[function(z,r,i){(function(F,V){var e,t;e=this,t=function(){"use strict";function l(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,s=function(e,t){p[i]=e,p[i+1]=t,2===(i+=2)&&(n?n(d):y())};var e="undefined"!=typeof window?window:void 0,o=e||{},a=o.MutationObserver||o.WebKitMutationObserver,h="undefined"==typeof self&&void 0!==F&&"[object process]"==={}.toString.call(F),u="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(d,1)}}var p=new Array(1e3);function d(){for(var e=0;e>1,u=-7,c=r?n-1:0,p=r?-1:1,d=e[t+c];for(c+=p,o=d&(1<<-u)-1,d>>=-u,u+=s;0>=-u,u+=i;0>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(h=Math.pow(2,-a))<1&&(a--,h*=2),2<=(t+=1<=a+c?p/h:p*Math.pow(2,1-c))*h&&(a++,h/=2),u<=a+c?(s=0,a=u):1<=a+c?(s=(t*h-1)*Math.pow(2,n),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&s,d+=f,s/=256,n-=8);for(a=a<Math.abs(e[0])&&(t=1),Math.abs(e[2])>Math.abs(e[t])&&(t=2),t}var C=4e150;function R(e,t){e.f+=t.f,e.b.f+=t.b.f}function l(e,t,r){return e=e.a,t=t.a,r=r.a,t.b.a===e?r.b.a===e?g(t.a,r.a)?b(r.b.a,t.a,r.a)<=0:0<=b(t.b.a,r.a,t.a):b(r.b.a,e,r.a)<=0:r.b.a===e?0<=b(t.b.a,e,t.a):(t=y(t.b.a,e,t.a),(e=y(r.b.a,e,r.a))<=t)}function L(e){e.a.i=null;var t=e.e;t.a.c=t.c,t.c.a=t.a,e.e=null}function u(e,t){c(e.a),e.c=!1,(e.a=t).i=e}function D(e){for(var t=e.a.a;(e=pe(e)).a.a===t;);return e.c&&(u(e,t=p(ce(e).a.b,e.a.e)),e=pe(e)),e}function P(e,t,r){var i=new ue;return i.a=r,i.e=X(e.f,t.e,i),r.i=i}function I(e,t){switch(e.s){case 100130:return 0!=(1&t);case 100131:return 0!==t;case 100132:return 0>1]],s[a[l]])?he(r,l):le(r,l)),s[o]=null,h[o]=r.b,r.b=o}else for(r.c[-(o+1)]=null;0Math.max(a.a,h.a))return!1;if(g(o,a)){if(0i.f&&(i.f*=2,i.c=oe(i.c,i.f+1)),0===i.b?r=n:(r=i.b,i.b=i.c[i.b]),i.e[r]=t,i.c[r]=n,i.d[n]=r,i.h&&le(i,n),r}return i=e.a++,e.c[i]=t,-(i+1)}function ie(e){if(0===e.a)return se(e.b);var t=e.c[e.d[e.a-1]];if(0!==e.b.a&&g(ae(e.b),t))return se(e.b);for(;--e.a,0e.a||g(i[a],i[h])){n[r[o]=a]=o;break}n[r[o]=h]=o,o=s}}function le(e,t){for(var r=e.d,i=e.e,n=e.c,o=t,a=r[o];;){var s=o>>1,h=r[s];if(0===s||g(i[h],i[a])){n[r[o]=a]=o;break}n[r[o]=h]=o,o=s}}function ue(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function ce(e){return e.e.c.b}function pe(e){return e.e.a.b}(i=q.prototype).x=function(){Y(this,0)},i.B=function(e,t){switch(e){case 100142:return;case 100140:switch(t){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=t)}break;case 100141:return void(this.m=!!t);default:return void Z(this,100900)}Z(this,100901)},i.y=function(e){switch(e){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:Z(this,100900)}return!1},i.A=function(e,t,r){this.j[0]=e,this.j[1]=t,this.j[2]=r},i.z=function(e,t){var r=t||null;switch(e){case 100100:case 100106:this.h=r;break;case 100104:case 100110:this.l=r;break;case 100101:case 100107:this.k=r;break;case 100102:case 100108:this.i=r;break;case 100103:case 100109:this.p=r;break;case 100105:case 100111:this.o=r;break;case 100112:this.r=r;break;default:Z(this,100900)}},i.C=function(e,t){var r=!1,i=[0,0,0];Y(this,2);for(var n=0;n<3;++n){var o=e[n];o<-1e150&&(o=-1e150,r=!0),1e150n[l]&&(n[l]=u,a[l]=h)}if(h=0,n[1]-o[1]>n[0]-o[0]&&(h=1),n[2]-o[2]>n[h]-o[h]&&(h=2),o[h]>=n[h])i[0]=0,i[1]=0,i[2]=1;else{for(n=0,o=s[h],a=a[h],s=[0,0,0],o=[o.g[0]-a.g[0],o.g[1]-a.g[1],o.g[2]-a.g[2]],l=[0,0,0],h=r.e;h!==r;h=h.e)l[0]=h.g[0]-a.g[0],l[1]=h.g[1]-a.g[1],l[2]=h.g[2]-a.g[2],s[0]=o[1]*l[2]-o[2]*l[1],s[1]=o[2]*l[0]-o[0]*l[2],s[2]=o[0]*l[1]-o[1]*l[0],n<(u=s[0]*s[0]+s[1]*s[1]+s[2]*s[2])&&(n=u,i[0]=s[0],i[1]=s[1],i[2]=s[2]);n<=0&&(i[0]=i[1]=i[2]=0,i[E(o)]=1)}r=!0}for(s=E(i),h=this.b.c,n=(s+1)%3,a=(s+2)%3,s=0>>=1,t}function _(e,t,r){if(!t)return r;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<>>16-t;return e.tag>>>=t,e.bitcount-=t,i+r}function x(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<>>=1,++n,r+=t.table[n],0<=(i-=t.table[n]););return e.tag=o,e.bitcount-=n,t.trans[r+i]}function w(e,t,r){var i,n,o,a,s,h;for(i=_(e,5,257),n=_(e,5,1),o=_(e,4,4),a=0;a<19;++a)v[a]=0;for(a=0;athis.x2&&(this.x2=e)),"number"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))},C.prototype.addX=function(e){this.addPoint(e,null)},C.prototype.addY=function(e){this.addPoint(null,e)},C.prototype.addBezier=function(e,t,r,i,n,o,a,s){var h=this,l=[e,t],u=[r,i],c=[n,o],p=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(var d=0;d<=1;d++){var f=6*l[d]-12*u[d]+6*c[d],m=-3*l[d]+9*u[d]-9*c[d]+3*p[d],v=3*u[d]-3*l[d];if(0!==m){var g=Math.pow(f,2)-4*v*m;if(!(g<0)){var y=(-f+Math.sqrt(g))/(2*m);0>8&255,255&e]},A.USHORT=O(2),k.SHORT=function(e){return 32768<=e&&(e=-(65536-e)),[e>>8&255,255&e]},A.SHORT=O(2),k.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},A.UINT24=O(3),k.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},A.ULONG=O(4),k.LONG=function(e){return P<=e&&(e=-(2*P-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONG=O(4),k.FIXED=k.ULONG,A.FIXED=A.ULONG,k.FWORD=k.SHORT,A.FWORD=A.SHORT,k.UFWORD=k.USHORT,A.UFWORD=A.USHORT,k.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},A.LONGDATETIME=O(8),k.TAG=function(e){return D.argument(4===e.length,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},A.TAG=O(4),k.Card8=k.BYTE,A.Card8=A.BYTE,k.Card16=k.USHORT,A.Card16=A.USHORT,k.OffSize=k.BYTE,A.OffSize=A.BYTE,k.SID=k.USHORT,A.SID=A.USHORT,k.NUMBER=function(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?k.NUMBER16(e):k.NUMBER32(e)},A.NUMBER=function(e){return k.NUMBER(e).length},k.NUMBER16=function(e){return[28,e>>8&255,255&e]},A.NUMBER16=O(3),k.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},A.NUMBER32=O(5),k.REAL=function(e){var t=e.toString(),r=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var i=parseFloat("1e"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*i)/i).toString()}for(var n="",o=0,a=t.length;o>8&255,t[t.length]=255&i}return t},A.UTF16=function(e){return 2*e.length};var B={"x-mac-croatian":"ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผโ€ ยฐยขยฃยงโ€ขยถรŸยฎล โ„ขยดยจโ‰ ลฝร˜โˆžยฑโ‰คโ‰ฅโˆ†ยตโˆ‚โˆ‘โˆลกโˆซยชยบฮฉลพรธยฟยกยฌโˆšฦ’โ‰ˆฤ†ยซฤŒโ€ฆย ร€รƒร•ล’ล“ฤโ€”โ€œโ€โ€˜โ€™รทโ—Š๏ฃฟยฉโ„โ‚ฌโ€นโ€บร†ยปโ€“ยทโ€šโ€žโ€ฐร‚ฤ‡รฤรˆรรŽรรŒร“ร”ฤ‘ร’รšร›ร™ฤฑห†หœยฏฯ€ร‹หšยธรŠรฆห‡","x-mac-cyrillic":"ะะ‘ะ’ะ“ะ”ะ•ะ–ะ—ะ˜ะ™ะšะ›ะœะะžะŸะ ะกะขะฃะคะฅะฆะงะจะฉะชะซะฌะญะฎะฏโ€ ยฐายฃยงโ€ขยถะ†ยฎยฉโ„ขะ‚ั’โ‰ ะƒั“โˆžยฑโ‰คโ‰ฅั–ยตา‘ะˆะ„ั”ะ‡ั—ะ‰ั™ะŠัšั˜ะ…ยฌโˆšฦ’โ‰ˆโˆ†ยซยปโ€ฆย ะ‹ั›ะŒัœั•โ€“โ€”โ€œโ€โ€˜โ€™รทโ€žะŽัžะัŸโ„–ะั‘ัะฐะฑะฒะณะดะตะถะทะธะนะบะปะผะฝะพะฟั€ัั‚ัƒั„ั…ั†ั‡ัˆั‰ัŠั‹ัŒััŽ","x-mac-gaelic":"ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผโ€ ยฐยขยฃยงโ€ขยถรŸยฎยฉโ„ขยดยจโ‰ ร†ร˜แธ‚ยฑโ‰คโ‰ฅแธƒฤŠฤ‹แธŠแธ‹แธžแธŸฤ ฤกแน€รฆรธแนแน–แน—ษผฦ’ลฟแน ยซยปโ€ฆย ร€รƒร•ล’ล“โ€“โ€”โ€œโ€โ€˜โ€™แนกแบ›รฟลธแนชโ‚ฌโ€นโ€บลถลทแนซยทแปฒแปณโŠร‚รŠรร‹รˆรรŽรรŒร“ร”โ™ฃร’รšร›ร™ฤฑรรฝลดลตแบ„แบ…แบ€แบแบ‚แบƒ","x-mac-greek":"ร„ยนยฒร‰ยณร–รœฮ…ร รขรคฮ„ยจรงรฉรจรชรซยฃโ„ขรฎรฏโ€ขยฝโ€ฐรดรถยฆโ‚ฌรนรปรผโ€ ฮ“ฮ”ฮ˜ฮ›ฮžฮ รŸยฎยฉฮฃฮชยงโ‰ ยฐยทฮ‘ยฑโ‰คโ‰ฅยฅฮ’ฮ•ฮ–ฮ—ฮ™ฮšฮœฮฆฮซฮจฮฉฮฌฮยฌฮŸฮกโ‰ˆฮคยซยปโ€ฆย ฮฅฮงฮ†ฮˆล“โ€“โ€•โ€œโ€โ€˜โ€™รทฮ‰ฮŠฮŒฮŽฮญฮฎฮฏฯŒฮฯฮฑฮฒฯˆฮดฮตฯ†ฮณฮทฮนฮพฮบฮปฮผฮฝฮฟฯ€ฯŽฯฯƒฯ„ฮธฯ‰ฯ‚ฯ‡ฯ…ฮถฯŠฯ‹ฮฮฐยญ","x-mac-icelandic":"ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผรยฐยขยฃยงโ€ขยถรŸยฎยฉโ„ขยดยจโ‰ ร†ร˜โˆžยฑโ‰คโ‰ฅยฅยตโˆ‚โˆ‘โˆฯ€โˆซยชยบฮฉรฆรธยฟยกยฌโˆšฦ’โ‰ˆโˆ†ยซยปโ€ฆย ร€รƒร•ล’ล“โ€“โ€”โ€œโ€โ€˜โ€™รทโ—Šรฟลธโ„โ‚ฌรรฐรžรพรฝยทโ€šโ€žโ€ฐร‚รŠรร‹รˆรรŽรรŒร“ร”๏ฃฟร’รšร›ร™ฤฑห†หœยฏห˜ห™หšยธหห›ห‡","x-mac-inuit":"แƒแ„แ…แ†แŠแ‹แฑแฒแณแดแธแนแ‘‰แ‘Žแ‘แ‘แ‘‘แ‘•แ‘–แ‘ฆแ‘ญแ‘ฎแ‘ฏแ‘ฐแ‘ฒแ‘ณแ’ƒแ’‹แ’Œแ’แ’Žแ’แ’‘ยฐแ’กแ’ฅแ’ฆโ€ขยถแ’งยฎยฉโ„ขแ’จแ’ชแ’ซแ’ปแ“‚แ“ƒแ“„แ“…แ“‡แ“ˆแ“แ“ฏแ“ฐแ“ฑแ“ฒแ“ดแ“ตแ”…แ“•แ“–แ“—แ“˜แ“šแ“›แ“ชแ”จแ”ฉแ”ชแ”ซแ”ญโ€ฆย แ”ฎแ”พแ••แ•–แ•—โ€“โ€”โ€œโ€โ€˜โ€™แ•˜แ•™แ•šแ•แ•†แ•‡แ•ˆแ•‰แ•‹แ•Œแ•แ•ฟแ–€แ–แ–‚แ–ƒแ–„แ–…แ–แ–แ–‘แ–’แ–“แ–”แ–•แ™ฑแ™ฒแ™ณแ™ดแ™ตแ™ถแ––แ– แ–กแ–ขแ–ฃแ–คแ–ฅแ–ฆแ•ผลล‚","x-mac-ce":"ร„ฤ€ฤร‰ฤ„ร–รœรกฤ…ฤŒรคฤฤ†ฤ‡รฉลนลบฤŽรญฤฤ’ฤ“ฤ–รณฤ—รดรถรตรบฤšฤ›รผโ€ ยฐฤ˜ยฃยงโ€ขยถรŸยฎยฉโ„ขฤ™ยจโ‰ ฤฃฤฎฤฏฤชโ‰คโ‰ฅฤซฤถโˆ‚โˆ‘ล‚ฤปฤผฤฝฤพฤนฤบล…ล†ลƒยฌโˆšล„ล‡โˆ†ยซยปโ€ฆย ลˆลร•ล‘ลŒโ€“โ€”โ€œโ€โ€˜โ€™รทโ—Šลล”ล•ล˜โ€นโ€บล™ล–ล—ล โ€šโ€žลกลšล›รลคลฅรลฝลพลชร“ร”ลซลฎรšลฏลฐลฑลฒลณรรฝฤทลปลลผฤขห‡",macintosh:"ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผโ€ ยฐยขยฃยงโ€ขยถรŸยฎยฉโ„ขยดยจโ‰ ร†ร˜โˆžยฑโ‰คโ‰ฅยฅยตโˆ‚โˆ‘โˆฯ€โˆซยชยบฮฉรฆรธยฟยกยฌโˆšฦ’โ‰ˆโˆ†ยซยปโ€ฆย ร€รƒร•ล’ล“โ€“โ€”โ€œโ€โ€˜โ€™รทโ—Šรฟลธโ„โ‚ฌโ€นโ€บ๏ฌ๏ฌ‚โ€กยทโ€šโ€žโ€ฐร‚รŠรร‹รˆรรŽรรŒร“ร”๏ฃฟร’รšร›ร™ฤฑห†หœยฏห˜ห™หšยธหห›ห‡","x-mac-romanian":"ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผโ€ ยฐยขยฃยงโ€ขยถรŸยฎยฉโ„ขยดยจโ‰ ฤ‚ศ˜โˆžยฑโ‰คโ‰ฅยฅยตโˆ‚โˆ‘โˆฯ€โˆซยชยบฮฉฤƒศ™ยฟยกยฌโˆšฦ’โ‰ˆโˆ†ยซยปโ€ฆย ร€รƒร•ล’ล“โ€“โ€”โ€œโ€โ€˜โ€™รทโ—Šรฟลธโ„โ‚ฌโ€นโ€บศšศ›โ€กยทโ€šโ€žโ€ฐร‚รŠรร‹รˆรรŽรรŒร“ร”๏ฃฟร’รšร›ร™ฤฑห†หœยฏห˜ห™หšยธหห›ห‡","x-mac-turkish":"ร„ร…ร‡ร‰ร‘ร–รœรกร รขรครฃรฅรงรฉรจรชรซรญรฌรฎรฏรฑรณรฒรดรถรตรบรนรปรผโ€ ยฐยขยฃยงโ€ขยถรŸยฎยฉโ„ขยดยจโ‰ ร†ร˜โˆžยฑโ‰คโ‰ฅยฅยตโˆ‚โˆ‘โˆฯ€โˆซยชยบฮฉรฆรธยฟยกยฌโˆšฦ’โ‰ˆโˆ†ยซยปโ€ฆย ร€รƒร•ล’ล“โ€“โ€”โ€œโ€โ€˜โ€™รทโ—ŠรฟลธฤžฤŸฤฐฤฑลžลŸโ€กยทโ€šโ€žโ€ฐร‚รŠรร‹รˆรรŽรรŒร“ร”๏ฃฟร’รšร›ร™๏ข ห†หœยฏห˜ห™หšยธหห›ห‡"};I.MACSTRING=function(e,t,r,i){var n=B[i];if(void 0!==n){for(var o="",a=0;a>8&255,h+256&255)}return o}k.MACSTRING=function(e,t){var r=function(e){if(!N)for(var t in N={},B)N[t]=new String(t);var r=N[e];if(void 0!==r){if(G){var i=G.get(r);if(void 0!==i)return i}var n=B[e];if(void 0!==n){for(var o={},a=0;a>8,t[c+1]=255&p,t=t.concat(i[u])}return t},A.TABLE=function(e){for(var t=0,r=e.fields.length,i=0;i>1,t.skip("uShort",3),e.glyphIndexMap={};for(var a=new se.Parser(r,i+n+14),s=new se.Parser(r,i+n+16+2*o),h=new se.Parser(r,i+n+16+4*o),l=new se.Parser(r,i+n+16+6*o),u=i+n+16+8*o,c=0;c>4,o=15&i;if(15===n)break;if(t+=r[n],15===o)break;t+=r[o]}return parseFloat(t)}(e);if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return 256*(t-247)+e.parseByte()+108;if(251<=t&&t<=254)return 256*-(t-251)-e.parseByte()-108;throw new Error("Invalid b0 "+t)}function Ee(e,t,r){t=void 0!==t?t:0;var i=new se.Parser(e,t),n=[],o=[];for(r=void 0!==r?r:e.length;i.relativeOffset>1,E.length=0,R=!0}return function e(t){for(var r,i,n,o,a,s,h,l,u,c,p,d,f=0;fMath.abs(d-P)?D=p+E.shift():P=d+E.shift(),M.curveTo(y,b,_,x,h,l),M.curveTo(u,c,p,d,D,P);break;default:console.log("Glyph "+g.index+": unknown operator 1200"+m),E.length=0}break;case 14:0>3;break;case 21:2>16),f+=2;break;case 29:a=E.pop()+v.gsubrsBias,(s=v.gsubrs[a])&&e(s);break;case 30:for(;0=r.begin&&e=pe.length){var a=i.parseChar();r.names.push(i.parseString(a))}break;case 2.5:r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs);for(var s=0;st.value.tag?1:-1}),t.fields=t.fields.concat(i),t.fields=t.fields.concat(n),t}function vt(e,t,r){for(var i=0;i 123 are reserved for internal usage");d|=1<>>1,o=e[n].tag;if(o===t)return n;o>>1,o=e[n];if(o===t)return n;o>>1,a=(r=e[o]).start;if(a===t)return r;a(r=e[i-1]).end?0:r}function xt(e,t){this.font=e,this.tableName=t}function wt(e){xt.call(this,e,"gpos")}function St(e){xt.call(this,e,"gsub")}function Tt(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;it.points.length-1||i.matchedPoints[1]>n.points.length-1)throw Error("Matched points out of range in "+t.name);var a=t.points[i.matchedPoints[0]],s=n.points[i.matchedPoints[1]],h={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};s=Dt([s],h)[0],h.dx=a.x-s.x,h.dy=a.y-s.y,o=Dt(n.points,h)}t.points=t.points.concat(o)}}return Pt(t.points)}(wt.prototype=xt.prototype={searchTag:yt,binSearch:bt,getTable:function(e){var t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){var e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){var e=this.getTable();if(e){for(var t=!1,r=0;r=s[l-1].tag,"Features must be added in alphabetical order."),o={tag:r,feature:{params:0,lookupListIndexes:[]}},s.push(o),a.push(l),o.feature}}},getLookupTables:function(e,t,r,i,n){var o=this.getFeatureTable(e,t,r,n),a=[];if(o){for(var s,h=o.lookupListIndexes,l=this.font.tables[this.tableName].lookups,u=0;u",s),t.stack.push(Math.round(64*s))}function gr(e,t){var r=t.stack,i=r.pop(),n=t.fv,o=t.pv,a=t.ppem,s=t.deltaBase+16*(e-1),h=t.deltaShift,l=t.z0;M.DEBUG&&console.log(t.step,"DELTAP["+e+"]",i,r);for(var u=0;u>4)===a){var d=(15&p)-8;0<=d&&d++,M.DEBUG&&console.log(t.step,"DELTAPFIX",c,"by",d*h);var f=l[c];n.setRelative(f,f,d*h,o)}}}function yr(e,t){var r=t.stack,i=r.pop();M.DEBUG&&console.log(t.step,"ROUND[]"),r.push(64*t.round(i/64))}function br(e,t){var r=t.stack,i=r.pop(),n=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;M.DEBUG&&console.log(t.step,"DELTAC["+e+"]",i,r);for(var s=0;s>4)===n){var u=(15&l)-8;0<=u&&u++;var c=u*a;M.DEBUG&&console.log(t.step,"DELTACFIX",h,"by",c),t.cvt[h]+=c}}}function _r(e,t){var r,i,n=t.stack,o=n.pop(),a=n.pop(),s=t.z2[o],h=t.z1[a];M.DEBUG&&console.log(t.step,"SDPVTL["+e+"]",o,a),i=e?(r=s.y-h.y,h.x-s.x):(r=h.x-s.x,h.y-s.y),t.dpv=Zt(r,i)}function xr(e,t){var r=t.stack,i=t.prog,n=t.ip;M.DEBUG&&console.log(t.step,"PUSHB["+e+"]");for(var o=0;o":"_")+(i?"R":"_")+(0===n?"Gr":1===n?"Bl":2===n?"Wh":"")+"]",e?c+"("+o.cvt[c]+","+l+")":"",p,"(d =",a,"->",h*s,")"),o.rp1=o.rp0,o.rp2=p,t&&(o.rp0=p)}Nt.prototype.exec=function(e,t){if("number"!=typeof t)throw new Error("Point size is not a number!");if(!(2",i),s.interpolate(c,o,a,h),s.touch(c)}e.loop=1},dr.bind(void 0,0),dr.bind(void 0,1),function(e){for(var t=e.stack,r=e.rp0,i=e.z0[r],n=e.loop,o=e.fv,a=e.pv,s=e.z1;n--;){var h=t.pop(),l=s[h];M.DEBUG&&console.log(e.step,(1=a.width||t>=a.height?[0,0,0,0]:this._getPixel(e,t);var s=new h.Image(r,i);return s.canvas.getContext("2d").drawImage(a,e,t,r*o,i*o,0,0,r,i),s},h.Renderer.prototype.textLeading=function(e){return"number"==typeof e?(this._setProperty("_textLeading",e),this._pInst):this._textLeading},h.Renderer.prototype.textSize=function(e){return"number"==typeof e?(this._setProperty("_textSize",e),this._setProperty("_textLeading",e*y._DEFAULT_LEADMULT),this._applyTextProperties()):this._textSize},h.Renderer.prototype.textStyle=function(e){return e?(e!==y.NORMAL&&e!==y.ITALIC&&e!==y.BOLD&&e!==y.BOLDITALIC||this._setProperty("_textStyle",e),this._applyTextProperties()):this._textStyle},h.Renderer.prototype.textAscent=function(){return null===this._textAscent&&this._updateTextMetrics(),this._textAscent},h.Renderer.prototype.textDescent=function(){return null===this._textDescent&&this._updateTextMetrics(),this._textDescent},h.Renderer.prototype.textAlign=function(e,t){return void 0!==e?(this._setProperty("_textAlign",e),void 0!==t&&this._setProperty("_textBaseline",t),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}},h.Renderer.prototype.text=function(e,t,r,i,n){var o,a,s,h,l,u,c,p,d=this._pInst,f=Number.MAX_VALUE;if((this._doFill||this._doStroke)&&void 0!==e){if("string"!=typeof e&&(e=e.toString()),o=(e=e.replace(/(\t)/g," ")).split("\n"),void 0!==i){for(s=p=0;sa.HALF_PI&&e<=3*a.HALF_PI?Math.atan(r/i*Math.tan(e))+a.PI:Math.atan(r/i*Math.tan(e))+a.TWO_PI,t=t<=a.HALF_PI?Math.atan(r/i*Math.tan(t)):t>a.HALF_PI&&t<=3*a.HALF_PI?Math.atan(r/i*Math.tan(t))+a.PI:Math.atan(r/i*Math.tan(t))+a.TWO_PI),t_||Math.abs(this.accelerationY-this.pAccelerationY)>_||Math.abs(this.accelerationZ-this.pAccelerationZ)>_)&&e();var t=this.deviceTurned||window.deviceTurned;if("function"==typeof t){var r=this.rotationX+180,i=this.pRotationX+180,n=f+180;0>>24],i+=x[(16711680&C)>>16],n+=x[(65280&C)>>8],o+=x[255&C],r+=D[_],s++}w[h=E+y]=a/r,S[h]=i/r,T[h]=n/r,M[h]=o/r}E+=d}for(u=(l=-R)*d,b=E=0;b>>16,e[r+1]=(65280&t[i])>>>8,e[r+2]=255&t[i],e[r+3]=(4278190080&t[i])>>>24},I._toImageData=function(e){return e instanceof ImageData?e:e.getContext("2d").getImageData(0,0,e.width,e.height)},I._createImageData=function(e,t){return I._tmpCanvas=document.createElement("canvas"),I._tmpCtx=I._tmpCanvas.getContext("2d"),this._tmpCtx.createImageData(e,t)},I.apply=function(e,t,r){var i=e.getContext("2d"),n=i.getImageData(0,0,e.width,e.height),o=t(n,r);o instanceof ImageData?i.putImageData(o,0,0,0,0,e.width,e.height):i.putImageData(n,0,0,0,0,e.width,e.height)},I.threshold=function(e,t){var r=I._toPixels(e);void 0===t&&(t=.5);for(var i=Math.floor(255*t),n=0;n>8)/i,r[n+1]=255*(a*t>>8)/i,r[n+2]=255*(s*t>>8)/i}},I.dilate=function(e){for(var t,r,i,n,o,a,s,h,l,u,c,p,d,f,m,v,g,y=I._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b>16&255)+151*(i>>8&255)+28*(255&i))<(m=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(n=c,o=m),o<(f=77*((u=I._getARGB(y,a))>>16&255)+151*(u>>8&255)+28*(255&u))&&(n=u,o=f),o<(v=77*(p>>16&255)+151*(p>>8&255)+28*(255&p))&&(n=p,o=v),o<(g=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(n=d,o=g),x[b++]=n;I._setPixels(y,x)},I.erode=function(e){for(var t,r,i,n,o,a,s,h,l,u,c,p,d,f,m,v,g,y=I._toPixels(e),b=0,_=y.length?y.length/4:0,x=new Int32Array(_);b<_;)for(r=(t=b)+e.width;b>16&255)+151*(c>>8&255)+28*(255&c))<(o=77*(i>>16&255)+151*(i>>8&255)+28*(255&i))&&(n=c,o=m),(f=77*((u=I._getARGB(y,a))>>16&255)+151*(u>>8&255)+28*(255&u))>16&255)+151*(p>>8&255)+28*(255&p))>16&255)+151*(d>>8&255)+28*(255&d))/g,">").replace(/"/g,""").replace(/'/g,"'")}function h(e,t){t&&!0!==t&&"true"!==t||(t=""),e||(e="untitled");var r="";return e&&-1"),n.print("");if('="text/html;charset=utf-8" />',n.print(' '),n.print(""),n.print(""),n.print(" "),"0"!==o[0]){n.print(" ");for(var u=0;u"+c),n.print(" ")}n.print(" ")}for(var p=0;p");for(var d=0;d"+f),n.print(" ")}n.print(" ")}n.print("
"),n.print(""),n.print("")}n.close(),n.clear()},g.prototype.writeFile=function(e,t,r){var i="application/octet-stream";g.prototype._isSafari()&&(i="text/plain");var n=new Blob(e,{type:i});g.prototype.downloadFile(n,t,r)},g.prototype.downloadFile=function(e,t,r){var i=h(t,r),n=i[0];if(e instanceof Blob){s("file-saver").saveAs(e,n)}else{var o=document.createElement("a");if(o.href=e,o.download=n,o.onclick=function(e){var t;t=e,document.body.removeChild(t.target),e.stopPropagation()},o.style.display="none",document.body.appendChild(o),g.prototype._isSafari()){var a="Hello, Safari user! To download this file...\n";a+="1. Go to File --\x3e Save As.\n",a+='2. Choose "Page Source" as the Format.\n',a+='3. Name it with this extension: ."'+i[1]+'"',alert(a)}o.click()}},g.prototype._checkFileExtension=h,g.prototype._isSafari=function(){return 0>>0},getSeed:function(){return t},rand:function(){return(r=(1664525*r+1013904223)%i)/i}});n.setSeed(e),b=new Array(4096);for(var o=0;o<4096;o++)b[o]=n.rand()},t.exports=i},{"../core/main":23}],54:[function(e,t,r){"use strict";var s=e("../core/main"),o=e("../core/constants");s.Vector=function(){var e,t,r;r=arguments[0]instanceof s?(this.p5=arguments[0],e=arguments[1][0]||0,t=arguments[1][1]||0,arguments[1][2]||0):(e=arguments[0]||0,t=arguments[1]||0,arguments[2]||0),this.x=e,this.y=t,this.z=r},s.Vector.prototype.toString=function(){return"p5.Vector Object : ["+this.x+", "+this.y+", "+this.z+"]"},s.Vector.prototype.set=function(e,t,r){return e instanceof s.Vector?(this.x=e.x||0,this.y=e.y||0,this.z=e.z||0):e instanceof Array?(this.x=e[0]||0,this.y=e[1]||0,this.z=e[2]||0):(this.x=e||0,this.y=t||0,this.z=r||0),this},s.Vector.prototype.copy=function(){return this.p5?new s.Vector(this.p5,[this.x,this.y,this.z]):new s.Vector(this.x,this.y,this.z)},s.Vector.prototype.add=function(e,t,r){return e instanceof s.Vector?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0):e instanceof Array?(this.x+=e[0]||0,this.y+=e[1]||0,this.z+=e[2]||0):(this.x+=e||0,this.y+=t||0,this.z+=r||0),this},s.Vector.prototype.sub=function(e,t,r){return e instanceof s.Vector?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0):e instanceof Array?(this.x-=e[0]||0,this.y-=e[1]||0,this.z-=e[2]||0):(this.x-=e||0,this.y-=t||0,this.z-=r||0),this},s.Vector.prototype.mult=function(e){return"number"==typeof e&&isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):console.warn("p5.Vector.prototype.mult:","n is undefined or not a finite number"),this},s.Vector.prototype.div=function(e){return"number"==typeof e&&isFinite(e)?0===e?console.warn("p5.Vector.prototype.div:","divide by 0"):(this.x/=e,this.y/=e,this.z/=e):console.warn("p5.Vector.prototype.div:","n is undefined or not a finite number"),this},s.Vector.prototype.mag=function(){return Math.sqrt(this.magSq())},s.Vector.prototype.magSq=function(){var e=this.x,t=this.y,r=this.z;return e*e+t*t+r*r},s.Vector.prototype.dot=function(e,t,r){return e instanceof s.Vector?this.dot(e.x,e.y,e.z):this.x*(e||0)+this.y*(t||0)+this.z*(r||0)},s.Vector.prototype.cross=function(e){var t=this.y*e.z-this.z*e.y,r=this.z*e.x-this.x*e.z,i=this.x*e.y-this.y*e.x;return this.p5?new s.Vector(this.p5,[t,r,i]):new s.Vector(t,r,i)},s.Vector.prototype.dist=function(e){return e.copy().sub(this).mag()},s.Vector.prototype.normalize=function(){var e=this.mag();return 0!==e&&this.mult(1/e),this},s.Vector.prototype.limit=function(e){var t=this.magSq();return e*e>>0},getSeed:function(){return i},rand:function(){return(n=(1103515245*n+12345)%o)/o}});a.prototype.randomSeed=function(e){u.setSeed(e),h=!(s=!0)},a.prototype.random=function(e,t){var r;if(r=s?u.rand():Math.random(),void 0===e)return r;if(void 0===t)return e instanceof Array?e[Math.floor(r*e.length)]:r*e;if(tg){var R=p,L=h,D=l;p=c+g*(s&&c=t&&(r=r.substring(r.length-t,r.length)),r}},i.prototype.unhex=function(e){return e instanceof Array?e.map(i.prototype.unhex):parseInt("0x"+e,16)},t.exports=i},{"../core/main":23}],62:[function(e,t,r){"use strict";var a=e("../core/main");function i(e,t,r){var i=e<0,n=i?e.toString().substring(1):e.toString(),o=n.indexOf("."),a=-1!==o?n.substring(0,o):n,s=-1!==o?n.substring(o+1):"",h=i?"-":"";if(void 0!==r){var l="";(-1!==o||0r&&(s=s.substring(0,r));for(var u=0;ui.length)for(var o=t-(i+=-1===r?".":"").length+1,a=0;a=d.TWO_PI?(t="ellipse")+"|"+u+"|":(t="arc")+"|"+s+"|"+h+"|"+l+"|"+u+"|",!this.geometryInHash(r)){var c=new E.Geometry(u,1,function(){if(this.strokeIndices=[],s.toFixed(10)!==h.toFixed(10)){l!==d.PIE&&void 0!==l||(this.vertices.push(new E.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var e=0;e<=u;e++){var t=e/u*(h-s)+s,r=.5+Math.cos(t)/2,i=.5+Math.sin(t)/2;this.vertices.push(new E.Vector(r,i,0)),this.uvs.push([r,i]),e>5&31)/31,(y>>10&31)/31):(r=a,i=s,h)}for(var b=1;b<=3;b++){var _=f+12*b,x=new S.Vector(l.getFloat32(_,!0),l.getFloat32(_+8,!0),l.getFloat32(_+4,!0));e.vertices.push(x),c&&o.push(r,i,n)}var w=new S.Vector(m,v,g);e.vertexNormals.push(w,w,w),e.faces.push([3*d,3*d+1,3*d+2])}}(e,t);else{var r=new DataView(t);if(!("TextDecoder"in window))return console.warn("Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)");var i=new TextDecoder("utf-8"),n=i.decode(r),o=n.split("\n");!function(e,t){for(var r,i,n="",o=[],a=0;aMath.PI?h=Math.PI:h<=0&&(h=.001);var l=Math.sin(h)*a*Math.sin(s),u=Math.cos(h)*a,c=Math.sin(h)*a*Math.cos(s);this.camera(l+this.centerX,u+this.centerY,c+this.centerZ,this.centerX,this.centerY,this.centerZ,0,1,0)},m.Camera.prototype._isActive=function(){return this===this._renderer._curCamera},m.prototype.setCamera=function(e){this._renderer._curCamera=e,this._renderer.uPMatrix.set(e.projMatrix.mat4[0],e.projMatrix.mat4[1],e.projMatrix.mat4[2],e.projMatrix.mat4[3],e.projMatrix.mat4[4],e.projMatrix.mat4[5],e.projMatrix.mat4[6],e.projMatrix.mat4[7],e.projMatrix.mat4[8],e.projMatrix.mat4[9],e.projMatrix.mat4[10],e.projMatrix.mat4[11],e.projMatrix.mat4[12],e.projMatrix.mat4[13],e.projMatrix.mat4[14],e.projMatrix.mat4[15])},t.exports=m.Camera},{"../core/main":23}],70:[function(e,t,r){"use strict";var u=e("../core/main");u.Geometry=function(e,t,r){return this.vertices=[],this.lineVertices=[],this.lineNormals=[],this.vertexNormals=[],this.faces=[],this.uvs=[],this.edges=[],this.detailX=void 0!==e?e:1,this.detailY=void 0!==t?t:1,this.dirtyFlags={},r instanceof Function&&r.call(this),this},u.Geometry.prototype.reset=function(){this.lineVertices.length=0,this.lineNormals.length=0,this.vertices.length=0,this.edges.length=0,this.vertexColors.length=0,this.vertexNormals.length=0,this.uvs.length=0,this.dirtyFlags={}},u.Geometry.prototype.computeFaces=function(){this.faces.length=0;for(var e,t,r,i,n=this.detailX+1,o=0;othis.vertices.length-1-this.detailX;t--)e.add(this.vertexNormals[t]);for(e=u.Vector.div(e,this.detailX),t=this.vertices.length-1;t>this.vertices.length-1-this.detailX;t--)this.vertexNormals[t]=e;return this},u.Geometry.prototype._makeTriangleEdges=function(){if(this.edges.length=0,Array.isArray(this.strokeIndices))for(var e=0,t=this.strokeIndices.length;e vTexCoord.y;\n bool y1 = p1.y > vTexCoord.y;\n bool y2 = p2.y > vTexCoord.y;\n\n // could web be under the curve (after t1)?\n if (y1 ? !y2 : y0) {\n // add the coverage for t1\n coverage.x += saturate(C1.x + 0.5);\n // calculate the anti-aliasing for t1\n weight.x = min(weight.x, abs(C1.x));\n }\n\n // are we outside the curve (after t2)?\n if (y1 ? !y0 : y2) {\n // subtract the coverage for t2\n coverage.x -= saturate(C2.x + 0.5);\n // calculate the anti-aliasing for t2\n weight.x = min(weight.x, abs(C2.x));\n }\n}\n\n// this is essentially the same as coverageX, but with the axes swapped\nvoid coverageY(vec2 p0, vec2 p1, vec2 p2) {\n\n vec2 C1, C2;\n calulateCrossings(p0, p1, p2, C1, C2);\n\n bool x0 = p0.x > vTexCoord.x;\n bool x1 = p1.x > vTexCoord.x;\n bool x2 = p2.x > vTexCoord.x;\n\n if (x1 ? !x2 : x0) {\n coverage.y -= saturate(C1.y + 0.5);\n weight.y = min(weight.y, abs(C1.y));\n }\n\n if (x1 ? !x0 : x2) {\n coverage.y += saturate(C2.y + 0.5);\n weight.y = min(weight.y, abs(C2.y));\n }\n}\n\nvoid main() {\n\n // calculate the pixel scale based on screen-coordinates\n pixelScale = hardness / fwidth(vTexCoord);\n\n // which grid cell is this pixel in?\n ivec2 gridCoord = ifloor(vTexCoord * vec2(uGridSize));\n\n // intersect curves in this row\n {\n // the index into the row info bitmap\n int rowIndex = gridCoord.y + uGridOffset.y;\n // fetch the info texel\n vec4 rowInfo = getTexel(uSamplerRows, rowIndex, uGridImageSize);\n // unpack the rowInfo\n int rowStrokeIndex = getInt16(rowInfo.xy);\n int rowStrokeCount = getInt16(rowInfo.zw);\n\n for (int iRowStroke = INT(0); iRowStroke < N; iRowStroke++) {\n if (iRowStroke >= rowStrokeCount)\n break;\n\n // each stroke is made up of 3 points: the start and control point\n // and the start of the next curve.\n // fetch the indices of this pair of strokes:\n vec4 strokeIndices = getTexel(uSamplerRowStrokes, rowStrokeIndex++, uCellsImageSize);\n\n // unpack the stroke index\n int strokePos = getInt16(strokeIndices.xy);\n\n // fetch the two strokes\n vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\n vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\n\n // calculate the coverage\n coverageX(stroke0.xy, stroke0.zw, stroke1.xy);\n }\n }\n\n // intersect curves in this column\n {\n int colIndex = gridCoord.x + uGridOffset.x;\n vec4 colInfo = getTexel(uSamplerCols, colIndex, uGridImageSize);\n int colStrokeIndex = getInt16(colInfo.xy);\n int colStrokeCount = getInt16(colInfo.zw);\n \n for (int iColStroke = INT(0); iColStroke < N; iColStroke++) {\n if (iColStroke >= colStrokeCount)\n break;\n\n vec4 strokeIndices = getTexel(uSamplerColStrokes, colStrokeIndex++, uCellsImageSize);\n\n int strokePos = getInt16(strokeIndices.xy);\n vec4 stroke0 = getTexel(uSamplerStrokes, strokePos + INT(0), uStrokeImageSize);\n vec4 stroke1 = getTexel(uSamplerStrokes, strokePos + INT(1), uStrokeImageSize);\n coverageY(stroke0.xy, stroke0.zw, stroke1.xy);\n }\n }\n\n weight = saturate(1.0 - weight * 2.0);\n float distance = max(weight.x + weight.y, minDistance); // manhattan approx.\n float antialias = abs(dot(coverage, weight) / distance);\n float cover = min(abs(coverage.x), abs(coverage.y));\n gl_FragColor = uMaterialColor;\n gl_FragColor.a *= saturate(max(antialias, cover));\n}",lineVert:"/*\n Part of the Processing project - http://processing.org\n Copyright (c) 2012-15 The Processing Foundation\n Copyright (c) 2004-12 Ben Fry and Casey Reas\n Copyright (c) 2001-04 Massachusetts Institute of Technology\n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation, version 2.1.\n This library is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n You should have received a copy of the GNU Lesser General\n Public License along with this library; if not, write to the\n Free Software Foundation, Inc., 59 Temple Place, Suite 330,\n Boston, MA 02111-1307 USA\n*/\n\n#define PROCESSING_LINE_SHADER\n\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nuniform float uStrokeWeight;\n\nuniform vec4 uViewport;\n\nattribute vec4 aPosition;\nattribute vec4 aDirection;\n \nvoid main() {\n // using a scale <1 moves the lines towards the camera\n // in order to prevent popping effects due to half of\n // the line disappearing behind the geometry faces.\n vec3 scale = vec3(0.9995);\n\n vec4 posp = uModelViewMatrix * aPosition;\n vec4 posq = uModelViewMatrix * (aPosition + vec4(aDirection.xyz, 0));\n\n // Moving vertices slightly toward the camera\n // to avoid depth-fighting with the fill triangles.\n // Discussed here:\n // http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=252848 \n posp.xyz = posp.xyz * scale;\n posq.xyz = posq.xyz * scale;\n\n vec4 p = uProjectionMatrix * posp;\n vec4 q = uProjectionMatrix * posq;\n\n // formula to convert from clip space (range -1..1) to screen space (range 0..[width or height])\n // screen_p = (p.xy/p.w + <1,1>) * 0.5 * uViewport.zw\n\n // prevent division by W by transforming the tangent formula (div by 0 causes\n // the line to disappear, see https://github.com/processing/processing/issues/5183)\n // t = screen_q - screen_p\n //\n // tangent is normalized and we don't care which aDirection it points to (+-)\n // t = +- normalize( screen_q - screen_p )\n // t = +- normalize( (q.xy/q.w+<1,1>)*0.5*uViewport.zw - (p.xy/p.w+<1,1>)*0.5*uViewport.zw )\n //\n // extract common factor, <1,1> - <1,1> cancels out\n // t = +- normalize( (q.xy/q.w - p.xy/p.w) * 0.5 * uViewport.zw )\n //\n // convert to common divisor\n // t = +- normalize( ((q.xy*p.w - p.xy*q.w) / (p.w*q.w)) * 0.5 * uViewport.zw )\n //\n // remove the common scalar divisor/factor, not needed due to normalize and +-\n // (keep uViewport - can't remove because it has different components for x and y\n // and corrects for aspect ratio, see https://github.com/processing/processing/issues/5181)\n // t = +- normalize( (q.xy*p.w - p.xy*q.w) * uViewport.zw )\n\n vec2 tangent = normalize((q.xy*p.w - p.xy*q.w) * uViewport.zw);\n\n // flip tangent to normal (it's already normalized)\n vec2 normal = vec2(-tangent.y, tangent.x);\n\n float thickness = aDirection.w * uStrokeWeight;\n vec2 offset = normal * thickness / 2.0;\n\n // Perspective ---\n // convert from world to clip by multiplying with projection scaling factor\n // to get the right thickness (see https://github.com/processing/processing/issues/5182)\n // invert Y, projections in Processing invert Y\n vec2 perspScale = (uProjectionMatrix * vec4(1, -1, 0, 0)).xy;\n\n // No Perspective ---\n // multiply by W (to cancel out division by W later in the pipeline) and\n // convert from screen to clip (derived from clip to screen above)\n vec2 noPerspScale = p.w / (0.5 * uViewport.zw);\n\n //gl_Position.xy = p.xy + offset.xy * mix(noPerspScale, perspScale, float(perspective > 0));\n gl_Position.xy = p.xy + offset.xy * perspScale;\n gl_Position.zw = p.zw;\n}\n",lineFrag:"precision mediump float;\nprecision mediump int;\n\nuniform vec4 uMaterialColor;\n\nvoid main() {\n gl_FragColor = uMaterialColor;\n}",pointVert:"attribute vec3 aPosition;\nuniform float uPointSize;\nvarying float vStrokeWeight;\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nvoid main() {\n\tvec4 positionVec4 = vec4(aPosition, 1.0);\n\tgl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4;\n\tgl_PointSize = uPointSize;\n\tvStrokeWeight = uPointSize;\n}",pointFrag:"precision mediump float;\nprecision mediump int;\nuniform vec4 uMaterialColor;\nvarying float vStrokeWeight;\n\nvoid main(){\n\tfloat mask = 0.0;\n\n\t// make a circular mask using the gl_PointCoord (goes from 0 - 1 on a point)\n // might be able to get a nicer edge on big strokeweights with smoothstep but slightly less performant\n\n\tmask = step(0.98, length(gl_PointCoord * 2.0 - 1.0));\n\n\t// if strokeWeight is 1 or less lets just draw a square\n\t// this prevents weird artifacting from carving circles when our points are really small\n\t// if strokeWeight is larger than 1, we just use it as is\n\n\tmask = mix(0.0, mask, clamp(floor(vStrokeWeight - 0.5),0.0,1.0));\n\n\t// throw away the borders of the mask\n // otherwise we get weird alpha blending issues\n\n\tif(mask > 0.98){\n discard;\n \t}\n\n \tgl_FragColor = vec4(uMaterialColor.rgb * (1.0 - mask), uMaterialColor.a) ;\n}"};l.RendererGL=function(e,t,r,i){return l.Renderer.call(this,e,t,r),this._setAttributeDefaults(t),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._enableLighting=!1,this.ambientLightColors=[],this.directionalLightDirections=[],this.directionalLightColors=[],this.pointLightPositions=[],this.pointLightColors=[],this.drawMode=o.FILL,this.curFillColor=[1,1,1,1],this.curStrokeColor=[0,0,0,1],this.curBlendMode=o.BLEND,this.blendExt=this.GL.getExtension("EXT_blend_minmax"),this._useSpecularMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new l.Matrix,this.uPMatrix=new l.Matrix,this.uNMatrix=new l.Matrix("mat3"),this._curCamera=new l.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this.gHash={},this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this._pointVertexBuffer=this.GL.createBuffer(),this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.isImmediateDrawing=!1,this.immediateMode={},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=o.IMAGE,this.textureWrapX=o.CLAMP,this.textureWrapY=o.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this},l.RendererGL.prototype=Object.create(l.Renderer.prototype),l.RendererGL.prototype._setAttributeDefaults=function(e){var t={alpha:!0,depth:!0,stencil:!0,antialias:!1,premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!1};null===e._glAttributes?e._glAttributes=t:e._glAttributes=Object.assign(t,e._glAttributes)},l.RendererGL.prototype._initContext=function(){try{if(this.drawingContext=this.canvas.getContext("webgl",this._pInst._glAttributes)||this.canvas.getContext("experimental-webgl",this._pInst._glAttributes),null===this.drawingContext)throw new Error("Error creating webgl context");var e=this.drawingContext;e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}catch(e){throw e}},l.RendererGL.prototype._resetContext=function(e,t){var r=this.width,i=this.height,n=this.canvas.id,o=this._pInst instanceof l.Graphics;if(o){var a=this._pInst;a.canvas.parentNode.removeChild(a.canvas),a.canvas=document.createElement("canvas"),(a._pInst._userNode||document.body).appendChild(a.canvas),l.Element.call(a,a.canvas,a._pInst),a.width=r,a.height=i}else{var s=this.canvas;s&&s.parentNode.removeChild(s),(s=document.createElement("canvas")).id=n,this._pInst._userNode?this._pInst._userNode.appendChild(s):document.body.appendChild(s),this._pInst.canvas=s}var h=new l.RendererGL(this._pInst.canvas,this._pInst,!o);this._pInst._setProperty("_renderer",h),h.resize(r,i),h._applyDefaults(),o||this._pInst._elements.push(h),"function"==typeof t&&setTimeout(function(){t.apply(window._renderer,e)},0)},l.prototype.setAttributes=function(e,t){if(void 0!==this._glAttributes){var r=!0;if(void 0!==t?(null===this._glAttributes&&(this._glAttributes={}),this._glAttributes[e]!==t&&(this._glAttributes[e]=t,r=!1)):e instanceof Object&&this._glAttributes!==e&&(this._glAttributes=e,r=!1),this._renderer.isP3D&&!r){if(!this._setupDone)for(var i in this._renderer.gHash)if(this._renderer.gHash.hasOwnProperty(i))return void console.error("Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()");this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}else console.log("You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.")},l.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.directionalLightDirections.length=0,this.directionalLightColors.length=0,this.pointLightPositions.length=0,this.pointLightColors.length=0,this._enableLighting=!1,this._tint=[255,255,255,255]},l.RendererGL.prototype.background=function(){var e=this._pInst.color.apply(this._pInst,arguments),t=e.levels[0]/255,r=e.levels[1]/255,i=e.levels[2]/255,n=e.levels[3]/255;this.GL.clearColor(t,r,i,n),this.GL.depthMask(!0),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT),this._pixelsState._pixelsDirty=!0},l.RendererGL.prototype.fill=function(e,t,r,i){var n=l.prototype.color.apply(this._pInst,arguments);this.curFillColor=n._array,this.drawMode=o.FILL,this._useNormalMaterial=!1,this._tex=null},l.RendererGL.prototype.stroke=function(e,t,r,i){i=255;var n=l.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=n._array},l.RendererGL.prototype.strokeCap=function(e){console.error("Sorry, strokeCap() is not yet implemented in WEBGL mode")},l.RendererGL.prototype.blendMode=function(e){e===o.DARKEST||e===o.LIGHTEST||e===o.ADD||e===o.BLEND||e===o.SUBTRACT||e===o.SCREEN||e===o.EXCLUSION||e===o.REPLACE||e===o.MULTIPLY?this.curBlendMode=e:e!==o.BURN&&e!==o.OVERLAY&&e!==o.HARD_LIGHT&&e!==o.SOFT_LIGHT&&e!==o.DODGE||console.warn("BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.")},l.RendererGL.prototype.strokeWeight=function(e){this.curStrokeWeight!==e&&(this.pointSize=e,this.curStrokeWeight=e)},l.RendererGL.prototype._getPixel=function(e,t){var r,i,n=this._pixelsState;return i=n._pixelsDirty?(r=new Uint8Array(4),this.drawingContext.readPixels(e,t,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,r),0):(r=n.pixels,4*(Math.floor(e)+Math.floor(t)*this.canvas.width)),[r[i+0],r[i+1],r[i+2],r[i+3]]},l.RendererGL.prototype.loadPixels=function(){var e=this._pixelsState;if(e._pixelsDirty)if(!(e._pixelsDirty=!1)===this._pInst._glAttributes.preserveDrawingBuffer){var t=e.pixels,r=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4;t instanceof Uint8Array&&t.length===r||(t=new Uint8Array(r),this._pixelsState._setProperty("pixels",t));var i=this._pInst._pixelDensity;this.GL.readPixels(0,0,this.width*i,this.height*i,this.GL.RGBA,this.GL.UNSIGNED_BYTE,t)}else console.log("loadPixels only works in WebGL when preserveDrawingBuffer is true.")},l.RendererGL.prototype.geometryInHash=function(e){return void 0!==this.gHash[e]},l.RendererGL.prototype.resize=function(e,t){l.Renderer.prototype.resize.call(this,e,t),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize();var r=this._pixelsState;r._pixelsDirty=!0,void 0!==r.pixels&&r._setProperty("pixels",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},l.RendererGL.prototype.clear=function(){var e=arguments[0]||0,t=arguments[1]||0,r=arguments[2]||0,i=arguments[3]||0;this.GL.clearColor(e,t,r,i),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT),this._pixelsState._pixelsDirty=!0},l.RendererGL.prototype.applyMatrix=function(e,t,r,i,n,o){16===arguments.length?l.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([e,t,0,0,r,i,0,0,0,0,1,0,n,o,0,1])},l.RendererGL.prototype.translate=function(e,t,r){return e instanceof l.Vector&&(r=e.z,t=e.y,e=e.x),this.uMVMatrix.translate([e,t,r]),this},l.RendererGL.prototype.scale=function(e,t,r){return this.uMVMatrix.scale(e,t,r),this},l.RendererGL.prototype.rotate=function(e,t){return void 0===t?this.rotateZ(e):(l.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},l.RendererGL.prototype.rotateX=function(e){return this.rotate(e,1,0,0),this},l.RendererGL.prototype.rotateY=function(e){return this.rotate(e,0,1,0),this},l.RendererGL.prototype.rotateZ=function(e){return this.rotate(e,0,0,1),this},l.RendererGL.prototype.push=function(){var e=l.Renderer.prototype.push.apply(this),t=e.properties;return t.uMVMatrix=this.uMVMatrix.copy(),t.uPMatrix=this.uPMatrix.copy(),t._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),t.ambientLightColors=this.ambientLightColors.slice(),t.directionalLightDirections=this.directionalLightDirections.slice(),t.directionalLightColors=this.directionalLightColors.slice(),t.pointLightPositions=this.pointLightPositions.slice(),t.pointLightColors=this.pointLightColors.slice(),t.userFillShader=this.userFillShader,t.userStrokeShader=this.userStrokeShader,t.userPointShader=this.userPointShader,t.pointSize=this.pointSize,t.curStrokeWeight=this.curStrokeWeight,t.curStrokeColor=this.curStrokeColor,t.curFillColor=this.curFillColor,t._useSpecularMaterial=this._useSpecularMaterial,t._useShininess=this._useShininess,t.constantAttenuation=this.constantAttenuation,t.linearAttenuation=this.linearAttenuation,t.quadraticAttenuation=this.quadraticAttenuation,t._enableLighting=this._enableLighting,t._useNormalMaterial=this._useNormalMaterial,t._tex=this._tex,t.drawMode=this.drawMode,e},l.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=l.Matrix.identity(this._pInst),this},l.RendererGL.prototype._getImmediateStrokeShader=function(){var e=this.userStrokeShader;return e&&e.isStrokeShader()?e:this._getLineShader()},l.RendererGL.prototype._getRetainedStrokeShader=l.RendererGL.prototype._getImmediateStrokeShader,l.RendererGL.prototype._getImmediateFillShader=function(){if(this._useNormalMaterial)return console.log("Sorry, normalMaterial() does not currently work with custom WebGL geometry created with beginShape(). Falling back to standard fill material."),this._getImmediateModeShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getImmediateModeShader();return e},l.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var e=this.userFillShader;if(this._enableLighting){if(!e||!e.isLightShader())return this._getLightShader()}else if(this._tex){if(!e||!e.isTextureShader())return this._getLightShader()}else if(!e)return this._getColorShader();return e},l.RendererGL.prototype._getImmediatePointShader=function(){var e=this.userPointShader;return e&&e.isPointShader()?e:this._getPointShader()},l.RendererGL.prototype._getRetainedLineShader=l.RendererGL.prototype._getImmediateLineShader,l.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new l.Shader(this,a.phongVert,a.phongFrag):this._defaultLightShader=new l.Shader(this,a.lightVert,a.lightTextureFrag)),this._defaultLightShader},l.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new l.Shader(this,a.immediateVert,a.vertexColorFrag)),this._defaultImmediateModeShader},l.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new l.Shader(this,a.normalVert,a.normalFrag)),this._defaultNormalShader},l.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new l.Shader(this,a.normalVert,a.basicFrag)),this._defaultColorShader},l.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new l.Shader(this,a.pointVert,a.pointFrag)),this._defaultPointShader},l.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new l.Shader(this,a.lineVert,a.lineFrag)),this._defaultLineShader},l.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension("OES_standard_derivatives"),this._defaultFontShader=new l.Shader(this,a.fontVert,a.fontFrag)),this._defaultFontShader},l.RendererGL.prototype._getEmptyTexture=function(){if(!this._emptyTexture){var e=new l.Image(1,1);e.set(0,0,255),this._emptyTexture=new l.Texture(this,e)}return this._emptyTexture},l.RendererGL.prototype.getTexture=function(e){for(var t=this.textures,r=0;r>7,127&p,c>>7,127&c);for(var d=0;d>7,127&f,0,0)}}return{cellImageInfo:h,dimOffset:o,dimImageInfo:n}}return(t=this.glyphInfos[e.index]={glyph:e,uGlyphRect:[i.x1,-i.y1,i.x2,-i.y2],strokeImageInfo:I,strokes:d,colInfo:O(m,this.colDimImageInfos,this.colCellImageInfos),rowInfo:O(f,this.rowDimImageInfos,this.rowCellImageInfos)}).uGridOffset=[t.colInfo.dimOffset,t.rowInfo.dimOffset],t}};B.RendererGL.prototype._renderText=function(e,t,r,i,n){if(this._textFont&&"string"!=typeof this._textFont){if(!(n<=i)&&this._doFill){if(!this._isOpenType())return console.log("WEBGL: only opentype fonts are supported"),e;e.push();var o=this._doStroke,a=this.drawMode;this._doStroke=!1,this.drawMode=T.TEXTURE;var s=this._textFont.font,h=this._textFont._fontInfo;h||(h=this._textFont._fontInfo=new M(s));var l=this._textFont._handleAlignment(this,t,r,i),u=this._textSize/s.unitsPerEm;this.translate(l.x,l.y,0),this.scale(u,u,1);var c=this.GL,p=!this._defaultFontShader,d=this._getFontShader();d.init(),d.bindShader(),p&&(d.setUniform("uGridImageSize",[64,64]),d.setUniform("uCellsImageSize",[64,64]),d.setUniform("uStrokeImageSize",[64,64]),d.setUniform("uGridSize",[9,9])),this._applyColorBlend(this.curFillColor);var f=this.gHash.glyph;if(!f){var m=this._textGeom=new B.Geometry(1,1,function(){for(var e=0;e<=1;e++)for(var t=0;t<=1;t++)this.vertices.push(new B.Vector(t,e,0)),this.uvs.push(t,e)});m.computeFaces().computeNormals(),f=this.createBuffers("glyph",m)}this._prepareBuffers(f,d,B.RendererGL._textBuffers),this._bindBuffer(f.indexBuffer,c.ELEMENT_ARRAY_BUFFER),d.setUniform("uMaterialColor",this.curFillColor);try{for(var v=0,g=null,y=s.stringToGlyphs(t),b=0;b - -## **Description ๐Ÿ“ƒ** - -- Welcome to the juicy world of Fruit Ninja! Get ready to slice, dice, and swipe your way to fruity greatness in this action-packed web game. - -- In Fruit Ninja, you step into the shoes of a master fruit-slicing ninja, armed with your trusty blade and lightning-fast reflexes. As an array of colorful fruits is tossed into the air, it's your mission to slice through them with precision and style. - -- But be warned, not all fruits are created equal! Avoid slicing any pesky bombs that come your way, as they will bring your fruitful adventure to a sudden and explosive end. - -- Featuring vibrant graphics, intuitive controls, and satisfyingly splattery fruit explosions, Fruit Ninja delivers an addictive and thrilling experience that will keep you coming back for more. - -- So, sharpen your blades, focus your eyes, and prepare to unleash your inner ninja as you embark on an epic journey through Fruit Ninja. The fruits await your swift and precise cuts in this deliciously entertaining game that will leave you craving for more fruity action! - -## **Functionalities ๐ŸŽฎ** - -- Fruit-slicing frenzy: Slice through a variety of fruits, including apples, watermelons, pineapples, and more, by swiping your finger across the screen. - -- Avoid the bombs: Watch out for the bombs mixed in with the fruits. Accidentally slicing a bomb will end your game, so stay focused and avoid them at all costs. - -- Lives system: Each player starts the game with three lives. Missing a fruit or slicing a bomb will result in the loss of a life. Once all three lives are exhausted, the game ends. Strategize and maintain your focus to preserve your lives and achieve a high score. - -- Score system: A score counter is displayed on the left side of the screen, constantly updating as you slice fruits. Each fruit successfully sliced adds points to your score, with different fruits awarding different values. Aim for precision and swift slicing to rack up a high score and climb the leaderboards. - -- Exciting sounds and effects: Immerse yourself in the fruit-slicing action with a variety of engaging sound effects. Hear the satisfying swoosh as you slice through fruits, the explosion when you accidentally hit a bomb, and cheers of victory when achieving high scores or completing challenges. The lively sound effects enhance the overall gameplay experience, making it even more enjoyable and immersive. -
- -## **How to play? ๐Ÿ•น๏ธ** - -- Launch the game on your device and scroll down to locate the "Play" button. Click on it to proceed. - -- On the game page, click on the "New Game" option to start a fresh game session. - -- As the game begins, a variety of fruits will appear on the screen, thrown into the air. - -- Swipe your mouse while holding the right button across the screen to slice through the fruits.The objective is to slice as many fruits as possible. - -- Be careful to avoid slicing any bombs that may be mixed in with the fruits. Slicing a bomb will immediately end the game. - -- You start the game with three lives. If you miss slicing three fruits, you will lose a life. - -- Maintain focus and keep slicing fruits while avoiding bombs to prolong your gameplay and achieve a higher score. - -- If you lose all three lives by either slicing bombs or missing too many fruits, the game will be over. - -- When the game is over, click on the "Reset" button to restart the game and challenge yourself to achieve an even higher score. - -
- -## **Screenshots ๐Ÿ“ธ** - -
- -![Fruit_Ninja_Screenshot 1](/assets/screenshots/Fruit_Ninja_Screenshot_1.png) -![Fruit_Ninja_Screenshot 1](/assets/screenshots/Fruit_Ninja_Screenshot_2.png) -![Fruit_Ninja_Screenshot 1](/assets/screenshots/Fruit_Ninja_Screenshot_3.png) - - - - -
- -## **Working video ๐Ÿ“น** + # **Fruit Ninja ๐Ÿ‰๐Ÿ—ก๏ธ** + + +
+ +## **Description ๐Ÿ“ƒ** + +- Welcome to the juicy world of Fruit Ninja! Get ready to slice, dice, and swipe your way to fruity greatness in this action-packed web game. + +- In Fruit Ninja, you step into the shoes of a master fruit-slicing ninja, armed with your trusty blade and lightning-fast reflexes. As an array of colorful fruits is tossed into the air, it's your mission to slice through them with precision and style. + +- But be warned, not all fruits are created equal! Avoid slicing any pesky bombs that come your way, as they will bring your fruitful adventure to a sudden and explosive end. + +- Featuring vibrant graphics, intuitive controls, and satisfyingly splattery fruit explosions, Fruit Ninja delivers an addictive and thrilling experience that will keep you coming back for more. + +- So, sharpen your blades, focus your eyes, and prepare to unleash your inner ninja as you embark on an epic journey through Fruit Ninja. The fruits await your swift and precise cuts in this deliciously entertaining game that will leave you craving for more fruity action! + +## **Functionalities ๐ŸŽฎ** + +- Fruit-slicing frenzy: Slice through a variety of fruits, including apples, watermelons, pineapples, and more, by swiping your finger across the screen. + +- Avoid the bombs: Watch out for the bombs mixed in with the fruits. Accidentally slicing a bomb will end your game, so stay focused and avoid them at all costs. + +- Lives system: Each player starts the game with three lives. Missing a fruit or slicing a bomb will result in the loss of a life. Once all three lives are exhausted, the game ends. Strategize and maintain your focus to preserve your lives and achieve a high score. + +- Score system: A score counter is displayed on the left side of the screen, constantly updating as you slice fruits. Each fruit successfully sliced adds points to your score, with different fruits awarding different values. Aim for precision and swift slicing to rack up a high score and climb the leaderboards. + +- Exciting sounds and effects: Immerse yourself in the fruit-slicing action with a variety of engaging sound effects. Hear the satisfying swoosh as you slice through fruits, the explosion when you accidentally hit a bomb, and cheers of victory when achieving high scores or completing challenges. The lively sound effects enhance the overall gameplay experience, making it even more enjoyable and immersive. +
+ +## **How to play? ๐Ÿ•น๏ธ** + +- Launch the game on your device and scroll down to locate the "Play" button. Click on it to proceed. + +- On the game page, click on the "New Game" option to start a fresh game session. + +- As the game begins, a variety of fruits will appear on the screen, thrown into the air. + +- Swipe your mouse while holding the right button across the screen to slice through the fruits.The objective is to slice as many fruits as possible. + +- Be careful to avoid slicing any bombs that may be mixed in with the fruits. Slicing a bomb will immediately end the game. + +- You start the game with three lives. If you miss slicing three fruits, you will lose a life. + +- Maintain focus and keep slicing fruits while avoiding bombs to prolong your gameplay and achieve a higher score. + +- If you lose all three lives by either slicing bombs or missing too many fruits, the game will be over. + +- When the game is over, click on the "Reset" button to restart the game and challenge yourself to achieve an even higher score. + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ +![Fruit_Ninja_Screenshot 1](/assets/screenshots/Fruit_Ninja_Screenshot_1.png) +![Fruit_Ninja_Screenshot 1](/assets/screenshots/Fruit_Ninja_Screenshot_2.png) +![Fruit_Ninja_Screenshot 1](/assets/screenshots/Fruit_Ninja_Screenshot_3.png) + + + + +
+ +## **Working video ๐Ÿ“น** \ No newline at end of file diff --git a/Games/Fruit_Ninja/style.css b/Games/Fruit_Ninja/style.css index fd0f06a422..d13a5bf261 100644 --- a/Games/Fruit_Ninja/style.css +++ b/Games/Fruit_Ninja/style.css @@ -1,160 +1,160 @@ -body { - background: orange; - height: 100vh; -} -.wrapper span { - position: fixed; - bottom: -180px; - height: 50px; - width: 50px; - z-index: -1; - background-color: white; - box-shadow: 0 0 50px greenyellow, 0 0 100px greenyellow, 0 0 150px greenyellow, 0 0 200px greenyellow; - animation: animate 10s linear infinite; -} -.wrapper span:nth-child(1) { - left: 60px; - animation-delay: 0.6s; -} - -.wrapper span:nth-child(2) { - left: 10%; - animation-delay: 3s; - width: 60px; - height: 60px; -} -.wrapper span:nth-child(3) { - left: 20%; - animation-delay: 2s; -} -.wrapper span:nth-child(4) { - left: 30%; - animation-delay: 5s; - width: 80px; - height: 80px; -} -.wrapper span:nth-child(5) { - left: 40%; - animation-delay: 1s; -} -.wrapper span:nth-child(6) { - left: 50%; - animation-delay: 7s; -} -.wrapper span:nth-child(7) { - left: 60%; - animation-delay: 6s; - width: 100px; - height: 100px; -} -.wrapper span:nth-child(8) { - left: 70%; - animation-delay: 8s; -} -.wrapper span:nth-child(9) { - left: 80%; - animation-delay: 6s; - width: 90px; - height: 90px; -} -.wrapper span:nth-child(10) { - left: 90%; - animation-delay: 4s; -} -.banner { - display: flex; - justify-content: center; - align-items: center; - height: 100vh; -} -.content h2 b { - -webkit-text-fill-color: transparent; - -webkit-text-stroke-width: 3px; - -webkit-text-stroke-color: #fff; - font-family: montserrat; - font-size: 80px; - text-transform: uppercase; - letter-spacing: 12px; -} -@keyframes animate { - 0% { - transform: translateY(0); - opacity: 1; - } - 80% { - opacity: .7; - } - 100% { - transform: translateY(-800px) rotate(360deg); - opacity: 0; - } -} - -*{ - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.buttons { - margin: 10%; - text-align: center; -} - -.btn-hover { - width: 200px; - font-size: 16px; - font-weight: 600; - color: #fff; - cursor: pointer; - margin: 20px; - height: 55px; - text-align:center; - border: none; - background-size: 300% 100%; - - border-radius: 50px; - moz-transition: all .4s ease-in-out; - -o-transition: all .4s ease-in-out; - -webkit-transition: all .4s ease-in-out; - transition: all .4s ease-in-out; -} - -.btn-hover:hover { - background-position: 100% 0; - moz-transition: all .4s ease-in-out; - -o-transition: all .4s ease-in-out; - -webkit-transition: all .4s ease-in-out; - transition: all 2s ease-in-out; -} - -.btn-hover:focus { - outline: none; - --webkit-tap-highlight-color: transparent; - -} -.btn-hover.color-6 { - background-image: linear-gradient(to right, #009245, #FCEE21, #00A8C5, #D9E021); - box-shadow: 0 4px 15px 0 rgba(83, 176, 57, 0.75); -}.btn-hover.color-6 { - background-image: linear-gradient(to right, #009245, #FCEE21, #00A8C5, #D9E021); - box-shadow: 0 4px 15px 0 rgba(83, 176, 57, 0.75); -} - -.btn-hover.color-2 { - background-image: linear-gradient(to right, #f5ce62, #e43603, #fa7199, #e85a19); - box-shadow: 0 4px 15px 0 rgba(229, 66, 10, 0.75); - position: relative; - top: 400px; - left: 550px; - transform: translateX(-50px); - z-index: 9999; -} - -.logo{ - position: relative; - top: -57px; - left: 760px; - transform: translateX(-50%); - z-index: 9999 +body { + background: orange; + height: 100vh; +} +.wrapper span { + position: fixed; + bottom: -180px; + height: 50px; + width: 50px; + z-index: -1; + background-color: white; + box-shadow: 0 0 50px greenyellow, 0 0 100px greenyellow, 0 0 150px greenyellow, 0 0 200px greenyellow; + animation: animate 10s linear infinite; +} +.wrapper span:nth-child(1) { + left: 60px; + animation-delay: 0.6s; +} + +.wrapper span:nth-child(2) { + left: 10%; + animation-delay: 3s; + width: 60px; + height: 60px; +} +.wrapper span:nth-child(3) { + left: 20%; + animation-delay: 2s; +} +.wrapper span:nth-child(4) { + left: 30%; + animation-delay: 5s; + width: 80px; + height: 80px; +} +.wrapper span:nth-child(5) { + left: 40%; + animation-delay: 1s; +} +.wrapper span:nth-child(6) { + left: 50%; + animation-delay: 7s; +} +.wrapper span:nth-child(7) { + left: 60%; + animation-delay: 6s; + width: 100px; + height: 100px; +} +.wrapper span:nth-child(8) { + left: 70%; + animation-delay: 8s; +} +.wrapper span:nth-child(9) { + left: 80%; + animation-delay: 6s; + width: 90px; + height: 90px; +} +.wrapper span:nth-child(10) { + left: 90%; + animation-delay: 4s; +} +.banner { + display: flex; + justify-content: center; + align-items: center; + height: 100vh; +} +.content h2 b { + -webkit-text-fill-color: transparent; + -webkit-text-stroke-width: 3px; + -webkit-text-stroke-color: #fff; + font-family: montserrat; + font-size: 80px; + text-transform: uppercase; + letter-spacing: 12px; +} +@keyframes animate { + 0% { + transform: translateY(0); + opacity: 1; + } + 80% { + opacity: .7; + } + 100% { + transform: translateY(-800px) rotate(360deg); + opacity: 0; + } +} + +*{ + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.buttons { + margin: 10%; + text-align: center; +} + +.btn-hover { + width: 200px; + font-size: 16px; + font-weight: 600; + color: #fff; + cursor: pointer; + margin: 20px; + height: 55px; + text-align:center; + border: none; + background-size: 300% 100%; + + border-radius: 50px; + moz-transition: all .4s ease-in-out; + -o-transition: all .4s ease-in-out; + -webkit-transition: all .4s ease-in-out; + transition: all .4s ease-in-out; +} + +.btn-hover:hover { + background-position: 100% 0; + moz-transition: all .4s ease-in-out; + -o-transition: all .4s ease-in-out; + -webkit-transition: all .4s ease-in-out; + transition: all 2s ease-in-out; +} + +.btn-hover:focus { + outline: none; + --webkit-tap-highlight-color: transparent; + +} +.btn-hover.color-6 { + background-image: linear-gradient(to right, #009245, #FCEE21, #00A8C5, #D9E021); + box-shadow: 0 4px 15px 0 rgba(83, 176, 57, 0.75); +}.btn-hover.color-6 { + background-image: linear-gradient(to right, #009245, #FCEE21, #00A8C5, #D9E021); + box-shadow: 0 4px 15px 0 rgba(83, 176, 57, 0.75); +} + +.btn-hover.color-2 { + background-image: linear-gradient(to right, #f5ce62, #e43603, #fa7199, #e85a19); + box-shadow: 0 4px 15px 0 rgba(229, 66, 10, 0.75); + position: relative; + top: 400px; + left: 550px; + transform: translateX(-50px); + z-index: 9999; +} + +.logo{ + position: relative; + top: -57px; + left: 760px; + transform: translateX(-50%); + z-index: 9999 } \ No newline at end of file diff --git a/Games/Galaxy_Rider/index.html b/Games/Galaxy_Rider/index.html index ad4e55a1ba..911c9957a1 100644 --- a/Games/Galaxy_Rider/index.html +++ b/Games/Galaxy_Rider/index.html @@ -1,4 +1,4 @@ -
- - - -
-
-
-
-
- - -
-
Game Over
-
-
-
-
-
- - - - -
- - - - - + + + + + + Document + + + + +
+
+
+
+
+ + +
+
Game Over
+
+
+
+
+
+ + + + +
+ + + + + diff --git a/Games/Hold_The_Cloud/game.js b/Games/Hold_The_Cloud/game.js old mode 100755 new mode 100644 diff --git a/Games/Hold_The_Cloud/images/bg.gif b/Games/Hold_The_Cloud/images/bg.gif old mode 100755 new mode 100644 diff --git a/Games/Hold_The_Cloud/index.html b/Games/Hold_The_Cloud/index.html old mode 100755 new mode 100644 diff --git a/Games/Hold_The_Cloud/style.css b/Games/Hold_The_Cloud/style.css old mode 100755 new mode 100644 diff --git a/Games/Hunt_Your_Card/index.html b/Games/Hunt_Your_Card/index.html index b887de7138..63576bbca8 100644 --- a/Games/Hunt_Your_Card/index.html +++ b/Games/Hunt_Your_Card/index.html @@ -1,68 +1,68 @@ - - - - - - - - - Hunt Your Card - - - - - -
- -
-
-

Hunt Your Card

-
-
-
- -
-
-

Score 0

-
-
-

Round 0

-
-
-
-

- Click 'Play Game' button to play game -

-
-
-
- -
-
-
- -
-
-
- -
-
- -
-
- -
-
- -
-
-
- - - - + + + + + + + + + Hunt Your Card + + + + + +
+ +
+
+

Hunt Your Card

+
+
+
+ +
+
+

Score 0

+
+
+

Round 0

+
+
+
+

+ Click 'Play Game' button to play game +

+
+
+
+ +
+
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/Games/Hunt_Your_Card/script.js b/Games/Hunt_Your_Card/script.js index 140d53a556..2607e4ef2e 100644 --- a/Games/Hunt_Your_Card/script.js +++ b/Games/Hunt_Your_Card/script.js @@ -1,517 +1,517 @@ -const cardObjectDefinitions = [ - { id: 1, imagePath: './images/card-KingHearts.png' }, - { id: 2, imagePath: './images/card-JackClubs.png' }, - { id: 3, imagePath: './images/card-QueenDiamonds.png' }, - { id: 4, imagePath: './images/card-AceSpades.png' } -]; - -// Audio variables -const bgMusic = new Audio(); -bgMusic.src = 'https://drive.google.com/uc?export=download&id=1Y2NcCVRjdQypNCXcj6t-hu8GdqMxMcPS'; -bgMusic.volume = 0.3; - -const winSound = new Audio(); -winSound.src = 'https://drive.google.com/uc?export=download&id=1_U-FQd0q9ZTfnDQTEBtM8ZB0gf-cEUwL'; - -const looseSound = new Audio(); -looseSound.src = 'https://drive.google.com/uc?export=download&id=19tUhCzCGyNX9Es2xqiAcJpyklQ7L7I3_'; - -const aceId = 4; - -const cardBackImgPath = './images/card-back-blue.png'; - -let cards = []; - -const playGameButtonElem = document.getElementById('playGame'); -const playButton = document.querySelector('.game-play-button-container'); -const cardContainerElem = document.querySelector('.card-container'); -const collapsedGridAreaTemplate = '"a a" "a a"'; -const cardCollectionCellClass = ".card-pos-a"; - -const numCards = cardObjectDefinitions.length; - -let cardPositions = []; -let gameInProgress = false; -let shufflingInProgress = false; -let cardsRevealed = false; - -const currentGameStatusElem = document.querySelector('.current-status'); -const scoreContainerElem = document.querySelector('.header-score-container'); -const scoreElem = document.querySelector('.score'); -const roundContainerElem = document.querySelector('.header-round-container'); -const roundElem = document.querySelector('.round'); - -const winColor = "green"; -const loseColor = "red"; -const primaryColor = "black"; - -let roundNum = 0; -let maxRounds = 4; -let score = 0; - -let gameObj = {}; - -const localStorageGameKey = "HTA"; - -loadGame(); - -function gameOver() { - updateStatusElement(scoreContainerElem, "none"); - updateStatusElement(roundContainerElem, "none"); - - const gameOverMessage = `Game Over! Final Score - ${score} Click 'Play Game' button to play again`; - - updateStatusElement(currentGameStatusElem, "block", primaryColor, gameOverMessage); - - gameInProgress = false; - playGameButtonElem.disabled = false; - playButton.style.display = ''; -} - -function endRound() { - setTimeout(() => { - if (roundNum == maxRounds) { - gameOver(); - return; - } - else { - startRound(); - } - }, 3000); -} - -function chooseCard(card) { - if (canChooseCard()) { - evaluateCardChoice(card); - saveGameObjectToLocalStorage(score, roundNum); - flipCard(card, false); - - setTimeout(() => { - flipCards(false); - updateStatusElement(currentGameStatusElem, "block", primaryColor, "Card positions revealed"); - endRound(); - }, 3000); - cardsRevealed = true; - } -} - -function calculateScoreToAdd(roundNum) { - if (roundNum == 1) { - return 100; - } - else if (roundNum == 2) { - return 50; - } - else if (roundNum == 3) { - return 25; - } - else { - return 10; - } -} - -function calculateScore() { - const scoreToAdd = calculateScoreToAdd(roundNum); - score = score + scoreToAdd; -} - -function updateScore() { - calculateScore(); - updateStatusElement(scoreElem, "block", primaryColor, `Score ${score}`); -} - -function updateStatusElement(elem, display, color, innerHTML) { - elem.style.display = display; - - if (arguments.length > 2) { - elem.style.color = color; - elem.innerHTML = innerHTML; - } -} - -function outputChoiceFeedBack(hit) { - if (hit) { - winSound.play(); - updateStatusElement(currentGameStatusElem, "block", winColor, "Hit!! - Well Done!! :)"); - } - else { - looseSound.play(); - updateStatusElement(currentGameStatusElem, "block", loseColor, "Missed!! :("); - } -} - -function evaluateCardChoice(card) { - if (card.id == aceId) { - updateScore(); - outputChoiceFeedBack(true); - } - else { - outputChoiceFeedBack(false); - } -} - -function canChooseCard() { - return gameInProgress == true && !shufflingInProgress && !cardsRevealed; -} - -function loadGame() { - createCards(); - cards = document.querySelectorAll('.card'); - cardFlyInEffect(); - playGameButtonElem.addEventListener('click', () => startGame()); - updateStatusElement(scoreContainerElem, "none"); - updateStatusElement(roundContainerElem, "none"); -} - -function checkForIncompleteGame() { - const serializedGameObj = getLocalStorageItemValue(localStorageGameKey); - if (serializedGameObj) { - gameObj = getObjectFromJSON(serializedGameObj); - - if (gameObj.round >= maxRounds) { - removeLocalStorageItem(localStorageGameKey); - } - else { - if (confirm('Would you like to continue with your last game?')) { - score = gameObj.score; - roundNum = gameObj.round; - } - } - } -} - -function startGame() { - bgMusic.play(); - initializeNewGame(); - startRound(); -} - -function initializeNewGame() { - score = 0; - roundNum = 0; - checkForIncompleteGame(); - shufflingInProgress = false; - updateStatusElement(scoreContainerElem, "flex"); - updateStatusElement(roundContainerElem, "flex"); - updateStatusElement(scoreElem, "block", primaryColor, `Score ${score}`); - updateStatusElement(roundElem, "block", primaryColor, `Round ${roundNum}`); -} - -function startRound() { - initializeNewRound(); - collectCards(); - flipCards(true); - shuffleCards(); -} - -function initializeNewRound() { - roundNum++; - playGameButtonElem.disabled = true; - playButton.style.display = 'none'; - gameInProgress = true; - shufflingInProgress = true; - cardsRevealed = false; - updateStatusElement(currentGameStatusElem, "block", primaryColor, "Shuffling..."); - updateStatusElement(roundElem, "block", primaryColor, `Round ${roundNum}`); -} - -function collectCards() { - transformGridArea(collapsedGridAreaTemplate); - addCardsToGridAreaCell(cardCollectionCellClass); - -} - -function transformGridArea(areas) { - cardContainerElem.style.gridTemplateAreas = areas - -} -function addCardsToGridAreaCell(cellPositionClassName) { - const cellPositionElem = document.querySelector(cellPositionClassName) - - cards.forEach((card, index) => { - addChildElement(cellPositionElem, card) - }); -} - -function flipCard(card, flipToBack) { - const innerCardElem = card.firstChild - - if (flipToBack && !innerCardElem.classList.contains('flip-it')) { - innerCardElem.classList.add('flip-it') - } - else if (innerCardElem.classList.contains('flip-it')) { - innerCardElem.classList.remove('flip-it') - } -} - -function flipCards(flipToBack) { - cards.forEach((card, index) => { - setTimeout(() => { - flipCard(card, flipToBack) - }, index * 100) - }); -} - -function cardFlyInEffect() { - const id = setInterval(flyIn, 5) - let cardCount = 0 - - let count = 0 - - function flyIn() { - count++ - if (cardCount == numCards) { - clearInterval(id) - playGameButtonElem.style.display = "inline-block" - } - if (count == 1 || count == 250 || count == 500 || count == 750) { - cardCount++ - let card = document.getElementById(cardCount) - card.classList.remove("fly-in") - } - } -} - -function removeShuffleClasses() { - cards.forEach((card) => { - card.classList.remove("shuffle-left") - card.classList.remove("shuffle-right") - }); -} - -function animateShuffle(shuffleCount) { - const random1 = Math.floor(Math.random() * numCards) + 1 - const random2 = Math.floor(Math.random() * numCards) + 1 - - let card1 = document.getElementById(random1) - let card2 = document.getElementById(random2) - - if (shuffleCount % 4 == 0) { - card1.classList.toggle("shuffle-left") - card1.style.zIndex = 100 - } - if (shuffleCount % 10 == 0) { - card2.classList.toggle("shuffle-right") - card2.style.zIndex = 200 - } -} - -function shuffleCards() { - let shuffleCount = 0 - const id = setInterval(shuffle, 12) - - function shuffle() { - randomizeCardPositions(); - animateShuffle(shuffleCount); - if (shuffleCount == 500) { - clearInterval(id) - shufflingInProgress = false - removeShuffleClasses() - dealCards() - updateStatusElement(currentGameStatusElem, "block", primaryColor, "Please click the card that you think is the Ace of Spades...") - } - else { - shuffleCount++ - } - } -} - -function randomizeCardPositions() { - const random1 = Math.floor(Math.random() * numCards) + 1 - const random2 = Math.floor(Math.random() * numCards) + 1 - - const temp = cardPositions[random1 - 1] - - cardPositions[random1 - 1] = cardPositions[random2 - 1] - cardPositions[random2 - 1] = temp; -} - -function dealCards() { - addCardsToAppropriateCell() - const areasTemplate = returnGridAreasMappedToCardPos(); - transformGridArea(areasTemplate); -} - -function returnGridAreasMappedToCardPos() { - let firstPart = "" - let secondPart = "" - let areas = "" - - cards.forEach((card, index) => { - if (cardPositions[index] == 1) { - areas = areas + "a " - } - else if (cardPositions[index] == 2) { - areas = areas + "b " - } - else if (cardPositions[index] == 3) { - areas = areas + "c " - } - else if (cardPositions[index] == 4) { - areas = areas + "d " - } - if (index == 1) { - firstPart = areas.substring(0, areas.length - 1) - areas = ""; - } - else if (index == 3) { - secondPart = areas.substring(0, areas.length - 1) - } - - }); - - return `"${firstPart}" "${secondPart}"` -} - -function addCardsToAppropriateCell() { - cards.forEach((card) => { - addCardToGridCell(card) - }) -} - -function createCards() { - cardObjectDefinitions.forEach((cardItem) => { - createCard(cardItem) - }) -} - -function createCard(cardItem) { - - //create div elements that make up a card - const cardElem = createElement('div') - const cardInnerElem = createElement('div') - const cardFrontElem = createElement('div') - const cardBackElem = createElement('div') - - //create front and back image elements for a card - const cardFrontImg = createElement('img') - const cardBackImg = createElement('img') - - //add class and id to card element - addClassToElement(cardElem, 'card') - addClassToElement(cardElem, 'fly-in') - addIdToElement(cardElem, cardItem.id) - - //add class to inner card element - addClassToElement(cardInnerElem, 'card-inner') - - //add class to front card element - addClassToElement(cardFrontElem, 'card-front') - - //add class to back card element - addClassToElement(cardBackElem, 'card-back') - - //add src attribute and appropriate value to img element - back of card - addSrcToImageElem(cardBackImg, cardBackImgPath) - - //add src attribute and appropriate value to img element - front of card - addSrcToImageElem(cardFrontImg, cardItem.imagePath) - - //assign class to back image element of back of card - addClassToElement(cardBackImg, 'card-img') - - //assign class to front image element of front of card - addClassToElement(cardFrontImg, 'card-img') - - //add front image element as child element to front card element - addChildElement(cardFrontElem, cardFrontImg) - - //add back image element as child element to back card element - addChildElement(cardBackElem, cardBackImg) - - //add front card element as child element to inner card element - addChildElement(cardInnerElem, cardFrontElem) - - //add back card element as child element to inner card element - addChildElement(cardInnerElem, cardBackElem) - - //add inner card element as child element to card element - addChildElement(cardElem, cardInnerElem) - - //add card element as child element to appropriate grid cell - addCardToGridCell(cardElem) - - initializeCardPositions(cardElem) - - attatchClickEventHandlerToCard(cardElem) -} -function attatchClickEventHandlerToCard(card) { - card.addEventListener('click', () => chooseCard(card)) -} - -function initializeCardPositions(card) { - cardPositions.push(card.id) -} - -function createElement(elemType) { - return document.createElement(elemType) - -} - -function addClassToElement(elem, className) { - elem.classList.add(className) -} - -function addIdToElement(elem, id) { - elem.id = id -} - -function addSrcToImageElem(imgElem, src) { - imgElem.src = src -} - -function addChildElement(parentElem, childElem) { - parentElem.appendChild(childElem) -} - -function addCardToGridCell(card) { - const cardPositionClassName = mapCardIdToGridCell(card); - const cardPosElem = document.querySelector(cardPositionClassName); - addChildElement(cardPosElem, card); -} - -function mapCardIdToGridCell(card) { - if (card.id == 1) { - return '.card-pos-a' - } - else if (card.id == 2) { - return '.card-pos-b' - } - else if (card.id == 3) { - return '.card-pos-c' - } - else if (card.id == 4) { - return '.card-pos-d' - } -} - -//local storage functions -function getSerializedObjectAsJSON(obj) { - return JSON.stringify(obj) -} - -function getObjectFromJSON(json) { - return JSON.parse(json) -} - -function updateLocalStorageItem(key, value) { - localStorage.setItem(key, value) -} - -function removeLocalStorageItem(key) { - localStorage.removeItem(key) -} - -function getLocalStorageItemValue(key) { - return localStorage.getItem(key) -} - -function updateGameObject(score, round) { - gameObj.score = score - gameObj.round = round -} - -function saveGameObjectToLocalStorage(score, round) { - updateGameObject(score, round) - updateLocalStorageItem(localStorageGameKey, getSerializedObjectAsJSON(gameObj)) +const cardObjectDefinitions = [ + { id: 1, imagePath: './images/card-KingHearts.png' }, + { id: 2, imagePath: './images/card-JackClubs.png' }, + { id: 3, imagePath: './images/card-QueenDiamonds.png' }, + { id: 4, imagePath: './images/card-AceSpades.png' } +]; + +// Audio variables +const bgMusic = new Audio(); +bgMusic.src = 'https://drive.google.com/uc?export=download&id=1Y2NcCVRjdQypNCXcj6t-hu8GdqMxMcPS'; +bgMusic.volume = 0.3; + +const winSound = new Audio(); +winSound.src = 'https://drive.google.com/uc?export=download&id=1_U-FQd0q9ZTfnDQTEBtM8ZB0gf-cEUwL'; + +const looseSound = new Audio(); +looseSound.src = 'https://drive.google.com/uc?export=download&id=19tUhCzCGyNX9Es2xqiAcJpyklQ7L7I3_'; + +const aceId = 4; + +const cardBackImgPath = './images/card-back-blue.png'; + +let cards = []; + +const playGameButtonElem = document.getElementById('playGame'); +const playButton = document.querySelector('.game-play-button-container'); +const cardContainerElem = document.querySelector('.card-container'); +const collapsedGridAreaTemplate = '"a a" "a a"'; +const cardCollectionCellClass = ".card-pos-a"; + +const numCards = cardObjectDefinitions.length; + +let cardPositions = []; +let gameInProgress = false; +let shufflingInProgress = false; +let cardsRevealed = false; + +const currentGameStatusElem = document.querySelector('.current-status'); +const scoreContainerElem = document.querySelector('.header-score-container'); +const scoreElem = document.querySelector('.score'); +const roundContainerElem = document.querySelector('.header-round-container'); +const roundElem = document.querySelector('.round'); + +const winColor = "green"; +const loseColor = "red"; +const primaryColor = "black"; + +let roundNum = 0; +let maxRounds = 4; +let score = 0; + +let gameObj = {}; + +const localStorageGameKey = "HTA"; + +loadGame(); + +function gameOver() { + updateStatusElement(scoreContainerElem, "none"); + updateStatusElement(roundContainerElem, "none"); + + const gameOverMessage = `Game Over! Final Score - ${score} Click 'Play Game' button to play again`; + + updateStatusElement(currentGameStatusElem, "block", primaryColor, gameOverMessage); + + gameInProgress = false; + playGameButtonElem.disabled = false; + playButton.style.display = ''; +} + +function endRound() { + setTimeout(() => { + if (roundNum == maxRounds) { + gameOver(); + return; + } + else { + startRound(); + } + }, 3000); +} + +function chooseCard(card) { + if (canChooseCard()) { + evaluateCardChoice(card); + saveGameObjectToLocalStorage(score, roundNum); + flipCard(card, false); + + setTimeout(() => { + flipCards(false); + updateStatusElement(currentGameStatusElem, "block", primaryColor, "Card positions revealed"); + endRound(); + }, 3000); + cardsRevealed = true; + } +} + +function calculateScoreToAdd(roundNum) { + if (roundNum == 1) { + return 100; + } + else if (roundNum == 2) { + return 50; + } + else if (roundNum == 3) { + return 25; + } + else { + return 10; + } +} + +function calculateScore() { + const scoreToAdd = calculateScoreToAdd(roundNum); + score = score + scoreToAdd; +} + +function updateScore() { + calculateScore(); + updateStatusElement(scoreElem, "block", primaryColor, `Score ${score}`); +} + +function updateStatusElement(elem, display, color, innerHTML) { + elem.style.display = display; + + if (arguments.length > 2) { + elem.style.color = color; + elem.innerHTML = innerHTML; + } +} + +function outputChoiceFeedBack(hit) { + if (hit) { + winSound.play(); + updateStatusElement(currentGameStatusElem, "block", winColor, "Hit!! - Well Done!! :)"); + } + else { + looseSound.play(); + updateStatusElement(currentGameStatusElem, "block", loseColor, "Missed!! :("); + } +} + +function evaluateCardChoice(card) { + if (card.id == aceId) { + updateScore(); + outputChoiceFeedBack(true); + } + else { + outputChoiceFeedBack(false); + } +} + +function canChooseCard() { + return gameInProgress == true && !shufflingInProgress && !cardsRevealed; +} + +function loadGame() { + createCards(); + cards = document.querySelectorAll('.card'); + cardFlyInEffect(); + playGameButtonElem.addEventListener('click', () => startGame()); + updateStatusElement(scoreContainerElem, "none"); + updateStatusElement(roundContainerElem, "none"); +} + +function checkForIncompleteGame() { + const serializedGameObj = getLocalStorageItemValue(localStorageGameKey); + if (serializedGameObj) { + gameObj = getObjectFromJSON(serializedGameObj); + + if (gameObj.round >= maxRounds) { + removeLocalStorageItem(localStorageGameKey); + } + else { + if (confirm('Would you like to continue with your last game?')) { + score = gameObj.score; + roundNum = gameObj.round; + } + } + } +} + +function startGame() { + bgMusic.play(); + initializeNewGame(); + startRound(); +} + +function initializeNewGame() { + score = 0; + roundNum = 0; + checkForIncompleteGame(); + shufflingInProgress = false; + updateStatusElement(scoreContainerElem, "flex"); + updateStatusElement(roundContainerElem, "flex"); + updateStatusElement(scoreElem, "block", primaryColor, `Score ${score}`); + updateStatusElement(roundElem, "block", primaryColor, `Round ${roundNum}`); +} + +function startRound() { + initializeNewRound(); + collectCards(); + flipCards(true); + shuffleCards(); +} + +function initializeNewRound() { + roundNum++; + playGameButtonElem.disabled = true; + playButton.style.display = 'none'; + gameInProgress = true; + shufflingInProgress = true; + cardsRevealed = false; + updateStatusElement(currentGameStatusElem, "block", primaryColor, "Shuffling..."); + updateStatusElement(roundElem, "block", primaryColor, `Round ${roundNum}`); +} + +function collectCards() { + transformGridArea(collapsedGridAreaTemplate); + addCardsToGridAreaCell(cardCollectionCellClass); + +} + +function transformGridArea(areas) { + cardContainerElem.style.gridTemplateAreas = areas + +} +function addCardsToGridAreaCell(cellPositionClassName) { + const cellPositionElem = document.querySelector(cellPositionClassName) + + cards.forEach((card, index) => { + addChildElement(cellPositionElem, card) + }); +} + +function flipCard(card, flipToBack) { + const innerCardElem = card.firstChild + + if (flipToBack && !innerCardElem.classList.contains('flip-it')) { + innerCardElem.classList.add('flip-it') + } + else if (innerCardElem.classList.contains('flip-it')) { + innerCardElem.classList.remove('flip-it') + } +} + +function flipCards(flipToBack) { + cards.forEach((card, index) => { + setTimeout(() => { + flipCard(card, flipToBack) + }, index * 100) + }); +} + +function cardFlyInEffect() { + const id = setInterval(flyIn, 5) + let cardCount = 0 + + let count = 0 + + function flyIn() { + count++ + if (cardCount == numCards) { + clearInterval(id) + playGameButtonElem.style.display = "inline-block" + } + if (count == 1 || count == 250 || count == 500 || count == 750) { + cardCount++ + let card = document.getElementById(cardCount) + card.classList.remove("fly-in") + } + } +} + +function removeShuffleClasses() { + cards.forEach((card) => { + card.classList.remove("shuffle-left") + card.classList.remove("shuffle-right") + }); +} + +function animateShuffle(shuffleCount) { + const random1 = Math.floor(Math.random() * numCards) + 1 + const random2 = Math.floor(Math.random() * numCards) + 1 + + let card1 = document.getElementById(random1) + let card2 = document.getElementById(random2) + + if (shuffleCount % 4 == 0) { + card1.classList.toggle("shuffle-left") + card1.style.zIndex = 100 + } + if (shuffleCount % 10 == 0) { + card2.classList.toggle("shuffle-right") + card2.style.zIndex = 200 + } +} + +function shuffleCards() { + let shuffleCount = 0 + const id = setInterval(shuffle, 12) + + function shuffle() { + randomizeCardPositions(); + animateShuffle(shuffleCount); + if (shuffleCount == 500) { + clearInterval(id) + shufflingInProgress = false + removeShuffleClasses() + dealCards() + updateStatusElement(currentGameStatusElem, "block", primaryColor, "Please click the card that you think is the Ace of Spades...") + } + else { + shuffleCount++ + } + } +} + +function randomizeCardPositions() { + const random1 = Math.floor(Math.random() * numCards) + 1 + const random2 = Math.floor(Math.random() * numCards) + 1 + + const temp = cardPositions[random1 - 1] + + cardPositions[random1 - 1] = cardPositions[random2 - 1] + cardPositions[random2 - 1] = temp; +} + +function dealCards() { + addCardsToAppropriateCell() + const areasTemplate = returnGridAreasMappedToCardPos(); + transformGridArea(areasTemplate); +} + +function returnGridAreasMappedToCardPos() { + let firstPart = "" + let secondPart = "" + let areas = "" + + cards.forEach((card, index) => { + if (cardPositions[index] == 1) { + areas = areas + "a " + } + else if (cardPositions[index] == 2) { + areas = areas + "b " + } + else if (cardPositions[index] == 3) { + areas = areas + "c " + } + else if (cardPositions[index] == 4) { + areas = areas + "d " + } + if (index == 1) { + firstPart = areas.substring(0, areas.length - 1) + areas = ""; + } + else if (index == 3) { + secondPart = areas.substring(0, areas.length - 1) + } + + }); + + return `"${firstPart}" "${secondPart}"` +} + +function addCardsToAppropriateCell() { + cards.forEach((card) => { + addCardToGridCell(card) + }) +} + +function createCards() { + cardObjectDefinitions.forEach((cardItem) => { + createCard(cardItem) + }) +} + +function createCard(cardItem) { + + //create div elements that make up a card + const cardElem = createElement('div') + const cardInnerElem = createElement('div') + const cardFrontElem = createElement('div') + const cardBackElem = createElement('div') + + //create front and back image elements for a card + const cardFrontImg = createElement('img') + const cardBackImg = createElement('img') + + //add class and id to card element + addClassToElement(cardElem, 'card') + addClassToElement(cardElem, 'fly-in') + addIdToElement(cardElem, cardItem.id) + + //add class to inner card element + addClassToElement(cardInnerElem, 'card-inner') + + //add class to front card element + addClassToElement(cardFrontElem, 'card-front') + + //add class to back card element + addClassToElement(cardBackElem, 'card-back') + + //add src attribute and appropriate value to img element - back of card + addSrcToImageElem(cardBackImg, cardBackImgPath) + + //add src attribute and appropriate value to img element - front of card + addSrcToImageElem(cardFrontImg, cardItem.imagePath) + + //assign class to back image element of back of card + addClassToElement(cardBackImg, 'card-img') + + //assign class to front image element of front of card + addClassToElement(cardFrontImg, 'card-img') + + //add front image element as child element to front card element + addChildElement(cardFrontElem, cardFrontImg) + + //add back image element as child element to back card element + addChildElement(cardBackElem, cardBackImg) + + //add front card element as child element to inner card element + addChildElement(cardInnerElem, cardFrontElem) + + //add back card element as child element to inner card element + addChildElement(cardInnerElem, cardBackElem) + + //add inner card element as child element to card element + addChildElement(cardElem, cardInnerElem) + + //add card element as child element to appropriate grid cell + addCardToGridCell(cardElem) + + initializeCardPositions(cardElem) + + attatchClickEventHandlerToCard(cardElem) +} +function attatchClickEventHandlerToCard(card) { + card.addEventListener('click', () => chooseCard(card)) +} + +function initializeCardPositions(card) { + cardPositions.push(card.id) +} + +function createElement(elemType) { + return document.createElement(elemType) + +} + +function addClassToElement(elem, className) { + elem.classList.add(className) +} + +function addIdToElement(elem, id) { + elem.id = id +} + +function addSrcToImageElem(imgElem, src) { + imgElem.src = src +} + +function addChildElement(parentElem, childElem) { + parentElem.appendChild(childElem) +} + +function addCardToGridCell(card) { + const cardPositionClassName = mapCardIdToGridCell(card); + const cardPosElem = document.querySelector(cardPositionClassName); + addChildElement(cardPosElem, card); +} + +function mapCardIdToGridCell(card) { + if (card.id == 1) { + return '.card-pos-a' + } + else if (card.id == 2) { + return '.card-pos-b' + } + else if (card.id == 3) { + return '.card-pos-c' + } + else if (card.id == 4) { + return '.card-pos-d' + } +} + +//local storage functions +function getSerializedObjectAsJSON(obj) { + return JSON.stringify(obj) +} + +function getObjectFromJSON(json) { + return JSON.parse(json) +} + +function updateLocalStorageItem(key, value) { + localStorage.setItem(key, value) +} + +function removeLocalStorageItem(key) { + localStorage.removeItem(key) +} + +function getLocalStorageItemValue(key) { + return localStorage.getItem(key) +} + +function updateGameObject(score, round) { + gameObj.score = score + gameObj.round = round +} + +function saveGameObjectToLocalStorage(score, round) { + updateGameObject(score, round) + updateLocalStorageItem(localStorageGameKey, getSerializedObjectAsJSON(gameObj)) } \ No newline at end of file diff --git a/Games/Hunt_Your_Card/style.css b/Games/Hunt_Your_Card/style.css index 035cf0eb1b..3b3b94feed 100644 --- a/Games/Hunt_Your_Card/style.css +++ b/Games/Hunt_Your_Card/style.css @@ -1,288 +1,288 @@ -@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap'); - -* { - margin: 0; - padding: 0; - box-sizing: border-box; - text-decoration: none; - user-select: none; -} - -:root { - --card-width-lg: 157px; - --card-height-lg: 220px; - - --card-width-sm: 120px; - --card-height-sm: 168px; - - --num-cards: 4; - - --card-horizontal-space-lg: 100px; - --card-horizontal-space-sm: 50px; - - --badge-bg-color: darkgrey; - --primary-color: black; - --secondary-color: #ffffff; - - --primary-font: 'Quicksand', sans-serif; -} - -body { - height: 100vh; - font-family: var(--primary-font); -} - -h1 { - margin: 0; - padding: 0; -} - -main { - height: 55%; - display: flex; - justify-content: center; - -} - -.card-container { - position: relative; - margin-top: 1rem; - height: 100%; - width: calc(var(--card-width-lg) * (var(--num-cards) / 2) + var(--card-horizontal-space-lg)); - display: grid; - grid-template-columns: 1fr 1fr; - grid-template-rows: 1fr 1fr; - grid-template-areas: "a b" - "c d"; - gap: 3rem; - -} - -.card-pos-a { - grid-area: a; - /* background-color: gray; */ -} - -.card-pos-b { - grid-area: b; - /* background-color: goldenrod; */ -} - -.card-pos-c { - grid-area: c; - /* background-color: rosybrown; */ -} - -.card-pos-d { - grid-area: d; - /* background-color: darkcyan; */ -} - -.card-pos-a, -.card-pos-b, -.card-pos-c, -.card-pos-d { - display: flex; - justify-content: center; - align-items: center; -} - -.card { - position: absolute; - height: var(--card-height-lg); - width: var(--card-width-lg); - perspective: 1000px; - cursor: pointer; - transition: transform 0.6s ease-in-out -} - -.card-inner { - position: relative; - width: 100%; - height: 100%; - text-align: center; - transition: transform 0.6s; - transform-style: preserve-3d; -} - -.card-front, -.card-back { - position: absolute; - width: 100%; - height: 100%; - -webkit-backface-visibility: hidden; - backface-visibility: hidden; -} - -.card-img { - height: 100%; -} - -.card-back { - transform: rotateY(180deg); -} - -.card-inner.flip-it { - transform: rotateY(180deg); -} - -header { - display: flex; - flex-direction: column; - gap: 2rem; - margin-bottom: 10px; -} - -.header-title-container { - display: flex; - justify-content: center; -} - -.header-round-info-container { - display: flex; - justify-content: space-evenly; -} - -.current-status { - font-size: 1.5rem; - text-align: center; -} - -.header-status-info-container, -.header-button-container, -.header-score-container, -.header-round-container, -.header-img-container { - display: flex; - justify-content: center; - align-items: center; -} - -.header-score-container, -.header-round-container, -.header-img-container { - width: 150px; -} - -.header-img { - height: 75px; - border-radius: 5px; - border: 1px solid black; - padding: 5px; - box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); - transform: rotate(-3deg); -} - -.badge { - background-color: var(--badge-bg-color); - color: var(--secondary-color); - padding: 2px 10px 3px; - border-radius: 15px; -} - -.game-play-button-container { - width: 150px; - height: 70px; -} - -/* CSS */ -#playGame { - appearance: none; - background-color: transparent; - border: 2px solid #1A1A1A; - border-radius: 15px; - box-sizing: border-box; - color: #3B3B3B; - cursor: pointer; - display: none; - font-family: var(--primary-font); - font-size: 16px; - font-weight: 600; - line-height: normal; - margin: 0; - min-height: 60px; - min-width: 0; - outline: none; - padding: 16px 24px; - text-align: center; - text-decoration: none; - transition: all 300ms cubic-bezier(.23, 1, 0.32, 1); - user-select: none; - -webkit-user-select: none; - touch-action: manipulation; - width: 100%; - will-change: transform; - animation: game-play-button-fade-in 10s 1; -} - -#playGame:disabled { - pointer-events: none; -} - -#playGame:hover { - color: #fff; - background-color: #1A1A1A; - box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px; - transform: translateY(-2px); -} - -#playGame:active { - box-shadow: none; - transform: translateY(0); -} - -@keyframes game-play-button-fade-in { - from { - opacity: 0; - } - - to { - opacity: 1; - } -} - -.card.shuffle-left { - transform: translateX(300px) translateY(40px); -} - -.card.shuffle-right { - transform: translateX(-350px) translateY(-40px); -} - -.card.fly-in { - transform: translateY(-1000px) translateX(-600px) rotate(45deg); -} - -@media screen and (max-width:600px) { - .card { - width: var(--card-width-sm); - height: var(--card-height-sm); - } - - .card-container { - width: calc(var(--card-width-sm) * (var(--num-cards)/2) + var(--card-horizontal-space-sm)); - } - - main { - height: 50%; - } - - .current-status { - font-size: 1.2rem; - } - - .game-play-button-container { - width: 120px; - height: 40px; - } - - #playGame { - padding: 6px 8px; - font-size: 12px; - min-height: 40px; - } - - .header-img { - height: 55px; - } +@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap'); + +* { + margin: 0; + padding: 0; + box-sizing: border-box; + text-decoration: none; + user-select: none; +} + +:root { + --card-width-lg: 157px; + --card-height-lg: 220px; + + --card-width-sm: 120px; + --card-height-sm: 168px; + + --num-cards: 4; + + --card-horizontal-space-lg: 100px; + --card-horizontal-space-sm: 50px; + + --badge-bg-color: darkgrey; + --primary-color: black; + --secondary-color: #ffffff; + + --primary-font: 'Quicksand', sans-serif; +} + +body { + height: 100vh; + font-family: var(--primary-font); +} + +h1 { + margin: 0; + padding: 0; +} + +main { + height: 55%; + display: flex; + justify-content: center; + +} + +.card-container { + position: relative; + margin-top: 1rem; + height: 100%; + width: calc(var(--card-width-lg) * (var(--num-cards) / 2) + var(--card-horizontal-space-lg)); + display: grid; + grid-template-columns: 1fr 1fr; + grid-template-rows: 1fr 1fr; + grid-template-areas: "a b" + "c d"; + gap: 3rem; + +} + +.card-pos-a { + grid-area: a; + /* background-color: gray; */ +} + +.card-pos-b { + grid-area: b; + /* background-color: goldenrod; */ +} + +.card-pos-c { + grid-area: c; + /* background-color: rosybrown; */ +} + +.card-pos-d { + grid-area: d; + /* background-color: darkcyan; */ +} + +.card-pos-a, +.card-pos-b, +.card-pos-c, +.card-pos-d { + display: flex; + justify-content: center; + align-items: center; +} + +.card { + position: absolute; + height: var(--card-height-lg); + width: var(--card-width-lg); + perspective: 1000px; + cursor: pointer; + transition: transform 0.6s ease-in-out +} + +.card-inner { + position: relative; + width: 100%; + height: 100%; + text-align: center; + transition: transform 0.6s; + transform-style: preserve-3d; +} + +.card-front, +.card-back { + position: absolute; + width: 100%; + height: 100%; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; +} + +.card-img { + height: 100%; +} + +.card-back { + transform: rotateY(180deg); +} + +.card-inner.flip-it { + transform: rotateY(180deg); +} + +header { + display: flex; + flex-direction: column; + gap: 2rem; + margin-bottom: 10px; +} + +.header-title-container { + display: flex; + justify-content: center; +} + +.header-round-info-container { + display: flex; + justify-content: space-evenly; +} + +.current-status { + font-size: 1.5rem; + text-align: center; +} + +.header-status-info-container, +.header-button-container, +.header-score-container, +.header-round-container, +.header-img-container { + display: flex; + justify-content: center; + align-items: center; +} + +.header-score-container, +.header-round-container, +.header-img-container { + width: 150px; +} + +.header-img { + height: 75px; + border-radius: 5px; + border: 1px solid black; + padding: 5px; + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); + transform: rotate(-3deg); +} + +.badge { + background-color: var(--badge-bg-color); + color: var(--secondary-color); + padding: 2px 10px 3px; + border-radius: 15px; +} + +.game-play-button-container { + width: 150px; + height: 70px; +} + +/* CSS */ +#playGame { + appearance: none; + background-color: transparent; + border: 2px solid #1A1A1A; + border-radius: 15px; + box-sizing: border-box; + color: #3B3B3B; + cursor: pointer; + display: none; + font-family: var(--primary-font); + font-size: 16px; + font-weight: 600; + line-height: normal; + margin: 0; + min-height: 60px; + min-width: 0; + outline: none; + padding: 16px 24px; + text-align: center; + text-decoration: none; + transition: all 300ms cubic-bezier(.23, 1, 0.32, 1); + user-select: none; + -webkit-user-select: none; + touch-action: manipulation; + width: 100%; + will-change: transform; + animation: game-play-button-fade-in 10s 1; +} + +#playGame:disabled { + pointer-events: none; +} + +#playGame:hover { + color: #fff; + background-color: #1A1A1A; + box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px; + transform: translateY(-2px); +} + +#playGame:active { + box-shadow: none; + transform: translateY(0); +} + +@keyframes game-play-button-fade-in { + from { + opacity: 0; + } + + to { + opacity: 1; + } +} + +.card.shuffle-left { + transform: translateX(300px) translateY(40px); +} + +.card.shuffle-right { + transform: translateX(-350px) translateY(-40px); +} + +.card.fly-in { + transform: translateY(-1000px) translateX(-600px) rotate(45deg); +} + +@media screen and (max-width:600px) { + .card { + width: var(--card-width-sm); + height: var(--card-height-sm); + } + + .card-container { + width: calc(var(--card-width-sm) * (var(--num-cards)/2) + var(--card-horizontal-space-sm)); + } + + main { + height: 50%; + } + + .current-status { + font-size: 1.2rem; + } + + .game-play-button-container { + width: 120px; + height: 40px; + } + + #playGame { + padding: 6px 8px; + font-size: 12px; + min-height: 40px; + } + + .header-img { + height: 55px; + } } \ No newline at end of file diff --git a/Games/Island_Survival/index.html b/Games/Island_Survival/index.html index cc6c45abe9..37c11fbd6b 100644 --- a/Games/Island_Survival/index.html +++ b/Games/Island_Survival/index.html @@ -1,3 +1,3 @@ -๐Ÿ

Loading...

ISLAND NOT FOUND

New Game

Save Game

Load Game




Shift: run
W,A,S,D/Z,Q,S,D/Arrows: move
Mouse: look around
E,Space: interact
F: flashlight
Esc,M: menu
\ No newline at end of file diff --git a/Games/Johnny_Smiter/src/procTrack.js b/Games/Johnny_Smiter/src/procTrack.js index 40ea8793a1..e72f8109ab 100644 --- a/Games/Johnny_Smiter/src/procTrack.js +++ b/Games/Johnny_Smiter/src/procTrack.js @@ -1,286 +1,286 @@ -var ProcTrack; - -(function(){ -var last= 0.9015853619202971; -var rnd=function(){ - last++; - last=((last*last*255)%128)/128; - return last; -}; - -ProcTrack=function(options){ - for(i in options) this[i]=options[i]; - this.trackPoints=this.generateTrackPoints(); - this.interPoints=this.generateTrackInterPoints(this.numTrackInterPoints); - this.randomData=this.generateRandomData(); - this.heightMap=this.generateHeightMap(); - this.terrainMesh=this.generateTerrainMesh(); - //this.trackMesh=this.generateRoadMesh(); -}; -ProcTrack.prototype.numTrackPoints=42; -ProcTrack.prototype.numTrackInterPoints=150; -ProcTrack.prototype.terrainSize=300; -ProcTrack.prototype.height=1; -ProcTrack.prototype.trackSize=220; -ProcTrack.prototype.trackDiv=0.75; -ProcTrack.prototype.trackWidth=2; -ProcTrack.prototype.trackFalloffDistance=15; -ProcTrack.prototype.trackHeightMin=3.5; -ProcTrack.prototype.trackHeightMax=4.5; - -ProcTrack.prototype.generateTrackPoints=function(){ - var points=[]; - var NUM=this.numTrackPoints; - var trackRange=this.trackHeightMax-this.trackHeightMin; - var last=0; - var rand=0; - var lastd=0; - for(var i=0; i2){ - if(rnd()>0.5){ - var rad=i/(NUM*0.5)*Math.PI; - var d=rnd()*this.trackSize/2*this.trackDiv+this.trackSize/2*(1-this.trackDiv); - //if(d>lastd) rad+=(rnd()-0.5)/(NUM*0.5)*6; - points.push([Math.sin(rad)*d+this.terrainSize/2, Math.cos(rad)*d+this.terrainSize/2, (rnd()*trackRange+this.trackHeightMin)]); - last=i; - lastd=d - } - } - } - return points; -}; - -ProcTrack.prototype.generateRandomData=function(){ - var data=[]; - for(var x=0;x<8;x++){ - data[x]=[]; - for(var y=0;y<8;y++){ - data[x][y]=rnd(); - } - }; - return data; -}; - -ProcTrack.prototype.generateTrackInterPoints=function(num){ - var points=[]; - for(var i=0;i 0; - var st2=n23[0]*p13[0]+n23[1]*p13[1] < 0; - var d,h; - - if(st1 && st2){ - d=Math.abs(n23[1]*p12[0]-n23[0]*p12[1]); - var t=p1d/l23; - h=this.mix(p2[2],p3[2],t); - }else if(st1){ - d=l13; - h=p3[2]; - }else{ - d=l12; - h=p2[2]; - } - return [d,h]; -}; - -ProcTrack.prototype.distanceFromTrack=function(x,y){ - var distance=10000; - var height=0; - var v=[x,y]; - var points=this.interPoints; - for(var i=0;i2){ + if(rnd()>0.5){ + var rad=i/(NUM*0.5)*Math.PI; + var d=rnd()*this.trackSize/2*this.trackDiv+this.trackSize/2*(1-this.trackDiv); + //if(d>lastd) rad+=(rnd()-0.5)/(NUM*0.5)*6; + points.push([Math.sin(rad)*d+this.terrainSize/2, Math.cos(rad)*d+this.terrainSize/2, (rnd()*trackRange+this.trackHeightMin)]); + last=i; + lastd=d + } + } + } + return points; +}; + +ProcTrack.prototype.generateRandomData=function(){ + var data=[]; + for(var x=0;x<8;x++){ + data[x]=[]; + for(var y=0;y<8;y++){ + data[x][y]=rnd(); + } + }; + return data; +}; + +ProcTrack.prototype.generateTrackInterPoints=function(num){ + var points=[]; + for(var i=0;i 0; + var st2=n23[0]*p13[0]+n23[1]*p13[1] < 0; + var d,h; + + if(st1 && st2){ + d=Math.abs(n23[1]*p12[0]-n23[0]*p12[1]); + var t=p1d/l23; + h=this.mix(p2[2],p3[2],t); + }else if(st1){ + d=l13; + h=p3[2]; + }else{ + d=l12; + h=p2[2]; + } + return [d,h]; +}; + +ProcTrack.prototype.distanceFromTrack=function(x,y){ + var distance=10000; + var height=0; + var v=[x,y]; + var points=this.interPoints; + for(var i=0;i - -## **Description ๐Ÿ“ƒ** -"Know Your Country" is an interactive educational game that tests players' knowledge about different countries around the world. Through engaging quizzes and challenges, players learn about geography, history, culture, landmarks, and more. The game presents a diverse range of questions, promoting global awareness and cross-cultural understanding. Players can track their progress, unlock achievements, and compete with friends to enhance the learning experience. "Know Your Country" aims to foster curiosity and appreciation for the world's rich diversity. -- - -## **functionalities ๐ŸŽฎ** - -"Know Your Country" offers interactive quizzes that challenge players with questions about various countries' geography, history, culture, landmarks, and more.The game provides informative resources, including fun facts and detailed information about different countries, helping players expand their knowledge. -Players can track their performance and progress, enabling them to see their improvement over time and set personal learning goals. - -- -
- -## **How to play? ๐Ÿ•น๏ธ** - -In Know Your Country choosing one of the option from domains helps to take answer multiple-choice questions about the country's geography, culture, and history.Earn points for correct answers, track your progress, and aim for a high score while learning about diverse countries. -- - -
- -## **Screenshots ๐Ÿ“ธ** - -
- +# **Know Your Country** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +"Know Your Country" is an interactive educational game that tests players' knowledge about different countries around the world. Through engaging quizzes and challenges, players learn about geography, history, culture, landmarks, and more. The game presents a diverse range of questions, promoting global awareness and cross-cultural understanding. Players can track their progress, unlock achievements, and compete with friends to enhance the learning experience. "Know Your Country" aims to foster curiosity and appreciation for the world's rich diversity. +- + +## **functionalities ๐ŸŽฎ** + +"Know Your Country" offers interactive quizzes that challenge players with questions about various countries' geography, history, culture, landmarks, and more.The game provides informative resources, including fun facts and detailed information about different countries, helping players expand their knowledge. +Players can track their performance and progress, enabling them to see their improvement over time and set personal learning goals. + +- +
+ +## **How to play? ๐Ÿ•น๏ธ** + +In Know Your Country choosing one of the option from domains helps to take answer multiple-choice questions about the country's geography, culture, and history.Earn points for correct answers, track your progress, and aim for a high score while learning about diverse countries. +- + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ diff --git a/Games/Know_Your_Country/index.html b/Games/Know_Your_Country/index.html index b38406558a..73a1640bee 100644 --- a/Games/Know_Your_Country/index.html +++ b/Games/Know_Your_Country/index.html @@ -1,17 +1,17 @@ - - The Geography Game - - - - -
-

WELCOME TO THE GEOGRAPHY QUIZ

-

What quiz would you like to play?

- - - -
-
-
- + + The Geography Game + + + + +
+

WELCOME TO THE GEOGRAPHY QUIZ

+

What quiz would you like to play?

+ + + +
+
+
+ \ No newline at end of file diff --git a/Games/Know_Your_Country/index.js b/Games/Know_Your_Country/index.js index b9fc1139cc..a0eba94536 100644 --- a/Games/Know_Your_Country/index.js +++ b/Games/Know_Your_Country/index.js @@ -1,203 +1,203 @@ -let dataBase = [], QN = 0, correctAnswers = 0, t = 0, limit = 4; -let i, cities, correct, flag, countries, population; -let box = document.getElementById("box") -let prev = document.getElementById("previousAnswer") - -fetch("https://restcountries.com/v2/all?fields=name,capital,population,flag") - .then(handleErrors) - .then(data => data.json()) - .then(result => { dataBase = result }) - .catch((error) => { - prev.innerHTML = error + "
Please try again later" - console.log(error) -}); - -function handleErrors(response) { - if (!response.ok) { - console.log(response.statusText) - throw Error(response.statusText); - } - return response; -} - -function rmv() { - box.innerHTML = "" -} - -function correctAudio() { - new Audio("https://www.raphburk.com/wp-content/uploads/2020/03/message.wav").play() -} - -function wrongAudio() { - new Audio("https://www.raphburk.com/wp-content/uploads/2020/03/thunder.wav").play() -} - -function finishAudio () { - new Audio("https://www.raphburk.com/wp-content/uploads/2020/03/checkpoint.wav").play() -} - -function capitals() { - rmv() - QN++ - i = Math.floor(Math.random() * dataBase.length) - if (dataBase[i].capital === "") { - cities = ["N/A"] - correct = "N/A" - } else { - cities = [dataBase[i].capital] - correct = dataBase[i].capital - } - - - while (cities.length < limit) { - let choice = dataBase[Math.floor(Math.random() * dataBase.length)].capital - if (!cities.includes(choice) || !cities.includes("N/A")) { - if(choice === "") { - cities.push("N/A") - } else { - cities.push(choice) - } - } - } - - cities.sort() - - box.innerHTML += ` -

Question number: ${QN}

-

What is the capital of ${dataBase[i].name}?

-
` - - cities.map(city => { - document.getElementById("buttons").innerHTML += ` - ` - }) -} - -function testcapital (el) { - rmv() - if (el == correct){ - correctAudio() - prev.innerHTML = `

PREVIOUS QUESTION :
- YES! the Capital of ${dataBase[i].name} is ${correct}!

` - correctAnswers ++ - if(QN % 10 != 0){ capitals() } - else { finish() } - } else { - wrongAudio() - prev.innerHTML = `

PREVIOUS QUESTION :
- NO, the Capital of ${dataBase[i].name} is ${correct}

` - if(QN % 10 != 0){ capitals() } - else { finish() } - } -} - -function flags () { - rmv() - QN++ - i = Math.floor(Math.random() * dataBase.length) - countries = [dataBase[i].name] - correct = dataBase[i].name - - while (countries.length < limit) { - let choice = dataBase[Math.floor(Math.random() * dataBase.length)].name - if (!countries.includes(choice)) { countries.push(choice) } - } - - countries.sort() - - box.innerHTML += ` -

Question number: ${QN}

-

What country does this flag belongs to?

- -
` - - countries.map(country => { - document.getElementById("buttons").innerHTML += ` - ` - }) -} - -function testflag (el) { - rmv() - if (el == correct){ - correctAudio() - prev.innerHTML = ` -

PREVIOUS QUESTION :
- YES! it is the flag of ${dataBase[i].name}!

- ` - correctAnswers ++ - if(QN % 10 != 0){ flags() } - else { finish() } - - } else { - wrongAudio() - prev.innerHTML = ` -

PREVIOUS QUESTION :
- NO, it was the flag of ${dataBase[i].name}

- ` - if(QN % 10 != 0){ flags() } - else { finish() } - } -} - -function populationNumber() { - rmv() - QN++ - i = Math.floor(Math.random() * dataBase.length) - population = [`${Math.round(dataBase[i].population / 1000000).toLocaleString('en')}`] - correct = `${Math.round(dataBase[i].population / 1000000).toLocaleString('en')}` - - while (true) { - let idx = Math.floor(Math.random() * dataBase.length) - let choice = `${Math.round(dataBase[idx].population / 1000000).toLocaleString('en')}` - if (population.length == limit) { break } - if (!population.includes(choice)) { population.push(choice) } - } - - population.sort() - - box.innerHTML += ` -

Question number: ${QN}

-

What is the population of ${dataBase[i].name}?
Rounded in millions

-
` - - population.map(pop => { - document.getElementById("buttons").innerHTML += ` - ` - }) -} - -function testpopulation(el) { - rmv() - if (el == correct){ - correctAudio() - prev.innerHTML = ` -

PREVIOUS QUESTION :
- YES! The population of ${dataBase[i].name} is ${dataBase[i].population.toLocaleString('en')}!

` - correctAnswers ++ - if (QN % 10 != 0) { populationNumber() } - else { finish() } - - } else { - wrongAudio() - prev.innerHTML = ` -

PREVIOUS QUESTION :
- NO, it was the flag of ${dataBase[i].name} is ${dataBase[i].population.toLocaleString('en')}

` - if (QN % 10 != 0) { populationNumber() } - else { finish() } - } -} - -function finish() { - finishAudio() - box.innerHTML += ` -

Bravo!
- You finished the test!

-

Your Score is ${correctAnswers}/${QN}

-

Are you ready for 10 more questions?

- - - ` - prev.innerHTML = `` - +let dataBase = [], QN = 0, correctAnswers = 0, t = 0, limit = 4; +let i, cities, correct, flag, countries, population; +let box = document.getElementById("box") +let prev = document.getElementById("previousAnswer") + +fetch("https://restcountries.com/v2/all?fields=name,capital,population,flag") + .then(handleErrors) + .then(data => data.json()) + .then(result => { dataBase = result }) + .catch((error) => { + prev.innerHTML = error + "
Please try again later" + console.log(error) +}); + +function handleErrors(response) { + if (!response.ok) { + console.log(response.statusText) + throw Error(response.statusText); + } + return response; +} + +function rmv() { + box.innerHTML = "" +} + +function correctAudio() { + new Audio("https://www.raphburk.com/wp-content/uploads/2020/03/message.wav").play() +} + +function wrongAudio() { + new Audio("https://www.raphburk.com/wp-content/uploads/2020/03/thunder.wav").play() +} + +function finishAudio () { + new Audio("https://www.raphburk.com/wp-content/uploads/2020/03/checkpoint.wav").play() +} + +function capitals() { + rmv() + QN++ + i = Math.floor(Math.random() * dataBase.length) + if (dataBase[i].capital === "") { + cities = ["N/A"] + correct = "N/A" + } else { + cities = [dataBase[i].capital] + correct = dataBase[i].capital + } + + + while (cities.length < limit) { + let choice = dataBase[Math.floor(Math.random() * dataBase.length)].capital + if (!cities.includes(choice) || !cities.includes("N/A")) { + if(choice === "") { + cities.push("N/A") + } else { + cities.push(choice) + } + } + } + + cities.sort() + + box.innerHTML += ` +

Question number: ${QN}

+

What is the capital of ${dataBase[i].name}?

+
` + + cities.map(city => { + document.getElementById("buttons").innerHTML += ` + ` + }) +} + +function testcapital (el) { + rmv() + if (el == correct){ + correctAudio() + prev.innerHTML = `

PREVIOUS QUESTION :
+ YES! the Capital of ${dataBase[i].name} is ${correct}!

` + correctAnswers ++ + if(QN % 10 != 0){ capitals() } + else { finish() } + } else { + wrongAudio() + prev.innerHTML = `

PREVIOUS QUESTION :
+ NO, the Capital of ${dataBase[i].name} is ${correct}

` + if(QN % 10 != 0){ capitals() } + else { finish() } + } +} + +function flags () { + rmv() + QN++ + i = Math.floor(Math.random() * dataBase.length) + countries = [dataBase[i].name] + correct = dataBase[i].name + + while (countries.length < limit) { + let choice = dataBase[Math.floor(Math.random() * dataBase.length)].name + if (!countries.includes(choice)) { countries.push(choice) } + } + + countries.sort() + + box.innerHTML += ` +

Question number: ${QN}

+

What country does this flag belongs to?

+ +
` + + countries.map(country => { + document.getElementById("buttons").innerHTML += ` + ` + }) +} + +function testflag (el) { + rmv() + if (el == correct){ + correctAudio() + prev.innerHTML = ` +

PREVIOUS QUESTION :
+ YES! it is the flag of ${dataBase[i].name}!

+ ` + correctAnswers ++ + if(QN % 10 != 0){ flags() } + else { finish() } + + } else { + wrongAudio() + prev.innerHTML = ` +

PREVIOUS QUESTION :
+ NO, it was the flag of ${dataBase[i].name}

+ ` + if(QN % 10 != 0){ flags() } + else { finish() } + } +} + +function populationNumber() { + rmv() + QN++ + i = Math.floor(Math.random() * dataBase.length) + population = [`${Math.round(dataBase[i].population / 1000000).toLocaleString('en')}`] + correct = `${Math.round(dataBase[i].population / 1000000).toLocaleString('en')}` + + while (true) { + let idx = Math.floor(Math.random() * dataBase.length) + let choice = `${Math.round(dataBase[idx].population / 1000000).toLocaleString('en')}` + if (population.length == limit) { break } + if (!population.includes(choice)) { population.push(choice) } + } + + population.sort() + + box.innerHTML += ` +

Question number: ${QN}

+

What is the population of ${dataBase[i].name}?
Rounded in millions

+
` + + population.map(pop => { + document.getElementById("buttons").innerHTML += ` + ` + }) +} + +function testpopulation(el) { + rmv() + if (el == correct){ + correctAudio() + prev.innerHTML = ` +

PREVIOUS QUESTION :
+ YES! The population of ${dataBase[i].name} is ${dataBase[i].population.toLocaleString('en')}!

` + correctAnswers ++ + if (QN % 10 != 0) { populationNumber() } + else { finish() } + + } else { + wrongAudio() + prev.innerHTML = ` +

PREVIOUS QUESTION :
+ NO, it was the flag of ${dataBase[i].name} is ${dataBase[i].population.toLocaleString('en')}

` + if (QN % 10 != 0) { populationNumber() } + else { finish() } + } +} + +function finish() { + finishAudio() + box.innerHTML += ` +

Bravo!
+ You finished the test!

+

Your Score is ${correctAnswers}/${QN}

+

Are you ready for 10 more questions?

+ + + ` + prev.innerHTML = `` + } \ No newline at end of file diff --git a/Games/Know_Your_Country/style.css b/Games/Know_Your_Country/style.css index 4d653917a6..6f1f10e99b 100644 --- a/Games/Know_Your_Country/style.css +++ b/Games/Know_Your_Country/style.css @@ -1,63 +1,63 @@ -body { - width: auto; - height: fit-content; - margin: 100px auto; - text-align: center; - font-size: 20px; - font-family: 'Dosis', cursive; -} - -img { - width : 300px; - border : 2px solid black; -} - -.mini { - width : 100px; - border : 1px solid black; -} -#questionNumber { - font-family: inherit; - margin : 10px; - text-align: center; -} - -#question { - font-family: inherit; - margin : 10px; - text-align: center; -} - -#previousAnswer { - width: auto; - height: fit-content; - margin: 100px auto; - text-align: center; - font-size: 20px; - font-family: inherit; -} - -button { - background-color: #e7e7e7; - color: black; - border: none; - padding: 15px 32px; - text-align: center; - text-decoration: none; - display: inline-block; - font-size: 16px; - margin: 4px 2px; - cursor: pointer; -} - -.correct { - border : 2px solid green; - border-radius : 30%; -} - -.wrong { - border : 2px solid red; - border-radius : 30%; -} - - +body { + width: auto; + height: fit-content; + margin: 100px auto; + text-align: center; + font-size: 20px; + font-family: 'Dosis', cursive; +} + +img { + width : 300px; + border : 2px solid black; +} + +.mini { + width : 100px; + border : 1px solid black; +} +#questionNumber { + font-family: inherit; + margin : 10px; + text-align: center; +} + +#question { + font-family: inherit; + margin : 10px; + text-align: center; +} + +#previousAnswer { + width: auto; + height: fit-content; + margin: 100px auto; + text-align: center; + font-size: 20px; + font-family: inherit; +} + +button { + background-color: #e7e7e7; + color: black; + border: none; + padding: 15px 32px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 16px; + margin: 4px 2px; + cursor: pointer; +} + +.correct { + border : 2px solid green; + border-radius : 30%; +} + +.wrong { + border : 2px solid red; + border-radius : 30%; +} + + diff --git a/Games/Lighthouse/README.md b/Games/Lighthouse/README.md index bdc2afa209..379d537412 100644 --- a/Games/Lighthouse/README.md +++ b/Games/Lighthouse/README.md @@ -1,32 +1,32 @@ -# **Build A Lighthouse** - ---- - -
- -## **Description ๐Ÿ“ƒ** -Build a Lighthouse is an immersive and challenging strategy game where players are tasked with constructing a vital structure that will guide ships safely to shore before darkness falls. If player failed to build it brefore time, he will lose the game. - -## **functionalities ๐ŸŽฎ** -Player can build their own types of different designs of lighthouse. As timer the surrounding is slowly changing from day to night.Block's color of house is also changes on tapping multiple times. -- -
- -## **How to play? ๐Ÿ•น๏ธ** -Open the game, and start building the lighthouse of own different design. Before the ending of day. -- - -
- -## **Screenshots ๐Ÿ“ธ** - -
-[GameNight](Games\Lighthouse\Game_night.png) -[GameStart](Games\Lighthouse\Game_start.png) -[Gameover](Games\Lighthouse\Gameover.png) -[Lighthouse](Games\Lighthouse\Lighthouse_1.png) - -
- -## **Working video ๐Ÿ“น** -assets\animations\Lighthouse.mp4 +# **Build A Lighthouse** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +Build a Lighthouse is an immersive and challenging strategy game where players are tasked with constructing a vital structure that will guide ships safely to shore before darkness falls. If player failed to build it brefore time, he will lose the game. + +## **functionalities ๐ŸŽฎ** +Player can build their own types of different designs of lighthouse. As timer the surrounding is slowly changing from day to night.Block's color of house is also changes on tapping multiple times. +- +
+ +## **How to play? ๐Ÿ•น๏ธ** +Open the game, and start building the lighthouse of own different design. Before the ending of day. +- + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+[GameNight](Games\Lighthouse\Game_night.png) +[GameStart](Games\Lighthouse\Game_start.png) +[Gameover](Games\Lighthouse\Gameover.png) +[Lighthouse](Games\Lighthouse\Lighthouse_1.png) + +
+ +## **Working video ๐Ÿ“น** +assets\animations\Lighthouse.mp4 diff --git a/Games/Lighthouse/index.html b/Games/Lighthouse/index.html index e379aa0e55..b8f6e0269b 100644 --- a/Games/Lighthouse/index.html +++ b/Games/Lighthouse/index.html @@ -1,218 +1,218 @@ - - - - - Build A Lighthouse Game. - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
- - - - - - - - -
- - - - - - - - -
- - - - - -
- - - - -
- - - - -
- - - - -
- - -
- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - -
- -
- - - - -

NICE ONE!

-

You built a lighthouse before nightfall!

-

The ships and islanders are safe!

-
-
- - - -

GAME OVER!

-

I'm afraid I have some very bad news...

-

A ship has crashed into your beautiful island.

-

Everybody is dead!

-

Soz! You should build a lighthouse.

- Try Again -
-
-
-
- -
- - -
- - - - + + + + + Build A Lighthouse Game. + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + + + + + + + +
+ + + + + +
+ + + + +
+ + + + +
+ + + + +
+ + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ +
+ + + + +

NICE ONE!

+

You built a lighthouse before nightfall!

+

The ships and islanders are safe!

+
+
+ + + +

GAME OVER!

+

I'm afraid I have some very bad news...

+

A ship has crashed into your beautiful island.

+

Everybody is dead!

+

Soz! You should build a lighthouse.

+ Try Again +
+
+
+
+ +
+ + +
+ + + + diff --git a/Games/Lighthouse/script.js b/Games/Lighthouse/script.js index 2442c868df..dde3155f83 100644 --- a/Games/Lighthouse/script.js +++ b/Games/Lighthouse/script.js @@ -1,5 +1,5 @@ -// 100% CSS. No artificial colours or ingredients. - -// First person to screenshot a lighthouse wins! - +// 100% CSS. No artificial colours or ingredients. + +// First person to screenshot a lighthouse wins! + // Your time starts now... \ No newline at end of file diff --git a/Games/Lighthouse/style.css b/Games/Lighthouse/style.css index eb2efa3452..60284a9878 100644 --- a/Games/Lighthouse/style.css +++ b/Games/Lighthouse/style.css @@ -1,29245 +1,29245 @@ -@charset "UTF-8"; -.house.row3:checked ~ div, -.shed.row3:checked ~ div { - filter: hue-rotate(-20deg); -} - -.house.row2:checked ~ div, -.shed.row2:checked ~ div { - filter: hue-rotate(-35deg); -} - -.house.row1:checked ~ div, -.shed.row1:checked ~ div { - filter: hue-rotate(-50deg); -} - -html { - font-size: 0.97vh; - width: 100%; - height: 100%; - background: #f3cece; - overflow: hidden; -} - -body { - margin: 0; - overflow: hidden; - width: 100%; - height: 100%; - background: linear-gradient(rgba(96, 139, 136, 0.5), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0)); - box-shadow: inset 0 0 5rem 0 #252529; -} -body, -body *, -body *:before, -body *:after { - display: block; - top: 0; - left: 0; - box-sizing: border-box; - position: absolute; - content: ""; -} - -div, -house, -shed, -hbtn, -sbtn { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - margin: auto; - width: 50rem; - height: 50rem; - display: flex; - flex-wrap: wrap; - align-content: flex-start; -} -div label, -house label, -shed label, -hbtn label, -sbtn label { - width: calc(50rem / 4); - height: calc(50rem / 4); - position: relative; - border: none; - background: none; - padding: 0; - margin: 0; - display: inline; - cursor: pointer; - box-shadow: 0 0 0 2rem rgba(255, 255, 255, 0); -} -div label *, -div label *:before, -div label *:after, -house label *, -house label *:before, -house label *:after, -shed label *, -shed label *:before, -shed label *:after, -hbtn label *, -hbtn label *:before, -hbtn label *:after, -sbtn label *, -sbtn label *:before, -sbtn label *:after { - transform: translate3d(0, 0, 0); - z-index: 1; - left: 0; - top: 0; - background: none; - border: none; - box-shadow: none; - pointer-events: none; -} -div label > i:nth-of-type(1):before, div label > i:nth-of-type(1):after, -house label > i:nth-of-type(1):before, -house label > i:nth-of-type(1):after, -shed label > i:nth-of-type(1):before, -shed label > i:nth-of-type(1):after, -hbtn label > i:nth-of-type(1):before, -hbtn label > i:nth-of-type(1):after, -sbtn label > i:nth-of-type(1):before, -sbtn label > i:nth-of-type(1):after { - filter: blur(0.5rem); - border: 1rem solid rgba(111, 111, 122, 0.75); - width: 5rem; - height: 5rem; - background: #6f6f7a; - opacity: 0; - border-radius: 50%; - box-shadow: 2rem -1.5rem 0 1rem rgba(111, 111, 122, 0.75), 3rem -2rem 0 1.5rem rgba(111, 111, 122, 0.5); -} - -colour { - width: 100%; - height: 100%; -} -colour input, -colour br { - position: relative; - display: inline-block; - opacity: 0.2; - top: 1rem; - left: 1rem; - transform: scale(0.75); - margin: -0.2rem; -} -@media (max-width: 900px) { - colour input, -colour br { - display: none; - } -} -colour input:checked { - opacity: 1; -} -colour br { - display: block; -} - -input { - display: none; -} - -div.main { - -webkit-box-reflect: below 4rem; -} - -div.ss { - pointer-events: none; -} - -sbtn { - height: calc(50rem - (50rem / 4)); - bottom: auto; -} -sbtn label { - border: solid 1px rgba(116, 116, 116, 0.1); -} -sbtn label:nth-of-type(1) { - border-radius: 3rem 0 0 0; -} -sbtn label:nth-of-type(4) { - border-radius: 0 3rem 0 0; -} -sbtn label:hover { - border-color: #555; -} - -hbtn label:nth-of-type(n + 12) { - border: solid 1px rgba(116, 116, 116, 0.1); -} -hbtn label:nth-of-type(n + 12):hover { - border-color: #555; -} - -@keyframes smoke { - 0% { - transform: scale(0.2) translate3d(0, 0, 0) rotate(-15deg); - opacity: 0.075; - } - 50% { - transform: scale(1) translate3d(2rem, -4rem, 0) rotate(0); - opacity: 0.15; - } - 100% { - transform: scale(2) translate3d(5rem, -5rem, 0) rotate(10deg); - opacity: 0; - } -} -island { - position: absolute; - top: 76rem; - top: 49.25rem; - left: -50%; - right: -50%; - margin: auto; - width: 80rem; - height: 5rem; - background: #60bc2f; - border-radius: 55% 55% 45% 45%; -} - -grass { - position: absolute; - z-index: 500; - top: 76rem; - top: 49.25rem; - left: -50%; - right: -50%; - margin: auto; - width: 80rem; - height: 5rem; - -webkit-box-reflect: below -5rem; - transform: skewX(0); -} -grass:after, grass:before { - top: 0.75rem; - left: 0.6rem; - z-index: 100; - width: 0.5rem; - height: 1.75rem; - transform: skewY(60deg); - background: #60bc2f; - box-shadow: 1rem -1.6rem 0 #60bc2f, 2.1rem -3.6rem 0 #60bc2f, 2.9rem -4.8rem 0 #60bc2f, 4rem -7rem 0 #60bc2f; - filter: drop-shadow(5rem -8.3rem 0 #60bc2f) drop-shadow(10rem -17.3rem 0 #60bc2f) drop-shadow(20rem -34.5rem 0 #60bc2f) drop-shadow(40rem -69rem 0 #60bc2f); -} -grass:before { - transform: skewY(-60deg); - box-shadow: 1rem 1.6rem 0 #60bc2f, 2.1rem 3.6rem 0 #60bc2f, 2.9rem 4.8rem 0 #60bc2f, 4rem 7rem 0 #60bc2f; - filter: drop-shadow(5rem 8.3rem 0 #60bc2f) drop-shadow(10rem 17.3rem 0 #60bc2f) drop-shadow(20rem 34.5rem 0 #60bc2f) drop-shadow(40rem 69rem 0 #60bc2f); - left: 0; - top: 1.5rem; -} - -@keyframes grass { - 100% { - transform: skewX(5deg); - } -} -input:focus ~ div > div { - animation: thud 0.1s linear; -} - -@keyframes thud { - 0% { - transform: translate3d(0, 1rem, 0); - } - 60% { - transform: translate3d(0, -0.5rem, 0); - } - 80% { - transform: translate3d(0, 0.25rem, 0); - } -} -sig { - z-index: 500; - opacity: 0.2; - font-size: 0.5rem; - color: #000; - width: 10em; - top: auto; - left: auto; - bottom: 1em; - right: 1em; - transform: skewX(10deg) scaleY(0.45) rotate(2deg); -} -sig, -sig * { - height: 9.25em; - overflow: hidden; - border-radius: 0.5em; -} -sig:before, -sig *:before { - width: 5em; - height: 5em; - background: currentColor; - transform: translate3d(-2.5em, 0, 0) rotate(-45deg); - box-shadow: -3em 3em 0 0 currentColor; - border-radius: 0.5em 2em 0.5em 2em; -} -sig * { - width: 5em; - transform: translate3d(3.75em, 0, 0) scaleY(0.95); - display: block !important; -} -sig *:before { - transform: translate3d(-3em, -2em, 0) rotate(-45deg); - box-shadow: -3em 3em 0 0 currentColor, -6em 6em 0 0 currentColor; - border-radius: 0.5em; -} - -text { - width: 95%; - max-width: 70rem; - bottom: 25%; - color: #e7ae9d; - right: 0; - margin: auto; - height: 1rem; - font-size: 2.5rem; - text-align: center; - font-family: Telefon, Sans-Serif; - z-index: -1; - transform: scale(0); - font-weight: 100; - letter-spacing: 0.1rem; - opacity: 0; -} -text welldone, -text gameover { - box-shadow: 0 0 5rem #ff7700, inset 0 0 0 0.5rem #fff; - background: rgba(32, 17, 42, 0.95); - padding: 5rem; - border-radius: 5rem; - border: 1rem solid #20112a; -} -text welldone { - display: none; -} -text * { - position: static; -} -text p:nth-of-type(1) { - font-size: 4rem; -} -text p:nth-of-type(odd) { - color: #bc5c2f; -} -text label { - position: absolute; - left: auto; - right: 3rem; - top: 3rem; - color: #bc5c2f; - padding: 2rem; - border-radius: 2rem; - box-shadow: 0 0 1rem rgba(255, 255, 255, 0); - cursor: pointer; - transition: box-shadow 0.25s ease-in-out; - box-sizing: border-box; - line-height: 1; -} -text label:hover, text label:focus { - box-shadow: 0 0 0.15rem #fff; -} -text a { - padding: 0.5rem 1rem; - border-radius: 1rem; - text-decoration: none; - background: #bc5c2f; - color: #20112a; - box-shadow: 0 0 0 1rem rgba(255, 255, 255, 0), inset 0 0 0 0 rgba(255, 255, 255, 0.2); - transition: all 0.2s ease-in-out; -} -text a:hover, text a:focus { - box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2), inset 0 0 0 3rem rgba(255, 255, 255, 0.2); -} - -#done:checked ~ text { - transform: scale(0) !important; - transition: all 0.5s ease-in-out; - opacity: 0; -} - -colour > *:not(.lh):not(text) { - filter: hue-rotate(0deg) brightness(100%); - animation: set 400s linear infinite; -} - -@media screen and (max-device-width: 480px) { - colour > *:not(.lh):not(text) { - animation: none; - } -} -@keyframes set { - 15%, 85% { - filter: hue-rotate(0deg) brightness(100%); - } - 30%, 70% { - filter: hue-rotate(-20deg) brightness(10%); - } - 40%, 60% { - filter: hue-rotate(-40deg) brightness(50%); - } -} -stars { - width: 220rem; - height: 100%; - position: absolute; - top: 0; - left: 0; - right: 0; - margin: auto; - animation: stars 400s linear infinite; - -webkit-box-reflect: below -50rem; - opacity: 0; - z-index: 0; -} -stars:before { - width: 0.5rem; - height: 0.5rem; - box-shadow: 130vmin 33vmin 0 -.2rem #f9b9c8 , 108vmin 15vmin 0 -.2rem #dafc8b , 160vmin 59vmin 0 -.1rem #8b95fc , 12vmin 28vmin 0 -.1rem #d88bfc , 144vmin 22vmin 0 -.2rem #c98bfc , 48vmin 7vmin 0 -.1rem #8b9cfc , 164vmin 43vmin 0 -.1rem #fc8bfc , 172vmin 44vmin 0 -.1rem #fc8bad , 133vmin 30vmin 0 -.1rem #fcf18b , 16vmin 55vmin 0 -.2rem #8bdafc , 161vmin 15vmin 0 -.1rem #fc8bc2 , 93vmin 16vmin 0 -.1rem #c2fc8b , 11vmin 17vmin 0 -.1rem #c7fc8b , 184vmin 5vmin 0 -.2rem #8bfce7 , 98vmin 18vmin 0 -.2rem #988bfc , 90vmin 3vmin 0 -.2rem #fc8bbc , 29vmin 16vmin 0 -.1rem #fc8b95 , 36vmin 17vmin 0 -.2rem #fa8bfc , 111vmin 7vmin 0 -.2rem #8bfcbc , 76vmin 44vmin 0 -.2rem #a78bfc , 78vmin 46vmin 0 -.2rem #e08bfc , 94vmin 32vmin 0 -.1rem #fc8bc2 , 52vmin 42vmin 0 -.2rem #8b8dfc , 43vmin 11vmin 0 -.1rem #8bb1fc , 197vmin 24vmin 0 -.1rem #f8fc8b , 181vmin 14vmin 0 -.1rem #fc8bef , 21vmin 44vmin 0 -.2rem #fccd8b , 31vmin 49vmin 0 -.2rem #8bcbfc , 125vmin 52vmin 0 -.1rem #fc8b8b , 54vmin 49vmin 0 -.1rem #ed8bfc , 68vmin 16vmin 0 -.1rem #8bfafc , 60vmin 41vmin 0 -.2rem #8bd5fc , 65vmin 47vmin 0 -.1rem #8bfcde , 79vmin 59vmin 0 -.2rem #e6fc8b , 111vmin 16vmin 0 -.1rem #fc8b8f , 25vmin 27vmin 0 -.1rem #b1fc8b , 130vmin 13vmin 0 -.2rem #fcb08b , 35vmin 54vmin 0 -.1rem #8bfcc9 , 149vmin 19vmin 0 -.2rem #8bfc94 , 12vmin 51vmin 0 -.1rem #9cfc8b , 69vmin 33vmin 0 -.1rem #908bfc , 30vmin 35vmin 0 -.1rem #8bfcfc , 148vmin 31vmin 0 -.2rem #ad8bfc , 159vmin 11vmin 0 -.1rem #fc8bda , 191vmin 17vmin 0 -.2rem #8bfcb8 , 11vmin 40vmin 0 -.1rem #8bbafc , 36vmin 50vmin 0 -.2rem #fc8b8f , 44vmin 42vmin 0 -.1rem #fc8bd5 , 55vmin 38vmin 0 -.1rem #8bf5fc , 6vmin 30vmin 0 -.2rem #8bfcb0; - border-radius: 50%; - content: ""; - position: absolute; - top: 5rem; - left: 5rem; -} -stars i:before, stars i:after { - width: 0.5rem; - height: 0.5rem; - top: 40rem; - left: 40rem; - background: #fff; - border-radius: 50%; - animation: stars 1s linear infinite; - opacity: 0.5; - box-shadow: 0 0 1rem #fff; -} -stars i:after { - top: 20rem; - left: 180rem; - animation: stars 1s 0.5s linear infinite; - background: #f9b9c8; -} - -sky { - width: 100%; - height: 78.5rem; - overflow: hidden; - -webkit-box-reflect: below 0; - z-index: 0; -} -sky:before, sky:after { - width: 100%; - height: 100%; - background: linear-gradient(#323248 10%, #fbd447, #d8480f); - opacity: 0; - animation: sky 400s linear infinite; -} -sky:after { - background: linear-gradient(#19043f, #1a0f6c); -} - -time { - pointer-events: none; -} -time, -time sun { - width: 170rem; - height: 170rem; - left: -100%; - right: -100%; - top: -100%; - bottom: -170%; - margin: auto; -} -time sun { - bottom: -100%; - transform: rotate(0deg); - z-index: 1; - animation: sun 400s linear infinite; - filter: blur(1rem) brightness(400%); -} -time sun:before { - width: 25rem; - height: 25rem; - border-radius: 50%; - background: radial-gradient(#bc502f, #bc2f2f); - right: 0; - margin: auto; - transform: rotate(0deg); -} -time sun:after { - width: 10rem; - height: 10rem; - border-radius: 50%; - box-shadow: inset 0 2rem 0 #5a4e38; - background: rgba(0, 0, 0, 0.1); - left: 60%; - top: auto; - bottom: 0; - transform: rotate(0deg); - z-index: 1; -} - -@media (max-width: 500px) { - time, -input { - display: none; - } -} -div.ss lens { - top: 20rem; - left: 70rem; - animation: lensflair 400s linear infinite; - width: 60rem; - height: 60rem; - filter: brightness(150%); - transform: rotate(0); - opacity: 0; -} -div.ss lens:before { - width: 60rem; - height: 60rem; - border-radius: 50%; - top: 0; - right: -50%; - left: -50%; - margin: auto; - box-shadow: 0 70rem 0 -20rem yellow, 0 50rem 0 -25rem yellow, 0 100rem 0 5rem #f437c5, inset 0 0 3rem #ff7700; - border: 1rem solid #ff7700; -} -div.ss lens:after { - width: 100rem; - height: 100rem; - border-radius: 50%; - top: 140rem; - right: -50%; - left: -50%; - margin: auto; - border: 1rem solid yellow; - box-shadow: 0 0 3rem red, inset 0 0 3rem blue; -} - -@keyframes lensflair { - 20%, 30%, 70%, 80% { - opacity: 0; - } - 25%, 75% { - opacity: 0.05; - } - 100% { - transform: rotate(360deg); - opacity: 0; - } -} -@keyframes sun { - 20%, 80% { - filter: blur(1rem) brightness(390%); - } - 27%, 73% { - filter: blur(1rem) brightness(200%); - } - 100% { - transform: rotate(360deg); - } -} -@keyframes stars { - 50% { - opacity: 1; - } -} -@keyframes sky { - 20%, 85% { - filter: brightness(100%); - opacity: 0; - } - 30%, 70% { - filter: brightness(100%); - opacity: 1; - } - 40%, 60% { - filter: brightness(20%); - opacity: 1; - } -} -sunset { - width: 150%; - height: 20rem; - left: -25%; - top: 60rem; - background: radial-gradient(farthest-side at 70% 100%, #ff6400, rgba(255, 255, 255, 0)); - filter: blur(1rem); - -webkit-box-reflect: below 0; - animation: sunset 400s linear infinite; - opacity: 0; - transform: translate3d(0, 20rem, 0); -} -sunset:before { - width: 100rem; - height: 50rem; - left: 55%; - top: -10rem; - border-radius: 50%; - background: radial-gradient(#ff6400, rgba(255, 255, 255, 0)); - opacity: 0.1; -} -sunset:after { - width: 50rem; - height: 25rem; - left: 65%; - top: 5rem; - border-radius: 50%; - background: radial-gradient(#fffd91, rgba(255, 255, 255, 0)); - opacity: 0.1; -} - -@keyframes sunset { - 28%, 75% { - opacity: 1; - transform: translate3d(0, 0, 0); - } - 20%, 35%, 70%, 80% { - opacity: 0; - transform: translate3d(0, 20rem, 0); - } -} -text:nth-of-type(2) { - animation: gameover 400s linear; -} - -@keyframes gameover { - 34.8% { - transform: scale(0); - z-index: 0; - display: block; - opacity: 0; - } - 35%, 100% { - transform: scale(1); - z-index: 410; - transition: all 0.5s 1.5s ease-in-out; - opacity: 1; - } -} -tree:nth-of-type(1) { - width: 10rem; - height: 60.5rem; - top: -10rem; - transform: skew(-2deg); - border-radius: 0 50% 2rem 0; - box-shadow: 0.5rem 0 0 #683f44, 1rem 0 0 #885259, 3rem 0 0 #683f44, 5rem 0 0 #20112a; -} -tree:nth-of-type(1):before { - left: 16rem; - width: 10rem; - height: 60.5rem; - box-shadow: -2rem 0 0 #20112a, -3rem 0 0 #683f44, -4rem 0 0 #20112a; - border-radius: 50% 0 0 2rem; - transform: skew(4deg); -} -tree:nth-of-type(1):after { - top: -4rem; - width: 10rem; - height: 5rem; - border-radius: 60% 60% 40% 40%/70% 70% 40% 40%; - background: #6ebc2f; - box-shadow: inset -1rem -1rem 1rem rgba(104, 63, 68, 0.1), 13rem 0 0 -0.2rem rgba(104, 63, 68, 0.1), 9rem 1rem 0 -1rem rgba(104, 63, 68, 0.1), -2rem -3rem 0 1rem rgba(104, 63, 68, 0.1), 5rem -5rem 0 -0.5rem rgba(104, 63, 68, 0.1), 7rem -4rem 0 rgba(104, 63, 68, 0.1), 11rem -2rem 0 -0.5rem rgba(104, 63, 68, 0.1), 12rem 0 0 -0.2rem #60bc2f, 8rem 1rem 0 -1rem #60bc2f, -3rem -3rem 0 1rem #bcae2f, 4rem -5rem 0 -0.5rem #60bc2f, 6rem -4rem 0 #bcae2f, 10rem -2rem 0 -0.5rem #60bc2f; -} - -tree:nth-of-type(2) { - width: 10rem; - height: 50.5rem; - top: 0; - left: 25rem; - transform: skew(-3deg); - border-radius: 0 50% 2rem 0; - box-shadow: 0.5rem 0 0 #683f44, 1rem 0 0 #885259, 3rem 0 0 #683f44, 5rem 0 0 #20112a; -} -tree:nth-of-type(2):before { - left: 16rem; - width: 10rem; - height: 50.5rem; - box-shadow: -1.5rem 0 0 #20112a, -2.5rem 0 0 #683f44, -3rem 0 0 #20112a; - border-radius: 50% 0 0 2rem; - transform: skew(4deg); -} -tree:nth-of-type(2):after { - top: -4rem; - left: 17rem; - width: 10rem; - height: 5rem; - border-radius: 60% 60% 40% 40%/70% 70% 40% 40%; - background: #6ebc2f; - box-shadow: inset -1rem -1rem 1rem rgba(104, 63, 68, 0.1), -19rem 1rem 0 -0.2rem rgba(104, 63, 68, 0.1), -14rem -4rem 0 -1rem rgba(104, 63, 68, 0.1), -13rem -1rem 0 1rem rgba(104, 63, 68, 0.1), -1rem -4rem 0 -0.5rem rgba(104, 63, 68, 0.1), -4rem -1rem 0 rgba(104, 63, 68, 0.1), -21rem -2rem 0 -0.5rem rgba(104, 63, 68, 0.1), -7rem -5rem 0 1rem rgba(104, 63, 68, 0.1), -20rem 1rem 0 -0.2rem #60bc2f, -15rem -4rem 0 -1rem #60bc2f, -15rem -1rem 0 1rem #bcae2f, -2rem -4rem 0 -0.5rem #60bc2f, -5rem -1rem 0 #bcae2f, -22rem -2rem 0 -0.5rem #60bc2f, -8rem -5rem 0 1rem #bcae2f; -} - -tree i:nth-of-type(1), tree i:nth-of-type(1):before, tree i:nth-of-type(1):after { - width: 2.5rem; - height: 0.5rem; - background: #88d24c; - border-radius: 0 0 100% 100%; - top: -5rem; - filter: drop-shadow(3rem 1.5rem 0 #4b9325) drop-shadow(1.5rem 2.5rem 0 #4b9325); - z-index: 1; - left: -3rem; - opacity: 0.5; -} -tree i:nth-of-type(1):before { - left: 6rem; - top: -1rem; - filter: drop-shadow(2rem 1.5rem 0 #4b9325); -} -tree i:nth-of-type(1):after { - left: 15rem; - top: -1.5rem; - filter: drop-shadow(2.5rem 0.5rem 0 #4b9325) drop-shadow(1rem 2rem 0 #4b9325); -} - -tree:nth-of-type(2) i:nth-of-type(1):after { - left: 20rem; -} - -tree i:nth-of-type(2), tree i:nth-of-type(2):before, tree i:nth-of-type(2):after { - width: 0.5rem; - height: 0.25rem; - background: #bcae2f; - border-radius: 100% 0 100% 0; - top: -2rem; -} -tree i:nth-of-type(2):before { - left: 8rem; - top: -1rem; -} -tree i:nth-of-type(2):after { - left: 20rem; - top: 1.5rem; -} - -[type=radio]:focus ~ div > div > tree i:nth-of-type(1), [type=radio]:focus ~ div > div > tree:after { - animation: shake 0.3s ease-in-out; -} - -[type=radio]:focus ~ div > div > tree > i:nth-of-type(2) { - animation: fall 5s ease-in-out; -} -[type=radio]:focus ~ div > div > tree > i:nth-of-type(2):before { - animation: fall 10s ease-in-out; -} -[type=radio]:focus ~ div > div > tree > i:nth-of-type(2):before { - animation: fall 5s ease-in-out; -} - -@keyframes shake { - 40% { - transform: translate3d(0, 0.5rem, 0); - } - 60% { - transform: translate3d(0, -0.25rem, 0); - } - 80% { - transform: translate3d(0, 0.15rem, 0); - } -} -@keyframes fall { - 100% { - transform: translate3d(0, 15rem, 0); - opacity: 0; - } -} -water { - position: absolute; - top: 78.5rem; - bottom: 0; - left: -100%; - right: -100%; - margin: auto; - width: 100%; - height: 25rem; - background: linear-gradient(rgba(96, 139, 136, 0.5), #f3cece); - z-index: 99; - overflow: hidden; - box-shadow: inset 0 0 5rem 0 rgba(37, 37, 41, 0.5); -} -water:before, water:after, -water i { - width: 80rem; - height: 3rem; - border-radius: 50%; - opacity: 0.2; - right: 0; - margin: auto; - transform: scaleX(1) scaleY(0); - top: -1.5rem; - border: 0.5rem solid #fff; - box-shadow: 0 0 1rem 0.5rem #040b27, inset 0 0 1rem 1rem #040b27, inset 0 0 1rem #fff; -} -water:before { - animation: waves 6s ease-in-out infinite; -} -water:after { - animation: waves 8s 2s ease-in-out infinite; -} - -input:focus ~ water > i { - animation: waves 3s 0.25s ease-out; -} - -@keyframes waves { - 100% { - transform: scaleX(1.5) scaleY(7); - opacity: 0; - } -} -shed > label > i:nth-of-type(5) { - width: 100%; - height: 100%; -} -shed > label > i:nth-of-type(5):after { - width: 2rem; - border-left: 0.5rem solid #252529; - border-right: 0.5rem solid #252529; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 1.5rem, #252529 1.5rem, #252529 2rem); - height: 325%; - left: -1.5rem; - transform: rotate(-1deg); - top: 10.5rem; - display: none; -} -shed > label > i:nth-of-type(5):before { - width: 13rem; - height: 3rem; - top: 10.5rem; - left: 12.5rem; - border: 0.5rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #683f44; - box-shadow: 0 0.25rem 0 #683f44; - transform: rotate(-3deg); - border-radius: 50%; - display: none; -} -shed > label:nth-of-type(n + 5) > i:nth-of-type(5):after { - height: 225%; -} -shed > label:nth-of-type(n + 9) > i:nth-of-type(5):after { - height: 15rem; -} -shed > label:nth-of-type(even) > i:nth-of-type(5):after { - left: 10rem; - transform: rotate(2deg); -} - -.hs.row1.col1:checked ~ div > div > shed > .row1.col1:before { - background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); - width: 90%; - height: 98%; - left: 1.25rem; - border-radius: 0.5rem; - box-shadow: 0 0.5rem 0 0 #20112a; -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1:after { - width: 105%; - height: 5rem; - background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); - top: -2rem; - border-bottom: solid 0.5rem #252529; - box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); - border-radius: 0.5rem; - left: auto; - right: -1rem; -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(4) { - width: 4rem; - height: 4rem; - right: 0; - margin: auto; - background: rgba(79, 1, 14, 0.3); - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); - transform: scale(0.5); -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(4):before { - width: 3.4rem; - height: 0.5rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(4):after { - width: 0.5rem; - height: 3.4rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(3) { - width: 4rem; - height: 9rem; - right: 0; - margin: auto; - background: #bc502f; - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(3):after { - left: -4rem; - border: 1rem solid rgba(255, 255, 255, 0); - top: -11rem; - border-bottom-color: #252529; - transform: rotate(-3deg); - height: 4rem; - box-shadow: 0 3.7rem 0 -0.5rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(3):before { - width: 14.5rem; - height: 4.5rem; - border-top: 0.5rem solid #20112a; - border-bottom: 0.5rem solid #20112a; - top: 5rem; - left: -5rem; - background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); - border-radius: 0.5rem; -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(2):before { - width: 1rem; - height: 9rem; - background: #20112a; - top: -7rem; -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1:nth-of-type(odd) > i:nth-of-type(2) { - width: 1rem; - background: #20112a; - height: 3rem; - border-radius: 0.25rem; - top: 18.5rem; - left: 10rem; - transform: rotate(5deg); -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1:nth-of-type(odd) > i:nth-of-type(2):before { - transform: rotate(-45deg); - left: -3rem; - border-radius: 0 1rem 0 0; -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1:nth-of-type(odd) > i:nth-of-type(2):after { - width: 1rem; - height: 4rem; - transform: rotate(45deg); - background: #20112a; - top: -6.5rem; - left: -2rem; - border-radius: 1rem 0 0 0; -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1:nth-of-type(even) > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1:nth-of-type(even) > i:nth-of-type(1) { - left: 11rem; -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1:nth-of-type(even) > i:nth-of-type(2):before { - transform: rotate(45deg); - left: 5rem; - border-radius: 1rem 0 0 0; - top: 11rem; -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(1):before, .hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(1):after { - top: -7.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):after { - display: block; -} - -.hs.row1.col1:checked ~ div > div > shed > .row2.col1:after, .hs.row1.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3):after, .hs.row1.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(1) { - display: none; -} - -.hs.row1.col1:checked ~ div > div > shed > .row0.col1 > i:nth-of-type(3):before, .hs.row1.col1:checked ~ div > div > shed > .row0.col1 > i:nth-of-type(2), .hs.row1.col1:checked ~ div > div > shed > .row0.col1 > i:nth-of-type(5):after { - display: none; -} -.hs.row1.col1:checked ~ div > div > shed > .row0.col1 > i:nth-of-type(3) { - height: 0; -} -.hs.row1.col1:checked ~ div > div > shed > .row0.col1 > i:nth-of-type(4) { - transform: scale(1); - right: 2rem; - left: 1rem; -} - -.hs.shed.row1.col-2:not(:checked) ~ .hs.row1.col1:checked ~ .shed.hs.row1.col2:not(:checked) ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.shed.row1.col-2:not(:checked) ~ .hs.row1.col1:checked ~ .shed.hs.row1.col2:not(:checked) ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col1:before { - border-top-left-radius: 0; - border-top-right-radius: 0; -} -.hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col1:before { - height: 12.5rem; - box-shadow: none; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(3) { - height: 0; -} -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(4) { - transform: scale(1); - right: 1rem; - left: 2rem; -} -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):after { - display: none; -} - -.hs.row3.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):after { - display: none; -} - -.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row2.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):after { - display: none !important; -} - -.hs.row1.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(1), .hs.row1.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(3):after { - display: none; -} - -.hs.row1.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col1:after, -.hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col1:after { - width: 110%; - right: -1.25rem; -} - -.hs.row1.col2:checked ~ div > div > shed > .row1.col2:before { - background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); - width: 90%; - height: 98%; - left: 1.25rem; - border-radius: 0.5rem; - box-shadow: 0 0.5rem 0 0 #20112a; -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2:after { - width: 105%; - height: 5rem; - background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); - top: -2rem; - border-bottom: solid 0.5rem #252529; - box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); - border-radius: 0.5rem; - left: auto; - right: -1rem; -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(4) { - width: 4rem; - height: 4rem; - right: 0; - margin: auto; - background: rgba(79, 1, 14, 0.3); - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); - transform: scale(0.5); -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(4):before { - width: 3.4rem; - height: 0.5rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(4):after { - width: 0.5rem; - height: 3.4rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3) { - width: 4rem; - height: 9rem; - right: 0; - margin: auto; - background: #bc502f; - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):after { - left: -4rem; - border: 1rem solid rgba(255, 255, 255, 0); - top: -11rem; - border-bottom-color: #252529; - transform: rotate(-3deg); - height: 4rem; - box-shadow: 0 3.7rem 0 -0.5rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):before { - width: 14.5rem; - height: 4.5rem; - border-top: 0.5rem solid #20112a; - border-bottom: 0.5rem solid #20112a; - top: 5rem; - left: -5rem; - background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); - border-radius: 0.5rem; -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(2):before { - width: 1rem; - height: 9rem; - background: #20112a; - top: -7rem; -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2:nth-of-type(odd) > i:nth-of-type(2) { - width: 1rem; - background: #20112a; - height: 3rem; - border-radius: 0.25rem; - top: 18.5rem; - left: 10rem; - transform: rotate(5deg); -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2:nth-of-type(odd) > i:nth-of-type(2):before { - transform: rotate(-45deg); - left: -3rem; - border-radius: 0 1rem 0 0; -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2:nth-of-type(odd) > i:nth-of-type(2):after { - width: 1rem; - height: 4rem; - transform: rotate(45deg); - background: #20112a; - top: -6.5rem; - left: -2rem; - border-radius: 1rem 0 0 0; -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2:nth-of-type(even) > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2:nth-of-type(even) > i:nth-of-type(1) { - left: 11rem; -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2:nth-of-type(even) > i:nth-of-type(2):before { - transform: rotate(45deg); - left: 5rem; - border-radius: 1rem 0 0 0; - top: 11rem; -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1):before, .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1):after { - top: -7.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: block; -} - -.hs.row1.col2:checked ~ div > div > shed > .row2.col2:after, .hs.row1.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after, .hs.row1.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1) { - display: none; -} - -.hs.row1.col2:checked ~ div > div > shed > .row0.col2 > i:nth-of-type(3):before, .hs.row1.col2:checked ~ div > div > shed > .row0.col2 > i:nth-of-type(2), .hs.row1.col2:checked ~ div > div > shed > .row0.col2 > i:nth-of-type(5):after { - display: none; -} -.hs.row1.col2:checked ~ div > div > shed > .row0.col2 > i:nth-of-type(3) { - height: 0; -} -.hs.row1.col2:checked ~ div > div > shed > .row0.col2 > i:nth-of-type(4) { - transform: scale(1); - right: 2rem; - left: 2rem; -} - -.hs.shed.row1.col-1:not(:checked) ~ .hs.row1.col2:checked ~ .shed.hs.row1.col3:not(:checked) ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.shed.row1.col-1:not(:checked) ~ .hs.row1.col2:checked ~ .shed.hs.row1.col3:not(:checked) ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col2:before { - border-top-left-radius: 0; - border-top-right-radius: 0; -} -.hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col2:before { - height: 12.5rem; - box-shadow: none; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3) { - height: 0; -} -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(4) { - transform: scale(1); - right: 2rem; - left: 2rem; -} -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row3.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row2.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: none !important; -} - -.hs.row1.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1), .hs.row1.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):after { - display: none; -} - -.hs.row1.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col2:after, -.hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col2:after { - width: 110%; - right: -1.25rem; -} - -.hs.row1.col3:checked ~ div > div > shed > .row1.col3:before { - background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); - width: 90%; - height: 98%; - left: 1.25rem; - border-radius: 0.5rem; - box-shadow: 0 0.5rem 0 0 #20112a; -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3:after { - width: 105%; - height: 5rem; - background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); - top: -2rem; - border-bottom: solid 0.5rem #252529; - box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); - border-radius: 0.5rem; - left: auto; - right: -1rem; -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(4) { - width: 4rem; - height: 4rem; - right: 0; - margin: auto; - background: rgba(79, 1, 14, 0.3); - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); - transform: scale(0.5); -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(4):before { - width: 3.4rem; - height: 0.5rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(4):after { - width: 0.5rem; - height: 3.4rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3) { - width: 4rem; - height: 9rem; - right: 0; - margin: auto; - background: #bc502f; - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):after { - left: -4rem; - border: 1rem solid rgba(255, 255, 255, 0); - top: -11rem; - border-bottom-color: #252529; - transform: rotate(-3deg); - height: 4rem; - box-shadow: 0 3.7rem 0 -0.5rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):before { - width: 14.5rem; - height: 4.5rem; - border-top: 0.5rem solid #20112a; - border-bottom: 0.5rem solid #20112a; - top: 5rem; - left: -5rem; - background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); - border-radius: 0.5rem; -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(2):before { - width: 1rem; - height: 9rem; - background: #20112a; - top: -7rem; -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3:nth-of-type(odd) > i:nth-of-type(2) { - width: 1rem; - background: #20112a; - height: 3rem; - border-radius: 0.25rem; - top: 18.5rem; - left: 10rem; - transform: rotate(5deg); -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3:nth-of-type(odd) > i:nth-of-type(2):before { - transform: rotate(-45deg); - left: -3rem; - border-radius: 0 1rem 0 0; -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3:nth-of-type(odd) > i:nth-of-type(2):after { - width: 1rem; - height: 4rem; - transform: rotate(45deg); - background: #20112a; - top: -6.5rem; - left: -2rem; - border-radius: 1rem 0 0 0; -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3:nth-of-type(even) > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3:nth-of-type(even) > i:nth-of-type(1) { - left: 11rem; -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3:nth-of-type(even) > i:nth-of-type(2):before { - transform: rotate(45deg); - left: 5rem; - border-radius: 1rem 0 0 0; - top: 11rem; -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1):before, .hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1):after { - top: -7.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(5):after { - display: block; -} - -.hs.row1.col3:checked ~ div > div > shed > .row2.col3:after, .hs.row1.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):after, .hs.row1.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1) { - display: none; -} - -.hs.row1.col3:checked ~ div > div > shed > .row0.col3 > i:nth-of-type(3):before, .hs.row1.col3:checked ~ div > div > shed > .row0.col3 > i:nth-of-type(2), .hs.row1.col3:checked ~ div > div > shed > .row0.col3 > i:nth-of-type(5):after { - display: none; -} -.hs.row1.col3:checked ~ div > div > shed > .row0.col3 > i:nth-of-type(3) { - height: 0; -} -.hs.row1.col3:checked ~ div > div > shed > .row0.col3 > i:nth-of-type(4) { - transform: scale(1); - right: 1rem; - left: 2rem; -} - -.hs.shed.row1.col0:not(:checked) ~ .hs.row1.col3:checked ~ .shed.hs.row1.col4:not(:checked) ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.shed.row1.col0:not(:checked) ~ .hs.row1.col3:checked ~ .shed.hs.row1.col4:not(:checked) ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col3:before { - border-top-left-radius: 0; - border-top-right-radius: 0; -} -.hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col3:before { - height: 12.5rem; - box-shadow: none; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3) { - height: 0; -} -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(4) { - transform: scale(1); - right: 2rem; - left: 2rem; -} -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(5):after { - display: none; -} - -.hs.row3.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(5):after { - display: none; -} - -.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row2.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(5):after { - display: none !important; -} - -.hs.row1.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1), .hs.row1.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):after { - display: none; -} - -.hs.row1.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col3:after, -.hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col3:after { - width: 110%; - right: -1.25rem; -} - -.hs.row1.col4:checked ~ div > div > shed > .row1.col4:before { - background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); - width: 90%; - height: 98%; - left: 1.25rem; - border-radius: 0.5rem; - box-shadow: 0 0.5rem 0 0 #20112a; -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4:after { - width: 105%; - height: 5rem; - background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); - top: -2rem; - border-bottom: solid 0.5rem #252529; - box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); - border-radius: 0.5rem; - left: auto; - right: -1rem; -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(4) { - width: 4rem; - height: 4rem; - right: 0; - margin: auto; - background: rgba(79, 1, 14, 0.3); - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); - transform: scale(0.5); -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(4):before { - width: 3.4rem; - height: 0.5rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(4):after { - width: 0.5rem; - height: 3.4rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(3) { - width: 4rem; - height: 9rem; - right: 0; - margin: auto; - background: #bc502f; - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(3):after { - left: -4rem; - border: 1rem solid rgba(255, 255, 255, 0); - top: -11rem; - border-bottom-color: #252529; - transform: rotate(-3deg); - height: 4rem; - box-shadow: 0 3.7rem 0 -0.5rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(3):before { - width: 14.5rem; - height: 4.5rem; - border-top: 0.5rem solid #20112a; - border-bottom: 0.5rem solid #20112a; - top: 5rem; - left: -5rem; - background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); - border-radius: 0.5rem; -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(2):before { - width: 1rem; - height: 9rem; - background: #20112a; - top: -7rem; -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4:nth-of-type(odd) > i:nth-of-type(2) { - width: 1rem; - background: #20112a; - height: 3rem; - border-radius: 0.25rem; - top: 18.5rem; - left: 10rem; - transform: rotate(5deg); -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4:nth-of-type(odd) > i:nth-of-type(2):before { - transform: rotate(-45deg); - left: -3rem; - border-radius: 0 1rem 0 0; -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4:nth-of-type(odd) > i:nth-of-type(2):after { - width: 1rem; - height: 4rem; - transform: rotate(45deg); - background: #20112a; - top: -6.5rem; - left: -2rem; - border-radius: 1rem 0 0 0; -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4:nth-of-type(even) > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4:nth-of-type(even) > i:nth-of-type(1) { - left: 11rem; -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4:nth-of-type(even) > i:nth-of-type(2):before { - transform: rotate(45deg); - left: 5rem; - border-radius: 1rem 0 0 0; - top: 11rem; -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(1):before, .hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(1):after { - top: -7.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(5):after { - display: block; -} - -.hs.row1.col4:checked ~ div > div > shed > .row2.col4:after, .hs.row1.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3):after, .hs.row1.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(1) { - display: none; -} - -.hs.row1.col4:checked ~ div > div > shed > .row0.col4 > i:nth-of-type(3):before, .hs.row1.col4:checked ~ div > div > shed > .row0.col4 > i:nth-of-type(2), .hs.row1.col4:checked ~ div > div > shed > .row0.col4 > i:nth-of-type(5):after { - display: none; -} -.hs.row1.col4:checked ~ div > div > shed > .row0.col4 > i:nth-of-type(3) { - height: 0; -} -.hs.row1.col4:checked ~ div > div > shed > .row0.col4 > i:nth-of-type(4) { - transform: scale(1); - right: 2rem; - left: 2rem; -} - -.hs.shed.row1.col1:not(:checked) ~ .hs.row1.col4:checked ~ .shed.hs.row1.col5:not(:checked) ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.shed.row1.col1:not(:checked) ~ .hs.row1.col4:checked ~ .shed.hs.row1.col5:not(:checked) ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4:before { - border-top-left-radius: 0; - border-top-right-radius: 0; -} -.hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col4:before { - height: 12.5rem; - box-shadow: none; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(3) { - height: 0; -} -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(4) { - transform: scale(1); - right: 2rem; - left: 2rem; -} -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(5):after { - display: none; -} - -.hs.row3.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(5):after { - display: none; -} - -.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row2.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(5):after { - display: none !important; -} - -.hs.row1.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(1), .hs.row1.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(3):after { - display: none; -} - -.hs.row1.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col4:after, -.hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col4:after { - width: 110%; - right: -1.25rem; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1:before { - width: 110%; -} -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2:after { - width: 120%; - left: -1.25rem; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2:before { - width: 110%; -} -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col3:after { - width: 120%; - left: -1.25rem; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3:before { - width: 110%; -} -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4:after { - width: 120%; - left: -1.25rem; -} - -.hs.row1.col2:checked ~ .hs.shed.row1.col3:not(:checked) ~ div > div > shed > .row1.col2 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row1.col2:checked ~ .hs.shed.row1.col3:not(:checked) ~ div > div > shed > .row1.col2 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row1.col4:checked ~ .hs.shed.row1.col5:not(:checked) ~ div > div > shed > .row1.col4 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row1.col4:checked ~ .hs.shed.row1.col5:not(:checked) ~ div > div > shed > .row1.col4 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):after, .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1) { - display: none; -} -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):before { - width: 10.25rem; -} - -.hs.row1.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):after { - left: 6rem; - transform: rotate(3deg); -} -.hs.row1.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1) { - left: 10rem; -} -.hs.row1.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - left: -2.5rem; - transform: rotate(-3deg); -} - -.hs.row1.col2:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):after, .hs.row1.col2:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1), -.hs.row1.col2:checked ~ .hs.row1.col-3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):after, -.hs.row1.col2:checked ~ .hs.row1.col-3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1) { - display: none; -} - -.hs.row1.col2:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - left: 10rem; - transform: rotate(2deg); -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):after, .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1) { - display: none; -} -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):before { - width: 10.25rem; -} - -.hs.row1.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):after { - left: 6rem; - transform: rotate(3deg); -} -.hs.row1.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1) { - left: 10rem; -} -.hs.row1.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(5):after { - left: -2.5rem; - transform: rotate(-3deg); -} - -.hs.row1.col3:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):after, .hs.row1.col3:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1), -.hs.row1.col3:checked ~ .hs.row1.col-2:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):after, -.hs.row1.col3:checked ~ .hs.row1.col-2:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1) { - display: none; -} - -.hs.row1.col3:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(5):after { - left: 10rem; - transform: rotate(2deg); -} - -.hs.shed.row1.col1:checked ~ .hs.shed.row1.col2:not(:checked) ~ .hs.shed.row1.col3:not(:checked) ~ .hs.shed.row1.col4:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):before { - display: block; - width: 210%; -} - -.hs.shed.row1.col1:checked ~ .hs.shed.row1.col2:not(:checked) ~ .hs.shed.row1.col3:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):before, -.hs.shed.row1.col2:checked ~ .hs.shed.row1.col3:not(:checked) ~ .hs.shed.row1.col4:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):before { - display: block; - width: 110%; -} - -.hs.row2.col2:checked ~ .hs.shed.row1.col1:checked ~ .hs.shed.row1.col2:not(:checked) ~ .hs.shed.row1.col3:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):before, -.hs.row2.col3:checked ~ .hs.shed.row1.col2:checked ~ .hs.shed.row1.col3:not(:checked) ~ .hs.shed.row1.col4:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):before, -.hs.row2.col3:checked ~ .hs.shed.row1.col1:checked ~ .hs.shed.row1.col2:not(:checked) ~ .hs.shed.row1.col3:not(:checked) ~ .hs.shed.row1.col4:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):before, -.hs.row2.col2:checked ~ .hs.shed.row1.col1:checked ~ .hs.shed.row1.col2:not(:checked) ~ .hs.shed.row1.col3:not(:checked) ~ .hs.shed.row1.col4:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):before, -.hs.shed.row2.col1:checked ~ .hs.shed.row1.col1:checked ~ .hs.shed.row1.col2:not(:checked) ~ .hs.shed.row1.col3:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):before, -.hs.shed.row2.col2:checked ~ .hs.shed.row1.col2:checked ~ .hs.shed.row1.col3:not(:checked) ~ .hs.shed.row1.col4:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):before { - top: 1rem; - border: none; -} - -.hs.row2.col1:checked ~ div > div > shed > .row2.col1:before { - background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); - width: 90%; - height: 98%; - left: 1.25rem; - border-radius: 0.5rem; - box-shadow: 0 0.5rem 0 0 #20112a; -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1:after { - width: 105%; - height: 5rem; - background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); - top: -2rem; - border-bottom: solid 0.5rem #252529; - box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); - border-radius: 0.5rem; - left: auto; - right: -1rem; -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(4) { - width: 4rem; - height: 4rem; - right: 0; - margin: auto; - background: rgba(79, 1, 14, 0.3); - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); - transform: scale(0.5); -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(4):before { - width: 3.4rem; - height: 0.5rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(4):after { - width: 0.5rem; - height: 3.4rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3) { - width: 4rem; - height: 9rem; - right: 0; - margin: auto; - background: #bc502f; - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3):after { - left: -4rem; - border: 1rem solid rgba(255, 255, 255, 0); - top: -11rem; - border-bottom-color: #252529; - transform: rotate(-3deg); - height: 4rem; - box-shadow: 0 3.7rem 0 -0.5rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3):before { - width: 14.5rem; - height: 4.5rem; - border-top: 0.5rem solid #20112a; - border-bottom: 0.5rem solid #20112a; - top: 5rem; - left: -5rem; - background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); - border-radius: 0.5rem; -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(2):before { - width: 1rem; - height: 9rem; - background: #20112a; - top: -7rem; -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1:nth-of-type(odd) > i:nth-of-type(2) { - width: 1rem; - background: #20112a; - height: 3rem; - border-radius: 0.25rem; - top: 18.5rem; - left: 10rem; - transform: rotate(5deg); -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1:nth-of-type(odd) > i:nth-of-type(2):before { - transform: rotate(-45deg); - left: -3rem; - border-radius: 0 1rem 0 0; -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1:nth-of-type(odd) > i:nth-of-type(2):after { - width: 1rem; - height: 4rem; - transform: rotate(45deg); - background: #20112a; - top: -6.5rem; - left: -2rem; - border-radius: 1rem 0 0 0; -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1:nth-of-type(even) > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1:nth-of-type(even) > i:nth-of-type(1) { - left: 11rem; -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1:nth-of-type(even) > i:nth-of-type(2):before { - transform: rotate(45deg); - left: 5rem; - border-radius: 1rem 0 0 0; - top: 11rem; -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(1):before, .hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(1):after { - top: -7.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):after { - display: block; -} - -.hs.row2.col1:checked ~ div > div > shed > .row3.col1:after, .hs.row2.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(3):after, .hs.row2.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(1) { - display: none; -} - -.hs.row2.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(3):before, .hs.row2.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(2), .hs.row2.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):after { - display: none; -} -.hs.row2.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(3) { - height: 0; -} -.hs.row2.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(4) { - transform: scale(1); - right: 1rem; - left: 2rem; -} - -.hs.shed.row2.col-2:not(:checked) ~ .hs.row2.col1:checked ~ .shed.hs.row2.col2:not(:checked) ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.shed.row2.col-2:not(:checked) ~ .hs.row2.col1:checked ~ .shed.hs.row2.col2:not(:checked) ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col1:before { - border-top-left-radius: 0; - border-top-right-radius: 0; -} -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col1:before { - height: 12.5rem; - box-shadow: none; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3) { - height: 0; -} -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(4) { - transform: scale(1); - right: 2rem; - left: 1rem; -} -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):after { - display: none; -} - -.hs.row4.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):after { - display: none; -} - -.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row3.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):after { - display: none !important; -} - -.hs.row2.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(1), .hs.row2.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3):after { - display: none; -} - -.hs.row2.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col1:after, -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col1:after { - width: 110%; - right: -1.25rem; -} - -.hs.row2.col2:checked ~ div > div > shed > .row2.col2:before { - background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); - width: 90%; - height: 98%; - left: 1.25rem; - border-radius: 0.5rem; - box-shadow: 0 0.5rem 0 0 #20112a; -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2:after { - width: 105%; - height: 5rem; - background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); - top: -2rem; - border-bottom: solid 0.5rem #252529; - box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); - border-radius: 0.5rem; - left: auto; - right: -1rem; -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(4) { - width: 4rem; - height: 4rem; - right: 0; - margin: auto; - background: rgba(79, 1, 14, 0.3); - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); - transform: scale(0.5); -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(4):before { - width: 3.4rem; - height: 0.5rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(4):after { - width: 0.5rem; - height: 3.4rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3) { - width: 4rem; - height: 9rem; - right: 0; - margin: auto; - background: #bc502f; - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after { - left: -4rem; - border: 1rem solid rgba(255, 255, 255, 0); - top: -11rem; - border-bottom-color: #252529; - transform: rotate(-3deg); - height: 4rem; - box-shadow: 0 3.7rem 0 -0.5rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):before { - width: 14.5rem; - height: 4.5rem; - border-top: 0.5rem solid #20112a; - border-bottom: 0.5rem solid #20112a; - top: 5rem; - left: -5rem; - background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); - border-radius: 0.5rem; -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(2):before { - width: 1rem; - height: 9rem; - background: #20112a; - top: -7rem; -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2:nth-of-type(odd) > i:nth-of-type(2) { - width: 1rem; - background: #20112a; - height: 3rem; - border-radius: 0.25rem; - top: 18.5rem; - left: 10rem; - transform: rotate(5deg); -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2:nth-of-type(odd) > i:nth-of-type(2):before { - transform: rotate(-45deg); - left: -3rem; - border-radius: 0 1rem 0 0; -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2:nth-of-type(odd) > i:nth-of-type(2):after { - width: 1rem; - height: 4rem; - transform: rotate(45deg); - background: #20112a; - top: -6.5rem; - left: -2rem; - border-radius: 1rem 0 0 0; -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2:nth-of-type(even) > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2:nth-of-type(even) > i:nth-of-type(1) { - left: 11rem; -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2:nth-of-type(even) > i:nth-of-type(2):before { - transform: rotate(45deg); - left: 5rem; - border-radius: 1rem 0 0 0; - top: 11rem; -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1):before, .hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1):after { - top: -7.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):after { - display: block; -} - -.hs.row2.col2:checked ~ div > div > shed > .row3.col2:after, .hs.row2.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after, .hs.row2.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1) { - display: none; -} - -.hs.row2.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):before, .hs.row2.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(2), .hs.row2.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: none; -} -.hs.row2.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3) { - height: 0; -} -.hs.row2.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(4) { - transform: scale(1); - right: 1rem; - left: 1rem; -} - -.hs.shed.row2.col-1:not(:checked) ~ .hs.row2.col2:checked ~ .shed.hs.row2.col3:not(:checked) ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.shed.row2.col-1:not(:checked) ~ .hs.row2.col2:checked ~ .shed.hs.row2.col3:not(:checked) ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col2:before { - border-top-left-radius: 0; - border-top-right-radius: 0; -} -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2:before { - height: 12.5rem; - box-shadow: none; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3) { - height: 0; -} -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(4) { - transform: scale(1); - right: 1rem; - left: 1rem; -} -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row4.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row3.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):after { - display: none !important; -} - -.hs.row2.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1), .hs.row2.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after { - display: none; -} - -.hs.row2.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col2:after, -.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col2:after { - width: 110%; - right: -1.25rem; -} - -.hs.row2.col3:checked ~ div > div > shed > .row2.col3:before { - background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); - width: 90%; - height: 98%; - left: 1.25rem; - border-radius: 0.5rem; - box-shadow: 0 0.5rem 0 0 #20112a; -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3:after { - width: 105%; - height: 5rem; - background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); - top: -2rem; - border-bottom: solid 0.5rem #252529; - box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); - border-radius: 0.5rem; - left: auto; - right: -1rem; -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(4) { - width: 4rem; - height: 4rem; - right: 0; - margin: auto; - background: rgba(79, 1, 14, 0.3); - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); - transform: scale(0.5); -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(4):before { - width: 3.4rem; - height: 0.5rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(4):after { - width: 0.5rem; - height: 3.4rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3) { - width: 4rem; - height: 9rem; - right: 0; - margin: auto; - background: #bc502f; - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):after { - left: -4rem; - border: 1rem solid rgba(255, 255, 255, 0); - top: -11rem; - border-bottom-color: #252529; - transform: rotate(-3deg); - height: 4rem; - box-shadow: 0 3.7rem 0 -0.5rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):before { - width: 14.5rem; - height: 4.5rem; - border-top: 0.5rem solid #20112a; - border-bottom: 0.5rem solid #20112a; - top: 5rem; - left: -5rem; - background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); - border-radius: 0.5rem; -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(2):before { - width: 1rem; - height: 9rem; - background: #20112a; - top: -7rem; -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3:nth-of-type(odd) > i:nth-of-type(2) { - width: 1rem; - background: #20112a; - height: 3rem; - border-radius: 0.25rem; - top: 18.5rem; - left: 10rem; - transform: rotate(5deg); -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3:nth-of-type(odd) > i:nth-of-type(2):before { - transform: rotate(-45deg); - left: -3rem; - border-radius: 0 1rem 0 0; -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3:nth-of-type(odd) > i:nth-of-type(2):after { - width: 1rem; - height: 4rem; - transform: rotate(45deg); - background: #20112a; - top: -6.5rem; - left: -2rem; - border-radius: 1rem 0 0 0; -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3:nth-of-type(even) > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3:nth-of-type(even) > i:nth-of-type(1) { - left: 11rem; -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3:nth-of-type(even) > i:nth-of-type(2):before { - transform: rotate(45deg); - left: 5rem; - border-radius: 1rem 0 0 0; - top: 11rem; -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1):before, .hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1):after { - top: -7.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(5):after { - display: block; -} - -.hs.row2.col3:checked ~ div > div > shed > .row3.col3:after, .hs.row2.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):after, .hs.row2.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1) { - display: none; -} - -.hs.row2.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):before, .hs.row2.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(2), .hs.row2.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(5):after { - display: none; -} -.hs.row2.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3) { - height: 0; -} -.hs.row2.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(4) { - transform: scale(1); - right: 2rem; - left: 2rem; -} - -.hs.shed.row2.col0:not(:checked) ~ .hs.row2.col3:checked ~ .shed.hs.row2.col4:not(:checked) ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.shed.row2.col0:not(:checked) ~ .hs.row2.col3:checked ~ .shed.hs.row2.col4:not(:checked) ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3:before { - border-top-left-radius: 0; - border-top-right-radius: 0; -} -.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col3:before { - height: 12.5rem; - box-shadow: none; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3) { - height: 0; -} -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(4) { - transform: scale(1); - right: 2rem; - left: 1rem; -} -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(5):after { - display: none; -} - -.hs.row4.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(5):after { - display: none; -} - -.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row3.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(5):after { - display: none !important; -} - -.hs.row2.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1), .hs.row2.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):after { - display: none; -} - -.hs.row2.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col3:after, -.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col3:after { - width: 110%; - right: -1.25rem; -} - -.hs.row2.col4:checked ~ div > div > shed > .row2.col4:before { - background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); - width: 90%; - height: 98%; - left: 1.25rem; - border-radius: 0.5rem; - box-shadow: 0 0.5rem 0 0 #20112a; -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4:after { - width: 105%; - height: 5rem; - background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); - top: -2rem; - border-bottom: solid 0.5rem #252529; - box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); - border-radius: 0.5rem; - left: auto; - right: -1rem; -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(4) { - width: 4rem; - height: 4rem; - right: 0; - margin: auto; - background: rgba(79, 1, 14, 0.3); - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); - transform: scale(0.5); -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(4):before { - width: 3.4rem; - height: 0.5rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(4):after { - width: 0.5rem; - height: 3.4rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3) { - width: 4rem; - height: 9rem; - right: 0; - margin: auto; - background: #bc502f; - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3):after { - left: -4rem; - border: 1rem solid rgba(255, 255, 255, 0); - top: -11rem; - border-bottom-color: #252529; - transform: rotate(-3deg); - height: 4rem; - box-shadow: 0 3.7rem 0 -0.5rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3):before { - width: 14.5rem; - height: 4.5rem; - border-top: 0.5rem solid #20112a; - border-bottom: 0.5rem solid #20112a; - top: 5rem; - left: -5rem; - background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); - border-radius: 0.5rem; -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(2):before { - width: 1rem; - height: 9rem; - background: #20112a; - top: -7rem; -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4:nth-of-type(odd) > i:nth-of-type(2) { - width: 1rem; - background: #20112a; - height: 3rem; - border-radius: 0.25rem; - top: 18.5rem; - left: 10rem; - transform: rotate(5deg); -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4:nth-of-type(odd) > i:nth-of-type(2):before { - transform: rotate(-45deg); - left: -3rem; - border-radius: 0 1rem 0 0; -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4:nth-of-type(odd) > i:nth-of-type(2):after { - width: 1rem; - height: 4rem; - transform: rotate(45deg); - background: #20112a; - top: -6.5rem; - left: -2rem; - border-radius: 1rem 0 0 0; -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4:nth-of-type(even) > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4:nth-of-type(even) > i:nth-of-type(1) { - left: 11rem; -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4:nth-of-type(even) > i:nth-of-type(2):before { - transform: rotate(45deg); - left: 5rem; - border-radius: 1rem 0 0 0; - top: 11rem; -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(1):before, .hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(1):after { - top: -7.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(5):after { - display: block; -} - -.hs.row2.col4:checked ~ div > div > shed > .row3.col4:after, .hs.row2.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(3):after, .hs.row2.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(1) { - display: none; -} - -.hs.row2.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(3):before, .hs.row2.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(2), .hs.row2.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(5):after { - display: none; -} -.hs.row2.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(3) { - height: 0; -} -.hs.row2.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(4) { - transform: scale(1); - right: 2rem; - left: 2rem; -} - -.hs.shed.row2.col1:not(:checked) ~ .hs.row2.col4:checked ~ .shed.hs.row2.col5:not(:checked) ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.shed.row2.col1:not(:checked) ~ .hs.row2.col4:checked ~ .shed.hs.row2.col5:not(:checked) ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4:before { - border-top-left-radius: 0; - border-top-right-radius: 0; -} -.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4:before { - height: 12.5rem; - box-shadow: none; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3) { - height: 0; -} -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(4) { - transform: scale(1); - right: 1rem; - left: 1rem; -} -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(5):after { - display: none; -} - -.hs.row4.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(5):after { - display: none; -} - -.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row3.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(5):after { - display: none !important; -} - -.hs.row2.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(1), .hs.row2.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3):after { - display: none; -} - -.hs.row2.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col4:after, -.hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col4:after { - width: 110%; - right: -1.25rem; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1:before { - width: 110%; -} -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col2:after { - width: 120%; - left: -1.25rem; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2:before { - width: 110%; -} -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col3:after { - width: 120%; - left: -1.25rem; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3:before { - width: 110%; -} -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col4:after { - width: 120%; - left: -1.25rem; -} - -.hs.row2.col2:checked ~ .hs.shed.row2.col3:not(:checked) ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row2.col2:checked ~ .hs.shed.row2.col3:not(:checked) ~ div > div > shed > .row2.col2 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row2.col4:checked ~ .hs.shed.row2.col5:not(:checked) ~ div > div > shed > .row2.col4 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row2.col4:checked ~ .hs.shed.row2.col5:not(:checked) ~ div > div > shed > .row2.col4 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after, .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1) { - display: none; -} -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):before { - width: 10.25rem; -} - -.hs.row2.col2:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after { - left: 6rem; - transform: rotate(3deg); -} -.hs.row2.col2:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1) { - left: 10rem; -} -.hs.row2.col2:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):after { - left: -2.5rem; - transform: rotate(-3deg); -} - -.hs.row2.col2:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after, .hs.row2.col2:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1), -.hs.row2.col2:checked ~ .hs.row2.col-3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after, -.hs.row2.col2:checked ~ .hs.row2.col-3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1) { - display: none; -} - -.hs.row2.col2:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):after { - left: 10rem; - transform: rotate(2deg); -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):after, .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1) { - display: none; -} -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):before { - width: 10.25rem; -} - -.hs.row2.col3:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):after { - left: 6rem; - transform: rotate(3deg); -} -.hs.row2.col3:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1) { - left: 10rem; -} -.hs.row2.col3:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(5):after { - left: -2.5rem; - transform: rotate(-3deg); -} - -.hs.row2.col3:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):after, .hs.row2.col3:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1), -.hs.row2.col3:checked ~ .hs.row2.col-2:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):after, -.hs.row2.col3:checked ~ .hs.row2.col-2:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1) { - display: none; -} - -.hs.row2.col3:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(5):after { - left: 10rem; - transform: rotate(2deg); -} - -.hs.shed.row2.col1:checked ~ .hs.shed.row2.col2:not(:checked) ~ .hs.shed.row2.col3:not(:checked) ~ .hs.shed.row2.col4:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):before { - display: block; - width: 210%; -} - -.hs.shed.row2.col1:checked ~ .hs.shed.row2.col2:not(:checked) ~ .hs.shed.row2.col3:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):before, -.hs.shed.row2.col2:checked ~ .hs.shed.row2.col3:not(:checked) ~ .hs.shed.row2.col4:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):before { - display: block; - width: 110%; -} - -.hs.row3.col2:checked ~ .hs.shed.row2.col1:checked ~ .hs.shed.row2.col2:not(:checked) ~ .hs.shed.row2.col3:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):before, -.hs.row3.col3:checked ~ .hs.shed.row2.col2:checked ~ .hs.shed.row2.col3:not(:checked) ~ .hs.shed.row2.col4:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):before, -.hs.row3.col3:checked ~ .hs.shed.row2.col1:checked ~ .hs.shed.row2.col2:not(:checked) ~ .hs.shed.row2.col3:not(:checked) ~ .hs.shed.row2.col4:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):before, -.hs.row3.col2:checked ~ .hs.shed.row2.col1:checked ~ .hs.shed.row2.col2:not(:checked) ~ .hs.shed.row2.col3:not(:checked) ~ .hs.shed.row2.col4:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):before, -.hs.shed.row3.col1:checked ~ .hs.shed.row2.col1:checked ~ .hs.shed.row2.col2:not(:checked) ~ .hs.shed.row2.col3:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):before, -.hs.shed.row3.col2:checked ~ .hs.shed.row2.col2:checked ~ .hs.shed.row2.col3:not(:checked) ~ .hs.shed.row2.col4:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):before { - top: 1rem; - border: none; -} - -.hs.row3.col1:checked ~ div > div > shed > .row3.col1:before { - background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); - width: 90%; - height: 98%; - left: 1.25rem; - border-radius: 0.5rem; - box-shadow: 0 0.5rem 0 0 #20112a; -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1:after { - width: 105%; - height: 5rem; - background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); - top: -2rem; - border-bottom: solid 0.5rem #252529; - box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); - border-radius: 0.5rem; - left: auto; - right: -1rem; -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(4) { - width: 4rem; - height: 4rem; - right: 0; - margin: auto; - background: rgba(79, 1, 14, 0.3); - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); - transform: scale(0.5); -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(4):before { - width: 3.4rem; - height: 0.5rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(4):after { - width: 0.5rem; - height: 3.4rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(3) { - width: 4rem; - height: 9rem; - right: 0; - margin: auto; - background: #bc502f; - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(3):after { - left: -4rem; - border: 1rem solid rgba(255, 255, 255, 0); - top: -11rem; - border-bottom-color: #252529; - transform: rotate(-3deg); - height: 4rem; - box-shadow: 0 3.7rem 0 -0.5rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(3):before { - width: 14.5rem; - height: 4.5rem; - border-top: 0.5rem solid #20112a; - border-bottom: 0.5rem solid #20112a; - top: 5rem; - left: -5rem; - background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); - border-radius: 0.5rem; -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(2):before { - width: 1rem; - height: 9rem; - background: #20112a; - top: -7rem; -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1:nth-of-type(odd) > i:nth-of-type(2) { - width: 1rem; - background: #20112a; - height: 3rem; - border-radius: 0.25rem; - top: 18.5rem; - left: 10rem; - transform: rotate(5deg); -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1:nth-of-type(odd) > i:nth-of-type(2):before { - transform: rotate(-45deg); - left: -3rem; - border-radius: 0 1rem 0 0; -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1:nth-of-type(odd) > i:nth-of-type(2):after { - width: 1rem; - height: 4rem; - transform: rotate(45deg); - background: #20112a; - top: -6.5rem; - left: -2rem; - border-radius: 1rem 0 0 0; -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1:nth-of-type(even) > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1:nth-of-type(even) > i:nth-of-type(1) { - left: 11rem; -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1:nth-of-type(even) > i:nth-of-type(2):before { - transform: rotate(45deg); - left: 5rem; - border-radius: 1rem 0 0 0; - top: 11rem; -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(1):before, .hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(1):after { - top: -7.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):after { - display: block; -} - -.hs.row3.col1:checked ~ div > div > shed > .row4.col1:after, .hs.row3.col1:checked ~ div > div > shed > .row4.col1 > i:nth-of-type(3):after, .hs.row3.col1:checked ~ div > div > shed > .row4.col1 > i:nth-of-type(1) { - display: none; -} - -.hs.row3.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3):before, .hs.row3.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(2), .hs.row3.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):after { - display: none; -} -.hs.row3.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3) { - height: 0; -} -.hs.row3.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(4) { - transform: scale(1); - right: 2rem; - left: 2rem; -} - -.hs.shed.row3.col-2:not(:checked) ~ .hs.row3.col1:checked ~ .shed.hs.row3.col2:not(:checked) ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.shed.row3.col-2:not(:checked) ~ .hs.row3.col1:checked ~ .shed.hs.row3.col2:not(:checked) ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row3.col1:before { - border-top-left-radius: 0; - border-top-right-radius: 0; -} -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col1:before { - height: 12.5rem; - box-shadow: none; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(3) { - height: 0; -} -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(4) { - transform: scale(1); - right: 2rem; - left: 1rem; -} -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):after { - display: none; -} - -.hs.row5.col1:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):after { - display: none; -} - -.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row4.col0:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):after { - display: none !important; -} - -.hs.row3.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(1), .hs.row3.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(3):after { - display: none; -} - -.hs.row3.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col1:after, -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col1:after { - width: 110%; - right: -1.25rem; -} - -.hs.row3.col2:checked ~ div > div > shed > .row3.col2:before { - background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); - width: 90%; - height: 98%; - left: 1.25rem; - border-radius: 0.5rem; - box-shadow: 0 0.5rem 0 0 #20112a; -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2:after { - width: 105%; - height: 5rem; - background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); - top: -2rem; - border-bottom: solid 0.5rem #252529; - box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); - border-radius: 0.5rem; - left: auto; - right: -1rem; -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(4) { - width: 4rem; - height: 4rem; - right: 0; - margin: auto; - background: rgba(79, 1, 14, 0.3); - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); - transform: scale(0.5); -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(4):before { - width: 3.4rem; - height: 0.5rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(4):after { - width: 0.5rem; - height: 3.4rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3) { - width: 4rem; - height: 9rem; - right: 0; - margin: auto; - background: #bc502f; - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after { - left: -4rem; - border: 1rem solid rgba(255, 255, 255, 0); - top: -11rem; - border-bottom-color: #252529; - transform: rotate(-3deg); - height: 4rem; - box-shadow: 0 3.7rem 0 -0.5rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):before { - width: 14.5rem; - height: 4.5rem; - border-top: 0.5rem solid #20112a; - border-bottom: 0.5rem solid #20112a; - top: 5rem; - left: -5rem; - background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); - border-radius: 0.5rem; -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(2):before { - width: 1rem; - height: 9rem; - background: #20112a; - top: -7rem; -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2:nth-of-type(odd) > i:nth-of-type(2) { - width: 1rem; - background: #20112a; - height: 3rem; - border-radius: 0.25rem; - top: 18.5rem; - left: 10rem; - transform: rotate(5deg); -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2:nth-of-type(odd) > i:nth-of-type(2):before { - transform: rotate(-45deg); - left: -3rem; - border-radius: 0 1rem 0 0; -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2:nth-of-type(odd) > i:nth-of-type(2):after { - width: 1rem; - height: 4rem; - transform: rotate(45deg); - background: #20112a; - top: -6.5rem; - left: -2rem; - border-radius: 1rem 0 0 0; -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2:nth-of-type(even) > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2:nth-of-type(even) > i:nth-of-type(1) { - left: 11rem; -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2:nth-of-type(even) > i:nth-of-type(2):before { - transform: rotate(45deg); - left: 5rem; - border-radius: 1rem 0 0 0; - top: 11rem; -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1):before, .hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1):after { - top: -7.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):after { - display: block; -} - -.hs.row3.col2:checked ~ div > div > shed > .row4.col2:after, .hs.row3.col2:checked ~ div > div > shed > .row4.col2 > i:nth-of-type(3):after, .hs.row3.col2:checked ~ div > div > shed > .row4.col2 > i:nth-of-type(1) { - display: none; -} - -.hs.row3.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):before, .hs.row3.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(2), .hs.row3.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):after { - display: none; -} -.hs.row3.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3) { - height: 0; -} -.hs.row3.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(4) { - transform: scale(1); - right: 1rem; - left: 1rem; -} - -.hs.shed.row3.col-1:not(:checked) ~ .hs.row3.col2:checked ~ .shed.hs.row3.col3:not(:checked) ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.shed.row3.col-1:not(:checked) ~ .hs.row3.col2:checked ~ .shed.hs.row3.col3:not(:checked) ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col2:before { - border-top-left-radius: 0; - border-top-right-radius: 0; -} -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col2:before { - height: 12.5rem; - box-shadow: none; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3) { - height: 0; -} -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(4) { - transform: scale(1); - right: 2rem; - left: 1rem; -} -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row5.col2:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row4.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):after { - display: none !important; -} - -.hs.row3.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1), .hs.row3.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after { - display: none; -} - -.hs.row3.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col2:after, -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col2:after { - width: 110%; - right: -1.25rem; -} - -.hs.row3.col3:checked ~ div > div > shed > .row3.col3:before { - background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); - width: 90%; - height: 98%; - left: 1.25rem; - border-radius: 0.5rem; - box-shadow: 0 0.5rem 0 0 #20112a; -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3:after { - width: 105%; - height: 5rem; - background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); - top: -2rem; - border-bottom: solid 0.5rem #252529; - box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); - border-radius: 0.5rem; - left: auto; - right: -1rem; -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(4) { - width: 4rem; - height: 4rem; - right: 0; - margin: auto; - background: rgba(79, 1, 14, 0.3); - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); - transform: scale(0.5); -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(4):before { - width: 3.4rem; - height: 0.5rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(4):after { - width: 0.5rem; - height: 3.4rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3) { - width: 4rem; - height: 9rem; - right: 0; - margin: auto; - background: #bc502f; - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):after { - left: -4rem; - border: 1rem solid rgba(255, 255, 255, 0); - top: -11rem; - border-bottom-color: #252529; - transform: rotate(-3deg); - height: 4rem; - box-shadow: 0 3.7rem 0 -0.5rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):before { - width: 14.5rem; - height: 4.5rem; - border-top: 0.5rem solid #20112a; - border-bottom: 0.5rem solid #20112a; - top: 5rem; - left: -5rem; - background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); - border-radius: 0.5rem; -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(2):before { - width: 1rem; - height: 9rem; - background: #20112a; - top: -7rem; -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3:nth-of-type(odd) > i:nth-of-type(2) { - width: 1rem; - background: #20112a; - height: 3rem; - border-radius: 0.25rem; - top: 18.5rem; - left: 10rem; - transform: rotate(5deg); -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3:nth-of-type(odd) > i:nth-of-type(2):before { - transform: rotate(-45deg); - left: -3rem; - border-radius: 0 1rem 0 0; -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3:nth-of-type(odd) > i:nth-of-type(2):after { - width: 1rem; - height: 4rem; - transform: rotate(45deg); - background: #20112a; - top: -6.5rem; - left: -2rem; - border-radius: 1rem 0 0 0; -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3:nth-of-type(even) > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3:nth-of-type(even) > i:nth-of-type(1) { - left: 11rem; -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3:nth-of-type(even) > i:nth-of-type(2):before { - transform: rotate(45deg); - left: 5rem; - border-radius: 1rem 0 0 0; - top: 11rem; -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1):before, .hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1):after { - top: -7.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(5):after { - display: block; -} - -.hs.row3.col3:checked ~ div > div > shed > .row4.col3:after, .hs.row3.col3:checked ~ div > div > shed > .row4.col3 > i:nth-of-type(3):after, .hs.row3.col3:checked ~ div > div > shed > .row4.col3 > i:nth-of-type(1) { - display: none; -} - -.hs.row3.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):before, .hs.row3.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(2), .hs.row3.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(5):after { - display: none; -} -.hs.row3.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3) { - height: 0; -} -.hs.row3.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(4) { - transform: scale(1); - right: 2rem; - left: 2rem; -} - -.hs.shed.row3.col0:not(:checked) ~ .hs.row3.col3:checked ~ .shed.hs.row3.col4:not(:checked) ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.shed.row3.col0:not(:checked) ~ .hs.row3.col3:checked ~ .shed.hs.row3.col4:not(:checked) ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col3:before { - border-top-left-radius: 0; - border-top-right-radius: 0; -} -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col3:before { - height: 12.5rem; - box-shadow: none; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3) { - height: 0; -} -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(4) { - transform: scale(1); - right: 1rem; - left: 1rem; -} -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(5):after { - display: none; -} - -.hs.row5.col3:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(5):after { - display: none; -} - -.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row4.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(5):after { - display: none !important; -} - -.hs.row3.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1), .hs.row3.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):after { - display: none; -} - -.hs.row3.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col3:after, -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col3:after { - width: 110%; - right: -1.25rem; -} - -.hs.row3.col4:checked ~ div > div > shed > .row3.col4:before { - background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); - width: 90%; - height: 98%; - left: 1.25rem; - border-radius: 0.5rem; - box-shadow: 0 0.5rem 0 0 #20112a; -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4:after { - width: 105%; - height: 5rem; - background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); - top: -2rem; - border-bottom: solid 0.5rem #252529; - box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); - border-radius: 0.5rem; - left: auto; - right: -1rem; -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(4) { - width: 4rem; - height: 4rem; - right: 0; - margin: auto; - background: rgba(79, 1, 14, 0.3); - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); - transform: scale(0.5); -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(4):before { - width: 3.4rem; - height: 0.5rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(4):after { - width: 0.5rem; - height: 3.4rem; - background: #252529; - left: 0.3rem; - top: 0.4rem; - border-radius: 0.25rem; - box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(3) { - width: 4rem; - height: 9rem; - right: 0; - margin: auto; - background: #bc502f; - top: 3rem; - border-radius: 0.5rem; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(3):after { - left: -4rem; - border: 1rem solid rgba(255, 255, 255, 0); - top: -11rem; - border-bottom-color: #252529; - transform: rotate(-3deg); - height: 4rem; - box-shadow: 0 3.7rem 0 -0.5rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(3):before { - width: 14.5rem; - height: 4.5rem; - border-top: 0.5rem solid #20112a; - border-bottom: 0.5rem solid #20112a; - top: 5rem; - left: -5rem; - background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); - border-radius: 0.5rem; -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(2):before { - width: 1rem; - height: 9rem; - background: #20112a; - top: -7rem; -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4:nth-of-type(odd) > i:nth-of-type(2) { - width: 1rem; - background: #20112a; - height: 3rem; - border-radius: 0.25rem; - top: 18.5rem; - left: 10rem; - transform: rotate(5deg); -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4:nth-of-type(odd) > i:nth-of-type(2):before { - transform: rotate(-45deg); - left: -3rem; - border-radius: 0 1rem 0 0; -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4:nth-of-type(odd) > i:nth-of-type(2):after { - width: 1rem; - height: 4rem; - transform: rotate(45deg); - background: #20112a; - top: -6.5rem; - left: -2rem; - border-radius: 1rem 0 0 0; -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4:nth-of-type(even) > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4:nth-of-type(even) > i:nth-of-type(1) { - left: 11rem; -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4:nth-of-type(even) > i:nth-of-type(2):before { - transform: rotate(45deg); - left: 5rem; - border-radius: 1rem 0 0 0; - top: 11rem; -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(1):before, .hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(1):after { - top: -7.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(5):after { - display: block; -} - -.hs.row3.col4:checked ~ div > div > shed > .row4.col4:after, .hs.row3.col4:checked ~ div > div > shed > .row4.col4 > i:nth-of-type(3):after, .hs.row3.col4:checked ~ div > div > shed > .row4.col4 > i:nth-of-type(1) { - display: none; -} - -.hs.row3.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3):before, .hs.row3.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(2), .hs.row3.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(5):after { - display: none; -} -.hs.row3.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3) { - height: 0; -} -.hs.row3.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(4) { - transform: scale(1); - right: 2rem; - left: 1rem; -} - -.hs.shed.row3.col1:not(:checked) ~ .hs.row3.col4:checked ~ .shed.hs.row3.col5:not(:checked) ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.shed.row3.col1:not(:checked) ~ .hs.row3.col4:checked ~ .shed.hs.row3.col5:not(:checked) ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4:before { - border-top-left-radius: 0; - border-top-right-radius: 0; -} -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col4:before { - height: 12.5rem; - box-shadow: none; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(3) { - height: 0; -} -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(4) { - transform: scale(1); - right: 1rem; - left: 1rem; -} -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(5):after { - display: none; -} - -.hs.row5.col4:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(5):after { - display: none; -} - -.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { - display: none; -} - -.hs.row4.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(5):after { - display: none !important; -} - -.hs.row3.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(1), .hs.row3.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(3):after { - display: none; -} - -.hs.row3.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col4:after, -.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col4:after { - width: 110%; - right: -1.25rem; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col1:before { - width: 110%; -} -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col2:after { - width: 120%; - left: -1.25rem; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col2:before { - width: 110%; -} -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col3:after { - width: 120%; - left: -1.25rem; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col3:before { - width: 110%; -} -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col4:after { - width: 120%; - left: -1.25rem; -} - -.hs.row3.col2:checked ~ .hs.shed.row3.col3:not(:checked) ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row3.col2:checked ~ .hs.shed.row3.col3:not(:checked) ~ div > div > shed > .row3.col2 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row3.col4:checked ~ .hs.shed.row3.col5:not(:checked) ~ div > div > shed > .row3.col4 > i:nth-of-type(3):after { - left: 7rem; - transform: rotate(3deg); -} -.hs.row3.col4:checked ~ .hs.shed.row3.col5:not(:checked) ~ div > div > shed > .row3.col4 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after, .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1) { - display: none; -} -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):before { - width: 10.25rem; -} - -.hs.row3.col2:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after { - left: 6rem; - transform: rotate(3deg); -} -.hs.row3.col2:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1) { - left: 10rem; -} -.hs.row3.col2:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):after { - left: -2.5rem; - transform: rotate(-3deg); -} - -.hs.row3.col2:checked ~ .hs.row3.col-1:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after, .hs.row3.col2:checked ~ .hs.row3.col-1:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1), -.hs.row3.col2:checked ~ .hs.row3.col-3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after, -.hs.row3.col2:checked ~ .hs.row3.col-3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1) { - display: none; -} - -.hs.row3.col2:checked ~ .hs.row3.col-1:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):after { - left: 10rem; - transform: rotate(2deg); -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):after, .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1) { - display: none; -} -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):before { - width: 10.25rem; -} - -.hs.row3.col3:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):after { - left: 6rem; - transform: rotate(3deg); -} -.hs.row3.col3:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1) { - left: 10rem; -} -.hs.row3.col3:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(5):after { - left: -2.5rem; - transform: rotate(-3deg); -} - -.hs.row3.col3:checked ~ .hs.row3.col0:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):after, .hs.row3.col3:checked ~ .hs.row3.col0:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1), -.hs.row3.col3:checked ~ .hs.row3.col-2:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):after, -.hs.row3.col3:checked ~ .hs.row3.col-2:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1) { - display: none; -} - -.hs.row3.col3:checked ~ .hs.row3.col0:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(5):after { - left: 10rem; - transform: rotate(2deg); -} - -.hs.shed.row3.col1:checked ~ .hs.shed.row3.col2:not(:checked) ~ .hs.shed.row3.col3:not(:checked) ~ .hs.shed.row3.col4:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):before { - display: block; - width: 210%; -} - -.hs.shed.row3.col1:checked ~ .hs.shed.row3.col2:not(:checked) ~ .hs.shed.row3.col3:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):before, -.hs.shed.row3.col2:checked ~ .hs.shed.row3.col3:not(:checked) ~ .hs.shed.row3.col4:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):before { - display: block; - width: 110%; -} - -.hs.row4.col2:checked ~ .hs.shed.row3.col1:checked ~ .hs.shed.row3.col2:not(:checked) ~ .hs.shed.row3.col3:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):before, -.hs.row4.col3:checked ~ .hs.shed.row3.col2:checked ~ .hs.shed.row3.col3:not(:checked) ~ .hs.shed.row3.col4:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):before, -.hs.row4.col3:checked ~ .hs.shed.row3.col1:checked ~ .hs.shed.row3.col2:not(:checked) ~ .hs.shed.row3.col3:not(:checked) ~ .hs.shed.row3.col4:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):before, -.hs.row4.col2:checked ~ .hs.shed.row3.col1:checked ~ .hs.shed.row3.col2:not(:checked) ~ .hs.shed.row3.col3:not(:checked) ~ .hs.shed.row3.col4:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):before, -.hs.shed.row4.col1:checked ~ .hs.shed.row3.col1:checked ~ .hs.shed.row3.col2:not(:checked) ~ .hs.shed.row3.col3:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):before, -.hs.shed.row4.col2:checked ~ .hs.shed.row3.col2:checked ~ .hs.shed.row3.col3:not(:checked) ~ .hs.shed.row3.col4:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):before { - top: 1rem; - border: none; -} - -div > div > house > label > i:nth-of-type(5) { - width: 13rem; - height: 3rem; - top: 1rem; - border-bottom-color: #683f44; - box-shadow: 0 0.25rem 0 #683f44; - border-radius: 50%; - left: -0.5rem; - z-index: 1; - display: none; -} -div > div > house > label > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 1rem; - transform: rotate(5deg); - z-index: -1 !important; - filter: drop-shadow(2rem 0.25rem 0 #bc5c2f) drop-shadow(2rem 0rem 0 #bc502f); -} -div > div > house > label > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 7rem; - transform: rotate(-5deg); - z-index: -1 !important; - filter: drop-shadow(2rem -0.25rem 0 #bc5c2f) drop-shadow(2rem 0rem 0 #bc502f); -} - -.hs.row1.col1:checked ~ div > div > house > .row1.col1:before { - width: 1.5rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: -1.35rem; - left: 3rem; - box-shadow: 2rem 2rem 0 currentColor; - filter: hue-rotate(-10deg) brightness(1.1); - opacity: 0.7; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1:after { - filter: hue-rotate(-10deg) brightness(1.1); - width: 2rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: 0.5rem; - left: -0.15rem; - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(4) { - width: 5rem; - right: 0; - margin: auto; - top: 3.5rem; - background: rgba(79, 1, 14, 0.9); - height: 5rem; - border-radius: 0.3rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(4):after { - width: 4.5rem; - height: 0.25rem; - left: 0.25rem; - top: 2.4rem; - background: currentColor; - border-radius: 0.0001rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(4):before { - width: 0.25rem; - height: 4.5rem; - left: 2.4rem; - top: 0.25rem; - background: currentColor; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1.col3 > i:nth-of-type(4) { - border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(2) { - border: solid rgba(255, 255, 255, 0) 1rem; - border-bottom: solid #6a341b 4rem; - width: calc(100% + 2.1rem); - left: -1rem; - top: -2.5rem; - box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(2):before { - width: 100%; - height: 3rem; - border-radius: 50%; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(2):after { - width: 3rem; - height: 4rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 0.5rem solid #bc2f2f; - top: -2rem; - box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; - border-radius: 0.5rem; - left: -0.25rem; - filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(1):before, .hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(1):after { - top: -8.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(even) i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(even) > i:nth-of-type(1) { - left: 10rem; -} -.hs.row1.col1:checked ~ div > div > house > .row2.col1 i:nth-of-type(2), -.hs.row1.col1:checked ~ div > div > house > .row2.col1 i:nth-of-type(1) { - display: none; -} - -.hs.house.row2.col1:checked ~ .hs.shed.row1.col1:checked ~ div > div > house > .row1.col1 { - border-bottom: 0.25rem dashed #bc2f2f; -} -.hs.house.row2.col1:checked ~ .hs.shed.row1.col1:checked ~ div > div > house > .row2.col1:before { - background: #bc502f; -} - -.hs.shed.row2.col1:checked ~ .hs.house.row1.col1:checked ~ div > div > house > .row1.col1 { - border-bottom: 0.25rem dashed #bc502f; -} -.hs.shed.row2.col1:checked ~ .hs.house.row1.col1:checked ~ div > div > house > .row2.col1:before { - background: #bc2f2f; -} - -.hs.house.row1.col-2:not(:checked) ~ .hs.house.row1.col1:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.house.row-1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.house.row1.col-2:not(:checked) ~ .hs.house.row1.col1:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.house.row-1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row0.col0:checked ~ .hs.row0.col1:not(:checked) ~ div > div > house > .row1.col1 > i:nth-of-type(2):after, -.hs.house.row0.col1:not(:checked) ~ .hs.house.row-1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(2):after { - left: 4.75rem; - height: 3rem; - box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row0.col0:checked ~ .hs.row0.col1:not(:checked) ~ div > div > house > .row1.col1 > i:nth-of-type(1), -.hs.house.row0.col1:not(:checked) ~ .hs.house.row-1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(1) { - left: 5rem; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.house.row0.col0:not(:checked) ~ .hs.shed.row0.col0:not(:checked) ~ .hs.row0.col1:checked ~ div > div > house > .row1.col1 i:nth-of-type(2) { - display: block; - left: -42%; - width: 50%; -} -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.house.row0.col0:not(:checked) ~ .hs.shed.row0.col0:not(:checked) ~ .hs.row0.col1:checked ~ div > div > house > .row1.col1 i:nth-of-type(1), -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.house.row0.col0:not(:checked) ~ .hs.shed.row0.col0:not(:checked) ~ .hs.row0.col1:checked ~ div > div > house > .row1.col1 i:nth-of-type(2):after { - display: none; -} - -.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col2 i:nth-of-type(1), -.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col2 i:nth-of-type(2):after { - display: none; -} -.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2):after { - left: -1.5rem; -} -.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1) { - left: -1rem; -} - -.hs.row1.col2:checked ~ div > div > house > .row1.col2:before { - width: 1.5rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: -1.35rem; - left: 3rem; - box-shadow: 2rem 2rem 0 currentColor; - filter: hue-rotate(-10deg) brightness(1.1); - opacity: 0.7; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2:after { - filter: hue-rotate(-10deg) brightness(1.1); - width: 2rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: 0.5rem; - left: -0.15rem; - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(4) { - width: 5rem; - right: 0; - margin: auto; - top: 3.5rem; - background: rgba(79, 1, 14, 0.9); - height: 5rem; - border-radius: 0.3rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(4):after { - width: 4.5rem; - height: 0.25rem; - left: 0.25rem; - top: 2.4rem; - background: currentColor; - border-radius: 0.0001rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(4):before { - width: 0.25rem; - height: 4.5rem; - left: 2.4rem; - top: 0.25rem; - background: currentColor; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2.col1 > i:nth-of-type(4) { - border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(2) { - border: solid rgba(255, 255, 255, 0) 1rem; - border-bottom: solid #6a341b 4rem; - width: calc(100% + 2.1rem); - left: -1rem; - top: -2.5rem; - box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(2):before { - width: 100%; - height: 3rem; - border-radius: 50%; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(2):after { - width: 3rem; - height: 4rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 0.5rem solid #bc2f2f; - top: -2rem; - box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; - border-radius: 0.5rem; - left: -0.25rem; - filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(1):before, .hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(1):after { - top: -8.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(even) i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(even) > i:nth-of-type(1) { - left: 10rem; -} -.hs.row1.col2:checked ~ div > div > house > .row2.col2 i:nth-of-type(2), -.hs.row1.col2:checked ~ div > div > house > .row2.col2 i:nth-of-type(1) { - display: none; -} - -.hs.house.row2.col2:checked ~ .hs.shed.row1.col2:checked ~ div > div > house > .row1.col2 { - border-bottom: 0.25rem dashed #bc2f2f; -} -.hs.house.row2.col2:checked ~ .hs.shed.row1.col2:checked ~ div > div > house > .row2.col2:before { - background: #bc502f; -} - -.hs.shed.row2.col2:checked ~ .hs.house.row1.col2:checked ~ div > div > house > .row1.col2 { - border-bottom: 0.25rem dashed #bc502f; -} -.hs.shed.row2.col2:checked ~ .hs.house.row1.col2:checked ~ div > div > house > .row2.col2:before { - background: #bc2f2f; -} - -.hs.house.row1.col-1:not(:checked) ~ .hs.house.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.house.row-1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.house.row1.col-1:not(:checked) ~ .hs.house.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.house.row-1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row0.col1:checked ~ .hs.row0.col2:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(2):after, -.hs.house.row0.col2:not(:checked) ~ .hs.house.row-1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(2):after { - left: 4.75rem; - height: 3rem; - box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row0.col1:checked ~ .hs.row0.col2:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(1), -.hs.house.row0.col2:not(:checked) ~ .hs.house.row-1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(1) { - left: 5rem; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.house.row0.col1:not(:checked) ~ .hs.shed.row0.col1:not(:checked) ~ .hs.row0.col2:checked ~ div > div > house > .row1.col2 i:nth-of-type(2) { - display: block; - left: -42%; - width: 50%; -} -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.house.row0.col1:not(:checked) ~ .hs.shed.row0.col1:not(:checked) ~ .hs.row0.col2:checked ~ div > div > house > .row1.col2 i:nth-of-type(1), -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.house.row0.col1:not(:checked) ~ .hs.shed.row0.col1:not(:checked) ~ .hs.row0.col2:checked ~ div > div > house > .row1.col2 i:nth-of-type(2):after { - display: none; -} - -.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col2 i:nth-of-type(1), -.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col2 i:nth-of-type(2):after { - display: none; -} -.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2):after { - left: -1.5rem; -} -.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1) { - left: -1rem; -} - -.hs.row1.col3:checked ~ div > div > house > .row1.col3:before { - width: 1.5rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: -1.35rem; - left: 3rem; - box-shadow: 2rem 2rem 0 currentColor; - filter: hue-rotate(-10deg) brightness(1.1); - opacity: 0.7; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3:after { - filter: hue-rotate(-10deg) brightness(1.1); - width: 2rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: 0.5rem; - left: -0.15rem; - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(4) { - width: 5rem; - right: 0; - margin: auto; - top: 3.5rem; - background: rgba(79, 1, 14, 0.9); - height: 5rem; - border-radius: 0.3rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(4):after { - width: 4.5rem; - height: 0.25rem; - left: 0.25rem; - top: 2.4rem; - background: currentColor; - border-radius: 0.0001rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(4):before { - width: 0.25rem; - height: 4.5rem; - left: 2.4rem; - top: 0.25rem; - background: currentColor; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3.col2 > i:nth-of-type(4) { - border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2) { - border: solid rgba(255, 255, 255, 0) 1rem; - border-bottom: solid #6a341b 4rem; - width: calc(100% + 2.1rem); - left: -1rem; - top: -2.5rem; - box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2):before { - width: 100%; - height: 3rem; - border-radius: 50%; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2):after { - width: 3rem; - height: 4rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 0.5rem solid #bc2f2f; - top: -2rem; - box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; - border-radius: 0.5rem; - left: -0.25rem; - filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1):before, .hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1):after { - top: -8.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(even) i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(even) > i:nth-of-type(1) { - left: 10rem; -} -.hs.row1.col3:checked ~ div > div > house > .row2.col3 i:nth-of-type(2), -.hs.row1.col3:checked ~ div > div > house > .row2.col3 i:nth-of-type(1) { - display: none; -} - -.hs.house.row2.col3:checked ~ .hs.shed.row1.col3:checked ~ div > div > house > .row1.col3 { - border-bottom: 0.25rem dashed #bc2f2f; -} -.hs.house.row2.col3:checked ~ .hs.shed.row1.col3:checked ~ div > div > house > .row2.col3:before { - background: #bc502f; -} - -.hs.shed.row2.col3:checked ~ .hs.house.row1.col3:checked ~ div > div > house > .row1.col3 { - border-bottom: 0.25rem dashed #bc502f; -} -.hs.shed.row2.col3:checked ~ .hs.house.row1.col3:checked ~ div > div > house > .row2.col3:before { - background: #bc2f2f; -} - -.hs.house.row1.col0:not(:checked) ~ .hs.house.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ .hs.house.row-1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.house.row1.col0:not(:checked) ~ .hs.house.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ .hs.house.row-1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row0.col2:checked ~ .hs.row0.col3:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(2):after, -.hs.house.row0.col3:not(:checked) ~ .hs.house.row-1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2):after { - left: 4.75rem; - height: 3rem; - box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row0.col2:checked ~ .hs.row0.col3:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(1), -.hs.house.row0.col3:not(:checked) ~ .hs.house.row-1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1) { - left: 5rem; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.house.row0.col2:not(:checked) ~ .hs.shed.row0.col2:not(:checked) ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3 i:nth-of-type(2) { - display: block; - left: -42%; - width: 50%; -} -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.house.row0.col2:not(:checked) ~ .hs.shed.row0.col2:not(:checked) ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3 i:nth-of-type(1), -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.house.row0.col2:not(:checked) ~ .hs.shed.row0.col2:not(:checked) ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3 i:nth-of-type(2):after { - display: none; -} - -.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col2 i:nth-of-type(1), -.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col2 i:nth-of-type(2):after { - display: none; -} -.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2):after { - left: -1.5rem; -} -.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1) { - left: -1rem; -} - -.hs.row1.col4:checked ~ div > div > house > .row1.col4:before { - width: 1.5rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: -1.35rem; - left: 3rem; - box-shadow: 2rem 2rem 0 currentColor; - filter: hue-rotate(-10deg) brightness(1.1); - opacity: 0.7; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4:after { - filter: hue-rotate(-10deg) brightness(1.1); - width: 2rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: 0.5rem; - left: -0.15rem; - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(4) { - width: 5rem; - right: 0; - margin: auto; - top: 3.5rem; - background: rgba(79, 1, 14, 0.9); - height: 5rem; - border-radius: 0.3rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(4):after { - width: 4.5rem; - height: 0.25rem; - left: 0.25rem; - top: 2.4rem; - background: currentColor; - border-radius: 0.0001rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(4):before { - width: 0.25rem; - height: 4.5rem; - left: 2.4rem; - top: 0.25rem; - background: currentColor; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4.col1 > i:nth-of-type(4) { - border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(2) { - border: solid rgba(255, 255, 255, 0) 1rem; - border-bottom: solid #6a341b 4rem; - width: calc(100% + 2.1rem); - left: -1rem; - top: -2.5rem; - box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(2):before { - width: 100%; - height: 3rem; - border-radius: 50%; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(2):after { - width: 3rem; - height: 4rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 0.5rem solid #bc2f2f; - top: -2rem; - box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; - border-radius: 0.5rem; - left: -0.25rem; - filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(1):before, .hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(1):after { - top: -8.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(even) i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(even) > i:nth-of-type(1) { - left: 10rem; -} -.hs.row1.col4:checked ~ div > div > house > .row2.col4 i:nth-of-type(2), -.hs.row1.col4:checked ~ div > div > house > .row2.col4 i:nth-of-type(1) { - display: none; -} - -.hs.house.row2.col4:checked ~ .hs.shed.row1.col4:checked ~ div > div > house > .row1.col4 { - border-bottom: 0.25rem dashed #bc2f2f; -} -.hs.house.row2.col4:checked ~ .hs.shed.row1.col4:checked ~ div > div > house > .row2.col4:before { - background: #bc502f; -} - -.hs.shed.row2.col4:checked ~ .hs.house.row1.col4:checked ~ div > div > house > .row1.col4 { - border-bottom: 0.25rem dashed #bc502f; -} -.hs.shed.row2.col4:checked ~ .hs.house.row1.col4:checked ~ div > div > house > .row2.col4:before { - background: #bc2f2f; -} - -.hs.house.row1.col1:not(:checked) ~ .hs.house.row1.col4:checked ~ .hs.house.row1.col5:not(:checked) ~ .hs.house.row-1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.house.row1.col1:not(:checked) ~ .hs.house.row1.col4:checked ~ .hs.house.row1.col5:not(:checked) ~ .hs.house.row-1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row0.col3:checked ~ .hs.row0.col4:not(:checked) ~ div > div > house > .row1.col4 > i:nth-of-type(2):after, -.hs.house.row0.col4:not(:checked) ~ .hs.house.row-1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(2):after { - left: 4.75rem; - height: 3rem; - box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row0.col3:checked ~ .hs.row0.col4:not(:checked) ~ div > div > house > .row1.col4 > i:nth-of-type(1), -.hs.house.row0.col4:not(:checked) ~ .hs.house.row-1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(1) { - left: 5rem; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.house.row0.col3:not(:checked) ~ .hs.shed.row0.col3:not(:checked) ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 i:nth-of-type(2) { - display: block; - left: -42%; - width: 50%; -} -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.house.row0.col3:not(:checked) ~ .hs.shed.row0.col3:not(:checked) ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 i:nth-of-type(1), -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.house.row0.col3:not(:checked) ~ .hs.shed.row0.col3:not(:checked) ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 i:nth-of-type(2):after { - display: none; -} - -.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col2 i:nth-of-type(1), -.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col2 i:nth-of-type(2):after { - display: none; -} -.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2):after { - left: -1.5rem; -} -.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1) { - left: -1rem; -} - -.hs.row2.col1:checked ~ div > div > house > .row2.col1:before { - width: 1.5rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: -1.35rem; - left: 3rem; - box-shadow: 2rem 2rem 0 currentColor; - filter: hue-rotate(-10deg) brightness(1.1); - opacity: 0.7; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1:after { - filter: hue-rotate(-10deg) brightness(1.1); - width: 2rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: 0.5rem; - left: -0.15rem; - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(4) { - width: 5rem; - right: 0; - margin: auto; - top: 3.5rem; - background: rgba(79, 1, 14, 0.9); - height: 5rem; - border-radius: 0.3rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(4):after { - width: 4.5rem; - height: 0.25rem; - left: 0.25rem; - top: 2.4rem; - background: currentColor; - border-radius: 0.0001rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(4):before { - width: 0.25rem; - height: 4.5rem; - left: 2.4rem; - top: 0.25rem; - background: currentColor; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1.col3 > i:nth-of-type(4) { - border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(2) { - border: solid rgba(255, 255, 255, 0) 1rem; - border-bottom: solid #6a341b 4rem; - width: calc(100% + 2.1rem); - left: -1rem; - top: -2.5rem; - box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(2):before { - width: 100%; - height: 3rem; - border-radius: 50%; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(2):after { - width: 3rem; - height: 4rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 0.5rem solid #bc2f2f; - top: -2rem; - box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; - border-radius: 0.5rem; - left: -0.25rem; - filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(1):before, .hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(1):after { - top: -8.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(even) i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(even) > i:nth-of-type(1) { - left: 10rem; -} -.hs.row2.col1:checked ~ div > div > house > .row3.col1 i:nth-of-type(2), -.hs.row2.col1:checked ~ div > div > house > .row3.col1 i:nth-of-type(1) { - display: none; -} - -.hs.house.row3.col1:checked ~ .hs.shed.row2.col1:checked ~ div > div > house > .row2.col1 { - border-bottom: 0.25rem dashed #bc2f2f; -} -.hs.house.row3.col1:checked ~ .hs.shed.row2.col1:checked ~ div > div > house > .row3.col1:before { - background: #bc502f; -} - -.hs.shed.row3.col1:checked ~ .hs.house.row2.col1:checked ~ div > div > house > .row2.col1 { - border-bottom: 0.25rem dashed #bc502f; -} -.hs.shed.row3.col1:checked ~ .hs.house.row2.col1:checked ~ div > div > house > .row3.col1:before { - background: #bc2f2f; -} - -.hs.house.row2.col-2:not(:checked) ~ .hs.house.row2.col1:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.house.row0.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.house.row2.col-2:not(:checked) ~ .hs.house.row2.col1:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.house.row0.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:not(:checked) ~ div > div > house > .row2.col1 > i:nth-of-type(2):after, -.hs.house.row1.col1:not(:checked) ~ .hs.house.row0.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(2):after { - left: 4.75rem; - height: 3rem; - box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row1.col0:checked ~ .hs.row1.col1:not(:checked) ~ div > div > house > .row2.col1 > i:nth-of-type(1), -.hs.house.row1.col1:not(:checked) ~ .hs.house.row0.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(1) { - left: 5rem; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.house.row1.col0:not(:checked) ~ .hs.shed.row1.col0:not(:checked) ~ .hs.row1.col1:checked ~ div > div > house > .row2.col1 i:nth-of-type(2) { - display: block; - left: -42%; - width: 50%; -} -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.house.row1.col0:not(:checked) ~ .hs.shed.row1.col0:not(:checked) ~ .hs.row1.col1:checked ~ div > div > house > .row2.col1 i:nth-of-type(1), -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.house.row1.col0:not(:checked) ~ .hs.shed.row1.col0:not(:checked) ~ .hs.row1.col1:checked ~ div > div > house > .row2.col1 i:nth-of-type(2):after { - display: none; -} - -.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col2 i:nth-of-type(1), -.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col2 i:nth-of-type(2):after { - display: none; -} -.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2):after { - left: -1.5rem; -} -.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1) { - left: -1rem; -} - -.hs.row2.col2:checked ~ div > div > house > .row2.col2:before { - width: 1.5rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: -1.35rem; - left: 3rem; - box-shadow: 2rem 2rem 0 currentColor; - filter: hue-rotate(-10deg) brightness(1.1); - opacity: 0.7; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2:after { - filter: hue-rotate(-10deg) brightness(1.1); - width: 2rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: 0.5rem; - left: -0.15rem; - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(4) { - width: 5rem; - right: 0; - margin: auto; - top: 3.5rem; - background: rgba(79, 1, 14, 0.9); - height: 5rem; - border-radius: 0.3rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(4):after { - width: 4.5rem; - height: 0.25rem; - left: 0.25rem; - top: 2.4rem; - background: currentColor; - border-radius: 0.0001rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(4):before { - width: 0.25rem; - height: 4.5rem; - left: 2.4rem; - top: 0.25rem; - background: currentColor; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2.col1 > i:nth-of-type(4) { - border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(2) { - border: solid rgba(255, 255, 255, 0) 1rem; - border-bottom: solid #6a341b 4rem; - width: calc(100% + 2.1rem); - left: -1rem; - top: -2.5rem; - box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(2):before { - width: 100%; - height: 3rem; - border-radius: 50%; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(2):after { - width: 3rem; - height: 4rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 0.5rem solid #bc2f2f; - top: -2rem; - box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; - border-radius: 0.5rem; - left: -0.25rem; - filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(1):before, .hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(1):after { - top: -8.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(even) i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(even) > i:nth-of-type(1) { - left: 10rem; -} -.hs.row2.col2:checked ~ div > div > house > .row3.col2 i:nth-of-type(2), -.hs.row2.col2:checked ~ div > div > house > .row3.col2 i:nth-of-type(1) { - display: none; -} - -.hs.house.row3.col2:checked ~ .hs.shed.row2.col2:checked ~ div > div > house > .row2.col2 { - border-bottom: 0.25rem dashed #bc2f2f; -} -.hs.house.row3.col2:checked ~ .hs.shed.row2.col2:checked ~ div > div > house > .row3.col2:before { - background: #bc502f; -} - -.hs.shed.row3.col2:checked ~ .hs.house.row2.col2:checked ~ div > div > house > .row2.col2 { - border-bottom: 0.25rem dashed #bc502f; -} -.hs.shed.row3.col2:checked ~ .hs.house.row2.col2:checked ~ div > div > house > .row3.col2:before { - background: #bc2f2f; -} - -.hs.house.row2.col-1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row0.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.house.row2.col-1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row0.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:not(:checked) ~ div > div > house > .row2.col2 > i:nth-of-type(2):after, -.hs.house.row1.col2:not(:checked) ~ .hs.house.row0.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(2):after { - left: 4.75rem; - height: 3rem; - box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row1.col1:checked ~ .hs.row1.col2:not(:checked) ~ div > div > house > .row2.col2 > i:nth-of-type(1), -.hs.house.row1.col2:not(:checked) ~ .hs.house.row0.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(1) { - left: 5rem; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col1:not(:checked) ~ .hs.row1.col2:checked ~ div > div > house > .row2.col2 i:nth-of-type(2) { - display: block; - left: -42%; - width: 50%; -} -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col1:not(:checked) ~ .hs.row1.col2:checked ~ div > div > house > .row2.col2 i:nth-of-type(1), -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col1:not(:checked) ~ .hs.row1.col2:checked ~ div > div > house > .row2.col2 i:nth-of-type(2):after { - display: none; -} - -.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col2 i:nth-of-type(1), -.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col2 i:nth-of-type(2):after { - display: none; -} -.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2):after { - left: -1.5rem; -} -.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1) { - left: -1rem; -} - -.hs.row2.col3:checked ~ div > div > house > .row2.col3:before { - width: 1.5rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: -1.35rem; - left: 3rem; - box-shadow: 2rem 2rem 0 currentColor; - filter: hue-rotate(-10deg) brightness(1.1); - opacity: 0.7; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3:after { - filter: hue-rotate(-10deg) brightness(1.1); - width: 2rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: 0.5rem; - left: -0.15rem; - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(4) { - width: 5rem; - right: 0; - margin: auto; - top: 3.5rem; - background: rgba(79, 1, 14, 0.9); - height: 5rem; - border-radius: 0.3rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(4):after { - width: 4.5rem; - height: 0.25rem; - left: 0.25rem; - top: 2.4rem; - background: currentColor; - border-radius: 0.0001rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(4):before { - width: 0.25rem; - height: 4.5rem; - left: 2.4rem; - top: 0.25rem; - background: currentColor; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3.col3 > i:nth-of-type(4) { - border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2) { - border: solid rgba(255, 255, 255, 0) 1rem; - border-bottom: solid #6a341b 4rem; - width: calc(100% + 2.1rem); - left: -1rem; - top: -2.5rem; - box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2):before { - width: 100%; - height: 3rem; - border-radius: 50%; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2):after { - width: 3rem; - height: 4rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 0.5rem solid #bc2f2f; - top: -2rem; - box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; - border-radius: 0.5rem; - left: -0.25rem; - filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1):before, .hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1):after { - top: -8.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(even) i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(even) > i:nth-of-type(1) { - left: 10rem; -} -.hs.row2.col3:checked ~ div > div > house > .row3.col3 i:nth-of-type(2), -.hs.row2.col3:checked ~ div > div > house > .row3.col3 i:nth-of-type(1) { - display: none; -} - -.hs.house.row3.col3:checked ~ .hs.shed.row2.col3:checked ~ div > div > house > .row2.col3 { - border-bottom: 0.25rem dashed #bc2f2f; -} -.hs.house.row3.col3:checked ~ .hs.shed.row2.col3:checked ~ div > div > house > .row3.col3:before { - background: #bc502f; -} - -.hs.shed.row3.col3:checked ~ .hs.house.row2.col3:checked ~ div > div > house > .row2.col3 { - border-bottom: 0.25rem dashed #bc502f; -} -.hs.shed.row3.col3:checked ~ .hs.house.row2.col3:checked ~ div > div > house > .row3.col3:before { - background: #bc2f2f; -} - -.hs.house.row2.col0:not(:checked) ~ .hs.house.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row0.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.house.row2.col0:not(:checked) ~ .hs.house.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row0.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:not(:checked) ~ div > div > house > .row2.col3 > i:nth-of-type(2):after, -.hs.house.row1.col3:not(:checked) ~ .hs.house.row0.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2):after { - left: 4.75rem; - height: 3rem; - box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row1.col2:checked ~ .hs.row1.col3:not(:checked) ~ div > div > house > .row2.col3 > i:nth-of-type(1), -.hs.house.row1.col3:not(:checked) ~ .hs.house.row0.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1) { - left: 5rem; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.shed.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3 i:nth-of-type(2) { - display: block; - left: -42%; - width: 50%; -} -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.shed.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3 i:nth-of-type(1), -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.shed.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3 i:nth-of-type(2):after { - display: none; -} - -.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col2 i:nth-of-type(1), -.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col2 i:nth-of-type(2):after { - display: none; -} -.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2):after { - left: -1.5rem; -} -.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1) { - left: -1rem; -} - -.hs.row2.col4:checked ~ div > div > house > .row2.col4:before { - width: 1.5rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: -1.35rem; - left: 3rem; - box-shadow: 2rem 2rem 0 currentColor; - filter: hue-rotate(-10deg) brightness(1.1); - opacity: 0.7; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4:after { - filter: hue-rotate(-10deg) brightness(1.1); - width: 2rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: 0.5rem; - left: -0.15rem; - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(4) { - width: 5rem; - right: 0; - margin: auto; - top: 3.5rem; - background: rgba(79, 1, 14, 0.9); - height: 5rem; - border-radius: 0.3rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(4):after { - width: 4.5rem; - height: 0.25rem; - left: 0.25rem; - top: 2.4rem; - background: currentColor; - border-radius: 0.0001rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(4):before { - width: 0.25rem; - height: 4.5rem; - left: 2.4rem; - top: 0.25rem; - background: currentColor; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4.col3 > i:nth-of-type(4) { - border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(2) { - border: solid rgba(255, 255, 255, 0) 1rem; - border-bottom: solid #6a341b 4rem; - width: calc(100% + 2.1rem); - left: -1rem; - top: -2.5rem; - box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(2):before { - width: 100%; - height: 3rem; - border-radius: 50%; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(2):after { - width: 3rem; - height: 4rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 0.5rem solid #bc2f2f; - top: -2rem; - box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; - border-radius: 0.5rem; - left: -0.25rem; - filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(1):before, .hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(1):after { - top: -8.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(even) i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(even) > i:nth-of-type(1) { - left: 10rem; -} -.hs.row2.col4:checked ~ div > div > house > .row3.col4 i:nth-of-type(2), -.hs.row2.col4:checked ~ div > div > house > .row3.col4 i:nth-of-type(1) { - display: none; -} - -.hs.house.row3.col4:checked ~ .hs.shed.row2.col4:checked ~ div > div > house > .row2.col4 { - border-bottom: 0.25rem dashed #bc2f2f; -} -.hs.house.row3.col4:checked ~ .hs.shed.row2.col4:checked ~ div > div > house > .row3.col4:before { - background: #bc502f; -} - -.hs.shed.row3.col4:checked ~ .hs.house.row2.col4:checked ~ div > div > house > .row2.col4 { - border-bottom: 0.25rem dashed #bc502f; -} -.hs.shed.row3.col4:checked ~ .hs.house.row2.col4:checked ~ div > div > house > .row3.col4:before { - background: #bc2f2f; -} - -.hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col4:checked ~ .hs.house.row2.col5:not(:checked) ~ .hs.house.row0.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col4:checked ~ .hs.house.row2.col5:not(:checked) ~ .hs.house.row0.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:not(:checked) ~ div > div > house > .row2.col4 > i:nth-of-type(2):after, -.hs.house.row1.col4:not(:checked) ~ .hs.house.row0.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(2):after { - left: 4.75rem; - height: 3rem; - box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row1.col3:checked ~ .hs.row1.col4:not(:checked) ~ div > div > house > .row2.col4 > i:nth-of-type(1), -.hs.house.row1.col4:not(:checked) ~ .hs.house.row0.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(1) { - left: 5rem; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.shed.row1.col3:not(:checked) ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 i:nth-of-type(2) { - display: block; - left: -42%; - width: 50%; -} -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.shed.row1.col3:not(:checked) ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 i:nth-of-type(1), -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.shed.row1.col3:not(:checked) ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 i:nth-of-type(2):after { - display: none; -} - -.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col2 i:nth-of-type(1), -.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col2 i:nth-of-type(2):after { - display: none; -} -.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2):after { - left: -1.5rem; -} -.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1) { - left: -1rem; -} - -.hs.row3.col1:checked ~ div > div > house > .row3.col1:before { - width: 1.5rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: -1.35rem; - left: 3rem; - box-shadow: 2rem 2rem 0 currentColor; - filter: hue-rotate(-10deg) brightness(1.1); - opacity: 0.7; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1:after { - filter: hue-rotate(-10deg) brightness(1.1); - width: 2rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: 0.5rem; - left: -0.15rem; - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(4) { - width: 5rem; - right: 0; - margin: auto; - top: 3.5rem; - background: rgba(79, 1, 14, 0.9); - height: 5rem; - border-radius: 0.3rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(4):after { - width: 4.5rem; - height: 0.25rem; - left: 0.25rem; - top: 2.4rem; - background: currentColor; - border-radius: 0.0001rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(4):before { - width: 0.25rem; - height: 4.5rem; - left: 2.4rem; - top: 0.25rem; - background: currentColor; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1.col3 > i:nth-of-type(4) { - border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(2) { - border: solid rgba(255, 255, 255, 0) 1rem; - border-bottom: solid #6a341b 4rem; - width: calc(100% + 2.1rem); - left: -1rem; - top: -2.5rem; - box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(2):before { - width: 100%; - height: 3rem; - border-radius: 50%; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(2):after { - width: 3rem; - height: 4rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 0.5rem solid #bc2f2f; - top: -2rem; - box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; - border-radius: 0.5rem; - left: -0.25rem; - filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(1):before, .hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(1):after { - top: -8.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(even) i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(even) > i:nth-of-type(1) { - left: 10rem; -} -.hs.row3.col1:checked ~ div > div > house > .row4.col1 i:nth-of-type(2), -.hs.row3.col1:checked ~ div > div > house > .row4.col1 i:nth-of-type(1) { - display: none; -} - -.hs.house.row4.col1:checked ~ .hs.shed.row3.col1:checked ~ div > div > house > .row3.col1 { - border-bottom: 0.25rem dashed #bc2f2f; -} -.hs.house.row4.col1:checked ~ .hs.shed.row3.col1:checked ~ div > div > house > .row4.col1:before { - background: #bc502f; -} - -.hs.shed.row4.col1:checked ~ .hs.house.row3.col1:checked ~ div > div > house > .row3.col1 { - border-bottom: 0.25rem dashed #bc502f; -} -.hs.shed.row4.col1:checked ~ .hs.house.row3.col1:checked ~ div > div > house > .row4.col1:before { - background: #bc2f2f; -} - -.hs.house.row3.col-2:not(:checked) ~ .hs.house.row3.col1:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.house.row1.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.house.row3.col-2:not(:checked) ~ .hs.house.row3.col1:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.house.row1.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:not(:checked) ~ div > div > house > .row3.col1 > i:nth-of-type(2):after, -.hs.house.row2.col1:not(:checked) ~ .hs.house.row1.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(2):after { - left: 4.75rem; - height: 3rem; - box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row2.col0:checked ~ .hs.row2.col1:not(:checked) ~ div > div > house > .row3.col1 > i:nth-of-type(1), -.hs.house.row2.col1:not(:checked) ~ .hs.house.row1.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(1) { - left: 5rem; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.house.row2.col0:not(:checked) ~ .hs.shed.row2.col0:not(:checked) ~ .hs.row2.col1:checked ~ div > div > house > .row3.col1 i:nth-of-type(2) { - display: block; - left: -42%; - width: 50%; -} -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.house.row2.col0:not(:checked) ~ .hs.shed.row2.col0:not(:checked) ~ .hs.row2.col1:checked ~ div > div > house > .row3.col1 i:nth-of-type(1), -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.house.row2.col0:not(:checked) ~ .hs.shed.row2.col0:not(:checked) ~ .hs.row2.col1:checked ~ div > div > house > .row3.col1 i:nth-of-type(2):after { - display: none; -} - -.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col2 i:nth-of-type(1), -.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col2 i:nth-of-type(2):after { - display: none; -} -.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2):after { - left: -1.5rem; -} -.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1) { - left: -1rem; -} - -.hs.row3.col2:checked ~ div > div > house > .row3.col2:before { - width: 1.5rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: -1.35rem; - left: 3rem; - box-shadow: 2rem 2rem 0 currentColor; - filter: hue-rotate(-10deg) brightness(1.1); - opacity: 0.7; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2:after { - filter: hue-rotate(-10deg) brightness(1.1); - width: 2rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: 0.5rem; - left: -0.15rem; - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(4) { - width: 5rem; - right: 0; - margin: auto; - top: 3.5rem; - background: rgba(79, 1, 14, 0.9); - height: 5rem; - border-radius: 0.3rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(4):after { - width: 4.5rem; - height: 0.25rem; - left: 0.25rem; - top: 2.4rem; - background: currentColor; - border-radius: 0.0001rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(4):before { - width: 0.25rem; - height: 4.5rem; - left: 2.4rem; - top: 0.25rem; - background: currentColor; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2.col3 > i:nth-of-type(4) { - border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(2) { - border: solid rgba(255, 255, 255, 0) 1rem; - border-bottom: solid #6a341b 4rem; - width: calc(100% + 2.1rem); - left: -1rem; - top: -2.5rem; - box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(2):before { - width: 100%; - height: 3rem; - border-radius: 50%; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(2):after { - width: 3rem; - height: 4rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 0.5rem solid #bc2f2f; - top: -2rem; - box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; - border-radius: 0.5rem; - left: -0.25rem; - filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(1):before, .hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(1):after { - top: -8.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(even) i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(even) > i:nth-of-type(1) { - left: 10rem; -} -.hs.row3.col2:checked ~ div > div > house > .row4.col2 i:nth-of-type(2), -.hs.row3.col2:checked ~ div > div > house > .row4.col2 i:nth-of-type(1) { - display: none; -} - -.hs.house.row4.col2:checked ~ .hs.shed.row3.col2:checked ~ div > div > house > .row3.col2 { - border-bottom: 0.25rem dashed #bc2f2f; -} -.hs.house.row4.col2:checked ~ .hs.shed.row3.col2:checked ~ div > div > house > .row4.col2:before { - background: #bc502f; -} - -.hs.shed.row4.col2:checked ~ .hs.house.row3.col2:checked ~ div > div > house > .row3.col2 { - border-bottom: 0.25rem dashed #bc502f; -} -.hs.shed.row4.col2:checked ~ .hs.house.row3.col2:checked ~ div > div > house > .row4.col2:before { - background: #bc2f2f; -} - -.hs.house.row3.col-1:not(:checked) ~ .hs.house.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row1.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.house.row3.col-1:not(:checked) ~ .hs.house.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row1.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:not(:checked) ~ div > div > house > .row3.col2 > i:nth-of-type(2):after, -.hs.house.row2.col2:not(:checked) ~ .hs.house.row1.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(2):after { - left: 4.75rem; - height: 3rem; - box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row2.col1:checked ~ .hs.row2.col2:not(:checked) ~ div > div > house > .row3.col2 > i:nth-of-type(1), -.hs.house.row2.col2:not(:checked) ~ .hs.house.row1.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(1) { - left: 5rem; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.house.row2.col1:not(:checked) ~ .hs.shed.row2.col1:not(:checked) ~ .hs.row2.col2:checked ~ div > div > house > .row3.col2 i:nth-of-type(2) { - display: block; - left: -42%; - width: 50%; -} -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.house.row2.col1:not(:checked) ~ .hs.shed.row2.col1:not(:checked) ~ .hs.row2.col2:checked ~ div > div > house > .row3.col2 i:nth-of-type(1), -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.house.row2.col1:not(:checked) ~ .hs.shed.row2.col1:not(:checked) ~ .hs.row2.col2:checked ~ div > div > house > .row3.col2 i:nth-of-type(2):after { - display: none; -} - -.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col2 i:nth-of-type(1), -.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col2 i:nth-of-type(2):after { - display: none; -} -.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2):after { - left: -1.5rem; -} -.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1) { - left: -1rem; -} - -.hs.row3.col3:checked ~ div > div > house > .row3.col3:before { - width: 1.5rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: -1.35rem; - left: 3rem; - box-shadow: 2rem 2rem 0 currentColor; - filter: hue-rotate(-10deg) brightness(1.1); - opacity: 0.7; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3:after { - filter: hue-rotate(-10deg) brightness(1.1); - width: 2rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: 0.5rem; - left: -0.15rem; - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(4) { - width: 5rem; - right: 0; - margin: auto; - top: 3.5rem; - background: rgba(79, 1, 14, 0.9); - height: 5rem; - border-radius: 0.3rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(4):after { - width: 4.5rem; - height: 0.25rem; - left: 0.25rem; - top: 2.4rem; - background: currentColor; - border-radius: 0.0001rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(4):before { - width: 0.25rem; - height: 4.5rem; - left: 2.4rem; - top: 0.25rem; - background: currentColor; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3.col4 > i:nth-of-type(4) { - border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2) { - border: solid rgba(255, 255, 255, 0) 1rem; - border-bottom: solid #6a341b 4rem; - width: calc(100% + 2.1rem); - left: -1rem; - top: -2.5rem; - box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2):before { - width: 100%; - height: 3rem; - border-radius: 50%; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2):after { - width: 3rem; - height: 4rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 0.5rem solid #bc2f2f; - top: -2rem; - box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; - border-radius: 0.5rem; - left: -0.25rem; - filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1):before, .hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1):after { - top: -8.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(even) i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(even) > i:nth-of-type(1) { - left: 10rem; -} -.hs.row3.col3:checked ~ div > div > house > .row4.col3 i:nth-of-type(2), -.hs.row3.col3:checked ~ div > div > house > .row4.col3 i:nth-of-type(1) { - display: none; -} - -.hs.house.row4.col3:checked ~ .hs.shed.row3.col3:checked ~ div > div > house > .row3.col3 { - border-bottom: 0.25rem dashed #bc2f2f; -} -.hs.house.row4.col3:checked ~ .hs.shed.row3.col3:checked ~ div > div > house > .row4.col3:before { - background: #bc502f; -} - -.hs.shed.row4.col3:checked ~ .hs.house.row3.col3:checked ~ div > div > house > .row3.col3 { - border-bottom: 0.25rem dashed #bc502f; -} -.hs.shed.row4.col3:checked ~ .hs.house.row3.col3:checked ~ div > div > house > .row4.col3:before { - background: #bc2f2f; -} - -.hs.house.row3.col0:not(:checked) ~ .hs.house.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row1.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.house.row3.col0:not(:checked) ~ .hs.house.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row1.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:not(:checked) ~ div > div > house > .row3.col3 > i:nth-of-type(2):after, -.hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2):after { - left: 4.75rem; - height: 3rem; - box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row2.col2:checked ~ .hs.row2.col3:not(:checked) ~ div > div > house > .row3.col3 > i:nth-of-type(1), -.hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1) { - left: 5rem; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.shed.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ div > div > house > .row3.col3 i:nth-of-type(2) { - display: block; - left: -42%; - width: 50%; -} -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.shed.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ div > div > house > .row3.col3 i:nth-of-type(1), -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.shed.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ div > div > house > .row3.col3 i:nth-of-type(2):after { - display: none; -} - -.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col2 i:nth-of-type(1), -.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col2 i:nth-of-type(2):after { - display: none; -} -.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2):after { - left: -1.5rem; -} -.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1) { - left: -1rem; -} - -.hs.row3.col4:checked ~ div > div > house > .row3.col4:before { - width: 1.5rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: -1.35rem; - left: 3rem; - box-shadow: 2rem 2rem 0 currentColor; - filter: hue-rotate(-10deg) brightness(1.1); - opacity: 0.7; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4:after { - filter: hue-rotate(-10deg) brightness(1.1); - width: 2rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: 0.5rem; - left: -0.15rem; - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(4) { - width: 5rem; - right: 0; - margin: auto; - top: 3.5rem; - background: rgba(79, 1, 14, 0.9); - height: 5rem; - border-radius: 0.3rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(4):after { - width: 4.5rem; - height: 0.25rem; - left: 0.25rem; - top: 2.4rem; - background: currentColor; - border-radius: 0.0001rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(4):before { - width: 0.25rem; - height: 4.5rem; - left: 2.4rem; - top: 0.25rem; - background: currentColor; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4.col3 > i:nth-of-type(4) { - border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(2) { - border: solid rgba(255, 255, 255, 0) 1rem; - border-bottom: solid #6a341b 4rem; - width: calc(100% + 2.1rem); - left: -1rem; - top: -2.5rem; - box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(2):before { - width: 100%; - height: 3rem; - border-radius: 50%; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(2):after { - width: 3rem; - height: 4rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 0.5rem solid #bc2f2f; - top: -2rem; - box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; - border-radius: 0.5rem; - left: -0.25rem; - filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(1):before, .hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(1):after { - top: -8.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(even) i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(even) > i:nth-of-type(1) { - left: 10rem; -} -.hs.row3.col4:checked ~ div > div > house > .row4.col4 i:nth-of-type(2), -.hs.row3.col4:checked ~ div > div > house > .row4.col4 i:nth-of-type(1) { - display: none; -} - -.hs.house.row4.col4:checked ~ .hs.shed.row3.col4:checked ~ div > div > house > .row3.col4 { - border-bottom: 0.25rem dashed #bc2f2f; -} -.hs.house.row4.col4:checked ~ .hs.shed.row3.col4:checked ~ div > div > house > .row4.col4:before { - background: #bc502f; -} - -.hs.shed.row4.col4:checked ~ .hs.house.row3.col4:checked ~ div > div > house > .row3.col4 { - border-bottom: 0.25rem dashed #bc502f; -} -.hs.shed.row4.col4:checked ~ .hs.house.row3.col4:checked ~ div > div > house > .row4.col4:before { - background: #bc2f2f; -} - -.hs.house.row3.col1:not(:checked) ~ .hs.house.row3.col4:checked ~ .hs.house.row3.col5:not(:checked) ~ .hs.house.row1.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.house.row3.col1:not(:checked) ~ .hs.house.row3.col4:checked ~ .hs.house.row3.col5:not(:checked) ~ .hs.house.row1.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:not(:checked) ~ div > div > house > .row3.col4 > i:nth-of-type(2):after, -.hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(2):after { - left: 4.75rem; - height: 3rem; - box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row2.col3:checked ~ .hs.row2.col4:not(:checked) ~ div > div > house > .row3.col4 > i:nth-of-type(1), -.hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(1) { - left: 5rem; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.shed.row2.col3:not(:checked) ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4 i:nth-of-type(2) { - display: block; - left: -42%; - width: 50%; -} -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.shed.row2.col3:not(:checked) ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4 i:nth-of-type(1), -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.shed.row2.col3:not(:checked) ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4 i:nth-of-type(2):after { - display: none; -} - -.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col2 i:nth-of-type(1), -.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col2 i:nth-of-type(2):after { - display: none; -} -.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2):after { - left: -1.5rem; -} -.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1) { - left: -1rem; -} - -.hs.row4.col1:checked ~ div > div > house > .row4.col1:before { - width: 1.5rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: -1.35rem; - left: 3rem; - box-shadow: 2rem 2rem 0 currentColor; - filter: hue-rotate(-10deg) brightness(1.1); - opacity: 0.7; -} -.hs.row4.col1:checked ~ div > div > house > .row4.col1:after { - filter: hue-rotate(-10deg) brightness(1.1); - width: 2rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: 0.5rem; - left: -0.15rem; - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} -.hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(4) { - width: 5rem; - right: 0; - margin: auto; - top: 3.5rem; - background: rgba(79, 1, 14, 0.9); - height: 5rem; - border-radius: 0.3rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -.hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(4):after { - width: 4.5rem; - height: 0.25rem; - left: 0.25rem; - top: 2.4rem; - background: currentColor; - border-radius: 0.0001rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); -} -.hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(4):before { - width: 0.25rem; - height: 4.5rem; - left: 2.4rem; - top: 0.25rem; - background: currentColor; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.row4.col1:checked ~ div > div > house > .row4.col1.col1 > i:nth-of-type(4) { - border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; -} -.hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(2) { - border: solid rgba(255, 255, 255, 0) 1rem; - border-bottom: solid #6a341b 4rem; - width: calc(100% + 2.1rem); - left: -1rem; - top: -2.5rem; - box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); -} -.hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(2):before { - width: 100%; - height: 3rem; - border-radius: 50%; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); -} -.hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(2):after { - width: 3rem; - height: 4rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 0.5rem solid #bc2f2f; - top: -2rem; - box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; - border-radius: 0.5rem; - left: -0.25rem; - filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); -} -.hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(1):before, .hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(1):after { - top: -8.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row4.col1:checked ~ div > div > house > .row4.col1:nth-of-type(even) i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.row4.col1:checked ~ div > div > house > .row4.col1:nth-of-type(even) > i:nth-of-type(1) { - left: 10rem; -} -.hs.row4.col1:checked ~ div > div > house > .row5.col1 i:nth-of-type(2), -.hs.row4.col1:checked ~ div > div > house > .row5.col1 i:nth-of-type(1) { - display: none; -} - -.hs.house.row5.col1:checked ~ .hs.shed.row4.col1:checked ~ div > div > house > .row4.col1 { - border-bottom: 0.25rem dashed #bc2f2f; -} -.hs.house.row5.col1:checked ~ .hs.shed.row4.col1:checked ~ div > div > house > .row5.col1:before { - background: #bc502f; -} - -.hs.shed.row5.col1:checked ~ .hs.house.row4.col1:checked ~ div > div > house > .row4.col1 { - border-bottom: 0.25rem dashed #bc502f; -} -.hs.shed.row5.col1:checked ~ .hs.house.row4.col1:checked ~ div > div > house > .row5.col1:before { - background: #bc2f2f; -} - -.hs.house.row4.col-2:not(:checked) ~ .hs.house.row4.col1:checked ~ .hs.house.row4.col2:not(:checked) ~ .hs.house.row2.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.house.row4.col-2:not(:checked) ~ .hs.house.row4.col1:checked ~ .hs.house.row4.col2:not(:checked) ~ .hs.house.row2.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:not(:checked) ~ div > div > house > .row4.col1 > i:nth-of-type(2):after, -.hs.house.row3.col1:not(:checked) ~ .hs.house.row2.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(2):after { - left: 4.75rem; - height: 3rem; - box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row3.col0:checked ~ .hs.row3.col1:not(:checked) ~ div > div > house > .row4.col1 > i:nth-of-type(1), -.hs.house.row3.col1:not(:checked) ~ .hs.house.row2.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(1) { - left: 5rem; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.house.row3.col0:not(:checked) ~ .hs.shed.row3.col0:not(:checked) ~ .hs.row3.col1:checked ~ div > div > house > .row4.col1 i:nth-of-type(2) { - display: block; - left: -42%; - width: 50%; -} -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.house.row3.col0:not(:checked) ~ .hs.shed.row3.col0:not(:checked) ~ .hs.row3.col1:checked ~ div > div > house > .row4.col1 i:nth-of-type(1), -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.house.row3.col0:not(:checked) ~ .hs.shed.row3.col0:not(:checked) ~ .hs.row3.col1:checked ~ div > div > house > .row4.col1 i:nth-of-type(2):after { - display: none; -} - -.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col2 i:nth-of-type(1), -.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col2 i:nth-of-type(2):after { - display: none; -} -.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2):after { - left: -1.5rem; -} -.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1) { - left: -1rem; -} - -.hs.row4.col2:checked ~ div > div > house > .row4.col2:before { - width: 1.5rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: -1.35rem; - left: 3rem; - box-shadow: 2rem 2rem 0 currentColor; - filter: hue-rotate(-10deg) brightness(1.1); - opacity: 0.7; -} -.hs.row4.col2:checked ~ div > div > house > .row4.col2:after { - filter: hue-rotate(-10deg) brightness(1.1); - width: 2rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: 0.5rem; - left: -0.15rem; - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} -.hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(4) { - width: 5rem; - right: 0; - margin: auto; - top: 3.5rem; - background: rgba(79, 1, 14, 0.9); - height: 5rem; - border-radius: 0.3rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -.hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(4):after { - width: 4.5rem; - height: 0.25rem; - left: 0.25rem; - top: 2.4rem; - background: currentColor; - border-radius: 0.0001rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); -} -.hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(4):before { - width: 0.25rem; - height: 4.5rem; - left: 2.4rem; - top: 0.25rem; - background: currentColor; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.row4.col2:checked ~ div > div > house > .row4.col2.col3 > i:nth-of-type(4) { - border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; -} -.hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(2) { - border: solid rgba(255, 255, 255, 0) 1rem; - border-bottom: solid #6a341b 4rem; - width: calc(100% + 2.1rem); - left: -1rem; - top: -2.5rem; - box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); -} -.hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(2):before { - width: 100%; - height: 3rem; - border-radius: 50%; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); -} -.hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(2):after { - width: 3rem; - height: 4rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 0.5rem solid #bc2f2f; - top: -2rem; - box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; - border-radius: 0.5rem; - left: -0.25rem; - filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); -} -.hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(1):before, .hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(1):after { - top: -8.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row4.col2:checked ~ div > div > house > .row4.col2:nth-of-type(even) i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.row4.col2:checked ~ div > div > house > .row4.col2:nth-of-type(even) > i:nth-of-type(1) { - left: 10rem; -} -.hs.row4.col2:checked ~ div > div > house > .row5.col2 i:nth-of-type(2), -.hs.row4.col2:checked ~ div > div > house > .row5.col2 i:nth-of-type(1) { - display: none; -} - -.hs.house.row5.col2:checked ~ .hs.shed.row4.col2:checked ~ div > div > house > .row4.col2 { - border-bottom: 0.25rem dashed #bc2f2f; -} -.hs.house.row5.col2:checked ~ .hs.shed.row4.col2:checked ~ div > div > house > .row5.col2:before { - background: #bc502f; -} - -.hs.shed.row5.col2:checked ~ .hs.house.row4.col2:checked ~ div > div > house > .row4.col2 { - border-bottom: 0.25rem dashed #bc502f; -} -.hs.shed.row5.col2:checked ~ .hs.house.row4.col2:checked ~ div > div > house > .row5.col2:before { - background: #bc2f2f; -} - -.hs.house.row4.col-1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row2.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.house.row4.col-1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row2.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:not(:checked) ~ div > div > house > .row4.col2 > i:nth-of-type(2):after, -.hs.house.row3.col2:not(:checked) ~ .hs.house.row2.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(2):after { - left: 4.75rem; - height: 3rem; - box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row3.col1:checked ~ .hs.row3.col2:not(:checked) ~ div > div > house > .row4.col2 > i:nth-of-type(1), -.hs.house.row3.col2:not(:checked) ~ .hs.house.row2.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(1) { - left: 5rem; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col1:not(:checked) ~ .hs.row3.col2:checked ~ div > div > house > .row4.col2 i:nth-of-type(2) { - display: block; - left: -42%; - width: 50%; -} -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col1:not(:checked) ~ .hs.row3.col2:checked ~ div > div > house > .row4.col2 i:nth-of-type(1), -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col1:not(:checked) ~ .hs.row3.col2:checked ~ div > div > house > .row4.col2 i:nth-of-type(2):after { - display: none; -} - -.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col2 i:nth-of-type(1), -.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col2 i:nth-of-type(2):after { - display: none; -} -.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2):after { - left: -1.5rem; -} -.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1) { - left: -1rem; -} - -.hs.row4.col3:checked ~ div > div > house > .row4.col3:before { - width: 1.5rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: -1.35rem; - left: 3rem; - box-shadow: 2rem 2rem 0 currentColor; - filter: hue-rotate(-10deg) brightness(1.1); - opacity: 0.7; -} -.hs.row4.col3:checked ~ div > div > house > .row4.col3:after { - filter: hue-rotate(-10deg) brightness(1.1); - width: 2rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: 0.5rem; - left: -0.15rem; - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} -.hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(4) { - width: 5rem; - right: 0; - margin: auto; - top: 3.5rem; - background: rgba(79, 1, 14, 0.9); - height: 5rem; - border-radius: 0.3rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -.hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(4):after { - width: 4.5rem; - height: 0.25rem; - left: 0.25rem; - top: 2.4rem; - background: currentColor; - border-radius: 0.0001rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); -} -.hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(4):before { - width: 0.25rem; - height: 4.5rem; - left: 2.4rem; - top: 0.25rem; - background: currentColor; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.row4.col3:checked ~ div > div > house > .row4.col3.col1 > i:nth-of-type(4) { - border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; -} -.hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2) { - border: solid rgba(255, 255, 255, 0) 1rem; - border-bottom: solid #6a341b 4rem; - width: calc(100% + 2.1rem); - left: -1rem; - top: -2.5rem; - box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); -} -.hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2):before { - width: 100%; - height: 3rem; - border-radius: 50%; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); -} -.hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2):after { - width: 3rem; - height: 4rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 0.5rem solid #bc2f2f; - top: -2rem; - box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; - border-radius: 0.5rem; - left: -0.25rem; - filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); -} -.hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1):before, .hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1):after { - top: -8.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row4.col3:checked ~ div > div > house > .row4.col3:nth-of-type(even) i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.row4.col3:checked ~ div > div > house > .row4.col3:nth-of-type(even) > i:nth-of-type(1) { - left: 10rem; -} -.hs.row4.col3:checked ~ div > div > house > .row5.col3 i:nth-of-type(2), -.hs.row4.col3:checked ~ div > div > house > .row5.col3 i:nth-of-type(1) { - display: none; -} - -.hs.house.row5.col3:checked ~ .hs.shed.row4.col3:checked ~ div > div > house > .row4.col3 { - border-bottom: 0.25rem dashed #bc2f2f; -} -.hs.house.row5.col3:checked ~ .hs.shed.row4.col3:checked ~ div > div > house > .row5.col3:before { - background: #bc502f; -} - -.hs.shed.row5.col3:checked ~ .hs.house.row4.col3:checked ~ div > div > house > .row4.col3 { - border-bottom: 0.25rem dashed #bc502f; -} -.hs.shed.row5.col3:checked ~ .hs.house.row4.col3:checked ~ div > div > house > .row5.col3:before { - background: #bc2f2f; -} - -.hs.house.row4.col0:not(:checked) ~ .hs.house.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row2.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.house.row4.col0:not(:checked) ~ .hs.house.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row2.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:not(:checked) ~ div > div > house > .row4.col3 > i:nth-of-type(2):after, -.hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2):after { - left: 4.75rem; - height: 3rem; - box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row3.col2:checked ~ .hs.row3.col3:not(:checked) ~ div > div > house > .row4.col3 > i:nth-of-type(1), -.hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1) { - left: 5rem; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.shed.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ div > div > house > .row4.col3 i:nth-of-type(2) { - display: block; - left: -42%; - width: 50%; -} -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.shed.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ div > div > house > .row4.col3 i:nth-of-type(1), -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.shed.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ div > div > house > .row4.col3 i:nth-of-type(2):after { - display: none; -} - -.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col2 i:nth-of-type(1), -.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col2 i:nth-of-type(2):after { - display: none; -} -.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2):after { - left: -1.5rem; -} -.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1) { - left: -1rem; -} - -.hs.row4.col4:checked ~ div > div > house > .row4.col4:before { - width: 1.5rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: -1.35rem; - left: 3rem; - box-shadow: 2rem 2rem 0 currentColor; - filter: hue-rotate(-10deg) brightness(1.1); - opacity: 0.7; -} -.hs.row4.col4:checked ~ div > div > house > .row4.col4:after { - filter: hue-rotate(-10deg) brightness(1.1); - width: 2rem; - height: 1rem; - background: currentColor; - border-radius: 0.25rem; - top: 0.5rem; - left: -0.15rem; - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} -.hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(4) { - width: 5rem; - right: 0; - margin: auto; - top: 3.5rem; - background: rgba(79, 1, 14, 0.9); - height: 5rem; - border-radius: 0.3rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -.hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(4):after { - width: 4.5rem; - height: 0.25rem; - left: 0.25rem; - top: 2.4rem; - background: currentColor; - border-radius: 0.0001rem; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); -} -.hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(4):before { - width: 0.25rem; - height: 4.5rem; - left: 2.4rem; - top: 0.25rem; - background: currentColor; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.row4.col4:checked ~ div > div > house > .row4.col4.col1 > i:nth-of-type(4) { - border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; -} -.hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(2) { - border: solid rgba(255, 255, 255, 0) 1rem; - border-bottom: solid #6a341b 4rem; - width: calc(100% + 2.1rem); - left: -1rem; - top: -2.5rem; - box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); -} -.hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(2):before { - width: 100%; - height: 3rem; - border-radius: 50%; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); -} -.hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(2):after { - width: 3rem; - height: 4rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 0.5rem solid #bc2f2f; - top: -2rem; - box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; - border-radius: 0.5rem; - left: -0.25rem; - filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); -} -.hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(1):before, .hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(1):after { - top: -8.5rem; - left: -1rem; - animation: smoke 8s linear infinite; -} -.hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(1):before { - animation: smoke 7.25s 3.75s linear infinite; -} -.hs.row4.col4:checked ~ div > div > house > .row4.col4:nth-of-type(even) i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.row4.col4:checked ~ div > div > house > .row4.col4:nth-of-type(even) > i:nth-of-type(1) { - left: 10rem; -} -.hs.row4.col4:checked ~ div > div > house > .row5.col4 i:nth-of-type(2), -.hs.row4.col4:checked ~ div > div > house > .row5.col4 i:nth-of-type(1) { - display: none; -} - -.hs.house.row5.col4:checked ~ .hs.shed.row4.col4:checked ~ div > div > house > .row4.col4 { - border-bottom: 0.25rem dashed #bc2f2f; -} -.hs.house.row5.col4:checked ~ .hs.shed.row4.col4:checked ~ div > div > house > .row5.col4:before { - background: #bc502f; -} - -.hs.shed.row5.col4:checked ~ .hs.house.row4.col4:checked ~ div > div > house > .row4.col4 { - border-bottom: 0.25rem dashed #bc502f; -} -.hs.shed.row5.col4:checked ~ .hs.house.row4.col4:checked ~ div > div > house > .row5.col4:before { - background: #bc2f2f; -} - -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col4:checked ~ .hs.house.row4.col5:not(:checked) ~ .hs.house.row2.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(2):after { - left: 9.5rem; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col4:checked ~ .hs.house.row4.col5:not(:checked) ~ .hs.house.row2.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(1) { - left: 11rem; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:not(:checked) ~ div > div > house > .row4.col4 > i:nth-of-type(2):after, -.hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(2):after { - left: 4.75rem; - height: 3rem; - box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; - border-radius: 0 0 1rem 1rem; -} -.hs.row3.col3:checked ~ .hs.row3.col4:not(:checked) ~ div > div > house > .row4.col4 > i:nth-of-type(1), -.hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(1) { - left: 5rem; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.shed.row3.col3:not(:checked) ~ .hs.row3.col4:checked ~ div > div > house > .row4.col4 i:nth-of-type(2) { - display: block; - left: -42%; - width: 50%; -} -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.shed.row3.col3:not(:checked) ~ .hs.row3.col4:checked ~ div > div > house > .row4.col4 i:nth-of-type(1), -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.shed.row3.col3:not(:checked) ~ .hs.row3.col4:checked ~ div > div > house > .row4.col4 i:nth-of-type(2):after { - display: none; -} - -.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col2 i:nth-of-type(1), -.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col2 i:nth-of-type(2):after { - display: none; -} -.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2):after { - left: -1.5rem; -} -.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1) { - left: -1rem; -} - -.hs.row1.col1:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 > i:nth-of-type(5) { - display: block; - width: 105%; -} - -.hs.row1.col1:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.shed.row1.col3:checked ~ div > div > house > .row1.col2 > i:nth-of-type(5) { - display: block; - width: 115%; -} - -.hs.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 > i:nth-of-type(5) { - display: block; - width: 105%; -} - -.hs.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.shed.row1.col4:checked ~ div > div > house > .row1.col3 > i:nth-of-type(5) { - display: block; - width: 115%; -} - -.hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4 > i:nth-of-type(5) { - display: block; - width: 105%; -} - -.hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ .hs.shed.row1.col5:checked ~ div > div > house > .row1.col4 > i:nth-of-type(5) { - display: block; - width: 115%; -} - -.hs.row1.col4:checked ~ .hs.house.row1.col5:not(:checked) ~ .hs.row1.col6:checked ~ div > div > house > .row1.col5 > i:nth-of-type(5) { - display: block; - width: 105%; -} - -.hs.row1.col4:checked ~ .hs.house.row1.col5:not(:checked) ~ .hs.shed.row1.col6:checked ~ div > div > house > .row1.col5 > i:nth-of-type(5) { - display: block; - width: 115%; -} - -.hs.row1.col1:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.house.row1.col3:not(:checked) ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2 > i:nth-of-type(5) { - display: block; - width: 205%; -} -.hs.row1.col1:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.house.row1.col3:not(:checked) ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2 > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 3.5rem; - transform: rotate(4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} -.hs.row1.col1:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.house.row1.col3:not(:checked) ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2 > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 13.5rem; - transform: rotate(-4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1:after { - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1:after { - box-shadow: -2rem 6rem 0 rgba(204, 51, 51, 0.5), 0 7rem 0 currentColor; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1:after { - box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} - -.hs.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.house.row1.col4:not(:checked) ~ .hs.row1.col5:checked ~ div > div > house > .row1.col3 > i:nth-of-type(5) { - display: block; - width: 205%; -} -.hs.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.house.row1.col4:not(:checked) ~ .hs.row1.col5:checked ~ div > div > house > .row1.col3 > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 3.5rem; - transform: rotate(4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} -.hs.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.house.row1.col4:not(:checked) ~ .hs.row1.col5:checked ~ div > div > house > .row1.col3 > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 13.5rem; - transform: rotate(-4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2:after { - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2:after { - box-shadow: -2rem 6rem 0 rgba(204, 51, 51, 0.5), 0 7rem 0 currentColor; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2:after { - box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} - -.hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ .hs.house.row1.col5:not(:checked) ~ .hs.row1.col6:checked ~ div > div > house > .row1.col4 > i:nth-of-type(5) { - display: block; - width: 205%; -} -.hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ .hs.house.row1.col5:not(:checked) ~ .hs.row1.col6:checked ~ div > div > house > .row1.col4 > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 3.5rem; - transform: rotate(4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} -.hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ .hs.house.row1.col5:not(:checked) ~ .hs.row1.col6:checked ~ div > div > house > .row1.col4 > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 13.5rem; - transform: rotate(-4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3:after { - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3:after { - box-shadow: -2rem 4rem 0 rgba(204, 51, 51, 0.5), 0 8rem 0 currentColor; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3:after { - box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} - -.hs.row1.col4:checked ~ .hs.house.row1.col5:not(:checked) ~ .hs.house.row1.col6:not(:checked) ~ .hs.row1.col7:checked ~ div > div > house > .row1.col5 > i:nth-of-type(5) { - display: block; - width: 205%; -} -.hs.row1.col4:checked ~ .hs.house.row1.col5:not(:checked) ~ .hs.house.row1.col6:not(:checked) ~ .hs.row1.col7:checked ~ div > div > house > .row1.col5 > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 3.5rem; - transform: rotate(4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} -.hs.row1.col4:checked ~ .hs.house.row1.col5:not(:checked) ~ .hs.house.row1.col6:not(:checked) ~ .hs.row1.col7:checked ~ div > div > house > .row1.col5 > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 13.5rem; - transform: rotate(-4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4:after { - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4:after { - box-shadow: -2rem 6rem 0 rgba(204, 51, 51, 0.5), 0 8rem 0 currentColor; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4:after { - box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} - -.hs.row1.col1:checked ~ div > div > house > .row1.col1 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1 { - border-bottom: none; -} -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row1.col2:checked ~ div > div > house > .row1.col2 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2 { - border-bottom: none; -} -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row1.col3:checked ~ div > div > house > .row1.col3 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 { - border-bottom: none; -} -.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row1.col4:checked ~ div > div > house > .row1.col4 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 { - border-bottom: none; -} -.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col1:checked ~ div > div > house > .row2.col1 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1 { - border-bottom: none; -} -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col2:checked ~ div > div > house > .row2.col2 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2 { - border-bottom: none; -} -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col3:checked ~ div > div > house > .row2.col3 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 { - border-bottom: none; -} -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col4:checked ~ div > div > house > .row2.col4 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 { - border-bottom: none; -} -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col1:checked ~ div > div > house > .row3.col1 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1 { - border-bottom: none; -} -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col2:checked ~ div > div > house > .row3.col2 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2 { - border-bottom: none; -} -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col3:checked ~ div > div > house > .row3.col3 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3 { - border-bottom: none; -} -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col4:checked ~ div > div > house > .row3.col4 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4 { - border-bottom: none; -} -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col1:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ div > div > house > .row2.col2 > i:nth-of-type(5) { - display: block; - width: 105%; -} - -.hs.row2.col1:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.shed.row2.col3:checked ~ div > div > house > .row2.col2 > i:nth-of-type(5) { - display: block; - width: 115%; -} - -.hs.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.row2.col4:checked ~ div > div > house > .row2.col3 > i:nth-of-type(5) { - display: block; - width: 105%; -} - -.hs.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.shed.row2.col4:checked ~ div > div > house > .row2.col3 > i:nth-of-type(5) { - display: block; - width: 115%; -} - -.hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.row2.col5:checked ~ div > div > house > .row2.col4 > i:nth-of-type(5) { - display: block; - width: 105%; -} - -.hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.shed.row2.col5:checked ~ div > div > house > .row2.col4 > i:nth-of-type(5) { - display: block; - width: 115%; -} - -.hs.row2.col4:checked ~ .hs.house.row2.col5:not(:checked) ~ .hs.row2.col6:checked ~ div > div > house > .row2.col5 > i:nth-of-type(5) { - display: block; - width: 105%; -} - -.hs.row2.col4:checked ~ .hs.house.row2.col5:not(:checked) ~ .hs.shed.row2.col6:checked ~ div > div > house > .row2.col5 > i:nth-of-type(5) { - display: block; - width: 115%; -} - -.hs.row2.col1:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.house.row2.col3:not(:checked) ~ .hs.row2.col4:checked ~ div > div > house > .row2.col2 > i:nth-of-type(5) { - display: block; - width: 205%; -} -.hs.row2.col1:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.house.row2.col3:not(:checked) ~ .hs.row2.col4:checked ~ div > div > house > .row2.col2 > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 3.5rem; - transform: rotate(4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} -.hs.row2.col1:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.house.row2.col3:not(:checked) ~ .hs.row2.col4:checked ~ div > div > house > .row2.col2 > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 13.5rem; - transform: rotate(-4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col1:after { - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col1:after { - box-shadow: -2rem 4rem 0 rgba(204, 51, 51, 0.5), 0 6rem 0 currentColor; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1:after { - box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} - -.hs.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row2.col4:not(:checked) ~ .hs.row2.col5:checked ~ div > div > house > .row2.col3 > i:nth-of-type(5) { - display: block; - width: 205%; -} -.hs.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row2.col4:not(:checked) ~ .hs.row2.col5:checked ~ div > div > house > .row2.col3 > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 3.5rem; - transform: rotate(4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} -.hs.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row2.col4:not(:checked) ~ .hs.row2.col5:checked ~ div > div > house > .row2.col3 > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 13.5rem; - transform: rotate(-4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col2:after { - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col2:after { - box-shadow: -2rem 5rem 0 rgba(204, 51, 51, 0.5), 0 8rem 0 currentColor; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2:after { - box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} - -.hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row2.col5:not(:checked) ~ .hs.row2.col6:checked ~ div > div > house > .row2.col4 > i:nth-of-type(5) { - display: block; - width: 205%; -} -.hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row2.col5:not(:checked) ~ .hs.row2.col6:checked ~ div > div > house > .row2.col4 > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 3.5rem; - transform: rotate(4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} -.hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row2.col5:not(:checked) ~ .hs.row2.col6:checked ~ div > div > house > .row2.col4 > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 13.5rem; - transform: rotate(-4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col3:after { - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col3:after { - box-shadow: -2rem 6rem 0 rgba(204, 51, 51, 0.5), 0 8rem 0 currentColor; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3:after { - box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} - -.hs.row2.col4:checked ~ .hs.house.row2.col5:not(:checked) ~ .hs.house.row2.col6:not(:checked) ~ .hs.row2.col7:checked ~ div > div > house > .row2.col5 > i:nth-of-type(5) { - display: block; - width: 205%; -} -.hs.row2.col4:checked ~ .hs.house.row2.col5:not(:checked) ~ .hs.house.row2.col6:not(:checked) ~ .hs.row2.col7:checked ~ div > div > house > .row2.col5 > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 3.5rem; - transform: rotate(4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} -.hs.row2.col4:checked ~ .hs.house.row2.col5:not(:checked) ~ .hs.house.row2.col6:not(:checked) ~ .hs.row2.col7:checked ~ div > div > house > .row2.col5 > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 13.5rem; - transform: rotate(-4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col4:after { - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col4:after { - box-shadow: -2rem 4rem 0 rgba(204, 51, 51, 0.5), 0 6rem 0 currentColor; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4:after { - box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} - -.hs.row1.col1:checked ~ div > div > house > .row1.col1 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1 { - border-bottom: none; -} -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row1.col2:checked ~ div > div > house > .row1.col2 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2 { - border-bottom: none; -} -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row1.col3:checked ~ div > div > house > .row1.col3 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 { - border-bottom: none; -} -.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row1.col4:checked ~ div > div > house > .row1.col4 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 { - border-bottom: none; -} -.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col1:checked ~ div > div > house > .row2.col1 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1 { - border-bottom: none; -} -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col2:checked ~ div > div > house > .row2.col2 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2 { - border-bottom: none; -} -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col3:checked ~ div > div > house > .row2.col3 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 { - border-bottom: none; -} -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col4:checked ~ div > div > house > .row2.col4 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 { - border-bottom: none; -} -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col1:checked ~ div > div > house > .row3.col1 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1 { - border-bottom: none; -} -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col2:checked ~ div > div > house > .row3.col2 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2 { - border-bottom: none; -} -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col3:checked ~ div > div > house > .row3.col3 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3 { - border-bottom: none; -} -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col4:checked ~ div > div > house > .row3.col4 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4 { - border-bottom: none; -} -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col1:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ div > div > house > .row3.col2 > i:nth-of-type(5) { - display: block; - width: 105%; -} - -.hs.row3.col1:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.shed.row3.col3:checked ~ div > div > house > .row3.col2 > i:nth-of-type(5) { - display: block; - width: 115%; -} - -.hs.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.row3.col4:checked ~ div > div > house > .row3.col3 > i:nth-of-type(5) { - display: block; - width: 105%; -} - -.hs.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.shed.row3.col4:checked ~ div > div > house > .row3.col3 > i:nth-of-type(5) { - display: block; - width: 115%; -} - -.hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.row3.col5:checked ~ div > div > house > .row3.col4 > i:nth-of-type(5) { - display: block; - width: 105%; -} - -.hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.shed.row3.col5:checked ~ div > div > house > .row3.col4 > i:nth-of-type(5) { - display: block; - width: 115%; -} - -.hs.row3.col4:checked ~ .hs.house.row3.col5:not(:checked) ~ .hs.row3.col6:checked ~ div > div > house > .row3.col5 > i:nth-of-type(5) { - display: block; - width: 105%; -} - -.hs.row3.col4:checked ~ .hs.house.row3.col5:not(:checked) ~ .hs.shed.row3.col6:checked ~ div > div > house > .row3.col5 > i:nth-of-type(5) { - display: block; - width: 115%; -} - -.hs.row3.col1:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.house.row3.col3:not(:checked) ~ .hs.row3.col4:checked ~ div > div > house > .row3.col2 > i:nth-of-type(5) { - display: block; - width: 205%; -} -.hs.row3.col1:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.house.row3.col3:not(:checked) ~ .hs.row3.col4:checked ~ div > div > house > .row3.col2 > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 3.5rem; - transform: rotate(4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} -.hs.row3.col1:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.house.row3.col3:not(:checked) ~ .hs.row3.col4:checked ~ div > div > house > .row3.col2 > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 13.5rem; - transform: rotate(-4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col1:after { - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col1:after { - box-shadow: -2rem 6rem 0 rgba(204, 51, 51, 0.5), 0 7rem 0 currentColor; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1:after { - box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} - -.hs.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row3.col4:not(:checked) ~ .hs.row3.col5:checked ~ div > div > house > .row3.col3 > i:nth-of-type(5) { - display: block; - width: 205%; -} -.hs.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row3.col4:not(:checked) ~ .hs.row3.col5:checked ~ div > div > house > .row3.col3 > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 3.5rem; - transform: rotate(4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} -.hs.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row3.col4:not(:checked) ~ .hs.row3.col5:checked ~ div > div > house > .row3.col3 > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 13.5rem; - transform: rotate(-4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col2:after { - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col2:after { - box-shadow: -2rem 6rem 0 rgba(204, 51, 51, 0.5), 0 7rem 0 currentColor; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2:after { - box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} - -.hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row3.col5:not(:checked) ~ .hs.row3.col6:checked ~ div > div > house > .row3.col4 > i:nth-of-type(5) { - display: block; - width: 205%; -} -.hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row3.col5:not(:checked) ~ .hs.row3.col6:checked ~ div > div > house > .row3.col4 > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 3.5rem; - transform: rotate(4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} -.hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row3.col5:not(:checked) ~ .hs.row3.col6:checked ~ div > div > house > .row3.col4 > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 13.5rem; - transform: rotate(-4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col3:after { - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col3:after { - box-shadow: -2rem 5rem 0 rgba(204, 51, 51, 0.5), 0 7rem 0 currentColor; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3:after { - box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} - -.hs.row3.col4:checked ~ .hs.house.row3.col5:not(:checked) ~ .hs.house.row3.col6:not(:checked) ~ .hs.row3.col7:checked ~ div > div > house > .row3.col5 > i:nth-of-type(5) { - display: block; - width: 205%; -} -.hs.row3.col4:checked ~ .hs.house.row3.col5:not(:checked) ~ .hs.house.row3.col6:not(:checked) ~ .hs.row3.col7:checked ~ div > div > house > .row3.col5 > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 3.5rem; - transform: rotate(4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} -.hs.row3.col4:checked ~ .hs.house.row3.col5:not(:checked) ~ .hs.house.row3.col6:not(:checked) ~ .hs.row3.col7:checked ~ div > div > house > .row3.col5 > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 13.5rem; - transform: rotate(-4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row3.col4:after { - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row3.col4:after { - box-shadow: -2rem 5rem 0 rgba(204, 51, 51, 0.5), 0 7rem 0 currentColor; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4:after { - box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} - -.hs.row1.col1:checked ~ div > div > house > .row1.col1 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1 { - border-bottom: none; -} -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row1.col2:checked ~ div > div > house > .row1.col2 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2 { - border-bottom: none; -} -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row1.col3:checked ~ div > div > house > .row1.col3 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 { - border-bottom: none; -} -.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row1.col4:checked ~ div > div > house > .row1.col4 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 { - border-bottom: none; -} -.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col1:checked ~ div > div > house > .row2.col1 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1 { - border-bottom: none; -} -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col2:checked ~ div > div > house > .row2.col2 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2 { - border-bottom: none; -} -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col3:checked ~ div > div > house > .row2.col3 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 { - border-bottom: none; -} -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col4:checked ~ div > div > house > .row2.col4 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 { - border-bottom: none; -} -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col1:checked ~ div > div > house > .row3.col1 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1 { - border-bottom: none; -} -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col2:checked ~ div > div > house > .row3.col2 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2 { - border-bottom: none; -} -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col3:checked ~ div > div > house > .row3.col3 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3 { - border-bottom: none; -} -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col4:checked ~ div > div > house > .row3.col4 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4 { - border-bottom: none; -} -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row4.col1:checked ~ .hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ div > div > house > .row4.col2 > i:nth-of-type(5) { - display: block; - width: 105%; -} - -.hs.row4.col1:checked ~ .hs.house.row4.col2:not(:checked) ~ .hs.shed.row4.col3:checked ~ div > div > house > .row4.col2 > i:nth-of-type(5) { - display: block; - width: 115%; -} - -.hs.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.row4.col4:checked ~ div > div > house > .row4.col3 > i:nth-of-type(5) { - display: block; - width: 105%; -} - -.hs.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.shed.row4.col4:checked ~ div > div > house > .row4.col3 > i:nth-of-type(5) { - display: block; - width: 115%; -} - -.hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.row4.col5:checked ~ div > div > house > .row4.col4 > i:nth-of-type(5) { - display: block; - width: 105%; -} - -.hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.shed.row4.col5:checked ~ div > div > house > .row4.col4 > i:nth-of-type(5) { - display: block; - width: 115%; -} - -.hs.row4.col4:checked ~ .hs.house.row4.col5:not(:checked) ~ .hs.row4.col6:checked ~ div > div > house > .row4.col5 > i:nth-of-type(5) { - display: block; - width: 105%; -} - -.hs.row4.col4:checked ~ .hs.house.row4.col5:not(:checked) ~ .hs.shed.row4.col6:checked ~ div > div > house > .row4.col5 > i:nth-of-type(5) { - display: block; - width: 115%; -} - -.hs.row4.col1:checked ~ .hs.house.row4.col2:not(:checked) ~ .hs.house.row4.col3:not(:checked) ~ .hs.row4.col4:checked ~ div > div > house > .row4.col2 > i:nth-of-type(5) { - display: block; - width: 205%; -} -.hs.row4.col1:checked ~ .hs.house.row4.col2:not(:checked) ~ .hs.house.row4.col3:not(:checked) ~ .hs.row4.col4:checked ~ div > div > house > .row4.col2 > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 3.5rem; - transform: rotate(4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} -.hs.row4.col1:checked ~ .hs.house.row4.col2:not(:checked) ~ .hs.house.row4.col3:not(:checked) ~ .hs.row4.col4:checked ~ div > div > house > .row4.col2 > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 13.5rem; - transform: rotate(-4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ div > div > house > .row4.col1:after { - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ div > div > house > .row4.col1:after { - box-shadow: -2rem 5rem 0 rgba(204, 51, 51, 0.5), 0 7rem 0 currentColor; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ div > div > house > .row4.col1:after { - box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} - -.hs.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row4.col4:not(:checked) ~ .hs.row4.col5:checked ~ div > div > house > .row4.col3 > i:nth-of-type(5) { - display: block; - width: 205%; -} -.hs.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row4.col4:not(:checked) ~ .hs.row4.col5:checked ~ div > div > house > .row4.col3 > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 3.5rem; - transform: rotate(4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} -.hs.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row4.col4:not(:checked) ~ .hs.row4.col5:checked ~ div > div > house > .row4.col3 > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 13.5rem; - transform: rotate(-4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ div > div > house > .row4.col2:after { - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ div > div > house > .row4.col2:after { - box-shadow: -2rem 6rem 0 rgba(204, 51, 51, 0.5), 0 8rem 0 currentColor; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ div > div > house > .row4.col2:after { - box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} - -.hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row4.col5:not(:checked) ~ .hs.row4.col6:checked ~ div > div > house > .row4.col4 > i:nth-of-type(5) { - display: block; - width: 205%; -} -.hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row4.col5:not(:checked) ~ .hs.row4.col6:checked ~ div > div > house > .row4.col4 > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 3.5rem; - transform: rotate(4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} -.hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row4.col5:not(:checked) ~ .hs.row4.col6:checked ~ div > div > house > .row4.col4 > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 13.5rem; - transform: rotate(-4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ div > div > house > .row4.col3:after { - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ div > div > house > .row4.col3:after { - box-shadow: -2rem 5rem 0 rgba(204, 51, 51, 0.5), 0 6rem 0 currentColor; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ div > div > house > .row4.col3:after { - box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} - -.hs.row4.col4:checked ~ .hs.house.row4.col5:not(:checked) ~ .hs.house.row4.col6:not(:checked) ~ .hs.row4.col7:checked ~ div > div > house > .row4.col5 > i:nth-of-type(5) { - display: block; - width: 205%; -} -.hs.row4.col4:checked ~ .hs.house.row4.col5:not(:checked) ~ .hs.house.row4.col6:not(:checked) ~ .hs.row4.col7:checked ~ div > div > house > .row4.col5 > i:nth-of-type(5):after { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #bc502f; - top: 2.75rem; - left: 3.5rem; - transform: rotate(4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} -.hs.row4.col4:checked ~ .hs.house.row4.col5:not(:checked) ~ .hs.house.row4.col6:not(:checked) ~ .hs.row4.col7:checked ~ div > div > house > .row4.col5 > i:nth-of-type(5):before { - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #6ebc2f; - top: 3.25rem; - left: 13.5rem; - transform: rotate(-4deg); - z-index: -1 !important; - filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ div > div > house > .row4.col4:after { - box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ div > div > house > .row4.col4:after { - box-shadow: -2rem 5rem 0 rgba(204, 51, 51, 0.5), 0 8rem 0 currentColor; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ div > div > house > .row4.col4:after { - box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; -} - -.hs.row1.col1:checked ~ div > div > house > .row1.col1 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1 { - border-bottom: none; -} -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row1.col2:checked ~ div > div > house > .row1.col2 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2 { - border-bottom: none; -} -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row1.col3:checked ~ div > div > house > .row1.col3 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 { - border-bottom: none; -} -.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row1.col4:checked ~ div > div > house > .row1.col4 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 { - border-bottom: none; -} -.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col1:checked ~ div > div > house > .row2.col1 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1 { - border-bottom: none; -} -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col2:checked ~ div > div > house > .row2.col2 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2 { - border-bottom: none; -} -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col3:checked ~ div > div > house > .row2.col3 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 { - border-bottom: none; -} -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row2.col4:checked ~ div > div > house > .row2.col4 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 { - border-bottom: none; -} -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col1:checked ~ div > div > house > .row3.col1 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1 { - border-bottom: none; -} -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col2:checked ~ div > div > house > .row3.col2 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2 { - border-bottom: none; -} -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col3:checked ~ div > div > house > .row3.col3 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3 { - border-bottom: none; -} -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3) { - display: none !important; -} - -.hs.row3.col4:checked ~ div > div > house > .row3.col4 { - border-bottom: 0.75rem solid #20112a; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3) { - width: 2rem; - height: 325%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - top: 12rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); - z-index: -200; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3):before { - width: 12rem; - height: 12rem; - border: 1.15rem dashed rgba(255, 255, 255, 0); - border-bottom-color: #20112a; - box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; - top: 0.5rem; - border-radius: 5rem; - left: -0.5rem; - transform: scaleY(-1); -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3):after { - width: 2rem; - height: 100%; - border-left: 0.75rem solid #20112a; - border-right: 0.75rem solid #20112a; - left: 9.8rem; - background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(n + 5) > i:nth-of-type(3) { - height: 225%; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(n + 9) > i:nth-of-type(3) { - height: 13.5rem; -} - -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4 { - border-bottom: none; -} -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3) { - display: none !important; -} - -[id^=cb23]:checked ~ div > div > house > [for=ncb23] { - box-shadow: 0 0.5rem 0 #bc2f2f; -} -[id^=cb23]:checked ~ div > div > house > [for=ncb23] > i:nth-of-type(3) { - width: 4rem; - height: 9rem; - right: 0; - margin: auto; - top: 3.5rem; - border-radius: 0.5rem; -} -[id^=cb23]:checked ~ div > div > house > [for=ncb23] > i:nth-of-type(3):before { - width: 7rem; - height: 4rem; - left: -8em; - top: 6rem; - border-radius: 50% 50% 1rem 1rem/80% 80% 1rem 1rem; - background: #6ebc2f; - box-shadow: 3rem 1rem 0 -1rem #bcae2f, 14rem 0.5rem 0 -0.5rem #60bc2f, 10rem 1rem 0 -1.25rem #6ebc2f; -} -[id^=cb23]:checked ~ div > div > house > [for=ncb23] > i:nth-of-type(3):after { - width: 0.75rem; - height: 0.75rem; - background: #fff; - border-radius: 50%; - left: -5rem; - top: 7rem; - box-shadow: 2rem 0.5rem 0 -0.1rem #fff, 1rem 1.5rem 0 -0.05rem #fff, 15rem 1.5rem 0 -0.05rem #fff, 16rem 1rem 0 -0.1rem #fff; -} -[id^=cb23]:checked ~ div > div > house > [for=ncb23].col3 > i:nth-of-type(3):before { - height: 3rem; - left: -8.5em; - top: 7rem; - background: #6ebc2f; - box-shadow: 3rem 0.75rem 0 -1rem #bcae2f, 14rem 1rem 0 0.5rem #6ebc2f, 10rem 0.5rem 0 -0.5rem #60bc2f; -} -[id^=cb23]:checked ~ div > div > house > [for=ncb23].col3 > i:nth-of-type(3):after { - left: -7rem; -} -[id^=cb23]:checked ~ div > div > house > [for=ncb23].col2 > i:nth-of-type(3):before { - height: 3.5rem; - width: 6rem; - left: -7em; - top: 6.5rem; - background: #6ebc2f; - box-shadow: 3rem 0.75rem 0 -1rem #bcae2f, 13rem 1rem 0 0.5rem #60bc2f, 9rem 0.5rem 0 -0.5rem #bcae2f; -} -[id^=cb23]:checked ~ div > div > house > [for=ncb23].col2 > i:nth-of-type(3):after { - left: -7rem; -} -[id^=cb23]:checked ~ div > div > house > [for=ncb23].col1 > i:nth-of-type(3):before { - width: 6rem; - height: 3rem; - left: -6.5em; - top: 7rem; - border-radius: 50% 50% 1rem 1rem/80% 80% 1rem 1rem; - background: #bcae2f; - box-shadow: 3rem 0.5rem 0 -0.75rem #6ebc2f, 9rem 0.5rem 0 -0.5rem #6ebc2f, 12rem -0.25rem 0 0.5rem #60bc2f; -} -[id^=cb23]:checked ~ div > div > house > [for=ncb23].col1 > i:nth-of-type(3):after { - width: 0.75rem; - height: 0.75rem; - background: #fff; - border-radius: 50%; - left: -5rem; - top: 7rem; - box-shadow: 2rem 0.5rem 0 -0.1rem #fff, 1rem 0.75rem 0 -0.05rem #fff, 16rem 1.5rem 0 -0.05rem #fff, 15rem 1rem 0 -0.1rem #fff; -} - -#cb23:checked ~ #cb24:not(:checked) ~ div > div > house > [for=ncb23] > i:nth-of-type(3), -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(3), -#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(3) { - background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #6a341b; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); -} -#cb23:checked ~ #cb24:not(:checked) ~ div > div > house > [for=ncb23].col2 > i:nth-of-type(3), -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24].col2 > i:nth-of-type(3), -#cb26:checked ~ div > div > house > [for=ncb26].col2 > i:nth-of-type(3) { - background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #683f44; -} -#cb23:checked ~ #cb24:not(:checked) ~ div > div > house > [for=ncb23].col1 > i:nth-of-type(3), -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24].col1 > i:nth-of-type(3), -#cb26:checked ~ div > div > house > [for=ncb26].col1 > i:nth-of-type(3) { - background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #252529; -} -#cb23:checked ~ #cb24:not(:checked) ~ div > div > house > [for=ncb23] > i:nth-of-type(4), -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4), -#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4) { - transform: scale(0.5); - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #6a341b, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -#cb23:checked ~ #cb24:not(:checked) ~ div > div > house > [for=ncb23] > i:nth-of-type(4):after, -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4):after, -#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4):after { - height: 0.5rem; - top: 2.3rem; - background: #6a341b; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -#cb23:checked ~ #cb24:not(:checked) ~ div > div > house > [for=ncb23] > i:nth-of-type(4):before, -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4):before, -#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4):before { - width: 0.5rem; - left: 2.3rem; - background: #6a341b; -} - -[id^=cb24]:checked ~ div > div > house > [for=ncb24] { - box-shadow: 0 0.5rem 0 #bc2f2f; -} -[id^=cb24]:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(3) { - width: 4rem; - height: 9rem; - right: 0; - margin: auto; - top: 3.5rem; - border-radius: 0.5rem; -} -[id^=cb24]:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(3):before { - width: 7rem; - height: 4rem; - left: -8em; - top: 6rem; - border-radius: 50% 50% 1rem 1rem/80% 80% 1rem 1rem; - background: #6ebc2f; - box-shadow: 3rem 1rem 0 -1rem #bcae2f, 14rem 0.5rem 0 -0.5rem #60bc2f, 10rem 1rem 0 -1.25rem #6ebc2f; -} -[id^=cb24]:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(3):after { - width: 0.75rem; - height: 0.75rem; - background: #fff; - border-radius: 50%; - left: -5rem; - top: 7rem; - box-shadow: 2rem 0.5rem 0 -0.1rem #fff, 1rem 1.5rem 0 -0.05rem #fff, 15rem 1.5rem 0 -0.05rem #fff, 16rem 1rem 0 -0.1rem #fff; -} -[id^=cb24]:checked ~ div > div > house > [for=ncb24].col3 > i:nth-of-type(3):before { - height: 3rem; - left: -8.5em; - top: 7rem; - background: #6ebc2f; - box-shadow: 3rem 0.75rem 0 -1rem #bcae2f, 14rem 1rem 0 0.5rem #6ebc2f, 10rem 0.5rem 0 -0.5rem #60bc2f; -} -[id^=cb24]:checked ~ div > div > house > [for=ncb24].col3 > i:nth-of-type(3):after { - left: -7rem; -} -[id^=cb24]:checked ~ div > div > house > [for=ncb24].col2 > i:nth-of-type(3):before { - height: 3.5rem; - width: 6rem; - left: -7em; - top: 6.5rem; - background: #6ebc2f; - box-shadow: 3rem 0.75rem 0 -1rem #bcae2f, 13rem 1rem 0 0.5rem #60bc2f, 9rem 0.5rem 0 -0.5rem #bcae2f; -} -[id^=cb24]:checked ~ div > div > house > [for=ncb24].col2 > i:nth-of-type(3):after { - left: -7rem; -} -[id^=cb24]:checked ~ div > div > house > [for=ncb24].col1 > i:nth-of-type(3):before { - width: 6rem; - height: 3rem; - left: -6.5em; - top: 7rem; - border-radius: 50% 50% 1rem 1rem/80% 80% 1rem 1rem; - background: #bcae2f; - box-shadow: 3rem 0.5rem 0 -0.75rem #6ebc2f, 9rem 0.5rem 0 -0.5rem #6ebc2f, 12rem -0.25rem 0 0.5rem #60bc2f; -} -[id^=cb24]:checked ~ div > div > house > [for=ncb24].col1 > i:nth-of-type(3):after { - width: 0.75rem; - height: 0.75rem; - background: #fff; - border-radius: 50%; - left: -5rem; - top: 7rem; - box-shadow: 2rem 0.5rem 0 -0.1rem #fff, 1rem 0.75rem 0 -0.05rem #fff, 16rem 1.5rem 0 -0.05rem #fff, 15rem 1rem 0 -0.1rem #fff; -} - -#cb24:checked ~ #cb25:not(:checked) ~ div > div > house > [for=ncb24] > i:nth-of-type(3), -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(3), -#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(3) { - background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #6a341b; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); -} -#cb24:checked ~ #cb25:not(:checked) ~ div > div > house > [for=ncb24].col4 > i:nth-of-type(3), -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24].col4 > i:nth-of-type(3), -#cb26:checked ~ div > div > house > [for=ncb26].col4 > i:nth-of-type(3) { - background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #683f44; -} -#cb24:checked ~ #cb25:not(:checked) ~ div > div > house > [for=ncb24].col2 > i:nth-of-type(3), -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24].col2 > i:nth-of-type(3), -#cb26:checked ~ div > div > house > [for=ncb26].col2 > i:nth-of-type(3) { - background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #252529; -} -#cb24:checked ~ #cb25:not(:checked) ~ div > div > house > [for=ncb24] > i:nth-of-type(4), -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4), -#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4) { - transform: scale(0.5); - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #6a341b, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -#cb24:checked ~ #cb25:not(:checked) ~ div > div > house > [for=ncb24] > i:nth-of-type(4):after, -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4):after, -#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4):after { - height: 0.5rem; - top: 2.3rem; - background: #6a341b; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -#cb24:checked ~ #cb25:not(:checked) ~ div > div > house > [for=ncb24] > i:nth-of-type(4):before, -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4):before, -#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4):before { - width: 0.5rem; - left: 2.3rem; - background: #6a341b; -} - -[id^=cb25]:checked ~ div > div > house > [for=ncb25] { - box-shadow: 0 0.5rem 0 #bc2f2f; -} -[id^=cb25]:checked ~ div > div > house > [for=ncb25] > i:nth-of-type(3) { - width: 4rem; - height: 9rem; - right: 0; - margin: auto; - top: 3.5rem; - border-radius: 0.5rem; -} -[id^=cb25]:checked ~ div > div > house > [for=ncb25] > i:nth-of-type(3):before { - width: 7rem; - height: 4rem; - left: -8em; - top: 6rem; - border-radius: 50% 50% 1rem 1rem/80% 80% 1rem 1rem; - background: #6ebc2f; - box-shadow: 3rem 1rem 0 -1rem #bcae2f, 14rem 0.5rem 0 -0.5rem #60bc2f, 10rem 1rem 0 -1.25rem #6ebc2f; -} -[id^=cb25]:checked ~ div > div > house > [for=ncb25] > i:nth-of-type(3):after { - width: 0.75rem; - height: 0.75rem; - background: #fff; - border-radius: 50%; - left: -5rem; - top: 7rem; - box-shadow: 2rem 0.5rem 0 -0.1rem #fff, 1rem 1.5rem 0 -0.05rem #fff, 15rem 1.5rem 0 -0.05rem #fff, 16rem 1rem 0 -0.1rem #fff; -} -[id^=cb25]:checked ~ div > div > house > [for=ncb25].col3 > i:nth-of-type(3):before { - height: 3rem; - left: -8.5em; - top: 7rem; - background: #6ebc2f; - box-shadow: 3rem 0.75rem 0 -1rem #bcae2f, 14rem 1rem 0 0.5rem #6ebc2f, 10rem 0.5rem 0 -0.5rem #60bc2f; -} -[id^=cb25]:checked ~ div > div > house > [for=ncb25].col3 > i:nth-of-type(3):after { - left: -7rem; -} -[id^=cb25]:checked ~ div > div > house > [for=ncb25].col2 > i:nth-of-type(3):before { - height: 3.5rem; - width: 6rem; - left: -7em; - top: 6.5rem; - background: #6ebc2f; - box-shadow: 3rem 0.75rem 0 -1rem #bcae2f, 13rem 1rem 0 0.5rem #60bc2f, 9rem 0.5rem 0 -0.5rem #bcae2f; -} -[id^=cb25]:checked ~ div > div > house > [for=ncb25].col2 > i:nth-of-type(3):after { - left: -7rem; -} -[id^=cb25]:checked ~ div > div > house > [for=ncb25].col1 > i:nth-of-type(3):before { - width: 6rem; - height: 3rem; - left: -6.5em; - top: 7rem; - border-radius: 50% 50% 1rem 1rem/80% 80% 1rem 1rem; - background: #bcae2f; - box-shadow: 3rem 0.5rem 0 -0.75rem #6ebc2f, 9rem 0.5rem 0 -0.5rem #6ebc2f, 12rem -0.25rem 0 0.5rem #60bc2f; -} -[id^=cb25]:checked ~ div > div > house > [for=ncb25].col1 > i:nth-of-type(3):after { - width: 0.75rem; - height: 0.75rem; - background: #fff; - border-radius: 50%; - left: -5rem; - top: 7rem; - box-shadow: 2rem 0.5rem 0 -0.1rem #fff, 1rem 0.75rem 0 -0.05rem #fff, 16rem 1.5rem 0 -0.05rem #fff, 15rem 1rem 0 -0.1rem #fff; -} - -#cb25:checked ~ #cb26:not(:checked) ~ div > div > house > [for=ncb25] > i:nth-of-type(3), -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(3), -#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(3) { - background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #6a341b; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); -} -#cb25:checked ~ #cb26:not(:checked) ~ div > div > house > [for=ncb25].col4 > i:nth-of-type(3), -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24].col4 > i:nth-of-type(3), -#cb26:checked ~ div > div > house > [for=ncb26].col4 > i:nth-of-type(3) { - background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #683f44; -} -#cb25:checked ~ #cb26:not(:checked) ~ div > div > house > [for=ncb25].col2 > i:nth-of-type(3), -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24].col2 > i:nth-of-type(3), -#cb26:checked ~ div > div > house > [for=ncb26].col2 > i:nth-of-type(3) { - background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #252529; -} -#cb25:checked ~ #cb26:not(:checked) ~ div > div > house > [for=ncb25] > i:nth-of-type(4), -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4), -#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4) { - transform: scale(0.5); - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #6a341b, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -#cb25:checked ~ #cb26:not(:checked) ~ div > div > house > [for=ncb25] > i:nth-of-type(4):after, -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4):after, -#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4):after { - height: 0.5rem; - top: 2.3rem; - background: #6a341b; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -#cb25:checked ~ #cb26:not(:checked) ~ div > div > house > [for=ncb25] > i:nth-of-type(4):before, -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4):before, -#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4):before { - width: 0.5rem; - left: 2.3rem; - background: #6a341b; -} - -[id^=cb26]:checked ~ div > div > house > [for=ncb26] { - box-shadow: 0 0.5rem 0 #bc2f2f; -} -[id^=cb26]:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(3) { - width: 4rem; - height: 9rem; - right: 0; - margin: auto; - top: 3.5rem; - border-radius: 0.5rem; -} -[id^=cb26]:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(3):before { - width: 7rem; - height: 4rem; - left: -8em; - top: 6rem; - border-radius: 50% 50% 1rem 1rem/80% 80% 1rem 1rem; - background: #6ebc2f; - box-shadow: 3rem 1rem 0 -1rem #bcae2f, 14rem 0.5rem 0 -0.5rem #60bc2f, 10rem 1rem 0 -1.25rem #6ebc2f; -} -[id^=cb26]:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(3):after { - width: 0.75rem; - height: 0.75rem; - background: #fff; - border-radius: 50%; - left: -5rem; - top: 7rem; - box-shadow: 2rem 0.5rem 0 -0.1rem #fff, 1rem 1.5rem 0 -0.05rem #fff, 15rem 1.5rem 0 -0.05rem #fff, 16rem 1rem 0 -0.1rem #fff; -} -[id^=cb26]:checked ~ div > div > house > [for=ncb26].col3 > i:nth-of-type(3):before { - height: 3rem; - left: -8.5em; - top: 7rem; - background: #6ebc2f; - box-shadow: 3rem 0.75rem 0 -1rem #bcae2f, 14rem 1rem 0 0.5rem #6ebc2f, 10rem 0.5rem 0 -0.5rem #60bc2f; -} -[id^=cb26]:checked ~ div > div > house > [for=ncb26].col3 > i:nth-of-type(3):after { - left: -7rem; -} -[id^=cb26]:checked ~ div > div > house > [for=ncb26].col2 > i:nth-of-type(3):before { - height: 3.5rem; - width: 6rem; - left: -7em; - top: 6.5rem; - background: #6ebc2f; - box-shadow: 3rem 0.75rem 0 -1rem #bcae2f, 13rem 1rem 0 0.5rem #60bc2f, 9rem 0.5rem 0 -0.5rem #bcae2f; -} -[id^=cb26]:checked ~ div > div > house > [for=ncb26].col2 > i:nth-of-type(3):after { - left: -7rem; -} -[id^=cb26]:checked ~ div > div > house > [for=ncb26].col1 > i:nth-of-type(3):before { - width: 6rem; - height: 3rem; - left: -6.5em; - top: 7rem; - border-radius: 50% 50% 1rem 1rem/80% 80% 1rem 1rem; - background: #bcae2f; - box-shadow: 3rem 0.5rem 0 -0.75rem #6ebc2f, 9rem 0.5rem 0 -0.5rem #6ebc2f, 12rem -0.25rem 0 0.5rem #60bc2f; -} -[id^=cb26]:checked ~ div > div > house > [for=ncb26].col1 > i:nth-of-type(3):after { - width: 0.75rem; - height: 0.75rem; - background: #fff; - border-radius: 50%; - left: -5rem; - top: 7rem; - box-shadow: 2rem 0.5rem 0 -0.1rem #fff, 1rem 0.75rem 0 -0.05rem #fff, 16rem 1.5rem 0 -0.05rem #fff, 15rem 1rem 0 -0.1rem #fff; -} - -#cb26:checked ~ #cb27:not(:checked) ~ div > div > house > [for=ncb26] > i:nth-of-type(3), -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(3), -#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(3) { - background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #6a341b; - box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); -} -#cb26:checked ~ #cb27:not(:checked) ~ div > div > house > [for=ncb26].col1 > i:nth-of-type(3), -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24].col1 > i:nth-of-type(3), -#cb26:checked ~ div > div > house > [for=ncb26].col1 > i:nth-of-type(3) { - background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #683f44; -} -#cb26:checked ~ #cb27:not(:checked) ~ div > div > house > [for=ncb26].col2 > i:nth-of-type(3), -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24].col2 > i:nth-of-type(3), -#cb26:checked ~ div > div > house > [for=ncb26].col2 > i:nth-of-type(3) { - background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #252529; -} -#cb26:checked ~ #cb27:not(:checked) ~ div > div > house > [for=ncb26] > i:nth-of-type(4), -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4), -#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4) { - transform: scale(0.5); - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #6a341b, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; -} -#cb26:checked ~ #cb27:not(:checked) ~ div > div > house > [for=ncb26] > i:nth-of-type(4):after, -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4):after, -#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4):after { - height: 0.5rem; - top: 2.3rem; - background: #6a341b; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -#cb26:checked ~ #cb27:not(:checked) ~ div > div > house > [for=ncb26] > i:nth-of-type(4):before, -#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4):before, -#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4):before { - width: 0.5rem; - left: 2.3rem; - background: #6a341b; -} - -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3, -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row2.col3, -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row3.col3, -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row4.col3 { - background: #a19372; - color: #a19372; - z-index: 310; -} -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(4), .hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(3), -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row2.col3 > i:nth-of-type(4), -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row2.col3 > i:nth-of-type(3), -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row3.col3 > i:nth-of-type(4), -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row3.col3 > i:nth-of-type(3), -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row4.col3 > i:nth-of-type(4), -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row4.col3 > i:nth-of-type(3) { - border-radius: 50% 50% 0.3rem 0.3rem; -} -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(3), -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row2.col3 > i:nth-of-type(3), -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row3.col3 > i:nth-of-type(3), -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row4.col3 > i:nth-of-type(3) { - height: 10rem; - width: 4.5rem; - top: 2.5rem; -} -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(3):before, -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row2.col3 > i:nth-of-type(3):before, -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row3.col3 > i:nth-of-type(3):before, -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row4.col3 > i:nth-of-type(3):before { - top: 8rem; -} -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(3):after, -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row2.col3 > i:nth-of-type(3):after, -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row3.col3 > i:nth-of-type(3):after, -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row4.col3 > i:nth-of-type(3):after { - top: 8rem; -} -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(4):after, -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row2.col3 > i:nth-of-type(4):after, -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row3.col3 > i:nth-of-type(4):after, -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row4.col3 > i:nth-of-type(4):after { - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(1) { - display: none; -} -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(2) { - border: 1rem solid rgba(255, 255, 255, 0); - border-left: 3rem solid #bc502f; - top: -8.5rem; - left: 4.25rem; - box-shadow: none; -} -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(2):before { - top: 3.25rem; - left: -8.25rem; - background: #a19372; - width: 2.75rem; - height: 5rem; - border-radius: 0.25rem 0.25rem 50% 50%; - box-shadow: 4rem 0 0 #a19372, 8rem 0 0 #a19372, 12rem 0 0 #a19372; -} -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(2):after { - width: 14.5rem; - height: 3rem; - top: 6.25rem; - border-radius: 0 0 2rem 2rem; - background: #a19372; - left: -8.25rem; - filter: none; - border: none; - box-shadow: none; -} -.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(4):before { - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), -2rem -12.5rem 0 #20112a; -} - -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2, -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2, -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2, -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row4.col2 { - z-index: 310; - background: none; - border: none; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2:before, .hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2:after, -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2:before, -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2:after, -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2:before, -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2:after, -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row4.col2:before, -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row4.col2:after { - width: 80%; - height: 105%; - background: linear-gradient(to right, #a99c7e, currentColor); - transform: skewX(-2deg); - border-radius: 0.1rem 0.1rem 50% 50%/50% 50% 0.25rem 0.25rem; - top: 0; - left: -1rem; - box-shadow: none; - filter: none; - opacity: 1; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2:after, -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2:after, -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2:after, -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row4.col2:after { - left: auto; - right: -1rem; - transform: skewX(2deg); - background: linear-gradient(to right, rgba(255, 255, 255, 0), currentColor, #86795a); -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(4), -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2 > i:nth-of-type(4), -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2 > i:nth-of-type(4), -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row4.col2 > i:nth-of-type(4) { - border-radius: 50%; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(3), -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2 > i:nth-of-type(3), -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2 > i:nth-of-type(3), -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row4.col2 > i:nth-of-type(3) { - border-radius: 2rem 2rem 0.5rem 0.5rem; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(4):after, -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2 > i:nth-of-type(4):after, -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2 > i:nth-of-type(4):after, -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row4.col2 > i:nth-of-type(4):after { - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(1) { - display: none; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(2) { - width: 8rem; - height: 12rem; - border: 0.5rem solid rgba(255, 255, 255, 0); - border-top: 1rem solid #252529; - border-bottom: 6rem solid #6a341b; - border-radius: 0.5rem 0.5rem 0 0; - top: -12rem; - left: 0; - right: 0; - margin: auto; - background: repeating-linear-gradient(to right, #252529 0.5rem, #252529 1rem, rgba(255, 255, 255, 0) 1rem, rgba(255, 255, 255, 0) 3.25rem), repeating-linear-gradient(45deg, #6a341b, #6a341b 0.2rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1rem), repeating-linear-gradient(-45deg, #6a341b, #6a341b 0.2rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1rem); - box-shadow: inset 0 -1rem 0 #252529; - background-size: cover; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(2):before { - border: 3rem solid rgba(255, 255, 255, 0); - width: 6.5rem; - box-shadow: inset 0 3rem 0 #6a341b; - border-bottom-color: #20112a; - top: -10rem; - right: 0; - margin: auto; - height: 9rem; - border-radius: 0; - background: none; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(2):after { - width: 12.5rem; - background: repeating-linear-gradient(to right, #252529, #252529 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.32rem); - height: 5rem; - top: 6rem; - border-radius: 0.5rem; - border: none; - border-bottom: 1rem solid #252529; - border-top: 0.5rem solid #252529; - left: -10rem; - right: -10rem; - margin: auto; - box-shadow: none; - display: block; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2 { - color: #a19372; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2:before, .hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2:after { - left: -0.5rem; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2:after { - left: auto; - right: -0.5rem; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2:before, .hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2:after { - left: 0; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2:after { - left: auto; - right: 0; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2 { - color: #a19372; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2:before, .hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2:after { - left: 0.5rem; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2:after { - left: auto; - right: 0.5rem; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ text { - transform: scale(1) !important; - z-index: 410; - transition: all 0.5s 1s ease-in-out; - opacity: 1; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ text welldone { - display: block; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ text gameover { - display: none; -} - -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(4) { - border-radius: 50% !important; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(4):after { - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} - -.hs.house.row4.col2:checked ~ .hs.shed.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(4) { - border-radius: 50%; -} -.hs.house.row4.col2:checked ~ .hs.shed.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(4):after { - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); -} - -house label, -shed label { - opacity: 0; -} -house label *, house label:after, house label:before, -shed label *, -shed label:after, -shed label:before { - transform: translate3d(0, 0, 0); -} - -@keyframes pop { - 0% { - opacity: 0; - transform: translate3d(0, -12rem, 0); - } - 99% { - opacity: 1; - transform: translate3d(0, 0, 0); - } -} -@keyframes popup { - 0% { - opacity: 0; - transform: translate3d(0, 12rem, 0); - } - 99% { - opacity: 1; - transform: translate3d(0, 0, 0); - } -} -.shed.row1.col1:checked ~ div > div > shed > .row1.col1, -.house.row1.col1:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.shed.row1.col1:checked ~ div > div > shed > .row1.col1:after, .shed.row1.col1:checked ~ div > div > shed > .row1.col1 *:after, -.house.row1.col1:checked ~ div > div > house > .row1.col1:after, -.house.row1.col1:checked ~ div > div > house > .row1.col1 *:after { - animation: pop 0.1s linear forwards; -} -.shed.row1.col1:checked ~ div > div > shed > .row1.col1:before, .shed.row1.col1:checked ~ div > div > shed > .row1.col1 *:before, -.house.row1.col1:checked ~ div > div > house > .row1.col1:before, -.house.row1.col1:checked ~ div > div > house > .row1.col1 *:before { - animation: popup 0.1s linear forwards; -} - -.shed.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(5) { - display: none !important; -} - -.house.row1.col1:checked ~ div > div > hbtn > .row1.col0 { - z-index: 100; -} - -.house.row1.col1:checked ~ div > div > hbtn > .row1.col2 { - z-index: 100; -} - -.house.row1.col1:checked ~ div > div > hbtn > .row2.col1 { - z-index: 100; -} - -.house.row1.col1:checked ~ div > div > hbtn > .row0.col1 { - z-index: 100; -} - -.shed.row1.col2:checked ~ div > div > shed > .row1.col2, -.house.row1.col2:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.shed.row1.col2:checked ~ div > div > shed > .row1.col2:after, .shed.row1.col2:checked ~ div > div > shed > .row1.col2 *:after, -.house.row1.col2:checked ~ div > div > house > .row1.col2:after, -.house.row1.col2:checked ~ div > div > house > .row1.col2 *:after { - animation: pop 0.1s linear forwards; -} -.shed.row1.col2:checked ~ div > div > shed > .row1.col2:before, .shed.row1.col2:checked ~ div > div > shed > .row1.col2 *:before, -.house.row1.col2:checked ~ div > div > house > .row1.col2:before, -.house.row1.col2:checked ~ div > div > house > .row1.col2 *:before { - animation: popup 0.1s linear forwards; -} - -.shed.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(5) { - display: none !important; -} - -.house.row1.col2:checked ~ div > div > hbtn > .row1.col1 { - z-index: 100; -} - -.house.row1.col2:checked ~ div > div > hbtn > .row1.col3 { - z-index: 100; -} - -.house.row1.col2:checked ~ div > div > hbtn > .row2.col2 { - z-index: 100; -} - -.house.row1.col2:checked ~ div > div > hbtn > .row0.col2 { - z-index: 100; -} - -.shed.row1.col3:checked ~ div > div > shed > .row1.col3, -.house.row1.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.shed.row1.col3:checked ~ div > div > shed > .row1.col3:after, .shed.row1.col3:checked ~ div > div > shed > .row1.col3 *:after, -.house.row1.col3:checked ~ div > div > house > .row1.col3:after, -.house.row1.col3:checked ~ div > div > house > .row1.col3 *:after { - animation: pop 0.1s linear forwards; -} -.shed.row1.col3:checked ~ div > div > shed > .row1.col3:before, .shed.row1.col3:checked ~ div > div > shed > .row1.col3 *:before, -.house.row1.col3:checked ~ div > div > house > .row1.col3:before, -.house.row1.col3:checked ~ div > div > house > .row1.col3 *:before { - animation: popup 0.1s linear forwards; -} - -.shed.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(5) { - display: none !important; -} - -.house.row1.col3:checked ~ div > div > hbtn > .row1.col2 { - z-index: 100; -} - -.house.row1.col3:checked ~ div > div > hbtn > .row1.col4 { - z-index: 100; -} - -.house.row1.col3:checked ~ div > div > hbtn > .row2.col3 { - z-index: 100; -} - -.house.row1.col3:checked ~ div > div > hbtn > .row0.col3 { - z-index: 100; -} - -.shed.row1.col4:checked ~ div > div > shed > .row1.col4, -.house.row1.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.shed.row1.col4:checked ~ div > div > shed > .row1.col4:after, .shed.row1.col4:checked ~ div > div > shed > .row1.col4 *:after, -.house.row1.col4:checked ~ div > div > house > .row1.col4:after, -.house.row1.col4:checked ~ div > div > house > .row1.col4 *:after { - animation: pop 0.1s linear forwards; -} -.shed.row1.col4:checked ~ div > div > shed > .row1.col4:before, .shed.row1.col4:checked ~ div > div > shed > .row1.col4 *:before, -.house.row1.col4:checked ~ div > div > house > .row1.col4:before, -.house.row1.col4:checked ~ div > div > house > .row1.col4 *:before { - animation: popup 0.1s linear forwards; -} - -.shed.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(5) { - display: none !important; -} - -.house.row1.col4:checked ~ div > div > hbtn > .row1.col3 { - z-index: 100; -} - -.house.row1.col4:checked ~ div > div > hbtn > .row1.col5 { - z-index: 100; -} - -.house.row1.col4:checked ~ div > div > hbtn > .row2.col4 { - z-index: 100; -} - -.house.row1.col4:checked ~ div > div > hbtn > .row0.col4 { - z-index: 100; -} - -.shed.row2.col1:checked ~ div > div > shed > .row2.col1, -.house.row2.col1:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.shed.row2.col1:checked ~ div > div > shed > .row2.col1:after, .shed.row2.col1:checked ~ div > div > shed > .row2.col1 *:after, -.house.row2.col1:checked ~ div > div > house > .row2.col1:after, -.house.row2.col1:checked ~ div > div > house > .row2.col1 *:after { - animation: pop 0.1s linear forwards; -} -.shed.row2.col1:checked ~ div > div > shed > .row2.col1:before, .shed.row2.col1:checked ~ div > div > shed > .row2.col1 *:before, -.house.row2.col1:checked ~ div > div > house > .row2.col1:before, -.house.row2.col1:checked ~ div > div > house > .row2.col1 *:before { - animation: popup 0.1s linear forwards; -} - -.shed.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(5) { - display: none !important; -} - -.house.row2.col1:checked ~ div > div > hbtn > .row2.col0 { - z-index: 100; -} - -.house.row2.col1:checked ~ div > div > hbtn > .row2.col2 { - z-index: 100; -} - -.house.row2.col1:checked ~ div > div > hbtn > .row3.col1 { - z-index: 100; -} - -.house.row2.col1:checked ~ div > div > hbtn > .row1.col1 { - z-index: 100; -} - -.shed.row2.col2:checked ~ div > div > shed > .row2.col2, -.house.row2.col2:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.shed.row2.col2:checked ~ div > div > shed > .row2.col2:after, .shed.row2.col2:checked ~ div > div > shed > .row2.col2 *:after, -.house.row2.col2:checked ~ div > div > house > .row2.col2:after, -.house.row2.col2:checked ~ div > div > house > .row2.col2 *:after { - animation: pop 0.1s linear forwards; -} -.shed.row2.col2:checked ~ div > div > shed > .row2.col2:before, .shed.row2.col2:checked ~ div > div > shed > .row2.col2 *:before, -.house.row2.col2:checked ~ div > div > house > .row2.col2:before, -.house.row2.col2:checked ~ div > div > house > .row2.col2 *:before { - animation: popup 0.1s linear forwards; -} - -.shed.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(5) { - display: none !important; -} - -.house.row2.col2:checked ~ div > div > hbtn > .row2.col1 { - z-index: 100; -} - -.house.row2.col2:checked ~ div > div > hbtn > .row2.col3 { - z-index: 100; -} - -.house.row2.col2:checked ~ div > div > hbtn > .row3.col2 { - z-index: 100; -} - -.house.row2.col2:checked ~ div > div > hbtn > .row1.col2 { - z-index: 100; -} - -.shed.row2.col3:checked ~ div > div > shed > .row2.col3, -.house.row2.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.shed.row2.col3:checked ~ div > div > shed > .row2.col3:after, .shed.row2.col3:checked ~ div > div > shed > .row2.col3 *:after, -.house.row2.col3:checked ~ div > div > house > .row2.col3:after, -.house.row2.col3:checked ~ div > div > house > .row2.col3 *:after { - animation: pop 0.1s linear forwards; -} -.shed.row2.col3:checked ~ div > div > shed > .row2.col3:before, .shed.row2.col3:checked ~ div > div > shed > .row2.col3 *:before, -.house.row2.col3:checked ~ div > div > house > .row2.col3:before, -.house.row2.col3:checked ~ div > div > house > .row2.col3 *:before { - animation: popup 0.1s linear forwards; -} - -.shed.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(5) { - display: none !important; -} - -.house.row2.col3:checked ~ div > div > hbtn > .row2.col2 { - z-index: 100; -} - -.house.row2.col3:checked ~ div > div > hbtn > .row2.col4 { - z-index: 100; -} - -.house.row2.col3:checked ~ div > div > hbtn > .row3.col3 { - z-index: 100; -} - -.house.row2.col3:checked ~ div > div > hbtn > .row1.col3 { - z-index: 100; -} - -.shed.row2.col4:checked ~ div > div > shed > .row2.col4, -.house.row2.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.shed.row2.col4:checked ~ div > div > shed > .row2.col4:after, .shed.row2.col4:checked ~ div > div > shed > .row2.col4 *:after, -.house.row2.col4:checked ~ div > div > house > .row2.col4:after, -.house.row2.col4:checked ~ div > div > house > .row2.col4 *:after { - animation: pop 0.1s linear forwards; -} -.shed.row2.col4:checked ~ div > div > shed > .row2.col4:before, .shed.row2.col4:checked ~ div > div > shed > .row2.col4 *:before, -.house.row2.col4:checked ~ div > div > house > .row2.col4:before, -.house.row2.col4:checked ~ div > div > house > .row2.col4 *:before { - animation: popup 0.1s linear forwards; -} - -.shed.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(5) { - display: none !important; -} - -.house.row2.col4:checked ~ div > div > hbtn > .row2.col3 { - z-index: 100; -} - -.house.row2.col4:checked ~ div > div > hbtn > .row2.col5 { - z-index: 100; -} - -.house.row2.col4:checked ~ div > div > hbtn > .row3.col4 { - z-index: 100; -} - -.house.row2.col4:checked ~ div > div > hbtn > .row1.col4 { - z-index: 100; -} - -.shed.row3.col1:checked ~ div > div > shed > .row3.col1, -.house.row3.col1:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} -.shed.row3.col1:checked ~ div > div > shed > .row3.col1:after, .shed.row3.col1:checked ~ div > div > shed > .row3.col1 *:after, -.house.row3.col1:checked ~ div > div > house > .row3.col1:after, -.house.row3.col1:checked ~ div > div > house > .row3.col1 *:after { - animation: pop 0.1s linear forwards; -} -.shed.row3.col1:checked ~ div > div > shed > .row3.col1:before, .shed.row3.col1:checked ~ div > div > shed > .row3.col1 *:before, -.house.row3.col1:checked ~ div > div > house > .row3.col1:before, -.house.row3.col1:checked ~ div > div > house > .row3.col1 *:before { - animation: popup 0.1s linear forwards; -} - -.shed.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(5) { - display: none !important; -} - -.house.row3.col1:checked ~ div > div > hbtn > .row3.col0 { - z-index: 100; -} - -.house.row3.col1:checked ~ div > div > hbtn > .row3.col2 { - z-index: 100; -} - -.house.row3.col1:checked ~ div > div > hbtn > .row4.col1 { - z-index: 100; -} - -.house.row3.col1:checked ~ div > div > hbtn > .row2.col1 { - z-index: 100; -} - -.shed.row3.col2:checked ~ div > div > shed > .row3.col2, -.house.row3.col2:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} -.shed.row3.col2:checked ~ div > div > shed > .row3.col2:after, .shed.row3.col2:checked ~ div > div > shed > .row3.col2 *:after, -.house.row3.col2:checked ~ div > div > house > .row3.col2:after, -.house.row3.col2:checked ~ div > div > house > .row3.col2 *:after { - animation: pop 0.1s linear forwards; -} -.shed.row3.col2:checked ~ div > div > shed > .row3.col2:before, .shed.row3.col2:checked ~ div > div > shed > .row3.col2 *:before, -.house.row3.col2:checked ~ div > div > house > .row3.col2:before, -.house.row3.col2:checked ~ div > div > house > .row3.col2 *:before { - animation: popup 0.1s linear forwards; -} - -.shed.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(5) { - display: none !important; -} - -.house.row3.col2:checked ~ div > div > hbtn > .row3.col1 { - z-index: 100; -} - -.house.row3.col2:checked ~ div > div > hbtn > .row3.col3 { - z-index: 100; -} - -.house.row3.col2:checked ~ div > div > hbtn > .row4.col2 { - z-index: 100; -} - -.house.row3.col2:checked ~ div > div > hbtn > .row2.col2 { - z-index: 100; -} - -.shed.row3.col3:checked ~ div > div > shed > .row3.col3, -.house.row3.col3:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} -.shed.row3.col3:checked ~ div > div > shed > .row3.col3:after, .shed.row3.col3:checked ~ div > div > shed > .row3.col3 *:after, -.house.row3.col3:checked ~ div > div > house > .row3.col3:after, -.house.row3.col3:checked ~ div > div > house > .row3.col3 *:after { - animation: pop 0.1s linear forwards; -} -.shed.row3.col3:checked ~ div > div > shed > .row3.col3:before, .shed.row3.col3:checked ~ div > div > shed > .row3.col3 *:before, -.house.row3.col3:checked ~ div > div > house > .row3.col3:before, -.house.row3.col3:checked ~ div > div > house > .row3.col3 *:before { - animation: popup 0.1s linear forwards; -} - -.shed.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(5) { - display: none !important; -} - -.house.row3.col3:checked ~ div > div > hbtn > .row3.col2 { - z-index: 100; -} - -.house.row3.col3:checked ~ div > div > hbtn > .row3.col4 { - z-index: 100; -} - -.house.row3.col3:checked ~ div > div > hbtn > .row4.col3 { - z-index: 100; -} - -.house.row3.col3:checked ~ div > div > hbtn > .row2.col3 { - z-index: 100; -} - -.shed.row3.col4:checked ~ div > div > shed > .row3.col4, -.house.row3.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.shed.row3.col4:checked ~ div > div > shed > .row3.col4:after, .shed.row3.col4:checked ~ div > div > shed > .row3.col4 *:after, -.house.row3.col4:checked ~ div > div > house > .row3.col4:after, -.house.row3.col4:checked ~ div > div > house > .row3.col4 *:after { - animation: pop 0.1s linear forwards; -} -.shed.row3.col4:checked ~ div > div > shed > .row3.col4:before, .shed.row3.col4:checked ~ div > div > shed > .row3.col4 *:before, -.house.row3.col4:checked ~ div > div > house > .row3.col4:before, -.house.row3.col4:checked ~ div > div > house > .row3.col4 *:before { - animation: popup 0.1s linear forwards; -} - -.shed.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(5) { - display: none !important; -} - -.house.row3.col4:checked ~ div > div > hbtn > .row3.col3 { - z-index: 100; -} - -.house.row3.col4:checked ~ div > div > hbtn > .row3.col5 { - z-index: 100; -} - -.house.row3.col4:checked ~ div > div > hbtn > .row4.col4 { - z-index: 100; -} - -.house.row3.col4:checked ~ div > div > hbtn > .row2.col4 { - z-index: 100; -} - -.shed.row4.col1:checked ~ div > div > shed > .row4.col1, -.house.row4.col1:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} -.shed.row4.col1:checked ~ div > div > shed > .row4.col1:after, .shed.row4.col1:checked ~ div > div > shed > .row4.col1 *:after, -.house.row4.col1:checked ~ div > div > house > .row4.col1:after, -.house.row4.col1:checked ~ div > div > house > .row4.col1 *:after { - animation: pop 0.1s linear forwards; -} -.shed.row4.col1:checked ~ div > div > shed > .row4.col1:before, .shed.row4.col1:checked ~ div > div > shed > .row4.col1 *:before, -.house.row4.col1:checked ~ div > div > house > .row4.col1:before, -.house.row4.col1:checked ~ div > div > house > .row4.col1 *:before { - animation: popup 0.1s linear forwards; -} - -.shed.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(5) { - display: none !important; -} - -.house.row4.col1:checked ~ div > div > hbtn > .row4.col0 { - z-index: 100; -} - -.house.row4.col1:checked ~ div > div > hbtn > .row4.col2 { - z-index: 100; -} - -.house.row4.col1:checked ~ div > div > hbtn > .row5.col1 { - z-index: 100; -} - -.house.row4.col1:checked ~ div > div > hbtn > .row3.col1 { - z-index: 100; -} - -.shed.row4.col2:checked ~ div > div > shed > .row4.col2, -.house.row4.col2:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} -.shed.row4.col2:checked ~ div > div > shed > .row4.col2:after, .shed.row4.col2:checked ~ div > div > shed > .row4.col2 *:after, -.house.row4.col2:checked ~ div > div > house > .row4.col2:after, -.house.row4.col2:checked ~ div > div > house > .row4.col2 *:after { - animation: pop 0.1s linear forwards; -} -.shed.row4.col2:checked ~ div > div > shed > .row4.col2:before, .shed.row4.col2:checked ~ div > div > shed > .row4.col2 *:before, -.house.row4.col2:checked ~ div > div > house > .row4.col2:before, -.house.row4.col2:checked ~ div > div > house > .row4.col2 *:before { - animation: popup 0.1s linear forwards; -} - -.shed.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(5) { - display: none !important; -} - -.house.row4.col2:checked ~ div > div > hbtn > .row4.col1 { - z-index: 100; -} - -.house.row4.col2:checked ~ div > div > hbtn > .row4.col3 { - z-index: 100; -} - -.house.row4.col2:checked ~ div > div > hbtn > .row5.col2 { - z-index: 100; -} - -.house.row4.col2:checked ~ div > div > hbtn > .row3.col2 { - z-index: 100; -} - -.shed.row4.col3:checked ~ div > div > shed > .row4.col3, -.house.row4.col3:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} -.shed.row4.col3:checked ~ div > div > shed > .row4.col3:after, .shed.row4.col3:checked ~ div > div > shed > .row4.col3 *:after, -.house.row4.col3:checked ~ div > div > house > .row4.col3:after, -.house.row4.col3:checked ~ div > div > house > .row4.col3 *:after { - animation: pop 0.1s linear forwards; -} -.shed.row4.col3:checked ~ div > div > shed > .row4.col3:before, .shed.row4.col3:checked ~ div > div > shed > .row4.col3 *:before, -.house.row4.col3:checked ~ div > div > house > .row4.col3:before, -.house.row4.col3:checked ~ div > div > house > .row4.col3 *:before { - animation: popup 0.1s linear forwards; -} - -.shed.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(5) { - display: none !important; -} - -.house.row4.col3:checked ~ div > div > hbtn > .row4.col2 { - z-index: 100; -} - -.house.row4.col3:checked ~ div > div > hbtn > .row4.col4 { - z-index: 100; -} - -.house.row4.col3:checked ~ div > div > hbtn > .row5.col3 { - z-index: 100; -} - -.house.row4.col3:checked ~ div > div > hbtn > .row3.col3 { - z-index: 100; -} - -.shed.row4.col4:checked ~ div > div > shed > .row4.col4, -.house.row4.col4:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} -.shed.row4.col4:checked ~ div > div > shed > .row4.col4:after, .shed.row4.col4:checked ~ div > div > shed > .row4.col4 *:after, -.house.row4.col4:checked ~ div > div > house > .row4.col4:after, -.house.row4.col4:checked ~ div > div > house > .row4.col4 *:after { - animation: pop 0.1s linear forwards; -} -.shed.row4.col4:checked ~ div > div > shed > .row4.col4:before, .shed.row4.col4:checked ~ div > div > shed > .row4.col4 *:before, -.house.row4.col4:checked ~ div > div > house > .row4.col4:before, -.house.row4.col4:checked ~ div > div > house > .row4.col4 *:before { - animation: popup 0.1s linear forwards; -} - -.shed.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(5) { - display: none !important; -} - -.house.row4.col4:checked ~ div > div > hbtn > .row4.col3 { - z-index: 100; -} - -.house.row4.col4:checked ~ div > div > hbtn > .row4.col5 { - z-index: 100; -} - -.house.row4.col4:checked ~ div > div > hbtn > .row5.col4 { - z-index: 100; -} - -.house.row4.col4:checked ~ div > div > hbtn > .row3.col4 { - z-index: 100; -} - -.hs.row1.col1:checked ~ div > div > shed > .row1.col1 { - z-index: 300; -} - -.hs.row1.col1:checked ~ div > div > house > .row1.col1 { - background: #bc2f2f; - z-index: 300; - color: #bc2f2f; -} - -.hs.shed.row1.col1:checked ~ div > div > house > .row1.col1 { - background: #bc502f; - color: #bc502f; -} - -.hs.row1.col2:checked ~ div > div > shed > .row1.col2 { - z-index: 300; -} - -.hs.row1.col2:checked ~ div > div > house > .row1.col2 { - background: #bc2f2f; - z-index: 300; - color: #bc2f2f; -} - -.hs.shed.row1.col2:checked ~ div > div > house > .row1.col2 { - background: #bc502f; - color: #bc502f; -} - -.hs.row1.col3:checked ~ div > div > shed > .row1.col3 { - z-index: 300; -} - -.hs.row1.col3:checked ~ div > div > house > .row1.col3 { - background: #bc2f2f; - z-index: 300; - color: #bc2f2f; -} - -.hs.shed.row1.col3:checked ~ div > div > house > .row1.col3 { - background: #bc502f; - color: #bc502f; -} - -.hs.row1.col4:checked ~ div > div > shed > .row1.col4 { - z-index: 300; -} - -.hs.row1.col4:checked ~ div > div > house > .row1.col4 { - background: #bc2f2f; - z-index: 300; - color: #bc2f2f; -} - -.hs.shed.row1.col4:checked ~ div > div > house > .row1.col4 { - background: #bc502f; - color: #bc502f; -} - -.hs.row2.col1:checked ~ div > div > shed > .row2.col1 { - z-index: 300; -} - -.hs.row2.col1:checked ~ div > div > house > .row2.col1 { - background: #bc2f2f; - z-index: 300; - color: #bc2f2f; -} - -.hs.shed.row2.col1:checked ~ div > div > house > .row2.col1 { - background: #bc502f; - color: #bc502f; -} - -.hs.row2.col2:checked ~ div > div > shed > .row2.col2 { - z-index: 300; -} - -.hs.row2.col2:checked ~ div > div > house > .row2.col2 { - background: #bc2f2f; - z-index: 300; - color: #bc2f2f; -} - -.hs.shed.row2.col2:checked ~ div > div > house > .row2.col2 { - background: #bc502f; - color: #bc502f; -} - -.hs.row2.col3:checked ~ div > div > shed > .row2.col3 { - z-index: 300; -} - -.hs.row2.col3:checked ~ div > div > house > .row2.col3 { - background: #bc2f2f; - z-index: 300; - color: #bc2f2f; -} - -.hs.shed.row2.col3:checked ~ div > div > house > .row2.col3 { - background: #bc502f; - color: #bc502f; -} - -.hs.row2.col4:checked ~ div > div > shed > .row2.col4 { - z-index: 300; -} - -.hs.row2.col4:checked ~ div > div > house > .row2.col4 { - background: #bc2f2f; - z-index: 300; - color: #bc2f2f; -} - -.hs.shed.row2.col4:checked ~ div > div > house > .row2.col4 { - background: #bc502f; - color: #bc502f; -} - -.hs.row3.col1:checked ~ div > div > shed > .row3.col1 { - z-index: 300; -} - -.hs.row3.col1:checked ~ div > div > house > .row3.col1 { - background: #bc2f2f; - z-index: 300; - color: #bc2f2f; -} - -.hs.shed.row3.col1:checked ~ div > div > house > .row3.col1 { - background: #bc502f; - color: #bc502f; -} - -.hs.row3.col2:checked ~ div > div > shed > .row3.col2 { - z-index: 300; -} - -.hs.row3.col2:checked ~ div > div > house > .row3.col2 { - background: #bc2f2f; - z-index: 300; - color: #bc2f2f; -} - -.hs.shed.row3.col2:checked ~ div > div > house > .row3.col2 { - background: #bc502f; - color: #bc502f; -} - -.hs.row3.col3:checked ~ div > div > shed > .row3.col3 { - z-index: 300; -} - -.hs.row3.col3:checked ~ div > div > house > .row3.col3 { - background: #bc2f2f; - z-index: 300; - color: #bc2f2f; -} - -.hs.shed.row3.col3:checked ~ div > div > house > .row3.col3 { - background: #bc502f; - color: #bc502f; -} - -.hs.row3.col4:checked ~ div > div > shed > .row3.col4 { - z-index: 300; -} - -.hs.row3.col4:checked ~ div > div > house > .row3.col4 { - background: #bc2f2f; - z-index: 300; - color: #bc2f2f; -} - -.hs.shed.row3.col4:checked ~ div > div > house > .row3.col4 { - background: #bc502f; - color: #bc502f; -} - -.hs.row4.col1:checked ~ div > div > shed > .row4.col1 { - z-index: 300; -} - -.hs.row4.col1:checked ~ div > div > house > .row4.col1 { - background: #bc2f2f; - z-index: 300; - color: #bc2f2f; -} - -.hs.shed.row4.col1:checked ~ div > div > house > .row4.col1 { - background: #bc502f; - color: #bc502f; -} - -.hs.row4.col2:checked ~ div > div > shed > .row4.col2 { - z-index: 300; -} - -.hs.row4.col2:checked ~ div > div > house > .row4.col2 { - background: #bc2f2f; - z-index: 300; - color: #bc2f2f; -} - -.hs.shed.row4.col2:checked ~ div > div > house > .row4.col2 { - background: #bc502f; - color: #bc502f; -} - -.hs.row4.col3:checked ~ div > div > shed > .row4.col3 { - z-index: 300; -} - -.hs.row4.col3:checked ~ div > div > house > .row4.col3 { - background: #bc2f2f; - z-index: 300; - color: #bc2f2f; -} - -.hs.shed.row4.col3:checked ~ div > div > house > .row4.col3 { - background: #bc502f; - color: #bc502f; -} - -.hs.row4.col4:checked ~ div > div > shed > .row4.col4 { - z-index: 300; -} - -.hs.row4.col4:checked ~ div > div > house > .row4.col4 { - background: #bc2f2f; - z-index: 300; - color: #bc2f2f; -} - -.hs.shed.row4.col4:checked ~ div > div > house > .row4.col4 { - background: #bc502f; - color: #bc502f; -} - -.house.row0.col1:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col0, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col0, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col-1, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col0, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col-2, -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col-1, -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} - -.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col-2, -.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} - -.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ div > div > shed > .row-1.col-2, -.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} - -.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} - -.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col0, -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col-2 { - opacity: 0; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-2, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-2, -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-1, -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col0, -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col1, -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} - -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ div > div > shed > .row0.col-1, -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ div > div > shed > .row-1.col-2 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row-1.col0, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col-1, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col-2 { - opacity: 0; -} - -.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-2.col-1:checked ~ div > div > shed > .row-2.col-1, -.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-2.col-1:checked ~ div > div > shed > .row-2.col-2 { - opacity: 0; -} - -.house.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-2.col3:checked ~ div > div > shed > .row-2.col4, -.house.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-2.col3:checked ~ div > div > shed > .row-2.col3 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row1.col-2, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row-1.col-2, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} - -.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-2.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col-2, -.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-2.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col-2, -.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-2.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-2.col-2 { - opacity: 0; -} - -.hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row1.col-2, -.hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} - -.hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} - -.house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} - -.hs.row1.col-1:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-1, -.hs.row1.col-1:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} - -.hs.row1.col-2:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-2, -.hs.row1.col-2:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} - -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-2:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-1, -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-2:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col2, -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col2, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col3, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col4, -.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col3, -.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4, -.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col3, -.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3, -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col4, -.hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col4, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4, -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4, -.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col4, -.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4, -.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col-1, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-1, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} - -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col-2, -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col2, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > shed > .row0.col3, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col3, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col4, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row0.col3, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .house.row-1.col0:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .house.row-1.col0:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .house.row-1.col0:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col0:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col0:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.house.row1.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3, -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col2, -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3, -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4, -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col3, -.hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col1, -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col4, -.hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col2, -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.house.row2.col1:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-3 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row0.col-1, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col2, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col0, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-1, -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col3, -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1, -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1, -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col2, -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ div > div > shed > .row-1.col-2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-2, -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row-1.col-1, -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col-2, -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col-1, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col-2, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col-2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col-2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.house.row0.col1:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col0, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col0, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col-1, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col0, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col-2, -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col-1, -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} - -.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col-2, -.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} - -.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ div > div > house > .row-1.col-2, -.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} - -.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} - -.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col0, -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col-2 { - opacity: 1; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-2, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-2, -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-1, -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col0, -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col1, -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} - -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ div > div > house > .row0.col-1, -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ div > div > house > .row-1.col-2 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row-1.col0, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col-1, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col-2 { - opacity: 1; -} - -.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-2.col-1:checked ~ div > div > house > .row-2.col-1, -.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-2.col-1:checked ~ div > div > house > .row-2.col-2 { - opacity: 1; -} - -.house.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-2.col3:checked ~ div > div > house > .row-2.col4, -.house.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-2.col3:checked ~ div > div > house > .row-2.col3 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row1.col-2, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row-1.col-2, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} - -.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-2.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col-2, -.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-2.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col-2, -.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-2.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-2.col-2 { - opacity: 1; -} - -.hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row1.col-2, -.hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} - -.hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} - -.house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} - -.hs.row1.col-1:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-1, -.hs.row1.col-1:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} - -.hs.row1.col-2:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-2, -.hs.row1.col-2:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} - -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-2:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-1, -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-2:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col2, -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col2, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col3, -.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col4, -.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3, -.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4, -.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col3, -.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3, -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col4, -.hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col4, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4, -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4, -.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col4, -.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4, -.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col-1, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-1, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} - -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col-2, -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col2, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > house > .row0.col3, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col3, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col4, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > house > .row0.col3, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .house.row-1.col0:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .house.row-1.col0:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .house.row-1.col0:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col0:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col0:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.house.row1.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3, -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col2, -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3, -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4, -.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col3, -.hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col1, -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col4, -.hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col2, -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.house.row2.col1:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-3 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row0.col-1, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col2, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col0, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-1, -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col3, -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1, -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1, -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col2, -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ div > div > house > .row-1.col-2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-2, -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row-1.col-1, -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col-2, -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col-1, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col-2, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col-2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col3, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col-2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.house.row1.col1:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col0, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row2.col0, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row2.col-1, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col0, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row2.col-2, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col-1, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} - -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col-2, -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} - -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ div > div > shed > .row0.col-2, -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} - -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} - -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col0, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-2, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-1 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-2 { - opacity: 0; -} - -.hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-1 { - opacity: 0; -} - -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-2, -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-1, -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col0, -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col1, -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-1 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-2 { - opacity: 0; -} - -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} - -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-2 { - opacity: 0; -} - -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ div > div > shed > .row1.col-1, -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row0.col0, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col-1, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} - -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col-1, -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col-2 { - opacity: 0; -} - -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row2.col-2, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row0.col-2, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} - -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-2, -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col-2, -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row-1.col-2 { - opacity: 0; -} - -.hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row2.col-2, -.hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-1, -.hs.row2.col-1:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.hs.row2.col-2:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-2, -.hs.row2.col-2:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-2:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-1, -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-2:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col2, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col2, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col3, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col4, -.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3, -.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4, -.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col3, -.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3, -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4, -.hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col4, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col4, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4, -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4, -.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col4, -.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4, -.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col-1, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-1, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row2.col-2, -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-2 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col2, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col3, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col3, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col4, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > shed > .row1.col3, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row0.col0:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row0.col0:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row0.col0:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col0:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col0:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.house.row2.col1:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3, -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col2, -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4, -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col3, -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4, -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col3, -.hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col1, -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col4, -.hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col2, -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.house.row3.col1:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-3 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row1.col-1, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col0, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col-1, -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col3, -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1, -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1, -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col2, -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col-2, -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row0.col-1, -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col-2, -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-1, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-2, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.house.row1.col1:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col0, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row2.col0, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row2.col-1, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col0, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row2.col-2, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col-1, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} - -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col-2, -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} - -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ div > div > house > .row0.col-2, -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} - -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} - -.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col0, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-2, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-1 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-2 { - opacity: 1; -} - -.hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-1 { - opacity: 1; -} - -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-2, -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-1, -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col0, -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col1, -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-1 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-2 { - opacity: 1; -} - -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} - -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-2 { - opacity: 1; -} - -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ div > div > house > .row1.col-1, -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row0.col0, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col-1, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} - -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col-1, -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col-2 { - opacity: 1; -} - -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4, -.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row2.col-2, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row0.col-2, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} - -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-2, -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col-2, -.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row-1.col-2 { - opacity: 1; -} - -.hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row2.col-2, -.hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-1, -.hs.row2.col-1:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.hs.row2.col-2:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-2, -.hs.row2.col-2:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-2:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-1, -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-2:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col2, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col2, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col3, -.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col4, -.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3, -.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4, -.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col3, -.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3, -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4, -.hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col4, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4, -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4, -.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col4, -.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4, -.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col-1, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-1, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row2.col-2, -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-2 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col2, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col3, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col3, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col4, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > house > .row1.col3, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row0.col0:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row0.col0:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row0.col0:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col0:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col0:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.house.row2.col1:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col3, -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col2, -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4, -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col3, -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4, -.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col3, -.hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col1, -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col4, -.hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col2, -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.house.row3.col1:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-3 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row1.col-1, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col0, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col-1, -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col3, -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1, -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1, -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col2, -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col-2, -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row0.col-1, -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col-2, -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-1, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-2, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col3, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.house.row2.col1:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row4.col0, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row3.col0, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row3.col-1, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row4.col0, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row3.col-2, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row4.col-1, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row4.col-2, -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ div > div > shed > .row1.col-2, -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col0, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-2, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col0 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-1 { - opacity: 0; -} - -.hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-2 { - opacity: 0; -} - -.hs.row5.col-2:checked ~ .hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-1 { - opacity: 0; -} - -.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col0 { - opacity: 0; -} - -.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col1 { - opacity: 0; -} - -.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-2, -.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-1, -.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col0 { - opacity: 0; -} - -.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col1 { - opacity: 0; -} - -.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col0, -.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col1, -.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-1 { - opacity: 0; -} - -.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-2 { - opacity: 0; -} - -.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row4.col-2 { - opacity: 0; -} - -.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-2:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} - -.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-2 { - opacity: 0; -} - -.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-2:checked ~ .hs.row4.col0:checked ~ .house.row4.col1:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} - -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ div > div > shed > .row2.col-1, -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row1.col0, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col-1, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} - -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col-1, -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} - -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row3.col-2, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row1.col-2, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} - -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col-2, -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col-2, -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row0.col-2 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row3.col-2, -.hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row4.col-2 { - opacity: 0; -} - -.hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row4.col-1 { - opacity: 0; -} - -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row3.col-1, -.hs.row3.col-1:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row4.col-1 { - opacity: 0; -} - -.hs.row3.col-2:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row3.col-2, -.hs.row3.col-2:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row4.col-2 { - opacity: 0; -} - -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-2:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row4.col-1, -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-2:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col3, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col4, -.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col3, -.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4, -.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col3, -.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3, -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col4, -.hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row4.col4, -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4, -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col4, -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4, -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4, -.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4, -.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4, -.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row4.col-1, -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-1, -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row4.col-2 { - opacity: 0; -} - -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row3.col-2, -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col2, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ div > div > shed > .row2.col3, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col3, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col4, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col3, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row1.col0:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row1.col0:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row1.col0:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col0:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col0:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row5.col4 { - opacity: 0; -} - -.house.row3.col1:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col3, -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row4.col2, -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col4, -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row4.col3, -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row4.col4, -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row4.col3, -.hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row5.col2 { - opacity: 0; -} - -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row5.col1, -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row5.col3 { - opacity: 0; -} - -.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row5.col4 { - opacity: 0; -} - -.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col2:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row4.col4, -.hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row5.col3 { - opacity: 0; -} - -.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row5.col2, -.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row5.col4 { - opacity: 0; -} - -.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row5.col1 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col4 { - opacity: 0; -} - -.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col3 { - opacity: 0; -} - -.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col2 { - opacity: 0; -} - -.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col1 { - opacity: 0; -} - -.house.row4.col1:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-3 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row2.col-1, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col0, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col4, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col-1, -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col3, -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row2.col-1, -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1, -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col2, -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col-2, -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row1.col-1, -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col-2, -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col-1, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col-2, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.house.row2.col1:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row4.col0, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row3.col0, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row3.col-1, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row4.col0, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row3.col-2, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row4.col-1, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row4.col-2, -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ div > div > house > .row1.col-2, -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col0, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-2, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col0 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-1 { - opacity: 1; -} - -.hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-2 { - opacity: 1; -} - -.hs.row5.col-2:checked ~ .hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-1 { - opacity: 1; -} - -.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col0 { - opacity: 1; -} - -.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col1 { - opacity: 1; -} - -.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-2, -.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-1, -.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col0 { - opacity: 1; -} - -.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col1 { - opacity: 1; -} - -.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col0, -.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col1, -.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-1 { - opacity: 1; -} - -.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-2 { - opacity: 1; -} - -.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row4.col-2 { - opacity: 1; -} - -.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-2:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} - -.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-2 { - opacity: 1; -} - -.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-2:checked ~ .hs.row4.col0:checked ~ .house.row4.col1:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} - -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ div > div > house > .row2.col-1, -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row1.col0, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col-1, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} - -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col-1, -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} - -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, -.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row3.col-2, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row1.col-2, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} - -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col-2, -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col-2, -.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row0.col-2 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row3.col-2, -.hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row4.col-2 { - opacity: 1; -} - -.hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row4.col-1 { - opacity: 1; -} - -.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row3.col-1, -.hs.row3.col-1:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row4.col-1 { - opacity: 1; -} - -.hs.row3.col-2:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row3.col-2, -.hs.row3.col-2:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row4.col-2 { - opacity: 1; -} - -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-2:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row4.col-1, -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-2:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col3, -.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col4, -.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col3, -.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4, -.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col3, -.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3, -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col4, -.hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row4.col4, -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4, -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4, -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4, -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4, -.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4, -.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4, -.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row4.col-1, -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-1, -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row4.col-2 { - opacity: 1; -} - -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row3.col-2, -.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col2, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ div > div > house > .row2.col3, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col3, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col4, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col3, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row1.col0:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row1.col0:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row1.col0:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col0:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col0:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row5.col4 { - opacity: 1; -} - -.house.row3.col1:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col3, -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row4.col2, -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col4, -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row4.col3, -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row4.col4, -.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row4.col3, -.hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row5.col2 { - opacity: 1; -} - -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row5.col1, -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row5.col3 { - opacity: 1; -} - -.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row5.col4 { - opacity: 1; -} - -.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col2:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row4.col4, -.hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row5.col3 { - opacity: 1; -} - -.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row5.col2, -.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row5.col4 { - opacity: 1; -} - -.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row5.col1 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col4 { - opacity: 1; -} - -.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col3 { - opacity: 1; -} - -.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col2 { - opacity: 1; -} - -.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col1 { - opacity: 1; -} - -.house.row4.col1:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-3 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row2.col-1, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col0, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col4, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col-1, -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col3, -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row2.col-1, -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1, -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col2, -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col-2, -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ div > div > house > .row1.col-1, -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col-2, -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col-1, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col-2, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col3, -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.house.row0.col2:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col1, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col1, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col0, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col1, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col-1, -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col0, -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col-1, -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col-1, -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1, -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col-1, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col-1, -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col0, -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col1, -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col2, -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col0, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col1, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col0, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} - -.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-2.col0:checked ~ div > div > shed > .row-2.col0, -.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-2.col0:checked ~ div > div > shed > .row-2.col-1 { - opacity: 0; -} - -.house.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-2.col4:checked ~ div > div > shed > .row-2.col5, -.house.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-2.col4:checked ~ div > div > shed > .row-2.col4 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-1, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col-1, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} - -.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-2.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col-1, -.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-2.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col-1, -.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-2.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-2.col-1 { - opacity: 0; -} - -.hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-1, -.hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col0, -.hs.row1.col0:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row1.col-1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col-1, -.hs.row1.col-1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col0, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col3, -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col3, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col4, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col5, -.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4, -.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5, -.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col4, -.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col4, -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col5, -.hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col5, -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5, -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col5, -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5, -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col5, -.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col5, -.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col5, -.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col0, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col0, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col-1, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col3, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > shed > .row0.col4, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col4, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col5, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row0.col4, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.house.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3, -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4, -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5, -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col4, -.hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col2, -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col5, -.hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3, -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.house.row2.col2:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col-2 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row0.col0, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col3, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col1, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col0, -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col4, -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0, -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0, -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col3, -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col-1, -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row-1.col0, -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1, -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col0, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col-1, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.house.row0.col2:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col1, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col1, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col0, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col1, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col-1, -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col0, -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col-1, -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col-1, -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} - -.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1, -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col-1, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col-1, -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col0, -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col1, -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col2, -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col0, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col1, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col0, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} - -.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-2.col0:checked ~ div > div > house > .row-2.col0, -.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-2.col0:checked ~ div > div > house > .row-2.col-1 { - opacity: 1; -} - -.house.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-2.col4:checked ~ div > div > house > .row-2.col5, -.house.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-2.col4:checked ~ div > div > house > .row-2.col4 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-1, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col-1, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} - -.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-2.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col-1, -.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-2.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col-1, -.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-2.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-2.col-1 { - opacity: 1; -} - -.hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-1, -.hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col0, -.hs.row1.col0:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row1.col-1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col-1, -.hs.row1.col-1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col0, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col3, -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col3, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col4, -.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col5, -.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4, -.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5, -.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col4, -.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col4, -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col5, -.hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col5, -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5, -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col5, -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5, -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col5, -.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col5, -.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col5, -.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col0, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col0, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col-1, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col3, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > house > .row0.col4, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col4, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col5, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > house > .row0.col4, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .house.row-1.col1:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .house.row-1.col1:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .house.row-1.col1:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.house.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3, -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4, -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5, -.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col4, -.hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col2, -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col5, -.hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3, -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.house.row2.col2:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col-2 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row0.col0, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col3, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col1, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col0, -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col4, -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0, -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0, -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col3, -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col-1, -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ div > div > house > .row-1.col0, -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1, -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col0, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col-1, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.house.row1.col2:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col1, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row2.col1, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row2.col0, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col1, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row2.col-1, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col0, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col-1, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col-1, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col-1, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col-1 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col-1, -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col0, -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col1, -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col2, -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col-1 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col-1 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col0, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col1, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col0, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} - -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col0, -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} - -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-1, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col-1, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} - -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col-1, -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col-1, -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row-1.col-1 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-1, -.hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col0, -.hs.row2.col0:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row2.col-1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col-1, -.hs.row2.col-1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col0, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col3, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col3, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col4, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col5, -.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4, -.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5, -.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col4, -.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4, -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5, -.hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col5, -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col5, -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5, -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5, -.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col5, -.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5, -.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col0, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col0, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row2.col-1, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col-1 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col3, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col4, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col4, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col5, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > shed > .row1.col4, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.house.row2.col2:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4, -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col3, -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5, -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4, -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5, -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col4, -.hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col2, -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col5, -.hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3, -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.house.row3.col2:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row0.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col-2 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col0, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col1, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col0, -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col4, -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0, -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0, -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col3, -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col-1, -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row0.col0, -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1, -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col0, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col-1, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.house.row1.col2:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col1, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row2.col1, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row2.col0, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col1, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row2.col-1, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col0, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col-1, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col-1, -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col-1, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col-1 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col-1, -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col0, -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col1, -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col2, -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col-1 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col-1 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col0, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col1, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col0, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} - -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col0, -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} - -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5, -.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-1, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col-1, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} - -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col-1, -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col-1, -.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row-1.col-1 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-1, -.hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col0, -.hs.row2.col0:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row2.col-1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col-1, -.hs.row2.col-1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col0, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col3, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col3, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col4, -.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col5, -.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4, -.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5, -.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col4, -.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4, -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5, -.hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col5, -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col5, -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5, -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5, -.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col5, -.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5, -.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col0, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col0, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row2.col-1, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col-1 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col3, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col4, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col4, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col5, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > house > .row1.col4, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.house.row2.col2:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4, -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col3, -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5, -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4, -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5, -.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col4, -.hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col2, -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col5, -.hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3, -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.house.row3.col2:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row0.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col-2 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col0, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col1, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col0, -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col4, -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0, -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0, -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3, -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col-1, -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ div > div > house > .row0.col0, -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1, -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col0, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col-1, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.house.row2.col2:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row4.col1, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row3.col1, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row3.col0, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row4.col1, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row3.col-1, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row4.col0, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row4.col-1, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col-1, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-1, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col1 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col0 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col-1 { - opacity: 0; -} - -.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col0 { - opacity: 0; -} - -.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col1 { - opacity: 0; -} - -.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col2 { - opacity: 0; -} - -.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col-1, -.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col0, -.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col1 { - opacity: 0; -} - -.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col2 { - opacity: 0; -} - -.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col1, -.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col2, -.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col0 { - opacity: 0; -} - -.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col-1 { - opacity: 0; -} - -.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row4.col-1 { - opacity: 0; -} - -.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col-1 { - opacity: 0; -} - -.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col1:checked ~ .house.row4.col2:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row2.col0, -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col1, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col0, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} - -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col0, -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} - -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row3.col-1, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col-1, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} - -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col-1, -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col-1, -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row0.col-1 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row3.col-1, -.hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row4.col-1 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col0, -.hs.row3.col0:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row3.col-1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col-1, -.hs.row3.col-1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col-1 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col0, -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col3, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col3, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col4, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col5, -.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4, -.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5, -.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col4, -.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col4, -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col5, -.hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row4.col5, -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5, -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col5, -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5, -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5, -.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5, -.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5, -.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row4.col0, -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col0, -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row4.col-1 { - opacity: 0; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row3.col-1, -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col-1 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col3, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ div > div > shed > .row2.col4, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col4, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col5, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col4, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row5.col5 { - opacity: 0; -} - -.house.row3.col2:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col4, -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row4.col3, -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col5, -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row4.col4, -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row4.col5, -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row4.col4, -.hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row5.col3 { - opacity: 0; -} - -.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row5.col2, -.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row5.col4 { - opacity: 0; -} - -.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row5.col5 { - opacity: 0; -} - -.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col3:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row4.col5, -.hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col4 { - opacity: 0; -} - -.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col3, -.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col5 { - opacity: 0; -} - -.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col2 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col5 { - opacity: 0; -} - -.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col4 { - opacity: 0; -} - -.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col3 { - opacity: 0; -} - -.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col2 { - opacity: 0; -} - -.house.row4.col2:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row1.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col-2 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col0, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col1, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col5, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col0, -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col4, -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col0, -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0, -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3, -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col-1, -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row1.col0, -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1, -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col0, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col-1, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.house.row2.col2:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row4.col1, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row3.col1, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row3.col0, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row4.col1, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row3.col-1, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row4.col0, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row4.col-1, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col-1, -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-1, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col1 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col0 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col-1 { - opacity: 1; -} - -.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col0 { - opacity: 1; -} - -.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col1 { - opacity: 1; -} - -.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col2 { - opacity: 1; -} - -.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col-1, -.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col0, -.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col1 { - opacity: 1; -} - -.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col2 { - opacity: 1; -} - -.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col1, -.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col2, -.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col0 { - opacity: 1; -} - -.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col-1 { - opacity: 1; -} - -.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row4.col-1 { - opacity: 1; -} - -.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col-1 { - opacity: 1; -} - -.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col1:checked ~ .house.row4.col2:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ div > div > house > .row2.col0, -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col1, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col0, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} - -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col0, -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} - -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5, -.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row3.col-1, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col-1, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} - -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col-1, -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col-1, -.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row0.col-1 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row3.col-1, -.hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row4.col-1 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col0, -.hs.row3.col0:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row3.col-1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col-1, -.hs.row3.col-1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col-1 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col0, -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col4, -.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col5, -.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4, -.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5, -.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col4, -.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col4, -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col5, -.hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row4.col5, -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5, -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ div > div > house > .row3.col5, -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5, -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5, -.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5, -.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5, -.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row4.col0, -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col0, -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row4.col-1 { - opacity: 1; -} - -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row3.col-1, -.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col-1 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col3, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ div > div > house > .row2.col4, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col4, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col5, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col4, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row5.col5 { - opacity: 1; -} - -.house.row3.col2:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col4, -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row4.col3, -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col5, -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row4.col4, -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row4.col5, -.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row4.col4, -.hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row5.col3 { - opacity: 1; -} - -.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row5.col2, -.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row5.col4 { - opacity: 1; -} - -.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row5.col5 { - opacity: 1; -} - -.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col3:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row4.col5, -.hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col4 { - opacity: 1; -} - -.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col3, -.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col5 { - opacity: 1; -} - -.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col2 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col5 { - opacity: 1; -} - -.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col4 { - opacity: 1; -} - -.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col3 { - opacity: 1; -} - -.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col2 { - opacity: 1; -} - -.house.row4.col2:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row1.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col-2 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col0, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col1, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col5, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col0, -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col4, -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col0, -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0, -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3, -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col-1, -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ div > div > house > .row1.col0, -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1, -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col0, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col-1, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4, -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.house.row0.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col2, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col2, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col1, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col2, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col0, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col1, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col0, -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col0, -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col0, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col0, -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col1, -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col2, -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col3, -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col2, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col1, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} - -.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-2.col1:checked ~ div > div > shed > .row-2.col1, -.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-2.col1:checked ~ div > div > shed > .row-2.col0 { - opacity: 0; -} - -.house.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-2.col5:checked ~ div > div > shed > .row-2.col6, -.house.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-2.col5:checked ~ div > div > shed > .row-2.col5 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col0, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col0, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} - -.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-2.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col0, -.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-2.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col0, -.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-2.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-2.col0 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col0, -.hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col1, -.hs.row1.col1:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row1.col0:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col0, -.hs.row1.col0:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col1, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col4, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col4, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col5, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col6, -.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5, -.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6, -.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col5, -.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col5, -.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col6, -.hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col6, -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6, -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col6, -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} - -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6, -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col6, -.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col6, -.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col6, -.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col1, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col1, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col0, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col4, -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > shed > .row0.col5, -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col5, -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col6, -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row0.col5, -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} - -.hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} -.hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.house.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4, -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5, -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6, -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col5, -.hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3, -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col6, -.hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4, -.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.house.row2.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col-1 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col1, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col2, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col3, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col1, -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col5, -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1, -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1, -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col4, -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col0, -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col1, -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0, -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col1, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col0, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.house.row0.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col2, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col2, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col1, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col2, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col0, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col1, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col0, -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col0, -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col0, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col0, -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col1, -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col2, -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col3, -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col2, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col1, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} - -.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-2.col1:checked ~ div > div > house > .row-2.col1, -.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-2.col1:checked ~ div > div > house > .row-2.col0 { - opacity: 1; -} - -.house.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-2.col5:checked ~ div > div > house > .row-2.col6, -.house.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-2.col5:checked ~ div > div > house > .row-2.col5 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col0, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col0, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} - -.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-2.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col0, -.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-2.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col0, -.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-2.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-2.col0 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col0, -.hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col1, -.hs.row1.col1:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row1.col0:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col0, -.hs.row1.col0:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col1, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col4, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col4, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col5, -.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col6, -.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5, -.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6, -.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col5, -.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col5, -.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col6, -.hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col6, -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6, -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col6, -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} - -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6, -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col6, -.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col6, -.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col6, -.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col1, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col1, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col0, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col4, -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > house > .row0.col5, -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col5, -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col6, -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > house > .row0.col5, -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col2:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col2:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col2:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} - -.hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} -.hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.house.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4, -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5, -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6, -.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col5, -.hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3, -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col6, -.hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4, -.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.house.row2.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col-1 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col1, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col2, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col3, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col1, -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col5, -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1, -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1, -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col4, -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col0, -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col1, -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0, -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col1, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col0, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col5, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.house.row1.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col2, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row2.col2, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row2.col1, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col2, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row2.col0, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col1, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col0, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col0, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col0, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col0, -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col1, -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col2, -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col3, -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col1, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} - -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col1, -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} - -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col0, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col0, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col0, -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col0, -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row-1.col0 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col0, -.hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col1, -.hs.row2.col1:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row2.col0:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col0, -.hs.row2.col0:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col4, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col4, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col5, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col6, -.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5, -.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6, -.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col5, -.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5, -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6, -.hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col6, -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col6, -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6, -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6, -.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col6, -.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6, -.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col1, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col1, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row2.col0, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col4, -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col5, -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col5, -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col6, -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > shed > .row1.col5, -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row4.col6 { - opacity: 0; -} - -.house.row2.col3:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5, -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4, -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6, -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5, -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6, -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col5, -.hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3, -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col6 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col6, -.hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col4, -.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col6 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col6 { - opacity: 0; -} - -.hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.house.row3.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col-1 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col1, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col2, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col1, -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col5, -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1, -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1, -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4, -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col0, -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col1, -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0, -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col1, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col0, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.house.row1.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col2, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row2.col2, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row2.col1, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col2, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row2.col0, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col1, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col0, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col0, -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col0, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col0, -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col1, -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col2, -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col3, -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col1, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} - -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col1, -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} - -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6, -.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col0, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col0, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col0, -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col0, -.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row-1.col0 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col0, -.hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col1, -.hs.row2.col1:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row2.col0:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col0, -.hs.row2.col0:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col4, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col4, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col5, -.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col6, -.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5, -.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6, -.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col5, -.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5, -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6, -.hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col6, -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col6, -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6, -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6, -.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col6, -.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6, -.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col1, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col1, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row2.col0, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col4, -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col5, -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col5, -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col6, -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > house > .row1.col5, -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row4.col6 { - opacity: 1; -} - -.house.row2.col3:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5, -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4, -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6, -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5, -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6, -.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col5, -.hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3, -.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col6 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col6, -.hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col4, -.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col6 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col6 { - opacity: 1; -} - -.hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.house.row3.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col-1 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col1, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col2, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col1, -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col5, -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1, -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1, -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4, -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col0, -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col1, -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0, -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col1, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col0, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.house.row2.col3:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row4.col2, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row3.col2, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row3.col1, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row4.col2, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row3.col0, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row4.col1, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row4.col0, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col0, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col0, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col2 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col1 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col0 { - opacity: 0; -} - -.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col1 { - opacity: 0; -} - -.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col2 { - opacity: 0; -} - -.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col3 { - opacity: 0; -} - -.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col0, -.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col1, -.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col2 { - opacity: 0; -} - -.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col3 { - opacity: 0; -} - -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col2, -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col3, -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col1 { - opacity: 0; -} - -.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col0 { - opacity: 0; -} - -.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col0:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col0 { - opacity: 0; -} - -.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col0:checked ~ .hs.row4.col2:checked ~ .house.row4.col3:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row2.col1, -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col1, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} - -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col1, -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} - -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col0, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col0, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} - -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col0, -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col0, -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row0.col0 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col0, -.hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col1, -.hs.row3.col1:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row3.col0:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col0, -.hs.row3.col0:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col0:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col1, -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col0:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col5, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col6, -.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5, -.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6, -.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col5, -.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col6 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col5, -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col6, -.hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row4.col6, -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6, -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row3.col6, -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6, -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col6 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6, -.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6, -.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6, -.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row4.col1, -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col1, -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row4.col0 { - opacity: 0; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row3.col0, -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col0 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col4, -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ div > div > shed > .row2.col5, -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col5, -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col6, -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col5, -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row5.col6 { - opacity: 0; -} - -.house.row3.col3:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col5, -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row4.col4, -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col6, -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row4.col5, -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row4.col6, -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row4.col5, -.hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col4 { - opacity: 0; -} - -.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col3, -.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col5 { - opacity: 0; -} - -.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col6 { - opacity: 0; -} - -.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row4.col6 { - opacity: 0; -} - -.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col4:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row4.col6, -.hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col5 { - opacity: 0; -} - -.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col4, -.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col6 { - opacity: 0; -} - -.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col3 { - opacity: 0; -} - -.hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row5.col6 { - opacity: 0; -} - -.hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row5.col5 { - opacity: 0; -} - -.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row5.col4 { - opacity: 0; -} - -.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row5.col3 { - opacity: 0; -} - -.house.row4.col3:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row1.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col-1 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col1, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col2, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col6, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col1, -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col5, -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1, -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1, -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4, -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col0, -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col1, -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0, -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col1, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col0, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.house.row2.col3:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row4.col2, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row3.col2, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row3.col1, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row4.col2, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row3.col0, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row4.col1, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row4.col0, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col0, -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col0, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col2 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col1 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col0 { - opacity: 1; -} - -.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col1 { - opacity: 1; -} - -.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col2 { - opacity: 1; -} - -.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col3 { - opacity: 1; -} - -.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col0, -.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col1, -.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col2 { - opacity: 1; -} - -.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col3 { - opacity: 1; -} - -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col2, -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col3, -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col1 { - opacity: 1; -} - -.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col0 { - opacity: 1; -} - -.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col0:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col0 { - opacity: 1; -} - -.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col0:checked ~ .hs.row4.col2:checked ~ .house.row4.col3:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ div > div > house > .row2.col1, -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} - -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col1, -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} - -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6, -.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col0, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col0, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} - -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col0, -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col0, -.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row0.col0 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col0, -.hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col1, -.hs.row3.col1:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row3.col0:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col0, -.hs.row3.col0:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col0:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col1, -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col0:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col5, -.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col6, -.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5, -.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6, -.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col5, -.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col6 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col5, -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col6, -.hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row4.col6, -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6, -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ div > div > house > .row3.col6, -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6, -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col6 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6, -.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6, -.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6, -.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row4.col1, -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col1, -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row4.col0 { - opacity: 1; -} - -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row3.col0, -.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col0 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col4, -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ div > div > house > .row2.col5, -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col5, -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col6, -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col5, -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row5.col6 { - opacity: 1; -} - -.house.row3.col3:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col5, -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row4.col4, -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row3.col6, -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row4.col5, -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row4.col6, -.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row4.col5, -.hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col4 { - opacity: 1; -} - -.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col3, -.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col5 { - opacity: 1; -} - -.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col6 { - opacity: 1; -} - -.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row4.col6 { - opacity: 1; -} - -.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col4:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row4.col6, -.hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col5 { - opacity: 1; -} - -.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col4, -.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col6 { - opacity: 1; -} - -.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col3 { - opacity: 1; -} - -.hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row5.col6 { - opacity: 1; -} - -.hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row5.col5 { - opacity: 1; -} - -.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row5.col4 { - opacity: 1; -} - -.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row5.col3 { - opacity: 1; -} - -.house.row4.col3:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row1.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col-1 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col1, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col2, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row3.col6, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col1, -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col5, -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col1, -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1, -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4, -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col0, -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col1, -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0, -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col1, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col0, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5, -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.house.row0.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col3, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col3, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col2, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col3, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col1, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col2, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col1, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col1, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col1, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col1, -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col2, -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col3, -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col4, -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col3, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col2, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} - -.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-2.col2:checked ~ div > div > shed > .row-2.col2, -.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-2.col2:checked ~ div > div > shed > .row-2.col1 { - opacity: 0; -} - -.house.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-2.col6:checked ~ div > div > shed > .row-2.col7, -.house.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-2.col6:checked ~ div > div > shed > .row-2.col6 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col1, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col1, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-2.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col1, -.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-2.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col1, -.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-2.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-2.col1 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col1, -.hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col2, -.hs.row1.col2:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.hs.row1.col1:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col1, -.hs.row1.col1:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col2, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col5, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col5, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col6, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col7, -.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6, -.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col7, -.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col6, -.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} - -.hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col6, -.hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col7, -.hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col7, -.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7, -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} - -.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row1.col7, -.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} - -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col7, -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} - -.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} - -.hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col7, -.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col7, -.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col7, -.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col2, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col2, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col1, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col4:checked ~ div > div > shed > .row2.col5, -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col4:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > shed > .row0.col6, -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > shed > .row2.col6, -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ div > div > shed > .row2.col7, -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row0.col6, -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row-1.col7 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .house.row-1.col4:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col7 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row-1.col7 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} - -.hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row-1.col7 { - opacity: 0; -} -.hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} - -.house.row1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5, -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7, -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6, -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7, -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} - -.hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col6, -.hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4, -.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} - -.hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col7, -.hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5, -.hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} - -.hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.house.row2.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col0 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col2, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col3, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col4, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row-1.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col7, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row-1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row-1.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row-1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col7, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row-1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col2, -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col6, -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2, -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2, -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col5, -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col1, -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col2, -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1, -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row0.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row-1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col2, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col1, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col3 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col2 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.house.row0.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col3, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col3, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col2, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col3, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col1, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col2, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col1, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col1, -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col1, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col1, -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col2, -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col3, -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col4, -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col3, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col2, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} - -.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-2.col2:checked ~ div > div > house > .row-2.col2, -.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-2.col2:checked ~ div > div > house > .row-2.col1 { - opacity: 1; -} - -.house.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-2.col6:checked ~ div > div > house > .row-2.col7, -.house.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-2.col6:checked ~ div > div > house > .row-2.col6 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col1, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col1, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-2.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col1, -.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-2.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col1, -.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-2.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-2.col1 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col1, -.hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col2, -.hs.row1.col2:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.hs.row1.col1:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col1, -.hs.row1.col1:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col2, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col5, -.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col5, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} - -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col6, -.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col7, -.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6, -.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col7, -.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col6, -.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} - -.hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col6, -.hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col7, -.hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col7, -.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7, -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} - -.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ div > div > house > .row1.col7, -.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} - -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col7, -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} - -.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} - -.hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col7, -.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col7, -.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col7, -.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col2, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col2, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col1, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col4:checked ~ div > div > house > .row2.col5, -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col4:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > house > .row0.col6, -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > house > .row2.col6, -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ div > div > house > .row2.col7, -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > house > .row0.col6, -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .house.row-1.col4:checked ~ div > div > house > .row-1.col7 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .house.row-1.col4:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col7 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ .house.row-1.col4:checked ~ div > div > house > .row-1.col7 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col3:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col3:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col3:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} - -.hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row-1.col7 { - opacity: 1; -} -.hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} - -.house.row1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5, -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7, -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6, -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7, -.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} - -.hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col6, -.hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4, -.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} - -.hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col7, -.hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5, -.hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} - -.hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.house.row2.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col0 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col2, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col3, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col4, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row-1.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col7, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row-1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row-1.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row-1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col7, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ div > div > house > .row-1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2, -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col6, -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2, -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2, -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col5, -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col1, -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col2, -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1, -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row0.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row-1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col2, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col1, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col6, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col3 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col2 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.house.row1.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col3, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row2.col3, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row2.col2, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col3, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row2.col1, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col2, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col1, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col1, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col1, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col1, -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col2, -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col3, -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col4, -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col2, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col2, -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} - -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col7, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col6 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col1, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col1, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col1, -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col1, -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row-1.col1 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col1, -.hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col2, -.hs.row2.col2:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row2.col1:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col1, -.hs.row2.col1:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col5, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col5, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col6, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col7, -.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6, -.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7, -.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col6, -.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} - -.hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col6, -.hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col7, -.hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col7, -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7, -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row2.col7, -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} - -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7, -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col7, -.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col7, -.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col7, -.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col2, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col2, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row2.col1, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col5, -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col6, -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col6, -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col7, -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > shed > .row1.col6, -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} - -.hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} -.hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row4.col7 { - opacity: 0; -} - -.house.row2.col4:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6, -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5, -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col7, -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6, -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row3.col7, -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} - -.hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col6, -.hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col4, -.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col6 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col7 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} - -.hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col7, -.hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col6 { - opacity: 0; -} - -.hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col5, -.hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col7 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col7 { - opacity: 0; -} - -.hs.row4.col7:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col6 { - opacity: 0; -} - -.hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col4 { - opacity: 0; -} - -.house.row3.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col0 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col2, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col3, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col4, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col7, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col2, -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col6, -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2, -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2, -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5, -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col1, -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2, -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1, -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row1.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col2, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col1, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col2 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} - -.house.row1.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col3, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row2.col3, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row2.col2, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col3, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row2.col1, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col2, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col1, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col1, -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col1, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col1, -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col2, -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col3, -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col4, -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col2, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col2, -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} - -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col7, -.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col6 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col1, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col1, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col1, -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col1, -.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row-1.col1 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col1, -.hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col2, -.hs.row2.col2:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row2.col1:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col1, -.hs.row2.col1:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col5, -.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col5, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} - -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col6, -.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col7, -.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6, -.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7, -.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col6, -.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} - -.hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col6, -.hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col7, -.hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col7, -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7, -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ div > div > house > .row2.col7, -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} - -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7, -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col7, -.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col7, -.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col7, -.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col2, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col2, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row2.col1, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col5, -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col6, -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col6, -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col7, -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > house > .row1.col6, -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ .hs.row0.col7:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} - -.hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} -.hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row4.col7 { - opacity: 1; -} - -.house.row2.col4:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6, -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5, -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col7, -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6, -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row3.col7, -.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} - -.hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col6, -.hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col4, -.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col6 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col7 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} - -.hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col7, -.hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col6 { - opacity: 1; -} - -.hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col5, -.hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col7 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col7 { - opacity: 1; -} - -.hs.row4.col7:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col6 { - opacity: 1; -} - -.hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col4 { - opacity: 1; -} - -.house.row3.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col0 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col2, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col3, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col4, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col7, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col2, -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col6, -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2, -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2, -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5, -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col1, -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2, -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1, -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row1.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col1, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col2 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} - -.house.row2.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row4.col3, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row3.col3, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row3.col2, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row4.col3, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row3.col1, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row4.col2, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row4.col1, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col1, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col1, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col3 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col2 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col1 { - opacity: 0; -} - -.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col2 { - opacity: 0; -} - -.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col3 { - opacity: 0; -} - -.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col4 { - opacity: 0; -} - -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col1, -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col2, -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col3 { - opacity: 0; -} - -.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col4 { - opacity: 0; -} - -.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col3, -.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col4, -.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col2 { - opacity: 0; -} - -.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col1 { - opacity: 0; -} - -.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col1:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col1 { - opacity: 0; -} - -.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col1:checked ~ .hs.row4.col3:checked ~ .house.row4.col4:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col2, -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} - -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col2, -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col6 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col1, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col1, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} - -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col1, -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col1, -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row0.col1 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col1, -.hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col2, -.hs.row3.col2:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col2 { - opacity: 0; -} - -.hs.row3.col1:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col1, -.hs.row3.col1:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col1:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col2, -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col1:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col5, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col5, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col6, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col7, -.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6, -.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col6 { - opacity: 0; -} - -.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row3.col7, -.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row3.col6, -.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col7 { - opacity: 0; -} - -.hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col6, -.hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col7, -.hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row4.col7, -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row4.col6 { - opacity: 0; -} - -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col7, -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row3.col7, -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} - -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row3.col7, -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col7 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col6 { - opacity: 0; -} - -.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col7, -.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col7, -.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col7, -.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3 { - opacity: 0; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row4.col2, -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col2, -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row4.col1 { - opacity: 0; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row3.col1, -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col1 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col5, -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ div > div > shed > .row2.col6, -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col6, -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col7, -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col6, -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} - -.hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row5.col7 { - opacity: 0; -} - -.house.row3.col4:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col6, -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row4.col5, -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row3.col7, -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row4.col6, -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row4.col7, -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} - -.hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row4.col6, -.hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col5 { - opacity: 0; -} - -.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col4, -.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col6 { - opacity: 0; -} - -.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col7 { - opacity: 0; -} - -.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row5.col7:checked ~ .hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row4.col7 { - opacity: 0; -} - -.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row5.col7:checked ~ .hs.row4.col5:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} - -.hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row4.col7, -.hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row5.col6 { - opacity: 0; -} - -.hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row5.col5, -.hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row5.col7 { - opacity: 0; -} - -.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row5.col4 { - opacity: 0; -} - -.hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row5.col7 { - opacity: 0; -} - -.hs.row5.col7:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row5.col6 { - opacity: 0; -} - -.hs.row5.col6:checked ~ .hs.row5.col7:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row5.col5 { - opacity: 0; -} - -.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row5.col7:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row5.col4 { - opacity: 0; -} - -.house.row4.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row1.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col0 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col5 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col2, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col5 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col3, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row3.col7, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col3 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col2, -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col6, -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2, -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2, -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5, -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col1, -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col2 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2, -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1, -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col7, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row2.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col2, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col1 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col1, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col2 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col1 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { - opacity: 0; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { - opacity: 0; -} - -.house.row2.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row4.col3, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row3.col3, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row3.col2, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row4.col3, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row3.col1, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row4.col2, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row4.col1, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1, -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col1, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col3 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col2 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col1 { - opacity: 1; -} - -.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col2 { - opacity: 1; -} - -.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col3 { - opacity: 1; -} - -.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col4 { - opacity: 1; -} - -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col1, -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col2, -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col3 { - opacity: 1; -} - -.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col4 { - opacity: 1; -} - -.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col3, -.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col4, -.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col2 { - opacity: 1; -} - -.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col1 { - opacity: 1; -} - -.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col1:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col1 { - opacity: 1; -} - -.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col1:checked ~ .hs.row4.col3:checked ~ .house.row4.col4:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col2, -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} - -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col2, -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7, -.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col6 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col1, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col1, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} - -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col1, -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col1, -.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row0.col1 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col1, -.hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col2, -.hs.row3.col2:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col2 { - opacity: 1; -} - -.hs.row3.col1:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col1, -.hs.row3.col1:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col1:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col2, -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col1:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col5, -.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col5, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col6, -.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col7, -.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6, -.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col6 { - opacity: 1; -} - -.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row3.col7, -.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row3.col6, -.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col7 { - opacity: 1; -} - -.hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col6, -.hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col7, -.hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row4.col7, -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row4.col6 { - opacity: 1; -} - -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col7, -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ div > div > house > .row3.col7, -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} - -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row3.col7, -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col7 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col6 { - opacity: 1; -} - -.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col7, -.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col7, -.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col7, -.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3 { - opacity: 1; -} - -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row4.col2, -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col2, -.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row4.col1 { - opacity: 1; -} - -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row3.col1, -.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col1 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col5, -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ div > div > house > .row2.col6, -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col6, -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col7, -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col6, -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col7:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} - -.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} - -.hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row5.col7 { - opacity: 1; -} - -.house.row3.col4:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row3.col6, -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row4.col5, -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row3.col7, -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row4.col6, -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > house > .row4.col7, -.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} - -.hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row4.col6, -.hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col5 { - opacity: 1; -} - -.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col4, -.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col6 { - opacity: 1; -} - -.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col7 { - opacity: 1; -} - -.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row5.col7:checked ~ .hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row4.col7 { - opacity: 1; -} - -.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row5.col7:checked ~ .hs.row4.col5:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} - -.hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row4.col7, -.hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row5.col6 { - opacity: 1; -} - -.hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row5.col5, -.hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row5.col7 { - opacity: 1; -} - -.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row5.col4 { - opacity: 1; -} - -.hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > house > .row5.col7 { - opacity: 1; -} - -.hs.row5.col7:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > house > .row5.col6 { - opacity: 1; -} - -.hs.row5.col6:checked ~ .hs.row5.col7:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > house > .row5.col5 { - opacity: 1; -} - -.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row5.col7:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > house > .row5.col4 { - opacity: 1; -} - -.house.row4.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row1.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col0 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col5 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row3.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col2, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col5 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col3, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row3.col7, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col3 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col2, -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col6, -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col2, -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2, -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5, -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col1, -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col2 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2, -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1, -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col7, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row2.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col3 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col2, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col1 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col1, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6, -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col1 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { - opacity: 1; -} -.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { - opacity: 1; -} - -.hs.row1.col1:checked ~ div > div > house > .row1.col1.col4 > i:nth-of-type(4) { - background: #ff7700; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; -} -.hs.row1.col1:checked ~ div > div > house > .row1.col1.col4 > i:nth-of-type(4):after, .hs.row1.col1:checked ~ div > div > house > .row1.col1.col4 > i:nth-of-type(4):before { - background: #20112a; -} - -.hs.row1.col2:checked ~ div > div > house > .row1.col2.col4 > i:nth-of-type(4) { - background: #ff7700; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; -} -.hs.row1.col2:checked ~ div > div > house > .row1.col2.col4 > i:nth-of-type(4):after, .hs.row1.col2:checked ~ div > div > house > .row1.col2.col4 > i:nth-of-type(4):before { - background: #20112a; -} - -.hs.row1.col3:checked ~ div > div > house > .row1.col3.col2 > i:nth-of-type(4) { - background: #ff7700; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; -} -.hs.row1.col3:checked ~ div > div > house > .row1.col3.col2 > i:nth-of-type(4):after, .hs.row1.col3:checked ~ div > div > house > .row1.col3.col2 > i:nth-of-type(4):before { - background: #20112a; -} - -.hs.row1.col4:checked ~ div > div > house > .row1.col4.col4 > i:nth-of-type(4) { - background: #ff7700; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; -} -.hs.row1.col4:checked ~ div > div > house > .row1.col4.col4 > i:nth-of-type(4):after, .hs.row1.col4:checked ~ div > div > house > .row1.col4.col4 > i:nth-of-type(4):before { - background: #20112a; -} - -.hs.row2.col1:checked ~ div > div > house > .row2.col1.col4 > i:nth-of-type(4) { - background: #ff7700; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; -} -.hs.row2.col1:checked ~ div > div > house > .row2.col1.col4 > i:nth-of-type(4):after, .hs.row2.col1:checked ~ div > div > house > .row2.col1.col4 > i:nth-of-type(4):before { - background: #20112a; -} - -.hs.row2.col2:checked ~ div > div > house > .row2.col2.col1 > i:nth-of-type(4) { - background: #ff7700; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; -} -.hs.row2.col2:checked ~ div > div > house > .row2.col2.col1 > i:nth-of-type(4):after, .hs.row2.col2:checked ~ div > div > house > .row2.col2.col1 > i:nth-of-type(4):before { - background: #20112a; -} - -.hs.row2.col3:checked ~ div > div > house > .row2.col3.col3 > i:nth-of-type(4) { - background: #ff7700; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; -} -.hs.row2.col3:checked ~ div > div > house > .row2.col3.col3 > i:nth-of-type(4):after, .hs.row2.col3:checked ~ div > div > house > .row2.col3.col3 > i:nth-of-type(4):before { - background: #20112a; -} - -.hs.row2.col4:checked ~ div > div > house > .row2.col4.col4 > i:nth-of-type(4) { - background: #ff7700; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; -} -.hs.row2.col4:checked ~ div > div > house > .row2.col4.col4 > i:nth-of-type(4):after, .hs.row2.col4:checked ~ div > div > house > .row2.col4.col4 > i:nth-of-type(4):before { - background: #20112a; -} - -.hs.row3.col1:checked ~ div > div > house > .row3.col1.col4 > i:nth-of-type(4) { - background: #ff7700; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; -} -.hs.row3.col1:checked ~ div > div > house > .row3.col1.col4 > i:nth-of-type(4):after, .hs.row3.col1:checked ~ div > div > house > .row3.col1.col4 > i:nth-of-type(4):before { - background: #20112a; -} - -.hs.row3.col2:checked ~ div > div > house > .row3.col2.col1 > i:nth-of-type(4) { - background: #ff7700; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; -} -.hs.row3.col2:checked ~ div > div > house > .row3.col2.col1 > i:nth-of-type(4):after, .hs.row3.col2:checked ~ div > div > house > .row3.col2.col1 > i:nth-of-type(4):before { - background: #20112a; -} - -.hs.row3.col3:checked ~ div > div > house > .row3.col3.col2 > i:nth-of-type(4) { - background: #ff7700; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; -} -.hs.row3.col3:checked ~ div > div > house > .row3.col3.col2 > i:nth-of-type(4):after, .hs.row3.col3:checked ~ div > div > house > .row3.col3.col2 > i:nth-of-type(4):before { - background: #20112a; -} - -.hs.row3.col4:checked ~ div > div > house > .row3.col4.col3 > i:nth-of-type(4) { - background: #ff7700; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; -} -.hs.row3.col4:checked ~ div > div > house > .row3.col4.col3 > i:nth-of-type(4):after, .hs.row3.col4:checked ~ div > div > house > .row3.col4.col3 > i:nth-of-type(4):before { - background: #20112a; -} - -.hs.row4.col1:checked ~ div > div > house > .row4.col1.col3 > i:nth-of-type(4) { - background: #ff7700; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; -} -.hs.row4.col1:checked ~ div > div > house > .row4.col1.col3 > i:nth-of-type(4):after, .hs.row4.col1:checked ~ div > div > house > .row4.col1.col3 > i:nth-of-type(4):before { - background: #20112a; -} - -.hs.row4.col2:checked ~ div > div > house > .row4.col2.col2 > i:nth-of-type(4) { - background: #ff7700; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; -} -.hs.row4.col2:checked ~ div > div > house > .row4.col2.col2 > i:nth-of-type(4):after, .hs.row4.col2:checked ~ div > div > house > .row4.col2.col2 > i:nth-of-type(4):before { - background: #20112a; -} - -.hs.row4.col3:checked ~ div > div > house > .row4.col3.col2 > i:nth-of-type(4) { - background: #ff7700; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; -} -.hs.row4.col3:checked ~ div > div > house > .row4.col3.col2 > i:nth-of-type(4):after, .hs.row4.col3:checked ~ div > div > house > .row4.col3.col2 > i:nth-of-type(4):before { - background: #20112a; -} - -.hs.row4.col4:checked ~ div > div > house > .row4.col4.col3 > i:nth-of-type(4) { - background: #ff7700; - box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; -} -.hs.row4.col4:checked ~ div > div > house > .row4.col4.col3 > i:nth-of-type(4):after, .hs.row4.col4:checked ~ div > div > house > .row4.col4.col3 > i:nth-of-type(4):before { - background: #20112a; -} - -.lh { - pointer-events: none; - perspective: 30rem; - perspective-origin: 50% -5rem; - transform: translate3d(0, 0, -100rem) scale(0); - opacity: 0; -} - -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh { - transform: translate3d(0, 0, -100rem) scale(1); - /* animation: lightson $timer linear infinite;*/ -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh light { - top: -12rem; - left: -6.25rem; - transform: scaleX(3) rotateY(0); - /* animation: light 8s linear infinite;*/ - filter: blur(0.1rem); - opacity: 0.5; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh light, .hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh light:before, .hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh light:after { - background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 244, 102, 0.5), rgba(255, 255, 255, 0)); - width: 100%; - height: 5rem; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh light:before { - transform: rotate(15deg) rotateY(-5deg); -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh light:after { - transform: rotate(-15deg) rotateY(5deg); -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh lens { - top: -12rem; - left: -6.25rem; - width: 100%; - height: 5rem; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh lens:before, .hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh lens:after { - height: 5rem; - border-radius: 50%; - right: 0; - margin: auto; -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh lens:before { - background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(252, 246, 165, 0.5), rgba(255, 255, 255, 0)); - width: 100%; - transform: scaleX(3) rotateY(0); - opacity: 0.25; - filter: blur(0.1rem); -} -.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh lens:after { - width: 5rem; - background: radial-gradient(#fcf6a5, rgba(255, 255, 255, 0)); - opacity: 0.75; - box-shadow: 60rem 0 15rem #fcf6a5, -60rem 0 15rem #fcf6a5, 0 0 3rem #fcf6a5, inset 0 0 0 #fcf6a5; -} - -div.lh { - animation: lightson 400s linear infinite; -} -div.lh light { - animation: light 8s linear infinite; -} -div.lh lens:before { - animation: light 8s linear infinite; -} -div.lh lens:after { - animation: light2 8s ease-in-out infinite; -} - -@keyframes light { - 100% { - transform: scaleX(3) rotateY(-360deg); - } -} -@keyframes lightson { - 20%, 80% { - opacity: 0; - } - 25%, 75% { - opacity: 1; - } -} -@keyframes light2 { - 22%, 27%, 72%, 77% { - box-shadow: 0rem 0 15rem #fcf6a5, 0rem 0 15rem #fcf6a5, 0 0 3rem #fcf6a5, inset 0 0 0 0 #fcf6a5; - } - 24%, 74% { - box-shadow: 0rem 0 15rem #fcf6a5, 0rem 0 15rem #fcf6a5, 0 0 5rem 40rem rgba(252, 246, 165, 0.25), inset 0 0 0 2.5rem #fcf6a5; - } - 50% { - box-shadow: -60rem 0 15rem #fcf6a5, 60rem 0 15rem #fcf6a5, 0 0 3rem #fcf6a5, inset 0 0 0 0 #fcf6a5; - } -} -#graphics { - top: 1rem; - left: auto; - right: 1rem; - font-family: Telefon, Sans-Serif; - font-size: 1.4rem; - z-index: 1000; - letter-spacing: 0.1rem; - color: #fff; - line-height: 1.5; - max-height: 2.5rem; - overflow: hidden; -} -#graphics label { - display: flex; - align-content: center; - justify-content: flex-end; - gap: 0.5rem; - padding: 0.5rem; - border-radius: 1rem; - cursor: pointer; - transition: box-shadow 0.2s ease-in-out; - box-shadow: 0 0 0 1rem rgba(255, 255, 255, 0), inset 0 0 0 0 rgba(255, 255, 255, 0.2); -} -#graphics label:not(:nth-of-type(1)):hover { - box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2), inset 0 0 0 2rem rgba(255, 255, 255, 0.2); -} -#graphics * { - position: static; -} - -#gfxmenu:checked ~ #graphics { - max-height: 10rem; -} - -#poor:checked ~ colour > div > div > house > label > i:nth-of-type(1), -#poor:checked ~ colour > div > div > shed > label > i:nth-of-type(1), -#poor:checked ~ colour > div > lens, -#poor:checked ~ colour > water:before, -#poor:checked ~ colour water:after { - display: none; -} - -#poor:checked ~ colour > div > div.main { - -webkit-box-reflect: none; -} - -#poor:checked ~ sky > time { - opacity: 0; -} - -#poor:checked ~ text > welldone, -#poor:checked ~ text > gameover { - box-shadow: none; -} - -#good:checked ~ x > [for=good], -#poor:checked ~ x > [for=poor] { - box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1), inset 0 0 0 2rem rgba(255, 255, 255, 0.1); -} -#good:checked ~ x > [for=good]:before, -#poor:checked ~ x > [for=poor]:before { - content: "โœ“"; - position: static; -} - -#poor:checked ~ colour > div > div > shed > label:after, #poor:checked ~ colour > div > div > shed > label *:after, -#poor:checked ~ colour > div > div > house > label:after, -#poor:checked ~ colour > div > div > house > label *:after { - animation: none !important; -} -#poor:checked ~ colour > div > div > shed > label:before, #poor:checked ~ colour > div > div > shed > label *:before, -#poor:checked ~ colour > div > div > house > label:before, -#poor:checked ~ colour > div > div > house > label *:before { - animation: none !important; -} - -[for=gfxmenu]:after { - border-bottom: 0.1rem solid #fff; - border-right: 0.1rem solid #fff; - transform: rotate(45deg) scaleY(1); - position: relative; - width: 0.6rem; - height: 0.6rem; - margin-left: 0.4rem; - top: 0.5rem; - transition: all 0.2s ease-in-out; -} - -#gfxmenu:checked ~ x > [for=gfxmenu]:after { - transform: rotate(-45deg) scaleY(-1); -} - -script { - display: none; +@charset "UTF-8"; +.house.row3:checked ~ div, +.shed.row3:checked ~ div { + filter: hue-rotate(-20deg); +} + +.house.row2:checked ~ div, +.shed.row2:checked ~ div { + filter: hue-rotate(-35deg); +} + +.house.row1:checked ~ div, +.shed.row1:checked ~ div { + filter: hue-rotate(-50deg); +} + +html { + font-size: 0.97vh; + width: 100%; + height: 100%; + background: #f3cece; + overflow: hidden; +} + +body { + margin: 0; + overflow: hidden; + width: 100%; + height: 100%; + background: linear-gradient(rgba(96, 139, 136, 0.5), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0)); + box-shadow: inset 0 0 5rem 0 #252529; +} +body, +body *, +body *:before, +body *:after { + display: block; + top: 0; + left: 0; + box-sizing: border-box; + position: absolute; + content: ""; +} + +div, +house, +shed, +hbtn, +sbtn { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + margin: auto; + width: 50rem; + height: 50rem; + display: flex; + flex-wrap: wrap; + align-content: flex-start; +} +div label, +house label, +shed label, +hbtn label, +sbtn label { + width: calc(50rem / 4); + height: calc(50rem / 4); + position: relative; + border: none; + background: none; + padding: 0; + margin: 0; + display: inline; + cursor: pointer; + box-shadow: 0 0 0 2rem rgba(255, 255, 255, 0); +} +div label *, +div label *:before, +div label *:after, +house label *, +house label *:before, +house label *:after, +shed label *, +shed label *:before, +shed label *:after, +hbtn label *, +hbtn label *:before, +hbtn label *:after, +sbtn label *, +sbtn label *:before, +sbtn label *:after { + transform: translate3d(0, 0, 0); + z-index: 1; + left: 0; + top: 0; + background: none; + border: none; + box-shadow: none; + pointer-events: none; +} +div label > i:nth-of-type(1):before, div label > i:nth-of-type(1):after, +house label > i:nth-of-type(1):before, +house label > i:nth-of-type(1):after, +shed label > i:nth-of-type(1):before, +shed label > i:nth-of-type(1):after, +hbtn label > i:nth-of-type(1):before, +hbtn label > i:nth-of-type(1):after, +sbtn label > i:nth-of-type(1):before, +sbtn label > i:nth-of-type(1):after { + filter: blur(0.5rem); + border: 1rem solid rgba(111, 111, 122, 0.75); + width: 5rem; + height: 5rem; + background: #6f6f7a; + opacity: 0; + border-radius: 50%; + box-shadow: 2rem -1.5rem 0 1rem rgba(111, 111, 122, 0.75), 3rem -2rem 0 1.5rem rgba(111, 111, 122, 0.5); +} + +colour { + width: 100%; + height: 100%; +} +colour input, +colour br { + position: relative; + display: inline-block; + opacity: 0.2; + top: 1rem; + left: 1rem; + transform: scale(0.75); + margin: -0.2rem; +} +@media (max-width: 900px) { + colour input, +colour br { + display: none; + } +} +colour input:checked { + opacity: 1; +} +colour br { + display: block; +} + +input { + display: none; +} + +div.main { + -webkit-box-reflect: below 4rem; +} + +div.ss { + pointer-events: none; +} + +sbtn { + height: calc(50rem - (50rem / 4)); + bottom: auto; +} +sbtn label { + border: solid 1px rgba(116, 116, 116, 0.1); +} +sbtn label:nth-of-type(1) { + border-radius: 3rem 0 0 0; +} +sbtn label:nth-of-type(4) { + border-radius: 0 3rem 0 0; +} +sbtn label:hover { + border-color: #555; +} + +hbtn label:nth-of-type(n + 12) { + border: solid 1px rgba(116, 116, 116, 0.1); +} +hbtn label:nth-of-type(n + 12):hover { + border-color: #555; +} + +@keyframes smoke { + 0% { + transform: scale(0.2) translate3d(0, 0, 0) rotate(-15deg); + opacity: 0.075; + } + 50% { + transform: scale(1) translate3d(2rem, -4rem, 0) rotate(0); + opacity: 0.15; + } + 100% { + transform: scale(2) translate3d(5rem, -5rem, 0) rotate(10deg); + opacity: 0; + } +} +island { + position: absolute; + top: 76rem; + top: 49.25rem; + left: -50%; + right: -50%; + margin: auto; + width: 80rem; + height: 5rem; + background: #60bc2f; + border-radius: 55% 55% 45% 45%; +} + +grass { + position: absolute; + z-index: 500; + top: 76rem; + top: 49.25rem; + left: -50%; + right: -50%; + margin: auto; + width: 80rem; + height: 5rem; + -webkit-box-reflect: below -5rem; + transform: skewX(0); +} +grass:after, grass:before { + top: 0.75rem; + left: 0.6rem; + z-index: 100; + width: 0.5rem; + height: 1.75rem; + transform: skewY(60deg); + background: #60bc2f; + box-shadow: 1rem -1.6rem 0 #60bc2f, 2.1rem -3.6rem 0 #60bc2f, 2.9rem -4.8rem 0 #60bc2f, 4rem -7rem 0 #60bc2f; + filter: drop-shadow(5rem -8.3rem 0 #60bc2f) drop-shadow(10rem -17.3rem 0 #60bc2f) drop-shadow(20rem -34.5rem 0 #60bc2f) drop-shadow(40rem -69rem 0 #60bc2f); +} +grass:before { + transform: skewY(-60deg); + box-shadow: 1rem 1.6rem 0 #60bc2f, 2.1rem 3.6rem 0 #60bc2f, 2.9rem 4.8rem 0 #60bc2f, 4rem 7rem 0 #60bc2f; + filter: drop-shadow(5rem 8.3rem 0 #60bc2f) drop-shadow(10rem 17.3rem 0 #60bc2f) drop-shadow(20rem 34.5rem 0 #60bc2f) drop-shadow(40rem 69rem 0 #60bc2f); + left: 0; + top: 1.5rem; +} + +@keyframes grass { + 100% { + transform: skewX(5deg); + } +} +input:focus ~ div > div { + animation: thud 0.1s linear; +} + +@keyframes thud { + 0% { + transform: translate3d(0, 1rem, 0); + } + 60% { + transform: translate3d(0, -0.5rem, 0); + } + 80% { + transform: translate3d(0, 0.25rem, 0); + } +} +sig { + z-index: 500; + opacity: 0.2; + font-size: 0.5rem; + color: #000; + width: 10em; + top: auto; + left: auto; + bottom: 1em; + right: 1em; + transform: skewX(10deg) scaleY(0.45) rotate(2deg); +} +sig, +sig * { + height: 9.25em; + overflow: hidden; + border-radius: 0.5em; +} +sig:before, +sig *:before { + width: 5em; + height: 5em; + background: currentColor; + transform: translate3d(-2.5em, 0, 0) rotate(-45deg); + box-shadow: -3em 3em 0 0 currentColor; + border-radius: 0.5em 2em 0.5em 2em; +} +sig * { + width: 5em; + transform: translate3d(3.75em, 0, 0) scaleY(0.95); + display: block !important; +} +sig *:before { + transform: translate3d(-3em, -2em, 0) rotate(-45deg); + box-shadow: -3em 3em 0 0 currentColor, -6em 6em 0 0 currentColor; + border-radius: 0.5em; +} + +text { + width: 95%; + max-width: 70rem; + bottom: 25%; + color: #e7ae9d; + right: 0; + margin: auto; + height: 1rem; + font-size: 2.5rem; + text-align: center; + font-family: Telefon, Sans-Serif; + z-index: -1; + transform: scale(0); + font-weight: 100; + letter-spacing: 0.1rem; + opacity: 0; +} +text welldone, +text gameover { + box-shadow: 0 0 5rem #ff7700, inset 0 0 0 0.5rem #fff; + background: rgba(32, 17, 42, 0.95); + padding: 5rem; + border-radius: 5rem; + border: 1rem solid #20112a; +} +text welldone { + display: none; +} +text * { + position: static; +} +text p:nth-of-type(1) { + font-size: 4rem; +} +text p:nth-of-type(odd) { + color: #bc5c2f; +} +text label { + position: absolute; + left: auto; + right: 3rem; + top: 3rem; + color: #bc5c2f; + padding: 2rem; + border-radius: 2rem; + box-shadow: 0 0 1rem rgba(255, 255, 255, 0); + cursor: pointer; + transition: box-shadow 0.25s ease-in-out; + box-sizing: border-box; + line-height: 1; +} +text label:hover, text label:focus { + box-shadow: 0 0 0.15rem #fff; +} +text a { + padding: 0.5rem 1rem; + border-radius: 1rem; + text-decoration: none; + background: #bc5c2f; + color: #20112a; + box-shadow: 0 0 0 1rem rgba(255, 255, 255, 0), inset 0 0 0 0 rgba(255, 255, 255, 0.2); + transition: all 0.2s ease-in-out; +} +text a:hover, text a:focus { + box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2), inset 0 0 0 3rem rgba(255, 255, 255, 0.2); +} + +#done:checked ~ text { + transform: scale(0) !important; + transition: all 0.5s ease-in-out; + opacity: 0; +} + +colour > *:not(.lh):not(text) { + filter: hue-rotate(0deg) brightness(100%); + animation: set 400s linear infinite; +} + +@media screen and (max-device-width: 480px) { + colour > *:not(.lh):not(text) { + animation: none; + } +} +@keyframes set { + 15%, 85% { + filter: hue-rotate(0deg) brightness(100%); + } + 30%, 70% { + filter: hue-rotate(-20deg) brightness(10%); + } + 40%, 60% { + filter: hue-rotate(-40deg) brightness(50%); + } +} +stars { + width: 220rem; + height: 100%; + position: absolute; + top: 0; + left: 0; + right: 0; + margin: auto; + animation: stars 400s linear infinite; + -webkit-box-reflect: below -50rem; + opacity: 0; + z-index: 0; +} +stars:before { + width: 0.5rem; + height: 0.5rem; + box-shadow: 130vmin 33vmin 0 -.2rem #f9b9c8 , 108vmin 15vmin 0 -.2rem #dafc8b , 160vmin 59vmin 0 -.1rem #8b95fc , 12vmin 28vmin 0 -.1rem #d88bfc , 144vmin 22vmin 0 -.2rem #c98bfc , 48vmin 7vmin 0 -.1rem #8b9cfc , 164vmin 43vmin 0 -.1rem #fc8bfc , 172vmin 44vmin 0 -.1rem #fc8bad , 133vmin 30vmin 0 -.1rem #fcf18b , 16vmin 55vmin 0 -.2rem #8bdafc , 161vmin 15vmin 0 -.1rem #fc8bc2 , 93vmin 16vmin 0 -.1rem #c2fc8b , 11vmin 17vmin 0 -.1rem #c7fc8b , 184vmin 5vmin 0 -.2rem #8bfce7 , 98vmin 18vmin 0 -.2rem #988bfc , 90vmin 3vmin 0 -.2rem #fc8bbc , 29vmin 16vmin 0 -.1rem #fc8b95 , 36vmin 17vmin 0 -.2rem #fa8bfc , 111vmin 7vmin 0 -.2rem #8bfcbc , 76vmin 44vmin 0 -.2rem #a78bfc , 78vmin 46vmin 0 -.2rem #e08bfc , 94vmin 32vmin 0 -.1rem #fc8bc2 , 52vmin 42vmin 0 -.2rem #8b8dfc , 43vmin 11vmin 0 -.1rem #8bb1fc , 197vmin 24vmin 0 -.1rem #f8fc8b , 181vmin 14vmin 0 -.1rem #fc8bef , 21vmin 44vmin 0 -.2rem #fccd8b , 31vmin 49vmin 0 -.2rem #8bcbfc , 125vmin 52vmin 0 -.1rem #fc8b8b , 54vmin 49vmin 0 -.1rem #ed8bfc , 68vmin 16vmin 0 -.1rem #8bfafc , 60vmin 41vmin 0 -.2rem #8bd5fc , 65vmin 47vmin 0 -.1rem #8bfcde , 79vmin 59vmin 0 -.2rem #e6fc8b , 111vmin 16vmin 0 -.1rem #fc8b8f , 25vmin 27vmin 0 -.1rem #b1fc8b , 130vmin 13vmin 0 -.2rem #fcb08b , 35vmin 54vmin 0 -.1rem #8bfcc9 , 149vmin 19vmin 0 -.2rem #8bfc94 , 12vmin 51vmin 0 -.1rem #9cfc8b , 69vmin 33vmin 0 -.1rem #908bfc , 30vmin 35vmin 0 -.1rem #8bfcfc , 148vmin 31vmin 0 -.2rem #ad8bfc , 159vmin 11vmin 0 -.1rem #fc8bda , 191vmin 17vmin 0 -.2rem #8bfcb8 , 11vmin 40vmin 0 -.1rem #8bbafc , 36vmin 50vmin 0 -.2rem #fc8b8f , 44vmin 42vmin 0 -.1rem #fc8bd5 , 55vmin 38vmin 0 -.1rem #8bf5fc , 6vmin 30vmin 0 -.2rem #8bfcb0; + border-radius: 50%; + content: ""; + position: absolute; + top: 5rem; + left: 5rem; +} +stars i:before, stars i:after { + width: 0.5rem; + height: 0.5rem; + top: 40rem; + left: 40rem; + background: #fff; + border-radius: 50%; + animation: stars 1s linear infinite; + opacity: 0.5; + box-shadow: 0 0 1rem #fff; +} +stars i:after { + top: 20rem; + left: 180rem; + animation: stars 1s 0.5s linear infinite; + background: #f9b9c8; +} + +sky { + width: 100%; + height: 78.5rem; + overflow: hidden; + -webkit-box-reflect: below 0; + z-index: 0; +} +sky:before, sky:after { + width: 100%; + height: 100%; + background: linear-gradient(#323248 10%, #fbd447, #d8480f); + opacity: 0; + animation: sky 400s linear infinite; +} +sky:after { + background: linear-gradient(#19043f, #1a0f6c); +} + +time { + pointer-events: none; +} +time, +time sun { + width: 170rem; + height: 170rem; + left: -100%; + right: -100%; + top: -100%; + bottom: -170%; + margin: auto; +} +time sun { + bottom: -100%; + transform: rotate(0deg); + z-index: 1; + animation: sun 400s linear infinite; + filter: blur(1rem) brightness(400%); +} +time sun:before { + width: 25rem; + height: 25rem; + border-radius: 50%; + background: radial-gradient(#bc502f, #bc2f2f); + right: 0; + margin: auto; + transform: rotate(0deg); +} +time sun:after { + width: 10rem; + height: 10rem; + border-radius: 50%; + box-shadow: inset 0 2rem 0 #5a4e38; + background: rgba(0, 0, 0, 0.1); + left: 60%; + top: auto; + bottom: 0; + transform: rotate(0deg); + z-index: 1; +} + +@media (max-width: 500px) { + time, +input { + display: none; + } +} +div.ss lens { + top: 20rem; + left: 70rem; + animation: lensflair 400s linear infinite; + width: 60rem; + height: 60rem; + filter: brightness(150%); + transform: rotate(0); + opacity: 0; +} +div.ss lens:before { + width: 60rem; + height: 60rem; + border-radius: 50%; + top: 0; + right: -50%; + left: -50%; + margin: auto; + box-shadow: 0 70rem 0 -20rem yellow, 0 50rem 0 -25rem yellow, 0 100rem 0 5rem #f437c5, inset 0 0 3rem #ff7700; + border: 1rem solid #ff7700; +} +div.ss lens:after { + width: 100rem; + height: 100rem; + border-radius: 50%; + top: 140rem; + right: -50%; + left: -50%; + margin: auto; + border: 1rem solid yellow; + box-shadow: 0 0 3rem red, inset 0 0 3rem blue; +} + +@keyframes lensflair { + 20%, 30%, 70%, 80% { + opacity: 0; + } + 25%, 75% { + opacity: 0.05; + } + 100% { + transform: rotate(360deg); + opacity: 0; + } +} +@keyframes sun { + 20%, 80% { + filter: blur(1rem) brightness(390%); + } + 27%, 73% { + filter: blur(1rem) brightness(200%); + } + 100% { + transform: rotate(360deg); + } +} +@keyframes stars { + 50% { + opacity: 1; + } +} +@keyframes sky { + 20%, 85% { + filter: brightness(100%); + opacity: 0; + } + 30%, 70% { + filter: brightness(100%); + opacity: 1; + } + 40%, 60% { + filter: brightness(20%); + opacity: 1; + } +} +sunset { + width: 150%; + height: 20rem; + left: -25%; + top: 60rem; + background: radial-gradient(farthest-side at 70% 100%, #ff6400, rgba(255, 255, 255, 0)); + filter: blur(1rem); + -webkit-box-reflect: below 0; + animation: sunset 400s linear infinite; + opacity: 0; + transform: translate3d(0, 20rem, 0); +} +sunset:before { + width: 100rem; + height: 50rem; + left: 55%; + top: -10rem; + border-radius: 50%; + background: radial-gradient(#ff6400, rgba(255, 255, 255, 0)); + opacity: 0.1; +} +sunset:after { + width: 50rem; + height: 25rem; + left: 65%; + top: 5rem; + border-radius: 50%; + background: radial-gradient(#fffd91, rgba(255, 255, 255, 0)); + opacity: 0.1; +} + +@keyframes sunset { + 28%, 75% { + opacity: 1; + transform: translate3d(0, 0, 0); + } + 20%, 35%, 70%, 80% { + opacity: 0; + transform: translate3d(0, 20rem, 0); + } +} +text:nth-of-type(2) { + animation: gameover 400s linear; +} + +@keyframes gameover { + 34.8% { + transform: scale(0); + z-index: 0; + display: block; + opacity: 0; + } + 35%, 100% { + transform: scale(1); + z-index: 410; + transition: all 0.5s 1.5s ease-in-out; + opacity: 1; + } +} +tree:nth-of-type(1) { + width: 10rem; + height: 60.5rem; + top: -10rem; + transform: skew(-2deg); + border-radius: 0 50% 2rem 0; + box-shadow: 0.5rem 0 0 #683f44, 1rem 0 0 #885259, 3rem 0 0 #683f44, 5rem 0 0 #20112a; +} +tree:nth-of-type(1):before { + left: 16rem; + width: 10rem; + height: 60.5rem; + box-shadow: -2rem 0 0 #20112a, -3rem 0 0 #683f44, -4rem 0 0 #20112a; + border-radius: 50% 0 0 2rem; + transform: skew(4deg); +} +tree:nth-of-type(1):after { + top: -4rem; + width: 10rem; + height: 5rem; + border-radius: 60% 60% 40% 40%/70% 70% 40% 40%; + background: #6ebc2f; + box-shadow: inset -1rem -1rem 1rem rgba(104, 63, 68, 0.1), 13rem 0 0 -0.2rem rgba(104, 63, 68, 0.1), 9rem 1rem 0 -1rem rgba(104, 63, 68, 0.1), -2rem -3rem 0 1rem rgba(104, 63, 68, 0.1), 5rem -5rem 0 -0.5rem rgba(104, 63, 68, 0.1), 7rem -4rem 0 rgba(104, 63, 68, 0.1), 11rem -2rem 0 -0.5rem rgba(104, 63, 68, 0.1), 12rem 0 0 -0.2rem #60bc2f, 8rem 1rem 0 -1rem #60bc2f, -3rem -3rem 0 1rem #bcae2f, 4rem -5rem 0 -0.5rem #60bc2f, 6rem -4rem 0 #bcae2f, 10rem -2rem 0 -0.5rem #60bc2f; +} + +tree:nth-of-type(2) { + width: 10rem; + height: 50.5rem; + top: 0; + left: 25rem; + transform: skew(-3deg); + border-radius: 0 50% 2rem 0; + box-shadow: 0.5rem 0 0 #683f44, 1rem 0 0 #885259, 3rem 0 0 #683f44, 5rem 0 0 #20112a; +} +tree:nth-of-type(2):before { + left: 16rem; + width: 10rem; + height: 50.5rem; + box-shadow: -1.5rem 0 0 #20112a, -2.5rem 0 0 #683f44, -3rem 0 0 #20112a; + border-radius: 50% 0 0 2rem; + transform: skew(4deg); +} +tree:nth-of-type(2):after { + top: -4rem; + left: 17rem; + width: 10rem; + height: 5rem; + border-radius: 60% 60% 40% 40%/70% 70% 40% 40%; + background: #6ebc2f; + box-shadow: inset -1rem -1rem 1rem rgba(104, 63, 68, 0.1), -19rem 1rem 0 -0.2rem rgba(104, 63, 68, 0.1), -14rem -4rem 0 -1rem rgba(104, 63, 68, 0.1), -13rem -1rem 0 1rem rgba(104, 63, 68, 0.1), -1rem -4rem 0 -0.5rem rgba(104, 63, 68, 0.1), -4rem -1rem 0 rgba(104, 63, 68, 0.1), -21rem -2rem 0 -0.5rem rgba(104, 63, 68, 0.1), -7rem -5rem 0 1rem rgba(104, 63, 68, 0.1), -20rem 1rem 0 -0.2rem #60bc2f, -15rem -4rem 0 -1rem #60bc2f, -15rem -1rem 0 1rem #bcae2f, -2rem -4rem 0 -0.5rem #60bc2f, -5rem -1rem 0 #bcae2f, -22rem -2rem 0 -0.5rem #60bc2f, -8rem -5rem 0 1rem #bcae2f; +} + +tree i:nth-of-type(1), tree i:nth-of-type(1):before, tree i:nth-of-type(1):after { + width: 2.5rem; + height: 0.5rem; + background: #88d24c; + border-radius: 0 0 100% 100%; + top: -5rem; + filter: drop-shadow(3rem 1.5rem 0 #4b9325) drop-shadow(1.5rem 2.5rem 0 #4b9325); + z-index: 1; + left: -3rem; + opacity: 0.5; +} +tree i:nth-of-type(1):before { + left: 6rem; + top: -1rem; + filter: drop-shadow(2rem 1.5rem 0 #4b9325); +} +tree i:nth-of-type(1):after { + left: 15rem; + top: -1.5rem; + filter: drop-shadow(2.5rem 0.5rem 0 #4b9325) drop-shadow(1rem 2rem 0 #4b9325); +} + +tree:nth-of-type(2) i:nth-of-type(1):after { + left: 20rem; +} + +tree i:nth-of-type(2), tree i:nth-of-type(2):before, tree i:nth-of-type(2):after { + width: 0.5rem; + height: 0.25rem; + background: #bcae2f; + border-radius: 100% 0 100% 0; + top: -2rem; +} +tree i:nth-of-type(2):before { + left: 8rem; + top: -1rem; +} +tree i:nth-of-type(2):after { + left: 20rem; + top: 1.5rem; +} + +[type=radio]:focus ~ div > div > tree i:nth-of-type(1), [type=radio]:focus ~ div > div > tree:after { + animation: shake 0.3s ease-in-out; +} + +[type=radio]:focus ~ div > div > tree > i:nth-of-type(2) { + animation: fall 5s ease-in-out; +} +[type=radio]:focus ~ div > div > tree > i:nth-of-type(2):before { + animation: fall 10s ease-in-out; +} +[type=radio]:focus ~ div > div > tree > i:nth-of-type(2):before { + animation: fall 5s ease-in-out; +} + +@keyframes shake { + 40% { + transform: translate3d(0, 0.5rem, 0); + } + 60% { + transform: translate3d(0, -0.25rem, 0); + } + 80% { + transform: translate3d(0, 0.15rem, 0); + } +} +@keyframes fall { + 100% { + transform: translate3d(0, 15rem, 0); + opacity: 0; + } +} +water { + position: absolute; + top: 78.5rem; + bottom: 0; + left: -100%; + right: -100%; + margin: auto; + width: 100%; + height: 25rem; + background: linear-gradient(rgba(96, 139, 136, 0.5), #f3cece); + z-index: 99; + overflow: hidden; + box-shadow: inset 0 0 5rem 0 rgba(37, 37, 41, 0.5); +} +water:before, water:after, +water i { + width: 80rem; + height: 3rem; + border-radius: 50%; + opacity: 0.2; + right: 0; + margin: auto; + transform: scaleX(1) scaleY(0); + top: -1.5rem; + border: 0.5rem solid #fff; + box-shadow: 0 0 1rem 0.5rem #040b27, inset 0 0 1rem 1rem #040b27, inset 0 0 1rem #fff; +} +water:before { + animation: waves 6s ease-in-out infinite; +} +water:after { + animation: waves 8s 2s ease-in-out infinite; +} + +input:focus ~ water > i { + animation: waves 3s 0.25s ease-out; +} + +@keyframes waves { + 100% { + transform: scaleX(1.5) scaleY(7); + opacity: 0; + } +} +shed > label > i:nth-of-type(5) { + width: 100%; + height: 100%; +} +shed > label > i:nth-of-type(5):after { + width: 2rem; + border-left: 0.5rem solid #252529; + border-right: 0.5rem solid #252529; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 1.5rem, #252529 1.5rem, #252529 2rem); + height: 325%; + left: -1.5rem; + transform: rotate(-1deg); + top: 10.5rem; + display: none; +} +shed > label > i:nth-of-type(5):before { + width: 13rem; + height: 3rem; + top: 10.5rem; + left: 12.5rem; + border: 0.5rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #683f44; + box-shadow: 0 0.25rem 0 #683f44; + transform: rotate(-3deg); + border-radius: 50%; + display: none; +} +shed > label:nth-of-type(n + 5) > i:nth-of-type(5):after { + height: 225%; +} +shed > label:nth-of-type(n + 9) > i:nth-of-type(5):after { + height: 15rem; +} +shed > label:nth-of-type(even) > i:nth-of-type(5):after { + left: 10rem; + transform: rotate(2deg); +} + +.hs.row1.col1:checked ~ div > div > shed > .row1.col1:before { + background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); + width: 90%; + height: 98%; + left: 1.25rem; + border-radius: 0.5rem; + box-shadow: 0 0.5rem 0 0 #20112a; +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1:after { + width: 105%; + height: 5rem; + background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); + top: -2rem; + border-bottom: solid 0.5rem #252529; + box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); + border-radius: 0.5rem; + left: auto; + right: -1rem; +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(4) { + width: 4rem; + height: 4rem; + right: 0; + margin: auto; + background: rgba(79, 1, 14, 0.3); + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); + transform: scale(0.5); +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(4):before { + width: 3.4rem; + height: 0.5rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(4):after { + width: 0.5rem; + height: 3.4rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(3) { + width: 4rem; + height: 9rem; + right: 0; + margin: auto; + background: #bc502f; + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(3):after { + left: -4rem; + border: 1rem solid rgba(255, 255, 255, 0); + top: -11rem; + border-bottom-color: #252529; + transform: rotate(-3deg); + height: 4rem; + box-shadow: 0 3.7rem 0 -0.5rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(3):before { + width: 14.5rem; + height: 4.5rem; + border-top: 0.5rem solid #20112a; + border-bottom: 0.5rem solid #20112a; + top: 5rem; + left: -5rem; + background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); + border-radius: 0.5rem; +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(2):before { + width: 1rem; + height: 9rem; + background: #20112a; + top: -7rem; +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1:nth-of-type(odd) > i:nth-of-type(2) { + width: 1rem; + background: #20112a; + height: 3rem; + border-radius: 0.25rem; + top: 18.5rem; + left: 10rem; + transform: rotate(5deg); +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1:nth-of-type(odd) > i:nth-of-type(2):before { + transform: rotate(-45deg); + left: -3rem; + border-radius: 0 1rem 0 0; +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1:nth-of-type(odd) > i:nth-of-type(2):after { + width: 1rem; + height: 4rem; + transform: rotate(45deg); + background: #20112a; + top: -6.5rem; + left: -2rem; + border-radius: 1rem 0 0 0; +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1:nth-of-type(even) > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1:nth-of-type(even) > i:nth-of-type(1) { + left: 11rem; +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1:nth-of-type(even) > i:nth-of-type(2):before { + transform: rotate(45deg); + left: 5rem; + border-radius: 1rem 0 0 0; + top: 11rem; +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(1):before, .hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(1):after { + top: -7.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):after { + display: block; +} + +.hs.row1.col1:checked ~ div > div > shed > .row2.col1:after, .hs.row1.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3):after, .hs.row1.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(1) { + display: none; +} + +.hs.row1.col1:checked ~ div > div > shed > .row0.col1 > i:nth-of-type(3):before, .hs.row1.col1:checked ~ div > div > shed > .row0.col1 > i:nth-of-type(2), .hs.row1.col1:checked ~ div > div > shed > .row0.col1 > i:nth-of-type(5):after { + display: none; +} +.hs.row1.col1:checked ~ div > div > shed > .row0.col1 > i:nth-of-type(3) { + height: 0; +} +.hs.row1.col1:checked ~ div > div > shed > .row0.col1 > i:nth-of-type(4) { + transform: scale(1); + right: 2rem; + left: 1rem; +} + +.hs.shed.row1.col-2:not(:checked) ~ .hs.row1.col1:checked ~ .shed.hs.row1.col2:not(:checked) ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.shed.row1.col-2:not(:checked) ~ .hs.row1.col1:checked ~ .shed.hs.row1.col2:not(:checked) ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col1:before { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col1:before { + height: 12.5rem; + box-shadow: none; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(3) { + height: 0; +} +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(4) { + transform: scale(1); + right: 1rem; + left: 2rem; +} +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):after { + display: none; +} + +.hs.row3.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):after { + display: none; +} + +.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row2.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):after { + display: none !important; +} + +.hs.row1.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(1), .hs.row1.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(3):after { + display: none; +} + +.hs.row1.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col1:after, +.hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col1:after { + width: 110%; + right: -1.25rem; +} + +.hs.row1.col2:checked ~ div > div > shed > .row1.col2:before { + background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); + width: 90%; + height: 98%; + left: 1.25rem; + border-radius: 0.5rem; + box-shadow: 0 0.5rem 0 0 #20112a; +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2:after { + width: 105%; + height: 5rem; + background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); + top: -2rem; + border-bottom: solid 0.5rem #252529; + box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); + border-radius: 0.5rem; + left: auto; + right: -1rem; +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(4) { + width: 4rem; + height: 4rem; + right: 0; + margin: auto; + background: rgba(79, 1, 14, 0.3); + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); + transform: scale(0.5); +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(4):before { + width: 3.4rem; + height: 0.5rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(4):after { + width: 0.5rem; + height: 3.4rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3) { + width: 4rem; + height: 9rem; + right: 0; + margin: auto; + background: #bc502f; + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):after { + left: -4rem; + border: 1rem solid rgba(255, 255, 255, 0); + top: -11rem; + border-bottom-color: #252529; + transform: rotate(-3deg); + height: 4rem; + box-shadow: 0 3.7rem 0 -0.5rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):before { + width: 14.5rem; + height: 4.5rem; + border-top: 0.5rem solid #20112a; + border-bottom: 0.5rem solid #20112a; + top: 5rem; + left: -5rem; + background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); + border-radius: 0.5rem; +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(2):before { + width: 1rem; + height: 9rem; + background: #20112a; + top: -7rem; +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2:nth-of-type(odd) > i:nth-of-type(2) { + width: 1rem; + background: #20112a; + height: 3rem; + border-radius: 0.25rem; + top: 18.5rem; + left: 10rem; + transform: rotate(5deg); +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2:nth-of-type(odd) > i:nth-of-type(2):before { + transform: rotate(-45deg); + left: -3rem; + border-radius: 0 1rem 0 0; +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2:nth-of-type(odd) > i:nth-of-type(2):after { + width: 1rem; + height: 4rem; + transform: rotate(45deg); + background: #20112a; + top: -6.5rem; + left: -2rem; + border-radius: 1rem 0 0 0; +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2:nth-of-type(even) > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2:nth-of-type(even) > i:nth-of-type(1) { + left: 11rem; +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2:nth-of-type(even) > i:nth-of-type(2):before { + transform: rotate(45deg); + left: 5rem; + border-radius: 1rem 0 0 0; + top: 11rem; +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1):before, .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1):after { + top: -7.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: block; +} + +.hs.row1.col2:checked ~ div > div > shed > .row2.col2:after, .hs.row1.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after, .hs.row1.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1) { + display: none; +} + +.hs.row1.col2:checked ~ div > div > shed > .row0.col2 > i:nth-of-type(3):before, .hs.row1.col2:checked ~ div > div > shed > .row0.col2 > i:nth-of-type(2), .hs.row1.col2:checked ~ div > div > shed > .row0.col2 > i:nth-of-type(5):after { + display: none; +} +.hs.row1.col2:checked ~ div > div > shed > .row0.col2 > i:nth-of-type(3) { + height: 0; +} +.hs.row1.col2:checked ~ div > div > shed > .row0.col2 > i:nth-of-type(4) { + transform: scale(1); + right: 2rem; + left: 2rem; +} + +.hs.shed.row1.col-1:not(:checked) ~ .hs.row1.col2:checked ~ .shed.hs.row1.col3:not(:checked) ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.shed.row1.col-1:not(:checked) ~ .hs.row1.col2:checked ~ .shed.hs.row1.col3:not(:checked) ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col2:before { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col2:before { + height: 12.5rem; + box-shadow: none; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3) { + height: 0; +} +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(4) { + transform: scale(1); + right: 2rem; + left: 2rem; +} +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row3.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row2.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: none !important; +} + +.hs.row1.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1), .hs.row1.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):after { + display: none; +} + +.hs.row1.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col2:after, +.hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col2:after { + width: 110%; + right: -1.25rem; +} + +.hs.row1.col3:checked ~ div > div > shed > .row1.col3:before { + background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); + width: 90%; + height: 98%; + left: 1.25rem; + border-radius: 0.5rem; + box-shadow: 0 0.5rem 0 0 #20112a; +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3:after { + width: 105%; + height: 5rem; + background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); + top: -2rem; + border-bottom: solid 0.5rem #252529; + box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); + border-radius: 0.5rem; + left: auto; + right: -1rem; +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(4) { + width: 4rem; + height: 4rem; + right: 0; + margin: auto; + background: rgba(79, 1, 14, 0.3); + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); + transform: scale(0.5); +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(4):before { + width: 3.4rem; + height: 0.5rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(4):after { + width: 0.5rem; + height: 3.4rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3) { + width: 4rem; + height: 9rem; + right: 0; + margin: auto; + background: #bc502f; + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):after { + left: -4rem; + border: 1rem solid rgba(255, 255, 255, 0); + top: -11rem; + border-bottom-color: #252529; + transform: rotate(-3deg); + height: 4rem; + box-shadow: 0 3.7rem 0 -0.5rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):before { + width: 14.5rem; + height: 4.5rem; + border-top: 0.5rem solid #20112a; + border-bottom: 0.5rem solid #20112a; + top: 5rem; + left: -5rem; + background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); + border-radius: 0.5rem; +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(2):before { + width: 1rem; + height: 9rem; + background: #20112a; + top: -7rem; +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3:nth-of-type(odd) > i:nth-of-type(2) { + width: 1rem; + background: #20112a; + height: 3rem; + border-radius: 0.25rem; + top: 18.5rem; + left: 10rem; + transform: rotate(5deg); +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3:nth-of-type(odd) > i:nth-of-type(2):before { + transform: rotate(-45deg); + left: -3rem; + border-radius: 0 1rem 0 0; +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3:nth-of-type(odd) > i:nth-of-type(2):after { + width: 1rem; + height: 4rem; + transform: rotate(45deg); + background: #20112a; + top: -6.5rem; + left: -2rem; + border-radius: 1rem 0 0 0; +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3:nth-of-type(even) > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3:nth-of-type(even) > i:nth-of-type(1) { + left: 11rem; +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3:nth-of-type(even) > i:nth-of-type(2):before { + transform: rotate(45deg); + left: 5rem; + border-radius: 1rem 0 0 0; + top: 11rem; +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1):before, .hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1):after { + top: -7.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(5):after { + display: block; +} + +.hs.row1.col3:checked ~ div > div > shed > .row2.col3:after, .hs.row1.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):after, .hs.row1.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1) { + display: none; +} + +.hs.row1.col3:checked ~ div > div > shed > .row0.col3 > i:nth-of-type(3):before, .hs.row1.col3:checked ~ div > div > shed > .row0.col3 > i:nth-of-type(2), .hs.row1.col3:checked ~ div > div > shed > .row0.col3 > i:nth-of-type(5):after { + display: none; +} +.hs.row1.col3:checked ~ div > div > shed > .row0.col3 > i:nth-of-type(3) { + height: 0; +} +.hs.row1.col3:checked ~ div > div > shed > .row0.col3 > i:nth-of-type(4) { + transform: scale(1); + right: 1rem; + left: 2rem; +} + +.hs.shed.row1.col0:not(:checked) ~ .hs.row1.col3:checked ~ .shed.hs.row1.col4:not(:checked) ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.shed.row1.col0:not(:checked) ~ .hs.row1.col3:checked ~ .shed.hs.row1.col4:not(:checked) ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col3:before { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col3:before { + height: 12.5rem; + box-shadow: none; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3) { + height: 0; +} +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(4) { + transform: scale(1); + right: 2rem; + left: 2rem; +} +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(5):after { + display: none; +} + +.hs.row3.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(5):after { + display: none; +} + +.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row2.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(5):after { + display: none !important; +} + +.hs.row1.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1), .hs.row1.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):after { + display: none; +} + +.hs.row1.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col3:after, +.hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col3:after { + width: 110%; + right: -1.25rem; +} + +.hs.row1.col4:checked ~ div > div > shed > .row1.col4:before { + background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); + width: 90%; + height: 98%; + left: 1.25rem; + border-radius: 0.5rem; + box-shadow: 0 0.5rem 0 0 #20112a; +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4:after { + width: 105%; + height: 5rem; + background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); + top: -2rem; + border-bottom: solid 0.5rem #252529; + box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); + border-radius: 0.5rem; + left: auto; + right: -1rem; +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(4) { + width: 4rem; + height: 4rem; + right: 0; + margin: auto; + background: rgba(79, 1, 14, 0.3); + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); + transform: scale(0.5); +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(4):before { + width: 3.4rem; + height: 0.5rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(4):after { + width: 0.5rem; + height: 3.4rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(3) { + width: 4rem; + height: 9rem; + right: 0; + margin: auto; + background: #bc502f; + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(3):after { + left: -4rem; + border: 1rem solid rgba(255, 255, 255, 0); + top: -11rem; + border-bottom-color: #252529; + transform: rotate(-3deg); + height: 4rem; + box-shadow: 0 3.7rem 0 -0.5rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(3):before { + width: 14.5rem; + height: 4.5rem; + border-top: 0.5rem solid #20112a; + border-bottom: 0.5rem solid #20112a; + top: 5rem; + left: -5rem; + background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); + border-radius: 0.5rem; +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(2):before { + width: 1rem; + height: 9rem; + background: #20112a; + top: -7rem; +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4:nth-of-type(odd) > i:nth-of-type(2) { + width: 1rem; + background: #20112a; + height: 3rem; + border-radius: 0.25rem; + top: 18.5rem; + left: 10rem; + transform: rotate(5deg); +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4:nth-of-type(odd) > i:nth-of-type(2):before { + transform: rotate(-45deg); + left: -3rem; + border-radius: 0 1rem 0 0; +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4:nth-of-type(odd) > i:nth-of-type(2):after { + width: 1rem; + height: 4rem; + transform: rotate(45deg); + background: #20112a; + top: -6.5rem; + left: -2rem; + border-radius: 1rem 0 0 0; +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4:nth-of-type(even) > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4:nth-of-type(even) > i:nth-of-type(1) { + left: 11rem; +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4:nth-of-type(even) > i:nth-of-type(2):before { + transform: rotate(45deg); + left: 5rem; + border-radius: 1rem 0 0 0; + top: 11rem; +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(1):before, .hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(1):after { + top: -7.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(5):after { + display: block; +} + +.hs.row1.col4:checked ~ div > div > shed > .row2.col4:after, .hs.row1.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3):after, .hs.row1.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(1) { + display: none; +} + +.hs.row1.col4:checked ~ div > div > shed > .row0.col4 > i:nth-of-type(3):before, .hs.row1.col4:checked ~ div > div > shed > .row0.col4 > i:nth-of-type(2), .hs.row1.col4:checked ~ div > div > shed > .row0.col4 > i:nth-of-type(5):after { + display: none; +} +.hs.row1.col4:checked ~ div > div > shed > .row0.col4 > i:nth-of-type(3) { + height: 0; +} +.hs.row1.col4:checked ~ div > div > shed > .row0.col4 > i:nth-of-type(4) { + transform: scale(1); + right: 2rem; + left: 2rem; +} + +.hs.shed.row1.col1:not(:checked) ~ .hs.row1.col4:checked ~ .shed.hs.row1.col5:not(:checked) ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.shed.row1.col1:not(:checked) ~ .hs.row1.col4:checked ~ .shed.hs.row1.col5:not(:checked) ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4:before { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col4:before { + height: 12.5rem; + box-shadow: none; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(3) { + height: 0; +} +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(4) { + transform: scale(1); + right: 2rem; + left: 2rem; +} +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(5):after { + display: none; +} + +.hs.row3.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(5):after { + display: none; +} + +.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row2.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(5):after { + display: none !important; +} + +.hs.row1.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(1), .hs.row1.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(3):after { + display: none; +} + +.hs.row1.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col4:after, +.hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col4:after { + width: 110%; + right: -1.25rem; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1:before { + width: 110%; +} +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2:after { + width: 120%; + left: -1.25rem; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2:before { + width: 110%; +} +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col3:after { + width: 120%; + left: -1.25rem; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3:before { + width: 110%; +} +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4:after { + width: 120%; + left: -1.25rem; +} + +.hs.row1.col2:checked ~ .hs.shed.row1.col3:not(:checked) ~ div > div > shed > .row1.col2 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row1.col2:checked ~ .hs.shed.row1.col3:not(:checked) ~ div > div > shed > .row1.col2 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row1.col4:checked ~ .hs.shed.row1.col5:not(:checked) ~ div > div > shed > .row1.col4 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row1.col4:checked ~ .hs.shed.row1.col5:not(:checked) ~ div > div > shed > .row1.col4 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):after, .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1) { + display: none; +} +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):before { + width: 10.25rem; +} + +.hs.row1.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):after { + left: 6rem; + transform: rotate(3deg); +} +.hs.row1.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1) { + left: 10rem; +} +.hs.row1.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + left: -2.5rem; + transform: rotate(-3deg); +} + +.hs.row1.col2:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):after, .hs.row1.col2:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1), +.hs.row1.col2:checked ~ .hs.row1.col-3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):after, +.hs.row1.col2:checked ~ .hs.row1.col-3:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(1) { + display: none; +} + +.hs.row1.col2:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + left: 10rem; + transform: rotate(2deg); +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):after, .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1) { + display: none; +} +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):before { + width: 10.25rem; +} + +.hs.row1.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):after { + left: 6rem; + transform: rotate(3deg); +} +.hs.row1.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1) { + left: 10rem; +} +.hs.row1.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(5):after { + left: -2.5rem; + transform: rotate(-3deg); +} + +.hs.row1.col3:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):after, .hs.row1.col3:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1), +.hs.row1.col3:checked ~ .hs.row1.col-2:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):after, +.hs.row1.col3:checked ~ .hs.row1.col-2:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(1) { + display: none; +} + +.hs.row1.col3:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(5):after { + left: 10rem; + transform: rotate(2deg); +} + +.hs.shed.row1.col1:checked ~ .hs.shed.row1.col2:not(:checked) ~ .hs.shed.row1.col3:not(:checked) ~ .hs.shed.row1.col4:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):before { + display: block; + width: 210%; +} + +.hs.shed.row1.col1:checked ~ .hs.shed.row1.col2:not(:checked) ~ .hs.shed.row1.col3:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):before, +.hs.shed.row1.col2:checked ~ .hs.shed.row1.col3:not(:checked) ~ .hs.shed.row1.col4:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):before { + display: block; + width: 110%; +} + +.hs.row2.col2:checked ~ .hs.shed.row1.col1:checked ~ .hs.shed.row1.col2:not(:checked) ~ .hs.shed.row1.col3:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):before, +.hs.row2.col3:checked ~ .hs.shed.row1.col2:checked ~ .hs.shed.row1.col3:not(:checked) ~ .hs.shed.row1.col4:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):before, +.hs.row2.col3:checked ~ .hs.shed.row1.col1:checked ~ .hs.shed.row1.col2:not(:checked) ~ .hs.shed.row1.col3:not(:checked) ~ .hs.shed.row1.col4:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):before, +.hs.row2.col2:checked ~ .hs.shed.row1.col1:checked ~ .hs.shed.row1.col2:not(:checked) ~ .hs.shed.row1.col3:not(:checked) ~ .hs.shed.row1.col4:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):before, +.hs.shed.row2.col1:checked ~ .hs.shed.row1.col1:checked ~ .hs.shed.row1.col2:not(:checked) ~ .hs.shed.row1.col3:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):before, +.hs.shed.row2.col2:checked ~ .hs.shed.row1.col2:checked ~ .hs.shed.row1.col3:not(:checked) ~ .hs.shed.row1.col4:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):before { + top: 1rem; + border: none; +} + +.hs.row2.col1:checked ~ div > div > shed > .row2.col1:before { + background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); + width: 90%; + height: 98%; + left: 1.25rem; + border-radius: 0.5rem; + box-shadow: 0 0.5rem 0 0 #20112a; +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1:after { + width: 105%; + height: 5rem; + background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); + top: -2rem; + border-bottom: solid 0.5rem #252529; + box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); + border-radius: 0.5rem; + left: auto; + right: -1rem; +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(4) { + width: 4rem; + height: 4rem; + right: 0; + margin: auto; + background: rgba(79, 1, 14, 0.3); + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); + transform: scale(0.5); +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(4):before { + width: 3.4rem; + height: 0.5rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(4):after { + width: 0.5rem; + height: 3.4rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3) { + width: 4rem; + height: 9rem; + right: 0; + margin: auto; + background: #bc502f; + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3):after { + left: -4rem; + border: 1rem solid rgba(255, 255, 255, 0); + top: -11rem; + border-bottom-color: #252529; + transform: rotate(-3deg); + height: 4rem; + box-shadow: 0 3.7rem 0 -0.5rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3):before { + width: 14.5rem; + height: 4.5rem; + border-top: 0.5rem solid #20112a; + border-bottom: 0.5rem solid #20112a; + top: 5rem; + left: -5rem; + background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); + border-radius: 0.5rem; +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(2):before { + width: 1rem; + height: 9rem; + background: #20112a; + top: -7rem; +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1:nth-of-type(odd) > i:nth-of-type(2) { + width: 1rem; + background: #20112a; + height: 3rem; + border-radius: 0.25rem; + top: 18.5rem; + left: 10rem; + transform: rotate(5deg); +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1:nth-of-type(odd) > i:nth-of-type(2):before { + transform: rotate(-45deg); + left: -3rem; + border-radius: 0 1rem 0 0; +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1:nth-of-type(odd) > i:nth-of-type(2):after { + width: 1rem; + height: 4rem; + transform: rotate(45deg); + background: #20112a; + top: -6.5rem; + left: -2rem; + border-radius: 1rem 0 0 0; +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1:nth-of-type(even) > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1:nth-of-type(even) > i:nth-of-type(1) { + left: 11rem; +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1:nth-of-type(even) > i:nth-of-type(2):before { + transform: rotate(45deg); + left: 5rem; + border-radius: 1rem 0 0 0; + top: 11rem; +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(1):before, .hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(1):after { + top: -7.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):after { + display: block; +} + +.hs.row2.col1:checked ~ div > div > shed > .row3.col1:after, .hs.row2.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(3):after, .hs.row2.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(1) { + display: none; +} + +.hs.row2.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(3):before, .hs.row2.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(2), .hs.row2.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(5):after { + display: none; +} +.hs.row2.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(3) { + height: 0; +} +.hs.row2.col1:checked ~ div > div > shed > .row1.col1 > i:nth-of-type(4) { + transform: scale(1); + right: 1rem; + left: 2rem; +} + +.hs.shed.row2.col-2:not(:checked) ~ .hs.row2.col1:checked ~ .shed.hs.row2.col2:not(:checked) ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.shed.row2.col-2:not(:checked) ~ .hs.row2.col1:checked ~ .shed.hs.row2.col2:not(:checked) ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col1:before { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col1:before { + height: 12.5rem; + box-shadow: none; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3) { + height: 0; +} +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(4) { + transform: scale(1); + right: 2rem; + left: 1rem; +} +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):after { + display: none; +} + +.hs.row4.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):after { + display: none; +} + +.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row3.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):after { + display: none !important; +} + +.hs.row2.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(1), .hs.row2.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3):after { + display: none; +} + +.hs.row2.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col1:after, +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col1:after { + width: 110%; + right: -1.25rem; +} + +.hs.row2.col2:checked ~ div > div > shed > .row2.col2:before { + background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); + width: 90%; + height: 98%; + left: 1.25rem; + border-radius: 0.5rem; + box-shadow: 0 0.5rem 0 0 #20112a; +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2:after { + width: 105%; + height: 5rem; + background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); + top: -2rem; + border-bottom: solid 0.5rem #252529; + box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); + border-radius: 0.5rem; + left: auto; + right: -1rem; +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(4) { + width: 4rem; + height: 4rem; + right: 0; + margin: auto; + background: rgba(79, 1, 14, 0.3); + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); + transform: scale(0.5); +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(4):before { + width: 3.4rem; + height: 0.5rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(4):after { + width: 0.5rem; + height: 3.4rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3) { + width: 4rem; + height: 9rem; + right: 0; + margin: auto; + background: #bc502f; + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after { + left: -4rem; + border: 1rem solid rgba(255, 255, 255, 0); + top: -11rem; + border-bottom-color: #252529; + transform: rotate(-3deg); + height: 4rem; + box-shadow: 0 3.7rem 0 -0.5rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):before { + width: 14.5rem; + height: 4.5rem; + border-top: 0.5rem solid #20112a; + border-bottom: 0.5rem solid #20112a; + top: 5rem; + left: -5rem; + background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); + border-radius: 0.5rem; +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(2):before { + width: 1rem; + height: 9rem; + background: #20112a; + top: -7rem; +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2:nth-of-type(odd) > i:nth-of-type(2) { + width: 1rem; + background: #20112a; + height: 3rem; + border-radius: 0.25rem; + top: 18.5rem; + left: 10rem; + transform: rotate(5deg); +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2:nth-of-type(odd) > i:nth-of-type(2):before { + transform: rotate(-45deg); + left: -3rem; + border-radius: 0 1rem 0 0; +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2:nth-of-type(odd) > i:nth-of-type(2):after { + width: 1rem; + height: 4rem; + transform: rotate(45deg); + background: #20112a; + top: -6.5rem; + left: -2rem; + border-radius: 1rem 0 0 0; +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2:nth-of-type(even) > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2:nth-of-type(even) > i:nth-of-type(1) { + left: 11rem; +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2:nth-of-type(even) > i:nth-of-type(2):before { + transform: rotate(45deg); + left: 5rem; + border-radius: 1rem 0 0 0; + top: 11rem; +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1):before, .hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1):after { + top: -7.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):after { + display: block; +} + +.hs.row2.col2:checked ~ div > div > shed > .row3.col2:after, .hs.row2.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after, .hs.row2.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1) { + display: none; +} + +.hs.row2.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3):before, .hs.row2.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(2), .hs.row2.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: none; +} +.hs.row2.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(3) { + height: 0; +} +.hs.row2.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(4) { + transform: scale(1); + right: 1rem; + left: 1rem; +} + +.hs.shed.row2.col-1:not(:checked) ~ .hs.row2.col2:checked ~ .shed.hs.row2.col3:not(:checked) ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.shed.row2.col-1:not(:checked) ~ .hs.row2.col2:checked ~ .shed.hs.row2.col3:not(:checked) ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col2:before { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2:before { + height: 12.5rem; + box-shadow: none; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3) { + height: 0; +} +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(4) { + transform: scale(1); + right: 1rem; + left: 1rem; +} +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row4.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row3.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):after { + display: none !important; +} + +.hs.row2.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1), .hs.row2.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after { + display: none; +} + +.hs.row2.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col2:after, +.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col2:after { + width: 110%; + right: -1.25rem; +} + +.hs.row2.col3:checked ~ div > div > shed > .row2.col3:before { + background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); + width: 90%; + height: 98%; + left: 1.25rem; + border-radius: 0.5rem; + box-shadow: 0 0.5rem 0 0 #20112a; +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3:after { + width: 105%; + height: 5rem; + background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); + top: -2rem; + border-bottom: solid 0.5rem #252529; + box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); + border-radius: 0.5rem; + left: auto; + right: -1rem; +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(4) { + width: 4rem; + height: 4rem; + right: 0; + margin: auto; + background: rgba(79, 1, 14, 0.3); + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); + transform: scale(0.5); +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(4):before { + width: 3.4rem; + height: 0.5rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(4):after { + width: 0.5rem; + height: 3.4rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3) { + width: 4rem; + height: 9rem; + right: 0; + margin: auto; + background: #bc502f; + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):after { + left: -4rem; + border: 1rem solid rgba(255, 255, 255, 0); + top: -11rem; + border-bottom-color: #252529; + transform: rotate(-3deg); + height: 4rem; + box-shadow: 0 3.7rem 0 -0.5rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):before { + width: 14.5rem; + height: 4.5rem; + border-top: 0.5rem solid #20112a; + border-bottom: 0.5rem solid #20112a; + top: 5rem; + left: -5rem; + background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); + border-radius: 0.5rem; +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(2):before { + width: 1rem; + height: 9rem; + background: #20112a; + top: -7rem; +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3:nth-of-type(odd) > i:nth-of-type(2) { + width: 1rem; + background: #20112a; + height: 3rem; + border-radius: 0.25rem; + top: 18.5rem; + left: 10rem; + transform: rotate(5deg); +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3:nth-of-type(odd) > i:nth-of-type(2):before { + transform: rotate(-45deg); + left: -3rem; + border-radius: 0 1rem 0 0; +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3:nth-of-type(odd) > i:nth-of-type(2):after { + width: 1rem; + height: 4rem; + transform: rotate(45deg); + background: #20112a; + top: -6.5rem; + left: -2rem; + border-radius: 1rem 0 0 0; +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3:nth-of-type(even) > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3:nth-of-type(even) > i:nth-of-type(1) { + left: 11rem; +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3:nth-of-type(even) > i:nth-of-type(2):before { + transform: rotate(45deg); + left: 5rem; + border-radius: 1rem 0 0 0; + top: 11rem; +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1):before, .hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1):after { + top: -7.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(5):after { + display: block; +} + +.hs.row2.col3:checked ~ div > div > shed > .row3.col3:after, .hs.row2.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):after, .hs.row2.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1) { + display: none; +} + +.hs.row2.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3):before, .hs.row2.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(2), .hs.row2.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(5):after { + display: none; +} +.hs.row2.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(3) { + height: 0; +} +.hs.row2.col3:checked ~ div > div > shed > .row1.col3 > i:nth-of-type(4) { + transform: scale(1); + right: 2rem; + left: 2rem; +} + +.hs.shed.row2.col0:not(:checked) ~ .hs.row2.col3:checked ~ .shed.hs.row2.col4:not(:checked) ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.shed.row2.col0:not(:checked) ~ .hs.row2.col3:checked ~ .shed.hs.row2.col4:not(:checked) ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3:before { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col3:before { + height: 12.5rem; + box-shadow: none; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3) { + height: 0; +} +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(4) { + transform: scale(1); + right: 2rem; + left: 1rem; +} +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(5):after { + display: none; +} + +.hs.row4.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(5):after { + display: none; +} + +.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row3.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(5):after { + display: none !important; +} + +.hs.row2.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1), .hs.row2.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):after { + display: none; +} + +.hs.row2.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col3:after, +.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col3:after { + width: 110%; + right: -1.25rem; +} + +.hs.row2.col4:checked ~ div > div > shed > .row2.col4:before { + background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); + width: 90%; + height: 98%; + left: 1.25rem; + border-radius: 0.5rem; + box-shadow: 0 0.5rem 0 0 #20112a; +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4:after { + width: 105%; + height: 5rem; + background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); + top: -2rem; + border-bottom: solid 0.5rem #252529; + box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); + border-radius: 0.5rem; + left: auto; + right: -1rem; +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(4) { + width: 4rem; + height: 4rem; + right: 0; + margin: auto; + background: rgba(79, 1, 14, 0.3); + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); + transform: scale(0.5); +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(4):before { + width: 3.4rem; + height: 0.5rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(4):after { + width: 0.5rem; + height: 3.4rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3) { + width: 4rem; + height: 9rem; + right: 0; + margin: auto; + background: #bc502f; + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3):after { + left: -4rem; + border: 1rem solid rgba(255, 255, 255, 0); + top: -11rem; + border-bottom-color: #252529; + transform: rotate(-3deg); + height: 4rem; + box-shadow: 0 3.7rem 0 -0.5rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3):before { + width: 14.5rem; + height: 4.5rem; + border-top: 0.5rem solid #20112a; + border-bottom: 0.5rem solid #20112a; + top: 5rem; + left: -5rem; + background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); + border-radius: 0.5rem; +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(2):before { + width: 1rem; + height: 9rem; + background: #20112a; + top: -7rem; +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4:nth-of-type(odd) > i:nth-of-type(2) { + width: 1rem; + background: #20112a; + height: 3rem; + border-radius: 0.25rem; + top: 18.5rem; + left: 10rem; + transform: rotate(5deg); +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4:nth-of-type(odd) > i:nth-of-type(2):before { + transform: rotate(-45deg); + left: -3rem; + border-radius: 0 1rem 0 0; +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4:nth-of-type(odd) > i:nth-of-type(2):after { + width: 1rem; + height: 4rem; + transform: rotate(45deg); + background: #20112a; + top: -6.5rem; + left: -2rem; + border-radius: 1rem 0 0 0; +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4:nth-of-type(even) > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4:nth-of-type(even) > i:nth-of-type(1) { + left: 11rem; +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4:nth-of-type(even) > i:nth-of-type(2):before { + transform: rotate(45deg); + left: 5rem; + border-radius: 1rem 0 0 0; + top: 11rem; +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(1):before, .hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(1):after { + top: -7.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(5):after { + display: block; +} + +.hs.row2.col4:checked ~ div > div > shed > .row3.col4:after, .hs.row2.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(3):after, .hs.row2.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(1) { + display: none; +} + +.hs.row2.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(3):before, .hs.row2.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(2), .hs.row2.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(5):after { + display: none; +} +.hs.row2.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(3) { + height: 0; +} +.hs.row2.col4:checked ~ div > div > shed > .row1.col4 > i:nth-of-type(4) { + transform: scale(1); + right: 2rem; + left: 2rem; +} + +.hs.shed.row2.col1:not(:checked) ~ .hs.row2.col4:checked ~ .shed.hs.row2.col5:not(:checked) ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.shed.row2.col1:not(:checked) ~ .hs.row2.col4:checked ~ .shed.hs.row2.col5:not(:checked) ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4:before { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4:before { + height: 12.5rem; + box-shadow: none; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3) { + height: 0; +} +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(4) { + transform: scale(1); + right: 1rem; + left: 1rem; +} +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(5):after { + display: none; +} + +.hs.row4.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(5):after { + display: none; +} + +.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row3.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(5):after { + display: none !important; +} + +.hs.row2.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(1), .hs.row2.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3):after { + display: none; +} + +.hs.row2.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col4:after, +.hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col4:after { + width: 110%; + right: -1.25rem; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1:before { + width: 110%; +} +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col2:after { + width: 120%; + left: -1.25rem; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2:before { + width: 110%; +} +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col3:after { + width: 120%; + left: -1.25rem; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3:before { + width: 110%; +} +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col4:after { + width: 120%; + left: -1.25rem; +} + +.hs.row2.col2:checked ~ .hs.shed.row2.col3:not(:checked) ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row2.col2:checked ~ .hs.shed.row2.col3:not(:checked) ~ div > div > shed > .row2.col2 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row2.col4:checked ~ .hs.shed.row2.col5:not(:checked) ~ div > div > shed > .row2.col4 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row2.col4:checked ~ .hs.shed.row2.col5:not(:checked) ~ div > div > shed > .row2.col4 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after, .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1) { + display: none; +} +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):before { + width: 10.25rem; +} + +.hs.row2.col2:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after { + left: 6rem; + transform: rotate(3deg); +} +.hs.row2.col2:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1) { + left: 10rem; +} +.hs.row2.col2:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):after { + left: -2.5rem; + transform: rotate(-3deg); +} + +.hs.row2.col2:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after, .hs.row2.col2:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1), +.hs.row2.col2:checked ~ .hs.row2.col-3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):after, +.hs.row2.col2:checked ~ .hs.row2.col-3:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(1) { + display: none; +} + +.hs.row2.col2:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):after { + left: 10rem; + transform: rotate(2deg); +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):after, .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1) { + display: none; +} +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):before { + width: 10.25rem; +} + +.hs.row2.col3:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):after { + left: 6rem; + transform: rotate(3deg); +} +.hs.row2.col3:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1) { + left: 10rem; +} +.hs.row2.col3:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(5):after { + left: -2.5rem; + transform: rotate(-3deg); +} + +.hs.row2.col3:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):after, .hs.row2.col3:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1), +.hs.row2.col3:checked ~ .hs.row2.col-2:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):after, +.hs.row2.col3:checked ~ .hs.row2.col-2:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(1) { + display: none; +} + +.hs.row2.col3:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(5):after { + left: 10rem; + transform: rotate(2deg); +} + +.hs.shed.row2.col1:checked ~ .hs.shed.row2.col2:not(:checked) ~ .hs.shed.row2.col3:not(:checked) ~ .hs.shed.row2.col4:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):before { + display: block; + width: 210%; +} + +.hs.shed.row2.col1:checked ~ .hs.shed.row2.col2:not(:checked) ~ .hs.shed.row2.col3:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):before, +.hs.shed.row2.col2:checked ~ .hs.shed.row2.col3:not(:checked) ~ .hs.shed.row2.col4:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):before { + display: block; + width: 110%; +} + +.hs.row3.col2:checked ~ .hs.shed.row2.col1:checked ~ .hs.shed.row2.col2:not(:checked) ~ .hs.shed.row2.col3:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):before, +.hs.row3.col3:checked ~ .hs.shed.row2.col2:checked ~ .hs.shed.row2.col3:not(:checked) ~ .hs.shed.row2.col4:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):before, +.hs.row3.col3:checked ~ .hs.shed.row2.col1:checked ~ .hs.shed.row2.col2:not(:checked) ~ .hs.shed.row2.col3:not(:checked) ~ .hs.shed.row2.col4:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):before, +.hs.row3.col2:checked ~ .hs.shed.row2.col1:checked ~ .hs.shed.row2.col2:not(:checked) ~ .hs.shed.row2.col3:not(:checked) ~ .hs.shed.row2.col4:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):before, +.hs.shed.row3.col1:checked ~ .hs.shed.row2.col1:checked ~ .hs.shed.row2.col2:not(:checked) ~ .hs.shed.row2.col3:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):before, +.hs.shed.row3.col2:checked ~ .hs.shed.row2.col2:checked ~ .hs.shed.row2.col3:not(:checked) ~ .hs.shed.row2.col4:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):before { + top: 1rem; + border: none; +} + +.hs.row3.col1:checked ~ div > div > shed > .row3.col1:before { + background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); + width: 90%; + height: 98%; + left: 1.25rem; + border-radius: 0.5rem; + box-shadow: 0 0.5rem 0 0 #20112a; +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1:after { + width: 105%; + height: 5rem; + background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); + top: -2rem; + border-bottom: solid 0.5rem #252529; + box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); + border-radius: 0.5rem; + left: auto; + right: -1rem; +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(4) { + width: 4rem; + height: 4rem; + right: 0; + margin: auto; + background: rgba(79, 1, 14, 0.3); + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); + transform: scale(0.5); +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(4):before { + width: 3.4rem; + height: 0.5rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(4):after { + width: 0.5rem; + height: 3.4rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(3) { + width: 4rem; + height: 9rem; + right: 0; + margin: auto; + background: #bc502f; + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(3):after { + left: -4rem; + border: 1rem solid rgba(255, 255, 255, 0); + top: -11rem; + border-bottom-color: #252529; + transform: rotate(-3deg); + height: 4rem; + box-shadow: 0 3.7rem 0 -0.5rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(3):before { + width: 14.5rem; + height: 4.5rem; + border-top: 0.5rem solid #20112a; + border-bottom: 0.5rem solid #20112a; + top: 5rem; + left: -5rem; + background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); + border-radius: 0.5rem; +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(2):before { + width: 1rem; + height: 9rem; + background: #20112a; + top: -7rem; +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1:nth-of-type(odd) > i:nth-of-type(2) { + width: 1rem; + background: #20112a; + height: 3rem; + border-radius: 0.25rem; + top: 18.5rem; + left: 10rem; + transform: rotate(5deg); +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1:nth-of-type(odd) > i:nth-of-type(2):before { + transform: rotate(-45deg); + left: -3rem; + border-radius: 0 1rem 0 0; +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1:nth-of-type(odd) > i:nth-of-type(2):after { + width: 1rem; + height: 4rem; + transform: rotate(45deg); + background: #20112a; + top: -6.5rem; + left: -2rem; + border-radius: 1rem 0 0 0; +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1:nth-of-type(even) > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1:nth-of-type(even) > i:nth-of-type(1) { + left: 11rem; +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1:nth-of-type(even) > i:nth-of-type(2):before { + transform: rotate(45deg); + left: 5rem; + border-radius: 1rem 0 0 0; + top: 11rem; +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(1):before, .hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(1):after { + top: -7.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):after { + display: block; +} + +.hs.row3.col1:checked ~ div > div > shed > .row4.col1:after, .hs.row3.col1:checked ~ div > div > shed > .row4.col1 > i:nth-of-type(3):after, .hs.row3.col1:checked ~ div > div > shed > .row4.col1 > i:nth-of-type(1) { + display: none; +} + +.hs.row3.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3):before, .hs.row3.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(2), .hs.row3.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(5):after { + display: none; +} +.hs.row3.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(3) { + height: 0; +} +.hs.row3.col1:checked ~ div > div > shed > .row2.col1 > i:nth-of-type(4) { + transform: scale(1); + right: 2rem; + left: 2rem; +} + +.hs.shed.row3.col-2:not(:checked) ~ .hs.row3.col1:checked ~ .shed.hs.row3.col2:not(:checked) ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.shed.row3.col-2:not(:checked) ~ .hs.row3.col1:checked ~ .shed.hs.row3.col2:not(:checked) ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row3.col1:before { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col1:before { + height: 12.5rem; + box-shadow: none; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(3) { + height: 0; +} +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(4) { + transform: scale(1); + right: 2rem; + left: 1rem; +} +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):after { + display: none; +} + +.hs.row5.col1:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):after { + display: none; +} + +.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row4.col0:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):after { + display: none !important; +} + +.hs.row3.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(1), .hs.row3.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(3):after { + display: none; +} + +.hs.row3.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col1:after, +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col1:after { + width: 110%; + right: -1.25rem; +} + +.hs.row3.col2:checked ~ div > div > shed > .row3.col2:before { + background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); + width: 90%; + height: 98%; + left: 1.25rem; + border-radius: 0.5rem; + box-shadow: 0 0.5rem 0 0 #20112a; +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2:after { + width: 105%; + height: 5rem; + background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); + top: -2rem; + border-bottom: solid 0.5rem #252529; + box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); + border-radius: 0.5rem; + left: auto; + right: -1rem; +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(4) { + width: 4rem; + height: 4rem; + right: 0; + margin: auto; + background: rgba(79, 1, 14, 0.3); + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); + transform: scale(0.5); +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(4):before { + width: 3.4rem; + height: 0.5rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(4):after { + width: 0.5rem; + height: 3.4rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3) { + width: 4rem; + height: 9rem; + right: 0; + margin: auto; + background: #bc502f; + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after { + left: -4rem; + border: 1rem solid rgba(255, 255, 255, 0); + top: -11rem; + border-bottom-color: #252529; + transform: rotate(-3deg); + height: 4rem; + box-shadow: 0 3.7rem 0 -0.5rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):before { + width: 14.5rem; + height: 4.5rem; + border-top: 0.5rem solid #20112a; + border-bottom: 0.5rem solid #20112a; + top: 5rem; + left: -5rem; + background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); + border-radius: 0.5rem; +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(2):before { + width: 1rem; + height: 9rem; + background: #20112a; + top: -7rem; +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2:nth-of-type(odd) > i:nth-of-type(2) { + width: 1rem; + background: #20112a; + height: 3rem; + border-radius: 0.25rem; + top: 18.5rem; + left: 10rem; + transform: rotate(5deg); +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2:nth-of-type(odd) > i:nth-of-type(2):before { + transform: rotate(-45deg); + left: -3rem; + border-radius: 0 1rem 0 0; +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2:nth-of-type(odd) > i:nth-of-type(2):after { + width: 1rem; + height: 4rem; + transform: rotate(45deg); + background: #20112a; + top: -6.5rem; + left: -2rem; + border-radius: 1rem 0 0 0; +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2:nth-of-type(even) > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2:nth-of-type(even) > i:nth-of-type(1) { + left: 11rem; +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2:nth-of-type(even) > i:nth-of-type(2):before { + transform: rotate(45deg); + left: 5rem; + border-radius: 1rem 0 0 0; + top: 11rem; +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1):before, .hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1):after { + top: -7.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):after { + display: block; +} + +.hs.row3.col2:checked ~ div > div > shed > .row4.col2:after, .hs.row3.col2:checked ~ div > div > shed > .row4.col2 > i:nth-of-type(3):after, .hs.row3.col2:checked ~ div > div > shed > .row4.col2 > i:nth-of-type(1) { + display: none; +} + +.hs.row3.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3):before, .hs.row3.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(2), .hs.row3.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(5):after { + display: none; +} +.hs.row3.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(3) { + height: 0; +} +.hs.row3.col2:checked ~ div > div > shed > .row2.col2 > i:nth-of-type(4) { + transform: scale(1); + right: 1rem; + left: 1rem; +} + +.hs.shed.row3.col-1:not(:checked) ~ .hs.row3.col2:checked ~ .shed.hs.row3.col3:not(:checked) ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.shed.row3.col-1:not(:checked) ~ .hs.row3.col2:checked ~ .shed.hs.row3.col3:not(:checked) ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col2:before { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col2:before { + height: 12.5rem; + box-shadow: none; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3) { + height: 0; +} +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(4) { + transform: scale(1); + right: 2rem; + left: 1rem; +} +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row5.col2:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row4.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):after { + display: none !important; +} + +.hs.row3.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1), .hs.row3.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after { + display: none; +} + +.hs.row3.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col2:after, +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col2:after { + width: 110%; + right: -1.25rem; +} + +.hs.row3.col3:checked ~ div > div > shed > .row3.col3:before { + background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); + width: 90%; + height: 98%; + left: 1.25rem; + border-radius: 0.5rem; + box-shadow: 0 0.5rem 0 0 #20112a; +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3:after { + width: 105%; + height: 5rem; + background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); + top: -2rem; + border-bottom: solid 0.5rem #252529; + box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); + border-radius: 0.5rem; + left: auto; + right: -1rem; +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(4) { + width: 4rem; + height: 4rem; + right: 0; + margin: auto; + background: rgba(79, 1, 14, 0.3); + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); + transform: scale(0.5); +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(4):before { + width: 3.4rem; + height: 0.5rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(4):after { + width: 0.5rem; + height: 3.4rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3) { + width: 4rem; + height: 9rem; + right: 0; + margin: auto; + background: #bc502f; + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):after { + left: -4rem; + border: 1rem solid rgba(255, 255, 255, 0); + top: -11rem; + border-bottom-color: #252529; + transform: rotate(-3deg); + height: 4rem; + box-shadow: 0 3.7rem 0 -0.5rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):before { + width: 14.5rem; + height: 4.5rem; + border-top: 0.5rem solid #20112a; + border-bottom: 0.5rem solid #20112a; + top: 5rem; + left: -5rem; + background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); + border-radius: 0.5rem; +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(2):before { + width: 1rem; + height: 9rem; + background: #20112a; + top: -7rem; +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3:nth-of-type(odd) > i:nth-of-type(2) { + width: 1rem; + background: #20112a; + height: 3rem; + border-radius: 0.25rem; + top: 18.5rem; + left: 10rem; + transform: rotate(5deg); +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3:nth-of-type(odd) > i:nth-of-type(2):before { + transform: rotate(-45deg); + left: -3rem; + border-radius: 0 1rem 0 0; +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3:nth-of-type(odd) > i:nth-of-type(2):after { + width: 1rem; + height: 4rem; + transform: rotate(45deg); + background: #20112a; + top: -6.5rem; + left: -2rem; + border-radius: 1rem 0 0 0; +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3:nth-of-type(even) > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3:nth-of-type(even) > i:nth-of-type(1) { + left: 11rem; +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3:nth-of-type(even) > i:nth-of-type(2):before { + transform: rotate(45deg); + left: 5rem; + border-radius: 1rem 0 0 0; + top: 11rem; +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1):before, .hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1):after { + top: -7.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(5):after { + display: block; +} + +.hs.row3.col3:checked ~ div > div > shed > .row4.col3:after, .hs.row3.col3:checked ~ div > div > shed > .row4.col3 > i:nth-of-type(3):after, .hs.row3.col3:checked ~ div > div > shed > .row4.col3 > i:nth-of-type(1) { + display: none; +} + +.hs.row3.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3):before, .hs.row3.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(2), .hs.row3.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(5):after { + display: none; +} +.hs.row3.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(3) { + height: 0; +} +.hs.row3.col3:checked ~ div > div > shed > .row2.col3 > i:nth-of-type(4) { + transform: scale(1); + right: 2rem; + left: 2rem; +} + +.hs.shed.row3.col0:not(:checked) ~ .hs.row3.col3:checked ~ .shed.hs.row3.col4:not(:checked) ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.shed.row3.col0:not(:checked) ~ .hs.row3.col3:checked ~ .shed.hs.row3.col4:not(:checked) ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col3:before { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col3:before { + height: 12.5rem; + box-shadow: none; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3) { + height: 0; +} +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(4) { + transform: scale(1); + right: 1rem; + left: 1rem; +} +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(5):after { + display: none; +} + +.hs.row5.col3:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(5):after { + display: none; +} + +.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row4.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(5):after { + display: none !important; +} + +.hs.row3.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1), .hs.row3.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):after { + display: none; +} + +.hs.row3.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col3:after, +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col3:after { + width: 110%; + right: -1.25rem; +} + +.hs.row3.col4:checked ~ div > div > shed > .row3.col4:before { + background: repeating-linear-gradient(#bc502f 1rem, #683f44 2.3rem); + width: 90%; + height: 98%; + left: 1.25rem; + border-radius: 0.5rem; + box-shadow: 0 0.5rem 0 0 #20112a; +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4:after { + width: 105%; + height: 5rem; + background: repeating-linear-gradient(to right, #683f44 1rem, #20112a 2.1rem); + top: -2rem; + border-bottom: solid 0.5rem #252529; + box-shadow: 0 1.5rem 0.5rem -1rem rgba(79, 1, 14, 0.9); + border-radius: 0.5rem; + left: auto; + right: -1rem; +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(4) { + width: 4rem; + height: 4rem; + right: 0; + margin: auto; + background: rgba(79, 1, 14, 0.3); + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); + transform: scale(0.5); +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(4):before { + width: 3.4rem; + height: 0.5rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 0 1.5rem 0 #252529, 0 3rem 0 #252529, 0 0.5rem 0 #000, 0 1rem 0 rgba(79, 1, 14, 0.9), 0 2rem 0 rgba(79, 1, 14, 0.9), 0 2.5rem 0 rgba(79, 1, 14, 0.75); +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(4):after { + width: 0.5rem; + height: 3.4rem; + background: #252529; + left: 0.3rem; + top: 0.4rem; + border-radius: 0.25rem; + box-shadow: 1.5rem 0 0 #252529, 3rem 0 0 #252529; +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(3) { + width: 4rem; + height: 9rem; + right: 0; + margin: auto; + background: #bc502f; + top: 3rem; + border-radius: 0.5rem; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(3):after { + left: -4rem; + border: 1rem solid rgba(255, 255, 255, 0); + top: -11rem; + border-bottom-color: #252529; + transform: rotate(-3deg); + height: 4rem; + box-shadow: 0 3.7rem 0 -0.5rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(3):before { + width: 14.5rem; + height: 4.5rem; + border-top: 0.5rem solid #20112a; + border-bottom: 0.5rem solid #20112a; + top: 5rem; + left: -5rem; + background: repeating-linear-gradient(to right, #683f44, #20112a 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.4rem); + border-radius: 0.5rem; +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(2):before { + width: 1rem; + height: 9rem; + background: #20112a; + top: -7rem; +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4:nth-of-type(odd) > i:nth-of-type(2) { + width: 1rem; + background: #20112a; + height: 3rem; + border-radius: 0.25rem; + top: 18.5rem; + left: 10rem; + transform: rotate(5deg); +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4:nth-of-type(odd) > i:nth-of-type(2):before { + transform: rotate(-45deg); + left: -3rem; + border-radius: 0 1rem 0 0; +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4:nth-of-type(odd) > i:nth-of-type(2):after { + width: 1rem; + height: 4rem; + transform: rotate(45deg); + background: #20112a; + top: -6.5rem; + left: -2rem; + border-radius: 1rem 0 0 0; +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4:nth-of-type(even) > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4:nth-of-type(even) > i:nth-of-type(1) { + left: 11rem; +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4:nth-of-type(even) > i:nth-of-type(2):before { + transform: rotate(45deg); + left: 5rem; + border-radius: 1rem 0 0 0; + top: 11rem; +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(1):before, .hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(1):after { + top: -7.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(5):after { + display: block; +} + +.hs.row3.col4:checked ~ div > div > shed > .row4.col4:after, .hs.row3.col4:checked ~ div > div > shed > .row4.col4 > i:nth-of-type(3):after, .hs.row3.col4:checked ~ div > div > shed > .row4.col4 > i:nth-of-type(1) { + display: none; +} + +.hs.row3.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3):before, .hs.row3.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(2), .hs.row3.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(5):after { + display: none; +} +.hs.row3.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(3) { + height: 0; +} +.hs.row3.col4:checked ~ div > div > shed > .row2.col4 > i:nth-of-type(4) { + transform: scale(1); + right: 2rem; + left: 1rem; +} + +.hs.shed.row3.col1:not(:checked) ~ .hs.row3.col4:checked ~ .shed.hs.row3.col5:not(:checked) ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.shed.row3.col1:not(:checked) ~ .hs.row3.col4:checked ~ .shed.hs.row3.col5:not(:checked) ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4:before { + border-top-left-radius: 0; + border-top-right-radius: 0; +} +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col4:before { + height: 12.5rem; + box-shadow: none; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(3) { + height: 0; +} +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(4) { + transform: scale(1); + right: 1rem; + left: 1rem; +} +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(5):after { + display: none; +} + +.hs.row5.col4:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(5):after { + display: none; +} + +.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2 > i:nth-of-type(5):after { + display: none; +} + +.hs.row4.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(5):after { + display: none !important; +} + +.hs.row3.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(1), .hs.row3.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col4 > i:nth-of-type(3):after { + display: none; +} + +.hs.row3.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col4:after, +.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col4:after { + width: 110%; + right: -1.25rem; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col1:before { + width: 110%; +} +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col2:after { + width: 120%; + left: -1.25rem; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col2:before { + width: 110%; +} +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col3:after { + width: 120%; + left: -1.25rem; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col3:before { + width: 110%; +} +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col4:after { + width: 120%; + left: -1.25rem; +} + +.hs.row3.col2:checked ~ .hs.shed.row3.col3:not(:checked) ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row3.col2:checked ~ .hs.shed.row3.col3:not(:checked) ~ div > div > shed > .row3.col2 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row3.col4:checked ~ .hs.shed.row3.col5:not(:checked) ~ div > div > shed > .row3.col4 > i:nth-of-type(3):after { + left: 7rem; + transform: rotate(3deg); +} +.hs.row3.col4:checked ~ .hs.shed.row3.col5:not(:checked) ~ div > div > shed > .row3.col4 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after, .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1) { + display: none; +} +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):before { + width: 10.25rem; +} + +.hs.row3.col2:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after { + left: 6rem; + transform: rotate(3deg); +} +.hs.row3.col2:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1) { + left: 10rem; +} +.hs.row3.col2:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):after { + left: -2.5rem; + transform: rotate(-3deg); +} + +.hs.row3.col2:checked ~ .hs.row3.col-1:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after, .hs.row3.col2:checked ~ .hs.row3.col-1:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1), +.hs.row3.col2:checked ~ .hs.row3.col-3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(3):after, +.hs.row3.col2:checked ~ .hs.row3.col-3:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(1) { + display: none; +} + +.hs.row3.col2:checked ~ .hs.row3.col-1:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):after { + left: 10rem; + transform: rotate(2deg); +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):after, .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1) { + display: none; +} +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):before { + width: 10.25rem; +} + +.hs.row3.col3:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):after { + left: 6rem; + transform: rotate(3deg); +} +.hs.row3.col3:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1) { + left: 10rem; +} +.hs.row3.col3:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(5):after { + left: -2.5rem; + transform: rotate(-3deg); +} + +.hs.row3.col3:checked ~ .hs.row3.col0:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):after, .hs.row3.col3:checked ~ .hs.row3.col0:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1), +.hs.row3.col3:checked ~ .hs.row3.col-2:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(3):after, +.hs.row3.col3:checked ~ .hs.row3.col-2:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(1) { + display: none; +} + +.hs.row3.col3:checked ~ .hs.row3.col0:checked ~ div > div > shed > .row3.col3 > i:nth-of-type(5):after { + left: 10rem; + transform: rotate(2deg); +} + +.hs.shed.row3.col1:checked ~ .hs.shed.row3.col2:not(:checked) ~ .hs.shed.row3.col3:not(:checked) ~ .hs.shed.row3.col4:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):before { + display: block; + width: 210%; +} + +.hs.shed.row3.col1:checked ~ .hs.shed.row3.col2:not(:checked) ~ .hs.shed.row3.col3:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):before, +.hs.shed.row3.col2:checked ~ .hs.shed.row3.col3:not(:checked) ~ .hs.shed.row3.col4:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):before { + display: block; + width: 110%; +} + +.hs.row4.col2:checked ~ .hs.shed.row3.col1:checked ~ .hs.shed.row3.col2:not(:checked) ~ .hs.shed.row3.col3:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):before, +.hs.row4.col3:checked ~ .hs.shed.row3.col2:checked ~ .hs.shed.row3.col3:not(:checked) ~ .hs.shed.row3.col4:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):before, +.hs.row4.col3:checked ~ .hs.shed.row3.col1:checked ~ .hs.shed.row3.col2:not(:checked) ~ .hs.shed.row3.col3:not(:checked) ~ .hs.shed.row3.col4:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):before, +.hs.row4.col2:checked ~ .hs.shed.row3.col1:checked ~ .hs.shed.row3.col2:not(:checked) ~ .hs.shed.row3.col3:not(:checked) ~ .hs.shed.row3.col4:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):before, +.hs.shed.row4.col1:checked ~ .hs.shed.row3.col1:checked ~ .hs.shed.row3.col2:not(:checked) ~ .hs.shed.row3.col3:checked ~ div > div > shed > .row3.col1 > i:nth-of-type(5):before, +.hs.shed.row4.col2:checked ~ .hs.shed.row3.col2:checked ~ .hs.shed.row3.col3:not(:checked) ~ .hs.shed.row3.col4:checked ~ div > div > shed > .row3.col2 > i:nth-of-type(5):before { + top: 1rem; + border: none; +} + +div > div > house > label > i:nth-of-type(5) { + width: 13rem; + height: 3rem; + top: 1rem; + border-bottom-color: #683f44; + box-shadow: 0 0.25rem 0 #683f44; + border-radius: 50%; + left: -0.5rem; + z-index: 1; + display: none; +} +div > div > house > label > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 1rem; + transform: rotate(5deg); + z-index: -1 !important; + filter: drop-shadow(2rem 0.25rem 0 #bc5c2f) drop-shadow(2rem 0rem 0 #bc502f); +} +div > div > house > label > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 7rem; + transform: rotate(-5deg); + z-index: -1 !important; + filter: drop-shadow(2rem -0.25rem 0 #bc5c2f) drop-shadow(2rem 0rem 0 #bc502f); +} + +.hs.row1.col1:checked ~ div > div > house > .row1.col1:before { + width: 1.5rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: -1.35rem; + left: 3rem; + box-shadow: 2rem 2rem 0 currentColor; + filter: hue-rotate(-10deg) brightness(1.1); + opacity: 0.7; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1:after { + filter: hue-rotate(-10deg) brightness(1.1); + width: 2rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: 0.5rem; + left: -0.15rem; + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(4) { + width: 5rem; + right: 0; + margin: auto; + top: 3.5rem; + background: rgba(79, 1, 14, 0.9); + height: 5rem; + border-radius: 0.3rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(4):after { + width: 4.5rem; + height: 0.25rem; + left: 0.25rem; + top: 2.4rem; + background: currentColor; + border-radius: 0.0001rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(4):before { + width: 0.25rem; + height: 4.5rem; + left: 2.4rem; + top: 0.25rem; + background: currentColor; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1.col3 > i:nth-of-type(4) { + border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(2) { + border: solid rgba(255, 255, 255, 0) 1rem; + border-bottom: solid #6a341b 4rem; + width: calc(100% + 2.1rem); + left: -1rem; + top: -2.5rem; + box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(2):before { + width: 100%; + height: 3rem; + border-radius: 50%; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(2):after { + width: 3rem; + height: 4rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 0.5rem solid #bc2f2f; + top: -2rem; + box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; + border-radius: 0.5rem; + left: -0.25rem; + filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(1):before, .hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(1):after { + top: -8.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(even) i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(even) > i:nth-of-type(1) { + left: 10rem; +} +.hs.row1.col1:checked ~ div > div > house > .row2.col1 i:nth-of-type(2), +.hs.row1.col1:checked ~ div > div > house > .row2.col1 i:nth-of-type(1) { + display: none; +} + +.hs.house.row2.col1:checked ~ .hs.shed.row1.col1:checked ~ div > div > house > .row1.col1 { + border-bottom: 0.25rem dashed #bc2f2f; +} +.hs.house.row2.col1:checked ~ .hs.shed.row1.col1:checked ~ div > div > house > .row2.col1:before { + background: #bc502f; +} + +.hs.shed.row2.col1:checked ~ .hs.house.row1.col1:checked ~ div > div > house > .row1.col1 { + border-bottom: 0.25rem dashed #bc502f; +} +.hs.shed.row2.col1:checked ~ .hs.house.row1.col1:checked ~ div > div > house > .row2.col1:before { + background: #bc2f2f; +} + +.hs.house.row1.col-2:not(:checked) ~ .hs.house.row1.col1:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.house.row-1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.house.row1.col-2:not(:checked) ~ .hs.house.row1.col1:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.house.row-1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row0.col0:checked ~ .hs.row0.col1:not(:checked) ~ div > div > house > .row1.col1 > i:nth-of-type(2):after, +.hs.house.row0.col1:not(:checked) ~ .hs.house.row-1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(2):after { + left: 4.75rem; + height: 3rem; + box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row0.col0:checked ~ .hs.row0.col1:not(:checked) ~ div > div > house > .row1.col1 > i:nth-of-type(1), +.hs.house.row0.col1:not(:checked) ~ .hs.house.row-1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(1) { + left: 5rem; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.house.row0.col0:not(:checked) ~ .hs.shed.row0.col0:not(:checked) ~ .hs.row0.col1:checked ~ div > div > house > .row1.col1 i:nth-of-type(2) { + display: block; + left: -42%; + width: 50%; +} +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.house.row0.col0:not(:checked) ~ .hs.shed.row0.col0:not(:checked) ~ .hs.row0.col1:checked ~ div > div > house > .row1.col1 i:nth-of-type(1), +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.house.row0.col0:not(:checked) ~ .hs.shed.row0.col0:not(:checked) ~ .hs.row0.col1:checked ~ div > div > house > .row1.col1 i:nth-of-type(2):after { + display: none; +} + +.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col2 i:nth-of-type(1), +.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col2 i:nth-of-type(2):after { + display: none; +} +.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2):after { + left: -1.5rem; +} +.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1) { + left: -1rem; +} + +.hs.row1.col2:checked ~ div > div > house > .row1.col2:before { + width: 1.5rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: -1.35rem; + left: 3rem; + box-shadow: 2rem 2rem 0 currentColor; + filter: hue-rotate(-10deg) brightness(1.1); + opacity: 0.7; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2:after { + filter: hue-rotate(-10deg) brightness(1.1); + width: 2rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: 0.5rem; + left: -0.15rem; + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(4) { + width: 5rem; + right: 0; + margin: auto; + top: 3.5rem; + background: rgba(79, 1, 14, 0.9); + height: 5rem; + border-radius: 0.3rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(4):after { + width: 4.5rem; + height: 0.25rem; + left: 0.25rem; + top: 2.4rem; + background: currentColor; + border-radius: 0.0001rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(4):before { + width: 0.25rem; + height: 4.5rem; + left: 2.4rem; + top: 0.25rem; + background: currentColor; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2.col1 > i:nth-of-type(4) { + border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(2) { + border: solid rgba(255, 255, 255, 0) 1rem; + border-bottom: solid #6a341b 4rem; + width: calc(100% + 2.1rem); + left: -1rem; + top: -2.5rem; + box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(2):before { + width: 100%; + height: 3rem; + border-radius: 50%; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(2):after { + width: 3rem; + height: 4rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 0.5rem solid #bc2f2f; + top: -2rem; + box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; + border-radius: 0.5rem; + left: -0.25rem; + filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(1):before, .hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(1):after { + top: -8.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(even) i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(even) > i:nth-of-type(1) { + left: 10rem; +} +.hs.row1.col2:checked ~ div > div > house > .row2.col2 i:nth-of-type(2), +.hs.row1.col2:checked ~ div > div > house > .row2.col2 i:nth-of-type(1) { + display: none; +} + +.hs.house.row2.col2:checked ~ .hs.shed.row1.col2:checked ~ div > div > house > .row1.col2 { + border-bottom: 0.25rem dashed #bc2f2f; +} +.hs.house.row2.col2:checked ~ .hs.shed.row1.col2:checked ~ div > div > house > .row2.col2:before { + background: #bc502f; +} + +.hs.shed.row2.col2:checked ~ .hs.house.row1.col2:checked ~ div > div > house > .row1.col2 { + border-bottom: 0.25rem dashed #bc502f; +} +.hs.shed.row2.col2:checked ~ .hs.house.row1.col2:checked ~ div > div > house > .row2.col2:before { + background: #bc2f2f; +} + +.hs.house.row1.col-1:not(:checked) ~ .hs.house.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.house.row-1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.house.row1.col-1:not(:checked) ~ .hs.house.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.house.row-1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row0.col1:checked ~ .hs.row0.col2:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(2):after, +.hs.house.row0.col2:not(:checked) ~ .hs.house.row-1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(2):after { + left: 4.75rem; + height: 3rem; + box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row0.col1:checked ~ .hs.row0.col2:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(1), +.hs.house.row0.col2:not(:checked) ~ .hs.house.row-1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(1) { + left: 5rem; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.house.row0.col1:not(:checked) ~ .hs.shed.row0.col1:not(:checked) ~ .hs.row0.col2:checked ~ div > div > house > .row1.col2 i:nth-of-type(2) { + display: block; + left: -42%; + width: 50%; +} +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.house.row0.col1:not(:checked) ~ .hs.shed.row0.col1:not(:checked) ~ .hs.row0.col2:checked ~ div > div > house > .row1.col2 i:nth-of-type(1), +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.house.row0.col1:not(:checked) ~ .hs.shed.row0.col1:not(:checked) ~ .hs.row0.col2:checked ~ div > div > house > .row1.col2 i:nth-of-type(2):after { + display: none; +} + +.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col2 i:nth-of-type(1), +.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col2 i:nth-of-type(2):after { + display: none; +} +.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2):after { + left: -1.5rem; +} +.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1) { + left: -1rem; +} + +.hs.row1.col3:checked ~ div > div > house > .row1.col3:before { + width: 1.5rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: -1.35rem; + left: 3rem; + box-shadow: 2rem 2rem 0 currentColor; + filter: hue-rotate(-10deg) brightness(1.1); + opacity: 0.7; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3:after { + filter: hue-rotate(-10deg) brightness(1.1); + width: 2rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: 0.5rem; + left: -0.15rem; + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(4) { + width: 5rem; + right: 0; + margin: auto; + top: 3.5rem; + background: rgba(79, 1, 14, 0.9); + height: 5rem; + border-radius: 0.3rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(4):after { + width: 4.5rem; + height: 0.25rem; + left: 0.25rem; + top: 2.4rem; + background: currentColor; + border-radius: 0.0001rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(4):before { + width: 0.25rem; + height: 4.5rem; + left: 2.4rem; + top: 0.25rem; + background: currentColor; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3.col2 > i:nth-of-type(4) { + border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2) { + border: solid rgba(255, 255, 255, 0) 1rem; + border-bottom: solid #6a341b 4rem; + width: calc(100% + 2.1rem); + left: -1rem; + top: -2.5rem; + box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2):before { + width: 100%; + height: 3rem; + border-radius: 50%; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2):after { + width: 3rem; + height: 4rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 0.5rem solid #bc2f2f; + top: -2rem; + box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; + border-radius: 0.5rem; + left: -0.25rem; + filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1):before, .hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1):after { + top: -8.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(even) i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(even) > i:nth-of-type(1) { + left: 10rem; +} +.hs.row1.col3:checked ~ div > div > house > .row2.col3 i:nth-of-type(2), +.hs.row1.col3:checked ~ div > div > house > .row2.col3 i:nth-of-type(1) { + display: none; +} + +.hs.house.row2.col3:checked ~ .hs.shed.row1.col3:checked ~ div > div > house > .row1.col3 { + border-bottom: 0.25rem dashed #bc2f2f; +} +.hs.house.row2.col3:checked ~ .hs.shed.row1.col3:checked ~ div > div > house > .row2.col3:before { + background: #bc502f; +} + +.hs.shed.row2.col3:checked ~ .hs.house.row1.col3:checked ~ div > div > house > .row1.col3 { + border-bottom: 0.25rem dashed #bc502f; +} +.hs.shed.row2.col3:checked ~ .hs.house.row1.col3:checked ~ div > div > house > .row2.col3:before { + background: #bc2f2f; +} + +.hs.house.row1.col0:not(:checked) ~ .hs.house.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ .hs.house.row-1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.house.row1.col0:not(:checked) ~ .hs.house.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ .hs.house.row-1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row0.col2:checked ~ .hs.row0.col3:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(2):after, +.hs.house.row0.col3:not(:checked) ~ .hs.house.row-1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2):after { + left: 4.75rem; + height: 3rem; + box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row0.col2:checked ~ .hs.row0.col3:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(1), +.hs.house.row0.col3:not(:checked) ~ .hs.house.row-1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1) { + left: 5rem; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.house.row0.col2:not(:checked) ~ .hs.shed.row0.col2:not(:checked) ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3 i:nth-of-type(2) { + display: block; + left: -42%; + width: 50%; +} +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.house.row0.col2:not(:checked) ~ .hs.shed.row0.col2:not(:checked) ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3 i:nth-of-type(1), +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.house.row0.col2:not(:checked) ~ .hs.shed.row0.col2:not(:checked) ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3 i:nth-of-type(2):after { + display: none; +} + +.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col2 i:nth-of-type(1), +.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col2 i:nth-of-type(2):after { + display: none; +} +.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2):after { + left: -1.5rem; +} +.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1) { + left: -1rem; +} + +.hs.row1.col4:checked ~ div > div > house > .row1.col4:before { + width: 1.5rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: -1.35rem; + left: 3rem; + box-shadow: 2rem 2rem 0 currentColor; + filter: hue-rotate(-10deg) brightness(1.1); + opacity: 0.7; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4:after { + filter: hue-rotate(-10deg) brightness(1.1); + width: 2rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: 0.5rem; + left: -0.15rem; + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(4) { + width: 5rem; + right: 0; + margin: auto; + top: 3.5rem; + background: rgba(79, 1, 14, 0.9); + height: 5rem; + border-radius: 0.3rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(4):after { + width: 4.5rem; + height: 0.25rem; + left: 0.25rem; + top: 2.4rem; + background: currentColor; + border-radius: 0.0001rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(4):before { + width: 0.25rem; + height: 4.5rem; + left: 2.4rem; + top: 0.25rem; + background: currentColor; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4.col1 > i:nth-of-type(4) { + border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(2) { + border: solid rgba(255, 255, 255, 0) 1rem; + border-bottom: solid #6a341b 4rem; + width: calc(100% + 2.1rem); + left: -1rem; + top: -2.5rem; + box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(2):before { + width: 100%; + height: 3rem; + border-radius: 50%; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(2):after { + width: 3rem; + height: 4rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 0.5rem solid #bc2f2f; + top: -2rem; + box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; + border-radius: 0.5rem; + left: -0.25rem; + filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(1):before, .hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(1):after { + top: -8.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(even) i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(even) > i:nth-of-type(1) { + left: 10rem; +} +.hs.row1.col4:checked ~ div > div > house > .row2.col4 i:nth-of-type(2), +.hs.row1.col4:checked ~ div > div > house > .row2.col4 i:nth-of-type(1) { + display: none; +} + +.hs.house.row2.col4:checked ~ .hs.shed.row1.col4:checked ~ div > div > house > .row1.col4 { + border-bottom: 0.25rem dashed #bc2f2f; +} +.hs.house.row2.col4:checked ~ .hs.shed.row1.col4:checked ~ div > div > house > .row2.col4:before { + background: #bc502f; +} + +.hs.shed.row2.col4:checked ~ .hs.house.row1.col4:checked ~ div > div > house > .row1.col4 { + border-bottom: 0.25rem dashed #bc502f; +} +.hs.shed.row2.col4:checked ~ .hs.house.row1.col4:checked ~ div > div > house > .row2.col4:before { + background: #bc2f2f; +} + +.hs.house.row1.col1:not(:checked) ~ .hs.house.row1.col4:checked ~ .hs.house.row1.col5:not(:checked) ~ .hs.house.row-1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.house.row1.col1:not(:checked) ~ .hs.house.row1.col4:checked ~ .hs.house.row1.col5:not(:checked) ~ .hs.house.row-1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row0.col3:checked ~ .hs.row0.col4:not(:checked) ~ div > div > house > .row1.col4 > i:nth-of-type(2):after, +.hs.house.row0.col4:not(:checked) ~ .hs.house.row-1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(2):after { + left: 4.75rem; + height: 3rem; + box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row0.col3:checked ~ .hs.row0.col4:not(:checked) ~ div > div > house > .row1.col4 > i:nth-of-type(1), +.hs.house.row0.col4:not(:checked) ~ .hs.house.row-1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(1) { + left: 5rem; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.house.row0.col3:not(:checked) ~ .hs.shed.row0.col3:not(:checked) ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 i:nth-of-type(2) { + display: block; + left: -42%; + width: 50%; +} +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.house.row0.col3:not(:checked) ~ .hs.shed.row0.col3:not(:checked) ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 i:nth-of-type(1), +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.house.row0.col3:not(:checked) ~ .hs.shed.row0.col3:not(:checked) ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 i:nth-of-type(2):after { + display: none; +} + +.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col2 i:nth-of-type(1), +.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col2 i:nth-of-type(2):after { + display: none; +} +.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(2):after { + left: -1.5rem; +} +.row1.col2:checked ~ .row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(1) { + left: -1rem; +} + +.hs.row2.col1:checked ~ div > div > house > .row2.col1:before { + width: 1.5rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: -1.35rem; + left: 3rem; + box-shadow: 2rem 2rem 0 currentColor; + filter: hue-rotate(-10deg) brightness(1.1); + opacity: 0.7; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1:after { + filter: hue-rotate(-10deg) brightness(1.1); + width: 2rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: 0.5rem; + left: -0.15rem; + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(4) { + width: 5rem; + right: 0; + margin: auto; + top: 3.5rem; + background: rgba(79, 1, 14, 0.9); + height: 5rem; + border-radius: 0.3rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(4):after { + width: 4.5rem; + height: 0.25rem; + left: 0.25rem; + top: 2.4rem; + background: currentColor; + border-radius: 0.0001rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(4):before { + width: 0.25rem; + height: 4.5rem; + left: 2.4rem; + top: 0.25rem; + background: currentColor; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1.col3 > i:nth-of-type(4) { + border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(2) { + border: solid rgba(255, 255, 255, 0) 1rem; + border-bottom: solid #6a341b 4rem; + width: calc(100% + 2.1rem); + left: -1rem; + top: -2.5rem; + box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(2):before { + width: 100%; + height: 3rem; + border-radius: 50%; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(2):after { + width: 3rem; + height: 4rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 0.5rem solid #bc2f2f; + top: -2rem; + box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; + border-radius: 0.5rem; + left: -0.25rem; + filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(1):before, .hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(1):after { + top: -8.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(even) i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(even) > i:nth-of-type(1) { + left: 10rem; +} +.hs.row2.col1:checked ~ div > div > house > .row3.col1 i:nth-of-type(2), +.hs.row2.col1:checked ~ div > div > house > .row3.col1 i:nth-of-type(1) { + display: none; +} + +.hs.house.row3.col1:checked ~ .hs.shed.row2.col1:checked ~ div > div > house > .row2.col1 { + border-bottom: 0.25rem dashed #bc2f2f; +} +.hs.house.row3.col1:checked ~ .hs.shed.row2.col1:checked ~ div > div > house > .row3.col1:before { + background: #bc502f; +} + +.hs.shed.row3.col1:checked ~ .hs.house.row2.col1:checked ~ div > div > house > .row2.col1 { + border-bottom: 0.25rem dashed #bc502f; +} +.hs.shed.row3.col1:checked ~ .hs.house.row2.col1:checked ~ div > div > house > .row3.col1:before { + background: #bc2f2f; +} + +.hs.house.row2.col-2:not(:checked) ~ .hs.house.row2.col1:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.house.row0.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.house.row2.col-2:not(:checked) ~ .hs.house.row2.col1:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.house.row0.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:not(:checked) ~ div > div > house > .row2.col1 > i:nth-of-type(2):after, +.hs.house.row1.col1:not(:checked) ~ .hs.house.row0.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(2):after { + left: 4.75rem; + height: 3rem; + box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row1.col0:checked ~ .hs.row1.col1:not(:checked) ~ div > div > house > .row2.col1 > i:nth-of-type(1), +.hs.house.row1.col1:not(:checked) ~ .hs.house.row0.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(1) { + left: 5rem; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.house.row1.col0:not(:checked) ~ .hs.shed.row1.col0:not(:checked) ~ .hs.row1.col1:checked ~ div > div > house > .row2.col1 i:nth-of-type(2) { + display: block; + left: -42%; + width: 50%; +} +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.house.row1.col0:not(:checked) ~ .hs.shed.row1.col0:not(:checked) ~ .hs.row1.col1:checked ~ div > div > house > .row2.col1 i:nth-of-type(1), +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.house.row1.col0:not(:checked) ~ .hs.shed.row1.col0:not(:checked) ~ .hs.row1.col1:checked ~ div > div > house > .row2.col1 i:nth-of-type(2):after { + display: none; +} + +.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col2 i:nth-of-type(1), +.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col2 i:nth-of-type(2):after { + display: none; +} +.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2):after { + left: -1.5rem; +} +.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1) { + left: -1rem; +} + +.hs.row2.col2:checked ~ div > div > house > .row2.col2:before { + width: 1.5rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: -1.35rem; + left: 3rem; + box-shadow: 2rem 2rem 0 currentColor; + filter: hue-rotate(-10deg) brightness(1.1); + opacity: 0.7; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2:after { + filter: hue-rotate(-10deg) brightness(1.1); + width: 2rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: 0.5rem; + left: -0.15rem; + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(4) { + width: 5rem; + right: 0; + margin: auto; + top: 3.5rem; + background: rgba(79, 1, 14, 0.9); + height: 5rem; + border-radius: 0.3rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(4):after { + width: 4.5rem; + height: 0.25rem; + left: 0.25rem; + top: 2.4rem; + background: currentColor; + border-radius: 0.0001rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(4):before { + width: 0.25rem; + height: 4.5rem; + left: 2.4rem; + top: 0.25rem; + background: currentColor; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2.col1 > i:nth-of-type(4) { + border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(2) { + border: solid rgba(255, 255, 255, 0) 1rem; + border-bottom: solid #6a341b 4rem; + width: calc(100% + 2.1rem); + left: -1rem; + top: -2.5rem; + box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(2):before { + width: 100%; + height: 3rem; + border-radius: 50%; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(2):after { + width: 3rem; + height: 4rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 0.5rem solid #bc2f2f; + top: -2rem; + box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; + border-radius: 0.5rem; + left: -0.25rem; + filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(1):before, .hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(1):after { + top: -8.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(even) i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(even) > i:nth-of-type(1) { + left: 10rem; +} +.hs.row2.col2:checked ~ div > div > house > .row3.col2 i:nth-of-type(2), +.hs.row2.col2:checked ~ div > div > house > .row3.col2 i:nth-of-type(1) { + display: none; +} + +.hs.house.row3.col2:checked ~ .hs.shed.row2.col2:checked ~ div > div > house > .row2.col2 { + border-bottom: 0.25rem dashed #bc2f2f; +} +.hs.house.row3.col2:checked ~ .hs.shed.row2.col2:checked ~ div > div > house > .row3.col2:before { + background: #bc502f; +} + +.hs.shed.row3.col2:checked ~ .hs.house.row2.col2:checked ~ div > div > house > .row2.col2 { + border-bottom: 0.25rem dashed #bc502f; +} +.hs.shed.row3.col2:checked ~ .hs.house.row2.col2:checked ~ div > div > house > .row3.col2:before { + background: #bc2f2f; +} + +.hs.house.row2.col-1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row0.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.house.row2.col-1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row0.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:not(:checked) ~ div > div > house > .row2.col2 > i:nth-of-type(2):after, +.hs.house.row1.col2:not(:checked) ~ .hs.house.row0.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(2):after { + left: 4.75rem; + height: 3rem; + box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row1.col1:checked ~ .hs.row1.col2:not(:checked) ~ div > div > house > .row2.col2 > i:nth-of-type(1), +.hs.house.row1.col2:not(:checked) ~ .hs.house.row0.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(1) { + left: 5rem; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col1:not(:checked) ~ .hs.row1.col2:checked ~ div > div > house > .row2.col2 i:nth-of-type(2) { + display: block; + left: -42%; + width: 50%; +} +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col1:not(:checked) ~ .hs.row1.col2:checked ~ div > div > house > .row2.col2 i:nth-of-type(1), +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col1:not(:checked) ~ .hs.row1.col2:checked ~ div > div > house > .row2.col2 i:nth-of-type(2):after { + display: none; +} + +.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col2 i:nth-of-type(1), +.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col2 i:nth-of-type(2):after { + display: none; +} +.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2):after { + left: -1.5rem; +} +.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1) { + left: -1rem; +} + +.hs.row2.col3:checked ~ div > div > house > .row2.col3:before { + width: 1.5rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: -1.35rem; + left: 3rem; + box-shadow: 2rem 2rem 0 currentColor; + filter: hue-rotate(-10deg) brightness(1.1); + opacity: 0.7; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3:after { + filter: hue-rotate(-10deg) brightness(1.1); + width: 2rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: 0.5rem; + left: -0.15rem; + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(4) { + width: 5rem; + right: 0; + margin: auto; + top: 3.5rem; + background: rgba(79, 1, 14, 0.9); + height: 5rem; + border-radius: 0.3rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(4):after { + width: 4.5rem; + height: 0.25rem; + left: 0.25rem; + top: 2.4rem; + background: currentColor; + border-radius: 0.0001rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(4):before { + width: 0.25rem; + height: 4.5rem; + left: 2.4rem; + top: 0.25rem; + background: currentColor; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3.col3 > i:nth-of-type(4) { + border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2) { + border: solid rgba(255, 255, 255, 0) 1rem; + border-bottom: solid #6a341b 4rem; + width: calc(100% + 2.1rem); + left: -1rem; + top: -2.5rem; + box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2):before { + width: 100%; + height: 3rem; + border-radius: 50%; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2):after { + width: 3rem; + height: 4rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 0.5rem solid #bc2f2f; + top: -2rem; + box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; + border-radius: 0.5rem; + left: -0.25rem; + filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1):before, .hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1):after { + top: -8.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(even) i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(even) > i:nth-of-type(1) { + left: 10rem; +} +.hs.row2.col3:checked ~ div > div > house > .row3.col3 i:nth-of-type(2), +.hs.row2.col3:checked ~ div > div > house > .row3.col3 i:nth-of-type(1) { + display: none; +} + +.hs.house.row3.col3:checked ~ .hs.shed.row2.col3:checked ~ div > div > house > .row2.col3 { + border-bottom: 0.25rem dashed #bc2f2f; +} +.hs.house.row3.col3:checked ~ .hs.shed.row2.col3:checked ~ div > div > house > .row3.col3:before { + background: #bc502f; +} + +.hs.shed.row3.col3:checked ~ .hs.house.row2.col3:checked ~ div > div > house > .row2.col3 { + border-bottom: 0.25rem dashed #bc502f; +} +.hs.shed.row3.col3:checked ~ .hs.house.row2.col3:checked ~ div > div > house > .row3.col3:before { + background: #bc2f2f; +} + +.hs.house.row2.col0:not(:checked) ~ .hs.house.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row0.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.house.row2.col0:not(:checked) ~ .hs.house.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row0.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:not(:checked) ~ div > div > house > .row2.col3 > i:nth-of-type(2):after, +.hs.house.row1.col3:not(:checked) ~ .hs.house.row0.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2):after { + left: 4.75rem; + height: 3rem; + box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row1.col2:checked ~ .hs.row1.col3:not(:checked) ~ div > div > house > .row2.col3 > i:nth-of-type(1), +.hs.house.row1.col3:not(:checked) ~ .hs.house.row0.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1) { + left: 5rem; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.shed.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3 i:nth-of-type(2) { + display: block; + left: -42%; + width: 50%; +} +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.shed.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3 i:nth-of-type(1), +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.shed.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3 i:nth-of-type(2):after { + display: none; +} + +.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col2 i:nth-of-type(1), +.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col2 i:nth-of-type(2):after { + display: none; +} +.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2):after { + left: -1.5rem; +} +.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1) { + left: -1rem; +} + +.hs.row2.col4:checked ~ div > div > house > .row2.col4:before { + width: 1.5rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: -1.35rem; + left: 3rem; + box-shadow: 2rem 2rem 0 currentColor; + filter: hue-rotate(-10deg) brightness(1.1); + opacity: 0.7; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4:after { + filter: hue-rotate(-10deg) brightness(1.1); + width: 2rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: 0.5rem; + left: -0.15rem; + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(4) { + width: 5rem; + right: 0; + margin: auto; + top: 3.5rem; + background: rgba(79, 1, 14, 0.9); + height: 5rem; + border-radius: 0.3rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(4):after { + width: 4.5rem; + height: 0.25rem; + left: 0.25rem; + top: 2.4rem; + background: currentColor; + border-radius: 0.0001rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(4):before { + width: 0.25rem; + height: 4.5rem; + left: 2.4rem; + top: 0.25rem; + background: currentColor; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4.col3 > i:nth-of-type(4) { + border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(2) { + border: solid rgba(255, 255, 255, 0) 1rem; + border-bottom: solid #6a341b 4rem; + width: calc(100% + 2.1rem); + left: -1rem; + top: -2.5rem; + box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(2):before { + width: 100%; + height: 3rem; + border-radius: 50%; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(2):after { + width: 3rem; + height: 4rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 0.5rem solid #bc2f2f; + top: -2rem; + box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; + border-radius: 0.5rem; + left: -0.25rem; + filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(1):before, .hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(1):after { + top: -8.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(even) i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(even) > i:nth-of-type(1) { + left: 10rem; +} +.hs.row2.col4:checked ~ div > div > house > .row3.col4 i:nth-of-type(2), +.hs.row2.col4:checked ~ div > div > house > .row3.col4 i:nth-of-type(1) { + display: none; +} + +.hs.house.row3.col4:checked ~ .hs.shed.row2.col4:checked ~ div > div > house > .row2.col4 { + border-bottom: 0.25rem dashed #bc2f2f; +} +.hs.house.row3.col4:checked ~ .hs.shed.row2.col4:checked ~ div > div > house > .row3.col4:before { + background: #bc502f; +} + +.hs.shed.row3.col4:checked ~ .hs.house.row2.col4:checked ~ div > div > house > .row2.col4 { + border-bottom: 0.25rem dashed #bc502f; +} +.hs.shed.row3.col4:checked ~ .hs.house.row2.col4:checked ~ div > div > house > .row3.col4:before { + background: #bc2f2f; +} + +.hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col4:checked ~ .hs.house.row2.col5:not(:checked) ~ .hs.house.row0.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col4:checked ~ .hs.house.row2.col5:not(:checked) ~ .hs.house.row0.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:not(:checked) ~ div > div > house > .row2.col4 > i:nth-of-type(2):after, +.hs.house.row1.col4:not(:checked) ~ .hs.house.row0.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(2):after { + left: 4.75rem; + height: 3rem; + box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row1.col3:checked ~ .hs.row1.col4:not(:checked) ~ div > div > house > .row2.col4 > i:nth-of-type(1), +.hs.house.row1.col4:not(:checked) ~ .hs.house.row0.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(1) { + left: 5rem; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.shed.row1.col3:not(:checked) ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 i:nth-of-type(2) { + display: block; + left: -42%; + width: 50%; +} +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.shed.row1.col3:not(:checked) ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 i:nth-of-type(1), +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.shed.row1.col3:not(:checked) ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 i:nth-of-type(2):after { + display: none; +} + +.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col2 i:nth-of-type(1), +.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col2 i:nth-of-type(2):after { + display: none; +} +.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(2):after { + left: -1.5rem; +} +.row2.col2:checked ~ .row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(1) { + left: -1rem; +} + +.hs.row3.col1:checked ~ div > div > house > .row3.col1:before { + width: 1.5rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: -1.35rem; + left: 3rem; + box-shadow: 2rem 2rem 0 currentColor; + filter: hue-rotate(-10deg) brightness(1.1); + opacity: 0.7; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1:after { + filter: hue-rotate(-10deg) brightness(1.1); + width: 2rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: 0.5rem; + left: -0.15rem; + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(4) { + width: 5rem; + right: 0; + margin: auto; + top: 3.5rem; + background: rgba(79, 1, 14, 0.9); + height: 5rem; + border-radius: 0.3rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(4):after { + width: 4.5rem; + height: 0.25rem; + left: 0.25rem; + top: 2.4rem; + background: currentColor; + border-radius: 0.0001rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(4):before { + width: 0.25rem; + height: 4.5rem; + left: 2.4rem; + top: 0.25rem; + background: currentColor; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1.col3 > i:nth-of-type(4) { + border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(2) { + border: solid rgba(255, 255, 255, 0) 1rem; + border-bottom: solid #6a341b 4rem; + width: calc(100% + 2.1rem); + left: -1rem; + top: -2.5rem; + box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(2):before { + width: 100%; + height: 3rem; + border-radius: 50%; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(2):after { + width: 3rem; + height: 4rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 0.5rem solid #bc2f2f; + top: -2rem; + box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; + border-radius: 0.5rem; + left: -0.25rem; + filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(1):before, .hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(1):after { + top: -8.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(even) i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(even) > i:nth-of-type(1) { + left: 10rem; +} +.hs.row3.col1:checked ~ div > div > house > .row4.col1 i:nth-of-type(2), +.hs.row3.col1:checked ~ div > div > house > .row4.col1 i:nth-of-type(1) { + display: none; +} + +.hs.house.row4.col1:checked ~ .hs.shed.row3.col1:checked ~ div > div > house > .row3.col1 { + border-bottom: 0.25rem dashed #bc2f2f; +} +.hs.house.row4.col1:checked ~ .hs.shed.row3.col1:checked ~ div > div > house > .row4.col1:before { + background: #bc502f; +} + +.hs.shed.row4.col1:checked ~ .hs.house.row3.col1:checked ~ div > div > house > .row3.col1 { + border-bottom: 0.25rem dashed #bc502f; +} +.hs.shed.row4.col1:checked ~ .hs.house.row3.col1:checked ~ div > div > house > .row4.col1:before { + background: #bc2f2f; +} + +.hs.house.row3.col-2:not(:checked) ~ .hs.house.row3.col1:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.house.row1.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.house.row3.col-2:not(:checked) ~ .hs.house.row3.col1:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.house.row1.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:not(:checked) ~ div > div > house > .row3.col1 > i:nth-of-type(2):after, +.hs.house.row2.col1:not(:checked) ~ .hs.house.row1.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(2):after { + left: 4.75rem; + height: 3rem; + box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row2.col0:checked ~ .hs.row2.col1:not(:checked) ~ div > div > house > .row3.col1 > i:nth-of-type(1), +.hs.house.row2.col1:not(:checked) ~ .hs.house.row1.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(1) { + left: 5rem; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.house.row2.col0:not(:checked) ~ .hs.shed.row2.col0:not(:checked) ~ .hs.row2.col1:checked ~ div > div > house > .row3.col1 i:nth-of-type(2) { + display: block; + left: -42%; + width: 50%; +} +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.house.row2.col0:not(:checked) ~ .hs.shed.row2.col0:not(:checked) ~ .hs.row2.col1:checked ~ div > div > house > .row3.col1 i:nth-of-type(1), +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.house.row2.col0:not(:checked) ~ .hs.shed.row2.col0:not(:checked) ~ .hs.row2.col1:checked ~ div > div > house > .row3.col1 i:nth-of-type(2):after { + display: none; +} + +.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col2 i:nth-of-type(1), +.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col2 i:nth-of-type(2):after { + display: none; +} +.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2):after { + left: -1.5rem; +} +.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1) { + left: -1rem; +} + +.hs.row3.col2:checked ~ div > div > house > .row3.col2:before { + width: 1.5rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: -1.35rem; + left: 3rem; + box-shadow: 2rem 2rem 0 currentColor; + filter: hue-rotate(-10deg) brightness(1.1); + opacity: 0.7; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2:after { + filter: hue-rotate(-10deg) brightness(1.1); + width: 2rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: 0.5rem; + left: -0.15rem; + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(4) { + width: 5rem; + right: 0; + margin: auto; + top: 3.5rem; + background: rgba(79, 1, 14, 0.9); + height: 5rem; + border-radius: 0.3rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(4):after { + width: 4.5rem; + height: 0.25rem; + left: 0.25rem; + top: 2.4rem; + background: currentColor; + border-radius: 0.0001rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(4):before { + width: 0.25rem; + height: 4.5rem; + left: 2.4rem; + top: 0.25rem; + background: currentColor; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2.col3 > i:nth-of-type(4) { + border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(2) { + border: solid rgba(255, 255, 255, 0) 1rem; + border-bottom: solid #6a341b 4rem; + width: calc(100% + 2.1rem); + left: -1rem; + top: -2.5rem; + box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(2):before { + width: 100%; + height: 3rem; + border-radius: 50%; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(2):after { + width: 3rem; + height: 4rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 0.5rem solid #bc2f2f; + top: -2rem; + box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; + border-radius: 0.5rem; + left: -0.25rem; + filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(1):before, .hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(1):after { + top: -8.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(even) i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(even) > i:nth-of-type(1) { + left: 10rem; +} +.hs.row3.col2:checked ~ div > div > house > .row4.col2 i:nth-of-type(2), +.hs.row3.col2:checked ~ div > div > house > .row4.col2 i:nth-of-type(1) { + display: none; +} + +.hs.house.row4.col2:checked ~ .hs.shed.row3.col2:checked ~ div > div > house > .row3.col2 { + border-bottom: 0.25rem dashed #bc2f2f; +} +.hs.house.row4.col2:checked ~ .hs.shed.row3.col2:checked ~ div > div > house > .row4.col2:before { + background: #bc502f; +} + +.hs.shed.row4.col2:checked ~ .hs.house.row3.col2:checked ~ div > div > house > .row3.col2 { + border-bottom: 0.25rem dashed #bc502f; +} +.hs.shed.row4.col2:checked ~ .hs.house.row3.col2:checked ~ div > div > house > .row4.col2:before { + background: #bc2f2f; +} + +.hs.house.row3.col-1:not(:checked) ~ .hs.house.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row1.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.house.row3.col-1:not(:checked) ~ .hs.house.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row1.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:not(:checked) ~ div > div > house > .row3.col2 > i:nth-of-type(2):after, +.hs.house.row2.col2:not(:checked) ~ .hs.house.row1.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(2):after { + left: 4.75rem; + height: 3rem; + box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row2.col1:checked ~ .hs.row2.col2:not(:checked) ~ div > div > house > .row3.col2 > i:nth-of-type(1), +.hs.house.row2.col2:not(:checked) ~ .hs.house.row1.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(1) { + left: 5rem; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.house.row2.col1:not(:checked) ~ .hs.shed.row2.col1:not(:checked) ~ .hs.row2.col2:checked ~ div > div > house > .row3.col2 i:nth-of-type(2) { + display: block; + left: -42%; + width: 50%; +} +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.house.row2.col1:not(:checked) ~ .hs.shed.row2.col1:not(:checked) ~ .hs.row2.col2:checked ~ div > div > house > .row3.col2 i:nth-of-type(1), +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.house.row2.col1:not(:checked) ~ .hs.shed.row2.col1:not(:checked) ~ .hs.row2.col2:checked ~ div > div > house > .row3.col2 i:nth-of-type(2):after { + display: none; +} + +.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col2 i:nth-of-type(1), +.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col2 i:nth-of-type(2):after { + display: none; +} +.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2):after { + left: -1.5rem; +} +.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1) { + left: -1rem; +} + +.hs.row3.col3:checked ~ div > div > house > .row3.col3:before { + width: 1.5rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: -1.35rem; + left: 3rem; + box-shadow: 2rem 2rem 0 currentColor; + filter: hue-rotate(-10deg) brightness(1.1); + opacity: 0.7; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3:after { + filter: hue-rotate(-10deg) brightness(1.1); + width: 2rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: 0.5rem; + left: -0.15rem; + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(4) { + width: 5rem; + right: 0; + margin: auto; + top: 3.5rem; + background: rgba(79, 1, 14, 0.9); + height: 5rem; + border-radius: 0.3rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(4):after { + width: 4.5rem; + height: 0.25rem; + left: 0.25rem; + top: 2.4rem; + background: currentColor; + border-radius: 0.0001rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(4):before { + width: 0.25rem; + height: 4.5rem; + left: 2.4rem; + top: 0.25rem; + background: currentColor; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3.col4 > i:nth-of-type(4) { + border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2) { + border: solid rgba(255, 255, 255, 0) 1rem; + border-bottom: solid #6a341b 4rem; + width: calc(100% + 2.1rem); + left: -1rem; + top: -2.5rem; + box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2):before { + width: 100%; + height: 3rem; + border-radius: 50%; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2):after { + width: 3rem; + height: 4rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 0.5rem solid #bc2f2f; + top: -2rem; + box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; + border-radius: 0.5rem; + left: -0.25rem; + filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1):before, .hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1):after { + top: -8.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(even) i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(even) > i:nth-of-type(1) { + left: 10rem; +} +.hs.row3.col3:checked ~ div > div > house > .row4.col3 i:nth-of-type(2), +.hs.row3.col3:checked ~ div > div > house > .row4.col3 i:nth-of-type(1) { + display: none; +} + +.hs.house.row4.col3:checked ~ .hs.shed.row3.col3:checked ~ div > div > house > .row3.col3 { + border-bottom: 0.25rem dashed #bc2f2f; +} +.hs.house.row4.col3:checked ~ .hs.shed.row3.col3:checked ~ div > div > house > .row4.col3:before { + background: #bc502f; +} + +.hs.shed.row4.col3:checked ~ .hs.house.row3.col3:checked ~ div > div > house > .row3.col3 { + border-bottom: 0.25rem dashed #bc502f; +} +.hs.shed.row4.col3:checked ~ .hs.house.row3.col3:checked ~ div > div > house > .row4.col3:before { + background: #bc2f2f; +} + +.hs.house.row3.col0:not(:checked) ~ .hs.house.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row1.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.house.row3.col0:not(:checked) ~ .hs.house.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row1.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:not(:checked) ~ div > div > house > .row3.col3 > i:nth-of-type(2):after, +.hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2):after { + left: 4.75rem; + height: 3rem; + box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row2.col2:checked ~ .hs.row2.col3:not(:checked) ~ div > div > house > .row3.col3 > i:nth-of-type(1), +.hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1) { + left: 5rem; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.shed.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ div > div > house > .row3.col3 i:nth-of-type(2) { + display: block; + left: -42%; + width: 50%; +} +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.shed.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ div > div > house > .row3.col3 i:nth-of-type(1), +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.shed.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ div > div > house > .row3.col3 i:nth-of-type(2):after { + display: none; +} + +.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col2 i:nth-of-type(1), +.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col2 i:nth-of-type(2):after { + display: none; +} +.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2):after { + left: -1.5rem; +} +.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1) { + left: -1rem; +} + +.hs.row3.col4:checked ~ div > div > house > .row3.col4:before { + width: 1.5rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: -1.35rem; + left: 3rem; + box-shadow: 2rem 2rem 0 currentColor; + filter: hue-rotate(-10deg) brightness(1.1); + opacity: 0.7; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4:after { + filter: hue-rotate(-10deg) brightness(1.1); + width: 2rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: 0.5rem; + left: -0.15rem; + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(4) { + width: 5rem; + right: 0; + margin: auto; + top: 3.5rem; + background: rgba(79, 1, 14, 0.9); + height: 5rem; + border-radius: 0.3rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(4):after { + width: 4.5rem; + height: 0.25rem; + left: 0.25rem; + top: 2.4rem; + background: currentColor; + border-radius: 0.0001rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(4):before { + width: 0.25rem; + height: 4.5rem; + left: 2.4rem; + top: 0.25rem; + background: currentColor; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4.col3 > i:nth-of-type(4) { + border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(2) { + border: solid rgba(255, 255, 255, 0) 1rem; + border-bottom: solid #6a341b 4rem; + width: calc(100% + 2.1rem); + left: -1rem; + top: -2.5rem; + box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(2):before { + width: 100%; + height: 3rem; + border-radius: 50%; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(2):after { + width: 3rem; + height: 4rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 0.5rem solid #bc2f2f; + top: -2rem; + box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; + border-radius: 0.5rem; + left: -0.25rem; + filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(1):before, .hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(1):after { + top: -8.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(even) i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(even) > i:nth-of-type(1) { + left: 10rem; +} +.hs.row3.col4:checked ~ div > div > house > .row4.col4 i:nth-of-type(2), +.hs.row3.col4:checked ~ div > div > house > .row4.col4 i:nth-of-type(1) { + display: none; +} + +.hs.house.row4.col4:checked ~ .hs.shed.row3.col4:checked ~ div > div > house > .row3.col4 { + border-bottom: 0.25rem dashed #bc2f2f; +} +.hs.house.row4.col4:checked ~ .hs.shed.row3.col4:checked ~ div > div > house > .row4.col4:before { + background: #bc502f; +} + +.hs.shed.row4.col4:checked ~ .hs.house.row3.col4:checked ~ div > div > house > .row3.col4 { + border-bottom: 0.25rem dashed #bc502f; +} +.hs.shed.row4.col4:checked ~ .hs.house.row3.col4:checked ~ div > div > house > .row4.col4:before { + background: #bc2f2f; +} + +.hs.house.row3.col1:not(:checked) ~ .hs.house.row3.col4:checked ~ .hs.house.row3.col5:not(:checked) ~ .hs.house.row1.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.house.row3.col1:not(:checked) ~ .hs.house.row3.col4:checked ~ .hs.house.row3.col5:not(:checked) ~ .hs.house.row1.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:not(:checked) ~ div > div > house > .row3.col4 > i:nth-of-type(2):after, +.hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(2):after { + left: 4.75rem; + height: 3rem; + box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row2.col3:checked ~ .hs.row2.col4:not(:checked) ~ div > div > house > .row3.col4 > i:nth-of-type(1), +.hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(1) { + left: 5rem; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.shed.row2.col3:not(:checked) ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4 i:nth-of-type(2) { + display: block; + left: -42%; + width: 50%; +} +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.shed.row2.col3:not(:checked) ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4 i:nth-of-type(1), +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.shed.row2.col3:not(:checked) ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4 i:nth-of-type(2):after { + display: none; +} + +.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col2 i:nth-of-type(1), +.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col2 i:nth-of-type(2):after { + display: none; +} +.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(2):after { + left: -1.5rem; +} +.row3.col2:checked ~ .row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(1) { + left: -1rem; +} + +.hs.row4.col1:checked ~ div > div > house > .row4.col1:before { + width: 1.5rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: -1.35rem; + left: 3rem; + box-shadow: 2rem 2rem 0 currentColor; + filter: hue-rotate(-10deg) brightness(1.1); + opacity: 0.7; +} +.hs.row4.col1:checked ~ div > div > house > .row4.col1:after { + filter: hue-rotate(-10deg) brightness(1.1); + width: 2rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: 0.5rem; + left: -0.15rem; + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} +.hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(4) { + width: 5rem; + right: 0; + margin: auto; + top: 3.5rem; + background: rgba(79, 1, 14, 0.9); + height: 5rem; + border-radius: 0.3rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +.hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(4):after { + width: 4.5rem; + height: 0.25rem; + left: 0.25rem; + top: 2.4rem; + background: currentColor; + border-radius: 0.0001rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); +} +.hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(4):before { + width: 0.25rem; + height: 4.5rem; + left: 2.4rem; + top: 0.25rem; + background: currentColor; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.row4.col1:checked ~ div > div > house > .row4.col1.col1 > i:nth-of-type(4) { + border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; +} +.hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(2) { + border: solid rgba(255, 255, 255, 0) 1rem; + border-bottom: solid #6a341b 4rem; + width: calc(100% + 2.1rem); + left: -1rem; + top: -2.5rem; + box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); +} +.hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(2):before { + width: 100%; + height: 3rem; + border-radius: 50%; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); +} +.hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(2):after { + width: 3rem; + height: 4rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 0.5rem solid #bc2f2f; + top: -2rem; + box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; + border-radius: 0.5rem; + left: -0.25rem; + filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); +} +.hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(1):before, .hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(1):after { + top: -8.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row4.col1:checked ~ div > div > house > .row4.col1:nth-of-type(even) i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.row4.col1:checked ~ div > div > house > .row4.col1:nth-of-type(even) > i:nth-of-type(1) { + left: 10rem; +} +.hs.row4.col1:checked ~ div > div > house > .row5.col1 i:nth-of-type(2), +.hs.row4.col1:checked ~ div > div > house > .row5.col1 i:nth-of-type(1) { + display: none; +} + +.hs.house.row5.col1:checked ~ .hs.shed.row4.col1:checked ~ div > div > house > .row4.col1 { + border-bottom: 0.25rem dashed #bc2f2f; +} +.hs.house.row5.col1:checked ~ .hs.shed.row4.col1:checked ~ div > div > house > .row5.col1:before { + background: #bc502f; +} + +.hs.shed.row5.col1:checked ~ .hs.house.row4.col1:checked ~ div > div > house > .row4.col1 { + border-bottom: 0.25rem dashed #bc502f; +} +.hs.shed.row5.col1:checked ~ .hs.house.row4.col1:checked ~ div > div > house > .row5.col1:before { + background: #bc2f2f; +} + +.hs.house.row4.col-2:not(:checked) ~ .hs.house.row4.col1:checked ~ .hs.house.row4.col2:not(:checked) ~ .hs.house.row2.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.house.row4.col-2:not(:checked) ~ .hs.house.row4.col1:checked ~ .hs.house.row4.col2:not(:checked) ~ .hs.house.row2.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:not(:checked) ~ div > div > house > .row4.col1 > i:nth-of-type(2):after, +.hs.house.row3.col1:not(:checked) ~ .hs.house.row2.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(2):after { + left: 4.75rem; + height: 3rem; + box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row3.col0:checked ~ .hs.row3.col1:not(:checked) ~ div > div > house > .row4.col1 > i:nth-of-type(1), +.hs.house.row3.col1:not(:checked) ~ .hs.house.row2.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(1) { + left: 5rem; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.house.row3.col0:not(:checked) ~ .hs.shed.row3.col0:not(:checked) ~ .hs.row3.col1:checked ~ div > div > house > .row4.col1 i:nth-of-type(2) { + display: block; + left: -42%; + width: 50%; +} +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.house.row3.col0:not(:checked) ~ .hs.shed.row3.col0:not(:checked) ~ .hs.row3.col1:checked ~ div > div > house > .row4.col1 i:nth-of-type(1), +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.house.row3.col0:not(:checked) ~ .hs.shed.row3.col0:not(:checked) ~ .hs.row3.col1:checked ~ div > div > house > .row4.col1 i:nth-of-type(2):after { + display: none; +} + +.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col2 i:nth-of-type(1), +.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col2 i:nth-of-type(2):after { + display: none; +} +.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2):after { + left: -1.5rem; +} +.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1) { + left: -1rem; +} + +.hs.row4.col2:checked ~ div > div > house > .row4.col2:before { + width: 1.5rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: -1.35rem; + left: 3rem; + box-shadow: 2rem 2rem 0 currentColor; + filter: hue-rotate(-10deg) brightness(1.1); + opacity: 0.7; +} +.hs.row4.col2:checked ~ div > div > house > .row4.col2:after { + filter: hue-rotate(-10deg) brightness(1.1); + width: 2rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: 0.5rem; + left: -0.15rem; + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} +.hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(4) { + width: 5rem; + right: 0; + margin: auto; + top: 3.5rem; + background: rgba(79, 1, 14, 0.9); + height: 5rem; + border-radius: 0.3rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +.hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(4):after { + width: 4.5rem; + height: 0.25rem; + left: 0.25rem; + top: 2.4rem; + background: currentColor; + border-radius: 0.0001rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); +} +.hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(4):before { + width: 0.25rem; + height: 4.5rem; + left: 2.4rem; + top: 0.25rem; + background: currentColor; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.row4.col2:checked ~ div > div > house > .row4.col2.col3 > i:nth-of-type(4) { + border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; +} +.hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(2) { + border: solid rgba(255, 255, 255, 0) 1rem; + border-bottom: solid #6a341b 4rem; + width: calc(100% + 2.1rem); + left: -1rem; + top: -2.5rem; + box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); +} +.hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(2):before { + width: 100%; + height: 3rem; + border-radius: 50%; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); +} +.hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(2):after { + width: 3rem; + height: 4rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 0.5rem solid #bc2f2f; + top: -2rem; + box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; + border-radius: 0.5rem; + left: -0.25rem; + filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); +} +.hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(1):before, .hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(1):after { + top: -8.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row4.col2:checked ~ div > div > house > .row4.col2:nth-of-type(even) i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.row4.col2:checked ~ div > div > house > .row4.col2:nth-of-type(even) > i:nth-of-type(1) { + left: 10rem; +} +.hs.row4.col2:checked ~ div > div > house > .row5.col2 i:nth-of-type(2), +.hs.row4.col2:checked ~ div > div > house > .row5.col2 i:nth-of-type(1) { + display: none; +} + +.hs.house.row5.col2:checked ~ .hs.shed.row4.col2:checked ~ div > div > house > .row4.col2 { + border-bottom: 0.25rem dashed #bc2f2f; +} +.hs.house.row5.col2:checked ~ .hs.shed.row4.col2:checked ~ div > div > house > .row5.col2:before { + background: #bc502f; +} + +.hs.shed.row5.col2:checked ~ .hs.house.row4.col2:checked ~ div > div > house > .row4.col2 { + border-bottom: 0.25rem dashed #bc502f; +} +.hs.shed.row5.col2:checked ~ .hs.house.row4.col2:checked ~ div > div > house > .row5.col2:before { + background: #bc2f2f; +} + +.hs.house.row4.col-1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row2.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.house.row4.col-1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row2.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:not(:checked) ~ div > div > house > .row4.col2 > i:nth-of-type(2):after, +.hs.house.row3.col2:not(:checked) ~ .hs.house.row2.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(2):after { + left: 4.75rem; + height: 3rem; + box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row3.col1:checked ~ .hs.row3.col2:not(:checked) ~ div > div > house > .row4.col2 > i:nth-of-type(1), +.hs.house.row3.col2:not(:checked) ~ .hs.house.row2.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(1) { + left: 5rem; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col1:not(:checked) ~ .hs.row3.col2:checked ~ div > div > house > .row4.col2 i:nth-of-type(2) { + display: block; + left: -42%; + width: 50%; +} +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col1:not(:checked) ~ .hs.row3.col2:checked ~ div > div > house > .row4.col2 i:nth-of-type(1), +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col1:not(:checked) ~ .hs.row3.col2:checked ~ div > div > house > .row4.col2 i:nth-of-type(2):after { + display: none; +} + +.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col2 i:nth-of-type(1), +.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col2 i:nth-of-type(2):after { + display: none; +} +.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2):after { + left: -1.5rem; +} +.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1) { + left: -1rem; +} + +.hs.row4.col3:checked ~ div > div > house > .row4.col3:before { + width: 1.5rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: -1.35rem; + left: 3rem; + box-shadow: 2rem 2rem 0 currentColor; + filter: hue-rotate(-10deg) brightness(1.1); + opacity: 0.7; +} +.hs.row4.col3:checked ~ div > div > house > .row4.col3:after { + filter: hue-rotate(-10deg) brightness(1.1); + width: 2rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: 0.5rem; + left: -0.15rem; + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} +.hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(4) { + width: 5rem; + right: 0; + margin: auto; + top: 3.5rem; + background: rgba(79, 1, 14, 0.9); + height: 5rem; + border-radius: 0.3rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +.hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(4):after { + width: 4.5rem; + height: 0.25rem; + left: 0.25rem; + top: 2.4rem; + background: currentColor; + border-radius: 0.0001rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); +} +.hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(4):before { + width: 0.25rem; + height: 4.5rem; + left: 2.4rem; + top: 0.25rem; + background: currentColor; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.row4.col3:checked ~ div > div > house > .row4.col3.col1 > i:nth-of-type(4) { + border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; +} +.hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2) { + border: solid rgba(255, 255, 255, 0) 1rem; + border-bottom: solid #6a341b 4rem; + width: calc(100% + 2.1rem); + left: -1rem; + top: -2.5rem; + box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); +} +.hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2):before { + width: 100%; + height: 3rem; + border-radius: 50%; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); +} +.hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2):after { + width: 3rem; + height: 4rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 0.5rem solid #bc2f2f; + top: -2rem; + box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; + border-radius: 0.5rem; + left: -0.25rem; + filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); +} +.hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1):before, .hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1):after { + top: -8.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row4.col3:checked ~ div > div > house > .row4.col3:nth-of-type(even) i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.row4.col3:checked ~ div > div > house > .row4.col3:nth-of-type(even) > i:nth-of-type(1) { + left: 10rem; +} +.hs.row4.col3:checked ~ div > div > house > .row5.col3 i:nth-of-type(2), +.hs.row4.col3:checked ~ div > div > house > .row5.col3 i:nth-of-type(1) { + display: none; +} + +.hs.house.row5.col3:checked ~ .hs.shed.row4.col3:checked ~ div > div > house > .row4.col3 { + border-bottom: 0.25rem dashed #bc2f2f; +} +.hs.house.row5.col3:checked ~ .hs.shed.row4.col3:checked ~ div > div > house > .row5.col3:before { + background: #bc502f; +} + +.hs.shed.row5.col3:checked ~ .hs.house.row4.col3:checked ~ div > div > house > .row4.col3 { + border-bottom: 0.25rem dashed #bc502f; +} +.hs.shed.row5.col3:checked ~ .hs.house.row4.col3:checked ~ div > div > house > .row5.col3:before { + background: #bc2f2f; +} + +.hs.house.row4.col0:not(:checked) ~ .hs.house.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row2.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.house.row4.col0:not(:checked) ~ .hs.house.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row2.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:not(:checked) ~ div > div > house > .row4.col3 > i:nth-of-type(2):after, +.hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2):after { + left: 4.75rem; + height: 3rem; + box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row3.col2:checked ~ .hs.row3.col3:not(:checked) ~ div > div > house > .row4.col3 > i:nth-of-type(1), +.hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1) { + left: 5rem; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.shed.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ div > div > house > .row4.col3 i:nth-of-type(2) { + display: block; + left: -42%; + width: 50%; +} +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.shed.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ div > div > house > .row4.col3 i:nth-of-type(1), +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.shed.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ div > div > house > .row4.col3 i:nth-of-type(2):after { + display: none; +} + +.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col2 i:nth-of-type(1), +.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col2 i:nth-of-type(2):after { + display: none; +} +.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2):after { + left: -1.5rem; +} +.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1) { + left: -1rem; +} + +.hs.row4.col4:checked ~ div > div > house > .row4.col4:before { + width: 1.5rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: -1.35rem; + left: 3rem; + box-shadow: 2rem 2rem 0 currentColor; + filter: hue-rotate(-10deg) brightness(1.1); + opacity: 0.7; +} +.hs.row4.col4:checked ~ div > div > house > .row4.col4:after { + filter: hue-rotate(-10deg) brightness(1.1); + width: 2rem; + height: 1rem; + background: currentColor; + border-radius: 0.25rem; + top: 0.5rem; + left: -0.15rem; + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} +.hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(4) { + width: 5rem; + right: 0; + margin: auto; + top: 3.5rem; + background: rgba(79, 1, 14, 0.9); + height: 5rem; + border-radius: 0.3rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem currentColor, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +.hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(4):after { + width: 4.5rem; + height: 0.25rem; + left: 0.25rem; + top: 2.4rem; + background: currentColor; + border-radius: 0.0001rem; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), 0 3rem 0 0.3rem #dcb175, 0 3.5rem 0.35rem 0.25rem rgba(79, 1, 14, 0.9); +} +.hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(4):before { + width: 0.25rem; + height: 4.5rem; + left: 2.4rem; + top: 0.25rem; + background: currentColor; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.row4.col4:checked ~ div > div > house > .row4.col4.col1 > i:nth-of-type(4) { + border-radius: 2.25rem 2.25rem 0.3rem 0.3rem; +} +.hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(2) { + border: solid rgba(255, 255, 255, 0) 1rem; + border-bottom: solid #6a341b 4rem; + width: calc(100% + 2.1rem); + left: -1rem; + top: -2.5rem; + box-shadow: 0 0.25rem 0 #20112a, 0 1.5rem 1rem -1rem rgba(79, 1, 14, 0.75); +} +.hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(2):before { + width: 100%; + height: 3rem; + border-radius: 50%; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 0.75rem, rgba(79, 1, 14, 0.4), rgba(255, 255, 255, 0) 1rem); +} +.hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(2):after { + width: 3rem; + height: 4rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 0.5rem solid #bc2f2f; + top: -2rem; + box-shadow: inset 0 4rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -3rem 0 -1rem #252529; + border-radius: 0.5rem; + left: -0.25rem; + filter: drop-shadow(-0.25rem 2rem 0.5rem rgba(0, 0, 0, 0.15)); +} +.hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(1):before, .hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(1):after { + top: -8.5rem; + left: -1rem; + animation: smoke 8s linear infinite; +} +.hs.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(1):before { + animation: smoke 7.25s 3.75s linear infinite; +} +.hs.row4.col4:checked ~ div > div > house > .row4.col4:nth-of-type(even) i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.row4.col4:checked ~ div > div > house > .row4.col4:nth-of-type(even) > i:nth-of-type(1) { + left: 10rem; +} +.hs.row4.col4:checked ~ div > div > house > .row5.col4 i:nth-of-type(2), +.hs.row4.col4:checked ~ div > div > house > .row5.col4 i:nth-of-type(1) { + display: none; +} + +.hs.house.row5.col4:checked ~ .hs.shed.row4.col4:checked ~ div > div > house > .row4.col4 { + border-bottom: 0.25rem dashed #bc2f2f; +} +.hs.house.row5.col4:checked ~ .hs.shed.row4.col4:checked ~ div > div > house > .row5.col4:before { + background: #bc502f; +} + +.hs.shed.row5.col4:checked ~ .hs.house.row4.col4:checked ~ div > div > house > .row4.col4 { + border-bottom: 0.25rem dashed #bc502f; +} +.hs.shed.row5.col4:checked ~ .hs.house.row4.col4:checked ~ div > div > house > .row5.col4:before { + background: #bc2f2f; +} + +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col4:checked ~ .hs.house.row4.col5:not(:checked) ~ .hs.house.row2.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(2):after { + left: 9.5rem; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col4:checked ~ .hs.house.row4.col5:not(:checked) ~ .hs.house.row2.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(1) { + left: 11rem; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:not(:checked) ~ div > div > house > .row4.col4 > i:nth-of-type(2):after, +.hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(2):after { + left: 4.75rem; + height: 3rem; + box-shadow: inset 0 6rem 0 #bc2f2f, 0 -0.5rem 0 -0.2rem #6a341b, 0 -2.25rem 0 -1rem #252529; + border-radius: 0 0 1rem 1rem; +} +.hs.row3.col3:checked ~ .hs.row3.col4:not(:checked) ~ div > div > house > .row4.col4 > i:nth-of-type(1), +.hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(1) { + left: 5rem; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.shed.row3.col3:not(:checked) ~ .hs.row3.col4:checked ~ div > div > house > .row4.col4 i:nth-of-type(2) { + display: block; + left: -42%; + width: 50%; +} +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.shed.row3.col3:not(:checked) ~ .hs.row3.col4:checked ~ div > div > house > .row4.col4 i:nth-of-type(1), +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.shed.row3.col3:not(:checked) ~ .hs.row3.col4:checked ~ div > div > house > .row4.col4 i:nth-of-type(2):after { + display: none; +} + +.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col2 i:nth-of-type(1), +.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col2 i:nth-of-type(2):after { + display: none; +} +.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(2):after { + left: -1.5rem; +} +.row4.col2:checked ~ .row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(1) { + left: -1rem; +} + +.hs.row1.col1:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 > i:nth-of-type(5) { + display: block; + width: 105%; +} + +.hs.row1.col1:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.shed.row1.col3:checked ~ div > div > house > .row1.col2 > i:nth-of-type(5) { + display: block; + width: 115%; +} + +.hs.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 > i:nth-of-type(5) { + display: block; + width: 105%; +} + +.hs.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.shed.row1.col4:checked ~ div > div > house > .row1.col3 > i:nth-of-type(5) { + display: block; + width: 115%; +} + +.hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4 > i:nth-of-type(5) { + display: block; + width: 105%; +} + +.hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ .hs.shed.row1.col5:checked ~ div > div > house > .row1.col4 > i:nth-of-type(5) { + display: block; + width: 115%; +} + +.hs.row1.col4:checked ~ .hs.house.row1.col5:not(:checked) ~ .hs.row1.col6:checked ~ div > div > house > .row1.col5 > i:nth-of-type(5) { + display: block; + width: 105%; +} + +.hs.row1.col4:checked ~ .hs.house.row1.col5:not(:checked) ~ .hs.shed.row1.col6:checked ~ div > div > house > .row1.col5 > i:nth-of-type(5) { + display: block; + width: 115%; +} + +.hs.row1.col1:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.house.row1.col3:not(:checked) ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2 > i:nth-of-type(5) { + display: block; + width: 205%; +} +.hs.row1.col1:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.house.row1.col3:not(:checked) ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2 > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 3.5rem; + transform: rotate(4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} +.hs.row1.col1:checked ~ .hs.house.row1.col2:not(:checked) ~ .hs.house.row1.col3:not(:checked) ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2 > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 13.5rem; + transform: rotate(-4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1:after { + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1:after { + box-shadow: -2rem 6rem 0 rgba(204, 51, 51, 0.5), 0 7rem 0 currentColor; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1:after { + box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} + +.hs.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.house.row1.col4:not(:checked) ~ .hs.row1.col5:checked ~ div > div > house > .row1.col3 > i:nth-of-type(5) { + display: block; + width: 205%; +} +.hs.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.house.row1.col4:not(:checked) ~ .hs.row1.col5:checked ~ div > div > house > .row1.col3 > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 3.5rem; + transform: rotate(4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} +.hs.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ .hs.house.row1.col4:not(:checked) ~ .hs.row1.col5:checked ~ div > div > house > .row1.col3 > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 13.5rem; + transform: rotate(-4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2:after { + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2:after { + box-shadow: -2rem 6rem 0 rgba(204, 51, 51, 0.5), 0 7rem 0 currentColor; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2:after { + box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} + +.hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ .hs.house.row1.col5:not(:checked) ~ .hs.row1.col6:checked ~ div > div > house > .row1.col4 > i:nth-of-type(5) { + display: block; + width: 205%; +} +.hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ .hs.house.row1.col5:not(:checked) ~ .hs.row1.col6:checked ~ div > div > house > .row1.col4 > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 3.5rem; + transform: rotate(4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} +.hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ .hs.house.row1.col5:not(:checked) ~ .hs.row1.col6:checked ~ div > div > house > .row1.col4 > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 13.5rem; + transform: rotate(-4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3:after { + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3:after { + box-shadow: -2rem 4rem 0 rgba(204, 51, 51, 0.5), 0 8rem 0 currentColor; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3:after { + box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} + +.hs.row1.col4:checked ~ .hs.house.row1.col5:not(:checked) ~ .hs.house.row1.col6:not(:checked) ~ .hs.row1.col7:checked ~ div > div > house > .row1.col5 > i:nth-of-type(5) { + display: block; + width: 205%; +} +.hs.row1.col4:checked ~ .hs.house.row1.col5:not(:checked) ~ .hs.house.row1.col6:not(:checked) ~ .hs.row1.col7:checked ~ div > div > house > .row1.col5 > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 3.5rem; + transform: rotate(4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} +.hs.row1.col4:checked ~ .hs.house.row1.col5:not(:checked) ~ .hs.house.row1.col6:not(:checked) ~ .hs.row1.col7:checked ~ div > div > house > .row1.col5 > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 13.5rem; + transform: rotate(-4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4:after { + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4:after { + box-shadow: -2rem 6rem 0 rgba(204, 51, 51, 0.5), 0 8rem 0 currentColor; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4:after { + box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} + +.hs.row1.col1:checked ~ div > div > house > .row1.col1 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1 { + border-bottom: none; +} +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row1.col2:checked ~ div > div > house > .row1.col2 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2 { + border-bottom: none; +} +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row1.col3:checked ~ div > div > house > .row1.col3 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 { + border-bottom: none; +} +.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row1.col4:checked ~ div > div > house > .row1.col4 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 { + border-bottom: none; +} +.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col1:checked ~ div > div > house > .row2.col1 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1 { + border-bottom: none; +} +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col2:checked ~ div > div > house > .row2.col2 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2 { + border-bottom: none; +} +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col3:checked ~ div > div > house > .row2.col3 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 { + border-bottom: none; +} +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col4:checked ~ div > div > house > .row2.col4 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 { + border-bottom: none; +} +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col1:checked ~ div > div > house > .row3.col1 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1 { + border-bottom: none; +} +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col2:checked ~ div > div > house > .row3.col2 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2 { + border-bottom: none; +} +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col3:checked ~ div > div > house > .row3.col3 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3 { + border-bottom: none; +} +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col4:checked ~ div > div > house > .row3.col4 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4 { + border-bottom: none; +} +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col1:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ div > div > house > .row2.col2 > i:nth-of-type(5) { + display: block; + width: 105%; +} + +.hs.row2.col1:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.shed.row2.col3:checked ~ div > div > house > .row2.col2 > i:nth-of-type(5) { + display: block; + width: 115%; +} + +.hs.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.row2.col4:checked ~ div > div > house > .row2.col3 > i:nth-of-type(5) { + display: block; + width: 105%; +} + +.hs.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.shed.row2.col4:checked ~ div > div > house > .row2.col3 > i:nth-of-type(5) { + display: block; + width: 115%; +} + +.hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.row2.col5:checked ~ div > div > house > .row2.col4 > i:nth-of-type(5) { + display: block; + width: 105%; +} + +.hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.shed.row2.col5:checked ~ div > div > house > .row2.col4 > i:nth-of-type(5) { + display: block; + width: 115%; +} + +.hs.row2.col4:checked ~ .hs.house.row2.col5:not(:checked) ~ .hs.row2.col6:checked ~ div > div > house > .row2.col5 > i:nth-of-type(5) { + display: block; + width: 105%; +} + +.hs.row2.col4:checked ~ .hs.house.row2.col5:not(:checked) ~ .hs.shed.row2.col6:checked ~ div > div > house > .row2.col5 > i:nth-of-type(5) { + display: block; + width: 115%; +} + +.hs.row2.col1:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.house.row2.col3:not(:checked) ~ .hs.row2.col4:checked ~ div > div > house > .row2.col2 > i:nth-of-type(5) { + display: block; + width: 205%; +} +.hs.row2.col1:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.house.row2.col3:not(:checked) ~ .hs.row2.col4:checked ~ div > div > house > .row2.col2 > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 3.5rem; + transform: rotate(4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} +.hs.row2.col1:checked ~ .hs.house.row2.col2:not(:checked) ~ .hs.house.row2.col3:not(:checked) ~ .hs.row2.col4:checked ~ div > div > house > .row2.col2 > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 13.5rem; + transform: rotate(-4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col1:after { + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col1:after { + box-shadow: -2rem 4rem 0 rgba(204, 51, 51, 0.5), 0 6rem 0 currentColor; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1:after { + box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} + +.hs.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row2.col4:not(:checked) ~ .hs.row2.col5:checked ~ div > div > house > .row2.col3 > i:nth-of-type(5) { + display: block; + width: 205%; +} +.hs.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row2.col4:not(:checked) ~ .hs.row2.col5:checked ~ div > div > house > .row2.col3 > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 3.5rem; + transform: rotate(4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} +.hs.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row2.col4:not(:checked) ~ .hs.row2.col5:checked ~ div > div > house > .row2.col3 > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 13.5rem; + transform: rotate(-4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col2:after { + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col2:after { + box-shadow: -2rem 5rem 0 rgba(204, 51, 51, 0.5), 0 8rem 0 currentColor; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2:after { + box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} + +.hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row2.col5:not(:checked) ~ .hs.row2.col6:checked ~ div > div > house > .row2.col4 > i:nth-of-type(5) { + display: block; + width: 205%; +} +.hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row2.col5:not(:checked) ~ .hs.row2.col6:checked ~ div > div > house > .row2.col4 > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 3.5rem; + transform: rotate(4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} +.hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row2.col5:not(:checked) ~ .hs.row2.col6:checked ~ div > div > house > .row2.col4 > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 13.5rem; + transform: rotate(-4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col3:after { + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col3:after { + box-shadow: -2rem 6rem 0 rgba(204, 51, 51, 0.5), 0 8rem 0 currentColor; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3:after { + box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} + +.hs.row2.col4:checked ~ .hs.house.row2.col5:not(:checked) ~ .hs.house.row2.col6:not(:checked) ~ .hs.row2.col7:checked ~ div > div > house > .row2.col5 > i:nth-of-type(5) { + display: block; + width: 205%; +} +.hs.row2.col4:checked ~ .hs.house.row2.col5:not(:checked) ~ .hs.house.row2.col6:not(:checked) ~ .hs.row2.col7:checked ~ div > div > house > .row2.col5 > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 3.5rem; + transform: rotate(4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} +.hs.row2.col4:checked ~ .hs.house.row2.col5:not(:checked) ~ .hs.house.row2.col6:not(:checked) ~ .hs.row2.col7:checked ~ div > div > house > .row2.col5 > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 13.5rem; + transform: rotate(-4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col4:after { + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col4:after { + box-shadow: -2rem 4rem 0 rgba(204, 51, 51, 0.5), 0 6rem 0 currentColor; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4:after { + box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} + +.hs.row1.col1:checked ~ div > div > house > .row1.col1 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1 { + border-bottom: none; +} +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row1.col2:checked ~ div > div > house > .row1.col2 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2 { + border-bottom: none; +} +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row1.col3:checked ~ div > div > house > .row1.col3 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 { + border-bottom: none; +} +.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row1.col4:checked ~ div > div > house > .row1.col4 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 { + border-bottom: none; +} +.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col1:checked ~ div > div > house > .row2.col1 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1 { + border-bottom: none; +} +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col2:checked ~ div > div > house > .row2.col2 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2 { + border-bottom: none; +} +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col3:checked ~ div > div > house > .row2.col3 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 { + border-bottom: none; +} +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col4:checked ~ div > div > house > .row2.col4 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 { + border-bottom: none; +} +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col1:checked ~ div > div > house > .row3.col1 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1 { + border-bottom: none; +} +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col2:checked ~ div > div > house > .row3.col2 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2 { + border-bottom: none; +} +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col3:checked ~ div > div > house > .row3.col3 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3 { + border-bottom: none; +} +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col4:checked ~ div > div > house > .row3.col4 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4 { + border-bottom: none; +} +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col1:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ div > div > house > .row3.col2 > i:nth-of-type(5) { + display: block; + width: 105%; +} + +.hs.row3.col1:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.shed.row3.col3:checked ~ div > div > house > .row3.col2 > i:nth-of-type(5) { + display: block; + width: 115%; +} + +.hs.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.row3.col4:checked ~ div > div > house > .row3.col3 > i:nth-of-type(5) { + display: block; + width: 105%; +} + +.hs.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.shed.row3.col4:checked ~ div > div > house > .row3.col3 > i:nth-of-type(5) { + display: block; + width: 115%; +} + +.hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.row3.col5:checked ~ div > div > house > .row3.col4 > i:nth-of-type(5) { + display: block; + width: 105%; +} + +.hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.shed.row3.col5:checked ~ div > div > house > .row3.col4 > i:nth-of-type(5) { + display: block; + width: 115%; +} + +.hs.row3.col4:checked ~ .hs.house.row3.col5:not(:checked) ~ .hs.row3.col6:checked ~ div > div > house > .row3.col5 > i:nth-of-type(5) { + display: block; + width: 105%; +} + +.hs.row3.col4:checked ~ .hs.house.row3.col5:not(:checked) ~ .hs.shed.row3.col6:checked ~ div > div > house > .row3.col5 > i:nth-of-type(5) { + display: block; + width: 115%; +} + +.hs.row3.col1:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.house.row3.col3:not(:checked) ~ .hs.row3.col4:checked ~ div > div > house > .row3.col2 > i:nth-of-type(5) { + display: block; + width: 205%; +} +.hs.row3.col1:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.house.row3.col3:not(:checked) ~ .hs.row3.col4:checked ~ div > div > house > .row3.col2 > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 3.5rem; + transform: rotate(4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} +.hs.row3.col1:checked ~ .hs.house.row3.col2:not(:checked) ~ .hs.house.row3.col3:not(:checked) ~ .hs.row3.col4:checked ~ div > div > house > .row3.col2 > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 13.5rem; + transform: rotate(-4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col1:after { + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col1:after { + box-shadow: -2rem 6rem 0 rgba(204, 51, 51, 0.5), 0 7rem 0 currentColor; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1:after { + box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} + +.hs.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row3.col4:not(:checked) ~ .hs.row3.col5:checked ~ div > div > house > .row3.col3 > i:nth-of-type(5) { + display: block; + width: 205%; +} +.hs.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row3.col4:not(:checked) ~ .hs.row3.col5:checked ~ div > div > house > .row3.col3 > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 3.5rem; + transform: rotate(4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} +.hs.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row3.col4:not(:checked) ~ .hs.row3.col5:checked ~ div > div > house > .row3.col3 > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 13.5rem; + transform: rotate(-4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col2:after { + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col2:after { + box-shadow: -2rem 6rem 0 rgba(204, 51, 51, 0.5), 0 7rem 0 currentColor; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2:after { + box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} + +.hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row3.col5:not(:checked) ~ .hs.row3.col6:checked ~ div > div > house > .row3.col4 > i:nth-of-type(5) { + display: block; + width: 205%; +} +.hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row3.col5:not(:checked) ~ .hs.row3.col6:checked ~ div > div > house > .row3.col4 > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 3.5rem; + transform: rotate(4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} +.hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row3.col5:not(:checked) ~ .hs.row3.col6:checked ~ div > div > house > .row3.col4 > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 13.5rem; + transform: rotate(-4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col3:after { + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col3:after { + box-shadow: -2rem 5rem 0 rgba(204, 51, 51, 0.5), 0 7rem 0 currentColor; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3:after { + box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} + +.hs.row3.col4:checked ~ .hs.house.row3.col5:not(:checked) ~ .hs.house.row3.col6:not(:checked) ~ .hs.row3.col7:checked ~ div > div > house > .row3.col5 > i:nth-of-type(5) { + display: block; + width: 205%; +} +.hs.row3.col4:checked ~ .hs.house.row3.col5:not(:checked) ~ .hs.house.row3.col6:not(:checked) ~ .hs.row3.col7:checked ~ div > div > house > .row3.col5 > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 3.5rem; + transform: rotate(4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} +.hs.row3.col4:checked ~ .hs.house.row3.col5:not(:checked) ~ .hs.house.row3.col6:not(:checked) ~ .hs.row3.col7:checked ~ div > div > house > .row3.col5 > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 13.5rem; + transform: rotate(-4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row3.col4:after { + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row3.col4:after { + box-shadow: -2rem 5rem 0 rgba(204, 51, 51, 0.5), 0 7rem 0 currentColor; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4:after { + box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} + +.hs.row1.col1:checked ~ div > div > house > .row1.col1 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1 { + border-bottom: none; +} +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row1.col2:checked ~ div > div > house > .row1.col2 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2 { + border-bottom: none; +} +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row1.col3:checked ~ div > div > house > .row1.col3 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 { + border-bottom: none; +} +.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row1.col4:checked ~ div > div > house > .row1.col4 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 { + border-bottom: none; +} +.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col1:checked ~ div > div > house > .row2.col1 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1 { + border-bottom: none; +} +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col2:checked ~ div > div > house > .row2.col2 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2 { + border-bottom: none; +} +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col3:checked ~ div > div > house > .row2.col3 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 { + border-bottom: none; +} +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col4:checked ~ div > div > house > .row2.col4 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 { + border-bottom: none; +} +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col1:checked ~ div > div > house > .row3.col1 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1 { + border-bottom: none; +} +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col2:checked ~ div > div > house > .row3.col2 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2 { + border-bottom: none; +} +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col3:checked ~ div > div > house > .row3.col3 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3 { + border-bottom: none; +} +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col4:checked ~ div > div > house > .row3.col4 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4 { + border-bottom: none; +} +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row4.col1:checked ~ .hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ div > div > house > .row4.col2 > i:nth-of-type(5) { + display: block; + width: 105%; +} + +.hs.row4.col1:checked ~ .hs.house.row4.col2:not(:checked) ~ .hs.shed.row4.col3:checked ~ div > div > house > .row4.col2 > i:nth-of-type(5) { + display: block; + width: 115%; +} + +.hs.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.row4.col4:checked ~ div > div > house > .row4.col3 > i:nth-of-type(5) { + display: block; + width: 105%; +} + +.hs.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.shed.row4.col4:checked ~ div > div > house > .row4.col3 > i:nth-of-type(5) { + display: block; + width: 115%; +} + +.hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.row4.col5:checked ~ div > div > house > .row4.col4 > i:nth-of-type(5) { + display: block; + width: 105%; +} + +.hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.shed.row4.col5:checked ~ div > div > house > .row4.col4 > i:nth-of-type(5) { + display: block; + width: 115%; +} + +.hs.row4.col4:checked ~ .hs.house.row4.col5:not(:checked) ~ .hs.row4.col6:checked ~ div > div > house > .row4.col5 > i:nth-of-type(5) { + display: block; + width: 105%; +} + +.hs.row4.col4:checked ~ .hs.house.row4.col5:not(:checked) ~ .hs.shed.row4.col6:checked ~ div > div > house > .row4.col5 > i:nth-of-type(5) { + display: block; + width: 115%; +} + +.hs.row4.col1:checked ~ .hs.house.row4.col2:not(:checked) ~ .hs.house.row4.col3:not(:checked) ~ .hs.row4.col4:checked ~ div > div > house > .row4.col2 > i:nth-of-type(5) { + display: block; + width: 205%; +} +.hs.row4.col1:checked ~ .hs.house.row4.col2:not(:checked) ~ .hs.house.row4.col3:not(:checked) ~ .hs.row4.col4:checked ~ div > div > house > .row4.col2 > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 3.5rem; + transform: rotate(4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} +.hs.row4.col1:checked ~ .hs.house.row4.col2:not(:checked) ~ .hs.house.row4.col3:not(:checked) ~ .hs.row4.col4:checked ~ div > div > house > .row4.col2 > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 13.5rem; + transform: rotate(-4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ div > div > house > .row4.col1:after { + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ div > div > house > .row4.col1:after { + box-shadow: -2rem 5rem 0 rgba(204, 51, 51, 0.5), 0 7rem 0 currentColor; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ div > div > house > .row4.col1:after { + box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} + +.hs.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row4.col4:not(:checked) ~ .hs.row4.col5:checked ~ div > div > house > .row4.col3 > i:nth-of-type(5) { + display: block; + width: 205%; +} +.hs.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row4.col4:not(:checked) ~ .hs.row4.col5:checked ~ div > div > house > .row4.col3 > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 3.5rem; + transform: rotate(4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} +.hs.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row4.col4:not(:checked) ~ .hs.row4.col5:checked ~ div > div > house > .row4.col3 > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 13.5rem; + transform: rotate(-4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ div > div > house > .row4.col2:after { + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ div > div > house > .row4.col2:after { + box-shadow: -2rem 6rem 0 rgba(204, 51, 51, 0.5), 0 8rem 0 currentColor; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ div > div > house > .row4.col2:after { + box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} + +.hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row4.col5:not(:checked) ~ .hs.row4.col6:checked ~ div > div > house > .row4.col4 > i:nth-of-type(5) { + display: block; + width: 205%; +} +.hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row4.col5:not(:checked) ~ .hs.row4.col6:checked ~ div > div > house > .row4.col4 > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 3.5rem; + transform: rotate(4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} +.hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row4.col5:not(:checked) ~ .hs.row4.col6:checked ~ div > div > house > .row4.col4 > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 13.5rem; + transform: rotate(-4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ div > div > house > .row4.col3:after { + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ div > div > house > .row4.col3:after { + box-shadow: -2rem 5rem 0 rgba(204, 51, 51, 0.5), 0 6rem 0 currentColor; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ div > div > house > .row4.col3:after { + box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} + +.hs.row4.col4:checked ~ .hs.house.row4.col5:not(:checked) ~ .hs.house.row4.col6:not(:checked) ~ .hs.row4.col7:checked ~ div > div > house > .row4.col5 > i:nth-of-type(5) { + display: block; + width: 205%; +} +.hs.row4.col4:checked ~ .hs.house.row4.col5:not(:checked) ~ .hs.house.row4.col6:not(:checked) ~ .hs.row4.col7:checked ~ div > div > house > .row4.col5 > i:nth-of-type(5):after { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #bc502f; + top: 2.75rem; + left: 3.5rem; + transform: rotate(4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem 0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} +.hs.row4.col4:checked ~ .hs.house.row4.col5:not(:checked) ~ .hs.house.row4.col6:not(:checked) ~ .hs.row4.col7:checked ~ div > div > house > .row4.col5 > i:nth-of-type(5):before { + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #6ebc2f; + top: 3.25rem; + left: 13.5rem; + transform: rotate(-4deg); + z-index: -1 !important; + filter: drop-shadow(2.5rem -0.1rem 0 #bc5c2f) drop-shadow(5rem 0 0 #bc502f); +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ div > div > house > .row4.col4:after { + box-shadow: 0 2rem 0 currentColor, 0 4rem 0 currentColor, 0 6rem 0 currentColor, 0 8rem 0 currentColor, 0 10rem 0 currentColor; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ div > div > house > .row4.col4:after { + box-shadow: -2rem 5rem 0 rgba(204, 51, 51, 0.5), 0 8rem 0 currentColor; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ div > div > house > .row4.col4:after { + box-shadow: -2rem 3rem 0 rgba(204, 51, 51, 0.5), 0 5rem 0 currentColor, 10.75rem 0 0 currentColor, 10.75rem 2rem 0 currentColor, 10.75rem 4rem 0 currentColor, 10.75rem 6rem 0 currentColor, 10.75rem 8rem 0 currentColor, 10.75rem 10rem 0 currentColor; +} + +.hs.row1.col1:checked ~ div > div > house > .row1.col1 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1 { + border-bottom: none; +} +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row1.col2:checked ~ div > div > house > .row1.col2 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2 { + border-bottom: none; +} +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row1.col3:checked ~ div > div > house > .row1.col3 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 { + border-bottom: none; +} +.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row1.col4:checked ~ div > div > house > .row1.col4 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 { + border-bottom: none; +} +.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col1:checked ~ div > div > house > .row2.col1 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1 { + border-bottom: none; +} +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col2:checked ~ div > div > house > .row2.col2 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2 { + border-bottom: none; +} +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col3:checked ~ div > div > house > .row2.col3 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 { + border-bottom: none; +} +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row2.col4:checked ~ div > div > house > .row2.col4 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 { + border-bottom: none; +} +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col1:checked ~ div > div > house > .row3.col1 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1 { + border-bottom: none; +} +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col2:checked ~ div > div > house > .row3.col2 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2 { + border-bottom: none; +} +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col3:checked ~ div > div > house > .row3.col3 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3 { + border-bottom: none; +} +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(3) { + display: none !important; +} + +.hs.row3.col4:checked ~ div > div > house > .row3.col4 { + border-bottom: 0.75rem solid #20112a; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3) { + width: 2rem; + height: 325%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + top: 12rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); + z-index: -200; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3):before { + width: 12rem; + height: 12rem; + border: 1.15rem dashed rgba(255, 255, 255, 0); + border-bottom-color: #20112a; + box-shadow: 0 0.75rem 0 #20112a, inset 0 -0.75rem 0 #20112a; + top: 0.5rem; + border-radius: 5rem; + left: -0.5rem; + transform: scaleY(-1); +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3):after { + width: 2rem; + height: 100%; + border-left: 0.75rem solid #20112a; + border-right: 0.75rem solid #20112a; + left: 9.8rem; + background: repeating-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 4rem, #20112a, #20112a 4.5rem); +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(n + 5) > i:nth-of-type(3) { + height: 225%; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4:nth-of-type(n + 9) > i:nth-of-type(3) { + height: 13.5rem; +} + +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4 { + border-bottom: none; +} +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(3) { + display: none !important; +} + +[id^=cb23]:checked ~ div > div > house > [for=ncb23] { + box-shadow: 0 0.5rem 0 #bc2f2f; +} +[id^=cb23]:checked ~ div > div > house > [for=ncb23] > i:nth-of-type(3) { + width: 4rem; + height: 9rem; + right: 0; + margin: auto; + top: 3.5rem; + border-radius: 0.5rem; +} +[id^=cb23]:checked ~ div > div > house > [for=ncb23] > i:nth-of-type(3):before { + width: 7rem; + height: 4rem; + left: -8em; + top: 6rem; + border-radius: 50% 50% 1rem 1rem/80% 80% 1rem 1rem; + background: #6ebc2f; + box-shadow: 3rem 1rem 0 -1rem #bcae2f, 14rem 0.5rem 0 -0.5rem #60bc2f, 10rem 1rem 0 -1.25rem #6ebc2f; +} +[id^=cb23]:checked ~ div > div > house > [for=ncb23] > i:nth-of-type(3):after { + width: 0.75rem; + height: 0.75rem; + background: #fff; + border-radius: 50%; + left: -5rem; + top: 7rem; + box-shadow: 2rem 0.5rem 0 -0.1rem #fff, 1rem 1.5rem 0 -0.05rem #fff, 15rem 1.5rem 0 -0.05rem #fff, 16rem 1rem 0 -0.1rem #fff; +} +[id^=cb23]:checked ~ div > div > house > [for=ncb23].col3 > i:nth-of-type(3):before { + height: 3rem; + left: -8.5em; + top: 7rem; + background: #6ebc2f; + box-shadow: 3rem 0.75rem 0 -1rem #bcae2f, 14rem 1rem 0 0.5rem #6ebc2f, 10rem 0.5rem 0 -0.5rem #60bc2f; +} +[id^=cb23]:checked ~ div > div > house > [for=ncb23].col3 > i:nth-of-type(3):after { + left: -7rem; +} +[id^=cb23]:checked ~ div > div > house > [for=ncb23].col2 > i:nth-of-type(3):before { + height: 3.5rem; + width: 6rem; + left: -7em; + top: 6.5rem; + background: #6ebc2f; + box-shadow: 3rem 0.75rem 0 -1rem #bcae2f, 13rem 1rem 0 0.5rem #60bc2f, 9rem 0.5rem 0 -0.5rem #bcae2f; +} +[id^=cb23]:checked ~ div > div > house > [for=ncb23].col2 > i:nth-of-type(3):after { + left: -7rem; +} +[id^=cb23]:checked ~ div > div > house > [for=ncb23].col1 > i:nth-of-type(3):before { + width: 6rem; + height: 3rem; + left: -6.5em; + top: 7rem; + border-radius: 50% 50% 1rem 1rem/80% 80% 1rem 1rem; + background: #bcae2f; + box-shadow: 3rem 0.5rem 0 -0.75rem #6ebc2f, 9rem 0.5rem 0 -0.5rem #6ebc2f, 12rem -0.25rem 0 0.5rem #60bc2f; +} +[id^=cb23]:checked ~ div > div > house > [for=ncb23].col1 > i:nth-of-type(3):after { + width: 0.75rem; + height: 0.75rem; + background: #fff; + border-radius: 50%; + left: -5rem; + top: 7rem; + box-shadow: 2rem 0.5rem 0 -0.1rem #fff, 1rem 0.75rem 0 -0.05rem #fff, 16rem 1.5rem 0 -0.05rem #fff, 15rem 1rem 0 -0.1rem #fff; +} + +#cb23:checked ~ #cb24:not(:checked) ~ div > div > house > [for=ncb23] > i:nth-of-type(3), +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(3), +#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(3) { + background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #6a341b; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); +} +#cb23:checked ~ #cb24:not(:checked) ~ div > div > house > [for=ncb23].col2 > i:nth-of-type(3), +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24].col2 > i:nth-of-type(3), +#cb26:checked ~ div > div > house > [for=ncb26].col2 > i:nth-of-type(3) { + background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #683f44; +} +#cb23:checked ~ #cb24:not(:checked) ~ div > div > house > [for=ncb23].col1 > i:nth-of-type(3), +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24].col1 > i:nth-of-type(3), +#cb26:checked ~ div > div > house > [for=ncb26].col1 > i:nth-of-type(3) { + background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #252529; +} +#cb23:checked ~ #cb24:not(:checked) ~ div > div > house > [for=ncb23] > i:nth-of-type(4), +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4), +#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4) { + transform: scale(0.5); + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #6a341b, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +#cb23:checked ~ #cb24:not(:checked) ~ div > div > house > [for=ncb23] > i:nth-of-type(4):after, +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4):after, +#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4):after { + height: 0.5rem; + top: 2.3rem; + background: #6a341b; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +#cb23:checked ~ #cb24:not(:checked) ~ div > div > house > [for=ncb23] > i:nth-of-type(4):before, +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4):before, +#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4):before { + width: 0.5rem; + left: 2.3rem; + background: #6a341b; +} + +[id^=cb24]:checked ~ div > div > house > [for=ncb24] { + box-shadow: 0 0.5rem 0 #bc2f2f; +} +[id^=cb24]:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(3) { + width: 4rem; + height: 9rem; + right: 0; + margin: auto; + top: 3.5rem; + border-radius: 0.5rem; +} +[id^=cb24]:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(3):before { + width: 7rem; + height: 4rem; + left: -8em; + top: 6rem; + border-radius: 50% 50% 1rem 1rem/80% 80% 1rem 1rem; + background: #6ebc2f; + box-shadow: 3rem 1rem 0 -1rem #bcae2f, 14rem 0.5rem 0 -0.5rem #60bc2f, 10rem 1rem 0 -1.25rem #6ebc2f; +} +[id^=cb24]:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(3):after { + width: 0.75rem; + height: 0.75rem; + background: #fff; + border-radius: 50%; + left: -5rem; + top: 7rem; + box-shadow: 2rem 0.5rem 0 -0.1rem #fff, 1rem 1.5rem 0 -0.05rem #fff, 15rem 1.5rem 0 -0.05rem #fff, 16rem 1rem 0 -0.1rem #fff; +} +[id^=cb24]:checked ~ div > div > house > [for=ncb24].col3 > i:nth-of-type(3):before { + height: 3rem; + left: -8.5em; + top: 7rem; + background: #6ebc2f; + box-shadow: 3rem 0.75rem 0 -1rem #bcae2f, 14rem 1rem 0 0.5rem #6ebc2f, 10rem 0.5rem 0 -0.5rem #60bc2f; +} +[id^=cb24]:checked ~ div > div > house > [for=ncb24].col3 > i:nth-of-type(3):after { + left: -7rem; +} +[id^=cb24]:checked ~ div > div > house > [for=ncb24].col2 > i:nth-of-type(3):before { + height: 3.5rem; + width: 6rem; + left: -7em; + top: 6.5rem; + background: #6ebc2f; + box-shadow: 3rem 0.75rem 0 -1rem #bcae2f, 13rem 1rem 0 0.5rem #60bc2f, 9rem 0.5rem 0 -0.5rem #bcae2f; +} +[id^=cb24]:checked ~ div > div > house > [for=ncb24].col2 > i:nth-of-type(3):after { + left: -7rem; +} +[id^=cb24]:checked ~ div > div > house > [for=ncb24].col1 > i:nth-of-type(3):before { + width: 6rem; + height: 3rem; + left: -6.5em; + top: 7rem; + border-radius: 50% 50% 1rem 1rem/80% 80% 1rem 1rem; + background: #bcae2f; + box-shadow: 3rem 0.5rem 0 -0.75rem #6ebc2f, 9rem 0.5rem 0 -0.5rem #6ebc2f, 12rem -0.25rem 0 0.5rem #60bc2f; +} +[id^=cb24]:checked ~ div > div > house > [for=ncb24].col1 > i:nth-of-type(3):after { + width: 0.75rem; + height: 0.75rem; + background: #fff; + border-radius: 50%; + left: -5rem; + top: 7rem; + box-shadow: 2rem 0.5rem 0 -0.1rem #fff, 1rem 0.75rem 0 -0.05rem #fff, 16rem 1.5rem 0 -0.05rem #fff, 15rem 1rem 0 -0.1rem #fff; +} + +#cb24:checked ~ #cb25:not(:checked) ~ div > div > house > [for=ncb24] > i:nth-of-type(3), +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(3), +#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(3) { + background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #6a341b; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); +} +#cb24:checked ~ #cb25:not(:checked) ~ div > div > house > [for=ncb24].col4 > i:nth-of-type(3), +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24].col4 > i:nth-of-type(3), +#cb26:checked ~ div > div > house > [for=ncb26].col4 > i:nth-of-type(3) { + background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #683f44; +} +#cb24:checked ~ #cb25:not(:checked) ~ div > div > house > [for=ncb24].col2 > i:nth-of-type(3), +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24].col2 > i:nth-of-type(3), +#cb26:checked ~ div > div > house > [for=ncb26].col2 > i:nth-of-type(3) { + background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #252529; +} +#cb24:checked ~ #cb25:not(:checked) ~ div > div > house > [for=ncb24] > i:nth-of-type(4), +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4), +#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4) { + transform: scale(0.5); + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #6a341b, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +#cb24:checked ~ #cb25:not(:checked) ~ div > div > house > [for=ncb24] > i:nth-of-type(4):after, +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4):after, +#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4):after { + height: 0.5rem; + top: 2.3rem; + background: #6a341b; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +#cb24:checked ~ #cb25:not(:checked) ~ div > div > house > [for=ncb24] > i:nth-of-type(4):before, +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4):before, +#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4):before { + width: 0.5rem; + left: 2.3rem; + background: #6a341b; +} + +[id^=cb25]:checked ~ div > div > house > [for=ncb25] { + box-shadow: 0 0.5rem 0 #bc2f2f; +} +[id^=cb25]:checked ~ div > div > house > [for=ncb25] > i:nth-of-type(3) { + width: 4rem; + height: 9rem; + right: 0; + margin: auto; + top: 3.5rem; + border-radius: 0.5rem; +} +[id^=cb25]:checked ~ div > div > house > [for=ncb25] > i:nth-of-type(3):before { + width: 7rem; + height: 4rem; + left: -8em; + top: 6rem; + border-radius: 50% 50% 1rem 1rem/80% 80% 1rem 1rem; + background: #6ebc2f; + box-shadow: 3rem 1rem 0 -1rem #bcae2f, 14rem 0.5rem 0 -0.5rem #60bc2f, 10rem 1rem 0 -1.25rem #6ebc2f; +} +[id^=cb25]:checked ~ div > div > house > [for=ncb25] > i:nth-of-type(3):after { + width: 0.75rem; + height: 0.75rem; + background: #fff; + border-radius: 50%; + left: -5rem; + top: 7rem; + box-shadow: 2rem 0.5rem 0 -0.1rem #fff, 1rem 1.5rem 0 -0.05rem #fff, 15rem 1.5rem 0 -0.05rem #fff, 16rem 1rem 0 -0.1rem #fff; +} +[id^=cb25]:checked ~ div > div > house > [for=ncb25].col3 > i:nth-of-type(3):before { + height: 3rem; + left: -8.5em; + top: 7rem; + background: #6ebc2f; + box-shadow: 3rem 0.75rem 0 -1rem #bcae2f, 14rem 1rem 0 0.5rem #6ebc2f, 10rem 0.5rem 0 -0.5rem #60bc2f; +} +[id^=cb25]:checked ~ div > div > house > [for=ncb25].col3 > i:nth-of-type(3):after { + left: -7rem; +} +[id^=cb25]:checked ~ div > div > house > [for=ncb25].col2 > i:nth-of-type(3):before { + height: 3.5rem; + width: 6rem; + left: -7em; + top: 6.5rem; + background: #6ebc2f; + box-shadow: 3rem 0.75rem 0 -1rem #bcae2f, 13rem 1rem 0 0.5rem #60bc2f, 9rem 0.5rem 0 -0.5rem #bcae2f; +} +[id^=cb25]:checked ~ div > div > house > [for=ncb25].col2 > i:nth-of-type(3):after { + left: -7rem; +} +[id^=cb25]:checked ~ div > div > house > [for=ncb25].col1 > i:nth-of-type(3):before { + width: 6rem; + height: 3rem; + left: -6.5em; + top: 7rem; + border-radius: 50% 50% 1rem 1rem/80% 80% 1rem 1rem; + background: #bcae2f; + box-shadow: 3rem 0.5rem 0 -0.75rem #6ebc2f, 9rem 0.5rem 0 -0.5rem #6ebc2f, 12rem -0.25rem 0 0.5rem #60bc2f; +} +[id^=cb25]:checked ~ div > div > house > [for=ncb25].col1 > i:nth-of-type(3):after { + width: 0.75rem; + height: 0.75rem; + background: #fff; + border-radius: 50%; + left: -5rem; + top: 7rem; + box-shadow: 2rem 0.5rem 0 -0.1rem #fff, 1rem 0.75rem 0 -0.05rem #fff, 16rem 1.5rem 0 -0.05rem #fff, 15rem 1rem 0 -0.1rem #fff; +} + +#cb25:checked ~ #cb26:not(:checked) ~ div > div > house > [for=ncb25] > i:nth-of-type(3), +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(3), +#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(3) { + background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #6a341b; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); +} +#cb25:checked ~ #cb26:not(:checked) ~ div > div > house > [for=ncb25].col4 > i:nth-of-type(3), +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24].col4 > i:nth-of-type(3), +#cb26:checked ~ div > div > house > [for=ncb26].col4 > i:nth-of-type(3) { + background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #683f44; +} +#cb25:checked ~ #cb26:not(:checked) ~ div > div > house > [for=ncb25].col2 > i:nth-of-type(3), +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24].col2 > i:nth-of-type(3), +#cb26:checked ~ div > div > house > [for=ncb26].col2 > i:nth-of-type(3) { + background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #252529; +} +#cb25:checked ~ #cb26:not(:checked) ~ div > div > house > [for=ncb25] > i:nth-of-type(4), +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4), +#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4) { + transform: scale(0.5); + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #6a341b, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +#cb25:checked ~ #cb26:not(:checked) ~ div > div > house > [for=ncb25] > i:nth-of-type(4):after, +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4):after, +#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4):after { + height: 0.5rem; + top: 2.3rem; + background: #6a341b; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +#cb25:checked ~ #cb26:not(:checked) ~ div > div > house > [for=ncb25] > i:nth-of-type(4):before, +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4):before, +#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4):before { + width: 0.5rem; + left: 2.3rem; + background: #6a341b; +} + +[id^=cb26]:checked ~ div > div > house > [for=ncb26] { + box-shadow: 0 0.5rem 0 #bc2f2f; +} +[id^=cb26]:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(3) { + width: 4rem; + height: 9rem; + right: 0; + margin: auto; + top: 3.5rem; + border-radius: 0.5rem; +} +[id^=cb26]:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(3):before { + width: 7rem; + height: 4rem; + left: -8em; + top: 6rem; + border-radius: 50% 50% 1rem 1rem/80% 80% 1rem 1rem; + background: #6ebc2f; + box-shadow: 3rem 1rem 0 -1rem #bcae2f, 14rem 0.5rem 0 -0.5rem #60bc2f, 10rem 1rem 0 -1.25rem #6ebc2f; +} +[id^=cb26]:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(3):after { + width: 0.75rem; + height: 0.75rem; + background: #fff; + border-radius: 50%; + left: -5rem; + top: 7rem; + box-shadow: 2rem 0.5rem 0 -0.1rem #fff, 1rem 1.5rem 0 -0.05rem #fff, 15rem 1.5rem 0 -0.05rem #fff, 16rem 1rem 0 -0.1rem #fff; +} +[id^=cb26]:checked ~ div > div > house > [for=ncb26].col3 > i:nth-of-type(3):before { + height: 3rem; + left: -8.5em; + top: 7rem; + background: #6ebc2f; + box-shadow: 3rem 0.75rem 0 -1rem #bcae2f, 14rem 1rem 0 0.5rem #6ebc2f, 10rem 0.5rem 0 -0.5rem #60bc2f; +} +[id^=cb26]:checked ~ div > div > house > [for=ncb26].col3 > i:nth-of-type(3):after { + left: -7rem; +} +[id^=cb26]:checked ~ div > div > house > [for=ncb26].col2 > i:nth-of-type(3):before { + height: 3.5rem; + width: 6rem; + left: -7em; + top: 6.5rem; + background: #6ebc2f; + box-shadow: 3rem 0.75rem 0 -1rem #bcae2f, 13rem 1rem 0 0.5rem #60bc2f, 9rem 0.5rem 0 -0.5rem #bcae2f; +} +[id^=cb26]:checked ~ div > div > house > [for=ncb26].col2 > i:nth-of-type(3):after { + left: -7rem; +} +[id^=cb26]:checked ~ div > div > house > [for=ncb26].col1 > i:nth-of-type(3):before { + width: 6rem; + height: 3rem; + left: -6.5em; + top: 7rem; + border-radius: 50% 50% 1rem 1rem/80% 80% 1rem 1rem; + background: #bcae2f; + box-shadow: 3rem 0.5rem 0 -0.75rem #6ebc2f, 9rem 0.5rem 0 -0.5rem #6ebc2f, 12rem -0.25rem 0 0.5rem #60bc2f; +} +[id^=cb26]:checked ~ div > div > house > [for=ncb26].col1 > i:nth-of-type(3):after { + width: 0.75rem; + height: 0.75rem; + background: #fff; + border-radius: 50%; + left: -5rem; + top: 7rem; + box-shadow: 2rem 0.5rem 0 -0.1rem #fff, 1rem 0.75rem 0 -0.05rem #fff, 16rem 1.5rem 0 -0.05rem #fff, 15rem 1rem 0 -0.1rem #fff; +} + +#cb26:checked ~ #cb27:not(:checked) ~ div > div > house > [for=ncb26] > i:nth-of-type(3), +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(3), +#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(3) { + background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #6a341b; + box-shadow: inset 0 0.5rem 1rem rgba(79, 1, 14, 0.75); +} +#cb26:checked ~ #cb27:not(:checked) ~ div > div > house > [for=ncb26].col1 > i:nth-of-type(3), +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24].col1 > i:nth-of-type(3), +#cb26:checked ~ div > div > house > [for=ncb26].col1 > i:nth-of-type(3) { + background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #683f44; +} +#cb26:checked ~ #cb27:not(:checked) ~ div > div > house > [for=ncb26].col2 > i:nth-of-type(3), +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24].col2 > i:nth-of-type(3), +#cb26:checked ~ div > div > house > [for=ncb26].col2 > i:nth-of-type(3) { + background: radial-gradient(circle at 80% center, #bc5c2f 0.25rem, rgba(255, 255, 255, 0) 0.25rem), radial-gradient(circle at 81% 52%, rgba(79, 1, 14, 0.75) 0.25rem, rgba(255, 255, 255, 0) 0.4rem), #252529; +} +#cb26:checked ~ #cb27:not(:checked) ~ div > div > house > [for=ncb26] > i:nth-of-type(4), +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4), +#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4) { + transform: scale(0.5); + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #6a341b, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 0 -2rem 0 #000, inset 0 -3.5rem 0 #20112a; +} +#cb26:checked ~ #cb27:not(:checked) ~ div > div > house > [for=ncb26] > i:nth-of-type(4):after, +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4):after, +#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4):after { + height: 0.5rem; + top: 2.3rem; + background: #6a341b; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +#cb26:checked ~ #cb27:not(:checked) ~ div > div > house > [for=ncb26] > i:nth-of-type(4):before, +#cb23:checked ~ #cb24:checked ~ #cb25:checked ~ #cb26:checked ~ div > div > house > [for=ncb24] > i:nth-of-type(4):before, +#cb26:checked ~ div > div > house > [for=ncb26] > i:nth-of-type(4):before { + width: 0.5rem; + left: 2.3rem; + background: #6a341b; +} + +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3, +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row2.col3, +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row3.col3, +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row4.col3 { + background: #a19372; + color: #a19372; + z-index: 310; +} +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(4), .hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(3), +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row2.col3 > i:nth-of-type(4), +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row2.col3 > i:nth-of-type(3), +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row3.col3 > i:nth-of-type(4), +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row3.col3 > i:nth-of-type(3), +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row4.col3 > i:nth-of-type(4), +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row4.col3 > i:nth-of-type(3) { + border-radius: 50% 50% 0.3rem 0.3rem; +} +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(3), +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row2.col3 > i:nth-of-type(3), +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row3.col3 > i:nth-of-type(3), +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row4.col3 > i:nth-of-type(3) { + height: 10rem; + width: 4.5rem; + top: 2.5rem; +} +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(3):before, +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row2.col3 > i:nth-of-type(3):before, +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row3.col3 > i:nth-of-type(3):before, +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row4.col3 > i:nth-of-type(3):before { + top: 8rem; +} +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(3):after, +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row2.col3 > i:nth-of-type(3):after, +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row3.col3 > i:nth-of-type(3):after, +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row4.col3 > i:nth-of-type(3):after { + top: 8rem; +} +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(4):after, +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row2.col3 > i:nth-of-type(4):after, +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row3.col3 > i:nth-of-type(4):after, +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row4.col3 > i:nth-of-type(4):after { + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(1) { + display: none; +} +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(2) { + border: 1rem solid rgba(255, 255, 255, 0); + border-left: 3rem solid #bc502f; + top: -8.5rem; + left: 4.25rem; + box-shadow: none; +} +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(2):before { + top: 3.25rem; + left: -8.25rem; + background: #a19372; + width: 2.75rem; + height: 5rem; + border-radius: 0.25rem 0.25rem 50% 50%; + box-shadow: 4rem 0 0 #a19372, 8rem 0 0 #a19372, 12rem 0 0 #a19372; +} +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(2):after { + width: 14.5rem; + height: 3rem; + top: 6.25rem; + border-radius: 0 0 2rem 2rem; + background: #a19372; + left: -8.25rem; + filter: none; + border: none; + box-shadow: none; +} +.hs.house.row4.col2:not(:checked) ~ .hs.row4.col3:checked ~ .hs.house.row4.col4:not(:checked) ~ .hs.house.row3.col2:not(:checked) ~ .hs.row3.col3:checked ~ .hs.house.row3.col4:not(:checked) ~ .hs.house.row2.col2:not(:checked) ~ .hs.row2.col3:checked ~ .hs.house.row2.col4:not(:checked) ~ .hs.house.row1.col2:not(:checked) ~ .hs.row1.col3:checked ~ .hs.house.row1.col4:not(:checked) ~ div > div > house > .row1.col3 > i:nth-of-type(4):before { + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), -2rem -12.5rem 0 #20112a; +} + +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2, +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2, +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2, +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row4.col2 { + z-index: 310; + background: none; + border: none; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2:before, .hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2:after, +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2:before, +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2:after, +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2:before, +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2:after, +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row4.col2:before, +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row4.col2:after { + width: 80%; + height: 105%; + background: linear-gradient(to right, #a99c7e, currentColor); + transform: skewX(-2deg); + border-radius: 0.1rem 0.1rem 50% 50%/50% 50% 0.25rem 0.25rem; + top: 0; + left: -1rem; + box-shadow: none; + filter: none; + opacity: 1; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2:after, +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2:after, +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2:after, +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row4.col2:after { + left: auto; + right: -1rem; + transform: skewX(2deg); + background: linear-gradient(to right, rgba(255, 255, 255, 0), currentColor, #86795a); +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(4), +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2 > i:nth-of-type(4), +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2 > i:nth-of-type(4), +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row4.col2 > i:nth-of-type(4) { + border-radius: 50%; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(3), +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2 > i:nth-of-type(3), +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2 > i:nth-of-type(3), +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row4.col2 > i:nth-of-type(3) { + border-radius: 2rem 2rem 0.5rem 0.5rem; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(4):after, +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2 > i:nth-of-type(4):after, +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2 > i:nth-of-type(4):after, +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row4.col2 > i:nth-of-type(4):after { + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(1) { + display: none; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(2) { + width: 8rem; + height: 12rem; + border: 0.5rem solid rgba(255, 255, 255, 0); + border-top: 1rem solid #252529; + border-bottom: 6rem solid #6a341b; + border-radius: 0.5rem 0.5rem 0 0; + top: -12rem; + left: 0; + right: 0; + margin: auto; + background: repeating-linear-gradient(to right, #252529 0.5rem, #252529 1rem, rgba(255, 255, 255, 0) 1rem, rgba(255, 255, 255, 0) 3.25rem), repeating-linear-gradient(45deg, #6a341b, #6a341b 0.2rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1rem), repeating-linear-gradient(-45deg, #6a341b, #6a341b 0.2rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1rem); + box-shadow: inset 0 -1rem 0 #252529; + background-size: cover; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(2):before { + border: 3rem solid rgba(255, 255, 255, 0); + width: 6.5rem; + box-shadow: inset 0 3rem 0 #6a341b; + border-bottom-color: #20112a; + top: -10rem; + right: 0; + margin: auto; + height: 9rem; + border-radius: 0; + background: none; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2 > i:nth-of-type(2):after { + width: 12.5rem; + background: repeating-linear-gradient(to right, #252529, #252529 0.5rem, rgba(255, 255, 255, 0) 0.5rem, rgba(255, 255, 255, 0) 1.32rem); + height: 5rem; + top: 6rem; + border-radius: 0.5rem; + border: none; + border-bottom: 1rem solid #252529; + border-top: 0.5rem solid #252529; + left: -10rem; + right: -10rem; + margin: auto; + box-shadow: none; + display: block; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2 { + color: #a19372; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2:before, .hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2:after { + left: -0.5rem; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row3.col2:after { + left: auto; + right: -0.5rem; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2:before, .hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2:after { + left: 0; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row2.col2:after { + left: auto; + right: 0; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2 { + color: #a19372; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2:before, .hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2:after { + left: 0.5rem; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div > div > house > .row1.col2:after { + left: auto; + right: 0.5rem; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ text { + transform: scale(1) !important; + z-index: 410; + transition: all 0.5s 1s ease-in-out; + opacity: 1; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ text welldone { + display: block; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ text gameover { + display: none; +} + +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(4) { + border-radius: 50% !important; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(4):after { + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} + +.hs.house.row4.col2:checked ~ .hs.shed.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(4) { + border-radius: 50%; +} +.hs.house.row4.col2:checked ~ .hs.shed.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(4):after { + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3); +} + +house label, +shed label { + opacity: 0; +} +house label *, house label:after, house label:before, +shed label *, +shed label:after, +shed label:before { + transform: translate3d(0, 0, 0); +} + +@keyframes pop { + 0% { + opacity: 0; + transform: translate3d(0, -12rem, 0); + } + 99% { + opacity: 1; + transform: translate3d(0, 0, 0); + } +} +@keyframes popup { + 0% { + opacity: 0; + transform: translate3d(0, 12rem, 0); + } + 99% { + opacity: 1; + transform: translate3d(0, 0, 0); + } +} +.shed.row1.col1:checked ~ div > div > shed > .row1.col1, +.house.row1.col1:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.shed.row1.col1:checked ~ div > div > shed > .row1.col1:after, .shed.row1.col1:checked ~ div > div > shed > .row1.col1 *:after, +.house.row1.col1:checked ~ div > div > house > .row1.col1:after, +.house.row1.col1:checked ~ div > div > house > .row1.col1 *:after { + animation: pop 0.1s linear forwards; +} +.shed.row1.col1:checked ~ div > div > shed > .row1.col1:before, .shed.row1.col1:checked ~ div > div > shed > .row1.col1 *:before, +.house.row1.col1:checked ~ div > div > house > .row1.col1:before, +.house.row1.col1:checked ~ div > div > house > .row1.col1 *:before { + animation: popup 0.1s linear forwards; +} + +.shed.row1.col1:checked ~ div > div > house > .row1.col1 > i:nth-of-type(5) { + display: none !important; +} + +.house.row1.col1:checked ~ div > div > hbtn > .row1.col0 { + z-index: 100; +} + +.house.row1.col1:checked ~ div > div > hbtn > .row1.col2 { + z-index: 100; +} + +.house.row1.col1:checked ~ div > div > hbtn > .row2.col1 { + z-index: 100; +} + +.house.row1.col1:checked ~ div > div > hbtn > .row0.col1 { + z-index: 100; +} + +.shed.row1.col2:checked ~ div > div > shed > .row1.col2, +.house.row1.col2:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.shed.row1.col2:checked ~ div > div > shed > .row1.col2:after, .shed.row1.col2:checked ~ div > div > shed > .row1.col2 *:after, +.house.row1.col2:checked ~ div > div > house > .row1.col2:after, +.house.row1.col2:checked ~ div > div > house > .row1.col2 *:after { + animation: pop 0.1s linear forwards; +} +.shed.row1.col2:checked ~ div > div > shed > .row1.col2:before, .shed.row1.col2:checked ~ div > div > shed > .row1.col2 *:before, +.house.row1.col2:checked ~ div > div > house > .row1.col2:before, +.house.row1.col2:checked ~ div > div > house > .row1.col2 *:before { + animation: popup 0.1s linear forwards; +} + +.shed.row1.col2:checked ~ div > div > house > .row1.col2 > i:nth-of-type(5) { + display: none !important; +} + +.house.row1.col2:checked ~ div > div > hbtn > .row1.col1 { + z-index: 100; +} + +.house.row1.col2:checked ~ div > div > hbtn > .row1.col3 { + z-index: 100; +} + +.house.row1.col2:checked ~ div > div > hbtn > .row2.col2 { + z-index: 100; +} + +.house.row1.col2:checked ~ div > div > hbtn > .row0.col2 { + z-index: 100; +} + +.shed.row1.col3:checked ~ div > div > shed > .row1.col3, +.house.row1.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.shed.row1.col3:checked ~ div > div > shed > .row1.col3:after, .shed.row1.col3:checked ~ div > div > shed > .row1.col3 *:after, +.house.row1.col3:checked ~ div > div > house > .row1.col3:after, +.house.row1.col3:checked ~ div > div > house > .row1.col3 *:after { + animation: pop 0.1s linear forwards; +} +.shed.row1.col3:checked ~ div > div > shed > .row1.col3:before, .shed.row1.col3:checked ~ div > div > shed > .row1.col3 *:before, +.house.row1.col3:checked ~ div > div > house > .row1.col3:before, +.house.row1.col3:checked ~ div > div > house > .row1.col3 *:before { + animation: popup 0.1s linear forwards; +} + +.shed.row1.col3:checked ~ div > div > house > .row1.col3 > i:nth-of-type(5) { + display: none !important; +} + +.house.row1.col3:checked ~ div > div > hbtn > .row1.col2 { + z-index: 100; +} + +.house.row1.col3:checked ~ div > div > hbtn > .row1.col4 { + z-index: 100; +} + +.house.row1.col3:checked ~ div > div > hbtn > .row2.col3 { + z-index: 100; +} + +.house.row1.col3:checked ~ div > div > hbtn > .row0.col3 { + z-index: 100; +} + +.shed.row1.col4:checked ~ div > div > shed > .row1.col4, +.house.row1.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.shed.row1.col4:checked ~ div > div > shed > .row1.col4:after, .shed.row1.col4:checked ~ div > div > shed > .row1.col4 *:after, +.house.row1.col4:checked ~ div > div > house > .row1.col4:after, +.house.row1.col4:checked ~ div > div > house > .row1.col4 *:after { + animation: pop 0.1s linear forwards; +} +.shed.row1.col4:checked ~ div > div > shed > .row1.col4:before, .shed.row1.col4:checked ~ div > div > shed > .row1.col4 *:before, +.house.row1.col4:checked ~ div > div > house > .row1.col4:before, +.house.row1.col4:checked ~ div > div > house > .row1.col4 *:before { + animation: popup 0.1s linear forwards; +} + +.shed.row1.col4:checked ~ div > div > house > .row1.col4 > i:nth-of-type(5) { + display: none !important; +} + +.house.row1.col4:checked ~ div > div > hbtn > .row1.col3 { + z-index: 100; +} + +.house.row1.col4:checked ~ div > div > hbtn > .row1.col5 { + z-index: 100; +} + +.house.row1.col4:checked ~ div > div > hbtn > .row2.col4 { + z-index: 100; +} + +.house.row1.col4:checked ~ div > div > hbtn > .row0.col4 { + z-index: 100; +} + +.shed.row2.col1:checked ~ div > div > shed > .row2.col1, +.house.row2.col1:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.shed.row2.col1:checked ~ div > div > shed > .row2.col1:after, .shed.row2.col1:checked ~ div > div > shed > .row2.col1 *:after, +.house.row2.col1:checked ~ div > div > house > .row2.col1:after, +.house.row2.col1:checked ~ div > div > house > .row2.col1 *:after { + animation: pop 0.1s linear forwards; +} +.shed.row2.col1:checked ~ div > div > shed > .row2.col1:before, .shed.row2.col1:checked ~ div > div > shed > .row2.col1 *:before, +.house.row2.col1:checked ~ div > div > house > .row2.col1:before, +.house.row2.col1:checked ~ div > div > house > .row2.col1 *:before { + animation: popup 0.1s linear forwards; +} + +.shed.row2.col1:checked ~ div > div > house > .row2.col1 > i:nth-of-type(5) { + display: none !important; +} + +.house.row2.col1:checked ~ div > div > hbtn > .row2.col0 { + z-index: 100; +} + +.house.row2.col1:checked ~ div > div > hbtn > .row2.col2 { + z-index: 100; +} + +.house.row2.col1:checked ~ div > div > hbtn > .row3.col1 { + z-index: 100; +} + +.house.row2.col1:checked ~ div > div > hbtn > .row1.col1 { + z-index: 100; +} + +.shed.row2.col2:checked ~ div > div > shed > .row2.col2, +.house.row2.col2:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.shed.row2.col2:checked ~ div > div > shed > .row2.col2:after, .shed.row2.col2:checked ~ div > div > shed > .row2.col2 *:after, +.house.row2.col2:checked ~ div > div > house > .row2.col2:after, +.house.row2.col2:checked ~ div > div > house > .row2.col2 *:after { + animation: pop 0.1s linear forwards; +} +.shed.row2.col2:checked ~ div > div > shed > .row2.col2:before, .shed.row2.col2:checked ~ div > div > shed > .row2.col2 *:before, +.house.row2.col2:checked ~ div > div > house > .row2.col2:before, +.house.row2.col2:checked ~ div > div > house > .row2.col2 *:before { + animation: popup 0.1s linear forwards; +} + +.shed.row2.col2:checked ~ div > div > house > .row2.col2 > i:nth-of-type(5) { + display: none !important; +} + +.house.row2.col2:checked ~ div > div > hbtn > .row2.col1 { + z-index: 100; +} + +.house.row2.col2:checked ~ div > div > hbtn > .row2.col3 { + z-index: 100; +} + +.house.row2.col2:checked ~ div > div > hbtn > .row3.col2 { + z-index: 100; +} + +.house.row2.col2:checked ~ div > div > hbtn > .row1.col2 { + z-index: 100; +} + +.shed.row2.col3:checked ~ div > div > shed > .row2.col3, +.house.row2.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.shed.row2.col3:checked ~ div > div > shed > .row2.col3:after, .shed.row2.col3:checked ~ div > div > shed > .row2.col3 *:after, +.house.row2.col3:checked ~ div > div > house > .row2.col3:after, +.house.row2.col3:checked ~ div > div > house > .row2.col3 *:after { + animation: pop 0.1s linear forwards; +} +.shed.row2.col3:checked ~ div > div > shed > .row2.col3:before, .shed.row2.col3:checked ~ div > div > shed > .row2.col3 *:before, +.house.row2.col3:checked ~ div > div > house > .row2.col3:before, +.house.row2.col3:checked ~ div > div > house > .row2.col3 *:before { + animation: popup 0.1s linear forwards; +} + +.shed.row2.col3:checked ~ div > div > house > .row2.col3 > i:nth-of-type(5) { + display: none !important; +} + +.house.row2.col3:checked ~ div > div > hbtn > .row2.col2 { + z-index: 100; +} + +.house.row2.col3:checked ~ div > div > hbtn > .row2.col4 { + z-index: 100; +} + +.house.row2.col3:checked ~ div > div > hbtn > .row3.col3 { + z-index: 100; +} + +.house.row2.col3:checked ~ div > div > hbtn > .row1.col3 { + z-index: 100; +} + +.shed.row2.col4:checked ~ div > div > shed > .row2.col4, +.house.row2.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.shed.row2.col4:checked ~ div > div > shed > .row2.col4:after, .shed.row2.col4:checked ~ div > div > shed > .row2.col4 *:after, +.house.row2.col4:checked ~ div > div > house > .row2.col4:after, +.house.row2.col4:checked ~ div > div > house > .row2.col4 *:after { + animation: pop 0.1s linear forwards; +} +.shed.row2.col4:checked ~ div > div > shed > .row2.col4:before, .shed.row2.col4:checked ~ div > div > shed > .row2.col4 *:before, +.house.row2.col4:checked ~ div > div > house > .row2.col4:before, +.house.row2.col4:checked ~ div > div > house > .row2.col4 *:before { + animation: popup 0.1s linear forwards; +} + +.shed.row2.col4:checked ~ div > div > house > .row2.col4 > i:nth-of-type(5) { + display: none !important; +} + +.house.row2.col4:checked ~ div > div > hbtn > .row2.col3 { + z-index: 100; +} + +.house.row2.col4:checked ~ div > div > hbtn > .row2.col5 { + z-index: 100; +} + +.house.row2.col4:checked ~ div > div > hbtn > .row3.col4 { + z-index: 100; +} + +.house.row2.col4:checked ~ div > div > hbtn > .row1.col4 { + z-index: 100; +} + +.shed.row3.col1:checked ~ div > div > shed > .row3.col1, +.house.row3.col1:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} +.shed.row3.col1:checked ~ div > div > shed > .row3.col1:after, .shed.row3.col1:checked ~ div > div > shed > .row3.col1 *:after, +.house.row3.col1:checked ~ div > div > house > .row3.col1:after, +.house.row3.col1:checked ~ div > div > house > .row3.col1 *:after { + animation: pop 0.1s linear forwards; +} +.shed.row3.col1:checked ~ div > div > shed > .row3.col1:before, .shed.row3.col1:checked ~ div > div > shed > .row3.col1 *:before, +.house.row3.col1:checked ~ div > div > house > .row3.col1:before, +.house.row3.col1:checked ~ div > div > house > .row3.col1 *:before { + animation: popup 0.1s linear forwards; +} + +.shed.row3.col1:checked ~ div > div > house > .row3.col1 > i:nth-of-type(5) { + display: none !important; +} + +.house.row3.col1:checked ~ div > div > hbtn > .row3.col0 { + z-index: 100; +} + +.house.row3.col1:checked ~ div > div > hbtn > .row3.col2 { + z-index: 100; +} + +.house.row3.col1:checked ~ div > div > hbtn > .row4.col1 { + z-index: 100; +} + +.house.row3.col1:checked ~ div > div > hbtn > .row2.col1 { + z-index: 100; +} + +.shed.row3.col2:checked ~ div > div > shed > .row3.col2, +.house.row3.col2:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} +.shed.row3.col2:checked ~ div > div > shed > .row3.col2:after, .shed.row3.col2:checked ~ div > div > shed > .row3.col2 *:after, +.house.row3.col2:checked ~ div > div > house > .row3.col2:after, +.house.row3.col2:checked ~ div > div > house > .row3.col2 *:after { + animation: pop 0.1s linear forwards; +} +.shed.row3.col2:checked ~ div > div > shed > .row3.col2:before, .shed.row3.col2:checked ~ div > div > shed > .row3.col2 *:before, +.house.row3.col2:checked ~ div > div > house > .row3.col2:before, +.house.row3.col2:checked ~ div > div > house > .row3.col2 *:before { + animation: popup 0.1s linear forwards; +} + +.shed.row3.col2:checked ~ div > div > house > .row3.col2 > i:nth-of-type(5) { + display: none !important; +} + +.house.row3.col2:checked ~ div > div > hbtn > .row3.col1 { + z-index: 100; +} + +.house.row3.col2:checked ~ div > div > hbtn > .row3.col3 { + z-index: 100; +} + +.house.row3.col2:checked ~ div > div > hbtn > .row4.col2 { + z-index: 100; +} + +.house.row3.col2:checked ~ div > div > hbtn > .row2.col2 { + z-index: 100; +} + +.shed.row3.col3:checked ~ div > div > shed > .row3.col3, +.house.row3.col3:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} +.shed.row3.col3:checked ~ div > div > shed > .row3.col3:after, .shed.row3.col3:checked ~ div > div > shed > .row3.col3 *:after, +.house.row3.col3:checked ~ div > div > house > .row3.col3:after, +.house.row3.col3:checked ~ div > div > house > .row3.col3 *:after { + animation: pop 0.1s linear forwards; +} +.shed.row3.col3:checked ~ div > div > shed > .row3.col3:before, .shed.row3.col3:checked ~ div > div > shed > .row3.col3 *:before, +.house.row3.col3:checked ~ div > div > house > .row3.col3:before, +.house.row3.col3:checked ~ div > div > house > .row3.col3 *:before { + animation: popup 0.1s linear forwards; +} + +.shed.row3.col3:checked ~ div > div > house > .row3.col3 > i:nth-of-type(5) { + display: none !important; +} + +.house.row3.col3:checked ~ div > div > hbtn > .row3.col2 { + z-index: 100; +} + +.house.row3.col3:checked ~ div > div > hbtn > .row3.col4 { + z-index: 100; +} + +.house.row3.col3:checked ~ div > div > hbtn > .row4.col3 { + z-index: 100; +} + +.house.row3.col3:checked ~ div > div > hbtn > .row2.col3 { + z-index: 100; +} + +.shed.row3.col4:checked ~ div > div > shed > .row3.col4, +.house.row3.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.shed.row3.col4:checked ~ div > div > shed > .row3.col4:after, .shed.row3.col4:checked ~ div > div > shed > .row3.col4 *:after, +.house.row3.col4:checked ~ div > div > house > .row3.col4:after, +.house.row3.col4:checked ~ div > div > house > .row3.col4 *:after { + animation: pop 0.1s linear forwards; +} +.shed.row3.col4:checked ~ div > div > shed > .row3.col4:before, .shed.row3.col4:checked ~ div > div > shed > .row3.col4 *:before, +.house.row3.col4:checked ~ div > div > house > .row3.col4:before, +.house.row3.col4:checked ~ div > div > house > .row3.col4 *:before { + animation: popup 0.1s linear forwards; +} + +.shed.row3.col4:checked ~ div > div > house > .row3.col4 > i:nth-of-type(5) { + display: none !important; +} + +.house.row3.col4:checked ~ div > div > hbtn > .row3.col3 { + z-index: 100; +} + +.house.row3.col4:checked ~ div > div > hbtn > .row3.col5 { + z-index: 100; +} + +.house.row3.col4:checked ~ div > div > hbtn > .row4.col4 { + z-index: 100; +} + +.house.row3.col4:checked ~ div > div > hbtn > .row2.col4 { + z-index: 100; +} + +.shed.row4.col1:checked ~ div > div > shed > .row4.col1, +.house.row4.col1:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} +.shed.row4.col1:checked ~ div > div > shed > .row4.col1:after, .shed.row4.col1:checked ~ div > div > shed > .row4.col1 *:after, +.house.row4.col1:checked ~ div > div > house > .row4.col1:after, +.house.row4.col1:checked ~ div > div > house > .row4.col1 *:after { + animation: pop 0.1s linear forwards; +} +.shed.row4.col1:checked ~ div > div > shed > .row4.col1:before, .shed.row4.col1:checked ~ div > div > shed > .row4.col1 *:before, +.house.row4.col1:checked ~ div > div > house > .row4.col1:before, +.house.row4.col1:checked ~ div > div > house > .row4.col1 *:before { + animation: popup 0.1s linear forwards; +} + +.shed.row4.col1:checked ~ div > div > house > .row4.col1 > i:nth-of-type(5) { + display: none !important; +} + +.house.row4.col1:checked ~ div > div > hbtn > .row4.col0 { + z-index: 100; +} + +.house.row4.col1:checked ~ div > div > hbtn > .row4.col2 { + z-index: 100; +} + +.house.row4.col1:checked ~ div > div > hbtn > .row5.col1 { + z-index: 100; +} + +.house.row4.col1:checked ~ div > div > hbtn > .row3.col1 { + z-index: 100; +} + +.shed.row4.col2:checked ~ div > div > shed > .row4.col2, +.house.row4.col2:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} +.shed.row4.col2:checked ~ div > div > shed > .row4.col2:after, .shed.row4.col2:checked ~ div > div > shed > .row4.col2 *:after, +.house.row4.col2:checked ~ div > div > house > .row4.col2:after, +.house.row4.col2:checked ~ div > div > house > .row4.col2 *:after { + animation: pop 0.1s linear forwards; +} +.shed.row4.col2:checked ~ div > div > shed > .row4.col2:before, .shed.row4.col2:checked ~ div > div > shed > .row4.col2 *:before, +.house.row4.col2:checked ~ div > div > house > .row4.col2:before, +.house.row4.col2:checked ~ div > div > house > .row4.col2 *:before { + animation: popup 0.1s linear forwards; +} + +.shed.row4.col2:checked ~ div > div > house > .row4.col2 > i:nth-of-type(5) { + display: none !important; +} + +.house.row4.col2:checked ~ div > div > hbtn > .row4.col1 { + z-index: 100; +} + +.house.row4.col2:checked ~ div > div > hbtn > .row4.col3 { + z-index: 100; +} + +.house.row4.col2:checked ~ div > div > hbtn > .row5.col2 { + z-index: 100; +} + +.house.row4.col2:checked ~ div > div > hbtn > .row3.col2 { + z-index: 100; +} + +.shed.row4.col3:checked ~ div > div > shed > .row4.col3, +.house.row4.col3:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} +.shed.row4.col3:checked ~ div > div > shed > .row4.col3:after, .shed.row4.col3:checked ~ div > div > shed > .row4.col3 *:after, +.house.row4.col3:checked ~ div > div > house > .row4.col3:after, +.house.row4.col3:checked ~ div > div > house > .row4.col3 *:after { + animation: pop 0.1s linear forwards; +} +.shed.row4.col3:checked ~ div > div > shed > .row4.col3:before, .shed.row4.col3:checked ~ div > div > shed > .row4.col3 *:before, +.house.row4.col3:checked ~ div > div > house > .row4.col3:before, +.house.row4.col3:checked ~ div > div > house > .row4.col3 *:before { + animation: popup 0.1s linear forwards; +} + +.shed.row4.col3:checked ~ div > div > house > .row4.col3 > i:nth-of-type(5) { + display: none !important; +} + +.house.row4.col3:checked ~ div > div > hbtn > .row4.col2 { + z-index: 100; +} + +.house.row4.col3:checked ~ div > div > hbtn > .row4.col4 { + z-index: 100; +} + +.house.row4.col3:checked ~ div > div > hbtn > .row5.col3 { + z-index: 100; +} + +.house.row4.col3:checked ~ div > div > hbtn > .row3.col3 { + z-index: 100; +} + +.shed.row4.col4:checked ~ div > div > shed > .row4.col4, +.house.row4.col4:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} +.shed.row4.col4:checked ~ div > div > shed > .row4.col4:after, .shed.row4.col4:checked ~ div > div > shed > .row4.col4 *:after, +.house.row4.col4:checked ~ div > div > house > .row4.col4:after, +.house.row4.col4:checked ~ div > div > house > .row4.col4 *:after { + animation: pop 0.1s linear forwards; +} +.shed.row4.col4:checked ~ div > div > shed > .row4.col4:before, .shed.row4.col4:checked ~ div > div > shed > .row4.col4 *:before, +.house.row4.col4:checked ~ div > div > house > .row4.col4:before, +.house.row4.col4:checked ~ div > div > house > .row4.col4 *:before { + animation: popup 0.1s linear forwards; +} + +.shed.row4.col4:checked ~ div > div > house > .row4.col4 > i:nth-of-type(5) { + display: none !important; +} + +.house.row4.col4:checked ~ div > div > hbtn > .row4.col3 { + z-index: 100; +} + +.house.row4.col4:checked ~ div > div > hbtn > .row4.col5 { + z-index: 100; +} + +.house.row4.col4:checked ~ div > div > hbtn > .row5.col4 { + z-index: 100; +} + +.house.row4.col4:checked ~ div > div > hbtn > .row3.col4 { + z-index: 100; +} + +.hs.row1.col1:checked ~ div > div > shed > .row1.col1 { + z-index: 300; +} + +.hs.row1.col1:checked ~ div > div > house > .row1.col1 { + background: #bc2f2f; + z-index: 300; + color: #bc2f2f; +} + +.hs.shed.row1.col1:checked ~ div > div > house > .row1.col1 { + background: #bc502f; + color: #bc502f; +} + +.hs.row1.col2:checked ~ div > div > shed > .row1.col2 { + z-index: 300; +} + +.hs.row1.col2:checked ~ div > div > house > .row1.col2 { + background: #bc2f2f; + z-index: 300; + color: #bc2f2f; +} + +.hs.shed.row1.col2:checked ~ div > div > house > .row1.col2 { + background: #bc502f; + color: #bc502f; +} + +.hs.row1.col3:checked ~ div > div > shed > .row1.col3 { + z-index: 300; +} + +.hs.row1.col3:checked ~ div > div > house > .row1.col3 { + background: #bc2f2f; + z-index: 300; + color: #bc2f2f; +} + +.hs.shed.row1.col3:checked ~ div > div > house > .row1.col3 { + background: #bc502f; + color: #bc502f; +} + +.hs.row1.col4:checked ~ div > div > shed > .row1.col4 { + z-index: 300; +} + +.hs.row1.col4:checked ~ div > div > house > .row1.col4 { + background: #bc2f2f; + z-index: 300; + color: #bc2f2f; +} + +.hs.shed.row1.col4:checked ~ div > div > house > .row1.col4 { + background: #bc502f; + color: #bc502f; +} + +.hs.row2.col1:checked ~ div > div > shed > .row2.col1 { + z-index: 300; +} + +.hs.row2.col1:checked ~ div > div > house > .row2.col1 { + background: #bc2f2f; + z-index: 300; + color: #bc2f2f; +} + +.hs.shed.row2.col1:checked ~ div > div > house > .row2.col1 { + background: #bc502f; + color: #bc502f; +} + +.hs.row2.col2:checked ~ div > div > shed > .row2.col2 { + z-index: 300; +} + +.hs.row2.col2:checked ~ div > div > house > .row2.col2 { + background: #bc2f2f; + z-index: 300; + color: #bc2f2f; +} + +.hs.shed.row2.col2:checked ~ div > div > house > .row2.col2 { + background: #bc502f; + color: #bc502f; +} + +.hs.row2.col3:checked ~ div > div > shed > .row2.col3 { + z-index: 300; +} + +.hs.row2.col3:checked ~ div > div > house > .row2.col3 { + background: #bc2f2f; + z-index: 300; + color: #bc2f2f; +} + +.hs.shed.row2.col3:checked ~ div > div > house > .row2.col3 { + background: #bc502f; + color: #bc502f; +} + +.hs.row2.col4:checked ~ div > div > shed > .row2.col4 { + z-index: 300; +} + +.hs.row2.col4:checked ~ div > div > house > .row2.col4 { + background: #bc2f2f; + z-index: 300; + color: #bc2f2f; +} + +.hs.shed.row2.col4:checked ~ div > div > house > .row2.col4 { + background: #bc502f; + color: #bc502f; +} + +.hs.row3.col1:checked ~ div > div > shed > .row3.col1 { + z-index: 300; +} + +.hs.row3.col1:checked ~ div > div > house > .row3.col1 { + background: #bc2f2f; + z-index: 300; + color: #bc2f2f; +} + +.hs.shed.row3.col1:checked ~ div > div > house > .row3.col1 { + background: #bc502f; + color: #bc502f; +} + +.hs.row3.col2:checked ~ div > div > shed > .row3.col2 { + z-index: 300; +} + +.hs.row3.col2:checked ~ div > div > house > .row3.col2 { + background: #bc2f2f; + z-index: 300; + color: #bc2f2f; +} + +.hs.shed.row3.col2:checked ~ div > div > house > .row3.col2 { + background: #bc502f; + color: #bc502f; +} + +.hs.row3.col3:checked ~ div > div > shed > .row3.col3 { + z-index: 300; +} + +.hs.row3.col3:checked ~ div > div > house > .row3.col3 { + background: #bc2f2f; + z-index: 300; + color: #bc2f2f; +} + +.hs.shed.row3.col3:checked ~ div > div > house > .row3.col3 { + background: #bc502f; + color: #bc502f; +} + +.hs.row3.col4:checked ~ div > div > shed > .row3.col4 { + z-index: 300; +} + +.hs.row3.col4:checked ~ div > div > house > .row3.col4 { + background: #bc2f2f; + z-index: 300; + color: #bc2f2f; +} + +.hs.shed.row3.col4:checked ~ div > div > house > .row3.col4 { + background: #bc502f; + color: #bc502f; +} + +.hs.row4.col1:checked ~ div > div > shed > .row4.col1 { + z-index: 300; +} + +.hs.row4.col1:checked ~ div > div > house > .row4.col1 { + background: #bc2f2f; + z-index: 300; + color: #bc2f2f; +} + +.hs.shed.row4.col1:checked ~ div > div > house > .row4.col1 { + background: #bc502f; + color: #bc502f; +} + +.hs.row4.col2:checked ~ div > div > shed > .row4.col2 { + z-index: 300; +} + +.hs.row4.col2:checked ~ div > div > house > .row4.col2 { + background: #bc2f2f; + z-index: 300; + color: #bc2f2f; +} + +.hs.shed.row4.col2:checked ~ div > div > house > .row4.col2 { + background: #bc502f; + color: #bc502f; +} + +.hs.row4.col3:checked ~ div > div > shed > .row4.col3 { + z-index: 300; +} + +.hs.row4.col3:checked ~ div > div > house > .row4.col3 { + background: #bc2f2f; + z-index: 300; + color: #bc2f2f; +} + +.hs.shed.row4.col3:checked ~ div > div > house > .row4.col3 { + background: #bc502f; + color: #bc502f; +} + +.hs.row4.col4:checked ~ div > div > shed > .row4.col4 { + z-index: 300; +} + +.hs.row4.col4:checked ~ div > div > house > .row4.col4 { + background: #bc2f2f; + z-index: 300; + color: #bc2f2f; +} + +.hs.shed.row4.col4:checked ~ div > div > house > .row4.col4 { + background: #bc502f; + color: #bc502f; +} + +.house.row0.col1:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col0, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col0, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col-1, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col0, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col-2, +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col-1, +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} + +.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col-2, +.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} + +.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ div > div > shed > .row-1.col-2, +.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} + +.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} + +.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col0, +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col-2 { + opacity: 0; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-2, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-2, +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-1, +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col0, +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col1, +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} + +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ div > div > shed > .row0.col-1, +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ div > div > shed > .row-1.col-2 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row-1.col0, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col-1, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col-2 { + opacity: 0; +} + +.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-2.col-1:checked ~ div > div > shed > .row-2.col-1, +.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-2.col-1:checked ~ div > div > shed > .row-2.col-2 { + opacity: 0; +} + +.house.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-2.col3:checked ~ div > div > shed > .row-2.col4, +.house.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-2.col3:checked ~ div > div > shed > .row-2.col3 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row1.col-2, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row-1.col-2, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} + +.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-2.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col-2, +.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-2.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col-2, +.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-2.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-2.col-2 { + opacity: 0; +} + +.hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row1.col-2, +.hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} + +.hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} + +.house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} + +.hs.row1.col-1:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-1, +.hs.row1.col-1:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} + +.hs.row1.col-2:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-2, +.hs.row1.col-2:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} + +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-2:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-1, +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-2:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col2, +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col2, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col3, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col4, +.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col3, +.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4, +.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col3, +.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3, +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col4, +.hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col4, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4, +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4, +.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col4, +.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4, +.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col-1, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-1, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} + +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col-2, +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col2, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > shed > .row0.col3, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col3, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col4, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row0.col3, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .house.row-1.col0:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .house.row-1.col0:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .house.row-1.col0:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col0:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col0:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.house.row1.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3, +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col2, +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3, +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4, +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col3, +.hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col1, +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col4, +.hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col2, +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.house.row2.col1:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-3 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row0.col-1, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col2, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col0, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-1, +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col3, +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1, +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1, +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col2, +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ div > div > shed > .row-1.col-2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-2, +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row-1.col-1, +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col-2, +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col-1, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col-2, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col-2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col-2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.house.row0.col1:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col0, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col0, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col-1, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col0, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col-2, +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col-1, +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} + +.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col-2, +.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} + +.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ div > div > house > .row-1.col-2, +.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} + +.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} + +.hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col0, +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col-2 { + opacity: 1; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-2, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-2, +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-1, +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col0, +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col1, +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} + +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ div > div > house > .row0.col-1, +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ div > div > house > .row-1.col-2 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row-1.col0, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col-1, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col-2 { + opacity: 1; +} + +.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-2.col-1:checked ~ div > div > house > .row-2.col-1, +.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-2.col-1:checked ~ div > div > house > .row-2.col-2 { + opacity: 1; +} + +.house.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-2.col3:checked ~ div > div > house > .row-2.col4, +.house.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-2.col3:checked ~ div > div > house > .row-2.col3 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row1.col-2, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row-1.col-2, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} + +.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-2.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col-2, +.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-2.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col-2, +.house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-2.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-2.col-2 { + opacity: 1; +} + +.hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row1.col-2, +.hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} + +.hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} + +.house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} + +.hs.row1.col-1:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-1, +.hs.row1.col-1:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} + +.hs.row1.col-2:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-2, +.hs.row1.col-2:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} + +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-2:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-1, +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-2:checked ~ .house.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col2, +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col2, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col3, +.hs.row1.col0:checked ~ .house.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col4, +.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3, +.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4, +.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col3, +.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3, +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col4, +.hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col4, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4, +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4, +.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col4, +.house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4, +.house.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .house.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col-1, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-1, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} + +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col-2, +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col2, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > house > .row0.col3, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col3, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col4, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > house > .row0.col3, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .house.row-1.col1:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .house.row-1.col0:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .house.row-1.col0:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .house.row-1.col0:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col0:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .house.row-1.col0:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.house.row1.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3, +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col2, +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3, +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4, +.house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col3, +.hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col1, +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col4, +.hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col2, +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.house.row2.col1:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-3 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row0.col-1, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col2, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col0, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-1, +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col3, +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1, +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1, +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col2, +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ div > div > house > .row-1.col-2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-2, +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row-1.col-1, +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col-2, +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col-1, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col-2, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col-2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col3, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col-2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.house.row1.col1:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col0, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row2.col0, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row2.col-1, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col0, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row2.col-2, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col-1, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} + +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col-2, +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} + +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ div > div > shed > .row0.col-2, +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} + +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} + +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col0, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-2, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-1 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-2 { + opacity: 0; +} + +.hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-1 { + opacity: 0; +} + +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-2, +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-1, +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col0, +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col1, +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-1 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-2 { + opacity: 0; +} + +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} + +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-2 { + opacity: 0; +} + +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ div > div > shed > .row1.col-1, +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row0.col0, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col-1, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} + +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col-1, +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col-2 { + opacity: 0; +} + +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row2.col-2, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row0.col-2, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} + +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-2, +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col-2, +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row-1.col-2 { + opacity: 0; +} + +.hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row2.col-2, +.hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-1, +.hs.row2.col-1:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.hs.row2.col-2:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-2, +.hs.row2.col-2:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-2:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-1, +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-2:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col2, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col2, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col3, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col4, +.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3, +.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4, +.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col3, +.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3, +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4, +.hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col4, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col4, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4, +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4, +.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col4, +.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4, +.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col-1, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-1, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row2.col-2, +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col-2 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col2, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col3, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col3, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col4, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > shed > .row1.col3, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row0.col0:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row0.col0:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row0.col0:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col0:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col0:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.house.row2.col1:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3, +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col2, +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4, +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col3, +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4, +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col3, +.hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col1, +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col4, +.hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col2, +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.house.row3.col1:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-3 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row1.col-1, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col0, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col-1, +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col3, +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1, +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1, +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col2, +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col-2, +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row0.col-1, +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col-2, +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-1, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-2, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.house.row1.col1:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col0, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row2.col0, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row2.col-1, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col0, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row2.col-2, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col-1, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} + +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col-2, +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} + +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ div > div > house > .row0.col-2, +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} + +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} + +.hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col0, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-2, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-1 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-2 { + opacity: 1; +} + +.hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-1 { + opacity: 1; +} + +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-2, +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-1, +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col0, +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col1, +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-1 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-2 { + opacity: 1; +} + +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} + +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-2 { + opacity: 1; +} + +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ div > div > house > .row1.col-1, +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row0.col0, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col-1, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} + +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col-1, +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col-2 { + opacity: 1; +} + +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4, +.house.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row2.col-2, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row0.col-2, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} + +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-2, +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col-2, +.house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row-1.col-2 { + opacity: 1; +} + +.hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row2.col-2, +.hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-1, +.hs.row2.col-1:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.hs.row2.col-2:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-2, +.hs.row2.col-2:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-2:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-1, +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-2:checked ~ .house.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col2, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col2, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col3, +.hs.row2.col0:checked ~ .house.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col4, +.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3, +.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4, +.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col3, +.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3, +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4, +.hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col4, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4, +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4, +.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col4, +.house.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4, +.house.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .house.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col-1, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-1, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row2.col-2, +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col-2 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col2, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col3, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col3, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col4, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > house > .row1.col3, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .house.row0.col1:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row0.col0:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row0.col0:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row0.col0:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col0:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row0.col0:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.house.row2.col1:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col3, +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col2, +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4, +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col3, +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4, +.house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col3, +.hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col1, +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col4, +.hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col2, +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.house.row3.col1:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-3 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row1.col-1, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col0, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col-1, +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col3, +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1, +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1, +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col2, +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col-2, +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row0.col-1, +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col-2, +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-1, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-2, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col3, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.house.row2.col1:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row4.col0, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row3.col0, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row3.col-1, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row4.col0, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row3.col-2, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row4.col-1, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row4.col-2, +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ div > div > shed > .row1.col-2, +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col0, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-2, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col0 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-1 { + opacity: 0; +} + +.hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-2 { + opacity: 0; +} + +.hs.row5.col-2:checked ~ .hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-1 { + opacity: 0; +} + +.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col0 { + opacity: 0; +} + +.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col1 { + opacity: 0; +} + +.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-2, +.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-1, +.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col0 { + opacity: 0; +} + +.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col1 { + opacity: 0; +} + +.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col0, +.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col1, +.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-1 { + opacity: 0; +} + +.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-2 { + opacity: 0; +} + +.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row4.col-2 { + opacity: 0; +} + +.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-2:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} + +.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-2 { + opacity: 0; +} + +.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-2:checked ~ .hs.row4.col0:checked ~ .house.row4.col1:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} + +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ div > div > shed > .row2.col-1, +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row1.col0, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col-1, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} + +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col-1, +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} + +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row3.col-2, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row1.col-2, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} + +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col-2, +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col-2, +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row0.col-2 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row3.col-2, +.hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row4.col-2 { + opacity: 0; +} + +.hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row4.col-1 { + opacity: 0; +} + +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row3.col-1, +.hs.row3.col-1:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row4.col-1 { + opacity: 0; +} + +.hs.row3.col-2:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row3.col-2, +.hs.row3.col-2:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row4.col-2 { + opacity: 0; +} + +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-2:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row4.col-1, +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-2:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col3, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col4, +.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col3, +.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4, +.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col3, +.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3, +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col4, +.hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row4.col4, +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4, +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col4, +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4, +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4, +.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4, +.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4, +.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row4.col-1, +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-1, +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row4.col-2 { + opacity: 0; +} + +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row3.col-2, +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > shed > .row5.col-2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col2, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ div > div > shed > .row2.col3, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col3, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ div > div > shed > .row4.col4, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col3, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row1.col0:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row1.col0:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row1.col0:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col0:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col0:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row5.col4 { + opacity: 0; +} + +.house.row3.col1:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col3, +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row4.col2, +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col4, +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row4.col3, +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row4.col4, +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row4.col3, +.hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row5.col2 { + opacity: 0; +} + +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row5.col1, +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row5.col3 { + opacity: 0; +} + +.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row5.col4 { + opacity: 0; +} + +.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col2:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row4.col4, +.hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row5.col3 { + opacity: 0; +} + +.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row5.col2, +.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row5.col4 { + opacity: 0; +} + +.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row5.col1 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col4 { + opacity: 0; +} + +.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col3 { + opacity: 0; +} + +.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col2 { + opacity: 0; +} + +.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col1 { + opacity: 0; +} + +.house.row4.col1:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-3 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row2.col-1, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col0, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col4, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col-1, +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col3, +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row2.col-1, +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1, +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col2, +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row3.col-2, +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row1.col-1, +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col-2, +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col-1, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col-2, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.house.row2.col1:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row4.col0, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row3.col0, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row3.col-1, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row4.col0, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row3.col-2, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row4.col-1, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row4.col-2, +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ div > div > house > .row1.col-2, +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col0, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-2, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col0 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-1 { + opacity: 1; +} + +.hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-2 { + opacity: 1; +} + +.hs.row5.col-2:checked ~ .hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-1 { + opacity: 1; +} + +.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col0 { + opacity: 1; +} + +.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col1 { + opacity: 1; +} + +.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-2, +.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-1, +.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col0 { + opacity: 1; +} + +.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col1 { + opacity: 1; +} + +.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col0, +.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col1, +.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-1 { + opacity: 1; +} + +.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-2 { + opacity: 1; +} + +.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row4.col-2 { + opacity: 1; +} + +.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-2:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} + +.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-2 { + opacity: 1; +} + +.hs.row5.col-2:checked ~ .hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-2:checked ~ .hs.row4.col0:checked ~ .house.row4.col1:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} + +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ div > div > house > .row2.col-1, +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row1.col0, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col-1, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} + +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col-1, +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} + +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, +.house.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row3.col-2, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row1.col-2, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} + +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col-2, +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col-2, +.house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row0.col-2 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row3.col-2, +.hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row4.col-2 { + opacity: 1; +} + +.hs.row4.col-2:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row4.col-1 { + opacity: 1; +} + +.house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row3.col-1, +.hs.row3.col-1:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row4.col-1 { + opacity: 1; +} + +.hs.row3.col-2:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row3.col-2, +.hs.row3.col-2:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row4.col-2 { + opacity: 1; +} + +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-2:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row4.col-1, +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-2:checked ~ .house.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col3, +.hs.row3.col0:checked ~ .house.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col4, +.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col3, +.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4, +.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col3, +.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3, +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col4, +.hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row4.col4, +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4, +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col4, +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4, +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4, +.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4, +.house.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4, +.house.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .house.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row4.col-1, +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-1, +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row4.col-2 { + opacity: 1; +} + +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row3.col-2, +.hs.row4.col-2:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col1:checked ~ div > div > house > .row5.col-2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col2, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ div > div > house > .row2.col3, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col3, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col1:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ div > div > house > .row4.col4, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col1:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col3, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row1.col0:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row1.col0:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row1.col0:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col0:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row1.col0:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row5.col4 { + opacity: 1; +} + +.house.row3.col1:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col3, +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row4.col2, +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col4, +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row4.col3, +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row4.col4, +.house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row4.col3, +.hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row5.col2 { + opacity: 1; +} + +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row5.col1, +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row5.col3 { + opacity: 1; +} + +.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row5.col4 { + opacity: 1; +} + +.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col2:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col2:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row4.col4, +.hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row5.col3 { + opacity: 1; +} + +.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row5.col2, +.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row5.col4 { + opacity: 1; +} + +.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row5.col1 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col4 { + opacity: 1; +} + +.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col3 { + opacity: 1; +} + +.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col2 { + opacity: 1; +} + +.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col1 { + opacity: 1; +} + +.house.row4.col1:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-3 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row2.col-1, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col0, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col4, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col-1, +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col3, +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row2.col-1, +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1, +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col2, +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col-2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > house > .row3.col-2, +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ div > div > house > .row1.col-1, +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col-2, +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col-1, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col-2, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col3, +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.house.row0.col2:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col1, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col1, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col0, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col1, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col-1, +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col0, +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col-1, +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col-1, +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1, +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col-1, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col-1, +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col0, +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col1, +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col2, +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col0, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col1, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col0, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} + +.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-2.col0:checked ~ div > div > shed > .row-2.col0, +.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-2.col0:checked ~ div > div > shed > .row-2.col-1 { + opacity: 0; +} + +.house.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-2.col4:checked ~ div > div > shed > .row-2.col5, +.house.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-2.col4:checked ~ div > div > shed > .row-2.col4 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-1, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col-1, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} + +.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-2.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col-1, +.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-2.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col-1, +.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-2.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-2.col-1 { + opacity: 0; +} + +.hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-1, +.hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col0, +.hs.row1.col0:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row1.col-1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col-1, +.hs.row1.col-1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col0, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col3, +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col3, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col4, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col5, +.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4, +.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5, +.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col4, +.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col4, +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col5, +.hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col5, +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5, +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col5, +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5, +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col5, +.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col5, +.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col5, +.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col0, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col0, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col-1, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col3, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > shed > .row0.col4, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col4, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col5, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row0.col4, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.house.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3, +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4, +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5, +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col4, +.hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col2, +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col5, +.hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3, +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.house.row2.col2:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col-2 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row0.col0, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col3, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col1, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col0, +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col4, +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0, +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0, +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col3, +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col-1, +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row-1.col0, +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1, +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col0, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col-1, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.house.row0.col2:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col1, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col1, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col0, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col1, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col-1, +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col0, +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col-1, +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col-1, +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} + +.hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1, +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col-1, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col-1, +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col0, +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col1, +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col2, +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col0, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col1, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col0, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} + +.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-2.col0:checked ~ div > div > house > .row-2.col0, +.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-2.col0:checked ~ div > div > house > .row-2.col-1 { + opacity: 1; +} + +.house.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-2.col4:checked ~ div > div > house > .row-2.col5, +.house.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-2.col4:checked ~ div > div > house > .row-2.col4 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-1, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col-1, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} + +.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-2.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col-1, +.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-2.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col-1, +.house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-2.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-2.col-1 { + opacity: 1; +} + +.hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-1, +.hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col0, +.hs.row1.col0:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row1.col-1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col-1, +.hs.row1.col-1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col0, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col-1:checked ~ .house.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col3, +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col3, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col4, +.hs.row1.col1:checked ~ .house.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col5, +.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4, +.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5, +.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col4, +.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col4, +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col5, +.hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col5, +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5, +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col5, +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5, +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col5, +.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col5, +.house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col5, +.house.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .house.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col0, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col0, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col-1, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col3, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > house > .row0.col4, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col4, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col5, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > house > .row0.col4, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .house.row-1.col2:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .house.row-1.col1:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .house.row-1.col1:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .house.row-1.col1:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .house.row-1.col1:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.house.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3, +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4, +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5, +.house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col4, +.hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col2, +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col5, +.hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3, +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.house.row2.col2:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col-2 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row0.col0, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col3, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col1, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col0, +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col4, +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0, +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0, +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col3, +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col-1, +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ div > div > house > .row-1.col0, +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1, +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col0, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col-1:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col-1, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.house.row1.col2:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col1, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row2.col1, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row2.col0, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col1, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row2.col-1, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col0, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col-1, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col-1, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col-1, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col-1 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col-1, +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col0, +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col1, +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col2, +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col-1 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col-1 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col0, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col1, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col0, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} + +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col0, +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} + +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-1, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col-1, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} + +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col-1, +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col-1, +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row-1.col-1 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-1, +.hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col0, +.hs.row2.col0:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row2.col-1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col-1, +.hs.row2.col-1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col0, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col3, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col3, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col4, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col5, +.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4, +.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5, +.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col4, +.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4, +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5, +.hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col5, +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col5, +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5, +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5, +.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col5, +.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5, +.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col0, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col0, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row2.col-1, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col-1 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col3, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col4, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col4, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col5, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > shed > .row1.col4, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.house.row2.col2:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4, +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col3, +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5, +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4, +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5, +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col4, +.hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col2, +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col5, +.hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3, +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.house.row3.col2:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row0.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col-2 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col0, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col1, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col0, +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col4, +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0, +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0, +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col3, +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col-1, +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row0.col0, +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1, +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col0, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col-1, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.house.row1.col2:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col1, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row2.col1, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row2.col0, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col1, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row2.col-1, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col0, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col-1, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col-1, +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col-1, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col-1 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col-1, +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col0, +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col1, +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col2, +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col-1 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col-1 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col0, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col1, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col0, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} + +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col0, +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} + +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5, +.house.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-1, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col-1, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} + +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col-1, +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col-1, +.house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row-1.col-1 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-1, +.hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col0, +.hs.row2.col0:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row2.col-1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col-1, +.hs.row2.col-1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col0, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col-1:checked ~ .house.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col3, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col3, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col4, +.hs.row2.col1:checked ~ .house.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col5, +.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4, +.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5, +.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col4, +.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4, +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5, +.hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col5, +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col5, +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5, +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5, +.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col5, +.house.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5, +.house.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .house.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col0, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col0, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row2.col-1, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col-1 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col3, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col4, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col4, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col5, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > house > .row1.col4, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .house.row0.col2:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row0.col1:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .house.row0.col1:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.house.row2.col2:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4, +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col3, +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5, +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4, +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5, +.house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col4, +.hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col2, +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col5, +.hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3, +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.house.row3.col2:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row0.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col-2 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col0, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col1, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col0, +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col4, +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0, +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0, +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3, +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col-1, +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ div > div > house > .row0.col0, +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1, +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col0, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col-1:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col-1, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col2:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.house.row2.col2:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row4.col1, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row3.col1, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row3.col0, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row4.col1, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row3.col-1, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row4.col0, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row4.col-1, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col-1, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-1, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col1 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col0 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col-1 { + opacity: 0; +} + +.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col0 { + opacity: 0; +} + +.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col1 { + opacity: 0; +} + +.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col2 { + opacity: 0; +} + +.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col-1, +.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col0, +.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col1 { + opacity: 0; +} + +.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col2 { + opacity: 0; +} + +.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col1, +.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col2, +.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col0 { + opacity: 0; +} + +.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col-1 { + opacity: 0; +} + +.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row4.col-1 { + opacity: 0; +} + +.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col-1 { + opacity: 0; +} + +.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col1:checked ~ .house.row4.col2:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row2.col0, +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col1, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col0, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} + +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col0, +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} + +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row3.col-1, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col-1, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} + +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col-1, +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col-1, +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row0.col-1 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row3.col-1, +.hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row4.col-1 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col0, +.hs.row3.col0:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row3.col-1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col-1, +.hs.row3.col-1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col-1 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col0, +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col3, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col3, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col4, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col5, +.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4, +.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5, +.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col4, +.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col4, +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col5, +.hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row4.col5, +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5, +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col5, +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5, +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5, +.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5, +.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5, +.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row4.col0, +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col0, +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row4.col-1 { + opacity: 0; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row3.col-1, +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > shed > .row5.col-1 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col3, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ div > div > shed > .row2.col4, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col4, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ div > div > shed > .row4.col5, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col4, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row5.col5 { + opacity: 0; +} + +.house.row3.col2:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col4, +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row4.col3, +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col5, +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row4.col4, +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row4.col5, +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row4.col4, +.hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row5.col3 { + opacity: 0; +} + +.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row5.col2, +.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row5.col4 { + opacity: 0; +} + +.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row5.col5 { + opacity: 0; +} + +.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col3:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row4.col5, +.hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col4 { + opacity: 0; +} + +.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col3, +.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col5 { + opacity: 0; +} + +.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col2 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col5 { + opacity: 0; +} + +.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col4 { + opacity: 0; +} + +.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col3 { + opacity: 0; +} + +.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col2 { + opacity: 0; +} + +.house.row4.col2:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row1.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col-2 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col0, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col1, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col5, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col0, +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col4, +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col0, +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0, +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3, +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row3.col-1, +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row1.col0, +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col-1, +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col0, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col-1, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.house.row2.col2:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row4.col1, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row3.col1, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row3.col0, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row4.col1, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row3.col-1, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row4.col0, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row4.col-1, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col-1, +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-1, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col1 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col0 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col-1 { + opacity: 1; +} + +.hs.row5.col-1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col0 { + opacity: 1; +} + +.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col1 { + opacity: 1; +} + +.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col2 { + opacity: 1; +} + +.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col-1, +.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col0, +.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col1 { + opacity: 1; +} + +.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col2 { + opacity: 1; +} + +.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col1, +.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col2, +.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col0 { + opacity: 1; +} + +.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col-1 { + opacity: 1; +} + +.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row4.col-1 { + opacity: 1; +} + +.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col-1 { + opacity: 1; +} + +.hs.row5.col-1:checked ~ .hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col-1:checked ~ .hs.row4.col1:checked ~ .house.row4.col2:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ div > div > house > .row2.col0, +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col1, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col0, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} + +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col0, +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} + +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5, +.house.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row3.col-1, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col-1, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} + +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col-1, +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col-1, +.house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row0.col-1 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row3.col-1, +.hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row4.col-1 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col0, +.hs.row3.col0:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row3.col-1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col-1, +.hs.row3.col-1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col-1 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col0, +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col-1:checked ~ .house.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col3, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col4, +.hs.row3.col1:checked ~ .house.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col5, +.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4, +.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5, +.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col4, +.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col4, +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col5, +.hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row4.col5, +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5, +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ div > div > house > .row3.col5, +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5, +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5, +.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5, +.house.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5, +.house.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .house.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row4.col0, +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col0, +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row4.col-1 { + opacity: 1; +} + +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row3.col-1, +.hs.row4.col-1:checked ~ .hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col2:checked ~ div > div > house > .row5.col-1 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col3, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ div > div > house > .row2.col4, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col4, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col2:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ div > div > house > .row4.col5, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col2:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col4, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row1.col1:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .house.row1.col1:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row5.col5 { + opacity: 1; +} + +.house.row3.col2:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col4, +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row4.col3, +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col5, +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row4.col4, +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row4.col5, +.house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row4.col4, +.hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row5.col3 { + opacity: 1; +} + +.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row5.col2, +.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row5.col4 { + opacity: 1; +} + +.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row5.col5 { + opacity: 1; +} + +.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col3:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col3:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row4.col5, +.hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col4 { + opacity: 1; +} + +.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col3, +.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col5 { + opacity: 1; +} + +.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col2 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col5 { + opacity: 1; +} + +.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col4 { + opacity: 1; +} + +.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col3 { + opacity: 1; +} + +.hs.row5.col3:checked ~ .hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col2 { + opacity: 1; +} + +.house.row4.col2:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row1.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col-2 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col0, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col1, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col5, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col0, +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col4, +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col0, +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0, +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3, +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col-1:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row3.col-1, +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ div > div > house > .row1.col0, +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col-1, +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col0, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col-1:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col-1, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col-1:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4, +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.house.row0.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col2, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col2, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col1, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col2, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col0, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col1, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col0, +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col0, +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col0, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col0, +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col1, +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col2, +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col3, +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col2, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col1, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} + +.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-2.col1:checked ~ div > div > shed > .row-2.col1, +.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-2.col1:checked ~ div > div > shed > .row-2.col0 { + opacity: 0; +} + +.house.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-2.col5:checked ~ div > div > shed > .row-2.col6, +.house.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-2.col5:checked ~ div > div > shed > .row-2.col5 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col0, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col0, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} + +.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-2.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col0, +.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-2.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col0, +.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-2.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-2.col0 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col0, +.hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col1, +.hs.row1.col1:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row1.col0:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col0, +.hs.row1.col0:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col1, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col4, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col4, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col5, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col6, +.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5, +.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6, +.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col5, +.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col5, +.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col6, +.hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col6, +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6, +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col6, +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} + +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6, +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col6, +.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col6, +.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col6, +.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col1, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col1, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col0, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col4, +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > shed > .row0.col5, +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col5, +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col6, +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row0.col5, +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} + +.hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} +.hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.house.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4, +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5, +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6, +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col5, +.hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3, +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col6, +.hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4, +.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.house.row2.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col-1 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col1, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col2, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col3, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col1, +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col5, +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1, +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1, +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col4, +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col0, +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col1, +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0, +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col1, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col0, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.house.row0.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col2, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col2, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col1, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col2, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col0, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col1, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col0, +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col0, +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col0, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col0, +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col1, +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col2, +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col3, +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col2, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col1, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} + +.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-2.col1:checked ~ div > div > house > .row-2.col1, +.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-2.col1:checked ~ div > div > house > .row-2.col0 { + opacity: 1; +} + +.house.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-2.col5:checked ~ div > div > house > .row-2.col6, +.house.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-2.col5:checked ~ div > div > house > .row-2.col5 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col0, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col0, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} + +.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-2.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col0, +.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-2.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col0, +.house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-2.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-2.col0 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col0, +.hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col1, +.hs.row1.col1:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row1.col0:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col0, +.hs.row1.col0:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col1, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row1.col0:checked ~ .house.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col4, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col4, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col5, +.hs.row1.col2:checked ~ .house.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col6, +.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5, +.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6, +.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col5, +.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col5, +.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col6, +.hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col6, +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6, +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col6, +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} + +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6, +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col6, +.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col6, +.house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col6, +.house.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .house.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col1, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col1, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col0, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col4, +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > house > .row0.col5, +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col5, +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col6, +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > house > .row0.col5, +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .house.row-1.col3:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col2:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col2:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .house.row-1.col2:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .house.row-1.col2:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} + +.hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} +.hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.house.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4, +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5, +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6, +.house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col5, +.hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3, +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col6, +.hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4, +.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.house.row2.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col-1 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col1, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col2, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col3, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col1, +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col5, +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1, +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1, +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col4, +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col0, +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col1, +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0, +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col1, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col0:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col0, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col5, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.house.row1.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col2, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row2.col2, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row2.col1, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col2, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row2.col0, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col1, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col0, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col0, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col0, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col0, +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col1, +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col2, +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col3, +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col1, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} + +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col1, +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} + +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col0, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col0, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col0, +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col0, +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row-1.col0 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col0, +.hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col1, +.hs.row2.col1:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row2.col0:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col0, +.hs.row2.col0:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col4, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col4, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col5, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col6, +.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5, +.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6, +.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col5, +.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5, +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6, +.hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col6, +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col6, +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6, +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6, +.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col6, +.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6, +.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col1, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col1, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row2.col0, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col4, +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col5, +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col5, +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col6, +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > shed > .row1.col5, +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row4.col6 { + opacity: 0; +} + +.house.row2.col3:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5, +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col4, +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6, +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5, +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6, +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col5, +.hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3, +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col6 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col6, +.hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col4, +.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col6 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col6 { + opacity: 0; +} + +.hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.house.row3.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col-1 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col1, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col2, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col1, +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col5, +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1, +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1, +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4, +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col0, +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col1, +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0, +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col1, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col0, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.house.row1.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col2, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row2.col2, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row2.col1, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col2, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row2.col0, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col1, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col0, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col0, +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col0, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col0, +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col1, +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col2, +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col3, +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col1, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} + +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col1, +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} + +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6, +.house.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col0, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col0, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col0, +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col0, +.house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row-1.col0 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col0, +.hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col1, +.hs.row2.col1:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row2.col0:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col0, +.hs.row2.col0:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row2.col0:checked ~ .house.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col4, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col4, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col5, +.hs.row2.col2:checked ~ .house.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col6, +.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5, +.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6, +.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col5, +.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5, +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6, +.hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col6, +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col6, +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6, +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6, +.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col6, +.house.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6, +.house.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .house.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col1, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col1, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row2.col0, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col4, +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col5, +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col5, +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col6, +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > house > .row1.col5, +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .house.row0.col3:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row0.col2:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .house.row0.col2:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row4.col6 { + opacity: 1; +} + +.house.row2.col3:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5, +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col4, +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6, +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5, +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6, +.house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col5, +.hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3, +.hs.row4.col4:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col6 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col6, +.hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col4, +.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col6 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col6 { + opacity: 1; +} + +.hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.house.row3.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row0.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col-1 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col1, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col2, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col1, +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col5, +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1, +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1, +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4, +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col0, +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col1, +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0, +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col1, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col0:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col0, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.house.row2.col3:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row4.col2, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row3.col2, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row3.col1, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row4.col2, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row3.col0, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row4.col1, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row4.col0, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col0, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col0, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col2 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col1 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col0 { + opacity: 0; +} + +.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col1 { + opacity: 0; +} + +.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col2 { + opacity: 0; +} + +.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col3 { + opacity: 0; +} + +.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col0, +.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col1, +.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col2 { + opacity: 0; +} + +.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col3 { + opacity: 0; +} + +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col2, +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col3, +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col1 { + opacity: 0; +} + +.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col0 { + opacity: 0; +} + +.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col0:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col0 { + opacity: 0; +} + +.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col0:checked ~ .hs.row4.col2:checked ~ .house.row4.col3:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row2.col1, +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col1, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} + +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col1, +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} + +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col0, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col0, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} + +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col0, +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col0, +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row0.col0 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row3.col0, +.hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col1, +.hs.row3.col1:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row3.col0:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col0, +.hs.row3.col0:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col0:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col1, +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col0:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col4, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col5, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col6, +.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5, +.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6, +.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col5, +.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col6 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col5, +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col6, +.hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row4.col6, +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6, +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row3.col6, +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6, +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col6 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6, +.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6, +.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6, +.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row4.col1, +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col1, +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row4.col0 { + opacity: 0; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row3.col0, +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > shed > .row5.col0 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col4, +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ div > div > shed > .row2.col5, +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col5, +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ div > div > shed > .row4.col6, +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col5, +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row5.col6 { + opacity: 0; +} + +.house.row3.col3:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col5, +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row4.col4, +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col6, +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row4.col5, +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row4.col6, +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row4.col5, +.hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col4 { + opacity: 0; +} + +.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col3, +.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col5 { + opacity: 0; +} + +.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row5.col6 { + opacity: 0; +} + +.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row4.col6 { + opacity: 0; +} + +.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col4:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row4.col6, +.hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col5 { + opacity: 0; +} + +.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col4, +.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col6 { + opacity: 0; +} + +.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col3 { + opacity: 0; +} + +.hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row5.col6 { + opacity: 0; +} + +.hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row5.col5 { + opacity: 0; +} + +.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row5.col4 { + opacity: 0; +} + +.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row5.col3 { + opacity: 0; +} + +.house.row4.col3:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row1.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col-1 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col1, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col2, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col6, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col1, +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col5, +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1, +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1, +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4, +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row3.col0, +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col1, +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col0, +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col1, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col0, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.house.row2.col3:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row4.col2, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row3.col2, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row3.col1, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row4.col2, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row3.col0, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row4.col1, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row4.col0, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col0, +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col0, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col2 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col1 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col0 { + opacity: 1; +} + +.hs.row5.col0:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col1 { + opacity: 1; +} + +.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col2 { + opacity: 1; +} + +.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col3 { + opacity: 1; +} + +.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col0, +.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col1, +.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col2 { + opacity: 1; +} + +.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col3 { + opacity: 1; +} + +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col2, +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col3, +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col1 { + opacity: 1; +} + +.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col0 { + opacity: 1; +} + +.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col0:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col0 { + opacity: 1; +} + +.hs.row5.col0:checked ~ .hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col0:checked ~ .hs.row4.col2:checked ~ .house.row4.col3:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ div > div > house > .row2.col1, +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} + +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col1, +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} + +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6, +.house.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col0, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col0, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} + +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col0, +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col0, +.house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row0.col3:checked ~ .hs.row1.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row0.col0 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row3.col0, +.hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row3.col0:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col1, +.hs.row3.col1:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row3.col0:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col0, +.hs.row3.col0:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col0:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col1, +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row3.col0:checked ~ .house.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col4, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col5, +.hs.row3.col2:checked ~ .house.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col6, +.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5, +.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6, +.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col5, +.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col6 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col5, +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col6, +.hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row4.col6, +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6, +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ div > div > house > .row3.col6, +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6, +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col6 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6, +.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6, +.house.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6, +.house.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .house.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row4.col1, +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col1, +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row4.col0 { + opacity: 1; +} + +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row3.col0, +.hs.row4.col0:checked ~ .hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col3:checked ~ div > div > house > .row5.col0 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col4, +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ div > div > house > .row2.col5, +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col5, +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col3:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ div > div > house > .row4.col6, +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col3:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col5, +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row1.col2:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .house.row1.col2:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row5.col6 { + opacity: 1; +} + +.house.row3.col3:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col5, +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row4.col4, +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row3.col6, +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row4.col5, +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row4.col6, +.house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row4.col5, +.hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col4 { + opacity: 1; +} + +.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col3, +.hs.row5.col4:checked ~ .hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col5 { + opacity: 1; +} + +.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row5.col6 { + opacity: 1; +} + +.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col4:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row4.col6 { + opacity: 1; +} + +.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col4:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row4.col6, +.hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col5 { + opacity: 1; +} + +.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col4, +.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col6 { + opacity: 1; +} + +.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col3 { + opacity: 1; +} + +.hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row5.col6 { + opacity: 1; +} + +.hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row5.col5 { + opacity: 1; +} + +.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row5.col4 { + opacity: 1; +} + +.hs.row5.col4:checked ~ .hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row5.col3 { + opacity: 1; +} + +.house.row4.col3:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row1.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col-1 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col1, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col2, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row3.col6, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col1, +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col5, +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col1, +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1, +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4, +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col0:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row3.col0, +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col1, +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col0, +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col1, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col0:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col0, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col0:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5, +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.house.row0.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col3, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col3, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col2, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col3, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col1, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col2, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col1, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col1, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col1, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col1, +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col2, +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col3, +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col4, +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col3, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col2, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} + +.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-2.col2:checked ~ div > div > shed > .row-2.col2, +.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-2.col2:checked ~ div > div > shed > .row-2.col1 { + opacity: 0; +} + +.house.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-2.col6:checked ~ div > div > shed > .row-2.col7, +.house.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-2.col6:checked ~ div > div > shed > .row-2.col6 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col1, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col1, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-2.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col1, +.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-2.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col1, +.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-2.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-2.col1 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col1, +.hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col2, +.hs.row1.col2:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.hs.row1.col1:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col1, +.hs.row1.col1:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col2, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col5, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col5, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col6, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col7, +.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6, +.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col7, +.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col6, +.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} + +.hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col6, +.hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col7, +.hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col7, +.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7, +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} + +.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row1.col7, +.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} + +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col7, +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} + +.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} + +.hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col7, +.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col7, +.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col7, +.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col2, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col2, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col1, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col4:checked ~ div > div > shed > .row2.col5, +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col4:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > shed > .row0.col6, +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > shed > .row2.col6, +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ div > div > shed > .row2.col7, +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row0.col6, +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row-1.col7 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .house.row-1.col4:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col7 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ .house.row-1.col4:checked ~ div > div > shed > .row-1.col7 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} + +.hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row-1.col7 { + opacity: 0; +} +.hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} + +.house.row1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5, +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7, +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6, +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7, +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} + +.hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col6, +.hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col4, +.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} + +.hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col7, +.hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5, +.hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} + +.hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.house.row2.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col0 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col2, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col3, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col4, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row-1.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col7, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row-1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row-1.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row-1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col7, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row-1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col2, +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col6, +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2, +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2, +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row0.col5, +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col1, +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row-1.col2, +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1, +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row0.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row-1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col2, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col1, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row-1.col4 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col5 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col3 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col3:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col2 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.house.row0.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col3, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col3, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col2, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col3, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col1, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col2, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col1, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col1, +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col1, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col1, +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col2, +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col3, +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col4, +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col3, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col2, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} + +.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-2.col2:checked ~ div > div > house > .row-2.col2, +.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-2.col2:checked ~ div > div > house > .row-2.col1 { + opacity: 1; +} + +.house.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-2.col6:checked ~ div > div > house > .row-2.col7, +.house.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-2.col6:checked ~ div > div > house > .row-2.col6 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col1, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col1, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-2.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col1, +.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-2.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col1, +.house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-2.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-2.col1 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col1, +.hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col2, +.hs.row1.col2:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.hs.row1.col1:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col1, +.hs.row1.col1:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col2, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row1.col1:checked ~ .house.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col5, +.hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col5, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} + +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col6, +.hs.row1.col3:checked ~ .house.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col7, +.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6, +.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col7, +.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col6, +.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} + +.hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col6, +.hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col7, +.hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col7, +.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7, +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} + +.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ div > div > house > .row1.col7, +.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} + +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col7, +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} + +.hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} + +.hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col7, +.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col7, +.house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col7, +.house.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .house.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col2, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col2, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col1, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col4:checked ~ div > div > house > .row2.col5, +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .house.row0.col4:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > house > .row0.col6, +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > house > .row2.col6, +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ div > div > house > .row2.col7, +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > house > .row0.col6, +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .house.row-1.col4:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .house.row-1.col4:checked ~ div > div > house > .row-1.col7 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .house.row-1.col4:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col7 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ .house.row-1.col4:checked ~ div > div > house > .row-1.col7 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col3:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col3:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .house.row-1.col3:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .house.row-1.col3:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} + +.hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row-1.col7 { + opacity: 1; +} +.hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .house.row-1.col4:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} + +.house.row1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5, +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7, +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6, +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7, +.house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} + +.hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col6, +.hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col4, +.hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} + +.hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col7, +.hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5, +.hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} + +.hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.house.row2.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col0 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col2, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col3, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col4, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row-1.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col7, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row-1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row-1.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row-1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col7, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ div > div > house > .row-1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2, +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col6, +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2, +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2, +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row0.col5, +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col1, +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ div > div > house > .row-1.col2, +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1, +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row0.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row-1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col2, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col1:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col1, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row-1.col4 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col6, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col7:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col5 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col5:checked ~ .hs.row-1.col6:checked ~ .hs.row-1.col7:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col3 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row-1.col3:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col2 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col2:checked ~ .hs.row-1.col3:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col4:checked ~ .hs.row-1.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.house.row1.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col3, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row2.col3, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row2.col2, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col3, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row2.col1, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col2, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col1, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col1, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col1, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col1, +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col2, +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col3, +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col4, +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col2, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col2, +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} + +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col7, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > shed > .row-1.col6 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col1, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col1, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col1, +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col1, +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row-1.col1 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col1, +.hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col2, +.hs.row2.col2:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row2.col1:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col1, +.hs.row2.col1:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col5, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col5, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col6, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col7, +.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6, +.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7, +.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col6, +.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} + +.hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col6, +.hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col7, +.hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col7, +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7, +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row2.col7, +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} + +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7, +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col7, +.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col7, +.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col7, +.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col2, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col2, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row2.col1, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col5, +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col6, +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col6, +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col7, +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > shed > .row1.col6, +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} + +.hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} +.hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row4.col7 { + opacity: 0; +} + +.house.row2.col4:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6, +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col5, +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col7, +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6, +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row3.col7, +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} + +.hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col6, +.hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col4, +.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col6 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col7 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} + +.hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col7, +.hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col6 { + opacity: 0; +} + +.hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col5, +.hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col7 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col7 { + opacity: 0; +} + +.hs.row4.col7:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col6 { + opacity: 0; +} + +.hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col4 { + opacity: 0; +} + +.house.row3.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col0 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col2, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col3, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col4, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col7, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col2, +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col6, +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2, +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2, +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row1.col5, +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col1, +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row0.col2, +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1, +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row1.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col2, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col1, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row0.col4 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col5 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col3 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col3:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col2 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} + +.house.row1.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col3, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row2.col3, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row2.col2, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col3, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row2.col1, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col2, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col1, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col1, +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col1, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col1, +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col2, +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col3, +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col4, +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col2, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col2, +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row-1.col2:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} + +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col7, +.house.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row-1.col6:checked ~ div > div > house > .row-1.col6 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col1, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col1, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col1, +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col1, +.house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row-1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row-1.col1 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col1, +.hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col2, +.hs.row2.col2:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row2.col1:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col1, +.hs.row2.col1:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row2.col1:checked ~ .house.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col5, +.hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col5, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} + +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col6, +.hs.row2.col3:checked ~ .house.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col7, +.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6, +.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7, +.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col6, +.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} + +.hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col6, +.hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col7, +.hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col7, +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7, +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ div > div > house > .row2.col7, +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} + +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7, +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col7, +.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col7, +.house.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col7, +.house.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row2.col2:checked ~ .house.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col2, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col2, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row2.col1, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row2.col3:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col5, +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col6, +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col6, +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col7, +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > house > .row1.col6, +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .house.row0.col4:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ .hs.row0.col7:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .house.row0.col4:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .house.row0.col3:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .house.row0.col3:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} + +.hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} +.hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .house.row0.col4:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row4.col7 { + opacity: 1; +} + +.house.row2.col4:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6, +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col5, +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col7, +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6, +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row3.col7, +.house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} + +.hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col6, +.hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col4, +.hs.row4.col5:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col6 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col7 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} + +.hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col7, +.hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col6 { + opacity: 1; +} + +.hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col5, +.hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col7 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col7 { + opacity: 1; +} + +.hs.row4.col7:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col6 { + opacity: 1; +} + +.hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col4 { + opacity: 1; +} + +.house.row3.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row0.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col0 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col2, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col3, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col4, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col7, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ .hs.row0.col7:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col6:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col2, +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col6, +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col5:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2, +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2, +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row1.col5, +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col1, +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ div > div > house > .row0.col2, +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1, +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col7:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row1.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row0.col1:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col1, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row0.col4 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col6, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col7:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col5 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col5:checked ~ .hs.row0.col6:checked ~ .hs.row0.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col3 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ .hs.row0.col3:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col2 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col2:checked ~ .hs.row0.col3:checked ~ .hs.row0.col4:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col4:checked ~ .hs.row0.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} + +.house.row2.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row4.col3, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row3.col3, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row3.col2, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row4.col3, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row3.col1, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row4.col2, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row4.col1, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col1, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col1, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col3 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col2 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col1 { + opacity: 0; +} + +.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col2 { + opacity: 0; +} + +.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col3 { + opacity: 0; +} + +.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col4 { + opacity: 0; +} + +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col1, +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col2, +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col3 { + opacity: 0; +} + +.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col4 { + opacity: 0; +} + +.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col3, +.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col4, +.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col2 { + opacity: 0; +} + +.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col1 { + opacity: 0; +} + +.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col1:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col1 { + opacity: 0; +} + +.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col1:checked ~ .hs.row4.col3:checked ~ .house.row4.col4:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row2.col2, +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col2, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} + +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col2, +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col7, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > shed > .row0.col6 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col1, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col1, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} + +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col1, +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col1, +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row0.col1 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row3.col1, +.hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col2, +.hs.row3.col2:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col2 { + opacity: 0; +} + +.hs.row3.col1:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col1, +.hs.row3.col1:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col1:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col2, +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col1:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col5, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col5, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col6, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col7, +.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6, +.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col6 { + opacity: 0; +} + +.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row3.col7, +.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row3.col6, +.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col7 { + opacity: 0; +} + +.hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col6, +.hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col7, +.hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row4.col7, +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row4.col6 { + opacity: 0; +} + +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col7, +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row3.col7, +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} + +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row3.col7, +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col7 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col6 { + opacity: 0; +} + +.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col7, +.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col7, +.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col7, +.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row4.col3 { + opacity: 0; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row4.col2, +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col2, +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row4.col1 { + opacity: 0; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row3.col1, +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > shed > .row5.col1 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col5, +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ div > div > shed > .row2.col6, +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col6, +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ div > div > shed > .row4.col7, +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col6, +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} + +.hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row5.col7 { + opacity: 0; +} + +.house.row3.col4:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col6, +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row4.col5, +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row3.col7, +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row4.col6, +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row4.col7, +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} + +.hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row4.col6, +.hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col5 { + opacity: 0; +} + +.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col4, +.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col6 { + opacity: 0; +} + +.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row5.col7 { + opacity: 0; +} + +.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row5.col7:checked ~ .hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row4.col7 { + opacity: 0; +} + +.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row5.col7:checked ~ .hs.row4.col5:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} + +.hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row4.col7, +.hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row5.col6 { + opacity: 0; +} + +.hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row5.col5, +.hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row5.col7 { + opacity: 0; +} + +.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row5.col4 { + opacity: 0; +} + +.hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row5.col7 { + opacity: 0; +} + +.hs.row5.col7:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row5.col6 { + opacity: 0; +} + +.hs.row5.col6:checked ~ .hs.row5.col7:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row5.col5 { + opacity: 0; +} + +.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row5.col7:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row5.col4 { + opacity: 0; +} + +.house.row4.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col2 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row1.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col0 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col5 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row3.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col2, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row4.col5 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col3, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col4, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row3.col7, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col3 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col2, +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col6, +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row2.col2, +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2, +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row2.col5, +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row3.col1, +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col2 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row1.col2, +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col1, +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col5 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row2.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row2.col7, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row4.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row2.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row4.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > shed > .row3.col6 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col3 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col2, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row2.col1 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row3.col1 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row2.col1, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > shed > .row1.col4 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row2.col7:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row3.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col5 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > shed > .row1.col6 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row1.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > shed > .row2.col6 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > shed > .row2.col7 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col3 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col3:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col2 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row1.col1 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row2.col4 { + opacity: 0; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > shed > .row3.col4 { + opacity: 0; +} + +.house.row2.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row4.col3, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row3.col3, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row3.col2, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row4.col3, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row3.col1, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row4.col2, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row4.col1, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col1, +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col1, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col3 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col2 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col1 { + opacity: 1; +} + +.hs.row5.col1:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col2 { + opacity: 1; +} + +.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col3 { + opacity: 1; +} + +.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col4 { + opacity: 1; +} + +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col1, +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col2, +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col3 { + opacity: 1; +} + +.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col4 { + opacity: 1; +} + +.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col3, +.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col4, +.hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col2 { + opacity: 1; +} + +.hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col1 { + opacity: 1; +} + +.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col1:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row5.col2:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col1 { + opacity: 1; +} + +.hs.row5.col1:checked ~ .hs.row5.col2:checked ~ .hs.row5.col3:checked ~ .hs.row4.col1:checked ~ .hs.row4.col3:checked ~ .house.row4.col4:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ div > div > house > .row2.col2, +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col2, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} + +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col2, +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row0.col2:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col7, +.house.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row0.col6:checked ~ div > div > house > .row0.col6 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col1, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col1, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} + +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col1, +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col1, +.house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row0.col4:checked ~ .hs.row1.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row0.col1 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row3.col1, +.hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row3.col1:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col2, +.hs.row3.col2:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col2 { + opacity: 1; +} + +.hs.row3.col1:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col1, +.hs.row3.col1:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col1:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col2, +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row3.col1:checked ~ .house.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col5, +.hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col5, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col6, +.hs.row3.col3:checked ~ .house.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col7, +.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6, +.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col6 { + opacity: 1; +} + +.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row3.col7, +.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row3.col6, +.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col7 { + opacity: 1; +} + +.hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col6, +.hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col7, +.hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row4.col7, +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row4.col6 { + opacity: 1; +} + +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col7, +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ div > div > house > .row3.col7, +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} + +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row3.col7, +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col7 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .hs.row4.col6:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col7:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col6 { + opacity: 1; +} + +.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col7, +.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col7, +.house.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col7, +.house.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row3.col2:checked ~ .house.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row4.col3 { + opacity: 1; +} + +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row4.col2, +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col2, +.hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row4.col1 { + opacity: 1; +} + +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row3.col1, +.hs.row4.col1:checked ~ .hs.row4.col2:checked ~ .hs.row4.col3:checked ~ .hs.row3.col3:checked ~ .house.row3.col4:checked ~ div > div > house > .row5.col1 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col5, +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ div > div > house > .row2.col6, +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col6, +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .house.row2.col4:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ div > div > house > .row4.col7, +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .house.row2.col4:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col6, +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ .hs.row1.col7:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .house.row1.col4:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .house.row1.col3:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} + +.hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .house.row1.col3:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} + +.hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .house.row1.col4:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row5.col7 { + opacity: 1; +} + +.house.row3.col4:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row3.col6, +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row4.col5, +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row3.col7, +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row4.col6, +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > house > .row4.col7, +.house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} + +.hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row4.col6, +.hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col5 { + opacity: 1; +} + +.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col4, +.hs.row5.col5:checked ~ .hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col6 { + opacity: 1; +} + +.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row5.col7 { + opacity: 1; +} + +.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row5.col7:checked ~ .hs.row4.col5:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row4.col7 { + opacity: 1; +} + +.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row5.col7:checked ~ .hs.row4.col5:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} + +.hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row4.col7, +.hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row5.col6 { + opacity: 1; +} + +.hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row5.col5, +.hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row5.col7 { + opacity: 1; +} + +.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row4.col6:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row5.col4 { + opacity: 1; +} + +.hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > house > .row5.col7 { + opacity: 1; +} + +.hs.row5.col7:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > house > .row5.col6 { + opacity: 1; +} + +.hs.row5.col6:checked ~ .hs.row5.col7:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > house > .row5.col5 { + opacity: 1; +} + +.hs.row5.col5:checked ~ .hs.row5.col6:checked ~ .hs.row5.col7:checked ~ .hs.row4.col7:checked ~ .house.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > house > .row5.col4 { + opacity: 1; +} + +.house.row4.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col2 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row1.col2:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col0 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col5 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row3.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col2, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ div > div > house > .row4.col5 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col3, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col4, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row3.col7, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col5:checked ~ .hs.row3.col6:checked ~ .hs.row3.col7:checked ~ .hs.row2.col7:checked ~ .hs.row1.col7:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col3 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col6:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col2, +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col6, +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col5:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ div > div > house > .row2.col2, +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2, +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row2.col5, +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col1:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row3.col1, +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col2 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ div > div > house > .row1.col2, +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col1, +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col2:checked ~ .hs.row3.col3:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row3.col7:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col5 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row2.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col7:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row2.col7, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row4.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row2.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row4.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ div > div > house > .row3.col6 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col5:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col3 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col2, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row2.col1 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ .hs.row1.col1:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ div > div > house > .row3.col1 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row2.col1, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col1:checked ~ .hs.row2.col2:checked ~ .hs.row2.col3:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ div > div > house > .row1.col4 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col6, +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row2.col7:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col6:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row3.col6:checked ~ .hs.row2.col6:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col7:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row3.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col5 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ div > div > house > .row1.col6 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row1.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ div > div > house > .row2.col6 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col5:checked ~ .hs.row1.col6:checked ~ .hs.row1.col7:checked ~ div > div > house > .row2.col7 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col3 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ .hs.row1.col3:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col2 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col2:checked ~ .hs.row1.col3:checked ~ .hs.row1.col4:checked ~ div > div > house > .row1.col1 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row2.col4 { + opacity: 1; +} +.house.row4.col4:checked ~ .hs.row3.col4:checked ~ .hs.row2.col4:checked ~ .hs.row2.col4:checked ~ .hs.row1.col4:checked ~ div > div > house > .row3.col4 { + opacity: 1; +} + +.hs.row1.col1:checked ~ div > div > house > .row1.col1.col4 > i:nth-of-type(4) { + background: #ff7700; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; +} +.hs.row1.col1:checked ~ div > div > house > .row1.col1.col4 > i:nth-of-type(4):after, .hs.row1.col1:checked ~ div > div > house > .row1.col1.col4 > i:nth-of-type(4):before { + background: #20112a; +} + +.hs.row1.col2:checked ~ div > div > house > .row1.col2.col4 > i:nth-of-type(4) { + background: #ff7700; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; +} +.hs.row1.col2:checked ~ div > div > house > .row1.col2.col4 > i:nth-of-type(4):after, .hs.row1.col2:checked ~ div > div > house > .row1.col2.col4 > i:nth-of-type(4):before { + background: #20112a; +} + +.hs.row1.col3:checked ~ div > div > house > .row1.col3.col2 > i:nth-of-type(4) { + background: #ff7700; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; +} +.hs.row1.col3:checked ~ div > div > house > .row1.col3.col2 > i:nth-of-type(4):after, .hs.row1.col3:checked ~ div > div > house > .row1.col3.col2 > i:nth-of-type(4):before { + background: #20112a; +} + +.hs.row1.col4:checked ~ div > div > house > .row1.col4.col4 > i:nth-of-type(4) { + background: #ff7700; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; +} +.hs.row1.col4:checked ~ div > div > house > .row1.col4.col4 > i:nth-of-type(4):after, .hs.row1.col4:checked ~ div > div > house > .row1.col4.col4 > i:nth-of-type(4):before { + background: #20112a; +} + +.hs.row2.col1:checked ~ div > div > house > .row2.col1.col4 > i:nth-of-type(4) { + background: #ff7700; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; +} +.hs.row2.col1:checked ~ div > div > house > .row2.col1.col4 > i:nth-of-type(4):after, .hs.row2.col1:checked ~ div > div > house > .row2.col1.col4 > i:nth-of-type(4):before { + background: #20112a; +} + +.hs.row2.col2:checked ~ div > div > house > .row2.col2.col1 > i:nth-of-type(4) { + background: #ff7700; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; +} +.hs.row2.col2:checked ~ div > div > house > .row2.col2.col1 > i:nth-of-type(4):after, .hs.row2.col2:checked ~ div > div > house > .row2.col2.col1 > i:nth-of-type(4):before { + background: #20112a; +} + +.hs.row2.col3:checked ~ div > div > house > .row2.col3.col3 > i:nth-of-type(4) { + background: #ff7700; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; +} +.hs.row2.col3:checked ~ div > div > house > .row2.col3.col3 > i:nth-of-type(4):after, .hs.row2.col3:checked ~ div > div > house > .row2.col3.col3 > i:nth-of-type(4):before { + background: #20112a; +} + +.hs.row2.col4:checked ~ div > div > house > .row2.col4.col4 > i:nth-of-type(4) { + background: #ff7700; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; +} +.hs.row2.col4:checked ~ div > div > house > .row2.col4.col4 > i:nth-of-type(4):after, .hs.row2.col4:checked ~ div > div > house > .row2.col4.col4 > i:nth-of-type(4):before { + background: #20112a; +} + +.hs.row3.col1:checked ~ div > div > house > .row3.col1.col4 > i:nth-of-type(4) { + background: #ff7700; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; +} +.hs.row3.col1:checked ~ div > div > house > .row3.col1.col4 > i:nth-of-type(4):after, .hs.row3.col1:checked ~ div > div > house > .row3.col1.col4 > i:nth-of-type(4):before { + background: #20112a; +} + +.hs.row3.col2:checked ~ div > div > house > .row3.col2.col1 > i:nth-of-type(4) { + background: #ff7700; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; +} +.hs.row3.col2:checked ~ div > div > house > .row3.col2.col1 > i:nth-of-type(4):after, .hs.row3.col2:checked ~ div > div > house > .row3.col2.col1 > i:nth-of-type(4):before { + background: #20112a; +} + +.hs.row3.col3:checked ~ div > div > house > .row3.col3.col2 > i:nth-of-type(4) { + background: #ff7700; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; +} +.hs.row3.col3:checked ~ div > div > house > .row3.col3.col2 > i:nth-of-type(4):after, .hs.row3.col3:checked ~ div > div > house > .row3.col3.col2 > i:nth-of-type(4):before { + background: #20112a; +} + +.hs.row3.col4:checked ~ div > div > house > .row3.col4.col3 > i:nth-of-type(4) { + background: #ff7700; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; +} +.hs.row3.col4:checked ~ div > div > house > .row3.col4.col3 > i:nth-of-type(4):after, .hs.row3.col4:checked ~ div > div > house > .row3.col4.col3 > i:nth-of-type(4):before { + background: #20112a; +} + +.hs.row4.col1:checked ~ div > div > house > .row4.col1.col3 > i:nth-of-type(4) { + background: #ff7700; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; +} +.hs.row4.col1:checked ~ div > div > house > .row4.col1.col3 > i:nth-of-type(4):after, .hs.row4.col1:checked ~ div > div > house > .row4.col1.col3 > i:nth-of-type(4):before { + background: #20112a; +} + +.hs.row4.col2:checked ~ div > div > house > .row4.col2.col2 > i:nth-of-type(4) { + background: #ff7700; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; +} +.hs.row4.col2:checked ~ div > div > house > .row4.col2.col2 > i:nth-of-type(4):after, .hs.row4.col2:checked ~ div > div > house > .row4.col2.col2 > i:nth-of-type(4):before { + background: #20112a; +} + +.hs.row4.col3:checked ~ div > div > house > .row4.col3.col2 > i:nth-of-type(4) { + background: #ff7700; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; +} +.hs.row4.col3:checked ~ div > div > house > .row4.col3.col2 > i:nth-of-type(4):after, .hs.row4.col3:checked ~ div > div > house > .row4.col3.col2 > i:nth-of-type(4):before { + background: #20112a; +} + +.hs.row4.col4:checked ~ div > div > house > .row4.col4.col3 > i:nth-of-type(4) { + background: #ff7700; + box-shadow: inset 0 0 0 0.5rem rgba(79, 1, 14, 0.3), inset 0 0 0.5rem rgba(79, 1, 14, 0.9), inset 0 0 0 0.5rem #20112a, inset 0 0 1rem 1rem rgba(79, 1, 14, 0.9), inset 1rem 0 0 #bc502f, inset -1.25rem 0 0 #bc502f, inset 0 -2rem 0 yellow, inset 0 -3.5rem 0 #ffa200, 0 0 2rem yellow; +} +.hs.row4.col4:checked ~ div > div > house > .row4.col4.col3 > i:nth-of-type(4):after, .hs.row4.col4:checked ~ div > div > house > .row4.col4.col3 > i:nth-of-type(4):before { + background: #20112a; +} + +.lh { + pointer-events: none; + perspective: 30rem; + perspective-origin: 50% -5rem; + transform: translate3d(0, 0, -100rem) scale(0); + opacity: 0; +} + +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh { + transform: translate3d(0, 0, -100rem) scale(1); + /* animation: lightson $timer linear infinite;*/ +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh light { + top: -12rem; + left: -6.25rem; + transform: scaleX(3) rotateY(0); + /* animation: light 8s linear infinite;*/ + filter: blur(0.1rem); + opacity: 0.5; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh light, .hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh light:before, .hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh light:after { + background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 244, 102, 0.5), rgba(255, 255, 255, 0)); + width: 100%; + height: 5rem; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh light:before { + transform: rotate(15deg) rotateY(-5deg); +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh light:after { + transform: rotate(-15deg) rotateY(5deg); +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh lens { + top: -12rem; + left: -6.25rem; + width: 100%; + height: 5rem; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh lens:before, .hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh lens:after { + height: 5rem; + border-radius: 50%; + right: 0; + margin: auto; +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh lens:before { + background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(252, 246, 165, 0.5), rgba(255, 255, 255, 0)); + width: 100%; + transform: scaleX(3) rotateY(0); + opacity: 0.25; + filter: blur(0.1rem); +} +.hs.house.row4.col1:not(:checked) ~ .hs.house.row4.col2:checked ~ .hs.house.row4.col3:not(:checked) ~ .hs.house.row3.col1:not(:checked) ~ .hs.shed.row3.col2:checked ~ .hs.house.row3.col3:not(:checked) ~ .hs.house.row2.col1:not(:checked) ~ .hs.house.row2.col2:checked ~ .hs.house.row2.col3:not(:checked) ~ .hs.house.row1.col1:not(:checked) ~ .hs.shed.row1.col2:checked ~ .hs.house.row1.col3:not(:checked) ~ div.lh lens:after { + width: 5rem; + background: radial-gradient(#fcf6a5, rgba(255, 255, 255, 0)); + opacity: 0.75; + box-shadow: 60rem 0 15rem #fcf6a5, -60rem 0 15rem #fcf6a5, 0 0 3rem #fcf6a5, inset 0 0 0 #fcf6a5; +} + +div.lh { + animation: lightson 400s linear infinite; +} +div.lh light { + animation: light 8s linear infinite; +} +div.lh lens:before { + animation: light 8s linear infinite; +} +div.lh lens:after { + animation: light2 8s ease-in-out infinite; +} + +@keyframes light { + 100% { + transform: scaleX(3) rotateY(-360deg); + } +} +@keyframes lightson { + 20%, 80% { + opacity: 0; + } + 25%, 75% { + opacity: 1; + } +} +@keyframes light2 { + 22%, 27%, 72%, 77% { + box-shadow: 0rem 0 15rem #fcf6a5, 0rem 0 15rem #fcf6a5, 0 0 3rem #fcf6a5, inset 0 0 0 0 #fcf6a5; + } + 24%, 74% { + box-shadow: 0rem 0 15rem #fcf6a5, 0rem 0 15rem #fcf6a5, 0 0 5rem 40rem rgba(252, 246, 165, 0.25), inset 0 0 0 2.5rem #fcf6a5; + } + 50% { + box-shadow: -60rem 0 15rem #fcf6a5, 60rem 0 15rem #fcf6a5, 0 0 3rem #fcf6a5, inset 0 0 0 0 #fcf6a5; + } +} +#graphics { + top: 1rem; + left: auto; + right: 1rem; + font-family: Telefon, Sans-Serif; + font-size: 1.4rem; + z-index: 1000; + letter-spacing: 0.1rem; + color: #fff; + line-height: 1.5; + max-height: 2.5rem; + overflow: hidden; +} +#graphics label { + display: flex; + align-content: center; + justify-content: flex-end; + gap: 0.5rem; + padding: 0.5rem; + border-radius: 1rem; + cursor: pointer; + transition: box-shadow 0.2s ease-in-out; + box-shadow: 0 0 0 1rem rgba(255, 255, 255, 0), inset 0 0 0 0 rgba(255, 255, 255, 0.2); +} +#graphics label:not(:nth-of-type(1)):hover { + box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2), inset 0 0 0 2rem rgba(255, 255, 255, 0.2); +} +#graphics * { + position: static; +} + +#gfxmenu:checked ~ #graphics { + max-height: 10rem; +} + +#poor:checked ~ colour > div > div > house > label > i:nth-of-type(1), +#poor:checked ~ colour > div > div > shed > label > i:nth-of-type(1), +#poor:checked ~ colour > div > lens, +#poor:checked ~ colour > water:before, +#poor:checked ~ colour water:after { + display: none; +} + +#poor:checked ~ colour > div > div.main { + -webkit-box-reflect: none; +} + +#poor:checked ~ sky > time { + opacity: 0; +} + +#poor:checked ~ text > welldone, +#poor:checked ~ text > gameover { + box-shadow: none; +} + +#good:checked ~ x > [for=good], +#poor:checked ~ x > [for=poor] { + box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1), inset 0 0 0 2rem rgba(255, 255, 255, 0.1); +} +#good:checked ~ x > [for=good]:before, +#poor:checked ~ x > [for=poor]:before { + content: "โœ“"; + position: static; +} + +#poor:checked ~ colour > div > div > shed > label:after, #poor:checked ~ colour > div > div > shed > label *:after, +#poor:checked ~ colour > div > div > house > label:after, +#poor:checked ~ colour > div > div > house > label *:after { + animation: none !important; +} +#poor:checked ~ colour > div > div > shed > label:before, #poor:checked ~ colour > div > div > shed > label *:before, +#poor:checked ~ colour > div > div > house > label:before, +#poor:checked ~ colour > div > div > house > label *:before { + animation: none !important; +} + +[for=gfxmenu]:after { + border-bottom: 0.1rem solid #fff; + border-right: 0.1rem solid #fff; + transform: rotate(45deg) scaleY(1); + position: relative; + width: 0.6rem; + height: 0.6rem; + margin-left: 0.4rem; + top: 0.5rem; + transition: all 0.2s ease-in-out; +} + +#gfxmenu:checked ~ x > [for=gfxmenu]:after { + transform: rotate(-45deg) scaleY(-1); +} + +script { + display: none; } \ No newline at end of file diff --git a/Games/Lights_Out/README.md b/Games/Lights_Out/README.md index 964cad1f53..f173cc4483 100644 --- a/Games/Lights_Out/README.md +++ b/Games/Lights_Out/README.md @@ -1,33 +1,33 @@ -# Lights Out - ---- - -This is a simple implementation of the Lights Out game using HTML, CSS, and JavaScript. - -## Description ๐Ÿ“ƒ - -Lights Out is a puzzle game where the goal is to turn off all the lights on a grid. The grid consists of cells that can be either on or off. When you click on a cell, it toggles the state of that cell as well as its adjacent cells. The objective is to find the correct combination of cell clicks to turn off all the lights on the grid. - -## Functionalities ๐ŸŽฎ - -- The game starts with a grid of lights, where some lights are on and others are off. -- Clicking on a cell toggles the state of that cell and its adjacent cells. -- The game provides feedback on the status of the lights (on or off). -- The game keeps track of the number of moves made. -- The game can be restarted at any time. - -## How to Play? ๐Ÿ•น๏ธ - -1. Start with a grid of lights, where some lights are on and others are off. -2. Click on a cell to toggle the state of that cell and its adjacent cells. -3. The goal is to turn off all the lights on the grid. -4. Keep clicking on cells until all the lights are turned off. -5. The game ends when all the lights are off, and you win. - -## Screenshots ๐Ÿ“ธ - -![image](../../assets/images/Lights_Out.png) - -## Working Video ๐Ÿ“น - - +# Lights Out + +--- + +This is a simple implementation of the Lights Out game using HTML, CSS, and JavaScript. + +## Description ๐Ÿ“ƒ + +Lights Out is a puzzle game where the goal is to turn off all the lights on a grid. The grid consists of cells that can be either on or off. When you click on a cell, it toggles the state of that cell as well as its adjacent cells. The objective is to find the correct combination of cell clicks to turn off all the lights on the grid. + +## Functionalities ๐ŸŽฎ + +- The game starts with a grid of lights, where some lights are on and others are off. +- Clicking on a cell toggles the state of that cell and its adjacent cells. +- The game provides feedback on the status of the lights (on or off). +- The game keeps track of the number of moves made. +- The game can be restarted at any time. + +## How to Play? ๐Ÿ•น๏ธ + +1. Start with a grid of lights, where some lights are on and others are off. +2. Click on a cell to toggle the state of that cell and its adjacent cells. +3. The goal is to turn off all the lights on the grid. +4. Keep clicking on cells until all the lights are turned off. +5. The game ends when all the lights are off, and you win. + +## Screenshots ๐Ÿ“ธ + +![image](../../assets/images/Lights_Out.png) + +## Working Video ๐Ÿ“น + + diff --git a/Games/Lights_Out/index.html b/Games/Lights_Out/index.html index 343acd37a7..89acfc522b 100644 --- a/Games/Lights_Out/index.html +++ b/Games/Lights_Out/index.html @@ -1,89 +1,89 @@ - - - - - - - Lights Out Game - - - - - - - - - -
-

Lights Out

- -
- - -
-

Click Count: 0

- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

How to play:

-

Click on any of them to turn it and the four direct neighboring lights off or on.

-

Win by closing all the lights.

- -
-
-
-
- - - - - - - - + + + + + + + Lights Out Game + + + + + + + + + +
+

Lights Out

+ +
+ + +
+

Click Count: 0

+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

How to play:

+

Click on any of them to turn it and the four direct neighboring lights off or on.

+

Win by closing all the lights.

+ +
+
+
+
+ + + + + + + + diff --git a/Games/Lights_Out/script.js b/Games/Lights_Out/script.js index b2b985e920..1b738939a7 100644 --- a/Games/Lights_Out/script.js +++ b/Games/Lights_Out/script.js @@ -1,198 +1,198 @@ -var count = 0; -var cellArray = []; -var winCont; -var gameSize = 5; // grid size -var cellNeighborArray = []; -var probabilityOfOn = 30; -var cellState; - -function Game() { - // The probability of percentage of on light - - cellArray = document.getElementsByClassName("lightit"); - winCont = document.getElementsByClassName("winner-cont")[0]; - - start(); -} - -function start() { - for (var i = 0, j = cellArray.length; i < j; i++) { - // check for topleft corner - if (i === 0) { - cellNeighborArray[i] = [ - cellArray[i], - cellArray[i + 1], - cellArray[i + gameSize] - ]; - // check for bottomright corner - } else if (i === gameSize * gameSize - 1) { - cellNeighborArray[i] = [ - cellArray[i], - cellArray[i - 1], - cellArray[i - gameSize] - ]; - // check for bottomleft corner - } else if (i === gameSize * gameSize - gameSize) { - cellNeighborArray[i] = [ - cellArray[i], - cellArray[i + 1], - cellArray[i - gameSize] - ]; - // check for topright corner - } else if (i === gameSize - 1) { - cellNeighborArray[i] = [ - cellArray[i], - cellArray[i - 1], - cellArray[i + gameSize] - ]; - // check for left side border - } else if (i % gameSize === 0) { - cellNeighborArray[i] = [ - cellArray[i], - cellArray[i + 1], - cellArray[i - gameSize], - cellArray[i + gameSize] - ]; - // check for right side border - } else if (i % gameSize === gameSize - 1) { - cellNeighborArray[i] = [ - cellArray[i], - cellArray[i - 1], - cellArray[i - gameSize], - cellArray[i + gameSize] - ]; - // check for top border - } else if (i < gameSize) { - cellNeighborArray[i] = [ - cellArray[i], - cellArray[i - 1], - cellArray[i + 1], - cellArray[i + gameSize] - ]; - // check for bottom border - } else if (i >= gameSize * gameSize - gameSize) { - cellNeighborArray[i] = [ - cellArray[i], - cellArray[i - 1], - cellArray[i + 1], - cellArray[i - gameSize] - ]; - // rest of cells - } else { - cellNeighborArray[i] = [ - cellArray[i], - cellArray[i - 1], - cellArray[i + 1], - cellArray[i - gameSize], - cellArray[i + gameSize] - ]; - } - } - for (var ii = 0, jj = cellArray.length; ii < jj; ii++) { - cellState = Math.floor(Math.random() * 100); - if (cellState < probabilityOfOn) { - cellArray[ii].classList.add("light-on"); - } else { - cellArray[ii].classList.remove("light-on"); - } - cellArray[ii].addEventListener("click", lightClick); - } -} - -function resetGame() { - var gameContainer = document.getElementById("container"); - var gameOverScreen = document.getElementById("game-over"); - count = 0; - - // Show game container - gameContainer.style.display = "block"; - - // Hide game over screen - gameOverScreen.style.display = "none"; - var element = document.getElementById("count"); - element.innerHTML = `Click Count: ${count}`; - start(); -} - -function showGameOver() { - var gameContainer = document.getElementById("container"); - var gameOverScreen = document.getElementById("game-over"); - var scoreElement = document.getElementById("score"); - // Hide game container - gameContainer.style.display = "none"; - - // Update score element - scoreElement.textContent = `Score: ${count}`; - count = 0; - // Show game over screen - gameOverScreen.style.display = "block"; - var resetButton = document.getElementById("reset-button"); - resetButton.addEventListener("click", resetGame); -} - -function lightClick() { - this.classList.toggle("light-on"); - for (var iii = 0, jjj = cellNeighborArray.length; iii < jjj; iii++) { - if (this === cellNeighborArray[iii][0]) { - for (var iiii = 1; iiii < cellNeighborArray[iii].length; iiii++) { - cellNeighborArray[iii][iiii].classList.toggle("light-on"); - } - } - } - count++; - var element = document.getElementById("count"); - element.innerHTML = `Click Count: ${count}`; - - if (testWinner()) { - element.innerHTML = `Click Count: ${count}`; - showGameOver(); - } -} - -function testWinner() { - if (document.getElementsByClassName("light-on")[0]) { - return false; - } - return true; -} - -function toggleDarkMode() { - var darkModeToggle = document.getElementById("darkModeToggle"); - var homeIcon = document.querySelector('.home-icon'); - var body = document.body; - if (darkModeToggle.checked) { - body.classList.add("dark-mode"); - homeIcon.style.color = "white"; - } else { - body.classList.remove("dark-mode"); - homeIcon.style.color = "black"; - } -} - -document.addEventListener("DOMContentLoaded", function () { - Game(); - - var darkModeToggle = document.getElementById("darkModeToggle"); - darkModeToggle.addEventListener("change", toggleDarkMode); - - var resetButton = document.getElementById("reset-button"); - resetButton.addEventListener("click", resetGame); - - var resetButtonNow = document.getElementById("reset-button-now"); - resetButtonNow.addEventListener("click", resetGame); -}); - -function resetGame() { - var gameContainer = document.getElementById("container"); - var gameOverScreen = document.getElementById("game-over"); - count = 0; - - // Show game container - gameContainer.style.display = "block"; - - // Hide game over screen - gameOverScreen.style.display = "none"; - var element = document.getElementById("count"); - element.innerHTML = `Click Count: ${count}`; - start(); -} +var count = 0; +var cellArray = []; +var winCont; +var gameSize = 5; // grid size +var cellNeighborArray = []; +var probabilityOfOn = 30; +var cellState; + +function Game() { + // The probability of percentage of on light + + cellArray = document.getElementsByClassName("lightit"); + winCont = document.getElementsByClassName("winner-cont")[0]; + + start(); +} + +function start() { + for (var i = 0, j = cellArray.length; i < j; i++) { + // check for topleft corner + if (i === 0) { + cellNeighborArray[i] = [ + cellArray[i], + cellArray[i + 1], + cellArray[i + gameSize] + ]; + // check for bottomright corner + } else if (i === gameSize * gameSize - 1) { + cellNeighborArray[i] = [ + cellArray[i], + cellArray[i - 1], + cellArray[i - gameSize] + ]; + // check for bottomleft corner + } else if (i === gameSize * gameSize - gameSize) { + cellNeighborArray[i] = [ + cellArray[i], + cellArray[i + 1], + cellArray[i - gameSize] + ]; + // check for topright corner + } else if (i === gameSize - 1) { + cellNeighborArray[i] = [ + cellArray[i], + cellArray[i - 1], + cellArray[i + gameSize] + ]; + // check for left side border + } else if (i % gameSize === 0) { + cellNeighborArray[i] = [ + cellArray[i], + cellArray[i + 1], + cellArray[i - gameSize], + cellArray[i + gameSize] + ]; + // check for right side border + } else if (i % gameSize === gameSize - 1) { + cellNeighborArray[i] = [ + cellArray[i], + cellArray[i - 1], + cellArray[i - gameSize], + cellArray[i + gameSize] + ]; + // check for top border + } else if (i < gameSize) { + cellNeighborArray[i] = [ + cellArray[i], + cellArray[i - 1], + cellArray[i + 1], + cellArray[i + gameSize] + ]; + // check for bottom border + } else if (i >= gameSize * gameSize - gameSize) { + cellNeighborArray[i] = [ + cellArray[i], + cellArray[i - 1], + cellArray[i + 1], + cellArray[i - gameSize] + ]; + // rest of cells + } else { + cellNeighborArray[i] = [ + cellArray[i], + cellArray[i - 1], + cellArray[i + 1], + cellArray[i - gameSize], + cellArray[i + gameSize] + ]; + } + } + for (var ii = 0, jj = cellArray.length; ii < jj; ii++) { + cellState = Math.floor(Math.random() * 100); + if (cellState < probabilityOfOn) { + cellArray[ii].classList.add("light-on"); + } else { + cellArray[ii].classList.remove("light-on"); + } + cellArray[ii].addEventListener("click", lightClick); + } +} + +function resetGame() { + var gameContainer = document.getElementById("container"); + var gameOverScreen = document.getElementById("game-over"); + count = 0; + + // Show game container + gameContainer.style.display = "block"; + + // Hide game over screen + gameOverScreen.style.display = "none"; + var element = document.getElementById("count"); + element.innerHTML = `Click Count: ${count}`; + start(); +} + +function showGameOver() { + var gameContainer = document.getElementById("container"); + var gameOverScreen = document.getElementById("game-over"); + var scoreElement = document.getElementById("score"); + // Hide game container + gameContainer.style.display = "none"; + + // Update score element + scoreElement.textContent = `Score: ${count}`; + count = 0; + // Show game over screen + gameOverScreen.style.display = "block"; + var resetButton = document.getElementById("reset-button"); + resetButton.addEventListener("click", resetGame); +} + +function lightClick() { + this.classList.toggle("light-on"); + for (var iii = 0, jjj = cellNeighborArray.length; iii < jjj; iii++) { + if (this === cellNeighborArray[iii][0]) { + for (var iiii = 1; iiii < cellNeighborArray[iii].length; iiii++) { + cellNeighborArray[iii][iiii].classList.toggle("light-on"); + } + } + } + count++; + var element = document.getElementById("count"); + element.innerHTML = `Click Count: ${count}`; + + if (testWinner()) { + element.innerHTML = `Click Count: ${count}`; + showGameOver(); + } +} + +function testWinner() { + if (document.getElementsByClassName("light-on")[0]) { + return false; + } + return true; +} + +function toggleDarkMode() { + var darkModeToggle = document.getElementById("darkModeToggle"); + var homeIcon = document.querySelector('.home-icon'); + var body = document.body; + if (darkModeToggle.checked) { + body.classList.add("dark-mode"); + homeIcon.style.color = "white"; + } else { + body.classList.remove("dark-mode"); + homeIcon.style.color = "black"; + } +} + +document.addEventListener("DOMContentLoaded", function () { + Game(); + + var darkModeToggle = document.getElementById("darkModeToggle"); + darkModeToggle.addEventListener("change", toggleDarkMode); + + var resetButton = document.getElementById("reset-button"); + resetButton.addEventListener("click", resetGame); + + var resetButtonNow = document.getElementById("reset-button-now"); + resetButtonNow.addEventListener("click", resetGame); +}); + +function resetGame() { + var gameContainer = document.getElementById("container"); + var gameOverScreen = document.getElementById("game-over"); + count = 0; + + // Show game container + gameContainer.style.display = "block"; + + // Hide game over screen + gameOverScreen.style.display = "none"; + var element = document.getElementById("count"); + element.innerHTML = `Click Count: ${count}`; + start(); +} diff --git a/Games/Lights_Out/style.css b/Games/Lights_Out/style.css index 56bb1c5bd2..e978e35005 100644 --- a/Games/Lights_Out/style.css +++ b/Games/Lights_Out/style.css @@ -1,254 +1,254 @@ -.activated { - display: Block; -} - -.hidden { - display: hidden; -} - -body { - background-color: beige; - font-family: 'Open Sans', sans-serif; -} - -.title-header { - font-family: 'VT323', monospace; -} - -#count { - font-size: 16px; - font-weight: bold; - margin-top: 10px; - text-align: center; -} - -@media (max-width: 767px) { - #count { - font-size: 14px; - margin-top: 5px; - } -} - -.lightit { - cursor: pointer; - position: relative; - display: inline-block; - width: 90px; - height: 90px; - margin: 10px; - padding: 0px; - border: none; - border-radius: 10px; - box-shadow: 0px 2px 10px 1px #BBB; - background-color: gray; - transition: background-color .3s; -} - -.lightit:active { - background-color: burlywood; -} - -.light-on:before { - content: "\f0eb"; - font-family: "Font Awesome 5 Free"; - color: #EEE; - font-size: 50px; - position: absolute; - top: 13%; - left: 33%; -} - -.lightit:hover { - box-shadow: - 0px 0px 0px 6px GoldenRod, - 0px 2px 10px 1px #BBB; -} - -.light-on { - background-color: gold; -} - -.light-on:hover { - box-shadow: - 0px 0px 0px 6px dimGrey, - 0px 2px 10px 1px #BBB; -} - -.how-to { - margin-top: 15px; - background-color: ghostWhite; -} - -.game-cont { - position: relative; - padding-top: 5px; -} - -.winner-cont { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - display: none; - background-color: rgba(0, 0, 0, 0.3); -} - -/* Add CSS styles for dark mode */ -body.dark-mode { - background-color: #222; - color: #fff; -} - -.dark-mode-toggle { - position: absolute; - top: 10px; - right: 10px; - z-index: 999; - display: flex; - align-items: center; - justify-content: flex-end; - font-size: 14px; - color: #222; -} - -.dark-mode-toggle label { - margin-left: 5px; - color: #222; -} - -.dark-mode label { - color: #fff; -} - -.dark-mode-toggle input[type="checkbox"] { - display: none; -} - -.dark-mode-toggle input[type="checkbox"]+label:before { - content: "\f185"; - font-family: "Font Awesome 5 Free"; - font-weight: 900; - font-size: 20px; -} - -.dark-mode-toggle input[type="checkbox"]:checked+label:before { - content: "\f186"; -} - -/* Additional styles for dark mode */ -.title-header, -.how-to { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; -} - -.how-to { - padding: 1.2rem; -} - -.how-to h3, -.how-to p { - color: #fff; -} - -.well.how-to { - background-color: #333; - color: #fff; - border-radius: 8px; - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.9); -} - -.winner-msg { - padding-top: 230px; - text-align: center; - color: #EEE; -} - -/* Media Queries */ - -@media (max-width: 767px) { - .lightit { - width: 60px; - height: 60px; - } - - .lightit:before { - font-size: 30px; - top: 20%; - left: 30%; - } - - .winner-msg { - padding-top: 150px; - } - - .title-header { - font-size: 24px; - } - - .how-to { - margin-top: 10px; - } -} - -@media (max-width: 1200px) { - .lightit { - width: 50px; - height: 50px; - } - - .lightit:before { - font-size: 25px; - top: 15%; - left: 28%; - } - - .winner-msg { - padding-top: 100px; - } - - .title-header { - font-size: 20px; - } - - .how-to { - margin-top: 5px; - } -} - -#reset-button { - display: block; - margin: 20px auto; - padding: 10px 20px; - font-size: 18px; - font-weight: bold; - color: #fff; - background-color: #007bff; - border: none; - border-radius: 5px; - cursor: pointer; -} - -#reset-button:hover { - background-color: #0056b3; -} - -#reset-button-now { - display: block; - margin: 20px auto; - padding: 10px 20px; - font-size: 18px; - font-weight: bold; - color: #fff; - background-color: #007bff; - border: none; - border-radius: 5px; - cursor: pointer; -} - -#reset-button-now:hover { - background-color: #0056b3; +.activated { + display: Block; +} + +.hidden { + display: hidden; +} + +body { + background-color: beige; + font-family: 'Open Sans', sans-serif; +} + +.title-header { + font-family: 'VT323', monospace; +} + +#count { + font-size: 16px; + font-weight: bold; + margin-top: 10px; + text-align: center; +} + +@media (max-width: 767px) { + #count { + font-size: 14px; + margin-top: 5px; + } +} + +.lightit { + cursor: pointer; + position: relative; + display: inline-block; + width: 90px; + height: 90px; + margin: 10px; + padding: 0px; + border: none; + border-radius: 10px; + box-shadow: 0px 2px 10px 1px #BBB; + background-color: gray; + transition: background-color .3s; +} + +.lightit:active { + background-color: burlywood; +} + +.light-on:before { + content: "\f0eb"; + font-family: "Font Awesome 5 Free"; + color: #EEE; + font-size: 50px; + position: absolute; + top: 13%; + left: 33%; +} + +.lightit:hover { + box-shadow: + 0px 0px 0px 6px GoldenRod, + 0px 2px 10px 1px #BBB; +} + +.light-on { + background-color: gold; +} + +.light-on:hover { + box-shadow: + 0px 0px 0px 6px dimGrey, + 0px 2px 10px 1px #BBB; +} + +.how-to { + margin-top: 15px; + background-color: ghostWhite; +} + +.game-cont { + position: relative; + padding-top: 5px; +} + +.winner-cont { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + display: none; + background-color: rgba(0, 0, 0, 0.3); +} + +/* Add CSS styles for dark mode */ +body.dark-mode { + background-color: #222; + color: #fff; +} + +.dark-mode-toggle { + position: absolute; + top: 10px; + right: 10px; + z-index: 999; + display: flex; + align-items: center; + justify-content: flex-end; + font-size: 14px; + color: #222; +} + +.dark-mode-toggle label { + margin-left: 5px; + color: #222; +} + +.dark-mode label { + color: #fff; +} + +.dark-mode-toggle input[type="checkbox"] { + display: none; +} + +.dark-mode-toggle input[type="checkbox"]+label:before { + content: "\f185"; + font-family: "Font Awesome 5 Free"; + font-weight: 900; + font-size: 20px; +} + +.dark-mode-toggle input[type="checkbox"]:checked+label:before { + content: "\f186"; +} + +/* Additional styles for dark mode */ +.title-header, +.how-to { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} + +.how-to { + padding: 1.2rem; +} + +.how-to h3, +.how-to p { + color: #fff; +} + +.well.how-to { + background-color: #333; + color: #fff; + border-radius: 8px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.9); +} + +.winner-msg { + padding-top: 230px; + text-align: center; + color: #EEE; +} + +/* Media Queries */ + +@media (max-width: 767px) { + .lightit { + width: 60px; + height: 60px; + } + + .lightit:before { + font-size: 30px; + top: 20%; + left: 30%; + } + + .winner-msg { + padding-top: 150px; + } + + .title-header { + font-size: 24px; + } + + .how-to { + margin-top: 10px; + } +} + +@media (max-width: 1200px) { + .lightit { + width: 50px; + height: 50px; + } + + .lightit:before { + font-size: 25px; + top: 15%; + left: 28%; + } + + .winner-msg { + padding-top: 100px; + } + + .title-header { + font-size: 20px; + } + + .how-to { + margin-top: 5px; + } +} + +#reset-button { + display: block; + margin: 20px auto; + padding: 10px 20px; + font-size: 18px; + font-weight: bold; + color: #fff; + background-color: #007bff; + border: none; + border-radius: 5px; + cursor: pointer; +} + +#reset-button:hover { + background-color: #0056b3; +} + +#reset-button-now { + display: block; + margin: 20px auto; + padding: 10px 20px; + font-size: 18px; + font-weight: bold; + color: #fff; + background-color: #007bff; + border: none; + border-radius: 5px; + cursor: pointer; +} + +#reset-button-now:hover { + background-color: #0056b3; } \ No newline at end of file diff --git a/Games/Little_Red_Game/README.md b/Games/Little_Red_Game/README.md index e6ab7527cc..8c56c9f8cc 100644 --- a/Games/Little_Red_Game/README.md +++ b/Games/Little_Red_Game/README.md @@ -1,33 +1,33 @@ -# **Little_Red_Game** - ---- Like an Jumping game! - -
- -## **Description ๐Ÿ“ƒ** - -- Just Like Jumping Game with HTMl, CSS, JS - -## **functionalities ๐ŸŽฎ** - -- Mouse Pointer, Tap On the screen -
- -## **How to play? ๐Ÿ•น๏ธ** - -- we can play this add via mouse point and Tap on the screen etc,. - -
- -## **Screenshots ๐Ÿ“ธ** - -
- - -![Little_Red_Game](https://github.com/Kalivarapubindusree/GameZone/assets/114821855/8fa38c0f-c4e4-48f0-a230-c885f4cc1aa1) - - - -
- -## **Working video ๐Ÿ“น** +# **Little_Red_Game** + +--- Like an Jumping game! + +
+ +## **Description ๐Ÿ“ƒ** + +- Just Like Jumping Game with HTMl, CSS, JS + +## **functionalities ๐ŸŽฎ** + +- Mouse Pointer, Tap On the screen +
+ +## **How to play? ๐Ÿ•น๏ธ** + +- we can play this add via mouse point and Tap on the screen etc,. + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ + +![Little_Red_Game](https://github.com/Kalivarapubindusree/GameZone/assets/114821855/8fa38c0f-c4e4-48f0-a230-c885f4cc1aa1) + + + +
+ +## **Working video ๐Ÿ“น** diff --git a/Games/Lost_In_The_Maze_3D/index.html b/Games/Lost_In_The_Maze_3D/index.html index a9923f634a..1549c197b6 100644 --- a/Games/Lost_In_The_Maze_3D/index.html +++ b/Games/Lost_In_The_Maze_3D/index.html @@ -1,65 +1,65 @@ -๏ปฟ - - - Lost in the Maze 3D - - - - - - - - - - - - -
- - - +๏ปฟ + + + Lost in the Maze 3D + + + + + + + + + + + + +
+ + + diff --git a/Games/Ludo_Game/.prettierrc b/Games/Ludo_Game/.prettierrc index 4a9b53c099..b4f8e6a6a1 100644 --- a/Games/Ludo_Game/.prettierrc +++ b/Games/Ludo_Game/.prettierrc @@ -1,4 +1,4 @@ -{ - "singleQuote": true, - "arrowParens": "avoid" -} +{ + "singleQuote": true, + "arrowParens": "avoid" +} diff --git a/Games/Ludo_Game/README.md b/Games/Ludo_Game/README.md index 0691bb073a..6b6b8059d3 100644 --- a/Games/Ludo_Game/README.md +++ b/Games/Ludo_Game/README.md @@ -1,27 +1,27 @@ -# **Ludo Game** - ---- - -
- -## **Description ๐Ÿ“ƒ** -A multiplayer Ludo game, where you can play with your friend and the first to 100 points win -- - -## **functionalities ๐ŸŽฎ** -It has a points system that adds your points everytime you ` -
- -## **How to play? ๐Ÿ•น๏ธ** -Click on the "Roll Dice" to roll the dice. The dice that you get would assign you a score. -You can either hold your score and pass the chance to the other player or roll the dice again. -If you get the dice of 1, your current score will reset and chance would go to the other player - -
- -## **Screenshots ๐Ÿ“ธ** - -
- - -![Ludo_Game](https://github.com/kunjgit/GameZone/assets/100008872/2e373bda-1f8a-412f-a303-8f51f9c8de80) +# **Ludo Game** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +A multiplayer Ludo game, where you can play with your friend and the first to 100 points win +- + +## **functionalities ๐ŸŽฎ** +It has a points system that adds your points everytime you ` +
+ +## **How to play? ๐Ÿ•น๏ธ** +Click on the "Roll Dice" to roll the dice. The dice that you get would assign you a score. +You can either hold your score and pass the chance to the other player or roll the dice again. +If you get the dice of 1, your current score will reset and chance would go to the other player + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ + +![Ludo_Game](https://github.com/kunjgit/GameZone/assets/100008872/2e373bda-1f8a-412f-a303-8f51f9c8de80) diff --git a/Games/Ludo_Game/index.html b/Games/Ludo_Game/index.html index 3a572be989..df04795442 100644 --- a/Games/Ludo_Game/index.html +++ b/Games/Ludo_Game/index.html @@ -1,40 +1,40 @@ - - - - - - - - - Pig Game - - -
-
-
-

Player 1

-

43

-
-

Current

-

0

-
-
-
-

Player 2

-

24

-
-

Current

-

0

-
-
- - Playing dice - - - -
- - - + + + + + + + + + Pig Game + + +
+
+
+

Player 1

+

43

+
+

Current

+

0

+
+
+
+

Player 2

+

24

+
+

Current

+

0

+
+
+ + Playing dice + + + +
+ + + diff --git a/Games/Ludo_Game/script.js b/Games/Ludo_Game/script.js index 9485d06811..9a857f52e2 100644 --- a/Games/Ludo_Game/script.js +++ b/Games/Ludo_Game/script.js @@ -1,81 +1,81 @@ -'use strict'; - -const player0El = document.querySelector('.player--0'); -const player1El = document.querySelector('.player--1'); -const score0El = document.querySelector('#score--0'); -const score1El = document.getElementById('score--1'); -const current0El = document.getElementById('current--0'); -const current1El = document.getElementById('current--1'); - -const diceEl = document.querySelector('.dice'); -const btnNew = document.querySelector('.btn--new'); -const btnRoll = document.querySelector('.btn--roll'); -const btnHold = document.querySelector('.btn--hold'); - -let scores, currentScore, activePlayer, playing; -const init = function () { - scores = [0, 0]; - currentScore = 0; - activePlayer = 0; - playing = true; - - score0El.textContent = 0; - score1El.textContent = 0; - current0El.textContent = 0; - current1El.textContent = 0; - - diceEl.classList.add('hidden'); - player0El.classList.remove('player--winner'); - player1El.classList.remove('player--winner'); - player0El.classList.add('player--active'); - player1El.classList.remove('player--active'); -}; -init(); - -const switchPlayer = function () { - document.getElementById(`current--${activePlayer}`).textContent = 0; - currentScore = 0; - activePlayer = activePlayer === 0 ? 1 : 0; - player0El.classList.toggle('player--active'); - player1El.classList.toggle('player--active'); -}; -btnRoll.addEventListener('click', function () { - if (playing) { - const dice = Math.trunc(Math.random() * 6) + 1; - diceEl.classList.remove('hidden'); - diceEl.src = `dice-${dice}.png`; - if (dice !== 1) { - currentScore += dice; - document.getElementById( - `current--${activePlayer}` - ).textContent = currentScore; - } else { - switchPlayer(); - } - } -}); - -btnHold.addEventListener('click', function () { - if (playing) { - scores[activePlayer] += currentScore; - - document.getElementById(`score--${activePlayer}`).textContent = - scores[activePlayer]; - - if (scores[activePlayer] >= 100) { - playing = false; - diceEl.classList.add('hidden'); - - document - .querySelector(`.player--${activePlayer}`) - .classList.add('player--winner'); - document - .querySelector(`.player--${activePlayer}`) - .classList.remove('player--active'); - } else { - switchPlayer(); - } - } -}); - -btnNew.addEventListener('click', init); +'use strict'; + +const player0El = document.querySelector('.player--0'); +const player1El = document.querySelector('.player--1'); +const score0El = document.querySelector('#score--0'); +const score1El = document.getElementById('score--1'); +const current0El = document.getElementById('current--0'); +const current1El = document.getElementById('current--1'); + +const diceEl = document.querySelector('.dice'); +const btnNew = document.querySelector('.btn--new'); +const btnRoll = document.querySelector('.btn--roll'); +const btnHold = document.querySelector('.btn--hold'); + +let scores, currentScore, activePlayer, playing; +const init = function () { + scores = [0, 0]; + currentScore = 0; + activePlayer = 0; + playing = true; + + score0El.textContent = 0; + score1El.textContent = 0; + current0El.textContent = 0; + current1El.textContent = 0; + + diceEl.classList.add('hidden'); + player0El.classList.remove('player--winner'); + player1El.classList.remove('player--winner'); + player0El.classList.add('player--active'); + player1El.classList.remove('player--active'); +}; +init(); + +const switchPlayer = function () { + document.getElementById(`current--${activePlayer}`).textContent = 0; + currentScore = 0; + activePlayer = activePlayer === 0 ? 1 : 0; + player0El.classList.toggle('player--active'); + player1El.classList.toggle('player--active'); +}; +btnRoll.addEventListener('click', function () { + if (playing) { + const dice = Math.trunc(Math.random() * 6) + 1; + diceEl.classList.remove('hidden'); + diceEl.src = `dice-${dice}.png`; + if (dice !== 1) { + currentScore += dice; + document.getElementById( + `current--${activePlayer}` + ).textContent = currentScore; + } else { + switchPlayer(); + } + } +}); + +btnHold.addEventListener('click', function () { + if (playing) { + scores[activePlayer] += currentScore; + + document.getElementById(`score--${activePlayer}`).textContent = + scores[activePlayer]; + + if (scores[activePlayer] >= 100) { + playing = false; + diceEl.classList.add('hidden'); + + document + .querySelector(`.player--${activePlayer}`) + .classList.add('player--winner'); + document + .querySelector(`.player--${activePlayer}`) + .classList.remove('player--active'); + } else { + switchPlayer(); + } + } +}); + +btnNew.addEventListener('click', init); diff --git a/Games/Ludo_Game/style.css b/Games/Ludo_Game/style.css index 04bc88daff..19a526ecd3 100644 --- a/Games/Ludo_Game/style.css +++ b/Games/Ludo_Game/style.css @@ -1,169 +1,169 @@ -@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap'); - -* { - margin: 0; - padding: 0; - box-sizing: inherit; -} - -html { - font-size: 67.5%; - box-sizing: border-box; -} - -body { - font-family: 'Nunito', sans-serif; - font-weight: 400; - height: 100vh; - color: #333; - background-image: linear-gradient(to top left, #1a194a 0%, #705ad3 100%); - display: flex; - align-items: center; - justify-content: center; -} - -/* LAYOUT */ -main { - position: relative; - width: 100rem; - height: 60rem; - background-color: rgba(255, 255, 255, 0.35); - backdrop-filter: blur(200px); - filter: blur(); - box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.25); - border-radius: 9px; - overflow: hidden; - display: flex; -} - -.player { - flex: 50%; - padding: 9rem; - display: flex; - flex-direction: column; - align-items: center; - transition: all 0.75s; -} - -.name { - position: relative; - font-size: 4rem; - text-transform: uppercase; - letter-spacing: 1px; - word-spacing: 2px; - font-weight: 300; - margin-bottom: 1rem; -} - -.score { - font-size: 8rem; - font-weight: 300; - color: #4068ba; - margin-bottom: auto; -} - -.player--active { - background-color: rgba(255, 255, 255, 0.4); -} -.player--active .name { - font-weight: 700; -} -.player--active .score { - font-weight: 400; -} - -.player--active .current { - opacity: 1; -} - -.current { - background-color: #4a97c4; - opacity: 0.8; - border-radius: 9px; - color: #fff; - width: 65%; - padding: 2rem; - text-align: center; - transition: all 0.75s; -} - -.current-label { - text-transform: uppercase; - margin-bottom: 1rem; - font-size: 1.7rem; - color: #ddd; -} - -.current-score { - font-size: 3.5rem; -} - -.btn { - position: absolute; - left: 50%; - transform: translateX(-50%); - color: #444; - background: none; - border: none; - font-family: inherit; - font-size: 1.8rem; - text-transform: uppercase; - cursor: pointer; - font-weight: 400; - transition: all 0.2s; - - background-color: white; - background-color: rgba(255, 255, 255, 0.6); - backdrop-filter: blur(10px); - - padding: 0.7rem 2.5rem; - border-radius: 50rem; - box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.1); -} - -.btn::first-letter { - font-size: 2.4rem; - display: inline-block; - margin-right: 0.7rem; -} - -.btn--new { - top: 4rem; -} -.btn--roll { - top: 39.3rem; -} -.btn--hold { - top: 46.1rem; -} - -.btn:active { - transform: translate(-50%, 3px); - box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25); -} - -.btn:focus { - outline: none; -} - -.dice { - position: absolute; - left: 50%; - top: 18.5rem; - transform: translateX(-50%); - height: 10rem; - box-shadow: 0 2rem 5rem rgba(0, 0.7, 0, 0.7); -} - -.player--winner { - background-color: #2f2f2f; -} - -.player--winner .name { - font-weight: 700; - color: #c7365f; -} - -.hidden { - display: none; -} +@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap'); + +* { + margin: 0; + padding: 0; + box-sizing: inherit; +} + +html { + font-size: 67.5%; + box-sizing: border-box; +} + +body { + font-family: 'Nunito', sans-serif; + font-weight: 400; + height: 100vh; + color: #333; + background-image: linear-gradient(to top left, #1a194a 0%, #705ad3 100%); + display: flex; + align-items: center; + justify-content: center; +} + +/* LAYOUT */ +main { + position: relative; + width: 100rem; + height: 60rem; + background-color: rgba(255, 255, 255, 0.35); + backdrop-filter: blur(200px); + filter: blur(); + box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.25); + border-radius: 9px; + overflow: hidden; + display: flex; +} + +.player { + flex: 50%; + padding: 9rem; + display: flex; + flex-direction: column; + align-items: center; + transition: all 0.75s; +} + +.name { + position: relative; + font-size: 4rem; + text-transform: uppercase; + letter-spacing: 1px; + word-spacing: 2px; + font-weight: 300; + margin-bottom: 1rem; +} + +.score { + font-size: 8rem; + font-weight: 300; + color: #4068ba; + margin-bottom: auto; +} + +.player--active { + background-color: rgba(255, 255, 255, 0.4); +} +.player--active .name { + font-weight: 700; +} +.player--active .score { + font-weight: 400; +} + +.player--active .current { + opacity: 1; +} + +.current { + background-color: #4a97c4; + opacity: 0.8; + border-radius: 9px; + color: #fff; + width: 65%; + padding: 2rem; + text-align: center; + transition: all 0.75s; +} + +.current-label { + text-transform: uppercase; + margin-bottom: 1rem; + font-size: 1.7rem; + color: #ddd; +} + +.current-score { + font-size: 3.5rem; +} + +.btn { + position: absolute; + left: 50%; + transform: translateX(-50%); + color: #444; + background: none; + border: none; + font-family: inherit; + font-size: 1.8rem; + text-transform: uppercase; + cursor: pointer; + font-weight: 400; + transition: all 0.2s; + + background-color: white; + background-color: rgba(255, 255, 255, 0.6); + backdrop-filter: blur(10px); + + padding: 0.7rem 2.5rem; + border-radius: 50rem; + box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.1); +} + +.btn::first-letter { + font-size: 2.4rem; + display: inline-block; + margin-right: 0.7rem; +} + +.btn--new { + top: 4rem; +} +.btn--roll { + top: 39.3rem; +} +.btn--hold { + top: 46.1rem; +} + +.btn:active { + transform: translate(-50%, 3px); + box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25); +} + +.btn:focus { + outline: none; +} + +.dice { + position: absolute; + left: 50%; + top: 18.5rem; + transform: translateX(-50%); + height: 10rem; + box-shadow: 0 2rem 5rem rgba(0, 0.7, 0, 0.7); +} + +.player--winner { + background-color: #2f2f2f; +} + +.player--winner .name { + font-weight: 700; + color: #c7365f; +} + +.hidden { + display: none; +} diff --git a/Games/Magic_Square/Readme.md b/Games/Magic_Square/Readme.md index f86247464f..4ce90ca7fe 100644 --- a/Games/Magic_Square/Readme.md +++ b/Games/Magic_Square/Readme.md @@ -1,8 +1,8 @@ -# **Magic Square** - -## **Description ๐Ÿ“ƒ** -- This is the game of magic square and It's written in html,css and javascript. - -## **Screenshots ๐Ÿ“ธ** - +# **Magic Square** + +## **Description ๐Ÿ“ƒ** +- This is the game of magic square and It's written in html,css and javascript. + +## **Screenshots ๐Ÿ“ธ** + ![Magic Square](https://github.com/vasu-1/GameZone/assets/76911582/a8b0bac8-a081-4cb7-a482-004bd3b7d862) \ No newline at end of file diff --git a/Games/Magic_Square/index.html b/Games/Magic_Square/index.html index 27f2291c7d..9f739f31b3 100644 --- a/Games/Magic_Square/index.html +++ b/Games/Magic_Square/index.html @@ -1,55 +1,55 @@ - - - - - Magic Square ++ - - - - -

Magic Square

-
-
-
-
-
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
 
-
- -
-
Congratulations!
-
Play again?
-
ร—
-
-
- -
- - - - - - - - - - - -
- - - - - + + + + + Magic Square ++ + + + + +

Magic Square

+
+
+
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
 
+
+ +
+
Congratulations!
+
Play again?
+
ร—
+
+
+ +
+ + + + + + + + + + + +
+ + + + + diff --git a/Games/Magic_Square/script.js b/Games/Magic_Square/script.js index 2f7630ac3f..5aa91bdc63 100644 --- a/Games/Magic_Square/script.js +++ b/Games/Magic_Square/script.js @@ -1,233 +1,233 @@ -var Previous = -1; //Currently selected number -var Used = [-10,0,0,0,0,0,0,0,0,0]; //How many times a number is used on the board purely for the `used` class on the keys -var Capture = "click"; //Used for doing the correct input depending on device because things apparently can't just be simple -var NumberOrder, Symbols, Results; //Used for grid generation, you have the correct order of numbers, the order of the symbols, and the order of the results -const Pattern = [0,1,0,1,0,3,1,2,1,2,1,2,0,1,0,1,0,3,1,2,1,2,1,2,0,1,0,1,0,3,3,2,3,2,3,2]; //Used for grid drawing (0: number, 1: symbol, 2:blank space, 3:result) - I was initially going to do a mathematical approach like a 5x5 grid where 2n+1 is numbers except for 4 spaces and the others are symbols but this turns out to be the easiest to implement -var Counter = [0,0,0]; //Used for grid drawing, as a tile is placed the counter increments and so the correct ID is given -var Board = [0,0,0,0,0,0,0,0,0]; //Used to store the board -const Checking = [[0,1,2,0,1],[3,4,5,5,6],[6,7,8,10,11],[0,3,6,2,7],[1,4,7,3,8],[2,5,8,4,9]]; //Used as blueprints to check the board (the first 3 numbers signify the `Board` entries and using the indexes you get the values which have been inputted in order left to right, or top to bottom. The last 2 numbers are basically the same but are symbols which are fetched from `Symbols`) -const CheckingPlan = [[0,3],[0,4],[0,5],[1,3],[1,4],[1,5],[2,3],[2,4],[2,5]]; //With a given cell number you are given the row and column, this is then used for `Checking` for each value; also the row and column values gathered from here are the same as the result IDs in the coresponding row or column. -var Matches = [false, false, false, false, false, false]; //Tracks which answers have been matched. Also I used Capitalised variable names to signify global variables while local variables will have a lowercase first letter so I can spot if the variable was defined where I'm working or up here in a glance, still deciding if I like it or not - easy change if I or anyone else doesn't. - -if(!!('ontouchstart' in window) || !!('msmaxtouchpoints' in window.navigator)) { //https://stackoverflow.com/a/13470899 - Capture = "touchend"; //touchscreens require this rather than click, because things can't be simple. -} - -function Generate() { - //Generate number and symbol orders - NumberOrder = ArrayShuffle(Array.apply(null, {length: 10}).map(Number.call, Number).slice(1)); //https://stackoverflow.com/a/20066663 - Symbols = Array.apply(null, {length: 12}).map(Function.call, Math.random).map(function(x){return Math.floor(x * 3)}); //0:+, 1:-, 2:ร— - Results = []; //Will contain the 6 answers going top to bottom 0-2 then left to right 3-5 - //Validate results are positive - /*across - run before you ...*/ - for(var i = 0; i < 3; i++) { - //This does nested Actions to do the left or topmost action first then the right or bottom most action - Results.push(Action(Action(NumberOrder[0 + i*3], NumberOrder[1 + i*3], Symbols[0 + i*5]), NumberOrder[2 + i*3], Symbols[1 + i*5])); - } - /*down - ...fall*/ - for(var i = 0; i < 3; i++) { - Results.push(Action(Action(NumberOrder[0 + i], NumberOrder[3 + i], Symbols[2 + i]), NumberOrder[6 + i], Symbols[7 + i])); - } - - - //This draws out the final solution in the console (if you want to cheat), this was originally how I had the tile generation set out and I was going to delete this after I was done but I've kept it in - but everything to line 109 can be ignored - for(var j = 0; j < 7; j++) { - var l = ""; - for(var i = 0; i < 7; i++) { - if(j%2 == 0 && j <5) { - switch(i) { - case 0: - l += NumberOrder[0 + (j/2)*3]; - break; - case 1: - l += SymbolToChar(Symbols[0 + (j/2)*5]); - break; - case 2: - l += NumberOrder[1 + (j/2)*3]; - break; - case 3: - l += SymbolToChar(Symbols[1 + (j/2)*5]); - break; - case 4: - l += NumberOrder[2 + (j/2)*3]; - break; - case 5: - l += "="; - break; - case 6: - l += Results[0+(j/2)]; - break; - } - } else if (j < 5) { - switch(i) { - case 0: - l += SymbolToChar(Symbols[2 + ((j-1)/2)*5]); - break; - case 1: - l += " "; - break; - case 2: - l += SymbolToChar(Symbols[3 + ((j-1)/2)*5]); - break; - case 3: - l += " "; - break; - case 4: - l += SymbolToChar(Symbols[4 + ((j-1)/2)*5]); - break; - case 5: - l += " "; - break; - case 6: - l += " "; - break; - } - } else if (j == 5) { - l = "= = ="; - break; - } else if (j == 6) { - l += Results[3]; - l += Array(7 - (Results[3] + "").length).join(" "); - l += Results[4]; - l += Array(7 - (Results[4] + "").length).join(" "); - l += Results[5]; - break; - } - l += " "; - } - } /**/ - - if ( - Math.min.apply(Math, Results) < 0 || - Math.max.apply(Math, Results) > 50 || - Symbols.filter(function(x){return x == 0}).length < 2 || - Symbols.filter(function(x){return x == 1}).length < 2 || - Symbols.filter(function(x){return x == 2}).length < 2) { - /* - I want the minimum result to be positive, maximum to be no bigger than 50, and each symbol is used at least twice; games will be more interesting and more do-able. - */ - console.clear(); - Generate(); //Let's do that again - } else { - DrawGrid(); //Let's go ๐ŸŽ‰๐Ÿ‘‡ - } -} -function DrawGrid() { - var c = 0; - var html = ""; //build html first and don't append html which isn't valid, otherwise browsers will auto-correct your code and weirdness happens - for(var j = 0; j < 6; j++) { //columns - html += `
`; - for(var i = 0; i < 6; i++) { //rows - switch (Pattern[c]) { //using the Pattern we can print a cell one by one just incrementing the number once - case 0: - html += '
'; - Counter[0]++; - break; - case 1: - html += '
'+SymbolToChar(Symbols[Counter[1]])+'
'; - Counter[1]++; - break; - case 2: - html += '
'; - break; - case 3: - html += '
'+Results[Counter[2]]+'
'; - Counter[2]++; //I could have just switched result and gap with each other then just increment on [c] if c < 3 but this is actually a worse idea if you want the full power and lightning fast generation time for a puzzle that takes a few minutes to solve and actually people don't notice the difference between a milisecond or not when it is added onto the already slightly random length of time it takes for the page to load. - break; - } - c++; //One increment coming up - } - html += `
`; - } - $("#board").html(html); //All html together -} -function CheckEntry(cell) { //Check to see if the row and column containing the cell is valid or not - for(var p = 0; p < 2; p++) { - var c = Checking[CheckingPlan[cell][p]]; //Inputting the cell ID then p (0: horizontal, 1: vertical) we can then get a template for the data, the first 3 numbers are the inputted values and the last 2 are the symbols - c=c.map(function (x,i) { - return i < 3 ? Board[x] : Symbols[x]; //Convert the template to data - }); - if(c.slice(0,3).filter(function(x){return x == 0}).length > 0) { //If there is a gap - $(`.result[result=${CheckingPlan[cell][p]}]`).removeClass("correct").removeClass("wrong"); - Matches[CheckingPlan[cell][p]] = false; //If the row is not filled it is not complete - } - else if(Action(Action(c[0],c[1],c[3]), c[2],c[4]) == Results[CheckingPlan[cell][p]]){ //If they match the result, result ID goes from 0-2 as horizontal increments, then 3-5 as vertical increments - $(`.result[result=${CheckingPlan[cell][p]}]`).addClass("correct").removeClass("wrong"); - Matches[CheckingPlan[cell][p]] = true; //If the row is complete it is complete - } - else { //if it doesn't - $(`.result[result=${CheckingPlan[cell][p]}]`).removeClass("correct").addClass("wrong"); - Matches[CheckingPlan[cell][p]] = false; //Or maybe you could re-write the rules of mathematics? - } - } - if(Matches.filter(function(x) {return x}).length == 6 && Used.filter(function(x) {return x == 1}).length == 9) { //filters and mapping are incredible and are a powerful tool and open you up to being confused why things are failing because I keep forgetting to add the return because I'm too familiar with linq `x => x` (or as my brain interprets it `function(x){x})` so I sometimes autopilot just `x`) rather than `return x` - $("#winner").addClass("show"); //๐ŸŽ‰ they deserved it, or they cheated and get a slap on the wrists - I was going to check for people opening the console then geo-locate them and turn up at their doors to slap their wrists but there's probably legal issues and effort. - } -} - -function SymbolToChar(s) { - switch (s) { - case 0: - return "+"; - case 1: - return "-"; - case 2: - return "ร—"; //Fun fact: Alt+158, one of the very few codes I remember - } -} - -function Action(a, b, f) { //Related but kinda completely unrelated: https://en.wikipedia.org/wiki/Reverse_Polish_notation - switch(f) { - case 0: - return a+b; - case 1: - return a-b; - case 2: - return a*b; - //You can add more but it just gets annoying to solve - } -} -function ArrayShuffle(a) { //https://stackoverflow.com/a/6274381 - for (let i = a.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - [a[i], a[j]] = [a[j], a[i]]; - } - return a; -} - -$(document).on(Capture, ".number", function() { - if (Previous >= 0) { //if a key is selected, if none are selected `Previous` is `-1` - if ($(this).attr("value") != Previous) { - Used[$(this).attr("value")]--; //Decrement the number that was there (might enable the button) - Used[Previous]++; //Increment the new number (might disable the button, well - it will disable it) - Board[$(this).attr("cell")] = parseInt(Previous); //Set the value of the tile to the array - if(Used[$(this).attr("value")] <= 0) { //Enable the button if the value is 0 - $(`.key[key=${$(this).attr("value")}]`).removeClass("used"); - } - if(Used[Previous] > 0 && Previous != 0) { //Disable the button if the new value is more than 0 and if the key id is not 0 (delete), which it should always but yeah - $(`.key[key=${Previous}]`).addClass("used"); - } - } - $(this).attr("value", Previous); //Set the value attribute, although I will (Edit: I'm re-reading this and I don't understand it but it might make sense?) - $(this).html(Previous <= 0 ? "" : Previous); //inline statements make things look cool, because they are - CheckEntry($(this).attr("cell")); //Check to see if a line has been solved, if there is an error, or more numbers are needed - } -}); -$(document).on(Capture, "#keyboard .key", function(){ - $("#keyboard .key").removeClass("selected"); - if($(this).attr("key") != Previous) { //If you have not clicked the same number in the on-screen keyboard twice in a row - $(this).addClass("selected"); - Previous = $(this).attr("key"); - } else { //If you have clicked the same number twice in a row - Previous = -1; - } - $("#game").attr("cursor", Previous); -}) -$(document).on(Capture, "#close", function() { - $("#winner").removeClass("show"); -}); -$(document).on(Capture, "#new", function() { - window.location.reload(false); -}); - +var Previous = -1; //Currently selected number +var Used = [-10,0,0,0,0,0,0,0,0,0]; //How many times a number is used on the board purely for the `used` class on the keys +var Capture = "click"; //Used for doing the correct input depending on device because things apparently can't just be simple +var NumberOrder, Symbols, Results; //Used for grid generation, you have the correct order of numbers, the order of the symbols, and the order of the results +const Pattern = [0,1,0,1,0,3,1,2,1,2,1,2,0,1,0,1,0,3,1,2,1,2,1,2,0,1,0,1,0,3,3,2,3,2,3,2]; //Used for grid drawing (0: number, 1: symbol, 2:blank space, 3:result) - I was initially going to do a mathematical approach like a 5x5 grid where 2n+1 is numbers except for 4 spaces and the others are symbols but this turns out to be the easiest to implement +var Counter = [0,0,0]; //Used for grid drawing, as a tile is placed the counter increments and so the correct ID is given +var Board = [0,0,0,0,0,0,0,0,0]; //Used to store the board +const Checking = [[0,1,2,0,1],[3,4,5,5,6],[6,7,8,10,11],[0,3,6,2,7],[1,4,7,3,8],[2,5,8,4,9]]; //Used as blueprints to check the board (the first 3 numbers signify the `Board` entries and using the indexes you get the values which have been inputted in order left to right, or top to bottom. The last 2 numbers are basically the same but are symbols which are fetched from `Symbols`) +const CheckingPlan = [[0,3],[0,4],[0,5],[1,3],[1,4],[1,5],[2,3],[2,4],[2,5]]; //With a given cell number you are given the row and column, this is then used for `Checking` for each value; also the row and column values gathered from here are the same as the result IDs in the coresponding row or column. +var Matches = [false, false, false, false, false, false]; //Tracks which answers have been matched. Also I used Capitalised variable names to signify global variables while local variables will have a lowercase first letter so I can spot if the variable was defined where I'm working or up here in a glance, still deciding if I like it or not - easy change if I or anyone else doesn't. + +if(!!('ontouchstart' in window) || !!('msmaxtouchpoints' in window.navigator)) { //https://stackoverflow.com/a/13470899 + Capture = "touchend"; //touchscreens require this rather than click, because things can't be simple. +} + +function Generate() { + //Generate number and symbol orders + NumberOrder = ArrayShuffle(Array.apply(null, {length: 10}).map(Number.call, Number).slice(1)); //https://stackoverflow.com/a/20066663 + Symbols = Array.apply(null, {length: 12}).map(Function.call, Math.random).map(function(x){return Math.floor(x * 3)}); //0:+, 1:-, 2:ร— + Results = []; //Will contain the 6 answers going top to bottom 0-2 then left to right 3-5 + //Validate results are positive + /*across - run before you ...*/ + for(var i = 0; i < 3; i++) { + //This does nested Actions to do the left or topmost action first then the right or bottom most action + Results.push(Action(Action(NumberOrder[0 + i*3], NumberOrder[1 + i*3], Symbols[0 + i*5]), NumberOrder[2 + i*3], Symbols[1 + i*5])); + } + /*down - ...fall*/ + for(var i = 0; i < 3; i++) { + Results.push(Action(Action(NumberOrder[0 + i], NumberOrder[3 + i], Symbols[2 + i]), NumberOrder[6 + i], Symbols[7 + i])); + } + + + //This draws out the final solution in the console (if you want to cheat), this was originally how I had the tile generation set out and I was going to delete this after I was done but I've kept it in - but everything to line 109 can be ignored + for(var j = 0; j < 7; j++) { + var l = ""; + for(var i = 0; i < 7; i++) { + if(j%2 == 0 && j <5) { + switch(i) { + case 0: + l += NumberOrder[0 + (j/2)*3]; + break; + case 1: + l += SymbolToChar(Symbols[0 + (j/2)*5]); + break; + case 2: + l += NumberOrder[1 + (j/2)*3]; + break; + case 3: + l += SymbolToChar(Symbols[1 + (j/2)*5]); + break; + case 4: + l += NumberOrder[2 + (j/2)*3]; + break; + case 5: + l += "="; + break; + case 6: + l += Results[0+(j/2)]; + break; + } + } else if (j < 5) { + switch(i) { + case 0: + l += SymbolToChar(Symbols[2 + ((j-1)/2)*5]); + break; + case 1: + l += " "; + break; + case 2: + l += SymbolToChar(Symbols[3 + ((j-1)/2)*5]); + break; + case 3: + l += " "; + break; + case 4: + l += SymbolToChar(Symbols[4 + ((j-1)/2)*5]); + break; + case 5: + l += " "; + break; + case 6: + l += " "; + break; + } + } else if (j == 5) { + l = "= = ="; + break; + } else if (j == 6) { + l += Results[3]; + l += Array(7 - (Results[3] + "").length).join(" "); + l += Results[4]; + l += Array(7 - (Results[4] + "").length).join(" "); + l += Results[5]; + break; + } + l += " "; + } + } /**/ + + if ( + Math.min.apply(Math, Results) < 0 || + Math.max.apply(Math, Results) > 50 || + Symbols.filter(function(x){return x == 0}).length < 2 || + Symbols.filter(function(x){return x == 1}).length < 2 || + Symbols.filter(function(x){return x == 2}).length < 2) { + /* + I want the minimum result to be positive, maximum to be no bigger than 50, and each symbol is used at least twice; games will be more interesting and more do-able. + */ + console.clear(); + Generate(); //Let's do that again + } else { + DrawGrid(); //Let's go ๐ŸŽ‰๐Ÿ‘‡ + } +} +function DrawGrid() { + var c = 0; + var html = ""; //build html first and don't append html which isn't valid, otherwise browsers will auto-correct your code and weirdness happens + for(var j = 0; j < 6; j++) { //columns + html += `
`; + for(var i = 0; i < 6; i++) { //rows + switch (Pattern[c]) { //using the Pattern we can print a cell one by one just incrementing the number once + case 0: + html += '
'; + Counter[0]++; + break; + case 1: + html += '
'+SymbolToChar(Symbols[Counter[1]])+'
'; + Counter[1]++; + break; + case 2: + html += '
'; + break; + case 3: + html += '
'+Results[Counter[2]]+'
'; + Counter[2]++; //I could have just switched result and gap with each other then just increment on [c] if c < 3 but this is actually a worse idea if you want the full power and lightning fast generation time for a puzzle that takes a few minutes to solve and actually people don't notice the difference between a milisecond or not when it is added onto the already slightly random length of time it takes for the page to load. + break; + } + c++; //One increment coming up + } + html += `
`; + } + $("#board").html(html); //All html together +} +function CheckEntry(cell) { //Check to see if the row and column containing the cell is valid or not + for(var p = 0; p < 2; p++) { + var c = Checking[CheckingPlan[cell][p]]; //Inputting the cell ID then p (0: horizontal, 1: vertical) we can then get a template for the data, the first 3 numbers are the inputted values and the last 2 are the symbols + c=c.map(function (x,i) { + return i < 3 ? Board[x] : Symbols[x]; //Convert the template to data + }); + if(c.slice(0,3).filter(function(x){return x == 0}).length > 0) { //If there is a gap + $(`.result[result=${CheckingPlan[cell][p]}]`).removeClass("correct").removeClass("wrong"); + Matches[CheckingPlan[cell][p]] = false; //If the row is not filled it is not complete + } + else if(Action(Action(c[0],c[1],c[3]), c[2],c[4]) == Results[CheckingPlan[cell][p]]){ //If they match the result, result ID goes from 0-2 as horizontal increments, then 3-5 as vertical increments + $(`.result[result=${CheckingPlan[cell][p]}]`).addClass("correct").removeClass("wrong"); + Matches[CheckingPlan[cell][p]] = true; //If the row is complete it is complete + } + else { //if it doesn't + $(`.result[result=${CheckingPlan[cell][p]}]`).removeClass("correct").addClass("wrong"); + Matches[CheckingPlan[cell][p]] = false; //Or maybe you could re-write the rules of mathematics? + } + } + if(Matches.filter(function(x) {return x}).length == 6 && Used.filter(function(x) {return x == 1}).length == 9) { //filters and mapping are incredible and are a powerful tool and open you up to being confused why things are failing because I keep forgetting to add the return because I'm too familiar with linq `x => x` (or as my brain interprets it `function(x){x})` so I sometimes autopilot just `x`) rather than `return x` + $("#winner").addClass("show"); //๐ŸŽ‰ they deserved it, or they cheated and get a slap on the wrists - I was going to check for people opening the console then geo-locate them and turn up at their doors to slap their wrists but there's probably legal issues and effort. + } +} + +function SymbolToChar(s) { + switch (s) { + case 0: + return "+"; + case 1: + return "-"; + case 2: + return "ร—"; //Fun fact: Alt+158, one of the very few codes I remember + } +} + +function Action(a, b, f) { //Related but kinda completely unrelated: https://en.wikipedia.org/wiki/Reverse_Polish_notation + switch(f) { + case 0: + return a+b; + case 1: + return a-b; + case 2: + return a*b; + //You can add more but it just gets annoying to solve + } +} +function ArrayShuffle(a) { //https://stackoverflow.com/a/6274381 + for (let i = a.length - 1; i > 0; i--) { + const j = Math.floor(Math.random() * (i + 1)); + [a[i], a[j]] = [a[j], a[i]]; + } + return a; +} + +$(document).on(Capture, ".number", function() { + if (Previous >= 0) { //if a key is selected, if none are selected `Previous` is `-1` + if ($(this).attr("value") != Previous) { + Used[$(this).attr("value")]--; //Decrement the number that was there (might enable the button) + Used[Previous]++; //Increment the new number (might disable the button, well - it will disable it) + Board[$(this).attr("cell")] = parseInt(Previous); //Set the value of the tile to the array + if(Used[$(this).attr("value")] <= 0) { //Enable the button if the value is 0 + $(`.key[key=${$(this).attr("value")}]`).removeClass("used"); + } + if(Used[Previous] > 0 && Previous != 0) { //Disable the button if the new value is more than 0 and if the key id is not 0 (delete), which it should always but yeah + $(`.key[key=${Previous}]`).addClass("used"); + } + } + $(this).attr("value", Previous); //Set the value attribute, although I will (Edit: I'm re-reading this and I don't understand it but it might make sense?) + $(this).html(Previous <= 0 ? "" : Previous); //inline statements make things look cool, because they are + CheckEntry($(this).attr("cell")); //Check to see if a line has been solved, if there is an error, or more numbers are needed + } +}); +$(document).on(Capture, "#keyboard .key", function(){ + $("#keyboard .key").removeClass("selected"); + if($(this).attr("key") != Previous) { //If you have not clicked the same number in the on-screen keyboard twice in a row + $(this).addClass("selected"); + Previous = $(this).attr("key"); + } else { //If you have clicked the same number twice in a row + Previous = -1; + } + $("#game").attr("cursor", Previous); +}) +$(document).on(Capture, "#close", function() { + $("#winner").removeClass("show"); +}); +$(document).on(Capture, "#new", function() { + window.location.reload(false); +}); + Generate(); \ No newline at end of file diff --git a/Games/Magic_Square/style.css b/Games/Magic_Square/style.css index 9aa1637643..dbab9c4202 100644 --- a/Games/Magic_Square/style.css +++ b/Games/Magic_Square/style.css @@ -1,226 +1,226 @@ -body { - --background: #1F204C; - --number-background: #5F61BB; - --number-shadow: #434596; - --symbol-background: #424392; - --symbol-shadow: #313378; - --text: #F6F6F6; - --text-fade: #CCCCCC; - --text-green: #2ECC71; - --text-red: #D8334A; - --selected-background: #DDDDDD; - --selected-shadow: #C8C8C8; - background-color: var(--background); - color: var(--text); - margin: 0; - font-family: 'Baloo', cursive; - overflow-x: hidden; -} -body #hidden { - display: none; -} -body #game { - width: 100vw; - min-height: 100vh; - cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_default.png), auto; - display: -webkit-box; - display: flex; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - flex-direction: column; - -webkit-box-align: center; - align-items: center; - -webkit-box-pack: justify; - justify-content: space-between; -} -body #game[cursor][cursor="default"] { - cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_default.png), auto; -} -body #game[cursor][cursor="1"] { - cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_1.png), auto; -} -body #game[cursor][cursor="2"] { - cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_2.png), auto; -} -body #game[cursor][cursor="3"] { - cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_3.png), auto; -} -body #game[cursor][cursor="4"] { - cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_4.png), auto; -} -body #game[cursor][cursor="5"] { - cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_5.png), auto; -} -body #game[cursor][cursor="6"] { - cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_6.png), auto; -} -body #game[cursor][cursor="7"] { - cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_7.png), auto; -} -body #game[cursor][cursor="8"] { - cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_8.png), auto; -} -body #game[cursor][cursor="9"] { - cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_9.png), auto; -} -body #game[cursor][cursor="0"] { - cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_clear.png), auto; -} -body #game #board { - display: -webkit-box; - display: flex; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - flex-direction: column; - -webkit-transform: translateX(50px); - transform: translateX(50px); - min-width: 600px; - min-height: 600px; - max-width: 600px; - max-height: 600px; - margin-top: 10px; -} -body #game #board .row { - display: -webkit-box; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - flex-direction: row; -} -body #game #board .row > div { - width: 80px; - height: 80px; - margin: 10px; -} -body #game #board .row > div.number, body #game #board .row > div.symbol, body #game #board .row > div.result { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - line-height: 80px; - text-align: center; - font-size: 60px; -} -body #game #board .row > div.number, body #game #board .row > div.symbol { - border-radius: 8px; -} -body #game #board .row > div.number { - background-color: var(--number-background); - box-shadow: 0 8px 0 0 var(--number-shadow); - -webkit-transition: all .25s -.1s; - transition: all .25s -.1s; -} -body #game #board .row > div.number:active { - -webkit-transform: translateY(8px); - transform: translateY(8px); - box-shadow: 0 0px 0 0 #434596; -} -body #game #board .row > div.symbol { - background-color: var(--symbol-background); - box-shadow: 0 8px 0 0 var(--symbol-shadow); -} -body #game #board .row > div.result { - position: relative; - font-size: 40px; -} -body #game #board .row > div.result.correct { - color: var(--text-green); -} -body #game #board .row > div.result.wrong { - color: var(--text-red); -} -body #game #keyboard { - width: 500px; - display: -webkit-box; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - flex-direction: row; - -webkit-box-pack: center; - justify-content: center; - flex-wrap: wrap; - margin-bottom: 20px; -} -body #game #keyboard .key { - width: 80px; - height: 80px; - line-height: 80px; - margin: 10px; - font-size: 52px; - border-radius: 8px; - text-align: center; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - background-color: var(--number-background); - box-shadow: 0 8px 0 0 var(--number-shadow); - -webkit-transition: all .25s -.1s; - transition: all .25s -.1s; -} -body #game #keyboard .key.used { - background-color: var(--symbol-background); - box-shadow: 0 8px 0 0 var(--symbol-shadow); -} -body #game #keyboard .key.used:active { - -webkit-transform: translateY(8px); - transform: translateY(8px); - box-shadow: 0 0px 0 0 var(--symbol-shadow); -} -body #game #keyboard .key.used.selected { - color: var(--symbol-background); - background-color: var(--selected-background); - box-shadow: 0 16px 0 0 var(--selected-shadow); - -webkit-transform: translateY(-8px); - transform: translateY(-8px); -} -body #game #keyboard .key.used.selected:active { - -webkit-transform: translateY(8px); - transform: translateY(8px); - box-shadow: 0 0px 0 0 var(--selected-shadow); -} -body #game #keyboard .key:not(.used):active { - -webkit-transform: translateY(8px); - transform: translateY(8px); - box-shadow: 0 0px 0 0 var(--number-shadow); -} -body #game #keyboard .key:not(.used).selected { - color: var(--number-background); - background-color: var(--text); - box-shadow: 0 16px 0 0 var(--text-fade); - -webkit-transform: translateY(-8px); - transform: translateY(-8px); -} -body #game #keyboard .key:not(.used).selected:active { - -webkit-transform: translateY(8px); - transform: translateY(8px); - box-shadow: 0 0px 0 0 var(--text-fade); -} -body #winner { - position: fixed; - top: 50%; - left: 0px; - right: 0px; - -webkit-transform: translateY(-50%); - transform: translateY(-50%); - background-color: #2ABA66; - text-align: center; -} -body #winner .header { - margin: 40px 0; - font-size: 60px; - margin-bottom: -20px; -} -body #winner #new { - margin-bottom: 30px; -} -body #winner #close { - position: absolute; - top: 0px; - right: 0px; - padding: 0 14px; - font-size: 32px; -} -body #winner:not(.show) { - display: none; +body { + --background: #1F204C; + --number-background: #5F61BB; + --number-shadow: #434596; + --symbol-background: #424392; + --symbol-shadow: #313378; + --text: #F6F6F6; + --text-fade: #CCCCCC; + --text-green: #2ECC71; + --text-red: #D8334A; + --selected-background: #DDDDDD; + --selected-shadow: #C8C8C8; + background-color: var(--background); + color: var(--text); + margin: 0; + font-family: 'Baloo', cursive; + overflow-x: hidden; +} +body #hidden { + display: none; +} +body #game { + width: 100vw; + min-height: 100vh; + cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_default.png), auto; + display: -webkit-box; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + flex-direction: column; + -webkit-box-align: center; + align-items: center; + -webkit-box-pack: justify; + justify-content: space-between; +} +body #game[cursor][cursor="default"] { + cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_default.png), auto; +} +body #game[cursor][cursor="1"] { + cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_1.png), auto; +} +body #game[cursor][cursor="2"] { + cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_2.png), auto; +} +body #game[cursor][cursor="3"] { + cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_3.png), auto; +} +body #game[cursor][cursor="4"] { + cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_4.png), auto; +} +body #game[cursor][cursor="5"] { + cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_5.png), auto; +} +body #game[cursor][cursor="6"] { + cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_6.png), auto; +} +body #game[cursor][cursor="7"] { + cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_7.png), auto; +} +body #game[cursor][cursor="8"] { + cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_8.png), auto; +} +body #game[cursor][cursor="9"] { + cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_9.png), auto; +} +body #game[cursor][cursor="0"] { + cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/199011/cursor_clear.png), auto; +} +body #game #board { + display: -webkit-box; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + flex-direction: column; + -webkit-transform: translateX(50px); + transform: translateX(50px); + min-width: 600px; + min-height: 600px; + max-width: 600px; + max-height: 600px; + margin-top: 10px; +} +body #game #board .row { + display: -webkit-box; + display: flex; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + flex-direction: row; +} +body #game #board .row > div { + width: 80px; + height: 80px; + margin: 10px; +} +body #game #board .row > div.number, body #game #board .row > div.symbol, body #game #board .row > div.result { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + line-height: 80px; + text-align: center; + font-size: 60px; +} +body #game #board .row > div.number, body #game #board .row > div.symbol { + border-radius: 8px; +} +body #game #board .row > div.number { + background-color: var(--number-background); + box-shadow: 0 8px 0 0 var(--number-shadow); + -webkit-transition: all .25s -.1s; + transition: all .25s -.1s; +} +body #game #board .row > div.number:active { + -webkit-transform: translateY(8px); + transform: translateY(8px); + box-shadow: 0 0px 0 0 #434596; +} +body #game #board .row > div.symbol { + background-color: var(--symbol-background); + box-shadow: 0 8px 0 0 var(--symbol-shadow); +} +body #game #board .row > div.result { + position: relative; + font-size: 40px; +} +body #game #board .row > div.result.correct { + color: var(--text-green); +} +body #game #board .row > div.result.wrong { + color: var(--text-red); +} +body #game #keyboard { + width: 500px; + display: -webkit-box; + display: flex; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + flex-direction: row; + -webkit-box-pack: center; + justify-content: center; + flex-wrap: wrap; + margin-bottom: 20px; +} +body #game #keyboard .key { + width: 80px; + height: 80px; + line-height: 80px; + margin: 10px; + font-size: 52px; + border-radius: 8px; + text-align: center; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + background-color: var(--number-background); + box-shadow: 0 8px 0 0 var(--number-shadow); + -webkit-transition: all .25s -.1s; + transition: all .25s -.1s; +} +body #game #keyboard .key.used { + background-color: var(--symbol-background); + box-shadow: 0 8px 0 0 var(--symbol-shadow); +} +body #game #keyboard .key.used:active { + -webkit-transform: translateY(8px); + transform: translateY(8px); + box-shadow: 0 0px 0 0 var(--symbol-shadow); +} +body #game #keyboard .key.used.selected { + color: var(--symbol-background); + background-color: var(--selected-background); + box-shadow: 0 16px 0 0 var(--selected-shadow); + -webkit-transform: translateY(-8px); + transform: translateY(-8px); +} +body #game #keyboard .key.used.selected:active { + -webkit-transform: translateY(8px); + transform: translateY(8px); + box-shadow: 0 0px 0 0 var(--selected-shadow); +} +body #game #keyboard .key:not(.used):active { + -webkit-transform: translateY(8px); + transform: translateY(8px); + box-shadow: 0 0px 0 0 var(--number-shadow); +} +body #game #keyboard .key:not(.used).selected { + color: var(--number-background); + background-color: var(--text); + box-shadow: 0 16px 0 0 var(--text-fade); + -webkit-transform: translateY(-8px); + transform: translateY(-8px); +} +body #game #keyboard .key:not(.used).selected:active { + -webkit-transform: translateY(8px); + transform: translateY(8px); + box-shadow: 0 0px 0 0 var(--text-fade); +} +body #winner { + position: fixed; + top: 50%; + left: 0px; + right: 0px; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); + background-color: #2ABA66; + text-align: center; +} +body #winner .header { + margin: 40px 0; + font-size: 60px; + margin-bottom: -20px; +} +body #winner #new { + margin-bottom: 30px; +} +body #winner #close { + position: absolute; + top: 0px; + right: 0px; + padding: 0 14px; + font-size: 32px; +} +body #winner:not(.show) { + display: none; } \ No newline at end of file diff --git a/Games/Mamba_Mayhem/README.md b/Games/Mamba_Mayhem/README.md index 3f8edb86c9..57adec9902 100644 --- a/Games/Mamba_Mayhem/README.md +++ b/Games/Mamba_Mayhem/README.md @@ -1,30 +1,30 @@ -# **Mamba Mayhem** - ---- - -
- -## **Description ๐Ÿ“ƒ** -The Snake Game is a classic game where the player maneuvers a line (the snake) which grows in length, with the line itself being a primary obstacle. - -
- -## **Functionalities ๐ŸŽฎ** -- The game uses the arrow keys for navigation. -- The snake grows in length when it consumes the food that randomly appears. -- The game ends when the snake hits the game wall or its own body. - -
- -## **How to play? ๐Ÿ•น๏ธ** -- Use the arrow keys to navigate the snake. -- Try to consume the food that appears randomly. -- Avoid hitting the game wall or the snake's own body. - -
- -## **Screenshots ๐Ÿ“ธ** - -![image](./assets/images/Mamba_Mayhem.png) - -
+# **Mamba Mayhem** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +The Snake Game is a classic game where the player maneuvers a line (the snake) which grows in length, with the line itself being a primary obstacle. + +
+ +## **Functionalities ๐ŸŽฎ** +- The game uses the arrow keys for navigation. +- The snake grows in length when it consumes the food that randomly appears. +- The game ends when the snake hits the game wall or its own body. + +
+ +## **How to play? ๐Ÿ•น๏ธ** +- Use the arrow keys to navigate the snake. +- Try to consume the food that appears randomly. +- Avoid hitting the game wall or the snake's own body. + +
+ +## **Screenshots ๐Ÿ“ธ** + +![image](./assets/images/Mamba_Mayhem.png) + +
diff --git a/Games/Mario Matching Game/Readme.md b/Games/Mario Matching Game/Readme.md index 3c80472ede..f614a32ba7 100644 --- a/Games/Mario Matching Game/Readme.md +++ b/Games/Mario Matching Game/Readme.md @@ -1,23 +1,23 @@ -# Mario Matching Game - -Welcome to the Mario Matching Game! This game challenges players to match three identical images within a specified time limit. - -## Image - -![image](https://github.com/dpvasani/Mario-Matching-Game/assets/109815626/fde14fbe-05fc-4231-9d26-ec8e975a633d) - - -## Gameplay - -- The game board consists of multiple tiles, each containing an image. - -## Features - -- Reset Button: Start a new game round by resetting the board and timer. - -## Technologies Used - -- HTML -- CSS -- JavaScript - +# Mario Matching Game + +Welcome to the Mario Matching Game! This game challenges players to match three identical images within a specified time limit. + +## Image + +![image](https://github.com/dpvasani/Mario-Matching-Game/assets/109815626/fde14fbe-05fc-4231-9d26-ec8e975a633d) + + +## Gameplay + +- The game board consists of multiple tiles, each containing an image. + +## Features + +- Reset Button: Start a new game round by resetting the board and timer. + +## Technologies Used + +- HTML +- CSS +- JavaScript + diff --git a/Games/Mario Matching Game/index.html b/Games/Mario Matching Game/index.html index 5ab2a96528..3d47afd8c1 100644 --- a/Games/Mario Matching Game/index.html +++ b/Games/Mario Matching Game/index.html @@ -1,34 +1,34 @@ - - - - - - - - - - - Game - - -

Mario Matching Game

-
- - - -
- - - - + + + + + + + + + + + Game + + +

Mario Matching Game

+
+ + + +
+ + + + diff --git a/Games/Mario Matching Game/script.js b/Games/Mario Matching Game/script.js index 6ebc1da48d..95526e91b7 100644 --- a/Games/Mario Matching Game/script.js +++ b/Games/Mario Matching Game/script.js @@ -1,30 +1,30 @@ -let chk1 = document.querySelector('#chk1'); -let chk2 = document.querySelector('#chk2'); -let chk3 = document.querySelector('#chk3'); -let reset = document.querySelector('.reset'); -chk1.onclick = function(){ - if(chk1.checked === true){ - chk1.disabled = 'true' - } -} -chk2.onclick = function(){ - if(chk2.checked === true){ - chk2.disabled = 'true' - } -} -chk3.onclick = function(){ - if(chk3.checked === true){ - chk3.disabled = 'true' - } -} - -reset.onclick = function(){ - chk1.disabled = false - chk1.checked = false - - chk2.disabled = false - chk2.checked = false - - chk3.disabled = false - chk3.checked = false +let chk1 = document.querySelector('#chk1'); +let chk2 = document.querySelector('#chk2'); +let chk3 = document.querySelector('#chk3'); +let reset = document.querySelector('.reset'); +chk1.onclick = function(){ + if(chk1.checked === true){ + chk1.disabled = 'true' + } +} +chk2.onclick = function(){ + if(chk2.checked === true){ + chk2.disabled = 'true' + } +} +chk3.onclick = function(){ + if(chk3.checked === true){ + chk3.disabled = 'true' + } +} + +reset.onclick = function(){ + chk1.disabled = false + chk1.checked = false + + chk2.disabled = false + chk2.checked = false + + chk3.disabled = false + chk3.checked = false } \ No newline at end of file diff --git a/Games/Mario Matching Game/style.css b/Games/Mario Matching Game/style.css index 6edfd681d5..86816c9fa0 100644 --- a/Games/Mario Matching Game/style.css +++ b/Games/Mario Matching Game/style.css @@ -1,119 +1,119 @@ -@font-face { - font-family: 'New Super Mario Font U', sans-serif; - src: url(https://fonts.cdnfonts.com/css/new-super-mario-font-u); -} - -* { - margin: 0; - padding: 0; - font-family: 'New Super Mario Font U', sans-serif; - box-sizing: border-box; -} - -body -{ - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; - min-height: 100vh; - -} -h2 -{ - padding: 1rem; - text-align: center ; - margin-bottom: 3rem; - font-size: 2.5em; -} -.box -{ - position: relative; - width: 600px; - height: 200px; - border: 1px solid #888888; - box-shadow: 5px 10px #888888; - display: flex; - flex-wrap: wrap; - flex-direction: column; - align-items: center; - justify-content: center; -} -.box label -{ - position: relative; - width: 100%; - height: 33.333%; - border: 1px solid black; - border-bottom: none; -} - -.box label input { - position: relative; - appearance: none; - z-index: 10; -} - -.box label i{ - position:absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-size: 600px; -} - -.box label:nth-child(1) i { - background-image: url(01.jpg); - animation: animate 0.5s steps(3) infinite; -} -.box label:nth-child(2) i { - background-image: url(02.jpg); - animation: animate 0.4s steps(3) infinite; -} -.box label:nth-child(3) i { - background-image: url(03.jpg); - animation: animate 0.7s steps(3) infinite; -} - -@keyframes animate{ - 0% - { - background-position: 0px; - } - 100% - { - background-position: 600px; - } -} - -.box label input:checked ~ i { - animation-play-state: paused; -} - -.reset{ - margin-top: 3rem; - padding: 1rem; - font-size: large; - letter-spacing: 5px; - background-color: rgba(44, 40, 40, 0.897); - color: rgb(255, 255, 255); - border: none; - font-weight: 700; -} - -.reset:active -{ - background: rgba(250, 112, 102, 0.89); - transform: scale(0.95); -} - -@media screen and (max-width:600px) { - .box { - width: 300px; - height: 100px; - } - .box label i{ - background-size: 300px; - } +@font-face { + font-family: 'New Super Mario Font U', sans-serif; + src: url(https://fonts.cdnfonts.com/css/new-super-mario-font-u); +} + +* { + margin: 0; + padding: 0; + font-family: 'New Super Mario Font U', sans-serif; + box-sizing: border-box; +} + +body +{ + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + min-height: 100vh; + +} +h2 +{ + padding: 1rem; + text-align: center ; + margin-bottom: 3rem; + font-size: 2.5em; +} +.box +{ + position: relative; + width: 600px; + height: 200px; + border: 1px solid #888888; + box-shadow: 5px 10px #888888; + display: flex; + flex-wrap: wrap; + flex-direction: column; + align-items: center; + justify-content: center; +} +.box label +{ + position: relative; + width: 100%; + height: 33.333%; + border: 1px solid black; + border-bottom: none; +} + +.box label input { + position: relative; + appearance: none; + z-index: 10; +} + +.box label i{ + position:absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-size: 600px; +} + +.box label:nth-child(1) i { + background-image: url(01.jpg); + animation: animate 0.5s steps(3) infinite; +} +.box label:nth-child(2) i { + background-image: url(02.jpg); + animation: animate 0.4s steps(3) infinite; +} +.box label:nth-child(3) i { + background-image: url(03.jpg); + animation: animate 0.7s steps(3) infinite; +} + +@keyframes animate{ + 0% + { + background-position: 0px; + } + 100% + { + background-position: 600px; + } +} + +.box label input:checked ~ i { + animation-play-state: paused; +} + +.reset{ + margin-top: 3rem; + padding: 1rem; + font-size: large; + letter-spacing: 5px; + background-color: rgba(44, 40, 40, 0.897); + color: rgb(255, 255, 255); + border: none; + font-weight: 700; +} + +.reset:active +{ + background: rgba(250, 112, 102, 0.89); + transform: scale(0.95); +} + +@media screen and (max-width:600px) { + .box { + width: 300px; + height: 100px; + } + .box label i{ + background-size: 300px; + } } \ No newline at end of file diff --git a/Games/Master_Typing/README.md b/Games/Master_Typing/README.md index 158e7a14d1..729d671487 100644 --- a/Games/Master_Typing/README.md +++ b/Games/Master_Typing/README.md @@ -1,41 +1,41 @@ -# **Master_Typing** - ---- - -
- -## **Description ๐Ÿ“ƒ** -- this game is build to improve your muscle memory by giving random keys to click within 1 min. It is built on basic web tech stacks such as html , css , js and bootstrap - -## **functionalities ๐ŸŽฎ** -- random key generation -- fully responsive design -- animated keys -- assessment availability -
- -## **How to play? ๐Ÿ•น๏ธ** -- the game will have animation on one key and you have to press that key -- first press 'Start' button -- now press the animated key -- after ending of 1 min it will provide you the assesment of your capability -- for restrting the game press 'Restart' button -- by practising the keys you will able to improve the muscle memory for you touch typing - -
- -## **Screenshots ๐Ÿ“ธ** - -
- -![image](../../assets/images/Master_Typing.png) - -
- -## **Working video ๐Ÿ“น** - - - [Video](https://i.imgur.com/w56sUaV.mp4) - - [Video] (https://imgur.com/a/uxx8hlM) - +# **Master_Typing** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +- this game is build to improve your muscle memory by giving random keys to click within 1 min. It is built on basic web tech stacks such as html , css , js and bootstrap + +## **functionalities ๐ŸŽฎ** +- random key generation +- fully responsive design +- animated keys +- assessment availability +
+ +## **How to play? ๐Ÿ•น๏ธ** +- the game will have animation on one key and you have to press that key +- first press 'Start' button +- now press the animated key +- after ending of 1 min it will provide you the assesment of your capability +- for restrting the game press 'Restart' button +- by practising the keys you will able to improve the muscle memory for you touch typing + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ +![image](../../assets/images/Master_Typing.png) + +
+ +## **Working video ๐Ÿ“น** + + + [Video](https://i.imgur.com/w56sUaV.mp4) + + [Video] (https://imgur.com/a/uxx8hlM) + diff --git a/Games/Master_Typing/index.html b/Games/Master_Typing/index.html index 6a13c49bcb..39d2543675 100644 --- a/Games/Master_Typing/index.html +++ b/Games/Master_Typing/index.html @@ -1,175 +1,175 @@ - - - - - - - - Master Typing - - - - - -
-
- -
-
-

MASTER TYPING

-
-
- - -
- -
- -

Hands on the keyboard ๐Ÿ‘€

-
00:00
-
-
Total Key pressed: 0
-
Correct: 0
-
Incorrect: 0
-
- - -
-
    -
  • ESC
  • -
  • 1
  • -
  • 2
  • -
  • 3
  • -
  • 4
  • -
  • 5
  • -
  • 6
  • -
  • 7
  • -
  • 8
  • -
  • 9
  • -
  • 0
  • -
  • -
  • -
  • +
  • -
  • BACK
  • -
-
    -
  • TAB
  • -
  • Q
  • -
  • W
  • -
  • E
  • -
  • R
  • -
  • T
  • -
  • Y
  • -
  • U
  • -
  • I
  • -
  • O
  • -
  • P
  • -
  • [
  • -
  • ]
  • -
  • \
  • -
-
    -
  • CAPS
  • -
  • A
  • -
  • S
  • -
  • D
  • -
  • F
  • -
  • G
  • -
  • H
  • -
  • J
  • -
  • K
  • -
  • L
  • -
  • :
  • -
  • ''
  • -
  • ENTER
  • -
-
    -
  • SHIFT
  • -
  • Z
  • -
  • X
  • -
  • C
  • -
  • V
  • -
  • B
  • -
  • N
  • -
  • M
  • -
  • ,
  • -
  • .
  • -
  • ;
  • -
  • SHIFT
  • -
-
- -
- -
- - -
- -
- - - - - - - - - - - - - - - -
-
-

Rate the Game

-
- - - - - -
-
- - -
- -
-
- - -
- - - -
Only 10 seconds left!
- - - - - - - - + + + + + + + + Master Typing + + + + + +
+
+ +
+
+

MASTER TYPING

+
+
+ + +
+ +
+ +

Hands on the keyboard ๐Ÿ‘€

+
00:00
+
+
Total Key pressed: 0
+
Correct: 0
+
Incorrect: 0
+
+ + +
+
    +
  • ESC
  • +
  • 1
  • +
  • 2
  • +
  • 3
  • +
  • 4
  • +
  • 5
  • +
  • 6
  • +
  • 7
  • +
  • 8
  • +
  • 9
  • +
  • 0
  • +
  • -
  • +
  • +
  • +
  • BACK
  • +
+
    +
  • TAB
  • +
  • Q
  • +
  • W
  • +
  • E
  • +
  • R
  • +
  • T
  • +
  • Y
  • +
  • U
  • +
  • I
  • +
  • O
  • +
  • P
  • +
  • [
  • +
  • ]
  • +
  • \
  • +
+
    +
  • CAPS
  • +
  • A
  • +
  • S
  • +
  • D
  • +
  • F
  • +
  • G
  • +
  • H
  • +
  • J
  • +
  • K
  • +
  • L
  • +
  • :
  • +
  • ''
  • +
  • ENTER
  • +
+
    +
  • SHIFT
  • +
  • Z
  • +
  • X
  • +
  • C
  • +
  • V
  • +
  • B
  • +
  • N
  • +
  • M
  • +
  • ,
  • +
  • .
  • +
  • ;
  • +
  • SHIFT
  • +
+
+ +
+ +
+ + +
+ +
+ + + + + + + + + + + + + + + +
+
+

Rate the Game

+
+ + + + + +
+
+ + +
+ +
+
+ + +
+ + + +
Only 10 seconds left!
+ + + + + + + + diff --git a/Games/Mastermind_Mania/README.md b/Games/Mastermind_Mania/README.md index f7a0994084..037d569e5a 100644 --- a/Games/Mastermind_Mania/README.md +++ b/Games/Mastermind_Mania/README.md @@ -1,41 +1,41 @@ -# **Mastermind Mania** - ---- - -
-Are you a Mastermind? -Let`s Check - -## **Description ๐Ÿ“ƒ** -Mastermind Mania is a Mathematical calculation game for KIDS, that begins with a sum that must be solved with 4 mcq`s answers. If the answer is correct, you will earn a point and the game continues; otherwise, you lose. - - -## **functionalities ๐ŸŽฎ** -The game is designed using Html, CSS, and javascript. - -
- -## **How to play? ๐Ÿ•น๏ธ** -The calculations will be based on Addition, Subtraction, Multiplication, and Division. -There is a sum on the screen and some options(MCQ`s), solve the sum and choose the correct option. -if the choosen ansswer is correct you will earn a point aor you lose. -- -- - -
- -## **Screenshots ๐Ÿ“ธ** - -
Image Description -
-Image Description - -
- - - - - - -
- +# **Mastermind Mania** + +--- + +
+Are you a Mastermind? +Let`s Check + +## **Description ๐Ÿ“ƒ** +Mastermind Mania is a Mathematical calculation game for KIDS, that begins with a sum that must be solved with 4 mcq`s answers. If the answer is correct, you will earn a point and the game continues; otherwise, you lose. + + +## **functionalities ๐ŸŽฎ** +The game is designed using Html, CSS, and javascript. + +
+ +## **How to play? ๐Ÿ•น๏ธ** +The calculations will be based on Addition, Subtraction, Multiplication, and Division. +There is a sum on the screen and some options(MCQ`s), solve the sum and choose the correct option. +if the choosen ansswer is correct you will earn a point aor you lose. +- +- + +
+ +## **Screenshots ๐Ÿ“ธ** + +
Image Description +
+Image Description + +
+ + + + + + +
+ diff --git a/Games/Mastermind_Mania/css/style.css b/Games/Mastermind_Mania/css/style.css index 0aa874549c..86d64bea53 100644 --- a/Games/Mastermind_Mania/css/style.css +++ b/Games/Mastermind_Mania/css/style.css @@ -1,214 +1,214 @@ -@import url('https://fonts.googleapis.com/css2?family=Play&display=swap'); - -* { - margin: 0; - padding: 0; - box-sizing: border-box; - -} - -body { - width: 100%; - height: 100vh; - /* background: radial-gradient(circle, #2b1818, #c36767); */ - background-color: black; - overflow: hidden; - -} - -h1 { - text-align: center; - font-family: 'Play', sans-serif; - position: relative; - top: 40px; - color: #8de010; -} - -#container { - height: 440px; - width: 560px; - background-color: #db80ea; - margin: 0 auto; - top: 80px; - padding: 10px; - border-radius: 10px; - box-shadow: 0px 4px 0px 0px #ea73c0; - /* box-shadow: [horizontal offset] [vertical offset] - [blur radius] [spread radius] [color]; */ - position: relative; -} - -#score { - background-color: #b8ed08; - color: #252a07; - padding: 11px; - position: absolute; - right: 11px; - box-shadow: 0px 4px #3f4804; -} - -#correct { - position: absolute; - left: 45%; - background-color: #42e252; - color: white; - padding: 11px; - display: none; -} - -#wrong { - position: absolute; - left: 42%; - background-color: #de401a; - color: white; - padding: 11px; - display: none; -} - -#question { - width: 450px; - height: 150px; - margin: 50px auto 10px auto; - background-color: #2cb3d8; - box-shadow: 0px 4px #535aa8; - text-align: center; - /* for horizontal center */ - font-size: 100px; - font-family: 'Play', sans-serif; - color: black; -} - -#instruction { - width: 450px; - height: 50px; - background-color: #d93bd6; - margin: 10px auto; - text-align: center; - line-height: 50px; - box-shadow: 0px 4px #8243b9; -} - -#choices { - width: 450px; - height: 100px; - margin: 5px auto; - display: flex; - justify-content: space-between; -} - -.box { - width: 85px; - height: 85px; - background-color: white; - flex-direction: column; - border-radius: 3px; - cursor: pointer; - box-shadow: 0px 4px rgba(0, 0, 0, 0.2); - text-align: center; - line-height: 80px; - position: relative; - transition: all 0.2s; -} - -.box:hover, -#startreset:hover { - background-color: #9c89F6; - color: white; - box-shadow: 0px 4px #6b54d3; -} - -.box:active, -#startreset:active { - box-shadow: 0px 0px #6b54d3; - top: 4px; -} - -#startreset { - width: 100px; - padding: 10px; - background-color: rgba(255, 255, 255, 0.5); - margin: 0px auto; - border-radius: 3px; - cursor: pointer; - box-shadow: 0px 4px rgba(0, 0, 0, 0.2); - text-align: center; - position: relative; - transition: all 0.2s; -} - -#timeremaining { - width: 180px; - padding: 10px; - position: absolute; - top: 385px; - left: 370px; - background-color: rgba(16, 204, 179, 0.7); - border-radius: 3px; - box-shadow: 0px 4px rgba(0, 0, 0, 0.2); - display: none; -} - -#gameOver { - width: 500px; - height: 200px; - background: linear-gradient(#F3CA6B, #F3706C); - color: white; - font-size: 2.5rem; - text-align: center; - text-transform: uppercase; - position: absolute; - top: 100px; - left: 40px; - padding: 50px; - z-index: 2; - display: none; -} - -@media (max-width: 570px) { - #container { - width: 440px; - top: 60px; - } - - #correct { - left: 40%; - } - - #wrong { - left: 38%; - } - - #question, - #instruction, - #choices { - width: 420px; - } - - #startreset { - width: 205px; - margin-left: 0; - } - - #timeremaining { - width: 205px; - left: 225px; - text-align: center; - display: block; - } - - #gameOver { - width: 400px; - height: 250px; - background: linear-gradient(#F3CA6B, #F3706C); - color: white; - font-size: 2rem; - text-align: center; - text-transform: uppercase; - position: absolute; - top: 80px; - left: 20px; - padding-top: 90px; - z-index: 2; - display: none; - } +@import url('https://fonts.googleapis.com/css2?family=Play&display=swap'); + +* { + margin: 0; + padding: 0; + box-sizing: border-box; + +} + +body { + width: 100%; + height: 100vh; + /* background: radial-gradient(circle, #2b1818, #c36767); */ + background-color: black; + overflow: hidden; + +} + +h1 { + text-align: center; + font-family: 'Play', sans-serif; + position: relative; + top: 40px; + color: #8de010; +} + +#container { + height: 440px; + width: 560px; + background-color: #db80ea; + margin: 0 auto; + top: 80px; + padding: 10px; + border-radius: 10px; + box-shadow: 0px 4px 0px 0px #ea73c0; + /* box-shadow: [horizontal offset] [vertical offset] + [blur radius] [spread radius] [color]; */ + position: relative; +} + +#score { + background-color: #b8ed08; + color: #252a07; + padding: 11px; + position: absolute; + right: 11px; + box-shadow: 0px 4px #3f4804; +} + +#correct { + position: absolute; + left: 45%; + background-color: #42e252; + color: white; + padding: 11px; + display: none; +} + +#wrong { + position: absolute; + left: 42%; + background-color: #de401a; + color: white; + padding: 11px; + display: none; +} + +#question { + width: 450px; + height: 150px; + margin: 50px auto 10px auto; + background-color: #2cb3d8; + box-shadow: 0px 4px #535aa8; + text-align: center; + /* for horizontal center */ + font-size: 100px; + font-family: 'Play', sans-serif; + color: black; +} + +#instruction { + width: 450px; + height: 50px; + background-color: #d93bd6; + margin: 10px auto; + text-align: center; + line-height: 50px; + box-shadow: 0px 4px #8243b9; +} + +#choices { + width: 450px; + height: 100px; + margin: 5px auto; + display: flex; + justify-content: space-between; +} + +.box { + width: 85px; + height: 85px; + background-color: white; + flex-direction: column; + border-radius: 3px; + cursor: pointer; + box-shadow: 0px 4px rgba(0, 0, 0, 0.2); + text-align: center; + line-height: 80px; + position: relative; + transition: all 0.2s; +} + +.box:hover, +#startreset:hover { + background-color: #9c89F6; + color: white; + box-shadow: 0px 4px #6b54d3; +} + +.box:active, +#startreset:active { + box-shadow: 0px 0px #6b54d3; + top: 4px; +} + +#startreset { + width: 100px; + padding: 10px; + background-color: rgba(255, 255, 255, 0.5); + margin: 0px auto; + border-radius: 3px; + cursor: pointer; + box-shadow: 0px 4px rgba(0, 0, 0, 0.2); + text-align: center; + position: relative; + transition: all 0.2s; +} + +#timeremaining { + width: 180px; + padding: 10px; + position: absolute; + top: 385px; + left: 370px; + background-color: rgba(16, 204, 179, 0.7); + border-radius: 3px; + box-shadow: 0px 4px rgba(0, 0, 0, 0.2); + display: none; +} + +#gameOver { + width: 500px; + height: 200px; + background: linear-gradient(#F3CA6B, #F3706C); + color: white; + font-size: 2.5rem; + text-align: center; + text-transform: uppercase; + position: absolute; + top: 100px; + left: 40px; + padding: 50px; + z-index: 2; + display: none; +} + +@media (max-width: 570px) { + #container { + width: 440px; + top: 60px; + } + + #correct { + left: 40%; + } + + #wrong { + left: 38%; + } + + #question, + #instruction, + #choices { + width: 420px; + } + + #startreset { + width: 205px; + margin-left: 0; + } + + #timeremaining { + width: 205px; + left: 225px; + text-align: center; + display: block; + } + + #gameOver { + width: 400px; + height: 250px; + background: linear-gradient(#F3CA6B, #F3706C); + color: white; + font-size: 2rem; + text-align: center; + text-transform: uppercase; + position: absolute; + top: 80px; + left: 20px; + padding-top: 90px; + z-index: 2; + display: none; + } } \ No newline at end of file diff --git a/Games/Mastermind_Mania/index.html b/Games/Mastermind_Mania/index.html index ccbe050979..de24c947a1 100644 --- a/Games/Mastermind_Mania/index.html +++ b/Games/Mastermind_Mania/index.html @@ -1,56 +1,56 @@ - - - - - - The Math Game - - - - - - -
-

Mastermind_Mania

-
-
- Score : 0 -
-
- Correct -
-
- Try Again -
-
- -
-
- Click on the Correct Answer -
-
-
-
-
-
-
-
- Start Game -
-
- Time remaining : - 60 - sec -
-
-
-
- - - - - - + + + + + + The Math Game + + + + + + +
+

Mastermind_Mania

+
+
+ Score : 0 +
+
+ Correct +
+
+ Try Again +
+
+ +
+
+ Click on the Correct Answer +
+
+
+
+
+
+
+
+ Start Game +
+
+ Time remaining : + 60 + sec +
+
+
+
+ + + + + + diff --git a/Games/Mastermind_Mania/js/script.js b/Games/Mastermind_Mania/js/script.js index a5840bf1d5..fbd393ac0f 100644 --- a/Games/Mastermind_Mania/js/script.js +++ b/Games/Mastermind_Mania/js/script.js @@ -1,148 +1,148 @@ -var playing = false; -var score = 0; -var action; -var timeRemaining; -var correctAnswer; - -//if we click on the start/reset -document.querySelector("#startreset").onclick = () => -{ - //if we are playing - if (playing) { - //reload page - location.reload(); - } - // if we are not playing - else { - //change the mode of playing - playing = true; - //set score to 0 - score = 0; - document.querySelector("#scorevalue").innerHTML = score; - //show countdown box - showElement("timeremaining"); - //countdown time - timeRemaining = 60; - //show countdown in sec - document.querySelector("#timeremainingvalue").innerHTML = timeRemaining; - //hide the game over box - hideElement("gameOver"); - //change button to reset - document.querySelector("#startreset").innerHTML = "Reset Game"; - //start countdown - startCountdown(); - //generate new Q&A - generateQA(); - } -} - -for (let i = 1; i < 5; i++) { - //if we click on answer box - document.querySelector("#box" + i).onclick = () => - { - //if we are playing - if (playing) { - //if correct answer - if (document.querySelector("#box" + i).innerHTML == correctAnswer) { - //increase score by 1 - score++; - //set score value - document.querySelector("#scorevalue").innerHTML = score; - //hide wrong box and show correct box - hideElement("wrong"); - showElement("correct"); - setTimeout(() => - { - hideElement("correct"); - }, 1000); - - //generate new Q&A - generateQA(); - } - //if wrong answer - else { - //show wrong box and hide correct box - hideElement("correct"); - showElement("wrong"); - setTimeout(() => - { - hideElement("wrong"); - }, 1000); - } - } - } -} - -function startCountdown() -{ - action = setInterval(() => - { - //reduce time by 1sec in loops - timeRemaining -= 1; - //show countdown in sec - document.querySelector("#timeremainingvalue").innerHTML = timeRemaining; - //no time left - if (timeRemaining == 0) { - //game over - stopCountdown(); - //show game over box - showElement("gameOver"); - //show game over message and score - document.querySelector("#gameOver").innerHTML = "

Game Over!

Your score is : " + score + ".

"; - //hide countdown - hideElement("timeremaining"); - //hide correct box - hideElement("correct"); - //hide wrong box - hideElement("wrong"); - //change the mode of playing - playing = false; - //change button to start - document.querySelector("#startreset").innerHTML = "Start Game"; - } - }, 1000); -} - -function stopCountdown() -{ - //stop countdown - clearInterval(action); -} - -function hideElement(Id) -{ - document.querySelector("#" + Id).style.display = "none"; -} - -function showElement(Id) -{ - document.querySelector("#" + Id).style.display = "block"; -} - -function generateQA() -{ - //generating random number between 1-9 - var x = 1 + Math.round(9 * Math.random()); - var y = 1 + Math.round(9 * Math.random()); - //correct answer - correctAnswer = x * y; - //setting question - document.querySelector("#question").innerHTML = x + " x " + y; - //setting random position for correct answer - var correctPosition = 1 + Math.round(3 * Math.random()); - document.querySelector("#box" + correctPosition).innerHTML = correctAnswer; - - var answers = [correctAnswer]; - - //checking and replacing duplicate values - for (let i = 1; i < 5; i++) { - if (i != correctPosition) { - var wrongAnswer; - do { - wrongAnswer = (1 + Math.round(9 * Math.random())) * (1 + Math.round(9 * Math.random())); - } while ((answers.indexOf(wrongAnswer)) > -1) - document.querySelector("#box" + i).innerHTML = wrongAnswer; - answers.push(wrongAnswer) - } - } -} +var playing = false; +var score = 0; +var action; +var timeRemaining; +var correctAnswer; + +//if we click on the start/reset +document.querySelector("#startreset").onclick = () => +{ + //if we are playing + if (playing) { + //reload page + location.reload(); + } + // if we are not playing + else { + //change the mode of playing + playing = true; + //set score to 0 + score = 0; + document.querySelector("#scorevalue").innerHTML = score; + //show countdown box + showElement("timeremaining"); + //countdown time + timeRemaining = 60; + //show countdown in sec + document.querySelector("#timeremainingvalue").innerHTML = timeRemaining; + //hide the game over box + hideElement("gameOver"); + //change button to reset + document.querySelector("#startreset").innerHTML = "Reset Game"; + //start countdown + startCountdown(); + //generate new Q&A + generateQA(); + } +} + +for (let i = 1; i < 5; i++) { + //if we click on answer box + document.querySelector("#box" + i).onclick = () => + { + //if we are playing + if (playing) { + //if correct answer + if (document.querySelector("#box" + i).innerHTML == correctAnswer) { + //increase score by 1 + score++; + //set score value + document.querySelector("#scorevalue").innerHTML = score; + //hide wrong box and show correct box + hideElement("wrong"); + showElement("correct"); + setTimeout(() => + { + hideElement("correct"); + }, 1000); + + //generate new Q&A + generateQA(); + } + //if wrong answer + else { + //show wrong box and hide correct box + hideElement("correct"); + showElement("wrong"); + setTimeout(() => + { + hideElement("wrong"); + }, 1000); + } + } + } +} + +function startCountdown() +{ + action = setInterval(() => + { + //reduce time by 1sec in loops + timeRemaining -= 1; + //show countdown in sec + document.querySelector("#timeremainingvalue").innerHTML = timeRemaining; + //no time left + if (timeRemaining == 0) { + //game over + stopCountdown(); + //show game over box + showElement("gameOver"); + //show game over message and score + document.querySelector("#gameOver").innerHTML = "

Game Over!

Your score is : " + score + ".

"; + //hide countdown + hideElement("timeremaining"); + //hide correct box + hideElement("correct"); + //hide wrong box + hideElement("wrong"); + //change the mode of playing + playing = false; + //change button to start + document.querySelector("#startreset").innerHTML = "Start Game"; + } + }, 1000); +} + +function stopCountdown() +{ + //stop countdown + clearInterval(action); +} + +function hideElement(Id) +{ + document.querySelector("#" + Id).style.display = "none"; +} + +function showElement(Id) +{ + document.querySelector("#" + Id).style.display = "block"; +} + +function generateQA() +{ + //generating random number between 1-9 + var x = 1 + Math.round(9 * Math.random()); + var y = 1 + Math.round(9 * Math.random()); + //correct answer + correctAnswer = x * y; + //setting question + document.querySelector("#question").innerHTML = x + " x " + y; + //setting random position for correct answer + var correctPosition = 1 + Math.round(3 * Math.random()); + document.querySelector("#box" + correctPosition).innerHTML = correctAnswer; + + var answers = [correctAnswer]; + + //checking and replacing duplicate values + for (let i = 1; i < 5; i++) { + if (i != correctPosition) { + var wrongAnswer; + do { + wrongAnswer = (1 + Math.round(9 * Math.random())) * (1 + Math.round(9 * Math.random())); + } while ((answers.indexOf(wrongAnswer)) > -1) + document.querySelector("#box" + i).innerHTML = wrongAnswer; + answers.push(wrongAnswer) + } + } +} diff --git a/Games/Math_Race_Game/README.md b/Games/Math_Race_Game/README.md index 33f2d2e234..00e25a0c50 100644 --- a/Games/Math_Race_Game/README.md +++ b/Games/Math_Race_Game/README.md @@ -1,23 +1,23 @@ -# **Math Race Game** - ---- - -
- -## **Description ๐Ÿ“ƒ** -- The game is between the player and the computer. -- Player have to answer math related questions. -- Each play consists of 10 questions. -- If player answers wrong the playes' car will not move forward. -- If player answers correctly, the playes' car moves forward. -- For each question computer's car moves forward randomly. -- After 10 question the game declares the winner based on the distance both cars moved. -- Player can use replay button to start a new game. - -
- -## **Screenshots ๐Ÿ“ธ** - -
Image Description -
+# **Math Race Game** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +- The game is between the player and the computer. +- Player have to answer math related questions. +- Each play consists of 10 questions. +- If player answers wrong the playes' car will not move forward. +- If player answers correctly, the playes' car moves forward. +- For each question computer's car moves forward randomly. +- After 10 question the game declares the winner based on the distance both cars moved. +- Player can use replay button to start a new game. + +
+ +## **Screenshots ๐Ÿ“ธ** + +
Image Description +
Image Description \ No newline at end of file diff --git a/Games/Math_Race_Game/index.html b/Games/Math_Race_Game/index.html index cd3feb45f8..36dd16bf89 100644 --- a/Games/Math_Race_Game/index.html +++ b/Games/Math_Race_Game/index.html @@ -1,36 +1,36 @@ - - - - - - - Math Race Game - - - - -
-

Math Race Game

-
-
- You
-
- Computer
-
-
-
-
-
-
- -
- - -
- - - -
- - - - + + + + + + + Math Race Game + + + + +
+

Math Race Game

+
+
- You
+
- Computer
+
+
+
+
+
+
+ +
+ + +
+ + + +
+ + + + \ No newline at end of file diff --git a/Games/Math_Race_Game/script.js b/Games/Math_Race_Game/script.js index f8c37e6d0c..c7ad1d3043 100644 --- a/Games/Math_Race_Game/script.js +++ b/Games/Math_Race_Game/script.js @@ -1,84 +1,84 @@ -// script.js -let playerPosition = 0; -let computerPosition = 0; -let num1, num2, operation, correctAnswer; -let questionCount = 0; -const totalQuestions = 10; -const operations = ['+', '-', '*', '/'] - -function generateQuestion() { - if (questionCount < totalQuestions) { - num1 = Math.floor(Math.random() * 10) + 1; - num2 = Math.floor(Math.random() * 10) + 1; - operation = operations[parseInt(Math.random() * 100 % 4)] - console.log(parseInt(Math.random()*100%4)) - correctAnswer = parseInt(eval(`${num1} ${operation} ${num2}`)); - document.getElementById('question').innerText = `${questionCount + 1}. What is ${num1} ${operation} ${num2}?`; - } else { - endGame(); - } -} - -function checkAnswer() { - const userAnswer = parseInt(document.getElementById('answer').value); - if (userAnswer === correctAnswer) { - playerPosition += 10; - if (Math.random() > 0.2) { - computerPosition += 10; - } - document.getElementById('result').innerText = 'Correct!'; - document.getElementById('result').style.color = 'green'; - } else { - computerPosition+=10; - document.getElementById('result').innerText = 'Incorrect. Try again!'; - document.getElementById('result').style.color = 'red'; - } - moveCharacter('player', playerPosition); - moveCharacter('computer', computerPosition); - document.getElementById('answer').value = ''; - questionCount++; - generateQuestion(); -} - -function moveCharacter(character, position) { - document.getElementById(character).style.bottom = position + 'px'; -} - -function checkWinner() { - if (playerPosition > computerPosition) { - return `You wins! You win by ${playerPosition-computerPosition} points.`; - } else if (computerPosition > playerPosition) { - return `Computer wins! You loss by ${computerPosition-playerPosition} points.`; - } else { - return "It's a tie!"; - } -} - -function endGame() { - document.getElementById('question').style.display = 'none'; - document.getElementById('answer').style.display = 'none'; - document.getElementById('result').style.display = 'none'; - document.getElementById('replay-button').style.display = 'block'; - document.getElementById('final-result').innerText = checkWinner(); - document.getElementById('final-result').style.display = 'block'; - document.getElementById('submit').style.display = 'none'; -} - -function resetGame() { - playerPosition = 0; - computerPosition = 0; - questionCount = 0; - moveCharacter('player', playerPosition); - moveCharacter('computer', computerPosition); - document.getElementById('question').style.display = 'block'; - document.getElementById('answer').style.display = 'block'; - document.getElementById('result').style.display = 'block'; - document.getElementById('result').textContent = ''; - document.getElementById('replay-button').style.display = 'none'; - document.getElementById('final-result').style.display = 'none'; - document.getElementById('submit').style.display = 'block'; - generateQuestion(); -} - -// Initialize the game -generateQuestion(); +// script.js +let playerPosition = 0; +let computerPosition = 0; +let num1, num2, operation, correctAnswer; +let questionCount = 0; +const totalQuestions = 10; +const operations = ['+', '-', '*', '/'] + +function generateQuestion() { + if (questionCount < totalQuestions) { + num1 = Math.floor(Math.random() * 10) + 1; + num2 = Math.floor(Math.random() * 10) + 1; + operation = operations[parseInt(Math.random() * 100 % 4)] + console.log(parseInt(Math.random()*100%4)) + correctAnswer = parseInt(eval(`${num1} ${operation} ${num2}`)); + document.getElementById('question').innerText = `${questionCount + 1}. What is ${num1} ${operation} ${num2}?`; + } else { + endGame(); + } +} + +function checkAnswer() { + const userAnswer = parseInt(document.getElementById('answer').value); + if (userAnswer === correctAnswer) { + playerPosition += 10; + if (Math.random() > 0.2) { + computerPosition += 10; + } + document.getElementById('result').innerText = 'Correct!'; + document.getElementById('result').style.color = 'green'; + } else { + computerPosition+=10; + document.getElementById('result').innerText = 'Incorrect. Try again!'; + document.getElementById('result').style.color = 'red'; + } + moveCharacter('player', playerPosition); + moveCharacter('computer', computerPosition); + document.getElementById('answer').value = ''; + questionCount++; + generateQuestion(); +} + +function moveCharacter(character, position) { + document.getElementById(character).style.bottom = position + 'px'; +} + +function checkWinner() { + if (playerPosition > computerPosition) { + return `You wins! You win by ${playerPosition-computerPosition} points.`; + } else if (computerPosition > playerPosition) { + return `Computer wins! You loss by ${computerPosition-playerPosition} points.`; + } else { + return "It's a tie!"; + } +} + +function endGame() { + document.getElementById('question').style.display = 'none'; + document.getElementById('answer').style.display = 'none'; + document.getElementById('result').style.display = 'none'; + document.getElementById('replay-button').style.display = 'block'; + document.getElementById('final-result').innerText = checkWinner(); + document.getElementById('final-result').style.display = 'block'; + document.getElementById('submit').style.display = 'none'; +} + +function resetGame() { + playerPosition = 0; + computerPosition = 0; + questionCount = 0; + moveCharacter('player', playerPosition); + moveCharacter('computer', computerPosition); + document.getElementById('question').style.display = 'block'; + document.getElementById('answer').style.display = 'block'; + document.getElementById('result').style.display = 'block'; + document.getElementById('result').textContent = ''; + document.getElementById('replay-button').style.display = 'none'; + document.getElementById('final-result').style.display = 'none'; + document.getElementById('submit').style.display = 'block'; + generateQuestion(); +} + +// Initialize the game +generateQuestion(); diff --git a/Games/Math_Race_Game/styles.css b/Games/Math_Race_Game/styles.css index b38f741765..9338ddb768 100644 --- a/Games/Math_Race_Game/styles.css +++ b/Games/Math_Race_Game/styles.css @@ -1,117 +1,117 @@ -* { - margin: 0; - padding: 0; - box-sizing: border-box; - outline: none; - font-family:Verdana, Geneva, Tahoma, sans-serif; -} -body { - display: flex; - justify-content: center; - align-items: center; - height: 100vh; - background-color: #ed7373; -} -.game-container { - background-color: #fff; - padding: 20px; - border-radius: 10px; - box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); - text-align: center; - width: 100%; - max-width: 400px; -} -h1{ - margin-bottom: 20px; - color: #ed7373; -} - -.race-track { - position: relative; - width: 100%; - height: 200px; - background-color: #ffe8e8; - margin-bottom: 20px; - border: 2px solid #ed7373; -} -.race-track:after { - position: absolute; - content: ""; - width: 1.8px; - height: 100%; - bottom: 0; - left: 50%; - background-color: #ed7373; -} - -.character { - position: absolute; - bottom: 0; - font-size: 2em; - transition: 0.3s; -} - -#player { - left: 20%; -} - -#computer { - right: 20%; -} - -#question { - font-size: 24px; - margin-bottom: 10px; -} - -#answer { - padding: 10px; - font-size: 16px; - margin: 15px 0; - width: 100%; - display: block; -} - -button { - padding: 10px 20px; - font-size: 16px; - cursor: pointer; - width: 100%; - display: block; - background-color: #ed7373; - border: none; - color: white; - border-radius: 4px; -} -button:hover { - background-color: #ff5656; -} - -#result { - margin-top: 10px; - font-size: 18px; -} - -#final-result { - margin-top: 20px; - font-size: 24px; - font-weight: bold; -} - -#replay-button { - margin-top: 20px; - padding: 10px 20px; - font-size: 16px; - cursor: pointer; -} -.info { - display: flex; - margin-bottom: 15px; - justify-content: center; - gap: 15px; -} -.row { - display: flex; - align-items: center; - justify-content: left; -} +* { + margin: 0; + padding: 0; + box-sizing: border-box; + outline: none; + font-family:Verdana, Geneva, Tahoma, sans-serif; +} +body { + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + background-color: #ed7373; +} +.game-container { + background-color: #fff; + padding: 20px; + border-radius: 10px; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); + text-align: center; + width: 100%; + max-width: 400px; +} +h1{ + margin-bottom: 20px; + color: #ed7373; +} + +.race-track { + position: relative; + width: 100%; + height: 200px; + background-color: #ffe8e8; + margin-bottom: 20px; + border: 2px solid #ed7373; +} +.race-track:after { + position: absolute; + content: ""; + width: 1.8px; + height: 100%; + bottom: 0; + left: 50%; + background-color: #ed7373; +} + +.character { + position: absolute; + bottom: 0; + font-size: 2em; + transition: 0.3s; +} + +#player { + left: 20%; +} + +#computer { + right: 20%; +} + +#question { + font-size: 24px; + margin-bottom: 10px; +} + +#answer { + padding: 10px; + font-size: 16px; + margin: 15px 0; + width: 100%; + display: block; +} + +button { + padding: 10px 20px; + font-size: 16px; + cursor: pointer; + width: 100%; + display: block; + background-color: #ed7373; + border: none; + color: white; + border-radius: 4px; +} +button:hover { + background-color: #ff5656; +} + +#result { + margin-top: 10px; + font-size: 18px; +} + +#final-result { + margin-top: 20px; + font-size: 24px; + font-weight: bold; +} + +#replay-button { + margin-top: 20px; + padding: 10px 20px; + font-size: 16px; + cursor: pointer; +} +.info { + display: flex; + margin-bottom: 15px; + justify-content: center; + gap: 15px; +} +.row { + display: flex; + align-items: center; + justify-content: left; +} diff --git a/Games/Maze_Game/index.html b/Games/Maze_Game/index.html index 1414e0919f..7ae035f41e 100644 --- a/Games/Maze_Game/index.html +++ b/Games/Maze_Game/index.html @@ -1,51 +1,51 @@ - - - - - - - Maze - - - - -
- -
-
-

Congratulations! ๐ŸŽ‰

-

You completed the challenge.

-

- -
-
- -
- - -
-
- -
-
- -

Use arrow keys to move Jerry to the Cheese!

- -
- - - - - - + + + + + + + Maze + + + + +
+ +
+
+

Congratulations! ๐ŸŽ‰

+

You completed the challenge.

+

+ +
+
+ +
+ + +
+
+ +
+
+ +

Use arrow keys to move Jerry to the Cheese!

+ +
+ + + + + + \ No newline at end of file diff --git a/Games/Maze_Game/script.js b/Games/Maze_Game/script.js index 3af74f4e24..db7fb46259 100644 --- a/Games/Maze_Game/script.js +++ b/Games/Maze_Game/script.js @@ -1,585 +1,585 @@ -function rand(max) { - return Math.floor(Math.random() * max); - } - - function shuffle(a) { - for (let i = a.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - [a[i], a[j]] = [a[j], a[i]]; - } - return a; - } - - function changeBrightness(factor, sprite) { - var virtCanvas = document.createElement("canvas"); - virtCanvas.width = 500; - virtCanvas.height = 500; - var context = virtCanvas.getContext("2d"); - context.drawImage(sprite, 0, 0, 500, 500); - - var imgData = context.getImageData(0, 0, 500, 500); - - for (let i = 0; i < imgData.data.length; i += 4) { - imgData.data[i] = imgData.data[i] * factor; - imgData.data[i + 1] = imgData.data[i + 1] * factor; - imgData.data[i + 2] = imgData.data[i + 2] * factor; - } - context.putImageData(imgData, 0, 0); - - var spriteOutput = new Image(); - spriteOutput.src = virtCanvas.toDataURL(); - virtCanvas.remove(); - return spriteOutput; - } - - function displayVictoryMess(moves) { - document.getElementById("moves").innerHTML = "You Moved " + moves + " Steps."; - toggleVisablity("Message-Container"); - } - - function toggleVisablity(id) { - if (document.getElementById(id).style.visibility == "visible") { - document.getElementById(id).style.visibility = "hidden"; - } else { - document.getElementById(id).style.visibility = "visible"; - } - } - - function Maze(Width, Height) { - var mazeMap; - var width = Width; - var height = Height; - var startCoord, endCoord; - var dirs = ["n", "s", "e", "w"]; - var modDir = { - n: { - y: -1, - x: 0, - o: "s" - }, - s: { - y: 1, - x: 0, - o: "n" - }, - e: { - y: 0, - x: 1, - o: "w" - }, - w: { - y: 0, - x: -1, - o: "e" - } - }; - - this.map = function() { - return mazeMap; - }; - this.startCoord = function() { - return startCoord; - }; - this.endCoord = function() { - return endCoord; - }; - - function genMap() { - mazeMap = new Array(height); - for (y = 0; y < height; y++) { - mazeMap[y] = new Array(width); - for (x = 0; x < width; ++x) { - mazeMap[y][x] = { - n: false, - s: false, - e: false, - w: false, - visited: false, - priorPos: null - }; - } - } - } - - function defineMaze() { - var isComp = false; - var move = false; - var cellsVisited = 1; - var numLoops = 0; - var maxLoops = 0; - var pos = { - x: 0, - y: 0 - }; - var numCells = width * height; - while (!isComp) { - move = false; - mazeMap[pos.x][pos.y].visited = true; - - if (numLoops >= maxLoops) { - shuffle(dirs); - maxLoops = Math.round(rand(height / 8)); - numLoops = 0; - } - numLoops++; - for (index = 0; index < dirs.length; index++) { - var direction = dirs[index]; - var nx = pos.x + modDir[direction].x; - var ny = pos.y + modDir[direction].y; - - if (nx >= 0 && nx < width && ny >= 0 && ny < height) { - //Check if the tile is already visited - if (!mazeMap[nx][ny].visited) { - //Carve through walls from this tile to next - mazeMap[pos.x][pos.y][direction] = true; - mazeMap[nx][ny][modDir[direction].o] = true; - - //Set Currentcell as next cells Prior visited - mazeMap[nx][ny].priorPos = pos; - //Update Cell position to newly visited location - pos = { - x: nx, - y: ny - }; - cellsVisited++; - //Recursively call this method on the next tile - move = true; - break; - } - } - } - - if (!move) { - // If it failed to find a direction, - // move the current position back to the prior cell and Recall the method. - pos = mazeMap[pos.x][pos.y].priorPos; - } - if (numCells == cellsVisited) { - isComp = true; - } - } - } - - function defineStartEnd() { - switch (rand(4)) { - case 0: - startCoord = { - x: 0, - y: 0 - }; - endCoord = { - x: height - 1, - y: width - 1 - }; - break; - case 1: - startCoord = { - x: 0, - y: width - 1 - }; - endCoord = { - x: height - 1, - y: 0 - }; - break; - case 2: - startCoord = { - x: height - 1, - y: 0 - }; - endCoord = { - x: 0, - y: width - 1 - }; - break; - case 3: - startCoord = { - x: height - 1, - y: width - 1 - }; - endCoord = { - x: 0, - y: 0 - }; - break; - } - } - - genMap(); - defineStartEnd(); - defineMaze(); - } - - function DrawMaze(Maze, ctx, cellsize, endSprite = null) { - var map = Maze.map(); - var cellSize = cellsize; - var drawEndMethod; - ctx.lineWidth = cellSize / 40; - - this.redrawMaze = function(size) { - cellSize = size; - ctx.lineWidth = cellSize / 50; - drawMap(); - drawEndMethod(); - }; - - function drawCell(xCord, yCord, cell) { - var x = xCord * cellSize; - var y = yCord * cellSize; - - if (cell.n == false) { - ctx.beginPath(); - ctx.moveTo(x, y); - ctx.lineTo(x + cellSize, y); - ctx.stroke(); - } - if (cell.s === false) { - ctx.beginPath(); - ctx.moveTo(x, y + cellSize); - ctx.lineTo(x + cellSize, y + cellSize); - ctx.stroke(); - } - if (cell.e === false) { - ctx.beginPath(); - ctx.moveTo(x + cellSize, y); - ctx.lineTo(x + cellSize, y + cellSize); - ctx.stroke(); - } - if (cell.w === false) { - ctx.beginPath(); - ctx.moveTo(x, y); - ctx.lineTo(x, y + cellSize); - ctx.stroke(); - } - } - - function drawMap() { - for (x = 0; x < map.length; x++) { - for (y = 0; y < map[x].length; y++) { - drawCell(x, y, map[x][y]); - } - } - } - - function drawEndFlag() { - var coord = Maze.endCoord(); - var gridSize = 4; - var fraction = cellSize / gridSize - 2; - var colorSwap = true; - for (let y = 0; y < gridSize; y++) { - if (gridSize % 2 == 0) { - colorSwap = !colorSwap; - } - for (let x = 0; x < gridSize; x++) { - ctx.beginPath(); - ctx.rect( - coord.x * cellSize + x * fraction + 4.5, - coord.y * cellSize + y * fraction + 4.5, - fraction, - fraction - ); - if (colorSwap) { - ctx.fillStyle = "rgba(0, 0, 0, 0.8)"; - } else { - ctx.fillStyle = "rgba(255, 255, 255, 0.8)"; - } - ctx.fill(); - colorSwap = !colorSwap; - } - } - } - - function drawEndSprite() { - var offsetLeft = cellSize / 50; - var offsetRight = cellSize / 25; - var coord = Maze.endCoord(); - ctx.drawImage( - endSprite, - 2, - 2, - endSprite.width, - endSprite.height, - coord.x * cellSize + offsetLeft, - coord.y * cellSize + offsetLeft, - cellSize - offsetRight, - cellSize - offsetRight - ); - } - - function clear() { - var canvasSize = cellSize * map.length; - ctx.clearRect(0, 0, canvasSize, canvasSize); - } - - if (endSprite != null) { - drawEndMethod = drawEndSprite; - } else { - drawEndMethod = drawEndFlag; - } - clear(); - drawMap(); - drawEndMethod(); - } - - function Player(maze, c, _cellsize, onComplete, sprite = null) { - var ctx = c.getContext("2d"); - var drawSprite; - var moves = 0; - drawSprite = drawSpriteCircle; - if (sprite != null) { - drawSprite = drawSpriteImg; - } - var player = this; - var map = maze.map(); - var cellCoords = { - x: maze.startCoord().x, - y: maze.startCoord().y - }; - var cellSize = _cellsize; - var halfCellSize = cellSize / 2; - - this.redrawPlayer = function(_cellsize) { - cellSize = _cellsize; - drawSpriteImg(cellCoords); - }; - - function drawSpriteCircle(coord) { - ctx.beginPath(); - ctx.fillStyle = "yellow"; - ctx.arc( - (coord.x + 1) * cellSize - halfCellSize, - (coord.y + 1) * cellSize - halfCellSize, - halfCellSize - 2, - 0, - 2 * Math.PI - ); - ctx.fill(); - if (coord.x === maze.endCoord().x && coord.y === maze.endCoord().y) { - onComplete(moves); - player.unbindKeyDown(); - } - } - - function drawSpriteImg(coord) { - var offsetLeft = cellSize / 50; - var offsetRight = cellSize / 25; - ctx.drawImage( - sprite, - 0, - 0, - sprite.width, - sprite.height, - coord.x * cellSize + offsetLeft, - coord.y * cellSize + offsetLeft, - cellSize - offsetRight, - cellSize - offsetRight - ); - if (coord.x === maze.endCoord().x && coord.y === maze.endCoord().y) { - onComplete(moves); - player.unbindKeyDown(); - } - } - - function removeSprite(coord) { - var offsetLeft = cellSize / 50; - var offsetRight = cellSize / 25; - ctx.clearRect( - coord.x * cellSize + offsetLeft, - coord.y * cellSize + offsetLeft, - cellSize - offsetRight, - cellSize - offsetRight - ); - } - - function check(e) { - var cell = map[cellCoords.x][cellCoords.y]; - moves++; - switch (e.keyCode) { - case 65: - case 37: // west - if (cell.w == true) { - removeSprite(cellCoords); - cellCoords = { - x: cellCoords.x - 1, - y: cellCoords.y - }; - drawSprite(cellCoords); - } - break; - case 87: - case 38: // north - if (cell.n == true) { - removeSprite(cellCoords); - cellCoords = { - x: cellCoords.x, - y: cellCoords.y - 1 - }; - drawSprite(cellCoords); - } - break; - case 68: - case 39: // east - if (cell.e == true) { - removeSprite(cellCoords); - cellCoords = { - x: cellCoords.x + 1, - y: cellCoords.y - }; - drawSprite(cellCoords); - } - break; - case 83: - case 40: // south - if (cell.s == true) { - removeSprite(cellCoords); - cellCoords = { - x: cellCoords.x, - y: cellCoords.y + 1 - }; - drawSprite(cellCoords); - } - break; - } - } - - this.bindKeyDown = function() { - window.addEventListener("keydown", check, false); - - $("#view").swipe({ - swipe: function( - event, - direction, - distance, - duration, - fingerCount, - fingerData - ) { - console.log(direction); - switch (direction) { - case "up": - check({ - keyCode: 38 - }); - break; - case "down": - check({ - keyCode: 40 - }); - break; - case "left": - check({ - keyCode: 37 - }); - break; - case "right": - check({ - keyCode: 39 - }); - break; - } - }, - threshold: 0 - }); - }; - - this.unbindKeyDown = function() { - window.removeEventListener("keydown", check, false); - $("#view").swipe("destroy"); - }; - - drawSprite(maze.startCoord()); - - this.bindKeyDown(); - } - - var mazeCanvas = document.getElementById("mazeCanvas"); - var ctx = mazeCanvas.getContext("2d"); - var sprite; - var finishSprite; - var maze, draw, player; - var cellSize; - var difficulty; - // sprite.src = 'media/sprite.png'; - - window.onload = function() { - let viewWidth = $("#view").width(); - let viewHeight = $("#view").height(); - if (viewHeight < viewWidth) { - ctx.canvas.width = viewHeight - viewHeight / 100; - ctx.canvas.height = viewHeight - viewHeight / 100; - } else { - ctx.canvas.width = viewWidth - viewWidth / 100; - ctx.canvas.height = viewWidth - viewWidth / 100; - } - - //Load and edit sprites - var completeOne = false; - var completeTwo = false; - var isComplete = () => { - if(completeOne === true && completeTwo === true) - { - console.log("Runs"); - setTimeout(function(){ - makeMaze(); - }, 500); - } - }; - sprite = new Image(); - sprite.src = - "./jerry.png" + - "?" + - new Date().getTime(); - sprite.setAttribute("crossOrigin", " "); - sprite.onload = function() { - sprite = changeBrightness(1.2, sprite); - completeOne = true; - console.log(completeOne); - isComplete(); - }; - - finishSprite = new Image(); - finishSprite.src = "./cheese.png"+ - "?" + - new Date().getTime(); - finishSprite.setAttribute("crossOrigin", " "); - finishSprite.onload = function() { - finishSprite = changeBrightness(1.1, finishSprite); - completeTwo = true; - console.log(completeTwo); - isComplete(); - }; - - }; - - window.onresize = function() { - let viewWidth = $("#view").width(); - let viewHeight = $("#view").height(); - if (viewHeight < viewWidth) { - ctx.canvas.width = viewHeight - viewHeight / 100; - ctx.canvas.height = viewHeight - viewHeight / 100; - } else { - ctx.canvas.width = viewWidth - viewWidth / 100; - ctx.canvas.height = viewWidth - viewWidth / 100; - } - cellSize = mazeCanvas.width / difficulty; - if (player != null) { - draw.redrawMaze(cellSize); - player.redrawPlayer(cellSize); - } - }; - - function makeMaze() { - if (player != undefined) { - player.unbindKeyDown(); - player = null; - } - var e = document.getElementById("diffSelect"); - difficulty = e.options[e.selectedIndex].value; - cellSize = mazeCanvas.width / difficulty; - maze = new Maze(difficulty, difficulty); - draw = new DrawMaze(maze, ctx, cellSize, finishSprite); - player = new Player(maze, mazeCanvas, cellSize, displayVictoryMess, sprite); - if (document.getElementById("mazeContainer").style.opacity < "100") { - document.getElementById("mazeContainer").style.opacity = "100"; - } +function rand(max) { + return Math.floor(Math.random() * max); + } + + function shuffle(a) { + for (let i = a.length - 1; i > 0; i--) { + const j = Math.floor(Math.random() * (i + 1)); + [a[i], a[j]] = [a[j], a[i]]; + } + return a; + } + + function changeBrightness(factor, sprite) { + var virtCanvas = document.createElement("canvas"); + virtCanvas.width = 500; + virtCanvas.height = 500; + var context = virtCanvas.getContext("2d"); + context.drawImage(sprite, 0, 0, 500, 500); + + var imgData = context.getImageData(0, 0, 500, 500); + + for (let i = 0; i < imgData.data.length; i += 4) { + imgData.data[i] = imgData.data[i] * factor; + imgData.data[i + 1] = imgData.data[i + 1] * factor; + imgData.data[i + 2] = imgData.data[i + 2] * factor; + } + context.putImageData(imgData, 0, 0); + + var spriteOutput = new Image(); + spriteOutput.src = virtCanvas.toDataURL(); + virtCanvas.remove(); + return spriteOutput; + } + + function displayVictoryMess(moves) { + document.getElementById("moves").innerHTML = "You Moved " + moves + " Steps."; + toggleVisablity("Message-Container"); + } + + function toggleVisablity(id) { + if (document.getElementById(id).style.visibility == "visible") { + document.getElementById(id).style.visibility = "hidden"; + } else { + document.getElementById(id).style.visibility = "visible"; + } + } + + function Maze(Width, Height) { + var mazeMap; + var width = Width; + var height = Height; + var startCoord, endCoord; + var dirs = ["n", "s", "e", "w"]; + var modDir = { + n: { + y: -1, + x: 0, + o: "s" + }, + s: { + y: 1, + x: 0, + o: "n" + }, + e: { + y: 0, + x: 1, + o: "w" + }, + w: { + y: 0, + x: -1, + o: "e" + } + }; + + this.map = function() { + return mazeMap; + }; + this.startCoord = function() { + return startCoord; + }; + this.endCoord = function() { + return endCoord; + }; + + function genMap() { + mazeMap = new Array(height); + for (y = 0; y < height; y++) { + mazeMap[y] = new Array(width); + for (x = 0; x < width; ++x) { + mazeMap[y][x] = { + n: false, + s: false, + e: false, + w: false, + visited: false, + priorPos: null + }; + } + } + } + + function defineMaze() { + var isComp = false; + var move = false; + var cellsVisited = 1; + var numLoops = 0; + var maxLoops = 0; + var pos = { + x: 0, + y: 0 + }; + var numCells = width * height; + while (!isComp) { + move = false; + mazeMap[pos.x][pos.y].visited = true; + + if (numLoops >= maxLoops) { + shuffle(dirs); + maxLoops = Math.round(rand(height / 8)); + numLoops = 0; + } + numLoops++; + for (index = 0; index < dirs.length; index++) { + var direction = dirs[index]; + var nx = pos.x + modDir[direction].x; + var ny = pos.y + modDir[direction].y; + + if (nx >= 0 && nx < width && ny >= 0 && ny < height) { + //Check if the tile is already visited + if (!mazeMap[nx][ny].visited) { + //Carve through walls from this tile to next + mazeMap[pos.x][pos.y][direction] = true; + mazeMap[nx][ny][modDir[direction].o] = true; + + //Set Currentcell as next cells Prior visited + mazeMap[nx][ny].priorPos = pos; + //Update Cell position to newly visited location + pos = { + x: nx, + y: ny + }; + cellsVisited++; + //Recursively call this method on the next tile + move = true; + break; + } + } + } + + if (!move) { + // If it failed to find a direction, + // move the current position back to the prior cell and Recall the method. + pos = mazeMap[pos.x][pos.y].priorPos; + } + if (numCells == cellsVisited) { + isComp = true; + } + } + } + + function defineStartEnd() { + switch (rand(4)) { + case 0: + startCoord = { + x: 0, + y: 0 + }; + endCoord = { + x: height - 1, + y: width - 1 + }; + break; + case 1: + startCoord = { + x: 0, + y: width - 1 + }; + endCoord = { + x: height - 1, + y: 0 + }; + break; + case 2: + startCoord = { + x: height - 1, + y: 0 + }; + endCoord = { + x: 0, + y: width - 1 + }; + break; + case 3: + startCoord = { + x: height - 1, + y: width - 1 + }; + endCoord = { + x: 0, + y: 0 + }; + break; + } + } + + genMap(); + defineStartEnd(); + defineMaze(); + } + + function DrawMaze(Maze, ctx, cellsize, endSprite = null) { + var map = Maze.map(); + var cellSize = cellsize; + var drawEndMethod; + ctx.lineWidth = cellSize / 40; + + this.redrawMaze = function(size) { + cellSize = size; + ctx.lineWidth = cellSize / 50; + drawMap(); + drawEndMethod(); + }; + + function drawCell(xCord, yCord, cell) { + var x = xCord * cellSize; + var y = yCord * cellSize; + + if (cell.n == false) { + ctx.beginPath(); + ctx.moveTo(x, y); + ctx.lineTo(x + cellSize, y); + ctx.stroke(); + } + if (cell.s === false) { + ctx.beginPath(); + ctx.moveTo(x, y + cellSize); + ctx.lineTo(x + cellSize, y + cellSize); + ctx.stroke(); + } + if (cell.e === false) { + ctx.beginPath(); + ctx.moveTo(x + cellSize, y); + ctx.lineTo(x + cellSize, y + cellSize); + ctx.stroke(); + } + if (cell.w === false) { + ctx.beginPath(); + ctx.moveTo(x, y); + ctx.lineTo(x, y + cellSize); + ctx.stroke(); + } + } + + function drawMap() { + for (x = 0; x < map.length; x++) { + for (y = 0; y < map[x].length; y++) { + drawCell(x, y, map[x][y]); + } + } + } + + function drawEndFlag() { + var coord = Maze.endCoord(); + var gridSize = 4; + var fraction = cellSize / gridSize - 2; + var colorSwap = true; + for (let y = 0; y < gridSize; y++) { + if (gridSize % 2 == 0) { + colorSwap = !colorSwap; + } + for (let x = 0; x < gridSize; x++) { + ctx.beginPath(); + ctx.rect( + coord.x * cellSize + x * fraction + 4.5, + coord.y * cellSize + y * fraction + 4.5, + fraction, + fraction + ); + if (colorSwap) { + ctx.fillStyle = "rgba(0, 0, 0, 0.8)"; + } else { + ctx.fillStyle = "rgba(255, 255, 255, 0.8)"; + } + ctx.fill(); + colorSwap = !colorSwap; + } + } + } + + function drawEndSprite() { + var offsetLeft = cellSize / 50; + var offsetRight = cellSize / 25; + var coord = Maze.endCoord(); + ctx.drawImage( + endSprite, + 2, + 2, + endSprite.width, + endSprite.height, + coord.x * cellSize + offsetLeft, + coord.y * cellSize + offsetLeft, + cellSize - offsetRight, + cellSize - offsetRight + ); + } + + function clear() { + var canvasSize = cellSize * map.length; + ctx.clearRect(0, 0, canvasSize, canvasSize); + } + + if (endSprite != null) { + drawEndMethod = drawEndSprite; + } else { + drawEndMethod = drawEndFlag; + } + clear(); + drawMap(); + drawEndMethod(); + } + + function Player(maze, c, _cellsize, onComplete, sprite = null) { + var ctx = c.getContext("2d"); + var drawSprite; + var moves = 0; + drawSprite = drawSpriteCircle; + if (sprite != null) { + drawSprite = drawSpriteImg; + } + var player = this; + var map = maze.map(); + var cellCoords = { + x: maze.startCoord().x, + y: maze.startCoord().y + }; + var cellSize = _cellsize; + var halfCellSize = cellSize / 2; + + this.redrawPlayer = function(_cellsize) { + cellSize = _cellsize; + drawSpriteImg(cellCoords); + }; + + function drawSpriteCircle(coord) { + ctx.beginPath(); + ctx.fillStyle = "yellow"; + ctx.arc( + (coord.x + 1) * cellSize - halfCellSize, + (coord.y + 1) * cellSize - halfCellSize, + halfCellSize - 2, + 0, + 2 * Math.PI + ); + ctx.fill(); + if (coord.x === maze.endCoord().x && coord.y === maze.endCoord().y) { + onComplete(moves); + player.unbindKeyDown(); + } + } + + function drawSpriteImg(coord) { + var offsetLeft = cellSize / 50; + var offsetRight = cellSize / 25; + ctx.drawImage( + sprite, + 0, + 0, + sprite.width, + sprite.height, + coord.x * cellSize + offsetLeft, + coord.y * cellSize + offsetLeft, + cellSize - offsetRight, + cellSize - offsetRight + ); + if (coord.x === maze.endCoord().x && coord.y === maze.endCoord().y) { + onComplete(moves); + player.unbindKeyDown(); + } + } + + function removeSprite(coord) { + var offsetLeft = cellSize / 50; + var offsetRight = cellSize / 25; + ctx.clearRect( + coord.x * cellSize + offsetLeft, + coord.y * cellSize + offsetLeft, + cellSize - offsetRight, + cellSize - offsetRight + ); + } + + function check(e) { + var cell = map[cellCoords.x][cellCoords.y]; + moves++; + switch (e.keyCode) { + case 65: + case 37: // west + if (cell.w == true) { + removeSprite(cellCoords); + cellCoords = { + x: cellCoords.x - 1, + y: cellCoords.y + }; + drawSprite(cellCoords); + } + break; + case 87: + case 38: // north + if (cell.n == true) { + removeSprite(cellCoords); + cellCoords = { + x: cellCoords.x, + y: cellCoords.y - 1 + }; + drawSprite(cellCoords); + } + break; + case 68: + case 39: // east + if (cell.e == true) { + removeSprite(cellCoords); + cellCoords = { + x: cellCoords.x + 1, + y: cellCoords.y + }; + drawSprite(cellCoords); + } + break; + case 83: + case 40: // south + if (cell.s == true) { + removeSprite(cellCoords); + cellCoords = { + x: cellCoords.x, + y: cellCoords.y + 1 + }; + drawSprite(cellCoords); + } + break; + } + } + + this.bindKeyDown = function() { + window.addEventListener("keydown", check, false); + + $("#view").swipe({ + swipe: function( + event, + direction, + distance, + duration, + fingerCount, + fingerData + ) { + console.log(direction); + switch (direction) { + case "up": + check({ + keyCode: 38 + }); + break; + case "down": + check({ + keyCode: 40 + }); + break; + case "left": + check({ + keyCode: 37 + }); + break; + case "right": + check({ + keyCode: 39 + }); + break; + } + }, + threshold: 0 + }); + }; + + this.unbindKeyDown = function() { + window.removeEventListener("keydown", check, false); + $("#view").swipe("destroy"); + }; + + drawSprite(maze.startCoord()); + + this.bindKeyDown(); + } + + var mazeCanvas = document.getElementById("mazeCanvas"); + var ctx = mazeCanvas.getContext("2d"); + var sprite; + var finishSprite; + var maze, draw, player; + var cellSize; + var difficulty; + // sprite.src = 'media/sprite.png'; + + window.onload = function() { + let viewWidth = $("#view").width(); + let viewHeight = $("#view").height(); + if (viewHeight < viewWidth) { + ctx.canvas.width = viewHeight - viewHeight / 100; + ctx.canvas.height = viewHeight - viewHeight / 100; + } else { + ctx.canvas.width = viewWidth - viewWidth / 100; + ctx.canvas.height = viewWidth - viewWidth / 100; + } + + //Load and edit sprites + var completeOne = false; + var completeTwo = false; + var isComplete = () => { + if(completeOne === true && completeTwo === true) + { + console.log("Runs"); + setTimeout(function(){ + makeMaze(); + }, 500); + } + }; + sprite = new Image(); + sprite.src = + "./jerry.png" + + "?" + + new Date().getTime(); + sprite.setAttribute("crossOrigin", " "); + sprite.onload = function() { + sprite = changeBrightness(1.2, sprite); + completeOne = true; + console.log(completeOne); + isComplete(); + }; + + finishSprite = new Image(); + finishSprite.src = "./cheese.png"+ + "?" + + new Date().getTime(); + finishSprite.setAttribute("crossOrigin", " "); + finishSprite.onload = function() { + finishSprite = changeBrightness(1.1, finishSprite); + completeTwo = true; + console.log(completeTwo); + isComplete(); + }; + + }; + + window.onresize = function() { + let viewWidth = $("#view").width(); + let viewHeight = $("#view").height(); + if (viewHeight < viewWidth) { + ctx.canvas.width = viewHeight - viewHeight / 100; + ctx.canvas.height = viewHeight - viewHeight / 100; + } else { + ctx.canvas.width = viewWidth - viewWidth / 100; + ctx.canvas.height = viewWidth - viewWidth / 100; + } + cellSize = mazeCanvas.width / difficulty; + if (player != null) { + draw.redrawMaze(cellSize); + player.redrawPlayer(cellSize); + } + }; + + function makeMaze() { + if (player != undefined) { + player.unbindKeyDown(); + player = null; + } + var e = document.getElementById("diffSelect"); + difficulty = e.options[e.selectedIndex].value; + cellSize = mazeCanvas.width / difficulty; + maze = new Maze(difficulty, difficulty); + draw = new DrawMaze(maze, ctx, cellSize, finishSprite); + player = new Player(maze, mazeCanvas, cellSize, displayVictoryMess, sprite); + if (document.getElementById("mazeContainer").style.opacity < "100") { + document.getElementById("mazeContainer").style.opacity = "100"; + } } \ No newline at end of file diff --git a/Games/Maze_Game/style.css b/Games/Maze_Game/style.css index 6e8362d2c3..daf5c8596d 100644 --- a/Games/Maze_Game/style.css +++ b/Games/Maze_Game/style.css @@ -1,165 +1,165 @@ -@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap'); - - -html, body { - width: 100vw; - height: 100vh; - position: fixed; - padding: 0; - margin: 0; - top: 0; - bottom: 0; - left: 0; - right: 0; - background-image: linear-gradient(-225deg, #5D9FFF 0%, #B8DCFF 48%, #6BBBFF 100%); - font-family: 'Poppins', sans-serif; -} - -#view { - margin-top: 30px; -} - -#mazeContainer { - top: 15px; - opacity: 0; - display: inline-block; - margin: auto; - border-radius: 10px; -} -#mazeContainer #mazeCanvas { - margin: 0; - display: block; - border: solid 2px black; - height: 400px; -} -input, select { - cursor: pointer; - background-image: linear-gradient(to right, #0ba360, #3cba92, #30dd8a, #2bb673); - box-shadow: 0 4px 15px 0 rgba(23, 168, 108, 0.75); - - - background-size: 200% auto; - height: 45px; - width: 150px; - padding: 10px; - border: none; - margin: 0 20px; - border-radius: 50px; - color: rgb(255, 255, 255); - display: inline-block; - font-size: 16px; - font-weight: 600; - text-align: center; - text-decoration: none; - appearance: none; - - - -moz-transition: all .4s ease-in-out; - -o-transition: all .4s ease-in-out; - -webkit-transition: all .4s ease-in-out; - transition: all .4s ease-in-out; -} - -select { - - - text-shadow: 0 1px white; - background: #b00909; /* Fallback for IE 8 */ - background: rgba(29, 179, 116, 0.75) !important; /* "transparent" doesn't work with Opera */ - - /* -webkit-appearance: none; */ - } - - -select > option{ - margin: 3px; - padding: 6px 8px; - text-shadow: none; - background: #000000; - border-radius: 3px; - cursor: pointer; -} -input:hover, select:hover { - background-position: right center; -} -input:active, select:active { - background-image: linear-gradient(to right, #1D976C 0%, #93F9B9 51%, #1D976C 100%); -} -input:focus, select:focus { - outline: none; -} -.custom-select { - display: inline-block; -} -.custom-select select { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background-repeat: no-repeat; - background-position: 125px center; -} -#Message-Container { - visibility: hidden; - color: rgb(255, 255, 255); - display: block; - width: 100vw; - height: 100vh; - position: fixed; - top: 0; - left: 0; - bottom: 0; - right: 0; - background-color: rgba(0, 0, 0, 0.30); - z-index: 1; -} -#Message-Container #message { - width: 300px; - height: 300px; - position: fixed; - top: 50%; - left: 50%; - margin-left: -150px; - margin-top: -150px; -} -#page { - text-align: center; - height: auto; - width: auto; - margin: auto; -} -#page #menu { - margin: auto; - padding: 10px; - height: 65px; - box-sizing: border-box; -} -#page #menu h1 { - margin: 0; - margin-bottom: 10px; - font-weight: 600; - font-size: 3.2rem; -} -#page #view { - position: absolute; - top: 65px; - bottom: 0; - left: 0; - right: 0; - width: 100%; - height: auto; -} -.border { - border: 10px black solid; - border-radius: 10px; -} - -#instructions { - margin-top: 425px; -} - -/* Extra small devices (phones, 600px and down) */ -@media only screen and (max-width: 400px) { - input, select { - width: 120px; - } +@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap'); + + +html, body { + width: 100vw; + height: 100vh; + position: fixed; + padding: 0; + margin: 0; + top: 0; + bottom: 0; + left: 0; + right: 0; + background-image: linear-gradient(-225deg, #5D9FFF 0%, #B8DCFF 48%, #6BBBFF 100%); + font-family: 'Poppins', sans-serif; +} + +#view { + margin-top: 30px; +} + +#mazeContainer { + top: 15px; + opacity: 0; + display: inline-block; + margin: auto; + border-radius: 10px; +} +#mazeContainer #mazeCanvas { + margin: 0; + display: block; + border: solid 2px black; + height: 400px; +} +input, select { + cursor: pointer; + background-image: linear-gradient(to right, #0ba360, #3cba92, #30dd8a, #2bb673); + box-shadow: 0 4px 15px 0 rgba(23, 168, 108, 0.75); + + + background-size: 200% auto; + height: 45px; + width: 150px; + padding: 10px; + border: none; + margin: 0 20px; + border-radius: 50px; + color: rgb(255, 255, 255); + display: inline-block; + font-size: 16px; + font-weight: 600; + text-align: center; + text-decoration: none; + appearance: none; + + + -moz-transition: all .4s ease-in-out; + -o-transition: all .4s ease-in-out; + -webkit-transition: all .4s ease-in-out; + transition: all .4s ease-in-out; +} + +select { + + + text-shadow: 0 1px white; + background: #b00909; /* Fallback for IE 8 */ + background: rgba(29, 179, 116, 0.75) !important; /* "transparent" doesn't work with Opera */ + + /* -webkit-appearance: none; */ + } + + +select > option{ + margin: 3px; + padding: 6px 8px; + text-shadow: none; + background: #000000; + border-radius: 3px; + cursor: pointer; +} +input:hover, select:hover { + background-position: right center; +} +input:active, select:active { + background-image: linear-gradient(to right, #1D976C 0%, #93F9B9 51%, #1D976C 100%); +} +input:focus, select:focus { + outline: none; +} +.custom-select { + display: inline-block; +} +.custom-select select { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + background-repeat: no-repeat; + background-position: 125px center; +} +#Message-Container { + visibility: hidden; + color: rgb(255, 255, 255); + display: block; + width: 100vw; + height: 100vh; + position: fixed; + top: 0; + left: 0; + bottom: 0; + right: 0; + background-color: rgba(0, 0, 0, 0.30); + z-index: 1; +} +#Message-Container #message { + width: 300px; + height: 300px; + position: fixed; + top: 50%; + left: 50%; + margin-left: -150px; + margin-top: -150px; +} +#page { + text-align: center; + height: auto; + width: auto; + margin: auto; +} +#page #menu { + margin: auto; + padding: 10px; + height: 65px; + box-sizing: border-box; +} +#page #menu h1 { + margin: 0; + margin-bottom: 10px; + font-weight: 600; + font-size: 3.2rem; +} +#page #view { + position: absolute; + top: 65px; + bottom: 0; + left: 0; + right: 0; + width: 100%; + height: auto; +} +.border { + border: 10px black solid; + border-radius: 10px; +} + +#instructions { + margin-top: 425px; +} + +/* Extra small devices (phones, 600px and down) */ +@media only screen and (max-width: 400px) { + input, select { + width: 120px; + } } \ No newline at end of file diff --git a/Games/Maze_of_Cables/index.html b/Games/Maze_of_Cables/index.html index 29d7702975..adb14eab42 100644 --- a/Games/Maze_of_Cables/index.html +++ b/Games/Maze_of_Cables/index.html @@ -1,117 +1,117 @@ - - - - - - -
-
-

-

Welcome to Cable Maze

-

We need to replace the LAN cable. You have to connect the LAN cable to the socket (blue circle) before everything goes offline !

-

Use arrow keys to move inside the maze

-

Remember two things are limited : time and cable length

- -
-
-
-
Time
-
-
- -
-
-
Cable
No more cable remaining ! -
- - - + + + + + + +
+
+

+

Welcome to Cable Maze

+

We need to replace the LAN cable. You have to connect the LAN cable to the socket (blue circle) before everything goes offline !

+

Use arrow keys to move inside the maze

+

Remember two things are limited : time and cable length

+ +
+
+
+
Time
+
+
+ +
+
+
Cable
No more cable remaining ! +
+ + + \ No newline at end of file diff --git a/Games/Maze_of_Cables/main.js b/Games/Maze_of_Cables/main.js index efe1e2a2c0..ba9d41c8e5 100644 --- a/Games/Maze_of_Cables/main.js +++ b/Games/Maze_of_Cables/main.js @@ -1,218 +1,218 @@ -let timerRunning = false, - mazeSize = 25, - stage = 1, - offset = 80, - currentPosition, - pixels, - cells, - end, - path, - maxWire; - -let timerDraw = (totalTime, timeLeft) => { - let parentWidth = Math.min(window.innerWidth, window.innerHeight) - offset; - document.getElementById("timer").style.width = parentWidth; - let ratio = timeLeft / totalTime ; - document.getElementById("timerBar").style.width = ratio*parentWidth; - if (ratio < 0.2){ - document.getElementById("timerBar").style.backgroundColor = "#c00"; - } - else if (ratio < 0.5 ){ - document.getElementById("timerBar").style.backgroundColor = "#ac0"; - } - else{ - document.getElementById("timerBar").style.backgroundColor = "#0c0"; - } - if (timeLeft > 0 && timerRunning) { - setTimeout(() => { - timerDraw(totalTime, timeLeft - 0.2, parentWidth); - }, 200); - } - else if (timeLeft <= 0) { - document.getElementById("curtain").innerHTML = "

You Lose

refresh the page to start again

"; - document.getElementById("curtain").style.display = "block"; - } -}; - -let cableDraw = (totalCable, cableLeft) => { - let parentWidth = Math.min(window.innerWidth, window.innerHeight) - offset; - document.getElementById("cable").style.width = parentWidth; - let ratio =cableLeft / totalCable ; - document.getElementById("cableBar").style.width = ratio*parentWidth; -}; - -let drawMaze = () => { - if(!timerRunning){ - let progressWidth = Math.min(window.innerWidth, window.innerHeight) - offset; - document.getElementById("timer").style.width = progressWidth; - document.getElementById("cable").style.width = progressWidth; - } - - let canvas = document.getElementById('gameCanvas'); - let ctx = canvas.getContext('2d'); - let ctxSize = Math.min(window.innerWidth, window.innerHeight) - offset; - canvas.width = ctxSize; - canvas.height = ctxSize; - - cableDraw(maxWire, maxWire - path.length) - - ctx.clearRect(0, 0, canvas.width, canvas.height); - ctx.fillStyle = '#dd2244'; - ctx.fillRect(0, 0, canvas.width, canvas.height); - - pixels = Math.min(canvas.width, canvas.height); - let scale = pixels / mazeSize; - let line = (x1, y1, x2, y2) => { - ctx.moveTo(x1 + .5, y1 + .5); ctx.lineTo(x2 + .5, y2 + .5); - }; - ctx.scale(scale,scale); - ctx.strokeStyle = '#222a33'; - ctx.lineCap = 'square'; - ctx.lineJoin = 'miter'; - ctx.lineWidth = .75; - cells.forEach((column, x) => { - column.forEach((row, y) => { - ctx.beginPath(); - if(row & 1) line(x, y, x - 1, y); - if(row & 2) line(x, y, x + 1, y); - if(row & 4) line(x, y, x, y - 1); - if(row & 8) line(x, y, x, y + 1); - ctx.stroke(); - ctx.closePath; - }); - }); - - ctx.fillStyle = '#222a33'; - ctx.strokeStyle = '#6699cc'; - ctx.lineJoin = 'miter'; - ctx.lineWidth = .1; - ctx.beginPath(); - ctx.arc(end[0] + .5, end[1] + .5, .25, 0, 2 * Math.PI); - ctx.closePath(); - ctx.stroke(); - ctx.fill(); - - if(path.length) { - ctx.strokeStyle = '#6699cc'; - ctx.lineCap = 'round'; - ctx.lineJoin = 'round'; - ctx.lineWidth = .2; - ctx.beginPath(); - ctx.moveTo(path[0][0] + .5, path[0][1] + .5); - path.forEach((pathPart) => { - ctx.lineTo(pathPart[0] + .5, pathPart[1] + .5); - }); - ctx.lineTo(currentPosition[0] + .5, currentPosition[1] + .5); - ctx.stroke(); - ctx.closePath(); - } - - ctx.fillStyle = '#6699cc'; - ctx.strokeStyle = '#003399'; - ctx.lineJoin = 'miter'; - ctx.lineWidth = .05; - ctx.beginPath(); - ctx.arc(currentPosition[0] + .5, currentPosition[1] + .5, .25, 0, 2 * Math.PI); - ctx.closePath(); - ctx.stroke(); - ctx.fill(); - - if(currentPosition[0] == end[0] && currentPosition[1] == end[1]) { - timerRunning = false; - setTimeout(()=>{ - document.getElementById("timerBar").style.width = "100%"; - document.getElementById("timerBar").style.backgroundColor = "#0c0"; - }, 1000); - let curtainText = ""; - if(stage == 1) - curtainText = "

Stage 1 Completed

"; - else if(stage == 2) - curtainText = "

Stage 2 Completed


Arrow keys inverted !

"; - else if(stage == 3) - curtainText = "

Stage 3 Completed


Arrow keys inverted !

"; - else if(stage == 4) - curtainText = "

Thanks for playing Cable Maze

refresh the page to play again

created by : rezaxdi (https://github.com/rezaxdi/cablemaze)

"; - document.getElementById("curtain").innerHTML = curtainText; - document.getElementById("curtain").style.display = "block"; - if (stage < 4) - setTimeout(()=>{document.getElementById("curtain").style.display = "none";}, 3000); - stage += 1; - newMaze(); - } -}; - -let newMaze = () => { - path = []; - currentPosition = [0, 0]; - end = [mazeSize - 1, mazeSize - 1]; - if (stage == 1 || stage == 3){ - maxWire = 52; - cells = JSON.parse("[[2,10,4,2,8,6,2,10,4,8,12,14,12,4,2,10,12,12,14,6,2,2,10,12,4],[11,5,2,3,8,13,15,13,4,8,12,15,12,12,13,15,12,4,1,1,3,9,7,8,6],[3,8,15,5,2,2,3,10,4,2,8,7,2,10,4,1,10,12,4,2,3,8,15,12,5],[3,2,3,10,5,3,11,13,4,3,8,7,11,13,12,12,13,4,8,13,13,14,15,4,2],[3,3,9,7,8,15,13,4,10,15,14,13,13,14,14,12,6,10,6,2,8,7,1,2,3],[11,5,2,3,2,3,2,2,1,1,3,10,6,1,1,2,1,3,1,3,8,15,4,11,5],[3,8,7,3,11,13,13,13,12,14,7,3,9,12,12,13,4,11,4,9,6,11,4,3,2],[9,12,13,13,15,14,4,2,2,3,1,3,2,2,10,12,4,3,2,2,11,7,10,15,5],[2,2,2,8,7,9,4,3,3,3,2,11,13,5,11,4,2,3,3,11,5,1,3,1,2],[3,11,13,6,11,4,2,11,5,3,3,11,12,6,3,10,5,9,7,11,12,4,11,4,3],[9,13,4,11,5,2,11,13,4,3,3,3,2,1,3,3,10,12,13,13,12,14,5,2,3],[10,6,8,7,2,11,13,4,8,13,7,3,3,10,13,13,7,8,14,12,4,1,2,9,7],[3,9,12,7,3,3,2,10,4,8,7,11,13,15,4,2,1,8,7,8,14,12,5,2,3],[1,2,8,7,3,9,13,15,12,4,11,13,6,11,4,3,2,10,5,2,3,10,4,9,7],[8,13,12,13,7,2,2,11,12,4,11,4,1,9,12,5,11,5,2,3,3,3,10,12,5],[8,12,14,4,9,13,15,13,4,10,13,4,10,12,4,2,11,6,11,13,5,9,7,8,6],[10,12,7,8,6,2,9,14,4,3,10,4,3,10,4,3,3,9,5,8,14,4,11,12,5],[3,8,13,12,13,15,14,15,4,11,13,12,13,5,2,11,5,2,2,10,13,4,11,4,2],[1,8,12,12,12,5,1,9,6,11,12,4,10,4,3,3,10,13,5,11,12,4,11,12,7],[8,6,2,8,12,14,12,14,13,15,6,10,5,8,13,7,3,10,12,15,6,10,15,6,3],[8,13,13,12,6,1,8,7,8,5,3,11,4,2,10,13,13,7,2,1,11,5,1,1,1],[10,14,12,14,13,12,14,13,12,6,9,15,14,13,15,12,6,9,13,6,9,12,4,10,4],[1,3,10,5,10,12,7,8,14,5,8,7,11,6,1,2,11,12,4,11,12,12,6,11,4],[10,7,3,8,13,6,1,8,7,2,8,7,1,11,12,5,1,10,4,9,4,8,15,15,4],[1,1,9,4,8,13,4,8,5,9,12,13,4,9,12,12,12,13,12,12,12,4,1,9,4]]"); - drawMaze(); - } - else if(stage == 2 || stage == 4){ - maxWire = 110; - cells = JSON.parse("[[10,12,12,12,12,12,14,12,12,12,12,6,2,10,12,12,14,12,6,10,12,12,12,6,2],[9,6,8,14,6,10,7,10,12,12,6,3,3,9,12,6,3,8,13,5,10,6,10,5,3],[8,13,12,5,1,3,1,11,12,4,3,9,7,2,10,5,9,14,6,8,7,1,9,6,3],[10,14,12,12,12,5,10,5,10,12,5,2,3,11,5,10,6,3,9,6,3,10,12,5,3],[3,3,10,12,12,12,5,10,7,10,6,9,5,3,10,5,3,11,4,3,11,5,8,14,7],[3,1,9,12,6,10,6,3,1,3,3,10,12,13,7,2,3,1,10,5,3,10,12,5,1],[11,12,12,12,5,3,3,3,10,5,9,5,10,6,3,9,13,12,5,2,3,9,12,12,6],[9,6,10,12,12,5,3,9,5,10,12,12,5,3,9,12,12,6,10,7,9,12,6,10,5],[10,5,9,6,10,4,3,10,6,11,12,12,6,3,2,10,6,3,3,9,4,10,5,11,6],[9,6,10,5,9,14,5,1,9,13,4,10,5,9,7,3,3,3,11,12,12,5,8,7,3],[10,5,9,12,6,9,6,10,12,12,12,5,2,10,5,3,9,5,3,8,12,14,6,1,3],[3,10,12,12,5,2,3,11,12,6,10,6,9,7,2,9,12,6,9,12,6,3,9,12,7],[3,3,10,4,10,13,5,9,6,9,5,9,6,9,13,6,10,5,10,6,9,5,2,10,5],[9,5,11,12,5,8,6,10,13,12,6,2,3,2,10,5,9,12,5,9,14,6,3,3,2],[10,12,5,8,14,6,9,7,10,6,9,7,3,11,5,8,14,4,10,6,1,3,11,13,7],[3,8,14,6,3,9,6,1,3,9,6,3,3,9,12,12,7,10,5,9,6,9,7,2,3],[3,10,5,9,5,2,3,10,5,2,3,1,9,12,6,10,5,3,8,12,13,12,5,11,5],[9,5,10,12,12,5,9,5,10,7,3,10,12,12,5,9,6,3,10,14,4,10,6,3,2],[10,6,9,12,14,12,6,10,5,3,9,5,10,12,6,2,3,9,5,9,6,3,3,3,3],[3,9,12,6,11,4,9,5,10,13,12,6,9,6,9,5,9,6,10,12,7,3,3,3,3],[3,8,6,3,3,10,6,10,5,8,12,13,12,7,10,12,12,5,3,10,5,3,3,9,7],[3,10,5,3,1,3,9,5,10,12,12,6,10,5,3,10,12,14,5,1,10,5,3,2,3],[3,9,12,13,12,5,10,6,3,8,6,3,1,10,5,3,8,5,10,6,3,10,5,11,5],[3,10,12,12,12,6,3,3,3,10,7,9,6,3,2,9,6,10,5,3,3,9,6,9,6],[9,13,12,12,4,9,5,9,13,5,9,4,9,13,13,4,9,13,4,9,13,4,9,4,1]]"); - drawMaze(); - } - -}; - -let keyToNeighbor = { '-1': {'0': 1}, '1': {'0': 2}, '0': {'-1': 4, '1': 8} }; -let move = (x, y) => { - let neighbor = 0; - try{ - neighbor = keyToNeighbor[x - currentPosition[0]][y - currentPosition[1]]; - } - catch (e){ - console.log(e); - } - let mask = cells[currentPosition[0]][currentPosition[1]]; - - if(mask & neighbor) { - if(path.length && x == path[path.length - 1][0] && y == path[path.length - 1][1]){ - path.pop(); - currentPosition = [x, y]; - drawMaze(); - } - else{ - path.push(currentPosition); - if(path.length > maxWire){ - path.pop(); - document.getElementById("popover").style.display = "block"; - setTimeout(() => {document.getElementById("popover").style.display = "none";}, 1000); - } - else{ - currentPosition = [x, y]; - drawMaze(); - } - } - } -} - -let keydownFunc = (e) => { - let timerWidth = Math.min(window.innerWidth, window.innerHeight) - offset; - if(!timerRunning){ - timerRunning = true; - if(stage == 1 || stage == 3) - timerDraw(60, 60); - else - timerDraw(40, 40); - } - if(e.keyCode > 36 && e.keyCode < 41){ - if (stage == 1 || stage == 2) - move(currentPosition[0] + ((e.keyCode - 38) % 2), currentPosition[1] + ((e.keyCode - 39) % 2)); - else - move(currentPosition[0] - ((e.keyCode - 38) % 2), currentPosition[1] - ((e.keyCode - 39) % 2)); - } -}; - -document.addEventListener('keydown', keydownFunc); - -window.onload = newMaze; -window.onresize = drawMaze; - -document.getElementById("curtain").style.display = "block"; -document.addEventListener("click", () => { - document.getElementById("curtain").style.display = "none"; +let timerRunning = false, + mazeSize = 25, + stage = 1, + offset = 80, + currentPosition, + pixels, + cells, + end, + path, + maxWire; + +let timerDraw = (totalTime, timeLeft) => { + let parentWidth = Math.min(window.innerWidth, window.innerHeight) - offset; + document.getElementById("timer").style.width = parentWidth; + let ratio = timeLeft / totalTime ; + document.getElementById("timerBar").style.width = ratio*parentWidth; + if (ratio < 0.2){ + document.getElementById("timerBar").style.backgroundColor = "#c00"; + } + else if (ratio < 0.5 ){ + document.getElementById("timerBar").style.backgroundColor = "#ac0"; + } + else{ + document.getElementById("timerBar").style.backgroundColor = "#0c0"; + } + if (timeLeft > 0 && timerRunning) { + setTimeout(() => { + timerDraw(totalTime, timeLeft - 0.2, parentWidth); + }, 200); + } + else if (timeLeft <= 0) { + document.getElementById("curtain").innerHTML = "

You Lose

refresh the page to start again

"; + document.getElementById("curtain").style.display = "block"; + } +}; + +let cableDraw = (totalCable, cableLeft) => { + let parentWidth = Math.min(window.innerWidth, window.innerHeight) - offset; + document.getElementById("cable").style.width = parentWidth; + let ratio =cableLeft / totalCable ; + document.getElementById("cableBar").style.width = ratio*parentWidth; +}; + +let drawMaze = () => { + if(!timerRunning){ + let progressWidth = Math.min(window.innerWidth, window.innerHeight) - offset; + document.getElementById("timer").style.width = progressWidth; + document.getElementById("cable").style.width = progressWidth; + } + + let canvas = document.getElementById('gameCanvas'); + let ctx = canvas.getContext('2d'); + let ctxSize = Math.min(window.innerWidth, window.innerHeight) - offset; + canvas.width = ctxSize; + canvas.height = ctxSize; + + cableDraw(maxWire, maxWire - path.length) + + ctx.clearRect(0, 0, canvas.width, canvas.height); + ctx.fillStyle = '#dd2244'; + ctx.fillRect(0, 0, canvas.width, canvas.height); + + pixels = Math.min(canvas.width, canvas.height); + let scale = pixels / mazeSize; + let line = (x1, y1, x2, y2) => { + ctx.moveTo(x1 + .5, y1 + .5); ctx.lineTo(x2 + .5, y2 + .5); + }; + ctx.scale(scale,scale); + ctx.strokeStyle = '#222a33'; + ctx.lineCap = 'square'; + ctx.lineJoin = 'miter'; + ctx.lineWidth = .75; + cells.forEach((column, x) => { + column.forEach((row, y) => { + ctx.beginPath(); + if(row & 1) line(x, y, x - 1, y); + if(row & 2) line(x, y, x + 1, y); + if(row & 4) line(x, y, x, y - 1); + if(row & 8) line(x, y, x, y + 1); + ctx.stroke(); + ctx.closePath; + }); + }); + + ctx.fillStyle = '#222a33'; + ctx.strokeStyle = '#6699cc'; + ctx.lineJoin = 'miter'; + ctx.lineWidth = .1; + ctx.beginPath(); + ctx.arc(end[0] + .5, end[1] + .5, .25, 0, 2 * Math.PI); + ctx.closePath(); + ctx.stroke(); + ctx.fill(); + + if(path.length) { + ctx.strokeStyle = '#6699cc'; + ctx.lineCap = 'round'; + ctx.lineJoin = 'round'; + ctx.lineWidth = .2; + ctx.beginPath(); + ctx.moveTo(path[0][0] + .5, path[0][1] + .5); + path.forEach((pathPart) => { + ctx.lineTo(pathPart[0] + .5, pathPart[1] + .5); + }); + ctx.lineTo(currentPosition[0] + .5, currentPosition[1] + .5); + ctx.stroke(); + ctx.closePath(); + } + + ctx.fillStyle = '#6699cc'; + ctx.strokeStyle = '#003399'; + ctx.lineJoin = 'miter'; + ctx.lineWidth = .05; + ctx.beginPath(); + ctx.arc(currentPosition[0] + .5, currentPosition[1] + .5, .25, 0, 2 * Math.PI); + ctx.closePath(); + ctx.stroke(); + ctx.fill(); + + if(currentPosition[0] == end[0] && currentPosition[1] == end[1]) { + timerRunning = false; + setTimeout(()=>{ + document.getElementById("timerBar").style.width = "100%"; + document.getElementById("timerBar").style.backgroundColor = "#0c0"; + }, 1000); + let curtainText = ""; + if(stage == 1) + curtainText = "

Stage 1 Completed

"; + else if(stage == 2) + curtainText = "

Stage 2 Completed


Arrow keys inverted !

"; + else if(stage == 3) + curtainText = "

Stage 3 Completed


Arrow keys inverted !

"; + else if(stage == 4) + curtainText = "

Thanks for playing Cable Maze

refresh the page to play again

created by : rezaxdi (https://github.com/rezaxdi/cablemaze)

"; + document.getElementById("curtain").innerHTML = curtainText; + document.getElementById("curtain").style.display = "block"; + if (stage < 4) + setTimeout(()=>{document.getElementById("curtain").style.display = "none";}, 3000); + stage += 1; + newMaze(); + } +}; + +let newMaze = () => { + path = []; + currentPosition = [0, 0]; + end = [mazeSize - 1, mazeSize - 1]; + if (stage == 1 || stage == 3){ + maxWire = 52; + cells = JSON.parse("[[2,10,4,2,8,6,2,10,4,8,12,14,12,4,2,10,12,12,14,6,2,2,10,12,4],[11,5,2,3,8,13,15,13,4,8,12,15,12,12,13,15,12,4,1,1,3,9,7,8,6],[3,8,15,5,2,2,3,10,4,2,8,7,2,10,4,1,10,12,4,2,3,8,15,12,5],[3,2,3,10,5,3,11,13,4,3,8,7,11,13,12,12,13,4,8,13,13,14,15,4,2],[3,3,9,7,8,15,13,4,10,15,14,13,13,14,14,12,6,10,6,2,8,7,1,2,3],[11,5,2,3,2,3,2,2,1,1,3,10,6,1,1,2,1,3,1,3,8,15,4,11,5],[3,8,7,3,11,13,13,13,12,14,7,3,9,12,12,13,4,11,4,9,6,11,4,3,2],[9,12,13,13,15,14,4,2,2,3,1,3,2,2,10,12,4,3,2,2,11,7,10,15,5],[2,2,2,8,7,9,4,3,3,3,2,11,13,5,11,4,2,3,3,11,5,1,3,1,2],[3,11,13,6,11,4,2,11,5,3,3,11,12,6,3,10,5,9,7,11,12,4,11,4,3],[9,13,4,11,5,2,11,13,4,3,3,3,2,1,3,3,10,12,13,13,12,14,5,2,3],[10,6,8,7,2,11,13,4,8,13,7,3,3,10,13,13,7,8,14,12,4,1,2,9,7],[3,9,12,7,3,3,2,10,4,8,7,11,13,15,4,2,1,8,7,8,14,12,5,2,3],[1,2,8,7,3,9,13,15,12,4,11,13,6,11,4,3,2,10,5,2,3,10,4,9,7],[8,13,12,13,7,2,2,11,12,4,11,4,1,9,12,5,11,5,2,3,3,3,10,12,5],[8,12,14,4,9,13,15,13,4,10,13,4,10,12,4,2,11,6,11,13,5,9,7,8,6],[10,12,7,8,6,2,9,14,4,3,10,4,3,10,4,3,3,9,5,8,14,4,11,12,5],[3,8,13,12,13,15,14,15,4,11,13,12,13,5,2,11,5,2,2,10,13,4,11,4,2],[1,8,12,12,12,5,1,9,6,11,12,4,10,4,3,3,10,13,5,11,12,4,11,12,7],[8,6,2,8,12,14,12,14,13,15,6,10,5,8,13,7,3,10,12,15,6,10,15,6,3],[8,13,13,12,6,1,8,7,8,5,3,11,4,2,10,13,13,7,2,1,11,5,1,1,1],[10,14,12,14,13,12,14,13,12,6,9,15,14,13,15,12,6,9,13,6,9,12,4,10,4],[1,3,10,5,10,12,7,8,14,5,8,7,11,6,1,2,11,12,4,11,12,12,6,11,4],[10,7,3,8,13,6,1,8,7,2,8,7,1,11,12,5,1,10,4,9,4,8,15,15,4],[1,1,9,4,8,13,4,8,5,9,12,13,4,9,12,12,12,13,12,12,12,4,1,9,4]]"); + drawMaze(); + } + else if(stage == 2 || stage == 4){ + maxWire = 110; + cells = JSON.parse("[[10,12,12,12,12,12,14,12,12,12,12,6,2,10,12,12,14,12,6,10,12,12,12,6,2],[9,6,8,14,6,10,7,10,12,12,6,3,3,9,12,6,3,8,13,5,10,6,10,5,3],[8,13,12,5,1,3,1,11,12,4,3,9,7,2,10,5,9,14,6,8,7,1,9,6,3],[10,14,12,12,12,5,10,5,10,12,5,2,3,11,5,10,6,3,9,6,3,10,12,5,3],[3,3,10,12,12,12,5,10,7,10,6,9,5,3,10,5,3,11,4,3,11,5,8,14,7],[3,1,9,12,6,10,6,3,1,3,3,10,12,13,7,2,3,1,10,5,3,10,12,5,1],[11,12,12,12,5,3,3,3,10,5,9,5,10,6,3,9,13,12,5,2,3,9,12,12,6],[9,6,10,12,12,5,3,9,5,10,12,12,5,3,9,12,12,6,10,7,9,12,6,10,5],[10,5,9,6,10,4,3,10,6,11,12,12,6,3,2,10,6,3,3,9,4,10,5,11,6],[9,6,10,5,9,14,5,1,9,13,4,10,5,9,7,3,3,3,11,12,12,5,8,7,3],[10,5,9,12,6,9,6,10,12,12,12,5,2,10,5,3,9,5,3,8,12,14,6,1,3],[3,10,12,12,5,2,3,11,12,6,10,6,9,7,2,9,12,6,9,12,6,3,9,12,7],[3,3,10,4,10,13,5,9,6,9,5,9,6,9,13,6,10,5,10,6,9,5,2,10,5],[9,5,11,12,5,8,6,10,13,12,6,2,3,2,10,5,9,12,5,9,14,6,3,3,2],[10,12,5,8,14,6,9,7,10,6,9,7,3,11,5,8,14,4,10,6,1,3,11,13,7],[3,8,14,6,3,9,6,1,3,9,6,3,3,9,12,12,7,10,5,9,6,9,7,2,3],[3,10,5,9,5,2,3,10,5,2,3,1,9,12,6,10,5,3,8,12,13,12,5,11,5],[9,5,10,12,12,5,9,5,10,7,3,10,12,12,5,9,6,3,10,14,4,10,6,3,2],[10,6,9,12,14,12,6,10,5,3,9,5,10,12,6,2,3,9,5,9,6,3,3,3,3],[3,9,12,6,11,4,9,5,10,13,12,6,9,6,9,5,9,6,10,12,7,3,3,3,3],[3,8,6,3,3,10,6,10,5,8,12,13,12,7,10,12,12,5,3,10,5,3,3,9,7],[3,10,5,3,1,3,9,5,10,12,12,6,10,5,3,10,12,14,5,1,10,5,3,2,3],[3,9,12,13,12,5,10,6,3,8,6,3,1,10,5,3,8,5,10,6,3,10,5,11,5],[3,10,12,12,12,6,3,3,3,10,7,9,6,3,2,9,6,10,5,3,3,9,6,9,6],[9,13,12,12,4,9,5,9,13,5,9,4,9,13,13,4,9,13,4,9,13,4,9,4,1]]"); + drawMaze(); + } + +}; + +let keyToNeighbor = { '-1': {'0': 1}, '1': {'0': 2}, '0': {'-1': 4, '1': 8} }; +let move = (x, y) => { + let neighbor = 0; + try{ + neighbor = keyToNeighbor[x - currentPosition[0]][y - currentPosition[1]]; + } + catch (e){ + console.log(e); + } + let mask = cells[currentPosition[0]][currentPosition[1]]; + + if(mask & neighbor) { + if(path.length && x == path[path.length - 1][0] && y == path[path.length - 1][1]){ + path.pop(); + currentPosition = [x, y]; + drawMaze(); + } + else{ + path.push(currentPosition); + if(path.length > maxWire){ + path.pop(); + document.getElementById("popover").style.display = "block"; + setTimeout(() => {document.getElementById("popover").style.display = "none";}, 1000); + } + else{ + currentPosition = [x, y]; + drawMaze(); + } + } + } +} + +let keydownFunc = (e) => { + let timerWidth = Math.min(window.innerWidth, window.innerHeight) - offset; + if(!timerRunning){ + timerRunning = true; + if(stage == 1 || stage == 3) + timerDraw(60, 60); + else + timerDraw(40, 40); + } + if(e.keyCode > 36 && e.keyCode < 41){ + if (stage == 1 || stage == 2) + move(currentPosition[0] + ((e.keyCode - 38) % 2), currentPosition[1] + ((e.keyCode - 39) % 2)); + else + move(currentPosition[0] - ((e.keyCode - 38) % 2), currentPosition[1] - ((e.keyCode - 39) % 2)); + } +}; + +document.addEventListener('keydown', keydownFunc); + +window.onload = newMaze; +window.onresize = drawMaze; + +document.getElementById("curtain").style.display = "block"; +document.addEventListener("click", () => { + document.getElementById("curtain").style.display = "none"; }); \ No newline at end of file diff --git a/Games/Meme_Battle_Game/public/main.js b/Games/Meme_Battle_Game/public/main.js index 4231f4e572..a85579d79b 100644 --- a/Games/Meme_Battle_Game/public/main.js +++ b/Games/Meme_Battle_Game/public/main.js @@ -1,313 +1,313 @@ -const usernameDisply=document.getElementById('username-display'); -const usernameInput = document.getElementById('username-input'); -const loginBtn = document.getElementById('login-btn'); - -const showResultsBtn = document.getElementById('show-results-btn'); -const modalContainer=document.getElementById('modal-container'); -const closeModalBtn = document.getElementById('close-modal-btn'); -const resultText = document.getElementById('result-text'); - - -const situationSection = document.getElementById('situation'); -const player1Section = document.getElementById('player1'); -const player2Section = document.getElementById('player2'); -const resultSection = document.getElementById('result'); -const gameStartSection=document.getElementById('game-start'); -const gameSection=document.getElementById('game-section'); - -const memeContainer1 = document.getElementById('meme-container1'); -const generateBtn1 = document.getElementById('generate-btn1'); -const battleBtn1 = document.getElementById('battle-btn1'); - -let player1Meme = ''; -let player1Username=''; - - -const memeContainer2 = document.getElementById('meme-container2'); -const generateBtn2 = document.getElementById('generate-btn2'); -const battleBtn2 = document.getElementById('battle-btn2'); - -let player2Meme = ''; -let player2Username = ' '; - -let player1Name=document.getElementById('player1-username-display'); -let player2Name=document.getElementById('player2-username-display'); - - - - - - - - - - - -function startGame() { - - - gameStartSection.style.display='block'; - //generate memes for both players - generateMemeforPlayer1(1); - generateMemeforPlayer(2); - setTimeout(startBattle,5000); - initializeGame(); - setTimeout(restartGame, 20000); - -} - - - -function startBattle(){ - gameStartSection.style.display='none'; - gameStartSection.style.display='block'; - -} - - - -showResultsBtn.addEventListener('click',openModal); -closeModalBtn.addEventListener('click',closeModal); - -function openModal(results){ - resultText.textContent=results; - modalContainer.style.display='block'; -} - -function closeModal(){ - modalContainer.style.display='none'; -} - - - - - - -function generateMeme(memes){ - const memeCount = 20; - const randomIndex=Math.floor(Math.random()*memeCount)+1; - const fileExtensions=['.jpg','.jpeg','.png']; - const randomExtension = fileExtensions[Math.floor(Math.random()*fileExtensions.length)]; - const imagePath = `./${memes}/${randomIndex}${randomExtension}`; - return imagePath; - -} - - - -function initializeGame() { - const situationText = document.getElementById('situation-text'); - - const situations = [ - 'When you see a funny meme while drinking water', - 'When your favorite song comes on the radio', - 'When you find money in your pocket', - 'When you accidently send a text to the wrong person', - 'When you wake up and realize it is Monday', - 'When you win an argument on the internet', - 'When you receive unexpected praise for your work', - 'When you remember a hilarious inside joke with your friends', - 'When you accidentally overhear someone talking about you in a positive way', - 'When you see a cute animal doing something funny', - 'When you receive a surprise gift from someone special', - 'When you successfully navigate through a crowded place without bumping into anyone', - 'When you discover a hidden gem of a song or movie', - 'When you successfully catch something that you dropped without it breaking', - 'When you witness a hilarious fail or blooper in real life', - 'When you win a game or competition by a landslide', - ]; - const updateSituation = () =>{ - const randomIndex=Math.floor(Math.random()*situations.length); - const currentSituation = situations[randomIndex]; - situationText.textContent = currentSituation; - }; - - updateSituation(); - setInterval(updateSituation,20000); - - generateBtn1.addEventListener('click',async()=>{ - if(!player1Username) - - player1Meme=generateMeme('memes/player1'); - if (player1Meme){ - memeContainer1.innerHTML=`Meme generated by Player 1`; - } - }); - battleBtn1.addEventListener('click', () => { - if (!player2Username){ - alert('Player2 must log in first!'); - return; - } - if(!player1Meme){ - alert('Player1 must generate a meme first!!'); - return; - } - - compareMemes(player1Meme,player2Meme); - - }); - - generateBtn2.addEventListener('click',()=>{ - player2Meme = generateMeme('memes/player2'); - if(player2Meme){ - memeContainer2.innerHTML=`Meme generated by Player 2`; - } - }); - battleBtn2.addEventListener('click', () => { - if (!player2Meme){ - alert('Player 2 must generate a meme first!'); - return; - - } - compareMemes(player1Meme,player2Meme); - }); -} -let player1MemeCount=0; -let player2MemeCount=0; -tieCount=0; - - -function calculateSimilarity(meme1, meme2) { - // Implement your similarity calculation logic here - // For example, using Levenshtein distance algorithm - const distance = levenshteinDistance(meme1, meme2); - const similarity = 1 - distance / Math.max(meme1.length, meme2.length); - return similarity; -} - -// Helper function to calculate Levenshtein distance between two strings -function levenshteinDistance(str1, str2) { - const m = str1.length; - const n = str2.length; - const dp = Array.from({ length: m + 1 }, () => Array(n + 1).fill(0)); - - for (let i = 0; i <= m; i++) { - dp[i][0] = i; - } - - for (let j = 0; j <= n; j++) { - dp[0][j] = j; - } - - for (let i = 1; i <= m; i++) { - for (let j = 1; j <= n; j++) { - if (str1[i - 1] === str2[j - 1]) { - dp[i][j] = dp[i - 1][j - 1]; - } else { - dp[i][j] = Math.min( - dp[i - 1][j - 1] + 1, // substitution - dp[i][j - 1] + 1, // insertion - dp[i - 1][j] + 1 // deletion - ); - } - } - } - - return dp[m][n]; -} - - - - -function compareMemes(meme1,meme2){ - const situationText = document.getElementById('situation-text').textContent; - - const similarity1 = calculateSimilarity(meme1,situationText); - const similarity2 = calculateSimilarity(meme2, situationText); - - let resultMessage=''; - - - - - if(similarity1>similarity2){ - //player 1 wins - player1MemeCount++; - resultMessage='Warrior Alpha wins!'; - }else if (similarity2 > similarity1){ - //player 2 wins - player2MemeCount++; - resultMessage = 'Warrior Beta wins!'; - }else{ - tieCount++; - resultMessage = 'Its a tie'; - } - - //Update the score display - updateScoreDisplay(); - if(player1MemeCount >= 5|| player2MemeCount >=5){ - - - - openModal(resultMessage); - disableButtons(); - setTimeout(restartGame,10000); - }else{ - memeContainer1.innerHTML=''; - memeContainer2.innerHTML=''; - player1Meme = ''; - player2Meme = ''; - } - - -} - function updateScoreDisplay(){ - - const player1Score = document.getElementById('player1-score'); - const player2Score = document.getElementById('player2-score'); - - player1Score.textContent = `Memes generated: ${player1MemeCount}`; - player2Score.textContent = `Memes generated: ${player2MemeCount}`; - - } - -function disableButtons() { - generateBtn1.disabled = true; - battleBtn1.disabled = true; - generateBtn2.disabled = true; - battleBtn2.disabled = true; - -} - -function restartGame(){ - - player1MemeCount = 0; - player2MemeCount = 0; - tieCount = 0; - updateScoreDisplay(); - - enableButtons(); - - - - - // Restart game after 2 seconds - - - -} - - -function enableButtons() { - generateBtn1.disabled = false; - battleBtn1.disabled = false; - generateBtn2.disabled = false; - battleBtn2.disabled = false; -} - - // call initializeGame() here to stRT THE GAME - initializeGame(); - - - - - - - - - - - - - - +const usernameDisply=document.getElementById('username-display'); +const usernameInput = document.getElementById('username-input'); +const loginBtn = document.getElementById('login-btn'); + +const showResultsBtn = document.getElementById('show-results-btn'); +const modalContainer=document.getElementById('modal-container'); +const closeModalBtn = document.getElementById('close-modal-btn'); +const resultText = document.getElementById('result-text'); + + +const situationSection = document.getElementById('situation'); +const player1Section = document.getElementById('player1'); +const player2Section = document.getElementById('player2'); +const resultSection = document.getElementById('result'); +const gameStartSection=document.getElementById('game-start'); +const gameSection=document.getElementById('game-section'); + +const memeContainer1 = document.getElementById('meme-container1'); +const generateBtn1 = document.getElementById('generate-btn1'); +const battleBtn1 = document.getElementById('battle-btn1'); + +let player1Meme = ''; +let player1Username=''; + + +const memeContainer2 = document.getElementById('meme-container2'); +const generateBtn2 = document.getElementById('generate-btn2'); +const battleBtn2 = document.getElementById('battle-btn2'); + +let player2Meme = ''; +let player2Username = ' '; + +let player1Name=document.getElementById('player1-username-display'); +let player2Name=document.getElementById('player2-username-display'); + + + + + + + + + + + +function startGame() { + + + gameStartSection.style.display='block'; + //generate memes for both players + generateMemeforPlayer1(1); + generateMemeforPlayer(2); + setTimeout(startBattle,5000); + initializeGame(); + setTimeout(restartGame, 20000); + +} + + + +function startBattle(){ + gameStartSection.style.display='none'; + gameStartSection.style.display='block'; + +} + + + +showResultsBtn.addEventListener('click',openModal); +closeModalBtn.addEventListener('click',closeModal); + +function openModal(results){ + resultText.textContent=results; + modalContainer.style.display='block'; +} + +function closeModal(){ + modalContainer.style.display='none'; +} + + + + + + +function generateMeme(memes){ + const memeCount = 20; + const randomIndex=Math.floor(Math.random()*memeCount)+1; + const fileExtensions=['.jpg','.jpeg','.png']; + const randomExtension = fileExtensions[Math.floor(Math.random()*fileExtensions.length)]; + const imagePath = `./${memes}/${randomIndex}${randomExtension}`; + return imagePath; + +} + + + +function initializeGame() { + const situationText = document.getElementById('situation-text'); + + const situations = [ + 'When you see a funny meme while drinking water', + 'When your favorite song comes on the radio', + 'When you find money in your pocket', + 'When you accidently send a text to the wrong person', + 'When you wake up and realize it is Monday', + 'When you win an argument on the internet', + 'When you receive unexpected praise for your work', + 'When you remember a hilarious inside joke with your friends', + 'When you accidentally overhear someone talking about you in a positive way', + 'When you see a cute animal doing something funny', + 'When you receive a surprise gift from someone special', + 'When you successfully navigate through a crowded place without bumping into anyone', + 'When you discover a hidden gem of a song or movie', + 'When you successfully catch something that you dropped without it breaking', + 'When you witness a hilarious fail or blooper in real life', + 'When you win a game or competition by a landslide', + ]; + const updateSituation = () =>{ + const randomIndex=Math.floor(Math.random()*situations.length); + const currentSituation = situations[randomIndex]; + situationText.textContent = currentSituation; + }; + + updateSituation(); + setInterval(updateSituation,20000); + + generateBtn1.addEventListener('click',async()=>{ + if(!player1Username) + + player1Meme=generateMeme('memes/player1'); + if (player1Meme){ + memeContainer1.innerHTML=`Meme generated by Player 1`; + } + }); + battleBtn1.addEventListener('click', () => { + if (!player2Username){ + alert('Player2 must log in first!'); + return; + } + if(!player1Meme){ + alert('Player1 must generate a meme first!!'); + return; + } + + compareMemes(player1Meme,player2Meme); + + }); + + generateBtn2.addEventListener('click',()=>{ + player2Meme = generateMeme('memes/player2'); + if(player2Meme){ + memeContainer2.innerHTML=`Meme generated by Player 2`; + } + }); + battleBtn2.addEventListener('click', () => { + if (!player2Meme){ + alert('Player 2 must generate a meme first!'); + return; + + } + compareMemes(player1Meme,player2Meme); + }); +} +let player1MemeCount=0; +let player2MemeCount=0; +tieCount=0; + + +function calculateSimilarity(meme1, meme2) { + // Implement your similarity calculation logic here + // For example, using Levenshtein distance algorithm + const distance = levenshteinDistance(meme1, meme2); + const similarity = 1 - distance / Math.max(meme1.length, meme2.length); + return similarity; +} + +// Helper function to calculate Levenshtein distance between two strings +function levenshteinDistance(str1, str2) { + const m = str1.length; + const n = str2.length; + const dp = Array.from({ length: m + 1 }, () => Array(n + 1).fill(0)); + + for (let i = 0; i <= m; i++) { + dp[i][0] = i; + } + + for (let j = 0; j <= n; j++) { + dp[0][j] = j; + } + + for (let i = 1; i <= m; i++) { + for (let j = 1; j <= n; j++) { + if (str1[i - 1] === str2[j - 1]) { + dp[i][j] = dp[i - 1][j - 1]; + } else { + dp[i][j] = Math.min( + dp[i - 1][j - 1] + 1, // substitution + dp[i][j - 1] + 1, // insertion + dp[i - 1][j] + 1 // deletion + ); + } + } + } + + return dp[m][n]; +} + + + + +function compareMemes(meme1,meme2){ + const situationText = document.getElementById('situation-text').textContent; + + const similarity1 = calculateSimilarity(meme1,situationText); + const similarity2 = calculateSimilarity(meme2, situationText); + + let resultMessage=''; + + + + + if(similarity1>similarity2){ + //player 1 wins + player1MemeCount++; + resultMessage='Warrior Alpha wins!'; + }else if (similarity2 > similarity1){ + //player 2 wins + player2MemeCount++; + resultMessage = 'Warrior Beta wins!'; + }else{ + tieCount++; + resultMessage = 'Its a tie'; + } + + //Update the score display + updateScoreDisplay(); + if(player1MemeCount >= 5|| player2MemeCount >=5){ + + + + openModal(resultMessage); + disableButtons(); + setTimeout(restartGame,10000); + }else{ + memeContainer1.innerHTML=''; + memeContainer2.innerHTML=''; + player1Meme = ''; + player2Meme = ''; + } + + +} + function updateScoreDisplay(){ + + const player1Score = document.getElementById('player1-score'); + const player2Score = document.getElementById('player2-score'); + + player1Score.textContent = `Memes generated: ${player1MemeCount}`; + player2Score.textContent = `Memes generated: ${player2MemeCount}`; + + } + +function disableButtons() { + generateBtn1.disabled = true; + battleBtn1.disabled = true; + generateBtn2.disabled = true; + battleBtn2.disabled = true; + +} + +function restartGame(){ + + player1MemeCount = 0; + player2MemeCount = 0; + tieCount = 0; + updateScoreDisplay(); + + enableButtons(); + + + + + // Restart game after 2 seconds + + + +} + + +function enableButtons() { + generateBtn1.disabled = false; + battleBtn1.disabled = false; + generateBtn2.disabled = false; + battleBtn2.disabled = false; +} + + // call initializeGame() here to stRT THE GAME + initializeGame(); + + + + + + + + + + + + + + diff --git a/Games/Meme_Battle_Game/public/style.css b/Games/Meme_Battle_Game/public/style.css index 81613adc84..955629c3f1 100644 --- a/Games/Meme_Battle_Game/public/style.css +++ b/Games/Meme_Battle_Game/public/style.css @@ -1,318 +1,318 @@ - - @font-face { - font-family: 'PublicPixel'; - src: url('../public/memes/fonts/PublicPixel-z84yD.ttf') format('truetype'); -} - - - - -body{ - text-align:center; - background-image: url('BATTLE\ game\ \(5\).png'); - background-size:cover; - background-position: center ; - background-repeat:no-repeat; - display: block; - background-color: rgb(21, 2, 41); - - -} - - -.clouds{ - position:fixed; - top:0; - left:0; - width:100%; - height:100%; - z-index:-1; - overflow:hidden; -} - - -.cloud{ - position:absolute; - - width:200px; - height:85px; - animation-duration:15s; - animation: cloudMove 20s linear infinite alternate; -} - -.cloud:nth-child(1){ - top:20%; - left:10%; -} - -.cloud:nth-child(2){ - top:55%; - left:50%; -} - -.cloud:nth-child(3){ - top:25%; - right:10%; -} - -.hearts{ - position:absolute; - width:auto; - height:auto; - animation: vertical-spin 4s linear infinite; -} - -.hearts:nth-child(1){ - bottom:18%; - left:15%; -} - -.hearts:nth-child(2){ - bottom:18%; - left:18%; -} - -.hearts:nth-child(3){ - bottom:18%; - left:21%; -} - -.hearts:nth-child(4){ - bottom:18%; - left:24%; -} - -.sto{ - position:absolute; - width:auto; - height:auto; - animation: vertical-spin 4s linear infinite; - -} - -.sto:nth-child(1){ - bottom:18%; - right:15%; -} -.sto:nth-child(2){ - bottom:18%; - right:18%; - -} -.sto:nth-child(3){ - bottom:18%; - right:21%; -} -.sto:nth-child(4){ - bottom:18%; - right:24%; - -} - - -@keyframes vertical-spin{ - 0%{ - transform:rotateY(0deg); - } - 100%{ - transform:rotateY(360deg); - } -} - - - - @keyframes cloudMove { - 0% { - transform: translateX(100%); - } - 100%{ - translate:translateX(-100%); - } - } - - - - - - -.arcade-gamer-title{ - font-family: 'PublicPixel', sans-serif; - color:#ffff; - font-size: 75px; - animation: glitch 2s infinite; - -} - -@keyframes glitch { - 0% { - transform: translate(0); - } - 20% { - transform: translate(-2px, 2px); - } - 40% { - transform: translate(-2px, -2px); - } - 60% { - transform: translate(2px, 2px); - } - 80% { - transform: translate(2px, -2px); - } - 100% { - transform: translate(0); - } - } - - - - - - - -h2,h3{ - font-family:"Public Pixel",sans-serif; -} -.ghost{ - position:absolute; - width:42px; - height:42px; - - - -} -.ghost:nth-child(1){ - bottom:29%; - left:25%; -} - -.ghost:nth-child(2){ - bottom:29%; - right:25%; -} - - -#situation,#result{ - margin:20px; - height:75px; - font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; - color:rgba(23, 210, 223, 0.914); - text-size-adjust: 420px; -} -#player1,#player2{ - display:inline-block; - margin:20px; - color:rgb(184, 117, 18); - - -} -#meme-container1{ - width:100%; - height:100%; - display:flex; - justify-content:center; - align-items:center; - overflow:hidden; - - - -} -.meme-container1 .meme-image{ - max-width: 55%; - max-height: 55%; -} - -#meme-container2{ - width:100%; - height:100%; - display:flex; - justify-content:center; - align-items:center; - overflow:hidden; - - -} -.meme-container2 .meme-image{ - max-width: 55%; - max-height: 55%; - -} -#generate-btn1, #generate-btn2, #battle-btn1, #battle-btn2{ - padding:8px 20px; - border: none; - border-left:4px solid #222; - border-right: 4px solid #222; - margin:24px 0; - font-size:20px; - color:blue; - background:#ffff; - cursor:pointer; - transition: all 400ms ease ; -} - -#generate-btn1:hover , #generate-btn2:hover{ - background-color: #45a049; - padding: 8px 36px; - letter-spacing: 3px; -} -#battle-btn1:hover, #battle-btn2:hover{ - background-color:maroon; - padding: 8px 36px; - letter-spacing: 3px; -} - -.game-footer { - background-color: #f2f2f2; - padding: 20px; - text-align: center; - } - - -/* Style for the modal container */ -#modal-container { - display: none; - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-color: rgba(0, 0, 0, 0.6); - z-index: 9999; - } - - /* Style for the modal content */ - #modal-content { - background-color: #fff; - width: 400px; - margin: 100px auto; - padding: 20px; - border-radius: 5px; - text-align: center; - } - - /* Style for the close button */ - #close-modal-btn { - margin-top: 10px; - } -#show-results-btn{ - position:absolute center; - bottom:55px ; - padding:8px 20px; - border: none; - border-left:4px solid #222; - border-right: 4px solid #222; - margin:94px 90px; - font-size:20px; - color:blue; - background:#ffff; - cursor:pointer; - transition: all 400ms ease ; - display:flex; - margin-bottom: 45px; - text-align: center; - margin:auto; - - -} - - + + @font-face { + font-family: 'PublicPixel'; + src: url('../public/memes/fonts/PublicPixel-z84yD.ttf') format('truetype'); +} + + + + +body{ + text-align:center; + background-image: url('BATTLE\ game\ \(5\).png'); + background-size:cover; + background-position: center ; + background-repeat:no-repeat; + display: block; + background-color: rgb(21, 2, 41); + + +} + + +.clouds{ + position:fixed; + top:0; + left:0; + width:100%; + height:100%; + z-index:-1; + overflow:hidden; +} + + +.cloud{ + position:absolute; + + width:200px; + height:85px; + animation-duration:15s; + animation: cloudMove 20s linear infinite alternate; +} + +.cloud:nth-child(1){ + top:20%; + left:10%; +} + +.cloud:nth-child(2){ + top:55%; + left:50%; +} + +.cloud:nth-child(3){ + top:25%; + right:10%; +} + +.hearts{ + position:absolute; + width:auto; + height:auto; + animation: vertical-spin 4s linear infinite; +} + +.hearts:nth-child(1){ + bottom:18%; + left:15%; +} + +.hearts:nth-child(2){ + bottom:18%; + left:18%; +} + +.hearts:nth-child(3){ + bottom:18%; + left:21%; +} + +.hearts:nth-child(4){ + bottom:18%; + left:24%; +} + +.sto{ + position:absolute; + width:auto; + height:auto; + animation: vertical-spin 4s linear infinite; + +} + +.sto:nth-child(1){ + bottom:18%; + right:15%; +} +.sto:nth-child(2){ + bottom:18%; + right:18%; + +} +.sto:nth-child(3){ + bottom:18%; + right:21%; +} +.sto:nth-child(4){ + bottom:18%; + right:24%; + +} + + +@keyframes vertical-spin{ + 0%{ + transform:rotateY(0deg); + } + 100%{ + transform:rotateY(360deg); + } +} + + + + @keyframes cloudMove { + 0% { + transform: translateX(100%); + } + 100%{ + translate:translateX(-100%); + } + } + + + + + + +.arcade-gamer-title{ + font-family: 'PublicPixel', sans-serif; + color:#ffff; + font-size: 75px; + animation: glitch 2s infinite; + +} + +@keyframes glitch { + 0% { + transform: translate(0); + } + 20% { + transform: translate(-2px, 2px); + } + 40% { + transform: translate(-2px, -2px); + } + 60% { + transform: translate(2px, 2px); + } + 80% { + transform: translate(2px, -2px); + } + 100% { + transform: translate(0); + } + } + + + + + + + +h2,h3{ + font-family:"Public Pixel",sans-serif; +} +.ghost{ + position:absolute; + width:42px; + height:42px; + + + +} +.ghost:nth-child(1){ + bottom:29%; + left:25%; +} + +.ghost:nth-child(2){ + bottom:29%; + right:25%; +} + + +#situation,#result{ + margin:20px; + height:75px; + font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; + color:rgba(23, 210, 223, 0.914); + text-size-adjust: 420px; +} +#player1,#player2{ + display:inline-block; + margin:20px; + color:rgb(184, 117, 18); + + +} +#meme-container1{ + width:100%; + height:100%; + display:flex; + justify-content:center; + align-items:center; + overflow:hidden; + + + +} +.meme-container1 .meme-image{ + max-width: 55%; + max-height: 55%; +} + +#meme-container2{ + width:100%; + height:100%; + display:flex; + justify-content:center; + align-items:center; + overflow:hidden; + + +} +.meme-container2 .meme-image{ + max-width: 55%; + max-height: 55%; + +} +#generate-btn1, #generate-btn2, #battle-btn1, #battle-btn2{ + padding:8px 20px; + border: none; + border-left:4px solid #222; + border-right: 4px solid #222; + margin:24px 0; + font-size:20px; + color:blue; + background:#ffff; + cursor:pointer; + transition: all 400ms ease ; +} + +#generate-btn1:hover , #generate-btn2:hover{ + background-color: #45a049; + padding: 8px 36px; + letter-spacing: 3px; +} +#battle-btn1:hover, #battle-btn2:hover{ + background-color:maroon; + padding: 8px 36px; + letter-spacing: 3px; +} + +.game-footer { + background-color: #f2f2f2; + padding: 20px; + text-align: center; + } + + +/* Style for the modal container */ +#modal-container { + display: none; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.6); + z-index: 9999; + } + + /* Style for the modal content */ + #modal-content { + background-color: #fff; + width: 400px; + margin: 100px auto; + padding: 20px; + border-radius: 5px; + text-align: center; + } + + /* Style for the close button */ + #close-modal-btn { + margin-top: 10px; + } +#show-results-btn{ + position:absolute center; + bottom:55px ; + padding:8px 20px; + border: none; + border-left:4px solid #222; + border-right: 4px solid #222; + margin:94px 90px; + font-size:20px; + color:blue; + background:#ffff; + cursor:pointer; + transition: all 400ms ease ; + display:flex; + margin-bottom: 45px; + text-align: center; + margin:auto; + + +} + + diff --git a/Games/Memory_Game/README.md b/Games/Memory_Game/README.md index a27cffbf1e..f01e9ac612 100644 --- a/Games/Memory_Game/README.md +++ b/Games/Memory_Game/README.md @@ -1,34 +1,34 @@ -# **Memory_Game** - ---- - -
- -## **Description ๐Ÿ“ƒ** -- Memory Game, also known as the Concentration card game or Matching Game is a classic card-flipping game where players test their memory skills by matching pairs of cards. The objective of the game is to flip over two cards at a time and find all the matching pairs within the specified number of moves. -**Test Your Memory Power** - -## **functionalities ๐ŸŽฎ** -- You will start by flipping over one card -- If the next card you flip matches, both the cards will stay flipped and moves increases by 1. -- If the next card you flip does not match, the cards flip back. -- The game continues until you match all the cards on the board. -- Timer will be running for 5 minutes, after this the game ends. -
- -## **How to play? ๐Ÿ•น๏ธ** -- Start by flipping over cards -- Until All pair of cards are matched, the game continues. -- Max Time limit you have is 5 mins. -- Happy Playing๐Ÿ˜‰!! - -
- -## **Screenshots ๐Ÿ“ธ** -![image](../../assets/images/MemoryGame.png) -
- -
- -## **Working video ๐Ÿ“น** - +# **Memory_Game** + +--- + +
+ +## **Description ๐Ÿ“ƒ** +- Memory Game, also known as the Concentration card game or Matching Game is a classic card-flipping game where players test their memory skills by matching pairs of cards. The objective of the game is to flip over two cards at a time and find all the matching pairs within the specified number of moves. +**Test Your Memory Power** + +## **functionalities ๐ŸŽฎ** +- You will start by flipping over one card +- If the next card you flip matches, both the cards will stay flipped and moves increases by 1. +- If the next card you flip does not match, the cards flip back. +- The game continues until you match all the cards on the board. +- Timer will be running for 5 minutes, after this the game ends. +
+ +## **How to play? ๐Ÿ•น๏ธ** +- Start by flipping over cards +- Until All pair of cards are matched, the game continues. +- Max Time limit you have is 5 mins. +- Happy Playing๐Ÿ˜‰!! + +
+ +## **Screenshots ๐Ÿ“ธ** +![image](../../assets/images/MemoryGame.png) +
+ +
+ +## **Working video ๐Ÿ“น** + diff --git a/Games/Memory_Game/index.html b/Games/Memory_Game/index.html index ce390456dd..9bb8a8aabe 100644 --- a/Games/Memory_Game/index.html +++ b/Games/Memory_Game/index.html @@ -1,42 +1,42 @@ - - - - - - Memory Game - - - - - - - - -
- -
-
-
-
-
-
-

INSTRUCTIONS

-

1. Click on each block to turn it

-

2. Remember the position of each block image

-

3. Click on another block and try to remember on which block have you seen the same image

-

4. Your Number of moves are counted

-
- -
-
-

- -
- - - - + + + + + + Memory Game + + + + + + + + +
+ +
+
+
+
+
+
+

INSTRUCTIONS

+

1. Click on each block to turn it

+

2. Remember the position of each block image

+

3. Click on another block and try to remember on which block have you seen the same image

+

4. Your Number of moves are counted

+
+ +
+
+

+ +
+ + + + \ No newline at end of file diff --git a/Games/Memory_Game/script.js b/Games/Memory_Game/script.js index 32c76941a6..40a648153c 100644 --- a/Games/Memory_Game/script.js +++ b/Games/Memory_Game/script.js @@ -1,187 +1,187 @@ -const moves = document.getElementById("moves-count"); -const timeValue = document.getElementById("time"); -const startButton = document.getElementById("start"); -const stopButton = document.getElementById("stop"); -const gameContainer = document.querySelector(".game-container"); -const result = document.getElementById("result"); -const controls = document.querySelector(".controls-container"); -let cards; -let interval; -let firstCard = false; -let secondCard = false; - -//Items array -const items = [ - { name: "bee", image: "bee.png" }, - { name: "crocodile", image: "crocodile.png" }, - { name: "macaw", image: "macaw.png" }, - { name: "gorilla", image: "gorilla.png" }, - { name: "tiger", image: "tiger.png" }, - { name: "monkey", image: "monkey.png" }, - { name: "chameleon", image: "chameleon.png" }, - { name: "piranha", image: "piranha.png" }, - { name: "anaconda", image: "anaconda.png" }, - { name: "sloth", image: "sloth.png" }, - { name: "cockatoo", image: "cockatoo.png" }, - { name: "toucan", image: "toucan.png" }, -]; - -//Initial Time -let seconds = 0, - minutes = 0; -//Initial moves and win count -let movesCount = 0, - winCount = 0; - -//For timer -const timeGenerator = () => { - seconds += 1; - //minutes logic - if (seconds >= 60) { - minutes += 1; - seconds = 0; - } - //format time before displaying - let secondsValue = seconds < 10 ? `0${seconds}` : seconds; - let minutesValue = minutes < 10 ? `0${minutes}` : minutes; - timeValue.innerHTML = `Time:${minutesValue}:${secondsValue}`; -}; - -//For calculating moves -const movesCounter = () => { - movesCount += 1; - moves.innerHTML = `Moves:${movesCount}`; -}; - -//Pick random objects from the items array -const generateRandom = (size = 4) => { - //temporary array - let tempArray = [...items]; - //initializes cardValues array - let cardValues = []; - //size should be double (4*4 matrix)/2 since pairs of objects would exist - size = (size * size) / 2; - //Random object selection - for (let i = 0; i < size; i++) { - const randomIndex = Math.floor(Math.random() * tempArray.length); - cardValues.push(tempArray[randomIndex]); - //once selected remove the object from temp array - tempArray.splice(randomIndex, 1); - } - return cardValues; -}; - -const matrixGenerator = (cardValues, size = 4) => { - gameContainer.innerHTML = ""; - cardValues = [...cardValues, ...cardValues]; - //simple shuffle - cardValues.sort(() => Math.random() - 0.5); - for (let i = 0; i < size * size; i++) { - /* - Create Cards - before => front side (contains question mark) - after => back side (contains actual image); - data-card-values is a custom attribute which stores the names of the cards to match later - */ - gameContainer.innerHTML += ` -
-
?
-
-
-
- `; - } - //Grid - gameContainer.style.gridTemplateColumns = `repeat(${size},auto)`; - - //Cards - cards = document.querySelectorAll(".card-container"); - cards.forEach((card) => { - card.addEventListener("click", () => { - //If selected card is not matched yet then only run (i.e already matched card when clicked would be ignored) - if (!card.classList.contains("matched")) { - //flip the cliked card - card.classList.add("flipped"); - //if it is the firstcard (!firstCard since firstCard is initially false) - if (!firstCard) { - //so current card will become firstCard - firstCard = card; - //current cards value becomes firstCardValue - firstCardValue = card.getAttribute("data-card-value"); - } else { - //increment moves since user selected second card - movesCounter(); - //secondCard and value - secondCard = card; - let secondCardValue = card.getAttribute("data-card-value"); - if (firstCardValue == secondCardValue) { - //if both cards match add matched class so these cards would beignored next time - firstCard.classList.add("matched"); - secondCard.classList.add("matched"); - //set firstCard to false since next card would be first now - firstCard = false; - //winCount increment as user found a correct match - winCount += 1; - //check if winCount ==half of cardValues - if (winCount == Math.floor(cardValues.length / 2)) { - result.innerHTML = `

You Won!!

`; - result.style.fontFamily = 'Arial, sans-serif'; // Change the font family - result.style.fontSize = '24px'; // Change the font size - result.style.fontWeight = 'bold'; // Change the font weight - //result.style.fontStyle = 'italic'; // Change the font style - result.style.color = 'white'; // Change the text color - - `

Moves: ${movesCount}

`; - stopGame(); - } - } else { - //if the cards dont match - //flip the cards back to normal - let [tempFirst, tempSecond] = [firstCard, secondCard]; - firstCard = false; - secondCard = false; - let delay = setTimeout(() => { - tempFirst.classList.remove("flipped"); - tempSecond.classList.remove("flipped"); - }, 900); - } - } - } - }); - }); -}; - -//Start game -startButton.addEventListener("click", () => { - movesCount = 0; - seconds = 0; - minutes = 0; - //controls amd buttons visibility - controls.classList.add("hide"); - stopButton.classList.remove("hide"); - startButton.classList.add("hide"); - //Start timer - interval = setInterval(timeGenerator, 1000); - //initial moves - moves.innerHTML = `Moves: ${movesCount}`; - initializer(); -}); - -//Stop game -stopButton.addEventListener( - "click", - (stopGame = () => { - controls.classList.remove("hide"); - stopButton.classList.add("hide"); - startButton.classList.remove("hide"); - clearInterval(interval); - }) -); - -//Initialize values and func calls -const initializer = () => { - result.innerText = ""; - winCount = 0; - let cardValues = generateRandom(); - matrixGenerator(cardValues); -}; +const moves = document.getElementById("moves-count"); +const timeValue = document.getElementById("time"); +const startButton = document.getElementById("start"); +const stopButton = document.getElementById("stop"); +const gameContainer = document.querySelector(".game-container"); +const result = document.getElementById("result"); +const controls = document.querySelector(".controls-container"); +let cards; +let interval; +let firstCard = false; +let secondCard = false; + +//Items array +const items = [ + { name: "bee", image: "bee.png" }, + { name: "crocodile", image: "crocodile.png" }, + { name: "macaw", image: "macaw.png" }, + { name: "gorilla", image: "gorilla.png" }, + { name: "tiger", image: "tiger.png" }, + { name: "monkey", image: "monkey.png" }, + { name: "chameleon", image: "chameleon.png" }, + { name: "piranha", image: "piranha.png" }, + { name: "anaconda", image: "anaconda.png" }, + { name: "sloth", image: "sloth.png" }, + { name: "cockatoo", image: "cockatoo.png" }, + { name: "toucan", image: "toucan.png" }, +]; + +//Initial Time +let seconds = 0, + minutes = 0; +//Initial moves and win count +let movesCount = 0, + winCount = 0; + +//For timer +const timeGenerator = () => { + seconds += 1; + //minutes logic + if (seconds >= 60) { + minutes += 1; + seconds = 0; + } + //format time before displaying + let secondsValue = seconds < 10 ? `0${seconds}` : seconds; + let minutesValue = minutes < 10 ? `0${minutes}` : minutes; + timeValue.innerHTML = `Time:${minutesValue}:${secondsValue}`; +}; + +//For calculating moves +const movesCounter = () => { + movesCount += 1; + moves.innerHTML = `Moves:${movesCount}`; +}; + +//Pick random objects from the items array +const generateRandom = (size = 4) => { + //temporary array + let tempArray = [...items]; + //initializes cardValues array + let cardValues = []; + //size should be double (4*4 matrix)/2 since pairs of objects would exist + size = (size * size) / 2; + //Random object selection + for (let i = 0; i < size; i++) { + const randomIndex = Math.floor(Math.random() * tempArray.length); + cardValues.push(tempArray[randomIndex]); + //once selected remove the object from temp array + tempArray.splice(randomIndex, 1); + } + return cardValues; +}; + +const matrixGenerator = (cardValues, size = 4) => { + gameContainer.innerHTML = ""; + cardValues = [...cardValues, ...cardValues]; + //simple shuffle + cardValues.sort(() => Math.random() - 0.5); + for (let i = 0; i < size * size; i++) { + /* + Create Cards + before => front side (contains question mark) + after => back side (contains actual image); + data-card-values is a custom attribute which stores the names of the cards to match later + */ + gameContainer.innerHTML += ` +
+
?
+
+
+
+ `; + } + //Grid + gameContainer.style.gridTemplateColumns = `repeat(${size},auto)`; + + //Cards + cards = document.querySelectorAll(".card-container"); + cards.forEach((card) => { + card.addEventListener("click", () => { + //If selected card is not matched yet then only run (i.e already matched card when clicked would be ignored) + if (!card.classList.contains("matched")) { + //flip the cliked card + card.classList.add("flipped"); + //if it is the firstcard (!firstCard since firstCard is initially false) + if (!firstCard) { + //so current card will become firstCard + firstCard = card; + //current cards value becomes firstCardValue + firstCardValue = card.getAttribute("data-card-value"); + } else { + //increment moves since user selected second card + movesCounter(); + //secondCard and value + secondCard = card; + let secondCardValue = card.getAttribute("data-card-value"); + if (firstCardValue == secondCardValue) { + //if both cards match add matched class so these cards would beignored next time + firstCard.classList.add("matched"); + secondCard.classList.add("matched"); + //set firstCard to false since next card would be first now + firstCard = false; + //winCount increment as user found a correct match + winCount += 1; + //check if winCount ==half of cardValues + if (winCount == Math.floor(cardValues.length / 2)) { + result.innerHTML = `

You Won!!

`; + result.style.fontFamily = 'Arial, sans-serif'; // Change the font family + result.style.fontSize = '24px'; // Change the font size + result.style.fontWeight = 'bold'; // Change the font weight + //result.style.fontStyle = 'italic'; // Change the font style + result.style.color = 'white'; // Change the text color + + `

Moves: ${movesCount}

`; + stopGame(); + } + } else { + //if the cards dont match + //flip the cards back to normal + let [tempFirst, tempSecond] = [firstCard, secondCard]; + firstCard = false; + secondCard = false; + let delay = setTimeout(() => { + tempFirst.classList.remove("flipped"); + tempSecond.classList.remove("flipped"); + }, 900); + } + } + } + }); + }); +}; + +//Start game +startButton.addEventListener("click", () => { + movesCount = 0; + seconds = 0; + minutes = 0; + //controls amd buttons visibility + controls.classList.add("hide"); + stopButton.classList.remove("hide"); + startButton.classList.add("hide"); + //Start timer + interval = setInterval(timeGenerator, 1000); + //initial moves + moves.innerHTML = `Moves: ${movesCount}`; + initializer(); +}); + +//Stop game +stopButton.addEventListener( + "click", + (stopGame = () => { + controls.classList.remove("hide"); + stopButton.classList.add("hide"); + startButton.classList.remove("hide"); + clearInterval(interval); + }) +); + +//Initialize values and func calls +const initializer = () => { + result.innerText = ""; + winCount = 0; + let cardValues = generateRandom(); + matrixGenerator(cardValues); +}; diff --git a/Games/Memory_Game/style.css b/Games/Memory_Game/style.css index 63bb5d2260..5f1e5928e9 100644 --- a/Games/Memory_Game/style.css +++ b/Games/Memory_Game/style.css @@ -1,220 +1,220 @@ -:root { - --color-green--light: #00c46a; - background-color: linear-gradient(135deg, #71FA32, #009DE0); -} - -* { - padding: 0; - margin: 0; - box-sizing: border-box; - font-family: "Poppins", sans-serif; - overflow: hidden; -} - -body { - background-image:url(img1.jpg); /*changing bg image*/ - background-size: cover; -} - -.wrapper { - box-sizing: content-box; - width: 26.87em; - padding: 2.5em 3em; - /* margin: 0; */ - height: 90vh; - background-color: transparent; - /* background- */ - position: absolute; - transform: translate(-50%, -50%); - left: 50%; - top: 50%; - border-radius: 0.6em; - box-shadow: 0 0.9em 2.8em rgba(86, 66, 0, 0.2); -} - -.game-container { - position: relative; - width: 100%; - display: grid; - gap: 0.6em; - -} - -.stats-container { - text-align: center; - margin-bottom: 1.2em; -} - -.stats-container span { - font-weight: 600; -} - -.card-container { - position: relative; - width: 6.25em; - height: 6.25em; - cursor: pointer; -} - -.card-before, -.card-after { - position: absolute; - border-radius: 2px; - width: 100%; - height: 100%; - display: flex; - align-items: center; - justify-content: center; - border: 2px solid #000000; - transition: transform 0.7s ease-out; - backface-visibility: hidden; -} - -.card-before { - background: rgba(203, 250, 255, 0.24); - box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); - backdrop-filter: blur(2px); - -webkit-backdrop-filter: blur(2px); - border: 1px solid rgba(203, 250, 255, 0.26); - font-size: 2.8em; - font-weight: 600; -} - -.card-after { - background-color: #ffffff; - opacity:0.8; - transform: rotateY(180deg); -} - -.card-container.flipped .card-before { - transform: rotateY(180deg); -} - -.card-container.flipped .card-after { - transform: rotateY(0deg); -} - -.controls-container { - position: absolute; - display: flex; - align-items: center; - justify-content: center; - flex-direction: column; - width: 100%; - height: 100%; - background-image: url("./mind.jpeg"); - background-size: cover; - /* background-color: var(--color-green--light); */ - - top: 0; -} - -button { - border: none; - border-radius: 0.3em; - padding: 1em 1.5em; - cursor: pointer; -} - -#stop { - font-size: 1.1em; - display: block; - margin: 1.1em auto 0 auto; - background-color: white; - opacity: 0.75; - color: black; -} - -.controls-container button { - font-size: 1.3em; - font-family: cursive; - box-shadow: 0 0.6em 2em rgba(86, 66, 0, 0.2); - background-color: transparent; - -} - - -.hide { - display: none; -} - -#result { - text-align: center; -} - -#result h2 { - font-size: 2.5em; -} - -#result h4 { - font-size: 1.8em; - margin: 0.6em 0 1em 0; -} -.menu { - justify-content: center; -} -.instructions{ - font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; - font-size: 12px; - /* background-color: #ffffff; */ - box-shadow: 0 0.9em 2.8em rgba(86, 66, 0, 0.2); - /* color:#1479EA; */ - border: 1px solid white; - border-radius: 10px; - padding: 10px; - margin-bottom: 10px; - -} -.instructions p{ - /* padding: 10px; */ - font-size: 12px; - font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; -} - -/*adding button animation to start game and stop game buttons*/ -button { - width: 10em; - position: relative; - height: 3.5em; - border: 4px ridge #ffffff; - outline: none; - background-color: transparent; - color: rgb(190, 238, 255); - transition: 1s; - border-radius: 0.3em; - font-size: 16px; - font-weight: bold; - cursor: pointer; -} - -button::after { - content: ""; - position: absolute; - top: -10px; - left: 3%; - width: 95%; - height: 40%; - /* background-color: #212121; */ - transition: tranform ease-in .5s; - transform-origin: center; -} - -button::before { - content: ""; - transform-origin: center; - position: absolute; - top: 80%; - left: 3%; - width: 95%; - height: 40%; - /* background-color: #212121; */ - transition: transform ease-in 0.5s; -} - -button:hover::before, button:hover::after { - transform: scale(1.1); -} - -button:hover { - box-shadow: inset 0px 0px 25px #ffffff; +:root { + --color-green--light: #00c46a; + background-color: linear-gradient(135deg, #71FA32, #009DE0); +} + +* { + padding: 0; + margin: 0; + box-sizing: border-box; + font-family: "Poppins", sans-serif; + overflow: hidden; +} + +body { + background-image:url(img1.jpg); /*changing bg image*/ + background-size: cover; +} + +.wrapper { + box-sizing: content-box; + width: 26.87em; + padding: 2.5em 3em; + /* margin: 0; */ + height: 90vh; + background-color: transparent; + /* background- */ + position: absolute; + transform: translate(-50%, -50%); + left: 50%; + top: 50%; + border-radius: 0.6em; + box-shadow: 0 0.9em 2.8em rgba(86, 66, 0, 0.2); +} + +.game-container { + position: relative; + width: 100%; + display: grid; + gap: 0.6em; + +} + +.stats-container { + text-align: center; + margin-bottom: 1.2em; +} + +.stats-container span { + font-weight: 600; +} + +.card-container { + position: relative; + width: 6.25em; + height: 6.25em; + cursor: pointer; +} + +.card-before, +.card-after { + position: absolute; + border-radius: 2px; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + border: 2px solid #000000; + transition: transform 0.7s ease-out; + backface-visibility: hidden; +} + +.card-before { + background: rgba(203, 250, 255, 0.24); + box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); + backdrop-filter: blur(2px); + -webkit-backdrop-filter: blur(2px); + border: 1px solid rgba(203, 250, 255, 0.26); + font-size: 2.8em; + font-weight: 600; +} + +.card-after { + background-color: #ffffff; + opacity:0.8; + transform: rotateY(180deg); +} + +.card-container.flipped .card-before { + transform: rotateY(180deg); +} + +.card-container.flipped .card-after { + transform: rotateY(0deg); +} + +.controls-container { + position: absolute; + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + width: 100%; + height: 100%; + background-image: url("./mind.jpeg"); + background-size: cover; + /* background-color: var(--color-green--light); */ + + top: 0; +} + +button { + border: none; + border-radius: 0.3em; + padding: 1em 1.5em; + cursor: pointer; +} + +#stop { + font-size: 1.1em; + display: block; + margin: 1.1em auto 0 auto; + background-color: white; + opacity: 0.75; + color: black; +} + +.controls-container button { + font-size: 1.3em; + font-family: cursive; + box-shadow: 0 0.6em 2em rgba(86, 66, 0, 0.2); + background-color: transparent; + +} + + +.hide { + display: none; +} + +#result { + text-align: center; +} + +#result h2 { + font-size: 2.5em; +} + +#result h4 { + font-size: 1.8em; + margin: 0.6em 0 1em 0; +} +.menu { + justify-content: center; +} +.instructions{ + font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; + font-size: 12px; + /* background-color: #ffffff; */ + box-shadow: 0 0.9em 2.8em rgba(86, 66, 0, 0.2); + /* color:#1479EA; */ + border: 1px solid white; + border-radius: 10px; + padding: 10px; + margin-bottom: 10px; + +} +.instructions p{ + /* padding: 10px; */ + font-size: 12px; + font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; +} + +/*adding button animation to start game and stop game buttons*/ +button { + width: 10em; + position: relative; + height: 3.5em; + border: 4px ridge #ffffff; + outline: none; + background-color: transparent; + color: rgb(190, 238, 255); + transition: 1s; + border-radius: 0.3em; + font-size: 16px; + font-weight: bold; + cursor: pointer; +} + +button::after { + content: ""; + position: absolute; + top: -10px; + left: 3%; + width: 95%; + height: 40%; + /* background-color: #212121; */ + transition: tranform ease-in .5s; + transform-origin: center; +} + +button::before { + content: ""; + transform-origin: center; + position: absolute; + top: 80%; + left: 3%; + width: 95%; + height: 40%; + /* background-color: #212121; */ + transition: transform ease-in 0.5s; +} + +button:hover::before, button:hover::after { + transform: scale(1.1); +} + +button:hover { + box-shadow: inset 0px 0px 25px #ffffff; } \ No newline at end of file diff --git a/Games/Memory_Matching_Game/index.html b/Games/Memory_Matching_Game/index.html index ad1cf6eea3..6a80a15e9a 100644 --- a/Games/Memory_Matching_Game/index.html +++ b/Games/Memory_Matching_Game/index.html @@ -1,16 +1,16 @@ - - - - - Memory Matching Game - - - -
-

Memory Matching Game

-

Score: 0

-
-
- - - + + + + + Memory Matching Game + + + +
+

Memory Matching Game

+

Score: 0

+
+
+ + + diff --git a/Games/Memory_Matching_Game/script.js b/Games/Memory_Matching_Game/script.js index 557a2f5d37..1b48a74d07 100644 --- a/Games/Memory_Matching_Game/script.js +++ b/Games/Memory_Matching_Game/script.js @@ -1,69 +1,69 @@ -document.addEventListener('DOMContentLoaded', () => { - const cardArray = [ - { name: 'A', id: 1 }, { name: 'A', id: 2 }, - { name: 'B', id: 3 }, { name: 'B', id: 4 }, - { name: 'C', id: 5 }, { name: 'C', id: 6 }, - { name: 'D', id: 7 }, { name: 'D', id: 8 }, - { name: 'E', id: 9 }, { name: 'E', id: 10 }, - { name: 'F', id: 11 }, { name: 'F', id: 12 }, - { name: 'G', id: 13 }, { name: 'G', id: 14 }, - { name: 'H', id: 15 }, { name: 'H', id: 16 } - ]; - - cardArray.sort(() => 0.5 - Math.random()); - - const gameBoard = document.getElementById('game-board'); - const scoreDisplay = document.getElementById('score'); - let cardsChosen = []; - let cardsChosenId = []; - let cardsWon = []; - let score = 0; - - function createBoard() { - cardArray.forEach((card, index) => { - const cardElement = document.createElement('div'); - cardElement.setAttribute('data-id', index); - cardElement.classList.add('card'); - cardElement.addEventListener('click', flipCard); - gameBoard.appendChild(cardElement); - }); - } - - function checkForMatch() { - const cards = document.querySelectorAll('.card'); - const [optionOneId, optionTwoId] = cardsChosenId; - - if (cardsChosen[0] === cardsChosen[1]) { - cards[optionOneId].classList.add('flipped'); - cards[optionTwoId].classList.add('flipped'); - cardsWon.push(cardsChosen); - score += 10; - scoreDisplay.textContent = `Score: ${score}`; - } else { - cards[optionOneId].innerHTML = ''; - cards[optionTwoId].innerHTML = ''; - } - - cardsChosen = []; - cardsChosenId = []; - - if (cardsWon.length === cardArray.length / 2) { - setTimeout(() => alert(`Congratulations! You found all the matches! Your final score is ${score}.`), 100); - } - } - - function flipCard() { - const cardId = this.getAttribute('data-id'); - if (!cardsChosenId.includes(cardId) && cardsChosen.length < 2) { - cardsChosen.push(cardArray[cardId].name); - cardsChosenId.push(cardId); - this.innerHTML = cardArray[cardId].name; - this.classList.add('flipped'); - if (cardsChosen.length === 2) { - setTimeout(checkForMatch, 500); - } - } - } - - createBoard(); -}); +document.addEventListener('DOMContentLoaded', () => { + const cardArray = [ + { name: 'A', id: 1 }, { name: 'A', id: 2 }, + { name: 'B', id: 3 }, { name: 'B', id: 4 }, + { name: 'C', id: 5 }, { name: 'C', id: 6 }, + { name: 'D', id: 7 }, { name: 'D', id: 8 }, + { name: 'E', id: 9 }, { name: 'E', id: 10 }, + { name: 'F', id: 11 }, { name: 'F', id: 12 }, + { name: 'G', id: 13 }, { name: 'G', id: 14 }, + { name: 'H', id: 15 }, { name: 'H', id: 16 } + ]; + + cardArray.sort(() => 0.5 - Math.random()); + + const gameBoard = document.getElementById('game-board'); + const scoreDisplay = document.getElementById('score'); + let cardsChosen = []; + let cardsChosenId = []; + let cardsWon = []; + let score = 0; + + function createBoard() { + cardArray.forEach((card, index) => { + const cardElement = document.createElement('div'); + cardElement.setAttribute('data-id', index); + cardElement.classList.add('card'); + cardElement.addEventListener('click', flipCard); + gameBoard.appendChild(cardElement); + }); + } + + function checkForMatch() { + const cards = document.querySelectorAll('.card'); + const [optionOneId, optionTwoId] = cardsChosenId; + + if (cardsChosen[0] === cardsChosen[1]) { + cards[optionOneId].classList.add('flipped'); + cards[optionTwoId].classList.add('flipped'); + cardsWon.push(cardsChosen); + score += 10; + scoreDisplay.textContent = `Score: ${score}`; + } else { + cards[optionOneId].innerHTML = ''; + cards[optionTwoId].innerHTML = ''; + } + + cardsChosen = []; + cardsChosenId = []; + + if (cardsWon.length === cardArray.length / 2) { + setTimeout(() => alert(`Congratulations! You found all the matches! Your final score is ${score}.`), 100); + } + } + + function flipCard() { + const cardId = this.getAttribute('data-id'); + if (!cardsChosenId.includes(cardId) && cardsChosen.length < 2) { + cardsChosen.push(cardArray[cardId].name); + cardsChosenId.push(cardId); + this.innerHTML = cardArray[cardId].name; + this.classList.add('flipped'); + if (cardsChosen.length === 2) { + setTimeout(checkForMatch, 500); + } + } + } + + createBoard(); +}); diff --git a/Games/Memory_Matching_Game/styles.css b/Games/Memory_Matching_Game/styles.css index da383674e1..d5ae2796fd 100644 --- a/Games/Memory_Matching_Game/styles.css +++ b/Games/Memory_Matching_Game/styles.css @@ -1,44 +1,44 @@ -body { - font-family: Arial, sans-serif; - text-align: center; - background-color: #f0f0f0; - margin: 0; - padding: 0; -} - -.game-container { - margin: 0 auto; - width: 600px; -} - -.game-board { - display: grid; - grid-template-columns: repeat(4, 1fr); - gap: 10px; - margin-top: 20px; -} - -.card { - width: 100px; - height: 100px; - background-color: #333; - cursor: pointer; - display: flex; - justify-content: center; - align-items: center; - font-size: 2em; - color: white; - border-radius: 8px; - transition: transform 0.2s; -} - -.card.flipped { - background-color: #fff; - color: #333; - transform: rotateY(180deg); -} - -#score { - font-size: 1.5em; - margin-top: 20px; -} +body { + font-family: Arial, sans-serif; + text-align: center; + background-color: #f0f0f0; + margin: 0; + padding: 0; +} + +.game-container { + margin: 0 auto; + width: 600px; +} + +.game-board { + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 10px; + margin-top: 20px; +} + +.card { + width: 100px; + height: 100px; + background-color: #333; + cursor: pointer; + display: flex; + justify-content: center; + align-items: center; + font-size: 2em; + color: white; + border-radius: 8px; + transition: transform 0.2s; +} + +.card.flipped { + background-color: #fff; + color: #333; + transform: rotateY(180deg); +} + +#score { + font-size: 1.5em; + margin-top: 20px; +} diff --git a/Games/Menja/Menja.css b/Games/Menja/Menja.css index db57cd9ad0..d86b1c1eee 100644 --- a/Games/Menja/Menja.css +++ b/Games/Menja/Menja.css @@ -1,267 +1,267 @@ -body { - margin: 0; - background-color: #000; - background-image: radial-gradient(ellipse at top, #335476 0.0%, #31506e 11.1%, #304b67 22.2%, #2f4760 33.3%, #2d4359 44.4%, #2c3f51 55.6%, #2a3a4a 66.7%, #293643 77.8%, #28323d 88.9%, #262e36 100.0%); - height: 100vh; - overflow: hidden; - - font-family: monospace; - font-weight: bold; - letter-spacing: 0.06em; - color: rgba(255, 255, 255, 0.75); -} - -#c { - display: block; - touch-action: none; - transform: translateZ(0); -} - - -/*///////////////////// -// HUD // -/////////////////////*/ - - -.hud__score, -.pause-btn { - position: fixed; - font-size: calc(14px + 2vw + 1vh); -} - -.hud__score { - top: 0.65em; - left: 0.65em; - pointer-events: none; - user-select: none; -} - -.cube-count-lbl { - font-size: 0.46em; -} - -.pause-btn { - position: fixed; - top: 0; - right: 0; - padding: 0.8em 0.65em; -} - -.pause-btn > div { - position: relative; - width: 0.8em; - height: 0.8em; - opacity: 0.75; -} - -.pause-btn > div::before, -.pause-btn > div::after { - content: ''; - display: block; - width: 34%; - height: 100%; - position: absolute; - background-color: #fff; -} - -.pause-btn > div::after { - right: 0; -} - -.slowmo { - position: fixed; - bottom: 0; - width: 100%; - pointer-events: none; - opacity: 0; - transition: opacity 0.4s; - will-change: opacity; -} - -.slowmo::before { - content: 'SLOW-MO'; - display: block; - font-size: calc(8px + 1vw + 0.5vh); - margin-left: 0.5em; - margin-bottom: 8px; -} - -.slowmo::after { - content: ''; - display: block; - position: fixed; - bottom: 0; - width: 100%; - height: 1.5vh; - background-color: rgba(0, 0, 0, 0.25); - z-index: -1; -} - -.slowmo__bar { - height: 1.5vh; - background-color: rgba(255, 255, 255, 0.75); - transform-origin: 0 0; -} - - - -/*///////////////////// -// MENUS // -/////////////////////*/ - -.menus::before { - content: ''; - pointer-events: none; - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - background-color: #000; - opacity: 0; - transition: opacity 0.2s; - transition-timing-function: ease-in; -} - -.menus.has-active::before { - opacity: 0.08; - transition-duration: 0.4s; - transition-timing-function: ease-out; -} - -.menus.interactive-mode::before { - opacity: 0.02; -} - - - -/* Menu containers */ -.menu { - pointer-events: none; - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - user-select: none; - text-align: center; - color: rgba(255, 255, 255, 0.9); - opacity: 0; - visibility: hidden; - transform: translateY(30px); - transition-property: opacity, visibility, transform; - transition-duration: 0.2s; - transition-timing-function: ease-in; -} - -.menu.active { - opacity: 1; - visibility: visible; - transform: translateY(0); - transition-duration: 0.4s; - transition-timing-function: ease-out; -} - -.menus.interactive-mode .menu.active { - opacity: 0.6; -} - -.menus:not(.interactive-mode) .menu.active > * { - pointer-events: auto; -} - - -/* Common menu elements */ - -h1 { - font-size: 4rem; - line-height: 0.95; - text-align: center; - font-weight: bold; - margin: 0 0.65em 1em; -} - -h2 { - font-size: 1.2rem; - line-height: 1; - text-align: center; - font-weight: bold; - margin: -1em 0.65em 1em; -} - -.final-score-lbl { - font-size: 5rem; - margin: -0.2em 0 0; -} - -.high-score-lbl { - font-size: 1.2rem; - margin: 0 0 2.5em; -} - -button { - display: block; - position: relative; - width: 200px; - padding: 12px 20px; - background: transparent; - border: none; - outline: none; - user-select: none; - font-family: monospace; - font-weight: bold; - font-size: 1.4rem; - color: #fff; - opacity: 0.75; - transition: opacity 0.3s; -} - -button::before { - content: ''; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background-color: rgba(255, 255, 255, 0.15); - transform: scale(0, 0); - opacity: 0; - transition: opacity 0.3s, transform 0.3s; -} - -/* No `:focus` styles because this is a mouse/touch game! */ -button:active { - opacity: 1; -} - -button:active::before { - transform: scale(1, 1); - opacity: 1; -} - -.credits { - position: fixed; - width: 100%; - left: 0; - bottom: 20px; -} - -a { - color: white; -} - -/* Only enable hover state on large screens */ -@media (min-width: 1025px) { - button:hover { - opacity: 1; - } - - button:hover::before { - transform: scale(1, 1); - opacity: 1; - } -} +body { + margin: 0; + background-color: #000; + background-image: radial-gradient(ellipse at top, #335476 0.0%, #31506e 11.1%, #304b67 22.2%, #2f4760 33.3%, #2d4359 44.4%, #2c3f51 55.6%, #2a3a4a 66.7%, #293643 77.8%, #28323d 88.9%, #262e36 100.0%); + height: 100vh; + overflow: hidden; + + font-family: monospace; + font-weight: bold; + letter-spacing: 0.06em; + color: rgba(255, 255, 255, 0.75); +} + +#c { + display: block; + touch-action: none; + transform: translateZ(0); +} + + +/*///////////////////// +// HUD // +/////////////////////*/ + + +.hud__score, +.pause-btn { + position: fixed; + font-size: calc(14px + 2vw + 1vh); +} + +.hud__score { + top: 0.65em; + left: 0.65em; + pointer-events: none; + user-select: none; +} + +.cube-count-lbl { + font-size: 0.46em; +} + +.pause-btn { + position: fixed; + top: 0; + right: 0; + padding: 0.8em 0.65em; +} + +.pause-btn > div { + position: relative; + width: 0.8em; + height: 0.8em; + opacity: 0.75; +} + +.pause-btn > div::before, +.pause-btn > div::after { + content: ''; + display: block; + width: 34%; + height: 100%; + position: absolute; + background-color: #fff; +} + +.pause-btn > div::after { + right: 0; +} + +.slowmo { + position: fixed; + bottom: 0; + width: 100%; + pointer-events: none; + opacity: 0; + transition: opacity 0.4s; + will-change: opacity; +} + +.slowmo::before { + content: 'SLOW-MO'; + display: block; + font-size: calc(8px + 1vw + 0.5vh); + margin-left: 0.5em; + margin-bottom: 8px; +} + +.slowmo::after { + content: ''; + display: block; + position: fixed; + bottom: 0; + width: 100%; + height: 1.5vh; + background-color: rgba(0, 0, 0, 0.25); + z-index: -1; +} + +.slowmo__bar { + height: 1.5vh; + background-color: rgba(255, 255, 255, 0.75); + transform-origin: 0 0; +} + + + +/*///////////////////// +// MENUS // +/////////////////////*/ + +.menus::before { + content: ''; + pointer-events: none; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + background-color: #000; + opacity: 0; + transition: opacity 0.2s; + transition-timing-function: ease-in; +} + +.menus.has-active::before { + opacity: 0.08; + transition-duration: 0.4s; + transition-timing-function: ease-out; +} + +.menus.interactive-mode::before { + opacity: 0.02; +} + + + +/* Menu containers */ +.menu { + pointer-events: none; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + user-select: none; + text-align: center; + color: rgba(255, 255, 255, 0.9); + opacity: 0; + visibility: hidden; + transform: translateY(30px); + transition-property: opacity, visibility, transform; + transition-duration: 0.2s; + transition-timing-function: ease-in; +} + +.menu.active { + opacity: 1; + visibility: visible; + transform: translateY(0); + transition-duration: 0.4s; + transition-timing-function: ease-out; +} + +.menus.interactive-mode .menu.active { + opacity: 0.6; +} + +.menus:not(.interactive-mode) .menu.active > * { + pointer-events: auto; +} + + +/* Common menu elements */ + +h1 { + font-size: 4rem; + line-height: 0.95; + text-align: center; + font-weight: bold; + margin: 0 0.65em 1em; +} + +h2 { + font-size: 1.2rem; + line-height: 1; + text-align: center; + font-weight: bold; + margin: -1em 0.65em 1em; +} + +.final-score-lbl { + font-size: 5rem; + margin: -0.2em 0 0; +} + +.high-score-lbl { + font-size: 1.2rem; + margin: 0 0 2.5em; +} + +button { + display: block; + position: relative; + width: 200px; + padding: 12px 20px; + background: transparent; + border: none; + outline: none; + user-select: none; + font-family: monospace; + font-weight: bold; + font-size: 1.4rem; + color: #fff; + opacity: 0.75; + transition: opacity 0.3s; +} + +button::before { + content: ''; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background-color: rgba(255, 255, 255, 0.15); + transform: scale(0, 0); + opacity: 0; + transition: opacity 0.3s, transform 0.3s; +} + +/* No `:focus` styles because this is a mouse/touch game! */ +button:active { + opacity: 1; +} + +button:active::before { + transform: scale(1, 1); + opacity: 1; +} + +.credits { + position: fixed; + width: 100%; + left: 0; + bottom: 20px; +} + +a { + color: white; +} + +/* Only enable hover state on large screens */ +@media (min-width: 1025px) { + button:hover { + opacity: 1; + } + + button:hover::before { + transform: scale(1, 1); + opacity: 1; + } +} diff --git a/Games/Menja/Menja.js b/Games/Menja/Menja.js index ed935d028a..148fad6964 100644 --- a/Games/Menja/Menja.js +++ b/Games/Menja/Menja.js @@ -1,2184 +1,2184 @@ -// globalConfig.js -// ============================================================================ -// ============================================================================ - -// Provides global variables used by the entire program. -// Most of this should be configuration. - -// Timing multiplier for entire game engine. -let gameSpeed = 1; - -// Colors -const BLUE = { r: 0x67, g: 0xd7, b: 0xf0 }; -const GREEN = { r: 0xa6, g: 0xe0, b: 0x2c }; -const PINK = { r: 0xfa, g: 0x24, b: 0x73 }; -const ORANGE = { r: 0xfe, g: 0x95, b: 0x22 }; -const allColors = [BLUE, GREEN, PINK, ORANGE]; - -// Gameplay -const getSpawnDelay = () => { - const spawnDelayMax = 1400; - const spawnDelayMin = 550; - const spawnDelay = spawnDelayMax - state.game.cubeCount * 3.1; - return Math.max(spawnDelay, spawnDelayMin); -} -const doubleStrongEnableScore = 2000; -// Number of cubes that must be smashed before activating a feature. -const slowmoThreshold = 10; -const strongThreshold = 25; -const spinnerThreshold = 25; - -// Interaction state -let pointerIsDown = false; -// The last known position of the primary pointer in screen coordinates.` -let pointerScreen = { x: 0, y: 0 }; -// Same as `pointerScreen`, but converted to scene coordinates in rAF. -let pointerScene = { x: 0, y: 0 }; -// Minimum speed of pointer before "hits" are counted. -const minPointerSpeed = 60; -// The hit speed affects the direction the target post-hit. This number dampens that force. -const hitDampening = 0.1; -// Backboard receives shadows and is the farthest negative Z position of entities. -const backboardZ = -400; -const shadowColor = '#262e36'; -// How much air drag is applied to standard objects -const airDrag = 0.022; -const gravity = 0.3; -// Spark config -const sparkColor = 'rgba(170,221,255,.9)'; -const sparkThickness = 2.2; -const airDragSpark = 0.1; -// Track pointer positions to show trail -const touchTrailColor = 'rgba(170,221,255,.62)'; -const touchTrailThickness = 7; -const touchPointLife = 120; -const touchPoints = []; -// Size of in-game targets. This affects rendered size and hit area. -const targetRadius = 40; -const targetHitRadius = 50; -const makeTargetGlueColor = target => { - // const alpha = (target.health - 1) / (target.maxHealth - 1); - // return `rgba(170,221,255,${alpha.toFixed(3)})`; - return 'rgb(170,221,255)'; -}; -// Size of target fragments -const fragRadius = targetRadius / 3; - - - -// Game canvas element needed in setup.js and interaction.js -const canvas = document.querySelector('#c'); - -// 3D camera config -// Affects perspective -const cameraDistance = 900; -// Does not affect perspective -const sceneScale = 1; -// Objects that get too close to the camera will be faded out to transparent over this range. -// const cameraFadeStartZ = 0.8*cameraDistance - 6*targetRadius; -const cameraFadeStartZ = 0.45*cameraDistance; -const cameraFadeEndZ = 0.65*cameraDistance; -const cameraFadeRange = cameraFadeEndZ - cameraFadeStartZ; - -// Globals used to accumlate all vertices/polygons in each frame -const allVertices = []; -const allPolys = []; -const allShadowVertices = []; -const allShadowPolys = []; - - - - -// state.js -// ============================================================================ -// ============================================================================ - -/////////// -// Enums // -/////////// - -// Game Modes -const GAME_MODE_RANKED = Symbol('GAME_MODE_RANKED'); -const GAME_MODE_CASUAL = Symbol('GAME_MODE_CASUAL'); - -// Available Menus -const MENU_MAIN = Symbol('MENU_MAIN'); -const MENU_PAUSE = Symbol('MENU_PAUSE'); -const MENU_SCORE = Symbol('MENU_SCORE'); - - - -////////////////// -// Global State // -////////////////// - -const state = { - game: { - mode: GAME_MODE_RANKED, - // Run time of current game. - time: 0, - // Player score. - score: 0, - // Total number of cubes smashed in game. - cubeCount: 0 - }, - menus: { - // Set to `null` to hide all menus - active: MENU_MAIN - } -}; - - -//////////////////////////// -// Global State Selectors // -//////////////////////////// - -const isInGame = () => !state.menus.active; -const isMenuVisible = () => !!state.menus.active; -const isCasualGame = () => state.game.mode === GAME_MODE_CASUAL; -const isPaused = () => state.menus.active === MENU_PAUSE; - - -/////////////////// -// Local Storage // -/////////////////// - -const highScoreKey = '__menja__highScore'; -const getHighScore = () => { - const raw = localStorage.getItem(highScoreKey); - return raw ? parseInt(raw, 10) : 0; -}; - -let _lastHighscore = getHighScore(); -const setHighScore = score => { - _lastHighscore = getHighScore(); - localStorage.setItem(highScoreKey, String(score)); -}; - -const isNewHighScore = () => state.game.score > _lastHighscore; - - - - -// utils.js -// ============================================================================ -// ============================================================================ - - -const invariant = (condition, message) => { - if (!condition) throw new Error(message); -}; - - -///////// -// DOM // -///////// - -const $ = selector => document.querySelector(selector); -const handleClick = (element, handler) => element.addEventListener('click', handler); -const handlePointerDown = (element, handler) => { - element.addEventListener('touchstart', handler); - element.addEventListener('mousedown', handler); -}; - - - -//////////////////////// -// Formatting Helpers // -//////////////////////// - -// Converts a number into a formatted string with thousand separators. -const formatNumber = num => num.toLocaleString(); - - - -//////////////////// -// Math Constants // -//////////////////// - -const PI = Math.PI; -const TAU = Math.PI * 2; -const ETA = Math.PI * 0.5; - - - -////////////////// -// Math Helpers // -////////////////// - -// Clamps a number between min and max values (inclusive) -const clamp = (num, min, max) => Math.min(Math.max(num, min), max); - -// Linearly interpolate between numbers a and b by a specific amount. -// mix >= 0 && mix <= 1 -const lerp = (a, b, mix) => (b - a) * mix + a; - - - - -//////////////////// -// Random Helpers // -//////////////////// - -// Generates a random number between min (inclusive) and max (exclusive) -const random = (min, max) => Math.random() * (max - min) + min; - -// Generates a random integer between and possibly including min and max values -const randomInt = (min, max) => ((Math.random() * (max - min + 1)) | 0) + min; - -// Returns a random element from an array -const pickOne = arr => arr[Math.random() * arr.length | 0]; - - - - -/////////////////// -// Color Helpers // -/////////////////// - -// Converts an { r, g, b } color object to a 6-digit hex code. -const colorToHex = color => { - return '#' + - (color.r | 0).toString(16).padStart(2, '0') + - (color.g | 0).toString(16).padStart(2, '0') + - (color.b | 0).toString(16).padStart(2, '0'); -}; - -// Operates on an { r, g, b } color object. -// Returns string hex code. -// `lightness` must range from 0 to 1. 0 is pure black, 1 is pure white. -const shadeColor = (color, lightness) => { - let other, mix; - if (lightness < 0.5) { - other = 0; - mix = 1 - (lightness * 2); - } else { - other = 255; - mix = lightness * 2 - 1; - } - return '#' + - (lerp(color.r, other, mix) | 0).toString(16).padStart(2, '0') + - (lerp(color.g, other, mix) | 0).toString(16).padStart(2, '0') + - (lerp(color.b, other, mix) | 0).toString(16).padStart(2, '0'); -}; - - - - - -//////////////////// -// Timing Helpers // -//////////////////// - -const _allCooldowns = []; - -const makeCooldown = (rechargeTime, units=1) => { - let timeRemaining = 0; - let lastTime = 0; - - const initialOptions = { rechargeTime, units }; - - const updateTime = () => { - const now = state.game.time; - // Reset time remaining if time goes backwards. - if (now < lastTime) { - timeRemaining = 0; - } else { - // update... - timeRemaining -= now-lastTime; - if (timeRemaining < 0) timeRemaining = 0; - } - lastTime = now; - }; - - const canUse = () => { - updateTime(); - return timeRemaining <= (rechargeTime * (units-1)); - }; - - const cooldown = { - canUse, - useIfAble() { - const usable = canUse(); - if (usable) timeRemaining += rechargeTime; - return usable; - }, - mutate(options) { - if (options.rechargeTime) { - // Apply recharge time delta so change takes effect immediately. - timeRemaining -= rechargeTime-options.rechargeTime; - if (timeRemaining < 0) timeRemaining = 0; - rechargeTime = options.rechargeTime; - } - if (options.units) units = options.units; - }, - reset() { - timeRemaining = 0; - lastTime = 0; - this.mutate(initialOptions); - } - }; - - _allCooldowns.push(cooldown); - - return cooldown; -}; - -const resetAllCooldowns = () => _allCooldowns.forEach(cooldown => cooldown.reset()); - -const makeSpawner = ({ chance, cooldownPerSpawn, maxSpawns }) => { - const cooldown = makeCooldown(cooldownPerSpawn, maxSpawns); - return { - shouldSpawn() { - return Math.random() <= chance && cooldown.useIfAble(); - }, - mutate(options) { - if (options.chance) chance = options.chance; - cooldown.mutate({ - rechargeTime: options.cooldownPerSpawn, - units: options.maxSpawns - }); - } - }; -}; - - - - -//////////////////// -// Vector Helpers // -//////////////////// - -const normalize = v => { - const mag = Math.hypot(v.x, v.y, v.z); - return { - x: v.x / mag, - y: v.y / mag, - z: v.z / mag - }; -} - -// Curried math helpers -const add = a => b => a + b; -// Curried vector helpers -const scaleVector = scale => vector => { - vector.x *= scale; - vector.y *= scale; - vector.z *= scale; -}; - - - - - - - - -//////////////// -// 3D Helpers // -//////////////// - -// Clone array and all vertices. -function cloneVertices(vertices) { - return vertices.map(v => ({ x: v.x, y: v.y, z: v.z })); -} - -// Copy vertex data from one array into another. -// Arrays must be the same length. -function copyVerticesTo(arr1, arr2) { - const len = arr1.length; - for (let i=0; i { - const targetVertex = target[i]; - // X axis rotation - const x1 = v.x; - const y1 = v.z*sinX + v.y*cosX; - const z1 = v.z*cosX - v.y*sinX; - // Y axis rotation - const x2 = x1*cosY - z1*sinY; - const y2 = y1; - const z2 = x1*sinY + z1*cosY; - // Z axis rotation - const x3 = x2*cosZ - y2*sinZ; - const y3 = x2*sinZ + y2*cosZ; - const z3 = z2; - - // Scale, Translate, and set the transform. - targetVertex.x = x3 * sX + tX; - targetVertex.y = y3 * sY + tY; - targetVertex.z = z3 * sZ + tZ; - }); -} - -// 3D projection on a single vertex. -// Directly mutates the vertex. -const projectVertex = v => { - const focalLength = cameraDistance * sceneScale; - const depth = focalLength / (cameraDistance - v.z); - v.x = v.x * depth; - v.y = v.y * depth; -}; - -// 3D projection on a single vertex. -// Mutates a secondary target vertex. -const projectVertexTo = (v, target) => { - const focalLength = cameraDistance * sceneScale; - const depth = focalLength / (cameraDistance - v.z); - target.x = v.x * depth; - target.y = v.y * depth; -}; - - - - - -// PERF.js -// ============================================================================ -// ============================================================================ - -// Dummy no-op functions. -// I use these in a special build for custom performance profiling. -const PERF_START = () => {}; -const PERF_END = () => {}; -const PERF_UPDATE = () => {}; - - - - -// 3dModels.js -// ============================================================================ -// ============================================================================ - -// Define models once. The origin is the center of the model. - -// A simple cube, 8 vertices, 6 quads. -// Defaults to an edge length of 2 units, can be influenced with `scale`. -function makeCubeModel({ scale=1 }) { - return { - vertices: [ - // top - { x: -scale, y: -scale, z: scale }, - { x: scale, y: -scale, z: scale }, - { x: scale, y: scale, z: scale }, - { x: -scale, y: scale, z: scale }, - // bottom - { x: -scale, y: -scale, z: -scale }, - { x: scale, y: -scale, z: -scale }, - { x: scale, y: scale, z: -scale }, - { x: -scale, y: scale, z: -scale } - ], - polys: [ - // z = 1 - { vIndexes: [0, 1, 2, 3] }, - // z = -1 - { vIndexes: [7, 6, 5, 4] }, - // y = 1 - { vIndexes: [3, 2, 6, 7] }, - // y = -1 - { vIndexes: [4, 5, 1, 0] }, - // x = 1 - { vIndexes: [5, 6, 2, 1] }, - // x = -1 - { vIndexes: [0, 3, 7, 4] } - ] - }; -} - -// Not very optimized - lots of duplicate vertices are generated. -function makeRecursiveCubeModel({ recursionLevel, splitFn, color, scale=1 }) { - const getScaleAtLevel = level => 1 / (3 ** level); - - // We can model level 0 manually. It's just a single, centered, cube. - let cubeOrigins = [{ x: 0, y: 0, z: 0 }]; - - // Recursively replace cubes with smaller cubes. - for (let i=1; i<=recursionLevel; i++) { - const scale = getScaleAtLevel(i) * 2; - const cubeOrigins2 = []; - cubeOrigins.forEach(origin => { - cubeOrigins2.push(...splitFn(origin, scale)); - }); - cubeOrigins = cubeOrigins2; - } - - const finalModel = { vertices: [], polys: [] }; - - // Generate single cube model and scale it. - const cubeModel = makeCubeModel({ scale: 1 }); - cubeModel.vertices.forEach(scaleVector(getScaleAtLevel(recursionLevel))); - - // Compute the max distance x, y, or z origin values will be. - // Same result as `Math.max(...cubeOrigins.map(o => o.x))`, but much faster. - const maxComponent = getScaleAtLevel(recursionLevel) * (3 ** recursionLevel - 1); - - // Place cube geometry at each origin. - cubeOrigins.forEach((origin, cubeIndex) => { - // To compute occlusion (shading), find origin component with greatest - // magnitude and normalize it relative to `maxComponent`. - const occlusion = Math.max( - Math.abs(origin.x), - Math.abs(origin.y), - Math.abs(origin.z) - ) / maxComponent; - // At lower iterations, occlusion looks better lightened up a bit. - const occlusionLighter = recursionLevel > 2 - ? occlusion - : (occlusion + 0.8) / 1.8; - // Clone, translate vertices to origin, and apply scale - finalModel.vertices.push( - ...cubeModel.vertices.map(v => ({ - x: (v.x + origin.x) * scale, - y: (v.y + origin.y) * scale, - z: (v.z + origin.z) * scale - })) - ); - // Clone polys, shift referenced vertex indexes, and compute color. - finalModel.polys.push( - ...cubeModel.polys.map(poly => ({ - vIndexes: poly.vIndexes.map(add(cubeIndex * 8)) - })) - ); - }); - - return finalModel; -} - - -// o: Vector3D - Position of cube's origin (center). -// s: Vector3D - Determines size of menger sponge. -function mengerSpongeSplit(o, s) { - return [ - // Top - { x: o.x + s, y: o.y - s, z: o.z + s }, - { x: o.x + s, y: o.y - s, z: o.z + 0 }, - { x: o.x + s, y: o.y - s, z: o.z - s }, - { x: o.x + 0, y: o.y - s, z: o.z + s }, - { x: o.x + 0, y: o.y - s, z: o.z - s }, - { x: o.x - s, y: o.y - s, z: o.z + s }, - { x: o.x - s, y: o.y - s, z: o.z + 0 }, - { x: o.x - s, y: o.y - s, z: o.z - s }, - // Bottom - { x: o.x + s, y: o.y + s, z: o.z + s }, - { x: o.x + s, y: o.y + s, z: o.z + 0 }, - { x: o.x + s, y: o.y + s, z: o.z - s }, - { x: o.x + 0, y: o.y + s, z: o.z + s }, - { x: o.x + 0, y: o.y + s, z: o.z - s }, - { x: o.x - s, y: o.y + s, z: o.z + s }, - { x: o.x - s, y: o.y + s, z: o.z + 0 }, - { x: o.x - s, y: o.y + s, z: o.z - s }, - // Middle - { x: o.x + s, y: o.y + 0, z: o.z + s }, - { x: o.x + s, y: o.y + 0, z: o.z - s }, - { x: o.x - s, y: o.y + 0, z: o.z + s }, - { x: o.x - s, y: o.y + 0, z: o.z - s } - ]; -} - - - -// Helper to optimize models by merging duplicate vertices within a threshold, -// and removing all polys that share the same vertices. -// Directly mutates the model. -function optimizeModel(model, threshold=0.0001) { - const { vertices, polys } = model; - - const compareVertices = (v1, v2) => ( - Math.abs(v1.x - v2.x) < threshold && - Math.abs(v1.y - v2.y) < threshold && - Math.abs(v1.z - v2.z) < threshold - ); - - const comparePolys = (p1, p2) => { - const v1 = p1.vIndexes; - const v2 = p2.vIndexes; - return ( - ( - v1[0] === v2[0] || - v1[0] === v2[1] || - v1[0] === v2[2] || - v1[0] === v2[3] - ) && ( - v1[1] === v2[0] || - v1[1] === v2[1] || - v1[1] === v2[2] || - v1[1] === v2[3] - ) && ( - v1[2] === v2[0] || - v1[2] === v2[1] || - v1[2] === v2[2] || - v1[2] === v2[3] - ) && ( - v1[3] === v2[0] || - v1[3] === v2[1] || - v1[3] === v2[2] || - v1[3] === v2[3] - ) - ); - }; - - - vertices.forEach((v, i) => { - v.originalIndexes = [i]; - }); - - for (let i=vertices.length-1; i>=0; i--) { - for (let ii=i-1; ii>=0; ii--) { - const v1 = vertices[i]; - const v2 = vertices[ii]; - if (compareVertices(v1, v2)) { - vertices.splice(i, 1); - v2.originalIndexes.push(...v1.originalIndexes); - break; - } - } - } - - vertices.forEach((v, i) => { - polys.forEach(p => { - p.vIndexes.forEach((vi, ii, arr) => { - const vo = v.originalIndexes; - if (vo.includes(vi)) { - arr[ii] = i; - } - }); - }); - }); - - polys.forEach(p => { - const vi = p.vIndexes; - p.sum = vi[0] + vi[1] + vi[2] + vi[3]; - }); - polys.sort((a, b) => b.sum - a.sum); - - // Assumptions: - // 1. Each poly will either have no duplicates or 1 duplicate. - // 2. If two polys are equal, they are both hidden (two cubes touching), - // therefore both can be removed. - for (let i=polys.length-1; i>=0; i--) { - for (let ii=i-1; ii>=0; ii--) { - const p1 = polys[i]; - const p2 = polys[ii]; - if (p1.sum !== p2.sum) break; - if (comparePolys(p1, p2)) { - polys.splice(i, 1); - polys.splice(ii, 1); - i--; - break; - } - } - } - - return model; -} - - - - - -// Entity.js -// ============================================================================ -// ============================================================================ - -class Entity { - constructor({ model, color, wireframe=false }) { - const vertices = cloneVertices(model.vertices); - const shadowVertices = cloneVertices(model.vertices); - const colorHex = colorToHex(color); - const darkColorHex = shadeColor(color, 0.4); - - const polys = model.polys.map(p => ({ - vertices: p.vIndexes.map(vIndex => vertices[vIndex]), - color: color, // custom rgb color object - wireframe: wireframe, - strokeWidth: wireframe ? 2 : 0, // Set to non-zero value to draw stroke - strokeColor: colorHex, // must be a CSS color string - strokeColorDark: darkColorHex, // must be a CSS color string - depth: 0, - middle: { x: 0, y: 0, z: 0 }, - normalWorld: { x: 0, y: 0, z: 0 }, - normalCamera: { x: 0, y: 0, z: 0 } - })); - - const shadowPolys = model.polys.map(p => ({ - vertices: p.vIndexes.map(vIndex => shadowVertices[vIndex]), - wireframe: wireframe, - normalWorld: { x: 0, y: 0, z: 0 } - })); - - this.projected = {}; // Will store 2D projected data - this.model = model; - this.vertices = vertices; - this.polys = polys; - this.shadowVertices = shadowVertices; - this.shadowPolys = shadowPolys; - this.reset(); - } - - // Better names: resetEntity, resetTransform, resetEntityTransform - reset() { - this.x = 0; - this.y = 0; - this.z = 0; - this.xD = 0; - this.yD = 0; - this.zD = 0; - - this.rotateX = 0; - this.rotateY = 0; - this.rotateZ = 0; - this.rotateXD = 0; - this.rotateYD = 0; - this.rotateZD = 0; - - this.scaleX = 1; - this.scaleY = 1; - this.scaleZ = 1; - - this.projected.x = 0; - this.projected.y = 0; - } - - transform() { - transformVertices( - this.model.vertices, - this.vertices, - this.x, - this.y, - this.z, - this.rotateX, - this.rotateY, - this.rotateZ, - this.scaleX, - this.scaleY, - this.scaleZ - ); - - copyVerticesTo(this.vertices, this.shadowVertices); - } - - // Projects origin point, stored as `projected` property. - project() { - projectVertexTo(this, this.projected); - } -} - - - - - -// getTarget.js -// ============================================================================ -// ============================================================================ - -// All active targets -const targets = []; - -// Pool target instances by color, using a Map. -// keys are color objects, and values are arrays of targets. -// Also pool wireframe instances separately. -const targetPool = new Map(allColors.map(c=>([c, []]))); -const targetWireframePool = new Map(allColors.map(c=>([c, []]))); - - - -const getTarget = (() => { - - const slowmoSpawner = makeSpawner({ - chance: 0.5, - cooldownPerSpawn: 10000, - maxSpawns: 1 - }); - - let doubleStrong = false; - const strongSpawner = makeSpawner({ - chance: 0.3, - cooldownPerSpawn: 12000, - maxSpawns: 1 - }); - - const spinnerSpawner = makeSpawner({ - chance: 0.1, - cooldownPerSpawn: 10000, - maxSpawns: 1 - }); - - // Cached array instances, no need to allocate every time. - const axisOptions = [ - ['x', 'y'], - ['y', 'z'], - ['z', 'x'] - ]; - - function getTargetOfStyle(color, wireframe) { - const pool = wireframe ? targetWireframePool : targetPool; - let target = pool.get(color).pop(); - if (!target) { - target = new Entity({ - model: optimizeModel(makeRecursiveCubeModel({ - recursionLevel: 1, - splitFn: mengerSpongeSplit, - scale: targetRadius - })), - color: color, - wireframe: wireframe - }); - - // Init any properties that will be used. - // These will not be automatically reset when recycled. - target.color = color; - target.wireframe = wireframe; - // Some properties don't have their final value yet. - // Initialize with any value of the right type. - target.hit = false; - target.maxHealth = 0; - target.health = 0; - } - return target; - } - - return function getTarget() { - if (doubleStrong && state.game.score <= doubleStrongEnableScore) { - doubleStrong = false; - // Spawner is reset automatically when game resets. - } else if (!doubleStrong && state.game.score > doubleStrongEnableScore) { - doubleStrong = true; - strongSpawner.mutate({ maxSpawns: 2 }); - } - - // Target Parameters - // -------------------------------- - let color = pickOne([BLUE, GREEN, ORANGE]); - let wireframe = false; - let health = 1; - let maxHealth = 3; - const spinner = state.game.cubeCount >= spinnerThreshold && isInGame() && spinnerSpawner.shouldSpawn(); - - // Target Parameter Overrides - // -------------------------------- - if (state.game.cubeCount >= slowmoThreshold && slowmoSpawner.shouldSpawn()) { - color = BLUE; - wireframe = true; - } - else if (state.game.cubeCount >= strongThreshold && strongSpawner.shouldSpawn()) { - color = PINK; - health = 3; - } - - // Target Creation - // -------------------------------- - const target = getTargetOfStyle(color, wireframe); - target.hit = false; - target.maxHealth = maxHealth; - target.health = health; - updateTargetHealth(target, 0); - - const spinSpeeds = [ - Math.random() * 0.1 - 0.05, - Math.random() * 0.1 - 0.05 - ]; - - if (spinner) { - // Ends up spinning a random axis - spinSpeeds[0] = -0.25; - spinSpeeds[1] = 0; - target.rotateZ = random(0, TAU); - } - - const axes = pickOne(axisOptions); - - spinSpeeds.forEach((spinSpeed, i) => { - switch (axes[i]) { - case 'x': - target.rotateXD = spinSpeed; - break; - case 'y': - target.rotateYD = spinSpeed; - break; - case 'z': - target.rotateZD = spinSpeed; - break; - } - }); - - return target; - } -})(); - - -const updateTargetHealth = (target, healthDelta) => { - target.health += healthDelta; - // Only update stroke on non-wireframe targets. - // Showing "glue" is a temporary attempt to display health. For now, there's - // no reason to have wireframe targets with high health, so we're fine. - if (!target.wireframe) { - const strokeWidth = target.health - 1; - const strokeColor = makeTargetGlueColor(target); - for (let p of target.polys) { - p.strokeWidth = strokeWidth; - p.strokeColor = strokeColor; - } - } -}; - - -const returnTarget = target => { - target.reset(); - const pool = target.wireframe ? targetWireframePool : targetPool; - pool.get(target.color).push(target); -}; - - -function resetAllTargets() { - while(targets.length) { - returnTarget(targets.pop()); - } -} - - - - - -// createBurst.js -// ============================================================================ -// ============================================================================ - -// Track all active fragments -const frags = []; -// Pool inactive fragments by color, using a Map. -// keys are color objects, and values are arrays of fragments. -// // Also pool wireframe instances separately. -const fragPool = new Map(allColors.map(c=>([c, []]))); -const fragWireframePool = new Map(allColors.map(c=>([c, []]))); - - -const createBurst = (() => { - // Precompute some private data to be reused for all bursts. - const basePositions = mengerSpongeSplit({ x:0, y:0, z:0 }, fragRadius*2); - const positions = cloneVertices(basePositions); - const prevPositions = cloneVertices(basePositions); - const velocities = cloneVertices(basePositions); - - const basePositionNormals = basePositions.map(normalize); - const positionNormals = cloneVertices(basePositionNormals); - - - const fragCount = basePositions.length; - - function getFragForTarget(target) { - const pool = target.wireframe ? fragWireframePool : fragPool; - let frag = pool.get(target.color).pop(); - if (!frag) { - frag = new Entity({ - model: makeCubeModel({ scale: fragRadius }), - color: target.color, - wireframe: target.wireframe - }); - frag.color = target.color; - frag.wireframe = target.wireframe; - } - return frag; - } - - return (target, force=1) => { - // Calculate fragment positions, and what would have been the previous positions - // when still a part of the larger target. - transformVertices( - basePositions, positions, - target.x, target.y, target.z, - target.rotateX, target.rotateY, target.rotateZ, - 1, 1, 1 - ); - transformVertices( - basePositions, prevPositions, - target.x - target.xD, target.y - target.yD, target.z - target.zD, - target.rotateX - target.rotateXD, target.rotateY - target.rotateYD, target.rotateZ - target.rotateZD, - 1, 1, 1 - ); - - // Compute velocity of each fragment, based on previous positions. - // Will write to `velocities` array. - for (let i=0; i { - frag.reset(); - const pool = frag.wireframe ? fragWireframePool : fragPool; - pool.get(frag.color).push(frag); -}; - - - - - -// sparks.js -// ============================================================================ -// ============================================================================ - -const sparks = []; -const sparkPool = []; - - -function addSpark(x, y, xD, yD) { - const spark = sparkPool.pop() || {}; - - spark.x = x + xD * 0.5; - spark.y = y + yD * 0.5; - spark.xD = xD; - spark.yD = yD; - spark.life = random(200, 300); - spark.maxLife = spark.life; - - sparks.push(spark); - - return spark; -} - - -// Spherical spark burst -function sparkBurst(x, y, count, maxSpeed) { - const angleInc = TAU / count; - for (let i=0; i { - if (Math.random() < 0.4) { - projectVertex(v); - addSpark( - v.x, - v.y, - random(-12, 12), - random(-12, 12) - ); - } - }); -} - -function returnSpark(spark) { - sparkPool.push(spark); -} - - - - - -// hud.js -// ============================================================================ -// ============================================================================ - -const hudContainerNode = $('.hud'); - -function setHudVisibility(visible) { - if (visible) { - hudContainerNode.style.display = 'block'; - } else { - hudContainerNode.style.display = 'none'; - } -} - - -/////////// -// Score // -/////////// -const scoreNode = $('.score-lbl'); -const cubeCountNode = $('.cube-count-lbl'); - -function renderScoreHud() { - if (isCasualGame()) { - scoreNode.style.display = 'none'; - cubeCountNode.style.opacity = 1; - } else { - scoreNode.innerText = `SCORE: ${state.game.score}`; - scoreNode.style.display = 'block'; - cubeCountNode.style.opacity = 0.65 ; - } - cubeCountNode.innerText = `CUBES SMASHED: ${state.game.cubeCount}`; -} - -renderScoreHud(); - - -////////////////// -// Pause Button // -////////////////// - -handlePointerDown($('.pause-btn'), () => pauseGame()); - - -//////////////////// -// Slow-Mo Status // -//////////////////// - -const slowmoNode = $('.slowmo'); -const slowmoBarNode = $('.slowmo__bar'); - -function renderSlowmoStatus(percentRemaining) { - slowmoNode.style.opacity = percentRemaining === 0 ? 0 : 1; - slowmoBarNode.style.transform = `scaleX(${percentRemaining.toFixed(3)})`; -} - - - - - -// menus.js -// ============================================================================ -// ============================================================================ - -// Top-level menu containers -const menuContainerNode = $('.menus'); -const menuMainNode = $('.menu--main'); -const menuPauseNode = $('.menu--pause'); -const menuScoreNode = $('.menu--score'); - -const finalScoreLblNode = $('.final-score-lbl'); -const highScoreLblNode = $('.high-score-lbl'); - - - -function showMenu(node) { - node.classList.add('active'); -} - -function hideMenu(node) { - node.classList.remove('active'); -} - -function renderMenus() { - hideMenu(menuMainNode); - hideMenu(menuPauseNode); - hideMenu(menuScoreNode); - - switch (state.menus.active) { - case MENU_MAIN: - showMenu(menuMainNode); - break; - case MENU_PAUSE: - showMenu(menuPauseNode); - break; - case MENU_SCORE: - finalScoreLblNode.textContent = formatNumber(state.game.score); - if (isNewHighScore()) { - highScoreLblNode.textContent = 'New High Score!'; - } else { - highScoreLblNode.textContent = `High Score: ${formatNumber(getHighScore())}`; - } - showMenu(menuScoreNode); - break; - } - - setHudVisibility(!isMenuVisible()); - menuContainerNode.classList.toggle('has-active', isMenuVisible()); - menuContainerNode.classList.toggle('interactive-mode', isMenuVisible() && pointerIsDown); -} - -renderMenus(); - - - -//////////////////// -// Button Actions // -//////////////////// - -// Main Menu -handleClick($('.play-normal-btn'), () => { - setGameMode(GAME_MODE_RANKED); - setActiveMenu(null); - resetGame(); -}); - -handleClick($('.play-casual-btn'), () => { - setGameMode(GAME_MODE_CASUAL); - setActiveMenu(null); - resetGame(); -}); - -// Pause Menu -handleClick($('.resume-btn'), () => resumeGame()); -handleClick($('.menu-btn--pause'), () => setActiveMenu(MENU_MAIN)); - -// Score Menu -handleClick($('.play-again-btn'), () => { - setActiveMenu(null); - resetGame(); -}); - -handleClick($('.menu-btn--score'), () => setActiveMenu(MENU_MAIN)); - - - - -//////////////////// -// Button Actions // -//////////////////// - -// Main Menu -handleClick($('.play-normal-btn'), () => { - setGameMode(GAME_MODE_RANKED); - setActiveMenu(null); - resetGame(); -}); - -handleClick($('.play-casual-btn'), () => { - setGameMode(GAME_MODE_CASUAL); - setActiveMenu(null); - resetGame(); -}); - -// Pause Menu -handleClick($('.resume-btn'), () => resumeGame()); -handleClick($('.menu-btn--pause'), () => setActiveMenu(MENU_MAIN)); - -// Score Menu -handleClick($('.play-again-btn'), () => { - setActiveMenu(null); - resetGame(); -}); - -handleClick($('.menu-btn--score'), () => setActiveMenu(MENU_MAIN)); - - - - - -// actions.js -// ============================================================================ -// ============================================================================ - -////////////////// -// MENU ACTIONS // -////////////////// - -function setActiveMenu(menu) { - state.menus.active = menu; - renderMenus(); -} - - -///////////////// -// HUD ACTIONS // -///////////////// - -function setScore(score) { - state.game.score = score; - renderScoreHud(); -} - -function incrementScore(inc) { - if (isInGame()) { - state.game.score += inc; - if (state.game.score < 0) { - state.game.score = 0; - } - renderScoreHud(); - } -} - -function setCubeCount(count) { - state.game.cubeCount = count; - renderScoreHud(); -} - -function incrementCubeCount(inc) { - if (isInGame()) { - state.game.cubeCount += inc; - renderScoreHud(); - } -} - - -////////////////// -// GAME ACTIONS // -////////////////// - -function setGameMode(mode) { - state.game.mode = mode; -} - -function resetGame() { - resetAllTargets(); - state.game.time = 0; - resetAllCooldowns(); - setScore(0); - setCubeCount(0); - spawnTime = getSpawnDelay(); -} - -function pauseGame() { - isInGame() && setActiveMenu(MENU_PAUSE); -} - -function resumeGame() { - isPaused() && setActiveMenu(null); -} - -function endGame() { - handleCanvasPointerUp(); - if (isNewHighScore()) { - setHighScore(state.game.score); - } - setActiveMenu(MENU_SCORE); -} - - - -//////////////////////// -// KEYBOARD SHORTCUTS // -//////////////////////// - -window.addEventListener('keydown', event => { - if (event.key === 'p') { - isPaused() ? resumeGame() : pauseGame(); - } -}); - - - - - - -// tick.js -// ============================================================================ -// ============================================================================ - - -let spawnTime = 0; -const maxSpawnX = 450; -const pointerDelta = { x: 0, y: 0 }; -const pointerDeltaScaled = { x: 0, y: 0 }; - -// Temp slowmo state. Should be relocated once this stabilizes. -const slowmoDuration = 1500; -let slowmoRemaining = 0; -let spawnExtra = 0; -const spawnExtraDelay = 300; -let targetSpeed = 1; - - -function tick(width, height, simTime, simSpeed, lag) { - PERF_START('frame'); - PERF_START('tick'); - - state.game.time += simTime; - - if (slowmoRemaining > 0) { - slowmoRemaining -= simTime; - if (slowmoRemaining < 0) { - slowmoRemaining = 0; - } - targetSpeed = pointerIsDown ? 0.075 : 0.3; - } else { - const menuPointerDown = isMenuVisible() && pointerIsDown; - targetSpeed = menuPointerDown ? 0.025 : 1; - } - - renderSlowmoStatus(slowmoRemaining / slowmoDuration); - - gameSpeed += (targetSpeed - gameSpeed) / 22 * lag; - gameSpeed = clamp(gameSpeed, 0, 1); - - const centerX = width / 2; - const centerY = height / 2; - - const simAirDrag = 1 - (airDrag * simSpeed); - const simAirDragSpark = 1 - (airDragSpark * simSpeed); - - // Pointer Tracking - // ------------------- - - // Compute speed and x/y deltas. - // There is also a "scaled" variant taking game speed into account. This serves two purposes: - // - Lag won't create large spikes in speed/deltas - // - In slow mo, speed is increased proportionately to match "reality". Without this boost, - // it feels like your actions are dampened in slow mo. - const forceMultiplier = 1 / (simSpeed * 0.75 + 0.25); - pointerDelta.x = 0; - pointerDelta.y = 0; - pointerDeltaScaled.x = 0; - pointerDeltaScaled.y = 0; - const lastPointer = touchPoints[touchPoints.length - 1]; - - if (pointerIsDown && lastPointer && !lastPointer.touchBreak) { - pointerDelta.x = (pointerScene.x - lastPointer.x); - pointerDelta.y = (pointerScene.y - lastPointer.y); - pointerDeltaScaled.x = pointerDelta.x * forceMultiplier; - pointerDeltaScaled.y = pointerDelta.y * forceMultiplier; - } - const pointerSpeed = Math.hypot(pointerDelta.x, pointerDelta.y); - const pointerSpeedScaled = pointerSpeed * forceMultiplier; - - // Track points for later calculations, including drawing trail. - touchPoints.forEach(p => p.life -= simTime); - - if (pointerIsDown) { - touchPoints.push({ - x: pointerScene.x, - y: pointerScene.y, - life: touchPointLife - }); - } - - while (touchPoints[0] && touchPoints[0].life <= 0) { - touchPoints.shift(); - } - - - // Entity Manipulation - // -------------------- - PERF_START('entities'); - - // Spawn targets - spawnTime -= simTime; - if (spawnTime <= 0) { - if (spawnExtra > 0) { - spawnExtra--; - spawnTime = spawnExtraDelay; - } else { - spawnTime = getSpawnDelay(); - } - const target = getTarget(); - const spawnRadius = Math.min(centerX * 0.8, maxSpawnX); - target.x = (Math.random() * spawnRadius * 2 - spawnRadius); - target.y = centerY + targetHitRadius * 2; - target.z = (Math.random() * targetRadius*2 - targetRadius); - target.xD = Math.random() * (target.x * -2 / 120); - target.yD = -20; - targets.push(target); - } - - // Animate targets and remove when offscreen - const leftBound = -centerX + targetRadius; - const rightBound = centerX - targetRadius; - const ceiling = -centerY - 120; - const boundDamping = 0.4; - - targetLoop: - for (let i = targets.length - 1; i >= 0; i--) { - const target = targets[i]; - target.x += target.xD * simSpeed; - target.y += target.yD * simSpeed; - - if (target.y < ceiling) { - target.y = ceiling; - target.yD = 0; - } - - if (target.x < leftBound) { - target.x = leftBound; - target.xD *= -boundDamping; - } else if (target.x > rightBound) { - target.x = rightBound; - target.xD *= -boundDamping; - } - - if (target.z < backboardZ) { - target.z = backboardZ; - target.zD *= -boundDamping; - } - - target.yD += gravity * simSpeed; - target.rotateX += target.rotateXD * simSpeed; - target.rotateY += target.rotateYD * simSpeed; - target.rotateZ += target.rotateZD * simSpeed; - target.transform(); - target.project(); - - // Remove if offscreen - if (target.y > centerY + targetHitRadius * 2) { - targets.splice(i, 1); - returnTarget(target); - if (isInGame()) { - if (isCasualGame()) { - incrementScore(-25); - } else { - endGame(); - } - } - continue; - } - - - // If pointer is moving really fast, we want to hittest multiple points along the path. - // We can't use scaled pointer speed to determine this, since we care about actual screen - // distance covered. - const hitTestCount = Math.ceil(pointerSpeed / targetRadius * 2); - // Start loop at `1` and use `<=` check, so we skip 0% and end up at 100%. - // This omits the previous point position, and includes the most recent. - for (let ii=1; ii<=hitTestCount; ii++) { - const percent = 1 - (ii / hitTestCount); - const hitX = pointerScene.x - pointerDelta.x * percent; - const hitY = pointerScene.y - pointerDelta.y * percent; - const distance = Math.hypot( - hitX - target.projected.x, - hitY - target.projected.y - ); - - if (distance <= targetHitRadius) { - // Hit! (though we don't want to allow hits on multiple sequential frames) - if (!target.hit) { - target.hit = true; - - target.xD += pointerDeltaScaled.x * hitDampening; - target.yD += pointerDeltaScaled.y * hitDampening; - target.rotateXD += pointerDeltaScaled.y * 0.001; - target.rotateYD += pointerDeltaScaled.x * 0.001; - - const sparkSpeed = 7 + pointerSpeedScaled * 0.125; - - if (pointerSpeedScaled > minPointerSpeed) { - target.health--; - incrementScore(10); - - if (target.health <= 0) { - incrementCubeCount(1); - createBurst(target, forceMultiplier); - sparkBurst(hitX, hitY, 8, sparkSpeed); - if (target.wireframe) { - slowmoRemaining = slowmoDuration; - spawnTime = 0; - spawnExtra = 2; - } - targets.splice(i, 1); - returnTarget(target); - } else { - sparkBurst(hitX, hitY, 8, sparkSpeed); - glueShedSparks(target); - updateTargetHealth(target, 0); - } - } else { - incrementScore(5); - sparkBurst(hitX, hitY, 3, sparkSpeed); - } - } - // Break the current loop and continue the outer loop. - // This skips to processing the next target. - continue targetLoop; - } - } - - // This code will only run if target hasn't been "hit". - target.hit = false; - } - - // Animate fragments and remove when offscreen. - const fragBackboardZ = backboardZ + fragRadius; - // Allow fragments to move off-screen to sides for a while, since shadows are still visible. - const fragLeftBound = -width; - const fragRightBound = width; - - for (let i = frags.length - 1; i >= 0; i--) { - const frag = frags[i]; - frag.x += frag.xD * simSpeed; - frag.y += frag.yD * simSpeed; - frag.z += frag.zD * simSpeed; - - frag.xD *= simAirDrag; - frag.yD *= simAirDrag; - frag.zD *= simAirDrag; - - if (frag.y < ceiling) { - frag.y = ceiling; - frag.yD = 0; - } - - if (frag.z < fragBackboardZ) { - frag.z = fragBackboardZ; - frag.zD *= -boundDamping; - } - - frag.yD += gravity * simSpeed; - frag.rotateX += frag.rotateXD * simSpeed; - frag.rotateY += frag.rotateYD * simSpeed; - frag.rotateZ += frag.rotateZD * simSpeed; - frag.transform(); - frag.project(); - - // Removal conditions - if ( - // Bottom of screen - frag.projected.y > centerY + targetHitRadius || - // Sides of screen - frag.projected.x < fragLeftBound || - frag.projected.x > fragRightBound || - // Too close to camera - frag.z > cameraFadeEndZ - ) { - frags.splice(i, 1); - returnFrag(frag); - continue; - } - } - - // 2D sparks - for (let i = sparks.length - 1; i >= 0; i--) { - const spark = sparks[i]; - spark.life -= simTime; - if (spark.life <= 0) { - sparks.splice(i, 1); - returnSpark(spark); - continue; - } - spark.x += spark.xD * simSpeed; - spark.y += spark.yD * simSpeed; - spark.xD *= simAirDragSpark; - spark.yD *= simAirDragSpark; - spark.yD += gravity * simSpeed; - } - - PERF_END('entities'); - - // 3D transforms - // ------------------- - - PERF_START('3D'); - - // Aggregate all scene vertices/polys - allVertices.length = 0; - allPolys.length = 0; - allShadowVertices.length = 0; - allShadowPolys.length = 0; - targets.forEach(entity => { - allVertices.push(...entity.vertices); - allPolys.push(...entity.polys); - allShadowVertices.push(...entity.shadowVertices); - allShadowPolys.push(...entity.shadowPolys); - }); - - frags.forEach(entity => { - allVertices.push(...entity.vertices); - allPolys.push(...entity.polys); - allShadowVertices.push(...entity.shadowVertices); - allShadowPolys.push(...entity.shadowPolys); - }); - - // Scene calculations/transformations - allPolys.forEach(p => computePolyNormal(p, 'normalWorld')); - allPolys.forEach(computePolyDepth); - allPolys.sort((a, b) => b.depth - a.depth); - - // Perspective projection - allVertices.forEach(projectVertex); - - allPolys.forEach(p => computePolyNormal(p, 'normalCamera')); - - PERF_END('3D'); - - PERF_START('shadows'); - - // Rotate shadow vertices to light source perspective - transformVertices( - allShadowVertices, - allShadowVertices, - 0, 0, 0, - TAU/8, 0, 0, - 1, 1, 1 - ); - - allShadowPolys.forEach(p => computePolyNormal(p, 'normalWorld')); - - const shadowDistanceMult = Math.hypot(1, 1); - const shadowVerticesLength = allShadowVertices.length; - for (let i=0; i { - if (p.wireframe) { - ctx.lineWidth = 2; - ctx.beginPath(); - const { vertices } = p; - const vCount = vertices.length; - const firstV = vertices[0]; - ctx.moveTo(firstV.x, firstV.y); - for (let i=1; i { - if (!p.wireframe && p.normalCamera.z < 0) return; - - if (p.strokeWidth !== 0) { - ctx.lineWidth = p.normalCamera.z < 0 ? p.strokeWidth * 0.5 : p.strokeWidth; - ctx.strokeStyle = p.normalCamera.z < 0 ? p.strokeColorDark : p.strokeColor; - } - - const { vertices } = p; - const lastV = vertices[vertices.length - 1]; - const fadeOut = p.middle.z > cameraFadeStartZ; - - if (!p.wireframe) { - const normalLight = p.normalWorld.y * 0.5 + p.normalWorld.z * -0.5; - const lightness = normalLight > 0 - ? 0.1 - : ((normalLight ** 32 - normalLight) / 2) * 0.9 + 0.1; - ctx.fillStyle = shadeColor(p.color, lightness); - } - - // Fade out polys close to camera. `globalAlpha` must be reset later. - if (fadeOut) { - // If polygon gets really close to camera (outside `cameraFadeRange`) the alpha - // can go negative, which has the appearance of alpha = 1. So, we'll clamp it at 0. - ctx.globalAlpha = Math.max(0, 1 - (p.middle.z - cameraFadeStartZ) / cameraFadeRange); - } - - ctx.beginPath(); - ctx.moveTo(lastV.x, lastV.y); - for (let v of vertices) { - ctx.lineTo(v.x, v.y); - } - - if (!p.wireframe) { - ctx.fill(); - } - if (p.strokeWidth !== 0) { - ctx.stroke(); - } - - if (fadeOut) { - ctx.globalAlpha = 1; - } - }); - PERF_END('drawPolys'); - - - PERF_START('draw2D'); - - // 2D Sparks - // --------------- - ctx.strokeStyle = sparkColor; - ctx.lineWidth = sparkThickness; - ctx.beginPath(); - sparks.forEach(spark => { - ctx.moveTo(spark.x, spark.y); - // Shrink sparks to zero length as they die. - // Speed up shrinking as life approaches 0 (root curve). - // Note that sparks already get smaller over time as their speed slows - // down from damping. So this is like a double scale down. To counter this - // a bit and keep the sparks larger for longer, we'll also increase the scale - // a bit after applying the root curve. - const scale = (spark.life / spark.maxLife) ** 0.5 * 1.5; - ctx.lineTo(spark.x - spark.xD*scale, spark.y - spark.yD*scale); - - }); - ctx.stroke(); - - - // Touch Strokes - // --------------- - - ctx.strokeStyle = touchTrailColor; - const touchPointCount = touchPoints.length; - for (let i=1; i 68) { - frameTime = 68; - } - - const halfW = width / 2; - const halfH = height / 2; - - // Convert pointer position from screen to scene coords. - pointerScene.x = pointerScreen.x / viewScale - halfW; - pointerScene.y = pointerScreen.y / viewScale - halfH; - - const lag = frameTime / 16.6667; - const simTime = gameSpeed * frameTime; - const simSpeed = gameSpeed * lag; - tick(width, height, simTime, simSpeed, lag); - - // Auto clear canvas - ctx.clearRect(0, 0, canvas.width, canvas.height); - // Auto scale drawing for high res displays, and incorporate `viewScale`. - // Also shift canvas so (0, 0) is the middle of the screen. - // This just works with 3D perspective projection. - const drawScale = dpr * viewScale; - ctx.scale(drawScale, drawScale); - ctx.translate(halfW, halfH); - draw(ctx, width, height, viewScale); - ctx.setTransform(1, 0, 0, 1, 0, 0); - } - const raf = () => requestAnimationFrame(frameHandler); - // Start loop - raf(); -} - - - - - -// interaction.js -// ============================================================================ -// ============================================================================ - -// Interaction -// ----------------------------- - -function handleCanvasPointerDown(x, y) { - if (!pointerIsDown) { - pointerIsDown = true; - pointerScreen.x = x; - pointerScreen.y = y; - // On when menus are open, point down/up toggles an interactive mode. - // We just need to rerender the menu system for it to respond. - if (isMenuVisible()) renderMenus(); - } -} - -function handleCanvasPointerUp() { - if (pointerIsDown) { - pointerIsDown = false; - touchPoints.push({ - touchBreak: true, - life: touchPointLife - }); - // On when menus are open, point down/up toggles an interactive mode. - // We just need to rerender the menu system for it to respond. - if (isMenuVisible()) renderMenus(); - } -} - -function handleCanvasPointerMove(x, y) { - if (pointerIsDown) { - pointerScreen.x = x; - pointerScreen.y = y; - } -} - - -// Use pointer events if available, otherwise fallback to touch events (for iOS). -if ('PointerEvent' in window) { - canvas.addEventListener('pointerdown', event => { - event.isPrimary && handleCanvasPointerDown(event.clientX, event.clientY); - }); - - canvas.addEventListener('pointerup', event => { - event.isPrimary && handleCanvasPointerUp(); - }); - - canvas.addEventListener('pointermove', event => { - event.isPrimary && handleCanvasPointerMove(event.clientX, event.clientY); - }); - - // We also need to know if the mouse leaves the page. For this game, it's best if that - // cancels a swipe, so essentially acts as a "mouseup" event. - document.body.addEventListener('mouseleave', handleCanvasPointerUp); -} else { - let activeTouchId = null; - canvas.addEventListener('touchstart', event => { - if (!pointerIsDown) { - const touch = event.changedTouches[0]; - activeTouchId = touch.identifier; - handleCanvasPointerDown(touch.clientX, touch.clientY); - } - }); - canvas.addEventListener('touchend', event => { - for (let touch of event.changedTouches) { - if (touch.identifier === activeTouchId) { - handleCanvasPointerUp(); - break; - } - } - }); - canvas.addEventListener('touchmove', event => { - for (let touch of event.changedTouches) { - if (touch.identifier === activeTouchId) { - handleCanvasPointerMove(touch.clientX, touch.clientY); - event.preventDefault(); - break; - } - } - }, { passive: false }); -} - - - - - -// index.js -// ============================================================================ -// ============================================================================ - -setupCanvases(); +// globalConfig.js +// ============================================================================ +// ============================================================================ + +// Provides global variables used by the entire program. +// Most of this should be configuration. + +// Timing multiplier for entire game engine. +let gameSpeed = 1; + +// Colors +const BLUE = { r: 0x67, g: 0xd7, b: 0xf0 }; +const GREEN = { r: 0xa6, g: 0xe0, b: 0x2c }; +const PINK = { r: 0xfa, g: 0x24, b: 0x73 }; +const ORANGE = { r: 0xfe, g: 0x95, b: 0x22 }; +const allColors = [BLUE, GREEN, PINK, ORANGE]; + +// Gameplay +const getSpawnDelay = () => { + const spawnDelayMax = 1400; + const spawnDelayMin = 550; + const spawnDelay = spawnDelayMax - state.game.cubeCount * 3.1; + return Math.max(spawnDelay, spawnDelayMin); +} +const doubleStrongEnableScore = 2000; +// Number of cubes that must be smashed before activating a feature. +const slowmoThreshold = 10; +const strongThreshold = 25; +const spinnerThreshold = 25; + +// Interaction state +let pointerIsDown = false; +// The last known position of the primary pointer in screen coordinates.` +let pointerScreen = { x: 0, y: 0 }; +// Same as `pointerScreen`, but converted to scene coordinates in rAF. +let pointerScene = { x: 0, y: 0 }; +// Minimum speed of pointer before "hits" are counted. +const minPointerSpeed = 60; +// The hit speed affects the direction the target post-hit. This number dampens that force. +const hitDampening = 0.1; +// Backboard receives shadows and is the farthest negative Z position of entities. +const backboardZ = -400; +const shadowColor = '#262e36'; +// How much air drag is applied to standard objects +const airDrag = 0.022; +const gravity = 0.3; +// Spark config +const sparkColor = 'rgba(170,221,255,.9)'; +const sparkThickness = 2.2; +const airDragSpark = 0.1; +// Track pointer positions to show trail +const touchTrailColor = 'rgba(170,221,255,.62)'; +const touchTrailThickness = 7; +const touchPointLife = 120; +const touchPoints = []; +// Size of in-game targets. This affects rendered size and hit area. +const targetRadius = 40; +const targetHitRadius = 50; +const makeTargetGlueColor = target => { + // const alpha = (target.health - 1) / (target.maxHealth - 1); + // return `rgba(170,221,255,${alpha.toFixed(3)})`; + return 'rgb(170,221,255)'; +}; +// Size of target fragments +const fragRadius = targetRadius / 3; + + + +// Game canvas element needed in setup.js and interaction.js +const canvas = document.querySelector('#c'); + +// 3D camera config +// Affects perspective +const cameraDistance = 900; +// Does not affect perspective +const sceneScale = 1; +// Objects that get too close to the camera will be faded out to transparent over this range. +// const cameraFadeStartZ = 0.8*cameraDistance - 6*targetRadius; +const cameraFadeStartZ = 0.45*cameraDistance; +const cameraFadeEndZ = 0.65*cameraDistance; +const cameraFadeRange = cameraFadeEndZ - cameraFadeStartZ; + +// Globals used to accumlate all vertices/polygons in each frame +const allVertices = []; +const allPolys = []; +const allShadowVertices = []; +const allShadowPolys = []; + + + + +// state.js +// ============================================================================ +// ============================================================================ + +/////////// +// Enums // +/////////// + +// Game Modes +const GAME_MODE_RANKED = Symbol('GAME_MODE_RANKED'); +const GAME_MODE_CASUAL = Symbol('GAME_MODE_CASUAL'); + +// Available Menus +const MENU_MAIN = Symbol('MENU_MAIN'); +const MENU_PAUSE = Symbol('MENU_PAUSE'); +const MENU_SCORE = Symbol('MENU_SCORE'); + + + +////////////////// +// Global State // +////////////////// + +const state = { + game: { + mode: GAME_MODE_RANKED, + // Run time of current game. + time: 0, + // Player score. + score: 0, + // Total number of cubes smashed in game. + cubeCount: 0 + }, + menus: { + // Set to `null` to hide all menus + active: MENU_MAIN + } +}; + + +//////////////////////////// +// Global State Selectors // +//////////////////////////// + +const isInGame = () => !state.menus.active; +const isMenuVisible = () => !!state.menus.active; +const isCasualGame = () => state.game.mode === GAME_MODE_CASUAL; +const isPaused = () => state.menus.active === MENU_PAUSE; + + +/////////////////// +// Local Storage // +/////////////////// + +const highScoreKey = '__menja__highScore'; +const getHighScore = () => { + const raw = localStorage.getItem(highScoreKey); + return raw ? parseInt(raw, 10) : 0; +}; + +let _lastHighscore = getHighScore(); +const setHighScore = score => { + _lastHighscore = getHighScore(); + localStorage.setItem(highScoreKey, String(score)); +}; + +const isNewHighScore = () => state.game.score > _lastHighscore; + + + + +// utils.js +// ============================================================================ +// ============================================================================ + + +const invariant = (condition, message) => { + if (!condition) throw new Error(message); +}; + + +///////// +// DOM // +///////// + +const $ = selector => document.querySelector(selector); +const handleClick = (element, handler) => element.addEventListener('click', handler); +const handlePointerDown = (element, handler) => { + element.addEventListener('touchstart', handler); + element.addEventListener('mousedown', handler); +}; + + + +//////////////////////// +// Formatting Helpers // +//////////////////////// + +// Converts a number into a formatted string with thousand separators. +const formatNumber = num => num.toLocaleString(); + + + +//////////////////// +// Math Constants // +//////////////////// + +const PI = Math.PI; +const TAU = Math.PI * 2; +const ETA = Math.PI * 0.5; + + + +////////////////// +// Math Helpers // +////////////////// + +// Clamps a number between min and max values (inclusive) +const clamp = (num, min, max) => Math.min(Math.max(num, min), max); + +// Linearly interpolate between numbers a and b by a specific amount. +// mix >= 0 && mix <= 1 +const lerp = (a, b, mix) => (b - a) * mix + a; + + + + +//////////////////// +// Random Helpers // +//////////////////// + +// Generates a random number between min (inclusive) and max (exclusive) +const random = (min, max) => Math.random() * (max - min) + min; + +// Generates a random integer between and possibly including min and max values +const randomInt = (min, max) => ((Math.random() * (max - min + 1)) | 0) + min; + +// Returns a random element from an array +const pickOne = arr => arr[Math.random() * arr.length | 0]; + + + + +/////////////////// +// Color Helpers // +/////////////////// + +// Converts an { r, g, b } color object to a 6-digit hex code. +const colorToHex = color => { + return '#' + + (color.r | 0).toString(16).padStart(2, '0') + + (color.g | 0).toString(16).padStart(2, '0') + + (color.b | 0).toString(16).padStart(2, '0'); +}; + +// Operates on an { r, g, b } color object. +// Returns string hex code. +// `lightness` must range from 0 to 1. 0 is pure black, 1 is pure white. +const shadeColor = (color, lightness) => { + let other, mix; + if (lightness < 0.5) { + other = 0; + mix = 1 - (lightness * 2); + } else { + other = 255; + mix = lightness * 2 - 1; + } + return '#' + + (lerp(color.r, other, mix) | 0).toString(16).padStart(2, '0') + + (lerp(color.g, other, mix) | 0).toString(16).padStart(2, '0') + + (lerp(color.b, other, mix) | 0).toString(16).padStart(2, '0'); +}; + + + + + +//////////////////// +// Timing Helpers // +//////////////////// + +const _allCooldowns = []; + +const makeCooldown = (rechargeTime, units=1) => { + let timeRemaining = 0; + let lastTime = 0; + + const initialOptions = { rechargeTime, units }; + + const updateTime = () => { + const now = state.game.time; + // Reset time remaining if time goes backwards. + if (now < lastTime) { + timeRemaining = 0; + } else { + // update... + timeRemaining -= now-lastTime; + if (timeRemaining < 0) timeRemaining = 0; + } + lastTime = now; + }; + + const canUse = () => { + updateTime(); + return timeRemaining <= (rechargeTime * (units-1)); + }; + + const cooldown = { + canUse, + useIfAble() { + const usable = canUse(); + if (usable) timeRemaining += rechargeTime; + return usable; + }, + mutate(options) { + if (options.rechargeTime) { + // Apply recharge time delta so change takes effect immediately. + timeRemaining -= rechargeTime-options.rechargeTime; + if (timeRemaining < 0) timeRemaining = 0; + rechargeTime = options.rechargeTime; + } + if (options.units) units = options.units; + }, + reset() { + timeRemaining = 0; + lastTime = 0; + this.mutate(initialOptions); + } + }; + + _allCooldowns.push(cooldown); + + return cooldown; +}; + +const resetAllCooldowns = () => _allCooldowns.forEach(cooldown => cooldown.reset()); + +const makeSpawner = ({ chance, cooldownPerSpawn, maxSpawns }) => { + const cooldown = makeCooldown(cooldownPerSpawn, maxSpawns); + return { + shouldSpawn() { + return Math.random() <= chance && cooldown.useIfAble(); + }, + mutate(options) { + if (options.chance) chance = options.chance; + cooldown.mutate({ + rechargeTime: options.cooldownPerSpawn, + units: options.maxSpawns + }); + } + }; +}; + + + + +//////////////////// +// Vector Helpers // +//////////////////// + +const normalize = v => { + const mag = Math.hypot(v.x, v.y, v.z); + return { + x: v.x / mag, + y: v.y / mag, + z: v.z / mag + }; +} + +// Curried math helpers +const add = a => b => a + b; +// Curried vector helpers +const scaleVector = scale => vector => { + vector.x *= scale; + vector.y *= scale; + vector.z *= scale; +}; + + + + + + + + +//////////////// +// 3D Helpers // +//////////////// + +// Clone array and all vertices. +function cloneVertices(vertices) { + return vertices.map(v => ({ x: v.x, y: v.y, z: v.z })); +} + +// Copy vertex data from one array into another. +// Arrays must be the same length. +function copyVerticesTo(arr1, arr2) { + const len = arr1.length; + for (let i=0; i { + const targetVertex = target[i]; + // X axis rotation + const x1 = v.x; + const y1 = v.z*sinX + v.y*cosX; + const z1 = v.z*cosX - v.y*sinX; + // Y axis rotation + const x2 = x1*cosY - z1*sinY; + const y2 = y1; + const z2 = x1*sinY + z1*cosY; + // Z axis rotation + const x3 = x2*cosZ - y2*sinZ; + const y3 = x2*sinZ + y2*cosZ; + const z3 = z2; + + // Scale, Translate, and set the transform. + targetVertex.x = x3 * sX + tX; + targetVertex.y = y3 * sY + tY; + targetVertex.z = z3 * sZ + tZ; + }); +} + +// 3D projection on a single vertex. +// Directly mutates the vertex. +const projectVertex = v => { + const focalLength = cameraDistance * sceneScale; + const depth = focalLength / (cameraDistance - v.z); + v.x = v.x * depth; + v.y = v.y * depth; +}; + +// 3D projection on a single vertex. +// Mutates a secondary target vertex. +const projectVertexTo = (v, target) => { + const focalLength = cameraDistance * sceneScale; + const depth = focalLength / (cameraDistance - v.z); + target.x = v.x * depth; + target.y = v.y * depth; +}; + + + + + +// PERF.js +// ============================================================================ +// ============================================================================ + +// Dummy no-op functions. +// I use these in a special build for custom performance profiling. +const PERF_START = () => {}; +const PERF_END = () => {}; +const PERF_UPDATE = () => {}; + + + + +// 3dModels.js +// ============================================================================ +// ============================================================================ + +// Define models once. The origin is the center of the model. + +// A simple cube, 8 vertices, 6 quads. +// Defaults to an edge length of 2 units, can be influenced with `scale`. +function makeCubeModel({ scale=1 }) { + return { + vertices: [ + // top + { x: -scale, y: -scale, z: scale }, + { x: scale, y: -scale, z: scale }, + { x: scale, y: scale, z: scale }, + { x: -scale, y: scale, z: scale }, + // bottom + { x: -scale, y: -scale, z: -scale }, + { x: scale, y: -scale, z: -scale }, + { x: scale, y: scale, z: -scale }, + { x: -scale, y: scale, z: -scale } + ], + polys: [ + // z = 1 + { vIndexes: [0, 1, 2, 3] }, + // z = -1 + { vIndexes: [7, 6, 5, 4] }, + // y = 1 + { vIndexes: [3, 2, 6, 7] }, + // y = -1 + { vIndexes: [4, 5, 1, 0] }, + // x = 1 + { vIndexes: [5, 6, 2, 1] }, + // x = -1 + { vIndexes: [0, 3, 7, 4] } + ] + }; +} + +// Not very optimized - lots of duplicate vertices are generated. +function makeRecursiveCubeModel({ recursionLevel, splitFn, color, scale=1 }) { + const getScaleAtLevel = level => 1 / (3 ** level); + + // We can model level 0 manually. It's just a single, centered, cube. + let cubeOrigins = [{ x: 0, y: 0, z: 0 }]; + + // Recursively replace cubes with smaller cubes. + for (let i=1; i<=recursionLevel; i++) { + const scale = getScaleAtLevel(i) * 2; + const cubeOrigins2 = []; + cubeOrigins.forEach(origin => { + cubeOrigins2.push(...splitFn(origin, scale)); + }); + cubeOrigins = cubeOrigins2; + } + + const finalModel = { vertices: [], polys: [] }; + + // Generate single cube model and scale it. + const cubeModel = makeCubeModel({ scale: 1 }); + cubeModel.vertices.forEach(scaleVector(getScaleAtLevel(recursionLevel))); + + // Compute the max distance x, y, or z origin values will be. + // Same result as `Math.max(...cubeOrigins.map(o => o.x))`, but much faster. + const maxComponent = getScaleAtLevel(recursionLevel) * (3 ** recursionLevel - 1); + + // Place cube geometry at each origin. + cubeOrigins.forEach((origin, cubeIndex) => { + // To compute occlusion (shading), find origin component with greatest + // magnitude and normalize it relative to `maxComponent`. + const occlusion = Math.max( + Math.abs(origin.x), + Math.abs(origin.y), + Math.abs(origin.z) + ) / maxComponent; + // At lower iterations, occlusion looks better lightened up a bit. + const occlusionLighter = recursionLevel > 2 + ? occlusion + : (occlusion + 0.8) / 1.8; + // Clone, translate vertices to origin, and apply scale + finalModel.vertices.push( + ...cubeModel.vertices.map(v => ({ + x: (v.x + origin.x) * scale, + y: (v.y + origin.y) * scale, + z: (v.z + origin.z) * scale + })) + ); + // Clone polys, shift referenced vertex indexes, and compute color. + finalModel.polys.push( + ...cubeModel.polys.map(poly => ({ + vIndexes: poly.vIndexes.map(add(cubeIndex * 8)) + })) + ); + }); + + return finalModel; +} + + +// o: Vector3D - Position of cube's origin (center). +// s: Vector3D - Determines size of menger sponge. +function mengerSpongeSplit(o, s) { + return [ + // Top + { x: o.x + s, y: o.y - s, z: o.z + s }, + { x: o.x + s, y: o.y - s, z: o.z + 0 }, + { x: o.x + s, y: o.y - s, z: o.z - s }, + { x: o.x + 0, y: o.y - s, z: o.z + s }, + { x: o.x + 0, y: o.y - s, z: o.z - s }, + { x: o.x - s, y: o.y - s, z: o.z + s }, + { x: o.x - s, y: o.y - s, z: o.z + 0 }, + { x: o.x - s, y: o.y - s, z: o.z - s }, + // Bottom + { x: o.x + s, y: o.y + s, z: o.z + s }, + { x: o.x + s, y: o.y + s, z: o.z + 0 }, + { x: o.x + s, y: o.y + s, z: o.z - s }, + { x: o.x + 0, y: o.y + s, z: o.z + s }, + { x: o.x + 0, y: o.y + s, z: o.z - s }, + { x: o.x - s, y: o.y + s, z: o.z + s }, + { x: o.x - s, y: o.y + s, z: o.z + 0 }, + { x: o.x - s, y: o.y + s, z: o.z - s }, + // Middle + { x: o.x + s, y: o.y + 0, z: o.z + s }, + { x: o.x + s, y: o.y + 0, z: o.z - s }, + { x: o.x - s, y: o.y + 0, z: o.z + s }, + { x: o.x - s, y: o.y + 0, z: o.z - s } + ]; +} + + + +// Helper to optimize models by merging duplicate vertices within a threshold, +// and removing all polys that share the same vertices. +// Directly mutates the model. +function optimizeModel(model, threshold=0.0001) { + const { vertices, polys } = model; + + const compareVertices = (v1, v2) => ( + Math.abs(v1.x - v2.x) < threshold && + Math.abs(v1.y - v2.y) < threshold && + Math.abs(v1.z - v2.z) < threshold + ); + + const comparePolys = (p1, p2) => { + const v1 = p1.vIndexes; + const v2 = p2.vIndexes; + return ( + ( + v1[0] === v2[0] || + v1[0] === v2[1] || + v1[0] === v2[2] || + v1[0] === v2[3] + ) && ( + v1[1] === v2[0] || + v1[1] === v2[1] || + v1[1] === v2[2] || + v1[1] === v2[3] + ) && ( + v1[2] === v2[0] || + v1[2] === v2[1] || + v1[2] === v2[2] || + v1[2] === v2[3] + ) && ( + v1[3] === v2[0] || + v1[3] === v2[1] || + v1[3] === v2[2] || + v1[3] === v2[3] + ) + ); + }; + + + vertices.forEach((v, i) => { + v.originalIndexes = [i]; + }); + + for (let i=vertices.length-1; i>=0; i--) { + for (let ii=i-1; ii>=0; ii--) { + const v1 = vertices[i]; + const v2 = vertices[ii]; + if (compareVertices(v1, v2)) { + vertices.splice(i, 1); + v2.originalIndexes.push(...v1.originalIndexes); + break; + } + } + } + + vertices.forEach((v, i) => { + polys.forEach(p => { + p.vIndexes.forEach((vi, ii, arr) => { + const vo = v.originalIndexes; + if (vo.includes(vi)) { + arr[ii] = i; + } + }); + }); + }); + + polys.forEach(p => { + const vi = p.vIndexes; + p.sum = vi[0] + vi[1] + vi[2] + vi[3]; + }); + polys.sort((a, b) => b.sum - a.sum); + + // Assumptions: + // 1. Each poly will either have no duplicates or 1 duplicate. + // 2. If two polys are equal, they are both hidden (two cubes touching), + // therefore both can be removed. + for (let i=polys.length-1; i>=0; i--) { + for (let ii=i-1; ii>=0; ii--) { + const p1 = polys[i]; + const p2 = polys[ii]; + if (p1.sum !== p2.sum) break; + if (comparePolys(p1, p2)) { + polys.splice(i, 1); + polys.splice(ii, 1); + i--; + break; + } + } + } + + return model; +} + + + + + +// Entity.js +// ============================================================================ +// ============================================================================ + +class Entity { + constructor({ model, color, wireframe=false }) { + const vertices = cloneVertices(model.vertices); + const shadowVertices = cloneVertices(model.vertices); + const colorHex = colorToHex(color); + const darkColorHex = shadeColor(color, 0.4); + + const polys = model.polys.map(p => ({ + vertices: p.vIndexes.map(vIndex => vertices[vIndex]), + color: color, // custom rgb color object + wireframe: wireframe, + strokeWidth: wireframe ? 2 : 0, // Set to non-zero value to draw stroke + strokeColor: colorHex, // must be a CSS color string + strokeColorDark: darkColorHex, // must be a CSS color string + depth: 0, + middle: { x: 0, y: 0, z: 0 }, + normalWorld: { x: 0, y: 0, z: 0 }, + normalCamera: { x: 0, y: 0, z: 0 } + })); + + const shadowPolys = model.polys.map(p => ({ + vertices: p.vIndexes.map(vIndex => shadowVertices[vIndex]), + wireframe: wireframe, + normalWorld: { x: 0, y: 0, z: 0 } + })); + + this.projected = {}; // Will store 2D projected data + this.model = model; + this.vertices = vertices; + this.polys = polys; + this.shadowVertices = shadowVertices; + this.shadowPolys = shadowPolys; + this.reset(); + } + + // Better names: resetEntity, resetTransform, resetEntityTransform + reset() { + this.x = 0; + this.y = 0; + this.z = 0; + this.xD = 0; + this.yD = 0; + this.zD = 0; + + this.rotateX = 0; + this.rotateY = 0; + this.rotateZ = 0; + this.rotateXD = 0; + this.rotateYD = 0; + this.rotateZD = 0; + + this.scaleX = 1; + this.scaleY = 1; + this.scaleZ = 1; + + this.projected.x = 0; + this.projected.y = 0; + } + + transform() { + transformVertices( + this.model.vertices, + this.vertices, + this.x, + this.y, + this.z, + this.rotateX, + this.rotateY, + this.rotateZ, + this.scaleX, + this.scaleY, + this.scaleZ + ); + + copyVerticesTo(this.vertices, this.shadowVertices); + } + + // Projects origin point, stored as `projected` property. + project() { + projectVertexTo(this, this.projected); + } +} + + + + + +// getTarget.js +// ============================================================================ +// ============================================================================ + +// All active targets +const targets = []; + +// Pool target instances by color, using a Map. +// keys are color objects, and values are arrays of targets. +// Also pool wireframe instances separately. +const targetPool = new Map(allColors.map(c=>([c, []]))); +const targetWireframePool = new Map(allColors.map(c=>([c, []]))); + + + +const getTarget = (() => { + + const slowmoSpawner = makeSpawner({ + chance: 0.5, + cooldownPerSpawn: 10000, + maxSpawns: 1 + }); + + let doubleStrong = false; + const strongSpawner = makeSpawner({ + chance: 0.3, + cooldownPerSpawn: 12000, + maxSpawns: 1 + }); + + const spinnerSpawner = makeSpawner({ + chance: 0.1, + cooldownPerSpawn: 10000, + maxSpawns: 1 + }); + + // Cached array instances, no need to allocate every time. + const axisOptions = [ + ['x', 'y'], + ['y', 'z'], + ['z', 'x'] + ]; + + function getTargetOfStyle(color, wireframe) { + const pool = wireframe ? targetWireframePool : targetPool; + let target = pool.get(color).pop(); + if (!target) { + target = new Entity({ + model: optimizeModel(makeRecursiveCubeModel({ + recursionLevel: 1, + splitFn: mengerSpongeSplit, + scale: targetRadius + })), + color: color, + wireframe: wireframe + }); + + // Init any properties that will be used. + // These will not be automatically reset when recycled. + target.color = color; + target.wireframe = wireframe; + // Some properties don't have their final value yet. + // Initialize with any value of the right type. + target.hit = false; + target.maxHealth = 0; + target.health = 0; + } + return target; + } + + return function getTarget() { + if (doubleStrong && state.game.score <= doubleStrongEnableScore) { + doubleStrong = false; + // Spawner is reset automatically when game resets. + } else if (!doubleStrong && state.game.score > doubleStrongEnableScore) { + doubleStrong = true; + strongSpawner.mutate({ maxSpawns: 2 }); + } + + // Target Parameters + // -------------------------------- + let color = pickOne([BLUE, GREEN, ORANGE]); + let wireframe = false; + let health = 1; + let maxHealth = 3; + const spinner = state.game.cubeCount >= spinnerThreshold && isInGame() && spinnerSpawner.shouldSpawn(); + + // Target Parameter Overrides + // -------------------------------- + if (state.game.cubeCount >= slowmoThreshold && slowmoSpawner.shouldSpawn()) { + color = BLUE; + wireframe = true; + } + else if (state.game.cubeCount >= strongThreshold && strongSpawner.shouldSpawn()) { + color = PINK; + health = 3; + } + + // Target Creation + // -------------------------------- + const target = getTargetOfStyle(color, wireframe); + target.hit = false; + target.maxHealth = maxHealth; + target.health = health; + updateTargetHealth(target, 0); + + const spinSpeeds = [ + Math.random() * 0.1 - 0.05, + Math.random() * 0.1 - 0.05 + ]; + + if (spinner) { + // Ends up spinning a random axis + spinSpeeds[0] = -0.25; + spinSpeeds[1] = 0; + target.rotateZ = random(0, TAU); + } + + const axes = pickOne(axisOptions); + + spinSpeeds.forEach((spinSpeed, i) => { + switch (axes[i]) { + case 'x': + target.rotateXD = spinSpeed; + break; + case 'y': + target.rotateYD = spinSpeed; + break; + case 'z': + target.rotateZD = spinSpeed; + break; + } + }); + + return target; + } +})(); + + +const updateTargetHealth = (target, healthDelta) => { + target.health += healthDelta; + // Only update stroke on non-wireframe targets. + // Showing "glue" is a temporary attempt to display health. For now, there's + // no reason to have wireframe targets with high health, so we're fine. + if (!target.wireframe) { + const strokeWidth = target.health - 1; + const strokeColor = makeTargetGlueColor(target); + for (let p of target.polys) { + p.strokeWidth = strokeWidth; + p.strokeColor = strokeColor; + } + } +}; + + +const returnTarget = target => { + target.reset(); + const pool = target.wireframe ? targetWireframePool : targetPool; + pool.get(target.color).push(target); +}; + + +function resetAllTargets() { + while(targets.length) { + returnTarget(targets.pop()); + } +} + + + + + +// createBurst.js +// ============================================================================ +// ============================================================================ + +// Track all active fragments +const frags = []; +// Pool inactive fragments by color, using a Map. +// keys are color objects, and values are arrays of fragments. +// // Also pool wireframe instances separately. +const fragPool = new Map(allColors.map(c=>([c, []]))); +const fragWireframePool = new Map(allColors.map(c=>([c, []]))); + + +const createBurst = (() => { + // Precompute some private data to be reused for all bursts. + const basePositions = mengerSpongeSplit({ x:0, y:0, z:0 }, fragRadius*2); + const positions = cloneVertices(basePositions); + const prevPositions = cloneVertices(basePositions); + const velocities = cloneVertices(basePositions); + + const basePositionNormals = basePositions.map(normalize); + const positionNormals = cloneVertices(basePositionNormals); + + + const fragCount = basePositions.length; + + function getFragForTarget(target) { + const pool = target.wireframe ? fragWireframePool : fragPool; + let frag = pool.get(target.color).pop(); + if (!frag) { + frag = new Entity({ + model: makeCubeModel({ scale: fragRadius }), + color: target.color, + wireframe: target.wireframe + }); + frag.color = target.color; + frag.wireframe = target.wireframe; + } + return frag; + } + + return (target, force=1) => { + // Calculate fragment positions, and what would have been the previous positions + // when still a part of the larger target. + transformVertices( + basePositions, positions, + target.x, target.y, target.z, + target.rotateX, target.rotateY, target.rotateZ, + 1, 1, 1 + ); + transformVertices( + basePositions, prevPositions, + target.x - target.xD, target.y - target.yD, target.z - target.zD, + target.rotateX - target.rotateXD, target.rotateY - target.rotateYD, target.rotateZ - target.rotateZD, + 1, 1, 1 + ); + + // Compute velocity of each fragment, based on previous positions. + // Will write to `velocities` array. + for (let i=0; i { + frag.reset(); + const pool = frag.wireframe ? fragWireframePool : fragPool; + pool.get(frag.color).push(frag); +}; + + + + + +// sparks.js +// ============================================================================ +// ============================================================================ + +const sparks = []; +const sparkPool = []; + + +function addSpark(x, y, xD, yD) { + const spark = sparkPool.pop() || {}; + + spark.x = x + xD * 0.5; + spark.y = y + yD * 0.5; + spark.xD = xD; + spark.yD = yD; + spark.life = random(200, 300); + spark.maxLife = spark.life; + + sparks.push(spark); + + return spark; +} + + +// Spherical spark burst +function sparkBurst(x, y, count, maxSpeed) { + const angleInc = TAU / count; + for (let i=0; i { + if (Math.random() < 0.4) { + projectVertex(v); + addSpark( + v.x, + v.y, + random(-12, 12), + random(-12, 12) + ); + } + }); +} + +function returnSpark(spark) { + sparkPool.push(spark); +} + + + + + +// hud.js +// ============================================================================ +// ============================================================================ + +const hudContainerNode = $('.hud'); + +function setHudVisibility(visible) { + if (visible) { + hudContainerNode.style.display = 'block'; + } else { + hudContainerNode.style.display = 'none'; + } +} + + +/////////// +// Score // +/////////// +const scoreNode = $('.score-lbl'); +const cubeCountNode = $('.cube-count-lbl'); + +function renderScoreHud() { + if (isCasualGame()) { + scoreNode.style.display = 'none'; + cubeCountNode.style.opacity = 1; + } else { + scoreNode.innerText = `SCORE: ${state.game.score}`; + scoreNode.style.display = 'block'; + cubeCountNode.style.opacity = 0.65 ; + } + cubeCountNode.innerText = `CUBES SMASHED: ${state.game.cubeCount}`; +} + +renderScoreHud(); + + +////////////////// +// Pause Button // +////////////////// + +handlePointerDown($('.pause-btn'), () => pauseGame()); + + +//////////////////// +// Slow-Mo Status // +//////////////////// + +const slowmoNode = $('.slowmo'); +const slowmoBarNode = $('.slowmo__bar'); + +function renderSlowmoStatus(percentRemaining) { + slowmoNode.style.opacity = percentRemaining === 0 ? 0 : 1; + slowmoBarNode.style.transform = `scaleX(${percentRemaining.toFixed(3)})`; +} + + + + + +// menus.js +// ============================================================================ +// ============================================================================ + +// Top-level menu containers +const menuContainerNode = $('.menus'); +const menuMainNode = $('.menu--main'); +const menuPauseNode = $('.menu--pause'); +const menuScoreNode = $('.menu--score'); + +const finalScoreLblNode = $('.final-score-lbl'); +const highScoreLblNode = $('.high-score-lbl'); + + + +function showMenu(node) { + node.classList.add('active'); +} + +function hideMenu(node) { + node.classList.remove('active'); +} + +function renderMenus() { + hideMenu(menuMainNode); + hideMenu(menuPauseNode); + hideMenu(menuScoreNode); + + switch (state.menus.active) { + case MENU_MAIN: + showMenu(menuMainNode); + break; + case MENU_PAUSE: + showMenu(menuPauseNode); + break; + case MENU_SCORE: + finalScoreLblNode.textContent = formatNumber(state.game.score); + if (isNewHighScore()) { + highScoreLblNode.textContent = 'New High Score!'; + } else { + highScoreLblNode.textContent = `High Score: ${formatNumber(getHighScore())}`; + } + showMenu(menuScoreNode); + break; + } + + setHudVisibility(!isMenuVisible()); + menuContainerNode.classList.toggle('has-active', isMenuVisible()); + menuContainerNode.classList.toggle('interactive-mode', isMenuVisible() && pointerIsDown); +} + +renderMenus(); + + + +//////////////////// +// Button Actions // +//////////////////// + +// Main Menu +handleClick($('.play-normal-btn'), () => { + setGameMode(GAME_MODE_RANKED); + setActiveMenu(null); + resetGame(); +}); + +handleClick($('.play-casual-btn'), () => { + setGameMode(GAME_MODE_CASUAL); + setActiveMenu(null); + resetGame(); +}); + +// Pause Menu +handleClick($('.resume-btn'), () => resumeGame()); +handleClick($('.menu-btn--pause'), () => setActiveMenu(MENU_MAIN)); + +// Score Menu +handleClick($('.play-again-btn'), () => { + setActiveMenu(null); + resetGame(); +}); + +handleClick($('.menu-btn--score'), () => setActiveMenu(MENU_MAIN)); + + + + +//////////////////// +// Button Actions // +//////////////////// + +// Main Menu +handleClick($('.play-normal-btn'), () => { + setGameMode(GAME_MODE_RANKED); + setActiveMenu(null); + resetGame(); +}); + +handleClick($('.play-casual-btn'), () => { + setGameMode(GAME_MODE_CASUAL); + setActiveMenu(null); + resetGame(); +}); + +// Pause Menu +handleClick($('.resume-btn'), () => resumeGame()); +handleClick($('.menu-btn--pause'), () => setActiveMenu(MENU_MAIN)); + +// Score Menu +handleClick($('.play-again-btn'), () => { + setActiveMenu(null); + resetGame(); +}); + +handleClick($('.menu-btn--score'), () => setActiveMenu(MENU_MAIN)); + + + + + +// actions.js +// ============================================================================ +// ============================================================================ + +////////////////// +// MENU ACTIONS // +////////////////// + +function setActiveMenu(menu) { + state.menus.active = menu; + renderMenus(); +} + + +///////////////// +// HUD ACTIONS // +///////////////// + +function setScore(score) { + state.game.score = score; + renderScoreHud(); +} + +function incrementScore(inc) { + if (isInGame()) { + state.game.score += inc; + if (state.game.score < 0) { + state.game.score = 0; + } + renderScoreHud(); + } +} + +function setCubeCount(count) { + state.game.cubeCount = count; + renderScoreHud(); +} + +function incrementCubeCount(inc) { + if (isInGame()) { + state.game.cubeCount += inc; + renderScoreHud(); + } +} + + +////////////////// +// GAME ACTIONS // +////////////////// + +function setGameMode(mode) { + state.game.mode = mode; +} + +function resetGame() { + resetAllTargets(); + state.game.time = 0; + resetAllCooldowns(); + setScore(0); + setCubeCount(0); + spawnTime = getSpawnDelay(); +} + +function pauseGame() { + isInGame() && setActiveMenu(MENU_PAUSE); +} + +function resumeGame() { + isPaused() && setActiveMenu(null); +} + +function endGame() { + handleCanvasPointerUp(); + if (isNewHighScore()) { + setHighScore(state.game.score); + } + setActiveMenu(MENU_SCORE); +} + + + +//////////////////////// +// KEYBOARD SHORTCUTS // +//////////////////////// + +window.addEventListener('keydown', event => { + if (event.key === 'p') { + isPaused() ? resumeGame() : pauseGame(); + } +}); + + + + + + +// tick.js +// ============================================================================ +// ============================================================================ + + +let spawnTime = 0; +const maxSpawnX = 450; +const pointerDelta = { x: 0, y: 0 }; +const pointerDeltaScaled = { x: 0, y: 0 }; + +// Temp slowmo state. Should be relocated once this stabilizes. +const slowmoDuration = 1500; +let slowmoRemaining = 0; +let spawnExtra = 0; +const spawnExtraDelay = 300; +let targetSpeed = 1; + + +function tick(width, height, simTime, simSpeed, lag) { + PERF_START('frame'); + PERF_START('tick'); + + state.game.time += simTime; + + if (slowmoRemaining > 0) { + slowmoRemaining -= simTime; + if (slowmoRemaining < 0) { + slowmoRemaining = 0; + } + targetSpeed = pointerIsDown ? 0.075 : 0.3; + } else { + const menuPointerDown = isMenuVisible() && pointerIsDown; + targetSpeed = menuPointerDown ? 0.025 : 1; + } + + renderSlowmoStatus(slowmoRemaining / slowmoDuration); + + gameSpeed += (targetSpeed - gameSpeed) / 22 * lag; + gameSpeed = clamp(gameSpeed, 0, 1); + + const centerX = width / 2; + const centerY = height / 2; + + const simAirDrag = 1 - (airDrag * simSpeed); + const simAirDragSpark = 1 - (airDragSpark * simSpeed); + + // Pointer Tracking + // ------------------- + + // Compute speed and x/y deltas. + // There is also a "scaled" variant taking game speed into account. This serves two purposes: + // - Lag won't create large spikes in speed/deltas + // - In slow mo, speed is increased proportionately to match "reality". Without this boost, + // it feels like your actions are dampened in slow mo. + const forceMultiplier = 1 / (simSpeed * 0.75 + 0.25); + pointerDelta.x = 0; + pointerDelta.y = 0; + pointerDeltaScaled.x = 0; + pointerDeltaScaled.y = 0; + const lastPointer = touchPoints[touchPoints.length - 1]; + + if (pointerIsDown && lastPointer && !lastPointer.touchBreak) { + pointerDelta.x = (pointerScene.x - lastPointer.x); + pointerDelta.y = (pointerScene.y - lastPointer.y); + pointerDeltaScaled.x = pointerDelta.x * forceMultiplier; + pointerDeltaScaled.y = pointerDelta.y * forceMultiplier; + } + const pointerSpeed = Math.hypot(pointerDelta.x, pointerDelta.y); + const pointerSpeedScaled = pointerSpeed * forceMultiplier; + + // Track points for later calculations, including drawing trail. + touchPoints.forEach(p => p.life -= simTime); + + if (pointerIsDown) { + touchPoints.push({ + x: pointerScene.x, + y: pointerScene.y, + life: touchPointLife + }); + } + + while (touchPoints[0] && touchPoints[0].life <= 0) { + touchPoints.shift(); + } + + + // Entity Manipulation + // -------------------- + PERF_START('entities'); + + // Spawn targets + spawnTime -= simTime; + if (spawnTime <= 0) { + if (spawnExtra > 0) { + spawnExtra--; + spawnTime = spawnExtraDelay; + } else { + spawnTime = getSpawnDelay(); + } + const target = getTarget(); + const spawnRadius = Math.min(centerX * 0.8, maxSpawnX); + target.x = (Math.random() * spawnRadius * 2 - spawnRadius); + target.y = centerY + targetHitRadius * 2; + target.z = (Math.random() * targetRadius*2 - targetRadius); + target.xD = Math.random() * (target.x * -2 / 120); + target.yD = -20; + targets.push(target); + } + + // Animate targets and remove when offscreen + const leftBound = -centerX + targetRadius; + const rightBound = centerX - targetRadius; + const ceiling = -centerY - 120; + const boundDamping = 0.4; + + targetLoop: + for (let i = targets.length - 1; i >= 0; i--) { + const target = targets[i]; + target.x += target.xD * simSpeed; + target.y += target.yD * simSpeed; + + if (target.y < ceiling) { + target.y = ceiling; + target.yD = 0; + } + + if (target.x < leftBound) { + target.x = leftBound; + target.xD *= -boundDamping; + } else if (target.x > rightBound) { + target.x = rightBound; + target.xD *= -boundDamping; + } + + if (target.z < backboardZ) { + target.z = backboardZ; + target.zD *= -boundDamping; + } + + target.yD += gravity * simSpeed; + target.rotateX += target.rotateXD * simSpeed; + target.rotateY += target.rotateYD * simSpeed; + target.rotateZ += target.rotateZD * simSpeed; + target.transform(); + target.project(); + + // Remove if offscreen + if (target.y > centerY + targetHitRadius * 2) { + targets.splice(i, 1); + returnTarget(target); + if (isInGame()) { + if (isCasualGame()) { + incrementScore(-25); + } else { + endGame(); + } + } + continue; + } + + + // If pointer is moving really fast, we want to hittest multiple points along the path. + // We can't use scaled pointer speed to determine this, since we care about actual screen + // distance covered. + const hitTestCount = Math.ceil(pointerSpeed / targetRadius * 2); + // Start loop at `1` and use `<=` check, so we skip 0% and end up at 100%. + // This omits the previous point position, and includes the most recent. + for (let ii=1; ii<=hitTestCount; ii++) { + const percent = 1 - (ii / hitTestCount); + const hitX = pointerScene.x - pointerDelta.x * percent; + const hitY = pointerScene.y - pointerDelta.y * percent; + const distance = Math.hypot( + hitX - target.projected.x, + hitY - target.projected.y + ); + + if (distance <= targetHitRadius) { + // Hit! (though we don't want to allow hits on multiple sequential frames) + if (!target.hit) { + target.hit = true; + + target.xD += pointerDeltaScaled.x * hitDampening; + target.yD += pointerDeltaScaled.y * hitDampening; + target.rotateXD += pointerDeltaScaled.y * 0.001; + target.rotateYD += pointerDeltaScaled.x * 0.001; + + const sparkSpeed = 7 + pointerSpeedScaled * 0.125; + + if (pointerSpeedScaled > minPointerSpeed) { + target.health--; + incrementScore(10); + + if (target.health <= 0) { + incrementCubeCount(1); + createBurst(target, forceMultiplier); + sparkBurst(hitX, hitY, 8, sparkSpeed); + if (target.wireframe) { + slowmoRemaining = slowmoDuration; + spawnTime = 0; + spawnExtra = 2; + } + targets.splice(i, 1); + returnTarget(target); + } else { + sparkBurst(hitX, hitY, 8, sparkSpeed); + glueShedSparks(target); + updateTargetHealth(target, 0); + } + } else { + incrementScore(5); + sparkBurst(hitX, hitY, 3, sparkSpeed); + } + } + // Break the current loop and continue the outer loop. + // This skips to processing the next target. + continue targetLoop; + } + } + + // This code will only run if target hasn't been "hit". + target.hit = false; + } + + // Animate fragments and remove when offscreen. + const fragBackboardZ = backboardZ + fragRadius; + // Allow fragments to move off-screen to sides for a while, since shadows are still visible. + const fragLeftBound = -width; + const fragRightBound = width; + + for (let i = frags.length - 1; i >= 0; i--) { + const frag = frags[i]; + frag.x += frag.xD * simSpeed; + frag.y += frag.yD * simSpeed; + frag.z += frag.zD * simSpeed; + + frag.xD *= simAirDrag; + frag.yD *= simAirDrag; + frag.zD *= simAirDrag; + + if (frag.y < ceiling) { + frag.y = ceiling; + frag.yD = 0; + } + + if (frag.z < fragBackboardZ) { + frag.z = fragBackboardZ; + frag.zD *= -boundDamping; + } + + frag.yD += gravity * simSpeed; + frag.rotateX += frag.rotateXD * simSpeed; + frag.rotateY += frag.rotateYD * simSpeed; + frag.rotateZ += frag.rotateZD * simSpeed; + frag.transform(); + frag.project(); + + // Removal conditions + if ( + // Bottom of screen + frag.projected.y > centerY + targetHitRadius || + // Sides of screen + frag.projected.x < fragLeftBound || + frag.projected.x > fragRightBound || + // Too close to camera + frag.z > cameraFadeEndZ + ) { + frags.splice(i, 1); + returnFrag(frag); + continue; + } + } + + // 2D sparks + for (let i = sparks.length - 1; i >= 0; i--) { + const spark = sparks[i]; + spark.life -= simTime; + if (spark.life <= 0) { + sparks.splice(i, 1); + returnSpark(spark); + continue; + } + spark.x += spark.xD * simSpeed; + spark.y += spark.yD * simSpeed; + spark.xD *= simAirDragSpark; + spark.yD *= simAirDragSpark; + spark.yD += gravity * simSpeed; + } + + PERF_END('entities'); + + // 3D transforms + // ------------------- + + PERF_START('3D'); + + // Aggregate all scene vertices/polys + allVertices.length = 0; + allPolys.length = 0; + allShadowVertices.length = 0; + allShadowPolys.length = 0; + targets.forEach(entity => { + allVertices.push(...entity.vertices); + allPolys.push(...entity.polys); + allShadowVertices.push(...entity.shadowVertices); + allShadowPolys.push(...entity.shadowPolys); + }); + + frags.forEach(entity => { + allVertices.push(...entity.vertices); + allPolys.push(...entity.polys); + allShadowVertices.push(...entity.shadowVertices); + allShadowPolys.push(...entity.shadowPolys); + }); + + // Scene calculations/transformations + allPolys.forEach(p => computePolyNormal(p, 'normalWorld')); + allPolys.forEach(computePolyDepth); + allPolys.sort((a, b) => b.depth - a.depth); + + // Perspective projection + allVertices.forEach(projectVertex); + + allPolys.forEach(p => computePolyNormal(p, 'normalCamera')); + + PERF_END('3D'); + + PERF_START('shadows'); + + // Rotate shadow vertices to light source perspective + transformVertices( + allShadowVertices, + allShadowVertices, + 0, 0, 0, + TAU/8, 0, 0, + 1, 1, 1 + ); + + allShadowPolys.forEach(p => computePolyNormal(p, 'normalWorld')); + + const shadowDistanceMult = Math.hypot(1, 1); + const shadowVerticesLength = allShadowVertices.length; + for (let i=0; i { + if (p.wireframe) { + ctx.lineWidth = 2; + ctx.beginPath(); + const { vertices } = p; + const vCount = vertices.length; + const firstV = vertices[0]; + ctx.moveTo(firstV.x, firstV.y); + for (let i=1; i { + if (!p.wireframe && p.normalCamera.z < 0) return; + + if (p.strokeWidth !== 0) { + ctx.lineWidth = p.normalCamera.z < 0 ? p.strokeWidth * 0.5 : p.strokeWidth; + ctx.strokeStyle = p.normalCamera.z < 0 ? p.strokeColorDark : p.strokeColor; + } + + const { vertices } = p; + const lastV = vertices[vertices.length - 1]; + const fadeOut = p.middle.z > cameraFadeStartZ; + + if (!p.wireframe) { + const normalLight = p.normalWorld.y * 0.5 + p.normalWorld.z * -0.5; + const lightness = normalLight > 0 + ? 0.1 + : ((normalLight ** 32 - normalLight) / 2) * 0.9 + 0.1; + ctx.fillStyle = shadeColor(p.color, lightness); + } + + // Fade out polys close to camera. `globalAlpha` must be reset later. + if (fadeOut) { + // If polygon gets really close to camera (outside `cameraFadeRange`) the alpha + // can go negative, which has the appearance of alpha = 1. So, we'll clamp it at 0. + ctx.globalAlpha = Math.max(0, 1 - (p.middle.z - cameraFadeStartZ) / cameraFadeRange); + } + + ctx.beginPath(); + ctx.moveTo(lastV.x, lastV.y); + for (let v of vertices) { + ctx.lineTo(v.x, v.y); + } + + if (!p.wireframe) { + ctx.fill(); + } + if (p.strokeWidth !== 0) { + ctx.stroke(); + } + + if (fadeOut) { + ctx.globalAlpha = 1; + } + }); + PERF_END('drawPolys'); + + + PERF_START('draw2D'); + + // 2D Sparks + // --------------- + ctx.strokeStyle = sparkColor; + ctx.lineWidth = sparkThickness; + ctx.beginPath(); + sparks.forEach(spark => { + ctx.moveTo(spark.x, spark.y); + // Shrink sparks to zero length as they die. + // Speed up shrinking as life approaches 0 (root curve). + // Note that sparks already get smaller over time as their speed slows + // down from damping. So this is like a double scale down. To counter this + // a bit and keep the sparks larger for longer, we'll also increase the scale + // a bit after applying the root curve. + const scale = (spark.life / spark.maxLife) ** 0.5 * 1.5; + ctx.lineTo(spark.x - spark.xD*scale, spark.y - spark.yD*scale); + + }); + ctx.stroke(); + + + // Touch Strokes + // --------------- + + ctx.strokeStyle = touchTrailColor; + const touchPointCount = touchPoints.length; + for (let i=1; i 68) { + frameTime = 68; + } + + const halfW = width / 2; + const halfH = height / 2; + + // Convert pointer position from screen to scene coords. + pointerScene.x = pointerScreen.x / viewScale - halfW; + pointerScene.y = pointerScreen.y / viewScale - halfH; + + const lag = frameTime / 16.6667; + const simTime = gameSpeed * frameTime; + const simSpeed = gameSpeed * lag; + tick(width, height, simTime, simSpeed, lag); + + // Auto clear canvas + ctx.clearRect(0, 0, canvas.width, canvas.height); + // Auto scale drawing for high res displays, and incorporate `viewScale`. + // Also shift canvas so (0, 0) is the middle of the screen. + // This just works with 3D perspective projection. + const drawScale = dpr * viewScale; + ctx.scale(drawScale, drawScale); + ctx.translate(halfW, halfH); + draw(ctx, width, height, viewScale); + ctx.setTransform(1, 0, 0, 1, 0, 0); + } + const raf = () => requestAnimationFrame(frameHandler); + // Start loop + raf(); +} + + + + + +// interaction.js +// ============================================================================ +// ============================================================================ + +// Interaction +// ----------------------------- + +function handleCanvasPointerDown(x, y) { + if (!pointerIsDown) { + pointerIsDown = true; + pointerScreen.x = x; + pointerScreen.y = y; + // On when menus are open, point down/up toggles an interactive mode. + // We just need to rerender the menu system for it to respond. + if (isMenuVisible()) renderMenus(); + } +} + +function handleCanvasPointerUp() { + if (pointerIsDown) { + pointerIsDown = false; + touchPoints.push({ + touchBreak: true, + life: touchPointLife + }); + // On when menus are open, point down/up toggles an interactive mode. + // We just need to rerender the menu system for it to respond. + if (isMenuVisible()) renderMenus(); + } +} + +function handleCanvasPointerMove(x, y) { + if (pointerIsDown) { + pointerScreen.x = x; + pointerScreen.y = y; + } +} + + +// Use pointer events if available, otherwise fallback to touch events (for iOS). +if ('PointerEvent' in window) { + canvas.addEventListener('pointerdown', event => { + event.isPrimary && handleCanvasPointerDown(event.clientX, event.clientY); + }); + + canvas.addEventListener('pointerup', event => { + event.isPrimary && handleCanvasPointerUp(); + }); + + canvas.addEventListener('pointermove', event => { + event.isPrimary && handleCanvasPointerMove(event.clientX, event.clientY); + }); + + // We also need to know if the mouse leaves the page. For this game, it's best if that + // cancels a swipe, so essentially acts as a "mouseup" event. + document.body.addEventListener('mouseleave', handleCanvasPointerUp); +} else { + let activeTouchId = null; + canvas.addEventListener('touchstart', event => { + if (!pointerIsDown) { + const touch = event.changedTouches[0]; + activeTouchId = touch.identifier; + handleCanvasPointerDown(touch.clientX, touch.clientY); + } + }); + canvas.addEventListener('touchend', event => { + for (let touch of event.changedTouches) { + if (touch.identifier === activeTouchId) { + handleCanvasPointerUp(); + break; + } + } + }); + canvas.addEventListener('touchmove', event => { + for (let touch of event.changedTouches) { + if (touch.identifier === activeTouchId) { + handleCanvasPointerMove(touch.clientX, touch.clientY); + event.preventDefault(); + break; + } + } + }, { passive: false }); +} + + + + + +// index.js +// ============================================================================ +// ============================================================================ + +setupCanvases(); diff --git a/Games/Minesweeper/README.md b/Games/Minesweeper/README.md index 5ad1147dfe..ed61af4c8f 100644 --- a/Games/Minesweeper/README.md +++ b/Games/Minesweeper/README.md @@ -1,43 +1,43 @@ -# Minesweeper ---- -
- -## **Description ๐Ÿ“ƒ** -Minesweeper is a classic computer game where the player must uncover squares on a grid while avoiding hidden mines. -- - -## **functionalities ๐ŸŽฎ** -The objective of the game is to clear a rectangular grid that contains hidden mines without detonating any of them. -- -
- -## **How to play? ๐Ÿ•น๏ธ** --The game is played on a grid of squares. Each square can be in one of - three states: uncovered, covered, or flagged. - --The grid contains hidden mines randomly distributed across the squares. - --The player's task is to uncover all the squares that do not contain mines. - --When a square is uncovered, it reveals a number indicating the total number of mines in its adjacent squares (including diagonals). If a square has no adjacent mines, it automatically uncovers all neighboring squares. - --If a player uncovers a square containing a mine, the game ends, and they lose. The position of the mines is revealed, and the player has the option to start a new game. - --To help identify suspected mine locations, the player can place a flag on a covered square they believe contains a mine. - --The game is won when all non-mine squares are uncovered. The player can then start a new game or continue playing to achieve faster completion times. - - -
- -## **Screenshots ๐Ÿ“ธ** - -
- -![image](Minesweeper.png) - - -
- -## **Working video ๐Ÿ“น** - +# Minesweeper +--- +
+ +## **Description ๐Ÿ“ƒ** +Minesweeper is a classic computer game where the player must uncover squares on a grid while avoiding hidden mines. +- + +## **functionalities ๐ŸŽฎ** +The objective of the game is to clear a rectangular grid that contains hidden mines without detonating any of them. +- +
+ +## **How to play? ๐Ÿ•น๏ธ** +-The game is played on a grid of squares. Each square can be in one of + three states: uncovered, covered, or flagged. + +-The grid contains hidden mines randomly distributed across the squares. + +-The player's task is to uncover all the squares that do not contain mines. + +-When a square is uncovered, it reveals a number indicating the total number of mines in its adjacent squares (including diagonals). If a square has no adjacent mines, it automatically uncovers all neighboring squares. + +-If a player uncovers a square containing a mine, the game ends, and they lose. The position of the mines is revealed, and the player has the option to start a new game. + +-To help identify suspected mine locations, the player can place a flag on a covered square they believe contains a mine. + +-The game is won when all non-mine squares are uncovered. The player can then start a new game or continue playing to achieve faster completion times. + + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ +![image](Minesweeper.png) + + +
+ +## **Working video ๐Ÿ“น** + diff --git a/Games/Minesweeper/index.html b/Games/Minesweeper/index.html index 99c3ba4623..3f2a5b81f9 100644 --- a/Games/Minesweeper/index.html +++ b/Games/Minesweeper/index.html @@ -1,22 +1,22 @@ - - - - - - Minesweeper - - - - - - -
-

Mines: 0

-
-
- - + + + + + + Minesweeper + + + + + + +
+

Mines: 0

+
+
+ + \ No newline at end of file diff --git a/Games/Minesweeper/script.js b/Games/Minesweeper/script.js index 2f3654b3c8..7d4598d890 100644 --- a/Games/Minesweeper/script.js +++ b/Games/Minesweeper/script.js @@ -1,164 +1,164 @@ -var board = []; -var rows = 8; -var columns = 8; -var minesCount = 10; -var minesLocation = []; -var tilesClicked = 0; -var flagEnabled = false; -var gameOver = false; -window.onload = function() { - startGame(); -} -function setMines() { - - - let minesLeft = minesCount; - while (minesLeft > 0) { - let r = Math.floor(Math.random() * rows); - let c = Math.floor(Math.random() * columns); - let id = r.toString() + "-" + c.toString(); - - if (!minesLocation.includes(id)) { - minesLocation.push(id); - minesLeft -= 1; - } - } -} - - -function startGame() { - document.getElementById("mines-count").innerText = minesCount; - document.getElementById("flag-button").addEventListener("click", setFlag); - setMines(); -for (let r = 0; r < rows; r++) { - let row = []; - for (let c = 0; c < columns; c++) { - let tile = document.createElement("div"); - tile.id = r.toString() + "-" + c.toString(); - tile.addEventListener("click", clickTile); - document.getElementById("board").append(tile); - row.push(tile); - } - board.push(row); - } - -} - -function setFlag() { - if (flagEnabled) { - flagEnabled = false; - document.getElementById("flag-button").style.backgroundColor = "lightgray"; - } - else { - flagEnabled = true; - document.getElementById("flag-button").style.backgroundColor = "darkgray"; - } -} - -function clickTile() { - if (gameOver || this.classList.contains("tile-clicked")) { - return; - } - - let tile = this; - if (flagEnabled) { - if (tile.innerText == "") { - tile.innerText = "๐Ÿšฉ"; - } - else if (tile.innerText == "๐Ÿšฉ") { - tile.innerText = ""; - } - return; - } - - if (minesLocation.includes(tile.id)) { - // alert("GAME OVER"); - gameOver = true; - revealMines(); - return; - } - - - let coords = tile.id.split("-"); // "0-0" -> ["0", "0"] - let r = parseInt(coords[0]); - let c = parseInt(coords[1]); - checkMine(r, c); - -} - -function revealMines() { - for (let r= 0; r < rows; r++) { - for (let c = 0; c < columns; c++) { - let tile = board[r][c]; - if (minesLocation.includes(tile.id)) { - tile.innerText = "๐Ÿ’ฃ"; - tile.style.backgroundColor = "red"; - } - } - } -} - -function checkMine(r, c) { - if (r < 0 || r >= rows || c < 0 || c >= columns) { - return; - } - if (board[r][c].classList.contains("tile-clicked")) { - return; - } - - board[r][c].classList.add("tile-clicked"); - tilesClicked += 1; - - let minesFound = 0; - - - minesFound += checkTile(r-1, c-1); - minesFound += checkTile(r-1, c); - minesFound += checkTile(r-1, c+1); - - - minesFound += checkTile(r, c-1); - minesFound += checkTile(r, c+1); - - - minesFound += checkTile(r+1, c-1); - minesFound += checkTile(r+1, c); - minesFound += checkTile(r+1, c+1); - - if (minesFound > 0) { - board[r][c].innerText = minesFound; - board[r][c].classList.add("x" + minesFound.toString()); - } - else { - - checkMine(r-1, c-1); - checkMine(r-1, c); - checkMine(r-1, c+1); - - - checkMine(r, c-1); - checkMine(r, c+1); - - - checkMine(r+1, c-1); - checkMine(r+1, c); - checkMine(r+1, c+1); - } - - if (tilesClicked == rows * columns - minesCount) { - document.getElementById("mines-count").innerText = "Cleared"; - gameOver = true; - } - -} - - -function checkTile(r, c) { - if (r < 0 || r >= rows || c < 0 || c >= columns) { - return 0; - } - if (minesLocation.includes(r.toString() + "-" + c.toString())) { - return 1; - } - return 0; +var board = []; +var rows = 8; +var columns = 8; +var minesCount = 10; +var minesLocation = []; +var tilesClicked = 0; +var flagEnabled = false; +var gameOver = false; +window.onload = function() { + startGame(); +} +function setMines() { + + + let minesLeft = minesCount; + while (minesLeft > 0) { + let r = Math.floor(Math.random() * rows); + let c = Math.floor(Math.random() * columns); + let id = r.toString() + "-" + c.toString(); + + if (!minesLocation.includes(id)) { + minesLocation.push(id); + minesLeft -= 1; + } + } +} + + +function startGame() { + document.getElementById("mines-count").innerText = minesCount; + document.getElementById("flag-button").addEventListener("click", setFlag); + setMines(); +for (let r = 0; r < rows; r++) { + let row = []; + for (let c = 0; c < columns; c++) { + let tile = document.createElement("div"); + tile.id = r.toString() + "-" + c.toString(); + tile.addEventListener("click", clickTile); + document.getElementById("board").append(tile); + row.push(tile); + } + board.push(row); + } + +} + +function setFlag() { + if (flagEnabled) { + flagEnabled = false; + document.getElementById("flag-button").style.backgroundColor = "lightgray"; + } + else { + flagEnabled = true; + document.getElementById("flag-button").style.backgroundColor = "darkgray"; + } +} + +function clickTile() { + if (gameOver || this.classList.contains("tile-clicked")) { + return; + } + + let tile = this; + if (flagEnabled) { + if (tile.innerText == "") { + tile.innerText = "๐Ÿšฉ"; + } + else if (tile.innerText == "๐Ÿšฉ") { + tile.innerText = ""; + } + return; + } + + if (minesLocation.includes(tile.id)) { + // alert("GAME OVER"); + gameOver = true; + revealMines(); + return; + } + + + let coords = tile.id.split("-"); // "0-0" -> ["0", "0"] + let r = parseInt(coords[0]); + let c = parseInt(coords[1]); + checkMine(r, c); + +} + +function revealMines() { + for (let r= 0; r < rows; r++) { + for (let c = 0; c < columns; c++) { + let tile = board[r][c]; + if (minesLocation.includes(tile.id)) { + tile.innerText = "๐Ÿ’ฃ"; + tile.style.backgroundColor = "red"; + } + } + } +} + +function checkMine(r, c) { + if (r < 0 || r >= rows || c < 0 || c >= columns) { + return; + } + if (board[r][c].classList.contains("tile-clicked")) { + return; + } + + board[r][c].classList.add("tile-clicked"); + tilesClicked += 1; + + let minesFound = 0; + + + minesFound += checkTile(r-1, c-1); + minesFound += checkTile(r-1, c); + minesFound += checkTile(r-1, c+1); + + + minesFound += checkTile(r, c-1); + minesFound += checkTile(r, c+1); + + + minesFound += checkTile(r+1, c-1); + minesFound += checkTile(r+1, c); + minesFound += checkTile(r+1, c+1); + + if (minesFound > 0) { + board[r][c].innerText = minesFound; + board[r][c].classList.add("x" + minesFound.toString()); + } + else { + + checkMine(r-1, c-1); + checkMine(r-1, c); + checkMine(r-1, c+1); + + + checkMine(r, c-1); + checkMine(r, c+1); + + + checkMine(r+1, c-1); + checkMine(r+1, c); + checkMine(r+1, c+1); + } + + if (tilesClicked == rows * columns - minesCount) { + document.getElementById("mines-count").innerText = "Cleared"; + gameOver = true; + } + +} + + +function checkTile(r, c) { + if (r < 0 || r >= rows || c < 0 || c >= columns) { + return 0; + } + if (minesLocation.includes(r.toString() + "-" + c.toString())) { + return 1; + } + return 0; } \ No newline at end of file diff --git a/Games/Minesweeper/styles.css b/Games/Minesweeper/styles.css index 304bb8432b..da03972784 100644 --- a/Games/Minesweeper/styles.css +++ b/Games/Minesweeper/styles.css @@ -1,97 +1,97 @@ -body { - font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; - font-weight: bold; - text-align: center; - margin: 0; - padding: 0; - background-image: url("Minesweeper1.png"); - background-size: cover; - background-repeat: no-repeat; - background-attachment: fixed; - background-position: center; -} -h1{ - position: absolute; - color: rgb(252, 252, 4); - top: 80%; - left: 53%; - transform: translate(-80%, -53%); - - -} -#board { - width: 400px; - height: 400px; - border: 10px solid darkgray; - background-color: lightgray; - - margin: auto; - display: flex; - flex-wrap: wrap; - vertical-align: middle; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); -} - -#board div { - width: 48px; - height: 48px; - border: 1px solid whitesmoke; - position: center; - /* text */ - font-size: 30px; - display: flex; - justify-content: center; - align-items: center; -} - -.tile-clicked { - background-color: darkgrey; -} - -.x1 { - color: blue; -} - -.x2 { - color: green; -} - -.x3 { - color: red; -} - -.x4 { - color: navy; -} - -.x5 { - color: brown; -} - -.x6 { - color: teal; -} - -.x7 { - color: black; -} - -.x8 { - color: gray; -} - -#flag-button { - width: 100px; - height: 50px; - font-size: 30px; - background-color: lightgray; - border: none; - border-radius: 10px; - position: absolute; - top: 90%; - left: 53%; - transform: translate(-90%, -53%); +body { + font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; + font-weight: bold; + text-align: center; + margin: 0; + padding: 0; + background-image: url("Minesweeper1.png"); + background-size: cover; + background-repeat: no-repeat; + background-attachment: fixed; + background-position: center; +} +h1{ + position: absolute; + color: rgb(252, 252, 4); + top: 80%; + left: 53%; + transform: translate(-80%, -53%); + + +} +#board { + width: 400px; + height: 400px; + border: 10px solid darkgray; + background-color: lightgray; + + margin: auto; + display: flex; + flex-wrap: wrap; + vertical-align: middle; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} + +#board div { + width: 48px; + height: 48px; + border: 1px solid whitesmoke; + position: center; + /* text */ + font-size: 30px; + display: flex; + justify-content: center; + align-items: center; +} + +.tile-clicked { + background-color: darkgrey; +} + +.x1 { + color: blue; +} + +.x2 { + color: green; +} + +.x3 { + color: red; +} + +.x4 { + color: navy; +} + +.x5 { + color: brown; +} + +.x6 { + color: teal; +} + +.x7 { + color: black; +} + +.x8 { + color: gray; +} + +#flag-button { + width: 100px; + height: 50px; + font-size: 30px; + background-color: lightgray; + border: none; + border-radius: 10px; + position: absolute; + top: 90%; + left: 53%; + transform: translate(-90%, -53%); } \ No newline at end of file diff --git a/Games/Modulo_Game/about.css b/Games/Modulo_Game/about.css index c8dccb47f0..087e81a852 100644 --- a/Games/Modulo_Game/about.css +++ b/Games/Modulo_Game/about.css @@ -1,86 +1,86 @@ -body { - font-family: 'Arial', sans-serif; - line-height: 1.6; - margin: 0; - padding: 0; - background: #f4f4f4; -} - -header { - background: #333; - color: #fff; - padding: 1rem 0; - text-align: center; -} - -header h1 { - margin: 0; - font-size: 2.5rem; -} - -nav ul { - list-style: none; - padding: 0; -} - -nav ul li { - display: inline; - margin: 0 10px; -} - -nav ul li a { - color: #fff; - text-decoration: none; -} - -nav ul li a.active { - text-decoration: underline; -} - -main { - padding: 20px; - max-width: 800px; - margin: 20px auto; - background: #fff; - box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); -} - -.about { - text-align: center; -} - -.about h2 { - font-size: 2rem; - margin-bottom: 1rem; -} - -.team { - display: flex; - justify-content: space-around; - flex-wrap: wrap; -} - -.team-member { - text-align: center; - margin: 20px; -} - -.team-member img { - border-radius: 50%; - width: 150px; - height: 150px; -} - -.team-member h4 { - margin: 10px 0 5px; -} - -footer { - text-align: center; - padding: 10px 0; - background: #333; - color: #fff; - position: fixed; - width: 100%; - bottom: 0; -} +body { + font-family: 'Arial', sans-serif; + line-height: 1.6; + margin: 0; + padding: 0; + background: #f4f4f4; +} + +header { + background: #333; + color: #fff; + padding: 1rem 0; + text-align: center; +} + +header h1 { + margin: 0; + font-size: 2.5rem; +} + +nav ul { + list-style: none; + padding: 0; +} + +nav ul li { + display: inline; + margin: 0 10px; +} + +nav ul li a { + color: #fff; + text-decoration: none; +} + +nav ul li a.active { + text-decoration: underline; +} + +main { + padding: 20px; + max-width: 800px; + margin: 20px auto; + background: #fff; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); +} + +.about { + text-align: center; +} + +.about h2 { + font-size: 2rem; + margin-bottom: 1rem; +} + +.team { + display: flex; + justify-content: space-around; + flex-wrap: wrap; +} + +.team-member { + text-align: center; + margin: 20px; +} + +.team-member img { + border-radius: 50%; + width: 150px; + height: 150px; +} + +.team-member h4 { + margin: 10px 0 5px; +} + +footer { + text-align: center; + padding: 10px 0; + background: #333; + color: #fff; + position: fixed; + width: 100%; + bottom: 0; +} diff --git a/Games/Modulo_Game/about.html b/Games/Modulo_Game/about.html index 5ecf0dc880..641e0542c6 100644 --- a/Games/Modulo_Game/about.html +++ b/Games/Modulo_Game/about.html @@ -1,82 +1,82 @@ - - - - - - About Us - Modulo Game - - - - -
- -
- -
-
-
-

About Us

-

Welcome to Modulo Game! We are passionate about mathematics and gaming, and we've combined these two interests to create an exciting and educational experience.

-

Our game challenges you to answer as many modulo questions as you can in 60 seconds, testing your speed and accuracy with numbers.

-

Our team is dedicated to providing a fun and engaging way for players of all ages to improve their math skills. Whether you're a student looking to practice, a teacher seeking a classroom activity, or just someone who loves a good challenge, Modulo Game is for you!

-

We believe that learning should be fun, and we're committed to continuously improving our game to make it even more enjoyable and beneficial for our users.

-

Our Mission

-

Our mission is to make math practice enjoyable and accessible to everyone. We aim to create a platform where players can enhance their skills while having a great time.

-

Meet the Team

-
-
-
- Team Member 1 -

Jane Doe

-

Founder & Developer

-
-
-
-
- Team Member 2 -

John Smith

-

Game Designer

-
-
-
-
- Team Member 3 -

Emily Brown

-

Mathematics Expert

-
-
-
-
-
-
- -
-

© 2024 Modulo Game. All rights reserved.

-
- - - - + + + + + + About Us - Modulo Game + + + + +
+ +
+ +
+
+
+

About Us

+

Welcome to Modulo Game! We are passionate about mathematics and gaming, and we've combined these two interests to create an exciting and educational experience.

+

Our game challenges you to answer as many modulo questions as you can in 60 seconds, testing your speed and accuracy with numbers.

+

Our team is dedicated to providing a fun and engaging way for players of all ages to improve their math skills. Whether you're a student looking to practice, a teacher seeking a classroom activity, or just someone who loves a good challenge, Modulo Game is for you!

+

We believe that learning should be fun, and we're committed to continuously improving our game to make it even more enjoyable and beneficial for our users.

+

Our Mission

+

Our mission is to make math practice enjoyable and accessible to everyone. We aim to create a platform where players can enhance their skills while having a great time.

+

Meet the Team

+
+
+
+ Team Member 1 +

Jane Doe

+

Founder & Developer

+
+
+
+
+ Team Member 2 +

John Smith

+

Game Designer

+
+
+
+
+ Team Member 3 +

Emily Brown

+

Mathematics Expert

+
+
+
+
+
+
+ +
+

© 2024 Modulo Game. All rights reserved.

+
+ + + + diff --git a/Games/Morse_Code_Generator/index.html b/Games/Morse_Code_Generator/index.html index 2ca67a6063..67eab782e3 100644 --- a/Games/Morse_Code_Generator/index.html +++ b/Games/Morse_Code_Generator/index.html @@ -1,21 +1,21 @@ - - - - - - - Morse Code Generator - - - -
-

Morse Code Generator

- -
- - - -
- - - + + + + + + + Morse Code Generator + + + +
+

Morse Code Generator

+ +
+ + + +
+ + + diff --git a/Games/Morse_Code_Generator/script.js b/Games/Morse_Code_Generator/script.js index a193264d59..fe52430f7d 100644 --- a/Games/Morse_Code_Generator/script.js +++ b/Games/Morse_Code_Generator/script.js @@ -1,26 +1,26 @@ -document.getElementById('convert-btn').addEventListener('click', function() { - const inputText = document.getElementById('input-text').value.trim().toLowerCase(); - const morseCode = convertToMorse(inputText); - document.getElementById('output-morse').value = morseCode; -}); - -function convertToMorse(text) { - const morseCodeMap = { - 'a': '.-', 'b': '-...', 'c': '-.-.', 'd': '-..', 'e': '.', 'f': '..-.', 'g': '--.', 'h': '....', - 'i': '..', 'j': '.---', 'k': '-.-', 'l': '.-..', 'm': '--', 'n': '-.', 'o': '---', 'p': '.--.', - 'q': '--.-', 'r': '.-.', 's': '...', 't': '-', 'u': '..-', 'v': '...-', 'w': '.--', 'x': '-..-', - 'y': '-.--', 'z': '--..', - '0': '-----', '1': '.----', '2': '..---', '3': '...--', '4': '....-', '5': '.....', '6': '-....', - '7': '--...', '8': '---..', '9': '----.' - }; - - return text.split('').map(char => { - if (char === ' ') { - return '/'; - } else if (morseCodeMap[char]) { - return morseCodeMap[char]; - } else { - return ''; - } - }).join(' '); -} +document.getElementById('convert-btn').addEventListener('click', function() { + const inputText = document.getElementById('input-text').value.trim().toLowerCase(); + const morseCode = convertToMorse(inputText); + document.getElementById('output-morse').value = morseCode; +}); + +function convertToMorse(text) { + const morseCodeMap = { + 'a': '.-', 'b': '-...', 'c': '-.-.', 'd': '-..', 'e': '.', 'f': '..-.', 'g': '--.', 'h': '....', + 'i': '..', 'j': '.---', 'k': '-.-', 'l': '.-..', 'm': '--', 'n': '-.', 'o': '---', 'p': '.--.', + 'q': '--.-', 'r': '.-.', 's': '...', 't': '-', 'u': '..-', 'v': '...-', 'w': '.--', 'x': '-..-', + 'y': '-.--', 'z': '--..', + '0': '-----', '1': '.----', '2': '..---', '3': '...--', '4': '....-', '5': '.....', '6': '-....', + '7': '--...', '8': '---..', '9': '----.' + }; + + return text.split('').map(char => { + if (char === ' ') { + return '/'; + } else if (morseCodeMap[char]) { + return morseCodeMap[char]; + } else { + return ''; + } + }).join(' '); +} diff --git a/Games/Morse_Code_Generator/style.css b/Games/Morse_Code_Generator/style.css index b0073d83f1..d191deb116 100644 --- a/Games/Morse_Code_Generator/style.css +++ b/Games/Morse_Code_Generator/style.css @@ -1,31 +1,31 @@ -body { - font-family: Arial, sans-serif; - } - - .container { - max-width: 600px; - margin: 0 auto; - text-align: center; - padding: 20px; - } - - textarea { - width: 100%; - margin-bottom: 10px; - padding: 10px; - resize: none; - } - - button { - padding: 10px 20px; - background-color: #007bff; - color: #fff; - border: none; - cursor: pointer; - transition: background-color 0.3s; - } - - button:hover { - background-color: #0056b3; - } +body { + font-family: Arial, sans-serif; + } + + .container { + max-width: 600px; + margin: 0 auto; + text-align: center; + padding: 20px; + } + + textarea { + width: 100%; + margin-bottom: 10px; + padding: 10px; + resize: none; + } + + button { + padding: 10px 20px; + background-color: #007bff; + color: #fff; + border: none; + cursor: pointer; + transition: background-color 0.3s; + } + + button:hover { + background-color: #0056b3; + } \ No newline at end of file diff --git a/Games/Pac_Man/.gitignore b/Games/Pac_Man/.gitignore index c0676348c7..4d29575de8 100644 --- a/Games/Pac_Man/.gitignore +++ b/Games/Pac_Man/.gitignore @@ -1,23 +1,23 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# production -/build - -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local - -npm-debug.log* -yarn-debug.log* -yarn-error.log* +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# production +/build + +# misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* diff --git a/Games/Pac_Man/README.md b/Games/Pac_Man/README.md index d67288cdc4..16eb1b5703 100644 --- a/Games/Pac_Man/README.md +++ b/Games/Pac_Man/README.md @@ -1,65 +1,65 @@ -# **PAC-MAN** - ---- - -
- -## **Description ๐Ÿ“ƒ** - -Welcome to the Pacman Game! This classic arcade game puts you in control of Pacman, a hungry yellow character, as he navigates through a maze filled with dots, power pellets, and ghosts. Your goal is to eat all the dots while avoiding the ghosts. Can you achieve the highest score and become the ultimate Pacman champion? -- - -## **functionalities ๐ŸŽฎ** - -1. Start Screen: The game displays a start screen with the game's title, instructions, and options to start the game or adjust settings. - -2. Maze Generation: The game generates a random maze consisting of walls and corridors for Pacman to navigate. - -3. Pacman Movement: Pacman can move in four directions: up, down, left, and right. The player controls Pacman's movement using the arrow keys or alternative keys on the keyboard. - -4. Collision Detection: The game checks for collisions between Pacman and various objects in the maze, such as dots, power pellets, ghosts, and walls. It determines the outcome of these collisions, such as increasing the score, causing Pacman to lose a life, or allowing Pacman to eat ghosts when they are vulnerable. - -5. Score Tracking: The game keeps track of the player's score as they collect dots, eat ghosts, or consume fruit. The score is updated and displayed on the screen during gameplay. - -6. Lives Tracking: The game keeps track of the player's remaining lives. When Pacman is caught by a ghost without the protection of a power pellet, the player loses a life. The number of remaining lives is displayed on the screen. - -7. Ghost AI: The game implements artificial intelligence for the ghosts, allowing them to chase Pacman, avoid obstacles, and change their behavior when Pacman consumes a power pellet. - -8. Power Pellet Effects: When Pacman eats a power pellet, the ghosts temporarily become vulnerable, allowing Pacman to eat them for bonus points. The game handles the effects and duration of power pellets. - -9. Game Over: When the player loses all their lives or completes all levels, the game displays a game over screen showing the final score and providing options to play again or exit the game. -- -
- -## **How to play? ๐Ÿ•น๏ธ** - -1. Start the Game: Launch the Pacman game on your chosen platform or device. You will typically see a start screen with the game's title and options. - -2. Understand the Objective: The goal of Pacman is to navigate through a maze filled with dots while avoiding ghosts. Your objective is to eat all the dots to complete the level and earn points. - -3. Control Pacman's Movement: You can control Pacman's movement using either the arrow keys (up, down, left, right) or alternative keys such as 'W' for up, 'A' for left, 'S' for down, and 'D' for right. Use these controls to guide Pacman through the maze. - -4. Navigate the Maze: As Pacman moves, he will automatically eat any dots he comes across, increasing your score. Use the controls to navigate through the maze's corridors, avoiding walls and obstacles. - -5. Avoid Ghosts: The maze is also inhabited by ghosts. If a ghost touches Pacman without the protection of a power pellet, you lose a life. Avoid the ghosts and plan your movements strategically to stay away from them. - -6. Eat Power Pellets: Scattered throughout the maze are larger dots called power pellets. When Pacman eats a power pellet, the ghosts turn blue and become vulnerable. Take advantage of this opportunity to eat the blue ghosts for extra points. Be aware that the power pellet effect is temporary, and the ghosts will eventually recover. - -7. Score Points: Eating dots, power pellets, and vulnerable ghosts all contribute to your score. Strive to achieve the highest score possible as you progress through the levels. - -8. Game Over: The game continues until you lose all your lives by colliding with ghosts without the protection of a power pellet. When the game ends, you will see a game over screen displaying your final score and offering options to play again or exit the game. -- - -
- -## **Screenshots ๐Ÿ“ธ** - -
- -'Games\PacMan\start_here\public\images\Pac_man.png' - -
- -## **Working video ๐Ÿ“น** - +# **PAC-MAN** + +--- + +
+ +## **Description ๐Ÿ“ƒ** + +Welcome to the Pacman Game! This classic arcade game puts you in control of Pacman, a hungry yellow character, as he navigates through a maze filled with dots, power pellets, and ghosts. Your goal is to eat all the dots while avoiding the ghosts. Can you achieve the highest score and become the ultimate Pacman champion? +- + +## **functionalities ๐ŸŽฎ** + +1. Start Screen: The game displays a start screen with the game's title, instructions, and options to start the game or adjust settings. + +2. Maze Generation: The game generates a random maze consisting of walls and corridors for Pacman to navigate. + +3. Pacman Movement: Pacman can move in four directions: up, down, left, and right. The player controls Pacman's movement using the arrow keys or alternative keys on the keyboard. + +4. Collision Detection: The game checks for collisions between Pacman and various objects in the maze, such as dots, power pellets, ghosts, and walls. It determines the outcome of these collisions, such as increasing the score, causing Pacman to lose a life, or allowing Pacman to eat ghosts when they are vulnerable. + +5. Score Tracking: The game keeps track of the player's score as they collect dots, eat ghosts, or consume fruit. The score is updated and displayed on the screen during gameplay. + +6. Lives Tracking: The game keeps track of the player's remaining lives. When Pacman is caught by a ghost without the protection of a power pellet, the player loses a life. The number of remaining lives is displayed on the screen. + +7. Ghost AI: The game implements artificial intelligence for the ghosts, allowing them to chase Pacman, avoid obstacles, and change their behavior when Pacman consumes a power pellet. + +8. Power Pellet Effects: When Pacman eats a power pellet, the ghosts temporarily become vulnerable, allowing Pacman to eat them for bonus points. The game handles the effects and duration of power pellets. + +9. Game Over: When the player loses all their lives or completes all levels, the game displays a game over screen showing the final score and providing options to play again or exit the game. +- +
+ +## **How to play? ๐Ÿ•น๏ธ** + +1. Start the Game: Launch the Pacman game on your chosen platform or device. You will typically see a start screen with the game's title and options. + +2. Understand the Objective: The goal of Pacman is to navigate through a maze filled with dots while avoiding ghosts. Your objective is to eat all the dots to complete the level and earn points. + +3. Control Pacman's Movement: You can control Pacman's movement using either the arrow keys (up, down, left, right) or alternative keys such as 'W' for up, 'A' for left, 'S' for down, and 'D' for right. Use these controls to guide Pacman through the maze. + +4. Navigate the Maze: As Pacman moves, he will automatically eat any dots he comes across, increasing your score. Use the controls to navigate through the maze's corridors, avoiding walls and obstacles. + +5. Avoid Ghosts: The maze is also inhabited by ghosts. If a ghost touches Pacman without the protection of a power pellet, you lose a life. Avoid the ghosts and plan your movements strategically to stay away from them. + +6. Eat Power Pellets: Scattered throughout the maze are larger dots called power pellets. When Pacman eats a power pellet, the ghosts turn blue and become vulnerable. Take advantage of this opportunity to eat the blue ghosts for extra points. Be aware that the power pellet effect is temporary, and the ghosts will eventually recover. + +7. Score Points: Eating dots, power pellets, and vulnerable ghosts all contribute to your score. Strive to achieve the highest score possible as you progress through the levels. + +8. Game Over: The game continues until you lose all your lives by colliding with ghosts without the protection of a power pellet. When the game ends, you will see a game over screen displaying your final score and offering options to play again or exit the game. +- + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ +'Games\PacMan\start_here\public\images\Pac_man.png' + +
+ +## **Working video ๐Ÿ“น** + 'Games\PacMan\start_here\public\videos\Pac-Man .mp4' \ No newline at end of file diff --git a/Games/Pac_Man/package-lock.json b/Games/Pac_Man/package-lock.json index f4f4bf79fd..cb35620430 100644 --- a/Games/Pac_Man/package-lock.json +++ b/Games/Pac_Man/package-lock.json @@ -1,29651 +1,29651 @@ -{ - "name": "pac_man", - "version": "0.1.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "pac_man", - "version": "0.1.0", - "dependencies": { - "@testing-library/jest-dom": "^5.16.5", - "@testing-library/react": "^13.4.0", - "@testing-library/user-event": "^13.5.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-scripts": "5.0.1", - "web-vitals": "^2.1.4" - } - }, - "node_modules/@adobe/css-tools": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.2.0.tgz", - "integrity": "sha512-E09FiIft46CmH5Qnjb0wsW54/YQd69LsxeKUOWawmws1XWvyFGURnAChH0mlr7YPFR1ofwvUQfcL0J3lMxXqPA==" - }, - "node_modules/@alloc/quick-lru": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", - "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", - "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@apideck/better-ajv-errors": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/@apideck/better-ajv-errors/-/better-ajv-errors-0.3.6.tgz", - "integrity": "sha512-P+ZygBLZtkp0qqOAJJVX4oX/sFo5JR3eBWwwuqHHhK0GIgQOKWrAfiAaWX0aArHkRWHMuggFEgAZNxVPwPZYaA==", - "dependencies": { - "json-schema": "^0.4.0", - "jsonpointer": "^5.0.0", - "leven": "^3.1.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "ajv": ">=8" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz", - "integrity": "sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g==", - "dependencies": { - "@babel/highlight": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.3.tgz", - "integrity": "sha512-aNtko9OPOwVESUFp3MZfD8Uzxl7JzSeJpd7npIoxCasU37PFbAQRpKglkaKwlHOyeJdrREpo8TW8ldrkYWwvIQ==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.1.tgz", - "integrity": "sha512-Hkqu7J4ynysSXxmAahpN1jjRwVJ+NdpraFLIWflgjpVob3KNyK3/tIUc7Q7szed8WMp0JNa7Qtd1E9Oo22F9gA==", - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.21.4", - "@babel/generator": "^7.22.0", - "@babel/helper-compilation-targets": "^7.22.1", - "@babel/helper-module-transforms": "^7.22.1", - "@babel/helpers": "^7.22.0", - "@babel/parser": "^7.22.0", - "@babel/template": "^7.21.9", - "@babel/traverse": "^7.22.1", - "@babel/types": "^7.22.0", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.2", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/eslint-parser": { - "version": "7.21.8", - "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.21.8.tgz", - "integrity": "sha512-HLhI+2q+BP3sf78mFUZNCGc10KEmoUqtUT1OCdMZsN+qr4qFeLUod62/zAnF3jNQstwyasDkZnVXwfK2Bml7MQ==", - "dependencies": { - "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", - "eslint-visitor-keys": "^2.1.0", - "semver": "^6.3.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || >=14.0.0" - }, - "peerDependencies": { - "@babel/core": ">=7.11.0", - "eslint": "^7.5.0 || ^8.0.0" - } - }, - "node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "engines": { - "node": ">=10" - } - }, - "node_modules/@babel/eslint-parser/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/generator": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.3.tgz", - "integrity": "sha512-C17MW4wlk//ES/CJDL51kPNwl+qiBQyN7b9SKyVp11BLGFeSPoVaHrv+MNt8jwQFhQWowW88z1eeBx3pFz9v8A==", - "dependencies": { - "@babel/types": "^7.22.3", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", - "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.3.tgz", - "integrity": "sha512-ahEoxgqNoYXm0k22TvOke48i1PkavGu0qGCmcq9ugi6gnmvKNaMjKBSrZTnWUi1CFEeNAUiVba0Wtzm03aSkJg==", - "dependencies": { - "@babel/types": "^7.22.3" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.1.tgz", - "integrity": "sha512-Rqx13UM3yVB5q0D/KwQ8+SPfX/+Rnsy1Lw1k/UwOC4KC6qrzIQoY3lYnBu5EHKBlEHHcj0M0W8ltPSkD8rqfsQ==", - "dependencies": { - "@babel/compat-data": "^7.22.0", - "@babel/helper-validator-option": "^7.21.0", - "browserslist": "^4.21.3", - "lru-cache": "^5.1.1", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.1.tgz", - "integrity": "sha512-SowrZ9BWzYFgzUMwUmowbPSGu6CXL5MSuuCkG3bejahSpSymioPmuLdhPxNOc9MjuNGjy7M/HaXvJ8G82Lywlw==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-member-expression-to-functions": "^7.22.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-replace-supers": "^7.22.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/helper-split-export-declaration": "^7.18.6", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.1.tgz", - "integrity": "sha512-WWjdnfR3LPIe+0EY8td7WmjhytxXtjKAEpnAxun/hkNiyOaPlvGK+NZaBFIdi9ndYV3Gav7BpFvtUwnaJlwi1w==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "regexpu-core": "^5.3.1", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.0.tgz", - "integrity": "sha512-RnanLx5ETe6aybRi1cO/edaRH+bNYWaryCEmjDDYyNr4wnSzyOp8T0dWipmqVHKEY3AbVKUom50AKSlj1zmKbg==", - "dependencies": { - "@babel/helper-compilation-targets": "^7.17.7", - "@babel/helper-plugin-utils": "^7.16.7", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2", - "semver": "^6.1.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0-0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.1.tgz", - "integrity": "sha512-Z2tgopurB/kTbidvzeBrc2To3PUP/9i5MUe+fU6QJCQDyPwSH2oRapkLw3KGECDYSjhQZCNxEvNvZlLw8JjGwA==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz", - "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==", - "dependencies": { - "@babel/template": "^7.20.7", - "@babel/types": "^7.21.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", - "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.3.tgz", - "integrity": "sha512-Gl7sK04b/2WOb6OPVeNy9eFKeD3L6++CzL3ykPOWqTn08xgYYK0wz4TUh2feIImDXxcVW3/9WQ1NMKY66/jfZA==", - "dependencies": { - "@babel/types": "^7.22.3" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.21.4.tgz", - "integrity": "sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg==", - "dependencies": { - "@babel/types": "^7.21.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.1.tgz", - "integrity": "sha512-dxAe9E7ySDGbQdCVOY/4+UcD8M9ZFqZcZhSPsPacvCG4M+9lwtDDQfI2EoaSvmf7W/8yCBkGU0m7Pvt1ru3UZw==", - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-module-imports": "^7.21.4", - "@babel/helper-simple-access": "^7.21.5", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/helper-validator-identifier": "^7.19.1", - "@babel/template": "^7.21.9", - "@babel/traverse": "^7.22.1", - "@babel/types": "^7.22.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", - "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.21.5.tgz", - "integrity": "sha512-0WDaIlXKOX/3KfBK/dwP1oQGiPh6rjMkT7HIRv7i5RR2VUMwrx5ZL0dwBkKx7+SW1zwNdgjHd34IMk5ZjTeHVg==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", - "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-wrap-function": "^7.18.9", - "@babel/types": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.1.tgz", - "integrity": "sha512-ut4qrkE4AuSfrwHSps51ekR1ZY/ygrP1tp0WFm8oVq6nzc/hvfV/22JylndIbsf2U2M9LOMwiSddr6y+78j+OQ==", - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-member-expression-to-functions": "^7.22.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/template": "^7.21.9", - "@babel/traverse": "^7.22.1", - "@babel/types": "^7.22.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.21.5.tgz", - "integrity": "sha512-ENPDAMC1wAjR0uaCUwliBdiSl1KBJAVnMTzXqi64c2MG8MPR6ii4qf7bSXDqSFbr4W6W028/rf5ivoHop5/mkg==", - "dependencies": { - "@babel/types": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", - "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", - "dependencies": { - "@babel/types": "^7.20.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", - "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.21.5.tgz", - "integrity": "sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz", - "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz", - "integrity": "sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q==", - "dependencies": { - "@babel/helper-function-name": "^7.19.0", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.5", - "@babel/types": "^7.20.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.3.tgz", - "integrity": "sha512-jBJ7jWblbgr7r6wYZHMdIqKc73ycaTcCaWRq4/2LpuPHcx7xMlZvpGQkOYc9HeSjn6rcx15CPlgVcBtZ4WZJ2w==", - "dependencies": { - "@babel/template": "^7.21.9", - "@babel/traverse": "^7.22.1", - "@babel/types": "^7.22.3" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "dependencies": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.3.tgz", - "integrity": "sha512-vrukxyW/ep8UD1UDzOYpTKQ6abgjFoeG6L+4ar9+c5TN9QnlqiOi6QK7LSR5ewm/ERyGkT/Ai6VboNrxhbr9Uw==", - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", - "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.3.tgz", - "integrity": "sha512-6r4yRwEnorYByILoDRnEqxtojYKuiIv9FojW2E8GUKo9eWBwbKcd9IiZOZpdyXc64RmyGGyPu3/uAcrz/dq2kQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/plugin-transform-optional-chaining": "^7.22.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.13.0" - } - }, - "node_modules/@babel/plugin-proposal-class-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", - "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-decorators": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.22.3.tgz", - "integrity": "sha512-XjTKH3sHr6pPqG+hR1NCdVupwiosfdKM2oSMyKQVQ5Bym9l/p7BuLAqT5U32zZzRCfPq/TPRPzMiiTE9bOXU4w==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-replace-supers": "^7.22.1", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/plugin-syntax-decorators": "^7.22.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", - "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-numeric-separator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", - "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-optional-chaining": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz", - "integrity": "sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-private-methods": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", - "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0.tgz", - "integrity": "sha512-ha4zfehbJjc5MmXBlHec1igel5TJXXLDDRbuJ4+XT2TJcyD9/V1919BA8gMvsdHcNMBy4WBUBiRb3nw/EQUtBw==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.21.0", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-unicode-property-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", - "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-bigint": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", - "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-decorators": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.22.3.tgz", - "integrity": "sha512-R16Zuge73+8/nLcDjkIpyhi5wIbN7i7fiuLJR8yQX7vPAa/ltUKtd3iLbb4AgP5nrLi91HnNUNosELIGUGH1bg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-flow": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.21.4.tgz", - "integrity": "sha512-l9xd3N+XG4fZRxEP3vXdK6RW7vN1Uf5dxzRC/09wV86wqZ/YYQooBIGNsiRdfNR3/q2/5pPzV4B54J/9ctX5jw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", - "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.19.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.3.tgz", - "integrity": "sha512-i35jZJv6aO7hxEbIWQ41adVfOzjm9dcYDNeWlBMd8p0ZQRtNUCBrmGwZt+H5lb+oOC9a3svp956KP0oWGA1YsA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.21.4.tgz", - "integrity": "sha512-5hewiLct5OKyh6PLKEYaFclcqtIgCb6bmELouxjF6up5q3Sov7rOayW4RwhbaBL0dit8rA80GNfY+UuDp2mBbQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.21.4.tgz", - "integrity": "sha512-xz0D39NvhQn4t4RNsHmDnnsaQizIlUkdtYvLs8La1BlfjQ6JEwxkJGeqJMW2tAXx+q6H+WFuUTXNdYVpEya0YA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-unicode-sets-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", - "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.21.5.tgz", - "integrity": "sha512-wb1mhwGOCaXHDTcsRYMKF9e5bbMgqwxtqa2Y1ifH96dXJPwbuLX9qHy3clhrxVqgMz7nyNXs8VkxdH8UBcjKqA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.3.tgz", - "integrity": "sha512-36A4Aq48t66btydbZd5Fk0/xJqbpg/v4QWI4AH4cYHBXy9Mu42UOupZpebKFiCFNT9S9rJFcsld0gsv0ayLjtA==", - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-remap-async-to-generator": "^7.18.9", - "@babel/plugin-syntax-async-generators": "^7.8.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.20.7.tgz", - "integrity": "sha512-Uo5gwHPT9vgnSXQxqGtpdufUiWp96gk7yiP4Mp5bm1QMkEmLXBO7PAGYbKoJ6DhAwiNkcHFBol/x5zZZkL/t0Q==", - "dependencies": { - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-remap-async-to-generator": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", - "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz", - "integrity": "sha512-Mdrbunoh9SxwFZapeHVrwFmri16+oYotcZysSzhNIVDwIAb1UV+kvnxULSYq9J3/q5MDG+4X6w8QVgD1zhBXNQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.3.tgz", - "integrity": "sha512-mASLsd6rhOrLZ5F3WbCxkzl67mmOnqik0zrg5W6D/X0QMW7HtvnoL1dRARLKIbMP3vXwkwziuLesPqWVGIl6Bw==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.3.tgz", - "integrity": "sha512-5BirgNWNOx7cwbTJCOmKFJ1pZjwk5MUfMIwiBBvsirCJMZeQgs5pk6i1OlkVg+1Vef5LfBahFOrdCnAWvkVKMw==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" - } - }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz", - "integrity": "sha512-RZhbYTCEUAe6ntPehC4hlslPWosNHDox+vAs4On/mCLRLfoDVHf6hVEd7kuxr1RnHwJmxFfUM3cZiZRmPxJPXQ==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-compilation-targets": "^7.20.7", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-replace-supers": "^7.20.7", - "@babel/helper-split-export-declaration": "^7.18.6", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.21.5.tgz", - "integrity": "sha512-TR653Ki3pAwxBxUe8srfF3e4Pe3FTA46uaNHYyQwIoM4oWKSoOZiDNyHJ0oIoDIUPSRQbQG7jzgVBX3FPVne1Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/template": "^7.20.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.21.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.21.3.tgz", - "integrity": "sha512-bp6hwMFzuiE4HqYEyoGJ/V2LeIWn+hLVKc4pnj++E5XQptwhtcGmSayM029d/j2X1bPKGTlsyPwAubuU22KhMA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", - "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", - "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.1.tgz", - "integrity": "sha512-rlhWtONnVBPdmt+jeewS0qSnMz/3yLFrqAP8hHC6EDcrYRSyuz9f9yQhHvVn2Ad6+yO9fHXac5piudeYrInxwQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", - "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", - "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.3.tgz", - "integrity": "sha512-5Ti1cHLTDnt3vX61P9KZ5IG09bFXp4cDVFJIAeCZuxu9OXXJJZp5iP0n/rzM2+iAutJY+KWEyyHcRaHlpQ/P5g==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-flow-strip-types": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.21.0.tgz", - "integrity": "sha512-FlFA2Mj87a6sDkW4gfGrQQqwY/dLlBAyJa2dJEZ+FHXUVHBflO2wyKvg+OOEzXfrKYIa4HWl0mgmbCzt0cMb7w==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/plugin-syntax-flow": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.5.tgz", - "integrity": "sha512-nYWpjKW/7j/I/mZkGVgHJXh4bA1sfdFnJoOXwJuj4m3Q2EraO/8ZyrkCau9P5tbHQk01RMSt6KYLCsW7730SXQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", - "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", - "dependencies": { - "@babel/helper-compilation-targets": "^7.18.9", - "@babel/helper-function-name": "^7.18.9", - "@babel/helper-plugin-utils": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-json-strings": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.3.tgz", - "integrity": "sha512-IuvOMdeOOY2X4hRNAT6kwbePtK21BUyrAEgLKviL8pL6AEEVUVcqtRdN/HJXBLGIbt9T3ETmXRnFedRRmQNTYw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-json-strings": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", - "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.3.tgz", - "integrity": "sha512-CbayIfOw4av2v/HYZEsH+Klks3NC2/MFIR3QR8gnpGNNPEaq2fdlVCRYG/paKs7/5hvBLQ+H70pGWOHtlNEWNA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", - "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.20.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.20.11.tgz", - "integrity": "sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g==", - "dependencies": { - "@babel/helper-module-transforms": "^7.20.11", - "@babel/helper-plugin-utils": "^7.20.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.21.5.tgz", - "integrity": "sha512-OVryBEgKUbtqMoB7eG2rs6UFexJi6Zj6FDXx+esBLPTCxCNxAY9o+8Di7IsUGJ+AVhp5ncK0fxWUBd0/1gPhrQ==", - "dependencies": { - "@babel/helper-module-transforms": "^7.21.5", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-simple-access": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.22.3.tgz", - "integrity": "sha512-V21W3bKLxO3ZjcBJZ8biSvo5gQ85uIXW2vJfh7JSWf/4SLUSr1tOoHX3ruN4+Oqa2m+BKfsxTR1I+PsvkIWvNw==", - "dependencies": { - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-module-transforms": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-validator-identifier": "^7.19.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", - "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", - "dependencies": { - "@babel/helper-module-transforms": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.3.tgz", - "integrity": "sha512-c6HrD/LpUdNNJsISQZpds3TXvfYIAbo+efE9aWmY/PmSRD0agrJ9cPMt4BmArwUQ7ZymEWTFjTyp+yReLJZh0Q==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-new-target": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.3.tgz", - "integrity": "sha512-5RuJdSo89wKdkRTqtM9RVVJzHum9c2s0te9rB7vZC1zKKxcioWIy+xcu4OoIAjyFZhb/bp5KkunuLin1q7Ct+w==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.3.tgz", - "integrity": "sha512-CpaoNp16nX7ROtLONNuCyenYdY/l7ZsR6aoVa7rW7nMWisoNoQNIH5Iay/4LDyRjKMuElMqXiBoOQCDLTMGZiw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.3.tgz", - "integrity": "sha512-+AF88fPDJrnseMh5vD9+SH6wq4ZMvpiTMHh58uLs+giMEyASFVhcT3NkoyO+NebFCNnpHJEq5AXO2txV4AGPDQ==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.3.tgz", - "integrity": "sha512-38bzTsqMMCI46/TQnJwPPpy33EjLCc1Gsm2hRTF6zTMWnKsN61vdrpuzIEGQyKEhDSYDKyZHrrd5FMj4gcUHhw==", - "dependencies": { - "@babel/compat-data": "^7.22.3", - "@babel/helper-compilation-targets": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.22.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", - "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-replace-supers": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.3.tgz", - "integrity": "sha512-bnDFWXFzWY0BsOyqaoSXvMQ2F35zutQipugog/rqotL2S4ciFOKlRYUu9djt4iq09oh2/34hqfRR2k1dIvuu4g==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.22.3.tgz", - "integrity": "sha512-63v3/UFFxhPKT8j8u1jTTGVyITxl7/7AfOqK8C5gz1rHURPUGe3y5mvIf68eYKGoBNahtJnTxBKug4BQOnzeJg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.3.tgz", - "integrity": "sha512-x7QHQJHPuD9VmfpzboyGJ5aHEr9r7DsAsdxdhJiTB3J3j8dyl+NFZ+rX5Q2RWFDCs61c06qBfS4ys2QYn8UkMw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-methods": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.3.tgz", - "integrity": "sha512-fC7jtjBPFqhqpPAE+O4LKwnLq7gGkD3ZmC2E3i4qWH34mH3gOg2Xrq5YMHUq6DM30xhqM1DNftiRaSqVjEG+ug==", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.3.tgz", - "integrity": "sha512-C7MMl4qWLpgVCbXfj3UW8rR1xeCnisQ0cU7YJHV//8oNBS0aCIVg1vFnZXxOckHhEpQyqNNkWmvSEWnMLlc+Vw==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", - "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-constant-elements": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.22.3.tgz", - "integrity": "sha512-b5J6muxQYp4H7loAQv/c7GO5cPuRA6H5hx4gO+/Hn+Cu9MRQU0PNiUoWq1L//8sq6kFSNxGXFb2XTaUfa9y+Pg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-display-name": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz", - "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.3.tgz", - "integrity": "sha512-JEulRWG2f04a7L8VWaOngWiK6p+JOSpB+DAtwfJgOaej1qdbNxqtK7MwTBHjUA10NeFcszlFNqCdbRcirzh2uQ==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-module-imports": "^7.21.4", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-jsx": "^7.21.4", - "@babel/types": "^7.22.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-development": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz", - "integrity": "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==", - "dependencies": { - "@babel/plugin-transform-react-jsx": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-pure-annotations": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz", - "integrity": "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.21.5.tgz", - "integrity": "sha512-ZoYBKDb6LyMi5yCsByQ5jmXsHAQDDYeexT1Szvlmui+lADvfSecr5Dxd/PkrTC3pAD182Fcju1VQkB4oCp9M+w==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "regenerator-transform": "^0.15.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", - "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-runtime": { - "version": "7.22.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.22.2.tgz", - "integrity": "sha512-ewgWBw1pAoqFg9crO6yhZAQoKWN/iNEGqAmuYegZp+xEpvMHGyLxt0SgPZ9bWG6jx4eff6jQ4JILt5zwj/EoTg==", - "dependencies": { - "@babel/helper-module-imports": "^7.21.4", - "@babel/helper-plugin-utils": "^7.21.5", - "babel-plugin-polyfill-corejs2": "^0.4.2", - "babel-plugin-polyfill-corejs3": "^0.8.1", - "babel-plugin-polyfill-regenerator": "^0.5.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-runtime/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", - "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz", - "integrity": "sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", - "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", - "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", - "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typescript": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.3.tgz", - "integrity": "sha512-pyjnCIniO5PNaEuGxT28h0HbMru3qCVrMqVgVOz/krComdIrY9W6FCLBq9NWHY8HDGaUlan+UhmZElDENIfCcw==", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-typescript": "^7.21.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.21.5.tgz", - "integrity": "sha512-LYm/gTOwZqsYohlvFUe/8Tujz75LqqVC2w+2qPHLR+WyWHGCZPN1KBpJCJn+4Bk4gOkQy/IXKIge6az5MqwlOg==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.3.tgz", - "integrity": "sha512-5ScJ+OmdX+O6HRuMGW4kv7RL9vIKdtdAj9wuWUKy1wbHY3jaM/UlyIiC1G7J6UJiiyMukjjK0QwL3P0vBd0yYg==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", - "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.3.tgz", - "integrity": "sha512-hNufLdkF8vqywRp+P55j4FHXqAX2LRUccoZHH7AFn1pq5ZOO2ISKW9w13bFZVjBoTqeve2HOgoJCcaziJVhGNw==", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/preset-env": { - "version": "7.22.2", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.22.2.tgz", - "integrity": "sha512-UPNK9pgphMULvA2EMKIWHU90C47PKyuvQ8pE1MzH7l9PgFcRabdrHhlePpBuWxYZQ+TziP2nycKoI5C1Yhdm9Q==", - "dependencies": { - "@babel/compat-data": "^7.22.0", - "@babel/helper-compilation-targets": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-validator-option": "^7.21.0", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.0", - "@babel/plugin-proposal-private-property-in-object": "^7.21.0", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.20.0", - "@babel/plugin-syntax-import-attributes": "^7.22.0", - "@babel/plugin-syntax-import-meta": "^7.10.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.21.5", - "@babel/plugin-transform-async-generator-functions": "^7.22.0", - "@babel/plugin-transform-async-to-generator": "^7.20.7", - "@babel/plugin-transform-block-scoped-functions": "^7.18.6", - "@babel/plugin-transform-block-scoping": "^7.21.0", - "@babel/plugin-transform-class-properties": "^7.22.0", - "@babel/plugin-transform-class-static-block": "^7.22.0", - "@babel/plugin-transform-classes": "^7.21.0", - "@babel/plugin-transform-computed-properties": "^7.21.5", - "@babel/plugin-transform-destructuring": "^7.21.3", - "@babel/plugin-transform-dotall-regex": "^7.18.6", - "@babel/plugin-transform-duplicate-keys": "^7.18.9", - "@babel/plugin-transform-dynamic-import": "^7.22.1", - "@babel/plugin-transform-exponentiation-operator": "^7.18.6", - "@babel/plugin-transform-export-namespace-from": "^7.22.0", - "@babel/plugin-transform-for-of": "^7.21.5", - "@babel/plugin-transform-function-name": "^7.18.9", - "@babel/plugin-transform-json-strings": "^7.22.0", - "@babel/plugin-transform-literals": "^7.18.9", - "@babel/plugin-transform-logical-assignment-operators": "^7.22.0", - "@babel/plugin-transform-member-expression-literals": "^7.18.6", - "@babel/plugin-transform-modules-amd": "^7.20.11", - "@babel/plugin-transform-modules-commonjs": "^7.21.5", - "@babel/plugin-transform-modules-systemjs": "^7.22.0", - "@babel/plugin-transform-modules-umd": "^7.18.6", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.0", - "@babel/plugin-transform-new-target": "^7.22.0", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.0", - "@babel/plugin-transform-numeric-separator": "^7.22.0", - "@babel/plugin-transform-object-rest-spread": "^7.22.0", - "@babel/plugin-transform-object-super": "^7.18.6", - "@babel/plugin-transform-optional-catch-binding": "^7.22.0", - "@babel/plugin-transform-optional-chaining": "^7.22.0", - "@babel/plugin-transform-parameters": "^7.22.0", - "@babel/plugin-transform-private-methods": "^7.22.0", - "@babel/plugin-transform-private-property-in-object": "^7.22.0", - "@babel/plugin-transform-property-literals": "^7.18.6", - "@babel/plugin-transform-regenerator": "^7.21.5", - "@babel/plugin-transform-reserved-words": "^7.18.6", - "@babel/plugin-transform-shorthand-properties": "^7.18.6", - "@babel/plugin-transform-spread": "^7.20.7", - "@babel/plugin-transform-sticky-regex": "^7.18.6", - "@babel/plugin-transform-template-literals": "^7.18.9", - "@babel/plugin-transform-typeof-symbol": "^7.18.9", - "@babel/plugin-transform-unicode-escapes": "^7.21.5", - "@babel/plugin-transform-unicode-property-regex": "^7.22.0", - "@babel/plugin-transform-unicode-regex": "^7.18.6", - "@babel/plugin-transform-unicode-sets-regex": "^7.22.0", - "@babel/preset-modules": "^0.1.5", - "@babel/types": "^7.22.0", - "babel-plugin-polyfill-corejs2": "^0.4.2", - "babel-plugin-polyfill-corejs3": "^0.8.1", - "babel-plugin-polyfill-regenerator": "^0.5.0", - "core-js-compat": "^3.30.2", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-env/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/preset-modules": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", - "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", - "@babel/plugin-transform-dotall-regex": "^7.4.4", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-react": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.22.3.tgz", - "integrity": "sha512-lxDz1mnZ9polqClBCVBjIVUypoB4qV3/tZUDb/IlYbW1kiiLaXaX+bInbRjl+lNQ/iUZraQ3+S8daEmoELMWug==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-validator-option": "^7.21.0", - "@babel/plugin-transform-react-display-name": "^7.18.6", - "@babel/plugin-transform-react-jsx": "^7.22.3", - "@babel/plugin-transform-react-jsx-development": "^7.18.6", - "@babel/plugin-transform-react-pure-annotations": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-typescript": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.21.5.tgz", - "integrity": "sha512-iqe3sETat5EOrORXiQ6rWfoOg2y68Cs75B9wNxdPW4kixJxh7aXQE1KPdWLDniC24T/6dSnguF33W9j/ZZQcmA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-validator-option": "^7.21.0", - "@babel/plugin-syntax-jsx": "^7.21.4", - "@babel/plugin-transform-modules-commonjs": "^7.21.5", - "@babel/plugin-transform-typescript": "^7.21.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/regjsgen": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", - "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==" - }, - "node_modules/@babel/runtime": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.3.tgz", - "integrity": "sha512-XsDuspWKLUsxwCp6r7EhsExHtYfbe5oAGQ19kqngTdCPUoPQzOPdUbD/pB9PJiwb2ptYKQDjSJT3R6dC+EPqfQ==", - "dependencies": { - "regenerator-runtime": "^0.13.11" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template": { - "version": "7.21.9", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.21.9.tgz", - "integrity": "sha512-MK0X5k8NKOuWRamiEfc3KEJiHMTkGZNUjzMipqCGDDc6ijRl/B7RGSKVGncu4Ro/HdyzzY6cmoXuKI2Gffk7vQ==", - "dependencies": { - "@babel/code-frame": "^7.21.4", - "@babel/parser": "^7.21.9", - "@babel/types": "^7.21.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.1.tgz", - "integrity": "sha512-lAWkdCoUFnmwLBhIRLciFntGYsIIoC6vIbN8zrLPqBnJmPu7Z6nzqnKd7FsxQUNAvZfVZ0x6KdNvNp8zWIOHSQ==", - "dependencies": { - "@babel/code-frame": "^7.21.4", - "@babel/generator": "^7.22.0", - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.22.0", - "@babel/types": "^7.22.0", - "debug": "^4.1.0", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.3.tgz", - "integrity": "sha512-P3na3xIQHTKY4L0YOG7pM8M8uoUIB910WQaSiiMCZUC2Cy8XFEQONGABFnHWBa2gpGKODTAJcNhi5Zk0sLRrzg==", - "dependencies": { - "@babel/helper-string-parser": "^7.21.5", - "@babel/helper-validator-identifier": "^7.19.1", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@bcoe/v8-coverage": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==" - }, - "node_modules/@csstools/normalize.css": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/@csstools/normalize.css/-/normalize.css-12.0.0.tgz", - "integrity": "sha512-M0qqxAcwCsIVfpFQSlGN5XjXWu8l5JDZN+fPt1LeW5SZexQTgnaEvgXAY+CeygRw0EeppWHi12JxESWiWrB0Sg==" - }, - "node_modules/@csstools/postcss-cascade-layers": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-cascade-layers/-/postcss-cascade-layers-1.1.1.tgz", - "integrity": "sha512-+KdYrpKC5TgomQr2DlZF4lDEpHcoxnj5IGddYYfBWJAKfj1JtuHUIqMa+E1pJJ+z3kvDViWMqyqPlG4Ja7amQA==", - "dependencies": { - "@csstools/selector-specificity": "^2.0.2", - "postcss-selector-parser": "^6.0.10" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-color-function": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-color-function/-/postcss-color-function-1.1.1.tgz", - "integrity": "sha512-Bc0f62WmHdtRDjf5f3e2STwRAl89N2CLb+9iAwzrv4L2hncrbDwnQD9PCq0gtAt7pOI2leIV08HIBUd4jxD8cw==", - "dependencies": { - "@csstools/postcss-progressive-custom-properties": "^1.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-font-format-keywords": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-font-format-keywords/-/postcss-font-format-keywords-1.0.1.tgz", - "integrity": "sha512-ZgrlzuUAjXIOc2JueK0X5sZDjCtgimVp/O5CEqTcs5ShWBa6smhWYbS0x5cVc/+rycTDbjjzoP0KTDnUneZGOg==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-hwb-function": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@csstools/postcss-hwb-function/-/postcss-hwb-function-1.0.2.tgz", - "integrity": "sha512-YHdEru4o3Rsbjmu6vHy4UKOXZD+Rn2zmkAmLRfPet6+Jz4Ojw8cbWxe1n42VaXQhD3CQUXXTooIy8OkVbUcL+w==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-ic-unit": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-ic-unit/-/postcss-ic-unit-1.0.1.tgz", - "integrity": "sha512-Ot1rcwRAaRHNKC9tAqoqNZhjdYBzKk1POgWfhN4uCOE47ebGcLRqXjKkApVDpjifL6u2/55ekkpnFcp+s/OZUw==", - "dependencies": { - "@csstools/postcss-progressive-custom-properties": "^1.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-is-pseudo-class": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@csstools/postcss-is-pseudo-class/-/postcss-is-pseudo-class-2.0.7.tgz", - "integrity": "sha512-7JPeVVZHd+jxYdULl87lvjgvWldYu+Bc62s9vD/ED6/QTGjy0jy0US/f6BG53sVMTBJ1lzKZFpYmofBN9eaRiA==", - "dependencies": { - "@csstools/selector-specificity": "^2.0.0", - "postcss-selector-parser": "^6.0.10" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-nested-calc": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@csstools/postcss-nested-calc/-/postcss-nested-calc-1.0.0.tgz", - "integrity": "sha512-JCsQsw1wjYwv1bJmgjKSoZNvf7R6+wuHDAbi5f/7MbFhl2d/+v+TvBTU4BJH3G1X1H87dHl0mh6TfYogbT/dJQ==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-normalize-display-values": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-normalize-display-values/-/postcss-normalize-display-values-1.0.1.tgz", - "integrity": "sha512-jcOanIbv55OFKQ3sYeFD/T0Ti7AMXc9nM1hZWu8m/2722gOTxFg7xYu4RDLJLeZmPUVQlGzo4jhzvTUq3x4ZUw==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-oklab-function": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-oklab-function/-/postcss-oklab-function-1.1.1.tgz", - "integrity": "sha512-nJpJgsdA3dA9y5pgyb/UfEzE7W5Ka7u0CX0/HIMVBNWzWemdcTH3XwANECU6anWv/ao4vVNLTMxhiPNZsTK6iA==", - "dependencies": { - "@csstools/postcss-progressive-custom-properties": "^1.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-progressive-custom-properties": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@csstools/postcss-progressive-custom-properties/-/postcss-progressive-custom-properties-1.3.0.tgz", - "integrity": "sha512-ASA9W1aIy5ygskZYuWams4BzafD12ULvSypmaLJT2jvQ8G0M3I8PRQhC0h7mG0Z3LI05+agZjqSR9+K9yaQQjA==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.3" - } - }, - "node_modules/@csstools/postcss-stepped-value-functions": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-stepped-value-functions/-/postcss-stepped-value-functions-1.0.1.tgz", - "integrity": "sha512-dz0LNoo3ijpTOQqEJLY8nyaapl6umbmDcgj4AD0lgVQ572b2eqA1iGZYTTWhrcrHztWDDRAX2DGYyw2VBjvCvQ==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-text-decoration-shorthand": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@csstools/postcss-text-decoration-shorthand/-/postcss-text-decoration-shorthand-1.0.0.tgz", - "integrity": "sha512-c1XwKJ2eMIWrzQenN0XbcfzckOLLJiczqy+YvfGmzoVXd7pT9FfObiSEfzs84bpE/VqfpEuAZ9tCRbZkZxxbdw==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-trigonometric-functions": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@csstools/postcss-trigonometric-functions/-/postcss-trigonometric-functions-1.0.2.tgz", - "integrity": "sha512-woKaLO///4bb+zZC2s80l+7cm07M7268MsyG3M0ActXXEFi6SuhvriQYcb58iiKGbjwwIU7n45iRLEHypB47Og==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/postcss-unset-value": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@csstools/postcss-unset-value/-/postcss-unset-value-1.0.2.tgz", - "integrity": "sha512-c8J4roPBILnelAsdLr4XOAR/GsTm0GJi4XpcfvoWk3U6KiTCqiFYc63KhRMQQX35jYMp4Ao8Ij9+IZRgMfJp1g==", - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/@csstools/selector-specificity": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz", - "integrity": "sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw==", - "engines": { - "node": "^14 || ^16 || >=18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss-selector-parser": "^6.0.10" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "dependencies": { - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", - "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", - "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.5.2", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/eslintrc/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@eslint/eslintrc/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/js": { - "version": "8.41.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.41.0.tgz", - "integrity": "sha512-LxcyMGxwmTh2lY9FwHPGWOHmYFCZvbrFCBZL4FzSSsxsRPuhrYUg/49/0KDfW8tnIEaEHtfmn6+NPN+1DqaNmA==", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.8", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", - "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", - "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==" - }, - "node_modules/@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", - "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "engines": { - "node": ">=6" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/console": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", - "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", - "slash": "^3.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/console/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/console/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/console/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/console/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@jest/console/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/console/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/core": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", - "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", - "dependencies": { - "@jest/console": "^27.5.1", - "@jest/reporters": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.8.1", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^27.5.1", - "jest-config": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-resolve-dependencies": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "jest-watcher": "^27.5.1", - "micromatch": "^4.0.4", - "rimraf": "^3.0.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/core/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/core/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/core/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/core/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@jest/core/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/core/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/environment": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", - "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", - "dependencies": { - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/expect-utils": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.5.0.tgz", - "integrity": "sha512-fmKzsidoXQT2KwnrwE0SQq3uj8Z763vzR8LnLBwC2qYWEFpjX8daRsk6rHUM1QvNlEW/UJXNXm59ztmJJWs2Mg==", - "dependencies": { - "jest-get-type": "^29.4.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/expect-utils/node_modules/jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/fake-timers": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", - "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", - "dependencies": { - "@jest/types": "^27.5.1", - "@sinonjs/fake-timers": "^8.0.1", - "@types/node": "*", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/globals": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", - "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/types": "^27.5.1", - "expect": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/reporters": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", - "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", - "dependencies": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.2", - "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^5.1.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-haste-map": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "slash": "^3.0.0", - "source-map": "^0.6.0", - "string-length": "^4.0.1", - "terminal-link": "^2.0.0", - "v8-to-istanbul": "^8.1.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/reporters/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/reporters/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/reporters/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/reporters/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@jest/reporters/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/reporters/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@jest/reporters/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/schemas": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-28.1.3.tgz", - "integrity": "sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg==", - "dependencies": { - "@sinclair/typebox": "^0.24.1" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/@jest/source-map": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", - "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", - "dependencies": { - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9", - "source-map": "^0.6.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/source-map/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@jest/test-result": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", - "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", - "dependencies": { - "@jest/console": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/test-sequencer": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", - "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", - "dependencies": { - "@jest/test-result": "^27.5.1", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-runtime": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/transform": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", - "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", - "dependencies": { - "@babel/core": "^7.1.0", - "@jest/types": "^27.5.1", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-util": "^27.5.1", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/transform/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/transform/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/transform/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/transform/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@jest/transform/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/transform/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@jest/transform/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/types": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/types/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/types/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/types/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/types/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@jest/types/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/types/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", - "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/source-map": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", - "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.18", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", - "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", - "dependencies": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" - } - }, - "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" - }, - "node_modules/@leichtgewicht/ip-codec": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", - "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==" - }, - "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": { - "version": "5.1.1-v1", - "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", - "integrity": "sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==", - "dependencies": { - "eslint-scope": "5.1.1" - } - }, - "node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@pmmmwh/react-refresh-webpack-plugin": { - "version": "0.5.10", - "resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.10.tgz", - "integrity": "sha512-j0Ya0hCFZPd4x40qLzbhGsh9TMtdb+CJQiso+WxLOPNasohq9cc5SNUcwsZaRH6++Xh91Xkm/xHCkuIiIu0LUA==", - "dependencies": { - "ansi-html-community": "^0.0.8", - "common-path-prefix": "^3.0.0", - "core-js-pure": "^3.23.3", - "error-stack-parser": "^2.0.6", - "find-up": "^5.0.0", - "html-entities": "^2.1.0", - "loader-utils": "^2.0.4", - "schema-utils": "^3.0.0", - "source-map": "^0.7.3" - }, - "engines": { - "node": ">= 10.13" - }, - "peerDependencies": { - "@types/webpack": "4.x || 5.x", - "react-refresh": ">=0.10.0 <1.0.0", - "sockjs-client": "^1.4.0", - "type-fest": ">=0.17.0 <4.0.0", - "webpack": ">=4.43.0 <6.0.0", - "webpack-dev-server": "3.x || 4.x", - "webpack-hot-middleware": "2.x", - "webpack-plugin-serve": "0.x || 1.x" - }, - "peerDependenciesMeta": { - "@types/webpack": { - "optional": true - }, - "sockjs-client": { - "optional": true - }, - "type-fest": { - "optional": true - }, - "webpack-dev-server": { - "optional": true - }, - "webpack-hot-middleware": { - "optional": true - }, - "webpack-plugin-serve": { - "optional": true - } - } - }, - "node_modules/@rollup/plugin-babel": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", - "integrity": "sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==", - "dependencies": { - "@babel/helper-module-imports": "^7.10.4", - "@rollup/pluginutils": "^3.1.0" - }, - "engines": { - "node": ">= 10.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0", - "@types/babel__core": "^7.1.9", - "rollup": "^1.20.0||^2.0.0" - }, - "peerDependenciesMeta": { - "@types/babel__core": { - "optional": true - } - } - }, - "node_modules/@rollup/plugin-node-resolve": { - "version": "11.2.1", - "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz", - "integrity": "sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg==", - "dependencies": { - "@rollup/pluginutils": "^3.1.0", - "@types/resolve": "1.17.1", - "builtin-modules": "^3.1.0", - "deepmerge": "^4.2.2", - "is-module": "^1.0.0", - "resolve": "^1.19.0" - }, - "engines": { - "node": ">= 10.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0" - } - }, - "node_modules/@rollup/plugin-replace": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-2.4.2.tgz", - "integrity": "sha512-IGcu+cydlUMZ5En85jxHH4qj2hta/11BHq95iHEyb2sbgiN0eCdzvUcHw5gt9pBL5lTi4JDYJ1acCoMGpTvEZg==", - "dependencies": { - "@rollup/pluginutils": "^3.1.0", - "magic-string": "^0.25.7" - }, - "peerDependencies": { - "rollup": "^1.20.0 || ^2.0.0" - } - }, - "node_modules/@rollup/pluginutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", - "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", - "dependencies": { - "@types/estree": "0.0.39", - "estree-walker": "^1.0.1", - "picomatch": "^2.2.2" - }, - "engines": { - "node": ">= 8.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0" - } - }, - "node_modules/@rollup/pluginutils/node_modules/@types/estree": { - "version": "0.0.39", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", - "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==" - }, - "node_modules/@rushstack/eslint-patch": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.3.0.tgz", - "integrity": "sha512-IthPJsJR85GhOkp3Hvp8zFOPK5ynKn6STyHa/WZpioK7E1aYDiBzpqQPrngc14DszIUkIrdd3k9Iu0XSzlP/1w==" - }, - "node_modules/@sinclair/typebox": { - "version": "0.24.51", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.51.tgz", - "integrity": "sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA==" - }, - "node_modules/@sinonjs/commons": { - "version": "1.8.6", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", - "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", - "dependencies": { - "type-detect": "4.0.8" - } - }, - "node_modules/@sinonjs/fake-timers": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", - "dependencies": { - "@sinonjs/commons": "^1.7.0" - } - }, - "node_modules/@surma/rollup-plugin-off-main-thread": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz", - "integrity": "sha512-lR8q/9W7hZpMWweNiAKU7NQerBnzQQLvi8qnTDU/fxItPhtZVMbPV3lbCwjhIlNBe9Bbr5V+KHshvWmVSG9cxQ==", - "dependencies": { - "ejs": "^3.1.6", - "json5": "^2.2.0", - "magic-string": "^0.25.0", - "string.prototype.matchall": "^4.0.6" - } - }, - "node_modules/@svgr/babel-plugin-add-jsx-attribute": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-5.4.0.tgz", - "integrity": "sha512-ZFf2gs/8/6B8PnSofI0inYXr2SDNTDScPXhN7k5EqD4aZ3gi6u+rbmZHVB8IM3wDyx8ntKACZbtXSm7oZGRqVg==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/babel-plugin-remove-jsx-attribute": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-5.4.0.tgz", - "integrity": "sha512-yaS4o2PgUtwLFGTKbsiAy6D0o3ugcUhWK0Z45umJ66EPWunAz9fuFw2gJuje6wqQvQWOTJvIahUwndOXb7QCPg==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/babel-plugin-remove-jsx-empty-expression": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-5.0.1.tgz", - "integrity": "sha512-LA72+88A11ND/yFIMzyuLRSMJ+tRKeYKeQ+mR3DcAZ5I4h5CPWN9AHyUzJbWSYp/u2u0xhmgOe0+E41+GjEueA==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/babel-plugin-replace-jsx-attribute-value": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-5.0.1.tgz", - "integrity": "sha512-PoiE6ZD2Eiy5mK+fjHqwGOS+IXX0wq/YDtNyIgOrc6ejFnxN4b13pRpiIPbtPwHEc+NT2KCjteAcq33/F1Y9KQ==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/babel-plugin-svg-dynamic-title": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-5.4.0.tgz", - "integrity": "sha512-zSOZH8PdZOpuG1ZVx/cLVePB2ibo3WPpqo7gFIjLV9a0QsuQAzJiwwqmuEdTaW2pegyBE17Uu15mOgOcgabQZg==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/babel-plugin-svg-em-dimensions": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-5.4.0.tgz", - "integrity": "sha512-cPzDbDA5oT/sPXDCUYoVXEmm3VIoAWAPT6mSPTJNbQaBNUuEKVKyGH93oDY4e42PYHRW67N5alJx/eEol20abw==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/babel-plugin-transform-react-native-svg": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-5.4.0.tgz", - "integrity": "sha512-3eYP/SaopZ41GHwXma7Rmxcv9uRslRDTY1estspeB1w1ueZWd/tPlMfEOoccYpEMZU3jD4OU7YitnXcF5hLW2Q==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/babel-plugin-transform-svg-component": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-5.5.0.tgz", - "integrity": "sha512-q4jSH1UUvbrsOtlo/tKcgSeiCHRSBdXoIoqX1pgcKK/aU3JD27wmMKwGtpB8qRYUYoyXvfGxUVKchLuR5pB3rQ==", - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/babel-preset": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-5.5.0.tgz", - "integrity": "sha512-4FiXBjvQ+z2j7yASeGPEi8VD/5rrGQk4Xrq3EdJmoZgz/tpqChpo5hgXDvmEauwtvOc52q8ghhZK4Oy7qph4ig==", - "dependencies": { - "@svgr/babel-plugin-add-jsx-attribute": "^5.4.0", - "@svgr/babel-plugin-remove-jsx-attribute": "^5.4.0", - "@svgr/babel-plugin-remove-jsx-empty-expression": "^5.0.1", - "@svgr/babel-plugin-replace-jsx-attribute-value": "^5.0.1", - "@svgr/babel-plugin-svg-dynamic-title": "^5.4.0", - "@svgr/babel-plugin-svg-em-dimensions": "^5.4.0", - "@svgr/babel-plugin-transform-react-native-svg": "^5.4.0", - "@svgr/babel-plugin-transform-svg-component": "^5.5.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/core": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/core/-/core-5.5.0.tgz", - "integrity": "sha512-q52VOcsJPvV3jO1wkPtzTuKlvX7Y3xIcWRpCMtBF3MrteZJtBfQw/+u0B1BHy5ColpQc1/YVTrPEtSYIMNZlrQ==", - "dependencies": { - "@svgr/plugin-jsx": "^5.5.0", - "camelcase": "^6.2.0", - "cosmiconfig": "^7.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/hast-util-to-babel-ast": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-5.5.0.tgz", - "integrity": "sha512-cAaR/CAiZRB8GP32N+1jocovUtvlj0+e65TB50/6Lcime+EA49m/8l+P2ko+XPJ4dw3xaPS3jOL4F2X4KWxoeQ==", - "dependencies": { - "@babel/types": "^7.12.6" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/plugin-jsx": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-5.5.0.tgz", - "integrity": "sha512-V/wVh33j12hGh05IDg8GpIUXbjAPnTdPTKuP4VNLggnwaHMPNQNae2pRnyTAILWCQdz5GyMqtO488g7CKM8CBA==", - "dependencies": { - "@babel/core": "^7.12.3", - "@svgr/babel-preset": "^5.5.0", - "@svgr/hast-util-to-babel-ast": "^5.5.0", - "svg-parser": "^2.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/plugin-svgo": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-5.5.0.tgz", - "integrity": "sha512-r5swKk46GuQl4RrVejVwpeeJaydoxkdwkM1mBKOgJLBUJPGaLci6ylg/IjhrRsREKDkr4kbMWdgOtbXEh0fyLQ==", - "dependencies": { - "cosmiconfig": "^7.0.0", - "deepmerge": "^4.2.2", - "svgo": "^1.2.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@svgr/webpack": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/webpack/-/webpack-5.5.0.tgz", - "integrity": "sha512-DOBOK255wfQxguUta2INKkzPj6AIS6iafZYiYmHn6W3pHlycSRRlvWKCfLDG10fXfLWqE3DJHgRUOyJYmARa7g==", - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/plugin-transform-react-constant-elements": "^7.12.1", - "@babel/preset-env": "^7.12.1", - "@babel/preset-react": "^7.12.5", - "@svgr/core": "^5.5.0", - "@svgr/plugin-jsx": "^5.5.0", - "@svgr/plugin-svgo": "^5.5.0", - "loader-utils": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/gregberge" - } - }, - "node_modules/@testing-library/dom": { - "version": "8.20.0", - "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.20.0.tgz", - "integrity": "sha512-d9ULIT+a4EXLX3UU8FBjauG9NnsZHkHztXoIcTsOKoOw030fyjheN9svkTULjJxtYag9DZz5Jz5qkWZDPxTFwA==", - "dependencies": { - "@babel/code-frame": "^7.10.4", - "@babel/runtime": "^7.12.5", - "@types/aria-query": "^5.0.1", - "aria-query": "^5.0.0", - "chalk": "^4.1.0", - "dom-accessibility-api": "^0.5.9", - "lz-string": "^1.4.4", - "pretty-format": "^27.0.2" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@testing-library/dom/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@testing-library/dom/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@testing-library/dom/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@testing-library/dom/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@testing-library/dom/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@testing-library/dom/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@testing-library/jest-dom": { - "version": "5.16.5", - "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.5.tgz", - "integrity": "sha512-N5ixQ2qKpi5OLYfwQmUb/5mSV9LneAcaUfp32pn4yCnpb8r/Yz0pXFPck21dIicKmi+ta5WRAknkZCfA8refMA==", - "dependencies": { - "@adobe/css-tools": "^4.0.1", - "@babel/runtime": "^7.9.2", - "@types/testing-library__jest-dom": "^5.9.1", - "aria-query": "^5.0.0", - "chalk": "^3.0.0", - "css.escape": "^1.5.1", - "dom-accessibility-api": "^0.5.6", - "lodash": "^4.17.15", - "redent": "^3.0.0" - }, - "engines": { - "node": ">=8", - "npm": ">=6", - "yarn": ">=1" - } - }, - "node_modules/@testing-library/jest-dom/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@testing-library/jest-dom/node_modules/chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@testing-library/jest-dom/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@testing-library/jest-dom/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@testing-library/jest-dom/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@testing-library/jest-dom/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@testing-library/react": { - "version": "13.4.0", - "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-13.4.0.tgz", - "integrity": "sha512-sXOGON+WNTh3MLE9rve97ftaZukN3oNf2KjDy7YTx6hcTO2uuLHuCGynMDhFwGw/jYf4OJ2Qk0i4i79qMNNkyw==", - "dependencies": { - "@babel/runtime": "^7.12.5", - "@testing-library/dom": "^8.5.0", - "@types/react-dom": "^18.0.0" - }, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "react": "^18.0.0", - "react-dom": "^18.0.0" - } - }, - "node_modules/@testing-library/user-event": { - "version": "13.5.0", - "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-13.5.0.tgz", - "integrity": "sha512-5Kwtbo3Y/NowpkbRuSepbyMFkZmHgD+vPzYB/RJ4oxt5Gj/avFFBYjhw27cqSVPVw/3a67NK1PbiIr9k4Gwmdg==", - "dependencies": { - "@babel/runtime": "^7.12.5" - }, - "engines": { - "node": ">=10", - "npm": ">=6" - }, - "peerDependencies": { - "@testing-library/dom": ">=7.21.4" - } - }, - "node_modules/@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/@trysound/sax": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", - "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/@types/aria-query": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.1.tgz", - "integrity": "sha512-XTIieEY+gvJ39ChLcB4If5zHtPxt3Syj5rgZR+e1ctpmK8NjPf0zFqsz4JpLJT0xla9GFDKjy8Cpu331nrmE1Q==" - }, - "node_modules/@types/babel__core": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", - "integrity": "sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==", - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.0.tgz", - "integrity": "sha512-TBOjqAGf0hmaqRwpii5LLkJLg7c6OMm4nHLmpsUxwk9bBHtoTC6dAHdVWdGv4TBxj2CZOZY8Xfq8WmfoVi7n4Q==", - "dependencies": { - "@babel/types": "^7.20.7" - } - }, - "node_modules/@types/body-parser": { - "version": "1.19.2", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", - "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", - "dependencies": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "node_modules/@types/bonjour": { - "version": "3.5.10", - "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.10.tgz", - "integrity": "sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/connect": { - "version": "3.4.35", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", - "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/connect-history-api-fallback": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz", - "integrity": "sha512-4x5FkPpLipqwthjPsF7ZRbOv3uoLUFkTA9G9v583qi4pACvq0uTELrB8OLUzPWUI4IJIyvM85vzkV1nyiI2Lig==", - "dependencies": { - "@types/express-serve-static-core": "*", - "@types/node": "*" - } - }, - "node_modules/@types/eslint": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.0.tgz", - "integrity": "sha512-nbq2mvc/tBrK9zQQuItvjJl++GTN5j06DaPtp3hZCpngmG6Q3xoyEmd0TwZI0gAy/G1X0zhGBbr2imsGFdFV0g==", - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "node_modules/@types/eslint-scope": { - "version": "3.7.4", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", - "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", - "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, - "node_modules/@types/estree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", - "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==" - }, - "node_modules/@types/express": { - "version": "4.17.17", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", - "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", - "dependencies": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "*" - } - }, - "node_modules/@types/express-serve-static-core": { - "version": "4.17.35", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz", - "integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==", - "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "node_modules/@types/graceful-fs": { - "version": "4.1.6", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", - "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/html-minifier-terser": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", - "integrity": "sha512-oh/6byDPnL1zeNXFrDXFLyZjkr1MsBG667IM792caf1L2UPOOMf65NFzjUH/ltyfwjAGfs1rsX1eftK0jC/KIg==" - }, - "node_modules/@types/http-proxy": { - "version": "1.17.11", - "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.11.tgz", - "integrity": "sha512-HC8G7c1WmaF2ekqpnFq626xd3Zz0uvaqFmBJNRZCGEZCXkvSdJoNFn/8Ygbd9fKNQj8UzLdCETaI0UWPAjK7IA==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==" - }, - "node_modules/@types/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", - "dependencies": { - "@types/istanbul-lib-coverage": "*" - } - }, - "node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@types/jest": { - "version": "29.5.1", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.1.tgz", - "integrity": "sha512-tEuVcHrpaixS36w7hpsfLBLpjtMRJUE09/MHXn923LOVojDwyC14cWcfc0rDs0VEfUyYmt/+iX1kxxp+gZMcaQ==", - "dependencies": { - "expect": "^29.0.0", - "pretty-format": "^29.0.0" - } - }, - "node_modules/@types/jest/node_modules/@jest/schemas": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.4.3.tgz", - "integrity": "sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg==", - "dependencies": { - "@sinclair/typebox": "^0.25.16" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@types/jest/node_modules/@jest/types": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.5.0.tgz", - "integrity": "sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==", - "dependencies": { - "@jest/schemas": "^29.4.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@types/jest/node_modules/@sinclair/typebox": { - "version": "0.25.24", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.24.tgz", - "integrity": "sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==" - }, - "node_modules/@types/jest/node_modules/@types/yargs": { - "version": "17.0.24", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", - "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@types/jest/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@types/jest/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@types/jest/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@types/jest/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/@types/jest/node_modules/diff-sequences": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", - "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@types/jest/node_modules/expect": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-29.5.0.tgz", - "integrity": "sha512-yM7xqUrCO2JdpFo4XpM82t+PJBFybdqoQuJLDGeDX2ij8NZzqRHyu3Hp188/JX7SWqud+7t4MUdvcgGBICMHZg==", - "dependencies": { - "@jest/expect-utils": "^29.5.0", - "jest-get-type": "^29.4.3", - "jest-matcher-utils": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-util": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@types/jest/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/@types/jest/node_modules/jest-diff": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.5.0.tgz", - "integrity": "sha512-LtxijLLZBduXnHSniy0WMdaHjmQnt3g5sa16W4p0HqukYTTsyTW3GD1q41TyGl5YFXj/5B2U6dlh5FM1LIMgxw==", - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^29.4.3", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@types/jest/node_modules/jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@types/jest/node_modules/jest-matcher-utils": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.5.0.tgz", - "integrity": "sha512-lecRtgm/rjIK0CQ7LPQwzCs2VwW6WAahA55YBuI+xqmhm7LAaxokSB8C97yJeYyT+HvQkH741StzpU41wohhWw==", - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.5.0", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@types/jest/node_modules/jest-message-util": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.5.0.tgz", - "integrity": "sha512-Kijeg9Dag6CKtIDA7O21zNTACqD5MD/8HfIV8pdD94vFyFuer52SigdC3IQMhab3vACxXMiFk+yMHNdbqtyTGA==", - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^29.5.0", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^29.5.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@types/jest/node_modules/jest-util": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.5.0.tgz", - "integrity": "sha512-RYMgG/MTadOr5t8KdhejfvUU82MxsCu5MF6KuDUHl+NuwzUt+Sm6jJWxTJVrDR1j5M/gJVCPKQEpWXY+yIQ6lQ==", - "dependencies": { - "@jest/types": "^29.5.0", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@types/jest/node_modules/pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dependencies": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@types/jest/node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@types/jest/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" - }, - "node_modules/@types/jest/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@types/json-schema": { - "version": "7.0.12", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", - "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==" - }, - "node_modules/@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==" - }, - "node_modules/@types/mime": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", - "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==" - }, - "node_modules/@types/node": { - "version": "20.2.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz", - "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==" - }, - "node_modules/@types/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" - }, - "node_modules/@types/prettier": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.2.tgz", - "integrity": "sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==" - }, - "node_modules/@types/prop-types": { - "version": "15.7.5", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", - "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==" - }, - "node_modules/@types/q": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.5.tgz", - "integrity": "sha512-L28j2FcJfSZOnL1WBjDYp2vUHCeIFlyYI/53EwD/rKUBQ7MtUUfbQWiyKJGpcnv4/WgrhWsFKrcPstcAt/J0tQ==" - }, - "node_modules/@types/qs": { - "version": "6.9.7", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", - "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==" - }, - "node_modules/@types/range-parser": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", - "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" - }, - "node_modules/@types/react": { - "version": "18.2.7", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.7.tgz", - "integrity": "sha512-ojrXpSH2XFCmHm7Jy3q44nXDyN54+EYKP2lBhJ2bqfyPj6cIUW/FZW/Csdia34NQgq7KYcAlHi5184m4X88+yw==", - "dependencies": { - "@types/prop-types": "*", - "@types/scheduler": "*", - "csstype": "^3.0.2" - } - }, - "node_modules/@types/react-dom": { - "version": "18.2.4", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.4.tgz", - "integrity": "sha512-G2mHoTMTL4yoydITgOGwWdWMVd8sNgyEP85xVmMKAPUBwQWm9wBPQUmvbeF4V3WBY1P7mmL4BkjQ0SqUpf1snw==", - "dependencies": { - "@types/react": "*" - } - }, - "node_modules/@types/resolve": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", - "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==" - }, - "node_modules/@types/scheduler": { - "version": "0.16.3", - "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz", - "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==" - }, - "node_modules/@types/semver": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz", - "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==" - }, - "node_modules/@types/send": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz", - "integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==", - "dependencies": { - "@types/mime": "^1", - "@types/node": "*" - } - }, - "node_modules/@types/serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==", - "dependencies": { - "@types/express": "*" - } - }, - "node_modules/@types/serve-static": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", - "integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==", - "dependencies": { - "@types/mime": "*", - "@types/node": "*" - } - }, - "node_modules/@types/sockjs": { - "version": "0.3.33", - "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz", - "integrity": "sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/stack-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==" - }, - "node_modules/@types/testing-library__jest-dom": { - "version": "5.14.6", - "resolved": "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.6.tgz", - "integrity": "sha512-FkHXCb+ikSoUP4Y4rOslzTdX5sqYwMxfefKh1GmZ8ce1GOkEHntSp6b5cGadmNfp5e4BMEWOMx+WSKd5/MqlDA==", - "dependencies": { - "@types/jest": "*" - } - }, - "node_modules/@types/trusted-types": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.3.tgz", - "integrity": "sha512-NfQ4gyz38SL8sDNrSixxU2Os1a5xcdFxipAFxYEuLUlvU2uDwS4NUpsImcf1//SlWItCVMMLiylsxbmNMToV/g==" - }, - "node_modules/@types/ws": { - "version": "8.5.4", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", - "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/yargs": { - "version": "16.0.5", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@types/yargs-parser": { - "version": "21.0.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==" - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.7.tgz", - "integrity": "sha512-BL+jYxUFIbuYwy+4fF86k5vdT9lT0CNJ6HtwrIvGh0PhH8s0yy5rjaKH2fDCrz5ITHy07WCzVGNvAmjJh4IJFA==", - "dependencies": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.59.7", - "@typescript-eslint/type-utils": "5.59.7", - "@typescript-eslint/utils": "5.59.7", - "debug": "^4.3.4", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/experimental-utils": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.59.7.tgz", - "integrity": "sha512-jqM0Cjfvta/sBlY1MxdXYv853/dJUC2wmUWnKoG2srwp0njNGQ6Zu/XLWoRFiLvocQbzBbpHkPFwKgC2UqyovA==", - "dependencies": { - "@typescript-eslint/utils": "5.59.7" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.7.tgz", - "integrity": "sha512-VhpsIEuq/8i5SF+mPg9jSdIwgMBBp0z9XqjiEay+81PYLJuroN+ET1hM5IhkiYMJd9MkTz8iJLt7aaGAgzWUbQ==", - "dependencies": { - "@typescript-eslint/scope-manager": "5.59.7", - "@typescript-eslint/types": "5.59.7", - "@typescript-eslint/typescript-estree": "5.59.7", - "debug": "^4.3.4" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.7.tgz", - "integrity": "sha512-FL6hkYWK9zBGdxT2wWEd2W8ocXMu3K94i3gvMrjXpx+koFYdYV7KprKfirpgY34vTGzEPPuKoERpP8kD5h7vZQ==", - "dependencies": { - "@typescript-eslint/types": "5.59.7", - "@typescript-eslint/visitor-keys": "5.59.7" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.7.tgz", - "integrity": "sha512-ozuz/GILuYG7osdY5O5yg0QxXUAEoI4Go3Do5xeu+ERH9PorHBPSdvD3Tjp2NN2bNLh1NJQSsQu2TPu/Ly+HaQ==", - "dependencies": { - "@typescript-eslint/typescript-estree": "5.59.7", - "@typescript-eslint/utils": "5.59.7", - "debug": "^4.3.4", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/types": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.7.tgz", - "integrity": "sha512-UnVS2MRRg6p7xOSATscWkKjlf/NDKuqo5TdbWck6rIRZbmKpVNTLALzNvcjIfHBE7736kZOFc/4Z3VcZwuOM/A==", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.7.tgz", - "integrity": "sha512-4A1NtZ1I3wMN2UGDkU9HMBL+TIQfbrh4uS0WDMMpf3xMRursDbqEf1ahh6vAAe3mObt8k3ZATnezwG4pdtWuUQ==", - "dependencies": { - "@typescript-eslint/types": "5.59.7", - "@typescript-eslint/visitor-keys": "5.59.7", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.7.tgz", - "integrity": "sha512-yCX9WpdQKaLufz5luG4aJbOpdXf/fjwGMcLFXZVPUz3QqLirG5QcwwnIHNf8cjLjxK4qtzTO8udUtMQSAToQnQ==", - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.59.7", - "@typescript-eslint/types": "5.59.7", - "@typescript-eslint/typescript-estree": "5.59.7", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.7.tgz", - "integrity": "sha512-tyN+X2jvMslUszIiYbF0ZleP+RqQsFVpGrKI6e0Eet1w8WmhsAtmzaqm8oM8WJQ1ysLwhnsK/4hYHJjOgJVfQQ==", - "dependencies": { - "@typescript-eslint/types": "5.59.7", - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@webassemblyjs/ast": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", - "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", - "dependencies": { - "@webassemblyjs/helper-numbers": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6" - } - }, - "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", - "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==" - }, - "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", - "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==" - }, - "node_modules/@webassemblyjs/helper-buffer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", - "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==" - }, - "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", - "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", - "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", - "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==" - }, - "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", - "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6" - } - }, - "node_modules/@webassemblyjs/ieee754": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", - "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", - "dependencies": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "node_modules/@webassemblyjs/leb128": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", - "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", - "dependencies": { - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/utf8": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", - "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==" - }, - "node_modules/@webassemblyjs/wasm-edit": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", - "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/helper-wasm-section": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-opt": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6", - "@webassemblyjs/wast-printer": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wasm-gen": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", - "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wasm-opt": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", - "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wasm-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", - "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" - } - }, - "node_modules/@webassemblyjs/wast-printer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", - "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", - "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" - }, - "node_modules/@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" - }, - "node_modules/abab": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", - "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==" - }, - "node_modules/accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-globals": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", - "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", - "dependencies": { - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1" - } - }, - "node_modules/acorn-globals/node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-import-assertions": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", - "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", - "peerDependencies": { - "acorn": "^8" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/address": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/address/-/address-1.2.2.tgz", - "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/adjust-sourcemap-loader": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz", - "integrity": "sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A==", - "dependencies": { - "loader-utils": "^2.0.0", - "regex-parser": "^2.2.11" - }, - "engines": { - "node": ">=8.9" - } - }, - "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", - "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { - "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/ajv-formats/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "peerDependencies": { - "ajv": "^6.9.1" - } - }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ansi-html-community": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", - "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==", - "engines": [ - "node >= 0.8.0" - ], - "bin": { - "ansi-html": "bin/ansi-html" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/any-promise": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", - "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==" - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/arg": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", - "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" - }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/aria-query": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", - "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", - "dependencies": { - "deep-equal": "^2.0.5" - } - }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", - "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", - "dependencies": { - "call-bind": "^1.0.2", - "is-array-buffer": "^3.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array-flatten": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", - "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==" - }, - "node_modules/array-includes": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", - "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "is-string": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/array.prototype.flat": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", - "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.flatmap": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", - "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.reduce": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/array.prototype.reduce/-/array.prototype.reduce-1.0.5.tgz", - "integrity": "sha512-kDdugMl7id9COE8R7MHF5jWk7Dqt/fs4Pv+JXoICnYwqpjjjbUurz6w5fT5IG6brLdJhv6/VoHB0H7oyIBXd+Q==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-array-method-boxes-properly": "^1.0.0", - "is-string": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.tosorted": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", - "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0", - "get-intrinsic": "^1.1.3" - } - }, - "node_modules/asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" - }, - "node_modules/ast-types-flow": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", - "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==" - }, - "node_modules/async": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", - "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "node_modules/at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/autoprefixer": { - "version": "10.4.14", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz", - "integrity": "sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/autoprefixer" - } - ], - "dependencies": { - "browserslist": "^4.21.5", - "caniuse-lite": "^1.0.30001464", - "fraction.js": "^4.2.0", - "normalize-range": "^0.1.2", - "picocolors": "^1.0.0", - "postcss-value-parser": "^4.2.0" - }, - "bin": { - "autoprefixer": "bin/autoprefixer" - }, - "engines": { - "node": "^10 || ^12 || >=14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/axe-core": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", - "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==", - "engines": { - "node": ">=4" - } - }, - "node_modules/axobject-query": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz", - "integrity": "sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==", - "dependencies": { - "deep-equal": "^2.0.5" - } - }, - "node_modules/babel-jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", - "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", - "dependencies": { - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^27.5.1", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.8.0" - } - }, - "node_modules/babel-jest/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/babel-jest/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/babel-jest/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/babel-jest/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/babel-jest/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-jest/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-loader": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.3.0.tgz", - "integrity": "sha512-H8SvsMF+m9t15HNLMipppzkC+Y2Yq+v3SonZyU70RBL/h1gxPkH08Ot8pEE9Z4Kd+czyWJClmFS8qzIP9OZ04Q==", - "dependencies": { - "find-cache-dir": "^3.3.1", - "loader-utils": "^2.0.0", - "make-dir": "^3.1.0", - "schema-utils": "^2.6.5" - }, - "engines": { - "node": ">= 8.9" - }, - "peerDependencies": { - "@babel/core": "^7.0.0", - "webpack": ">=2" - } - }, - "node_modules/babel-loader/node_modules/schema-utils": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", - "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", - "dependencies": { - "@types/json-schema": "^7.0.5", - "ajv": "^6.12.4", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 8.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-jest-hoist": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", - "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", - "dependencies": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.0.0", - "@types/babel__traverse": "^7.0.6" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/babel-plugin-macros": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", - "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==", - "dependencies": { - "@babel/runtime": "^7.12.5", - "cosmiconfig": "^7.0.0", - "resolve": "^1.19.0" - }, - "engines": { - "node": ">=10", - "npm": ">=6" - } - }, - "node_modules/babel-plugin-named-asset-import": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/babel-plugin-named-asset-import/-/babel-plugin-named-asset-import-0.3.8.tgz", - "integrity": "sha512-WXiAc++qo7XcJ1ZnTYGtLxmBCVbddAml3CEXgWaBzNzLNoxtQ8AiGEFDMOhot9XjTCQbvP5E77Fj9Gk924f00Q==", - "peerDependencies": { - "@babel/core": "^7.1.0" - } - }, - "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.3.tgz", - "integrity": "sha512-bM3gHc337Dta490gg+/AseNB9L4YLHxq1nGKZZSHbhXv4aTYU2MD2cjza1Ru4S6975YLTaL1K8uJf6ukJhhmtw==", - "dependencies": { - "@babel/compat-data": "^7.17.7", - "@babel/helper-define-polyfill-provider": "^0.4.0", - "semver": "^6.1.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.1.tgz", - "integrity": "sha512-ikFrZITKg1xH6pLND8zT14UPgjKHiGLqex7rGEZCH2EvhsneJaJPemmpQaIZV5AL03II+lXylw3UmddDK8RU5Q==", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.0", - "core-js-compat": "^3.30.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.0.tgz", - "integrity": "sha512-hDJtKjMLVa7Z+LwnTCxoDLQj6wdc+B8dun7ayF2fYieI6OzfuvcLMB32ihJZ4UhCBwNYGl5bg/x/P9cMdnkc2g==", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/babel-plugin-transform-react-remove-prop-types": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz", - "integrity": "sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA==" - }, - "node_modules/babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", - "dependencies": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/babel-preset-jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", - "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", - "dependencies": { - "babel-plugin-jest-hoist": "^27.5.1", - "babel-preset-current-node-syntax": "^1.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/babel-preset-react-app": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-react-app/-/babel-preset-react-app-10.0.1.tgz", - "integrity": "sha512-b0D9IZ1WhhCWkrTXyFuIIgqGzSkRIH5D5AmB0bXbzYAB1OBAwHcUeyWW2LorutLWF5btNo/N7r/cIdmvvKJlYg==", - "dependencies": { - "@babel/core": "^7.16.0", - "@babel/plugin-proposal-class-properties": "^7.16.0", - "@babel/plugin-proposal-decorators": "^7.16.4", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0", - "@babel/plugin-proposal-numeric-separator": "^7.16.0", - "@babel/plugin-proposal-optional-chaining": "^7.16.0", - "@babel/plugin-proposal-private-methods": "^7.16.0", - "@babel/plugin-transform-flow-strip-types": "^7.16.0", - "@babel/plugin-transform-react-display-name": "^7.16.0", - "@babel/plugin-transform-runtime": "^7.16.4", - "@babel/preset-env": "^7.16.4", - "@babel/preset-react": "^7.16.0", - "@babel/preset-typescript": "^7.16.0", - "@babel/runtime": "^7.16.3", - "babel-plugin-macros": "^3.1.0", - "babel-plugin-transform-react-remove-prop-types": "^0.4.24" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "node_modules/batch": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", - "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==" - }, - "node_modules/bfj": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/bfj/-/bfj-7.0.2.tgz", - "integrity": "sha512-+e/UqUzwmzJamNF50tBV6tZPTORow7gQ96iFow+8b562OdMpEK0BcJEq2OSPEDmAbSMBQ7PKZ87ubFkgxpYWgw==", - "dependencies": { - "bluebird": "^3.5.5", - "check-types": "^11.1.1", - "hoopy": "^0.1.4", - "tryer": "^1.0.1" - }, - "engines": { - "node": ">= 8.0.0" - } - }, - "node_modules/big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", - "engines": { - "node": "*" - } - }, - "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/bluebird": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" - }, - "node_modules/body-parser": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", - "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", - "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.11.0", - "raw-body": "2.5.1", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/body-parser/node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/body-parser/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/body-parser/node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/body-parser/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/bonjour-service": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.1.1.tgz", - "integrity": "sha512-Z/5lQRMOG9k7W+FkeGTNjh7htqn/2LMnfOvBZ8pynNZCM9MwkQkI3zeI4oz09uWdcgmgHugVvBqxGg4VQJ5PCg==", - "dependencies": { - "array-flatten": "^2.1.2", - "dns-equal": "^1.0.0", - "fast-deep-equal": "^3.1.3", - "multicast-dns": "^7.2.5" - } - }, - "node_modules/boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browser-process-hrtime": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", - "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==" - }, - "node_modules/browserslist": { - "version": "4.21.5", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz", - "integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - } - ], - "dependencies": { - "caniuse-lite": "^1.0.30001449", - "electron-to-chromium": "^1.4.284", - "node-releases": "^2.0.8", - "update-browserslist-db": "^1.0.10" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "dependencies": { - "node-int64": "^0.4.0" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - }, - "node_modules/builtin-modules": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", - "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/bytes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/camel-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", - "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", - "dependencies": { - "pascal-case": "^3.1.2", - "tslib": "^2.0.3" - } - }, - "node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/camelcase-css": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", - "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/caniuse-api": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", - "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", - "dependencies": { - "browserslist": "^4.0.0", - "caniuse-lite": "^1.0.0", - "lodash.memoize": "^4.1.2", - "lodash.uniq": "^4.5.0" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001489", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001489.tgz", - "integrity": "sha512-x1mgZEXK8jHIfAxm+xgdpHpk50IN3z3q3zP261/WS+uvePxW8izXuCu6AHz0lkuYTlATDehiZ/tNyYBdSQsOUQ==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] - }, - "node_modules/case-sensitive-paths-webpack-plugin": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.4.0.tgz", - "integrity": "sha512-roIFONhcxog0JSSWbvVAh3OocukmSgpqOH6YpMkCvav/ySIV3JKg4Dc8vYtQjYi/UxpNE36r/9v+VqTQqgkYmw==", - "engines": { - "node": ">=4" - } - }, - "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/char-regex": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "engines": { - "node": ">=10" - } - }, - "node_modules/check-types": { - "version": "11.2.2", - "resolved": "https://registry.npmjs.org/check-types/-/check-types-11.2.2.tgz", - "integrity": "sha512-HBiYvXvn9Z70Z88XKjz3AEKd4HJhBXsa3j7xFnITAzoS8+q6eIGi8qDB8FKPBAjtuxjI/zFpwuiCb8oDtKOYrA==" - }, - "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/chrome-trace-event": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", - "engines": { - "node": ">=6.0" - } - }, - "node_modules/ci-info": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", - "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "engines": { - "node": ">=8" - } - }, - "node_modules/cjs-module-lexer": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", - "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==" - }, - "node_modules/clean-css": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.2.tgz", - "integrity": "sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==", - "dependencies": { - "source-map": "~0.6.0" - }, - "engines": { - "node": ">= 10.0" - } - }, - "node_modules/clean-css/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", - "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" - } - }, - "node_modules/coa": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/coa/-/coa-2.0.2.tgz", - "integrity": "sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA==", - "dependencies": { - "@types/q": "^1.5.1", - "chalk": "^2.4.1", - "q": "^1.1.2" - }, - "engines": { - "node": ">= 4.0" - } - }, - "node_modules/collect-v8-coverage": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", - "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==" - }, - "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, - "node_modules/colord": { - "version": "2.9.3", - "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", - "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==" - }, - "node_modules/colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/commander": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", - "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", - "engines": { - "node": ">= 12" - } - }, - "node_modules/common-path-prefix": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-3.0.0.tgz", - "integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==" - }, - "node_modules/common-tags": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", - "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==" - }, - "node_modules/compressible": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", - "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", - "dependencies": { - "mime-db": ">= 1.43.0 < 2" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/compression": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", - "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", - "dependencies": { - "accepts": "~1.3.5", - "bytes": "3.0.0", - "compressible": "~2.0.16", - "debug": "2.6.9", - "on-headers": "~1.0.2", - "safe-buffer": "5.1.2", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/compression/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/compression/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/compression/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - }, - "node_modules/confusing-browser-globals": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", - "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==" - }, - "node_modules/connect-history-api-fallback": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz", - "integrity": "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" - }, - "node_modules/cookie": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", - "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" - }, - "node_modules/core-js": { - "version": "3.30.2", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.30.2.tgz", - "integrity": "sha512-uBJiDmwqsbJCWHAwjrx3cvjbMXP7xD72Dmsn5LOJpiRmE3WbBbN5rCqQ2Qh6Ek6/eOrjlWngEynBWo4VxerQhg==", - "hasInstallScript": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/core-js-compat": { - "version": "3.30.2", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.30.2.tgz", - "integrity": "sha512-nriW1nuJjUgvkEjIot1Spwakz52V9YkYHZAQG6A1eCgC8AA1p0zngrQEP9R0+V6hji5XilWKG1Bd0YRppmGimA==", - "dependencies": { - "browserslist": "^4.21.5" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/core-js-pure": { - "version": "3.30.2", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.30.2.tgz", - "integrity": "sha512-p/npFUJXXBkCCTIlEGBdghofn00jWG6ZOtdoIXSJmAu2QBvN0IqpZXWweOytcwE6cfx8ZvVUy1vw8zxhe4Y2vg==", - "hasInstallScript": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" - }, - "node_modules/cosmiconfig": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", - "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", - "dependencies": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.10.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/crypto-random-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", - "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/css-blank-pseudo": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/css-blank-pseudo/-/css-blank-pseudo-3.0.3.tgz", - "integrity": "sha512-VS90XWtsHGqoM0t4KpH053c4ehxZ2E6HtGI7x68YFV0pTo/QmkV/YFA+NnlvK8guxZVNWGQhVNJGC39Q8XF4OQ==", - "dependencies": { - "postcss-selector-parser": "^6.0.9" - }, - "bin": { - "css-blank-pseudo": "dist/cli.cjs" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.4" - } - }, - "node_modules/css-declaration-sorter": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.0.tgz", - "integrity": "sha512-jDfsatwWMWN0MODAFuHszfjphEXfNw9JUAhmY4pLu3TyTU+ohUpsbVtbU+1MZn4a47D9kqh03i4eyOm+74+zew==", - "engines": { - "node": "^10 || ^12 || >=14" - }, - "peerDependencies": { - "postcss": "^8.0.9" - } - }, - "node_modules/css-has-pseudo": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/css-has-pseudo/-/css-has-pseudo-3.0.4.tgz", - "integrity": "sha512-Vse0xpR1K9MNlp2j5w1pgWIJtm1a8qS0JwS9goFYcImjlHEmywP9VUF05aGBXzGpDJF86QXk4L0ypBmwPhGArw==", - "dependencies": { - "postcss-selector-parser": "^6.0.9" - }, - "bin": { - "css-has-pseudo": "dist/cli.cjs" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.4" - } - }, - "node_modules/css-loader": { - "version": "6.7.4", - "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.7.4.tgz", - "integrity": "sha512-0Y5uHtK5BswfaGJ+jrO+4pPg1msFBc0pwPIE1VqfpmVn6YbDfYfXMj8rfd7nt+4goAhJueO+H/I40VWJfcP1mQ==", - "dependencies": { - "icss-utils": "^5.1.0", - "postcss": "^8.4.21", - "postcss-modules-extract-imports": "^3.0.0", - "postcss-modules-local-by-default": "^4.0.1", - "postcss-modules-scope": "^3.0.0", - "postcss-modules-values": "^4.0.0", - "postcss-value-parser": "^4.2.0", - "semver": "^7.3.8" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - } - }, - "node_modules/css-minimizer-webpack-plugin": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.4.1.tgz", - "integrity": "sha512-1u6D71zeIfgngN2XNRJefc/hY7Ybsxd74Jm4qngIXyUEk7fss3VUzuHxLAq/R8NAba4QU9OUSaMZlbpRc7bM4Q==", - "dependencies": { - "cssnano": "^5.0.6", - "jest-worker": "^27.0.2", - "postcss": "^8.3.5", - "schema-utils": "^4.0.0", - "serialize-javascript": "^6.0.0", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - }, - "peerDependenciesMeta": { - "@parcel/css": { - "optional": true - }, - "clean-css": { - "optional": true - }, - "csso": { - "optional": true - }, - "esbuild": { - "optional": true - } - } - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/css-prefers-color-scheme": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/css-prefers-color-scheme/-/css-prefers-color-scheme-6.0.3.tgz", - "integrity": "sha512-4BqMbZksRkJQx2zAjrokiGMd07RqOa2IxIrrN10lyBe9xhn9DEvjUK79J6jkeiv9D9hQFXKb6g1jwU62jziJZA==", - "bin": { - "css-prefers-color-scheme": "dist/cli.cjs" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.4" - } - }, - "node_modules/css-select": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", - "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", - "dependencies": { - "boolbase": "^1.0.0", - "css-what": "^6.0.1", - "domhandler": "^4.3.1", - "domutils": "^2.8.0", - "nth-check": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/css-select-base-adapter": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz", - "integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==" - }, - "node_modules/css-tree": { - "version": "1.0.0-alpha.37", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.37.tgz", - "integrity": "sha512-DMxWJg0rnz7UgxKT0Q1HU/L9BeJI0M6ksor0OgqOnF+aRCDWg/N2641HmVyU9KVIu0OVVWOb2IpC9A+BJRnejg==", - "dependencies": { - "mdn-data": "2.0.4", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/css-tree/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/css-what": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", - "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", - "engines": { - "node": ">= 6" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/css.escape": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", - "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==" - }, - "node_modules/cssdb": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/cssdb/-/cssdb-7.6.0.tgz", - "integrity": "sha512-Nna7rph8V0jC6+JBY4Vk4ndErUmfJfV6NJCaZdurL0omggabiy+QB2HCQtu5c/ACLZ0I7REv7A4QyPIoYzZx0w==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - } - ] - }, - "node_modules/cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/cssnano": { - "version": "5.1.15", - "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", - "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==", - "dependencies": { - "cssnano-preset-default": "^5.2.14", - "lilconfig": "^2.0.3", - "yaml": "^1.10.2" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/cssnano" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/cssnano-preset-default": { - "version": "5.2.14", - "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz", - "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==", - "dependencies": { - "css-declaration-sorter": "^6.3.1", - "cssnano-utils": "^3.1.0", - "postcss-calc": "^8.2.3", - "postcss-colormin": "^5.3.1", - "postcss-convert-values": "^5.1.3", - "postcss-discard-comments": "^5.1.2", - "postcss-discard-duplicates": "^5.1.0", - "postcss-discard-empty": "^5.1.1", - "postcss-discard-overridden": "^5.1.0", - "postcss-merge-longhand": "^5.1.7", - "postcss-merge-rules": "^5.1.4", - "postcss-minify-font-values": "^5.1.0", - "postcss-minify-gradients": "^5.1.1", - "postcss-minify-params": "^5.1.4", - "postcss-minify-selectors": "^5.2.1", - "postcss-normalize-charset": "^5.1.0", - "postcss-normalize-display-values": "^5.1.0", - "postcss-normalize-positions": "^5.1.1", - "postcss-normalize-repeat-style": "^5.1.1", - "postcss-normalize-string": "^5.1.0", - "postcss-normalize-timing-functions": "^5.1.0", - "postcss-normalize-unicode": "^5.1.1", - "postcss-normalize-url": "^5.1.0", - "postcss-normalize-whitespace": "^5.1.1", - "postcss-ordered-values": "^5.1.3", - "postcss-reduce-initial": "^5.1.2", - "postcss-reduce-transforms": "^5.1.0", - "postcss-svgo": "^5.1.0", - "postcss-unique-selectors": "^5.1.1" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/cssnano-utils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", - "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/csso": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", - "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", - "dependencies": { - "css-tree": "^1.1.2" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/csso/node_modules/css-tree": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", - "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", - "dependencies": { - "mdn-data": "2.0.14", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/csso/node_modules/mdn-data": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", - "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" - }, - "node_modules/csso/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/cssom": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", - "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==" - }, - "node_modules/cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dependencies": { - "cssom": "~0.3.6" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cssstyle/node_modules/cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" - }, - "node_modules/csstype": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", - "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" - }, - "node_modules/damerau-levenshtein": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", - "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==" - }, - "node_modules/data-urls": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", - "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", - "dependencies": { - "abab": "^2.0.3", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decimal.js": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", - "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" - }, - "node_modules/dedent": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==" - }, - "node_modules/deep-equal": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.1.tgz", - "integrity": "sha512-lKdkdV6EOGoVn65XaOsPdH4rMxTZOnmFyuIkMjM1i5HHCbfjC97dawgTAy0deYNfuqUqW+Q5VrVaQYtUpSd6yQ==", - "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "call-bind": "^1.0.2", - "es-get-iterator": "^1.1.3", - "get-intrinsic": "^1.2.0", - "is-arguments": "^1.1.1", - "is-array-buffer": "^3.0.2", - "is-date-object": "^1.0.5", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "isarray": "^2.0.5", - "object-is": "^1.1.5", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.5.0", - "side-channel": "^1.0.4", - "which-boxed-primitive": "^1.0.2", - "which-collection": "^1.0.1", - "which-typed-array": "^1.1.9" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" - }, - "node_modules/deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/default-gateway": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", - "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", - "dependencies": { - "execa": "^5.0.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/define-lazy-prop": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", - "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", - "engines": { - "node": ">=8" - } - }, - "node_modules/define-properties": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", - "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", - "dependencies": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/detect-node": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", - "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==" - }, - "node_modules/detect-port-alt": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/detect-port-alt/-/detect-port-alt-1.1.6.tgz", - "integrity": "sha512-5tQykt+LqfJFBEYaDITx7S7cR7mJ/zQmLXZ2qt5w04ainYZw6tBf9dBunMjVeVOdYVRUzUOE4HkY5J7+uttb5Q==", - "dependencies": { - "address": "^1.0.1", - "debug": "^2.6.0" - }, - "bin": { - "detect": "bin/detect-port", - "detect-port": "bin/detect-port" - }, - "engines": { - "node": ">= 4.2.1" - } - }, - "node_modules/detect-port-alt/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/detect-port-alt/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/didyoumean": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", - "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==" - }, - "node_modules/diff-sequences": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", - "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/dlv": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", - "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==" - }, - "node_modules/dns-equal": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", - "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==" - }, - "node_modules/dns-packet": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.0.tgz", - "integrity": "sha512-rza3UH1LwdHh9qyPXp8lkwpjSNk/AMD3dPytUoRoqnypDUhY0xvbdmVhWOfxO68frEfV9BU8V12Ez7ZsHGZpCQ==", - "dependencies": { - "@leichtgewicht/ip-codec": "^2.0.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/dom-accessibility-api": { - "version": "0.5.16", - "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", - "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==" - }, - "node_modules/dom-converter": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", - "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", - "dependencies": { - "utila": "~0.4" - } - }, - "node_modules/dom-serializer": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", - "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.0", - "entities": "^2.0.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "node_modules/domelementtype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", - "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ] - }, - "node_modules/domexception": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", - "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", - "dependencies": { - "webidl-conversions": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/domexception/node_modules/webidl-conversions": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", - "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", - "engines": { - "node": ">=8" - } - }, - "node_modules/domhandler": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", - "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", - "dependencies": { - "domelementtype": "^2.2.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/domutils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", - "dependencies": { - "dom-serializer": "^1.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, - "node_modules/dot-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", - "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/dotenv": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", - "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", - "engines": { - "node": ">=10" - } - }, - "node_modules/dotenv-expand": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", - "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==" - }, - "node_modules/duplexer": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" - }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" - }, - "node_modules/ejs": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", - "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", - "dependencies": { - "jake": "^10.8.5" - }, - "bin": { - "ejs": "bin/cli.js" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/electron-to-chromium": { - "version": "1.4.411", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.411.tgz", - "integrity": "sha512-5VXLW4Qw89vM2WTICHua/y8v7fKGDRVa2VPOtBB9IpLvW316B+xd8yD1wTmLPY2ot/00P/qt87xdolj4aG/Lzg==" - }, - "node_modules/emittery": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", - "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/emittery?sponsor=1" - } - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" - }, - "node_modules/emojis-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/enhanced-resolve": { - "version": "5.14.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.14.1.tgz", - "integrity": "sha512-Vklwq2vDKtl0y/vtwjSesgJ5MYS7Etuk5txS8VdKL4AOS1aUlD96zqIfsOSLQsdv3xgMRbtkWM8eG9XDfKUPow==", - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/error-stack-parser": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz", - "integrity": "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==", - "dependencies": { - "stackframe": "^1.3.4" - } - }, - "node_modules/es-abstract": { - "version": "1.21.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", - "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", - "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-set-tostringtag": "^2.0.1", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.2.0", - "get-symbol-description": "^1.0.0", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.5", - "is-array-buffer": "^3.0.2", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.10", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.3", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "safe-regex-test": "^1.0.0", - "string.prototype.trim": "^1.2.7", - "string.prototype.trimend": "^1.0.6", - "string.prototype.trimstart": "^1.0.6", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.9" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-array-method-boxes-properly": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz", - "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==" - }, - "node_modules/es-get-iterator": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", - "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "is-arguments": "^1.1.1", - "is-map": "^2.0.2", - "is-set": "^2.0.2", - "is-string": "^1.0.7", - "isarray": "^2.0.5", - "stop-iteration-iterator": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-module-lexer": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz", - "integrity": "sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==" - }, - "node_modules/es-set-tostringtag": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", - "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", - "dependencies": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", - "dependencies": { - "has": "^1.0.3" - } - }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" - }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/escodegen": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", - "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=6.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "node_modules/escodegen/node_modules/levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/escodegen/node_modules/optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dependencies": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/escodegen/node_modules/prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/escodegen/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/escodegen/node_modules/type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "dependencies": { - "prelude-ls": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/eslint": { - "version": "8.41.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.41.0.tgz", - "integrity": "sha512-WQDQpzGBOP5IrXPo4Hc0814r4/v2rrIsB0rhT7jtunIalgg6gYXWhRMOejVO8yH21T/FGaxjmFjBMNqcIlmH1Q==", - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.3", - "@eslint/js": "8.41.0", - "@humanwhocodes/config-array": "^0.11.8", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.0", - "eslint-visitor-keys": "^3.4.1", - "espree": "^9.5.2", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-config-react-app": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/eslint-config-react-app/-/eslint-config-react-app-7.0.1.tgz", - "integrity": "sha512-K6rNzvkIeHaTd8m/QEh1Zko0KI7BACWkkneSs6s9cKZC/J27X3eZR6Upt1jkmZ/4FK+XUOPPxMEN7+lbUXfSlA==", - "dependencies": { - "@babel/core": "^7.16.0", - "@babel/eslint-parser": "^7.16.3", - "@rushstack/eslint-patch": "^1.1.0", - "@typescript-eslint/eslint-plugin": "^5.5.0", - "@typescript-eslint/parser": "^5.5.0", - "babel-preset-react-app": "^10.0.1", - "confusing-browser-globals": "^1.0.11", - "eslint-plugin-flowtype": "^8.0.3", - "eslint-plugin-import": "^2.25.3", - "eslint-plugin-jest": "^25.3.0", - "eslint-plugin-jsx-a11y": "^6.5.1", - "eslint-plugin-react": "^7.27.1", - "eslint-plugin-react-hooks": "^4.3.0", - "eslint-plugin-testing-library": "^5.0.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "eslint": "^8.0.0" - } - }, - "node_modules/eslint-import-resolver-node": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", - "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", - "dependencies": { - "debug": "^3.2.7", - "is-core-module": "^2.11.0", - "resolve": "^1.22.1" - } - }, - "node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-module-utils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", - "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", - "dependencies": { - "debug": "^3.2.7" - }, - "engines": { - "node": ">=4" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } - } - }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-flowtype": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-8.0.3.tgz", - "integrity": "sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==", - "dependencies": { - "lodash": "^4.17.21", - "string-natural-compare": "^3.0.1" - }, - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "@babel/plugin-syntax-flow": "^7.14.5", - "@babel/plugin-transform-react-jsx": "^7.14.9", - "eslint": "^8.1.0" - } - }, - "node_modules/eslint-plugin-import": { - "version": "2.27.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", - "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", - "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.flat": "^1.3.1", - "array.prototype.flatmap": "^1.3.1", - "debug": "^3.2.7", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.7", - "eslint-module-utils": "^2.7.4", - "has": "^1.0.3", - "is-core-module": "^2.11.0", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.values": "^1.1.6", - "resolve": "^1.22.1", - "semver": "^6.3.0", - "tsconfig-paths": "^3.14.1" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" - } - }, - "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-import/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eslint-plugin-import/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/eslint-plugin-jest": { - "version": "25.7.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-25.7.0.tgz", - "integrity": "sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==", - "dependencies": { - "@typescript-eslint/experimental-utils": "^5.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - }, - "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^4.0.0 || ^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "@typescript-eslint/eslint-plugin": { - "optional": true - }, - "jest": { - "optional": true - } - } - }, - "node_modules/eslint-plugin-jsx-a11y": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", - "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", - "dependencies": { - "@babel/runtime": "^7.20.7", - "aria-query": "^5.1.3", - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "ast-types-flow": "^0.0.7", - "axe-core": "^4.6.2", - "axobject-query": "^3.1.1", - "damerau-levenshtein": "^1.0.8", - "emoji-regex": "^9.2.2", - "has": "^1.0.3", - "jsx-ast-utils": "^3.3.3", - "language-tags": "=1.0.5", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=4.0" - }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" - } - }, - "node_modules/eslint-plugin-jsx-a11y/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/eslint-plugin-react": { - "version": "7.32.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz", - "integrity": "sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==", - "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "array.prototype.tosorted": "^1.1.1", - "doctrine": "^2.1.0", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "object.hasown": "^1.1.2", - "object.values": "^1.1.6", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.4", - "semver": "^6.3.0", - "string.prototype.matchall": "^4.0.8" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" - } - }, - "node_modules/eslint-plugin-react-hooks": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", - "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==", - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" - } - }, - "node_modules/eslint-plugin-react/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eslint-plugin-react/node_modules/resolve": { - "version": "2.0.0-next.4", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", - "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", - "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/eslint-plugin-react/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/eslint-plugin-testing-library": { - "version": "5.11.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-testing-library/-/eslint-plugin-testing-library-5.11.0.tgz", - "integrity": "sha512-ELY7Gefo+61OfXKlQeXNIDVVLPcvKTeiQOoMZG9TeuWa7Ln4dUNRv8JdRWBQI9Mbb427XGlVB1aa1QPZxBJM8Q==", - "dependencies": { - "@typescript-eslint/utils": "^5.58.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0", - "npm": ">=6" - }, - "peerDependencies": { - "eslint": "^7.5.0 || ^8.0.0" - } - }, - "node_modules/eslint-scope": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", - "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-webpack-plugin": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/eslint-webpack-plugin/-/eslint-webpack-plugin-3.2.0.tgz", - "integrity": "sha512-avrKcGncpPbPSUHX6B3stNGzkKFto3eL+DKM4+VyMrVnhPc3vRczVlCq3uhuFOdRvDHTVXuzwk1ZKUrqDQHQ9w==", - "dependencies": { - "@types/eslint": "^7.29.0 || ^8.4.1", - "jest-worker": "^28.0.2", - "micromatch": "^4.0.5", - "normalize-path": "^3.0.0", - "schema-utils": "^4.0.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0", - "webpack": "^5.0.0" - } - }, - "node_modules/eslint-webpack-plugin/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/eslint-webpack-plugin/node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/eslint-webpack-plugin/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint-webpack-plugin/node_modules/jest-worker": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-28.1.3.tgz", - "integrity": "sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==", - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/eslint-webpack-plugin/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/eslint-webpack-plugin/node_modules/schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/eslint-webpack-plugin/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/eslint/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/eslint/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "node_modules/eslint/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/eslint/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/eslint/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/eslint/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/eslint/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/espree": { - "version": "9.5.2", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", - "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", - "dependencies": { - "acorn": "^8.8.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estree-walker": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", - "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==" - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/eventemitter3": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" - }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/expect": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", - "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", - "dependencies": { - "@jest/types": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/express": { - "version": "4.18.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", - "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", - "dependencies": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.1", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.5.0", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.2.0", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.7", - "qs": "6.11.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/express/node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" - }, - "node_modules/express/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/express/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "node_modules/fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" - }, - "node_modules/fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/faye-websocket": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", - "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", - "dependencies": { - "websocket-driver": ">=0.5.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/fb-watchman": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", - "dependencies": { - "bser": "2.1.1" - } - }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/file-loader": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", - "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", - "dependencies": { - "loader-utils": "^2.0.0", - "schema-utils": "^3.0.0" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.0.0 || ^5.0.0" - } - }, - "node_modules/filelist": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", - "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", - "dependencies": { - "minimatch": "^5.0.1" - } - }, - "node_modules/filelist/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/filelist/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/filesize": { - "version": "8.0.7", - "resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz", - "integrity": "sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ==", - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/finalhandler": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", - "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/finalhandler/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/finalhandler/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/find-cache-dir": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", - "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", - "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/avajs/find-cache-dir?sponsor=1" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", - "dependencies": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==" - }, - "node_modules/follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dependencies": { - "is-callable": "^1.1.3" - } - }, - "node_modules/fork-ts-checker-webpack-plugin": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.3.tgz", - "integrity": "sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==", - "dependencies": { - "@babel/code-frame": "^7.8.3", - "@types/json-schema": "^7.0.5", - "chalk": "^4.1.0", - "chokidar": "^3.4.2", - "cosmiconfig": "^6.0.0", - "deepmerge": "^4.2.2", - "fs-extra": "^9.0.0", - "glob": "^7.1.6", - "memfs": "^3.1.2", - "minimatch": "^3.0.4", - "schema-utils": "2.7.0", - "semver": "^7.3.2", - "tapable": "^1.0.0" - }, - "engines": { - "node": ">=10", - "yarn": ">=1.0.0" - }, - "peerDependencies": { - "eslint": ">= 6", - "typescript": ">= 2.7", - "vue-template-compiler": "*", - "webpack": ">= 4" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - }, - "vue-template-compiler": { - "optional": true - } - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/cosmiconfig": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", - "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", - "dependencies": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.1.0", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.7.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/schema-utils": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz", - "integrity": "sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==", - "dependencies": { - "@types/json-schema": "^7.0.4", - "ajv": "^6.12.2", - "ajv-keywords": "^3.4.1" - }, - "engines": { - "node": ">= 8.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/fork-ts-checker-webpack-plugin/node_modules/tapable": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", - "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fraction.js": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", - "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==", - "engines": { - "node": "*" - }, - "funding": { - "type": "patreon", - "url": "https://www.patreon.com/infusion" - } - }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/fs-monkey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz", - "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==" - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - }, - "node_modules/function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", - "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-own-enumerable-property-symbols": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", - "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==" - }, - "node_modules/get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" - }, - "node_modules/global-modules": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", - "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", - "dependencies": { - "global-prefix": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/global-prefix": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", - "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", - "dependencies": { - "ini": "^1.3.5", - "kind-of": "^6.0.2", - "which": "^1.3.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/global-prefix/node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "engines": { - "node": ">=4" - } - }, - "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "dependencies": { - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, - "node_modules/grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==" - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==" - }, - "node_modules/gzip-size": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", - "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", - "dependencies": { - "duplexer": "^0.1.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/handle-thing": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", - "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==" - }, - "node_modules/harmony-reflect": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/harmony-reflect/-/harmony-reflect-1.6.2.tgz", - "integrity": "sha512-HIp/n38R9kQjDEziXyDTuW3vvoxxyxjxFzXLrBr18uB47GnSt+G9D29fqrpM5ZkspMcPICud3XsBJQ4Y2URg8g==" - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "engines": { - "node": ">=4" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "dependencies": { - "get-intrinsic": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "bin": { - "he": "bin/he" - } - }, - "node_modules/hoopy": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz", - "integrity": "sha512-HRcs+2mr52W0K+x8RzcLzuPPmVIKMSv97RGHy0Ea9y/mpcaK+xTrjICA04KAHi4GRzxliNqNJEFYWHghy3rSfQ==", - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/hpack.js": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", - "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==", - "dependencies": { - "inherits": "^2.0.1", - "obuf": "^1.0.0", - "readable-stream": "^2.0.1", - "wbuf": "^1.1.0" - } - }, - "node_modules/hpack.js/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "node_modules/hpack.js/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/hpack.js/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/hpack.js/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/html-encoding-sniffer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", - "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", - "dependencies": { - "whatwg-encoding": "^1.0.5" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/html-entities": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.3.tgz", - "integrity": "sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA==" - }, - "node_modules/html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==" - }, - "node_modules/html-minifier-terser": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", - "integrity": "sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==", - "dependencies": { - "camel-case": "^4.1.2", - "clean-css": "^5.2.2", - "commander": "^8.3.0", - "he": "^1.2.0", - "param-case": "^3.0.4", - "relateurl": "^0.2.7", - "terser": "^5.10.0" - }, - "bin": { - "html-minifier-terser": "cli.js" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/html-webpack-plugin": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.5.1.tgz", - "integrity": "sha512-cTUzZ1+NqjGEKjmVgZKLMdiFg3m9MdRXkZW2OEe69WYVi5ONLMmlnSZdXzGGMOq0C8jGDrL6EWyEDDUioHO/pA==", - "dependencies": { - "@types/html-minifier-terser": "^6.0.0", - "html-minifier-terser": "^6.0.2", - "lodash": "^4.17.21", - "pretty-error": "^4.0.0", - "tapable": "^2.0.0" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/html-webpack-plugin" - }, - "peerDependencies": { - "webpack": "^5.20.0" - } - }, - "node_modules/htmlparser2": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", - "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", - "funding": [ - "https://github.com/fb55/htmlparser2?sponsor=1", - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ], - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.0.0", - "domutils": "^2.5.2", - "entities": "^2.0.0" - } - }, - "node_modules/http-deceiver": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", - "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==" - }, - "node_modules/http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/http-parser-js": { - "version": "0.5.8", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", - "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==" - }, - "node_modules/http-proxy": { - "version": "1.18.1", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", - "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", - "dependencies": { - "eventemitter3": "^4.0.0", - "follow-redirects": "^1.0.0", - "requires-port": "^1.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/http-proxy-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", - "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/http-proxy-middleware": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", - "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", - "dependencies": { - "@types/http-proxy": "^1.17.8", - "http-proxy": "^1.18.1", - "is-glob": "^4.0.1", - "is-plain-obj": "^3.0.0", - "micromatch": "^4.0.2" - }, - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "@types/express": "^4.17.13" - }, - "peerDependenciesMeta": { - "@types/express": { - "optional": true - } - } - }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/icss-utils": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", - "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/idb": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz", - "integrity": "sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ==" - }, - "node_modules/identity-obj-proxy": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/identity-obj-proxy/-/identity-obj-proxy-3.0.0.tgz", - "integrity": "sha512-00n6YnVHKrinT9t0d9+5yZC6UBNJANpYEQvL2LlX6Ab9lnmxzIRcEmTPuyGScvl1+jKuCICX1Z0Ab1pPKKdikA==", - "dependencies": { - "harmony-reflect": "^1.4.6" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/immer": { - "version": "9.0.21", - "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", - "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/immer" - } - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-fresh/node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "engines": { - "node": ">=4" - } - }, - "node_modules/import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "node_modules/ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" - }, - "node_modules/internal-slot": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", - "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", - "dependencies": { - "get-intrinsic": "^1.2.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/ipaddr.js": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz", - "integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==", - "engines": { - "node": ">= 10" - } - }, - "node_modules/is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-array-buffer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", - "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "is-typed-array": "^1.1.10" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" - }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-core-module": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", - "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-generator-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", - "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", - "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==" - }, - "node_modules/is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-plain-obj": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", - "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==" - }, - "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-regexp": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", - "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-root": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-root/-/is-root-2.1.0.tgz", - "integrity": "sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg==", - "engines": { - "node": ">=6" - } - }, - "node_modules/is-set": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", - "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", - "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" - }, - "node_modules/is-weakmap": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", - "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakset": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", - "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" - }, - "node_modules/istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", - "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-report/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-report/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-source-maps/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/istanbul-reports": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", - "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jake": { - "version": "10.8.6", - "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.6.tgz", - "integrity": "sha512-G43Ub9IYEFfu72sua6rzooi8V8Gz2lkfk48rW20vEWCGizeaEPlKB1Kh8JIA84yQbiAEfqlPmSpGgCKKxH3rDA==", - "dependencies": { - "async": "^3.2.3", - "chalk": "^4.0.2", - "filelist": "^1.0.4", - "minimatch": "^3.1.2" - }, - "bin": { - "jake": "bin/cli.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jake/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jake/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jake/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jake/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jake/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jake/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", - "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", - "dependencies": { - "@jest/core": "^27.5.1", - "import-local": "^3.0.2", - "jest-cli": "^27.5.1" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/jest-changed-files": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", - "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", - "dependencies": { - "@jest/types": "^27.5.1", - "execa": "^5.0.0", - "throat": "^6.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-circus": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", - "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "dedent": "^0.7.0", - "expect": "^27.5.1", - "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3", - "throat": "^6.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-circus/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-circus/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-circus/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-circus/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-circus/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-circus/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-cli": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", - "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", - "dependencies": { - "@jest/core": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "import-local": "^3.0.2", - "jest-config": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "prompts": "^2.0.1", - "yargs": "^16.2.0" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/jest-cli/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-cli/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-cli/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-cli/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-cli/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-cli/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-config": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", - "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", - "dependencies": { - "@babel/core": "^7.8.0", - "@jest/test-sequencer": "^27.5.1", - "@jest/types": "^27.5.1", - "babel-jest": "^27.5.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.1", - "graceful-fs": "^4.2.9", - "jest-circus": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-jasmine2": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "ts-node": { - "optional": true - } - } - }, - "node_modules/jest-config/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-config/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-config/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-config/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-config/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-config/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-diff": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", - "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-diff/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-diff/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-diff/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-diff/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-diff/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-diff/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-docblock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", - "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", - "dependencies": { - "detect-newline": "^3.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-each": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", - "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", - "dependencies": { - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-each/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-each/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-each/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-each/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-each/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-each/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-environment-jsdom": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", - "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1", - "jsdom": "^16.6.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-node": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", - "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-get-type": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-haste-map": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", - "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", - "dependencies": { - "@jest/types": "^27.5.1", - "@types/graceful-fs": "^4.1.2", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^27.5.1", - "jest-serializer": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "micromatch": "^4.0.4", - "walker": "^1.0.7" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "optionalDependencies": { - "fsevents": "^2.3.2" - } - }, - "node_modules/jest-jasmine2": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", - "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "expect": "^27.5.1", - "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", - "throat": "^6.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-jasmine2/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-jasmine2/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-jasmine2/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-jasmine2/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-jasmine2/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-jasmine2/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-leak-detector": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", - "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", - "dependencies": { - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-matcher-utils": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", - "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-matcher-utils/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-matcher-utils/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-matcher-utils/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-matcher-utils/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-matcher-utils/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-matcher-utils/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-message-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-message-util/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-message-util/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-message-util/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-message-util/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-message-util/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-message-util/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-mock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", - "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-pnp-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", - "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "engines": { - "node": ">=6" - }, - "peerDependencies": { - "jest-resolve": "*" - }, - "peerDependenciesMeta": { - "jest-resolve": { - "optional": true - } - } - }, - "node_modules/jest-regex-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", - "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==", - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-resolve": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", - "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", - "dependencies": { - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "resolve": "^1.20.0", - "resolve.exports": "^1.1.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-resolve-dependencies": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", - "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", - "dependencies": { - "@jest/types": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-snapshot": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-resolve/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-resolve/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-resolve/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-resolve/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-resolve/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-resolve/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runner": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", - "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", - "dependencies": { - "@jest/console": "^27.5.1", - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.8.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-leak-detector": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "source-map-support": "^0.5.6", - "throat": "^6.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-runner/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-runner/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-runner/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-runner/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-runner/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runner/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runtime": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", - "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/globals": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "execa": "^5.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-runtime/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-runtime/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-runtime/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-runtime/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-runtime/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runtime/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-serializer": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", - "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", - "dependencies": { - "@types/node": "*", - "graceful-fs": "^4.2.9" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-snapshot": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", - "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", - "dependencies": { - "@babel/core": "^7.7.2", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/traverse": "^7.7.2", - "@babel/types": "^7.0.0", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__traverse": "^7.0.4", - "@types/prettier": "^2.1.5", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^27.5.1", - "graceful-fs": "^4.2.9", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", - "natural-compare": "^1.4.0", - "pretty-format": "^27.5.1", - "semver": "^7.3.2" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-snapshot/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-snapshot/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-snapshot/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-snapshot/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-util/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-util/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-util/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-util/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-util/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-util/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-validate": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", - "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", - "dependencies": { - "@jest/types": "^27.5.1", - "camelcase": "^6.2.0", - "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", - "leven": "^3.1.0", - "pretty-format": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-validate/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-validate/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-validate/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-validate/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-validate/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-validate/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-watch-typeahead": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/jest-watch-typeahead/-/jest-watch-typeahead-1.1.0.tgz", - "integrity": "sha512-Va5nLSJTN7YFtC2jd+7wsoe1pNe5K4ShLux/E5iHEwlB9AxaxmggY7to9KUqKojhaJw3aXqt5WAb4jGPOolpEw==", - "dependencies": { - "ansi-escapes": "^4.3.1", - "chalk": "^4.0.0", - "jest-regex-util": "^28.0.0", - "jest-watcher": "^28.0.0", - "slash": "^4.0.0", - "string-length": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "jest": "^27.0.0 || ^28.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/@jest/console": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-28.1.3.tgz", - "integrity": "sha512-QPAkP5EwKdK/bxIr6C1I4Vs0rm2nHiANzj/Z5X2JQkrZo6IqvC4ldZ9K95tF0HdidhA8Bo6egxSzUFPYKcEXLw==", - "dependencies": { - "@jest/types": "^28.1.3", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^28.1.3", - "jest-util": "^28.1.3", - "slash": "^3.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/@jest/console/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-watch-typeahead/node_modules/@jest/test-result": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-28.1.3.tgz", - "integrity": "sha512-kZAkxnSE+FqE8YjW8gNuoVkkC9I7S1qmenl8sGcDOLropASP+BkcGKwhXoyqQuGOGeYY0y/ixjrd/iERpEXHNg==", - "dependencies": { - "@jest/console": "^28.1.3", - "@jest/types": "^28.1.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/@jest/types": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-28.1.3.tgz", - "integrity": "sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ==", - "dependencies": { - "@jest/schemas": "^28.1.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/@types/yargs": { - "version": "17.0.24", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", - "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/jest-watch-typeahead/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-watch-typeahead/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-watch-typeahead/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-watch-typeahead/node_modules/emittery": { - "version": "0.10.2", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.10.2.tgz", - "integrity": "sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sindresorhus/emittery?sponsor=1" - } - }, - "node_modules/jest-watch-typeahead/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-watch-typeahead/node_modules/jest-message-util": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-28.1.3.tgz", - "integrity": "sha512-PFdn9Iewbt575zKPf1286Ht9EPoJmYT7P0kY+RibeYZ2XtOr53pDLEFoTWXbd1h4JiGiWpTBC84fc8xMXQMb7g==", - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^28.1.3", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^28.1.3", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/jest-message-util/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-watch-typeahead/node_modules/jest-regex-util": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-28.0.2.tgz", - "integrity": "sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw==", - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/jest-util": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-28.1.3.tgz", - "integrity": "sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ==", - "dependencies": { - "@jest/types": "^28.1.3", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/jest-watcher": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-28.1.3.tgz", - "integrity": "sha512-t4qcqj9hze+jviFPUN3YAtAEeFnr/azITXQEMARf5cMwKY2SMBRnCQTXLixTl20OR6mLh9KLMrgVJgJISym+1g==", - "dependencies": { - "@jest/test-result": "^28.1.3", - "@jest/types": "^28.1.3", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.10.2", - "jest-util": "^28.1.3", - "string-length": "^4.0.1" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/jest-watcher/node_modules/string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "dependencies": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jest-watch-typeahead/node_modules/jest-watcher/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-watch-typeahead/node_modules/pretty-format": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-28.1.3.tgz", - "integrity": "sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q==", - "dependencies": { - "@jest/schemas": "^28.1.3", - "ansi-regex": "^5.0.1", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-watch-typeahead/node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-watch-typeahead/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" - }, - "node_modules/jest-watch-typeahead/node_modules/slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/jest-watch-typeahead/node_modules/string-length": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-5.0.1.tgz", - "integrity": "sha512-9Ep08KAMUn0OadnVaBuRdE2l615CQ508kr0XMadjClfYpdCyvrbFp6Taebo8yyxokQ4viUd/xPPUA4FGgUa0ow==", - "dependencies": { - "char-regex": "^2.0.0", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/jest-watch-typeahead/node_modules/string-length/node_modules/char-regex": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-2.0.1.tgz", - "integrity": "sha512-oSvEeo6ZUD7NepqAat3RqoucZ5SeqLJgOvVIwkafu6IP3V0pO38s/ypdVUmDDK6qIIHNlYHJAKX9E7R7HoKElw==", - "engines": { - "node": ">=12.20" - } - }, - "node_modules/jest-watch-typeahead/node_modules/strip-ansi": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz", - "integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/jest-watch-typeahead/node_modules/strip-ansi/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/jest-watch-typeahead/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-watcher": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", - "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", - "dependencies": { - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "jest-util": "^27.5.1", - "string-length": "^4.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-watcher/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-watcher/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-watcher/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-watcher/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/jest-watcher/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-watcher/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/jest-worker/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/jiti": { - "version": "1.18.2", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.18.2.tgz", - "integrity": "sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==", - "bin": { - "jiti": "bin/jiti.js" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - }, - "node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsdom": { - "version": "16.7.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", - "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", - "dependencies": { - "abab": "^2.0.5", - "acorn": "^8.2.4", - "acorn-globals": "^6.0.0", - "cssom": "^0.4.4", - "cssstyle": "^2.3.0", - "data-urls": "^2.0.0", - "decimal.js": "^10.2.1", - "domexception": "^2.0.1", - "escodegen": "^2.0.0", - "form-data": "^3.0.0", - "html-encoding-sniffer": "^2.0.1", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.0", - "parse5": "6.0.1", - "saxes": "^5.0.1", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.0.0", - "w3c-hr-time": "^1.0.2", - "w3c-xmlserializer": "^2.0.0", - "webidl-conversions": "^6.1.0", - "whatwg-encoding": "^1.0.5", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.5.0", - "ws": "^7.4.6", - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" - }, - "node_modules/json-schema": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==" - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/jsonpointer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", - "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/jsx-ast-utils": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", - "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", - "dependencies": { - "array-includes": "^3.1.5", - "object.assign": "^4.1.3" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "engines": { - "node": ">=6" - } - }, - "node_modules/klona": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", - "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/language-subtag-registry": { - "version": "0.3.22", - "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", - "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==" - }, - "node_modules/language-tags": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", - "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", - "dependencies": { - "language-subtag-registry": "~0.3.2" - } - }, - "node_modules/launch-editor": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz", - "integrity": "sha512-JpDCcQnyAAzZZaZ7vEiSqL690w7dAEyLao+KC96zBplnYbJS7TYNjvM3M7y3dGz+v7aIsJk3hllWuc0kWAjyRQ==", - "dependencies": { - "picocolors": "^1.0.0", - "shell-quote": "^1.7.3" - } - }, - "node_modules/leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "engines": { - "node": ">=6" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lilconfig": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", - "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", - "engines": { - "node": ">=10" - } - }, - "node_modules/lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" - }, - "node_modules/loader-runner": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", - "engines": { - "node": ">=6.11.5" - } - }, - "node_modules/loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "dependencies": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - }, - "engines": { - "node": ">=8.9.0" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "node_modules/lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" - }, - "node_modules/lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==" - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" - }, - "node_modules/lodash.sortby": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", - "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==" - }, - "node_modules/lodash.uniq": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", - "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==" - }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "node_modules/lower-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", - "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/lz-string": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", - "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==", - "bin": { - "lz-string": "bin/bin.js" - } - }, - "node_modules/magic-string": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", - "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", - "dependencies": { - "sourcemap-codec": "^1.4.8" - } - }, - "node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-dir/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/makeerror": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "dependencies": { - "tmpl": "1.0.5" - } - }, - "node_modules/mdn-data": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz", - "integrity": "sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA==" - }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/memfs": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.1.tgz", - "integrity": "sha512-UWbFJKvj5k+nETdteFndTpYxdeTMox/ULeqX5k/dpaQJCCFmj5EeKv3dBcyO2xmkRAx2vppRu5dVG7SOtsGOzA==", - "dependencies": { - "fs-monkey": "^1.0.3" - }, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "engines": { - "node": ">=6" - } - }, - "node_modules/min-indent": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", - "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", - "engines": { - "node": ">=4" - } - }, - "node_modules/mini-css-extract-plugin": { - "version": "2.7.6", - "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.7.6.tgz", - "integrity": "sha512-Qk7HcgaPkGG6eD77mLvZS1nmxlao3j+9PkrT9Uc7HAE1id3F41+DdBRYRYkbyfNRGzm8/YWtzhw7nVPmwhqTQw==", - "dependencies": { - "schema-utils": "^4.0.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - } - }, - "node_modules/mini-css-extract-plugin/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/mini-css-extract-plugin/node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/mini-css-extract-plugin/node_modules/schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "node_modules/multicast-dns": { - "version": "7.2.5", - "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz", - "integrity": "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==", - "dependencies": { - "dns-packet": "^5.2.2", - "thunky": "^1.0.2" - }, - "bin": { - "multicast-dns": "cli.js" - } - }, - "node_modules/mz": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", - "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", - "dependencies": { - "any-promise": "^1.0.0", - "object-assign": "^4.0.1", - "thenify-all": "^1.0.0" - } - }, - "node_modules/nanoid": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", - "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" - }, - "node_modules/natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==" - }, - "node_modules/negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" - }, - "node_modules/no-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", - "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", - "dependencies": { - "lower-case": "^2.0.2", - "tslib": "^2.0.3" - } - }, - "node_modules/node-forge": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", - "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", - "engines": { - "node": ">= 6.13.0" - } - }, - "node_modules/node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==" - }, - "node_modules/node-releases": { - "version": "2.0.12", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", - "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==" - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/nth-check": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", - "dependencies": { - "boolbase": "^1.0.0" - }, - "funding": { - "url": "https://github.com/fb55/nth-check?sponsor=1" - } - }, - "node_modules/nwsapi": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.4.tgz", - "integrity": "sha512-NHj4rzRo0tQdijE9ZqAx6kYDcoRwYwSYzCA8MY3JzfxlrvEU0jhnhJT9BhqhJs7I/dKcrDm6TyulaRqZPIhN5g==" - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-hash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", - "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-is": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", - "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.entries": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", - "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.fromentries": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", - "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.getownpropertydescriptors": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.6.tgz", - "integrity": "sha512-lq+61g26E/BgHv0ZTFgRvi7NMEPuAxLkFU7rukXjc/AlwH4Am5xXVnIXy3un1bg/JPbXHrixRkK1itUzzPiIjQ==", - "dependencies": { - "array.prototype.reduce": "^1.0.5", - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.21.2", - "safe-array-concat": "^1.0.0" - }, - "engines": { - "node": ">= 0.8" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.hasown": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", - "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", - "dependencies": { - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.values": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", - "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/obuf": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", - "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==" - }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/on-headers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/open": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", - "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", - "dependencies": { - "define-lazy-prop": "^2.0.0", - "is-docker": "^2.1.1", - "is-wsl": "^2.2.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-retry": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", - "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", - "dependencies": { - "@types/retry": "0.12.0", - "retry": "^0.13.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/param-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", - "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", - "dependencies": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==" - }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/pascal-case": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", - "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - }, - "node_modules/path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" - }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pirates": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", - "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-dir/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-up": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", - "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", - "dependencies": { - "find-up": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-up/node_modules/find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dependencies": { - "locate-path": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-up/node_modules/p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dependencies": { - "p-limit": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/pkg-up/node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss": { - "version": "8.4.23", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.23.tgz", - "integrity": "sha512-bQ3qMcpF6A/YjR55xtoTr0jGOlnPOKAIMdOWiv0EIT6HVPEaJiJB4NLljSbiHoC2RX7DN5Uvjtpbg1NPdwv1oA==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "nanoid": "^3.3.6", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/postcss-attribute-case-insensitive": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-5.0.2.tgz", - "integrity": "sha512-XIidXV8fDr0kKt28vqki84fRK8VW8eTuIa4PChv2MqKuT6C9UjmSKzen6KaWhWEoYvwxFCa7n/tC1SZ3tyq4SQ==", - "dependencies": { - "postcss-selector-parser": "^6.0.10" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-browser-comments": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-browser-comments/-/postcss-browser-comments-4.0.0.tgz", - "integrity": "sha512-X9X9/WN3KIvY9+hNERUqX9gncsgBA25XaeR+jshHz2j8+sYyHktHw1JdKuMjeLpGktXidqDhA7b/qm1mrBDmgg==", - "engines": { - "node": ">=8" - }, - "peerDependencies": { - "browserslist": ">=4", - "postcss": ">=8" - } - }, - "node_modules/postcss-calc": { - "version": "8.2.4", - "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", - "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", - "dependencies": { - "postcss-selector-parser": "^6.0.9", - "postcss-value-parser": "^4.2.0" - }, - "peerDependencies": { - "postcss": "^8.2.2" - } - }, - "node_modules/postcss-clamp": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/postcss-clamp/-/postcss-clamp-4.1.0.tgz", - "integrity": "sha512-ry4b1Llo/9zz+PKC+030KUnPITTJAHeOwjfAyyB60eT0AorGLdzp52s31OsPRHRf8NchkgFoG2y6fCfn1IV1Ow==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": ">=7.6.0" - }, - "peerDependencies": { - "postcss": "^8.4.6" - } - }, - "node_modules/postcss-color-functional-notation": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/postcss-color-functional-notation/-/postcss-color-functional-notation-4.2.4.tgz", - "integrity": "sha512-2yrTAUZUab9s6CpxkxC4rVgFEVaR6/2Pipvi6qcgvnYiVqZcbDHEoBDhrXzyb7Efh2CCfHQNtcqWcIruDTIUeg==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-color-hex-alpha": { - "version": "8.0.4", - "resolved": "https://registry.npmjs.org/postcss-color-hex-alpha/-/postcss-color-hex-alpha-8.0.4.tgz", - "integrity": "sha512-nLo2DCRC9eE4w2JmuKgVA3fGL3d01kGq752pVALF68qpGLmx2Qrk91QTKkdUqqp45T1K1XV8IhQpcu1hoAQflQ==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.4" - } - }, - "node_modules/postcss-color-rebeccapurple": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-7.1.1.tgz", - "integrity": "sha512-pGxkuVEInwLHgkNxUc4sdg4g3py7zUeCQ9sMfwyHAT+Ezk8a4OaaVZ8lIY5+oNqA/BXXgLyXv0+5wHP68R79hg==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-colormin": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", - "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==", - "dependencies": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0", - "colord": "^2.9.1", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-convert-values": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz", - "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==", - "dependencies": { - "browserslist": "^4.21.4", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-custom-media": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-8.0.2.tgz", - "integrity": "sha512-7yi25vDAoHAkbhAzX9dHx2yc6ntS4jQvejrNcC+csQJAXjj15e7VcWfMgLqBNAbOvqi5uIa9huOVwdHbf+sKqg==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.3" - } - }, - "node_modules/postcss-custom-properties": { - "version": "12.1.11", - "resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-12.1.11.tgz", - "integrity": "sha512-0IDJYhgU8xDv1KY6+VgUwuQkVtmYzRwu+dMjnmdMafXYv86SWqfxkc7qdDvWS38vsjaEtv8e0vGOUQrAiMBLpQ==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-custom-selectors": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/postcss-custom-selectors/-/postcss-custom-selectors-6.0.3.tgz", - "integrity": "sha512-fgVkmyiWDwmD3JbpCmB45SvvlCD6z9CG6Ie6Iere22W5aHea6oWa7EM2bpnv2Fj3I94L3VbtvX9KqwSi5aFzSg==", - "dependencies": { - "postcss-selector-parser": "^6.0.4" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.3" - } - }, - "node_modules/postcss-dir-pseudo-class": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/postcss-dir-pseudo-class/-/postcss-dir-pseudo-class-6.0.5.tgz", - "integrity": "sha512-eqn4m70P031PF7ZQIvSgy9RSJ5uI2171O/OO/zcRNYpJbvaeKFUlar1aJ7rmgiQtbm0FSPsRewjpdS0Oew7MPA==", - "dependencies": { - "postcss-selector-parser": "^6.0.10" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-discard-comments": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", - "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-duplicates": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", - "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-empty": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", - "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-overridden": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", - "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-double-position-gradients": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-3.1.2.tgz", - "integrity": "sha512-GX+FuE/uBR6eskOK+4vkXgT6pDkexLokPaz/AbJna9s5Kzp/yl488pKPjhy0obB475ovfT1Wv8ho7U/cHNaRgQ==", - "dependencies": { - "@csstools/postcss-progressive-custom-properties": "^1.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-env-function": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/postcss-env-function/-/postcss-env-function-4.0.6.tgz", - "integrity": "sha512-kpA6FsLra+NqcFnL81TnsU+Z7orGtDTxcOhl6pwXeEq1yFPpRMkCDpHhrz8CFQDr/Wfm0jLiNQ1OsGGPjlqPwA==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.4" - } - }, - "node_modules/postcss-flexbugs-fixes": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-flexbugs-fixes/-/postcss-flexbugs-fixes-5.0.2.tgz", - "integrity": "sha512-18f9voByak7bTktR2QgDveglpn9DTbBWPUzSOe9g0N4WR/2eSt6Vrcbf0hmspvMI6YWGywz6B9f7jzpFNJJgnQ==", - "peerDependencies": { - "postcss": "^8.1.4" - } - }, - "node_modules/postcss-focus-visible": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/postcss-focus-visible/-/postcss-focus-visible-6.0.4.tgz", - "integrity": "sha512-QcKuUU/dgNsstIK6HELFRT5Y3lbrMLEOwG+A4s5cA+fx3A3y/JTq3X9LaOj3OC3ALH0XqyrgQIgey/MIZ8Wczw==", - "dependencies": { - "postcss-selector-parser": "^6.0.9" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.4" - } - }, - "node_modules/postcss-focus-within": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/postcss-focus-within/-/postcss-focus-within-5.0.4.tgz", - "integrity": "sha512-vvjDN++C0mu8jz4af5d52CB184ogg/sSxAFS+oUJQq2SuCe7T5U2iIsVJtsCp2d6R4j0jr5+q3rPkBVZkXD9fQ==", - "dependencies": { - "postcss-selector-parser": "^6.0.9" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.4" - } - }, - "node_modules/postcss-font-variant": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-font-variant/-/postcss-font-variant-5.0.0.tgz", - "integrity": "sha512-1fmkBaCALD72CK2a9i468mA/+tr9/1cBxRRMXOUaZqO43oWPR5imcyPjXwuv7PXbCid4ndlP5zWhidQVVa3hmA==", - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-gap-properties": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/postcss-gap-properties/-/postcss-gap-properties-3.0.5.tgz", - "integrity": "sha512-IuE6gKSdoUNcvkGIqdtjtcMtZIFyXZhmFd5RUlg97iVEvp1BZKV5ngsAjCjrVy+14uhGBQl9tzmi1Qwq4kqVOg==", - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-image-set-function": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/postcss-image-set-function/-/postcss-image-set-function-4.0.7.tgz", - "integrity": "sha512-9T2r9rsvYzm5ndsBE8WgtrMlIT7VbtTfE7b3BQnudUqnBcBo7L758oc+o+pdj/dUV0l5wjwSdjeOH2DZtfv8qw==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-import": { - "version": "15.1.0", - "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", - "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", - "dependencies": { - "postcss-value-parser": "^4.0.0", - "read-cache": "^1.0.0", - "resolve": "^1.1.7" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "postcss": "^8.0.0" - } - }, - "node_modules/postcss-initial": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-initial/-/postcss-initial-4.0.1.tgz", - "integrity": "sha512-0ueD7rPqX8Pn1xJIjay0AZeIuDoF+V+VvMt/uOnn+4ezUKhZM/NokDeP6DwMNyIoYByuN/94IQnt5FEkaN59xQ==", - "peerDependencies": { - "postcss": "^8.0.0" - } - }, - "node_modules/postcss-js": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", - "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", - "dependencies": { - "camelcase-css": "^2.0.1" - }, - "engines": { - "node": "^12 || ^14 || >= 16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - "peerDependencies": { - "postcss": "^8.4.21" - } - }, - "node_modules/postcss-lab-function": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/postcss-lab-function/-/postcss-lab-function-4.2.1.tgz", - "integrity": "sha512-xuXll4isR03CrQsmxyz92LJB2xX9n+pZJ5jE9JgcnmsCammLyKdlzrBin+25dy6wIjfhJpKBAN80gsTlCgRk2w==", - "dependencies": { - "@csstools/postcss-progressive-custom-properties": "^1.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-load-config": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.1.tgz", - "integrity": "sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==", - "dependencies": { - "lilconfig": "^2.0.5", - "yaml": "^2.1.1" - }, - "engines": { - "node": ">= 14" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - "peerDependencies": { - "postcss": ">=8.0.9", - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "postcss": { - "optional": true - }, - "ts-node": { - "optional": true - } - } - }, - "node_modules/postcss-load-config/node_modules/yaml": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz", - "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==", - "engines": { - "node": ">= 14" - } - }, - "node_modules/postcss-loader": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.2.1.tgz", - "integrity": "sha512-WbbYpmAaKcux/P66bZ40bpWsBucjx/TTgVVzRZ9yUO8yQfVBlameJ0ZGVaPfH64hNSBh63a+ICP5nqOpBA0w+Q==", - "dependencies": { - "cosmiconfig": "^7.0.0", - "klona": "^2.0.5", - "semver": "^7.3.5" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "postcss": "^7.0.0 || ^8.0.1", - "webpack": "^5.0.0" - } - }, - "node_modules/postcss-logical": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/postcss-logical/-/postcss-logical-5.0.4.tgz", - "integrity": "sha512-RHXxplCeLh9VjinvMrZONq7im4wjWGlRJAqmAVLXyZaXwfDWP73/oq4NdIp+OZwhQUMj0zjqDfM5Fj7qby+B4g==", - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.4" - } - }, - "node_modules/postcss-media-minmax": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-media-minmax/-/postcss-media-minmax-5.0.0.tgz", - "integrity": "sha512-yDUvFf9QdFZTuCUg0g0uNSHVlJ5X1lSzDZjPSFaiCWvjgsvu8vEVxtahPrLMinIDEEGnx6cBe6iqdx5YWz08wQ==", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-merge-longhand": { - "version": "5.1.7", - "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz", - "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==", - "dependencies": { - "postcss-value-parser": "^4.2.0", - "stylehacks": "^5.1.1" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-merge-rules": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz", - "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==", - "dependencies": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0", - "cssnano-utils": "^3.1.0", - "postcss-selector-parser": "^6.0.5" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-font-values": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", - "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-gradients": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", - "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", - "dependencies": { - "colord": "^2.9.1", - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-params": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz", - "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==", - "dependencies": { - "browserslist": "^4.21.4", - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-selectors": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", - "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", - "dependencies": { - "postcss-selector-parser": "^6.0.5" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-modules-extract-imports": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", - "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-modules-local-by-default": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz", - "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==", - "dependencies": { - "icss-utils": "^5.0.0", - "postcss-selector-parser": "^6.0.2", - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-modules-scope": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", - "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", - "dependencies": { - "postcss-selector-parser": "^6.0.4" - }, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-modules-values": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", - "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", - "dependencies": { - "icss-utils": "^5.0.0" - }, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-nested": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz", - "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==", - "dependencies": { - "postcss-selector-parser": "^6.0.11" - }, - "engines": { - "node": ">=12.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - "peerDependencies": { - "postcss": "^8.2.14" - } - }, - "node_modules/postcss-nesting": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-10.2.0.tgz", - "integrity": "sha512-EwMkYchxiDiKUhlJGzWsD9b2zvq/r2SSubcRrgP+jujMXFzqvANLt16lJANC+5uZ6hjI7lpRmI6O8JIl+8l1KA==", - "dependencies": { - "@csstools/selector-specificity": "^2.0.0", - "postcss-selector-parser": "^6.0.10" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-normalize": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize/-/postcss-normalize-10.0.1.tgz", - "integrity": "sha512-+5w18/rDev5mqERcG3W5GZNMJa1eoYYNGo8gB7tEwaos0ajk3ZXAI4mHGcNT47NE+ZnZD1pEpUOFLvltIwmeJA==", - "dependencies": { - "@csstools/normalize.css": "*", - "postcss-browser-comments": "^4", - "sanitize.css": "*" - }, - "engines": { - "node": ">= 12" - }, - "peerDependencies": { - "browserslist": ">= 4", - "postcss": ">= 8" - } - }, - "node_modules/postcss-normalize-charset": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", - "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-display-values": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", - "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-positions": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", - "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-repeat-style": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", - "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-string": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", - "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-timing-functions": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", - "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-unicode": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", - "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==", - "dependencies": { - "browserslist": "^4.21.4", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-url": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", - "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", - "dependencies": { - "normalize-url": "^6.0.1", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-whitespace": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", - "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-opacity-percentage": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/postcss-opacity-percentage/-/postcss-opacity-percentage-1.1.3.tgz", - "integrity": "sha512-An6Ba4pHBiDtyVpSLymUUERMo2cU7s+Obz6BTrS+gxkbnSBNKSuD0AVUc+CpBMrpVPKKfoVz0WQCX+Tnst0i4A==", - "funding": [ - { - "type": "kofi", - "url": "https://ko-fi.com/mrcgrtz" - }, - { - "type": "liberapay", - "url": "https://liberapay.com/mrcgrtz" - } - ], - "engines": { - "node": "^12 || ^14 || >=16" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-ordered-values": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", - "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", - "dependencies": { - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-overflow-shorthand": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/postcss-overflow-shorthand/-/postcss-overflow-shorthand-3.0.4.tgz", - "integrity": "sha512-otYl/ylHK8Y9bcBnPLo3foYFLL6a6Ak+3EQBPOTR7luMYCOsiVTUk1iLvNf6tVPNGXcoL9Hoz37kpfriRIFb4A==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-page-break": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/postcss-page-break/-/postcss-page-break-3.0.4.tgz", - "integrity": "sha512-1JGu8oCjVXLa9q9rFTo4MbeeA5FMe00/9C7lN4va606Rdb+HkxXtXsmEDrIraQ11fGz/WvKWa8gMuCKkrXpTsQ==", - "peerDependencies": { - "postcss": "^8" - } - }, - "node_modules/postcss-place": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/postcss-place/-/postcss-place-7.0.5.tgz", - "integrity": "sha512-wR8igaZROA6Z4pv0d+bvVrvGY4GVHihBCBQieXFY3kuSuMyOmEnnfFzHl/tQuqHZkfkIVBEbDvYcFfHmpSet9g==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-preset-env": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-7.8.3.tgz", - "integrity": "sha512-T1LgRm5uEVFSEF83vHZJV2z19lHg4yJuZ6gXZZkqVsqv63nlr6zabMH3l4Pc01FQCyfWVrh2GaUeCVy9Po+Aag==", - "dependencies": { - "@csstools/postcss-cascade-layers": "^1.1.1", - "@csstools/postcss-color-function": "^1.1.1", - "@csstools/postcss-font-format-keywords": "^1.0.1", - "@csstools/postcss-hwb-function": "^1.0.2", - "@csstools/postcss-ic-unit": "^1.0.1", - "@csstools/postcss-is-pseudo-class": "^2.0.7", - "@csstools/postcss-nested-calc": "^1.0.0", - "@csstools/postcss-normalize-display-values": "^1.0.1", - "@csstools/postcss-oklab-function": "^1.1.1", - "@csstools/postcss-progressive-custom-properties": "^1.3.0", - "@csstools/postcss-stepped-value-functions": "^1.0.1", - "@csstools/postcss-text-decoration-shorthand": "^1.0.0", - "@csstools/postcss-trigonometric-functions": "^1.0.2", - "@csstools/postcss-unset-value": "^1.0.2", - "autoprefixer": "^10.4.13", - "browserslist": "^4.21.4", - "css-blank-pseudo": "^3.0.3", - "css-has-pseudo": "^3.0.4", - "css-prefers-color-scheme": "^6.0.3", - "cssdb": "^7.1.0", - "postcss-attribute-case-insensitive": "^5.0.2", - "postcss-clamp": "^4.1.0", - "postcss-color-functional-notation": "^4.2.4", - "postcss-color-hex-alpha": "^8.0.4", - "postcss-color-rebeccapurple": "^7.1.1", - "postcss-custom-media": "^8.0.2", - "postcss-custom-properties": "^12.1.10", - "postcss-custom-selectors": "^6.0.3", - "postcss-dir-pseudo-class": "^6.0.5", - "postcss-double-position-gradients": "^3.1.2", - "postcss-env-function": "^4.0.6", - "postcss-focus-visible": "^6.0.4", - "postcss-focus-within": "^5.0.4", - "postcss-font-variant": "^5.0.0", - "postcss-gap-properties": "^3.0.5", - "postcss-image-set-function": "^4.0.7", - "postcss-initial": "^4.0.1", - "postcss-lab-function": "^4.2.1", - "postcss-logical": "^5.0.4", - "postcss-media-minmax": "^5.0.0", - "postcss-nesting": "^10.2.0", - "postcss-opacity-percentage": "^1.1.2", - "postcss-overflow-shorthand": "^3.0.4", - "postcss-page-break": "^3.0.4", - "postcss-place": "^7.0.5", - "postcss-pseudo-class-any-link": "^7.1.6", - "postcss-replace-overflow-wrap": "^4.0.0", - "postcss-selector-not": "^6.0.1", - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-pseudo-class-any-link": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-7.1.6.tgz", - "integrity": "sha512-9sCtZkO6f/5ML9WcTLcIyV1yz9D1rf0tWc+ulKcvV30s0iZKS/ONyETvoWsr6vnrmW+X+KmuK3gV/w5EWnT37w==", - "dependencies": { - "postcss-selector-parser": "^6.0.10" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-reduce-initial": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz", - "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==", - "dependencies": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-reduce-transforms": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", - "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-replace-overflow-wrap": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-4.0.0.tgz", - "integrity": "sha512-KmF7SBPphT4gPPcKZc7aDkweHiKEEO8cla/GjcBK+ckKxiZslIu3C4GCRW3DNfL0o7yW7kMQu9xlZ1kXRXLXtw==", - "peerDependencies": { - "postcss": "^8.0.3" - } - }, - "node_modules/postcss-selector-not": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-6.0.1.tgz", - "integrity": "sha512-1i9affjAe9xu/y9uqWH+tD4r6/hDaXJruk8xn2x1vzxC2U3J3LKO3zJW4CyxlNhA56pADJ/djpEwpH1RClI2rQ==", - "dependencies": { - "postcss-selector-parser": "^6.0.10" - }, - "engines": { - "node": "^12 || ^14 || >=16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - }, - "peerDependencies": { - "postcss": "^8.2" - } - }, - "node_modules/postcss-selector-parser": { - "version": "6.0.13", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", - "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", - "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss-svgo": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", - "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", - "dependencies": { - "postcss-value-parser": "^4.2.0", - "svgo": "^2.7.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-svgo/node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "engines": { - "node": ">= 10" - } - }, - "node_modules/postcss-svgo/node_modules/css-tree": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", - "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", - "dependencies": { - "mdn-data": "2.0.14", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/postcss-svgo/node_modules/mdn-data": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", - "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" - }, - "node_modules/postcss-svgo/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-svgo/node_modules/svgo": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", - "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", - "dependencies": { - "@trysound/sax": "0.2.0", - "commander": "^7.2.0", - "css-select": "^4.1.3", - "css-tree": "^1.1.3", - "csso": "^4.2.0", - "picocolors": "^1.0.0", - "stable": "^0.1.8" - }, - "bin": { - "svgo": "bin/svgo" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/postcss-unique-selectors": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", - "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", - "dependencies": { - "postcss-selector-parser": "^6.0.5" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-value-parser": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/pretty-bytes": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", - "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pretty-error": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz", - "integrity": "sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw==", - "dependencies": { - "lodash": "^4.17.20", - "renderkid": "^3.0.0" - } - }, - "node_modules/pretty-format": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", - "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", - "dependencies": { - "ansi-regex": "^5.0.1", - "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" - }, - "node_modules/promise": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/promise/-/promise-8.3.0.tgz", - "integrity": "sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg==", - "dependencies": { - "asap": "~2.0.6" - } - }, - "node_modules/prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "dependencies": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "dependencies": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } - }, - "node_modules/prop-types/node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/proxy-addr/node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/psl": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" - }, - "node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==", - "engines": { - "node": ">=0.6.0", - "teleport": ">=0.2.0" - } - }, - "node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "dependencies": { - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/querystringify": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/raf": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz", - "integrity": "sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==", - "dependencies": { - "performance-now": "^2.1.0" - } - }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", - "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/raw-body/node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/raw-body/node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", - "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", - "dependencies": { - "loose-envify": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-app-polyfill": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/react-app-polyfill/-/react-app-polyfill-3.0.0.tgz", - "integrity": "sha512-sZ41cxiU5llIB003yxxQBYrARBqe0repqPTTYBTmMqTz9szeBbE37BehCE891NZsmdZqqP+xWKdT3eo3vOzN8w==", - "dependencies": { - "core-js": "^3.19.2", - "object-assign": "^4.1.1", - "promise": "^8.1.0", - "raf": "^3.4.1", - "regenerator-runtime": "^0.13.9", - "whatwg-fetch": "^3.6.2" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/react-dev-utils": { - "version": "12.0.1", - "resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz", - "integrity": "sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==", - "dependencies": { - "@babel/code-frame": "^7.16.0", - "address": "^1.1.2", - "browserslist": "^4.18.1", - "chalk": "^4.1.2", - "cross-spawn": "^7.0.3", - "detect-port-alt": "^1.1.6", - "escape-string-regexp": "^4.0.0", - "filesize": "^8.0.6", - "find-up": "^5.0.0", - "fork-ts-checker-webpack-plugin": "^6.5.0", - "global-modules": "^2.0.0", - "globby": "^11.0.4", - "gzip-size": "^6.0.0", - "immer": "^9.0.7", - "is-root": "^2.1.0", - "loader-utils": "^3.2.0", - "open": "^8.4.0", - "pkg-up": "^3.1.0", - "prompts": "^2.4.2", - "react-error-overlay": "^6.0.11", - "recursive-readdir": "^2.2.2", - "shell-quote": "^1.7.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/react-dev-utils/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/react-dev-utils/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/react-dev-utils/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/react-dev-utils/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/react-dev-utils/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/react-dev-utils/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/react-dev-utils/node_modules/loader-utils": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.1.tgz", - "integrity": "sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw==", - "engines": { - "node": ">= 12.13.0" - } - }, - "node_modules/react-dev-utils/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/react-dom": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", - "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", - "dependencies": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.0" - }, - "peerDependencies": { - "react": "^18.2.0" - } - }, - "node_modules/react-error-overlay": { - "version": "6.0.11", - "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz", - "integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==" - }, - "node_modules/react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" - }, - "node_modules/react-refresh": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz", - "integrity": "sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-scripts": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz", - "integrity": "sha512-8VAmEm/ZAwQzJ+GOMLbBsTdDKOpuZh7RPs0UymvBR2vRk4iZWCskjbFnxqjrzoIvlNNRZ3QJFx6/qDSi6zSnaQ==", - "dependencies": { - "@babel/core": "^7.16.0", - "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3", - "@svgr/webpack": "^5.5.0", - "babel-jest": "^27.4.2", - "babel-loader": "^8.2.3", - "babel-plugin-named-asset-import": "^0.3.8", - "babel-preset-react-app": "^10.0.1", - "bfj": "^7.0.2", - "browserslist": "^4.18.1", - "camelcase": "^6.2.1", - "case-sensitive-paths-webpack-plugin": "^2.4.0", - "css-loader": "^6.5.1", - "css-minimizer-webpack-plugin": "^3.2.0", - "dotenv": "^10.0.0", - "dotenv-expand": "^5.1.0", - "eslint": "^8.3.0", - "eslint-config-react-app": "^7.0.1", - "eslint-webpack-plugin": "^3.1.1", - "file-loader": "^6.2.0", - "fs-extra": "^10.0.0", - "html-webpack-plugin": "^5.5.0", - "identity-obj-proxy": "^3.0.0", - "jest": "^27.4.3", - "jest-resolve": "^27.4.2", - "jest-watch-typeahead": "^1.0.0", - "mini-css-extract-plugin": "^2.4.5", - "postcss": "^8.4.4", - "postcss-flexbugs-fixes": "^5.0.2", - "postcss-loader": "^6.2.1", - "postcss-normalize": "^10.0.1", - "postcss-preset-env": "^7.0.1", - "prompts": "^2.4.2", - "react-app-polyfill": "^3.0.0", - "react-dev-utils": "^12.0.1", - "react-refresh": "^0.11.0", - "resolve": "^1.20.0", - "resolve-url-loader": "^4.0.0", - "sass-loader": "^12.3.0", - "semver": "^7.3.5", - "source-map-loader": "^3.0.0", - "style-loader": "^3.3.1", - "tailwindcss": "^3.0.2", - "terser-webpack-plugin": "^5.2.5", - "webpack": "^5.64.4", - "webpack-dev-server": "^4.6.0", - "webpack-manifest-plugin": "^4.0.2", - "workbox-webpack-plugin": "^6.4.1" - }, - "bin": { - "react-scripts": "bin/react-scripts.js" - }, - "engines": { - "node": ">=14.0.0" - }, - "optionalDependencies": { - "fsevents": "^2.3.2" - }, - "peerDependencies": { - "react": ">= 16", - "typescript": "^3.2.1 || ^4" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/read-cache": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", - "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", - "dependencies": { - "pify": "^2.3.0" - } - }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/recursive-readdir": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz", - "integrity": "sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA==", - "dependencies": { - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/redent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", - "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", - "dependencies": { - "indent-string": "^4.0.0", - "strip-indent": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" - }, - "node_modules/regenerate-unicode-properties": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", - "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", - "dependencies": { - "regenerate": "^1.4.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regenerator-runtime": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", - "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" - }, - "node_modules/regenerator-transform": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz", - "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==", - "dependencies": { - "@babel/runtime": "^7.8.4" - } - }, - "node_modules/regex-parser": { - "version": "2.2.11", - "resolved": "https://registry.npmjs.org/regex-parser/-/regex-parser-2.2.11.tgz", - "integrity": "sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q==" - }, - "node_modules/regexp.prototype.flags": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", - "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "functions-have-names": "^1.2.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/regexpu-core": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", - "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", - "dependencies": { - "@babel/regjsgen": "^0.8.0", - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.1.0", - "regjsparser": "^0.9.1", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regjsparser": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", - "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", - "dependencies": { - "jsesc": "~0.5.0" - }, - "bin": { - "regjsparser": "bin/parser" - } - }, - "node_modules/regjsparser/node_modules/jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", - "bin": { - "jsesc": "bin/jsesc" - } - }, - "node_modules/relateurl": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", - "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/renderkid": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-3.0.0.tgz", - "integrity": "sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==", - "dependencies": { - "css-select": "^4.1.3", - "dom-converter": "^0.2.0", - "htmlparser2": "^6.1.0", - "lodash": "^4.17.21", - "strip-ansi": "^6.0.1" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" - }, - "node_modules/resolve": { - "version": "1.22.2", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", - "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", - "dependencies": { - "is-core-module": "^2.11.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dependencies": { - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-url-loader": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-4.0.0.tgz", - "integrity": "sha512-05VEMczVREcbtT7Bz+C+96eUO5HDNvdthIiMB34t7FcF8ehcu4wC0sSgPUubs3XW2Q3CNLJk/BJrCU9wVRymiA==", - "dependencies": { - "adjust-sourcemap-loader": "^4.0.0", - "convert-source-map": "^1.7.0", - "loader-utils": "^2.0.0", - "postcss": "^7.0.35", - "source-map": "0.6.1" - }, - "engines": { - "node": ">=8.9" - }, - "peerDependencies": { - "rework": "1.0.1", - "rework-visit": "1.0.0" - }, - "peerDependenciesMeta": { - "rework": { - "optional": true - }, - "rework-visit": { - "optional": true - } - } - }, - "node_modules/resolve-url-loader/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==" - }, - "node_modules/resolve-url-loader/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/resolve-url-loader/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve.exports": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.1.tgz", - "integrity": "sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ==", - "engines": { - "node": ">=10" - } - }, - "node_modules/retry": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", - "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rollup": { - "version": "2.79.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz", - "integrity": "sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==", - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=10.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/rollup-plugin-terser": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz", - "integrity": "sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==", - "deprecated": "This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser", - "dependencies": { - "@babel/code-frame": "^7.10.4", - "jest-worker": "^26.2.1", - "serialize-javascript": "^4.0.0", - "terser": "^5.0.0" - }, - "peerDependencies": { - "rollup": "^2.0.0" - } - }, - "node_modules/rollup-plugin-terser/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/rollup-plugin-terser/node_modules/jest-worker": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", - "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/rollup-plugin-terser/node_modules/serialize-javascript": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", - "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", - "dependencies": { - "randombytes": "^2.1.0" - } - }, - "node_modules/rollup-plugin-terser/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-array-concat": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz", - "integrity": "sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "has-symbols": "^1.0.3", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">=0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, - "node_modules/sanitize.css": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/sanitize.css/-/sanitize.css-13.0.0.tgz", - "integrity": "sha512-ZRwKbh/eQ6w9vmTjkuG0Ioi3HBwPFce0O+v//ve+aOq1oeCy7jMV2qzzAlpsNuqpqCBjjriM1lbtZbF/Q8jVyA==" - }, - "node_modules/sass-loader": { - "version": "12.6.0", - "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.6.0.tgz", - "integrity": "sha512-oLTaH0YCtX4cfnJZxKSLAyglED0naiYfNG1iXfU5w1LNZ+ukoA5DtyDIN5zmKVZwYNJP4KRc5Y3hkWga+7tYfA==", - "dependencies": { - "klona": "^2.0.4", - "neo-async": "^2.6.2" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "fibers": ">= 3.1.0", - "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0", - "sass": "^1.3.0", - "sass-embedded": "*", - "webpack": "^5.0.0" - }, - "peerDependenciesMeta": { - "fibers": { - "optional": true - }, - "node-sass": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - } - } - }, - "node_modules/sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" - }, - "node_modules/saxes": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", - "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", - "dependencies": { - "xmlchars": "^2.2.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/scheduler": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", - "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", - "dependencies": { - "loose-envify": "^1.1.0" - } - }, - "node_modules/schema-utils": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", - "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/select-hose": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", - "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==" - }, - "node_modules/selfsigned": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.1.1.tgz", - "integrity": "sha512-GSL3aowiF7wa/WtSFwnUrludWFoNhftq8bUkH9pkzjpN2XSPOAYEgg6e0sS9s0rZwgJzJiQRPU18A6clnoW5wQ==", - "dependencies": { - "node-forge": "^1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "node_modules/send": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/send/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/send/node_modules/debug/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/send/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - }, - "node_modules/serialize-javascript": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", - "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", - "dependencies": { - "randombytes": "^2.1.0" - } - }, - "node_modules/serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==", - "dependencies": { - "accepts": "~1.3.4", - "batch": "0.6.1", - "debug": "2.6.9", - "escape-html": "~1.0.3", - "http-errors": "~1.6.2", - "mime-types": "~2.1.17", - "parseurl": "~1.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/serve-index/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/serve-index/node_modules/depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serve-index/node_modules/http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", - "dependencies": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serve-index/node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" - }, - "node_modules/serve-index/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/serve-index/node_modules/setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" - }, - "node_modules/serve-index/node_modules/statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", - "dependencies": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.18.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "engines": { - "node": ">=8" - } - }, - "node_modules/shell-quote": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", - "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" - }, - "node_modules/sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/sockjs": { - "version": "0.3.24", - "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", - "integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==", - "dependencies": { - "faye-websocket": "^0.11.3", - "uuid": "^8.3.2", - "websocket-driver": "^0.7.4" - } - }, - "node_modules/source-list-map": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", - "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==" - }, - "node_modules/source-map": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", - "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-loader": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/source-map-loader/-/source-map-loader-3.0.2.tgz", - "integrity": "sha512-BokxPoLjyl3iOrgkWaakaxqnelAJSS+0V+De0kKIq6lyWrXuiPgYTGp6z3iHmqljKAaLXwZa+ctD8GccRJeVvg==", - "dependencies": { - "abab": "^2.0.5", - "iconv-lite": "^0.6.3", - "source-map-js": "^1.0.1" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sourcemap-codec": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", - "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", - "deprecated": "Please use @jridgewell/sourcemap-codec instead" - }, - "node_modules/spdy": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", - "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", - "dependencies": { - "debug": "^4.1.0", - "handle-thing": "^2.0.0", - "http-deceiver": "^1.2.7", - "select-hose": "^2.0.0", - "spdy-transport": "^3.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/spdy-transport": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", - "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", - "dependencies": { - "debug": "^4.1.0", - "detect-node": "^2.0.4", - "hpack.js": "^2.1.6", - "obuf": "^1.1.2", - "readable-stream": "^3.0.6", - "wbuf": "^1.7.3" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" - }, - "node_modules/stable": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", - "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", - "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility" - }, - "node_modules/stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "dependencies": { - "escape-string-regexp": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/stack-utils/node_modules/escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "engines": { - "node": ">=8" - } - }, - "node_modules/stackframe": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", - "integrity": "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==" - }, - "node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/stop-iteration-iterator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", - "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", - "dependencies": { - "internal-slot": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "dependencies": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/string-natural-compare": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/string-natural-compare/-/string-natural-compare-3.0.1.tgz", - "integrity": "sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==" - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/string.prototype.matchall": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz", - "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", - "regexp.prototype.flags": "^1.4.3", - "side-channel": "^1.0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trim": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", - "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/stringify-object": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz", - "integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==", - "dependencies": { - "get-own-enumerable-property-symbols": "^3.0.0", - "is-obj": "^1.0.1", - "is-regexp": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-comments/-/strip-comments-2.0.1.tgz", - "integrity": "sha512-ZprKx+bBLXv067WTCALv8SSz5l2+XhpYCsVtSqlMnkAXMWDq+/ekVbl1ghqP9rUHTzv6sm/DwCOiYutU/yp1fw==", - "engines": { - "node": ">=10" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/strip-indent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", - "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", - "dependencies": { - "min-indent": "^1.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/style-loader": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-3.3.3.tgz", - "integrity": "sha512-53BiGLXAcll9maCYtZi2RCQZKa8NQQai5C4horqKyRmHj9H7QmcUyucrH+4KW/gBQbXM2AsB0axoEcFZPlfPcw==", - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - } - }, - "node_modules/stylehacks": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", - "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==", - "dependencies": { - "browserslist": "^4.21.4", - "postcss-selector-parser": "^6.0.4" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/sucrase": { - "version": "3.32.0", - "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.32.0.tgz", - "integrity": "sha512-ydQOU34rpSyj2TGyz4D2p8rbktIOZ8QY9s+DGLvFU1i5pWJE8vkpruCjGCMHsdXwnD7JDcS+noSwM/a7zyNFDQ==", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.2", - "commander": "^4.0.0", - "glob": "7.1.6", - "lines-and-columns": "^1.1.6", - "mz": "^2.7.0", - "pirates": "^4.0.1", - "ts-interface-checker": "^0.1.9" - }, - "bin": { - "sucrase": "bin/sucrase", - "sucrase-node": "bin/sucrase-node" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/sucrase/node_modules/commander": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/sucrase/node_modules/glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/supports-hyperlinks": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", - "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", - "dependencies": { - "has-flag": "^4.0.0", - "supports-color": "^7.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-hyperlinks/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-hyperlinks/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/svg-parser": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz", - "integrity": "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==" - }, - "node_modules/svgo": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-1.3.2.tgz", - "integrity": "sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw==", - "deprecated": "This SVGO version is no longer supported. Upgrade to v2.x.x.", - "dependencies": { - "chalk": "^2.4.1", - "coa": "^2.0.2", - "css-select": "^2.0.0", - "css-select-base-adapter": "^0.1.1", - "css-tree": "1.0.0-alpha.37", - "csso": "^4.0.2", - "js-yaml": "^3.13.1", - "mkdirp": "~0.5.1", - "object.values": "^1.1.0", - "sax": "~1.2.4", - "stable": "^0.1.8", - "unquote": "~1.1.1", - "util.promisify": "~1.0.0" - }, - "bin": { - "svgo": "bin/svgo" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/svgo/node_modules/css-select": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz", - "integrity": "sha512-Dqk7LQKpwLoH3VovzZnkzegqNSuAziQyNZUcrdDM401iY+R5NkGBXGmtO05/yaXQziALuPogeG0b7UAgjnTJTQ==", - "dependencies": { - "boolbase": "^1.0.0", - "css-what": "^3.2.1", - "domutils": "^1.7.0", - "nth-check": "^1.0.2" - } - }, - "node_modules/svgo/node_modules/css-what": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-3.4.2.tgz", - "integrity": "sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ==", - "engines": { - "node": ">= 6" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/svgo/node_modules/dom-serializer": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz", - "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==", - "dependencies": { - "domelementtype": "^2.0.1", - "entities": "^2.0.0" - } - }, - "node_modules/svgo/node_modules/domutils": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz", - "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", - "dependencies": { - "dom-serializer": "0", - "domelementtype": "1" - } - }, - "node_modules/svgo/node_modules/domutils/node_modules/domelementtype": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", - "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==" - }, - "node_modules/svgo/node_modules/nth-check": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz", - "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==", - "dependencies": { - "boolbase": "~1.0.0" - } - }, - "node_modules/symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==" - }, - "node_modules/tailwindcss": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.2.tgz", - "integrity": "sha512-9jPkMiIBXvPc2KywkraqsUfbfj+dHDb+JPWtSJa9MLFdrPyazI7q6WX2sUrm7R9eVR7qqv3Pas7EvQFzxKnI6w==", - "dependencies": { - "@alloc/quick-lru": "^5.2.0", - "arg": "^5.0.2", - "chokidar": "^3.5.3", - "didyoumean": "^1.2.2", - "dlv": "^1.1.3", - "fast-glob": "^3.2.12", - "glob-parent": "^6.0.2", - "is-glob": "^4.0.3", - "jiti": "^1.18.2", - "lilconfig": "^2.1.0", - "micromatch": "^4.0.5", - "normalize-path": "^3.0.0", - "object-hash": "^3.0.0", - "picocolors": "^1.0.0", - "postcss": "^8.4.23", - "postcss-import": "^15.1.0", - "postcss-js": "^4.0.1", - "postcss-load-config": "^4.0.1", - "postcss-nested": "^6.0.1", - "postcss-selector-parser": "^6.0.11", - "postcss-value-parser": "^4.2.0", - "resolve": "^1.22.2", - "sucrase": "^3.32.0" - }, - "bin": { - "tailwind": "lib/cli.js", - "tailwindcss": "lib/cli.js" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "engines": { - "node": ">=6" - } - }, - "node_modules/temp-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", - "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/tempy": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tempy/-/tempy-0.6.0.tgz", - "integrity": "sha512-G13vtMYPT/J8A4X2SjdtBTphZlrp1gKv6hZiOjw14RCWg6GbHuQBGtjlx75xLbYV/wEc0D7G5K4rxKP/cXk8Bw==", - "dependencies": { - "is-stream": "^2.0.0", - "temp-dir": "^2.0.0", - "type-fest": "^0.16.0", - "unique-string": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/tempy/node_modules/type-fest": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.16.0.tgz", - "integrity": "sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/terminal-link": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", - "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", - "dependencies": { - "ansi-escapes": "^4.2.1", - "supports-hyperlinks": "^2.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/terser": { - "version": "5.17.6", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.17.6.tgz", - "integrity": "sha512-V8QHcs8YuyLkLHsJO5ucyff1ykrLVsR4dNnS//L5Y3NiSXpbK1J+WMVUs67eI0KTxs9JtHhgEQpXQVHlHI92DQ==", - "dependencies": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/terser-webpack-plugin": { - "version": "5.3.9", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", - "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.17", - "jest-worker": "^27.4.5", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.1", - "terser": "^5.16.8" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "uglify-js": { - "optional": true - } - } - }, - "node_modules/terser/node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" - }, - "node_modules/test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==" - }, - "node_modules/thenify": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", - "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", - "dependencies": { - "any-promise": "^1.0.0" - } - }, - "node_modules/thenify-all": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", - "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", - "dependencies": { - "thenify": ">= 3.1.0 < 4" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/throat": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.2.tgz", - "integrity": "sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ==" - }, - "node_modules/thunky": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", - "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==" - }, - "node_modules/tmpl": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==" - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "engines": { - "node": ">=4" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/tough-cookie": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz", - "integrity": "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==", - "dependencies": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.2.0", - "url-parse": "^1.5.3" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tough-cookie/node_modules/universalify": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", - "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", - "dependencies": { - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tryer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tryer/-/tryer-1.0.1.tgz", - "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==" - }, - "node_modules/ts-interface-checker": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", - "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==" - }, - "node_modules/tsconfig-paths": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", - "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - } - }, - "node_modules/tsconfig-paths/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "node_modules/tsconfig-paths/node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "engines": { - "node": ">=4" - } - }, - "node_modules/tslib": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz", - "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==" - }, - "node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - } - }, - "node_modules/tsutils/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "engines": { - "node": ">=4" - } - }, - "node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/typed-array-length": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", - "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", - "dependencies": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "is-typed-array": "^1.1.9" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dependencies": { - "is-typedarray": "^1.0.0" - } - }, - "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dependencies": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", - "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", - "engines": { - "node": ">=4" - } - }, - "node_modules/unique-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", - "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", - "dependencies": { - "crypto-random-string": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/unquote": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/unquote/-/unquote-1.1.1.tgz", - "integrity": "sha512-vRCqFv6UhXpWxZPyGDh/F3ZpNv8/qo7w6iufLpQg9aKnQ71qM4B5KiI7Mia9COcjEhrO9LueHpMYjYzsWH3OIg==" - }, - "node_modules/upath": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", - "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", - "engines": { - "node": ">=4", - "yarn": "*" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", - "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/url-parse": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", - "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", - "dependencies": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - }, - "node_modules/util.promisify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.1.tgz", - "integrity": "sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA==", - "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.2", - "has-symbols": "^1.0.1", - "object.getownpropertydescriptors": "^2.1.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/utila": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", - "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==" - }, - "node_modules/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/v8-to-istanbul": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", - "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0", - "source-map": "^0.7.3" - }, - "engines": { - "node": ">=10.12.0" - } - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/w3c-hr-time": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", - "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", - "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.", - "dependencies": { - "browser-process-hrtime": "^1.0.0" - } - }, - "node_modules/w3c-xmlserializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", - "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", - "dependencies": { - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/walker": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", - "dependencies": { - "makeerror": "1.0.12" - } - }, - "node_modules/watchpack": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", - "dependencies": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/wbuf": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", - "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", - "dependencies": { - "minimalistic-assert": "^1.0.0" - } - }, - "node_modules/web-vitals": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-2.1.4.tgz", - "integrity": "sha512-sVWcwhU5mX6crfI5Vd2dC4qchyTqxV8URinzt25XqVh+bHEPGH4C3NPrNionCP7Obx59wrYEbNlw4Z8sjALzZg==" - }, - "node_modules/webidl-conversions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", - "engines": { - "node": ">=10.4" - } - }, - "node_modules/webpack": { - "version": "5.84.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.84.1.tgz", - "integrity": "sha512-ZP4qaZ7vVn/K8WN/p990SGATmrL1qg4heP/MrVneczYtpDGJWlrgZv55vxaV2ul885Kz+25MP2kSXkPe3LZfmg==", - "dependencies": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^1.0.0", - "@webassemblyjs/ast": "^1.11.5", - "@webassemblyjs/wasm-edit": "^1.11.5", - "@webassemblyjs/wasm-parser": "^1.11.5", - "acorn": "^8.7.1", - "acorn-import-assertions": "^1.9.0", - "browserslist": "^4.14.5", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.14.1", - "es-module-lexer": "^1.2.1", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.1.2", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.3.7", - "watchpack": "^2.4.0", - "webpack-sources": "^3.2.3" - }, - "bin": { - "webpack": "bin/webpack.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependenciesMeta": { - "webpack-cli": { - "optional": true - } - } - }, - "node_modules/webpack-dev-middleware": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz", - "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==", - "dependencies": { - "colorette": "^2.0.10", - "memfs": "^3.4.3", - "mime-types": "^2.1.31", - "range-parser": "^1.2.1", - "schema-utils": "^4.0.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.0.0 || ^5.0.0" - } - }, - "node_modules/webpack-dev-middleware/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/webpack-dev-middleware/node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/webpack-dev-middleware/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/webpack-dev-middleware/node_modules/schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/webpack-dev-server": { - "version": "4.15.0", - "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.0.tgz", - "integrity": "sha512-HmNB5QeSl1KpulTBQ8UT4FPrByYyaLxpJoQ0+s7EvUrMc16m0ZS1sgb1XGqzmgCPk0c9y+aaXxn11tbLzuM7NQ==", - "dependencies": { - "@types/bonjour": "^3.5.9", - "@types/connect-history-api-fallback": "^1.3.5", - "@types/express": "^4.17.13", - "@types/serve-index": "^1.9.1", - "@types/serve-static": "^1.13.10", - "@types/sockjs": "^0.3.33", - "@types/ws": "^8.5.1", - "ansi-html-community": "^0.0.8", - "bonjour-service": "^1.0.11", - "chokidar": "^3.5.3", - "colorette": "^2.0.10", - "compression": "^1.7.4", - "connect-history-api-fallback": "^2.0.0", - "default-gateway": "^6.0.3", - "express": "^4.17.3", - "graceful-fs": "^4.2.6", - "html-entities": "^2.3.2", - "http-proxy-middleware": "^2.0.3", - "ipaddr.js": "^2.0.1", - "launch-editor": "^2.6.0", - "open": "^8.0.9", - "p-retry": "^4.5.0", - "rimraf": "^3.0.2", - "schema-utils": "^4.0.0", - "selfsigned": "^2.1.1", - "serve-index": "^1.9.1", - "sockjs": "^0.3.24", - "spdy": "^4.0.2", - "webpack-dev-middleware": "^5.3.1", - "ws": "^8.13.0" - }, - "bin": { - "webpack-dev-server": "bin/webpack-dev-server.js" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.37.0 || ^5.0.0" - }, - "peerDependenciesMeta": { - "webpack": { - "optional": true - }, - "webpack-cli": { - "optional": true - } - } - }, - "node_modules/webpack-dev-server/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/webpack-dev-server/node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/webpack-dev-server/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/webpack-dev-server/node_modules/schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/webpack-dev-server/node_modules/ws": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", - "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/webpack-manifest-plugin": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/webpack-manifest-plugin/-/webpack-manifest-plugin-4.1.1.tgz", - "integrity": "sha512-YXUAwxtfKIJIKkhg03MKuiFAD72PlrqCiwdwO4VEXdRO5V0ORCNwaOwAZawPZalCbmH9kBDmXnNeQOw+BIEiow==", - "dependencies": { - "tapable": "^2.0.0", - "webpack-sources": "^2.2.0" - }, - "engines": { - "node": ">=12.22.0" - }, - "peerDependencies": { - "webpack": "^4.44.2 || ^5.47.0" - } - }, - "node_modules/webpack-manifest-plugin/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/webpack-manifest-plugin/node_modules/webpack-sources": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-2.3.1.tgz", - "integrity": "sha512-y9EI9AO42JjEcrTJFOYmVywVZdKVUfOvDUPsJea5GIr1JOEGFVqwlY2K098fFoIjOkDzHn2AjRvM8dsBZu+gCA==", - "dependencies": { - "source-list-map": "^2.0.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/webpack-sources": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", - "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/webpack/node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/webpack/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/websocket-driver": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", - "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", - "dependencies": { - "http-parser-js": ">=0.5.1", - "safe-buffer": ">=5.1.0", - "websocket-extensions": ">=0.1.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/websocket-extensions": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", - "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", - "dependencies": { - "iconv-lite": "0.4.24" - } - }, - "node_modules/whatwg-encoding/node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/whatwg-fetch": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", - "integrity": "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==" - }, - "node_modules/whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==" - }, - "node_modules/whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", - "dependencies": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-collection": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", - "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", - "dependencies": { - "is-map": "^2.0.1", - "is-set": "^2.0.1", - "is-weakmap": "^2.0.1", - "is-weakset": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", - "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/workbox-background-sync": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-background-sync/-/workbox-background-sync-6.6.0.tgz", - "integrity": "sha512-jkf4ZdgOJxC9u2vztxLuPT/UjlH7m/nWRQ/MgGL0v8BJHoZdVGJd18Kck+a0e55wGXdqyHO+4IQTk0685g4MUw==", - "dependencies": { - "idb": "^7.0.1", - "workbox-core": "6.6.0" - } - }, - "node_modules/workbox-broadcast-update": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-broadcast-update/-/workbox-broadcast-update-6.6.0.tgz", - "integrity": "sha512-nm+v6QmrIFaB/yokJmQ/93qIJ7n72NICxIwQwe5xsZiV2aI93MGGyEyzOzDPVz5THEr5rC3FJSsO3346cId64Q==", - "dependencies": { - "workbox-core": "6.6.0" - } - }, - "node_modules/workbox-build": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-build/-/workbox-build-6.6.0.tgz", - "integrity": "sha512-Tjf+gBwOTuGyZwMz2Nk/B13Fuyeo0Q84W++bebbVsfr9iLkDSo6j6PST8tET9HYA58mlRXwlMGpyWO8ETJiXdQ==", - "dependencies": { - "@apideck/better-ajv-errors": "^0.3.1", - "@babel/core": "^7.11.1", - "@babel/preset-env": "^7.11.0", - "@babel/runtime": "^7.11.2", - "@rollup/plugin-babel": "^5.2.0", - "@rollup/plugin-node-resolve": "^11.2.1", - "@rollup/plugin-replace": "^2.4.1", - "@surma/rollup-plugin-off-main-thread": "^2.2.3", - "ajv": "^8.6.0", - "common-tags": "^1.8.0", - "fast-json-stable-stringify": "^2.1.0", - "fs-extra": "^9.0.1", - "glob": "^7.1.6", - "lodash": "^4.17.20", - "pretty-bytes": "^5.3.0", - "rollup": "^2.43.1", - "rollup-plugin-terser": "^7.0.0", - "source-map": "^0.8.0-beta.0", - "stringify-object": "^3.3.0", - "strip-comments": "^2.0.1", - "tempy": "^0.6.0", - "upath": "^1.2.0", - "workbox-background-sync": "6.6.0", - "workbox-broadcast-update": "6.6.0", - "workbox-cacheable-response": "6.6.0", - "workbox-core": "6.6.0", - "workbox-expiration": "6.6.0", - "workbox-google-analytics": "6.6.0", - "workbox-navigation-preload": "6.6.0", - "workbox-precaching": "6.6.0", - "workbox-range-requests": "6.6.0", - "workbox-recipes": "6.6.0", - "workbox-routing": "6.6.0", - "workbox-strategies": "6.6.0", - "workbox-streams": "6.6.0", - "workbox-sw": "6.6.0", - "workbox-window": "6.6.0" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/workbox-build/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/workbox-build/node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/workbox-build/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "node_modules/workbox-build/node_modules/source-map": { - "version": "0.8.0-beta.0", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", - "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", - "dependencies": { - "whatwg-url": "^7.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/workbox-build/node_modules/tr46": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", - "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/workbox-build/node_modules/webidl-conversions": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", - "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==" - }, - "node_modules/workbox-build/node_modules/whatwg-url": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", - "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", - "dependencies": { - "lodash.sortby": "^4.7.0", - "tr46": "^1.0.1", - "webidl-conversions": "^4.0.2" - } - }, - "node_modules/workbox-cacheable-response": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-cacheable-response/-/workbox-cacheable-response-6.6.0.tgz", - "integrity": "sha512-JfhJUSQDwsF1Xv3EV1vWzSsCOZn4mQ38bWEBR3LdvOxSPgB65gAM6cS2CX8rkkKHRgiLrN7Wxoyu+TuH67kHrw==", - "dependencies": { - "workbox-core": "6.6.0" - } - }, - "node_modules/workbox-core": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-core/-/workbox-core-6.6.0.tgz", - "integrity": "sha512-GDtFRF7Yg3DD859PMbPAYPeJyg5gJYXuBQAC+wyrWuuXgpfoOrIQIvFRZnQ7+czTIQjIr1DhLEGFzZanAT/3bQ==" - }, - "node_modules/workbox-expiration": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-expiration/-/workbox-expiration-6.6.0.tgz", - "integrity": "sha512-baplYXcDHbe8vAo7GYvyAmlS4f6998Jff513L4XvlzAOxcl8F620O91guoJ5EOf5qeXG4cGdNZHkkVAPouFCpw==", - "dependencies": { - "idb": "^7.0.1", - "workbox-core": "6.6.0" - } - }, - "node_modules/workbox-google-analytics": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-google-analytics/-/workbox-google-analytics-6.6.0.tgz", - "integrity": "sha512-p4DJa6OldXWd6M9zRl0H6vB9lkrmqYFkRQ2xEiNdBFp9U0LhsGO7hsBscVEyH9H2/3eZZt8c97NB2FD9U2NJ+Q==", - "dependencies": { - "workbox-background-sync": "6.6.0", - "workbox-core": "6.6.0", - "workbox-routing": "6.6.0", - "workbox-strategies": "6.6.0" - } - }, - "node_modules/workbox-navigation-preload": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-navigation-preload/-/workbox-navigation-preload-6.6.0.tgz", - "integrity": "sha512-utNEWG+uOfXdaZmvhshrh7KzhDu/1iMHyQOV6Aqup8Mm78D286ugu5k9MFD9SzBT5TcwgwSORVvInaXWbvKz9Q==", - "dependencies": { - "workbox-core": "6.6.0" - } - }, - "node_modules/workbox-precaching": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-precaching/-/workbox-precaching-6.6.0.tgz", - "integrity": "sha512-eYu/7MqtRZN1IDttl/UQcSZFkHP7dnvr/X3Vn6Iw6OsPMruQHiVjjomDFCNtd8k2RdjLs0xiz9nq+t3YVBcWPw==", - "dependencies": { - "workbox-core": "6.6.0", - "workbox-routing": "6.6.0", - "workbox-strategies": "6.6.0" - } - }, - "node_modules/workbox-range-requests": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-range-requests/-/workbox-range-requests-6.6.0.tgz", - "integrity": "sha512-V3aICz5fLGq5DpSYEU8LxeXvsT//mRWzKrfBOIxzIdQnV/Wj7R+LyJVTczi4CQ4NwKhAaBVaSujI1cEjXW+hTw==", - "dependencies": { - "workbox-core": "6.6.0" - } - }, - "node_modules/workbox-recipes": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-recipes/-/workbox-recipes-6.6.0.tgz", - "integrity": "sha512-TFi3kTgYw73t5tg73yPVqQC8QQjxJSeqjXRO4ouE/CeypmP2O/xqmB/ZFBBQazLTPxILUQ0b8aeh0IuxVn9a6A==", - "dependencies": { - "workbox-cacheable-response": "6.6.0", - "workbox-core": "6.6.0", - "workbox-expiration": "6.6.0", - "workbox-precaching": "6.6.0", - "workbox-routing": "6.6.0", - "workbox-strategies": "6.6.0" - } - }, - "node_modules/workbox-routing": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-routing/-/workbox-routing-6.6.0.tgz", - "integrity": "sha512-x8gdN7VDBiLC03izAZRfU+WKUXJnbqt6PG9Uh0XuPRzJPpZGLKce/FkOX95dWHRpOHWLEq8RXzjW0O+POSkKvw==", - "dependencies": { - "workbox-core": "6.6.0" - } - }, - "node_modules/workbox-strategies": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-strategies/-/workbox-strategies-6.6.0.tgz", - "integrity": "sha512-eC07XGuINAKUWDnZeIPdRdVja4JQtTuc35TZ8SwMb1ztjp7Ddq2CJ4yqLvWzFWGlYI7CG/YGqaETntTxBGdKgQ==", - "dependencies": { - "workbox-core": "6.6.0" - } - }, - "node_modules/workbox-streams": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-streams/-/workbox-streams-6.6.0.tgz", - "integrity": "sha512-rfMJLVvwuED09CnH1RnIep7L9+mj4ufkTyDPVaXPKlhi9+0czCu+SJggWCIFbPpJaAZmp2iyVGLqS3RUmY3fxg==", - "dependencies": { - "workbox-core": "6.6.0", - "workbox-routing": "6.6.0" - } - }, - "node_modules/workbox-sw": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-sw/-/workbox-sw-6.6.0.tgz", - "integrity": "sha512-R2IkwDokbtHUE4Kus8pKO5+VkPHD2oqTgl+XJwh4zbF1HyjAbgNmK/FneZHVU7p03XUt9ICfuGDYISWG9qV/CQ==" - }, - "node_modules/workbox-webpack-plugin": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-webpack-plugin/-/workbox-webpack-plugin-6.6.0.tgz", - "integrity": "sha512-xNZIZHalboZU66Wa7x1YkjIqEy1gTR+zPM+kjrYJzqN7iurYZBctBLISyScjhkJKYuRrZUP0iqViZTh8rS0+3A==", - "dependencies": { - "fast-json-stable-stringify": "^2.1.0", - "pretty-bytes": "^5.4.1", - "upath": "^1.2.0", - "webpack-sources": "^1.4.3", - "workbox-build": "6.6.0" - }, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "webpack": "^4.4.0 || ^5.9.0" - } - }, - "node_modules/workbox-webpack-plugin/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/workbox-webpack-plugin/node_modules/webpack-sources": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz", - "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", - "dependencies": { - "source-list-map": "^2.0.0", - "source-map": "~0.6.1" - } - }, - "node_modules/workbox-window": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-window/-/workbox-window-6.6.0.tgz", - "integrity": "sha512-L4N9+vka17d16geaJXXRjENLFldvkWy7JyGxElRD0JvBxvFEd8LOhr+uXCcar/NzAmIBRv9EZ+M+Qr4mOoBITw==", - "dependencies": { - "@types/trusted-types": "^2.0.2", - "workbox-core": "6.6.0" - } - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/wrap-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - }, - "node_modules/write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", - "dependencies": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==" - }, - "node_modules/xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==" - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "engines": { - "node": ">=10" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" - }, - "node_modules/yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "engines": { - "node": ">=10" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - }, - "dependencies": { - "@adobe/css-tools": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.2.0.tgz", - "integrity": "sha512-E09FiIft46CmH5Qnjb0wsW54/YQd69LsxeKUOWawmws1XWvyFGURnAChH0mlr7YPFR1ofwvUQfcL0J3lMxXqPA==" - }, - "@alloc/quick-lru": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", - "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==" - }, - "@ampproject/remapping": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", - "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", - "requires": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "@apideck/better-ajv-errors": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/@apideck/better-ajv-errors/-/better-ajv-errors-0.3.6.tgz", - "integrity": "sha512-P+ZygBLZtkp0qqOAJJVX4oX/sFo5JR3eBWwwuqHHhK0GIgQOKWrAfiAaWX0aArHkRWHMuggFEgAZNxVPwPZYaA==", - "requires": { - "json-schema": "^0.4.0", - "jsonpointer": "^5.0.0", - "leven": "^3.1.0" - } - }, - "@babel/code-frame": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz", - "integrity": "sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g==", - "requires": { - "@babel/highlight": "^7.18.6" - } - }, - "@babel/compat-data": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.3.tgz", - "integrity": "sha512-aNtko9OPOwVESUFp3MZfD8Uzxl7JzSeJpd7npIoxCasU37PFbAQRpKglkaKwlHOyeJdrREpo8TW8ldrkYWwvIQ==" - }, - "@babel/core": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.1.tgz", - "integrity": "sha512-Hkqu7J4ynysSXxmAahpN1jjRwVJ+NdpraFLIWflgjpVob3KNyK3/tIUc7Q7szed8WMp0JNa7Qtd1E9Oo22F9gA==", - "requires": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.21.4", - "@babel/generator": "^7.22.0", - "@babel/helper-compilation-targets": "^7.22.1", - "@babel/helper-module-transforms": "^7.22.1", - "@babel/helpers": "^7.22.0", - "@babel/parser": "^7.22.0", - "@babel/template": "^7.21.9", - "@babel/traverse": "^7.22.1", - "@babel/types": "^7.22.0", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.2", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } - } - }, - "@babel/eslint-parser": { - "version": "7.21.8", - "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.21.8.tgz", - "integrity": "sha512-HLhI+2q+BP3sf78mFUZNCGc10KEmoUqtUT1OCdMZsN+qr4qFeLUod62/zAnF3jNQstwyasDkZnVXwfK2Bml7MQ==", - "requires": { - "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", - "eslint-visitor-keys": "^2.1.0", - "semver": "^6.3.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==" - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } - } - }, - "@babel/generator": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.3.tgz", - "integrity": "sha512-C17MW4wlk//ES/CJDL51kPNwl+qiBQyN7b9SKyVp11BLGFeSPoVaHrv+MNt8jwQFhQWowW88z1eeBx3pFz9v8A==", - "requires": { - "@babel/types": "^7.22.3", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" - } - }, - "@babel/helper-annotate-as-pure": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", - "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.3.tgz", - "integrity": "sha512-ahEoxgqNoYXm0k22TvOke48i1PkavGu0qGCmcq9ugi6gnmvKNaMjKBSrZTnWUi1CFEeNAUiVba0Wtzm03aSkJg==", - "requires": { - "@babel/types": "^7.22.3" - } - }, - "@babel/helper-compilation-targets": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.1.tgz", - "integrity": "sha512-Rqx13UM3yVB5q0D/KwQ8+SPfX/+Rnsy1Lw1k/UwOC4KC6qrzIQoY3lYnBu5EHKBlEHHcj0M0W8ltPSkD8rqfsQ==", - "requires": { - "@babel/compat-data": "^7.22.0", - "@babel/helper-validator-option": "^7.21.0", - "browserslist": "^4.21.3", - "lru-cache": "^5.1.1", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } - } - }, - "@babel/helper-create-class-features-plugin": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.1.tgz", - "integrity": "sha512-SowrZ9BWzYFgzUMwUmowbPSGu6CXL5MSuuCkG3bejahSpSymioPmuLdhPxNOc9MjuNGjy7M/HaXvJ8G82Lywlw==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-member-expression-to-functions": "^7.22.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-replace-supers": "^7.22.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/helper-split-export-declaration": "^7.18.6", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } - } - }, - "@babel/helper-create-regexp-features-plugin": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.1.tgz", - "integrity": "sha512-WWjdnfR3LPIe+0EY8td7WmjhytxXtjKAEpnAxun/hkNiyOaPlvGK+NZaBFIdi9ndYV3Gav7BpFvtUwnaJlwi1w==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "regexpu-core": "^5.3.1", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } - } - }, - "@babel/helper-define-polyfill-provider": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.0.tgz", - "integrity": "sha512-RnanLx5ETe6aybRi1cO/edaRH+bNYWaryCEmjDDYyNr4wnSzyOp8T0dWipmqVHKEY3AbVKUom50AKSlj1zmKbg==", - "requires": { - "@babel/helper-compilation-targets": "^7.17.7", - "@babel/helper-plugin-utils": "^7.16.7", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2", - "semver": "^6.1.2" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } - } - }, - "@babel/helper-environment-visitor": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.1.tgz", - "integrity": "sha512-Z2tgopurB/kTbidvzeBrc2To3PUP/9i5MUe+fU6QJCQDyPwSH2oRapkLw3KGECDYSjhQZCNxEvNvZlLw8JjGwA==" - }, - "@babel/helper-function-name": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz", - "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==", - "requires": { - "@babel/template": "^7.20.7", - "@babel/types": "^7.21.0" - } - }, - "@babel/helper-hoist-variables": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", - "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-member-expression-to-functions": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.3.tgz", - "integrity": "sha512-Gl7sK04b/2WOb6OPVeNy9eFKeD3L6++CzL3ykPOWqTn08xgYYK0wz4TUh2feIImDXxcVW3/9WQ1NMKY66/jfZA==", - "requires": { - "@babel/types": "^7.22.3" - } - }, - "@babel/helper-module-imports": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.21.4.tgz", - "integrity": "sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg==", - "requires": { - "@babel/types": "^7.21.4" - } - }, - "@babel/helper-module-transforms": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.1.tgz", - "integrity": "sha512-dxAe9E7ySDGbQdCVOY/4+UcD8M9ZFqZcZhSPsPacvCG4M+9lwtDDQfI2EoaSvmf7W/8yCBkGU0m7Pvt1ru3UZw==", - "requires": { - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-module-imports": "^7.21.4", - "@babel/helper-simple-access": "^7.21.5", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/helper-validator-identifier": "^7.19.1", - "@babel/template": "^7.21.9", - "@babel/traverse": "^7.22.1", - "@babel/types": "^7.22.0" - } - }, - "@babel/helper-optimise-call-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", - "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-plugin-utils": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.21.5.tgz", - "integrity": "sha512-0WDaIlXKOX/3KfBK/dwP1oQGiPh6rjMkT7HIRv7i5RR2VUMwrx5ZL0dwBkKx7+SW1zwNdgjHd34IMk5ZjTeHVg==" - }, - "@babel/helper-remap-async-to-generator": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", - "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-wrap-function": "^7.18.9", - "@babel/types": "^7.18.9" - } - }, - "@babel/helper-replace-supers": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.1.tgz", - "integrity": "sha512-ut4qrkE4AuSfrwHSps51ekR1ZY/ygrP1tp0WFm8oVq6nzc/hvfV/22JylndIbsf2U2M9LOMwiSddr6y+78j+OQ==", - "requires": { - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-member-expression-to-functions": "^7.22.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/template": "^7.21.9", - "@babel/traverse": "^7.22.1", - "@babel/types": "^7.22.0" - } - }, - "@babel/helper-simple-access": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.21.5.tgz", - "integrity": "sha512-ENPDAMC1wAjR0uaCUwliBdiSl1KBJAVnMTzXqi64c2MG8MPR6ii4qf7bSXDqSFbr4W6W028/rf5ivoHop5/mkg==", - "requires": { - "@babel/types": "^7.21.5" - } - }, - "@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", - "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", - "requires": { - "@babel/types": "^7.20.0" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", - "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-string-parser": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.21.5.tgz", - "integrity": "sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w==" - }, - "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" - }, - "@babel/helper-validator-option": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz", - "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==" - }, - "@babel/helper-wrap-function": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz", - "integrity": "sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q==", - "requires": { - "@babel/helper-function-name": "^7.19.0", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.5", - "@babel/types": "^7.20.5" - } - }, - "@babel/helpers": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.3.tgz", - "integrity": "sha512-jBJ7jWblbgr7r6wYZHMdIqKc73ycaTcCaWRq4/2LpuPHcx7xMlZvpGQkOYc9HeSjn6rcx15CPlgVcBtZ4WZJ2w==", - "requires": { - "@babel/template": "^7.21.9", - "@babel/traverse": "^7.22.1", - "@babel/types": "^7.22.3" - } - }, - "@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "requires": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "@babel/parser": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.3.tgz", - "integrity": "sha512-vrukxyW/ep8UD1UDzOYpTKQ6abgjFoeG6L+4ar9+c5TN9QnlqiOi6QK7LSR5ewm/ERyGkT/Ai6VboNrxhbr9Uw==" - }, - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", - "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.3.tgz", - "integrity": "sha512-6r4yRwEnorYByILoDRnEqxtojYKuiIv9FojW2E8GUKo9eWBwbKcd9IiZOZpdyXc64RmyGGyPu3/uAcrz/dq2kQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/plugin-transform-optional-chaining": "^7.22.3" - } - }, - "@babel/plugin-proposal-class-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", - "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", - "requires": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-proposal-decorators": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.22.3.tgz", - "integrity": "sha512-XjTKH3sHr6pPqG+hR1NCdVupwiosfdKM2oSMyKQVQ5Bym9l/p7BuLAqT5U32zZzRCfPq/TPRPzMiiTE9bOXU4w==", - "requires": { - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-replace-supers": "^7.22.1", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/plugin-syntax-decorators": "^7.22.3" - } - }, - "@babel/plugin-proposal-nullish-coalescing-operator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", - "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - } - }, - "@babel/plugin-proposal-numeric-separator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", - "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - } - }, - "@babel/plugin-proposal-optional-chaining": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz", - "integrity": "sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==", - "requires": { - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - } - }, - "@babel/plugin-proposal-private-methods": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", - "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", - "requires": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0.tgz", - "integrity": "sha512-ha4zfehbJjc5MmXBlHec1igel5TJXXLDDRbuJ4+XT2TJcyD9/V1919BA8gMvsdHcNMBy4WBUBiRb3nw/EQUtBw==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.21.0", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - } - }, - "@babel/plugin-proposal-unicode-property-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", - "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-bigint": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", - "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "requires": { - "@babel/helper-plugin-utils": "^7.12.13" - } - }, - "@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-syntax-decorators": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.22.3.tgz", - "integrity": "sha512-R16Zuge73+8/nLcDjkIpyhi5wIbN7i7fiuLJR8yQX7vPAa/ltUKtd3iLbb4AgP5nrLi91HnNUNosELIGUGH1bg==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.3" - } - }, - "@babel/plugin-syntax-flow": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.21.4.tgz", - "integrity": "sha512-l9xd3N+XG4fZRxEP3vXdK6RW7vN1Uf5dxzRC/09wV86wqZ/YYQooBIGNsiRdfNR3/q2/5pPzV4B54J/9ctX5jw==", - "requires": { - "@babel/helper-plugin-utils": "^7.20.2" - } - }, - "@babel/plugin-syntax-import-assertions": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", - "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.19.0" - } - }, - "@babel/plugin-syntax-import-attributes": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.3.tgz", - "integrity": "sha512-i35jZJv6aO7hxEbIWQ41adVfOzjm9dcYDNeWlBMd8p0ZQRtNUCBrmGwZt+H5lb+oOC9a3svp956KP0oWGA1YsA==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-jsx": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.21.4.tgz", - "integrity": "sha512-5hewiLct5OKyh6PLKEYaFclcqtIgCb6bmELouxjF6up5q3Sov7rOayW4RwhbaBL0dit8rA80GNfY+UuDp2mBbQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.20.2" - } - }, - "@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-syntax-typescript": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.21.4.tgz", - "integrity": "sha512-xz0D39NvhQn4t4RNsHmDnnsaQizIlUkdtYvLs8La1BlfjQ6JEwxkJGeqJMW2tAXx+q6H+WFuUTXNdYVpEya0YA==", - "requires": { - "@babel/helper-plugin-utils": "^7.20.2" - } - }, - "@babel/plugin-syntax-unicode-sets-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", - "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-arrow-functions": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.21.5.tgz", - "integrity": "sha512-wb1mhwGOCaXHDTcsRYMKF9e5bbMgqwxtqa2Y1ifH96dXJPwbuLX9qHy3clhrxVqgMz7nyNXs8VkxdH8UBcjKqA==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-async-generator-functions": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.3.tgz", - "integrity": "sha512-36A4Aq48t66btydbZd5Fk0/xJqbpg/v4QWI4AH4cYHBXy9Mu42UOupZpebKFiCFNT9S9rJFcsld0gsv0ayLjtA==", - "requires": { - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-remap-async-to-generator": "^7.18.9", - "@babel/plugin-syntax-async-generators": "^7.8.4" - } - }, - "@babel/plugin-transform-async-to-generator": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.20.7.tgz", - "integrity": "sha512-Uo5gwHPT9vgnSXQxqGtpdufUiWp96gk7yiP4Mp5bm1QMkEmLXBO7PAGYbKoJ6DhAwiNkcHFBol/x5zZZkL/t0Q==", - "requires": { - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-remap-async-to-generator": "^7.18.9" - } - }, - "@babel/plugin-transform-block-scoped-functions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", - "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-block-scoping": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz", - "integrity": "sha512-Mdrbunoh9SxwFZapeHVrwFmri16+oYotcZysSzhNIVDwIAb1UV+kvnxULSYq9J3/q5MDG+4X6w8QVgD1zhBXNQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.20.2" - } - }, - "@babel/plugin-transform-class-properties": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.3.tgz", - "integrity": "sha512-mASLsd6rhOrLZ5F3WbCxkzl67mmOnqik0zrg5W6D/X0QMW7HtvnoL1dRARLKIbMP3vXwkwziuLesPqWVGIl6Bw==", - "requires": { - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-class-static-block": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.3.tgz", - "integrity": "sha512-5BirgNWNOx7cwbTJCOmKFJ1pZjwk5MUfMIwiBBvsirCJMZeQgs5pk6i1OlkVg+1Vef5LfBahFOrdCnAWvkVKMw==", - "requires": { - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - } - }, - "@babel/plugin-transform-classes": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz", - "integrity": "sha512-RZhbYTCEUAe6ntPehC4hlslPWosNHDox+vAs4On/mCLRLfoDVHf6hVEd7kuxr1RnHwJmxFfUM3cZiZRmPxJPXQ==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-compilation-targets": "^7.20.7", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-replace-supers": "^7.20.7", - "@babel/helper-split-export-declaration": "^7.18.6", - "globals": "^11.1.0" - } - }, - "@babel/plugin-transform-computed-properties": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.21.5.tgz", - "integrity": "sha512-TR653Ki3pAwxBxUe8srfF3e4Pe3FTA46uaNHYyQwIoM4oWKSoOZiDNyHJ0oIoDIUPSRQbQG7jzgVBX3FPVne1Q==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/template": "^7.20.7" - } - }, - "@babel/plugin-transform-destructuring": { - "version": "7.21.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.21.3.tgz", - "integrity": "sha512-bp6hwMFzuiE4HqYEyoGJ/V2LeIWn+hLVKc4pnj++E5XQptwhtcGmSayM029d/j2X1bPKGTlsyPwAubuU22KhMA==", - "requires": { - "@babel/helper-plugin-utils": "^7.20.2" - } - }, - "@babel/plugin-transform-dotall-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", - "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-duplicate-keys": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", - "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-dynamic-import": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.1.tgz", - "integrity": "sha512-rlhWtONnVBPdmt+jeewS0qSnMz/3yLFrqAP8hHC6EDcrYRSyuz9f9yQhHvVn2Ad6+yO9fHXac5piudeYrInxwQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" - } - }, - "@babel/plugin-transform-exponentiation-operator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", - "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", - "requires": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-export-namespace-from": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.3.tgz", - "integrity": "sha512-5Ti1cHLTDnt3vX61P9KZ5IG09bFXp4cDVFJIAeCZuxu9OXXJJZp5iP0n/rzM2+iAutJY+KWEyyHcRaHlpQ/P5g==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" - } - }, - "@babel/plugin-transform-flow-strip-types": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.21.0.tgz", - "integrity": "sha512-FlFA2Mj87a6sDkW4gfGrQQqwY/dLlBAyJa2dJEZ+FHXUVHBflO2wyKvg+OOEzXfrKYIa4HWl0mgmbCzt0cMb7w==", - "requires": { - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/plugin-syntax-flow": "^7.18.6" - } - }, - "@babel/plugin-transform-for-of": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.5.tgz", - "integrity": "sha512-nYWpjKW/7j/I/mZkGVgHJXh4bA1sfdFnJoOXwJuj4m3Q2EraO/8ZyrkCau9P5tbHQk01RMSt6KYLCsW7730SXQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-function-name": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", - "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", - "requires": { - "@babel/helper-compilation-targets": "^7.18.9", - "@babel/helper-function-name": "^7.18.9", - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-json-strings": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.3.tgz", - "integrity": "sha512-IuvOMdeOOY2X4hRNAT6kwbePtK21BUyrAEgLKviL8pL6AEEVUVcqtRdN/HJXBLGIbt9T3ETmXRnFedRRmQNTYw==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-json-strings": "^7.8.3" - } - }, - "@babel/plugin-transform-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", - "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-logical-assignment-operators": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.3.tgz", - "integrity": "sha512-CbayIfOw4av2v/HYZEsH+Klks3NC2/MFIR3QR8gnpGNNPEaq2fdlVCRYG/paKs7/5hvBLQ+H70pGWOHtlNEWNA==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" - } - }, - "@babel/plugin-transform-member-expression-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", - "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-modules-amd": { - "version": "7.20.11", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.20.11.tgz", - "integrity": "sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g==", - "requires": { - "@babel/helper-module-transforms": "^7.20.11", - "@babel/helper-plugin-utils": "^7.20.2" - } - }, - "@babel/plugin-transform-modules-commonjs": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.21.5.tgz", - "integrity": "sha512-OVryBEgKUbtqMoB7eG2rs6UFexJi6Zj6FDXx+esBLPTCxCNxAY9o+8Di7IsUGJ+AVhp5ncK0fxWUBd0/1gPhrQ==", - "requires": { - "@babel/helper-module-transforms": "^7.21.5", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-simple-access": "^7.21.5" - } - }, - "@babel/plugin-transform-modules-systemjs": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.22.3.tgz", - "integrity": "sha512-V21W3bKLxO3ZjcBJZ8biSvo5gQ85uIXW2vJfh7JSWf/4SLUSr1tOoHX3ruN4+Oqa2m+BKfsxTR1I+PsvkIWvNw==", - "requires": { - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-module-transforms": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-validator-identifier": "^7.19.1" - } - }, - "@babel/plugin-transform-modules-umd": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", - "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", - "requires": { - "@babel/helper-module-transforms": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.3.tgz", - "integrity": "sha512-c6HrD/LpUdNNJsISQZpds3TXvfYIAbo+efE9aWmY/PmSRD0agrJ9cPMt4BmArwUQ7ZymEWTFjTyp+yReLJZh0Q==", - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-new-target": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.3.tgz", - "integrity": "sha512-5RuJdSo89wKdkRTqtM9RVVJzHum9c2s0te9rB7vZC1zKKxcioWIy+xcu4OoIAjyFZhb/bp5KkunuLin1q7Ct+w==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.3.tgz", - "integrity": "sha512-CpaoNp16nX7ROtLONNuCyenYdY/l7ZsR6aoVa7rW7nMWisoNoQNIH5Iay/4LDyRjKMuElMqXiBoOQCDLTMGZiw==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - } - }, - "@babel/plugin-transform-numeric-separator": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.3.tgz", - "integrity": "sha512-+AF88fPDJrnseMh5vD9+SH6wq4ZMvpiTMHh58uLs+giMEyASFVhcT3NkoyO+NebFCNnpHJEq5AXO2txV4AGPDQ==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - } - }, - "@babel/plugin-transform-object-rest-spread": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.3.tgz", - "integrity": "sha512-38bzTsqMMCI46/TQnJwPPpy33EjLCc1Gsm2hRTF6zTMWnKsN61vdrpuzIEGQyKEhDSYDKyZHrrd5FMj4gcUHhw==", - "requires": { - "@babel/compat-data": "^7.22.3", - "@babel/helper-compilation-targets": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.22.3" - } - }, - "@babel/plugin-transform-object-super": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", - "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-replace-supers": "^7.18.6" - } - }, - "@babel/plugin-transform-optional-catch-binding": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.3.tgz", - "integrity": "sha512-bnDFWXFzWY0BsOyqaoSXvMQ2F35zutQipugog/rqotL2S4ciFOKlRYUu9djt4iq09oh2/34hqfRR2k1dIvuu4g==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - } - }, - "@babel/plugin-transform-optional-chaining": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.22.3.tgz", - "integrity": "sha512-63v3/UFFxhPKT8j8u1jTTGVyITxl7/7AfOqK8C5gz1rHURPUGe3y5mvIf68eYKGoBNahtJnTxBKug4BQOnzeJg==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - } - }, - "@babel/plugin-transform-parameters": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.3.tgz", - "integrity": "sha512-x7QHQJHPuD9VmfpzboyGJ5aHEr9r7DsAsdxdhJiTB3J3j8dyl+NFZ+rX5Q2RWFDCs61c06qBfS4ys2QYn8UkMw==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-private-methods": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.3.tgz", - "integrity": "sha512-fC7jtjBPFqhqpPAE+O4LKwnLq7gGkD3ZmC2E3i4qWH34mH3gOg2Xrq5YMHUq6DM30xhqM1DNftiRaSqVjEG+ug==", - "requires": { - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-private-property-in-object": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.3.tgz", - "integrity": "sha512-C7MMl4qWLpgVCbXfj3UW8rR1xeCnisQ0cU7YJHV//8oNBS0aCIVg1vFnZXxOckHhEpQyqNNkWmvSEWnMLlc+Vw==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - } - }, - "@babel/plugin-transform-property-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", - "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-react-constant-elements": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.22.3.tgz", - "integrity": "sha512-b5J6muxQYp4H7loAQv/c7GO5cPuRA6H5hx4gO+/Hn+Cu9MRQU0PNiUoWq1L//8sq6kFSNxGXFb2XTaUfa9y+Pg==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-react-display-name": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz", - "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-react-jsx": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.3.tgz", - "integrity": "sha512-JEulRWG2f04a7L8VWaOngWiK6p+JOSpB+DAtwfJgOaej1qdbNxqtK7MwTBHjUA10NeFcszlFNqCdbRcirzh2uQ==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-module-imports": "^7.21.4", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-jsx": "^7.21.4", - "@babel/types": "^7.22.3" - } - }, - "@babel/plugin-transform-react-jsx-development": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz", - "integrity": "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==", - "requires": { - "@babel/plugin-transform-react-jsx": "^7.18.6" - } - }, - "@babel/plugin-transform-react-pure-annotations": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz", - "integrity": "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-regenerator": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.21.5.tgz", - "integrity": "sha512-ZoYBKDb6LyMi5yCsByQ5jmXsHAQDDYeexT1Szvlmui+lADvfSecr5Dxd/PkrTC3pAD182Fcju1VQkB4oCp9M+w==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "regenerator-transform": "^0.15.1" - } - }, - "@babel/plugin-transform-reserved-words": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", - "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-runtime": { - "version": "7.22.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.22.2.tgz", - "integrity": "sha512-ewgWBw1pAoqFg9crO6yhZAQoKWN/iNEGqAmuYegZp+xEpvMHGyLxt0SgPZ9bWG6jx4eff6jQ4JILt5zwj/EoTg==", - "requires": { - "@babel/helper-module-imports": "^7.21.4", - "@babel/helper-plugin-utils": "^7.21.5", - "babel-plugin-polyfill-corejs2": "^0.4.2", - "babel-plugin-polyfill-corejs3": "^0.8.1", - "babel-plugin-polyfill-regenerator": "^0.5.0", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } - } - }, - "@babel/plugin-transform-shorthand-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", - "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-spread": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz", - "integrity": "sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw==", - "requires": { - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0" - } - }, - "@babel/plugin-transform-sticky-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", - "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-template-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", - "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-typeof-symbol": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", - "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-typescript": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.3.tgz", - "integrity": "sha512-pyjnCIniO5PNaEuGxT28h0HbMru3qCVrMqVgVOz/krComdIrY9W6FCLBq9NWHY8HDGaUlan+UhmZElDENIfCcw==", - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/plugin-syntax-typescript": "^7.21.4" - } - }, - "@babel/plugin-transform-unicode-escapes": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.21.5.tgz", - "integrity": "sha512-LYm/gTOwZqsYohlvFUe/8Tujz75LqqVC2w+2qPHLR+WyWHGCZPN1KBpJCJn+4Bk4gOkQy/IXKIge6az5MqwlOg==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-unicode-property-regex": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.3.tgz", - "integrity": "sha512-5ScJ+OmdX+O6HRuMGW4kv7RL9vIKdtdAj9wuWUKy1wbHY3jaM/UlyIiC1G7J6UJiiyMukjjK0QwL3P0vBd0yYg==", - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/plugin-transform-unicode-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", - "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-unicode-sets-regex": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.3.tgz", - "integrity": "sha512-hNufLdkF8vqywRp+P55j4FHXqAX2LRUccoZHH7AFn1pq5ZOO2ISKW9w13bFZVjBoTqeve2HOgoJCcaziJVhGNw==", - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5" - } - }, - "@babel/preset-env": { - "version": "7.22.2", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.22.2.tgz", - "integrity": "sha512-UPNK9pgphMULvA2EMKIWHU90C47PKyuvQ8pE1MzH7l9PgFcRabdrHhlePpBuWxYZQ+TziP2nycKoI5C1Yhdm9Q==", - "requires": { - "@babel/compat-data": "^7.22.0", - "@babel/helper-compilation-targets": "^7.22.1", - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-validator-option": "^7.21.0", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.0", - "@babel/plugin-proposal-private-property-in-object": "^7.21.0", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.20.0", - "@babel/plugin-syntax-import-attributes": "^7.22.0", - "@babel/plugin-syntax-import-meta": "^7.10.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.21.5", - "@babel/plugin-transform-async-generator-functions": "^7.22.0", - "@babel/plugin-transform-async-to-generator": "^7.20.7", - "@babel/plugin-transform-block-scoped-functions": "^7.18.6", - "@babel/plugin-transform-block-scoping": "^7.21.0", - "@babel/plugin-transform-class-properties": "^7.22.0", - "@babel/plugin-transform-class-static-block": "^7.22.0", - "@babel/plugin-transform-classes": "^7.21.0", - "@babel/plugin-transform-computed-properties": "^7.21.5", - "@babel/plugin-transform-destructuring": "^7.21.3", - "@babel/plugin-transform-dotall-regex": "^7.18.6", - "@babel/plugin-transform-duplicate-keys": "^7.18.9", - "@babel/plugin-transform-dynamic-import": "^7.22.1", - "@babel/plugin-transform-exponentiation-operator": "^7.18.6", - "@babel/plugin-transform-export-namespace-from": "^7.22.0", - "@babel/plugin-transform-for-of": "^7.21.5", - "@babel/plugin-transform-function-name": "^7.18.9", - "@babel/plugin-transform-json-strings": "^7.22.0", - "@babel/plugin-transform-literals": "^7.18.9", - "@babel/plugin-transform-logical-assignment-operators": "^7.22.0", - "@babel/plugin-transform-member-expression-literals": "^7.18.6", - "@babel/plugin-transform-modules-amd": "^7.20.11", - "@babel/plugin-transform-modules-commonjs": "^7.21.5", - "@babel/plugin-transform-modules-systemjs": "^7.22.0", - "@babel/plugin-transform-modules-umd": "^7.18.6", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.0", - "@babel/plugin-transform-new-target": "^7.22.0", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.0", - "@babel/plugin-transform-numeric-separator": "^7.22.0", - "@babel/plugin-transform-object-rest-spread": "^7.22.0", - "@babel/plugin-transform-object-super": "^7.18.6", - "@babel/plugin-transform-optional-catch-binding": "^7.22.0", - "@babel/plugin-transform-optional-chaining": "^7.22.0", - "@babel/plugin-transform-parameters": "^7.22.0", - "@babel/plugin-transform-private-methods": "^7.22.0", - "@babel/plugin-transform-private-property-in-object": "^7.22.0", - "@babel/plugin-transform-property-literals": "^7.18.6", - "@babel/plugin-transform-regenerator": "^7.21.5", - "@babel/plugin-transform-reserved-words": "^7.18.6", - "@babel/plugin-transform-shorthand-properties": "^7.18.6", - "@babel/plugin-transform-spread": "^7.20.7", - "@babel/plugin-transform-sticky-regex": "^7.18.6", - "@babel/plugin-transform-template-literals": "^7.18.9", - "@babel/plugin-transform-typeof-symbol": "^7.18.9", - "@babel/plugin-transform-unicode-escapes": "^7.21.5", - "@babel/plugin-transform-unicode-property-regex": "^7.22.0", - "@babel/plugin-transform-unicode-regex": "^7.18.6", - "@babel/plugin-transform-unicode-sets-regex": "^7.22.0", - "@babel/preset-modules": "^0.1.5", - "@babel/types": "^7.22.0", - "babel-plugin-polyfill-corejs2": "^0.4.2", - "babel-plugin-polyfill-corejs3": "^0.8.1", - "babel-plugin-polyfill-regenerator": "^0.5.0", - "core-js-compat": "^3.30.2", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } - } - }, - "@babel/preset-modules": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", - "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", - "@babel/plugin-transform-dotall-regex": "^7.4.4", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - } - }, - "@babel/preset-react": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.22.3.tgz", - "integrity": "sha512-lxDz1mnZ9polqClBCVBjIVUypoB4qV3/tZUDb/IlYbW1kiiLaXaX+bInbRjl+lNQ/iUZraQ3+S8daEmoELMWug==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-validator-option": "^7.21.0", - "@babel/plugin-transform-react-display-name": "^7.18.6", - "@babel/plugin-transform-react-jsx": "^7.22.3", - "@babel/plugin-transform-react-jsx-development": "^7.18.6", - "@babel/plugin-transform-react-pure-annotations": "^7.18.6" - } - }, - "@babel/preset-typescript": { - "version": "7.21.5", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.21.5.tgz", - "integrity": "sha512-iqe3sETat5EOrORXiQ6rWfoOg2y68Cs75B9wNxdPW4kixJxh7aXQE1KPdWLDniC24T/6dSnguF33W9j/ZZQcmA==", - "requires": { - "@babel/helper-plugin-utils": "^7.21.5", - "@babel/helper-validator-option": "^7.21.0", - "@babel/plugin-syntax-jsx": "^7.21.4", - "@babel/plugin-transform-modules-commonjs": "^7.21.5", - "@babel/plugin-transform-typescript": "^7.21.3" - } - }, - "@babel/regjsgen": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", - "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==" - }, - "@babel/runtime": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.3.tgz", - "integrity": "sha512-XsDuspWKLUsxwCp6r7EhsExHtYfbe5oAGQ19kqngTdCPUoPQzOPdUbD/pB9PJiwb2ptYKQDjSJT3R6dC+EPqfQ==", - "requires": { - "regenerator-runtime": "^0.13.11" - } - }, - "@babel/template": { - "version": "7.21.9", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.21.9.tgz", - "integrity": "sha512-MK0X5k8NKOuWRamiEfc3KEJiHMTkGZNUjzMipqCGDDc6ijRl/B7RGSKVGncu4Ro/HdyzzY6cmoXuKI2Gffk7vQ==", - "requires": { - "@babel/code-frame": "^7.21.4", - "@babel/parser": "^7.21.9", - "@babel/types": "^7.21.5" - } - }, - "@babel/traverse": { - "version": "7.22.1", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.1.tgz", - "integrity": "sha512-lAWkdCoUFnmwLBhIRLciFntGYsIIoC6vIbN8zrLPqBnJmPu7Z6nzqnKd7FsxQUNAvZfVZ0x6KdNvNp8zWIOHSQ==", - "requires": { - "@babel/code-frame": "^7.21.4", - "@babel/generator": "^7.22.0", - "@babel/helper-environment-visitor": "^7.22.1", - "@babel/helper-function-name": "^7.21.0", - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.22.0", - "@babel/types": "^7.22.0", - "debug": "^4.1.0", - "globals": "^11.1.0" - } - }, - "@babel/types": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.3.tgz", - "integrity": "sha512-P3na3xIQHTKY4L0YOG7pM8M8uoUIB910WQaSiiMCZUC2Cy8XFEQONGABFnHWBa2gpGKODTAJcNhi5Zk0sLRrzg==", - "requires": { - "@babel/helper-string-parser": "^7.21.5", - "@babel/helper-validator-identifier": "^7.19.1", - "to-fast-properties": "^2.0.0" - } - }, - "@bcoe/v8-coverage": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==" - }, - "@csstools/normalize.css": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/@csstools/normalize.css/-/normalize.css-12.0.0.tgz", - "integrity": "sha512-M0qqxAcwCsIVfpFQSlGN5XjXWu8l5JDZN+fPt1LeW5SZexQTgnaEvgXAY+CeygRw0EeppWHi12JxESWiWrB0Sg==" - }, - "@csstools/postcss-cascade-layers": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-cascade-layers/-/postcss-cascade-layers-1.1.1.tgz", - "integrity": "sha512-+KdYrpKC5TgomQr2DlZF4lDEpHcoxnj5IGddYYfBWJAKfj1JtuHUIqMa+E1pJJ+z3kvDViWMqyqPlG4Ja7amQA==", - "requires": { - "@csstools/selector-specificity": "^2.0.2", - "postcss-selector-parser": "^6.0.10" - } - }, - "@csstools/postcss-color-function": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-color-function/-/postcss-color-function-1.1.1.tgz", - "integrity": "sha512-Bc0f62WmHdtRDjf5f3e2STwRAl89N2CLb+9iAwzrv4L2hncrbDwnQD9PCq0gtAt7pOI2leIV08HIBUd4jxD8cw==", - "requires": { - "@csstools/postcss-progressive-custom-properties": "^1.1.0", - "postcss-value-parser": "^4.2.0" - } - }, - "@csstools/postcss-font-format-keywords": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-font-format-keywords/-/postcss-font-format-keywords-1.0.1.tgz", - "integrity": "sha512-ZgrlzuUAjXIOc2JueK0X5sZDjCtgimVp/O5CEqTcs5ShWBa6smhWYbS0x5cVc/+rycTDbjjzoP0KTDnUneZGOg==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "@csstools/postcss-hwb-function": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@csstools/postcss-hwb-function/-/postcss-hwb-function-1.0.2.tgz", - "integrity": "sha512-YHdEru4o3Rsbjmu6vHy4UKOXZD+Rn2zmkAmLRfPet6+Jz4Ojw8cbWxe1n42VaXQhD3CQUXXTooIy8OkVbUcL+w==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "@csstools/postcss-ic-unit": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-ic-unit/-/postcss-ic-unit-1.0.1.tgz", - "integrity": "sha512-Ot1rcwRAaRHNKC9tAqoqNZhjdYBzKk1POgWfhN4uCOE47ebGcLRqXjKkApVDpjifL6u2/55ekkpnFcp+s/OZUw==", - "requires": { - "@csstools/postcss-progressive-custom-properties": "^1.1.0", - "postcss-value-parser": "^4.2.0" - } - }, - "@csstools/postcss-is-pseudo-class": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@csstools/postcss-is-pseudo-class/-/postcss-is-pseudo-class-2.0.7.tgz", - "integrity": "sha512-7JPeVVZHd+jxYdULl87lvjgvWldYu+Bc62s9vD/ED6/QTGjy0jy0US/f6BG53sVMTBJ1lzKZFpYmofBN9eaRiA==", - "requires": { - "@csstools/selector-specificity": "^2.0.0", - "postcss-selector-parser": "^6.0.10" - } - }, - "@csstools/postcss-nested-calc": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@csstools/postcss-nested-calc/-/postcss-nested-calc-1.0.0.tgz", - "integrity": "sha512-JCsQsw1wjYwv1bJmgjKSoZNvf7R6+wuHDAbi5f/7MbFhl2d/+v+TvBTU4BJH3G1X1H87dHl0mh6TfYogbT/dJQ==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "@csstools/postcss-normalize-display-values": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-normalize-display-values/-/postcss-normalize-display-values-1.0.1.tgz", - "integrity": "sha512-jcOanIbv55OFKQ3sYeFD/T0Ti7AMXc9nM1hZWu8m/2722gOTxFg7xYu4RDLJLeZmPUVQlGzo4jhzvTUq3x4ZUw==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "@csstools/postcss-oklab-function": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-oklab-function/-/postcss-oklab-function-1.1.1.tgz", - "integrity": "sha512-nJpJgsdA3dA9y5pgyb/UfEzE7W5Ka7u0CX0/HIMVBNWzWemdcTH3XwANECU6anWv/ao4vVNLTMxhiPNZsTK6iA==", - "requires": { - "@csstools/postcss-progressive-custom-properties": "^1.1.0", - "postcss-value-parser": "^4.2.0" - } - }, - "@csstools/postcss-progressive-custom-properties": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@csstools/postcss-progressive-custom-properties/-/postcss-progressive-custom-properties-1.3.0.tgz", - "integrity": "sha512-ASA9W1aIy5ygskZYuWams4BzafD12ULvSypmaLJT2jvQ8G0M3I8PRQhC0h7mG0Z3LI05+agZjqSR9+K9yaQQjA==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "@csstools/postcss-stepped-value-functions": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@csstools/postcss-stepped-value-functions/-/postcss-stepped-value-functions-1.0.1.tgz", - "integrity": "sha512-dz0LNoo3ijpTOQqEJLY8nyaapl6umbmDcgj4AD0lgVQ572b2eqA1iGZYTTWhrcrHztWDDRAX2DGYyw2VBjvCvQ==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "@csstools/postcss-text-decoration-shorthand": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@csstools/postcss-text-decoration-shorthand/-/postcss-text-decoration-shorthand-1.0.0.tgz", - "integrity": "sha512-c1XwKJ2eMIWrzQenN0XbcfzckOLLJiczqy+YvfGmzoVXd7pT9FfObiSEfzs84bpE/VqfpEuAZ9tCRbZkZxxbdw==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "@csstools/postcss-trigonometric-functions": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@csstools/postcss-trigonometric-functions/-/postcss-trigonometric-functions-1.0.2.tgz", - "integrity": "sha512-woKaLO///4bb+zZC2s80l+7cm07M7268MsyG3M0ActXXEFi6SuhvriQYcb58iiKGbjwwIU7n45iRLEHypB47Og==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "@csstools/postcss-unset-value": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@csstools/postcss-unset-value/-/postcss-unset-value-1.0.2.tgz", - "integrity": "sha512-c8J4roPBILnelAsdLr4XOAR/GsTm0GJi4XpcfvoWk3U6KiTCqiFYc63KhRMQQX35jYMp4Ao8Ij9+IZRgMfJp1g==" - }, - "@csstools/selector-specificity": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz", - "integrity": "sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw==" - }, - "@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "requires": { - "eslint-visitor-keys": "^3.3.0" - } - }, - "@eslint-community/regexpp": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", - "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==" - }, - "@eslint/eslintrc": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", - "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", - "requires": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.5.2", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "dependencies": { - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", - "requires": { - "type-fest": "^0.20.2" - } - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "requires": { - "argparse": "^2.0.1" - } - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==" - } - } - }, - "@eslint/js": { - "version": "8.41.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.41.0.tgz", - "integrity": "sha512-LxcyMGxwmTh2lY9FwHPGWOHmYFCZvbrFCBZL4FzSSsxsRPuhrYUg/49/0KDfW8tnIEaEHtfmn6+NPN+1DqaNmA==" - }, - "@humanwhocodes/config-array": { - "version": "0.11.8", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", - "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", - "requires": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" - } - }, - "@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==" - }, - "@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==" - }, - "@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", - "requires": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - }, - "dependencies": { - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "requires": { - "p-limit": "^2.2.0" - } - } - } - }, - "@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==" - }, - "@jest/console": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", - "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", - "requires": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", - "slash": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@jest/core": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", - "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", - "requires": { - "@jest/console": "^27.5.1", - "@jest/reporters": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.8.1", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^27.5.1", - "jest-config": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-resolve-dependencies": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "jest-watcher": "^27.5.1", - "micromatch": "^4.0.4", - "rimraf": "^3.0.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@jest/environment": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", - "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", - "requires": { - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1" - } - }, - "@jest/expect-utils": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.5.0.tgz", - "integrity": "sha512-fmKzsidoXQT2KwnrwE0SQq3uj8Z763vzR8LnLBwC2qYWEFpjX8daRsk6rHUM1QvNlEW/UJXNXm59ztmJJWs2Mg==", - "requires": { - "jest-get-type": "^29.4.3" - }, - "dependencies": { - "jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==" - } - } - }, - "@jest/fake-timers": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", - "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", - "requires": { - "@jest/types": "^27.5.1", - "@sinonjs/fake-timers": "^8.0.1", - "@types/node": "*", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - } - }, - "@jest/globals": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", - "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", - "requires": { - "@jest/environment": "^27.5.1", - "@jest/types": "^27.5.1", - "expect": "^27.5.1" - } - }, - "@jest/reporters": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", - "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", - "requires": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.2", - "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^5.1.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-haste-map": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "slash": "^3.0.0", - "source-map": "^0.6.0", - "string-length": "^4.0.1", - "terminal-link": "^2.0.0", - "v8-to-istanbul": "^8.1.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@jest/schemas": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-28.1.3.tgz", - "integrity": "sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg==", - "requires": { - "@sinclair/typebox": "^0.24.1" - } - }, - "@jest/source-map": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", - "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", - "requires": { - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9", - "source-map": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } - } - }, - "@jest/test-result": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", - "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", - "requires": { - "@jest/console": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - } - }, - "@jest/test-sequencer": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", - "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", - "requires": { - "@jest/test-result": "^27.5.1", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-runtime": "^27.5.1" - } - }, - "@jest/transform": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", - "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", - "requires": { - "@babel/core": "^7.1.0", - "@jest/types": "^27.5.1", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-util": "^27.5.1", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@jest/types": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", - "requires": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==" - }, - "@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==" - }, - "@jridgewell/source-map": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", - "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", - "requires": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" - }, - "@jridgewell/trace-mapping": { - "version": "0.3.18", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", - "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", - "requires": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" - }, - "dependencies": { - "@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" - } - } - }, - "@leichtgewicht/ip-codec": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", - "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==" - }, - "@nicolo-ribaudo/eslint-scope-5-internals": { - "version": "5.1.1-v1", - "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", - "integrity": "sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==", - "requires": { - "eslint-scope": "5.1.1" - }, - "dependencies": { - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - } - }, - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" - } - } - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==" - }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - } - }, - "@pmmmwh/react-refresh-webpack-plugin": { - "version": "0.5.10", - "resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.10.tgz", - "integrity": "sha512-j0Ya0hCFZPd4x40qLzbhGsh9TMtdb+CJQiso+WxLOPNasohq9cc5SNUcwsZaRH6++Xh91Xkm/xHCkuIiIu0LUA==", - "requires": { - "ansi-html-community": "^0.0.8", - "common-path-prefix": "^3.0.0", - "core-js-pure": "^3.23.3", - "error-stack-parser": "^2.0.6", - "find-up": "^5.0.0", - "html-entities": "^2.1.0", - "loader-utils": "^2.0.4", - "schema-utils": "^3.0.0", - "source-map": "^0.7.3" - } - }, - "@rollup/plugin-babel": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", - "integrity": "sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==", - "requires": { - "@babel/helper-module-imports": "^7.10.4", - "@rollup/pluginutils": "^3.1.0" - } - }, - "@rollup/plugin-node-resolve": { - "version": "11.2.1", - "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz", - "integrity": "sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg==", - "requires": { - "@rollup/pluginutils": "^3.1.0", - "@types/resolve": "1.17.1", - "builtin-modules": "^3.1.0", - "deepmerge": "^4.2.2", - "is-module": "^1.0.0", - "resolve": "^1.19.0" - } - }, - "@rollup/plugin-replace": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-2.4.2.tgz", - "integrity": "sha512-IGcu+cydlUMZ5En85jxHH4qj2hta/11BHq95iHEyb2sbgiN0eCdzvUcHw5gt9pBL5lTi4JDYJ1acCoMGpTvEZg==", - "requires": { - "@rollup/pluginutils": "^3.1.0", - "magic-string": "^0.25.7" - } - }, - "@rollup/pluginutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", - "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", - "requires": { - "@types/estree": "0.0.39", - "estree-walker": "^1.0.1", - "picomatch": "^2.2.2" - }, - "dependencies": { - "@types/estree": { - "version": "0.0.39", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", - "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==" - } - } - }, - "@rushstack/eslint-patch": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.3.0.tgz", - "integrity": "sha512-IthPJsJR85GhOkp3Hvp8zFOPK5ynKn6STyHa/WZpioK7E1aYDiBzpqQPrngc14DszIUkIrdd3k9Iu0XSzlP/1w==" - }, - "@sinclair/typebox": { - "version": "0.24.51", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.51.tgz", - "integrity": "sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA==" - }, - "@sinonjs/commons": { - "version": "1.8.6", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", - "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", - "requires": { - "type-detect": "4.0.8" - } - }, - "@sinonjs/fake-timers": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", - "requires": { - "@sinonjs/commons": "^1.7.0" - } - }, - "@surma/rollup-plugin-off-main-thread": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz", - "integrity": "sha512-lR8q/9W7hZpMWweNiAKU7NQerBnzQQLvi8qnTDU/fxItPhtZVMbPV3lbCwjhIlNBe9Bbr5V+KHshvWmVSG9cxQ==", - "requires": { - "ejs": "^3.1.6", - "json5": "^2.2.0", - "magic-string": "^0.25.0", - "string.prototype.matchall": "^4.0.6" - } - }, - "@svgr/babel-plugin-add-jsx-attribute": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-5.4.0.tgz", - "integrity": "sha512-ZFf2gs/8/6B8PnSofI0inYXr2SDNTDScPXhN7k5EqD4aZ3gi6u+rbmZHVB8IM3wDyx8ntKACZbtXSm7oZGRqVg==" - }, - "@svgr/babel-plugin-remove-jsx-attribute": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-5.4.0.tgz", - "integrity": "sha512-yaS4o2PgUtwLFGTKbsiAy6D0o3ugcUhWK0Z45umJ66EPWunAz9fuFw2gJuje6wqQvQWOTJvIahUwndOXb7QCPg==" - }, - "@svgr/babel-plugin-remove-jsx-empty-expression": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-5.0.1.tgz", - "integrity": "sha512-LA72+88A11ND/yFIMzyuLRSMJ+tRKeYKeQ+mR3DcAZ5I4h5CPWN9AHyUzJbWSYp/u2u0xhmgOe0+E41+GjEueA==" - }, - "@svgr/babel-plugin-replace-jsx-attribute-value": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-5.0.1.tgz", - "integrity": "sha512-PoiE6ZD2Eiy5mK+fjHqwGOS+IXX0wq/YDtNyIgOrc6ejFnxN4b13pRpiIPbtPwHEc+NT2KCjteAcq33/F1Y9KQ==" - }, - "@svgr/babel-plugin-svg-dynamic-title": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-5.4.0.tgz", - "integrity": "sha512-zSOZH8PdZOpuG1ZVx/cLVePB2ibo3WPpqo7gFIjLV9a0QsuQAzJiwwqmuEdTaW2pegyBE17Uu15mOgOcgabQZg==" - }, - "@svgr/babel-plugin-svg-em-dimensions": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-5.4.0.tgz", - "integrity": "sha512-cPzDbDA5oT/sPXDCUYoVXEmm3VIoAWAPT6mSPTJNbQaBNUuEKVKyGH93oDY4e42PYHRW67N5alJx/eEol20abw==" - }, - "@svgr/babel-plugin-transform-react-native-svg": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-5.4.0.tgz", - "integrity": "sha512-3eYP/SaopZ41GHwXma7Rmxcv9uRslRDTY1estspeB1w1ueZWd/tPlMfEOoccYpEMZU3jD4OU7YitnXcF5hLW2Q==" - }, - "@svgr/babel-plugin-transform-svg-component": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-5.5.0.tgz", - "integrity": "sha512-q4jSH1UUvbrsOtlo/tKcgSeiCHRSBdXoIoqX1pgcKK/aU3JD27wmMKwGtpB8qRYUYoyXvfGxUVKchLuR5pB3rQ==" - }, - "@svgr/babel-preset": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-5.5.0.tgz", - "integrity": "sha512-4FiXBjvQ+z2j7yASeGPEi8VD/5rrGQk4Xrq3EdJmoZgz/tpqChpo5hgXDvmEauwtvOc52q8ghhZK4Oy7qph4ig==", - "requires": { - "@svgr/babel-plugin-add-jsx-attribute": "^5.4.0", - "@svgr/babel-plugin-remove-jsx-attribute": "^5.4.0", - "@svgr/babel-plugin-remove-jsx-empty-expression": "^5.0.1", - "@svgr/babel-plugin-replace-jsx-attribute-value": "^5.0.1", - "@svgr/babel-plugin-svg-dynamic-title": "^5.4.0", - "@svgr/babel-plugin-svg-em-dimensions": "^5.4.0", - "@svgr/babel-plugin-transform-react-native-svg": "^5.4.0", - "@svgr/babel-plugin-transform-svg-component": "^5.5.0" - } - }, - "@svgr/core": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/core/-/core-5.5.0.tgz", - "integrity": "sha512-q52VOcsJPvV3jO1wkPtzTuKlvX7Y3xIcWRpCMtBF3MrteZJtBfQw/+u0B1BHy5ColpQc1/YVTrPEtSYIMNZlrQ==", - "requires": { - "@svgr/plugin-jsx": "^5.5.0", - "camelcase": "^6.2.0", - "cosmiconfig": "^7.0.0" - } - }, - "@svgr/hast-util-to-babel-ast": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-5.5.0.tgz", - "integrity": "sha512-cAaR/CAiZRB8GP32N+1jocovUtvlj0+e65TB50/6Lcime+EA49m/8l+P2ko+XPJ4dw3xaPS3jOL4F2X4KWxoeQ==", - "requires": { - "@babel/types": "^7.12.6" - } - }, - "@svgr/plugin-jsx": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-5.5.0.tgz", - "integrity": "sha512-V/wVh33j12hGh05IDg8GpIUXbjAPnTdPTKuP4VNLggnwaHMPNQNae2pRnyTAILWCQdz5GyMqtO488g7CKM8CBA==", - "requires": { - "@babel/core": "^7.12.3", - "@svgr/babel-preset": "^5.5.0", - "@svgr/hast-util-to-babel-ast": "^5.5.0", - "svg-parser": "^2.0.2" - } - }, - "@svgr/plugin-svgo": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-5.5.0.tgz", - "integrity": "sha512-r5swKk46GuQl4RrVejVwpeeJaydoxkdwkM1mBKOgJLBUJPGaLci6ylg/IjhrRsREKDkr4kbMWdgOtbXEh0fyLQ==", - "requires": { - "cosmiconfig": "^7.0.0", - "deepmerge": "^4.2.2", - "svgo": "^1.2.2" - } - }, - "@svgr/webpack": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@svgr/webpack/-/webpack-5.5.0.tgz", - "integrity": "sha512-DOBOK255wfQxguUta2INKkzPj6AIS6iafZYiYmHn6W3pHlycSRRlvWKCfLDG10fXfLWqE3DJHgRUOyJYmARa7g==", - "requires": { - "@babel/core": "^7.12.3", - "@babel/plugin-transform-react-constant-elements": "^7.12.1", - "@babel/preset-env": "^7.12.1", - "@babel/preset-react": "^7.12.5", - "@svgr/core": "^5.5.0", - "@svgr/plugin-jsx": "^5.5.0", - "@svgr/plugin-svgo": "^5.5.0", - "loader-utils": "^2.0.0" - } - }, - "@testing-library/dom": { - "version": "8.20.0", - "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.20.0.tgz", - "integrity": "sha512-d9ULIT+a4EXLX3UU8FBjauG9NnsZHkHztXoIcTsOKoOw030fyjheN9svkTULjJxtYag9DZz5Jz5qkWZDPxTFwA==", - "requires": { - "@babel/code-frame": "^7.10.4", - "@babel/runtime": "^7.12.5", - "@types/aria-query": "^5.0.1", - "aria-query": "^5.0.0", - "chalk": "^4.1.0", - "dom-accessibility-api": "^0.5.9", - "lz-string": "^1.4.4", - "pretty-format": "^27.0.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@testing-library/jest-dom": { - "version": "5.16.5", - "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.5.tgz", - "integrity": "sha512-N5ixQ2qKpi5OLYfwQmUb/5mSV9LneAcaUfp32pn4yCnpb8r/Yz0pXFPck21dIicKmi+ta5WRAknkZCfA8refMA==", - "requires": { - "@adobe/css-tools": "^4.0.1", - "@babel/runtime": "^7.9.2", - "@types/testing-library__jest-dom": "^5.9.1", - "aria-query": "^5.0.0", - "chalk": "^3.0.0", - "css.escape": "^1.5.1", - "dom-accessibility-api": "^0.5.6", - "lodash": "^4.17.15", - "redent": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@testing-library/react": { - "version": "13.4.0", - "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-13.4.0.tgz", - "integrity": "sha512-sXOGON+WNTh3MLE9rve97ftaZukN3oNf2KjDy7YTx6hcTO2uuLHuCGynMDhFwGw/jYf4OJ2Qk0i4i79qMNNkyw==", - "requires": { - "@babel/runtime": "^7.12.5", - "@testing-library/dom": "^8.5.0", - "@types/react-dom": "^18.0.0" - } - }, - "@testing-library/user-event": { - "version": "13.5.0", - "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-13.5.0.tgz", - "integrity": "sha512-5Kwtbo3Y/NowpkbRuSepbyMFkZmHgD+vPzYB/RJ4oxt5Gj/avFFBYjhw27cqSVPVw/3a67NK1PbiIr9k4Gwmdg==", - "requires": { - "@babel/runtime": "^7.12.5" - } - }, - "@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==" - }, - "@trysound/sax": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", - "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==" - }, - "@types/aria-query": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.1.tgz", - "integrity": "sha512-XTIieEY+gvJ39ChLcB4If5zHtPxt3Syj5rgZR+e1ctpmK8NjPf0zFqsz4JpLJT0xla9GFDKjy8Cpu331nrmE1Q==" - }, - "@types/babel__core": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", - "integrity": "sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==", - "requires": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "@types/babel__generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", - "requires": { - "@babel/types": "^7.0.0" - } - }, - "@types/babel__template": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", - "requires": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "@types/babel__traverse": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.0.tgz", - "integrity": "sha512-TBOjqAGf0hmaqRwpii5LLkJLg7c6OMm4nHLmpsUxwk9bBHtoTC6dAHdVWdGv4TBxj2CZOZY8Xfq8WmfoVi7n4Q==", - "requires": { - "@babel/types": "^7.20.7" - } - }, - "@types/body-parser": { - "version": "1.19.2", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", - "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", - "requires": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "@types/bonjour": { - "version": "3.5.10", - "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.10.tgz", - "integrity": "sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==", - "requires": { - "@types/node": "*" - } - }, - "@types/connect": { - "version": "3.4.35", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", - "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", - "requires": { - "@types/node": "*" - } - }, - "@types/connect-history-api-fallback": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz", - "integrity": "sha512-4x5FkPpLipqwthjPsF7ZRbOv3uoLUFkTA9G9v583qi4pACvq0uTELrB8OLUzPWUI4IJIyvM85vzkV1nyiI2Lig==", - "requires": { - "@types/express-serve-static-core": "*", - "@types/node": "*" - } - }, - "@types/eslint": { - "version": "8.40.0", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.0.tgz", - "integrity": "sha512-nbq2mvc/tBrK9zQQuItvjJl++GTN5j06DaPtp3hZCpngmG6Q3xoyEmd0TwZI0gAy/G1X0zhGBbr2imsGFdFV0g==", - "requires": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "@types/eslint-scope": { - "version": "3.7.4", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", - "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", - "requires": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, - "@types/estree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", - "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==" - }, - "@types/express": { - "version": "4.17.17", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", - "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", - "requires": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "*" - } - }, - "@types/express-serve-static-core": { - "version": "4.17.35", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz", - "integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==", - "requires": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "@types/graceful-fs": { - "version": "4.1.6", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", - "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", - "requires": { - "@types/node": "*" - } - }, - "@types/html-minifier-terser": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", - "integrity": "sha512-oh/6byDPnL1zeNXFrDXFLyZjkr1MsBG667IM792caf1L2UPOOMf65NFzjUH/ltyfwjAGfs1rsX1eftK0jC/KIg==" - }, - "@types/http-proxy": { - "version": "1.17.11", - "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.11.tgz", - "integrity": "sha512-HC8G7c1WmaF2ekqpnFq626xd3Zz0uvaqFmBJNRZCGEZCXkvSdJoNFn/8Ygbd9fKNQj8UzLdCETaI0UWPAjK7IA==", - "requires": { - "@types/node": "*" - } - }, - "@types/istanbul-lib-coverage": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==" - }, - "@types/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", - "requires": { - "@types/istanbul-lib-coverage": "*" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/jest": { - "version": "29.5.1", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.1.tgz", - "integrity": "sha512-tEuVcHrpaixS36w7hpsfLBLpjtMRJUE09/MHXn923LOVojDwyC14cWcfc0rDs0VEfUyYmt/+iX1kxxp+gZMcaQ==", - "requires": { - "expect": "^29.0.0", - "pretty-format": "^29.0.0" - }, - "dependencies": { - "@jest/schemas": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.4.3.tgz", - "integrity": "sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg==", - "requires": { - "@sinclair/typebox": "^0.25.16" - } - }, - "@jest/types": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.5.0.tgz", - "integrity": "sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==", - "requires": { - "@jest/schemas": "^29.4.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - } - }, - "@sinclair/typebox": { - "version": "0.25.24", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.24.tgz", - "integrity": "sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==" - }, - "@types/yargs": { - "version": "17.0.24", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", - "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "diff-sequences": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", - "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==" - }, - "expect": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-29.5.0.tgz", - "integrity": "sha512-yM7xqUrCO2JdpFo4XpM82t+PJBFybdqoQuJLDGeDX2ij8NZzqRHyu3Hp188/JX7SWqud+7t4MUdvcgGBICMHZg==", - "requires": { - "@jest/expect-utils": "^29.5.0", - "jest-get-type": "^29.4.3", - "jest-matcher-utils": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-util": "^29.5.0" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "jest-diff": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.5.0.tgz", - "integrity": "sha512-LtxijLLZBduXnHSniy0WMdaHjmQnt3g5sa16W4p0HqukYTTsyTW3GD1q41TyGl5YFXj/5B2U6dlh5FM1LIMgxw==", - "requires": { - "chalk": "^4.0.0", - "diff-sequences": "^29.4.3", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - } - }, - "jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==" - }, - "jest-matcher-utils": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.5.0.tgz", - "integrity": "sha512-lecRtgm/rjIK0CQ7LPQwzCs2VwW6WAahA55YBuI+xqmhm7LAaxokSB8C97yJeYyT+HvQkH741StzpU41wohhWw==", - "requires": { - "chalk": "^4.0.0", - "jest-diff": "^29.5.0", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - } - }, - "jest-message-util": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.5.0.tgz", - "integrity": "sha512-Kijeg9Dag6CKtIDA7O21zNTACqD5MD/8HfIV8pdD94vFyFuer52SigdC3IQMhab3vACxXMiFk+yMHNdbqtyTGA==", - "requires": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^29.5.0", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^29.5.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - } - }, - "jest-util": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.5.0.tgz", - "integrity": "sha512-RYMgG/MTadOr5t8KdhejfvUU82MxsCu5MF6KuDUHl+NuwzUt+Sm6jJWxTJVrDR1j5M/gJVCPKQEpWXY+yIQ6lQ==", - "requires": { - "@jest/types": "^29.5.0", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - } - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==" - } - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@types/json-schema": { - "version": "7.0.12", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", - "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==" - }, - "@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==" - }, - "@types/mime": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", - "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==" - }, - "@types/node": { - "version": "20.2.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz", - "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==" - }, - "@types/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" - }, - "@types/prettier": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.2.tgz", - "integrity": "sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==" - }, - "@types/prop-types": { - "version": "15.7.5", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", - "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==" - }, - "@types/q": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.5.tgz", - "integrity": "sha512-L28j2FcJfSZOnL1WBjDYp2vUHCeIFlyYI/53EwD/rKUBQ7MtUUfbQWiyKJGpcnv4/WgrhWsFKrcPstcAt/J0tQ==" - }, - "@types/qs": { - "version": "6.9.7", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", - "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==" - }, - "@types/range-parser": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", - "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" - }, - "@types/react": { - "version": "18.2.7", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.7.tgz", - "integrity": "sha512-ojrXpSH2XFCmHm7Jy3q44nXDyN54+EYKP2lBhJ2bqfyPj6cIUW/FZW/Csdia34NQgq7KYcAlHi5184m4X88+yw==", - "requires": { - "@types/prop-types": "*", - "@types/scheduler": "*", - "csstype": "^3.0.2" - } - }, - "@types/react-dom": { - "version": "18.2.4", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.4.tgz", - "integrity": "sha512-G2mHoTMTL4yoydITgOGwWdWMVd8sNgyEP85xVmMKAPUBwQWm9wBPQUmvbeF4V3WBY1P7mmL4BkjQ0SqUpf1snw==", - "requires": { - "@types/react": "*" - } - }, - "@types/resolve": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", - "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", - "requires": { - "@types/node": "*" - } - }, - "@types/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==" - }, - "@types/scheduler": { - "version": "0.16.3", - "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz", - "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==" - }, - "@types/semver": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz", - "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==" - }, - "@types/send": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz", - "integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==", - "requires": { - "@types/mime": "^1", - "@types/node": "*" - } - }, - "@types/serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==", - "requires": { - "@types/express": "*" - } - }, - "@types/serve-static": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", - "integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==", - "requires": { - "@types/mime": "*", - "@types/node": "*" - } - }, - "@types/sockjs": { - "version": "0.3.33", - "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz", - "integrity": "sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==", - "requires": { - "@types/node": "*" - } - }, - "@types/stack-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==" - }, - "@types/testing-library__jest-dom": { - "version": "5.14.6", - "resolved": "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.6.tgz", - "integrity": "sha512-FkHXCb+ikSoUP4Y4rOslzTdX5sqYwMxfefKh1GmZ8ce1GOkEHntSp6b5cGadmNfp5e4BMEWOMx+WSKd5/MqlDA==", - "requires": { - "@types/jest": "*" - } - }, - "@types/trusted-types": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.3.tgz", - "integrity": "sha512-NfQ4gyz38SL8sDNrSixxU2Os1a5xcdFxipAFxYEuLUlvU2uDwS4NUpsImcf1//SlWItCVMMLiylsxbmNMToV/g==" - }, - "@types/ws": { - "version": "8.5.4", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", - "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==", - "requires": { - "@types/node": "*" - } - }, - "@types/yargs": { - "version": "16.0.5", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "requires": { - "@types/yargs-parser": "*" - } - }, - "@types/yargs-parser": { - "version": "21.0.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==" - }, - "@typescript-eslint/eslint-plugin": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.7.tgz", - "integrity": "sha512-BL+jYxUFIbuYwy+4fF86k5vdT9lT0CNJ6HtwrIvGh0PhH8s0yy5rjaKH2fDCrz5ITHy07WCzVGNvAmjJh4IJFA==", - "requires": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.59.7", - "@typescript-eslint/type-utils": "5.59.7", - "@typescript-eslint/utils": "5.59.7", - "debug": "^4.3.4", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/experimental-utils": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.59.7.tgz", - "integrity": "sha512-jqM0Cjfvta/sBlY1MxdXYv853/dJUC2wmUWnKoG2srwp0njNGQ6Zu/XLWoRFiLvocQbzBbpHkPFwKgC2UqyovA==", - "requires": { - "@typescript-eslint/utils": "5.59.7" - } - }, - "@typescript-eslint/parser": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.7.tgz", - "integrity": "sha512-VhpsIEuq/8i5SF+mPg9jSdIwgMBBp0z9XqjiEay+81PYLJuroN+ET1hM5IhkiYMJd9MkTz8iJLt7aaGAgzWUbQ==", - "requires": { - "@typescript-eslint/scope-manager": "5.59.7", - "@typescript-eslint/types": "5.59.7", - "@typescript-eslint/typescript-estree": "5.59.7", - "debug": "^4.3.4" - } - }, - "@typescript-eslint/scope-manager": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.7.tgz", - "integrity": "sha512-FL6hkYWK9zBGdxT2wWEd2W8ocXMu3K94i3gvMrjXpx+koFYdYV7KprKfirpgY34vTGzEPPuKoERpP8kD5h7vZQ==", - "requires": { - "@typescript-eslint/types": "5.59.7", - "@typescript-eslint/visitor-keys": "5.59.7" - } - }, - "@typescript-eslint/type-utils": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.7.tgz", - "integrity": "sha512-ozuz/GILuYG7osdY5O5yg0QxXUAEoI4Go3Do5xeu+ERH9PorHBPSdvD3Tjp2NN2bNLh1NJQSsQu2TPu/Ly+HaQ==", - "requires": { - "@typescript-eslint/typescript-estree": "5.59.7", - "@typescript-eslint/utils": "5.59.7", - "debug": "^4.3.4", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/types": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.7.tgz", - "integrity": "sha512-UnVS2MRRg6p7xOSATscWkKjlf/NDKuqo5TdbWck6rIRZbmKpVNTLALzNvcjIfHBE7736kZOFc/4Z3VcZwuOM/A==" - }, - "@typescript-eslint/typescript-estree": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.7.tgz", - "integrity": "sha512-4A1NtZ1I3wMN2UGDkU9HMBL+TIQfbrh4uS0WDMMpf3xMRursDbqEf1ahh6vAAe3mObt8k3ZATnezwG4pdtWuUQ==", - "requires": { - "@typescript-eslint/types": "5.59.7", - "@typescript-eslint/visitor-keys": "5.59.7", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/utils": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.7.tgz", - "integrity": "sha512-yCX9WpdQKaLufz5luG4aJbOpdXf/fjwGMcLFXZVPUz3QqLirG5QcwwnIHNf8cjLjxK4qtzTO8udUtMQSAToQnQ==", - "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.59.7", - "@typescript-eslint/types": "5.59.7", - "@typescript-eslint/typescript-estree": "5.59.7", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" - }, - "dependencies": { - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - } - }, - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" - } - } - }, - "@typescript-eslint/visitor-keys": { - "version": "5.59.7", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.7.tgz", - "integrity": "sha512-tyN+X2jvMslUszIiYbF0ZleP+RqQsFVpGrKI6e0Eet1w8WmhsAtmzaqm8oM8WJQ1ysLwhnsK/4hYHJjOgJVfQQ==", - "requires": { - "@typescript-eslint/types": "5.59.7", - "eslint-visitor-keys": "^3.3.0" - } - }, - "@webassemblyjs/ast": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", - "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", - "requires": { - "@webassemblyjs/helper-numbers": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6" - } - }, - "@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", - "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==" - }, - "@webassemblyjs/helper-api-error": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", - "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==" - }, - "@webassemblyjs/helper-buffer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", - "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==" - }, - "@webassemblyjs/helper-numbers": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", - "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", - "requires": { - "@webassemblyjs/floating-point-hex-parser": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@xtuc/long": "4.2.2" - } - }, - "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", - "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==" - }, - "@webassemblyjs/helper-wasm-section": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", - "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", - "requires": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6" - } - }, - "@webassemblyjs/ieee754": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", - "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", - "requires": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "@webassemblyjs/leb128": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", - "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", - "requires": { - "@xtuc/long": "4.2.2" - } - }, - "@webassemblyjs/utf8": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", - "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==" - }, - "@webassemblyjs/wasm-edit": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", - "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", - "requires": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/helper-wasm-section": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-opt": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6", - "@webassemblyjs/wast-printer": "1.11.6" - } - }, - "@webassemblyjs/wasm-gen": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", - "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", - "requires": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" - } - }, - "@webassemblyjs/wasm-opt": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", - "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", - "requires": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6" - } - }, - "@webassemblyjs/wasm-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", - "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", - "requires": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" - } - }, - "@webassemblyjs/wast-printer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", - "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", - "requires": { - "@webassemblyjs/ast": "1.11.6", - "@xtuc/long": "4.2.2" - } - }, - "@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" - }, - "@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" - }, - "abab": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", - "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==" - }, - "accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "requires": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - } - }, - "acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==" - }, - "acorn-globals": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", - "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", - "requires": { - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1" - }, - "dependencies": { - "acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==" - } - } - }, - "acorn-import-assertions": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", - "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==" - }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==" - }, - "acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==" - }, - "address": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/address/-/address-1.2.2.tgz", - "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==" - }, - "adjust-sourcemap-loader": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz", - "integrity": "sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A==", - "requires": { - "loader-utils": "^2.0.0", - "regex-parser": "^2.2.11" - } - }, - "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "requires": { - "debug": "4" - } - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-formats": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", - "requires": { - "ajv": "^8.0.0" - }, - "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - } - } - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==" - }, - "ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "requires": { - "type-fest": "^0.21.3" - } - }, - "ansi-html-community": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", - "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==" - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "requires": { - "color-convert": "^1.9.0" - } - }, - "any-promise": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", - "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==" - }, - "anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "arg": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", - "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" - }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "aria-query": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", - "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", - "requires": { - "deep-equal": "^2.0.5" - } - }, - "array-buffer-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", - "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", - "requires": { - "call-bind": "^1.0.2", - "is-array-buffer": "^3.0.1" - } - }, - "array-flatten": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", - "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==" - }, - "array-includes": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", - "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "is-string": "^1.0.7" - } - }, - "array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==" - }, - "array.prototype.flat": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", - "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - } - }, - "array.prototype.flatmap": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", - "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - } - }, - "array.prototype.reduce": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/array.prototype.reduce/-/array.prototype.reduce-1.0.5.tgz", - "integrity": "sha512-kDdugMl7id9COE8R7MHF5jWk7Dqt/fs4Pv+JXoICnYwqpjjjbUurz6w5fT5IG6brLdJhv6/VoHB0H7oyIBXd+Q==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-array-method-boxes-properly": "^1.0.0", - "is-string": "^1.0.7" - } - }, - "array.prototype.tosorted": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", - "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0", - "get-intrinsic": "^1.1.3" - } - }, - "asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" - }, - "ast-types-flow": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", - "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==" - }, - "async": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", - "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==" - }, - "autoprefixer": { - "version": "10.4.14", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz", - "integrity": "sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==", - "requires": { - "browserslist": "^4.21.5", - "caniuse-lite": "^1.0.30001464", - "fraction.js": "^4.2.0", - "normalize-range": "^0.1.2", - "picocolors": "^1.0.0", - "postcss-value-parser": "^4.2.0" - } - }, - "available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==" - }, - "axe-core": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", - "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==" - }, - "axobject-query": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz", - "integrity": "sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==", - "requires": { - "deep-equal": "^2.0.5" - } - }, - "babel-jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", - "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", - "requires": { - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^27.5.1", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "babel-loader": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.3.0.tgz", - "integrity": "sha512-H8SvsMF+m9t15HNLMipppzkC+Y2Yq+v3SonZyU70RBL/h1gxPkH08Ot8pEE9Z4Kd+czyWJClmFS8qzIP9OZ04Q==", - "requires": { - "find-cache-dir": "^3.3.1", - "loader-utils": "^2.0.0", - "make-dir": "^3.1.0", - "schema-utils": "^2.6.5" - }, - "dependencies": { - "schema-utils": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", - "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", - "requires": { - "@types/json-schema": "^7.0.5", - "ajv": "^6.12.4", - "ajv-keywords": "^3.5.2" - } - } - } - }, - "babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - } - }, - "babel-plugin-jest-hoist": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", - "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", - "requires": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.0.0", - "@types/babel__traverse": "^7.0.6" - } - }, - "babel-plugin-macros": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", - "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==", - "requires": { - "@babel/runtime": "^7.12.5", - "cosmiconfig": "^7.0.0", - "resolve": "^1.19.0" - } - }, - "babel-plugin-named-asset-import": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/babel-plugin-named-asset-import/-/babel-plugin-named-asset-import-0.3.8.tgz", - "integrity": "sha512-WXiAc++qo7XcJ1ZnTYGtLxmBCVbddAml3CEXgWaBzNzLNoxtQ8AiGEFDMOhot9XjTCQbvP5E77Fj9Gk924f00Q==" - }, - "babel-plugin-polyfill-corejs2": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.3.tgz", - "integrity": "sha512-bM3gHc337Dta490gg+/AseNB9L4YLHxq1nGKZZSHbhXv4aTYU2MD2cjza1Ru4S6975YLTaL1K8uJf6ukJhhmtw==", - "requires": { - "@babel/compat-data": "^7.17.7", - "@babel/helper-define-polyfill-provider": "^0.4.0", - "semver": "^6.1.1" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } - } - }, - "babel-plugin-polyfill-corejs3": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.1.tgz", - "integrity": "sha512-ikFrZITKg1xH6pLND8zT14UPgjKHiGLqex7rGEZCH2EvhsneJaJPemmpQaIZV5AL03II+lXylw3UmddDK8RU5Q==", - "requires": { - "@babel/helper-define-polyfill-provider": "^0.4.0", - "core-js-compat": "^3.30.1" - } - }, - "babel-plugin-polyfill-regenerator": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.0.tgz", - "integrity": "sha512-hDJtKjMLVa7Z+LwnTCxoDLQj6wdc+B8dun7ayF2fYieI6OzfuvcLMB32ihJZ4UhCBwNYGl5bg/x/P9cMdnkc2g==", - "requires": { - "@babel/helper-define-polyfill-provider": "^0.4.0" - } - }, - "babel-plugin-transform-react-remove-prop-types": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz", - "integrity": "sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA==" - }, - "babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", - "requires": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" - } - }, - "babel-preset-jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", - "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", - "requires": { - "babel-plugin-jest-hoist": "^27.5.1", - "babel-preset-current-node-syntax": "^1.0.0" - } - }, - "babel-preset-react-app": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-react-app/-/babel-preset-react-app-10.0.1.tgz", - "integrity": "sha512-b0D9IZ1WhhCWkrTXyFuIIgqGzSkRIH5D5AmB0bXbzYAB1OBAwHcUeyWW2LorutLWF5btNo/N7r/cIdmvvKJlYg==", - "requires": { - "@babel/core": "^7.16.0", - "@babel/plugin-proposal-class-properties": "^7.16.0", - "@babel/plugin-proposal-decorators": "^7.16.4", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0", - "@babel/plugin-proposal-numeric-separator": "^7.16.0", - "@babel/plugin-proposal-optional-chaining": "^7.16.0", - "@babel/plugin-proposal-private-methods": "^7.16.0", - "@babel/plugin-transform-flow-strip-types": "^7.16.0", - "@babel/plugin-transform-react-display-name": "^7.16.0", - "@babel/plugin-transform-runtime": "^7.16.4", - "@babel/preset-env": "^7.16.4", - "@babel/preset-react": "^7.16.0", - "@babel/preset-typescript": "^7.16.0", - "@babel/runtime": "^7.16.3", - "babel-plugin-macros": "^3.1.0", - "babel-plugin-transform-react-remove-prop-types": "^0.4.24" - } - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "batch": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", - "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==" - }, - "bfj": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/bfj/-/bfj-7.0.2.tgz", - "integrity": "sha512-+e/UqUzwmzJamNF50tBV6tZPTORow7gQ96iFow+8b562OdMpEK0BcJEq2OSPEDmAbSMBQ7PKZ87ubFkgxpYWgw==", - "requires": { - "bluebird": "^3.5.5", - "check-types": "^11.1.1", - "hoopy": "^0.1.4", - "tryer": "^1.0.1" - } - }, - "big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==" - }, - "binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==" - }, - "bluebird": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" - }, - "body-parser": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", - "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", - "requires": { - "bytes": "3.1.2", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.11.0", - "raw-body": "2.5.1", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "dependencies": { - "bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - } - } - }, - "bonjour-service": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.1.1.tgz", - "integrity": "sha512-Z/5lQRMOG9k7W+FkeGTNjh7htqn/2LMnfOvBZ8pynNZCM9MwkQkI3zeI4oz09uWdcgmgHugVvBqxGg4VQJ5PCg==", - "requires": { - "array-flatten": "^2.1.2", - "dns-equal": "^1.0.0", - "fast-deep-equal": "^3.1.3", - "multicast-dns": "^7.2.5" - } - }, - "boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "requires": { - "fill-range": "^7.0.1" - } - }, - "browser-process-hrtime": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", - "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==" - }, - "browserslist": { - "version": "4.21.5", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz", - "integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==", - "requires": { - "caniuse-lite": "^1.0.30001449", - "electron-to-chromium": "^1.4.284", - "node-releases": "^2.0.8", - "update-browserslist-db": "^1.0.10" - } - }, - "bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "requires": { - "node-int64": "^0.4.0" - } - }, - "buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - }, - "builtin-modules": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", - "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==" - }, - "bytes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==" - }, - "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" - }, - "camel-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", - "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", - "requires": { - "pascal-case": "^3.1.2", - "tslib": "^2.0.3" - } - }, - "camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==" - }, - "camelcase-css": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", - "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==" - }, - "caniuse-api": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", - "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", - "requires": { - "browserslist": "^4.0.0", - "caniuse-lite": "^1.0.0", - "lodash.memoize": "^4.1.2", - "lodash.uniq": "^4.5.0" - } - }, - "caniuse-lite": { - "version": "1.0.30001489", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001489.tgz", - "integrity": "sha512-x1mgZEXK8jHIfAxm+xgdpHpk50IN3z3q3zP261/WS+uvePxW8izXuCu6AHz0lkuYTlATDehiZ/tNyYBdSQsOUQ==" - }, - "case-sensitive-paths-webpack-plugin": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.4.0.tgz", - "integrity": "sha512-roIFONhcxog0JSSWbvVAh3OocukmSgpqOH6YpMkCvav/ySIV3JKg4Dc8vYtQjYi/UxpNE36r/9v+VqTQqgkYmw==" - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "char-regex": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==" - }, - "check-types": { - "version": "11.2.2", - "resolved": "https://registry.npmjs.org/check-types/-/check-types-11.2.2.tgz", - "integrity": "sha512-HBiYvXvn9Z70Z88XKjz3AEKd4HJhBXsa3j7xFnITAzoS8+q6eIGi8qDB8FKPBAjtuxjI/zFpwuiCb8oDtKOYrA==" - }, - "chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "requires": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "fsevents": "~2.3.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "requires": { - "is-glob": "^4.0.1" - } - } - } - }, - "chrome-trace-event": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==" - }, - "ci-info": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", - "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==" - }, - "cjs-module-lexer": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", - "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==" - }, - "clean-css": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.2.tgz", - "integrity": "sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==", - "requires": { - "source-map": "~0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } - } - }, - "cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==" - }, - "coa": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/coa/-/coa-2.0.2.tgz", - "integrity": "sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA==", - "requires": { - "@types/q": "^1.5.1", - "chalk": "^2.4.1", - "q": "^1.1.2" - } - }, - "collect-v8-coverage": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", - "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==" - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, - "colord": { - "version": "2.9.3", - "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", - "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==" - }, - "colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "commander": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", - "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==" - }, - "common-path-prefix": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-3.0.0.tgz", - "integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==" - }, - "common-tags": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", - "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==" - }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==" - }, - "compressible": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", - "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", - "requires": { - "mime-db": ">= 1.43.0 < 2" - } - }, - "compression": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", - "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", - "requires": { - "accepts": "~1.3.5", - "bytes": "3.0.0", - "compressible": "~2.0.16", - "debug": "2.6.9", - "on-headers": "~1.0.2", - "safe-buffer": "5.1.2", - "vary": "~1.1.2" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - } - } - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - }, - "confusing-browser-globals": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", - "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==" - }, - "connect-history-api-fallback": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz", - "integrity": "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==" - }, - "content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "requires": { - "safe-buffer": "5.2.1" - } - }, - "content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==" - }, - "convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" - }, - "cookie": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", - "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==" - }, - "cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" - }, - "core-js": { - "version": "3.30.2", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.30.2.tgz", - "integrity": "sha512-uBJiDmwqsbJCWHAwjrx3cvjbMXP7xD72Dmsn5LOJpiRmE3WbBbN5rCqQ2Qh6Ek6/eOrjlWngEynBWo4VxerQhg==" - }, - "core-js-compat": { - "version": "3.30.2", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.30.2.tgz", - "integrity": "sha512-nriW1nuJjUgvkEjIot1Spwakz52V9YkYHZAQG6A1eCgC8AA1p0zngrQEP9R0+V6hji5XilWKG1Bd0YRppmGimA==", - "requires": { - "browserslist": "^4.21.5" - } - }, - "core-js-pure": { - "version": "3.30.2", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.30.2.tgz", - "integrity": "sha512-p/npFUJXXBkCCTIlEGBdghofn00jWG6ZOtdoIXSJmAu2QBvN0IqpZXWweOytcwE6cfx8ZvVUy1vw8zxhe4Y2vg==" - }, - "core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" - }, - "cosmiconfig": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", - "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", - "requires": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.10.0" - } - }, - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "crypto-random-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", - "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==" - }, - "css-blank-pseudo": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/css-blank-pseudo/-/css-blank-pseudo-3.0.3.tgz", - "integrity": "sha512-VS90XWtsHGqoM0t4KpH053c4ehxZ2E6HtGI7x68YFV0pTo/QmkV/YFA+NnlvK8guxZVNWGQhVNJGC39Q8XF4OQ==", - "requires": { - "postcss-selector-parser": "^6.0.9" - } - }, - "css-declaration-sorter": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.0.tgz", - "integrity": "sha512-jDfsatwWMWN0MODAFuHszfjphEXfNw9JUAhmY4pLu3TyTU+ohUpsbVtbU+1MZn4a47D9kqh03i4eyOm+74+zew==" - }, - "css-has-pseudo": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/css-has-pseudo/-/css-has-pseudo-3.0.4.tgz", - "integrity": "sha512-Vse0xpR1K9MNlp2j5w1pgWIJtm1a8qS0JwS9goFYcImjlHEmywP9VUF05aGBXzGpDJF86QXk4L0ypBmwPhGArw==", - "requires": { - "postcss-selector-parser": "^6.0.9" - } - }, - "css-loader": { - "version": "6.7.4", - "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.7.4.tgz", - "integrity": "sha512-0Y5uHtK5BswfaGJ+jrO+4pPg1msFBc0pwPIE1VqfpmVn6YbDfYfXMj8rfd7nt+4goAhJueO+H/I40VWJfcP1mQ==", - "requires": { - "icss-utils": "^5.1.0", - "postcss": "^8.4.21", - "postcss-modules-extract-imports": "^3.0.0", - "postcss-modules-local-by-default": "^4.0.1", - "postcss-modules-scope": "^3.0.0", - "postcss-modules-values": "^4.0.0", - "postcss-value-parser": "^4.2.0", - "semver": "^7.3.8" - } - }, - "css-minimizer-webpack-plugin": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.4.1.tgz", - "integrity": "sha512-1u6D71zeIfgngN2XNRJefc/hY7Ybsxd74Jm4qngIXyUEk7fss3VUzuHxLAq/R8NAba4QU9OUSaMZlbpRc7bM4Q==", - "requires": { - "cssnano": "^5.0.6", - "jest-worker": "^27.0.2", - "postcss": "^8.3.5", - "schema-utils": "^4.0.0", - "serialize-javascript": "^6.0.0", - "source-map": "^0.6.1" - }, - "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "requires": { - "fast-deep-equal": "^3.1.3" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "requires": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } - } - }, - "css-prefers-color-scheme": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/css-prefers-color-scheme/-/css-prefers-color-scheme-6.0.3.tgz", - "integrity": "sha512-4BqMbZksRkJQx2zAjrokiGMd07RqOa2IxIrrN10lyBe9xhn9DEvjUK79J6jkeiv9D9hQFXKb6g1jwU62jziJZA==" - }, - "css-select": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", - "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", - "requires": { - "boolbase": "^1.0.0", - "css-what": "^6.0.1", - "domhandler": "^4.3.1", - "domutils": "^2.8.0", - "nth-check": "^2.0.1" - } - }, - "css-select-base-adapter": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz", - "integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==" - }, - "css-tree": { - "version": "1.0.0-alpha.37", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.37.tgz", - "integrity": "sha512-DMxWJg0rnz7UgxKT0Q1HU/L9BeJI0M6ksor0OgqOnF+aRCDWg/N2641HmVyU9KVIu0OVVWOb2IpC9A+BJRnejg==", - "requires": { - "mdn-data": "2.0.4", - "source-map": "^0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } - } - }, - "css-what": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", - "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==" - }, - "css.escape": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", - "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==" - }, - "cssdb": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/cssdb/-/cssdb-7.6.0.tgz", - "integrity": "sha512-Nna7rph8V0jC6+JBY4Vk4ndErUmfJfV6NJCaZdurL0omggabiy+QB2HCQtu5c/ACLZ0I7REv7A4QyPIoYzZx0w==" - }, - "cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==" - }, - "cssnano": { - "version": "5.1.15", - "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", - "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==", - "requires": { - "cssnano-preset-default": "^5.2.14", - "lilconfig": "^2.0.3", - "yaml": "^1.10.2" - } - }, - "cssnano-preset-default": { - "version": "5.2.14", - "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz", - "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==", - "requires": { - "css-declaration-sorter": "^6.3.1", - "cssnano-utils": "^3.1.0", - "postcss-calc": "^8.2.3", - "postcss-colormin": "^5.3.1", - "postcss-convert-values": "^5.1.3", - "postcss-discard-comments": "^5.1.2", - "postcss-discard-duplicates": "^5.1.0", - "postcss-discard-empty": "^5.1.1", - "postcss-discard-overridden": "^5.1.0", - "postcss-merge-longhand": "^5.1.7", - "postcss-merge-rules": "^5.1.4", - "postcss-minify-font-values": "^5.1.0", - "postcss-minify-gradients": "^5.1.1", - "postcss-minify-params": "^5.1.4", - "postcss-minify-selectors": "^5.2.1", - "postcss-normalize-charset": "^5.1.0", - "postcss-normalize-display-values": "^5.1.0", - "postcss-normalize-positions": "^5.1.1", - "postcss-normalize-repeat-style": "^5.1.1", - "postcss-normalize-string": "^5.1.0", - "postcss-normalize-timing-functions": "^5.1.0", - "postcss-normalize-unicode": "^5.1.1", - "postcss-normalize-url": "^5.1.0", - "postcss-normalize-whitespace": "^5.1.1", - "postcss-ordered-values": "^5.1.3", - "postcss-reduce-initial": "^5.1.2", - "postcss-reduce-transforms": "^5.1.0", - "postcss-svgo": "^5.1.0", - "postcss-unique-selectors": "^5.1.1" - } - }, - "cssnano-utils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", - "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==" - }, - "csso": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", - "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", - "requires": { - "css-tree": "^1.1.2" - }, - "dependencies": { - "css-tree": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", - "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", - "requires": { - "mdn-data": "2.0.14", - "source-map": "^0.6.1" - } - }, - "mdn-data": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", - "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } - } - }, - "cssom": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", - "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==" - }, - "cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "requires": { - "cssom": "~0.3.6" - }, - "dependencies": { - "cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" - } - } - }, - "csstype": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", - "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" - }, - "damerau-levenshtein": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", - "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==" - }, - "data-urls": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", - "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", - "requires": { - "abab": "^2.0.3", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.0.0" - } - }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "requires": { - "ms": "2.1.2" - } - }, - "decimal.js": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", - "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" - }, - "dedent": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==" - }, - "deep-equal": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.1.tgz", - "integrity": "sha512-lKdkdV6EOGoVn65XaOsPdH4rMxTZOnmFyuIkMjM1i5HHCbfjC97dawgTAy0deYNfuqUqW+Q5VrVaQYtUpSd6yQ==", - "requires": { - "array-buffer-byte-length": "^1.0.0", - "call-bind": "^1.0.2", - "es-get-iterator": "^1.1.3", - "get-intrinsic": "^1.2.0", - "is-arguments": "^1.1.1", - "is-array-buffer": "^3.0.2", - "is-date-object": "^1.0.5", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "isarray": "^2.0.5", - "object-is": "^1.1.5", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.5.0", - "side-channel": "^1.0.4", - "which-boxed-primitive": "^1.0.2", - "which-collection": "^1.0.1", - "which-typed-array": "^1.1.9" - } - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" - }, - "deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==" - }, - "default-gateway": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", - "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", - "requires": { - "execa": "^5.0.0" - } - }, - "define-lazy-prop": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", - "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==" - }, - "define-properties": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", - "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", - "requires": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - } - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" - }, - "depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" - }, - "destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" - }, - "detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==" - }, - "detect-node": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", - "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==" - }, - "detect-port-alt": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/detect-port-alt/-/detect-port-alt-1.1.6.tgz", - "integrity": "sha512-5tQykt+LqfJFBEYaDITx7S7cR7mJ/zQmLXZ2qt5w04ainYZw6tBf9dBunMjVeVOdYVRUzUOE4HkY5J7+uttb5Q==", - "requires": { - "address": "^1.0.1", - "debug": "^2.6.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - } - } - }, - "didyoumean": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", - "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==" - }, - "diff-sequences": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", - "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==" - }, - "dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "requires": { - "path-type": "^4.0.0" - } - }, - "dlv": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", - "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==" - }, - "dns-equal": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", - "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==" - }, - "dns-packet": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.0.tgz", - "integrity": "sha512-rza3UH1LwdHh9qyPXp8lkwpjSNk/AMD3dPytUoRoqnypDUhY0xvbdmVhWOfxO68frEfV9BU8V12Ez7ZsHGZpCQ==", - "requires": { - "@leichtgewicht/ip-codec": "^2.0.1" - } - }, - "doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "requires": { - "esutils": "^2.0.2" - } - }, - "dom-accessibility-api": { - "version": "0.5.16", - "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", - "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==" - }, - "dom-converter": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", - "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", - "requires": { - "utila": "~0.4" - } - }, - "dom-serializer": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", - "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", - "requires": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.0", - "entities": "^2.0.0" - } - }, - "domelementtype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", - "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==" - }, - "domexception": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", - "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", - "requires": { - "webidl-conversions": "^5.0.0" - }, - "dependencies": { - "webidl-conversions": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", - "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==" - } - } - }, - "domhandler": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", - "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", - "requires": { - "domelementtype": "^2.2.0" - } - }, - "domutils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", - "requires": { - "dom-serializer": "^1.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0" - } - }, - "dot-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", - "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", - "requires": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "dotenv": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", - "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==" - }, - "dotenv-expand": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", - "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==" - }, - "duplexer": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" - }, - "ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" - }, - "ejs": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", - "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", - "requires": { - "jake": "^10.8.5" - } - }, - "electron-to-chromium": { - "version": "1.4.411", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.411.tgz", - "integrity": "sha512-5VXLW4Qw89vM2WTICHua/y8v7fKGDRVa2VPOtBB9IpLvW316B+xd8yD1wTmLPY2ot/00P/qt87xdolj4aG/Lzg==" - }, - "emittery": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", - "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==" - }, - "emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" - }, - "emojis-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==" - }, - "encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==" - }, - "enhanced-resolve": { - "version": "5.14.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.14.1.tgz", - "integrity": "sha512-Vklwq2vDKtl0y/vtwjSesgJ5MYS7Etuk5txS8VdKL4AOS1aUlD96zqIfsOSLQsdv3xgMRbtkWM8eG9XDfKUPow==", - "requires": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - } - }, - "entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" - }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "error-stack-parser": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz", - "integrity": "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==", - "requires": { - "stackframe": "^1.3.4" - } - }, - "es-abstract": { - "version": "1.21.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", - "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", - "requires": { - "array-buffer-byte-length": "^1.0.0", - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-set-tostringtag": "^2.0.1", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.2.0", - "get-symbol-description": "^1.0.0", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.5", - "is-array-buffer": "^3.0.2", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.10", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.3", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "safe-regex-test": "^1.0.0", - "string.prototype.trim": "^1.2.7", - "string.prototype.trimend": "^1.0.6", - "string.prototype.trimstart": "^1.0.6", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.9" - } - }, - "es-array-method-boxes-properly": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz", - "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==" - }, - "es-get-iterator": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", - "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "is-arguments": "^1.1.1", - "is-map": "^2.0.2", - "is-set": "^2.0.2", - "is-string": "^1.0.7", - "isarray": "^2.0.5", - "stop-iteration-iterator": "^1.0.0" - } - }, - "es-module-lexer": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz", - "integrity": "sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==" - }, - "es-set-tostringtag": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", - "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", - "requires": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "has-tostringtag": "^1.0.0" - } - }, - "es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", - "requires": { - "has": "^1.0.3" - } - }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" - }, - "escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==" - }, - "escodegen": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", - "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", - "requires": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.6.1" - }, - "dependencies": { - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - } - }, - "optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - } - }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==" - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "optional": true - }, - "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "requires": { - "prelude-ls": "~1.1.2" - } - } - } - }, - "eslint": { - "version": "8.41.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.41.0.tgz", - "integrity": "sha512-WQDQpzGBOP5IrXPo4Hc0814r4/v2rrIsB0rhT7jtunIalgg6gYXWhRMOejVO8yH21T/FGaxjmFjBMNqcIlmH1Q==", - "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.3", - "@eslint/js": "8.41.0", - "@humanwhocodes/config-array": "^0.11.8", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.0", - "eslint-visitor-keys": "^3.4.1", - "espree": "^9.5.2", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" - }, - "globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", - "requires": { - "type-fest": "^0.20.2" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "requires": { - "argparse": "^2.0.1" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==" - } - } - }, - "eslint-config-react-app": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/eslint-config-react-app/-/eslint-config-react-app-7.0.1.tgz", - "integrity": "sha512-K6rNzvkIeHaTd8m/QEh1Zko0KI7BACWkkneSs6s9cKZC/J27X3eZR6Upt1jkmZ/4FK+XUOPPxMEN7+lbUXfSlA==", - "requires": { - "@babel/core": "^7.16.0", - "@babel/eslint-parser": "^7.16.3", - "@rushstack/eslint-patch": "^1.1.0", - "@typescript-eslint/eslint-plugin": "^5.5.0", - "@typescript-eslint/parser": "^5.5.0", - "babel-preset-react-app": "^10.0.1", - "confusing-browser-globals": "^1.0.11", - "eslint-plugin-flowtype": "^8.0.3", - "eslint-plugin-import": "^2.25.3", - "eslint-plugin-jest": "^25.3.0", - "eslint-plugin-jsx-a11y": "^6.5.1", - "eslint-plugin-react": "^7.27.1", - "eslint-plugin-react-hooks": "^4.3.0", - "eslint-plugin-testing-library": "^5.0.1" - } - }, - "eslint-import-resolver-node": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", - "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", - "requires": { - "debug": "^3.2.7", - "is-core-module": "^2.11.0", - "resolve": "^1.22.1" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-module-utils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", - "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", - "requires": { - "debug": "^3.2.7" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-plugin-flowtype": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-8.0.3.tgz", - "integrity": "sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==", - "requires": { - "lodash": "^4.17.21", - "string-natural-compare": "^3.0.1" - } - }, - "eslint-plugin-import": { - "version": "2.27.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", - "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", - "requires": { - "array-includes": "^3.1.6", - "array.prototype.flat": "^1.3.1", - "array.prototype.flatmap": "^1.3.1", - "debug": "^3.2.7", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.7", - "eslint-module-utils": "^2.7.4", - "has": "^1.0.3", - "is-core-module": "^2.11.0", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.values": "^1.1.6", - "resolve": "^1.22.1", - "semver": "^6.3.0", - "tsconfig-paths": "^3.14.1" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "requires": { - "ms": "^2.1.1" - } - }, - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "requires": { - "esutils": "^2.0.2" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } - } - }, - "eslint-plugin-jest": { - "version": "25.7.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-25.7.0.tgz", - "integrity": "sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==", - "requires": { - "@typescript-eslint/experimental-utils": "^5.0.0" - } - }, - "eslint-plugin-jsx-a11y": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", - "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", - "requires": { - "@babel/runtime": "^7.20.7", - "aria-query": "^5.1.3", - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "ast-types-flow": "^0.0.7", - "axe-core": "^4.6.2", - "axobject-query": "^3.1.1", - "damerau-levenshtein": "^1.0.8", - "emoji-regex": "^9.2.2", - "has": "^1.0.3", - "jsx-ast-utils": "^3.3.3", - "language-tags": "=1.0.5", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } - } - }, - "eslint-plugin-react": { - "version": "7.32.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz", - "integrity": "sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==", - "requires": { - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "array.prototype.tosorted": "^1.1.1", - "doctrine": "^2.1.0", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "object.hasown": "^1.1.2", - "object.values": "^1.1.6", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.4", - "semver": "^6.3.0", - "string.prototype.matchall": "^4.0.8" - }, - "dependencies": { - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "requires": { - "esutils": "^2.0.2" - } - }, - "resolve": { - "version": "2.0.0-next.4", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", - "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", - "requires": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } - } - }, - "eslint-plugin-react-hooks": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", - "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==" - }, - "eslint-plugin-testing-library": { - "version": "5.11.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-testing-library/-/eslint-plugin-testing-library-5.11.0.tgz", - "integrity": "sha512-ELY7Gefo+61OfXKlQeXNIDVVLPcvKTeiQOoMZG9TeuWa7Ln4dUNRv8JdRWBQI9Mbb427XGlVB1aa1QPZxBJM8Q==", - "requires": { - "@typescript-eslint/utils": "^5.58.0" - } - }, - "eslint-scope": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", - "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - } - }, - "eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==" - }, - "eslint-webpack-plugin": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/eslint-webpack-plugin/-/eslint-webpack-plugin-3.2.0.tgz", - "integrity": "sha512-avrKcGncpPbPSUHX6B3stNGzkKFto3eL+DKM4+VyMrVnhPc3vRczVlCq3uhuFOdRvDHTVXuzwk1ZKUrqDQHQ9w==", - "requires": { - "@types/eslint": "^7.29.0 || ^8.4.1", - "jest-worker": "^28.0.2", - "micromatch": "^4.0.5", - "normalize-path": "^3.0.0", - "schema-utils": "^4.0.0" - }, - "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "requires": { - "fast-deep-equal": "^3.1.3" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "jest-worker": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-28.1.3.tgz", - "integrity": "sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==", - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "requires": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - } - }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "espree": { - "version": "9.5.2", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", - "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", - "requires": { - "acorn": "^8.8.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - } - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" - }, - "esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", - "requires": { - "estraverse": "^5.1.0" - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "requires": { - "estraverse": "^5.2.0" - } - }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" - }, - "estree-walker": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", - "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==" - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" - }, - "etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==" - }, - "eventemitter3": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" - }, - "events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==" - }, - "execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "requires": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - } - }, - "exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==" - }, - "expect": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", - "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", - "requires": { - "@jest/types": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1" - } - }, - "express": { - "version": "4.18.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", - "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", - "requires": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.1", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.5.0", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.2.0", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.7", - "qs": "6.11.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "dependencies": { - "array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - } - } - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "requires": { - "is-glob": "^4.0.1" - } - } - } - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" - }, - "fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", - "requires": { - "reusify": "^1.0.4" - } - }, - "faye-websocket": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", - "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", - "requires": { - "websocket-driver": ">=0.5.1" - } - }, - "fb-watchman": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", - "requires": { - "bser": "2.1.1" - } - }, - "file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "requires": { - "flat-cache": "^3.0.4" - } - }, - "file-loader": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", - "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", - "requires": { - "loader-utils": "^2.0.0", - "schema-utils": "^3.0.0" - } - }, - "filelist": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", - "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", - "requires": { - "minimatch": "^5.0.1" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "requires": { - "balanced-match": "^1.0.0" - } - }, - "minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "filesize": { - "version": "8.0.7", - "resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz", - "integrity": "sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ==" - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "finalhandler": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", - "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", - "requires": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - } - } - }, - "find-cache-dir": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", - "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", - "requires": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - } - }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - } - }, - "flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", - "requires": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - } - }, - "flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==" - }, - "follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" - }, - "for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "requires": { - "is-callable": "^1.1.3" - } - }, - "fork-ts-checker-webpack-plugin": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.3.tgz", - "integrity": "sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==", - "requires": { - "@babel/code-frame": "^7.8.3", - "@types/json-schema": "^7.0.5", - "chalk": "^4.1.0", - "chokidar": "^3.4.2", - "cosmiconfig": "^6.0.0", - "deepmerge": "^4.2.2", - "fs-extra": "^9.0.0", - "glob": "^7.1.6", - "memfs": "^3.1.2", - "minimatch": "^3.0.4", - "schema-utils": "2.7.0", - "semver": "^7.3.2", - "tapable": "^1.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "cosmiconfig": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", - "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", - "requires": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.1.0", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.7.2" - } - }, - "fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "requires": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "schema-utils": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz", - "integrity": "sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==", - "requires": { - "@types/json-schema": "^7.0.4", - "ajv": "^6.12.2", - "ajv-keywords": "^3.4.1" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - }, - "tapable": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", - "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==" - } - } - }, - "form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - }, - "forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" - }, - "fraction.js": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", - "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==" - }, - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==" - }, - "fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, - "fs-monkey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz", - "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==" - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "optional": true - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - }, - "function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - } - }, - "functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==" - }, - "gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==" - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" - }, - "get-intrinsic": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", - "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", - "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3" - } - }, - "get-own-enumerable-property-symbols": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", - "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==" - }, - "get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==" - }, - "get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==" - }, - "get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, - "glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "requires": { - "is-glob": "^4.0.3" - } - }, - "glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" - }, - "global-modules": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", - "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", - "requires": { - "global-prefix": "^3.0.0" - } - }, - "global-prefix": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", - "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", - "requires": { - "ini": "^1.3.5", - "kind-of": "^6.0.2", - "which": "^1.3.1" - }, - "dependencies": { - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "requires": { - "isexe": "^2.0.0" - } - } - } - }, - "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==" - }, - "globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "requires": { - "define-properties": "^1.1.3" - } - }, - "globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "requires": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - } - }, - "gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "requires": { - "get-intrinsic": "^1.1.3" - } - }, - "graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, - "grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==" - }, - "graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==" - }, - "gzip-size": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", - "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", - "requires": { - "duplexer": "^0.1.2" - } - }, - "handle-thing": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", - "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==" - }, - "harmony-reflect": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/harmony-reflect/-/harmony-reflect-1.6.2.tgz", - "integrity": "sha512-HIp/n38R9kQjDEziXyDTuW3vvoxxyxjxFzXLrBr18uB47GnSt+G9D29fqrpM5ZkspMcPICud3XsBJQ4Y2URg8g==" - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==" - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==" - }, - "has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "requires": { - "get-intrinsic": "^1.1.1" - } - }, - "has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==" - }, - "has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" - }, - "has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "requires": { - "has-symbols": "^1.0.2" - } - }, - "he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==" - }, - "hoopy": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz", - "integrity": "sha512-HRcs+2mr52W0K+x8RzcLzuPPmVIKMSv97RGHy0Ea9y/mpcaK+xTrjICA04KAHi4GRzxliNqNJEFYWHghy3rSfQ==" - }, - "hpack.js": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", - "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==", - "requires": { - "inherits": "^2.0.1", - "obuf": "^1.0.0", - "readable-stream": "^2.0.1", - "wbuf": "^1.1.0" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, - "readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "html-encoding-sniffer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", - "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", - "requires": { - "whatwg-encoding": "^1.0.5" - } - }, - "html-entities": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.3.tgz", - "integrity": "sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA==" - }, - "html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==" - }, - "html-minifier-terser": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", - "integrity": "sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==", - "requires": { - "camel-case": "^4.1.2", - "clean-css": "^5.2.2", - "commander": "^8.3.0", - "he": "^1.2.0", - "param-case": "^3.0.4", - "relateurl": "^0.2.7", - "terser": "^5.10.0" - } - }, - "html-webpack-plugin": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.5.1.tgz", - "integrity": "sha512-cTUzZ1+NqjGEKjmVgZKLMdiFg3m9MdRXkZW2OEe69WYVi5ONLMmlnSZdXzGGMOq0C8jGDrL6EWyEDDUioHO/pA==", - "requires": { - "@types/html-minifier-terser": "^6.0.0", - "html-minifier-terser": "^6.0.2", - "lodash": "^4.17.21", - "pretty-error": "^4.0.0", - "tapable": "^2.0.0" - } - }, - "htmlparser2": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", - "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", - "requires": { - "domelementtype": "^2.0.1", - "domhandler": "^4.0.0", - "domutils": "^2.5.2", - "entities": "^2.0.0" - } - }, - "http-deceiver": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", - "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==" - }, - "http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "requires": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - } - }, - "http-parser-js": { - "version": "0.5.8", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", - "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==" - }, - "http-proxy": { - "version": "1.18.1", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", - "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", - "requires": { - "eventemitter3": "^4.0.0", - "follow-redirects": "^1.0.0", - "requires-port": "^1.0.0" - } - }, - "http-proxy-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", - "requires": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - } - }, - "http-proxy-middleware": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", - "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", - "requires": { - "@types/http-proxy": "^1.17.8", - "http-proxy": "^1.18.1", - "is-glob": "^4.0.1", - "is-plain-obj": "^3.0.0", - "micromatch": "^4.0.2" - } - }, - "https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "requires": { - "agent-base": "6", - "debug": "4" - } - }, - "human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==" - }, - "iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "requires": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } - }, - "icss-utils": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", - "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==" - }, - "idb": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz", - "integrity": "sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ==" - }, - "identity-obj-proxy": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/identity-obj-proxy/-/identity-obj-proxy-3.0.0.tgz", - "integrity": "sha512-00n6YnVHKrinT9t0d9+5yZC6UBNJANpYEQvL2LlX6Ab9lnmxzIRcEmTPuyGScvl1+jKuCICX1Z0Ab1pPKKdikA==", - "requires": { - "harmony-reflect": "^1.4.6" - } - }, - "ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==" - }, - "immer": { - "version": "9.0.21", - "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", - "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==" - }, - "import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "dependencies": { - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==" - } - } - }, - "import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "requires": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==" - }, - "indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==" - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" - }, - "internal-slot": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", - "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", - "requires": { - "get-intrinsic": "^1.2.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - } - }, - "ipaddr.js": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz", - "integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==" - }, - "is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-array-buffer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", - "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "is-typed-array": "^1.1.10" - } - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" - }, - "is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "requires": { - "has-bigints": "^1.0.1" - } - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==" - }, - "is-core-module": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", - "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", - "requires": { - "has": "^1.0.3" - } - }, - "is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==" - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" - }, - "is-generator-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==" - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", - "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==" - }, - "is-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", - "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==" - }, - "is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==" - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" - }, - "is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==" - }, - "is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==" - }, - "is-plain-obj": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", - "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==" - }, - "is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==" - }, - "is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-regexp": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", - "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==" - }, - "is-root": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-root/-/is-root-2.1.0.tgz", - "integrity": "sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg==" - }, - "is-set": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", - "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==" - }, - "is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "requires": { - "call-bind": "^1.0.2" - } - }, - "is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==" - }, - "is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "requires": { - "has-symbols": "^1.0.2" - } - }, - "is-typed-array": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", - "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", - "requires": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" - } - }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" - }, - "is-weakmap": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", - "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==" - }, - "is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "requires": { - "call-bind": "^1.0.2" - } - }, - "is-weakset": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", - "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, - "is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "requires": { - "is-docker": "^2.0.0" - } - }, - "isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" - }, - "istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==" - }, - "istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "requires": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } - } - }, - "istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", - "requires": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "requires": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } - } - }, - "istanbul-reports": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", - "requires": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - } - }, - "jake": { - "version": "10.8.6", - "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.6.tgz", - "integrity": "sha512-G43Ub9IYEFfu72sua6rzooi8V8Gz2lkfk48rW20vEWCGizeaEPlKB1Kh8JIA84yQbiAEfqlPmSpGgCKKxH3rDA==", - "requires": { - "async": "^3.2.3", - "chalk": "^4.0.2", - "filelist": "^1.0.4", - "minimatch": "^3.1.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", - "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", - "requires": { - "@jest/core": "^27.5.1", - "import-local": "^3.0.2", - "jest-cli": "^27.5.1" - } - }, - "jest-changed-files": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", - "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", - "requires": { - "@jest/types": "^27.5.1", - "execa": "^5.0.0", - "throat": "^6.0.1" - } - }, - "jest-circus": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", - "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", - "requires": { - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "dedent": "^0.7.0", - "expect": "^27.5.1", - "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3", - "throat": "^6.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-cli": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", - "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", - "requires": { - "@jest/core": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "import-local": "^3.0.2", - "jest-config": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "prompts": "^2.0.1", - "yargs": "^16.2.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-config": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", - "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", - "requires": { - "@babel/core": "^7.8.0", - "@jest/test-sequencer": "^27.5.1", - "@jest/types": "^27.5.1", - "babel-jest": "^27.5.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.1", - "graceful-fs": "^4.2.9", - "jest-circus": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-jasmine2": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-diff": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", - "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", - "requires": { - "chalk": "^4.0.0", - "diff-sequences": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-docblock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", - "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", - "requires": { - "detect-newline": "^3.0.0" - } - }, - "jest-each": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", - "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", - "requires": { - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-environment-jsdom": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", - "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", - "requires": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1", - "jsdom": "^16.6.0" - } - }, - "jest-environment-node": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", - "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", - "requires": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - } - }, - "jest-get-type": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==" - }, - "jest-haste-map": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", - "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", - "requires": { - "@jest/types": "^27.5.1", - "@types/graceful-fs": "^4.1.2", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.3.2", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^27.5.1", - "jest-serializer": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "micromatch": "^4.0.4", - "walker": "^1.0.7" - } - }, - "jest-jasmine2": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", - "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", - "requires": { - "@jest/environment": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "expect": "^27.5.1", - "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", - "throat": "^6.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-leak-detector": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", - "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", - "requires": { - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - } - }, - "jest-matcher-utils": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", - "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", - "requires": { - "chalk": "^4.0.0", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-message-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", - "requires": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-mock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", - "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", - "requires": { - "@jest/types": "^27.5.1", - "@types/node": "*" - } - }, - "jest-pnp-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", - "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==" - }, - "jest-regex-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", - "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==" - }, - "jest-resolve": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", - "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", - "requires": { - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "resolve": "^1.20.0", - "resolve.exports": "^1.1.0", - "slash": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-resolve-dependencies": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", - "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", - "requires": { - "@jest/types": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-snapshot": "^27.5.1" - } - }, - "jest-runner": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", - "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", - "requires": { - "@jest/console": "^27.5.1", - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.8.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-leak-detector": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "source-map-support": "^0.5.6", - "throat": "^6.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-runtime": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", - "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", - "requires": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/globals": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "execa": "^5.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-serializer": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", - "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", - "requires": { - "@types/node": "*", - "graceful-fs": "^4.2.9" - } - }, - "jest-snapshot": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", - "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", - "requires": { - "@babel/core": "^7.7.2", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/traverse": "^7.7.2", - "@babel/types": "^7.0.0", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__traverse": "^7.0.4", - "@types/prettier": "^2.1.5", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^27.5.1", - "graceful-fs": "^4.2.9", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", - "natural-compare": "^1.4.0", - "pretty-format": "^27.5.1", - "semver": "^7.3.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "requires": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-validate": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", - "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", - "requires": { - "@jest/types": "^27.5.1", - "camelcase": "^6.2.0", - "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", - "leven": "^3.1.0", - "pretty-format": "^27.5.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-watch-typeahead": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/jest-watch-typeahead/-/jest-watch-typeahead-1.1.0.tgz", - "integrity": "sha512-Va5nLSJTN7YFtC2jd+7wsoe1pNe5K4ShLux/E5iHEwlB9AxaxmggY7to9KUqKojhaJw3aXqt5WAb4jGPOolpEw==", - "requires": { - "ansi-escapes": "^4.3.1", - "chalk": "^4.0.0", - "jest-regex-util": "^28.0.0", - "jest-watcher": "^28.0.0", - "slash": "^4.0.0", - "string-length": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "dependencies": { - "@jest/console": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-28.1.3.tgz", - "integrity": "sha512-QPAkP5EwKdK/bxIr6C1I4Vs0rm2nHiANzj/Z5X2JQkrZo6IqvC4ldZ9K95tF0HdidhA8Bo6egxSzUFPYKcEXLw==", - "requires": { - "@jest/types": "^28.1.3", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^28.1.3", - "jest-util": "^28.1.3", - "slash": "^3.0.0" - }, - "dependencies": { - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" - } - } - }, - "@jest/test-result": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-28.1.3.tgz", - "integrity": "sha512-kZAkxnSE+FqE8YjW8gNuoVkkC9I7S1qmenl8sGcDOLropASP+BkcGKwhXoyqQuGOGeYY0y/ixjrd/iERpEXHNg==", - "requires": { - "@jest/console": "^28.1.3", - "@jest/types": "^28.1.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - } - }, - "@jest/types": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-28.1.3.tgz", - "integrity": "sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ==", - "requires": { - "@jest/schemas": "^28.1.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - } - }, - "@types/yargs": { - "version": "17.0.24", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", - "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "emittery": { - "version": "0.10.2", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.10.2.tgz", - "integrity": "sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "jest-message-util": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-28.1.3.tgz", - "integrity": "sha512-PFdn9Iewbt575zKPf1286Ht9EPoJmYT7P0kY+RibeYZ2XtOr53pDLEFoTWXbd1h4JiGiWpTBC84fc8xMXQMb7g==", - "requires": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^28.1.3", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^28.1.3", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "dependencies": { - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" - } - } - }, - "jest-regex-util": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-28.0.2.tgz", - "integrity": "sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw==" - }, - "jest-util": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-28.1.3.tgz", - "integrity": "sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ==", - "requires": { - "@jest/types": "^28.1.3", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - } - }, - "jest-watcher": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-28.1.3.tgz", - "integrity": "sha512-t4qcqj9hze+jviFPUN3YAtAEeFnr/azITXQEMARf5cMwKY2SMBRnCQTXLixTl20OR6mLh9KLMrgVJgJISym+1g==", - "requires": { - "@jest/test-result": "^28.1.3", - "@jest/types": "^28.1.3", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.10.2", - "jest-util": "^28.1.3", - "string-length": "^4.0.1" - }, - "dependencies": { - "string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "requires": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "pretty-format": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-28.1.3.tgz", - "integrity": "sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q==", - "requires": { - "@jest/schemas": "^28.1.3", - "ansi-regex": "^5.0.1", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==" - } - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" - }, - "slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==" - }, - "string-length": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-5.0.1.tgz", - "integrity": "sha512-9Ep08KAMUn0OadnVaBuRdE2l615CQ508kr0XMadjClfYpdCyvrbFp6Taebo8yyxokQ4viUd/xPPUA4FGgUa0ow==", - "requires": { - "char-regex": "^2.0.0", - "strip-ansi": "^7.0.1" - }, - "dependencies": { - "char-regex": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-2.0.1.tgz", - "integrity": "sha512-oSvEeo6ZUD7NepqAat3RqoucZ5SeqLJgOvVIwkafu6IP3V0pO38s/ypdVUmDDK6qIIHNlYHJAKX9E7R7HoKElw==" - } - } - }, - "strip-ansi": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz", - "integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==", - "requires": { - "ansi-regex": "^6.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==" - } - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-watcher": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", - "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", - "requires": { - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "jest-util": "^27.5.1", - "string-length": "^4.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jiti": { - "version": "1.18.2", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.18.2.tgz", - "integrity": "sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==" - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "jsdom": { - "version": "16.7.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", - "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", - "requires": { - "abab": "^2.0.5", - "acorn": "^8.2.4", - "acorn-globals": "^6.0.0", - "cssom": "^0.4.4", - "cssstyle": "^2.3.0", - "data-urls": "^2.0.0", - "decimal.js": "^10.2.1", - "domexception": "^2.0.1", - "escodegen": "^2.0.0", - "form-data": "^3.0.0", - "html-encoding-sniffer": "^2.0.1", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.0", - "parse5": "6.0.1", - "saxes": "^5.0.1", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.0.0", - "w3c-hr-time": "^1.0.2", - "w3c-xmlserializer": "^2.0.0", - "webidl-conversions": "^6.1.0", - "whatwg-encoding": "^1.0.5", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.5.0", - "ws": "^7.4.6", - "xml-name-validator": "^3.0.0" - } - }, - "jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" - }, - "json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" - }, - "json-schema": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==" - }, - "json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==" - }, - "jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" - } - }, - "jsonpointer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", - "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==" - }, - "jsx-ast-utils": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", - "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", - "requires": { - "array-includes": "^3.1.5", - "object.assign": "^4.1.3" - } - }, - "kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==" - }, - "kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==" - }, - "klona": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", - "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==" - }, - "language-subtag-registry": { - "version": "0.3.22", - "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", - "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==" - }, - "language-tags": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", - "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", - "requires": { - "language-subtag-registry": "~0.3.2" - } - }, - "launch-editor": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz", - "integrity": "sha512-JpDCcQnyAAzZZaZ7vEiSqL690w7dAEyLao+KC96zBplnYbJS7TYNjvM3M7y3dGz+v7aIsJk3hllWuc0kWAjyRQ==", - "requires": { - "picocolors": "^1.0.0", - "shell-quote": "^1.7.3" - } - }, - "leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==" - }, - "levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "requires": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - } - }, - "lilconfig": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", - "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==" - }, - "lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" - }, - "loader-runner": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==" - }, - "loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - } - }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "requires": { - "p-locate": "^5.0.0" - } - }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" - }, - "lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==" - }, - "lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" - }, - "lodash.sortby": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", - "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==" - }, - "lodash.uniq": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", - "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==" - }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" - } - }, - "lower-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", - "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", - "requires": { - "tslib": "^2.0.3" - } - }, - "lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "requires": { - "yallist": "^3.0.2" - } - }, - "lz-string": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", - "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==" - }, - "magic-string": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", - "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", - "requires": { - "sourcemap-codec": "^1.4.8" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "requires": { - "semver": "^6.0.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } - } - }, - "makeerror": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "requires": { - "tmpl": "1.0.5" - } - }, - "mdn-data": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz", - "integrity": "sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA==" - }, - "media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==" - }, - "memfs": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.1.tgz", - "integrity": "sha512-UWbFJKvj5k+nETdteFndTpYxdeTMox/ULeqX5k/dpaQJCCFmj5EeKv3dBcyO2xmkRAx2vppRu5dVG7SOtsGOzA==", - "requires": { - "fs-monkey": "^1.0.3" - } - }, - "merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" - }, - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" - }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" - }, - "methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==" - }, - "micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "requires": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - } - }, - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "requires": { - "mime-db": "1.52.0" - } - }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" - }, - "min-indent": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", - "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==" - }, - "mini-css-extract-plugin": { - "version": "2.7.6", - "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.7.6.tgz", - "integrity": "sha512-Qk7HcgaPkGG6eD77mLvZS1nmxlao3j+9PkrT9Uc7HAE1id3F41+DdBRYRYkbyfNRGzm8/YWtzhw7nVPmwhqTQw==", - "requires": { - "schema-utils": "^4.0.0" - }, - "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "requires": { - "fast-deep-equal": "^3.1.3" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "requires": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - } - } - } - }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==" - }, - "mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "requires": { - "minimist": "^1.2.6" - } - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "multicast-dns": { - "version": "7.2.5", - "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz", - "integrity": "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==", - "requires": { - "dns-packet": "^5.2.2", - "thunky": "^1.0.2" - } - }, - "mz": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", - "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", - "requires": { - "any-promise": "^1.0.0", - "object-assign": "^4.0.1", - "thenify-all": "^1.0.0" - } - }, - "nanoid": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", - "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==" - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" - }, - "natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==" - }, - "negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" - }, - "neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" - }, - "no-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", - "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", - "requires": { - "lower-case": "^2.0.2", - "tslib": "^2.0.3" - } - }, - "node-forge": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", - "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==" - }, - "node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==" - }, - "node-releases": { - "version": "2.0.12", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", - "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==" - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" - }, - "normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==" - }, - "normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==" - }, - "npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "requires": { - "path-key": "^3.0.0" - } - }, - "nth-check": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", - "requires": { - "boolbase": "^1.0.0" - } - }, - "nwsapi": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.4.tgz", - "integrity": "sha512-NHj4rzRo0tQdijE9ZqAx6kYDcoRwYwSYzCA8MY3JzfxlrvEU0jhnhJT9BhqhJs7I/dKcrDm6TyulaRqZPIhN5g==" - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==" - }, - "object-hash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", - "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==" - }, - "object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==" - }, - "object-is": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", - "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - } - }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" - }, - "object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - } - }, - "object.entries": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", - "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "object.fromentries": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", - "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "object.getownpropertydescriptors": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.6.tgz", - "integrity": "sha512-lq+61g26E/BgHv0ZTFgRvi7NMEPuAxLkFU7rukXjc/AlwH4Am5xXVnIXy3un1bg/JPbXHrixRkK1itUzzPiIjQ==", - "requires": { - "array.prototype.reduce": "^1.0.5", - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.21.2", - "safe-array-concat": "^1.0.0" - } - }, - "object.hasown": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", - "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", - "requires": { - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "object.values": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", - "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "obuf": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", - "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==" - }, - "on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "requires": { - "ee-first": "1.1.1" - } - }, - "on-headers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "requires": { - "wrappy": "1" - } - }, - "onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "requires": { - "mimic-fn": "^2.1.0" - } - }, - "open": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", - "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", - "requires": { - "define-lazy-prop": "^2.0.0", - "is-docker": "^2.1.1", - "is-wsl": "^2.2.0" - } - }, - "optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "requires": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - } - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "requires": { - "p-limit": "^3.0.2" - } - }, - "p-retry": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", - "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", - "requires": { - "@types/retry": "0.12.0", - "retry": "^0.13.1" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" - }, - "param-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", - "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", - "requires": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "requires": { - "callsites": "^3.0.0" - } - }, - "parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - } - }, - "parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==" - }, - "parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" - }, - "pascal-case": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", - "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", - "requires": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - }, - "path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" - }, - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" - }, - "performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" - }, - "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" - }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" - }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==" - }, - "pirates": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", - "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==" - }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "requires": { - "find-up": "^4.0.0" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "requires": { - "p-limit": "^2.2.0" - } - } - } - }, - "pkg-up": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", - "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", - "requires": { - "find-up": "^3.0.0" - }, - "dependencies": { - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "requires": { - "locate-path": "^3.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "requires": { - "p-limit": "^2.0.0" - } - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==" - } - } - }, - "postcss": { - "version": "8.4.23", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.23.tgz", - "integrity": "sha512-bQ3qMcpF6A/YjR55xtoTr0jGOlnPOKAIMdOWiv0EIT6HVPEaJiJB4NLljSbiHoC2RX7DN5Uvjtpbg1NPdwv1oA==", - "requires": { - "nanoid": "^3.3.6", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" - } - }, - "postcss-attribute-case-insensitive": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-5.0.2.tgz", - "integrity": "sha512-XIidXV8fDr0kKt28vqki84fRK8VW8eTuIa4PChv2MqKuT6C9UjmSKzen6KaWhWEoYvwxFCa7n/tC1SZ3tyq4SQ==", - "requires": { - "postcss-selector-parser": "^6.0.10" - } - }, - "postcss-browser-comments": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-browser-comments/-/postcss-browser-comments-4.0.0.tgz", - "integrity": "sha512-X9X9/WN3KIvY9+hNERUqX9gncsgBA25XaeR+jshHz2j8+sYyHktHw1JdKuMjeLpGktXidqDhA7b/qm1mrBDmgg==" - }, - "postcss-calc": { - "version": "8.2.4", - "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", - "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", - "requires": { - "postcss-selector-parser": "^6.0.9", - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-clamp": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/postcss-clamp/-/postcss-clamp-4.1.0.tgz", - "integrity": "sha512-ry4b1Llo/9zz+PKC+030KUnPITTJAHeOwjfAyyB60eT0AorGLdzp52s31OsPRHRf8NchkgFoG2y6fCfn1IV1Ow==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-color-functional-notation": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/postcss-color-functional-notation/-/postcss-color-functional-notation-4.2.4.tgz", - "integrity": "sha512-2yrTAUZUab9s6CpxkxC4rVgFEVaR6/2Pipvi6qcgvnYiVqZcbDHEoBDhrXzyb7Efh2CCfHQNtcqWcIruDTIUeg==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-color-hex-alpha": { - "version": "8.0.4", - "resolved": "https://registry.npmjs.org/postcss-color-hex-alpha/-/postcss-color-hex-alpha-8.0.4.tgz", - "integrity": "sha512-nLo2DCRC9eE4w2JmuKgVA3fGL3d01kGq752pVALF68qpGLmx2Qrk91QTKkdUqqp45T1K1XV8IhQpcu1hoAQflQ==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-color-rebeccapurple": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-7.1.1.tgz", - "integrity": "sha512-pGxkuVEInwLHgkNxUc4sdg4g3py7zUeCQ9sMfwyHAT+Ezk8a4OaaVZ8lIY5+oNqA/BXXgLyXv0+5wHP68R79hg==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-colormin": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", - "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==", - "requires": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0", - "colord": "^2.9.1", - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-convert-values": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz", - "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==", - "requires": { - "browserslist": "^4.21.4", - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-custom-media": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-8.0.2.tgz", - "integrity": "sha512-7yi25vDAoHAkbhAzX9dHx2yc6ntS4jQvejrNcC+csQJAXjj15e7VcWfMgLqBNAbOvqi5uIa9huOVwdHbf+sKqg==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-custom-properties": { - "version": "12.1.11", - "resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-12.1.11.tgz", - "integrity": "sha512-0IDJYhgU8xDv1KY6+VgUwuQkVtmYzRwu+dMjnmdMafXYv86SWqfxkc7qdDvWS38vsjaEtv8e0vGOUQrAiMBLpQ==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-custom-selectors": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/postcss-custom-selectors/-/postcss-custom-selectors-6.0.3.tgz", - "integrity": "sha512-fgVkmyiWDwmD3JbpCmB45SvvlCD6z9CG6Ie6Iere22W5aHea6oWa7EM2bpnv2Fj3I94L3VbtvX9KqwSi5aFzSg==", - "requires": { - "postcss-selector-parser": "^6.0.4" - } - }, - "postcss-dir-pseudo-class": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/postcss-dir-pseudo-class/-/postcss-dir-pseudo-class-6.0.5.tgz", - "integrity": "sha512-eqn4m70P031PF7ZQIvSgy9RSJ5uI2171O/OO/zcRNYpJbvaeKFUlar1aJ7rmgiQtbm0FSPsRewjpdS0Oew7MPA==", - "requires": { - "postcss-selector-parser": "^6.0.10" - } - }, - "postcss-discard-comments": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", - "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==" - }, - "postcss-discard-duplicates": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", - "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==" - }, - "postcss-discard-empty": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", - "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==" - }, - "postcss-discard-overridden": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", - "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==" - }, - "postcss-double-position-gradients": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-3.1.2.tgz", - "integrity": "sha512-GX+FuE/uBR6eskOK+4vkXgT6pDkexLokPaz/AbJna9s5Kzp/yl488pKPjhy0obB475ovfT1Wv8ho7U/cHNaRgQ==", - "requires": { - "@csstools/postcss-progressive-custom-properties": "^1.1.0", - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-env-function": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/postcss-env-function/-/postcss-env-function-4.0.6.tgz", - "integrity": "sha512-kpA6FsLra+NqcFnL81TnsU+Z7orGtDTxcOhl6pwXeEq1yFPpRMkCDpHhrz8CFQDr/Wfm0jLiNQ1OsGGPjlqPwA==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-flexbugs-fixes": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-flexbugs-fixes/-/postcss-flexbugs-fixes-5.0.2.tgz", - "integrity": "sha512-18f9voByak7bTktR2QgDveglpn9DTbBWPUzSOe9g0N4WR/2eSt6Vrcbf0hmspvMI6YWGywz6B9f7jzpFNJJgnQ==" - }, - "postcss-focus-visible": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/postcss-focus-visible/-/postcss-focus-visible-6.0.4.tgz", - "integrity": "sha512-QcKuUU/dgNsstIK6HELFRT5Y3lbrMLEOwG+A4s5cA+fx3A3y/JTq3X9LaOj3OC3ALH0XqyrgQIgey/MIZ8Wczw==", - "requires": { - "postcss-selector-parser": "^6.0.9" - } - }, - "postcss-focus-within": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/postcss-focus-within/-/postcss-focus-within-5.0.4.tgz", - "integrity": "sha512-vvjDN++C0mu8jz4af5d52CB184ogg/sSxAFS+oUJQq2SuCe7T5U2iIsVJtsCp2d6R4j0jr5+q3rPkBVZkXD9fQ==", - "requires": { - "postcss-selector-parser": "^6.0.9" - } - }, - "postcss-font-variant": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-font-variant/-/postcss-font-variant-5.0.0.tgz", - "integrity": "sha512-1fmkBaCALD72CK2a9i468mA/+tr9/1cBxRRMXOUaZqO43oWPR5imcyPjXwuv7PXbCid4ndlP5zWhidQVVa3hmA==" - }, - "postcss-gap-properties": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/postcss-gap-properties/-/postcss-gap-properties-3.0.5.tgz", - "integrity": "sha512-IuE6gKSdoUNcvkGIqdtjtcMtZIFyXZhmFd5RUlg97iVEvp1BZKV5ngsAjCjrVy+14uhGBQl9tzmi1Qwq4kqVOg==" - }, - "postcss-image-set-function": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/postcss-image-set-function/-/postcss-image-set-function-4.0.7.tgz", - "integrity": "sha512-9T2r9rsvYzm5ndsBE8WgtrMlIT7VbtTfE7b3BQnudUqnBcBo7L758oc+o+pdj/dUV0l5wjwSdjeOH2DZtfv8qw==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-import": { - "version": "15.1.0", - "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", - "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", - "requires": { - "postcss-value-parser": "^4.0.0", - "read-cache": "^1.0.0", - "resolve": "^1.1.7" - } - }, - "postcss-initial": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-initial/-/postcss-initial-4.0.1.tgz", - "integrity": "sha512-0ueD7rPqX8Pn1xJIjay0AZeIuDoF+V+VvMt/uOnn+4ezUKhZM/NokDeP6DwMNyIoYByuN/94IQnt5FEkaN59xQ==" - }, - "postcss-js": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", - "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", - "requires": { - "camelcase-css": "^2.0.1" - } - }, - "postcss-lab-function": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/postcss-lab-function/-/postcss-lab-function-4.2.1.tgz", - "integrity": "sha512-xuXll4isR03CrQsmxyz92LJB2xX9n+pZJ5jE9JgcnmsCammLyKdlzrBin+25dy6wIjfhJpKBAN80gsTlCgRk2w==", - "requires": { - "@csstools/postcss-progressive-custom-properties": "^1.1.0", - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-load-config": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.1.tgz", - "integrity": "sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==", - "requires": { - "lilconfig": "^2.0.5", - "yaml": "^2.1.1" - }, - "dependencies": { - "yaml": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz", - "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==" - } - } - }, - "postcss-loader": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.2.1.tgz", - "integrity": "sha512-WbbYpmAaKcux/P66bZ40bpWsBucjx/TTgVVzRZ9yUO8yQfVBlameJ0ZGVaPfH64hNSBh63a+ICP5nqOpBA0w+Q==", - "requires": { - "cosmiconfig": "^7.0.0", - "klona": "^2.0.5", - "semver": "^7.3.5" - } - }, - "postcss-logical": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/postcss-logical/-/postcss-logical-5.0.4.tgz", - "integrity": "sha512-RHXxplCeLh9VjinvMrZONq7im4wjWGlRJAqmAVLXyZaXwfDWP73/oq4NdIp+OZwhQUMj0zjqDfM5Fj7qby+B4g==" - }, - "postcss-media-minmax": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-media-minmax/-/postcss-media-minmax-5.0.0.tgz", - "integrity": "sha512-yDUvFf9QdFZTuCUg0g0uNSHVlJ5X1lSzDZjPSFaiCWvjgsvu8vEVxtahPrLMinIDEEGnx6cBe6iqdx5YWz08wQ==" - }, - "postcss-merge-longhand": { - "version": "5.1.7", - "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz", - "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==", - "requires": { - "postcss-value-parser": "^4.2.0", - "stylehacks": "^5.1.1" - } - }, - "postcss-merge-rules": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz", - "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==", - "requires": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0", - "cssnano-utils": "^3.1.0", - "postcss-selector-parser": "^6.0.5" - } - }, - "postcss-minify-font-values": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", - "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-minify-gradients": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", - "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", - "requires": { - "colord": "^2.9.1", - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-minify-params": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz", - "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==", - "requires": { - "browserslist": "^4.21.4", - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-minify-selectors": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", - "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", - "requires": { - "postcss-selector-parser": "^6.0.5" - } - }, - "postcss-modules-extract-imports": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", - "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==" - }, - "postcss-modules-local-by-default": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz", - "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==", - "requires": { - "icss-utils": "^5.0.0", - "postcss-selector-parser": "^6.0.2", - "postcss-value-parser": "^4.1.0" - } - }, - "postcss-modules-scope": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", - "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", - "requires": { - "postcss-selector-parser": "^6.0.4" - } - }, - "postcss-modules-values": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", - "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", - "requires": { - "icss-utils": "^5.0.0" - } - }, - "postcss-nested": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz", - "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==", - "requires": { - "postcss-selector-parser": "^6.0.11" - } - }, - "postcss-nesting": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-10.2.0.tgz", - "integrity": "sha512-EwMkYchxiDiKUhlJGzWsD9b2zvq/r2SSubcRrgP+jujMXFzqvANLt16lJANC+5uZ6hjI7lpRmI6O8JIl+8l1KA==", - "requires": { - "@csstools/selector-specificity": "^2.0.0", - "postcss-selector-parser": "^6.0.10" - } - }, - "postcss-normalize": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize/-/postcss-normalize-10.0.1.tgz", - "integrity": "sha512-+5w18/rDev5mqERcG3W5GZNMJa1eoYYNGo8gB7tEwaos0ajk3ZXAI4mHGcNT47NE+ZnZD1pEpUOFLvltIwmeJA==", - "requires": { - "@csstools/normalize.css": "*", - "postcss-browser-comments": "^4", - "sanitize.css": "*" - } - }, - "postcss-normalize-charset": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", - "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==" - }, - "postcss-normalize-display-values": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", - "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-normalize-positions": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", - "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-normalize-repeat-style": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", - "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-normalize-string": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", - "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-normalize-timing-functions": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", - "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-normalize-unicode": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", - "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==", - "requires": { - "browserslist": "^4.21.4", - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-normalize-url": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", - "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", - "requires": { - "normalize-url": "^6.0.1", - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-normalize-whitespace": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", - "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-opacity-percentage": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/postcss-opacity-percentage/-/postcss-opacity-percentage-1.1.3.tgz", - "integrity": "sha512-An6Ba4pHBiDtyVpSLymUUERMo2cU7s+Obz6BTrS+gxkbnSBNKSuD0AVUc+CpBMrpVPKKfoVz0WQCX+Tnst0i4A==" - }, - "postcss-ordered-values": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", - "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", - "requires": { - "cssnano-utils": "^3.1.0", - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-overflow-shorthand": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/postcss-overflow-shorthand/-/postcss-overflow-shorthand-3.0.4.tgz", - "integrity": "sha512-otYl/ylHK8Y9bcBnPLo3foYFLL6a6Ak+3EQBPOTR7luMYCOsiVTUk1iLvNf6tVPNGXcoL9Hoz37kpfriRIFb4A==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-page-break": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/postcss-page-break/-/postcss-page-break-3.0.4.tgz", - "integrity": "sha512-1JGu8oCjVXLa9q9rFTo4MbeeA5FMe00/9C7lN4va606Rdb+HkxXtXsmEDrIraQ11fGz/WvKWa8gMuCKkrXpTsQ==" - }, - "postcss-place": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/postcss-place/-/postcss-place-7.0.5.tgz", - "integrity": "sha512-wR8igaZROA6Z4pv0d+bvVrvGY4GVHihBCBQieXFY3kuSuMyOmEnnfFzHl/tQuqHZkfkIVBEbDvYcFfHmpSet9g==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-preset-env": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-7.8.3.tgz", - "integrity": "sha512-T1LgRm5uEVFSEF83vHZJV2z19lHg4yJuZ6gXZZkqVsqv63nlr6zabMH3l4Pc01FQCyfWVrh2GaUeCVy9Po+Aag==", - "requires": { - "@csstools/postcss-cascade-layers": "^1.1.1", - "@csstools/postcss-color-function": "^1.1.1", - "@csstools/postcss-font-format-keywords": "^1.0.1", - "@csstools/postcss-hwb-function": "^1.0.2", - "@csstools/postcss-ic-unit": "^1.0.1", - "@csstools/postcss-is-pseudo-class": "^2.0.7", - "@csstools/postcss-nested-calc": "^1.0.0", - "@csstools/postcss-normalize-display-values": "^1.0.1", - "@csstools/postcss-oklab-function": "^1.1.1", - "@csstools/postcss-progressive-custom-properties": "^1.3.0", - "@csstools/postcss-stepped-value-functions": "^1.0.1", - "@csstools/postcss-text-decoration-shorthand": "^1.0.0", - "@csstools/postcss-trigonometric-functions": "^1.0.2", - "@csstools/postcss-unset-value": "^1.0.2", - "autoprefixer": "^10.4.13", - "browserslist": "^4.21.4", - "css-blank-pseudo": "^3.0.3", - "css-has-pseudo": "^3.0.4", - "css-prefers-color-scheme": "^6.0.3", - "cssdb": "^7.1.0", - "postcss-attribute-case-insensitive": "^5.0.2", - "postcss-clamp": "^4.1.0", - "postcss-color-functional-notation": "^4.2.4", - "postcss-color-hex-alpha": "^8.0.4", - "postcss-color-rebeccapurple": "^7.1.1", - "postcss-custom-media": "^8.0.2", - "postcss-custom-properties": "^12.1.10", - "postcss-custom-selectors": "^6.0.3", - "postcss-dir-pseudo-class": "^6.0.5", - "postcss-double-position-gradients": "^3.1.2", - "postcss-env-function": "^4.0.6", - "postcss-focus-visible": "^6.0.4", - "postcss-focus-within": "^5.0.4", - "postcss-font-variant": "^5.0.0", - "postcss-gap-properties": "^3.0.5", - "postcss-image-set-function": "^4.0.7", - "postcss-initial": "^4.0.1", - "postcss-lab-function": "^4.2.1", - "postcss-logical": "^5.0.4", - "postcss-media-minmax": "^5.0.0", - "postcss-nesting": "^10.2.0", - "postcss-opacity-percentage": "^1.1.2", - "postcss-overflow-shorthand": "^3.0.4", - "postcss-page-break": "^3.0.4", - "postcss-place": "^7.0.5", - "postcss-pseudo-class-any-link": "^7.1.6", - "postcss-replace-overflow-wrap": "^4.0.0", - "postcss-selector-not": "^6.0.1", - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-pseudo-class-any-link": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-7.1.6.tgz", - "integrity": "sha512-9sCtZkO6f/5ML9WcTLcIyV1yz9D1rf0tWc+ulKcvV30s0iZKS/ONyETvoWsr6vnrmW+X+KmuK3gV/w5EWnT37w==", - "requires": { - "postcss-selector-parser": "^6.0.10" - } - }, - "postcss-reduce-initial": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz", - "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==", - "requires": { - "browserslist": "^4.21.4", - "caniuse-api": "^3.0.0" - } - }, - "postcss-reduce-transforms": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", - "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", - "requires": { - "postcss-value-parser": "^4.2.0" - } - }, - "postcss-replace-overflow-wrap": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-4.0.0.tgz", - "integrity": "sha512-KmF7SBPphT4gPPcKZc7aDkweHiKEEO8cla/GjcBK+ckKxiZslIu3C4GCRW3DNfL0o7yW7kMQu9xlZ1kXRXLXtw==" - }, - "postcss-selector-not": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-6.0.1.tgz", - "integrity": "sha512-1i9affjAe9xu/y9uqWH+tD4r6/hDaXJruk8xn2x1vzxC2U3J3LKO3zJW4CyxlNhA56pADJ/djpEwpH1RClI2rQ==", - "requires": { - "postcss-selector-parser": "^6.0.10" - } - }, - "postcss-selector-parser": { - "version": "6.0.13", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", - "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", - "requires": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - } - }, - "postcss-svgo": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", - "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", - "requires": { - "postcss-value-parser": "^4.2.0", - "svgo": "^2.7.0" - }, - "dependencies": { - "commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==" - }, - "css-tree": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", - "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", - "requires": { - "mdn-data": "2.0.14", - "source-map": "^0.6.1" - } - }, - "mdn-data": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", - "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - }, - "svgo": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", - "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", - "requires": { - "@trysound/sax": "0.2.0", - "commander": "^7.2.0", - "css-select": "^4.1.3", - "css-tree": "^1.1.3", - "csso": "^4.2.0", - "picocolors": "^1.0.0", - "stable": "^0.1.8" - } - } - } - }, - "postcss-unique-selectors": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", - "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", - "requires": { - "postcss-selector-parser": "^6.0.5" - } - }, - "postcss-value-parser": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" - }, - "prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==" - }, - "pretty-bytes": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", - "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==" - }, - "pretty-error": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz", - "integrity": "sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw==", - "requires": { - "lodash": "^4.17.20", - "renderkid": "^3.0.0" - } - }, - "pretty-format": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", - "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", - "requires": { - "ansi-regex": "^5.0.1", - "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==" - } - } - }, - "process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" - }, - "promise": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/promise/-/promise-8.3.0.tgz", - "integrity": "sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg==", - "requires": { - "asap": "~2.0.6" - } - }, - "prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "requires": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - } - }, - "prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "requires": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - }, - "dependencies": { - "react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - } - } - }, - "proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "requires": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "dependencies": { - "ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" - } - } - }, - "psl": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" - }, - "punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==" - }, - "q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==" - }, - "qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "requires": { - "side-channel": "^1.0.4" - } - }, - "querystringify": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" - }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" - }, - "raf": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz", - "integrity": "sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==", - "requires": { - "performance-now": "^2.1.0" - } - }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "requires": { - "safe-buffer": "^5.1.0" - } - }, - "range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" - }, - "raw-body": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", - "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", - "requires": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, - "dependencies": { - "bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - } - } - }, - "react": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", - "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", - "requires": { - "loose-envify": "^1.1.0" - } - }, - "react-app-polyfill": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/react-app-polyfill/-/react-app-polyfill-3.0.0.tgz", - "integrity": "sha512-sZ41cxiU5llIB003yxxQBYrARBqe0repqPTTYBTmMqTz9szeBbE37BehCE891NZsmdZqqP+xWKdT3eo3vOzN8w==", - "requires": { - "core-js": "^3.19.2", - "object-assign": "^4.1.1", - "promise": "^8.1.0", - "raf": "^3.4.1", - "regenerator-runtime": "^0.13.9", - "whatwg-fetch": "^3.6.2" - } - }, - "react-dev-utils": { - "version": "12.0.1", - "resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz", - "integrity": "sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==", - "requires": { - "@babel/code-frame": "^7.16.0", - "address": "^1.1.2", - "browserslist": "^4.18.1", - "chalk": "^4.1.2", - "cross-spawn": "^7.0.3", - "detect-port-alt": "^1.1.6", - "escape-string-regexp": "^4.0.0", - "filesize": "^8.0.6", - "find-up": "^5.0.0", - "fork-ts-checker-webpack-plugin": "^6.5.0", - "global-modules": "^2.0.0", - "globby": "^11.0.4", - "gzip-size": "^6.0.0", - "immer": "^9.0.7", - "is-root": "^2.1.0", - "loader-utils": "^3.2.0", - "open": "^8.4.0", - "pkg-up": "^3.1.0", - "prompts": "^2.4.2", - "react-error-overlay": "^6.0.11", - "recursive-readdir": "^2.2.2", - "shell-quote": "^1.7.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "loader-utils": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.1.tgz", - "integrity": "sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "react-dom": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", - "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", - "requires": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.0" - } - }, - "react-error-overlay": { - "version": "6.0.11", - "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz", - "integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==" - }, - "react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" - }, - "react-refresh": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz", - "integrity": "sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A==" - }, - "react-scripts": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz", - "integrity": "sha512-8VAmEm/ZAwQzJ+GOMLbBsTdDKOpuZh7RPs0UymvBR2vRk4iZWCskjbFnxqjrzoIvlNNRZ3QJFx6/qDSi6zSnaQ==", - "requires": { - "@babel/core": "^7.16.0", - "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3", - "@svgr/webpack": "^5.5.0", - "babel-jest": "^27.4.2", - "babel-loader": "^8.2.3", - "babel-plugin-named-asset-import": "^0.3.8", - "babel-preset-react-app": "^10.0.1", - "bfj": "^7.0.2", - "browserslist": "^4.18.1", - "camelcase": "^6.2.1", - "case-sensitive-paths-webpack-plugin": "^2.4.0", - "css-loader": "^6.5.1", - "css-minimizer-webpack-plugin": "^3.2.0", - "dotenv": "^10.0.0", - "dotenv-expand": "^5.1.0", - "eslint": "^8.3.0", - "eslint-config-react-app": "^7.0.1", - "eslint-webpack-plugin": "^3.1.1", - "file-loader": "^6.2.0", - "fs-extra": "^10.0.0", - "fsevents": "^2.3.2", - "html-webpack-plugin": "^5.5.0", - "identity-obj-proxy": "^3.0.0", - "jest": "^27.4.3", - "jest-resolve": "^27.4.2", - "jest-watch-typeahead": "^1.0.0", - "mini-css-extract-plugin": "^2.4.5", - "postcss": "^8.4.4", - "postcss-flexbugs-fixes": "^5.0.2", - "postcss-loader": "^6.2.1", - "postcss-normalize": "^10.0.1", - "postcss-preset-env": "^7.0.1", - "prompts": "^2.4.2", - "react-app-polyfill": "^3.0.0", - "react-dev-utils": "^12.0.1", - "react-refresh": "^0.11.0", - "resolve": "^1.20.0", - "resolve-url-loader": "^4.0.0", - "sass-loader": "^12.3.0", - "semver": "^7.3.5", - "source-map-loader": "^3.0.0", - "style-loader": "^3.3.1", - "tailwindcss": "^3.0.2", - "terser-webpack-plugin": "^5.2.5", - "webpack": "^5.64.4", - "webpack-dev-server": "^4.6.0", - "webpack-manifest-plugin": "^4.0.2", - "workbox-webpack-plugin": "^6.4.1" - } - }, - "read-cache": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", - "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", - "requires": { - "pify": "^2.3.0" - } - }, - "readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, - "readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "requires": { - "picomatch": "^2.2.1" - } - }, - "recursive-readdir": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz", - "integrity": "sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA==", - "requires": { - "minimatch": "^3.0.5" - } - }, - "redent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", - "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", - "requires": { - "indent-string": "^4.0.0", - "strip-indent": "^3.0.0" - } - }, - "regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" - }, - "regenerate-unicode-properties": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", - "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", - "requires": { - "regenerate": "^1.4.2" - } - }, - "regenerator-runtime": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", - "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" - }, - "regenerator-transform": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz", - "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==", - "requires": { - "@babel/runtime": "^7.8.4" - } - }, - "regex-parser": { - "version": "2.2.11", - "resolved": "https://registry.npmjs.org/regex-parser/-/regex-parser-2.2.11.tgz", - "integrity": "sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q==" - }, - "regexp.prototype.flags": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", - "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "functions-have-names": "^1.2.3" - } - }, - "regexpu-core": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", - "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", - "requires": { - "@babel/regjsgen": "^0.8.0", - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.1.0", - "regjsparser": "^0.9.1", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" - } - }, - "regjsparser": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", - "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", - "requires": { - "jsesc": "~0.5.0" - }, - "dependencies": { - "jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==" - } - } - }, - "relateurl": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", - "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==" - }, - "renderkid": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-3.0.0.tgz", - "integrity": "sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==", - "requires": { - "css-select": "^4.1.3", - "dom-converter": "^0.2.0", - "htmlparser2": "^6.1.0", - "lodash": "^4.17.21", - "strip-ansi": "^6.0.1" - } - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==" - }, - "require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" - }, - "requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" - }, - "resolve": { - "version": "1.22.2", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", - "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", - "requires": { - "is-core-module": "^2.11.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "requires": { - "resolve-from": "^5.0.0" - } - }, - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==" - }, - "resolve-url-loader": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-4.0.0.tgz", - "integrity": "sha512-05VEMczVREcbtT7Bz+C+96eUO5HDNvdthIiMB34t7FcF8ehcu4wC0sSgPUubs3XW2Q3CNLJk/BJrCU9wVRymiA==", - "requires": { - "adjust-sourcemap-loader": "^4.0.0", - "convert-source-map": "^1.7.0", - "loader-utils": "^2.0.0", - "postcss": "^7.0.35", - "source-map": "0.6.1" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==" - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } - } - }, - "resolve.exports": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.1.tgz", - "integrity": "sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ==" - }, - "retry": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", - "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==" - }, - "reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==" - }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "requires": { - "glob": "^7.1.3" - } - }, - "rollup": { - "version": "2.79.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz", - "integrity": "sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==", - "requires": { - "fsevents": "~2.3.2" - } - }, - "rollup-plugin-terser": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz", - "integrity": "sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==", - "requires": { - "@babel/code-frame": "^7.10.4", - "jest-worker": "^26.2.1", - "serialize-javascript": "^4.0.0", - "terser": "^5.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "jest-worker": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", - "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" - } - }, - "serialize-javascript": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", - "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", - "requires": { - "randombytes": "^2.1.0" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "requires": { - "queue-microtask": "^1.2.2" - } - }, - "safe-array-concat": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz", - "integrity": "sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==", - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "has-symbols": "^1.0.3", - "isarray": "^2.0.5" - } - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - }, - "safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - } - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, - "sanitize.css": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/sanitize.css/-/sanitize.css-13.0.0.tgz", - "integrity": "sha512-ZRwKbh/eQ6w9vmTjkuG0Ioi3HBwPFce0O+v//ve+aOq1oeCy7jMV2qzzAlpsNuqpqCBjjriM1lbtZbF/Q8jVyA==" - }, - "sass-loader": { - "version": "12.6.0", - "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.6.0.tgz", - "integrity": "sha512-oLTaH0YCtX4cfnJZxKSLAyglED0naiYfNG1iXfU5w1LNZ+ukoA5DtyDIN5zmKVZwYNJP4KRc5Y3hkWga+7tYfA==", - "requires": { - "klona": "^2.0.4", - "neo-async": "^2.6.2" - } - }, - "sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" - }, - "saxes": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", - "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", - "requires": { - "xmlchars": "^2.2.0" - } - }, - "scheduler": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", - "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", - "requires": { - "loose-envify": "^1.1.0" - } - }, - "schema-utils": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", - "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - }, - "select-hose": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", - "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==" - }, - "selfsigned": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.1.1.tgz", - "integrity": "sha512-GSL3aowiF7wa/WtSFwnUrludWFoNhftq8bUkH9pkzjpN2XSPOAYEgg6e0sS9s0rZwgJzJiQRPU18A6clnoW5wQ==", - "requires": { - "node-forge": "^1" - } - }, - "semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", - "requires": { - "lru-cache": "^6.0.0" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "requires": { - "yallist": "^4.0.0" - } - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - } - } - }, - "send": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", - "requires": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - }, - "dependencies": { - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - } - } - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - } - } - }, - "serialize-javascript": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", - "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", - "requires": { - "randombytes": "^2.1.0" - } - }, - "serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==", - "requires": { - "accepts": "~1.3.4", - "batch": "0.6.1", - "debug": "2.6.9", - "escape-html": "~1.0.3", - "http-errors": "~1.6.2", - "mime-types": "~2.1.17", - "parseurl": "~1.3.2" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==" - }, - "http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", - "requires": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" - }, - "statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==" - } - } - }, - "serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", - "requires": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.18.0" - } - }, - "setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" - }, - "shell-quote": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", - "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==" - }, - "side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "requires": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - } - }, - "signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" - }, - "sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" - }, - "sockjs": { - "version": "0.3.24", - "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", - "integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==", - "requires": { - "faye-websocket": "^0.11.3", - "uuid": "^8.3.2", - "websocket-driver": "^0.7.4" - } - }, - "source-list-map": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", - "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==" - }, - "source-map": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", - "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==" - }, - "source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" - }, - "source-map-loader": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/source-map-loader/-/source-map-loader-3.0.2.tgz", - "integrity": "sha512-BokxPoLjyl3iOrgkWaakaxqnelAJSS+0V+De0kKIq6lyWrXuiPgYTGp6z3iHmqljKAaLXwZa+ctD8GccRJeVvg==", - "requires": { - "abab": "^2.0.5", - "iconv-lite": "^0.6.3", - "source-map-js": "^1.0.1" - } - }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } - } - }, - "sourcemap-codec": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", - "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==" - }, - "spdy": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", - "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", - "requires": { - "debug": "^4.1.0", - "handle-thing": "^2.0.0", - "http-deceiver": "^1.2.7", - "select-hose": "^2.0.0", - "spdy-transport": "^3.0.0" - } - }, - "spdy-transport": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", - "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", - "requires": { - "debug": "^4.1.0", - "detect-node": "^2.0.4", - "hpack.js": "^2.1.6", - "obuf": "^1.1.2", - "readable-stream": "^3.0.6", - "wbuf": "^1.7.3" - } - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" - }, - "stable": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", - "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==" - }, - "stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "requires": { - "escape-string-regexp": "^2.0.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==" - } - } - }, - "stackframe": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", - "integrity": "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==" - }, - "statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" - }, - "stop-iteration-iterator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", - "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", - "requires": { - "internal-slot": "^1.0.4" - } - }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "requires": { - "safe-buffer": "~5.2.0" - } - }, - "string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "requires": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - } - }, - "string-natural-compare": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/string-natural-compare/-/string-natural-compare-3.0.1.tgz", - "integrity": "sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==" - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "dependencies": { - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - } - } - }, - "string.prototype.matchall": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz", - "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", - "regexp.prototype.flags": "^1.4.3", - "side-channel": "^1.0.4" - } - }, - "string.prototype.trim": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", - "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "stringify-object": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz", - "integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==", - "requires": { - "get-own-enumerable-property-symbols": "^3.0.0", - "is-obj": "^1.0.1", - "is-regexp": "^1.0.0" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==" - }, - "strip-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-comments/-/strip-comments-2.0.1.tgz", - "integrity": "sha512-ZprKx+bBLXv067WTCALv8SSz5l2+XhpYCsVtSqlMnkAXMWDq+/ekVbl1ghqP9rUHTzv6sm/DwCOiYutU/yp1fw==" - }, - "strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==" - }, - "strip-indent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", - "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", - "requires": { - "min-indent": "^1.0.0" - } - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==" - }, - "style-loader": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-3.3.3.tgz", - "integrity": "sha512-53BiGLXAcll9maCYtZi2RCQZKa8NQQai5C4horqKyRmHj9H7QmcUyucrH+4KW/gBQbXM2AsB0axoEcFZPlfPcw==" - }, - "stylehacks": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", - "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==", - "requires": { - "browserslist": "^4.21.4", - "postcss-selector-parser": "^6.0.4" - } - }, - "sucrase": { - "version": "3.32.0", - "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.32.0.tgz", - "integrity": "sha512-ydQOU34rpSyj2TGyz4D2p8rbktIOZ8QY9s+DGLvFU1i5pWJE8vkpruCjGCMHsdXwnD7JDcS+noSwM/a7zyNFDQ==", - "requires": { - "@jridgewell/gen-mapping": "^0.3.2", - "commander": "^4.0.0", - "glob": "7.1.6", - "lines-and-columns": "^1.1.6", - "mz": "^2.7.0", - "pirates": "^4.0.1", - "ts-interface-checker": "^0.1.9" - }, - "dependencies": { - "commander": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==" - }, - "glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - } - } - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "requires": { - "has-flag": "^3.0.0" - } - }, - "supports-hyperlinks": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", - "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", - "requires": { - "has-flag": "^4.0.0", - "supports-color": "^7.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==" - }, - "svg-parser": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz", - "integrity": "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==" - }, - "svgo": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-1.3.2.tgz", - "integrity": "sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw==", - "requires": { - "chalk": "^2.4.1", - "coa": "^2.0.2", - "css-select": "^2.0.0", - "css-select-base-adapter": "^0.1.1", - "css-tree": "1.0.0-alpha.37", - "csso": "^4.0.2", - "js-yaml": "^3.13.1", - "mkdirp": "~0.5.1", - "object.values": "^1.1.0", - "sax": "~1.2.4", - "stable": "^0.1.8", - "unquote": "~1.1.1", - "util.promisify": "~1.0.0" - }, - "dependencies": { - "css-select": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz", - "integrity": "sha512-Dqk7LQKpwLoH3VovzZnkzegqNSuAziQyNZUcrdDM401iY+R5NkGBXGmtO05/yaXQziALuPogeG0b7UAgjnTJTQ==", - "requires": { - "boolbase": "^1.0.0", - "css-what": "^3.2.1", - "domutils": "^1.7.0", - "nth-check": "^1.0.2" - } - }, - "css-what": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-3.4.2.tgz", - "integrity": "sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ==" - }, - "dom-serializer": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz", - "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==", - "requires": { - "domelementtype": "^2.0.1", - "entities": "^2.0.0" - } - }, - "domutils": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz", - "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", - "requires": { - "dom-serializer": "0", - "domelementtype": "1" - }, - "dependencies": { - "domelementtype": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", - "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==" - } - } - }, - "nth-check": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz", - "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==", - "requires": { - "boolbase": "~1.0.0" - } - } - } - }, - "symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==" - }, - "tailwindcss": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.2.tgz", - "integrity": "sha512-9jPkMiIBXvPc2KywkraqsUfbfj+dHDb+JPWtSJa9MLFdrPyazI7q6WX2sUrm7R9eVR7qqv3Pas7EvQFzxKnI6w==", - "requires": { - "@alloc/quick-lru": "^5.2.0", - "arg": "^5.0.2", - "chokidar": "^3.5.3", - "didyoumean": "^1.2.2", - "dlv": "^1.1.3", - "fast-glob": "^3.2.12", - "glob-parent": "^6.0.2", - "is-glob": "^4.0.3", - "jiti": "^1.18.2", - "lilconfig": "^2.1.0", - "micromatch": "^4.0.5", - "normalize-path": "^3.0.0", - "object-hash": "^3.0.0", - "picocolors": "^1.0.0", - "postcss": "^8.4.23", - "postcss-import": "^15.1.0", - "postcss-js": "^4.0.1", - "postcss-load-config": "^4.0.1", - "postcss-nested": "^6.0.1", - "postcss-selector-parser": "^6.0.11", - "postcss-value-parser": "^4.2.0", - "resolve": "^1.22.2", - "sucrase": "^3.32.0" - } - }, - "tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==" - }, - "temp-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", - "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==" - }, - "tempy": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tempy/-/tempy-0.6.0.tgz", - "integrity": "sha512-G13vtMYPT/J8A4X2SjdtBTphZlrp1gKv6hZiOjw14RCWg6GbHuQBGtjlx75xLbYV/wEc0D7G5K4rxKP/cXk8Bw==", - "requires": { - "is-stream": "^2.0.0", - "temp-dir": "^2.0.0", - "type-fest": "^0.16.0", - "unique-string": "^2.0.0" - }, - "dependencies": { - "type-fest": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.16.0.tgz", - "integrity": "sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg==" - } - } - }, - "terminal-link": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", - "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", - "requires": { - "ansi-escapes": "^4.2.1", - "supports-hyperlinks": "^2.0.0" - } - }, - "terser": { - "version": "5.17.6", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.17.6.tgz", - "integrity": "sha512-V8QHcs8YuyLkLHsJO5ucyff1ykrLVsR4dNnS//L5Y3NiSXpbK1J+WMVUs67eI0KTxs9JtHhgEQpXQVHlHI92DQ==", - "requires": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "dependencies": { - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" - } - } - }, - "terser-webpack-plugin": { - "version": "5.3.9", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", - "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", - "requires": { - "@jridgewell/trace-mapping": "^0.3.17", - "jest-worker": "^27.4.5", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.1", - "terser": "^5.16.8" - } - }, - "test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "requires": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - } - }, - "text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==" - }, - "thenify": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", - "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", - "requires": { - "any-promise": "^1.0.0" - } - }, - "thenify-all": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", - "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", - "requires": { - "thenify": ">= 3.1.0 < 4" - } - }, - "throat": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.2.tgz", - "integrity": "sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ==" - }, - "thunky": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", - "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==" - }, - "tmpl": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==" - }, - "to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==" - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "requires": { - "is-number": "^7.0.0" - } - }, - "toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" - }, - "tough-cookie": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz", - "integrity": "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==", - "requires": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.2.0", - "url-parse": "^1.5.3" - }, - "dependencies": { - "universalify": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", - "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==" - } - } - }, - "tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", - "requires": { - "punycode": "^2.1.1" - } - }, - "tryer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tryer/-/tryer-1.0.1.tgz", - "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==" - }, - "ts-interface-checker": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", - "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==" - }, - "tsconfig-paths": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", - "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", - "requires": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - }, - "dependencies": { - "json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "requires": { - "minimist": "^1.2.0" - } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==" - } - } - }, - "tslib": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz", - "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==" - }, - "tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "requires": { - "tslib": "^1.8.1" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - } - } - }, - "type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "requires": { - "prelude-ls": "^1.2.1" - } - }, - "type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==" - }, - "type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==" - }, - "type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "requires": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - } - }, - "typed-array-length": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", - "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", - "requires": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "is-typed-array": "^1.1.9" - } - }, - "typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "requires": { - "is-typedarray": "^1.0.0" - } - }, - "unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "requires": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - } - }, - "unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==" - }, - "unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "requires": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - } - }, - "unicode-match-property-value-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", - "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==" - }, - "unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==" - }, - "unique-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", - "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", - "requires": { - "crypto-random-string": "^2.0.0" - } - }, - "universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==" - }, - "unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==" - }, - "unquote": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/unquote/-/unquote-1.1.1.tgz", - "integrity": "sha512-vRCqFv6UhXpWxZPyGDh/F3ZpNv8/qo7w6iufLpQg9aKnQ71qM4B5KiI7Mia9COcjEhrO9LueHpMYjYzsWH3OIg==" - }, - "upath": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", - "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==" - }, - "update-browserslist-db": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", - "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", - "requires": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - } - }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "requires": { - "punycode": "^2.1.0" - } - }, - "url-parse": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", - "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", - "requires": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - }, - "util.promisify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.1.tgz", - "integrity": "sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA==", - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.2", - "has-symbols": "^1.0.1", - "object.getownpropertydescriptors": "^2.1.0" - } - }, - "utila": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", - "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==" - }, - "utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" - }, - "uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" - }, - "v8-to-istanbul": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", - "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", - "requires": { - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0", - "source-map": "^0.7.3" - } - }, - "vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==" - }, - "w3c-hr-time": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", - "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", - "requires": { - "browser-process-hrtime": "^1.0.0" - } - }, - "w3c-xmlserializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", - "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", - "requires": { - "xml-name-validator": "^3.0.0" - } - }, - "walker": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", - "requires": { - "makeerror": "1.0.12" - } - }, - "watchpack": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", - "requires": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - } - }, - "wbuf": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", - "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", - "requires": { - "minimalistic-assert": "^1.0.0" - } - }, - "web-vitals": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-2.1.4.tgz", - "integrity": "sha512-sVWcwhU5mX6crfI5Vd2dC4qchyTqxV8URinzt25XqVh+bHEPGH4C3NPrNionCP7Obx59wrYEbNlw4Z8sjALzZg==" - }, - "webidl-conversions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==" - }, - "webpack": { - "version": "5.84.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.84.1.tgz", - "integrity": "sha512-ZP4qaZ7vVn/K8WN/p990SGATmrL1qg4heP/MrVneczYtpDGJWlrgZv55vxaV2ul885Kz+25MP2kSXkPe3LZfmg==", - "requires": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^1.0.0", - "@webassemblyjs/ast": "^1.11.5", - "@webassemblyjs/wasm-edit": "^1.11.5", - "@webassemblyjs/wasm-parser": "^1.11.5", - "acorn": "^8.7.1", - "acorn-import-assertions": "^1.9.0", - "browserslist": "^4.14.5", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.14.1", - "es-module-lexer": "^1.2.1", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.1.2", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.3.7", - "watchpack": "^2.4.0", - "webpack-sources": "^3.2.3" - }, - "dependencies": { - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - } - }, - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" - } - } - }, - "webpack-dev-middleware": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz", - "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==", - "requires": { - "colorette": "^2.0.10", - "memfs": "^3.4.3", - "mime-types": "^2.1.31", - "range-parser": "^1.2.1", - "schema-utils": "^4.0.0" - }, - "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "requires": { - "fast-deep-equal": "^3.1.3" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "requires": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - } - } - } - }, - "webpack-dev-server": { - "version": "4.15.0", - "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.0.tgz", - "integrity": "sha512-HmNB5QeSl1KpulTBQ8UT4FPrByYyaLxpJoQ0+s7EvUrMc16m0ZS1sgb1XGqzmgCPk0c9y+aaXxn11tbLzuM7NQ==", - "requires": { - "@types/bonjour": "^3.5.9", - "@types/connect-history-api-fallback": "^1.3.5", - "@types/express": "^4.17.13", - "@types/serve-index": "^1.9.1", - "@types/serve-static": "^1.13.10", - "@types/sockjs": "^0.3.33", - "@types/ws": "^8.5.1", - "ansi-html-community": "^0.0.8", - "bonjour-service": "^1.0.11", - "chokidar": "^3.5.3", - "colorette": "^2.0.10", - "compression": "^1.7.4", - "connect-history-api-fallback": "^2.0.0", - "default-gateway": "^6.0.3", - "express": "^4.17.3", - "graceful-fs": "^4.2.6", - "html-entities": "^2.3.2", - "http-proxy-middleware": "^2.0.3", - "ipaddr.js": "^2.0.1", - "launch-editor": "^2.6.0", - "open": "^8.0.9", - "p-retry": "^4.5.0", - "rimraf": "^3.0.2", - "schema-utils": "^4.0.0", - "selfsigned": "^2.1.1", - "serve-index": "^1.9.1", - "sockjs": "^0.3.24", - "spdy": "^4.0.2", - "webpack-dev-middleware": "^5.3.1", - "ws": "^8.13.0" - }, - "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "requires": { - "fast-deep-equal": "^3.1.3" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "schema-utils": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", - "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", - "requires": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - } - }, - "ws": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", - "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==" - } - } - }, - "webpack-manifest-plugin": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/webpack-manifest-plugin/-/webpack-manifest-plugin-4.1.1.tgz", - "integrity": "sha512-YXUAwxtfKIJIKkhg03MKuiFAD72PlrqCiwdwO4VEXdRO5V0ORCNwaOwAZawPZalCbmH9kBDmXnNeQOw+BIEiow==", - "requires": { - "tapable": "^2.0.0", - "webpack-sources": "^2.2.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - }, - "webpack-sources": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-2.3.1.tgz", - "integrity": "sha512-y9EI9AO42JjEcrTJFOYmVywVZdKVUfOvDUPsJea5GIr1JOEGFVqwlY2K098fFoIjOkDzHn2AjRvM8dsBZu+gCA==", - "requires": { - "source-list-map": "^2.0.1", - "source-map": "^0.6.1" - } - } - } - }, - "webpack-sources": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", - "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==" - }, - "websocket-driver": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", - "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", - "requires": { - "http-parser-js": ">=0.5.1", - "safe-buffer": ">=5.1.0", - "websocket-extensions": ">=0.1.1" - } - }, - "websocket-extensions": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", - "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==" - }, - "whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", - "requires": { - "iconv-lite": "0.4.24" - }, - "dependencies": { - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - } - } - }, - "whatwg-fetch": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", - "integrity": "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==" - }, - "whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==" - }, - "whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", - "requires": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" - } - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "requires": { - "isexe": "^2.0.0" - } - }, - "which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "requires": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - } - }, - "which-collection": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", - "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", - "requires": { - "is-map": "^2.0.1", - "is-set": "^2.0.1", - "is-weakmap": "^2.0.1", - "is-weakset": "^2.0.1" - } - }, - "which-typed-array": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", - "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", - "requires": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.10" - } - }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==" - }, - "workbox-background-sync": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-background-sync/-/workbox-background-sync-6.6.0.tgz", - "integrity": "sha512-jkf4ZdgOJxC9u2vztxLuPT/UjlH7m/nWRQ/MgGL0v8BJHoZdVGJd18Kck+a0e55wGXdqyHO+4IQTk0685g4MUw==", - "requires": { - "idb": "^7.0.1", - "workbox-core": "6.6.0" - } - }, - "workbox-broadcast-update": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-broadcast-update/-/workbox-broadcast-update-6.6.0.tgz", - "integrity": "sha512-nm+v6QmrIFaB/yokJmQ/93qIJ7n72NICxIwQwe5xsZiV2aI93MGGyEyzOzDPVz5THEr5rC3FJSsO3346cId64Q==", - "requires": { - "workbox-core": "6.6.0" - } - }, - "workbox-build": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-build/-/workbox-build-6.6.0.tgz", - "integrity": "sha512-Tjf+gBwOTuGyZwMz2Nk/B13Fuyeo0Q84W++bebbVsfr9iLkDSo6j6PST8tET9HYA58mlRXwlMGpyWO8ETJiXdQ==", - "requires": { - "@apideck/better-ajv-errors": "^0.3.1", - "@babel/core": "^7.11.1", - "@babel/preset-env": "^7.11.0", - "@babel/runtime": "^7.11.2", - "@rollup/plugin-babel": "^5.2.0", - "@rollup/plugin-node-resolve": "^11.2.1", - "@rollup/plugin-replace": "^2.4.1", - "@surma/rollup-plugin-off-main-thread": "^2.2.3", - "ajv": "^8.6.0", - "common-tags": "^1.8.0", - "fast-json-stable-stringify": "^2.1.0", - "fs-extra": "^9.0.1", - "glob": "^7.1.6", - "lodash": "^4.17.20", - "pretty-bytes": "^5.3.0", - "rollup": "^2.43.1", - "rollup-plugin-terser": "^7.0.0", - "source-map": "^0.8.0-beta.0", - "stringify-object": "^3.3.0", - "strip-comments": "^2.0.1", - "tempy": "^0.6.0", - "upath": "^1.2.0", - "workbox-background-sync": "6.6.0", - "workbox-broadcast-update": "6.6.0", - "workbox-cacheable-response": "6.6.0", - "workbox-core": "6.6.0", - "workbox-expiration": "6.6.0", - "workbox-google-analytics": "6.6.0", - "workbox-navigation-preload": "6.6.0", - "workbox-precaching": "6.6.0", - "workbox-range-requests": "6.6.0", - "workbox-recipes": "6.6.0", - "workbox-routing": "6.6.0", - "workbox-strategies": "6.6.0", - "workbox-streams": "6.6.0", - "workbox-sw": "6.6.0", - "workbox-window": "6.6.0" - }, - "dependencies": { - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "requires": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "source-map": { - "version": "0.8.0-beta.0", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", - "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", - "requires": { - "whatwg-url": "^7.0.0" - } - }, - "tr46": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", - "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", - "requires": { - "punycode": "^2.1.0" - } - }, - "webidl-conversions": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", - "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==" - }, - "whatwg-url": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", - "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", - "requires": { - "lodash.sortby": "^4.7.0", - "tr46": "^1.0.1", - "webidl-conversions": "^4.0.2" - } - } - } - }, - "workbox-cacheable-response": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-cacheable-response/-/workbox-cacheable-response-6.6.0.tgz", - "integrity": "sha512-JfhJUSQDwsF1Xv3EV1vWzSsCOZn4mQ38bWEBR3LdvOxSPgB65gAM6cS2CX8rkkKHRgiLrN7Wxoyu+TuH67kHrw==", - "requires": { - "workbox-core": "6.6.0" - } - }, - "workbox-core": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-core/-/workbox-core-6.6.0.tgz", - "integrity": "sha512-GDtFRF7Yg3DD859PMbPAYPeJyg5gJYXuBQAC+wyrWuuXgpfoOrIQIvFRZnQ7+czTIQjIr1DhLEGFzZanAT/3bQ==" - }, - "workbox-expiration": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-expiration/-/workbox-expiration-6.6.0.tgz", - "integrity": "sha512-baplYXcDHbe8vAo7GYvyAmlS4f6998Jff513L4XvlzAOxcl8F620O91guoJ5EOf5qeXG4cGdNZHkkVAPouFCpw==", - "requires": { - "idb": "^7.0.1", - "workbox-core": "6.6.0" - } - }, - "workbox-google-analytics": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-google-analytics/-/workbox-google-analytics-6.6.0.tgz", - "integrity": "sha512-p4DJa6OldXWd6M9zRl0H6vB9lkrmqYFkRQ2xEiNdBFp9U0LhsGO7hsBscVEyH9H2/3eZZt8c97NB2FD9U2NJ+Q==", - "requires": { - "workbox-background-sync": "6.6.0", - "workbox-core": "6.6.0", - "workbox-routing": "6.6.0", - "workbox-strategies": "6.6.0" - } - }, - "workbox-navigation-preload": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-navigation-preload/-/workbox-navigation-preload-6.6.0.tgz", - "integrity": "sha512-utNEWG+uOfXdaZmvhshrh7KzhDu/1iMHyQOV6Aqup8Mm78D286ugu5k9MFD9SzBT5TcwgwSORVvInaXWbvKz9Q==", - "requires": { - "workbox-core": "6.6.0" - } - }, - "workbox-precaching": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-precaching/-/workbox-precaching-6.6.0.tgz", - "integrity": "sha512-eYu/7MqtRZN1IDttl/UQcSZFkHP7dnvr/X3Vn6Iw6OsPMruQHiVjjomDFCNtd8k2RdjLs0xiz9nq+t3YVBcWPw==", - "requires": { - "workbox-core": "6.6.0", - "workbox-routing": "6.6.0", - "workbox-strategies": "6.6.0" - } - }, - "workbox-range-requests": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-range-requests/-/workbox-range-requests-6.6.0.tgz", - "integrity": "sha512-V3aICz5fLGq5DpSYEU8LxeXvsT//mRWzKrfBOIxzIdQnV/Wj7R+LyJVTczi4CQ4NwKhAaBVaSujI1cEjXW+hTw==", - "requires": { - "workbox-core": "6.6.0" - } - }, - "workbox-recipes": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-recipes/-/workbox-recipes-6.6.0.tgz", - "integrity": "sha512-TFi3kTgYw73t5tg73yPVqQC8QQjxJSeqjXRO4ouE/CeypmP2O/xqmB/ZFBBQazLTPxILUQ0b8aeh0IuxVn9a6A==", - "requires": { - "workbox-cacheable-response": "6.6.0", - "workbox-core": "6.6.0", - "workbox-expiration": "6.6.0", - "workbox-precaching": "6.6.0", - "workbox-routing": "6.6.0", - "workbox-strategies": "6.6.0" - } - }, - "workbox-routing": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-routing/-/workbox-routing-6.6.0.tgz", - "integrity": "sha512-x8gdN7VDBiLC03izAZRfU+WKUXJnbqt6PG9Uh0XuPRzJPpZGLKce/FkOX95dWHRpOHWLEq8RXzjW0O+POSkKvw==", - "requires": { - "workbox-core": "6.6.0" - } - }, - "workbox-strategies": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-strategies/-/workbox-strategies-6.6.0.tgz", - "integrity": "sha512-eC07XGuINAKUWDnZeIPdRdVja4JQtTuc35TZ8SwMb1ztjp7Ddq2CJ4yqLvWzFWGlYI7CG/YGqaETntTxBGdKgQ==", - "requires": { - "workbox-core": "6.6.0" - } - }, - "workbox-streams": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-streams/-/workbox-streams-6.6.0.tgz", - "integrity": "sha512-rfMJLVvwuED09CnH1RnIep7L9+mj4ufkTyDPVaXPKlhi9+0czCu+SJggWCIFbPpJaAZmp2iyVGLqS3RUmY3fxg==", - "requires": { - "workbox-core": "6.6.0", - "workbox-routing": "6.6.0" - } - }, - "workbox-sw": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-sw/-/workbox-sw-6.6.0.tgz", - "integrity": "sha512-R2IkwDokbtHUE4Kus8pKO5+VkPHD2oqTgl+XJwh4zbF1HyjAbgNmK/FneZHVU7p03XUt9ICfuGDYISWG9qV/CQ==" - }, - "workbox-webpack-plugin": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-webpack-plugin/-/workbox-webpack-plugin-6.6.0.tgz", - "integrity": "sha512-xNZIZHalboZU66Wa7x1YkjIqEy1gTR+zPM+kjrYJzqN7iurYZBctBLISyScjhkJKYuRrZUP0iqViZTh8rS0+3A==", - "requires": { - "fast-json-stable-stringify": "^2.1.0", - "pretty-bytes": "^5.4.1", - "upath": "^1.2.0", - "webpack-sources": "^1.4.3", - "workbox-build": "6.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - }, - "webpack-sources": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz", - "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", - "requires": { - "source-list-map": "^2.0.0", - "source-map": "~0.6.1" - } - } - } - }, - "workbox-window": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/workbox-window/-/workbox-window-6.6.0.tgz", - "integrity": "sha512-L4N9+vka17d16geaJXXRjENLFldvkWy7JyGxElRD0JvBxvFEd8LOhr+uXCcar/NzAmIBRv9EZ+M+Qr4mOoBITw==", - "requires": { - "@types/trusted-types": "^2.0.2", - "workbox-core": "6.6.0" - } - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - } - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - }, - "write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", - "requires": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==" - }, - "xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==" - }, - "xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==" - }, - "y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" - }, - "yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" - }, - "yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==" - }, - "yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "requires": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - } - }, - "yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==" - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" - } - } -} +{ + "name": "pac_man", + "version": "0.1.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "pac_man", + "version": "0.1.0", + "dependencies": { + "@testing-library/jest-dom": "^5.16.5", + "@testing-library/react": "^13.4.0", + "@testing-library/user-event": "^13.5.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-scripts": "5.0.1", + "web-vitals": "^2.1.4" + } + }, + "node_modules/@adobe/css-tools": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.2.0.tgz", + "integrity": "sha512-E09FiIft46CmH5Qnjb0wsW54/YQd69LsxeKUOWawmws1XWvyFGURnAChH0mlr7YPFR1ofwvUQfcL0J3lMxXqPA==" + }, + "node_modules/@alloc/quick-lru": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", + "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@apideck/better-ajv-errors": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@apideck/better-ajv-errors/-/better-ajv-errors-0.3.6.tgz", + "integrity": "sha512-P+ZygBLZtkp0qqOAJJVX4oX/sFo5JR3eBWwwuqHHhK0GIgQOKWrAfiAaWX0aArHkRWHMuggFEgAZNxVPwPZYaA==", + "dependencies": { + "json-schema": "^0.4.0", + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "ajv": ">=8" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz", + "integrity": "sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g==", + "dependencies": { + "@babel/highlight": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.3.tgz", + "integrity": "sha512-aNtko9OPOwVESUFp3MZfD8Uzxl7JzSeJpd7npIoxCasU37PFbAQRpKglkaKwlHOyeJdrREpo8TW8ldrkYWwvIQ==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.1.tgz", + "integrity": "sha512-Hkqu7J4ynysSXxmAahpN1jjRwVJ+NdpraFLIWflgjpVob3KNyK3/tIUc7Q7szed8WMp0JNa7Qtd1E9Oo22F9gA==", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.21.4", + "@babel/generator": "^7.22.0", + "@babel/helper-compilation-targets": "^7.22.1", + "@babel/helper-module-transforms": "^7.22.1", + "@babel/helpers": "^7.22.0", + "@babel/parser": "^7.22.0", + "@babel/template": "^7.21.9", + "@babel/traverse": "^7.22.1", + "@babel/types": "^7.22.0", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/eslint-parser": { + "version": "7.21.8", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.21.8.tgz", + "integrity": "sha512-HLhI+2q+BP3sf78mFUZNCGc10KEmoUqtUT1OCdMZsN+qr4qFeLUod62/zAnF3jNQstwyasDkZnVXwfK2Bml7MQ==", + "dependencies": { + "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", + "eslint-visitor-keys": "^2.1.0", + "semver": "^6.3.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || >=14.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.11.0", + "eslint": "^7.5.0 || ^8.0.0" + } + }, + "node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "engines": { + "node": ">=10" + } + }, + "node_modules/@babel/eslint-parser/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.3.tgz", + "integrity": "sha512-C17MW4wlk//ES/CJDL51kPNwl+qiBQyN7b9SKyVp11BLGFeSPoVaHrv+MNt8jwQFhQWowW88z1eeBx3pFz9v8A==", + "dependencies": { + "@babel/types": "^7.22.3", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", + "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.3.tgz", + "integrity": "sha512-ahEoxgqNoYXm0k22TvOke48i1PkavGu0qGCmcq9ugi6gnmvKNaMjKBSrZTnWUi1CFEeNAUiVba0Wtzm03aSkJg==", + "dependencies": { + "@babel/types": "^7.22.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.1.tgz", + "integrity": "sha512-Rqx13UM3yVB5q0D/KwQ8+SPfX/+Rnsy1Lw1k/UwOC4KC6qrzIQoY3lYnBu5EHKBlEHHcj0M0W8ltPSkD8rqfsQ==", + "dependencies": { + "@babel/compat-data": "^7.22.0", + "@babel/helper-validator-option": "^7.21.0", + "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.1.tgz", + "integrity": "sha512-SowrZ9BWzYFgzUMwUmowbPSGu6CXL5MSuuCkG3bejahSpSymioPmuLdhPxNOc9MjuNGjy7M/HaXvJ8G82Lywlw==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-member-expression-to-functions": "^7.22.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-replace-supers": "^7.22.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/helper-split-export-declaration": "^7.18.6", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.1.tgz", + "integrity": "sha512-WWjdnfR3LPIe+0EY8td7WmjhytxXtjKAEpnAxun/hkNiyOaPlvGK+NZaBFIdi9ndYV3Gav7BpFvtUwnaJlwi1w==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "regexpu-core": "^5.3.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.0.tgz", + "integrity": "sha512-RnanLx5ETe6aybRi1cO/edaRH+bNYWaryCEmjDDYyNr4wnSzyOp8T0dWipmqVHKEY3AbVKUom50AKSlj1zmKbg==", + "dependencies": { + "@babel/helper-compilation-targets": "^7.17.7", + "@babel/helper-plugin-utils": "^7.16.7", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2", + "semver": "^6.1.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0-0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.1.tgz", + "integrity": "sha512-Z2tgopurB/kTbidvzeBrc2To3PUP/9i5MUe+fU6QJCQDyPwSH2oRapkLw3KGECDYSjhQZCNxEvNvZlLw8JjGwA==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz", + "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==", + "dependencies": { + "@babel/template": "^7.20.7", + "@babel/types": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", + "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.3.tgz", + "integrity": "sha512-Gl7sK04b/2WOb6OPVeNy9eFKeD3L6++CzL3ykPOWqTn08xgYYK0wz4TUh2feIImDXxcVW3/9WQ1NMKY66/jfZA==", + "dependencies": { + "@babel/types": "^7.22.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.21.4.tgz", + "integrity": "sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg==", + "dependencies": { + "@babel/types": "^7.21.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.1.tgz", + "integrity": "sha512-dxAe9E7ySDGbQdCVOY/4+UcD8M9ZFqZcZhSPsPacvCG4M+9lwtDDQfI2EoaSvmf7W/8yCBkGU0m7Pvt1ru3UZw==", + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-module-imports": "^7.21.4", + "@babel/helper-simple-access": "^7.21.5", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.19.1", + "@babel/template": "^7.21.9", + "@babel/traverse": "^7.22.1", + "@babel/types": "^7.22.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", + "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.21.5.tgz", + "integrity": "sha512-0WDaIlXKOX/3KfBK/dwP1oQGiPh6rjMkT7HIRv7i5RR2VUMwrx5ZL0dwBkKx7+SW1zwNdgjHd34IMk5ZjTeHVg==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", + "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-wrap-function": "^7.18.9", + "@babel/types": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.1.tgz", + "integrity": "sha512-ut4qrkE4AuSfrwHSps51ekR1ZY/ygrP1tp0WFm8oVq6nzc/hvfV/22JylndIbsf2U2M9LOMwiSddr6y+78j+OQ==", + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-member-expression-to-functions": "^7.22.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/template": "^7.21.9", + "@babel/traverse": "^7.22.1", + "@babel/types": "^7.22.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.21.5.tgz", + "integrity": "sha512-ENPDAMC1wAjR0uaCUwliBdiSl1KBJAVnMTzXqi64c2MG8MPR6ii4qf7bSXDqSFbr4W6W028/rf5ivoHop5/mkg==", + "dependencies": { + "@babel/types": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", + "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", + "dependencies": { + "@babel/types": "^7.20.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", + "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.21.5.tgz", + "integrity": "sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz", + "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz", + "integrity": "sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q==", + "dependencies": { + "@babel/helper-function-name": "^7.19.0", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.20.5", + "@babel/types": "^7.20.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.3.tgz", + "integrity": "sha512-jBJ7jWblbgr7r6wYZHMdIqKc73ycaTcCaWRq4/2LpuPHcx7xMlZvpGQkOYc9HeSjn6rcx15CPlgVcBtZ4WZJ2w==", + "dependencies": { + "@babel/template": "^7.21.9", + "@babel/traverse": "^7.22.1", + "@babel/types": "^7.22.3" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.3.tgz", + "integrity": "sha512-vrukxyW/ep8UD1UDzOYpTKQ6abgjFoeG6L+4ar9+c5TN9QnlqiOi6QK7LSR5ewm/ERyGkT/Ai6VboNrxhbr9Uw==", + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", + "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.3.tgz", + "integrity": "sha512-6r4yRwEnorYByILoDRnEqxtojYKuiIv9FojW2E8GUKo9eWBwbKcd9IiZOZpdyXc64RmyGGyPu3/uAcrz/dq2kQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-transform-optional-chaining": "^7.22.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-proposal-class-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", + "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-decorators": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.22.3.tgz", + "integrity": "sha512-XjTKH3sHr6pPqG+hR1NCdVupwiosfdKM2oSMyKQVQ5Bym9l/p7BuLAqT5U32zZzRCfPq/TPRPzMiiTE9bOXU4w==", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-replace-supers": "^7.22.1", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/plugin-syntax-decorators": "^7.22.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", + "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-numeric-separator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", + "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-optional-chaining": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz", + "integrity": "sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-methods": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", + "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0.tgz", + "integrity": "sha512-ha4zfehbJjc5MmXBlHec1igel5TJXXLDDRbuJ4+XT2TJcyD9/V1919BA8gMvsdHcNMBy4WBUBiRb3nw/EQUtBw==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-unicode-property-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", + "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-decorators": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.22.3.tgz", + "integrity": "sha512-R16Zuge73+8/nLcDjkIpyhi5wIbN7i7fiuLJR8yQX7vPAa/ltUKtd3iLbb4AgP5nrLi91HnNUNosELIGUGH1bg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-flow": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.21.4.tgz", + "integrity": "sha512-l9xd3N+XG4fZRxEP3vXdK6RW7vN1Uf5dxzRC/09wV86wqZ/YYQooBIGNsiRdfNR3/q2/5pPzV4B54J/9ctX5jw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", + "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.19.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.3.tgz", + "integrity": "sha512-i35jZJv6aO7hxEbIWQ41adVfOzjm9dcYDNeWlBMd8p0ZQRtNUCBrmGwZt+H5lb+oOC9a3svp956KP0oWGA1YsA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.21.4.tgz", + "integrity": "sha512-5hewiLct5OKyh6PLKEYaFclcqtIgCb6bmELouxjF6up5q3Sov7rOayW4RwhbaBL0dit8rA80GNfY+UuDp2mBbQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.21.4.tgz", + "integrity": "sha512-xz0D39NvhQn4t4RNsHmDnnsaQizIlUkdtYvLs8La1BlfjQ6JEwxkJGeqJMW2tAXx+q6H+WFuUTXNdYVpEya0YA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", + "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.21.5.tgz", + "integrity": "sha512-wb1mhwGOCaXHDTcsRYMKF9e5bbMgqwxtqa2Y1ifH96dXJPwbuLX9qHy3clhrxVqgMz7nyNXs8VkxdH8UBcjKqA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-generator-functions": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.3.tgz", + "integrity": "sha512-36A4Aq48t66btydbZd5Fk0/xJqbpg/v4QWI4AH4cYHBXy9Mu42UOupZpebKFiCFNT9S9rJFcsld0gsv0ayLjtA==", + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-remap-async-to-generator": "^7.18.9", + "@babel/plugin-syntax-async-generators": "^7.8.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.20.7.tgz", + "integrity": "sha512-Uo5gwHPT9vgnSXQxqGtpdufUiWp96gk7yiP4Mp5bm1QMkEmLXBO7PAGYbKoJ6DhAwiNkcHFBol/x5zZZkL/t0Q==", + "dependencies": { + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-remap-async-to-generator": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", + "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz", + "integrity": "sha512-Mdrbunoh9SxwFZapeHVrwFmri16+oYotcZysSzhNIVDwIAb1UV+kvnxULSYq9J3/q5MDG+4X6w8QVgD1zhBXNQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.3.tgz", + "integrity": "sha512-mASLsd6rhOrLZ5F3WbCxkzl67mmOnqik0zrg5W6D/X0QMW7HtvnoL1dRARLKIbMP3vXwkwziuLesPqWVGIl6Bw==", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.3.tgz", + "integrity": "sha512-5BirgNWNOx7cwbTJCOmKFJ1pZjwk5MUfMIwiBBvsirCJMZeQgs5pk6i1OlkVg+1Vef5LfBahFOrdCnAWvkVKMw==", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz", + "integrity": "sha512-RZhbYTCEUAe6ntPehC4hlslPWosNHDox+vAs4On/mCLRLfoDVHf6hVEd7kuxr1RnHwJmxFfUM3cZiZRmPxJPXQ==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-replace-supers": "^7.20.7", + "@babel/helper-split-export-declaration": "^7.18.6", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.21.5.tgz", + "integrity": "sha512-TR653Ki3pAwxBxUe8srfF3e4Pe3FTA46uaNHYyQwIoM4oWKSoOZiDNyHJ0oIoDIUPSRQbQG7jzgVBX3FPVne1Q==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/template": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.21.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.21.3.tgz", + "integrity": "sha512-bp6hwMFzuiE4HqYEyoGJ/V2LeIWn+hLVKc4pnj++E5XQptwhtcGmSayM029d/j2X1bPKGTlsyPwAubuU22KhMA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", + "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", + "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dynamic-import": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.1.tgz", + "integrity": "sha512-rlhWtONnVBPdmt+jeewS0qSnMz/3yLFrqAP8hHC6EDcrYRSyuz9f9yQhHvVn2Ad6+yO9fHXac5piudeYrInxwQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", + "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", + "dependencies": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.3.tgz", + "integrity": "sha512-5Ti1cHLTDnt3vX61P9KZ5IG09bFXp4cDVFJIAeCZuxu9OXXJJZp5iP0n/rzM2+iAutJY+KWEyyHcRaHlpQ/P5g==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-flow-strip-types": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.21.0.tgz", + "integrity": "sha512-FlFA2Mj87a6sDkW4gfGrQQqwY/dLlBAyJa2dJEZ+FHXUVHBflO2wyKvg+OOEzXfrKYIa4HWl0mgmbCzt0cMb7w==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-flow": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.5.tgz", + "integrity": "sha512-nYWpjKW/7j/I/mZkGVgHJXh4bA1sfdFnJoOXwJuj4m3Q2EraO/8ZyrkCau9P5tbHQk01RMSt6KYLCsW7730SXQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", + "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", + "dependencies": { + "@babel/helper-compilation-targets": "^7.18.9", + "@babel/helper-function-name": "^7.18.9", + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-json-strings": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.3.tgz", + "integrity": "sha512-IuvOMdeOOY2X4hRNAT6kwbePtK21BUyrAEgLKviL8pL6AEEVUVcqtRdN/HJXBLGIbt9T3ETmXRnFedRRmQNTYw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", + "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-logical-assignment-operators": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.3.tgz", + "integrity": "sha512-CbayIfOw4av2v/HYZEsH+Klks3NC2/MFIR3QR8gnpGNNPEaq2fdlVCRYG/paKs7/5hvBLQ+H70pGWOHtlNEWNA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", + "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.20.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.20.11.tgz", + "integrity": "sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g==", + "dependencies": { + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.21.5.tgz", + "integrity": "sha512-OVryBEgKUbtqMoB7eG2rs6UFexJi6Zj6FDXx+esBLPTCxCNxAY9o+8Di7IsUGJ+AVhp5ncK0fxWUBd0/1gPhrQ==", + "dependencies": { + "@babel/helper-module-transforms": "^7.21.5", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-simple-access": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.22.3.tgz", + "integrity": "sha512-V21W3bKLxO3ZjcBJZ8biSvo5gQ85uIXW2vJfh7JSWf/4SLUSr1tOoHX3ruN4+Oqa2m+BKfsxTR1I+PsvkIWvNw==", + "dependencies": { + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-module-transforms": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-validator-identifier": "^7.19.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", + "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", + "dependencies": { + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.3.tgz", + "integrity": "sha512-c6HrD/LpUdNNJsISQZpds3TXvfYIAbo+efE9aWmY/PmSRD0agrJ9cPMt4BmArwUQ7ZymEWTFjTyp+yReLJZh0Q==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.3.tgz", + "integrity": "sha512-5RuJdSo89wKdkRTqtM9RVVJzHum9c2s0te9rB7vZC1zKKxcioWIy+xcu4OoIAjyFZhb/bp5KkunuLin1q7Ct+w==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.3.tgz", + "integrity": "sha512-CpaoNp16nX7ROtLONNuCyenYdY/l7ZsR6aoVa7rW7nMWisoNoQNIH5Iay/4LDyRjKMuElMqXiBoOQCDLTMGZiw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.3.tgz", + "integrity": "sha512-+AF88fPDJrnseMh5vD9+SH6wq4ZMvpiTMHh58uLs+giMEyASFVhcT3NkoyO+NebFCNnpHJEq5AXO2txV4AGPDQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.3.tgz", + "integrity": "sha512-38bzTsqMMCI46/TQnJwPPpy33EjLCc1Gsm2hRTF6zTMWnKsN61vdrpuzIEGQyKEhDSYDKyZHrrd5FMj4gcUHhw==", + "dependencies": { + "@babel/compat-data": "^7.22.3", + "@babel/helper-compilation-targets": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.22.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", + "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-replace-supers": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.3.tgz", + "integrity": "sha512-bnDFWXFzWY0BsOyqaoSXvMQ2F35zutQipugog/rqotL2S4ciFOKlRYUu9djt4iq09oh2/34hqfRR2k1dIvuu4g==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.22.3.tgz", + "integrity": "sha512-63v3/UFFxhPKT8j8u1jTTGVyITxl7/7AfOqK8C5gz1rHURPUGe3y5mvIf68eYKGoBNahtJnTxBKug4BQOnzeJg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.3.tgz", + "integrity": "sha512-x7QHQJHPuD9VmfpzboyGJ5aHEr9r7DsAsdxdhJiTB3J3j8dyl+NFZ+rX5Q2RWFDCs61c06qBfS4ys2QYn8UkMw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.3.tgz", + "integrity": "sha512-fC7jtjBPFqhqpPAE+O4LKwnLq7gGkD3ZmC2E3i4qWH34mH3gOg2Xrq5YMHUq6DM30xhqM1DNftiRaSqVjEG+ug==", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.3.tgz", + "integrity": "sha512-C7MMl4qWLpgVCbXfj3UW8rR1xeCnisQ0cU7YJHV//8oNBS0aCIVg1vFnZXxOckHhEpQyqNNkWmvSEWnMLlc+Vw==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", + "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-constant-elements": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.22.3.tgz", + "integrity": "sha512-b5J6muxQYp4H7loAQv/c7GO5cPuRA6H5hx4gO+/Hn+Cu9MRQU0PNiUoWq1L//8sq6kFSNxGXFb2XTaUfa9y+Pg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-display-name": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz", + "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.3.tgz", + "integrity": "sha512-JEulRWG2f04a7L8VWaOngWiK6p+JOSpB+DAtwfJgOaej1qdbNxqtK7MwTBHjUA10NeFcszlFNqCdbRcirzh2uQ==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-module-imports": "^7.21.4", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-jsx": "^7.21.4", + "@babel/types": "^7.22.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-development": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz", + "integrity": "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==", + "dependencies": { + "@babel/plugin-transform-react-jsx": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-pure-annotations": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz", + "integrity": "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.21.5.tgz", + "integrity": "sha512-ZoYBKDb6LyMi5yCsByQ5jmXsHAQDDYeexT1Szvlmui+lADvfSecr5Dxd/PkrTC3pAD182Fcju1VQkB4oCp9M+w==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "regenerator-transform": "^0.15.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", + "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime": { + "version": "7.22.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.22.2.tgz", + "integrity": "sha512-ewgWBw1pAoqFg9crO6yhZAQoKWN/iNEGqAmuYegZp+xEpvMHGyLxt0SgPZ9bWG6jx4eff6jQ4JILt5zwj/EoTg==", + "dependencies": { + "@babel/helper-module-imports": "^7.21.4", + "@babel/helper-plugin-utils": "^7.21.5", + "babel-plugin-polyfill-corejs2": "^0.4.2", + "babel-plugin-polyfill-corejs3": "^0.8.1", + "babel-plugin-polyfill-regenerator": "^0.5.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", + "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz", + "integrity": "sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", + "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", + "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", + "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typescript": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.3.tgz", + "integrity": "sha512-pyjnCIniO5PNaEuGxT28h0HbMru3qCVrMqVgVOz/krComdIrY9W6FCLBq9NWHY8HDGaUlan+UhmZElDENIfCcw==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-typescript": "^7.21.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.21.5.tgz", + "integrity": "sha512-LYm/gTOwZqsYohlvFUe/8Tujz75LqqVC2w+2qPHLR+WyWHGCZPN1KBpJCJn+4Bk4gOkQy/IXKIge6az5MqwlOg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-property-regex": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.3.tgz", + "integrity": "sha512-5ScJ+OmdX+O6HRuMGW4kv7RL9vIKdtdAj9wuWUKy1wbHY3jaM/UlyIiC1G7J6UJiiyMukjjK0QwL3P0vBd0yYg==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", + "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-sets-regex": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.3.tgz", + "integrity": "sha512-hNufLdkF8vqywRp+P55j4FHXqAX2LRUccoZHH7AFn1pq5ZOO2ISKW9w13bFZVjBoTqeve2HOgoJCcaziJVhGNw==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.22.2", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.22.2.tgz", + "integrity": "sha512-UPNK9pgphMULvA2EMKIWHU90C47PKyuvQ8pE1MzH7l9PgFcRabdrHhlePpBuWxYZQ+TziP2nycKoI5C1Yhdm9Q==", + "dependencies": { + "@babel/compat-data": "^7.22.0", + "@babel/helper-compilation-targets": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.0", + "@babel/plugin-proposal-private-property-in-object": "^7.21.0", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.20.0", + "@babel/plugin-syntax-import-attributes": "^7.22.0", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.21.5", + "@babel/plugin-transform-async-generator-functions": "^7.22.0", + "@babel/plugin-transform-async-to-generator": "^7.20.7", + "@babel/plugin-transform-block-scoped-functions": "^7.18.6", + "@babel/plugin-transform-block-scoping": "^7.21.0", + "@babel/plugin-transform-class-properties": "^7.22.0", + "@babel/plugin-transform-class-static-block": "^7.22.0", + "@babel/plugin-transform-classes": "^7.21.0", + "@babel/plugin-transform-computed-properties": "^7.21.5", + "@babel/plugin-transform-destructuring": "^7.21.3", + "@babel/plugin-transform-dotall-regex": "^7.18.6", + "@babel/plugin-transform-duplicate-keys": "^7.18.9", + "@babel/plugin-transform-dynamic-import": "^7.22.1", + "@babel/plugin-transform-exponentiation-operator": "^7.18.6", + "@babel/plugin-transform-export-namespace-from": "^7.22.0", + "@babel/plugin-transform-for-of": "^7.21.5", + "@babel/plugin-transform-function-name": "^7.18.9", + "@babel/plugin-transform-json-strings": "^7.22.0", + "@babel/plugin-transform-literals": "^7.18.9", + "@babel/plugin-transform-logical-assignment-operators": "^7.22.0", + "@babel/plugin-transform-member-expression-literals": "^7.18.6", + "@babel/plugin-transform-modules-amd": "^7.20.11", + "@babel/plugin-transform-modules-commonjs": "^7.21.5", + "@babel/plugin-transform-modules-systemjs": "^7.22.0", + "@babel/plugin-transform-modules-umd": "^7.18.6", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.0", + "@babel/plugin-transform-new-target": "^7.22.0", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.0", + "@babel/plugin-transform-numeric-separator": "^7.22.0", + "@babel/plugin-transform-object-rest-spread": "^7.22.0", + "@babel/plugin-transform-object-super": "^7.18.6", + "@babel/plugin-transform-optional-catch-binding": "^7.22.0", + "@babel/plugin-transform-optional-chaining": "^7.22.0", + "@babel/plugin-transform-parameters": "^7.22.0", + "@babel/plugin-transform-private-methods": "^7.22.0", + "@babel/plugin-transform-private-property-in-object": "^7.22.0", + "@babel/plugin-transform-property-literals": "^7.18.6", + "@babel/plugin-transform-regenerator": "^7.21.5", + "@babel/plugin-transform-reserved-words": "^7.18.6", + "@babel/plugin-transform-shorthand-properties": "^7.18.6", + "@babel/plugin-transform-spread": "^7.20.7", + "@babel/plugin-transform-sticky-regex": "^7.18.6", + "@babel/plugin-transform-template-literals": "^7.18.9", + "@babel/plugin-transform-typeof-symbol": "^7.18.9", + "@babel/plugin-transform-unicode-escapes": "^7.21.5", + "@babel/plugin-transform-unicode-property-regex": "^7.22.0", + "@babel/plugin-transform-unicode-regex": "^7.18.6", + "@babel/plugin-transform-unicode-sets-regex": "^7.22.0", + "@babel/preset-modules": "^0.1.5", + "@babel/types": "^7.22.0", + "babel-plugin-polyfill-corejs2": "^0.4.2", + "babel-plugin-polyfill-corejs3": "^0.8.1", + "babel-plugin-polyfill-regenerator": "^0.5.0", + "core-js-compat": "^3.30.2", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-env/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", + "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-react": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.22.3.tgz", + "integrity": "sha512-lxDz1mnZ9polqClBCVBjIVUypoB4qV3/tZUDb/IlYbW1kiiLaXaX+bInbRjl+lNQ/iUZraQ3+S8daEmoELMWug==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-transform-react-display-name": "^7.18.6", + "@babel/plugin-transform-react-jsx": "^7.22.3", + "@babel/plugin-transform-react-jsx-development": "^7.18.6", + "@babel/plugin-transform-react-pure-annotations": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-typescript": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.21.5.tgz", + "integrity": "sha512-iqe3sETat5EOrORXiQ6rWfoOg2y68Cs75B9wNxdPW4kixJxh7aXQE1KPdWLDniC24T/6dSnguF33W9j/ZZQcmA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-syntax-jsx": "^7.21.4", + "@babel/plugin-transform-modules-commonjs": "^7.21.5", + "@babel/plugin-transform-typescript": "^7.21.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==" + }, + "node_modules/@babel/runtime": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.3.tgz", + "integrity": "sha512-XsDuspWKLUsxwCp6r7EhsExHtYfbe5oAGQ19kqngTdCPUoPQzOPdUbD/pB9PJiwb2ptYKQDjSJT3R6dC+EPqfQ==", + "dependencies": { + "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.21.9", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.21.9.tgz", + "integrity": "sha512-MK0X5k8NKOuWRamiEfc3KEJiHMTkGZNUjzMipqCGDDc6ijRl/B7RGSKVGncu4Ro/HdyzzY6cmoXuKI2Gffk7vQ==", + "dependencies": { + "@babel/code-frame": "^7.21.4", + "@babel/parser": "^7.21.9", + "@babel/types": "^7.21.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.1.tgz", + "integrity": "sha512-lAWkdCoUFnmwLBhIRLciFntGYsIIoC6vIbN8zrLPqBnJmPu7Z6nzqnKd7FsxQUNAvZfVZ0x6KdNvNp8zWIOHSQ==", + "dependencies": { + "@babel/code-frame": "^7.21.4", + "@babel/generator": "^7.22.0", + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.22.0", + "@babel/types": "^7.22.0", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.3.tgz", + "integrity": "sha512-P3na3xIQHTKY4L0YOG7pM8M8uoUIB910WQaSiiMCZUC2Cy8XFEQONGABFnHWBa2gpGKODTAJcNhi5Zk0sLRrzg==", + "dependencies": { + "@babel/helper-string-parser": "^7.21.5", + "@babel/helper-validator-identifier": "^7.19.1", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==" + }, + "node_modules/@csstools/normalize.css": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@csstools/normalize.css/-/normalize.css-12.0.0.tgz", + "integrity": "sha512-M0qqxAcwCsIVfpFQSlGN5XjXWu8l5JDZN+fPt1LeW5SZexQTgnaEvgXAY+CeygRw0EeppWHi12JxESWiWrB0Sg==" + }, + "node_modules/@csstools/postcss-cascade-layers": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-cascade-layers/-/postcss-cascade-layers-1.1.1.tgz", + "integrity": "sha512-+KdYrpKC5TgomQr2DlZF4lDEpHcoxnj5IGddYYfBWJAKfj1JtuHUIqMa+E1pJJ+z3kvDViWMqyqPlG4Ja7amQA==", + "dependencies": { + "@csstools/selector-specificity": "^2.0.2", + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-color-function": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-color-function/-/postcss-color-function-1.1.1.tgz", + "integrity": "sha512-Bc0f62WmHdtRDjf5f3e2STwRAl89N2CLb+9iAwzrv4L2hncrbDwnQD9PCq0gtAt7pOI2leIV08HIBUd4jxD8cw==", + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-font-format-keywords": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-font-format-keywords/-/postcss-font-format-keywords-1.0.1.tgz", + "integrity": "sha512-ZgrlzuUAjXIOc2JueK0X5sZDjCtgimVp/O5CEqTcs5ShWBa6smhWYbS0x5cVc/+rycTDbjjzoP0KTDnUneZGOg==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-hwb-function": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@csstools/postcss-hwb-function/-/postcss-hwb-function-1.0.2.tgz", + "integrity": "sha512-YHdEru4o3Rsbjmu6vHy4UKOXZD+Rn2zmkAmLRfPet6+Jz4Ojw8cbWxe1n42VaXQhD3CQUXXTooIy8OkVbUcL+w==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-ic-unit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-ic-unit/-/postcss-ic-unit-1.0.1.tgz", + "integrity": "sha512-Ot1rcwRAaRHNKC9tAqoqNZhjdYBzKk1POgWfhN4uCOE47ebGcLRqXjKkApVDpjifL6u2/55ekkpnFcp+s/OZUw==", + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-is-pseudo-class": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@csstools/postcss-is-pseudo-class/-/postcss-is-pseudo-class-2.0.7.tgz", + "integrity": "sha512-7JPeVVZHd+jxYdULl87lvjgvWldYu+Bc62s9vD/ED6/QTGjy0jy0US/f6BG53sVMTBJ1lzKZFpYmofBN9eaRiA==", + "dependencies": { + "@csstools/selector-specificity": "^2.0.0", + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-nested-calc": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@csstools/postcss-nested-calc/-/postcss-nested-calc-1.0.0.tgz", + "integrity": "sha512-JCsQsw1wjYwv1bJmgjKSoZNvf7R6+wuHDAbi5f/7MbFhl2d/+v+TvBTU4BJH3G1X1H87dHl0mh6TfYogbT/dJQ==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-normalize-display-values": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-normalize-display-values/-/postcss-normalize-display-values-1.0.1.tgz", + "integrity": "sha512-jcOanIbv55OFKQ3sYeFD/T0Ti7AMXc9nM1hZWu8m/2722gOTxFg7xYu4RDLJLeZmPUVQlGzo4jhzvTUq3x4ZUw==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-oklab-function": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-oklab-function/-/postcss-oklab-function-1.1.1.tgz", + "integrity": "sha512-nJpJgsdA3dA9y5pgyb/UfEzE7W5Ka7u0CX0/HIMVBNWzWemdcTH3XwANECU6anWv/ao4vVNLTMxhiPNZsTK6iA==", + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-progressive-custom-properties": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@csstools/postcss-progressive-custom-properties/-/postcss-progressive-custom-properties-1.3.0.tgz", + "integrity": "sha512-ASA9W1aIy5ygskZYuWams4BzafD12ULvSypmaLJT2jvQ8G0M3I8PRQhC0h7mG0Z3LI05+agZjqSR9+K9yaQQjA==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.3" + } + }, + "node_modules/@csstools/postcss-stepped-value-functions": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-stepped-value-functions/-/postcss-stepped-value-functions-1.0.1.tgz", + "integrity": "sha512-dz0LNoo3ijpTOQqEJLY8nyaapl6umbmDcgj4AD0lgVQ572b2eqA1iGZYTTWhrcrHztWDDRAX2DGYyw2VBjvCvQ==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-text-decoration-shorthand": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@csstools/postcss-text-decoration-shorthand/-/postcss-text-decoration-shorthand-1.0.0.tgz", + "integrity": "sha512-c1XwKJ2eMIWrzQenN0XbcfzckOLLJiczqy+YvfGmzoVXd7pT9FfObiSEfzs84bpE/VqfpEuAZ9tCRbZkZxxbdw==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-trigonometric-functions": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@csstools/postcss-trigonometric-functions/-/postcss-trigonometric-functions-1.0.2.tgz", + "integrity": "sha512-woKaLO///4bb+zZC2s80l+7cm07M7268MsyG3M0ActXXEFi6SuhvriQYcb58iiKGbjwwIU7n45iRLEHypB47Og==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-unset-value": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@csstools/postcss-unset-value/-/postcss-unset-value-1.0.2.tgz", + "integrity": "sha512-c8J4roPBILnelAsdLr4XOAR/GsTm0GJi4XpcfvoWk3U6KiTCqiFYc63KhRMQQX35jYMp4Ao8Ij9+IZRgMfJp1g==", + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/selector-specificity": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz", + "integrity": "sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw==", + "engines": { + "node": "^14 || ^16 || >=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss-selector-parser": "^6.0.10" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", + "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", + "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.5.2", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/eslintrc/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@eslint/eslintrc/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.41.0.tgz", + "integrity": "sha512-LxcyMGxwmTh2lY9FwHPGWOHmYFCZvbrFCBZL4FzSSsxsRPuhrYUg/49/0KDfW8tnIEaEHtfmn6+NPN+1DqaNmA==", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.8", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", + "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==" + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", + "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/console/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/console/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/console/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/console/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/@jest/console/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/core": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", + "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/reporters": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^27.5.1", + "jest-config": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-resolve-dependencies": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "jest-watcher": "^27.5.1", + "micromatch": "^4.0.4", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/core/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/core/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/@jest/core/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/core/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/environment": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", + "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", + "dependencies": { + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.5.0.tgz", + "integrity": "sha512-fmKzsidoXQT2KwnrwE0SQq3uj8Z763vzR8LnLBwC2qYWEFpjX8daRsk6rHUM1QvNlEW/UJXNXm59ztmJJWs2Mg==", + "dependencies": { + "jest-get-type": "^29.4.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", + "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", + "dependencies": { + "@jest/types": "^27.5.1", + "@sinonjs/fake-timers": "^8.0.1", + "@types/node": "*", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", + "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/types": "^27.5.1", + "expect": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", + "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-haste-map": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^8.1.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/reporters/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/reporters/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/reporters/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/reporters/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/@jest/reporters/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/reporters/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@jest/reporters/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/schemas": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-28.1.3.tgz", + "integrity": "sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg==", + "dependencies": { + "@sinclair/typebox": "^0.24.1" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", + "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", + "dependencies": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9", + "source-map": "^0.6.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/source-map/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@jest/test-result": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", + "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", + "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", + "dependencies": { + "@jest/test-result": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-runtime": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", + "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/types": "^27.5.1", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-util": "^27.5.1", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/transform/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/transform/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/transform/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/transform/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/@jest/transform/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/transform/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@jest/transform/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/types": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", + "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/types/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/types/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/types/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/types/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/@jest/types/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/types/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", + "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.18", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", + "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "dependencies": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + }, + "node_modules/@leichtgewicht/ip-codec": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", + "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==" + }, + "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": { + "version": "5.1.1-v1", + "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", + "integrity": "sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==", + "dependencies": { + "eslint-scope": "5.1.1" + } + }, + "node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@pmmmwh/react-refresh-webpack-plugin": { + "version": "0.5.10", + "resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.10.tgz", + "integrity": "sha512-j0Ya0hCFZPd4x40qLzbhGsh9TMtdb+CJQiso+WxLOPNasohq9cc5SNUcwsZaRH6++Xh91Xkm/xHCkuIiIu0LUA==", + "dependencies": { + "ansi-html-community": "^0.0.8", + "common-path-prefix": "^3.0.0", + "core-js-pure": "^3.23.3", + "error-stack-parser": "^2.0.6", + "find-up": "^5.0.0", + "html-entities": "^2.1.0", + "loader-utils": "^2.0.4", + "schema-utils": "^3.0.0", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">= 10.13" + }, + "peerDependencies": { + "@types/webpack": "4.x || 5.x", + "react-refresh": ">=0.10.0 <1.0.0", + "sockjs-client": "^1.4.0", + "type-fest": ">=0.17.0 <4.0.0", + "webpack": ">=4.43.0 <6.0.0", + "webpack-dev-server": "3.x || 4.x", + "webpack-hot-middleware": "2.x", + "webpack-plugin-serve": "0.x || 1.x" + }, + "peerDependenciesMeta": { + "@types/webpack": { + "optional": true + }, + "sockjs-client": { + "optional": true + }, + "type-fest": { + "optional": true + }, + "webpack-dev-server": { + "optional": true + }, + "webpack-hot-middleware": { + "optional": true + }, + "webpack-plugin-serve": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-babel": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", + "integrity": "sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==", + "dependencies": { + "@babel/helper-module-imports": "^7.10.4", + "@rollup/pluginutils": "^3.1.0" + }, + "engines": { + "node": ">= 10.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "@types/babel__core": "^7.1.9", + "rollup": "^1.20.0||^2.0.0" + }, + "peerDependenciesMeta": { + "@types/babel__core": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-node-resolve": { + "version": "11.2.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz", + "integrity": "sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg==", + "dependencies": { + "@rollup/pluginutils": "^3.1.0", + "@types/resolve": "1.17.1", + "builtin-modules": "^3.1.0", + "deepmerge": "^4.2.2", + "is-module": "^1.0.0", + "resolve": "^1.19.0" + }, + "engines": { + "node": ">= 10.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0" + } + }, + "node_modules/@rollup/plugin-replace": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-2.4.2.tgz", + "integrity": "sha512-IGcu+cydlUMZ5En85jxHH4qj2hta/11BHq95iHEyb2sbgiN0eCdzvUcHw5gt9pBL5lTi4JDYJ1acCoMGpTvEZg==", + "dependencies": { + "@rollup/pluginutils": "^3.1.0", + "magic-string": "^0.25.7" + }, + "peerDependencies": { + "rollup": "^1.20.0 || ^2.0.0" + } + }, + "node_modules/@rollup/pluginutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", + "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", + "dependencies": { + "@types/estree": "0.0.39", + "estree-walker": "^1.0.1", + "picomatch": "^2.2.2" + }, + "engines": { + "node": ">= 8.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0" + } + }, + "node_modules/@rollup/pluginutils/node_modules/@types/estree": { + "version": "0.0.39", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", + "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==" + }, + "node_modules/@rushstack/eslint-patch": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.3.0.tgz", + "integrity": "sha512-IthPJsJR85GhOkp3Hvp8zFOPK5ynKn6STyHa/WZpioK7E1aYDiBzpqQPrngc14DszIUkIrdd3k9Iu0XSzlP/1w==" + }, + "node_modules/@sinclair/typebox": { + "version": "0.24.51", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.51.tgz", + "integrity": "sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA==" + }, + "node_modules/@sinonjs/commons": { + "version": "1.8.6", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", + "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", + "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, + "node_modules/@surma/rollup-plugin-off-main-thread": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz", + "integrity": "sha512-lR8q/9W7hZpMWweNiAKU7NQerBnzQQLvi8qnTDU/fxItPhtZVMbPV3lbCwjhIlNBe9Bbr5V+KHshvWmVSG9cxQ==", + "dependencies": { + "ejs": "^3.1.6", + "json5": "^2.2.0", + "magic-string": "^0.25.0", + "string.prototype.matchall": "^4.0.6" + } + }, + "node_modules/@svgr/babel-plugin-add-jsx-attribute": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-5.4.0.tgz", + "integrity": "sha512-ZFf2gs/8/6B8PnSofI0inYXr2SDNTDScPXhN7k5EqD4aZ3gi6u+rbmZHVB8IM3wDyx8ntKACZbtXSm7oZGRqVg==", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-remove-jsx-attribute": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-5.4.0.tgz", + "integrity": "sha512-yaS4o2PgUtwLFGTKbsiAy6D0o3ugcUhWK0Z45umJ66EPWunAz9fuFw2gJuje6wqQvQWOTJvIahUwndOXb7QCPg==", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-remove-jsx-empty-expression": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-5.0.1.tgz", + "integrity": "sha512-LA72+88A11ND/yFIMzyuLRSMJ+tRKeYKeQ+mR3DcAZ5I4h5CPWN9AHyUzJbWSYp/u2u0xhmgOe0+E41+GjEueA==", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-replace-jsx-attribute-value": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-5.0.1.tgz", + "integrity": "sha512-PoiE6ZD2Eiy5mK+fjHqwGOS+IXX0wq/YDtNyIgOrc6ejFnxN4b13pRpiIPbtPwHEc+NT2KCjteAcq33/F1Y9KQ==", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-svg-dynamic-title": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-5.4.0.tgz", + "integrity": "sha512-zSOZH8PdZOpuG1ZVx/cLVePB2ibo3WPpqo7gFIjLV9a0QsuQAzJiwwqmuEdTaW2pegyBE17Uu15mOgOcgabQZg==", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-svg-em-dimensions": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-5.4.0.tgz", + "integrity": "sha512-cPzDbDA5oT/sPXDCUYoVXEmm3VIoAWAPT6mSPTJNbQaBNUuEKVKyGH93oDY4e42PYHRW67N5alJx/eEol20abw==", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-transform-react-native-svg": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-5.4.0.tgz", + "integrity": "sha512-3eYP/SaopZ41GHwXma7Rmxcv9uRslRDTY1estspeB1w1ueZWd/tPlMfEOoccYpEMZU3jD4OU7YitnXcF5hLW2Q==", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-transform-svg-component": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-5.5.0.tgz", + "integrity": "sha512-q4jSH1UUvbrsOtlo/tKcgSeiCHRSBdXoIoqX1pgcKK/aU3JD27wmMKwGtpB8qRYUYoyXvfGxUVKchLuR5pB3rQ==", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-preset": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-5.5.0.tgz", + "integrity": "sha512-4FiXBjvQ+z2j7yASeGPEi8VD/5rrGQk4Xrq3EdJmoZgz/tpqChpo5hgXDvmEauwtvOc52q8ghhZK4Oy7qph4ig==", + "dependencies": { + "@svgr/babel-plugin-add-jsx-attribute": "^5.4.0", + "@svgr/babel-plugin-remove-jsx-attribute": "^5.4.0", + "@svgr/babel-plugin-remove-jsx-empty-expression": "^5.0.1", + "@svgr/babel-plugin-replace-jsx-attribute-value": "^5.0.1", + "@svgr/babel-plugin-svg-dynamic-title": "^5.4.0", + "@svgr/babel-plugin-svg-em-dimensions": "^5.4.0", + "@svgr/babel-plugin-transform-react-native-svg": "^5.4.0", + "@svgr/babel-plugin-transform-svg-component": "^5.5.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/core": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/core/-/core-5.5.0.tgz", + "integrity": "sha512-q52VOcsJPvV3jO1wkPtzTuKlvX7Y3xIcWRpCMtBF3MrteZJtBfQw/+u0B1BHy5ColpQc1/YVTrPEtSYIMNZlrQ==", + "dependencies": { + "@svgr/plugin-jsx": "^5.5.0", + "camelcase": "^6.2.0", + "cosmiconfig": "^7.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/hast-util-to-babel-ast": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-5.5.0.tgz", + "integrity": "sha512-cAaR/CAiZRB8GP32N+1jocovUtvlj0+e65TB50/6Lcime+EA49m/8l+P2ko+XPJ4dw3xaPS3jOL4F2X4KWxoeQ==", + "dependencies": { + "@babel/types": "^7.12.6" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/plugin-jsx": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-5.5.0.tgz", + "integrity": "sha512-V/wVh33j12hGh05IDg8GpIUXbjAPnTdPTKuP4VNLggnwaHMPNQNae2pRnyTAILWCQdz5GyMqtO488g7CKM8CBA==", + "dependencies": { + "@babel/core": "^7.12.3", + "@svgr/babel-preset": "^5.5.0", + "@svgr/hast-util-to-babel-ast": "^5.5.0", + "svg-parser": "^2.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/plugin-svgo": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-5.5.0.tgz", + "integrity": "sha512-r5swKk46GuQl4RrVejVwpeeJaydoxkdwkM1mBKOgJLBUJPGaLci6ylg/IjhrRsREKDkr4kbMWdgOtbXEh0fyLQ==", + "dependencies": { + "cosmiconfig": "^7.0.0", + "deepmerge": "^4.2.2", + "svgo": "^1.2.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/webpack": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/webpack/-/webpack-5.5.0.tgz", + "integrity": "sha512-DOBOK255wfQxguUta2INKkzPj6AIS6iafZYiYmHn6W3pHlycSRRlvWKCfLDG10fXfLWqE3DJHgRUOyJYmARa7g==", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/plugin-transform-react-constant-elements": "^7.12.1", + "@babel/preset-env": "^7.12.1", + "@babel/preset-react": "^7.12.5", + "@svgr/core": "^5.5.0", + "@svgr/plugin-jsx": "^5.5.0", + "@svgr/plugin-svgo": "^5.5.0", + "loader-utils": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@testing-library/dom": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.20.0.tgz", + "integrity": "sha512-d9ULIT+a4EXLX3UU8FBjauG9NnsZHkHztXoIcTsOKoOw030fyjheN9svkTULjJxtYag9DZz5Jz5qkWZDPxTFwA==", + "dependencies": { + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^5.0.1", + "aria-query": "^5.0.0", + "chalk": "^4.1.0", + "dom-accessibility-api": "^0.5.9", + "lz-string": "^1.4.4", + "pretty-format": "^27.0.2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@testing-library/dom/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@testing-library/dom/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@testing-library/dom/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@testing-library/dom/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/@testing-library/dom/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@testing-library/dom/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@testing-library/jest-dom": { + "version": "5.16.5", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.5.tgz", + "integrity": "sha512-N5ixQ2qKpi5OLYfwQmUb/5mSV9LneAcaUfp32pn4yCnpb8r/Yz0pXFPck21dIicKmi+ta5WRAknkZCfA8refMA==", + "dependencies": { + "@adobe/css-tools": "^4.0.1", + "@babel/runtime": "^7.9.2", + "@types/testing-library__jest-dom": "^5.9.1", + "aria-query": "^5.0.0", + "chalk": "^3.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.5.6", + "lodash": "^4.17.15", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=8", + "npm": ">=6", + "yarn": ">=1" + } + }, + "node_modules/@testing-library/jest-dom/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@testing-library/jest-dom/node_modules/chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@testing-library/jest-dom/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@testing-library/jest-dom/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/@testing-library/jest-dom/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@testing-library/jest-dom/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@testing-library/react": { + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-13.4.0.tgz", + "integrity": "sha512-sXOGON+WNTh3MLE9rve97ftaZukN3oNf2KjDy7YTx6hcTO2uuLHuCGynMDhFwGw/jYf4OJ2Qk0i4i79qMNNkyw==", + "dependencies": { + "@babel/runtime": "^7.12.5", + "@testing-library/dom": "^8.5.0", + "@types/react-dom": "^18.0.0" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0" + } + }, + "node_modules/@testing-library/user-event": { + "version": "13.5.0", + "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-13.5.0.tgz", + "integrity": "sha512-5Kwtbo3Y/NowpkbRuSepbyMFkZmHgD+vPzYB/RJ4oxt5Gj/avFFBYjhw27cqSVPVw/3a67NK1PbiIr9k4Gwmdg==", + "dependencies": { + "@babel/runtime": "^7.12.5" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + }, + "peerDependencies": { + "@testing-library/dom": ">=7.21.4" + } + }, + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/@trysound/sax": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", + "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@types/aria-query": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.1.tgz", + "integrity": "sha512-XTIieEY+gvJ39ChLcB4If5zHtPxt3Syj5rgZR+e1ctpmK8NjPf0zFqsz4JpLJT0xla9GFDKjy8Cpu331nrmE1Q==" + }, + "node_modules/@types/babel__core": { + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", + "integrity": "sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", + "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", + "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.0.tgz", + "integrity": "sha512-TBOjqAGf0hmaqRwpii5LLkJLg7c6OMm4nHLmpsUxwk9bBHtoTC6dAHdVWdGv4TBxj2CZOZY8Xfq8WmfoVi7n4Q==", + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/body-parser": { + "version": "1.19.2", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", + "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/bonjour": { + "version": "3.5.10", + "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.10.tgz", + "integrity": "sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/connect": { + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", + "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/connect-history-api-fallback": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz", + "integrity": "sha512-4x5FkPpLipqwthjPsF7ZRbOv3uoLUFkTA9G9v583qi4pACvq0uTELrB8OLUzPWUI4IJIyvM85vzkV1nyiI2Lig==", + "dependencies": { + "@types/express-serve-static-core": "*", + "@types/node": "*" + } + }, + "node_modules/@types/eslint": { + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.0.tgz", + "integrity": "sha512-nbq2mvc/tBrK9zQQuItvjJl++GTN5j06DaPtp3hZCpngmG6Q3xoyEmd0TwZI0gAy/G1X0zhGBbr2imsGFdFV0g==", + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", + "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==" + }, + "node_modules/@types/express": { + "version": "4.17.17", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", + "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "4.17.35", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz", + "integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==", + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", + "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/html-minifier-terser": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", + "integrity": "sha512-oh/6byDPnL1zeNXFrDXFLyZjkr1MsBG667IM792caf1L2UPOOMf65NFzjUH/ltyfwjAGfs1rsX1eftK0jC/KIg==" + }, + "node_modules/@types/http-proxy": { + "version": "1.17.11", + "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.11.tgz", + "integrity": "sha512-HC8G7c1WmaF2ekqpnFq626xd3Zz0uvaqFmBJNRZCGEZCXkvSdJoNFn/8Ygbd9fKNQj8UzLdCETaI0UWPAjK7IA==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==" + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.1", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.1.tgz", + "integrity": "sha512-tEuVcHrpaixS36w7hpsfLBLpjtMRJUE09/MHXn923LOVojDwyC14cWcfc0rDs0VEfUyYmt/+iX1kxxp+gZMcaQ==", + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/jest/node_modules/@jest/schemas": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.4.3.tgz", + "integrity": "sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg==", + "dependencies": { + "@sinclair/typebox": "^0.25.16" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/jest/node_modules/@jest/types": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.5.0.tgz", + "integrity": "sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==", + "dependencies": { + "@jest/schemas": "^29.4.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/jest/node_modules/@sinclair/typebox": { + "version": "0.25.24", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.24.tgz", + "integrity": "sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==" + }, + "node_modules/@types/jest/node_modules/@types/yargs": { + "version": "17.0.24", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", + "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/jest/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@types/jest/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@types/jest/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@types/jest/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/@types/jest/node_modules/diff-sequences": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", + "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/jest/node_modules/expect": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.5.0.tgz", + "integrity": "sha512-yM7xqUrCO2JdpFo4XpM82t+PJBFybdqoQuJLDGeDX2ij8NZzqRHyu3Hp188/JX7SWqud+7t4MUdvcgGBICMHZg==", + "dependencies": { + "@jest/expect-utils": "^29.5.0", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-util": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/jest/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@types/jest/node_modules/jest-diff": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.5.0.tgz", + "integrity": "sha512-LtxijLLZBduXnHSniy0WMdaHjmQnt3g5sa16W4p0HqukYTTsyTW3GD1q41TyGl5YFXj/5B2U6dlh5FM1LIMgxw==", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/jest/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/jest/node_modules/jest-matcher-utils": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.5.0.tgz", + "integrity": "sha512-lecRtgm/rjIK0CQ7LPQwzCs2VwW6WAahA55YBuI+xqmhm7LAaxokSB8C97yJeYyT+HvQkH741StzpU41wohhWw==", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.5.0", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/jest/node_modules/jest-message-util": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.5.0.tgz", + "integrity": "sha512-Kijeg9Dag6CKtIDA7O21zNTACqD5MD/8HfIV8pdD94vFyFuer52SigdC3IQMhab3vACxXMiFk+yMHNdbqtyTGA==", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.5.0", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.5.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/jest/node_modules/jest-util": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.5.0.tgz", + "integrity": "sha512-RYMgG/MTadOr5t8KdhejfvUU82MxsCu5MF6KuDUHl+NuwzUt+Sm6jJWxTJVrDR1j5M/gJVCPKQEpWXY+yIQ6lQ==", + "dependencies": { + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/jest/node_modules/pretty-format": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", + "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", + "dependencies": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@types/jest/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@types/jest/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + }, + "node_modules/@types/jest/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.12", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", + "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==" + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==" + }, + "node_modules/@types/mime": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", + "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==" + }, + "node_modules/@types/node": { + "version": "20.2.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz", + "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==" + }, + "node_modules/@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" + }, + "node_modules/@types/prettier": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.2.tgz", + "integrity": "sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==" + }, + "node_modules/@types/prop-types": { + "version": "15.7.5", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", + "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==" + }, + "node_modules/@types/q": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.5.tgz", + "integrity": "sha512-L28j2FcJfSZOnL1WBjDYp2vUHCeIFlyYI/53EwD/rKUBQ7MtUUfbQWiyKJGpcnv4/WgrhWsFKrcPstcAt/J0tQ==" + }, + "node_modules/@types/qs": { + "version": "6.9.7", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", + "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==" + }, + "node_modules/@types/range-parser": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", + "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" + }, + "node_modules/@types/react": { + "version": "18.2.7", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.7.tgz", + "integrity": "sha512-ojrXpSH2XFCmHm7Jy3q44nXDyN54+EYKP2lBhJ2bqfyPj6cIUW/FZW/Csdia34NQgq7KYcAlHi5184m4X88+yw==", + "dependencies": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.2.4", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.4.tgz", + "integrity": "sha512-G2mHoTMTL4yoydITgOGwWdWMVd8sNgyEP85xVmMKAPUBwQWm9wBPQUmvbeF4V3WBY1P7mmL4BkjQ0SqUpf1snw==", + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/resolve": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", + "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==" + }, + "node_modules/@types/scheduler": { + "version": "0.16.3", + "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz", + "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==" + }, + "node_modules/@types/semver": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz", + "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==" + }, + "node_modules/@types/send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz", + "integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==", + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "node_modules/@types/serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==", + "dependencies": { + "@types/express": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", + "integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==", + "dependencies": { + "@types/mime": "*", + "@types/node": "*" + } + }, + "node_modules/@types/sockjs": { + "version": "0.3.33", + "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz", + "integrity": "sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", + "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==" + }, + "node_modules/@types/testing-library__jest-dom": { + "version": "5.14.6", + "resolved": "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.6.tgz", + "integrity": "sha512-FkHXCb+ikSoUP4Y4rOslzTdX5sqYwMxfefKh1GmZ8ce1GOkEHntSp6b5cGadmNfp5e4BMEWOMx+WSKd5/MqlDA==", + "dependencies": { + "@types/jest": "*" + } + }, + "node_modules/@types/trusted-types": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.3.tgz", + "integrity": "sha512-NfQ4gyz38SL8sDNrSixxU2Os1a5xcdFxipAFxYEuLUlvU2uDwS4NUpsImcf1//SlWItCVMMLiylsxbmNMToV/g==" + }, + "node_modules/@types/ws": { + "version": "8.5.4", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", + "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/yargs": { + "version": "16.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", + "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.7.tgz", + "integrity": "sha512-BL+jYxUFIbuYwy+4fF86k5vdT9lT0CNJ6HtwrIvGh0PhH8s0yy5rjaKH2fDCrz5ITHy07WCzVGNvAmjJh4IJFA==", + "dependencies": { + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.59.7", + "@typescript-eslint/type-utils": "5.59.7", + "@typescript-eslint/utils": "5.59.7", + "debug": "^4.3.4", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/experimental-utils": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.59.7.tgz", + "integrity": "sha512-jqM0Cjfvta/sBlY1MxdXYv853/dJUC2wmUWnKoG2srwp0njNGQ6Zu/XLWoRFiLvocQbzBbpHkPFwKgC2UqyovA==", + "dependencies": { + "@typescript-eslint/utils": "5.59.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.7.tgz", + "integrity": "sha512-VhpsIEuq/8i5SF+mPg9jSdIwgMBBp0z9XqjiEay+81PYLJuroN+ET1hM5IhkiYMJd9MkTz8iJLt7aaGAgzWUbQ==", + "dependencies": { + "@typescript-eslint/scope-manager": "5.59.7", + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/typescript-estree": "5.59.7", + "debug": "^4.3.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.7.tgz", + "integrity": "sha512-FL6hkYWK9zBGdxT2wWEd2W8ocXMu3K94i3gvMrjXpx+koFYdYV7KprKfirpgY34vTGzEPPuKoERpP8kD5h7vZQ==", + "dependencies": { + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/visitor-keys": "5.59.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.7.tgz", + "integrity": "sha512-ozuz/GILuYG7osdY5O5yg0QxXUAEoI4Go3Do5xeu+ERH9PorHBPSdvD3Tjp2NN2bNLh1NJQSsQu2TPu/Ly+HaQ==", + "dependencies": { + "@typescript-eslint/typescript-estree": "5.59.7", + "@typescript-eslint/utils": "5.59.7", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.7.tgz", + "integrity": "sha512-UnVS2MRRg6p7xOSATscWkKjlf/NDKuqo5TdbWck6rIRZbmKpVNTLALzNvcjIfHBE7736kZOFc/4Z3VcZwuOM/A==", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.7.tgz", + "integrity": "sha512-4A1NtZ1I3wMN2UGDkU9HMBL+TIQfbrh4uS0WDMMpf3xMRursDbqEf1ahh6vAAe3mObt8k3ZATnezwG4pdtWuUQ==", + "dependencies": { + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/visitor-keys": "5.59.7", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.7.tgz", + "integrity": "sha512-yCX9WpdQKaLufz5luG4aJbOpdXf/fjwGMcLFXZVPUz3QqLirG5QcwwnIHNf8cjLjxK4qtzTO8udUtMQSAToQnQ==", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.59.7", + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/typescript-estree": "5.59.7", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.7.tgz", + "integrity": "sha512-tyN+X2jvMslUszIiYbF0ZleP+RqQsFVpGrKI6e0Eet1w8WmhsAtmzaqm8oM8WJQ1ysLwhnsK/4hYHJjOgJVfQQ==", + "dependencies": { + "@typescript-eslint/types": "5.59.7", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", + "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==" + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==" + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", + "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==" + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==" + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", + "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", + "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", + "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==" + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", + "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-opt": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6", + "@webassemblyjs/wast-printer": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", + "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", + "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", + "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", + "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" + }, + "node_modules/abab": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", + "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==" + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-globals": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", + "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", + "dependencies": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" + } + }, + "node_modules/acorn-globals/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/address": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/address/-/address-1.2.2.tgz", + "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/adjust-sourcemap-loader": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz", + "integrity": "sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A==", + "dependencies": { + "loader-utils": "^2.0.0", + "regex-parser": "^2.2.11" + }, + "engines": { + "node": ">=8.9" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-html-community": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", + "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==", + "engines": [ + "node >= 0.8.0" + ], + "bin": { + "ansi-html": "bin/ansi-html" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==" + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/aria-query": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", + "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", + "dependencies": { + "deep-equal": "^2.0.5" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-flatten": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", + "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==" + }, + "node_modules/array-includes": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", + "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", + "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", + "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.reduce": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/array.prototype.reduce/-/array.prototype.reduce-1.0.5.tgz", + "integrity": "sha512-kDdugMl7id9COE8R7MHF5jWk7Dqt/fs4Pv+JXoICnYwqpjjjbUurz6w5fT5IG6brLdJhv6/VoHB0H7oyIBXd+Q==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-array-method-boxes-properly": "^1.0.0", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.tosorted": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", + "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.1.3" + } + }, + "node_modules/asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" + }, + "node_modules/ast-types-flow": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", + "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==" + }, + "node_modules/async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/autoprefixer": { + "version": "10.4.14", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz", + "integrity": "sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + } + ], + "dependencies": { + "browserslist": "^4.21.5", + "caniuse-lite": "^1.0.30001464", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/axe-core": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", + "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==", + "engines": { + "node": ">=4" + } + }, + "node_modules/axobject-query": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz", + "integrity": "sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==", + "dependencies": { + "deep-equal": "^2.0.5" + } + }, + "node_modules/babel-jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", + "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", + "dependencies": { + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-jest/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/babel-jest/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/babel-jest/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/babel-jest/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/babel-jest/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-jest/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-loader": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.3.0.tgz", + "integrity": "sha512-H8SvsMF+m9t15HNLMipppzkC+Y2Yq+v3SonZyU70RBL/h1gxPkH08Ot8pEE9Z4Kd+czyWJClmFS8qzIP9OZ04Q==", + "dependencies": { + "find-cache-dir": "^3.3.1", + "loader-utils": "^2.0.0", + "make-dir": "^3.1.0", + "schema-utils": "^2.6.5" + }, + "engines": { + "node": ">= 8.9" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "webpack": ">=2" + } + }, + "node_modules/babel-loader/node_modules/schema-utils": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", + "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", + "dependencies": { + "@types/json-schema": "^7.0.5", + "ajv": "^6.12.4", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", + "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/babel-plugin-macros": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", + "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==", + "dependencies": { + "@babel/runtime": "^7.12.5", + "cosmiconfig": "^7.0.0", + "resolve": "^1.19.0" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + } + }, + "node_modules/babel-plugin-named-asset-import": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/babel-plugin-named-asset-import/-/babel-plugin-named-asset-import-0.3.8.tgz", + "integrity": "sha512-WXiAc++qo7XcJ1ZnTYGtLxmBCVbddAml3CEXgWaBzNzLNoxtQ8AiGEFDMOhot9XjTCQbvP5E77Fj9Gk924f00Q==", + "peerDependencies": { + "@babel/core": "^7.1.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.3.tgz", + "integrity": "sha512-bM3gHc337Dta490gg+/AseNB9L4YLHxq1nGKZZSHbhXv4aTYU2MD2cjza1Ru4S6975YLTaL1K8uJf6ukJhhmtw==", + "dependencies": { + "@babel/compat-data": "^7.17.7", + "@babel/helper-define-polyfill-provider": "^0.4.0", + "semver": "^6.1.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.1.tgz", + "integrity": "sha512-ikFrZITKg1xH6pLND8zT14UPgjKHiGLqex7rGEZCH2EvhsneJaJPemmpQaIZV5AL03II+lXylw3UmddDK8RU5Q==", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.4.0", + "core-js-compat": "^3.30.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.0.tgz", + "integrity": "sha512-hDJtKjMLVa7Z+LwnTCxoDLQj6wdc+B8dun7ayF2fYieI6OzfuvcLMB32ihJZ4UhCBwNYGl5bg/x/P9cMdnkc2g==", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.4.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-transform-react-remove-prop-types": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz", + "integrity": "sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA==" + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", + "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", + "dependencies": { + "babel-plugin-jest-hoist": "^27.5.1", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-react-app": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-react-app/-/babel-preset-react-app-10.0.1.tgz", + "integrity": "sha512-b0D9IZ1WhhCWkrTXyFuIIgqGzSkRIH5D5AmB0bXbzYAB1OBAwHcUeyWW2LorutLWF5btNo/N7r/cIdmvvKJlYg==", + "dependencies": { + "@babel/core": "^7.16.0", + "@babel/plugin-proposal-class-properties": "^7.16.0", + "@babel/plugin-proposal-decorators": "^7.16.4", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0", + "@babel/plugin-proposal-numeric-separator": "^7.16.0", + "@babel/plugin-proposal-optional-chaining": "^7.16.0", + "@babel/plugin-proposal-private-methods": "^7.16.0", + "@babel/plugin-transform-flow-strip-types": "^7.16.0", + "@babel/plugin-transform-react-display-name": "^7.16.0", + "@babel/plugin-transform-runtime": "^7.16.4", + "@babel/preset-env": "^7.16.4", + "@babel/preset-react": "^7.16.0", + "@babel/preset-typescript": "^7.16.0", + "@babel/runtime": "^7.16.3", + "babel-plugin-macros": "^3.1.0", + "babel-plugin-transform-react-remove-prop-types": "^0.4.24" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/batch": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", + "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==" + }, + "node_modules/bfj": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/bfj/-/bfj-7.0.2.tgz", + "integrity": "sha512-+e/UqUzwmzJamNF50tBV6tZPTORow7gQ96iFow+8b562OdMpEK0BcJEq2OSPEDmAbSMBQ7PKZ87ubFkgxpYWgw==", + "dependencies": { + "bluebird": "^3.5.5", + "check-types": "^11.1.1", + "hoopy": "^0.1.4", + "tryer": "^1.0.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "engines": { + "node": "*" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" + }, + "node_modules/body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/body-parser/node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/bonjour-service": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.1.1.tgz", + "integrity": "sha512-Z/5lQRMOG9k7W+FkeGTNjh7htqn/2LMnfOvBZ8pynNZCM9MwkQkI3zeI4oz09uWdcgmgHugVvBqxGg4VQJ5PCg==", + "dependencies": { + "array-flatten": "^2.1.2", + "dns-equal": "^1.0.0", + "fast-deep-equal": "^3.1.3", + "multicast-dns": "^7.2.5" + } + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browser-process-hrtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", + "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==" + }, + "node_modules/browserslist": { + "version": "4.21.5", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz", + "integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001449", + "electron-to-chromium": "^1.4.284", + "node-releases": "^2.0.8", + "update-browserslist-db": "^1.0.10" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + }, + "node_modules/builtin-modules": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", + "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/camel-case": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", + "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", + "dependencies": { + "pascal-case": "^3.1.2", + "tslib": "^2.0.3" + } + }, + "node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/caniuse-api": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", + "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", + "dependencies": { + "browserslist": "^4.0.0", + "caniuse-lite": "^1.0.0", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001489", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001489.tgz", + "integrity": "sha512-x1mgZEXK8jHIfAxm+xgdpHpk50IN3z3q3zP261/WS+uvePxW8izXuCu6AHz0lkuYTlATDehiZ/tNyYBdSQsOUQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/case-sensitive-paths-webpack-plugin": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.4.0.tgz", + "integrity": "sha512-roIFONhcxog0JSSWbvVAh3OocukmSgpqOH6YpMkCvav/ySIV3JKg4Dc8vYtQjYi/UxpNE36r/9v+VqTQqgkYmw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "engines": { + "node": ">=10" + } + }, + "node_modules/check-types": { + "version": "11.2.2", + "resolved": "https://registry.npmjs.org/check-types/-/check-types-11.2.2.tgz", + "integrity": "sha512-HBiYvXvn9Z70Z88XKjz3AEKd4HJhBXsa3j7xFnITAzoS8+q6eIGi8qDB8FKPBAjtuxjI/zFpwuiCb8oDtKOYrA==" + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "engines": { + "node": ">=6.0" + } + }, + "node_modules/ci-info": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", + "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", + "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==" + }, + "node_modules/clean-css": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.2.tgz", + "integrity": "sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==", + "dependencies": { + "source-map": "~0.6.0" + }, + "engines": { + "node": ">= 10.0" + } + }, + "node_modules/clean-css/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/coa": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/coa/-/coa-2.0.2.tgz", + "integrity": "sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA==", + "dependencies": { + "@types/q": "^1.5.1", + "chalk": "^2.4.1", + "q": "^1.1.2" + }, + "engines": { + "node": ">= 4.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", + "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==" + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/colord": { + "version": "2.9.3", + "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", + "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==" + }, + "node_modules/colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "engines": { + "node": ">= 12" + } + }, + "node_modules/common-path-prefix": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-3.0.0.tgz", + "integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==" + }, + "node_modules/common-tags": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", + "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==" + }, + "node_modules/compressible": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", + "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", + "dependencies": { + "mime-db": ">= 1.43.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/compression": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", + "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", + "dependencies": { + "accepts": "~1.3.5", + "bytes": "3.0.0", + "compressible": "~2.0.16", + "debug": "2.6.9", + "on-headers": "~1.0.2", + "safe-buffer": "5.1.2", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/compression/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/compression/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/compression/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/confusing-browser-globals": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==" + }, + "node_modules/connect-history-api-fallback": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz", + "integrity": "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" + }, + "node_modules/cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + }, + "node_modules/core-js": { + "version": "3.30.2", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.30.2.tgz", + "integrity": "sha512-uBJiDmwqsbJCWHAwjrx3cvjbMXP7xD72Dmsn5LOJpiRmE3WbBbN5rCqQ2Qh6Ek6/eOrjlWngEynBWo4VxerQhg==", + "hasInstallScript": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-js-compat": { + "version": "3.30.2", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.30.2.tgz", + "integrity": "sha512-nriW1nuJjUgvkEjIot1Spwakz52V9YkYHZAQG6A1eCgC8AA1p0zngrQEP9R0+V6hji5XilWKG1Bd0YRppmGimA==", + "dependencies": { + "browserslist": "^4.21.5" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-js-pure": { + "version": "3.30.2", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.30.2.tgz", + "integrity": "sha512-p/npFUJXXBkCCTIlEGBdghofn00jWG6ZOtdoIXSJmAu2QBvN0IqpZXWweOytcwE6cfx8ZvVUy1vw8zxhe4Y2vg==", + "hasInstallScript": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, + "node_modules/cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/css-blank-pseudo": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/css-blank-pseudo/-/css-blank-pseudo-3.0.3.tgz", + "integrity": "sha512-VS90XWtsHGqoM0t4KpH053c4ehxZ2E6HtGI7x68YFV0pTo/QmkV/YFA+NnlvK8guxZVNWGQhVNJGC39Q8XF4OQ==", + "dependencies": { + "postcss-selector-parser": "^6.0.9" + }, + "bin": { + "css-blank-pseudo": "dist/cli.cjs" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/css-declaration-sorter": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.0.tgz", + "integrity": "sha512-jDfsatwWMWN0MODAFuHszfjphEXfNw9JUAhmY4pLu3TyTU+ohUpsbVtbU+1MZn4a47D9kqh03i4eyOm+74+zew==", + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.0.9" + } + }, + "node_modules/css-has-pseudo": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/css-has-pseudo/-/css-has-pseudo-3.0.4.tgz", + "integrity": "sha512-Vse0xpR1K9MNlp2j5w1pgWIJtm1a8qS0JwS9goFYcImjlHEmywP9VUF05aGBXzGpDJF86QXk4L0ypBmwPhGArw==", + "dependencies": { + "postcss-selector-parser": "^6.0.9" + }, + "bin": { + "css-has-pseudo": "dist/cli.cjs" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/css-loader": { + "version": "6.7.4", + "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.7.4.tgz", + "integrity": "sha512-0Y5uHtK5BswfaGJ+jrO+4pPg1msFBc0pwPIE1VqfpmVn6YbDfYfXMj8rfd7nt+4goAhJueO+H/I40VWJfcP1mQ==", + "dependencies": { + "icss-utils": "^5.1.0", + "postcss": "^8.4.21", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.1", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "postcss-value-parser": "^4.2.0", + "semver": "^7.3.8" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/css-minimizer-webpack-plugin": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.4.1.tgz", + "integrity": "sha512-1u6D71zeIfgngN2XNRJefc/hY7Ybsxd74Jm4qngIXyUEk7fss3VUzuHxLAq/R8NAba4QU9OUSaMZlbpRc7bM4Q==", + "dependencies": { + "cssnano": "^5.0.6", + "jest-worker": "^27.0.2", + "postcss": "^8.3.5", + "schema-utils": "^4.0.0", + "serialize-javascript": "^6.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "@parcel/css": { + "optional": true + }, + "clean-css": { + "optional": true + }, + "csso": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/css-prefers-color-scheme": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/css-prefers-color-scheme/-/css-prefers-color-scheme-6.0.3.tgz", + "integrity": "sha512-4BqMbZksRkJQx2zAjrokiGMd07RqOa2IxIrrN10lyBe9xhn9DEvjUK79J6jkeiv9D9hQFXKb6g1jwU62jziJZA==", + "bin": { + "css-prefers-color-scheme": "dist/cli.cjs" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-select-base-adapter": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz", + "integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==" + }, + "node_modules/css-tree": { + "version": "1.0.0-alpha.37", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.37.tgz", + "integrity": "sha512-DMxWJg0rnz7UgxKT0Q1HU/L9BeJI0M6ksor0OgqOnF+aRCDWg/N2641HmVyU9KVIu0OVVWOb2IpC9A+BJRnejg==", + "dependencies": { + "mdn-data": "2.0.4", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/css-tree/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/css-what": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css.escape": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", + "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==" + }, + "node_modules/cssdb": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/cssdb/-/cssdb-7.6.0.tgz", + "integrity": "sha512-Nna7rph8V0jC6+JBY4Vk4ndErUmfJfV6NJCaZdurL0omggabiy+QB2HCQtu5c/ACLZ0I7REv7A4QyPIoYzZx0w==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + } + ] + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cssnano": { + "version": "5.1.15", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", + "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==", + "dependencies": { + "cssnano-preset-default": "^5.2.14", + "lilconfig": "^2.0.3", + "yaml": "^1.10.2" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/cssnano" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-preset-default": { + "version": "5.2.14", + "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz", + "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==", + "dependencies": { + "css-declaration-sorter": "^6.3.1", + "cssnano-utils": "^3.1.0", + "postcss-calc": "^8.2.3", + "postcss-colormin": "^5.3.1", + "postcss-convert-values": "^5.1.3", + "postcss-discard-comments": "^5.1.2", + "postcss-discard-duplicates": "^5.1.0", + "postcss-discard-empty": "^5.1.1", + "postcss-discard-overridden": "^5.1.0", + "postcss-merge-longhand": "^5.1.7", + "postcss-merge-rules": "^5.1.4", + "postcss-minify-font-values": "^5.1.0", + "postcss-minify-gradients": "^5.1.1", + "postcss-minify-params": "^5.1.4", + "postcss-minify-selectors": "^5.2.1", + "postcss-normalize-charset": "^5.1.0", + "postcss-normalize-display-values": "^5.1.0", + "postcss-normalize-positions": "^5.1.1", + "postcss-normalize-repeat-style": "^5.1.1", + "postcss-normalize-string": "^5.1.0", + "postcss-normalize-timing-functions": "^5.1.0", + "postcss-normalize-unicode": "^5.1.1", + "postcss-normalize-url": "^5.1.0", + "postcss-normalize-whitespace": "^5.1.1", + "postcss-ordered-values": "^5.1.3", + "postcss-reduce-initial": "^5.1.2", + "postcss-reduce-transforms": "^5.1.0", + "postcss-svgo": "^5.1.0", + "postcss-unique-selectors": "^5.1.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-utils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", + "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "dependencies": { + "css-tree": "^1.1.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/csso/node_modules/css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dependencies": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/csso/node_modules/mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" + }, + "node_modules/csso/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==" + }, + "node_modules/cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "dependencies": { + "cssom": "~0.3.6" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cssstyle/node_modules/cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" + }, + "node_modules/csstype": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", + "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" + }, + "node_modules/damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==" + }, + "node_modules/data-urls": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", + "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", + "dependencies": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decimal.js": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" + }, + "node_modules/dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==" + }, + "node_modules/deep-equal": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.1.tgz", + "integrity": "sha512-lKdkdV6EOGoVn65XaOsPdH4rMxTZOnmFyuIkMjM1i5HHCbfjC97dawgTAy0deYNfuqUqW+Q5VrVaQYtUpSd6yQ==", + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "es-get-iterator": "^1.1.3", + "get-intrinsic": "^1.2.0", + "is-arguments": "^1.1.1", + "is-array-buffer": "^3.0.2", + "is-date-object": "^1.0.5", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "isarray": "^2.0.5", + "object-is": "^1.1.5", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.0", + "side-channel": "^1.0.4", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/default-gateway": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", + "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", + "dependencies": { + "execa": "^5.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "engines": { + "node": ">=8" + } + }, + "node_modules/define-properties": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==" + }, + "node_modules/detect-port-alt": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/detect-port-alt/-/detect-port-alt-1.1.6.tgz", + "integrity": "sha512-5tQykt+LqfJFBEYaDITx7S7cR7mJ/zQmLXZ2qt5w04ainYZw6tBf9dBunMjVeVOdYVRUzUOE4HkY5J7+uttb5Q==", + "dependencies": { + "address": "^1.0.1", + "debug": "^2.6.0" + }, + "bin": { + "detect": "bin/detect-port", + "detect-port": "bin/detect-port" + }, + "engines": { + "node": ">= 4.2.1" + } + }, + "node_modules/detect-port-alt/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/detect-port-alt/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==" + }, + "node_modules/diff-sequences": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", + "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==" + }, + "node_modules/dns-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", + "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==" + }, + "node_modules/dns-packet": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.0.tgz", + "integrity": "sha512-rza3UH1LwdHh9qyPXp8lkwpjSNk/AMD3dPytUoRoqnypDUhY0xvbdmVhWOfxO68frEfV9BU8V12Ez7ZsHGZpCQ==", + "dependencies": { + "@leichtgewicht/ip-codec": "^2.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dom-accessibility-api": { + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", + "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==" + }, + "node_modules/dom-converter": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", + "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", + "dependencies": { + "utila": "~0.4" + } + }, + "node_modules/dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ] + }, + "node_modules/domexception": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", + "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", + "dependencies": { + "webidl-conversions": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/domexception/node_modules/webidl-conversions": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", + "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/dot-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", + "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/dotenv": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", + "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", + "engines": { + "node": ">=10" + } + }, + "node_modules/dotenv-expand": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", + "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==" + }, + "node_modules/duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "node_modules/ejs": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", + "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.411", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.411.tgz", + "integrity": "sha512-5VXLW4Qw89vM2WTICHua/y8v7fKGDRVa2VPOtBB9IpLvW316B+xd8yD1wTmLPY2ot/00P/qt87xdolj4aG/Lzg==" + }, + "node_modules/emittery": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", + "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" + }, + "node_modules/emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.14.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.14.1.tgz", + "integrity": "sha512-Vklwq2vDKtl0y/vtwjSesgJ5MYS7Etuk5txS8VdKL4AOS1aUlD96zqIfsOSLQsdv3xgMRbtkWM8eG9XDfKUPow==", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/error-stack-parser": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz", + "integrity": "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==", + "dependencies": { + "stackframe": "^1.3.4" + } + }, + "node_modules/es-abstract": { + "version": "1.21.2", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", + "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.2.0", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.4.3", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", + "string.prototype.trimend": "^1.0.6", + "string.prototype.trimstart": "^1.0.6", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-array-method-boxes-properly": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz", + "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==" + }, + "node_modules/es-get-iterator": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", + "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "is-arguments": "^1.1.1", + "is-map": "^2.0.2", + "is-set": "^2.0.2", + "is-string": "^1.0.7", + "isarray": "^2.0.5", + "stop-iteration-iterator": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-module-lexer": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz", + "integrity": "sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==" + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "dependencies": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", + "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "dependencies": { + "has": "^1.0.3" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/escodegen": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", + "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/escodegen/node_modules/levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "dependencies": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/escodegen/node_modules/optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dependencies": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/escodegen/node_modules/prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/escodegen/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/escodegen/node_modules/type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "dependencies": { + "prelude-ls": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/eslint": { + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.41.0.tgz", + "integrity": "sha512-WQDQpzGBOP5IrXPo4Hc0814r4/v2rrIsB0rhT7jtunIalgg6gYXWhRMOejVO8yH21T/FGaxjmFjBMNqcIlmH1Q==", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.3", + "@eslint/js": "8.41.0", + "@humanwhocodes/config-array": "^0.11.8", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.5.2", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-react-app": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/eslint-config-react-app/-/eslint-config-react-app-7.0.1.tgz", + "integrity": "sha512-K6rNzvkIeHaTd8m/QEh1Zko0KI7BACWkkneSs6s9cKZC/J27X3eZR6Upt1jkmZ/4FK+XUOPPxMEN7+lbUXfSlA==", + "dependencies": { + "@babel/core": "^7.16.0", + "@babel/eslint-parser": "^7.16.3", + "@rushstack/eslint-patch": "^1.1.0", + "@typescript-eslint/eslint-plugin": "^5.5.0", + "@typescript-eslint/parser": "^5.5.0", + "babel-preset-react-app": "^10.0.1", + "confusing-browser-globals": "^1.0.11", + "eslint-plugin-flowtype": "^8.0.3", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-jest": "^25.3.0", + "eslint-plugin-jsx-a11y": "^6.5.1", + "eslint-plugin-react": "^7.27.1", + "eslint-plugin-react-hooks": "^4.3.0", + "eslint-plugin-testing-library": "^5.0.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "eslint": "^8.0.0" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", + "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.11.0", + "resolve": "^1.22.1" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-flowtype": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-8.0.3.tgz", + "integrity": "sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==", + "dependencies": { + "lodash": "^4.17.21", + "string-natural-compare": "^3.0.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "@babel/plugin-syntax-flow": "^7.14.5", + "@babel/plugin-transform-react-jsx": "^7.14.9", + "eslint": "^8.1.0" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.27.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", + "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.7.4", + "has": "^1.0.3", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.values": "^1.1.6", + "resolve": "^1.22.1", + "semver": "^6.3.0", + "tsconfig-paths": "^3.14.1" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-jest": { + "version": "25.7.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-25.7.0.tgz", + "integrity": "sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==", + "dependencies": { + "@typescript-eslint/experimental-utils": "^5.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + }, + "peerDependencies": { + "@typescript-eslint/eslint-plugin": "^4.0.0 || ^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "@typescript-eslint/eslint-plugin": { + "optional": true + }, + "jest": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-jsx-a11y": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", + "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", + "dependencies": { + "@babel/runtime": "^7.20.7", + "aria-query": "^5.1.3", + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "ast-types-flow": "^0.0.7", + "axe-core": "^4.6.2", + "axobject-query": "^3.1.1", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "has": "^1.0.3", + "jsx-ast-utils": "^3.3.3", + "language-tags": "=1.0.5", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=4.0" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-jsx-a11y/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-react": { + "version": "7.32.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz", + "integrity": "sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==", + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "array.prototype.tosorted": "^1.1.1", + "doctrine": "^2.1.0", + "estraverse": "^5.3.0", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "object.hasown": "^1.1.2", + "object.values": "^1.1.6", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.4", + "semver": "^6.3.0", + "string.prototype.matchall": "^4.0.8" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", + "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==", + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/eslint-plugin-react/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-react/node_modules/resolve": { + "version": "2.0.0-next.4", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", + "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/eslint-plugin-react/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-testing-library": { + "version": "5.11.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-testing-library/-/eslint-plugin-testing-library-5.11.0.tgz", + "integrity": "sha512-ELY7Gefo+61OfXKlQeXNIDVVLPcvKTeiQOoMZG9TeuWa7Ln4dUNRv8JdRWBQI9Mbb427XGlVB1aa1QPZxBJM8Q==", + "dependencies": { + "@typescript-eslint/utils": "^5.58.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0", + "npm": ">=6" + }, + "peerDependencies": { + "eslint": "^7.5.0 || ^8.0.0" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", + "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-webpack-plugin": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/eslint-webpack-plugin/-/eslint-webpack-plugin-3.2.0.tgz", + "integrity": "sha512-avrKcGncpPbPSUHX6B3stNGzkKFto3eL+DKM4+VyMrVnhPc3vRczVlCq3uhuFOdRvDHTVXuzwk1ZKUrqDQHQ9w==", + "dependencies": { + "@types/eslint": "^7.29.0 || ^8.4.1", + "jest-worker": "^28.0.2", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0", + "webpack": "^5.0.0" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/jest-worker": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-28.1.3.tgz", + "integrity": "sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/eslint-webpack-plugin/node_modules/schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/eslint/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/espree": { + "version": "9.5.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", + "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", + "dependencies": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", + "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==" + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", + "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", + "dependencies": { + "@jest/types": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/express": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/express/node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "node_modules/fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/faye-websocket": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", + "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", + "dependencies": { + "websocket-driver": ">=0.5.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/file-loader": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", + "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", + "dependencies": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/filesize": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz", + "integrity": "sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "dependencies": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==" + }, + "node_modules/follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/fork-ts-checker-webpack-plugin": { + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.3.tgz", + "integrity": "sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==", + "dependencies": { + "@babel/code-frame": "^7.8.3", + "@types/json-schema": "^7.0.5", + "chalk": "^4.1.0", + "chokidar": "^3.4.2", + "cosmiconfig": "^6.0.0", + "deepmerge": "^4.2.2", + "fs-extra": "^9.0.0", + "glob": "^7.1.6", + "memfs": "^3.1.2", + "minimatch": "^3.0.4", + "schema-utils": "2.7.0", + "semver": "^7.3.2", + "tapable": "^1.0.0" + }, + "engines": { + "node": ">=10", + "yarn": ">=1.0.0" + }, + "peerDependencies": { + "eslint": ">= 6", + "typescript": ">= 2.7", + "vue-template-compiler": "*", + "webpack": ">= 4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + }, + "vue-template-compiler": { + "optional": true + } + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/cosmiconfig": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", + "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.1.0", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.7.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/schema-utils": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz", + "integrity": "sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==", + "dependencies": { + "@types/json-schema": "^7.0.4", + "ajv": "^6.12.2", + "ajv-keywords": "^3.4.1" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/tapable": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", + "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fraction.js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", + "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==", + "engines": { + "node": "*" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/infusion" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/fs-monkey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz", + "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==" + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "node_modules/function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-own-enumerable-property-symbols": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", + "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==" + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" + }, + "node_modules/global-modules": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", + "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", + "dependencies": { + "global-prefix": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/global-prefix": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", + "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", + "dependencies": { + "ini": "^1.3.5", + "kind-of": "^6.0.2", + "which": "^1.3.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/global-prefix/node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + }, + "node_modules/grapheme-splitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", + "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==" + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==" + }, + "node_modules/gzip-size": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", + "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", + "dependencies": { + "duplexer": "^0.1.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/handle-thing": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", + "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==" + }, + "node_modules/harmony-reflect": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/harmony-reflect/-/harmony-reflect-1.6.2.tgz", + "integrity": "sha512-HIp/n38R9kQjDEziXyDTuW3vvoxxyxjxFzXLrBr18uB47GnSt+G9D29fqrpM5ZkspMcPICud3XsBJQ4Y2URg8g==" + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "bin": { + "he": "bin/he" + } + }, + "node_modules/hoopy": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz", + "integrity": "sha512-HRcs+2mr52W0K+x8RzcLzuPPmVIKMSv97RGHy0Ea9y/mpcaK+xTrjICA04KAHi4GRzxliNqNJEFYWHghy3rSfQ==", + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/hpack.js": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", + "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==", + "dependencies": { + "inherits": "^2.0.1", + "obuf": "^1.0.0", + "readable-stream": "^2.0.1", + "wbuf": "^1.1.0" + } + }, + "node_modules/hpack.js/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "node_modules/hpack.js/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/hpack.js/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/hpack.js/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/html-encoding-sniffer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", + "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", + "dependencies": { + "whatwg-encoding": "^1.0.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/html-entities": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.3.tgz", + "integrity": "sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA==" + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==" + }, + "node_modules/html-minifier-terser": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", + "integrity": "sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==", + "dependencies": { + "camel-case": "^4.1.2", + "clean-css": "^5.2.2", + "commander": "^8.3.0", + "he": "^1.2.0", + "param-case": "^3.0.4", + "relateurl": "^0.2.7", + "terser": "^5.10.0" + }, + "bin": { + "html-minifier-terser": "cli.js" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/html-webpack-plugin": { + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.5.1.tgz", + "integrity": "sha512-cTUzZ1+NqjGEKjmVgZKLMdiFg3m9MdRXkZW2OEe69WYVi5ONLMmlnSZdXzGGMOq0C8jGDrL6EWyEDDUioHO/pA==", + "dependencies": { + "@types/html-minifier-terser": "^6.0.0", + "html-minifier-terser": "^6.0.2", + "lodash": "^4.17.21", + "pretty-error": "^4.0.0", + "tapable": "^2.0.0" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/html-webpack-plugin" + }, + "peerDependencies": { + "webpack": "^5.20.0" + } + }, + "node_modules/htmlparser2": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", + "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.0.0", + "domutils": "^2.5.2", + "entities": "^2.0.0" + } + }, + "node_modules/http-deceiver": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", + "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==" + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/http-parser-js": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", + "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==" + }, + "node_modules/http-proxy": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", + "dependencies": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/http-proxy-middleware": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", + "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", + "dependencies": { + "@types/http-proxy": "^1.17.8", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.1", + "is-plain-obj": "^3.0.0", + "micromatch": "^4.0.2" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "@types/express": "^4.17.13" + }, + "peerDependenciesMeta": { + "@types/express": { + "optional": true + } + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/icss-utils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", + "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/idb": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz", + "integrity": "sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ==" + }, + "node_modules/identity-obj-proxy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/identity-obj-proxy/-/identity-obj-proxy-3.0.0.tgz", + "integrity": "sha512-00n6YnVHKrinT9t0d9+5yZC6UBNJANpYEQvL2LlX6Ab9lnmxzIRcEmTPuyGScvl1+jKuCICX1Z0Ab1pPKKdikA==", + "dependencies": { + "harmony-reflect": "^1.4.6" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/immer": { + "version": "9.0.21", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", + "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "engines": { + "node": ">=4" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" + }, + "node_modules/internal-slot": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "dependencies": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ipaddr.js": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz", + "integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==", + "engines": { + "node": ">= 10" + } + }, + "node_modules/is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", + "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", + "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", + "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==" + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-obj": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", + "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==" + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", + "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-root": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-root/-/is-root-2.1.0.tgz", + "integrity": "sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/is-set": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", + "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" + }, + "node_modules/is-weakmap": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", + "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", + "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jake": { + "version": "10.8.6", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.6.tgz", + "integrity": "sha512-G43Ub9IYEFfu72sua6rzooi8V8Gz2lkfk48rW20vEWCGizeaEPlKB1Kh8JIA84yQbiAEfqlPmSpGgCKKxH3rDA==", + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jake/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jake/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jake/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jake/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jake/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jake/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", + "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", + "dependencies": { + "@jest/core": "^27.5.1", + "import-local": "^3.0.2", + "jest-cli": "^27.5.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", + "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", + "dependencies": { + "@jest/types": "^27.5.1", + "execa": "^5.0.0", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-circus": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", + "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^0.7.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-circus/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-circus/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-circus/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-circus/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", + "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", + "dependencies": { + "@jest/core": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "prompts": "^2.0.1", + "yargs": "^16.2.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-cli/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-cli/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-cli/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-config": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", + "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", + "dependencies": { + "@babel/core": "^7.8.0", + "@jest/test-sequencer": "^27.5.1", + "@jest/types": "^27.5.1", + "babel-jest": "^27.5.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.9", + "jest-circus": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-jasmine2": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-config/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-config/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-config/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-config/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", + "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-diff/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-diff/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-diff/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-docblock": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", + "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-each": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", + "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", + "dependencies": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-each/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-each/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-each/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-each/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-environment-jsdom": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", + "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1", + "jsdom": "^16.6.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", + "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", + "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", + "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^27.5.1", + "jest-serializer": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "micromatch": "^4.0.4", + "walker": "^1.0.7" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-jasmine2": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", + "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-jasmine2/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-jasmine2/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-jasmine2/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-jasmine2/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-leak-detector": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", + "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", + "dependencies": { + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", + "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-matcher-utils/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-matcher-utils/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", + "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-message-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-message-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-message-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-mock": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", + "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", + "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", + "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", + "dependencies": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "resolve": "^1.20.0", + "resolve.exports": "^1.1.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", + "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", + "dependencies": { + "@jest/types": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-snapshot": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-resolve/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-resolve/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-resolve/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", + "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-leak-detector": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "source-map-support": "^0.5.6", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runner/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runner/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-runner/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", + "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/globals": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "execa": "^5.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runtime/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runtime/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-runtime/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-serializer": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", + "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", + "dependencies": { + "@types/node": "*", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", + "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", + "dependencies": { + "@babel/core": "^7.7.2", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.0.0", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^27.5.1", + "semver": "^7.3.2" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-snapshot/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", + "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", + "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", + "dependencies": { + "@jest/types": "^27.5.1", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "leven": "^3.1.0", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-validate/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-validate/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-validate/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watch-typeahead": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jest-watch-typeahead/-/jest-watch-typeahead-1.1.0.tgz", + "integrity": "sha512-Va5nLSJTN7YFtC2jd+7wsoe1pNe5K4ShLux/E5iHEwlB9AxaxmggY7to9KUqKojhaJw3aXqt5WAb4jGPOolpEw==", + "dependencies": { + "ansi-escapes": "^4.3.1", + "chalk": "^4.0.0", + "jest-regex-util": "^28.0.0", + "jest-watcher": "^28.0.0", + "slash": "^4.0.0", + "string-length": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "jest": "^27.0.0 || ^28.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/@jest/console": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-28.1.3.tgz", + "integrity": "sha512-QPAkP5EwKdK/bxIr6C1I4Vs0rm2nHiANzj/Z5X2JQkrZo6IqvC4ldZ9K95tF0HdidhA8Bo6egxSzUFPYKcEXLw==", + "dependencies": { + "@jest/types": "^28.1.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^28.1.3", + "jest-util": "^28.1.3", + "slash": "^3.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/@jest/console/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watch-typeahead/node_modules/@jest/test-result": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-28.1.3.tgz", + "integrity": "sha512-kZAkxnSE+FqE8YjW8gNuoVkkC9I7S1qmenl8sGcDOLropASP+BkcGKwhXoyqQuGOGeYY0y/ixjrd/iERpEXHNg==", + "dependencies": { + "@jest/console": "^28.1.3", + "@jest/types": "^28.1.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/@jest/types": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-28.1.3.tgz", + "integrity": "sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ==", + "dependencies": { + "@jest/schemas": "^28.1.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/@types/yargs": { + "version": "17.0.24", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", + "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-watch-typeahead/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-watch-typeahead/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-watch-typeahead/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-watch-typeahead/node_modules/emittery": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.10.2.tgz", + "integrity": "sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/jest-watch-typeahead/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-message-util": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-28.1.3.tgz", + "integrity": "sha512-PFdn9Iewbt575zKPf1286Ht9EPoJmYT7P0kY+RibeYZ2XtOr53pDLEFoTWXbd1h4JiGiWpTBC84fc8xMXQMb7g==", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^28.1.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^28.1.3", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-message-util/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-regex-util": { + "version": "28.0.2", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-28.0.2.tgz", + "integrity": "sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw==", + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-util": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-28.1.3.tgz", + "integrity": "sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ==", + "dependencies": { + "@jest/types": "^28.1.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-watcher": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-28.1.3.tgz", + "integrity": "sha512-t4qcqj9hze+jviFPUN3YAtAEeFnr/azITXQEMARf5cMwKY2SMBRnCQTXLixTl20OR6mLh9KLMrgVJgJISym+1g==", + "dependencies": { + "@jest/test-result": "^28.1.3", + "@jest/types": "^28.1.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.10.2", + "jest-util": "^28.1.3", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-watcher/node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-watch-typeahead/node_modules/jest-watcher/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watch-typeahead/node_modules/pretty-format": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-28.1.3.tgz", + "integrity": "sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q==", + "dependencies": { + "@jest/schemas": "^28.1.3", + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/jest-watch-typeahead/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-watch-typeahead/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + }, + "node_modules/jest-watch-typeahead/node_modules/slash": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", + "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watch-typeahead/node_modules/string-length": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-5.0.1.tgz", + "integrity": "sha512-9Ep08KAMUn0OadnVaBuRdE2l615CQ508kr0XMadjClfYpdCyvrbFp6Taebo8yyxokQ4viUd/xPPUA4FGgUa0ow==", + "dependencies": { + "char-regex": "^2.0.0", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watch-typeahead/node_modules/string-length/node_modules/char-regex": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-2.0.1.tgz", + "integrity": "sha512-oSvEeo6ZUD7NepqAat3RqoucZ5SeqLJgOvVIwkafu6IP3V0pO38s/ypdVUmDDK6qIIHNlYHJAKX9E7R7HoKElw==", + "engines": { + "node": ">=12.20" + } + }, + "node_modules/jest-watch-typeahead/node_modules/strip-ansi": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz", + "integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/jest-watch-typeahead/node_modules/strip-ansi/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/jest-watch-typeahead/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", + "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", + "dependencies": { + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^27.5.1", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-watcher/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-watcher/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/jest-watcher/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/jiti": { + "version": "1.18.2", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.18.2.tgz", + "integrity": "sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==", + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsdom": { + "version": "16.7.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", + "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", + "dependencies": { + "abab": "^2.0.5", + "acorn": "^8.2.4", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.1", + "domexception": "^2.0.1", + "escodegen": "^2.0.0", + "form-data": "^3.0.0", + "html-encoding-sniffer": "^2.0.1", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.0", + "parse5": "6.0.1", + "saxes": "^5.0.1", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.0.0", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.5.0", + "ws": "^7.4.6", + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" + }, + "node_modules/json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsonpointer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", + "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jsx-ast-utils": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", + "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", + "dependencies": { + "array-includes": "^3.1.5", + "object.assign": "^4.1.3" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "engines": { + "node": ">=6" + } + }, + "node_modules/klona": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", + "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/language-subtag-registry": { + "version": "0.3.22", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", + "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==" + }, + "node_modules/language-tags": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", + "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", + "dependencies": { + "language-subtag-registry": "~0.3.2" + } + }, + "node_modules/launch-editor": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz", + "integrity": "sha512-JpDCcQnyAAzZZaZ7vEiSqL690w7dAEyLao+KC96zBplnYbJS7TYNjvM3M7y3dGz+v7aIsJk3hllWuc0kWAjyRQ==", + "dependencies": { + "picocolors": "^1.0.0", + "shell-quote": "^1.7.3" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lilconfig": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", + "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", + "engines": { + "node": ">=10" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" + }, + "node_modules/loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" + }, + "node_modules/lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==" + }, + "node_modules/lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==" + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lower-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", + "dependencies": { + "tslib": "^2.0.3" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/lz-string": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", + "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==", + "bin": { + "lz-string": "bin/bin.js" + } + }, + "node_modules/magic-string": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", + "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", + "dependencies": { + "sourcemap-codec": "^1.4.8" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/mdn-data": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz", + "integrity": "sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA==" + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/memfs": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.1.tgz", + "integrity": "sha512-UWbFJKvj5k+nETdteFndTpYxdeTMox/ULeqX5k/dpaQJCCFmj5EeKv3dBcyO2xmkRAx2vppRu5dVG7SOtsGOzA==", + "dependencies": { + "fs-monkey": "^1.0.3" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "engines": { + "node": ">=4" + } + }, + "node_modules/mini-css-extract-plugin": { + "version": "2.7.6", + "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.7.6.tgz", + "integrity": "sha512-Qk7HcgaPkGG6eD77mLvZS1nmxlao3j+9PkrT9Uc7HAE1id3F41+DdBRYRYkbyfNRGzm8/YWtzhw7nVPmwhqTQw==", + "dependencies": { + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/mini-css-extract-plugin/node_modules/schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/multicast-dns": { + "version": "7.2.5", + "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz", + "integrity": "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==", + "dependencies": { + "dns-packet": "^5.2.2", + "thunky": "^1.0.2" + }, + "bin": { + "multicast-dns": "cli.js" + } + }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", + "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" + }, + "node_modules/natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==" + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" + }, + "node_modules/no-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", + "dependencies": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, + "node_modules/node-forge": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", + "engines": { + "node": ">= 6.13.0" + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==" + }, + "node_modules/node-releases": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", + "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/nwsapi": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.4.tgz", + "integrity": "sha512-NHj4rzRo0tQdijE9ZqAx6kYDcoRwYwSYzCA8MY3JzfxlrvEU0jhnhJT9BhqhJs7I/dKcrDm6TyulaRqZPIhN5g==" + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/object-inspect": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-is": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", + "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", + "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", + "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.getownpropertydescriptors": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.6.tgz", + "integrity": "sha512-lq+61g26E/BgHv0ZTFgRvi7NMEPuAxLkFU7rukXjc/AlwH4Am5xXVnIXy3un1bg/JPbXHrixRkK1itUzzPiIjQ==", + "dependencies": { + "array.prototype.reduce": "^1.0.5", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.21.2", + "safe-array-concat": "^1.0.0" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.hasown": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", + "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", + "dependencies": { + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.values": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", + "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/obuf": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", + "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==" + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", + "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-retry": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", + "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", + "dependencies": { + "@types/retry": "0.12.0", + "retry": "^0.13.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/param-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", + "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", + "dependencies": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==" + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/pascal-case": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", + "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + }, + "node_modules/path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pirates": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", + "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-up": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", + "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", + "dependencies": { + "find-up": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-up/node_modules/find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dependencies": { + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-up/node_modules/p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dependencies": { + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss": { + "version": "8.4.23", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.23.tgz", + "integrity": "sha512-bQ3qMcpF6A/YjR55xtoTr0jGOlnPOKAIMdOWiv0EIT6HVPEaJiJB4NLljSbiHoC2RX7DN5Uvjtpbg1NPdwv1oA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-attribute-case-insensitive": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-5.0.2.tgz", + "integrity": "sha512-XIidXV8fDr0kKt28vqki84fRK8VW8eTuIa4PChv2MqKuT6C9UjmSKzen6KaWhWEoYvwxFCa7n/tC1SZ3tyq4SQ==", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-browser-comments": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-browser-comments/-/postcss-browser-comments-4.0.0.tgz", + "integrity": "sha512-X9X9/WN3KIvY9+hNERUqX9gncsgBA25XaeR+jshHz2j8+sYyHktHw1JdKuMjeLpGktXidqDhA7b/qm1mrBDmgg==", + "engines": { + "node": ">=8" + }, + "peerDependencies": { + "browserslist": ">=4", + "postcss": ">=8" + } + }, + "node_modules/postcss-calc": { + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", + "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", + "dependencies": { + "postcss-selector-parser": "^6.0.9", + "postcss-value-parser": "^4.2.0" + }, + "peerDependencies": { + "postcss": "^8.2.2" + } + }, + "node_modules/postcss-clamp": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/postcss-clamp/-/postcss-clamp-4.1.0.tgz", + "integrity": "sha512-ry4b1Llo/9zz+PKC+030KUnPITTJAHeOwjfAyyB60eT0AorGLdzp52s31OsPRHRf8NchkgFoG2y6fCfn1IV1Ow==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": ">=7.6.0" + }, + "peerDependencies": { + "postcss": "^8.4.6" + } + }, + "node_modules/postcss-color-functional-notation": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/postcss-color-functional-notation/-/postcss-color-functional-notation-4.2.4.tgz", + "integrity": "sha512-2yrTAUZUab9s6CpxkxC4rVgFEVaR6/2Pipvi6qcgvnYiVqZcbDHEoBDhrXzyb7Efh2CCfHQNtcqWcIruDTIUeg==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-color-hex-alpha": { + "version": "8.0.4", + "resolved": "https://registry.npmjs.org/postcss-color-hex-alpha/-/postcss-color-hex-alpha-8.0.4.tgz", + "integrity": "sha512-nLo2DCRC9eE4w2JmuKgVA3fGL3d01kGq752pVALF68qpGLmx2Qrk91QTKkdUqqp45T1K1XV8IhQpcu1hoAQflQ==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-color-rebeccapurple": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-7.1.1.tgz", + "integrity": "sha512-pGxkuVEInwLHgkNxUc4sdg4g3py7zUeCQ9sMfwyHAT+Ezk8a4OaaVZ8lIY5+oNqA/BXXgLyXv0+5wHP68R79hg==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-colormin": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", + "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==", + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "colord": "^2.9.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-convert-values": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz", + "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==", + "dependencies": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-custom-media": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-8.0.2.tgz", + "integrity": "sha512-7yi25vDAoHAkbhAzX9dHx2yc6ntS4jQvejrNcC+csQJAXjj15e7VcWfMgLqBNAbOvqi5uIa9huOVwdHbf+sKqg==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.3" + } + }, + "node_modules/postcss-custom-properties": { + "version": "12.1.11", + "resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-12.1.11.tgz", + "integrity": "sha512-0IDJYhgU8xDv1KY6+VgUwuQkVtmYzRwu+dMjnmdMafXYv86SWqfxkc7qdDvWS38vsjaEtv8e0vGOUQrAiMBLpQ==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-custom-selectors": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/postcss-custom-selectors/-/postcss-custom-selectors-6.0.3.tgz", + "integrity": "sha512-fgVkmyiWDwmD3JbpCmB45SvvlCD6z9CG6Ie6Iere22W5aHea6oWa7EM2bpnv2Fj3I94L3VbtvX9KqwSi5aFzSg==", + "dependencies": { + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.3" + } + }, + "node_modules/postcss-dir-pseudo-class": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/postcss-dir-pseudo-class/-/postcss-dir-pseudo-class-6.0.5.tgz", + "integrity": "sha512-eqn4m70P031PF7ZQIvSgy9RSJ5uI2171O/OO/zcRNYpJbvaeKFUlar1aJ7rmgiQtbm0FSPsRewjpdS0Oew7MPA==", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-discard-comments": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", + "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-duplicates": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", + "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-empty": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", + "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-overridden": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", + "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-double-position-gradients": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-3.1.2.tgz", + "integrity": "sha512-GX+FuE/uBR6eskOK+4vkXgT6pDkexLokPaz/AbJna9s5Kzp/yl488pKPjhy0obB475ovfT1Wv8ho7U/cHNaRgQ==", + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-env-function": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/postcss-env-function/-/postcss-env-function-4.0.6.tgz", + "integrity": "sha512-kpA6FsLra+NqcFnL81TnsU+Z7orGtDTxcOhl6pwXeEq1yFPpRMkCDpHhrz8CFQDr/Wfm0jLiNQ1OsGGPjlqPwA==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-flexbugs-fixes": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-flexbugs-fixes/-/postcss-flexbugs-fixes-5.0.2.tgz", + "integrity": "sha512-18f9voByak7bTktR2QgDveglpn9DTbBWPUzSOe9g0N4WR/2eSt6Vrcbf0hmspvMI6YWGywz6B9f7jzpFNJJgnQ==", + "peerDependencies": { + "postcss": "^8.1.4" + } + }, + "node_modules/postcss-focus-visible": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/postcss-focus-visible/-/postcss-focus-visible-6.0.4.tgz", + "integrity": "sha512-QcKuUU/dgNsstIK6HELFRT5Y3lbrMLEOwG+A4s5cA+fx3A3y/JTq3X9LaOj3OC3ALH0XqyrgQIgey/MIZ8Wczw==", + "dependencies": { + "postcss-selector-parser": "^6.0.9" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-focus-within": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/postcss-focus-within/-/postcss-focus-within-5.0.4.tgz", + "integrity": "sha512-vvjDN++C0mu8jz4af5d52CB184ogg/sSxAFS+oUJQq2SuCe7T5U2iIsVJtsCp2d6R4j0jr5+q3rPkBVZkXD9fQ==", + "dependencies": { + "postcss-selector-parser": "^6.0.9" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-font-variant": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-font-variant/-/postcss-font-variant-5.0.0.tgz", + "integrity": "sha512-1fmkBaCALD72CK2a9i468mA/+tr9/1cBxRRMXOUaZqO43oWPR5imcyPjXwuv7PXbCid4ndlP5zWhidQVVa3hmA==", + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-gap-properties": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/postcss-gap-properties/-/postcss-gap-properties-3.0.5.tgz", + "integrity": "sha512-IuE6gKSdoUNcvkGIqdtjtcMtZIFyXZhmFd5RUlg97iVEvp1BZKV5ngsAjCjrVy+14uhGBQl9tzmi1Qwq4kqVOg==", + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-image-set-function": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/postcss-image-set-function/-/postcss-image-set-function-4.0.7.tgz", + "integrity": "sha512-9T2r9rsvYzm5ndsBE8WgtrMlIT7VbtTfE7b3BQnudUqnBcBo7L758oc+o+pdj/dUV0l5wjwSdjeOH2DZtfv8qw==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-import": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", + "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-initial": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-initial/-/postcss-initial-4.0.1.tgz", + "integrity": "sha512-0ueD7rPqX8Pn1xJIjay0AZeIuDoF+V+VvMt/uOnn+4ezUKhZM/NokDeP6DwMNyIoYByuN/94IQnt5FEkaN59xQ==", + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", + "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-lab-function": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/postcss-lab-function/-/postcss-lab-function-4.2.1.tgz", + "integrity": "sha512-xuXll4isR03CrQsmxyz92LJB2xX9n+pZJ5jE9JgcnmsCammLyKdlzrBin+25dy6wIjfhJpKBAN80gsTlCgRk2w==", + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-load-config": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.1.tgz", + "integrity": "sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==", + "dependencies": { + "lilconfig": "^2.0.5", + "yaml": "^2.1.1" + }, + "engines": { + "node": ">= 14" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-load-config/node_modules/yaml": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz", + "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==", + "engines": { + "node": ">= 14" + } + }, + "node_modules/postcss-loader": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.2.1.tgz", + "integrity": "sha512-WbbYpmAaKcux/P66bZ40bpWsBucjx/TTgVVzRZ9yUO8yQfVBlameJ0ZGVaPfH64hNSBh63a+ICP5nqOpBA0w+Q==", + "dependencies": { + "cosmiconfig": "^7.0.0", + "klona": "^2.0.5", + "semver": "^7.3.5" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "postcss": "^7.0.0 || ^8.0.1", + "webpack": "^5.0.0" + } + }, + "node_modules/postcss-logical": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/postcss-logical/-/postcss-logical-5.0.4.tgz", + "integrity": "sha512-RHXxplCeLh9VjinvMrZONq7im4wjWGlRJAqmAVLXyZaXwfDWP73/oq4NdIp+OZwhQUMj0zjqDfM5Fj7qby+B4g==", + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-media-minmax": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-media-minmax/-/postcss-media-minmax-5.0.0.tgz", + "integrity": "sha512-yDUvFf9QdFZTuCUg0g0uNSHVlJ5X1lSzDZjPSFaiCWvjgsvu8vEVxtahPrLMinIDEEGnx6cBe6iqdx5YWz08wQ==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-merge-longhand": { + "version": "5.1.7", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz", + "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==", + "dependencies": { + "postcss-value-parser": "^4.2.0", + "stylehacks": "^5.1.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-merge-rules": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz", + "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==", + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "cssnano-utils": "^3.1.0", + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-font-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", + "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-gradients": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", + "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", + "dependencies": { + "colord": "^2.9.1", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-params": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz", + "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==", + "dependencies": { + "browserslist": "^4.21.4", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-selectors": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", + "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-modules-extract-imports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", + "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-local-by-default": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz", + "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==", + "dependencies": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-scope": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", + "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", + "dependencies": { + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-values": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", + "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", + "dependencies": { + "icss-utils": "^5.0.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-nested": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz", + "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==", + "dependencies": { + "postcss-selector-parser": "^6.0.11" + }, + "engines": { + "node": ">=12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-nesting": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-10.2.0.tgz", + "integrity": "sha512-EwMkYchxiDiKUhlJGzWsD9b2zvq/r2SSubcRrgP+jujMXFzqvANLt16lJANC+5uZ6hjI7lpRmI6O8JIl+8l1KA==", + "dependencies": { + "@csstools/selector-specificity": "^2.0.0", + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-normalize": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize/-/postcss-normalize-10.0.1.tgz", + "integrity": "sha512-+5w18/rDev5mqERcG3W5GZNMJa1eoYYNGo8gB7tEwaos0ajk3ZXAI4mHGcNT47NE+ZnZD1pEpUOFLvltIwmeJA==", + "dependencies": { + "@csstools/normalize.css": "*", + "postcss-browser-comments": "^4", + "sanitize.css": "*" + }, + "engines": { + "node": ">= 12" + }, + "peerDependencies": { + "browserslist": ">= 4", + "postcss": ">= 8" + } + }, + "node_modules/postcss-normalize-charset": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", + "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-display-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", + "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-positions": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", + "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-repeat-style": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", + "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-string": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", + "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-timing-functions": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", + "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-unicode": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", + "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==", + "dependencies": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-url": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", + "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", + "dependencies": { + "normalize-url": "^6.0.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-whitespace": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", + "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-opacity-percentage": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/postcss-opacity-percentage/-/postcss-opacity-percentage-1.1.3.tgz", + "integrity": "sha512-An6Ba4pHBiDtyVpSLymUUERMo2cU7s+Obz6BTrS+gxkbnSBNKSuD0AVUc+CpBMrpVPKKfoVz0WQCX+Tnst0i4A==", + "funding": [ + { + "type": "kofi", + "url": "https://ko-fi.com/mrcgrtz" + }, + { + "type": "liberapay", + "url": "https://liberapay.com/mrcgrtz" + } + ], + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-ordered-values": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", + "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", + "dependencies": { + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-overflow-shorthand": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/postcss-overflow-shorthand/-/postcss-overflow-shorthand-3.0.4.tgz", + "integrity": "sha512-otYl/ylHK8Y9bcBnPLo3foYFLL6a6Ak+3EQBPOTR7luMYCOsiVTUk1iLvNf6tVPNGXcoL9Hoz37kpfriRIFb4A==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-page-break": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/postcss-page-break/-/postcss-page-break-3.0.4.tgz", + "integrity": "sha512-1JGu8oCjVXLa9q9rFTo4MbeeA5FMe00/9C7lN4va606Rdb+HkxXtXsmEDrIraQ11fGz/WvKWa8gMuCKkrXpTsQ==", + "peerDependencies": { + "postcss": "^8" + } + }, + "node_modules/postcss-place": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/postcss-place/-/postcss-place-7.0.5.tgz", + "integrity": "sha512-wR8igaZROA6Z4pv0d+bvVrvGY4GVHihBCBQieXFY3kuSuMyOmEnnfFzHl/tQuqHZkfkIVBEbDvYcFfHmpSet9g==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-preset-env": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-7.8.3.tgz", + "integrity": "sha512-T1LgRm5uEVFSEF83vHZJV2z19lHg4yJuZ6gXZZkqVsqv63nlr6zabMH3l4Pc01FQCyfWVrh2GaUeCVy9Po+Aag==", + "dependencies": { + "@csstools/postcss-cascade-layers": "^1.1.1", + "@csstools/postcss-color-function": "^1.1.1", + "@csstools/postcss-font-format-keywords": "^1.0.1", + "@csstools/postcss-hwb-function": "^1.0.2", + "@csstools/postcss-ic-unit": "^1.0.1", + "@csstools/postcss-is-pseudo-class": "^2.0.7", + "@csstools/postcss-nested-calc": "^1.0.0", + "@csstools/postcss-normalize-display-values": "^1.0.1", + "@csstools/postcss-oklab-function": "^1.1.1", + "@csstools/postcss-progressive-custom-properties": "^1.3.0", + "@csstools/postcss-stepped-value-functions": "^1.0.1", + "@csstools/postcss-text-decoration-shorthand": "^1.0.0", + "@csstools/postcss-trigonometric-functions": "^1.0.2", + "@csstools/postcss-unset-value": "^1.0.2", + "autoprefixer": "^10.4.13", + "browserslist": "^4.21.4", + "css-blank-pseudo": "^3.0.3", + "css-has-pseudo": "^3.0.4", + "css-prefers-color-scheme": "^6.0.3", + "cssdb": "^7.1.0", + "postcss-attribute-case-insensitive": "^5.0.2", + "postcss-clamp": "^4.1.0", + "postcss-color-functional-notation": "^4.2.4", + "postcss-color-hex-alpha": "^8.0.4", + "postcss-color-rebeccapurple": "^7.1.1", + "postcss-custom-media": "^8.0.2", + "postcss-custom-properties": "^12.1.10", + "postcss-custom-selectors": "^6.0.3", + "postcss-dir-pseudo-class": "^6.0.5", + "postcss-double-position-gradients": "^3.1.2", + "postcss-env-function": "^4.0.6", + "postcss-focus-visible": "^6.0.4", + "postcss-focus-within": "^5.0.4", + "postcss-font-variant": "^5.0.0", + "postcss-gap-properties": "^3.0.5", + "postcss-image-set-function": "^4.0.7", + "postcss-initial": "^4.0.1", + "postcss-lab-function": "^4.2.1", + "postcss-logical": "^5.0.4", + "postcss-media-minmax": "^5.0.0", + "postcss-nesting": "^10.2.0", + "postcss-opacity-percentage": "^1.1.2", + "postcss-overflow-shorthand": "^3.0.4", + "postcss-page-break": "^3.0.4", + "postcss-place": "^7.0.5", + "postcss-pseudo-class-any-link": "^7.1.6", + "postcss-replace-overflow-wrap": "^4.0.0", + "postcss-selector-not": "^6.0.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-pseudo-class-any-link": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-7.1.6.tgz", + "integrity": "sha512-9sCtZkO6f/5ML9WcTLcIyV1yz9D1rf0tWc+ulKcvV30s0iZKS/ONyETvoWsr6vnrmW+X+KmuK3gV/w5EWnT37w==", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-reduce-initial": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz", + "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==", + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-reduce-transforms": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", + "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-replace-overflow-wrap": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-4.0.0.tgz", + "integrity": "sha512-KmF7SBPphT4gPPcKZc7aDkweHiKEEO8cla/GjcBK+ckKxiZslIu3C4GCRW3DNfL0o7yW7kMQu9xlZ1kXRXLXtw==", + "peerDependencies": { + "postcss": "^8.0.3" + } + }, + "node_modules/postcss-selector-not": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-6.0.1.tgz", + "integrity": "sha512-1i9affjAe9xu/y9uqWH+tD4r6/hDaXJruk8xn2x1vzxC2U3J3LKO3zJW4CyxlNhA56pADJ/djpEwpH1RClI2rQ==", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.13", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", + "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-svgo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", + "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", + "dependencies": { + "postcss-value-parser": "^4.2.0", + "svgo": "^2.7.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-svgo/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "engines": { + "node": ">= 10" + } + }, + "node_modules/postcss-svgo/node_modules/css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dependencies": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/postcss-svgo/node_modules/mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" + }, + "node_modules/postcss-svgo/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-svgo/node_modules/svgo": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "dependencies": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/postcss-unique-selectors": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", + "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/pretty-bytes": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", + "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pretty-error": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz", + "integrity": "sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw==", + "dependencies": { + "lodash": "^4.17.20", + "renderkid": "^3.0.0" + } + }, + "node_modules/pretty-format": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", + "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", + "dependencies": { + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "node_modules/promise": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/promise/-/promise-8.3.0.tgz", + "integrity": "sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg==", + "dependencies": { + "asap": "~2.0.6" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/prop-types/node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/proxy-addr/node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" + }, + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==", + "engines": { + "node": ">=0.6.0", + "teleport": ">=0.2.0" + } + }, + "node_modules/qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/raf": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz", + "integrity": "sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==", + "dependencies": { + "performance-now": "^2.1.0" + } + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/raw-body/node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/raw-body/node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-app-polyfill": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/react-app-polyfill/-/react-app-polyfill-3.0.0.tgz", + "integrity": "sha512-sZ41cxiU5llIB003yxxQBYrARBqe0repqPTTYBTmMqTz9szeBbE37BehCE891NZsmdZqqP+xWKdT3eo3vOzN8w==", + "dependencies": { + "core-js": "^3.19.2", + "object-assign": "^4.1.1", + "promise": "^8.1.0", + "raf": "^3.4.1", + "regenerator-runtime": "^0.13.9", + "whatwg-fetch": "^3.6.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/react-dev-utils": { + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz", + "integrity": "sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==", + "dependencies": { + "@babel/code-frame": "^7.16.0", + "address": "^1.1.2", + "browserslist": "^4.18.1", + "chalk": "^4.1.2", + "cross-spawn": "^7.0.3", + "detect-port-alt": "^1.1.6", + "escape-string-regexp": "^4.0.0", + "filesize": "^8.0.6", + "find-up": "^5.0.0", + "fork-ts-checker-webpack-plugin": "^6.5.0", + "global-modules": "^2.0.0", + "globby": "^11.0.4", + "gzip-size": "^6.0.0", + "immer": "^9.0.7", + "is-root": "^2.1.0", + "loader-utils": "^3.2.0", + "open": "^8.4.0", + "pkg-up": "^3.1.0", + "prompts": "^2.4.2", + "react-error-overlay": "^6.0.11", + "recursive-readdir": "^2.2.2", + "shell-quote": "^1.7.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/react-dev-utils/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/react-dev-utils/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/react-dev-utils/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/react-dev-utils/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/react-dev-utils/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/react-dev-utils/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/react-dev-utils/node_modules/loader-utils": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.1.tgz", + "integrity": "sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw==", + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/react-dev-utils/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/react-dom": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", + "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.0" + }, + "peerDependencies": { + "react": "^18.2.0" + } + }, + "node_modules/react-error-overlay": { + "version": "6.0.11", + "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz", + "integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==" + }, + "node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + }, + "node_modules/react-refresh": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz", + "integrity": "sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-scripts": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz", + "integrity": "sha512-8VAmEm/ZAwQzJ+GOMLbBsTdDKOpuZh7RPs0UymvBR2vRk4iZWCskjbFnxqjrzoIvlNNRZ3QJFx6/qDSi6zSnaQ==", + "dependencies": { + "@babel/core": "^7.16.0", + "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3", + "@svgr/webpack": "^5.5.0", + "babel-jest": "^27.4.2", + "babel-loader": "^8.2.3", + "babel-plugin-named-asset-import": "^0.3.8", + "babel-preset-react-app": "^10.0.1", + "bfj": "^7.0.2", + "browserslist": "^4.18.1", + "camelcase": "^6.2.1", + "case-sensitive-paths-webpack-plugin": "^2.4.0", + "css-loader": "^6.5.1", + "css-minimizer-webpack-plugin": "^3.2.0", + "dotenv": "^10.0.0", + "dotenv-expand": "^5.1.0", + "eslint": "^8.3.0", + "eslint-config-react-app": "^7.0.1", + "eslint-webpack-plugin": "^3.1.1", + "file-loader": "^6.2.0", + "fs-extra": "^10.0.0", + "html-webpack-plugin": "^5.5.0", + "identity-obj-proxy": "^3.0.0", + "jest": "^27.4.3", + "jest-resolve": "^27.4.2", + "jest-watch-typeahead": "^1.0.0", + "mini-css-extract-plugin": "^2.4.5", + "postcss": "^8.4.4", + "postcss-flexbugs-fixes": "^5.0.2", + "postcss-loader": "^6.2.1", + "postcss-normalize": "^10.0.1", + "postcss-preset-env": "^7.0.1", + "prompts": "^2.4.2", + "react-app-polyfill": "^3.0.0", + "react-dev-utils": "^12.0.1", + "react-refresh": "^0.11.0", + "resolve": "^1.20.0", + "resolve-url-loader": "^4.0.0", + "sass-loader": "^12.3.0", + "semver": "^7.3.5", + "source-map-loader": "^3.0.0", + "style-loader": "^3.3.1", + "tailwindcss": "^3.0.2", + "terser-webpack-plugin": "^5.2.5", + "webpack": "^5.64.4", + "webpack-dev-server": "^4.6.0", + "webpack-manifest-plugin": "^4.0.2", + "workbox-webpack-plugin": "^6.4.1" + }, + "bin": { + "react-scripts": "bin/react-scripts.js" + }, + "engines": { + "node": ">=14.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + }, + "peerDependencies": { + "react": ">= 16", + "typescript": "^3.2.1 || ^4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "dependencies": { + "pify": "^2.3.0" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/recursive-readdir": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz", + "integrity": "sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA==", + "dependencies": { + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/redent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "dependencies": { + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", + "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" + }, + "node_modules/regenerator-transform": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz", + "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==", + "dependencies": { + "@babel/runtime": "^7.8.4" + } + }, + "node_modules/regex-parser": { + "version": "2.2.11", + "resolved": "https://registry.npmjs.org/regex-parser/-/regex-parser-2.2.11.tgz", + "integrity": "sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q==" + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", + "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexpu-core": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", + "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", + "dependencies": { + "@babel/regjsgen": "^0.8.0", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsparser": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", + "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "dependencies": { + "jsesc": "~0.5.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "bin": { + "jsesc": "bin/jsesc" + } + }, + "node_modules/relateurl": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", + "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/renderkid": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-3.0.0.tgz", + "integrity": "sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==", + "dependencies": { + "css-select": "^4.1.3", + "dom-converter": "^0.2.0", + "htmlparser2": "^6.1.0", + "lodash": "^4.17.21", + "strip-ansi": "^6.0.1" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" + }, + "node_modules/resolve": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", + "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", + "dependencies": { + "is-core-module": "^2.11.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-url-loader": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-4.0.0.tgz", + "integrity": "sha512-05VEMczVREcbtT7Bz+C+96eUO5HDNvdthIiMB34t7FcF8ehcu4wC0sSgPUubs3XW2Q3CNLJk/BJrCU9wVRymiA==", + "dependencies": { + "adjust-sourcemap-loader": "^4.0.0", + "convert-source-map": "^1.7.0", + "loader-utils": "^2.0.0", + "postcss": "^7.0.35", + "source-map": "0.6.1" + }, + "engines": { + "node": ">=8.9" + }, + "peerDependencies": { + "rework": "1.0.1", + "rework-visit": "1.0.0" + }, + "peerDependenciesMeta": { + "rework": { + "optional": true + }, + "rework-visit": { + "optional": true + } + } + }, + "node_modules/resolve-url-loader/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==" + }, + "node_modules/resolve-url-loader/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/resolve-url-loader/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve.exports": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.1.tgz", + "integrity": "sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ==", + "engines": { + "node": ">=10" + } + }, + "node_modules/retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "2.79.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz", + "integrity": "sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==", + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=10.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/rollup-plugin-terser": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz", + "integrity": "sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==", + "deprecated": "This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser", + "dependencies": { + "@babel/code-frame": "^7.10.4", + "jest-worker": "^26.2.1", + "serialize-javascript": "^4.0.0", + "terser": "^5.0.0" + }, + "peerDependencies": { + "rollup": "^2.0.0" + } + }, + "node_modules/rollup-plugin-terser/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/rollup-plugin-terser/node_modules/jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/rollup-plugin-terser/node_modules/serialize-javascript": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", + "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/rollup-plugin-terser/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-array-concat": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz", + "integrity": "sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/sanitize.css": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/sanitize.css/-/sanitize.css-13.0.0.tgz", + "integrity": "sha512-ZRwKbh/eQ6w9vmTjkuG0Ioi3HBwPFce0O+v//ve+aOq1oeCy7jMV2qzzAlpsNuqpqCBjjriM1lbtZbF/Q8jVyA==" + }, + "node_modules/sass-loader": { + "version": "12.6.0", + "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.6.0.tgz", + "integrity": "sha512-oLTaH0YCtX4cfnJZxKSLAyglED0naiYfNG1iXfU5w1LNZ+ukoA5DtyDIN5zmKVZwYNJP4KRc5Y3hkWga+7tYfA==", + "dependencies": { + "klona": "^2.0.4", + "neo-async": "^2.6.2" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "fibers": ">= 3.1.0", + "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0", + "sass": "^1.3.0", + "sass-embedded": "*", + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "fibers": { + "optional": true + }, + "node-sass": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + } + } + }, + "node_modules/sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" + }, + "node_modules/saxes": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", + "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/scheduler": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", + "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/schema-utils": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", + "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/select-hose": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", + "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==" + }, + "node_modules/selfsigned": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.1.1.tgz", + "integrity": "sha512-GSL3aowiF7wa/WtSFwnUrludWFoNhftq8bUkH9pkzjpN2XSPOAYEgg6e0sS9s0rZwgJzJiQRPU18A6clnoW5wQ==", + "dependencies": { + "node-forge": "^1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/serialize-javascript": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==", + "dependencies": { + "accepts": "~1.3.4", + "batch": "0.6.1", + "debug": "2.6.9", + "escape-html": "~1.0.3", + "http-errors": "~1.6.2", + "mime-types": "~2.1.17", + "parseurl": "~1.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/serve-index/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/serve-index/node_modules/depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", + "dependencies": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" + }, + "node_modules/serve-index/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/serve-index/node_modules/setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" + }, + "node_modules/serve-index/node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "engines": { + "node": ">=8" + } + }, + "node_modules/shell-quote": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", + "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/sockjs": { + "version": "0.3.24", + "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", + "integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==", + "dependencies": { + "faye-websocket": "^0.11.3", + "uuid": "^8.3.2", + "websocket-driver": "^0.7.4" + } + }, + "node_modules/source-list-map": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", + "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==" + }, + "node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-loader": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/source-map-loader/-/source-map-loader-3.0.2.tgz", + "integrity": "sha512-BokxPoLjyl3iOrgkWaakaxqnelAJSS+0V+De0kKIq6lyWrXuiPgYTGp6z3iHmqljKAaLXwZa+ctD8GccRJeVvg==", + "dependencies": { + "abab": "^2.0.5", + "iconv-lite": "^0.6.3", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sourcemap-codec": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "deprecated": "Please use @jridgewell/sourcemap-codec instead" + }, + "node_modules/spdy": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", + "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", + "dependencies": { + "debug": "^4.1.0", + "handle-thing": "^2.0.0", + "http-deceiver": "^1.2.7", + "select-hose": "^2.0.0", + "spdy-transport": "^3.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/spdy-transport": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", + "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", + "dependencies": { + "debug": "^4.1.0", + "detect-node": "^2.0.4", + "hpack.js": "^2.1.6", + "obuf": "^1.1.2", + "readable-stream": "^3.0.6", + "wbuf": "^1.7.3" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" + }, + "node_modules/stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility" + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/stackframe": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", + "integrity": "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==" + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/stop-iteration-iterator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", + "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", + "dependencies": { + "internal-slot": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-natural-compare": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/string-natural-compare/-/string-natural-compare-3.0.1.tgz", + "integrity": "sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==" + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/string.prototype.matchall": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz", + "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "regexp.prototype.flags": "^1.4.3", + "side-channel": "^1.0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", + "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", + "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", + "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/stringify-object": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz", + "integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==", + "dependencies": { + "get-own-enumerable-property-symbols": "^3.0.0", + "is-obj": "^1.0.1", + "is-regexp": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-comments/-/strip-comments-2.0.1.tgz", + "integrity": "sha512-ZprKx+bBLXv067WTCALv8SSz5l2+XhpYCsVtSqlMnkAXMWDq+/ekVbl1ghqP9rUHTzv6sm/DwCOiYutU/yp1fw==", + "engines": { + "node": ">=10" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dependencies": { + "min-indent": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/style-loader": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-3.3.3.tgz", + "integrity": "sha512-53BiGLXAcll9maCYtZi2RCQZKa8NQQai5C4horqKyRmHj9H7QmcUyucrH+4KW/gBQbXM2AsB0axoEcFZPlfPcw==", + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/stylehacks": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", + "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==", + "dependencies": { + "browserslist": "^4.21.4", + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/sucrase": { + "version": "3.32.0", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.32.0.tgz", + "integrity": "sha512-ydQOU34rpSyj2TGyz4D2p8rbktIOZ8QY9s+DGLvFU1i5pWJE8vkpruCjGCMHsdXwnD7JDcS+noSwM/a7zyNFDQ==", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "glob": "7.1.6", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/sucrase/node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/sucrase/node_modules/glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-hyperlinks": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", + "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", + "dependencies": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/svg-parser": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz", + "integrity": "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==" + }, + "node_modules/svgo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-1.3.2.tgz", + "integrity": "sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw==", + "deprecated": "This SVGO version is no longer supported. Upgrade to v2.x.x.", + "dependencies": { + "chalk": "^2.4.1", + "coa": "^2.0.2", + "css-select": "^2.0.0", + "css-select-base-adapter": "^0.1.1", + "css-tree": "1.0.0-alpha.37", + "csso": "^4.0.2", + "js-yaml": "^3.13.1", + "mkdirp": "~0.5.1", + "object.values": "^1.1.0", + "sax": "~1.2.4", + "stable": "^0.1.8", + "unquote": "~1.1.1", + "util.promisify": "~1.0.0" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/svgo/node_modules/css-select": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz", + "integrity": "sha512-Dqk7LQKpwLoH3VovzZnkzegqNSuAziQyNZUcrdDM401iY+R5NkGBXGmtO05/yaXQziALuPogeG0b7UAgjnTJTQ==", + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^3.2.1", + "domutils": "^1.7.0", + "nth-check": "^1.0.2" + } + }, + "node_modules/svgo/node_modules/css-what": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-3.4.2.tgz", + "integrity": "sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ==", + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/svgo/node_modules/dom-serializer": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz", + "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==", + "dependencies": { + "domelementtype": "^2.0.1", + "entities": "^2.0.0" + } + }, + "node_modules/svgo/node_modules/domutils": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz", + "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", + "dependencies": { + "dom-serializer": "0", + "domelementtype": "1" + } + }, + "node_modules/svgo/node_modules/domutils/node_modules/domelementtype": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", + "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==" + }, + "node_modules/svgo/node_modules/nth-check": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz", + "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==", + "dependencies": { + "boolbase": "~1.0.0" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==" + }, + "node_modules/tailwindcss": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.2.tgz", + "integrity": "sha512-9jPkMiIBXvPc2KywkraqsUfbfj+dHDb+JPWtSJa9MLFdrPyazI7q6WX2sUrm7R9eVR7qqv3Pas7EvQFzxKnI6w==", + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.5.3", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.2.12", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.18.2", + "lilconfig": "^2.1.0", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.23", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.1", + "postcss-nested": "^6.0.1", + "postcss-selector-parser": "^6.0.11", + "postcss-value-parser": "^4.2.0", + "resolve": "^1.22.2", + "sucrase": "^3.32.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/temp-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", + "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/tempy": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tempy/-/tempy-0.6.0.tgz", + "integrity": "sha512-G13vtMYPT/J8A4X2SjdtBTphZlrp1gKv6hZiOjw14RCWg6GbHuQBGtjlx75xLbYV/wEc0D7G5K4rxKP/cXk8Bw==", + "dependencies": { + "is-stream": "^2.0.0", + "temp-dir": "^2.0.0", + "type-fest": "^0.16.0", + "unique-string": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/tempy/node_modules/type-fest": { + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.16.0.tgz", + "integrity": "sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/terminal-link": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", + "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", + "dependencies": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/terser": { + "version": "5.17.6", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.17.6.tgz", + "integrity": "sha512-V8QHcs8YuyLkLHsJO5ucyff1ykrLVsR4dNnS//L5Y3NiSXpbK1J+WMVUs67eI0KTxs9JtHhgEQpXQVHlHI92DQ==", + "dependencies": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.9", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", + "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.17", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.8" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==" + }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/throat": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.2.tgz", + "integrity": "sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ==" + }, + "node_modules/thunky": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", + "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==" + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==" + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/tough-cookie": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz", + "integrity": "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==", + "dependencies": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tough-cookie/node_modules/universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tryer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tryer/-/tryer-1.0.1.tgz", + "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==" + }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==" + }, + "node_modules/tsconfig-paths": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", + "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tsconfig-paths/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/tsconfig-paths/node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/tslib": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz", + "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==" + }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/tsutils/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dependencies": { + "is-typedarray": "^1.0.0" + } + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", + "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", + "engines": { + "node": ">=4" + } + }, + "node_modules/unique-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", + "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", + "dependencies": { + "crypto-random-string": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/unquote": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unquote/-/unquote-1.1.1.tgz", + "integrity": "sha512-vRCqFv6UhXpWxZPyGDh/F3ZpNv8/qo7w6iufLpQg9aKnQ71qM4B5KiI7Mia9COcjEhrO9LueHpMYjYzsWH3OIg==" + }, + "node_modules/upath": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", + "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", + "engines": { + "node": ">=4", + "yarn": "*" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", + "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "node_modules/util.promisify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.1.tgz", + "integrity": "sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA==", + "dependencies": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.2", + "has-symbols": "^1.0.1", + "object.getownpropertydescriptors": "^2.1.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/utila": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", + "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/v8-to-istanbul": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", + "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/w3c-hr-time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", + "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", + "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.", + "dependencies": { + "browser-process-hrtime": "^1.0.0" + } + }, + "node_modules/w3c-xmlserializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", + "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", + "dependencies": { + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/wbuf": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", + "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", + "dependencies": { + "minimalistic-assert": "^1.0.0" + } + }, + "node_modules/web-vitals": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-2.1.4.tgz", + "integrity": "sha512-sVWcwhU5mX6crfI5Vd2dC4qchyTqxV8URinzt25XqVh+bHEPGH4C3NPrNionCP7Obx59wrYEbNlw4Z8sjALzZg==" + }, + "node_modules/webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "engines": { + "node": ">=10.4" + } + }, + "node_modules/webpack": { + "version": "5.84.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.84.1.tgz", + "integrity": "sha512-ZP4qaZ7vVn/K8WN/p990SGATmrL1qg4heP/MrVneczYtpDGJWlrgZv55vxaV2ul885Kz+25MP2kSXkPe3LZfmg==", + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.0", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.14.1", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.2", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.7", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-dev-middleware": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz", + "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==", + "dependencies": { + "colorette": "^2.0.10", + "memfs": "^3.4.3", + "mime-types": "^2.1.31", + "range-parser": "^1.2.1", + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/webpack-dev-middleware/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack-dev-middleware/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/webpack-dev-middleware/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/webpack-dev-middleware/node_modules/schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack-dev-server": { + "version": "4.15.0", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.0.tgz", + "integrity": "sha512-HmNB5QeSl1KpulTBQ8UT4FPrByYyaLxpJoQ0+s7EvUrMc16m0ZS1sgb1XGqzmgCPk0c9y+aaXxn11tbLzuM7NQ==", + "dependencies": { + "@types/bonjour": "^3.5.9", + "@types/connect-history-api-fallback": "^1.3.5", + "@types/express": "^4.17.13", + "@types/serve-index": "^1.9.1", + "@types/serve-static": "^1.13.10", + "@types/sockjs": "^0.3.33", + "@types/ws": "^8.5.1", + "ansi-html-community": "^0.0.8", + "bonjour-service": "^1.0.11", + "chokidar": "^3.5.3", + "colorette": "^2.0.10", + "compression": "^1.7.4", + "connect-history-api-fallback": "^2.0.0", + "default-gateway": "^6.0.3", + "express": "^4.17.3", + "graceful-fs": "^4.2.6", + "html-entities": "^2.3.2", + "http-proxy-middleware": "^2.0.3", + "ipaddr.js": "^2.0.1", + "launch-editor": "^2.6.0", + "open": "^8.0.9", + "p-retry": "^4.5.0", + "rimraf": "^3.0.2", + "schema-utils": "^4.0.0", + "selfsigned": "^2.1.1", + "serve-index": "^1.9.1", + "sockjs": "^0.3.24", + "spdy": "^4.0.2", + "webpack-dev-middleware": "^5.3.1", + "ws": "^8.13.0" + }, + "bin": { + "webpack-dev-server": "bin/webpack-dev-server.js" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.37.0 || ^5.0.0" + }, + "peerDependenciesMeta": { + "webpack": { + "optional": true + }, + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-dev-server/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack-dev-server/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/webpack-dev-server/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/webpack-dev-server/node_modules/schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack-dev-server/node_modules/ws": { + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/webpack-manifest-plugin": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/webpack-manifest-plugin/-/webpack-manifest-plugin-4.1.1.tgz", + "integrity": "sha512-YXUAwxtfKIJIKkhg03MKuiFAD72PlrqCiwdwO4VEXdRO5V0ORCNwaOwAZawPZalCbmH9kBDmXnNeQOw+BIEiow==", + "dependencies": { + "tapable": "^2.0.0", + "webpack-sources": "^2.2.0" + }, + "engines": { + "node": ">=12.22.0" + }, + "peerDependencies": { + "webpack": "^4.44.2 || ^5.47.0" + } + }, + "node_modules/webpack-manifest-plugin/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-manifest-plugin/node_modules/webpack-sources": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-2.3.1.tgz", + "integrity": "sha512-y9EI9AO42JjEcrTJFOYmVywVZdKVUfOvDUPsJea5GIr1JOEGFVqwlY2K098fFoIjOkDzHn2AjRvM8dsBZu+gCA==", + "dependencies": { + "source-list-map": "^2.0.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack/node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/webpack/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/websocket-driver": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", + "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", + "dependencies": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/websocket-extensions": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "dependencies": { + "iconv-lite": "0.4.24" + } + }, + "node_modules/whatwg-encoding/node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/whatwg-fetch": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", + "integrity": "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==" + }, + "node_modules/whatwg-mimetype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==" + }, + "node_modules/whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", + "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", + "dependencies": { + "is-map": "^2.0.1", + "is-set": "^2.0.1", + "is-weakmap": "^2.0.1", + "is-weakset": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", + "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/workbox-background-sync": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-background-sync/-/workbox-background-sync-6.6.0.tgz", + "integrity": "sha512-jkf4ZdgOJxC9u2vztxLuPT/UjlH7m/nWRQ/MgGL0v8BJHoZdVGJd18Kck+a0e55wGXdqyHO+4IQTk0685g4MUw==", + "dependencies": { + "idb": "^7.0.1", + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-broadcast-update": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-broadcast-update/-/workbox-broadcast-update-6.6.0.tgz", + "integrity": "sha512-nm+v6QmrIFaB/yokJmQ/93qIJ7n72NICxIwQwe5xsZiV2aI93MGGyEyzOzDPVz5THEr5rC3FJSsO3346cId64Q==", + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-build": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-build/-/workbox-build-6.6.0.tgz", + "integrity": "sha512-Tjf+gBwOTuGyZwMz2Nk/B13Fuyeo0Q84W++bebbVsfr9iLkDSo6j6PST8tET9HYA58mlRXwlMGpyWO8ETJiXdQ==", + "dependencies": { + "@apideck/better-ajv-errors": "^0.3.1", + "@babel/core": "^7.11.1", + "@babel/preset-env": "^7.11.0", + "@babel/runtime": "^7.11.2", + "@rollup/plugin-babel": "^5.2.0", + "@rollup/plugin-node-resolve": "^11.2.1", + "@rollup/plugin-replace": "^2.4.1", + "@surma/rollup-plugin-off-main-thread": "^2.2.3", + "ajv": "^8.6.0", + "common-tags": "^1.8.0", + "fast-json-stable-stringify": "^2.1.0", + "fs-extra": "^9.0.1", + "glob": "^7.1.6", + "lodash": "^4.17.20", + "pretty-bytes": "^5.3.0", + "rollup": "^2.43.1", + "rollup-plugin-terser": "^7.0.0", + "source-map": "^0.8.0-beta.0", + "stringify-object": "^3.3.0", + "strip-comments": "^2.0.1", + "tempy": "^0.6.0", + "upath": "^1.2.0", + "workbox-background-sync": "6.6.0", + "workbox-broadcast-update": "6.6.0", + "workbox-cacheable-response": "6.6.0", + "workbox-core": "6.6.0", + "workbox-expiration": "6.6.0", + "workbox-google-analytics": "6.6.0", + "workbox-navigation-preload": "6.6.0", + "workbox-precaching": "6.6.0", + "workbox-range-requests": "6.6.0", + "workbox-recipes": "6.6.0", + "workbox-routing": "6.6.0", + "workbox-strategies": "6.6.0", + "workbox-streams": "6.6.0", + "workbox-sw": "6.6.0", + "workbox-window": "6.6.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/workbox-build/node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/workbox-build/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/workbox-build/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/workbox-build/node_modules/source-map": { + "version": "0.8.0-beta.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", + "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", + "dependencies": { + "whatwg-url": "^7.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/workbox-build/node_modules/tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/workbox-build/node_modules/webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==" + }, + "node_modules/workbox-build/node_modules/whatwg-url": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", + "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", + "dependencies": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + }, + "node_modules/workbox-cacheable-response": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-cacheable-response/-/workbox-cacheable-response-6.6.0.tgz", + "integrity": "sha512-JfhJUSQDwsF1Xv3EV1vWzSsCOZn4mQ38bWEBR3LdvOxSPgB65gAM6cS2CX8rkkKHRgiLrN7Wxoyu+TuH67kHrw==", + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-core": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-core/-/workbox-core-6.6.0.tgz", + "integrity": "sha512-GDtFRF7Yg3DD859PMbPAYPeJyg5gJYXuBQAC+wyrWuuXgpfoOrIQIvFRZnQ7+czTIQjIr1DhLEGFzZanAT/3bQ==" + }, + "node_modules/workbox-expiration": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-expiration/-/workbox-expiration-6.6.0.tgz", + "integrity": "sha512-baplYXcDHbe8vAo7GYvyAmlS4f6998Jff513L4XvlzAOxcl8F620O91guoJ5EOf5qeXG4cGdNZHkkVAPouFCpw==", + "dependencies": { + "idb": "^7.0.1", + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-google-analytics": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-google-analytics/-/workbox-google-analytics-6.6.0.tgz", + "integrity": "sha512-p4DJa6OldXWd6M9zRl0H6vB9lkrmqYFkRQ2xEiNdBFp9U0LhsGO7hsBscVEyH9H2/3eZZt8c97NB2FD9U2NJ+Q==", + "dependencies": { + "workbox-background-sync": "6.6.0", + "workbox-core": "6.6.0", + "workbox-routing": "6.6.0", + "workbox-strategies": "6.6.0" + } + }, + "node_modules/workbox-navigation-preload": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-navigation-preload/-/workbox-navigation-preload-6.6.0.tgz", + "integrity": "sha512-utNEWG+uOfXdaZmvhshrh7KzhDu/1iMHyQOV6Aqup8Mm78D286ugu5k9MFD9SzBT5TcwgwSORVvInaXWbvKz9Q==", + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-precaching": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-precaching/-/workbox-precaching-6.6.0.tgz", + "integrity": "sha512-eYu/7MqtRZN1IDttl/UQcSZFkHP7dnvr/X3Vn6Iw6OsPMruQHiVjjomDFCNtd8k2RdjLs0xiz9nq+t3YVBcWPw==", + "dependencies": { + "workbox-core": "6.6.0", + "workbox-routing": "6.6.0", + "workbox-strategies": "6.6.0" + } + }, + "node_modules/workbox-range-requests": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-range-requests/-/workbox-range-requests-6.6.0.tgz", + "integrity": "sha512-V3aICz5fLGq5DpSYEU8LxeXvsT//mRWzKrfBOIxzIdQnV/Wj7R+LyJVTczi4CQ4NwKhAaBVaSujI1cEjXW+hTw==", + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-recipes": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-recipes/-/workbox-recipes-6.6.0.tgz", + "integrity": "sha512-TFi3kTgYw73t5tg73yPVqQC8QQjxJSeqjXRO4ouE/CeypmP2O/xqmB/ZFBBQazLTPxILUQ0b8aeh0IuxVn9a6A==", + "dependencies": { + "workbox-cacheable-response": "6.6.0", + "workbox-core": "6.6.0", + "workbox-expiration": "6.6.0", + "workbox-precaching": "6.6.0", + "workbox-routing": "6.6.0", + "workbox-strategies": "6.6.0" + } + }, + "node_modules/workbox-routing": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-routing/-/workbox-routing-6.6.0.tgz", + "integrity": "sha512-x8gdN7VDBiLC03izAZRfU+WKUXJnbqt6PG9Uh0XuPRzJPpZGLKce/FkOX95dWHRpOHWLEq8RXzjW0O+POSkKvw==", + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-strategies": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-strategies/-/workbox-strategies-6.6.0.tgz", + "integrity": "sha512-eC07XGuINAKUWDnZeIPdRdVja4JQtTuc35TZ8SwMb1ztjp7Ddq2CJ4yqLvWzFWGlYI7CG/YGqaETntTxBGdKgQ==", + "dependencies": { + "workbox-core": "6.6.0" + } + }, + "node_modules/workbox-streams": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-streams/-/workbox-streams-6.6.0.tgz", + "integrity": "sha512-rfMJLVvwuED09CnH1RnIep7L9+mj4ufkTyDPVaXPKlhi9+0czCu+SJggWCIFbPpJaAZmp2iyVGLqS3RUmY3fxg==", + "dependencies": { + "workbox-core": "6.6.0", + "workbox-routing": "6.6.0" + } + }, + "node_modules/workbox-sw": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-sw/-/workbox-sw-6.6.0.tgz", + "integrity": "sha512-R2IkwDokbtHUE4Kus8pKO5+VkPHD2oqTgl+XJwh4zbF1HyjAbgNmK/FneZHVU7p03XUt9ICfuGDYISWG9qV/CQ==" + }, + "node_modules/workbox-webpack-plugin": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-webpack-plugin/-/workbox-webpack-plugin-6.6.0.tgz", + "integrity": "sha512-xNZIZHalboZU66Wa7x1YkjIqEy1gTR+zPM+kjrYJzqN7iurYZBctBLISyScjhkJKYuRrZUP0iqViZTh8rS0+3A==", + "dependencies": { + "fast-json-stable-stringify": "^2.1.0", + "pretty-bytes": "^5.4.1", + "upath": "^1.2.0", + "webpack-sources": "^1.4.3", + "workbox-build": "6.6.0" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "webpack": "^4.4.0 || ^5.9.0" + } + }, + "node_modules/workbox-webpack-plugin/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/workbox-webpack-plugin/node_modules/webpack-sources": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz", + "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", + "dependencies": { + "source-list-map": "^2.0.0", + "source-map": "~0.6.1" + } + }, + "node_modules/workbox-window": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-window/-/workbox-window-6.6.0.tgz", + "integrity": "sha512-L4N9+vka17d16geaJXXRjENLFldvkWy7JyGxElRD0JvBxvFEd8LOhr+uXCcar/NzAmIBRv9EZ+M+Qr4mOoBITw==", + "dependencies": { + "@types/trusted-types": "^2.0.2", + "workbox-core": "6.6.0" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "node_modules/write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dependencies": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "node_modules/ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==" + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==" + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "engines": { + "node": ">=10" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + }, + "dependencies": { + "@adobe/css-tools": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.2.0.tgz", + "integrity": "sha512-E09FiIft46CmH5Qnjb0wsW54/YQd69LsxeKUOWawmws1XWvyFGURnAChH0mlr7YPFR1ofwvUQfcL0J3lMxXqPA==" + }, + "@alloc/quick-lru": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", + "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==" + }, + "@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@apideck/better-ajv-errors": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@apideck/better-ajv-errors/-/better-ajv-errors-0.3.6.tgz", + "integrity": "sha512-P+ZygBLZtkp0qqOAJJVX4oX/sFo5JR3eBWwwuqHHhK0GIgQOKWrAfiAaWX0aArHkRWHMuggFEgAZNxVPwPZYaA==", + "requires": { + "json-schema": "^0.4.0", + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + } + }, + "@babel/code-frame": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz", + "integrity": "sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g==", + "requires": { + "@babel/highlight": "^7.18.6" + } + }, + "@babel/compat-data": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.3.tgz", + "integrity": "sha512-aNtko9OPOwVESUFp3MZfD8Uzxl7JzSeJpd7npIoxCasU37PFbAQRpKglkaKwlHOyeJdrREpo8TW8ldrkYWwvIQ==" + }, + "@babel/core": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.1.tgz", + "integrity": "sha512-Hkqu7J4ynysSXxmAahpN1jjRwVJ+NdpraFLIWflgjpVob3KNyK3/tIUc7Q7szed8WMp0JNa7Qtd1E9Oo22F9gA==", + "requires": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.21.4", + "@babel/generator": "^7.22.0", + "@babel/helper-compilation-targets": "^7.22.1", + "@babel/helper-module-transforms": "^7.22.1", + "@babel/helpers": "^7.22.0", + "@babel/parser": "^7.22.0", + "@babel/template": "^7.21.9", + "@babel/traverse": "^7.22.1", + "@babel/types": "^7.22.0", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "@babel/eslint-parser": { + "version": "7.21.8", + "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.21.8.tgz", + "integrity": "sha512-HLhI+2q+BP3sf78mFUZNCGc10KEmoUqtUT1OCdMZsN+qr4qFeLUod62/zAnF3jNQstwyasDkZnVXwfK2Bml7MQ==", + "requires": { + "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", + "eslint-visitor-keys": "^2.1.0", + "semver": "^6.3.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==" + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "@babel/generator": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.3.tgz", + "integrity": "sha512-C17MW4wlk//ES/CJDL51kPNwl+qiBQyN7b9SKyVp11BLGFeSPoVaHrv+MNt8jwQFhQWowW88z1eeBx3pFz9v8A==", + "requires": { + "@babel/types": "^7.22.3", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + } + }, + "@babel/helper-annotate-as-pure": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", + "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.3.tgz", + "integrity": "sha512-ahEoxgqNoYXm0k22TvOke48i1PkavGu0qGCmcq9ugi6gnmvKNaMjKBSrZTnWUi1CFEeNAUiVba0Wtzm03aSkJg==", + "requires": { + "@babel/types": "^7.22.3" + } + }, + "@babel/helper-compilation-targets": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.1.tgz", + "integrity": "sha512-Rqx13UM3yVB5q0D/KwQ8+SPfX/+Rnsy1Lw1k/UwOC4KC6qrzIQoY3lYnBu5EHKBlEHHcj0M0W8ltPSkD8rqfsQ==", + "requires": { + "@babel/compat-data": "^7.22.0", + "@babel/helper-validator-option": "^7.21.0", + "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "@babel/helper-create-class-features-plugin": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.1.tgz", + "integrity": "sha512-SowrZ9BWzYFgzUMwUmowbPSGu6CXL5MSuuCkG3bejahSpSymioPmuLdhPxNOc9MjuNGjy7M/HaXvJ8G82Lywlw==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-member-expression-to-functions": "^7.22.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-replace-supers": "^7.22.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/helper-split-export-declaration": "^7.18.6", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "@babel/helper-create-regexp-features-plugin": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.1.tgz", + "integrity": "sha512-WWjdnfR3LPIe+0EY8td7WmjhytxXtjKAEpnAxun/hkNiyOaPlvGK+NZaBFIdi9ndYV3Gav7BpFvtUwnaJlwi1w==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "regexpu-core": "^5.3.1", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "@babel/helper-define-polyfill-provider": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.0.tgz", + "integrity": "sha512-RnanLx5ETe6aybRi1cO/edaRH+bNYWaryCEmjDDYyNr4wnSzyOp8T0dWipmqVHKEY3AbVKUom50AKSlj1zmKbg==", + "requires": { + "@babel/helper-compilation-targets": "^7.17.7", + "@babel/helper-plugin-utils": "^7.16.7", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2", + "semver": "^6.1.2" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "@babel/helper-environment-visitor": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.1.tgz", + "integrity": "sha512-Z2tgopurB/kTbidvzeBrc2To3PUP/9i5MUe+fU6QJCQDyPwSH2oRapkLw3KGECDYSjhQZCNxEvNvZlLw8JjGwA==" + }, + "@babel/helper-function-name": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz", + "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==", + "requires": { + "@babel/template": "^7.20.7", + "@babel/types": "^7.21.0" + } + }, + "@babel/helper-hoist-variables": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", + "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-member-expression-to-functions": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.3.tgz", + "integrity": "sha512-Gl7sK04b/2WOb6OPVeNy9eFKeD3L6++CzL3ykPOWqTn08xgYYK0wz4TUh2feIImDXxcVW3/9WQ1NMKY66/jfZA==", + "requires": { + "@babel/types": "^7.22.3" + } + }, + "@babel/helper-module-imports": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.21.4.tgz", + "integrity": "sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg==", + "requires": { + "@babel/types": "^7.21.4" + } + }, + "@babel/helper-module-transforms": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.1.tgz", + "integrity": "sha512-dxAe9E7ySDGbQdCVOY/4+UcD8M9ZFqZcZhSPsPacvCG4M+9lwtDDQfI2EoaSvmf7W/8yCBkGU0m7Pvt1ru3UZw==", + "requires": { + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-module-imports": "^7.21.4", + "@babel/helper-simple-access": "^7.21.5", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.19.1", + "@babel/template": "^7.21.9", + "@babel/traverse": "^7.22.1", + "@babel/types": "^7.22.0" + } + }, + "@babel/helper-optimise-call-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", + "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.21.5.tgz", + "integrity": "sha512-0WDaIlXKOX/3KfBK/dwP1oQGiPh6rjMkT7HIRv7i5RR2VUMwrx5ZL0dwBkKx7+SW1zwNdgjHd34IMk5ZjTeHVg==" + }, + "@babel/helper-remap-async-to-generator": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", + "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-wrap-function": "^7.18.9", + "@babel/types": "^7.18.9" + } + }, + "@babel/helper-replace-supers": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.1.tgz", + "integrity": "sha512-ut4qrkE4AuSfrwHSps51ekR1ZY/ygrP1tp0WFm8oVq6nzc/hvfV/22JylndIbsf2U2M9LOMwiSddr6y+78j+OQ==", + "requires": { + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-member-expression-to-functions": "^7.22.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/template": "^7.21.9", + "@babel/traverse": "^7.22.1", + "@babel/types": "^7.22.0" + } + }, + "@babel/helper-simple-access": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.21.5.tgz", + "integrity": "sha512-ENPDAMC1wAjR0uaCUwliBdiSl1KBJAVnMTzXqi64c2MG8MPR6ii4qf7bSXDqSFbr4W6W028/rf5ivoHop5/mkg==", + "requires": { + "@babel/types": "^7.21.5" + } + }, + "@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", + "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", + "requires": { + "@babel/types": "^7.20.0" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", + "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-string-parser": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.21.5.tgz", + "integrity": "sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w==" + }, + "@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" + }, + "@babel/helper-validator-option": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz", + "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==" + }, + "@babel/helper-wrap-function": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz", + "integrity": "sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q==", + "requires": { + "@babel/helper-function-name": "^7.19.0", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.20.5", + "@babel/types": "^7.20.5" + } + }, + "@babel/helpers": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.3.tgz", + "integrity": "sha512-jBJ7jWblbgr7r6wYZHMdIqKc73ycaTcCaWRq4/2LpuPHcx7xMlZvpGQkOYc9HeSjn6rcx15CPlgVcBtZ4WZJ2w==", + "requires": { + "@babel/template": "^7.21.9", + "@babel/traverse": "^7.22.1", + "@babel/types": "^7.22.3" + } + }, + "@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "requires": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + } + }, + "@babel/parser": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.3.tgz", + "integrity": "sha512-vrukxyW/ep8UD1UDzOYpTKQ6abgjFoeG6L+4ar9+c5TN9QnlqiOi6QK7LSR5ewm/ERyGkT/Ai6VboNrxhbr9Uw==" + }, + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", + "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.3.tgz", + "integrity": "sha512-6r4yRwEnorYByILoDRnEqxtojYKuiIv9FojW2E8GUKo9eWBwbKcd9IiZOZpdyXc64RmyGGyPu3/uAcrz/dq2kQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-transform-optional-chaining": "^7.22.3" + } + }, + "@babel/plugin-proposal-class-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", + "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", + "requires": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-proposal-decorators": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.22.3.tgz", + "integrity": "sha512-XjTKH3sHr6pPqG+hR1NCdVupwiosfdKM2oSMyKQVQ5Bym9l/p7BuLAqT5U32zZzRCfPq/TPRPzMiiTE9bOXU4w==", + "requires": { + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-replace-supers": "^7.22.1", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/plugin-syntax-decorators": "^7.22.3" + } + }, + "@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", + "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + } + }, + "@babel/plugin-proposal-numeric-separator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", + "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + } + }, + "@babel/plugin-proposal-optional-chaining": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz", + "integrity": "sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + } + }, + "@babel/plugin-proposal-private-methods": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", + "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", + "requires": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0.tgz", + "integrity": "sha512-ha4zfehbJjc5MmXBlHec1igel5TJXXLDDRbuJ4+XT2TJcyD9/V1919BA8gMvsdHcNMBy4WBUBiRb3nw/EQUtBw==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + } + }, + "@babel/plugin-proposal-unicode-property-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", + "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "requires": { + "@babel/helper-plugin-utils": "^7.12.13" + } + }, + "@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-decorators": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.22.3.tgz", + "integrity": "sha512-R16Zuge73+8/nLcDjkIpyhi5wIbN7i7fiuLJR8yQX7vPAa/ltUKtd3iLbb4AgP5nrLi91HnNUNosELIGUGH1bg==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-flow": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.21.4.tgz", + "integrity": "sha512-l9xd3N+XG4fZRxEP3vXdK6RW7vN1Uf5dxzRC/09wV86wqZ/YYQooBIGNsiRdfNR3/q2/5pPzV4B54J/9ctX5jw==", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-syntax-import-assertions": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", + "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.19.0" + } + }, + "@babel/plugin-syntax-import-attributes": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.3.tgz", + "integrity": "sha512-i35jZJv6aO7hxEbIWQ41adVfOzjm9dcYDNeWlBMd8p0ZQRtNUCBrmGwZt+H5lb+oOC9a3svp956KP0oWGA1YsA==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-jsx": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.21.4.tgz", + "integrity": "sha512-5hewiLct5OKyh6PLKEYaFclcqtIgCb6bmELouxjF6up5q3Sov7rOayW4RwhbaBL0dit8rA80GNfY+UuDp2mBbQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-typescript": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.21.4.tgz", + "integrity": "sha512-xz0D39NvhQn4t4RNsHmDnnsaQizIlUkdtYvLs8La1BlfjQ6JEwxkJGeqJMW2tAXx+q6H+WFuUTXNdYVpEya0YA==", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", + "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-arrow-functions": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.21.5.tgz", + "integrity": "sha512-wb1mhwGOCaXHDTcsRYMKF9e5bbMgqwxtqa2Y1ifH96dXJPwbuLX9qHy3clhrxVqgMz7nyNXs8VkxdH8UBcjKqA==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-async-generator-functions": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.3.tgz", + "integrity": "sha512-36A4Aq48t66btydbZd5Fk0/xJqbpg/v4QWI4AH4cYHBXy9Mu42UOupZpebKFiCFNT9S9rJFcsld0gsv0ayLjtA==", + "requires": { + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-remap-async-to-generator": "^7.18.9", + "@babel/plugin-syntax-async-generators": "^7.8.4" + } + }, + "@babel/plugin-transform-async-to-generator": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.20.7.tgz", + "integrity": "sha512-Uo5gwHPT9vgnSXQxqGtpdufUiWp96gk7yiP4Mp5bm1QMkEmLXBO7PAGYbKoJ6DhAwiNkcHFBol/x5zZZkL/t0Q==", + "requires": { + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-remap-async-to-generator": "^7.18.9" + } + }, + "@babel/plugin-transform-block-scoped-functions": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", + "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-block-scoping": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz", + "integrity": "sha512-Mdrbunoh9SxwFZapeHVrwFmri16+oYotcZysSzhNIVDwIAb1UV+kvnxULSYq9J3/q5MDG+4X6w8QVgD1zhBXNQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-class-properties": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.3.tgz", + "integrity": "sha512-mASLsd6rhOrLZ5F3WbCxkzl67mmOnqik0zrg5W6D/X0QMW7HtvnoL1dRARLKIbMP3vXwkwziuLesPqWVGIl6Bw==", + "requires": { + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-class-static-block": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.3.tgz", + "integrity": "sha512-5BirgNWNOx7cwbTJCOmKFJ1pZjwk5MUfMIwiBBvsirCJMZeQgs5pk6i1OlkVg+1Vef5LfBahFOrdCnAWvkVKMw==", + "requires": { + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + } + }, + "@babel/plugin-transform-classes": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz", + "integrity": "sha512-RZhbYTCEUAe6ntPehC4hlslPWosNHDox+vAs4On/mCLRLfoDVHf6hVEd7kuxr1RnHwJmxFfUM3cZiZRmPxJPXQ==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-replace-supers": "^7.20.7", + "@babel/helper-split-export-declaration": "^7.18.6", + "globals": "^11.1.0" + } + }, + "@babel/plugin-transform-computed-properties": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.21.5.tgz", + "integrity": "sha512-TR653Ki3pAwxBxUe8srfF3e4Pe3FTA46uaNHYyQwIoM4oWKSoOZiDNyHJ0oIoDIUPSRQbQG7jzgVBX3FPVne1Q==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/template": "^7.20.7" + } + }, + "@babel/plugin-transform-destructuring": { + "version": "7.21.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.21.3.tgz", + "integrity": "sha512-bp6hwMFzuiE4HqYEyoGJ/V2LeIWn+hLVKc4pnj++E5XQptwhtcGmSayM029d/j2X1bPKGTlsyPwAubuU22KhMA==", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-dotall-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", + "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-duplicate-keys": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", + "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-dynamic-import": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.1.tgz", + "integrity": "sha512-rlhWtONnVBPdmt+jeewS0qSnMz/3yLFrqAP8hHC6EDcrYRSyuz9f9yQhHvVn2Ad6+yO9fHXac5piudeYrInxwQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + } + }, + "@babel/plugin-transform-exponentiation-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", + "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", + "requires": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-export-namespace-from": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.3.tgz", + "integrity": "sha512-5Ti1cHLTDnt3vX61P9KZ5IG09bFXp4cDVFJIAeCZuxu9OXXJJZp5iP0n/rzM2+iAutJY+KWEyyHcRaHlpQ/P5g==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + } + }, + "@babel/plugin-transform-flow-strip-types": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.21.0.tgz", + "integrity": "sha512-FlFA2Mj87a6sDkW4gfGrQQqwY/dLlBAyJa2dJEZ+FHXUVHBflO2wyKvg+OOEzXfrKYIa4HWl0mgmbCzt0cMb7w==", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-flow": "^7.18.6" + } + }, + "@babel/plugin-transform-for-of": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.5.tgz", + "integrity": "sha512-nYWpjKW/7j/I/mZkGVgHJXh4bA1sfdFnJoOXwJuj4m3Q2EraO/8ZyrkCau9P5tbHQk01RMSt6KYLCsW7730SXQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-function-name": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", + "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", + "requires": { + "@babel/helper-compilation-targets": "^7.18.9", + "@babel/helper-function-name": "^7.18.9", + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-json-strings": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.3.tgz", + "integrity": "sha512-IuvOMdeOOY2X4hRNAT6kwbePtK21BUyrAEgLKviL8pL6AEEVUVcqtRdN/HJXBLGIbt9T3ETmXRnFedRRmQNTYw==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-json-strings": "^7.8.3" + } + }, + "@babel/plugin-transform-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", + "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-logical-assignment-operators": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.3.tgz", + "integrity": "sha512-CbayIfOw4av2v/HYZEsH+Klks3NC2/MFIR3QR8gnpGNNPEaq2fdlVCRYG/paKs7/5hvBLQ+H70pGWOHtlNEWNA==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + } + }, + "@babel/plugin-transform-member-expression-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", + "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-modules-amd": { + "version": "7.20.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.20.11.tgz", + "integrity": "sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g==", + "requires": { + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-modules-commonjs": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.21.5.tgz", + "integrity": "sha512-OVryBEgKUbtqMoB7eG2rs6UFexJi6Zj6FDXx+esBLPTCxCNxAY9o+8Di7IsUGJ+AVhp5ncK0fxWUBd0/1gPhrQ==", + "requires": { + "@babel/helper-module-transforms": "^7.21.5", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-simple-access": "^7.21.5" + } + }, + "@babel/plugin-transform-modules-systemjs": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.22.3.tgz", + "integrity": "sha512-V21W3bKLxO3ZjcBJZ8biSvo5gQ85uIXW2vJfh7JSWf/4SLUSr1tOoHX3ruN4+Oqa2m+BKfsxTR1I+PsvkIWvNw==", + "requires": { + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-module-transforms": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-validator-identifier": "^7.19.1" + } + }, + "@babel/plugin-transform-modules-umd": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", + "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", + "requires": { + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.3.tgz", + "integrity": "sha512-c6HrD/LpUdNNJsISQZpds3TXvfYIAbo+efE9aWmY/PmSRD0agrJ9cPMt4BmArwUQ7ZymEWTFjTyp+yReLJZh0Q==", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-new-target": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.3.tgz", + "integrity": "sha512-5RuJdSo89wKdkRTqtM9RVVJzHum9c2s0te9rB7vZC1zKKxcioWIy+xcu4OoIAjyFZhb/bp5KkunuLin1q7Ct+w==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.3.tgz", + "integrity": "sha512-CpaoNp16nX7ROtLONNuCyenYdY/l7ZsR6aoVa7rW7nMWisoNoQNIH5Iay/4LDyRjKMuElMqXiBoOQCDLTMGZiw==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + } + }, + "@babel/plugin-transform-numeric-separator": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.3.tgz", + "integrity": "sha512-+AF88fPDJrnseMh5vD9+SH6wq4ZMvpiTMHh58uLs+giMEyASFVhcT3NkoyO+NebFCNnpHJEq5AXO2txV4AGPDQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + } + }, + "@babel/plugin-transform-object-rest-spread": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.3.tgz", + "integrity": "sha512-38bzTsqMMCI46/TQnJwPPpy33EjLCc1Gsm2hRTF6zTMWnKsN61vdrpuzIEGQyKEhDSYDKyZHrrd5FMj4gcUHhw==", + "requires": { + "@babel/compat-data": "^7.22.3", + "@babel/helper-compilation-targets": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.22.3" + } + }, + "@babel/plugin-transform-object-super": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", + "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-replace-supers": "^7.18.6" + } + }, + "@babel/plugin-transform-optional-catch-binding": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.3.tgz", + "integrity": "sha512-bnDFWXFzWY0BsOyqaoSXvMQ2F35zutQipugog/rqotL2S4ciFOKlRYUu9djt4iq09oh2/34hqfRR2k1dIvuu4g==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + } + }, + "@babel/plugin-transform-optional-chaining": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.22.3.tgz", + "integrity": "sha512-63v3/UFFxhPKT8j8u1jTTGVyITxl7/7AfOqK8C5gz1rHURPUGe3y5mvIf68eYKGoBNahtJnTxBKug4BQOnzeJg==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + } + }, + "@babel/plugin-transform-parameters": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.3.tgz", + "integrity": "sha512-x7QHQJHPuD9VmfpzboyGJ5aHEr9r7DsAsdxdhJiTB3J3j8dyl+NFZ+rX5Q2RWFDCs61c06qBfS4ys2QYn8UkMw==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-private-methods": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.3.tgz", + "integrity": "sha512-fC7jtjBPFqhqpPAE+O4LKwnLq7gGkD3ZmC2E3i4qWH34mH3gOg2Xrq5YMHUq6DM30xhqM1DNftiRaSqVjEG+ug==", + "requires": { + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-private-property-in-object": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.3.tgz", + "integrity": "sha512-C7MMl4qWLpgVCbXfj3UW8rR1xeCnisQ0cU7YJHV//8oNBS0aCIVg1vFnZXxOckHhEpQyqNNkWmvSEWnMLlc+Vw==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + } + }, + "@babel/plugin-transform-property-literals": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", + "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-react-constant-elements": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.22.3.tgz", + "integrity": "sha512-b5J6muxQYp4H7loAQv/c7GO5cPuRA6H5hx4gO+/Hn+Cu9MRQU0PNiUoWq1L//8sq6kFSNxGXFb2XTaUfa9y+Pg==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-react-display-name": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz", + "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-react-jsx": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.3.tgz", + "integrity": "sha512-JEulRWG2f04a7L8VWaOngWiK6p+JOSpB+DAtwfJgOaej1qdbNxqtK7MwTBHjUA10NeFcszlFNqCdbRcirzh2uQ==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-module-imports": "^7.21.4", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-jsx": "^7.21.4", + "@babel/types": "^7.22.3" + } + }, + "@babel/plugin-transform-react-jsx-development": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz", + "integrity": "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==", + "requires": { + "@babel/plugin-transform-react-jsx": "^7.18.6" + } + }, + "@babel/plugin-transform-react-pure-annotations": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz", + "integrity": "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-regenerator": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.21.5.tgz", + "integrity": "sha512-ZoYBKDb6LyMi5yCsByQ5jmXsHAQDDYeexT1Szvlmui+lADvfSecr5Dxd/PkrTC3pAD182Fcju1VQkB4oCp9M+w==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "regenerator-transform": "^0.15.1" + } + }, + "@babel/plugin-transform-reserved-words": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", + "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-runtime": { + "version": "7.22.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.22.2.tgz", + "integrity": "sha512-ewgWBw1pAoqFg9crO6yhZAQoKWN/iNEGqAmuYegZp+xEpvMHGyLxt0SgPZ9bWG6jx4eff6jQ4JILt5zwj/EoTg==", + "requires": { + "@babel/helper-module-imports": "^7.21.4", + "@babel/helper-plugin-utils": "^7.21.5", + "babel-plugin-polyfill-corejs2": "^0.4.2", + "babel-plugin-polyfill-corejs3": "^0.8.1", + "babel-plugin-polyfill-regenerator": "^0.5.0", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "@babel/plugin-transform-shorthand-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", + "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-spread": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz", + "integrity": "sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw==", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0" + } + }, + "@babel/plugin-transform-sticky-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", + "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-template-literals": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", + "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-typeof-symbol": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", + "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-typescript": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.3.tgz", + "integrity": "sha512-pyjnCIniO5PNaEuGxT28h0HbMru3qCVrMqVgVOz/krComdIrY9W6FCLBq9NWHY8HDGaUlan+UhmZElDENIfCcw==", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/plugin-syntax-typescript": "^7.21.4" + } + }, + "@babel/plugin-transform-unicode-escapes": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.21.5.tgz", + "integrity": "sha512-LYm/gTOwZqsYohlvFUe/8Tujz75LqqVC2w+2qPHLR+WyWHGCZPN1KBpJCJn+4Bk4gOkQy/IXKIge6az5MqwlOg==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-unicode-property-regex": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.3.tgz", + "integrity": "sha512-5ScJ+OmdX+O6HRuMGW4kv7RL9vIKdtdAj9wuWUKy1wbHY3jaM/UlyIiC1G7J6UJiiyMukjjK0QwL3P0vBd0yYg==", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/plugin-transform-unicode-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", + "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-unicode-sets-regex": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.3.tgz", + "integrity": "sha512-hNufLdkF8vqywRp+P55j4FHXqAX2LRUccoZHH7AFn1pq5ZOO2ISKW9w13bFZVjBoTqeve2HOgoJCcaziJVhGNw==", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5" + } + }, + "@babel/preset-env": { + "version": "7.22.2", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.22.2.tgz", + "integrity": "sha512-UPNK9pgphMULvA2EMKIWHU90C47PKyuvQ8pE1MzH7l9PgFcRabdrHhlePpBuWxYZQ+TziP2nycKoI5C1Yhdm9Q==", + "requires": { + "@babel/compat-data": "^7.22.0", + "@babel/helper-compilation-targets": "^7.22.1", + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.0", + "@babel/plugin-proposal-private-property-in-object": "^7.21.0", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.20.0", + "@babel/plugin-syntax-import-attributes": "^7.22.0", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.21.5", + "@babel/plugin-transform-async-generator-functions": "^7.22.0", + "@babel/plugin-transform-async-to-generator": "^7.20.7", + "@babel/plugin-transform-block-scoped-functions": "^7.18.6", + "@babel/plugin-transform-block-scoping": "^7.21.0", + "@babel/plugin-transform-class-properties": "^7.22.0", + "@babel/plugin-transform-class-static-block": "^7.22.0", + "@babel/plugin-transform-classes": "^7.21.0", + "@babel/plugin-transform-computed-properties": "^7.21.5", + "@babel/plugin-transform-destructuring": "^7.21.3", + "@babel/plugin-transform-dotall-regex": "^7.18.6", + "@babel/plugin-transform-duplicate-keys": "^7.18.9", + "@babel/plugin-transform-dynamic-import": "^7.22.1", + "@babel/plugin-transform-exponentiation-operator": "^7.18.6", + "@babel/plugin-transform-export-namespace-from": "^7.22.0", + "@babel/plugin-transform-for-of": "^7.21.5", + "@babel/plugin-transform-function-name": "^7.18.9", + "@babel/plugin-transform-json-strings": "^7.22.0", + "@babel/plugin-transform-literals": "^7.18.9", + "@babel/plugin-transform-logical-assignment-operators": "^7.22.0", + "@babel/plugin-transform-member-expression-literals": "^7.18.6", + "@babel/plugin-transform-modules-amd": "^7.20.11", + "@babel/plugin-transform-modules-commonjs": "^7.21.5", + "@babel/plugin-transform-modules-systemjs": "^7.22.0", + "@babel/plugin-transform-modules-umd": "^7.18.6", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.0", + "@babel/plugin-transform-new-target": "^7.22.0", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.0", + "@babel/plugin-transform-numeric-separator": "^7.22.0", + "@babel/plugin-transform-object-rest-spread": "^7.22.0", + "@babel/plugin-transform-object-super": "^7.18.6", + "@babel/plugin-transform-optional-catch-binding": "^7.22.0", + "@babel/plugin-transform-optional-chaining": "^7.22.0", + "@babel/plugin-transform-parameters": "^7.22.0", + "@babel/plugin-transform-private-methods": "^7.22.0", + "@babel/plugin-transform-private-property-in-object": "^7.22.0", + "@babel/plugin-transform-property-literals": "^7.18.6", + "@babel/plugin-transform-regenerator": "^7.21.5", + "@babel/plugin-transform-reserved-words": "^7.18.6", + "@babel/plugin-transform-shorthand-properties": "^7.18.6", + "@babel/plugin-transform-spread": "^7.20.7", + "@babel/plugin-transform-sticky-regex": "^7.18.6", + "@babel/plugin-transform-template-literals": "^7.18.9", + "@babel/plugin-transform-typeof-symbol": "^7.18.9", + "@babel/plugin-transform-unicode-escapes": "^7.21.5", + "@babel/plugin-transform-unicode-property-regex": "^7.22.0", + "@babel/plugin-transform-unicode-regex": "^7.18.6", + "@babel/plugin-transform-unicode-sets-regex": "^7.22.0", + "@babel/preset-modules": "^0.1.5", + "@babel/types": "^7.22.0", + "babel-plugin-polyfill-corejs2": "^0.4.2", + "babel-plugin-polyfill-corejs3": "^0.8.1", + "babel-plugin-polyfill-regenerator": "^0.5.0", + "core-js-compat": "^3.30.2", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "@babel/preset-modules": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", + "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + } + }, + "@babel/preset-react": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.22.3.tgz", + "integrity": "sha512-lxDz1mnZ9polqClBCVBjIVUypoB4qV3/tZUDb/IlYbW1kiiLaXaX+bInbRjl+lNQ/iUZraQ3+S8daEmoELMWug==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-transform-react-display-name": "^7.18.6", + "@babel/plugin-transform-react-jsx": "^7.22.3", + "@babel/plugin-transform-react-jsx-development": "^7.18.6", + "@babel/plugin-transform-react-pure-annotations": "^7.18.6" + } + }, + "@babel/preset-typescript": { + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.21.5.tgz", + "integrity": "sha512-iqe3sETat5EOrORXiQ6rWfoOg2y68Cs75B9wNxdPW4kixJxh7aXQE1KPdWLDniC24T/6dSnguF33W9j/ZZQcmA==", + "requires": { + "@babel/helper-plugin-utils": "^7.21.5", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-syntax-jsx": "^7.21.4", + "@babel/plugin-transform-modules-commonjs": "^7.21.5", + "@babel/plugin-transform-typescript": "^7.21.3" + } + }, + "@babel/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==" + }, + "@babel/runtime": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.3.tgz", + "integrity": "sha512-XsDuspWKLUsxwCp6r7EhsExHtYfbe5oAGQ19kqngTdCPUoPQzOPdUbD/pB9PJiwb2ptYKQDjSJT3R6dC+EPqfQ==", + "requires": { + "regenerator-runtime": "^0.13.11" + } + }, + "@babel/template": { + "version": "7.21.9", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.21.9.tgz", + "integrity": "sha512-MK0X5k8NKOuWRamiEfc3KEJiHMTkGZNUjzMipqCGDDc6ijRl/B7RGSKVGncu4Ro/HdyzzY6cmoXuKI2Gffk7vQ==", + "requires": { + "@babel/code-frame": "^7.21.4", + "@babel/parser": "^7.21.9", + "@babel/types": "^7.21.5" + } + }, + "@babel/traverse": { + "version": "7.22.1", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.1.tgz", + "integrity": "sha512-lAWkdCoUFnmwLBhIRLciFntGYsIIoC6vIbN8zrLPqBnJmPu7Z6nzqnKd7FsxQUNAvZfVZ0x6KdNvNp8zWIOHSQ==", + "requires": { + "@babel/code-frame": "^7.21.4", + "@babel/generator": "^7.22.0", + "@babel/helper-environment-visitor": "^7.22.1", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.22.0", + "@babel/types": "^7.22.0", + "debug": "^4.1.0", + "globals": "^11.1.0" + } + }, + "@babel/types": { + "version": "7.22.3", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.3.tgz", + "integrity": "sha512-P3na3xIQHTKY4L0YOG7pM8M8uoUIB910WQaSiiMCZUC2Cy8XFEQONGABFnHWBa2gpGKODTAJcNhi5Zk0sLRrzg==", + "requires": { + "@babel/helper-string-parser": "^7.21.5", + "@babel/helper-validator-identifier": "^7.19.1", + "to-fast-properties": "^2.0.0" + } + }, + "@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==" + }, + "@csstools/normalize.css": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@csstools/normalize.css/-/normalize.css-12.0.0.tgz", + "integrity": "sha512-M0qqxAcwCsIVfpFQSlGN5XjXWu8l5JDZN+fPt1LeW5SZexQTgnaEvgXAY+CeygRw0EeppWHi12JxESWiWrB0Sg==" + }, + "@csstools/postcss-cascade-layers": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-cascade-layers/-/postcss-cascade-layers-1.1.1.tgz", + "integrity": "sha512-+KdYrpKC5TgomQr2DlZF4lDEpHcoxnj5IGddYYfBWJAKfj1JtuHUIqMa+E1pJJ+z3kvDViWMqyqPlG4Ja7amQA==", + "requires": { + "@csstools/selector-specificity": "^2.0.2", + "postcss-selector-parser": "^6.0.10" + } + }, + "@csstools/postcss-color-function": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-color-function/-/postcss-color-function-1.1.1.tgz", + "integrity": "sha512-Bc0f62WmHdtRDjf5f3e2STwRAl89N2CLb+9iAwzrv4L2hncrbDwnQD9PCq0gtAt7pOI2leIV08HIBUd4jxD8cw==", + "requires": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-font-format-keywords": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-font-format-keywords/-/postcss-font-format-keywords-1.0.1.tgz", + "integrity": "sha512-ZgrlzuUAjXIOc2JueK0X5sZDjCtgimVp/O5CEqTcs5ShWBa6smhWYbS0x5cVc/+rycTDbjjzoP0KTDnUneZGOg==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-hwb-function": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@csstools/postcss-hwb-function/-/postcss-hwb-function-1.0.2.tgz", + "integrity": "sha512-YHdEru4o3Rsbjmu6vHy4UKOXZD+Rn2zmkAmLRfPet6+Jz4Ojw8cbWxe1n42VaXQhD3CQUXXTooIy8OkVbUcL+w==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-ic-unit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-ic-unit/-/postcss-ic-unit-1.0.1.tgz", + "integrity": "sha512-Ot1rcwRAaRHNKC9tAqoqNZhjdYBzKk1POgWfhN4uCOE47ebGcLRqXjKkApVDpjifL6u2/55ekkpnFcp+s/OZUw==", + "requires": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-is-pseudo-class": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@csstools/postcss-is-pseudo-class/-/postcss-is-pseudo-class-2.0.7.tgz", + "integrity": "sha512-7JPeVVZHd+jxYdULl87lvjgvWldYu+Bc62s9vD/ED6/QTGjy0jy0US/f6BG53sVMTBJ1lzKZFpYmofBN9eaRiA==", + "requires": { + "@csstools/selector-specificity": "^2.0.0", + "postcss-selector-parser": "^6.0.10" + } + }, + "@csstools/postcss-nested-calc": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@csstools/postcss-nested-calc/-/postcss-nested-calc-1.0.0.tgz", + "integrity": "sha512-JCsQsw1wjYwv1bJmgjKSoZNvf7R6+wuHDAbi5f/7MbFhl2d/+v+TvBTU4BJH3G1X1H87dHl0mh6TfYogbT/dJQ==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-normalize-display-values": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-normalize-display-values/-/postcss-normalize-display-values-1.0.1.tgz", + "integrity": "sha512-jcOanIbv55OFKQ3sYeFD/T0Ti7AMXc9nM1hZWu8m/2722gOTxFg7xYu4RDLJLeZmPUVQlGzo4jhzvTUq3x4ZUw==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-oklab-function": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-oklab-function/-/postcss-oklab-function-1.1.1.tgz", + "integrity": "sha512-nJpJgsdA3dA9y5pgyb/UfEzE7W5Ka7u0CX0/HIMVBNWzWemdcTH3XwANECU6anWv/ao4vVNLTMxhiPNZsTK6iA==", + "requires": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-progressive-custom-properties": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@csstools/postcss-progressive-custom-properties/-/postcss-progressive-custom-properties-1.3.0.tgz", + "integrity": "sha512-ASA9W1aIy5ygskZYuWams4BzafD12ULvSypmaLJT2jvQ8G0M3I8PRQhC0h7mG0Z3LI05+agZjqSR9+K9yaQQjA==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-stepped-value-functions": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@csstools/postcss-stepped-value-functions/-/postcss-stepped-value-functions-1.0.1.tgz", + "integrity": "sha512-dz0LNoo3ijpTOQqEJLY8nyaapl6umbmDcgj4AD0lgVQ572b2eqA1iGZYTTWhrcrHztWDDRAX2DGYyw2VBjvCvQ==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-text-decoration-shorthand": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@csstools/postcss-text-decoration-shorthand/-/postcss-text-decoration-shorthand-1.0.0.tgz", + "integrity": "sha512-c1XwKJ2eMIWrzQenN0XbcfzckOLLJiczqy+YvfGmzoVXd7pT9FfObiSEfzs84bpE/VqfpEuAZ9tCRbZkZxxbdw==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-trigonometric-functions": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@csstools/postcss-trigonometric-functions/-/postcss-trigonometric-functions-1.0.2.tgz", + "integrity": "sha512-woKaLO///4bb+zZC2s80l+7cm07M7268MsyG3M0ActXXEFi6SuhvriQYcb58iiKGbjwwIU7n45iRLEHypB47Og==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-unset-value": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@csstools/postcss-unset-value/-/postcss-unset-value-1.0.2.tgz", + "integrity": "sha512-c8J4roPBILnelAsdLr4XOAR/GsTm0GJi4XpcfvoWk3U6KiTCqiFYc63KhRMQQX35jYMp4Ao8Ij9+IZRgMfJp1g==" + }, + "@csstools/selector-specificity": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz", + "integrity": "sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw==" + }, + "@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "requires": { + "eslint-visitor-keys": "^3.3.0" + } + }, + "@eslint-community/regexpp": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", + "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==" + }, + "@eslint/eslintrc": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", + "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", + "requires": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.5.2", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "requires": { + "type-fest": "^0.20.2" + } + }, + "js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "requires": { + "argparse": "^2.0.1" + } + }, + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==" + } + } + }, + "@eslint/js": { + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.41.0.tgz", + "integrity": "sha512-LxcyMGxwmTh2lY9FwHPGWOHmYFCZvbrFCBZL4FzSSsxsRPuhrYUg/49/0KDfW8tnIEaEHtfmn6+NPN+1DqaNmA==" + }, + "@humanwhocodes/config-array": { + "version": "0.11.8", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", + "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", + "requires": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + } + }, + "@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==" + }, + "@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==" + }, + "@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "requires": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "dependencies": { + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "requires": { + "p-limit": "^2.2.0" + } + } + } + }, + "@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==" + }, + "@jest/console": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", + "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", + "requires": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/core": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", + "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", + "requires": { + "@jest/console": "^27.5.1", + "@jest/reporters": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^27.5.1", + "jest-config": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-resolve-dependencies": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "jest-watcher": "^27.5.1", + "micromatch": "^4.0.4", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/environment": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", + "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", + "requires": { + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1" + } + }, + "@jest/expect-utils": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.5.0.tgz", + "integrity": "sha512-fmKzsidoXQT2KwnrwE0SQq3uj8Z763vzR8LnLBwC2qYWEFpjX8daRsk6rHUM1QvNlEW/UJXNXm59ztmJJWs2Mg==", + "requires": { + "jest-get-type": "^29.4.3" + }, + "dependencies": { + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==" + } + } + }, + "@jest/fake-timers": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", + "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", + "requires": { + "@jest/types": "^27.5.1", + "@sinonjs/fake-timers": "^8.0.1", + "@types/node": "*", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + } + }, + "@jest/globals": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", + "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", + "requires": { + "@jest/environment": "^27.5.1", + "@jest/types": "^27.5.1", + "expect": "^27.5.1" + } + }, + "@jest/reporters": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", + "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", + "requires": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-haste-map": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^8.1.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/schemas": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-28.1.3.tgz", + "integrity": "sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg==", + "requires": { + "@sinclair/typebox": "^0.24.1" + } + }, + "@jest/source-map": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", + "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", + "requires": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9", + "source-map": "^0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + } + } + }, + "@jest/test-result": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", + "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", + "requires": { + "@jest/console": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + } + }, + "@jest/test-sequencer": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", + "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", + "requires": { + "@jest/test-result": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-runtime": "^27.5.1" + } + }, + "@jest/transform": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", + "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", + "requires": { + "@babel/core": "^7.1.0", + "@jest/types": "^27.5.1", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-util": "^27.5.1", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/types": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", + "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==" + }, + "@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==" + }, + "@jridgewell/source-map": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", + "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" + }, + "@jridgewell/trace-mapping": { + "version": "0.3.18", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", + "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "requires": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + }, + "dependencies": { + "@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + } + } + }, + "@leichtgewicht/ip-codec": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", + "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==" + }, + "@nicolo-ribaudo/eslint-scope-5-internals": { + "version": "5.1.1-v1", + "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", + "integrity": "sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==", + "requires": { + "eslint-scope": "5.1.1" + }, + "dependencies": { + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" + } + } + }, + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "requires": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==" + }, + "@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "requires": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + } + }, + "@pmmmwh/react-refresh-webpack-plugin": { + "version": "0.5.10", + "resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.10.tgz", + "integrity": "sha512-j0Ya0hCFZPd4x40qLzbhGsh9TMtdb+CJQiso+WxLOPNasohq9cc5SNUcwsZaRH6++Xh91Xkm/xHCkuIiIu0LUA==", + "requires": { + "ansi-html-community": "^0.0.8", + "common-path-prefix": "^3.0.0", + "core-js-pure": "^3.23.3", + "error-stack-parser": "^2.0.6", + "find-up": "^5.0.0", + "html-entities": "^2.1.0", + "loader-utils": "^2.0.4", + "schema-utils": "^3.0.0", + "source-map": "^0.7.3" + } + }, + "@rollup/plugin-babel": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz", + "integrity": "sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==", + "requires": { + "@babel/helper-module-imports": "^7.10.4", + "@rollup/pluginutils": "^3.1.0" + } + }, + "@rollup/plugin-node-resolve": { + "version": "11.2.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz", + "integrity": "sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg==", + "requires": { + "@rollup/pluginutils": "^3.1.0", + "@types/resolve": "1.17.1", + "builtin-modules": "^3.1.0", + "deepmerge": "^4.2.2", + "is-module": "^1.0.0", + "resolve": "^1.19.0" + } + }, + "@rollup/plugin-replace": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-2.4.2.tgz", + "integrity": "sha512-IGcu+cydlUMZ5En85jxHH4qj2hta/11BHq95iHEyb2sbgiN0eCdzvUcHw5gt9pBL5lTi4JDYJ1acCoMGpTvEZg==", + "requires": { + "@rollup/pluginutils": "^3.1.0", + "magic-string": "^0.25.7" + } + }, + "@rollup/pluginutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", + "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", + "requires": { + "@types/estree": "0.0.39", + "estree-walker": "^1.0.1", + "picomatch": "^2.2.2" + }, + "dependencies": { + "@types/estree": { + "version": "0.0.39", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", + "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==" + } + } + }, + "@rushstack/eslint-patch": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.3.0.tgz", + "integrity": "sha512-IthPJsJR85GhOkp3Hvp8zFOPK5ynKn6STyHa/WZpioK7E1aYDiBzpqQPrngc14DszIUkIrdd3k9Iu0XSzlP/1w==" + }, + "@sinclair/typebox": { + "version": "0.24.51", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.51.tgz", + "integrity": "sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA==" + }, + "@sinonjs/commons": { + "version": "1.8.6", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", + "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", + "requires": { + "type-detect": "4.0.8" + } + }, + "@sinonjs/fake-timers": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", + "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", + "requires": { + "@sinonjs/commons": "^1.7.0" + } + }, + "@surma/rollup-plugin-off-main-thread": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz", + "integrity": "sha512-lR8q/9W7hZpMWweNiAKU7NQerBnzQQLvi8qnTDU/fxItPhtZVMbPV3lbCwjhIlNBe9Bbr5V+KHshvWmVSG9cxQ==", + "requires": { + "ejs": "^3.1.6", + "json5": "^2.2.0", + "magic-string": "^0.25.0", + "string.prototype.matchall": "^4.0.6" + } + }, + "@svgr/babel-plugin-add-jsx-attribute": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-5.4.0.tgz", + "integrity": "sha512-ZFf2gs/8/6B8PnSofI0inYXr2SDNTDScPXhN7k5EqD4aZ3gi6u+rbmZHVB8IM3wDyx8ntKACZbtXSm7oZGRqVg==" + }, + "@svgr/babel-plugin-remove-jsx-attribute": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-5.4.0.tgz", + "integrity": "sha512-yaS4o2PgUtwLFGTKbsiAy6D0o3ugcUhWK0Z45umJ66EPWunAz9fuFw2gJuje6wqQvQWOTJvIahUwndOXb7QCPg==" + }, + "@svgr/babel-plugin-remove-jsx-empty-expression": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-5.0.1.tgz", + "integrity": "sha512-LA72+88A11ND/yFIMzyuLRSMJ+tRKeYKeQ+mR3DcAZ5I4h5CPWN9AHyUzJbWSYp/u2u0xhmgOe0+E41+GjEueA==" + }, + "@svgr/babel-plugin-replace-jsx-attribute-value": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-5.0.1.tgz", + "integrity": "sha512-PoiE6ZD2Eiy5mK+fjHqwGOS+IXX0wq/YDtNyIgOrc6ejFnxN4b13pRpiIPbtPwHEc+NT2KCjteAcq33/F1Y9KQ==" + }, + "@svgr/babel-plugin-svg-dynamic-title": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-5.4.0.tgz", + "integrity": "sha512-zSOZH8PdZOpuG1ZVx/cLVePB2ibo3WPpqo7gFIjLV9a0QsuQAzJiwwqmuEdTaW2pegyBE17Uu15mOgOcgabQZg==" + }, + "@svgr/babel-plugin-svg-em-dimensions": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-5.4.0.tgz", + "integrity": "sha512-cPzDbDA5oT/sPXDCUYoVXEmm3VIoAWAPT6mSPTJNbQaBNUuEKVKyGH93oDY4e42PYHRW67N5alJx/eEol20abw==" + }, + "@svgr/babel-plugin-transform-react-native-svg": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-5.4.0.tgz", + "integrity": "sha512-3eYP/SaopZ41GHwXma7Rmxcv9uRslRDTY1estspeB1w1ueZWd/tPlMfEOoccYpEMZU3jD4OU7YitnXcF5hLW2Q==" + }, + "@svgr/babel-plugin-transform-svg-component": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-5.5.0.tgz", + "integrity": "sha512-q4jSH1UUvbrsOtlo/tKcgSeiCHRSBdXoIoqX1pgcKK/aU3JD27wmMKwGtpB8qRYUYoyXvfGxUVKchLuR5pB3rQ==" + }, + "@svgr/babel-preset": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-5.5.0.tgz", + "integrity": "sha512-4FiXBjvQ+z2j7yASeGPEi8VD/5rrGQk4Xrq3EdJmoZgz/tpqChpo5hgXDvmEauwtvOc52q8ghhZK4Oy7qph4ig==", + "requires": { + "@svgr/babel-plugin-add-jsx-attribute": "^5.4.0", + "@svgr/babel-plugin-remove-jsx-attribute": "^5.4.0", + "@svgr/babel-plugin-remove-jsx-empty-expression": "^5.0.1", + "@svgr/babel-plugin-replace-jsx-attribute-value": "^5.0.1", + "@svgr/babel-plugin-svg-dynamic-title": "^5.4.0", + "@svgr/babel-plugin-svg-em-dimensions": "^5.4.0", + "@svgr/babel-plugin-transform-react-native-svg": "^5.4.0", + "@svgr/babel-plugin-transform-svg-component": "^5.5.0" + } + }, + "@svgr/core": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/core/-/core-5.5.0.tgz", + "integrity": "sha512-q52VOcsJPvV3jO1wkPtzTuKlvX7Y3xIcWRpCMtBF3MrteZJtBfQw/+u0B1BHy5ColpQc1/YVTrPEtSYIMNZlrQ==", + "requires": { + "@svgr/plugin-jsx": "^5.5.0", + "camelcase": "^6.2.0", + "cosmiconfig": "^7.0.0" + } + }, + "@svgr/hast-util-to-babel-ast": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-5.5.0.tgz", + "integrity": "sha512-cAaR/CAiZRB8GP32N+1jocovUtvlj0+e65TB50/6Lcime+EA49m/8l+P2ko+XPJ4dw3xaPS3jOL4F2X4KWxoeQ==", + "requires": { + "@babel/types": "^7.12.6" + } + }, + "@svgr/plugin-jsx": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-5.5.0.tgz", + "integrity": "sha512-V/wVh33j12hGh05IDg8GpIUXbjAPnTdPTKuP4VNLggnwaHMPNQNae2pRnyTAILWCQdz5GyMqtO488g7CKM8CBA==", + "requires": { + "@babel/core": "^7.12.3", + "@svgr/babel-preset": "^5.5.0", + "@svgr/hast-util-to-babel-ast": "^5.5.0", + "svg-parser": "^2.0.2" + } + }, + "@svgr/plugin-svgo": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-5.5.0.tgz", + "integrity": "sha512-r5swKk46GuQl4RrVejVwpeeJaydoxkdwkM1mBKOgJLBUJPGaLci6ylg/IjhrRsREKDkr4kbMWdgOtbXEh0fyLQ==", + "requires": { + "cosmiconfig": "^7.0.0", + "deepmerge": "^4.2.2", + "svgo": "^1.2.2" + } + }, + "@svgr/webpack": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@svgr/webpack/-/webpack-5.5.0.tgz", + "integrity": "sha512-DOBOK255wfQxguUta2INKkzPj6AIS6iafZYiYmHn6W3pHlycSRRlvWKCfLDG10fXfLWqE3DJHgRUOyJYmARa7g==", + "requires": { + "@babel/core": "^7.12.3", + "@babel/plugin-transform-react-constant-elements": "^7.12.1", + "@babel/preset-env": "^7.12.1", + "@babel/preset-react": "^7.12.5", + "@svgr/core": "^5.5.0", + "@svgr/plugin-jsx": "^5.5.0", + "@svgr/plugin-svgo": "^5.5.0", + "loader-utils": "^2.0.0" + } + }, + "@testing-library/dom": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.20.0.tgz", + "integrity": "sha512-d9ULIT+a4EXLX3UU8FBjauG9NnsZHkHztXoIcTsOKoOw030fyjheN9svkTULjJxtYag9DZz5Jz5qkWZDPxTFwA==", + "requires": { + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^5.0.1", + "aria-query": "^5.0.0", + "chalk": "^4.1.0", + "dom-accessibility-api": "^0.5.9", + "lz-string": "^1.4.4", + "pretty-format": "^27.0.2" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@testing-library/jest-dom": { + "version": "5.16.5", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.5.tgz", + "integrity": "sha512-N5ixQ2qKpi5OLYfwQmUb/5mSV9LneAcaUfp32pn4yCnpb8r/Yz0pXFPck21dIicKmi+ta5WRAknkZCfA8refMA==", + "requires": { + "@adobe/css-tools": "^4.0.1", + "@babel/runtime": "^7.9.2", + "@types/testing-library__jest-dom": "^5.9.1", + "aria-query": "^5.0.0", + "chalk": "^3.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.5.6", + "lodash": "^4.17.15", + "redent": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@testing-library/react": { + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-13.4.0.tgz", + "integrity": "sha512-sXOGON+WNTh3MLE9rve97ftaZukN3oNf2KjDy7YTx6hcTO2uuLHuCGynMDhFwGw/jYf4OJ2Qk0i4i79qMNNkyw==", + "requires": { + "@babel/runtime": "^7.12.5", + "@testing-library/dom": "^8.5.0", + "@types/react-dom": "^18.0.0" + } + }, + "@testing-library/user-event": { + "version": "13.5.0", + "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-13.5.0.tgz", + "integrity": "sha512-5Kwtbo3Y/NowpkbRuSepbyMFkZmHgD+vPzYB/RJ4oxt5Gj/avFFBYjhw27cqSVPVw/3a67NK1PbiIr9k4Gwmdg==", + "requires": { + "@babel/runtime": "^7.12.5" + } + }, + "@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==" + }, + "@trysound/sax": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", + "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==" + }, + "@types/aria-query": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.1.tgz", + "integrity": "sha512-XTIieEY+gvJ39ChLcB4If5zHtPxt3Syj5rgZR+e1ctpmK8NjPf0zFqsz4JpLJT0xla9GFDKjy8Cpu331nrmE1Q==" + }, + "@types/babel__core": { + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", + "integrity": "sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==", + "requires": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "@types/babel__generator": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", + "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@types/babel__template": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", + "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@types/babel__traverse": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.0.tgz", + "integrity": "sha512-TBOjqAGf0hmaqRwpii5LLkJLg7c6OMm4nHLmpsUxwk9bBHtoTC6dAHdVWdGv4TBxj2CZOZY8Xfq8WmfoVi7n4Q==", + "requires": { + "@babel/types": "^7.20.7" + } + }, + "@types/body-parser": { + "version": "1.19.2", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", + "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", + "requires": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "@types/bonjour": { + "version": "3.5.10", + "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.10.tgz", + "integrity": "sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==", + "requires": { + "@types/node": "*" + } + }, + "@types/connect": { + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", + "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", + "requires": { + "@types/node": "*" + } + }, + "@types/connect-history-api-fallback": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz", + "integrity": "sha512-4x5FkPpLipqwthjPsF7ZRbOv3uoLUFkTA9G9v583qi4pACvq0uTELrB8OLUzPWUI4IJIyvM85vzkV1nyiI2Lig==", + "requires": { + "@types/express-serve-static-core": "*", + "@types/node": "*" + } + }, + "@types/eslint": { + "version": "8.40.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.0.tgz", + "integrity": "sha512-nbq2mvc/tBrK9zQQuItvjJl++GTN5j06DaPtp3hZCpngmG6Q3xoyEmd0TwZI0gAy/G1X0zhGBbr2imsGFdFV0g==", + "requires": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "@types/eslint-scope": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "requires": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "@types/estree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", + "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==" + }, + "@types/express": { + "version": "4.17.17", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", + "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", + "requires": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "@types/express-serve-static-core": { + "version": "4.17.35", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz", + "integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==", + "requires": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "@types/graceful-fs": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", + "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", + "requires": { + "@types/node": "*" + } + }, + "@types/html-minifier-terser": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", + "integrity": "sha512-oh/6byDPnL1zeNXFrDXFLyZjkr1MsBG667IM792caf1L2UPOOMf65NFzjUH/ltyfwjAGfs1rsX1eftK0jC/KIg==" + }, + "@types/http-proxy": { + "version": "1.17.11", + "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.11.tgz", + "integrity": "sha512-HC8G7c1WmaF2ekqpnFq626xd3Zz0uvaqFmBJNRZCGEZCXkvSdJoNFn/8Ygbd9fKNQj8UzLdCETaI0UWPAjK7IA==", + "requires": { + "@types/node": "*" + } + }, + "@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==" + }, + "@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "requires": { + "@types/istanbul-lib-coverage": "*" + } + }, + "@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/jest": { + "version": "29.5.1", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.1.tgz", + "integrity": "sha512-tEuVcHrpaixS36w7hpsfLBLpjtMRJUE09/MHXn923LOVojDwyC14cWcfc0rDs0VEfUyYmt/+iX1kxxp+gZMcaQ==", + "requires": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + }, + "dependencies": { + "@jest/schemas": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.4.3.tgz", + "integrity": "sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg==", + "requires": { + "@sinclair/typebox": "^0.25.16" + } + }, + "@jest/types": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.5.0.tgz", + "integrity": "sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==", + "requires": { + "@jest/schemas": "^29.4.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + } + }, + "@sinclair/typebox": { + "version": "0.25.24", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.24.tgz", + "integrity": "sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==" + }, + "@types/yargs": { + "version": "17.0.24", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", + "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", + "requires": { + "@types/yargs-parser": "*" + } + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "diff-sequences": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", + "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==" + }, + "expect": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.5.0.tgz", + "integrity": "sha512-yM7xqUrCO2JdpFo4XpM82t+PJBFybdqoQuJLDGeDX2ij8NZzqRHyu3Hp188/JX7SWqud+7t4MUdvcgGBICMHZg==", + "requires": { + "@jest/expect-utils": "^29.5.0", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-util": "^29.5.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "jest-diff": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.5.0.tgz", + "integrity": "sha512-LtxijLLZBduXnHSniy0WMdaHjmQnt3g5sa16W4p0HqukYTTsyTW3GD1q41TyGl5YFXj/5B2U6dlh5FM1LIMgxw==", + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + } + }, + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==" + }, + "jest-matcher-utils": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.5.0.tgz", + "integrity": "sha512-lecRtgm/rjIK0CQ7LPQwzCs2VwW6WAahA55YBuI+xqmhm7LAaxokSB8C97yJeYyT+HvQkH741StzpU41wohhWw==", + "requires": { + "chalk": "^4.0.0", + "jest-diff": "^29.5.0", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + } + }, + "jest-message-util": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.5.0.tgz", + "integrity": "sha512-Kijeg9Dag6CKtIDA7O21zNTACqD5MD/8HfIV8pdD94vFyFuer52SigdC3IQMhab3vACxXMiFk+yMHNdbqtyTGA==", + "requires": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.5.0", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.5.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + } + }, + "jest-util": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.5.0.tgz", + "integrity": "sha512-RYMgG/MTadOr5t8KdhejfvUU82MxsCu5MF6KuDUHl+NuwzUt+Sm6jJWxTJVrDR1j5M/gJVCPKQEpWXY+yIQ6lQ==", + "requires": { + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "pretty-format": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", + "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", + "requires": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==" + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@types/json-schema": { + "version": "7.0.12", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", + "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==" + }, + "@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==" + }, + "@types/mime": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", + "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==" + }, + "@types/node": { + "version": "20.2.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz", + "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==" + }, + "@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==" + }, + "@types/prettier": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.2.tgz", + "integrity": "sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==" + }, + "@types/prop-types": { + "version": "15.7.5", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", + "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==" + }, + "@types/q": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@types/q/-/q-1.5.5.tgz", + "integrity": "sha512-L28j2FcJfSZOnL1WBjDYp2vUHCeIFlyYI/53EwD/rKUBQ7MtUUfbQWiyKJGpcnv4/WgrhWsFKrcPstcAt/J0tQ==" + }, + "@types/qs": { + "version": "6.9.7", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", + "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==" + }, + "@types/range-parser": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", + "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" + }, + "@types/react": { + "version": "18.2.7", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.7.tgz", + "integrity": "sha512-ojrXpSH2XFCmHm7Jy3q44nXDyN54+EYKP2lBhJ2bqfyPj6cIUW/FZW/Csdia34NQgq7KYcAlHi5184m4X88+yw==", + "requires": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, + "@types/react-dom": { + "version": "18.2.4", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.4.tgz", + "integrity": "sha512-G2mHoTMTL4yoydITgOGwWdWMVd8sNgyEP85xVmMKAPUBwQWm9wBPQUmvbeF4V3WBY1P7mmL4BkjQ0SqUpf1snw==", + "requires": { + "@types/react": "*" + } + }, + "@types/resolve": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", + "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", + "requires": { + "@types/node": "*" + } + }, + "@types/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==" + }, + "@types/scheduler": { + "version": "0.16.3", + "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz", + "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==" + }, + "@types/semver": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz", + "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==" + }, + "@types/send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz", + "integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==", + "requires": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "@types/serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==", + "requires": { + "@types/express": "*" + } + }, + "@types/serve-static": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", + "integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==", + "requires": { + "@types/mime": "*", + "@types/node": "*" + } + }, + "@types/sockjs": { + "version": "0.3.33", + "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz", + "integrity": "sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==", + "requires": { + "@types/node": "*" + } + }, + "@types/stack-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", + "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==" + }, + "@types/testing-library__jest-dom": { + "version": "5.14.6", + "resolved": "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.6.tgz", + "integrity": "sha512-FkHXCb+ikSoUP4Y4rOslzTdX5sqYwMxfefKh1GmZ8ce1GOkEHntSp6b5cGadmNfp5e4BMEWOMx+WSKd5/MqlDA==", + "requires": { + "@types/jest": "*" + } + }, + "@types/trusted-types": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.3.tgz", + "integrity": "sha512-NfQ4gyz38SL8sDNrSixxU2Os1a5xcdFxipAFxYEuLUlvU2uDwS4NUpsImcf1//SlWItCVMMLiylsxbmNMToV/g==" + }, + "@types/ws": { + "version": "8.5.4", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", + "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==", + "requires": { + "@types/node": "*" + } + }, + "@types/yargs": { + "version": "16.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", + "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", + "requires": { + "@types/yargs-parser": "*" + } + }, + "@types/yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==" + }, + "@typescript-eslint/eslint-plugin": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.7.tgz", + "integrity": "sha512-BL+jYxUFIbuYwy+4fF86k5vdT9lT0CNJ6HtwrIvGh0PhH8s0yy5rjaKH2fDCrz5ITHy07WCzVGNvAmjJh4IJFA==", + "requires": { + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.59.7", + "@typescript-eslint/type-utils": "5.59.7", + "@typescript-eslint/utils": "5.59.7", + "debug": "^4.3.4", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/experimental-utils": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.59.7.tgz", + "integrity": "sha512-jqM0Cjfvta/sBlY1MxdXYv853/dJUC2wmUWnKoG2srwp0njNGQ6Zu/XLWoRFiLvocQbzBbpHkPFwKgC2UqyovA==", + "requires": { + "@typescript-eslint/utils": "5.59.7" + } + }, + "@typescript-eslint/parser": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.7.tgz", + "integrity": "sha512-VhpsIEuq/8i5SF+mPg9jSdIwgMBBp0z9XqjiEay+81PYLJuroN+ET1hM5IhkiYMJd9MkTz8iJLt7aaGAgzWUbQ==", + "requires": { + "@typescript-eslint/scope-manager": "5.59.7", + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/typescript-estree": "5.59.7", + "debug": "^4.3.4" + } + }, + "@typescript-eslint/scope-manager": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.7.tgz", + "integrity": "sha512-FL6hkYWK9zBGdxT2wWEd2W8ocXMu3K94i3gvMrjXpx+koFYdYV7KprKfirpgY34vTGzEPPuKoERpP8kD5h7vZQ==", + "requires": { + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/visitor-keys": "5.59.7" + } + }, + "@typescript-eslint/type-utils": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.7.tgz", + "integrity": "sha512-ozuz/GILuYG7osdY5O5yg0QxXUAEoI4Go3Do5xeu+ERH9PorHBPSdvD3Tjp2NN2bNLh1NJQSsQu2TPu/Ly+HaQ==", + "requires": { + "@typescript-eslint/typescript-estree": "5.59.7", + "@typescript-eslint/utils": "5.59.7", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/types": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.7.tgz", + "integrity": "sha512-UnVS2MRRg6p7xOSATscWkKjlf/NDKuqo5TdbWck6rIRZbmKpVNTLALzNvcjIfHBE7736kZOFc/4Z3VcZwuOM/A==" + }, + "@typescript-eslint/typescript-estree": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.7.tgz", + "integrity": "sha512-4A1NtZ1I3wMN2UGDkU9HMBL+TIQfbrh4uS0WDMMpf3xMRursDbqEf1ahh6vAAe3mObt8k3ZATnezwG4pdtWuUQ==", + "requires": { + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/visitor-keys": "5.59.7", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/utils": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.7.tgz", + "integrity": "sha512-yCX9WpdQKaLufz5luG4aJbOpdXf/fjwGMcLFXZVPUz3QqLirG5QcwwnIHNf8cjLjxK4qtzTO8udUtMQSAToQnQ==", + "requires": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.59.7", + "@typescript-eslint/types": "5.59.7", + "@typescript-eslint/typescript-estree": "5.59.7", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "dependencies": { + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" + } + } + }, + "@typescript-eslint/visitor-keys": { + "version": "5.59.7", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.7.tgz", + "integrity": "sha512-tyN+X2jvMslUszIiYbF0ZleP+RqQsFVpGrKI6e0Eet1w8WmhsAtmzaqm8oM8WJQ1ysLwhnsK/4hYHJjOgJVfQQ==", + "requires": { + "@typescript-eslint/types": "5.59.7", + "eslint-visitor-keys": "^3.3.0" + } + }, + "@webassemblyjs/ast": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", + "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", + "requires": { + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + } + }, + "@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==" + }, + "@webassemblyjs/helper-api-error": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==" + }, + "@webassemblyjs/helper-buffer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", + "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==" + }, + "@webassemblyjs/helper-numbers": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "requires": { + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==" + }, + "@webassemblyjs/helper-wasm-section": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", + "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6" + } + }, + "@webassemblyjs/ieee754": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "requires": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "@webassemblyjs/leb128": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", + "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "requires": { + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/utf8": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", + "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==" + }, + "@webassemblyjs/wasm-edit": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", + "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-opt": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6", + "@webassemblyjs/wast-printer": "1.11.6" + } + }, + "@webassemblyjs/wasm-gen": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", + "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "@webassemblyjs/wasm-opt": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", + "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6" + } + }, + "@webassemblyjs/wasm-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", + "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "@webassemblyjs/wast-printer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", + "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", + "requires": { + "@webassemblyjs/ast": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" + }, + "@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" + }, + "abab": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", + "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==" + }, + "accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "requires": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + } + }, + "acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==" + }, + "acorn-globals": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", + "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", + "requires": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" + }, + "dependencies": { + "acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==" + } + } + }, + "acorn-import-assertions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==" + }, + "acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==" + }, + "acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==" + }, + "address": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/address/-/address-1.2.2.tgz", + "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==" + }, + "adjust-sourcemap-loader": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz", + "integrity": "sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A==", + "requires": { + "loader-utils": "^2.0.0", + "regex-parser": "^2.2.11" + } + }, + "agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "requires": { + "debug": "4" + } + }, + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "requires": { + "ajv": "^8.0.0" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + } + } + }, + "ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==" + }, + "ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "requires": { + "type-fest": "^0.21.3" + } + }, + "ansi-html-community": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", + "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==" + }, + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "requires": { + "color-convert": "^1.9.0" + } + }, + "any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==" + }, + "anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "aria-query": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", + "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", + "requires": { + "deep-equal": "^2.0.5" + } + }, + "array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "requires": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + } + }, + "array-flatten": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", + "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==" + }, + "array-includes": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", + "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "is-string": "^1.0.7" + } + }, + "array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==" + }, + "array.prototype.flat": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", + "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + } + }, + "array.prototype.flatmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", + "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + } + }, + "array.prototype.reduce": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/array.prototype.reduce/-/array.prototype.reduce-1.0.5.tgz", + "integrity": "sha512-kDdugMl7id9COE8R7MHF5jWk7Dqt/fs4Pv+JXoICnYwqpjjjbUurz6w5fT5IG6brLdJhv6/VoHB0H7oyIBXd+Q==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-array-method-boxes-properly": "^1.0.0", + "is-string": "^1.0.7" + } + }, + "array.prototype.tosorted": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", + "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.1.3" + } + }, + "asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" + }, + "ast-types-flow": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", + "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==" + }, + "async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==" + }, + "autoprefixer": { + "version": "10.4.14", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz", + "integrity": "sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==", + "requires": { + "browserslist": "^4.21.5", + "caniuse-lite": "^1.0.30001464", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + } + }, + "available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==" + }, + "axe-core": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", + "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==" + }, + "axobject-query": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz", + "integrity": "sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==", + "requires": { + "deep-equal": "^2.0.5" + } + }, + "babel-jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", + "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", + "requires": { + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "babel-loader": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.3.0.tgz", + "integrity": "sha512-H8SvsMF+m9t15HNLMipppzkC+Y2Yq+v3SonZyU70RBL/h1gxPkH08Ot8pEE9Z4Kd+czyWJClmFS8qzIP9OZ04Q==", + "requires": { + "find-cache-dir": "^3.3.1", + "loader-utils": "^2.0.0", + "make-dir": "^3.1.0", + "schema-utils": "^2.6.5" + }, + "dependencies": { + "schema-utils": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", + "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", + "requires": { + "@types/json-schema": "^7.0.5", + "ajv": "^6.12.4", + "ajv-keywords": "^3.5.2" + } + } + } + }, + "babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + } + }, + "babel-plugin-jest-hoist": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", + "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", + "requires": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + } + }, + "babel-plugin-macros": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", + "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==", + "requires": { + "@babel/runtime": "^7.12.5", + "cosmiconfig": "^7.0.0", + "resolve": "^1.19.0" + } + }, + "babel-plugin-named-asset-import": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/babel-plugin-named-asset-import/-/babel-plugin-named-asset-import-0.3.8.tgz", + "integrity": "sha512-WXiAc++qo7XcJ1ZnTYGtLxmBCVbddAml3CEXgWaBzNzLNoxtQ8AiGEFDMOhot9XjTCQbvP5E77Fj9Gk924f00Q==" + }, + "babel-plugin-polyfill-corejs2": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.3.tgz", + "integrity": "sha512-bM3gHc337Dta490gg+/AseNB9L4YLHxq1nGKZZSHbhXv4aTYU2MD2cjza1Ru4S6975YLTaL1K8uJf6ukJhhmtw==", + "requires": { + "@babel/compat-data": "^7.17.7", + "@babel/helper-define-polyfill-provider": "^0.4.0", + "semver": "^6.1.1" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "babel-plugin-polyfill-corejs3": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.1.tgz", + "integrity": "sha512-ikFrZITKg1xH6pLND8zT14UPgjKHiGLqex7rGEZCH2EvhsneJaJPemmpQaIZV5AL03II+lXylw3UmddDK8RU5Q==", + "requires": { + "@babel/helper-define-polyfill-provider": "^0.4.0", + "core-js-compat": "^3.30.1" + } + }, + "babel-plugin-polyfill-regenerator": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.0.tgz", + "integrity": "sha512-hDJtKjMLVa7Z+LwnTCxoDLQj6wdc+B8dun7ayF2fYieI6OzfuvcLMB32ihJZ4UhCBwNYGl5bg/x/P9cMdnkc2g==", + "requires": { + "@babel/helper-define-polyfill-provider": "^0.4.0" + } + }, + "babel-plugin-transform-react-remove-prop-types": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz", + "integrity": "sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA==" + }, + "babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "requires": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + } + }, + "babel-preset-jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", + "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", + "requires": { + "babel-plugin-jest-hoist": "^27.5.1", + "babel-preset-current-node-syntax": "^1.0.0" + } + }, + "babel-preset-react-app": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-react-app/-/babel-preset-react-app-10.0.1.tgz", + "integrity": "sha512-b0D9IZ1WhhCWkrTXyFuIIgqGzSkRIH5D5AmB0bXbzYAB1OBAwHcUeyWW2LorutLWF5btNo/N7r/cIdmvvKJlYg==", + "requires": { + "@babel/core": "^7.16.0", + "@babel/plugin-proposal-class-properties": "^7.16.0", + "@babel/plugin-proposal-decorators": "^7.16.4", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0", + "@babel/plugin-proposal-numeric-separator": "^7.16.0", + "@babel/plugin-proposal-optional-chaining": "^7.16.0", + "@babel/plugin-proposal-private-methods": "^7.16.0", + "@babel/plugin-transform-flow-strip-types": "^7.16.0", + "@babel/plugin-transform-react-display-name": "^7.16.0", + "@babel/plugin-transform-runtime": "^7.16.4", + "@babel/preset-env": "^7.16.4", + "@babel/preset-react": "^7.16.0", + "@babel/preset-typescript": "^7.16.0", + "@babel/runtime": "^7.16.3", + "babel-plugin-macros": "^3.1.0", + "babel-plugin-transform-react-remove-prop-types": "^0.4.24" + } + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "batch": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", + "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==" + }, + "bfj": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/bfj/-/bfj-7.0.2.tgz", + "integrity": "sha512-+e/UqUzwmzJamNF50tBV6tZPTORow7gQ96iFow+8b562OdMpEK0BcJEq2OSPEDmAbSMBQ7PKZ87ubFkgxpYWgw==", + "requires": { + "bluebird": "^3.5.5", + "check-types": "^11.1.1", + "hoopy": "^0.1.4", + "tryer": "^1.0.1" + } + }, + "big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==" + }, + "binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==" + }, + "bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" + }, + "body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "requires": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "dependencies": { + "bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, + "bonjour-service": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.1.1.tgz", + "integrity": "sha512-Z/5lQRMOG9k7W+FkeGTNjh7htqn/2LMnfOvBZ8pynNZCM9MwkQkI3zeI4oz09uWdcgmgHugVvBqxGg4VQJ5PCg==", + "requires": { + "array-flatten": "^2.1.2", + "dns-equal": "^1.0.0", + "fast-deep-equal": "^3.1.3", + "multicast-dns": "^7.2.5" + } + }, + "boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "requires": { + "fill-range": "^7.0.1" + } + }, + "browser-process-hrtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", + "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==" + }, + "browserslist": { + "version": "4.21.5", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz", + "integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==", + "requires": { + "caniuse-lite": "^1.0.30001449", + "electron-to-chromium": "^1.4.284", + "node-releases": "^2.0.8", + "update-browserslist-db": "^1.0.10" + } + }, + "bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "requires": { + "node-int64": "^0.4.0" + } + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + }, + "builtin-modules": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", + "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==" + }, + "bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==" + }, + "call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "requires": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + } + }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" + }, + "camel-case": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", + "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", + "requires": { + "pascal-case": "^3.1.2", + "tslib": "^2.0.3" + } + }, + "camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==" + }, + "camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==" + }, + "caniuse-api": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", + "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", + "requires": { + "browserslist": "^4.0.0", + "caniuse-lite": "^1.0.0", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" + } + }, + "caniuse-lite": { + "version": "1.0.30001489", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001489.tgz", + "integrity": "sha512-x1mgZEXK8jHIfAxm+xgdpHpk50IN3z3q3zP261/WS+uvePxW8izXuCu6AHz0lkuYTlATDehiZ/tNyYBdSQsOUQ==" + }, + "case-sensitive-paths-webpack-plugin": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.4.0.tgz", + "integrity": "sha512-roIFONhcxog0JSSWbvVAh3OocukmSgpqOH6YpMkCvav/ySIV3JKg4Dc8vYtQjYi/UxpNE36r/9v+VqTQqgkYmw==" + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==" + }, + "check-types": { + "version": "11.2.2", + "resolved": "https://registry.npmjs.org/check-types/-/check-types-11.2.2.tgz", + "integrity": "sha512-HBiYvXvn9Z70Z88XKjz3AEKd4HJhBXsa3j7xFnITAzoS8+q6eIGi8qDB8FKPBAjtuxjI/zFpwuiCb8oDtKOYrA==" + }, + "chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "requires": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "fsevents": "~2.3.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "dependencies": { + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "requires": { + "is-glob": "^4.0.1" + } + } + } + }, + "chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==" + }, + "ci-info": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", + "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==" + }, + "cjs-module-lexer": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", + "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==" + }, + "clean-css": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.2.tgz", + "integrity": "sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==", + "requires": { + "source-map": "~0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + } + } + }, + "cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==" + }, + "coa": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/coa/-/coa-2.0.2.tgz", + "integrity": "sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA==", + "requires": { + "@types/q": "^1.5.1", + "chalk": "^2.4.1", + "q": "^1.1.2" + } + }, + "collect-v8-coverage": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", + "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==" + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "colord": { + "version": "2.9.3", + "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", + "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==" + }, + "colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==" + }, + "common-path-prefix": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-3.0.0.tgz", + "integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==" + }, + "common-tags": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", + "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==" + }, + "commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==" + }, + "compressible": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", + "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", + "requires": { + "mime-db": ">= 1.43.0 < 2" + } + }, + "compression": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", + "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", + "requires": { + "accepts": "~1.3.5", + "bytes": "3.0.0", + "compressible": "~2.0.16", + "debug": "2.6.9", + "on-headers": "~1.0.2", + "safe-buffer": "5.1.2", + "vary": "~1.1.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + } + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "confusing-browser-globals": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==" + }, + "connect-history-api-fallback": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz", + "integrity": "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==" + }, + "content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "requires": { + "safe-buffer": "5.2.1" + } + }, + "content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==" + }, + "convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" + }, + "cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==" + }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + }, + "core-js": { + "version": "3.30.2", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.30.2.tgz", + "integrity": "sha512-uBJiDmwqsbJCWHAwjrx3cvjbMXP7xD72Dmsn5LOJpiRmE3WbBbN5rCqQ2Qh6Ek6/eOrjlWngEynBWo4VxerQhg==" + }, + "core-js-compat": { + "version": "3.30.2", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.30.2.tgz", + "integrity": "sha512-nriW1nuJjUgvkEjIot1Spwakz52V9YkYHZAQG6A1eCgC8AA1p0zngrQEP9R0+V6hji5XilWKG1Bd0YRppmGimA==", + "requires": { + "browserslist": "^4.21.5" + } + }, + "core-js-pure": { + "version": "3.30.2", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.30.2.tgz", + "integrity": "sha512-p/npFUJXXBkCCTIlEGBdghofn00jWG6ZOtdoIXSJmAu2QBvN0IqpZXWweOytcwE6cfx8ZvVUy1vw8zxhe4Y2vg==" + }, + "core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, + "cosmiconfig": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz", + "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", + "requires": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + } + }, + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==" + }, + "css-blank-pseudo": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/css-blank-pseudo/-/css-blank-pseudo-3.0.3.tgz", + "integrity": "sha512-VS90XWtsHGqoM0t4KpH053c4ehxZ2E6HtGI7x68YFV0pTo/QmkV/YFA+NnlvK8guxZVNWGQhVNJGC39Q8XF4OQ==", + "requires": { + "postcss-selector-parser": "^6.0.9" + } + }, + "css-declaration-sorter": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.0.tgz", + "integrity": "sha512-jDfsatwWMWN0MODAFuHszfjphEXfNw9JUAhmY4pLu3TyTU+ohUpsbVtbU+1MZn4a47D9kqh03i4eyOm+74+zew==" + }, + "css-has-pseudo": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/css-has-pseudo/-/css-has-pseudo-3.0.4.tgz", + "integrity": "sha512-Vse0xpR1K9MNlp2j5w1pgWIJtm1a8qS0JwS9goFYcImjlHEmywP9VUF05aGBXzGpDJF86QXk4L0ypBmwPhGArw==", + "requires": { + "postcss-selector-parser": "^6.0.9" + } + }, + "css-loader": { + "version": "6.7.4", + "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.7.4.tgz", + "integrity": "sha512-0Y5uHtK5BswfaGJ+jrO+4pPg1msFBc0pwPIE1VqfpmVn6YbDfYfXMj8rfd7nt+4goAhJueO+H/I40VWJfcP1mQ==", + "requires": { + "icss-utils": "^5.1.0", + "postcss": "^8.4.21", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.1", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "postcss-value-parser": "^4.2.0", + "semver": "^7.3.8" + } + }, + "css-minimizer-webpack-plugin": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.4.1.tgz", + "integrity": "sha512-1u6D71zeIfgngN2XNRJefc/hY7Ybsxd74Jm4qngIXyUEk7fss3VUzuHxLAq/R8NAba4QU9OUSaMZlbpRc7bM4Q==", + "requires": { + "cssnano": "^5.0.6", + "jest-worker": "^27.0.2", + "postcss": "^8.3.5", + "schema-utils": "^4.0.0", + "serialize-javascript": "^6.0.0", + "source-map": "^0.6.1" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "requires": { + "fast-deep-equal": "^3.1.3" + } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + } + } + }, + "css-prefers-color-scheme": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/css-prefers-color-scheme/-/css-prefers-color-scheme-6.0.3.tgz", + "integrity": "sha512-4BqMbZksRkJQx2zAjrokiGMd07RqOa2IxIrrN10lyBe9xhn9DEvjUK79J6jkeiv9D9hQFXKb6g1jwU62jziJZA==" + }, + "css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "requires": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + } + }, + "css-select-base-adapter": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz", + "integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==" + }, + "css-tree": { + "version": "1.0.0-alpha.37", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.37.tgz", + "integrity": "sha512-DMxWJg0rnz7UgxKT0Q1HU/L9BeJI0M6ksor0OgqOnF+aRCDWg/N2641HmVyU9KVIu0OVVWOb2IpC9A+BJRnejg==", + "requires": { + "mdn-data": "2.0.4", + "source-map": "^0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + } + } + }, + "css-what": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==" + }, + "css.escape": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", + "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==" + }, + "cssdb": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/cssdb/-/cssdb-7.6.0.tgz", + "integrity": "sha512-Nna7rph8V0jC6+JBY4Vk4ndErUmfJfV6NJCaZdurL0omggabiy+QB2HCQtu5c/ACLZ0I7REv7A4QyPIoYzZx0w==" + }, + "cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==" + }, + "cssnano": { + "version": "5.1.15", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", + "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==", + "requires": { + "cssnano-preset-default": "^5.2.14", + "lilconfig": "^2.0.3", + "yaml": "^1.10.2" + } + }, + "cssnano-preset-default": { + "version": "5.2.14", + "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz", + "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==", + "requires": { + "css-declaration-sorter": "^6.3.1", + "cssnano-utils": "^3.1.0", + "postcss-calc": "^8.2.3", + "postcss-colormin": "^5.3.1", + "postcss-convert-values": "^5.1.3", + "postcss-discard-comments": "^5.1.2", + "postcss-discard-duplicates": "^5.1.0", + "postcss-discard-empty": "^5.1.1", + "postcss-discard-overridden": "^5.1.0", + "postcss-merge-longhand": "^5.1.7", + "postcss-merge-rules": "^5.1.4", + "postcss-minify-font-values": "^5.1.0", + "postcss-minify-gradients": "^5.1.1", + "postcss-minify-params": "^5.1.4", + "postcss-minify-selectors": "^5.2.1", + "postcss-normalize-charset": "^5.1.0", + "postcss-normalize-display-values": "^5.1.0", + "postcss-normalize-positions": "^5.1.1", + "postcss-normalize-repeat-style": "^5.1.1", + "postcss-normalize-string": "^5.1.0", + "postcss-normalize-timing-functions": "^5.1.0", + "postcss-normalize-unicode": "^5.1.1", + "postcss-normalize-url": "^5.1.0", + "postcss-normalize-whitespace": "^5.1.1", + "postcss-ordered-values": "^5.1.3", + "postcss-reduce-initial": "^5.1.2", + "postcss-reduce-transforms": "^5.1.0", + "postcss-svgo": "^5.1.0", + "postcss-unique-selectors": "^5.1.1" + } + }, + "cssnano-utils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", + "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==" + }, + "csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "requires": { + "css-tree": "^1.1.2" + }, + "dependencies": { + "css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "requires": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + } + }, + "mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + } + } + }, + "cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==" + }, + "cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "requires": { + "cssom": "~0.3.6" + }, + "dependencies": { + "cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" + } + } + }, + "csstype": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", + "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" + }, + "damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==" + }, + "data-urls": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", + "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", + "requires": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + } + }, + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } + }, + "decimal.js": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" + }, + "dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==" + }, + "deep-equal": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.1.tgz", + "integrity": "sha512-lKdkdV6EOGoVn65XaOsPdH4rMxTZOnmFyuIkMjM1i5HHCbfjC97dawgTAy0deYNfuqUqW+Q5VrVaQYtUpSd6yQ==", + "requires": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "es-get-iterator": "^1.1.3", + "get-intrinsic": "^1.2.0", + "is-arguments": "^1.1.1", + "is-array-buffer": "^3.0.2", + "is-date-object": "^1.0.5", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "isarray": "^2.0.5", + "object-is": "^1.1.5", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.0", + "side-channel": "^1.0.4", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.9" + } + }, + "deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" + }, + "deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==" + }, + "default-gateway": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", + "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", + "requires": { + "execa": "^5.0.0" + } + }, + "define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==" + }, + "define-properties": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "requires": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" + }, + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" + }, + "destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" + }, + "detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==" + }, + "detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==" + }, + "detect-port-alt": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/detect-port-alt/-/detect-port-alt-1.1.6.tgz", + "integrity": "sha512-5tQykt+LqfJFBEYaDITx7S7cR7mJ/zQmLXZ2qt5w04ainYZw6tBf9dBunMjVeVOdYVRUzUOE4HkY5J7+uttb5Q==", + "requires": { + "address": "^1.0.1", + "debug": "^2.6.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, + "didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==" + }, + "diff-sequences": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", + "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==" + }, + "dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "requires": { + "path-type": "^4.0.0" + } + }, + "dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==" + }, + "dns-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", + "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==" + }, + "dns-packet": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.0.tgz", + "integrity": "sha512-rza3UH1LwdHh9qyPXp8lkwpjSNk/AMD3dPytUoRoqnypDUhY0xvbdmVhWOfxO68frEfV9BU8V12Ez7ZsHGZpCQ==", + "requires": { + "@leichtgewicht/ip-codec": "^2.0.1" + } + }, + "doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "requires": { + "esutils": "^2.0.2" + } + }, + "dom-accessibility-api": { + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", + "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==" + }, + "dom-converter": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", + "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", + "requires": { + "utila": "~0.4" + } + }, + "dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + } + }, + "domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==" + }, + "domexception": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", + "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", + "requires": { + "webidl-conversions": "^5.0.0" + }, + "dependencies": { + "webidl-conversions": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", + "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==" + } + } + }, + "domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "requires": { + "domelementtype": "^2.2.0" + } + }, + "domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "requires": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + } + }, + "dot-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", + "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", + "requires": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "dotenv": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", + "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==" + }, + "dotenv-expand": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", + "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==" + }, + "duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "ejs": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", + "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", + "requires": { + "jake": "^10.8.5" + } + }, + "electron-to-chromium": { + "version": "1.4.411", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.411.tgz", + "integrity": "sha512-5VXLW4Qw89vM2WTICHua/y8v7fKGDRVa2VPOtBB9IpLvW316B+xd8yD1wTmLPY2ot/00P/qt87xdolj4aG/Lzg==" + }, + "emittery": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", + "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==" + }, + "emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" + }, + "emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==" + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==" + }, + "enhanced-resolve": { + "version": "5.14.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.14.1.tgz", + "integrity": "sha512-Vklwq2vDKtl0y/vtwjSesgJ5MYS7Etuk5txS8VdKL4AOS1aUlD96zqIfsOSLQsdv3xgMRbtkWM8eG9XDfKUPow==", + "requires": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + } + }, + "entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "error-stack-parser": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz", + "integrity": "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==", + "requires": { + "stackframe": "^1.3.4" + } + }, + "es-abstract": { + "version": "1.21.2", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", + "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", + "requires": { + "array-buffer-byte-length": "^1.0.0", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.2.0", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.4.3", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", + "string.prototype.trimend": "^1.0.6", + "string.prototype.trimstart": "^1.0.6", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.9" + } + }, + "es-array-method-boxes-properly": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz", + "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==" + }, + "es-get-iterator": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", + "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "is-arguments": "^1.1.1", + "is-map": "^2.0.2", + "is-set": "^2.0.2", + "is-string": "^1.0.7", + "isarray": "^2.0.5", + "stop-iteration-iterator": "^1.0.0" + } + }, + "es-module-lexer": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz", + "integrity": "sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==" + }, + "es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "requires": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + } + }, + "es-shim-unscopables": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", + "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "requires": { + "has": "^1.0.3" + } + }, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==" + }, + "escodegen": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", + "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", + "requires": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.6.1" + }, + "dependencies": { + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "requires": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + } + }, + "optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "requires": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + } + }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==" + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "optional": true + }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "requires": { + "prelude-ls": "~1.1.2" + } + } + } + }, + "eslint": { + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.41.0.tgz", + "integrity": "sha512-WQDQpzGBOP5IrXPo4Hc0814r4/v2rrIsB0rhT7jtunIalgg6gYXWhRMOejVO8yH21T/FGaxjmFjBMNqcIlmH1Q==", + "requires": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.3", + "@eslint/js": "8.41.0", + "@humanwhocodes/config-array": "^0.11.8", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.5.2", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" + }, + "globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "requires": { + "type-fest": "^0.20.2" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "requires": { + "argparse": "^2.0.1" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + }, + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==" + } + } + }, + "eslint-config-react-app": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/eslint-config-react-app/-/eslint-config-react-app-7.0.1.tgz", + "integrity": "sha512-K6rNzvkIeHaTd8m/QEh1Zko0KI7BACWkkneSs6s9cKZC/J27X3eZR6Upt1jkmZ/4FK+XUOPPxMEN7+lbUXfSlA==", + "requires": { + "@babel/core": "^7.16.0", + "@babel/eslint-parser": "^7.16.3", + "@rushstack/eslint-patch": "^1.1.0", + "@typescript-eslint/eslint-plugin": "^5.5.0", + "@typescript-eslint/parser": "^5.5.0", + "babel-preset-react-app": "^10.0.1", + "confusing-browser-globals": "^1.0.11", + "eslint-plugin-flowtype": "^8.0.3", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-jest": "^25.3.0", + "eslint-plugin-jsx-a11y": "^6.5.1", + "eslint-plugin-react": "^7.27.1", + "eslint-plugin-react-hooks": "^4.3.0", + "eslint-plugin-testing-library": "^5.0.1" + } + }, + "eslint-import-resolver-node": { + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", + "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", + "requires": { + "debug": "^3.2.7", + "is-core-module": "^2.11.0", + "resolve": "^1.22.1" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "requires": { + "debug": "^3.2.7" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "eslint-plugin-flowtype": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-8.0.3.tgz", + "integrity": "sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==", + "requires": { + "lodash": "^4.17.21", + "string-natural-compare": "^3.0.1" + } + }, + "eslint-plugin-import": { + "version": "2.27.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", + "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", + "requires": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.7.4", + "has": "^1.0.3", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.values": "^1.1.6", + "resolve": "^1.22.1", + "semver": "^6.3.0", + "tsconfig-paths": "^3.14.1" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "requires": { + "ms": "^2.1.1" + } + }, + "doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "requires": { + "esutils": "^2.0.2" + } + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "eslint-plugin-jest": { + "version": "25.7.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-25.7.0.tgz", + "integrity": "sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==", + "requires": { + "@typescript-eslint/experimental-utils": "^5.0.0" + } + }, + "eslint-plugin-jsx-a11y": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", + "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", + "requires": { + "@babel/runtime": "^7.20.7", + "aria-query": "^5.1.3", + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "ast-types-flow": "^0.0.7", + "axe-core": "^4.6.2", + "axobject-query": "^3.1.1", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "has": "^1.0.3", + "jsx-ast-utils": "^3.3.3", + "language-tags": "=1.0.5", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "eslint-plugin-react": { + "version": "7.32.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz", + "integrity": "sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==", + "requires": { + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "array.prototype.tosorted": "^1.1.1", + "doctrine": "^2.1.0", + "estraverse": "^5.3.0", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "object.hasown": "^1.1.2", + "object.values": "^1.1.6", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.4", + "semver": "^6.3.0", + "string.prototype.matchall": "^4.0.8" + }, + "dependencies": { + "doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "requires": { + "esutils": "^2.0.2" + } + }, + "resolve": { + "version": "2.0.0-next.4", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", + "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", + "requires": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "eslint-plugin-react-hooks": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", + "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==" + }, + "eslint-plugin-testing-library": { + "version": "5.11.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-testing-library/-/eslint-plugin-testing-library-5.11.0.tgz", + "integrity": "sha512-ELY7Gefo+61OfXKlQeXNIDVVLPcvKTeiQOoMZG9TeuWa7Ln4dUNRv8JdRWBQI9Mbb427XGlVB1aa1QPZxBJM8Q==", + "requires": { + "@typescript-eslint/utils": "^5.58.0" + } + }, + "eslint-scope": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", + "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + } + }, + "eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==" + }, + "eslint-webpack-plugin": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/eslint-webpack-plugin/-/eslint-webpack-plugin-3.2.0.tgz", + "integrity": "sha512-avrKcGncpPbPSUHX6B3stNGzkKFto3eL+DKM4+VyMrVnhPc3vRczVlCq3uhuFOdRvDHTVXuzwk1ZKUrqDQHQ9w==", + "requires": { + "@types/eslint": "^7.29.0 || ^8.4.1", + "jest-worker": "^28.0.2", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "schema-utils": "^4.0.0" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "requires": { + "fast-deep-equal": "^3.1.3" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "jest-worker": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-28.1.3.tgz", + "integrity": "sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==", + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + } + }, + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "espree": { + "version": "9.5.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", + "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", + "requires": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + } + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + }, + "esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "requires": { + "estraverse": "^5.1.0" + } + }, + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "requires": { + "estraverse": "^5.2.0" + } + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" + }, + "estree-walker": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", + "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==" + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==" + }, + "eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" + }, + "events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==" + }, + "execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "requires": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + } + }, + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==" + }, + "expect": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", + "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", + "requires": { + "@jest/types": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1" + } + }, + "express": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "requires": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "dependencies": { + "array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "dependencies": { + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "requires": { + "is-glob": "^4.0.1" + } + } + } + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" + }, + "fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "requires": { + "reusify": "^1.0.4" + } + }, + "faye-websocket": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", + "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", + "requires": { + "websocket-driver": ">=0.5.1" + } + }, + "fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "requires": { + "bser": "2.1.1" + } + }, + "file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "requires": { + "flat-cache": "^3.0.4" + } + }, + "file-loader": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", + "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", + "requires": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + } + }, + "filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "requires": { + "minimatch": "^5.0.1" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "requires": { + "brace-expansion": "^2.0.1" + } + } + } + }, + "filesize": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz", + "integrity": "sha512-pjmC+bkIF8XI7fWaH8KxHcZL3DPybs1roSKP4rKDvy20tAWwIObE4+JIseG2byfGKhud5ZnM4YSGKBz7Sh0ndQ==" + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "requires": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, + "find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "requires": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + } + }, + "find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "requires": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + } + }, + "flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "requires": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + } + }, + "flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==" + }, + "follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" + }, + "for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "requires": { + "is-callable": "^1.1.3" + } + }, + "fork-ts-checker-webpack-plugin": { + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.3.tgz", + "integrity": "sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==", + "requires": { + "@babel/code-frame": "^7.8.3", + "@types/json-schema": "^7.0.5", + "chalk": "^4.1.0", + "chokidar": "^3.4.2", + "cosmiconfig": "^6.0.0", + "deepmerge": "^4.2.2", + "fs-extra": "^9.0.0", + "glob": "^7.1.6", + "memfs": "^3.1.2", + "minimatch": "^3.0.4", + "schema-utils": "2.7.0", + "semver": "^7.3.2", + "tapable": "^1.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "cosmiconfig": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", + "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", + "requires": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.1.0", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.7.2" + } + }, + "fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "requires": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "schema-utils": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.0.tgz", + "integrity": "sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==", + "requires": { + "@types/json-schema": "^7.0.4", + "ajv": "^6.12.2", + "ajv-keywords": "^3.4.1" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + }, + "tapable": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", + "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==" + } + } + }, + "form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, + "forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" + }, + "fraction.js": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", + "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==" + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==" + }, + "fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "fs-monkey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz", + "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==" + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "optional": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + } + }, + "functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==" + }, + "gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==" + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" + }, + "get-intrinsic": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "requires": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + } + }, + "get-own-enumerable-property-symbols": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", + "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==" + }, + "get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==" + }, + "get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==" + }, + "get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + } + }, + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "requires": { + "is-glob": "^4.0.3" + } + }, + "glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" + }, + "global-modules": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", + "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", + "requires": { + "global-prefix": "^3.0.0" + } + }, + "global-prefix": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", + "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", + "requires": { + "ini": "^1.3.5", + "kind-of": "^6.0.2", + "which": "^1.3.1" + }, + "dependencies": { + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "requires": { + "isexe": "^2.0.0" + } + } + } + }, + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==" + }, + "globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "requires": { + "define-properties": "^1.1.3" + } + }, + "globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "requires": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + } + }, + "gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "requires": { + "get-intrinsic": "^1.1.3" + } + }, + "graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + }, + "grapheme-splitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", + "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==" + }, + "graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==" + }, + "gzip-size": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", + "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", + "requires": { + "duplexer": "^0.1.2" + } + }, + "handle-thing": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", + "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==" + }, + "harmony-reflect": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/harmony-reflect/-/harmony-reflect-1.6.2.tgz", + "integrity": "sha512-HIp/n38R9kQjDEziXyDTuW3vvoxxyxjxFzXLrBr18uB47GnSt+G9D29fqrpM5ZkspMcPICud3XsBJQ4Y2URg8g==" + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==" + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==" + }, + "has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "requires": { + "get-intrinsic": "^1.1.1" + } + }, + "has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==" + }, + "has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" + }, + "has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "requires": { + "has-symbols": "^1.0.2" + } + }, + "he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==" + }, + "hoopy": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz", + "integrity": "sha512-HRcs+2mr52W0K+x8RzcLzuPPmVIKMSv97RGHy0Ea9y/mpcaK+xTrjICA04KAHi4GRzxliNqNJEFYWHghy3rSfQ==" + }, + "hpack.js": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", + "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==", + "requires": { + "inherits": "^2.0.1", + "obuf": "^1.0.0", + "readable-stream": "^2.0.1", + "wbuf": "^1.1.0" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "html-encoding-sniffer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", + "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", + "requires": { + "whatwg-encoding": "^1.0.5" + } + }, + "html-entities": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.3.tgz", + "integrity": "sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA==" + }, + "html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==" + }, + "html-minifier-terser": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz", + "integrity": "sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==", + "requires": { + "camel-case": "^4.1.2", + "clean-css": "^5.2.2", + "commander": "^8.3.0", + "he": "^1.2.0", + "param-case": "^3.0.4", + "relateurl": "^0.2.7", + "terser": "^5.10.0" + } + }, + "html-webpack-plugin": { + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.5.1.tgz", + "integrity": "sha512-cTUzZ1+NqjGEKjmVgZKLMdiFg3m9MdRXkZW2OEe69WYVi5ONLMmlnSZdXzGGMOq0C8jGDrL6EWyEDDUioHO/pA==", + "requires": { + "@types/html-minifier-terser": "^6.0.0", + "html-minifier-terser": "^6.0.2", + "lodash": "^4.17.21", + "pretty-error": "^4.0.0", + "tapable": "^2.0.0" + } + }, + "htmlparser2": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", + "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.0.0", + "domutils": "^2.5.2", + "entities": "^2.0.0" + } + }, + "http-deceiver": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", + "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==" + }, + "http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "requires": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + } + }, + "http-parser-js": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", + "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==" + }, + "http-proxy": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", + "requires": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + } + }, + "http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "requires": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + } + }, + "http-proxy-middleware": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", + "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", + "requires": { + "@types/http-proxy": "^1.17.8", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.1", + "is-plain-obj": "^3.0.0", + "micromatch": "^4.0.2" + } + }, + "https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "requires": { + "agent-base": "6", + "debug": "4" + } + }, + "human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==" + }, + "iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + } + }, + "icss-utils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", + "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==" + }, + "idb": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz", + "integrity": "sha512-gchesWBzyvGHRO9W8tzUWFDycow5gwjvFKfyV9FF32Y7F50yZMp7mP+T2mJIWFx49zicqyC4uefHM17o6xKIVQ==" + }, + "identity-obj-proxy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/identity-obj-proxy/-/identity-obj-proxy-3.0.0.tgz", + "integrity": "sha512-00n6YnVHKrinT9t0d9+5yZC6UBNJANpYEQvL2LlX6Ab9lnmxzIRcEmTPuyGScvl1+jKuCICX1Z0Ab1pPKKdikA==", + "requires": { + "harmony-reflect": "^1.4.6" + } + }, + "ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==" + }, + "immer": { + "version": "9.0.21", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", + "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==" + }, + "import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==" + } + } + }, + "import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "requires": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==" + }, + "indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==" + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" + }, + "internal-slot": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "requires": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + } + }, + "ipaddr.js": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz", + "integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==" + }, + "is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + } + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" + }, + "is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "requires": { + "has-bigints": "^1.0.1" + } + }, + "is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "requires": { + "binary-extensions": "^2.0.0" + } + }, + "is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==" + }, + "is-core-module": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", + "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", + "requires": { + "has": "^1.0.3" + } + }, + "is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==" + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" + }, + "is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==" + }, + "is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", + "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==" + }, + "is-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", + "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==" + }, + "is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==" + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" + }, + "is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==" + }, + "is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==" + }, + "is-plain-obj": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", + "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==" + }, + "is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==" + }, + "is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", + "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==" + }, + "is-root": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-root/-/is-root-2.1.0.tgz", + "integrity": "sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg==" + }, + "is-set": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", + "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==" + }, + "is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "requires": { + "call-bind": "^1.0.2" + } + }, + "is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==" + }, + "is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "requires": { + "has-symbols": "^1.0.2" + } + }, + "is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "requires": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + } + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" + }, + "is-weakmap": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", + "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==" + }, + "is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "requires": { + "call-bind": "^1.0.2" + } + }, + "is-weakset": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", + "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + } + }, + "is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "requires": { + "is-docker": "^2.0.0" + } + }, + "isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + }, + "istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==" + }, + "istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "requires": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "requires": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "requires": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + } + } + }, + "istanbul-reports": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "requires": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + } + }, + "jake": { + "version": "10.8.6", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.6.tgz", + "integrity": "sha512-G43Ub9IYEFfu72sua6rzooi8V8Gz2lkfk48rW20vEWCGizeaEPlKB1Kh8JIA84yQbiAEfqlPmSpGgCKKxH3rDA==", + "requires": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", + "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", + "requires": { + "@jest/core": "^27.5.1", + "import-local": "^3.0.2", + "jest-cli": "^27.5.1" + } + }, + "jest-changed-files": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", + "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", + "requires": { + "@jest/types": "^27.5.1", + "execa": "^5.0.0", + "throat": "^6.0.1" + } + }, + "jest-circus": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", + "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", + "requires": { + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^0.7.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3", + "throat": "^6.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-cli": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", + "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", + "requires": { + "@jest/core": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "prompts": "^2.0.1", + "yargs": "^16.2.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-config": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", + "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", + "requires": { + "@babel/core": "^7.8.0", + "@jest/test-sequencer": "^27.5.1", + "@jest/types": "^27.5.1", + "babel-jest": "^27.5.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.9", + "jest-circus": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-jasmine2": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-diff": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", + "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-docblock": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", + "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", + "requires": { + "detect-newline": "^3.0.0" + } + }, + "jest-each": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", + "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", + "requires": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-environment-jsdom": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", + "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", + "requires": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1", + "jsdom": "^16.6.0" + } + }, + "jest-environment-node": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", + "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", + "requires": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + } + }, + "jest-get-type": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", + "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==" + }, + "jest-haste-map": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", + "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", + "requires": { + "@jest/types": "^27.5.1", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^27.5.1", + "jest-serializer": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "micromatch": "^4.0.4", + "walker": "^1.0.7" + } + }, + "jest-jasmine2": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", + "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", + "requires": { + "@jest/environment": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "throat": "^6.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-leak-detector": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", + "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", + "requires": { + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + } + }, + "jest-matcher-utils": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", + "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", + "requires": { + "chalk": "^4.0.0", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-message-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", + "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", + "requires": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-mock": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", + "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", + "requires": { + "@jest/types": "^27.5.1", + "@types/node": "*" + } + }, + "jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==" + }, + "jest-regex-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", + "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==" + }, + "jest-resolve": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", + "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", + "requires": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "resolve": "^1.20.0", + "resolve.exports": "^1.1.0", + "slash": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-resolve-dependencies": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", + "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", + "requires": { + "@jest/types": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-snapshot": "^27.5.1" + } + }, + "jest-runner": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", + "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", + "requires": { + "@jest/console": "^27.5.1", + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-leak-detector": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "source-map-support": "^0.5.6", + "throat": "^6.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-runtime": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", + "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", + "requires": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/globals": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "execa": "^5.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-serializer": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", + "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", + "requires": { + "@types/node": "*", + "graceful-fs": "^4.2.9" + } + }, + "jest-snapshot": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", + "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", + "requires": { + "@babel/core": "^7.7.2", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.0.0", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^27.5.1", + "semver": "^7.3.2" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", + "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", + "requires": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-validate": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", + "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", + "requires": { + "@jest/types": "^27.5.1", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "leven": "^3.1.0", + "pretty-format": "^27.5.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-watch-typeahead": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jest-watch-typeahead/-/jest-watch-typeahead-1.1.0.tgz", + "integrity": "sha512-Va5nLSJTN7YFtC2jd+7wsoe1pNe5K4ShLux/E5iHEwlB9AxaxmggY7to9KUqKojhaJw3aXqt5WAb4jGPOolpEw==", + "requires": { + "ansi-escapes": "^4.3.1", + "chalk": "^4.0.0", + "jest-regex-util": "^28.0.0", + "jest-watcher": "^28.0.0", + "slash": "^4.0.0", + "string-length": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "dependencies": { + "@jest/console": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-28.1.3.tgz", + "integrity": "sha512-QPAkP5EwKdK/bxIr6C1I4Vs0rm2nHiANzj/Z5X2JQkrZo6IqvC4ldZ9K95tF0HdidhA8Bo6egxSzUFPYKcEXLw==", + "requires": { + "@jest/types": "^28.1.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^28.1.3", + "jest-util": "^28.1.3", + "slash": "^3.0.0" + }, + "dependencies": { + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" + } + } + }, + "@jest/test-result": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-28.1.3.tgz", + "integrity": "sha512-kZAkxnSE+FqE8YjW8gNuoVkkC9I7S1qmenl8sGcDOLropASP+BkcGKwhXoyqQuGOGeYY0y/ixjrd/iERpEXHNg==", + "requires": { + "@jest/console": "^28.1.3", + "@jest/types": "^28.1.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + } + }, + "@jest/types": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-28.1.3.tgz", + "integrity": "sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ==", + "requires": { + "@jest/schemas": "^28.1.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "17.0.24", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", + "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", + "requires": { + "@types/yargs-parser": "*" + } + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "emittery": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.10.2.tgz", + "integrity": "sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "jest-message-util": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-28.1.3.tgz", + "integrity": "sha512-PFdn9Iewbt575zKPf1286Ht9EPoJmYT7P0kY+RibeYZ2XtOr53pDLEFoTWXbd1h4JiGiWpTBC84fc8xMXQMb7g==", + "requires": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^28.1.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^28.1.3", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "dependencies": { + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" + } + } + }, + "jest-regex-util": { + "version": "28.0.2", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-28.0.2.tgz", + "integrity": "sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw==" + }, + "jest-util": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-28.1.3.tgz", + "integrity": "sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ==", + "requires": { + "@jest/types": "^28.1.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "jest-watcher": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-28.1.3.tgz", + "integrity": "sha512-t4qcqj9hze+jviFPUN3YAtAEeFnr/azITXQEMARf5cMwKY2SMBRnCQTXLixTl20OR6mLh9KLMrgVJgJISym+1g==", + "requires": { + "@jest/test-result": "^28.1.3", + "@jest/types": "^28.1.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.10.2", + "jest-util": "^28.1.3", + "string-length": "^4.0.1" + }, + "dependencies": { + "string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "requires": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "requires": { + "ansi-regex": "^5.0.1" + } + } + } + }, + "pretty-format": { + "version": "28.1.3", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-28.1.3.tgz", + "integrity": "sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q==", + "requires": { + "@jest/schemas": "^28.1.3", + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==" + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" + }, + "slash": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", + "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==" + }, + "string-length": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-5.0.1.tgz", + "integrity": "sha512-9Ep08KAMUn0OadnVaBuRdE2l615CQ508kr0XMadjClfYpdCyvrbFp6Taebo8yyxokQ4viUd/xPPUA4FGgUa0ow==", + "requires": { + "char-regex": "^2.0.0", + "strip-ansi": "^7.0.1" + }, + "dependencies": { + "char-regex": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-2.0.1.tgz", + "integrity": "sha512-oSvEeo6ZUD7NepqAat3RqoucZ5SeqLJgOvVIwkafu6IP3V0pO38s/ypdVUmDDK6qIIHNlYHJAKX9E7R7HoKElw==" + } + } + }, + "strip-ansi": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz", + "integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==", + "requires": { + "ansi-regex": "^6.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==" + } + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-watcher": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", + "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", + "requires": { + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^27.5.1", + "string-length": "^4.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jiti": { + "version": "1.18.2", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.18.2.tgz", + "integrity": "sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==" + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsdom": { + "version": "16.7.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", + "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", + "requires": { + "abab": "^2.0.5", + "acorn": "^8.2.4", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.1", + "domexception": "^2.0.1", + "escodegen": "^2.0.0", + "form-data": "^3.0.0", + "html-encoding-sniffer": "^2.0.1", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.0", + "parse5": "6.0.1", + "saxes": "^5.0.1", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.0.0", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.5.0", + "ws": "^7.4.6", + "xml-name-validator": "^3.0.0" + } + }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" + }, + "json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==" + }, + "json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==" + }, + "jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "requires": { + "graceful-fs": "^4.1.6", + "universalify": "^2.0.0" + } + }, + "jsonpointer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", + "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==" + }, + "jsx-ast-utils": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", + "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", + "requires": { + "array-includes": "^3.1.5", + "object.assign": "^4.1.3" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==" + }, + "kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==" + }, + "klona": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", + "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==" + }, + "language-subtag-registry": { + "version": "0.3.22", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", + "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==" + }, + "language-tags": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", + "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", + "requires": { + "language-subtag-registry": "~0.3.2" + } + }, + "launch-editor": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz", + "integrity": "sha512-JpDCcQnyAAzZZaZ7vEiSqL690w7dAEyLao+KC96zBplnYbJS7TYNjvM3M7y3dGz+v7aIsJk3hllWuc0kWAjyRQ==", + "requires": { + "picocolors": "^1.0.0", + "shell-quote": "^1.7.3" + } + }, + "leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==" + }, + "levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "requires": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + } + }, + "lilconfig": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", + "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==" + }, + "lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" + }, + "loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==" + }, + "loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + }, + "locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "requires": { + "p-locate": "^5.0.0" + } + }, + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" + }, + "lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==" + }, + "lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" + }, + "lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==" + }, + "lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==" + }, + "loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "requires": { + "js-tokens": "^3.0.0 || ^4.0.0" + } + }, + "lower-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", + "requires": { + "tslib": "^2.0.3" + } + }, + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "requires": { + "yallist": "^3.0.2" + } + }, + "lz-string": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", + "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==" + }, + "magic-string": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", + "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", + "requires": { + "sourcemap-codec": "^1.4.8" + } + }, + "make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "requires": { + "semver": "^6.0.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "requires": { + "tmpl": "1.0.5" + } + }, + "mdn-data": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz", + "integrity": "sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA==" + }, + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==" + }, + "memfs": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.1.tgz", + "integrity": "sha512-UWbFJKvj5k+nETdteFndTpYxdeTMox/ULeqX5k/dpaQJCCFmj5EeKv3dBcyO2xmkRAx2vppRu5dVG7SOtsGOzA==", + "requires": { + "fs-monkey": "^1.0.3" + } + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + }, + "merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==" + }, + "micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "requires": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + } + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + }, + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" + }, + "min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==" + }, + "mini-css-extract-plugin": { + "version": "2.7.6", + "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.7.6.tgz", + "integrity": "sha512-Qk7HcgaPkGG6eD77mLvZS1nmxlao3j+9PkrT9Uc7HAE1id3F41+DdBRYRYkbyfNRGzm8/YWtzhw7nVPmwhqTQw==", + "requires": { + "schema-utils": "^4.0.0" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "requires": { + "fast-deep-equal": "^3.1.3" + } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + } + } + } + }, + "minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" + }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==" + }, + "mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "requires": { + "minimist": "^1.2.6" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "multicast-dns": { + "version": "7.2.5", + "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz", + "integrity": "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==", + "requires": { + "dns-packet": "^5.2.2", + "thunky": "^1.0.2" + } + }, + "mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "requires": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "nanoid": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", + "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==" + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" + }, + "natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==" + }, + "negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" + }, + "neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" + }, + "no-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", + "requires": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, + "node-forge": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==" + }, + "node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==" + }, + "node-releases": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", + "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==" + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" + }, + "normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==" + }, + "normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==" + }, + "npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "requires": { + "path-key": "^3.0.0" + } + }, + "nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "requires": { + "boolbase": "^1.0.0" + } + }, + "nwsapi": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.4.tgz", + "integrity": "sha512-NHj4rzRo0tQdijE9ZqAx6kYDcoRwYwSYzCA8MY3JzfxlrvEU0jhnhJT9BhqhJs7I/dKcrDm6TyulaRqZPIhN5g==" + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==" + }, + "object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==" + }, + "object-inspect": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==" + }, + "object-is": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", + "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + } + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" + }, + "object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + } + }, + "object.entries": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", + "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "object.fromentries": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", + "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "object.getownpropertydescriptors": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.6.tgz", + "integrity": "sha512-lq+61g26E/BgHv0ZTFgRvi7NMEPuAxLkFU7rukXjc/AlwH4Am5xXVnIXy3un1bg/JPbXHrixRkK1itUzzPiIjQ==", + "requires": { + "array.prototype.reduce": "^1.0.5", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.21.2", + "safe-array-concat": "^1.0.0" + } + }, + "object.hasown": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", + "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", + "requires": { + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "object.values": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", + "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "obuf": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", + "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==" + }, + "on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "requires": { + "ee-first": "1.1.1" + } + }, + "on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "requires": { + "mimic-fn": "^2.1.0" + } + }, + "open": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", + "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", + "requires": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + } + }, + "optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "requires": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + } + }, + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "requires": { + "yocto-queue": "^0.1.0" + } + }, + "p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "requires": { + "p-limit": "^3.0.2" + } + }, + "p-retry": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", + "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", + "requires": { + "@types/retry": "0.12.0", + "retry": "^0.13.1" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" + }, + "param-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", + "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", + "requires": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "requires": { + "callsites": "^3.0.0" + } + }, + "parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + }, + "parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==" + }, + "parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + }, + "pascal-case": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", + "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", + "requires": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" + }, + "path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + }, + "path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" + }, + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" + }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==" + }, + "pirates": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", + "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==" + }, + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "requires": { + "find-up": "^4.0.0" + }, + "dependencies": { + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "requires": { + "p-limit": "^2.2.0" + } + } + } + }, + "pkg-up": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", + "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", + "requires": { + "find-up": "^3.0.0" + }, + "dependencies": { + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "requires": { + "locate-path": "^3.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "requires": { + "p-limit": "^2.0.0" + } + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==" + } + } + }, + "postcss": { + "version": "8.4.23", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.23.tgz", + "integrity": "sha512-bQ3qMcpF6A/YjR55xtoTr0jGOlnPOKAIMdOWiv0EIT6HVPEaJiJB4NLljSbiHoC2RX7DN5Uvjtpbg1NPdwv1oA==", + "requires": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + } + }, + "postcss-attribute-case-insensitive": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-5.0.2.tgz", + "integrity": "sha512-XIidXV8fDr0kKt28vqki84fRK8VW8eTuIa4PChv2MqKuT6C9UjmSKzen6KaWhWEoYvwxFCa7n/tC1SZ3tyq4SQ==", + "requires": { + "postcss-selector-parser": "^6.0.10" + } + }, + "postcss-browser-comments": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-browser-comments/-/postcss-browser-comments-4.0.0.tgz", + "integrity": "sha512-X9X9/WN3KIvY9+hNERUqX9gncsgBA25XaeR+jshHz2j8+sYyHktHw1JdKuMjeLpGktXidqDhA7b/qm1mrBDmgg==" + }, + "postcss-calc": { + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz", + "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==", + "requires": { + "postcss-selector-parser": "^6.0.9", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-clamp": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/postcss-clamp/-/postcss-clamp-4.1.0.tgz", + "integrity": "sha512-ry4b1Llo/9zz+PKC+030KUnPITTJAHeOwjfAyyB60eT0AorGLdzp52s31OsPRHRf8NchkgFoG2y6fCfn1IV1Ow==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-color-functional-notation": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/postcss-color-functional-notation/-/postcss-color-functional-notation-4.2.4.tgz", + "integrity": "sha512-2yrTAUZUab9s6CpxkxC4rVgFEVaR6/2Pipvi6qcgvnYiVqZcbDHEoBDhrXzyb7Efh2CCfHQNtcqWcIruDTIUeg==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-color-hex-alpha": { + "version": "8.0.4", + "resolved": "https://registry.npmjs.org/postcss-color-hex-alpha/-/postcss-color-hex-alpha-8.0.4.tgz", + "integrity": "sha512-nLo2DCRC9eE4w2JmuKgVA3fGL3d01kGq752pVALF68qpGLmx2Qrk91QTKkdUqqp45T1K1XV8IhQpcu1hoAQflQ==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-color-rebeccapurple": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-7.1.1.tgz", + "integrity": "sha512-pGxkuVEInwLHgkNxUc4sdg4g3py7zUeCQ9sMfwyHAT+Ezk8a4OaaVZ8lIY5+oNqA/BXXgLyXv0+5wHP68R79hg==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-colormin": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", + "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==", + "requires": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "colord": "^2.9.1", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-convert-values": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz", + "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==", + "requires": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-custom-media": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-8.0.2.tgz", + "integrity": "sha512-7yi25vDAoHAkbhAzX9dHx2yc6ntS4jQvejrNcC+csQJAXjj15e7VcWfMgLqBNAbOvqi5uIa9huOVwdHbf+sKqg==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-custom-properties": { + "version": "12.1.11", + "resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-12.1.11.tgz", + "integrity": "sha512-0IDJYhgU8xDv1KY6+VgUwuQkVtmYzRwu+dMjnmdMafXYv86SWqfxkc7qdDvWS38vsjaEtv8e0vGOUQrAiMBLpQ==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-custom-selectors": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/postcss-custom-selectors/-/postcss-custom-selectors-6.0.3.tgz", + "integrity": "sha512-fgVkmyiWDwmD3JbpCmB45SvvlCD6z9CG6Ie6Iere22W5aHea6oWa7EM2bpnv2Fj3I94L3VbtvX9KqwSi5aFzSg==", + "requires": { + "postcss-selector-parser": "^6.0.4" + } + }, + "postcss-dir-pseudo-class": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/postcss-dir-pseudo-class/-/postcss-dir-pseudo-class-6.0.5.tgz", + "integrity": "sha512-eqn4m70P031PF7ZQIvSgy9RSJ5uI2171O/OO/zcRNYpJbvaeKFUlar1aJ7rmgiQtbm0FSPsRewjpdS0Oew7MPA==", + "requires": { + "postcss-selector-parser": "^6.0.10" + } + }, + "postcss-discard-comments": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", + "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==" + }, + "postcss-discard-duplicates": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", + "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==" + }, + "postcss-discard-empty": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", + "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==" + }, + "postcss-discard-overridden": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", + "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==" + }, + "postcss-double-position-gradients": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-3.1.2.tgz", + "integrity": "sha512-GX+FuE/uBR6eskOK+4vkXgT6pDkexLokPaz/AbJna9s5Kzp/yl488pKPjhy0obB475ovfT1Wv8ho7U/cHNaRgQ==", + "requires": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-env-function": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/postcss-env-function/-/postcss-env-function-4.0.6.tgz", + "integrity": "sha512-kpA6FsLra+NqcFnL81TnsU+Z7orGtDTxcOhl6pwXeEq1yFPpRMkCDpHhrz8CFQDr/Wfm0jLiNQ1OsGGPjlqPwA==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-flexbugs-fixes": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-flexbugs-fixes/-/postcss-flexbugs-fixes-5.0.2.tgz", + "integrity": "sha512-18f9voByak7bTktR2QgDveglpn9DTbBWPUzSOe9g0N4WR/2eSt6Vrcbf0hmspvMI6YWGywz6B9f7jzpFNJJgnQ==" + }, + "postcss-focus-visible": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/postcss-focus-visible/-/postcss-focus-visible-6.0.4.tgz", + "integrity": "sha512-QcKuUU/dgNsstIK6HELFRT5Y3lbrMLEOwG+A4s5cA+fx3A3y/JTq3X9LaOj3OC3ALH0XqyrgQIgey/MIZ8Wczw==", + "requires": { + "postcss-selector-parser": "^6.0.9" + } + }, + "postcss-focus-within": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/postcss-focus-within/-/postcss-focus-within-5.0.4.tgz", + "integrity": "sha512-vvjDN++C0mu8jz4af5d52CB184ogg/sSxAFS+oUJQq2SuCe7T5U2iIsVJtsCp2d6R4j0jr5+q3rPkBVZkXD9fQ==", + "requires": { + "postcss-selector-parser": "^6.0.9" + } + }, + "postcss-font-variant": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-font-variant/-/postcss-font-variant-5.0.0.tgz", + "integrity": "sha512-1fmkBaCALD72CK2a9i468mA/+tr9/1cBxRRMXOUaZqO43oWPR5imcyPjXwuv7PXbCid4ndlP5zWhidQVVa3hmA==" + }, + "postcss-gap-properties": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/postcss-gap-properties/-/postcss-gap-properties-3.0.5.tgz", + "integrity": "sha512-IuE6gKSdoUNcvkGIqdtjtcMtZIFyXZhmFd5RUlg97iVEvp1BZKV5ngsAjCjrVy+14uhGBQl9tzmi1Qwq4kqVOg==" + }, + "postcss-image-set-function": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/postcss-image-set-function/-/postcss-image-set-function-4.0.7.tgz", + "integrity": "sha512-9T2r9rsvYzm5ndsBE8WgtrMlIT7VbtTfE7b3BQnudUqnBcBo7L758oc+o+pdj/dUV0l5wjwSdjeOH2DZtfv8qw==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-import": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", + "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", + "requires": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + } + }, + "postcss-initial": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-initial/-/postcss-initial-4.0.1.tgz", + "integrity": "sha512-0ueD7rPqX8Pn1xJIjay0AZeIuDoF+V+VvMt/uOnn+4ezUKhZM/NokDeP6DwMNyIoYByuN/94IQnt5FEkaN59xQ==" + }, + "postcss-js": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", + "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", + "requires": { + "camelcase-css": "^2.0.1" + } + }, + "postcss-lab-function": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/postcss-lab-function/-/postcss-lab-function-4.2.1.tgz", + "integrity": "sha512-xuXll4isR03CrQsmxyz92LJB2xX9n+pZJ5jE9JgcnmsCammLyKdlzrBin+25dy6wIjfhJpKBAN80gsTlCgRk2w==", + "requires": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-load-config": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.1.tgz", + "integrity": "sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==", + "requires": { + "lilconfig": "^2.0.5", + "yaml": "^2.1.1" + }, + "dependencies": { + "yaml": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz", + "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==" + } + } + }, + "postcss-loader": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.2.1.tgz", + "integrity": "sha512-WbbYpmAaKcux/P66bZ40bpWsBucjx/TTgVVzRZ9yUO8yQfVBlameJ0ZGVaPfH64hNSBh63a+ICP5nqOpBA0w+Q==", + "requires": { + "cosmiconfig": "^7.0.0", + "klona": "^2.0.5", + "semver": "^7.3.5" + } + }, + "postcss-logical": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/postcss-logical/-/postcss-logical-5.0.4.tgz", + "integrity": "sha512-RHXxplCeLh9VjinvMrZONq7im4wjWGlRJAqmAVLXyZaXwfDWP73/oq4NdIp+OZwhQUMj0zjqDfM5Fj7qby+B4g==" + }, + "postcss-media-minmax": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-media-minmax/-/postcss-media-minmax-5.0.0.tgz", + "integrity": "sha512-yDUvFf9QdFZTuCUg0g0uNSHVlJ5X1lSzDZjPSFaiCWvjgsvu8vEVxtahPrLMinIDEEGnx6cBe6iqdx5YWz08wQ==" + }, + "postcss-merge-longhand": { + "version": "5.1.7", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz", + "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==", + "requires": { + "postcss-value-parser": "^4.2.0", + "stylehacks": "^5.1.1" + } + }, + "postcss-merge-rules": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz", + "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==", + "requires": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "cssnano-utils": "^3.1.0", + "postcss-selector-parser": "^6.0.5" + } + }, + "postcss-minify-font-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz", + "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-minify-gradients": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz", + "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==", + "requires": { + "colord": "^2.9.1", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-minify-params": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz", + "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==", + "requires": { + "browserslist": "^4.21.4", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-minify-selectors": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz", + "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==", + "requires": { + "postcss-selector-parser": "^6.0.5" + } + }, + "postcss-modules-extract-imports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", + "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==" + }, + "postcss-modules-local-by-default": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz", + "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==", + "requires": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-modules-scope": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", + "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", + "requires": { + "postcss-selector-parser": "^6.0.4" + } + }, + "postcss-modules-values": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", + "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", + "requires": { + "icss-utils": "^5.0.0" + } + }, + "postcss-nested": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz", + "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==", + "requires": { + "postcss-selector-parser": "^6.0.11" + } + }, + "postcss-nesting": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-10.2.0.tgz", + "integrity": "sha512-EwMkYchxiDiKUhlJGzWsD9b2zvq/r2SSubcRrgP+jujMXFzqvANLt16lJANC+5uZ6hjI7lpRmI6O8JIl+8l1KA==", + "requires": { + "@csstools/selector-specificity": "^2.0.0", + "postcss-selector-parser": "^6.0.10" + } + }, + "postcss-normalize": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize/-/postcss-normalize-10.0.1.tgz", + "integrity": "sha512-+5w18/rDev5mqERcG3W5GZNMJa1eoYYNGo8gB7tEwaos0ajk3ZXAI4mHGcNT47NE+ZnZD1pEpUOFLvltIwmeJA==", + "requires": { + "@csstools/normalize.css": "*", + "postcss-browser-comments": "^4", + "sanitize.css": "*" + } + }, + "postcss-normalize-charset": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", + "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==" + }, + "postcss-normalize-display-values": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz", + "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-positions": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz", + "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-repeat-style": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz", + "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-string": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz", + "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-timing-functions": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz", + "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-unicode": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", + "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==", + "requires": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-url": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz", + "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==", + "requires": { + "normalize-url": "^6.0.1", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-whitespace": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz", + "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-opacity-percentage": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/postcss-opacity-percentage/-/postcss-opacity-percentage-1.1.3.tgz", + "integrity": "sha512-An6Ba4pHBiDtyVpSLymUUERMo2cU7s+Obz6BTrS+gxkbnSBNKSuD0AVUc+CpBMrpVPKKfoVz0WQCX+Tnst0i4A==" + }, + "postcss-ordered-values": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz", + "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==", + "requires": { + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-overflow-shorthand": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/postcss-overflow-shorthand/-/postcss-overflow-shorthand-3.0.4.tgz", + "integrity": "sha512-otYl/ylHK8Y9bcBnPLo3foYFLL6a6Ak+3EQBPOTR7luMYCOsiVTUk1iLvNf6tVPNGXcoL9Hoz37kpfriRIFb4A==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-page-break": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/postcss-page-break/-/postcss-page-break-3.0.4.tgz", + "integrity": "sha512-1JGu8oCjVXLa9q9rFTo4MbeeA5FMe00/9C7lN4va606Rdb+HkxXtXsmEDrIraQ11fGz/WvKWa8gMuCKkrXpTsQ==" + }, + "postcss-place": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/postcss-place/-/postcss-place-7.0.5.tgz", + "integrity": "sha512-wR8igaZROA6Z4pv0d+bvVrvGY4GVHihBCBQieXFY3kuSuMyOmEnnfFzHl/tQuqHZkfkIVBEbDvYcFfHmpSet9g==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-preset-env": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-7.8.3.tgz", + "integrity": "sha512-T1LgRm5uEVFSEF83vHZJV2z19lHg4yJuZ6gXZZkqVsqv63nlr6zabMH3l4Pc01FQCyfWVrh2GaUeCVy9Po+Aag==", + "requires": { + "@csstools/postcss-cascade-layers": "^1.1.1", + "@csstools/postcss-color-function": "^1.1.1", + "@csstools/postcss-font-format-keywords": "^1.0.1", + "@csstools/postcss-hwb-function": "^1.0.2", + "@csstools/postcss-ic-unit": "^1.0.1", + "@csstools/postcss-is-pseudo-class": "^2.0.7", + "@csstools/postcss-nested-calc": "^1.0.0", + "@csstools/postcss-normalize-display-values": "^1.0.1", + "@csstools/postcss-oklab-function": "^1.1.1", + "@csstools/postcss-progressive-custom-properties": "^1.3.0", + "@csstools/postcss-stepped-value-functions": "^1.0.1", + "@csstools/postcss-text-decoration-shorthand": "^1.0.0", + "@csstools/postcss-trigonometric-functions": "^1.0.2", + "@csstools/postcss-unset-value": "^1.0.2", + "autoprefixer": "^10.4.13", + "browserslist": "^4.21.4", + "css-blank-pseudo": "^3.0.3", + "css-has-pseudo": "^3.0.4", + "css-prefers-color-scheme": "^6.0.3", + "cssdb": "^7.1.0", + "postcss-attribute-case-insensitive": "^5.0.2", + "postcss-clamp": "^4.1.0", + "postcss-color-functional-notation": "^4.2.4", + "postcss-color-hex-alpha": "^8.0.4", + "postcss-color-rebeccapurple": "^7.1.1", + "postcss-custom-media": "^8.0.2", + "postcss-custom-properties": "^12.1.10", + "postcss-custom-selectors": "^6.0.3", + "postcss-dir-pseudo-class": "^6.0.5", + "postcss-double-position-gradients": "^3.1.2", + "postcss-env-function": "^4.0.6", + "postcss-focus-visible": "^6.0.4", + "postcss-focus-within": "^5.0.4", + "postcss-font-variant": "^5.0.0", + "postcss-gap-properties": "^3.0.5", + "postcss-image-set-function": "^4.0.7", + "postcss-initial": "^4.0.1", + "postcss-lab-function": "^4.2.1", + "postcss-logical": "^5.0.4", + "postcss-media-minmax": "^5.0.0", + "postcss-nesting": "^10.2.0", + "postcss-opacity-percentage": "^1.1.2", + "postcss-overflow-shorthand": "^3.0.4", + "postcss-page-break": "^3.0.4", + "postcss-place": "^7.0.5", + "postcss-pseudo-class-any-link": "^7.1.6", + "postcss-replace-overflow-wrap": "^4.0.0", + "postcss-selector-not": "^6.0.1", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-pseudo-class-any-link": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-7.1.6.tgz", + "integrity": "sha512-9sCtZkO6f/5ML9WcTLcIyV1yz9D1rf0tWc+ulKcvV30s0iZKS/ONyETvoWsr6vnrmW+X+KmuK3gV/w5EWnT37w==", + "requires": { + "postcss-selector-parser": "^6.0.10" + } + }, + "postcss-reduce-initial": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz", + "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==", + "requires": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0" + } + }, + "postcss-reduce-transforms": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz", + "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-replace-overflow-wrap": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-4.0.0.tgz", + "integrity": "sha512-KmF7SBPphT4gPPcKZc7aDkweHiKEEO8cla/GjcBK+ckKxiZslIu3C4GCRW3DNfL0o7yW7kMQu9xlZ1kXRXLXtw==" + }, + "postcss-selector-not": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-6.0.1.tgz", + "integrity": "sha512-1i9affjAe9xu/y9uqWH+tD4r6/hDaXJruk8xn2x1vzxC2U3J3LKO3zJW4CyxlNhA56pADJ/djpEwpH1RClI2rQ==", + "requires": { + "postcss-selector-parser": "^6.0.10" + } + }, + "postcss-selector-parser": { + "version": "6.0.13", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", + "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", + "requires": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + } + }, + "postcss-svgo": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz", + "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==", + "requires": { + "postcss-value-parser": "^4.2.0", + "svgo": "^2.7.0" + }, + "dependencies": { + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==" + }, + "css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "requires": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + } + }, + "mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==" + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + }, + "svgo": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", + "requires": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + } + } + } + }, + "postcss-unique-selectors": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz", + "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==", + "requires": { + "postcss-selector-parser": "^6.0.5" + } + }, + "postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" + }, + "prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==" + }, + "pretty-bytes": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", + "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==" + }, + "pretty-error": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz", + "integrity": "sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw==", + "requires": { + "lodash": "^4.17.20", + "renderkid": "^3.0.0" + } + }, + "pretty-format": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", + "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", + "requires": { + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^17.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==" + } + } + }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "promise": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/promise/-/promise-8.3.0.tgz", + "integrity": "sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg==", + "requires": { + "asap": "~2.0.6" + } + }, + "prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "requires": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + } + }, + "prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "requires": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + }, + "dependencies": { + "react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + } + } + }, + "proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "requires": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "dependencies": { + "ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" + } + } + }, + "psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" + }, + "punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==" + }, + "q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==" + }, + "qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "requires": { + "side-channel": "^1.0.4" + } + }, + "querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" + }, + "queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" + }, + "raf": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz", + "integrity": "sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==", + "requires": { + "performance-now": "^2.1.0" + } + }, + "randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "requires": { + "safe-buffer": "^5.1.0" + } + }, + "range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" + }, + "raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "requires": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "dependencies": { + "bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + } + } + }, + "react": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "requires": { + "loose-envify": "^1.1.0" + } + }, + "react-app-polyfill": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/react-app-polyfill/-/react-app-polyfill-3.0.0.tgz", + "integrity": "sha512-sZ41cxiU5llIB003yxxQBYrARBqe0repqPTTYBTmMqTz9szeBbE37BehCE891NZsmdZqqP+xWKdT3eo3vOzN8w==", + "requires": { + "core-js": "^3.19.2", + "object-assign": "^4.1.1", + "promise": "^8.1.0", + "raf": "^3.4.1", + "regenerator-runtime": "^0.13.9", + "whatwg-fetch": "^3.6.2" + } + }, + "react-dev-utils": { + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz", + "integrity": "sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==", + "requires": { + "@babel/code-frame": "^7.16.0", + "address": "^1.1.2", + "browserslist": "^4.18.1", + "chalk": "^4.1.2", + "cross-spawn": "^7.0.3", + "detect-port-alt": "^1.1.6", + "escape-string-regexp": "^4.0.0", + "filesize": "^8.0.6", + "find-up": "^5.0.0", + "fork-ts-checker-webpack-plugin": "^6.5.0", + "global-modules": "^2.0.0", + "globby": "^11.0.4", + "gzip-size": "^6.0.0", + "immer": "^9.0.7", + "is-root": "^2.1.0", + "loader-utils": "^3.2.0", + "open": "^8.4.0", + "pkg-up": "^3.1.0", + "prompts": "^2.4.2", + "react-error-overlay": "^6.0.11", + "recursive-readdir": "^2.2.2", + "shell-quote": "^1.7.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "loader-utils": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.1.tgz", + "integrity": "sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "react-dom": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", + "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", + "requires": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.0" + } + }, + "react-error-overlay": { + "version": "6.0.11", + "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz", + "integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==" + }, + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + }, + "react-refresh": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz", + "integrity": "sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A==" + }, + "react-scripts": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz", + "integrity": "sha512-8VAmEm/ZAwQzJ+GOMLbBsTdDKOpuZh7RPs0UymvBR2vRk4iZWCskjbFnxqjrzoIvlNNRZ3QJFx6/qDSi6zSnaQ==", + "requires": { + "@babel/core": "^7.16.0", + "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3", + "@svgr/webpack": "^5.5.0", + "babel-jest": "^27.4.2", + "babel-loader": "^8.2.3", + "babel-plugin-named-asset-import": "^0.3.8", + "babel-preset-react-app": "^10.0.1", + "bfj": "^7.0.2", + "browserslist": "^4.18.1", + "camelcase": "^6.2.1", + "case-sensitive-paths-webpack-plugin": "^2.4.0", + "css-loader": "^6.5.1", + "css-minimizer-webpack-plugin": "^3.2.0", + "dotenv": "^10.0.0", + "dotenv-expand": "^5.1.0", + "eslint": "^8.3.0", + "eslint-config-react-app": "^7.0.1", + "eslint-webpack-plugin": "^3.1.1", + "file-loader": "^6.2.0", + "fs-extra": "^10.0.0", + "fsevents": "^2.3.2", + "html-webpack-plugin": "^5.5.0", + "identity-obj-proxy": "^3.0.0", + "jest": "^27.4.3", + "jest-resolve": "^27.4.2", + "jest-watch-typeahead": "^1.0.0", + "mini-css-extract-plugin": "^2.4.5", + "postcss": "^8.4.4", + "postcss-flexbugs-fixes": "^5.0.2", + "postcss-loader": "^6.2.1", + "postcss-normalize": "^10.0.1", + "postcss-preset-env": "^7.0.1", + "prompts": "^2.4.2", + "react-app-polyfill": "^3.0.0", + "react-dev-utils": "^12.0.1", + "react-refresh": "^0.11.0", + "resolve": "^1.20.0", + "resolve-url-loader": "^4.0.0", + "sass-loader": "^12.3.0", + "semver": "^7.3.5", + "source-map-loader": "^3.0.0", + "style-loader": "^3.3.1", + "tailwindcss": "^3.0.2", + "terser-webpack-plugin": "^5.2.5", + "webpack": "^5.64.4", + "webpack-dev-server": "^4.6.0", + "webpack-manifest-plugin": "^4.0.2", + "workbox-webpack-plugin": "^6.4.1" + } + }, + "read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "requires": { + "pify": "^2.3.0" + } + }, + "readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "requires": { + "picomatch": "^2.2.1" + } + }, + "recursive-readdir": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz", + "integrity": "sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA==", + "requires": { + "minimatch": "^3.0.5" + } + }, + "redent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "requires": { + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" + } + }, + "regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" + }, + "regenerate-unicode-properties": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", + "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", + "requires": { + "regenerate": "^1.4.2" + } + }, + "regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" + }, + "regenerator-transform": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz", + "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==", + "requires": { + "@babel/runtime": "^7.8.4" + } + }, + "regex-parser": { + "version": "2.2.11", + "resolved": "https://registry.npmjs.org/regex-parser/-/regex-parser-2.2.11.tgz", + "integrity": "sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q==" + }, + "regexp.prototype.flags": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", + "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" + } + }, + "regexpu-core": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", + "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", + "requires": { + "@babel/regjsgen": "^0.8.0", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + } + }, + "regjsparser": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", + "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "requires": { + "jsesc": "~0.5.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==" + } + } + }, + "relateurl": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", + "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==" + }, + "renderkid": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-3.0.0.tgz", + "integrity": "sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==", + "requires": { + "css-select": "^4.1.3", + "dom-converter": "^0.2.0", + "htmlparser2": "^6.1.0", + "lodash": "^4.17.21", + "strip-ansi": "^6.0.1" + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==" + }, + "require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" + }, + "requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" + }, + "resolve": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", + "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", + "requires": { + "is-core-module": "^2.11.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "requires": { + "resolve-from": "^5.0.0" + } + }, + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==" + }, + "resolve-url-loader": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-4.0.0.tgz", + "integrity": "sha512-05VEMczVREcbtT7Bz+C+96eUO5HDNvdthIiMB34t7FcF8ehcu4wC0sSgPUubs3XW2Q3CNLJk/BJrCU9wVRymiA==", + "requires": { + "adjust-sourcemap-loader": "^4.0.0", + "convert-source-map": "^1.7.0", + "loader-utils": "^2.0.0", + "postcss": "^7.0.35", + "source-map": "0.6.1" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==" + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + } + } + }, + "resolve.exports": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.1.tgz", + "integrity": "sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ==" + }, + "retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==" + }, + "reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==" + }, + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "requires": { + "glob": "^7.1.3" + } + }, + "rollup": { + "version": "2.79.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz", + "integrity": "sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==", + "requires": { + "fsevents": "~2.3.2" + } + }, + "rollup-plugin-terser": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz", + "integrity": "sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==", + "requires": { + "@babel/code-frame": "^7.10.4", + "jest-worker": "^26.2.1", + "serialize-javascript": "^4.0.0", + "terser": "^5.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "jest-worker": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + } + }, + "serialize-javascript": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", + "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", + "requires": { + "randombytes": "^2.1.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "requires": { + "queue-microtask": "^1.2.2" + } + }, + "safe-array-concat": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz", + "integrity": "sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==", + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + }, + "safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + } + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "sanitize.css": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/sanitize.css/-/sanitize.css-13.0.0.tgz", + "integrity": "sha512-ZRwKbh/eQ6w9vmTjkuG0Ioi3HBwPFce0O+v//ve+aOq1oeCy7jMV2qzzAlpsNuqpqCBjjriM1lbtZbF/Q8jVyA==" + }, + "sass-loader": { + "version": "12.6.0", + "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.6.0.tgz", + "integrity": "sha512-oLTaH0YCtX4cfnJZxKSLAyglED0naiYfNG1iXfU5w1LNZ+ukoA5DtyDIN5zmKVZwYNJP4KRc5Y3hkWga+7tYfA==", + "requires": { + "klona": "^2.0.4", + "neo-async": "^2.6.2" + } + }, + "sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" + }, + "saxes": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", + "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", + "requires": { + "xmlchars": "^2.2.0" + } + }, + "scheduler": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", + "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", + "requires": { + "loose-envify": "^1.1.0" + } + }, + "schema-utils": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", + "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + }, + "select-hose": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", + "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==" + }, + "selfsigned": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.1.1.tgz", + "integrity": "sha512-GSL3aowiF7wa/WtSFwnUrludWFoNhftq8bUkH9pkzjpN2XSPOAYEgg6e0sS9s0rZwgJzJiQRPU18A6clnoW5wQ==", + "requires": { + "node-forge": "^1" + } + }, + "semver": { + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "requires": { + "lru-cache": "^6.0.0" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "requires": { + "yallist": "^4.0.0" + } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + } + } + }, + "send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "requires": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + }, + "dependencies": { + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + } + } + }, + "serialize-javascript": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "requires": { + "randombytes": "^2.1.0" + } + }, + "serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==", + "requires": { + "accepts": "~1.3.4", + "batch": "0.6.1", + "debug": "2.6.9", + "escape-html": "~1.0.3", + "http-errors": "~1.6.2", + "mime-types": "~2.1.17", + "parseurl": "~1.3.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==" + }, + "http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", + "requires": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" + }, + "statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==" + } + } + }, + "serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "requires": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + } + }, + "setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" + }, + "shell-quote": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", + "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==" + }, + "side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "requires": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + } + }, + "signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + }, + "sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" + }, + "sockjs": { + "version": "0.3.24", + "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz", + "integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==", + "requires": { + "faye-websocket": "^0.11.3", + "uuid": "^8.3.2", + "websocket-driver": "^0.7.4" + } + }, + "source-list-map": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", + "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==" + }, + "source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==" + }, + "source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" + }, + "source-map-loader": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/source-map-loader/-/source-map-loader-3.0.2.tgz", + "integrity": "sha512-BokxPoLjyl3iOrgkWaakaxqnelAJSS+0V+De0kKIq6lyWrXuiPgYTGp6z3iHmqljKAaLXwZa+ctD8GccRJeVvg==", + "requires": { + "abab": "^2.0.5", + "iconv-lite": "^0.6.3", + "source-map-js": "^1.0.1" + } + }, + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + } + } + }, + "sourcemap-codec": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==" + }, + "spdy": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", + "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", + "requires": { + "debug": "^4.1.0", + "handle-thing": "^2.0.0", + "http-deceiver": "^1.2.7", + "select-hose": "^2.0.0", + "spdy-transport": "^3.0.0" + } + }, + "spdy-transport": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", + "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", + "requires": { + "debug": "^4.1.0", + "detect-node": "^2.0.4", + "hpack.js": "^2.1.6", + "obuf": "^1.1.2", + "readable-stream": "^3.0.6", + "wbuf": "^1.7.3" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" + }, + "stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==" + }, + "stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "requires": { + "escape-string-regexp": "^2.0.0" + }, + "dependencies": { + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==" + } + } + }, + "stackframe": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", + "integrity": "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==" + }, + "statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" + }, + "stop-iteration-iterator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", + "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", + "requires": { + "internal-slot": "^1.0.4" + } + }, + "string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "requires": { + "safe-buffer": "~5.2.0" + } + }, + "string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "requires": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + } + }, + "string-natural-compare": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/string-natural-compare/-/string-natural-compare-3.0.1.tgz", + "integrity": "sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==" + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "dependencies": { + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + } + } + }, + "string.prototype.matchall": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz", + "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "regexp.prototype.flags": "^1.4.3", + "side-channel": "^1.0.4" + } + }, + "string.prototype.trim": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", + "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "string.prototype.trimend": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", + "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "string.prototype.trimstart": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", + "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "stringify-object": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz", + "integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==", + "requires": { + "get-own-enumerable-property-symbols": "^3.0.0", + "is-obj": "^1.0.1", + "is-regexp": "^1.0.0" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==" + }, + "strip-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-comments/-/strip-comments-2.0.1.tgz", + "integrity": "sha512-ZprKx+bBLXv067WTCALv8SSz5l2+XhpYCsVtSqlMnkAXMWDq+/ekVbl1ghqP9rUHTzv6sm/DwCOiYutU/yp1fw==" + }, + "strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==" + }, + "strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "requires": { + "min-indent": "^1.0.0" + } + }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==" + }, + "style-loader": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-3.3.3.tgz", + "integrity": "sha512-53BiGLXAcll9maCYtZi2RCQZKa8NQQai5C4horqKyRmHj9H7QmcUyucrH+4KW/gBQbXM2AsB0axoEcFZPlfPcw==" + }, + "stylehacks": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz", + "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==", + "requires": { + "browserslist": "^4.21.4", + "postcss-selector-parser": "^6.0.4" + } + }, + "sucrase": { + "version": "3.32.0", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.32.0.tgz", + "integrity": "sha512-ydQOU34rpSyj2TGyz4D2p8rbktIOZ8QY9s+DGLvFU1i5pWJE8vkpruCjGCMHsdXwnD7JDcS+noSwM/a7zyNFDQ==", + "requires": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "glob": "7.1.6", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "ts-interface-checker": "^0.1.9" + }, + "dependencies": { + "commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==" + }, + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + } + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "requires": { + "has-flag": "^3.0.0" + } + }, + "supports-hyperlinks": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", + "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", + "requires": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==" + }, + "svg-parser": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz", + "integrity": "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==" + }, + "svgo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-1.3.2.tgz", + "integrity": "sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw==", + "requires": { + "chalk": "^2.4.1", + "coa": "^2.0.2", + "css-select": "^2.0.0", + "css-select-base-adapter": "^0.1.1", + "css-tree": "1.0.0-alpha.37", + "csso": "^4.0.2", + "js-yaml": "^3.13.1", + "mkdirp": "~0.5.1", + "object.values": "^1.1.0", + "sax": "~1.2.4", + "stable": "^0.1.8", + "unquote": "~1.1.1", + "util.promisify": "~1.0.0" + }, + "dependencies": { + "css-select": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz", + "integrity": "sha512-Dqk7LQKpwLoH3VovzZnkzegqNSuAziQyNZUcrdDM401iY+R5NkGBXGmtO05/yaXQziALuPogeG0b7UAgjnTJTQ==", + "requires": { + "boolbase": "^1.0.0", + "css-what": "^3.2.1", + "domutils": "^1.7.0", + "nth-check": "^1.0.2" + } + }, + "css-what": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-3.4.2.tgz", + "integrity": "sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ==" + }, + "dom-serializer": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz", + "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==", + "requires": { + "domelementtype": "^2.0.1", + "entities": "^2.0.0" + } + }, + "domutils": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz", + "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", + "requires": { + "dom-serializer": "0", + "domelementtype": "1" + }, + "dependencies": { + "domelementtype": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", + "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==" + } + } + }, + "nth-check": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz", + "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==", + "requires": { + "boolbase": "~1.0.0" + } + } + } + }, + "symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==" + }, + "tailwindcss": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.2.tgz", + "integrity": "sha512-9jPkMiIBXvPc2KywkraqsUfbfj+dHDb+JPWtSJa9MLFdrPyazI7q6WX2sUrm7R9eVR7qqv3Pas7EvQFzxKnI6w==", + "requires": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.5.3", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.2.12", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.18.2", + "lilconfig": "^2.1.0", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.23", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.1", + "postcss-nested": "^6.0.1", + "postcss-selector-parser": "^6.0.11", + "postcss-value-parser": "^4.2.0", + "resolve": "^1.22.2", + "sucrase": "^3.32.0" + } + }, + "tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==" + }, + "temp-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", + "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==" + }, + "tempy": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tempy/-/tempy-0.6.0.tgz", + "integrity": "sha512-G13vtMYPT/J8A4X2SjdtBTphZlrp1gKv6hZiOjw14RCWg6GbHuQBGtjlx75xLbYV/wEc0D7G5K4rxKP/cXk8Bw==", + "requires": { + "is-stream": "^2.0.0", + "temp-dir": "^2.0.0", + "type-fest": "^0.16.0", + "unique-string": "^2.0.0" + }, + "dependencies": { + "type-fest": { + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.16.0.tgz", + "integrity": "sha512-eaBzG6MxNzEn9kiwvtre90cXaNLkmadMWa1zQMs3XORCXNbsH/OewwbxC5ia9dCxIxnTAsSxXJaa/p5y8DlvJg==" + } + } + }, + "terminal-link": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", + "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", + "requires": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + } + }, + "terser": { + "version": "5.17.6", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.17.6.tgz", + "integrity": "sha512-V8QHcs8YuyLkLHsJO5ucyff1ykrLVsR4dNnS//L5Y3NiSXpbK1J+WMVUs67eI0KTxs9JtHhgEQpXQVHlHI92DQ==", + "requires": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "dependencies": { + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + } + } + }, + "terser-webpack-plugin": { + "version": "5.3.9", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", + "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", + "requires": { + "@jridgewell/trace-mapping": "^0.3.17", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.8" + } + }, + "test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "requires": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + } + }, + "text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==" + }, + "thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "requires": { + "any-promise": "^1.0.0" + } + }, + "thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "requires": { + "thenify": ">= 3.1.0 < 4" + } + }, + "throat": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.2.tgz", + "integrity": "sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ==" + }, + "thunky": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", + "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==" + }, + "tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==" + }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==" + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "requires": { + "is-number": "^7.0.0" + } + }, + "toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" + }, + "tough-cookie": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz", + "integrity": "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==", + "requires": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "dependencies": { + "universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==" + } + } + }, + "tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "requires": { + "punycode": "^2.1.1" + } + }, + "tryer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tryer/-/tryer-1.0.1.tgz", + "integrity": "sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==" + }, + "ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==" + }, + "tsconfig-paths": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", + "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", + "requires": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + }, + "dependencies": { + "json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "requires": { + "minimist": "^1.2.0" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==" + } + } + }, + "tslib": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz", + "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==" + }, + "tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "requires": { + "tslib": "^1.8.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + } + } + }, + "type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "requires": { + "prelude-ls": "^1.2.1" + } + }, + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==" + }, + "type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==" + }, + "type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "requires": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + } + }, + "typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "requires": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + } + }, + "typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "requires": { + "is-typedarray": "^1.0.0" + } + }, + "unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "requires": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + } + }, + "unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==" + }, + "unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "requires": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + } + }, + "unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", + "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==" + }, + "unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==" + }, + "unique-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", + "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", + "requires": { + "crypto-random-string": "^2.0.0" + } + }, + "universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==" + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==" + }, + "unquote": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unquote/-/unquote-1.1.1.tgz", + "integrity": "sha512-vRCqFv6UhXpWxZPyGDh/F3ZpNv8/qo7w6iufLpQg9aKnQ71qM4B5KiI7Mia9COcjEhrO9LueHpMYjYzsWH3OIg==" + }, + "upath": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", + "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==" + }, + "update-browserslist-db": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", + "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "requires": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + } + }, + "uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "requires": { + "punycode": "^2.1.0" + } + }, + "url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "requires": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "util.promisify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.1.tgz", + "integrity": "sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA==", + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.2", + "has-symbols": "^1.0.1", + "object.getownpropertydescriptors": "^2.1.0" + } + }, + "utila": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", + "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==" + }, + "utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" + }, + "uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" + }, + "v8-to-istanbul": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", + "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + } + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==" + }, + "w3c-hr-time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", + "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", + "requires": { + "browser-process-hrtime": "^1.0.0" + } + }, + "w3c-xmlserializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", + "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", + "requires": { + "xml-name-validator": "^3.0.0" + } + }, + "walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "requires": { + "makeerror": "1.0.12" + } + }, + "watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "requires": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + } + }, + "wbuf": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", + "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", + "requires": { + "minimalistic-assert": "^1.0.0" + } + }, + "web-vitals": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-2.1.4.tgz", + "integrity": "sha512-sVWcwhU5mX6crfI5Vd2dC4qchyTqxV8URinzt25XqVh+bHEPGH4C3NPrNionCP7Obx59wrYEbNlw4Z8sjALzZg==" + }, + "webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==" + }, + "webpack": { + "version": "5.84.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.84.1.tgz", + "integrity": "sha512-ZP4qaZ7vVn/K8WN/p990SGATmrL1qg4heP/MrVneczYtpDGJWlrgZv55vxaV2ul885Kz+25MP2kSXkPe3LZfmg==", + "requires": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.0", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.14.1", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.2", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.7", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "dependencies": { + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" + } + } + }, + "webpack-dev-middleware": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz", + "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==", + "requires": { + "colorette": "^2.0.10", + "memfs": "^3.4.3", + "mime-types": "^2.1.31", + "range-parser": "^1.2.1", + "schema-utils": "^4.0.0" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "requires": { + "fast-deep-equal": "^3.1.3" + } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + } + } + } + }, + "webpack-dev-server": { + "version": "4.15.0", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.0.tgz", + "integrity": "sha512-HmNB5QeSl1KpulTBQ8UT4FPrByYyaLxpJoQ0+s7EvUrMc16m0ZS1sgb1XGqzmgCPk0c9y+aaXxn11tbLzuM7NQ==", + "requires": { + "@types/bonjour": "^3.5.9", + "@types/connect-history-api-fallback": "^1.3.5", + "@types/express": "^4.17.13", + "@types/serve-index": "^1.9.1", + "@types/serve-static": "^1.13.10", + "@types/sockjs": "^0.3.33", + "@types/ws": "^8.5.1", + "ansi-html-community": "^0.0.8", + "bonjour-service": "^1.0.11", + "chokidar": "^3.5.3", + "colorette": "^2.0.10", + "compression": "^1.7.4", + "connect-history-api-fallback": "^2.0.0", + "default-gateway": "^6.0.3", + "express": "^4.17.3", + "graceful-fs": "^4.2.6", + "html-entities": "^2.3.2", + "http-proxy-middleware": "^2.0.3", + "ipaddr.js": "^2.0.1", + "launch-editor": "^2.6.0", + "open": "^8.0.9", + "p-retry": "^4.5.0", + "rimraf": "^3.0.2", + "schema-utils": "^4.0.0", + "selfsigned": "^2.1.1", + "serve-index": "^1.9.1", + "sockjs": "^0.3.24", + "spdy": "^4.0.2", + "webpack-dev-middleware": "^5.3.1", + "ws": "^8.13.0" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "requires": { + "fast-deep-equal": "^3.1.3" + } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "schema-utils": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz", + "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==", + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + } + }, + "ws": { + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==" + } + } + }, + "webpack-manifest-plugin": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/webpack-manifest-plugin/-/webpack-manifest-plugin-4.1.1.tgz", + "integrity": "sha512-YXUAwxtfKIJIKkhg03MKuiFAD72PlrqCiwdwO4VEXdRO5V0ORCNwaOwAZawPZalCbmH9kBDmXnNeQOw+BIEiow==", + "requires": { + "tapable": "^2.0.0", + "webpack-sources": "^2.2.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + }, + "webpack-sources": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-2.3.1.tgz", + "integrity": "sha512-y9EI9AO42JjEcrTJFOYmVywVZdKVUfOvDUPsJea5GIr1JOEGFVqwlY2K098fFoIjOkDzHn2AjRvM8dsBZu+gCA==", + "requires": { + "source-list-map": "^2.0.1", + "source-map": "^0.6.1" + } + } + } + }, + "webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==" + }, + "websocket-driver": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", + "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", + "requires": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + } + }, + "websocket-extensions": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==" + }, + "whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "requires": { + "iconv-lite": "0.4.24" + }, + "dependencies": { + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + } + } + }, + "whatwg-fetch": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", + "integrity": "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==" + }, + "whatwg-mimetype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==" + }, + "whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "requires": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + } + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "requires": { + "isexe": "^2.0.0" + } + }, + "which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "requires": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + } + }, + "which-collection": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", + "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", + "requires": { + "is-map": "^2.0.1", + "is-set": "^2.0.1", + "is-weakmap": "^2.0.1", + "is-weakset": "^2.0.1" + } + }, + "which-typed-array": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", + "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "requires": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + } + }, + "word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==" + }, + "workbox-background-sync": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-background-sync/-/workbox-background-sync-6.6.0.tgz", + "integrity": "sha512-jkf4ZdgOJxC9u2vztxLuPT/UjlH7m/nWRQ/MgGL0v8BJHoZdVGJd18Kck+a0e55wGXdqyHO+4IQTk0685g4MUw==", + "requires": { + "idb": "^7.0.1", + "workbox-core": "6.6.0" + } + }, + "workbox-broadcast-update": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-broadcast-update/-/workbox-broadcast-update-6.6.0.tgz", + "integrity": "sha512-nm+v6QmrIFaB/yokJmQ/93qIJ7n72NICxIwQwe5xsZiV2aI93MGGyEyzOzDPVz5THEr5rC3FJSsO3346cId64Q==", + "requires": { + "workbox-core": "6.6.0" + } + }, + "workbox-build": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-build/-/workbox-build-6.6.0.tgz", + "integrity": "sha512-Tjf+gBwOTuGyZwMz2Nk/B13Fuyeo0Q84W++bebbVsfr9iLkDSo6j6PST8tET9HYA58mlRXwlMGpyWO8ETJiXdQ==", + "requires": { + "@apideck/better-ajv-errors": "^0.3.1", + "@babel/core": "^7.11.1", + "@babel/preset-env": "^7.11.0", + "@babel/runtime": "^7.11.2", + "@rollup/plugin-babel": "^5.2.0", + "@rollup/plugin-node-resolve": "^11.2.1", + "@rollup/plugin-replace": "^2.4.1", + "@surma/rollup-plugin-off-main-thread": "^2.2.3", + "ajv": "^8.6.0", + "common-tags": "^1.8.0", + "fast-json-stable-stringify": "^2.1.0", + "fs-extra": "^9.0.1", + "glob": "^7.1.6", + "lodash": "^4.17.20", + "pretty-bytes": "^5.3.0", + "rollup": "^2.43.1", + "rollup-plugin-terser": "^7.0.0", + "source-map": "^0.8.0-beta.0", + "stringify-object": "^3.3.0", + "strip-comments": "^2.0.1", + "tempy": "^0.6.0", + "upath": "^1.2.0", + "workbox-background-sync": "6.6.0", + "workbox-broadcast-update": "6.6.0", + "workbox-cacheable-response": "6.6.0", + "workbox-core": "6.6.0", + "workbox-expiration": "6.6.0", + "workbox-google-analytics": "6.6.0", + "workbox-navigation-preload": "6.6.0", + "workbox-precaching": "6.6.0", + "workbox-range-requests": "6.6.0", + "workbox-recipes": "6.6.0", + "workbox-routing": "6.6.0", + "workbox-strategies": "6.6.0", + "workbox-streams": "6.6.0", + "workbox-sw": "6.6.0", + "workbox-window": "6.6.0" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "requires": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "source-map": { + "version": "0.8.0-beta.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", + "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", + "requires": { + "whatwg-url": "^7.0.0" + } + }, + "tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", + "requires": { + "punycode": "^2.1.0" + } + }, + "webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==" + }, + "whatwg-url": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", + "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", + "requires": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + } + } + }, + "workbox-cacheable-response": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-cacheable-response/-/workbox-cacheable-response-6.6.0.tgz", + "integrity": "sha512-JfhJUSQDwsF1Xv3EV1vWzSsCOZn4mQ38bWEBR3LdvOxSPgB65gAM6cS2CX8rkkKHRgiLrN7Wxoyu+TuH67kHrw==", + "requires": { + "workbox-core": "6.6.0" + } + }, + "workbox-core": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-core/-/workbox-core-6.6.0.tgz", + "integrity": "sha512-GDtFRF7Yg3DD859PMbPAYPeJyg5gJYXuBQAC+wyrWuuXgpfoOrIQIvFRZnQ7+czTIQjIr1DhLEGFzZanAT/3bQ==" + }, + "workbox-expiration": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-expiration/-/workbox-expiration-6.6.0.tgz", + "integrity": "sha512-baplYXcDHbe8vAo7GYvyAmlS4f6998Jff513L4XvlzAOxcl8F620O91guoJ5EOf5qeXG4cGdNZHkkVAPouFCpw==", + "requires": { + "idb": "^7.0.1", + "workbox-core": "6.6.0" + } + }, + "workbox-google-analytics": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-google-analytics/-/workbox-google-analytics-6.6.0.tgz", + "integrity": "sha512-p4DJa6OldXWd6M9zRl0H6vB9lkrmqYFkRQ2xEiNdBFp9U0LhsGO7hsBscVEyH9H2/3eZZt8c97NB2FD9U2NJ+Q==", + "requires": { + "workbox-background-sync": "6.6.0", + "workbox-core": "6.6.0", + "workbox-routing": "6.6.0", + "workbox-strategies": "6.6.0" + } + }, + "workbox-navigation-preload": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-navigation-preload/-/workbox-navigation-preload-6.6.0.tgz", + "integrity": "sha512-utNEWG+uOfXdaZmvhshrh7KzhDu/1iMHyQOV6Aqup8Mm78D286ugu5k9MFD9SzBT5TcwgwSORVvInaXWbvKz9Q==", + "requires": { + "workbox-core": "6.6.0" + } + }, + "workbox-precaching": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-precaching/-/workbox-precaching-6.6.0.tgz", + "integrity": "sha512-eYu/7MqtRZN1IDttl/UQcSZFkHP7dnvr/X3Vn6Iw6OsPMruQHiVjjomDFCNtd8k2RdjLs0xiz9nq+t3YVBcWPw==", + "requires": { + "workbox-core": "6.6.0", + "workbox-routing": "6.6.0", + "workbox-strategies": "6.6.0" + } + }, + "workbox-range-requests": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-range-requests/-/workbox-range-requests-6.6.0.tgz", + "integrity": "sha512-V3aICz5fLGq5DpSYEU8LxeXvsT//mRWzKrfBOIxzIdQnV/Wj7R+LyJVTczi4CQ4NwKhAaBVaSujI1cEjXW+hTw==", + "requires": { + "workbox-core": "6.6.0" + } + }, + "workbox-recipes": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-recipes/-/workbox-recipes-6.6.0.tgz", + "integrity": "sha512-TFi3kTgYw73t5tg73yPVqQC8QQjxJSeqjXRO4ouE/CeypmP2O/xqmB/ZFBBQazLTPxILUQ0b8aeh0IuxVn9a6A==", + "requires": { + "workbox-cacheable-response": "6.6.0", + "workbox-core": "6.6.0", + "workbox-expiration": "6.6.0", + "workbox-precaching": "6.6.0", + "workbox-routing": "6.6.0", + "workbox-strategies": "6.6.0" + } + }, + "workbox-routing": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-routing/-/workbox-routing-6.6.0.tgz", + "integrity": "sha512-x8gdN7VDBiLC03izAZRfU+WKUXJnbqt6PG9Uh0XuPRzJPpZGLKce/FkOX95dWHRpOHWLEq8RXzjW0O+POSkKvw==", + "requires": { + "workbox-core": "6.6.0" + } + }, + "workbox-strategies": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-strategies/-/workbox-strategies-6.6.0.tgz", + "integrity": "sha512-eC07XGuINAKUWDnZeIPdRdVja4JQtTuc35TZ8SwMb1ztjp7Ddq2CJ4yqLvWzFWGlYI7CG/YGqaETntTxBGdKgQ==", + "requires": { + "workbox-core": "6.6.0" + } + }, + "workbox-streams": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-streams/-/workbox-streams-6.6.0.tgz", + "integrity": "sha512-rfMJLVvwuED09CnH1RnIep7L9+mj4ufkTyDPVaXPKlhi9+0czCu+SJggWCIFbPpJaAZmp2iyVGLqS3RUmY3fxg==", + "requires": { + "workbox-core": "6.6.0", + "workbox-routing": "6.6.0" + } + }, + "workbox-sw": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-sw/-/workbox-sw-6.6.0.tgz", + "integrity": "sha512-R2IkwDokbtHUE4Kus8pKO5+VkPHD2oqTgl+XJwh4zbF1HyjAbgNmK/FneZHVU7p03XUt9ICfuGDYISWG9qV/CQ==" + }, + "workbox-webpack-plugin": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-webpack-plugin/-/workbox-webpack-plugin-6.6.0.tgz", + "integrity": "sha512-xNZIZHalboZU66Wa7x1YkjIqEy1gTR+zPM+kjrYJzqN7iurYZBctBLISyScjhkJKYuRrZUP0iqViZTh8rS0+3A==", + "requires": { + "fast-json-stable-stringify": "^2.1.0", + "pretty-bytes": "^5.4.1", + "upath": "^1.2.0", + "webpack-sources": "^1.4.3", + "workbox-build": "6.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + }, + "webpack-sources": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz", + "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", + "requires": { + "source-list-map": "^2.0.0", + "source-map": "~0.6.1" + } + } + } + }, + "workbox-window": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/workbox-window/-/workbox-window-6.6.0.tgz", + "integrity": "sha512-L4N9+vka17d16geaJXXRjENLFldvkWy7JyGxElRD0JvBxvFEd8LOhr+uXCcar/NzAmIBRv9EZ+M+Qr4mOoBITw==", + "requires": { + "@types/trusted-types": "^2.0.2", + "workbox-core": "6.6.0" + } + }, + "wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + } + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "requires": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==" + }, + "xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==" + }, + "xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==" + }, + "y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + }, + "yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==" + }, + "yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "requires": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + } + }, + "yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==" + }, + "yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" + } + } +} diff --git a/Games/Pac_Man/package.json b/Games/Pac_Man/package.json index a775dbf0d5..c972e37bf7 100644 --- a/Games/Pac_Man/package.json +++ b/Games/Pac_Man/package.json @@ -1,38 +1,38 @@ -{ - "name": "pac_man", - "version": "0.1.0", - "private": true, - "dependencies": { - "@testing-library/jest-dom": "^5.16.5", - "@testing-library/react": "^13.4.0", - "@testing-library/user-event": "^13.5.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-scripts": "5.0.1", - "web-vitals": "^2.1.4" - }, - "scripts": { - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test", - "eject": "react-scripts eject" - }, - "eslintConfig": { - "extends": [ - "react-app", - "react-app/jest" - ] - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - } -} +{ + "name": "pac_man", + "version": "0.1.0", + "private": true, + "dependencies": { + "@testing-library/jest-dom": "^5.16.5", + "@testing-library/react": "^13.4.0", + "@testing-library/user-event": "^13.5.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-scripts": "5.0.1", + "web-vitals": "^2.1.4" + }, + "scripts": { + "start": "react-scripts start", + "build": "react-scripts build", + "test": "react-scripts test", + "eject": "react-scripts eject" + }, + "eslintConfig": { + "extends": [ + "react-app", + "react-app/jest" + ] + }, + "browserslist": { + "production": [ + ">0.2%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 1 chrome version", + "last 1 firefox version", + "last 1 safari version" + ] + } +} diff --git a/Games/Pac_Man/public/index.html b/Games/Pac_Man/public/index.html index ec9e3d379e..426af33168 100644 --- a/Games/Pac_Man/public/index.html +++ b/Games/Pac_Man/public/index.html @@ -1,19 +1,19 @@ - - - - - - - - - Pac-Man - - -
-
-
- -
- - + + + + + + + + + Pac-Man + + +
+
+
+ +
+ + \ No newline at end of file diff --git a/Games/Pac_Man/public/index.js b/Games/Pac_Man/public/index.js index f83264d000..0b6cff32e5 100644 --- a/Games/Pac_Man/public/index.js +++ b/Games/Pac_Man/public/index.js @@ -1,146 +1,146 @@ -import { LEVEL, OBJECT_TYPE} from './setup'; -import { randomMovement } from './ghostMoves.js'; - -//classes -import GameBoard from './GameBoard'; -import Pacman from './Pacman'; -import Ghost from './Ghost'; - -//sounds -import soundDot from './sounds/munch.wav'; -import soundPill from './sounds/pill.wav'; -import soundGameStart from './sounds/game_start.wav'; -import soundGameOver from './sounds/death.wav'; -import soundGhost from './sounds/eat_ghost.wav'; - -//DOM Elements -const gameGrid = document.querySelector('#game'); -const scoreTable = document.querySelector('#score'); -const startButton = document.querySelector('#start-button'); - -//Game constants -const POWER_PILL_TIME = 10000; //ms -const GLOBAL_SPEED = 80; //ms -const gameBoard = GameBoard.createGameBoard(gameGrid, LEVEL); - -//Initial setup -let score = 0; -let timer = null; -let gameWin = false; -let powerPillActive = false; -let powerPillTimer = null; - -//Audio -function playAudio(audio) { - const soundEffect = new Audio(audio); - soundEffect.play(); -} - -function GameOver(pacman, grid) { - playAudio(soundGameOver); - document.removeEventListener('keydown', (e) => - pacman.handleKeyInput(e, gameBoard.objectExist) - ) - - gameBoard.showGameStatus(gameWin); - - clearInterval(timer); - - startButton.classList.remove('hide'); -} - -function checkCollision(pacman, ghosts){ - const collidedGhost = ghosts.find( ghost => pacman.pos === ghost.pos); - - if(collidedGhost) { - if (pacman.powerPill) { - playAudio(soundGhost); - gameBoard.removeObject(collidedGhost.pos, [ - OBJECT_TYPE.GHOST, - OBJECT_TYPE.SCARED, - collidedGhost.name - ]); - collidedGhost.pos = collidedGhost.startPos; - score += 100; //100 points for eating the ghost - } else { - gameBoard.removeObject(pacman.pos, [OBJECT_TYPE.PACMAN]); - gameBoard.rotateDiv(pacman.pos, 0); - GameOver(pacman, gameGrid); - } - } -} - -function gameLoop(pacman, ghosts) { - gameBoard.moveCharacter(pacman); - checkCollision(pacman, ghosts); - - ghosts.forEach( (ghost) => gameBoard.moveCharacter(ghost)); - checkCollision(pacman, ghosts); - - //check if pacman eats a dot - if (gameBoard.objectExist(pacman.pos, OBJECT_TYPE.DOT)) { - playAudio(soundDot); - gameBoard.removeObject(pacman.pos, [OBJECT_TYPE.DOT]); - gameBoard.dotCount--; - score += 10; - } - - //check if pacman eats a powerpill - if (gameBoard.objectExist(pacman.pos, OBJECT_TYPE.PILL)) { - playAudio(soundPill); - gameBoard.removeObject(pacman.pos, [OBJECT_TYPE.PILL]); - - pacman.powerPill = true; - score += 50; - - clearTimeout(powerPillTimer); //after 10 secs new timer again starts for the powerpill whenever the pacan eats powerpill - powerPillTimer = setTimeout( - () => (pacman.powerPill = false), - POWER_PILL_TIME - ); - } - - //change ghost scare mode depending on powerpill - if (pacman.powerPill !== powerPillActive) { - powerPillActive = pacman.powerPill; - ghosts.forEach(ghost => (ghost.isScared = pacman.powerPill)); - } - - //check if all dots have been eaten - if (gameBoard.dotCount === 0) { - gameWin = true; - GameOver(pacman, ghosts); - } - - //show the table - scoreTable.innerHTML = score; -} - -function startGame(){ - playAudio(soundGameStart); - gameWin = false; - powerPillActive = false; - score = 0; - - startButton.classList.add('hide'); - - gameBoard.createGrid(LEVEL); - - const pacman = new Pacman(2, 287); - gameBoard.addObject(287, [OBJECT_TYPE.PACMAN]); - document.addEventListener('keydown', (e) => - pacman.handleKeyInput(e, gameBoard.objectExist) //or we can use this line as pacman.handleKeyInput(e, gameBoard.objectExist.bind(gameBoard))...if we are using bind then arrow function is not required..but if we are not using arrow function here then we will have to add bind function - ); - - const ghosts = [ - new Ghost(5, 188, randomMovement, OBJECT_TYPE.BLINKY), - new Ghost(4, 209, randomMovement, OBJECT_TYPE.PINKY), - new Ghost(3, 230, randomMovement, OBJECT_TYPE.INKY), - new Ghost(2, 251, randomMovement, OBJECT_TYPE.CLYDE) - ]; - - timer = setInterval(() => gameLoop(pacman, ghosts), GLOBAL_SPEED); -} - -//initialize game +import { LEVEL, OBJECT_TYPE} from './setup'; +import { randomMovement } from './ghostMoves.js'; + +//classes +import GameBoard from './GameBoard'; +import Pacman from './Pacman'; +import Ghost from './Ghost'; + +//sounds +import soundDot from './sounds/munch.wav'; +import soundPill from './sounds/pill.wav'; +import soundGameStart from './sounds/game_start.wav'; +import soundGameOver from './sounds/death.wav'; +import soundGhost from './sounds/eat_ghost.wav'; + +//DOM Elements +const gameGrid = document.querySelector('#game'); +const scoreTable = document.querySelector('#score'); +const startButton = document.querySelector('#start-button'); + +//Game constants +const POWER_PILL_TIME = 10000; //ms +const GLOBAL_SPEED = 80; //ms +const gameBoard = GameBoard.createGameBoard(gameGrid, LEVEL); + +//Initial setup +let score = 0; +let timer = null; +let gameWin = false; +let powerPillActive = false; +let powerPillTimer = null; + +//Audio +function playAudio(audio) { + const soundEffect = new Audio(audio); + soundEffect.play(); +} + +function GameOver(pacman, grid) { + playAudio(soundGameOver); + document.removeEventListener('keydown', (e) => + pacman.handleKeyInput(e, gameBoard.objectExist) + ) + + gameBoard.showGameStatus(gameWin); + + clearInterval(timer); + + startButton.classList.remove('hide'); +} + +function checkCollision(pacman, ghosts){ + const collidedGhost = ghosts.find( ghost => pacman.pos === ghost.pos); + + if(collidedGhost) { + if (pacman.powerPill) { + playAudio(soundGhost); + gameBoard.removeObject(collidedGhost.pos, [ + OBJECT_TYPE.GHOST, + OBJECT_TYPE.SCARED, + collidedGhost.name + ]); + collidedGhost.pos = collidedGhost.startPos; + score += 100; //100 points for eating the ghost + } else { + gameBoard.removeObject(pacman.pos, [OBJECT_TYPE.PACMAN]); + gameBoard.rotateDiv(pacman.pos, 0); + GameOver(pacman, gameGrid); + } + } +} + +function gameLoop(pacman, ghosts) { + gameBoard.moveCharacter(pacman); + checkCollision(pacman, ghosts); + + ghosts.forEach( (ghost) => gameBoard.moveCharacter(ghost)); + checkCollision(pacman, ghosts); + + //check if pacman eats a dot + if (gameBoard.objectExist(pacman.pos, OBJECT_TYPE.DOT)) { + playAudio(soundDot); + gameBoard.removeObject(pacman.pos, [OBJECT_TYPE.DOT]); + gameBoard.dotCount--; + score += 10; + } + + //check if pacman eats a powerpill + if (gameBoard.objectExist(pacman.pos, OBJECT_TYPE.PILL)) { + playAudio(soundPill); + gameBoard.removeObject(pacman.pos, [OBJECT_TYPE.PILL]); + + pacman.powerPill = true; + score += 50; + + clearTimeout(powerPillTimer); //after 10 secs new timer again starts for the powerpill whenever the pacan eats powerpill + powerPillTimer = setTimeout( + () => (pacman.powerPill = false), + POWER_PILL_TIME + ); + } + + //change ghost scare mode depending on powerpill + if (pacman.powerPill !== powerPillActive) { + powerPillActive = pacman.powerPill; + ghosts.forEach(ghost => (ghost.isScared = pacman.powerPill)); + } + + //check if all dots have been eaten + if (gameBoard.dotCount === 0) { + gameWin = true; + GameOver(pacman, ghosts); + } + + //show the table + scoreTable.innerHTML = score; +} + +function startGame(){ + playAudio(soundGameStart); + gameWin = false; + powerPillActive = false; + score = 0; + + startButton.classList.add('hide'); + + gameBoard.createGrid(LEVEL); + + const pacman = new Pacman(2, 287); + gameBoard.addObject(287, [OBJECT_TYPE.PACMAN]); + document.addEventListener('keydown', (e) => + pacman.handleKeyInput(e, gameBoard.objectExist) //or we can use this line as pacman.handleKeyInput(e, gameBoard.objectExist.bind(gameBoard))...if we are using bind then arrow function is not required..but if we are not using arrow function here then we will have to add bind function + ); + + const ghosts = [ + new Ghost(5, 188, randomMovement, OBJECT_TYPE.BLINKY), + new Ghost(4, 209, randomMovement, OBJECT_TYPE.PINKY), + new Ghost(3, 230, randomMovement, OBJECT_TYPE.INKY), + new Ghost(2, 251, randomMovement, OBJECT_TYPE.CLYDE) + ]; + + timer = setInterval(() => gameLoop(pacman, ghosts), GLOBAL_SPEED); +} + +//initialize game startButton.addEventListener('click', startGame); \ No newline at end of file diff --git a/Games/Pac_Man/public/manifest.json b/Games/Pac_Man/public/manifest.json index 2f2be64fee..080d6c77ac 100644 --- a/Games/Pac_Man/public/manifest.json +++ b/Games/Pac_Man/public/manifest.json @@ -1,25 +1,25 @@ -{ - "short_name": "React App", - "name": "Create React App Sample", - "icons": [ - { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - }, - { - "src": "logo192.png", - "type": "image/png", - "sizes": "192x192" - }, - { - "src": "logo512.png", - "type": "image/png", - "sizes": "512x512" - } - ], - "start_url": ".", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" -} +{ + "short_name": "React App", + "name": "Create React App Sample", + "icons": [ + { + "src": "favicon.ico", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + }, + { + "src": "logo192.png", + "type": "image/png", + "sizes": "192x192" + }, + { + "src": "logo512.png", + "type": "image/png", + "sizes": "512x512" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" +} diff --git a/Games/Pac_Man/public/style.css b/Games/Pac_Man/public/style.css index 94e3a9a34b..1d72d67b54 100644 --- a/Games/Pac_Man/public/style.css +++ b/Games/Pac_Man/public/style.css @@ -1,169 +1,169 @@ -* { - box-sizing: border-box; - } - - body { - background: url('./images/bg3.jpg') no-repeat center center fixed; - background-size: cover; - } - - #wrapper { - position: relative; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - } - - #game { - position: relative; - display: inline-grid; - margin-top: 133px; - background: black; - } - - .game-status { - position: absolute; - top: 0; - left: 0; - display: flex; - align-items: center; - justify-content: center; - width: 100%; - height: 50px; - border: 5px darkblue solid; - background: black; - color: white; - font-family: Arial, Helvetica, sans-serif; - font-size: 1.5rem; - } - - #score { - display: flex; - align-items: center; - justify-content: center; - width: 200px; - height: 50px; - border: 2.5px rgb(82, 82, 102) solid; - background: black; - margin-top: 20px; - color: white; - font-family: Arial, Helvetica, sans-serif; - font-size: 2rem; - border-radius: 2.5rem; - } - - #start-button { - margin-top: 20px; - } - - .hide { - display: none; - } - - .square { - display: block; - } - - .blank { - background: black; - } - - .wall { - border: 1px solid blue; - } - - .dot { - background: white; - border: 8px solid black; - border-radius: 50%; - } - - .pill { - background: white; - border: 5px solid black; - border-radius: 50%; - } - - .ghost { - position: relative; - border-radius: 10px 10px 2px 2px; - border: none; - } - - .ghost::before { - content: ''; - display: block; - position: absolute; - width: 3px; - height: 3px; - background: black; - border-radius: 50%; - left: 3px; - top: 5px; - border: 2px solid white; - } - - .ghost::after { - content: ''; - display: block; - position: absolute; - width: 3px; - height: 3px; - background: black; - border-radius: 50%; - right: 3px; - top: 5px; - border: 2px solid white; - } - - .scared { - background: blue !important; - } - - .blinky { - background: red; - } - - .pinky { - background: pink; - } - - .inky { - background: cyan; - } - - .clyde { - background: orange; - } - - .pacman { - background: yellow; - border: none; - border-radius: 50%; - clip-path: polygon( - 0 0, - 20px 0, - 20px -5px, - 8px 10px, - 20px 25px, - 20px 20px, - 0 20px - ); - animation: chew 0.2s linear forwards infinite; - } - - @keyframes chew { - 50% { - clip-path: polygon( - 0 0, - 20px 0, - 20px 10px, - 8px 10px, - 20px 10px, - 20px 20px, - 0 20px - ); - } - } +* { + box-sizing: border-box; + } + + body { + background: url('./images/bg3.jpg') no-repeat center center fixed; + background-size: cover; + } + + #wrapper { + position: relative; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + } + + #game { + position: relative; + display: inline-grid; + margin-top: 133px; + background: black; + } + + .game-status { + position: absolute; + top: 0; + left: 0; + display: flex; + align-items: center; + justify-content: center; + width: 100%; + height: 50px; + border: 5px darkblue solid; + background: black; + color: white; + font-family: Arial, Helvetica, sans-serif; + font-size: 1.5rem; + } + + #score { + display: flex; + align-items: center; + justify-content: center; + width: 200px; + height: 50px; + border: 2.5px rgb(82, 82, 102) solid; + background: black; + margin-top: 20px; + color: white; + font-family: Arial, Helvetica, sans-serif; + font-size: 2rem; + border-radius: 2.5rem; + } + + #start-button { + margin-top: 20px; + } + + .hide { + display: none; + } + + .square { + display: block; + } + + .blank { + background: black; + } + + .wall { + border: 1px solid blue; + } + + .dot { + background: white; + border: 8px solid black; + border-radius: 50%; + } + + .pill { + background: white; + border: 5px solid black; + border-radius: 50%; + } + + .ghost { + position: relative; + border-radius: 10px 10px 2px 2px; + border: none; + } + + .ghost::before { + content: ''; + display: block; + position: absolute; + width: 3px; + height: 3px; + background: black; + border-radius: 50%; + left: 3px; + top: 5px; + border: 2px solid white; + } + + .ghost::after { + content: ''; + display: block; + position: absolute; + width: 3px; + height: 3px; + background: black; + border-radius: 50%; + right: 3px; + top: 5px; + border: 2px solid white; + } + + .scared { + background: blue !important; + } + + .blinky { + background: red; + } + + .pinky { + background: pink; + } + + .inky { + background: cyan; + } + + .clyde { + background: orange; + } + + .pacman { + background: yellow; + border: none; + border-radius: 50%; + clip-path: polygon( + 0 0, + 20px 0, + 20px -5px, + 8px 10px, + 20px 25px, + 20px 20px, + 0 20px + ); + animation: chew 0.2s linear forwards infinite; + } + + @keyframes chew { + 50% { + clip-path: polygon( + 0 0, + 20px 0, + 20px 10px, + 8px 10px, + 20px 10px, + 20px 20px, + 0 20px + ); + } + } \ No newline at end of file diff --git a/Games/Pac_Man/src/GameBoard.js b/Games/Pac_Man/src/GameBoard.js index ba41772936..fb16718cf9 100644 --- a/Games/Pac_Man/src/GameBoard.js +++ b/Games/Pac_Man/src/GameBoard.js @@ -1,76 +1,76 @@ -import { GRID_SIZE, CELL_SIZE, OBJECT_TYPE, CLASS_LIST } from './setup'; - -class GameBoard { - constructor(DOMGrid) { - this.dotCount = 0; - this.grid = []; - this.DOMGrid = DOMGrid; - } - - showGameStatus(gameWin) { - const div = document.createElement('div'); - div.classList.add('game-status'); - div.innerHTML = `${gameWin ? 'WIN' : 'GAME OVER!'}`; - this.DOMGrid.appendChild(div); - } - - createGrid(level) { - this.dotCount = 0; - this.grid = []; - this.DOMGrid.innerHTML = ''; - this.DOMGrid.style.cssText = `grid-template-columns: repeat(${GRID_SIZE}, ${CELL_SIZE}px)`; - - level.forEach((square, i) => { - const div = document.createElement('div'); - div.classList.add('square', CLASS_LIST[square]); - div.style.cssText = `width: ${CELL_SIZE}px; height: ${CELL_SIZE}px`; - this.DOMGrid.appendChild(div); - this.grid.push(div); - - if (CLASS_LIST[square] === OBJECT_TYPE.DOT) this.dotCount++; - }) - } - - addObject(pos, classes){ - this.grid[pos].classList.add(...classes); - } - - removeObject(pos, classes){ - this.grid[pos].classList.remove(...classes); - } - - objectExist = (pos, object) => { //objectExist(pos, object)....if we are using bind then arrow function is not required..but if we are not using arrow function here then we will have to add bind function - return this.grid[pos].classList.contains(object); - } - - rotateDiv(pos, deg){ - this.grid[pos].style.transform = `rotate(${deg}deg)`; - } - - moveCharacter(character) { - if(character.shouldMove()) { - const { nextMovePos, direction } = character.getNextMove( - this.objectExist - ); - const { classesToRemove, classesToAdd} = character.makeMove(); - - if(character.rotation && nextMovePos !== character.pos) { - this.rotateDiv(nextMovePos, character.dir.rotation); - this.rotateDiv(character.pos, 0); - } - - this.removeObject(character.pos, classesToRemove); - this.addObject(nextMovePos, classesToAdd); - - character.setNewPos(nextMovePos, direction); - } - } - - static createGameBoard(DOMGrid, level) { - const board = new this(DOMGrid); - board.createGrid(level); - return board; - } -} - +import { GRID_SIZE, CELL_SIZE, OBJECT_TYPE, CLASS_LIST } from './setup'; + +class GameBoard { + constructor(DOMGrid) { + this.dotCount = 0; + this.grid = []; + this.DOMGrid = DOMGrid; + } + + showGameStatus(gameWin) { + const div = document.createElement('div'); + div.classList.add('game-status'); + div.innerHTML = `${gameWin ? 'WIN' : 'GAME OVER!'}`; + this.DOMGrid.appendChild(div); + } + + createGrid(level) { + this.dotCount = 0; + this.grid = []; + this.DOMGrid.innerHTML = ''; + this.DOMGrid.style.cssText = `grid-template-columns: repeat(${GRID_SIZE}, ${CELL_SIZE}px)`; + + level.forEach((square, i) => { + const div = document.createElement('div'); + div.classList.add('square', CLASS_LIST[square]); + div.style.cssText = `width: ${CELL_SIZE}px; height: ${CELL_SIZE}px`; + this.DOMGrid.appendChild(div); + this.grid.push(div); + + if (CLASS_LIST[square] === OBJECT_TYPE.DOT) this.dotCount++; + }) + } + + addObject(pos, classes){ + this.grid[pos].classList.add(...classes); + } + + removeObject(pos, classes){ + this.grid[pos].classList.remove(...classes); + } + + objectExist = (pos, object) => { //objectExist(pos, object)....if we are using bind then arrow function is not required..but if we are not using arrow function here then we will have to add bind function + return this.grid[pos].classList.contains(object); + } + + rotateDiv(pos, deg){ + this.grid[pos].style.transform = `rotate(${deg}deg)`; + } + + moveCharacter(character) { + if(character.shouldMove()) { + const { nextMovePos, direction } = character.getNextMove( + this.objectExist + ); + const { classesToRemove, classesToAdd} = character.makeMove(); + + if(character.rotation && nextMovePos !== character.pos) { + this.rotateDiv(nextMovePos, character.dir.rotation); + this.rotateDiv(character.pos, 0); + } + + this.removeObject(character.pos, classesToRemove); + this.addObject(nextMovePos, classesToAdd); + + character.setNewPos(nextMovePos, direction); + } + } + + static createGameBoard(DOMGrid, level) { + const board = new this(DOMGrid); + board.createGrid(level); + return board; + } +} + export default GameBoard; \ No newline at end of file diff --git a/Games/Pac_Man/src/Ghost.js b/Games/Pac_Man/src/Ghost.js index bab48d1baf..94bd11d127 100644 --- a/Games/Pac_Man/src/Ghost.js +++ b/Games/Pac_Man/src/Ghost.js @@ -1,50 +1,50 @@ -import { DIRECTIONS, OBJECT_TYPE} from './setup'; - -class Ghost{ - constructor(speed = 5, startPos, movement, name){ - this.name = name; - this.movement = movement;; - this.startPos = startPos; - this.pos = startPos; //whenever pacman eat's the ghosts the ghosts will again start from its starting position thats why we have initialized pos = startPos - this.dir = DIRECTIONS.ArrowRight; - this.speed = speed; - this.timer = 0; - this.isScared = false; //isScared is used b'coz if pacman eat's powerpill the ghosts will get scared and move away from pacman as soon as possible - this.rotation = false; //if ghost is moving then is should not rotate that why rotation is initialized as false - } - - shouldMove() { - if (this.timer === this.speed){ - this.timer = 0; - return true; - } - this.timer++; - return false; - } - - getNextMove(objectExist){ - const { nextMovePos, direction } = this.movement( - this.pos, - this.dir, - objectExist - ); - return { nextMovePos, direction } - } - - makeMove() { - const classesToRemove = [OBJECT_TYPE.GHOST, OBJECT_TYPE.SCARED, this.name]; - let classesToAdd = [OBJECT_TYPE.GHOST, this.name]; - - if(this.isScared) classesToAdd = [...classesToAdd, OBJECT_TYPE.SCARED]; - - return { classesToRemove, classesToAdd }; - } - - setNewPos(nextMovePos, direction) { - this.pos = nextMovePos; - this.dir = direction; - } - -} - +import { DIRECTIONS, OBJECT_TYPE} from './setup'; + +class Ghost{ + constructor(speed = 5, startPos, movement, name){ + this.name = name; + this.movement = movement;; + this.startPos = startPos; + this.pos = startPos; //whenever pacman eat's the ghosts the ghosts will again start from its starting position thats why we have initialized pos = startPos + this.dir = DIRECTIONS.ArrowRight; + this.speed = speed; + this.timer = 0; + this.isScared = false; //isScared is used b'coz if pacman eat's powerpill the ghosts will get scared and move away from pacman as soon as possible + this.rotation = false; //if ghost is moving then is should not rotate that why rotation is initialized as false + } + + shouldMove() { + if (this.timer === this.speed){ + this.timer = 0; + return true; + } + this.timer++; + return false; + } + + getNextMove(objectExist){ + const { nextMovePos, direction } = this.movement( + this.pos, + this.dir, + objectExist + ); + return { nextMovePos, direction } + } + + makeMove() { + const classesToRemove = [OBJECT_TYPE.GHOST, OBJECT_TYPE.SCARED, this.name]; + let classesToAdd = [OBJECT_TYPE.GHOST, this.name]; + + if(this.isScared) classesToAdd = [...classesToAdd, OBJECT_TYPE.SCARED]; + + return { classesToRemove, classesToAdd }; + } + + setNewPos(nextMovePos, direction) { + this.pos = nextMovePos; + this.dir = direction; + } + +} + export default Ghost; \ No newline at end of file diff --git a/Games/Pac_Man/src/Pacman.js b/Games/Pac_Man/src/Pacman.js index 232e1cb118..0c76a0c177 100644 --- a/Games/Pac_Man/src/Pacman.js +++ b/Games/Pac_Man/src/Pacman.js @@ -1,63 +1,63 @@ -import { OBJECT_TYPE, DIRECTIONS } from './setup'; - -class Pacman { - constructor(speed, startPos) { - this.pos = startPos; - this.speed = speed; - this.dir = null; - this.timer = 0; - this.powerPill = false; - this.rotation = true; - } - - shouldMove() { - if (!this.dir) return false; - - if(this.timer === this.speed) { - this.timer = 0; - return true; - } - this.timer++; - } - - getNextMove(objectExist){ //this move will calculate next move for pacman - let nextMovePos = this.pos + this.dir.movement; - - if( //this if section will not allow pacman to stop move at the side of wall. - objectExist(nextMovePos, OBJECT_TYPE.WALL) || - objectExist(nextMovePos, OBJECT_TYPE.GHOSTLAIR) - ) { - nextMovePos = this.pos; - } - - return { nextMovePos, direction: this.dir }; - } - - makeMove() { - const classesToRemove = [OBJECT_TYPE.PACMAN]; - const classesToAdd = [OBJECT_TYPE.PACMAN]; - - return { classesToRemove, classesToAdd} - } - - setNewPos(nextMovePos){ - this.pos = nextMovePos; - } - - handleKeyInput(e, objectExist) { - let dir; - - if(e.keyCode >= 37 && e.keyCode <= 40){ - dir = DIRECTIONS[e.key] - }else { - return; - } - - const nextMovePos = this.pos + dir.movement; - if(objectExist(nextMovePos, OBJECT_TYPE.WALL) || - objectExist(nextMovePos, OBJECT_TYPE.GHOSTLAIR)) return; - this.dir = dir; - } -} - +import { OBJECT_TYPE, DIRECTIONS } from './setup'; + +class Pacman { + constructor(speed, startPos) { + this.pos = startPos; + this.speed = speed; + this.dir = null; + this.timer = 0; + this.powerPill = false; + this.rotation = true; + } + + shouldMove() { + if (!this.dir) return false; + + if(this.timer === this.speed) { + this.timer = 0; + return true; + } + this.timer++; + } + + getNextMove(objectExist){ //this move will calculate next move for pacman + let nextMovePos = this.pos + this.dir.movement; + + if( //this if section will not allow pacman to stop move at the side of wall. + objectExist(nextMovePos, OBJECT_TYPE.WALL) || + objectExist(nextMovePos, OBJECT_TYPE.GHOSTLAIR) + ) { + nextMovePos = this.pos; + } + + return { nextMovePos, direction: this.dir }; + } + + makeMove() { + const classesToRemove = [OBJECT_TYPE.PACMAN]; + const classesToAdd = [OBJECT_TYPE.PACMAN]; + + return { classesToRemove, classesToAdd} + } + + setNewPos(nextMovePos){ + this.pos = nextMovePos; + } + + handleKeyInput(e, objectExist) { + let dir; + + if(e.keyCode >= 37 && e.keyCode <= 40){ + dir = DIRECTIONS[e.key] + }else { + return; + } + + const nextMovePos = this.pos + dir.movement; + if(objectExist(nextMovePos, OBJECT_TYPE.WALL) || + objectExist(nextMovePos, OBJECT_TYPE.GHOSTLAIR)) return; + this.dir = dir; + } +} + export default Pacman; \ No newline at end of file diff --git a/Games/Pac_Man/src/ghostMoves.js b/Games/Pac_Man/src/ghostMoves.js index dc7c0c0574..cd2f47cc88 100644 --- a/Games/Pac_Man/src/ghostMoves.js +++ b/Games/Pac_Man/src/ghostMoves.js @@ -1,24 +1,24 @@ -import { DIRECTIONS, OBJECT_TYPE } from './setup'; - -//Primitive random movement -export function randomMovement(position, direction, objectExist) { - let dir = direction; - let nextMovePos = position + dir.movement; - - //create an array from the directions object keys - const keys = Object.keys(DIRECTIONS); - - while( - objectExist(nextMovePos, OBJECT_TYPE.WALL) || - objectExist(nextMovePos, OBJECT_TYPE.GHOST) - ) { - //get a random key from the key array - const key = keys[Math.floor(Math.random() * keys.length)]; //1. math.floor() function used to round a number doen to the nearest integer. it returns the largest integer less than or equal to the given no..ex:-math.floor(4.9) output=4....(2) math.random To generate random numbers within a specific range, you can combine Math.random() with other mathematical operations. For example, to generate a random integer between two numbers, you can use Math.floor() and some scaling - //set the next move - dir = DIRECTIONS[key]; - //set the next move - nextMovePos = position + dir.movement; - } - return { nextMovePos, direction: dir}; - +import { DIRECTIONS, OBJECT_TYPE } from './setup'; + +//Primitive random movement +export function randomMovement(position, direction, objectExist) { + let dir = direction; + let nextMovePos = position + dir.movement; + + //create an array from the directions object keys + const keys = Object.keys(DIRECTIONS); + + while( + objectExist(nextMovePos, OBJECT_TYPE.WALL) || + objectExist(nextMovePos, OBJECT_TYPE.GHOST) + ) { + //get a random key from the key array + const key = keys[Math.floor(Math.random() * keys.length)]; //1. math.floor() function used to round a number doen to the nearest integer. it returns the largest integer less than or equal to the given no..ex:-math.floor(4.9) output=4....(2) math.random To generate random numbers within a specific range, you can combine Math.random() with other mathematical operations. For example, to generate a random integer between two numbers, you can use Math.floor() and some scaling + //set the next move + dir = DIRECTIONS[key]; + //set the next move + nextMovePos = position + dir.movement; + } + return { nextMovePos, direction: dir}; + } \ No newline at end of file diff --git a/Games/Pac_Man/src/index.js b/Games/Pac_Man/src/index.js index f83264d000..0b6cff32e5 100644 --- a/Games/Pac_Man/src/index.js +++ b/Games/Pac_Man/src/index.js @@ -1,146 +1,146 @@ -import { LEVEL, OBJECT_TYPE} from './setup'; -import { randomMovement } from './ghostMoves.js'; - -//classes -import GameBoard from './GameBoard'; -import Pacman from './Pacman'; -import Ghost from './Ghost'; - -//sounds -import soundDot from './sounds/munch.wav'; -import soundPill from './sounds/pill.wav'; -import soundGameStart from './sounds/game_start.wav'; -import soundGameOver from './sounds/death.wav'; -import soundGhost from './sounds/eat_ghost.wav'; - -//DOM Elements -const gameGrid = document.querySelector('#game'); -const scoreTable = document.querySelector('#score'); -const startButton = document.querySelector('#start-button'); - -//Game constants -const POWER_PILL_TIME = 10000; //ms -const GLOBAL_SPEED = 80; //ms -const gameBoard = GameBoard.createGameBoard(gameGrid, LEVEL); - -//Initial setup -let score = 0; -let timer = null; -let gameWin = false; -let powerPillActive = false; -let powerPillTimer = null; - -//Audio -function playAudio(audio) { - const soundEffect = new Audio(audio); - soundEffect.play(); -} - -function GameOver(pacman, grid) { - playAudio(soundGameOver); - document.removeEventListener('keydown', (e) => - pacman.handleKeyInput(e, gameBoard.objectExist) - ) - - gameBoard.showGameStatus(gameWin); - - clearInterval(timer); - - startButton.classList.remove('hide'); -} - -function checkCollision(pacman, ghosts){ - const collidedGhost = ghosts.find( ghost => pacman.pos === ghost.pos); - - if(collidedGhost) { - if (pacman.powerPill) { - playAudio(soundGhost); - gameBoard.removeObject(collidedGhost.pos, [ - OBJECT_TYPE.GHOST, - OBJECT_TYPE.SCARED, - collidedGhost.name - ]); - collidedGhost.pos = collidedGhost.startPos; - score += 100; //100 points for eating the ghost - } else { - gameBoard.removeObject(pacman.pos, [OBJECT_TYPE.PACMAN]); - gameBoard.rotateDiv(pacman.pos, 0); - GameOver(pacman, gameGrid); - } - } -} - -function gameLoop(pacman, ghosts) { - gameBoard.moveCharacter(pacman); - checkCollision(pacman, ghosts); - - ghosts.forEach( (ghost) => gameBoard.moveCharacter(ghost)); - checkCollision(pacman, ghosts); - - //check if pacman eats a dot - if (gameBoard.objectExist(pacman.pos, OBJECT_TYPE.DOT)) { - playAudio(soundDot); - gameBoard.removeObject(pacman.pos, [OBJECT_TYPE.DOT]); - gameBoard.dotCount--; - score += 10; - } - - //check if pacman eats a powerpill - if (gameBoard.objectExist(pacman.pos, OBJECT_TYPE.PILL)) { - playAudio(soundPill); - gameBoard.removeObject(pacman.pos, [OBJECT_TYPE.PILL]); - - pacman.powerPill = true; - score += 50; - - clearTimeout(powerPillTimer); //after 10 secs new timer again starts for the powerpill whenever the pacan eats powerpill - powerPillTimer = setTimeout( - () => (pacman.powerPill = false), - POWER_PILL_TIME - ); - } - - //change ghost scare mode depending on powerpill - if (pacman.powerPill !== powerPillActive) { - powerPillActive = pacman.powerPill; - ghosts.forEach(ghost => (ghost.isScared = pacman.powerPill)); - } - - //check if all dots have been eaten - if (gameBoard.dotCount === 0) { - gameWin = true; - GameOver(pacman, ghosts); - } - - //show the table - scoreTable.innerHTML = score; -} - -function startGame(){ - playAudio(soundGameStart); - gameWin = false; - powerPillActive = false; - score = 0; - - startButton.classList.add('hide'); - - gameBoard.createGrid(LEVEL); - - const pacman = new Pacman(2, 287); - gameBoard.addObject(287, [OBJECT_TYPE.PACMAN]); - document.addEventListener('keydown', (e) => - pacman.handleKeyInput(e, gameBoard.objectExist) //or we can use this line as pacman.handleKeyInput(e, gameBoard.objectExist.bind(gameBoard))...if we are using bind then arrow function is not required..but if we are not using arrow function here then we will have to add bind function - ); - - const ghosts = [ - new Ghost(5, 188, randomMovement, OBJECT_TYPE.BLINKY), - new Ghost(4, 209, randomMovement, OBJECT_TYPE.PINKY), - new Ghost(3, 230, randomMovement, OBJECT_TYPE.INKY), - new Ghost(2, 251, randomMovement, OBJECT_TYPE.CLYDE) - ]; - - timer = setInterval(() => gameLoop(pacman, ghosts), GLOBAL_SPEED); -} - -//initialize game +import { LEVEL, OBJECT_TYPE} from './setup'; +import { randomMovement } from './ghostMoves.js'; + +//classes +import GameBoard from './GameBoard'; +import Pacman from './Pacman'; +import Ghost from './Ghost'; + +//sounds +import soundDot from './sounds/munch.wav'; +import soundPill from './sounds/pill.wav'; +import soundGameStart from './sounds/game_start.wav'; +import soundGameOver from './sounds/death.wav'; +import soundGhost from './sounds/eat_ghost.wav'; + +//DOM Elements +const gameGrid = document.querySelector('#game'); +const scoreTable = document.querySelector('#score'); +const startButton = document.querySelector('#start-button'); + +//Game constants +const POWER_PILL_TIME = 10000; //ms +const GLOBAL_SPEED = 80; //ms +const gameBoard = GameBoard.createGameBoard(gameGrid, LEVEL); + +//Initial setup +let score = 0; +let timer = null; +let gameWin = false; +let powerPillActive = false; +let powerPillTimer = null; + +//Audio +function playAudio(audio) { + const soundEffect = new Audio(audio); + soundEffect.play(); +} + +function GameOver(pacman, grid) { + playAudio(soundGameOver); + document.removeEventListener('keydown', (e) => + pacman.handleKeyInput(e, gameBoard.objectExist) + ) + + gameBoard.showGameStatus(gameWin); + + clearInterval(timer); + + startButton.classList.remove('hide'); +} + +function checkCollision(pacman, ghosts){ + const collidedGhost = ghosts.find( ghost => pacman.pos === ghost.pos); + + if(collidedGhost) { + if (pacman.powerPill) { + playAudio(soundGhost); + gameBoard.removeObject(collidedGhost.pos, [ + OBJECT_TYPE.GHOST, + OBJECT_TYPE.SCARED, + collidedGhost.name + ]); + collidedGhost.pos = collidedGhost.startPos; + score += 100; //100 points for eating the ghost + } else { + gameBoard.removeObject(pacman.pos, [OBJECT_TYPE.PACMAN]); + gameBoard.rotateDiv(pacman.pos, 0); + GameOver(pacman, gameGrid); + } + } +} + +function gameLoop(pacman, ghosts) { + gameBoard.moveCharacter(pacman); + checkCollision(pacman, ghosts); + + ghosts.forEach( (ghost) => gameBoard.moveCharacter(ghost)); + checkCollision(pacman, ghosts); + + //check if pacman eats a dot + if (gameBoard.objectExist(pacman.pos, OBJECT_TYPE.DOT)) { + playAudio(soundDot); + gameBoard.removeObject(pacman.pos, [OBJECT_TYPE.DOT]); + gameBoard.dotCount--; + score += 10; + } + + //check if pacman eats a powerpill + if (gameBoard.objectExist(pacman.pos, OBJECT_TYPE.PILL)) { + playAudio(soundPill); + gameBoard.removeObject(pacman.pos, [OBJECT_TYPE.PILL]); + + pacman.powerPill = true; + score += 50; + + clearTimeout(powerPillTimer); //after 10 secs new timer again starts for the powerpill whenever the pacan eats powerpill + powerPillTimer = setTimeout( + () => (pacman.powerPill = false), + POWER_PILL_TIME + ); + } + + //change ghost scare mode depending on powerpill + if (pacman.powerPill !== powerPillActive) { + powerPillActive = pacman.powerPill; + ghosts.forEach(ghost => (ghost.isScared = pacman.powerPill)); + } + + //check if all dots have been eaten + if (gameBoard.dotCount === 0) { + gameWin = true; + GameOver(pacman, ghosts); + } + + //show the table + scoreTable.innerHTML = score; +} + +function startGame(){ + playAudio(soundGameStart); + gameWin = false; + powerPillActive = false; + score = 0; + + startButton.classList.add('hide'); + + gameBoard.createGrid(LEVEL); + + const pacman = new Pacman(2, 287); + gameBoard.addObject(287, [OBJECT_TYPE.PACMAN]); + document.addEventListener('keydown', (e) => + pacman.handleKeyInput(e, gameBoard.objectExist) //or we can use this line as pacman.handleKeyInput(e, gameBoard.objectExist.bind(gameBoard))...if we are using bind then arrow function is not required..but if we are not using arrow function here then we will have to add bind function + ); + + const ghosts = [ + new Ghost(5, 188, randomMovement, OBJECT_TYPE.BLINKY), + new Ghost(4, 209, randomMovement, OBJECT_TYPE.PINKY), + new Ghost(3, 230, randomMovement, OBJECT_TYPE.INKY), + new Ghost(2, 251, randomMovement, OBJECT_TYPE.CLYDE) + ]; + + timer = setInterval(() => gameLoop(pacman, ghosts), GLOBAL_SPEED); +} + +//initialize game startButton.addEventListener('click', startGame); \ No newline at end of file diff --git a/Games/Pac_Man/src/setup.js b/Games/Pac_Man/src/setup.js index aac02d5b19..580799bdc3 100644 --- a/Games/Pac_Man/src/setup.js +++ b/Games/Pac_Man/src/setup.js @@ -1,80 +1,80 @@ -export const GRID_SIZE = 20; //size of the grid(columns) -export const CELL_SIZE = 20; //size of the cell in pixels -export const DIRECTIONS = { //these are the directions in ghost and pacman will move - ArrowLeft: { - code: 37, //its key code - movement: -1, //in left direction pacman gonna move - rotation: 180 //pacman can move upto 180 degrees as it is starting from the right direction for this arrowleft - }, - ArrowUp: { - code: 38, - movement: -GRID_SIZE, - rotation: 270 - }, - ArrowRight: { - code: 39, - movement: 1, - rotation: 0 - }, - ArrowDown: { - code: 40, - movement: GRID_SIZE, - rotation: 90 - } -}; - -export const OBJECT_TYPE = { //declaring all the objects we are going to have in this project - BLANK: 'blank', - WALL: 'wall', - DOT: 'dot', - BLINKY: 'blinky', //name of the ghost - PINKY: 'pinky', - INKY: 'inky', - CLYDE: 'clyde', - PILL: 'pill', //pill pacman gonna eat - PACMAN: 'pacman', - GHOST: 'ghost', - SCARED: 'scared', - GHOSTLAIR: 'lair' - }; - - // Lookup array for classes - export const CLASS_LIST = [ //class list is only used when we create a grid - OBJECT_TYPE.BLANK, - OBJECT_TYPE.WALL, - OBJECT_TYPE.DOT, - OBJECT_TYPE.BLINKY, - OBJECT_TYPE.PINKY, - OBJECT_TYPE.INKY, - OBJECT_TYPE.CLYDE, - OBJECT_TYPE.PILL, - OBJECT_TYPE.PACMAN, - OBJECT_TYPE.GHOSTLAIR - ]; - - // prettier-ignore - export const LEVEL = [ //1,2... are indicating the object classes index'es - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, - 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, - 1, 7, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 7, 1, - 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, - 1, 2, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 1, - 1, 2, 2, 2, 2, 1, 2, 2, 2, 1, 1, 2, 2, 2, 1, 2, 2, 2, 2, 1, - 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, - 0, 0, 0, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 1, 0, 0, 0, - 0, 0, 0, 1, 2, 1, 2, 1, 9, 9, 9, 9, 1, 2, 1, 2, 1, 0, 0, 0, - 1, 1, 1, 1, 2, 1, 2, 1, 9, 9, 9, 9, 1, 2, 1, 2, 1, 1, 1, 1, - 1, 0, 0, 0, 2, 2, 2, 1, 9, 9, 9, 9, 1, 2, 2, 2, 0, 0, 0, 1, - 1, 1, 1, 1, 2, 1, 2, 1, 9, 9, 9, 9, 1, 2, 1, 2, 1, 1, 1, 1, - 0, 0, 0, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 0, 0, 0, - 0, 0, 0, 1, 2, 1, 2, 0, 0, 0, 0, 0, 0, 2, 1, 2, 1, 0, 0, 0, - 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, - 1, 2, 2, 2, 2, 1, 2, 2, 2, 1, 1, 2, 2, 2, 1, 2, 2, 2, 2, 1, - 1, 2, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 1, - 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, - 1, 7, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 7, 1, - 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, - 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - ]; +export const GRID_SIZE = 20; //size of the grid(columns) +export const CELL_SIZE = 20; //size of the cell in pixels +export const DIRECTIONS = { //these are the directions in ghost and pacman will move + ArrowLeft: { + code: 37, //its key code + movement: -1, //in left direction pacman gonna move + rotation: 180 //pacman can move upto 180 degrees as it is starting from the right direction for this arrowleft + }, + ArrowUp: { + code: 38, + movement: -GRID_SIZE, + rotation: 270 + }, + ArrowRight: { + code: 39, + movement: 1, + rotation: 0 + }, + ArrowDown: { + code: 40, + movement: GRID_SIZE, + rotation: 90 + } +}; + +export const OBJECT_TYPE = { //declaring all the objects we are going to have in this project + BLANK: 'blank', + WALL: 'wall', + DOT: 'dot', + BLINKY: 'blinky', //name of the ghost + PINKY: 'pinky', + INKY: 'inky', + CLYDE: 'clyde', + PILL: 'pill', //pill pacman gonna eat + PACMAN: 'pacman', + GHOST: 'ghost', + SCARED: 'scared', + GHOSTLAIR: 'lair' + }; + + // Lookup array for classes + export const CLASS_LIST = [ //class list is only used when we create a grid + OBJECT_TYPE.BLANK, + OBJECT_TYPE.WALL, + OBJECT_TYPE.DOT, + OBJECT_TYPE.BLINKY, + OBJECT_TYPE.PINKY, + OBJECT_TYPE.INKY, + OBJECT_TYPE.CLYDE, + OBJECT_TYPE.PILL, + OBJECT_TYPE.PACMAN, + OBJECT_TYPE.GHOSTLAIR + ]; + + // prettier-ignore + export const LEVEL = [ //1,2... are indicating the object classes index'es + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, + 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, + 1, 7, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 7, 1, + 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, + 1, 2, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 1, + 1, 2, 2, 2, 2, 1, 2, 2, 2, 1, 1, 2, 2, 2, 1, 2, 2, 2, 2, 1, + 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, + 0, 0, 0, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 1, 0, 0, 0, + 0, 0, 0, 1, 2, 1, 2, 1, 9, 9, 9, 9, 1, 2, 1, 2, 1, 0, 0, 0, + 1, 1, 1, 1, 2, 1, 2, 1, 9, 9, 9, 9, 1, 2, 1, 2, 1, 1, 1, 1, + 1, 0, 0, 0, 2, 2, 2, 1, 9, 9, 9, 9, 1, 2, 2, 2, 0, 0, 0, 1, + 1, 1, 1, 1, 2, 1, 2, 1, 9, 9, 9, 9, 1, 2, 1, 2, 1, 1, 1, 1, + 0, 0, 0, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 0, 0, 0, + 0, 0, 0, 1, 2, 1, 2, 0, 0, 0, 0, 0, 0, 2, 1, 2, 1, 0, 0, 0, + 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, + 1, 2, 2, 2, 2, 1, 2, 2, 2, 1, 1, 2, 2, 2, 1, 2, 2, 2, 2, 1, + 1, 2, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 1, + 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, + 1, 7, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 7, 1, + 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, + 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + ]; diff --git a/Games/Pac_Man/src/style.css b/Games/Pac_Man/src/style.css index 5a053c866e..b1a8574cf9 100644 --- a/Games/Pac_Man/src/style.css +++ b/Games/Pac_Man/src/style.css @@ -1,168 +1,168 @@ -* { - box-sizing: border-box; -} - -body { - background: url('./images/bg3.jpg') no-repeat center center fixed; - background-size: cover; -} - -#wrapper { - position: relative; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; -} - -#game { - position: relative; - display: inline-grid; - margin-top: 133px; - background: black; -} - -.game-status { - position: absolute; - top: 0; - left: 0; - display: flex; - align-items: center; - justify-content: center; - width: 100%; - height: 50px; - border: 5px darkblue solid; - background: black; - color: white; - font-family: Arial, Helvetica, sans-serif; - font-size: 1.5rem; -} - -#score { - display: flex; - align-items: center; - justify-content: center; - width: 200px; - height: 50px; - border: 2.5px rgb(82, 82, 102) solid; - background: black; - margin-top: 20px; - color: white; - font-family: Arial, Helvetica, sans-serif; - font-size: 2rem; - border-radius: 2.5rem; -} - -#start-button { - margin-top: 20px; -} - -.hide { - display: none; -} - -.square { - display: block; -} - -.blank { - background: black; -} - -.wall { - border: 1px solid blue; -} - -.dot { - background: white; - border: 8px solid black; - border-radius: 50%; -} - -.pill { - background: white; - border: 5px solid black; - border-radius: 50%; -} - -.ghost { - position: relative; - border-radius: 10px 10px 2px 2px; - border: none; -} - -.ghost::before { - content: ''; - display: block; - position: absolute; - width: 3px; - height: 3px; - background: black; - border-radius: 50%; - left: 3px; - top: 5px; - border: 2px solid white; -} - -.ghost::after { - content: ''; - display: block; - position: absolute; - width: 3px; - height: 3px; - background: black; - border-radius: 50%; - right: 3px; - top: 5px; - border: 2px solid white; -} - -.scared { - background: blue !important; -} - -.blinky { - background: red; -} - -.pinky { - background: pink; -} - -.inky { - background: cyan; -} - -.clyde { - background: orange; -} - -.pacman { - background: yellow; - border: none; - border-radius: 50%; - clip-path: polygon( - 0 0, - 20px 0, - 20px -5px, - 8px 10px, - 20px 25px, - 20px 20px, - 0 20px - ); - animation: chew 0.2s linear forwards infinite; -} - -@keyframes chew { - 50% { - clip-path: polygon( - 0 0, - 20px 0, - 20px 10px, - 8px 10px, - 20px 10px, - 20px 20px, - 0 20px - ); - } -} +* { + box-sizing: border-box; +} + +body { + background: url('./images/bg3.jpg') no-repeat center center fixed; + background-size: cover; +} + +#wrapper { + position: relative; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} + +#game { + position: relative; + display: inline-grid; + margin-top: 133px; + background: black; +} + +.game-status { + position: absolute; + top: 0; + left: 0; + display: flex; + align-items: center; + justify-content: center; + width: 100%; + height: 50px; + border: 5px darkblue solid; + background: black; + color: white; + font-family: Arial, Helvetica, sans-serif; + font-size: 1.5rem; +} + +#score { + display: flex; + align-items: center; + justify-content: center; + width: 200px; + height: 50px; + border: 2.5px rgb(82, 82, 102) solid; + background: black; + margin-top: 20px; + color: white; + font-family: Arial, Helvetica, sans-serif; + font-size: 2rem; + border-radius: 2.5rem; +} + +#start-button { + margin-top: 20px; +} + +.hide { + display: none; +} + +.square { + display: block; +} + +.blank { + background: black; +} + +.wall { + border: 1px solid blue; +} + +.dot { + background: white; + border: 8px solid black; + border-radius: 50%; +} + +.pill { + background: white; + border: 5px solid black; + border-radius: 50%; +} + +.ghost { + position: relative; + border-radius: 10px 10px 2px 2px; + border: none; +} + +.ghost::before { + content: ''; + display: block; + position: absolute; + width: 3px; + height: 3px; + background: black; + border-radius: 50%; + left: 3px; + top: 5px; + border: 2px solid white; +} + +.ghost::after { + content: ''; + display: block; + position: absolute; + width: 3px; + height: 3px; + background: black; + border-radius: 50%; + right: 3px; + top: 5px; + border: 2px solid white; +} + +.scared { + background: blue !important; +} + +.blinky { + background: red; +} + +.pinky { + background: pink; +} + +.inky { + background: cyan; +} + +.clyde { + background: orange; +} + +.pacman { + background: yellow; + border: none; + border-radius: 50%; + clip-path: polygon( + 0 0, + 20px 0, + 20px -5px, + 8px 10px, + 20px 25px, + 20px 20px, + 0 20px + ); + animation: chew 0.2s linear forwards infinite; +} + +@keyframes chew { + 50% { + clip-path: polygon( + 0 0, + 20px 0, + 20px 10px, + 8px 10px, + 20px 10px, + 20px 20px, + 0 20px + ); + } +} diff --git a/Games/Packabunchas/index.html b/Games/Packabunchas/index.html index 83757bbb47..9a94323480 100644 --- a/Games/Packabunchas/index.html +++ b/Games/Packabunchas/index.html @@ -1,4 +1,4 @@ -PACKABUNCHAS
PACKABUNCHAS
\ No newline at end of file diff --git a/Games/Pangram_Checker_Game/README.md b/Games/Pangram_Checker_Game/README.md new file mode 100644 index 0000000000..f54c2fd2af --- /dev/null +++ b/Games/Pangram_Checker_Game/README.md @@ -0,0 +1,43 @@ +# **Pangram_Checker_Game** + +--- + +
+ +## **Description ๐Ÿ“ƒ** + +- Pangram Word Game is an engaging web-based game where players are challenged to unscramble a given set of letters to form a correct word. This game is designed to test and enhance players' vocabulary and cognitive skills in a fun and interactive way, providing an enjoyable gaming experience for all ages. + +## **Functionalities ๐ŸŽฎ** + +- Presents players with a scrambled word. +- Allows players to input their guessed word. +- Provides instant feedback on the correctness of the guessed word. +- Generates a new scrambled word for each game session. +- Tracks and displays the player's score. +- Features a sleek and intuitive user interface for seamless gaming. + +
+ +## **How to play? ๐Ÿ•น๏ธ** + +1. Launch the Pangram Word Game in your browser. +2. Observe the scrambled word presented on the screen. +3. Enter your guess for the correct word into the provided input field. +4. Click "Submit Guess" to verify your answer. +5. If correct, you'll receive a confirmation message and your score will increase; otherwise, try again or click "Give Up" to reveal the correct word. +6. Click "Next Word" to generate a new scrambled word and continue playing. + +
+ +## **Screenshots ๐Ÿ“ธ** + +![image](https://github.com/manishh12/GameZone/assets/97523900/c24e9b9f-fdf2-4d3f-87c3-b2780bd27063) + + +
+ + + +
+ diff --git a/Games/Pangram_Checker_Game/index.html b/Games/Pangram_Checker_Game/index.html new file mode 100644 index 0000000000..6bea1f4d95 --- /dev/null +++ b/Games/Pangram_Checker_Game/index.html @@ -0,0 +1,18 @@ + + + + + + Pangram Checker Game + + + +
+

Pangram Checker Game

+ + +

+
+ + + \ No newline at end of file diff --git a/Games/Pangram_Checker_Game/script.js b/Games/Pangram_Checker_Game/script.js new file mode 100644 index 0000000000..cf86d5404e --- /dev/null +++ b/Games/Pangram_Checker_Game/script.js @@ -0,0 +1,21 @@ +function checkPangram() { + const inputText = document.getElementById('inputText').value.toLowerCase(); + const alphabet = 'abcdefghijklmnopqrstuvwxyz'; + let isPangram = true; + + for (let char of alphabet) { + if (!inputText.includes(char)) { + isPangram = false; + break; + } + } + + const resultElement = document.getElementById('result'); + if (isPangram) { + resultElement.textContent = 'Congratulations! The sentence is a Pangram.'; + resultElement.style.color = 'green'; + } else { + resultElement.textContent = 'The sentence is not a Pangram. Try again.'; + resultElement.style.color = 'red'; + } +} \ No newline at end of file diff --git a/Games/Pangram_Checker_Game/styles.css b/Games/Pangram_Checker_Game/styles.css new file mode 100644 index 0000000000..eb178bd61f --- /dev/null +++ b/Games/Pangram_Checker_Game/styles.css @@ -0,0 +1,47 @@ +body { + font-family: Arial, sans-serif; + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + margin: 0; + background-color: rgb(127, 12, 162); +} + +.container { + text-align: center; + background: white; + padding: 20px; + border-radius: 10px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); +} + +h1 { + margin-bottom: 20px; +} + +input { + padding: 10px; + width: 80%; + margin-bottom: 20px; + border: 1px solid #ccc; + border-radius: 5px; +} + +button { + padding: 10px 20px; + background-color: #007BFF; + color: white; + border: none; + border-radius: 5px; + cursor: pointer; +} + +button:hover { + background-color: #0056b3; +} + +#result { + margin-top: 20px; + font-size: 18px; +} \ No newline at end of file diff --git a/Games/Penguins_Can't_Fly/main.py b/Games/Penguins_Can't_Fly/main.py index 0c767a5ca7..d19001d779 100644 --- a/Games/Penguins_Can't_Fly/main.py +++ b/Games/Penguins_Can't_Fly/main.py @@ -1,211 +1,211 @@ -import pygame -import random - -pygame.init() -pygame.mixer.init() #for music and audio files in pygame -WIDTH=500 -HEIGHT=650 -fps=60 #sets the framerate-the number of times the timer ticks per second -timer=pygame.time.Clock() -font=pygame.font.Font(r"Terserah.ttf",24) #Font style and font size -huge_font=pygame.font.Font(r"Terserah.ttf",42) #Font style and font size -pygame.display.set_caption("Penguins Can't Fly") - -screen=pygame.display.set_mode([WIDTH,HEIGHT]) -bg=(135,206,235) -game_over=False -clouds=[[200,100,1],[50,330,2],[350,330,3],[200,500,1]] -cloud_images=[] -for i in range(1,4): - img=pygame.image.load(f'cloud{i}.png') #loads new image from a file - cloud_images.append(img) - -player_x=240 -player_y=40 -penguin=pygame.transform.scale(pygame.image.load('penguin.png'),(50,50)) #scales the penguin to a new dimension -direction=-1 -y_speed=0 -gravity=0.2 -x_speed=3 -x_direction=0 -score=0 -total_distance=0 -file=open('high_score.txt','r') -read=file.readlines() -first_high=int(read[0]) -high_score=first_high -shark=pygame.transform.scale(pygame.image.load('jetpack_shark.png'),(300,200)) -enemies=[[-234,random.randint(400,HEIGHT-100),1]] #the last value '1' specifies the direction of movement of the shark -pygame.mixer.music.load('theme.mp3') #Load a music file for playback -bounce=pygame.mixer.Sound('bounce.mp3') #Create a new Sound object from a file or buffer object -end_sound=pygame.mixer.Sound('game_over.mp3') -pygame.mixer.music.play() -pygame.mixer.music.set_volume(0.2) - - -def draw_clouds(cloud_list,images): - platforms=[] - for j in range(len(cloud_list)): - image=images[cloud_list[j][2]-1] - platform=pygame.rect.Rect((cloud_list[j][0]+5,cloud_list[j][1]+40),(120,10)) #displays the rectangle - screen.blit(image,(cloud_list[j][0],cloud_list[j][1])) #displays the image drawn on the screen - pygame.draw.rect(screen,'gray',[cloud_list[j][0]+5,cloud_list[j][1]+40,120,3]) - platforms.append(platform) - return platforms - -def draw_player(x_pos,y_pos,player_img,direc): - if direc== -1: - player_img=pygame.transform.flip(player_img,False,True) #flips image in the y-direction keeping it unchanged in the x-direction - screen.blit(player_img,(x_pos,y_pos)) #draws the player_img onto the screen at the coordinates specified - player_rect=pygame.rect.Rect((x_pos+7,y_pos+40),(36,10)) - #pygame.draw.rect(screen,'green',player_rect,3) - return player_rect - -def draw_enemies(enemy_list,shark_img): - enemy_rects=[] - for j in range(len(enemy_list)): - enemy_rect=pygame.rect.Rect((enemy_list[j][0]+40,enemy_list[j][1]+50),(215,70)) - #pygame.draw.rect(screen,'orange',enemy_rect,3) - enemy_rects.append(enemy_rect) - if(enemy_list[j][2]==1): - screen.blit(shark_img,(enemy_list[j][0],enemy_list[j][1])) - elif(enemy_list[j][2]==-1): - screen.blit(pygame.transform.flip(shark_img,1,0),(enemy_list[j][0],enemy_list[j][1])) - return enemy_rects - -def move_enemies(enemy_list,current_score): - enemy_speed=2+current_score//15 - for j in range(len(enemy_list)): - if(enemy_list[j][2]==1): - if(enemy_list[j][0]-235): - enemy_list[j][0]-=enemy_speed #increase the x_coord if still on the screen - else: - enemy_list[j][2]=1 #reverse the direction if off the screen - if(enemy_list[j][1]<-100): - enemy_list[j][1]=random.randint(HEIGHT,HEIGHT+500) #if the shark goes offscreen in the vertical direction, make a new shark beneath the screen - return enemy_list,current_score - -def update_objects(cloud_list,play_y,enemy_list): - lowest_cloud=0 - update_speed=5 - if play_y>200: - play_y-=update_speed #moves the player up as well as the clouds up so that it seems that the surrounding is falling - for q in range(len(enemy_list)): - enemy_list[q][1]-=update_speed - for j in range(len(cloud_list)): - cloud_list[j][1]-=update_speed - if(cloud_list[j][1]>lowest_cloud): - lowest_cloud=cloud_list[j][1] - - if lowest_cloud<600: #randomly generate one or two clouds - num_clouds=random.randint(1,2) - if num_clouds==1: - x_pos=random.randint(0,WIDTH-70) - y_pos=random.randint(HEIGHT+100,HEIGHT+300) - cloud_type=random.randint(1,3) - cloud_list.append([x_pos,y_pos,cloud_type]) - else: - x_pos=random.randint(0,WIDTH//2-70) #also ensure that the two clouds generated don't overlap with each other - y_pos=random.randint(HEIGHT+100,HEIGHT+300) - cloud_type=random.randint(1,3) - cloud_list.append([x_pos,y_pos,cloud_type]) - - x_pos2=random.randint(WIDTH//2+70,WIDTH-70) - y_pos2=random.randint(HEIGHT+100,HEIGHT+300) - cloud_type2=random.randint(1,3) - cloud_list.append([x_pos2,y_pos2,cloud_type2]) - return play_y,cloud_list,enemy_list - - -run=True -while run: - screen.fill(bg) - timer.tick(fps) - cloud_platforms=draw_clouds(clouds,cloud_images) - player=draw_player(player_x,player_y,penguin,direction) - enemy_boxes=draw_enemies(enemies,shark) - enemies,score=move_enemies(enemies,score) - player_y,clouds,enemies=update_objects(clouds,player_y,enemies) - if game_over: - player_y=-300 - end_text=huge_font.render('Penguins can\'t Fly',True,'black') #draw text on a new Surface - end_text2=font.render('Game Over: Press Enter to Restart',True,'black') - screen.blit(end_text,(70,20)) - screen.blit(end_text2,(60,80)) - y_speed=0 - - for i in range(len(cloud_platforms)): #the collsion detection - if direction== -1 and player.colliderect(cloud_platforms[i]): - y_speed*=-1 #reverses the direction of the penguin - if y_speed>-2: #keeps a minimum speed of -2 - y_speed=-2 - bounce.play() - - - for event in pygame.event.get(): #get events from the queue - if event.type==pygame.QUIT: - run=False - if event.type==pygame.KEYDOWN: #a key is pressed - if event.key==pygame.K_LEFT: #left arrow is pressed - x_direction=-1 - elif event.key==pygame.K_RIGHT: #right arrow is pressed - x_direction=1 - if event.key==pygame.K_RETURN and game_over: - game_over=False - player_x=240 - player_y=40 - direction=-1 - y_speed=0 - x_direction=0 - score=0 - total_distance=0 - enemies=[[-234,random.randint(400,HEIGHT-100),1]] - clouds=[[200,100,1],[50,330,2],[350,330,3],[200,500,1]] - pygame.mixer.music.play() - - if event.type==pygame.KEYUP: #a key is released - if event.key==pygame.K_LEFT: - x_direction=0 - elif event.key==pygame.K_RIGHT: - x_direction=0 - - if(y_speed<5 and not game_over): - y_speed+=gravity #increases the speed in the y-direction - player_y+=y_speed #increases the y-position of the penguin - if(y_speed<0): - direction=1 #if the y-speed is negative penguin is going up - else: - direction=-1 #else down - player_x+=x_speed*x_direction - if player_x>WIDTH: #handles the case when the penguin goes off screen in the x-direction - player_x=-30 - elif player_x<-50: - player_x=WIDTH-20 - - for i in range(len(enemy_boxes)): - if player.colliderect(enemy_boxes[i]) and not game_over: - end_sound.play() - game_over=True - if(score>first_high): - file=open('high_score.txt','w') - write_score=str(score) - file.write(write_score) - file.close() - first_high=score - - total_distance+=y_speed - score=round(total_distance/100) - score_text=font.render(f'Score: {score}',True,'black') - screen.blit(score_text,(10,HEIGHT-70)) - high_score=max(score,high_score) - score_text2=font.render(f'High Score: {high_score}',True,'black') - screen.blit(score_text2,(10,HEIGHT-40)) - - pygame.display.flip() #Update the full display Surface to the screen -pygame.quit() - +import pygame +import random + +pygame.init() +pygame.mixer.init() #for music and audio files in pygame +WIDTH=500 +HEIGHT=650 +fps=60 #sets the framerate-the number of times the timer ticks per second +timer=pygame.time.Clock() +font=pygame.font.Font(r"Terserah.ttf",24) #Font style and font size +huge_font=pygame.font.Font(r"Terserah.ttf",42) #Font style and font size +pygame.display.set_caption("Penguins Can't Fly") + +screen=pygame.display.set_mode([WIDTH,HEIGHT]) +bg=(135,206,235) +game_over=False +clouds=[[200,100,1],[50,330,2],[350,330,3],[200,500,1]] +cloud_images=[] +for i in range(1,4): + img=pygame.image.load(f'cloud{i}.png') #loads new image from a file + cloud_images.append(img) + +player_x=240 +player_y=40 +penguin=pygame.transform.scale(pygame.image.load('penguin.png'),(50,50)) #scales the penguin to a new dimension +direction=-1 +y_speed=0 +gravity=0.2 +x_speed=3 +x_direction=0 +score=0 +total_distance=0 +file=open('high_score.txt','r') +read=file.readlines() +first_high=int(read[0]) +high_score=first_high +shark=pygame.transform.scale(pygame.image.load('jetpack_shark.png'),(300,200)) +enemies=[[-234,random.randint(400,HEIGHT-100),1]] #the last value '1' specifies the direction of movement of the shark +pygame.mixer.music.load('theme.mp3') #Load a music file for playback +bounce=pygame.mixer.Sound('bounce.mp3') #Create a new Sound object from a file or buffer object +end_sound=pygame.mixer.Sound('game_over.mp3') +pygame.mixer.music.play() +pygame.mixer.music.set_volume(0.2) + + +def draw_clouds(cloud_list,images): + platforms=[] + for j in range(len(cloud_list)): + image=images[cloud_list[j][2]-1] + platform=pygame.rect.Rect((cloud_list[j][0]+5,cloud_list[j][1]+40),(120,10)) #displays the rectangle + screen.blit(image,(cloud_list[j][0],cloud_list[j][1])) #displays the image drawn on the screen + pygame.draw.rect(screen,'gray',[cloud_list[j][0]+5,cloud_list[j][1]+40,120,3]) + platforms.append(platform) + return platforms + +def draw_player(x_pos,y_pos,player_img,direc): + if direc== -1: + player_img=pygame.transform.flip(player_img,False,True) #flips image in the y-direction keeping it unchanged in the x-direction + screen.blit(player_img,(x_pos,y_pos)) #draws the player_img onto the screen at the coordinates specified + player_rect=pygame.rect.Rect((x_pos+7,y_pos+40),(36,10)) + #pygame.draw.rect(screen,'green',player_rect,3) + return player_rect + +def draw_enemies(enemy_list,shark_img): + enemy_rects=[] + for j in range(len(enemy_list)): + enemy_rect=pygame.rect.Rect((enemy_list[j][0]+40,enemy_list[j][1]+50),(215,70)) + #pygame.draw.rect(screen,'orange',enemy_rect,3) + enemy_rects.append(enemy_rect) + if(enemy_list[j][2]==1): + screen.blit(shark_img,(enemy_list[j][0],enemy_list[j][1])) + elif(enemy_list[j][2]==-1): + screen.blit(pygame.transform.flip(shark_img,1,0),(enemy_list[j][0],enemy_list[j][1])) + return enemy_rects + +def move_enemies(enemy_list,current_score): + enemy_speed=2+current_score//15 + for j in range(len(enemy_list)): + if(enemy_list[j][2]==1): + if(enemy_list[j][0]-235): + enemy_list[j][0]-=enemy_speed #increase the x_coord if still on the screen + else: + enemy_list[j][2]=1 #reverse the direction if off the screen + if(enemy_list[j][1]<-100): + enemy_list[j][1]=random.randint(HEIGHT,HEIGHT+500) #if the shark goes offscreen in the vertical direction, make a new shark beneath the screen + return enemy_list,current_score + +def update_objects(cloud_list,play_y,enemy_list): + lowest_cloud=0 + update_speed=5 + if play_y>200: + play_y-=update_speed #moves the player up as well as the clouds up so that it seems that the surrounding is falling + for q in range(len(enemy_list)): + enemy_list[q][1]-=update_speed + for j in range(len(cloud_list)): + cloud_list[j][1]-=update_speed + if(cloud_list[j][1]>lowest_cloud): + lowest_cloud=cloud_list[j][1] + + if lowest_cloud<600: #randomly generate one or two clouds + num_clouds=random.randint(1,2) + if num_clouds==1: + x_pos=random.randint(0,WIDTH-70) + y_pos=random.randint(HEIGHT+100,HEIGHT+300) + cloud_type=random.randint(1,3) + cloud_list.append([x_pos,y_pos,cloud_type]) + else: + x_pos=random.randint(0,WIDTH//2-70) #also ensure that the two clouds generated don't overlap with each other + y_pos=random.randint(HEIGHT+100,HEIGHT+300) + cloud_type=random.randint(1,3) + cloud_list.append([x_pos,y_pos,cloud_type]) + + x_pos2=random.randint(WIDTH//2+70,WIDTH-70) + y_pos2=random.randint(HEIGHT+100,HEIGHT+300) + cloud_type2=random.randint(1,3) + cloud_list.append([x_pos2,y_pos2,cloud_type2]) + return play_y,cloud_list,enemy_list + + +run=True +while run: + screen.fill(bg) + timer.tick(fps) + cloud_platforms=draw_clouds(clouds,cloud_images) + player=draw_player(player_x,player_y,penguin,direction) + enemy_boxes=draw_enemies(enemies,shark) + enemies,score=move_enemies(enemies,score) + player_y,clouds,enemies=update_objects(clouds,player_y,enemies) + if game_over: + player_y=-300 + end_text=huge_font.render('Penguins can\'t Fly',True,'black') #draw text on a new Surface + end_text2=font.render('Game Over: Press Enter to Restart',True,'black') + screen.blit(end_text,(70,20)) + screen.blit(end_text2,(60,80)) + y_speed=0 + + for i in range(len(cloud_platforms)): #the collsion detection + if direction== -1 and player.colliderect(cloud_platforms[i]): + y_speed*=-1 #reverses the direction of the penguin + if y_speed>-2: #keeps a minimum speed of -2 + y_speed=-2 + bounce.play() + + + for event in pygame.event.get(): #get events from the queue + if event.type==pygame.QUIT: + run=False + if event.type==pygame.KEYDOWN: #a key is pressed + if event.key==pygame.K_LEFT: #left arrow is pressed + x_direction=-1 + elif event.key==pygame.K_RIGHT: #right arrow is pressed + x_direction=1 + if event.key==pygame.K_RETURN and game_over: + game_over=False + player_x=240 + player_y=40 + direction=-1 + y_speed=0 + x_direction=0 + score=0 + total_distance=0 + enemies=[[-234,random.randint(400,HEIGHT-100),1]] + clouds=[[200,100,1],[50,330,2],[350,330,3],[200,500,1]] + pygame.mixer.music.play() + + if event.type==pygame.KEYUP: #a key is released + if event.key==pygame.K_LEFT: + x_direction=0 + elif event.key==pygame.K_RIGHT: + x_direction=0 + + if(y_speed<5 and not game_over): + y_speed+=gravity #increases the speed in the y-direction + player_y+=y_speed #increases the y-position of the penguin + if(y_speed<0): + direction=1 #if the y-speed is negative penguin is going up + else: + direction=-1 #else down + player_x+=x_speed*x_direction + if player_x>WIDTH: #handles the case when the penguin goes off screen in the x-direction + player_x=-30 + elif player_x<-50: + player_x=WIDTH-20 + + for i in range(len(enemy_boxes)): + if player.colliderect(enemy_boxes[i]) and not game_over: + end_sound.play() + game_over=True + if(score>first_high): + file=open('high_score.txt','w') + write_score=str(score) + file.write(write_score) + file.close() + first_high=score + + total_distance+=y_speed + score=round(total_distance/100) + score_text=font.render(f'Score: {score}',True,'black') + screen.blit(score_text,(10,HEIGHT-70)) + high_score=max(score,high_score) + score_text2=font.render(f'High Score: {high_score}',True,'black') + screen.blit(score_text2,(10,HEIGHT-40)) + + pygame.display.flip() #Update the full display Surface to the screen +pygame.quit() + diff --git a/Games/Piano/Piano.md b/Games/Piano/Piano.md index d74c9e8fd8..7ea4aa88fb 100644 --- a/Games/Piano/Piano.md +++ b/Games/Piano/Piano.md @@ -1,32 +1,32 @@ -# **Playable Piano** - ---- - -
- -## **Description ๐Ÿ“ƒ** - -- Play Piano like a pro, for both beginner and intermediate produce the melody of Piano with this amazing game (Happy Playing! ๐Ÿ˜ƒ). - -## **functionalities ๐ŸŽฎ** - -- Produce melody of your choice with this game -
- -## **How to play? ๐Ÿ•น๏ธ** - -- Can play the piano by clicking on the onscreen keys -- Can play the piano by Pressing Keys on Keyboard - -
- -## **Screenshots ๐Ÿ“ธ** - -
- -![image](../../assets/images/piano.png) - -
- -## **Working video ๐Ÿ“น** -N/A +# **Playable Piano** + +--- + +
+ +## **Description ๐Ÿ“ƒ** + +- Play Piano like a pro, for both beginner and intermediate produce the melody of Piano with this amazing game (Happy Playing! ๐Ÿ˜ƒ). + +## **functionalities ๐ŸŽฎ** + +- Produce melody of your choice with this game +
+ +## **How to play? ๐Ÿ•น๏ธ** + +- Can play the piano by clicking on the onscreen keys +- Can play the piano by Pressing Keys on Keyboard + +
+ +## **Screenshots ๐Ÿ“ธ** + +
+ +![image](../../assets/images/piano.png) + +
+ +## **Working video ๐Ÿ“น** +N/A diff --git a/Games/Piano/index.html b/Games/Piano/index.html index e0460f6275..3c09e17b80 100644 --- a/Games/Piano/index.html +++ b/Games/Piano/index.html @@ -1,56 +1,56 @@ - - - - - - - - Piano - - - - - -
-
-
-
-
-
Q
-
W
-
E
-
R
-
T
-
Y
-
U
-
I
-
O
-
P
-
- -
-
A
-
S
-
D
-
F
-
G
-
H
-
J
-
K
-
L
-
X
-
C
-
V
-
B
-
N
-
-
-
- - - - - + + + + + + + + Piano + + + + + +
+
+
+
+
+
Q
+
W
+
E
+
R
+
T
+
Y
+
U
+
I
+
O
+
P
+
+ +
+
A
+
S
+
D
+
F
+
G
+
H
+
J
+
K
+
L
+
X
+
C
+
V
+
B
+
N
+
+
+
+ + + + + \ No newline at end of file diff --git a/Games/Piano/script.js b/Games/Piano/script.js index 8792f68a48..d36f20a602 100644 --- a/Games/Piano/script.js +++ b/Games/Piano/script.js @@ -1,152 +1,152 @@ -const pianoKeys = document.querySelectorAll('.key'); - -function playsound(newUrl) { - new Audio(newUrl).play(); -} - -function addActiveClass(keyElement) { - keyElement.classList.add('active'); - setTimeout(() => { - keyElement.classList.remove('active'); - }, 200); // Adjust the duration as needed -} - -// Click event logic -pianoKeys.forEach((pianoKey, i) => { - const number = i < 9 ? '0' + (i + 1) : (i + 1); - const newUrl = '24-piano-keys/key' + number + '.mp3'; - - pianoKey.addEventListener('click', () => { - playsound(newUrl); - addActiveClass(pianoKey); - }); -}); - -// Keypress event logic -function handleKeyPress(evt) { - switch(evt.key) { - case "q": - playsound("24-piano-keys/key01.mp3"); - addActiveClass(pianoKeys[0]); - break; - - case "w": - playsound("24-piano-keys/key02.mp3"); - addActiveClass(pianoKeys[1]); - break; - - case "e": - playsound("24-piano-keys/key03.mp3"); - addActiveClass(pianoKeys[2]); - break; - - case "r": - playsound("24-piano-keys/key04.mp3"); - addActiveClass(pianoKeys[3]); - break; - - case "t": - playsound("24-piano-keys/key05.mp3"); - addActiveClass(pianoKeys[4]); - break; - - case "y": - playsound("24-piano-keys/key06.mp3"); - addActiveClass(pianoKeys[5]); - break; - - case "u": - playsound("24-piano-keys/key07.mp3"); - addActiveClass(pianoKeys[6]); - break; - - case "i": - playsound("24-piano-keys/key08.mp3"); - addActiveClass(pianoKeys[7]); - break; - - case "o": - playsound("24-piano-keys/key09.mp3"); - addActiveClass(pianoKeys[8]); - break; - - case "p": - playsound("24-piano-keys/key10.mp3"); - addActiveClass(pianoKeys[9]); - break; - - case "a": - playsound("24-piano-keys/key11.mp3"); - addActiveClass(pianoKeys[10]); - break; - - case "s": - playsound("24-piano-keys/key12.mp3"); - addActiveClass(pianoKeys[11]); - break; - - case "d": - playsound("24-piano-keys/key13.mp3"); - addActiveClass(pianoKeys[12]); - break; - - case "f": - playsound("24-piano-keys/key14.mp3"); - addActiveClass(pianoKeys[13]); - break; - - case "g": - playsound("24-piano-keys/key15.mp3"); - addActiveClass(pianoKeys[14]); - break; - - case "h": - playsound("24-piano-keys/key16.mp3"); - addActiveClass(pianoKeys[15]); - break; - - case "j": - playsound("24-piano-keys/key17.mp3"); - addActiveClass(pianoKeys[16]); - break; - - case "k": - playsound("24-piano-keys/key18.mp3"); - addActiveClass(pianoKeys[17]); - break; - - case "l": - playsound("24-piano-keys/key19.mp3"); - addActiveClass(pianoKeys[18]); - break; - - case "x": - playsound("24-piano-keys/key20.mp3"); - addActiveClass(pianoKeys[19]); - break; - - case "c": - playsound("24-piano-keys/key21.mp3"); - addActiveClass(pianoKeys[20]); - break; - - case "v": - playsound("24-piano-keys/key22.mp3"); - addActiveClass(pianoKeys[21]); - break; - - case "b": - playsound("24-piano-keys/key23.mp3"); - addActiveClass(pianoKeys[22]); - break; - - case "n": - playsound("24-piano-keys/key24.mp3"); - addActiveClass(pianoKeys[23]); - break; - - default: - } -} -document.addEventListener('keypress', handleKeyPress) - +const pianoKeys = document.querySelectorAll('.key'); + +function playsound(newUrl) { + new Audio(newUrl).play(); +} + +function addActiveClass(keyElement) { + keyElement.classList.add('active'); + setTimeout(() => { + keyElement.classList.remove('active'); + }, 200); // Adjust the duration as needed +} + +// Click event logic +pianoKeys.forEach((pianoKey, i) => { + const number = i < 9 ? '0' + (i + 1) : (i + 1); + const newUrl = '24-piano-keys/key' + number + '.mp3'; + + pianoKey.addEventListener('click', () => { + playsound(newUrl); + addActiveClass(pianoKey); + }); +}); + +// Keypress event logic +function handleKeyPress(evt) { + switch(evt.key) { + case "q": + playsound("24-piano-keys/key01.mp3"); + addActiveClass(pianoKeys[0]); + break; + + case "w": + playsound("24-piano-keys/key02.mp3"); + addActiveClass(pianoKeys[1]); + break; + + case "e": + playsound("24-piano-keys/key03.mp3"); + addActiveClass(pianoKeys[2]); + break; + + case "r": + playsound("24-piano-keys/key04.mp3"); + addActiveClass(pianoKeys[3]); + break; + + case "t": + playsound("24-piano-keys/key05.mp3"); + addActiveClass(pianoKeys[4]); + break; + + case "y": + playsound("24-piano-keys/key06.mp3"); + addActiveClass(pianoKeys[5]); + break; + + case "u": + playsound("24-piano-keys/key07.mp3"); + addActiveClass(pianoKeys[6]); + break; + + case "i": + playsound("24-piano-keys/key08.mp3"); + addActiveClass(pianoKeys[7]); + break; + + case "o": + playsound("24-piano-keys/key09.mp3"); + addActiveClass(pianoKeys[8]); + break; + + case "p": + playsound("24-piano-keys/key10.mp3"); + addActiveClass(pianoKeys[9]); + break; + + case "a": + playsound("24-piano-keys/key11.mp3"); + addActiveClass(pianoKeys[10]); + break; + + case "s": + playsound("24-piano-keys/key12.mp3"); + addActiveClass(pianoKeys[11]); + break; + + case "d": + playsound("24-piano-keys/key13.mp3"); + addActiveClass(pianoKeys[12]); + break; + + case "f": + playsound("24-piano-keys/key14.mp3"); + addActiveClass(pianoKeys[13]); + break; + + case "g": + playsound("24-piano-keys/key15.mp3"); + addActiveClass(pianoKeys[14]); + break; + + case "h": + playsound("24-piano-keys/key16.mp3"); + addActiveClass(pianoKeys[15]); + break; + + case "j": + playsound("24-piano-keys/key17.mp3"); + addActiveClass(pianoKeys[16]); + break; + + case "k": + playsound("24-piano-keys/key18.mp3"); + addActiveClass(pianoKeys[17]); + break; + + case "l": + playsound("24-piano-keys/key19.mp3"); + addActiveClass(pianoKeys[18]); + break; + + case "x": + playsound("24-piano-keys/key20.mp3"); + addActiveClass(pianoKeys[19]); + break; + + case "c": + playsound("24-piano-keys/key21.mp3"); + addActiveClass(pianoKeys[20]); + break; + + case "v": + playsound("24-piano-keys/key22.mp3"); + addActiveClass(pianoKeys[21]); + break; + + case "b": + playsound("24-piano-keys/key23.mp3"); + addActiveClass(pianoKeys[22]); + break; + + case "n": + playsound("24-piano-keys/key24.mp3"); + addActiveClass(pianoKeys[23]); + break; + + default: + } +} +document.addEventListener('keypress', handleKeyPress) + diff --git a/Games/Piano/style.css b/Games/Piano/style.css index c741ccdf82..933dff3565 100644 --- a/Games/Piano/style.css +++ b/Games/Piano/style.css @@ -1,113 +1,113 @@ -* { - margin: 0; - padding: 0; - box-sizing: border-box; - font-family: helvetica; -} - -body { - display: flex; - justify-content: center; - align-items: center; - height: 100vh; - -} - -#piano { - height: 380px; - padding: 90px 30px 0 30px; - background-color: #fc8989; - border-radius: 10px; -} - -.keys { - position: relative; -} - -.key.active{ - background-color: gray; -} - -.whites { - display: flex; - -} - -.white { - display:flex; - justify-content: center; - align-items: flex-end; - padding-bottom: 10px; - width: 68px; - height: 280px; - border-radius: 0 0 5px 5px; - border: 2px solid #000; - background-color: white; -} - -.blacks { - position: relative; - display: flex; -} - -.black { - display:flex; - justify-content: center; - align-items: flex-end; - padding-bottom: 10px; - width: 38px; - height: 160px; - border-radius: 0 0 5px 5px; - position: absolute; - background-color: #000; - color: white; -} - -.black:nth-child(1) { - left: 48px; -} - -.black:nth-child(2) { - left: 117px; -} - -.black:nth-child(3) { - left: 253px; -} - -.black:nth-child(4) { - left: 320px; -} - -.black:nth-child(5) { - left: 389px; -} - -.black:nth-child(6) { - left: 525px; -} - -.black:nth-child(7) { - left: 594px; -} - -.black:nth-child(8) { - left: 662px; -} - -.black:nth-child(9) { - left: 797px; - -} - -.black:nth-child(10) { - left: 865px; -} - -#reset{ - margin: 12px; - background-color: aquamarine; - border-radius: 20px; - padding:20px - -} +* { + margin: 0; + padding: 0; + box-sizing: border-box; + font-family: helvetica; +} + +body { + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + +} + +#piano { + height: 380px; + padding: 90px 30px 0 30px; + background-color: #fc8989; + border-radius: 10px; +} + +.keys { + position: relative; +} + +.key.active{ + background-color: gray; +} + +.whites { + display: flex; + +} + +.white { + display:flex; + justify-content: center; + align-items: flex-end; + padding-bottom: 10px; + width: 68px; + height: 280px; + border-radius: 0 0 5px 5px; + border: 2px solid #000; + background-color: white; +} + +.blacks { + position: relative; + display: flex; +} + +.black { + display:flex; + justify-content: center; + align-items: flex-end; + padding-bottom: 10px; + width: 38px; + height: 160px; + border-radius: 0 0 5px 5px; + position: absolute; + background-color: #000; + color: white; +} + +.black:nth-child(1) { + left: 48px; +} + +.black:nth-child(2) { + left: 117px; +} + +.black:nth-child(3) { + left: 253px; +} + +.black:nth-child(4) { + left: 320px; +} + +.black:nth-child(5) { + left: 389px; +} + +.black:nth-child(6) { + left: 525px; +} + +.black:nth-child(7) { + left: 594px; +} + +.black:nth-child(8) { + left: 662px; +} + +.black:nth-child(9) { + left: 797px; + +} + +.black:nth-child(10) { + left: 865px; +} + +#reset{ + margin: 12px; + background-color: aquamarine; + border-radius: 20px; + padding:20px + +} diff --git a/Games/Pig_game/index.html b/Games/Pig_game/index.html index 6e8f636544..ab05d220bd 100644 --- a/Games/Pig_game/index.html +++ b/Games/Pig_game/index.html @@ -1,53 +1,53 @@ - - - - - - - - Pig Game - - - - - -
-
-

Player 1

-

43

-
-

Current

-

0

-
-
-
-

Player 2

-

24

-
-

Current

-

0

-
-
- - - - - -
- - - + + + + + + + + Pig Game + + + + + +
+
+

Player 1

+

43

+
+

Current

+

0

+
+
+
+

Player 2

+

24

+
+

Current

+

0

+
+
+ + + + + +
+ + + diff --git a/Games/Pig_game/script.js b/Games/Pig_game/script.js index a4aa86bbc3..14caa8e4ea 100644 --- a/Games/Pig_game/script.js +++ b/Games/Pig_game/script.js @@ -1,119 +1,119 @@ -'use strict'; - -// Selecting elements -const player0El = document.querySelector('.player--0'); -const player1El = document.querySelector('.player--1'); -const score0El = document.querySelector('#score--0'); -const score1El = document.getElementById('score--1'); -const current0El = document.getElementById('current--0'); -const current1El = document.getElementById('current--1'); - -const diceEl = document.querySelector('.dice'); -const btnNew = document.querySelector('.btn--new'); -const btnRoll = document.querySelector('.btn--roll'); -const btnHold = document.querySelector('.btn--hold'); - -let scores, currentScore, activePlayer, playing; - -// Modal elements -const modal = document.getElementById("instruction-modal"); -const closeButton = document.querySelector(".close-button"); -const startGameButton = document.getElementById("start-game-button"); - -// Starting conditions -const init = function () { - scores = [0, 0]; - currentScore = 0; - activePlayer = 0; - playing = true; - - score0El.textContent = 0; - score1El.textContent = 0; - current0El.textContent = 0; - current1El.textContent = 0; - - diceEl.classList.add('hidden'); - player0El.classList.remove('player--winner'); - player1El.classList.remove('player--winner'); - player0El.classList.add('player--active'); - player1El.classList.remove('player--active'); -}; - -// Show the modal on page load -window.onload = function() { - modal.style.display = "block"; -}; - -// Close modal when the user clicks the close button or the start game button -closeButton.addEventListener("click", () => { - modal.style.display = "none"; - init(); -}); - -startGameButton.addEventListener("click", () => { - modal.style.display = "none"; - init(); -}); - -// Close modal when the user clicks outside of the modal content -window.addEventListener("click", (event) => { - if (event.target === modal) { - modal.style.display = "none"; - init(); - } -}); - -const switchPlayer = function () { - document.getElementById(`current--${activePlayer}`).textContent = 0; - currentScore = 0; - activePlayer = activePlayer === 0 ? 1 : 0; - player0El.classList.toggle('player--active'); - player1El.classList.toggle('player--active'); -}; - -// Rolling dice functionality -btnRoll.addEventListener('click', function () { - if (playing) { - // 1. Generating a random dice roll - const dice = Math.trunc(Math.random() * 6) + 1; - - // 2. Display dice - diceEl.classList.remove('hidden'); - diceEl.src = `images/dice-${dice}.png`; - - // 3. Check for rolled 1 - if (dice !== 1) { - // Add dice to current score - currentScore += dice; - document.getElementById(`current--${activePlayer}`).textContent = currentScore; - } else { - // Switch to next player - switchPlayer(); - } - } -}); - -btnHold.addEventListener('click', function () { - if (playing) { - // 1. Add current score to active player's score - scores[activePlayer] += currentScore; - // scores[1] = scores[1] + currentScore - - document.getElementById(`score--${activePlayer}`).textContent = scores[activePlayer]; - - // 2. Check if player's score is >= 100 - if (scores[activePlayer] >= 100) { - // Finish the game - playing = false; - diceEl.classList.add('hidden'); - - document.querySelector(`.player--${activePlayer}`).classList.add('player--winner'); - document.querySelector(`.player--${activePlayer}`).classList.remove('player--active'); - } else { - // Switch to the next player - switchPlayer(); - } - } -}); - -btnNew.addEventListener('click', init); +'use strict'; + +// Selecting elements +const player0El = document.querySelector('.player--0'); +const player1El = document.querySelector('.player--1'); +const score0El = document.querySelector('#score--0'); +const score1El = document.getElementById('score--1'); +const current0El = document.getElementById('current--0'); +const current1El = document.getElementById('current--1'); + +const diceEl = document.querySelector('.dice'); +const btnNew = document.querySelector('.btn--new'); +const btnRoll = document.querySelector('.btn--roll'); +const btnHold = document.querySelector('.btn--hold'); + +let scores, currentScore, activePlayer, playing; + +// Modal elements +const modal = document.getElementById("instruction-modal"); +const closeButton = document.querySelector(".close-button"); +const startGameButton = document.getElementById("start-game-button"); + +// Starting conditions +const init = function () { + scores = [0, 0]; + currentScore = 0; + activePlayer = 0; + playing = true; + + score0El.textContent = 0; + score1El.textContent = 0; + current0El.textContent = 0; + current1El.textContent = 0; + + diceEl.classList.add('hidden'); + player0El.classList.remove('player--winner'); + player1El.classList.remove('player--winner'); + player0El.classList.add('player--active'); + player1El.classList.remove('player--active'); +}; + +// Show the modal on page load +window.onload = function() { + modal.style.display = "block"; +}; + +// Close modal when the user clicks the close button or the start game button +closeButton.addEventListener("click", () => { + modal.style.display = "none"; + init(); +}); + +startGameButton.addEventListener("click", () => { + modal.style.display = "none"; + init(); +}); + +// Close modal when the user clicks outside of the modal content +window.addEventListener("click", (event) => { + if (event.target === modal) { + modal.style.display = "none"; + init(); + } +}); + +const switchPlayer = function () { + document.getElementById(`current--${activePlayer}`).textContent = 0; + currentScore = 0; + activePlayer = activePlayer === 0 ? 1 : 0; + player0El.classList.toggle('player--active'); + player1El.classList.toggle('player--active'); +}; + +// Rolling dice functionality +btnRoll.addEventListener('click', function () { + if (playing) { + // 1. Generating a random dice roll + const dice = Math.trunc(Math.random() * 6) + 1; + + // 2. Display dice + diceEl.classList.remove('hidden'); + diceEl.src = `images/dice-${dice}.png`; + + // 3. Check for rolled 1 + if (dice !== 1) { + // Add dice to current score + currentScore += dice; + document.getElementById(`current--${activePlayer}`).textContent = currentScore; + } else { + // Switch to next player + switchPlayer(); + } + } +}); + +btnHold.addEventListener('click', function () { + if (playing) { + // 1. Add current score to active player's score + scores[activePlayer] += currentScore; + // scores[1] = scores[1] + currentScore + + document.getElementById(`score--${activePlayer}`).textContent = scores[activePlayer]; + + // 2. Check if player's score is >= 100 + if (scores[activePlayer] >= 100) { + // Finish the game + playing = false; + diceEl.classList.add('hidden'); + + document.querySelector(`.player--${activePlayer}`).classList.add('player--winner'); + document.querySelector(`.player--${activePlayer}`).classList.remove('player--active'); + } else { + // Switch to the next player + switchPlayer(); + } + } +}); + +btnNew.addEventListener('click', init); diff --git a/Games/Pig_game/style.css b/Games/Pig_game/style.css index 72b144460a..f4f8b052b8 100644 --- a/Games/Pig_game/style.css +++ b/Games/Pig_game/style.css @@ -1,235 +1,235 @@ -@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap'); - -* { - margin: 0; - padding: 0; - box-sizing: inherit; -} - -html { - font-size: 62.5%; - box-sizing: border-box; -} - -body { - font-family: 'Nunito', sans-serif; - font-weight: 400; - height: 100vh; - color: #333; - background-image: linear-gradient(to top left, #753682 0%, #bf2e34 100%); - display: flex; - align-items: center; - justify-content: center; -} - -/* LAYOUT */ -main { - position: relative; - width: 100rem; - height: 60rem; - background-color: rgba(255, 255, 255, 0.35); - backdrop-filter: blur(200px); - filter: blur(); - box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.25); - border-radius: 9px; - overflow: hidden; - display: flex; -} - -.player { - flex: 50%; - padding: 9rem; - display: flex; - flex-direction: column; - align-items: center; - transition: all 0.75s; -} - -/* ELEMENTS */ -.name { - position: relative; - font-size: 4rem; - text-transform: uppercase; - letter-spacing: 1px; - word-spacing: 2px; - font-weight: 300; - margin-bottom: 1rem; -} - -.score { - font-size: 8rem; - font-weight: 300; - color: #c7365f; - margin-bottom: auto; -} - -.player--active { - background-color: rgba(255, 255, 255, 0.4); -} - -.player--active .name { - font-weight: 700; -} - -.player--active .score { - font-weight: 400; -} - -.player--active .current { - opacity: 1; -} - -.current { - background-color: #c7365f; - opacity: 0.8; - border-radius: 9px; - color: #fff; - width: 65%; - padding: 2rem; - text-align: center; - transition: all 0.75s; -} - -.current-label { - text-transform: uppercase; - margin-bottom: 1rem; - font-size: 1.7rem; - color: #ddd; -} - -.current-score { - font-size: 3.5rem; -} - -/* ABSOLUTE POSITIONED ELEMENTS */ -.btn { - position: absolute; - left: 50%; - transform: translateX(-50%); - color: #444; - background: none; - border: none; - font-family: inherit; - font-size: 1.8rem; - text-transform: uppercase; - cursor: pointer; - font-weight: 400; - transition: all 0.2s; - - background-color: white; - background-color: rgba(255, 255, 255, 0.6); - backdrop-filter: blur(10px); - - padding: 0.7rem 2.5rem; - border-radius: 50rem; - box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.1); -} - -.btn::first-letter { - font-size: 2.4rem; - display: inline-block; - margin-right: 0.7rem; -} - -.btn--new { - top: 4rem; -} - -.btn--roll { - top: 39.3rem; -} - -.btn--hold { - top: 46.1rem; -} - -.btn:active { - transform: translate(-50%, 3px); - box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15); -} - -.btn:focus { - outline: none; -} - -.dice { - position: absolute; - left: 50%; - top: 16.5rem; - transform: translateX(-50%); - height: 10rem; - box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2); -} - -.player--winner { - background-color: #2f2f2f; -} - -.player--winner .name { - font-weight: 700; - color: #c7365f; -} - -.hidden { - display: none; -} - -/* Modal styles */ -.modal { - display: block; /* Show the modal by default */ - position: fixed; - z-index: 1; - left: 0; - top: 0; - width: 100%; - height: 100%; - overflow: auto; - background-color: rgb(0, 0, 0); - background-color: rgba(0, 0, 0, 0.4); - padding-top: 60px; -} - -.modal-content { - background-color: #fefefe; - margin: 5% auto; - padding: 20px; - border: 1px solid #888; - width: 80%; - max-width: 600px; - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); - animation: fadeIn 0.4s; -} - -.close-button { - color: #aaa; - float: right; - font-size: 28px; - font-weight: bold; -} - -.close-button:hover, -.close-button:focus { - color: black; - text-decoration: none; - cursor: pointer; -} - -button { - background-color: #4CAF50; - color: white; - padding: 10px 20px; - margin: 20px 0; - border: none; - cursor: pointer; - border-radius: 5px; - font-size: 16px; -} - -button:hover { - background-color: #45a049; -} - -@keyframes fadeIn { - from {opacity: 0;} - to {opacity: 1;} -} +@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap'); + +* { + margin: 0; + padding: 0; + box-sizing: inherit; +} + +html { + font-size: 62.5%; + box-sizing: border-box; +} + +body { + font-family: 'Nunito', sans-serif; + font-weight: 400; + height: 100vh; + color: #333; + background-image: linear-gradient(to top left, #753682 0%, #bf2e34 100%); + display: flex; + align-items: center; + justify-content: center; +} + +/* LAYOUT */ +main { + position: relative; + width: 100rem; + height: 60rem; + background-color: rgba(255, 255, 255, 0.35); + backdrop-filter: blur(200px); + filter: blur(); + box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.25); + border-radius: 9px; + overflow: hidden; + display: flex; +} + +.player { + flex: 50%; + padding: 9rem; + display: flex; + flex-direction: column; + align-items: center; + transition: all 0.75s; +} + +/* ELEMENTS */ +.name { + position: relative; + font-size: 4rem; + text-transform: uppercase; + letter-spacing: 1px; + word-spacing: 2px; + font-weight: 300; + margin-bottom: 1rem; +} + +.score { + font-size: 8rem; + font-weight: 300; + color: #c7365f; + margin-bottom: auto; +} + +.player--active { + background-color: rgba(255, 255, 255, 0.4); +} + +.player--active .name { + font-weight: 700; +} + +.player--active .score { + font-weight: 400; +} + +.player--active .current { + opacity: 1; +} + +.current { + background-color: #c7365f; + opacity: 0.8; + border-radius: 9px; + color: #fff; + width: 65%; + padding: 2rem; + text-align: center; + transition: all 0.75s; +} + +.current-label { + text-transform: uppercase; + margin-bottom: 1rem; + font-size: 1.7rem; + color: #ddd; +} + +.current-score { + font-size: 3.5rem; +} + +/* ABSOLUTE POSITIONED ELEMENTS */ +.btn { + position: absolute; + left: 50%; + transform: translateX(-50%); + color: #444; + background: none; + border: none; + font-family: inherit; + font-size: 1.8rem; + text-transform: uppercase; + cursor: pointer; + font-weight: 400; + transition: all 0.2s; + + background-color: white; + background-color: rgba(255, 255, 255, 0.6); + backdrop-filter: blur(10px); + + padding: 0.7rem 2.5rem; + border-radius: 50rem; + box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.1); +} + +.btn::first-letter { + font-size: 2.4rem; + display: inline-block; + margin-right: 0.7rem; +} + +.btn--new { + top: 4rem; +} + +.btn--roll { + top: 39.3rem; +} + +.btn--hold { + top: 46.1rem; +} + +.btn:active { + transform: translate(-50%, 3px); + box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15); +} + +.btn:focus { + outline: none; +} + +.dice { + position: absolute; + left: 50%; + top: 16.5rem; + transform: translateX(-50%); + height: 10rem; + box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2); +} + +.player--winner { + background-color: #2f2f2f; +} + +.player--winner .name { + font-weight: 700; + color: #c7365f; +} + +.hidden { + display: none; +} + +/* Modal styles */ +.modal { + display: block; /* Show the modal by default */ + position: fixed; + z-index: 1; + left: 0; + top: 0; + width: 100%; + height: 100%; + overflow: auto; + background-color: rgb(0, 0, 0); + background-color: rgba(0, 0, 0, 0.4); + padding-top: 60px; +} + +.modal-content { + background-color: #fefefe; + margin: 5% auto; + padding: 20px; + border: 1px solid #888; + width: 80%; + max-width: 600px; + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); + animation: fadeIn 0.4s; +} + +.close-button { + color: #aaa; + float: right; + font-size: 28px; + font-weight: bold; +} + +.close-button:hover, +.close-button:focus { + color: black; + text-decoration: none; + cursor: pointer; +} + +button { + background-color: #4CAF50; + color: white; + padding: 10px 20px; + margin: 20px 0; + border: none; + cursor: pointer; + border-radius: 5px; + font-size: 16px; +} + +button:hover { + background-color: #45a049; +} + +@keyframes fadeIn { + from {opacity: 0;} + to {opacity: 1;} +} diff --git a/Games/Ping_Pong_Multiplayer/index.html b/Games/Ping_Pong_Multiplayer/index.html index 09f37540c5..633e99ec4c 100644 --- a/Games/Ping_Pong_Multiplayer/index.html +++ b/Games/Ping_Pong_Multiplayer/index.html @@ -1,4 +1,4 @@ -Ping Pong Multiplayer
Ping Pong Multiplayer
W: Up / S: Down

PING PONG

โ†‘: Up / โ†“: Down
\ No newline at end of file diff --git a/Games/Pixel_Painter/README.md b/Games/Pixel_Painter/README.md index 89a278d609..f62b776e39 100644 --- a/Games/Pixel_Painter/README.md +++ b/Games/Pixel_Painter/README.md @@ -1,41 +1,41 @@ -# Pixel Painter - -Pixel Painter is an interactive web-based drawing application that allows users to create pixel art. It features a canvas for drawing, a color picker, an undo functionality, and a clear button. The interface includes smooth animations and an intuitive user experience. - -## How to Play - -### Drawing - -1. **Select a Color**: Use the color picker in the toolbar to choose your desired drawing color. -2. **Start Drawing**: Click and hold the left mouse button on the canvas to start drawing. Move the mouse to draw. -3. **Stop Drawing**: Release the left mouse button to stop drawing. - -### Clear the Canvas - -- **Clear Button**: Click the "Clear" button in the toolbar to erase the entire canvas and start fresh. - -### Undo - -- **Undo Button**: Click the "Undo" button to revert to the previous state. The application maintains a stack of up to 10 previous states. - -## Features - -- **Color Picker**: Allows you to select any color for drawing. -- **Clear Canvas**: Clears all drawings on the canvas, providing a blank slate. -- **Undo Functionality**: Reverts the canvas to the previous state, allowing for correction of mistakes. -- **Grid Overlay**: A grid is displayed over the canvas to help with pixel alignment and precision. -- **Smooth Animations**: Buttons and color picker have smooth transition animations for an enhanced user experience. - -## File Structure - -- `index.html`: The main HTML file containing the structure of the application. -- `styles.css`: The CSS file for styling the application, including the toolbar, buttons, and canvas. -- `script.js`: The JavaScript file containing the logic for drawing, color selection, clearing the canvas, and undo functionality. - -## Usage - -- **Drawing**: Select a color and start drawing on the canvas. -- **Clearing**: Click the "Clear" button to reset the canvas. -- **Undoing**: Click the "Undo" button to revert to the previous state. - -Enjoy creating your pixel art with Pixel Painter! +# Pixel Painter + +Pixel Painter is an interactive web-based drawing application that allows users to create pixel art. It features a canvas for drawing, a color picker, an undo functionality, and a clear button. The interface includes smooth animations and an intuitive user experience. + +## How to Play + +### Drawing + +1. **Select a Color**: Use the color picker in the toolbar to choose your desired drawing color. +2. **Start Drawing**: Click and hold the left mouse button on the canvas to start drawing. Move the mouse to draw. +3. **Stop Drawing**: Release the left mouse button to stop drawing. + +### Clear the Canvas + +- **Clear Button**: Click the "Clear" button in the toolbar to erase the entire canvas and start fresh. + +### Undo + +- **Undo Button**: Click the "Undo" button to revert to the previous state. The application maintains a stack of up to 10 previous states. + +## Features + +- **Color Picker**: Allows you to select any color for drawing. +- **Clear Canvas**: Clears all drawings on the canvas, providing a blank slate. +- **Undo Functionality**: Reverts the canvas to the previous state, allowing for correction of mistakes. +- **Grid Overlay**: A grid is displayed over the canvas to help with pixel alignment and precision. +- **Smooth Animations**: Buttons and color picker have smooth transition animations for an enhanced user experience. + +## File Structure + +- `index.html`: The main HTML file containing the structure of the application. +- `styles.css`: The CSS file for styling the application, including the toolbar, buttons, and canvas. +- `script.js`: The JavaScript file containing the logic for drawing, color selection, clearing the canvas, and undo functionality. + +## Usage + +- **Drawing**: Select a color and start drawing on the canvas. +- **Clearing**: Click the "Clear" button to reset the canvas. +- **Undoing**: Click the "Undo" button to revert to the previous state. + +Enjoy creating your pixel art with Pixel Painter! diff --git a/Games/Pixel_Painter/index.html b/Games/Pixel_Painter/index.html index 1081bee960..a7e961e0e1 100644 --- a/Games/Pixel_Painter/index.html +++ b/Games/Pixel_Painter/index.html @@ -1,21 +1,21 @@ - - - - - - Pixel Painter - - - -
- - - -
-
- -
-
- - - + + + + + + Pixel Painter + + + +
+ + + +
+
+ +
+
+ + + diff --git a/Games/Pixel_Painter/script.js b/Games/Pixel_Painter/script.js index 1133dc8680..27dbd4f2e2 100644 --- a/Games/Pixel_Painter/script.js +++ b/Games/Pixel_Painter/script.js @@ -1,53 +1,53 @@ -// script.js -document.addEventListener('DOMContentLoaded', () => { - const canvas = document.getElementById('pixelCanvas'); - const ctx = canvas.getContext('2d'); - const colorPicker = document.getElementById('colorPicker'); - const clearButton = document.getElementById('clearButton'); - const undoButton = document.getElementById('undoButton'); - let drawing = false; - let color = colorPicker.value; - let undoStack = []; - - // Initialize canvas - ctx.fillStyle = '#fff'; - ctx.fillRect(0, 0, canvas.width, canvas.height); - - canvas.addEventListener('mousedown', () => drawing = true); - canvas.addEventListener('mouseup', () => drawing = false); - canvas.addEventListener('mousemove', draw); - colorPicker.addEventListener('input', (e) => { - color = e.target.value; - colorPicker.style.borderColor = color; - }); - clearButton.addEventListener('click', clearCanvas); - undoButton.addEventListener('click', undo); - - canvas.addEventListener('mousedown', saveState); - - function draw(event) { - if (!drawing) return; - const rect = canvas.getBoundingClientRect(); - const x = event.clientX - rect.left; - const y = event.clientY - rect.top; - ctx.fillStyle = color; - ctx.fillRect(Math.floor(x / 10) * 10, Math.floor(y / 10) * 10, 10, 10); - } - - function clearCanvas() { - ctx.fillStyle = '#fff'; - ctx.fillRect(0, 0, canvas.width, canvas.height); - } - - function saveState() { - undoStack.push(ctx.getImageData(0, 0, canvas.width, canvas.height)); - if (undoStack.length > 10) undoStack.shift(); // Limit stack size - } - - function undo() { - if (undoStack.length > 0) { - const imgData = undoStack.pop(); - ctx.putImageData(imgData, 0, 0); - } - } -}); +// script.js +document.addEventListener('DOMContentLoaded', () => { + const canvas = document.getElementById('pixelCanvas'); + const ctx = canvas.getContext('2d'); + const colorPicker = document.getElementById('colorPicker'); + const clearButton = document.getElementById('clearButton'); + const undoButton = document.getElementById('undoButton'); + let drawing = false; + let color = colorPicker.value; + let undoStack = []; + + // Initialize canvas + ctx.fillStyle = '#fff'; + ctx.fillRect(0, 0, canvas.width, canvas.height); + + canvas.addEventListener('mousedown', () => drawing = true); + canvas.addEventListener('mouseup', () => drawing = false); + canvas.addEventListener('mousemove', draw); + colorPicker.addEventListener('input', (e) => { + color = e.target.value; + colorPicker.style.borderColor = color; + }); + clearButton.addEventListener('click', clearCanvas); + undoButton.addEventListener('click', undo); + + canvas.addEventListener('mousedown', saveState); + + function draw(event) { + if (!drawing) return; + const rect = canvas.getBoundingClientRect(); + const x = event.clientX - rect.left; + const y = event.clientY - rect.top; + ctx.fillStyle = color; + ctx.fillRect(Math.floor(x / 10) * 10, Math.floor(y / 10) * 10, 10, 10); + } + + function clearCanvas() { + ctx.fillStyle = '#fff'; + ctx.fillRect(0, 0, canvas.width, canvas.height); + } + + function saveState() { + undoStack.push(ctx.getImageData(0, 0, canvas.width, canvas.height)); + if (undoStack.length > 10) undoStack.shift(); // Limit stack size + } + + function undo() { + if (undoStack.length > 0) { + const imgData = undoStack.pop(); + ctx.putImageData(imgData, 0, 0); + } + } +}); diff --git a/Games/Pixel_Painter/styles.css b/Games/Pixel_Painter/styles.css index d9469ca712..bdeddcc366 100644 --- a/Games/Pixel_Painter/styles.css +++ b/Games/Pixel_Painter/styles.css @@ -1,52 +1,52 @@ -/* styles.css */ -body { - display: flex; - flex-direction: column; - align-items: center; - background-color: #f0f0f0; - font-family: Arial, sans-serif; -} - -#toolbar { - margin: 20px; -} - -button { - transition: background-color 0.3s, transform 0.3s; -} - -button:hover { - background-color: #ddd; - transform: scale(1.1); -} - -#colorPicker { - transition: box-shadow 0.3s; -} - -#colorPicker:focus { - box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); -} - -#canvasContainer { - position: relative; -} - -#pixelCanvas { - border: 1px solid #000; - background-color: #fff; - cursor: crosshair; - position: relative; -} - -#grid { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - background: linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px), - linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px); - background-size: 10px 10px; -} +/* styles.css */ +body { + display: flex; + flex-direction: column; + align-items: center; + background-color: #f0f0f0; + font-family: Arial, sans-serif; +} + +#toolbar { + margin: 20px; +} + +button { + transition: background-color 0.3s, transform 0.3s; +} + +button:hover { + background-color: #ddd; + transform: scale(1.1); +} + +#colorPicker { + transition: box-shadow 0.3s; +} + +#colorPicker:focus { + box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); +} + +#canvasContainer { + position: relative; +} + +#pixelCanvas { + border: 1px solid #000; + background-color: #fff; + cursor: crosshair; + position: relative; +} + +#grid { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + pointer-events: none; + background: linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px), + linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px); + background-size: 10px 10px; +} diff --git a/Games/Pixels_From_Space/app.js b/Games/Pixels_From_Space/app.js index d0640c769e..751467f68d 100644 --- a/Games/Pixels_From_Space/app.js +++ b/Games/Pixels_From_Space/app.js @@ -1,1224 +1,1224 @@ -/** - Pixels from outerspace - JS13k games - By Fabio Gianini -*/ -var base=5; -function Game() -{ - this.canvas=document.getElementById("screen"); - this.ctx=this.canvas.getContext("2d"); - - this.stageIndex=0; - - this.spawnBallTimeout=50; - this.spawnBallTimeoutStep=0; - - this.stageCompleteTimeout=75; - this.stageCompleteTimeoutStep=0; - - this.finishTimeout=100; - this.finishTimeoutStep=0; - - this.playerReady=false; - this.stageComplete=false; - this.gameComplete=false; - this.gameOver=false; - this.finish=false; - this.enemyiesReady=false; - this.locked=true; - - this.dialogs=new Array(); - this.currentDialog=""; - this.dialogIndex=0; - - this.player; - this.enemys=new Array(); - this.particles=new Array(); - this.renderer; - this.camera; - this.ball; - - this.glow= - { - max:20, - min:5, - value:5, - fac:1, - } - - this.state; - - this.score=0; - - this.perks=new Array(); - - this.screen= - { - x:this.canvas.width, - y:this.canvas.height - }; - - this.stages=new Array(); - - this.stars=new Array(); - this.lines=new Image(); - this.lines.src="./assets/crt.png"; - this.controller; - this.loadStages(); -} -Game.prototype.loadStages=function() -{ - //this.stages.push({scouts:0, drones:0, destructors:0, mothers:1, dialogs:[]}); - this.stages.push({scouts:3, drones:0, destructors:0, mothers:0, dialogs:["A/W/S/D move Enter to skip message", "Enemies incomming!", "Warning! Don't let the ball behind you","One more thing capt'n teerex rainbow", "Good luck"]}); - this.stages.push({scouts:0, drones:3, destructors:0, mothers:0, dialogs:["Drones incomming...", "GO!"]}); - this.stages.push({scouts:0, drones:0, destructors:2, mothers:0, dialogs:["Destructorships ahead", "Fireeeeeee!"]}); - this.stages.push({scouts:3, drones:4, destructors:1, mothers:0, dialogs:["Great. Now you are ready for the invasion"]}); - this.stages.push({scouts:3, drones:2, destructors:2, mothers:0, dialogs:["Enemies incomming"]}); - this.stages.push({scouts:3, drones:2, destructors:0, mothers:0, dialogs:[]}); - this.stages.push({scouts:0, drones:0, destructors:0, mothers:1, dialogs:["Mothership ahead"]}); - this.stages.push({scouts:2, drones:2, destructors:1, mothers:0, dialogs:[]}); - this.stages.push({scouts:2, drones:2, destructors:2, mothers:0, dialogs:[]}); - this.stages.push({scouts:2, drones:8, destructors:0, mothers:0, dialogs:[]}); - this.stages.push({scouts:2, drones:4, destructors:0, mothers:1, dialogs:[]}); - this.stages.push({scouts:4, drones:2, destructors:1, mothers:1, dialogs:[]}); - this.stages.push({scouts:2, drones:6, destructors:1, mothers:1, dialogs:["Beware!"]}); - //this.stages.push({scouts:0, drones:0, destructors:0, dialogs:[]});//to test the final screen ;-) - - this.load(); - loadListeners(); - this.controller=new Controller(); -} -Game.prototype.load=function() -{ - - var stage=this.stages[this.stageIndex]; - - this.enemys=new Array(); - this.stars=new Array(); - this.particles=new Array(); - this.dialogs=new Array(); - this.perks=new Array(); - - this.dialogIndex=0; - this.locked=true; - this.playerReady=false; - this.gameOver=false; - this.enemyiesReady=false; - this.finish=false; - this.gameComplete=false; - this.stageComplete=false; - this.finishTimeoutStep=0; - this.stageCompleteTimeoutStep=0; - this.spawnBallTimeoutStep=0; - - for(var i=0;i=_self.finishTimeout) - nextLevel(); - - } - //stage complete if there were no more enemies alive - if(!_self.areEnemysAlive()) - { - _self.stageCompleteTimeoutStep++; - if(_self.stageCompleteTimeoutStep>_self.stageCompleteTimeout) - _self.state="complete"; - } - - if(!(_self.player.life>0)) - _self.state="gameover" - - if(_self.state=="dialog") - { - if(_self.controller.keys["13"]) - { - if(_self.dialogIndex<_self.dialogs.length-1) - { - _self.dialogIndex++; - _self.currentDialog=_self.dialogs[_self.dialogIndex]; - _self.controller.keys["13"]=false; - } - else - _self.state="intro"; - } - } - - if(_self.state=="running") - { - for(var e in _self.enemys) - { - var enemy=_self.enemys[e]; - enemy.update(); - //kills enemy if it collides with the ball - if(_self.collides(enemy.x, enemy.y, enemy.w, enemy.h, _self.ball.x-_self.ball.bounds.x/2, _self.ball.y-_self.ball.bounds.y/2, _self.ball.bounds.x, _self.ball.bounds.y)) - { - enemy.life=-1; - } - //removes enemy if live < 0= is dead - if(enemy.life<0) - { - _self.enemys.splice(e,1); - _self.createExplosion(enemy.x, enemy.y); - _self.createParticles(enemy.x, enemy.y, getColor(255,200,100,1), 10, 10); - } - } - - _self.ball.onUpdate(); - _self.player.update(); - } - - if(_self.state=="intro") - { - //player intro animation - if(_self.player.y>_self.player.startY) - { - _self.player.y-=5; - } - else - { - _self.state="running"; - } - } - if(_self.state=="intro"||_self.state=="running") - { - //enemies intro animation - for(var e in _self.enemys) - { - var enemy=_self.enemys[e]; - if(enemy.y_self.glow.max) - { - _self.glow.fac*=-1; - } - _self.glow.value+=_self.glow.fac; - - - _self.draw(); -} - -Game.prototype.draw=function() -{ - var _self=this; - _self.ctx.clearRect(0,0,_self.screen.x, _self.screen.y); - - game.ctx.font ="bold 18pt Courier"; - - - for(var s in _self.stars) - { - var star=_self.stars[s]; - game.ctx.translate(star.x, star.y); - game.ctx.shadowBlur = 10; - game.ctx.fillStyle="rgba(255,255,255,1)"; - game.ctx.shadowColor = "rgba(255,255,255,1)"; - - game.ctx.fillRect(0,0,4,2); - game.ctx.fillRect(1,-1,2,4); - - game.ctx.translate(-(star.x), -(star.y)); - game.ctx.restore(); - } - - - for(var p in _self.particles) - { - var part=_self.particles[p]; - game.ctx.save(); - game.ctx.translate(part.x+part.w/2, part.y+part.h/2); - game.ctx.shadowBlur = 10; - if(!part.color) - { - game.ctx.fillStyle="rgba(200,200,200,1)"; - game.ctx.shadowColor = "#00f"; - } - else - { - game.ctx.fillStyle="rgba("+part.color.r+","+part.color.g+","+part.color.b+","+part.color.a+")"; - game.ctx.shadowColor = "rgba("+part.color.r+","+part.color.g+","+part.color.b+","+part.color.a+")"; - } - game.ctx.fillRect(-part.w/2, -part.h/2, part.w, part.h); - game.ctx.translate(-(part.x+part.w/2), -(part.y+part.h/2)); - game.ctx.restore(); - } - //prints gameover string to screen - if(_self.state=="gameover") - { - game.ctx.fillStyle = "#ff0000"; - game.ctx.fillText("Game Over", _self.screen.x/2-80, _self.screen.y/2); - game.ctx.fillText("Your score "+_self.score, _self.screen.x/2-80, _self.screen.y/2+40); - } - //render enemies while running - if(_self.state=="running"||_self.state=="intro") - { - for(var e in _self.enemys) - { - var enemy=_self.enemys[e]; - enemy.draw(); - } - - _self.ball.onDraw(); - _self.player.draw(); - - - game.ctx.fillStyle="rgba(200,200,200,1)"; - game.ctx.shadowColor = "#ccc"; - game.ctx.fillRect(10,10, game.ball.bounds.x, game.ball.bounds.y); - - game.ctx.font ="bold 14pt Courier"; - game.ctx.fillStyle = "#333"; - game.ctx.fillText("x "+game.score, 15+game.ball.bounds.x, 10+game.ball.bounds.y); - - game.ctx.font ="bold 14pt Courier"; - game.ctx.fillStyle = "#333"; - game.ctx.fillText((game.stageIndex+1)+"/"+game.stages.length+" Stages", game.screen.x-130, 30); - } - //print string to screen when all stages were cleared - if(_self.state=="gamecomplete") - { - - //_self.createParticles(Math.random()*_self.screen.x, Math.random()*_self.screen.y, {r:Math.round(Math.random()*255), g:Math.round(Math.random()*255), b:Math.round(Math.random()*255), a:1}, 10, 10); - - game.ctx.fillStyle = "#ffff00"; - game.ctx.fillText("Game complete", _self.screen.x/2-120, _self.screen.y/2); - - game.ctx.shadowBlur=_self.glow.value; - game.ctx.font ="bold 14pt Courier"; - game.ctx.fillText("Pixels from outerspace", _self.screen.x/2-120, _self.screen.y/2+20); - game.ctx.fillText("Your score "+_self.score, _self.screen.x/2-120, _self.screen.y/2+40); - } - //print stage complete string - if(_self.state=="complete") - { - - _self.createParticles(Math.random()*_self.screen.x, Math.random()*_self.screen.y, {r:Math.round(Math.random()*255), g:Math.round(Math.random()*255), b:Math.round(Math.random()*255), a:1}, 10, 10); - game.ctx.fillStyle = "#ffff00"; - game.ctx.shadowBlur=_self.glow.value; - game.ctx.fillText("Stage complete", _self.screen.x/2-120, _self.screen.y/2); - } - - - if(_self.state=="dialog") - { - game.ctx.fillStyle="rgba(200,200,200,0.7)"; - game.ctx.shadowColor = "#ccc"; - game.ctx.shadowBlur=_self.glow.value; - game.ctx.fillRect(10, _self.screen.y-100, _self.screen.x-20, _self.screen.y-(_self.screen.y-90)); - - game.ctx.font ="bold 10pt Courier"; - game.ctx.fillStyle = "#333"; - game.ctx.shadowBlur=0; - var parts=StringSplitter(_self.currentDialog, 21); - for(var p in parts) - { - game.ctx.fillText(">> "+parts[p], 15, _self.screen.y-85+(p*12)); - } - } - - - game.ctx.shadowColor = "#000"; - game.ctx.shadowBlur = 5; - game.ctx.drawImage(game.lines, 0,0, game.lines.width, game.lines.height, 0,0,game.screen.x, game.screen.y ); -} -Game.prototype.areEnemysAlive=function() -{ - return(this.enemys.length>0); -} -Game.prototype.isInScreen=function(x,y) -{ - if(x>0&&x0&&yx1&&xy1&&y=this.reloadSpeed&&!this.canShoot) - { - this.canShoot=true; - this.reloadStep=0; - } - else - { - if(!this.canShoot) - this.reloadStep++; - } - - for(var b in this.bullets) - { - var bullet = this.bullets[b]; - if(bullet.active) - { - var rmv=true; - bullet.x+=Math.cos(bullet.r)*bullet.v; - bullet.y+=Math.sin(bullet.r)*bullet.v; - - for(var e in game.enemys) - { - var enemy = game.enemys[e]; - if(game.collides(bullet.x, bullet.y, this.w, this.h, enemy.x, enemy.y, enemy.w, enemy.h)) - { - rmv=false; - game.createParticles(bullet.x, bullet.y, getColor(255,50,0,1), 20, 10); - game.createParticles(bullet.x, bullet.y, getColor(255,250,0,1), 5, 5); - enemy.life-=this.damage; - bullet.active=false; - } - if(game.collides(bullet.x, bullet.y, this.w, this.h, game.player.x, game.player.y, game.player.w, game.player.h)) - { - game.createParticles(bullet.x, bullet.y, getColor(255,50,0,1), 20, 10); - game.createParticles(bullet.x, bullet.y, getColor(255,250,0,1), 5, 5); - rmv=false; - game.player.life-=this.damage; - bullet.active=false; - } - } - - if(!game.isInScreen(bullet.x, bullet.y)) - { - bullet.active=false; - } - } - else - { - this.bullets.splice(b,1); - } - } -} -GunBase.prototype.shoot=function(x,y) -{ - if(this.canShoot) - { - this.bullets.push({x:x, y:y, v:10, r:this.r, vx:0, vy:-5, active:true}); - //game.createParticles(x, y, {r:255, g:255, b:0, a:0.5}, 20, 5); - this.canShoot=false; - } - -} -//************************************************************************************* -function LaserGun(x,y,r, gunTyp) -{ - this.x=x; - this.y=y; - this.w=2; - this.h=8; - this.r=r; - this.reloadSpeed=Math.random()*15+15; - this.reloadStep=0; - this.bullets=new Array(); - this.canShoot=true; - this.spread=2; - this.damage=3; - this.color=getColor(255,100,100,1); - this.PLAYER_TYP=1; - this.ENEMY_TYP=2; - this.typ=gunTyp||this.ENEMY_TYP; - this.name="LaserGun"; - -} -LaserGun.prototype=new GunBase(); -///////////////////////////////////////////////////// -function BomberGun(x,y,r, gunTyp) -{ - this.x=x; - this.y=y; - this.w=8; - this.h=8; - this.r=r; - this.reloadSpeed=Math.random()*15+20; - this.reloadStep=0; - this.bullets=new Array(); - this.canShoot=true; - this.spread=2; - this.damage=25; - this.color=getColor(255,100,100,1); - this.PLAYER_TYP=1; - this.ENEMY_TYP=2; - this.typ=gunTyp||this.ENEMY_TYP; - this.name="BomberGun"; - -} -BomberGun.prototype=new GunBase(); -///////////////////////////////////////////////////// -function GetlingGun(x,y,r, gunTyp) -{ - this.x=x; - this.y=y; - this.w=4; - this.h=6; - this.r=r; - this.reloadSpeed=Math.random()*5+15; - this.reloadStep=0; - this.bullets=new Array(); - this.canShoot=true; - this.spread=2; - this.damage=1; - this.color=getColor(255,100,100,1); - this.PLAYER_TYP=1; - this.ENEMY_TYP=2; - this.typ=gunTyp||this.ENEMY_TYP; - this.name="GetlingGun"; - -} -GetlingGun.prototype=new GunBase(); -///////////////////////////////////////////////////// -function PlayerGun(x,y,r) -{ - this.x=x; - this.y=y; - this.w=4; - this.h=6; - this.r=r; - this.reloadSpeed=8; - this.reloadStep=0; - this.bullets=new Array(); - this.canShoot=true; - this.spread=2; - this.damage=8; - this.color=getColor(100,100,255,1); - this.PLAYER_TYP=1; - this.ENEMY_TYP=2; - this.typ=this.PLAYER_TYP; - this.name="PlayerGun"; - -} -PlayerGun.prototype=new GunBase(); -///////////////////////////////////////////////////// -function TrippleShoot() -{ - this.guns= - [ - - new PlayerGun(base*0, base*0, ((Math.PI*2)/4)*2.8), - new PlayerGun(base*2, base*0,((Math.PI*2)/4)*3), - new PlayerGun(base*4, base*0,((Math.PI*2)/4)*3.2), - ] -} -function DoubleShoot() -{ - this.guns= - [ - - new PlayerGun(base*0, base*0, ((Math.PI*2)/4)*3), - new PlayerGun(base*4, base*0,((Math.PI*2)/4)*3), - ] -} - -///////////////////////////////////////////////////// -function Ball(x,y) -{ - this.spawn= - { - x:x, - y:y - } - this.v= - { - x:0, - y:0, - max:1, - dir:0, - } - this.bounds= - { - x:10, - y:10, - } - this.direction=1; - this.x=x; - this.y=y; - this.glow= - { - max:20, - min:5, - value:5, - fac:1, - } -} -Ball.prototype.onUpdate=function() -{ - this.x+=this.v.x; - this.y+=this.v.y; - - - - if(this.y+this.v.y<=0) - { - this.v.y*=-1; - this.v.dir=1; - game.score++; - - } - - if(this.x-this.bounds.x/2<=0||this.x+this.bounds.x/2>=game.screen.x) - { - this.v.x*=-1; - } - - if(this.glow.valuethis.glow.max) - { - this.glow.fac*=-1; - } - this.glow.value+=this.glow.fac; - - if(!game.isInScreen(this.x, this.y+this.v.y, this.bounds.x, this.bounds.y)) - { - game.score=0; - this.create(); - } - if(game.collides(this.x-this.bounds.x/2, this.y+this.v.y-this.bounds.y/2, this.bounds.x, this.bounds.y, game.player.x, game.player.y, game.player.w, game.player.h)) - { - this.v.y*=-1; - this.v.dir=-1; - } - -} -Ball.prototype.onDraw=function() -{ - game.ctx.translate((this.x-this.bounds.x/2), (this.y-this.bounds.y/2)); - - game.ctx.fillStyle="rgba(200,200,200,1)"; - game.ctx.shadowColor = "rgba(200,200,200,1)"; - game.ctx.shadowBlur = this.glow.value; - - game.ctx.fillRect(0,0, this.bounds.x, this.bounds.y); - - game.ctx.translate(-(this.x-this.bounds.x/2), -(this.y-this.bounds.y/2)) - -} -Ball.prototype.create=function() -{ - this.x=this.spawn.x; - this.y=this.spawn.y; - -} - - -//************************************************************************************* -function StringSplitter(string, length) -{ - var parts=new Array(); - var str=string; - - while(str) - { - if (str.length < length) { - parts.push(str); - break; - } - else - { - parts.push(str.substr(0, length)); - str = str.substr(length); - } - } - return parts; -} -//************************************************************************************* -var game; -function start() -{ - game=new Game(); -} -function finish() -{ - clearInterval(game.renderer); - start(); -} -function nextLevel() -{ - if(game.stageIndex=_self.finishTimeout) + nextLevel(); + + } + //stage complete if there were no more enemies alive + if(!_self.areEnemysAlive()) + { + _self.stageCompleteTimeoutStep++; + if(_self.stageCompleteTimeoutStep>_self.stageCompleteTimeout) + _self.state="complete"; + } + + if(!(_self.player.life>0)) + _self.state="gameover" + + if(_self.state=="dialog") + { + if(_self.controller.keys["13"]) + { + if(_self.dialogIndex<_self.dialogs.length-1) + { + _self.dialogIndex++; + _self.currentDialog=_self.dialogs[_self.dialogIndex]; + _self.controller.keys["13"]=false; + } + else + _self.state="intro"; + } + } + + if(_self.state=="running") + { + for(var e in _self.enemys) + { + var enemy=_self.enemys[e]; + enemy.update(); + //kills enemy if it collides with the ball + if(_self.collides(enemy.x, enemy.y, enemy.w, enemy.h, _self.ball.x-_self.ball.bounds.x/2, _self.ball.y-_self.ball.bounds.y/2, _self.ball.bounds.x, _self.ball.bounds.y)) + { + enemy.life=-1; + } + //removes enemy if live < 0= is dead + if(enemy.life<0) + { + _self.enemys.splice(e,1); + _self.createExplosion(enemy.x, enemy.y); + _self.createParticles(enemy.x, enemy.y, getColor(255,200,100,1), 10, 10); + } + } + + _self.ball.onUpdate(); + _self.player.update(); + } + + if(_self.state=="intro") + { + //player intro animation + if(_self.player.y>_self.player.startY) + { + _self.player.y-=5; + } + else + { + _self.state="running"; + } + } + if(_self.state=="intro"||_self.state=="running") + { + //enemies intro animation + for(var e in _self.enemys) + { + var enemy=_self.enemys[e]; + if(enemy.y_self.glow.max) + { + _self.glow.fac*=-1; + } + _self.glow.value+=_self.glow.fac; + + + _self.draw(); +} + +Game.prototype.draw=function() +{ + var _self=this; + _self.ctx.clearRect(0,0,_self.screen.x, _self.screen.y); + + game.ctx.font ="bold 18pt Courier"; + + + for(var s in _self.stars) + { + var star=_self.stars[s]; + game.ctx.translate(star.x, star.y); + game.ctx.shadowBlur = 10; + game.ctx.fillStyle="rgba(255,255,255,1)"; + game.ctx.shadowColor = "rgba(255,255,255,1)"; + + game.ctx.fillRect(0,0,4,2); + game.ctx.fillRect(1,-1,2,4); + + game.ctx.translate(-(star.x), -(star.y)); + game.ctx.restore(); + } + + + for(var p in _self.particles) + { + var part=_self.particles[p]; + game.ctx.save(); + game.ctx.translate(part.x+part.w/2, part.y+part.h/2); + game.ctx.shadowBlur = 10; + if(!part.color) + { + game.ctx.fillStyle="rgba(200,200,200,1)"; + game.ctx.shadowColor = "#00f"; + } + else + { + game.ctx.fillStyle="rgba("+part.color.r+","+part.color.g+","+part.color.b+","+part.color.a+")"; + game.ctx.shadowColor = "rgba("+part.color.r+","+part.color.g+","+part.color.b+","+part.color.a+")"; + } + game.ctx.fillRect(-part.w/2, -part.h/2, part.w, part.h); + game.ctx.translate(-(part.x+part.w/2), -(part.y+part.h/2)); + game.ctx.restore(); + } + //prints gameover string to screen + if(_self.state=="gameover") + { + game.ctx.fillStyle = "#ff0000"; + game.ctx.fillText("Game Over", _self.screen.x/2-80, _self.screen.y/2); + game.ctx.fillText("Your score "+_self.score, _self.screen.x/2-80, _self.screen.y/2+40); + } + //render enemies while running + if(_self.state=="running"||_self.state=="intro") + { + for(var e in _self.enemys) + { + var enemy=_self.enemys[e]; + enemy.draw(); + } + + _self.ball.onDraw(); + _self.player.draw(); + + + game.ctx.fillStyle="rgba(200,200,200,1)"; + game.ctx.shadowColor = "#ccc"; + game.ctx.fillRect(10,10, game.ball.bounds.x, game.ball.bounds.y); + + game.ctx.font ="bold 14pt Courier"; + game.ctx.fillStyle = "#333"; + game.ctx.fillText("x "+game.score, 15+game.ball.bounds.x, 10+game.ball.bounds.y); + + game.ctx.font ="bold 14pt Courier"; + game.ctx.fillStyle = "#333"; + game.ctx.fillText((game.stageIndex+1)+"/"+game.stages.length+" Stages", game.screen.x-130, 30); + } + //print string to screen when all stages were cleared + if(_self.state=="gamecomplete") + { + + //_self.createParticles(Math.random()*_self.screen.x, Math.random()*_self.screen.y, {r:Math.round(Math.random()*255), g:Math.round(Math.random()*255), b:Math.round(Math.random()*255), a:1}, 10, 10); + + game.ctx.fillStyle = "#ffff00"; + game.ctx.fillText("Game complete", _self.screen.x/2-120, _self.screen.y/2); + + game.ctx.shadowBlur=_self.glow.value; + game.ctx.font ="bold 14pt Courier"; + game.ctx.fillText("Pixels from outerspace", _self.screen.x/2-120, _self.screen.y/2+20); + game.ctx.fillText("Your score "+_self.score, _self.screen.x/2-120, _self.screen.y/2+40); + } + //print stage complete string + if(_self.state=="complete") + { + + _self.createParticles(Math.random()*_self.screen.x, Math.random()*_self.screen.y, {r:Math.round(Math.random()*255), g:Math.round(Math.random()*255), b:Math.round(Math.random()*255), a:1}, 10, 10); + game.ctx.fillStyle = "#ffff00"; + game.ctx.shadowBlur=_self.glow.value; + game.ctx.fillText("Stage complete", _self.screen.x/2-120, _self.screen.y/2); + } + + + if(_self.state=="dialog") + { + game.ctx.fillStyle="rgba(200,200,200,0.7)"; + game.ctx.shadowColor = "#ccc"; + game.ctx.shadowBlur=_self.glow.value; + game.ctx.fillRect(10, _self.screen.y-100, _self.screen.x-20, _self.screen.y-(_self.screen.y-90)); + + game.ctx.font ="bold 10pt Courier"; + game.ctx.fillStyle = "#333"; + game.ctx.shadowBlur=0; + var parts=StringSplitter(_self.currentDialog, 21); + for(var p in parts) + { + game.ctx.fillText(">> "+parts[p], 15, _self.screen.y-85+(p*12)); + } + } + + + game.ctx.shadowColor = "#000"; + game.ctx.shadowBlur = 5; + game.ctx.drawImage(game.lines, 0,0, game.lines.width, game.lines.height, 0,0,game.screen.x, game.screen.y ); +} +Game.prototype.areEnemysAlive=function() +{ + return(this.enemys.length>0); +} +Game.prototype.isInScreen=function(x,y) +{ + if(x>0&&x0&&yx1&&xy1&&y=this.reloadSpeed&&!this.canShoot) + { + this.canShoot=true; + this.reloadStep=0; + } + else + { + if(!this.canShoot) + this.reloadStep++; + } + + for(var b in this.bullets) + { + var bullet = this.bullets[b]; + if(bullet.active) + { + var rmv=true; + bullet.x+=Math.cos(bullet.r)*bullet.v; + bullet.y+=Math.sin(bullet.r)*bullet.v; + + for(var e in game.enemys) + { + var enemy = game.enemys[e]; + if(game.collides(bullet.x, bullet.y, this.w, this.h, enemy.x, enemy.y, enemy.w, enemy.h)) + { + rmv=false; + game.createParticles(bullet.x, bullet.y, getColor(255,50,0,1), 20, 10); + game.createParticles(bullet.x, bullet.y, getColor(255,250,0,1), 5, 5); + enemy.life-=this.damage; + bullet.active=false; + } + if(game.collides(bullet.x, bullet.y, this.w, this.h, game.player.x, game.player.y, game.player.w, game.player.h)) + { + game.createParticles(bullet.x, bullet.y, getColor(255,50,0,1), 20, 10); + game.createParticles(bullet.x, bullet.y, getColor(255,250,0,1), 5, 5); + rmv=false; + game.player.life-=this.damage; + bullet.active=false; + } + } + + if(!game.isInScreen(bullet.x, bullet.y)) + { + bullet.active=false; + } + } + else + { + this.bullets.splice(b,1); + } + } +} +GunBase.prototype.shoot=function(x,y) +{ + if(this.canShoot) + { + this.bullets.push({x:x, y:y, v:10, r:this.r, vx:0, vy:-5, active:true}); + //game.createParticles(x, y, {r:255, g:255, b:0, a:0.5}, 20, 5); + this.canShoot=false; + } + +} +//************************************************************************************* +function LaserGun(x,y,r, gunTyp) +{ + this.x=x; + this.y=y; + this.w=2; + this.h=8; + this.r=r; + this.reloadSpeed=Math.random()*15+15; + this.reloadStep=0; + this.bullets=new Array(); + this.canShoot=true; + this.spread=2; + this.damage=3; + this.color=getColor(255,100,100,1); + this.PLAYER_TYP=1; + this.ENEMY_TYP=2; + this.typ=gunTyp||this.ENEMY_TYP; + this.name="LaserGun"; + +} +LaserGun.prototype=new GunBase(); +///////////////////////////////////////////////////// +function BomberGun(x,y,r, gunTyp) +{ + this.x=x; + this.y=y; + this.w=8; + this.h=8; + this.r=r; + this.reloadSpeed=Math.random()*15+20; + this.reloadStep=0; + this.bullets=new Array(); + this.canShoot=true; + this.spread=2; + this.damage=25; + this.color=getColor(255,100,100,1); + this.PLAYER_TYP=1; + this.ENEMY_TYP=2; + this.typ=gunTyp||this.ENEMY_TYP; + this.name="BomberGun"; + +} +BomberGun.prototype=new GunBase(); +///////////////////////////////////////////////////// +function GetlingGun(x,y,r, gunTyp) +{ + this.x=x; + this.y=y; + this.w=4; + this.h=6; + this.r=r; + this.reloadSpeed=Math.random()*5+15; + this.reloadStep=0; + this.bullets=new Array(); + this.canShoot=true; + this.spread=2; + this.damage=1; + this.color=getColor(255,100,100,1); + this.PLAYER_TYP=1; + this.ENEMY_TYP=2; + this.typ=gunTyp||this.ENEMY_TYP; + this.name="GetlingGun"; + +} +GetlingGun.prototype=new GunBase(); +///////////////////////////////////////////////////// +function PlayerGun(x,y,r) +{ + this.x=x; + this.y=y; + this.w=4; + this.h=6; + this.r=r; + this.reloadSpeed=8; + this.reloadStep=0; + this.bullets=new Array(); + this.canShoot=true; + this.spread=2; + this.damage=8; + this.color=getColor(100,100,255,1); + this.PLAYER_TYP=1; + this.ENEMY_TYP=2; + this.typ=this.PLAYER_TYP; + this.name="PlayerGun"; + +} +PlayerGun.prototype=new GunBase(); +///////////////////////////////////////////////////// +function TrippleShoot() +{ + this.guns= + [ + + new PlayerGun(base*0, base*0, ((Math.PI*2)/4)*2.8), + new PlayerGun(base*2, base*0,((Math.PI*2)/4)*3), + new PlayerGun(base*4, base*0,((Math.PI*2)/4)*3.2), + ] +} +function DoubleShoot() +{ + this.guns= + [ + + new PlayerGun(base*0, base*0, ((Math.PI*2)/4)*3), + new PlayerGun(base*4, base*0,((Math.PI*2)/4)*3), + ] +} + +///////////////////////////////////////////////////// +function Ball(x,y) +{ + this.spawn= + { + x:x, + y:y + } + this.v= + { + x:0, + y:0, + max:1, + dir:0, + } + this.bounds= + { + x:10, + y:10, + } + this.direction=1; + this.x=x; + this.y=y; + this.glow= + { + max:20, + min:5, + value:5, + fac:1, + } +} +Ball.prototype.onUpdate=function() +{ + this.x+=this.v.x; + this.y+=this.v.y; + + + + if(this.y+this.v.y<=0) + { + this.v.y*=-1; + this.v.dir=1; + game.score++; + + } + + if(this.x-this.bounds.x/2<=0||this.x+this.bounds.x/2>=game.screen.x) + { + this.v.x*=-1; + } + + if(this.glow.valuethis.glow.max) + { + this.glow.fac*=-1; + } + this.glow.value+=this.glow.fac; + + if(!game.isInScreen(this.x, this.y+this.v.y, this.bounds.x, this.bounds.y)) + { + game.score=0; + this.create(); + } + if(game.collides(this.x-this.bounds.x/2, this.y+this.v.y-this.bounds.y/2, this.bounds.x, this.bounds.y, game.player.x, game.player.y, game.player.w, game.player.h)) + { + this.v.y*=-1; + this.v.dir=-1; + } + +} +Ball.prototype.onDraw=function() +{ + game.ctx.translate((this.x-this.bounds.x/2), (this.y-this.bounds.y/2)); + + game.ctx.fillStyle="rgba(200,200,200,1)"; + game.ctx.shadowColor = "rgba(200,200,200,1)"; + game.ctx.shadowBlur = this.glow.value; + + game.ctx.fillRect(0,0, this.bounds.x, this.bounds.y); + + game.ctx.translate(-(this.x-this.bounds.x/2), -(this.y-this.bounds.y/2)) + +} +Ball.prototype.create=function() +{ + this.x=this.spawn.x; + this.y=this.spawn.y; + +} + + +//************************************************************************************* +function StringSplitter(string, length) +{ + var parts=new Array(); + var str=string; + + while(str) + { + if (str.length < length) { + parts.push(str); + break; + } + else + { + parts.push(str.substr(0, length)); + str = str.substr(length); + } + } + return parts; +} +//************************************************************************************* +var game; +function start() +{ + game=new Game(); +} +function finish() +{ + clearInterval(game.renderer); + start(); +} +function nextLevel() +{ + if(game.stageIndex - - - -
-
- -
- - + + + + +
+
+ +
+ + diff --git a/Games/Planet_Game/index.html b/Games/Planet_Game/index.html index b7104c0076..f4902f01b7 100644 --- a/Games/Planet_Game/index.html +++ b/Games/Planet_Game/index.html @@ -1,81 +1,81 @@ - - - -SPACECRAFT - - - - - - - - - - -
    -
  • SPACE
  • -
  • PLUTO
  • -
  • NEPTUNE
  • -
  • URANUS
  • -
  • SATURN
  • -
  • JUPITER
  • -
  • MARS
  • -
  • MOON
  • -
- -
-
-
-

-

-

- - - - - - - - -
Distance travelled
Tokens collected
Big tokens collected
Asteroids destroyed
Places visited
Mission completed
TOTAL
-
- -
-
-

- -
-
- - -
-
-

SPACECRAFT

-
-

- JUMP - UP arrow key
- SHRINK - DOWN arrow key
- MOVE - LEFT / RIGHT arrow keys
- BOOST - SPACE key -

-

- JUMP - Swipe UP
- SHRINK - Swipe DOWN
- MOVE - Swipe LEFT / RIGHT
- BOOST - TAP -

-

- BIG TOKENS help you collect small ones.
- Use SHRINK to go through SPACE JUNK.
- Use BOOST to destroy ASTEROIDS. -

-
- -
-
- - + + + +SPACECRAFT + + + + + + + + + + +
    +
  • SPACE
  • +
  • PLUTO
  • +
  • NEPTUNE
  • +
  • URANUS
  • +
  • SATURN
  • +
  • JUPITER
  • +
  • MARS
  • +
  • MOON
  • +
+ +
+
+
+

+

+

+ + + + + + + + +
Distance travelled
Tokens collected
Big tokens collected
Asteroids destroyed
Places visited
Mission completed
TOTAL
+
+ +
+
+

+ +
+
+ + +
+
+

SPACECRAFT

+
+

+ JUMP - UP arrow key
+ SHRINK - DOWN arrow key
+ MOVE - LEFT / RIGHT arrow keys
+ BOOST - SPACE key +

+

+ JUMP - Swipe UP
+ SHRINK - Swipe DOWN
+ MOVE - Swipe LEFT / RIGHT
+ BOOST - TAP +

+

+ BIG TOKENS help you collect small ones.
+ Use SHRINK to go through SPACE JUNK.
+ Use BOOST to destroy ASTEROIDS. +

+
+ +
+
+ + \ No newline at end of file diff --git a/Games/Pokedex/README.md b/Games/Pokedex/README.md index eab8483329..b251d51802 100644 --- a/Games/Pokedex/README.md +++ b/Games/Pokedex/README.md @@ -1,29 +1,29 @@ -# **Pokedex Game** - -

Pokรฉdex - Bulbapedia, the community-driven Pokรฉmon encyclopedia -The Pokรฉdex (Japanese: ใƒใ‚ฑใƒขใƒณๅ›ณ้‘‘ illustrated Pokรฉmon encyclopedia) is an invaluable tool to Trainers in the Pokรฉmon world. It gives information about all Pokรฉmon in the world that are contained in its database, although it differs in how it acquires and presents information over the different media.

- -
- -## **Description ๐Ÿ“ƒ** -This game provides various pokemons to choose from and score accordingly. -- -## **Functionalities ๐ŸŽฎ** -- Easy to play -- Scoring system so that you can compare points with your friends. -- Responsive design for most of the monitors. -
- -## **How to play? ๐Ÿ•น๏ธ** -- Your aim is to enter the name of the pokemon showing on the device screen. -- You can use prev and next options to see next pokemon on the screen. - -
- - -## **Screenshots ๐Ÿ“ธ** - -

Pokedox Game

-Screenshot 2023-07-22 at 12 53 26 PM - - +# **Pokedex Game** + +

Pokรฉdex - Bulbapedia, the community-driven Pokรฉmon encyclopedia +The Pokรฉdex (Japanese: ใƒใ‚ฑใƒขใƒณๅ›ณ้‘‘ illustrated Pokรฉmon encyclopedia) is an invaluable tool to Trainers in the Pokรฉmon world. It gives information about all Pokรฉmon in the world that are contained in its database, although it differs in how it acquires and presents information over the different media.

+ +
+ +## **Description ๐Ÿ“ƒ** +This game provides various pokemons to choose from and score accordingly. +- +## **Functionalities ๐ŸŽฎ** +- Easy to play +- Scoring system so that you can compare points with your friends. +- Responsive design for most of the monitors. +
+ +## **How to play? ๐Ÿ•น๏ธ** +- Your aim is to enter the name of the pokemon showing on the device screen. +- You can use prev and next options to see next pokemon on the screen. + +
+ + +## **Screenshots ๐Ÿ“ธ** + +

Pokedox Game

+Screenshot 2023-07-22 at 12 53 26 PM + + diff --git a/Games/Puzzle_Game/index.css b/Games/Puzzle_Game/index.css index 581859c0c1..0f5c36a51a 100644 --- a/Games/Puzzle_Game/index.css +++ b/Games/Puzzle_Game/index.css @@ -1,60 +1,60 @@ -body { - background-image: url(marvel.jpeg); - background-repeat: no-repeat; - background-size: cover; - font-family: Arial, Helvetica, sans-serif; - text-align: center; -} -body h2{ - margin-left: 600px; - margin-right: 600px; - margin-top: 10px; - background-color: rgb(189, 26, 189); - border-radius: 12px; - padding: 10px 10px; -} -body h1{ - margin-left: 500px; - margin-right: 500px; - margin-top: 10px; - background-color: white; - border-radius: 12px; - padding: 10px 10px; -} -body h1 span{ - color: blue; -} - - -#board { - width: 400px; - height: 400px; - border: 2px solid purple; - - margin: 0 auto; - display: flex; - flex-wrap: wrap; -} - -#board img { - width: 79px; - height: 79px; - border: 0.5px solid purple ; -} - - -#pieces { - width: 1040px; - height: 160px; - border: 2px solid purple; - - margin: 0 auto; - display: flex; - flex-wrap: wrap; -} - -#pieces img { - width: 79px; - height: 79px; - border: 0.5px solid lightblue; +body { + background-image: url(marvel.jpeg); + background-repeat: no-repeat; + background-size: cover; + font-family: Arial, Helvetica, sans-serif; + text-align: center; +} +body h2{ + margin-left: 600px; + margin-right: 600px; + margin-top: 10px; + background-color: rgb(189, 26, 189); + border-radius: 12px; + padding: 10px 10px; +} +body h1{ + margin-left: 500px; + margin-right: 500px; + margin-top: 10px; + background-color: white; + border-radius: 12px; + padding: 10px 10px; +} +body h1 span{ + color: blue; +} + + +#board { + width: 400px; + height: 400px; + border: 2px solid purple; + + margin: 0 auto; + display: flex; + flex-wrap: wrap; +} + +#board img { + width: 79px; + height: 79px; + border: 0.5px solid purple ; +} + + +#pieces { + width: 1040px; + height: 160px; + border: 2px solid purple; + + margin: 0 auto; + display: flex; + flex-wrap: wrap; +} + +#pieces img { + width: 79px; + height: 79px; + border: 0.5px solid lightblue; } \ No newline at end of file diff --git a/Games/Puzzle_Game/index.js b/Games/Puzzle_Game/index.js index 350ad43b1f..584511afa3 100644 --- a/Games/Puzzle_Game/index.js +++ b/Games/Puzzle_Game/index.js @@ -1,92 +1,92 @@ -var rows = 5; -var columns = 5; - -var currTile; -var otherTile; - -var turns = 0; - -window.onload = function() { - //initialize the 5x5 board - for (let r = 0; r < rows; r++) { - for (let c = 0; c < columns; c++) { - // - let tile = document.createElement("img"); - tile.src = "./images/blank.jpg"; - - //DRAG FUNCTIONALITY - tile.addEventListener("dragstart", dragStart); //click on image to drag - tile.addEventListener("dragover", dragOver); //drag an image - tile.addEventListener("dragenter", dragEnter); //dragging an image into another one - tile.addEventListener("dragleave", dragLeave); //dragging an image away from another one - tile.addEventListener("drop", dragDrop); //drop an image onto another one - tile.addEventListener("dragend", dragEnd); //after you completed dragDrop - - document.getElementById("board").append(tile); - } - } - - //pieces - let pieces = []; - for (let i=1; i <= rows*columns; i++) { - pieces.push(i.toString()); //put "1" to "25" into the array (puzzle images names) - } - pieces.reverse(); - for (let i =0; i < pieces.length; i++) { - let j = Math.floor(Math.random() * pieces.length); - - //swap - let tmp = pieces[i]; - pieces[i] = pieces[j]; - pieces[j] = tmp; - } - - for (let i = 0; i < pieces.length; i++) { - let tile = document.createElement("img"); - tile.src = "./images/" + pieces[i] + ".jpg"; - - //DRAG FUNCTIONALITY - tile.addEventListener("dragstart", dragStart); //click on image to drag - tile.addEventListener("dragover", dragOver); //drag an image - tile.addEventListener("dragenter", dragEnter); //dragging an image into another one - tile.addEventListener("dragleave", dragLeave); //dragging an image away from another one - tile.addEventListener("drop", dragDrop); //drop an image onto another one - tile.addEventListener("dragend", dragEnd); //after you completed dragDrop - - document.getElementById("pieces").append(tile); - } -} - -//DRAG TILES -function dragStart() { - currTile = this; //this refers to image that was clicked on for dragging -} - -function dragOver(e) { - e.preventDefault(); -} - -function dragEnter(e) { - e.preventDefault(); -} - -function dragLeave() { - -} - -function dragDrop() { - otherTile = this; //this refers to image that is being dropped on -} - -function dragEnd() { - if (currTile.src.includes("blank")) { - return; - } - let currImg = currTile.src; - let otherImg = otherTile.src; - currTile.src = otherImg; - otherTile.src = currImg; - - turns += 1; - document.getElementById("turns").innerText = turns; +var rows = 5; +var columns = 5; + +var currTile; +var otherTile; + +var turns = 0; + +window.onload = function() { + //initialize the 5x5 board + for (let r = 0; r < rows; r++) { + for (let c = 0; c < columns; c++) { + // + let tile = document.createElement("img"); + tile.src = "./images/blank.jpg"; + + //DRAG FUNCTIONALITY + tile.addEventListener("dragstart", dragStart); //click on image to drag + tile.addEventListener("dragover", dragOver); //drag an image + tile.addEventListener("dragenter", dragEnter); //dragging an image into another one + tile.addEventListener("dragleave", dragLeave); //dragging an image away from another one + tile.addEventListener("drop", dragDrop); //drop an image onto another one + tile.addEventListener("dragend", dragEnd); //after you completed dragDrop + + document.getElementById("board").append(tile); + } + } + + //pieces + let pieces = []; + for (let i=1; i <= rows*columns; i++) { + pieces.push(i.toString()); //put "1" to "25" into the array (puzzle images names) + } + pieces.reverse(); + for (let i =0; i < pieces.length; i++) { + let j = Math.floor(Math.random() * pieces.length); + + //swap + let tmp = pieces[i]; + pieces[i] = pieces[j]; + pieces[j] = tmp; + } + + for (let i = 0; i < pieces.length; i++) { + let tile = document.createElement("img"); + tile.src = "./images/" + pieces[i] + ".jpg"; + + //DRAG FUNCTIONALITY + tile.addEventListener("dragstart", dragStart); //click on image to drag + tile.addEventListener("dragover", dragOver); //drag an image + tile.addEventListener("dragenter", dragEnter); //dragging an image into another one + tile.addEventListener("dragleave", dragLeave); //dragging an image away from another one + tile.addEventListener("drop", dragDrop); //drop an image onto another one + tile.addEventListener("dragend", dragEnd); //after you completed dragDrop + + document.getElementById("pieces").append(tile); + } +} + +//DRAG TILES +function dragStart() { + currTile = this; //this refers to image that was clicked on for dragging +} + +function dragOver(e) { + e.preventDefault(); +} + +function dragEnter(e) { + e.preventDefault(); +} + +function dragLeave() { + +} + +function dragDrop() { + otherTile = this; //this refers to image that is being dropped on +} + +function dragEnd() { + if (currTile.src.includes("blank")) { + return; + } + let currImg = currTile.src; + let otherImg = otherTile.src; + currTile.src = otherImg; + otherTile.src = currImg; + + turns += 1; + document.getElementById("turns").innerText = turns; } \ No newline at end of file diff --git a/Games/QuickFingers/README.md b/Games/QuickFingers/README.md index dc9848cd2e..b9b9888cfa 100644 --- a/Games/QuickFingers/README.md +++ b/Games/QuickFingers/README.md @@ -1,28 +1,28 @@ -# Quick Fingers - -## Description - -A simple and fun game built using HTML, CSS, and JavaScript. The player has to click on the ball that pop up randomly from the grid to score points within a set time limit. - -## Functionality - -- Grids displayed on the screen. -- A ball pop up randomly on the grid for a short duration. -- Players click on the ball to score points. -- Each successful whack increases the player's score. -- The game runs for 30 seconds, with a countdown timer displayed on the screen. -- When the time runs out, the game displays the player's final score. - -## How to Play - -1. Open the `index.html` file in a web browser. -2. Click the "Start Game" button to begin. -3. Click on the ball as it appear on the grids to score points. -4. The game ends when the timer reaches zero. -5. The player's final score is displayed in an alert. - -## Files - -- `index.html`: The main HTML file that sets up the structure of the game. -- `styles.css`: The CSS file that styles the game. +# Quick Fingers + +## Description + +A simple and fun game built using HTML, CSS, and JavaScript. The player has to click on the ball that pop up randomly from the grid to score points within a set time limit. + +## Functionality + +- Grids displayed on the screen. +- A ball pop up randomly on the grid for a short duration. +- Players click on the ball to score points. +- Each successful whack increases the player's score. +- The game runs for 30 seconds, with a countdown timer displayed on the screen. +- When the time runs out, the game displays the player's final score. + +## How to Play + +1. Open the `index.html` file in a web browser. +2. Click the "Start Game" button to begin. +3. Click on the ball as it appear on the grids to score points. +4. The game ends when the timer reaches zero. +5. The player's final score is displayed in an alert. + +## Files + +- `index.html`: The main HTML file that sets up the structure of the game. +- `styles.css`: The CSS file that styles the game. - `script.js`: The JavaScript file that contains the game logic. \ No newline at end of file diff --git a/Games/QuickFingers/index.html b/Games/QuickFingers/index.html index aefe68a28a..912bf487c3 100644 --- a/Games/QuickFingers/index.html +++ b/Games/QuickFingers/index.html @@ -1,28 +1,28 @@ - - - - - - Quick Fingers - - - -

Quick Fingers

- -
-
-
-
-
-
-
-
-
-
-
-

Score: 0

-

Time: 30s

-
Made By : Vijay Samant
https://github.com/VijaySamant4368
- - + + + + + + Quick Fingers + + + +

Quick Fingers

+ +
+
+
+
+
+
+
+
+
+
+
+

Score: 0

+

Time: 30s

+
Made By : Vijay Samant
https://github.com/VijaySamant4368
+ + \ No newline at end of file diff --git a/Games/QuickFingers/script.js b/Games/QuickFingers/script.js index 157710c448..9d522c572c 100644 --- a/Games/QuickFingers/script.js +++ b/Games/QuickFingers/script.js @@ -1,73 +1,73 @@ -const cells = document.querySelectorAll('.cell'); -const scoreBoard = document.getElementById('score'); -const timerBoard = document.getElementById('timer'); -const startButton = document.getElementById('startButton'); - -let lastHole; -let timeUp = false; -let score = 0; -let timeLeft = 30; - -function randomTime(min, max) { - return Math.round(Math.random() * (max - min) + min); -} - -function randomHole(cells) { - const index = Math.floor(Math.random() * cells.length); - const cell = cells[index]; - if (cell === lastHole) { - return randomHole(cells); - } - lastHole = cell; - return cell; -} - -function showBall() { - const time = randomTime(200, 1000); - const cell = randomHole(cells); - cell.classList.add('up'); - cell.firstElementChild.style.display = 'block'; - setTimeout(() => { - cell.classList.remove('up'); - cell.firstElementChild.style.display = 'none'; - if (!timeUp) showBall(); - }, time); -} - -function startGame() { - scoreBoard.textContent = 0; - timerBoard.textContent = 30; - score = 0; - timeLeft = 30; - timeUp = false; - showBall(); - startButton.disabled = true; - - const countdown = setInterval(() => { - timeLeft--; - timerBoard.textContent = timeLeft; - if (timeLeft <= 0) { - clearInterval(countdown); - timeUp = true; - startButton.disabled = false; - alert('Time up! Your final score is ' + score); - } - }, 1000); -} - -function whack(event) { - if (!event.isTrusted) return; - score++; - this.parentNode.classList.remove('up'); - this.style.display = 'none'; - scoreBoard.textContent = score; -} - -cells.forEach(cell => { - const ball = document.createElement('div'); - ball.classList.add('ball'); - ball.addEventListener('click', whack); - cell.appendChild(ball); -}); - +const cells = document.querySelectorAll('.cell'); +const scoreBoard = document.getElementById('score'); +const timerBoard = document.getElementById('timer'); +const startButton = document.getElementById('startButton'); + +let lastHole; +let timeUp = false; +let score = 0; +let timeLeft = 30; + +function randomTime(min, max) { + return Math.round(Math.random() * (max - min) + min); +} + +function randomHole(cells) { + const index = Math.floor(Math.random() * cells.length); + const cell = cells[index]; + if (cell === lastHole) { + return randomHole(cells); + } + lastHole = cell; + return cell; +} + +function showBall() { + const time = randomTime(200, 1000); + const cell = randomHole(cells); + cell.classList.add('up'); + cell.firstElementChild.style.display = 'block'; + setTimeout(() => { + cell.classList.remove('up'); + cell.firstElementChild.style.display = 'none'; + if (!timeUp) showBall(); + }, time); +} + +function startGame() { + scoreBoard.textContent = 0; + timerBoard.textContent = 30; + score = 0; + timeLeft = 30; + timeUp = false; + showBall(); + startButton.disabled = true; + + const countdown = setInterval(() => { + timeLeft--; + timerBoard.textContent = timeLeft; + if (timeLeft <= 0) { + clearInterval(countdown); + timeUp = true; + startButton.disabled = false; + alert('Time up! Your final score is ' + score); + } + }, 1000); +} + +function whack(event) { + if (!event.isTrusted) return; + score++; + this.parentNode.classList.remove('up'); + this.style.display = 'none'; + scoreBoard.textContent = score; +} + +cells.forEach(cell => { + const ball = document.createElement('div'); + ball.classList.add('ball'); + ball.addEventListener('click', whack); + cell.appendChild(ball); +}); + startButton.addEventListener('click', startGame); \ No newline at end of file diff --git a/Games/QuickFingers/styles.css b/Games/QuickFingers/styles.css index 62dc35a8cc..917bf49d56 100644 --- a/Games/QuickFingers/styles.css +++ b/Games/QuickFingers/styles.css @@ -1,49 +1,49 @@ -body { - font-family: Arial, sans-serif; - text-align: center; - background-color: #f0f0f0; -} - -h1 { - color: #333; -} - -button { - padding: 10px 20px; - background-color: #007bff; - color: white; - border: none; - cursor: pointer; -} - -button:hover { - background-color: #0056b3; -} - -#gameBoard { - display: grid; - grid-template-columns: repeat(3, 100px); - grid-gap: 10px; - justify-content: center; - margin: 20px auto; -} - -.cell { - width: 100px; - height: 100px; - background-color: #ccc; - border: 2px solid #333; - position: relative; -} - -.ball { - width: 80px; - height: 80px; - background-color: #000; - border-radius: 50%; - position: absolute; - top: 10px; - left: 10px; - display: none; - cursor: pointer; +body { + font-family: Arial, sans-serif; + text-align: center; + background-color: #f0f0f0; +} + +h1 { + color: #333; +} + +button { + padding: 10px 20px; + background-color: #007bff; + color: white; + border: none; + cursor: pointer; +} + +button:hover { + background-color: #0056b3; +} + +#gameBoard { + display: grid; + grid-template-columns: repeat(3, 100px); + grid-gap: 10px; + justify-content: center; + margin: 20px auto; +} + +.cell { + width: 100px; + height: 100px; + background-color: #ccc; + border: 2px solid #333; + position: relative; +} + +.ball { + width: 80px; + height: 80px; + background-color: #000; + border-radius: 50%; + position: absolute; + top: 10px; + left: 10px; + display: none; + cursor: pointer; } \ No newline at end of file diff --git a/Games/QuizzApp/Game/game.css b/Games/QuizzApp/Game/game.css index 0b83aa455c..f7e6ffb7a6 100644 --- a/Games/QuizzApp/Game/game.css +++ b/Games/QuizzApp/Game/game.css @@ -1,66 +1,66 @@ -.choice-container { - display: flex; - align-items: center; - margin-bottom: 0.5rem; - width: 100%; - font-size: 1.8rem; - border: 0.1rem solid rgb(86, 165, 235, 0.25); - background-color: white; -} - -.choice-container:hover { - cursor: pointer; - box-shadow: 0 0.4rem 1.4rem 0 rgba(86, 185, 235, 0.5); - transform: translate(-0.1rem); - transition: transform 150ms; -} -.choice-prefix { - padding: 1.5rem 2.5rem; - background-color: #56a5eb; - color: white; -} - -.choice-text { - padding: 1.5rem; - width: 100%; -} -.correct { - background-color: #28a745; -} -.incorrect { - background-color: #dc3545; -} -/* heads up display */ -/* this is an id # */ -#hud { - display: flex; - justify-content: space-between; -} -.hud-prefix { - text-align: center; - font-size: 2rem; -} -.hud-main-text { - text-align: center; -} - -/* LOADER */ -#loader { - border: 1.6rem solid white; - border-radius: 50%; - /* provides a circular effect border-radius */ - border-top: 1.6rem solid #56a5eb; - width: 12rem; - height: 12rem; - animation: spin 2s linear infinite; -} -/* to make it spin use animation */ - -@keyframes spin { - 0% { - transform: rotate(0deg); - } - 100% { - transform: rotate(360deg); - } -} +.choice-container { + display: flex; + align-items: center; + margin-bottom: 0.5rem; + width: 100%; + font-size: 1.8rem; + border: 0.1rem solid rgb(86, 165, 235, 0.25); + background-color: white; +} + +.choice-container:hover { + cursor: pointer; + box-shadow: 0 0.4rem 1.4rem 0 rgba(86, 185, 235, 0.5); + transform: translate(-0.1rem); + transition: transform 150ms; +} +.choice-prefix { + padding: 1.5rem 2.5rem; + background-color: #56a5eb; + color: white; +} + +.choice-text { + padding: 1.5rem; + width: 100%; +} +.correct { + background-color: #28a745; +} +.incorrect { + background-color: #dc3545; +} +/* heads up display */ +/* this is an id # */ +#hud { + display: flex; + justify-content: space-between; +} +.hud-prefix { + text-align: center; + font-size: 2rem; +} +.hud-main-text { + text-align: center; +} + +/* LOADER */ +#loader { + border: 1.6rem solid white; + border-radius: 50%; + /* provides a circular effect border-radius */ + border-top: 1.6rem solid #56a5eb; + width: 12rem; + height: 12rem; + animation: spin 2s linear infinite; +} +/* to make it spin use animation */ + +@keyframes spin { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } +} diff --git a/Games/QuizzApp/Game/game.html b/Games/QuizzApp/Game/game.html index 7dac88e835..829adf1cc5 100644 --- a/Games/QuizzApp/Game/game.html +++ b/Games/QuizzApp/Game/game.html @@ -1,66 +1,66 @@ - - - - - - - - Quick Quiz - Play - - - - - - - - - - - - - -
-
- - - - + + + + + + + + Quick Quiz - Play + + + + + + + + + + + + + +
+
+ + + + \ No newline at end of file diff --git a/Games/QuizzApp/Game/game.js b/Games/QuizzApp/Game/game.js index e193b9cb7c..6170494dc6 100644 --- a/Games/QuizzApp/Game/game.js +++ b/Games/QuizzApp/Game/game.js @@ -1,140 +1,140 @@ -const question = document.getElementById("question"); -const choices = Array.from(document.getElementsByClassName("choice-text")); -const questionCounterText = document.getElementById("questionCounter"); -const scoreText = document.getElementById("score"); -const loader = document.getElementById("loader"); -const game = document.getElementById("game"); -let currentQuestion = {}; //this is an object -let acceptingAnswers = false; -let score = 0; -let questionCounter = 0; -let availableQuestions = []; -// questions array - -//using fetch API to get the question from local file i.e questions.json -let questions = [{}, {}, {}, {}, {}]; - -//promise function?? response -//fetch rturns a promise -// fetch("../questions.json") -// .then((res) => { -// return res.json(); -// }) -// .then((loadedQuestions) => { -// // console.log(loadedQuestions); -// questions = loadedQuestions; -// console.log(loadedQuestions.length); -// startGame(); -// }).catch(err =>{ -// console.error(err); -// }); -fetch("https://opentdb.com/api.php?amount=50&type=multiple") - .then((res) => { - return res.json(); - }) - .then((loadedQuestions) => { - // console.log(loadedQuestions); - // questions = loadedQuestions; - // console.log(loadedQuestions); - questions = loadedQuestions.results.map((loadedQuestions) => { - const formattedQuestion = { - question: loadedQuestions.question, - }; - const answerChoices = [...loadedQuestions.incorrect_answers]; - formattedQuestion.answer = Math.floor(Math.random() * 3) + 1; - answerChoices.splice(formattedQuestion.answer - 1, 0, loadedQuestions.correct_answer); - answerChoices.forEach((choice, index) => { - formattedQuestion["choice" + (index + 1)] = choice; - }); - return formattedQuestion; - }); - startGame(); - }) - .catch((err) => { - console.error(err); - }); -const CORRECT_BONUS = 10; -const MAX_QUESTIONS = questions.length; - -startGame = () => { - questionCounter = 0; - score = 0; - availableQuestions = [...questions]; - // using spread operator making an entire copy of the questions array - // console.log(availableQuestions.length); - getNewQuestion(); - game.classList.remove("hidden"); - loader.classList.add("hidden"); -}; -getNewQuestion = () => { - if (availableQuestions.length === 0 || questionCounter >= MAX_QUESTIONS) { - localStorage.setItem("mostRecentScore", score); - //go to the end page if the questions array is empty - return window.location.assign("../end page/end.html"); - } - questionCounter++; - questionCounterText.innerText = `${questionCounter}/${MAX_QUESTIONS}`; - const questionIndex = Math.floor(Math.random() * availableQuestions.length); - currentQuestion = availableQuestions[questionIndex]; - question.innerText = currentQuestion.question; - choices.forEach((choice) => { - const number = choice.dataset["number"]; - choice.innerText = currentQuestion["choice" + number]; - }); - // get the available question and remove it so that it wont come again while a player is playing - availableQuestions.splice(questionIndex, 1); - acceptingAnswers = true; -}; -choices.forEach((choice) => { - choice.addEventListener("click", (e) => { - if (!acceptingAnswers) return; - acceptingAnswers = false; - const selectedChoice = e.target; - const selectedAnswer = selectedChoice.dataset["number"]; //this returns a string - var correct_choice; - //function to get the correct_choice element - if (currentQuestion.answer == 1) { - correct_choice = document.getElementById("1"); - } else if (currentQuestion.answer == 2) { - correct_choice = document.getElementById("2"); - } else if (currentQuestion.answer == 3) { - correct_choice = document.getElementById("3"); - } else if (currentQuestion.answer == 4) { - correct_choice = document.getElementById("4"); - } - - //both these are numbers option numbers - // console.log(selectedChoice); //this will return the entire element of the selected option - // console.log(correct_choice); - // console.log(selectedAnswer); //this will return the option numbrt of the selected answer - - // const classToApply = 'incorrect'; - // if(selectedAnswer == currentQuestion.answer){ - // classToApply = 'correct'; - // } - //or can use a ternary operator - const classToApply = selectedAnswer == currentQuestion.answer ? "correct" : "incorrect"; - - if (classToApply === "correct") { - incrementScore(CORRECT_BONUS); - } - - //take the parent element of the sleected choice to whome the class will be applied - //now i want some delay between adding and removing classes - selectedChoice.parentElement.classList.add(classToApply); - correct_choice.parentElement.classList.add("correct"); - setTimeout(() => { - { - selectedChoice.parentElement.classList.remove(classToApply); - correct_choice.parentElement.classList.remove("correct"); - } - getNewQuestion(); - }, 1500); - // console.log(selectedAnswer); - }); -}); - -incrementScore = (num) => { - score += num; - scoreText.innerText = score; -}; +const question = document.getElementById("question"); +const choices = Array.from(document.getElementsByClassName("choice-text")); +const questionCounterText = document.getElementById("questionCounter"); +const scoreText = document.getElementById("score"); +const loader = document.getElementById("loader"); +const game = document.getElementById("game"); +let currentQuestion = {}; //this is an object +let acceptingAnswers = false; +let score = 0; +let questionCounter = 0; +let availableQuestions = []; +// questions array + +//using fetch API to get the question from local file i.e questions.json +let questions = [{}, {}, {}, {}, {}]; + +//promise function?? response +//fetch rturns a promise +// fetch("../questions.json") +// .then((res) => { +// return res.json(); +// }) +// .then((loadedQuestions) => { +// // console.log(loadedQuestions); +// questions = loadedQuestions; +// console.log(loadedQuestions.length); +// startGame(); +// }).catch(err =>{ +// console.error(err); +// }); +fetch("https://opentdb.com/api.php?amount=50&type=multiple") + .then((res) => { + return res.json(); + }) + .then((loadedQuestions) => { + // console.log(loadedQuestions); + // questions = loadedQuestions; + // console.log(loadedQuestions); + questions = loadedQuestions.results.map((loadedQuestions) => { + const formattedQuestion = { + question: loadedQuestions.question, + }; + const answerChoices = [...loadedQuestions.incorrect_answers]; + formattedQuestion.answer = Math.floor(Math.random() * 3) + 1; + answerChoices.splice(formattedQuestion.answer - 1, 0, loadedQuestions.correct_answer); + answerChoices.forEach((choice, index) => { + formattedQuestion["choice" + (index + 1)] = choice; + }); + return formattedQuestion; + }); + startGame(); + }) + .catch((err) => { + console.error(err); + }); +const CORRECT_BONUS = 10; +const MAX_QUESTIONS = questions.length; + +startGame = () => { + questionCounter = 0; + score = 0; + availableQuestions = [...questions]; + // using spread operator making an entire copy of the questions array + // console.log(availableQuestions.length); + getNewQuestion(); + game.classList.remove("hidden"); + loader.classList.add("hidden"); +}; +getNewQuestion = () => { + if (availableQuestions.length === 0 || questionCounter >= MAX_QUESTIONS) { + localStorage.setItem("mostRecentScore", score); + //go to the end page if the questions array is empty + return window.location.assign("../end page/end.html"); + } + questionCounter++; + questionCounterText.innerText = `${questionCounter}/${MAX_QUESTIONS}`; + const questionIndex = Math.floor(Math.random() * availableQuestions.length); + currentQuestion = availableQuestions[questionIndex]; + question.innerText = currentQuestion.question; + choices.forEach((choice) => { + const number = choice.dataset["number"]; + choice.innerText = currentQuestion["choice" + number]; + }); + // get the available question and remove it so that it wont come again while a player is playing + availableQuestions.splice(questionIndex, 1); + acceptingAnswers = true; +}; +choices.forEach((choice) => { + choice.addEventListener("click", (e) => { + if (!acceptingAnswers) return; + acceptingAnswers = false; + const selectedChoice = e.target; + const selectedAnswer = selectedChoice.dataset["number"]; //this returns a string + var correct_choice; + //function to get the correct_choice element + if (currentQuestion.answer == 1) { + correct_choice = document.getElementById("1"); + } else if (currentQuestion.answer == 2) { + correct_choice = document.getElementById("2"); + } else if (currentQuestion.answer == 3) { + correct_choice = document.getElementById("3"); + } else if (currentQuestion.answer == 4) { + correct_choice = document.getElementById("4"); + } + + //both these are numbers option numbers + // console.log(selectedChoice); //this will return the entire element of the selected option + // console.log(correct_choice); + // console.log(selectedAnswer); //this will return the option numbrt of the selected answer + + // const classToApply = 'incorrect'; + // if(selectedAnswer == currentQuestion.answer){ + // classToApply = 'correct'; + // } + //or can use a ternary operator + const classToApply = selectedAnswer == currentQuestion.answer ? "correct" : "incorrect"; + + if (classToApply === "correct") { + incrementScore(CORRECT_BONUS); + } + + //take the parent element of the sleected choice to whome the class will be applied + //now i want some delay between adding and removing classes + selectedChoice.parentElement.classList.add(classToApply); + correct_choice.parentElement.classList.add("correct"); + setTimeout(() => { + { + selectedChoice.parentElement.classList.remove(classToApply); + correct_choice.parentElement.classList.remove("correct"); + } + getNewQuestion(); + }, 1500); + // console.log(selectedAnswer); + }); +}); + +incrementScore = (num) => { + score += num; + scoreText.innerText = score; +}; diff --git a/Games/QuizzApp/README.md b/Games/QuizzApp/README.md index cb9124ff78..b98d56d07b 100644 --- a/Games/QuizzApp/README.md +++ b/Games/QuizzApp/README.md @@ -1,35 +1,35 @@ -# **QuizzApp** - -## **Description ๐Ÿ“ƒ** -QuizzApp is an engaging game that combines HTML, CSS, and JavaScript to create an interactive quiz experience. It offers a platform for players to test their knowledge and challenge themselves with a variety of questions. One of its standout features is the integration of the Open Trivia API, which allows the app to fetch questions dynamically, ensuring a diverse and constantly evolving quiz. - -## **functionalities ๐ŸŽฎ** -- Quiz Gameplay: QuizzApp allows players to engage in a single-player game experience by answering a series of questions. Players can test their knowledge and challenge themselves by selecting the correct answer from the given choices. - -- Answer Validation: After selecting an answer, QuizzApp provides immediate feedback by highlighting the correct option in green. This helps players know if their chosen answer was correct or incorrect, allowing them to learn and improve their knowledge. - -- Score Tracking: QuizzApp keeps track of players' scores throughout the quiz. The current score is displayed on the top of the interface, allowing players to monitor their progress and strive for a higher score. - -- High Scores: QuizzApp enables players to save their scores along with their names. The app maintains a list of top scores, which can be viewed on the High Scores page. -
- -## **How to play? ๐Ÿ•น๏ธ** -- Players can test their knowledge by answering the questions asked in the Quizz -- Choose your answer from the four choices and know if it's correct -- The correct option will be highlighted in green after the selection -- See your score on the top -- Players can save their score along with the name -- Top Scores can be seen on the High Scores page -
- -## Deployed Website -https://sehaj-kahlon.github.io/Quizz-App/ - - -## **Screenshots ๐Ÿ“ธ** -![quizzApp1](https://github.com/Sehaj-kahlon/GameZone-1/assets/114355575/47cbb385-ba56-473a-869f-e7c6e4d4780e) -
- -## **Working video ๐Ÿ“น** -https://github.com/Sehaj-kahlon/Quizz-App/assets/114355575/5258168c-9238-4c85-990d-4492b15af902 - +# **QuizzApp** + +## **Description ๐Ÿ“ƒ** +QuizzApp is an engaging game that combines HTML, CSS, and JavaScript to create an interactive quiz experience. It offers a platform for players to test their knowledge and challenge themselves with a variety of questions. One of its standout features is the integration of the Open Trivia API, which allows the app to fetch questions dynamically, ensuring a diverse and constantly evolving quiz. + +## **functionalities ๐ŸŽฎ** +- Quiz Gameplay: QuizzApp allows players to engage in a single-player game experience by answering a series of questions. Players can test their knowledge and challenge themselves by selecting the correct answer from the given choices. + +- Answer Validation: After selecting an answer, QuizzApp provides immediate feedback by highlighting the correct option in green. This helps players know if their chosen answer was correct or incorrect, allowing them to learn and improve their knowledge. + +- Score Tracking: QuizzApp keeps track of players' scores throughout the quiz. The current score is displayed on the top of the interface, allowing players to monitor their progress and strive for a higher score. + +- High Scores: QuizzApp enables players to save their scores along with their names. The app maintains a list of top scores, which can be viewed on the High Scores page. +
+ +## **How to play? ๐Ÿ•น๏ธ** +- Players can test their knowledge by answering the questions asked in the Quizz +- Choose your answer from the four choices and know if it's correct +- The correct option will be highlighted in green after the selection +- See your score on the top +- Players can save their score along with the name +- Top Scores can be seen on the High Scores page +
+ +## Deployed Website +https://sehaj-kahlon.github.io/Quizz-App/ + + +## **Screenshots ๐Ÿ“ธ** +![quizzApp1](https://github.com/Sehaj-kahlon/GameZone-1/assets/114355575/47cbb385-ba56-473a-869f-e7c6e4d4780e) +
+ +## **Working video ๐Ÿ“น** +https://github.com/Sehaj-kahlon/Quizz-App/assets/114355575/5258168c-9238-4c85-990d-4492b15af902 + diff --git a/Games/QuizzApp/end page/end.html b/Games/QuizzApp/end page/end.html index bcee4978f6..daab225645 100644 --- a/Games/QuizzApp/end page/end.html +++ b/Games/QuizzApp/end page/end.html @@ -1,36 +1,36 @@ - - - - - - - - Congrats! - - - - - - - - - - - - - -
-
-

-
- - -
- Play Again - Go Home -
-
- - + + + + + + + + Congrats! + + + + + + + + + + + + + +
+
+

+
+ + +
+ Play Again + Go Home +
+
+ + \ No newline at end of file diff --git a/Games/QuizzApp/end page/end.js b/Games/QuizzApp/end page/end.js index d6e1b077fa..8a6b351076 100644 --- a/Games/QuizzApp/end page/end.js +++ b/Games/QuizzApp/end page/end.js @@ -1,31 +1,31 @@ -const username = document.getElementById("username"); -const saveScoreBtn = document.getElementById("saveScoreBtn"); -const finalScore = document.getElementById("finalScore"); -const mostRecentScore = localStorage.getItem("mostRecentScore"); - -const highScore = JSON.parse(localStorage.getItem("highScore")) || []; -const MAX_HIGH_SCORES = 5; - -finalScore.innerText = mostRecentScore; - -username.addEventListener("keyup", () => { - // console.log(username.value); - saveScoreBtn.disabled = !username.value; -}); - -saveHighScore = (e) => { - e.preventDefault(); - //storing score and names of the players - const Score = { - score: mostRecentScore, - name: username.value, - }; - highScore.push(Score); - //sorting the scores - highScore.sort((a, b) => b.score - a.score); - //keep upto 5 max scores - highScore.splice(MAX_HIGH_SCORES); - localStorage.setItem("highScores", JSON.stringify(highScore)); - alert("High Score Saved"); - // console.log(highScore); -}; +const username = document.getElementById("username"); +const saveScoreBtn = document.getElementById("saveScoreBtn"); +const finalScore = document.getElementById("finalScore"); +const mostRecentScore = localStorage.getItem("mostRecentScore"); + +const highScore = JSON.parse(localStorage.getItem("highScore")) || []; +const MAX_HIGH_SCORES = 5; + +finalScore.innerText = mostRecentScore; + +username.addEventListener("keyup", () => { + // console.log(username.value); + saveScoreBtn.disabled = !username.value; +}); + +saveHighScore = (e) => { + e.preventDefault(); + //storing score and names of the players + const Score = { + score: mostRecentScore, + name: username.value, + }; + highScore.push(Score); + //sorting the scores + highScore.sort((a, b) => b.score - a.score); + //keep upto 5 max scores + highScore.splice(MAX_HIGH_SCORES); + localStorage.setItem("highScores", JSON.stringify(highScore)); + alert("High Score Saved"); + // console.log(highScore); +}; diff --git a/Games/QuizzApp/highScores/highScores.css b/Games/QuizzApp/highScores/highScores.css index 5cabfbca48..3eacdab2e2 100644 --- a/Games/QuizzApp/highScores/highScores.css +++ b/Games/QuizzApp/highScores/highScores.css @@ -1,14 +1,14 @@ -#highScoresList { - list-style: none; - padding-left: 0; - margin-bottom: 4rem; -} - -.high-score { - font-size: 2.8rem; - margin-bottom: 0.95rem; - margin-bottom: 0.5rem; -} -.high-score:hover { - transform: scale(1.025); -} +#highScoresList { + list-style: none; + padding-left: 0; + margin-bottom: 4rem; +} + +.high-score { + font-size: 2.8rem; + margin-bottom: 0.95rem; + margin-bottom: 0.5rem; +} +.high-score:hover { + transform: scale(1.025); +} diff --git a/Games/QuizzApp/highScores/highScores.html b/Games/QuizzApp/highScores/highScores.html index 9e07bec687..11f5098ebe 100644 --- a/Games/QuizzApp/highScores/highScores.html +++ b/Games/QuizzApp/highScores/highScores.html @@ -1,31 +1,31 @@ - - - - - - - - High Scores - - - - - - - - - - - - - -
-
-

High Scores

-
    - Go Home -
    -
    - - + + + + + + + + High Scores + + + + + + + + + + + + + +
    +
    +

    High Scores

    +
      + Go Home +
      +
      + + \ No newline at end of file diff --git a/Games/QuizzApp/highScores/highScores.js b/Games/QuizzApp/highScores/highScores.js index c011934321..6b5fcc0df0 100644 --- a/Games/QuizzApp/highScores/highScores.js +++ b/Games/QuizzApp/highScores/highScores.js @@ -1,9 +1,9 @@ -const highScoresList = document.getElementById("highScoresList"); -const highScores = JSON.parse(localStorage.getItem("highScores")) || []; -highScoresList.innerHTML = highScores - .map((score) => { - //list of the top scores and names - //writing html inside JS - return `
    • ${score.name} - ${score.score}
    • `; - }) - .join(""); +const highScoresList = document.getElementById("highScoresList"); +const highScores = JSON.parse(localStorage.getItem("highScores")) || []; +highScoresList.innerHTML = highScores + .map((score) => { + //list of the top scores and names + //writing html inside JS + return `
    • ${score.name} - ${score.score}
    • `; + }) + .join(""); diff --git a/Games/QuizzApp/index.css b/Games/QuizzApp/index.css index 3dff34fb59..8fdf127efa 100644 --- a/Games/QuizzApp/index.css +++ b/Games/QuizzApp/index.css @@ -1,115 +1,115 @@ -:root { - background-color: #ecf5ff; - font-size: 62.5%; -} -* { - box-sizing: border-box; - font-family: Arial, Helvetica, sans-serif; - margin: 0; - padding: 0; - color: #333; -} - -h1, -h2, -h3, -h4 { - margin-bottom: 1rem; -} -h1 { - font-size: 5.4rem; - color: #56a5eb; - margin-bottom: 5rem; -} -h1 > span { - font-size: 2.4 rem; - font-weight: 500; -} -h2 { - font-size: 4.2rem; - margin-bottom: 4rem; - font-weight: 700; -} -h3 { - font-size: 2.8 rem; - font-weight: 500; -} -/* utilities */ -.container { - width: 100vw; - height: 100vh; - display: flex; - justify-content: center; - align-items: center; - max-width: 80 rem; - margin: 0 auto; - padding: 2rem; -} -/* .container > * { - width: 100%; -} */ -.flex-column { - display: flex; - flex-direction: column; - /* vertical */ -} -.flex-center { - justify-content: center; - align-items: center; -} -.justify-content { - justify-content: center; -} -.text-center { - text-align: center; -} -.hidden { - display: none; -} -/* Buttons */ -.btn { - font-size: 1.8rem; - padding: 1rem 0; - width: 20rem; - text-align: center; - border: 0.1rem solid #56a5eb; - margin-top: 1rem; - text-decoration: none; - /* text decoration in set to none because by default the anchor tags are under lined but we do not need that */ - color: #56a5eb; - background-color: white; - border-radius: 2rem; -} - -.btn:hover { - cursor: pointer; - box-shadow: 0 0.4rem 1.4rem 0 rgba(86, 185, 235, 0.5); - transform: translate(-0.1rem); - transition: transform 150ms; -} - -.btn[disabled]:hover { - cursor: not-allowed; - box-shadow: none; - transform: none; -} - -form{ - width: 100%; - display: flex; - flex-direction: column; - align-items: center; -} - -input{ - margin-bottom: 1rem; - width: 20rem; - padding: 1.5rem; - font-size: 1.8rem; - border: none; - border-radius: 1rem; - box-shadow: 0 0.1rem 1.4rem 0 rgba(86, 185, 235, 0.5); -} -input::placeholder{ - color: #aaa; +:root { + background-color: #ecf5ff; + font-size: 62.5%; +} +* { + box-sizing: border-box; + font-family: Arial, Helvetica, sans-serif; + margin: 0; + padding: 0; + color: #333; +} + +h1, +h2, +h3, +h4 { + margin-bottom: 1rem; +} +h1 { + font-size: 5.4rem; + color: #56a5eb; + margin-bottom: 5rem; +} +h1 > span { + font-size: 2.4 rem; + font-weight: 500; +} +h2 { + font-size: 4.2rem; + margin-bottom: 4rem; + font-weight: 700; +} +h3 { + font-size: 2.8 rem; + font-weight: 500; +} +/* utilities */ +.container { + width: 100vw; + height: 100vh; + display: flex; + justify-content: center; + align-items: center; + max-width: 80 rem; + margin: 0 auto; + padding: 2rem; +} +/* .container > * { + width: 100%; +} */ +.flex-column { + display: flex; + flex-direction: column; + /* vertical */ +} +.flex-center { + justify-content: center; + align-items: center; +} +.justify-content { + justify-content: center; +} +.text-center { + text-align: center; +} +.hidden { + display: none; +} +/* Buttons */ +.btn { + font-size: 1.8rem; + padding: 1rem 0; + width: 20rem; + text-align: center; + border: 0.1rem solid #56a5eb; + margin-top: 1rem; + text-decoration: none; + /* text decoration in set to none because by default the anchor tags are under lined but we do not need that */ + color: #56a5eb; + background-color: white; + border-radius: 2rem; +} + +.btn:hover { + cursor: pointer; + box-shadow: 0 0.4rem 1.4rem 0 rgba(86, 185, 235, 0.5); + transform: translate(-0.1rem); + transition: transform 150ms; +} + +.btn[disabled]:hover { + cursor: not-allowed; + box-shadow: none; + transform: none; +} + +form{ + width: 100%; + display: flex; + flex-direction: column; + align-items: center; +} + +input{ + margin-bottom: 1rem; + width: 20rem; + padding: 1.5rem; + font-size: 1.8rem; + border: none; + border-radius: 1rem; + box-shadow: 0 0.1rem 1.4rem 0 rgba(86, 185, 235, 0.5); +} +input::placeholder{ + color: #aaa; } \ No newline at end of file diff --git a/Games/QuizzApp/index.html b/Games/QuizzApp/index.html index a600c0a15d..1d91faea41 100644 --- a/Games/QuizzApp/index.html +++ b/Games/QuizzApp/index.html @@ -1,29 +1,29 @@ - - - - - - - - Quizz App - - - - - - - - - - - -
      -
      -

      Quick Quizz

      - Play - High Scores -
      -
      - - + + + + + + + + Quizz App + + + + + + + + + + + +
      +
      +

      Quick Quizz

      + Play + High Scores +
      +
      + + \ No newline at end of file diff --git a/Games/QuizzApp/questions.json b/Games/QuizzApp/questions.json index d4df089739..e6cd9cd3ab 100644 --- a/Games/QuizzApp/questions.json +++ b/Games/QuizzApp/questions.json @@ -1,42 +1,42 @@ -[ - { - "question": "Inside which HTML element dp we put the JavaScript", - "choice1": " - - - - - - -
      -
      -
      - Game Over -
      -
      -
      distance
      -
      000
      -
      - - - -
      Click to jump โ€” Grab the carrots / avoid the hedgehogs
      -
      - - - -
      - - + + + Rabbit Rush + + + + + + + + + +
      +
      +
      + Game Over +
      +
      +
      distance
      +
      000
      +
      + + + +
      Click to jump โ€” Grab the carrots / avoid the hedgehogs
      +
      + + + +
      + + \ No newline at end of file diff --git a/Games/Rabbit_Rush/script.js b/Games/Rabbit_Rush/script.js index f2000d9607..9bf86e83f0 100644 --- a/Games/Rabbit_Rush/script.js +++ b/Games/Rabbit_Rush/script.js @@ -1,1420 +1,1420 @@ -//THREEJS RELATED VARIABLES - -var scene, - camera, fieldOfView, aspectRatio, nearPlane, farPlane, - gobalLight, shadowLight, backLight, - renderer, - container, - controls, - clock; -var delta = 0; -var floorRadius = 200; -var speed = 6; -var distance = 0; -var level = 1; -var levelInterval; -var levelUpdateFreq = 3000; -var initSpeed = 5; -var maxSpeed = 48; -var monsterPos = .65; -var monsterPosTarget = .65; -var floorRotation = 0; -var collisionObstacle = 10; -var collisionBonus = 20; -var gameStatus = "play"; -var cameraPosGame = 160; -var cameraPosGameOver = 260; -var monsterAcceleration = 0.004; -var malusClearColor = 0xb44b39; -var malusClearAlpha = 0; -var audio = new Audio('https://s3-us-west-2.amazonaws.com/s.cdpn.io/264161/Antonio-Vivaldi-Summer_01.mp3'); -var fieldGameOver, fieldDistance; - -//SCREEN & MOUSE VARIABLES - -var HEIGHT, WIDTH, windowHalfX, windowHalfY, - mousePos = { - x: 0, - y: 0 - }; - -//3D OBJECTS VARIABLES - -var hero; - - -// Materials -var blackMat = new THREE.MeshPhongMaterial({ - color: 0x100707, - shading:THREE.FlatShading, - }); - -var brownMat = new THREE.MeshPhongMaterial({ - color: 0xb44b39, - shininess:0, - shading:THREE.FlatShading, - }); - -var greenMat = new THREE.MeshPhongMaterial({ - color: 0x7abf8e, - shininess:0, - shading:THREE.FlatShading, - }); - - var pinkMat = new THREE.MeshPhongMaterial({ - color: 0xdc5f45,//0xb43b29,//0xff5b49, - shininess:0, - shading:THREE.FlatShading, - }); - - var lightBrownMat = new THREE.MeshPhongMaterial({ - color: 0xe07a57, - shading:THREE.FlatShading, - }); - - var whiteMat = new THREE.MeshPhongMaterial({ - color: 0xa49789, - shading:THREE.FlatShading, - }); - var skinMat = new THREE.MeshPhongMaterial({ - color: 0xff9ea5, - shading:THREE.FlatShading - }); - - -// OTHER VARIABLES - -var PI = Math.PI; - -//INIT THREE JS, SCREEN AND MOUSE EVENTS - -function initScreenAnd3D() { - - HEIGHT = window.innerHeight; - WIDTH = window.innerWidth; - windowHalfX = WIDTH / 2; - windowHalfY = HEIGHT / 2; - - scene = new THREE.Scene(); - - scene.fog = new THREE.Fog(0xd6eae6, 160,350); - - aspectRatio = WIDTH / HEIGHT; - fieldOfView = 50; - nearPlane = 1; - farPlane = 2000; - camera = new THREE.PerspectiveCamera( - fieldOfView, - aspectRatio, - nearPlane, - farPlane - ); - camera.position.x = 0; - camera.position.z = cameraPosGame; - camera.position.y = 30; - camera.lookAt(new THREE.Vector3(0, 30, 0)); - - renderer = new THREE.WebGLRenderer({ - alpha: true, - antialias: true - }); - renderer.setPixelRatio(window.devicePixelRatio); - renderer.setClearColor( malusClearColor, malusClearAlpha); - - renderer.setSize(WIDTH, HEIGHT); - renderer.shadowMap.enabled = true; - - container = document.getElementById('world'); - container.appendChild(renderer.domElement); - - window.addEventListener('resize', handleWindowResize, false); - document.addEventListener('mousedown', handleMouseDown, false); - document.addEventListener("touchend", handleMouseDown, false); - - /* - controls = new THREE.OrbitControls(camera, renderer.domElement); - //controls.minPolarAngle = -Math.PI / 2; - //controls.maxPolarAngle = Math.PI / 2; - //controls.noZoom = true; - controls.noPan = true; - //*/ - - clock = new THREE.Clock(); - -} - -function handleWindowResize() { - HEIGHT = window.innerHeight; - WIDTH = window.innerWidth; - windowHalfX = WIDTH / 2; - windowHalfY = HEIGHT / 2; - renderer.setSize(WIDTH, HEIGHT); - camera.aspect = WIDTH / HEIGHT; - camera.updateProjectionMatrix(); -} - - -function handleMouseDown(event){ - if (gameStatus == "play") hero.jump(); - - -} - -function createLights() { - globalLight = new THREE.AmbientLight(0xffffff, .9); - - shadowLight = new THREE.DirectionalLight(0xffffff, 1); - shadowLight.position.set(-30, 40, 20); - shadowLight.castShadow = true; - shadowLight.shadow.camera.left = -400; - shadowLight.shadow.camera.right = 400; - shadowLight.shadow.camera.top = 400; - shadowLight.shadow.camera.bottom = -400; - shadowLight.shadow.camera.near = 1; - shadowLight.shadow.camera.far = 2000; - shadowLight.shadow.mapSize.width = shadowLight.shadow.mapSize.height = 2048; - - scene.add(globalLight); - scene.add(shadowLight); - -} - -function createFloor() { - - floorShadow = new THREE.Mesh(new THREE.SphereGeometry(floorRadius, 50, 50), new THREE.MeshPhongMaterial({ - color: 0x7abf8e, - specular:0x000000, - shininess:1, - transparent:true, - opacity:.5 - })); - //floorShadow.rotation.x = -Math.PI / 2; - floorShadow.receiveShadow = true; - - floorGrass = new THREE.Mesh(new THREE.SphereGeometry(floorRadius-.5, 50, 50), new THREE.MeshBasicMaterial({ - color: 0x7abf8e - })); - //floor.rotation.x = -Math.PI / 2; - floorGrass.receiveShadow = false; - - floor = new THREE.Group(); - floor.position.y = -floorRadius; - - floor.add(floorShadow); - floor.add(floorGrass); - scene.add(floor); - -} - -Hero = function() { - this.status = "running"; - this.runningCycle = 0; - this.mesh = new THREE.Group(); - this.body = new THREE.Group(); - this.mesh.add(this.body); - - var torsoGeom = new THREE.CubeGeometry(7, 7, 10, 1); - - this.torso = new THREE.Mesh(torsoGeom, brownMat); - this.torso.position.z = 0 - this.torso.position.y = 7; - this.torso.castShadow = true; - this.body.add(this.torso); - - var pantsGeom = new THREE.CubeGeometry(9, 9, 5, 1); - this.pants = new THREE.Mesh(pantsGeom, whiteMat); - this.pants.position.z = -3; - this.pants.position.y = 0; - this.pants.castShadow = true; - this.torso.add(this.pants); - - var tailGeom = new THREE.CubeGeometry(3, 3, 3, 1); - tailGeom.applyMatrix(new THREE.Matrix4().makeTranslation(0,0,-2)); - this.tail = new THREE.Mesh(tailGeom, lightBrownMat); - this.tail.position.z = -4; - this.tail.position.y = 5; - this.tail.castShadow = true; - this.torso.add(this.tail); - - this.torso.rotation.x = -Math.PI/8; - - var headGeom = new THREE.CubeGeometry(10, 10, 13, 1); - - headGeom.applyMatrix(new THREE.Matrix4().makeTranslation(0,0,7.5)); - this.head = new THREE.Mesh(headGeom, brownMat); - this.head.position.z = 2; - this.head.position.y = 11; - this.head.castShadow = true; - this.body.add(this.head); - - var cheekGeom = new THREE.CubeGeometry(1, 4, 4, 1); - this.cheekR = new THREE.Mesh(cheekGeom, pinkMat); - this.cheekR.position.x = -5; - this.cheekR.position.z = 7; - this.cheekR.position.y = -2.5; - this.cheekR.castShadow = true; - this.head.add(this.cheekR); - - this.cheekL = this.cheekR.clone(); - this.cheekL.position.x = - this.cheekR.position.x; - this.head.add(this.cheekL); - - - var noseGeom = new THREE.CubeGeometry(6, 6, 3, 1); - this.nose = new THREE.Mesh(noseGeom, lightBrownMat); - this.nose.position.z = 13.5; - this.nose.position.y = 2.6; - this.nose.castShadow = true; - this.head.add(this.nose); - - var mouthGeom = new THREE.CubeGeometry(4, 2, 4, 1); - mouthGeom.applyMatrix(new THREE.Matrix4().makeTranslation(0,0,3)); - mouthGeom.applyMatrix(new THREE.Matrix4().makeRotationX(Math.PI/12)); - this.mouth = new THREE.Mesh(mouthGeom, brownMat); - this.mouth.position.z = 8; - this.mouth.position.y = -4; - this.mouth.castShadow = true; - this.head.add(this.mouth); - - - var pawFGeom = new THREE.CubeGeometry(3,3,3, 1); - this.pawFR = new THREE.Mesh(pawFGeom, lightBrownMat); - this.pawFR.position.x = -2; - this.pawFR.position.z = 6; - this.pawFR.position.y = 1.5; - this.pawFR.castShadow = true; - this.body.add(this.pawFR); - - this.pawFL = this.pawFR.clone(); - this.pawFL.position.x = - this.pawFR.position.x; - this.pawFL.castShadow = true; - this.body.add(this.pawFL); - - var pawBGeom = new THREE.CubeGeometry(3,3,6, 1); - this.pawBL = new THREE.Mesh(pawBGeom, lightBrownMat); - this.pawBL.position.y = 1.5; - this.pawBL.position.z = 0; - this.pawBL.position.x = 5; - this.pawBL.castShadow = true; - this.body.add(this.pawBL); - - this.pawBR = this.pawBL.clone(); - this.pawBR.position.x = - this.pawBL.position.x; - this.pawBR.castShadow = true; - this.body.add(this.pawBR); - - var earGeom = new THREE.CubeGeometry(7, 18, 2, 1); - earGeom.vertices[6].x+=2; - earGeom.vertices[6].z+=.5; - - earGeom.vertices[7].x+=2; - earGeom.vertices[7].z-=.5; - - earGeom.vertices[2].x-=2; - earGeom.vertices[2].z-=.5; - - earGeom.vertices[3].x-=2; - earGeom.vertices[3].z+=.5; - earGeom.applyMatrix(new THREE.Matrix4().makeTranslation(0,9,0)); - - this.earL = new THREE.Mesh(earGeom, brownMat); - this.earL.position.x = 2; - this.earL.position.z = 2.5; - this.earL.position.y = 5; - this.earL.rotation.z = -Math.PI/12; - this.earL.castShadow = true; - this.head.add(this.earL); - - this.earR = this.earL.clone(); - this.earR.position.x = -this.earL.position.x; - this.earR.rotation.z = -this.earL.rotation.z; - this.earR.castShadow = true; - this.head.add(this.earR); - - var eyeGeom = new THREE.CubeGeometry(2,4,4); - - this.eyeL = new THREE.Mesh(eyeGeom, whiteMat); - this.eyeL.position.x = 5; - this.eyeL.position.z = 5.5; - this.eyeL.position.y = 2.9; - this.eyeL.castShadow = true; - this.head.add(this.eyeL); - - var irisGeom = new THREE.CubeGeometry(.6,2,2); - - this.iris = new THREE.Mesh(irisGeom, blackMat); - this.iris.position.x = 1.2; - this.iris.position.y = 1; - this.iris.position.z = 1; - this.eyeL.add(this.iris); - - this.eyeR = this.eyeL.clone(); - this.eyeR.children[0].position.x = -this.iris.position.x; - - - this.eyeR.position.x = -this.eyeL.position.x; - this.head.add(this.eyeR); - - this.body.traverse(function(object) { - if (object instanceof THREE.Mesh) { - object.castShadow = true; - object.receiveShadow = true; - } - }); -} - -BonusParticles = function(){ - this.mesh = new THREE.Group(); - var bigParticleGeom = new THREE.CubeGeometry(10,10,10,1); - var smallParticleGeom = new THREE.CubeGeometry(5,5,5,1); - this.parts = []; - for (var i=0; i<10; i++){ - var partPink = new THREE.Mesh(bigParticleGeom, pinkMat); - var partGreen = new THREE.Mesh(smallParticleGeom, greenMat); - partGreen.scale.set(.5,.5,.5); - this.parts.push(partPink); - this.parts.push(partGreen); - this.mesh.add(partPink); - this.mesh.add(partGreen); - } -} - -BonusParticles.prototype.explose = function(){ - var _this = this; - var explosionSpeed = .5; - for(var i=0; i.2) TweenMax.to([this.eyeR.scale, this.eyeL.scale], sp/8, {y:0, ease:Power1.easeInOut, yoyo:true, repeat:1}); - -} - -Hero.prototype.hang = function(){ - var _this = this; - var sp = 1; - var ease = Power4.easeOut; - - TweenMax.killTweensOf(this.eyeL.scale); - TweenMax.killTweensOf(this.eyeR.scale); - - this.body.rotation.x = 0; - this.torso.rotation.x = 0; - this.body.position.y = 0; - this.torso.position.y = 7; - - TweenMax.to(this.mesh.rotation, sp, {y:0, ease:ease}); - TweenMax.to(this.mesh.position, sp, {y:-7, z:6, ease:ease}); - TweenMax.to(this.head.rotation, sp, {x:Math.PI/6, ease:ease, onComplete:function(){_this.nod();}}); - - TweenMax.to(this.earL.rotation, sp, {x:Math.PI/3, ease:ease}); - TweenMax.to(this.earR.rotation, sp, {x:Math.PI/3, ease:ease}); - - TweenMax.to(this.pawFL.position, sp, {y:-1, z:3, ease:ease}); - TweenMax.to(this.pawFR.position, sp, {y:-1, z:3, ease:ease}); - TweenMax.to(this.pawBL.position, sp, {y:-2, z:-3, ease:ease}); - TweenMax.to(this.pawBR.position, sp, {y:-2, z:-3, ease:ease}); - - TweenMax.to(this.eyeL.scale, sp, {y:1, ease:ease}); - TweenMax.to(this.eyeR.scale, sp, {y:1, ease:ease}); -} - -Monster.prototype.nod = function(){ - var _this = this; - var sp = 1 + Math.random()*2; - - // HEAD - var tHeadRotY = -Math.PI/3 + Math.random()*.5; - var tHeadRotX = Math.PI/3 - .2 + Math.random()*.4; - TweenMax.to(this.head.rotation, sp, {x:tHeadRotX, y:tHeadRotY, ease:Power4.easeInOut, onComplete:function(){_this.nod()}}); - - // TAIL - - var tTailRotY = -Math.PI/4; - TweenMax.to(this.tail.rotation, sp/8, {y:tTailRotY, ease:Power1.easeInOut, yoyo:true, repeat:8}); - - // EYES - - TweenMax.to([this.eyeR.scale, this.eyeL.scale], sp/20, {y:0, ease:Power1.easeInOut, yoyo:true, repeat:1}); -} - -Monster.prototype.sit = function(){ - var sp = 1.2; - var ease = Power4.easeOut; - var _this = this; - TweenMax.to(this.torso.rotation, sp, {x:-1.3, ease:ease}); - TweenMax.to(this.torso.position, sp, {y:-5, ease:ease, onComplete:function(){ - _this.nod(); - gameStatus = "readyToReplay"; - }}); - - TweenMax.to(this.head.rotation, sp, {x:Math.PI/3, y :-Math.PI/3, ease:ease}); - TweenMax.to(this.tail.rotation, sp, {x:2, y:Math.PI/4, ease:ease}); - TweenMax.to(this.pawBL.rotation, sp, {x:-.1, ease:ease}); - TweenMax.to(this.pawBR.rotation, sp, {x:-.1, ease:ease}); - TweenMax.to(this.pawFL.rotation, sp, {x:1, ease:ease}); - TweenMax.to(this.pawFR.rotation, sp, {x:1, ease:ease}); - TweenMax.to(this.mouth.rotation, sp, {x:.3, ease:ease}); - TweenMax.to(this.eyeL.scale, sp, {y:1, ease:ease}); - TweenMax.to(this.eyeR.scale, sp, {y:1, ease:ease}); - - //TweenMax.to(this.body.rotation, sp, {y:Math.PI/4}); - -} - - -Carrot = function() { - this.angle = 0; - this.mesh = new THREE.Group(); - - var bodyGeom = new THREE.CylinderGeometry(5,3, 10, 4,1); - bodyGeom.vertices[8].y+=2; - bodyGeom.vertices[9].y-=3; - - this.body = new THREE.Mesh(bodyGeom, pinkMat); - - var leafGeom = new THREE.CubeGeometry(5,10,1,1); - leafGeom.applyMatrix(new THREE.Matrix4().makeTranslation(0,5,0)); - leafGeom.vertices[2].x-=1; - leafGeom.vertices[3].x-=1; - leafGeom.vertices[6].x+=1; - leafGeom.vertices[7].x+=1; - - this.leaf1 = new THREE.Mesh(leafGeom,greenMat); - this.leaf1.position.y = 7; - this.leaf1.rotation.z = .3; - this.leaf1.rotation.x = .2; - - this.leaf2 = this.leaf1.clone(); - this.leaf2.scale.set(1,1.3,1); - this.leaf2.position.y = 7; - this.leaf2.rotation.z = -.3; - this.leaf2.rotation.x = -.2; - - this.mesh.add(this.body); - this.mesh.add(this.leaf1); - this.mesh.add(this.leaf2); - - this.body.traverse(function(object) { - if (object instanceof THREE.Mesh) { - object.castShadow = true; - object.receiveShadow = true; - } - }); -} - -Hedgehog = function() { - this.angle = 0; - this.status="ready"; - this.mesh = new THREE.Group(); - var bodyGeom = new THREE.CubeGeometry(6,6,6,1); - this.body = new THREE.Mesh(bodyGeom, blackMat); - - var headGeom = new THREE.CubeGeometry(5,5,7,1); - this.head= new THREE.Mesh(headGeom, lightBrownMat); - this.head.position.z = 6; - this.head.position.y = -.5; - - var noseGeom = new THREE.CubeGeometry(1.5,1.5,1.5,1); - this.nose = new THREE.Mesh(noseGeom, blackMat); - this.nose.position.z = 4; - this.nose.position.y = 2; - - var eyeGeom = new THREE.CubeGeometry(1,3,3); - - this.eyeL = new THREE.Mesh(eyeGeom, whiteMat); - this.eyeL.position.x = 2.2; - this.eyeL.position.z = -.5; - this.eyeL.position.y = .8; - this.eyeL.castShadow = true; - this.head.add(this.eyeL); - - var irisGeom = new THREE.CubeGeometry(.5,1,1); - - this.iris = new THREE.Mesh(irisGeom, blackMat); - this.iris.position.x = .5; - this.iris.position.y = .8; - this.iris.position.z = .8; - this.eyeL.add(this.iris); - - this.eyeR = this.eyeL.clone(); - this.eyeR.children[0].position.x = -this.iris.position.x; - this.eyeR.position.x = -this.eyeL.position.x; - - var spikeGeom = new THREE.CubeGeometry(.5,2,.5,1); - spikeGeom.applyMatrix(new THREE.Matrix4().makeTranslation(0,1,0)); - - for (var i=0; i<9; i++){ - var row = (i%3); - var col = Math.floor(i/3); - var sb = new THREE.Mesh(spikeGeom, blackMat); - sb.rotation.x =-Math.PI/2 + (Math.PI/12*row) -.5 + Math.random(); - sb.position.z = -3; - sb.position.y = -2 + row*2; - sb.position.x = -2 + col*2; - this.body.add(sb); - var st = new THREE.Mesh(spikeGeom, blackMat); - st.position.y = 3; - st.position.x = -2 + row*2; - st.position.z = -2 + col*2; - st.rotation.z = Math.PI/6 - (Math.PI/6*row) -.5 + Math.random(); - this.body.add(st); - - var sr = new THREE.Mesh(spikeGeom, blackMat); - sr.position.x = 3; - sr.position.y = -2 + row*2; - sr.position.z = -2 + col*2; - sr.rotation.z = -Math.PI/2 + (Math.PI/12*row) -.5 + Math.random(); - this.body.add(sr); - - var sl = new THREE.Mesh(spikeGeom, blackMat); - sl.position.x = -3; - sl.position.y = -2 + row*2; - sl.position.z = -2 + col*2; - sl.rotation.z = Math.PI/2 - (Math.PI/12*row) -.5 + Math.random();; - this.body.add(sl); - } - - this.head.add(this.eyeR); - var earGeom = new THREE.CubeGeometry(2, 2, .5, 1); - this.earL = new THREE.Mesh(earGeom, lightBrownMat); - this.earL.position.x = 2.5; - this.earL.position.z = -2.5; - this.earL.position.y = 2.5; - this.earL.rotation.z = -Math.PI/12; - this.earL.castShadow = true; - this.head.add(this.earL); - - this.earR = this.earL.clone(); - this.earR.position.x = -this.earL.position.x; - this.earR.rotation.z = -this.earL.rotation.z; - this.earR.castShadow = true; - this.head.add(this.earR); - - var mouthGeom = new THREE.CubeGeometry( 1, 1,.5, 1); - this.mouth = new THREE.Mesh(mouthGeom, blackMat); - this.mouth.position.z = 3.5; - this.mouth.position.y = -1.5; - this.head.add(this.mouth); - - - this.mesh.add(this.body); - this.body.add(this.head); - this.head.add(this.nose); - - this.mesh.traverse(function(object) { - if (object instanceof THREE.Mesh) { - object.castShadow = true; - object.receiveShadow = true; - } - }); -} - -Hedgehog.prototype.nod = function(){ - var _this = this; - var speed = .1 + Math.random()*.5; - var angle = -Math.PI/4 + Math.random()*Math.PI/2; - TweenMax.to(this.head.rotation, speed, {y:angle, onComplete:function(){ - _this.nod(); - }}); -} - - -function createHero() { - hero = new Hero(); - hero.mesh.rotation.y = Math.PI/2; - scene.add(hero.mesh); - hero.nod(); -} - -function createMonster() { - - monster = new Monster(); - monster.mesh.position.z = 20; - //monster.mesh.scale.set(1.2,1.2,1.2); - scene.add(monster.mesh); - updateMonsterPosition(); - -} - -function updateMonsterPosition(){ - monster.run(); - monsterPosTarget -= delta*monsterAcceleration; - monsterPos += (monsterPosTarget-monsterPos) *delta; - if (monsterPos < .56){ - gameOver(); - } - - var angle = Math.PI*monsterPos; - monster.mesh.position.y = - floorRadius + Math.sin(angle)*(floorRadius + 12); - monster.mesh.position.x = Math.cos(angle)*(floorRadius+15); - monster.mesh.rotation.z = -Math.PI/2 + angle; -} - -function gameOver(){ - fieldGameOver.className = "show"; - gameStatus = "gameOver"; - monster.sit(); - hero.hang(); - monster.heroHolder.add(hero.mesh); - TweenMax.to(this, 1, {speed:0}); - TweenMax.to(camera.position, 3, {z:cameraPosGameOver, y: 60, x:-30}); - carrot.mesh.visible = false; - obstacle.mesh.visible = false; - clearInterval(levelInterval); -} -function replay() { - // Set the game status to "preparingToReplay" - gameStatus = "preparingToReplay"; - fieldGameOver.className = "hide"; - - // Kill all ongoing animations - TweenMax.killTweensOf(monster.pawFL.position); - TweenMax.killTweensOf(monster.pawFR.position); - TweenMax.killTweensOf(monster.pawBL.position); - TweenMax.killTweensOf(monster.pawBR.position); - - TweenMax.killTweensOf(monster.pawFL.rotation); - TweenMax.killTweensOf(monster.pawFR.rotation); - TweenMax.killTweensOf(monster.pawBL.rotation); - TweenMax.killTweensOf(monster.pawBR.rotation); - - TweenMax.killTweensOf(monster.tail.rotation); - TweenMax.killTweensOf(monster.head.rotation); - TweenMax.killTweensOf(monster.eyeL.scale); - TweenMax.killTweensOf(monster.eyeR.scale); - - // Reset monster's tail rotation - monster.tail.rotation.y = 0; - - // Move the camera to the game position - TweenMax.to(camera.position, 3, { z: cameraPosGame, x: 0, y: 30, ease: Power4.easeInOut }); - - // Reset monster's position and rotation - TweenMax.to(monster.torso.rotation, 2, { x: 0, ease: Power4.easeInOut }); - TweenMax.to(monster.torso.position, 2, { y: 0, ease: Power4.easeInOut }); - TweenMax.to(monster.pawFL.rotation, 2, { x: 0, ease: Power4.easeInOut }); - TweenMax.to(monster.pawFR.rotation, 2, { x: 0, ease: Power4.easeInOut }); - TweenMax.to(monster.mouth.rotation, 2, { x: 0.5, ease: Power4.easeInOut }); - TweenMax.to(monster.head.rotation, 2, { y: 0, x: -0.3, ease: Power4.easeInOut }); - - // Reset hero's position and rotation - TweenMax.to(hero.mesh.position, 2, { x: 20, ease: Power4.easeInOut }); - TweenMax.to(hero.head.rotation, 2, { x: 0, y: 0, ease: Power4.easeInOut }); - - // Reset monster's mouth rotation - TweenMax.to(monster.mouth.rotation, 2, { x: 0.2, ease: Power4.easeInOut }); - TweenMax.to(monster.mouth.rotation, 1, { x: 0.4, ease: Power4.easeIn, delay: 1, onComplete: function() { - // Reset the game - resetGame(); - - // Ensure the game over screen disappears - fieldGameOver.classList.remove("show"); - }}); -} - - -Fir = function() { - var height = 200; - var truncGeom = new THREE.CylinderGeometry(2,2,height, 6,1); - truncGeom.applyMatrix(new THREE.Matrix4().makeTranslation(0,height/2,0)); - this.mesh = new THREE.Mesh(truncGeom, greenMat); - this.mesh.castShadow = true; -} - -var firs = new THREE.Group(); - -function createFirs(){ - - var nTrees = 100; - for(var i=0; i< nTrees; i++){ - var phi = i*(Math.PI*2)/nTrees; - var theta = Math.PI/2; - //theta += .25 + Math.random()*.3; - theta += (Math.random()>.05)? .25 + Math.random()*.3 : - .35 - Math.random()*.1; - - var fir = new Tree(); - fir.mesh.position.x = Math.sin(theta)*Math.cos(phi)*floorRadius; - fir.mesh.position.y = Math.sin(theta)*Math.sin(phi)*(floorRadius-10); - fir.mesh.position.z = Math.cos(theta)*floorRadius; - - var vec = fir.mesh.position.clone(); - var axis = new THREE.Vector3(0,1,0); - fir.mesh.quaternion.setFromUnitVectors(axis, vec.clone().normalize()); - floor.add(fir.mesh); - } -} - -function createCarrot(){ - carrot = new Carrot(); - scene.add(carrot.mesh); -} - -function updateCarrotPosition(){ - carrot.mesh.rotation.y += delta * 6; - carrot.mesh.rotation.z = Math.PI/2 - (floorRotation+carrot.angle); - carrot.mesh.position.y = -floorRadius + Math.sin(floorRotation+carrot.angle) * (floorRadius+50); - carrot.mesh.position.x = Math.cos(floorRotation+carrot.angle) * (floorRadius+50); - -} - -function updateObstaclePosition(){ - if (obstacle.status=="flying")return; - - // TODO fix this, - if (floorRotation+obstacle.angle > 2.5 ){ - obstacle.angle = -floorRotation + Math.random()*.3; - obstacle.body.rotation.y = Math.random() * Math.PI*2; - } - - obstacle.mesh.rotation.z = floorRotation + obstacle.angle - Math.PI/2; - obstacle.mesh.position.y = -floorRadius + Math.sin(floorRotation+obstacle.angle) * (floorRadius+3); - obstacle.mesh.position.x = Math.cos(floorRotation+obstacle.angle) * (floorRadius+3); - -} - -function updateFloorRotation(){ - floorRotation += delta*.03 * speed; - floorRotation = floorRotation%(Math.PI*2); - floor.rotation.z = floorRotation; -} - -function createObstacle(){ - obstacle = new Hedgehog(); - obstacle.body.rotation.y = -Math.PI/2; - obstacle.mesh.scale.set(1.1,1.1,1.1); - obstacle.mesh.position.y = floorRadius+4; - obstacle.nod(); - scene.add(obstacle.mesh); -} - -function createBonusParticles(){ - bonusParticles = new BonusParticles(); - bonusParticles.mesh.visible = false; - scene.add(bonusParticles.mesh); - -} - - - -function checkCollision(){ - var db = hero.mesh.position.clone().sub(carrot.mesh.position.clone()); - var dm = hero.mesh.position.clone().sub(obstacle.mesh.position.clone()); - - if(db.length() < collisionBonus){ - getBonus(); - } - - if(dm.length() < collisionObstacle && obstacle.status != "flying"){ - getMalus(); - } -} - -function getBonus(){ - bonusParticles.mesh.position.copy(carrot.mesh.position); - bonusParticles.mesh.visible = true; - bonusParticles.explose(); - carrot.angle += Math.PI/2; - //speed*=.95; - monsterPosTarget += .025; - -} - -function getMalus(){ - obstacle.status="flying"; - var tx = (Math.random()>.5)? -20-Math.random()*10 : 20+Math.random()*5; - TweenMax.to(obstacle.mesh.position, 4, {x:tx, y:Math.random()*50, z:350, ease:Power4.easeOut}); - TweenMax.to(obstacle.mesh.rotation, 4, {x:Math.PI*3, z:Math.PI*3, y:Math.PI*6, ease:Power4.easeOut, onComplete:function(){ - obstacle.status = "ready"; - obstacle.body.rotation.y = Math.random() * Math.PI*2; - obstacle.angle = -floorRotation - Math.random()*.4; - - obstacle.angle = obstacle.angle%(Math.PI*2); - obstacle.mesh.rotation.x = 0; - obstacle.mesh.rotation.y = 0; - obstacle.mesh.rotation.z = 0; - obstacle.mesh.position.z = 0; - - }}); - // - monsterPosTarget -= .04; - TweenMax.from(this, .5, {malusClearAlpha:.5, onUpdate:function(){ - renderer.setClearColor(malusClearColor, malusClearAlpha ); - }}) -} - -function updateDistance(){ - distance += delta*speed; - var d = distance/2; - fieldDistance.innerHTML = Math.floor(d); -} - -function updateLevel(){ - if (speed >= maxSpeed) return; - level++; - speed += 2; -} - -function loop(){ - delta = clock.getDelta(); - if (gameStatus == "play"){ - updateFloorRotation(); - - if (hero.status == "running"){ - hero.run(); - } - updateDistance(); - updateMonsterPosition(); - updateCarrotPosition(); - updateObstaclePosition(); - checkCollision(); - } - - render(); - requestAnimationFrame(loop); -} - -function render(){ - renderer.render(scene, camera); -} - -window.addEventListener('load', init, false); - -function init(event){ - initScreenAnd3D(); - createLights(); - createFloor() - createHero(); - createMonster(); - createFirs(); - createCarrot(); - createBonusParticles(); - createObstacle(); - initUI(); - resetGame(); - loop(); - - //setInterval(hero.blink.bind(hero), 3000); -} - -function resetGame(){ - scene.add(hero.mesh); - hero.mesh.rotation.y = Math.PI/2; - hero.mesh.position.y = 0; - hero.mesh.position.z = 0; - hero.mesh.position.x = 0; - - monsterPos = .56; - monsterPosTarget = .65; - speed = initSpeed; - level = 0; - distance = 0; - carrot.mesh.visible = true; - obstacle.mesh.visible = true; - gameStatus = "play"; - hero.status = "running"; - hero.nod(); - audio.play(); - updateLevel(); - levelInterval = setInterval(updateLevel, levelUpdateFreq); -} - -function initUI(){ - fieldDistance = document.getElementById("distValue"); - fieldGameOver = document.getElementById("gameoverInstructions"); - -} - - - -//////////////////////////////////////////////// -// MODELS -//////////////////////////////////////////////// - -// TREE - -Tree = function(){ - this.mesh = new THREE.Object3D(); - this.trunc = new Trunc(); - this.mesh.add(this.trunc.mesh); -} - - -Trunc = function(){ - var truncHeight = 50 + Math.random()*150; - var topRadius = 1+Math.random()*5; - var bottomRadius = 5+Math.random()*5; - var mats = [blackMat, brownMat, pinkMat, whiteMat, greenMat, lightBrownMat, pinkMat]; - var matTrunc = blackMat;//mats[Math.floor(Math.random()*mats.length)]; - var nhSegments = 3;//Math.ceil(2 + Math.random()*6); - var nvSegments = 3;//Math.ceil(2 + Math.random()*6); - var geom = new THREE.CylinderGeometry(topRadius,bottomRadius,truncHeight, nhSegments, nvSegments); - geom.applyMatrix(new THREE.Matrix4().makeTranslation(0,truncHeight/2,0)); - - this.mesh = new THREE.Mesh(geom, matTrunc); - - for (var i=0; i.7){ - var size = Math.random()*3; - var fruitGeometry = new THREE.CubeGeometry(size,size,size,1); - var matFruit = mats[Math.floor(Math.random()*mats.length)]; - var fruit = new THREE.Mesh(fruitGeometry, matFruit); - fruit.position.x = v.x; - fruit.position.y = v.y+3; - fruit.position.z = v.z; - fruit.rotation.x = Math.random()*Math.PI; - fruit.rotation.y = Math.random()*Math.PI; - - this.mesh.add(fruit); - } - - // BRANCHES - - if (Math.random()>.5 && v.y > 10 && v.y < truncHeight - 10){ - var h = 3 + Math.random()*5; - var thickness = .2 + Math.random(); - - var branchGeometry = new THREE.CylinderGeometry(thickness/2, thickness, h, 3, 1); - branchGeometry.applyMatrix(new THREE.Matrix4().makeTranslation(0,h/2,0)); - var branch = new THREE.Mesh(branchGeometry, matTrunc); - branch.position.x = v.x; - branch.position.y = v.y; - branch.position.z = v.z; - - var vec = new THREE.Vector3(v.x, 2, v.z); - var axis = new THREE.Vector3(0,1,0); - branch.quaternion.setFromUnitVectors(axis, vec.clone().normalize()); - - - this.mesh.add(branch); - } - - } - - - this.mesh.castShadow = true; -} -// Your existing code... - -//////////////////////////////////////////////// -// BUTTONS -//////////////////////////////////////////////// - -// Get references to the buttons -var replayButton = document.getElementById("replayButton"); -var pauseButton = document.getElementById("pauseButton"); -var resumeButton = document.getElementById("resumeButton"); - -// Add event listeners -replayButton.addEventListener("click", replay); -pauseButton.addEventListener("click", pauseGame); -resumeButton.addEventListener("click", resumeGame); - -// Define variables to control game status -var isPaused = false; -var pausedDistance = 0; - -function pauseGame() { - if(isPaused==true)return; - isPaused = true; - // Store the current distance - pausedDistance = distance; - // Pause audio - audio.pause() - // Stop the game - gameStatus = "paused"; -} - -function resumeGame() { - if(isPaused==false)return; - isPaused = false; - // Resume the game - gameStatus = "play"; - // Play audio - audio.play() - // Update the distance to the paused distance - distance = pausedDistance; -} - - - +//THREEJS RELATED VARIABLES + +var scene, + camera, fieldOfView, aspectRatio, nearPlane, farPlane, + gobalLight, shadowLight, backLight, + renderer, + container, + controls, + clock; +var delta = 0; +var floorRadius = 200; +var speed = 6; +var distance = 0; +var level = 1; +var levelInterval; +var levelUpdateFreq = 3000; +var initSpeed = 5; +var maxSpeed = 48; +var monsterPos = .65; +var monsterPosTarget = .65; +var floorRotation = 0; +var collisionObstacle = 10; +var collisionBonus = 20; +var gameStatus = "play"; +var cameraPosGame = 160; +var cameraPosGameOver = 260; +var monsterAcceleration = 0.004; +var malusClearColor = 0xb44b39; +var malusClearAlpha = 0; +var audio = new Audio('https://s3-us-west-2.amazonaws.com/s.cdpn.io/264161/Antonio-Vivaldi-Summer_01.mp3'); +var fieldGameOver, fieldDistance; + +//SCREEN & MOUSE VARIABLES + +var HEIGHT, WIDTH, windowHalfX, windowHalfY, + mousePos = { + x: 0, + y: 0 + }; + +//3D OBJECTS VARIABLES + +var hero; + + +// Materials +var blackMat = new THREE.MeshPhongMaterial({ + color: 0x100707, + shading:THREE.FlatShading, + }); + +var brownMat = new THREE.MeshPhongMaterial({ + color: 0xb44b39, + shininess:0, + shading:THREE.FlatShading, + }); + +var greenMat = new THREE.MeshPhongMaterial({ + color: 0x7abf8e, + shininess:0, + shading:THREE.FlatShading, + }); + + var pinkMat = new THREE.MeshPhongMaterial({ + color: 0xdc5f45,//0xb43b29,//0xff5b49, + shininess:0, + shading:THREE.FlatShading, + }); + + var lightBrownMat = new THREE.MeshPhongMaterial({ + color: 0xe07a57, + shading:THREE.FlatShading, + }); + + var whiteMat = new THREE.MeshPhongMaterial({ + color: 0xa49789, + shading:THREE.FlatShading, + }); + var skinMat = new THREE.MeshPhongMaterial({ + color: 0xff9ea5, + shading:THREE.FlatShading + }); + + +// OTHER VARIABLES + +var PI = Math.PI; + +//INIT THREE JS, SCREEN AND MOUSE EVENTS + +function initScreenAnd3D() { + + HEIGHT = window.innerHeight; + WIDTH = window.innerWidth; + windowHalfX = WIDTH / 2; + windowHalfY = HEIGHT / 2; + + scene = new THREE.Scene(); + + scene.fog = new THREE.Fog(0xd6eae6, 160,350); + + aspectRatio = WIDTH / HEIGHT; + fieldOfView = 50; + nearPlane = 1; + farPlane = 2000; + camera = new THREE.PerspectiveCamera( + fieldOfView, + aspectRatio, + nearPlane, + farPlane + ); + camera.position.x = 0; + camera.position.z = cameraPosGame; + camera.position.y = 30; + camera.lookAt(new THREE.Vector3(0, 30, 0)); + + renderer = new THREE.WebGLRenderer({ + alpha: true, + antialias: true + }); + renderer.setPixelRatio(window.devicePixelRatio); + renderer.setClearColor( malusClearColor, malusClearAlpha); + + renderer.setSize(WIDTH, HEIGHT); + renderer.shadowMap.enabled = true; + + container = document.getElementById('world'); + container.appendChild(renderer.domElement); + + window.addEventListener('resize', handleWindowResize, false); + document.addEventListener('mousedown', handleMouseDown, false); + document.addEventListener("touchend", handleMouseDown, false); + + /* + controls = new THREE.OrbitControls(camera, renderer.domElement); + //controls.minPolarAngle = -Math.PI / 2; + //controls.maxPolarAngle = Math.PI / 2; + //controls.noZoom = true; + controls.noPan = true; + //*/ + + clock = new THREE.Clock(); + +} + +function handleWindowResize() { + HEIGHT = window.innerHeight; + WIDTH = window.innerWidth; + windowHalfX = WIDTH / 2; + windowHalfY = HEIGHT / 2; + renderer.setSize(WIDTH, HEIGHT); + camera.aspect = WIDTH / HEIGHT; + camera.updateProjectionMatrix(); +} + + +function handleMouseDown(event){ + if (gameStatus == "play") hero.jump(); + + +} + +function createLights() { + globalLight = new THREE.AmbientLight(0xffffff, .9); + + shadowLight = new THREE.DirectionalLight(0xffffff, 1); + shadowLight.position.set(-30, 40, 20); + shadowLight.castShadow = true; + shadowLight.shadow.camera.left = -400; + shadowLight.shadow.camera.right = 400; + shadowLight.shadow.camera.top = 400; + shadowLight.shadow.camera.bottom = -400; + shadowLight.shadow.camera.near = 1; + shadowLight.shadow.camera.far = 2000; + shadowLight.shadow.mapSize.width = shadowLight.shadow.mapSize.height = 2048; + + scene.add(globalLight); + scene.add(shadowLight); + +} + +function createFloor() { + + floorShadow = new THREE.Mesh(new THREE.SphereGeometry(floorRadius, 50, 50), new THREE.MeshPhongMaterial({ + color: 0x7abf8e, + specular:0x000000, + shininess:1, + transparent:true, + opacity:.5 + })); + //floorShadow.rotation.x = -Math.PI / 2; + floorShadow.receiveShadow = true; + + floorGrass = new THREE.Mesh(new THREE.SphereGeometry(floorRadius-.5, 50, 50), new THREE.MeshBasicMaterial({ + color: 0x7abf8e + })); + //floor.rotation.x = -Math.PI / 2; + floorGrass.receiveShadow = false; + + floor = new THREE.Group(); + floor.position.y = -floorRadius; + + floor.add(floorShadow); + floor.add(floorGrass); + scene.add(floor); + +} + +Hero = function() { + this.status = "running"; + this.runningCycle = 0; + this.mesh = new THREE.Group(); + this.body = new THREE.Group(); + this.mesh.add(this.body); + + var torsoGeom = new THREE.CubeGeometry(7, 7, 10, 1); + + this.torso = new THREE.Mesh(torsoGeom, brownMat); + this.torso.position.z = 0 + this.torso.position.y = 7; + this.torso.castShadow = true; + this.body.add(this.torso); + + var pantsGeom = new THREE.CubeGeometry(9, 9, 5, 1); + this.pants = new THREE.Mesh(pantsGeom, whiteMat); + this.pants.position.z = -3; + this.pants.position.y = 0; + this.pants.castShadow = true; + this.torso.add(this.pants); + + var tailGeom = new THREE.CubeGeometry(3, 3, 3, 1); + tailGeom.applyMatrix(new THREE.Matrix4().makeTranslation(0,0,-2)); + this.tail = new THREE.Mesh(tailGeom, lightBrownMat); + this.tail.position.z = -4; + this.tail.position.y = 5; + this.tail.castShadow = true; + this.torso.add(this.tail); + + this.torso.rotation.x = -Math.PI/8; + + var headGeom = new THREE.CubeGeometry(10, 10, 13, 1); + + headGeom.applyMatrix(new THREE.Matrix4().makeTranslation(0,0,7.5)); + this.head = new THREE.Mesh(headGeom, brownMat); + this.head.position.z = 2; + this.head.position.y = 11; + this.head.castShadow = true; + this.body.add(this.head); + + var cheekGeom = new THREE.CubeGeometry(1, 4, 4, 1); + this.cheekR = new THREE.Mesh(cheekGeom, pinkMat); + this.cheekR.position.x = -5; + this.cheekR.position.z = 7; + this.cheekR.position.y = -2.5; + this.cheekR.castShadow = true; + this.head.add(this.cheekR); + + this.cheekL = this.cheekR.clone(); + this.cheekL.position.x = - this.cheekR.position.x; + this.head.add(this.cheekL); + + + var noseGeom = new THREE.CubeGeometry(6, 6, 3, 1); + this.nose = new THREE.Mesh(noseGeom, lightBrownMat); + this.nose.position.z = 13.5; + this.nose.position.y = 2.6; + this.nose.castShadow = true; + this.head.add(this.nose); + + var mouthGeom = new THREE.CubeGeometry(4, 2, 4, 1); + mouthGeom.applyMatrix(new THREE.Matrix4().makeTranslation(0,0,3)); + mouthGeom.applyMatrix(new THREE.Matrix4().makeRotationX(Math.PI/12)); + this.mouth = new THREE.Mesh(mouthGeom, brownMat); + this.mouth.position.z = 8; + this.mouth.position.y = -4; + this.mouth.castShadow = true; + this.head.add(this.mouth); + + + var pawFGeom = new THREE.CubeGeometry(3,3,3, 1); + this.pawFR = new THREE.Mesh(pawFGeom, lightBrownMat); + this.pawFR.position.x = -2; + this.pawFR.position.z = 6; + this.pawFR.position.y = 1.5; + this.pawFR.castShadow = true; + this.body.add(this.pawFR); + + this.pawFL = this.pawFR.clone(); + this.pawFL.position.x = - this.pawFR.position.x; + this.pawFL.castShadow = true; + this.body.add(this.pawFL); + + var pawBGeom = new THREE.CubeGeometry(3,3,6, 1); + this.pawBL = new THREE.Mesh(pawBGeom, lightBrownMat); + this.pawBL.position.y = 1.5; + this.pawBL.position.z = 0; + this.pawBL.position.x = 5; + this.pawBL.castShadow = true; + this.body.add(this.pawBL); + + this.pawBR = this.pawBL.clone(); + this.pawBR.position.x = - this.pawBL.position.x; + this.pawBR.castShadow = true; + this.body.add(this.pawBR); + + var earGeom = new THREE.CubeGeometry(7, 18, 2, 1); + earGeom.vertices[6].x+=2; + earGeom.vertices[6].z+=.5; + + earGeom.vertices[7].x+=2; + earGeom.vertices[7].z-=.5; + + earGeom.vertices[2].x-=2; + earGeom.vertices[2].z-=.5; + + earGeom.vertices[3].x-=2; + earGeom.vertices[3].z+=.5; + earGeom.applyMatrix(new THREE.Matrix4().makeTranslation(0,9,0)); + + this.earL = new THREE.Mesh(earGeom, brownMat); + this.earL.position.x = 2; + this.earL.position.z = 2.5; + this.earL.position.y = 5; + this.earL.rotation.z = -Math.PI/12; + this.earL.castShadow = true; + this.head.add(this.earL); + + this.earR = this.earL.clone(); + this.earR.position.x = -this.earL.position.x; + this.earR.rotation.z = -this.earL.rotation.z; + this.earR.castShadow = true; + this.head.add(this.earR); + + var eyeGeom = new THREE.CubeGeometry(2,4,4); + + this.eyeL = new THREE.Mesh(eyeGeom, whiteMat); + this.eyeL.position.x = 5; + this.eyeL.position.z = 5.5; + this.eyeL.position.y = 2.9; + this.eyeL.castShadow = true; + this.head.add(this.eyeL); + + var irisGeom = new THREE.CubeGeometry(.6,2,2); + + this.iris = new THREE.Mesh(irisGeom, blackMat); + this.iris.position.x = 1.2; + this.iris.position.y = 1; + this.iris.position.z = 1; + this.eyeL.add(this.iris); + + this.eyeR = this.eyeL.clone(); + this.eyeR.children[0].position.x = -this.iris.position.x; + + + this.eyeR.position.x = -this.eyeL.position.x; + this.head.add(this.eyeR); + + this.body.traverse(function(object) { + if (object instanceof THREE.Mesh) { + object.castShadow = true; + object.receiveShadow = true; + } + }); +} + +BonusParticles = function(){ + this.mesh = new THREE.Group(); + var bigParticleGeom = new THREE.CubeGeometry(10,10,10,1); + var smallParticleGeom = new THREE.CubeGeometry(5,5,5,1); + this.parts = []; + for (var i=0; i<10; i++){ + var partPink = new THREE.Mesh(bigParticleGeom, pinkMat); + var partGreen = new THREE.Mesh(smallParticleGeom, greenMat); + partGreen.scale.set(.5,.5,.5); + this.parts.push(partPink); + this.parts.push(partGreen); + this.mesh.add(partPink); + this.mesh.add(partGreen); + } +} + +BonusParticles.prototype.explose = function(){ + var _this = this; + var explosionSpeed = .5; + for(var i=0; i.2) TweenMax.to([this.eyeR.scale, this.eyeL.scale], sp/8, {y:0, ease:Power1.easeInOut, yoyo:true, repeat:1}); + +} + +Hero.prototype.hang = function(){ + var _this = this; + var sp = 1; + var ease = Power4.easeOut; + + TweenMax.killTweensOf(this.eyeL.scale); + TweenMax.killTweensOf(this.eyeR.scale); + + this.body.rotation.x = 0; + this.torso.rotation.x = 0; + this.body.position.y = 0; + this.torso.position.y = 7; + + TweenMax.to(this.mesh.rotation, sp, {y:0, ease:ease}); + TweenMax.to(this.mesh.position, sp, {y:-7, z:6, ease:ease}); + TweenMax.to(this.head.rotation, sp, {x:Math.PI/6, ease:ease, onComplete:function(){_this.nod();}}); + + TweenMax.to(this.earL.rotation, sp, {x:Math.PI/3, ease:ease}); + TweenMax.to(this.earR.rotation, sp, {x:Math.PI/3, ease:ease}); + + TweenMax.to(this.pawFL.position, sp, {y:-1, z:3, ease:ease}); + TweenMax.to(this.pawFR.position, sp, {y:-1, z:3, ease:ease}); + TweenMax.to(this.pawBL.position, sp, {y:-2, z:-3, ease:ease}); + TweenMax.to(this.pawBR.position, sp, {y:-2, z:-3, ease:ease}); + + TweenMax.to(this.eyeL.scale, sp, {y:1, ease:ease}); + TweenMax.to(this.eyeR.scale, sp, {y:1, ease:ease}); +} + +Monster.prototype.nod = function(){ + var _this = this; + var sp = 1 + Math.random()*2; + + // HEAD + var tHeadRotY = -Math.PI/3 + Math.random()*.5; + var tHeadRotX = Math.PI/3 - .2 + Math.random()*.4; + TweenMax.to(this.head.rotation, sp, {x:tHeadRotX, y:tHeadRotY, ease:Power4.easeInOut, onComplete:function(){_this.nod()}}); + + // TAIL + + var tTailRotY = -Math.PI/4; + TweenMax.to(this.tail.rotation, sp/8, {y:tTailRotY, ease:Power1.easeInOut, yoyo:true, repeat:8}); + + // EYES + + TweenMax.to([this.eyeR.scale, this.eyeL.scale], sp/20, {y:0, ease:Power1.easeInOut, yoyo:true, repeat:1}); +} + +Monster.prototype.sit = function(){ + var sp = 1.2; + var ease = Power4.easeOut; + var _this = this; + TweenMax.to(this.torso.rotation, sp, {x:-1.3, ease:ease}); + TweenMax.to(this.torso.position, sp, {y:-5, ease:ease, onComplete:function(){ + _this.nod(); + gameStatus = "readyToReplay"; + }}); + + TweenMax.to(this.head.rotation, sp, {x:Math.PI/3, y :-Math.PI/3, ease:ease}); + TweenMax.to(this.tail.rotation, sp, {x:2, y:Math.PI/4, ease:ease}); + TweenMax.to(this.pawBL.rotation, sp, {x:-.1, ease:ease}); + TweenMax.to(this.pawBR.rotation, sp, {x:-.1, ease:ease}); + TweenMax.to(this.pawFL.rotation, sp, {x:1, ease:ease}); + TweenMax.to(this.pawFR.rotation, sp, {x:1, ease:ease}); + TweenMax.to(this.mouth.rotation, sp, {x:.3, ease:ease}); + TweenMax.to(this.eyeL.scale, sp, {y:1, ease:ease}); + TweenMax.to(this.eyeR.scale, sp, {y:1, ease:ease}); + + //TweenMax.to(this.body.rotation, sp, {y:Math.PI/4}); + +} + + +Carrot = function() { + this.angle = 0; + this.mesh = new THREE.Group(); + + var bodyGeom = new THREE.CylinderGeometry(5,3, 10, 4,1); + bodyGeom.vertices[8].y+=2; + bodyGeom.vertices[9].y-=3; + + this.body = new THREE.Mesh(bodyGeom, pinkMat); + + var leafGeom = new THREE.CubeGeometry(5,10,1,1); + leafGeom.applyMatrix(new THREE.Matrix4().makeTranslation(0,5,0)); + leafGeom.vertices[2].x-=1; + leafGeom.vertices[3].x-=1; + leafGeom.vertices[6].x+=1; + leafGeom.vertices[7].x+=1; + + this.leaf1 = new THREE.Mesh(leafGeom,greenMat); + this.leaf1.position.y = 7; + this.leaf1.rotation.z = .3; + this.leaf1.rotation.x = .2; + + this.leaf2 = this.leaf1.clone(); + this.leaf2.scale.set(1,1.3,1); + this.leaf2.position.y = 7; + this.leaf2.rotation.z = -.3; + this.leaf2.rotation.x = -.2; + + this.mesh.add(this.body); + this.mesh.add(this.leaf1); + this.mesh.add(this.leaf2); + + this.body.traverse(function(object) { + if (object instanceof THREE.Mesh) { + object.castShadow = true; + object.receiveShadow = true; + } + }); +} + +Hedgehog = function() { + this.angle = 0; + this.status="ready"; + this.mesh = new THREE.Group(); + var bodyGeom = new THREE.CubeGeometry(6,6,6,1); + this.body = new THREE.Mesh(bodyGeom, blackMat); + + var headGeom = new THREE.CubeGeometry(5,5,7,1); + this.head= new THREE.Mesh(headGeom, lightBrownMat); + this.head.position.z = 6; + this.head.position.y = -.5; + + var noseGeom = new THREE.CubeGeometry(1.5,1.5,1.5,1); + this.nose = new THREE.Mesh(noseGeom, blackMat); + this.nose.position.z = 4; + this.nose.position.y = 2; + + var eyeGeom = new THREE.CubeGeometry(1,3,3); + + this.eyeL = new THREE.Mesh(eyeGeom, whiteMat); + this.eyeL.position.x = 2.2; + this.eyeL.position.z = -.5; + this.eyeL.position.y = .8; + this.eyeL.castShadow = true; + this.head.add(this.eyeL); + + var irisGeom = new THREE.CubeGeometry(.5,1,1); + + this.iris = new THREE.Mesh(irisGeom, blackMat); + this.iris.position.x = .5; + this.iris.position.y = .8; + this.iris.position.z = .8; + this.eyeL.add(this.iris); + + this.eyeR = this.eyeL.clone(); + this.eyeR.children[0].position.x = -this.iris.position.x; + this.eyeR.position.x = -this.eyeL.position.x; + + var spikeGeom = new THREE.CubeGeometry(.5,2,.5,1); + spikeGeom.applyMatrix(new THREE.Matrix4().makeTranslation(0,1,0)); + + for (var i=0; i<9; i++){ + var row = (i%3); + var col = Math.floor(i/3); + var sb = new THREE.Mesh(spikeGeom, blackMat); + sb.rotation.x =-Math.PI/2 + (Math.PI/12*row) -.5 + Math.random(); + sb.position.z = -3; + sb.position.y = -2 + row*2; + sb.position.x = -2 + col*2; + this.body.add(sb); + var st = new THREE.Mesh(spikeGeom, blackMat); + st.position.y = 3; + st.position.x = -2 + row*2; + st.position.z = -2 + col*2; + st.rotation.z = Math.PI/6 - (Math.PI/6*row) -.5 + Math.random(); + this.body.add(st); + + var sr = new THREE.Mesh(spikeGeom, blackMat); + sr.position.x = 3; + sr.position.y = -2 + row*2; + sr.position.z = -2 + col*2; + sr.rotation.z = -Math.PI/2 + (Math.PI/12*row) -.5 + Math.random(); + this.body.add(sr); + + var sl = new THREE.Mesh(spikeGeom, blackMat); + sl.position.x = -3; + sl.position.y = -2 + row*2; + sl.position.z = -2 + col*2; + sl.rotation.z = Math.PI/2 - (Math.PI/12*row) -.5 + Math.random();; + this.body.add(sl); + } + + this.head.add(this.eyeR); + var earGeom = new THREE.CubeGeometry(2, 2, .5, 1); + this.earL = new THREE.Mesh(earGeom, lightBrownMat); + this.earL.position.x = 2.5; + this.earL.position.z = -2.5; + this.earL.position.y = 2.5; + this.earL.rotation.z = -Math.PI/12; + this.earL.castShadow = true; + this.head.add(this.earL); + + this.earR = this.earL.clone(); + this.earR.position.x = -this.earL.position.x; + this.earR.rotation.z = -this.earL.rotation.z; + this.earR.castShadow = true; + this.head.add(this.earR); + + var mouthGeom = new THREE.CubeGeometry( 1, 1,.5, 1); + this.mouth = new THREE.Mesh(mouthGeom, blackMat); + this.mouth.position.z = 3.5; + this.mouth.position.y = -1.5; + this.head.add(this.mouth); + + + this.mesh.add(this.body); + this.body.add(this.head); + this.head.add(this.nose); + + this.mesh.traverse(function(object) { + if (object instanceof THREE.Mesh) { + object.castShadow = true; + object.receiveShadow = true; + } + }); +} + +Hedgehog.prototype.nod = function(){ + var _this = this; + var speed = .1 + Math.random()*.5; + var angle = -Math.PI/4 + Math.random()*Math.PI/2; + TweenMax.to(this.head.rotation, speed, {y:angle, onComplete:function(){ + _this.nod(); + }}); +} + + +function createHero() { + hero = new Hero(); + hero.mesh.rotation.y = Math.PI/2; + scene.add(hero.mesh); + hero.nod(); +} + +function createMonster() { + + monster = new Monster(); + monster.mesh.position.z = 20; + //monster.mesh.scale.set(1.2,1.2,1.2); + scene.add(monster.mesh); + updateMonsterPosition(); + +} + +function updateMonsterPosition(){ + monster.run(); + monsterPosTarget -= delta*monsterAcceleration; + monsterPos += (monsterPosTarget-monsterPos) *delta; + if (monsterPos < .56){ + gameOver(); + } + + var angle = Math.PI*monsterPos; + monster.mesh.position.y = - floorRadius + Math.sin(angle)*(floorRadius + 12); + monster.mesh.position.x = Math.cos(angle)*(floorRadius+15); + monster.mesh.rotation.z = -Math.PI/2 + angle; +} + +function gameOver(){ + fieldGameOver.className = "show"; + gameStatus = "gameOver"; + monster.sit(); + hero.hang(); + monster.heroHolder.add(hero.mesh); + TweenMax.to(this, 1, {speed:0}); + TweenMax.to(camera.position, 3, {z:cameraPosGameOver, y: 60, x:-30}); + carrot.mesh.visible = false; + obstacle.mesh.visible = false; + clearInterval(levelInterval); +} +function replay() { + // Set the game status to "preparingToReplay" + gameStatus = "preparingToReplay"; + fieldGameOver.className = "hide"; + + // Kill all ongoing animations + TweenMax.killTweensOf(monster.pawFL.position); + TweenMax.killTweensOf(monster.pawFR.position); + TweenMax.killTweensOf(monster.pawBL.position); + TweenMax.killTweensOf(monster.pawBR.position); + + TweenMax.killTweensOf(monster.pawFL.rotation); + TweenMax.killTweensOf(monster.pawFR.rotation); + TweenMax.killTweensOf(monster.pawBL.rotation); + TweenMax.killTweensOf(monster.pawBR.rotation); + + TweenMax.killTweensOf(monster.tail.rotation); + TweenMax.killTweensOf(monster.head.rotation); + TweenMax.killTweensOf(monster.eyeL.scale); + TweenMax.killTweensOf(monster.eyeR.scale); + + // Reset monster's tail rotation + monster.tail.rotation.y = 0; + + // Move the camera to the game position + TweenMax.to(camera.position, 3, { z: cameraPosGame, x: 0, y: 30, ease: Power4.easeInOut }); + + // Reset monster's position and rotation + TweenMax.to(monster.torso.rotation, 2, { x: 0, ease: Power4.easeInOut }); + TweenMax.to(monster.torso.position, 2, { y: 0, ease: Power4.easeInOut }); + TweenMax.to(monster.pawFL.rotation, 2, { x: 0, ease: Power4.easeInOut }); + TweenMax.to(monster.pawFR.rotation, 2, { x: 0, ease: Power4.easeInOut }); + TweenMax.to(monster.mouth.rotation, 2, { x: 0.5, ease: Power4.easeInOut }); + TweenMax.to(monster.head.rotation, 2, { y: 0, x: -0.3, ease: Power4.easeInOut }); + + // Reset hero's position and rotation + TweenMax.to(hero.mesh.position, 2, { x: 20, ease: Power4.easeInOut }); + TweenMax.to(hero.head.rotation, 2, { x: 0, y: 0, ease: Power4.easeInOut }); + + // Reset monster's mouth rotation + TweenMax.to(monster.mouth.rotation, 2, { x: 0.2, ease: Power4.easeInOut }); + TweenMax.to(monster.mouth.rotation, 1, { x: 0.4, ease: Power4.easeIn, delay: 1, onComplete: function() { + // Reset the game + resetGame(); + + // Ensure the game over screen disappears + fieldGameOver.classList.remove("show"); + }}); +} + + +Fir = function() { + var height = 200; + var truncGeom = new THREE.CylinderGeometry(2,2,height, 6,1); + truncGeom.applyMatrix(new THREE.Matrix4().makeTranslation(0,height/2,0)); + this.mesh = new THREE.Mesh(truncGeom, greenMat); + this.mesh.castShadow = true; +} + +var firs = new THREE.Group(); + +function createFirs(){ + + var nTrees = 100; + for(var i=0; i< nTrees; i++){ + var phi = i*(Math.PI*2)/nTrees; + var theta = Math.PI/2; + //theta += .25 + Math.random()*.3; + theta += (Math.random()>.05)? .25 + Math.random()*.3 : - .35 - Math.random()*.1; + + var fir = new Tree(); + fir.mesh.position.x = Math.sin(theta)*Math.cos(phi)*floorRadius; + fir.mesh.position.y = Math.sin(theta)*Math.sin(phi)*(floorRadius-10); + fir.mesh.position.z = Math.cos(theta)*floorRadius; + + var vec = fir.mesh.position.clone(); + var axis = new THREE.Vector3(0,1,0); + fir.mesh.quaternion.setFromUnitVectors(axis, vec.clone().normalize()); + floor.add(fir.mesh); + } +} + +function createCarrot(){ + carrot = new Carrot(); + scene.add(carrot.mesh); +} + +function updateCarrotPosition(){ + carrot.mesh.rotation.y += delta * 6; + carrot.mesh.rotation.z = Math.PI/2 - (floorRotation+carrot.angle); + carrot.mesh.position.y = -floorRadius + Math.sin(floorRotation+carrot.angle) * (floorRadius+50); + carrot.mesh.position.x = Math.cos(floorRotation+carrot.angle) * (floorRadius+50); + +} + +function updateObstaclePosition(){ + if (obstacle.status=="flying")return; + + // TODO fix this, + if (floorRotation+obstacle.angle > 2.5 ){ + obstacle.angle = -floorRotation + Math.random()*.3; + obstacle.body.rotation.y = Math.random() * Math.PI*2; + } + + obstacle.mesh.rotation.z = floorRotation + obstacle.angle - Math.PI/2; + obstacle.mesh.position.y = -floorRadius + Math.sin(floorRotation+obstacle.angle) * (floorRadius+3); + obstacle.mesh.position.x = Math.cos(floorRotation+obstacle.angle) * (floorRadius+3); + +} + +function updateFloorRotation(){ + floorRotation += delta*.03 * speed; + floorRotation = floorRotation%(Math.PI*2); + floor.rotation.z = floorRotation; +} + +function createObstacle(){ + obstacle = new Hedgehog(); + obstacle.body.rotation.y = -Math.PI/2; + obstacle.mesh.scale.set(1.1,1.1,1.1); + obstacle.mesh.position.y = floorRadius+4; + obstacle.nod(); + scene.add(obstacle.mesh); +} + +function createBonusParticles(){ + bonusParticles = new BonusParticles(); + bonusParticles.mesh.visible = false; + scene.add(bonusParticles.mesh); + +} + + + +function checkCollision(){ + var db = hero.mesh.position.clone().sub(carrot.mesh.position.clone()); + var dm = hero.mesh.position.clone().sub(obstacle.mesh.position.clone()); + + if(db.length() < collisionBonus){ + getBonus(); + } + + if(dm.length() < collisionObstacle && obstacle.status != "flying"){ + getMalus(); + } +} + +function getBonus(){ + bonusParticles.mesh.position.copy(carrot.mesh.position); + bonusParticles.mesh.visible = true; + bonusParticles.explose(); + carrot.angle += Math.PI/2; + //speed*=.95; + monsterPosTarget += .025; + +} + +function getMalus(){ + obstacle.status="flying"; + var tx = (Math.random()>.5)? -20-Math.random()*10 : 20+Math.random()*5; + TweenMax.to(obstacle.mesh.position, 4, {x:tx, y:Math.random()*50, z:350, ease:Power4.easeOut}); + TweenMax.to(obstacle.mesh.rotation, 4, {x:Math.PI*3, z:Math.PI*3, y:Math.PI*6, ease:Power4.easeOut, onComplete:function(){ + obstacle.status = "ready"; + obstacle.body.rotation.y = Math.random() * Math.PI*2; + obstacle.angle = -floorRotation - Math.random()*.4; + + obstacle.angle = obstacle.angle%(Math.PI*2); + obstacle.mesh.rotation.x = 0; + obstacle.mesh.rotation.y = 0; + obstacle.mesh.rotation.z = 0; + obstacle.mesh.position.z = 0; + + }}); + // + monsterPosTarget -= .04; + TweenMax.from(this, .5, {malusClearAlpha:.5, onUpdate:function(){ + renderer.setClearColor(malusClearColor, malusClearAlpha ); + }}) +} + +function updateDistance(){ + distance += delta*speed; + var d = distance/2; + fieldDistance.innerHTML = Math.floor(d); +} + +function updateLevel(){ + if (speed >= maxSpeed) return; + level++; + speed += 2; +} + +function loop(){ + delta = clock.getDelta(); + if (gameStatus == "play"){ + updateFloorRotation(); + + if (hero.status == "running"){ + hero.run(); + } + updateDistance(); + updateMonsterPosition(); + updateCarrotPosition(); + updateObstaclePosition(); + checkCollision(); + } + + render(); + requestAnimationFrame(loop); +} + +function render(){ + renderer.render(scene, camera); +} + +window.addEventListener('load', init, false); + +function init(event){ + initScreenAnd3D(); + createLights(); + createFloor() + createHero(); + createMonster(); + createFirs(); + createCarrot(); + createBonusParticles(); + createObstacle(); + initUI(); + resetGame(); + loop(); + + //setInterval(hero.blink.bind(hero), 3000); +} + +function resetGame(){ + scene.add(hero.mesh); + hero.mesh.rotation.y = Math.PI/2; + hero.mesh.position.y = 0; + hero.mesh.position.z = 0; + hero.mesh.position.x = 0; + + monsterPos = .56; + monsterPosTarget = .65; + speed = initSpeed; + level = 0; + distance = 0; + carrot.mesh.visible = true; + obstacle.mesh.visible = true; + gameStatus = "play"; + hero.status = "running"; + hero.nod(); + audio.play(); + updateLevel(); + levelInterval = setInterval(updateLevel, levelUpdateFreq); +} + +function initUI(){ + fieldDistance = document.getElementById("distValue"); + fieldGameOver = document.getElementById("gameoverInstructions"); + +} + + + +//////////////////////////////////////////////// +// MODELS +//////////////////////////////////////////////// + +// TREE + +Tree = function(){ + this.mesh = new THREE.Object3D(); + this.trunc = new Trunc(); + this.mesh.add(this.trunc.mesh); +} + + +Trunc = function(){ + var truncHeight = 50 + Math.random()*150; + var topRadius = 1+Math.random()*5; + var bottomRadius = 5+Math.random()*5; + var mats = [blackMat, brownMat, pinkMat, whiteMat, greenMat, lightBrownMat, pinkMat]; + var matTrunc = blackMat;//mats[Math.floor(Math.random()*mats.length)]; + var nhSegments = 3;//Math.ceil(2 + Math.random()*6); + var nvSegments = 3;//Math.ceil(2 + Math.random()*6); + var geom = new THREE.CylinderGeometry(topRadius,bottomRadius,truncHeight, nhSegments, nvSegments); + geom.applyMatrix(new THREE.Matrix4().makeTranslation(0,truncHeight/2,0)); + + this.mesh = new THREE.Mesh(geom, matTrunc); + + for (var i=0; i.7){ + var size = Math.random()*3; + var fruitGeometry = new THREE.CubeGeometry(size,size,size,1); + var matFruit = mats[Math.floor(Math.random()*mats.length)]; + var fruit = new THREE.Mesh(fruitGeometry, matFruit); + fruit.position.x = v.x; + fruit.position.y = v.y+3; + fruit.position.z = v.z; + fruit.rotation.x = Math.random()*Math.PI; + fruit.rotation.y = Math.random()*Math.PI; + + this.mesh.add(fruit); + } + + // BRANCHES + + if (Math.random()>.5 && v.y > 10 && v.y < truncHeight - 10){ + var h = 3 + Math.random()*5; + var thickness = .2 + Math.random(); + + var branchGeometry = new THREE.CylinderGeometry(thickness/2, thickness, h, 3, 1); + branchGeometry.applyMatrix(new THREE.Matrix4().makeTranslation(0,h/2,0)); + var branch = new THREE.Mesh(branchGeometry, matTrunc); + branch.position.x = v.x; + branch.position.y = v.y; + branch.position.z = v.z; + + var vec = new THREE.Vector3(v.x, 2, v.z); + var axis = new THREE.Vector3(0,1,0); + branch.quaternion.setFromUnitVectors(axis, vec.clone().normalize()); + + + this.mesh.add(branch); + } + + } + + + this.mesh.castShadow = true; +} +// Your existing code... + +//////////////////////////////////////////////// +// BUTTONS +//////////////////////////////////////////////// + +// Get references to the buttons +var replayButton = document.getElementById("replayButton"); +var pauseButton = document.getElementById("pauseButton"); +var resumeButton = document.getElementById("resumeButton"); + +// Add event listeners +replayButton.addEventListener("click", replay); +pauseButton.addEventListener("click", pauseGame); +resumeButton.addEventListener("click", resumeGame); + +// Define variables to control game status +var isPaused = false; +var pausedDistance = 0; + +function pauseGame() { + if(isPaused==true)return; + isPaused = true; + // Store the current distance + pausedDistance = distance; + // Pause audio + audio.pause() + // Stop the game + gameStatus = "paused"; +} + +function resumeGame() { + if(isPaused==false)return; + isPaused = false; + // Resume the game + gameStatus = "play"; + // Play audio + audio.play() + // Update the distance to the paused distance + distance = pausedDistance; +} + + + diff --git a/Games/Rabbit_Rush/style.css b/Games/Rabbit_Rush/style.css index 4f78ed2218..7fb6b0631b 100644 --- a/Games/Rabbit_Rush/style.css +++ b/Games/Rabbit_Rush/style.css @@ -1,186 +1,186 @@ - -@import url('https://fonts.googleapis.com/css?family=Voltaire'); - - -#world{ - position: absolute; - width:100%; - height: 100%; - background-color:#7FFFD4; - - overflow: hidden; -} - - -#gameoverInstructions{ - position:absolute; - font-family:'Pacifico', cursive; - font-weight:bold; - text-transform: uppercase; - font-size:100px; - text-align:center; - color:#f80850; - opacity:0; - left:50%; - top:50%; - width:100%; - transform : translate(-50%,-100%); - user-select: none; - transition: all 500ms ease-in-out; - - &.show{ - opacity:1; - transform : translate(-50%,-50%); - transition: all 500ms ease-in-out; - }; -} -.button { - display: inline-block; - margin: 10px; - padding: 10px 20px; - font-size: 16px; - cursor: pointer; - border: none; - border-radius: 5px; - outline: none; -} - -.green { - background-color: green; - color: white; -} - -.red { - background-color: red; - color: white; -} - -.blue { - background-color: blue; - color: white; -} - - -#dist{ - position:absolute; - left:50%; - top:50px; - transform:translate(-50%,0%); - user-select: none; -} - -.label{ - position:relative; - font-family: 'Open Sans', sans-serif; - text-transform:uppercase; - color:#FF4500; - font-size:23px; - letter-spacing:2px; - text-align:center; - margin-bottom:5px; - -} - - -#distValue{ - position:relative; - text-transform:uppercase; - color:#FF6347; - font-size:40px; - font-family:'Voltaire'; - text-align:center; -} - - - -#credits{ - position:absolute; - width:100%; - margin: auto; - bottom:0; - margin-bottom:20px; - font-family:'Arial', sans-serif; - color:#544027; - font-size:12px; - letter-spacing:0.5px; - text-transform: uppercase; - text-align : center; - user-select: none; -} -#credits a { - color:#544027; - -} - -#credits a:hover { - color:#dc5f45; -} - -#instructions{ - position:absolute; - width:100%; - bottom:0; - margin: auto; - margin-bottom:50px; - font-family:'Roboto', sans-serif; - color:hsl(315, 97%, 50%); - font-size:16px; - letter-spacing:1px; - text-transform: uppercase; - text-align : center; - user-select: none; -} -.lightInstructions { - color:#211ed4; - font-family:'Roboto', sans-serif; -} -#controls { - position: fixed; - top: 20px; - right: 20px; - display: flex; - flex-direction: column; - gap: 20px; -} - -#controls button { - padding: 10px; - font-size: 18px; - cursor: pointer; - border: none; - color: white; - border-radius: 50%; /* Makes the buttons round */ - transition: background-color 0.3s, transform 0.3s; - width: 80px; /* Width and height for round buttons */ - height: 80px; - text-align: center; - line-height: 20px; /* Adjust line height to vertically center text */ -} - -#controls button:hover { - transform: scale(1.1); /* Slightly enlarge the button on hover */ -} - -#replayButton { - background-color: green; -} - -#replayButton:hover { - background-color: darkgreen; -} - -#pauseButton { - background-color: red; -} - -#pauseButton:hover { - background-color: darkred; -} - -#resumeButton { - background-color: blue; -} - -#resumeButton:hover { - background-color: darkblue; + +@import url('https://fonts.googleapis.com/css?family=Voltaire'); + + +#world{ + position: absolute; + width:100%; + height: 100%; + background-color:#7FFFD4; + + overflow: hidden; +} + + +#gameoverInstructions{ + position:absolute; + font-family:'Pacifico', cursive; + font-weight:bold; + text-transform: uppercase; + font-size:100px; + text-align:center; + color:#f80850; + opacity:0; + left:50%; + top:50%; + width:100%; + transform : translate(-50%,-100%); + user-select: none; + transition: all 500ms ease-in-out; + + &.show{ + opacity:1; + transform : translate(-50%,-50%); + transition: all 500ms ease-in-out; + }; +} +.button { + display: inline-block; + margin: 10px; + padding: 10px 20px; + font-size: 16px; + cursor: pointer; + border: none; + border-radius: 5px; + outline: none; +} + +.green { + background-color: green; + color: white; +} + +.red { + background-color: red; + color: white; +} + +.blue { + background-color: blue; + color: white; +} + + +#dist{ + position:absolute; + left:50%; + top:50px; + transform:translate(-50%,0%); + user-select: none; +} + +.label{ + position:relative; + font-family: 'Open Sans', sans-serif; + text-transform:uppercase; + color:#FF4500; + font-size:23px; + letter-spacing:2px; + text-align:center; + margin-bottom:5px; + +} + + +#distValue{ + position:relative; + text-transform:uppercase; + color:#FF6347; + font-size:40px; + font-family:'Voltaire'; + text-align:center; +} + + + +#credits{ + position:absolute; + width:100%; + margin: auto; + bottom:0; + margin-bottom:20px; + font-family:'Arial', sans-serif; + color:#544027; + font-size:12px; + letter-spacing:0.5px; + text-transform: uppercase; + text-align : center; + user-select: none; +} +#credits a { + color:#544027; + +} + +#credits a:hover { + color:#dc5f45; +} + +#instructions{ + position:absolute; + width:100%; + bottom:0; + margin: auto; + margin-bottom:50px; + font-family:'Roboto', sans-serif; + color:hsl(315, 97%, 50%); + font-size:16px; + letter-spacing:1px; + text-transform: uppercase; + text-align : center; + user-select: none; +} +.lightInstructions { + color:#211ed4; + font-family:'Roboto', sans-serif; +} +#controls { + position: fixed; + top: 20px; + right: 20px; + display: flex; + flex-direction: column; + gap: 20px; +} + +#controls button { + padding: 10px; + font-size: 18px; + cursor: pointer; + border: none; + color: white; + border-radius: 50%; /* Makes the buttons round */ + transition: background-color 0.3s, transform 0.3s; + width: 80px; /* Width and height for round buttons */ + height: 80px; + text-align: center; + line-height: 20px; /* Adjust line height to vertically center text */ +} + +#controls button:hover { + transform: scale(1.1); /* Slightly enlarge the button on hover */ +} + +#replayButton { + background-color: green; +} + +#replayButton:hover { + background-color: darkgreen; +} + +#pauseButton { + background-color: red; +} + +#pauseButton:hover { + background-color: darkred; +} + +#resumeButton { + background-color: blue; +} + +#resumeButton:hover { + background-color: darkblue; } \ No newline at end of file diff --git a/Games/Rectangular/README.md b/Games/Rectangular/README.md index aa7cda17f0..5e6e666f19 100644 --- a/Games/Rectangular/README.md +++ b/Games/Rectangular/README.md @@ -1,14 +1,14 @@ -Rectangular 13k -================ - -The goal is to make the red rectangle go through the red line in the right of the window using the arrow keys. Beware of black circles, if you touch one of them you will have to restart. -Use the space key to deploy your parachute and collect the red circles to "reload" it. -If you fall down the screen, the rectangle will reappear on the top, at the same place. - -To start, press the "play" button. - -Better with Chrome, works on other browsers but it seems to be really slow. - -Enjoy ! - - +Rectangular 13k +================ + +The goal is to make the red rectangle go through the red line in the right of the window using the arrow keys. Beware of black circles, if you touch one of them you will have to restart. +Use the space key to deploy your parachute and collect the red circles to "reload" it. +If you fall down the screen, the rectangle will reappear on the top, at the same place. + +To start, press the "play" button. + +Better with Chrome, works on other browsers but it seems to be really slow. + +Enjoy ! + + diff --git a/Games/Rectangular/index.html b/Games/Rectangular/index.html index 0d155b6ca9..b82a67338f 100644 --- a/Games/Rectangular/index.html +++ b/Games/Rectangular/index.html @@ -1,105 +1,105 @@ - - - - Squares - - - - - -
      - - - - - - - - - + + + + Squares + + + + + +
      + + + + + + + + + \ No newline at end of file diff --git a/Games/Rectangular/js/Bonus.js b/Games/Rectangular/js/Bonus.js index 19d206a177..64300e75e3 100644 --- a/Games/Rectangular/js/Bonus.js +++ b/Games/Rectangular/js/Bonus.js @@ -1,40 +1,40 @@ -function Bonus(x, y){ - - this.x = x; - this.y = y; - this.size = 15; - - objects.push(this); -} -Bonus.prototype.render = function() { - - c.save(); - - c.strokeStyle = "red";//"FF5B03"; - c.shadowColor="rgba(0,0,0,0.5)"; - c.shadowBlur=7; - c.shadowOffsetX = -2; - c.shadowOffsetY = 2; - c.beginPath(); - c.arc(this.x, this.y, this.size, 0,2*Math.PI); - c.stroke(); - - c.restore(); -} -Bonus.prototype.tick = function() { - - if(this.x > canvas.width+this.size) { - this.x = -this.size; - this.y = Math.random()*canvas.height+1; - } - else - this.x+= 0.1; - - this.render(); -} -Bonus.prototype.disappear = function() { - - objects.splice(objects.indexOf(this), 1); //remove it from objects list - - new Bonus(canvas.width+100, Math.random()*canvas.height+1); //create a new bonus on the screen +function Bonus(x, y){ + + this.x = x; + this.y = y; + this.size = 15; + + objects.push(this); +} +Bonus.prototype.render = function() { + + c.save(); + + c.strokeStyle = "red";//"FF5B03"; + c.shadowColor="rgba(0,0,0,0.5)"; + c.shadowBlur=7; + c.shadowOffsetX = -2; + c.shadowOffsetY = 2; + c.beginPath(); + c.arc(this.x, this.y, this.size, 0,2*Math.PI); + c.stroke(); + + c.restore(); +} +Bonus.prototype.tick = function() { + + if(this.x > canvas.width+this.size) { + this.x = -this.size; + this.y = Math.random()*canvas.height+1; + } + else + this.x+= 0.1; + + this.render(); +} +Bonus.prototype.disappear = function() { + + objects.splice(objects.indexOf(this), 1); //remove it from objects list + + new Bonus(canvas.width+100, Math.random()*canvas.height+1); //create a new bonus on the screen } \ No newline at end of file diff --git a/Games/Rectangular/js/Mine.js b/Games/Rectangular/js/Mine.js index 0a1073efe6..592402539e 100644 --- a/Games/Rectangular/js/Mine.js +++ b/Games/Rectangular/js/Mine.js @@ -1,67 +1,67 @@ -function Mine(x, y, size, speed){ - - this.x = x; - this.y = y; - this.size = size/2; - this.speed = speed; - this.explode = 0; - - objects.push(this); -} -Mine.prototype.render = function() { - - c.save(); - - c.fillStyle = "black"; - c.shadowColor="rgba(0,0,0,0.5)"; - c.shadowBlur=7; - c.shadowOffsetX = -2; - c.shadowOffsetY = 2; - c.beginPath(); - c.arc(this.x, this.y, this.size, 0,2*Math.PI); - c.fill(); - - c.restore(); -} -Mine.prototype.tick = function() { - - if(this.x < 0-this.size) { - - this.x = canvas.width+this.size*2; - this.y = Math.random()*canvas.height+1; - - } - else - this.x-= this.speed; - - if(this.explode > 10){ //explosion animation - - this.size+=4; - this.explode--; - - } - else if(this.explode > 1){ //explosion animation - - if(this.size > 4){ - this.size-= 4; - this.explode--; - } - else - this.explode = 1; - } - else if(this.explode == 1){ - - this.explode = 0; - objects.splice(objects.indexOf(this), 1); //remove it from 'objects to be rendered' list - - new Mine(canvas.width+100, Math.random()*canvas.height+1, 100-Math.random()*30, 0.5+Math.random());//ccreate a new one - - } - - this.render(); -} -Mine.prototype.explo = function() { - - if(this.explode == 0) //set explosion - this.explode = 20; +function Mine(x, y, size, speed){ + + this.x = x; + this.y = y; + this.size = size/2; + this.speed = speed; + this.explode = 0; + + objects.push(this); +} +Mine.prototype.render = function() { + + c.save(); + + c.fillStyle = "black"; + c.shadowColor="rgba(0,0,0,0.5)"; + c.shadowBlur=7; + c.shadowOffsetX = -2; + c.shadowOffsetY = 2; + c.beginPath(); + c.arc(this.x, this.y, this.size, 0,2*Math.PI); + c.fill(); + + c.restore(); +} +Mine.prototype.tick = function() { + + if(this.x < 0-this.size) { + + this.x = canvas.width+this.size*2; + this.y = Math.random()*canvas.height+1; + + } + else + this.x-= this.speed; + + if(this.explode > 10){ //explosion animation + + this.size+=4; + this.explode--; + + } + else if(this.explode > 1){ //explosion animation + + if(this.size > 4){ + this.size-= 4; + this.explode--; + } + else + this.explode = 1; + } + else if(this.explode == 1){ + + this.explode = 0; + objects.splice(objects.indexOf(this), 1); //remove it from 'objects to be rendered' list + + new Mine(canvas.width+100, Math.random()*canvas.height+1, 100-Math.random()*30, 0.5+Math.random());//ccreate a new one + + } + + this.render(); +} +Mine.prototype.explo = function() { + + if(this.explode == 0) //set explosion + this.explode = 20; } \ No newline at end of file diff --git a/Games/Rectangular/js/Player.js b/Games/Rectangular/js/Player.js index aa41aa7fbc..cb5c3fce98 100644 --- a/Games/Rectangular/js/Player.js +++ b/Games/Rectangular/js/Player.js @@ -1,215 +1,215 @@ -/* - By Yhoyhoj : twitter.com/yhoyhoj -*/ - -function Player(x,y){ - - this.startX = x; - this.startY = y; - this.x = x; - this.y = y; - this.up = -50; - this.rotate = 0; - this.parachute = 100; - this.renderPara = false; - this.renderer; -} -Player.prototype.render = function() { - - c.save(); - - c.translate(this.x, this.y); - if(this.rotate != 0) - { - c.rotate(Math.PI * this.rotate / 180); - this.rotate = 0; - } - c.fillStyle = "red"; - c.shadowBlur=7; - c.shadowOffsetX = -2; - c.shadowOffsetY = 2; - c.fillRect(0, 0, 10, 20); - - c.restore(); - - if(this.renderPara) - this.renderParachute(); -} -Player.prototype.renderParachute = function() { - - c.save(); - - if(this.parachute < 50 && this.parachute %5 == 0) - c.strokeStyle = "white"; - else - c.strokeStyle = "red"; - c.moveTo(this.x, this.y); - c.lineTo(this.x-10, this.y-20); - c.moveTo(this.x+10, this.y); - c.lineTo(this.x+20, this.y-20); - c.stroke(); - - if(this.parachute < 50 && this.parachute %5 == 0) - c.strokeStyle = "white"; - else - c.strokeStyle = "red"; - c.beginPath(); - c.arc(this.x+5, this.y-20, 20, Math.PI, 2*Math.PI); - c.lineTo(this.x-15, this.y-20); - c.stroke(); - - c.restore(); -} -Player.prototype.tick = function() { - - var fall = true; - var speed; - - this.renderPara = false; - - if(this.x > canvas.width-10 && !win){ //when behind the line/win - win = true; - - var date = new Date(new Date() - seconds); - elapsedTime = ("0" + date.getMinutes()).slice(-2) + ":" + ("0"+date.getSeconds()).slice(-2); - - if(localStorage) { - - if(localStorage && (localStorage.getItem('rectangularBest') == null || localStorage.getItem('rectangularBest').slice(0,2) > date.getMinutes()) ) { //save the time iif no saveed before or if minutes are lower - localStorage.setItem('rectangularBest', elapsedTime); - } - else if(localStorage && localStorage.getItem('rectangularBest').slice(-2) > date.getSeconds()) { //saving the time if minute is not lower but seconds are lower - localStorage.setItem('rectangularBest', elapsedTime); - } - } - } - - if(this.x < -10) { //if player is no more in the screen (only for the left), respawn - this.x = this.startX; - this.y = this.startY; - } - else if(this.y > canvas.height) //if player is under the screen, put it on the top - this.y = -20; - - for(var i = 0; i < objects.length; i++) { //collision loop - var p = objects[i]; - -// Squares : - - if(p instanceof Square) { - - if(this.x > p.x-10 && this.x < p.x + p.size){ //collision test - - if(this.y+20 < p.y+1 && this.y+20 > p.y-2){ //collision test - - if(this.renderer != p){ //player is rendered by the last square he stand on, to be rendered at the right pseudo z position - - if(this.renderer) - this.renderer.player = false; //say to the old renderer to no more render player - p.player = true; //say to the new renderer to start render - this.renderer = p; //save the last renderer/square to avoid useless change - } - speed = p.speed; //set player the movement of the square to make it move with the square - fall = false; - } - } - - } - -// Mines : - - else if(p instanceof Mine) { - - if(this.x > p.x-p.size-10 && this.x < p.x + p.size ){ //colision test - - if(this.y+20 < p.y+p.size && this.y > p.y-p.size){ //collision test - this.x = this.startX; //the player respawn - this.y = this.startY; - p.explo(); //make the collided mine explodes - } - } - - } -// Bonus : - - else { - - if(this.x > p.x-p.size-10 && this.x < p.x + p.size ){ - - if(this.y+20 < p.y+p.size && this.y > p.y-p.size){ - this.parachute += 100; - p.disappear(); - } - } - - } - - } - - if(up && !fall){ //when up key is down and player is not falling : jump - this.up = 50; //add jump power to the player - } - - if(!fall) { //normal movement - - if(right) //when right key is down - this.x++; - else if(left) //when left key is down - this.x--; - - this.x -= speed; //add speed of mounted square - } - - if(space && fall && this.parachute > 0) { //when space key is down and player have parachute power - - if(right){ - this.x+= 0.5; - this.rotate = -5; //rotate player - this.parachute--; //decrease parachute power - this.renderPara = true; //render the parachute - this.y -= 1.5; //slow the fall - } - else if(left) { - this.x-= 0.5; - this.rotate = 5; - this.parachute--; - this.renderPara = true; - this.y -= 1.5; - } - else { - this.parachute--; - this.renderPara = true; - this.y -= 1.5; - } - - } - - if(this.up > 0) { //jump movement, when jump power is ok - - this.y-=this.up/8; //make the player jump - - if(right) - this.x += 1.1; - else if(left) - this.x -= 1.1; - - this.up--; - } - else if(this.up > -50 && fall) { //after jump falling movement - - if(right) - this.x += 0.8+this.up/80; - else if(left) - this.x -= 0.8+this.up/80; - - this.up--; - - } - - if(fall) { - this.y+=3; //make the player fall - } - - if(!this.renderer) //if player has no renderer (on the beginning) - this.render(); //render itself +/* + By Yhoyhoj : twitter.com/yhoyhoj +*/ + +function Player(x,y){ + + this.startX = x; + this.startY = y; + this.x = x; + this.y = y; + this.up = -50; + this.rotate = 0; + this.parachute = 100; + this.renderPara = false; + this.renderer; +} +Player.prototype.render = function() { + + c.save(); + + c.translate(this.x, this.y); + if(this.rotate != 0) + { + c.rotate(Math.PI * this.rotate / 180); + this.rotate = 0; + } + c.fillStyle = "red"; + c.shadowBlur=7; + c.shadowOffsetX = -2; + c.shadowOffsetY = 2; + c.fillRect(0, 0, 10, 20); + + c.restore(); + + if(this.renderPara) + this.renderParachute(); +} +Player.prototype.renderParachute = function() { + + c.save(); + + if(this.parachute < 50 && this.parachute %5 == 0) + c.strokeStyle = "white"; + else + c.strokeStyle = "red"; + c.moveTo(this.x, this.y); + c.lineTo(this.x-10, this.y-20); + c.moveTo(this.x+10, this.y); + c.lineTo(this.x+20, this.y-20); + c.stroke(); + + if(this.parachute < 50 && this.parachute %5 == 0) + c.strokeStyle = "white"; + else + c.strokeStyle = "red"; + c.beginPath(); + c.arc(this.x+5, this.y-20, 20, Math.PI, 2*Math.PI); + c.lineTo(this.x-15, this.y-20); + c.stroke(); + + c.restore(); +} +Player.prototype.tick = function() { + + var fall = true; + var speed; + + this.renderPara = false; + + if(this.x > canvas.width-10 && !win){ //when behind the line/win + win = true; + + var date = new Date(new Date() - seconds); + elapsedTime = ("0" + date.getMinutes()).slice(-2) + ":" + ("0"+date.getSeconds()).slice(-2); + + if(localStorage) { + + if(localStorage && (localStorage.getItem('rectangularBest') == null || localStorage.getItem('rectangularBest').slice(0,2) > date.getMinutes()) ) { //save the time iif no saveed before or if minutes are lower + localStorage.setItem('rectangularBest', elapsedTime); + } + else if(localStorage && localStorage.getItem('rectangularBest').slice(-2) > date.getSeconds()) { //saving the time if minute is not lower but seconds are lower + localStorage.setItem('rectangularBest', elapsedTime); + } + } + } + + if(this.x < -10) { //if player is no more in the screen (only for the left), respawn + this.x = this.startX; + this.y = this.startY; + } + else if(this.y > canvas.height) //if player is under the screen, put it on the top + this.y = -20; + + for(var i = 0; i < objects.length; i++) { //collision loop + var p = objects[i]; + +// Squares : + + if(p instanceof Square) { + + if(this.x > p.x-10 && this.x < p.x + p.size){ //collision test + + if(this.y+20 < p.y+1 && this.y+20 > p.y-2){ //collision test + + if(this.renderer != p){ //player is rendered by the last square he stand on, to be rendered at the right pseudo z position + + if(this.renderer) + this.renderer.player = false; //say to the old renderer to no more render player + p.player = true; //say to the new renderer to start render + this.renderer = p; //save the last renderer/square to avoid useless change + } + speed = p.speed; //set player the movement of the square to make it move with the square + fall = false; + } + } + + } + +// Mines : + + else if(p instanceof Mine) { + + if(this.x > p.x-p.size-10 && this.x < p.x + p.size ){ //colision test + + if(this.y+20 < p.y+p.size && this.y > p.y-p.size){ //collision test + this.x = this.startX; //the player respawn + this.y = this.startY; + p.explo(); //make the collided mine explodes + } + } + + } +// Bonus : + + else { + + if(this.x > p.x-p.size-10 && this.x < p.x + p.size ){ + + if(this.y+20 < p.y+p.size && this.y > p.y-p.size){ + this.parachute += 100; + p.disappear(); + } + } + + } + + } + + if(up && !fall){ //when up key is down and player is not falling : jump + this.up = 50; //add jump power to the player + } + + if(!fall) { //normal movement + + if(right) //when right key is down + this.x++; + else if(left) //when left key is down + this.x--; + + this.x -= speed; //add speed of mounted square + } + + if(space && fall && this.parachute > 0) { //when space key is down and player have parachute power + + if(right){ + this.x+= 0.5; + this.rotate = -5; //rotate player + this.parachute--; //decrease parachute power + this.renderPara = true; //render the parachute + this.y -= 1.5; //slow the fall + } + else if(left) { + this.x-= 0.5; + this.rotate = 5; + this.parachute--; + this.renderPara = true; + this.y -= 1.5; + } + else { + this.parachute--; + this.renderPara = true; + this.y -= 1.5; + } + + } + + if(this.up > 0) { //jump movement, when jump power is ok + + this.y-=this.up/8; //make the player jump + + if(right) + this.x += 1.1; + else if(left) + this.x -= 1.1; + + this.up--; + } + else if(this.up > -50 && fall) { //after jump falling movement + + if(right) + this.x += 0.8+this.up/80; + else if(left) + this.x -= 0.8+this.up/80; + + this.up--; + + } + + if(fall) { + this.y+=3; //make the player fall + } + + if(!this.renderer) //if player has no renderer (on the beginning) + this.render(); //render itself } \ No newline at end of file diff --git a/Games/Rectangular/js/Square.js b/Games/Rectangular/js/Square.js index cf8790bd5a..d5f37aa1b4 100644 --- a/Games/Rectangular/js/Square.js +++ b/Games/Rectangular/js/Square.js @@ -1,73 +1,73 @@ -/* - By Yhoyhoj : twitter.com/yhoyhoj -*/ - -function Square(x, y, size, color, speed, time) { - - this.x = x; - this.y = y; - this.size = size; - this.color = color; - this.speed = speed; - this.time = time; //if the square has a timer on it - this.player = false; //render player if true - - objects.push(this); //add it the the general objects list -} -Square.prototype.render = function() { - - c.save(); - - c.fillStyle = this.color; - c.shadowColor="rgba(0,0,0,0.5)"; - c.shadowBlur=7; - c.shadowOffsetX = -2; - c.shadowOffsetY = 2; - c.fillRect(this.x, this.y, this.size, this.size); - - if(this.time) { - var date = new Date(new Date() - seconds); - var text = ("0" + date.getMinutes()).slice(-2) + ":" + ("0"+date.getSeconds()).slice(-2); // add a 0 to have always two numbers - - c.restore(); - c.fillStyle = "white"; - c.shadowBlur=0; - c.shadowOffsetX = -0; - c.shadowOffsetY = 0; - c.font = this.size/3-5+"px Arial"; - c.textBaseline = "middle"; - c.fillText(text, Math.round(this.x+(this.size-c.measureText(text).width)/2), Math.round(this.y+this.size/2)); - } - - c.restore(); - - this.onRender(); -} -Square.prototype.onRender = function() { - - if(this.player) //render the player if set has player renderer - player.render(); - -} -Square.prototype.tick = function() { - - if(this.x < -this.size) { //if is no more one the screen - - if(this.time){ - this.size = 125-Math.random()*100; - this.color = randomColor(); - this.speed = 0.5+Math.random(); - this.x = canvas.width+this.size; - this.y = this.size+Math.random()*canvas.height-2*this.size+1; - } - else { - this.x = canvas.width+this.size; //put it back on the other side - this.y = Math.random()*canvas.height+1; //set random y position to avoid recognizable patterns - } - - } - else //if still ont the screen - this.x-= this.speed; //just make it move - - this.render(); +/* + By Yhoyhoj : twitter.com/yhoyhoj +*/ + +function Square(x, y, size, color, speed, time) { + + this.x = x; + this.y = y; + this.size = size; + this.color = color; + this.speed = speed; + this.time = time; //if the square has a timer on it + this.player = false; //render player if true + + objects.push(this); //add it the the general objects list +} +Square.prototype.render = function() { + + c.save(); + + c.fillStyle = this.color; + c.shadowColor="rgba(0,0,0,0.5)"; + c.shadowBlur=7; + c.shadowOffsetX = -2; + c.shadowOffsetY = 2; + c.fillRect(this.x, this.y, this.size, this.size); + + if(this.time) { + var date = new Date(new Date() - seconds); + var text = ("0" + date.getMinutes()).slice(-2) + ":" + ("0"+date.getSeconds()).slice(-2); // add a 0 to have always two numbers + + c.restore(); + c.fillStyle = "white"; + c.shadowBlur=0; + c.shadowOffsetX = -0; + c.shadowOffsetY = 0; + c.font = this.size/3-5+"px Arial"; + c.textBaseline = "middle"; + c.fillText(text, Math.round(this.x+(this.size-c.measureText(text).width)/2), Math.round(this.y+this.size/2)); + } + + c.restore(); + + this.onRender(); +} +Square.prototype.onRender = function() { + + if(this.player) //render the player if set has player renderer + player.render(); + +} +Square.prototype.tick = function() { + + if(this.x < -this.size) { //if is no more one the screen + + if(this.time){ + this.size = 125-Math.random()*100; + this.color = randomColor(); + this.speed = 0.5+Math.random(); + this.x = canvas.width+this.size; + this.y = this.size+Math.random()*canvas.height-2*this.size+1; + } + else { + this.x = canvas.width+this.size; //put it back on the other side + this.y = Math.random()*canvas.height+1; //set random y position to avoid recognizable patterns + } + + } + else //if still ont the screen + this.x-= this.speed; //just make it move + + this.render(); } \ No newline at end of file diff --git a/Games/Rectangular/js/input.js b/Games/Rectangular/js/input.js index 84fcde04a7..706571ad2e 100644 --- a/Games/Rectangular/js/input.js +++ b/Games/Rectangular/js/input.js @@ -1,55 +1,55 @@ -/* - By Yhoyhoj : twitter.com/yhoyhoj -*/ - -function onKeyDown(key){ - - switch(key) { - - case 38: - up = true; - break; - - case 39: - right = true; - break; - - case 37: - left = true; - break; - - case 32: - space = true; - break; - - } -} -function onKeyUp(key){ - - switch(key) { - - case 38: - up = false; - player.up = 0; - break; - - case 39: - right = false; - break; - - case 37: - left = false; - break; - - case 32: - space = false; - break; - - } -} -function onMouseMove(event){ - - x = event.clientX; - y = event.clientY; - +/* + By Yhoyhoj : twitter.com/yhoyhoj +*/ + +function onKeyDown(key){ + + switch(key) { + + case 38: + up = true; + break; + + case 39: + right = true; + break; + + case 37: + left = true; + break; + + case 32: + space = true; + break; + + } +} +function onKeyUp(key){ + + switch(key) { + + case 38: + up = false; + player.up = 0; + break; + + case 39: + right = false; + break; + + case 37: + left = false; + break; + + case 32: + space = false; + break; + + } +} +function onMouseMove(event){ + + x = event.clientX; + y = event.clientY; + } \ No newline at end of file diff --git a/Games/Rectangular/js/main.js b/Games/Rectangular/js/main.js index 9f0a91d45a..47c4928a50 100644 --- a/Games/Rectangular/js/main.js +++ b/Games/Rectangular/js/main.js @@ -1,198 +1,198 @@ -/* - By Yhoyhoj : twitter.com/yhoyhoj -*/ - -function randomHexa() { //return a random hexa number - - var hexa = ['A', 'B', 'C', 'D' ,'E', 'F']; - - var number = Math.round(Math.random()*(16-2)+1); - - if(number > 9) { - number = hexa[number-10]; - } - - return number; -} -function randomColor() { //return random hexa color - var color = '#'; - for(var i =0; i < 6; i++){ - color+= randomHexa(); - } - return color; -} -function init() { //create squares and first bonus/mines, create the player - - for(var i = 0; i < canvas.width/15; i++){ - - var pp = new Square(Math.random()*canvas.width+1, Math.random()*canvas.height+1, 15+Math.random()*((100-15)+1), randomColor(), 0.5+Math.random(), false); - } - - player = new Player(canvas.width/5, -25); - - for(var i = 0; i < canvas.width/320; i++){ //number of mines and bonus relative to the screen width - var mine = new Mine(Math.random()*canvas.width+1, Math.random()*canvas.height+1, 100-Math.random()*30, 0.5+Math.random()); - var bonus = new Bonus(Math.random()*canvas.width+1, Math.random()*canvas.height+1); - } -} -function drawArrow() { - - c.restore(); - c.save(); - c.fillStyle = "black"; - c.translate(canvas.width/5-30, 10); - c.rotate(Math.PI * -10 / 180); - c.beginPath(); - c.moveTo(0, 90); - c.lineTo(+25, 50); - c.lineTo(-25, 50); - c.fill(); - c.moveTo(-8, 50); - c.lineTo(-12, 0) - c.lineTo(+12, 0) - c.lineTo(+8, 50); - c.fill(); - c.font = "20px Impact"; - c.fillText('ICI', +35 - c.measureText('ICI').width/2, 20); - c.restore(); - - c.fillStyle = "black"; - c.fillRect(canvas.width/5-50, -5, 3, 55); - c.fillRect(canvas.width/5-50, 20, 30, 3); - c.fillRect(canvas.width/5-50, 45, 30, 3); - - c.restore(); - -} -function onWin() { //draw the on win screen - - c.restore(); - c.fillStyle = "black"; - c.font = "70px Arial"; - c.fillText("You won !", canvas.width/2 - c.measureText("You won !").width/2, canvas.height/2 -70/2); - c.font = "20px Arial"; - c.fillText("Reload the page to retry (your best time will be saved).", canvas.width/2 - c.measureText("Reload the page to retry (your best time will be saved).").width/2, canvas.height/2+8 -15/2); - c.font = "15px Arial"; - c.fillText("Time : "+elapsedTime, canvas.width/2 - c.measureText("Time : "+elapsedTime).width/2, canvas.height/2+30 -15/2); - - if(localStorage && localStorage.getItem('rectangularBest') != null) { - var time = localStorage.getItem('rectangularBest'); - c.fillText("Best time : "+time, canvas.width/2 - c.measureText("Best time : "+time).width/2, canvas.height/2+50 -15/2); - } -} - - -var canvas = document.getElementsByTagName("canvas")[0]; -canvas.width = window.innerWidth; -canvas.height = window.innerHeight; -var c = canvas.getContext("2d"); -var objects = []; -var player; -var seconds; -var left, right, up, space; -var started = false; -var win = false; -var elapsedTime; - -var menu = document.getElementById('menu'); -menu.style.left = canvas.width/2-250+"px"; -menu.style.top = canvas.height/2-250+"px"; - - -document.onkeydown = function (evt) { - - onKeyDown(evt.keyCode); - -}; - -document.onkeyup = function(evt) { - - onKeyUp(evt.keyCode); - -}; - -document.getElementsByTagName('a')[0].onclick = function() { //on wlick on the play button - menu.style.opacity = 0; - seconds = new Date(); //save the start date (bad variable name) - var pp = new Square(canvas.width+100, Math.random()*canvas.height+1, 125-Math.random()*100, randomColor(), 0.5+Math.random(), true); // create a timer square - started = true; -}; - -init(); - -update(); - - - - -function update() { - - if(window.webkitRequestAnimationFrame) - webkitRequestAnimationFrame(update); - - else if(window.mozRequestAnimationFrame) - mozRequestAnimationFrame(update); - - else if((window.msRequestAnimationFrame)) - msRequestAnimationFrame(update); - else if(window.requestAnimationFrame) - requestAnimationFrame(update); - else - setTimeout(update, 1000/40); - - c.save(); - - //erase the screen - - c.fillStyle = "#FAFAED"; - c.shadowBlur=0; - c.shadowOffsetX = -0; - c.shadowOffsetY = 0; - c.fillRect(0,0, canvas.width, canvas.height); - c.fillStyle= "#FA4646" - c.fillRect(canvas.width-15, 0, 5, canvas.height); - - drawArrow(); - - c.restore(); - - for(var i = 0; i < objects.length; i++) { - - var p = objects[i]; - p.tick(); - } - - if(started) //the player is updated/rendered only if the game has begun - player.tick(); - - if(win) //will draw the on win screen only if win - onWin(); - -} - -/* --- Changelog ---- - -*09/08/12 -- Better renderer system for player, to avoid a z-axis bug -- Added local high-score system - -*09/06/12 -- Added Parachute and parachute reload -- increased player velocity - -*09/05/12 -- Added Mines -- Pre-added parachute, to be finished - -*09/04/12 -- Better jump -- Added fantasy spawn sign -- Now easier -- Separated source code in several files for better understanding - -*09/03/12 : -- First Release -- Slight fall speed inscrease - -*/ - +/* + By Yhoyhoj : twitter.com/yhoyhoj +*/ + +function randomHexa() { //return a random hexa number + + var hexa = ['A', 'B', 'C', 'D' ,'E', 'F']; + + var number = Math.round(Math.random()*(16-2)+1); + + if(number > 9) { + number = hexa[number-10]; + } + + return number; +} +function randomColor() { //return random hexa color + var color = '#'; + for(var i =0; i < 6; i++){ + color+= randomHexa(); + } + return color; +} +function init() { //create squares and first bonus/mines, create the player + + for(var i = 0; i < canvas.width/15; i++){ + + var pp = new Square(Math.random()*canvas.width+1, Math.random()*canvas.height+1, 15+Math.random()*((100-15)+1), randomColor(), 0.5+Math.random(), false); + } + + player = new Player(canvas.width/5, -25); + + for(var i = 0; i < canvas.width/320; i++){ //number of mines and bonus relative to the screen width + var mine = new Mine(Math.random()*canvas.width+1, Math.random()*canvas.height+1, 100-Math.random()*30, 0.5+Math.random()); + var bonus = new Bonus(Math.random()*canvas.width+1, Math.random()*canvas.height+1); + } +} +function drawArrow() { + + c.restore(); + c.save(); + c.fillStyle = "black"; + c.translate(canvas.width/5-30, 10); + c.rotate(Math.PI * -10 / 180); + c.beginPath(); + c.moveTo(0, 90); + c.lineTo(+25, 50); + c.lineTo(-25, 50); + c.fill(); + c.moveTo(-8, 50); + c.lineTo(-12, 0) + c.lineTo(+12, 0) + c.lineTo(+8, 50); + c.fill(); + c.font = "20px Impact"; + c.fillText('ICI', +35 - c.measureText('ICI').width/2, 20); + c.restore(); + + c.fillStyle = "black"; + c.fillRect(canvas.width/5-50, -5, 3, 55); + c.fillRect(canvas.width/5-50, 20, 30, 3); + c.fillRect(canvas.width/5-50, 45, 30, 3); + + c.restore(); + +} +function onWin() { //draw the on win screen + + c.restore(); + c.fillStyle = "black"; + c.font = "70px Arial"; + c.fillText("You won !", canvas.width/2 - c.measureText("You won !").width/2, canvas.height/2 -70/2); + c.font = "20px Arial"; + c.fillText("Reload the page to retry (your best time will be saved).", canvas.width/2 - c.measureText("Reload the page to retry (your best time will be saved).").width/2, canvas.height/2+8 -15/2); + c.font = "15px Arial"; + c.fillText("Time : "+elapsedTime, canvas.width/2 - c.measureText("Time : "+elapsedTime).width/2, canvas.height/2+30 -15/2); + + if(localStorage && localStorage.getItem('rectangularBest') != null) { + var time = localStorage.getItem('rectangularBest'); + c.fillText("Best time : "+time, canvas.width/2 - c.measureText("Best time : "+time).width/2, canvas.height/2+50 -15/2); + } +} + + +var canvas = document.getElementsByTagName("canvas")[0]; +canvas.width = window.innerWidth; +canvas.height = window.innerHeight; +var c = canvas.getContext("2d"); +var objects = []; +var player; +var seconds; +var left, right, up, space; +var started = false; +var win = false; +var elapsedTime; + +var menu = document.getElementById('menu'); +menu.style.left = canvas.width/2-250+"px"; +menu.style.top = canvas.height/2-250+"px"; + + +document.onkeydown = function (evt) { + + onKeyDown(evt.keyCode); + +}; + +document.onkeyup = function(evt) { + + onKeyUp(evt.keyCode); + +}; + +document.getElementsByTagName('a')[0].onclick = function() { //on wlick on the play button + menu.style.opacity = 0; + seconds = new Date(); //save the start date (bad variable name) + var pp = new Square(canvas.width+100, Math.random()*canvas.height+1, 125-Math.random()*100, randomColor(), 0.5+Math.random(), true); // create a timer square + started = true; +}; + +init(); + +update(); + + + + +function update() { + + if(window.webkitRequestAnimationFrame) + webkitRequestAnimationFrame(update); + + else if(window.mozRequestAnimationFrame) + mozRequestAnimationFrame(update); + + else if((window.msRequestAnimationFrame)) + msRequestAnimationFrame(update); + else if(window.requestAnimationFrame) + requestAnimationFrame(update); + else + setTimeout(update, 1000/40); + + c.save(); + + //erase the screen + + c.fillStyle = "#FAFAED"; + c.shadowBlur=0; + c.shadowOffsetX = -0; + c.shadowOffsetY = 0; + c.fillRect(0,0, canvas.width, canvas.height); + c.fillStyle= "#FA4646" + c.fillRect(canvas.width-15, 0, 5, canvas.height); + + drawArrow(); + + c.restore(); + + for(var i = 0; i < objects.length; i++) { + + var p = objects[i]; + p.tick(); + } + + if(started) //the player is updated/rendered only if the game has begun + player.tick(); + + if(win) //will draw the on win screen only if win + onWin(); + +} + +/* --- Changelog ---- + +*09/08/12 +- Better renderer system for player, to avoid a z-axis bug +- Added local high-score system + +*09/06/12 +- Added Parachute and parachute reload +- increased player velocity + +*09/05/12 +- Added Mines +- Pre-added parachute, to be finished + +*09/04/12 +- Better jump +- Added fantasy spawn sign +- Now easier +- Separated source code in several files for better understanding + +*09/03/12 : +- First Release +- Slight fall speed inscrease + +*/ + diff --git a/Games/Reflex_Game/index.html b/Games/Reflex_Game/index.html index b559ced45d..01e204c078 100644 --- a/Games/Reflex_Game/index.html +++ b/Games/Reflex_Game/index.html @@ -1,47 +1,47 @@ - - - - - - - - - Reflex Time Game - - - -

      Reflex Game

      -

      Test your Response time!

      How To Play

      -

      Click on "Start" first, and wait until the -background color changes. As soon as it changes, hit "stop!" -

      - -
      -
      -

      Change background color to:

      -
      -
      - - -
      - -
      - - - + + + + + + + + + Reflex Time Game + + + +

      Reflex Game

      +

      Test your Response time!

      How To Play

      +

      Click on "Start" first, and wait until the +background color changes. As soon as it changes, hit "stop!" +

      + +
      +
      +

      Change background color to:

      +
      +
      + + +
      + +
      + + + diff --git a/Games/Reflex_Game/script.js b/Games/Reflex_Game/script.js index 07fadca10d..16cd662e41 100644 --- a/Games/Reflex_Game/script.js +++ b/Games/Reflex_Game/script.js @@ -1,87 +1,87 @@ -var startTime=new Date(); -var endTime=new Date(); -var startPressed=false; -var bgChangeStarted=false; -var maxWait=20; -var timerID; - -function startTest() -{ - document.body.style.background=document.response.bgColorChange.options[ -document.response.bgColorChange.selectedIndex].text; - bgChangeStarted=true; - startTime=new Date(); -} - -function remark(responseTime) -{ - var responseString=""; - if (responseTime < 0.20) - responseString="Well done!"; - if (responseTime >= 0.30 && responseTime < 0.20) - responseString="Nice!"; - if (responseTime >=0.40 && responseTime < 0.30) - responseString="Good but could be better..."; - if (responseTime >=0.50 && responseTime < 0.60) - responseString="Fine but keep practicing!"; - if (responseTime >=0.60 && responseTime < 1) - responseString="Seems you need to practise !"; - if (responseTime >=1) - responseString="You need to improve and you can !!"; - - return responseString; -} - -function stopTest() -{ - if(bgChangeStarted) - { - endTime=new Date(); - var responseTime=(endTime.getTime()-startTime.getTime())/1000; - - document.body.style.background="white"; - alert("Your response time is: " + responseTime + - " seconds " + "\n" + remark(responseTime)); - startPressed=false; - bgChangeStarted=false; - } - else - { - if (!startPressed) - { - alert("press start first to start test"); - } - else - { - clearTimeout(timerID); - startPressed=false; - alert("you pressed too early!"); - } - } -} - -var randMULTIPLIER=0x015a4e35; -var randINCREMENT=1; -var today=new Date(); -var randSeed=today.getSeconds(); -function randNumber() -{ - randSeed = (randMULTIPLIER * randSeed + randINCREMENT) % (1 << 31); - return((randSeed >> 15) & 0x7fff) / 32767; -} - -function startit() -{ - if(startPressed) - { - alert("Already started. Press stop to stop"); - return; - } - else - { - startPressed=true; - timerID=setTimeout('startTest()', 6000*randNumber()); - } -} - - +var startTime=new Date(); +var endTime=new Date(); +var startPressed=false; +var bgChangeStarted=false; +var maxWait=20; +var timerID; + +function startTest() +{ + document.body.style.background=document.response.bgColorChange.options[ +document.response.bgColorChange.selectedIndex].text; + bgChangeStarted=true; + startTime=new Date(); +} + +function remark(responseTime) +{ + var responseString=""; + if (responseTime < 0.20) + responseString="Well done!"; + if (responseTime >= 0.30 && responseTime < 0.20) + responseString="Nice!"; + if (responseTime >=0.40 && responseTime < 0.30) + responseString="Good but could be better..."; + if (responseTime >=0.50 && responseTime < 0.60) + responseString="Fine but keep practicing!"; + if (responseTime >=0.60 && responseTime < 1) + responseString="Seems you need to practise !"; + if (responseTime >=1) + responseString="You need to improve and you can !!"; + + return responseString; +} + +function stopTest() +{ + if(bgChangeStarted) + { + endTime=new Date(); + var responseTime=(endTime.getTime()-startTime.getTime())/1000; + + document.body.style.background="white"; + alert("Your response time is: " + responseTime + + " seconds " + "\n" + remark(responseTime)); + startPressed=false; + bgChangeStarted=false; + } + else + { + if (!startPressed) + { + alert("press start first to start test"); + } + else + { + clearTimeout(timerID); + startPressed=false; + alert("you pressed too early!"); + } + } +} + +var randMULTIPLIER=0x015a4e35; +var randINCREMENT=1; +var today=new Date(); +var randSeed=today.getSeconds(); +function randNumber() +{ + randSeed = (randMULTIPLIER * randSeed + randINCREMENT) % (1 << 31); + return((randSeed >> 15) & 0x7fff) / 32767; +} + +function startit() +{ + if(startPressed) + { + alert("Already started. Press stop to stop"); + return; + } + else + { + startPressed=true; + timerID=setTimeout('startTest()', 6000*randNumber()); + } +} + + diff --git a/Games/Reflex_Game/style.css b/Games/Reflex_Game/style.css index a2d77df2b9..b4a22261e5 100644 --- a/Games/Reflex_Game/style.css +++ b/Games/Reflex_Game/style.css @@ -1,86 +1,86 @@ -@media only screen and (min-width: 600px) { -input[type=button]{ - background-color: #c7f3e9; - border: 2px solid rgb(1, 100, 1); - color: rgb(46, 1, 1); - padding: 16px 32px; - text-decoration: none; - display: block; - margin-right: auto; - margin-left: auto; - width: 100px; - cursor: pointer; - font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; - font-weight: 900; -} -input:hover{ - color: rgb(247, 250, 250); - background-color: rgb(1, 56, 56); - transition: color 0.5s; -} -input:active{ - color: rgb(247, 250, 250); - background-color: rgb(1, 56, 56); - box-shadow: 3px 4px 5px black; -} - -body{ - background-color: white; -} -p, h1, h2, h3{ - font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; - color: rgb(2, 112, 76); - text-align: center; - font-weight: bold; -} -select{ - display: block; - margin-right: auto; - margin-left: auto; - border: 2px solid rgb(0, 78, 0); -} -} - -@media only screen and (max-width: 600px) { - input[type=button]{ - background-color: #c7f3e9; - border: 2px solid rgb(1, 100, 1); - color: rgb(46, 1, 1); - padding: 16px 32px; - text-decoration: none; - display: block; - margin-right: auto; - margin-left: auto; - width: 100px; - cursor: pointer; - font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; - font-weight: 900; - } - input:hover{ - color: rgb(247, 250, 250); - background-color: rgb(1, 56, 56); - transition: color 0.5s; - } - input:active{ - color: rgb(247, 250, 250); - background-color: rgb(1, 56, 56); - box-shadow: 3px 4px 5px black; - } - - body{ - background-color: white; - } - p, h1, h2, h3{ - font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; - color: rgb(2, 112, 76); - text-align: center; - font-weight: bold; - } - select{ - display: block; - margin-right: auto; - margin-left: auto; - border: 2px solid rgb(0, 78, 0); - } -} - +@media only screen and (min-width: 600px) { +input[type=button]{ + background-color: #c7f3e9; + border: 2px solid rgb(1, 100, 1); + color: rgb(46, 1, 1); + padding: 16px 32px; + text-decoration: none; + display: block; + margin-right: auto; + margin-left: auto; + width: 100px; + cursor: pointer; + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + font-weight: 900; +} +input:hover{ + color: rgb(247, 250, 250); + background-color: rgb(1, 56, 56); + transition: color 0.5s; +} +input:active{ + color: rgb(247, 250, 250); + background-color: rgb(1, 56, 56); + box-shadow: 3px 4px 5px black; +} + +body{ + background-color: white; +} +p, h1, h2, h3{ + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + color: rgb(2, 112, 76); + text-align: center; + font-weight: bold; +} +select{ + display: block; + margin-right: auto; + margin-left: auto; + border: 2px solid rgb(0, 78, 0); +} +} + +@media only screen and (max-width: 600px) { + input[type=button]{ + background-color: #c7f3e9; + border: 2px solid rgb(1, 100, 1); + color: rgb(46, 1, 1); + padding: 16px 32px; + text-decoration: none; + display: block; + margin-right: auto; + margin-left: auto; + width: 100px; + cursor: pointer; + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + font-weight: 900; + } + input:hover{ + color: rgb(247, 250, 250); + background-color: rgb(1, 56, 56); + transition: color 0.5s; + } + input:active{ + color: rgb(247, 250, 250); + background-color: rgb(1, 56, 56); + box-shadow: 3px 4px 5px black; + } + + body{ + background-color: white; + } + p, h1, h2, h3{ + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + color: rgb(2, 112, 76); + text-align: center; + font-weight: bold; + } + select{ + display: block; + margin-right: auto; + margin-left: auto; + border: 2px solid rgb(0, 78, 0); + } +} + diff --git a/Games/Riddle_Room/README.md b/Games/Riddle_Room/README.md index ebff4fda87..cef54eb416 100644 --- a/Games/Riddle_Room/README.md +++ b/Games/Riddle_Room/README.md @@ -1,37 +1,37 @@ -# **Riddle_Room** - ---- - -
      - -## **Description ๐Ÿ“ƒ** - -- Riddle Room is a puzzle game where you must solve a series of puzzles in order to escape the room. The puzzles are all based on different programming concepts, such as HTML, CSS, and JavaScript. - -## **functionalities ๐ŸŽฎ** - -- **Challenging puzzles**: The puzzles in the game are designed to be challenging, but they are also fair. If you get stuck, you can always ask for help from the community. -- **Educational**: The puzzles in the game are based on different programming concepts, such as HTML, CSS, and JavaScript. This makes the game a great way to learn about these concepts. -- **Visually appealing**: The game is visually appealing and engaging. The puzzles are presented in a way that is both challenging and fun. -- **Social**: The game has a forum where you can discuss the puzzles with other players. This is a great way to get help if you are stuck, or to share your own solutions. -
      - -## **How to play? ๐Ÿ•น๏ธ** - -- To play the game, you will need to have a basic understanding of these programming concepts. However, the game is also designed to be challenging, so even if you don't have a lot of experience with programming, you should still be able to enjoy it. -- The game starts with a short introduction that explains the basic premise. Then, you will be presented with the first puzzle. To solve the puzzle, you will need to use the knowledge you have about programming to interact with the elements on the screen. -- Once you have solved the first puzzle, you will be presented with the second puzzle, and so on. The puzzles become increasingly challenging as you progress, but the rewards are also greater. - -
      - -## **Screenshots ๐Ÿ“ธ** - -
      - - -![Image](Riddle_Room.png) - -
      - -## **Working video ๐Ÿ“น** +# **Riddle_Room** + +--- + +
      + +## **Description ๐Ÿ“ƒ** + +- Riddle Room is a puzzle game where you must solve a series of puzzles in order to escape the room. The puzzles are all based on different programming concepts, such as HTML, CSS, and JavaScript. + +## **functionalities ๐ŸŽฎ** + +- **Challenging puzzles**: The puzzles in the game are designed to be challenging, but they are also fair. If you get stuck, you can always ask for help from the community. +- **Educational**: The puzzles in the game are based on different programming concepts, such as HTML, CSS, and JavaScript. This makes the game a great way to learn about these concepts. +- **Visually appealing**: The game is visually appealing and engaging. The puzzles are presented in a way that is both challenging and fun. +- **Social**: The game has a forum where you can discuss the puzzles with other players. This is a great way to get help if you are stuck, or to share your own solutions. +
      + +## **How to play? ๐Ÿ•น๏ธ** + +- To play the game, you will need to have a basic understanding of these programming concepts. However, the game is also designed to be challenging, so even if you don't have a lot of experience with programming, you should still be able to enjoy it. +- The game starts with a short introduction that explains the basic premise. Then, you will be presented with the first puzzle. To solve the puzzle, you will need to use the knowledge you have about programming to interact with the elements on the screen. +- Once you have solved the first puzzle, you will be presented with the second puzzle, and so on. The puzzles become increasingly challenging as you progress, but the rewards are also greater. + +
      + +## **Screenshots ๐Ÿ“ธ** + +
      + + +![Image](Riddle_Room.png) + +
      + +## **Working video ๐Ÿ“น** \ No newline at end of file diff --git a/Games/Rock_Paper_Scissors/README.md b/Games/Rock_Paper_Scissors/README.md index a44b497cc9..aaed71209e 100644 --- a/Games/Rock_Paper_Scissors/README.md +++ b/Games/Rock_Paper_Scissors/README.md @@ -1,35 +1,35 @@ -# **ROCK_PAPER_SCISSORS** - ---- - -
      - -## **Description ๐Ÿ“ƒ** - -- The game is based on the classic game of rock paper and scissors. - -## **functionalities ๐ŸŽฎ** - -- In this,the user chooses one from the three options available and the computer does the same simultaneously. And thus, making the combinations, one of the both wins or either its a tie -
      - -## **How to play? ๐Ÿ•น๏ธ** - -- In this,the user chooses one from the three options available and the computer does the same simultaneously. And thus, making the combinations, one of the both wins or either its a tie -1. Rock defeats Scissor -2. Scissor defeats Paper -3. Paper defeats Rock - -
      - -## **Screenshots ๐Ÿ“ธ** - -
      - - - -![image](..//..//assets/images/Rock_Paper_Scissors.png) -
      - -## **Working video ๐Ÿ“น** - +# **ROCK_PAPER_SCISSORS** + +--- + +
      + +## **Description ๐Ÿ“ƒ** + +- The game is based on the classic game of rock paper and scissors. + +## **functionalities ๐ŸŽฎ** + +- In this,the user chooses one from the three options available and the computer does the same simultaneously. And thus, making the combinations, one of the both wins or either its a tie +
      + +## **How to play? ๐Ÿ•น๏ธ** + +- In this,the user chooses one from the three options available and the computer does the same simultaneously. And thus, making the combinations, one of the both wins or either its a tie +1. Rock defeats Scissor +2. Scissor defeats Paper +3. Paper defeats Rock + +
      + +## **Screenshots ๐Ÿ“ธ** + +
      + + + +![image](..//..//assets/images/Rock_Paper_Scissors.png) +
      + +## **Working video ๐Ÿ“น** + diff --git a/Games/Rock_Paper_Scissors/index.html b/Games/Rock_Paper_Scissors/index.html index fafc269898..eb0c337e5b 100644 --- a/Games/Rock_Paper_Scissors/index.html +++ b/Games/Rock_Paper_Scissors/index.html @@ -1,44 +1,44 @@ - - - - Rock Paper Scissors - - - - - -
      -

      Rock Paper Scissors

      -
      -
      -

      Your Choice:

      - - - -
      -
      -

      Make your move!

      -

      Score: You - 0 | Computer - 0

      -

      Ties: 0

      -
      -
      -

      Computer's Choice:

      -
      -
      -
      - - - - - + + + + Rock Paper Scissors + + + + + +
      +

      Rock Paper Scissors

      +
      +
      +

      Your Choice:

      + + + +
      +
      +

      Make your move!

      +

      Score: You - 0 | Computer - 0

      +

      Ties: 0

      +
      +
      +

      Computer's Choice:

      +
      +
      +
      + + + + + diff --git a/Games/Rock_Paper_Scissors/script.js b/Games/Rock_Paper_Scissors/script.js index f4f1559aa2..3aee779196 100644 --- a/Games/Rock_Paper_Scissors/script.js +++ b/Games/Rock_Paper_Scissors/script.js @@ -1,90 +1,90 @@ -var choices = ["rock", "paper", "scissors"]; -var userScore = 0; -var computerScore = 0; -var tieScore = 0; -let isAutoPlaying=false; -let id; - -function autoPlay(){ - if(! isAutoPlaying){ - id=setInterval(function (){ - const playerMove=getComputerChoice(); - play(playerMove); - },2000); - isAutoPlaying=true; - - } else{ - clearInterval(id); - isAutoPlaying=false; - - } - -} -var resultText = document.getElementById("resultText"); -var scoreText = document.getElementById("scoreText"); -var computerEmoji = document.getElementById("computerEmoji"); -function getComputerChoice() { - var randomIndex = Math.floor(Math.random() * choices.length); - return choices[randomIndex]; -} - -function determineWinner(userChoice, computerChoice) { - if (userChoice === computerChoice) { - return "It's a tie!"; - } else if ( - (userChoice === "rock" && computerChoice === "scissors") || - (userChoice === "paper" && computerChoice === "rock") || - (userChoice === "scissors" && computerChoice === "paper") - ) { - return "You win!"; - } else { - return "Computer wins!"; - } -} - -function updateScore(result) { - if (result === "You win!") { - userScore++; - } else if (result === "Computer wins!") { - computerScore++; - }else{ - tieScore++; - } - updateResult(); - -} -function updateResult(){ - scoreText.textContent = "Score: You - " + `${userScore}` + " | Computer - " + `${computerScore}`; - tieText.textContent = "Ties: "+`${tieScore}`; -} -function play(userChoice) { - var computerChoice = getComputerChoice(); - - computerEmoji.textContent = getEmoji(computerChoice); - - var result = determineWinner(userChoice, computerChoice); - resultText.textContent = result; - - updateScore(result); -} - -function getEmoji(choice) { - switch (choice) { - case "rock": - return "๐Ÿ‘Š"; - case "paper": - return "โœ‹"; - case "scissors": - return "โœŒ๏ธ"; - default: - return ""; - } -} -function change(){ - const name=document.querySelector('.but5'); - if(name.innerHTML==='Auto Play'){ - name.innerHTML='Stop Play'; - }else{ - name.innerHTML='Auto Play'; - } -} +var choices = ["rock", "paper", "scissors"]; +var userScore = 0; +var computerScore = 0; +var tieScore = 0; +let isAutoPlaying=false; +let id; + +function autoPlay(){ + if(! isAutoPlaying){ + id=setInterval(function (){ + const playerMove=getComputerChoice(); + play(playerMove); + },2000); + isAutoPlaying=true; + + } else{ + clearInterval(id); + isAutoPlaying=false; + + } + +} +var resultText = document.getElementById("resultText"); +var scoreText = document.getElementById("scoreText"); +var computerEmoji = document.getElementById("computerEmoji"); +function getComputerChoice() { + var randomIndex = Math.floor(Math.random() * choices.length); + return choices[randomIndex]; +} + +function determineWinner(userChoice, computerChoice) { + if (userChoice === computerChoice) { + return "It's a tie!"; + } else if ( + (userChoice === "rock" && computerChoice === "scissors") || + (userChoice === "paper" && computerChoice === "rock") || + (userChoice === "scissors" && computerChoice === "paper") + ) { + return "You win!"; + } else { + return "Computer wins!"; + } +} + +function updateScore(result) { + if (result === "You win!") { + userScore++; + } else if (result === "Computer wins!") { + computerScore++; + }else{ + tieScore++; + } + updateResult(); + +} +function updateResult(){ + scoreText.textContent = "Score: You - " + `${userScore}` + " | Computer - " + `${computerScore}`; + tieText.textContent = "Ties: "+`${tieScore}`; +} +function play(userChoice) { + var computerChoice = getComputerChoice(); + + computerEmoji.textContent = getEmoji(computerChoice); + + var result = determineWinner(userChoice, computerChoice); + resultText.textContent = result; + + updateScore(result); +} + +function getEmoji(choice) { + switch (choice) { + case "rock": + return "๐Ÿ‘Š"; + case "paper": + return "โœ‹"; + case "scissors": + return "โœŒ๏ธ"; + default: + return ""; + } +} +function change(){ + const name=document.querySelector('.but5'); + if(name.innerHTML==='Auto Play'){ + name.innerHTML='Stop Play'; + }else{ + name.innerHTML='Auto Play'; + } +} diff --git a/Games/Rock_Paper_Scissors/style.css b/Games/Rock_Paper_Scissors/style.css index c653ee6e60..4228c96c5c 100644 --- a/Games/Rock_Paper_Scissors/style.css +++ b/Games/Rock_Paper_Scissors/style.css @@ -1,85 +1,85 @@ -body { - color: whitesmoke; - font-family:fantasy; - text-align: center; - margin-top: 100px; -} - -@font-face { - font-family: header; - src: url(assets/KaushanScript-Regular.ttf); -} - -h1 { - color: goldenrod; - font-family:header; - font-size: 50px; -} - -#game { - display: flex; - justify-content: center; - align-items: center; - margin-top: 50px; -} - -#userPanel, -#computerPanel { - flex: 1; -} - -#userPanel p, -#computerPanel p { - font-size: 18px; -} - -.emojiButton { - height: 100px; - width: 100px; - font-size: 75px; -} - -body{ - background-color: rgb(55, 55, 223); -} - -button{ - border: 0px; - background-color: rgb(55, 55, 223); -} - -#computerEmoji { - font-size: 100px; -} - -#resultPanel { - flex: 1; -} - -#resultText { - font-size: 24px; - margin-bottom: 20px; -} - -#scoreText { - font-size: 18px; -} -#tieText{ - font-size: 18px; -} -.btn{ - color: white; - background: transparent; - border: 2px solid black; - border-radius: 6px; - margin-top: 6px; - height: 43px; - cursor: pointer; -} -.btn:hover{ - border: 2px solid white; - background-color: black; -} -.but5{ - width: 86px; +body { + color: whitesmoke; + font-family:fantasy; + text-align: center; + margin-top: 100px; +} + +@font-face { + font-family: header; + src: url(assets/KaushanScript-Regular.ttf); +} + +h1 { + color: goldenrod; + font-family:header; + font-size: 50px; +} + +#game { + display: flex; + justify-content: center; + align-items: center; + margin-top: 50px; +} + +#userPanel, +#computerPanel { + flex: 1; +} + +#userPanel p, +#computerPanel p { + font-size: 18px; +} + +.emojiButton { + height: 100px; + width: 100px; + font-size: 75px; +} + +body{ + background-color: rgb(55, 55, 223); +} + +button{ + border: 0px; + background-color: rgb(55, 55, 223); +} + +#computerEmoji { + font-size: 100px; +} + +#resultPanel { + flex: 1; +} + +#resultText { + font-size: 24px; + margin-bottom: 20px; +} + +#scoreText { + font-size: 18px; +} +#tieText{ + font-size: 18px; +} +.btn{ + color: white; + background: transparent; + border: 2px solid black; + border-radius: 6px; + margin-top: 6px; + height: 43px; + cursor: pointer; +} +.btn:hover{ + border: 2px solid white; + background-color: black; +} +.but5{ + width: 86px; } \ No newline at end of file diff --git a/Games/Roll_Race/index.html b/Games/Roll_Race/index.html index 2e8ac3858d..38f98b4b62 100644 --- a/Games/Roll_Race/index.html +++ b/Games/Roll_Race/index.html @@ -1,56 +1,56 @@ - - - - - - - - Roll Race - - - - - - - -
      -
      -
      -

      Roll Race

      -
      -

      This is a simple game played between two players. The player starts when they get a "6" on his dice. - Then, their representative (the ๐Ÿต) moves forward as many places as the dice shows. The first player to reach the 10-block mark wins. -

      -

      -

      - -
      - display img - -
      -
      -
      -
      -

      Player 1

      - path img -
      -
      -

      Player 2

      - path img -
      -
      -
      - -
      -

      Turn

      - -
      -
      - - - - - + + + + + + + + Roll Race + + + + + + + +
      +
      +
      +

      Roll Race

      +
      +

      This is a simple game played between two players. The player starts when they get a "6" on his dice. + Then, their representative (the ๐Ÿต) moves forward as many places as the dice shows. The first player to reach the 10-block mark wins. +

      +

      +

      + +
      + display img + +
      +
      +
      +
      +

      Player 1

      + path img +
      +
      +

      Player 2

      + path img +
      +
      +
      + +
      +

      Turn

      + +
      +
      + + + + + \ No newline at end of file diff --git a/Games/Roll_Race/index.js b/Games/Roll_Race/index.js index aece81a8d2..f96773d7b8 100644 --- a/Games/Roll_Race/index.js +++ b/Games/Roll_Race/index.js @@ -1,146 +1,146 @@ -var name1 = "Player1"; -var name2 = "Player2"; -$(".start").click(function(){ - $(".diceimg").css("opacity","1"); - - dicebtn.style.display='block'; - - name1= document.getElementById("pl1").value; - name2= document.getElementById("pl2").value; - -if (name1!=name2){ - - let ctr = 1, c1 = -1, c2 = -1; - if (name1===""||name2==="") alert("Enter the name."); - else{ - window.location="#target"; -document.getElementById("plr1").innerHTML = name1; -document.getElementById("plr2").innerHTML = name2; - $(".start").text("New Game"); - - $(".pl1path").attr("src","images\\path\\path-1.png"); - $(".pl2path").attr("src","images\\path\\path-1.png"); - $(".turn").text(name1+"\'s turn"); - - $(".roll").click(function(){ - //ctr++; - var num=Math.floor(Math.random()*6+1); - $(".diceimg").attr("src","images\\dice\\dice" + num + ".png"); - if(num == 6){ - $(".turn").text("Roll Again..."); - if(ctr % 2 == 1){ - if(c1==-1){ - c1=0; - } - else{ - if(c1 + num <= 9){ - c1 += num; - } - else{ - return; - } - if(c1==9){ - $(".pl1path").attr("src","images\\path\\pathvictory.png"); - $(".turn").text(name1+"\ wins!!"); - dicebtn.style.display='none'; - // $(".turn").hide(); - $(".diceimg").css("opacity","0.5"); - return; - } - // $(".pl1path").attr("src","images\\path\\path" + c1 +".png"); - // return; - } - $(".pl1path").attr("src","images\\path\\path" + c1 +".png"); - return; - } - else if(ctr % 2 == 0){ - if(c2==-1){ - c2=0; - } - else{ - if(c2 + num <= 9){ - c2 += num; - } - else{ - return; - } - if(c2==9){ - $(".pl2path").attr("src","images\\path\\pathvictory.png"); - $(".turn").text(name2+"\ wins!!"); - dicebtn.style.display='none'; - // $(".turn").hide(); - $(".diceimg").css("opacity","0.5"); - return; - } - // $(".pl2path").attr("src","images\\path\\path" + c2 +".png"); - // return; - } - $(".pl2path").attr("src","images\\path\\path" + c2 +".png"); - return; - } - // ctr--; - } //code for when dice rolls six(6) - else{ - if(ctr % 2 == 0){ - $(".turn").text(name1+"\'s turn"); - } - else{ - $(".turn").text(name2+"\'s turn"); - } - if((c1 == -1 && ctr % 2 == 1) || (c2 == -1 && ctr % 2 == 0)){ - ctr++; - return; - } - else if(ctr % 2 == 1){ - if(c1 + num <= 9){ - c1 += num; - } - else{ - ctr++; - return; - } - if(c1==9){ - $(".pl1path").attr("src","images\\path\\pathvictory.png"); - $(".turn").text(name1+"\ wins!!"); - dicebtn.style.display='none'; - // $(".turn").hide(); - $(".diceimg").css("opacity","0.5"); - return; - } - $(".pl1path").attr("src","images\\path\\path" + c1 +".png"); - } - else if(ctr % 2 == 0){ - if(c2 + num <= 9){ - c2 += num; - } - else{ - ctr++; - return; - } - if(c2==9){ - $(".pl2path").attr("src","images\\path\\pathvictory.png"); - $(".turn").text(name2+"\ wins!!"); - dicebtn.style.display='none'; - // $(".turn").hide(); - $(".diceimg").css("opacity","0.5"); - return; - } - $(".pl2path").attr("src","images\\path\\path" + c2 +".png"); - } - ctr++; - } - }); - if(c1==9 || c2==9){ - return; - } -} -} -else if (name1===""||name2==="") alert("Enter the name."); -else alert("Names are same, enter different names.") -}); - -function roll(){ - if(document.getElementById("begin").innerHTML=="Begin Game") { - alert('Please click "Begin Game".'); - window.location="#landing-container";} +var name1 = "Player1"; +var name2 = "Player2"; +$(".start").click(function(){ + $(".diceimg").css("opacity","1"); + + dicebtn.style.display='block'; + + name1= document.getElementById("pl1").value; + name2= document.getElementById("pl2").value; + +if (name1!=name2){ + + let ctr = 1, c1 = -1, c2 = -1; + if (name1===""||name2==="") alert("Enter the name."); + else{ + window.location="#target"; +document.getElementById("plr1").innerHTML = name1; +document.getElementById("plr2").innerHTML = name2; + $(".start").text("New Game"); + + $(".pl1path").attr("src","images\\path\\path-1.png"); + $(".pl2path").attr("src","images\\path\\path-1.png"); + $(".turn").text(name1+"\'s turn"); + + $(".roll").click(function(){ + //ctr++; + var num=Math.floor(Math.random()*6+1); + $(".diceimg").attr("src","images\\dice\\dice" + num + ".png"); + if(num == 6){ + $(".turn").text("Roll Again..."); + if(ctr % 2 == 1){ + if(c1==-1){ + c1=0; + } + else{ + if(c1 + num <= 9){ + c1 += num; + } + else{ + return; + } + if(c1==9){ + $(".pl1path").attr("src","images\\path\\pathvictory.png"); + $(".turn").text(name1+"\ wins!!"); + dicebtn.style.display='none'; + // $(".turn").hide(); + $(".diceimg").css("opacity","0.5"); + return; + } + // $(".pl1path").attr("src","images\\path\\path" + c1 +".png"); + // return; + } + $(".pl1path").attr("src","images\\path\\path" + c1 +".png"); + return; + } + else if(ctr % 2 == 0){ + if(c2==-1){ + c2=0; + } + else{ + if(c2 + num <= 9){ + c2 += num; + } + else{ + return; + } + if(c2==9){ + $(".pl2path").attr("src","images\\path\\pathvictory.png"); + $(".turn").text(name2+"\ wins!!"); + dicebtn.style.display='none'; + // $(".turn").hide(); + $(".diceimg").css("opacity","0.5"); + return; + } + // $(".pl2path").attr("src","images\\path\\path" + c2 +".png"); + // return; + } + $(".pl2path").attr("src","images\\path\\path" + c2 +".png"); + return; + } + // ctr--; + } //code for when dice rolls six(6) + else{ + if(ctr % 2 == 0){ + $(".turn").text(name1+"\'s turn"); + } + else{ + $(".turn").text(name2+"\'s turn"); + } + if((c1 == -1 && ctr % 2 == 1) || (c2 == -1 && ctr % 2 == 0)){ + ctr++; + return; + } + else if(ctr % 2 == 1){ + if(c1 + num <= 9){ + c1 += num; + } + else{ + ctr++; + return; + } + if(c1==9){ + $(".pl1path").attr("src","images\\path\\pathvictory.png"); + $(".turn").text(name1+"\ wins!!"); + dicebtn.style.display='none'; + // $(".turn").hide(); + $(".diceimg").css("opacity","0.5"); + return; + } + $(".pl1path").attr("src","images\\path\\path" + c1 +".png"); + } + else if(ctr % 2 == 0){ + if(c2 + num <= 9){ + c2 += num; + } + else{ + ctr++; + return; + } + if(c2==9){ + $(".pl2path").attr("src","images\\path\\pathvictory.png"); + $(".turn").text(name2+"\ wins!!"); + dicebtn.style.display='none'; + // $(".turn").hide(); + $(".diceimg").css("opacity","0.5"); + return; + } + $(".pl2path").attr("src","images\\path\\path" + c2 +".png"); + } + ctr++; + } + }); + if(c1==9 || c2==9){ + return; + } +} +} +else if (name1===""||name2==="") alert("Enter the name."); +else alert("Names are same, enter different names.") +}); + +function roll(){ + if(document.getElementById("begin").innerHTML=="Begin Game") { + alert('Please click "Begin Game".'); + window.location="#landing-container";} } \ No newline at end of file diff --git a/Games/Roll_Race/style.css b/Games/Roll_Race/style.css index d1131ec272..7aaa5d0adb 100644 --- a/Games/Roll_Race/style.css +++ b/Games/Roll_Race/style.css @@ -1,58 +1,58 @@ -@import url('https://fonts.googleapis.com/css2?family=Yatra+One&display=swap'); -@import url('https://fonts.googleapis.com/css2?family=Varela&display=swap'); -@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); -.top-img{ - width: 40%; - height: 40%; - margin: top 20px; - margin-bottom: 50px; - max-width: 450px; -} -.turn{ - font-family: 'Varela', sans-serif; - font-weight: 700; -} -h1{ - font-size: 4rem; - font-family: 'Gloria Hallelujah', cursive; - font-weight: bold; -} -.top{ - min-height: 450px; - background: url("images\\bg.png"); -} -.top-1{ - width: 60%; -} -.start{ - margin-top: 40px; -} -.pl1 .pl2{ - font-weight: 700; -} -.playzone{ - width: 65%; -} -.dice{ - width: 30%; -} -.bottom{ - background: url("images\\bg-bottom.png"); - margin-top: 10%; -} -.text-success{ - font-family: 'Yatra One', cursive; - font-weight: 900; -} -.player-name{ - font-family: 'Roboto', sans-serif; -} -@media(max-width : 650px){ - #landing-container{ - flex-direction: column; - - } - .top-1{ - width: 100% !important; - } +@import url('https://fonts.googleapis.com/css2?family=Yatra+One&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Varela&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); +.top-img{ + width: 40%; + height: 40%; + margin: top 20px; + margin-bottom: 50px; + max-width: 450px; +} +.turn{ + font-family: 'Varela', sans-serif; + font-weight: 700; +} +h1{ + font-size: 4rem; + font-family: 'Gloria Hallelujah', cursive; + font-weight: bold; +} +.top{ + min-height: 450px; + background: url("images\\bg.png"); +} +.top-1{ + width: 60%; +} +.start{ + margin-top: 40px; +} +.pl1 .pl2{ + font-weight: 700; +} +.playzone{ + width: 65%; +} +.dice{ + width: 30%; +} +.bottom{ + background: url("images\\bg-bottom.png"); + margin-top: 10%; +} +.text-success{ + font-family: 'Yatra One', cursive; + font-weight: 900; +} +.player-name{ + font-family: 'Roboto', sans-serif; +} +@media(max-width : 650px){ + #landing-container{ + flex-direction: column; + + } + .top-1{ + width: 100% !important; + } } \ No newline at end of file diff --git a/Games/Shpere/instructions.svg b/Games/Shpere/instructions.svg index 945c11f8a8..1eaa3d1d36 100644 --- a/Games/Shpere/instructions.svg +++ b/Games/Shpere/instructions.svg @@ -1,57 +1,57 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Games/Simon_Game_Challenge/.DS_Store b/Games/Simon_Game_Challenge/.DS_Store old mode 100755 new mode 100644 diff --git a/Games/Simon_Game_Challenge/README.md b/Games/Simon_Game_Challenge/README.md index 4b69c31b38..768d05c603 100644 --- a/Games/Simon_Game_Challenge/README.md +++ b/Games/Simon_Game_Challenge/README.md @@ -1,40 +1,40 @@ -# **Simon_Game_Challenge** - ---- - -
      - -## **Description ๐Ÿ“ƒ** - -- The Simon game is a classic memory game that requires players to follow a sequence of colors and sounds to advance to higher levels. In this version built using HTML, CSS, and JavaScript, players are presented with a game board consisting of four colored buttons - green, red, yellow, and blue. - -## **Functionalities ๐ŸŽฎ** - -- The game starts with a sequence of colors played by the computer, and players must repeat the sequence by clicking the corresponding buttons in the correct order. The game progressively gets more difficult with longer and more complex sequences. The game includes features such as a level counter, a highest score tracker, and a play button. -
      - -## **How to Play? ๐Ÿ•น๏ธ** - -- Press the "Play" button to start the game. -- The game will randomly choose a color and play a sound. Repeat the color and sound by clicking the corresponding button. -- The game will add another color and sound to the sequence. Repeat the sequence by clicking the corresponding buttons in the correct order. -- Keep repeating the sequence correctly to advance to higher levels. -- If you click the wrong button or take too long to repeat the sequence, the game is over. -- The highest level reached during the game will be displayed on the screen. -- Press the "Play" button again to start a new game. - -
      - -## **Screenshots ๐Ÿ“ธ** - -
      - -![image](../../assets/images/Simon-game.png) - -
      - -## **Working Video ๐Ÿ“น** - - - -![](<../../assets/animations/SimonVideo%20(2).gif>) +# **Simon_Game_Challenge** + +--- + +
      + +## **Description ๐Ÿ“ƒ** + +- The Simon game is a classic memory game that requires players to follow a sequence of colors and sounds to advance to higher levels. In this version built using HTML, CSS, and JavaScript, players are presented with a game board consisting of four colored buttons - green, red, yellow, and blue. + +## **Functionalities ๐ŸŽฎ** + +- The game starts with a sequence of colors played by the computer, and players must repeat the sequence by clicking the corresponding buttons in the correct order. The game progressively gets more difficult with longer and more complex sequences. The game includes features such as a level counter, a highest score tracker, and a play button. +
      + +## **How to Play? ๐Ÿ•น๏ธ** + +- Press the "Play" button to start the game. +- The game will randomly choose a color and play a sound. Repeat the color and sound by clicking the corresponding button. +- The game will add another color and sound to the sequence. Repeat the sequence by clicking the corresponding buttons in the correct order. +- Keep repeating the sequence correctly to advance to higher levels. +- If you click the wrong button or take too long to repeat the sequence, the game is over. +- The highest level reached during the game will be displayed on the screen. +- Press the "Play" button again to start a new game. + +
      + +## **Screenshots ๐Ÿ“ธ** + +
      + +![image](../../assets/images/Simon-game.png) + +
      + +## **Working Video ๐Ÿ“น** + + + +![](<../../assets/animations/SimonVideo%20(2).gif>) diff --git a/Games/Simon_Game_Challenge/game.js b/Games/Simon_Game_Challenge/game.js old mode 100755 new mode 100644 index c069fc5b64..3b14de7bcc --- a/Games/Simon_Game_Challenge/game.js +++ b/Games/Simon_Game_Challenge/game.js @@ -1,89 +1,89 @@ -var buttonColours = ["red", "blue", "green", "yellow"]; -var gamePattern = []; -var userClickedPattern = []; -var started = false; -var level = 0; -var highest = 0; -var toggle = false; - -const startGame = () => { - if (!started) { - $("#level-title").text("Level " + level); - nextSequence(); - started = true; - } -}; - -$(document).keypress(startGame); -$("#play-button").click(startGame); - -$('.ins').click(() => { - if(!toggle){ - $('.instructions-section').css('display', 'inherit'); - toggle = true; - } - else{ - $('.instructions-section').css('display', 'none'); - toggle = false; - } -}); - -$(".btn").click(function () { - var userChosenColour = $(this).attr("id"); - userClickedPattern.push(userChosenColour); - playsound(userChosenColour); - animatePress(userChosenColour); - checkAnswer(userClickedPattern.length - 1); -}); - -function playsound(name) { - var audio = new Audio("sounds/" + name + ".mp3"); - audio.volume = 0.3; - audio.play(); -} - -function animatePress(name) { - $("#" + name).addClass("pressed"); - setTimeout(function () { - $("#" + name).removeClass("pressed"); - }, 100); -} - -function nextSequence() { - userClickedPattern = []; - level++; - $("#level-title").text("Level " + level); - var randomNumber = Math.floor(Math.random() * 4); - var randomChosenColour = buttonColours[randomNumber]; - gamePattern.push(randomChosenColour); - $("#" + randomChosenColour) - .fadeOut(100) - .fadeIn(100); - playsound(randomChosenColour); -} - -function checkAnswer(currentLevel) { - if (gamePattern[currentLevel] == userClickedPattern[currentLevel]) { - if (userClickedPattern.length == gamePattern.length) { - setTimeout(function () { - nextSequence(); - }, 1000); - } - } else { - $("#level-title").text("Game Over, Press Any Key to Restart"); - playsound("wrong"); - $("body").addClass("game-over"); - setTimeout(function () { - $("body").removeClass("game-over"); - }, 200); - startOver(); - } -} - -function startOver() { - if (level > highest) highest = level; - $("#highest").text("Highest reached level : " + highest); - started = false; - level = 0; - gamePattern = []; -} +var buttonColours = ["red", "blue", "green", "yellow"]; +var gamePattern = []; +var userClickedPattern = []; +var started = false; +var level = 0; +var highest = 0; +var toggle = false; + +const startGame = () => { + if (!started) { + $("#level-title").text("Level " + level); + nextSequence(); + started = true; + } +}; + +$(document).keypress(startGame); +$("#play-button").click(startGame); + +$('.ins').click(() => { + if(!toggle){ + $('.instructions-section').css('display', 'inherit'); + toggle = true; + } + else{ + $('.instructions-section').css('display', 'none'); + toggle = false; + } +}); + +$(".btn").click(function () { + var userChosenColour = $(this).attr("id"); + userClickedPattern.push(userChosenColour); + playsound(userChosenColour); + animatePress(userChosenColour); + checkAnswer(userClickedPattern.length - 1); +}); + +function playsound(name) { + var audio = new Audio("sounds/" + name + ".mp3"); + audio.volume = 0.3; + audio.play(); +} + +function animatePress(name) { + $("#" + name).addClass("pressed"); + setTimeout(function () { + $("#" + name).removeClass("pressed"); + }, 100); +} + +function nextSequence() { + userClickedPattern = []; + level++; + $("#level-title").text("Level " + level); + var randomNumber = Math.floor(Math.random() * 4); + var randomChosenColour = buttonColours[randomNumber]; + gamePattern.push(randomChosenColour); + $("#" + randomChosenColour) + .fadeOut(100) + .fadeIn(100); + playsound(randomChosenColour); +} + +function checkAnswer(currentLevel) { + if (gamePattern[currentLevel] == userClickedPattern[currentLevel]) { + if (userClickedPattern.length == gamePattern.length) { + setTimeout(function () { + nextSequence(); + }, 1000); + } + } else { + $("#level-title").text("Game Over, Press Any Key to Restart"); + playsound("wrong"); + $("body").addClass("game-over"); + setTimeout(function () { + $("body").removeClass("game-over"); + }, 200); + startOver(); + } +} + +function startOver() { + if (level > highest) highest = level; + $("#highest").text("Highest reached level : " + highest); + started = false; + level = 0; + gamePattern = []; +} diff --git a/Games/Simon_Game_Challenge/index.html b/Games/Simon_Game_Challenge/index.html old mode 100755 new mode 100644 index 938baf3125..97666d8333 --- a/Games/Simon_Game_Challenge/index.html +++ b/Games/Simon_Game_Challenge/index.html @@ -1,68 +1,68 @@ - - - - - - - - Simon - - - - - - - - -
      -

      Press Any Key to Start

      -

      Highest reached level : 0

      - -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      -

      Instructions

      -

      - Objective: To remember and repeat a sequence of colors shown by - the game. The sequence will keep getting longer as you progress. Your - goal is to replicate the sequence accurately to achieve the highest - level possible. -

      -
        -
      1. Remember the sequence of colors shown.
      2. -
      3. Click on the colors in the same sequence.
      4. -
      5. The sequence will keep getting longer as you progress.
      6. -
      7. If you make a mistake, the game will end.
      8. -
      -

      All the best :)

      -
      -
      - -
      - -
      - - - - + + + + + + + + Simon + + + + + + + + +
      +

      Press Any Key to Start

      +

      Highest reached level : 0

      + +
      +
      +
      +
      +
      +
      +
      +
      +
      +
      +
      +
      +

      Instructions

      +

      + Objective: To remember and repeat a sequence of colors shown by + the game. The sequence will keep getting longer as you progress. Your + goal is to replicate the sequence accurately to achieve the highest + level possible. +

      +
        +
      1. Remember the sequence of colors shown.
      2. +
      3. Click on the colors in the same sequence.
      4. +
      5. The sequence will keep getting longer as you progress.
      6. +
      7. If you make a mistake, the game will end.
      8. +
      +

      All the best :)

      +
      +
      + +
      + +
      + + + + diff --git a/Games/Simon_Game_Challenge/sounds/blue.mp3 b/Games/Simon_Game_Challenge/sounds/blue.mp3 old mode 100755 new mode 100644 diff --git a/Games/Simon_Game_Challenge/sounds/green.mp3 b/Games/Simon_Game_Challenge/sounds/green.mp3 old mode 100755 new mode 100644 diff --git a/Games/Simon_Game_Challenge/sounds/red.mp3 b/Games/Simon_Game_Challenge/sounds/red.mp3 old mode 100755 new mode 100644 diff --git a/Games/Simon_Game_Challenge/sounds/wrong.mp3 b/Games/Simon_Game_Challenge/sounds/wrong.mp3 old mode 100755 new mode 100644 diff --git a/Games/Simon_Game_Challenge/sounds/yellow.mp3 b/Games/Simon_Game_Challenge/sounds/yellow.mp3 old mode 100755 new mode 100644 diff --git a/Games/Simon_Game_Challenge/styles.css b/Games/Simon_Game_Challenge/styles.css old mode 100755 new mode 100644 index e28f42c307..806084027f --- a/Games/Simon_Game_Challenge/styles.css +++ b/Games/Simon_Game_Challenge/styles.css @@ -1,194 +1,194 @@ -body { - text-align: center; - background-color: #011f3f; -} -h2{ - font-size: 1.7rem; -} -#highest { - color: #fef2bf; - margin-right:320px; - padding: 0px; - margin-top: 0s; -} -#level-title { - font-family: "Press Start 2P", cursive; - font-size: 2.3rem; - margin-right:535px; - margin-left:240px; - color: #fef2bf; - top: 0; - position: relative; - margin-bottom:5px; -} -#play-button { - font-family: "Press Start 2P", cursive; - font-size: 4.5rem; - color: #fef2bf; - margin-left: 460px; - position:fixed; - margin-bottom:50px; -} - -#play-button > i:hover { - cursor: pointer; - /* transform: scale(1.1); */ - transition: .2s ease; - color: #e90064; - filter: drop-shadow(2px 2px 1px black); -} - -.container { - position:sticky; - display: flex; - flex-wrap: wrap; - justify-content:start; - margin-left: 198px; -} - -.game-section { - display: flex; - position: sticky; - flex-direction: column; - width: 50%; - margin: 0 30px; - margin-left: 20px; -} -.asdf{ - display:flex; -} -.asdf .load{ -display:inline-block; -align-items: left; -} -.instructions-section { - background-color: #fef2bf; - position: fixed; - font-size: medium; - font-weight: bold; - flex: 1; - padding: 8px; - margin: 5px; - display: flex; - flex-direction:column; - justify-content: center; - height: 100vh; - width:300px; - top: 0; - right: 0; -} - -@media only screen and (max-width: 768px) { - .container { - flex-direction: column; - } - #highest{ - margin:0%; - } - #level-title{ - margin:1px; - } - .game-section, - .instructions-section { - width:200px; - margin-left:6px; - /* margin: 10px auto; */ - } -} - -.btn { - display: inline-block; - height: 130px; - width: 130px; - border: 5px solid black; - border-radius: 10%; - margin: 5px; - position: sticky; -} - -.game-over { - background-color: #d61c4e; - opacity: 0.8; -} - -.red { - background-color: #e90064; -} - -.green { - background-color: #379237; - -} - -.blue { - background-color: #7149c6; -} - -.yellow { - background-color: #ffea20; - -} - -.pressed { - box-shadow: 0 0 20px white; - background-color: grey; -} - -@media only screen and (max-width: 1024px) { - /* styles for tablet */ - .container { - width: 60%; - } - .btn { - height: 140px; - width: 140px; - } - #highest{ - margin:0%; - } - #level-title, - #play-button { - font-size: 4rem; - margin:0%; - } -} - -@media only screen and (max-width: 563px) and (min-width: 480px) { - /* styles for phone */ - .container { - width: 90%; - } - .btn { - height: 100px; - width: 100px; - } - #highest{ - margin:0%; - } - #level-title, - #play-button { - font-size: 3.5rem; - margin:0%; - } -} - -@media only screen and (max-width: 480px) { - /* styles for phone */ - .container { - width: 90%; - } - .btn { - height: 100px; - width: 100px; - } - #highest{ - margin:0%; - } - #level-title, - #play-button { - font-size: 3.5rem; - margin:0%; - } -} - - +body { + text-align: center; + background-color: #011f3f; +} +h2{ + font-size: 1.7rem; +} +#highest { + color: #fef2bf; + margin-right:320px; + padding: 0px; + margin-top: 0s; +} +#level-title { + font-family: "Press Start 2P", cursive; + font-size: 2.3rem; + margin-right:535px; + margin-left:240px; + color: #fef2bf; + top: 0; + position: relative; + margin-bottom:5px; +} +#play-button { + font-family: "Press Start 2P", cursive; + font-size: 4.5rem; + color: #fef2bf; + margin-left: 460px; + position:fixed; + margin-bottom:50px; +} + +#play-button > i:hover { + cursor: pointer; + /* transform: scale(1.1); */ + transition: .2s ease; + color: #e90064; + filter: drop-shadow(2px 2px 1px black); +} + +.container { + position:sticky; + display: flex; + flex-wrap: wrap; + justify-content:start; + margin-left: 198px; +} + +.game-section { + display: flex; + position: sticky; + flex-direction: column; + width: 50%; + margin: 0 30px; + margin-left: 20px; +} +.asdf{ + display:flex; +} +.asdf .load{ +display:inline-block; +align-items: left; +} +.instructions-section { + background-color: #fef2bf; + position: fixed; + font-size: medium; + font-weight: bold; + flex: 1; + padding: 8px; + margin: 5px; + display: flex; + flex-direction:column; + justify-content: center; + height: 100vh; + width:300px; + top: 0; + right: 0; +} + +@media only screen and (max-width: 768px) { + .container { + flex-direction: column; + } + #highest{ + margin:0%; + } + #level-title{ + margin:1px; + } + .game-section, + .instructions-section { + width:200px; + margin-left:6px; + /* margin: 10px auto; */ + } +} + +.btn { + display: inline-block; + height: 130px; + width: 130px; + border: 5px solid black; + border-radius: 10%; + margin: 5px; + position: sticky; +} + +.game-over { + background-color: #d61c4e; + opacity: 0.8; +} + +.red { + background-color: #e90064; +} + +.green { + background-color: #379237; + +} + +.blue { + background-color: #7149c6; +} + +.yellow { + background-color: #ffea20; + +} + +.pressed { + box-shadow: 0 0 20px white; + background-color: grey; +} + +@media only screen and (max-width: 1024px) { + /* styles for tablet */ + .container { + width: 60%; + } + .btn { + height: 140px; + width: 140px; + } + #highest{ + margin:0%; + } + #level-title, + #play-button { + font-size: 4rem; + margin:0%; + } +} + +@media only screen and (max-width: 563px) and (min-width: 480px) { + /* styles for phone */ + .container { + width: 90%; + } + .btn { + height: 100px; + width: 100px; + } + #highest{ + margin:0%; + } + #level-title, + #play-button { + font-size: 3.5rem; + margin:0%; + } +} + +@media only screen and (max-width: 480px) { + /* styles for phone */ + .container { + width: 90%; + } + .btn { + height: 100px; + width: 100px; + } + #highest{ + margin:0%; + } + #level-title, + #play-button { + font-size: 3.5rem; + margin:0%; + } +} + + diff --git a/Games/Slice_Storm/index.html b/Games/Slice_Storm/index.html index f76e270175..6fcee7789a 100644 --- a/Games/Slice_Storm/index.html +++ b/Games/Slice_Storm/index.html @@ -1,53 +1,53 @@ - - - - - BOX SLICE - - - - - -
      - - - -
      -
      -
      -
      -
      -
      -
      -
      -
      -
      - - - - - - + + + + + BOX SLICE + + + + + +
      + + + +
      +
      +
      +
      +
      +
      +
      +
      +
      +
      + + + + + + \ No newline at end of file diff --git a/Games/Slice_Storm/script.js b/Games/Slice_Storm/script.js index 32e70807b3..05d474cd69 100644 --- a/Games/Slice_Storm/script.js +++ b/Games/Slice_Storm/script.js @@ -1,1745 +1,1745 @@ -let gameSpeed = 1; - -// Colors -const BLUE = { r: 0x1C, g: 0x0, b: 0x5D }; -const GREEN = { r: 0x0, g: 0x4D, b: 0x0 }; -const PINK = { r: 0xfa, g: 0x24, b: 0x73 }; -const RED = { r: 0xD3, g: 0x0, b: 0x0 }; -const allColors = [BLUE, GREEN, PINK, RED]; - -// Gameplay -const getSpawnDelay = () => { - const spawnDelayMax = 1400; - const spawnDelayMin = 550; - const spawnDelay = spawnDelayMax - state.game.boxCount * 3.1; - return Math.max(spawnDelay, spawnDelayMin); -} -const doubleStrongEnableScore = 2000; -const slowmoThreshold = 10; -const strongThreshold = 25; -const spinnerThreshold = 25; - -let pointerIsDown = false; -let pointerScreen = { x: 0, y: 0 }; -let pointerScene = { x: 0, y: 0 }; -const minPointerSpeed = 60; -const hitDampening = 0.1; -const backboardZ = -400; -const shadowColor = '#000000'; -const airDrag = 0.022; -const gravity = 0.3; -const sparkColor = '#FCDE75'; -const sparkThickness = 2.2; -const airDragSpark = 0.1; -const touchTrailColor = 'rgba(170,221,255,.62)'; -const touchTrailThickness = 7; -const touchPointLife = 120; -const touchPoints = []; -const targetRadius = 40; -const targetHitRadius = 50; -const makeTargetGlueColor = target => { - return 'rgb(170,221,255)'; -}; -const fragRadius = targetRadius / 3; - - - -const canvas = document.querySelector('#c'); - -const cameraDistance = 900; -const sceneScale = 1; -const cameraFadeStartZ = 0.45*cameraDistance; -const cameraFadeEndZ = 0.65*cameraDistance; -const cameraFadeRange = cameraFadeEndZ - cameraFadeStartZ; - -const allVertices = []; -const allPolys = []; -const allShadowVertices = []; -const allShadowPolys = []; - - - - -// Game Modes -const GAME_MODE_RANKED = Symbol('GAME_MODE_RANKED'); -const GAME_MODE_PRACTICE = Symbol('GAME_MODE_PRACTICE'); - -// Available Menus -const MENU_MAIN = Symbol('MENU_MAIN'); -const MENU_PAUSE = Symbol('MENU_PAUSE'); -const MENU_SCORE = Symbol('MENU_SCORE'); - - -const state = { - game: { - mode: GAME_MODE_RANKED, - time: 0, - score: 0, - boxCount: 0 - }, - menus: { - active: MENU_MAIN - } -}; - - -const isInGame = () => !state.menus.active; -const isMenuVisible = () => !!state.menus.active; -const isPracticeGame = () => state.game.mode === GAME_MODE_PRACTICE; -const isPaused = () => state.menus.active === MENU_PAUSE; - -const highScoreKey = '__menja__highScore'; -const getHighScore = () => { - const raw = localStorage.getItem(highScoreKey); - return raw ? parseInt(raw, 10) : 0; -}; - -let _lastHighscore = getHighScore(); -const setHighScore = score => { - _lastHighscore = getHighScore(); - localStorage.setItem(highScoreKey, String(score)); -}; - -const isNewHighScore = () => state.game.score > _lastHighscore; - - -const invariant = (condition, message) => { - if (!condition) throw new Error(message); -}; - -const $ = selector => document.querySelector(selector); -const handleClick = (element, handler) => element.addEventListener('click', handler); -const handlePointerDown = (element, handler) => { - element.addEventListener('touchstart', handler); - element.addEventListener('mousedown', handler); -}; - - - -const formatNumber = num => num.toLocaleString(); - - -const PI = Math.PI; -const TAU = Math.PI * 2; -const ETA = Math.PI * 0.5; - - -const clamp = (num, min, max) => Math.min(Math.max(num, min), max); -const lerp = (a, b, mix) => (b - a) * mix + a; - - -const random = (min, max) => Math.random() * (max - min) + min; -const randomInt = (min, max) => ((Math.random() * (max - min + 1)) | 0) + min; - -const pickOne = arr => arr[Math.random() * arr.length | 0]; - -const colorToHex = color => { - return '#' + - (color.r | 0).toString(16).padStart(2, '0') + - (color.g | 0).toString(16).padStart(2, '0') + - (color.b | 0).toString(16).padStart(2, '0'); -}; - -const shadeColor = (color, lightness) => { - let other, mix; - if (lightness < 0.5) { - other = 0; - mix = 1 - (lightness * 2); - } else { - other = 255; - mix = lightness * 2 - 1; - } - return '#' + - (lerp(color.r, other, mix) | 0).toString(16).padStart(2, '0') + - (lerp(color.g, other, mix) | 0).toString(16).padStart(2, '0') + - (lerp(color.b, other, mix) | 0).toString(16).padStart(2, '0'); -}; - - - - -const _allCooldowns = []; - -const makeCooldown = (rechargeTime, units=1) => { - let timeRemaining = 0; - let lastTime = 0; - - const initialOptions = { rechargeTime, units }; - - const updateTime = () => { - const now = state.game.time; - if (now < lastTime) { - timeRemaining = 0; - } else { - // update... - timeRemaining -= now-lastTime; - if (timeRemaining < 0) timeRemaining = 0; - } - lastTime = now; - }; - - const canUse = () => { - updateTime(); - return timeRemaining <= (rechargeTime * (units-1)); - }; - - const cooldown = { - canUse, - useIfAble() { - const usable = canUse(); - if (usable) timeRemaining += rechargeTime; - return usable; - }, - mutate(options) { - if (options.rechargeTime) { - timeRemaining -= rechargeTime-options.rechargeTime; - if (timeRemaining < 0) timeRemaining = 0; - rechargeTime = options.rechargeTime; - } - if (options.units) units = options.units; - }, - reset() { - timeRemaining = 0; - lastTime = 0; - this.mutate(initialOptions); - } - }; - - _allCooldowns.push(cooldown); - - return cooldown; -}; - -const resetAllCooldowns = () => _allCooldowns.forEach(cooldown => cooldown.reset()); - -const makeSpawner = ({ chance, cooldownPerSpawn, maxSpawns }) => { - const cooldown = makeCooldown(cooldownPerSpawn, maxSpawns); - return { - shouldSpawn() { - return Math.random() <= chance && cooldown.useIfAble(); - }, - mutate(options) { - if (options.chance) chance = options.chance; - cooldown.mutate({ - rechargeTime: options.cooldownPerSpawn, - units: options.maxSpawns - }); - } - }; -}; - - - -const normalize = v => { - const mag = Math.hypot(v.x, v.y, v.z); - return { - x: v.x / mag, - y: v.y / mag, - z: v.z / mag - }; -} - -const add = a => b => a + b; -const scaleVector = scale => vector => { - vector.x *= scale; - vector.y *= scale; - vector.z *= scale; -}; - -function cloneVertices(vertices) { - return vertices.map(v => ({ x: v.x, y: v.y, z: v.z })); -} - -function copyVerticesTo(arr1, arr2) { - const len = arr1.length; - for (let i=0; i { - const targetVertex = target[i]; - // X axis rotation - const x1 = v.x; - const y1 = v.z*sinX + v.y*cosX; - const z1 = v.z*cosX - v.y*sinX; - // Y axis rotation - const x2 = x1*cosY - z1*sinY; - const y2 = y1; - const z2 = x1*sinY + z1*cosY; - const x3 = x2*cosZ - y2*sinZ; - const y3 = x2*sinZ + y2*cosZ; - const z3 = z2; - - targetVertex.x = x3 * sX + tX; - targetVertex.y = y3 * sY + tY; - targetVertex.z = z3 * sZ + tZ; - }); -} - -const projectVertex = v => { - const focalLength = cameraDistance * sceneScale; - const depth = focalLength / (cameraDistance - v.z); - v.x = v.x * depth; - v.y = v.y * depth; -}; - -const projectVertexTo = (v, target) => { - const focalLength = cameraDistance * sceneScale; - const depth = focalLength / (cameraDistance - v.z); - target.x = v.x * depth; - target.y = v.y * depth; -}; - - -const PERF_START = () => {}; -const PERF_END = () => {}; -const PERF_UPDATE = () => {}; - - -function makeBoxModel({ scale=1 }) { - return { - vertices: [ - { x: -scale, y: -scale, z: scale }, - { x: scale, y: -scale, z: scale }, - { x: scale, y: scale, z: scale }, - { x: -scale, y: scale, z: scale }, - - { x: -scale, y: -scale, z: -scale }, - { x: scale, y: -scale, z: -scale }, - { x: scale, y: scale, z: -scale }, - { x: -scale, y: scale, z: -scale } - ], - polys: [ - { vIndexes: [0, 1, 2, 3] }, - { vIndexes: [7, 6, 5, 4] }, - { vIndexes: [3, 2, 6, 7] }, - { vIndexes: [4, 5, 1, 0] }, - { vIndexes: [5, 6, 2, 1] }, - { vIndexes: [0, 3, 7, 4] } - ] - }; -} - -function makeRecursiveBoxModel({ recursionLevel, splitFn, color, scale=1 }) { - const getScaleAtLevel = level => 1 / (3 ** level); - - let boxOrigins = [{ x: 0, y: 0, z: 0 }]; - - for (let i=1; i<=recursionLevel; i++) { - const scale = getScaleAtLevel(i) * 2; - const boxOrigins2 = []; - boxOrigins.forEach(origin => { - boxOrigins2.push(...splitFn(origin, scale)); - }); - boxOrigins = boxOrigins2; - } - - const finalModel = { vertices: [], polys: [] }; - - const boxModel = makeBoxModel({ scale: 1 }); - boxModel.vertices.forEach(scaleVector(getScaleAtLevel(recursionLevel))); - - const maxComponent = getScaleAtLevel(recursionLevel) * (3 ** recursionLevel - 1); - - boxOrigins.forEach((origin, boxIndex) => { - const occlusion = Math.max( - Math.abs(origin.x), - Math.abs(origin.y), - Math.abs(origin.z) - ) / maxComponent; - const occlusionLighter = recursionLevel > 2 - ? occlusion - : (occlusion + 0.8) / 1.8; - finalModel.vertices.push( - ...boxModel.vertices.map(v => ({ - x: (v.x + origin.x) * scale, - y: (v.y + origin.y) * scale, - z: (v.z + origin.z) * scale - })) - ); - finalModel.polys.push( - ...boxModel.polys.map(poly => ({ - vIndexes: poly.vIndexes.map(add(boxIndex * 8)) - })) - ); - }); - - return finalModel; -} - - -function mengerSpongeSplit(o, s) { - return [ - { x: o.x + s, y: o.y - s, z: o.z + s }, - { x: o.x + s, y: o.y - s, z: o.z + 0 }, - { x: o.x + s, y: o.y - s, z: o.z - s }, - { x: o.x + 0, y: o.y - s, z: o.z + s }, - { x: o.x + 0, y: o.y - s, z: o.z - s }, - { x: o.x - s, y: o.y - s, z: o.z + s }, - { x: o.x - s, y: o.y - s, z: o.z + 0 }, - { x: o.x - s, y: o.y - s, z: o.z - s }, - - { x: o.x + s, y: o.y + s, z: o.z + s }, - { x: o.x + s, y: o.y + s, z: o.z + 0 }, - { x: o.x + s, y: o.y + s, z: o.z - s }, - { x: o.x + 0, y: o.y + s, z: o.z + s }, - { x: o.x + 0, y: o.y + s, z: o.z - s }, - { x: o.x - s, y: o.y + s, z: o.z + s }, - { x: o.x - s, y: o.y + s, z: o.z + 0 }, - { x: o.x - s, y: o.y + s, z: o.z - s }, - - { x: o.x + s, y: o.y + 0, z: o.z + s }, - { x: o.x + s, y: o.y + 0, z: o.z - s }, - { x: o.x - s, y: o.y + 0, z: o.z + s }, - { x: o.x - s, y: o.y + 0, z: o.z - s } - ]; -} - -function optimizeModel(model, threshold=0.0001) { - const { vertices, polys } = model; - - const compareVertices = (v1, v2) => ( - Math.abs(v1.x - v2.x) < threshold && - Math.abs(v1.y - v2.y) < threshold && - Math.abs(v1.z - v2.z) < threshold - ); - - const comparePolys = (p1, p2) => { - const v1 = p1.vIndexes; - const v2 = p2.vIndexes; - return ( - ( - v1[0] === v2[0] || - v1[0] === v2[1] || - v1[0] === v2[2] || - v1[0] === v2[3] - ) && ( - v1[1] === v2[0] || - v1[1] === v2[1] || - v1[1] === v2[2] || - v1[1] === v2[3] - ) && ( - v1[2] === v2[0] || - v1[2] === v2[1] || - v1[2] === v2[2] || - v1[2] === v2[3] - ) && ( - v1[3] === v2[0] || - v1[3] === v2[1] || - v1[3] === v2[2] || - v1[3] === v2[3] - ) - ); - }; - - - vertices.forEach((v, i) => { - v.originalIndexes = [i]; - }); - - for (let i=vertices.length-1; i>=0; i--) { - for (let ii=i-1; ii>=0; ii--) { - const v1 = vertices[i]; - const v2 = vertices[ii]; - if (compareVertices(v1, v2)) { - vertices.splice(i, 1); - v2.originalIndexes.push(...v1.originalIndexes); - break; - } - } - } - - vertices.forEach((v, i) => { - polys.forEach(p => { - p.vIndexes.forEach((vi, ii, arr) => { - const vo = v.originalIndexes; - if (vo.includes(vi)) { - arr[ii] = i; - } - }); - }); - }); - - polys.forEach(p => { - const vi = p.vIndexes; - p.sum = vi[0] + vi[1] + vi[2] + vi[3]; - }); - polys.sort((a, b) => b.sum - a.sum); - for (let i=polys.length-1; i>=0; i--) { - for (let ii=i-1; ii>=0; ii--) { - const p1 = polys[i]; - const p2 = polys[ii]; - if (p1.sum !== p2.sum) break; - if (comparePolys(p1, p2)) { - polys.splice(i, 1); - polys.splice(ii, 1); - i--; - break; - } - } - } - - return model; -} - - -class Entity { - constructor({ model, color, wireframe=false }) { - const vertices = cloneVertices(model.vertices); - const shadowVertices = cloneVertices(model.vertices); - const colorHex = colorToHex(color); - const darkColorHex = shadeColor(color, 0.4); - - const polys = model.polys.map(p => ({ - vertices: p.vIndexes.map(vIndex => vertices[vIndex]), - color: color, - wireframe: wireframe, - strokeWidth: wireframe ? 2 : 0, - strokeColor: colorHex, - strokeColorDark: darkColorHex, - depth: 0, - middle: { x: 0, y: 0, z: 0 }, - normalWorld: { x: 0, y: 0, z: 0 }, - normalCamera: { x: 0, y: 0, z: 0 } - })); - - const shadowPolys = model.polys.map(p => ({ - vertices: p.vIndexes.map(vIndex => shadowVertices[vIndex]), - wireframe: wireframe, - normalWorld: { x: 0, y: 0, z: 0 } - })); - - this.projected = {}; - this.model = model; - this.vertices = vertices; - this.polys = polys; - this.shadowVertices = shadowVertices; - this.shadowPolys = shadowPolys; - this.reset(); - } - - reset() { - this.x = 0; - this.y = 0; - this.z = 0; - this.xD = 0; - this.yD = 0; - this.zD = 0; - - this.rotateX = 0; - this.rotateY = 0; - this.rotateZ = 0; - this.rotateXD = 0; - this.rotateYD = 0; - this.rotateZD = 0; - - this.scaleX = 1; - this.scaleY = 1; - this.scaleZ = 1; - - this.projected.x = 0; - this.projected.y = 0; - } - - transform() { - transformVertices( - this.model.vertices, - this.vertices, - this.x, - this.y, - this.z, - this.rotateX, - this.rotateY, - this.rotateZ, - this.scaleX, - this.scaleY, - this.scaleZ - ); - - copyVerticesTo(this.vertices, this.shadowVertices); - } - - project() { - projectVertexTo(this, this.projected); - } -} - - - - -const targets = []; - -const targetPool = new Map(allColors.map(c=>([c, []]))); -const targetWireframePool = new Map(allColors.map(c=>([c, []]))); - - - -const getTarget = (() => { - - const slowmoSpawner = makeSpawner({ - chance: 0.5, - cooldownPerSpawn: 10000, - maxSpawns: 1 - }); - - let doubleStrong = false; - const strongSpawner = makeSpawner({ - chance: 0.3, - cooldownPerSpawn: 12000, - maxSpawns: 1 - }); - - const spinnerSpawner = makeSpawner({ - chance: 0.1, - cooldownPerSpawn: 10000, - maxSpawns: 1 - }); - - const axisOptions = [ - ['x', 'y'], - ['y', 'z'], - ['z', 'x'] - ]; - - function getTargetOfStyle(color, wireframe) { - const pool = wireframe ? targetWireframePool : targetPool; - let target = pool.get(color).pop(); - if (!target) { - target = new Entity({ - model: optimizeModel(makeRecursiveBoxModel({ - recursionLevel: 1, - splitFn: mengerSpongeSplit, - scale: targetRadius - })), - color: color, - wireframe: wireframe - }); - - target.color = color; - target.wireframe = wireframe; - target.hit = false; - target.maxHealth = 0; - target.health = 0; - } - return target; - } - - return function getTarget() { - if (doubleStrong && state.game.score <= doubleStrongEnableScore) { - doubleStrong = false; - } else if (!doubleStrong && state.game.score > doubleStrongEnableScore) { - doubleStrong = true; - strongSpawner.mutate({ maxSpawns: 2 }); - } - - let color = pickOne([BLUE, GREEN, RED]); - let wireframe = false; - let health = 1; - let maxHealth = 3; - const spinner = state.game.boxCount >= spinnerThreshold && isInGame() && spinnerSpawner.shouldSpawn(); - - if (state.game.boxCount >= slowmoThreshold && slowmoSpawner.shouldSpawn()) { - color = BLUE; - wireframe = true; - } - else if (state.game.boxCount >= strongThreshold && strongSpawner.shouldSpawn()) { - color = PINK; - health = 3; - } - - const target = getTargetOfStyle(color, wireframe); - target.hit = false; - target.maxHealth = maxHealth; - target.health = health; - updateTargetHealth(target, 0); - - const spinSpeeds = [ - Math.random() * 0.1 - 0.05, - Math.random() * 0.1 - 0.05 - ]; - - if (spinner) { - spinSpeeds[0] = -0.25; - spinSpeeds[1] = 0; - target.rotateZ = random(0, TAU); - } - - const axes = pickOne(axisOptions); - - spinSpeeds.forEach((spinSpeed, i) => { - switch (axes[i]) { - case 'x': - target.rotateXD = spinSpeed; - break; - case 'y': - target.rotateYD = spinSpeed; - break; - case 'z': - target.rotateZD = spinSpeed; - break; - } - }); - - return target; - } -})(); - - -const updateTargetHealth = (target, healthDelta) => { - target.health += healthDelta; - if (!target.wireframe) { - const strokeWidth = target.health - 1; - const strokeColor = makeTargetGlueColor(target); - for (let p of target.polys) { - p.strokeWidth = strokeWidth; - p.strokeColor = strokeColor; - } - } -}; - - -const returnTarget = target => { - target.reset(); - const pool = target.wireframe ? targetWireframePool : targetPool; - pool.get(target.color).push(target); -}; - - -function resetAllTargets() { - while(targets.length) { - returnTarget(targets.pop()); - } -} - - - - - -const frags = []; -const fragPool = new Map(allColors.map(c=>([c, []]))); -const fragWireframePool = new Map(allColors.map(c=>([c, []]))); - - -const createBurst = (() => { - const basePositions = mengerSpongeSplit({ x:0, y:0, z:0 }, fragRadius*2); - const positions = cloneVertices(basePositions); - const prevPositions = cloneVertices(basePositions); - const velocities = cloneVertices(basePositions); - - const basePositionNormals = basePositions.map(normalize); - const positionNormals = cloneVertices(basePositionNormals); - - - const fragCount = basePositions.length; - - function getFragForTarget(target) { - const pool = target.wireframe ? fragWireframePool : fragPool; - let frag = pool.get(target.color).pop(); - if (!frag) { - frag = new Entity({ - model: makeBoxModel({ scale: fragRadius }), - color: target.color, - wireframe: target.wireframe - }); - frag.color = target.color; - frag.wireframe = target.wireframe; - } - return frag; - } - - return (target, force=1) => { - // Calculate fragment positions, and what would have been the previous positions - // when still a part of the larger target. - transformVertices( - basePositions, positions, - target.x, target.y, target.z, - target.rotateX, target.rotateY, target.rotateZ, - 1, 1, 1 - ); - transformVertices( - basePositions, prevPositions, - target.x - target.xD, target.y - target.yD, target.z - target.zD, - target.rotateX - target.rotateXD, target.rotateY - target.rotateYD, target.rotateZ - target.rotateZD, - 1, 1, 1 - ); - - for (let i=0; i { - frag.reset(); - const pool = frag.wireframe ? fragWireframePool : fragPool; - pool.get(frag.color).push(frag); -}; - -const sparks = []; -const sparkPool = []; - - -function addSpark(x, y, xD, yD) { - const spark = sparkPool.pop() || {}; - - spark.x = x + xD * 0.5; - spark.y = y + yD * 0.5; - spark.xD = xD; - spark.yD = yD; - spark.life = random(200, 300); - spark.maxLife = spark.life; - - sparks.push(spark); - - return spark; -} - - -// Spherical spark burst -function sparkBurst(x, y, count, maxSpeed) { - const angleInc = TAU / count; - for (let i=0; i { - if (Math.random() < 0.4) { - projectVertex(v); - addSpark( - v.x, - v.y, - random(-12, 12), - random(-12, 12) - ); - } - }); -} - -function returnSpark(spark) { - sparkPool.push(spark); -} - -const hudContainerNode = $('.hud'); - -function setHudVisibility(visible) { - if (visible) { - hudContainerNode.style.display = 'block'; - } else { - hudContainerNode.style.display = 'none'; - } -} - - -const scoreNode = $('.score-lbl'); -const boxCountNode = $('.box-count-lbl'); - -function renderScoreHud() { - if (isPracticeGame()) { - scoreNode.style.display = 'none'; - boxCountNode.style.opacity = 1; - } else { - scoreNode.innerText = `SCORE: ${state.game.score}`; - scoreNode.style.display = 'block'; - boxCountNode.style.opacity = 0.65 ; - } - boxCountNode.innerText = `BOXES SMASHED: ${state.game.boxCount}`; -} - -renderScoreHud(); - - -handlePointerDown($('.pause-btn'), () => pauseGame()); - - -const slowmoNode = $('.slowmo'); -const slowmoBarNode = $('.slowmo__bar'); - -function renderSlowmoStatus(percentRemaining) { - slowmoNode.style.opacity = percentRemaining === 0 ? 0 : 1; - slowmoBarNode.style.transform = `scaleX(${percentRemaining.toFixed(3)})`; -} - - - - -const menuContainerNode = $('.menus'); -const menuMainNode = $('.menu--main'); -const menuPauseNode = $('.menu--pause'); -const menuScoreNode = $('.menu--score'); - -const finalScoreLblNode = $('.final-score-lbl'); -const highScoreLblNode = $('.high-score-lbl'); - - - -function showMenu(node) { - node.classList.add('active'); -} - -function hideMenu(node) { - node.classList.remove('active'); -} - -function renderMenus() { - hideMenu(menuMainNode); - hideMenu(menuPauseNode); - hideMenu(menuScoreNode); - - switch (state.menus.active) { - case MENU_MAIN: - showMenu(menuMainNode); - break; - case MENU_PAUSE: - showMenu(menuPauseNode); - break; - case MENU_SCORE: - finalScoreLblNode.textContent = formatNumber(state.game.score); - if (isNewHighScore()) { - highScoreLblNode.textContent = 'New High Score!'; - } else { - highScoreLblNode.textContent = `High Score: ${formatNumber(getHighScore())}`; - } - showMenu(menuScoreNode); - break; - } - - setHudVisibility(!isMenuVisible()); - menuContainerNode.classList.toggle('has-active', isMenuVisible()); - menuContainerNode.classList.toggle('interactive-mode', isMenuVisible() && pointerIsDown); -} - -renderMenus(); - - - - -// Main Menu -handleClick($('.play-normal-btn'), () => { - setGameMode(GAME_MODE_RANKED); - setActiveMenu(null); - resetGame(); -}); - -handleClick($('.play-practice-btn'), () => { - setGameMode(GAME_MODE_PRACTICE); - setActiveMenu(null); - resetGame(); -}); - -handleClick($('.resume-btn'), () => resumeGame()); -handleClick($('.menu-btn--pause'), () => setActiveMenu(MENU_MAIN)); - -handleClick($('.play-again-btn'), () => { - setActiveMenu(null); - resetGame(); -}); - -handleClick($('.menu-btn--score'), () => setActiveMenu(MENU_MAIN)); - - - -// Main Menu -handleClick($('.play-normal-btn'), () => { - setGameMode(GAME_MODE_RANKED); - setActiveMenu(null); - resetGame(); -}); - -handleClick($('.play-practice-btn'), () => { - setGameMode(GAME_MODE_PRACTICE); - setActiveMenu(null); - resetGame(); -}); - -// Pause Menu -handleClick($('.resume-btn'), () => resumeGame()); -handleClick($('.menu-btn--pause'), () => setActiveMenu(MENU_MAIN)); - -// Score Menu -handleClick($('.play-again-btn'), () => { - setActiveMenu(null); - resetGame(); -}); - -handleClick($('.menu-btn--score'), () => setActiveMenu(MENU_MAIN)); - -function setActiveMenu(menu) { - state.menus.active = menu; - renderMenus(); -} - - -function setScore(score) { - state.game.score = score; - renderScoreHud(); -} - -function incrementScore(inc) { - if (isInGame()) { - state.game.score += inc; - if (state.game.score < 0) { - state.game.score = 0; - } - renderScoreHud(); - } -} - -function setBoxCount(count) { - state.game.boxCount = count; - renderScoreHud(); -} - -function incrementBoxCount(inc) { - if (isInGame()) { - state.game.boxCount += inc; - renderScoreHud(); - } -} - -function setGameMode(mode) { - state.game.mode = mode; -} - -function resetGame() { - resetAllTargets(); - state.game.time = 0; - resetAllCooldowns(); - setScore(0); - setBoxCount(0); - spawnTime = getSpawnDelay(); -} - -function pauseGame() { - isInGame() && setActiveMenu(MENU_PAUSE); -} - -function resumeGame() { - isPaused() && setActiveMenu(null); -} - -function endGame() { - handleCanvasPointerUp(); - if (isNewHighScore()) { - setHighScore(state.game.score); - } - setActiveMenu(MENU_SCORE); -} - - -window.addEventListener('keydown', event => { - if (event.key === 'p') { - isPaused() ? resumeGame() : pauseGame(); - } -}); - - - -let spawnTime = 0; -const maxSpawnX = 450; -const pointerDelta = { x: 0, y: 0 }; -const pointerDeltaScaled = { x: 0, y: 0 }; - -const slowmoDuration = 1500; -let slowmoRemaining = 0; -let spawnExtra = 0; -const spawnExtraDelay = 300; -let targetSpeed = 1; - - -function tick(width, height, simTime, simSpeed, lag) { - PERF_START('frame'); - PERF_START('tick'); - - state.game.time += simTime; - - if (slowmoRemaining > 0) { - slowmoRemaining -= simTime; - if (slowmoRemaining < 0) { - slowmoRemaining = 0; - } - targetSpeed = pointerIsDown ? 0.075 : 0.3; - } else { - const menuPointerDown = isMenuVisible() && pointerIsDown; - targetSpeed = menuPointerDown ? 0.025 : 1; - } - - renderSlowmoStatus(slowmoRemaining / slowmoDuration); - - gameSpeed += (targetSpeed - gameSpeed) / 22 * lag; - gameSpeed = clamp(gameSpeed, 0, 1); - - const centerX = width / 2; - const centerY = height / 2; - - const simAirDrag = 1 - (airDrag * simSpeed); - const simAirDragSpark = 1 - (airDragSpark * simSpeed); - - const forceMultiplier = 1 / (simSpeed * 0.75 + 0.25); - pointerDelta.x = 0; - pointerDelta.y = 0; - pointerDeltaScaled.x = 0; - pointerDeltaScaled.y = 0; - const lastPointer = touchPoints[touchPoints.length - 1]; - - if (pointerIsDown && lastPointer && !lastPointer.touchBreak) { - pointerDelta.x = (pointerScene.x - lastPointer.x); - pointerDelta.y = (pointerScene.y - lastPointer.y); - pointerDeltaScaled.x = pointerDelta.x * forceMultiplier; - pointerDeltaScaled.y = pointerDelta.y * forceMultiplier; - } - const pointerSpeed = Math.hypot(pointerDelta.x, pointerDelta.y); - const pointerSpeedScaled = pointerSpeed * forceMultiplier; - - touchPoints.forEach(p => p.life -= simTime); - - if (pointerIsDown) { - touchPoints.push({ - x: pointerScene.x, - y: pointerScene.y, - life: touchPointLife - }); - } - - while (touchPoints[0] && touchPoints[0].life <= 0) { - touchPoints.shift(); - } - - - PERF_START('entities'); - - spawnTime -= simTime; - if (spawnTime <= 0) { - if (spawnExtra > 0) { - spawnExtra--; - spawnTime = spawnExtraDelay; - } else { - spawnTime = getSpawnDelay(); - } - const target = getTarget(); - const spawnRadius = Math.min(centerX * 0.8, maxSpawnX); - target.x = (Math.random() * spawnRadius * 2 - spawnRadius); - target.y = centerY + targetHitRadius * 2; - target.z = (Math.random() * targetRadius*2 - targetRadius); - target.xD = Math.random() * (target.x * -2 / 120); - target.yD = -20; - targets.push(target); - } - - const leftBound = -centerX + targetRadius; - const rightBound = centerX - targetRadius; - const ceiling = -centerY - 120; - const boundDamping = 0.4; - - targetLoop: - for (let i = targets.length - 1; i >= 0; i--) { - const target = targets[i]; - target.x += target.xD * simSpeed; - target.y += target.yD * simSpeed; - - if (target.y < ceiling) { - target.y = ceiling; - target.yD = 0; - } - - if (target.x < leftBound) { - target.x = leftBound; - target.xD *= -boundDamping; - } else if (target.x > rightBound) { - target.x = rightBound; - target.xD *= -boundDamping; - } - - if (target.z < backboardZ) { - target.z = backboardZ; - target.zD *= -boundDamping; - } - - target.yD += gravity * simSpeed; - target.rotateX += target.rotateXD * simSpeed; - target.rotateY += target.rotateYD * simSpeed; - target.rotateZ += target.rotateZD * simSpeed; - target.transform(); - target.project(); - - if (target.y > centerY + targetHitRadius * 2) { - targets.splice(i, 1); - returnTarget(target); - if (isInGame()) { - if (isPracticeGame()) { - incrementScore(-25); - } else { - endGame(); - } - } - continue; - } - - - const hitTestCount = Math.ceil(pointerSpeed / targetRadius * 2); - for (let ii=1; ii<=hitTestCount; ii++) { - const percent = 1 - (ii / hitTestCount); - const hitX = pointerScene.x - pointerDelta.x * percent; - const hitY = pointerScene.y - pointerDelta.y * percent; - const distance = Math.hypot( - hitX - target.projected.x, - hitY - target.projected.y - ); - - if (distance <= targetHitRadius) { - if (!target.hit) { - target.hit = true; - - target.xD += pointerDeltaScaled.x * hitDampening; - target.yD += pointerDeltaScaled.y * hitDampening; - target.rotateXD += pointerDeltaScaled.y * 0.001; - target.rotateYD += pointerDeltaScaled.x * 0.001; - - const sparkSpeed = 7 + pointerSpeedScaled * 0.125; - - if (pointerSpeedScaled > minPointerSpeed) { - target.health--; - incrementScore(10); - - if (target.health <= 0) { - incrementBoxCount(1); - createBurst(target, forceMultiplier); - sparkBurst(hitX, hitY, 8, sparkSpeed); - if (target.wireframe) { - slowmoRemaining = slowmoDuration; - spawnTime = 0; - spawnExtra = 2; - } - targets.splice(i, 1); - returnTarget(target); - } else { - sparkBurst(hitX, hitY, 8, sparkSpeed); - glueShedSparks(target); - updateTargetHealth(target, 0); - } - } else { - incrementScore(5); - sparkBurst(hitX, hitY, 3, sparkSpeed); - } - } - continue targetLoop; - } - } - - target.hit = false; - } - - const fragBackboardZ = backboardZ + fragRadius; - const fragLeftBound = -width; - const fragRightBound = width; - - for (let i = frags.length - 1; i >= 0; i--) { - const frag = frags[i]; - frag.x += frag.xD * simSpeed; - frag.y += frag.yD * simSpeed; - frag.z += frag.zD * simSpeed; - - frag.xD *= simAirDrag; - frag.yD *= simAirDrag; - frag.zD *= simAirDrag; - - if (frag.y < ceiling) { - frag.y = ceiling; - frag.yD = 0; - } - - if (frag.z < fragBackboardZ) { - frag.z = fragBackboardZ; - frag.zD *= -boundDamping; - } - - frag.yD += gravity * simSpeed; - frag.rotateX += frag.rotateXD * simSpeed; - frag.rotateY += frag.rotateYD * simSpeed; - frag.rotateZ += frag.rotateZD * simSpeed; - frag.transform(); - frag.project(); - - if ( - frag.projected.y > centerY + targetHitRadius || - frag.projected.x < fragLeftBound || - frag.projected.x > fragRightBound || - frag.z > cameraFadeEndZ - ) { - frags.splice(i, 1); - returnFrag(frag); - continue; - } - } - - for (let i = sparks.length - 1; i >= 0; i--) { - const spark = sparks[i]; - spark.life -= simTime; - if (spark.life <= 0) { - sparks.splice(i, 1); - returnSpark(spark); - continue; - } - spark.x += spark.xD * simSpeed; - spark.y += spark.yD * simSpeed; - spark.xD *= simAirDragSpark; - spark.yD *= simAirDragSpark; - spark.yD += gravity * simSpeed; - } - - PERF_END('entities'); - - PERF_START('3D'); - - allVertices.length = 0; - allPolys.length = 0; - allShadowVertices.length = 0; - allShadowPolys.length = 0; - targets.forEach(entity => { - allVertices.push(...entity.vertices); - allPolys.push(...entity.polys); - allShadowVertices.push(...entity.shadowVertices); - allShadowPolys.push(...entity.shadowPolys); - }); - - frags.forEach(entity => { - allVertices.push(...entity.vertices); - allPolys.push(...entity.polys); - allShadowVertices.push(...entity.shadowVertices); - allShadowPolys.push(...entity.shadowPolys); - }); - - allPolys.forEach(p => computePolyNormal(p, 'normalWorld')); - allPolys.forEach(computePolyDepth); - allPolys.sort((a, b) => b.depth - a.depth); - - allVertices.forEach(projectVertex); - - allPolys.forEach(p => computePolyNormal(p, 'normalCamera')); - - PERF_END('3D'); - - PERF_START('shadows'); - - transformVertices( - allShadowVertices, - allShadowVertices, - 0, 0, 0, - TAU/8, 0, 0, - 1, 1, 1 - ); - - allShadowPolys.forEach(p => computePolyNormal(p, 'normalWorld')); - - const shadowDistanceMult = Math.hypot(1, 1); - const shadowVerticesLength = allShadowVertices.length; - for (let i=0; i { - if (p.wireframe) { - ctx.lineWidth = 2; - ctx.beginPath(); - const { vertices } = p; - const vCount = vertices.length; - const firstV = vertices[0]; - ctx.moveTo(firstV.x, firstV.y); - for (let i=1; i { - if (!p.wireframe && p.normalCamera.z < 0) return; - - if (p.strokeWidth !== 0) { - ctx.lineWidth = p.normalCamera.z < 0 ? p.strokeWidth * 0.5 : p.strokeWidth; - ctx.strokeStyle = p.normalCamera.z < 0 ? p.strokeColorDark : p.strokeColor; - } - - const { vertices } = p; - const lastV = vertices[vertices.length - 1]; - const fadeOut = p.middle.z > cameraFadeStartZ; - - if (!p.wireframe) { - const normalLight = p.normalWorld.y * 0.5 + p.normalWorld.z * -0.5; - const lightness = normalLight > 0 - ? 0.1 - : ((normalLight ** 32 - normalLight) / 2) * 0.9 + 0.1; - ctx.fillStyle = shadeColor(p.color, lightness); - } - - if (fadeOut) { - ctx.globalAlpha = Math.max(0, 1 - (p.middle.z - cameraFadeStartZ) / cameraFadeRange); - } - - ctx.beginPath(); - ctx.moveTo(lastV.x, lastV.y); - for (let v of vertices) { - ctx.lineTo(v.x, v.y); - } - - if (!p.wireframe) { - ctx.fill(); - } - if (p.strokeWidth !== 0) { - ctx.stroke(); - } - - if (fadeOut) { - ctx.globalAlpha = 1; - } - }); - PERF_END('drawPolys'); - - - PERF_START('draw2D'); - - ctx.strokeStyle = sparkColor; - ctx.lineWidth = sparkThickness; - ctx.beginPath(); - sparks.forEach(spark => { - ctx.moveTo(spark.x, spark.y); - const scale = (spark.life / spark.maxLife) ** 0.5 * 1.5; - ctx.lineTo(spark.x - spark.xD*scale, spark.y - spark.yD*scale); - - }); - ctx.stroke(); - - ctx.strokeStyle = touchTrailColor; - const touchPointCount = touchPoints.length; - for (let i=1; i 68) { - frameTime = 68; - } - - const halfW = width / 2; - const halfH = height / 2; - - pointerScene.x = pointerScreen.x / viewScale - halfW; - pointerScene.y = pointerScreen.y / viewScale - halfH; - - const lag = frameTime / 16.6667; - const simTime = gameSpeed * frameTime; - const simSpeed = gameSpeed * lag; - tick(width, height, simTime, simSpeed, lag); - - ctx.clearRect(0, 0, canvas.width, canvas.height); - const drawScale = dpr * viewScale; - ctx.scale(drawScale, drawScale); - ctx.translate(halfW, halfH); - draw(ctx, width, height, viewScale); - ctx.setTransform(1, 0, 0, 1, 0, 0); - } - const raf = () => requestAnimationFrame(frameHandler); - raf(); -} - - - - - -// Interaction - -function handleCanvasPointerDown(x, y) { - if (!pointerIsDown) { - pointerIsDown = true; - pointerScreen.x = x; - pointerScreen.y = y; - if (isMenuVisible()) renderMenus(); - } -} - -function handleCanvasPointerUp() { - if (pointerIsDown) { - pointerIsDown = false; - touchPoints.push({ - touchBreak: true, - life: touchPointLife - }); - if (isMenuVisible()) renderMenus(); - } -} - -function handleCanvasPointerMove(x, y) { - if (pointerIsDown) { - pointerScreen.x = x; - pointerScreen.y = y; - } -} - - -// Use pointer events if available, otherwise fallback to touch events (for iOS). -if ('PointerEvent' in window) { - canvas.addEventListener('pointerdown', event => { - event.isPrimary && handleCanvasPointerDown(event.clientX, event.clientY); - }); - - canvas.addEventListener('pointerup', event => { - event.isPrimary && handleCanvasPointerUp(); - }); - - canvas.addEventListener('pointermove', event => { - event.isPrimary && handleCanvasPointerMove(event.clientX, event.clientY); - }); - - document.body.addEventListener('mouseleave', handleCanvasPointerUp); -} else { - let activeTouchId = null; - canvas.addEventListener('touchstart', event => { - if (!pointerIsDown) { - const touch = event.changedTouches[0]; - activeTouchId = touch.identifier; - handleCanvasPointerDown(touch.clientX, touch.clientY); - } - }); - canvas.addEventListener('touchend', event => { - for (let touch of event.changedTouches) { - if (touch.identifier === activeTouchId) { - handleCanvasPointerUp(); - break; - } - } - }); - canvas.addEventListener('touchmove', event => { - for (let touch of event.changedTouches) { - if (touch.identifier === activeTouchId) { - handleCanvasPointerMove(touch.clientX, touch.clientY); - event.preventDefault(); - break; - } - } - }, { passive: false }); -} - - - +let gameSpeed = 1; + +// Colors +const BLUE = { r: 0x1C, g: 0x0, b: 0x5D }; +const GREEN = { r: 0x0, g: 0x4D, b: 0x0 }; +const PINK = { r: 0xfa, g: 0x24, b: 0x73 }; +const RED = { r: 0xD3, g: 0x0, b: 0x0 }; +const allColors = [BLUE, GREEN, PINK, RED]; + +// Gameplay +const getSpawnDelay = () => { + const spawnDelayMax = 1400; + const spawnDelayMin = 550; + const spawnDelay = spawnDelayMax - state.game.boxCount * 3.1; + return Math.max(spawnDelay, spawnDelayMin); +} +const doubleStrongEnableScore = 2000; +const slowmoThreshold = 10; +const strongThreshold = 25; +const spinnerThreshold = 25; + +let pointerIsDown = false; +let pointerScreen = { x: 0, y: 0 }; +let pointerScene = { x: 0, y: 0 }; +const minPointerSpeed = 60; +const hitDampening = 0.1; +const backboardZ = -400; +const shadowColor = '#000000'; +const airDrag = 0.022; +const gravity = 0.3; +const sparkColor = '#FCDE75'; +const sparkThickness = 2.2; +const airDragSpark = 0.1; +const touchTrailColor = 'rgba(170,221,255,.62)'; +const touchTrailThickness = 7; +const touchPointLife = 120; +const touchPoints = []; +const targetRadius = 40; +const targetHitRadius = 50; +const makeTargetGlueColor = target => { + return 'rgb(170,221,255)'; +}; +const fragRadius = targetRadius / 3; + + + +const canvas = document.querySelector('#c'); + +const cameraDistance = 900; +const sceneScale = 1; +const cameraFadeStartZ = 0.45*cameraDistance; +const cameraFadeEndZ = 0.65*cameraDistance; +const cameraFadeRange = cameraFadeEndZ - cameraFadeStartZ; + +const allVertices = []; +const allPolys = []; +const allShadowVertices = []; +const allShadowPolys = []; + + + + +// Game Modes +const GAME_MODE_RANKED = Symbol('GAME_MODE_RANKED'); +const GAME_MODE_PRACTICE = Symbol('GAME_MODE_PRACTICE'); + +// Available Menus +const MENU_MAIN = Symbol('MENU_MAIN'); +const MENU_PAUSE = Symbol('MENU_PAUSE'); +const MENU_SCORE = Symbol('MENU_SCORE'); + + +const state = { + game: { + mode: GAME_MODE_RANKED, + time: 0, + score: 0, + boxCount: 0 + }, + menus: { + active: MENU_MAIN + } +}; + + +const isInGame = () => !state.menus.active; +const isMenuVisible = () => !!state.menus.active; +const isPracticeGame = () => state.game.mode === GAME_MODE_PRACTICE; +const isPaused = () => state.menus.active === MENU_PAUSE; + +const highScoreKey = '__menja__highScore'; +const getHighScore = () => { + const raw = localStorage.getItem(highScoreKey); + return raw ? parseInt(raw, 10) : 0; +}; + +let _lastHighscore = getHighScore(); +const setHighScore = score => { + _lastHighscore = getHighScore(); + localStorage.setItem(highScoreKey, String(score)); +}; + +const isNewHighScore = () => state.game.score > _lastHighscore; + + +const invariant = (condition, message) => { + if (!condition) throw new Error(message); +}; + +const $ = selector => document.querySelector(selector); +const handleClick = (element, handler) => element.addEventListener('click', handler); +const handlePointerDown = (element, handler) => { + element.addEventListener('touchstart', handler); + element.addEventListener('mousedown', handler); +}; + + + +const formatNumber = num => num.toLocaleString(); + + +const PI = Math.PI; +const TAU = Math.PI * 2; +const ETA = Math.PI * 0.5; + + +const clamp = (num, min, max) => Math.min(Math.max(num, min), max); +const lerp = (a, b, mix) => (b - a) * mix + a; + + +const random = (min, max) => Math.random() * (max - min) + min; +const randomInt = (min, max) => ((Math.random() * (max - min + 1)) | 0) + min; + +const pickOne = arr => arr[Math.random() * arr.length | 0]; + +const colorToHex = color => { + return '#' + + (color.r | 0).toString(16).padStart(2, '0') + + (color.g | 0).toString(16).padStart(2, '0') + + (color.b | 0).toString(16).padStart(2, '0'); +}; + +const shadeColor = (color, lightness) => { + let other, mix; + if (lightness < 0.5) { + other = 0; + mix = 1 - (lightness * 2); + } else { + other = 255; + mix = lightness * 2 - 1; + } + return '#' + + (lerp(color.r, other, mix) | 0).toString(16).padStart(2, '0') + + (lerp(color.g, other, mix) | 0).toString(16).padStart(2, '0') + + (lerp(color.b, other, mix) | 0).toString(16).padStart(2, '0'); +}; + + + + +const _allCooldowns = []; + +const makeCooldown = (rechargeTime, units=1) => { + let timeRemaining = 0; + let lastTime = 0; + + const initialOptions = { rechargeTime, units }; + + const updateTime = () => { + const now = state.game.time; + if (now < lastTime) { + timeRemaining = 0; + } else { + // update... + timeRemaining -= now-lastTime; + if (timeRemaining < 0) timeRemaining = 0; + } + lastTime = now; + }; + + const canUse = () => { + updateTime(); + return timeRemaining <= (rechargeTime * (units-1)); + }; + + const cooldown = { + canUse, + useIfAble() { + const usable = canUse(); + if (usable) timeRemaining += rechargeTime; + return usable; + }, + mutate(options) { + if (options.rechargeTime) { + timeRemaining -= rechargeTime-options.rechargeTime; + if (timeRemaining < 0) timeRemaining = 0; + rechargeTime = options.rechargeTime; + } + if (options.units) units = options.units; + }, + reset() { + timeRemaining = 0; + lastTime = 0; + this.mutate(initialOptions); + } + }; + + _allCooldowns.push(cooldown); + + return cooldown; +}; + +const resetAllCooldowns = () => _allCooldowns.forEach(cooldown => cooldown.reset()); + +const makeSpawner = ({ chance, cooldownPerSpawn, maxSpawns }) => { + const cooldown = makeCooldown(cooldownPerSpawn, maxSpawns); + return { + shouldSpawn() { + return Math.random() <= chance && cooldown.useIfAble(); + }, + mutate(options) { + if (options.chance) chance = options.chance; + cooldown.mutate({ + rechargeTime: options.cooldownPerSpawn, + units: options.maxSpawns + }); + } + }; +}; + + + +const normalize = v => { + const mag = Math.hypot(v.x, v.y, v.z); + return { + x: v.x / mag, + y: v.y / mag, + z: v.z / mag + }; +} + +const add = a => b => a + b; +const scaleVector = scale => vector => { + vector.x *= scale; + vector.y *= scale; + vector.z *= scale; +}; + +function cloneVertices(vertices) { + return vertices.map(v => ({ x: v.x, y: v.y, z: v.z })); +} + +function copyVerticesTo(arr1, arr2) { + const len = arr1.length; + for (let i=0; i { + const targetVertex = target[i]; + // X axis rotation + const x1 = v.x; + const y1 = v.z*sinX + v.y*cosX; + const z1 = v.z*cosX - v.y*sinX; + // Y axis rotation + const x2 = x1*cosY - z1*sinY; + const y2 = y1; + const z2 = x1*sinY + z1*cosY; + const x3 = x2*cosZ - y2*sinZ; + const y3 = x2*sinZ + y2*cosZ; + const z3 = z2; + + targetVertex.x = x3 * sX + tX; + targetVertex.y = y3 * sY + tY; + targetVertex.z = z3 * sZ + tZ; + }); +} + +const projectVertex = v => { + const focalLength = cameraDistance * sceneScale; + const depth = focalLength / (cameraDistance - v.z); + v.x = v.x * depth; + v.y = v.y * depth; +}; + +const projectVertexTo = (v, target) => { + const focalLength = cameraDistance * sceneScale; + const depth = focalLength / (cameraDistance - v.z); + target.x = v.x * depth; + target.y = v.y * depth; +}; + + +const PERF_START = () => {}; +const PERF_END = () => {}; +const PERF_UPDATE = () => {}; + + +function makeBoxModel({ scale=1 }) { + return { + vertices: [ + { x: -scale, y: -scale, z: scale }, + { x: scale, y: -scale, z: scale }, + { x: scale, y: scale, z: scale }, + { x: -scale, y: scale, z: scale }, + + { x: -scale, y: -scale, z: -scale }, + { x: scale, y: -scale, z: -scale }, + { x: scale, y: scale, z: -scale }, + { x: -scale, y: scale, z: -scale } + ], + polys: [ + { vIndexes: [0, 1, 2, 3] }, + { vIndexes: [7, 6, 5, 4] }, + { vIndexes: [3, 2, 6, 7] }, + { vIndexes: [4, 5, 1, 0] }, + { vIndexes: [5, 6, 2, 1] }, + { vIndexes: [0, 3, 7, 4] } + ] + }; +} + +function makeRecursiveBoxModel({ recursionLevel, splitFn, color, scale=1 }) { + const getScaleAtLevel = level => 1 / (3 ** level); + + let boxOrigins = [{ x: 0, y: 0, z: 0 }]; + + for (let i=1; i<=recursionLevel; i++) { + const scale = getScaleAtLevel(i) * 2; + const boxOrigins2 = []; + boxOrigins.forEach(origin => { + boxOrigins2.push(...splitFn(origin, scale)); + }); + boxOrigins = boxOrigins2; + } + + const finalModel = { vertices: [], polys: [] }; + + const boxModel = makeBoxModel({ scale: 1 }); + boxModel.vertices.forEach(scaleVector(getScaleAtLevel(recursionLevel))); + + const maxComponent = getScaleAtLevel(recursionLevel) * (3 ** recursionLevel - 1); + + boxOrigins.forEach((origin, boxIndex) => { + const occlusion = Math.max( + Math.abs(origin.x), + Math.abs(origin.y), + Math.abs(origin.z) + ) / maxComponent; + const occlusionLighter = recursionLevel > 2 + ? occlusion + : (occlusion + 0.8) / 1.8; + finalModel.vertices.push( + ...boxModel.vertices.map(v => ({ + x: (v.x + origin.x) * scale, + y: (v.y + origin.y) * scale, + z: (v.z + origin.z) * scale + })) + ); + finalModel.polys.push( + ...boxModel.polys.map(poly => ({ + vIndexes: poly.vIndexes.map(add(boxIndex * 8)) + })) + ); + }); + + return finalModel; +} + + +function mengerSpongeSplit(o, s) { + return [ + { x: o.x + s, y: o.y - s, z: o.z + s }, + { x: o.x + s, y: o.y - s, z: o.z + 0 }, + { x: o.x + s, y: o.y - s, z: o.z - s }, + { x: o.x + 0, y: o.y - s, z: o.z + s }, + { x: o.x + 0, y: o.y - s, z: o.z - s }, + { x: o.x - s, y: o.y - s, z: o.z + s }, + { x: o.x - s, y: o.y - s, z: o.z + 0 }, + { x: o.x - s, y: o.y - s, z: o.z - s }, + + { x: o.x + s, y: o.y + s, z: o.z + s }, + { x: o.x + s, y: o.y + s, z: o.z + 0 }, + { x: o.x + s, y: o.y + s, z: o.z - s }, + { x: o.x + 0, y: o.y + s, z: o.z + s }, + { x: o.x + 0, y: o.y + s, z: o.z - s }, + { x: o.x - s, y: o.y + s, z: o.z + s }, + { x: o.x - s, y: o.y + s, z: o.z + 0 }, + { x: o.x - s, y: o.y + s, z: o.z - s }, + + { x: o.x + s, y: o.y + 0, z: o.z + s }, + { x: o.x + s, y: o.y + 0, z: o.z - s }, + { x: o.x - s, y: o.y + 0, z: o.z + s }, + { x: o.x - s, y: o.y + 0, z: o.z - s } + ]; +} + +function optimizeModel(model, threshold=0.0001) { + const { vertices, polys } = model; + + const compareVertices = (v1, v2) => ( + Math.abs(v1.x - v2.x) < threshold && + Math.abs(v1.y - v2.y) < threshold && + Math.abs(v1.z - v2.z) < threshold + ); + + const comparePolys = (p1, p2) => { + const v1 = p1.vIndexes; + const v2 = p2.vIndexes; + return ( + ( + v1[0] === v2[0] || + v1[0] === v2[1] || + v1[0] === v2[2] || + v1[0] === v2[3] + ) && ( + v1[1] === v2[0] || + v1[1] === v2[1] || + v1[1] === v2[2] || + v1[1] === v2[3] + ) && ( + v1[2] === v2[0] || + v1[2] === v2[1] || + v1[2] === v2[2] || + v1[2] === v2[3] + ) && ( + v1[3] === v2[0] || + v1[3] === v2[1] || + v1[3] === v2[2] || + v1[3] === v2[3] + ) + ); + }; + + + vertices.forEach((v, i) => { + v.originalIndexes = [i]; + }); + + for (let i=vertices.length-1; i>=0; i--) { + for (let ii=i-1; ii>=0; ii--) { + const v1 = vertices[i]; + const v2 = vertices[ii]; + if (compareVertices(v1, v2)) { + vertices.splice(i, 1); + v2.originalIndexes.push(...v1.originalIndexes); + break; + } + } + } + + vertices.forEach((v, i) => { + polys.forEach(p => { + p.vIndexes.forEach((vi, ii, arr) => { + const vo = v.originalIndexes; + if (vo.includes(vi)) { + arr[ii] = i; + } + }); + }); + }); + + polys.forEach(p => { + const vi = p.vIndexes; + p.sum = vi[0] + vi[1] + vi[2] + vi[3]; + }); + polys.sort((a, b) => b.sum - a.sum); + for (let i=polys.length-1; i>=0; i--) { + for (let ii=i-1; ii>=0; ii--) { + const p1 = polys[i]; + const p2 = polys[ii]; + if (p1.sum !== p2.sum) break; + if (comparePolys(p1, p2)) { + polys.splice(i, 1); + polys.splice(ii, 1); + i--; + break; + } + } + } + + return model; +} + + +class Entity { + constructor({ model, color, wireframe=false }) { + const vertices = cloneVertices(model.vertices); + const shadowVertices = cloneVertices(model.vertices); + const colorHex = colorToHex(color); + const darkColorHex = shadeColor(color, 0.4); + + const polys = model.polys.map(p => ({ + vertices: p.vIndexes.map(vIndex => vertices[vIndex]), + color: color, + wireframe: wireframe, + strokeWidth: wireframe ? 2 : 0, + strokeColor: colorHex, + strokeColorDark: darkColorHex, + depth: 0, + middle: { x: 0, y: 0, z: 0 }, + normalWorld: { x: 0, y: 0, z: 0 }, + normalCamera: { x: 0, y: 0, z: 0 } + })); + + const shadowPolys = model.polys.map(p => ({ + vertices: p.vIndexes.map(vIndex => shadowVertices[vIndex]), + wireframe: wireframe, + normalWorld: { x: 0, y: 0, z: 0 } + })); + + this.projected = {}; + this.model = model; + this.vertices = vertices; + this.polys = polys; + this.shadowVertices = shadowVertices; + this.shadowPolys = shadowPolys; + this.reset(); + } + + reset() { + this.x = 0; + this.y = 0; + this.z = 0; + this.xD = 0; + this.yD = 0; + this.zD = 0; + + this.rotateX = 0; + this.rotateY = 0; + this.rotateZ = 0; + this.rotateXD = 0; + this.rotateYD = 0; + this.rotateZD = 0; + + this.scaleX = 1; + this.scaleY = 1; + this.scaleZ = 1; + + this.projected.x = 0; + this.projected.y = 0; + } + + transform() { + transformVertices( + this.model.vertices, + this.vertices, + this.x, + this.y, + this.z, + this.rotateX, + this.rotateY, + this.rotateZ, + this.scaleX, + this.scaleY, + this.scaleZ + ); + + copyVerticesTo(this.vertices, this.shadowVertices); + } + + project() { + projectVertexTo(this, this.projected); + } +} + + + + +const targets = []; + +const targetPool = new Map(allColors.map(c=>([c, []]))); +const targetWireframePool = new Map(allColors.map(c=>([c, []]))); + + + +const getTarget = (() => { + + const slowmoSpawner = makeSpawner({ + chance: 0.5, + cooldownPerSpawn: 10000, + maxSpawns: 1 + }); + + let doubleStrong = false; + const strongSpawner = makeSpawner({ + chance: 0.3, + cooldownPerSpawn: 12000, + maxSpawns: 1 + }); + + const spinnerSpawner = makeSpawner({ + chance: 0.1, + cooldownPerSpawn: 10000, + maxSpawns: 1 + }); + + const axisOptions = [ + ['x', 'y'], + ['y', 'z'], + ['z', 'x'] + ]; + + function getTargetOfStyle(color, wireframe) { + const pool = wireframe ? targetWireframePool : targetPool; + let target = pool.get(color).pop(); + if (!target) { + target = new Entity({ + model: optimizeModel(makeRecursiveBoxModel({ + recursionLevel: 1, + splitFn: mengerSpongeSplit, + scale: targetRadius + })), + color: color, + wireframe: wireframe + }); + + target.color = color; + target.wireframe = wireframe; + target.hit = false; + target.maxHealth = 0; + target.health = 0; + } + return target; + } + + return function getTarget() { + if (doubleStrong && state.game.score <= doubleStrongEnableScore) { + doubleStrong = false; + } else if (!doubleStrong && state.game.score > doubleStrongEnableScore) { + doubleStrong = true; + strongSpawner.mutate({ maxSpawns: 2 }); + } + + let color = pickOne([BLUE, GREEN, RED]); + let wireframe = false; + let health = 1; + let maxHealth = 3; + const spinner = state.game.boxCount >= spinnerThreshold && isInGame() && spinnerSpawner.shouldSpawn(); + + if (state.game.boxCount >= slowmoThreshold && slowmoSpawner.shouldSpawn()) { + color = BLUE; + wireframe = true; + } + else if (state.game.boxCount >= strongThreshold && strongSpawner.shouldSpawn()) { + color = PINK; + health = 3; + } + + const target = getTargetOfStyle(color, wireframe); + target.hit = false; + target.maxHealth = maxHealth; + target.health = health; + updateTargetHealth(target, 0); + + const spinSpeeds = [ + Math.random() * 0.1 - 0.05, + Math.random() * 0.1 - 0.05 + ]; + + if (spinner) { + spinSpeeds[0] = -0.25; + spinSpeeds[1] = 0; + target.rotateZ = random(0, TAU); + } + + const axes = pickOne(axisOptions); + + spinSpeeds.forEach((spinSpeed, i) => { + switch (axes[i]) { + case 'x': + target.rotateXD = spinSpeed; + break; + case 'y': + target.rotateYD = spinSpeed; + break; + case 'z': + target.rotateZD = spinSpeed; + break; + } + }); + + return target; + } +})(); + + +const updateTargetHealth = (target, healthDelta) => { + target.health += healthDelta; + if (!target.wireframe) { + const strokeWidth = target.health - 1; + const strokeColor = makeTargetGlueColor(target); + for (let p of target.polys) { + p.strokeWidth = strokeWidth; + p.strokeColor = strokeColor; + } + } +}; + + +const returnTarget = target => { + target.reset(); + const pool = target.wireframe ? targetWireframePool : targetPool; + pool.get(target.color).push(target); +}; + + +function resetAllTargets() { + while(targets.length) { + returnTarget(targets.pop()); + } +} + + + + + +const frags = []; +const fragPool = new Map(allColors.map(c=>([c, []]))); +const fragWireframePool = new Map(allColors.map(c=>([c, []]))); + + +const createBurst = (() => { + const basePositions = mengerSpongeSplit({ x:0, y:0, z:0 }, fragRadius*2); + const positions = cloneVertices(basePositions); + const prevPositions = cloneVertices(basePositions); + const velocities = cloneVertices(basePositions); + + const basePositionNormals = basePositions.map(normalize); + const positionNormals = cloneVertices(basePositionNormals); + + + const fragCount = basePositions.length; + + function getFragForTarget(target) { + const pool = target.wireframe ? fragWireframePool : fragPool; + let frag = pool.get(target.color).pop(); + if (!frag) { + frag = new Entity({ + model: makeBoxModel({ scale: fragRadius }), + color: target.color, + wireframe: target.wireframe + }); + frag.color = target.color; + frag.wireframe = target.wireframe; + } + return frag; + } + + return (target, force=1) => { + // Calculate fragment positions, and what would have been the previous positions + // when still a part of the larger target. + transformVertices( + basePositions, positions, + target.x, target.y, target.z, + target.rotateX, target.rotateY, target.rotateZ, + 1, 1, 1 + ); + transformVertices( + basePositions, prevPositions, + target.x - target.xD, target.y - target.yD, target.z - target.zD, + target.rotateX - target.rotateXD, target.rotateY - target.rotateYD, target.rotateZ - target.rotateZD, + 1, 1, 1 + ); + + for (let i=0; i { + frag.reset(); + const pool = frag.wireframe ? fragWireframePool : fragPool; + pool.get(frag.color).push(frag); +}; + +const sparks = []; +const sparkPool = []; + + +function addSpark(x, y, xD, yD) { + const spark = sparkPool.pop() || {}; + + spark.x = x + xD * 0.5; + spark.y = y + yD * 0.5; + spark.xD = xD; + spark.yD = yD; + spark.life = random(200, 300); + spark.maxLife = spark.life; + + sparks.push(spark); + + return spark; +} + + +// Spherical spark burst +function sparkBurst(x, y, count, maxSpeed) { + const angleInc = TAU / count; + for (let i=0; i { + if (Math.random() < 0.4) { + projectVertex(v); + addSpark( + v.x, + v.y, + random(-12, 12), + random(-12, 12) + ); + } + }); +} + +function returnSpark(spark) { + sparkPool.push(spark); +} + +const hudContainerNode = $('.hud'); + +function setHudVisibility(visible) { + if (visible) { + hudContainerNode.style.display = 'block'; + } else { + hudContainerNode.style.display = 'none'; + } +} + + +const scoreNode = $('.score-lbl'); +const boxCountNode = $('.box-count-lbl'); + +function renderScoreHud() { + if (isPracticeGame()) { + scoreNode.style.display = 'none'; + boxCountNode.style.opacity = 1; + } else { + scoreNode.innerText = `SCORE: ${state.game.score}`; + scoreNode.style.display = 'block'; + boxCountNode.style.opacity = 0.65 ; + } + boxCountNode.innerText = `BOXES SMASHED: ${state.game.boxCount}`; +} + +renderScoreHud(); + + +handlePointerDown($('.pause-btn'), () => pauseGame()); + + +const slowmoNode = $('.slowmo'); +const slowmoBarNode = $('.slowmo__bar'); + +function renderSlowmoStatus(percentRemaining) { + slowmoNode.style.opacity = percentRemaining === 0 ? 0 : 1; + slowmoBarNode.style.transform = `scaleX(${percentRemaining.toFixed(3)})`; +} + + + + +const menuContainerNode = $('.menus'); +const menuMainNode = $('.menu--main'); +const menuPauseNode = $('.menu--pause'); +const menuScoreNode = $('.menu--score'); + +const finalScoreLblNode = $('.final-score-lbl'); +const highScoreLblNode = $('.high-score-lbl'); + + + +function showMenu(node) { + node.classList.add('active'); +} + +function hideMenu(node) { + node.classList.remove('active'); +} + +function renderMenus() { + hideMenu(menuMainNode); + hideMenu(menuPauseNode); + hideMenu(menuScoreNode); + + switch (state.menus.active) { + case MENU_MAIN: + showMenu(menuMainNode); + break; + case MENU_PAUSE: + showMenu(menuPauseNode); + break; + case MENU_SCORE: + finalScoreLblNode.textContent = formatNumber(state.game.score); + if (isNewHighScore()) { + highScoreLblNode.textContent = 'New High Score!'; + } else { + highScoreLblNode.textContent = `High Score: ${formatNumber(getHighScore())}`; + } + showMenu(menuScoreNode); + break; + } + + setHudVisibility(!isMenuVisible()); + menuContainerNode.classList.toggle('has-active', isMenuVisible()); + menuContainerNode.classList.toggle('interactive-mode', isMenuVisible() && pointerIsDown); +} + +renderMenus(); + + + + +// Main Menu +handleClick($('.play-normal-btn'), () => { + setGameMode(GAME_MODE_RANKED); + setActiveMenu(null); + resetGame(); +}); + +handleClick($('.play-practice-btn'), () => { + setGameMode(GAME_MODE_PRACTICE); + setActiveMenu(null); + resetGame(); +}); + +handleClick($('.resume-btn'), () => resumeGame()); +handleClick($('.menu-btn--pause'), () => setActiveMenu(MENU_MAIN)); + +handleClick($('.play-again-btn'), () => { + setActiveMenu(null); + resetGame(); +}); + +handleClick($('.menu-btn--score'), () => setActiveMenu(MENU_MAIN)); + + + +// Main Menu +handleClick($('.play-normal-btn'), () => { + setGameMode(GAME_MODE_RANKED); + setActiveMenu(null); + resetGame(); +}); + +handleClick($('.play-practice-btn'), () => { + setGameMode(GAME_MODE_PRACTICE); + setActiveMenu(null); + resetGame(); +}); + +// Pause Menu +handleClick($('.resume-btn'), () => resumeGame()); +handleClick($('.menu-btn--pause'), () => setActiveMenu(MENU_MAIN)); + +// Score Menu +handleClick($('.play-again-btn'), () => { + setActiveMenu(null); + resetGame(); +}); + +handleClick($('.menu-btn--score'), () => setActiveMenu(MENU_MAIN)); + +function setActiveMenu(menu) { + state.menus.active = menu; + renderMenus(); +} + + +function setScore(score) { + state.game.score = score; + renderScoreHud(); +} + +function incrementScore(inc) { + if (isInGame()) { + state.game.score += inc; + if (state.game.score < 0) { + state.game.score = 0; + } + renderScoreHud(); + } +} + +function setBoxCount(count) { + state.game.boxCount = count; + renderScoreHud(); +} + +function incrementBoxCount(inc) { + if (isInGame()) { + state.game.boxCount += inc; + renderScoreHud(); + } +} + +function setGameMode(mode) { + state.game.mode = mode; +} + +function resetGame() { + resetAllTargets(); + state.game.time = 0; + resetAllCooldowns(); + setScore(0); + setBoxCount(0); + spawnTime = getSpawnDelay(); +} + +function pauseGame() { + isInGame() && setActiveMenu(MENU_PAUSE); +} + +function resumeGame() { + isPaused() && setActiveMenu(null); +} + +function endGame() { + handleCanvasPointerUp(); + if (isNewHighScore()) { + setHighScore(state.game.score); + } + setActiveMenu(MENU_SCORE); +} + + +window.addEventListener('keydown', event => { + if (event.key === 'p') { + isPaused() ? resumeGame() : pauseGame(); + } +}); + + + +let spawnTime = 0; +const maxSpawnX = 450; +const pointerDelta = { x: 0, y: 0 }; +const pointerDeltaScaled = { x: 0, y: 0 }; + +const slowmoDuration = 1500; +let slowmoRemaining = 0; +let spawnExtra = 0; +const spawnExtraDelay = 300; +let targetSpeed = 1; + + +function tick(width, height, simTime, simSpeed, lag) { + PERF_START('frame'); + PERF_START('tick'); + + state.game.time += simTime; + + if (slowmoRemaining > 0) { + slowmoRemaining -= simTime; + if (slowmoRemaining < 0) { + slowmoRemaining = 0; + } + targetSpeed = pointerIsDown ? 0.075 : 0.3; + } else { + const menuPointerDown = isMenuVisible() && pointerIsDown; + targetSpeed = menuPointerDown ? 0.025 : 1; + } + + renderSlowmoStatus(slowmoRemaining / slowmoDuration); + + gameSpeed += (targetSpeed - gameSpeed) / 22 * lag; + gameSpeed = clamp(gameSpeed, 0, 1); + + const centerX = width / 2; + const centerY = height / 2; + + const simAirDrag = 1 - (airDrag * simSpeed); + const simAirDragSpark = 1 - (airDragSpark * simSpeed); + + const forceMultiplier = 1 / (simSpeed * 0.75 + 0.25); + pointerDelta.x = 0; + pointerDelta.y = 0; + pointerDeltaScaled.x = 0; + pointerDeltaScaled.y = 0; + const lastPointer = touchPoints[touchPoints.length - 1]; + + if (pointerIsDown && lastPointer && !lastPointer.touchBreak) { + pointerDelta.x = (pointerScene.x - lastPointer.x); + pointerDelta.y = (pointerScene.y - lastPointer.y); + pointerDeltaScaled.x = pointerDelta.x * forceMultiplier; + pointerDeltaScaled.y = pointerDelta.y * forceMultiplier; + } + const pointerSpeed = Math.hypot(pointerDelta.x, pointerDelta.y); + const pointerSpeedScaled = pointerSpeed * forceMultiplier; + + touchPoints.forEach(p => p.life -= simTime); + + if (pointerIsDown) { + touchPoints.push({ + x: pointerScene.x, + y: pointerScene.y, + life: touchPointLife + }); + } + + while (touchPoints[0] && touchPoints[0].life <= 0) { + touchPoints.shift(); + } + + + PERF_START('entities'); + + spawnTime -= simTime; + if (spawnTime <= 0) { + if (spawnExtra > 0) { + spawnExtra--; + spawnTime = spawnExtraDelay; + } else { + spawnTime = getSpawnDelay(); + } + const target = getTarget(); + const spawnRadius = Math.min(centerX * 0.8, maxSpawnX); + target.x = (Math.random() * spawnRadius * 2 - spawnRadius); + target.y = centerY + targetHitRadius * 2; + target.z = (Math.random() * targetRadius*2 - targetRadius); + target.xD = Math.random() * (target.x * -2 / 120); + target.yD = -20; + targets.push(target); + } + + const leftBound = -centerX + targetRadius; + const rightBound = centerX - targetRadius; + const ceiling = -centerY - 120; + const boundDamping = 0.4; + + targetLoop: + for (let i = targets.length - 1; i >= 0; i--) { + const target = targets[i]; + target.x += target.xD * simSpeed; + target.y += target.yD * simSpeed; + + if (target.y < ceiling) { + target.y = ceiling; + target.yD = 0; + } + + if (target.x < leftBound) { + target.x = leftBound; + target.xD *= -boundDamping; + } else if (target.x > rightBound) { + target.x = rightBound; + target.xD *= -boundDamping; + } + + if (target.z < backboardZ) { + target.z = backboardZ; + target.zD *= -boundDamping; + } + + target.yD += gravity * simSpeed; + target.rotateX += target.rotateXD * simSpeed; + target.rotateY += target.rotateYD * simSpeed; + target.rotateZ += target.rotateZD * simSpeed; + target.transform(); + target.project(); + + if (target.y > centerY + targetHitRadius * 2) { + targets.splice(i, 1); + returnTarget(target); + if (isInGame()) { + if (isPracticeGame()) { + incrementScore(-25); + } else { + endGame(); + } + } + continue; + } + + + const hitTestCount = Math.ceil(pointerSpeed / targetRadius * 2); + for (let ii=1; ii<=hitTestCount; ii++) { + const percent = 1 - (ii / hitTestCount); + const hitX = pointerScene.x - pointerDelta.x * percent; + const hitY = pointerScene.y - pointerDelta.y * percent; + const distance = Math.hypot( + hitX - target.projected.x, + hitY - target.projected.y + ); + + if (distance <= targetHitRadius) { + if (!target.hit) { + target.hit = true; + + target.xD += pointerDeltaScaled.x * hitDampening; + target.yD += pointerDeltaScaled.y * hitDampening; + target.rotateXD += pointerDeltaScaled.y * 0.001; + target.rotateYD += pointerDeltaScaled.x * 0.001; + + const sparkSpeed = 7 + pointerSpeedScaled * 0.125; + + if (pointerSpeedScaled > minPointerSpeed) { + target.health--; + incrementScore(10); + + if (target.health <= 0) { + incrementBoxCount(1); + createBurst(target, forceMultiplier); + sparkBurst(hitX, hitY, 8, sparkSpeed); + if (target.wireframe) { + slowmoRemaining = slowmoDuration; + spawnTime = 0; + spawnExtra = 2; + } + targets.splice(i, 1); + returnTarget(target); + } else { + sparkBurst(hitX, hitY, 8, sparkSpeed); + glueShedSparks(target); + updateTargetHealth(target, 0); + } + } else { + incrementScore(5); + sparkBurst(hitX, hitY, 3, sparkSpeed); + } + } + continue targetLoop; + } + } + + target.hit = false; + } + + const fragBackboardZ = backboardZ + fragRadius; + const fragLeftBound = -width; + const fragRightBound = width; + + for (let i = frags.length - 1; i >= 0; i--) { + const frag = frags[i]; + frag.x += frag.xD * simSpeed; + frag.y += frag.yD * simSpeed; + frag.z += frag.zD * simSpeed; + + frag.xD *= simAirDrag; + frag.yD *= simAirDrag; + frag.zD *= simAirDrag; + + if (frag.y < ceiling) { + frag.y = ceiling; + frag.yD = 0; + } + + if (frag.z < fragBackboardZ) { + frag.z = fragBackboardZ; + frag.zD *= -boundDamping; + } + + frag.yD += gravity * simSpeed; + frag.rotateX += frag.rotateXD * simSpeed; + frag.rotateY += frag.rotateYD * simSpeed; + frag.rotateZ += frag.rotateZD * simSpeed; + frag.transform(); + frag.project(); + + if ( + frag.projected.y > centerY + targetHitRadius || + frag.projected.x < fragLeftBound || + frag.projected.x > fragRightBound || + frag.z > cameraFadeEndZ + ) { + frags.splice(i, 1); + returnFrag(frag); + continue; + } + } + + for (let i = sparks.length - 1; i >= 0; i--) { + const spark = sparks[i]; + spark.life -= simTime; + if (spark.life <= 0) { + sparks.splice(i, 1); + returnSpark(spark); + continue; + } + spark.x += spark.xD * simSpeed; + spark.y += spark.yD * simSpeed; + spark.xD *= simAirDragSpark; + spark.yD *= simAirDragSpark; + spark.yD += gravity * simSpeed; + } + + PERF_END('entities'); + + PERF_START('3D'); + + allVertices.length = 0; + allPolys.length = 0; + allShadowVertices.length = 0; + allShadowPolys.length = 0; + targets.forEach(entity => { + allVertices.push(...entity.vertices); + allPolys.push(...entity.polys); + allShadowVertices.push(...entity.shadowVertices); + allShadowPolys.push(...entity.shadowPolys); + }); + + frags.forEach(entity => { + allVertices.push(...entity.vertices); + allPolys.push(...entity.polys); + allShadowVertices.push(...entity.shadowVertices); + allShadowPolys.push(...entity.shadowPolys); + }); + + allPolys.forEach(p => computePolyNormal(p, 'normalWorld')); + allPolys.forEach(computePolyDepth); + allPolys.sort((a, b) => b.depth - a.depth); + + allVertices.forEach(projectVertex); + + allPolys.forEach(p => computePolyNormal(p, 'normalCamera')); + + PERF_END('3D'); + + PERF_START('shadows'); + + transformVertices( + allShadowVertices, + allShadowVertices, + 0, 0, 0, + TAU/8, 0, 0, + 1, 1, 1 + ); + + allShadowPolys.forEach(p => computePolyNormal(p, 'normalWorld')); + + const shadowDistanceMult = Math.hypot(1, 1); + const shadowVerticesLength = allShadowVertices.length; + for (let i=0; i { + if (p.wireframe) { + ctx.lineWidth = 2; + ctx.beginPath(); + const { vertices } = p; + const vCount = vertices.length; + const firstV = vertices[0]; + ctx.moveTo(firstV.x, firstV.y); + for (let i=1; i { + if (!p.wireframe && p.normalCamera.z < 0) return; + + if (p.strokeWidth !== 0) { + ctx.lineWidth = p.normalCamera.z < 0 ? p.strokeWidth * 0.5 : p.strokeWidth; + ctx.strokeStyle = p.normalCamera.z < 0 ? p.strokeColorDark : p.strokeColor; + } + + const { vertices } = p; + const lastV = vertices[vertices.length - 1]; + const fadeOut = p.middle.z > cameraFadeStartZ; + + if (!p.wireframe) { + const normalLight = p.normalWorld.y * 0.5 + p.normalWorld.z * -0.5; + const lightness = normalLight > 0 + ? 0.1 + : ((normalLight ** 32 - normalLight) / 2) * 0.9 + 0.1; + ctx.fillStyle = shadeColor(p.color, lightness); + } + + if (fadeOut) { + ctx.globalAlpha = Math.max(0, 1 - (p.middle.z - cameraFadeStartZ) / cameraFadeRange); + } + + ctx.beginPath(); + ctx.moveTo(lastV.x, lastV.y); + for (let v of vertices) { + ctx.lineTo(v.x, v.y); + } + + if (!p.wireframe) { + ctx.fill(); + } + if (p.strokeWidth !== 0) { + ctx.stroke(); + } + + if (fadeOut) { + ctx.globalAlpha = 1; + } + }); + PERF_END('drawPolys'); + + + PERF_START('draw2D'); + + ctx.strokeStyle = sparkColor; + ctx.lineWidth = sparkThickness; + ctx.beginPath(); + sparks.forEach(spark => { + ctx.moveTo(spark.x, spark.y); + const scale = (spark.life / spark.maxLife) ** 0.5 * 1.5; + ctx.lineTo(spark.x - spark.xD*scale, spark.y - spark.yD*scale); + + }); + ctx.stroke(); + + ctx.strokeStyle = touchTrailColor; + const touchPointCount = touchPoints.length; + for (let i=1; i 68) { + frameTime = 68; + } + + const halfW = width / 2; + const halfH = height / 2; + + pointerScene.x = pointerScreen.x / viewScale - halfW; + pointerScene.y = pointerScreen.y / viewScale - halfH; + + const lag = frameTime / 16.6667; + const simTime = gameSpeed * frameTime; + const simSpeed = gameSpeed * lag; + tick(width, height, simTime, simSpeed, lag); + + ctx.clearRect(0, 0, canvas.width, canvas.height); + const drawScale = dpr * viewScale; + ctx.scale(drawScale, drawScale); + ctx.translate(halfW, halfH); + draw(ctx, width, height, viewScale); + ctx.setTransform(1, 0, 0, 1, 0, 0); + } + const raf = () => requestAnimationFrame(frameHandler); + raf(); +} + + + + + +// Interaction + +function handleCanvasPointerDown(x, y) { + if (!pointerIsDown) { + pointerIsDown = true; + pointerScreen.x = x; + pointerScreen.y = y; + if (isMenuVisible()) renderMenus(); + } +} + +function handleCanvasPointerUp() { + if (pointerIsDown) { + pointerIsDown = false; + touchPoints.push({ + touchBreak: true, + life: touchPointLife + }); + if (isMenuVisible()) renderMenus(); + } +} + +function handleCanvasPointerMove(x, y) { + if (pointerIsDown) { + pointerScreen.x = x; + pointerScreen.y = y; + } +} + + +// Use pointer events if available, otherwise fallback to touch events (for iOS). +if ('PointerEvent' in window) { + canvas.addEventListener('pointerdown', event => { + event.isPrimary && handleCanvasPointerDown(event.clientX, event.clientY); + }); + + canvas.addEventListener('pointerup', event => { + event.isPrimary && handleCanvasPointerUp(); + }); + + canvas.addEventListener('pointermove', event => { + event.isPrimary && handleCanvasPointerMove(event.clientX, event.clientY); + }); + + document.body.addEventListener('mouseleave', handleCanvasPointerUp); +} else { + let activeTouchId = null; + canvas.addEventListener('touchstart', event => { + if (!pointerIsDown) { + const touch = event.changedTouches[0]; + activeTouchId = touch.identifier; + handleCanvasPointerDown(touch.clientX, touch.clientY); + } + }); + canvas.addEventListener('touchend', event => { + for (let touch of event.changedTouches) { + if (touch.identifier === activeTouchId) { + handleCanvasPointerUp(); + break; + } + } + }); + canvas.addEventListener('touchmove', event => { + for (let touch of event.changedTouches) { + if (touch.identifier === activeTouchId) { + handleCanvasPointerMove(touch.clientX, touch.clientY); + event.preventDefault(); + break; + } + } + }, { passive: false }); +} + + + setupCanvases(); \ No newline at end of file diff --git a/Games/Slice_Storm/style.css b/Games/Slice_Storm/style.css index 60342d46c9..5371b5bd2c 100644 --- a/Games/Slice_Storm/style.css +++ b/Games/Slice_Storm/style.css @@ -1,258 +1,258 @@ -body { - margin: 0; - background-color: #FFC0CB; - height: 100vh; - overflow: hidden; - - font-family: Comic Sans MS; - font-weight: bold; - letter-spacing: 0.06em; - color: #000; -} - -#c { - display: block; - touch-action: none; - transform: translateZ(0); -} - - - -.hud__score, -.pause-btn { - position: fixed; - font-size: calc(14px + 2vw + 1vh); -} - -.hud__score { - top: 0.65em; - left: 0.65em; - pointer-events: none; - user-select: none; -} - -.box-count-lbl { - font-size: 0.46em; -} - -.pause-btn { - position: fixed; - top: 0; - right: 0; - padding: 0.8em 0.65em; -} - -.pause-btn > div { - position: relative; - width: 0.8em; - height: 0.8em; - opacity: 0.75; -} - -.pause-btn > div::before, -.pause-btn > div::after { - content: ''; - display: block; - width: 34%; - height: 100%; - position: absolute; - background-color: #fff; -} - -.pause-btn > div::after { - right: 0; -} - -.slowmo { - position: fixed; - bottom: 0; - width: 100%; - pointer-events: none; - opacity: 0; - transition: opacity 0.4s; - will-change: opacity; -} - -.slowmo::before { - content: 'SLOW-MO'; - display: block; - font-size: calc(8px + 1vw + 0.5vh); - margin-left: 0.5em; - margin-bottom: 8px; -} - -.slowmo::after { - content: ''; - display: block; - position: fixed; - bottom: 0; - width: 100%; - height: 1.5vh; - background-color: rgba(0, 0, 0, 0.25); - z-index: -1; -} - -.slowmo__bar { - height: 1.5vh; - background-color: rgba(255, 255, 255, 0.75); - transform-origin: 0 0; -} - - - -.menus::before { - content: ''; - pointer-events: none; - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - background-color: #000; - opacity: 0; - transition: opacity 0.2s; - transition-timing-function: ease-in; -} - -.menus.has-active::before { - opacity: 0.08; - transition-duration: 0.4s; - transition-timing-function: ease-out; -} - -.menus.interactive-mode::before { - opacity: 0.02; -} - - - -/* Menu containers */ -.menu { - pointer-events: none; - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - user-select: none; - text-align: center; - color: rgba(255, 255, 255, 0.9); - opacity: 0; - visibility: hidden; - transform: translateY(30px); - transition-property: opacity, visibility, transform; - transition-duration: 0.2s; - transition-timing-function: ease-in; -} - -.menu.active { - opacity: 1; - visibility: visible; - transform: translateY(0); - transition-duration: 0.4s; - transition-timing-function: ease-out; -} - -.menus.interactive-mode .menu.active { - opacity: 0.6; -} - -.menus:not(.interactive-mode) .menu.active > * { - pointer-events: auto; -} - - -/* Common menu elements */ - -h1 { - font-size: 4rem; - line-height: 0.95; - text-align: center; - font-weight: bold; - margin: 0 0.65em 1em; -} - -h2 { - font-size: 1.2rem; - line-height: 1; - text-align: center; - font-weight: bold; - margin: -1em 0.65em 1em; -} - -.final-score-lbl { - font-size: 5rem; - margin: -0.2em 0 0; -} - -.high-score-lbl { - font-size: 1.2rem; - margin: 0 0 2.5em; -} - -button { - display: block; - position: relative; - width: 400px; - padding: 12px 20px; - background: transparent; - border: none; - outline: none; - user-select: none; - font-family: American Typewriter; - font-weight: bold; - font-size: 1.4rem; - color: #fff; - opacity: 0.75; - transition: opacity 0.3s; -} - -button::before { - content: ''; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background-color: rgba(255, 255, 255, 0.15); - transform: scale(0, 0); - opacity: 0; - transition: opacity 0.3s, transform 0.3s; -} - -/* No `:focus` styles because this is a mouse/touch game! */ -button:active { - opacity: 1; -} - -button:active::before { - transform: scale(1, 1); - opacity: 1; -} - -.credits { - position: fixed; - width: 100%; - left: 0; - bottom: 20px; -} - -a { - color: white; -} - -/* Only enable hover state on large screens */ -@media (min-width: 1025px) { - button:hover { - opacity: 1; - } - - button:hover::before { - transform: scale(1, 1); - opacity: 1; - } -} +body { + margin: 0; + background-color: #FFC0CB; + height: 100vh; + overflow: hidden; + + font-family: Comic Sans MS; + font-weight: bold; + letter-spacing: 0.06em; + color: #000; +} + +#c { + display: block; + touch-action: none; + transform: translateZ(0); +} + + + +.hud__score, +.pause-btn { + position: fixed; + font-size: calc(14px + 2vw + 1vh); +} + +.hud__score { + top: 0.65em; + left: 0.65em; + pointer-events: none; + user-select: none; +} + +.box-count-lbl { + font-size: 0.46em; +} + +.pause-btn { + position: fixed; + top: 0; + right: 0; + padding: 0.8em 0.65em; +} + +.pause-btn > div { + position: relative; + width: 0.8em; + height: 0.8em; + opacity: 0.75; +} + +.pause-btn > div::before, +.pause-btn > div::after { + content: ''; + display: block; + width: 34%; + height: 100%; + position: absolute; + background-color: #fff; +} + +.pause-btn > div::after { + right: 0; +} + +.slowmo { + position: fixed; + bottom: 0; + width: 100%; + pointer-events: none; + opacity: 0; + transition: opacity 0.4s; + will-change: opacity; +} + +.slowmo::before { + content: 'SLOW-MO'; + display: block; + font-size: calc(8px + 1vw + 0.5vh); + margin-left: 0.5em; + margin-bottom: 8px; +} + +.slowmo::after { + content: ''; + display: block; + position: fixed; + bottom: 0; + width: 100%; + height: 1.5vh; + background-color: rgba(0, 0, 0, 0.25); + z-index: -1; +} + +.slowmo__bar { + height: 1.5vh; + background-color: rgba(255, 255, 255, 0.75); + transform-origin: 0 0; +} + + + +.menus::before { + content: ''; + pointer-events: none; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + background-color: #000; + opacity: 0; + transition: opacity 0.2s; + transition-timing-function: ease-in; +} + +.menus.has-active::before { + opacity: 0.08; + transition-duration: 0.4s; + transition-timing-function: ease-out; +} + +.menus.interactive-mode::before { + opacity: 0.02; +} + + + +/* Menu containers */ +.menu { + pointer-events: none; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + user-select: none; + text-align: center; + color: rgba(255, 255, 255, 0.9); + opacity: 0; + visibility: hidden; + transform: translateY(30px); + transition-property: opacity, visibility, transform; + transition-duration: 0.2s; + transition-timing-function: ease-in; +} + +.menu.active { + opacity: 1; + visibility: visible; + transform: translateY(0); + transition-duration: 0.4s; + transition-timing-function: ease-out; +} + +.menus.interactive-mode .menu.active { + opacity: 0.6; +} + +.menus:not(.interactive-mode) .menu.active > * { + pointer-events: auto; +} + + +/* Common menu elements */ + +h1 { + font-size: 4rem; + line-height: 0.95; + text-align: center; + font-weight: bold; + margin: 0 0.65em 1em; +} + +h2 { + font-size: 1.2rem; + line-height: 1; + text-align: center; + font-weight: bold; + margin: -1em 0.65em 1em; +} + +.final-score-lbl { + font-size: 5rem; + margin: -0.2em 0 0; +} + +.high-score-lbl { + font-size: 1.2rem; + margin: 0 0 2.5em; +} + +button { + display: block; + position: relative; + width: 400px; + padding: 12px 20px; + background: transparent; + border: none; + outline: none; + user-select: none; + font-family: American Typewriter; + font-weight: bold; + font-size: 1.4rem; + color: #fff; + opacity: 0.75; + transition: opacity 0.3s; +} + +button::before { + content: ''; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background-color: rgba(255, 255, 255, 0.15); + transform: scale(0, 0); + opacity: 0; + transition: opacity 0.3s, transform 0.3s; +} + +/* No `:focus` styles because this is a mouse/touch game! */ +button:active { + opacity: 1; +} + +button:active::before { + transform: scale(1, 1); + opacity: 1; +} + +.credits { + position: fixed; + width: 100%; + left: 0; + bottom: 20px; +} + +a { + color: white; +} + +/* Only enable hover state on large screens */ +@media (min-width: 1025px) { + button:hover { + opacity: 1; + } + + button:hover::before { + transform: scale(1, 1); + opacity: 1; + } +} diff --git a/Games/Slide_Master_Puzzle/Readme.md b/Games/Slide_Master_Puzzle/Readme.md index 3815539f19..d3909fc05d 100644 --- a/Games/Slide_Master_Puzzle/Readme.md +++ b/Games/Slide_Master_Puzzle/Readme.md @@ -1,18 +1,18 @@ -# SlideMaster Puzzle - -## Description ๐Ÿ“ƒ -Welcome to SlideMaster Puzzle! This classic sliding puzzle game challenges you to arrange the tiles in numerical order by sliding them into the empty space. It's a simple yet addictive game that tests your problem-solving skills and patience. Can you solve the puzzle? - -## Functionalities ๐ŸŽฎ -- **Shuffle**: Randomly shuffle the tiles to start a new game. -- **Tile Movement**: Click on a tile adjacent to the empty space to move it. -- **Responsive Design**: The game adjusts to different screen sizes for optimal playability. -- **Visual Feedback**: Tiles animate when moved, providing visual feedback to the player. - -## How to play? ๐Ÿ•น๏ธ -1. **Shuffle the Tiles**: Click the "Shuffle" button to start a new game with randomly shuffled tiles. -2. **Move the Tiles**: Click on any tile adjacent to the empty space to slide it into that space. -3. **Arrange in Order**: Continue sliding the tiles until all the tiles are in numerical order from 1 to 8, with the empty space in the bottom-right corner. - -## Screenshots ๐Ÿ“ธ +# SlideMaster Puzzle + +## Description ๐Ÿ“ƒ +Welcome to SlideMaster Puzzle! This classic sliding puzzle game challenges you to arrange the tiles in numerical order by sliding them into the empty space. It's a simple yet addictive game that tests your problem-solving skills and patience. Can you solve the puzzle? + +## Functionalities ๐ŸŽฎ +- **Shuffle**: Randomly shuffle the tiles to start a new game. +- **Tile Movement**: Click on a tile adjacent to the empty space to move it. +- **Responsive Design**: The game adjusts to different screen sizes for optimal playability. +- **Visual Feedback**: Tiles animate when moved, providing visual feedback to the player. + +## How to play? ๐Ÿ•น๏ธ +1. **Shuffle the Tiles**: Click the "Shuffle" button to start a new game with randomly shuffled tiles. +2. **Move the Tiles**: Click on any tile adjacent to the empty space to slide it into that space. +3. **Arrange in Order**: Continue sliding the tiles until all the tiles are in numerical order from 1 to 8, with the empty space in the bottom-right corner. + +## Screenshots ๐Ÿ“ธ ![SlideMaster Puzzle Screenshot](Slide_Master_Puzzle.png) \ No newline at end of file diff --git a/Games/Slide_Master_Puzzle/index.html b/Games/Slide_Master_Puzzle/index.html index caf0d673fd..99d19d743a 100644 --- a/Games/Slide_Master_Puzzle/index.html +++ b/Games/Slide_Master_Puzzle/index.html @@ -1,21 +1,21 @@ - - - - - - SlideMaster Puzzle - - - -
      -

      SlideMaster Puzzle

      -

      - Welcome to SlideMaster Puzzle! Arrange the tiles in numerical order by sliding them into the empty space. Can you solve the puzzle? -

      -
      - -
      - - - + + + + + + SlideMaster Puzzle + + + +
      +

      SlideMaster Puzzle

      +

      + Welcome to SlideMaster Puzzle! Arrange the tiles in numerical order by sliding them into the empty space. Can you solve the puzzle? +

      +
      + +
      + + + \ No newline at end of file diff --git a/Games/Slide_Master_Puzzle/script.js b/Games/Slide_Master_Puzzle/script.js index 676f53c271..cf7799cf51 100644 --- a/Games/Slide_Master_Puzzle/script.js +++ b/Games/Slide_Master_Puzzle/script.js @@ -1,43 +1,43 @@ -const container = document.getElementById('puzzle-container'); -let tiles = []; - -function initTiles() { - for (let i = 1; i <= 8; i++) { - let tile = document.createElement('div'); - tile.className = 'tile'; - tile.textContent = i; - tile.onclick = () => moveTile(i); - container.appendChild(tile); - tiles.push(tile); - } - tiles.push(null); -} - -function shuffleTiles() { - for (let i = tiles.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - [tiles[i], tiles[j]] = [tiles[j], tiles[i]]; - } - renderTiles(); -} - -function moveTile(index) { - const emptyIndex = tiles.indexOf(null); - const targetIndex = tiles.indexOf(tiles.find(t => t && t.textContent == index)); - if ([1, -1, 3, -3].includes(targetIndex - emptyIndex)) { - [tiles[targetIndex], tiles[emptyIndex]] = [tiles[emptyIndex], tiles[targetIndex]]; - renderTiles(); - } -} - -function renderTiles() { - container.innerHTML = ''; - tiles.forEach(tile => { - container.appendChild(tile || document.createElement('div')); - }); -} - -document.addEventListener('DOMContentLoaded', () => { - initTiles(); - shuffleTiles(); -}); +const container = document.getElementById('puzzle-container'); +let tiles = []; + +function initTiles() { + for (let i = 1; i <= 8; i++) { + let tile = document.createElement('div'); + tile.className = 'tile'; + tile.textContent = i; + tile.onclick = () => moveTile(i); + container.appendChild(tile); + tiles.push(tile); + } + tiles.push(null); +} + +function shuffleTiles() { + for (let i = tiles.length - 1; i > 0; i--) { + const j = Math.floor(Math.random() * (i + 1)); + [tiles[i], tiles[j]] = [tiles[j], tiles[i]]; + } + renderTiles(); +} + +function moveTile(index) { + const emptyIndex = tiles.indexOf(null); + const targetIndex = tiles.indexOf(tiles.find(t => t && t.textContent == index)); + if ([1, -1, 3, -3].includes(targetIndex - emptyIndex)) { + [tiles[targetIndex], tiles[emptyIndex]] = [tiles[emptyIndex], tiles[targetIndex]]; + renderTiles(); + } +} + +function renderTiles() { + container.innerHTML = ''; + tiles.forEach(tile => { + container.appendChild(tile || document.createElement('div')); + }); +} + +document.addEventListener('DOMContentLoaded', () => { + initTiles(); + shuffleTiles(); +}); diff --git a/Games/Slide_Master_Puzzle/style.css b/Games/Slide_Master_Puzzle/style.css index b99684fcdd..4cbcefc5c3 100644 --- a/Games/Slide_Master_Puzzle/style.css +++ b/Games/Slide_Master_Puzzle/style.css @@ -1,86 +1,86 @@ -body { - display: flex; - justify-content: center; - align-items: center; - min-height: 100vh; - margin: 0; - background: linear-gradient(to right, #74ebd5, #ACB6E5); - font-family: 'Arial', sans-serif; - color: #333; -} - -.game-wrapper { - width: 90%; - max-width: 400px; - display: flex; - flex-direction: column; - align-items: center; - padding: 20px; - box-shadow: 0 4px 8px rgba(0,0,0,0.3); - background-color: rgba(255, 255, 255, 0.9); - border-radius: 10px; -} - -h1 { - font-size: 28px; - color: #2a2a72; - margin-bottom: 10px; -} - -.description { - font-size: 18px; - text-align: center; - color: #444; - margin-bottom: 20px; - line-height: 1.5; -} - -@keyframes fadeIn { - from { opacity: 0; transform: translateY(20px); } - to { opacity: 1; transform: translateY(0); } -} - -#puzzle-container { - width: 100%; - aspect-ratio: 1; - display: grid; - grid-template-columns: repeat(3, 1fr); - gap: 2px; - border: 2px solid #333; - box-shadow: 0 4px 8px rgba(0,0,0,0.2); - margin-bottom: 20px; - background-color: rgba(255, 255, 255, 0.8); -} - -.tile { - display: flex; - justify-content: center; - align-items: center; - background-color: #78C2AD; - color: white; - font-size: calc(10px + 1vmin); - user-select: none; - transition: background-color 0.3s ease, transform 0.3s ease; - cursor: pointer; -} - -.tile:hover { - background-color: #66a19d; - transform: scale(1.1); -} - -button { - padding: 10px 20px; - font-size: calc(10px + 1vmin); - cursor: pointer; - background-color: #333; - color: white; - border: none; - border-radius: 5px; - box-shadow: 0 2px 4px rgba(0,0,0,0.2); - transition: background-color 0.2s; -} - -button:hover { - background-color: #555; -} +body { + display: flex; + justify-content: center; + align-items: center; + min-height: 100vh; + margin: 0; + background: linear-gradient(to right, #74ebd5, #ACB6E5); + font-family: 'Arial', sans-serif; + color: #333; +} + +.game-wrapper { + width: 90%; + max-width: 400px; + display: flex; + flex-direction: column; + align-items: center; + padding: 20px; + box-shadow: 0 4px 8px rgba(0,0,0,0.3); + background-color: rgba(255, 255, 255, 0.9); + border-radius: 10px; +} + +h1 { + font-size: 28px; + color: #2a2a72; + margin-bottom: 10px; +} + +.description { + font-size: 18px; + text-align: center; + color: #444; + margin-bottom: 20px; + line-height: 1.5; +} + +@keyframes fadeIn { + from { opacity: 0; transform: translateY(20px); } + to { opacity: 1; transform: translateY(0); } +} + +#puzzle-container { + width: 100%; + aspect-ratio: 1; + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 2px; + border: 2px solid #333; + box-shadow: 0 4px 8px rgba(0,0,0,0.2); + margin-bottom: 20px; + background-color: rgba(255, 255, 255, 0.8); +} + +.tile { + display: flex; + justify-content: center; + align-items: center; + background-color: #78C2AD; + color: white; + font-size: calc(10px + 1vmin); + user-select: none; + transition: background-color 0.3s ease, transform 0.3s ease; + cursor: pointer; +} + +.tile:hover { + background-color: #66a19d; + transform: scale(1.1); +} + +button { + padding: 10px 20px; + font-size: calc(10px + 1vmin); + cursor: pointer; + background-color: #333; + color: white; + border: none; + border-radius: 5px; + box-shadow: 0 2px 4px rgba(0,0,0,0.2); + transition: background-color 0.2s; +} + +button:hover { + background-color: #555; +} diff --git a/Games/Slime_attack_game/README.md b/Games/Slime_attack_game/README.md index e113e807eb..6084186b75 100644 --- a/Games/Slime_attack_game/README.md +++ b/Games/Slime_attack_game/README.md @@ -1,17 +1,17 @@ -

      PR Description ๐Ÿ“œ

      -

      Hello Sir,

      -Here is my project of Slime attack animation. Here I have made it using HTML,CSS . -Here I have made it a simple game. Here we have to attack a slime in a spaceship. -It's simply a shooting game -

      Fixes #2509

      - -

      Screenshots

      - -![image](https://github.com/kunjgit/GameZone/assets/114172928/058e7b65-4412-47e0-b699-52c881625d4f) - -

      Video

      - - -https://github.com/apu52/GameZone/assets/114172928/e0a40a24-87c6-4e7e-8b8c-895187321b4b - -Please take a review & merge this PR under GSSOC'23. +

      PR Description ๐Ÿ“œ

      +

      Hello Sir,

      +Here is my project of Slime attack animation. Here I have made it using HTML,CSS . +Here I have made it a simple game. Here we have to attack a slime in a spaceship. +It's simply a shooting game +

      Fixes #2509

      + +

      Screenshots

      + +![image](https://github.com/kunjgit/GameZone/assets/114172928/058e7b65-4412-47e0-b699-52c881625d4f) + +

      Video

      + + +https://github.com/apu52/GameZone/assets/114172928/e0a40a24-87c6-4e7e-8b8c-895187321b4b + +Please take a review & merge this PR under GSSOC'23. diff --git a/Games/Slime_attack_game/index.html b/Games/Slime_attack_game/index.html index cd0d6fb491..9bf7c53d15 100644 --- a/Games/Slime_attack_game/index.html +++ b/Games/Slime_attack_game/index.html @@ -1,25 +1,25 @@ - - - - - - - - Slime attack game - - - - - - - - -
      -

      CSS Slime Attacks

      -

      Save Arpan From Slime Invasion

      -
      -
      -

      Awesome!
      You're A Click Hero!

      -
      - + + + + + + + + Slime attack game + + + + + + + + +
      +

      CSS Slime Attacks

      +

      Save Arpan From Slime Invasion

      +
      +
      +

      Awesome!
      You're A Click Hero!

      +
      + \ No newline at end of file diff --git a/Games/Slime_attack_game/style.css b/Games/Slime_attack_game/style.css index 938293b52f..83461bba1e 100644 --- a/Games/Slime_attack_game/style.css +++ b/Games/Slime_attack_game/style.css @@ -1,2565 +1,2565 @@ -@import url(https://fonts.googleapis.com/css?family=VT323); -*, *:before, *:after { - margin: 0; - padding: 0; - box-sizing: border-box; -} - -html, body { - width: 100%; - height: 100%; -} - -body { - overflow: hidden; - color: #29FF6A; - font-family: "VT323"; - cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/46992/pointer.svg), auto; - background-color: #071321; - background-image: radial-gradient(transparent, #071321), url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJFYmVuZV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB3aWR0aD0iOXB4IiBoZWlnaHQ9IjlweCIgdmlld0JveD0iMCAwIDkgOSIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgOSA5IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBvbHlnb24gZmlsbD0iIzJFM0I0MSIgcG9pbnRzPSIwLDIuMTIxIDYuODc5LDkgOSw5IDksNi44NzkgMi4xMjEsMCAwLDAgIi8+Cjxwb2x5Z29uIGZpbGw9IiMyRTNCNDEiIHBvaW50cz0iOSwwIDYuODc5LDAgOSwyLjEyMSAiLz4KPHBvbHlnb24gZmlsbD0iIzJFM0I0MSIgcG9pbnRzPSIyLjE1Miw5IDAsNi44NDggMCw5ICIvPgo8L3N2Zz4K"); - background-size: cover, 3px 3px; - transform: translateZ(0); -} - -input[class^=fly], -input[class^=fly] + label { - position: absolute; - top: -20rem; - left: -20rem; - width: 10rem; - height: 10rem; - transition: opacity 0.5s; - -webkit-animation-play-state: running; - animation-play-state: running; -} - -input[class^=fly] { - opacity: 0; -} - -input[class$="-1"], -input[class$="-1"] + label { - -webkit-animation: fly1 400s infinite linear; - animation: fly1 400s infinite linear; -} - -input[class$="1"]:checked ~ input[class$="2"], -input[class$="1"]:checked ~ input[class$="2"] + label { - width: 5rem; - height: 5rem; - -webkit-animation: fly2 133.3333333333s infinite linear; - animation: fly2 133.3333333333s infinite linear; -} - -input[class$="2"]:checked ~ input[class$="3"], -input[class$="2"]:checked ~ input[class$="3"] + label { - width: 3.3333333333rem; - height: 3.3333333333rem; - -webkit-animation: fly3 100s infinite linear; - animation: fly3 100s infinite linear; -} - -input[class^=fly]:checked, -input[class^=fly]:checked + label { - opacity: 0; - background-size: 150%, 0%; - box-shadow: 0 0 10rem #29ff6a; - pointer-events: none; - -webkit-animation-play-state: paused; - animation-play-state: paused; -} - -input[class^=fly] + label { - width: 10rem; - height: 10rem; - background-image: radial-gradient(#29FF6A, #29FF6A 50%, transparent 60%), url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/46992/Slime.svg); - background-size: 0%, 80%; - background-position: 50%; - background-repeat: no-repeat; - border-radius: 50%; - opacity: 1; - cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/46992/pointer.svg), auto; - box-shadow: 0 0 10rem rgba(41, 255, 106, 0); - transition: background-size 0.15s, box-shadow 0.2s, opacity 0.1s 0.1s; -} - -@-webkit-keyframes fly1 { - 0% { - top: 43%; - left: 59%; - } - 1% { - top: 33%; - left: 68%; - } - 2% { - top: 9%; - left: 63%; - } - 3% { - top: 42%; - left: 28%; - } - 4% { - top: 65%; - left: 24%; - } - 5% { - top: 33%; - left: 33%; - } - 6% { - top: 42%; - left: 22%; - } - 7% { - top: 35%; - left: 30%; - } - 8% { - top: 49%; - left: 55%; - } - 9% { - top: 64%; - left: 90%; - } - 10% { - top: 8%; - left: 40%; - } - 11% { - top: 14%; - left: 15%; - } - 12% { - top: 22%; - left: 23%; - } - 13% { - top: 100%; - left: 34%; - } - 14% { - top: 53%; - left: 69%; - } - 15% { - top: 23%; - left: 71%; - } - 16% { - top: 68%; - left: 77%; - } - 17% { - top: 35%; - left: 82%; - } - 18% { - top: 62%; - left: 24%; - } - 19% { - top: 49%; - left: 40%; - } - 20% { - top: 47%; - left: 71%; - } - 21% { - top: 72%; - left: 33%; - } - 22% { - top: 87%; - left: 11%; - } - 23% { - top: 2%; - left: 64%; - } - 24% { - top: 21%; - left: 65%; - } - 25% { - top: 84%; - left: 73%; - } - 26% { - top: 15%; - left: 89%; - } - 27% { - top: 28%; - left: 74%; - } - 28% { - top: 50%; - left: 14%; - } - 29% { - top: 6%; - left: 16%; - } - 30% { - top: 79%; - left: 97%; - } - 31% { - top: 15%; - left: 75%; - } - 32% { - top: 77%; - left: 26%; - } - 33% { - top: 77%; - left: 68%; - } - 34% { - top: 40%; - left: 63%; - } - 35% { - top: 59%; - left: 4%; - } - 36% { - top: 61%; - left: 98%; - } - 37% { - top: 41%; - left: 73%; - } - 38% { - top: 72%; - left: 64%; - } - 39% { - top: 87%; - left: 74%; - } - 40% { - top: 11%; - left: 75%; - } - 41% { - top: 44%; - left: 80%; - } - 42% { - top: 61%; - left: 14%; - } - 43% { - top: 30%; - left: 65%; - } - 44% { - top: 57%; - left: 36%; - } - 45% { - top: 64%; - left: 2%; - } - 46% { - top: 68%; - left: 81%; - } - 47% { - top: 32%; - left: 65%; - } - 48% { - top: 63%; - left: 86%; - } - 49% { - top: 4%; - left: 39%; - } - 50% { - top: 26%; - left: 22%; - } - 51% { - top: 76%; - left: 72%; - } - 52% { - top: 48%; - left: 60%; - } - 53% { - top: 52%; - left: 40%; - } - 54% { - top: 36%; - left: 36%; - } - 55% { - top: 11%; - left: 1%; - } - 56% { - top: 47%; - left: 82%; - } - 57% { - top: 2%; - left: 80%; - } - 58% { - top: 45%; - left: 50%; - } - 59% { - top: 85%; - left: 4%; - } - 60% { - top: 60%; - left: 76%; - } - 61% { - top: 49%; - left: 22%; - } - 62% { - top: 58%; - left: 4%; - } - 63% { - top: 52%; - left: 83%; - } - 64% { - top: 9%; - left: 76%; - } - 65% { - top: 29%; - left: 77%; - } - 66% { - top: 23%; - left: 29%; - } - 67% { - top: 41%; - left: 58%; - } - 68% { - top: 91%; - left: 6%; - } - 69% { - top: 66%; - left: 23%; - } - 70% { - top: 35%; - left: 51%; - } - 71% { - top: 43%; - left: 38%; - } - 72% { - top: 98%; - left: 93%; - } - 73% { - top: 73%; - left: 51%; - } - 74% { - top: 1%; - left: 34%; - } - 75% { - top: 94%; - left: 81%; - } - 76% { - top: 56%; - left: 8%; - } - 77% { - top: 32%; - left: 20%; - } - 78% { - top: 62%; - left: 31%; - } - 79% { - top: 5%; - left: 59%; - } - 80% { - top: 10%; - left: 96%; - } - 81% { - top: 92%; - left: 7%; - } - 82% { - top: 12%; - left: 16%; - } - 83% { - top: 74%; - left: 66%; - } - 84% { - top: 23%; - left: 87%; - } - 85% { - top: 82%; - left: 10%; - } - 86% { - top: 29%; - left: 65%; - } - 87% { - top: 15%; - left: 7%; - } - 88% { - top: 63%; - left: 29%; - } - 89% { - top: 62%; - left: 57%; - } - 90% { - top: 47%; - left: 97%; - } - 91% { - top: 61%; - left: 34%; - } - 92% { - top: 61%; - left: 70%; - } - 93% { - top: 82%; - left: 44%; - } - 94% { - top: 20%; - left: 27%; - } - 95% { - top: 18%; - left: 67%; - } - 96% { - top: 11%; - left: 97%; - } - 97% { - top: 33%; - left: 41%; - } - 98% { - top: 43%; - left: 75%; - } - 99% { - top: 37%; - left: 41%; - } -} - -@keyframes fly1 { - 0% { - top: 43%; - left: 59%; - } - 1% { - top: 33%; - left: 68%; - } - 2% { - top: 9%; - left: 63%; - } - 3% { - top: 42%; - left: 28%; - } - 4% { - top: 65%; - left: 24%; - } - 5% { - top: 33%; - left: 33%; - } - 6% { - top: 42%; - left: 22%; - } - 7% { - top: 35%; - left: 30%; - } - 8% { - top: 49%; - left: 55%; - } - 9% { - top: 64%; - left: 90%; - } - 10% { - top: 8%; - left: 40%; - } - 11% { - top: 14%; - left: 15%; - } - 12% { - top: 22%; - left: 23%; - } - 13% { - top: 100%; - left: 34%; - } - 14% { - top: 53%; - left: 69%; - } - 15% { - top: 23%; - left: 71%; - } - 16% { - top: 68%; - left: 77%; - } - 17% { - top: 35%; - left: 82%; - } - 18% { - top: 62%; - left: 24%; - } - 19% { - top: 49%; - left: 40%; - } - 20% { - top: 47%; - left: 71%; - } - 21% { - top: 72%; - left: 33%; - } - 22% { - top: 87%; - left: 11%; - } - 23% { - top: 2%; - left: 64%; - } - 24% { - top: 21%; - left: 65%; - } - 25% { - top: 84%; - left: 73%; - } - 26% { - top: 15%; - left: 89%; - } - 27% { - top: 28%; - left: 74%; - } - 28% { - top: 50%; - left: 14%; - } - 29% { - top: 6%; - left: 16%; - } - 30% { - top: 79%; - left: 97%; - } - 31% { - top: 15%; - left: 75%; - } - 32% { - top: 77%; - left: 26%; - } - 33% { - top: 77%; - left: 68%; - } - 34% { - top: 40%; - left: 63%; - } - 35% { - top: 59%; - left: 4%; - } - 36% { - top: 61%; - left: 98%; - } - 37% { - top: 41%; - left: 73%; - } - 38% { - top: 72%; - left: 64%; - } - 39% { - top: 87%; - left: 74%; - } - 40% { - top: 11%; - left: 75%; - } - 41% { - top: 44%; - left: 80%; - } - 42% { - top: 61%; - left: 14%; - } - 43% { - top: 30%; - left: 65%; - } - 44% { - top: 57%; - left: 36%; - } - 45% { - top: 64%; - left: 2%; - } - 46% { - top: 68%; - left: 81%; - } - 47% { - top: 32%; - left: 65%; - } - 48% { - top: 63%; - left: 86%; - } - 49% { - top: 4%; - left: 39%; - } - 50% { - top: 26%; - left: 22%; - } - 51% { - top: 76%; - left: 72%; - } - 52% { - top: 48%; - left: 60%; - } - 53% { - top: 52%; - left: 40%; - } - 54% { - top: 36%; - left: 36%; - } - 55% { - top: 11%; - left: 1%; - } - 56% { - top: 47%; - left: 82%; - } - 57% { - top: 2%; - left: 80%; - } - 58% { - top: 45%; - left: 50%; - } - 59% { - top: 85%; - left: 4%; - } - 60% { - top: 60%; - left: 76%; - } - 61% { - top: 49%; - left: 22%; - } - 62% { - top: 58%; - left: 4%; - } - 63% { - top: 52%; - left: 83%; - } - 64% { - top: 9%; - left: 76%; - } - 65% { - top: 29%; - left: 77%; - } - 66% { - top: 23%; - left: 29%; - } - 67% { - top: 41%; - left: 58%; - } - 68% { - top: 91%; - left: 6%; - } - 69% { - top: 66%; - left: 23%; - } - 70% { - top: 35%; - left: 51%; - } - 71% { - top: 43%; - left: 38%; - } - 72% { - top: 98%; - left: 93%; - } - 73% { - top: 73%; - left: 51%; - } - 74% { - top: 1%; - left: 34%; - } - 75% { - top: 94%; - left: 81%; - } - 76% { - top: 56%; - left: 8%; - } - 77% { - top: 32%; - left: 20%; - } - 78% { - top: 62%; - left: 31%; - } - 79% { - top: 5%; - left: 59%; - } - 80% { - top: 10%; - left: 96%; - } - 81% { - top: 92%; - left: 7%; - } - 82% { - top: 12%; - left: 16%; - } - 83% { - top: 74%; - left: 66%; - } - 84% { - top: 23%; - left: 87%; - } - 85% { - top: 82%; - left: 10%; - } - 86% { - top: 29%; - left: 65%; - } - 87% { - top: 15%; - left: 7%; - } - 88% { - top: 63%; - left: 29%; - } - 89% { - top: 62%; - left: 57%; - } - 90% { - top: 47%; - left: 97%; - } - 91% { - top: 61%; - left: 34%; - } - 92% { - top: 61%; - left: 70%; - } - 93% { - top: 82%; - left: 44%; - } - 94% { - top: 20%; - left: 27%; - } - 95% { - top: 18%; - left: 67%; - } - 96% { - top: 11%; - left: 97%; - } - 97% { - top: 33%; - left: 41%; - } - 98% { - top: 43%; - left: 75%; - } - 99% { - top: 37%; - left: 41%; - } -} -@-webkit-keyframes fly2 { - 0% { - top: 89%; - left: 82%; - } - 1% { - top: 99%; - left: 55%; - } - 2% { - top: 30%; - left: 33%; - } - 3% { - top: 60%; - left: 11%; - } - 4% { - top: 85%; - left: 98%; - } - 5% { - top: 56%; - left: 77%; - } - 6% { - top: 70%; - left: 59%; - } - 7% { - top: 56%; - left: 17%; - } - 8% { - top: 51%; - left: 46%; - } - 9% { - top: 38%; - left: 18%; - } - 10% { - top: 27%; - left: 12%; - } - 11% { - top: 28%; - left: 55%; - } - 12% { - top: 63%; - left: 18%; - } - 13% { - top: 24%; - left: 53%; - } - 14% { - top: 50%; - left: 97%; - } - 15% { - top: 57%; - left: 33%; - } - 16% { - top: 19%; - left: 100%; - } - 17% { - top: 63%; - left: 14%; - } - 18% { - top: 1%; - left: 64%; - } - 19% { - top: 81%; - left: 12%; - } - 20% { - top: 34%; - left: 90%; - } - 21% { - top: 45%; - left: 98%; - } - 22% { - top: 80%; - left: 52%; - } - 23% { - top: 56%; - left: 73%; - } - 24% { - top: 25%; - left: 10%; - } - 25% { - top: 89%; - left: 39%; - } - 26% { - top: 55%; - left: 23%; - } - 27% { - top: 83%; - left: 71%; - } - 28% { - top: 82%; - left: 50%; - } - 29% { - top: 37%; - left: 70%; - } - 30% { - top: 59%; - left: 84%; - } - 31% { - top: 27%; - left: 11%; - } - 32% { - top: 26%; - left: 19%; - } - 33% { - top: 41%; - left: 95%; - } - 34% { - top: 10%; - left: 17%; - } - 35% { - top: 80%; - left: 80%; - } - 36% { - top: 19%; - left: 59%; - } - 37% { - top: 57%; - left: 64%; - } - 38% { - top: 83%; - left: 43%; - } - 39% { - top: 87%; - left: 7%; - } - 40% { - top: 14%; - left: 32%; - } - 41% { - top: 41%; - left: 88%; - } - 42% { - top: 89%; - left: 2%; - } - 43% { - top: 37%; - left: 79%; - } - 44% { - top: 38%; - left: 25%; - } - 45% { - top: 44%; - left: 22%; - } - 46% { - top: 36%; - left: 29%; - } - 47% { - top: 31%; - left: 66%; - } - 48% { - top: 22%; - left: 43%; - } - 49% { - top: 34%; - left: 68%; - } - 50% { - top: 17%; - left: 62%; - } - 51% { - top: 94%; - left: 53%; - } - 52% { - top: 72%; - left: 82%; - } - 53% { - top: 49%; - left: 14%; - } - 54% { - top: 38%; - left: 28%; - } - 55% { - top: 40%; - left: 97%; - } - 56% { - top: 30%; - left: 100%; - } - 57% { - top: 1%; - left: 50%; - } - 58% { - top: 96%; - left: 8%; - } - 59% { - top: 69%; - left: 39%; - } - 60% { - top: 67%; - left: 57%; - } - 61% { - top: 89%; - left: 57%; - } - 62% { - top: 52%; - left: 13%; - } - 63% { - top: 88%; - left: 47%; - } - 64% { - top: 95%; - left: 36%; - } - 65% { - top: 72%; - left: 75%; - } - 66% { - top: 67%; - left: 55%; - } - 67% { - top: 12%; - left: 54%; - } - 68% { - top: 92%; - left: 59%; - } - 69% { - top: 22%; - left: 33%; - } - 70% { - top: 3%; - left: 11%; - } - 71% { - top: 84%; - left: 23%; - } - 72% { - top: 15%; - left: 80%; - } - 73% { - top: 82%; - left: 66%; - } - 74% { - top: 27%; - left: 45%; - } - 75% { - top: 77%; - left: 71%; - } - 76% { - top: 91%; - left: 8%; - } - 77% { - top: 50%; - left: 48%; - } - 78% { - top: 45%; - left: 81%; - } - 79% { - top: 29%; - left: 99%; - } - 80% { - top: 87%; - left: 27%; - } - 81% { - top: 85%; - left: 54%; - } - 82% { - top: 14%; - left: 19%; - } - 83% { - top: 67%; - left: 93%; - } - 84% { - top: 75%; - left: 24%; - } - 85% { - top: 66%; - left: 77%; - } - 86% { - top: 75%; - left: 64%; - } - 87% { - top: 28%; - left: 1%; - } - 88% { - top: 32%; - left: 37%; - } - 89% { - top: 8%; - left: 87%; - } - 90% { - top: 51%; - left: 60%; - } - 91% { - top: 46%; - left: 95%; - } - 92% { - top: 45%; - left: 83%; - } - 93% { - top: 6%; - left: 58%; - } - 94% { - top: 4%; - left: 53%; - } - 95% { - top: 53%; - left: 6%; - } - 96% { - top: 54%; - left: 58%; - } - 97% { - top: 64%; - left: 3%; - } - 98% { - top: 11%; - left: 71%; - } - 99% { - top: 40%; - left: 48%; - } -} -@keyframes fly2 { - 0% { - top: 89%; - left: 82%; - } - 1% { - top: 99%; - left: 55%; - } - 2% { - top: 30%; - left: 33%; - } - 3% { - top: 60%; - left: 11%; - } - 4% { - top: 85%; - left: 98%; - } - 5% { - top: 56%; - left: 77%; - } - 6% { - top: 70%; - left: 59%; - } - 7% { - top: 56%; - left: 17%; - } - 8% { - top: 51%; - left: 46%; - } - 9% { - top: 38%; - left: 18%; - } - 10% { - top: 27%; - left: 12%; - } - 11% { - top: 28%; - left: 55%; - } - 12% { - top: 63%; - left: 18%; - } - 13% { - top: 24%; - left: 53%; - } - 14% { - top: 50%; - left: 97%; - } - 15% { - top: 57%; - left: 33%; - } - 16% { - top: 19%; - left: 100%; - } - 17% { - top: 63%; - left: 14%; - } - 18% { - top: 1%; - left: 64%; - } - 19% { - top: 81%; - left: 12%; - } - 20% { - top: 34%; - left: 90%; - } - 21% { - top: 45%; - left: 98%; - } - 22% { - top: 80%; - left: 52%; - } - 23% { - top: 56%; - left: 73%; - } - 24% { - top: 25%; - left: 10%; - } - 25% { - top: 89%; - left: 39%; - } - 26% { - top: 55%; - left: 23%; - } - 27% { - top: 83%; - left: 71%; - } - 28% { - top: 82%; - left: 50%; - } - 29% { - top: 37%; - left: 70%; - } - 30% { - top: 59%; - left: 84%; - } - 31% { - top: 27%; - left: 11%; - } - 32% { - top: 26%; - left: 19%; - } - 33% { - top: 41%; - left: 95%; - } - 34% { - top: 10%; - left: 17%; - } - 35% { - top: 80%; - left: 80%; - } - 36% { - top: 19%; - left: 59%; - } - 37% { - top: 57%; - left: 64%; - } - 38% { - top: 83%; - left: 43%; - } - 39% { - top: 87%; - left: 7%; - } - 40% { - top: 14%; - left: 32%; - } - 41% { - top: 41%; - left: 88%; - } - 42% { - top: 89%; - left: 2%; - } - 43% { - top: 37%; - left: 79%; - } - 44% { - top: 38%; - left: 25%; - } - 45% { - top: 44%; - left: 22%; - } - 46% { - top: 36%; - left: 29%; - } - 47% { - top: 31%; - left: 66%; - } - 48% { - top: 22%; - left: 43%; - } - 49% { - top: 34%; - left: 68%; - } - 50% { - top: 17%; - left: 62%; - } - 51% { - top: 94%; - left: 53%; - } - 52% { - top: 72%; - left: 82%; - } - 53% { - top: 49%; - left: 14%; - } - 54% { - top: 38%; - left: 28%; - } - 55% { - top: 40%; - left: 97%; - } - 56% { - top: 30%; - left: 100%; - } - 57% { - top: 1%; - left: 50%; - } - 58% { - top: 96%; - left: 8%; - } - 59% { - top: 69%; - left: 39%; - } - 60% { - top: 67%; - left: 57%; - } - 61% { - top: 89%; - left: 57%; - } - 62% { - top: 52%; - left: 13%; - } - 63% { - top: 88%; - left: 47%; - } - 64% { - top: 95%; - left: 36%; - } - 65% { - top: 72%; - left: 75%; - } - 66% { - top: 67%; - left: 55%; - } - 67% { - top: 12%; - left: 54%; - } - 68% { - top: 92%; - left: 59%; - } - 69% { - top: 22%; - left: 33%; - } - 70% { - top: 3%; - left: 11%; - } - 71% { - top: 84%; - left: 23%; - } - 72% { - top: 15%; - left: 80%; - } - 73% { - top: 82%; - left: 66%; - } - 74% { - top: 27%; - left: 45%; - } - 75% { - top: 77%; - left: 71%; - } - 76% { - top: 91%; - left: 8%; - } - 77% { - top: 50%; - left: 48%; - } - 78% { - top: 45%; - left: 81%; - } - 79% { - top: 29%; - left: 99%; - } - 80% { - top: 87%; - left: 27%; - } - 81% { - top: 85%; - left: 54%; - } - 82% { - top: 14%; - left: 19%; - } - 83% { - top: 67%; - left: 93%; - } - 84% { - top: 75%; - left: 24%; - } - 85% { - top: 66%; - left: 77%; - } - 86% { - top: 75%; - left: 64%; - } - 87% { - top: 28%; - left: 1%; - } - 88% { - top: 32%; - left: 37%; - } - 89% { - top: 8%; - left: 87%; - } - 90% { - top: 51%; - left: 60%; - } - 91% { - top: 46%; - left: 95%; - } - 92% { - top: 45%; - left: 83%; - } - 93% { - top: 6%; - left: 58%; - } - 94% { - top: 4%; - left: 53%; - } - 95% { - top: 53%; - left: 6%; - } - 96% { - top: 54%; - left: 58%; - } - 97% { - top: 64%; - left: 3%; - } - 98% { - top: 11%; - left: 71%; - } - 99% { - top: 40%; - left: 48%; - } -} -@-webkit-keyframes fly3 { - 0% { - top: 64%; - left: 27%; - } - 1% { - top: 77%; - left: 12%; - } - 2% { - top: 75%; - left: 95%; - } - 3% { - top: 19%; - left: 22%; - } - 4% { - top: 95%; - left: 92%; - } - 5% { - top: 42%; - left: 75%; - } - 6% { - top: 51%; - left: 61%; - } - 7% { - top: 41%; - left: 88%; - } - 8% { - top: 19%; - left: 89%; - } - 9% { - top: 48%; - left: 61%; - } - 10% { - top: 24%; - left: 36%; - } - 11% { - top: 43%; - left: 5%; - } - 12% { - top: 62%; - left: 41%; - } - 13% { - top: 90%; - left: 93%; - } - 14% { - top: 64%; - left: 5%; - } - 15% { - top: 57%; - left: 46%; - } - 16% { - top: 60%; - left: 100%; - } - 17% { - top: 28%; - left: 2%; - } - 18% { - top: 66%; - left: 99%; - } - 19% { - top: 21%; - left: 67%; - } - 20% { - top: 57%; - left: 91%; - } - 21% { - top: 9%; - left: 86%; - } - 22% { - top: 12%; - left: 47%; - } - 23% { - top: 67%; - left: 86%; - } - 24% { - top: 17%; - left: 16%; - } - 25% { - top: 88%; - left: 33%; - } - 26% { - top: 61%; - left: 43%; - } - 27% { - top: 76%; - left: 95%; - } - 28% { - top: 4%; - left: 88%; - } - 29% { - top: 3%; - left: 82%; - } - 30% { - top: 65%; - left: 23%; - } - 31% { - top: 64%; - left: 2%; - } - 32% { - top: 65%; - left: 57%; - } - 33% { - top: 54%; - left: 26%; - } - 34% { - top: 73%; - left: 36%; - } - 35% { - top: 45%; - left: 83%; - } - 36% { - top: 15%; - left: 34%; - } - 37% { - top: 31%; - left: 54%; - } - 38% { - top: 96%; - left: 72%; - } - 39% { - top: 94%; - left: 57%; - } - 40% { - top: 83%; - left: 82%; - } - 41% { - top: 61%; - left: 44%; - } - 42% { - top: 13%; - left: 98%; - } - 43% { - top: 36%; - left: 16%; - } - 44% { - top: 21%; - left: 97%; - } - 45% { - top: 7%; - left: 1%; - } - 46% { - top: 63%; - left: 58%; - } - 47% { - top: 7%; - left: 75%; - } - 48% { - top: 71%; - left: 43%; - } - 49% { - top: 35%; - left: 31%; - } - 50% { - top: 49%; - left: 51%; - } - 51% { - top: 8%; - left: 41%; - } - 52% { - top: 22%; - left: 29%; - } - 53% { - top: 12%; - left: 76%; - } - 54% { - top: 91%; - left: 34%; - } - 55% { - top: 39%; - left: 28%; - } - 56% { - top: 2%; - left: 81%; - } - 57% { - top: 22%; - left: 96%; - } - 58% { - top: 44%; - left: 11%; - } - 59% { - top: 95%; - left: 86%; - } - 60% { - top: 62%; - left: 89%; - } - 61% { - top: 85%; - left: 22%; - } - 62% { - top: 31%; - left: 44%; - } - 63% { - top: 1%; - left: 51%; - } - 64% { - top: 25%; - left: 5%; - } - 65% { - top: 27%; - left: 70%; - } - 66% { - top: 69%; - left: 8%; - } - 67% { - top: 8%; - left: 15%; - } - 68% { - top: 47%; - left: 75%; - } - 69% { - top: 26%; - left: 63%; - } - 70% { - top: 33%; - left: 97%; - } - 71% { - top: 5%; - left: 40%; - } - 72% { - top: 23%; - left: 13%; - } - 73% { - top: 99%; - left: 91%; - } - 74% { - top: 20%; - left: 43%; - } - 75% { - top: 41%; - left: 32%; - } - 76% { - top: 31%; - left: 48%; - } - 77% { - top: 63%; - left: 97%; - } - 78% { - top: 92%; - left: 83%; - } - 79% { - top: 63%; - left: 75%; - } - 80% { - top: 20%; - left: 51%; - } - 81% { - top: 34%; - left: 24%; - } - 82% { - top: 59%; - left: 83%; - } - 83% { - top: 49%; - left: 29%; - } - 84% { - top: 71%; - left: 1%; - } - 85% { - top: 46%; - left: 49%; - } - 86% { - top: 87%; - left: 86%; - } - 87% { - top: 23%; - left: 16%; - } - 88% { - top: 39%; - left: 81%; - } - 89% { - top: 20%; - left: 60%; - } - 90% { - top: 60%; - left: 64%; - } - 91% { - top: 12%; - left: 19%; - } - 92% { - top: 48%; - left: 32%; - } - 93% { - top: 9%; - left: 56%; - } - 94% { - top: 78%; - left: 23%; - } - 95% { - top: 56%; - left: 90%; - } - 96% { - top: 33%; - left: 37%; - } - 97% { - top: 50%; - left: 55%; - } - 98% { - top: 45%; - left: 20%; - } - 99% { - top: 94%; - left: 97%; - } -} -@keyframes fly3 { - 0% { - top: 64%; - left: 27%; - } - 1% { - top: 77%; - left: 12%; - } - 2% { - top: 75%; - left: 95%; - } - 3% { - top: 19%; - left: 22%; - } - 4% { - top: 95%; - left: 92%; - } - 5% { - top: 42%; - left: 75%; - } - 6% { - top: 51%; - left: 61%; - } - 7% { - top: 41%; - left: 88%; - } - 8% { - top: 19%; - left: 89%; - } - 9% { - top: 48%; - left: 61%; - } - 10% { - top: 24%; - left: 36%; - } - 11% { - top: 43%; - left: 5%; - } - 12% { - top: 62%; - left: 41%; - } - 13% { - top: 90%; - left: 93%; - } - 14% { - top: 64%; - left: 5%; - } - 15% { - top: 57%; - left: 46%; - } - 16% { - top: 60%; - left: 100%; - } - 17% { - top: 28%; - left: 2%; - } - 18% { - top: 66%; - left: 99%; - } - 19% { - top: 21%; - left: 67%; - } - 20% { - top: 57%; - left: 91%; - } - 21% { - top: 9%; - left: 86%; - } - 22% { - top: 12%; - left: 47%; - } - 23% { - top: 67%; - left: 86%; - } - 24% { - top: 17%; - left: 16%; - } - 25% { - top: 88%; - left: 33%; - } - 26% { - top: 61%; - left: 43%; - } - 27% { - top: 76%; - left: 95%; - } - 28% { - top: 4%; - left: 88%; - } - 29% { - top: 3%; - left: 82%; - } - 30% { - top: 65%; - left: 23%; - } - 31% { - top: 64%; - left: 2%; - } - 32% { - top: 65%; - left: 57%; - } - 33% { - top: 54%; - left: 26%; - } - 34% { - top: 73%; - left: 36%; - } - 35% { - top: 45%; - left: 83%; - } - 36% { - top: 15%; - left: 34%; - } - 37% { - top: 31%; - left: 54%; - } - 38% { - top: 96%; - left: 72%; - } - 39% { - top: 94%; - left: 57%; - } - 40% { - top: 83%; - left: 82%; - } - 41% { - top: 61%; - left: 44%; - } - 42% { - top: 13%; - left: 98%; - } - 43% { - top: 36%; - left: 16%; - } - 44% { - top: 21%; - left: 97%; - } - 45% { - top: 7%; - left: 1%; - } - 46% { - top: 63%; - left: 58%; - } - 47% { - top: 7%; - left: 75%; - } - 48% { - top: 71%; - left: 43%; - } - 49% { - top: 35%; - left: 31%; - } - 50% { - top: 49%; - left: 51%; - } - 51% { - top: 8%; - left: 41%; - } - 52% { - top: 22%; - left: 29%; - } - 53% { - top: 12%; - left: 76%; - } - 54% { - top: 91%; - left: 34%; - } - 55% { - top: 39%; - left: 28%; - } - 56% { - top: 2%; - left: 81%; - } - 57% { - top: 22%; - left: 96%; - } - 58% { - top: 44%; - left: 11%; - } - 59% { - top: 95%; - left: 86%; - } - 60% { - top: 62%; - left: 89%; - } - 61% { - top: 85%; - left: 22%; - } - 62% { - top: 31%; - left: 44%; - } - 63% { - top: 1%; - left: 51%; - } - 64% { - top: 25%; - left: 5%; - } - 65% { - top: 27%; - left: 70%; - } - 66% { - top: 69%; - left: 8%; - } - 67% { - top: 8%; - left: 15%; - } - 68% { - top: 47%; - left: 75%; - } - 69% { - top: 26%; - left: 63%; - } - 70% { - top: 33%; - left: 97%; - } - 71% { - top: 5%; - left: 40%; - } - 72% { - top: 23%; - left: 13%; - } - 73% { - top: 99%; - left: 91%; - } - 74% { - top: 20%; - left: 43%; - } - 75% { - top: 41%; - left: 32%; - } - 76% { - top: 31%; - left: 48%; - } - 77% { - top: 63%; - left: 97%; - } - 78% { - top: 92%; - left: 83%; - } - 79% { - top: 63%; - left: 75%; - } - 80% { - top: 20%; - left: 51%; - } - 81% { - top: 34%; - left: 24%; - } - 82% { - top: 59%; - left: 83%; - } - 83% { - top: 49%; - left: 29%; - } - 84% { - top: 71%; - left: 1%; - } - 85% { - top: 46%; - left: 49%; - } - 86% { - top: 87%; - left: 86%; - } - 87% { - top: 23%; - left: 16%; - } - 88% { - top: 39%; - left: 81%; - } - 89% { - top: 20%; - left: 60%; - } - 90% { - top: 60%; - left: 64%; - } - 91% { - top: 12%; - left: 19%; - } - 92% { - top: 48%; - left: 32%; - } - 93% { - top: 9%; - left: 56%; - } - 94% { - top: 78%; - left: 23%; - } - 95% { - top: 56%; - left: 90%; - } - 96% { - top: 33%; - left: 37%; - } - 97% { - top: 50%; - left: 55%; - } - 98% { - top: 45%; - left: 20%; - } - 99% { - top: 94%; - left: 97%; - } -} -.description, -.congrats { - position: absolute; - top: 50%; - left: 50%; - width: 100%; - z-index: 9; - padding: 0 2rem; - text-align: center; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - transform: translateX(-50%) translateY(-50%); -} - -h1 { - font-weight: normal; - font-size: 3rem; - text-shadow: 0 0 3rem rgba(41, 255, 106, 0.6); -} - -p { - font-size: 1.5rem; -} - -.congrats { - opacity: 0; -} - -.description { - -webkit-animation: fade-out 1s 3s forwards; - animation: fade-out 1s 3s forwards; -} - -input[class=fly-3]:checked ~ .congrats { - -webkit-animation: fade-in 1s 0.5s forwards; - animation: fade-in 1s 0.5s forwards; -} - -@-webkit-keyframes fade-out { - 60% { - top: 55%; - } - 100% { - top: -10%; - } -} - -@keyframes fade-out { - 60% { - top: 55%; - } - 100% { - top: -10%; - } -} -@-webkit-keyframes fade-in { - 100% { - opacity: 1; - } -} -@keyframes fade-in { - 100% { - opacity: 1; - } +@import url(https://fonts.googleapis.com/css?family=VT323); +*, *:before, *:after { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +html, body { + width: 100%; + height: 100%; +} + +body { + overflow: hidden; + color: #29FF6A; + font-family: "VT323"; + cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/46992/pointer.svg), auto; + background-color: #071321; + background-image: radial-gradient(transparent, #071321), url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJFYmVuZV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB3aWR0aD0iOXB4IiBoZWlnaHQ9IjlweCIgdmlld0JveD0iMCAwIDkgOSIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgOSA5IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBvbHlnb24gZmlsbD0iIzJFM0I0MSIgcG9pbnRzPSIwLDIuMTIxIDYuODc5LDkgOSw5IDksNi44NzkgMi4xMjEsMCAwLDAgIi8+Cjxwb2x5Z29uIGZpbGw9IiMyRTNCNDEiIHBvaW50cz0iOSwwIDYuODc5LDAgOSwyLjEyMSAiLz4KPHBvbHlnb24gZmlsbD0iIzJFM0I0MSIgcG9pbnRzPSIyLjE1Miw5IDAsNi44NDggMCw5ICIvPgo8L3N2Zz4K"); + background-size: cover, 3px 3px; + transform: translateZ(0); +} + +input[class^=fly], +input[class^=fly] + label { + position: absolute; + top: -20rem; + left: -20rem; + width: 10rem; + height: 10rem; + transition: opacity 0.5s; + -webkit-animation-play-state: running; + animation-play-state: running; +} + +input[class^=fly] { + opacity: 0; +} + +input[class$="-1"], +input[class$="-1"] + label { + -webkit-animation: fly1 400s infinite linear; + animation: fly1 400s infinite linear; +} + +input[class$="1"]:checked ~ input[class$="2"], +input[class$="1"]:checked ~ input[class$="2"] + label { + width: 5rem; + height: 5rem; + -webkit-animation: fly2 133.3333333333s infinite linear; + animation: fly2 133.3333333333s infinite linear; +} + +input[class$="2"]:checked ~ input[class$="3"], +input[class$="2"]:checked ~ input[class$="3"] + label { + width: 3.3333333333rem; + height: 3.3333333333rem; + -webkit-animation: fly3 100s infinite linear; + animation: fly3 100s infinite linear; +} + +input[class^=fly]:checked, +input[class^=fly]:checked + label { + opacity: 0; + background-size: 150%, 0%; + box-shadow: 0 0 10rem #29ff6a; + pointer-events: none; + -webkit-animation-play-state: paused; + animation-play-state: paused; +} + +input[class^=fly] + label { + width: 10rem; + height: 10rem; + background-image: radial-gradient(#29FF6A, #29FF6A 50%, transparent 60%), url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/46992/Slime.svg); + background-size: 0%, 80%; + background-position: 50%; + background-repeat: no-repeat; + border-radius: 50%; + opacity: 1; + cursor: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/46992/pointer.svg), auto; + box-shadow: 0 0 10rem rgba(41, 255, 106, 0); + transition: background-size 0.15s, box-shadow 0.2s, opacity 0.1s 0.1s; +} + +@-webkit-keyframes fly1 { + 0% { + top: 43%; + left: 59%; + } + 1% { + top: 33%; + left: 68%; + } + 2% { + top: 9%; + left: 63%; + } + 3% { + top: 42%; + left: 28%; + } + 4% { + top: 65%; + left: 24%; + } + 5% { + top: 33%; + left: 33%; + } + 6% { + top: 42%; + left: 22%; + } + 7% { + top: 35%; + left: 30%; + } + 8% { + top: 49%; + left: 55%; + } + 9% { + top: 64%; + left: 90%; + } + 10% { + top: 8%; + left: 40%; + } + 11% { + top: 14%; + left: 15%; + } + 12% { + top: 22%; + left: 23%; + } + 13% { + top: 100%; + left: 34%; + } + 14% { + top: 53%; + left: 69%; + } + 15% { + top: 23%; + left: 71%; + } + 16% { + top: 68%; + left: 77%; + } + 17% { + top: 35%; + left: 82%; + } + 18% { + top: 62%; + left: 24%; + } + 19% { + top: 49%; + left: 40%; + } + 20% { + top: 47%; + left: 71%; + } + 21% { + top: 72%; + left: 33%; + } + 22% { + top: 87%; + left: 11%; + } + 23% { + top: 2%; + left: 64%; + } + 24% { + top: 21%; + left: 65%; + } + 25% { + top: 84%; + left: 73%; + } + 26% { + top: 15%; + left: 89%; + } + 27% { + top: 28%; + left: 74%; + } + 28% { + top: 50%; + left: 14%; + } + 29% { + top: 6%; + left: 16%; + } + 30% { + top: 79%; + left: 97%; + } + 31% { + top: 15%; + left: 75%; + } + 32% { + top: 77%; + left: 26%; + } + 33% { + top: 77%; + left: 68%; + } + 34% { + top: 40%; + left: 63%; + } + 35% { + top: 59%; + left: 4%; + } + 36% { + top: 61%; + left: 98%; + } + 37% { + top: 41%; + left: 73%; + } + 38% { + top: 72%; + left: 64%; + } + 39% { + top: 87%; + left: 74%; + } + 40% { + top: 11%; + left: 75%; + } + 41% { + top: 44%; + left: 80%; + } + 42% { + top: 61%; + left: 14%; + } + 43% { + top: 30%; + left: 65%; + } + 44% { + top: 57%; + left: 36%; + } + 45% { + top: 64%; + left: 2%; + } + 46% { + top: 68%; + left: 81%; + } + 47% { + top: 32%; + left: 65%; + } + 48% { + top: 63%; + left: 86%; + } + 49% { + top: 4%; + left: 39%; + } + 50% { + top: 26%; + left: 22%; + } + 51% { + top: 76%; + left: 72%; + } + 52% { + top: 48%; + left: 60%; + } + 53% { + top: 52%; + left: 40%; + } + 54% { + top: 36%; + left: 36%; + } + 55% { + top: 11%; + left: 1%; + } + 56% { + top: 47%; + left: 82%; + } + 57% { + top: 2%; + left: 80%; + } + 58% { + top: 45%; + left: 50%; + } + 59% { + top: 85%; + left: 4%; + } + 60% { + top: 60%; + left: 76%; + } + 61% { + top: 49%; + left: 22%; + } + 62% { + top: 58%; + left: 4%; + } + 63% { + top: 52%; + left: 83%; + } + 64% { + top: 9%; + left: 76%; + } + 65% { + top: 29%; + left: 77%; + } + 66% { + top: 23%; + left: 29%; + } + 67% { + top: 41%; + left: 58%; + } + 68% { + top: 91%; + left: 6%; + } + 69% { + top: 66%; + left: 23%; + } + 70% { + top: 35%; + left: 51%; + } + 71% { + top: 43%; + left: 38%; + } + 72% { + top: 98%; + left: 93%; + } + 73% { + top: 73%; + left: 51%; + } + 74% { + top: 1%; + left: 34%; + } + 75% { + top: 94%; + left: 81%; + } + 76% { + top: 56%; + left: 8%; + } + 77% { + top: 32%; + left: 20%; + } + 78% { + top: 62%; + left: 31%; + } + 79% { + top: 5%; + left: 59%; + } + 80% { + top: 10%; + left: 96%; + } + 81% { + top: 92%; + left: 7%; + } + 82% { + top: 12%; + left: 16%; + } + 83% { + top: 74%; + left: 66%; + } + 84% { + top: 23%; + left: 87%; + } + 85% { + top: 82%; + left: 10%; + } + 86% { + top: 29%; + left: 65%; + } + 87% { + top: 15%; + left: 7%; + } + 88% { + top: 63%; + left: 29%; + } + 89% { + top: 62%; + left: 57%; + } + 90% { + top: 47%; + left: 97%; + } + 91% { + top: 61%; + left: 34%; + } + 92% { + top: 61%; + left: 70%; + } + 93% { + top: 82%; + left: 44%; + } + 94% { + top: 20%; + left: 27%; + } + 95% { + top: 18%; + left: 67%; + } + 96% { + top: 11%; + left: 97%; + } + 97% { + top: 33%; + left: 41%; + } + 98% { + top: 43%; + left: 75%; + } + 99% { + top: 37%; + left: 41%; + } +} + +@keyframes fly1 { + 0% { + top: 43%; + left: 59%; + } + 1% { + top: 33%; + left: 68%; + } + 2% { + top: 9%; + left: 63%; + } + 3% { + top: 42%; + left: 28%; + } + 4% { + top: 65%; + left: 24%; + } + 5% { + top: 33%; + left: 33%; + } + 6% { + top: 42%; + left: 22%; + } + 7% { + top: 35%; + left: 30%; + } + 8% { + top: 49%; + left: 55%; + } + 9% { + top: 64%; + left: 90%; + } + 10% { + top: 8%; + left: 40%; + } + 11% { + top: 14%; + left: 15%; + } + 12% { + top: 22%; + left: 23%; + } + 13% { + top: 100%; + left: 34%; + } + 14% { + top: 53%; + left: 69%; + } + 15% { + top: 23%; + left: 71%; + } + 16% { + top: 68%; + left: 77%; + } + 17% { + top: 35%; + left: 82%; + } + 18% { + top: 62%; + left: 24%; + } + 19% { + top: 49%; + left: 40%; + } + 20% { + top: 47%; + left: 71%; + } + 21% { + top: 72%; + left: 33%; + } + 22% { + top: 87%; + left: 11%; + } + 23% { + top: 2%; + left: 64%; + } + 24% { + top: 21%; + left: 65%; + } + 25% { + top: 84%; + left: 73%; + } + 26% { + top: 15%; + left: 89%; + } + 27% { + top: 28%; + left: 74%; + } + 28% { + top: 50%; + left: 14%; + } + 29% { + top: 6%; + left: 16%; + } + 30% { + top: 79%; + left: 97%; + } + 31% { + top: 15%; + left: 75%; + } + 32% { + top: 77%; + left: 26%; + } + 33% { + top: 77%; + left: 68%; + } + 34% { + top: 40%; + left: 63%; + } + 35% { + top: 59%; + left: 4%; + } + 36% { + top: 61%; + left: 98%; + } + 37% { + top: 41%; + left: 73%; + } + 38% { + top: 72%; + left: 64%; + } + 39% { + top: 87%; + left: 74%; + } + 40% { + top: 11%; + left: 75%; + } + 41% { + top: 44%; + left: 80%; + } + 42% { + top: 61%; + left: 14%; + } + 43% { + top: 30%; + left: 65%; + } + 44% { + top: 57%; + left: 36%; + } + 45% { + top: 64%; + left: 2%; + } + 46% { + top: 68%; + left: 81%; + } + 47% { + top: 32%; + left: 65%; + } + 48% { + top: 63%; + left: 86%; + } + 49% { + top: 4%; + left: 39%; + } + 50% { + top: 26%; + left: 22%; + } + 51% { + top: 76%; + left: 72%; + } + 52% { + top: 48%; + left: 60%; + } + 53% { + top: 52%; + left: 40%; + } + 54% { + top: 36%; + left: 36%; + } + 55% { + top: 11%; + left: 1%; + } + 56% { + top: 47%; + left: 82%; + } + 57% { + top: 2%; + left: 80%; + } + 58% { + top: 45%; + left: 50%; + } + 59% { + top: 85%; + left: 4%; + } + 60% { + top: 60%; + left: 76%; + } + 61% { + top: 49%; + left: 22%; + } + 62% { + top: 58%; + left: 4%; + } + 63% { + top: 52%; + left: 83%; + } + 64% { + top: 9%; + left: 76%; + } + 65% { + top: 29%; + left: 77%; + } + 66% { + top: 23%; + left: 29%; + } + 67% { + top: 41%; + left: 58%; + } + 68% { + top: 91%; + left: 6%; + } + 69% { + top: 66%; + left: 23%; + } + 70% { + top: 35%; + left: 51%; + } + 71% { + top: 43%; + left: 38%; + } + 72% { + top: 98%; + left: 93%; + } + 73% { + top: 73%; + left: 51%; + } + 74% { + top: 1%; + left: 34%; + } + 75% { + top: 94%; + left: 81%; + } + 76% { + top: 56%; + left: 8%; + } + 77% { + top: 32%; + left: 20%; + } + 78% { + top: 62%; + left: 31%; + } + 79% { + top: 5%; + left: 59%; + } + 80% { + top: 10%; + left: 96%; + } + 81% { + top: 92%; + left: 7%; + } + 82% { + top: 12%; + left: 16%; + } + 83% { + top: 74%; + left: 66%; + } + 84% { + top: 23%; + left: 87%; + } + 85% { + top: 82%; + left: 10%; + } + 86% { + top: 29%; + left: 65%; + } + 87% { + top: 15%; + left: 7%; + } + 88% { + top: 63%; + left: 29%; + } + 89% { + top: 62%; + left: 57%; + } + 90% { + top: 47%; + left: 97%; + } + 91% { + top: 61%; + left: 34%; + } + 92% { + top: 61%; + left: 70%; + } + 93% { + top: 82%; + left: 44%; + } + 94% { + top: 20%; + left: 27%; + } + 95% { + top: 18%; + left: 67%; + } + 96% { + top: 11%; + left: 97%; + } + 97% { + top: 33%; + left: 41%; + } + 98% { + top: 43%; + left: 75%; + } + 99% { + top: 37%; + left: 41%; + } +} +@-webkit-keyframes fly2 { + 0% { + top: 89%; + left: 82%; + } + 1% { + top: 99%; + left: 55%; + } + 2% { + top: 30%; + left: 33%; + } + 3% { + top: 60%; + left: 11%; + } + 4% { + top: 85%; + left: 98%; + } + 5% { + top: 56%; + left: 77%; + } + 6% { + top: 70%; + left: 59%; + } + 7% { + top: 56%; + left: 17%; + } + 8% { + top: 51%; + left: 46%; + } + 9% { + top: 38%; + left: 18%; + } + 10% { + top: 27%; + left: 12%; + } + 11% { + top: 28%; + left: 55%; + } + 12% { + top: 63%; + left: 18%; + } + 13% { + top: 24%; + left: 53%; + } + 14% { + top: 50%; + left: 97%; + } + 15% { + top: 57%; + left: 33%; + } + 16% { + top: 19%; + left: 100%; + } + 17% { + top: 63%; + left: 14%; + } + 18% { + top: 1%; + left: 64%; + } + 19% { + top: 81%; + left: 12%; + } + 20% { + top: 34%; + left: 90%; + } + 21% { + top: 45%; + left: 98%; + } + 22% { + top: 80%; + left: 52%; + } + 23% { + top: 56%; + left: 73%; + } + 24% { + top: 25%; + left: 10%; + } + 25% { + top: 89%; + left: 39%; + } + 26% { + top: 55%; + left: 23%; + } + 27% { + top: 83%; + left: 71%; + } + 28% { + top: 82%; + left: 50%; + } + 29% { + top: 37%; + left: 70%; + } + 30% { + top: 59%; + left: 84%; + } + 31% { + top: 27%; + left: 11%; + } + 32% { + top: 26%; + left: 19%; + } + 33% { + top: 41%; + left: 95%; + } + 34% { + top: 10%; + left: 17%; + } + 35% { + top: 80%; + left: 80%; + } + 36% { + top: 19%; + left: 59%; + } + 37% { + top: 57%; + left: 64%; + } + 38% { + top: 83%; + left: 43%; + } + 39% { + top: 87%; + left: 7%; + } + 40% { + top: 14%; + left: 32%; + } + 41% { + top: 41%; + left: 88%; + } + 42% { + top: 89%; + left: 2%; + } + 43% { + top: 37%; + left: 79%; + } + 44% { + top: 38%; + left: 25%; + } + 45% { + top: 44%; + left: 22%; + } + 46% { + top: 36%; + left: 29%; + } + 47% { + top: 31%; + left: 66%; + } + 48% { + top: 22%; + left: 43%; + } + 49% { + top: 34%; + left: 68%; + } + 50% { + top: 17%; + left: 62%; + } + 51% { + top: 94%; + left: 53%; + } + 52% { + top: 72%; + left: 82%; + } + 53% { + top: 49%; + left: 14%; + } + 54% { + top: 38%; + left: 28%; + } + 55% { + top: 40%; + left: 97%; + } + 56% { + top: 30%; + left: 100%; + } + 57% { + top: 1%; + left: 50%; + } + 58% { + top: 96%; + left: 8%; + } + 59% { + top: 69%; + left: 39%; + } + 60% { + top: 67%; + left: 57%; + } + 61% { + top: 89%; + left: 57%; + } + 62% { + top: 52%; + left: 13%; + } + 63% { + top: 88%; + left: 47%; + } + 64% { + top: 95%; + left: 36%; + } + 65% { + top: 72%; + left: 75%; + } + 66% { + top: 67%; + left: 55%; + } + 67% { + top: 12%; + left: 54%; + } + 68% { + top: 92%; + left: 59%; + } + 69% { + top: 22%; + left: 33%; + } + 70% { + top: 3%; + left: 11%; + } + 71% { + top: 84%; + left: 23%; + } + 72% { + top: 15%; + left: 80%; + } + 73% { + top: 82%; + left: 66%; + } + 74% { + top: 27%; + left: 45%; + } + 75% { + top: 77%; + left: 71%; + } + 76% { + top: 91%; + left: 8%; + } + 77% { + top: 50%; + left: 48%; + } + 78% { + top: 45%; + left: 81%; + } + 79% { + top: 29%; + left: 99%; + } + 80% { + top: 87%; + left: 27%; + } + 81% { + top: 85%; + left: 54%; + } + 82% { + top: 14%; + left: 19%; + } + 83% { + top: 67%; + left: 93%; + } + 84% { + top: 75%; + left: 24%; + } + 85% { + top: 66%; + left: 77%; + } + 86% { + top: 75%; + left: 64%; + } + 87% { + top: 28%; + left: 1%; + } + 88% { + top: 32%; + left: 37%; + } + 89% { + top: 8%; + left: 87%; + } + 90% { + top: 51%; + left: 60%; + } + 91% { + top: 46%; + left: 95%; + } + 92% { + top: 45%; + left: 83%; + } + 93% { + top: 6%; + left: 58%; + } + 94% { + top: 4%; + left: 53%; + } + 95% { + top: 53%; + left: 6%; + } + 96% { + top: 54%; + left: 58%; + } + 97% { + top: 64%; + left: 3%; + } + 98% { + top: 11%; + left: 71%; + } + 99% { + top: 40%; + left: 48%; + } +} +@keyframes fly2 { + 0% { + top: 89%; + left: 82%; + } + 1% { + top: 99%; + left: 55%; + } + 2% { + top: 30%; + left: 33%; + } + 3% { + top: 60%; + left: 11%; + } + 4% { + top: 85%; + left: 98%; + } + 5% { + top: 56%; + left: 77%; + } + 6% { + top: 70%; + left: 59%; + } + 7% { + top: 56%; + left: 17%; + } + 8% { + top: 51%; + left: 46%; + } + 9% { + top: 38%; + left: 18%; + } + 10% { + top: 27%; + left: 12%; + } + 11% { + top: 28%; + left: 55%; + } + 12% { + top: 63%; + left: 18%; + } + 13% { + top: 24%; + left: 53%; + } + 14% { + top: 50%; + left: 97%; + } + 15% { + top: 57%; + left: 33%; + } + 16% { + top: 19%; + left: 100%; + } + 17% { + top: 63%; + left: 14%; + } + 18% { + top: 1%; + left: 64%; + } + 19% { + top: 81%; + left: 12%; + } + 20% { + top: 34%; + left: 90%; + } + 21% { + top: 45%; + left: 98%; + } + 22% { + top: 80%; + left: 52%; + } + 23% { + top: 56%; + left: 73%; + } + 24% { + top: 25%; + left: 10%; + } + 25% { + top: 89%; + left: 39%; + } + 26% { + top: 55%; + left: 23%; + } + 27% { + top: 83%; + left: 71%; + } + 28% { + top: 82%; + left: 50%; + } + 29% { + top: 37%; + left: 70%; + } + 30% { + top: 59%; + left: 84%; + } + 31% { + top: 27%; + left: 11%; + } + 32% { + top: 26%; + left: 19%; + } + 33% { + top: 41%; + left: 95%; + } + 34% { + top: 10%; + left: 17%; + } + 35% { + top: 80%; + left: 80%; + } + 36% { + top: 19%; + left: 59%; + } + 37% { + top: 57%; + left: 64%; + } + 38% { + top: 83%; + left: 43%; + } + 39% { + top: 87%; + left: 7%; + } + 40% { + top: 14%; + left: 32%; + } + 41% { + top: 41%; + left: 88%; + } + 42% { + top: 89%; + left: 2%; + } + 43% { + top: 37%; + left: 79%; + } + 44% { + top: 38%; + left: 25%; + } + 45% { + top: 44%; + left: 22%; + } + 46% { + top: 36%; + left: 29%; + } + 47% { + top: 31%; + left: 66%; + } + 48% { + top: 22%; + left: 43%; + } + 49% { + top: 34%; + left: 68%; + } + 50% { + top: 17%; + left: 62%; + } + 51% { + top: 94%; + left: 53%; + } + 52% { + top: 72%; + left: 82%; + } + 53% { + top: 49%; + left: 14%; + } + 54% { + top: 38%; + left: 28%; + } + 55% { + top: 40%; + left: 97%; + } + 56% { + top: 30%; + left: 100%; + } + 57% { + top: 1%; + left: 50%; + } + 58% { + top: 96%; + left: 8%; + } + 59% { + top: 69%; + left: 39%; + } + 60% { + top: 67%; + left: 57%; + } + 61% { + top: 89%; + left: 57%; + } + 62% { + top: 52%; + left: 13%; + } + 63% { + top: 88%; + left: 47%; + } + 64% { + top: 95%; + left: 36%; + } + 65% { + top: 72%; + left: 75%; + } + 66% { + top: 67%; + left: 55%; + } + 67% { + top: 12%; + left: 54%; + } + 68% { + top: 92%; + left: 59%; + } + 69% { + top: 22%; + left: 33%; + } + 70% { + top: 3%; + left: 11%; + } + 71% { + top: 84%; + left: 23%; + } + 72% { + top: 15%; + left: 80%; + } + 73% { + top: 82%; + left: 66%; + } + 74% { + top: 27%; + left: 45%; + } + 75% { + top: 77%; + left: 71%; + } + 76% { + top: 91%; + left: 8%; + } + 77% { + top: 50%; + left: 48%; + } + 78% { + top: 45%; + left: 81%; + } + 79% { + top: 29%; + left: 99%; + } + 80% { + top: 87%; + left: 27%; + } + 81% { + top: 85%; + left: 54%; + } + 82% { + top: 14%; + left: 19%; + } + 83% { + top: 67%; + left: 93%; + } + 84% { + top: 75%; + left: 24%; + } + 85% { + top: 66%; + left: 77%; + } + 86% { + top: 75%; + left: 64%; + } + 87% { + top: 28%; + left: 1%; + } + 88% { + top: 32%; + left: 37%; + } + 89% { + top: 8%; + left: 87%; + } + 90% { + top: 51%; + left: 60%; + } + 91% { + top: 46%; + left: 95%; + } + 92% { + top: 45%; + left: 83%; + } + 93% { + top: 6%; + left: 58%; + } + 94% { + top: 4%; + left: 53%; + } + 95% { + top: 53%; + left: 6%; + } + 96% { + top: 54%; + left: 58%; + } + 97% { + top: 64%; + left: 3%; + } + 98% { + top: 11%; + left: 71%; + } + 99% { + top: 40%; + left: 48%; + } +} +@-webkit-keyframes fly3 { + 0% { + top: 64%; + left: 27%; + } + 1% { + top: 77%; + left: 12%; + } + 2% { + top: 75%; + left: 95%; + } + 3% { + top: 19%; + left: 22%; + } + 4% { + top: 95%; + left: 92%; + } + 5% { + top: 42%; + left: 75%; + } + 6% { + top: 51%; + left: 61%; + } + 7% { + top: 41%; + left: 88%; + } + 8% { + top: 19%; + left: 89%; + } + 9% { + top: 48%; + left: 61%; + } + 10% { + top: 24%; + left: 36%; + } + 11% { + top: 43%; + left: 5%; + } + 12% { + top: 62%; + left: 41%; + } + 13% { + top: 90%; + left: 93%; + } + 14% { + top: 64%; + left: 5%; + } + 15% { + top: 57%; + left: 46%; + } + 16% { + top: 60%; + left: 100%; + } + 17% { + top: 28%; + left: 2%; + } + 18% { + top: 66%; + left: 99%; + } + 19% { + top: 21%; + left: 67%; + } + 20% { + top: 57%; + left: 91%; + } + 21% { + top: 9%; + left: 86%; + } + 22% { + top: 12%; + left: 47%; + } + 23% { + top: 67%; + left: 86%; + } + 24% { + top: 17%; + left: 16%; + } + 25% { + top: 88%; + left: 33%; + } + 26% { + top: 61%; + left: 43%; + } + 27% { + top: 76%; + left: 95%; + } + 28% { + top: 4%; + left: 88%; + } + 29% { + top: 3%; + left: 82%; + } + 30% { + top: 65%; + left: 23%; + } + 31% { + top: 64%; + left: 2%; + } + 32% { + top: 65%; + left: 57%; + } + 33% { + top: 54%; + left: 26%; + } + 34% { + top: 73%; + left: 36%; + } + 35% { + top: 45%; + left: 83%; + } + 36% { + top: 15%; + left: 34%; + } + 37% { + top: 31%; + left: 54%; + } + 38% { + top: 96%; + left: 72%; + } + 39% { + top: 94%; + left: 57%; + } + 40% { + top: 83%; + left: 82%; + } + 41% { + top: 61%; + left: 44%; + } + 42% { + top: 13%; + left: 98%; + } + 43% { + top: 36%; + left: 16%; + } + 44% { + top: 21%; + left: 97%; + } + 45% { + top: 7%; + left: 1%; + } + 46% { + top: 63%; + left: 58%; + } + 47% { + top: 7%; + left: 75%; + } + 48% { + top: 71%; + left: 43%; + } + 49% { + top: 35%; + left: 31%; + } + 50% { + top: 49%; + left: 51%; + } + 51% { + top: 8%; + left: 41%; + } + 52% { + top: 22%; + left: 29%; + } + 53% { + top: 12%; + left: 76%; + } + 54% { + top: 91%; + left: 34%; + } + 55% { + top: 39%; + left: 28%; + } + 56% { + top: 2%; + left: 81%; + } + 57% { + top: 22%; + left: 96%; + } + 58% { + top: 44%; + left: 11%; + } + 59% { + top: 95%; + left: 86%; + } + 60% { + top: 62%; + left: 89%; + } + 61% { + top: 85%; + left: 22%; + } + 62% { + top: 31%; + left: 44%; + } + 63% { + top: 1%; + left: 51%; + } + 64% { + top: 25%; + left: 5%; + } + 65% { + top: 27%; + left: 70%; + } + 66% { + top: 69%; + left: 8%; + } + 67% { + top: 8%; + left: 15%; + } + 68% { + top: 47%; + left: 75%; + } + 69% { + top: 26%; + left: 63%; + } + 70% { + top: 33%; + left: 97%; + } + 71% { + top: 5%; + left: 40%; + } + 72% { + top: 23%; + left: 13%; + } + 73% { + top: 99%; + left: 91%; + } + 74% { + top: 20%; + left: 43%; + } + 75% { + top: 41%; + left: 32%; + } + 76% { + top: 31%; + left: 48%; + } + 77% { + top: 63%; + left: 97%; + } + 78% { + top: 92%; + left: 83%; + } + 79% { + top: 63%; + left: 75%; + } + 80% { + top: 20%; + left: 51%; + } + 81% { + top: 34%; + left: 24%; + } + 82% { + top: 59%; + left: 83%; + } + 83% { + top: 49%; + left: 29%; + } + 84% { + top: 71%; + left: 1%; + } + 85% { + top: 46%; + left: 49%; + } + 86% { + top: 87%; + left: 86%; + } + 87% { + top: 23%; + left: 16%; + } + 88% { + top: 39%; + left: 81%; + } + 89% { + top: 20%; + left: 60%; + } + 90% { + top: 60%; + left: 64%; + } + 91% { + top: 12%; + left: 19%; + } + 92% { + top: 48%; + left: 32%; + } + 93% { + top: 9%; + left: 56%; + } + 94% { + top: 78%; + left: 23%; + } + 95% { + top: 56%; + left: 90%; + } + 96% { + top: 33%; + left: 37%; + } + 97% { + top: 50%; + left: 55%; + } + 98% { + top: 45%; + left: 20%; + } + 99% { + top: 94%; + left: 97%; + } +} +@keyframes fly3 { + 0% { + top: 64%; + left: 27%; + } + 1% { + top: 77%; + left: 12%; + } + 2% { + top: 75%; + left: 95%; + } + 3% { + top: 19%; + left: 22%; + } + 4% { + top: 95%; + left: 92%; + } + 5% { + top: 42%; + left: 75%; + } + 6% { + top: 51%; + left: 61%; + } + 7% { + top: 41%; + left: 88%; + } + 8% { + top: 19%; + left: 89%; + } + 9% { + top: 48%; + left: 61%; + } + 10% { + top: 24%; + left: 36%; + } + 11% { + top: 43%; + left: 5%; + } + 12% { + top: 62%; + left: 41%; + } + 13% { + top: 90%; + left: 93%; + } + 14% { + top: 64%; + left: 5%; + } + 15% { + top: 57%; + left: 46%; + } + 16% { + top: 60%; + left: 100%; + } + 17% { + top: 28%; + left: 2%; + } + 18% { + top: 66%; + left: 99%; + } + 19% { + top: 21%; + left: 67%; + } + 20% { + top: 57%; + left: 91%; + } + 21% { + top: 9%; + left: 86%; + } + 22% { + top: 12%; + left: 47%; + } + 23% { + top: 67%; + left: 86%; + } + 24% { + top: 17%; + left: 16%; + } + 25% { + top: 88%; + left: 33%; + } + 26% { + top: 61%; + left: 43%; + } + 27% { + top: 76%; + left: 95%; + } + 28% { + top: 4%; + left: 88%; + } + 29% { + top: 3%; + left: 82%; + } + 30% { + top: 65%; + left: 23%; + } + 31% { + top: 64%; + left: 2%; + } + 32% { + top: 65%; + left: 57%; + } + 33% { + top: 54%; + left: 26%; + } + 34% { + top: 73%; + left: 36%; + } + 35% { + top: 45%; + left: 83%; + } + 36% { + top: 15%; + left: 34%; + } + 37% { + top: 31%; + left: 54%; + } + 38% { + top: 96%; + left: 72%; + } + 39% { + top: 94%; + left: 57%; + } + 40% { + top: 83%; + left: 82%; + } + 41% { + top: 61%; + left: 44%; + } + 42% { + top: 13%; + left: 98%; + } + 43% { + top: 36%; + left: 16%; + } + 44% { + top: 21%; + left: 97%; + } + 45% { + top: 7%; + left: 1%; + } + 46% { + top: 63%; + left: 58%; + } + 47% { + top: 7%; + left: 75%; + } + 48% { + top: 71%; + left: 43%; + } + 49% { + top: 35%; + left: 31%; + } + 50% { + top: 49%; + left: 51%; + } + 51% { + top: 8%; + left: 41%; + } + 52% { + top: 22%; + left: 29%; + } + 53% { + top: 12%; + left: 76%; + } + 54% { + top: 91%; + left: 34%; + } + 55% { + top: 39%; + left: 28%; + } + 56% { + top: 2%; + left: 81%; + } + 57% { + top: 22%; + left: 96%; + } + 58% { + top: 44%; + left: 11%; + } + 59% { + top: 95%; + left: 86%; + } + 60% { + top: 62%; + left: 89%; + } + 61% { + top: 85%; + left: 22%; + } + 62% { + top: 31%; + left: 44%; + } + 63% { + top: 1%; + left: 51%; + } + 64% { + top: 25%; + left: 5%; + } + 65% { + top: 27%; + left: 70%; + } + 66% { + top: 69%; + left: 8%; + } + 67% { + top: 8%; + left: 15%; + } + 68% { + top: 47%; + left: 75%; + } + 69% { + top: 26%; + left: 63%; + } + 70% { + top: 33%; + left: 97%; + } + 71% { + top: 5%; + left: 40%; + } + 72% { + top: 23%; + left: 13%; + } + 73% { + top: 99%; + left: 91%; + } + 74% { + top: 20%; + left: 43%; + } + 75% { + top: 41%; + left: 32%; + } + 76% { + top: 31%; + left: 48%; + } + 77% { + top: 63%; + left: 97%; + } + 78% { + top: 92%; + left: 83%; + } + 79% { + top: 63%; + left: 75%; + } + 80% { + top: 20%; + left: 51%; + } + 81% { + top: 34%; + left: 24%; + } + 82% { + top: 59%; + left: 83%; + } + 83% { + top: 49%; + left: 29%; + } + 84% { + top: 71%; + left: 1%; + } + 85% { + top: 46%; + left: 49%; + } + 86% { + top: 87%; + left: 86%; + } + 87% { + top: 23%; + left: 16%; + } + 88% { + top: 39%; + left: 81%; + } + 89% { + top: 20%; + left: 60%; + } + 90% { + top: 60%; + left: 64%; + } + 91% { + top: 12%; + left: 19%; + } + 92% { + top: 48%; + left: 32%; + } + 93% { + top: 9%; + left: 56%; + } + 94% { + top: 78%; + left: 23%; + } + 95% { + top: 56%; + left: 90%; + } + 96% { + top: 33%; + left: 37%; + } + 97% { + top: 50%; + left: 55%; + } + 98% { + top: 45%; + left: 20%; + } + 99% { + top: 94%; + left: 97%; + } +} +.description, +.congrats { + position: absolute; + top: 50%; + left: 50%; + width: 100%; + z-index: 9; + padding: 0 2rem; + text-align: center; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + transform: translateX(-50%) translateY(-50%); +} + +h1 { + font-weight: normal; + font-size: 3rem; + text-shadow: 0 0 3rem rgba(41, 255, 106, 0.6); +} + +p { + font-size: 1.5rem; +} + +.congrats { + opacity: 0; +} + +.description { + -webkit-animation: fade-out 1s 3s forwards; + animation: fade-out 1s 3s forwards; +} + +input[class=fly-3]:checked ~ .congrats { + -webkit-animation: fade-in 1s 0.5s forwards; + animation: fade-in 1s 0.5s forwards; +} + +@-webkit-keyframes fade-out { + 60% { + top: 55%; + } + 100% { + top: -10%; + } +} + +@keyframes fade-out { + 60% { + top: 55%; + } + 100% { + top: -10%; + } +} +@-webkit-keyframes fade-in { + 100% { + opacity: 1; + } +} +@keyframes fade-in { + 100% { + opacity: 1; + } } \ No newline at end of file diff --git a/Games/Spacepi/index.html b/Games/Spacepi/index.html index 609e956d03..6e2ccd47f7 100644 --- a/Games/Spacepi/index.html +++ b/Games/Spacepi/index.html @@ -1,4 +1,4 @@ -SpacePi
      SpacePi
      \ No newline at end of file diff --git a/Games/Spelling_Bee/index.html b/Games/Spelling_Bee/index.html index 525a13e6ed..992a583cc2 100644 --- a/Games/Spelling_Bee/index.html +++ b/Games/Spelling_Bee/index.html @@ -1,107 +1,107 @@ - - - - - - - Document - - - - - -
      -
      - - - - -
      - - -
      -
      - - - - + + + + + + + Document + + + + + +
      +
      + + + + +
      + + +
      +
      + + + + diff --git a/Games/Spelling_Bee/p.txt b/Games/Spelling_Bee/p.txt index 72bf7240c1..7705159421 100644 --- a/Games/Spelling_Bee/p.txt +++ b/Games/Spelling_Bee/p.txt @@ -1,109 +1,109 @@ - - - - - - - - Js Web Speech API - - - - -
      - - - - -
      - - -
      - -
      - - - - - - + + + + + + + + Js Web Speech API + + + + +
      + + + + +
      + + +
      + +
      + + + + + + \ No newline at end of file diff --git a/Games/Stone_paper_scissor/.babelrc.json b/Games/Stone_paper_scissor/.babelrc.json index 2528e70158..4e89bf8a61 100644 --- a/Games/Stone_paper_scissor/.babelrc.json +++ b/Games/Stone_paper_scissor/.babelrc.json @@ -1,7 +1,7 @@ -{ - "presets": ["@babel/preset-env"], - "plugins": [ - ["@babel/plugin-proposal-class-properties"], - ["@babel/transform-runtime", { "regenerator": true }] - ] +{ + "presets": ["@babel/preset-env"], + "plugins": [ + ["@babel/plugin-proposal-class-properties"], + ["@babel/transform-runtime", { "regenerator": true }] + ] } \ No newline at end of file diff --git a/Games/Stone_paper_scissor/.eslintrc.json b/Games/Stone_paper_scissor/.eslintrc.json index eb8667e7d1..c57a36040f 100644 --- a/Games/Stone_paper_scissor/.eslintrc.json +++ b/Games/Stone_paper_scissor/.eslintrc.json @@ -1,37 +1,37 @@ -{ - "ignorePatterns": ["dist", "node_modules"], - "rules": { - "prefer-template": "off", - "no-var": 1, - "no-unused-vars": 1, - "camelcase": 1, - "no-nested-ternary": 1, - "no-console": 1, - "no-template-curly-in-string": 1, - "no-self-compare": 1, - "import/prefer-default-export": 0, - "arrow-body-style": 1, - "import/no-extraneous-dependencies": ["off", { "devDependencies": false }] - }, - "env": { - "browser": true, - "es6": true - }, - "extends": ["eslint:recommended", "airbnb-base", "prettier"], - "globals": { - "Atomics": "readonly", - "SharedArrayBuffer": "readonly" - }, - "parserOptions": { - "ecmaVersion": 11, - "sourceType": "module" - }, - "plugins": ["prettier"], - "settings": { - "import/resolver": { - "webpack": { - "config": "config/webpack.common.js" - } - } - } -} +{ + "ignorePatterns": ["dist", "node_modules"], + "rules": { + "prefer-template": "off", + "no-var": 1, + "no-unused-vars": 1, + "camelcase": 1, + "no-nested-ternary": 1, + "no-console": 1, + "no-template-curly-in-string": 1, + "no-self-compare": 1, + "import/prefer-default-export": 0, + "arrow-body-style": 1, + "import/no-extraneous-dependencies": ["off", { "devDependencies": false }] + }, + "env": { + "browser": true, + "es6": true + }, + "extends": ["eslint:recommended", "airbnb-base", "prettier"], + "globals": { + "Atomics": "readonly", + "SharedArrayBuffer": "readonly" + }, + "parserOptions": { + "ecmaVersion": 11, + "sourceType": "module" + }, + "plugins": ["prettier"], + "settings": { + "import/resolver": { + "webpack": { + "config": "config/webpack.common.js" + } + } + } +} diff --git a/Games/Stone_paper_scissor/.gitignore b/Games/Stone_paper_scissor/.gitignore index e7e1186fca..ba32ede58d 100644 --- a/Games/Stone_paper_scissor/.gitignore +++ b/Games/Stone_paper_scissor/.gitignore @@ -1,3 +1,3 @@ -**/.DS_Store -/node_modules +**/.DS_Store +/node_modules /dist \ No newline at end of file diff --git a/Games/Stone_paper_scissor/.prettierrc.json b/Games/Stone_paper_scissor/.prettierrc.json index c916fe3639..edc0835e99 100644 --- a/Games/Stone_paper_scissor/.prettierrc.json +++ b/Games/Stone_paper_scissor/.prettierrc.json @@ -1,7 +1,7 @@ -{ - "trailingComma": "es5", - "singleQuote": true, - "tabWidth": 2, - "printWidth": 100, - "semi": false -} +{ + "trailingComma": "es5", + "singleQuote": true, + "tabWidth": 2, + "printWidth": 100, + "semi": false +} diff --git a/Games/Stone_paper_scissor/config/paths.js b/Games/Stone_paper_scissor/config/paths.js index 537a539e6c..d0a7e8158b 100644 --- a/Games/Stone_paper_scissor/config/paths.js +++ b/Games/Stone_paper_scissor/config/paths.js @@ -1,12 +1,12 @@ -const path = require('path') - -module.exports = { - // Source files - src: path.resolve(__dirname, '../src'), - - // Production build files - build: path.resolve(__dirname, '../dist'), - - // Static files that get copied to build folder - public: path.resolve(__dirname, '../public'), -} +const path = require('path') + +module.exports = { + // Source files + src: path.resolve(__dirname, '../src'), + + // Production build files + build: path.resolve(__dirname, '../dist'), + + // Static files that get copied to build folder + public: path.resolve(__dirname, '../public'), +} diff --git a/Games/Stone_paper_scissor/config/webpack.common.js b/Games/Stone_paper_scissor/config/webpack.common.js index d61413002f..66f6bb8e7e 100644 --- a/Games/Stone_paper_scissor/config/webpack.common.js +++ b/Games/Stone_paper_scissor/config/webpack.common.js @@ -1,69 +1,69 @@ -const { CleanWebpackPlugin } = require('clean-webpack-plugin') -const CopyWebpackPlugin = require('copy-webpack-plugin') -const HtmlWebpackPlugin = require('html-webpack-plugin') - -const paths = require('./paths') - -module.exports = { - // Where webpack looks to start building the bundle - entry: [paths.src + '/index.js'], - - // Where webpack outputs the assets and bundles - output: { - path: paths.build, - filename: '[name].bundle.js', - publicPath: '/', - }, - - // Customize the webpack build process - plugins: [ - // Removes/cleans build folders and unused assets when rebuilding - new CleanWebpackPlugin(), - - // Copies files from target to destination folder - new CopyWebpackPlugin({ - patterns: [ - { - from: paths.public, - to: 'assets', - globOptions: { - ignore: ['*.DS_Store'], - }, - noErrorOnMissing: true, - }, - ], - }), - - // Generates an HTML file from a template - // Generates deprecation warning: https://github.com/jantimon/html-webpack-plugin/issues/1501 - new HtmlWebpackPlugin({ - title: 'Rock, Scissors, Paper with TensorFlow.js and Fingerpose', - favicon: paths.src + '/images/favicon.png', - template: paths.src + '/template.html', // template file - filename: 'index.html', // output file - }), - ], - - // Determine how modules within the project are treated - module: { - rules: [ - // JavaScript: Use Babel to transpile JavaScript files - { test: /\.js$/, use: ['babel-loader'] }, - - // Images: Copy image files to build folder - { test: /\.(?:ico|gif|png|jpg|jpeg)$/i, type: 'asset/resource' }, - - // Fonts and SVGs: Inline files - { test: /\.(woff(2)?|eot|ttf|otf|svg|)$/, type: 'asset/inline' }, - ], - }, - - resolve: { - modules: [paths.src, 'node_modules'], - extensions: ['.js', '.jsx', '.json'], - alias: { - '@': paths.src, - assets: paths.public, - }, - }, -} +const { CleanWebpackPlugin } = require('clean-webpack-plugin') +const CopyWebpackPlugin = require('copy-webpack-plugin') +const HtmlWebpackPlugin = require('html-webpack-plugin') + +const paths = require('./paths') + +module.exports = { + // Where webpack looks to start building the bundle + entry: [paths.src + '/index.js'], + + // Where webpack outputs the assets and bundles + output: { + path: paths.build, + filename: '[name].bundle.js', + publicPath: '/', + }, + + // Customize the webpack build process + plugins: [ + // Removes/cleans build folders and unused assets when rebuilding + new CleanWebpackPlugin(), + + // Copies files from target to destination folder + new CopyWebpackPlugin({ + patterns: [ + { + from: paths.public, + to: 'assets', + globOptions: { + ignore: ['*.DS_Store'], + }, + noErrorOnMissing: true, + }, + ], + }), + + // Generates an HTML file from a template + // Generates deprecation warning: https://github.com/jantimon/html-webpack-plugin/issues/1501 + new HtmlWebpackPlugin({ + title: 'Rock, Scissors, Paper with TensorFlow.js and Fingerpose', + favicon: paths.src + '/images/favicon.png', + template: paths.src + '/template.html', // template file + filename: 'index.html', // output file + }), + ], + + // Determine how modules within the project are treated + module: { + rules: [ + // JavaScript: Use Babel to transpile JavaScript files + { test: /\.js$/, use: ['babel-loader'] }, + + // Images: Copy image files to build folder + { test: /\.(?:ico|gif|png|jpg|jpeg)$/i, type: 'asset/resource' }, + + // Fonts and SVGs: Inline files + { test: /\.(woff(2)?|eot|ttf|otf|svg|)$/, type: 'asset/inline' }, + ], + }, + + resolve: { + modules: [paths.src, 'node_modules'], + extensions: ['.js', '.jsx', '.json'], + alias: { + '@': paths.src, + assets: paths.public, + }, + }, +} diff --git a/Games/Stone_paper_scissor/config/webpack.dev.js b/Games/Stone_paper_scissor/config/webpack.dev.js index 1c89806ef8..bb05b69391 100644 --- a/Games/Stone_paper_scissor/config/webpack.dev.js +++ b/Games/Stone_paper_scissor/config/webpack.dev.js @@ -1,46 +1,46 @@ -const webpack = require('webpack') -const { merge } = require('webpack-merge') - -const common = require('./webpack.common.js') -const paths = require('./paths') - -module.exports = merge(common, { - // Set the mode to development or production - mode: 'development', - - // Control how source maps are generated - devtool: 'inline-source-map', - - // Spin up a server for quick development - devServer: { - historyApiFallback: true, - static: paths.public, - open: true, - compress: true, - hot: true, - port: 8080, - }, - - module: { - rules: [ - // Styles: Inject CSS into the head with source maps - { - test: /\.(scss|css)$/, - use: [ - 'style-loader', - { - loader: 'css-loader', - options: { sourceMap: true, importLoaders: 1, modules: false }, - }, - { loader: 'postcss-loader', options: { sourceMap: true } }, - { loader: 'sass-loader', options: { sourceMap: true } }, - ], - }, - ], - }, - - plugins: [ - // Only update what has changed on hot reload - new webpack.HotModuleReplacementPlugin(), - ], -}) +const webpack = require('webpack') +const { merge } = require('webpack-merge') + +const common = require('./webpack.common.js') +const paths = require('./paths') + +module.exports = merge(common, { + // Set the mode to development or production + mode: 'development', + + // Control how source maps are generated + devtool: 'inline-source-map', + + // Spin up a server for quick development + devServer: { + historyApiFallback: true, + static: paths.public, + open: true, + compress: true, + hot: true, + port: 8080, + }, + + module: { + rules: [ + // Styles: Inject CSS into the head with source maps + { + test: /\.(scss|css)$/, + use: [ + 'style-loader', + { + loader: 'css-loader', + options: { sourceMap: true, importLoaders: 1, modules: false }, + }, + { loader: 'postcss-loader', options: { sourceMap: true } }, + { loader: 'sass-loader', options: { sourceMap: true } }, + ], + }, + ], + }, + + plugins: [ + // Only update what has changed on hot reload + new webpack.HotModuleReplacementPlugin(), + ], +}) diff --git a/Games/Stone_paper_scissor/config/webpack.prod.js b/Games/Stone_paper_scissor/config/webpack.prod.js index cf110d5a43..7ceed44037 100644 --- a/Games/Stone_paper_scissor/config/webpack.prod.js +++ b/Games/Stone_paper_scissor/config/webpack.prod.js @@ -1,55 +1,55 @@ -const MiniCssExtractPlugin = require('mini-css-extract-plugin') -const CssMinimizerPlugin = require('css-minimizer-webpack-plugin') -const { merge } = require('webpack-merge') - -const paths = require('./paths') -const common = require('./webpack.common.js') - -module.exports = merge(common, { - mode: 'production', - devtool: false, - output: { - path: paths.build, - publicPath: '/', - filename: 'js/[name].[contenthash].bundle.js', - }, - module: { - rules: [ - { - test: /\.(scss|css)$/, - use: [ - MiniCssExtractPlugin.loader, - { - loader: 'css-loader', - options: { - importLoaders: 2, - sourceMap: false, - modules: false, - }, - }, - 'postcss-loader', - 'sass-loader', - ], - }, - ], - }, - plugins: [ - // Extracts CSS into separate files - new MiniCssExtractPlugin({ - filename: 'styles/[name].[contenthash].css', - chunkFilename: '[id].css', - }), - ], - optimization: { - minimize: true, - minimizer: [new CssMinimizerPlugin(), '...'], - runtimeChunk: { - name: 'runtime', - }, - }, - performance: { - hints: false, - maxEntrypointSize: 512000, - maxAssetSize: 512000, - }, -}) +const MiniCssExtractPlugin = require('mini-css-extract-plugin') +const CssMinimizerPlugin = require('css-minimizer-webpack-plugin') +const { merge } = require('webpack-merge') + +const paths = require('./paths') +const common = require('./webpack.common.js') + +module.exports = merge(common, { + mode: 'production', + devtool: false, + output: { + path: paths.build, + publicPath: '/', + filename: 'js/[name].[contenthash].bundle.js', + }, + module: { + rules: [ + { + test: /\.(scss|css)$/, + use: [ + MiniCssExtractPlugin.loader, + { + loader: 'css-loader', + options: { + importLoaders: 2, + sourceMap: false, + modules: false, + }, + }, + 'postcss-loader', + 'sass-loader', + ], + }, + ], + }, + plugins: [ + // Extracts CSS into separate files + new MiniCssExtractPlugin({ + filename: 'styles/[name].[contenthash].css', + chunkFilename: '[id].css', + }), + ], + optimization: { + minimize: true, + minimizer: [new CssMinimizerPlugin(), '...'], + runtimeChunk: { + name: 'runtime', + }, + }, + performance: { + hints: false, + maxEntrypointSize: 512000, + maxAssetSize: 512000, + }, +}) diff --git a/Games/Stone_paper_scissor/index.html b/Games/Stone_paper_scissor/index.html index f6e95d49bf..290ebb45a3 100644 --- a/Games/Stone_paper_scissor/index.html +++ b/Games/Stone_paper_scissor/index.html @@ -1,24 +1,24 @@ - - - - - - - - Rock Paper Scissor Game - - - - - -

      -

      Opponent

      -

      You

      - - - -
      - - - + + + + + + + + Rock Paper Scissor Game + + + + + +

      +

      Opponent

      +

      You

      + + + +
      + + + \ No newline at end of file diff --git a/Games/Stone_paper_scissor/package-lock.json b/Games/Stone_paper_scissor/package-lock.json index 4e9d4183d4..3d8871708b 100644 --- a/Games/Stone_paper_scissor/package-lock.json +++ b/Games/Stone_paper_scissor/package-lock.json @@ -1,22416 +1,22416 @@ -{ - "name": "rock-paper-scissors", - "version": "1.0.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "rock-paper-scissors", - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "@tensorflow-models/handpose": "^0.0.7", - "@tensorflow/tfjs-backend-webgl": "^3.11.0", - "@tensorflow/tfjs-converter": "^3.11.0", - "@tensorflow/tfjs-core": "^3.11.0", - "fingerpose": "^0.1.0" - }, - "devDependencies": { - "@babel/core": "^7.15.8", - "@babel/plugin-proposal-class-properties": "^7.14.5", - "@babel/plugin-transform-runtime": "^7.16.0", - "@babel/preset-env": "^7.15.8", - "babel-loader": "^8.2.2", - "clean-webpack-plugin": "^4.0.0", - "copy-webpack-plugin": "^9.0.1", - "cross-env": "^7.0.3", - "css-loader": "^6.4.0", - "css-minimizer-webpack-plugin": "^3.1.1", - "eslint": "^7.28.0", - "eslint-config-airbnb-base": "^14.2.1", - "eslint-config-prettier": "^8.3.0", - "eslint-import-resolver-webpack": "^0.13.1", - "eslint-plugin-import": "^2.25.2", - "eslint-plugin-prettier": "^4.0.0", - "html-webpack-plugin": "^5.3.2", - "mini-css-extract-plugin": "^2.4.2", - "node-sass": "^6.0.1", - "postcss-loader": "^6.2.0", - "postcss-preset-env": "^6.7.0", - "prettier": "^2.4.1", - "sass-loader": "^12.2.0", - "style-loader": "^3.3.0", - "webpack": "^5.58.2", - "webpack-cli": "^4.9.0", - "webpack-dev-server": "^4.3.1", - "webpack-merge": "^5.8.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.15.8.tgz", - "integrity": "sha512-2IAnmn8zbvC/jKYhq5Ki9I+DwjlrtMPUCH/CpHvqI4dNnlwHwsxoIhlc8WcYY5LSYknXQtAlFYuHfqAFCvQ4Wg==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.15.0", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.15.0.tgz", - "integrity": "sha512-0NqAC1IJE0S0+lL1SWFMxMkz1pKCNCjI4tr2Zx4LJSXxCLAdr6KyArnY+sno5m3yH9g737ygOyPABDsnXkpxiA==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.15.8.tgz", - "integrity": "sha512-3UG9dsxvYBMYwRv+gS41WKHno4K60/9GPy1CJaH6xy3Elq8CTtvtjT5R5jmNhXfCYLX2mTw+7/aq5ak/gOE0og==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.15.8", - "@babel/generator": "^7.15.8", - "@babel/helper-compilation-targets": "^7.15.4", - "@babel/helper-module-transforms": "^7.15.8", - "@babel/helpers": "^7.15.4", - "@babel/parser": "^7.15.8", - "@babel/template": "^7.15.4", - "@babel/traverse": "^7.15.4", - "@babel/types": "^7.15.6", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.1.2", - "semver": "^6.3.0", - "source-map": "^0.5.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/generator": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.15.8.tgz", - "integrity": "sha512-ECmAKstXbp1cvpTTZciZCgfOt6iN64lR0d+euv3UZisU5awfRawOvg07Utn/qBGuH4bRIEZKrA/4LzZyXhZr8g==", - "dev": true, - "dependencies": { - "@babel/types": "^7.15.6", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.15.4.tgz", - "integrity": "sha512-QwrtdNvUNsPCj2lfNQacsGSQvGX8ee1ttrBrcozUP2Sv/jylewBP/8QFe6ZkBsC8T/GYWonNAWJV4aRR9AL2DA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.15.4.tgz", - "integrity": "sha512-P8o7JP2Mzi0SdC6eWr1zF+AEYvrsZa7GSY1lTayjF5XJhVH0kjLYUZPvTMflP7tBgZoe9gIhTa60QwFpqh/E0Q==", - "dev": true, - "dependencies": { - "@babel/helper-explode-assignable-expression": "^7.15.4", - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.15.4.tgz", - "integrity": "sha512-rMWPCirulnPSe4d+gwdWXLfAXTTBj8M3guAf5xFQJ0nvFY7tfNAFnWdqaHegHlgDZOCT4qvhF3BYlSJag8yhqQ==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.15.0", - "@babel/helper-validator-option": "^7.14.5", - "browserslist": "^4.16.6", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.15.4.tgz", - "integrity": "sha512-7ZmzFi+DwJx6A7mHRwbuucEYpyBwmh2Ca0RvI6z2+WLZYCqV0JOaLb+u0zbtmDicebgKBZgqbYfLaKNqSgv5Pw==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.15.4", - "@babel/helper-function-name": "^7.15.4", - "@babel/helper-member-expression-to-functions": "^7.15.4", - "@babel/helper-optimise-call-expression": "^7.15.4", - "@babel/helper-replace-supers": "^7.15.4", - "@babel/helper-split-export-declaration": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.14.5.tgz", - "integrity": "sha512-TLawwqpOErY2HhWbGJ2nZT5wSkR192QpN+nBg1THfBfftrlvOh+WbhrxXCH4q4xJ9Gl16BGPR/48JA+Ryiho/A==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.14.5", - "regexpu-core": "^4.7.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.2.4.tgz", - "integrity": "sha512-OrpPZ97s+aPi6h2n1OXzdhVis1SGSsMU2aMHgLcOKfsp4/v1NWpx3CWT3lBj5eeBq9cDkPkh+YCfdF7O12uNDQ==", - "dev": true, - "dependencies": { - "@babel/helper-compilation-targets": "^7.13.0", - "@babel/helper-module-imports": "^7.12.13", - "@babel/helper-plugin-utils": "^7.13.0", - "@babel/traverse": "^7.13.0", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2", - "semver": "^6.1.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0-0" - } - }, - "node_modules/@babel/helper-explode-assignable-expression": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.15.4.tgz", - "integrity": "sha512-J14f/vq8+hdC2KoWLIQSsGrC9EFBKE4NFts8pfMpymfApds+fPqR30AOUWc4tyr56h9l/GA1Sxv2q3dLZWbQ/g==", - "dev": true, - "dependencies": { - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.15.4.tgz", - "integrity": "sha512-Z91cOMM4DseLIGOnog+Z8OI6YseR9bua+HpvLAQ2XayUGU+neTtX+97caALaLdyu53I/fjhbeCnWnRH1O3jFOw==", - "dev": true, - "dependencies": { - "@babel/helper-get-function-arity": "^7.15.4", - "@babel/template": "^7.15.4", - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-get-function-arity": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.15.4.tgz", - "integrity": "sha512-1/AlxSF92CmGZzHnC515hm4SirTxtpDnLEJ0UyEMgTMZN+6bxXKg04dKhiRx5Enel+SUA1G1t5Ed/yQia0efrA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.15.4.tgz", - "integrity": "sha512-VTy085egb3jUGVK9ycIxQiPbquesq0HUQ+tPO0uv5mPEBZipk+5FkRKiWq5apuyTE9FUrjENB0rCf8y+n+UuhA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.15.4.tgz", - "integrity": "sha512-cokOMkxC/BTyNP1AlY25HuBWM32iCEsLPI4BHDpJCHHm1FU2E7dKWWIXJgQgSFiu4lp8q3bL1BIKwqkSUviqtA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.0.tgz", - "integrity": "sha512-kkH7sWzKPq0xt3H1n+ghb4xEMP8k0U7XV3kkB+ZGy69kDk2ySFW1qPi06sjKzFY3t1j6XbJSqr4mF9L7CYVyhg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.16.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.15.8.tgz", - "integrity": "sha512-DfAfA6PfpG8t4S6npwzLvTUpp0sS7JrcuaMiy1Y5645laRJIp/LiLGIBbQKaXSInK8tiGNI7FL7L8UvB8gdUZg==", - "dev": true, - "dependencies": { - "@babel/helper-module-imports": "^7.15.4", - "@babel/helper-replace-supers": "^7.15.4", - "@babel/helper-simple-access": "^7.15.4", - "@babel/helper-split-export-declaration": "^7.15.4", - "@babel/helper-validator-identifier": "^7.15.7", - "@babel/template": "^7.15.4", - "@babel/traverse": "^7.15.4", - "@babel/types": "^7.15.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.15.4.tgz", - "integrity": "sha512-E/z9rfbAOt1vDW1DR7k4SzhzotVV5+qMciWV6LaG1g4jeFrkDlJedjtV4h0i4Q/ITnUu+Pk08M7fczsB9GXBDw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz", - "integrity": "sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.15.4.tgz", - "integrity": "sha512-v53MxgvMK/HCwckJ1bZrq6dNKlmwlyRNYM6ypaRTdXWGOE2c1/SCa6dL/HimhPulGhZKw9W0QhREM583F/t0vQ==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.15.4", - "@babel/helper-wrap-function": "^7.15.4", - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.15.4.tgz", - "integrity": "sha512-/ztT6khaXF37MS47fufrKvIsiQkx1LBRvSJNzRqmbyeZnTwU9qBxXYLaaT/6KaxfKhjs2Wy8kG8ZdsFUuWBjzw==", - "dev": true, - "dependencies": { - "@babel/helper-member-expression-to-functions": "^7.15.4", - "@babel/helper-optimise-call-expression": "^7.15.4", - "@babel/traverse": "^7.15.4", - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.15.4.tgz", - "integrity": "sha512-UzazrDoIVOZZcTeHHEPYrr1MvTR/K+wgLg6MY6e1CJyaRhbibftF6fR2KU2sFRtI/nERUZR9fBd6aKgBlIBaPg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.15.4.tgz", - "integrity": "sha512-BMRLsdh+D1/aap19TycS4eD1qELGrCBJwzaY9IE8LrpJtJb+H7rQkPIdsfgnMtLBA6DJls7X9z93Z4U8h7xw0A==", - "dev": true, - "dependencies": { - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.15.4.tgz", - "integrity": "sha512-HsFqhLDZ08DxCpBdEVtKmywj6PQbwnF6HHybur0MAnkAKnlS6uHkwnmRIkElB2Owpfb4xL4NwDmDLFubueDXsw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.15.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", - "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz", - "integrity": "sha512-OX8D5eeX4XwcroVW45NMvoYaIuFI+GQpA2a8Gi+X/U/cDUIRsV37qQfF905F0htTRCREQIB4KqPeaveRJUl3Ow==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.15.4.tgz", - "integrity": "sha512-Y2o+H/hRV5W8QhIfTpRIBwl57y8PrZt6JM3V8FOo5qarjshHItyH5lXlpMfBfmBefOqSCpKZs/6Dxqp0E/U+uw==", - "dev": true, - "dependencies": { - "@babel/helper-function-name": "^7.15.4", - "@babel/template": "^7.15.4", - "@babel/traverse": "^7.15.4", - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.15.4.tgz", - "integrity": "sha512-V45u6dqEJ3w2rlryYYXf6i9rQ5YMNu4FLS6ngs8ikblhu2VdR1AqAd6aJjBzmf2Qzh6KOLqKHxEN9+TFbAkAVQ==", - "dev": true, - "dependencies": { - "@babel/template": "^7.15.4", - "@babel/traverse": "^7.15.4", - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", - "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.14.5", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.8.tgz", - "integrity": "sha512-BRYa3wcQnjS/nqI8Ac94pYYpJfojHVvVXJ97+IDCImX4Jc8W8Xv1+47enbruk+q1etOpsQNwnfFcNGw+gtPGxA==", - "dev": true, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.15.4.tgz", - "integrity": "sha512-eBnpsl9tlhPhpI10kU06JHnrYXwg3+V6CaP2idsCXNef0aeslpqyITXQ74Vfk5uHgY7IG7XP0yIH8b42KSzHog==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.15.4", - "@babel/plugin-proposal-optional-chaining": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.13.0" - } - }, - "node_modules/@babel/plugin-proposal-async-generator-functions": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.15.8.tgz", - "integrity": "sha512-2Z5F2R2ibINTc63mY7FLqGfEbmofrHU9FitJW1Q7aPaKFhiPvSq6QEt/BoWN5oME3GVyjcRuNNSRbb9LC0CSWA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-remap-async-to-generator": "^7.15.4", - "@babel/plugin-syntax-async-generators": "^7.8.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-class-properties": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.14.5.tgz", - "integrity": "sha512-q/PLpv5Ko4dVc1LYMpCY7RVAAO4uk55qPwrIuJ5QJ8c6cVuAmhu7I/49JOppXL6gXf7ZHzpRVEUZdYoPLM04Gg==", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-class-static-block": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.15.4.tgz", - "integrity": "sha512-M682XWrrLNk3chXCjoPUQWOyYsB93B9z3mRyjtqqYJWDf2mfCdIYgDrA11cgNVhAQieaq6F2fn2f3wI0U4aTjA==", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.15.4", - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" - } - }, - "node_modules/@babel/plugin-proposal-dynamic-import": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.14.5.tgz", - "integrity": "sha512-ExjiNYc3HDN5PXJx+bwC50GIx/KKanX2HiggnIUAYedbARdImiCU4RhhHfdf0Kd7JNXGpsBBBCOm+bBVy3Gb0g==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-export-namespace-from": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.14.5.tgz", - "integrity": "sha512-g5POA32bXPMmSBu5Dx/iZGLGnKmKPc5AiY7qfZgurzrCYgIztDlHFbznSNCoQuv57YQLnQfaDi7dxCtLDIdXdA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-json-strings": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.14.5.tgz", - "integrity": "sha512-NSq2fczJYKVRIsUJyNxrVUMhB27zb7N7pOFGQOhBKJrChbGcgEAqyZrmZswkPk18VMurEeJAaICbfm57vUeTbQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-json-strings": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-logical-assignment-operators": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.14.5.tgz", - "integrity": "sha512-YGn2AvZAo9TwyhlLvCCWxD90Xq8xJ4aSgaX3G5D/8DW94L8aaT+dS5cSP+Z06+rCJERGSr9GxMBZ601xoc2taw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.14.5.tgz", - "integrity": "sha512-gun/SOnMqjSb98Nkaq2rTKMwervfdAoz6NphdY0vTfuzMfryj+tDGb2n6UkDKwez+Y8PZDhE3D143v6Gepp4Hg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-numeric-separator": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.14.5.tgz", - "integrity": "sha512-yiclALKe0vyZRZE0pS6RXgjUOt87GWv6FYa5zqj15PvhOGFO69R5DusPlgK/1K5dVnCtegTiWu9UaBSrLLJJBg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-object-rest-spread": { - "version": "7.15.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.15.6.tgz", - "integrity": "sha512-qtOHo7A1Vt+O23qEAX+GdBpqaIuD3i9VRrWgCJeq7WO6H2d14EK3q11urj5Te2MAeK97nMiIdRpwd/ST4JFbNg==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.15.0", - "@babel/helper-compilation-targets": "^7.15.4", - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-optional-catch-binding": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.14.5.tgz", - "integrity": "sha512-3Oyiixm0ur7bzO5ybNcZFlmVsygSIQgdOa7cTfOYCMY+wEPAYhZAJxi3mixKFCTCKUhQXuCTtQ1MzrpL3WT8ZQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-optional-chaining": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.14.5.tgz", - "integrity": "sha512-ycz+VOzo2UbWNI1rQXxIuMOzrDdHGrI23fRiz/Si2R4kv2XZQ1BK8ccdHwehMKBlcH/joGW/tzrUmo67gbJHlQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.14.5", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-private-methods": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.14.5.tgz", - "integrity": "sha512-838DkdUA1u+QTCplatfq4B7+1lnDa/+QMI89x5WZHBcnNv+47N8QEj2k9I2MUU9xIv8XJ4XvPCviM/Dj7Uwt9g==", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.15.4.tgz", - "integrity": "sha512-X0UTixkLf0PCCffxgu5/1RQyGGbgZuKoI+vXP4iSbJSYwPb7hu06omsFGBvQ9lJEvwgrxHdS8B5nbfcd8GyUNA==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.15.4", - "@babel/helper-create-class-features-plugin": "^7.15.4", - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-unicode-property-regex": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.14.5.tgz", - "integrity": "sha512-6axIeOU5LnY471KenAB9vI8I5j7NQ2d652hIYwVyRfgaZT5UpiqFKCuVXCDMSrU+3VFafnu2c5m3lrWIlr6A5Q==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.14.5.tgz", - "integrity": "sha512-KOnO0l4+tD5IfOdi4x8C1XmEIRWUjNRV8wc6K2vz/3e8yAOoZZvsRXRRIF/yo/MAOFb4QjtAw9xSxMXbSMRy8A==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.14.5.tgz", - "integrity": "sha512-szkbzQ0mNk0rpu76fzDdqSyPu0MuvpXgC+6rz5rpMb5OIRxdmHfQxrktL8CYolL2d8luMCZTR0DpIMIdL27IjA==", - "dev": true, - "dependencies": { - "@babel/helper-module-imports": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-remap-async-to-generator": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.14.5.tgz", - "integrity": "sha512-dtqWqdWZ5NqBX3KzsVCWfQI3A53Ft5pWFCT2eCVUftWZgjc5DpDponbIF1+c+7cSGk2wN0YK7HGL/ezfRbpKBQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.15.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.15.3.tgz", - "integrity": "sha512-nBAzfZwZb4DkaGtOes1Up1nOAp9TDRRFw4XBzBBSG9QK7KVFmYzgj9o9sbPv7TX5ofL4Auq4wZnxCoPnI/lz2Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.15.4.tgz", - "integrity": "sha512-Yjvhex8GzBmmPQUvpXRPWQ9WnxXgAFuZSrqOK/eJlOGIXwvv8H3UEdUigl1gb/bnjTrln+e8bkZUYCBt/xYlBg==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.15.4", - "@babel/helper-function-name": "^7.15.4", - "@babel/helper-optimise-call-expression": "^7.15.4", - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-replace-supers": "^7.15.4", - "@babel/helper-split-export-declaration": "^7.15.4", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.14.5.tgz", - "integrity": "sha512-pWM+E4283UxaVzLb8UBXv4EIxMovU4zxT1OPnpHJcmnvyY9QbPPTKZfEj31EUvG3/EQRbYAGaYEUZ4yWOBC2xg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.14.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.14.7.tgz", - "integrity": "sha512-0mDE99nK+kVh3xlc5vKwB6wnP9ecuSj+zQCa/n0voENtP/zymdT4HH6QEb65wjjcbqr1Jb/7z9Qp7TF5FtwYGw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.14.5.tgz", - "integrity": "sha512-loGlnBdj02MDsFaHhAIJzh7euK89lBrGIdM9EAtHFo6xKygCUGuuWe07o1oZVk287amtW1n0808sQM99aZt3gw==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.14.5.tgz", - "integrity": "sha512-iJjbI53huKbPDAsJ8EmVmvCKeeq21bAze4fu9GBQtSLqfvzj2oRuHVx4ZkDwEhg1htQ+5OBZh/Ab0XDf5iBZ7A==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.14.5.tgz", - "integrity": "sha512-jFazJhMBc9D27o9jDnIE5ZErI0R0m7PbKXVq77FFvqFbzvTMuv8jaAwLZ5PviOLSFttqKIW0/wxNSDbjLk0tYA==", - "dev": true, - "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.15.4.tgz", - "integrity": "sha512-DRTY9fA751AFBDh2oxydvVm4SYevs5ILTWLs6xKXps4Re/KG5nfUkr+TdHCrRWB8C69TlzVgA9b3RmGWmgN9LA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.14.5.tgz", - "integrity": "sha512-vbO6kv0fIzZ1GpmGQuvbwwm+O4Cbm2NrPzwlup9+/3fdkuzo1YqOZcXw26+YUJB84Ja7j9yURWposEHLYwxUfQ==", - "dev": true, - "dependencies": { - "@babel/helper-function-name": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.14.5.tgz", - "integrity": "sha512-ql33+epql2F49bi8aHXxvLURHkxJbSmMKl9J5yHqg4PLtdE6Uc48CH1GS6TQvZ86eoB/ApZXwm7jlA+B3kra7A==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.14.5.tgz", - "integrity": "sha512-WkNXxH1VXVTKarWFqmso83xl+2V3Eo28YY5utIkbsmXoItO8Q3aZxN4BTS2k0hz9dGUloHK26mJMyQEYfkn/+Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.14.5.tgz", - "integrity": "sha512-3lpOU8Vxmp3roC4vzFpSdEpGUWSMsHFreTWOMMLzel2gNGfHE5UWIh/LN6ghHs2xurUp4jRFYMUIZhuFbody1g==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5", - "babel-plugin-dynamic-import-node": "^2.3.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.15.4.tgz", - "integrity": "sha512-qg4DPhwG8hKp4BbVDvX1s8cohM8a6Bvptu4l6Iingq5rW+yRUAhe/YRup/YcW2zCOlrysEWVhftIcKzrEZv3sA==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.15.4", - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-simple-access": "^7.15.4", - "babel-plugin-dynamic-import-node": "^2.3.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.15.4.tgz", - "integrity": "sha512-fJUnlQrl/mezMneR72CKCgtOoahqGJNVKpompKwzv3BrEXdlPspTcyxrZ1XmDTIr9PpULrgEQo3qNKp6dW7ssw==", - "dev": true, - "dependencies": { - "@babel/helper-hoist-variables": "^7.15.4", - "@babel/helper-module-transforms": "^7.15.4", - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-validator-identifier": "^7.14.9", - "babel-plugin-dynamic-import-node": "^2.3.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.14.5.tgz", - "integrity": "sha512-RfPGoagSngC06LsGUYyM9QWSXZ8MysEjDJTAea1lqRjNECE3y0qIJF/qbvJxc4oA4s99HumIMdXOrd+TdKaAAA==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.14.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.14.9.tgz", - "integrity": "sha512-l666wCVYO75mlAtGFfyFwnWmIXQm3kSH0C3IRnJqWcZbWkoihyAdDhFm2ZWaxWTqvBvhVFfJjMRQ0ez4oN1yYA==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-new-target": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.14.5.tgz", - "integrity": "sha512-Nx054zovz6IIRWEB49RDRuXGI4Gy0GMgqG0cII9L3MxqgXz/+rgII+RU58qpo4g7tNEx1jG7rRVH4ihZoP4esQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.14.5.tgz", - "integrity": "sha512-MKfOBWzK0pZIrav9z/hkRqIk/2bTv9qvxHzPQc12RcVkMOzpIKnFCNYJip00ssKWYkd8Sf5g0Wr7pqJ+cmtuFg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-replace-supers": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.15.4.tgz", - "integrity": "sha512-9WB/GUTO6lvJU3XQsSr6J/WKvBC2hcs4Pew8YxZagi6GkTdniyqp8On5kqdK8MN0LMeu0mGbhPN+O049NV/9FQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.14.5.tgz", - "integrity": "sha512-r1uilDthkgXW8Z1vJz2dKYLV1tuw2xsbrp3MrZmD99Wh9vsfKoob+JTgri5VUb/JqyKRXotlOtwgu4stIYCmnw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.14.5.tgz", - "integrity": "sha512-NVIY1W3ITDP5xQl50NgTKlZ0GrotKtLna08/uGY6ErQt6VEQZXla86x/CTddm5gZdcr+5GSsvMeTmWA5Ii6pkg==", - "dev": true, - "dependencies": { - "regenerator-transform": "^0.14.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.14.5.tgz", - "integrity": "sha512-cv4F2rv1nD4qdexOGsRQXJrOcyb5CrgjUH9PKrrtyhSDBNWGxd0UIitjyJiWagS+EbUGjG++22mGH1Pub8D6Vg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-runtime": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.16.0.tgz", - "integrity": "sha512-zlPf1/XFn5+vWdve3AAhf+Sxl+MVa5VlwTwWgnLx23u4GlatSRQJ3Eoo9vllf0a9il3woQsT4SK+5Z7c06h8ag==", - "dev": true, - "dependencies": { - "@babel/helper-module-imports": "^7.16.0", - "@babel/helper-plugin-utils": "^7.14.5", - "babel-plugin-polyfill-corejs2": "^0.2.3", - "babel-plugin-polyfill-corejs3": "^0.3.0", - "babel-plugin-polyfill-regenerator": "^0.2.3", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-runtime/node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.3.0.tgz", - "integrity": "sha512-JLwi9vloVdXLjzACL80j24bG6/T1gYxwowG44dg6HN/7aTPdyPbJJidf6ajoA3RPHHtW0j9KMrSOLpIZpAnPpg==", - "dev": true, - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.2.4", - "core-js-compat": "^3.18.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.14.5.tgz", - "integrity": "sha512-xLucks6T1VmGsTB+GWK5Pl9Jl5+nRXD1uoFdA5TSO6xtiNjtXTjKkmPdFXVLGlK5A2/or/wQMKfmQ2Y0XJfn5g==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.15.8.tgz", - "integrity": "sha512-/daZ8s2tNaRekl9YJa9X4bzjpeRZLt122cpgFnQPLGUe61PH8zMEBmYqKkW5xF5JUEh5buEGXJoQpqBmIbpmEQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.14.5.tgz", - "integrity": "sha512-Z7F7GyvEMzIIbwnziAZmnSNpdijdr4dWt+FJNBnBLz5mwDFkqIXU9wmBcWWad3QeJF5hMTkRe4dAq2sUZiG+8A==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.14.5.tgz", - "integrity": "sha512-22btZeURqiepOfuy/VkFr+zStqlujWaarpMErvay7goJS6BWwdd6BY9zQyDLDa4x2S3VugxFb162IZ4m/S/+Gg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.14.5.tgz", - "integrity": "sha512-lXzLD30ffCWseTbMQzrvDWqljvZlHkXU+CnseMhkMNqU1sASnCsz3tSzAaH3vCUXb9PHeUb90ZT1BdFTm1xxJw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.14.5.tgz", - "integrity": "sha512-crTo4jATEOjxj7bt9lbYXcBAM3LZaUrbP2uUdxb6WIorLmjNKSpHfIybgY4B8SRpbf8tEVIWH3Vtm7ayCrKocA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.14.5.tgz", - "integrity": "sha512-UygduJpC5kHeCiRw/xDVzC+wj8VaYSoKl5JNVmbP7MadpNinAm3SvZCxZ42H37KZBKztz46YC73i9yV34d0Tzw==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-env": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.15.8.tgz", - "integrity": "sha512-rCC0wH8husJgY4FPbHsiYyiLxSY8oMDJH7Rl6RQMknbN9oDDHhM9RDFvnGM2MgkbUJzSQB4gtuwygY5mCqGSsA==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.15.0", - "@babel/helper-compilation-targets": "^7.15.4", - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-validator-option": "^7.14.5", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.15.4", - "@babel/plugin-proposal-async-generator-functions": "^7.15.8", - "@babel/plugin-proposal-class-properties": "^7.14.5", - "@babel/plugin-proposal-class-static-block": "^7.15.4", - "@babel/plugin-proposal-dynamic-import": "^7.14.5", - "@babel/plugin-proposal-export-namespace-from": "^7.14.5", - "@babel/plugin-proposal-json-strings": "^7.14.5", - "@babel/plugin-proposal-logical-assignment-operators": "^7.14.5", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.5", - "@babel/plugin-proposal-numeric-separator": "^7.14.5", - "@babel/plugin-proposal-object-rest-spread": "^7.15.6", - "@babel/plugin-proposal-optional-catch-binding": "^7.14.5", - "@babel/plugin-proposal-optional-chaining": "^7.14.5", - "@babel/plugin-proposal-private-methods": "^7.14.5", - "@babel/plugin-proposal-private-property-in-object": "^7.15.4", - "@babel/plugin-proposal-unicode-property-regex": "^7.14.5", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-transform-arrow-functions": "^7.14.5", - "@babel/plugin-transform-async-to-generator": "^7.14.5", - "@babel/plugin-transform-block-scoped-functions": "^7.14.5", - "@babel/plugin-transform-block-scoping": "^7.15.3", - "@babel/plugin-transform-classes": "^7.15.4", - "@babel/plugin-transform-computed-properties": "^7.14.5", - "@babel/plugin-transform-destructuring": "^7.14.7", - "@babel/plugin-transform-dotall-regex": "^7.14.5", - "@babel/plugin-transform-duplicate-keys": "^7.14.5", - "@babel/plugin-transform-exponentiation-operator": "^7.14.5", - "@babel/plugin-transform-for-of": "^7.15.4", - "@babel/plugin-transform-function-name": "^7.14.5", - "@babel/plugin-transform-literals": "^7.14.5", - "@babel/plugin-transform-member-expression-literals": "^7.14.5", - "@babel/plugin-transform-modules-amd": "^7.14.5", - "@babel/plugin-transform-modules-commonjs": "^7.15.4", - "@babel/plugin-transform-modules-systemjs": "^7.15.4", - "@babel/plugin-transform-modules-umd": "^7.14.5", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.14.9", - "@babel/plugin-transform-new-target": "^7.14.5", - "@babel/plugin-transform-object-super": "^7.14.5", - "@babel/plugin-transform-parameters": "^7.15.4", - "@babel/plugin-transform-property-literals": "^7.14.5", - "@babel/plugin-transform-regenerator": "^7.14.5", - "@babel/plugin-transform-reserved-words": "^7.14.5", - "@babel/plugin-transform-shorthand-properties": "^7.14.5", - "@babel/plugin-transform-spread": "^7.15.8", - "@babel/plugin-transform-sticky-regex": "^7.14.5", - "@babel/plugin-transform-template-literals": "^7.14.5", - "@babel/plugin-transform-typeof-symbol": "^7.14.5", - "@babel/plugin-transform-unicode-escapes": "^7.14.5", - "@babel/plugin-transform-unicode-regex": "^7.14.5", - "@babel/preset-modules": "^0.1.4", - "@babel/types": "^7.15.6", - "babel-plugin-polyfill-corejs2": "^0.2.2", - "babel-plugin-polyfill-corejs3": "^0.2.5", - "babel-plugin-polyfill-regenerator": "^0.2.2", - "core-js-compat": "^3.16.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-modules": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.4.tgz", - "integrity": "sha512-J36NhwnfdzpmH41M1DrnkkgAqhZaqr/NBdPfQ677mLzlaXo+oDiv1deyCDtgAhz8p328otdob0Du7+xgHGZbKg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", - "@babel/plugin-transform-dotall-regex": "^7.4.4", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/runtime": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.15.4.tgz", - "integrity": "sha512-99catp6bHCaxr4sJ/DbTGgHS4+Rs2RVd2g7iOap6SLGPDknRK9ztKNsE/Fg6QhSeh1FGE5f6gHGQmvvn3I3xhw==", - "dev": true, - "dependencies": { - "regenerator-runtime": "^0.13.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.15.4.tgz", - "integrity": "sha512-UgBAfEa1oGuYgDIPM2G+aHa4Nlo9Lh6mGD2bDBGMTbYnc38vulXPuC1MGjYILIEmlwl6Rd+BPR9ee3gm20CBtg==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.14.5", - "@babel/parser": "^7.15.4", - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.15.4.tgz", - "integrity": "sha512-W6lQD8l4rUbQR/vYgSuCAE75ADyyQvOpFVsvPPdkhf6lATXAsQIG9YdtOcu8BB1dZ0LKu+Zo3c1wEcbKeuhdlA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.14.5", - "@babel/generator": "^7.15.4", - "@babel/helper-function-name": "^7.15.4", - "@babel/helper-hoist-variables": "^7.15.4", - "@babel/helper-split-export-declaration": "^7.15.4", - "@babel/parser": "^7.15.4", - "@babel/types": "^7.15.4", - "debug": "^4.1.0", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.0.tgz", - "integrity": "sha512-PJgg/k3SdLsGb3hhisFvtLOw5ts113klrpLuIPtCJIU+BB24fqq6lf8RWqKJEjzqXR9AEH1rIb5XTqwBHB+kQg==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.15.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@csstools/convert-colors": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@csstools/convert-colors/-/convert-colors-1.4.0.tgz", - "integrity": "sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw==", - "dev": true, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/@discoveryjs/json-ext": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.5.tgz", - "integrity": "sha512-6nFkfkmSeV/rqSaS4oWHgmpnYw194f6hmWF5is6b0J1naJZoiD0NTc9AiUwPHvWsowkjuHErCZT1wa0jg+BLIA==", - "dev": true, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", - "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.1.1", - "espree": "^7.3.0", - "globals": "^13.9.0", - "ignore": "^4.0.6", - "import-fresh": "^3.2.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.11.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz", - "integrity": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==", - "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/eslintrc/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@tensorflow-models/handpose": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/@tensorflow-models/handpose/-/handpose-0.0.7.tgz", - "integrity": "sha512-1JRxE2cWlxgbFogZDhqnHn1RUVsyfpAJXP6wEcO+VZ+PIllHq9eut7Ecqgs2QlsI8Tjp8V0e8VYvePV+Toln0A==", - "dependencies": { - "rimraf": "^3.0.2" - }, - "peerDependencies": { - "@tensorflow/tfjs-backend-webgl": "^3.0.0", - "@tensorflow/tfjs-converter": "^3.0.0", - "@tensorflow/tfjs-core": "^3.0.0" - } - }, - "node_modules/@tensorflow-models/handpose/node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@tensorflow/tfjs-backend-cpu": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-backend-cpu/-/tfjs-backend-cpu-3.11.0.tgz", - "integrity": "sha512-ShLkrZ4/rmhZwzGKenMFDfQnaEbyZgWA5F8JRa52Iob/vptlZeuOzjq87CZKmZMUmDswR9A2kjzovT/H1bJdWQ==", - "dependencies": { - "@types/seedrandom": "2.4.27", - "seedrandom": "2.4.3" - }, - "engines": { - "yarn": ">= 1.3.2" - }, - "peerDependencies": { - "@tensorflow/tfjs-core": "3.11.0" - } - }, - "node_modules/@tensorflow/tfjs-backend-webgl": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-backend-webgl/-/tfjs-backend-webgl-3.11.0.tgz", - "integrity": "sha512-rNnc/dZ7LIl9O/Pn9W24I1h8kgpJ+XvG8NrdNSfIoWPCW4fvPSlU7B3yMeZXvRneny+z+T3xRs96nWyU2mZBJw==", - "dependencies": { - "@tensorflow/tfjs-backend-cpu": "3.11.0", - "@types/offscreencanvas": "~2019.3.0", - "@types/seedrandom": "2.4.27", - "@types/webgl-ext": "0.0.30", - "@types/webgl2": "0.0.6", - "seedrandom": "2.4.3" - }, - "engines": { - "yarn": ">= 1.3.2" - }, - "peerDependencies": { - "@tensorflow/tfjs-core": "3.11.0" - } - }, - "node_modules/@tensorflow/tfjs-converter": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-converter/-/tfjs-converter-3.11.0.tgz", - "integrity": "sha512-rTRIKvBoqL0qdPYpm8UXauZycOiaBHZB2E2v3OoXoHnjvle/Xn/09uZJdrixgGhR+Kahs3Vz27BEEFz6RI5j2w==", - "peerDependencies": { - "@tensorflow/tfjs-core": "3.11.0" - } - }, - "node_modules/@tensorflow/tfjs-core": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-core/-/tfjs-core-3.11.0.tgz", - "integrity": "sha512-JOp+1+LCd0Xg3hu7fu6iQPWZnN8Hc6ssfP7B+625XH5GYY1/OhVASa7Ahe2mJr9gZovY2lw8FUejLh1jMmBb1Q==", - "dependencies": { - "@types/long": "^4.0.1", - "@types/offscreencanvas": "~2019.3.0", - "@types/seedrandom": "2.4.27", - "@types/webgl-ext": "0.0.30", - "long": "4.0.0", - "node-fetch": "~2.6.1", - "seedrandom": "2.4.3" - }, - "engines": { - "yarn": ">= 1.3.2" - } - }, - "node_modules/@trysound/sax": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", - "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", - "dev": true, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/@types/eslint": { - "version": "7.28.1", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.28.1.tgz", - "integrity": "sha512-XhZKznR3i/W5dXqUhgU9fFdJekufbeBd5DALmkuXoeFcjbQcPk+2cL+WLHf6Q81HWAnM2vrslIHpGVyCAviRwg==", - "dev": true, - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "node_modules/@types/eslint-scope": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.1.tgz", - "integrity": "sha512-SCFeogqiptms4Fg29WpOTk5nHIzfpKCemSN63ksBQYKTcXoJEmJagV+DhVmbapZzY4/5YaOV1nZwrsU79fFm1g==", - "dev": true, - "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, - "node_modules/@types/estree": { - "version": "0.0.50", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.50.tgz", - "integrity": "sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw==", - "dev": true - }, - "node_modules/@types/glob": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.4.tgz", - "integrity": "sha512-w+LsMxKyYQm347Otw+IfBXOv9UWVjpHpCDdbBMt8Kz/xbvCYNjP+0qPh91Km3iKfSRLBB0P7fAMf0KHrPu+MyA==", - "dev": true, - "dependencies": { - "@types/minimatch": "*", - "@types/node": "*" - } - }, - "node_modules/@types/html-minifier-terser": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-5.1.2.tgz", - "integrity": "sha512-h4lTMgMJctJybDp8CQrxTUiiYmedihHWkjnF/8Pxseu2S6Nlfcy8kwboQ8yejh456rP2yWoEVm1sS/FVsfM48w==", - "dev": true - }, - "node_modules/@types/http-proxy": { - "version": "1.17.7", - "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.7.tgz", - "integrity": "sha512-9hdj6iXH64tHSLTY+Vt2eYOGzSogC+JQ2H7bdPWkuh7KXP5qLllWx++t+K9Wk556c3dkDdPws/SpMRi0sdCT1w==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/json-schema": { - "version": "7.0.9", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", - "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==", - "dev": true - }, - "node_modules/@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=", - "dev": true - }, - "node_modules/@types/long": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.1.tgz", - "integrity": "sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==" - }, - "node_modules/@types/minimatch": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", - "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==", - "dev": true - }, - "node_modules/@types/minimist": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", - "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", - "dev": true - }, - "node_modules/@types/node": { - "version": "16.11.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.0.tgz", - "integrity": "sha512-8MLkBIYQMuhRBQzGN9875bYsOhPnf/0rgXGo66S2FemHkhbn9qtsz9ywV1iCG+vbjigE4WUNVvw37Dx+L0qsPg==", - "dev": true - }, - "node_modules/@types/normalize-package-data": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", - "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", - "dev": true - }, - "node_modules/@types/offscreencanvas": { - "version": "2019.3.0", - "resolved": "https://registry.npmjs.org/@types/offscreencanvas/-/offscreencanvas-2019.3.0.tgz", - "integrity": "sha512-esIJx9bQg+QYF0ra8GnvfianIY8qWB0GBx54PK5Eps6m+xTj86KLavHv6qDhzKcu5UUOgNfJ2pWaIIV7TRUd9Q==" - }, - "node_modules/@types/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", - "dev": true - }, - "node_modules/@types/retry": { - "version": "0.12.1", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.1.tgz", - "integrity": "sha512-xoDlM2S4ortawSWORYqsdU+2rxdh4LRW9ytc3zmT37RIKQh6IHyKwwtKhKis9ah8ol07DCkZxPt8BBvPjC6v4g==", - "dev": true - }, - "node_modules/@types/seedrandom": { - "version": "2.4.27", - "resolved": "https://registry.npmjs.org/@types/seedrandom/-/seedrandom-2.4.27.tgz", - "integrity": "sha1-nbVjk33YaRX2kJK8QyWdL0hXjkE=" - }, - "node_modules/@types/webgl-ext": { - "version": "0.0.30", - "resolved": "https://registry.npmjs.org/@types/webgl-ext/-/webgl-ext-0.0.30.tgz", - "integrity": "sha512-LKVgNmBxN0BbljJrVUwkxwRYqzsAEPcZOe6S2T6ZaBDIrFp0qu4FNlpc5sM1tGbXUYFgdVQIoeLk1Y1UoblyEg==" - }, - "node_modules/@types/webgl2": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/@types/webgl2/-/webgl2-0.0.6.tgz", - "integrity": "sha512-50GQhDVTq/herLMiqSQkdtRu+d5q/cWHn4VvKJtrj4DJAjo1MNkWYa2MA41BaBO1q1HgsUjuQvEOk0QHvlnAaQ==" - }, - "node_modules/@webassemblyjs/ast": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", - "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", - "dev": true, - "dependencies": { - "@webassemblyjs/helper-numbers": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1" - } - }, - "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", - "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", - "dev": true - }, - "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", - "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", - "dev": true - }, - "node_modules/@webassemblyjs/helper-buffer": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", - "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", - "dev": true - }, - "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", - "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", - "dev": true, - "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.11.1", - "@webassemblyjs/helper-api-error": "1.11.1", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", - "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", - "dev": true - }, - "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", - "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1" - } - }, - "node_modules/@webassemblyjs/ieee754": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", - "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", - "dev": true, - "dependencies": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "node_modules/@webassemblyjs/leb128": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", - "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", - "dev": true, - "dependencies": { - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/utf8": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", - "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", - "dev": true - }, - "node_modules/@webassemblyjs/wasm-edit": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", - "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/helper-wasm-section": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1", - "@webassemblyjs/wasm-opt": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1", - "@webassemblyjs/wast-printer": "1.11.1" - } - }, - "node_modules/@webassemblyjs/wasm-gen": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", - "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/ieee754": "1.11.1", - "@webassemblyjs/leb128": "1.11.1", - "@webassemblyjs/utf8": "1.11.1" - } - }, - "node_modules/@webassemblyjs/wasm-opt": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", - "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1" - } - }, - "node_modules/@webassemblyjs/wasm-parser": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", - "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-api-error": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/ieee754": "1.11.1", - "@webassemblyjs/leb128": "1.11.1", - "@webassemblyjs/utf8": "1.11.1" - } - }, - "node_modules/@webassemblyjs/wast-printer": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", - "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", - "dev": true, - "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webpack-cli/configtest": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.1.0.tgz", - "integrity": "sha512-ttOkEkoalEHa7RaFYpM0ErK1xc4twg3Am9hfHhL7MVqlHebnkYd2wuI/ZqTDj0cVzZho6PdinY0phFZV3O0Mzg==", - "dev": true, - "peerDependencies": { - "webpack": "4.x.x || 5.x.x", - "webpack-cli": "4.x.x" - } - }, - "node_modules/@webpack-cli/info": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.4.0.tgz", - "integrity": "sha512-F6b+Man0rwE4n0409FyAJHStYA5OIZERxmnUfLVwv0mc0V1wLad3V7jqRlMkgKBeAq07jUvglacNaa6g9lOpuw==", - "dev": true, - "dependencies": { - "envinfo": "^7.7.3" - }, - "peerDependencies": { - "webpack-cli": "4.x.x" - } - }, - "node_modules/@webpack-cli/serve": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.6.0.tgz", - "integrity": "sha512-ZkVeqEmRpBV2GHvjjUZqEai2PpUbuq8Bqd//vEYsp63J8WyexI8ppCqVS3Zs0QADf6aWuPdU+0XsPI647PVlQA==", - "dev": true, - "peerDependencies": { - "webpack-cli": "4.x.x" - }, - "peerDependenciesMeta": { - "webpack-dev-server": { - "optional": true - } - } - }, - "node_modules/@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", - "dev": true - }, - "node_modules/@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", - "dev": true - }, - "node_modules/abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "dev": true - }, - "node_modules/accepts": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", - "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", - "dev": true, - "dependencies": { - "mime-types": "~2.1.24", - "negotiator": "0.6.2" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "dev": true, - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true, - "peerDependencies": { - "ajv": "^6.9.1" - } - }, - "node_modules/alphanum-sort": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", - "integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=", - "dev": true - }, - "node_modules/amdefine": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", - "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", - "dev": true, - "engines": { - "node": ">=0.4.2" - } - }, - "node_modules/ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/ansi-html-community": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", - "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==", - "dev": true, - "engines": [ - "node >= 0.8.0" - ], - "bin": { - "ansi-html": "bin/ansi-html" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/anymatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/aproba": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "dev": true - }, - "node_modules/are-we-there-yet": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz", - "integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==", - "dev": true, - "dependencies": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/array-find": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-find/-/array-find-1.0.0.tgz", - "integrity": "sha1-bI4obRHtdoMn+OYuzuhzU8o+eLg=", - "dev": true - }, - "node_modules/array-flatten": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", - "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==", - "dev": true - }, - "node_modules/array-includes": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.4.tgz", - "integrity": "sha512-ZTNSQkmWumEbiHO2GF4GmWxYVTiQyJy2XOTa15sdQSrvKn7l+180egQMqlrMOUMCyLMD7pmyQe4mMDUT6Behrw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1", - "get-intrinsic": "^1.1.1", - "is-string": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/array.prototype.flat": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.5.tgz", - "integrity": "sha512-KaYU+S+ndVqyUnignHftkwc58o3uVU1jzczILJ1tN2YaIZpFIKBiP/x/j97E5MVPsaCloPbqWLB/8qCTVvT2qg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/asn1": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", - "dev": true, - "dependencies": { - "safer-buffer": "~2.1.0" - } - }, - "node_modules/assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/async": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", - "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", - "dev": true, - "dependencies": { - "lodash": "^4.17.14" - } - }, - "node_modules/async-foreach": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz", - "integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI=", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true - }, - "node_modules/autoprefixer": { - "version": "9.8.8", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.8.8.tgz", - "integrity": "sha512-eM9d/swFopRt5gdJ7jrpCwgvEMIayITpojhkkSMRsFHYuH5bkSQ4p/9qTEHtmNudUZh22Tehu7I6CxAW0IXTKA==", - "dev": true, - "dependencies": { - "browserslist": "^4.12.0", - "caniuse-lite": "^1.0.30001109", - "normalize-range": "^0.1.2", - "num2fraction": "^1.2.2", - "picocolors": "^0.2.1", - "postcss": "^7.0.32", - "postcss-value-parser": "^4.1.0" - }, - "bin": { - "autoprefixer": "bin/autoprefixer" - }, - "funding": { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/autoprefixer" - } - }, - "node_modules/autoprefixer/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/autoprefixer/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/autoprefixer/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/aws4": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", - "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==", - "dev": true - }, - "node_modules/babel-loader": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.2.2.tgz", - "integrity": "sha512-JvTd0/D889PQBtUXJ2PXaKU/pjZDMtHA9V2ecm+eNRmmBCMR09a+fmpGTNwnJtFmFl5Ei7Vy47LjBb+L0wQ99g==", - "dev": true, - "dependencies": { - "find-cache-dir": "^3.3.1", - "loader-utils": "^1.4.0", - "make-dir": "^3.1.0", - "schema-utils": "^2.6.5" - }, - "engines": { - "node": ">= 8.9" - }, - "peerDependencies": { - "@babel/core": "^7.0.0", - "webpack": ">=2" - } - }, - "node_modules/babel-plugin-dynamic-import-node": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", - "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", - "dev": true, - "dependencies": { - "object.assign": "^4.1.0" - } - }, - "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.2.3.tgz", - "integrity": "sha512-NDZ0auNRzmAfE1oDDPW2JhzIMXUk+FFe2ICejmt5T4ocKgiQx3e0VCRx9NCAidcMtL2RUZaWtXnmjTCkx0tcbA==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.13.11", - "@babel/helper-define-polyfill-provider": "^0.2.4", - "semver": "^6.1.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.2.5.tgz", - "integrity": "sha512-ninF5MQNwAX9Z7c9ED+H2pGt1mXdP4TqzlHKyPIYmJIYz0N+++uwdM7RnJukklhzJ54Q84vA4ZJkgs7lu5vqcw==", - "dev": true, - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.2.2", - "core-js-compat": "^3.16.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.2.3.tgz", - "integrity": "sha512-JVE78oRZPKFIeUqFGrSORNzQnrDwZR16oiWeGM8ZyjBn2XAT5OjP+wXx5ESuo33nUsFUEJYjtklnsKbxW5L+7g==", - "dev": true, - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.2.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "node_modules/batch": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", - "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=", - "dev": true - }, - "node_modules/bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "dev": true, - "dependencies": { - "tweetnacl": "^0.14.3" - } - }, - "node_modules/big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/body-parser": { - "version": "1.19.0", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", - "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", - "dev": true, - "dependencies": { - "bytes": "3.1.0", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "~1.1.2", - "http-errors": "1.7.2", - "iconv-lite": "0.4.24", - "on-finished": "~2.3.0", - "qs": "6.7.0", - "raw-body": "2.4.0", - "type-is": "~1.6.17" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/body-parser/node_modules/bytes": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", - "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/body-parser/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/body-parser/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "node_modules/body-parser/node_modules/qs": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", - "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/bonjour": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz", - "integrity": "sha1-jokKGD2O6aI5OzhExpGkK897yfU=", - "dev": true, - "dependencies": { - "array-flatten": "^2.1.0", - "deep-equal": "^1.0.1", - "dns-equal": "^1.0.0", - "dns-txt": "^2.0.2", - "multicast-dns": "^6.0.1", - "multicast-dns-service-types": "^1.1.0" - } - }, - "node_modules/boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", - "dev": true - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.17.4.tgz", - "integrity": "sha512-Zg7RpbZpIJRW3am9Lyckue7PLytvVxxhJj1CaJVlCWENsGEAOlnlt8X0ZxGRPp7Bt9o8tIRM5SEXy4BCPMJjLQ==", - "dev": true, - "dependencies": { - "caniuse-lite": "^1.0.30001265", - "electron-to-chromium": "^1.3.867", - "escalade": "^3.1.1", - "node-releases": "^2.0.0", - "picocolors": "^1.0.0" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, - "node_modules/buffer-indexof": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.1.1.tgz", - "integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==", - "dev": true - }, - "node_modules/bytes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/camel-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", - "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", - "dev": true, - "dependencies": { - "pascal-case": "^3.1.2", - "tslib": "^2.0.3" - } - }, - "node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/camelcase-keys": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", - "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", - "dev": true, - "dependencies": { - "camelcase": "^5.3.1", - "map-obj": "^4.0.0", - "quick-lru": "^4.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/caniuse-api": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", - "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", - "dev": true, - "dependencies": { - "browserslist": "^4.0.0", - "caniuse-lite": "^1.0.0", - "lodash.memoize": "^4.1.2", - "lodash.uniq": "^4.5.0" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001267", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001267.tgz", - "integrity": "sha512-r1mjTzAuJ9W8cPBGbbus8E0SKcUP7gn03R14Wk8FlAlqhH9hroy9nLqmpuXlfKEw/oILW+FGz47ipXV2O7x8lg==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - } - }, - "node_modules/caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", - "dev": true - }, - "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/chokidar": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz", - "integrity": "sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==", - "dev": true, - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/chownr": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/chrome-trace-event": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", - "dev": true, - "engines": { - "node": ">=6.0" - } - }, - "node_modules/clean-css": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.3.tgz", - "integrity": "sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA==", - "dev": true, - "dependencies": { - "source-map": "~0.6.0" - }, - "engines": { - "node": ">= 4.0" - } - }, - "node_modules/clean-css/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/clean-webpack-plugin": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/clean-webpack-plugin/-/clean-webpack-plugin-4.0.0.tgz", - "integrity": "sha512-WuWE1nyTNAyW5T7oNyys2EN0cfP2fdRxhxnIQWiAp0bMabPdHhoGxM8A6YL2GhqwgrPnnaemVE7nv5XJ2Fhh2w==", - "dev": true, - "dependencies": { - "del": "^4.1.1" - }, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "webpack": ">=4.0.0 <6.0.0" - } - }, - "node_modules/cliui": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", - "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", - "dev": true, - "dependencies": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" - } - }, - "node_modules/cliui/node_modules/ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/cliui/node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/cliui/node_modules/string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "dependencies": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/cliui/node_modules/strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "dependencies": { - "ansi-regex": "^4.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/clone-deep": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", - "dev": true, - "dependencies": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "node_modules/colord": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/colord/-/colord-2.8.0.tgz", - "integrity": "sha512-kNkVV4KFta3TYQv0bzs4xNwLaeag261pxgzGQSh4cQ1rEhYjcTJfFRP0SDlbhLONg0eSoLzrDd79PosjbltufA==", - "dev": true - }, - "node_modules/colorette": { - "version": "2.0.16", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.16.tgz", - "integrity": "sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==", - "dev": true - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/commander": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", - "dev": true - }, - "node_modules/compressible": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", - "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", - "dev": true, - "dependencies": { - "mime-db": ">= 1.43.0 < 2" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/compression": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", - "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", - "dev": true, - "dependencies": { - "accepts": "~1.3.5", - "bytes": "3.0.0", - "compressible": "~2.0.16", - "debug": "2.6.9", - "on-headers": "~1.0.2", - "safe-buffer": "5.1.2", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/compression/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/compression/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" - }, - "node_modules/confusing-browser-globals": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.10.tgz", - "integrity": "sha512-gNld/3lySHwuhaVluJUKLePYirM3QNCKzVxqAdhJII9/WXKVX5PURzMVJspS1jTslSqjeuG4KMVTSouit5YPHA==", - "dev": true - }, - "node_modules/connect-history-api-fallback": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz", - "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==", - "dev": true, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "dev": true - }, - "node_modules/content-disposition": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", - "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", - "dev": true, - "dependencies": { - "safe-buffer": "5.1.2" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-type": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", - "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/convert-source-map": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", - "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.1.1" - } - }, - "node_modules/cookie": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", - "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", - "dev": true - }, - "node_modules/copy-webpack-plugin": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-9.0.1.tgz", - "integrity": "sha512-14gHKKdYIxF84jCEgPgYXCPpldbwpxxLbCmA7LReY7gvbaT555DgeBWBgBZM116tv/fO6RRJrsivBqRyRlukhw==", - "dev": true, - "dependencies": { - "fast-glob": "^3.2.5", - "glob-parent": "^6.0.0", - "globby": "^11.0.3", - "normalize-path": "^3.0.0", - "p-limit": "^3.1.0", - "schema-utils": "^3.0.0", - "serialize-javascript": "^6.0.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - } - }, - "node_modules/copy-webpack-plugin/node_modules/schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/core-js-compat": { - "version": "3.18.3", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.18.3.tgz", - "integrity": "sha512-4zP6/y0a2RTHN5bRGT7PTq9lVt3WzvffTNjqnTKsXhkAYNDTkdCLOIfAdOLcQ/7TDdyRj3c+NeHe1NmF1eDScw==", - "dev": true, - "dependencies": { - "browserslist": "^4.17.3", - "semver": "7.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/core-js-compat/node_modules/semver": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", - "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "dev": true - }, - "node_modules/cosmiconfig": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", - "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", - "dev": true, - "dependencies": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.10.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/cross-env": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", - "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.1" - }, - "bin": { - "cross-env": "src/bin/cross-env.js", - "cross-env-shell": "src/bin/cross-env-shell.js" - }, - "engines": { - "node": ">=10.14", - "npm": ">=6", - "yarn": ">=1" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/css-blank-pseudo": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/css-blank-pseudo/-/css-blank-pseudo-0.1.4.tgz", - "integrity": "sha512-LHz35Hr83dnFeipc7oqFDmsjHdljj3TQtxGGiNWSOsTLIAubSm4TEz8qCaKFpk7idaQ1GfWscF4E6mgpBysA1w==", - "dev": true, - "dependencies": { - "postcss": "^7.0.5" - }, - "bin": { - "css-blank-pseudo": "cli.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/css-blank-pseudo/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/css-blank-pseudo/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/css-blank-pseudo/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/css-color-names": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-1.0.1.tgz", - "integrity": "sha512-/loXYOch1qU1biStIFsHH8SxTmOseh1IJqFvy8IujXOm1h+QjUdDhkzOrR5HG8K8mlxREj0yfi8ewCHx0eMxzA==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/css-declaration-sorter": { - "version": "6.1.3", - "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.1.3.tgz", - "integrity": "sha512-SvjQjNRZgh4ULK1LDJ2AduPKUKxIqmtU7ZAyi47BTV+M90Qvxr9AB6lKlLbDUfXqI9IQeYA8LbAsCZPpJEV3aA==", - "dev": true, - "dependencies": { - "timsort": "^0.3.0" - }, - "engines": { - "node": ">= 10" - }, - "peerDependencies": { - "postcss": "^8.0.9" - } - }, - "node_modules/css-has-pseudo": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/css-has-pseudo/-/css-has-pseudo-0.10.0.tgz", - "integrity": "sha512-Z8hnfsZu4o/kt+AuFzeGpLVhFOGO9mluyHBaA2bA8aCGTwah5sT3WV/fTHH8UNZUytOIImuGPrl/prlb4oX4qQ==", - "dev": true, - "dependencies": { - "postcss": "^7.0.6", - "postcss-selector-parser": "^5.0.0-rc.4" - }, - "bin": { - "css-has-pseudo": "cli.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/css-has-pseudo/node_modules/cssesc": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", - "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", - "dev": true, - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/css-has-pseudo/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/css-has-pseudo/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/css-has-pseudo/node_modules/postcss-selector-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", - "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", - "dev": true, - "dependencies": { - "cssesc": "^2.0.0", - "indexes-of": "^1.0.1", - "uniq": "^1.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/css-has-pseudo/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/css-loader": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.4.0.tgz", - "integrity": "sha512-Dlt6qfsxI/w1vU0r8qDd4BtMPxWqJeY5qQU7SmmZfvbpe6Xl18McO4GhyaMLns24Y2VNPiZwJPQ8JSbg4qvQLw==", - "dev": true, - "dependencies": { - "icss-utils": "^5.1.0", - "postcss": "^8.2.15", - "postcss-modules-extract-imports": "^3.0.0", - "postcss-modules-local-by-default": "^4.0.0", - "postcss-modules-scope": "^3.0.0", - "postcss-modules-values": "^4.0.0", - "postcss-value-parser": "^4.1.0", - "semver": "^7.3.5" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - } - }, - "node_modules/css-loader/node_modules/semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/css-minimizer-webpack-plugin": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.1.1.tgz", - "integrity": "sha512-KlB8l5uoNcf9F7i5kXnkxoqJGd2BXH4f0+Lj2vSWSmuvMLYO1kNsJ1KHSzeDW8e45/whgSOPcKVT/3JopkT8dg==", - "dev": true, - "dependencies": { - "cssnano": "^5.0.6", - "jest-worker": "^27.0.2", - "p-limit": "^3.0.2", - "postcss": "^8.3.5", - "schema-utils": "^3.1.0", - "serialize-javascript": "^6.0.0", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - }, - "peerDependenciesMeta": { - "clean-css": { - "optional": true - }, - "csso": { - "optional": true - }, - "esbuild": { - "optional": true - } - } - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/css-minimizer-webpack-plugin/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/css-prefers-color-scheme": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/css-prefers-color-scheme/-/css-prefers-color-scheme-3.1.1.tgz", - "integrity": "sha512-MTu6+tMs9S3EUqzmqLXEcgNRbNkkD/TGFvowpeoWJn5Vfq7FMgsmRQs9X5NXAURiOBmOxm/lLjsDNXDE6k9bhg==", - "dev": true, - "dependencies": { - "postcss": "^7.0.5" - }, - "bin": { - "css-prefers-color-scheme": "cli.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/css-prefers-color-scheme/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/css-prefers-color-scheme/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/css-prefers-color-scheme/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/css-select": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.1.3.tgz", - "integrity": "sha512-gT3wBNd9Nj49rAbmtFHj1cljIAOLYSX1nZ8CB7TBO3INYckygm5B7LISU/szY//YmdiSLbJvDLOx9VnMVpMBxA==", - "dev": true, - "dependencies": { - "boolbase": "^1.0.0", - "css-what": "^5.0.0", - "domhandler": "^4.2.0", - "domutils": "^2.6.0", - "nth-check": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/css-tree": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", - "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", - "dev": true, - "dependencies": { - "mdn-data": "2.0.14", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/css-tree/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/css-what": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-5.1.0.tgz", - "integrity": "sha512-arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw==", - "dev": true, - "engines": { - "node": ">= 6" - }, - "funding": { - "url": "https://github.com/sponsors/fb55" - } - }, - "node_modules/cssdb": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/cssdb/-/cssdb-4.4.0.tgz", - "integrity": "sha512-LsTAR1JPEM9TpGhl/0p3nQecC2LJ0kD8X5YARu1hk/9I1gril5vDtMZyNxcEpxxDj34YNck/ucjuoUd66K03oQ==", - "dev": true - }, - "node_modules/cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "dev": true, - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/cssnano": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.0.8.tgz", - "integrity": "sha512-Lda7geZU0Yu+RZi2SGpjYuQz4HI4/1Y+BhdD0jL7NXAQ5larCzVn+PUGuZbDMYz904AXXCOgO5L1teSvgu7aFg==", - "dev": true, - "dependencies": { - "cssnano-preset-default": "^5.1.4", - "is-resolvable": "^1.1.0", - "lilconfig": "^2.0.3", - "yaml": "^1.10.2" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/cssnano" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/cssnano-preset-default": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.1.4.tgz", - "integrity": "sha512-sPpQNDQBI3R/QsYxQvfB4mXeEcWuw0wGtKtmS5eg8wudyStYMgKOQT39G07EbW1LB56AOYrinRS9f0ig4Y3MhQ==", - "dev": true, - "dependencies": { - "css-declaration-sorter": "^6.0.3", - "cssnano-utils": "^2.0.1", - "postcss-calc": "^8.0.0", - "postcss-colormin": "^5.2.0", - "postcss-convert-values": "^5.0.1", - "postcss-discard-comments": "^5.0.1", - "postcss-discard-duplicates": "^5.0.1", - "postcss-discard-empty": "^5.0.1", - "postcss-discard-overridden": "^5.0.1", - "postcss-merge-longhand": "^5.0.2", - "postcss-merge-rules": "^5.0.2", - "postcss-minify-font-values": "^5.0.1", - "postcss-minify-gradients": "^5.0.2", - "postcss-minify-params": "^5.0.1", - "postcss-minify-selectors": "^5.1.0", - "postcss-normalize-charset": "^5.0.1", - "postcss-normalize-display-values": "^5.0.1", - "postcss-normalize-positions": "^5.0.1", - "postcss-normalize-repeat-style": "^5.0.1", - "postcss-normalize-string": "^5.0.1", - "postcss-normalize-timing-functions": "^5.0.1", - "postcss-normalize-unicode": "^5.0.1", - "postcss-normalize-url": "^5.0.2", - "postcss-normalize-whitespace": "^5.0.1", - "postcss-ordered-values": "^5.0.2", - "postcss-reduce-initial": "^5.0.1", - "postcss-reduce-transforms": "^5.0.1", - "postcss-svgo": "^5.0.2", - "postcss-unique-selectors": "^5.0.1" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/cssnano-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-2.0.1.tgz", - "integrity": "sha512-i8vLRZTnEH9ubIyfdZCAdIdgnHAUeQeByEeQ2I7oTilvP9oHO6RScpeq3GsFUVqeB8uZgOQ9pw8utofNn32hhQ==", - "dev": true, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/csso": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", - "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", - "dev": true, - "dependencies": { - "css-tree": "^1.1.2" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "dev": true, - "dependencies": { - "assert-plus": "^1.0.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/debug": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", - "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/decamelize-keys": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", - "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", - "dev": true, - "dependencies": { - "decamelize": "^1.1.0", - "map-obj": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/decamelize-keys/node_modules/map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/deep-equal": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.1.tgz", - "integrity": "sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g==", - "dev": true, - "dependencies": { - "is-arguments": "^1.0.4", - "is-date-object": "^1.0.1", - "is-regex": "^1.0.4", - "object-is": "^1.0.1", - "object-keys": "^1.1.1", - "regexp.prototype.flags": "^1.2.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "node_modules/default-gateway": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", - "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", - "dev": true, - "dependencies": { - "execa": "^5.0.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/define-lazy-prop": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", - "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", - "dev": true, - "dependencies": { - "object-keys": "^1.0.12" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/del": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/del/-/del-4.1.1.tgz", - "integrity": "sha512-QwGuEUouP2kVwQenAsOof5Fv8K9t3D8Ca8NxcXKrIpEHjTXK5J2nXLdP+ALI1cgv8wj7KuwBhTwBkOZSJKM5XQ==", - "dev": true, - "dependencies": { - "@types/glob": "^7.1.1", - "globby": "^6.1.0", - "is-path-cwd": "^2.0.0", - "is-path-in-cwd": "^2.0.0", - "p-map": "^2.0.0", - "pify": "^4.0.1", - "rimraf": "^2.6.3" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/del/node_modules/array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", - "dev": true, - "dependencies": { - "array-uniq": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/del/node_modules/globby": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", - "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", - "dev": true, - "dependencies": { - "array-union": "^1.0.1", - "glob": "^7.0.3", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/del/node_modules/globby/node_modules/pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", - "dev": true - }, - "node_modules/depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/destroy": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", - "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", - "dev": true - }, - "node_modules/detect-node": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", - "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", - "dev": true - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/dns-equal": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", - "integrity": "sha1-s55/HabrCnW6nBcySzR1PEfgZU0=", - "dev": true - }, - "node_modules/dns-packet": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.4.tgz", - "integrity": "sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA==", - "dev": true, - "dependencies": { - "ip": "^1.1.0", - "safe-buffer": "^5.0.1" - } - }, - "node_modules/dns-txt": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/dns-txt/-/dns-txt-2.0.2.tgz", - "integrity": "sha1-uR2Ab10nGI5Ks+fRB9iBocxGQrY=", - "dev": true, - "dependencies": { - "buffer-indexof": "^1.0.0" - } - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/dom-converter": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", - "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", - "dev": true, - "dependencies": { - "utila": "~0.4" - } - }, - "node_modules/dom-serializer": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz", - "integrity": "sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==", - "dev": true, - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.0", - "entities": "^2.0.0" - }, - "funding": { - "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" - } - }, - "node_modules/domelementtype": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", - "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ] - }, - "node_modules/domhandler": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.2.2.tgz", - "integrity": "sha512-PzE9aBMsdZO8TK4BnuJwH0QT41wgMbRzuZrHUcpYncEjmQazq8QEaBWgLG7ZyC/DAZKEgglpIA6j4Qn/HmxS3w==", - "dev": true, - "dependencies": { - "domelementtype": "^2.2.0" - }, - "engines": { - "node": ">= 4" - }, - "funding": { - "url": "https://github.com/fb55/domhandler?sponsor=1" - } - }, - "node_modules/domutils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", - "dev": true, - "dependencies": { - "dom-serializer": "^1.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0" - }, - "funding": { - "url": "https://github.com/fb55/domutils?sponsor=1" - } - }, - "node_modules/dot-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", - "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", - "dev": true, - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "dev": true, - "dependencies": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", - "dev": true - }, - "node_modules/electron-to-chromium": { - "version": "1.3.870", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.870.tgz", - "integrity": "sha512-PiJMshfq6PL+i1V+nKLwhHbCKeD8eAz8rvO9Cwk/7cChOHJBtufmjajLyYLsSRHguRFiOCVx3XzJLeZsIAYfSA==", - "dev": true - }, - "node_modules/emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", - "dev": true - }, - "node_modules/emojis-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/enhanced-resolve": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-0.9.1.tgz", - "integrity": "sha1-TW5omzcl+GCQknzMhs2fFjW4ni4=", - "dev": true, - "dependencies": { - "graceful-fs": "^4.1.2", - "memory-fs": "^0.2.0", - "tapable": "^0.1.8" - }, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", - "dev": true, - "dependencies": { - "ansi-colors": "^4.1.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "dev": true, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/env-paths": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", - "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/envinfo": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", - "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", - "dev": true, - "bin": { - "envinfo": "dist/cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/es-abstract": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.19.1.tgz", - "integrity": "sha512-2vJ6tjA/UfqLm2MPs7jxVybLoB8i1t1Jd9R3kISld20sIxPcTbLuggQOUxeWeAvIUkduv/CfMjuh4WmiXr2v9w==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "get-intrinsic": "^1.1.1", - "get-symbol-description": "^1.0.0", - "has": "^1.0.3", - "has-symbols": "^1.0.2", - "internal-slot": "^1.0.3", - "is-callable": "^1.2.4", - "is-negative-zero": "^2.0.1", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.1", - "is-string": "^1.0.7", - "is-weakref": "^1.0.1", - "object-inspect": "^1.11.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.2", - "string.prototype.trimend": "^1.0.4", - "string.prototype.trimstart": "^1.0.4", - "unbox-primitive": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-module-lexer": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", - "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", - "dev": true - }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", - "dev": true - }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/eslint": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.28.0.tgz", - "integrity": "sha512-UMfH0VSjP0G4p3EWirscJEQ/cHqnT/iuH6oNZOB94nBjWbMnhGEPxsZm1eyIW0C/9jLI0Fow4W5DXLjEI7mn1g==", - "dev": true, - "dependencies": { - "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.2", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.0.1", - "doctrine": "^3.0.0", - "enquirer": "^2.3.5", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^2.0.0", - "espree": "^7.3.1", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.1.2", - "globals": "^13.6.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.1.0", - "table": "^6.0.9", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-config-airbnb-base": { - "version": "14.2.1", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.2.1.tgz", - "integrity": "sha512-GOrQyDtVEc1Xy20U7vsB2yAoB4nBlfH5HZJeatRXHleO+OS5Ot+MWij4Dpltw4/DyIkqUfqz1epfhVR5XWWQPA==", - "dev": true, - "dependencies": { - "confusing-browser-globals": "^1.0.10", - "object.assign": "^4.1.2", - "object.entries": "^1.1.2" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "eslint": "^5.16.0 || ^6.8.0 || ^7.2.0", - "eslint-plugin-import": "^2.22.1" - } - }, - "node_modules/eslint-config-prettier": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz", - "integrity": "sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==", - "dev": true, - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "peerDependencies": { - "eslint": ">=7.0.0" - } - }, - "node_modules/eslint-import-resolver-node": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", - "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", - "dev": true, - "dependencies": { - "debug": "^3.2.7", - "resolve": "^1.20.0" - } - }, - "node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-import-resolver-webpack": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-webpack/-/eslint-import-resolver-webpack-0.13.1.tgz", - "integrity": "sha512-O/8mG6AHmaKYSMb4lWxiXPpaARxOJ4rMQEHJ8vTgjS1MXooJA3KPgBPPAdOPoV17v5ML5120qod5FBLM+DtgEw==", - "dev": true, - "dependencies": { - "array-find": "^1.0.0", - "debug": "^3.2.7", - "enhanced-resolve": "^0.9.1", - "find-root": "^1.1.0", - "has": "^1.0.3", - "interpret": "^1.4.0", - "is-core-module": "^2.4.0", - "is-regex": "^1.1.3", - "lodash": "^4.17.21", - "resolve": "^1.20.0", - "semver": "^5.7.1" - }, - "engines": { - "node": "^16 || ^15 || ^14 || ^13 || ^12 || ^11 || ^10 || ^9 || ^8 || ^7 || ^6" - }, - "peerDependencies": { - "eslint-plugin-import": ">=1.4.0", - "webpack": ">=1.11.0" - } - }, - "node_modules/eslint-import-resolver-webpack/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-import-resolver-webpack/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/eslint-module-utils": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.1.tgz", - "integrity": "sha512-fjoetBXQZq2tSTWZ9yWVl2KuFrTZZH3V+9iD1V1RfpDgxzJR+mPd/KZmMiA8gbPqdBzpNiEHOuT7IYEWxrH0zQ==", - "dev": true, - "dependencies": { - "debug": "^3.2.7", - "find-up": "^2.1.0", - "pkg-dir": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-import": { - "version": "2.25.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.2.tgz", - "integrity": "sha512-qCwQr9TYfoBHOFcVGKY9C9unq05uOxxdklmBXLVvcwo68y5Hta6/GzCZEMx2zQiu0woKNEER0LE7ZgaOfBU14g==", - "dev": true, - "dependencies": { - "array-includes": "^3.1.4", - "array.prototype.flat": "^1.2.5", - "debug": "^2.6.9", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.6", - "eslint-module-utils": "^2.7.0", - "has": "^1.0.3", - "is-core-module": "^2.7.0", - "is-glob": "^4.0.3", - "minimatch": "^3.0.4", - "object.values": "^1.1.5", - "resolve": "^1.20.0", - "tsconfig-paths": "^3.11.0" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" - } - }, - "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/eslint-plugin-import/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eslint-plugin-import/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "node_modules/eslint-plugin-prettier": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.0.0.tgz", - "integrity": "sha512-98MqmCJ7vJodoQK359bqQWaxOE0CS8paAz/GgjaZLyex4TTk3g9HugoO89EqWCrFiOqn9EVvcoo7gZzONCWVwQ==", - "dev": true, - "dependencies": { - "prettier-linter-helpers": "^1.0.0" - }, - "engines": { - "node": ">=6.0.0" - }, - "peerDependencies": { - "eslint": ">=7.28.0", - "prettier": ">=2.0.0" - }, - "peerDependenciesMeta": { - "eslint-config-prettier": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^1.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/eslint/node_modules/@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.10.4" - } - }, - "node_modules/eslint/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/eslint/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/eslint/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/eslint/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/eslint/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/eslint/node_modules/globals": { - "version": "13.11.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz", - "integrity": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==", - "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/eslint/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/espree": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", - "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", - "dev": true, - "dependencies": { - "acorn": "^7.4.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^1.3.0" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/espree/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", - "dev": true, - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esquery/node_modules/estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esrecurse/node_modules/estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/eventemitter3": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", - "dev": true - }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "dev": true, - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/express": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", - "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", - "dev": true, - "dependencies": { - "accepts": "~1.3.7", - "array-flatten": "1.1.1", - "body-parser": "1.19.0", - "content-disposition": "0.5.3", - "content-type": "~1.0.4", - "cookie": "0.4.0", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "~1.1.2", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "~1.1.2", - "fresh": "0.5.2", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "~2.3.0", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.5", - "qs": "6.7.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.1.2", - "send": "0.17.1", - "serve-static": "1.14.1", - "setprototypeof": "1.1.1", - "statuses": "~1.5.0", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/express/node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=", - "dev": true - }, - "node_modules/express/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/express/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "node_modules/express/node_modules/qs": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", - "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true - }, - "node_modules/extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true, - "engines": [ - "node >=0.6.0" - ] - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", - "dev": true - }, - "node_modules/fast-glob": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz", - "integrity": "sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", - "dev": true - }, - "node_modules/fastest-levenshtein": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.12.tgz", - "integrity": "sha512-On2N+BpYJ15xIC974QNVuYGMOlEVt4s0EOI3wwMqOmK1fdDY+FN/zltPV8vosq4ad4c/gJ1KHScUn/6AWIgiow==", - "dev": true - }, - "node_modules/fastq": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", - "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", - "dev": true, - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/faye-websocket": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", - "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", - "dev": true, - "dependencies": { - "websocket-driver": ">=0.5.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/finalhandler": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", - "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", - "dev": true, - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "~2.3.0", - "parseurl": "~1.3.3", - "statuses": "~1.5.0", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/finalhandler/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/finalhandler/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "node_modules/find-cache-dir": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", - "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", - "dev": true, - "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/avajs/find-cache-dir?sponsor=1" - } - }, - "node_modules/find-cache-dir/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-cache-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-cache-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/find-cache-dir/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-cache-dir/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-cache-dir/node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-root": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", - "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==", - "dev": true - }, - "node_modules/find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "dependencies": { - "locate-path": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/fingerpose": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/fingerpose/-/fingerpose-0.1.0.tgz", - "integrity": "sha512-OXIRuRTgukBOo4xUO+vPchzHftZOPxO7VRh4HDjTg5NGr4gSkiY+LQShjsKAzmpRiRdmTgDh0dNsGpWa1Jsx3Q==" - }, - "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", - "dev": true, - "dependencies": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/flat-cache/node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/flatted": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.2.tgz", - "integrity": "sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA==", - "dev": true - }, - "node_modules/flatten": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/flatten/-/flatten-1.0.3.tgz", - "integrity": "sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg==", - "deprecated": "flatten is deprecated in favor of utility frameworks such as lodash.", - "dev": true - }, - "node_modules/follow-redirects": { - "version": "1.14.4", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.4.tgz", - "integrity": "sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "dev": true, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 0.12" - } - }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dev": true, - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/fs-monkey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz", - "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==", - "dev": true - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" - }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "node_modules/functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", - "dev": true - }, - "node_modules/gauge": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", - "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", - "dev": true, - "dependencies": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - } - }, - "node_modules/gauge/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gauge/node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gaze": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz", - "integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==", - "dev": true, - "dependencies": { - "globule": "^1.0.0" - }, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-intrinsic": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", - "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-stdin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", - "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "dev": true, - "dependencies": { - "assert-plus": "^1.0.0" - } - }, - "node_modules/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", - "dev": true - }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/globby": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", - "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", - "dev": true, - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globby/node_modules/ignore": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", - "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/globule": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/globule/-/globule-1.3.3.tgz", - "integrity": "sha512-mb1aYtDbIjTu4ShMB85m3UzjX9BVKe9WCzsnfMSZk+K5GpIbBOexgg4PPCt5eHDEG5/ZQAUX2Kct02zfiPLsKg==", - "dev": true, - "dependencies": { - "glob": "~7.1.1", - "lodash": "~4.17.10", - "minimatch": "~3.0.2" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/globule/node_modules/glob": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", - "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.8", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz", - "integrity": "sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==", - "dev": true - }, - "node_modules/handle-thing": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", - "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==", - "dev": true - }, - "node_modules/har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/har-validator": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", - "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", - "deprecated": "this library is no longer supported", - "dev": true, - "dependencies": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/hard-rejection": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", - "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-ansi/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-bigints": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.1.tgz", - "integrity": "sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/has-symbols": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz", - "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-unicode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", - "dev": true - }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true, - "bin": { - "he": "bin/he" - } - }, - "node_modules/hosted-git-info": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", - "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/hpack.js": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", - "integrity": "sha1-h3dMCUnlE/QuhFdbPEVoH63ioLI=", - "dev": true, - "dependencies": { - "inherits": "^2.0.1", - "obuf": "^1.0.0", - "readable-stream": "^2.0.1", - "wbuf": "^1.1.0" - } - }, - "node_modules/html-entities": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.2.tgz", - "integrity": "sha512-c3Ab/url5ksaT0WyleslpBEthOzWhrjQbg75y7XUsfSzi3Dgzt0l8w5e7DylRn15MTlMMD58dTfzddNS2kcAjQ==", - "dev": true - }, - "node_modules/html-minifier-terser": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz", - "integrity": "sha512-ZPr5MNObqnV/T9akshPKbVgyOqLmy+Bxo7juKCfTfnjNniTAMdy4hz21YQqoofMBJD2kdREaqPPdThoR78Tgxg==", - "dev": true, - "dependencies": { - "camel-case": "^4.1.1", - "clean-css": "^4.2.3", - "commander": "^4.1.1", - "he": "^1.2.0", - "param-case": "^3.0.3", - "relateurl": "^0.2.7", - "terser": "^4.6.3" - }, - "bin": { - "html-minifier-terser": "cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/html-webpack-plugin": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.3.2.tgz", - "integrity": "sha512-HvB33boVNCz2lTyBsSiMffsJ+m0YLIQ+pskblXgN9fnjS1BgEcuAfdInfXfGrkdXV406k9FiDi86eVCDBgJOyQ==", - "dev": true, - "dependencies": { - "@types/html-minifier-terser": "^5.0.0", - "html-minifier-terser": "^5.0.1", - "lodash": "^4.17.21", - "pretty-error": "^3.0.4", - "tapable": "^2.0.0" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/html-webpack-plugin" - }, - "peerDependencies": { - "webpack": "^5.20.0" - } - }, - "node_modules/html-webpack-plugin/node_modules/tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/htmlparser2": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", - "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", - "dev": true, - "funding": [ - "https://github.com/fb55/htmlparser2?sponsor=1", - { - "type": "github", - "url": "https://github.com/sponsors/fb55" - } - ], - "dependencies": { - "domelementtype": "^2.0.1", - "domhandler": "^4.0.0", - "domutils": "^2.5.2", - "entities": "^2.0.0" - } - }, - "node_modules/http-deceiver": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", - "integrity": "sha1-+nFolEq5pRnTN8sL7HKE3D5yPYc=", - "dev": true - }, - "node_modules/http-errors": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", - "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", - "dev": true, - "dependencies": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.1", - "statuses": ">= 1.5.0 < 2", - "toidentifier": "1.0.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/http-errors/node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - }, - "node_modules/http-parser-js": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.3.tgz", - "integrity": "sha512-t7hjvef/5HEK7RWTdUzVUhl8zkEu+LlaE0IYzdMuvbSDipxBRpOn4Uhw8ZyECEa808iVT8XCjzo6xmYt4CiLZg==", - "dev": true - }, - "node_modules/http-proxy": { - "version": "1.18.1", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", - "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", - "dev": true, - "dependencies": { - "eventemitter3": "^4.0.0", - "follow-redirects": "^1.0.0", - "requires-port": "^1.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/http-proxy-middleware": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.1.tgz", - "integrity": "sha512-cfaXRVoZxSed/BmkA7SwBVNI9Kj7HFltaE5rqYOub5kWzWZ+gofV2koVN1j2rMW7pEfSSlCHGJ31xmuyFyfLOg==", - "dev": true, - "dependencies": { - "@types/http-proxy": "^1.17.5", - "http-proxy": "^1.18.1", - "is-glob": "^4.0.1", - "is-plain-obj": "^3.0.0", - "micromatch": "^4.0.2" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/http-proxy-middleware/node_modules/is-plain-obj": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", - "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "dev": true, - "dependencies": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - }, - "engines": { - "node": ">=0.8", - "npm": ">=1.3.7" - } - }, - "node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/icss-utils": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", - "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", - "dev": true, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-local": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.3.tgz", - "integrity": "sha512-bE9iaUY3CXH8Cwfan/abDKAxe1KGT9kyGsBPqf6DMK/z0a2OzAsrukeYNgIH6cH5Xr452jb1TUL8rSfCLjZ9uA==", - "dev": true, - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/import-local/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/import-local/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/import-local/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-local/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/import-local/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/import-local/node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/indexes-of": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/indexes-of/-/indexes-of-1.0.1.tgz", - "integrity": "sha1-8w9xbI4r00bHtn0985FVZqfAVgc=", - "dev": true - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "node_modules/internal-ip": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/internal-ip/-/internal-ip-6.2.0.tgz", - "integrity": "sha512-D8WGsR6yDt8uq7vDMu7mjcR+yRMm3dW8yufyChmszWRjcSHuxLBkR3GdS2HZAjodsaGuCvXeEJpueisXJULghg==", - "dev": true, - "dependencies": { - "default-gateway": "^6.0.0", - "ipaddr.js": "^1.9.1", - "is-ip": "^3.1.0", - "p-event": "^4.2.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/internal-ip?sponsor=1" - } - }, - "node_modules/internal-ip/node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "dev": true, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/internal-slot": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", - "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "dev": true, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/ip": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", - "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", - "dev": true - }, - "node_modules/ip-regex": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz", - "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/ipaddr.js": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz", - "integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==", - "dev": true, - "engines": { - "node": ">= 10" - } - }, - "node_modules/is-absolute-url": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-3.0.3.tgz", - "integrity": "sha512-opmNIX7uFnS96NtPmhWQgQx6/NYFgsUXYMllcfzwWKUMwfo8kku1TvE6hkNcH+Q1ts5cMVrsY7j0bxXQDciu9Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-callable": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", - "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-core-module": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.0.tgz", - "integrity": "sha512-vd15qHsaqrRL7dtH6QNuy0ndJmRDrS9HAM1CAiSifNUFv4x1a0CCVsj18hJ1mShxIG6T2i1sO78MkP56r0nYRw==", - "dev": true, - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true, - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "dependencies": { - "number-is-nan": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-ip": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-ip/-/is-ip-3.1.0.tgz", - "integrity": "sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q==", - "dev": true, - "dependencies": { - "ip-regex": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-negative-zero": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.1.tgz", - "integrity": "sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-number-object": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.6.tgz", - "integrity": "sha512-bEVOqiRcvo3zO1+G2lVMy+gkkEm9Yh7cDMRusKKu5ZJKPUYSJwICTKZrNKHA2EbSP0Tu0+6B/emsYNHZyn6K8g==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-path-cwd": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", - "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/is-path-in-cwd": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-2.1.0.tgz", - "integrity": "sha512-rNocXHgipO+rvnP6dk3zI20RpOtrAM/kzbB258Uw5BWr3TpXi861yzjo16Dn4hUox07iw5AyeMLHWsujkjzvRQ==", - "dev": true, - "dependencies": { - "is-path-inside": "^2.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/is-path-inside": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-2.1.0.tgz", - "integrity": "sha512-wiyhTzfDWsvwAW53OBWF5zuvaOGlZ6PwYxAbPVDhpm+gM09xKQGjBq/8uYN12aDvMxnAnq3dxTyoSoRNmg5YFg==", - "dev": true, - "dependencies": { - "path-is-inside": "^1.0.2" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/is-plain-obj": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-resolvable": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", - "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", - "dev": true - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.1.tgz", - "integrity": "sha512-IU0NmyknYZN0rChcKhRO1X8LYz5Isj/Fsqh8NJOSf+N/hCOTwy29F32Ik7a+QszE63IdvmwdTPDd6cZ5pg4cwA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, - "node_modules/is-weakref": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.1.tgz", - "integrity": "sha512-b2jKc2pQZjaeFYWEf7ScFj+Be1I+PXmlu572Q8coTXZ+LD/QQZ7ShPMst8h16riVgyXTQwUsFEl74mDvc/3MHQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dev": true, - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", - "dev": true - }, - "node_modules/jest-worker": { - "version": "27.2.5", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.2.5.tgz", - "integrity": "sha512-HTjEPZtcNKZ4LnhSp02NEH4vE+5OpJ0EsOWYvGQpHgUMLngydESAAMH5Wd/asPf29+XUDQZszxpLg1BkIIA2aw==", - "dev": true, - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/jest-worker/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/js-base64": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz", - "integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==", - "dev": true - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true - }, - "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true - }, - "node_modules/json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "dev": true - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", - "dev": true - }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true - }, - "node_modules/json5": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", - "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", - "dev": true, - "dependencies": { - "minimist": "^1.2.5" - }, - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "dev": true, - "engines": [ - "node >=0.6.0" - ], - "dependencies": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, - "node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/klona": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.4.tgz", - "integrity": "sha512-ZRbnvdg/NxqzC7L9Uyqzf4psi1OM4Cuc+sJAkQPjO6XkQIJTNbfK2Rsmbw8fx1p2mkZdp2FZYo2+LwXYY/uwIA==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lilconfig": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.3.tgz", - "integrity": "sha512-EHKqr/+ZvdKCifpNrJCKxBTgk5XupZA3y/aCPY9mxfgBzmgh93Mt/WqjjQ38oMxXuvDokaKiM3lAgvSH2sjtHg==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/lines-and-columns": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", - "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", - "dev": true - }, - "node_modules/loader-runner": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.2.0.tgz", - "integrity": "sha512-92+huvxMvYlMzMt0iIOukcwYBFpkYJdpl2xsZ7LrlayO7E8SOv+JJUEK17B/dJIHAOLMfh2dZZ/Y18WgmGtYNw==", - "dev": true, - "engines": { - "node": ">=6.11.5" - } - }, - "node_modules/loader-utils": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz", - "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==", - "dev": true, - "dependencies": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^1.0.1" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/loader-utils/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", - "dev": true, - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "node_modules/locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "dependencies": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "node_modules/lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", - "dev": true - }, - "node_modules/lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=", - "dev": true - }, - "node_modules/lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", - "dev": true - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", - "dev": true - }, - "node_modules/lodash.uniq": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", - "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=", - "dev": true - }, - "node_modules/long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" - }, - "node_modules/lower-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", - "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", - "dev": true, - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/map-obj": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", - "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mdn-data": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", - "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", - "dev": true - }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/memfs": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.3.0.tgz", - "integrity": "sha512-BEE62uMfKOavX3iG7GYX43QJ+hAeeWnwIAuJ/R6q96jaMtiLzhsxHJC8B1L7fK7Pt/vXDRwb3SG/yBpNGDPqzg==", - "dev": true, - "dependencies": { - "fs-monkey": "1.0.3" - }, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/memory-fs": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.2.0.tgz", - "integrity": "sha1-8rslNovBIeORwlIN6Slpyu4KApA=", - "dev": true - }, - "node_modules/meow": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz", - "integrity": "sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==", - "dev": true, - "dependencies": { - "@types/minimist": "^1.2.0", - "camelcase-keys": "^6.2.2", - "decamelize": "^1.2.0", - "decamelize-keys": "^1.1.0", - "hard-rejection": "^2.1.0", - "minimist-options": "4.1.0", - "normalize-package-data": "^3.0.0", - "read-pkg-up": "^7.0.1", - "redent": "^3.0.0", - "trim-newlines": "^3.0.0", - "type-fest": "^0.18.0", - "yargs-parser": "^20.2.3" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=", - "dev": true - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/micromatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", - "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", - "dev": true, - "dependencies": { - "braces": "^3.0.1", - "picomatch": "^2.2.3" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true, - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/mime-db": { - "version": "1.50.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.50.0.tgz", - "integrity": "sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.33", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.33.tgz", - "integrity": "sha512-plLElXp7pRDd0bNZHw+nMd52vRYjLwQjygaNg7ddJ2uJtTlmnTCjWuPKxVu6//AdaRuME84SvLW91sIkBqGT0g==", - "dev": true, - "dependencies": { - "mime-db": "1.50.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/min-indent": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", - "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/mini-css-extract-plugin": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.4.2.tgz", - "integrity": "sha512-ZmqShkn79D36uerdED+9qdo1ZYG8C1YsWvXu0UMJxurZnSdgz7gQKO2EGv8T55MhDqG3DYmGtizZNpM/UbTlcA==", - "dev": true, - "dependencies": { - "schema-utils": "^3.1.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - } - }, - "node_modules/mini-css-extract-plugin/node_modules/schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", - "dev": true - }, - "node_modules/minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - }, - "node_modules/minimist-options": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", - "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", - "dev": true, - "dependencies": { - "arrify": "^1.0.1", - "is-plain-obj": "^1.1.0", - "kind-of": "^6.0.3" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/minipass": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.5.tgz", - "integrity": "sha512-+8NzxD82XQoNKNrl1d/FSi+X8wAEWR+sbYAfIvub4Nz0d22plFG72CEVVaufV8PNf4qSslFTD8VMOxNVhHCjTw==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minizlib": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "dev": true, - "dependencies": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true, - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/multicast-dns": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-6.2.3.tgz", - "integrity": "sha512-ji6J5enbMyGRHIAkAOu3WdV8nggqviKCEKtXcOqfphZZtQrmHKycfynJ2V7eVPUA4NhJ6V7Wf4TmGbTwKE9B6g==", - "dev": true, - "dependencies": { - "dns-packet": "^1.3.1", - "thunky": "^1.0.2" - }, - "bin": { - "multicast-dns": "cli.js" - } - }, - "node_modules/multicast-dns-service-types": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz", - "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=", - "dev": true - }, - "node_modules/nan": { - "version": "2.15.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", - "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==", - "dev": true - }, - "node_modules/nanocolors": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/nanocolors/-/nanocolors-0.1.12.tgz", - "integrity": "sha512-2nMHqg1x5PU+unxX7PGY7AuYxl2qDx7PSrTRjizr8sxdd3l/3hBuWWaki62qmtYm2U5i4Z5E7GbjlyDFhs9/EQ==", - "dev": true - }, - "node_modules/nanoid": { - "version": "3.1.30", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.30.tgz", - "integrity": "sha512-zJpuPDwOv8D2zq2WRoMe1HsfZthVewpel9CAvTfc/2mBD1uUT/agc5f7GHGWXlYkFvi1mVxe4IjvP2HNrop7nQ==", - "dev": true, - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", - "dev": true - }, - "node_modules/negotiator": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", - "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "dev": true - }, - "node_modules/no-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", - "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", - "dev": true, - "dependencies": { - "lower-case": "^2.0.2", - "tslib": "^2.0.3" - } - }, - "node_modules/node-fetch": { - "version": "2.6.6", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.6.tgz", - "integrity": "sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - } - }, - "node_modules/node-forge": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", - "integrity": "sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==", - "dev": true, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/node-gyp": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-7.1.2.tgz", - "integrity": "sha512-CbpcIo7C3eMu3dL1c3d0xw449fHIGALIJsRP4DDPHpyiW8vcriNY7ubh9TE4zEKfSxscY7PjeFnshE7h75ynjQ==", - "dev": true, - "dependencies": { - "env-paths": "^2.2.0", - "glob": "^7.1.4", - "graceful-fs": "^4.2.3", - "nopt": "^5.0.0", - "npmlog": "^4.1.2", - "request": "^2.88.2", - "rimraf": "^3.0.2", - "semver": "^7.3.2", - "tar": "^6.0.2", - "which": "^2.0.2" - }, - "bin": { - "node-gyp": "bin/node-gyp.js" - }, - "engines": { - "node": ">= 10.12.0" - } - }, - "node_modules/node-gyp/node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/node-gyp/node_modules/semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/node-releases": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.0.tgz", - "integrity": "sha512-aA87l0flFYMzCHpTM3DERFSYxc6lv/BltdbRTOMZuxZ0cwZCD3mejE5n9vLhSJCN++/eOqr77G1IO5uXxlQYWA==", - "dev": true - }, - "node_modules/node-sass": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-6.0.1.tgz", - "integrity": "sha512-f+Rbqt92Ful9gX0cGtdYwjTrWAaGURgaK5rZCWOgCNyGWusFYHhbqCCBoFBeat+HKETOU02AyTxNhJV0YZf2jQ==", - "dev": true, - "hasInstallScript": true, - "dependencies": { - "async-foreach": "^0.1.3", - "chalk": "^1.1.1", - "cross-spawn": "^7.0.3", - "gaze": "^1.0.0", - "get-stdin": "^4.0.1", - "glob": "^7.0.3", - "lodash": "^4.17.15", - "meow": "^9.0.0", - "nan": "^2.13.2", - "node-gyp": "^7.1.0", - "npmlog": "^4.0.0", - "request": "^2.88.0", - "sass-graph": "2.2.5", - "stdout-stream": "^1.4.0", - "true-case-path": "^1.0.2" - }, - "bin": { - "node-sass": "bin/node-sass" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/node-sass/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/node-sass/node_modules/ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/node-sass/node_modules/chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "dependencies": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/node-sass/node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/node-sass/node_modules/supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/nopt": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", - "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", - "dev": true, - "dependencies": { - "abbrev": "1" - }, - "bin": { - "nopt": "bin/nopt.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/normalize-package-data": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", - "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", - "dev": true, - "dependencies": { - "hosted-git-info": "^4.0.1", - "is-core-module": "^2.5.0", - "semver": "^7.3.4", - "validate-npm-package-license": "^3.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/normalize-package-data/node_modules/semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/npmlog": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", - "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", - "dev": true, - "dependencies": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "node_modules/nth-check": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz", - "integrity": "sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==", - "dev": true, - "dependencies": { - "boolbase": "^1.0.0" - }, - "funding": { - "url": "https://github.com/fb55/nth-check?sponsor=1" - } - }, - "node_modules/num2fraction": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", - "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", - "dev": true - }, - "node_modules/number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/oauth-sign": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.0.tgz", - "integrity": "sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-is": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", - "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz", - "integrity": "sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3", - "has-symbols": "^1.0.1", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.entries": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.5.tgz", - "integrity": "sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.values": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.5.tgz", - "integrity": "sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/obuf": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", - "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", - "dev": true - }, - "node_modules/on-finished": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", - "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", - "dev": true, - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/on-headers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/open": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/open/-/open-8.3.0.tgz", - "integrity": "sha512-7INcPWb1UcOwSQxAXTnBJ+FxVV4MPs/X++FWWBtgY69/J5lc+tCteMt/oFK1MnkyHC4VILLa9ntmwKTwDR4Q9w==", - "dev": true, - "dependencies": { - "define-lazy-prop": "^2.0.0", - "is-docker": "^2.1.1", - "is-wsl": "^2.2.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "dev": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-event": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/p-event/-/p-event-4.2.0.tgz", - "integrity": "sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ==", - "dev": true, - "dependencies": { - "p-timeout": "^3.1.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "dependencies": { - "p-limit": "^1.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/p-locate/node_modules/p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "dependencies": { - "p-try": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/p-locate/node_modules/p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/p-map": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", - "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/p-retry": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.1.tgz", - "integrity": "sha512-e2xXGNhZOZ0lfgR9kL34iGlU8N/KO0xZnQxVEwdeOvpqNDQfdnxIYizvWtK8RglUa3bGqI8g0R/BdfzLMxRkiA==", - "dev": true, - "dependencies": { - "@types/retry": "^0.12.0", - "retry": "^0.13.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/p-timeout": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", - "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", - "dev": true, - "dependencies": { - "p-finally": "^1.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/param-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", - "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", - "dev": true, - "dependencies": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/pascal-case": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", - "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", - "dev": true, - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-is-inside": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", - "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", - "dev": true - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=", - "dev": true - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", - "dev": true - }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true - }, - "node_modules/picomatch": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", - "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", - "dev": true, - "dependencies": { - "pinkie": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pkg-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", - "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", - "dev": true, - "dependencies": { - "find-up": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/portfinder": { - "version": "1.0.28", - "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz", - "integrity": "sha512-Se+2isanIcEqf2XMHjyUKskczxbPH7dQnlMjXX6+dybayyHvAf/TCgyMRlzf/B6QDhAEFOGes0pzRo3by4AbMA==", - "dev": true, - "dependencies": { - "async": "^2.6.2", - "debug": "^3.1.1", - "mkdirp": "^0.5.5" - }, - "engines": { - "node": ">= 0.12.0" - } - }, - "node_modules/portfinder/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/portfinder/node_modules/mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dev": true, - "dependencies": { - "minimist": "^1.2.5" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/postcss": { - "version": "8.3.9", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.3.9.tgz", - "integrity": "sha512-f/ZFyAKh9Dnqytx5X62jgjhhzttjZS7hMsohcI7HEI5tjELX/HxCy3EFhsRxyzGvrzFF+82XPvCS8T9TFleVJw==", - "dev": true, - "dependencies": { - "nanoid": "^3.1.28", - "picocolors": "^0.2.1", - "source-map-js": "^0.6.2" - }, - "engines": { - "node": "^10 || ^12 || >=14" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-attribute-case-insensitive": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-4.0.2.tgz", - "integrity": "sha512-clkFxk/9pcdb4Vkn0hAHq3YnxBQ2p0CGD1dy24jN+reBck+EWxMbxSUqN4Yj7t0w8csl87K6p0gxBe1utkJsYA==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2", - "postcss-selector-parser": "^6.0.2" - } - }, - "node_modules/postcss-attribute-case-insensitive/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-attribute-case-insensitive/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-attribute-case-insensitive/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-calc": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.0.0.tgz", - "integrity": "sha512-5NglwDrcbiy8XXfPM11F3HeC6hoT9W7GUH/Zi5U/p7u3Irv4rHhdDcIZwG0llHXV4ftsBjpfWMXAnXNl4lnt8g==", - "dev": true, - "dependencies": { - "postcss-selector-parser": "^6.0.2", - "postcss-value-parser": "^4.0.2" - }, - "peerDependencies": { - "postcss": "^8.2.2" - } - }, - "node_modules/postcss-color-functional-notation": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/postcss-color-functional-notation/-/postcss-color-functional-notation-2.0.1.tgz", - "integrity": "sha512-ZBARCypjEDofW4P6IdPVTLhDNXPRn8T2s1zHbZidW6rPaaZvcnCS2soYFIQJrMZSxiePJ2XIYTlcb2ztr/eT2g==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2", - "postcss-values-parser": "^2.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-color-functional-notation/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-color-functional-notation/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-color-functional-notation/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-color-gray": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-color-gray/-/postcss-color-gray-5.0.0.tgz", - "integrity": "sha512-q6BuRnAGKM/ZRpfDascZlIZPjvwsRye7UDNalqVz3s7GDxMtqPY6+Q871liNxsonUw8oC61OG+PSaysYpl1bnw==", - "dev": true, - "dependencies": { - "@csstools/convert-colors": "^1.4.0", - "postcss": "^7.0.5", - "postcss-values-parser": "^2.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-color-gray/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-color-gray/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-color-gray/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-color-hex-alpha": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/postcss-color-hex-alpha/-/postcss-color-hex-alpha-5.0.3.tgz", - "integrity": "sha512-PF4GDel8q3kkreVXKLAGNpHKilXsZ6xuu+mOQMHWHLPNyjiUBOr75sp5ZKJfmv1MCus5/DWUGcK9hm6qHEnXYw==", - "dev": true, - "dependencies": { - "postcss": "^7.0.14", - "postcss-values-parser": "^2.0.1" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-color-hex-alpha/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-color-hex-alpha/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-color-hex-alpha/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-color-mod-function": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/postcss-color-mod-function/-/postcss-color-mod-function-3.0.3.tgz", - "integrity": "sha512-YP4VG+xufxaVtzV6ZmhEtc+/aTXH3d0JLpnYfxqTvwZPbJhWqp8bSY3nfNzNRFLgB4XSaBA82OE4VjOOKpCdVQ==", - "dev": true, - "dependencies": { - "@csstools/convert-colors": "^1.4.0", - "postcss": "^7.0.2", - "postcss-values-parser": "^2.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-color-mod-function/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-color-mod-function/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-color-mod-function/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-color-rebeccapurple": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-4.0.1.tgz", - "integrity": "sha512-aAe3OhkS6qJXBbqzvZth2Au4V3KieR5sRQ4ptb2b2O8wgvB3SJBsdG+jsn2BZbbwekDG8nTfcCNKcSfe/lEy8g==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2", - "postcss-values-parser": "^2.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-color-rebeccapurple/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-color-rebeccapurple/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-color-rebeccapurple/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-colormin": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.2.0.tgz", - "integrity": "sha512-+HC6GfWU3upe5/mqmxuqYZ9B2Wl4lcoUUNkoaX59nEWV4EtADCMiBqui111Bu8R8IvaZTmqmxrqOAqjbHIwXPw==", - "dev": true, - "dependencies": { - "browserslist": "^4.16.6", - "caniuse-api": "^3.0.0", - "colord": "^2.0.1", - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-convert-values": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.0.1.tgz", - "integrity": "sha512-C3zR1Do2BkKkCgC0g3sF8TS0koF2G+mN8xxayZx3f10cIRmTaAnpgpRQZjNekTZxM2ciSPoh2IWJm0VZx8NoQg==", - "dev": true, - "dependencies": { - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-custom-media": { - "version": "7.0.8", - "resolved": "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-7.0.8.tgz", - "integrity": "sha512-c9s5iX0Ge15o00HKbuRuTqNndsJUbaXdiNsksnVH8H4gdc+zbLzr/UasOwNG6CTDpLFekVY4672eWdiiWu2GUg==", - "dev": true, - "dependencies": { - "postcss": "^7.0.14" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-custom-media/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-custom-media/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-custom-media/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-custom-properties": { - "version": "8.0.11", - "resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-8.0.11.tgz", - "integrity": "sha512-nm+o0eLdYqdnJ5abAJeXp4CEU1c1k+eB2yMCvhgzsds/e0umabFrN6HoTy/8Q4K5ilxERdl/JD1LO5ANoYBeMA==", - "dev": true, - "dependencies": { - "postcss": "^7.0.17", - "postcss-values-parser": "^2.0.1" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-custom-properties/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-custom-properties/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-custom-properties/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-custom-selectors": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-custom-selectors/-/postcss-custom-selectors-5.1.2.tgz", - "integrity": "sha512-DSGDhqinCqXqlS4R7KGxL1OSycd1lydugJ1ky4iRXPHdBRiozyMHrdu0H3o7qNOCiZwySZTUI5MV0T8QhCLu+w==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2", - "postcss-selector-parser": "^5.0.0-rc.3" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-custom-selectors/node_modules/cssesc": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", - "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", - "dev": true, - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss-custom-selectors/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-custom-selectors/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-custom-selectors/node_modules/postcss-selector-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", - "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", - "dev": true, - "dependencies": { - "cssesc": "^2.0.0", - "indexes-of": "^1.0.1", - "uniq": "^1.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss-custom-selectors/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-dir-pseudo-class": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-dir-pseudo-class/-/postcss-dir-pseudo-class-5.0.0.tgz", - "integrity": "sha512-3pm4oq8HYWMZePJY+5ANriPs3P07q+LW6FAdTlkFH2XqDdP4HeeJYMOzn0HYLhRSjBO3fhiqSwwU9xEULSrPgw==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2", - "postcss-selector-parser": "^5.0.0-rc.3" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/postcss-dir-pseudo-class/node_modules/cssesc": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", - "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", - "dev": true, - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss-dir-pseudo-class/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-dir-pseudo-class/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-dir-pseudo-class/node_modules/postcss-selector-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", - "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", - "dev": true, - "dependencies": { - "cssesc": "^2.0.0", - "indexes-of": "^1.0.1", - "uniq": "^1.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss-dir-pseudo-class/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-discard-comments": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.0.1.tgz", - "integrity": "sha512-lgZBPTDvWrbAYY1v5GYEv8fEO/WhKOu/hmZqmCYfrpD6eyDWWzAOsl2rF29lpvziKO02Gc5GJQtlpkTmakwOWg==", - "dev": true, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-duplicates": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.0.1.tgz", - "integrity": "sha512-svx747PWHKOGpAXXQkCc4k/DsWo+6bc5LsVrAsw+OU+Ibi7klFZCyX54gjYzX4TH+f2uzXjRviLARxkMurA2bA==", - "dev": true, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-empty": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.0.1.tgz", - "integrity": "sha512-vfU8CxAQ6YpMxV2SvMcMIyF2LX1ZzWpy0lqHDsOdaKKLQVQGVP1pzhrI9JlsO65s66uQTfkQBKBD/A5gp9STFw==", - "dev": true, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-discard-overridden": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.0.1.tgz", - "integrity": "sha512-Y28H7y93L2BpJhrdUR2SR2fnSsT+3TVx1NmVQLbcnZWwIUpJ7mfcTC6Za9M2PG6w8j7UQRfzxqn8jU2VwFxo3Q==", - "dev": true, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-double-position-gradients": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-1.0.0.tgz", - "integrity": "sha512-G+nV8EnQq25fOI8CH/B6krEohGWnF5+3A6H/+JEpOncu5dCnkS1QQ6+ct3Jkaepw1NGVqqOZH6lqrm244mCftA==", - "dev": true, - "dependencies": { - "postcss": "^7.0.5", - "postcss-values-parser": "^2.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-double-position-gradients/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-double-position-gradients/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-double-position-gradients/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-env-function": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/postcss-env-function/-/postcss-env-function-2.0.2.tgz", - "integrity": "sha512-rwac4BuZlITeUbiBq60h/xbLzXY43qOsIErngWa4l7Mt+RaSkT7QBjXVGTcBHupykkblHMDrBFh30zchYPaOUw==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2", - "postcss-values-parser": "^2.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-env-function/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-env-function/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-env-function/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-focus-visible": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-focus-visible/-/postcss-focus-visible-4.0.0.tgz", - "integrity": "sha512-Z5CkWBw0+idJHSV6+Bgf2peDOFf/x4o+vX/pwcNYrWpXFrSfTkQ3JQ1ojrq9yS+upnAlNRHeg8uEwFTgorjI8g==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-focus-visible/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-focus-visible/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-focus-visible/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-focus-within": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-focus-within/-/postcss-focus-within-3.0.0.tgz", - "integrity": "sha512-W0APui8jQeBKbCGZudW37EeMCjDeVxKgiYfIIEo8Bdh5SpB9sxds/Iq8SEuzS0Q4YFOlG7EPFulbbxujpkrV2w==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-focus-within/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-focus-within/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-focus-within/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-font-variant": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-font-variant/-/postcss-font-variant-4.0.1.tgz", - "integrity": "sha512-I3ADQSTNtLTTd8uxZhtSOrTCQ9G4qUVKPjHiDk0bV75QSxXjVWiJVJ2VLdspGUi9fbW9BcjKJoRvxAH1pckqmA==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2" - } - }, - "node_modules/postcss-font-variant/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-font-variant/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-font-variant/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-gap-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/postcss-gap-properties/-/postcss-gap-properties-2.0.0.tgz", - "integrity": "sha512-QZSqDaMgXCHuHTEzMsS2KfVDOq7ZFiknSpkrPJY6jmxbugUPTuSzs/vuE5I3zv0WAS+3vhrlqhijiprnuQfzmg==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-gap-properties/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-gap-properties/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-gap-properties/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-image-set-function": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/postcss-image-set-function/-/postcss-image-set-function-3.0.1.tgz", - "integrity": "sha512-oPTcFFip5LZy8Y/whto91L9xdRHCWEMs3e1MdJxhgt4jy2WYXfhkng59fH5qLXSCPN8k4n94p1Czrfe5IOkKUw==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2", - "postcss-values-parser": "^2.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-image-set-function/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-image-set-function/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-image-set-function/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-initial": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/postcss-initial/-/postcss-initial-3.0.4.tgz", - "integrity": "sha512-3RLn6DIpMsK1l5UUy9jxQvoDeUN4gP939tDcKUHD/kM8SGSKbFAnvkpFpj3Bhtz3HGk1jWY5ZNWX6mPta5M9fg==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2" - } - }, - "node_modules/postcss-initial/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-initial/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-initial/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-lab-function": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/postcss-lab-function/-/postcss-lab-function-2.0.1.tgz", - "integrity": "sha512-whLy1IeZKY+3fYdqQFuDBf8Auw+qFuVnChWjmxm/UhHWqNHZx+B99EwxTvGYmUBqe3Fjxs4L1BoZTJmPu6usVg==", - "dev": true, - "dependencies": { - "@csstools/convert-colors": "^1.4.0", - "postcss": "^7.0.2", - "postcss-values-parser": "^2.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-lab-function/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-lab-function/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-lab-function/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-loader": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.2.0.tgz", - "integrity": "sha512-H9hv447QjQJVDbHj3OUdciyAXY3v5+UDduzEytAlZCVHCpNAAg/mCSwhYYqZr9BiGYhmYspU8QXxZwiHTLn3yA==", - "dev": true, - "dependencies": { - "cosmiconfig": "^7.0.0", - "klona": "^2.0.4", - "semver": "^7.3.5" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "postcss": "^7.0.0 || ^8.0.1", - "webpack": "^5.0.0" - } - }, - "node_modules/postcss-loader/node_modules/semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/postcss-logical": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-logical/-/postcss-logical-3.0.0.tgz", - "integrity": "sha512-1SUKdJc2vuMOmeItqGuNaC+N8MzBWFWEkAnRnLpFYj1tGGa7NqyVBujfRtgNa2gXR+6RkGUiB2O5Vmh7E2RmiA==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-logical/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-logical/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-logical/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-media-minmax": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-media-minmax/-/postcss-media-minmax-4.0.0.tgz", - "integrity": "sha512-fo9moya6qyxsjbFAYl97qKO9gyre3qvbMnkOZeZwlsW6XYFsvs2DMGDlchVLfAd8LHPZDxivu/+qW2SMQeTHBw==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-media-minmax/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-media-minmax/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-media-minmax/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-merge-longhand": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.0.2.tgz", - "integrity": "sha512-BMlg9AXSI5G9TBT0Lo/H3PfUy63P84rVz3BjCFE9e9Y9RXQZD3+h3YO1kgTNsNJy7bBc1YQp8DmSnwLIW5VPcw==", - "dev": true, - "dependencies": { - "css-color-names": "^1.0.1", - "postcss-value-parser": "^4.1.0", - "stylehacks": "^5.0.1" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-merge-rules": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.0.2.tgz", - "integrity": "sha512-5K+Md7S3GwBewfB4rjDeol6V/RZ8S+v4B66Zk2gChRqLTCC8yjnHQ601omj9TKftS19OPGqZ/XzoqpzNQQLwbg==", - "dev": true, - "dependencies": { - "browserslist": "^4.16.6", - "caniuse-api": "^3.0.0", - "cssnano-utils": "^2.0.1", - "postcss-selector-parser": "^6.0.5", - "vendors": "^1.0.3" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-font-values": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.0.1.tgz", - "integrity": "sha512-7JS4qIsnqaxk+FXY1E8dHBDmraYFWmuL6cgt0T1SWGRO5bzJf8sUoelwa4P88LEWJZweHevAiDKxHlofuvtIoA==", - "dev": true, - "dependencies": { - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-gradients": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.0.2.tgz", - "integrity": "sha512-7Do9JP+wqSD6Prittitt2zDLrfzP9pqKs2EcLX7HJYxsxCOwrrcLt4x/ctQTsiOw+/8HYotAoqNkrzItL19SdQ==", - "dev": true, - "dependencies": { - "colord": "^2.6", - "cssnano-utils": "^2.0.1", - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-params": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.0.1.tgz", - "integrity": "sha512-4RUC4k2A/Q9mGco1Z8ODc7h+A0z7L7X2ypO1B6V8057eVK6mZ6xwz6QN64nHuHLbqbclkX1wyzRnIrdZehTEHw==", - "dev": true, - "dependencies": { - "alphanum-sort": "^1.0.2", - "browserslist": "^4.16.0", - "cssnano-utils": "^2.0.1", - "postcss-value-parser": "^4.1.0", - "uniqs": "^2.0.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-minify-selectors": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.1.0.tgz", - "integrity": "sha512-NzGBXDa7aPsAcijXZeagnJBKBPMYLaJJzB8CQh6ncvyl2sIndLVWfbcDi0SBjRWk5VqEjXvf8tYwzoKf4Z07og==", - "dev": true, - "dependencies": { - "alphanum-sort": "^1.0.2", - "postcss-selector-parser": "^6.0.5" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-modules-extract-imports": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", - "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", - "dev": true, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-modules-local-by-default": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz", - "integrity": "sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==", - "dev": true, - "dependencies": { - "icss-utils": "^5.0.0", - "postcss-selector-parser": "^6.0.2", - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-modules-scope": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", - "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", - "dev": true, - "dependencies": { - "postcss-selector-parser": "^6.0.4" - }, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-modules-values": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", - "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", - "dev": true, - "dependencies": { - "icss-utils": "^5.0.0" - }, - "engines": { - "node": "^10 || ^12 || >= 14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/postcss-nesting": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-7.0.1.tgz", - "integrity": "sha512-FrorPb0H3nuVq0Sff7W2rnc3SmIcruVC6YwpcS+k687VxyxO33iE1amna7wHuRVzM8vfiYofXSBHNAZ3QhLvYg==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-nesting/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-nesting/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-nesting/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-normalize-charset": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.0.1.tgz", - "integrity": "sha512-6J40l6LNYnBdPSk+BHZ8SF+HAkS4q2twe5jnocgd+xWpz/mx/5Sa32m3W1AA8uE8XaXN+eg8trIlfu8V9x61eg==", - "dev": true, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-display-values": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.0.1.tgz", - "integrity": "sha512-uupdvWk88kLDXi5HEyI9IaAJTE3/Djbcrqq8YgjvAVuzgVuqIk3SuJWUisT2gaJbZm1H9g5k2w1xXilM3x8DjQ==", - "dev": true, - "dependencies": { - "cssnano-utils": "^2.0.1", - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-positions": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.0.1.tgz", - "integrity": "sha512-rvzWAJai5xej9yWqlCb1OWLd9JjW2Ex2BCPzUJrbaXmtKtgfL8dBMOOMTX6TnvQMtjk3ei1Lswcs78qKO1Skrg==", - "dev": true, - "dependencies": { - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-repeat-style": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.0.1.tgz", - "integrity": "sha512-syZ2itq0HTQjj4QtXZOeefomckiV5TaUO6ReIEabCh3wgDs4Mr01pkif0MeVwKyU/LHEkPJnpwFKRxqWA/7O3w==", - "dev": true, - "dependencies": { - "cssnano-utils": "^2.0.1", - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-string": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.0.1.tgz", - "integrity": "sha512-Ic8GaQ3jPMVl1OEn2U//2pm93AXUcF3wz+OriskdZ1AOuYV25OdgS7w9Xu2LO5cGyhHCgn8dMXh9bO7vi3i9pA==", - "dev": true, - "dependencies": { - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-timing-functions": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.0.1.tgz", - "integrity": "sha512-cPcBdVN5OsWCNEo5hiXfLUnXfTGtSFiBU9SK8k7ii8UD7OLuznzgNRYkLZow11BkQiiqMcgPyh4ZqXEEUrtQ1Q==", - "dev": true, - "dependencies": { - "cssnano-utils": "^2.0.1", - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-unicode": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.0.1.tgz", - "integrity": "sha512-kAtYD6V3pK0beqrU90gpCQB7g6AOfP/2KIPCVBKJM2EheVsBQmx/Iof+9zR9NFKLAx4Pr9mDhogB27pmn354nA==", - "dev": true, - "dependencies": { - "browserslist": "^4.16.0", - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-url": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.0.2.tgz", - "integrity": "sha512-k4jLTPUxREQ5bpajFQZpx8bCF2UrlqOTzP9kEqcEnOfwsRshWs2+oAFIHfDQB8GO2PaUaSE0NlTAYtbluZTlHQ==", - "dev": true, - "dependencies": { - "is-absolute-url": "^3.0.3", - "normalize-url": "^6.0.1", - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-normalize-whitespace": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.0.1.tgz", - "integrity": "sha512-iPklmI5SBnRvwceb/XH568yyzK0qRVuAG+a1HFUsFRf11lEJTiQQa03a4RSCQvLKdcpX7XsI1Gen9LuLoqwiqA==", - "dev": true, - "dependencies": { - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-ordered-values": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.0.2.tgz", - "integrity": "sha512-8AFYDSOYWebJYLyJi3fyjl6CqMEG/UVworjiyK1r573I56kb3e879sCJLGvR3merj+fAdPpVplXKQZv+ey6CgQ==", - "dev": true, - "dependencies": { - "cssnano-utils": "^2.0.1", - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-overflow-shorthand": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/postcss-overflow-shorthand/-/postcss-overflow-shorthand-2.0.0.tgz", - "integrity": "sha512-aK0fHc9CBNx8jbzMYhshZcEv8LtYnBIRYQD5i7w/K/wS9c2+0NSR6B3OVMu5y0hBHYLcMGjfU+dmWYNKH0I85g==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-overflow-shorthand/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-overflow-shorthand/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-overflow-shorthand/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-page-break": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/postcss-page-break/-/postcss-page-break-2.0.0.tgz", - "integrity": "sha512-tkpTSrLpfLfD9HvgOlJuigLuk39wVTbbd8RKcy8/ugV2bNBUW3xU+AIqyxhDrQr1VUj1RmyJrBn1YWrqUm9zAQ==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2" - } - }, - "node_modules/postcss-page-break/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-page-break/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-page-break/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-place": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-place/-/postcss-place-4.0.1.tgz", - "integrity": "sha512-Zb6byCSLkgRKLODj/5mQugyuj9bvAAw9LqJJjgwz5cYryGeXfFZfSXoP1UfveccFmeq0b/2xxwcTEVScnqGxBg==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2", - "postcss-values-parser": "^2.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-place/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-place/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-place/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-preset-env": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-6.7.0.tgz", - "integrity": "sha512-eU4/K5xzSFwUFJ8hTdTQzo2RBLbDVt83QZrAvI07TULOkmyQlnYlpwep+2yIK+K+0KlZO4BvFcleOCCcUtwchg==", - "dev": true, - "dependencies": { - "autoprefixer": "^9.6.1", - "browserslist": "^4.6.4", - "caniuse-lite": "^1.0.30000981", - "css-blank-pseudo": "^0.1.4", - "css-has-pseudo": "^0.10.0", - "css-prefers-color-scheme": "^3.1.1", - "cssdb": "^4.4.0", - "postcss": "^7.0.17", - "postcss-attribute-case-insensitive": "^4.0.1", - "postcss-color-functional-notation": "^2.0.1", - "postcss-color-gray": "^5.0.0", - "postcss-color-hex-alpha": "^5.0.3", - "postcss-color-mod-function": "^3.0.3", - "postcss-color-rebeccapurple": "^4.0.1", - "postcss-custom-media": "^7.0.8", - "postcss-custom-properties": "^8.0.11", - "postcss-custom-selectors": "^5.1.2", - "postcss-dir-pseudo-class": "^5.0.0", - "postcss-double-position-gradients": "^1.0.0", - "postcss-env-function": "^2.0.2", - "postcss-focus-visible": "^4.0.0", - "postcss-focus-within": "^3.0.0", - "postcss-font-variant": "^4.0.0", - "postcss-gap-properties": "^2.0.0", - "postcss-image-set-function": "^3.0.1", - "postcss-initial": "^3.0.0", - "postcss-lab-function": "^2.0.1", - "postcss-logical": "^3.0.0", - "postcss-media-minmax": "^4.0.0", - "postcss-nesting": "^7.0.0", - "postcss-overflow-shorthand": "^2.0.0", - "postcss-page-break": "^2.0.0", - "postcss-place": "^4.0.1", - "postcss-pseudo-class-any-link": "^6.0.0", - "postcss-replace-overflow-wrap": "^3.0.0", - "postcss-selector-matches": "^4.0.0", - "postcss-selector-not": "^4.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-preset-env/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-preset-env/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-preset-env/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-pseudo-class-any-link": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-6.0.0.tgz", - "integrity": "sha512-lgXW9sYJdLqtmw23otOzrtbDXofUdfYzNm4PIpNE322/swES3VU9XlXHeJS46zT2onFO7V1QFdD4Q9LiZj8mew==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2", - "postcss-selector-parser": "^5.0.0-rc.3" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/postcss-pseudo-class-any-link/node_modules/cssesc": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", - "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", - "dev": true, - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss-pseudo-class-any-link/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-pseudo-class-any-link/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-pseudo-class-any-link/node_modules/postcss-selector-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", - "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", - "dev": true, - "dependencies": { - "cssesc": "^2.0.0", - "indexes-of": "^1.0.1", - "uniq": "^1.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss-pseudo-class-any-link/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-reduce-initial": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.0.1.tgz", - "integrity": "sha512-zlCZPKLLTMAqA3ZWH57HlbCjkD55LX9dsRyxlls+wfuRfqCi5mSlZVan0heX5cHr154Dq9AfbH70LyhrSAezJw==", - "dev": true, - "dependencies": { - "browserslist": "^4.16.0", - "caniuse-api": "^3.0.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-reduce-transforms": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.0.1.tgz", - "integrity": "sha512-a//FjoPeFkRuAguPscTVmRQUODP+f3ke2HqFNgGPwdYnpeC29RZdCBvGRGTsKpMURb/I3p6jdKoBQ2zI+9Q7kA==", - "dev": true, - "dependencies": { - "cssnano-utils": "^2.0.1", - "postcss-value-parser": "^4.1.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-replace-overflow-wrap": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-3.0.0.tgz", - "integrity": "sha512-2T5hcEHArDT6X9+9dVSPQdo7QHzG4XKclFT8rU5TzJPDN7RIRTbO9c4drUISOVemLj03aezStHCR2AIcr8XLpw==", - "dev": true, - "dependencies": { - "postcss": "^7.0.2" - } - }, - "node_modules/postcss-replace-overflow-wrap/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-replace-overflow-wrap/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-replace-overflow-wrap/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-selector-matches": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-selector-matches/-/postcss-selector-matches-4.0.0.tgz", - "integrity": "sha512-LgsHwQR/EsRYSqlwdGzeaPKVT0Ml7LAT6E75T8W8xLJY62CE4S/l03BWIt3jT8Taq22kXP08s2SfTSzaraoPww==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "postcss": "^7.0.2" - } - }, - "node_modules/postcss-selector-matches/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-selector-matches/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-selector-matches/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-selector-not": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-4.0.1.tgz", - "integrity": "sha512-YolvBgInEK5/79C+bdFMyzqTg6pkYqDbzZIST/PDMqa/o3qtXenD05apBG2jLgT0/BQ77d4U2UK12jWpilqMAQ==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "postcss": "^7.0.2" - } - }, - "node_modules/postcss-selector-not/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/postcss-selector-not/node_modules/postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "dependencies": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - } - }, - "node_modules/postcss-selector-not/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/postcss-selector-parser": { - "version": "6.0.6", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.6.tgz", - "integrity": "sha512-9LXrvaaX3+mcv5xkg5kFwqSzSH1JIObIx51PrndZwlmznwXRfxMddDvo9gve3gVR8ZTKgoFDdWkbRFmEhT4PMg==", - "dev": true, - "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss-svgo": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.0.2.tgz", - "integrity": "sha512-YzQuFLZu3U3aheizD+B1joQ94vzPfE6BNUcSYuceNxlVnKKsOtdo6hL9/zyC168Q8EwfLSgaDSalsUGa9f2C0A==", - "dev": true, - "dependencies": { - "postcss-value-parser": "^4.1.0", - "svgo": "^2.3.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-unique-selectors": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.0.1.tgz", - "integrity": "sha512-gwi1NhHV4FMmPn+qwBNuot1sG1t2OmacLQ/AX29lzyggnjd+MnVD5uqQmpXO3J17KGL2WAxQruj1qTd3H0gG/w==", - "dev": true, - "dependencies": { - "alphanum-sort": "^1.0.2", - "postcss-selector-parser": "^6.0.5", - "uniqs": "^2.0.0" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/postcss-value-parser": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.1.0.tgz", - "integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==", - "dev": true - }, - "node_modules/postcss-values-parser": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/postcss-values-parser/-/postcss-values-parser-2.0.1.tgz", - "integrity": "sha512-2tLuBsA6P4rYTNKCXYG/71C7j1pU6pK503suYOmn4xYrQIzW+opD+7FAFNuGSdZC/3Qfy334QbeMu7MEb8gOxg==", - "dev": true, - "dependencies": { - "flatten": "^1.0.2", - "indexes-of": "^1.0.1", - "uniq": "^1.0.1" - }, - "engines": { - "node": ">=6.14.4" - } - }, - "node_modules/postcss/node_modules/picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.4.1.tgz", - "integrity": "sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==", - "dev": true, - "bin": { - "prettier": "bin-prettier.js" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "dependencies": { - "fast-diff": "^1.1.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/pretty-error": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-3.0.4.tgz", - "integrity": "sha512-ytLFLfv1So4AO1UkoBF6GXQgJRaKbiSiGFICaOPNwQ3CMvBvXpLRubeQWyPGnsbV/t9ml9qto6IeCsho0aEvwQ==", - "dev": true, - "dependencies": { - "lodash": "^4.17.20", - "renderkid": "^2.0.6" - } - }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true - }, - "node_modules/progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dev": true, - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/proxy-addr/node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "dev": true, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/psl": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", - "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", - "dev": true - }, - "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", - "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", - "dev": true, - "engines": { - "node": ">=0.4.x" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/quick-lru": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", - "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", - "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", - "dev": true, - "dependencies": { - "bytes": "3.1.0", - "http-errors": "1.7.2", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/raw-body/node_modules/bytes": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", - "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", - "dev": true, - "dependencies": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/read-pkg-up/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/read-pkg-up/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg/node_modules/hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", - "dev": true - }, - "node_modules/read-pkg/node_modules/normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dev": true, - "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "node_modules/read-pkg/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/read-pkg/node_modules/type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "dev": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/rechoir": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", - "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", - "dev": true, - "dependencies": { - "resolve": "^1.9.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/redent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", - "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", - "dev": true, - "dependencies": { - "indent-string": "^4.0.0", - "strip-indent": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", - "dev": true - }, - "node_modules/regenerate-unicode-properties": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-9.0.0.tgz", - "integrity": "sha512-3E12UeNSPfjrgwjkR81m5J7Aw/T55Tu7nUyZVQYCKEOs+2dkxEY+DpPtZzO4YruuiPb7NkYLVcyJC4+zCbk5pA==", - "dev": true, - "dependencies": { - "regenerate": "^1.4.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regenerator-runtime": { - "version": "0.13.9", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", - "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", - "dev": true - }, - "node_modules/regenerator-transform": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.5.tgz", - "integrity": "sha512-eOf6vka5IO151Jfsw2NO9WpGX58W6wWmefK3I1zEGr0lOD0u8rwPaNqQL1aRxUaxLeKO3ArNh3VYg1KbaD+FFw==", - "dev": true, - "dependencies": { - "@babel/runtime": "^7.8.4" - } - }, - "node_modules/regexp.prototype.flags": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.3.1.tgz", - "integrity": "sha512-JiBdRBq91WlY7uRJ0ds7R+dU02i6LKi8r3BuQhNXn+kmeLN+EfHhfjqMRis1zJxnlu88hq/4dx0P2OP3APRTOA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, - "node_modules/regexpu-core": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.8.0.tgz", - "integrity": "sha512-1F6bYsoYiz6is+oz70NWur2Vlh9KWtswuRuzJOfeYUrfPX2o8n74AnUVaOGDbUqVGO9fNHu48/pjJO4sNVwsOg==", - "dev": true, - "dependencies": { - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^9.0.0", - "regjsgen": "^0.5.2", - "regjsparser": "^0.7.0", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regjsgen": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.2.tgz", - "integrity": "sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A==", - "dev": true - }, - "node_modules/regjsparser": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.7.0.tgz", - "integrity": "sha512-A4pcaORqmNMDVwUjWoTzuhwMGpP+NykpfqAsEgI1FSH/EzC7lrN5TMd+kN8YCovX+jMpu8eaqXgXPCa0g8FQNQ==", - "dev": true, - "dependencies": { - "jsesc": "~0.5.0" - }, - "bin": { - "regjsparser": "bin/parser" - } - }, - "node_modules/regjsparser/node_modules/jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - } - }, - "node_modules/relateurl": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", - "integrity": "sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=", - "dev": true, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/renderkid": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-2.0.7.tgz", - "integrity": "sha512-oCcFyxaMrKsKcTY59qnCAtmDVSLfPbrv6A3tVbPdFMMrv5jaK10V6m40cKsoPNhAqN6rmHW9sswW4o3ruSrwUQ==", - "dev": true, - "dependencies": { - "css-select": "^4.1.3", - "dom-converter": "^0.2.0", - "htmlparser2": "^6.1.0", - "lodash": "^4.17.21", - "strip-ansi": "^3.0.1" - } - }, - "node_modules/renderkid/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/renderkid/node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/request": { - "version": "2.88.2", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", - "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", - "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", - "dev": true, - "dependencies": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.5.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true - }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", - "dev": true - }, - "node_modules/resolve": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", - "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", - "dev": true, - "dependencies": { - "is-core-module": "^2.2.0", - "path-parse": "^1.0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "dependencies": { - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-cwd/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/retry": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", - "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true, - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "node_modules/sass-graph": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.5.tgz", - "integrity": "sha512-VFWDAHOe6mRuT4mZRd4eKE+d8Uedrk6Xnh7Sh9b4NGufQLQjOrvf/MQoOdx+0s92L89FeyUUNfU597j/3uNpag==", - "dev": true, - "dependencies": { - "glob": "^7.0.0", - "lodash": "^4.0.0", - "scss-tokenizer": "^0.2.3", - "yargs": "^13.3.2" - }, - "bin": { - "sassgraph": "bin/sassgraph" - } - }, - "node_modules/sass-loader": { - "version": "12.2.0", - "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.2.0.tgz", - "integrity": "sha512-qducnp5vSV+8A8MZxuH6zV0MUg4MOVISScl2wDTCAn/2WJX+9Auxh92O/rnkdR2bvi5QxZBafnzkzRrWGZvm7w==", - "dev": true, - "dependencies": { - "klona": "^2.0.4", - "neo-async": "^2.6.2" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "fibers": ">= 3.1.0", - "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0", - "sass": "^1.3.0", - "webpack": "^5.0.0" - }, - "peerDependenciesMeta": { - "fibers": { - "optional": true - }, - "node-sass": { - "optional": true - }, - "sass": { - "optional": true - } - } - }, - "node_modules/schema-utils": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", - "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.5", - "ajv": "^6.12.4", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 8.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/scss-tokenizer": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz", - "integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=", - "dev": true, - "dependencies": { - "js-base64": "^2.1.8", - "source-map": "^0.4.2" - } - }, - "node_modules/scss-tokenizer/node_modules/source-map": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", - "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", - "dev": true, - "dependencies": { - "amdefine": ">=0.0.4" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/seedrandom": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/seedrandom/-/seedrandom-2.4.3.tgz", - "integrity": "sha1-JDhQTa0zkXMUv/GKxNeU8W1qrsw=" - }, - "node_modules/select-hose": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", - "integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=", - "dev": true - }, - "node_modules/selfsigned": { - "version": "1.10.11", - "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-1.10.11.tgz", - "integrity": "sha512-aVmbPOfViZqOZPgRBT0+3u4yZFHpmnIghLMlAcb5/xhp5ZtB/RVnKhz5vl2M32CLXAqR4kha9zfhNg0Lf/sxKA==", - "dev": true, - "dependencies": { - "node-forge": "^0.10.0" - } - }, - "node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/send": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", - "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", - "dev": true, - "dependencies": { - "debug": "2.6.9", - "depd": "~1.1.2", - "destroy": "~1.0.4", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "~1.7.2", - "mime": "1.6.0", - "ms": "2.1.1", - "on-finished": "~2.3.0", - "range-parser": "~1.2.1", - "statuses": "~1.5.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/send/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/send/node_modules/debug/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "node_modules/send/node_modules/ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true - }, - "node_modules/serialize-javascript": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", - "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", - "dev": true, - "dependencies": { - "randombytes": "^2.1.0" - } - }, - "node_modules/serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=", - "dev": true, - "dependencies": { - "accepts": "~1.3.4", - "batch": "0.6.1", - "debug": "2.6.9", - "escape-html": "~1.0.3", - "http-errors": "~1.6.2", - "mime-types": "~2.1.17", - "parseurl": "~1.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/serve-index/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/serve-index/node_modules/http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", - "dev": true, - "dependencies": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/serve-index/node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - }, - "node_modules/serve-index/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "node_modules/serve-index/node_modules/setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", - "dev": true - }, - "node_modules/serve-static": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", - "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", - "dev": true, - "dependencies": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.17.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, - "node_modules/setprototypeof": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", - "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==", - "dev": true - }, - "node_modules/shallow-clone": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.5.tgz", - "integrity": "sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ==", - "dev": true - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/slice-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/sockjs": { - "version": "0.3.21", - "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.21.tgz", - "integrity": "sha512-DhbPFGpxjc6Z3I+uX07Id5ZO2XwYsWOrYjaSeieES78cq+JaJvVe5q/m1uvjIQhXinhIeCFRH6JgXe+mvVMyXw==", - "dev": true, - "dependencies": { - "faye-websocket": "^0.11.3", - "uuid": "^3.4.0", - "websocket-driver": "^0.7.4" - } - }, - "node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-js": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-0.6.2.tgz", - "integrity": "sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.20", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.20.tgz", - "integrity": "sha512-n1lZZ8Ve4ksRqizaBQgxXDgKwttHDhyfQjA6YZZn8+AroHbsIz+JjwxQDxbp+7y5OYCI8t1Yk7etjD9CRd2hIw==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/spdx-correct": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", - "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", - "dev": true, - "dependencies": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", - "dev": true - }, - "node_modules/spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dev": true, - "dependencies": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-license-ids": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.10.tgz", - "integrity": "sha512-oie3/+gKf7QtpitB0LYLETe+k8SifzsX4KixvpOsbI6S0kRiRQ5MKOio8eMSAKQ17N06+wdEOXRiId+zOxo0hA==", - "dev": true - }, - "node_modules/spdy": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", - "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", - "dev": true, - "dependencies": { - "debug": "^4.1.0", - "handle-thing": "^2.0.0", - "http-deceiver": "^1.2.7", - "select-hose": "^2.0.0", - "spdy-transport": "^3.0.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/spdy-transport": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", - "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", - "dev": true, - "dependencies": { - "debug": "^4.1.0", - "detect-node": "^2.0.4", - "hpack.js": "^2.1.6", - "obuf": "^1.1.2", - "readable-stream": "^3.0.6", - "wbuf": "^1.7.3" - } - }, - "node_modules/spdy-transport/node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - }, - "node_modules/sshpk": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", - "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", - "dev": true, - "dependencies": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - }, - "bin": { - "sshpk-conv": "bin/sshpk-conv", - "sshpk-sign": "bin/sshpk-sign", - "sshpk-verify": "bin/sshpk-verify" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/stable": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", - "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", - "dev": true - }, - "node_modules/statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/stdout-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.1.tgz", - "integrity": "sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA==", - "dev": true, - "dependencies": { - "readable-stream": "^2.0.1" - } - }, - "node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, - "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/string-width/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/string-width/node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz", - "integrity": "sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz", - "integrity": "sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/strip-indent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", - "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", - "dev": true, - "dependencies": { - "min-indent": "^1.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/style-loader": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-3.3.0.tgz", - "integrity": "sha512-szANub7ksJtQioJYtpbWwh1hUl99uK15n5HDlikeCRil/zYMZgSxucHddyF/4A3qJMUiAjPhFowrrQuNMA7jwQ==", - "dev": true, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.0.0" - } - }, - "node_modules/stylehacks": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.0.1.tgz", - "integrity": "sha512-Es0rVnHIqbWzveU1b24kbw92HsebBepxfcqe5iix7t9j0PQqhs0IxXVXv0pY2Bxa08CgMkzD6OWql7kbGOuEdA==", - "dev": true, - "dependencies": { - "browserslist": "^4.16.0", - "postcss-selector-parser": "^6.0.4" - }, - "engines": { - "node": "^10 || ^12 || >=14.0" - }, - "peerDependencies": { - "postcss": "^8.2.15" - } - }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/svgo": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.7.0.tgz", - "integrity": "sha512-aDLsGkre4fTDCWvolyW+fs8ZJFABpzLXbtdK1y71CKnHzAnpDxKXPj2mNKj+pyOXUCzFHzuxRJ94XOFygOWV3w==", - "dev": true, - "dependencies": { - "@trysound/sax": "0.2.0", - "commander": "^7.2.0", - "css-select": "^4.1.3", - "css-tree": "^1.1.3", - "csso": "^4.2.0", - "nanocolors": "^0.1.12", - "stable": "^0.1.8" - }, - "bin": { - "svgo": "bin/svgo" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/svgo/node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "dev": true, - "engines": { - "node": ">= 10" - } - }, - "node_modules/table": { - "version": "6.7.2", - "resolved": "https://registry.npmjs.org/table/-/table-6.7.2.tgz", - "integrity": "sha512-UFZK67uvyNivLeQbVtkiUs8Uuuxv24aSL4/Vil2PJVtMgU8Lx0CYkP12uCGa3kjyQzOSgV1+z9Wkb82fCGsO0g==", - "dev": true, - "dependencies": { - "ajv": "^8.0.1", - "lodash.clonedeep": "^4.5.0", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/table/node_modules/ajv": { - "version": "8.6.3", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.3.tgz", - "integrity": "sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/table/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/table/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/table/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/table/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tapable": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.1.10.tgz", - "integrity": "sha1-KcNXB8K3DlDQdIK10gLo7URtr9Q=", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/tar": { - "version": "6.1.11", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", - "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", - "dev": true, - "dependencies": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^3.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/terser": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.0.tgz", - "integrity": "sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==", - "dev": true, - "dependencies": { - "commander": "^2.20.0", - "source-map": "~0.6.1", - "source-map-support": "~0.5.12" - }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/terser-webpack-plugin": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.2.4.tgz", - "integrity": "sha512-E2CkNMN+1cho04YpdANyRrn8CyN4yMy+WdFKZIySFZrGXZxJwJP6PMNGGc/Mcr6qygQHUUqRxnAPmi0M9f00XA==", - "dev": true, - "dependencies": { - "jest-worker": "^27.0.6", - "p-limit": "^3.1.0", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.0", - "source-map": "^0.6.1", - "terser": "^5.7.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "uglify-js": { - "optional": true - } - } - }, - "node_modules/terser-webpack-plugin/node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, - "node_modules/terser-webpack-plugin/node_modules/schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/terser-webpack-plugin/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/terser-webpack-plugin/node_modules/terser": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.9.0.tgz", - "integrity": "sha512-h5hxa23sCdpzcye/7b8YqbE5OwKca/ni0RQz1uRX3tGh8haaGHqcuSqbGRybuAKNdntZ0mDgFNXPJ48xQ2RXKQ==", - "dev": true, - "dependencies": { - "commander": "^2.20.0", - "source-map": "~0.7.2", - "source-map-support": "~0.5.20" - }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/terser-webpack-plugin/node_modules/terser/node_modules/source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/terser/node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, - "node_modules/terser/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", - "dev": true - }, - "node_modules/thunky": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", - "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", - "dev": true - }, - "node_modules/timsort": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", - "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=", - "dev": true - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/toidentifier": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", - "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/tough-cookie": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", - "dev": true, - "dependencies": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" - }, - "node_modules/trim-newlines": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", - "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/true-case-path": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.3.tgz", - "integrity": "sha512-m6s2OdQe5wgpFMC+pAJ+q9djG82O2jcHPOI6RNg1yy9rCYR+WD6Nbpl32fDpfC56nirdRy+opFa/Vk7HYhqaew==", - "dev": true, - "dependencies": { - "glob": "^7.1.2" - } - }, - "node_modules/tsconfig-paths": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.11.0.tgz", - "integrity": "sha512-7ecdYDnIdmv639mmDwslG6KQg1Z9STTz1j7Gcz0xa+nshh/gKDAHcPxRbWOsA3SPp0tXP2leTcY9Kw+NAkfZzA==", - "dev": true, - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.1", - "minimist": "^1.2.0", - "strip-bom": "^3.0.0" - } - }, - "node_modules/tsconfig-paths/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", - "dev": true, - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "node_modules/tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", - "dev": true - }, - "node_modules/tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "dev": true, - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": "*" - } - }, - "node_modules/tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-fest": { - "version": "0.18.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", - "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dev": true, - "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/unbox-primitive": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz", - "integrity": "sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "has-bigints": "^1.0.1", - "has-symbols": "^1.0.2", - "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "dev": true, - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz", - "integrity": "sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.0.0.tgz", - "integrity": "sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/uniq": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", - "integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=", - "dev": true - }, - "node_modules/uniqs": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/uniqs/-/uniqs-2.0.0.tgz", - "integrity": "sha1-/+3ks2slKQaW5uFl1KWe25mOawI=", - "dev": true - }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", - "dev": true, - "dependencies": { - "punycode": "1.3.2", - "querystring": "0.2.0" - } - }, - "node_modules/url/node_modules/punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", - "dev": true - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "node_modules/utila": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", - "integrity": "sha1-ihagXURWV6Oupe7MWxKk+lN5dyw=", - "dev": true - }, - "node_modules/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", - "dev": true, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", - "dev": true, - "bin": { - "uuid": "bin/uuid" - } - }, - "node_modules/v8-compile-cache": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", - "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", - "dev": true - }, - "node_modules/validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "dependencies": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/vendors": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.4.tgz", - "integrity": "sha512-/juG65kTL4Cy2su4P8HjtkTxk6VmJDiOPBufWniqQ6wknac6jNiXS9vU+hO3wgusiyqWlzTbVHi0dyJqRONg3w==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "dev": true, - "engines": [ - "node >=0.6.0" - ], - "dependencies": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, - "node_modules/verror/node_modules/core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true - }, - "node_modules/watchpack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.2.0.tgz", - "integrity": "sha512-up4YAn/XHgZHIxFBVCdlMiWDj6WaLKpwVeGQk2I5thdYxF/KmF0aaz6TfJZ/hfl1h/XlcDr7k1KH7ThDagpFaA==", - "dev": true, - "dependencies": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/wbuf": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", - "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", - "dev": true, - "dependencies": { - "minimalistic-assert": "^1.0.0" - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" - }, - "node_modules/webpack": { - "version": "5.58.2", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.58.2.tgz", - "integrity": "sha512-3S6e9Vo1W2ijk4F4PPWRIu6D/uGgqaPmqw+av3W3jLDujuNkdxX5h5c+RQ6GkjVR+WwIPOfgY8av+j5j4tMqJw==", - "dev": true, - "dependencies": { - "@types/eslint-scope": "^3.7.0", - "@types/estree": "^0.0.50", - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/wasm-edit": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1", - "acorn": "^8.4.1", - "acorn-import-assertions": "^1.7.6", - "browserslist": "^4.14.5", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.8.3", - "es-module-lexer": "^0.9.0", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.4", - "json-parse-better-errors": "^1.0.2", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.1.0", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.1.3", - "watchpack": "^2.2.0", - "webpack-sources": "^3.2.0" - }, - "bin": { - "webpack": "bin/webpack.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependenciesMeta": { - "webpack-cli": { - "optional": true - } - } - }, - "node_modules/webpack-cli": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.9.0.tgz", - "integrity": "sha512-n/jZZBMzVEl4PYIBs+auy2WI0WTQ74EnJDiyD98O2JZY6IVIHJNitkYp/uTXOviIOMfgzrNvC9foKv/8o8KSZw==", - "dev": true, - "dependencies": { - "@discoveryjs/json-ext": "^0.5.0", - "@webpack-cli/configtest": "^1.1.0", - "@webpack-cli/info": "^1.4.0", - "@webpack-cli/serve": "^1.6.0", - "colorette": "^2.0.14", - "commander": "^7.0.0", - "execa": "^5.0.0", - "fastest-levenshtein": "^1.0.12", - "import-local": "^3.0.2", - "interpret": "^2.2.0", - "rechoir": "^0.7.0", - "v8-compile-cache": "^2.2.0", - "webpack-merge": "^5.7.3" - }, - "bin": { - "webpack-cli": "bin/cli.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "peerDependencies": { - "webpack": "4.x.x || 5.x.x" - }, - "peerDependenciesMeta": { - "@webpack-cli/generators": { - "optional": true - }, - "@webpack-cli/migrate": { - "optional": true - }, - "webpack-bundle-analyzer": { - "optional": true - }, - "webpack-dev-server": { - "optional": true - } - } - }, - "node_modules/webpack-cli/node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "dev": true, - "engines": { - "node": ">= 10" - } - }, - "node_modules/webpack-cli/node_modules/interpret": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", - "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", - "dev": true, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/webpack-dev-middleware": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.2.1.tgz", - "integrity": "sha512-Kx1X+36Rn9JaZcQMrJ7qN3PMAuKmEDD9ZISjUj3Cgq4A6PtwYsC4mpaKotSRYH3iOF6HsUa8viHKS59FlyVifQ==", - "dev": true, - "dependencies": { - "colorette": "^2.0.10", - "memfs": "^3.2.2", - "mime-types": "^2.1.31", - "range-parser": "^1.2.1", - "schema-utils": "^3.1.0" - }, - "engines": { - "node": ">= 12.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.0.0 || ^5.0.0" - } - }, - "node_modules/webpack-dev-middleware/node_modules/schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/webpack-dev-server": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.3.1.tgz", - "integrity": "sha512-qNXQCVYo1kYhH9pgLtm8LRNkXX3XzTfHSj/zqzaqYzGPca+Qjr+81wj1jgPMCHhIhso9WEQ+kX9z23iG9PzQ7w==", - "dev": true, - "dependencies": { - "ansi-html-community": "^0.0.8", - "bonjour": "^3.5.0", - "chokidar": "^3.5.1", - "colorette": "^2.0.10", - "compression": "^1.7.4", - "connect-history-api-fallback": "^1.6.0", - "del": "^6.0.0", - "express": "^4.17.1", - "graceful-fs": "^4.2.6", - "html-entities": "^2.3.2", - "http-proxy-middleware": "^2.0.0", - "internal-ip": "^6.2.0", - "ipaddr.js": "^2.0.1", - "open": "^8.0.9", - "p-retry": "^4.5.0", - "portfinder": "^1.0.28", - "schema-utils": "^3.1.0", - "selfsigned": "^1.10.11", - "serve-index": "^1.9.1", - "sockjs": "^0.3.21", - "spdy": "^4.0.2", - "strip-ansi": "^7.0.0", - "url": "^0.11.0", - "webpack-dev-middleware": "^5.2.1", - "ws": "^8.1.0" - }, - "bin": { - "webpack-dev-server": "bin/webpack-dev-server.js" - }, - "engines": { - "node": ">= 12.13.0" - }, - "peerDependencies": { - "webpack": "^4.37.0 || ^5.0.0" - }, - "peerDependenciesMeta": { - "webpack-cli": { - "optional": true - } - } - }, - "node_modules/webpack-dev-server/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/webpack-dev-server/node_modules/del": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/del/-/del-6.0.0.tgz", - "integrity": "sha512-1shh9DQ23L16oXSZKB2JxpL7iMy2E0S9d517ptA1P8iw0alkPtQcrKH7ru31rYtKwF499HkTu+DRzq3TCKDFRQ==", - "dev": true, - "dependencies": { - "globby": "^11.0.1", - "graceful-fs": "^4.2.4", - "is-glob": "^4.0.1", - "is-path-cwd": "^2.2.0", - "is-path-inside": "^3.0.2", - "p-map": "^4.0.0", - "rimraf": "^3.0.2", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/webpack-dev-server/node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/webpack-dev-server/node_modules/p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "dev": true, - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/webpack-dev-server/node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/webpack-dev-server/node_modules/schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/webpack-dev-server/node_modules/strip-ansi": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz", - "integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==", - "dev": true, - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/webpack-merge": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", - "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", - "dev": true, - "dependencies": { - "clone-deep": "^4.0.1", - "wildcard": "^2.0.0" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/webpack-sources": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.1.tgz", - "integrity": "sha512-t6BMVLQ0AkjBOoRTZgqrWm7xbXMBzD+XDq2EZ96+vMfn3qKgsvdXZhbPZ4ElUOpdv4u+iiGe+w3+J75iy/bYGA==", - "dev": true, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/webpack/node_modules/acorn": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.5.0.tgz", - "integrity": "sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/webpack/node_modules/acorn-import-assertions": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", - "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", - "dev": true, - "peerDependencies": { - "acorn": "^8" - } - }, - "node_modules/webpack/node_modules/enhanced-resolve": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.8.3.tgz", - "integrity": "sha512-EGAbGvH7j7Xt2nc0E7D99La1OiEs8LnyimkRgwExpUMScN6O+3x9tIWs7PLQZVNx4YD+00skHXPXi1yQHpAmZA==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/webpack/node_modules/schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/webpack/node_modules/tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/websocket-driver": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", - "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", - "dev": true, - "dependencies": { - "http-parser-js": ">=0.5.1", - "safe-buffer": ">=5.1.0", - "websocket-extensions": ">=0.1.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/websocket-extensions": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", - "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "node_modules/wide-align": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", - "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", - "dev": true, - "dependencies": { - "string-width": "^1.0.2 || 2" - } - }, - "node_modules/wildcard": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", - "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", - "dev": true - }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/wrap-ansi/node_modules/string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "dependencies": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/wrap-ansi/node_modules/strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "dependencies": { - "ansi-regex": "^4.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" - }, - "node_modules/ws": { - "version": "8.2.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.2.3.tgz", - "integrity": "sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==", - "dev": true, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/yargs": { - "version": "13.3.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", - "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", - "dev": true, - "dependencies": { - "cliui": "^5.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.1.2" - } - }, - "node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs/node_modules/ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/yargs/node_modules/find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "dependencies": { - "locate-path": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/yargs/node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/yargs/node_modules/locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/yargs/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/yargs/node_modules/p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "dependencies": { - "p-limit": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/yargs/node_modules/string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "dependencies": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/yargs/node_modules/strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "dependencies": { - "ansi-regex": "^4.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/yargs/node_modules/yargs-parser": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", - "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", - "dev": true, - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.15.8.tgz", - "integrity": "sha512-2IAnmn8zbvC/jKYhq5Ki9I+DwjlrtMPUCH/CpHvqI4dNnlwHwsxoIhlc8WcYY5LSYknXQtAlFYuHfqAFCvQ4Wg==", - "dev": true, - "requires": { - "@babel/highlight": "^7.14.5" - } - }, - "@babel/compat-data": { - "version": "7.15.0", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.15.0.tgz", - "integrity": "sha512-0NqAC1IJE0S0+lL1SWFMxMkz1pKCNCjI4tr2Zx4LJSXxCLAdr6KyArnY+sno5m3yH9g737ygOyPABDsnXkpxiA==", - "dev": true - }, - "@babel/core": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.15.8.tgz", - "integrity": "sha512-3UG9dsxvYBMYwRv+gS41WKHno4K60/9GPy1CJaH6xy3Elq8CTtvtjT5R5jmNhXfCYLX2mTw+7/aq5ak/gOE0og==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.15.8", - "@babel/generator": "^7.15.8", - "@babel/helper-compilation-targets": "^7.15.4", - "@babel/helper-module-transforms": "^7.15.8", - "@babel/helpers": "^7.15.4", - "@babel/parser": "^7.15.8", - "@babel/template": "^7.15.4", - "@babel/traverse": "^7.15.4", - "@babel/types": "^7.15.6", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.1.2", - "semver": "^6.3.0", - "source-map": "^0.5.0" - } - }, - "@babel/generator": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.15.8.tgz", - "integrity": "sha512-ECmAKstXbp1cvpTTZciZCgfOt6iN64lR0d+euv3UZisU5awfRawOvg07Utn/qBGuH4bRIEZKrA/4LzZyXhZr8g==", - "dev": true, - "requires": { - "@babel/types": "^7.15.6", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" - } - }, - "@babel/helper-annotate-as-pure": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.15.4.tgz", - "integrity": "sha512-QwrtdNvUNsPCj2lfNQacsGSQvGX8ee1ttrBrcozUP2Sv/jylewBP/8QFe6ZkBsC8T/GYWonNAWJV4aRR9AL2DA==", - "dev": true, - "requires": { - "@babel/types": "^7.15.4" - } - }, - "@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.15.4.tgz", - "integrity": "sha512-P8o7JP2Mzi0SdC6eWr1zF+AEYvrsZa7GSY1lTayjF5XJhVH0kjLYUZPvTMflP7tBgZoe9gIhTa60QwFpqh/E0Q==", - "dev": true, - "requires": { - "@babel/helper-explode-assignable-expression": "^7.15.4", - "@babel/types": "^7.15.4" - } - }, - "@babel/helper-compilation-targets": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.15.4.tgz", - "integrity": "sha512-rMWPCirulnPSe4d+gwdWXLfAXTTBj8M3guAf5xFQJ0nvFY7tfNAFnWdqaHegHlgDZOCT4qvhF3BYlSJag8yhqQ==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.15.0", - "@babel/helper-validator-option": "^7.14.5", - "browserslist": "^4.16.6", - "semver": "^6.3.0" - } - }, - "@babel/helper-create-class-features-plugin": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.15.4.tgz", - "integrity": "sha512-7ZmzFi+DwJx6A7mHRwbuucEYpyBwmh2Ca0RvI6z2+WLZYCqV0JOaLb+u0zbtmDicebgKBZgqbYfLaKNqSgv5Pw==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.15.4", - "@babel/helper-function-name": "^7.15.4", - "@babel/helper-member-expression-to-functions": "^7.15.4", - "@babel/helper-optimise-call-expression": "^7.15.4", - "@babel/helper-replace-supers": "^7.15.4", - "@babel/helper-split-export-declaration": "^7.15.4" - } - }, - "@babel/helper-create-regexp-features-plugin": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.14.5.tgz", - "integrity": "sha512-TLawwqpOErY2HhWbGJ2nZT5wSkR192QpN+nBg1THfBfftrlvOh+WbhrxXCH4q4xJ9Gl16BGPR/48JA+Ryiho/A==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.14.5", - "regexpu-core": "^4.7.1" - } - }, - "@babel/helper-define-polyfill-provider": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.2.4.tgz", - "integrity": "sha512-OrpPZ97s+aPi6h2n1OXzdhVis1SGSsMU2aMHgLcOKfsp4/v1NWpx3CWT3lBj5eeBq9cDkPkh+YCfdF7O12uNDQ==", - "dev": true, - "requires": { - "@babel/helper-compilation-targets": "^7.13.0", - "@babel/helper-module-imports": "^7.12.13", - "@babel/helper-plugin-utils": "^7.13.0", - "@babel/traverse": "^7.13.0", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2", - "semver": "^6.1.2" - } - }, - "@babel/helper-explode-assignable-expression": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.15.4.tgz", - "integrity": "sha512-J14f/vq8+hdC2KoWLIQSsGrC9EFBKE4NFts8pfMpymfApds+fPqR30AOUWc4tyr56h9l/GA1Sxv2q3dLZWbQ/g==", - "dev": true, - "requires": { - "@babel/types": "^7.15.4" - } - }, - "@babel/helper-function-name": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.15.4.tgz", - "integrity": "sha512-Z91cOMM4DseLIGOnog+Z8OI6YseR9bua+HpvLAQ2XayUGU+neTtX+97caALaLdyu53I/fjhbeCnWnRH1O3jFOw==", - "dev": true, - "requires": { - "@babel/helper-get-function-arity": "^7.15.4", - "@babel/template": "^7.15.4", - "@babel/types": "^7.15.4" - } - }, - "@babel/helper-get-function-arity": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.15.4.tgz", - "integrity": "sha512-1/AlxSF92CmGZzHnC515hm4SirTxtpDnLEJ0UyEMgTMZN+6bxXKg04dKhiRx5Enel+SUA1G1t5Ed/yQia0efrA==", - "dev": true, - "requires": { - "@babel/types": "^7.15.4" - } - }, - "@babel/helper-hoist-variables": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.15.4.tgz", - "integrity": "sha512-VTy085egb3jUGVK9ycIxQiPbquesq0HUQ+tPO0uv5mPEBZipk+5FkRKiWq5apuyTE9FUrjENB0rCf8y+n+UuhA==", - "dev": true, - "requires": { - "@babel/types": "^7.15.4" - } - }, - "@babel/helper-member-expression-to-functions": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.15.4.tgz", - "integrity": "sha512-cokOMkxC/BTyNP1AlY25HuBWM32iCEsLPI4BHDpJCHHm1FU2E7dKWWIXJgQgSFiu4lp8q3bL1BIKwqkSUviqtA==", - "dev": true, - "requires": { - "@babel/types": "^7.15.4" - } - }, - "@babel/helper-module-imports": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.0.tgz", - "integrity": "sha512-kkH7sWzKPq0xt3H1n+ghb4xEMP8k0U7XV3kkB+ZGy69kDk2ySFW1qPi06sjKzFY3t1j6XbJSqr4mF9L7CYVyhg==", - "dev": true, - "requires": { - "@babel/types": "^7.16.0" - } - }, - "@babel/helper-module-transforms": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.15.8.tgz", - "integrity": "sha512-DfAfA6PfpG8t4S6npwzLvTUpp0sS7JrcuaMiy1Y5645laRJIp/LiLGIBbQKaXSInK8tiGNI7FL7L8UvB8gdUZg==", - "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.15.4", - "@babel/helper-replace-supers": "^7.15.4", - "@babel/helper-simple-access": "^7.15.4", - "@babel/helper-split-export-declaration": "^7.15.4", - "@babel/helper-validator-identifier": "^7.15.7", - "@babel/template": "^7.15.4", - "@babel/traverse": "^7.15.4", - "@babel/types": "^7.15.6" - } - }, - "@babel/helper-optimise-call-expression": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.15.4.tgz", - "integrity": "sha512-E/z9rfbAOt1vDW1DR7k4SzhzotVV5+qMciWV6LaG1g4jeFrkDlJedjtV4h0i4Q/ITnUu+Pk08M7fczsB9GXBDw==", - "dev": true, - "requires": { - "@babel/types": "^7.15.4" - } - }, - "@babel/helper-plugin-utils": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz", - "integrity": "sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ==", - "dev": true - }, - "@babel/helper-remap-async-to-generator": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.15.4.tgz", - "integrity": "sha512-v53MxgvMK/HCwckJ1bZrq6dNKlmwlyRNYM6ypaRTdXWGOE2c1/SCa6dL/HimhPulGhZKw9W0QhREM583F/t0vQ==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.15.4", - "@babel/helper-wrap-function": "^7.15.4", - "@babel/types": "^7.15.4" - } - }, - "@babel/helper-replace-supers": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.15.4.tgz", - "integrity": "sha512-/ztT6khaXF37MS47fufrKvIsiQkx1LBRvSJNzRqmbyeZnTwU9qBxXYLaaT/6KaxfKhjs2Wy8kG8ZdsFUuWBjzw==", - "dev": true, - "requires": { - "@babel/helper-member-expression-to-functions": "^7.15.4", - "@babel/helper-optimise-call-expression": "^7.15.4", - "@babel/traverse": "^7.15.4", - "@babel/types": "^7.15.4" - } - }, - "@babel/helper-simple-access": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.15.4.tgz", - "integrity": "sha512-UzazrDoIVOZZcTeHHEPYrr1MvTR/K+wgLg6MY6e1CJyaRhbibftF6fR2KU2sFRtI/nERUZR9fBd6aKgBlIBaPg==", - "dev": true, - "requires": { - "@babel/types": "^7.15.4" - } - }, - "@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.15.4.tgz", - "integrity": "sha512-BMRLsdh+D1/aap19TycS4eD1qELGrCBJwzaY9IE8LrpJtJb+H7rQkPIdsfgnMtLBA6DJls7X9z93Z4U8h7xw0A==", - "dev": true, - "requires": { - "@babel/types": "^7.15.4" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.15.4.tgz", - "integrity": "sha512-HsFqhLDZ08DxCpBdEVtKmywj6PQbwnF6HHybur0MAnkAKnlS6uHkwnmRIkElB2Owpfb4xL4NwDmDLFubueDXsw==", - "dev": true, - "requires": { - "@babel/types": "^7.15.4" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.15.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", - "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", - "dev": true - }, - "@babel/helper-validator-option": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz", - "integrity": "sha512-OX8D5eeX4XwcroVW45NMvoYaIuFI+GQpA2a8Gi+X/U/cDUIRsV37qQfF905F0htTRCREQIB4KqPeaveRJUl3Ow==", - "dev": true - }, - "@babel/helper-wrap-function": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.15.4.tgz", - "integrity": "sha512-Y2o+H/hRV5W8QhIfTpRIBwl57y8PrZt6JM3V8FOo5qarjshHItyH5lXlpMfBfmBefOqSCpKZs/6Dxqp0E/U+uw==", - "dev": true, - "requires": { - "@babel/helper-function-name": "^7.15.4", - "@babel/template": "^7.15.4", - "@babel/traverse": "^7.15.4", - "@babel/types": "^7.15.4" - } - }, - "@babel/helpers": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.15.4.tgz", - "integrity": "sha512-V45u6dqEJ3w2rlryYYXf6i9rQ5YMNu4FLS6ngs8ikblhu2VdR1AqAd6aJjBzmf2Qzh6KOLqKHxEN9+TFbAkAVQ==", - "dev": true, - "requires": { - "@babel/template": "^7.15.4", - "@babel/traverse": "^7.15.4", - "@babel/types": "^7.15.4" - } - }, - "@babel/highlight": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", - "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.14.5", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "@babel/parser": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.8.tgz", - "integrity": "sha512-BRYa3wcQnjS/nqI8Ac94pYYpJfojHVvVXJ97+IDCImX4Jc8W8Xv1+47enbruk+q1etOpsQNwnfFcNGw+gtPGxA==", - "dev": true - }, - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.15.4.tgz", - "integrity": "sha512-eBnpsl9tlhPhpI10kU06JHnrYXwg3+V6CaP2idsCXNef0aeslpqyITXQ74Vfk5uHgY7IG7XP0yIH8b42KSzHog==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.15.4", - "@babel/plugin-proposal-optional-chaining": "^7.14.5" - } - }, - "@babel/plugin-proposal-async-generator-functions": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.15.8.tgz", - "integrity": "sha512-2Z5F2R2ibINTc63mY7FLqGfEbmofrHU9FitJW1Q7aPaKFhiPvSq6QEt/BoWN5oME3GVyjcRuNNSRbb9LC0CSWA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-remap-async-to-generator": "^7.15.4", - "@babel/plugin-syntax-async-generators": "^7.8.4" - } - }, - "@babel/plugin-proposal-class-properties": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.14.5.tgz", - "integrity": "sha512-q/PLpv5Ko4dVc1LYMpCY7RVAAO4uk55qPwrIuJ5QJ8c6cVuAmhu7I/49JOppXL6gXf7ZHzpRVEUZdYoPLM04Gg==", - "dev": true, - "requires": { - "@babel/helper-create-class-features-plugin": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-proposal-class-static-block": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.15.4.tgz", - "integrity": "sha512-M682XWrrLNk3chXCjoPUQWOyYsB93B9z3mRyjtqqYJWDf2mfCdIYgDrA11cgNVhAQieaq6F2fn2f3wI0U4aTjA==", - "dev": true, - "requires": { - "@babel/helper-create-class-features-plugin": "^7.15.4", - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - } - }, - "@babel/plugin-proposal-dynamic-import": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.14.5.tgz", - "integrity": "sha512-ExjiNYc3HDN5PXJx+bwC50GIx/KKanX2HiggnIUAYedbARdImiCU4RhhHfdf0Kd7JNXGpsBBBCOm+bBVy3Gb0g==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" - } - }, - "@babel/plugin-proposal-export-namespace-from": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.14.5.tgz", - "integrity": "sha512-g5POA32bXPMmSBu5Dx/iZGLGnKmKPc5AiY7qfZgurzrCYgIztDlHFbznSNCoQuv57YQLnQfaDi7dxCtLDIdXdA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" - } - }, - "@babel/plugin-proposal-json-strings": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.14.5.tgz", - "integrity": "sha512-NSq2fczJYKVRIsUJyNxrVUMhB27zb7N7pOFGQOhBKJrChbGcgEAqyZrmZswkPk18VMurEeJAaICbfm57vUeTbQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-json-strings": "^7.8.3" - } - }, - "@babel/plugin-proposal-logical-assignment-operators": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.14.5.tgz", - "integrity": "sha512-YGn2AvZAo9TwyhlLvCCWxD90Xq8xJ4aSgaX3G5D/8DW94L8aaT+dS5cSP+Z06+rCJERGSr9GxMBZ601xoc2taw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" - } - }, - "@babel/plugin-proposal-nullish-coalescing-operator": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.14.5.tgz", - "integrity": "sha512-gun/SOnMqjSb98Nkaq2rTKMwervfdAoz6NphdY0vTfuzMfryj+tDGb2n6UkDKwez+Y8PZDhE3D143v6Gepp4Hg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - } - }, - "@babel/plugin-proposal-numeric-separator": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.14.5.tgz", - "integrity": "sha512-yiclALKe0vyZRZE0pS6RXgjUOt87GWv6FYa5zqj15PvhOGFO69R5DusPlgK/1K5dVnCtegTiWu9UaBSrLLJJBg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - } - }, - "@babel/plugin-proposal-object-rest-spread": { - "version": "7.15.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.15.6.tgz", - "integrity": "sha512-qtOHo7A1Vt+O23qEAX+GdBpqaIuD3i9VRrWgCJeq7WO6H2d14EK3q11urj5Te2MAeK97nMiIdRpwd/ST4JFbNg==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.15.0", - "@babel/helper-compilation-targets": "^7.15.4", - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.15.4" - } - }, - "@babel/plugin-proposal-optional-catch-binding": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.14.5.tgz", - "integrity": "sha512-3Oyiixm0ur7bzO5ybNcZFlmVsygSIQgdOa7cTfOYCMY+wEPAYhZAJxi3mixKFCTCKUhQXuCTtQ1MzrpL3WT8ZQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - } - }, - "@babel/plugin-proposal-optional-chaining": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.14.5.tgz", - "integrity": "sha512-ycz+VOzo2UbWNI1rQXxIuMOzrDdHGrI23fRiz/Si2R4kv2XZQ1BK8ccdHwehMKBlcH/joGW/tzrUmo67gbJHlQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.14.5", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - } - }, - "@babel/plugin-proposal-private-methods": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.14.5.tgz", - "integrity": "sha512-838DkdUA1u+QTCplatfq4B7+1lnDa/+QMI89x5WZHBcnNv+47N8QEj2k9I2MUU9xIv8XJ4XvPCviM/Dj7Uwt9g==", - "dev": true, - "requires": { - "@babel/helper-create-class-features-plugin": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-proposal-private-property-in-object": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.15.4.tgz", - "integrity": "sha512-X0UTixkLf0PCCffxgu5/1RQyGGbgZuKoI+vXP4iSbJSYwPb7hu06omsFGBvQ9lJEvwgrxHdS8B5nbfcd8GyUNA==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.15.4", - "@babel/helper-create-class-features-plugin": "^7.15.4", - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - } - }, - "@babel/plugin-proposal-unicode-property-regex": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.14.5.tgz", - "integrity": "sha512-6axIeOU5LnY471KenAB9vI8I5j7NQ2d652hIYwVyRfgaZT5UpiqFKCuVXCDMSrU+3VFafnu2c5m3lrWIlr6A5Q==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.12.13" - } - }, - "@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.3" - } - }, - "@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-arrow-functions": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.14.5.tgz", - "integrity": "sha512-KOnO0l4+tD5IfOdi4x8C1XmEIRWUjNRV8wc6K2vz/3e8yAOoZZvsRXRRIF/yo/MAOFb4QjtAw9xSxMXbSMRy8A==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-async-to-generator": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.14.5.tgz", - "integrity": "sha512-szkbzQ0mNk0rpu76fzDdqSyPu0MuvpXgC+6rz5rpMb5OIRxdmHfQxrktL8CYolL2d8luMCZTR0DpIMIdL27IjA==", - "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-remap-async-to-generator": "^7.14.5" - } - }, - "@babel/plugin-transform-block-scoped-functions": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.14.5.tgz", - "integrity": "sha512-dtqWqdWZ5NqBX3KzsVCWfQI3A53Ft5pWFCT2eCVUftWZgjc5DpDponbIF1+c+7cSGk2wN0YK7HGL/ezfRbpKBQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-block-scoping": { - "version": "7.15.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.15.3.tgz", - "integrity": "sha512-nBAzfZwZb4DkaGtOes1Up1nOAp9TDRRFw4XBzBBSG9QK7KVFmYzgj9o9sbPv7TX5ofL4Auq4wZnxCoPnI/lz2Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-classes": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.15.4.tgz", - "integrity": "sha512-Yjvhex8GzBmmPQUvpXRPWQ9WnxXgAFuZSrqOK/eJlOGIXwvv8H3UEdUigl1gb/bnjTrln+e8bkZUYCBt/xYlBg==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.15.4", - "@babel/helper-function-name": "^7.15.4", - "@babel/helper-optimise-call-expression": "^7.15.4", - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-replace-supers": "^7.15.4", - "@babel/helper-split-export-declaration": "^7.15.4", - "globals": "^11.1.0" - } - }, - "@babel/plugin-transform-computed-properties": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.14.5.tgz", - "integrity": "sha512-pWM+E4283UxaVzLb8UBXv4EIxMovU4zxT1OPnpHJcmnvyY9QbPPTKZfEj31EUvG3/EQRbYAGaYEUZ4yWOBC2xg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-destructuring": { - "version": "7.14.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.14.7.tgz", - "integrity": "sha512-0mDE99nK+kVh3xlc5vKwB6wnP9ecuSj+zQCa/n0voENtP/zymdT4HH6QEb65wjjcbqr1Jb/7z9Qp7TF5FtwYGw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-dotall-regex": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.14.5.tgz", - "integrity": "sha512-loGlnBdj02MDsFaHhAIJzh7euK89lBrGIdM9EAtHFo6xKygCUGuuWe07o1oZVk287amtW1n0808sQM99aZt3gw==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-duplicate-keys": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.14.5.tgz", - "integrity": "sha512-iJjbI53huKbPDAsJ8EmVmvCKeeq21bAze4fu9GBQtSLqfvzj2oRuHVx4ZkDwEhg1htQ+5OBZh/Ab0XDf5iBZ7A==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-exponentiation-operator": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.14.5.tgz", - "integrity": "sha512-jFazJhMBc9D27o9jDnIE5ZErI0R0m7PbKXVq77FFvqFbzvTMuv8jaAwLZ5PviOLSFttqKIW0/wxNSDbjLk0tYA==", - "dev": true, - "requires": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-for-of": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.15.4.tgz", - "integrity": "sha512-DRTY9fA751AFBDh2oxydvVm4SYevs5ILTWLs6xKXps4Re/KG5nfUkr+TdHCrRWB8C69TlzVgA9b3RmGWmgN9LA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-function-name": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.14.5.tgz", - "integrity": "sha512-vbO6kv0fIzZ1GpmGQuvbwwm+O4Cbm2NrPzwlup9+/3fdkuzo1YqOZcXw26+YUJB84Ja7j9yURWposEHLYwxUfQ==", - "dev": true, - "requires": { - "@babel/helper-function-name": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-literals": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.14.5.tgz", - "integrity": "sha512-ql33+epql2F49bi8aHXxvLURHkxJbSmMKl9J5yHqg4PLtdE6Uc48CH1GS6TQvZ86eoB/ApZXwm7jlA+B3kra7A==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-member-expression-literals": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.14.5.tgz", - "integrity": "sha512-WkNXxH1VXVTKarWFqmso83xl+2V3Eo28YY5utIkbsmXoItO8Q3aZxN4BTS2k0hz9dGUloHK26mJMyQEYfkn/+Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-modules-amd": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.14.5.tgz", - "integrity": "sha512-3lpOU8Vxmp3roC4vzFpSdEpGUWSMsHFreTWOMMLzel2gNGfHE5UWIh/LN6ghHs2xurUp4jRFYMUIZhuFbody1g==", - "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5", - "babel-plugin-dynamic-import-node": "^2.3.3" - } - }, - "@babel/plugin-transform-modules-commonjs": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.15.4.tgz", - "integrity": "sha512-qg4DPhwG8hKp4BbVDvX1s8cohM8a6Bvptu4l6Iingq5rW+yRUAhe/YRup/YcW2zCOlrysEWVhftIcKzrEZv3sA==", - "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.15.4", - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-simple-access": "^7.15.4", - "babel-plugin-dynamic-import-node": "^2.3.3" - } - }, - "@babel/plugin-transform-modules-systemjs": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.15.4.tgz", - "integrity": "sha512-fJUnlQrl/mezMneR72CKCgtOoahqGJNVKpompKwzv3BrEXdlPspTcyxrZ1XmDTIr9PpULrgEQo3qNKp6dW7ssw==", - "dev": true, - "requires": { - "@babel/helper-hoist-variables": "^7.15.4", - "@babel/helper-module-transforms": "^7.15.4", - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-validator-identifier": "^7.14.9", - "babel-plugin-dynamic-import-node": "^2.3.3" - } - }, - "@babel/plugin-transform-modules-umd": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.14.5.tgz", - "integrity": "sha512-RfPGoagSngC06LsGUYyM9QWSXZ8MysEjDJTAea1lqRjNECE3y0qIJF/qbvJxc4oA4s99HumIMdXOrd+TdKaAAA==", - "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.14.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.14.9.tgz", - "integrity": "sha512-l666wCVYO75mlAtGFfyFwnWmIXQm3kSH0C3IRnJqWcZbWkoihyAdDhFm2ZWaxWTqvBvhVFfJjMRQ0ez4oN1yYA==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.14.5" - } - }, - "@babel/plugin-transform-new-target": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.14.5.tgz", - "integrity": "sha512-Nx054zovz6IIRWEB49RDRuXGI4Gy0GMgqG0cII9L3MxqgXz/+rgII+RU58qpo4g7tNEx1jG7rRVH4ihZoP4esQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-object-super": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.14.5.tgz", - "integrity": "sha512-MKfOBWzK0pZIrav9z/hkRqIk/2bTv9qvxHzPQc12RcVkMOzpIKnFCNYJip00ssKWYkd8Sf5g0Wr7pqJ+cmtuFg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-replace-supers": "^7.14.5" - } - }, - "@babel/plugin-transform-parameters": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.15.4.tgz", - "integrity": "sha512-9WB/GUTO6lvJU3XQsSr6J/WKvBC2hcs4Pew8YxZagi6GkTdniyqp8On5kqdK8MN0LMeu0mGbhPN+O049NV/9FQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-property-literals": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.14.5.tgz", - "integrity": "sha512-r1uilDthkgXW8Z1vJz2dKYLV1tuw2xsbrp3MrZmD99Wh9vsfKoob+JTgri5VUb/JqyKRXotlOtwgu4stIYCmnw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-regenerator": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.14.5.tgz", - "integrity": "sha512-NVIY1W3ITDP5xQl50NgTKlZ0GrotKtLna08/uGY6ErQt6VEQZXla86x/CTddm5gZdcr+5GSsvMeTmWA5Ii6pkg==", - "dev": true, - "requires": { - "regenerator-transform": "^0.14.2" - } - }, - "@babel/plugin-transform-reserved-words": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.14.5.tgz", - "integrity": "sha512-cv4F2rv1nD4qdexOGsRQXJrOcyb5CrgjUH9PKrrtyhSDBNWGxd0UIitjyJiWagS+EbUGjG++22mGH1Pub8D6Vg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-runtime": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.16.0.tgz", - "integrity": "sha512-zlPf1/XFn5+vWdve3AAhf+Sxl+MVa5VlwTwWgnLx23u4GlatSRQJ3Eoo9vllf0a9il3woQsT4SK+5Z7c06h8ag==", - "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.16.0", - "@babel/helper-plugin-utils": "^7.14.5", - "babel-plugin-polyfill-corejs2": "^0.2.3", - "babel-plugin-polyfill-corejs3": "^0.3.0", - "babel-plugin-polyfill-regenerator": "^0.2.3", - "semver": "^6.3.0" - }, - "dependencies": { - "babel-plugin-polyfill-corejs3": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.3.0.tgz", - "integrity": "sha512-JLwi9vloVdXLjzACL80j24bG6/T1gYxwowG44dg6HN/7aTPdyPbJJidf6ajoA3RPHHtW0j9KMrSOLpIZpAnPpg==", - "dev": true, - "requires": { - "@babel/helper-define-polyfill-provider": "^0.2.4", - "core-js-compat": "^3.18.0" - } - } - } - }, - "@babel/plugin-transform-shorthand-properties": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.14.5.tgz", - "integrity": "sha512-xLucks6T1VmGsTB+GWK5Pl9Jl5+nRXD1uoFdA5TSO6xtiNjtXTjKkmPdFXVLGlK5A2/or/wQMKfmQ2Y0XJfn5g==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-spread": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.15.8.tgz", - "integrity": "sha512-/daZ8s2tNaRekl9YJa9X4bzjpeRZLt122cpgFnQPLGUe61PH8zMEBmYqKkW5xF5JUEh5buEGXJoQpqBmIbpmEQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.15.4" - } - }, - "@babel/plugin-transform-sticky-regex": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.14.5.tgz", - "integrity": "sha512-Z7F7GyvEMzIIbwnziAZmnSNpdijdr4dWt+FJNBnBLz5mwDFkqIXU9wmBcWWad3QeJF5hMTkRe4dAq2sUZiG+8A==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-template-literals": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.14.5.tgz", - "integrity": "sha512-22btZeURqiepOfuy/VkFr+zStqlujWaarpMErvay7goJS6BWwdd6BY9zQyDLDa4x2S3VugxFb162IZ4m/S/+Gg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-typeof-symbol": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.14.5.tgz", - "integrity": "sha512-lXzLD30ffCWseTbMQzrvDWqljvZlHkXU+CnseMhkMNqU1sASnCsz3tSzAaH3vCUXb9PHeUb90ZT1BdFTm1xxJw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-unicode-escapes": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.14.5.tgz", - "integrity": "sha512-crTo4jATEOjxj7bt9lbYXcBAM3LZaUrbP2uUdxb6WIorLmjNKSpHfIybgY4B8SRpbf8tEVIWH3Vtm7ayCrKocA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-unicode-regex": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.14.5.tgz", - "integrity": "sha512-UygduJpC5kHeCiRw/xDVzC+wj8VaYSoKl5JNVmbP7MadpNinAm3SvZCxZ42H37KZBKztz46YC73i9yV34d0Tzw==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.14.5", - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/preset-env": { - "version": "7.15.8", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.15.8.tgz", - "integrity": "sha512-rCC0wH8husJgY4FPbHsiYyiLxSY8oMDJH7Rl6RQMknbN9oDDHhM9RDFvnGM2MgkbUJzSQB4gtuwygY5mCqGSsA==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.15.0", - "@babel/helper-compilation-targets": "^7.15.4", - "@babel/helper-plugin-utils": "^7.14.5", - "@babel/helper-validator-option": "^7.14.5", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.15.4", - "@babel/plugin-proposal-async-generator-functions": "^7.15.8", - "@babel/plugin-proposal-class-properties": "^7.14.5", - "@babel/plugin-proposal-class-static-block": "^7.15.4", - "@babel/plugin-proposal-dynamic-import": "^7.14.5", - "@babel/plugin-proposal-export-namespace-from": "^7.14.5", - "@babel/plugin-proposal-json-strings": "^7.14.5", - "@babel/plugin-proposal-logical-assignment-operators": "^7.14.5", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.5", - "@babel/plugin-proposal-numeric-separator": "^7.14.5", - "@babel/plugin-proposal-object-rest-spread": "^7.15.6", - "@babel/plugin-proposal-optional-catch-binding": "^7.14.5", - "@babel/plugin-proposal-optional-chaining": "^7.14.5", - "@babel/plugin-proposal-private-methods": "^7.14.5", - "@babel/plugin-proposal-private-property-in-object": "^7.15.4", - "@babel/plugin-proposal-unicode-property-regex": "^7.14.5", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-transform-arrow-functions": "^7.14.5", - "@babel/plugin-transform-async-to-generator": "^7.14.5", - "@babel/plugin-transform-block-scoped-functions": "^7.14.5", - "@babel/plugin-transform-block-scoping": "^7.15.3", - "@babel/plugin-transform-classes": "^7.15.4", - "@babel/plugin-transform-computed-properties": "^7.14.5", - "@babel/plugin-transform-destructuring": "^7.14.7", - "@babel/plugin-transform-dotall-regex": "^7.14.5", - "@babel/plugin-transform-duplicate-keys": "^7.14.5", - "@babel/plugin-transform-exponentiation-operator": "^7.14.5", - "@babel/plugin-transform-for-of": "^7.15.4", - "@babel/plugin-transform-function-name": "^7.14.5", - "@babel/plugin-transform-literals": "^7.14.5", - "@babel/plugin-transform-member-expression-literals": "^7.14.5", - "@babel/plugin-transform-modules-amd": "^7.14.5", - "@babel/plugin-transform-modules-commonjs": "^7.15.4", - "@babel/plugin-transform-modules-systemjs": "^7.15.4", - "@babel/plugin-transform-modules-umd": "^7.14.5", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.14.9", - "@babel/plugin-transform-new-target": "^7.14.5", - "@babel/plugin-transform-object-super": "^7.14.5", - "@babel/plugin-transform-parameters": "^7.15.4", - "@babel/plugin-transform-property-literals": "^7.14.5", - "@babel/plugin-transform-regenerator": "^7.14.5", - "@babel/plugin-transform-reserved-words": "^7.14.5", - "@babel/plugin-transform-shorthand-properties": "^7.14.5", - "@babel/plugin-transform-spread": "^7.15.8", - "@babel/plugin-transform-sticky-regex": "^7.14.5", - "@babel/plugin-transform-template-literals": "^7.14.5", - "@babel/plugin-transform-typeof-symbol": "^7.14.5", - "@babel/plugin-transform-unicode-escapes": "^7.14.5", - "@babel/plugin-transform-unicode-regex": "^7.14.5", - "@babel/preset-modules": "^0.1.4", - "@babel/types": "^7.15.6", - "babel-plugin-polyfill-corejs2": "^0.2.2", - "babel-plugin-polyfill-corejs3": "^0.2.5", - "babel-plugin-polyfill-regenerator": "^0.2.2", - "core-js-compat": "^3.16.0", - "semver": "^6.3.0" - } - }, - "@babel/preset-modules": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.4.tgz", - "integrity": "sha512-J36NhwnfdzpmH41M1DrnkkgAqhZaqr/NBdPfQ677mLzlaXo+oDiv1deyCDtgAhz8p328otdob0Du7+xgHGZbKg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", - "@babel/plugin-transform-dotall-regex": "^7.4.4", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - } - }, - "@babel/runtime": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.15.4.tgz", - "integrity": "sha512-99catp6bHCaxr4sJ/DbTGgHS4+Rs2RVd2g7iOap6SLGPDknRK9ztKNsE/Fg6QhSeh1FGE5f6gHGQmvvn3I3xhw==", - "dev": true, - "requires": { - "regenerator-runtime": "^0.13.4" - } - }, - "@babel/template": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.15.4.tgz", - "integrity": "sha512-UgBAfEa1oGuYgDIPM2G+aHa4Nlo9Lh6mGD2bDBGMTbYnc38vulXPuC1MGjYILIEmlwl6Rd+BPR9ee3gm20CBtg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.14.5", - "@babel/parser": "^7.15.4", - "@babel/types": "^7.15.4" - } - }, - "@babel/traverse": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.15.4.tgz", - "integrity": "sha512-W6lQD8l4rUbQR/vYgSuCAE75ADyyQvOpFVsvPPdkhf6lATXAsQIG9YdtOcu8BB1dZ0LKu+Zo3c1wEcbKeuhdlA==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.14.5", - "@babel/generator": "^7.15.4", - "@babel/helper-function-name": "^7.15.4", - "@babel/helper-hoist-variables": "^7.15.4", - "@babel/helper-split-export-declaration": "^7.15.4", - "@babel/parser": "^7.15.4", - "@babel/types": "^7.15.4", - "debug": "^4.1.0", - "globals": "^11.1.0" - } - }, - "@babel/types": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.0.tgz", - "integrity": "sha512-PJgg/k3SdLsGb3hhisFvtLOw5ts113klrpLuIPtCJIU+BB24fqq6lf8RWqKJEjzqXR9AEH1rIb5XTqwBHB+kQg==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.15.7", - "to-fast-properties": "^2.0.0" - } - }, - "@csstools/convert-colors": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@csstools/convert-colors/-/convert-colors-1.4.0.tgz", - "integrity": "sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw==", - "dev": true - }, - "@discoveryjs/json-ext": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.5.tgz", - "integrity": "sha512-6nFkfkmSeV/rqSaS4oWHgmpnYw194f6hmWF5is6b0J1naJZoiD0NTc9AiUwPHvWsowkjuHErCZT1wa0jg+BLIA==", - "dev": true - }, - "@eslint/eslintrc": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", - "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", - "dev": true, - "requires": { - "ajv": "^6.12.4", - "debug": "^4.1.1", - "espree": "^7.3.0", - "globals": "^13.9.0", - "ignore": "^4.0.6", - "import-fresh": "^3.2.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", - "strip-json-comments": "^3.1.1" - }, - "dependencies": { - "globals": { - "version": "13.11.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz", - "integrity": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==", - "dev": true, - "requires": { - "type-fest": "^0.20.2" - } - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true - } - } - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - } - }, - "@tensorflow-models/handpose": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/@tensorflow-models/handpose/-/handpose-0.0.7.tgz", - "integrity": "sha512-1JRxE2cWlxgbFogZDhqnHn1RUVsyfpAJXP6wEcO+VZ+PIllHq9eut7Ecqgs2QlsI8Tjp8V0e8VYvePV+Toln0A==", - "requires": { - "rimraf": "^3.0.2" - }, - "dependencies": { - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "requires": { - "glob": "^7.1.3" - } - } - } - }, - "@tensorflow/tfjs-backend-cpu": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-backend-cpu/-/tfjs-backend-cpu-3.11.0.tgz", - "integrity": "sha512-ShLkrZ4/rmhZwzGKenMFDfQnaEbyZgWA5F8JRa52Iob/vptlZeuOzjq87CZKmZMUmDswR9A2kjzovT/H1bJdWQ==", - "requires": { - "@types/seedrandom": "2.4.27", - "seedrandom": "2.4.3" - } - }, - "@tensorflow/tfjs-backend-webgl": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-backend-webgl/-/tfjs-backend-webgl-3.11.0.tgz", - "integrity": "sha512-rNnc/dZ7LIl9O/Pn9W24I1h8kgpJ+XvG8NrdNSfIoWPCW4fvPSlU7B3yMeZXvRneny+z+T3xRs96nWyU2mZBJw==", - "requires": { - "@tensorflow/tfjs-backend-cpu": "3.11.0", - "@types/offscreencanvas": "~2019.3.0", - "@types/seedrandom": "2.4.27", - "@types/webgl-ext": "0.0.30", - "@types/webgl2": "0.0.6", - "seedrandom": "2.4.3" - } - }, - "@tensorflow/tfjs-converter": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-converter/-/tfjs-converter-3.11.0.tgz", - "integrity": "sha512-rTRIKvBoqL0qdPYpm8UXauZycOiaBHZB2E2v3OoXoHnjvle/Xn/09uZJdrixgGhR+Kahs3Vz27BEEFz6RI5j2w==", - "requires": {} - }, - "@tensorflow/tfjs-core": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-core/-/tfjs-core-3.11.0.tgz", - "integrity": "sha512-JOp+1+LCd0Xg3hu7fu6iQPWZnN8Hc6ssfP7B+625XH5GYY1/OhVASa7Ahe2mJr9gZovY2lw8FUejLh1jMmBb1Q==", - "requires": { - "@types/long": "^4.0.1", - "@types/offscreencanvas": "~2019.3.0", - "@types/seedrandom": "2.4.27", - "@types/webgl-ext": "0.0.30", - "long": "4.0.0", - "node-fetch": "~2.6.1", - "seedrandom": "2.4.3" - } - }, - "@trysound/sax": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", - "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", - "dev": true - }, - "@types/eslint": { - "version": "7.28.1", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.28.1.tgz", - "integrity": "sha512-XhZKznR3i/W5dXqUhgU9fFdJekufbeBd5DALmkuXoeFcjbQcPk+2cL+WLHf6Q81HWAnM2vrslIHpGVyCAviRwg==", - "dev": true, - "requires": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "@types/eslint-scope": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.1.tgz", - "integrity": "sha512-SCFeogqiptms4Fg29WpOTk5nHIzfpKCemSN63ksBQYKTcXoJEmJagV+DhVmbapZzY4/5YaOV1nZwrsU79fFm1g==", - "dev": true, - "requires": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, - "@types/estree": { - "version": "0.0.50", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.50.tgz", - "integrity": "sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw==", - "dev": true - }, - "@types/glob": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.4.tgz", - "integrity": "sha512-w+LsMxKyYQm347Otw+IfBXOv9UWVjpHpCDdbBMt8Kz/xbvCYNjP+0qPh91Km3iKfSRLBB0P7fAMf0KHrPu+MyA==", - "dev": true, - "requires": { - "@types/minimatch": "*", - "@types/node": "*" - } - }, - "@types/html-minifier-terser": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-5.1.2.tgz", - "integrity": "sha512-h4lTMgMJctJybDp8CQrxTUiiYmedihHWkjnF/8Pxseu2S6Nlfcy8kwboQ8yejh456rP2yWoEVm1sS/FVsfM48w==", - "dev": true - }, - "@types/http-proxy": { - "version": "1.17.7", - "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.7.tgz", - "integrity": "sha512-9hdj6iXH64tHSLTY+Vt2eYOGzSogC+JQ2H7bdPWkuh7KXP5qLllWx++t+K9Wk556c3dkDdPws/SpMRi0sdCT1w==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/json-schema": { - "version": "7.0.9", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", - "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==", - "dev": true - }, - "@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=", - "dev": true - }, - "@types/long": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.1.tgz", - "integrity": "sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==" - }, - "@types/minimatch": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", - "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==", - "dev": true - }, - "@types/minimist": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", - "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", - "dev": true - }, - "@types/node": { - "version": "16.11.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.0.tgz", - "integrity": "sha512-8MLkBIYQMuhRBQzGN9875bYsOhPnf/0rgXGo66S2FemHkhbn9qtsz9ywV1iCG+vbjigE4WUNVvw37Dx+L0qsPg==", - "dev": true - }, - "@types/normalize-package-data": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", - "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", - "dev": true - }, - "@types/offscreencanvas": { - "version": "2019.3.0", - "resolved": "https://registry.npmjs.org/@types/offscreencanvas/-/offscreencanvas-2019.3.0.tgz", - "integrity": "sha512-esIJx9bQg+QYF0ra8GnvfianIY8qWB0GBx54PK5Eps6m+xTj86KLavHv6qDhzKcu5UUOgNfJ2pWaIIV7TRUd9Q==" - }, - "@types/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", - "dev": true - }, - "@types/retry": { - "version": "0.12.1", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.1.tgz", - "integrity": "sha512-xoDlM2S4ortawSWORYqsdU+2rxdh4LRW9ytc3zmT37RIKQh6IHyKwwtKhKis9ah8ol07DCkZxPt8BBvPjC6v4g==", - "dev": true - }, - "@types/seedrandom": { - "version": "2.4.27", - "resolved": "https://registry.npmjs.org/@types/seedrandom/-/seedrandom-2.4.27.tgz", - "integrity": "sha1-nbVjk33YaRX2kJK8QyWdL0hXjkE=" - }, - "@types/webgl-ext": { - "version": "0.0.30", - "resolved": "https://registry.npmjs.org/@types/webgl-ext/-/webgl-ext-0.0.30.tgz", - "integrity": "sha512-LKVgNmBxN0BbljJrVUwkxwRYqzsAEPcZOe6S2T6ZaBDIrFp0qu4FNlpc5sM1tGbXUYFgdVQIoeLk1Y1UoblyEg==" - }, - "@types/webgl2": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/@types/webgl2/-/webgl2-0.0.6.tgz", - "integrity": "sha512-50GQhDVTq/herLMiqSQkdtRu+d5q/cWHn4VvKJtrj4DJAjo1MNkWYa2MA41BaBO1q1HgsUjuQvEOk0QHvlnAaQ==" - }, - "@webassemblyjs/ast": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", - "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", - "dev": true, - "requires": { - "@webassemblyjs/helper-numbers": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1" - } - }, - "@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", - "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", - "dev": true - }, - "@webassemblyjs/helper-api-error": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", - "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", - "dev": true - }, - "@webassemblyjs/helper-buffer": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", - "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", - "dev": true - }, - "@webassemblyjs/helper-numbers": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", - "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", - "dev": true, - "requires": { - "@webassemblyjs/floating-point-hex-parser": "1.11.1", - "@webassemblyjs/helper-api-error": "1.11.1", - "@xtuc/long": "4.2.2" - } - }, - "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", - "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", - "dev": true - }, - "@webassemblyjs/helper-wasm-section": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", - "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1" - } - }, - "@webassemblyjs/ieee754": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", - "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", - "dev": true, - "requires": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "@webassemblyjs/leb128": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", - "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", - "dev": true, - "requires": { - "@xtuc/long": "4.2.2" - } - }, - "@webassemblyjs/utf8": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", - "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", - "dev": true - }, - "@webassemblyjs/wasm-edit": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", - "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/helper-wasm-section": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1", - "@webassemblyjs/wasm-opt": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1", - "@webassemblyjs/wast-printer": "1.11.1" - } - }, - "@webassemblyjs/wasm-gen": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", - "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/ieee754": "1.11.1", - "@webassemblyjs/leb128": "1.11.1", - "@webassemblyjs/utf8": "1.11.1" - } - }, - "@webassemblyjs/wasm-opt": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", - "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1" - } - }, - "@webassemblyjs/wasm-parser": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", - "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-api-error": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/ieee754": "1.11.1", - "@webassemblyjs/leb128": "1.11.1", - "@webassemblyjs/utf8": "1.11.1" - } - }, - "@webassemblyjs/wast-printer": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", - "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@xtuc/long": "4.2.2" - } - }, - "@webpack-cli/configtest": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.1.0.tgz", - "integrity": "sha512-ttOkEkoalEHa7RaFYpM0ErK1xc4twg3Am9hfHhL7MVqlHebnkYd2wuI/ZqTDj0cVzZho6PdinY0phFZV3O0Mzg==", - "dev": true, - "requires": {} - }, - "@webpack-cli/info": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.4.0.tgz", - "integrity": "sha512-F6b+Man0rwE4n0409FyAJHStYA5OIZERxmnUfLVwv0mc0V1wLad3V7jqRlMkgKBeAq07jUvglacNaa6g9lOpuw==", - "dev": true, - "requires": { - "envinfo": "^7.7.3" - } - }, - "@webpack-cli/serve": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.6.0.tgz", - "integrity": "sha512-ZkVeqEmRpBV2GHvjjUZqEai2PpUbuq8Bqd//vEYsp63J8WyexI8ppCqVS3Zs0QADf6aWuPdU+0XsPI647PVlQA==", - "dev": true, - "requires": {} - }, - "@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", - "dev": true - }, - "@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", - "dev": true - }, - "abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "dev": true - }, - "accepts": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", - "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", - "dev": true, - "requires": { - "mime-types": "~2.1.24", - "negotiator": "0.6.2" - } - }, - "acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true - }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} - }, - "aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "dev": true, - "requires": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - } - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true, - "requires": {} - }, - "alphanum-sort": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", - "integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=", - "dev": true - }, - "amdefine": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", - "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", - "dev": true - }, - "ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "dev": true - }, - "ansi-html-community": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", - "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==", - "dev": true - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "anymatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "aproba": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "dev": true - }, - "are-we-there-yet": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz", - "integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==", - "dev": true, - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "array-find": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-find/-/array-find-1.0.0.tgz", - "integrity": "sha1-bI4obRHtdoMn+OYuzuhzU8o+eLg=", - "dev": true - }, - "array-flatten": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", - "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==", - "dev": true - }, - "array-includes": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.4.tgz", - "integrity": "sha512-ZTNSQkmWumEbiHO2GF4GmWxYVTiQyJy2XOTa15sdQSrvKn7l+180egQMqlrMOUMCyLMD7pmyQe4mMDUT6Behrw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1", - "get-intrinsic": "^1.1.1", - "is-string": "^1.0.7" - } - }, - "array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true - }, - "array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", - "dev": true - }, - "array.prototype.flat": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.5.tgz", - "integrity": "sha512-KaYU+S+ndVqyUnignHftkwc58o3uVU1jzczILJ1tN2YaIZpFIKBiP/x/j97E5MVPsaCloPbqWLB/8qCTVvT2qg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0" - } - }, - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", - "dev": true - }, - "asn1": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", - "dev": true, - "requires": { - "safer-buffer": "~2.1.0" - } - }, - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true - }, - "astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true - }, - "async": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", - "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", - "dev": true, - "requires": { - "lodash": "^4.17.14" - } - }, - "async-foreach": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz", - "integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI=", - "dev": true - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true - }, - "autoprefixer": { - "version": "9.8.8", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.8.8.tgz", - "integrity": "sha512-eM9d/swFopRt5gdJ7jrpCwgvEMIayITpojhkkSMRsFHYuH5bkSQ4p/9qTEHtmNudUZh22Tehu7I6CxAW0IXTKA==", - "dev": true, - "requires": { - "browserslist": "^4.12.0", - "caniuse-lite": "^1.0.30001109", - "normalize-range": "^0.1.2", - "num2fraction": "^1.2.2", - "picocolors": "^0.2.1", - "postcss": "^7.0.32", - "postcss-value-parser": "^4.1.0" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", - "dev": true - }, - "aws4": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", - "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==", - "dev": true - }, - "babel-loader": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.2.2.tgz", - "integrity": "sha512-JvTd0/D889PQBtUXJ2PXaKU/pjZDMtHA9V2ecm+eNRmmBCMR09a+fmpGTNwnJtFmFl5Ei7Vy47LjBb+L0wQ99g==", - "dev": true, - "requires": { - "find-cache-dir": "^3.3.1", - "loader-utils": "^1.4.0", - "make-dir": "^3.1.0", - "schema-utils": "^2.6.5" - } - }, - "babel-plugin-dynamic-import-node": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", - "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", - "dev": true, - "requires": { - "object.assign": "^4.1.0" - } - }, - "babel-plugin-polyfill-corejs2": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.2.3.tgz", - "integrity": "sha512-NDZ0auNRzmAfE1oDDPW2JhzIMXUk+FFe2ICejmt5T4ocKgiQx3e0VCRx9NCAidcMtL2RUZaWtXnmjTCkx0tcbA==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.13.11", - "@babel/helper-define-polyfill-provider": "^0.2.4", - "semver": "^6.1.1" - } - }, - "babel-plugin-polyfill-corejs3": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.2.5.tgz", - "integrity": "sha512-ninF5MQNwAX9Z7c9ED+H2pGt1mXdP4TqzlHKyPIYmJIYz0N+++uwdM7RnJukklhzJ54Q84vA4ZJkgs7lu5vqcw==", - "dev": true, - "requires": { - "@babel/helper-define-polyfill-provider": "^0.2.2", - "core-js-compat": "^3.16.2" - } - }, - "babel-plugin-polyfill-regenerator": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.2.3.tgz", - "integrity": "sha512-JVE78oRZPKFIeUqFGrSORNzQnrDwZR16oiWeGM8ZyjBn2XAT5OjP+wXx5ESuo33nUsFUEJYjtklnsKbxW5L+7g==", - "dev": true, - "requires": { - "@babel/helper-define-polyfill-provider": "^0.2.4" - } - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "batch": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", - "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=", - "dev": true - }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "dev": true, - "requires": { - "tweetnacl": "^0.14.3" - } - }, - "big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", - "dev": true - }, - "binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true - }, - "body-parser": { - "version": "1.19.0", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", - "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", - "dev": true, - "requires": { - "bytes": "3.1.0", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "~1.1.2", - "http-errors": "1.7.2", - "iconv-lite": "0.4.24", - "on-finished": "~2.3.0", - "qs": "6.7.0", - "raw-body": "2.4.0", - "type-is": "~1.6.17" - }, - "dependencies": { - "bytes": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", - "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", - "dev": true - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "qs": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", - "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", - "dev": true - } - } - }, - "bonjour": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz", - "integrity": "sha1-jokKGD2O6aI5OzhExpGkK897yfU=", - "dev": true, - "requires": { - "array-flatten": "^2.1.0", - "deep-equal": "^1.0.1", - "dns-equal": "^1.0.0", - "dns-txt": "^2.0.2", - "multicast-dns": "^6.0.1", - "multicast-dns-service-types": "^1.1.0" - } - }, - "boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", - "dev": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "requires": { - "fill-range": "^7.0.1" - } - }, - "browserslist": { - "version": "4.17.4", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.17.4.tgz", - "integrity": "sha512-Zg7RpbZpIJRW3am9Lyckue7PLytvVxxhJj1CaJVlCWENsGEAOlnlt8X0ZxGRPp7Bt9o8tIRM5SEXy4BCPMJjLQ==", - "dev": true, - "requires": { - "caniuse-lite": "^1.0.30001265", - "electron-to-chromium": "^1.3.867", - "escalade": "^3.1.1", - "node-releases": "^2.0.0", - "picocolors": "^1.0.0" - } - }, - "buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, - "buffer-indexof": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.1.1.tgz", - "integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==", - "dev": true - }, - "bytes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=", - "dev": true - }, - "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, - "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "camel-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", - "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", - "dev": true, - "requires": { - "pascal-case": "^3.1.2", - "tslib": "^2.0.3" - } - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - }, - "camelcase-keys": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", - "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", - "dev": true, - "requires": { - "camelcase": "^5.3.1", - "map-obj": "^4.0.0", - "quick-lru": "^4.0.1" - } - }, - "caniuse-api": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", - "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", - "dev": true, - "requires": { - "browserslist": "^4.0.0", - "caniuse-lite": "^1.0.0", - "lodash.memoize": "^4.1.2", - "lodash.uniq": "^4.5.0" - } - }, - "caniuse-lite": { - "version": "1.0.30001267", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001267.tgz", - "integrity": "sha512-r1mjTzAuJ9W8cPBGbbus8E0SKcUP7gn03R14Wk8FlAlqhH9hroy9nLqmpuXlfKEw/oILW+FGz47ipXV2O7x8lg==", - "dev": true - }, - "caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", - "dev": true - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "chokidar": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz", - "integrity": "sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==", - "dev": true, - "requires": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "fsevents": "~2.3.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - } - } - }, - "chownr": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", - "dev": true - }, - "chrome-trace-event": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", - "dev": true - }, - "clean-css": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.3.tgz", - "integrity": "sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA==", - "dev": true, - "requires": { - "source-map": "~0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "dev": true - }, - "clean-webpack-plugin": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/clean-webpack-plugin/-/clean-webpack-plugin-4.0.0.tgz", - "integrity": "sha512-WuWE1nyTNAyW5T7oNyys2EN0cfP2fdRxhxnIQWiAp0bMabPdHhoGxM8A6YL2GhqwgrPnnaemVE7nv5XJ2Fhh2w==", - "dev": true, - "requires": { - "del": "^4.1.1" - } - }, - "cliui": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", - "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", - "dev": true, - "requires": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "clone-deep": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" - } - }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "colord": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/colord/-/colord-2.8.0.tgz", - "integrity": "sha512-kNkVV4KFta3TYQv0bzs4xNwLaeag261pxgzGQSh4cQ1rEhYjcTJfFRP0SDlbhLONg0eSoLzrDd79PosjbltufA==", - "dev": true - }, - "colorette": { - "version": "2.0.16", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.16.tgz", - "integrity": "sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==", - "dev": true - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "commander": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", - "dev": true - }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", - "dev": true - }, - "compressible": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", - "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", - "dev": true, - "requires": { - "mime-db": ">= 1.43.0 < 2" - } - }, - "compression": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", - "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", - "dev": true, - "requires": { - "accepts": "~1.3.5", - "bytes": "3.0.0", - "compressible": "~2.0.16", - "debug": "2.6.9", - "on-headers": "~1.0.2", - "safe-buffer": "5.1.2", - "vary": "~1.1.2" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" - }, - "confusing-browser-globals": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.10.tgz", - "integrity": "sha512-gNld/3lySHwuhaVluJUKLePYirM3QNCKzVxqAdhJII9/WXKVX5PURzMVJspS1jTslSqjeuG4KMVTSouit5YPHA==", - "dev": true - }, - "connect-history-api-fallback": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz", - "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==", - "dev": true - }, - "console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "dev": true - }, - "content-disposition": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", - "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", - "dev": true, - "requires": { - "safe-buffer": "5.1.2" - } - }, - "content-type": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", - "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", - "dev": true - }, - "convert-source-map": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", - "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.1" - } - }, - "cookie": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", - "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==", - "dev": true - }, - "cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", - "dev": true - }, - "copy-webpack-plugin": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-9.0.1.tgz", - "integrity": "sha512-14gHKKdYIxF84jCEgPgYXCPpldbwpxxLbCmA7LReY7gvbaT555DgeBWBgBZM116tv/fO6RRJrsivBqRyRlukhw==", - "dev": true, - "requires": { - "fast-glob": "^3.2.5", - "glob-parent": "^6.0.0", - "globby": "^11.0.3", - "normalize-path": "^3.0.0", - "p-limit": "^3.1.0", - "schema-utils": "^3.0.0", - "serialize-javascript": "^6.0.0" - }, - "dependencies": { - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - } - } - }, - "core-js-compat": { - "version": "3.18.3", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.18.3.tgz", - "integrity": "sha512-4zP6/y0a2RTHN5bRGT7PTq9lVt3WzvffTNjqnTKsXhkAYNDTkdCLOIfAdOLcQ/7TDdyRj3c+NeHe1NmF1eDScw==", - "dev": true, - "requires": { - "browserslist": "^4.17.3", - "semver": "7.0.0" - }, - "dependencies": { - "semver": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", - "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", - "dev": true - } - } - }, - "core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "dev": true - }, - "cosmiconfig": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", - "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", - "dev": true, - "requires": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.10.0" - } - }, - "cross-env": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", - "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.1" - } - }, - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "css-blank-pseudo": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/css-blank-pseudo/-/css-blank-pseudo-0.1.4.tgz", - "integrity": "sha512-LHz35Hr83dnFeipc7oqFDmsjHdljj3TQtxGGiNWSOsTLIAubSm4TEz8qCaKFpk7idaQ1GfWscF4E6mgpBysA1w==", - "dev": true, - "requires": { - "postcss": "^7.0.5" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "css-color-names": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-1.0.1.tgz", - "integrity": "sha512-/loXYOch1qU1biStIFsHH8SxTmOseh1IJqFvy8IujXOm1h+QjUdDhkzOrR5HG8K8mlxREj0yfi8ewCHx0eMxzA==", - "dev": true - }, - "css-declaration-sorter": { - "version": "6.1.3", - "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.1.3.tgz", - "integrity": "sha512-SvjQjNRZgh4ULK1LDJ2AduPKUKxIqmtU7ZAyi47BTV+M90Qvxr9AB6lKlLbDUfXqI9IQeYA8LbAsCZPpJEV3aA==", - "dev": true, - "requires": { - "timsort": "^0.3.0" - } - }, - "css-has-pseudo": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/css-has-pseudo/-/css-has-pseudo-0.10.0.tgz", - "integrity": "sha512-Z8hnfsZu4o/kt+AuFzeGpLVhFOGO9mluyHBaA2bA8aCGTwah5sT3WV/fTHH8UNZUytOIImuGPrl/prlb4oX4qQ==", - "dev": true, - "requires": { - "postcss": "^7.0.6", - "postcss-selector-parser": "^5.0.0-rc.4" - }, - "dependencies": { - "cssesc": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", - "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", - "dev": true - }, - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "postcss-selector-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", - "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", - "dev": true, - "requires": { - "cssesc": "^2.0.0", - "indexes-of": "^1.0.1", - "uniq": "^1.0.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "css-loader": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.4.0.tgz", - "integrity": "sha512-Dlt6qfsxI/w1vU0r8qDd4BtMPxWqJeY5qQU7SmmZfvbpe6Xl18McO4GhyaMLns24Y2VNPiZwJPQ8JSbg4qvQLw==", - "dev": true, - "requires": { - "icss-utils": "^5.1.0", - "postcss": "^8.2.15", - "postcss-modules-extract-imports": "^3.0.0", - "postcss-modules-local-by-default": "^4.0.0", - "postcss-modules-scope": "^3.0.0", - "postcss-modules-values": "^4.0.0", - "postcss-value-parser": "^4.1.0", - "semver": "^7.3.5" - }, - "dependencies": { - "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - } - } - }, - "css-minimizer-webpack-plugin": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.1.1.tgz", - "integrity": "sha512-KlB8l5uoNcf9F7i5kXnkxoqJGd2BXH4f0+Lj2vSWSmuvMLYO1kNsJ1KHSzeDW8e45/whgSOPcKVT/3JopkT8dg==", - "dev": true, - "requires": { - "cssnano": "^5.0.6", - "jest-worker": "^27.0.2", - "p-limit": "^3.0.2", - "postcss": "^8.3.5", - "schema-utils": "^3.1.0", - "serialize-javascript": "^6.0.0", - "source-map": "^0.6.1" - }, - "dependencies": { - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "css-prefers-color-scheme": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/css-prefers-color-scheme/-/css-prefers-color-scheme-3.1.1.tgz", - "integrity": "sha512-MTu6+tMs9S3EUqzmqLXEcgNRbNkkD/TGFvowpeoWJn5Vfq7FMgsmRQs9X5NXAURiOBmOxm/lLjsDNXDE6k9bhg==", - "dev": true, - "requires": { - "postcss": "^7.0.5" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "css-select": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.1.3.tgz", - "integrity": "sha512-gT3wBNd9Nj49rAbmtFHj1cljIAOLYSX1nZ8CB7TBO3INYckygm5B7LISU/szY//YmdiSLbJvDLOx9VnMVpMBxA==", - "dev": true, - "requires": { - "boolbase": "^1.0.0", - "css-what": "^5.0.0", - "domhandler": "^4.2.0", - "domutils": "^2.6.0", - "nth-check": "^2.0.0" - } - }, - "css-tree": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", - "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", - "dev": true, - "requires": { - "mdn-data": "2.0.14", - "source-map": "^0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "css-what": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/css-what/-/css-what-5.1.0.tgz", - "integrity": "sha512-arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw==", - "dev": true - }, - "cssdb": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/cssdb/-/cssdb-4.4.0.tgz", - "integrity": "sha512-LsTAR1JPEM9TpGhl/0p3nQecC2LJ0kD8X5YARu1hk/9I1gril5vDtMZyNxcEpxxDj34YNck/ucjuoUd66K03oQ==", - "dev": true - }, - "cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "dev": true - }, - "cssnano": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.0.8.tgz", - "integrity": "sha512-Lda7geZU0Yu+RZi2SGpjYuQz4HI4/1Y+BhdD0jL7NXAQ5larCzVn+PUGuZbDMYz904AXXCOgO5L1teSvgu7aFg==", - "dev": true, - "requires": { - "cssnano-preset-default": "^5.1.4", - "is-resolvable": "^1.1.0", - "lilconfig": "^2.0.3", - "yaml": "^1.10.2" - } - }, - "cssnano-preset-default": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.1.4.tgz", - "integrity": "sha512-sPpQNDQBI3R/QsYxQvfB4mXeEcWuw0wGtKtmS5eg8wudyStYMgKOQT39G07EbW1LB56AOYrinRS9f0ig4Y3MhQ==", - "dev": true, - "requires": { - "css-declaration-sorter": "^6.0.3", - "cssnano-utils": "^2.0.1", - "postcss-calc": "^8.0.0", - "postcss-colormin": "^5.2.0", - "postcss-convert-values": "^5.0.1", - "postcss-discard-comments": "^5.0.1", - "postcss-discard-duplicates": "^5.0.1", - "postcss-discard-empty": "^5.0.1", - "postcss-discard-overridden": "^5.0.1", - "postcss-merge-longhand": "^5.0.2", - "postcss-merge-rules": "^5.0.2", - "postcss-minify-font-values": "^5.0.1", - "postcss-minify-gradients": "^5.0.2", - "postcss-minify-params": "^5.0.1", - "postcss-minify-selectors": "^5.1.0", - "postcss-normalize-charset": "^5.0.1", - "postcss-normalize-display-values": "^5.0.1", - "postcss-normalize-positions": "^5.0.1", - "postcss-normalize-repeat-style": "^5.0.1", - "postcss-normalize-string": "^5.0.1", - "postcss-normalize-timing-functions": "^5.0.1", - "postcss-normalize-unicode": "^5.0.1", - "postcss-normalize-url": "^5.0.2", - "postcss-normalize-whitespace": "^5.0.1", - "postcss-ordered-values": "^5.0.2", - "postcss-reduce-initial": "^5.0.1", - "postcss-reduce-transforms": "^5.0.1", - "postcss-svgo": "^5.0.2", - "postcss-unique-selectors": "^5.0.1" - } - }, - "cssnano-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-2.0.1.tgz", - "integrity": "sha512-i8vLRZTnEH9ubIyfdZCAdIdgnHAUeQeByEeQ2I7oTilvP9oHO6RScpeq3GsFUVqeB8uZgOQ9pw8utofNn32hhQ==", - "dev": true, - "requires": {} - }, - "csso": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", - "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", - "dev": true, - "requires": { - "css-tree": "^1.1.2" - } - }, - "dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, - "debug": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", - "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", - "dev": true, - "requires": { - "ms": "2.1.2" - } - }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true - }, - "decamelize-keys": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", - "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", - "dev": true, - "requires": { - "decamelize": "^1.1.0", - "map-obj": "^1.0.0" - }, - "dependencies": { - "map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", - "dev": true - } - } - }, - "deep-equal": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.1.tgz", - "integrity": "sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g==", - "dev": true, - "requires": { - "is-arguments": "^1.0.4", - "is-date-object": "^1.0.1", - "is-regex": "^1.0.4", - "object-is": "^1.0.1", - "object-keys": "^1.1.1", - "regexp.prototype.flags": "^1.2.0" - } - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "default-gateway": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", - "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", - "dev": true, - "requires": { - "execa": "^5.0.0" - } - }, - "define-lazy-prop": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", - "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", - "dev": true - }, - "define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", - "dev": true, - "requires": { - "object-keys": "^1.0.12" - } - }, - "del": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/del/-/del-4.1.1.tgz", - "integrity": "sha512-QwGuEUouP2kVwQenAsOof5Fv8K9t3D8Ca8NxcXKrIpEHjTXK5J2nXLdP+ALI1cgv8wj7KuwBhTwBkOZSJKM5XQ==", - "dev": true, - "requires": { - "@types/glob": "^7.1.1", - "globby": "^6.1.0", - "is-path-cwd": "^2.0.0", - "is-path-in-cwd": "^2.0.0", - "p-map": "^2.0.0", - "pify": "^4.0.1", - "rimraf": "^2.6.3" - }, - "dependencies": { - "array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", - "dev": true, - "requires": { - "array-uniq": "^1.0.1" - } - }, - "globby": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", - "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", - "dev": true, - "requires": { - "array-union": "^1.0.1", - "glob": "^7.0.3", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - }, - "dependencies": { - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - } - } - } - } - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true - }, - "delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", - "dev": true - }, - "depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", - "dev": true - }, - "destroy": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", - "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", - "dev": true - }, - "detect-node": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", - "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", - "dev": true - }, - "dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "requires": { - "path-type": "^4.0.0" - } - }, - "dns-equal": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", - "integrity": "sha1-s55/HabrCnW6nBcySzR1PEfgZU0=", - "dev": true - }, - "dns-packet": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.4.tgz", - "integrity": "sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA==", - "dev": true, - "requires": { - "ip": "^1.1.0", - "safe-buffer": "^5.0.1" - } - }, - "dns-txt": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/dns-txt/-/dns-txt-2.0.2.tgz", - "integrity": "sha1-uR2Ab10nGI5Ks+fRB9iBocxGQrY=", - "dev": true, - "requires": { - "buffer-indexof": "^1.0.0" - } - }, - "doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "dom-converter": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", - "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", - "dev": true, - "requires": { - "utila": "~0.4" - } - }, - "dom-serializer": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz", - "integrity": "sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==", - "dev": true, - "requires": { - "domelementtype": "^2.0.1", - "domhandler": "^4.2.0", - "entities": "^2.0.0" - } - }, - "domelementtype": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", - "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==", - "dev": true - }, - "domhandler": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.2.2.tgz", - "integrity": "sha512-PzE9aBMsdZO8TK4BnuJwH0QT41wgMbRzuZrHUcpYncEjmQazq8QEaBWgLG7ZyC/DAZKEgglpIA6j4Qn/HmxS3w==", - "dev": true, - "requires": { - "domelementtype": "^2.2.0" - } - }, - "domutils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", - "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", - "dev": true, - "requires": { - "dom-serializer": "^1.0.1", - "domelementtype": "^2.2.0", - "domhandler": "^4.2.0" - } - }, - "dot-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", - "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", - "dev": true, - "requires": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "dev": true, - "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, - "ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", - "dev": true - }, - "electron-to-chromium": { - "version": "1.3.870", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.870.tgz", - "integrity": "sha512-PiJMshfq6PL+i1V+nKLwhHbCKeD8eAz8rvO9Cwk/7cChOHJBtufmjajLyYLsSRHguRFiOCVx3XzJLeZsIAYfSA==", - "dev": true - }, - "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", - "dev": true - }, - "emojis-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", - "dev": true - }, - "encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", - "dev": true - }, - "enhanced-resolve": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-0.9.1.tgz", - "integrity": "sha1-TW5omzcl+GCQknzMhs2fFjW4ni4=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "memory-fs": "^0.2.0", - "tapable": "^0.1.8" - } - }, - "enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", - "dev": true, - "requires": { - "ansi-colors": "^4.1.1" - } - }, - "entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", - "dev": true - }, - "env-paths": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", - "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", - "dev": true - }, - "envinfo": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", - "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", - "dev": true - }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "es-abstract": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.19.1.tgz", - "integrity": "sha512-2vJ6tjA/UfqLm2MPs7jxVybLoB8i1t1Jd9R3kISld20sIxPcTbLuggQOUxeWeAvIUkduv/CfMjuh4WmiXr2v9w==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "get-intrinsic": "^1.1.1", - "get-symbol-description": "^1.0.0", - "has": "^1.0.3", - "has-symbols": "^1.0.2", - "internal-slot": "^1.0.3", - "is-callable": "^1.2.4", - "is-negative-zero": "^2.0.1", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.1", - "is-string": "^1.0.7", - "is-weakref": "^1.0.1", - "object-inspect": "^1.11.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.2", - "string.prototype.trimend": "^1.0.4", - "string.prototype.trimstart": "^1.0.4", - "unbox-primitive": "^1.0.1" - } - }, - "es-module-lexer": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", - "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", - "dev": true - }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true - }, - "escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "eslint": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.28.0.tgz", - "integrity": "sha512-UMfH0VSjP0G4p3EWirscJEQ/cHqnT/iuH6oNZOB94nBjWbMnhGEPxsZm1eyIW0C/9jLI0Fow4W5DXLjEI7mn1g==", - "dev": true, - "requires": { - "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.2", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.0.1", - "doctrine": "^3.0.0", - "enquirer": "^2.3.5", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^2.0.0", - "espree": "^7.3.1", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.1.2", - "globals": "^13.6.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.1.0", - "table": "^6.0.9", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.10.4" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - }, - "globals": { - "version": "13.11.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz", - "integrity": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==", - "dev": true, - "requires": { - "type-fest": "^0.20.2" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true - } - } - }, - "eslint-config-airbnb-base": { - "version": "14.2.1", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.2.1.tgz", - "integrity": "sha512-GOrQyDtVEc1Xy20U7vsB2yAoB4nBlfH5HZJeatRXHleO+OS5Ot+MWij4Dpltw4/DyIkqUfqz1epfhVR5XWWQPA==", - "dev": true, - "requires": { - "confusing-browser-globals": "^1.0.10", - "object.assign": "^4.1.2", - "object.entries": "^1.1.2" - } - }, - "eslint-config-prettier": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz", - "integrity": "sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==", - "dev": true, - "requires": {} - }, - "eslint-import-resolver-node": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", - "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", - "dev": true, - "requires": { - "debug": "^3.2.7", - "resolve": "^1.20.0" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-import-resolver-webpack": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-webpack/-/eslint-import-resolver-webpack-0.13.1.tgz", - "integrity": "sha512-O/8mG6AHmaKYSMb4lWxiXPpaARxOJ4rMQEHJ8vTgjS1MXooJA3KPgBPPAdOPoV17v5ML5120qod5FBLM+DtgEw==", - "dev": true, - "requires": { - "array-find": "^1.0.0", - "debug": "^3.2.7", - "enhanced-resolve": "^0.9.1", - "find-root": "^1.1.0", - "has": "^1.0.3", - "interpret": "^1.4.0", - "is-core-module": "^2.4.0", - "is-regex": "^1.1.3", - "lodash": "^4.17.21", - "resolve": "^1.20.0", - "semver": "^5.7.1" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - } - } - }, - "eslint-module-utils": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.1.tgz", - "integrity": "sha512-fjoetBXQZq2tSTWZ9yWVl2KuFrTZZH3V+9iD1V1RfpDgxzJR+mPd/KZmMiA8gbPqdBzpNiEHOuT7IYEWxrH0zQ==", - "dev": true, - "requires": { - "debug": "^3.2.7", - "find-up": "^2.1.0", - "pkg-dir": "^2.0.0" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-plugin-import": { - "version": "2.25.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.2.tgz", - "integrity": "sha512-qCwQr9TYfoBHOFcVGKY9C9unq05uOxxdklmBXLVvcwo68y5Hta6/GzCZEMx2zQiu0woKNEER0LE7ZgaOfBU14g==", - "dev": true, - "requires": { - "array-includes": "^3.1.4", - "array.prototype.flat": "^1.2.5", - "debug": "^2.6.9", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.6", - "eslint-module-utils": "^2.7.0", - "has": "^1.0.3", - "is-core-module": "^2.7.0", - "is-glob": "^4.0.3", - "minimatch": "^3.0.4", - "object.values": "^1.1.5", - "resolve": "^1.20.0", - "tsconfig-paths": "^3.11.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "eslint-plugin-prettier": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.0.0.tgz", - "integrity": "sha512-98MqmCJ7vJodoQK359bqQWaxOE0CS8paAz/GgjaZLyex4TTk3g9HugoO89EqWCrFiOqn9EVvcoo7gZzONCWVwQ==", - "dev": true, - "requires": { - "prettier-linter-helpers": "^1.0.0" - } - }, - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - } - }, - "eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^1.1.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true - } - } - }, - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true - }, - "espree": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", - "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", - "dev": true, - "requires": { - "acorn": "^7.4.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^1.3.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true - } - } - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, - "esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", - "dev": true, - "requires": { - "estraverse": "^5.1.0" - }, - "dependencies": { - "estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true - } - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "requires": { - "estraverse": "^5.2.0" - }, - "dependencies": { - "estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true - } - } - }, - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", - "dev": true - }, - "eventemitter3": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", - "dev": true - }, - "events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "dev": true - }, - "execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - } - }, - "express": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", - "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", - "dev": true, - "requires": { - "accepts": "~1.3.7", - "array-flatten": "1.1.1", - "body-parser": "1.19.0", - "content-disposition": "0.5.3", - "content-type": "~1.0.4", - "cookie": "0.4.0", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "~1.1.2", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "~1.1.2", - "fresh": "0.5.2", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "~2.3.0", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.5", - "qs": "6.7.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.1.2", - "send": "0.17.1", - "serve-static": "1.14.1", - "setprototypeof": "1.1.1", - "statuses": "~1.5.0", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "dependencies": { - "array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=", - "dev": true - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "qs": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", - "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", - "dev": true - } - } - }, - "extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true - }, - "extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", - "dev": true - }, - "fast-glob": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz", - "integrity": "sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - } - } - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", - "dev": true - }, - "fastest-levenshtein": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.12.tgz", - "integrity": "sha512-On2N+BpYJ15xIC974QNVuYGMOlEVt4s0EOI3wwMqOmK1fdDY+FN/zltPV8vosq4ad4c/gJ1KHScUn/6AWIgiow==", - "dev": true - }, - "fastq": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", - "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", - "dev": true, - "requires": { - "reusify": "^1.0.4" - } - }, - "faye-websocket": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", - "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", - "dev": true, - "requires": { - "websocket-driver": ">=0.5.1" - } - }, - "file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "requires": { - "flat-cache": "^3.0.4" - } - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "finalhandler": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", - "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", - "dev": true, - "requires": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "~2.3.0", - "parseurl": "~1.3.3", - "statuses": "~1.5.0", - "unpipe": "~1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "find-cache-dir": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", - "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", - "dev": true, - "requires": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "requires": { - "find-up": "^4.0.0" - } - } - } - }, - "find-root": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", - "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==", - "dev": true - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - }, - "fingerpose": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/fingerpose/-/fingerpose-0.1.0.tgz", - "integrity": "sha512-OXIRuRTgukBOo4xUO+vPchzHftZOPxO7VRh4HDjTg5NGr4gSkiY+LQShjsKAzmpRiRdmTgDh0dNsGpWa1Jsx3Q==" - }, - "flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", - "dev": true, - "requires": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - }, - "dependencies": { - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - } - } - }, - "flatted": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.2.tgz", - "integrity": "sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA==", - "dev": true - }, - "flatten": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/flatten/-/flatten-1.0.3.tgz", - "integrity": "sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg==", - "dev": true - }, - "follow-redirects": { - "version": "1.14.4", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.4.tgz", - "integrity": "sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g==", - "dev": true - }, - "forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true - }, - "form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "dev": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - } - }, - "forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "dev": true - }, - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", - "dev": true - }, - "fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dev": true, - "requires": { - "minipass": "^3.0.0" - } - }, - "fs-monkey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz", - "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==", - "dev": true - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" - }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "optional": true - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", - "dev": true - }, - "gauge": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", - "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", - "dev": true, - "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - } - } - }, - "gaze": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz", - "integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==", - "dev": true, - "requires": { - "globule": "^1.0.0" - } - }, - "gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, - "get-intrinsic": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", - "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", - "dev": true, - "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1" - } - }, - "get-stdin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", - "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", - "dev": true - }, - "get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true - }, - "get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, - "getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, - "glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "requires": { - "is-glob": "^4.0.3" - } - }, - "glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", - "dev": true - }, - "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true - }, - "globby": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", - "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", - "dev": true, - "requires": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", - "slash": "^3.0.0" - }, - "dependencies": { - "ignore": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", - "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", - "dev": true - } - } - }, - "globule": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/globule/-/globule-1.3.3.tgz", - "integrity": "sha512-mb1aYtDbIjTu4ShMB85m3UzjX9BVKe9WCzsnfMSZk+K5GpIbBOexgg4PPCt5eHDEG5/ZQAUX2Kct02zfiPLsKg==", - "dev": true, - "requires": { - "glob": "~7.1.1", - "lodash": "~4.17.10", - "minimatch": "~3.0.2" - }, - "dependencies": { - "glob": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", - "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - } - } - }, - "graceful-fs": { - "version": "4.2.8", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz", - "integrity": "sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==", - "dev": true - }, - "handle-thing": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", - "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==", - "dev": true - }, - "har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true - }, - "har-validator": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", - "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", - "dev": true, - "requires": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" - } - }, - "hard-rejection": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", - "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", - "dev": true - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - } - } - }, - "has-bigints": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.1.tgz", - "integrity": "sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "has-symbols": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz", - "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", - "dev": true - }, - "has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "requires": { - "has-symbols": "^1.0.2" - } - }, - "has-unicode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", - "dev": true - }, - "he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true - }, - "hosted-git-info": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", - "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "hpack.js": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", - "integrity": "sha1-h3dMCUnlE/QuhFdbPEVoH63ioLI=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "obuf": "^1.0.0", - "readable-stream": "^2.0.1", - "wbuf": "^1.1.0" - } - }, - "html-entities": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.2.tgz", - "integrity": "sha512-c3Ab/url5ksaT0WyleslpBEthOzWhrjQbg75y7XUsfSzi3Dgzt0l8w5e7DylRn15MTlMMD58dTfzddNS2kcAjQ==", - "dev": true - }, - "html-minifier-terser": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz", - "integrity": "sha512-ZPr5MNObqnV/T9akshPKbVgyOqLmy+Bxo7juKCfTfnjNniTAMdy4hz21YQqoofMBJD2kdREaqPPdThoR78Tgxg==", - "dev": true, - "requires": { - "camel-case": "^4.1.1", - "clean-css": "^4.2.3", - "commander": "^4.1.1", - "he": "^1.2.0", - "param-case": "^3.0.3", - "relateurl": "^0.2.7", - "terser": "^4.6.3" - } - }, - "html-webpack-plugin": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.3.2.tgz", - "integrity": "sha512-HvB33boVNCz2lTyBsSiMffsJ+m0YLIQ+pskblXgN9fnjS1BgEcuAfdInfXfGrkdXV406k9FiDi86eVCDBgJOyQ==", - "dev": true, - "requires": { - "@types/html-minifier-terser": "^5.0.0", - "html-minifier-terser": "^5.0.1", - "lodash": "^4.17.21", - "pretty-error": "^3.0.4", - "tapable": "^2.0.0" - }, - "dependencies": { - "tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "dev": true - } - } - }, - "htmlparser2": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", - "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", - "dev": true, - "requires": { - "domelementtype": "^2.0.1", - "domhandler": "^4.0.0", - "domutils": "^2.5.2", - "entities": "^2.0.0" - } - }, - "http-deceiver": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", - "integrity": "sha1-+nFolEq5pRnTN8sL7HKE3D5yPYc=", - "dev": true - }, - "http-errors": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", - "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", - "dev": true, - "requires": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.1", - "statuses": ">= 1.5.0 < 2", - "toidentifier": "1.0.0" - }, - "dependencies": { - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - } - } - }, - "http-parser-js": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.3.tgz", - "integrity": "sha512-t7hjvef/5HEK7RWTdUzVUhl8zkEu+LlaE0IYzdMuvbSDipxBRpOn4Uhw8ZyECEa808iVT8XCjzo6xmYt4CiLZg==", - "dev": true - }, - "http-proxy": { - "version": "1.18.1", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", - "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", - "dev": true, - "requires": { - "eventemitter3": "^4.0.0", - "follow-redirects": "^1.0.0", - "requires-port": "^1.0.0" - } - }, - "http-proxy-middleware": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.1.tgz", - "integrity": "sha512-cfaXRVoZxSed/BmkA7SwBVNI9Kj7HFltaE5rqYOub5kWzWZ+gofV2koVN1j2rMW7pEfSSlCHGJ31xmuyFyfLOg==", - "dev": true, - "requires": { - "@types/http-proxy": "^1.17.5", - "http-proxy": "^1.18.1", - "is-glob": "^4.0.1", - "is-plain-obj": "^3.0.0", - "micromatch": "^4.0.2" - }, - "dependencies": { - "is-plain-obj": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", - "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", - "dev": true - } - } - }, - "http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, - "human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "icss-utils": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", - "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", - "dev": true, - "requires": {} - }, - "ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", - "dev": true - }, - "import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - } - }, - "import-local": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.3.tgz", - "integrity": "sha512-bE9iaUY3CXH8Cwfan/abDKAxe1KGT9kyGsBPqf6DMK/z0a2OzAsrukeYNgIH6cH5Xr452jb1TUL8rSfCLjZ9uA==", - "dev": true, - "requires": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "requires": { - "find-up": "^4.0.0" - } - } - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true - }, - "indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true - }, - "indexes-of": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/indexes-of/-/indexes-of-1.0.1.tgz", - "integrity": "sha1-8w9xbI4r00bHtn0985FVZqfAVgc=", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "internal-ip": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/internal-ip/-/internal-ip-6.2.0.tgz", - "integrity": "sha512-D8WGsR6yDt8uq7vDMu7mjcR+yRMm3dW8yufyChmszWRjcSHuxLBkR3GdS2HZAjodsaGuCvXeEJpueisXJULghg==", - "dev": true, - "requires": { - "default-gateway": "^6.0.0", - "ipaddr.js": "^1.9.1", - "is-ip": "^3.1.0", - "p-event": "^4.2.0" - }, - "dependencies": { - "ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "dev": true - } - } - }, - "internal-slot": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", - "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - } - }, - "interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "dev": true - }, - "ip": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", - "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", - "dev": true - }, - "ip-regex": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz", - "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==", - "dev": true - }, - "ipaddr.js": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz", - "integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==", - "dev": true - }, - "is-absolute-url": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-3.0.3.tgz", - "integrity": "sha512-opmNIX7uFnS96NtPmhWQgQx6/NYFgsUXYMllcfzwWKUMwfo8kku1TvE6hkNcH+Q1ts5cMVrsY7j0bxXQDciu9Q==", - "dev": true - }, - "is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "requires": { - "has-bigints": "^1.0.1" - } - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-callable": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", - "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==", - "dev": true - }, - "is-core-module": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.0.tgz", - "integrity": "sha512-vd15qHsaqrRL7dtH6QNuy0ndJmRDrS9HAM1CAiSifNUFv4x1a0CCVsj18hJ1mShxIG6T2i1sO78MkP56r0nYRw==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-ip": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-ip/-/is-ip-3.1.0.tgz", - "integrity": "sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q==", - "dev": true, - "requires": { - "ip-regex": "^4.0.0" - } - }, - "is-negative-zero": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.1.tgz", - "integrity": "sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w==", - "dev": true - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "is-number-object": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.6.tgz", - "integrity": "sha512-bEVOqiRcvo3zO1+G2lVMy+gkkEm9Yh7cDMRusKKu5ZJKPUYSJwICTKZrNKHA2EbSP0Tu0+6B/emsYNHZyn6K8g==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-path-cwd": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", - "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", - "dev": true - }, - "is-path-in-cwd": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-2.1.0.tgz", - "integrity": "sha512-rNocXHgipO+rvnP6dk3zI20RpOtrAM/kzbB258Uw5BWr3TpXi861yzjo16Dn4hUox07iw5AyeMLHWsujkjzvRQ==", - "dev": true, - "requires": { - "is-path-inside": "^2.1.0" - } - }, - "is-path-inside": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-2.1.0.tgz", - "integrity": "sha512-wiyhTzfDWsvwAW53OBWF5zuvaOGlZ6PwYxAbPVDhpm+gM09xKQGjBq/8uYN12aDvMxnAnq3dxTyoSoRNmg5YFg==", - "dev": true, - "requires": { - "path-is-inside": "^1.0.2" - } - }, - "is-plain-obj": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", - "dev": true - }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-resolvable": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", - "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", - "dev": true - }, - "is-shared-array-buffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.1.tgz", - "integrity": "sha512-IU0NmyknYZN0rChcKhRO1X8LYz5Isj/Fsqh8NJOSf+N/hCOTwy29F32Ik7a+QszE63IdvmwdTPDd6cZ5pg4cwA==", - "dev": true - }, - "is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true - }, - "is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "requires": { - "has-symbols": "^1.0.2" - } - }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, - "is-weakref": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.1.tgz", - "integrity": "sha512-b2jKc2pQZjaeFYWEf7ScFj+Be1I+PXmlu572Q8coTXZ+LD/QQZ7ShPMst8h16riVgyXTQwUsFEl74mDvc/3MHQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.0" - } - }, - "is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dev": true, - "requires": { - "is-docker": "^2.0.0" - } - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", - "dev": true - }, - "jest-worker": { - "version": "27.2.5", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.2.5.tgz", - "integrity": "sha512-HTjEPZtcNKZ4LnhSp02NEH4vE+5OpJ0EsOWYvGQpHgUMLngydESAAMH5Wd/asPf29+XUDQZszxpLg1BkIIA2aw==", - "dev": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "js-base64": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz", - "integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==", - "dev": true - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true - }, - "jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true - }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true - }, - "json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", - "dev": true - }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true - }, - "json5": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", - "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "dev": true, - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, - "kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true - }, - "klona": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.4.tgz", - "integrity": "sha512-ZRbnvdg/NxqzC7L9Uyqzf4psi1OM4Cuc+sJAkQPjO6XkQIJTNbfK2Rsmbw8fx1p2mkZdp2FZYo2+LwXYY/uwIA==", - "dev": true - }, - "levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - } - }, - "lilconfig": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.3.tgz", - "integrity": "sha512-EHKqr/+ZvdKCifpNrJCKxBTgk5XupZA3y/aCPY9mxfgBzmgh93Mt/WqjjQ38oMxXuvDokaKiM3lAgvSH2sjtHg==", - "dev": true - }, - "lines-and-columns": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", - "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", - "dev": true - }, - "loader-runner": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.2.0.tgz", - "integrity": "sha512-92+huvxMvYlMzMt0iIOukcwYBFpkYJdpl2xsZ7LrlayO7E8SOv+JJUEK17B/dJIHAOLMfh2dZZ/Y18WgmGtYNw==", - "dev": true - }, - "loader-utils": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz", - "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==", - "dev": true, - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^1.0.1" - }, - "dependencies": { - "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", - "dev": true, - "requires": { - "minimist": "^1.2.0" - } - } - } - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - } - }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", - "dev": true - }, - "lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=", - "dev": true - }, - "lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", - "dev": true - }, - "lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", - "dev": true - }, - "lodash.uniq": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", - "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=", - "dev": true - }, - "long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" - }, - "lower-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", - "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", - "dev": true, - "requires": { - "tslib": "^2.0.3" - } - }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "map-obj": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", - "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", - "dev": true - }, - "mdn-data": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", - "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", - "dev": true - }, - "media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", - "dev": true - }, - "memfs": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.3.0.tgz", - "integrity": "sha512-BEE62uMfKOavX3iG7GYX43QJ+hAeeWnwIAuJ/R6q96jaMtiLzhsxHJC8B1L7fK7Pt/vXDRwb3SG/yBpNGDPqzg==", - "dev": true, - "requires": { - "fs-monkey": "1.0.3" - } - }, - "memory-fs": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.2.0.tgz", - "integrity": "sha1-8rslNovBIeORwlIN6Slpyu4KApA=", - "dev": true - }, - "meow": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz", - "integrity": "sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==", - "dev": true, - "requires": { - "@types/minimist": "^1.2.0", - "camelcase-keys": "^6.2.2", - "decamelize": "^1.2.0", - "decamelize-keys": "^1.1.0", - "hard-rejection": "^2.1.0", - "minimist-options": "4.1.0", - "normalize-package-data": "^3.0.0", - "read-pkg-up": "^7.0.1", - "redent": "^3.0.0", - "trim-newlines": "^3.0.0", - "type-fest": "^0.18.0", - "yargs-parser": "^20.2.3" - } - }, - "merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=", - "dev": true - }, - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true - }, - "methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", - "dev": true - }, - "micromatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", - "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", - "dev": true, - "requires": { - "braces": "^3.0.1", - "picomatch": "^2.2.3" - } - }, - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true - }, - "mime-db": { - "version": "1.50.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.50.0.tgz", - "integrity": "sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A==", - "dev": true - }, - "mime-types": { - "version": "2.1.33", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.33.tgz", - "integrity": "sha512-plLElXp7pRDd0bNZHw+nMd52vRYjLwQjygaNg7ddJ2uJtTlmnTCjWuPKxVu6//AdaRuME84SvLW91sIkBqGT0g==", - "dev": true, - "requires": { - "mime-db": "1.50.0" - } - }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true - }, - "min-indent": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", - "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", - "dev": true - }, - "mini-css-extract-plugin": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.4.2.tgz", - "integrity": "sha512-ZmqShkn79D36uerdED+9qdo1ZYG8C1YsWvXu0UMJxurZnSdgz7gQKO2EGv8T55MhDqG3DYmGtizZNpM/UbTlcA==", - "dev": true, - "requires": { - "schema-utils": "^3.1.0" - }, - "dependencies": { - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - } - } - }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", - "dev": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - }, - "minimist-options": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", - "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", - "dev": true, - "requires": { - "arrify": "^1.0.1", - "is-plain-obj": "^1.1.0", - "kind-of": "^6.0.3" - } - }, - "minipass": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.5.tgz", - "integrity": "sha512-+8NzxD82XQoNKNrl1d/FSi+X8wAEWR+sbYAfIvub4Nz0d22plFG72CEVVaufV8PNf4qSslFTD8VMOxNVhHCjTw==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "minizlib": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "dev": true, - "requires": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" - } - }, - "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "multicast-dns": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-6.2.3.tgz", - "integrity": "sha512-ji6J5enbMyGRHIAkAOu3WdV8nggqviKCEKtXcOqfphZZtQrmHKycfynJ2V7eVPUA4NhJ6V7Wf4TmGbTwKE9B6g==", - "dev": true, - "requires": { - "dns-packet": "^1.3.1", - "thunky": "^1.0.2" - } - }, - "multicast-dns-service-types": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz", - "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=", - "dev": true - }, - "nan": { - "version": "2.15.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", - "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==", - "dev": true - }, - "nanocolors": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/nanocolors/-/nanocolors-0.1.12.tgz", - "integrity": "sha512-2nMHqg1x5PU+unxX7PGY7AuYxl2qDx7PSrTRjizr8sxdd3l/3hBuWWaki62qmtYm2U5i4Z5E7GbjlyDFhs9/EQ==", - "dev": true - }, - "nanoid": { - "version": "3.1.30", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.30.tgz", - "integrity": "sha512-zJpuPDwOv8D2zq2WRoMe1HsfZthVewpel9CAvTfc/2mBD1uUT/agc5f7GHGWXlYkFvi1mVxe4IjvP2HNrop7nQ==", - "dev": true - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", - "dev": true - }, - "negotiator": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", - "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", - "dev": true - }, - "neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "dev": true - }, - "no-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", - "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", - "dev": true, - "requires": { - "lower-case": "^2.0.2", - "tslib": "^2.0.3" - } - }, - "node-fetch": { - "version": "2.6.6", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.6.tgz", - "integrity": "sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==", - "requires": { - "whatwg-url": "^5.0.0" - } - }, - "node-forge": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", - "integrity": "sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==", - "dev": true - }, - "node-gyp": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-7.1.2.tgz", - "integrity": "sha512-CbpcIo7C3eMu3dL1c3d0xw449fHIGALIJsRP4DDPHpyiW8vcriNY7ubh9TE4zEKfSxscY7PjeFnshE7h75ynjQ==", - "dev": true, - "requires": { - "env-paths": "^2.2.0", - "glob": "^7.1.4", - "graceful-fs": "^4.2.3", - "nopt": "^5.0.0", - "npmlog": "^4.1.2", - "request": "^2.88.2", - "rimraf": "^3.0.2", - "semver": "^7.3.2", - "tar": "^6.0.2", - "which": "^2.0.2" - }, - "dependencies": { - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - } - } - }, - "node-releases": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.0.tgz", - "integrity": "sha512-aA87l0flFYMzCHpTM3DERFSYxc6lv/BltdbRTOMZuxZ0cwZCD3mejE5n9vLhSJCN++/eOqr77G1IO5uXxlQYWA==", - "dev": true - }, - "node-sass": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-6.0.1.tgz", - "integrity": "sha512-f+Rbqt92Ful9gX0cGtdYwjTrWAaGURgaK5rZCWOgCNyGWusFYHhbqCCBoFBeat+HKETOU02AyTxNhJV0YZf2jQ==", - "dev": true, - "requires": { - "async-foreach": "^0.1.3", - "chalk": "^1.1.1", - "cross-spawn": "^7.0.3", - "gaze": "^1.0.0", - "get-stdin": "^4.0.1", - "glob": "^7.0.3", - "lodash": "^4.17.15", - "meow": "^9.0.0", - "nan": "^2.13.2", - "node-gyp": "^7.1.0", - "npmlog": "^4.0.0", - "request": "^2.88.0", - "sass-graph": "2.2.5", - "stdout-stream": "^1.4.0", - "true-case-path": "^1.0.2" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "nopt": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", - "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", - "dev": true, - "requires": { - "abbrev": "1" - } - }, - "normalize-package-data": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", - "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", - "dev": true, - "requires": { - "hosted-git-info": "^4.0.1", - "is-core-module": "^2.5.0", - "semver": "^7.3.4", - "validate-npm-package-license": "^3.0.1" - }, - "dependencies": { - "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - } - } - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - }, - "normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", - "dev": true - }, - "normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", - "dev": true - }, - "npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "requires": { - "path-key": "^3.0.0" - } - }, - "npmlog": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", - "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", - "dev": true, - "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "nth-check": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz", - "integrity": "sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==", - "dev": true, - "requires": { - "boolbase": "^1.0.0" - } - }, - "num2fraction": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", - "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", - "dev": true - }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true - }, - "oauth-sign": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, - "object-inspect": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.0.tgz", - "integrity": "sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg==", - "dev": true - }, - "object-is": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", - "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - } - }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true - }, - "object.assign": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz", - "integrity": "sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3", - "has-symbols": "^1.0.1", - "object-keys": "^1.1.1" - } - }, - "object.entries": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.5.tgz", - "integrity": "sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" - } - }, - "object.values": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.5.tgz", - "integrity": "sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" - } - }, - "obuf": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", - "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", - "dev": true - }, - "on-finished": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", - "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", - "dev": true, - "requires": { - "ee-first": "1.1.1" - } - }, - "on-headers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", - "dev": true - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "requires": { - "wrappy": "1" - } - }, - "onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "requires": { - "mimic-fn": "^2.1.0" - } - }, - "open": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/open/-/open-8.3.0.tgz", - "integrity": "sha512-7INcPWb1UcOwSQxAXTnBJ+FxVV4MPs/X++FWWBtgY69/J5lc+tCteMt/oFK1MnkyHC4VILLa9ntmwKTwDR4Q9w==", - "dev": true, - "requires": { - "define-lazy-prop": "^2.0.0", - "is-docker": "^2.1.1", - "is-wsl": "^2.2.0" - } - }, - "optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "dev": true, - "requires": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - } - }, - "p-event": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/p-event/-/p-event-4.2.0.tgz", - "integrity": "sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ==", - "dev": true, - "requires": { - "p-timeout": "^3.1.0" - } - }, - "p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "requires": { - "p-limit": "^1.1.0" - }, - "dependencies": { - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "requires": { - "p-try": "^1.0.0" - } - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true - } - } - }, - "p-map": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", - "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", - "dev": true - }, - "p-retry": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.1.tgz", - "integrity": "sha512-e2xXGNhZOZ0lfgR9kL34iGlU8N/KO0xZnQxVEwdeOvpqNDQfdnxIYizvWtK8RglUa3bGqI8g0R/BdfzLMxRkiA==", - "dev": true, - "requires": { - "@types/retry": "^0.12.0", - "retry": "^0.13.1" - } - }, - "p-timeout": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", - "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", - "dev": true, - "requires": { - "p-finally": "^1.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "param-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", - "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", - "dev": true, - "requires": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "requires": { - "callsites": "^3.0.0" - } - }, - "parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - } - }, - "parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true - }, - "pascal-case": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", - "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", - "dev": true, - "requires": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" - }, - "path-is-inside": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", - "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", - "dev": true - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=", - "dev": true - }, - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true - }, - "performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", - "dev": true - }, - "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true - }, - "picomatch": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", - "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", - "dev": true - }, - "pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", - "dev": true - }, - "pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", - "dev": true - }, - "pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", - "dev": true, - "requires": { - "pinkie": "^2.0.0" - } - }, - "pkg-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", - "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", - "dev": true, - "requires": { - "find-up": "^2.1.0" - } - }, - "portfinder": { - "version": "1.0.28", - "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz", - "integrity": "sha512-Se+2isanIcEqf2XMHjyUKskczxbPH7dQnlMjXX6+dybayyHvAf/TCgyMRlzf/B6QDhAEFOGes0pzRo3by4AbMA==", - "dev": true, - "requires": { - "async": "^2.6.2", - "debug": "^3.1.1", - "mkdirp": "^0.5.5" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - } - } - }, - "postcss": { - "version": "8.3.9", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.3.9.tgz", - "integrity": "sha512-f/ZFyAKh9Dnqytx5X62jgjhhzttjZS7hMsohcI7HEI5tjELX/HxCy3EFhsRxyzGvrzFF+82XPvCS8T9TFleVJw==", - "dev": true, - "requires": { - "nanoid": "^3.1.28", - "picocolors": "^0.2.1", - "source-map-js": "^0.6.2" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - } - } - }, - "postcss-attribute-case-insensitive": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-4.0.2.tgz", - "integrity": "sha512-clkFxk/9pcdb4Vkn0hAHq3YnxBQ2p0CGD1dy24jN+reBck+EWxMbxSUqN4Yj7t0w8csl87K6p0gxBe1utkJsYA==", - "dev": true, - "requires": { - "postcss": "^7.0.2", - "postcss-selector-parser": "^6.0.2" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-calc": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.0.0.tgz", - "integrity": "sha512-5NglwDrcbiy8XXfPM11F3HeC6hoT9W7GUH/Zi5U/p7u3Irv4rHhdDcIZwG0llHXV4ftsBjpfWMXAnXNl4lnt8g==", - "dev": true, - "requires": { - "postcss-selector-parser": "^6.0.2", - "postcss-value-parser": "^4.0.2" - } - }, - "postcss-color-functional-notation": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/postcss-color-functional-notation/-/postcss-color-functional-notation-2.0.1.tgz", - "integrity": "sha512-ZBARCypjEDofW4P6IdPVTLhDNXPRn8T2s1zHbZidW6rPaaZvcnCS2soYFIQJrMZSxiePJ2XIYTlcb2ztr/eT2g==", - "dev": true, - "requires": { - "postcss": "^7.0.2", - "postcss-values-parser": "^2.0.0" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-color-gray": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-color-gray/-/postcss-color-gray-5.0.0.tgz", - "integrity": "sha512-q6BuRnAGKM/ZRpfDascZlIZPjvwsRye7UDNalqVz3s7GDxMtqPY6+Q871liNxsonUw8oC61OG+PSaysYpl1bnw==", - "dev": true, - "requires": { - "@csstools/convert-colors": "^1.4.0", - "postcss": "^7.0.5", - "postcss-values-parser": "^2.0.0" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-color-hex-alpha": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/postcss-color-hex-alpha/-/postcss-color-hex-alpha-5.0.3.tgz", - "integrity": "sha512-PF4GDel8q3kkreVXKLAGNpHKilXsZ6xuu+mOQMHWHLPNyjiUBOr75sp5ZKJfmv1MCus5/DWUGcK9hm6qHEnXYw==", - "dev": true, - "requires": { - "postcss": "^7.0.14", - "postcss-values-parser": "^2.0.1" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-color-mod-function": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/postcss-color-mod-function/-/postcss-color-mod-function-3.0.3.tgz", - "integrity": "sha512-YP4VG+xufxaVtzV6ZmhEtc+/aTXH3d0JLpnYfxqTvwZPbJhWqp8bSY3nfNzNRFLgB4XSaBA82OE4VjOOKpCdVQ==", - "dev": true, - "requires": { - "@csstools/convert-colors": "^1.4.0", - "postcss": "^7.0.2", - "postcss-values-parser": "^2.0.0" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-color-rebeccapurple": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-4.0.1.tgz", - "integrity": "sha512-aAe3OhkS6qJXBbqzvZth2Au4V3KieR5sRQ4ptb2b2O8wgvB3SJBsdG+jsn2BZbbwekDG8nTfcCNKcSfe/lEy8g==", - "dev": true, - "requires": { - "postcss": "^7.0.2", - "postcss-values-parser": "^2.0.0" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-colormin": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.2.0.tgz", - "integrity": "sha512-+HC6GfWU3upe5/mqmxuqYZ9B2Wl4lcoUUNkoaX59nEWV4EtADCMiBqui111Bu8R8IvaZTmqmxrqOAqjbHIwXPw==", - "dev": true, - "requires": { - "browserslist": "^4.16.6", - "caniuse-api": "^3.0.0", - "colord": "^2.0.1", - "postcss-value-parser": "^4.1.0" - } - }, - "postcss-convert-values": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.0.1.tgz", - "integrity": "sha512-C3zR1Do2BkKkCgC0g3sF8TS0koF2G+mN8xxayZx3f10cIRmTaAnpgpRQZjNekTZxM2ciSPoh2IWJm0VZx8NoQg==", - "dev": true, - "requires": { - "postcss-value-parser": "^4.1.0" - } - }, - "postcss-custom-media": { - "version": "7.0.8", - "resolved": "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-7.0.8.tgz", - "integrity": "sha512-c9s5iX0Ge15o00HKbuRuTqNndsJUbaXdiNsksnVH8H4gdc+zbLzr/UasOwNG6CTDpLFekVY4672eWdiiWu2GUg==", - "dev": true, - "requires": { - "postcss": "^7.0.14" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-custom-properties": { - "version": "8.0.11", - "resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-8.0.11.tgz", - "integrity": "sha512-nm+o0eLdYqdnJ5abAJeXp4CEU1c1k+eB2yMCvhgzsds/e0umabFrN6HoTy/8Q4K5ilxERdl/JD1LO5ANoYBeMA==", - "dev": true, - "requires": { - "postcss": "^7.0.17", - "postcss-values-parser": "^2.0.1" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-custom-selectors": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/postcss-custom-selectors/-/postcss-custom-selectors-5.1.2.tgz", - "integrity": "sha512-DSGDhqinCqXqlS4R7KGxL1OSycd1lydugJ1ky4iRXPHdBRiozyMHrdu0H3o7qNOCiZwySZTUI5MV0T8QhCLu+w==", - "dev": true, - "requires": { - "postcss": "^7.0.2", - "postcss-selector-parser": "^5.0.0-rc.3" - }, - "dependencies": { - "cssesc": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", - "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", - "dev": true - }, - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "postcss-selector-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", - "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", - "dev": true, - "requires": { - "cssesc": "^2.0.0", - "indexes-of": "^1.0.1", - "uniq": "^1.0.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-dir-pseudo-class": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-dir-pseudo-class/-/postcss-dir-pseudo-class-5.0.0.tgz", - "integrity": "sha512-3pm4oq8HYWMZePJY+5ANriPs3P07q+LW6FAdTlkFH2XqDdP4HeeJYMOzn0HYLhRSjBO3fhiqSwwU9xEULSrPgw==", - "dev": true, - "requires": { - "postcss": "^7.0.2", - "postcss-selector-parser": "^5.0.0-rc.3" - }, - "dependencies": { - "cssesc": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", - "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", - "dev": true - }, - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "postcss-selector-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", - "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", - "dev": true, - "requires": { - "cssesc": "^2.0.0", - "indexes-of": "^1.0.1", - "uniq": "^1.0.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-discard-comments": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.0.1.tgz", - "integrity": "sha512-lgZBPTDvWrbAYY1v5GYEv8fEO/WhKOu/hmZqmCYfrpD6eyDWWzAOsl2rF29lpvziKO02Gc5GJQtlpkTmakwOWg==", - "dev": true, - "requires": {} - }, - "postcss-discard-duplicates": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.0.1.tgz", - "integrity": "sha512-svx747PWHKOGpAXXQkCc4k/DsWo+6bc5LsVrAsw+OU+Ibi7klFZCyX54gjYzX4TH+f2uzXjRviLARxkMurA2bA==", - "dev": true, - "requires": {} - }, - "postcss-discard-empty": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.0.1.tgz", - "integrity": "sha512-vfU8CxAQ6YpMxV2SvMcMIyF2LX1ZzWpy0lqHDsOdaKKLQVQGVP1pzhrI9JlsO65s66uQTfkQBKBD/A5gp9STFw==", - "dev": true, - "requires": {} - }, - "postcss-discard-overridden": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.0.1.tgz", - "integrity": "sha512-Y28H7y93L2BpJhrdUR2SR2fnSsT+3TVx1NmVQLbcnZWwIUpJ7mfcTC6Za9M2PG6w8j7UQRfzxqn8jU2VwFxo3Q==", - "dev": true, - "requires": {} - }, - "postcss-double-position-gradients": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-1.0.0.tgz", - "integrity": "sha512-G+nV8EnQq25fOI8CH/B6krEohGWnF5+3A6H/+JEpOncu5dCnkS1QQ6+ct3Jkaepw1NGVqqOZH6lqrm244mCftA==", - "dev": true, - "requires": { - "postcss": "^7.0.5", - "postcss-values-parser": "^2.0.0" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-env-function": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/postcss-env-function/-/postcss-env-function-2.0.2.tgz", - "integrity": "sha512-rwac4BuZlITeUbiBq60h/xbLzXY43qOsIErngWa4l7Mt+RaSkT7QBjXVGTcBHupykkblHMDrBFh30zchYPaOUw==", - "dev": true, - "requires": { - "postcss": "^7.0.2", - "postcss-values-parser": "^2.0.0" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-focus-visible": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-focus-visible/-/postcss-focus-visible-4.0.0.tgz", - "integrity": "sha512-Z5CkWBw0+idJHSV6+Bgf2peDOFf/x4o+vX/pwcNYrWpXFrSfTkQ3JQ1ojrq9yS+upnAlNRHeg8uEwFTgorjI8g==", - "dev": true, - "requires": { - "postcss": "^7.0.2" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-focus-within": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-focus-within/-/postcss-focus-within-3.0.0.tgz", - "integrity": "sha512-W0APui8jQeBKbCGZudW37EeMCjDeVxKgiYfIIEo8Bdh5SpB9sxds/Iq8SEuzS0Q4YFOlG7EPFulbbxujpkrV2w==", - "dev": true, - "requires": { - "postcss": "^7.0.2" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-font-variant": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-font-variant/-/postcss-font-variant-4.0.1.tgz", - "integrity": "sha512-I3ADQSTNtLTTd8uxZhtSOrTCQ9G4qUVKPjHiDk0bV75QSxXjVWiJVJ2VLdspGUi9fbW9BcjKJoRvxAH1pckqmA==", - "dev": true, - "requires": { - "postcss": "^7.0.2" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-gap-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/postcss-gap-properties/-/postcss-gap-properties-2.0.0.tgz", - "integrity": "sha512-QZSqDaMgXCHuHTEzMsS2KfVDOq7ZFiknSpkrPJY6jmxbugUPTuSzs/vuE5I3zv0WAS+3vhrlqhijiprnuQfzmg==", - "dev": true, - "requires": { - "postcss": "^7.0.2" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-image-set-function": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/postcss-image-set-function/-/postcss-image-set-function-3.0.1.tgz", - "integrity": "sha512-oPTcFFip5LZy8Y/whto91L9xdRHCWEMs3e1MdJxhgt4jy2WYXfhkng59fH5qLXSCPN8k4n94p1Czrfe5IOkKUw==", - "dev": true, - "requires": { - "postcss": "^7.0.2", - "postcss-values-parser": "^2.0.0" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-initial": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/postcss-initial/-/postcss-initial-3.0.4.tgz", - "integrity": "sha512-3RLn6DIpMsK1l5UUy9jxQvoDeUN4gP939tDcKUHD/kM8SGSKbFAnvkpFpj3Bhtz3HGk1jWY5ZNWX6mPta5M9fg==", - "dev": true, - "requires": { - "postcss": "^7.0.2" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-lab-function": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/postcss-lab-function/-/postcss-lab-function-2.0.1.tgz", - "integrity": "sha512-whLy1IeZKY+3fYdqQFuDBf8Auw+qFuVnChWjmxm/UhHWqNHZx+B99EwxTvGYmUBqe3Fjxs4L1BoZTJmPu6usVg==", - "dev": true, - "requires": { - "@csstools/convert-colors": "^1.4.0", - "postcss": "^7.0.2", - "postcss-values-parser": "^2.0.0" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-loader": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.2.0.tgz", - "integrity": "sha512-H9hv447QjQJVDbHj3OUdciyAXY3v5+UDduzEytAlZCVHCpNAAg/mCSwhYYqZr9BiGYhmYspU8QXxZwiHTLn3yA==", - "dev": true, - "requires": { - "cosmiconfig": "^7.0.0", - "klona": "^2.0.4", - "semver": "^7.3.5" - }, - "dependencies": { - "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - } - } - }, - "postcss-logical": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-logical/-/postcss-logical-3.0.0.tgz", - "integrity": "sha512-1SUKdJc2vuMOmeItqGuNaC+N8MzBWFWEkAnRnLpFYj1tGGa7NqyVBujfRtgNa2gXR+6RkGUiB2O5Vmh7E2RmiA==", - "dev": true, - "requires": { - "postcss": "^7.0.2" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-media-minmax": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-media-minmax/-/postcss-media-minmax-4.0.0.tgz", - "integrity": "sha512-fo9moya6qyxsjbFAYl97qKO9gyre3qvbMnkOZeZwlsW6XYFsvs2DMGDlchVLfAd8LHPZDxivu/+qW2SMQeTHBw==", - "dev": true, - "requires": { - "postcss": "^7.0.2" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-merge-longhand": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.0.2.tgz", - "integrity": "sha512-BMlg9AXSI5G9TBT0Lo/H3PfUy63P84rVz3BjCFE9e9Y9RXQZD3+h3YO1kgTNsNJy7bBc1YQp8DmSnwLIW5VPcw==", - "dev": true, - "requires": { - "css-color-names": "^1.0.1", - "postcss-value-parser": "^4.1.0", - "stylehacks": "^5.0.1" - } - }, - "postcss-merge-rules": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.0.2.tgz", - "integrity": "sha512-5K+Md7S3GwBewfB4rjDeol6V/RZ8S+v4B66Zk2gChRqLTCC8yjnHQ601omj9TKftS19OPGqZ/XzoqpzNQQLwbg==", - "dev": true, - "requires": { - "browserslist": "^4.16.6", - "caniuse-api": "^3.0.0", - "cssnano-utils": "^2.0.1", - "postcss-selector-parser": "^6.0.5", - "vendors": "^1.0.3" - } - }, - "postcss-minify-font-values": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.0.1.tgz", - "integrity": "sha512-7JS4qIsnqaxk+FXY1E8dHBDmraYFWmuL6cgt0T1SWGRO5bzJf8sUoelwa4P88LEWJZweHevAiDKxHlofuvtIoA==", - "dev": true, - "requires": { - "postcss-value-parser": "^4.1.0" - } - }, - "postcss-minify-gradients": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.0.2.tgz", - "integrity": "sha512-7Do9JP+wqSD6Prittitt2zDLrfzP9pqKs2EcLX7HJYxsxCOwrrcLt4x/ctQTsiOw+/8HYotAoqNkrzItL19SdQ==", - "dev": true, - "requires": { - "colord": "^2.6", - "cssnano-utils": "^2.0.1", - "postcss-value-parser": "^4.1.0" - } - }, - "postcss-minify-params": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.0.1.tgz", - "integrity": "sha512-4RUC4k2A/Q9mGco1Z8ODc7h+A0z7L7X2ypO1B6V8057eVK6mZ6xwz6QN64nHuHLbqbclkX1wyzRnIrdZehTEHw==", - "dev": true, - "requires": { - "alphanum-sort": "^1.0.2", - "browserslist": "^4.16.0", - "cssnano-utils": "^2.0.1", - "postcss-value-parser": "^4.1.0", - "uniqs": "^2.0.0" - } - }, - "postcss-minify-selectors": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.1.0.tgz", - "integrity": "sha512-NzGBXDa7aPsAcijXZeagnJBKBPMYLaJJzB8CQh6ncvyl2sIndLVWfbcDi0SBjRWk5VqEjXvf8tYwzoKf4Z07og==", - "dev": true, - "requires": { - "alphanum-sort": "^1.0.2", - "postcss-selector-parser": "^6.0.5" - } - }, - "postcss-modules-extract-imports": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", - "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", - "dev": true, - "requires": {} - }, - "postcss-modules-local-by-default": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz", - "integrity": "sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==", - "dev": true, - "requires": { - "icss-utils": "^5.0.0", - "postcss-selector-parser": "^6.0.2", - "postcss-value-parser": "^4.1.0" - } - }, - "postcss-modules-scope": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", - "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", - "dev": true, - "requires": { - "postcss-selector-parser": "^6.0.4" - } - }, - "postcss-modules-values": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", - "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", - "dev": true, - "requires": { - "icss-utils": "^5.0.0" - } - }, - "postcss-nesting": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-7.0.1.tgz", - "integrity": "sha512-FrorPb0H3nuVq0Sff7W2rnc3SmIcruVC6YwpcS+k687VxyxO33iE1amna7wHuRVzM8vfiYofXSBHNAZ3QhLvYg==", - "dev": true, - "requires": { - "postcss": "^7.0.2" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-normalize-charset": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.0.1.tgz", - "integrity": "sha512-6J40l6LNYnBdPSk+BHZ8SF+HAkS4q2twe5jnocgd+xWpz/mx/5Sa32m3W1AA8uE8XaXN+eg8trIlfu8V9x61eg==", - "dev": true, - "requires": {} - }, - "postcss-normalize-display-values": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.0.1.tgz", - "integrity": "sha512-uupdvWk88kLDXi5HEyI9IaAJTE3/Djbcrqq8YgjvAVuzgVuqIk3SuJWUisT2gaJbZm1H9g5k2w1xXilM3x8DjQ==", - "dev": true, - "requires": { - "cssnano-utils": "^2.0.1", - "postcss-value-parser": "^4.1.0" - } - }, - "postcss-normalize-positions": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.0.1.tgz", - "integrity": "sha512-rvzWAJai5xej9yWqlCb1OWLd9JjW2Ex2BCPzUJrbaXmtKtgfL8dBMOOMTX6TnvQMtjk3ei1Lswcs78qKO1Skrg==", - "dev": true, - "requires": { - "postcss-value-parser": "^4.1.0" - } - }, - "postcss-normalize-repeat-style": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.0.1.tgz", - "integrity": "sha512-syZ2itq0HTQjj4QtXZOeefomckiV5TaUO6ReIEabCh3wgDs4Mr01pkif0MeVwKyU/LHEkPJnpwFKRxqWA/7O3w==", - "dev": true, - "requires": { - "cssnano-utils": "^2.0.1", - "postcss-value-parser": "^4.1.0" - } - }, - "postcss-normalize-string": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.0.1.tgz", - "integrity": "sha512-Ic8GaQ3jPMVl1OEn2U//2pm93AXUcF3wz+OriskdZ1AOuYV25OdgS7w9Xu2LO5cGyhHCgn8dMXh9bO7vi3i9pA==", - "dev": true, - "requires": { - "postcss-value-parser": "^4.1.0" - } - }, - "postcss-normalize-timing-functions": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.0.1.tgz", - "integrity": "sha512-cPcBdVN5OsWCNEo5hiXfLUnXfTGtSFiBU9SK8k7ii8UD7OLuznzgNRYkLZow11BkQiiqMcgPyh4ZqXEEUrtQ1Q==", - "dev": true, - "requires": { - "cssnano-utils": "^2.0.1", - "postcss-value-parser": "^4.1.0" - } - }, - "postcss-normalize-unicode": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.0.1.tgz", - "integrity": "sha512-kAtYD6V3pK0beqrU90gpCQB7g6AOfP/2KIPCVBKJM2EheVsBQmx/Iof+9zR9NFKLAx4Pr9mDhogB27pmn354nA==", - "dev": true, - "requires": { - "browserslist": "^4.16.0", - "postcss-value-parser": "^4.1.0" - } - }, - "postcss-normalize-url": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.0.2.tgz", - "integrity": "sha512-k4jLTPUxREQ5bpajFQZpx8bCF2UrlqOTzP9kEqcEnOfwsRshWs2+oAFIHfDQB8GO2PaUaSE0NlTAYtbluZTlHQ==", - "dev": true, - "requires": { - "is-absolute-url": "^3.0.3", - "normalize-url": "^6.0.1", - "postcss-value-parser": "^4.1.0" - } - }, - "postcss-normalize-whitespace": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.0.1.tgz", - "integrity": "sha512-iPklmI5SBnRvwceb/XH568yyzK0qRVuAG+a1HFUsFRf11lEJTiQQa03a4RSCQvLKdcpX7XsI1Gen9LuLoqwiqA==", - "dev": true, - "requires": { - "postcss-value-parser": "^4.1.0" - } - }, - "postcss-ordered-values": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.0.2.tgz", - "integrity": "sha512-8AFYDSOYWebJYLyJi3fyjl6CqMEG/UVworjiyK1r573I56kb3e879sCJLGvR3merj+fAdPpVplXKQZv+ey6CgQ==", - "dev": true, - "requires": { - "cssnano-utils": "^2.0.1", - "postcss-value-parser": "^4.1.0" - } - }, - "postcss-overflow-shorthand": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/postcss-overflow-shorthand/-/postcss-overflow-shorthand-2.0.0.tgz", - "integrity": "sha512-aK0fHc9CBNx8jbzMYhshZcEv8LtYnBIRYQD5i7w/K/wS9c2+0NSR6B3OVMu5y0hBHYLcMGjfU+dmWYNKH0I85g==", - "dev": true, - "requires": { - "postcss": "^7.0.2" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-page-break": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/postcss-page-break/-/postcss-page-break-2.0.0.tgz", - "integrity": "sha512-tkpTSrLpfLfD9HvgOlJuigLuk39wVTbbd8RKcy8/ugV2bNBUW3xU+AIqyxhDrQr1VUj1RmyJrBn1YWrqUm9zAQ==", - "dev": true, - "requires": { - "postcss": "^7.0.2" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-place": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-place/-/postcss-place-4.0.1.tgz", - "integrity": "sha512-Zb6byCSLkgRKLODj/5mQugyuj9bvAAw9LqJJjgwz5cYryGeXfFZfSXoP1UfveccFmeq0b/2xxwcTEVScnqGxBg==", - "dev": true, - "requires": { - "postcss": "^7.0.2", - "postcss-values-parser": "^2.0.0" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-preset-env": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-6.7.0.tgz", - "integrity": "sha512-eU4/K5xzSFwUFJ8hTdTQzo2RBLbDVt83QZrAvI07TULOkmyQlnYlpwep+2yIK+K+0KlZO4BvFcleOCCcUtwchg==", - "dev": true, - "requires": { - "autoprefixer": "^9.6.1", - "browserslist": "^4.6.4", - "caniuse-lite": "^1.0.30000981", - "css-blank-pseudo": "^0.1.4", - "css-has-pseudo": "^0.10.0", - "css-prefers-color-scheme": "^3.1.1", - "cssdb": "^4.4.0", - "postcss": "^7.0.17", - "postcss-attribute-case-insensitive": "^4.0.1", - "postcss-color-functional-notation": "^2.0.1", - "postcss-color-gray": "^5.0.0", - "postcss-color-hex-alpha": "^5.0.3", - "postcss-color-mod-function": "^3.0.3", - "postcss-color-rebeccapurple": "^4.0.1", - "postcss-custom-media": "^7.0.8", - "postcss-custom-properties": "^8.0.11", - "postcss-custom-selectors": "^5.1.2", - "postcss-dir-pseudo-class": "^5.0.0", - "postcss-double-position-gradients": "^1.0.0", - "postcss-env-function": "^2.0.2", - "postcss-focus-visible": "^4.0.0", - "postcss-focus-within": "^3.0.0", - "postcss-font-variant": "^4.0.0", - "postcss-gap-properties": "^2.0.0", - "postcss-image-set-function": "^3.0.1", - "postcss-initial": "^3.0.0", - "postcss-lab-function": "^2.0.1", - "postcss-logical": "^3.0.0", - "postcss-media-minmax": "^4.0.0", - "postcss-nesting": "^7.0.0", - "postcss-overflow-shorthand": "^2.0.0", - "postcss-page-break": "^2.0.0", - "postcss-place": "^4.0.1", - "postcss-pseudo-class-any-link": "^6.0.0", - "postcss-replace-overflow-wrap": "^3.0.0", - "postcss-selector-matches": "^4.0.0", - "postcss-selector-not": "^4.0.0" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-pseudo-class-any-link": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-6.0.0.tgz", - "integrity": "sha512-lgXW9sYJdLqtmw23otOzrtbDXofUdfYzNm4PIpNE322/swES3VU9XlXHeJS46zT2onFO7V1QFdD4Q9LiZj8mew==", - "dev": true, - "requires": { - "postcss": "^7.0.2", - "postcss-selector-parser": "^5.0.0-rc.3" - }, - "dependencies": { - "cssesc": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", - "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", - "dev": true - }, - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "postcss-selector-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", - "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", - "dev": true, - "requires": { - "cssesc": "^2.0.0", - "indexes-of": "^1.0.1", - "uniq": "^1.0.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-reduce-initial": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.0.1.tgz", - "integrity": "sha512-zlCZPKLLTMAqA3ZWH57HlbCjkD55LX9dsRyxlls+wfuRfqCi5mSlZVan0heX5cHr154Dq9AfbH70LyhrSAezJw==", - "dev": true, - "requires": { - "browserslist": "^4.16.0", - "caniuse-api": "^3.0.0" - } - }, - "postcss-reduce-transforms": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.0.1.tgz", - "integrity": "sha512-a//FjoPeFkRuAguPscTVmRQUODP+f3ke2HqFNgGPwdYnpeC29RZdCBvGRGTsKpMURb/I3p6jdKoBQ2zI+9Q7kA==", - "dev": true, - "requires": { - "cssnano-utils": "^2.0.1", - "postcss-value-parser": "^4.1.0" - } - }, - "postcss-replace-overflow-wrap": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-3.0.0.tgz", - "integrity": "sha512-2T5hcEHArDT6X9+9dVSPQdo7QHzG4XKclFT8rU5TzJPDN7RIRTbO9c4drUISOVemLj03aezStHCR2AIcr8XLpw==", - "dev": true, - "requires": { - "postcss": "^7.0.2" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-selector-matches": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/postcss-selector-matches/-/postcss-selector-matches-4.0.0.tgz", - "integrity": "sha512-LgsHwQR/EsRYSqlwdGzeaPKVT0Ml7LAT6E75T8W8xLJY62CE4S/l03BWIt3jT8Taq22kXP08s2SfTSzaraoPww==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "postcss": "^7.0.2" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-selector-not": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-4.0.1.tgz", - "integrity": "sha512-YolvBgInEK5/79C+bdFMyzqTg6pkYqDbzZIST/PDMqa/o3qtXenD05apBG2jLgT0/BQ77d4U2UK12jWpilqMAQ==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "postcss": "^7.0.2" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - }, - "postcss": { - "version": "7.0.39", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", - "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", - "dev": true, - "requires": { - "picocolors": "^0.2.1", - "source-map": "^0.6.1" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "postcss-selector-parser": { - "version": "6.0.6", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.6.tgz", - "integrity": "sha512-9LXrvaaX3+mcv5xkg5kFwqSzSH1JIObIx51PrndZwlmznwXRfxMddDvo9gve3gVR8ZTKgoFDdWkbRFmEhT4PMg==", - "dev": true, - "requires": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - } - }, - "postcss-svgo": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.0.2.tgz", - "integrity": "sha512-YzQuFLZu3U3aheizD+B1joQ94vzPfE6BNUcSYuceNxlVnKKsOtdo6hL9/zyC168Q8EwfLSgaDSalsUGa9f2C0A==", - "dev": true, - "requires": { - "postcss-value-parser": "^4.1.0", - "svgo": "^2.3.0" - } - }, - "postcss-unique-selectors": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.0.1.tgz", - "integrity": "sha512-gwi1NhHV4FMmPn+qwBNuot1sG1t2OmacLQ/AX29lzyggnjd+MnVD5uqQmpXO3J17KGL2WAxQruj1qTd3H0gG/w==", - "dev": true, - "requires": { - "alphanum-sort": "^1.0.2", - "postcss-selector-parser": "^6.0.5", - "uniqs": "^2.0.0" - } - }, - "postcss-value-parser": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.1.0.tgz", - "integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==", - "dev": true - }, - "postcss-values-parser": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/postcss-values-parser/-/postcss-values-parser-2.0.1.tgz", - "integrity": "sha512-2tLuBsA6P4rYTNKCXYG/71C7j1pU6pK503suYOmn4xYrQIzW+opD+7FAFNuGSdZC/3Qfy334QbeMu7MEb8gOxg==", - "dev": true, - "requires": { - "flatten": "^1.0.2", - "indexes-of": "^1.0.1", - "uniq": "^1.0.1" - } - }, - "prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true - }, - "prettier": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.4.1.tgz", - "integrity": "sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==", - "dev": true - }, - "prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "requires": { - "fast-diff": "^1.1.2" - } - }, - "pretty-error": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-3.0.4.tgz", - "integrity": "sha512-ytLFLfv1So4AO1UkoBF6GXQgJRaKbiSiGFICaOPNwQ3CMvBvXpLRubeQWyPGnsbV/t9ml9qto6IeCsho0aEvwQ==", - "dev": true, - "requires": { - "lodash": "^4.17.20", - "renderkid": "^2.0.6" - } - }, - "process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true - }, - "progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true - }, - "proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dev": true, - "requires": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "dependencies": { - "ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "dev": true - } - } - }, - "psl": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", - "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", - "dev": true - }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true - }, - "qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true - }, - "querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", - "dev": true - }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true - }, - "quick-lru": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", - "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", - "dev": true - }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "requires": { - "safe-buffer": "^5.1.0" - } - }, - "range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true - }, - "raw-body": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", - "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", - "dev": true, - "requires": { - "bytes": "3.1.0", - "http-errors": "1.7.2", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, - "dependencies": { - "bytes": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", - "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", - "dev": true - } - } - }, - "read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "requires": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "dependencies": { - "hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", - "dev": true - }, - "normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dev": true, - "requires": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - }, - "type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true - } - } - }, - "read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", - "dev": true, - "requires": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true - } - } - }, - "readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "requires": { - "picomatch": "^2.2.1" - } - }, - "rechoir": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", - "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", - "dev": true, - "requires": { - "resolve": "^1.9.0" - } - }, - "redent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", - "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", - "dev": true, - "requires": { - "indent-string": "^4.0.0", - "strip-indent": "^3.0.0" - } - }, - "regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", - "dev": true - }, - "regenerate-unicode-properties": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-9.0.0.tgz", - "integrity": "sha512-3E12UeNSPfjrgwjkR81m5J7Aw/T55Tu7nUyZVQYCKEOs+2dkxEY+DpPtZzO4YruuiPb7NkYLVcyJC4+zCbk5pA==", - "dev": true, - "requires": { - "regenerate": "^1.4.2" - } - }, - "regenerator-runtime": { - "version": "0.13.9", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", - "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", - "dev": true - }, - "regenerator-transform": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.5.tgz", - "integrity": "sha512-eOf6vka5IO151Jfsw2NO9WpGX58W6wWmefK3I1zEGr0lOD0u8rwPaNqQL1aRxUaxLeKO3ArNh3VYg1KbaD+FFw==", - "dev": true, - "requires": { - "@babel/runtime": "^7.8.4" - } - }, - "regexp.prototype.flags": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.3.1.tgz", - "integrity": "sha512-JiBdRBq91WlY7uRJ0ds7R+dU02i6LKi8r3BuQhNXn+kmeLN+EfHhfjqMRis1zJxnlu88hq/4dx0P2OP3APRTOA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - } - }, - "regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true - }, - "regexpu-core": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.8.0.tgz", - "integrity": "sha512-1F6bYsoYiz6is+oz70NWur2Vlh9KWtswuRuzJOfeYUrfPX2o8n74AnUVaOGDbUqVGO9fNHu48/pjJO4sNVwsOg==", - "dev": true, - "requires": { - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^9.0.0", - "regjsgen": "^0.5.2", - "regjsparser": "^0.7.0", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.0.0" - } - }, - "regjsgen": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.2.tgz", - "integrity": "sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A==", - "dev": true - }, - "regjsparser": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.7.0.tgz", - "integrity": "sha512-A4pcaORqmNMDVwUjWoTzuhwMGpP+NykpfqAsEgI1FSH/EzC7lrN5TMd+kN8YCovX+jMpu8eaqXgXPCa0g8FQNQ==", - "dev": true, - "requires": { - "jsesc": "~0.5.0" - }, - "dependencies": { - "jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", - "dev": true - } - } - }, - "relateurl": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", - "integrity": "sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=", - "dev": true - }, - "renderkid": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-2.0.7.tgz", - "integrity": "sha512-oCcFyxaMrKsKcTY59qnCAtmDVSLfPbrv6A3tVbPdFMMrv5jaK10V6m40cKsoPNhAqN6rmHW9sswW4o3ruSrwUQ==", - "dev": true, - "requires": { - "css-select": "^4.1.3", - "dom-converter": "^0.2.0", - "htmlparser2": "^6.1.0", - "lodash": "^4.17.21", - "strip-ansi": "^3.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - } - } - }, - "request": { - "version": "2.88.2", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", - "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", - "dev": true, - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.5.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - } - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true - }, - "require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true - }, - "require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true - }, - "requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", - "dev": true - }, - "resolve": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", - "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", - "dev": true, - "requires": { - "is-core-module": "^2.2.0", - "path-parse": "^1.0.6" - } - }, - "resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "requires": { - "resolve-from": "^5.0.0" - }, - "dependencies": { - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true - } - } - }, - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - }, - "retry": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", - "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", - "dev": true - }, - "reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true - }, - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "requires": { - "queue-microtask": "^1.2.2" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "sass-graph": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.5.tgz", - "integrity": "sha512-VFWDAHOe6mRuT4mZRd4eKE+d8Uedrk6Xnh7Sh9b4NGufQLQjOrvf/MQoOdx+0s92L89FeyUUNfU597j/3uNpag==", - "dev": true, - "requires": { - "glob": "^7.0.0", - "lodash": "^4.0.0", - "scss-tokenizer": "^0.2.3", - "yargs": "^13.3.2" - } - }, - "sass-loader": { - "version": "12.2.0", - "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.2.0.tgz", - "integrity": "sha512-qducnp5vSV+8A8MZxuH6zV0MUg4MOVISScl2wDTCAn/2WJX+9Auxh92O/rnkdR2bvi5QxZBafnzkzRrWGZvm7w==", - "dev": true, - "requires": { - "klona": "^2.0.4", - "neo-async": "^2.6.2" - } - }, - "schema-utils": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", - "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.5", - "ajv": "^6.12.4", - "ajv-keywords": "^3.5.2" - } - }, - "scss-tokenizer": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz", - "integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=", - "dev": true, - "requires": { - "js-base64": "^2.1.8", - "source-map": "^0.4.2" - }, - "dependencies": { - "source-map": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", - "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", - "dev": true, - "requires": { - "amdefine": ">=0.0.4" - } - } - } - }, - "seedrandom": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/seedrandom/-/seedrandom-2.4.3.tgz", - "integrity": "sha1-JDhQTa0zkXMUv/GKxNeU8W1qrsw=" - }, - "select-hose": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", - "integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=", - "dev": true - }, - "selfsigned": { - "version": "1.10.11", - "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-1.10.11.tgz", - "integrity": "sha512-aVmbPOfViZqOZPgRBT0+3u4yZFHpmnIghLMlAcb5/xhp5ZtB/RVnKhz5vl2M32CLXAqR4kha9zfhNg0Lf/sxKA==", - "dev": true, - "requires": { - "node-forge": "^0.10.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "send": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", - "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", - "dev": true, - "requires": { - "debug": "2.6.9", - "depd": "~1.1.2", - "destroy": "~1.0.4", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "~1.7.2", - "mime": "1.6.0", - "ms": "2.1.1", - "on-finished": "~2.3.0", - "range-parser": "~1.2.1", - "statuses": "~1.5.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - }, - "dependencies": { - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true - } - } - }, - "serialize-javascript": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", - "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", - "dev": true, - "requires": { - "randombytes": "^2.1.0" - } - }, - "serve-index": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", - "integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=", - "dev": true, - "requires": { - "accepts": "~1.3.4", - "batch": "0.6.1", - "debug": "2.6.9", - "escape-html": "~1.0.3", - "http-errors": "~1.6.2", - "mime-types": "~2.1.17", - "parseurl": "~1.3.2" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "http-errors": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", - "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", - "dev": true, - "requires": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.0", - "statuses": ">= 1.4.0 < 2" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", - "dev": true - } - } - }, - "serve-static": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", - "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", - "dev": true, - "requires": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.17.1" - } - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, - "setprototypeof": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", - "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==", - "dev": true - }, - "shallow-clone": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", - "dev": true, - "requires": { - "kind-of": "^6.0.2" - } - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, - "requires": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - } - }, - "signal-exit": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.5.tgz", - "integrity": "sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ==", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - } - } - }, - "sockjs": { - "version": "0.3.21", - "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.21.tgz", - "integrity": "sha512-DhbPFGpxjc6Z3I+uX07Id5ZO2XwYsWOrYjaSeieES78cq+JaJvVe5q/m1uvjIQhXinhIeCFRH6JgXe+mvVMyXw==", - "dev": true, - "requires": { - "faye-websocket": "^0.11.3", - "uuid": "^3.4.0", - "websocket-driver": "^0.7.4" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "source-map-js": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-0.6.2.tgz", - "integrity": "sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug==", - "dev": true - }, - "source-map-support": { - "version": "0.5.20", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.20.tgz", - "integrity": "sha512-n1lZZ8Ve4ksRqizaBQgxXDgKwttHDhyfQjA6YZZn8+AroHbsIz+JjwxQDxbp+7y5OYCI8t1Yk7etjD9CRd2hIw==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "spdx-correct": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", - "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", - "dev": true, - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", - "dev": true - }, - "spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dev": true, - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-license-ids": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.10.tgz", - "integrity": "sha512-oie3/+gKf7QtpitB0LYLETe+k8SifzsX4KixvpOsbI6S0kRiRQ5MKOio8eMSAKQ17N06+wdEOXRiId+zOxo0hA==", - "dev": true - }, - "spdy": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", - "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", - "dev": true, - "requires": { - "debug": "^4.1.0", - "handle-thing": "^2.0.0", - "http-deceiver": "^1.2.7", - "select-hose": "^2.0.0", - "spdy-transport": "^3.0.0" - } - }, - "spdy-transport": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", - "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", - "dev": true, - "requires": { - "debug": "^4.1.0", - "detect-node": "^2.0.4", - "hpack.js": "^2.1.6", - "obuf": "^1.1.2", - "readable-stream": "^3.0.6", - "wbuf": "^1.7.3" - }, - "dependencies": { - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } - } - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - }, - "sshpk": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", - "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", - "dev": true, - "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - } - }, - "stable": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", - "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", - "dev": true - }, - "statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", - "dev": true - }, - "stdout-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.1.tgz", - "integrity": "sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA==", - "dev": true, - "requires": { - "readable-stream": "^2.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - } - } - }, - "string.prototype.trimend": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz", - "integrity": "sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - } - }, - "string.prototype.trimstart": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz", - "integrity": "sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true - }, - "strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true - }, - "strip-indent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", - "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", - "dev": true, - "requires": { - "min-indent": "^1.0.0" - } - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, - "style-loader": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-3.3.0.tgz", - "integrity": "sha512-szANub7ksJtQioJYtpbWwh1hUl99uK15n5HDlikeCRil/zYMZgSxucHddyF/4A3qJMUiAjPhFowrrQuNMA7jwQ==", - "dev": true, - "requires": {} - }, - "stylehacks": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.0.1.tgz", - "integrity": "sha512-Es0rVnHIqbWzveU1b24kbw92HsebBepxfcqe5iix7t9j0PQqhs0IxXVXv0pY2Bxa08CgMkzD6OWql7kbGOuEdA==", - "dev": true, - "requires": { - "browserslist": "^4.16.0", - "postcss-selector-parser": "^6.0.4" - } - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - }, - "svgo": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.7.0.tgz", - "integrity": "sha512-aDLsGkre4fTDCWvolyW+fs8ZJFABpzLXbtdK1y71CKnHzAnpDxKXPj2mNKj+pyOXUCzFHzuxRJ94XOFygOWV3w==", - "dev": true, - "requires": { - "@trysound/sax": "0.2.0", - "commander": "^7.2.0", - "css-select": "^4.1.3", - "css-tree": "^1.1.3", - "csso": "^4.2.0", - "nanocolors": "^0.1.12", - "stable": "^0.1.8" - }, - "dependencies": { - "commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "dev": true - } - } - }, - "table": { - "version": "6.7.2", - "resolved": "https://registry.npmjs.org/table/-/table-6.7.2.tgz", - "integrity": "sha512-UFZK67uvyNivLeQbVtkiUs8Uuuxv24aSL4/Vil2PJVtMgU8Lx0CYkP12uCGa3kjyQzOSgV1+z9Wkb82fCGsO0g==", - "dev": true, - "requires": { - "ajv": "^8.0.1", - "lodash.clonedeep": "^4.5.0", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1" - }, - "dependencies": { - "ajv": { - "version": "8.6.3", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.3.tgz", - "integrity": "sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - } - } - }, - "tapable": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.1.10.tgz", - "integrity": "sha1-KcNXB8K3DlDQdIK10gLo7URtr9Q=", - "dev": true - }, - "tar": { - "version": "6.1.11", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", - "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", - "dev": true, - "requires": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^3.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - } - }, - "terser": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.0.tgz", - "integrity": "sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==", - "dev": true, - "requires": { - "commander": "^2.20.0", - "source-map": "~0.6.1", - "source-map-support": "~0.5.12" - }, - "dependencies": { - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "terser-webpack-plugin": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.2.4.tgz", - "integrity": "sha512-E2CkNMN+1cho04YpdANyRrn8CyN4yMy+WdFKZIySFZrGXZxJwJP6PMNGGc/Mcr6qygQHUUqRxnAPmi0M9f00XA==", - "dev": true, - "requires": { - "jest-worker": "^27.0.6", - "p-limit": "^3.1.0", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.0", - "source-map": "^0.6.1", - "terser": "^5.7.2" - }, - "dependencies": { - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "terser": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.9.0.tgz", - "integrity": "sha512-h5hxa23sCdpzcye/7b8YqbE5OwKca/ni0RQz1uRX3tGh8haaGHqcuSqbGRybuAKNdntZ0mDgFNXPJ48xQ2RXKQ==", - "dev": true, - "requires": { - "commander": "^2.20.0", - "source-map": "~0.7.2", - "source-map-support": "~0.5.20" - }, - "dependencies": { - "source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", - "dev": true - } - } - } - } - }, - "text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", - "dev": true - }, - "thunky": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", - "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", - "dev": true - }, - "timsort": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", - "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=", - "dev": true - }, - "to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", - "dev": true - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - }, - "toidentifier": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", - "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", - "dev": true - }, - "tough-cookie": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", - "dev": true, - "requires": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - } - }, - "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" - }, - "trim-newlines": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", - "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", - "dev": true - }, - "true-case-path": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.3.tgz", - "integrity": "sha512-m6s2OdQe5wgpFMC+pAJ+q9djG82O2jcHPOI6RNg1yy9rCYR+WD6Nbpl32fDpfC56nirdRy+opFa/Vk7HYhqaew==", - "dev": true, - "requires": { - "glob": "^7.1.2" - } - }, - "tsconfig-paths": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.11.0.tgz", - "integrity": "sha512-7ecdYDnIdmv639mmDwslG6KQg1Z9STTz1j7Gcz0xa+nshh/gKDAHcPxRbWOsA3SPp0tXP2leTcY9Kw+NAkfZzA==", - "dev": true, - "requires": { - "@types/json5": "^0.0.29", - "json5": "^1.0.1", - "minimist": "^1.2.0", - "strip-bom": "^3.0.0" - }, - "dependencies": { - "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", - "dev": true, - "requires": { - "minimist": "^1.2.0" - } - } - } - }, - "tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", - "dev": true - }, - "tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "dev": true, - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true - }, - "type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1" - } - }, - "type-fest": { - "version": "0.18.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", - "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", - "dev": true - }, - "type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dev": true, - "requires": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - } - }, - "unbox-primitive": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz", - "integrity": "sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1", - "has-bigints": "^1.0.1", - "has-symbols": "^1.0.2", - "which-boxed-primitive": "^1.0.2" - } - }, - "unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", - "dev": true - }, - "unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "dev": true, - "requires": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - } - }, - "unicode-match-property-value-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz", - "integrity": "sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==", - "dev": true - }, - "unicode-property-aliases-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.0.0.tgz", - "integrity": "sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ==", - "dev": true - }, - "uniq": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", - "integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=", - "dev": true - }, - "uniqs": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/uniqs/-/uniqs-2.0.0.tgz", - "integrity": "sha1-/+3ks2slKQaW5uFl1KWe25mOawI=", - "dev": true - }, - "unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", - "dev": true - }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - } - }, - "url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", - "dev": true, - "requires": { - "punycode": "1.3.2", - "querystring": "0.2.0" - }, - "dependencies": { - "punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", - "dev": true - } - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "utila": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", - "integrity": "sha1-ihagXURWV6Oupe7MWxKk+lN5dyw=", - "dev": true - }, - "utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", - "dev": true - }, - "uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "dev": true - }, - "v8-compile-cache": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", - "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", - "dev": true - }, - "validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", - "dev": true - }, - "vendors": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.4.tgz", - "integrity": "sha512-/juG65kTL4Cy2su4P8HjtkTxk6VmJDiOPBufWniqQ6wknac6jNiXS9vU+hO3wgusiyqWlzTbVHi0dyJqRONg3w==", - "dev": true - }, - "verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - }, - "dependencies": { - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true - } - } - }, - "watchpack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.2.0.tgz", - "integrity": "sha512-up4YAn/XHgZHIxFBVCdlMiWDj6WaLKpwVeGQk2I5thdYxF/KmF0aaz6TfJZ/hfl1h/XlcDr7k1KH7ThDagpFaA==", - "dev": true, - "requires": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - } - }, - "wbuf": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", - "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", - "dev": true, - "requires": { - "minimalistic-assert": "^1.0.0" - } - }, - "webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" - }, - "webpack": { - "version": "5.58.2", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.58.2.tgz", - "integrity": "sha512-3S6e9Vo1W2ijk4F4PPWRIu6D/uGgqaPmqw+av3W3jLDujuNkdxX5h5c+RQ6GkjVR+WwIPOfgY8av+j5j4tMqJw==", - "dev": true, - "requires": { - "@types/eslint-scope": "^3.7.0", - "@types/estree": "^0.0.50", - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/wasm-edit": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1", - "acorn": "^8.4.1", - "acorn-import-assertions": "^1.7.6", - "browserslist": "^4.14.5", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.8.3", - "es-module-lexer": "^0.9.0", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.4", - "json-parse-better-errors": "^1.0.2", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.1.0", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.1.3", - "watchpack": "^2.2.0", - "webpack-sources": "^3.2.0" - }, - "dependencies": { - "acorn": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.5.0.tgz", - "integrity": "sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q==", - "dev": true - }, - "acorn-import-assertions": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", - "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", - "dev": true, - "requires": {} - }, - "enhanced-resolve": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.8.3.tgz", - "integrity": "sha512-EGAbGvH7j7Xt2nc0E7D99La1OiEs8LnyimkRgwExpUMScN6O+3x9tIWs7PLQZVNx4YD+00skHXPXi1yQHpAmZA==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - } - }, - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - }, - "tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "dev": true - } - } - }, - "webpack-cli": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.9.0.tgz", - "integrity": "sha512-n/jZZBMzVEl4PYIBs+auy2WI0WTQ74EnJDiyD98O2JZY6IVIHJNitkYp/uTXOviIOMfgzrNvC9foKv/8o8KSZw==", - "dev": true, - "requires": { - "@discoveryjs/json-ext": "^0.5.0", - "@webpack-cli/configtest": "^1.1.0", - "@webpack-cli/info": "^1.4.0", - "@webpack-cli/serve": "^1.6.0", - "colorette": "^2.0.14", - "commander": "^7.0.0", - "execa": "^5.0.0", - "fastest-levenshtein": "^1.0.12", - "import-local": "^3.0.2", - "interpret": "^2.2.0", - "rechoir": "^0.7.0", - "v8-compile-cache": "^2.2.0", - "webpack-merge": "^5.7.3" - }, - "dependencies": { - "commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "dev": true - }, - "interpret": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", - "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", - "dev": true - } - } - }, - "webpack-dev-middleware": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.2.1.tgz", - "integrity": "sha512-Kx1X+36Rn9JaZcQMrJ7qN3PMAuKmEDD9ZISjUj3Cgq4A6PtwYsC4mpaKotSRYH3iOF6HsUa8viHKS59FlyVifQ==", - "dev": true, - "requires": { - "colorette": "^2.0.10", - "memfs": "^3.2.2", - "mime-types": "^2.1.31", - "range-parser": "^1.2.1", - "schema-utils": "^3.1.0" - }, - "dependencies": { - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - } - } - }, - "webpack-dev-server": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.3.1.tgz", - "integrity": "sha512-qNXQCVYo1kYhH9pgLtm8LRNkXX3XzTfHSj/zqzaqYzGPca+Qjr+81wj1jgPMCHhIhso9WEQ+kX9z23iG9PzQ7w==", - "dev": true, - "requires": { - "ansi-html-community": "^0.0.8", - "bonjour": "^3.5.0", - "chokidar": "^3.5.1", - "colorette": "^2.0.10", - "compression": "^1.7.4", - "connect-history-api-fallback": "^1.6.0", - "del": "^6.0.0", - "express": "^4.17.1", - "graceful-fs": "^4.2.6", - "html-entities": "^2.3.2", - "http-proxy-middleware": "^2.0.0", - "internal-ip": "^6.2.0", - "ipaddr.js": "^2.0.1", - "open": "^8.0.9", - "p-retry": "^4.5.0", - "portfinder": "^1.0.28", - "schema-utils": "^3.1.0", - "selfsigned": "^1.10.11", - "serve-index": "^1.9.1", - "sockjs": "^0.3.21", - "spdy": "^4.0.2", - "strip-ansi": "^7.0.0", - "url": "^0.11.0", - "webpack-dev-middleware": "^5.2.1", - "ws": "^8.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "dev": true - }, - "del": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/del/-/del-6.0.0.tgz", - "integrity": "sha512-1shh9DQ23L16oXSZKB2JxpL7iMy2E0S9d517ptA1P8iw0alkPtQcrKH7ru31rYtKwF499HkTu+DRzq3TCKDFRQ==", - "dev": true, - "requires": { - "globby": "^11.0.1", - "graceful-fs": "^4.2.4", - "is-glob": "^4.0.1", - "is-path-cwd": "^2.2.0", - "is-path-inside": "^3.0.2", - "p-map": "^4.0.0", - "rimraf": "^3.0.2", - "slash": "^3.0.0" - } - }, - "is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true - }, - "p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "dev": true, - "requires": { - "aggregate-error": "^3.0.0" - } - }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - } - }, - "strip-ansi": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz", - "integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==", - "dev": true, - "requires": { - "ansi-regex": "^6.0.1" - } - } - } - }, - "webpack-merge": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", - "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", - "dev": true, - "requires": { - "clone-deep": "^4.0.1", - "wildcard": "^2.0.0" - } - }, - "webpack-sources": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.1.tgz", - "integrity": "sha512-t6BMVLQ0AkjBOoRTZgqrWm7xbXMBzD+XDq2EZ96+vMfn3qKgsvdXZhbPZ4ElUOpdv4u+iiGe+w3+J75iy/bYGA==", - "dev": true - }, - "websocket-driver": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", - "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", - "dev": true, - "requires": { - "http-parser-js": ">=0.5.1", - "safe-buffer": ">=5.1.0", - "websocket-extensions": ">=0.1.1" - } - }, - "websocket-extensions": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", - "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", - "dev": true - }, - "whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", - "requires": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "requires": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "wide-align": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", - "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", - "dev": true, - "requires": { - "string-width": "^1.0.2 || 2" - } - }, - "wildcard": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", - "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", - "dev": true - }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true - }, - "wrap-ansi": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" - }, - "ws": { - "version": "8.2.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.2.3.tgz", - "integrity": "sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==", - "dev": true, - "requires": {} - }, - "y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", - "dev": true - }, - "yargs": { - "version": "13.3.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", - "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", - "dev": true, - "requires": { - "cliui": "^5.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.1.2" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - }, - "yargs-parser": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", - "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } - } - }, - "yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "dev": true - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true - } - } -} +{ + "name": "rock-paper-scissors", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "rock-paper-scissors", + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "@tensorflow-models/handpose": "^0.0.7", + "@tensorflow/tfjs-backend-webgl": "^3.11.0", + "@tensorflow/tfjs-converter": "^3.11.0", + "@tensorflow/tfjs-core": "^3.11.0", + "fingerpose": "^0.1.0" + }, + "devDependencies": { + "@babel/core": "^7.15.8", + "@babel/plugin-proposal-class-properties": "^7.14.5", + "@babel/plugin-transform-runtime": "^7.16.0", + "@babel/preset-env": "^7.15.8", + "babel-loader": "^8.2.2", + "clean-webpack-plugin": "^4.0.0", + "copy-webpack-plugin": "^9.0.1", + "cross-env": "^7.0.3", + "css-loader": "^6.4.0", + "css-minimizer-webpack-plugin": "^3.1.1", + "eslint": "^7.28.0", + "eslint-config-airbnb-base": "^14.2.1", + "eslint-config-prettier": "^8.3.0", + "eslint-import-resolver-webpack": "^0.13.1", + "eslint-plugin-import": "^2.25.2", + "eslint-plugin-prettier": "^4.0.0", + "html-webpack-plugin": "^5.3.2", + "mini-css-extract-plugin": "^2.4.2", + "node-sass": "^6.0.1", + "postcss-loader": "^6.2.0", + "postcss-preset-env": "^6.7.0", + "prettier": "^2.4.1", + "sass-loader": "^12.2.0", + "style-loader": "^3.3.0", + "webpack": "^5.58.2", + "webpack-cli": "^4.9.0", + "webpack-dev-server": "^4.3.1", + "webpack-merge": "^5.8.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.15.8.tgz", + "integrity": "sha512-2IAnmn8zbvC/jKYhq5Ki9I+DwjlrtMPUCH/CpHvqI4dNnlwHwsxoIhlc8WcYY5LSYknXQtAlFYuHfqAFCvQ4Wg==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.15.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.15.0.tgz", + "integrity": "sha512-0NqAC1IJE0S0+lL1SWFMxMkz1pKCNCjI4tr2Zx4LJSXxCLAdr6KyArnY+sno5m3yH9g737ygOyPABDsnXkpxiA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.15.8.tgz", + "integrity": "sha512-3UG9dsxvYBMYwRv+gS41WKHno4K60/9GPy1CJaH6xy3Elq8CTtvtjT5R5jmNhXfCYLX2mTw+7/aq5ak/gOE0og==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.15.8", + "@babel/generator": "^7.15.8", + "@babel/helper-compilation-targets": "^7.15.4", + "@babel/helper-module-transforms": "^7.15.8", + "@babel/helpers": "^7.15.4", + "@babel/parser": "^7.15.8", + "@babel/template": "^7.15.4", + "@babel/traverse": "^7.15.4", + "@babel/types": "^7.15.6", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.1.2", + "semver": "^6.3.0", + "source-map": "^0.5.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.15.8.tgz", + "integrity": "sha512-ECmAKstXbp1cvpTTZciZCgfOt6iN64lR0d+euv3UZisU5awfRawOvg07Utn/qBGuH4bRIEZKrA/4LzZyXhZr8g==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.6", + "jsesc": "^2.5.1", + "source-map": "^0.5.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.15.4.tgz", + "integrity": "sha512-QwrtdNvUNsPCj2lfNQacsGSQvGX8ee1ttrBrcozUP2Sv/jylewBP/8QFe6ZkBsC8T/GYWonNAWJV4aRR9AL2DA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.15.4.tgz", + "integrity": "sha512-P8o7JP2Mzi0SdC6eWr1zF+AEYvrsZa7GSY1lTayjF5XJhVH0kjLYUZPvTMflP7tBgZoe9gIhTa60QwFpqh/E0Q==", + "dev": true, + "dependencies": { + "@babel/helper-explode-assignable-expression": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.15.4.tgz", + "integrity": "sha512-rMWPCirulnPSe4d+gwdWXLfAXTTBj8M3guAf5xFQJ0nvFY7tfNAFnWdqaHegHlgDZOCT4qvhF3BYlSJag8yhqQ==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.15.0", + "@babel/helper-validator-option": "^7.14.5", + "browserslist": "^4.16.6", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.15.4.tgz", + "integrity": "sha512-7ZmzFi+DwJx6A7mHRwbuucEYpyBwmh2Ca0RvI6z2+WLZYCqV0JOaLb+u0zbtmDicebgKBZgqbYfLaKNqSgv5Pw==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.15.4", + "@babel/helper-function-name": "^7.15.4", + "@babel/helper-member-expression-to-functions": "^7.15.4", + "@babel/helper-optimise-call-expression": "^7.15.4", + "@babel/helper-replace-supers": "^7.15.4", + "@babel/helper-split-export-declaration": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.14.5.tgz", + "integrity": "sha512-TLawwqpOErY2HhWbGJ2nZT5wSkR192QpN+nBg1THfBfftrlvOh+WbhrxXCH4q4xJ9Gl16BGPR/48JA+Ryiho/A==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.14.5", + "regexpu-core": "^4.7.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.2.4.tgz", + "integrity": "sha512-OrpPZ97s+aPi6h2n1OXzdhVis1SGSsMU2aMHgLcOKfsp4/v1NWpx3CWT3lBj5eeBq9cDkPkh+YCfdF7O12uNDQ==", + "dev": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.13.0", + "@babel/helper-module-imports": "^7.12.13", + "@babel/helper-plugin-utils": "^7.13.0", + "@babel/traverse": "^7.13.0", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2", + "semver": "^6.1.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0-0" + } + }, + "node_modules/@babel/helper-explode-assignable-expression": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.15.4.tgz", + "integrity": "sha512-J14f/vq8+hdC2KoWLIQSsGrC9EFBKE4NFts8pfMpymfApds+fPqR30AOUWc4tyr56h9l/GA1Sxv2q3dLZWbQ/g==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.15.4.tgz", + "integrity": "sha512-Z91cOMM4DseLIGOnog+Z8OI6YseR9bua+HpvLAQ2XayUGU+neTtX+97caALaLdyu53I/fjhbeCnWnRH1O3jFOw==", + "dev": true, + "dependencies": { + "@babel/helper-get-function-arity": "^7.15.4", + "@babel/template": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-get-function-arity": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.15.4.tgz", + "integrity": "sha512-1/AlxSF92CmGZzHnC515hm4SirTxtpDnLEJ0UyEMgTMZN+6bxXKg04dKhiRx5Enel+SUA1G1t5Ed/yQia0efrA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.15.4.tgz", + "integrity": "sha512-VTy085egb3jUGVK9ycIxQiPbquesq0HUQ+tPO0uv5mPEBZipk+5FkRKiWq5apuyTE9FUrjENB0rCf8y+n+UuhA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.15.4.tgz", + "integrity": "sha512-cokOMkxC/BTyNP1AlY25HuBWM32iCEsLPI4BHDpJCHHm1FU2E7dKWWIXJgQgSFiu4lp8q3bL1BIKwqkSUviqtA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.0.tgz", + "integrity": "sha512-kkH7sWzKPq0xt3H1n+ghb4xEMP8k0U7XV3kkB+ZGy69kDk2ySFW1qPi06sjKzFY3t1j6XbJSqr4mF9L7CYVyhg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.16.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.15.8.tgz", + "integrity": "sha512-DfAfA6PfpG8t4S6npwzLvTUpp0sS7JrcuaMiy1Y5645laRJIp/LiLGIBbQKaXSInK8tiGNI7FL7L8UvB8gdUZg==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.15.4", + "@babel/helper-replace-supers": "^7.15.4", + "@babel/helper-simple-access": "^7.15.4", + "@babel/helper-split-export-declaration": "^7.15.4", + "@babel/helper-validator-identifier": "^7.15.7", + "@babel/template": "^7.15.4", + "@babel/traverse": "^7.15.4", + "@babel/types": "^7.15.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.15.4.tgz", + "integrity": "sha512-E/z9rfbAOt1vDW1DR7k4SzhzotVV5+qMciWV6LaG1g4jeFrkDlJedjtV4h0i4Q/ITnUu+Pk08M7fczsB9GXBDw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz", + "integrity": "sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.15.4.tgz", + "integrity": "sha512-v53MxgvMK/HCwckJ1bZrq6dNKlmwlyRNYM6ypaRTdXWGOE2c1/SCa6dL/HimhPulGhZKw9W0QhREM583F/t0vQ==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.15.4", + "@babel/helper-wrap-function": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.15.4.tgz", + "integrity": "sha512-/ztT6khaXF37MS47fufrKvIsiQkx1LBRvSJNzRqmbyeZnTwU9qBxXYLaaT/6KaxfKhjs2Wy8kG8ZdsFUuWBjzw==", + "dev": true, + "dependencies": { + "@babel/helper-member-expression-to-functions": "^7.15.4", + "@babel/helper-optimise-call-expression": "^7.15.4", + "@babel/traverse": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.15.4.tgz", + "integrity": "sha512-UzazrDoIVOZZcTeHHEPYrr1MvTR/K+wgLg6MY6e1CJyaRhbibftF6fR2KU2sFRtI/nERUZR9fBd6aKgBlIBaPg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.15.4.tgz", + "integrity": "sha512-BMRLsdh+D1/aap19TycS4eD1qELGrCBJwzaY9IE8LrpJtJb+H7rQkPIdsfgnMtLBA6DJls7X9z93Z4U8h7xw0A==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.15.4.tgz", + "integrity": "sha512-HsFqhLDZ08DxCpBdEVtKmywj6PQbwnF6HHybur0MAnkAKnlS6uHkwnmRIkElB2Owpfb4xL4NwDmDLFubueDXsw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz", + "integrity": "sha512-OX8D5eeX4XwcroVW45NMvoYaIuFI+GQpA2a8Gi+X/U/cDUIRsV37qQfF905F0htTRCREQIB4KqPeaveRJUl3Ow==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.15.4.tgz", + "integrity": "sha512-Y2o+H/hRV5W8QhIfTpRIBwl57y8PrZt6JM3V8FOo5qarjshHItyH5lXlpMfBfmBefOqSCpKZs/6Dxqp0E/U+uw==", + "dev": true, + "dependencies": { + "@babel/helper-function-name": "^7.15.4", + "@babel/template": "^7.15.4", + "@babel/traverse": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.15.4.tgz", + "integrity": "sha512-V45u6dqEJ3w2rlryYYXf6i9rQ5YMNu4FLS6ngs8ikblhu2VdR1AqAd6aJjBzmf2Qzh6KOLqKHxEN9+TFbAkAVQ==", + "dev": true, + "dependencies": { + "@babel/template": "^7.15.4", + "@babel/traverse": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", + "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.14.5", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.8.tgz", + "integrity": "sha512-BRYa3wcQnjS/nqI8Ac94pYYpJfojHVvVXJ97+IDCImX4Jc8W8Xv1+47enbruk+q1etOpsQNwnfFcNGw+gtPGxA==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.15.4.tgz", + "integrity": "sha512-eBnpsl9tlhPhpI10kU06JHnrYXwg3+V6CaP2idsCXNef0aeslpqyITXQ74Vfk5uHgY7IG7XP0yIH8b42KSzHog==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.15.4", + "@babel/plugin-proposal-optional-chaining": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-proposal-async-generator-functions": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.15.8.tgz", + "integrity": "sha512-2Z5F2R2ibINTc63mY7FLqGfEbmofrHU9FitJW1Q7aPaKFhiPvSq6QEt/BoWN5oME3GVyjcRuNNSRbb9LC0CSWA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-remap-async-to-generator": "^7.15.4", + "@babel/plugin-syntax-async-generators": "^7.8.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-class-properties": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.14.5.tgz", + "integrity": "sha512-q/PLpv5Ko4dVc1LYMpCY7RVAAO4uk55qPwrIuJ5QJ8c6cVuAmhu7I/49JOppXL6gXf7ZHzpRVEUZdYoPLM04Gg==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-class-static-block": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.15.4.tgz", + "integrity": "sha512-M682XWrrLNk3chXCjoPUQWOyYsB93B9z3mRyjtqqYJWDf2mfCdIYgDrA11cgNVhAQieaq6F2fn2f3wI0U4aTjA==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-proposal-dynamic-import": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.14.5.tgz", + "integrity": "sha512-ExjiNYc3HDN5PXJx+bwC50GIx/KKanX2HiggnIUAYedbARdImiCU4RhhHfdf0Kd7JNXGpsBBBCOm+bBVy3Gb0g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-export-namespace-from": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.14.5.tgz", + "integrity": "sha512-g5POA32bXPMmSBu5Dx/iZGLGnKmKPc5AiY7qfZgurzrCYgIztDlHFbznSNCoQuv57YQLnQfaDi7dxCtLDIdXdA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-json-strings": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.14.5.tgz", + "integrity": "sha512-NSq2fczJYKVRIsUJyNxrVUMhB27zb7N7pOFGQOhBKJrChbGcgEAqyZrmZswkPk18VMurEeJAaICbfm57vUeTbQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-logical-assignment-operators": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.14.5.tgz", + "integrity": "sha512-YGn2AvZAo9TwyhlLvCCWxD90Xq8xJ4aSgaX3G5D/8DW94L8aaT+dS5cSP+Z06+rCJERGSr9GxMBZ601xoc2taw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.14.5.tgz", + "integrity": "sha512-gun/SOnMqjSb98Nkaq2rTKMwervfdAoz6NphdY0vTfuzMfryj+tDGb2n6UkDKwez+Y8PZDhE3D143v6Gepp4Hg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-numeric-separator": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.14.5.tgz", + "integrity": "sha512-yiclALKe0vyZRZE0pS6RXgjUOt87GWv6FYa5zqj15PvhOGFO69R5DusPlgK/1K5dVnCtegTiWu9UaBSrLLJJBg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-object-rest-spread": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.15.6.tgz", + "integrity": "sha512-qtOHo7A1Vt+O23qEAX+GdBpqaIuD3i9VRrWgCJeq7WO6H2d14EK3q11urj5Te2MAeK97nMiIdRpwd/ST4JFbNg==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.15.0", + "@babel/helper-compilation-targets": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-optional-catch-binding": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.14.5.tgz", + "integrity": "sha512-3Oyiixm0ur7bzO5ybNcZFlmVsygSIQgdOa7cTfOYCMY+wEPAYhZAJxi3mixKFCTCKUhQXuCTtQ1MzrpL3WT8ZQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-optional-chaining": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.14.5.tgz", + "integrity": "sha512-ycz+VOzo2UbWNI1rQXxIuMOzrDdHGrI23fRiz/Si2R4kv2XZQ1BK8ccdHwehMKBlcH/joGW/tzrUmo67gbJHlQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.14.5", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-methods": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.14.5.tgz", + "integrity": "sha512-838DkdUA1u+QTCplatfq4B7+1lnDa/+QMI89x5WZHBcnNv+47N8QEj2k9I2MUU9xIv8XJ4XvPCviM/Dj7Uwt9g==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.15.4.tgz", + "integrity": "sha512-X0UTixkLf0PCCffxgu5/1RQyGGbgZuKoI+vXP4iSbJSYwPb7hu06omsFGBvQ9lJEvwgrxHdS8B5nbfcd8GyUNA==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.15.4", + "@babel/helper-create-class-features-plugin": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-unicode-property-regex": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.14.5.tgz", + "integrity": "sha512-6axIeOU5LnY471KenAB9vI8I5j7NQ2d652hIYwVyRfgaZT5UpiqFKCuVXCDMSrU+3VFafnu2c5m3lrWIlr6A5Q==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.14.5.tgz", + "integrity": "sha512-KOnO0l4+tD5IfOdi4x8C1XmEIRWUjNRV8wc6K2vz/3e8yAOoZZvsRXRRIF/yo/MAOFb4QjtAw9xSxMXbSMRy8A==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.14.5.tgz", + "integrity": "sha512-szkbzQ0mNk0rpu76fzDdqSyPu0MuvpXgC+6rz5rpMb5OIRxdmHfQxrktL8CYolL2d8luMCZTR0DpIMIdL27IjA==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-remap-async-to-generator": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.14.5.tgz", + "integrity": "sha512-dtqWqdWZ5NqBX3KzsVCWfQI3A53Ft5pWFCT2eCVUftWZgjc5DpDponbIF1+c+7cSGk2wN0YK7HGL/ezfRbpKBQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.15.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.15.3.tgz", + "integrity": "sha512-nBAzfZwZb4DkaGtOes1Up1nOAp9TDRRFw4XBzBBSG9QK7KVFmYzgj9o9sbPv7TX5ofL4Auq4wZnxCoPnI/lz2Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.15.4.tgz", + "integrity": "sha512-Yjvhex8GzBmmPQUvpXRPWQ9WnxXgAFuZSrqOK/eJlOGIXwvv8H3UEdUigl1gb/bnjTrln+e8bkZUYCBt/xYlBg==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.15.4", + "@babel/helper-function-name": "^7.15.4", + "@babel/helper-optimise-call-expression": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-replace-supers": "^7.15.4", + "@babel/helper-split-export-declaration": "^7.15.4", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.14.5.tgz", + "integrity": "sha512-pWM+E4283UxaVzLb8UBXv4EIxMovU4zxT1OPnpHJcmnvyY9QbPPTKZfEj31EUvG3/EQRbYAGaYEUZ4yWOBC2xg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.14.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.14.7.tgz", + "integrity": "sha512-0mDE99nK+kVh3xlc5vKwB6wnP9ecuSj+zQCa/n0voENtP/zymdT4HH6QEb65wjjcbqr1Jb/7z9Qp7TF5FtwYGw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.14.5.tgz", + "integrity": "sha512-loGlnBdj02MDsFaHhAIJzh7euK89lBrGIdM9EAtHFo6xKygCUGuuWe07o1oZVk287amtW1n0808sQM99aZt3gw==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.14.5.tgz", + "integrity": "sha512-iJjbI53huKbPDAsJ8EmVmvCKeeq21bAze4fu9GBQtSLqfvzj2oRuHVx4ZkDwEhg1htQ+5OBZh/Ab0XDf5iBZ7A==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.14.5.tgz", + "integrity": "sha512-jFazJhMBc9D27o9jDnIE5ZErI0R0m7PbKXVq77FFvqFbzvTMuv8jaAwLZ5PviOLSFttqKIW0/wxNSDbjLk0tYA==", + "dev": true, + "dependencies": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.15.4.tgz", + "integrity": "sha512-DRTY9fA751AFBDh2oxydvVm4SYevs5ILTWLs6xKXps4Re/KG5nfUkr+TdHCrRWB8C69TlzVgA9b3RmGWmgN9LA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.14.5.tgz", + "integrity": "sha512-vbO6kv0fIzZ1GpmGQuvbwwm+O4Cbm2NrPzwlup9+/3fdkuzo1YqOZcXw26+YUJB84Ja7j9yURWposEHLYwxUfQ==", + "dev": true, + "dependencies": { + "@babel/helper-function-name": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.14.5.tgz", + "integrity": "sha512-ql33+epql2F49bi8aHXxvLURHkxJbSmMKl9J5yHqg4PLtdE6Uc48CH1GS6TQvZ86eoB/ApZXwm7jlA+B3kra7A==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.14.5.tgz", + "integrity": "sha512-WkNXxH1VXVTKarWFqmso83xl+2V3Eo28YY5utIkbsmXoItO8Q3aZxN4BTS2k0hz9dGUloHK26mJMyQEYfkn/+Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.14.5.tgz", + "integrity": "sha512-3lpOU8Vxmp3roC4vzFpSdEpGUWSMsHFreTWOMMLzel2gNGfHE5UWIh/LN6ghHs2xurUp4jRFYMUIZhuFbody1g==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5", + "babel-plugin-dynamic-import-node": "^2.3.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.15.4.tgz", + "integrity": "sha512-qg4DPhwG8hKp4BbVDvX1s8cohM8a6Bvptu4l6Iingq5rW+yRUAhe/YRup/YcW2zCOlrysEWVhftIcKzrEZv3sA==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-simple-access": "^7.15.4", + "babel-plugin-dynamic-import-node": "^2.3.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.15.4.tgz", + "integrity": "sha512-fJUnlQrl/mezMneR72CKCgtOoahqGJNVKpompKwzv3BrEXdlPspTcyxrZ1XmDTIr9PpULrgEQo3qNKp6dW7ssw==", + "dev": true, + "dependencies": { + "@babel/helper-hoist-variables": "^7.15.4", + "@babel/helper-module-transforms": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-validator-identifier": "^7.14.9", + "babel-plugin-dynamic-import-node": "^2.3.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.14.5.tgz", + "integrity": "sha512-RfPGoagSngC06LsGUYyM9QWSXZ8MysEjDJTAea1lqRjNECE3y0qIJF/qbvJxc4oA4s99HumIMdXOrd+TdKaAAA==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.14.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.14.9.tgz", + "integrity": "sha512-l666wCVYO75mlAtGFfyFwnWmIXQm3kSH0C3IRnJqWcZbWkoihyAdDhFm2ZWaxWTqvBvhVFfJjMRQ0ez4oN1yYA==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.14.5.tgz", + "integrity": "sha512-Nx054zovz6IIRWEB49RDRuXGI4Gy0GMgqG0cII9L3MxqgXz/+rgII+RU58qpo4g7tNEx1jG7rRVH4ihZoP4esQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.14.5.tgz", + "integrity": "sha512-MKfOBWzK0pZIrav9z/hkRqIk/2bTv9qvxHzPQc12RcVkMOzpIKnFCNYJip00ssKWYkd8Sf5g0Wr7pqJ+cmtuFg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-replace-supers": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.15.4.tgz", + "integrity": "sha512-9WB/GUTO6lvJU3XQsSr6J/WKvBC2hcs4Pew8YxZagi6GkTdniyqp8On5kqdK8MN0LMeu0mGbhPN+O049NV/9FQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.14.5.tgz", + "integrity": "sha512-r1uilDthkgXW8Z1vJz2dKYLV1tuw2xsbrp3MrZmD99Wh9vsfKoob+JTgri5VUb/JqyKRXotlOtwgu4stIYCmnw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.14.5.tgz", + "integrity": "sha512-NVIY1W3ITDP5xQl50NgTKlZ0GrotKtLna08/uGY6ErQt6VEQZXla86x/CTddm5gZdcr+5GSsvMeTmWA5Ii6pkg==", + "dev": true, + "dependencies": { + "regenerator-transform": "^0.14.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.14.5.tgz", + "integrity": "sha512-cv4F2rv1nD4qdexOGsRQXJrOcyb5CrgjUH9PKrrtyhSDBNWGxd0UIitjyJiWagS+EbUGjG++22mGH1Pub8D6Vg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.16.0.tgz", + "integrity": "sha512-zlPf1/XFn5+vWdve3AAhf+Sxl+MVa5VlwTwWgnLx23u4GlatSRQJ3Eoo9vllf0a9il3woQsT4SK+5Z7c06h8ag==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.16.0", + "@babel/helper-plugin-utils": "^7.14.5", + "babel-plugin-polyfill-corejs2": "^0.2.3", + "babel-plugin-polyfill-corejs3": "^0.3.0", + "babel-plugin-polyfill-regenerator": "^0.2.3", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime/node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.3.0.tgz", + "integrity": "sha512-JLwi9vloVdXLjzACL80j24bG6/T1gYxwowG44dg6HN/7aTPdyPbJJidf6ajoA3RPHHtW0j9KMrSOLpIZpAnPpg==", + "dev": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.2.4", + "core-js-compat": "^3.18.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.14.5.tgz", + "integrity": "sha512-xLucks6T1VmGsTB+GWK5Pl9Jl5+nRXD1uoFdA5TSO6xtiNjtXTjKkmPdFXVLGlK5A2/or/wQMKfmQ2Y0XJfn5g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.15.8.tgz", + "integrity": "sha512-/daZ8s2tNaRekl9YJa9X4bzjpeRZLt122cpgFnQPLGUe61PH8zMEBmYqKkW5xF5JUEh5buEGXJoQpqBmIbpmEQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.14.5.tgz", + "integrity": "sha512-Z7F7GyvEMzIIbwnziAZmnSNpdijdr4dWt+FJNBnBLz5mwDFkqIXU9wmBcWWad3QeJF5hMTkRe4dAq2sUZiG+8A==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.14.5.tgz", + "integrity": "sha512-22btZeURqiepOfuy/VkFr+zStqlujWaarpMErvay7goJS6BWwdd6BY9zQyDLDa4x2S3VugxFb162IZ4m/S/+Gg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.14.5.tgz", + "integrity": "sha512-lXzLD30ffCWseTbMQzrvDWqljvZlHkXU+CnseMhkMNqU1sASnCsz3tSzAaH3vCUXb9PHeUb90ZT1BdFTm1xxJw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.14.5.tgz", + "integrity": "sha512-crTo4jATEOjxj7bt9lbYXcBAM3LZaUrbP2uUdxb6WIorLmjNKSpHfIybgY4B8SRpbf8tEVIWH3Vtm7ayCrKocA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.14.5.tgz", + "integrity": "sha512-UygduJpC5kHeCiRw/xDVzC+wj8VaYSoKl5JNVmbP7MadpNinAm3SvZCxZ42H37KZBKztz46YC73i9yV34d0Tzw==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.15.8.tgz", + "integrity": "sha512-rCC0wH8husJgY4FPbHsiYyiLxSY8oMDJH7Rl6RQMknbN9oDDHhM9RDFvnGM2MgkbUJzSQB4gtuwygY5mCqGSsA==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.15.0", + "@babel/helper-compilation-targets": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-validator-option": "^7.14.5", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.15.4", + "@babel/plugin-proposal-async-generator-functions": "^7.15.8", + "@babel/plugin-proposal-class-properties": "^7.14.5", + "@babel/plugin-proposal-class-static-block": "^7.15.4", + "@babel/plugin-proposal-dynamic-import": "^7.14.5", + "@babel/plugin-proposal-export-namespace-from": "^7.14.5", + "@babel/plugin-proposal-json-strings": "^7.14.5", + "@babel/plugin-proposal-logical-assignment-operators": "^7.14.5", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.5", + "@babel/plugin-proposal-numeric-separator": "^7.14.5", + "@babel/plugin-proposal-object-rest-spread": "^7.15.6", + "@babel/plugin-proposal-optional-catch-binding": "^7.14.5", + "@babel/plugin-proposal-optional-chaining": "^7.14.5", + "@babel/plugin-proposal-private-methods": "^7.14.5", + "@babel/plugin-proposal-private-property-in-object": "^7.15.4", + "@babel/plugin-proposal-unicode-property-regex": "^7.14.5", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-transform-arrow-functions": "^7.14.5", + "@babel/plugin-transform-async-to-generator": "^7.14.5", + "@babel/plugin-transform-block-scoped-functions": "^7.14.5", + "@babel/plugin-transform-block-scoping": "^7.15.3", + "@babel/plugin-transform-classes": "^7.15.4", + "@babel/plugin-transform-computed-properties": "^7.14.5", + "@babel/plugin-transform-destructuring": "^7.14.7", + "@babel/plugin-transform-dotall-regex": "^7.14.5", + "@babel/plugin-transform-duplicate-keys": "^7.14.5", + "@babel/plugin-transform-exponentiation-operator": "^7.14.5", + "@babel/plugin-transform-for-of": "^7.15.4", + "@babel/plugin-transform-function-name": "^7.14.5", + "@babel/plugin-transform-literals": "^7.14.5", + "@babel/plugin-transform-member-expression-literals": "^7.14.5", + "@babel/plugin-transform-modules-amd": "^7.14.5", + "@babel/plugin-transform-modules-commonjs": "^7.15.4", + "@babel/plugin-transform-modules-systemjs": "^7.15.4", + "@babel/plugin-transform-modules-umd": "^7.14.5", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.14.9", + "@babel/plugin-transform-new-target": "^7.14.5", + "@babel/plugin-transform-object-super": "^7.14.5", + "@babel/plugin-transform-parameters": "^7.15.4", + "@babel/plugin-transform-property-literals": "^7.14.5", + "@babel/plugin-transform-regenerator": "^7.14.5", + "@babel/plugin-transform-reserved-words": "^7.14.5", + "@babel/plugin-transform-shorthand-properties": "^7.14.5", + "@babel/plugin-transform-spread": "^7.15.8", + "@babel/plugin-transform-sticky-regex": "^7.14.5", + "@babel/plugin-transform-template-literals": "^7.14.5", + "@babel/plugin-transform-typeof-symbol": "^7.14.5", + "@babel/plugin-transform-unicode-escapes": "^7.14.5", + "@babel/plugin-transform-unicode-regex": "^7.14.5", + "@babel/preset-modules": "^0.1.4", + "@babel/types": "^7.15.6", + "babel-plugin-polyfill-corejs2": "^0.2.2", + "babel-plugin-polyfill-corejs3": "^0.2.5", + "babel-plugin-polyfill-regenerator": "^0.2.2", + "core-js-compat": "^3.16.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.4.tgz", + "integrity": "sha512-J36NhwnfdzpmH41M1DrnkkgAqhZaqr/NBdPfQ677mLzlaXo+oDiv1deyCDtgAhz8p328otdob0Du7+xgHGZbKg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.15.4.tgz", + "integrity": "sha512-99catp6bHCaxr4sJ/DbTGgHS4+Rs2RVd2g7iOap6SLGPDknRK9ztKNsE/Fg6QhSeh1FGE5f6gHGQmvvn3I3xhw==", + "dev": true, + "dependencies": { + "regenerator-runtime": "^0.13.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.15.4.tgz", + "integrity": "sha512-UgBAfEa1oGuYgDIPM2G+aHa4Nlo9Lh6mGD2bDBGMTbYnc38vulXPuC1MGjYILIEmlwl6Rd+BPR9ee3gm20CBtg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.14.5", + "@babel/parser": "^7.15.4", + "@babel/types": "^7.15.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.15.4.tgz", + "integrity": "sha512-W6lQD8l4rUbQR/vYgSuCAE75ADyyQvOpFVsvPPdkhf6lATXAsQIG9YdtOcu8BB1dZ0LKu+Zo3c1wEcbKeuhdlA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.14.5", + "@babel/generator": "^7.15.4", + "@babel/helper-function-name": "^7.15.4", + "@babel/helper-hoist-variables": "^7.15.4", + "@babel/helper-split-export-declaration": "^7.15.4", + "@babel/parser": "^7.15.4", + "@babel/types": "^7.15.4", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.0.tgz", + "integrity": "sha512-PJgg/k3SdLsGb3hhisFvtLOw5ts113klrpLuIPtCJIU+BB24fqq6lf8RWqKJEjzqXR9AEH1rIb5XTqwBHB+kQg==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.15.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@csstools/convert-colors": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@csstools/convert-colors/-/convert-colors-1.4.0.tgz", + "integrity": "sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw==", + "dev": true, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/@discoveryjs/json-ext": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.5.tgz", + "integrity": "sha512-6nFkfkmSeV/rqSaS4oWHgmpnYw194f6hmWF5is6b0J1naJZoiD0NTc9AiUwPHvWsowkjuHErCZT1wa0jg+BLIA==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", + "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.1.1", + "espree": "^7.3.0", + "globals": "^13.9.0", + "ignore": "^4.0.6", + "import-fresh": "^3.2.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.11.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz", + "integrity": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/eslintrc/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@tensorflow-models/handpose": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@tensorflow-models/handpose/-/handpose-0.0.7.tgz", + "integrity": "sha512-1JRxE2cWlxgbFogZDhqnHn1RUVsyfpAJXP6wEcO+VZ+PIllHq9eut7Ecqgs2QlsI8Tjp8V0e8VYvePV+Toln0A==", + "dependencies": { + "rimraf": "^3.0.2" + }, + "peerDependencies": { + "@tensorflow/tfjs-backend-webgl": "^3.0.0", + "@tensorflow/tfjs-converter": "^3.0.0", + "@tensorflow/tfjs-core": "^3.0.0" + } + }, + "node_modules/@tensorflow-models/handpose/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@tensorflow/tfjs-backend-cpu": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-backend-cpu/-/tfjs-backend-cpu-3.11.0.tgz", + "integrity": "sha512-ShLkrZ4/rmhZwzGKenMFDfQnaEbyZgWA5F8JRa52Iob/vptlZeuOzjq87CZKmZMUmDswR9A2kjzovT/H1bJdWQ==", + "dependencies": { + "@types/seedrandom": "2.4.27", + "seedrandom": "2.4.3" + }, + "engines": { + "yarn": ">= 1.3.2" + }, + "peerDependencies": { + "@tensorflow/tfjs-core": "3.11.0" + } + }, + "node_modules/@tensorflow/tfjs-backend-webgl": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-backend-webgl/-/tfjs-backend-webgl-3.11.0.tgz", + "integrity": "sha512-rNnc/dZ7LIl9O/Pn9W24I1h8kgpJ+XvG8NrdNSfIoWPCW4fvPSlU7B3yMeZXvRneny+z+T3xRs96nWyU2mZBJw==", + "dependencies": { + "@tensorflow/tfjs-backend-cpu": "3.11.0", + "@types/offscreencanvas": "~2019.3.0", + "@types/seedrandom": "2.4.27", + "@types/webgl-ext": "0.0.30", + "@types/webgl2": "0.0.6", + "seedrandom": "2.4.3" + }, + "engines": { + "yarn": ">= 1.3.2" + }, + "peerDependencies": { + "@tensorflow/tfjs-core": "3.11.0" + } + }, + "node_modules/@tensorflow/tfjs-converter": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-converter/-/tfjs-converter-3.11.0.tgz", + "integrity": "sha512-rTRIKvBoqL0qdPYpm8UXauZycOiaBHZB2E2v3OoXoHnjvle/Xn/09uZJdrixgGhR+Kahs3Vz27BEEFz6RI5j2w==", + "peerDependencies": { + "@tensorflow/tfjs-core": "3.11.0" + } + }, + "node_modules/@tensorflow/tfjs-core": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-core/-/tfjs-core-3.11.0.tgz", + "integrity": "sha512-JOp+1+LCd0Xg3hu7fu6iQPWZnN8Hc6ssfP7B+625XH5GYY1/OhVASa7Ahe2mJr9gZovY2lw8FUejLh1jMmBb1Q==", + "dependencies": { + "@types/long": "^4.0.1", + "@types/offscreencanvas": "~2019.3.0", + "@types/seedrandom": "2.4.27", + "@types/webgl-ext": "0.0.30", + "long": "4.0.0", + "node-fetch": "~2.6.1", + "seedrandom": "2.4.3" + }, + "engines": { + "yarn": ">= 1.3.2" + } + }, + "node_modules/@trysound/sax": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", + "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@types/eslint": { + "version": "7.28.1", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.28.1.tgz", + "integrity": "sha512-XhZKznR3i/W5dXqUhgU9fFdJekufbeBd5DALmkuXoeFcjbQcPk+2cL+WLHf6Q81HWAnM2vrslIHpGVyCAviRwg==", + "dev": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.1.tgz", + "integrity": "sha512-SCFeogqiptms4Fg29WpOTk5nHIzfpKCemSN63ksBQYKTcXoJEmJagV+DhVmbapZzY4/5YaOV1nZwrsU79fFm1g==", + "dev": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "0.0.50", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.50.tgz", + "integrity": "sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw==", + "dev": true + }, + "node_modules/@types/glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-w+LsMxKyYQm347Otw+IfBXOv9UWVjpHpCDdbBMt8Kz/xbvCYNjP+0qPh91Km3iKfSRLBB0P7fAMf0KHrPu+MyA==", + "dev": true, + "dependencies": { + "@types/minimatch": "*", + "@types/node": "*" + } + }, + "node_modules/@types/html-minifier-terser": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-5.1.2.tgz", + "integrity": "sha512-h4lTMgMJctJybDp8CQrxTUiiYmedihHWkjnF/8Pxseu2S6Nlfcy8kwboQ8yejh456rP2yWoEVm1sS/FVsfM48w==", + "dev": true + }, + "node_modules/@types/http-proxy": { + "version": "1.17.7", + "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.7.tgz", + "integrity": "sha512-9hdj6iXH64tHSLTY+Vt2eYOGzSogC+JQ2H7bdPWkuh7KXP5qLllWx++t+K9Wk556c3dkDdPws/SpMRi0sdCT1w==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.9", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", + "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==", + "dev": true + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=", + "dev": true + }, + "node_modules/@types/long": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.1.tgz", + "integrity": "sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==" + }, + "node_modules/@types/minimatch": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", + "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==", + "dev": true + }, + "node_modules/@types/minimist": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", + "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", + "dev": true + }, + "node_modules/@types/node": { + "version": "16.11.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.0.tgz", + "integrity": "sha512-8MLkBIYQMuhRBQzGN9875bYsOhPnf/0rgXGo66S2FemHkhbn9qtsz9ywV1iCG+vbjigE4WUNVvw37Dx+L0qsPg==", + "dev": true + }, + "node_modules/@types/normalize-package-data": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", + "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", + "dev": true + }, + "node_modules/@types/offscreencanvas": { + "version": "2019.3.0", + "resolved": "https://registry.npmjs.org/@types/offscreencanvas/-/offscreencanvas-2019.3.0.tgz", + "integrity": "sha512-esIJx9bQg+QYF0ra8GnvfianIY8qWB0GBx54PK5Eps6m+xTj86KLavHv6qDhzKcu5UUOgNfJ2pWaIIV7TRUd9Q==" + }, + "node_modules/@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", + "dev": true + }, + "node_modules/@types/retry": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.1.tgz", + "integrity": "sha512-xoDlM2S4ortawSWORYqsdU+2rxdh4LRW9ytc3zmT37RIKQh6IHyKwwtKhKis9ah8ol07DCkZxPt8BBvPjC6v4g==", + "dev": true + }, + "node_modules/@types/seedrandom": { + "version": "2.4.27", + "resolved": "https://registry.npmjs.org/@types/seedrandom/-/seedrandom-2.4.27.tgz", + "integrity": "sha1-nbVjk33YaRX2kJK8QyWdL0hXjkE=" + }, + "node_modules/@types/webgl-ext": { + "version": "0.0.30", + "resolved": "https://registry.npmjs.org/@types/webgl-ext/-/webgl-ext-0.0.30.tgz", + "integrity": "sha512-LKVgNmBxN0BbljJrVUwkxwRYqzsAEPcZOe6S2T6ZaBDIrFp0qu4FNlpc5sM1tGbXUYFgdVQIoeLk1Y1UoblyEg==" + }, + "node_modules/@types/webgl2": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@types/webgl2/-/webgl2-0.0.6.tgz", + "integrity": "sha512-50GQhDVTq/herLMiqSQkdtRu+d5q/cWHn4VvKJtrj4DJAjo1MNkWYa2MA41BaBO1q1HgsUjuQvEOk0QHvlnAaQ==" + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", + "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", + "dev": true, + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", + "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", + "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", + "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", + "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", + "dev": true, + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", + "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", + "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", + "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", + "dev": true, + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", + "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", + "dev": true, + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", + "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", + "dev": true + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", + "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/helper-wasm-section": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-opt": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "@webassemblyjs/wast-printer": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", + "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", + "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", + "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", + "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webpack-cli/configtest": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.1.0.tgz", + "integrity": "sha512-ttOkEkoalEHa7RaFYpM0ErK1xc4twg3Am9hfHhL7MVqlHebnkYd2wuI/ZqTDj0cVzZho6PdinY0phFZV3O0Mzg==", + "dev": true, + "peerDependencies": { + "webpack": "4.x.x || 5.x.x", + "webpack-cli": "4.x.x" + } + }, + "node_modules/@webpack-cli/info": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.4.0.tgz", + "integrity": "sha512-F6b+Man0rwE4n0409FyAJHStYA5OIZERxmnUfLVwv0mc0V1wLad3V7jqRlMkgKBeAq07jUvglacNaa6g9lOpuw==", + "dev": true, + "dependencies": { + "envinfo": "^7.7.3" + }, + "peerDependencies": { + "webpack-cli": "4.x.x" + } + }, + "node_modules/@webpack-cli/serve": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.6.0.tgz", + "integrity": "sha512-ZkVeqEmRpBV2GHvjjUZqEai2PpUbuq8Bqd//vEYsp63J8WyexI8ppCqVS3Zs0QADf6aWuPdU+0XsPI647PVlQA==", + "dev": true, + "peerDependencies": { + "webpack-cli": "4.x.x" + }, + "peerDependenciesMeta": { + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "node_modules/accepts": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", + "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "dev": true, + "dependencies": { + "mime-types": "~2.1.24", + "negotiator": "0.6.2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "dev": true, + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/alphanum-sort": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", + "integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=", + "dev": true + }, + "node_modules/amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", + "dev": true, + "engines": { + "node": ">=0.4.2" + } + }, + "node_modules/ansi-colors": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", + "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/ansi-html-community": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", + "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==", + "dev": true, + "engines": [ + "node >= 0.8.0" + ], + "bin": { + "ansi-html": "bin/ansi-html" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/anymatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", + "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/aproba": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", + "dev": true + }, + "node_modules/are-we-there-yet": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz", + "integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==", + "dev": true, + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/array-find": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-find/-/array-find-1.0.0.tgz", + "integrity": "sha1-bI4obRHtdoMn+OYuzuhzU8o+eLg=", + "dev": true + }, + "node_modules/array-flatten": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", + "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==", + "dev": true + }, + "node_modules/array-includes": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.4.tgz", + "integrity": "sha512-ZTNSQkmWumEbiHO2GF4GmWxYVTiQyJy2XOTa15sdQSrvKn7l+180egQMqlrMOUMCyLMD7pmyQe4mMDUT6Behrw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1", + "get-intrinsic": "^1.1.1", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/array-uniq": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", + "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.5.tgz", + "integrity": "sha512-KaYU+S+ndVqyUnignHftkwc58o3uVU1jzczILJ1tN2YaIZpFIKBiP/x/j97E5MVPsaCloPbqWLB/8qCTVvT2qg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "dev": true, + "dependencies": { + "safer-buffer": "~2.1.0" + } + }, + "node_modules/assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/async": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", + "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", + "dev": true, + "dependencies": { + "lodash": "^4.17.14" + } + }, + "node_modules/async-foreach": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz", + "integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI=", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true + }, + "node_modules/autoprefixer": { + "version": "9.8.8", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.8.8.tgz", + "integrity": "sha512-eM9d/swFopRt5gdJ7jrpCwgvEMIayITpojhkkSMRsFHYuH5bkSQ4p/9qTEHtmNudUZh22Tehu7I6CxAW0IXTKA==", + "dev": true, + "dependencies": { + "browserslist": "^4.12.0", + "caniuse-lite": "^1.0.30001109", + "normalize-range": "^0.1.2", + "num2fraction": "^1.2.2", + "picocolors": "^0.2.1", + "postcss": "^7.0.32", + "postcss-value-parser": "^4.1.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "funding": { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + } + }, + "node_modules/autoprefixer/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/autoprefixer/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/autoprefixer/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/aws4": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", + "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==", + "dev": true + }, + "node_modules/babel-loader": { + "version": "8.2.2", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.2.2.tgz", + "integrity": "sha512-JvTd0/D889PQBtUXJ2PXaKU/pjZDMtHA9V2ecm+eNRmmBCMR09a+fmpGTNwnJtFmFl5Ei7Vy47LjBb+L0wQ99g==", + "dev": true, + "dependencies": { + "find-cache-dir": "^3.3.1", + "loader-utils": "^1.4.0", + "make-dir": "^3.1.0", + "schema-utils": "^2.6.5" + }, + "engines": { + "node": ">= 8.9" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "webpack": ">=2" + } + }, + "node_modules/babel-plugin-dynamic-import-node": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", + "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", + "dev": true, + "dependencies": { + "object.assign": "^4.1.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.2.3.tgz", + "integrity": "sha512-NDZ0auNRzmAfE1oDDPW2JhzIMXUk+FFe2ICejmt5T4ocKgiQx3e0VCRx9NCAidcMtL2RUZaWtXnmjTCkx0tcbA==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.13.11", + "@babel/helper-define-polyfill-provider": "^0.2.4", + "semver": "^6.1.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.2.5.tgz", + "integrity": "sha512-ninF5MQNwAX9Z7c9ED+H2pGt1mXdP4TqzlHKyPIYmJIYz0N+++uwdM7RnJukklhzJ54Q84vA4ZJkgs7lu5vqcw==", + "dev": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.2.2", + "core-js-compat": "^3.16.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.2.3.tgz", + "integrity": "sha512-JVE78oRZPKFIeUqFGrSORNzQnrDwZR16oiWeGM8ZyjBn2XAT5OjP+wXx5ESuo33nUsFUEJYjtklnsKbxW5L+7g==", + "dev": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.2.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/batch": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", + "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=", + "dev": true + }, + "node_modules/bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "dev": true, + "dependencies": { + "tweetnacl": "^0.14.3" + } + }, + "node_modules/big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/body-parser": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", + "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", + "dev": true, + "dependencies": { + "bytes": "3.1.0", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "~1.1.2", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "on-finished": "~2.3.0", + "qs": "6.7.0", + "raw-body": "2.4.0", + "type-is": "~1.6.17" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/body-parser/node_modules/bytes": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", + "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/body-parser/node_modules/qs": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", + "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/bonjour": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz", + "integrity": "sha1-jokKGD2O6aI5OzhExpGkK897yfU=", + "dev": true, + "dependencies": { + "array-flatten": "^2.1.0", + "deep-equal": "^1.0.1", + "dns-equal": "^1.0.0", + "dns-txt": "^2.0.2", + "multicast-dns": "^6.0.1", + "multicast-dns-service-types": "^1.1.0" + } + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.17.4.tgz", + "integrity": "sha512-Zg7RpbZpIJRW3am9Lyckue7PLytvVxxhJj1CaJVlCWENsGEAOlnlt8X0ZxGRPp7Bt9o8tIRM5SEXy4BCPMJjLQ==", + "dev": true, + "dependencies": { + "caniuse-lite": "^1.0.30001265", + "electron-to-chromium": "^1.3.867", + "escalade": "^3.1.1", + "node-releases": "^2.0.0", + "picocolors": "^1.0.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/buffer-indexof": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.1.1.tgz", + "integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==", + "dev": true + }, + "node_modules/bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camel-case": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", + "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", + "dev": true, + "dependencies": { + "pascal-case": "^3.1.2", + "tslib": "^2.0.3" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase-keys": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", + "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "map-obj": "^4.0.0", + "quick-lru": "^4.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/caniuse-api": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", + "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", + "dev": true, + "dependencies": { + "browserslist": "^4.0.0", + "caniuse-lite": "^1.0.0", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001267", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001267.tgz", + "integrity": "sha512-r1mjTzAuJ9W8cPBGbbus8E0SKcUP7gn03R14Wk8FlAlqhH9hroy9nLqmpuXlfKEw/oILW+FGz47ipXV2O7x8lg==", + "dev": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + } + }, + "node_modules/caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "dev": true + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chokidar": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz", + "integrity": "sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==", + "dev": true, + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/clean-css": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.3.tgz", + "integrity": "sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA==", + "dev": true, + "dependencies": { + "source-map": "~0.6.0" + }, + "engines": { + "node": ">= 4.0" + } + }, + "node_modules/clean-css/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/clean-webpack-plugin": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/clean-webpack-plugin/-/clean-webpack-plugin-4.0.0.tgz", + "integrity": "sha512-WuWE1nyTNAyW5T7oNyys2EN0cfP2fdRxhxnIQWiAp0bMabPdHhoGxM8A6YL2GhqwgrPnnaemVE7nv5XJ2Fhh2w==", + "dev": true, + "dependencies": { + "del": "^4.1.1" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "webpack": ">=4.0.0 <6.0.0" + } + }, + "node_modules/cliui": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", + "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", + "dev": true, + "dependencies": { + "string-width": "^3.1.0", + "strip-ansi": "^5.2.0", + "wrap-ansi": "^5.1.0" + } + }, + "node_modules/cliui/node_modules/ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/cliui/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/cliui/node_modules/string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "dependencies": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/cliui/node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "node_modules/colord": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/colord/-/colord-2.8.0.tgz", + "integrity": "sha512-kNkVV4KFta3TYQv0bzs4xNwLaeag261pxgzGQSh4cQ1rEhYjcTJfFRP0SDlbhLONg0eSoLzrDd79PosjbltufA==", + "dev": true + }, + "node_modules/colorette": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.16.tgz", + "integrity": "sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==", + "dev": true + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", + "dev": true + }, + "node_modules/compressible": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", + "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", + "dev": true, + "dependencies": { + "mime-db": ">= 1.43.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/compression": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", + "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", + "dev": true, + "dependencies": { + "accepts": "~1.3.5", + "bytes": "3.0.0", + "compressible": "~2.0.16", + "debug": "2.6.9", + "on-headers": "~1.0.2", + "safe-buffer": "5.1.2", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/compression/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/compression/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "node_modules/confusing-browser-globals": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.10.tgz", + "integrity": "sha512-gNld/3lySHwuhaVluJUKLePYirM3QNCKzVxqAdhJII9/WXKVX5PURzMVJspS1jTslSqjeuG4KMVTSouit5YPHA==", + "dev": true + }, + "node_modules/connect-history-api-fallback": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz", + "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==", + "dev": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", + "dev": true + }, + "node_modules/content-disposition": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", + "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", + "dev": true, + "dependencies": { + "safe-buffer": "5.1.2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/convert-source-map": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", + "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.1" + } + }, + "node_modules/cookie": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", + "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", + "dev": true + }, + "node_modules/copy-webpack-plugin": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-9.0.1.tgz", + "integrity": "sha512-14gHKKdYIxF84jCEgPgYXCPpldbwpxxLbCmA7LReY7gvbaT555DgeBWBgBZM116tv/fO6RRJrsivBqRyRlukhw==", + "dev": true, + "dependencies": { + "fast-glob": "^3.2.5", + "glob-parent": "^6.0.0", + "globby": "^11.0.3", + "normalize-path": "^3.0.0", + "p-limit": "^3.1.0", + "schema-utils": "^3.0.0", + "serialize-javascript": "^6.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + } + }, + "node_modules/copy-webpack-plugin/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/core-js-compat": { + "version": "3.18.3", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.18.3.tgz", + "integrity": "sha512-4zP6/y0a2RTHN5bRGT7PTq9lVt3WzvffTNjqnTKsXhkAYNDTkdCLOIfAdOLcQ/7TDdyRj3c+NeHe1NmF1eDScw==", + "dev": true, + "dependencies": { + "browserslist": "^4.17.3", + "semver": "7.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-js-compat/node_modules/semver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", + "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, + "node_modules/cosmiconfig": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", + "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", + "dev": true, + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/css-blank-pseudo": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/css-blank-pseudo/-/css-blank-pseudo-0.1.4.tgz", + "integrity": "sha512-LHz35Hr83dnFeipc7oqFDmsjHdljj3TQtxGGiNWSOsTLIAubSm4TEz8qCaKFpk7idaQ1GfWscF4E6mgpBysA1w==", + "dev": true, + "dependencies": { + "postcss": "^7.0.5" + }, + "bin": { + "css-blank-pseudo": "cli.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/css-blank-pseudo/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/css-blank-pseudo/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/css-blank-pseudo/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/css-color-names": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-1.0.1.tgz", + "integrity": "sha512-/loXYOch1qU1biStIFsHH8SxTmOseh1IJqFvy8IujXOm1h+QjUdDhkzOrR5HG8K8mlxREj0yfi8ewCHx0eMxzA==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/css-declaration-sorter": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.1.3.tgz", + "integrity": "sha512-SvjQjNRZgh4ULK1LDJ2AduPKUKxIqmtU7ZAyi47BTV+M90Qvxr9AB6lKlLbDUfXqI9IQeYA8LbAsCZPpJEV3aA==", + "dev": true, + "dependencies": { + "timsort": "^0.3.0" + }, + "engines": { + "node": ">= 10" + }, + "peerDependencies": { + "postcss": "^8.0.9" + } + }, + "node_modules/css-has-pseudo": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/css-has-pseudo/-/css-has-pseudo-0.10.0.tgz", + "integrity": "sha512-Z8hnfsZu4o/kt+AuFzeGpLVhFOGO9mluyHBaA2bA8aCGTwah5sT3WV/fTHH8UNZUytOIImuGPrl/prlb4oX4qQ==", + "dev": true, + "dependencies": { + "postcss": "^7.0.6", + "postcss-selector-parser": "^5.0.0-rc.4" + }, + "bin": { + "css-has-pseudo": "cli.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/css-has-pseudo/node_modules/cssesc": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", + "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/css-has-pseudo/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/css-has-pseudo/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/css-has-pseudo/node_modules/postcss-selector-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", + "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", + "dev": true, + "dependencies": { + "cssesc": "^2.0.0", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/css-has-pseudo/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/css-loader": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.4.0.tgz", + "integrity": "sha512-Dlt6qfsxI/w1vU0r8qDd4BtMPxWqJeY5qQU7SmmZfvbpe6Xl18McO4GhyaMLns24Y2VNPiZwJPQ8JSbg4qvQLw==", + "dev": true, + "dependencies": { + "icss-utils": "^5.1.0", + "postcss": "^8.2.15", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.0", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "postcss-value-parser": "^4.1.0", + "semver": "^7.3.5" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/css-loader/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/css-minimizer-webpack-plugin": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.1.1.tgz", + "integrity": "sha512-KlB8l5uoNcf9F7i5kXnkxoqJGd2BXH4f0+Lj2vSWSmuvMLYO1kNsJ1KHSzeDW8e45/whgSOPcKVT/3JopkT8dg==", + "dev": true, + "dependencies": { + "cssnano": "^5.0.6", + "jest-worker": "^27.0.2", + "p-limit": "^3.0.2", + "postcss": "^8.3.5", + "schema-utils": "^3.1.0", + "serialize-javascript": "^6.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "clean-css": { + "optional": true + }, + "csso": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/css-prefers-color-scheme": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/css-prefers-color-scheme/-/css-prefers-color-scheme-3.1.1.tgz", + "integrity": "sha512-MTu6+tMs9S3EUqzmqLXEcgNRbNkkD/TGFvowpeoWJn5Vfq7FMgsmRQs9X5NXAURiOBmOxm/lLjsDNXDE6k9bhg==", + "dev": true, + "dependencies": { + "postcss": "^7.0.5" + }, + "bin": { + "css-prefers-color-scheme": "cli.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/css-prefers-color-scheme/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/css-prefers-color-scheme/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/css-prefers-color-scheme/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/css-select": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.1.3.tgz", + "integrity": "sha512-gT3wBNd9Nj49rAbmtFHj1cljIAOLYSX1nZ8CB7TBO3INYckygm5B7LISU/szY//YmdiSLbJvDLOx9VnMVpMBxA==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^5.0.0", + "domhandler": "^4.2.0", + "domutils": "^2.6.0", + "nth-check": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dev": true, + "dependencies": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/css-tree/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/css-what": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-5.1.0.tgz", + "integrity": "sha512-arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw==", + "dev": true, + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/cssdb": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/cssdb/-/cssdb-4.4.0.tgz", + "integrity": "sha512-LsTAR1JPEM9TpGhl/0p3nQecC2LJ0kD8X5YARu1hk/9I1gril5vDtMZyNxcEpxxDj34YNck/ucjuoUd66K03oQ==", + "dev": true + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cssnano": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.0.8.tgz", + "integrity": "sha512-Lda7geZU0Yu+RZi2SGpjYuQz4HI4/1Y+BhdD0jL7NXAQ5larCzVn+PUGuZbDMYz904AXXCOgO5L1teSvgu7aFg==", + "dev": true, + "dependencies": { + "cssnano-preset-default": "^5.1.4", + "is-resolvable": "^1.1.0", + "lilconfig": "^2.0.3", + "yaml": "^1.10.2" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/cssnano" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-preset-default": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.1.4.tgz", + "integrity": "sha512-sPpQNDQBI3R/QsYxQvfB4mXeEcWuw0wGtKtmS5eg8wudyStYMgKOQT39G07EbW1LB56AOYrinRS9f0ig4Y3MhQ==", + "dev": true, + "dependencies": { + "css-declaration-sorter": "^6.0.3", + "cssnano-utils": "^2.0.1", + "postcss-calc": "^8.0.0", + "postcss-colormin": "^5.2.0", + "postcss-convert-values": "^5.0.1", + "postcss-discard-comments": "^5.0.1", + "postcss-discard-duplicates": "^5.0.1", + "postcss-discard-empty": "^5.0.1", + "postcss-discard-overridden": "^5.0.1", + "postcss-merge-longhand": "^5.0.2", + "postcss-merge-rules": "^5.0.2", + "postcss-minify-font-values": "^5.0.1", + "postcss-minify-gradients": "^5.0.2", + "postcss-minify-params": "^5.0.1", + "postcss-minify-selectors": "^5.1.0", + "postcss-normalize-charset": "^5.0.1", + "postcss-normalize-display-values": "^5.0.1", + "postcss-normalize-positions": "^5.0.1", + "postcss-normalize-repeat-style": "^5.0.1", + "postcss-normalize-string": "^5.0.1", + "postcss-normalize-timing-functions": "^5.0.1", + "postcss-normalize-unicode": "^5.0.1", + "postcss-normalize-url": "^5.0.2", + "postcss-normalize-whitespace": "^5.0.1", + "postcss-ordered-values": "^5.0.2", + "postcss-reduce-initial": "^5.0.1", + "postcss-reduce-transforms": "^5.0.1", + "postcss-svgo": "^5.0.2", + "postcss-unique-selectors": "^5.0.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-2.0.1.tgz", + "integrity": "sha512-i8vLRZTnEH9ubIyfdZCAdIdgnHAUeQeByEeQ2I7oTilvP9oHO6RScpeq3GsFUVqeB8uZgOQ9pw8utofNn32hhQ==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "dev": true, + "dependencies": { + "css-tree": "^1.1.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "dev": true, + "dependencies": { + "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/debug": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", + "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decamelize-keys": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", + "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", + "dev": true, + "dependencies": { + "decamelize": "^1.1.0", + "map-obj": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decamelize-keys/node_modules/map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/deep-equal": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.1.tgz", + "integrity": "sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g==", + "dev": true, + "dependencies": { + "is-arguments": "^1.0.4", + "is-date-object": "^1.0.1", + "is-regex": "^1.0.4", + "object-is": "^1.0.1", + "object-keys": "^1.1.1", + "regexp.prototype.flags": "^1.2.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/default-gateway": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", + "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", + "dev": true, + "dependencies": { + "execa": "^5.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "dev": true, + "dependencies": { + "object-keys": "^1.0.12" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/del": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/del/-/del-4.1.1.tgz", + "integrity": "sha512-QwGuEUouP2kVwQenAsOof5Fv8K9t3D8Ca8NxcXKrIpEHjTXK5J2nXLdP+ALI1cgv8wj7KuwBhTwBkOZSJKM5XQ==", + "dev": true, + "dependencies": { + "@types/glob": "^7.1.1", + "globby": "^6.1.0", + "is-path-cwd": "^2.0.0", + "is-path-in-cwd": "^2.0.0", + "p-map": "^2.0.0", + "pify": "^4.0.1", + "rimraf": "^2.6.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/del/node_modules/array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "dev": true, + "dependencies": { + "array-uniq": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/del/node_modules/globby": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", + "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", + "dev": true, + "dependencies": { + "array-union": "^1.0.1", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/del/node_modules/globby/node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", + "dev": true + }, + "node_modules/depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/destroy": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", + "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", + "dev": true + }, + "node_modules/detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", + "dev": true + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dns-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", + "integrity": "sha1-s55/HabrCnW6nBcySzR1PEfgZU0=", + "dev": true + }, + "node_modules/dns-packet": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.4.tgz", + "integrity": "sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA==", + "dev": true, + "dependencies": { + "ip": "^1.1.0", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/dns-txt": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/dns-txt/-/dns-txt-2.0.2.tgz", + "integrity": "sha1-uR2Ab10nGI5Ks+fRB9iBocxGQrY=", + "dev": true, + "dependencies": { + "buffer-indexof": "^1.0.0" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dom-converter": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", + "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", + "dev": true, + "dependencies": { + "utila": "~0.4" + } + }, + "node_modules/dom-serializer": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz", + "integrity": "sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==", + "dev": true, + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", + "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ] + }, + "node_modules/domhandler": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.2.2.tgz", + "integrity": "sha512-PzE9aBMsdZO8TK4BnuJwH0QT41wgMbRzuZrHUcpYncEjmQazq8QEaBWgLG7ZyC/DAZKEgglpIA6j4Qn/HmxS3w==", + "dev": true, + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dev": true, + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/dot-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", + "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", + "dev": true, + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "dev": true, + "dependencies": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", + "dev": true + }, + "node_modules/electron-to-chromium": { + "version": "1.3.870", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.870.tgz", + "integrity": "sha512-PiJMshfq6PL+i1V+nKLwhHbCKeD8eAz8rvO9Cwk/7cChOHJBtufmjajLyYLsSRHguRFiOCVx3XzJLeZsIAYfSA==", + "dev": true + }, + "node_modules/emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "node_modules/emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/enhanced-resolve": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-0.9.1.tgz", + "integrity": "sha1-TW5omzcl+GCQknzMhs2fFjW4ni4=", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "memory-fs": "^0.2.0", + "tapable": "^0.1.8" + }, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/enquirer": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", + "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "dev": true, + "dependencies": { + "ansi-colors": "^4.1.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/envinfo": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", + "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", + "dev": true, + "bin": { + "envinfo": "dist/cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-abstract": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.19.1.tgz", + "integrity": "sha512-2vJ6tjA/UfqLm2MPs7jxVybLoB8i1t1Jd9R3kISld20sIxPcTbLuggQOUxeWeAvIUkduv/CfMjuh4WmiXr2v9w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "get-intrinsic": "^1.1.1", + "get-symbol-description": "^1.0.0", + "has": "^1.0.3", + "has-symbols": "^1.0.2", + "internal-slot": "^1.0.3", + "is-callable": "^1.2.4", + "is-negative-zero": "^2.0.1", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.1", + "is-string": "^1.0.7", + "is-weakref": "^1.0.1", + "object-inspect": "^1.11.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.2", + "string.prototype.trimend": "^1.0.4", + "string.prototype.trimstart": "^1.0.4", + "unbox-primitive": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-module-lexer": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", + "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", + "dev": true + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", + "dev": true + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eslint": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.28.0.tgz", + "integrity": "sha512-UMfH0VSjP0G4p3EWirscJEQ/cHqnT/iuH6oNZOB94nBjWbMnhGEPxsZm1eyIW0C/9jLI0Fow4W5DXLjEI7mn1g==", + "dev": true, + "dependencies": { + "@babel/code-frame": "7.12.11", + "@eslint/eslintrc": "^0.4.2", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.0.1", + "doctrine": "^3.0.0", + "enquirer": "^2.3.5", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^5.1.1", + "eslint-utils": "^2.1.0", + "eslint-visitor-keys": "^2.0.0", + "espree": "^7.3.1", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^5.1.2", + "globals": "^13.6.0", + "ignore": "^4.0.6", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^3.13.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.0.4", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "progress": "^2.0.0", + "regexpp": "^3.1.0", + "semver": "^7.2.1", + "strip-ansi": "^6.0.0", + "strip-json-comments": "^3.1.0", + "table": "^6.0.9", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-airbnb-base": { + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.2.1.tgz", + "integrity": "sha512-GOrQyDtVEc1Xy20U7vsB2yAoB4nBlfH5HZJeatRXHleO+OS5Ot+MWij4Dpltw4/DyIkqUfqz1epfhVR5XWWQPA==", + "dev": true, + "dependencies": { + "confusing-browser-globals": "^1.0.10", + "object.assign": "^4.1.2", + "object.entries": "^1.1.2" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "eslint": "^5.16.0 || ^6.8.0 || ^7.2.0", + "eslint-plugin-import": "^2.22.1" + } + }, + "node_modules/eslint-config-prettier": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz", + "integrity": "sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", + "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "resolve": "^1.20.0" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-import-resolver-webpack": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-webpack/-/eslint-import-resolver-webpack-0.13.1.tgz", + "integrity": "sha512-O/8mG6AHmaKYSMb4lWxiXPpaARxOJ4rMQEHJ8vTgjS1MXooJA3KPgBPPAdOPoV17v5ML5120qod5FBLM+DtgEw==", + "dev": true, + "dependencies": { + "array-find": "^1.0.0", + "debug": "^3.2.7", + "enhanced-resolve": "^0.9.1", + "find-root": "^1.1.0", + "has": "^1.0.3", + "interpret": "^1.4.0", + "is-core-module": "^2.4.0", + "is-regex": "^1.1.3", + "lodash": "^4.17.21", + "resolve": "^1.20.0", + "semver": "^5.7.1" + }, + "engines": { + "node": "^16 || ^15 || ^14 || ^13 || ^12 || ^11 || ^10 || ^9 || ^8 || ^7 || ^6" + }, + "peerDependencies": { + "eslint-plugin-import": ">=1.4.0", + "webpack": ">=1.11.0" + } + }, + "node_modules/eslint-import-resolver-webpack/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-import-resolver-webpack/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.1.tgz", + "integrity": "sha512-fjoetBXQZq2tSTWZ9yWVl2KuFrTZZH3V+9iD1V1RfpDgxzJR+mPd/KZmMiA8gbPqdBzpNiEHOuT7IYEWxrH0zQ==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "find-up": "^2.1.0", + "pkg-dir": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.25.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.2.tgz", + "integrity": "sha512-qCwQr9TYfoBHOFcVGKY9C9unq05uOxxdklmBXLVvcwo68y5Hta6/GzCZEMx2zQiu0woKNEER0LE7ZgaOfBU14g==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.4", + "array.prototype.flat": "^1.2.5", + "debug": "^2.6.9", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.6", + "eslint-module-utils": "^2.7.0", + "has": "^1.0.3", + "is-core-module": "^2.7.0", + "is-glob": "^4.0.3", + "minimatch": "^3.0.4", + "object.values": "^1.1.5", + "resolve": "^1.20.0", + "tsconfig-paths": "^3.11.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/eslint-plugin-prettier": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.0.0.tgz", + "integrity": "sha512-98MqmCJ7vJodoQK359bqQWaxOE0CS8paAz/GgjaZLyex4TTk3g9HugoO89EqWCrFiOqn9EVvcoo7gZzONCWVwQ==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0" + }, + "engines": { + "node": ">=6.0.0" + }, + "peerDependencies": { + "eslint": ">=7.28.0", + "prettier": ">=2.0.0" + }, + "peerDependenciesMeta": { + "eslint-config-prettier": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, + "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint/node_modules/@babel/code-frame": { + "version": "7.12.11", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", + "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.10.4" + } + }, + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.11.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz", + "integrity": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/espree": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", + "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", + "dev": true, + "dependencies": { + "acorn": "^7.4.0", + "acorn-jsx": "^5.3.1", + "eslint-visitor-keys": "^1.3.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", + "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", + "dev": true + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/express": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", + "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", + "dev": true, + "dependencies": { + "accepts": "~1.3.7", + "array-flatten": "1.1.1", + "body-parser": "1.19.0", + "content-disposition": "0.5.3", + "content-type": "~1.0.4", + "cookie": "0.4.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "~1.1.2", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "~1.1.2", + "fresh": "0.5.2", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.5", + "qs": "6.7.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.1.2", + "send": "0.17.1", + "serve-static": "1.14.1", + "setprototypeof": "1.1.1", + "statuses": "~1.5.0", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/express/node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=", + "dev": true + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/express/node_modules/qs": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", + "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "node_modules/extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", + "dev": true, + "engines": [ + "node >=0.6.0" + ] + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-diff": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", + "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz", + "integrity": "sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true + }, + "node_modules/fastest-levenshtein": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.12.tgz", + "integrity": "sha512-On2N+BpYJ15xIC974QNVuYGMOlEVt4s0EOI3wwMqOmK1fdDY+FN/zltPV8vosq4ad4c/gJ1KHScUn/6AWIgiow==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", + "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/faye-websocket": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", + "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", + "dev": true, + "dependencies": { + "websocket-driver": ">=0.5.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", + "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", + "dev": true, + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "statuses": "~1.5.0", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "dev": true, + "dependencies": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" + } + }, + "node_modules/find-cache-dir/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-cache-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-cache-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/find-cache-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-cache-dir/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-cache-dir/node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-root": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", + "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==", + "dev": true + }, + "node_modules/find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "dependencies": { + "locate-path": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/fingerpose": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/fingerpose/-/fingerpose-0.1.0.tgz", + "integrity": "sha512-OXIRuRTgukBOo4xUO+vPchzHftZOPxO7VRh4HDjTg5NGr4gSkiY+LQShjsKAzmpRiRdmTgDh0dNsGpWa1Jsx3Q==" + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flat-cache/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/flatted": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.2.tgz", + "integrity": "sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA==", + "dev": true + }, + "node_modules/flatten": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/flatten/-/flatten-1.0.3.tgz", + "integrity": "sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg==", + "deprecated": "flatten is deprecated in favor of utility frameworks such as lodash.", + "dev": true + }, + "node_modules/follow-redirects": { + "version": "1.14.4", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.4.tgz", + "integrity": "sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "dev": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/fs-monkey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz", + "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==", + "dev": true + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "dev": true + }, + "node_modules/gauge": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", + "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", + "dev": true, + "dependencies": { + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" + } + }, + "node_modules/gauge/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gauge/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gaze": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz", + "integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==", + "dev": true, + "dependencies": { + "globule": "^1.0.0" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", + "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-stdin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", + "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "dev": true, + "dependencies": { + "assert-plus": "^1.0.0" + } + }, + "node_modules/glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/globby": { + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", + "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.1.1", + "ignore": "^5.1.4", + "merge2": "^1.3.0", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby/node_modules/ignore": { + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", + "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/globule": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/globule/-/globule-1.3.3.tgz", + "integrity": "sha512-mb1aYtDbIjTu4ShMB85m3UzjX9BVKe9WCzsnfMSZk+K5GpIbBOexgg4PPCt5eHDEG5/ZQAUX2Kct02zfiPLsKg==", + "dev": true, + "dependencies": { + "glob": "~7.1.1", + "lodash": "~4.17.10", + "minimatch": "~3.0.2" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/globule/node_modules/glob": { + "version": "7.1.7", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", + "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz", + "integrity": "sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==", + "dev": true + }, + "node_modules/handle-thing": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", + "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==", + "dev": true + }, + "node_modules/har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/har-validator": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", + "deprecated": "this library is no longer supported", + "dev": true, + "dependencies": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/hard-rejection": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", + "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-ansi/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.1.tgz", + "integrity": "sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/has-symbols": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz", + "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", + "dev": true + }, + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "dev": true, + "bin": { + "he": "bin/he" + } + }, + "node_modules/hosted-git-info": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", + "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/hpack.js": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", + "integrity": "sha1-h3dMCUnlE/QuhFdbPEVoH63ioLI=", + "dev": true, + "dependencies": { + "inherits": "^2.0.1", + "obuf": "^1.0.0", + "readable-stream": "^2.0.1", + "wbuf": "^1.1.0" + } + }, + "node_modules/html-entities": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.2.tgz", + "integrity": "sha512-c3Ab/url5ksaT0WyleslpBEthOzWhrjQbg75y7XUsfSzi3Dgzt0l8w5e7DylRn15MTlMMD58dTfzddNS2kcAjQ==", + "dev": true + }, + "node_modules/html-minifier-terser": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz", + "integrity": "sha512-ZPr5MNObqnV/T9akshPKbVgyOqLmy+Bxo7juKCfTfnjNniTAMdy4hz21YQqoofMBJD2kdREaqPPdThoR78Tgxg==", + "dev": true, + "dependencies": { + "camel-case": "^4.1.1", + "clean-css": "^4.2.3", + "commander": "^4.1.1", + "he": "^1.2.0", + "param-case": "^3.0.3", + "relateurl": "^0.2.7", + "terser": "^4.6.3" + }, + "bin": { + "html-minifier-terser": "cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/html-webpack-plugin": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.3.2.tgz", + "integrity": "sha512-HvB33boVNCz2lTyBsSiMffsJ+m0YLIQ+pskblXgN9fnjS1BgEcuAfdInfXfGrkdXV406k9FiDi86eVCDBgJOyQ==", + "dev": true, + "dependencies": { + "@types/html-minifier-terser": "^5.0.0", + "html-minifier-terser": "^5.0.1", + "lodash": "^4.17.21", + "pretty-error": "^3.0.4", + "tapable": "^2.0.0" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/html-webpack-plugin" + }, + "peerDependencies": { + "webpack": "^5.20.0" + } + }, + "node_modules/html-webpack-plugin/node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/htmlparser2": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", + "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", + "dev": true, + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.0.0", + "domutils": "^2.5.2", + "entities": "^2.0.0" + } + }, + "node_modules/http-deceiver": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", + "integrity": "sha1-+nFolEq5pRnTN8sL7HKE3D5yPYc=", + "dev": true + }, + "node_modules/http-errors": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", + "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", + "dev": true, + "dependencies": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.1", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/http-errors/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "node_modules/http-parser-js": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.3.tgz", + "integrity": "sha512-t7hjvef/5HEK7RWTdUzVUhl8zkEu+LlaE0IYzdMuvbSDipxBRpOn4Uhw8ZyECEa808iVT8XCjzo6xmYt4CiLZg==", + "dev": true + }, + "node_modules/http-proxy": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", + "dev": true, + "dependencies": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/http-proxy-middleware": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.1.tgz", + "integrity": "sha512-cfaXRVoZxSed/BmkA7SwBVNI9Kj7HFltaE5rqYOub5kWzWZ+gofV2koVN1j2rMW7pEfSSlCHGJ31xmuyFyfLOg==", + "dev": true, + "dependencies": { + "@types/http-proxy": "^1.17.5", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.1", + "is-plain-obj": "^3.0.0", + "micromatch": "^4.0.2" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/http-proxy-middleware/node_modules/is-plain-obj": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", + "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "dev": true, + "dependencies": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + }, + "engines": { + "node": ">=0.8", + "npm": ">=1.3.7" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/icss-utils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", + "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-local": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.3.tgz", + "integrity": "sha512-bE9iaUY3CXH8Cwfan/abDKAxe1KGT9kyGsBPqf6DMK/z0a2OzAsrukeYNgIH6cH5Xr452jb1TUL8rSfCLjZ9uA==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/import-local/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/import-local/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/import-local/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-local/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/import-local/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/import-local/node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/indexes-of": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/indexes-of/-/indexes-of-1.0.1.tgz", + "integrity": "sha1-8w9xbI4r00bHtn0985FVZqfAVgc=", + "dev": true + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/internal-ip": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/internal-ip/-/internal-ip-6.2.0.tgz", + "integrity": "sha512-D8WGsR6yDt8uq7vDMu7mjcR+yRMm3dW8yufyChmszWRjcSHuxLBkR3GdS2HZAjodsaGuCvXeEJpueisXJULghg==", + "dev": true, + "dependencies": { + "default-gateway": "^6.0.0", + "ipaddr.js": "^1.9.1", + "is-ip": "^3.1.0", + "p-event": "^4.2.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/internal-ip?sponsor=1" + } + }, + "node_modules/internal-ip/node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/internal-slot": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", + "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/ip": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", + "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", + "dev": true + }, + "node_modules/ip-regex": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz", + "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ipaddr.js": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz", + "integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/is-absolute-url": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-3.0.3.tgz", + "integrity": "sha512-opmNIX7uFnS96NtPmhWQgQx6/NYFgsUXYMllcfzwWKUMwfo8kku1TvE6hkNcH+Q1ts5cMVrsY7j0bxXQDciu9Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", + "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.0.tgz", + "integrity": "sha512-vd15qHsaqrRL7dtH6QNuy0ndJmRDrS9HAM1CAiSifNUFv4x1a0CCVsj18hJ1mShxIG6T2i1sO78MkP56r0nYRw==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "dependencies": { + "number-is-nan": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-ip": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-ip/-/is-ip-3.1.0.tgz", + "integrity": "sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q==", + "dev": true, + "dependencies": { + "ip-regex": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.1.tgz", + "integrity": "sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.6.tgz", + "integrity": "sha512-bEVOqiRcvo3zO1+G2lVMy+gkkEm9Yh7cDMRusKKu5ZJKPUYSJwICTKZrNKHA2EbSP0Tu0+6B/emsYNHZyn6K8g==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-path-cwd": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-path-in-cwd": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-2.1.0.tgz", + "integrity": "sha512-rNocXHgipO+rvnP6dk3zI20RpOtrAM/kzbB258Uw5BWr3TpXi861yzjo16Dn4hUox07iw5AyeMLHWsujkjzvRQ==", + "dev": true, + "dependencies": { + "is-path-inside": "^2.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-path-inside": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-2.1.0.tgz", + "integrity": "sha512-wiyhTzfDWsvwAW53OBWF5zuvaOGlZ6PwYxAbPVDhpm+gM09xKQGjBq/8uYN12aDvMxnAnq3dxTyoSoRNmg5YFg==", + "dev": true, + "dependencies": { + "path-is-inside": "^1.0.2" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-resolvable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", + "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", + "dev": true + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.1.tgz", + "integrity": "sha512-IU0NmyknYZN0rChcKhRO1X8LYz5Isj/Fsqh8NJOSf+N/hCOTwy29F32Ik7a+QszE63IdvmwdTPDd6cZ5pg4cwA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, + "node_modules/is-weakref": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.1.tgz", + "integrity": "sha512-b2jKc2pQZjaeFYWEf7ScFj+Be1I+PXmlu572Q8coTXZ+LD/QQZ7ShPMst8h16riVgyXTQwUsFEl74mDvc/3MHQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "dev": true + }, + "node_modules/jest-worker": { + "version": "27.2.5", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.2.5.tgz", + "integrity": "sha512-HTjEPZtcNKZ4LnhSp02NEH4vE+5OpJ0EsOWYvGQpHgUMLngydESAAMH5Wd/asPf29+XUDQZszxpLg1BkIIA2aw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-base64": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz", + "integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==", + "dev": true + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "dev": true + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", + "dev": true + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", + "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.5" + }, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "dev": true, + "engines": [ + "node >=0.6.0" + ], + "dependencies": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/klona": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.4.tgz", + "integrity": "sha512-ZRbnvdg/NxqzC7L9Uyqzf4psi1OM4Cuc+sJAkQPjO6XkQIJTNbfK2Rsmbw8fx1p2mkZdp2FZYo2+LwXYY/uwIA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lilconfig": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.3.tgz", + "integrity": "sha512-EHKqr/+ZvdKCifpNrJCKxBTgk5XupZA3y/aCPY9mxfgBzmgh93Mt/WqjjQ38oMxXuvDokaKiM3lAgvSH2sjtHg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/lines-and-columns": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", + "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", + "dev": true + }, + "node_modules/loader-runner": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.2.0.tgz", + "integrity": "sha512-92+huvxMvYlMzMt0iIOukcwYBFpkYJdpl2xsZ7LrlayO7E8SOv+JJUEK17B/dJIHAOLMfh2dZZ/Y18WgmGtYNw==", + "dev": true, + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/loader-utils": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz", + "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==", + "dev": true, + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^1.0.1" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/loader-utils/node_modules/json5": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", + "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "dependencies": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "node_modules/lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", + "dev": true + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=", + "dev": true + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", + "dev": true + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", + "dev": true + }, + "node_modules/lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=", + "dev": true + }, + "node_modules/long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + }, + "node_modules/lower-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", + "dev": true, + "dependencies": { + "tslib": "^2.0.3" + } + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/map-obj": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", + "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", + "dev": true + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/memfs": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.3.0.tgz", + "integrity": "sha512-BEE62uMfKOavX3iG7GYX43QJ+hAeeWnwIAuJ/R6q96jaMtiLzhsxHJC8B1L7fK7Pt/vXDRwb3SG/yBpNGDPqzg==", + "dev": true, + "dependencies": { + "fs-monkey": "1.0.3" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/memory-fs": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.2.0.tgz", + "integrity": "sha1-8rslNovBIeORwlIN6Slpyu4KApA=", + "dev": true + }, + "node_modules/meow": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz", + "integrity": "sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==", + "dev": true, + "dependencies": { + "@types/minimist": "^1.2.0", + "camelcase-keys": "^6.2.2", + "decamelize": "^1.2.0", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "4.1.0", + "normalize-package-data": "^3.0.0", + "read-pkg-up": "^7.0.1", + "redent": "^3.0.0", + "trim-newlines": "^3.0.0", + "type-fest": "^0.18.0", + "yargs-parser": "^20.2.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=", + "dev": true + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/micromatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", + "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", + "dev": true, + "dependencies": { + "braces": "^3.0.1", + "picomatch": "^2.2.3" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "dev": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.50.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.50.0.tgz", + "integrity": "sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.33", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.33.tgz", + "integrity": "sha512-plLElXp7pRDd0bNZHw+nMd52vRYjLwQjygaNg7ddJ2uJtTlmnTCjWuPKxVu6//AdaRuME84SvLW91sIkBqGT0g==", + "dev": true, + "dependencies": { + "mime-db": "1.50.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/mini-css-extract-plugin": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.4.2.tgz", + "integrity": "sha512-ZmqShkn79D36uerdED+9qdo1ZYG8C1YsWvXu0UMJxurZnSdgz7gQKO2EGv8T55MhDqG3DYmGtizZNpM/UbTlcA==", + "dev": true, + "dependencies": { + "schema-utils": "^3.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", + "dev": true + }, + "node_modules/minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "node_modules/minimist-options": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", + "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", + "dev": true, + "dependencies": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0", + "kind-of": "^6.0.3" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/minipass": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.5.tgz", + "integrity": "sha512-+8NzxD82XQoNKNrl1d/FSi+X8wAEWR+sbYAfIvub4Nz0d22plFG72CEVVaufV8PNf4qSslFTD8VMOxNVhHCjTw==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "dev": true, + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/multicast-dns": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-6.2.3.tgz", + "integrity": "sha512-ji6J5enbMyGRHIAkAOu3WdV8nggqviKCEKtXcOqfphZZtQrmHKycfynJ2V7eVPUA4NhJ6V7Wf4TmGbTwKE9B6g==", + "dev": true, + "dependencies": { + "dns-packet": "^1.3.1", + "thunky": "^1.0.2" + }, + "bin": { + "multicast-dns": "cli.js" + } + }, + "node_modules/multicast-dns-service-types": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz", + "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=", + "dev": true + }, + "node_modules/nan": { + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", + "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==", + "dev": true + }, + "node_modules/nanocolors": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/nanocolors/-/nanocolors-0.1.12.tgz", + "integrity": "sha512-2nMHqg1x5PU+unxX7PGY7AuYxl2qDx7PSrTRjizr8sxdd3l/3hBuWWaki62qmtYm2U5i4Z5E7GbjlyDFhs9/EQ==", + "dev": true + }, + "node_modules/nanoid": { + "version": "3.1.30", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.30.tgz", + "integrity": "sha512-zJpuPDwOv8D2zq2WRoMe1HsfZthVewpel9CAvTfc/2mBD1uUT/agc5f7GHGWXlYkFvi1mVxe4IjvP2HNrop7nQ==", + "dev": true, + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "dev": true + }, + "node_modules/negotiator": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", + "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/no-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", + "dev": true, + "dependencies": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, + "node_modules/node-fetch": { + "version": "2.6.6", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.6.tgz", + "integrity": "sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + } + }, + "node_modules/node-forge": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", + "integrity": "sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==", + "dev": true, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/node-gyp": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-7.1.2.tgz", + "integrity": "sha512-CbpcIo7C3eMu3dL1c3d0xw449fHIGALIJsRP4DDPHpyiW8vcriNY7ubh9TE4zEKfSxscY7PjeFnshE7h75ynjQ==", + "dev": true, + "dependencies": { + "env-paths": "^2.2.0", + "glob": "^7.1.4", + "graceful-fs": "^4.2.3", + "nopt": "^5.0.0", + "npmlog": "^4.1.2", + "request": "^2.88.2", + "rimraf": "^3.0.2", + "semver": "^7.3.2", + "tar": "^6.0.2", + "which": "^2.0.2" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": ">= 10.12.0" + } + }, + "node_modules/node-gyp/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/node-gyp/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-releases": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.0.tgz", + "integrity": "sha512-aA87l0flFYMzCHpTM3DERFSYxc6lv/BltdbRTOMZuxZ0cwZCD3mejE5n9vLhSJCN++/eOqr77G1IO5uXxlQYWA==", + "dev": true + }, + "node_modules/node-sass": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-6.0.1.tgz", + "integrity": "sha512-f+Rbqt92Ful9gX0cGtdYwjTrWAaGURgaK5rZCWOgCNyGWusFYHhbqCCBoFBeat+HKETOU02AyTxNhJV0YZf2jQ==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "async-foreach": "^0.1.3", + "chalk": "^1.1.1", + "cross-spawn": "^7.0.3", + "gaze": "^1.0.0", + "get-stdin": "^4.0.1", + "glob": "^7.0.3", + "lodash": "^4.17.15", + "meow": "^9.0.0", + "nan": "^2.13.2", + "node-gyp": "^7.1.0", + "npmlog": "^4.0.0", + "request": "^2.88.0", + "sass-graph": "2.2.5", + "stdout-stream": "^1.4.0", + "true-case-path": "^1.0.2" + }, + "bin": { + "node-sass": "bin/node-sass" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/node-sass/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/node-sass/node_modules/ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/node-sass/node_modules/chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "dependencies": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/node-sass/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/node-sass/node_modules/supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/nopt": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", + "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", + "dev": true, + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/normalize-package-data": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", + "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^4.0.1", + "is-core-module": "^2.5.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/normalize-package-data/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npmlog": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", + "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", + "dev": true, + "dependencies": { + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" + } + }, + "node_modules/nth-check": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz", + "integrity": "sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==", + "dev": true, + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/num2fraction": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", + "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", + "dev": true + }, + "node_modules/number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.0.tgz", + "integrity": "sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-is": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", + "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz", + "integrity": "sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "define-properties": "^1.1.3", + "has-symbols": "^1.0.1", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.5.tgz", + "integrity": "sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.values": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.5.tgz", + "integrity": "sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/obuf": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", + "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", + "dev": true + }, + "node_modules/on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "dev": true, + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/open/-/open-8.3.0.tgz", + "integrity": "sha512-7INcPWb1UcOwSQxAXTnBJ+FxVV4MPs/X++FWWBtgY69/J5lc+tCteMt/oFK1MnkyHC4VILLa9ntmwKTwDR4Q9w==", + "dev": true, + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-event": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/p-event/-/p-event-4.2.0.tgz", + "integrity": "sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ==", + "dev": true, + "dependencies": { + "p-timeout": "^3.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "dependencies": { + "p-limit": "^1.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "dependencies": { + "p-try": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-locate/node_modules/p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-map": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", + "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/p-retry": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.1.tgz", + "integrity": "sha512-e2xXGNhZOZ0lfgR9kL34iGlU8N/KO0xZnQxVEwdeOvpqNDQfdnxIYizvWtK8RglUa3bGqI8g0R/BdfzLMxRkiA==", + "dev": true, + "dependencies": { + "@types/retry": "^0.12.0", + "retry": "^0.13.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-timeout": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", + "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", + "dev": true, + "dependencies": { + "p-finally": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/param-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", + "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", + "dev": true, + "dependencies": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/pascal-case": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", + "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", + "dev": true, + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", + "dev": true + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=", + "dev": true + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", + "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, + "dependencies": { + "pinkie": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pkg-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", + "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", + "dev": true, + "dependencies": { + "find-up": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/portfinder": { + "version": "1.0.28", + "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz", + "integrity": "sha512-Se+2isanIcEqf2XMHjyUKskczxbPH7dQnlMjXX6+dybayyHvAf/TCgyMRlzf/B6QDhAEFOGes0pzRo3by4AbMA==", + "dev": true, + "dependencies": { + "async": "^2.6.2", + "debug": "^3.1.1", + "mkdirp": "^0.5.5" + }, + "engines": { + "node": ">= 0.12.0" + } + }, + "node_modules/portfinder/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/portfinder/node_modules/mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "dev": true, + "dependencies": { + "minimist": "^1.2.5" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/postcss": { + "version": "8.3.9", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.3.9.tgz", + "integrity": "sha512-f/ZFyAKh9Dnqytx5X62jgjhhzttjZS7hMsohcI7HEI5tjELX/HxCy3EFhsRxyzGvrzFF+82XPvCS8T9TFleVJw==", + "dev": true, + "dependencies": { + "nanoid": "^3.1.28", + "picocolors": "^0.2.1", + "source-map-js": "^0.6.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-attribute-case-insensitive": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-4.0.2.tgz", + "integrity": "sha512-clkFxk/9pcdb4Vkn0hAHq3YnxBQ2p0CGD1dy24jN+reBck+EWxMbxSUqN4Yj7t0w8csl87K6p0gxBe1utkJsYA==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2", + "postcss-selector-parser": "^6.0.2" + } + }, + "node_modules/postcss-attribute-case-insensitive/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-attribute-case-insensitive/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-attribute-case-insensitive/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-calc": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.0.0.tgz", + "integrity": "sha512-5NglwDrcbiy8XXfPM11F3HeC6hoT9W7GUH/Zi5U/p7u3Irv4rHhdDcIZwG0llHXV4ftsBjpfWMXAnXNl4lnt8g==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.0.2" + }, + "peerDependencies": { + "postcss": "^8.2.2" + } + }, + "node_modules/postcss-color-functional-notation": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/postcss-color-functional-notation/-/postcss-color-functional-notation-2.0.1.tgz", + "integrity": "sha512-ZBARCypjEDofW4P6IdPVTLhDNXPRn8T2s1zHbZidW6rPaaZvcnCS2soYFIQJrMZSxiePJ2XIYTlcb2ztr/eT2g==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2", + "postcss-values-parser": "^2.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-color-functional-notation/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-color-functional-notation/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-color-functional-notation/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-color-gray": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-color-gray/-/postcss-color-gray-5.0.0.tgz", + "integrity": "sha512-q6BuRnAGKM/ZRpfDascZlIZPjvwsRye7UDNalqVz3s7GDxMtqPY6+Q871liNxsonUw8oC61OG+PSaysYpl1bnw==", + "dev": true, + "dependencies": { + "@csstools/convert-colors": "^1.4.0", + "postcss": "^7.0.5", + "postcss-values-parser": "^2.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-color-gray/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-color-gray/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-color-gray/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-color-hex-alpha": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/postcss-color-hex-alpha/-/postcss-color-hex-alpha-5.0.3.tgz", + "integrity": "sha512-PF4GDel8q3kkreVXKLAGNpHKilXsZ6xuu+mOQMHWHLPNyjiUBOr75sp5ZKJfmv1MCus5/DWUGcK9hm6qHEnXYw==", + "dev": true, + "dependencies": { + "postcss": "^7.0.14", + "postcss-values-parser": "^2.0.1" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-color-hex-alpha/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-color-hex-alpha/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-color-hex-alpha/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-color-mod-function": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/postcss-color-mod-function/-/postcss-color-mod-function-3.0.3.tgz", + "integrity": "sha512-YP4VG+xufxaVtzV6ZmhEtc+/aTXH3d0JLpnYfxqTvwZPbJhWqp8bSY3nfNzNRFLgB4XSaBA82OE4VjOOKpCdVQ==", + "dev": true, + "dependencies": { + "@csstools/convert-colors": "^1.4.0", + "postcss": "^7.0.2", + "postcss-values-parser": "^2.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-color-mod-function/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-color-mod-function/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-color-mod-function/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-color-rebeccapurple": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-4.0.1.tgz", + "integrity": "sha512-aAe3OhkS6qJXBbqzvZth2Au4V3KieR5sRQ4ptb2b2O8wgvB3SJBsdG+jsn2BZbbwekDG8nTfcCNKcSfe/lEy8g==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2", + "postcss-values-parser": "^2.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-color-rebeccapurple/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-color-rebeccapurple/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-color-rebeccapurple/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-colormin": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.2.0.tgz", + "integrity": "sha512-+HC6GfWU3upe5/mqmxuqYZ9B2Wl4lcoUUNkoaX59nEWV4EtADCMiBqui111Bu8R8IvaZTmqmxrqOAqjbHIwXPw==", + "dev": true, + "dependencies": { + "browserslist": "^4.16.6", + "caniuse-api": "^3.0.0", + "colord": "^2.0.1", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-convert-values": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.0.1.tgz", + "integrity": "sha512-C3zR1Do2BkKkCgC0g3sF8TS0koF2G+mN8xxayZx3f10cIRmTaAnpgpRQZjNekTZxM2ciSPoh2IWJm0VZx8NoQg==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-custom-media": { + "version": "7.0.8", + "resolved": "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-7.0.8.tgz", + "integrity": "sha512-c9s5iX0Ge15o00HKbuRuTqNndsJUbaXdiNsksnVH8H4gdc+zbLzr/UasOwNG6CTDpLFekVY4672eWdiiWu2GUg==", + "dev": true, + "dependencies": { + "postcss": "^7.0.14" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-custom-media/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-custom-media/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-custom-media/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-custom-properties": { + "version": "8.0.11", + "resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-8.0.11.tgz", + "integrity": "sha512-nm+o0eLdYqdnJ5abAJeXp4CEU1c1k+eB2yMCvhgzsds/e0umabFrN6HoTy/8Q4K5ilxERdl/JD1LO5ANoYBeMA==", + "dev": true, + "dependencies": { + "postcss": "^7.0.17", + "postcss-values-parser": "^2.0.1" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-custom-properties/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-custom-properties/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-custom-properties/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-custom-selectors": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-custom-selectors/-/postcss-custom-selectors-5.1.2.tgz", + "integrity": "sha512-DSGDhqinCqXqlS4R7KGxL1OSycd1lydugJ1ky4iRXPHdBRiozyMHrdu0H3o7qNOCiZwySZTUI5MV0T8QhCLu+w==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2", + "postcss-selector-parser": "^5.0.0-rc.3" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-custom-selectors/node_modules/cssesc": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", + "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-custom-selectors/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-custom-selectors/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-custom-selectors/node_modules/postcss-selector-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", + "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", + "dev": true, + "dependencies": { + "cssesc": "^2.0.0", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-custom-selectors/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-dir-pseudo-class": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-dir-pseudo-class/-/postcss-dir-pseudo-class-5.0.0.tgz", + "integrity": "sha512-3pm4oq8HYWMZePJY+5ANriPs3P07q+LW6FAdTlkFH2XqDdP4HeeJYMOzn0HYLhRSjBO3fhiqSwwU9xEULSrPgw==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2", + "postcss-selector-parser": "^5.0.0-rc.3" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/postcss-dir-pseudo-class/node_modules/cssesc": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", + "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-dir-pseudo-class/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-dir-pseudo-class/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-dir-pseudo-class/node_modules/postcss-selector-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", + "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", + "dev": true, + "dependencies": { + "cssesc": "^2.0.0", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-dir-pseudo-class/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-discard-comments": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.0.1.tgz", + "integrity": "sha512-lgZBPTDvWrbAYY1v5GYEv8fEO/WhKOu/hmZqmCYfrpD6eyDWWzAOsl2rF29lpvziKO02Gc5GJQtlpkTmakwOWg==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-duplicates": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.0.1.tgz", + "integrity": "sha512-svx747PWHKOGpAXXQkCc4k/DsWo+6bc5LsVrAsw+OU+Ibi7klFZCyX54gjYzX4TH+f2uzXjRviLARxkMurA2bA==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-empty": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.0.1.tgz", + "integrity": "sha512-vfU8CxAQ6YpMxV2SvMcMIyF2LX1ZzWpy0lqHDsOdaKKLQVQGVP1pzhrI9JlsO65s66uQTfkQBKBD/A5gp9STFw==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-overridden": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.0.1.tgz", + "integrity": "sha512-Y28H7y93L2BpJhrdUR2SR2fnSsT+3TVx1NmVQLbcnZWwIUpJ7mfcTC6Za9M2PG6w8j7UQRfzxqn8jU2VwFxo3Q==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-double-position-gradients": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-1.0.0.tgz", + "integrity": "sha512-G+nV8EnQq25fOI8CH/B6krEohGWnF5+3A6H/+JEpOncu5dCnkS1QQ6+ct3Jkaepw1NGVqqOZH6lqrm244mCftA==", + "dev": true, + "dependencies": { + "postcss": "^7.0.5", + "postcss-values-parser": "^2.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-double-position-gradients/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-double-position-gradients/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-double-position-gradients/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-env-function": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/postcss-env-function/-/postcss-env-function-2.0.2.tgz", + "integrity": "sha512-rwac4BuZlITeUbiBq60h/xbLzXY43qOsIErngWa4l7Mt+RaSkT7QBjXVGTcBHupykkblHMDrBFh30zchYPaOUw==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2", + "postcss-values-parser": "^2.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-env-function/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-env-function/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-env-function/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-focus-visible": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-focus-visible/-/postcss-focus-visible-4.0.0.tgz", + "integrity": "sha512-Z5CkWBw0+idJHSV6+Bgf2peDOFf/x4o+vX/pwcNYrWpXFrSfTkQ3JQ1ojrq9yS+upnAlNRHeg8uEwFTgorjI8g==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-focus-visible/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-focus-visible/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-focus-visible/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-focus-within": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-focus-within/-/postcss-focus-within-3.0.0.tgz", + "integrity": "sha512-W0APui8jQeBKbCGZudW37EeMCjDeVxKgiYfIIEo8Bdh5SpB9sxds/Iq8SEuzS0Q4YFOlG7EPFulbbxujpkrV2w==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-focus-within/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-focus-within/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-focus-within/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-font-variant": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-font-variant/-/postcss-font-variant-4.0.1.tgz", + "integrity": "sha512-I3ADQSTNtLTTd8uxZhtSOrTCQ9G4qUVKPjHiDk0bV75QSxXjVWiJVJ2VLdspGUi9fbW9BcjKJoRvxAH1pckqmA==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2" + } + }, + "node_modules/postcss-font-variant/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-font-variant/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-font-variant/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-gap-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postcss-gap-properties/-/postcss-gap-properties-2.0.0.tgz", + "integrity": "sha512-QZSqDaMgXCHuHTEzMsS2KfVDOq7ZFiknSpkrPJY6jmxbugUPTuSzs/vuE5I3zv0WAS+3vhrlqhijiprnuQfzmg==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-gap-properties/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-gap-properties/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-gap-properties/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-image-set-function": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/postcss-image-set-function/-/postcss-image-set-function-3.0.1.tgz", + "integrity": "sha512-oPTcFFip5LZy8Y/whto91L9xdRHCWEMs3e1MdJxhgt4jy2WYXfhkng59fH5qLXSCPN8k4n94p1Czrfe5IOkKUw==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2", + "postcss-values-parser": "^2.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-image-set-function/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-image-set-function/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-image-set-function/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-initial": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/postcss-initial/-/postcss-initial-3.0.4.tgz", + "integrity": "sha512-3RLn6DIpMsK1l5UUy9jxQvoDeUN4gP939tDcKUHD/kM8SGSKbFAnvkpFpj3Bhtz3HGk1jWY5ZNWX6mPta5M9fg==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2" + } + }, + "node_modules/postcss-initial/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-initial/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-initial/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-lab-function": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/postcss-lab-function/-/postcss-lab-function-2.0.1.tgz", + "integrity": "sha512-whLy1IeZKY+3fYdqQFuDBf8Auw+qFuVnChWjmxm/UhHWqNHZx+B99EwxTvGYmUBqe3Fjxs4L1BoZTJmPu6usVg==", + "dev": true, + "dependencies": { + "@csstools/convert-colors": "^1.4.0", + "postcss": "^7.0.2", + "postcss-values-parser": "^2.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-lab-function/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-lab-function/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-lab-function/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-loader": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.2.0.tgz", + "integrity": "sha512-H9hv447QjQJVDbHj3OUdciyAXY3v5+UDduzEytAlZCVHCpNAAg/mCSwhYYqZr9BiGYhmYspU8QXxZwiHTLn3yA==", + "dev": true, + "dependencies": { + "cosmiconfig": "^7.0.0", + "klona": "^2.0.4", + "semver": "^7.3.5" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "postcss": "^7.0.0 || ^8.0.1", + "webpack": "^5.0.0" + } + }, + "node_modules/postcss-loader/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/postcss-logical": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-logical/-/postcss-logical-3.0.0.tgz", + "integrity": "sha512-1SUKdJc2vuMOmeItqGuNaC+N8MzBWFWEkAnRnLpFYj1tGGa7NqyVBujfRtgNa2gXR+6RkGUiB2O5Vmh7E2RmiA==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-logical/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-logical/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-logical/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-media-minmax": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-media-minmax/-/postcss-media-minmax-4.0.0.tgz", + "integrity": "sha512-fo9moya6qyxsjbFAYl97qKO9gyre3qvbMnkOZeZwlsW6XYFsvs2DMGDlchVLfAd8LHPZDxivu/+qW2SMQeTHBw==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-media-minmax/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-media-minmax/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-media-minmax/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-merge-longhand": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.0.2.tgz", + "integrity": "sha512-BMlg9AXSI5G9TBT0Lo/H3PfUy63P84rVz3BjCFE9e9Y9RXQZD3+h3YO1kgTNsNJy7bBc1YQp8DmSnwLIW5VPcw==", + "dev": true, + "dependencies": { + "css-color-names": "^1.0.1", + "postcss-value-parser": "^4.1.0", + "stylehacks": "^5.0.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-merge-rules": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.0.2.tgz", + "integrity": "sha512-5K+Md7S3GwBewfB4rjDeol6V/RZ8S+v4B66Zk2gChRqLTCC8yjnHQ601omj9TKftS19OPGqZ/XzoqpzNQQLwbg==", + "dev": true, + "dependencies": { + "browserslist": "^4.16.6", + "caniuse-api": "^3.0.0", + "cssnano-utils": "^2.0.1", + "postcss-selector-parser": "^6.0.5", + "vendors": "^1.0.3" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-font-values": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.0.1.tgz", + "integrity": "sha512-7JS4qIsnqaxk+FXY1E8dHBDmraYFWmuL6cgt0T1SWGRO5bzJf8sUoelwa4P88LEWJZweHevAiDKxHlofuvtIoA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-gradients": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.0.2.tgz", + "integrity": "sha512-7Do9JP+wqSD6Prittitt2zDLrfzP9pqKs2EcLX7HJYxsxCOwrrcLt4x/ctQTsiOw+/8HYotAoqNkrzItL19SdQ==", + "dev": true, + "dependencies": { + "colord": "^2.6", + "cssnano-utils": "^2.0.1", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-params": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.0.1.tgz", + "integrity": "sha512-4RUC4k2A/Q9mGco1Z8ODc7h+A0z7L7X2ypO1B6V8057eVK6mZ6xwz6QN64nHuHLbqbclkX1wyzRnIrdZehTEHw==", + "dev": true, + "dependencies": { + "alphanum-sort": "^1.0.2", + "browserslist": "^4.16.0", + "cssnano-utils": "^2.0.1", + "postcss-value-parser": "^4.1.0", + "uniqs": "^2.0.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-selectors": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.1.0.tgz", + "integrity": "sha512-NzGBXDa7aPsAcijXZeagnJBKBPMYLaJJzB8CQh6ncvyl2sIndLVWfbcDi0SBjRWk5VqEjXvf8tYwzoKf4Z07og==", + "dev": true, + "dependencies": { + "alphanum-sort": "^1.0.2", + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-modules-extract-imports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", + "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-local-by-default": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz", + "integrity": "sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==", + "dev": true, + "dependencies": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-scope": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", + "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", + "dev": true, + "dependencies": { + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-values": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", + "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", + "dev": true, + "dependencies": { + "icss-utils": "^5.0.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-nesting": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-7.0.1.tgz", + "integrity": "sha512-FrorPb0H3nuVq0Sff7W2rnc3SmIcruVC6YwpcS+k687VxyxO33iE1amna7wHuRVzM8vfiYofXSBHNAZ3QhLvYg==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-nesting/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-nesting/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-nesting/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-normalize-charset": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.0.1.tgz", + "integrity": "sha512-6J40l6LNYnBdPSk+BHZ8SF+HAkS4q2twe5jnocgd+xWpz/mx/5Sa32m3W1AA8uE8XaXN+eg8trIlfu8V9x61eg==", + "dev": true, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-display-values": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.0.1.tgz", + "integrity": "sha512-uupdvWk88kLDXi5HEyI9IaAJTE3/Djbcrqq8YgjvAVuzgVuqIk3SuJWUisT2gaJbZm1H9g5k2w1xXilM3x8DjQ==", + "dev": true, + "dependencies": { + "cssnano-utils": "^2.0.1", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-positions": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.0.1.tgz", + "integrity": "sha512-rvzWAJai5xej9yWqlCb1OWLd9JjW2Ex2BCPzUJrbaXmtKtgfL8dBMOOMTX6TnvQMtjk3ei1Lswcs78qKO1Skrg==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-repeat-style": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.0.1.tgz", + "integrity": "sha512-syZ2itq0HTQjj4QtXZOeefomckiV5TaUO6ReIEabCh3wgDs4Mr01pkif0MeVwKyU/LHEkPJnpwFKRxqWA/7O3w==", + "dev": true, + "dependencies": { + "cssnano-utils": "^2.0.1", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-string": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.0.1.tgz", + "integrity": "sha512-Ic8GaQ3jPMVl1OEn2U//2pm93AXUcF3wz+OriskdZ1AOuYV25OdgS7w9Xu2LO5cGyhHCgn8dMXh9bO7vi3i9pA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-timing-functions": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.0.1.tgz", + "integrity": "sha512-cPcBdVN5OsWCNEo5hiXfLUnXfTGtSFiBU9SK8k7ii8UD7OLuznzgNRYkLZow11BkQiiqMcgPyh4ZqXEEUrtQ1Q==", + "dev": true, + "dependencies": { + "cssnano-utils": "^2.0.1", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-unicode": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.0.1.tgz", + "integrity": "sha512-kAtYD6V3pK0beqrU90gpCQB7g6AOfP/2KIPCVBKJM2EheVsBQmx/Iof+9zR9NFKLAx4Pr9mDhogB27pmn354nA==", + "dev": true, + "dependencies": { + "browserslist": "^4.16.0", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-url": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.0.2.tgz", + "integrity": "sha512-k4jLTPUxREQ5bpajFQZpx8bCF2UrlqOTzP9kEqcEnOfwsRshWs2+oAFIHfDQB8GO2PaUaSE0NlTAYtbluZTlHQ==", + "dev": true, + "dependencies": { + "is-absolute-url": "^3.0.3", + "normalize-url": "^6.0.1", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-whitespace": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.0.1.tgz", + "integrity": "sha512-iPklmI5SBnRvwceb/XH568yyzK0qRVuAG+a1HFUsFRf11lEJTiQQa03a4RSCQvLKdcpX7XsI1Gen9LuLoqwiqA==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-ordered-values": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.0.2.tgz", + "integrity": "sha512-8AFYDSOYWebJYLyJi3fyjl6CqMEG/UVworjiyK1r573I56kb3e879sCJLGvR3merj+fAdPpVplXKQZv+ey6CgQ==", + "dev": true, + "dependencies": { + "cssnano-utils": "^2.0.1", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-overflow-shorthand": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postcss-overflow-shorthand/-/postcss-overflow-shorthand-2.0.0.tgz", + "integrity": "sha512-aK0fHc9CBNx8jbzMYhshZcEv8LtYnBIRYQD5i7w/K/wS9c2+0NSR6B3OVMu5y0hBHYLcMGjfU+dmWYNKH0I85g==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-overflow-shorthand/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-overflow-shorthand/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-overflow-shorthand/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-page-break": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postcss-page-break/-/postcss-page-break-2.0.0.tgz", + "integrity": "sha512-tkpTSrLpfLfD9HvgOlJuigLuk39wVTbbd8RKcy8/ugV2bNBUW3xU+AIqyxhDrQr1VUj1RmyJrBn1YWrqUm9zAQ==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2" + } + }, + "node_modules/postcss-page-break/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-page-break/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-page-break/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-place": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-place/-/postcss-place-4.0.1.tgz", + "integrity": "sha512-Zb6byCSLkgRKLODj/5mQugyuj9bvAAw9LqJJjgwz5cYryGeXfFZfSXoP1UfveccFmeq0b/2xxwcTEVScnqGxBg==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2", + "postcss-values-parser": "^2.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-place/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-place/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-place/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-preset-env": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-6.7.0.tgz", + "integrity": "sha512-eU4/K5xzSFwUFJ8hTdTQzo2RBLbDVt83QZrAvI07TULOkmyQlnYlpwep+2yIK+K+0KlZO4BvFcleOCCcUtwchg==", + "dev": true, + "dependencies": { + "autoprefixer": "^9.6.1", + "browserslist": "^4.6.4", + "caniuse-lite": "^1.0.30000981", + "css-blank-pseudo": "^0.1.4", + "css-has-pseudo": "^0.10.0", + "css-prefers-color-scheme": "^3.1.1", + "cssdb": "^4.4.0", + "postcss": "^7.0.17", + "postcss-attribute-case-insensitive": "^4.0.1", + "postcss-color-functional-notation": "^2.0.1", + "postcss-color-gray": "^5.0.0", + "postcss-color-hex-alpha": "^5.0.3", + "postcss-color-mod-function": "^3.0.3", + "postcss-color-rebeccapurple": "^4.0.1", + "postcss-custom-media": "^7.0.8", + "postcss-custom-properties": "^8.0.11", + "postcss-custom-selectors": "^5.1.2", + "postcss-dir-pseudo-class": "^5.0.0", + "postcss-double-position-gradients": "^1.0.0", + "postcss-env-function": "^2.0.2", + "postcss-focus-visible": "^4.0.0", + "postcss-focus-within": "^3.0.0", + "postcss-font-variant": "^4.0.0", + "postcss-gap-properties": "^2.0.0", + "postcss-image-set-function": "^3.0.1", + "postcss-initial": "^3.0.0", + "postcss-lab-function": "^2.0.1", + "postcss-logical": "^3.0.0", + "postcss-media-minmax": "^4.0.0", + "postcss-nesting": "^7.0.0", + "postcss-overflow-shorthand": "^2.0.0", + "postcss-page-break": "^2.0.0", + "postcss-place": "^4.0.1", + "postcss-pseudo-class-any-link": "^6.0.0", + "postcss-replace-overflow-wrap": "^3.0.0", + "postcss-selector-matches": "^4.0.0", + "postcss-selector-not": "^4.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-preset-env/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-preset-env/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-preset-env/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-pseudo-class-any-link": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-6.0.0.tgz", + "integrity": "sha512-lgXW9sYJdLqtmw23otOzrtbDXofUdfYzNm4PIpNE322/swES3VU9XlXHeJS46zT2onFO7V1QFdD4Q9LiZj8mew==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2", + "postcss-selector-parser": "^5.0.0-rc.3" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/postcss-pseudo-class-any-link/node_modules/cssesc": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", + "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", + "dev": true, + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-pseudo-class-any-link/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-pseudo-class-any-link/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-pseudo-class-any-link/node_modules/postcss-selector-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", + "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", + "dev": true, + "dependencies": { + "cssesc": "^2.0.0", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-pseudo-class-any-link/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-reduce-initial": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.0.1.tgz", + "integrity": "sha512-zlCZPKLLTMAqA3ZWH57HlbCjkD55LX9dsRyxlls+wfuRfqCi5mSlZVan0heX5cHr154Dq9AfbH70LyhrSAezJw==", + "dev": true, + "dependencies": { + "browserslist": "^4.16.0", + "caniuse-api": "^3.0.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-reduce-transforms": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.0.1.tgz", + "integrity": "sha512-a//FjoPeFkRuAguPscTVmRQUODP+f3ke2HqFNgGPwdYnpeC29RZdCBvGRGTsKpMURb/I3p6jdKoBQ2zI+9Q7kA==", + "dev": true, + "dependencies": { + "cssnano-utils": "^2.0.1", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-replace-overflow-wrap": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-3.0.0.tgz", + "integrity": "sha512-2T5hcEHArDT6X9+9dVSPQdo7QHzG4XKclFT8rU5TzJPDN7RIRTbO9c4drUISOVemLj03aezStHCR2AIcr8XLpw==", + "dev": true, + "dependencies": { + "postcss": "^7.0.2" + } + }, + "node_modules/postcss-replace-overflow-wrap/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-replace-overflow-wrap/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-replace-overflow-wrap/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-selector-matches": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-matches/-/postcss-selector-matches-4.0.0.tgz", + "integrity": "sha512-LgsHwQR/EsRYSqlwdGzeaPKVT0Ml7LAT6E75T8W8xLJY62CE4S/l03BWIt3jT8Taq22kXP08s2SfTSzaraoPww==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "postcss": "^7.0.2" + } + }, + "node_modules/postcss-selector-matches/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-selector-matches/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-selector-matches/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-selector-not": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-4.0.1.tgz", + "integrity": "sha512-YolvBgInEK5/79C+bdFMyzqTg6pkYqDbzZIST/PDMqa/o3qtXenD05apBG2jLgT0/BQ77d4U2UK12jWpilqMAQ==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "postcss": "^7.0.2" + } + }, + "node_modules/postcss-selector-not/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/postcss-selector-not/node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/postcss-selector-not/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.6", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.6.tgz", + "integrity": "sha512-9LXrvaaX3+mcv5xkg5kFwqSzSH1JIObIx51PrndZwlmznwXRfxMddDvo9gve3gVR8ZTKgoFDdWkbRFmEhT4PMg==", + "dev": true, + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-svgo": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.0.2.tgz", + "integrity": "sha512-YzQuFLZu3U3aheizD+B1joQ94vzPfE6BNUcSYuceNxlVnKKsOtdo6hL9/zyC168Q8EwfLSgaDSalsUGa9f2C0A==", + "dev": true, + "dependencies": { + "postcss-value-parser": "^4.1.0", + "svgo": "^2.3.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-unique-selectors": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.0.1.tgz", + "integrity": "sha512-gwi1NhHV4FMmPn+qwBNuot1sG1t2OmacLQ/AX29lzyggnjd+MnVD5uqQmpXO3J17KGL2WAxQruj1qTd3H0gG/w==", + "dev": true, + "dependencies": { + "alphanum-sort": "^1.0.2", + "postcss-selector-parser": "^6.0.5", + "uniqs": "^2.0.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.1.0.tgz", + "integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==", + "dev": true + }, + "node_modules/postcss-values-parser": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/postcss-values-parser/-/postcss-values-parser-2.0.1.tgz", + "integrity": "sha512-2tLuBsA6P4rYTNKCXYG/71C7j1pU6pK503suYOmn4xYrQIzW+opD+7FAFNuGSdZC/3Qfy334QbeMu7MEb8gOxg==", + "dev": true, + "dependencies": { + "flatten": "^1.0.2", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + }, + "engines": { + "node": ">=6.14.4" + } + }, + "node_modules/postcss/node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.4.1.tgz", + "integrity": "sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "dependencies": { + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/pretty-error": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-3.0.4.tgz", + "integrity": "sha512-ytLFLfv1So4AO1UkoBF6GXQgJRaKbiSiGFICaOPNwQ3CMvBvXpLRubeQWyPGnsbV/t9ml9qto6IeCsho0aEvwQ==", + "dev": true, + "dependencies": { + "lodash": "^4.17.20", + "renderkid": "^2.0.6" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "dev": true, + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/proxy-addr/node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/psl": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", + "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", + "dev": true + }, + "node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/querystring": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", + "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", + "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", + "dev": true, + "engines": { + "node": ">=0.4.x" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/quick-lru": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", + "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", + "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", + "dev": true, + "dependencies": { + "bytes": "3.1.0", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/raw-body/node_modules/bytes": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", + "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "dependencies": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg/node_modules/hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "node_modules/read-pkg/node_modules/normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "node_modules/read-pkg/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/rechoir": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", + "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", + "dev": true, + "dependencies": { + "resolve": "^1.9.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/redent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "dev": true, + "dependencies": { + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true + }, + "node_modules/regenerate-unicode-properties": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-9.0.0.tgz", + "integrity": "sha512-3E12UeNSPfjrgwjkR81m5J7Aw/T55Tu7nUyZVQYCKEOs+2dkxEY+DpPtZzO4YruuiPb7NkYLVcyJC4+zCbk5pA==", + "dev": true, + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.9", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", + "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", + "dev": true + }, + "node_modules/regenerator-transform": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.5.tgz", + "integrity": "sha512-eOf6vka5IO151Jfsw2NO9WpGX58W6wWmefK3I1zEGr0lOD0u8rwPaNqQL1aRxUaxLeKO3ArNh3VYg1KbaD+FFw==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.8.4" + } + }, + "node_modules/regexp.prototype.flags": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.3.1.tgz", + "integrity": "sha512-JiBdRBq91WlY7uRJ0ds7R+dU02i6LKi8r3BuQhNXn+kmeLN+EfHhfjqMRis1zJxnlu88hq/4dx0P2OP3APRTOA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexpp": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, + "node_modules/regexpu-core": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.8.0.tgz", + "integrity": "sha512-1F6bYsoYiz6is+oz70NWur2Vlh9KWtswuRuzJOfeYUrfPX2o8n74AnUVaOGDbUqVGO9fNHu48/pjJO4sNVwsOg==", + "dev": true, + "dependencies": { + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^9.0.0", + "regjsgen": "^0.5.2", + "regjsparser": "^0.7.0", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsgen": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.2.tgz", + "integrity": "sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A==", + "dev": true + }, + "node_modules/regjsparser": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.7.0.tgz", + "integrity": "sha512-A4pcaORqmNMDVwUjWoTzuhwMGpP+NykpfqAsEgI1FSH/EzC7lrN5TMd+kN8YCovX+jMpu8eaqXgXPCa0g8FQNQ==", + "dev": true, + "dependencies": { + "jsesc": "~0.5.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + } + }, + "node_modules/relateurl": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", + "integrity": "sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/renderkid": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-2.0.7.tgz", + "integrity": "sha512-oCcFyxaMrKsKcTY59qnCAtmDVSLfPbrv6A3tVbPdFMMrv5jaK10V6m40cKsoPNhAqN6rmHW9sswW4o3ruSrwUQ==", + "dev": true, + "dependencies": { + "css-select": "^4.1.3", + "dom-converter": "^0.2.0", + "htmlparser2": "^6.1.0", + "lodash": "^4.17.21", + "strip-ansi": "^3.0.1" + } + }, + "node_modules/renderkid/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/renderkid/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/request": { + "version": "2.88.2", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", + "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", + "dev": true, + "dependencies": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true + }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", + "dev": true + }, + "node_modules/resolve": { + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", + "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", + "dev": true, + "dependencies": { + "is-core-module": "^2.2.0", + "path-parse": "^1.0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-cwd/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "node_modules/sass-graph": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.5.tgz", + "integrity": "sha512-VFWDAHOe6mRuT4mZRd4eKE+d8Uedrk6Xnh7Sh9b4NGufQLQjOrvf/MQoOdx+0s92L89FeyUUNfU597j/3uNpag==", + "dev": true, + "dependencies": { + "glob": "^7.0.0", + "lodash": "^4.0.0", + "scss-tokenizer": "^0.2.3", + "yargs": "^13.3.2" + }, + "bin": { + "sassgraph": "bin/sassgraph" + } + }, + "node_modules/sass-loader": { + "version": "12.2.0", + "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.2.0.tgz", + "integrity": "sha512-qducnp5vSV+8A8MZxuH6zV0MUg4MOVISScl2wDTCAn/2WJX+9Auxh92O/rnkdR2bvi5QxZBafnzkzRrWGZvm7w==", + "dev": true, + "dependencies": { + "klona": "^2.0.4", + "neo-async": "^2.6.2" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "fibers": ">= 3.1.0", + "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0", + "sass": "^1.3.0", + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "fibers": { + "optional": true + }, + "node-sass": { + "optional": true + }, + "sass": { + "optional": true + } + } + }, + "node_modules/schema-utils": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", + "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.5", + "ajv": "^6.12.4", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/scss-tokenizer": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz", + "integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=", + "dev": true, + "dependencies": { + "js-base64": "^2.1.8", + "source-map": "^0.4.2" + } + }, + "node_modules/scss-tokenizer/node_modules/source-map": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", + "dev": true, + "dependencies": { + "amdefine": ">=0.0.4" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/seedrandom": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/seedrandom/-/seedrandom-2.4.3.tgz", + "integrity": "sha1-JDhQTa0zkXMUv/GKxNeU8W1qrsw=" + }, + "node_modules/select-hose": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", + "integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=", + "dev": true + }, + "node_modules/selfsigned": { + "version": "1.10.11", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-1.10.11.tgz", + "integrity": "sha512-aVmbPOfViZqOZPgRBT0+3u4yZFHpmnIghLMlAcb5/xhp5ZtB/RVnKhz5vl2M32CLXAqR4kha9zfhNg0Lf/sxKA==", + "dev": true, + "dependencies": { + "node-forge": "^0.10.0" + } + }, + "node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", + "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", + "dev": true, + "dependencies": { + "debug": "2.6.9", + "depd": "~1.1.2", + "destroy": "~1.0.4", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "~1.7.2", + "mime": "1.6.0", + "ms": "2.1.1", + "on-finished": "~2.3.0", + "range-parser": "~1.2.1", + "statuses": "~1.5.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "dev": true + }, + "node_modules/serialize-javascript": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", + "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=", + "dev": true, + "dependencies": { + "accepts": "~1.3.4", + "batch": "0.6.1", + "debug": "2.6.9", + "escape-html": "~1.0.3", + "http-errors": "~1.6.2", + "mime-types": "~2.1.17", + "parseurl": "~1.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/serve-index/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/serve-index/node_modules/http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", + "dev": true, + "dependencies": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "node_modules/serve-index/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/serve-index/node_modules/setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", + "dev": true + }, + "node_modules/serve-static": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", + "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", + "dev": true, + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.17.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "node_modules/setprototypeof": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", + "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==", + "dev": true + }, + "node_modules/shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.5.tgz", + "integrity": "sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, + "node_modules/slice-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/slice-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/slice-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/sockjs": { + "version": "0.3.21", + "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.21.tgz", + "integrity": "sha512-DhbPFGpxjc6Z3I+uX07Id5ZO2XwYsWOrYjaSeieES78cq+JaJvVe5q/m1uvjIQhXinhIeCFRH6JgXe+mvVMyXw==", + "dev": true, + "dependencies": { + "faye-websocket": "^0.11.3", + "uuid": "^3.4.0", + "websocket-driver": "^0.7.4" + } + }, + "node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-0.6.2.tgz", + "integrity": "sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.20", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.20.tgz", + "integrity": "sha512-n1lZZ8Ve4ksRqizaBQgxXDgKwttHDhyfQjA6YZZn8+AroHbsIz+JjwxQDxbp+7y5OYCI8t1Yk7etjD9CRd2hIw==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/spdx-correct": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", + "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", + "dev": true, + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.10.tgz", + "integrity": "sha512-oie3/+gKf7QtpitB0LYLETe+k8SifzsX4KixvpOsbI6S0kRiRQ5MKOio8eMSAKQ17N06+wdEOXRiId+zOxo0hA==", + "dev": true + }, + "node_modules/spdy": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", + "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", + "dev": true, + "dependencies": { + "debug": "^4.1.0", + "handle-thing": "^2.0.0", + "http-deceiver": "^1.2.7", + "select-hose": "^2.0.0", + "spdy-transport": "^3.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/spdy-transport": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", + "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", + "dev": true, + "dependencies": { + "debug": "^4.1.0", + "detect-node": "^2.0.4", + "hpack.js": "^2.1.6", + "obuf": "^1.1.2", + "readable-stream": "^3.0.6", + "wbuf": "^1.7.3" + } + }, + "node_modules/spdy-transport/node_modules/readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "node_modules/sshpk": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", + "dev": true, + "dependencies": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + }, + "bin": { + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "dev": true + }, + "node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/stdout-stream": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.1.tgz", + "integrity": "sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA==", + "dev": true, + "dependencies": { + "readable-stream": "^2.0.1" + } + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "dependencies": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string-width/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string-width/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz", + "integrity": "sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz", + "integrity": "sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dev": true, + "dependencies": { + "min-indent": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/style-loader": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-3.3.0.tgz", + "integrity": "sha512-szANub7ksJtQioJYtpbWwh1hUl99uK15n5HDlikeCRil/zYMZgSxucHddyF/4A3qJMUiAjPhFowrrQuNMA7jwQ==", + "dev": true, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/stylehacks": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.0.1.tgz", + "integrity": "sha512-Es0rVnHIqbWzveU1b24kbw92HsebBepxfcqe5iix7t9j0PQqhs0IxXVXv0pY2Bxa08CgMkzD6OWql7kbGOuEdA==", + "dev": true, + "dependencies": { + "browserslist": "^4.16.0", + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/svgo": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.7.0.tgz", + "integrity": "sha512-aDLsGkre4fTDCWvolyW+fs8ZJFABpzLXbtdK1y71CKnHzAnpDxKXPj2mNKj+pyOXUCzFHzuxRJ94XOFygOWV3w==", + "dev": true, + "dependencies": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "nanocolors": "^0.1.12", + "stable": "^0.1.8" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/svgo/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/table": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/table/-/table-6.7.2.tgz", + "integrity": "sha512-UFZK67uvyNivLeQbVtkiUs8Uuuxv24aSL4/Vil2PJVtMgU8Lx0CYkP12uCGa3kjyQzOSgV1+z9Wkb82fCGsO0g==", + "dev": true, + "dependencies": { + "ajv": "^8.0.1", + "lodash.clonedeep": "^4.5.0", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/table/node_modules/ajv": { + "version": "8.6.3", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.3.tgz", + "integrity": "sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/table/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/table/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/table/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/table/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tapable": { + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.1.10.tgz", + "integrity": "sha1-KcNXB8K3DlDQdIK10gLo7URtr9Q=", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/tar": { + "version": "6.1.11", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", + "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", + "dev": true, + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^3.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/terser": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.0.tgz", + "integrity": "sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==", + "dev": true, + "dependencies": { + "commander": "^2.20.0", + "source-map": "~0.6.1", + "source-map-support": "~0.5.12" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.2.4.tgz", + "integrity": "sha512-E2CkNMN+1cho04YpdANyRrn8CyN4yMy+WdFKZIySFZrGXZxJwJP6PMNGGc/Mcr6qygQHUUqRxnAPmi0M9f00XA==", + "dev": true, + "dependencies": { + "jest-worker": "^27.0.6", + "p-limit": "^3.1.0", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.0", + "source-map": "^0.6.1", + "terser": "^5.7.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser-webpack-plugin/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/terser-webpack-plugin/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/terser-webpack-plugin/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/terser-webpack-plugin/node_modules/terser": { + "version": "5.9.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.9.0.tgz", + "integrity": "sha512-h5hxa23sCdpzcye/7b8YqbE5OwKca/ni0RQz1uRX3tGh8haaGHqcuSqbGRybuAKNdntZ0mDgFNXPJ48xQ2RXKQ==", + "dev": true, + "dependencies": { + "commander": "^2.20.0", + "source-map": "~0.7.2", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin/node_modules/terser/node_modules/source-map": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", + "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/terser/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", + "dev": true + }, + "node_modules/thunky": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", + "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", + "dev": true + }, + "node_modules/timsort": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", + "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", + "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "dev": true, + "dependencies": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" + }, + "node_modules/trim-newlines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", + "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/true-case-path": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.3.tgz", + "integrity": "sha512-m6s2OdQe5wgpFMC+pAJ+q9djG82O2jcHPOI6RNg1yy9rCYR+WD6Nbpl32fDpfC56nirdRy+opFa/Vk7HYhqaew==", + "dev": true, + "dependencies": { + "glob": "^7.1.2" + } + }, + "node_modules/tsconfig-paths": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.11.0.tgz", + "integrity": "sha512-7ecdYDnIdmv639mmDwslG6KQg1Z9STTz1j7Gcz0xa+nshh/gKDAHcPxRbWOsA3SPp0tXP2leTcY9Kw+NAkfZzA==", + "dev": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.1", + "minimist": "^1.2.0", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tsconfig-paths/node_modules/json5": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", + "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "dev": true + }, + "node_modules/tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } + }, + "node_modules/tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "dev": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", + "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dev": true, + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/unbox-primitive": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz", + "integrity": "sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "has-bigints": "^1.0.1", + "has-symbols": "^1.0.2", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dev": true, + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz", + "integrity": "sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.0.0.tgz", + "integrity": "sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/uniq": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", + "integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=", + "dev": true + }, + "node_modules/uniqs": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/uniqs/-/uniqs-2.0.0.tgz", + "integrity": "sha1-/+3ks2slKQaW5uFl1KWe25mOawI=", + "dev": true + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/url": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", + "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", + "dev": true, + "dependencies": { + "punycode": "1.3.2", + "querystring": "0.2.0" + } + }, + "node_modules/url/node_modules/punycode": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", + "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", + "dev": true + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true + }, + "node_modules/utila": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", + "integrity": "sha1-ihagXURWV6Oupe7MWxKk+lN5dyw=", + "dev": true + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", + "dev": true, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "dev": true, + "bin": { + "uuid": "bin/uuid" + } + }, + "node_modules/v8-compile-cache": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", + "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", + "dev": true + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/vendors": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.4.tgz", + "integrity": "sha512-/juG65kTL4Cy2su4P8HjtkTxk6VmJDiOPBufWniqQ6wknac6jNiXS9vU+hO3wgusiyqWlzTbVHi0dyJqRONg3w==", + "dev": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "dev": true, + "engines": [ + "node >=0.6.0" + ], + "dependencies": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "node_modules/verror/node_modules/core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true + }, + "node_modules/watchpack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.2.0.tgz", + "integrity": "sha512-up4YAn/XHgZHIxFBVCdlMiWDj6WaLKpwVeGQk2I5thdYxF/KmF0aaz6TfJZ/hfl1h/XlcDr7k1KH7ThDagpFaA==", + "dev": true, + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/wbuf": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", + "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", + "dev": true, + "dependencies": { + "minimalistic-assert": "^1.0.0" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" + }, + "node_modules/webpack": { + "version": "5.58.2", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.58.2.tgz", + "integrity": "sha512-3S6e9Vo1W2ijk4F4PPWRIu6D/uGgqaPmqw+av3W3jLDujuNkdxX5h5c+RQ6GkjVR+WwIPOfgY8av+j5j4tMqJw==", + "dev": true, + "dependencies": { + "@types/eslint-scope": "^3.7.0", + "@types/estree": "^0.0.50", + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/wasm-edit": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "acorn": "^8.4.1", + "acorn-import-assertions": "^1.7.6", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.8.3", + "es-module-lexer": "^0.9.0", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.4", + "json-parse-better-errors": "^1.0.2", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.1.3", + "watchpack": "^2.2.0", + "webpack-sources": "^3.2.0" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-cli": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.9.0.tgz", + "integrity": "sha512-n/jZZBMzVEl4PYIBs+auy2WI0WTQ74EnJDiyD98O2JZY6IVIHJNitkYp/uTXOviIOMfgzrNvC9foKv/8o8KSZw==", + "dev": true, + "dependencies": { + "@discoveryjs/json-ext": "^0.5.0", + "@webpack-cli/configtest": "^1.1.0", + "@webpack-cli/info": "^1.4.0", + "@webpack-cli/serve": "^1.6.0", + "colorette": "^2.0.14", + "commander": "^7.0.0", + "execa": "^5.0.0", + "fastest-levenshtein": "^1.0.12", + "import-local": "^3.0.2", + "interpret": "^2.2.0", + "rechoir": "^0.7.0", + "v8-compile-cache": "^2.2.0", + "webpack-merge": "^5.7.3" + }, + "bin": { + "webpack-cli": "bin/cli.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "peerDependencies": { + "webpack": "4.x.x || 5.x.x" + }, + "peerDependenciesMeta": { + "@webpack-cli/generators": { + "optional": true + }, + "@webpack-cli/migrate": { + "optional": true + }, + "webpack-bundle-analyzer": { + "optional": true + }, + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/webpack-cli/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/webpack-cli/node_modules/interpret": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", + "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/webpack-dev-middleware": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.2.1.tgz", + "integrity": "sha512-Kx1X+36Rn9JaZcQMrJ7qN3PMAuKmEDD9ZISjUj3Cgq4A6PtwYsC4mpaKotSRYH3iOF6HsUa8viHKS59FlyVifQ==", + "dev": true, + "dependencies": { + "colorette": "^2.0.10", + "memfs": "^3.2.2", + "mime-types": "^2.1.31", + "range-parser": "^1.2.1", + "schema-utils": "^3.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/webpack-dev-middleware/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack-dev-server": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.3.1.tgz", + "integrity": "sha512-qNXQCVYo1kYhH9pgLtm8LRNkXX3XzTfHSj/zqzaqYzGPca+Qjr+81wj1jgPMCHhIhso9WEQ+kX9z23iG9PzQ7w==", + "dev": true, + "dependencies": { + "ansi-html-community": "^0.0.8", + "bonjour": "^3.5.0", + "chokidar": "^3.5.1", + "colorette": "^2.0.10", + "compression": "^1.7.4", + "connect-history-api-fallback": "^1.6.0", + "del": "^6.0.0", + "express": "^4.17.1", + "graceful-fs": "^4.2.6", + "html-entities": "^2.3.2", + "http-proxy-middleware": "^2.0.0", + "internal-ip": "^6.2.0", + "ipaddr.js": "^2.0.1", + "open": "^8.0.9", + "p-retry": "^4.5.0", + "portfinder": "^1.0.28", + "schema-utils": "^3.1.0", + "selfsigned": "^1.10.11", + "serve-index": "^1.9.1", + "sockjs": "^0.3.21", + "spdy": "^4.0.2", + "strip-ansi": "^7.0.0", + "url": "^0.11.0", + "webpack-dev-middleware": "^5.2.1", + "ws": "^8.1.0" + }, + "bin": { + "webpack-dev-server": "bin/webpack-dev-server.js" + }, + "engines": { + "node": ">= 12.13.0" + }, + "peerDependencies": { + "webpack": "^4.37.0 || ^5.0.0" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-dev-server/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/webpack-dev-server/node_modules/del": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/del/-/del-6.0.0.tgz", + "integrity": "sha512-1shh9DQ23L16oXSZKB2JxpL7iMy2E0S9d517ptA1P8iw0alkPtQcrKH7ru31rYtKwF499HkTu+DRzq3TCKDFRQ==", + "dev": true, + "dependencies": { + "globby": "^11.0.1", + "graceful-fs": "^4.2.4", + "is-glob": "^4.0.1", + "is-path-cwd": "^2.2.0", + "is-path-inside": "^3.0.2", + "p-map": "^4.0.0", + "rimraf": "^3.0.2", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/webpack-dev-server/node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/webpack-dev-server/node_modules/p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "dev": true, + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/webpack-dev-server/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/webpack-dev-server/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack-dev-server/node_modules/strip-ansi": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz", + "integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/webpack-merge": { + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", + "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", + "dev": true, + "dependencies": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/webpack-sources": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.1.tgz", + "integrity": "sha512-t6BMVLQ0AkjBOoRTZgqrWm7xbXMBzD+XDq2EZ96+vMfn3qKgsvdXZhbPZ4ElUOpdv4u+iiGe+w3+J75iy/bYGA==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack/node_modules/acorn": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.5.0.tgz", + "integrity": "sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/webpack/node_modules/acorn-import-assertions": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", + "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", + "dev": true, + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/webpack/node_modules/enhanced-resolve": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.8.3.tgz", + "integrity": "sha512-EGAbGvH7j7Xt2nc0E7D99La1OiEs8LnyimkRgwExpUMScN6O+3x9tIWs7PLQZVNx4YD+00skHXPXi1yQHpAmZA==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack/node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack/node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/websocket-driver": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", + "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", + "dev": true, + "dependencies": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/websocket-extensions": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true + }, + "node_modules/wide-align": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", + "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", + "dev": true, + "dependencies": { + "string-width": "^1.0.2 || 2" + } + }, + "node_modules/wildcard": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", + "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", + "dev": true + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", + "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/wrap-ansi/node_modules/string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "dependencies": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + }, + "node_modules/ws": { + "version": "8.2.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.2.3.tgz", + "integrity": "sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==", + "dev": true, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/yargs": { + "version": "13.3.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", + "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", + "dev": true, + "dependencies": { + "cliui": "^5.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.1.2" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs/node_modules/ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/yargs/node_modules/find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "dependencies": { + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/yargs/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/yargs/node_modules/locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/yargs/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yargs/node_modules/p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "dependencies": { + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/yargs/node_modules/string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "dependencies": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/yargs/node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/yargs/node_modules/yargs-parser": { + "version": "13.1.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", + "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + }, + "dependencies": { + "@babel/code-frame": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.15.8.tgz", + "integrity": "sha512-2IAnmn8zbvC/jKYhq5Ki9I+DwjlrtMPUCH/CpHvqI4dNnlwHwsxoIhlc8WcYY5LSYknXQtAlFYuHfqAFCvQ4Wg==", + "dev": true, + "requires": { + "@babel/highlight": "^7.14.5" + } + }, + "@babel/compat-data": { + "version": "7.15.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.15.0.tgz", + "integrity": "sha512-0NqAC1IJE0S0+lL1SWFMxMkz1pKCNCjI4tr2Zx4LJSXxCLAdr6KyArnY+sno5m3yH9g737ygOyPABDsnXkpxiA==", + "dev": true + }, + "@babel/core": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.15.8.tgz", + "integrity": "sha512-3UG9dsxvYBMYwRv+gS41WKHno4K60/9GPy1CJaH6xy3Elq8CTtvtjT5R5jmNhXfCYLX2mTw+7/aq5ak/gOE0og==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.15.8", + "@babel/generator": "^7.15.8", + "@babel/helper-compilation-targets": "^7.15.4", + "@babel/helper-module-transforms": "^7.15.8", + "@babel/helpers": "^7.15.4", + "@babel/parser": "^7.15.8", + "@babel/template": "^7.15.4", + "@babel/traverse": "^7.15.4", + "@babel/types": "^7.15.6", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.1.2", + "semver": "^6.3.0", + "source-map": "^0.5.0" + } + }, + "@babel/generator": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.15.8.tgz", + "integrity": "sha512-ECmAKstXbp1cvpTTZciZCgfOt6iN64lR0d+euv3UZisU5awfRawOvg07Utn/qBGuH4bRIEZKrA/4LzZyXhZr8g==", + "dev": true, + "requires": { + "@babel/types": "^7.15.6", + "jsesc": "^2.5.1", + "source-map": "^0.5.0" + } + }, + "@babel/helper-annotate-as-pure": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.15.4.tgz", + "integrity": "sha512-QwrtdNvUNsPCj2lfNQacsGSQvGX8ee1ttrBrcozUP2Sv/jylewBP/8QFe6ZkBsC8T/GYWonNAWJV4aRR9AL2DA==", + "dev": true, + "requires": { + "@babel/types": "^7.15.4" + } + }, + "@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.15.4.tgz", + "integrity": "sha512-P8o7JP2Mzi0SdC6eWr1zF+AEYvrsZa7GSY1lTayjF5XJhVH0kjLYUZPvTMflP7tBgZoe9gIhTa60QwFpqh/E0Q==", + "dev": true, + "requires": { + "@babel/helper-explode-assignable-expression": "^7.15.4", + "@babel/types": "^7.15.4" + } + }, + "@babel/helper-compilation-targets": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.15.4.tgz", + "integrity": "sha512-rMWPCirulnPSe4d+gwdWXLfAXTTBj8M3guAf5xFQJ0nvFY7tfNAFnWdqaHegHlgDZOCT4qvhF3BYlSJag8yhqQ==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.15.0", + "@babel/helper-validator-option": "^7.14.5", + "browserslist": "^4.16.6", + "semver": "^6.3.0" + } + }, + "@babel/helper-create-class-features-plugin": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.15.4.tgz", + "integrity": "sha512-7ZmzFi+DwJx6A7mHRwbuucEYpyBwmh2Ca0RvI6z2+WLZYCqV0JOaLb+u0zbtmDicebgKBZgqbYfLaKNqSgv5Pw==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.15.4", + "@babel/helper-function-name": "^7.15.4", + "@babel/helper-member-expression-to-functions": "^7.15.4", + "@babel/helper-optimise-call-expression": "^7.15.4", + "@babel/helper-replace-supers": "^7.15.4", + "@babel/helper-split-export-declaration": "^7.15.4" + } + }, + "@babel/helper-create-regexp-features-plugin": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.14.5.tgz", + "integrity": "sha512-TLawwqpOErY2HhWbGJ2nZT5wSkR192QpN+nBg1THfBfftrlvOh+WbhrxXCH4q4xJ9Gl16BGPR/48JA+Ryiho/A==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.14.5", + "regexpu-core": "^4.7.1" + } + }, + "@babel/helper-define-polyfill-provider": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.2.4.tgz", + "integrity": "sha512-OrpPZ97s+aPi6h2n1OXzdhVis1SGSsMU2aMHgLcOKfsp4/v1NWpx3CWT3lBj5eeBq9cDkPkh+YCfdF7O12uNDQ==", + "dev": true, + "requires": { + "@babel/helper-compilation-targets": "^7.13.0", + "@babel/helper-module-imports": "^7.12.13", + "@babel/helper-plugin-utils": "^7.13.0", + "@babel/traverse": "^7.13.0", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2", + "semver": "^6.1.2" + } + }, + "@babel/helper-explode-assignable-expression": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.15.4.tgz", + "integrity": "sha512-J14f/vq8+hdC2KoWLIQSsGrC9EFBKE4NFts8pfMpymfApds+fPqR30AOUWc4tyr56h9l/GA1Sxv2q3dLZWbQ/g==", + "dev": true, + "requires": { + "@babel/types": "^7.15.4" + } + }, + "@babel/helper-function-name": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.15.4.tgz", + "integrity": "sha512-Z91cOMM4DseLIGOnog+Z8OI6YseR9bua+HpvLAQ2XayUGU+neTtX+97caALaLdyu53I/fjhbeCnWnRH1O3jFOw==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.15.4", + "@babel/template": "^7.15.4", + "@babel/types": "^7.15.4" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.15.4.tgz", + "integrity": "sha512-1/AlxSF92CmGZzHnC515hm4SirTxtpDnLEJ0UyEMgTMZN+6bxXKg04dKhiRx5Enel+SUA1G1t5Ed/yQia0efrA==", + "dev": true, + "requires": { + "@babel/types": "^7.15.4" + } + }, + "@babel/helper-hoist-variables": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.15.4.tgz", + "integrity": "sha512-VTy085egb3jUGVK9ycIxQiPbquesq0HUQ+tPO0uv5mPEBZipk+5FkRKiWq5apuyTE9FUrjENB0rCf8y+n+UuhA==", + "dev": true, + "requires": { + "@babel/types": "^7.15.4" + } + }, + "@babel/helper-member-expression-to-functions": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.15.4.tgz", + "integrity": "sha512-cokOMkxC/BTyNP1AlY25HuBWM32iCEsLPI4BHDpJCHHm1FU2E7dKWWIXJgQgSFiu4lp8q3bL1BIKwqkSUviqtA==", + "dev": true, + "requires": { + "@babel/types": "^7.15.4" + } + }, + "@babel/helper-module-imports": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.0.tgz", + "integrity": "sha512-kkH7sWzKPq0xt3H1n+ghb4xEMP8k0U7XV3kkB+ZGy69kDk2ySFW1qPi06sjKzFY3t1j6XbJSqr4mF9L7CYVyhg==", + "dev": true, + "requires": { + "@babel/types": "^7.16.0" + } + }, + "@babel/helper-module-transforms": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.15.8.tgz", + "integrity": "sha512-DfAfA6PfpG8t4S6npwzLvTUpp0sS7JrcuaMiy1Y5645laRJIp/LiLGIBbQKaXSInK8tiGNI7FL7L8UvB8gdUZg==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.15.4", + "@babel/helper-replace-supers": "^7.15.4", + "@babel/helper-simple-access": "^7.15.4", + "@babel/helper-split-export-declaration": "^7.15.4", + "@babel/helper-validator-identifier": "^7.15.7", + "@babel/template": "^7.15.4", + "@babel/traverse": "^7.15.4", + "@babel/types": "^7.15.6" + } + }, + "@babel/helper-optimise-call-expression": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.15.4.tgz", + "integrity": "sha512-E/z9rfbAOt1vDW1DR7k4SzhzotVV5+qMciWV6LaG1g4jeFrkDlJedjtV4h0i4Q/ITnUu+Pk08M7fczsB9GXBDw==", + "dev": true, + "requires": { + "@babel/types": "^7.15.4" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz", + "integrity": "sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ==", + "dev": true + }, + "@babel/helper-remap-async-to-generator": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.15.4.tgz", + "integrity": "sha512-v53MxgvMK/HCwckJ1bZrq6dNKlmwlyRNYM6ypaRTdXWGOE2c1/SCa6dL/HimhPulGhZKw9W0QhREM583F/t0vQ==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.15.4", + "@babel/helper-wrap-function": "^7.15.4", + "@babel/types": "^7.15.4" + } + }, + "@babel/helper-replace-supers": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.15.4.tgz", + "integrity": "sha512-/ztT6khaXF37MS47fufrKvIsiQkx1LBRvSJNzRqmbyeZnTwU9qBxXYLaaT/6KaxfKhjs2Wy8kG8ZdsFUuWBjzw==", + "dev": true, + "requires": { + "@babel/helper-member-expression-to-functions": "^7.15.4", + "@babel/helper-optimise-call-expression": "^7.15.4", + "@babel/traverse": "^7.15.4", + "@babel/types": "^7.15.4" + } + }, + "@babel/helper-simple-access": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.15.4.tgz", + "integrity": "sha512-UzazrDoIVOZZcTeHHEPYrr1MvTR/K+wgLg6MY6e1CJyaRhbibftF6fR2KU2sFRtI/nERUZR9fBd6aKgBlIBaPg==", + "dev": true, + "requires": { + "@babel/types": "^7.15.4" + } + }, + "@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.15.4.tgz", + "integrity": "sha512-BMRLsdh+D1/aap19TycS4eD1qELGrCBJwzaY9IE8LrpJtJb+H7rQkPIdsfgnMtLBA6DJls7X9z93Z4U8h7xw0A==", + "dev": true, + "requires": { + "@babel/types": "^7.15.4" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.15.4.tgz", + "integrity": "sha512-HsFqhLDZ08DxCpBdEVtKmywj6PQbwnF6HHybur0MAnkAKnlS6uHkwnmRIkElB2Owpfb4xL4NwDmDLFubueDXsw==", + "dev": true, + "requires": { + "@babel/types": "^7.15.4" + } + }, + "@babel/helper-validator-identifier": { + "version": "7.15.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz", + "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==", + "dev": true + }, + "@babel/helper-validator-option": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz", + "integrity": "sha512-OX8D5eeX4XwcroVW45NMvoYaIuFI+GQpA2a8Gi+X/U/cDUIRsV37qQfF905F0htTRCREQIB4KqPeaveRJUl3Ow==", + "dev": true + }, + "@babel/helper-wrap-function": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.15.4.tgz", + "integrity": "sha512-Y2o+H/hRV5W8QhIfTpRIBwl57y8PrZt6JM3V8FOo5qarjshHItyH5lXlpMfBfmBefOqSCpKZs/6Dxqp0E/U+uw==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.15.4", + "@babel/template": "^7.15.4", + "@babel/traverse": "^7.15.4", + "@babel/types": "^7.15.4" + } + }, + "@babel/helpers": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.15.4.tgz", + "integrity": "sha512-V45u6dqEJ3w2rlryYYXf6i9rQ5YMNu4FLS6ngs8ikblhu2VdR1AqAd6aJjBzmf2Qzh6KOLqKHxEN9+TFbAkAVQ==", + "dev": true, + "requires": { + "@babel/template": "^7.15.4", + "@babel/traverse": "^7.15.4", + "@babel/types": "^7.15.4" + } + }, + "@babel/highlight": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", + "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.14.5", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + } + }, + "@babel/parser": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.15.8.tgz", + "integrity": "sha512-BRYa3wcQnjS/nqI8Ac94pYYpJfojHVvVXJ97+IDCImX4Jc8W8Xv1+47enbruk+q1etOpsQNwnfFcNGw+gtPGxA==", + "dev": true + }, + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.15.4.tgz", + "integrity": "sha512-eBnpsl9tlhPhpI10kU06JHnrYXwg3+V6CaP2idsCXNef0aeslpqyITXQ74Vfk5uHgY7IG7XP0yIH8b42KSzHog==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.15.4", + "@babel/plugin-proposal-optional-chaining": "^7.14.5" + } + }, + "@babel/plugin-proposal-async-generator-functions": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.15.8.tgz", + "integrity": "sha512-2Z5F2R2ibINTc63mY7FLqGfEbmofrHU9FitJW1Q7aPaKFhiPvSq6QEt/BoWN5oME3GVyjcRuNNSRbb9LC0CSWA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-remap-async-to-generator": "^7.15.4", + "@babel/plugin-syntax-async-generators": "^7.8.4" + } + }, + "@babel/plugin-proposal-class-properties": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.14.5.tgz", + "integrity": "sha512-q/PLpv5Ko4dVc1LYMpCY7RVAAO4uk55qPwrIuJ5QJ8c6cVuAmhu7I/49JOppXL6gXf7ZHzpRVEUZdYoPLM04Gg==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-proposal-class-static-block": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.15.4.tgz", + "integrity": "sha512-M682XWrrLNk3chXCjoPUQWOyYsB93B9z3mRyjtqqYJWDf2mfCdIYgDrA11cgNVhAQieaq6F2fn2f3wI0U4aTjA==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + } + }, + "@babel/plugin-proposal-dynamic-import": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.14.5.tgz", + "integrity": "sha512-ExjiNYc3HDN5PXJx+bwC50GIx/KKanX2HiggnIUAYedbARdImiCU4RhhHfdf0Kd7JNXGpsBBBCOm+bBVy3Gb0g==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + } + }, + "@babel/plugin-proposal-export-namespace-from": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.14.5.tgz", + "integrity": "sha512-g5POA32bXPMmSBu5Dx/iZGLGnKmKPc5AiY7qfZgurzrCYgIztDlHFbznSNCoQuv57YQLnQfaDi7dxCtLDIdXdA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + } + }, + "@babel/plugin-proposal-json-strings": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.14.5.tgz", + "integrity": "sha512-NSq2fczJYKVRIsUJyNxrVUMhB27zb7N7pOFGQOhBKJrChbGcgEAqyZrmZswkPk18VMurEeJAaICbfm57vUeTbQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-json-strings": "^7.8.3" + } + }, + "@babel/plugin-proposal-logical-assignment-operators": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.14.5.tgz", + "integrity": "sha512-YGn2AvZAo9TwyhlLvCCWxD90Xq8xJ4aSgaX3G5D/8DW94L8aaT+dS5cSP+Z06+rCJERGSr9GxMBZ601xoc2taw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + } + }, + "@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.14.5.tgz", + "integrity": "sha512-gun/SOnMqjSb98Nkaq2rTKMwervfdAoz6NphdY0vTfuzMfryj+tDGb2n6UkDKwez+Y8PZDhE3D143v6Gepp4Hg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + } + }, + "@babel/plugin-proposal-numeric-separator": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.14.5.tgz", + "integrity": "sha512-yiclALKe0vyZRZE0pS6RXgjUOt87GWv6FYa5zqj15PvhOGFO69R5DusPlgK/1K5dVnCtegTiWu9UaBSrLLJJBg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + } + }, + "@babel/plugin-proposal-object-rest-spread": { + "version": "7.15.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.15.6.tgz", + "integrity": "sha512-qtOHo7A1Vt+O23qEAX+GdBpqaIuD3i9VRrWgCJeq7WO6H2d14EK3q11urj5Te2MAeK97nMiIdRpwd/ST4JFbNg==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.15.0", + "@babel/helper-compilation-targets": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.15.4" + } + }, + "@babel/plugin-proposal-optional-catch-binding": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.14.5.tgz", + "integrity": "sha512-3Oyiixm0ur7bzO5ybNcZFlmVsygSIQgdOa7cTfOYCMY+wEPAYhZAJxi3mixKFCTCKUhQXuCTtQ1MzrpL3WT8ZQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + } + }, + "@babel/plugin-proposal-optional-chaining": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.14.5.tgz", + "integrity": "sha512-ycz+VOzo2UbWNI1rQXxIuMOzrDdHGrI23fRiz/Si2R4kv2XZQ1BK8ccdHwehMKBlcH/joGW/tzrUmo67gbJHlQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.14.5", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + } + }, + "@babel/plugin-proposal-private-methods": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.14.5.tgz", + "integrity": "sha512-838DkdUA1u+QTCplatfq4B7+1lnDa/+QMI89x5WZHBcnNv+47N8QEj2k9I2MUU9xIv8XJ4XvPCviM/Dj7Uwt9g==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-proposal-private-property-in-object": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.15.4.tgz", + "integrity": "sha512-X0UTixkLf0PCCffxgu5/1RQyGGbgZuKoI+vXP4iSbJSYwPb7hu06omsFGBvQ9lJEvwgrxHdS8B5nbfcd8GyUNA==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.15.4", + "@babel/helper-create-class-features-plugin": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + } + }, + "@babel/plugin-proposal-unicode-property-regex": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.14.5.tgz", + "integrity": "sha512-6axIeOU5LnY471KenAB9vI8I5j7NQ2d652hIYwVyRfgaZT5UpiqFKCuVXCDMSrU+3VFafnu2c5m3lrWIlr6A5Q==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.12.13" + } + }, + "@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-arrow-functions": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.14.5.tgz", + "integrity": "sha512-KOnO0l4+tD5IfOdi4x8C1XmEIRWUjNRV8wc6K2vz/3e8yAOoZZvsRXRRIF/yo/MAOFb4QjtAw9xSxMXbSMRy8A==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-async-to-generator": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.14.5.tgz", + "integrity": "sha512-szkbzQ0mNk0rpu76fzDdqSyPu0MuvpXgC+6rz5rpMb5OIRxdmHfQxrktL8CYolL2d8luMCZTR0DpIMIdL27IjA==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-remap-async-to-generator": "^7.14.5" + } + }, + "@babel/plugin-transform-block-scoped-functions": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.14.5.tgz", + "integrity": "sha512-dtqWqdWZ5NqBX3KzsVCWfQI3A53Ft5pWFCT2eCVUftWZgjc5DpDponbIF1+c+7cSGk2wN0YK7HGL/ezfRbpKBQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-block-scoping": { + "version": "7.15.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.15.3.tgz", + "integrity": "sha512-nBAzfZwZb4DkaGtOes1Up1nOAp9TDRRFw4XBzBBSG9QK7KVFmYzgj9o9sbPv7TX5ofL4Auq4wZnxCoPnI/lz2Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-classes": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.15.4.tgz", + "integrity": "sha512-Yjvhex8GzBmmPQUvpXRPWQ9WnxXgAFuZSrqOK/eJlOGIXwvv8H3UEdUigl1gb/bnjTrln+e8bkZUYCBt/xYlBg==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.15.4", + "@babel/helper-function-name": "^7.15.4", + "@babel/helper-optimise-call-expression": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-replace-supers": "^7.15.4", + "@babel/helper-split-export-declaration": "^7.15.4", + "globals": "^11.1.0" + } + }, + "@babel/plugin-transform-computed-properties": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.14.5.tgz", + "integrity": "sha512-pWM+E4283UxaVzLb8UBXv4EIxMovU4zxT1OPnpHJcmnvyY9QbPPTKZfEj31EUvG3/EQRbYAGaYEUZ4yWOBC2xg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-destructuring": { + "version": "7.14.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.14.7.tgz", + "integrity": "sha512-0mDE99nK+kVh3xlc5vKwB6wnP9ecuSj+zQCa/n0voENtP/zymdT4HH6QEb65wjjcbqr1Jb/7z9Qp7TF5FtwYGw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-dotall-regex": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.14.5.tgz", + "integrity": "sha512-loGlnBdj02MDsFaHhAIJzh7euK89lBrGIdM9EAtHFo6xKygCUGuuWe07o1oZVk287amtW1n0808sQM99aZt3gw==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-duplicate-keys": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.14.5.tgz", + "integrity": "sha512-iJjbI53huKbPDAsJ8EmVmvCKeeq21bAze4fu9GBQtSLqfvzj2oRuHVx4ZkDwEhg1htQ+5OBZh/Ab0XDf5iBZ7A==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-exponentiation-operator": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.14.5.tgz", + "integrity": "sha512-jFazJhMBc9D27o9jDnIE5ZErI0R0m7PbKXVq77FFvqFbzvTMuv8jaAwLZ5PviOLSFttqKIW0/wxNSDbjLk0tYA==", + "dev": true, + "requires": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-for-of": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.15.4.tgz", + "integrity": "sha512-DRTY9fA751AFBDh2oxydvVm4SYevs5ILTWLs6xKXps4Re/KG5nfUkr+TdHCrRWB8C69TlzVgA9b3RmGWmgN9LA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-function-name": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.14.5.tgz", + "integrity": "sha512-vbO6kv0fIzZ1GpmGQuvbwwm+O4Cbm2NrPzwlup9+/3fdkuzo1YqOZcXw26+YUJB84Ja7j9yURWposEHLYwxUfQ==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-literals": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.14.5.tgz", + "integrity": "sha512-ql33+epql2F49bi8aHXxvLURHkxJbSmMKl9J5yHqg4PLtdE6Uc48CH1GS6TQvZ86eoB/ApZXwm7jlA+B3kra7A==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-member-expression-literals": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.14.5.tgz", + "integrity": "sha512-WkNXxH1VXVTKarWFqmso83xl+2V3Eo28YY5utIkbsmXoItO8Q3aZxN4BTS2k0hz9dGUloHK26mJMyQEYfkn/+Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-modules-amd": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.14.5.tgz", + "integrity": "sha512-3lpOU8Vxmp3roC4vzFpSdEpGUWSMsHFreTWOMMLzel2gNGfHE5UWIh/LN6ghHs2xurUp4jRFYMUIZhuFbody1g==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5", + "babel-plugin-dynamic-import-node": "^2.3.3" + } + }, + "@babel/plugin-transform-modules-commonjs": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.15.4.tgz", + "integrity": "sha512-qg4DPhwG8hKp4BbVDvX1s8cohM8a6Bvptu4l6Iingq5rW+yRUAhe/YRup/YcW2zCOlrysEWVhftIcKzrEZv3sA==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-simple-access": "^7.15.4", + "babel-plugin-dynamic-import-node": "^2.3.3" + } + }, + "@babel/plugin-transform-modules-systemjs": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.15.4.tgz", + "integrity": "sha512-fJUnlQrl/mezMneR72CKCgtOoahqGJNVKpompKwzv3BrEXdlPspTcyxrZ1XmDTIr9PpULrgEQo3qNKp6dW7ssw==", + "dev": true, + "requires": { + "@babel/helper-hoist-variables": "^7.15.4", + "@babel/helper-module-transforms": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-validator-identifier": "^7.14.9", + "babel-plugin-dynamic-import-node": "^2.3.3" + } + }, + "@babel/plugin-transform-modules-umd": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.14.5.tgz", + "integrity": "sha512-RfPGoagSngC06LsGUYyM9QWSXZ8MysEjDJTAea1lqRjNECE3y0qIJF/qbvJxc4oA4s99HumIMdXOrd+TdKaAAA==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.14.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.14.9.tgz", + "integrity": "sha512-l666wCVYO75mlAtGFfyFwnWmIXQm3kSH0C3IRnJqWcZbWkoihyAdDhFm2ZWaxWTqvBvhVFfJjMRQ0ez4oN1yYA==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.14.5" + } + }, + "@babel/plugin-transform-new-target": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.14.5.tgz", + "integrity": "sha512-Nx054zovz6IIRWEB49RDRuXGI4Gy0GMgqG0cII9L3MxqgXz/+rgII+RU58qpo4g7tNEx1jG7rRVH4ihZoP4esQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-object-super": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.14.5.tgz", + "integrity": "sha512-MKfOBWzK0pZIrav9z/hkRqIk/2bTv9qvxHzPQc12RcVkMOzpIKnFCNYJip00ssKWYkd8Sf5g0Wr7pqJ+cmtuFg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-replace-supers": "^7.14.5" + } + }, + "@babel/plugin-transform-parameters": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.15.4.tgz", + "integrity": "sha512-9WB/GUTO6lvJU3XQsSr6J/WKvBC2hcs4Pew8YxZagi6GkTdniyqp8On5kqdK8MN0LMeu0mGbhPN+O049NV/9FQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-property-literals": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.14.5.tgz", + "integrity": "sha512-r1uilDthkgXW8Z1vJz2dKYLV1tuw2xsbrp3MrZmD99Wh9vsfKoob+JTgri5VUb/JqyKRXotlOtwgu4stIYCmnw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-regenerator": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.14.5.tgz", + "integrity": "sha512-NVIY1W3ITDP5xQl50NgTKlZ0GrotKtLna08/uGY6ErQt6VEQZXla86x/CTddm5gZdcr+5GSsvMeTmWA5Ii6pkg==", + "dev": true, + "requires": { + "regenerator-transform": "^0.14.2" + } + }, + "@babel/plugin-transform-reserved-words": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.14.5.tgz", + "integrity": "sha512-cv4F2rv1nD4qdexOGsRQXJrOcyb5CrgjUH9PKrrtyhSDBNWGxd0UIitjyJiWagS+EbUGjG++22mGH1Pub8D6Vg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-runtime": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.16.0.tgz", + "integrity": "sha512-zlPf1/XFn5+vWdve3AAhf+Sxl+MVa5VlwTwWgnLx23u4GlatSRQJ3Eoo9vllf0a9il3woQsT4SK+5Z7c06h8ag==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.16.0", + "@babel/helper-plugin-utils": "^7.14.5", + "babel-plugin-polyfill-corejs2": "^0.2.3", + "babel-plugin-polyfill-corejs3": "^0.3.0", + "babel-plugin-polyfill-regenerator": "^0.2.3", + "semver": "^6.3.0" + }, + "dependencies": { + "babel-plugin-polyfill-corejs3": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.3.0.tgz", + "integrity": "sha512-JLwi9vloVdXLjzACL80j24bG6/T1gYxwowG44dg6HN/7aTPdyPbJJidf6ajoA3RPHHtW0j9KMrSOLpIZpAnPpg==", + "dev": true, + "requires": { + "@babel/helper-define-polyfill-provider": "^0.2.4", + "core-js-compat": "^3.18.0" + } + } + } + }, + "@babel/plugin-transform-shorthand-properties": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.14.5.tgz", + "integrity": "sha512-xLucks6T1VmGsTB+GWK5Pl9Jl5+nRXD1uoFdA5TSO6xtiNjtXTjKkmPdFXVLGlK5A2/or/wQMKfmQ2Y0XJfn5g==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-spread": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.15.8.tgz", + "integrity": "sha512-/daZ8s2tNaRekl9YJa9X4bzjpeRZLt122cpgFnQPLGUe61PH8zMEBmYqKkW5xF5JUEh5buEGXJoQpqBmIbpmEQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.15.4" + } + }, + "@babel/plugin-transform-sticky-regex": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.14.5.tgz", + "integrity": "sha512-Z7F7GyvEMzIIbwnziAZmnSNpdijdr4dWt+FJNBnBLz5mwDFkqIXU9wmBcWWad3QeJF5hMTkRe4dAq2sUZiG+8A==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-template-literals": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.14.5.tgz", + "integrity": "sha512-22btZeURqiepOfuy/VkFr+zStqlujWaarpMErvay7goJS6BWwdd6BY9zQyDLDa4x2S3VugxFb162IZ4m/S/+Gg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-typeof-symbol": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.14.5.tgz", + "integrity": "sha512-lXzLD30ffCWseTbMQzrvDWqljvZlHkXU+CnseMhkMNqU1sASnCsz3tSzAaH3vCUXb9PHeUb90ZT1BdFTm1xxJw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-unicode-escapes": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.14.5.tgz", + "integrity": "sha512-crTo4jATEOjxj7bt9lbYXcBAM3LZaUrbP2uUdxb6WIorLmjNKSpHfIybgY4B8SRpbf8tEVIWH3Vtm7ayCrKocA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-transform-unicode-regex": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.14.5.tgz", + "integrity": "sha512-UygduJpC5kHeCiRw/xDVzC+wj8VaYSoKl5JNVmbP7MadpNinAm3SvZCxZ42H37KZBKztz46YC73i9yV34d0Tzw==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.14.5", + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/preset-env": { + "version": "7.15.8", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.15.8.tgz", + "integrity": "sha512-rCC0wH8husJgY4FPbHsiYyiLxSY8oMDJH7Rl6RQMknbN9oDDHhM9RDFvnGM2MgkbUJzSQB4gtuwygY5mCqGSsA==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.15.0", + "@babel/helper-compilation-targets": "^7.15.4", + "@babel/helper-plugin-utils": "^7.14.5", + "@babel/helper-validator-option": "^7.14.5", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.15.4", + "@babel/plugin-proposal-async-generator-functions": "^7.15.8", + "@babel/plugin-proposal-class-properties": "^7.14.5", + "@babel/plugin-proposal-class-static-block": "^7.15.4", + "@babel/plugin-proposal-dynamic-import": "^7.14.5", + "@babel/plugin-proposal-export-namespace-from": "^7.14.5", + "@babel/plugin-proposal-json-strings": "^7.14.5", + "@babel/plugin-proposal-logical-assignment-operators": "^7.14.5", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.5", + "@babel/plugin-proposal-numeric-separator": "^7.14.5", + "@babel/plugin-proposal-object-rest-spread": "^7.15.6", + "@babel/plugin-proposal-optional-catch-binding": "^7.14.5", + "@babel/plugin-proposal-optional-chaining": "^7.14.5", + "@babel/plugin-proposal-private-methods": "^7.14.5", + "@babel/plugin-proposal-private-property-in-object": "^7.15.4", + "@babel/plugin-proposal-unicode-property-regex": "^7.14.5", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-transform-arrow-functions": "^7.14.5", + "@babel/plugin-transform-async-to-generator": "^7.14.5", + "@babel/plugin-transform-block-scoped-functions": "^7.14.5", + "@babel/plugin-transform-block-scoping": "^7.15.3", + "@babel/plugin-transform-classes": "^7.15.4", + "@babel/plugin-transform-computed-properties": "^7.14.5", + "@babel/plugin-transform-destructuring": "^7.14.7", + "@babel/plugin-transform-dotall-regex": "^7.14.5", + "@babel/plugin-transform-duplicate-keys": "^7.14.5", + "@babel/plugin-transform-exponentiation-operator": "^7.14.5", + "@babel/plugin-transform-for-of": "^7.15.4", + "@babel/plugin-transform-function-name": "^7.14.5", + "@babel/plugin-transform-literals": "^7.14.5", + "@babel/plugin-transform-member-expression-literals": "^7.14.5", + "@babel/plugin-transform-modules-amd": "^7.14.5", + "@babel/plugin-transform-modules-commonjs": "^7.15.4", + "@babel/plugin-transform-modules-systemjs": "^7.15.4", + "@babel/plugin-transform-modules-umd": "^7.14.5", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.14.9", + "@babel/plugin-transform-new-target": "^7.14.5", + "@babel/plugin-transform-object-super": "^7.14.5", + "@babel/plugin-transform-parameters": "^7.15.4", + "@babel/plugin-transform-property-literals": "^7.14.5", + "@babel/plugin-transform-regenerator": "^7.14.5", + "@babel/plugin-transform-reserved-words": "^7.14.5", + "@babel/plugin-transform-shorthand-properties": "^7.14.5", + "@babel/plugin-transform-spread": "^7.15.8", + "@babel/plugin-transform-sticky-regex": "^7.14.5", + "@babel/plugin-transform-template-literals": "^7.14.5", + "@babel/plugin-transform-typeof-symbol": "^7.14.5", + "@babel/plugin-transform-unicode-escapes": "^7.14.5", + "@babel/plugin-transform-unicode-regex": "^7.14.5", + "@babel/preset-modules": "^0.1.4", + "@babel/types": "^7.15.6", + "babel-plugin-polyfill-corejs2": "^0.2.2", + "babel-plugin-polyfill-corejs3": "^0.2.5", + "babel-plugin-polyfill-regenerator": "^0.2.2", + "core-js-compat": "^3.16.0", + "semver": "^6.3.0" + } + }, + "@babel/preset-modules": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.4.tgz", + "integrity": "sha512-J36NhwnfdzpmH41M1DrnkkgAqhZaqr/NBdPfQ677mLzlaXo+oDiv1deyCDtgAhz8p328otdob0Du7+xgHGZbKg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + } + }, + "@babel/runtime": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.15.4.tgz", + "integrity": "sha512-99catp6bHCaxr4sJ/DbTGgHS4+Rs2RVd2g7iOap6SLGPDknRK9ztKNsE/Fg6QhSeh1FGE5f6gHGQmvvn3I3xhw==", + "dev": true, + "requires": { + "regenerator-runtime": "^0.13.4" + } + }, + "@babel/template": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.15.4.tgz", + "integrity": "sha512-UgBAfEa1oGuYgDIPM2G+aHa4Nlo9Lh6mGD2bDBGMTbYnc38vulXPuC1MGjYILIEmlwl6Rd+BPR9ee3gm20CBtg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.14.5", + "@babel/parser": "^7.15.4", + "@babel/types": "^7.15.4" + } + }, + "@babel/traverse": { + "version": "7.15.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.15.4.tgz", + "integrity": "sha512-W6lQD8l4rUbQR/vYgSuCAE75ADyyQvOpFVsvPPdkhf6lATXAsQIG9YdtOcu8BB1dZ0LKu+Zo3c1wEcbKeuhdlA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.14.5", + "@babel/generator": "^7.15.4", + "@babel/helper-function-name": "^7.15.4", + "@babel/helper-hoist-variables": "^7.15.4", + "@babel/helper-split-export-declaration": "^7.15.4", + "@babel/parser": "^7.15.4", + "@babel/types": "^7.15.4", + "debug": "^4.1.0", + "globals": "^11.1.0" + } + }, + "@babel/types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.0.tgz", + "integrity": "sha512-PJgg/k3SdLsGb3hhisFvtLOw5ts113klrpLuIPtCJIU+BB24fqq6lf8RWqKJEjzqXR9AEH1rIb5XTqwBHB+kQg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.15.7", + "to-fast-properties": "^2.0.0" + } + }, + "@csstools/convert-colors": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@csstools/convert-colors/-/convert-colors-1.4.0.tgz", + "integrity": "sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw==", + "dev": true + }, + "@discoveryjs/json-ext": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.5.tgz", + "integrity": "sha512-6nFkfkmSeV/rqSaS4oWHgmpnYw194f6hmWF5is6b0J1naJZoiD0NTc9AiUwPHvWsowkjuHErCZT1wa0jg+BLIA==", + "dev": true + }, + "@eslint/eslintrc": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", + "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", + "dev": true, + "requires": { + "ajv": "^6.12.4", + "debug": "^4.1.1", + "espree": "^7.3.0", + "globals": "^13.9.0", + "ignore": "^4.0.6", + "import-fresh": "^3.2.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "strip-json-comments": "^3.1.1" + }, + "dependencies": { + "globals": { + "version": "13.11.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz", + "integrity": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==", + "dev": true, + "requires": { + "type-fest": "^0.20.2" + } + }, + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true + } + } + }, + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true + }, + "@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "requires": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + } + }, + "@tensorflow-models/handpose": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@tensorflow-models/handpose/-/handpose-0.0.7.tgz", + "integrity": "sha512-1JRxE2cWlxgbFogZDhqnHn1RUVsyfpAJXP6wEcO+VZ+PIllHq9eut7Ecqgs2QlsI8Tjp8V0e8VYvePV+Toln0A==", + "requires": { + "rimraf": "^3.0.2" + }, + "dependencies": { + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "requires": { + "glob": "^7.1.3" + } + } + } + }, + "@tensorflow/tfjs-backend-cpu": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-backend-cpu/-/tfjs-backend-cpu-3.11.0.tgz", + "integrity": "sha512-ShLkrZ4/rmhZwzGKenMFDfQnaEbyZgWA5F8JRa52Iob/vptlZeuOzjq87CZKmZMUmDswR9A2kjzovT/H1bJdWQ==", + "requires": { + "@types/seedrandom": "2.4.27", + "seedrandom": "2.4.3" + } + }, + "@tensorflow/tfjs-backend-webgl": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-backend-webgl/-/tfjs-backend-webgl-3.11.0.tgz", + "integrity": "sha512-rNnc/dZ7LIl9O/Pn9W24I1h8kgpJ+XvG8NrdNSfIoWPCW4fvPSlU7B3yMeZXvRneny+z+T3xRs96nWyU2mZBJw==", + "requires": { + "@tensorflow/tfjs-backend-cpu": "3.11.0", + "@types/offscreencanvas": "~2019.3.0", + "@types/seedrandom": "2.4.27", + "@types/webgl-ext": "0.0.30", + "@types/webgl2": "0.0.6", + "seedrandom": "2.4.3" + } + }, + "@tensorflow/tfjs-converter": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-converter/-/tfjs-converter-3.11.0.tgz", + "integrity": "sha512-rTRIKvBoqL0qdPYpm8UXauZycOiaBHZB2E2v3OoXoHnjvle/Xn/09uZJdrixgGhR+Kahs3Vz27BEEFz6RI5j2w==", + "requires": {} + }, + "@tensorflow/tfjs-core": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/@tensorflow/tfjs-core/-/tfjs-core-3.11.0.tgz", + "integrity": "sha512-JOp+1+LCd0Xg3hu7fu6iQPWZnN8Hc6ssfP7B+625XH5GYY1/OhVASa7Ahe2mJr9gZovY2lw8FUejLh1jMmBb1Q==", + "requires": { + "@types/long": "^4.0.1", + "@types/offscreencanvas": "~2019.3.0", + "@types/seedrandom": "2.4.27", + "@types/webgl-ext": "0.0.30", + "long": "4.0.0", + "node-fetch": "~2.6.1", + "seedrandom": "2.4.3" + } + }, + "@trysound/sax": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", + "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", + "dev": true + }, + "@types/eslint": { + "version": "7.28.1", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.28.1.tgz", + "integrity": "sha512-XhZKznR3i/W5dXqUhgU9fFdJekufbeBd5DALmkuXoeFcjbQcPk+2cL+WLHf6Q81HWAnM2vrslIHpGVyCAviRwg==", + "dev": true, + "requires": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "@types/eslint-scope": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.1.tgz", + "integrity": "sha512-SCFeogqiptms4Fg29WpOTk5nHIzfpKCemSN63ksBQYKTcXoJEmJagV+DhVmbapZzY4/5YaOV1nZwrsU79fFm1g==", + "dev": true, + "requires": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "@types/estree": { + "version": "0.0.50", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.50.tgz", + "integrity": "sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw==", + "dev": true + }, + "@types/glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-w+LsMxKyYQm347Otw+IfBXOv9UWVjpHpCDdbBMt8Kz/xbvCYNjP+0qPh91Km3iKfSRLBB0P7fAMf0KHrPu+MyA==", + "dev": true, + "requires": { + "@types/minimatch": "*", + "@types/node": "*" + } + }, + "@types/html-minifier-terser": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-5.1.2.tgz", + "integrity": "sha512-h4lTMgMJctJybDp8CQrxTUiiYmedihHWkjnF/8Pxseu2S6Nlfcy8kwboQ8yejh456rP2yWoEVm1sS/FVsfM48w==", + "dev": true + }, + "@types/http-proxy": { + "version": "1.17.7", + "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.7.tgz", + "integrity": "sha512-9hdj6iXH64tHSLTY+Vt2eYOGzSogC+JQ2H7bdPWkuh7KXP5qLllWx++t+K9Wk556c3dkDdPws/SpMRi0sdCT1w==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/json-schema": { + "version": "7.0.9", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", + "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==", + "dev": true + }, + "@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=", + "dev": true + }, + "@types/long": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.1.tgz", + "integrity": "sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==" + }, + "@types/minimatch": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", + "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==", + "dev": true + }, + "@types/minimist": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", + "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", + "dev": true + }, + "@types/node": { + "version": "16.11.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.0.tgz", + "integrity": "sha512-8MLkBIYQMuhRBQzGN9875bYsOhPnf/0rgXGo66S2FemHkhbn9qtsz9ywV1iCG+vbjigE4WUNVvw37Dx+L0qsPg==", + "dev": true + }, + "@types/normalize-package-data": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", + "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", + "dev": true + }, + "@types/offscreencanvas": { + "version": "2019.3.0", + "resolved": "https://registry.npmjs.org/@types/offscreencanvas/-/offscreencanvas-2019.3.0.tgz", + "integrity": "sha512-esIJx9bQg+QYF0ra8GnvfianIY8qWB0GBx54PK5Eps6m+xTj86KLavHv6qDhzKcu5UUOgNfJ2pWaIIV7TRUd9Q==" + }, + "@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", + "dev": true + }, + "@types/retry": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.1.tgz", + "integrity": "sha512-xoDlM2S4ortawSWORYqsdU+2rxdh4LRW9ytc3zmT37RIKQh6IHyKwwtKhKis9ah8ol07DCkZxPt8BBvPjC6v4g==", + "dev": true + }, + "@types/seedrandom": { + "version": "2.4.27", + "resolved": "https://registry.npmjs.org/@types/seedrandom/-/seedrandom-2.4.27.tgz", + "integrity": "sha1-nbVjk33YaRX2kJK8QyWdL0hXjkE=" + }, + "@types/webgl-ext": { + "version": "0.0.30", + "resolved": "https://registry.npmjs.org/@types/webgl-ext/-/webgl-ext-0.0.30.tgz", + "integrity": "sha512-LKVgNmBxN0BbljJrVUwkxwRYqzsAEPcZOe6S2T6ZaBDIrFp0qu4FNlpc5sM1tGbXUYFgdVQIoeLk1Y1UoblyEg==" + }, + "@types/webgl2": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@types/webgl2/-/webgl2-0.0.6.tgz", + "integrity": "sha512-50GQhDVTq/herLMiqSQkdtRu+d5q/cWHn4VvKJtrj4DJAjo1MNkWYa2MA41BaBO1q1HgsUjuQvEOk0QHvlnAaQ==" + }, + "@webassemblyjs/ast": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", + "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", + "dev": true, + "requires": { + "@webassemblyjs/helper-numbers": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1" + } + }, + "@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", + "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", + "dev": true + }, + "@webassemblyjs/helper-api-error": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", + "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", + "dev": true + }, + "@webassemblyjs/helper-buffer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", + "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", + "dev": true + }, + "@webassemblyjs/helper-numbers": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", + "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", + "dev": true, + "requires": { + "@webassemblyjs/floating-point-hex-parser": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", + "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", + "dev": true + }, + "@webassemblyjs/helper-wasm-section": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", + "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1" + } + }, + "@webassemblyjs/ieee754": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", + "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", + "dev": true, + "requires": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "@webassemblyjs/leb128": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", + "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", + "dev": true, + "requires": { + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/utf8": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", + "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", + "dev": true + }, + "@webassemblyjs/wasm-edit": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", + "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/helper-wasm-section": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-opt": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "@webassemblyjs/wast-printer": "1.11.1" + } + }, + "@webassemblyjs/wasm-gen": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", + "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "@webassemblyjs/wasm-opt": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", + "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1" + } + }, + "@webassemblyjs/wasm-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", + "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "@webassemblyjs/wast-printer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", + "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "@webpack-cli/configtest": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.1.0.tgz", + "integrity": "sha512-ttOkEkoalEHa7RaFYpM0ErK1xc4twg3Am9hfHhL7MVqlHebnkYd2wuI/ZqTDj0cVzZho6PdinY0phFZV3O0Mzg==", + "dev": true, + "requires": {} + }, + "@webpack-cli/info": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.4.0.tgz", + "integrity": "sha512-F6b+Man0rwE4n0409FyAJHStYA5OIZERxmnUfLVwv0mc0V1wLad3V7jqRlMkgKBeAq07jUvglacNaa6g9lOpuw==", + "dev": true, + "requires": { + "envinfo": "^7.7.3" + } + }, + "@webpack-cli/serve": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.6.0.tgz", + "integrity": "sha512-ZkVeqEmRpBV2GHvjjUZqEai2PpUbuq8Bqd//vEYsp63J8WyexI8ppCqVS3Zs0QADf6aWuPdU+0XsPI647PVlQA==", + "dev": true, + "requires": {} + }, + "@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "accepts": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", + "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "dev": true, + "requires": { + "mime-types": "~2.1.24", + "negotiator": "0.6.2" + } + }, + "acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true + }, + "acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "requires": {} + }, + "aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "dev": true, + "requires": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + } + }, + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "requires": {} + }, + "alphanum-sort": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", + "integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=", + "dev": true + }, + "amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", + "dev": true + }, + "ansi-colors": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", + "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", + "dev": true + }, + "ansi-html-community": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", + "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==", + "dev": true + }, + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "anymatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", + "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "dev": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "aproba": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", + "dev": true + }, + "are-we-there-yet": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz", + "integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==", + "dev": true, + "requires": { + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "array-find": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-find/-/array-find-1.0.0.tgz", + "integrity": "sha1-bI4obRHtdoMn+OYuzuhzU8o+eLg=", + "dev": true + }, + "array-flatten": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", + "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==", + "dev": true + }, + "array-includes": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.4.tgz", + "integrity": "sha512-ZTNSQkmWumEbiHO2GF4GmWxYVTiQyJy2XOTa15sdQSrvKn7l+180egQMqlrMOUMCyLMD7pmyQe4mMDUT6Behrw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1", + "get-intrinsic": "^1.1.1", + "is-string": "^1.0.7" + } + }, + "array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true + }, + "array-uniq": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", + "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", + "dev": true + }, + "array.prototype.flat": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.5.tgz", + "integrity": "sha512-KaYU+S+ndVqyUnignHftkwc58o3uVU1jzczILJ1tN2YaIZpFIKBiP/x/j97E5MVPsaCloPbqWLB/8qCTVvT2qg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0" + } + }, + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true + }, + "asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "dev": true, + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true + }, + "astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true + }, + "async": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", + "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", + "dev": true, + "requires": { + "lodash": "^4.17.14" + } + }, + "async-foreach": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz", + "integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI=", + "dev": true + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true + }, + "autoprefixer": { + "version": "9.8.8", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.8.8.tgz", + "integrity": "sha512-eM9d/swFopRt5gdJ7jrpCwgvEMIayITpojhkkSMRsFHYuH5bkSQ4p/9qTEHtmNudUZh22Tehu7I6CxAW0IXTKA==", + "dev": true, + "requires": { + "browserslist": "^4.12.0", + "caniuse-lite": "^1.0.30001109", + "normalize-range": "^0.1.2", + "num2fraction": "^1.2.2", + "picocolors": "^0.2.1", + "postcss": "^7.0.32", + "postcss-value-parser": "^4.1.0" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "dev": true + }, + "aws4": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", + "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==", + "dev": true + }, + "babel-loader": { + "version": "8.2.2", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.2.2.tgz", + "integrity": "sha512-JvTd0/D889PQBtUXJ2PXaKU/pjZDMtHA9V2ecm+eNRmmBCMR09a+fmpGTNwnJtFmFl5Ei7Vy47LjBb+L0wQ99g==", + "dev": true, + "requires": { + "find-cache-dir": "^3.3.1", + "loader-utils": "^1.4.0", + "make-dir": "^3.1.0", + "schema-utils": "^2.6.5" + } + }, + "babel-plugin-dynamic-import-node": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", + "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", + "dev": true, + "requires": { + "object.assign": "^4.1.0" + } + }, + "babel-plugin-polyfill-corejs2": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.2.3.tgz", + "integrity": "sha512-NDZ0auNRzmAfE1oDDPW2JhzIMXUk+FFe2ICejmt5T4ocKgiQx3e0VCRx9NCAidcMtL2RUZaWtXnmjTCkx0tcbA==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.13.11", + "@babel/helper-define-polyfill-provider": "^0.2.4", + "semver": "^6.1.1" + } + }, + "babel-plugin-polyfill-corejs3": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.2.5.tgz", + "integrity": "sha512-ninF5MQNwAX9Z7c9ED+H2pGt1mXdP4TqzlHKyPIYmJIYz0N+++uwdM7RnJukklhzJ54Q84vA4ZJkgs7lu5vqcw==", + "dev": true, + "requires": { + "@babel/helper-define-polyfill-provider": "^0.2.2", + "core-js-compat": "^3.16.2" + } + }, + "babel-plugin-polyfill-regenerator": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.2.3.tgz", + "integrity": "sha512-JVE78oRZPKFIeUqFGrSORNzQnrDwZR16oiWeGM8ZyjBn2XAT5OjP+wXx5ESuo33nUsFUEJYjtklnsKbxW5L+7g==", + "dev": true, + "requires": { + "@babel/helper-define-polyfill-provider": "^0.2.4" + } + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "batch": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", + "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=", + "dev": true + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "dev": true, + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true + }, + "binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true + }, + "body-parser": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", + "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", + "dev": true, + "requires": { + "bytes": "3.1.0", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "~1.1.2", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "on-finished": "~2.3.0", + "qs": "6.7.0", + "raw-body": "2.4.0", + "type-is": "~1.6.17" + }, + "dependencies": { + "bytes": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", + "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", + "dev": true + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "qs": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", + "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", + "dev": true + } + } + }, + "bonjour": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz", + "integrity": "sha1-jokKGD2O6aI5OzhExpGkK897yfU=", + "dev": true, + "requires": { + "array-flatten": "^2.1.0", + "deep-equal": "^1.0.1", + "dns-equal": "^1.0.0", + "dns-txt": "^2.0.2", + "multicast-dns": "^6.0.1", + "multicast-dns-service-types": "^1.1.0" + } + }, + "boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "browserslist": { + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.17.4.tgz", + "integrity": "sha512-Zg7RpbZpIJRW3am9Lyckue7PLytvVxxhJj1CaJVlCWENsGEAOlnlt8X0ZxGRPp7Bt9o8tIRM5SEXy4BCPMJjLQ==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001265", + "electron-to-chromium": "^1.3.867", + "escalade": "^3.1.1", + "node-releases": "^2.0.0", + "picocolors": "^1.0.0" + } + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "buffer-indexof": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.1.1.tgz", + "integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==", + "dev": true + }, + "bytes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", + "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=", + "dev": true + }, + "call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dev": true, + "requires": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + } + }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, + "camel-case": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", + "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", + "dev": true, + "requires": { + "pascal-case": "^3.1.2", + "tslib": "^2.0.3" + } + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "camelcase-keys": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", + "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", + "dev": true, + "requires": { + "camelcase": "^5.3.1", + "map-obj": "^4.0.0", + "quick-lru": "^4.0.1" + } + }, + "caniuse-api": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz", + "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==", + "dev": true, + "requires": { + "browserslist": "^4.0.0", + "caniuse-lite": "^1.0.0", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" + } + }, + "caniuse-lite": { + "version": "1.0.30001267", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001267.tgz", + "integrity": "sha512-r1mjTzAuJ9W8cPBGbbus8E0SKcUP7gn03R14Wk8FlAlqhH9hroy9nLqmpuXlfKEw/oILW+FGz47ipXV2O7x8lg==", + "dev": true + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "chokidar": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz", + "integrity": "sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==", + "dev": true, + "requires": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "fsevents": "~2.3.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "dependencies": { + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + } + } + }, + "chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "dev": true + }, + "chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true + }, + "clean-css": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.3.tgz", + "integrity": "sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA==", + "dev": true, + "requires": { + "source-map": "~0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "dev": true + }, + "clean-webpack-plugin": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/clean-webpack-plugin/-/clean-webpack-plugin-4.0.0.tgz", + "integrity": "sha512-WuWE1nyTNAyW5T7oNyys2EN0cfP2fdRxhxnIQWiAp0bMabPdHhoGxM8A6YL2GhqwgrPnnaemVE7nv5XJ2Fhh2w==", + "dev": true, + "requires": { + "del": "^4.1.1" + } + }, + "cliui": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", + "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", + "dev": true, + "requires": { + "string-width": "^3.1.0", + "strip-ansi": "^5.2.0", + "wrap-ansi": "^5.1.0" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + } + } + }, + "clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + } + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "colord": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/colord/-/colord-2.8.0.tgz", + "integrity": "sha512-kNkVV4KFta3TYQv0bzs4xNwLaeag261pxgzGQSh4cQ1rEhYjcTJfFRP0SDlbhLONg0eSoLzrDd79PosjbltufA==", + "dev": true + }, + "colorette": { + "version": "2.0.16", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.16.tgz", + "integrity": "sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==", + "dev": true + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true + }, + "commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", + "dev": true + }, + "compressible": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", + "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", + "dev": true, + "requires": { + "mime-db": ">= 1.43.0 < 2" + } + }, + "compression": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz", + "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==", + "dev": true, + "requires": { + "accepts": "~1.3.5", + "bytes": "3.0.0", + "compressible": "~2.0.16", + "debug": "2.6.9", + "on-headers": "~1.0.2", + "safe-buffer": "5.1.2", + "vary": "~1.1.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "confusing-browser-globals": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.10.tgz", + "integrity": "sha512-gNld/3lySHwuhaVluJUKLePYirM3QNCKzVxqAdhJII9/WXKVX5PURzMVJspS1jTslSqjeuG4KMVTSouit5YPHA==", + "dev": true + }, + "connect-history-api-fallback": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz", + "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==", + "dev": true + }, + "console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", + "dev": true + }, + "content-disposition": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", + "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", + "dev": true, + "requires": { + "safe-buffer": "5.1.2" + } + }, + "content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", + "dev": true + }, + "convert-source-map": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", + "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.1" + } + }, + "cookie": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", + "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==", + "dev": true + }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", + "dev": true + }, + "copy-webpack-plugin": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-9.0.1.tgz", + "integrity": "sha512-14gHKKdYIxF84jCEgPgYXCPpldbwpxxLbCmA7LReY7gvbaT555DgeBWBgBZM116tv/fO6RRJrsivBqRyRlukhw==", + "dev": true, + "requires": { + "fast-glob": "^3.2.5", + "glob-parent": "^6.0.0", + "globby": "^11.0.3", + "normalize-path": "^3.0.0", + "p-limit": "^3.1.0", + "schema-utils": "^3.0.0", + "serialize-javascript": "^6.0.0" + }, + "dependencies": { + "schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + } + } + }, + "core-js-compat": { + "version": "3.18.3", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.18.3.tgz", + "integrity": "sha512-4zP6/y0a2RTHN5bRGT7PTq9lVt3WzvffTNjqnTKsXhkAYNDTkdCLOIfAdOLcQ/7TDdyRj3c+NeHe1NmF1eDScw==", + "dev": true, + "requires": { + "browserslist": "^4.17.3", + "semver": "7.0.0" + }, + "dependencies": { + "semver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", + "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", + "dev": true + } + } + }, + "core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, + "cosmiconfig": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz", + "integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==", + "dev": true, + "requires": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + } + }, + "cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.1" + } + }, + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "css-blank-pseudo": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/css-blank-pseudo/-/css-blank-pseudo-0.1.4.tgz", + "integrity": "sha512-LHz35Hr83dnFeipc7oqFDmsjHdljj3TQtxGGiNWSOsTLIAubSm4TEz8qCaKFpk7idaQ1GfWscF4E6mgpBysA1w==", + "dev": true, + "requires": { + "postcss": "^7.0.5" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "css-color-names": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-1.0.1.tgz", + "integrity": "sha512-/loXYOch1qU1biStIFsHH8SxTmOseh1IJqFvy8IujXOm1h+QjUdDhkzOrR5HG8K8mlxREj0yfi8ewCHx0eMxzA==", + "dev": true + }, + "css-declaration-sorter": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.1.3.tgz", + "integrity": "sha512-SvjQjNRZgh4ULK1LDJ2AduPKUKxIqmtU7ZAyi47BTV+M90Qvxr9AB6lKlLbDUfXqI9IQeYA8LbAsCZPpJEV3aA==", + "dev": true, + "requires": { + "timsort": "^0.3.0" + } + }, + "css-has-pseudo": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/css-has-pseudo/-/css-has-pseudo-0.10.0.tgz", + "integrity": "sha512-Z8hnfsZu4o/kt+AuFzeGpLVhFOGO9mluyHBaA2bA8aCGTwah5sT3WV/fTHH8UNZUytOIImuGPrl/prlb4oX4qQ==", + "dev": true, + "requires": { + "postcss": "^7.0.6", + "postcss-selector-parser": "^5.0.0-rc.4" + }, + "dependencies": { + "cssesc": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", + "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", + "dev": true + }, + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "postcss-selector-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", + "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", + "dev": true, + "requires": { + "cssesc": "^2.0.0", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "css-loader": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.4.0.tgz", + "integrity": "sha512-Dlt6qfsxI/w1vU0r8qDd4BtMPxWqJeY5qQU7SmmZfvbpe6Xl18McO4GhyaMLns24Y2VNPiZwJPQ8JSbg4qvQLw==", + "dev": true, + "requires": { + "icss-utils": "^5.1.0", + "postcss": "^8.2.15", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.0", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "postcss-value-parser": "^4.1.0", + "semver": "^7.3.5" + }, + "dependencies": { + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "css-minimizer-webpack-plugin": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.1.1.tgz", + "integrity": "sha512-KlB8l5uoNcf9F7i5kXnkxoqJGd2BXH4f0+Lj2vSWSmuvMLYO1kNsJ1KHSzeDW8e45/whgSOPcKVT/3JopkT8dg==", + "dev": true, + "requires": { + "cssnano": "^5.0.6", + "jest-worker": "^27.0.2", + "p-limit": "^3.0.2", + "postcss": "^8.3.5", + "schema-utils": "^3.1.0", + "serialize-javascript": "^6.0.0", + "source-map": "^0.6.1" + }, + "dependencies": { + "schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "css-prefers-color-scheme": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/css-prefers-color-scheme/-/css-prefers-color-scheme-3.1.1.tgz", + "integrity": "sha512-MTu6+tMs9S3EUqzmqLXEcgNRbNkkD/TGFvowpeoWJn5Vfq7FMgsmRQs9X5NXAURiOBmOxm/lLjsDNXDE6k9bhg==", + "dev": true, + "requires": { + "postcss": "^7.0.5" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "css-select": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.1.3.tgz", + "integrity": "sha512-gT3wBNd9Nj49rAbmtFHj1cljIAOLYSX1nZ8CB7TBO3INYckygm5B7LISU/szY//YmdiSLbJvDLOx9VnMVpMBxA==", + "dev": true, + "requires": { + "boolbase": "^1.0.0", + "css-what": "^5.0.0", + "domhandler": "^4.2.0", + "domutils": "^2.6.0", + "nth-check": "^2.0.0" + } + }, + "css-tree": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz", + "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==", + "dev": true, + "requires": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "css-what": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-5.1.0.tgz", + "integrity": "sha512-arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw==", + "dev": true + }, + "cssdb": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/cssdb/-/cssdb-4.4.0.tgz", + "integrity": "sha512-LsTAR1JPEM9TpGhl/0p3nQecC2LJ0kD8X5YARu1hk/9I1gril5vDtMZyNxcEpxxDj34YNck/ucjuoUd66K03oQ==", + "dev": true + }, + "cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true + }, + "cssnano": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.0.8.tgz", + "integrity": "sha512-Lda7geZU0Yu+RZi2SGpjYuQz4HI4/1Y+BhdD0jL7NXAQ5larCzVn+PUGuZbDMYz904AXXCOgO5L1teSvgu7aFg==", + "dev": true, + "requires": { + "cssnano-preset-default": "^5.1.4", + "is-resolvable": "^1.1.0", + "lilconfig": "^2.0.3", + "yaml": "^1.10.2" + } + }, + "cssnano-preset-default": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.1.4.tgz", + "integrity": "sha512-sPpQNDQBI3R/QsYxQvfB4mXeEcWuw0wGtKtmS5eg8wudyStYMgKOQT39G07EbW1LB56AOYrinRS9f0ig4Y3MhQ==", + "dev": true, + "requires": { + "css-declaration-sorter": "^6.0.3", + "cssnano-utils": "^2.0.1", + "postcss-calc": "^8.0.0", + "postcss-colormin": "^5.2.0", + "postcss-convert-values": "^5.0.1", + "postcss-discard-comments": "^5.0.1", + "postcss-discard-duplicates": "^5.0.1", + "postcss-discard-empty": "^5.0.1", + "postcss-discard-overridden": "^5.0.1", + "postcss-merge-longhand": "^5.0.2", + "postcss-merge-rules": "^5.0.2", + "postcss-minify-font-values": "^5.0.1", + "postcss-minify-gradients": "^5.0.2", + "postcss-minify-params": "^5.0.1", + "postcss-minify-selectors": "^5.1.0", + "postcss-normalize-charset": "^5.0.1", + "postcss-normalize-display-values": "^5.0.1", + "postcss-normalize-positions": "^5.0.1", + "postcss-normalize-repeat-style": "^5.0.1", + "postcss-normalize-string": "^5.0.1", + "postcss-normalize-timing-functions": "^5.0.1", + "postcss-normalize-unicode": "^5.0.1", + "postcss-normalize-url": "^5.0.2", + "postcss-normalize-whitespace": "^5.0.1", + "postcss-ordered-values": "^5.0.2", + "postcss-reduce-initial": "^5.0.1", + "postcss-reduce-transforms": "^5.0.1", + "postcss-svgo": "^5.0.2", + "postcss-unique-selectors": "^5.0.1" + } + }, + "cssnano-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-2.0.1.tgz", + "integrity": "sha512-i8vLRZTnEH9ubIyfdZCAdIdgnHAUeQeByEeQ2I7oTilvP9oHO6RScpeq3GsFUVqeB8uZgOQ9pw8utofNn32hhQ==", + "dev": true, + "requires": {} + }, + "csso": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz", + "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==", + "dev": true, + "requires": { + "css-tree": "^1.1.2" + } + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "debug": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", + "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + }, + "decamelize-keys": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", + "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", + "dev": true, + "requires": { + "decamelize": "^1.1.0", + "map-obj": "^1.0.0" + }, + "dependencies": { + "map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", + "dev": true + } + } + }, + "deep-equal": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.1.tgz", + "integrity": "sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g==", + "dev": true, + "requires": { + "is-arguments": "^1.0.4", + "is-date-object": "^1.0.1", + "is-regex": "^1.0.4", + "object-is": "^1.0.1", + "object-keys": "^1.1.1", + "regexp.prototype.flags": "^1.2.0" + } + }, + "deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "default-gateway": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz", + "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==", + "dev": true, + "requires": { + "execa": "^5.0.0" + } + }, + "define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "dev": true + }, + "define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "dev": true, + "requires": { + "object-keys": "^1.0.12" + } + }, + "del": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/del/-/del-4.1.1.tgz", + "integrity": "sha512-QwGuEUouP2kVwQenAsOof5Fv8K9t3D8Ca8NxcXKrIpEHjTXK5J2nXLdP+ALI1cgv8wj7KuwBhTwBkOZSJKM5XQ==", + "dev": true, + "requires": { + "@types/glob": "^7.1.1", + "globby": "^6.1.0", + "is-path-cwd": "^2.0.0", + "is-path-in-cwd": "^2.0.0", + "p-map": "^2.0.0", + "pify": "^4.0.1", + "rimraf": "^2.6.3" + }, + "dependencies": { + "array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "dev": true, + "requires": { + "array-uniq": "^1.0.1" + } + }, + "globby": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", + "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", + "dev": true, + "requires": { + "array-union": "^1.0.1", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + } + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "dev": true + }, + "delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", + "dev": true + }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", + "dev": true + }, + "destroy": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", + "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", + "dev": true + }, + "detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", + "dev": true + }, + "dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "requires": { + "path-type": "^4.0.0" + } + }, + "dns-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", + "integrity": "sha1-s55/HabrCnW6nBcySzR1PEfgZU0=", + "dev": true + }, + "dns-packet": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.4.tgz", + "integrity": "sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA==", + "dev": true, + "requires": { + "ip": "^1.1.0", + "safe-buffer": "^5.0.1" + } + }, + "dns-txt": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/dns-txt/-/dns-txt-2.0.2.tgz", + "integrity": "sha1-uR2Ab10nGI5Ks+fRB9iBocxGQrY=", + "dev": true, + "requires": { + "buffer-indexof": "^1.0.0" + } + }, + "doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, + "dom-converter": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", + "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", + "dev": true, + "requires": { + "utila": "~0.4" + } + }, + "dom-serializer": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz", + "integrity": "sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==", + "dev": true, + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + } + }, + "domelementtype": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", + "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==", + "dev": true + }, + "domhandler": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.2.2.tgz", + "integrity": "sha512-PzE9aBMsdZO8TK4BnuJwH0QT41wgMbRzuZrHUcpYncEjmQazq8QEaBWgLG7ZyC/DAZKEgglpIA6j4Qn/HmxS3w==", + "dev": true, + "requires": { + "domelementtype": "^2.2.0" + } + }, + "domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dev": true, + "requires": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + } + }, + "dot-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", + "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", + "dev": true, + "requires": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "dev": true, + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", + "dev": true + }, + "electron-to-chromium": { + "version": "1.3.870", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.870.tgz", + "integrity": "sha512-PiJMshfq6PL+i1V+nKLwhHbCKeD8eAz8rvO9Cwk/7cChOHJBtufmjajLyYLsSRHguRFiOCVx3XzJLeZsIAYfSA==", + "dev": true + }, + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "dev": true + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", + "dev": true + }, + "enhanced-resolve": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-0.9.1.tgz", + "integrity": "sha1-TW5omzcl+GCQknzMhs2fFjW4ni4=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "memory-fs": "^0.2.0", + "tapable": "^0.1.8" + } + }, + "enquirer": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", + "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "dev": true, + "requires": { + "ansi-colors": "^4.1.1" + } + }, + "entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true + }, + "env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "dev": true + }, + "envinfo": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", + "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", + "dev": true + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "es-abstract": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.19.1.tgz", + "integrity": "sha512-2vJ6tjA/UfqLm2MPs7jxVybLoB8i1t1Jd9R3kISld20sIxPcTbLuggQOUxeWeAvIUkduv/CfMjuh4WmiXr2v9w==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "get-intrinsic": "^1.1.1", + "get-symbol-description": "^1.0.0", + "has": "^1.0.3", + "has-symbols": "^1.0.2", + "internal-slot": "^1.0.3", + "is-callable": "^1.2.4", + "is-negative-zero": "^2.0.1", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.1", + "is-string": "^1.0.7", + "is-weakref": "^1.0.1", + "object-inspect": "^1.11.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.2", + "string.prototype.trimend": "^1.0.4", + "string.prototype.trimstart": "^1.0.4", + "unbox-primitive": "^1.0.1" + } + }, + "es-module-lexer": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", + "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", + "dev": true + }, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "eslint": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.28.0.tgz", + "integrity": "sha512-UMfH0VSjP0G4p3EWirscJEQ/cHqnT/iuH6oNZOB94nBjWbMnhGEPxsZm1eyIW0C/9jLI0Fow4W5DXLjEI7mn1g==", + "dev": true, + "requires": { + "@babel/code-frame": "7.12.11", + "@eslint/eslintrc": "^0.4.2", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.0.1", + "doctrine": "^3.0.0", + "enquirer": "^2.3.5", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^5.1.1", + "eslint-utils": "^2.1.0", + "eslint-visitor-keys": "^2.0.0", + "espree": "^7.3.1", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^5.1.2", + "globals": "^13.6.0", + "ignore": "^4.0.6", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^3.13.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.0.4", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "progress": "^2.0.0", + "regexpp": "^3.1.0", + "semver": "^7.2.1", + "strip-ansi": "^6.0.0", + "strip-json-comments": "^3.1.0", + "table": "^6.0.9", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "dependencies": { + "@babel/code-frame": { + "version": "7.12.11", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", + "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", + "dev": true, + "requires": { + "@babel/highlight": "^7.10.4" + } + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true + }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + }, + "globals": { + "version": "13.11.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz", + "integrity": "sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g==", + "dev": true, + "requires": { + "type-fest": "^0.20.2" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true + } + } + }, + "eslint-config-airbnb-base": { + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.2.1.tgz", + "integrity": "sha512-GOrQyDtVEc1Xy20U7vsB2yAoB4nBlfH5HZJeatRXHleO+OS5Ot+MWij4Dpltw4/DyIkqUfqz1epfhVR5XWWQPA==", + "dev": true, + "requires": { + "confusing-browser-globals": "^1.0.10", + "object.assign": "^4.1.2", + "object.entries": "^1.1.2" + } + }, + "eslint-config-prettier": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz", + "integrity": "sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==", + "dev": true, + "requires": {} + }, + "eslint-import-resolver-node": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", + "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", + "dev": true, + "requires": { + "debug": "^3.2.7", + "resolve": "^1.20.0" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "eslint-import-resolver-webpack": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-webpack/-/eslint-import-resolver-webpack-0.13.1.tgz", + "integrity": "sha512-O/8mG6AHmaKYSMb4lWxiXPpaARxOJ4rMQEHJ8vTgjS1MXooJA3KPgBPPAdOPoV17v5ML5120qod5FBLM+DtgEw==", + "dev": true, + "requires": { + "array-find": "^1.0.0", + "debug": "^3.2.7", + "enhanced-resolve": "^0.9.1", + "find-root": "^1.1.0", + "has": "^1.0.3", + "interpret": "^1.4.0", + "is-core-module": "^2.4.0", + "is-regex": "^1.1.3", + "lodash": "^4.17.21", + "resolve": "^1.20.0", + "semver": "^5.7.1" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, + "eslint-module-utils": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.1.tgz", + "integrity": "sha512-fjoetBXQZq2tSTWZ9yWVl2KuFrTZZH3V+9iD1V1RfpDgxzJR+mPd/KZmMiA8gbPqdBzpNiEHOuT7IYEWxrH0zQ==", + "dev": true, + "requires": { + "debug": "^3.2.7", + "find-up": "^2.1.0", + "pkg-dir": "^2.0.0" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "eslint-plugin-import": { + "version": "2.25.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.2.tgz", + "integrity": "sha512-qCwQr9TYfoBHOFcVGKY9C9unq05uOxxdklmBXLVvcwo68y5Hta6/GzCZEMx2zQiu0woKNEER0LE7ZgaOfBU14g==", + "dev": true, + "requires": { + "array-includes": "^3.1.4", + "array.prototype.flat": "^1.2.5", + "debug": "^2.6.9", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.6", + "eslint-module-utils": "^2.7.0", + "has": "^1.0.3", + "is-core-module": "^2.7.0", + "is-glob": "^4.0.3", + "minimatch": "^3.0.4", + "object.values": "^1.1.5", + "resolve": "^1.20.0", + "tsconfig-paths": "^3.11.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "eslint-plugin-prettier": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.0.0.tgz", + "integrity": "sha512-98MqmCJ7vJodoQK359bqQWaxOE0CS8paAz/GgjaZLyex4TTk3g9HugoO89EqWCrFiOqn9EVvcoo7gZzONCWVwQ==", + "dev": true, + "requires": { + "prettier-linter-helpers": "^1.0.0" + } + }, + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^1.1.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true + } + } + }, + "eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true + }, + "espree": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", + "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", + "dev": true, + "requires": { + "acorn": "^7.4.0", + "acorn-jsx": "^5.3.1", + "eslint-visitor-keys": "^1.3.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true + } + } + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esquery": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", + "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "dev": true, + "requires": { + "estraverse": "^5.1.0" + }, + "dependencies": { + "estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true + } + } + }, + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "requires": { + "estraverse": "^5.2.0" + }, + "dependencies": { + "estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true + } + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", + "dev": true + }, + "eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", + "dev": true + }, + "events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true + }, + "execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + } + }, + "express": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", + "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", + "dev": true, + "requires": { + "accepts": "~1.3.7", + "array-flatten": "1.1.1", + "body-parser": "1.19.0", + "content-disposition": "0.5.3", + "content-type": "~1.0.4", + "cookie": "0.4.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "~1.1.2", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "~1.1.2", + "fresh": "0.5.2", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.5", + "qs": "6.7.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.1.2", + "send": "0.17.1", + "serve-static": "1.14.1", + "setprototypeof": "1.1.1", + "statuses": "~1.5.0", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "dependencies": { + "array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=", + "dev": true + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "qs": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", + "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", + "dev": true + } + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", + "dev": true + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "fast-diff": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", + "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", + "dev": true + }, + "fast-glob": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz", + "integrity": "sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "dependencies": { + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + } + } + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true + }, + "fastest-levenshtein": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.12.tgz", + "integrity": "sha512-On2N+BpYJ15xIC974QNVuYGMOlEVt4s0EOI3wwMqOmK1fdDY+FN/zltPV8vosq4ad4c/gJ1KHScUn/6AWIgiow==", + "dev": true + }, + "fastq": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", + "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", + "dev": true, + "requires": { + "reusify": "^1.0.4" + } + }, + "faye-websocket": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", + "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", + "dev": true, + "requires": { + "websocket-driver": ">=0.5.1" + } + }, + "file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "requires": { + "flat-cache": "^3.0.4" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "finalhandler": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", + "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", + "dev": true, + "requires": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "statuses": "~1.5.0", + "unpipe": "~1.0.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "dev": true, + "requires": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + }, + "dependencies": { + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "requires": { + "find-up": "^4.0.0" + } + } + } + }, + "find-root": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", + "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==", + "dev": true + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "fingerpose": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/fingerpose/-/fingerpose-0.1.0.tgz", + "integrity": "sha512-OXIRuRTgukBOo4xUO+vPchzHftZOPxO7VRh4HDjTg5NGr4gSkiY+LQShjsKAzmpRiRdmTgDh0dNsGpWa1Jsx3Q==" + }, + "flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "requires": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "dependencies": { + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + } + } + }, + "flatted": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.2.tgz", + "integrity": "sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA==", + "dev": true + }, + "flatten": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/flatten/-/flatten-1.0.3.tgz", + "integrity": "sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg==", + "dev": true + }, + "follow-redirects": { + "version": "1.14.4", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.4.tgz", + "integrity": "sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g==", + "dev": true + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "dev": true + }, + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "dev": true + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", + "dev": true + }, + "fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "dev": true, + "requires": { + "minipass": "^3.0.0" + } + }, + "fs-monkey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz", + "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==", + "dev": true + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + }, + "fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "optional": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "dev": true + }, + "gauge": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", + "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", + "dev": true, + "requires": { + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } + } + }, + "gaze": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz", + "integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==", + "dev": true, + "requires": { + "globule": "^1.0.0" + } + }, + "gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true + }, + "get-intrinsic": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", + "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", + "dev": true, + "requires": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1" + } + }, + "get-stdin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", + "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", + "dev": true + }, + "get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true + }, + "get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + } + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "requires": { + "is-glob": "^4.0.3" + } + }, + "glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true + }, + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + }, + "globby": { + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", + "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", + "dev": true, + "requires": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.1.1", + "ignore": "^5.1.4", + "merge2": "^1.3.0", + "slash": "^3.0.0" + }, + "dependencies": { + "ignore": { + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", + "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", + "dev": true + } + } + }, + "globule": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/globule/-/globule-1.3.3.tgz", + "integrity": "sha512-mb1aYtDbIjTu4ShMB85m3UzjX9BVKe9WCzsnfMSZk+K5GpIbBOexgg4PPCt5eHDEG5/ZQAUX2Kct02zfiPLsKg==", + "dev": true, + "requires": { + "glob": "~7.1.1", + "lodash": "~4.17.10", + "minimatch": "~3.0.2" + }, + "dependencies": { + "glob": { + "version": "7.1.7", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", + "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + } + } + }, + "graceful-fs": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz", + "integrity": "sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==", + "dev": true + }, + "handle-thing": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", + "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==", + "dev": true + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "dev": true + }, + "har-validator": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", + "dev": true, + "requires": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + } + }, + "hard-rejection": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", + "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", + "dev": true + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + } + } + }, + "has-bigints": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.1.tgz", + "integrity": "sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "has-symbols": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz", + "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", + "dev": true + }, + "has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "requires": { + "has-symbols": "^1.0.2" + } + }, + "has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", + "dev": true + }, + "he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "dev": true + }, + "hosted-git-info": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", + "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "hpack.js": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", + "integrity": "sha1-h3dMCUnlE/QuhFdbPEVoH63ioLI=", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "obuf": "^1.0.0", + "readable-stream": "^2.0.1", + "wbuf": "^1.1.0" + } + }, + "html-entities": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.2.tgz", + "integrity": "sha512-c3Ab/url5ksaT0WyleslpBEthOzWhrjQbg75y7XUsfSzi3Dgzt0l8w5e7DylRn15MTlMMD58dTfzddNS2kcAjQ==", + "dev": true + }, + "html-minifier-terser": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz", + "integrity": "sha512-ZPr5MNObqnV/T9akshPKbVgyOqLmy+Bxo7juKCfTfnjNniTAMdy4hz21YQqoofMBJD2kdREaqPPdThoR78Tgxg==", + "dev": true, + "requires": { + "camel-case": "^4.1.1", + "clean-css": "^4.2.3", + "commander": "^4.1.1", + "he": "^1.2.0", + "param-case": "^3.0.3", + "relateurl": "^0.2.7", + "terser": "^4.6.3" + } + }, + "html-webpack-plugin": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-5.3.2.tgz", + "integrity": "sha512-HvB33boVNCz2lTyBsSiMffsJ+m0YLIQ+pskblXgN9fnjS1BgEcuAfdInfXfGrkdXV406k9FiDi86eVCDBgJOyQ==", + "dev": true, + "requires": { + "@types/html-minifier-terser": "^5.0.0", + "html-minifier-terser": "^5.0.1", + "lodash": "^4.17.21", + "pretty-error": "^3.0.4", + "tapable": "^2.0.0" + }, + "dependencies": { + "tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true + } + } + }, + "htmlparser2": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", + "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", + "dev": true, + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.0.0", + "domutils": "^2.5.2", + "entities": "^2.0.0" + } + }, + "http-deceiver": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", + "integrity": "sha1-+nFolEq5pRnTN8sL7HKE3D5yPYc=", + "dev": true + }, + "http-errors": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", + "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", + "dev": true, + "requires": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.1", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.0" + }, + "dependencies": { + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + } + } + }, + "http-parser-js": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.3.tgz", + "integrity": "sha512-t7hjvef/5HEK7RWTdUzVUhl8zkEu+LlaE0IYzdMuvbSDipxBRpOn4Uhw8ZyECEa808iVT8XCjzo6xmYt4CiLZg==", + "dev": true + }, + "http-proxy": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", + "dev": true, + "requires": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + } + }, + "http-proxy-middleware": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.1.tgz", + "integrity": "sha512-cfaXRVoZxSed/BmkA7SwBVNI9Kj7HFltaE5rqYOub5kWzWZ+gofV2koVN1j2rMW7pEfSSlCHGJ31xmuyFyfLOg==", + "dev": true, + "requires": { + "@types/http-proxy": "^1.17.5", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.1", + "is-plain-obj": "^3.0.0", + "micromatch": "^4.0.2" + }, + "dependencies": { + "is-plain-obj": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", + "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", + "dev": true + } + } + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "icss-utils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", + "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", + "dev": true, + "requires": {} + }, + "ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "dev": true + }, + "import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + } + }, + "import-local": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.3.tgz", + "integrity": "sha512-bE9iaUY3CXH8Cwfan/abDKAxe1KGT9kyGsBPqf6DMK/z0a2OzAsrukeYNgIH6cH5Xr452jb1TUL8rSfCLjZ9uA==", + "dev": true, + "requires": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "dependencies": { + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "requires": { + "find-up": "^4.0.0" + } + } + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true + }, + "indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true + }, + "indexes-of": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/indexes-of/-/indexes-of-1.0.1.tgz", + "integrity": "sha1-8w9xbI4r00bHtn0985FVZqfAVgc=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "internal-ip": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/internal-ip/-/internal-ip-6.2.0.tgz", + "integrity": "sha512-D8WGsR6yDt8uq7vDMu7mjcR+yRMm3dW8yufyChmszWRjcSHuxLBkR3GdS2HZAjodsaGuCvXeEJpueisXJULghg==", + "dev": true, + "requires": { + "default-gateway": "^6.0.0", + "ipaddr.js": "^1.9.1", + "is-ip": "^3.1.0", + "p-event": "^4.2.0" + }, + "dependencies": { + "ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "dev": true + } + } + }, + "internal-slot": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", + "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", + "dev": true, + "requires": { + "get-intrinsic": "^1.1.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + } + }, + "interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "dev": true + }, + "ip": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", + "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", + "dev": true + }, + "ip-regex": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz", + "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==", + "dev": true + }, + "ipaddr.js": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz", + "integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==", + "dev": true + }, + "is-absolute-url": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-3.0.3.tgz", + "integrity": "sha512-opmNIX7uFnS96NtPmhWQgQx6/NYFgsUXYMllcfzwWKUMwfo8kku1TvE6hkNcH+Q1ts5cMVrsY7j0bxXQDciu9Q==", + "dev": true + }, + "is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "requires": { + "has-bigints": "^1.0.1" + } + }, + "is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "requires": { + "binary-extensions": "^2.0.0" + } + }, + "is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-callable": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", + "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==", + "dev": true + }, + "is-core-module": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.0.tgz", + "integrity": "sha512-vd15qHsaqrRL7dtH6QNuy0ndJmRDrS9HAM1CAiSifNUFv4x1a0CCVsj18hJ1mShxIG6T2i1sO78MkP56r0nYRw==", + "dev": true, + "requires": { + "has": "^1.0.3" + } + }, + "is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-ip": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-ip/-/is-ip-3.1.0.tgz", + "integrity": "sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q==", + "dev": true, + "requires": { + "ip-regex": "^4.0.0" + } + }, + "is-negative-zero": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.1.tgz", + "integrity": "sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w==", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "is-number-object": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.6.tgz", + "integrity": "sha512-bEVOqiRcvo3zO1+G2lVMy+gkkEm9Yh7cDMRusKKu5ZJKPUYSJwICTKZrNKHA2EbSP0Tu0+6B/emsYNHZyn6K8g==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-path-cwd": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", + "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", + "dev": true + }, + "is-path-in-cwd": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-2.1.0.tgz", + "integrity": "sha512-rNocXHgipO+rvnP6dk3zI20RpOtrAM/kzbB258Uw5BWr3TpXi861yzjo16Dn4hUox07iw5AyeMLHWsujkjzvRQ==", + "dev": true, + "requires": { + "is-path-inside": "^2.1.0" + } + }, + "is-path-inside": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-2.1.0.tgz", + "integrity": "sha512-wiyhTzfDWsvwAW53OBWF5zuvaOGlZ6PwYxAbPVDhpm+gM09xKQGjBq/8uYN12aDvMxnAnq3dxTyoSoRNmg5YFg==", + "dev": true, + "requires": { + "path-is-inside": "^1.0.2" + } + }, + "is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "dev": true + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-resolvable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", + "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", + "dev": true + }, + "is-shared-array-buffer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.1.tgz", + "integrity": "sha512-IU0NmyknYZN0rChcKhRO1X8LYz5Isj/Fsqh8NJOSf+N/hCOTwy29F32Ik7a+QszE63IdvmwdTPDd6cZ5pg4cwA==", + "dev": true + }, + "is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true + }, + "is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "requires": { + "has-symbols": "^1.0.2" + } + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, + "is-weakref": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.1.tgz", + "integrity": "sha512-b2jKc2pQZjaeFYWEf7ScFj+Be1I+PXmlu572Q8coTXZ+LD/QQZ7ShPMst8h16riVgyXTQwUsFEl74mDvc/3MHQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.0" + } + }, + "is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "requires": { + "is-docker": "^2.0.0" + } + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "dev": true + }, + "jest-worker": { + "version": "27.2.5", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.2.5.tgz", + "integrity": "sha512-HTjEPZtcNKZ4LnhSp02NEH4vE+5OpJ0EsOWYvGQpHgUMLngydESAAMH5Wd/asPf29+XUDQZszxpLg1BkIIA2aw==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "js-base64": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz", + "integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "dev": true + }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true + }, + "json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", + "dev": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "dev": true + }, + "json5": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", + "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", + "dev": true, + "requires": { + "minimist": "^1.2.5" + } + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "dev": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + }, + "klona": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.4.tgz", + "integrity": "sha512-ZRbnvdg/NxqzC7L9Uyqzf4psi1OM4Cuc+sJAkQPjO6XkQIJTNbfK2Rsmbw8fx1p2mkZdp2FZYo2+LwXYY/uwIA==", + "dev": true + }, + "levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "requires": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + } + }, + "lilconfig": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.3.tgz", + "integrity": "sha512-EHKqr/+ZvdKCifpNrJCKxBTgk5XupZA3y/aCPY9mxfgBzmgh93Mt/WqjjQ38oMxXuvDokaKiM3lAgvSH2sjtHg==", + "dev": true + }, + "lines-and-columns": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", + "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", + "dev": true + }, + "loader-runner": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.2.0.tgz", + "integrity": "sha512-92+huvxMvYlMzMt0iIOukcwYBFpkYJdpl2xsZ7LrlayO7E8SOv+JJUEK17B/dJIHAOLMfh2dZZ/Y18WgmGtYNw==", + "dev": true + }, + "loader-utils": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz", + "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==", + "dev": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^1.0.1" + }, + "dependencies": { + "json5": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", + "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } + } + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", + "dev": true + }, + "lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=", + "dev": true + }, + "lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", + "dev": true + }, + "lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", + "dev": true + }, + "lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=", + "dev": true + }, + "long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + }, + "lower-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", + "dev": true, + "requires": { + "tslib": "^2.0.3" + } + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "requires": { + "semver": "^6.0.0" + } + }, + "map-obj": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", + "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", + "dev": true + }, + "mdn-data": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz", + "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==", + "dev": true + }, + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", + "dev": true + }, + "memfs": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.3.0.tgz", + "integrity": "sha512-BEE62uMfKOavX3iG7GYX43QJ+hAeeWnwIAuJ/R6q96jaMtiLzhsxHJC8B1L7fK7Pt/vXDRwb3SG/yBpNGDPqzg==", + "dev": true, + "requires": { + "fs-monkey": "1.0.3" + } + }, + "memory-fs": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.2.0.tgz", + "integrity": "sha1-8rslNovBIeORwlIN6Slpyu4KApA=", + "dev": true + }, + "meow": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz", + "integrity": "sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==", + "dev": true, + "requires": { + "@types/minimist": "^1.2.0", + "camelcase-keys": "^6.2.2", + "decamelize": "^1.2.0", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "4.1.0", + "normalize-package-data": "^3.0.0", + "read-pkg-up": "^7.0.1", + "redent": "^3.0.0", + "trim-newlines": "^3.0.0", + "type-fest": "^0.18.0", + "yargs-parser": "^20.2.3" + } + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=", + "dev": true + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", + "dev": true + }, + "micromatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", + "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.2.3" + } + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "dev": true + }, + "mime-db": { + "version": "1.50.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.50.0.tgz", + "integrity": "sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A==", + "dev": true + }, + "mime-types": { + "version": "2.1.33", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.33.tgz", + "integrity": "sha512-plLElXp7pRDd0bNZHw+nMd52vRYjLwQjygaNg7ddJ2uJtTlmnTCjWuPKxVu6//AdaRuME84SvLW91sIkBqGT0g==", + "dev": true, + "requires": { + "mime-db": "1.50.0" + } + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true + }, + "min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true + }, + "mini-css-extract-plugin": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.4.2.tgz", + "integrity": "sha512-ZmqShkn79D36uerdED+9qdo1ZYG8C1YsWvXu0UMJxurZnSdgz7gQKO2EGv8T55MhDqG3DYmGtizZNpM/UbTlcA==", + "dev": true, + "requires": { + "schema-utils": "^3.1.0" + }, + "dependencies": { + "schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + } + } + }, + "minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "minimist-options": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", + "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", + "dev": true, + "requires": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0", + "kind-of": "^6.0.3" + } + }, + "minipass": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.5.tgz", + "integrity": "sha512-+8NzxD82XQoNKNrl1d/FSi+X8wAEWR+sbYAfIvub4Nz0d22plFG72CEVVaufV8PNf4qSslFTD8VMOxNVhHCjTw==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "dev": true, + "requires": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + } + }, + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "multicast-dns": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-6.2.3.tgz", + "integrity": "sha512-ji6J5enbMyGRHIAkAOu3WdV8nggqviKCEKtXcOqfphZZtQrmHKycfynJ2V7eVPUA4NhJ6V7Wf4TmGbTwKE9B6g==", + "dev": true, + "requires": { + "dns-packet": "^1.3.1", + "thunky": "^1.0.2" + } + }, + "multicast-dns-service-types": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz", + "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=", + "dev": true + }, + "nan": { + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", + "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==", + "dev": true + }, + "nanocolors": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/nanocolors/-/nanocolors-0.1.12.tgz", + "integrity": "sha512-2nMHqg1x5PU+unxX7PGY7AuYxl2qDx7PSrTRjizr8sxdd3l/3hBuWWaki62qmtYm2U5i4Z5E7GbjlyDFhs9/EQ==", + "dev": true + }, + "nanoid": { + "version": "3.1.30", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.30.tgz", + "integrity": "sha512-zJpuPDwOv8D2zq2WRoMe1HsfZthVewpel9CAvTfc/2mBD1uUT/agc5f7GHGWXlYkFvi1mVxe4IjvP2HNrop7nQ==", + "dev": true + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "dev": true + }, + "negotiator": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", + "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", + "dev": true + }, + "neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "no-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", + "dev": true, + "requires": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, + "node-fetch": { + "version": "2.6.6", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.6.tgz", + "integrity": "sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==", + "requires": { + "whatwg-url": "^5.0.0" + } + }, + "node-forge": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", + "integrity": "sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==", + "dev": true + }, + "node-gyp": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-7.1.2.tgz", + "integrity": "sha512-CbpcIo7C3eMu3dL1c3d0xw449fHIGALIJsRP4DDPHpyiW8vcriNY7ubh9TE4zEKfSxscY7PjeFnshE7h75ynjQ==", + "dev": true, + "requires": { + "env-paths": "^2.2.0", + "glob": "^7.1.4", + "graceful-fs": "^4.2.3", + "nopt": "^5.0.0", + "npmlog": "^4.1.2", + "request": "^2.88.2", + "rimraf": "^3.0.2", + "semver": "^7.3.2", + "tar": "^6.0.2", + "which": "^2.0.2" + }, + "dependencies": { + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "node-releases": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.0.tgz", + "integrity": "sha512-aA87l0flFYMzCHpTM3DERFSYxc6lv/BltdbRTOMZuxZ0cwZCD3mejE5n9vLhSJCN++/eOqr77G1IO5uXxlQYWA==", + "dev": true + }, + "node-sass": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-6.0.1.tgz", + "integrity": "sha512-f+Rbqt92Ful9gX0cGtdYwjTrWAaGURgaK5rZCWOgCNyGWusFYHhbqCCBoFBeat+HKETOU02AyTxNhJV0YZf2jQ==", + "dev": true, + "requires": { + "async-foreach": "^0.1.3", + "chalk": "^1.1.1", + "cross-spawn": "^7.0.3", + "gaze": "^1.0.0", + "get-stdin": "^4.0.1", + "glob": "^7.0.3", + "lodash": "^4.17.15", + "meow": "^9.0.0", + "nan": "^2.13.2", + "node-gyp": "^7.1.0", + "npmlog": "^4.0.0", + "request": "^2.88.0", + "sass-graph": "2.2.5", + "stdout-stream": "^1.4.0", + "true-case-path": "^1.0.2" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "nopt": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", + "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", + "dev": true, + "requires": { + "abbrev": "1" + } + }, + "normalize-package-data": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", + "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", + "dev": true, + "requires": { + "hosted-git-info": "^4.0.1", + "is-core-module": "^2.5.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + }, + "dependencies": { + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + }, + "normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", + "dev": true + }, + "normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "dev": true + }, + "npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "requires": { + "path-key": "^3.0.0" + } + }, + "npmlog": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", + "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", + "dev": true, + "requires": { + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" + } + }, + "nth-check": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz", + "integrity": "sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==", + "dev": true, + "requires": { + "boolbase": "^1.0.0" + } + }, + "num2fraction": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", + "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", + "dev": true + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true + }, + "oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "object-inspect": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.0.tgz", + "integrity": "sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg==", + "dev": true + }, + "object-is": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", + "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + } + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true + }, + "object.assign": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz", + "integrity": "sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.0", + "define-properties": "^1.1.3", + "has-symbols": "^1.0.1", + "object-keys": "^1.1.1" + } + }, + "object.entries": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.5.tgz", + "integrity": "sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1" + } + }, + "object.values": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.5.tgz", + "integrity": "sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1" + } + }, + "obuf": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", + "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", + "dev": true + }, + "on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "dev": true, + "requires": { + "ee-first": "1.1.1" + } + }, + "on-headers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "dev": true + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "requires": { + "mimic-fn": "^2.1.0" + } + }, + "open": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/open/-/open-8.3.0.tgz", + "integrity": "sha512-7INcPWb1UcOwSQxAXTnBJ+FxVV4MPs/X++FWWBtgY69/J5lc+tCteMt/oFK1MnkyHC4VILLa9ntmwKTwDR4Q9w==", + "dev": true, + "requires": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + } + }, + "optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, + "requires": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + } + }, + "p-event": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/p-event/-/p-event-4.2.0.tgz", + "integrity": "sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ==", + "dev": true, + "requires": { + "p-timeout": "^3.1.0" + } + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true + }, + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "requires": { + "yocto-queue": "^0.1.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + }, + "dependencies": { + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + } + } + }, + "p-map": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", + "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", + "dev": true + }, + "p-retry": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.1.tgz", + "integrity": "sha512-e2xXGNhZOZ0lfgR9kL34iGlU8N/KO0xZnQxVEwdeOvpqNDQfdnxIYizvWtK8RglUa3bGqI8g0R/BdfzLMxRkiA==", + "dev": true, + "requires": { + "@types/retry": "^0.12.0", + "retry": "^0.13.1" + } + }, + "p-timeout": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", + "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", + "dev": true, + "requires": { + "p-finally": "^1.0.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "param-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", + "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", + "dev": true, + "requires": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "requires": { + "callsites": "^3.0.0" + } + }, + "parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + }, + "parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "dev": true + }, + "pascal-case": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", + "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", + "dev": true, + "requires": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + }, + "path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", + "dev": true + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=", + "dev": true + }, + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", + "dev": true + }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "picomatch": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", + "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", + "dev": true + }, + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, + "requires": { + "pinkie": "^2.0.0" + } + }, + "pkg-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", + "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", + "dev": true, + "requires": { + "find-up": "^2.1.0" + } + }, + "portfinder": { + "version": "1.0.28", + "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz", + "integrity": "sha512-Se+2isanIcEqf2XMHjyUKskczxbPH7dQnlMjXX6+dybayyHvAf/TCgyMRlzf/B6QDhAEFOGes0pzRo3by4AbMA==", + "dev": true, + "requires": { + "async": "^2.6.2", + "debug": "^3.1.1", + "mkdirp": "^0.5.5" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "dev": true, + "requires": { + "minimist": "^1.2.5" + } + } + } + }, + "postcss": { + "version": "8.3.9", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.3.9.tgz", + "integrity": "sha512-f/ZFyAKh9Dnqytx5X62jgjhhzttjZS7hMsohcI7HEI5tjELX/HxCy3EFhsRxyzGvrzFF+82XPvCS8T9TFleVJw==", + "dev": true, + "requires": { + "nanoid": "^3.1.28", + "picocolors": "^0.2.1", + "source-map-js": "^0.6.2" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + } + } + }, + "postcss-attribute-case-insensitive": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-4.0.2.tgz", + "integrity": "sha512-clkFxk/9pcdb4Vkn0hAHq3YnxBQ2p0CGD1dy24jN+reBck+EWxMbxSUqN4Yj7t0w8csl87K6p0gxBe1utkJsYA==", + "dev": true, + "requires": { + "postcss": "^7.0.2", + "postcss-selector-parser": "^6.0.2" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-calc": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.0.0.tgz", + "integrity": "sha512-5NglwDrcbiy8XXfPM11F3HeC6hoT9W7GUH/Zi5U/p7u3Irv4rHhdDcIZwG0llHXV4ftsBjpfWMXAnXNl4lnt8g==", + "dev": true, + "requires": { + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.0.2" + } + }, + "postcss-color-functional-notation": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/postcss-color-functional-notation/-/postcss-color-functional-notation-2.0.1.tgz", + "integrity": "sha512-ZBARCypjEDofW4P6IdPVTLhDNXPRn8T2s1zHbZidW6rPaaZvcnCS2soYFIQJrMZSxiePJ2XIYTlcb2ztr/eT2g==", + "dev": true, + "requires": { + "postcss": "^7.0.2", + "postcss-values-parser": "^2.0.0" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-color-gray": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-color-gray/-/postcss-color-gray-5.0.0.tgz", + "integrity": "sha512-q6BuRnAGKM/ZRpfDascZlIZPjvwsRye7UDNalqVz3s7GDxMtqPY6+Q871liNxsonUw8oC61OG+PSaysYpl1bnw==", + "dev": true, + "requires": { + "@csstools/convert-colors": "^1.4.0", + "postcss": "^7.0.5", + "postcss-values-parser": "^2.0.0" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-color-hex-alpha": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/postcss-color-hex-alpha/-/postcss-color-hex-alpha-5.0.3.tgz", + "integrity": "sha512-PF4GDel8q3kkreVXKLAGNpHKilXsZ6xuu+mOQMHWHLPNyjiUBOr75sp5ZKJfmv1MCus5/DWUGcK9hm6qHEnXYw==", + "dev": true, + "requires": { + "postcss": "^7.0.14", + "postcss-values-parser": "^2.0.1" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-color-mod-function": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/postcss-color-mod-function/-/postcss-color-mod-function-3.0.3.tgz", + "integrity": "sha512-YP4VG+xufxaVtzV6ZmhEtc+/aTXH3d0JLpnYfxqTvwZPbJhWqp8bSY3nfNzNRFLgB4XSaBA82OE4VjOOKpCdVQ==", + "dev": true, + "requires": { + "@csstools/convert-colors": "^1.4.0", + "postcss": "^7.0.2", + "postcss-values-parser": "^2.0.0" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-color-rebeccapurple": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-4.0.1.tgz", + "integrity": "sha512-aAe3OhkS6qJXBbqzvZth2Au4V3KieR5sRQ4ptb2b2O8wgvB3SJBsdG+jsn2BZbbwekDG8nTfcCNKcSfe/lEy8g==", + "dev": true, + "requires": { + "postcss": "^7.0.2", + "postcss-values-parser": "^2.0.0" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-colormin": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.2.0.tgz", + "integrity": "sha512-+HC6GfWU3upe5/mqmxuqYZ9B2Wl4lcoUUNkoaX59nEWV4EtADCMiBqui111Bu8R8IvaZTmqmxrqOAqjbHIwXPw==", + "dev": true, + "requires": { + "browserslist": "^4.16.6", + "caniuse-api": "^3.0.0", + "colord": "^2.0.1", + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-convert-values": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.0.1.tgz", + "integrity": "sha512-C3zR1Do2BkKkCgC0g3sF8TS0koF2G+mN8xxayZx3f10cIRmTaAnpgpRQZjNekTZxM2ciSPoh2IWJm0VZx8NoQg==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-custom-media": { + "version": "7.0.8", + "resolved": "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-7.0.8.tgz", + "integrity": "sha512-c9s5iX0Ge15o00HKbuRuTqNndsJUbaXdiNsksnVH8H4gdc+zbLzr/UasOwNG6CTDpLFekVY4672eWdiiWu2GUg==", + "dev": true, + "requires": { + "postcss": "^7.0.14" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-custom-properties": { + "version": "8.0.11", + "resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-8.0.11.tgz", + "integrity": "sha512-nm+o0eLdYqdnJ5abAJeXp4CEU1c1k+eB2yMCvhgzsds/e0umabFrN6HoTy/8Q4K5ilxERdl/JD1LO5ANoYBeMA==", + "dev": true, + "requires": { + "postcss": "^7.0.17", + "postcss-values-parser": "^2.0.1" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-custom-selectors": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/postcss-custom-selectors/-/postcss-custom-selectors-5.1.2.tgz", + "integrity": "sha512-DSGDhqinCqXqlS4R7KGxL1OSycd1lydugJ1ky4iRXPHdBRiozyMHrdu0H3o7qNOCiZwySZTUI5MV0T8QhCLu+w==", + "dev": true, + "requires": { + "postcss": "^7.0.2", + "postcss-selector-parser": "^5.0.0-rc.3" + }, + "dependencies": { + "cssesc": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", + "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", + "dev": true + }, + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "postcss-selector-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", + "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", + "dev": true, + "requires": { + "cssesc": "^2.0.0", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-dir-pseudo-class": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-dir-pseudo-class/-/postcss-dir-pseudo-class-5.0.0.tgz", + "integrity": "sha512-3pm4oq8HYWMZePJY+5ANriPs3P07q+LW6FAdTlkFH2XqDdP4HeeJYMOzn0HYLhRSjBO3fhiqSwwU9xEULSrPgw==", + "dev": true, + "requires": { + "postcss": "^7.0.2", + "postcss-selector-parser": "^5.0.0-rc.3" + }, + "dependencies": { + "cssesc": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", + "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", + "dev": true + }, + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "postcss-selector-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", + "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", + "dev": true, + "requires": { + "cssesc": "^2.0.0", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-discard-comments": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.0.1.tgz", + "integrity": "sha512-lgZBPTDvWrbAYY1v5GYEv8fEO/WhKOu/hmZqmCYfrpD6eyDWWzAOsl2rF29lpvziKO02Gc5GJQtlpkTmakwOWg==", + "dev": true, + "requires": {} + }, + "postcss-discard-duplicates": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.0.1.tgz", + "integrity": "sha512-svx747PWHKOGpAXXQkCc4k/DsWo+6bc5LsVrAsw+OU+Ibi7klFZCyX54gjYzX4TH+f2uzXjRviLARxkMurA2bA==", + "dev": true, + "requires": {} + }, + "postcss-discard-empty": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.0.1.tgz", + "integrity": "sha512-vfU8CxAQ6YpMxV2SvMcMIyF2LX1ZzWpy0lqHDsOdaKKLQVQGVP1pzhrI9JlsO65s66uQTfkQBKBD/A5gp9STFw==", + "dev": true, + "requires": {} + }, + "postcss-discard-overridden": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.0.1.tgz", + "integrity": "sha512-Y28H7y93L2BpJhrdUR2SR2fnSsT+3TVx1NmVQLbcnZWwIUpJ7mfcTC6Za9M2PG6w8j7UQRfzxqn8jU2VwFxo3Q==", + "dev": true, + "requires": {} + }, + "postcss-double-position-gradients": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-1.0.0.tgz", + "integrity": "sha512-G+nV8EnQq25fOI8CH/B6krEohGWnF5+3A6H/+JEpOncu5dCnkS1QQ6+ct3Jkaepw1NGVqqOZH6lqrm244mCftA==", + "dev": true, + "requires": { + "postcss": "^7.0.5", + "postcss-values-parser": "^2.0.0" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-env-function": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/postcss-env-function/-/postcss-env-function-2.0.2.tgz", + "integrity": "sha512-rwac4BuZlITeUbiBq60h/xbLzXY43qOsIErngWa4l7Mt+RaSkT7QBjXVGTcBHupykkblHMDrBFh30zchYPaOUw==", + "dev": true, + "requires": { + "postcss": "^7.0.2", + "postcss-values-parser": "^2.0.0" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-focus-visible": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-focus-visible/-/postcss-focus-visible-4.0.0.tgz", + "integrity": "sha512-Z5CkWBw0+idJHSV6+Bgf2peDOFf/x4o+vX/pwcNYrWpXFrSfTkQ3JQ1ojrq9yS+upnAlNRHeg8uEwFTgorjI8g==", + "dev": true, + "requires": { + "postcss": "^7.0.2" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-focus-within": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-focus-within/-/postcss-focus-within-3.0.0.tgz", + "integrity": "sha512-W0APui8jQeBKbCGZudW37EeMCjDeVxKgiYfIIEo8Bdh5SpB9sxds/Iq8SEuzS0Q4YFOlG7EPFulbbxujpkrV2w==", + "dev": true, + "requires": { + "postcss": "^7.0.2" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-font-variant": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-font-variant/-/postcss-font-variant-4.0.1.tgz", + "integrity": "sha512-I3ADQSTNtLTTd8uxZhtSOrTCQ9G4qUVKPjHiDk0bV75QSxXjVWiJVJ2VLdspGUi9fbW9BcjKJoRvxAH1pckqmA==", + "dev": true, + "requires": { + "postcss": "^7.0.2" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-gap-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postcss-gap-properties/-/postcss-gap-properties-2.0.0.tgz", + "integrity": "sha512-QZSqDaMgXCHuHTEzMsS2KfVDOq7ZFiknSpkrPJY6jmxbugUPTuSzs/vuE5I3zv0WAS+3vhrlqhijiprnuQfzmg==", + "dev": true, + "requires": { + "postcss": "^7.0.2" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-image-set-function": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/postcss-image-set-function/-/postcss-image-set-function-3.0.1.tgz", + "integrity": "sha512-oPTcFFip5LZy8Y/whto91L9xdRHCWEMs3e1MdJxhgt4jy2WYXfhkng59fH5qLXSCPN8k4n94p1Czrfe5IOkKUw==", + "dev": true, + "requires": { + "postcss": "^7.0.2", + "postcss-values-parser": "^2.0.0" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-initial": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/postcss-initial/-/postcss-initial-3.0.4.tgz", + "integrity": "sha512-3RLn6DIpMsK1l5UUy9jxQvoDeUN4gP939tDcKUHD/kM8SGSKbFAnvkpFpj3Bhtz3HGk1jWY5ZNWX6mPta5M9fg==", + "dev": true, + "requires": { + "postcss": "^7.0.2" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-lab-function": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/postcss-lab-function/-/postcss-lab-function-2.0.1.tgz", + "integrity": "sha512-whLy1IeZKY+3fYdqQFuDBf8Auw+qFuVnChWjmxm/UhHWqNHZx+B99EwxTvGYmUBqe3Fjxs4L1BoZTJmPu6usVg==", + "dev": true, + "requires": { + "@csstools/convert-colors": "^1.4.0", + "postcss": "^7.0.2", + "postcss-values-parser": "^2.0.0" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-loader": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.2.0.tgz", + "integrity": "sha512-H9hv447QjQJVDbHj3OUdciyAXY3v5+UDduzEytAlZCVHCpNAAg/mCSwhYYqZr9BiGYhmYspU8QXxZwiHTLn3yA==", + "dev": true, + "requires": { + "cosmiconfig": "^7.0.0", + "klona": "^2.0.4", + "semver": "^7.3.5" + }, + "dependencies": { + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "postcss-logical": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-logical/-/postcss-logical-3.0.0.tgz", + "integrity": "sha512-1SUKdJc2vuMOmeItqGuNaC+N8MzBWFWEkAnRnLpFYj1tGGa7NqyVBujfRtgNa2gXR+6RkGUiB2O5Vmh7E2RmiA==", + "dev": true, + "requires": { + "postcss": "^7.0.2" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-media-minmax": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-media-minmax/-/postcss-media-minmax-4.0.0.tgz", + "integrity": "sha512-fo9moya6qyxsjbFAYl97qKO9gyre3qvbMnkOZeZwlsW6XYFsvs2DMGDlchVLfAd8LHPZDxivu/+qW2SMQeTHBw==", + "dev": true, + "requires": { + "postcss": "^7.0.2" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-merge-longhand": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.0.2.tgz", + "integrity": "sha512-BMlg9AXSI5G9TBT0Lo/H3PfUy63P84rVz3BjCFE9e9Y9RXQZD3+h3YO1kgTNsNJy7bBc1YQp8DmSnwLIW5VPcw==", + "dev": true, + "requires": { + "css-color-names": "^1.0.1", + "postcss-value-parser": "^4.1.0", + "stylehacks": "^5.0.1" + } + }, + "postcss-merge-rules": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.0.2.tgz", + "integrity": "sha512-5K+Md7S3GwBewfB4rjDeol6V/RZ8S+v4B66Zk2gChRqLTCC8yjnHQ601omj9TKftS19OPGqZ/XzoqpzNQQLwbg==", + "dev": true, + "requires": { + "browserslist": "^4.16.6", + "caniuse-api": "^3.0.0", + "cssnano-utils": "^2.0.1", + "postcss-selector-parser": "^6.0.5", + "vendors": "^1.0.3" + } + }, + "postcss-minify-font-values": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.0.1.tgz", + "integrity": "sha512-7JS4qIsnqaxk+FXY1E8dHBDmraYFWmuL6cgt0T1SWGRO5bzJf8sUoelwa4P88LEWJZweHevAiDKxHlofuvtIoA==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-minify-gradients": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.0.2.tgz", + "integrity": "sha512-7Do9JP+wqSD6Prittitt2zDLrfzP9pqKs2EcLX7HJYxsxCOwrrcLt4x/ctQTsiOw+/8HYotAoqNkrzItL19SdQ==", + "dev": true, + "requires": { + "colord": "^2.6", + "cssnano-utils": "^2.0.1", + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-minify-params": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.0.1.tgz", + "integrity": "sha512-4RUC4k2A/Q9mGco1Z8ODc7h+A0z7L7X2ypO1B6V8057eVK6mZ6xwz6QN64nHuHLbqbclkX1wyzRnIrdZehTEHw==", + "dev": true, + "requires": { + "alphanum-sort": "^1.0.2", + "browserslist": "^4.16.0", + "cssnano-utils": "^2.0.1", + "postcss-value-parser": "^4.1.0", + "uniqs": "^2.0.0" + } + }, + "postcss-minify-selectors": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.1.0.tgz", + "integrity": "sha512-NzGBXDa7aPsAcijXZeagnJBKBPMYLaJJzB8CQh6ncvyl2sIndLVWfbcDi0SBjRWk5VqEjXvf8tYwzoKf4Z07og==", + "dev": true, + "requires": { + "alphanum-sort": "^1.0.2", + "postcss-selector-parser": "^6.0.5" + } + }, + "postcss-modules-extract-imports": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", + "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", + "dev": true, + "requires": {} + }, + "postcss-modules-local-by-default": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz", + "integrity": "sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==", + "dev": true, + "requires": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-modules-scope": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", + "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", + "dev": true, + "requires": { + "postcss-selector-parser": "^6.0.4" + } + }, + "postcss-modules-values": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", + "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", + "dev": true, + "requires": { + "icss-utils": "^5.0.0" + } + }, + "postcss-nesting": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-7.0.1.tgz", + "integrity": "sha512-FrorPb0H3nuVq0Sff7W2rnc3SmIcruVC6YwpcS+k687VxyxO33iE1amna7wHuRVzM8vfiYofXSBHNAZ3QhLvYg==", + "dev": true, + "requires": { + "postcss": "^7.0.2" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-normalize-charset": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.0.1.tgz", + "integrity": "sha512-6J40l6LNYnBdPSk+BHZ8SF+HAkS4q2twe5jnocgd+xWpz/mx/5Sa32m3W1AA8uE8XaXN+eg8trIlfu8V9x61eg==", + "dev": true, + "requires": {} + }, + "postcss-normalize-display-values": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.0.1.tgz", + "integrity": "sha512-uupdvWk88kLDXi5HEyI9IaAJTE3/Djbcrqq8YgjvAVuzgVuqIk3SuJWUisT2gaJbZm1H9g5k2w1xXilM3x8DjQ==", + "dev": true, + "requires": { + "cssnano-utils": "^2.0.1", + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-normalize-positions": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.0.1.tgz", + "integrity": "sha512-rvzWAJai5xej9yWqlCb1OWLd9JjW2Ex2BCPzUJrbaXmtKtgfL8dBMOOMTX6TnvQMtjk3ei1Lswcs78qKO1Skrg==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-normalize-repeat-style": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.0.1.tgz", + "integrity": "sha512-syZ2itq0HTQjj4QtXZOeefomckiV5TaUO6ReIEabCh3wgDs4Mr01pkif0MeVwKyU/LHEkPJnpwFKRxqWA/7O3w==", + "dev": true, + "requires": { + "cssnano-utils": "^2.0.1", + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-normalize-string": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.0.1.tgz", + "integrity": "sha512-Ic8GaQ3jPMVl1OEn2U//2pm93AXUcF3wz+OriskdZ1AOuYV25OdgS7w9Xu2LO5cGyhHCgn8dMXh9bO7vi3i9pA==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-normalize-timing-functions": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.0.1.tgz", + "integrity": "sha512-cPcBdVN5OsWCNEo5hiXfLUnXfTGtSFiBU9SK8k7ii8UD7OLuznzgNRYkLZow11BkQiiqMcgPyh4ZqXEEUrtQ1Q==", + "dev": true, + "requires": { + "cssnano-utils": "^2.0.1", + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-normalize-unicode": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.0.1.tgz", + "integrity": "sha512-kAtYD6V3pK0beqrU90gpCQB7g6AOfP/2KIPCVBKJM2EheVsBQmx/Iof+9zR9NFKLAx4Pr9mDhogB27pmn354nA==", + "dev": true, + "requires": { + "browserslist": "^4.16.0", + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-normalize-url": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.0.2.tgz", + "integrity": "sha512-k4jLTPUxREQ5bpajFQZpx8bCF2UrlqOTzP9kEqcEnOfwsRshWs2+oAFIHfDQB8GO2PaUaSE0NlTAYtbluZTlHQ==", + "dev": true, + "requires": { + "is-absolute-url": "^3.0.3", + "normalize-url": "^6.0.1", + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-normalize-whitespace": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.0.1.tgz", + "integrity": "sha512-iPklmI5SBnRvwceb/XH568yyzK0qRVuAG+a1HFUsFRf11lEJTiQQa03a4RSCQvLKdcpX7XsI1Gen9LuLoqwiqA==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-ordered-values": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.0.2.tgz", + "integrity": "sha512-8AFYDSOYWebJYLyJi3fyjl6CqMEG/UVworjiyK1r573I56kb3e879sCJLGvR3merj+fAdPpVplXKQZv+ey6CgQ==", + "dev": true, + "requires": { + "cssnano-utils": "^2.0.1", + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-overflow-shorthand": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postcss-overflow-shorthand/-/postcss-overflow-shorthand-2.0.0.tgz", + "integrity": "sha512-aK0fHc9CBNx8jbzMYhshZcEv8LtYnBIRYQD5i7w/K/wS9c2+0NSR6B3OVMu5y0hBHYLcMGjfU+dmWYNKH0I85g==", + "dev": true, + "requires": { + "postcss": "^7.0.2" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-page-break": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postcss-page-break/-/postcss-page-break-2.0.0.tgz", + "integrity": "sha512-tkpTSrLpfLfD9HvgOlJuigLuk39wVTbbd8RKcy8/ugV2bNBUW3xU+AIqyxhDrQr1VUj1RmyJrBn1YWrqUm9zAQ==", + "dev": true, + "requires": { + "postcss": "^7.0.2" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-place": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-place/-/postcss-place-4.0.1.tgz", + "integrity": "sha512-Zb6byCSLkgRKLODj/5mQugyuj9bvAAw9LqJJjgwz5cYryGeXfFZfSXoP1UfveccFmeq0b/2xxwcTEVScnqGxBg==", + "dev": true, + "requires": { + "postcss": "^7.0.2", + "postcss-values-parser": "^2.0.0" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-preset-env": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-6.7.0.tgz", + "integrity": "sha512-eU4/K5xzSFwUFJ8hTdTQzo2RBLbDVt83QZrAvI07TULOkmyQlnYlpwep+2yIK+K+0KlZO4BvFcleOCCcUtwchg==", + "dev": true, + "requires": { + "autoprefixer": "^9.6.1", + "browserslist": "^4.6.4", + "caniuse-lite": "^1.0.30000981", + "css-blank-pseudo": "^0.1.4", + "css-has-pseudo": "^0.10.0", + "css-prefers-color-scheme": "^3.1.1", + "cssdb": "^4.4.0", + "postcss": "^7.0.17", + "postcss-attribute-case-insensitive": "^4.0.1", + "postcss-color-functional-notation": "^2.0.1", + "postcss-color-gray": "^5.0.0", + "postcss-color-hex-alpha": "^5.0.3", + "postcss-color-mod-function": "^3.0.3", + "postcss-color-rebeccapurple": "^4.0.1", + "postcss-custom-media": "^7.0.8", + "postcss-custom-properties": "^8.0.11", + "postcss-custom-selectors": "^5.1.2", + "postcss-dir-pseudo-class": "^5.0.0", + "postcss-double-position-gradients": "^1.0.0", + "postcss-env-function": "^2.0.2", + "postcss-focus-visible": "^4.0.0", + "postcss-focus-within": "^3.0.0", + "postcss-font-variant": "^4.0.0", + "postcss-gap-properties": "^2.0.0", + "postcss-image-set-function": "^3.0.1", + "postcss-initial": "^3.0.0", + "postcss-lab-function": "^2.0.1", + "postcss-logical": "^3.0.0", + "postcss-media-minmax": "^4.0.0", + "postcss-nesting": "^7.0.0", + "postcss-overflow-shorthand": "^2.0.0", + "postcss-page-break": "^2.0.0", + "postcss-place": "^4.0.1", + "postcss-pseudo-class-any-link": "^6.0.0", + "postcss-replace-overflow-wrap": "^3.0.0", + "postcss-selector-matches": "^4.0.0", + "postcss-selector-not": "^4.0.0" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-pseudo-class-any-link": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-6.0.0.tgz", + "integrity": "sha512-lgXW9sYJdLqtmw23otOzrtbDXofUdfYzNm4PIpNE322/swES3VU9XlXHeJS46zT2onFO7V1QFdD4Q9LiZj8mew==", + "dev": true, + "requires": { + "postcss": "^7.0.2", + "postcss-selector-parser": "^5.0.0-rc.3" + }, + "dependencies": { + "cssesc": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-2.0.0.tgz", + "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", + "dev": true + }, + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "postcss-selector-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz", + "integrity": "sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ==", + "dev": true, + "requires": { + "cssesc": "^2.0.0", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-reduce-initial": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.0.1.tgz", + "integrity": "sha512-zlCZPKLLTMAqA3ZWH57HlbCjkD55LX9dsRyxlls+wfuRfqCi5mSlZVan0heX5cHr154Dq9AfbH70LyhrSAezJw==", + "dev": true, + "requires": { + "browserslist": "^4.16.0", + "caniuse-api": "^3.0.0" + } + }, + "postcss-reduce-transforms": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.0.1.tgz", + "integrity": "sha512-a//FjoPeFkRuAguPscTVmRQUODP+f3ke2HqFNgGPwdYnpeC29RZdCBvGRGTsKpMURb/I3p6jdKoBQ2zI+9Q7kA==", + "dev": true, + "requires": { + "cssnano-utils": "^2.0.1", + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-replace-overflow-wrap": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-3.0.0.tgz", + "integrity": "sha512-2T5hcEHArDT6X9+9dVSPQdo7QHzG4XKclFT8rU5TzJPDN7RIRTbO9c4drUISOVemLj03aezStHCR2AIcr8XLpw==", + "dev": true, + "requires": { + "postcss": "^7.0.2" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-selector-matches": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/postcss-selector-matches/-/postcss-selector-matches-4.0.0.tgz", + "integrity": "sha512-LgsHwQR/EsRYSqlwdGzeaPKVT0Ml7LAT6E75T8W8xLJY62CE4S/l03BWIt3jT8Taq22kXP08s2SfTSzaraoPww==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "postcss": "^7.0.2" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-selector-not": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-4.0.1.tgz", + "integrity": "sha512-YolvBgInEK5/79C+bdFMyzqTg6pkYqDbzZIST/PDMqa/o3qtXenD05apBG2jLgT0/BQ77d4U2UK12jWpilqMAQ==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "postcss": "^7.0.2" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", + "dev": true + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dev": true, + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "postcss-selector-parser": { + "version": "6.0.6", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.6.tgz", + "integrity": "sha512-9LXrvaaX3+mcv5xkg5kFwqSzSH1JIObIx51PrndZwlmznwXRfxMddDvo9gve3gVR8ZTKgoFDdWkbRFmEhT4PMg==", + "dev": true, + "requires": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + } + }, + "postcss-svgo": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.0.2.tgz", + "integrity": "sha512-YzQuFLZu3U3aheizD+B1joQ94vzPfE6BNUcSYuceNxlVnKKsOtdo6hL9/zyC168Q8EwfLSgaDSalsUGa9f2C0A==", + "dev": true, + "requires": { + "postcss-value-parser": "^4.1.0", + "svgo": "^2.3.0" + } + }, + "postcss-unique-selectors": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.0.1.tgz", + "integrity": "sha512-gwi1NhHV4FMmPn+qwBNuot1sG1t2OmacLQ/AX29lzyggnjd+MnVD5uqQmpXO3J17KGL2WAxQruj1qTd3H0gG/w==", + "dev": true, + "requires": { + "alphanum-sort": "^1.0.2", + "postcss-selector-parser": "^6.0.5", + "uniqs": "^2.0.0" + } + }, + "postcss-value-parser": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.1.0.tgz", + "integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==", + "dev": true + }, + "postcss-values-parser": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/postcss-values-parser/-/postcss-values-parser-2.0.1.tgz", + "integrity": "sha512-2tLuBsA6P4rYTNKCXYG/71C7j1pU6pK503suYOmn4xYrQIzW+opD+7FAFNuGSdZC/3Qfy334QbeMu7MEb8gOxg==", + "dev": true, + "requires": { + "flatten": "^1.0.2", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + } + }, + "prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true + }, + "prettier": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.4.1.tgz", + "integrity": "sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==", + "dev": true + }, + "prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "requires": { + "fast-diff": "^1.1.2" + } + }, + "pretty-error": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-3.0.4.tgz", + "integrity": "sha512-ytLFLfv1So4AO1UkoBF6GXQgJRaKbiSiGFICaOPNwQ3CMvBvXpLRubeQWyPGnsbV/t9ml9qto6IeCsho0aEvwQ==", + "dev": true, + "requires": { + "lodash": "^4.17.20", + "renderkid": "^2.0.6" + } + }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true + }, + "proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "dev": true, + "requires": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "dependencies": { + "ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "dev": true + } + } + }, + "psl": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", + "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", + "dev": true + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + }, + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "dev": true + }, + "querystring": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", + "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", + "dev": true + }, + "queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true + }, + "quick-lru": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", + "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", + "dev": true + }, + "randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "requires": { + "safe-buffer": "^5.1.0" + } + }, + "range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "dev": true + }, + "raw-body": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", + "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", + "dev": true, + "requires": { + "bytes": "3.1.0", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "dependencies": { + "bytes": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", + "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", + "dev": true + } + } + }, + "read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "requires": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "dependencies": { + "hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true + } + } + }, + "read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "requires": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "dependencies": { + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true + } + } + }, + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "requires": { + "picomatch": "^2.2.1" + } + }, + "rechoir": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", + "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", + "dev": true, + "requires": { + "resolve": "^1.9.0" + } + }, + "redent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "dev": true, + "requires": { + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" + } + }, + "regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true + }, + "regenerate-unicode-properties": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-9.0.0.tgz", + "integrity": "sha512-3E12UeNSPfjrgwjkR81m5J7Aw/T55Tu7nUyZVQYCKEOs+2dkxEY+DpPtZzO4YruuiPb7NkYLVcyJC4+zCbk5pA==", + "dev": true, + "requires": { + "regenerate": "^1.4.2" + } + }, + "regenerator-runtime": { + "version": "0.13.9", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", + "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", + "dev": true + }, + "regenerator-transform": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.5.tgz", + "integrity": "sha512-eOf6vka5IO151Jfsw2NO9WpGX58W6wWmefK3I1zEGr0lOD0u8rwPaNqQL1aRxUaxLeKO3ArNh3VYg1KbaD+FFw==", + "dev": true, + "requires": { + "@babel/runtime": "^7.8.4" + } + }, + "regexp.prototype.flags": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.3.1.tgz", + "integrity": "sha512-JiBdRBq91WlY7uRJ0ds7R+dU02i6LKi8r3BuQhNXn+kmeLN+EfHhfjqMRis1zJxnlu88hq/4dx0P2OP3APRTOA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + } + }, + "regexpp": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", + "dev": true + }, + "regexpu-core": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.8.0.tgz", + "integrity": "sha512-1F6bYsoYiz6is+oz70NWur2Vlh9KWtswuRuzJOfeYUrfPX2o8n74AnUVaOGDbUqVGO9fNHu48/pjJO4sNVwsOg==", + "dev": true, + "requires": { + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^9.0.0", + "regjsgen": "^0.5.2", + "regjsparser": "^0.7.0", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.0.0" + } + }, + "regjsgen": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.2.tgz", + "integrity": "sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A==", + "dev": true + }, + "regjsparser": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.7.0.tgz", + "integrity": "sha512-A4pcaORqmNMDVwUjWoTzuhwMGpP+NykpfqAsEgI1FSH/EzC7lrN5TMd+kN8YCovX+jMpu8eaqXgXPCa0g8FQNQ==", + "dev": true, + "requires": { + "jsesc": "~0.5.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", + "dev": true + } + } + }, + "relateurl": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", + "integrity": "sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=", + "dev": true + }, + "renderkid": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-2.0.7.tgz", + "integrity": "sha512-oCcFyxaMrKsKcTY59qnCAtmDVSLfPbrv6A3tVbPdFMMrv5jaK10V6m40cKsoPNhAqN6rmHW9sswW4o3ruSrwUQ==", + "dev": true, + "requires": { + "css-select": "^4.1.3", + "dom-converter": "^0.2.0", + "htmlparser2": "^6.1.0", + "lodash": "^4.17.21", + "strip-ansi": "^3.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } + } + }, + "request": { + "version": "2.88.2", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", + "dev": true, + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true + }, + "require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true + }, + "require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true + }, + "requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", + "dev": true + }, + "resolve": { + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", + "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", + "dev": true, + "requires": { + "is-core-module": "^2.2.0", + "path-parse": "^1.0.6" + } + }, + "resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "requires": { + "resolve-from": "^5.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + } + } + }, + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true + }, + "retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "dev": true + }, + "reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true + }, + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "requires": { + "queue-microtask": "^1.2.2" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "sass-graph": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.5.tgz", + "integrity": "sha512-VFWDAHOe6mRuT4mZRd4eKE+d8Uedrk6Xnh7Sh9b4NGufQLQjOrvf/MQoOdx+0s92L89FeyUUNfU597j/3uNpag==", + "dev": true, + "requires": { + "glob": "^7.0.0", + "lodash": "^4.0.0", + "scss-tokenizer": "^0.2.3", + "yargs": "^13.3.2" + } + }, + "sass-loader": { + "version": "12.2.0", + "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.2.0.tgz", + "integrity": "sha512-qducnp5vSV+8A8MZxuH6zV0MUg4MOVISScl2wDTCAn/2WJX+9Auxh92O/rnkdR2bvi5QxZBafnzkzRrWGZvm7w==", + "dev": true, + "requires": { + "klona": "^2.0.4", + "neo-async": "^2.6.2" + } + }, + "schema-utils": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", + "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.5", + "ajv": "^6.12.4", + "ajv-keywords": "^3.5.2" + } + }, + "scss-tokenizer": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz", + "integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=", + "dev": true, + "requires": { + "js-base64": "^2.1.8", + "source-map": "^0.4.2" + }, + "dependencies": { + "source-map": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", + "dev": true, + "requires": { + "amdefine": ">=0.0.4" + } + } + } + }, + "seedrandom": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/seedrandom/-/seedrandom-2.4.3.tgz", + "integrity": "sha1-JDhQTa0zkXMUv/GKxNeU8W1qrsw=" + }, + "select-hose": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", + "integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=", + "dev": true + }, + "selfsigned": { + "version": "1.10.11", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-1.10.11.tgz", + "integrity": "sha512-aVmbPOfViZqOZPgRBT0+3u4yZFHpmnIghLMlAcb5/xhp5ZtB/RVnKhz5vl2M32CLXAqR4kha9zfhNg0Lf/sxKA==", + "dev": true, + "requires": { + "node-forge": "^0.10.0" + } + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + }, + "send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", + "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", + "dev": true, + "requires": { + "debug": "2.6.9", + "depd": "~1.1.2", + "destroy": "~1.0.4", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "~1.7.2", + "mime": "1.6.0", + "ms": "2.1.1", + "on-finished": "~2.3.0", + "range-parser": "~1.2.1", + "statuses": "~1.5.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + }, + "dependencies": { + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "dev": true + } + } + }, + "serialize-javascript": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", + "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "dev": true, + "requires": { + "randombytes": "^2.1.0" + } + }, + "serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=", + "dev": true, + "requires": { + "accepts": "~1.3.4", + "batch": "0.6.1", + "debug": "2.6.9", + "escape-html": "~1.0.3", + "http-errors": "~1.6.2", + "mime-types": "~2.1.17", + "parseurl": "~1.3.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", + "dev": true, + "requires": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", + "dev": true + } + } + }, + "serve-static": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", + "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", + "dev": true, + "requires": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.17.1" + } + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "setprototypeof": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", + "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==", + "dev": true + }, + "shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "requires": { + "kind-of": "^6.0.2" + } + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "requires": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + } + }, + "signal-exit": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.5.tgz", + "integrity": "sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ==", + "dev": true + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, + "slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + } + } + }, + "sockjs": { + "version": "0.3.21", + "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.21.tgz", + "integrity": "sha512-DhbPFGpxjc6Z3I+uX07Id5ZO2XwYsWOrYjaSeieES78cq+JaJvVe5q/m1uvjIQhXinhIeCFRH6JgXe+mvVMyXw==", + "dev": true, + "requires": { + "faye-websocket": "^0.11.3", + "uuid": "^3.4.0", + "websocket-driver": "^0.7.4" + } + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + }, + "source-map-js": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-0.6.2.tgz", + "integrity": "sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug==", + "dev": true + }, + "source-map-support": { + "version": "0.5.20", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.20.tgz", + "integrity": "sha512-n1lZZ8Ve4ksRqizaBQgxXDgKwttHDhyfQjA6YZZn8+AroHbsIz+JjwxQDxbp+7y5OYCI8t1Yk7etjD9CRd2hIw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "spdx-correct": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", + "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", + "dev": true, + "requires": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "requires": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.10.tgz", + "integrity": "sha512-oie3/+gKf7QtpitB0LYLETe+k8SifzsX4KixvpOsbI6S0kRiRQ5MKOio8eMSAKQ17N06+wdEOXRiId+zOxo0hA==", + "dev": true + }, + "spdy": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", + "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", + "dev": true, + "requires": { + "debug": "^4.1.0", + "handle-thing": "^2.0.0", + "http-deceiver": "^1.2.7", + "select-hose": "^2.0.0", + "spdy-transport": "^3.0.0" + } + }, + "spdy-transport": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", + "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", + "dev": true, + "requires": { + "debug": "^4.1.0", + "detect-node": "^2.0.4", + "hpack.js": "^2.1.6", + "obuf": "^1.1.2", + "readable-stream": "^3.0.6", + "wbuf": "^1.7.3" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "sshpk": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", + "dev": true, + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + } + }, + "stable": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz", + "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==", + "dev": true + }, + "statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", + "dev": true + }, + "stdout-stream": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.1.tgz", + "integrity": "sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA==", + "dev": true, + "requires": { + "readable-stream": "^2.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } + } + }, + "string.prototype.trimend": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz", + "integrity": "sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + } + }, + "string.prototype.trimstart": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz", + "integrity": "sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true + }, + "strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dev": true, + "requires": { + "min-indent": "^1.0.0" + } + }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true + }, + "style-loader": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-3.3.0.tgz", + "integrity": "sha512-szANub7ksJtQioJYtpbWwh1hUl99uK15n5HDlikeCRil/zYMZgSxucHddyF/4A3qJMUiAjPhFowrrQuNMA7jwQ==", + "dev": true, + "requires": {} + }, + "stylehacks": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.0.1.tgz", + "integrity": "sha512-Es0rVnHIqbWzveU1b24kbw92HsebBepxfcqe5iix7t9j0PQqhs0IxXVXv0pY2Bxa08CgMkzD6OWql7kbGOuEdA==", + "dev": true, + "requires": { + "browserslist": "^4.16.0", + "postcss-selector-parser": "^6.0.4" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "svgo": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.7.0.tgz", + "integrity": "sha512-aDLsGkre4fTDCWvolyW+fs8ZJFABpzLXbtdK1y71CKnHzAnpDxKXPj2mNKj+pyOXUCzFHzuxRJ94XOFygOWV3w==", + "dev": true, + "requires": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "nanocolors": "^0.1.12", + "stable": "^0.1.8" + }, + "dependencies": { + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true + } + } + }, + "table": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/table/-/table-6.7.2.tgz", + "integrity": "sha512-UFZK67uvyNivLeQbVtkiUs8Uuuxv24aSL4/Vil2PJVtMgU8Lx0CYkP12uCGa3kjyQzOSgV1+z9Wkb82fCGsO0g==", + "dev": true, + "requires": { + "ajv": "^8.0.1", + "lodash.clonedeep": "^4.5.0", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "dependencies": { + "ajv": { + "version": "8.6.3", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.3.tgz", + "integrity": "sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + } + } + }, + "tapable": { + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.1.10.tgz", + "integrity": "sha1-KcNXB8K3DlDQdIK10gLo7URtr9Q=", + "dev": true + }, + "tar": { + "version": "6.1.11", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", + "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", + "dev": true, + "requires": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^3.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + } + }, + "terser": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.0.tgz", + "integrity": "sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==", + "dev": true, + "requires": { + "commander": "^2.20.0", + "source-map": "~0.6.1", + "source-map-support": "~0.5.12" + }, + "dependencies": { + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "terser-webpack-plugin": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.2.4.tgz", + "integrity": "sha512-E2CkNMN+1cho04YpdANyRrn8CyN4yMy+WdFKZIySFZrGXZxJwJP6PMNGGc/Mcr6qygQHUUqRxnAPmi0M9f00XA==", + "dev": true, + "requires": { + "jest-worker": "^27.0.6", + "p-limit": "^3.1.0", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.0", + "source-map": "^0.6.1", + "terser": "^5.7.2" + }, + "dependencies": { + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "terser": { + "version": "5.9.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.9.0.tgz", + "integrity": "sha512-h5hxa23sCdpzcye/7b8YqbE5OwKca/ni0RQz1uRX3tGh8haaGHqcuSqbGRybuAKNdntZ0mDgFNXPJ48xQ2RXKQ==", + "dev": true, + "requires": { + "commander": "^2.20.0", + "source-map": "~0.7.2", + "source-map-support": "~0.5.20" + }, + "dependencies": { + "source-map": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", + "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", + "dev": true + } + } + } + } + }, + "text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", + "dev": true + }, + "thunky": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", + "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", + "dev": true + }, + "timsort": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", + "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=", + "dev": true + }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "dev": true + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + }, + "toidentifier": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", + "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", + "dev": true + }, + "tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "dev": true, + "requires": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + } + }, + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" + }, + "trim-newlines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", + "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", + "dev": true + }, + "true-case-path": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.3.tgz", + "integrity": "sha512-m6s2OdQe5wgpFMC+pAJ+q9djG82O2jcHPOI6RNg1yy9rCYR+WD6Nbpl32fDpfC56nirdRy+opFa/Vk7HYhqaew==", + "dev": true, + "requires": { + "glob": "^7.1.2" + } + }, + "tsconfig-paths": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.11.0.tgz", + "integrity": "sha512-7ecdYDnIdmv639mmDwslG6KQg1Z9STTz1j7Gcz0xa+nshh/gKDAHcPxRbWOsA3SPp0tXP2leTcY9Kw+NAkfZzA==", + "dev": true, + "requires": { + "@types/json5": "^0.0.29", + "json5": "^1.0.1", + "minimist": "^1.2.0", + "strip-bom": "^3.0.0" + }, + "dependencies": { + "json5": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", + "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } + } + } + }, + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "dev": true + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "dev": true + }, + "type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "requires": { + "prelude-ls": "^1.2.1" + } + }, + "type-fest": { + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", + "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", + "dev": true + }, + "type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dev": true, + "requires": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + } + }, + "unbox-primitive": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz", + "integrity": "sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1", + "has-bigints": "^1.0.1", + "has-symbols": "^1.0.2", + "which-boxed-primitive": "^1.0.2" + } + }, + "unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", + "dev": true + }, + "unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dev": true, + "requires": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + } + }, + "unicode-match-property-value-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz", + "integrity": "sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==", + "dev": true + }, + "unicode-property-aliases-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.0.0.tgz", + "integrity": "sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ==", + "dev": true + }, + "uniq": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", + "integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=", + "dev": true + }, + "uniqs": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/uniqs/-/uniqs-2.0.0.tgz", + "integrity": "sha1-/+3ks2slKQaW5uFl1KWe25mOawI=", + "dev": true + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", + "dev": true + }, + "uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "url": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", + "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", + "dev": true, + "requires": { + "punycode": "1.3.2", + "querystring": "0.2.0" + }, + "dependencies": { + "punycode": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", + "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", + "dev": true + } + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true + }, + "utila": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", + "integrity": "sha1-ihagXURWV6Oupe7MWxKk+lN5dyw=", + "dev": true + }, + "utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", + "dev": true + }, + "uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "dev": true + }, + "v8-compile-cache": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", + "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", + "dev": true + }, + "validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "requires": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", + "dev": true + }, + "vendors": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.4.tgz", + "integrity": "sha512-/juG65kTL4Cy2su4P8HjtkTxk6VmJDiOPBufWniqQ6wknac6jNiXS9vU+hO3wgusiyqWlzTbVHi0dyJqRONg3w==", + "dev": true + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + }, + "dependencies": { + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true + } + } + }, + "watchpack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.2.0.tgz", + "integrity": "sha512-up4YAn/XHgZHIxFBVCdlMiWDj6WaLKpwVeGQk2I5thdYxF/KmF0aaz6TfJZ/hfl1h/XlcDr7k1KH7ThDagpFaA==", + "dev": true, + "requires": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + } + }, + "wbuf": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", + "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", + "dev": true, + "requires": { + "minimalistic-assert": "^1.0.0" + } + }, + "webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" + }, + "webpack": { + "version": "5.58.2", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.58.2.tgz", + "integrity": "sha512-3S6e9Vo1W2ijk4F4PPWRIu6D/uGgqaPmqw+av3W3jLDujuNkdxX5h5c+RQ6GkjVR+WwIPOfgY8av+j5j4tMqJw==", + "dev": true, + "requires": { + "@types/eslint-scope": "^3.7.0", + "@types/estree": "^0.0.50", + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/wasm-edit": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "acorn": "^8.4.1", + "acorn-import-assertions": "^1.7.6", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.8.3", + "es-module-lexer": "^0.9.0", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.4", + "json-parse-better-errors": "^1.0.2", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.1.3", + "watchpack": "^2.2.0", + "webpack-sources": "^3.2.0" + }, + "dependencies": { + "acorn": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.5.0.tgz", + "integrity": "sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q==", + "dev": true + }, + "acorn-import-assertions": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", + "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", + "dev": true, + "requires": {} + }, + "enhanced-resolve": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.8.3.tgz", + "integrity": "sha512-EGAbGvH7j7Xt2nc0E7D99La1OiEs8LnyimkRgwExpUMScN6O+3x9tIWs7PLQZVNx4YD+00skHXPXi1yQHpAmZA==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + } + }, + "schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + }, + "tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true + } + } + }, + "webpack-cli": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.9.0.tgz", + "integrity": "sha512-n/jZZBMzVEl4PYIBs+auy2WI0WTQ74EnJDiyD98O2JZY6IVIHJNitkYp/uTXOviIOMfgzrNvC9foKv/8o8KSZw==", + "dev": true, + "requires": { + "@discoveryjs/json-ext": "^0.5.0", + "@webpack-cli/configtest": "^1.1.0", + "@webpack-cli/info": "^1.4.0", + "@webpack-cli/serve": "^1.6.0", + "colorette": "^2.0.14", + "commander": "^7.0.0", + "execa": "^5.0.0", + "fastest-levenshtein": "^1.0.12", + "import-local": "^3.0.2", + "interpret": "^2.2.0", + "rechoir": "^0.7.0", + "v8-compile-cache": "^2.2.0", + "webpack-merge": "^5.7.3" + }, + "dependencies": { + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true + }, + "interpret": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", + "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", + "dev": true + } + } + }, + "webpack-dev-middleware": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.2.1.tgz", + "integrity": "sha512-Kx1X+36Rn9JaZcQMrJ7qN3PMAuKmEDD9ZISjUj3Cgq4A6PtwYsC4mpaKotSRYH3iOF6HsUa8viHKS59FlyVifQ==", + "dev": true, + "requires": { + "colorette": "^2.0.10", + "memfs": "^3.2.2", + "mime-types": "^2.1.31", + "range-parser": "^1.2.1", + "schema-utils": "^3.1.0" + }, + "dependencies": { + "schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + } + } + }, + "webpack-dev-server": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.3.1.tgz", + "integrity": "sha512-qNXQCVYo1kYhH9pgLtm8LRNkXX3XzTfHSj/zqzaqYzGPca+Qjr+81wj1jgPMCHhIhso9WEQ+kX9z23iG9PzQ7w==", + "dev": true, + "requires": { + "ansi-html-community": "^0.0.8", + "bonjour": "^3.5.0", + "chokidar": "^3.5.1", + "colorette": "^2.0.10", + "compression": "^1.7.4", + "connect-history-api-fallback": "^1.6.0", + "del": "^6.0.0", + "express": "^4.17.1", + "graceful-fs": "^4.2.6", + "html-entities": "^2.3.2", + "http-proxy-middleware": "^2.0.0", + "internal-ip": "^6.2.0", + "ipaddr.js": "^2.0.1", + "open": "^8.0.9", + "p-retry": "^4.5.0", + "portfinder": "^1.0.28", + "schema-utils": "^3.1.0", + "selfsigned": "^1.10.11", + "serve-index": "^1.9.1", + "sockjs": "^0.3.21", + "spdy": "^4.0.2", + "strip-ansi": "^7.0.0", + "url": "^0.11.0", + "webpack-dev-middleware": "^5.2.1", + "ws": "^8.1.0" + }, + "dependencies": { + "ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true + }, + "del": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/del/-/del-6.0.0.tgz", + "integrity": "sha512-1shh9DQ23L16oXSZKB2JxpL7iMy2E0S9d517ptA1P8iw0alkPtQcrKH7ru31rYtKwF499HkTu+DRzq3TCKDFRQ==", + "dev": true, + "requires": { + "globby": "^11.0.1", + "graceful-fs": "^4.2.4", + "is-glob": "^4.0.1", + "is-path-cwd": "^2.2.0", + "is-path-inside": "^3.0.2", + "p-map": "^4.0.0", + "rimraf": "^3.0.2", + "slash": "^3.0.0" + } + }, + "is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true + }, + "p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "dev": true, + "requires": { + "aggregate-error": "^3.0.0" + } + }, + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + }, + "strip-ansi": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz", + "integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==", + "dev": true, + "requires": { + "ansi-regex": "^6.0.1" + } + } + } + }, + "webpack-merge": { + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", + "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", + "dev": true, + "requires": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + } + }, + "webpack-sources": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.1.tgz", + "integrity": "sha512-t6BMVLQ0AkjBOoRTZgqrWm7xbXMBzD+XDq2EZ96+vMfn3qKgsvdXZhbPZ4ElUOpdv4u+iiGe+w3+J75iy/bYGA==", + "dev": true + }, + "websocket-driver": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", + "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", + "dev": true, + "requires": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + } + }, + "websocket-extensions": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", + "dev": true + }, + "whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, + "requires": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + } + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true + }, + "wide-align": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", + "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", + "dev": true, + "requires": { + "string-width": "^1.0.2 || 2" + } + }, + "wildcard": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", + "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", + "dev": true + }, + "word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true + }, + "wrap-ansi": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", + "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + } + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + }, + "ws": { + "version": "8.2.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.2.3.tgz", + "integrity": "sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA==", + "dev": true, + "requires": {} + }, + "y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "dev": true + }, + "yargs": { + "version": "13.3.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", + "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", + "dev": true, + "requires": { + "cliui": "^5.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.1.2" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + }, + "yargs-parser": { + "version": "13.1.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", + "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + } + }, + "yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true + }, + "yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true + } + } +} diff --git a/Games/Stone_paper_scissor/package.json b/Games/Stone_paper_scissor/package.json index 553876bc96..c469cf2e46 100644 --- a/Games/Stone_paper_scissor/package.json +++ b/Games/Stone_paper_scissor/package.json @@ -1,65 +1,65 @@ -{ - "name": "rock-paper-scissors", - "version": "1.0.0", - "description": "A simple \"Rock Paper Scissors\" game with hand gesture detection", - "main": "index.js", - "author": "Andreas Schallwig", - "license": "MIT", - "scripts": { - "start": "cross-env NODE_ENV=development webpack serve --config config/webpack.dev.js", - "build": "cross-env NODE_ENV=production webpack --config config/webpack.prod.js", - "lint": "eslint . src config || true", - "prettify": "prettier --write 'src/**/*.js'" - }, - "keywords": [ - "Handpose", - "Fingerpose", - "TensorFlow", - "TensorFlowJS", - "MediaPipe", - "ML", - "AI", - "Game" - ], - "devDependencies": { - "@babel/core": "^7.15.8", - "@babel/plugin-proposal-class-properties": "^7.14.5", - "@babel/plugin-transform-runtime": "^7.16.0", - "@babel/preset-env": "^7.15.8", - "babel-loader": "^8.2.2", - "clean-webpack-plugin": "^4.0.0", - "copy-webpack-plugin": "^9.0.1", - "cross-env": "^7.0.3", - "css-loader": "^6.4.0", - "css-minimizer-webpack-plugin": "^3.1.1", - "eslint": "^7.28.0", - "eslint-config-airbnb-base": "^14.2.1", - "eslint-config-prettier": "^8.3.0", - "eslint-import-resolver-webpack": "^0.13.1", - "eslint-plugin-import": "^2.25.2", - "eslint-plugin-prettier": "^4.0.0", - "html-webpack-plugin": "^5.3.2", - "mini-css-extract-plugin": "^2.4.2", - "node-sass": "^6.0.1", - "postcss-loader": "^6.2.0", - "postcss-preset-env": "^6.7.0", - "prettier": "^2.4.1", - "sass-loader": "^12.2.0", - "style-loader": "^3.3.0", - "webpack": "^5.58.2", - "webpack-cli": "^4.9.0", - "webpack-dev-server": "^4.3.1", - "webpack-merge": "^5.8.0" - }, - "repository": { - "type": "git", - "url": "git@github.com:taniarascia/webpack-boilerplate" - }, - "dependencies": { - "@tensorflow-models/handpose": "^0.0.7", - "@tensorflow/tfjs-backend-webgl": "^3.11.0", - "@tensorflow/tfjs-converter": "^3.11.0", - "@tensorflow/tfjs-core": "^3.11.0", - "fingerpose": "^0.1.0" - } -} +{ + "name": "rock-paper-scissors", + "version": "1.0.0", + "description": "A simple \"Rock Paper Scissors\" game with hand gesture detection", + "main": "index.js", + "author": "Andreas Schallwig", + "license": "MIT", + "scripts": { + "start": "cross-env NODE_ENV=development webpack serve --config config/webpack.dev.js", + "build": "cross-env NODE_ENV=production webpack --config config/webpack.prod.js", + "lint": "eslint . src config || true", + "prettify": "prettier --write 'src/**/*.js'" + }, + "keywords": [ + "Handpose", + "Fingerpose", + "TensorFlow", + "TensorFlowJS", + "MediaPipe", + "ML", + "AI", + "Game" + ], + "devDependencies": { + "@babel/core": "^7.15.8", + "@babel/plugin-proposal-class-properties": "^7.14.5", + "@babel/plugin-transform-runtime": "^7.16.0", + "@babel/preset-env": "^7.15.8", + "babel-loader": "^8.2.2", + "clean-webpack-plugin": "^4.0.0", + "copy-webpack-plugin": "^9.0.1", + "cross-env": "^7.0.3", + "css-loader": "^6.4.0", + "css-minimizer-webpack-plugin": "^3.1.1", + "eslint": "^7.28.0", + "eslint-config-airbnb-base": "^14.2.1", + "eslint-config-prettier": "^8.3.0", + "eslint-import-resolver-webpack": "^0.13.1", + "eslint-plugin-import": "^2.25.2", + "eslint-plugin-prettier": "^4.0.0", + "html-webpack-plugin": "^5.3.2", + "mini-css-extract-plugin": "^2.4.2", + "node-sass": "^6.0.1", + "postcss-loader": "^6.2.0", + "postcss-preset-env": "^6.7.0", + "prettier": "^2.4.1", + "sass-loader": "^12.2.0", + "style-loader": "^3.3.0", + "webpack": "^5.58.2", + "webpack-cli": "^4.9.0", + "webpack-dev-server": "^4.3.1", + "webpack-merge": "^5.8.0" + }, + "repository": { + "type": "git", + "url": "git@github.com:taniarascia/webpack-boilerplate" + }, + "dependencies": { + "@tensorflow-models/handpose": "^0.0.7", + "@tensorflow/tfjs-backend-webgl": "^3.11.0", + "@tensorflow/tfjs-converter": "^3.11.0", + "@tensorflow/tfjs-core": "^3.11.0", + "fingerpose": "^0.1.0" + } +} diff --git a/Games/Stone_paper_scissor/postcss.config.js b/Games/Stone_paper_scissor/postcss.config.js index 699e128f6f..323d114093 100644 --- a/Games/Stone_paper_scissor/postcss.config.js +++ b/Games/Stone_paper_scissor/postcss.config.js @@ -1,7 +1,7 @@ -module.exports = { - plugins: { - 'postcss-preset-env': { - browsers: 'last 2 versions', - }, - }, -} +module.exports = { + plugins: { + 'postcss-preset-env': { + browsers: 'last 2 versions', + }, + }, +} diff --git a/Games/Stone_paper_scissor/script.js b/Games/Stone_paper_scissor/script.js index 31a8416f71..79301df2c7 100644 --- a/Games/Stone_paper_scissor/script.js +++ b/Games/Stone_paper_scissor/script.js @@ -1,67 +1,67 @@ -var you -var opponent - -var choices = ["rock", "paper", "scissors"] - -window.onload = function () { - for (let i = 0; i < 3; i++) { - let choice = document.createElement("img") - choice.id = choices[i]; - choice.src = "./public/" + choices[i] + ".png" - document.getElementById("choice").append(choice) - choice.addEventListener("click", selectchoice) - } -} - -function selectchoice() { - you = this.id - document.getElementById("your-choice").src = "./public/" + you + ".png" - opponent = choices[Math.floor(Math.random() * 3)] - document.getElementById("opponent-choice").src = "./public/" + opponent + ".png" - - if (you == opponent) { - let result = document.getElementById("opponent-score") - result.innerText = "Its a Tie ๐Ÿค”" - } - - else { - if (you == "rock") { - if (opponent == "scissors") { - result = document.getElementById("opponent-score") - result.innerText = "You Won! ๐Ÿ˜ƒ" - } - else if (opponent == "paper") { - result = document.getElementById("opponent-score") - result.innerText = "You Loose! ๐Ÿ˜”" - } - } - - else if (you == "scissors") { - if (opponent == "paper") { - result = document.getElementById("opponent-score") - result.innerText = "You Won! ๐Ÿ˜ƒ" - } - else if (opponent == "rock") { - result = document.getElementById("opponent-score") - result.innerText = "You Loose! ๐Ÿ˜”" - } - } - - else if (you == "paper") { - if (opponent == "rock") { - result = document.getElementById("opponent-score") - result.innerText = "You Won! ๐Ÿ˜ƒ" - } - else if (opponent == "scissors") { - result = document.getElementById("opponent-score") - result.innerText = "You Loose! ๐Ÿ˜”" - } - } - } - - document.getElementById("your-score").innerText = yourscore - document.getElementById("opponent-score").innerText = opponentScore -} - - - +var you +var opponent + +var choices = ["rock", "paper", "scissors"] + +window.onload = function () { + for (let i = 0; i < 3; i++) { + let choice = document.createElement("img") + choice.id = choices[i]; + choice.src = "./public/" + choices[i] + ".png" + document.getElementById("choice").append(choice) + choice.addEventListener("click", selectchoice) + } +} + +function selectchoice() { + you = this.id + document.getElementById("your-choice").src = "./public/" + you + ".png" + opponent = choices[Math.floor(Math.random() * 3)] + document.getElementById("opponent-choice").src = "./public/" + opponent + ".png" + + if (you == opponent) { + let result = document.getElementById("opponent-score") + result.innerText = "Its a Tie ๐Ÿค”" + } + + else { + if (you == "rock") { + if (opponent == "scissors") { + result = document.getElementById("opponent-score") + result.innerText = "You Won! ๐Ÿ˜ƒ" + } + else if (opponent == "paper") { + result = document.getElementById("opponent-score") + result.innerText = "You Loose! ๐Ÿ˜”" + } + } + + else if (you == "scissors") { + if (opponent == "paper") { + result = document.getElementById("opponent-score") + result.innerText = "You Won! ๐Ÿ˜ƒ" + } + else if (opponent == "rock") { + result = document.getElementById("opponent-score") + result.innerText = "You Loose! ๐Ÿ˜”" + } + } + + else if (you == "paper") { + if (opponent == "rock") { + result = document.getElementById("opponent-score") + result.innerText = "You Won! ๐Ÿ˜ƒ" + } + else if (opponent == "scissors") { + result = document.getElementById("opponent-score") + result.innerText = "You Loose! ๐Ÿ˜”" + } + } + } + + document.getElementById("your-score").innerText = yourscore + document.getElementById("opponent-score").innerText = opponentScore +} + + + diff --git a/Games/Stone_paper_scissor/src/index.js b/Games/Stone_paper_scissor/src/index.js index 68b5d0afda..07e64be081 100644 --- a/Games/Stone_paper_scissor/src/index.js +++ b/Games/Stone_paper_scissor/src/index.js @@ -1,225 +1,225 @@ -// import styles -import '@/styles/index.scss'; - -import { UI } from '@/js/UI'; -import { Prediction } from './js/Prediction'; - -import camConfig from '@/js/CameraConfig'; - -// store a reference to the player video -var playerVideo; - -// keep track of scores -var playerScore = 0, computerScore = 0; - - -// setyp & initialization -// ----------------------------------------------------------------------------- -async function onInit() { - - UI.init(); - UI.setStatusMessage("Initializing - Please wait a moment"); - - const videoPromise = UI.initPlayerVideo(camConfig); - const predictPromise = Prediction.init(); - - console.log("Initialize game..."); - - Promise.all([videoPromise, predictPromise]) - .then(result => { - - // result[0] will contain the initialized video element - playerVideo = result[0]; - playerVideo.play(); - - console.log("Initialization finished"); - - // game is ready - waitForPlayer(); - }); -} -//----- - - -// game logic -// ----------------------------------------------------------------------------- -function waitForPlayer() { - - // show a blinking start message - if(UI.isMobile()) { - UI.setStatusMessage("Touch the screen to start"); - } else { - UI.setStatusMessage("Press any key to start"); - } - - UI.startAnimateMessage(); - - const startGame = () => { - UI.stopAnimateMessage(); - playOneRound(); - }; - - // wait for player to press any key - // then stop blinking and play one round - if(UI.isMobile()) { - document.addEventListener('touchstart', startGame, { once: true }); - } else { - window.addEventListener("keypress", startGame, { once: true }); - } -} - -async function playOneRound() { - - // show robot waiting for player - UI.showRobotImage(true); - - // hide the timer circle - UI.showTimer(false); - UI.setTimerProgress(0); - UI.setPlayerHand(""); - - // ready - set - show - // wait for countdown to finish - await UI.startCountdown(); - - // show the timer circle - UI.showTimer(true); - - // start detecting player gestures - // required duration 150ms ~ 4-5 camera frames - detectPlayerGesture(150); -} - -function detectPlayerGesture(requiredDuration) { - - let lastGesture = ""; - let gestureDuration = 0; - - const predictNonblocking = () => { - - setTimeout(() => { - - const predictionStartTS = Date.now(); - - // predict gesture (require high confidence) - Prediction.predictGesture(playerVideo, 9).then(playerGesture => { - - if(playerGesture != "") { - - if(playerGesture == lastGesture) { - // player keeps holding the same gesture - // -> keep timer running - const deltaTime = Date.now() - predictionStartTS; - gestureDuration += deltaTime; - } - else { - // detected a different gesture - // -> reset timer - UI.setPlayerHand(playerGesture); - lastGesture = playerGesture; - gestureDuration = 0; - } - } - else { - UI.setPlayerHand(false); - lastGesture = ""; - gestureDuration = 0; - } - - if(gestureDuration < requiredDuration) { - // update timer and repeat - UI.setTimerProgress(gestureDuration / requiredDuration); - predictNonblocking(); - } - else { - - // player result available - // -> stop timer and check winner - UI.setTimerProgress(1); - UI.animatePlayerHand(); - - // let computer make its move - const computerGesture = getRandomGesture(); - - // check the game result - checkResult(playerGesture, computerGesture); - } - }); - - }, 0); - }; - - predictNonblocking(); -} - -function checkResult(playerGesture, computerGesture) { - - let statusText; - let playerWins = false; - let computerWins = false; - - if(playerGesture == computerGesture) { - // draw - statusText = "It's a draw!"; - } - else { - // check whinner - if(playerGesture == "rock") { - if(computerGesture == "scissors") { - playerWins = true; - statusText = "Rock beats scissors"; - } else { - computerWins = true; - statusText = "Paper beats rock"; - } - } - else if(playerGesture == "paper") { - if(computerGesture == "rock") { - playerWins = true; - statusText = "Paper beats rock"; - } else { - computerWins = true; - statusText = "Scissors beat paper"; - } - } - else if(playerGesture == "scissors") { - if(computerGesture == "paper") { - playerWins = true; - statusText = "Scissors beat paper"; - } else { - computerWins = true; - statusText = "Rock beats scissors"; - } - } - } - - if(playerWins) { - playerScore++; - statusText += " - You win!"; - } - else if(computerWins) { - computerScore++; - statusText += " - The robot wins!"; - } - - UI.showRobotHand(true); - UI.setRobotGesture(computerGesture); - - UI.setStatusMessage(statusText); - - UI.setPlayerScore(playerScore); - UI.setRobotScore(computerScore); - - // wait for 3 seconds, then start next round - setTimeout(playOneRound, 3000); -} - -function getRandomGesture() { - const gestures = ["rock", "paper", "scissors"]; - const randomNum = Math.floor(Math.random() * gestures.length); - return gestures[randomNum]; -} -//----- - - -onInit(); +// import styles +import '@/styles/index.scss'; + +import { UI } from '@/js/UI'; +import { Prediction } from './js/Prediction'; + +import camConfig from '@/js/CameraConfig'; + +// store a reference to the player video +var playerVideo; + +// keep track of scores +var playerScore = 0, computerScore = 0; + + +// setyp & initialization +// ----------------------------------------------------------------------------- +async function onInit() { + + UI.init(); + UI.setStatusMessage("Initializing - Please wait a moment"); + + const videoPromise = UI.initPlayerVideo(camConfig); + const predictPromise = Prediction.init(); + + console.log("Initialize game..."); + + Promise.all([videoPromise, predictPromise]) + .then(result => { + + // result[0] will contain the initialized video element + playerVideo = result[0]; + playerVideo.play(); + + console.log("Initialization finished"); + + // game is ready + waitForPlayer(); + }); +} +//----- + + +// game logic +// ----------------------------------------------------------------------------- +function waitForPlayer() { + + // show a blinking start message + if(UI.isMobile()) { + UI.setStatusMessage("Touch the screen to start"); + } else { + UI.setStatusMessage("Press any key to start"); + } + + UI.startAnimateMessage(); + + const startGame = () => { + UI.stopAnimateMessage(); + playOneRound(); + }; + + // wait for player to press any key + // then stop blinking and play one round + if(UI.isMobile()) { + document.addEventListener('touchstart', startGame, { once: true }); + } else { + window.addEventListener("keypress", startGame, { once: true }); + } +} + +async function playOneRound() { + + // show robot waiting for player + UI.showRobotImage(true); + + // hide the timer circle + UI.showTimer(false); + UI.setTimerProgress(0); + UI.setPlayerHand(""); + + // ready - set - show + // wait for countdown to finish + await UI.startCountdown(); + + // show the timer circle + UI.showTimer(true); + + // start detecting player gestures + // required duration 150ms ~ 4-5 camera frames + detectPlayerGesture(150); +} + +function detectPlayerGesture(requiredDuration) { + + let lastGesture = ""; + let gestureDuration = 0; + + const predictNonblocking = () => { + + setTimeout(() => { + + const predictionStartTS = Date.now(); + + // predict gesture (require high confidence) + Prediction.predictGesture(playerVideo, 9).then(playerGesture => { + + if(playerGesture != "") { + + if(playerGesture == lastGesture) { + // player keeps holding the same gesture + // -> keep timer running + const deltaTime = Date.now() - predictionStartTS; + gestureDuration += deltaTime; + } + else { + // detected a different gesture + // -> reset timer + UI.setPlayerHand(playerGesture); + lastGesture = playerGesture; + gestureDuration = 0; + } + } + else { + UI.setPlayerHand(false); + lastGesture = ""; + gestureDuration = 0; + } + + if(gestureDuration < requiredDuration) { + // update timer and repeat + UI.setTimerProgress(gestureDuration / requiredDuration); + predictNonblocking(); + } + else { + + // player result available + // -> stop timer and check winner + UI.setTimerProgress(1); + UI.animatePlayerHand(); + + // let computer make its move + const computerGesture = getRandomGesture(); + + // check the game result + checkResult(playerGesture, computerGesture); + } + }); + + }, 0); + }; + + predictNonblocking(); +} + +function checkResult(playerGesture, computerGesture) { + + let statusText; + let playerWins = false; + let computerWins = false; + + if(playerGesture == computerGesture) { + // draw + statusText = "It's a draw!"; + } + else { + // check whinner + if(playerGesture == "rock") { + if(computerGesture == "scissors") { + playerWins = true; + statusText = "Rock beats scissors"; + } else { + computerWins = true; + statusText = "Paper beats rock"; + } + } + else if(playerGesture == "paper") { + if(computerGesture == "rock") { + playerWins = true; + statusText = "Paper beats rock"; + } else { + computerWins = true; + statusText = "Scissors beat paper"; + } + } + else if(playerGesture == "scissors") { + if(computerGesture == "paper") { + playerWins = true; + statusText = "Scissors beat paper"; + } else { + computerWins = true; + statusText = "Rock beats scissors"; + } + } + } + + if(playerWins) { + playerScore++; + statusText += " - You win!"; + } + else if(computerWins) { + computerScore++; + statusText += " - The robot wins!"; + } + + UI.showRobotHand(true); + UI.setRobotGesture(computerGesture); + + UI.setStatusMessage(statusText); + + UI.setPlayerScore(playerScore); + UI.setRobotScore(computerScore); + + // wait for 3 seconds, then start next round + setTimeout(playOneRound, 3000); +} + +function getRandomGesture() { + const gestures = ["rock", "paper", "scissors"]; + const randomNum = Math.floor(Math.random() * gestures.length); + return gestures[randomNum]; +} +//----- + + +onInit(); diff --git a/Games/Stone_paper_scissor/src/js/CameraConfig.js b/Games/Stone_paper_scissor/src/js/CameraConfig.js index 88c37317c4..64b25da04f 100644 --- a/Games/Stone_paper_scissor/src/js/CameraConfig.js +++ b/Games/Stone_paper_scissor/src/js/CameraConfig.js @@ -1,11 +1,11 @@ -const config = { - audio: false, - video: { - facingMode: "user", - width: 640, - height: 480, - frameRate: { max: 30 } - } -}; - +const config = { + audio: false, + video: { + facingMode: "user", + width: 640, + height: 480, + frameRate: { max: 30 } + } +}; + export default config; \ No newline at end of file diff --git a/Games/Stone_paper_scissor/src/js/Gestures.js b/Games/Stone_paper_scissor/src/js/Gestures.js index 5b8bb31505..a3953cef69 100644 --- a/Games/Stone_paper_scissor/src/js/Gestures.js +++ b/Games/Stone_paper_scissor/src/js/Gestures.js @@ -1,50 +1,50 @@ -import { GestureDescription, Finger, FingerCurl } from 'fingerpose'; - -const RockGesture = new GestureDescription('rock'); // โœŠ๏ธ -const PaperGesture = new GestureDescription('paper'); // ๐Ÿ– -const ScissorsGesture = new GestureDescription('scissors'); // โœŒ๏ธ - - -// Rock -// ----------------------------------------------------------------------------- - -// thumb: half curled -// accept no curl with a bit lower confidence -RockGesture.addCurl(Finger.Thumb, FingerCurl.HalfCurl, 1.0); -RockGesture.addCurl(Finger.Thumb, FingerCurl.NoCurl, 0.5); - -// all other fingers: curled -for(let finger of [Finger.Index, Finger.Middle, Finger.Ring, Finger.Pinky]) { - RockGesture.addCurl(finger, FingerCurl.FullCurl, 1.0); - RockGesture.addCurl(finger, FingerCurl.HalfCurl, 0.9); -} - - -// Paper -// ----------------------------------------------------------------------------- - -// no finger should be curled -for(let finger of Finger.all) { - PaperGesture.addCurl(finger, FingerCurl.NoCurl, 1.0); -} - - -// Scissors -//------------------------------------------------------------------------------ - -// index and middle finger: stretched out -ScissorsGesture.addCurl(Finger.Index, FingerCurl.NoCurl, 1.0); -ScissorsGesture.addCurl(Finger.Middle, FingerCurl.NoCurl, 1.0); - -// ring: curled -ScissorsGesture.addCurl(Finger.Ring, FingerCurl.FullCurl, 1.0); -ScissorsGesture.addCurl(Finger.Ring, FingerCurl.HalfCurl, 0.9); - -// pinky: curled -ScissorsGesture.addCurl(Finger.Pinky, FingerCurl.FullCurl, 1.0); -ScissorsGesture.addCurl(Finger.Pinky, FingerCurl.HalfCurl, 0.9); - - -export { - RockGesture, PaperGesture, ScissorsGesture -} +import { GestureDescription, Finger, FingerCurl } from 'fingerpose'; + +const RockGesture = new GestureDescription('rock'); // โœŠ๏ธ +const PaperGesture = new GestureDescription('paper'); // ๐Ÿ– +const ScissorsGesture = new GestureDescription('scissors'); // โœŒ๏ธ + + +// Rock +// ----------------------------------------------------------------------------- + +// thumb: half curled +// accept no curl with a bit lower confidence +RockGesture.addCurl(Finger.Thumb, FingerCurl.HalfCurl, 1.0); +RockGesture.addCurl(Finger.Thumb, FingerCurl.NoCurl, 0.5); + +// all other fingers: curled +for(let finger of [Finger.Index, Finger.Middle, Finger.Ring, Finger.Pinky]) { + RockGesture.addCurl(finger, FingerCurl.FullCurl, 1.0); + RockGesture.addCurl(finger, FingerCurl.HalfCurl, 0.9); +} + + +// Paper +// ----------------------------------------------------------------------------- + +// no finger should be curled +for(let finger of Finger.all) { + PaperGesture.addCurl(finger, FingerCurl.NoCurl, 1.0); +} + + +// Scissors +//------------------------------------------------------------------------------ + +// index and middle finger: stretched out +ScissorsGesture.addCurl(Finger.Index, FingerCurl.NoCurl, 1.0); +ScissorsGesture.addCurl(Finger.Middle, FingerCurl.NoCurl, 1.0); + +// ring: curled +ScissorsGesture.addCurl(Finger.Ring, FingerCurl.FullCurl, 1.0); +ScissorsGesture.addCurl(Finger.Ring, FingerCurl.HalfCurl, 0.9); + +// pinky: curled +ScissorsGesture.addCurl(Finger.Pinky, FingerCurl.FullCurl, 1.0); +ScissorsGesture.addCurl(Finger.Pinky, FingerCurl.HalfCurl, 0.9); + + +export { + RockGesture, PaperGesture, ScissorsGesture +} diff --git a/Games/Stone_paper_scissor/src/js/Prediction.js b/Games/Stone_paper_scissor/src/js/Prediction.js index 7a9b30fa1f..ca55c2098d 100644 --- a/Games/Stone_paper_scissor/src/js/Prediction.js +++ b/Games/Stone_paper_scissor/src/js/Prediction.js @@ -1,69 +1,69 @@ -// import handpose -import * as handpose from '@tensorflow-models/handpose'; - -// import WebGL backend for TensorFLow -// note: this backend is included by default in '@tensorflow/tfjs' -// this import is just added in case you want to replace it with the WASM backend -import '@tensorflow/tfjs-backend-webgl'; - -// import the FingerPose gesture estimator + our predefined gestures -import { GestureEstimator } from 'fingerpose'; -import { RockGesture, PaperGesture, ScissorsGesture } from './Gestures'; - -// import a sample (dummy) image used to warm up the model -import { SampleImage } from './SampleImage'; - -// store references -let handposeModel, gestureEstimator; - -export const Prediction = { - - init: async function() { - - // initialize finger gesture recognizer with known gestures - const knownGestures = [RockGesture, PaperGesture, ScissorsGesture]; - gestureEstimator = new GestureEstimator(knownGestures); - console.log('Initialized FingerPose with ' + knownGestures.length + ' gestures'); - - // load handpose model - console.log("Loading handpose model...") - handposeModel = await handpose.load(); - console.log("Model loaded"); - - // make one prediction on a sample image - // this is to "warm up" the model so there won't be a delay - // before the actual predictions later - console.log("Warm up model"); - const sample = await SampleImage.create(); - await handposeModel.estimateHands(sample, false); - console.log("Model is hot!"); - }, - - predictGesture: async function(sourceElement, minimumScore) { - - const predictions = await handposeModel.estimateHands(sourceElement, false); - - if(predictions.length > 0) { - - // detect gestures - const gestureEstimations = gestureEstimator.estimate( - predictions[0].landmarks, minimumScore - ); - - // get gesture with highest match score - if(gestureEstimations.gestures.length > 0) { - - // this will reduce an array of results to a single value - // containing only the gesture with the highest score - const gestureResult = gestureEstimations.gestures.reduce((p, c) => { - return (p.confidence > c.confidence) ? p : c; - }); - - return gestureResult.name; - } - } - - return ''; - }, - -} +// import handpose +import * as handpose from '@tensorflow-models/handpose'; + +// import WebGL backend for TensorFLow +// note: this backend is included by default in '@tensorflow/tfjs' +// this import is just added in case you want to replace it with the WASM backend +import '@tensorflow/tfjs-backend-webgl'; + +// import the FingerPose gesture estimator + our predefined gestures +import { GestureEstimator } from 'fingerpose'; +import { RockGesture, PaperGesture, ScissorsGesture } from './Gestures'; + +// import a sample (dummy) image used to warm up the model +import { SampleImage } from './SampleImage'; + +// store references +let handposeModel, gestureEstimator; + +export const Prediction = { + + init: async function() { + + // initialize finger gesture recognizer with known gestures + const knownGestures = [RockGesture, PaperGesture, ScissorsGesture]; + gestureEstimator = new GestureEstimator(knownGestures); + console.log('Initialized FingerPose with ' + knownGestures.length + ' gestures'); + + // load handpose model + console.log("Loading handpose model...") + handposeModel = await handpose.load(); + console.log("Model loaded"); + + // make one prediction on a sample image + // this is to "warm up" the model so there won't be a delay + // before the actual predictions later + console.log("Warm up model"); + const sample = await SampleImage.create(); + await handposeModel.estimateHands(sample, false); + console.log("Model is hot!"); + }, + + predictGesture: async function(sourceElement, minimumScore) { + + const predictions = await handposeModel.estimateHands(sourceElement, false); + + if(predictions.length > 0) { + + // detect gestures + const gestureEstimations = gestureEstimator.estimate( + predictions[0].landmarks, minimumScore + ); + + // get gesture with highest match score + if(gestureEstimations.gestures.length > 0) { + + // this will reduce an array of results to a single value + // containing only the gesture with the highest score + const gestureResult = gestureEstimations.gestures.reduce((p, c) => { + return (p.confidence > c.confidence) ? p : c; + }); + + return gestureResult.name; + } + } + + return ''; + }, + +} diff --git a/Games/Stone_paper_scissor/src/js/SampleImage.js b/Games/Stone_paper_scissor/src/js/SampleImage.js index 33b2c4dd72..afe3984a45 100644 --- a/Games/Stone_paper_scissor/src/js/SampleImage.js +++ b/Games/Stone_paper_scissor/src/js/SampleImage.js @@ -1,11 +1,11 @@ -export const SampleImage = { - create: () => { - let imageEl = new Image(640, 480); - imageEl.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAR4klEQVR4nO3d21bjxhpGUcjo939l7+FkOwFjGUl1UFV9c16SbmwkYq3+S4fP2+12+wAAIMZfdjUAQBYBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAECYP3Y4MIrPz8/D7+R2u/34GgDvCUCgizNxt8fj+wpBgP0EINBMq+h75f5azxH47vUFI5BMAAJVvYuuXva8h60/IwyBBJ83n3ZABVtBNTMfj8CqTACBYivG38fGzyUKgRW4DQzAAfcofBWGADMRgMBpyTEkAoGZCUDgFAFkGgjMSwACh4me72wPYDYCEFjC/eKMKy/QMA0EZuIqYGC3EQNntKtyPZkEmIH7AAK79Iq/Gh9Jo4Sqj1dgVCaAQDe9gujxOleH4KvH0wGMwAQQ+FVJSI34EXNFGPqoBUZiAgjE2YqxlmHo3EBgJCaAwFurTf/2ahmDPnaBqwlAYFNq/D1rEYM+eoEruQ8gUNXV9+NrocXP5J6BwJUEIPCSQPnJ1A5YhQAEfjgbfwmBVHMaKLKBqwhAgBNEIDAzAQh8Y/q3nwgEZiUAgWLJ58ateNELsD4BCPzLJOq80hC8b3vbH+hFAAJFTL++K90eQhDoQQACp4m/12psFxEItCQAARqoFYFCEGhBAAIMTgQCtQlA4G8ioz5L5MCoBCBwyipx81hmbbXc6l6BwIj+2CvAqJ6jp2Z0bgXV4+s1X+vxvbZeE6A3E0BguDDZmsZtff3M96/xZ3oTkEAtAhA4rOXy76xxtodzAoFRCEAgypF4bHVOYOkTQwBKCUBgGFfHWU8lISgCgVICEOBCloWBKwhAgAmZAgIlBCCESwuJIxO3XtM5U0CgNwEIHNIyVkaMM4AVCUAgzp547B2YghboSQACQ+kVZ1tX4W59HWAlHgUHDGfr0WktwkzsAYkEIDAscQbQhiVgCOZWIgCZBCCwm4kcwBoEIABAGAEI7GbJGGANAhCCWdIFyCQAAQDCuA0McMh9Gbj35LDH/QABkghACHePqVHP7dt6X1+/LgYBjrMEDAxpK/6e3f/cChenuMAG6MkEEFjCb1PB1ZaRTT6BEgIQGE7pNGzP33/8GSEFJLIEDBy20nLlCD+L5V+gNwEImIJd6Ez82V9AKQEInGIKWP6aJn/AVQQgcFqrgFl9wiX8gKsJQOBvlhXnYD8BNQhAoIgp4DGmf8AIBCDwr9Gi6/5+erynXj93afyZ/gG1uA8gMLyv4TPrBE38ASMxAQS+ORMaPa9orR1CPcLKsi8wms+bf1YCL5yNlp4fKSVhNcuy74fpH9CAJWBgWq/CaE9wvfp7LVj2BUYlAIGq7tFzZbi8O19wpqASf0BLAhB46R4gs5+7dlVEmfwBo3MRCFBd8kUPLvgAZiAAgU0lk6jEEHLBBzALAQi81etmzLMTf8BMBCDQjOXQ/cQf0JMABHY5Gyg9bxJ9FRd9ALMRgEAXq0ag+ANmJACB3UpjZbUILH0SifgDriIAgUNE4D+c3wjMTAAC3c0eT5Z9gdkJQOCwGgGTOkETf8AIPAoOYCeTP2AVJoDAKbWmgDNMAhNuZQNkEYDAabWuZB05rmq9N9M/YCQCECi2YtzUnPqJP2A0AhCoYqXbw9R8L+IPGNHnzacTUFGNeLrqY6l2hPp4BUYlAIHqZoxA8TeX5/1le8MxAhBoYpYIFH5z+W1/2f6wjwAEmho1BFudc+gjtZ29+8w+gN+5ETQwvHcH/iMH+3ffpwbhUYflXWjPBBBobvWbKPsYLdfid8R+gW0mgAAnCYxyLf9x8Pje9hP85D6AQHMrHoBFRblek2GP8YOfTACBLh7BNPvBWPjVIcrgWiaAQFczB5T4K1fzEXtHCE74TgAC3c0WUvf3K/7KXR1hIhD+IwCBS8wSVMKvjlHiSwTCP9wGBrjciAdlH4311Ny/tc4ltX9J5yIQ4HIjXSAiDOoYfdJ2f3/2NclMAIHhXBEPPgrraLnvnvfRLM+bhhEJQGBYHt02l6uer2w5GI4TgMC0zh74fezVdVX4fSUC4RhXAQPTcnuWa7W8p1/v/erqYNIIQAAOaxl+Z+KvRjCKQJIIQAB2eUz8Rp36iUDYTwAC8FaPx7fVWvIVgbCPAATiOMDv1yP8ap/vJwLhdwIQmJ4LQeqbaer3igiE9wQgAN/MOPV7RQTCNvcBBJZw5kDt4++7nk/x6MkTQ+AnE0BgCQ7QZVaNvxFeH0YkAAGCtb6tyyjxVfo+LAWzGgEIxEo+qKeE31cmgfAfAQgswwF+n5WXe3/jdwT+IQABgqRN/V4RgfDx8cc2AJLdgyghCFqE38zb7f7ej2wT0chqTACBpThQ/yT+XvO7QjITQIBFCb/f7ZkECkVWJACho+cDjQMLrYi//R4/l/8/SSIAoYOtg/GrrzvoUOLV71SplN9J/++RRABCY0cPyF//vAMSR4g/YC8BCA2VHpDFYB+zXwks/ICjBCA0UvugLAb3O3qLj1m1vKcfsDYBCBMSg9mSn+QB1CEAoYGe06et13IgP2aWZeCt/V3K7wtkEYCwqPQp4WrLwMIPqEkAQoD0GJyZ5V6gBQEIYbaCQgyMZ2tflbKvAQEI/G0rNsTCWuxP4EMAQn1bITUry8d9mfoBPQhAYLfVY/DKK4Gd6wf0JADhYl8PzjNND2eIwVmuBDb1A3oTgFBR6YF8hRj8SoBs29pmNdjuwG8EIFzo3YF61hj8asYl49bLwMIPGIEAhAmIwfNGWgYWf8AoBCBU0isyVovBr1aOmK2fuZTwA84QgHCRGgfure9hSlj+Pmq9vvADRiQAoYLRgsuU8Off2fp+La12T0hgHQIQFrdCDH619TOMNhHbep81mP4BpQQgXOCqA/jW6wrDPu+llPADahGAwGZYrByGs7zW1r4BKCEAgU2rLR+3JP6AmQhAYJe0GNx7JbDwA2YkAKFQ4mTMZFD4AXMTgNDZagf5rZ/H+YPHbG1HgBYEINCEKeE+wg+4ggCEAsJmHzH4mvgDriIAoSMH/O1tkBaGW9sBoAcBCAwhZUoo/IARCEA4yVJmO1uRNPs23/q5AHoTgHDCmRBx8C+3tQ1HD8Ot9w1wFQEITG8rsEYIw633BnAlAQgHWfqdx5XnFQo/YGQCEDoQA9frFYP2NTCDv+wlAIAsAhAaMxEaT6t9Yl8DsxCAcNCRg7wgyHDfz/Y1MBPnAAKcIPiAmZkAwgl7Dv4CYV32LTA7E0A46REBz1eUioN12bfAKgQgFBIFGexnYCWWgAEAwghAAIAwAhBgB48ABFYiAIFIzukDkglAAIAwAhAAIIwABAAIIwABAMIIQCCSq3qBZAIQYAdXDQMrEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQiww+fnp80ELEMAApFut5sdD8QSgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAALs5GbQwCoEIBDLzaCBVAIQACCMAARiWdIFUglAAIAwAhCIZPoHJBOAAAcIR2AFAhDgIBEIzE4AApwgAoGZCUAgUo17AIpAYFYCEKDAPQKFIDAbAQhQgQgEZiIAASoRgcAsBCAQqVWsiUBgBgIQiNM60kQgMDoBCNCACARGJgCBKMIMQAACNCM2gVEJQICGRCAwIgEIxDgbY6VPDRGBwGgEIMAbj/gTgcBKBCDAhufoqxGBQhAYgQAEItQKr9II/DANBAYgAAFeeBd67/4bwAwEIMAJzgkEZiYAgeWNGlsiELiKAAR4sne6V+t8QCEI9CYAgaW1jqta5wOKQKAnAQhQyEUhwGwEIMAXZ2Pu/vdcGALMQgACy7oiqEQgMAMBCPB/tZZyRSAwOgEIMCBXBwMtCUBgSVfHk6uDgZEJQGA5Z6KpxZW8NS4M+RCBQAMCEKAxEQiMRgACS1k5lJwXCNQiAIF4PW7kXPM1RCBQSgACdFI7AoUgcJYABJYxysUf79R+PREInCEAgSXMEH9fX9eSMHAlAQhwEUvCwFUEIDC9mcOnxZKwEAR+IwCBqZ2NnauWf19p8V5EIPCOAAQYQO3zAj9EIPCGAASmtcL075klYaAHAQhMacX4ezANBFoTgACDEoFAKwIQmM7K079nloSBFgQgMJWk+HtwlTBQmwAEppEcLc4LBGoSgMAUSmJl5unfM4+RA2oQgMDSVoq/r0QgUEIAAsMTKK95ljBwlgAEhmbp9z1LwsAZAhAYlvjbTwQCRwhAgEWIQGAvAQgMyfTvnJpLwiIQ1iUAgeGIv3I1I1AIwnoEILAM8fedq4SBLQIQGIrIqMvTQ4BXBCCwBNO/bbYN8Ozz5pMBGMTZ6ZKPsf1qTvBsd5iXCSAwBPHXh1vFAB8CEBiB+OvLxSGAAAQuJR6u4eIQyCYAgcu439+1WkSgEIQ5CEDgEkJhDDWfHPIgBGF8AhCYjulffa1CEBiT28AA3Vn6HV/teLPfYCwmgEBXpkKZ7HcYiwAEuimNAFOkflpsaxEI4xCAwBTEX3/OC4R1CUCgC+f9zUsEwnoEINCc+JufW8XAWgQg0JT4W4fzAmEdAhCA3dw4GtbgPoBAM6Z/GWrGm/0OfZgAAk2Ivxz2F8xHAAJDERNzqrXfLAVDHwIQqM5BPJMIhHkIQGAYpn/zE4EwBwEIVFNyNaf4W4d9CeMTgEAVLvrgqxq3izEFhHYEIHAp8be2FvcNBMoJQKCYSQ2/EYEwFgEIXEYUZLG/YRwCEChi+kcrghHaEYDAJRzcM9nvMAYBCJx2ZvrnogD27H+/I9DWH9sXOMPSLyUegff8eyT8oA8BCHTj4M4zvxNwDQEIHGLyBzA/5wACu3naB8AaBCCwi8kfwDoEIPCr0vgz/QMYiwAEmhJ/AOMRgMBbln4B1iMAgWZM/wDG5DYwQHXCD2BsJoAAAGEEIPDW0Wme6R/A+AQgUI34A5iDAAR+tSfsxB/APFwEAuzyCLzn28IIP4D5CEDgEMEHMD9LwAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACACT5+Pj4HxmhLSSix2D5AAAAAElFTkSuQmCC"; - return new Promise(resolve => { - imageEl.onload = function() { - resolve(imageEl); - } - }); - }, +export const SampleImage = { + create: () => { + let imageEl = new Image(640, 480); + imageEl.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAR4klEQVR4nO3d21bjxhpGUcjo939l7+FkOwFjGUl1UFV9c16SbmwkYq3+S4fP2+12+wAAIMZfdjUAQBYBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAECYP3Y4MIrPz8/D7+R2u/34GgDvCUCgizNxt8fj+wpBgP0EINBMq+h75f5azxH47vUFI5BMAAJVvYuuXva8h60/IwyBBJ83n3ZABVtBNTMfj8CqTACBYivG38fGzyUKgRW4DQzAAfcofBWGADMRgMBpyTEkAoGZCUDgFAFkGgjMSwACh4me72wPYDYCEFjC/eKMKy/QMA0EZuIqYGC3EQNntKtyPZkEmIH7AAK79Iq/Gh9Jo4Sqj1dgVCaAQDe9gujxOleH4KvH0wGMwAQQ+FVJSI34EXNFGPqoBUZiAgjE2YqxlmHo3EBgJCaAwFurTf/2ahmDPnaBqwlAYFNq/D1rEYM+eoEruQ8gUNXV9+NrocXP5J6BwJUEIPCSQPnJ1A5YhQAEfjgbfwmBVHMaKLKBqwhAgBNEIDAzAQh8Y/q3nwgEZiUAgWLJ58ateNELsD4BCPzLJOq80hC8b3vbH+hFAAJFTL++K90eQhDoQQACp4m/12psFxEItCQAARqoFYFCEGhBAAIMTgQCtQlA4G8ioz5L5MCoBCBwyipx81hmbbXc6l6BwIj+2CvAqJ6jp2Z0bgXV4+s1X+vxvbZeE6A3E0BguDDZmsZtff3M96/xZ3oTkEAtAhA4rOXy76xxtodzAoFRCEAgypF4bHVOYOkTQwBKCUBgGFfHWU8lISgCgVICEOBCloWBKwhAgAmZAgIlBCCESwuJIxO3XtM5U0CgNwEIHNIyVkaMM4AVCUAgzp547B2YghboSQACQ+kVZ1tX4W59HWAlHgUHDGfr0WktwkzsAYkEIDAscQbQhiVgCOZWIgCZBCCwm4kcwBoEIABAGAEI7GbJGGANAhCCWdIFyCQAAQDCuA0McMh9Gbj35LDH/QABkghACHePqVHP7dt6X1+/LgYBjrMEDAxpK/6e3f/cChenuMAG6MkEEFjCb1PB1ZaRTT6BEgIQGE7pNGzP33/8GSEFJLIEDBy20nLlCD+L5V+gNwEImIJd6Ez82V9AKQEInGIKWP6aJn/AVQQgcFqrgFl9wiX8gKsJQOBvlhXnYD8BNQhAoIgp4DGmf8AIBCDwr9Gi6/5+erynXj93afyZ/gG1uA8gMLyv4TPrBE38ASMxAQS+ORMaPa9orR1CPcLKsi8wms+bf1YCL5yNlp4fKSVhNcuy74fpH9CAJWBgWq/CaE9wvfp7LVj2BUYlAIGq7tFzZbi8O19wpqASf0BLAhB46R4gs5+7dlVEmfwBo3MRCFBd8kUPLvgAZiAAgU0lk6jEEHLBBzALAQi81etmzLMTf8BMBCDQjOXQ/cQf0JMABHY5Gyg9bxJ9FRd9ALMRgEAXq0ag+ANmJACB3UpjZbUILH0SifgDriIAgUNE4D+c3wjMTAAC3c0eT5Z9gdkJQOCwGgGTOkETf8AIPAoOYCeTP2AVJoDAKbWmgDNMAhNuZQNkEYDAabWuZB05rmq9N9M/YCQCECi2YtzUnPqJP2A0AhCoYqXbw9R8L+IPGNHnzacTUFGNeLrqY6l2hPp4BUYlAIHqZoxA8TeX5/1le8MxAhBoYpYIFH5z+W1/2f6wjwAEmho1BFudc+gjtZ29+8w+gN+5ETQwvHcH/iMH+3ffpwbhUYflXWjPBBBobvWbKPsYLdfid8R+gW0mgAAnCYxyLf9x8Pje9hP85D6AQHMrHoBFRblek2GP8YOfTACBLh7BNPvBWPjVIcrgWiaAQFczB5T4K1fzEXtHCE74TgAC3c0WUvf3K/7KXR1hIhD+IwCBS8wSVMKvjlHiSwTCP9wGBrjciAdlH4311Ny/tc4ltX9J5yIQ4HIjXSAiDOoYfdJ2f3/2NclMAIHhXBEPPgrraLnvnvfRLM+bhhEJQGBYHt02l6uer2w5GI4TgMC0zh74fezVdVX4fSUC4RhXAQPTcnuWa7W8p1/v/erqYNIIQAAOaxl+Z+KvRjCKQJIIQAB2eUz8Rp36iUDYTwAC8FaPx7fVWvIVgbCPAATiOMDv1yP8ap/vJwLhdwIQmJ4LQeqbaer3igiE9wQgAN/MOPV7RQTCNvcBBJZw5kDt4++7nk/x6MkTQ+AnE0BgCQ7QZVaNvxFeH0YkAAGCtb6tyyjxVfo+LAWzGgEIxEo+qKeE31cmgfAfAQgswwF+n5WXe3/jdwT+IQABgqRN/V4RgfDx8cc2AJLdgyghCFqE38zb7f7ej2wT0chqTACBpThQ/yT+XvO7QjITQIBFCb/f7ZkECkVWJACho+cDjQMLrYi//R4/l/8/SSIAoYOtg/GrrzvoUOLV71SplN9J/++RRABCY0cPyF//vAMSR4g/YC8BCA2VHpDFYB+zXwks/ICjBCA0UvugLAb3O3qLj1m1vKcfsDYBCBMSg9mSn+QB1CEAoYGe06et13IgP2aWZeCt/V3K7wtkEYCwqPQp4WrLwMIPqEkAQoD0GJyZ5V6gBQEIYbaCQgyMZ2tflbKvAQEI/G0rNsTCWuxP4EMAQn1bITUry8d9mfoBPQhAYLfVY/DKK4Gd6wf0JADhYl8PzjNND2eIwVmuBDb1A3oTgFBR6YF8hRj8SoBs29pmNdjuwG8EIFzo3YF61hj8asYl49bLwMIPGIEAhAmIwfNGWgYWf8AoBCBU0isyVovBr1aOmK2fuZTwA84QgHCRGgfure9hSlj+Pmq9vvADRiQAoYLRgsuU8Off2fp+La12T0hgHQIQFrdCDH619TOMNhHbep81mP4BpQQgXOCqA/jW6wrDPu+llPADahGAwGZYrByGs7zW1r4BKCEAgU2rLR+3JP6AmQhAYJe0GNx7JbDwA2YkAKFQ4mTMZFD4AXMTgNDZagf5rZ/H+YPHbG1HgBYEINCEKeE+wg+4ggCEAsJmHzH4mvgDriIAoSMH/O1tkBaGW9sBoAcBCAwhZUoo/IARCEA4yVJmO1uRNPs23/q5AHoTgHDCmRBx8C+3tQ1HD8Ot9w1wFQEITG8rsEYIw633BnAlAQgHWfqdx5XnFQo/YGQCEDoQA9frFYP2NTCDv+wlAIAsAhAaMxEaT6t9Yl8DsxCAcNCRg7wgyHDfz/Y1MBPnAAKcIPiAmZkAwgl7Dv4CYV32LTA7E0A46REBz1eUioN12bfAKgQgFBIFGexnYCWWgAEAwghAAIAwAhBgB48ABFYiAIFIzukDkglAAIAwAhAAIIwABAAIIwABAMIIQCCSq3qBZAIQYAdXDQMrEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQiww+fnp80ELEMAApFut5sdD8QSgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAALs5GbQwCoEIBDLzaCBVAIQACCMAARiWdIFUglAAIAwAhCIZPoHJBOAAAcIR2AFAhDgIBEIzE4AApwgAoGZCUAgUo17AIpAYFYCEKDAPQKFIDAbAQhQgQgEZiIAASoRgcAsBCAQqVWsiUBgBgIQiNM60kQgMDoBCNCACARGJgCBKMIMQAACNCM2gVEJQICGRCAwIgEIxDgbY6VPDRGBwGgEIMAbj/gTgcBKBCDAhufoqxGBQhAYgQAEItQKr9II/DANBAYgAAFeeBd67/4bwAwEIMAJzgkEZiYAgeWNGlsiELiKAAR4sne6V+t8QCEI9CYAgaW1jqta5wOKQKAnAQhQyEUhwGwEIMAXZ2Pu/vdcGALMQgACy7oiqEQgMAMBCPB/tZZyRSAwOgEIMCBXBwMtCUBgSVfHk6uDgZEJQGA5Z6KpxZW8NS4M+RCBQAMCEKAxEQiMRgACS1k5lJwXCNQiAIF4PW7kXPM1RCBQSgACdFI7AoUgcJYABJYxysUf79R+PREInCEAgSXMEH9fX9eSMHAlAQhwEUvCwFUEIDC9mcOnxZKwEAR+IwCBqZ2NnauWf19p8V5EIPCOAAQYQO3zAj9EIPCGAASmtcL075klYaAHAQhMacX4ezANBFoTgACDEoFAKwIQmM7K079nloSBFgQgMJWk+HtwlTBQmwAEppEcLc4LBGoSgMAUSmJl5unfM4+RA2oQgMDSVoq/r0QgUEIAAsMTKK95ljBwlgAEhmbp9z1LwsAZAhAYlvjbTwQCRwhAgEWIQGAvAQgMyfTvnJpLwiIQ1iUAgeGIv3I1I1AIwnoEILAM8fedq4SBLQIQGIrIqMvTQ4BXBCCwBNO/bbYN8Ozz5pMBGMTZ6ZKPsf1qTvBsd5iXCSAwBPHXh1vFAB8CEBiB+OvLxSGAAAQuJR6u4eIQyCYAgcu439+1WkSgEIQ5CEDgEkJhDDWfHPIgBGF8AhCYjulffa1CEBiT28AA3Vn6HV/teLPfYCwmgEBXpkKZ7HcYiwAEuimNAFOkflpsaxEI4xCAwBTEX3/OC4R1CUCgC+f9zUsEwnoEINCc+JufW8XAWgQg0JT4W4fzAmEdAhCA3dw4GtbgPoBAM6Z/GWrGm/0OfZgAAk2Ivxz2F8xHAAJDERNzqrXfLAVDHwIQqM5BPJMIhHkIQGAYpn/zE4EwBwEIVFNyNaf4W4d9CeMTgEAVLvrgqxq3izEFhHYEIHAp8be2FvcNBMoJQKCYSQ2/EYEwFgEIXEYUZLG/YRwCEChi+kcrghHaEYDAJRzcM9nvMAYBCJx2ZvrnogD27H+/I9DWH9sXOMPSLyUegff8eyT8oA8BCHTj4M4zvxNwDQEIHGLyBzA/5wACu3naB8AaBCCwi8kfwDoEIPCr0vgz/QMYiwAEmhJ/AOMRgMBbln4B1iMAgWZM/wDG5DYwQHXCD2BsJoAAAGEEIPDW0Wme6R/A+AQgUI34A5iDAAR+tSfsxB/APFwEAuzyCLzn28IIP4D5CEDgEMEHMD9LwAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACAIQRgAAAYQQgAEAYAQgAEEYAAgCEEYAAAGEEIABAGAEIABBGAAIAhBGAAABhBCAAQBgBCAAQRgACACT5+Pj4HxmhLSSix2D5AAAAAElFTkSuQmCC"; + return new Promise(resolve => { + imageEl.onload = function() { + resolve(imageEl); + } + }); + }, } \ No newline at end of file diff --git a/Games/Stone_paper_scissor/src/js/UI.js b/Games/Stone_paper_scissor/src/js/UI.js index bf41d6005a..1926d92923 100644 --- a/Games/Stone_paper_scissor/src/js/UI.js +++ b/Games/Stone_paper_scissor/src/js/UI.js @@ -1,124 +1,124 @@ -const $playerScore = document.querySelector('#score1'); -const $playerVideo = document.querySelector('#player-video'); -const $playerHand = document.querySelector('#player-hand'); - -const $robotScore = document.querySelector('#score2'); -const $robotImage = document.querySelector('#robot'); -const $robotHand = document.querySelector('#robot-hand'); - -const $statusText = document.querySelector('#message'); - -const $timerRing = document.querySelector('#timer-ring'); -const $timerRingCircle = document.querySelector('#timer-ring-circle'); -const radius = $timerRingCircle.r.baseVal.value; -const circumference = radius * 2 * Math.PI; - - -export const UI = { - - init: function() { - - this.initTimerCircle(); - this.showTimer(false); - - // preload some images - (new Image()).src = "assets/rock.png"; - (new Image()).src = "assets/paper.png"; - (new Image()).src = "assets/scissors.png"; - }, - - initTimerCircle: function() { - $timerRingCircle.style.strokeDasharray = `${circumference} ${circumference}`; - $timerRingCircle.style.strokeDashoffset = `${circumference}`; - }, - - setStatusMessage: function(message) { - $statusText.textContent = message; - }, - - startAnimateMessage: function() { - $statusText.classList.add("fade-in-out"); - }, - - stopAnimateMessage: function() { - $statusText.classList.remove("fade-in-out"); - }, - - startCountdown: async function() { - return new Promise(resolve => { - this.setStatusMessage("On your marks!"); - setTimeout(() => { this.setStatusMessage("Ready"); }, 1000); - setTimeout(() => { this.setStatusMessage("Show your hand!!"); resolve(); }, 2000); - }); - }, - - showTimer: function(show) { - $timerRing.style.visibility = (show ? 'visible' : 'hidden'); - }, - - setTimerProgress: function(percent) { - const offset = circumference - percent * circumference; - $timerRingCircle.style.strokeDashoffset = offset; - }, - - setPlayerHand: function(gesture) { - switch(gesture) { - case 'rock': $playerHand.textContent = "โœŠ"; break; - case 'paper': $playerHand.textContent = "๐Ÿคš"; break; - case 'scissors': $playerHand.textContent = "โœŒ"; break; - default: $playerHand.textContent = ""; break; - } - }, - - setPlayerScore: function(score) { - $playerScore.textContent = score; - }, - - setRobotScore: function(score) { - $robotScore.textContent = score; - }, - - animatePlayerHand: function() { - $playerHand.classList.add("player-hand-zoom"); - setTimeout(() => { $playerHand.classList.remove("player-hand-zoom"); }, 1000); - }, - - showRobotImage: function(show) { - $robotImage.style.display = (show ? 'block' : 'none'); - $robotHand.style.display = (show ? 'none' : 'block'); - }, - - showRobotHand: function(show) { - $robotHand.style.display = (show ? 'block' : 'none'); - $robotImage.style.display = (show ? 'none' : 'block'); - }, - - setRobotGesture: function(gesture) { - switch(gesture) { - case 'rock': $robotHand.src = "assets/rock.png"; break; - case 'paper': $robotHand.src = "assets/paper.png"; break; - case 'scissors': $robotHand.src = "assets/scissors.png"; break; - default: $robotHand.src = "" - } - }, - - initPlayerVideo: async function(constraints) { - - // get cam video stream - const stream = await navigator.mediaDevices.getUserMedia(constraints); - $playerVideo.srcObject = stream; - - return new Promise(resolve => { - $playerVideo.onloadedmetadata = () => { - $playerVideo.onloadeddata = () => { - resolve($playerVideo); - }; - }; - }); - }, - - isMobile: function() { - // remember kids: this is super unreliable - return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); - }, +const $playerScore = document.querySelector('#score1'); +const $playerVideo = document.querySelector('#player-video'); +const $playerHand = document.querySelector('#player-hand'); + +const $robotScore = document.querySelector('#score2'); +const $robotImage = document.querySelector('#robot'); +const $robotHand = document.querySelector('#robot-hand'); + +const $statusText = document.querySelector('#message'); + +const $timerRing = document.querySelector('#timer-ring'); +const $timerRingCircle = document.querySelector('#timer-ring-circle'); +const radius = $timerRingCircle.r.baseVal.value; +const circumference = radius * 2 * Math.PI; + + +export const UI = { + + init: function() { + + this.initTimerCircle(); + this.showTimer(false); + + // preload some images + (new Image()).src = "assets/rock.png"; + (new Image()).src = "assets/paper.png"; + (new Image()).src = "assets/scissors.png"; + }, + + initTimerCircle: function() { + $timerRingCircle.style.strokeDasharray = `${circumference} ${circumference}`; + $timerRingCircle.style.strokeDashoffset = `${circumference}`; + }, + + setStatusMessage: function(message) { + $statusText.textContent = message; + }, + + startAnimateMessage: function() { + $statusText.classList.add("fade-in-out"); + }, + + stopAnimateMessage: function() { + $statusText.classList.remove("fade-in-out"); + }, + + startCountdown: async function() { + return new Promise(resolve => { + this.setStatusMessage("On your marks!"); + setTimeout(() => { this.setStatusMessage("Ready"); }, 1000); + setTimeout(() => { this.setStatusMessage("Show your hand!!"); resolve(); }, 2000); + }); + }, + + showTimer: function(show) { + $timerRing.style.visibility = (show ? 'visible' : 'hidden'); + }, + + setTimerProgress: function(percent) { + const offset = circumference - percent * circumference; + $timerRingCircle.style.strokeDashoffset = offset; + }, + + setPlayerHand: function(gesture) { + switch(gesture) { + case 'rock': $playerHand.textContent = "โœŠ"; break; + case 'paper': $playerHand.textContent = "๐Ÿคš"; break; + case 'scissors': $playerHand.textContent = "โœŒ"; break; + default: $playerHand.textContent = ""; break; + } + }, + + setPlayerScore: function(score) { + $playerScore.textContent = score; + }, + + setRobotScore: function(score) { + $robotScore.textContent = score; + }, + + animatePlayerHand: function() { + $playerHand.classList.add("player-hand-zoom"); + setTimeout(() => { $playerHand.classList.remove("player-hand-zoom"); }, 1000); + }, + + showRobotImage: function(show) { + $robotImage.style.display = (show ? 'block' : 'none'); + $robotHand.style.display = (show ? 'none' : 'block'); + }, + + showRobotHand: function(show) { + $robotHand.style.display = (show ? 'block' : 'none'); + $robotImage.style.display = (show ? 'none' : 'block'); + }, + + setRobotGesture: function(gesture) { + switch(gesture) { + case 'rock': $robotHand.src = "assets/rock.png"; break; + case 'paper': $robotHand.src = "assets/paper.png"; break; + case 'scissors': $robotHand.src = "assets/scissors.png"; break; + default: $robotHand.src = "" + } + }, + + initPlayerVideo: async function(constraints) { + + // get cam video stream + const stream = await navigator.mediaDevices.getUserMedia(constraints); + $playerVideo.srcObject = stream; + + return new Promise(resolve => { + $playerVideo.onloadedmetadata = () => { + $playerVideo.onloadeddata = () => { + resolve($playerVideo); + }; + }; + }); + }, + + isMobile: function() { + // remember kids: this is super unreliable + return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); + }, } \ No newline at end of file diff --git a/Games/Stone_paper_scissor/src/styles/_game.scss b/Games/Stone_paper_scissor/src/styles/_game.scss index 9b422fbd6e..df0e56426d 100644 --- a/Games/Stone_paper_scissor/src/styles/_game.scss +++ b/Games/Stone_paper_scissor/src/styles/_game.scss @@ -1,129 +1,129 @@ -html { - font-size: $font-size; - font-family: $font-family; - background: #0f0c29; - background: -webkit-linear-gradient(to left, #24243e, #302b63, #0f0c29); - background: linear-gradient(to left, #24243e, #302b63, #0f0c29); - color: $font-color; - height: 100%; -} - -body { - text-align: center; -} - -.instructions { - font-weight: 700; - margin: 24px 0 32px; -} - -.game-container { - max-width: 620px; - display: flex; - flex-wrap: wrap; - justify-content: space-evenly; - margin: -6px auto; -} - -.player-headline { - display: flex; - justify-content: space-between; - - .nick, - .score { - font-family: '8BIT WONDER', sans-serif; - font-size: 24px; - padding: 0 24px; - } -} - -.player { - margin: 6px; - width: calc(50% - 12px); - background-color: #999999; -} - -.messages { - margin: 6px; - padding: 12px; - width: calc(100% - 12px); - background-color: #333333; - border: 1px solid #cccccc; -} - -.message-text { - font-weight: 700; -} - -.fade-in-out { - animation: fadeInOut 1s; - animation-iteration-count: infinite; -} - -@keyframes fadeInOut { - 0% { opacity: 1; } - 50% { opacity: 0.2; } - 100% { opacity:1; } -} - -.player-container, -.robot-container { - position: relative; -} - -.player-container .player-video { - min-height: 298px; - width: 100%; - object-fit: cover; - transform: scaleX(-1); - display: block; -} - -.robot-container .avatar { - width: 100%; - display: block; -} - -.robot-container .robot-hand { - position: absolute; - width: 100%; - display: none; - top: 0; - left: 0; -} - -.player-hand-container { - position: absolute; - width: 100px; - height: 100px; - top: 0; - right: 0; -} - -.player-hand { - position: absolute; - top: 2px; - right: 1px; - width: 100px; - height: 100px; - text-align: center; - font-size: 42px; - line-height: 100px; -} - -.player-hand-zoom { - animation: handZoom .5s; - animation-iteration-count: 1; -} - -@keyframes handZoom { - 0% { font-size: 42px; } - 50% { font-size: 64px; } - 100% { font-size: 42px; } -} - -.timer-ring-circle { - transition: stroke-dashoffset 0.1s; - transform: rotate(-90deg); - transform-origin: 50% 50%; -} +html { + font-size: $font-size; + font-family: $font-family; + background: #0f0c29; + background: -webkit-linear-gradient(to left, #24243e, #302b63, #0f0c29); + background: linear-gradient(to left, #24243e, #302b63, #0f0c29); + color: $font-color; + height: 100%; +} + +body { + text-align: center; +} + +.instructions { + font-weight: 700; + margin: 24px 0 32px; +} + +.game-container { + max-width: 620px; + display: flex; + flex-wrap: wrap; + justify-content: space-evenly; + margin: -6px auto; +} + +.player-headline { + display: flex; + justify-content: space-between; + + .nick, + .score { + font-family: '8BIT WONDER', sans-serif; + font-size: 24px; + padding: 0 24px; + } +} + +.player { + margin: 6px; + width: calc(50% - 12px); + background-color: #999999; +} + +.messages { + margin: 6px; + padding: 12px; + width: calc(100% - 12px); + background-color: #333333; + border: 1px solid #cccccc; +} + +.message-text { + font-weight: 700; +} + +.fade-in-out { + animation: fadeInOut 1s; + animation-iteration-count: infinite; +} + +@keyframes fadeInOut { + 0% { opacity: 1; } + 50% { opacity: 0.2; } + 100% { opacity:1; } +} + +.player-container, +.robot-container { + position: relative; +} + +.player-container .player-video { + min-height: 298px; + width: 100%; + object-fit: cover; + transform: scaleX(-1); + display: block; +} + +.robot-container .avatar { + width: 100%; + display: block; +} + +.robot-container .robot-hand { + position: absolute; + width: 100%; + display: none; + top: 0; + left: 0; +} + +.player-hand-container { + position: absolute; + width: 100px; + height: 100px; + top: 0; + right: 0; +} + +.player-hand { + position: absolute; + top: 2px; + right: 1px; + width: 100px; + height: 100px; + text-align: center; + font-size: 42px; + line-height: 100px; +} + +.player-hand-zoom { + animation: handZoom .5s; + animation-iteration-count: 1; +} + +@keyframes handZoom { + 0% { font-size: 42px; } + 50% { font-size: 64px; } + 100% { font-size: 42px; } +} + +.timer-ring-circle { + transition: stroke-dashoffset 0.1s; + transform: rotate(-90deg); + transform-origin: 50% 50%; +} diff --git a/Games/Stone_paper_scissor/src/styles/_variables.scss b/Games/Stone_paper_scissor/src/styles/_variables.scss index 0836f4f75b..33057e8a2a 100644 --- a/Games/Stone_paper_scissor/src/styles/_variables.scss +++ b/Games/Stone_paper_scissor/src/styles/_variables.scss @@ -1,5 +1,5 @@ -$font-size: 1rem; -$font-family: 'Courier New', Courier, monospace; -$background-color: #121212; -$font-color: #dae0e0; -$page-width: 650px; +$font-size: 1rem; +$font-family: 'Courier New', Courier, monospace; +$background-color: #121212; +$font-color: #dae0e0; +$page-width: 650px; diff --git a/Games/Stone_paper_scissor/src/styles/index.scss b/Games/Stone_paper_scissor/src/styles/index.scss index d598fc08d4..e13cafc4e4 100644 --- a/Games/Stone_paper_scissor/src/styles/index.scss +++ b/Games/Stone_paper_scissor/src/styles/index.scss @@ -1,11 +1,11 @@ -@font-face { - font-family: '8BIT WONDER'; - src: url('../fonts/8BITWONDERNominal.woff2') format('woff2'), - url('../fonts/8BITWONDERNominal.woff') format('woff'); - font-weight: normal; - font-style: normal; - font-display: swap; -} - -@import 'variables'; -@import 'game'; +@font-face { + font-family: '8BIT WONDER'; + src: url('../fonts/8BITWONDERNominal.woff2') format('woff2'), + url('../fonts/8BITWONDERNominal.woff') format('woff'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + +@import 'variables'; +@import 'game'; diff --git a/Games/Stone_paper_scissor/src/template.html b/Games/Stone_paper_scissor/src/template.html index 6aa72f5aa4..9e28c3c270 100644 --- a/Games/Stone_paper_scissor/src/template.html +++ b/Games/Stone_paper_scissor/src/template.html @@ -1,68 +1,68 @@ - - - - - - - - <%= htmlWebpackPlugin.options.title %> - - - -
      - -

      Let's play Rock โœŠ Paper ๐Ÿคš Scissors โœŒ

      - -

      After the countdown, show a hand gesture and hold it for a moment.
      - The computer will then make its move (don't worry, it doesn't cheat).

      - -
      - -
      -

      - Human - 0 -

      -
      - - - -
      - - -
      - - - - - - - -
      -
      -
      - -
      -

      - Robot - 0 -

      -
      - - -
      -
      - -
      - -
      - -
      - -
      - + + + + + + + + <%= htmlWebpackPlugin.options.title %> + + + +
      + +

      Let's play Rock โœŠ Paper ๐Ÿคš Scissors โœŒ

      + +

      After the countdown, show a hand gesture and hold it for a moment.
      + The computer will then make its move (don't worry, it doesn't cheat).

      + +
      + +
      +

      + Human + 0 +

      +
      + + + +
      + + +
      + + + + + + + +
      +
      +
      + +
      +

      + Robot + 0 +

      +
      + + +
      +
      + +
      + +
      + +
      + +
      + \ No newline at end of file diff --git a/Games/Stone_paper_scissor/style.css b/Games/Stone_paper_scissor/style.css index e4dfaaf9a2..5058c005f0 100644 --- a/Games/Stone_paper_scissor/style.css +++ b/Games/Stone_paper_scissor/style.css @@ -1,67 +1,67 @@ -body { - font-family: Arial, Helvetica, sans-serif; - text-align: center; - /* overflow: hidden; */ - min-height: 110vh; - background-image: linear-gradient(to right top, #d5bc3d, #ff9539, #ff6364, #ff37a4, #da4ced); -} - -#opponent-choice { - width: 240px; - height: 240px; - margin-top: 10px; -} - -#your-choice { - width: 240px; - height: 240px; - margin-top: 10px; -} - -#choice { - width: 240px; - height: 80px; - margin-top: 10px; - margin: 0 auto; -} - -#choice img { - width: 80px; - height: 80px; -} - -.game { - display: flex; - flex-direction: row; -} - -#opponent { - width: 200px; - height: 50px; - position: relative; - top: 119px; - left: 375px; - color:aliceblue; - font-size: 22px; -} - -#you { - width: 200px; - height: 50px; - position: relative; - top: 50px; - left: 615px; - color:aliceblue; - font-size: 22px; -} - -#opponent-score{ - position: relative; - top: 10px; - color:aliceblue; - margin-bottom: -42px; -} - -#your-score{ - color: aliceblue; +body { + font-family: Arial, Helvetica, sans-serif; + text-align: center; + /* overflow: hidden; */ + min-height: 110vh; + background-image: linear-gradient(to right top, #d5bc3d, #ff9539, #ff6364, #ff37a4, #da4ced); +} + +#opponent-choice { + width: 240px; + height: 240px; + margin-top: 10px; +} + +#your-choice { + width: 240px; + height: 240px; + margin-top: 10px; +} + +#choice { + width: 240px; + height: 80px; + margin-top: 10px; + margin: 0 auto; +} + +#choice img { + width: 80px; + height: 80px; +} + +.game { + display: flex; + flex-direction: row; +} + +#opponent { + width: 200px; + height: 50px; + position: relative; + top: 119px; + left: 375px; + color:aliceblue; + font-size: 22px; +} + +#you { + width: 200px; + height: 50px; + position: relative; + top: 50px; + left: 615px; + color:aliceblue; + font-size: 22px; +} + +#opponent-score{ + position: relative; + top: 10px; + color:aliceblue; + margin-bottom: -42px; +} + +#your-score{ + color: aliceblue; } \ No newline at end of file diff --git a/Games/Sucker/index.html b/Games/Sucker/index.html old mode 100755 new mode 100644 diff --git a/Games/Sucker/sucker.js b/Games/Sucker/sucker.js old mode 100755 new mode 100644 index 5911083643..2783207d95 --- a/Games/Sucker/sucker.js +++ b/Games/Sucker/sucker.js @@ -1,2770 +1,2770 @@ -/* - * RIFFWAVE.js v0.03 - Audio encoder for HTML5